diff --git a/15.213ac7cc.async.js b/15.213ac7cc.async.js new file mode 100644 index 0000000..855819a --- /dev/null +++ b/15.213ac7cc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[15],{6015:function(k,a,s){s.r(a),s.d(a,{conf:function(){return b},language:function(){return y}});var g=s(23978);var l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(r,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(r,o)&&o!==i&&l(r,o,{get:()=>t[o],enumerable:!(p=d(t,o))||p.enumerable});return r},f=(r,t,i)=>(c(r,t,"default"),i&&c(i,t,"default")),n={};f(n,g);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},e={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};var b=x,y={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer}}}]); diff --git a/15.7ce3467a.async.js b/15.7ce3467a.async.js deleted file mode 100644 index 3bcccb0..0000000 --- a/15.7ce3467a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[15],{57449:function(k,a,s){s.r(a),s.d(a,{conf:function(){return b},language:function(){return y}});var g=s(23978);var l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(r,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(r,o)&&o!==i&&l(r,o,{get:()=>t[o],enumerable:!(p=d(t,o))||p.enumerable});return r},f=(r,t,i)=>(c(r,t,"default"),i&&c(i,t,"default")),n={};f(n,g);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},e={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};var b=x,y={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer}}}]); diff --git a/150.33c950fe.async.js b/150.33c950fe.async.js deleted file mode 100644 index 3bdbbeb..0000000 --- a/150.33c950fe.async.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[150],{64217:function(Be,ge,b){b.d(ge,{Z:function(){return we}});var ce=b(1413),L=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,me=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,C="".concat(L," ").concat(me).split(/[\s\n]+/),H="aria-",ze="data-";function t(fe,X){return fe.indexOf(X)===0}function we(fe){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G;X===!1?G={aria:!0,data:!0,attr:!0}:X===!0?G={aria:!0}:G=(0,ce.Z)({},X);var Se={};return Object.keys(fe).forEach(function(_){(G.aria&&(_==="role"||t(_,H))||G.data&&t(_,ze)||G.attr&&C.includes(_))&&(Se[_]=fe[_])}),Se}},85344:function(Be,ge,b){b.d(ge,{Z:function(){return Ot}});var ce=b(87462),L=b(1413),me=b(71002),C=b(97685),H=b(4942),ze=b(91),t=b(67294),we=b(73935),fe=b(94184),X=b.n(fe),G=b(48555),Se=t.forwardRef(function(e,s){var n=e.height,o=e.offsetY,h=e.offsetX,r=e.children,c=e.prefixCls,v=e.onInnerResize,S=e.innerProps,E=e.rtl,g=e.extra,a={},f={display:"flex",flexDirection:"column"};if(o!==void 0){var l;a={height:n,position:"relative",overflow:"hidden"},f=(0,L.Z)((0,L.Z)({},f),{},(l={transform:"translateY(".concat(o,"px)")},(0,H.Z)(l,E?"marginRight":"marginLeft",-h),(0,H.Z)(l,"position","absolute"),(0,H.Z)(l,"left",0),(0,H.Z)(l,"right",0),(0,H.Z)(l,"top",0),l))}return t.createElement("div",{style:a},t.createElement(G.Z,{onResize:function(m){var d=m.offsetHeight;d&&v&&v()}},t.createElement("div",(0,ce.Z)({style:f,className:X()((0,H.Z)({},"".concat(c,"-holder-inner"),c)),ref:s},S),r,g)))});Se.displayName="Filler";var _=Se,B=b(75164);function Ve(e,s){var n="touches"in e?e.touches[0]:e;return n[s?"pageX":"pageY"]}var ct=t.forwardRef(function(e,s){var n,o=e.prefixCls,h=e.rtl,r=e.scrollOffset,c=e.scrollRange,v=e.onStartMove,S=e.onStopMove,E=e.onScroll,g=e.horizontal,a=e.spinSize,f=e.containerSize,l=e.style,R=e.thumbStyle,m=t.useState(!1),d=(0,C.Z)(m,2),M=d[0],y=d[1],O=t.useState(null),z=(0,C.Z)(O,2),$=z[0],V=z[1],Z=t.useState(null),j=(0,C.Z)(Z,2),I=j[0],k=j[1],N=!h,re=t.useRef(),x=t.useRef(),W=t.useState(!1),ae=(0,C.Z)(W,2),oe=ae[0],q=ae[1],F=t.useRef(),K=function(){clearTimeout(F.current),q(!0),F.current=setTimeout(function(){q(!1)},3e3)},le=c-f||0,ve=f-a||0,ie=le>0,A=t.useMemo(function(){if(r===0||le===0)return 0;var P=r/le;return P*ve},[r,le,ve]),Pe=function(D){D.stopPropagation(),D.preventDefault()},de=t.useRef({top:A,dragging:M,pageY:$,startTop:I});de.current={top:A,dragging:M,pageY:$,startTop:I};var pe=function(D){y(!0),V(Ve(D,g)),k(de.current.top),v(),D.stopPropagation(),D.preventDefault()};t.useEffect(function(){var P=function(Ee){Ee.preventDefault()},D=re.current,Q=x.current;return D.addEventListener("touchstart",P),Q.addEventListener("touchstart",pe),function(){D.removeEventListener("touchstart",P),Q.removeEventListener("touchstart",pe)}},[]);var Me=t.useRef();Me.current=le;var ye=t.useRef();ye.current=ve,t.useEffect(function(){if(M){var P,D=function(Ee){var be=de.current,He=be.dragging,he=be.pageY,Oe=be.startTop;if(B.Z.cancel(P),He){var Ze=Ve(Ee,g)-he,ue=Oe;!N&&g?ue-=Ze:ue+=Ze;var Te=Me.current,se=ye.current,ee=se?ue/se:0,Y=Math.ceil(ee*Te);Y=Math.max(Y,0),Y=Math.min(Y,Te),P=(0,B.Z)(function(){E(Y,g)})}},Q=function(){y(!1),S()};return window.addEventListener("mousemove",D),window.addEventListener("touchmove",D),window.addEventListener("mouseup",Q),window.addEventListener("touchend",Q),function(){window.removeEventListener("mousemove",D),window.removeEventListener("touchmove",D),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),B.Z.cancel(P)}}},[M]),t.useEffect(function(){K()},[r]),t.useImperativeHandle(s,function(){return{delayHidden:K}});var J="".concat(o,"-scrollbar"),w={position:"absolute",visibility:oe&&ie?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(w.height=8,w.left=0,w.right=0,w.bottom=0,U.height="100%",U.width=a,N?U.left=A:U.right=A):(w.width=8,w.top=0,w.bottom=0,N?w.right=0:w.left=0,U.width="100%",U.height=a,U.top=A),t.createElement("div",{ref:re,className:X()(J,(n={},(0,H.Z)(n,"".concat(J,"-horizontal"),g),(0,H.Z)(n,"".concat(J,"-vertical"),!g),(0,H.Z)(n,"".concat(J,"-visible"),oe),n)),style:(0,L.Z)((0,L.Z)({},w),l),onMouseDown:Pe,onMouseMove:K},t.createElement("div",{ref:x,className:X()("".concat(J,"-thumb"),(0,H.Z)({},"".concat(J,"-thumb-moving"),M)),style:(0,L.Z)((0,L.Z)({},U),R),onMouseDown:pe}))}),Ke=ct;function ft(e){var s=e.children,n=e.setRef,o=t.useCallback(function(h){n(h)},[]);return t.cloneElement(s,{ref:o})}function vt(e,s,n,o,h,r,c){var v=c.getKey;return e.slice(s,n+1).map(function(S,E){var g=s+E,a=r(S,g,{style:{width:o}}),f=v(S);return t.createElement(ft,{key:f,setRef:function(R){return h(S,R)}},a)})}var dt=b(34203),ht=b(15671),gt=b(43144),mt=function(){function e(){(0,ht.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,gt.Z)(e,[{key:"set",value:function(n,o){this.maps[n]=o,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}(),St=mt;function Rt(e,s,n){var o=t.useState(0),h=(0,C.Z)(o,2),r=h[0],c=h[1],v=(0,t.useRef)(new Map),S=(0,t.useRef)(new St),E=(0,t.useRef)();function g(){B.Z.cancel(E.current)}function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var R=function(){v.current.forEach(function(d,M){if(d&&d.offsetParent){var y=(0,dt.Z)(d),O=y.offsetHeight;S.current.get(M)!==O&&S.current.set(M,y.offsetHeight)}}),c(function(d){return d+1})};l?R():E.current=(0,B.Z)(R)}function f(l,R){var m=e(l),d=v.current.get(m);R?(v.current.set(m,R),a()):v.current.delete(m),!d!=!R&&(R?s==null||s(l):n==null||n(l))}return(0,t.useEffect)(function(){return g},[]),[f,a,S.current,r]}var Re=b(8410),Ae=b(56790),pt=10;function Mt(e,s,n,o,h,r,c,v){var S=t.useRef(),E=t.useState(null),g=(0,C.Z)(E,2),a=g[0],f=g[1];return(0,Re.Z)(function(){if(a&&a.times=0;W-=1){var ae=h(s[W]),oe=n.get(ae);if(oe===void 0){y=!0;break}if(x-=oe,x<=0)break}switch($){case"top":z=Z-d;break;case"bottom":z=j-M+d;break;default:{var q=e.current.scrollTop,F=q+M;ZF&&(O="bottom")}}z!==null&&c(z),z!==a.lastTop&&(y=!0)}y&&f(function(K){return(0,L.Z)((0,L.Z)({},K),{},{times:K.times+1,targetAlign:O,lastTop:z})})}},[a,e.current]),function(l){if(l==null){v();return}if(B.Z.cancel(S.current),typeof l=="number")c(l);else if(l&&(0,me.Z)(l)==="object"){var R,m=l.align;"index"in l?R=l.index:R=s.findIndex(function(y){return h(y)===l.key});var d=l.offset,M=d===void 0?0:d;f({times:0,index:R,offset:M,originAlign:m})}}}function Qt(e,s,n,o){var h=n-e,r=s-n,c=Math.min(h,r)*2;if(o<=c){var v=Math.floor(o/2);return o%2?n+v+1:n-v}return h>r?n-(o-r):n+(o-h)}function yt(e,s,n){var o=e.length,h=s.length,r,c;if(o===0&&h===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,S=c<0&&r.current.top||c>0&&r.current.bottom;return v&&S?(clearTimeout(o.current),n.current=!1):(!S||n.current)&&h(),!n.current&&S}};function Zt(e,s,n,o,h){var r=(0,t.useRef)(0),c=(0,t.useRef)(null),v=(0,t.useRef)(null),S=(0,t.useRef)(!1),E=Ge(s,n);function g(d,M){B.Z.cancel(c.current),r.current+=M,v.current=M,!E(M)&&(Ue||d.preventDefault(),c.current=(0,B.Z)(function(){var y=S.current?10:1;h(r.current*y),r.current=0}))}function a(d,M){h(M,!0),Ue||d.preventDefault()}var f=(0,t.useRef)(null),l=(0,t.useRef)(null);function R(d){if(e){B.Z.cancel(l.current),l.current=(0,B.Z)(function(){f.current=null},2);var M=d.deltaX,y=d.deltaY,O=d.shiftKey,z=M,$=y;(f.current==="sx"||!f.current&&O&&y&&!M)&&(z=y,$=0,f.current="sx");var V=Math.abs(z),Z=Math.abs($);f.current===null&&(f.current=o&&V>Z?"x":"y"),f.current==="y"?g(d,$):a(d,z)}}function m(d){e&&(S.current=d.detail===v.current)}return[R,m]}var xt=14/15;function Ct(e,s,n){var o=(0,t.useRef)(!1),h=(0,t.useRef)(0),r=(0,t.useRef)(null),c=(0,t.useRef)(null),v,S=function(f){if(o.current){var l=Math.ceil(f.touches[0].pageY),R=h.current-l;h.current=l,n(R)&&f.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){R*=xt,(!n(R,!0)||Math.abs(R)<=.1)&&clearInterval(c.current)},16)}},E=function(){o.current=!1,v()},g=function(f){v(),f.touches.length===1&&!o.current&&(o.current=!0,h.current=Math.ceil(f.touches[0].pageY),r.current=f.target,r.current.addEventListener("touchmove",S),r.current.addEventListener("touchend",E))};v=function(){r.current&&(r.current.removeEventListener("touchmove",S),r.current.removeEventListener("touchend",E))},(0,Re.Z)(function(){return e&&s.current.addEventListener("touchstart",g),function(){var a;(a=s.current)===null||a===void 0||a.removeEventListener("touchstart",g),v(),clearInterval(c.current)}},[e])}var Lt=20;function je(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/s*100;return isNaN(n)&&(n=0),n=Math.max(n,Lt),n=Math.min(n,e/2),Math.floor(n)}function wt(e,s,n,o){var h=t.useMemo(function(){return[new Map,[]]},[e,n.id,o]),r=(0,C.Z)(h,2),c=r[0],v=r[1],S=function(g){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,f=c.get(g),l=c.get(a);if(f===void 0||l===void 0)for(var R=e.length,m=v.length;mr||!!m),N=R==="rtl",re=X()(o,(0,H.Z)({},"".concat(o,"-rtl"),N),h),x=g||Tt,W=(0,t.useRef)(),ae=(0,t.useRef)(),oe=(0,t.useState)(0),q=(0,C.Z)(oe,2),F=q[0],K=q[1],le=(0,t.useState)(0),ve=(0,C.Z)(le,2),ie=ve[0],A=ve[1],Pe=(0,t.useState)(!1),de=(0,C.Z)(Pe,2),pe=de[0],Me=de[1],ye=function(){Me(!0)},J=function(){Me(!1)},w=t.useCallback(function(i){return typeof f=="function"?f(i):i==null?void 0:i[f]},[f]),U={getKey:w};function P(i){K(function(u){var p;typeof i=="function"?p=i(u):p=i;var T=Wt(p);return W.current.scrollTop=T,T})}var D=(0,t.useRef)({start:0,end:x.length}),Q=(0,t.useRef)(),De=Et(x,w),Ee=(0,C.Z)(De,1),be=Ee[0];Q.current=be;var He=Rt(w,null,null),he=(0,C.Z)(He,4),Oe=he[0],Ze=he[1],ue=he[2],Te=he[3],se=t.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:x.length-1,offset:void 0};if(!k){var i;return{scrollHeight:((i=ae.current)===null||i===void 0?void 0:i.offsetHeight)||0,start:0,end:x.length-1,offset:void 0}}for(var u=0,p,T,ne,Gt=x.length,Le=0;Le=F&&p===void 0&&(p=Le,T=u),Xe>F+r&&ne===void 0&&(ne=Le),u=Xe}return p===void 0&&(p=0,T=0,ne=Math.ceil(r/c)),ne===void 0&&(ne=x.length-1),ne=Math.min(ne+1,x.length-1),{scrollHeight:u,start:p,end:ne,offset:T}},[k,I,F,x,Te,r]),ee=se.scrollHeight,Y=se.start,xe=se.end,Qe=se.offset;D.current.start=Y,D.current.end=xe;var It=t.useState({width:0,height:r}),_e=(0,C.Z)(It,2),te=_e[0],Nt=_e[1],Ft=function(u){Nt({width:u.width||u.offsetWidth,height:u.height||u.offsetHeight})},qe=(0,t.useRef)(),et=(0,t.useRef)(),$t=t.useMemo(function(){return je(te.width,m)},[te.width,m]),kt=t.useMemo(function(){return je(te.height,ee)},[te.height,ee]),Ie=ee-r,Ne=(0,t.useRef)(Ie);Ne.current=Ie;function Wt(i){var u=i;return Number.isNaN(Ne.current)||(u=Math.min(u,Ne.current)),u=Math.max(u,0),u}var tt=F<=0,nt=F>=Ie,Yt=Ge(tt,nt),Fe=function(){return{x:N?-ie:ie,y:F}},$e=(0,t.useRef)(Fe()),ke=(0,Ae.zX)(function(){if(O){var i=Fe();($e.current.x!==i.x||$e.current.y!==i.y)&&(O(i),$e.current=i)}});function rt(i,u){var p=i;u?((0,we.flushSync)(function(){A(p)}),ke()):P(p)}function Xt(i){var u=i.currentTarget.scrollTop;u!==F&&P(u),y==null||y(i),ke()}var We=function(u){var p=u,T=m-te.width;return p=Math.max(p,0),p=Math.min(p,T),p},Bt=(0,Ae.zX)(function(i,u){u?((0,we.flushSync)(function(){A(function(p){var T=p+(N?-i:i);return We(T)})}),ke()):P(function(p){var T=p+i;return T})}),Vt=Zt(I,tt,nt,!!m,Bt),at=(0,C.Z)(Vt,2),Ye=at[0],ot=at[1];Ct(I,W,function(i,u){return Yt(i,u)?!1:(Ye({preventDefault:function(){},deltaY:i}),!0)}),(0,Re.Z)(function(){function i(p){I&&p.preventDefault()}var u=W.current;return u.addEventListener("wheel",Ye),u.addEventListener("DOMMouseScroll",ot),u.addEventListener("MozMousePixelScroll",i),function(){u.removeEventListener("wheel",Ye),u.removeEventListener("DOMMouseScroll",ot),u.removeEventListener("MozMousePixelScroll",i)}},[I]),(0,Re.Z)(function(){m&&A(function(i){return We(i)})},[te.width,m]);var lt=function(){var u,p;(u=qe.current)===null||u===void 0||u.delayHidden(),(p=et.current)===null||p===void 0||p.delayHidden()},it=Mt(W,x,ue,c,w,function(){return Ze(!0)},P,lt);t.useImperativeHandle(s,function(){return{getScrollInfo:Fe,scrollTo:function(u){function p(T){return T&&(0,me.Z)(T)==="object"&&("left"in T||"top"in T)}p(u)?(u.left!==void 0&&A(We(u.left)),it(u.top)):it(u)}}}),(0,Re.Z)(function(){if(z){var i=x.slice(Y,xe+1);z(i,x)}},[Y,xe,x]);var Kt=wt(x,w,ue,c),At=V==null?void 0:V({start:Y,end:xe,virtual:k,offsetX:ie,offsetY:Qe,rtl:N,getSize:Kt}),Ut=vt(x,Y,xe,m,Oe,a,U),Ce=null;r&&(Ce=(0,L.Z)((0,H.Z)({},S?"height":"maxHeight",r),zt),I&&(Ce.overflowY="hidden",m&&(Ce.overflowX="hidden"),pe&&(Ce.pointerEvents="none")));var ut={};return N&&(ut.dir="rtl"),t.createElement("div",(0,ce.Z)({style:(0,L.Z)((0,L.Z)({},E),{},{position:"relative"}),className:re},ut,j),t.createElement(G.Z,{onResize:Ft},t.createElement(M,{className:"".concat(o,"-holder"),style:Ce,ref:W,onScroll:Xt,onMouseEnter:lt},t.createElement(_,{prefixCls:o,height:ee,offsetX:ie,offsetY:Qe,scrollWidth:m,onInnerResize:Ze,ref:ae,innerProps:$,rtl:N,extra:At},Ut))),k&&ee>r&&t.createElement(Ke,{ref:qe,prefixCls:o,scrollOffset:F,scrollRange:ee,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:J,spinSize:kt,containerSize:te.height,style:Z==null?void 0:Z.verticalScrollBar,thumbStyle:Z==null?void 0:Z.verticalScrollBarThumb}),k&&m&&t.createElement(Ke,{ref:et,prefixCls:o,scrollOffset:ie,scrollRange:m,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:J,spinSize:$t,containerSize:te.width,horizontal:!0,style:Z==null?void 0:Z.horizontalScrollBar,thumbStyle:Z==null?void 0:Z.horizontalScrollBarThumb}))}var Je=t.forwardRef(Pt);Je.displayName="List";var Ht=Je,Ot=Ht},36459:function(Be,ge,b){b.d(ge,{Z:function(){return ce}});function ce(L){if(L==null)throw new TypeError("Cannot destructure "+L)}}}]); diff --git a/176.cbd6a9a4.async.js b/176.cbd6a9a4.async.js deleted file mode 100644 index c4e5eae..0000000 --- a/176.cbd6a9a4.async.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[176],{2143:function(je,He,O){"use strict";var ee=O(73847),R=O(67294),ne=O(96057);function F(S,v){return Ee(S)||X(S,v)||ae(S,v)||Y()}function Y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(S,v){if(S){if(typeof S=="string")return ie(S,v);var c=Object.prototype.toString.call(S).slice(8,-1);if(c==="Object"&&S.constructor&&(c=S.constructor.name),c==="Map"||c==="Set")return Array.from(S);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ie(S,v)}}function ie(S,v){(v==null||v>S.length)&&(v=S.length);for(var c=0,N=new Array(v);c")},function:function(v){var c=this,N=v.signature;if(!N)return"Function";var Z="oneOf"in N?N.oneOf:[N];return Z.map(function(T){return"".concat(T.isAsync?"async ":"","(").concat(T.arguments.map(function(w){return"".concat(w.key,": ").concat(c.toString(w))}).join(", "),") => ").concat(c.toString(T.returnType))}).join(" | ")},dom:function(v){return v.className||"DOM"},enum:function(v){return v.enum.map(function(c){return JSON.stringify(c)}).join(" | ")},oneOf:function(v){var c=this;return v.oneOf.map(function(N){return c.getValidClassName(N)||c.toString(N)}).join(" | ")},getValidClassName:function(v){return"className"in v&&typeof v.className=="string"&&v.className!=="__type"?v.className:null}},Ce=function(v){var c=useState(function(){return me.toString(v)}),N=F(c,2),Z=N[0],T=N[1];return useEffect(function(){T(me.toString(v))},[v]),React.createElement("code",null,Z)},re=function(v){var c,N=useRouteMeta(),Z=N.frontmatter,T=useAtomAssets(),w=T.components,B=v.id||Z.atomId,W=useIntl();if(!B)throw new Error("`id` properties if required for API component!");var C=w==null?void 0:w[B];return React.createElement("div",{className:"markdown"},React.createElement(Table,null,React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",null,W.formatMessage({id:"api.component.name"})),React.createElement("th",null,W.formatMessage({id:"api.component.description"})),React.createElement("th",null,W.formatMessage({id:"api.component.type"})),React.createElement("th",null,W.formatMessage({id:"api.component.default"})))),React.createElement("tbody",null,C&&(c=C.propsConfig)!==null&&c!==void 0&&c.properties?Object.entries(C.propsConfig.properties).map(function($){var U,te=F($,2),j=te[0],J=te[1];return React.createElement("tr",{key:j},React.createElement("td",null,j),React.createElement("td",null,J.description||"--"),React.createElement("td",null,React.createElement(Ce,J)),React.createElement("td",null,React.createElement("code",null,(U=C.propsConfig.required)!==null&&U!==void 0&&U.includes(j)?W.formatMessage({id:"api.component.required"}):JSON.stringify(J.default)||"--")))}):React.createElement("tr",null,React.createElement("td",{colSpan:4},W.formatMessage({id:"api.component.".concat(w?"not.found":"unavailable")},{id:B}))))))},le=null},93359:function(je,He,O){"use strict";var ee=O(67294);function R(){return R=Object.assign?Object.assign.bind():function(Y){for(var ae=1;aev.length)&&(c=v.length);for(var N=0,Z=new Array(c);N=0)&&Object.prototype.propertyIsEnumerable.call(v,Z)&&(N[Z]=v[Z])}return N}function re(v,c){if(v==null)return{};var N={},Z=Object.keys(v),T,w;for(w=0;w=0)&&(N[T]=v[T]);return N}var le=function(c){var N=c.children,Z=Ce(c,F),T=(0,ne.useRef)(null),w=(0,ne.useState)(!1),B=Y(w,2),W=B[0],C=B[1],$=(0,ne.useState)(!1),U=Y($,2),te=U[0],j=U[1];return(0,ne.useEffect)(function(){var J=T.current;if(J){var oe=R()(function(){C(J.scrollLeft>0),j(J.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(f){var t=f[o.key],r=f[o.children];warning(t!=null,"Tree node must have a certain key: [".concat(l).concat(t,"]"));var a=String(t);warning(!i.has(a)||t===null||t===void 0,"Same 'key' exist in the Tree: ".concat(a)),i.set(a,!0),e(r,"".concat(l).concat(a," > "))})}e(n)}function Fe(n){function o(i){var e=(0,J.Z)(i);return e.map(function(d){if(!Se(d))return(0,v.ZP)(!d,"Tree/TreeNode can only accept TreeNode as children."),null;var l=d.key,f=d.props,t=f.children,r=(0,B.Z)(f,de),a=(0,F.Z)({key:l},r),s=o(t);return s.length&&(a.children=s),a}).filter(function(d){return d})}return o(n)}function We(n,o,i){var e=ve(i),d=e._title,l=e.key,f=e.children,t=new Set(o===!0?[]:o),r=[];function a(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return s.map(function(p,y){for(var h=fe(u?u.pos:"0",y),m=Ne(p[l],h),K,g=0;g1&&arguments[1]!==void 0?arguments[1]:{},i=o.initWrapper,e=o.processEntity,d=o.onProcessFinished,l=o.externalGetKey,f=o.childrenPropName,t=o.fieldNames,r=arguments.length>2?arguments[2]:void 0,a=l||r,s={},u={},p={posEntities:s,keyEntities:u};return i&&(p=i(p)||p),et(n,function(y){var h=y.node,m=y.index,K=y.pos,g=y.key,b=y.parentPos,E=y.level,k=y.nodes,x={node:h,nodes:k,index:m,key:g,pos:K,level:E},D=Ne(g,K);s[K]=x,u[D]=x,x.parent=s[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),e&&e(x,p)},{externalGetKey:a,childrenPropName:f,fieldNames:t}),d&&d(p),p}function pe(n,o){var i=o.expandedKeys,e=o.selectedKeys,d=o.loadedKeys,l=o.loadingKeys,f=o.checkedKeys,t=o.halfCheckedKeys,r=o.dragOverNodeKey,a=o.dropPosition,s=o.keyEntities,u=j(s,n),p={eventKey:n,expanded:i.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:d.indexOf(n)!==-1,loading:l.indexOf(n)!==-1,checked:f.indexOf(n)!==-1,halfChecked:t.indexOf(n)!==-1,pos:String(u?u.pos:""),dragOver:r===n&&a===0,dragOverGapTop:r===n&&a===-1,dragOverGapBottom:r===n&&a===1};return p}function _(n){var o=n.data,i=n.expanded,e=n.selected,d=n.checked,l=n.loaded,f=n.loading,t=n.halfChecked,r=n.dragOver,a=n.dragOverGapTop,s=n.dragOverGapBottom,u=n.pos,p=n.active,y=n.eventKey,h=(0,F.Z)((0,F.Z)({},o),{},{expanded:i,selected:e,checked:d,loaded:l,loading:f,halfChecked:t,dragOver:r,dragOverGapTop:a,dragOverGapBottom:s,pos:u,active:p,key:y});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,v.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),h}var tt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ye="open",Ae="close",V="---",ge=function(n){(0,Ee.Z)(i,n);var o=(0,me.Z)(i);function i(){var e;(0,ae.Z)(this,i);for(var d=arguments.length,l=new Array(d),f=0;f0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=n.length,e=o.length;if(Math.abs(i-e)!==1)return{add:!1,key:null};function d(l,f){var t=new Map;l.forEach(function(a){t.set(a,!0)});var r=f.filter(function(a){return!t.has(a)});return r.length===1?r[0]:null}return i ").concat(o);return o}var Nt=c.forwardRef(function(n,o){var i=n.prefixCls,e=n.data,d=n.selectable,l=n.checkable,f=n.expandedKeys,t=n.selectedKeys,r=n.checkedKeys,a=n.loadedKeys,s=n.loadingKeys,u=n.halfCheckedKeys,p=n.keyEntities,y=n.disabled,h=n.dragging,m=n.dragOverNodeKey,K=n.dropPosition,g=n.motion,b=n.height,E=n.itemHeight,k=n.virtual,x=n.focusable,D=n.activeItem,I=n.focused,L=n.tabIndex,P=n.onKeyDown,H=n.onFocus,A=n.onBlur,M=n.onActiveChange,G=n.onListChangeStart,Q=n.onListChangeEnd,se=(0,B.Z)(n,Ht),ce=c.useRef(null),q=c.useRef(null);c.useImperativeHandle(o,function(){return{scrollTo:function(xe){ce.current.scrollTo(xe)},getIndentWidth:function(){return q.current.offsetWidth}}});var ye=c.useState(f),Ie=(0,w.Z)(ye,2),Be=Ie[0],Ge=Ie[1],ue=c.useState(e),Oe=(0,w.Z)(ue,2),he=Oe[0],Me=Oe[1],lt=c.useState(e),Qe=(0,w.Z)(lt,2),ct=Qe[0],Ze=Qe[1],ut=c.useState([]),Te=(0,w.Z)(ut,2),hn=Te[0],ft=Te[1],mn=c.useState(null),Lt=(0,w.Z)(mn,2),Kn=Lt[0],vt=Lt[1],At=c.useRef(e);At.current=e;function pt(){var z=At.current;Me(z),Ze(z),ft([]),vt(null),Q()}(0,W.Z)(function(){Ge(f);var z=jt(Be,f);if(z.key!==null)if(z.add){var xe=he.findIndex(function(_e){var Ve=_e.key;return Ve===z.key}),Pe=bt(yt(he,e,z.key),k,b,E),$e=he.slice();$e.splice(xe+1,0,Kt),Ze($e),ft(Pe),vt("show")}else{var we=e.findIndex(function(_e){var Ve=_e.key;return Ve===z.key}),Le=bt(yt(e,he,z.key),k,b,E),qe=e.slice();qe.splice(we+1,0,Kt),Ze(qe),ft(Le),vt("hide")}else he!==e&&(Me(e),Ze(e))},[f,e]),c.useEffect(function(){h||pt()},[h]);var bn=g?ct:e,Rt={expandedKeys:f,selectedKeys:t,loadedKeys:a,loadingKeys:s,checkedKeys:r,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:K,keyEntities:p};return c.createElement(c.Fragment,null,I&&D&&c.createElement("span",{style:ht,"aria-live":"assertive"},Wt(D)),c.createElement("div",null,c.createElement("input",{style:ht,disabled:x===!1||y,tabIndex:x!==!1?L:null,onKeyDown:P,onFocus:H,onBlur:A,value:"",onChange:Ft,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(i,"-indent")},c.createElement("div",{ref:q,className:"".concat(i,"-indent-unit")}))),c.createElement(C.Z,(0,ee.Z)({},se,{data:bn,itemKey:Et,height:b,fullHeight:!1,virtual:k,itemHeight:E,prefixCls:"".concat(i,"-list"),ref:ce,onVisibleChange:function(xe,Pe){var $e=new Set(xe),we=Pe.filter(function(Le){return!$e.has(Le)});we.some(function(Le){return Et(Le)===De})&&pt()}}),function(z){var xe=z.pos,Pe=(0,ee.Z)({},((0,T.Z)(z.data),z.data)),$e=z.title,we=z.key,Le=z.isStart,qe=z.isEnd,_e=Ne(we,xe);delete Pe.key,delete Pe.children;var Ve=pe(_e,Rt);return c.createElement($t,(0,ee.Z)({},Pe,Ve,{title:$e,active:!!D&&we===D.key,pos:xe,data:z.data,isStart:Le,isEnd:qe,motion:g,motionNodes:we===De?hn:null,motionType:Kn,onMotionStart:G,onMotionEnd:pt,treeNodeRequiredProps:Rt,onMouseMove:function(){M(null)}}))}))});Nt.displayName="NodeList";var Ut=Nt,Bt=null;function be(n,o){if(!n)return[];var i=n.slice(),e=i.indexOf(o);return e>=0&&i.splice(e,1),i}function ke(n,o){var i=(n||[]).slice();return i.indexOf(o)===-1&&i.push(o),i}function rt(n){return n.split("-")}function Gt(n,o){var i=[],e=j(o,n);function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(f){var t=f.key,r=f.children;i.push(t),d(r)})}return d(e.children),i}function _t(n){if(n.parent){var o=rt(n.pos);return Number(o[o.length-1])===n.parent.children.length-1}return!1}function Vt(n){var o=rt(n.pos);return Number(o[o.length-1])===0}function kt(n,o,i,e,d,l,f,t,r,a){var s,u=n.clientX,p=n.clientY,y=n.target.getBoundingClientRect(),h=y.top,m=y.height,K=(a==="rtl"?-1:1)*(((d==null?void 0:d.x)||0)-u),g=(K-12)/e,b=j(t,i.props.eventKey);if(p-1.5?l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1:l({dragNode:M,dropNode:G,dropPosition:0})?P=0:l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1:l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1,{dropPosition:P,dropLevelOffset:H,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:L,dropContainerKey:P===0?null:((s=b.parent)===null||s===void 0?void 0:s.key)||null,dropAllowed:Q}}function xt(n,o){if(n){var i=o.multiple;return i?n.slice():n.length?[n[0]]:n}}var zt=function(o){return o};function Xt(n,o){if(!n)return[];var i=o||{},e=i.processProps,d=e===void 0?zt:e,l=Array.isArray(n)?n:[n];return l.map(function(f){var t=f.children,r=_objectWithoutProperties(f,Bt),a=Xt(t,o);return React.createElement(TreeNode,_extends({key:r.key},d(r)),a)})}function at(n){if(!n)return null;var o;if(Array.isArray(n))o={checkedKeys:n,halfCheckedKeys:void 0};else if((0,ne.Z)(n)==="object")o={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return(0,v.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return o}function Ct(n,o){var i=new Set;function e(d){if(!i.has(d)){var l=j(o,d);if(l){i.add(d);var f=l.parent,t=l.node;t.disabled||f&&e(f.key)}}}return(n||[]).forEach(function(d){e(d)}),(0,Y.Z)(i)}function St(n,o){var i=new Set;return n.forEach(function(e){o.has(e)||i.add(e)}),i}function Yt(n){var o=n||{},i=o.disabled,e=o.disableCheckbox,d=o.checkable;return!!(i||e)||d===!1}function Jt(n,o,i,e){for(var d=new Set(n),l=new Set,f=0;f<=i;f+=1){var t=o.get(f)||new Set;t.forEach(function(u){var p=u.key,y=u.node,h=u.children,m=h===void 0?[]:h;d.has(p)&&!e(y)&&m.filter(function(K){return!e(K.node)}).forEach(function(K){d.add(K.key)})})}for(var r=new Set,a=i;a>=0;a-=1){var s=o.get(a)||new Set;s.forEach(function(u){var p=u.parent,y=u.node;if(!(e(y)||!u.parent||r.has(u.parent.key))){if(e(u.parent.node)){r.add(p.key);return}var h=!0,m=!1;(p.children||[]).filter(function(K){return!e(K.node)}).forEach(function(K){var g=K.key,b=d.has(g);h&&!b&&(h=!1),!m&&(b||l.has(g))&&(m=!0)}),h&&d.add(p.key),m&&l.add(p.key),r.add(p.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(St(l,d))}}function Qt(n,o,i,e,d){for(var l=new Set(n),f=new Set(o),t=0;t<=e;t+=1){var r=i.get(t)||new Set;r.forEach(function(p){var y=p.key,h=p.node,m=p.children,K=m===void 0?[]:m;!l.has(y)&&!f.has(y)&&!d(h)&&K.filter(function(g){return!d(g.node)}).forEach(function(g){l.delete(g.key)})})}f=new Set;for(var a=new Set,s=e;s>=0;s-=1){var u=i.get(s)||new Set;u.forEach(function(p){var y=p.parent,h=p.node;if(!(d(h)||!p.parent||a.has(p.parent.key))){if(d(p.parent.node)){a.add(y.key);return}var m=!0,K=!1;(y.children||[]).filter(function(g){return!d(g.node)}).forEach(function(g){var b=g.key,E=l.has(b);m&&!E&&(m=!1),!K&&(E||f.has(b))&&(K=!0)}),m||l.delete(y.key),K&&f.add(y.key),a.add(y.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(St(f,l))}}function ot(n,o,i,e){var d=[],l;e?l=e:l=Yt;var f=new Set(n.filter(function(s){var u=!!j(i,s);return u||d.push(s),u})),t=new Map,r=0;Object.keys(i).forEach(function(s){var u=i[s],p=u.level,y=t.get(p);y||(y=new Set,t.set(p,y)),y.add(u),r=Math.max(r,p)}),(0,v.ZP)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return o===!0?a=Jt(f,t,r,l):a=Qt(f,o.halfCheckedKeys,t,r,l),a}var qt=10,Dt=function(n){(0,Ee.Z)(i,n);var o=(0,me.Z)(i);function i(){var e;(0,ae.Z)(this,i);for(var d=arguments.length,l=new Array(d),f=0;f2&&arguments[2]!==void 0?arguments[2]:!1,u=e.state,p=u.dragChildrenKeys,y=u.dropPosition,h=u.dropTargetKey,m=u.dropTargetPos,K=u.dropAllowed;if(K){var g=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),h!==null){var b=(0,F.Z)((0,F.Z)({},pe(h,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===h,data:j(e.state.keyEntities,h).node}),E=p.indexOf(h)!==-1;(0,v.ZP)(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var k=rt(m),x={event:t,node:_(b),dragNode:e.dragNode?_(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(p),dropToGap:y!==0,dropPosition:y+Number(k[k.length-1])};s||g==null||g(x),e.dragNode=null}}},e.cleanDragState=function(){var t=e.state.draggingNodeKey;t!==null&&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,r){var a=e.state,s=a.expandedKeys,u=a.flattenNodes,p=r.expanded,y=r.key,h=r.isLeaf;if(!(h||t.shiftKey||t.metaKey||t.ctrlKey)){var m=u.filter(function(g){return g.key===y})[0],K=_((0,F.Z)((0,F.Z)({},pe(y,e.getTreeNodeRequiredProps())),{},{data:m.data}));e.setExpandedKeys(p?be(s,y):ke(s,y)),e.onNodeExpand(t,K)}},e.onNodeClick=function(t,r){var a=e.props,s=a.onClick,u=a.expandAction;u==="click"&&e.triggerExpandActionExpand(t,r),s==null||s(t,r)},e.onNodeDoubleClick=function(t,r){var a=e.props,s=a.onDoubleClick,u=a.expandAction;u==="doubleClick"&&e.triggerExpandActionExpand(t,r),s==null||s(t,r)},e.onNodeSelect=function(t,r){var a=e.state.selectedKeys,s=e.state,u=s.keyEntities,p=s.fieldNames,y=e.props,h=y.onSelect,m=y.multiple,K=r.selected,g=r[p.key],b=!K;b?m?a=ke(a,g):a=[g]:a=be(a,g);var E=a.map(function(k){var x=j(u,k);return x?x.node:null}).filter(function(k){return k});e.setUncontrolledState({selectedKeys:a}),h==null||h(a,{event:"select",selected:b,node:r,selectedNodes:E,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,r,a){var s=e.state,u=s.keyEntities,p=s.checkedKeys,y=s.halfCheckedKeys,h=e.props,m=h.checkStrictly,K=h.onCheck,g=r.key,b,E={event:"check",node:r,checked:a,nativeEvent:t.nativeEvent};if(m){var k=a?ke(p,g):be(p,g),x=be(y,g);b={checked:k,halfChecked:x},E.checkedNodes=k.map(function(A){return j(u,A)}).filter(function(A){return A}).map(function(A){return A.node}),e.setUncontrolledState({checkedKeys:k})}else{var D=ot([].concat((0,Y.Z)(p),[g]),!0,u),I=D.checkedKeys,L=D.halfCheckedKeys;if(!a){var P=new Set(I);P.delete(g);var H=ot(Array.from(P),{checked:!1,halfCheckedKeys:L},u);I=H.checkedKeys,L=H.halfCheckedKeys}b=I,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=L,I.forEach(function(A){var M=j(u,A);if(M){var G=M.node,Q=M.pos;E.checkedNodes.push(G),E.checkedNodesPositions.push({node:G,pos:Q})}}),e.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:L})}K==null||K(b,E)},e.onNodeLoad=function(t){var r=t.key,a=new Promise(function(s,u){e.setState(function(p){var y=p.loadedKeys,h=y===void 0?[]:y,m=p.loadingKeys,K=m===void 0?[]:m,g=e.props,b=g.loadData,E=g.onLoad;if(!b||h.indexOf(r)!==-1||K.indexOf(r)!==-1)return null;var k=b(t);return k.then(function(){var x=e.state.loadedKeys,D=ke(x,r);E==null||E(D,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:D}),e.setState(function(I){return{loadingKeys:be(I.loadingKeys,r)}}),s()}).catch(function(x){if(e.setState(function(I){return{loadingKeys:be(I.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=qt){var D=e.state.loadedKeys;(0,v.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ke(D,r)}),s()}u(x)}),{loadingKeys:ke(K,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(t,r){var a=e.props.onMouseEnter;a==null||a({event:t,node:r})},e.onNodeMouseLeave=function(t,r){var a=e.props.onMouseLeave;a==null||a({event:t,node:r})},e.onNodeContextMenu=function(t,r){var a=e.props.onRightClick;a&&(t.preventDefault(),a({event:t,node:r}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var s=!1,u=!0,p={};Object.keys(t).forEach(function(y){if(y in e.props){u=!1;return}s=!0,p[y]=t[y]}),s&&(!r||u)&&e.setState((0,F.Z)((0,F.Z)({},p),a))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,ie.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var d=this.props,l=d.activeKey,f=d.itemScrollOffset,t=f===void 0?0:f;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:t}))}},{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 d,l=this.state,f=l.focused,t=l.flattenNodes,r=l.keyEntities,a=l.draggingNodeKey,s=l.activeKey,u=l.dropLevelOffset,p=l.dropContainerKey,y=l.dropTargetKey,h=l.dropPosition,m=l.dragOverNodeKey,K=l.indent,g=this.props,b=g.prefixCls,E=g.className,k=g.style,x=g.showLine,D=g.focusable,I=g.tabIndex,L=I===void 0?0:I,P=g.selectable,H=g.showIcon,A=g.icon,M=g.switcherIcon,G=g.draggable,Q=g.checkable,se=g.checkStrictly,ce=g.disabled,q=g.motion,ye=g.loadData,Ie=g.filterTreeNode,Be=g.height,Ge=g.itemHeight,ue=g.virtual,Oe=g.titleRender,he=g.dropIndicatorRender,Me=g.onContextMenu,lt=g.onScroll,Qe=g.direction,ct=g.rootClassName,Ze=g.rootStyle,ut=(0,S.Z)(this.props,{aria:!0,data:!0}),Te;return G&&((0,ne.Z)(G)==="object"?Te=G:typeof G=="function"?Te={nodeDraggable:G}:Te={}),c.createElement(N.Provider,{value:{prefixCls:b,selectable:P,showIcon:H,icon:A,switcherIcon:M,draggable:Te,draggingNodeKey:a,checkable:Q,checkStrictly:se,disabled:ce,keyEntities:r,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:y,dropPosition:h,dragOverNodeKey:m,indent:K,direction:Qe,dropIndicatorRender:he,loadData:ye,filterTreeNode:Ie,titleRender:Oe,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}},c.createElement("div",{role:"tree",className:re()(b,E,ct,(d={},(0,R.Z)(d,"".concat(b,"-show-line"),x),(0,R.Z)(d,"".concat(b,"-focused"),f),(0,R.Z)(d,"".concat(b,"-active-focused"),s!==null),d)),style:Ze},c.createElement(Ut,(0,ee.Z)({ref:this.listRef,prefixCls:b,style:k,data:t,disabled:ce,selectable:P,checkable:!!Q,motion:q,dragging:a!==null,height:Be,itemHeight:Ge,virtual:ue,focusable:D,focused:f,tabIndex:L,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Me,onScroll:lt},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(d,l){var f=l.prevProps,t={prevProps:d};function r(D){return!f&&D in d||f&&f[D]!==d[D]}var a,s=l.fieldNames;if(r("fieldNames")&&(s=ve(d.fieldNames),t.fieldNames=s),r("treeData")?a=d.treeData:r("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Fe(d.children)),a){t.treeData=a;var u=Xe(a,{fieldNames:s});t.keyEntities=(0,F.Z)((0,R.Z)({},De,mt),u.keyEntities)}var p=t.keyEntities||l.keyEntities;if(r("expandedKeys")||f&&r("autoExpandParent"))t.expandedKeys=d.autoExpandParent||!f&&d.defaultExpandParent?Ct(d.expandedKeys,p):d.expandedKeys;else if(!f&&d.defaultExpandAll){var y=(0,F.Z)({},p);delete y[De],t.expandedKeys=Object.keys(y).map(function(D){return y[D].key})}else!f&&d.defaultExpandedKeys&&(t.expandedKeys=d.autoExpandParent||d.defaultExpandParent?Ct(d.defaultExpandedKeys,p):d.defaultExpandedKeys);if(t.expandedKeys||delete t.expandedKeys,a||t.expandedKeys){var h=We(a||l.treeData,t.expandedKeys||l.expandedKeys,s);t.flattenNodes=h}if(d.selectable&&(r("selectedKeys")?t.selectedKeys=xt(d.selectedKeys,d):!f&&d.defaultSelectedKeys&&(t.selectedKeys=xt(d.defaultSelectedKeys,d))),d.checkable){var m;if(r("checkedKeys")?m=at(d.checkedKeys)||{}:!f&&d.defaultCheckedKeys?m=at(d.defaultCheckedKeys)||{}:a&&(m=at(d.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),m){var K=m,g=K.checkedKeys,b=g===void 0?[]:g,E=K.halfCheckedKeys,k=E===void 0?[]:E;if(!d.checkStrictly){var x=ot(b,!0,p);b=x.checkedKeys,k=x.halfCheckedKeys}t.checkedKeys=b,t.halfCheckedKeys=k}}return r("loadedKeys")&&(t.loadedKeys=d.loadedKeys),t}}]),i}(c.Component);Dt.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:Z,allowDrop:function(){return!0},expandAction:!1},Dt.TreeNode=Re;var En=null,Nn=null;function Ue(n){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ue(n)}function Ot(n,o){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o&&(e=e.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),i.push.apply(i,e)}return i}function Tt(n){for(var o=1;on.length)&&(o=n.length);for(var i=0,e=new Array(o);i1&&arguments[1]!==void 0?arguments[1]:"",i=[];return[].concat(n).forEach(function(e,d){var l="".concat(o?"".concat(o,"-"):"").concat(d);switch(e==null?void 0:e.type){case"ul":{var f,t=((f=i[i.length-1])===null||f===void 0?void 0:f.children)||i,r=Je(e.props.children||[],l);t.push.apply(t,sn(r));break}case"li":{var a=Je(e.props.children,l);i.push({title:[].concat(e.props.children).filter(function(s){return s.type!=="ul"}),key:l,children:a,isLeaf:!a.length});break}default:}}),i}var fn=function(o){var i=useState(Je(o)),e=rn(i,2),d=e[0],l=e[1];return useEffect(function(){l(Je(o))},[o]),d},vn=function(o){var i=o.isLeaf,e=o.expanded;return i?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FileOutlined,{fill:"currentColor"})):e?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOpenOutlined,{fill:"currentColor"})):React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOutlined,{fill:"currentColor"}))},pn=function(o){var i=o.isLeaf,e=o.expanded;return i?React.createElement("span",{className:"tree-switcher-leaf-line"}):e?React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(MinusSquareOutlined,{fill:"currentColor"}))):React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(PlusSquareOutlined,{fill:"currentColor"})))},dt=function(){return{height:0,opacity:0}},wt=function(o){var i=o.scrollHeight;return{height:i,opacity:1}},gn=function(o){return{height:o?o.offsetHeight:0}},st=function(o,i){return(i==null?void 0:i.deadline)===!0||i.propertyName==="height"},yn={motionName:"ant-motion-collapse",onAppearStart:dt,onEnterStart:dt,onAppearActive:wt,onEnterActive:wt,onLeaveStart:gn,onLeaveActive:dt,onAppearEnd:st,onEnterEnd:st,onLeaveEnd:st,motionDeadline:500},kn=function(n){var o=fn(n.children),i=createRef(),e=function(l,f){var t=f.isLeaf;t||l.shiftKey||l.metaKey||l.ctrlKey||i.current.onNodeExpand(l,f)};return React.createElement(Tree,{className:"dumi-default-tree",icon:vn,ref:i,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:Tt(Tt({},yn),{},{motionAppear:!1}),onClick:e,treeData:[{key:"0",title:n.title||"",children:o}],defaultExpandAll:!0,switcherIcon:pn})}},93096:function(je,He,O){var ee="Expected a function",R=NaN,ne="[object Symbol]",F=/^\s+|\s+$/g,Y=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,ie=/^0o[0-7]+$/i,X=parseInt,Ee=typeof O.g=="object"&&O.g&&O.g.Object===Object&&O.g,me=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Ee||me||Function("return this")(),re=Object.prototype,le=re.toString,S=Math.max,v=Math.min,c=function(){return Ce.Date.now()};function N(C,$,U){var te,j,J,oe,de,fe,Se=0,Ne=!1,ve=!1,ze=!0;if(typeof C!="function")throw new TypeError(ee);$=W($)||0,T(U)&&(Ne=!!U.leading,ve="maxWait"in U,J=ve?S(W(U.maxWait)||0,$):J,ze="trailing"in U?!!U.trailing:ze);function Fe(V){var ge=te,Ke=j;return te=j=void 0,Se=V,oe=C.apply(Ke,ge),oe}function We(V){return Se=V,de=setTimeout(pe,$),Ne?Fe(V):oe}function et(V){var ge=V-fe,Ke=V-Se,Re=$-ge;return ve?v(Re,J-Ke):Re}function Xe(V){var ge=V-fe,Ke=V-Se;return fe===void 0||ge>=$||ge<0||ve&&Ke>=J}function pe(){var V=c();if(Xe(V))return _(V);de=setTimeout(pe,et(V))}function _(V){return de=void 0,ze&&te?Fe(V):(te=j=void 0,oe)}function tt(){de!==void 0&&clearTimeout(de),Se=0,te=fe=j=de=void 0}function Ye(){return de===void 0?oe:_(c())}function Ae(){var V=c(),ge=Xe(V);if(te=arguments,j=this,fe=V,ge){if(de===void 0)return We(fe);if(ve)return de=setTimeout(pe,$),Fe(fe)}return de===void 0&&(de=setTimeout(pe,$)),oe}return Ae.cancel=tt,Ae.flush=Ye,Ae}function Z(C,$,U){var te=!0,j=!0;if(typeof C!="function")throw new TypeError(ee);return T(U)&&(te="leading"in U?!!U.leading:te,j="trailing"in U?!!U.trailing:j),N(C,$,{leading:te,maxWait:$,trailing:j})}function T(C){var $=typeof C;return!!C&&($=="object"||$=="function")}function w(C){return!!C&&typeof C=="object"}function B(C){return typeof C=="symbol"||w(C)&&le.call(C)==ne}function W(C){if(typeof C=="number")return C;if(B(C))return R;if(T(C)){var $=typeof C.valueOf=="function"?C.valueOf():C;C=T($)?$+"":$}if(typeof C!="string")return C===0?C:+C;C=C.replace(F,"");var U=ae.test(C);return U||ie.test(C)?X(C.slice(2),U?2:8):Y.test(C)?R:+C}je.exports=Z}}]); diff --git a/277.a47f6086.async.js b/277.a47f6086.async.js new file mode 100644 index 0000000..d347b27 --- /dev/null +++ b/277.a47f6086.async.js @@ -0,0 +1,636 @@ +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[277],{37382:function(){window._iconfont_svg_string_3567033='',function(Ze){var o=(o=document.getElementsByTagName("script"))[o.length-1],se=o.getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var fe,p,N,c,ne,be=function(ee,ae){ae.parentNode.insertBefore(ee,ae)};if(se&&!Ze.__iconfont__svg__cssinject__){Ze.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(xe){console&&console.log(xe)}}fe=function(){var ee,ae=document.createElement("div");ae.innerHTML=Ze._iconfont_svg_string_3567033,(ae=ae.getElementsByTagName("svg")[0])&&(ae.setAttribute("aria-hidden","true"),ae.style.position="absolute",ae.style.width=0,ae.style.height=0,ae.style.overflow="hidden",ae=ae,(ee=document.body).firstChild?be(ae,ee.firstChild):ee.appendChild(ae))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(fe,0):(p=function(){document.removeEventListener("DOMContentLoaded",p,!1),fe()},document.addEventListener("DOMContentLoaded",p,!1)):document.attachEvent&&(N=fe,c=Ze.document,ne=!1,Se(),c.onreadystatechange=function(){c.readyState=="complete"&&(c.onreadystatechange=null,ve())})}function ve(){ne||(ne=!0,N())}function Se(){try{c.documentElement.doScroll("left")}catch(xe){return void setTimeout(Se,50)}ve()}}(window)},84731:function(Ze,se,o){"use strict";o.d(se,{B:function(){return c}});var fe=o(24928),p=o(78683),N=o(23978);function c(ne,be,ve){var Se=ne.getWordUntilPosition(be),xe={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ee=[];if(ve==="turf")for(var ae in fe){var Me={label:ae,kind:N.languages.CompletionItemKind.Function,documentation:fe[ae].toString(),insertText:ae,range:xe};ee.push(Me)}else ee=p.Z.chain(p.Z).keys().map(function(ce){return{label:ce,kind:N.languages.CompletionItemKind.Function,insertText:ce,range:xe}}).value();return{suggestions:ee}}},56550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(97857),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15009),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(99289),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5574),_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(36306),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(58580),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(78234),ahooks__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(77598),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(23978),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(67294),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(67421),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2302),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(32865),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20929),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(12510),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(84731),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28804),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(85893),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),geoJonText=_useState6[0],setGeoJonText=_useState6[1],debouncedGeoJsonText=(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(geoJonText,{wait:2e3}),_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(se){return[{range:se.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:se.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(se,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(se,o,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(se,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(se,o,"turf")}})});var monacoChange=function(se){if(language==="json"){setEditorText(se),setGeoJonText(se);return}setScriptContent==null||setScriptContent(se)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Ze,se){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_17__.Z)(function(){var Ze=saveEditorText();autoFitBounds&&bboxAutoFit(Ze)},[debouncedGeoJsonText]);var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},28804:function(Ze,se,o){"use strict";var fe=o(68400),p=o.n(fe),N=o(68479),c,ne=function(){return{appEditor:(0,N.iv)(c||(c=p()([` + width: 100%; + height: 100%; + position: relative; + .react-monaco-editor-container { + width: 100%; + height: 100%; + } + `])))}};se.Z=ne},55375:function(Ze,se,o){"use strict";o.d(se,{AF:function(){return Me},AQ:function(){return ve},Fe:function(){return N},IZ:function(){return xe},Iz:function(){return fe.Iz},K6:function(){return be},QF:function(){return ee},_9:function(){return fe._9},ay:function(){return ae},d7:function(){return c},dY:function(){return ce},dw:function(){return fe.dw},eG:function(){return fe.eG},s3:function(){return Se},u9:function(){return fe.u9},xQ:function(){return fe.xQ},yc:function(){return p}});var fe=o(50599),p=[20,80],N=function(W){return W.RightPanelWidth="RightPanelWidth",W.MapOptions="MapOptions",W.LayerColor="LayerColor",W.HideEditor="HideEditor",W.EditorText="EditorText",W.PopupTrigger="PopupTrigger",W.ActiveRightTabKey="ActiveRightTabKey",W.AutoFitBounds="AutoFitBounds",W.BaseMap="BaseMap",W.officialLayers="officialLayers",W.WktText="WktText",W.Convert="Convert",W.theme="theme",W.cityHistory="cityHistory",W.showIndex="showIndex",W.locale="locale",W.firstOpening="firstOpening",W.wasmPath="wasmPath",W.customTiles="customTiles",W}({}),c=function(W){return W.PointLayer="PointLayer",W.LineLayer="LineLayer",W.PolygonLayer="PolygonLayer",W}({}),ne="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",be="#1677ff",ve={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},Se={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg"},xe={token:"5ae4492ef912cbbc93034fea0e66ff2a"},ee=100,ae="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s&gl=CN&x={x}&y={y}&z={z}",Me="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=h&gl=CN&x={x}&y={y}&z={z}",ce=function(W){return W.GoogleSatellite="googleSatellite",W.VectorMap="vectorMap",W}({})},50599:function(Ze,se,o){"use strict";o.d(se,{Iz:function(){return Se},_9:function(){return xe},dw:function(){return ne},eG:function(){return ee},u9:function(){return ve},xQ:function(){return be}});var fe=o(5574),p=o.n(fe),N=o(17099),c=o.n(N),ne=c().shape({type:c().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:c().array}),be=c().arrayOf(ne),ve=c().shape({type:c().in(["Feature"]),properties:c().or([c().object,c().null,c().undefined]),geometry:ne}),Se=c().arrayOf(ve),xe=c().shape({type:c().in(["FeatureCollection"]),features:c().arrayOf(ve)}),ee=c().arrayOf(c().arrayOf(c().and([c().arrayOf(c().number),c().apply(function(ae){if(ae.length===2){var Me=p()(ae,2),ce=Me[0],W=Me[1];return ce>=-180&&ce<=180&&W<=90&&W>=-90}return!1})])))},16488:function(Ze,se,o){"use strict";o.r(se),o.d(se,{AppTable:function(){return Wn},GeoJsonEditor:function(){return rn.i},L7Editor:function(){return zi},LngLatEditor:function(){return ho},WktEditor:function(){return sa}});var fe=o(97857),p=o.n(fe),N=o(5574),c=o.n(N),ne=o(60219),be=o(75932),ve=o(78588),Se=o(1210),xe=o(38854),ee=o(65868),ae=o(96074),Me=o(78957),ce=o(61781),W=o(15867),Ae=o(83159),et=o(55241),Re=o(93531),ct=o(94184),Ee=o.n(ct),h=o(67294),te=o(67421),J=o(55375),K=o(32865),e=o(85893),Ge=function(n){return(0,e.jsx)("span",{id:n.id,role:"img",style:n.style,className:Ee()(["anticon",n.className]),children:(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",className:"",children:(0,e.jsx)("use",{xlinkHref:"#".concat(n.type)})})})},je=o(34041),Oe=je.Z.Option,We=function(){var n=(0,K.Og)(),i=n.baseMap,r=n.setBaseMap,a=n.setMapOptions,l=n.mapOptions,s=n.theme,u=n.setCoordConvert,_=(0,te.$G)(),d=_.t,b=[{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*POJeRJzjdNAAAAAAAAAAAAAADjWqAQ/original",label:d("btn.setting_btn.gaoDe"),value:"Gaode"},{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*-G-sT4L_sNoAAAAAAAAAAAAADjWqAQ/original",label:"Mapbox",value:"Mapbox"}],v=function(y){r(y),a(p()(p()({},l),{},{style:s==="dark"?"dark":"normal"})),u(y==="Gaode"?"GCJ02":"WGS84"),y!==i&&location.reload()};return(0,e.jsx)(je.Z,{style:{width:"120px"},bordered:!1,defaultValue:i,onChange:v,children:b.map(function(S){return(0,e.jsx)(Oe,{value:S.value,label:S.label,children:(0,e.jsxs)(Me.Z,{children:[(0,e.jsx)("span",{style:{display:"flex"},children:(0,e.jsx)("img",{src:S.img,alt:"",style:{height:15,width:15}})}),(0,e.jsx)("span",{children:S.label})]})},S.value)})})},ot=o(85060),Ce=o(24928),Xe=o(12816),Ue=o.n(Xe),ie=o(20929),X=o(12510),re=o(42649),V=function(){var n=(0,K.SS)(),i=n.editorText,r=n.fc,a=(0,te.$G)(),l=a.t,s=function(d){if(d==="GeoJson")(0,ie.Di)(JSON.stringify(r),"json");else if(d==="FormatGeoJson"){var b=(0,X.X)({content:r});(0,ie.Di)(b,"json")}else if(d==="LngLat")(0,ie.Di)((0,Ce.coordAll)(r).map(function(S){return S.join(",")}).join(";"),"txt");else if(d==="KML"){var v=Ue()(r);(0,ie.Di)(v,"kml")}else d==="WKT"?(0,ie.Di)((0,re.f)(r),"wkt"):(0,ie.Di)(i,"json")},u=[{key:"GeoJson",label:l("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:l("app_header.constants.xiaZaiLNG")},{key:"KML",label:l("app_header.constants.xiaZaiKML")},{key:"WKT",label:l("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(Ae.Z,{menu:{items:u,onClick:function(d){var b=d.key;s(b)}},children:(0,e.jsx)(W.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(ot.Z,{}),children:l("btn.download_btn.xiaZai")})})},me=V,Je=o(63783),Ne=function(){var m=(0,te.$G)(),n=m.t,i=function(l){l==="guide"?window.open("/guide"):l==="api"?window.open("/docs"):l==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},r=[{key:"guide",label:n("app_header.constants.pingTaiShiYongWen")},{key:"api",label:n("app_header.constants.zuJianAPI")},{key:"issue",label:n("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ae.Z,{menu:{items:r,onClick:function(l){var s=l.key;i(s)}},placement:"bottom",children:(0,e.jsx)(W.ZP,{icon:(0,e.jsx)(Je.Z,{}),children:n("btn.handback_btn.bangZhu")})})})},xt=o(18253),dt=o(82925),st=o(36609),yt=o(15059),Et={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeWeiXingTu":"Google Remote Sensing Maps","official_layer_control.index.shiLiangDiTu":"Vector Map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position","official_layer_control.index.mingChengChongFu":"Duplicate name, please modify the name","official_layer_control.index.shanChuDiTu":"Delete current base map","official_layer_control.index.tianJiaDitu":"Add Tile Layer","official_layer_control.index.name":"name","official_layer_control.index.addName":"Please enter a name","official_layer_control.index.shiLiTuPian":"Sample Picture","official_layer_control.index.tuCengDiZhi":"Layer Address","official_layer_control.index.qiShuRutuCengDiZhi":"Please enter a layer address","official_layer_control.index.tinJiaWaPian":"Add Tile Layer Address","official_layer_control.index.kongGe":"Input cannot be a space!","official_layer_control.index.shangchuan":"Please upload pictures"},pt={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u9065\u611F\u5730\u56FE","official_layer_control.index.shiLiangDiTu":"\u77E2\u91CF\u5730\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E","official_layer_control.index.mingChengChongFu":"\u540D\u79F0\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540D\u79F0","official_layer_control.index.shanChuDiTu":"\u662F\u5426\u5220\u9664\u5F53\u524D\u5E95\u56FE","official_layer_control.index.tianJiaDitu":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42","official_layer_control.index.name":"\u540D\u79F0","official_layer_control.index.addName":"\u8BF7\u8F93\u5165\u540D\u79F0","official_layer_control.index.shiLiTuPian":"\u793A\u4F8B\u56FE\u7247","official_layer_control.index.tuCengDiZhi":"\u56FE\u5C42\u5730\u5740","official_layer_control.index.qiShuRutuCengDiZhi":"\u8BF7\u8F93\u5165\u56FE\u5C42\u5730\u5740","official_layer_control.index.tinJiaWaPian":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42\u5730\u5740","official_layer_control.index.kongGe":"\u8F93\u5165\u4E0D\u80FD\u4E3A\u7A7A\u683C\uFF01","official_layer_control.index.shangchuan":"\u8BF7\u4E0A\u4F20\u56FE\u7247"};st.ZP.use(yt.Z).use(te.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:pt},"en-US":{translation:Et}}});var Ot=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:dt.Z},{lang:"en-US",name:"English",antd:xt.Z}],_e=null,zt=o(68400),M=o.n(zt),F=o(68479),we=o(9361),Mt,Pt,wt,Ft,Bt,Dt,kt,It,ze,de,he,Fe=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBorder,l=r.colorBgContainer,s=r.colorText;return{mapHeader:(0,F.iv)(Mt||(Mt=M()([` + padding: 0 16px; + height: 50px; + border-bottom: 1px solid `,`; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + background: `,`; + z-index: 1; + .ant-btn { + border: 0; + } + `])),a,l),mapHeaderLogo:(0,F.iv)(Pt||(Pt=M()([` + display: flex; + align-items: center; + img { + width: auto; + height: 24px; + margin-right: 4px; + } + `]))),mapHeaderTitle:(0,F.iv)(wt||(wt=M()([` + font-size: 16px; + font-weight: bold; + margin-left: 4px; + margin-right: 16px; + color: `,`; + `])),s),mapHeaderLeft:(0,F.iv)(Ft||(Ft=M()([` + display: flex; + align-items: center; + `]))),mapHeaderRight:(0,F.iv)(Bt||(Bt=M()([` + display: flex; + align-items: center; + `]))),locale:(0,F.iv)(Dt||(Dt=M()([` + font-size: 16px; + `]))),localeIcon:(0,F.iv)(kt||(kt=M()([` + font-size: 16px; + `]))),upload:(0,F.iv)(It||(It=M()([` + height: 200px; + display: flex; + overflow: hidden; + flex-direction: column; + align-items: center; + justify-content: center; + `]))),uploadTitle:(0,F.iv)(ze||(ze=M()([` + font-size: 14px; + padding: 10px 6px 10px 0; + `]))),theme:(0,F.iv)(de||(de=M()([` + cursor: pointer; + padding: 0 !important; + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + `]))),themeIcon:(0,F.iv)(he||(he=M()([` + font-size: 20px !important; + `])))}},He=Fe,ft=Ot.map(function(m){return{key:m.lang,label:m.name}}),Ct=function(){var n=(0,te.$G)(),i=n.i18n,r=(0,K.Og)(),a=r.locale,l=r.setLocale,s=He(),u=function(d){var b=d.key;i.changeLanguage(b),l(b)};return(0,e.jsx)(Ae.Z,{menu:{items:ft,onClick:u,selectedKeys:[a],selectable:!0},placement:"bottom",children:(0,e.jsx)(W.ZP,{className:s.locale,icon:(0,e.jsx)(Ge,{className:s.localeIcon,type:"icon-in"})})})},Rt=Ct,nn=o(15009),Te=o.n(nn),ur=o(19632),Be=o.n(ur),cr=o(99289),tt=o.n(cr),dr=o(16596),Ye=o(10154),an=o(39124),gn=o(11568),le=o(31147),it=o(78045),rn=o(56550),xn=o(50599),pr=o(49677),yn=o.n(pr),fr=o(15360),bn=o(54397),Cn=o(96486),Sn=o(41545),_r=o(89597),hr=o.n(_r),Wt=o(66749),mr=o(57460),vr=o.n(mr),jn=o(84105),Tn=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsText(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},En=function(n,i,r){var a=JSON.parse(n);return{id:r||(0,Wt.Z)(r),metadata:{name:i},data:a,type:"local"}},gr=function(n,i,r){var a=JSON.parse(n);return J._9.check(a)?En(n,i,r):{id:r||(0,Wt.Z)(r),metadata:{name:i},data:a,type:"local"}},xr=function(){var m=tt()(Te()().mark(function n(i,r,a){var l,s,u,_,d,b;return Te()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return l=i.name,s=l.substring(l.lastIndexOf(".")+1),S.next=4,Tn(i);case 4:if(u=S.sent,s!=="json"){S.next=9;break}return S.abrupt("return",gr(u,r,a));case 9:if(s!=="geojson"){S.next=13;break}return S.abrupt("return",En(u,r,a));case 13:if(s!=="kml"){S.next=21;break}return _=new DOMParser().parseFromString(u,"text/xml"),S.next=17,hr().kml(_,{style:!0});case 17:return d=S.sent,S.abrupt("return",{id:a||(0,Wt.Z)(a),metadata:{name:r},data:d,type:"local"});case 21:if(s!=="wkt"){S.next=24;break}return b=(0,re.Y)(u),S.abrupt("return",{id:a||(0,Wt.Z)(a),metadata:{name:r},data:b,type:"local"});case 24:case"end":return S.stop()}},n)}));return function(i,r,a){return m.apply(this,arguments)}}(),yr=function(){var m=tt()(Te()().mark(function n(i,r,a){var l,s;return Te()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Tn(i);case 2:return l=_.sent,s=vr().parse(l,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),_.abrupt("return",{id:a||(0,Wt.Z)(a),metadata:{name:r},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return _.stop()}},n)}));return function(i,r,a){return m.apply(this,arguments)}}(),br=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsArrayBuffer(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},Cr=function(n,i,r){var a;try{var l=(0,jn.ij)(n,{type:"array",cellDates:!0}),s=l.Sheets[l.SheetNames[0]];Object.keys(s).forEach(function(_){var d=s[_];d.t==="d"&&(d.v=d.w)}),a=jn.P6.sheet_to_json(s)}catch(_){throw _}var u=Object.keys(a[0]);return{id:r,metadata:{name:i},data:a,type:"local",columns:u}},Sr=function(){var m=tt()(Te()().mark(function n(i,r,a){var l;return Te()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,br(i);case 3:l=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",Cr(l,r,a));case 10:case"end":return u.stop()}},n,null,[[0,6]])}));return function(i,r,a){return m.apply(this,arguments)}}(),on=function(n){var i=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,r=!1;return typeof n=="string"&&i.test(n)&&(r=!0),r},ln=function(n){try{var i=JSON.parse(n);return J.dw.check(i)}catch(r){return!1}},jr=function(){var m=tt()(Te()().mark(function n(i,r){var a,l,s,u;return Te()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=i.name,l=a.substring(0,a.lastIndexOf(".")),s=a.substring(a.lastIndexOf(".")+1),d.prev=3,!["geojson","json","kml","wkt"].includes(s)){d.next=10;break}return d.next=7,xr(i,l,i.uid);case 7:u=d.sent,d.next=20;break;case 10:if(s!=="csv"){d.next=16;break}return d.next=13,yr(i,l,i.uid);case 13:u=d.sent,d.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){d.next=20;break}return d.next=19,Sr(i,l,i.uid);case 19:u=d.sent;case 20:d.next=25;break;case 22:return d.prev=22,d.t0=d.catch(3),d.abrupt("return",Promise.reject(r("utils.upload.wenJianJieXiShi")));case 25:return d.abrupt("return",u);case 26:case"end":return d.stop()}},n,null,[[3,22]])}));return function(i,r){return m.apply(this,arguments)}}(),Tr=bn.Z.Dragger,Er=(0,h.forwardRef)(function(n,i){yn()(n);var r=(0,h.useState)([]),a=c()(r,2),l=a[0],s=a[1],u=(0,h.useState)([]),_=c()(u,2),d=_[0],b=_[1],v=(0,h.useState)([]),S=c()(v,2),y=S[0],D=S[1],A=le.Z.useForm(),L=c()(A,1),E=L[0],C=(0,te.$G)(),f=C.t,T=He(),g=function(j){var U=j.file,I=j.onSuccess,k=j.onError;jr(U,f).then(function(x){if(console.log(x),x!=null&&x.columns){for(var Z=x.data[0],B=void 0,H=0,q=Object.keys(Z);H":return i>m.value;case">=":return i>=m.value;default:if(Array.isArray(m.value)){var r=c()(m.value,2),a=r[0],l=r[1];return i>=a&&i<=l}}}function Xn(m,n){var i=String(n[m.field]),r=m.value;switch(m.operator){case"NOT_IN":return!(r!=null&&r.includes(i));case"IN":return r==null?void 0:r.includes(i);case"LIKE":return(i==null?void 0:i.indexOf(r))>-1;default:return(i==null?void 0:i.indexOf(r))<=-1}}var Yn=(0,Vt.cn)({key:"filterFeature",default:[]});function qn(){var m=(0,K.SS)(),n=m.features,i=(0,K.L0)(),r=i.filters,a=(0,Vt.Zl)(Yn),l=(0,Vt.sJ)(Yn);return(0,h.useEffect)(function(){if((0,Ht.Z)(r)){a(Be()(n));return}var s=Be()(n),u=r.filter(function(b){return!Qn(b)}),_=u.filter(function(b){return b.logic==="and"}),d=u.filter(function(b){return b.logic==="or"});(0,Ht.Z)(d)||(s=s.filter(function(b){var v=b.properties;return d.some(function(S){var y=S.type==="number"?$n:Xn;return y(S,v)})})),(0,Ht.Z)(_)||(s=s.filter(function(b){var v=b.properties;return _.every(function(S){var y=S.type==="number"?$n:Xn;return y(S,v)})})),a(s)},[n,r,a]),{features:l}}function dn(m,n){var i=document.createElement("canvas"),r=i.getContext("2d"),a=new Image(n.x,n.y);return a.crossOrigin="Anonymous",a.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(l){a.onload=function(){i.width=a.width,i.height=a.height,r.imageSmoothingEnabled=!0,r.drawImage(a,0,0,a.width,a.height);for(var s=r.getImageData(0,0,i.width,i.height),u=s.data,_=0;_=10){var H=(0,bt.Z)(r);H.pop(),a(H)}}else b(null)},z=function(I,k){return k.some(function(x){return x.label.toLowerCase().indexOf(I.toLowerCase())>-1})},j=(0,h.useMemo)(function(){if(r.length){var U=r.map(function(I){return{key:I.value,label:(0,e.jsx)("div",{onClick:function(){C(JSON.parse(I.value))},children:I.label})}});return U}else return[{key:"undefined",label:(0,e.jsx)(un.Z,{})}]},[r]);return(0,h.useEffect)(function(){if(E){var U=E[E.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(U,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(I){return I.json()}).then(function(I){var k;if(I.status==="1"&&(k=I.districts)!==null&&k!==void 0&&k.length&&s){var x=I.districts[0].center.split(",").map(function(H){return+H}),O=c()(x,2),Y=O[0],Z=O[1];s.setZoomAndCenter(9,[Y,Z]);var B=[];I.districts.forEach(function(H){H.polyline.split("|").forEach(function(q){B.push(q.split(";").map(function(Q){return Q.split(",").map(function(pe){return+pe})}))})}),b((0,Ce.multiLineString)(B))}}).catch(function(){Ye.ZP.error(T("administrative_select_control.index.weiLanShuJuQing"))})}},[E]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ue.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(jo.Z,{options:y,value:E,onChange:w,className:n.cascader,allowClear:!0,showSearch:{filter:z},placeholder:T("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:n.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(Ae.Z,{menu:{items:j},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(ce.Z,{title:T("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:Ee()([n.history,"l7-draw-control__btn"]),children:(0,e.jsx)(Ge,{type:"icon-lishi",className:n.historyIcon})})})})]})}),(0,e.jsx)(ue.Ie,p()({source:{data:(0,Ce.featureCollection)(d?[d]:[])}},Eo))]})},va,ga,xa,ya,ba,Ca,Po=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.colorBorder,s=r.colorTextDescription,u=r.colorText,_=r.boxShadow,d=r.colorIcon;return{L7EditorControl:(0,F.iv)(va||(va=M()([` + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 2px; + width: 28px; + height: 28px; + padding: 0; + text-align: center; + background: `,`; + box-shadow: `,` !important; + border-width: 0; + color: `,`; + outline: 0; + cursor: pointer; + &:hover { + background: `,`; + svg { + color: `,`; + } + } + `])),a,_,d,a,u),l7EditorIcon:(0,F.iv)(ga||(ga=M()([` + font-size: 16px; + border: none; + cursor: pointer; + color: `,`; + `])),d),zoom:(0,F.iv)(xa||(xa=M()([` + .l7-button-control { + color: `,`; + font-size: 14px; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + } + .l7-button-control:first-child { + border-bottom: 1px solid `,`; + } + `])),s,a,l,s,u,l),scalesControl:(0,F.iv)(ya||(ya=M()([` + .l7-control-scale-line { + color: `,`; + background: `,` !important; + border-color: `,`; + } + `])),s,a,l),mouseLocatio:(0,F.iv)(ba||(ba=M()([` + color: `,` !important; + background: `,` !important; + border-color: `,`; + `])),s,a,l),fullScreen:(0,F.iv)(Ca||(Ca=M()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),s,a,l,s,u)}},Yt=Po,Do=function(){var n=Yt(),i=(0,K.SS)(),r=i.bboxAutoFit,a=(0,te.$G)(),l=a.t;return(0,e.jsx)(ue.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:l("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:n.L7EditorControl,onClick:function(){r()},children:(0,e.jsx)(Ge,{type:"icon-suofang",className:n.l7EditorIcon})})})})},Sa,ja,Ao=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorIcon,u=r.colorText;return{clear:(0,F.iv)(Sa||(Sa=M()([` + width: 30px; + height: 30px; + line-height: 41px; + text-align: center; + border-radius: 2px; + background-color: `,`; + box-shadow: `,` !important; + cursor: pointer; + color: `,`; + &:hover { + color: `,`; + background: `,`; + } + `])),a,l,s,u,a),clearSvg:(0,F.iv)(ja||(ja=M()([` + font-size: 24px; + `])))}},Lo=Ao,Zo=function(){var n=Lo(),i=(0,K.SS)(),r=i.saveEditorText,a=(0,te.$G)(),l=a.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ue.br,{position:"topright",children:(0,e.jsx)($t.Z,{title:l("clear_control.index.queRenQingKongSuo"),onConfirm:function(){r((0,X.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(ce.Z,{title:l("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:n.clear,id:"l7-editor-clear",children:(0,e.jsx)(Ge,{type:"icon-qingkong",className:n.clearSvg})})})})})})},Fo=o(15937),Ta,Io=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorder,u=r.colorIcon,_=r.colorText;return{l7DrawControl:(0,F.iv)(Ta||(Ta=M()([` + .l7-draw-control { + display: flex; + flex-direction: column; + align-items: center; + margin-right: 0 !important; + box-shadow: `,` !important; + .l7-draw-control__btn { + color: `,`; + background-color: `,`; + border-right: none; + border-bottom: 1px solid `,`; + &:hover { + color: `,`; + } + } + } + `])),l,u,a,s,_)}},Mo=Io,wo=function(){var n=Vn(),i=(0,ue.$r)(),r=Mo(),a=(0,h.useState)(null),l=c()(a,2),s=l[0],u=l[1],_=(0,K.SS)(),d=_.setIsDraw,b=_.resetFeatures,v=_.features,S=_.revertCoord,y=(0,K.Og)(),D=y.layerColor,A=(0,h.useMemo)(function(){return(0,bt.Z)(v.find(function(C){return C.properties[J.AQ.IsEdit]}))},[v]);(0,h.useEffect)(function(){var C;if(i){var f;C=new ut.DrawControl(i,{position:"topleft",drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0},commonDrawOptions:{maxCount:1,style:(0,ie.C2)(D),helper:n}}),u(C),i.addControl(C),C.on(ut.ControlEvent.DrawChange,function(g){d(!!g)});var T=document.querySelector(".l7-draw-control");T.style.marginTop=0,(f=document.querySelector("#l7-draw-content"))===null||f===void 0||f.appendChild(T)}return function(){C&&i.removeControl(C)}},[i,D]);var L=(0,h.useCallback)(function(C,f){f.properties=St()({},J.AQ.DrawType,C),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var T=S([f]);b([].concat(Be()(v),Be()(T)))},[s,S,b,v]),E=(0,h.useCallback)(function(C,f){var T=f.properties[J.AQ.Index],g=Be()(v);g[T].properties[J.AQ.IsEdit]=!1,g[T].geometry=f.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var w=S(g);b(Be()(w))},[v,s,S,b]);return(0,h.useEffect)(function(){var C=["point","line","polygon","rect","circle"],f=(0,Fo.Z)(C.map(function(T){return[T,{onAdd:function(w){return L(T,w)},onEdit:function(w){return E(T,w)}}]}));return C.forEach(function(T){var g=s==null?void 0:s.getTypeDraw(T);g==null||g.on(ut.DrawEvent.Add,f[T].onAdd),g==null||g.on(ut.DrawEvent.Edit,f[T].onEdit)}),function(){C.forEach(function(T){var g=s==null?void 0:s.getTypeDraw(T);g==null||g.off(ut.DrawEvent.Add,f[T].onAdd),g==null||g.off(ut.DrawEvent.Edit,f[T].onEdit)})}},[s,L]),(0,h.useEffect)(function(){if(A&&s){var C,f=(C=A.properties)===null||C===void 0?void 0:C[J.AQ.DrawType];A.properties.isActive=!0,s.setActiveType(f);var T=s.getTypeDraw(f);T==null||T.setData([A])}},[A,s]),(0,e.jsx)(ue.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:r.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},Bo=wo,ko=o(37724),Ro=o(14468),_n=o(51042),Jo=o(26024),No=o(44230),Go=o(53434),zo=function(n){var i=n.name,r=n.index,a=n.form,l=(0,K.L0)(),s=l.setFilters,u=(0,K.SS)(),_=u.dataSource,d=(0,te.$G)(),b=d.t,v=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:b("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(le.Z.Item,{name:[i,"operator"],children:(0,e.jsx)(je.Z,{style:{width:"100px",marginRight:"8px"},placeholder:b("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:v,onChange:function(){var y=(0,bt.Z)(a.getFieldValue("filterFromList"));y.forEach(function(D,A){r===A&&(D.value=void 0)}),a.setFieldValue("filterFromList",y),s(y.map(function(D){var A=JSON.parse(D.field),L=A.field,E=A.type;return p()(p()({},D),{},{field:L,type:E})}))}})}),(0,e.jsx)(le.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(y,D){return y.operator===D.operator},children:function(y){var D,A,L,E=y.getFieldsValue,C=E(),f=C.filterFromList,T=(D=JSON.parse(f[r].field))===null||D===void 0?void 0:D.field,g=_.find(function(I){return(I==null?void 0:I.field)===T});if(f[r].operator==="BETWEEN"){var w,z,j,U;return(0,e.jsxs)("div",{children:[(0,e.jsx)(le.Z.Item,{name:[i,"min"],style:{width:"70px"},children:(0,e.jsx)(Ut.Z,{placeholder:b("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(w=g==null?void 0:g.min)!==null&&w!==void 0?w:0,max:(z=g==null?void 0:g.max)!==null&&z!==void 0?z:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(le.Z.Item,{name:[i,"max"],style:{width:"70px"},children:(0,e.jsx)(Ut.Z,{placeholder:b("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(j=g==null?void 0:g.min)!==null&&j!==void 0?j:0,max:(U=g==null?void 0:g.max)!==null&&U!==void 0?U:0})})]})}return(0,e.jsx)(le.Z.Item,{name:[i,"value"],children:(0,e.jsx)(Ut.Z,{placeholder:b("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(A=g==null?void 0:g.min)!==null&&A!==void 0?A:0,max:(L=g==null?void 0:g.max)!==null&&L!==void 0?L:0})})}})]})},Wo=zo,Uo=o(94207),Ko=o(85959),Ho=o(29795),Vo=function(n){var i=n.name,r=n.index,a=n.form,l=(0,Ho.Z)(),s=l.setFilters,u=(0,Ko.Z)(),_=u.dataSource,d=(0,te.$G)(),b=d.t,v=[{label:b("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:b("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:b("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:b("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(le.Z.Item,{name:[i,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(je.Z,{placeholder:b("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:v,onChange:function(){var y=(0,bt.Z)(a.getFieldValue("filterFromList"));y.forEach(function(D,A){r===A&&(D.value=void 0)}),a.setFieldValue("filterFromList",y),s(y.map(function(D){var A=JSON.parse(D.field),L=A.field,E=A.type;return p()(p()({},D),{},{field:L,type:E})}))}})}),(0,e.jsx)(le.Z.Item,{shouldUpdate:function(y,D){return y.operator!==D.operator},style:{width:150,margin:0},children:function(y){var D,A,L=y.getFieldsValue,E=L(),C=E.filterFromList,f=(D=JSON.parse(C[r].field))===null||D===void 0?void 0:D.field,T=_.find(function(w){return(w==null?void 0:w.field)===f}),g=C[r].operator;return g==="LIKE"||g==="NOT_LIKE"?(0,e.jsx)(le.Z.Item,{name:[i,"value"],children:(0,e.jsx)(_t.Z,{placeholder:b("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(le.Z.Item,{name:[i,"value"],children:(0,e.jsx)(je.Z,{placeholder:b("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((A=(0,Uo.Z)(T==null?void 0:T.value))!==null&&A!==void 0?A:[]).filter(function(w){return w!=="undefined"}).map(function(w){return(0,e.jsx)(je.Z.Option,{value:w,children:(0,e.jsx)(ce.Z,{title:w,children:w})},w)})})})}})]})},Qo=Vo,Ea,Oa,$o=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow;return{l7FilterPanel:(0,F.iv)(Ea||(Ea=M()([` + position: relative; + `]))),l7Filter:(0,F.iv)(Oa||(Oa=M()([` + display: flex; + background: `,`; + padding: 16px; + margin-right: 8px; + position: absolute; + right: 35px; + bottom: 0; + box-shadow: `,` !important; + .ant-form-item { + margin-bottom: 0; + } + .ant-btn { + margin-left: px; + } + `])),a,l)}},Xo=$o,hn=je.Z.Option,Yo=function(){var n=(0,K.SS)(),i=n.dataSource,r=(0,K.L0)(),a=r.setFilters,l=r.filters,s=(0,h.useState)(!1),u=c()(s,2),_=u[0],d=u[1],b=(0,te.$G)(),v=b.t,S=le.Z.useForm(),y=c()(S,1),D=y[0],A=Xo(),L=Yt(),E=(0,h.useMemo)(function(){return!i.length},[i]),C=function(g,w){if((0,Ht.Z)(w.filterFromList)){a([]);return}var z=w.filterFromList.filter(function(j){return j}).map(function(j){var U=j.logic,I=j.operator;if(j.field){var k=JSON.parse(j.field||""),x=k.field,O=k.type;return j.operator==="BETWEEN"&&j.min&&j.max?{logic:U,field:x,type:O,operator:I,value:[j.min,j.max]}:(j.operator==="IN"||j.operator==="NO_IN")&&j.value?p()(p()({},j),{},{field:x,type:O,value:j.value.length?j.value:void 0}):p()(p()({},j),{},{field:x,type:O})}else return p()(p()({},j),{},{field:void 0,type:void 0})});a(z)},f=(0,h.useMemo)(function(){return l.filter(function(T){return!Qn(T)}).find(function(T){return T})},[l]);return(0,e.jsxs)(ue.br,{position:"bottomright",className:A.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:A.l7Filter,style:{display:_?"block":"none"},children:(0,e.jsx)(le.Z,{style:{width:"100%"},form:D,onValuesChange:(0,Go.Z)(C,500),children:(0,e.jsx)(le.Z.List,{name:"filterFromList",children:function(g,w){var z=w.add,j=w.remove;return(0,e.jsxs)(e.Fragment,{children:[g.map(function(U,I){var k,x,O=U.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(le.Z.Item,{name:[O,"logic"],initialValue:"and",children:(0,e.jsxs)(je.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(hn,{value:"and",children:v("filter_form_list_control.index.bingQie")}),(0,e.jsx)(hn,{value:"or",children:v("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(le.Z.Item,{name:[O,"field"],initialValue:JSON.stringify({field:(k=i[0])===null||k===void 0?void 0:k.field,type:(x=i[0])===null||x===void 0?void 0:x.type}),children:(0,e.jsx)(je.Z,{style:{width:130,marginRight:"8px"},placeholder:v("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var Z=(0,bt.Z)(D.getFieldValue("filterFromList"));Z.forEach(function(B,H){I===H&&(B.operator=void 0,B.value=void 0)}),D.setFieldValue("filterFromList",Z),a(Z.map(function(B){var H=JSON.parse(B.field),q=H.field,Q=H.type;return p()(p()({},B),{},{field:q,type:Q})}))},children:i.map(function(Y){var Z=Y.field,B=Y.type;return(0,e.jsxs)(hn,{value:JSON.stringify({field:Z,type:B}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:B==="number"?(0,e.jsx)(ko.Z,{}):(0,e.jsx)(Ro.Z,{})}),(0,e.jsx)(ce.Z,{title:Z,children:Z})]},Z)})})}),(0,e.jsx)(le.Z.Item,{shouldUpdate:function(Z,B){return Z.field===B.field},style:{margin:0},children:function(Z){var B=Z.getFieldsValue,H=B(),q=H.filterFromList;if(q[I].field){var Q=JSON.parse(q[I].field),pe=Q.type;return pe==="number"?(0,e.jsx)(Wo,{name:O,index:I,form:D}):(0,e.jsx)(Qo,{name:O,index:I,form:D})}}}),(0,e.jsx)(W.ZP,{type:"text",onClick:function(){j(O),a(D.getFieldValue("filterFromList"))},icon:(0,e.jsx)(sn.Z,{})})]},O)}),(0,e.jsx)(W.ZP,{type:"dashed",disabled:E,onClick:function(){z()},block:!0,icon:(0,e.jsx)(_n.Z,{}),style:{width:500},children:v("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(ce.Z,{title:v("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:L.L7EditorControl,onClick:function(){d(!_)},children:f?(0,e.jsx)(No.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Jo.Z,{style:{lineHeight:"30px"}})})})]})},qo=Yo,ei=o(87052),Pa,ti=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.boxShadow;return{l7ButtonControl:(0,F.iv)(Pa||(Pa=M()([` + min-width: auto; + width: 28px; + height: 28px; + border: none; + box-shadow: `,`; + cursor: pointer; + border-radius: 2px; + .ant-color-picker-color-block { + width: 22px; + height: 22px; + border-radius: 2px; + } + `])),a)}},ni=ti,ai=function(){var n=(0,K.Og)(),i=n.layerColor,r=n.setLayerColor,a=(0,te.$G)(),l=a.t,s=ni();return(0,e.jsx)(ue.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:l("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)(ei.Z,{value:i,className:Ee()([s.l7ButtonControl]),onChange:function(_,d){r(d)},format:"rgb",presets:[{label:l("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},ri=ai,Da,Aa,La,oi=function(){return{locationSearch:(0,F.iv)(Da||(Da=M()([` + min-width: 200px; + `]))),locationSearchName:(0,F.iv)(Aa||(Aa=M()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + `]))),locationSearchTip:(0,F.iv)(La||(La=M()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #818181; + font-size: 12px; + `])))}},ii=oi;function li(m,n){return"".concat(m,"?").concat(Object.entries(n).map(function(i){var r=c()(i,2),a=r[0],l=r[1];return"".concat(a,"=").concat(window.encodeURIComponent(String(l)))}).join("&"))}var si=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],ui=je.Z.Option,Za=function(n){var i=n.searchParams,r=n.showDistrict,a=n.showAddress,l=n.onSearchFinish,s=n.onChange,u=Dn()(n,si),_=ii(),d=(0,h.useState)([]),b=c()(d,2),v=b[0],S=b[1],y=(0,te.$G)(),D=y.t;(0,h.useEffect)(function(){l==null||l(v)},[l,v]);var A=(0,fn.Z)(function(){var C=tt()(Te()().mark(function f(T){var g,w,z,j;return Te()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(T){I.next=3;break}return S([]),I.abrupt("return");case 3:return z=li("https://restapi.amap.com/v3/assistant/inputtips",p()(p()({},i),{},{keywords:[].concat(Be()(((g=i.keywords)!==null&&g!==void 0?g:"").split("|")),[T]).filter(function(k){return!!k}).join("|")})),I.next=6,fetch(z);case 6:return I.next=8,I.sent.json();case 8:j=I.sent,S(((w=j==null?void 0:j.tips)!==null&&w!==void 0?w:[]).filter(function(k){return k.location&&k.location.length}).map(function(k){var x=k.location.split(","),O=c()(x,2),Y=O[0],Z=O[1];return k.longitude=+Y,k.latitude=+Z,k}));case 10:case"end":return I.stop()}},f)}));return function(f){return C.apply(this,arguments)}}(),{wait:1e3}),L=A.run,E=(0,h.useCallback)(function(C){var f=C&&v.find(function(T){return T.name===C});s==null||s(C||void 0,f||void 0)},[s,v]);return(0,e.jsx)(je.Z,p()(p()({className:_.locationSearch,onSearch:L,onChange:E,placeholder:D("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:v.map(function(C){var f="".concat(r?C.district:"").concat(a?C.address:"");return(0,e.jsxs)(ui,{value:C.name,label:C.name,children:[(0,e.jsx)("div",{title:C.name,className:_.locationSearchName,children:C.name}),f&&(0,e.jsx)("div",{title:f,className:_.locationSearchTip,children:f})]},C.id)})}))};Za.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var ci=h.memo(function(){var m=(0,ue.$r)(),n=(0,h.useState)(),i=c()(n,2),r=i[0],a=i[1],l=(0,h.useState)(""),s=c()(l,2),u=s[0],_=s[1],d=(0,K.SS)(),b=d.features,v=d.resetFeatures,S=(0,K.Og)(),y=S.layerColor,D=(0,h.useState)(),A=c()(D,2),L=A[0],E=A[1],C=(0,te.$G)(),f=C.t,T=(0,h.useCallback)(function(){if(m){var g=m.getCenter(),w=g.lng,z=g.lat;_("".concat(w,",").concat(z))}},[m]);return(0,h.useEffect)(function(){return T(),m==null||m.on("moveend",T),m==null||m.on("zoomend",T),function(){m==null||m.off("moveend",T),m==null||m.off("zoomend",T)}},[m,T]),(0,Xt.Z)(tt()(Te()().mark(function g(){var w;return Te()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return w=cn()(y).rgb().object(),j.t0=E,j.next=4,dn(w,{x:100,y:100});case 4:j.t1=j.sent,(0,j.t0)(j.t1);case 6:case"end":return j.stop()}},g)})),[y]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ue.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(Za,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:r==null?void 0:r.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(w,z){if(z){var j=m.getZoom();m.setZoomAndCenter(j>16?j:16,[z.longitude,z.latitude])}a(z)}})})})})})}),r&&(0,e.jsx)(ue.Jx,{lngLat:{lng:r.longitude,lat:r.latitude},children:(0,e.jsx)(et.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(W.ZP,{type:"primary",onClick:function(){var w=r.longitude,z=r.latitude;v([].concat(Be()(b),[(0,Ce.point)([w,z],r)])),a(void 0)},children:f("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(W.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){a(void 0)},children:f("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:L==null?void 0:L.src})})})]})}),di=ci,Fa,Ia,pi=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorText,l=r.colorBgContainer,s=r.boxShadow,u=r.colorTextDescription;return{mapAdministrative:(0,F.iv)(Fa||(Fa=M()([` + background: `,`; + color: `,`; + box-shadow: `,`; + `])),l,a,s),regionLocation:(0,F.iv)(Ia||(Ia=M()([` + background: `,` !important; + color: `,` !important; + padding: 2px 4px !important; + `])),l,u)}},fi=pi,_i=function(){var n=fi();return(0,e.jsx)(ue.br,{className:Ee()(["map-administrative-control",n.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(ue.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:n.regionLocation})})},Ma,wa,hi=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorTextDescription,l=r.colorBgContainer,s=r.colorPrimary,u=r.colorBorder,_=r.colorText,d=r.colorBgElevated,b=r.colorFillSecondary;return{mapTheme:(0,F.iv)(Ma||(Ma=M()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),a,l,u,a,_),mapThemePopper:(0,F.iv)(wa||(wa=M()([` + *::-webkit-scrollbar { + width: 8px; + background-color: `,`; + } + *::-webkit-scrollbar-thumb { + background-color: `,`; + border-radius: 10px; + } + .l7-popper-content { + color: `,`; + background: `,`; + + .l7-select-control-item:hover { + box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), + 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); + } + + .l7-select-control-item { + border: 1px solid `,`; + border-radius: 4px; + } + + .l7-select-control-item-active { + border: 1px solid `,`; + } + } + + &.l7-popper-right .l7-popper-arrow\xA0 { + border-right-color: `,`; + } + + &.l7-popper-left .l7-popper-arrow\xA0 { + border-left-color: `,`; + } + + &.l7-popper-bottom .l7-popper-arrow\xA0 { + border-bottom-color: `,`; + } + + &.l7-popper-top .l7-popper-arrow\xA0 { + border-top-color: `,`; + } + `])),d,b,_,l,u,s,d,d,d,d)}},mi=hi,vi=function(){var n=(0,K.Og)(),i=n.setMapOptions,r=mi();return(0,e.jsx)(ue.w3,{className:Ee()([r.mapTheme,"l7-editor-mapTheme"]),popperClassName:r.mapThemePopper,position:"bottomright",onSelectChange:function(l){i(function(s){return p()(p()({},s),{},{style:l})})}})},gi=vi,Ba=o(14313),xi=o(77123),yi=o(88484),bi=o(3089),ka,Ra,Ja,Na,Ga,za,Wa,Ua,Ka,Ci=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgElevated,l=r.colorBgContainer,s=r.colorText,u=r.colorIcon,_=r.boxShadow;return{mapTab:(0,F.iv)(ka||(ka=M()([` + background-color: `,`; + border-radius: 4px; + display: flex; + align-items: center; + box-shadow: `,`; + &:hover .add-map { + display: block; + } + .add-map { + display: none; + text-align: center; + &:hover { + display: block; + color: #1677ff; + } + } + `])),a,_),hideOfficeLayerBtn:(0,F.iv)(Ra||(Ra=M()([` + height: 127px; + width: 20px; + display: flex; + align-items: center; + justify-content: center; + background: `,`; + border-radius: 4px; + cursor: pointer; + font-size: 16px; + z-index: 2; + .anticon { + transition: all 0.2s; + } + color: `,`; + `])),a,u),amapInfo:(0,F.iv)(Ja||(Ja=M()([` + display: flex; + align-items: center; + padding: 10px; + cursor: pointer; + `]))),amapInfoItemImage:(0,F.iv)(Na||(Na=M()([` + width: 142px; + height: 80px; + `]))),amapInfoItem:(0,F.iv)(Ga||(Ga=M()([` + text-align: center; + margin-left: 10px; + object-fit: cover; + &:first-child { + margin-left: 0px; + } + box-sizing: border-box; + border-radius: 4px; + position: relative; + + &: hover .item-clear { + display: block; + } + + &: hover .item-edit { + display: block; + } + + .item-edit { + position: absolute; + right: 41px; + bottom: 30px; + display: none; + width: 25px; + height: 25px; + line-height: 25px; + text-align: center; + background: #fff; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: #1677ff; + } + } + + .item-clear { + position: absolute; + right: 8px; + bottom: 30px; + display: none; + width: 25px; + height: 25px; + line-height: 25px; + text-align: center; + background: #fff; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: #1677ff; + } + } + `]))),amapInfoItemTitle:(0,F.iv)(za||(za=M()([` + color: `,`; + `])),s),itemBorder:(0,F.iv)(Wa||(Wa=M()([` + border: 2px solid `,`; + `])),l),itemBorderActive:(0,F.iv)(Ua||(Ua=M()([` + border: solid 2px #1677ff; + `]))),addMapIcon:(0,F.iv)(Ka||(Ka=M()([` + border: dashed 1px rgb(217, 217, 217); + height: 103px; + width: 142px; + object-fit: cover; + border-radius: 4px; + line-height: 103px; + margin-left: 10px; + cursor: pointer; + &:hover { + border: dashed 1px #1677ff; + } + `])))}},Si=Ci,Ha={labelCol:{span:4},wrapperCol:{span:16}},Va={labelCol:{span:6},wrapperCol:{span:15}};function ji(){var m=le.Z.useForm(),n=c()(m,1),i=n[0],r=Si(),a=(0,K.Og)(),l=a.layerType,s=a.setLayerType,u=a.customTiles,_=a.setCustomTiles,d=a.locale,b=(0,te.$G)(),v=b.t,S=(0,h.useState)(l.length?l[0]:J.dY.VectorMap),y=c()(S,2),D=y[0],A=y[1],L=(0,h.useState)(!1),E=c()(L,2),C=E[0],f=E[1],T=(0,h.useState)(!1),g=c()(T,2),w=g[0],z=g[1],j=(0,h.useState)(-1),U=c()(j,2),I=U[0],k=U[1],x=(0,h.useState)(null),O=c()(x,2),Y=O[0],Z=O[1],B=(0,h.useState)([]),H=c()(B,2),q=H[0],Q=H[1],pe=(0,xe.Z)("hideOfficeLayer",{defaultValue:!0}),ye=c()(pe,2),Le=ye[0],Ke=ye[1],ht=function(){i.submit()},De=(0,h.useMemo)(function(){return[{type:J.dY.VectorMap,title:v("official_layer_control.index.shiLiangDiTu"),image:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qdFDSbvIalgAAAAAAAAAAAAADmJ7AQ/original",layers:[]},{type:J.dY.GoogleSatellite,title:v("official_layer_control.index.guGeWeiXingTu"),image:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*zi2jSqqZ2-8AAAAAAAAAAAAADjWqAQ/original",layers:[J.ay,J.AF]}].concat(Be()(u))},[v,u]),Ve=function(P){var R=new FileReader;return R.readAsDataURL(P),R.onload=function(){var $=R.result;Z($)},!1},At=function(P){A(P.type),s(P.type===J.dY.VectorMap?[]:[P.type])},Jt=function(P){if(w){var R=(0,bt.Z)(u),$=Array.isArray(P.img)?P.img[0].url:"".concat(Y);R[I-2]={type:P.name,image:$,title:P.name,layers:P.urls},_(R),z(!1),k(-1)}else _(function(oe){return[].concat(Be()(oe),[{type:P.name,image:"".concat(Y),title:P.name,layers:P.urls}])});z(!1),Q([]),f(!1)},Nt=function(){f(!1),z(!1),Q([]),k(-1),i.resetFields()},Gt=function(P,R){P==null||P.stopPropagation();var $=u.filter(function(oe){return oe.type!==R.type});R.type===D&&(A(J.dY.VectorMap),s([])),_($)},jt=function(P,R){var $=R.toLowerCase(),oe=[];if(w){var ge=(0,bt.Z)(De);ge.splice(I,1),oe=Be()(ge)}else oe=De;var Ie=oe.every(function(Pe){return Pe.title.toLowerCase()!==$});return Ie?R&&R.trim()===""?Promise.reject(v("official_layer_control.index.kongGe")):Promise.resolve():Promise.reject(v("official_layer_control.index.mingChengChongFu"))},Lt=function(P,R){var $=Promise.reject(v("official_layer_control.index.shangchuan"));return R.fileList?R.fileList.length?Promise.resolve():$:R.length?Promise.resolve():$},nt=function(P){var R=Be()(P.fileList);R=R.slice(-2),R=R.map(function($){return $.response&&($.url=$.response.url),$}),Q(R)},Tt=(0,h.useMemo)(function(){if(l.length){var G=De.find(function(P){return P.type===l[0]});return G==null?void 0:G.layers.map(function(P){return(0,e.jsx)(ue.YY,{zIndex:1,id:G.type===J.dY.GoogleSatellite&&P===J.ay?"googleTileMap":void 0,source:{data:P,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}})})}else return null},[l,De]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(ue.br,{position:"bottomleft",children:[(0,e.jsxs)("div",{className:r.mapTab,children:[(0,e.jsx)("div",{className:r.hideOfficeLayerBtn,onClick:function(){Ke(!Le)},children:(0,e.jsx)(Ba.Z,{style:{transform:Le?"rotate(-180deg)":void 0}})}),Le&&(0,e.jsxs)("div",{className:r.amapInfo,children:[De.map(function(G,P){return(0,e.jsxs)("div",{className:Ee()([r.amapInfoItem,G.type===D?r.itemBorderActive:r.itemBorder,P===De.length-1?"item-hover":""]),onClick:function(){At(G)},children:[P>1&&(0,e.jsx)($t.Z,{title:v("official_layer_control.index.shanChuDiTu"),onConfirm:function($){return Gt($,G)},onCancel:function($){$==null||$.stopPropagation()},children:(0,e.jsx)("div",{className:"item-clear",onClick:function($){$.stopPropagation()},children:(0,e.jsx)(sn.Z,{})})}),P>1&&(0,e.jsx)("div",{className:"item-edit",onClick:function($){k(P),$.stopPropagation(),z(!0),f(!0),Q([{uid:"-1",name:"".concat(G.title),status:"done",url:G.image}]),i.setFieldsValue({name:G.title,urls:G.layers,img:[{uid:"-1",name:"".concat(G.title),status:"done",url:G.image}]})},children:(0,e.jsx)(xi.Z,{})}),(0,e.jsx)("img",{src:G.image,alt:"",className:r.amapInfoItemImage}),(0,e.jsx)("div",{className:r.amapInfoItemTitle,style:{marginTop:0},children:G.title})]},G.type)}),(0,e.jsx)("div",{className:"add-map",children:(0,e.jsx)("div",{onClick:function(){f(!0),i.resetFields()},children:(0,e.jsx)("div",{className:r.addMapIcon,children:(0,e.jsx)(_n.Z,{})})})})]})]}),(0,e.jsx)(an.Z,{title:v("official_layer_control.index.tianJiaDitu"),open:C,destroyOnClose:!0,onOk:ht,onCancel:Nt,width:600,children:(0,e.jsxs)(le.Z,{form:i,initialValues:{urls:[""]},onFinish:Jt,children:[(0,e.jsx)(le.Z.Item,p()(p()({},d==="zh-CN"?Ha:Va),{},{name:"name",label:v("official_layer_control.index.name"),rules:[{required:!0},{validator:jt}],children:(0,e.jsx)(_t.Z,{placeholder:v("official_layer_control.index.addName"),style:{width:390}})})),(0,e.jsx)(le.Z.Item,p()(p()({},d==="zh-CN"?Ha:Va),{},{name:"img",label:v("official_layer_control.index.shiLiTuPian"),rules:[{required:!0,validator:Lt}],children:(0,e.jsx)(bn.Z,{beforeUpload:Ve,accept:".png,.jpg",maxCount:1,onChange:nt,fileList:q,onRemove:function(){Q([])},children:(0,e.jsx)(W.ZP,{icon:(0,e.jsx)(yi.Z,{}),children:v("import_btn.index.shangChuan")})})})),(0,e.jsx)(le.Z.List,{name:"urls",children:function(P,R){var $=R.add,oe=R.remove;return(0,e.jsxs)(e.Fragment,{children:[P.map(function(ge,Ie){return(0,e.jsxs)(Me.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(le.Z.Item,p()(p()({},ge),{},{label:Ie===0?v("official_layer_control.index.tuCengDiZhi"):"",rules:[{required:!0,message:v("official_layer_control.index.qiShuRutuCengDiZhi")},{validator:jt}],style:{marginLeft:d==="zh-CN"?Ie===0?10:90:Ie===0?18:134},children:(0,e.jsx)(_t.Z,{placeholder:J.ay,style:{width:390}})})),P.length>1?(0,e.jsx)(bi.Z,{onClick:function(){return oe(ge.name)}}):null]},ge.key)}),(0,e.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,e.jsx)(W.ZP,{type:"dashed",onClick:function(){return $()},icon:(0,e.jsx)(_n.Z,{}),style:{width:390,marginLeft:d==="zh-CN"?20:104},children:v("official_layer_control.index.tinJiaWaPian")})})]})}})]})})]}),(0,e.jsx)("div",{children:Tt})]})}var Qa=o(31762),Ti=o(75081),$a,Ei=function(){return{marker:(0,F.iv)($a||($a=M()([` + color: #fff; + background: #ff0000; + font-size: 12px; + padding: 6px; + `])))}},Oi=Ei,Pi={shape:"line",size:3,color:"#ff0000",state:{active:!1},style:{opacity:1,lineType:"solid"},zIndex:100,animate:{interval:.6,trailLength:1.5,duration:4}},Di=function(){var n=Oi(),i=Yt(),r=(0,h.useState)(null),a=c()(r,2),l=a[0],s=a[1],u=(0,K.SS)(),_=u.scene,d=u.features,b=u.resetFeatures,v=u.revertCoord,S=u.bboxAutoFit,y=(0,K.Og)(),D=y.wasmPath,A=(0,ue.dN)(),L=(0,h.useState)(!1),E=c()(L,2),C=E[0],f=E[1],T=(0,h.useState)(void 0),g=c()(T,2),w=g[0],z=g[1],j=(0,h.useState)(void 0),U=c()(j,2),I=U[0],k=U[1],x=(0,h.useState)(void 0),O=c()(x,2),Y=O[0],Z=O[1],B=(0,h.useState)(!1),H=c()(B,2),q=H[0],Q=H[1],pe=(0,h.useState)(void 0),ye=c()(pe,2),Le=ye[0],Ke=ye[1],ht=(0,h.useState)(void 0),De=c()(ht,2),Ve=De[0],At=De[1],Jt=(0,h.useState)({data:{type:"FeatureCollection",features:[]}}),Nt=c()(Jt,2),Gt=Nt[0],jt=Nt[1],Lt=(0,te.$G)(),nt=Lt.t,Tt=(0,h.useCallback)(function(P){var R=[P.lngLat.lng,P.lngLat.lat];if(Ve)if((0,Ce.booleanPointInPolygon)((0,Ce.point)(R),Ve)){if(l){var $=l.lngLat2ImagePixel(R),oe=[{x:$[0],y:$[1],clickType:1}],ge=1;l.predict(oe).then(function(){var Ie=tt()(Te()().mark(function Pe(qe){var mt,at,ke,rt;return Te()().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,l.exportGeoPolygon(qe,ge);case 2:mt=vt.sent,at=l.exportImageClip(qe),ke={feature:mt.features,imageUrl:at.src},(0,Ce.booleanPointInPolygon)((0,Ce.point)(R),ke==null?void 0:ke.feature[0])&&(ke==null?void 0:ke.feature[0].geometry.coordinates[0].length)>4?(rt=v(ke.feature),b([].concat(Be()(d),Be()(rt)))):Ye.ZP.warning(nt("map_control_group.sam.tuXingJieXiCuoWu"));case 6:case"end":return vt.stop()}},Pe)}));return function(Pe){return Ie.apply(this,arguments)}}())}}else Ye.ZP.error(nt("map_control_group.sam.qingZaiQuYuNei"))},[Ve,l,d,nt]),G=function(){var P=tt()(Te()().mark(function R(){var $,oe,ge,Ie,Pe,qe,mt,at,ke,rt,Qe,vt,Zt,qt,or,ir,mn,lr,Qt,en,vn,sr,tn;return Te()().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Q(!0),$e.prev=1,!(!w||!l)){$e.next=4;break}return $e.abrupt("return");case 4:return oe=w.layer.getSource(),ge=oe==null||($=oe.tileset)===null||$===void 0?void 0:$.currentTiles,Ie=1/0,Pe=1/0,qe=-1/0,mt=-1/0,ge==null||ge.forEach(function(gt){Ie=Math.min(Ie,gt.x),Pe=Math.min(Pe,gt.y),qe=Math.max(qe,gt.x),mt=Math.max(mt,gt.y)}),at=Math.ceil(_==null?void 0:_.getZoom()),ke=document.createElement("canvas"),ke.width=(qe-Ie+1)*256,ke.height=(mt-Pe+1)*256,rt=ke.getContext("2d"),Qe=l.mapHelper,vt=[].concat(Be()(Qe.tileToLngLat(Ie,mt+1,at)),Be()(Qe.tileToLngLat(qe+1,Pe,at))),ge==null||ge.forEach(function(gt){gt&&(rt==null||rt.drawImage(gt.data,(gt.x-Ie)*256,(gt.y-Pe)*256,256,256))}),l.setGeoImage(ke.toDataURL(),{extent:vt,width:ke.width,height:ke.height}),Zt=ke.toDataURL("image/jpeg"),qt=Zt.indexOf(","),or=Zt==null?void 0:Zt.substring(qt+1),ir="https://sam.lvisei.icu/api",mn=new FormData,mn.append("image_path",or),$e.next=28,fetch(ir,{body:mn,method:"post"});case 28:return $e.next=30,$e.sent.arrayBuffer();case 30:lr=$e.sent;try{Qt=Qe.tileToLngLat(qe+1,Pe,at),en=Qe.tileToLngLat(Ie,mt+1,at),vn=[en[0],Qt[1]],sr=[Qt[0],en[1]],tn=(0,Ce.polygon)([[Qt,vn,en,sr,Qt]]),Ke(vn),At(tn),jt({data:{type:"FeatureCollection",features:[tn]}}),S([tn]),l.setEmbedding(lr),Ye.ZP.success(nt("map_control_group.sam.jiSuanWanCheng"))}catch(gt){console.log(gt)}$e.next=38;break;case 34:$e.prev=34,$e.t0=$e.catch(1),Ye.ZP.error(nt("map_control_group.sam.jiSuanShiBai")),_==null||_.off("click",Tt);case 38:return $e.prev=38,Q(!1),$e.finish(38);case 41:case"end":return $e.stop()}},R,null,[[1,34,38,41]])}));return function(){return P.apply(this,arguments)}}();return(0,h.useEffect)(function(){var P=new Qa.XU({modelUrl:Qa.AK,wasmPaths:D});P.initModel().then(function(){s(P)}).catch(function(){Ye.ZP.error(nt("map_control_group.sam.diKuaiShiBieShiBei"))})},[]),(0,h.useEffect)(function(){if(!(0,Ht.Z)(A)){var P=A.find(function(oe){return oe.id==="googleTileMap"}),R=A.find(function(oe){return oe.id===J.d7.PolygonLayer}),$=A.find(function(oe){return oe.id==="hoverLayer"});Z($),k(R),z(P)}},[A]),(0,h.useEffect)(function(){return I&&(C?I.on("unclick",Tt):(jt({data:{type:"FeatureCollection",features:[]}}),Ke(void 0),I.off("unclick",Tt))),function(){I==null||I.off("unclick",Tt)}},[C,_,Tt]),(0,h.useEffect)(function(){C&&l&&G()},[C,l]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ue.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:nt("map_control_group.sam.zhiNengXuanZe"),placement:"left",children:(0,e.jsx)(Ti.Z,{spinning:q,children:(0,e.jsx)("button",{type:"button",className:i.L7EditorControl,onClick:function(){l&&f(!C),C&&Ye.ZP.success(nt("map_control_group.sam.zhiNengShiBieGuanBi"))},children:(0,e.jsx)(Ge,{type:"icon-zhinengshibie",style:{fontSize:20,color:C?"#1677ff":""},className:i.l7EditorIcon})})})})}),Le&&(0,e.jsx)(ue.Jx,{lngLat:{lng:Le[0],lat:Le[1]},anchor:"center",offsets:[54,-16],children:(0,e.jsx)("div",{className:n.marker,children:nt("map_control_group.sam.ziDongShiBie")})}),(0,e.jsx)(ue.Ie,p()(p()({},Pi),{},{source:Gt}))]})},Xa={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0},Ai=function(n){var i=n.mapControl,r=(0,K.Og)(),a=r.baseMap,l=r.layerType,s=Yt(),u=(0,h.useState)(Xa),_=c()(u,2),d=_[0],b=_[1];return(0,h.useEffect)(function(){b(p()(p()({},Xa),i))},[i]),(0,e.jsxs)(e.Fragment,{children:[d.logoControl&&(0,e.jsx)(ue.OB,{position:"leftbottom"}),d.scaleControl&&(0,e.jsx)(ue.jf,{position:"leftbottom",className:s.scalesControl}),d.mouseLocationControl&&(0,e.jsx)(ue.CB,{position:"leftbottom",className:s.mouseLocatio}),d.drawControl&&(0,e.jsx)(Bo,{}),d.clearControl&&(0,e.jsx)(Zo,{}),d.zoomControl&&(0,e.jsx)(ue.Ly,{className:s.zoom,showZoom:!0}),d.mapAdministrativeControl&&(0,e.jsx)(_i,{}),d.administrativeSelectControl&&(0,e.jsx)(Oo,{}),d.locationSearchControl&&(0,e.jsx)(di,{}),d.filterControl&&(0,e.jsx)(qo,{}),a==="Gaode"&&d.officialLayerControl&&(0,e.jsx)(ji,{}),d.mapThemeControl&&(0,e.jsx)(gi,{}),d.geoLocateControl&&(0,e.jsx)(ue.l_,{position:"topleft",className:s.fullScreen}),d.layerColorControl&&(0,e.jsx)(ri,{}),d.autoControl&&(0,e.jsx)(Do,{}),d.fullscreenControl&&(0,e.jsx)(ue.ot,{position:"bottomright",className:s.fullScreen}),l.includes(J.dY.GoogleSatellite)&&(0,e.jsx)(Di,{})]})},Li=o(46312),Ya,qa,er,tr,nr,Zi=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorderSecondary,u=r.colorInfoHover,_=r.colorIcon;return{resizePanel:(0,F.iv)(Ya||(Ya=M()([` + width: 100%; + height: calc(100% - 50px); + display: flex; + position: relative; + `]))),resizePanelLeft:(0,F.iv)(qa||(qa=M()([` + position: absolute; + left: 0; + top: 0; + bottom: 0; + overflow: hidden; + `]))),resizePanelRight:(0,F.iv)(er||(er=M()([` + position: relative; + border-left: 1px solid `,`; + box-shadow: `,`; + `])),s,l),resizePanelDragLine:(0,F.iv)(tr||(tr=M()([` + transition: all 0.5s; + cursor: move !important; + z-index: 100; + + &:hover, + &:focus { + background-color: `,`; + } + `])),u),resizePanelToggleBtn:(0,F.iv)(nr||(nr=M()([` + height: 60px; + width: 20px; + display: flex; + align-items: center; + justify-content: center; + background: `,`; + position: absolute; + top: calc(50% - 30px); + left: -20px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + cursor: pointer; + z-index: 2; + .anticon { + transition: all 0.2s; + } + color: `,`; + `])),a,_)}},Fi=Zi,Ii=function(n){var i,r=n.left,a=n.right,l=n.onFeatureChange,s=(0,K.Og)(),u=s.hideEditor,_=s.setHideEditor,d=s.rightPanelWidth,b=s.setRightWidth,v=(0,h.useState)(null),S=c()(v,2),y=S[0],D=S[1],A=c()(J.yc,2),L=A[0],E=A[1],C=(i=(0,Ln.Z)(y))!==null&&i!==void 0?i:{},f=C.width,T=f===void 0?0:f,g=(0,K.SS)(),w=g.features,z=Fi(),j=function(k){var x,O=(x=y==null?void 0:y.getBoundingClientRect())!==null&&x!==void 0?x:{},Y=O.left,Z=Y===void 0?0:Y,B=100*(1-(k.clientX-Z)/T);BE&&(B=E),b(B)},U=(0,h.useMemo)(function(){return u?0:d},[u,d]);return(0,h.useEffect)(function(){l(w)},[w]),(0,e.jsxs)("div",{className:Ee()([z.resizePanel,"l7-editor-content"]),ref:function(k){D(k)},children:[(0,e.jsx)("div",{className:Ee()([z.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-U,"%")},children:r}),(0,e.jsxs)(Li.e,{enable:{left:!0},style:{marginLeft:"".concat(100-U,"%")},size:{width:"".concat(U,"%"),height:"100%"},minWidth:"".concat(L/100*T,"px"),maxWidth:"".concat(E/100*T,"px"),className:Ee()([z.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:z.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(U,"%"),height:"100%"},onResize:j,children:[a,(0,e.jsx)("div",{className:z.resizePanelToggleBtn,onClick:function(){_(!u)},children:(0,e.jsx)(Ba.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},Mi=o(29905),Wi=o(37382),lt=o(22950),wi=o(77598),Bi=o(94740),ki=o(69483),ar=o.n(ki),Ri=function(){var n=(0,K.SS)(),i=n.transformCoord,r=qn(),a=r.features,l=(0,K.Og)(),s=l.layerColor,u=(0,h.useMemo)(function(){return{zIndex:101,field:"name",style:{fill:"".concat(s),opacity:1,fontSize:18,stroke:"#fff",strokeWidth:2,textAllowOverlap:!0,padding:[10,10],textOffset:[0,-18]}}},[s]),_=(0,h.useMemo)(function(){var d=i(a).map(function(v){var S;return{data:(0,Ce.center)(v),featureIndex:(S=v.properties)===null||S===void 0?void 0:S[J.AQ.Index]}}),b=d.map(function(v){return{x:v.data.geometry.coordinates[0],y:v.data.geometry.coordinates[1],name:"".concat(v.featureIndex+1)}});return b},[i,a]);return(0,e.jsx)(ue.AB,p()(p()({},u),{},{source:{data:_,parser:{type:"json",x:"x",y:"y"}}}))},rr,Ji=function(){return{l7Editor:(0,F.iv)(rr||(rr=M()([` + width: 100%; + height: 100%; + position: relative; + overflow: hidden; + `])))}},Ni=Ji,Gi=function(n){var i=n.onFeatureChange,r=(0,te.$G)(),a=r.i18n,l=r.t,s=(0,K.Og)(),u=s.theme,_=s.mapOptions,d=s.setMapOptions,b=s.showIndex,v=s.locale,S=Ni(),y=(0,K.SS)(),D=y.saveEditorText,A=y.bboxAutoFit,L=y.scene;(0,wi.Z)(function(){d(u==="dark"?p()(p()({},_),{},{style:"dark"}):p()(p()({},_),{},{style:"normal"}))},[u]),(0,h.useEffect)(function(){a.changeLanguage(v)},[]);var E=(0,h.useMemo)(function(){var C;return(C=Ot.find(function(f){return f.lang===v}))===null||C===void 0?void 0:C.antd},[v]);return(0,Xt.Z)(tt()(Te()().mark(function C(){var f,T;return Te()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ar().getItem(J.Fe.EditorText);case 2:if(f=w.sent,f&&L&&!n.features)try{T=JSON.parse(f).features,A(T)}catch(z){Ye.ZP.error(l("import_btn.file_upload.qingJianChaShuJu"))}else L&&n.features&&A();case 4:case"end":return w.stop()}},C)})),[L]),(0,Xt.Z)(tt()(Te()().mark(function C(){var f;return Te()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,ar().getItem(J.Fe.EditorText);case 2:f=g.sent,f&&!n.features&&D(f);case 4:case"end":return g.stop()}},C)})),[]),(0,e.jsx)(Bi.ZP,{locale:E,theme:{algorithm:u==="dark"?we.Z.darkAlgorithm:we.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:Ee()([S.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(Ir,{toolbar:n.toolbar}),(0,e.jsx)(Ii,{onFeatureChange:function(f){i&&i(f)},left:(0,e.jsxs)(kr,{children:[(0,e.jsx)(Ai,{mapControl:n.mapControl}),b&&(0,e.jsx)(Ri,{}),(0,e.jsx)(io,{}),(0,e.jsx)(fo,{}),(0,e.jsx)(ao,{})]}),right:(0,e.jsx)(bo,{tabItems:n==null?void 0:n.tabItems,features:n==null?void 0:n.features})})]})})};Vt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var zi=function(n){var i=(0,te.$G)(),r=i.t,a=(0,h.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),l=(0,h.useMemo)(function(){return function(s){var u,_,d,b,v,S,y,D,A,L,E,C,f=s.set;f(lt.EB,(u=n==null?void 0:n.baseMap)!==null&&u!==void 0?u:"Gaode"),f(lt.dR,(_=n==null?void 0:n.primaryColor)!==null&&_!==void 0?_:J.K6),f(lt.Do,(d=n==null?void 0:n.rightPanelWidth)!==null&&d!==void 0?d:40),f(lt.aQ,(b=n==null?void 0:n.mapOption)!==null&&b!==void 0?b:{style:"normal",maxZoom:24}),f(lt.E1,!(n!=null&&n.autoFitBounds)),f(lt.xZ,(v=n==null?void 0:n.popupTrigger)!==null&&v!==void 0?v:"click"),f(lt.Uv,(S=n==null?void 0:n.activeTab)!==null&&S!==void 0?S:"geojson"),f(lt.DJ,(y=n==null?void 0:n.officialLayers)!==null&&y!==void 0?y:[]),f(lt.bK,(D=n==null?void 0:n.hidePanel)!==null&&D!==void 0?D:!1),f(lt.XG,(A=n==null?void 0:n.theme)!==null&&A!==void 0?A:"light"),f(lt.PY,(L=n==null?void 0:n.coordConvert)!==null&&L!==void 0?L:"GCJ02"),f(lt.GR,(E=n==null?void 0:n.locale)!==null&&E!==void 0?E:"zh-CN"),f(lt._u,(C=n==null?void 0:n.wasmPath)!==null&&C!==void 0?C:"/")}},[n]);return a?(0,e.jsx)(Vt.Wh,{initializeState:l,children:(0,e.jsx)(Gi,p()({},n))}):(0,e.jsx)(Mi.ZP,{status:"404",title:r("pages.index.qingYongPCDuan")})}},22950:function(Ze,se,o){"use strict";o.d(se,{DJ:function(){return K},Do:function(){return Ae},E1:function(){return Ee},EB:function(){return te},GR:function(){return ot},LY:function(){return ve},PY:function(){return e},Qn:function(){return ae},Rl:function(){return ee},UW:function(){return Oe},Uv:function(){return J},XG:function(){return Ge},Z3:function(){return We},_u:function(){return Ce},aD:function(){return Se},aQ:function(){return et},bK:function(){return ct},bo:function(){return Me},dR:function(){return Re},tJ:function(){return xe},xZ:function(){return h},zl:function(){return je}});var fe=o(69483),p=o.n(fe),N=o(4480),c=o(55375),ne=function(Ue){return function(ie){var X=ie.setSelf,re=ie.onSet,V=localStorage.getItem(Ue);V&&X(JSON.parse(V)),re(function(me){me instanceof N.nY?localStorage.removeItem(Ue):localStorage.setItem(Ue,JSON.stringify(me))})}},be=function(Ue){return function(ie){var X=ie.setSelf,re=ie.onSet;p().getItem(Ue).then(function(V){V&&X(V)}),re(function(V){V instanceof N.nY?p().removeItem(Ue):p().setItem(Ue,V)})}},ve=(0,N.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),Se=(0,N.cn)({key:"isDraw",default:!1}),xe=(0,N.cn)({key:"savedText",default:""}),ee=(0,N.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),ae=(0,N.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Me=(0,N.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[be(c.Fe.EditorText)]}),ce=(0,N.cn)({key:"lnglatType"}),W=(0,N.cn)({key:"lnglatText",default:""}),Ae=(0,N.cn)({key:"rightPanelWidth",effects:[ne(c.Fe.RightPanelWidth)]}),et=(0,N.cn)({key:"mapOptions",effects:[ne(c.Fe.MapOptions)]}),Re=(0,N.cn)({key:"layerColor",effects:[ne(c.Fe.LayerColor)]}),ct=(0,N.cn)({key:"hideEditor",default:!1,effects:[ne(c.Fe.HideEditor)]}),Ee=(0,N.cn)({key:"autoFitBounds",effects:[ne(c.Fe.AutoFitBounds)]}),h=(0,N.cn)({key:"popupTrigger",effects:[ne(c.Fe.PopupTrigger)]}),te=(0,N.cn)({key:"baseMap",effects:[ne(c.Fe.BaseMap)]}),J=(0,N.cn)({key:"activeTab",default:"geojson",effects:[ne(c.Fe.ActiveRightTabKey)]}),K=(0,N.cn)({key:"layerType",default:[],effects:[ne(c.Fe.officialLayers)]}),e=(0,N.cn)({key:"coordConvert",default:"GCJ02",effects:[ne(c.Fe.Convert)]}),Ge=(0,N.cn)({key:"theme",default:"light",effects:[ne(c.Fe.theme)]}),je=(0,N.cn)({key:"cityHistory",default:[],effects:[ne(c.Fe.cityHistory)]}),Oe=(0,N.cn)({key:"showIndex",default:!0,effects:[ne(c.Fe.showIndex)]}),We=(0,N.cn)({key:"showIndex",default:[],effects:[ne(c.Fe.customTiles)]}),ot=(0,N.cn)({key:"locale",default:"zh-CN",effects:[ne(c.Fe.locale)]}),Ce=(0,N.cn)({key:"wasmPaths",effects:[ne(c.Fe.wasmPath)]})},85959:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return Ge}});var fe=o(19632),p=o.n(fe),N=o(52677),c=o.n(N),ne=o(9783),be=o.n(ne),ve=o(97857),Se=o.n(ve),xe=o(5574),ee=o.n(xe),ae=o(24928),Me=o(10154),ce=o(68652),W=o(16805),Ae=o(3729),et=o(90783),Re=o(67294),ct=o(67421),Ee=o(4480),h=o(55375),te=o(20929),J=o(12510),K=o(22950),e=o(57874);function Ge(){var je=(0,e.Z)(),Oe=je.baseMap,We=je.coordConvert,ot=(0,Ee.FV)(K.bo),Ce=ee()(ot,2),Xe=Ce[0],Ue=Ce[1],ie=(0,Ee.FV)(K.tJ),X=ee()(ie,2),re=X[0],V=X[1],me=(0,Ee.FV)(K.Rl),Je=ee()(me,2),Ne=Je[0],xt=Je[1],dt=(0,Ee.FV)(K.aD),st=ee()(dt,2),yt=st[0],Et=st[1],pt=(0,Ee.FV)(K.Qn),Ot=ee()(pt,2),_e=Ot[0],zt=Ot[1],M=(0,ct.$G)(),F=M.t,we=(0,Re.useMemo)(function(){return Xe!==re},[Xe,re]),Mt=(0,Re.useMemo)(function(){return(0,ae.featureCollection)(Ne)},[Ne]),Pt=function(de){xt((0,ce.Z)(de).map(function(he,Fe){var He;return he.properties=Se()(Se()({},he.properties),{},be()({},h.AQ.Index,Fe)),(He=he.properties)!==null&&He!==void 0&&He[h.AQ.DrawType]||(he.properties[h.AQ.DrawType]=function(){var ft=(0,ae.getType)(he);return/Point/.test(ft)?"point":/LineString/.test(ft)?"line":"polygon"}()),he}))},wt=function(de){var he=JSON.stringify({type:"FeatureCollection",features:[]},null,2),Fe=[];if(Xe||de)try{Fe=(0,te.mr)(de!=null?de:Xe,F),de&&Ue(de),V(de!=null?de:Xe),Pt(Fe)}catch(He){Me.ZP.warning(F("recoil.feature.shuJuJiaZaiYou"))}else Ue(he),V(he);return Fe},Ft=function(de){var he=(0,J.X)({content:(0,ae.featureCollection)(de)});Ue(he),V(he),Pt(de)},Bt=(0,Re.useMemo)(function(){var ze=Ne.map(function(he,Fe){var He=he.properties;return Se()({__index:Fe+1},He)}),de=[];return Array.from(new Set((0,W.Z)(Ne.map(function(he){var Fe=he.properties;return Object.keys(Fe)})))).forEach(function(he){var Fe=c()(ze[0][he]);if(Fe==="string"||Fe==="boolean"){var He=ze.map(function(Ct){return String(Ct[he])});de.push({type:"string",field:he,value:He})}else if(Fe==="number"){var ft=ze.map(function(Ct){return Ct[he]});de.push({type:Fe,field:he,min:(0,Ae.Z)(ft),max:(0,et.Z)(ft)})}}),de},[Ne]),Dt=(0,Re.useCallback)(function(ze){var de=p()(ze);return We==="WGS84"&&Oe==="Gaode"?de=de.map(function(he){return(0,te.IQ)((0,ce.Z)(he))}):We==="GCJ02"&&Oe==="Mapbox"&&(de=de.map(function(he){return(0,te.Jk)((0,ce.Z)(he))})),de},[Oe,We]),kt=(0,Re.useCallback)(function(ze){var de=p()(ze);return We==="WGS84"&&Oe==="Gaode"?de=de.map(function(he){return(0,te.Jk)((0,ce.Z)(he))}):We==="GCJ02"&&Oe==="Mapbox"&&(de=de.map(function(he){return(0,te.IQ)((0,ce.Z)(he))})),de},[Oe,We]),It=(0,Re.useCallback)(function(ze){var de=ze!=null?ze:Ne;if(_e&&de.length){var he=(0,ae.bbox)((0,ae.featureCollection)(Dt(de))),Fe=ee()(he,4),He=Fe[0],ft=Fe[1],Ct=Fe[2],Rt=Fe[3];_e.fitBounds([[He,ft],[Ct,Rt]])}},[Ne,_e,Dt]);return{editorText:Xe,setEditorText:Ue,savedText:re,setSavedText:V,features:Ne,setFeatures:Pt,savable:we,saveEditorText:wt,resetFeatures:Ft,dataSource:Bt,bboxAutoFit:It,setIsDraw:Et,isDraw:yt,scene:_e,setScene:zt,fc:Mt,transformCoord:Dt,revertCoord:kt}}},29795:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return ne}});var fe=o(5574),p=o.n(fe),N=o(4480),c=o(22950);function ne(){var be=(0,N.FV)(c.LY),ve=p()(be,2),Se=ve[0],xe=ve[1];return{filters:Se,setFilters:xe}}},57874:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return ne}});var fe=o(5574),p=o.n(fe),N=o(4480),c=o(22950);function ne(){var be=(0,N.FV)(c.Do),ve=p()(be,2),Se=ve[0],xe=ve[1],ee=(0,N.FV)(c.aQ),ae=p()(ee,2),Me=ae[0],ce=ae[1],W=(0,N.FV)(c.dR),Ae=p()(W,2),et=Ae[0],Re=Ae[1],ct=(0,N.FV)(c.bK),Ee=p()(ct,2),h=Ee[0],te=Ee[1],J=(0,N.FV)(c.E1),K=p()(J,2),e=K[0],Ge=K[1],je=(0,N.FV)(c.xZ),Oe=p()(je,2),We=Oe[0],ot=Oe[1],Ce=(0,N.FV)(c.EB),Xe=p()(Ce,2),Ue=Xe[0],ie=Xe[1],X=(0,N.FV)(c.Uv),re=p()(X,2),V=re[0],me=re[1],Je=(0,N.FV)(c.DJ),Ne=p()(Je,2),xt=Ne[0],dt=Ne[1],st=(0,N.FV)(c.PY),yt=p()(st,2),Et=yt[0],pt=yt[1],Ot=(0,N.FV)(c.XG),_e=p()(Ot,2),zt=_e[0],M=_e[1],F=(0,N.FV)(c.zl),we=p()(F,2),Mt=we[0],Pt=we[1],wt=(0,N.FV)(c.UW),Ft=p()(wt,2),Bt=Ft[0],Dt=Ft[1],kt=(0,N.FV)(c.Z3),It=p()(kt,2),ze=It[0],de=It[1],he=(0,N.FV)(c.GR),Fe=p()(he,2),He=Fe[0],ft=Fe[1],Ct=(0,N.FV)(c._u),Rt=p()(Ct,2),nn=Rt[0],Te=Rt[1];return{rightPanelWidth:Se,setRightWidth:xe,mapOptions:Me,setMapOptions:ce,layerColor:et,setLayerColor:Re,hideEditor:h,setHideEditor:te,popupTrigger:We,setPopupTrigger:ot,baseMap:Ue,setBaseMap:ie,autoFitBounds:e,setAutoFitBounds:Ge,activeTab:V,setActiveTab:me,layerType:xt,setLayerType:dt,coordConvert:Et,setCoordConvert:pt,theme:zt,setTheme:M,cityHistory:Mt,setCityHistory:Pt,showIndex:Bt,setShowIndex:Dt,customTiles:ze,setCustomTiles:de,locale:He,setLocale:ft,wasmPath:nn,setWasmPath:Te}}},32865:function(Ze,se,o){"use strict";o.d(se,{SS:function(){return fe.Z},L0:function(){return p.Z},Og:function(){return N.Z}});var fe=o(85959),p=o(29795),N=o(57874),c=o(19632),ne=o(5574),be=o(24928),ve=o(67421),Se=o(4480),xe=o(55375),ee=o(22950);function ae(){var Me=useRecoilState(lnglatTypeState),ce=_slicedToArray(Me,2),W=ce[0],Ae=ce[1],et=useTranslation(),Re=et.t,ct=useRecoilState(lnglatTextState),Ee=_slicedToArray(ct,2),h=Ee[0],te=Ee[1],J=function(e){var Ge=e.split(` +`).filter(function(Oe){return Oe}).map(function(Oe){return Oe.split(";").filter(function(We){return We}).map(function(We){return We.split(",").filter(function(ot){return ot}).map(function(ot){return+ot})})});if(LngLatVT.check(Ge)){var je=[];return W==="Point"?je.push.apply(je,_toConsumableArray(Ge.flat().map(function(Oe){return point(Oe)}))):W==="LingString"?je.push.apply(je,_toConsumableArray(Ge.map(function(Oe){return lineString(Oe)}))):je.push.apply(je,_toConsumableArray(Ge.map(function(Oe){return isEqual(first(Oe),last(Oe))||Oe.push(Oe[0]),polygon([Oe])}))),je}else throw new Error(Re("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:W,setLngLatImportType:Ae,lngLatText:h,setLngLatText:te,importLngLatText:J}}},20929:function(Ze,se,o){"use strict";o.d(se,{fC:function(){return J},fN:function(){return et.f},Qp:function(){return K},Yt:function(){return et.Y},Di:function(){return Oe},Jk:function(){return Ee},C2:function(){return je},oO:function(){return We},bo:function(){return ot},gw:function(){return Xe},tI:function(){return Ce},Ep:function(){return Ue},mr:function(){return e},IQ:function(){return ct}});var fe=o(15009),p=o.n(fe),N=o(99289),c=o.n(N),ne=o(97857),be=o.n(ne),ve=o(67135),Se=o(89597),xe=o.n(Se),ee=o(24928),ae=o(10154),Me=o(27484),ce=o.n(Me),W=o(49360),Ae=o(55375),et=o(42649),Re=o(80520),ct=function(X){return X.geometry.type.match(/polygon/i)&&(X.geometry=JSON.parse(JSON.stringify(X.geometry))),Re.Z.transform(X,Re.Z.WGS84,Re.Z.GCJ02)},Ee=function(X){return X.geometry.type.match(/polygon/i)&&(X.geometry=JSON.parse(JSON.stringify(X.geometry))),Re.Z.transform(X,Re.Z.GCJ02,Re.Z.WGS84)},h=o(19632),te=o.n(h);function J(ie){var X=(0,ee.coordAll)(ie).map(function(re){return re.join(",")}).join(";");return X}function K(ie){var X=ie.split(` +`).filter(function(V){return V}).map(function(V){return V.split(";").filter(function(me){return me}).map(function(me){return me.split(",").filter(function(Je){return Je}).map(function(Je){return+Je})})});if(Ae.eG.check(X)){var re=[];return re.push.apply(re,te()(X.flat().map(function(V){return(0,ee.point)(V)}))),re}}var e=function(X,re){var V=JSON.parse(X);if(Ae._9.check(V))return V.features;if(Array.isArray(V))return Ae.Iz.check(V)?V:Ae.xQ.check(V)?V.map(function(me){return(0,ee.feature)(me)}):(console.warn(re("utils.transform.weiShiBieJS")),[]);if(Ae.u9.check(V))return[V];if(Ae.dw.check(V))return[(0,ee.feature)(V)]},Ge=function(X,re){var V=Color(X).fade(re);return"rgba(".concat(V.array().join(", "),")")},je=function(X){var re=(0,ve.getSingleColorStyle)(X);return Object.keys(re).forEach(function(V){re[V].options=be()(be()({},re[V].options),{},{zIndex:Ae.QF})}),re},Oe=function(X,re){var V=document.createElement("a");V.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(X)),V.setAttribute("download","".concat(ce()().format("YYYY-MM-DD"),".").concat(re)),V.style.display="none",document.body.appendChild(V),V.click()},We=function(X){var re=new URLSearchParams(window.location.search);return re.get(X)},ot=function(){var ie=c()(p()().mark(function X(re){var V,me,Je,Ne,xt,dt,st,yt,Et,pt=arguments;return p()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return V=pt.length>1&&pt[1]!==void 0?pt[1]:"GeoJSON",me=pt.length>2?pt[2]:void 0,_e.next=4,fetch(re);case 4:if(Je=_e.sent,V!=="GeoJSON"){_e.next=18;break}return _e.prev=6,_e.next=9,Je.json();case 9:return Ne=_e.sent,_e.abrupt("return",Ne);case 13:throw _e.prev=13,_e.t0=_e.catch(6),new Error(me("utils.index.qingJianChaUR"));case 16:_e.next=43;break;case 18:if(V!=="WKT"){_e.next=30;break}return _e.next=21,Je.text();case 21:if(xt=_e.sent,dt=(0,et.Y)(xt),!Ae._9.check(dt)){_e.next=27;break}return _e.abrupt("return",dt);case 27:ae.ZP.error(me("utils.index.qingJianChaUR"));case 28:_e.next=43;break;case 30:if(V!=="KML"){_e.next=43;break}return _e.next=33,Je.text();case 33:if(st=_e.sent,yt=new DOMParser().parseFromString(st,"text/xml"),!(yt.getElementsByTagName("parsererror").length>0)){_e.next=39;break}ae.ZP.error(me("utils.index.qingJianChaUR")),_e.next=43;break;case 39:return _e.next=41,xe().kml(yt,{style:!0});case 41:return Et=_e.sent,_e.abrupt("return",Et);case 43:case"end":return _e.stop()}},X,null,[[6,13]])}));return function(re){return ie.apply(this,arguments)}}(),Ce=function(X){return!(0,W.Z)(X)&&X instanceof Promise},Xe=function(X){var re,V=(re=X.properties)===null||re===void 0?void 0:re[Ae.AQ.DrawType];if(V==="circle")return!0;var me=(0,ee.center)(X).geometry.coordinates,Je=(0,ee.coordAll)(X).map(function(Ne){return Math.round((0,ee.distance)(Ne,me,{units:"meters"}))});return Array.from(new Set(Je)).length===1},Ue=function(X){var re,V=(re=X.properties)===null||re===void 0?void 0:re[Ae.AQ.DrawType];if(V==="rect")return!0;var me=(0,ee.coordAll)(X);if(me.length!==5)return!1;var Je=(0,ee.distance)(me[0],me[1],{units:"meters"}).toFixed(0),Ne=(0,ee.distance)(me[1],me[2],{units:"meters"}).toFixed(0),xt=(0,ee.distance)(me[2],me[3],{units:"meters"}).toFixed(0),dt=(0,ee.distance)(me[3],me[4],{units:"meters"}).toFixed(0);if(Je===xt&&Ne===dt){var st=Math.round((0,ee.bearing)(me[0],me[3])-(0,ee.bearing)(me[0],me[1]));return st===90||st===270}return!1}},12510:function(Ze,se,o){"use strict";o.d(se,{X:function(){return ne}});var fe=o(73945),p=o.n(fe),N=o(28182),c=o.n(N);function ne(be){var ve=be.content,Se=be.parser,xe=Se===void 0?"json":Se,ee=ve;typeof ve!="string"&&(ee=JSON.stringify(ve,null,2));var ae=p().format(ee,{parser:xe==="json"?xe:"babel",plugins:[c()]});return ae}},42649:function(Ze,se,o){"use strict";o.d(se,{Y:function(){return ne},f:function(){return c}});var fe=o(24928),p=o(41545),N=o.n(p);function c(be){return be.features.map(function(ve){return(0,p.stringify)(ve.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function ne(be){var ve=(0,fe.featureCollection)([]);return be.split(/[;\n]/g).forEach(function(Se){if(Se){var xe=(0,p.parse)(Se);xe&&ve.features.push((0,fe.feature)(xe,{}))}}),ve}},20067:function(){}}]); diff --git a/277.e43873d9.async.js b/277.e43873d9.async.js deleted file mode 100644 index 4bdd477..0000000 --- a/277.e43873d9.async.js +++ /dev/null @@ -1,550 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[277],{37382:function(){window._iconfont_svg_string_3567033='',function(Oe){var r=(r=document.getElementsByTagName("script"))[r.length-1],oe=r.getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var ue,d,J,f,ae,ge=function(X,ee){ee.parentNode.insertBefore(X,ee)};if(oe&&!Oe.__iconfont__svg__cssinject__){Oe.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(xe){console&&console.log(xe)}}ue=function(){var X,ee=document.createElement("div");ee.innerHTML=Oe._iconfont_svg_string_3567033,(ee=ee.getElementsByTagName("svg")[0])&&(ee.setAttribute("aria-hidden","true"),ee.style.position="absolute",ee.style.width=0,ee.style.height=0,ee.style.overflow="hidden",ee=ee,(X=document.body).firstChild?ge(ee,X.firstChild):X.appendChild(ee))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ue,0):(d=function(){document.removeEventListener("DOMContentLoaded",d,!1),ue()},document.addEventListener("DOMContentLoaded",d,!1)):document.attachEvent&&(J=ue,f=Oe.document,ae=!1,ye(),f.onreadystatechange=function(){f.readyState=="complete"&&(f.onreadystatechange=null,fe())})}function fe(){ae||(ae=!0,J())}function ye(){try{f.documentElement.doScroll("left")}catch(xe){return void setTimeout(ye,50)}fe()}}(window)},84731:function(Oe,oe,r){"use strict";r.d(oe,{B:function(){return f}});var ue=r(24928),d=r(78683),J=r(23978);function f(ae,ge,fe){var ye=ae.getWordUntilPosition(ge),xe={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},X=[];if(fe==="turf")for(var ee in ue){var Pe={label:ee,kind:J.languages.CompletionItemKind.Function,documentation:ue[ee].toString(),insertText:ee,range:xe};X.push(Pe)}else X=d.Z.chain(d.Z).keys().map(function(k){return{label:k,kind:J.languages.CompletionItemKind.Function,insertText:k,range:xe}}).value();return{suggestions:X}}},56550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(42122),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17061),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(17156),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(27424),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(36306),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(58580),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(78234),ahooks__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(77598),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(23978),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(67294),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(67421),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2302),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(32865),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20929),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(12510),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(84731),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28804),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(85893),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),geoJonText=_useState6[0],setGeoJonText=_useState6[1],debouncedGeoJsonText=(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(geoJonText,{wait:2e3}),_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(oe){return[{range:oe.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:oe.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(oe,r){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(oe,r,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(oe,r){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(oe,r,"turf")}})});var monacoChange=function(oe){if(language==="json"){setEditorText(oe),setGeoJonText(oe);return}setScriptContent==null||setScriptContent(oe)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Oe,oe){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_17__.Z)(function(){var Oe=saveEditorText();autoFitBounds&&bboxAutoFit(Oe)},[debouncedGeoJsonText]);var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},28804:function(Oe,oe,r){"use strict";var ue=r(59400),d=r.n(ue),J=r(68479),f,ae=function(){return{appEditor:(0,J.iv)(f||(f=d()([` - width: 100%; - height: 100%; - position: relative; - .react-monaco-editor-container { - width: 100%; - height: 100%; - } - `])))}};oe.Z=ae},55375:function(Oe,oe,r){"use strict";r.d(oe,{AQ:function(){return fe},Fe:function(){return J},IZ:function(){return xe},Iz:function(){return ue.Iz},K6:function(){return ge},QF:function(){return X},_9:function(){return ue._9},ay:function(){return ee},d7:function(){return f},dY:function(){return Pe},dw:function(){return ue.dw},eG:function(){return ue.eG},s3:function(){return ye},u9:function(){return ue.u9},xQ:function(){return ue.xQ},yc:function(){return d}});var ue=r(50599),d=[20,80],J=function(k){return k.RightPanelWidth="RightPanelWidth",k.MapOptions="MapOptions",k.LayerColor="LayerColor",k.HideEditor="HideEditor",k.EditorText="EditorText",k.PopupTrigger="PopupTrigger",k.ActiveRightTabKey="ActiveRightTabKey",k.AutoFitBounds="AutoFitBounds",k.BaseMap="BaseMap",k.officialLayers="officialLayers",k.WktText="WktText",k.Convert="Convert",k.theme="theme",k.cityHistory="cityHistory",k.showIndex="showIndex",k.locale="locale",k.firstOpening="firstOpening",k}({}),f=function(k){return k.PointLayer="PointLayer",k.LineLayer="LineLayer",k.PolygonLayer="PolygonLayer",k}({}),ae="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",ge="#1677ff",fe={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},ye={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg"},xe={token:"5ae4492ef912cbbc93034fea0e66ff2a"},X=100,ee="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s,m&gl=CN&x={x}&y={y}&z={z}",Pe=function(k){return k.AmapSatellite="amapSatellite",k.AmapRoadNet="amapRoadNet",k.AmapTraffic="amapTraffic",k.AmapBuildings="amapBuildings",k.GoogleSatellite="googleSatellite",k}({})},50599:function(Oe,oe,r){"use strict";r.d(oe,{Iz:function(){return ye},_9:function(){return xe},dw:function(){return ae},eG:function(){return X},u9:function(){return fe},xQ:function(){return ge}});var ue=r(27424),d=r.n(ue),J=r(17099),f=r.n(J),ae=f().shape({type:f().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:f().array}),ge=f().arrayOf(ae),fe=f().shape({type:f().in(["Feature"]),properties:f().or([f().object,f().null,f().undefined]),geometry:ae}),ye=f().arrayOf(fe),xe=f().shape({type:f().in(["FeatureCollection"]),features:f().arrayOf(fe)}),X=f().arrayOf(f().arrayOf(f().and([f().arrayOf(f().number),f().apply(function(ee){if(ee.length===2){var Pe=d()(ee,2),k=Pe[0],ve=Pe[1];return k>=-180&&k<=180&&ve<=90&&ve>=-90}return!1})])))},16488:function(Oe,oe,r){"use strict";r.r(oe),r.d(oe,{AppTable:function(){return kn},GeoJsonEditor:function(){return qt.i},L7Editor:function(){return Ai},LngLatEditor:function(){return qr},WktEditor:function(){return na}});var ue=r(42122),d=r.n(ue),J=r(27424),f=r.n(J),ae=r(60219),ge=r(75932),fe=r(78588),ye=r(1210),xe=r(38854),X=r(65868),ee=r(96074),Pe=r(78957),k=r(61781),ve=r(15867),De=r(83159),He=r(55241),Le=r(93531),ct=r(94184),Te=r.n(ct),_=r(67294),$=r(67421),R=r(55375),W=r(32865),e=r(85893),Ie=function(n){return(0,e.jsx)("span",{id:n.id,role:"img",style:n.style,className:Te()(["anticon",n.className]),children:(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",className:"",children:(0,e.jsx)("use",{xlinkHref:"#".concat(n.type)})})})},be=r(34041),Se=be.Z.Option,We=function(){var n=(0,W.Og)(),i=n.baseMap,o=n.setBaseMap,a=n.setMapOptions,l=n.mapOptions,s=n.theme,u=n.setCoordConvert,h=(0,$.$G)(),c=h.t,y=[{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*POJeRJzjdNAAAAAAAAAAAAAADjWqAQ/original",label:c("btn.setting_btn.gaoDe"),value:"Gaode"},{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*-G-sT4L_sNoAAAAAAAAAAAAADjWqAQ/original",label:"Mapbox",value:"Mapbox"}],x=function(g){o(g),a(d()(d()({},l),{},{style:s==="dark"?"dark":"normal"})),u(g==="Gaode"?"GCJ02":"WGS84"),g!==i&&location.reload()};return(0,e.jsx)(be.Z,{style:{width:"120px"},bordered:!1,defaultValue:i,onChange:x,children:y.map(function(p){return(0,e.jsx)(Se,{value:p.value,label:p.label,children:(0,e.jsxs)(Pe.Z,{children:[(0,e.jsx)("span",{style:{display:"flex"},children:(0,e.jsx)("img",{src:p.img,alt:"",style:{height:15,width:15}})}),(0,e.jsx)("span",{children:p.label})]})},p.value)})})},et=r(85060),ce=r(24928),ke=r(12816),Qe=r.n(ke),re=r(20929),z=r(12510),te=r(42649),Q=function(){var n=(0,W.SS)(),i=n.editorText,o=n.fc,a=(0,$.$G)(),l=a.t,s=function(c){if(c==="GeoJson")(0,re.Di)(JSON.stringify(o),"json");else if(c==="FormatGeoJson"){var y=(0,z.X)({content:o});(0,re.Di)(y,"json")}else if(c==="LngLat")(0,re.Di)((0,ce.coordAll)(o).map(function(p){return p.join(",")}).join(";"),"txt");else if(c==="KML"){var x=Qe()(o);(0,re.Di)(x,"kml")}else c==="WKT"?(0,re.Di)((0,te.f)(o),"wkt"):(0,re.Di)(i,"json")},u=[{key:"GeoJson",label:l("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:l("app_header.constants.xiaZaiLNG")},{key:"KML",label:l("app_header.constants.xiaZaiKML")},{key:"WKT",label:l("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(De.Z,{menu:{items:u,onClick:function(c){var y=c.key;s(y)}},children:(0,e.jsx)(ve.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(et.Z,{}),children:l("btn.download_btn.xiaZai")})})},me=Q,we=r(63783),Be=function(){var v=(0,$.$G)(),n=v.t,i=function(l){l==="guide"?window.open("/guide"):l==="api"?window.open("/docs"):l==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},o=[{key:"guide",label:n("app_header.constants.pingTaiShiYongWen")},{key:"api",label:n("app_header.constants.zuJianAPI")},{key:"issue",label:n("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(De.Z,{menu:{items:o,onClick:function(l){var s=l.key;i(s)}},placement:"bottom",children:(0,e.jsx)(ve.ZP,{icon:(0,e.jsx)(we.Z,{}),children:n("btn.handback_btn.bangZhu")})})})},ht=r(18253),dt=r(82925),ot=r(36609),_t=r(15059),St={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeTuCeng":"Google Layers","official_layer_control.index.gaoDeTuCeng":"Gaode Layer","official_layer_control.index.guGeWeiXingTu":"Google Satellite Maps","official_layer_control.index.louKuaiTu":"Building Block","official_layer_control.index.luKuangTu":"Road condition map","official_layer_control.index.luWangTu":"Road network diagram","official_layer_control.index.weiXingTu":"Satellite map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position"},pt={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeTuCeng":"\u8C37\u6B4C\u56FE\u5C42","official_layer_control.index.gaoDeTuCeng":"\u9AD8\u5FB7\u56FE\u5C42","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u536B\u661F\u56FE","official_layer_control.index.louKuaiTu":"\u697C\u5757\u56FE","official_layer_control.index.luKuangTu":"\u8DEF\u51B5\u56FE","official_layer_control.index.luWangTu":"\u8DEF\u7F51\u56FE","official_layer_control.index.weiXingTu":"\u536B\u661F\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E"};ot.ZP.use(_t.Z).use($.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:pt},"en-US":{translation:St}}});var Tt=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:dt.Z},{lang:"en-US",name:"English",antd:ht.Z}],de=null,Nt=r(59400),w=r.n(Nt),M=r(68479),Fe=r(9361),wt,jt,Bt,Lt,kt,Et,Rt,Ft,Re,le,pe,Ze=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBorder,l=o.colorBgContainer,s=o.colorText;return{mapHeader:(0,M.iv)(wt||(wt=w()([` - padding: 0 16px; - height: 50px; - border-bottom: 1px solid `,`; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - background: `,`; - z-index: 1; - .ant-btn { - border: 0; - } - `])),a,l),mapHeaderLogo:(0,M.iv)(jt||(jt=w()([` - display: flex; - align-items: center; - img { - width: auto; - height: 24px; - margin-right: 4px; - } - `]))),mapHeaderTitle:(0,M.iv)(Bt||(Bt=w()([` - font-size: 16px; - font-weight: bold; - margin-left: 4px; - margin-right: 16px; - color: `,`; - `])),s),mapHeaderLeft:(0,M.iv)(Lt||(Lt=w()([` - display: flex; - align-items: center; - `]))),mapHeaderRight:(0,M.iv)(kt||(kt=w()([` - display: flex; - align-items: center; - `]))),locale:(0,M.iv)(Et||(Et=w()([` - font-size: 16px; - `]))),localeIcon:(0,M.iv)(Rt||(Rt=w()([` - font-size: 16px; - `]))),upload:(0,M.iv)(Ft||(Ft=w()([` - height: 200px; - display: flex; - overflow: hidden; - flex-direction: column; - align-items: center; - justify-content: center; - `]))),uploadTitle:(0,M.iv)(Re||(Re=w()([` - font-size: 14px; - padding: 10px 6px 10px 0; - `]))),theme:(0,M.iv)(le||(le=w()([` - cursor: pointer; - padding: 0 !important; - width: 32px; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - `]))),themeIcon:(0,M.iv)(pe||(pe=w()([` - font-size: 20px !important; - `])))}},Xe=Ze,mt=Tt.map(function(v){return{key:v.lang,label:v.name}}),Zt=function(){var n=(0,$.$G)(),i=n.i18n,o=(0,W.Og)(),a=o.locale,l=o.setLocale,s=Xe(),u=function(c){var y=c.key;i.changeLanguage(y),l(y)};return(0,e.jsx)(De.Z,{menu:{items:mt,onClick:u,selectedKeys:[a],selectable:!0},placement:"bottom",children:(0,e.jsx)(ve.ZP,{className:s.locale,icon:(0,e.jsx)(Ie,{className:s.localeIcon,type:"icon-in"})})})},$t=Zt,Ka=r(17061),je=r.n(Ka),Ha=r(861),Je=r.n(Ha),Va=r(17156),$e=r.n(Va),Qa=r(16596),Ye=r(10154),pn=r(39124),Yt=r(11568),he=r(31147),tt=r(78045),qt=r(56550),fn=r(50599),Xa=r(13012),vn=r.n(Xa),$a=r(15360),Ya=r(54397),hn=r(96486),_n=r(41545),qa=r(89597),er=r.n(qa),Gt=r(66749),tr=r(57460),nr=r.n(tr),mn=r(84105),gn=function(n){return new Promise(function(i,o){var a=new FileReader;a.readAsText(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){o(l)}})},xn=function(n,i,o){var a=JSON.parse(n);return{id:o||(0,Gt.Z)(o),metadata:{name:i},data:a,type:"local"}},ar=function(n,i,o){var a=JSON.parse(n);return R._9.check(a)?xn(n,i,o):{id:o||(0,Gt.Z)(o),metadata:{name:i},data:a,type:"local"}},rr=function(){var v=$e()(je()().mark(function n(i,o,a){var l,s,u,h,c,y;return je()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return l=i.name,s=l.substring(l.lastIndexOf(".")+1),p.next=4,gn(i);case 4:if(u=p.sent,s!=="json"){p.next=9;break}return p.abrupt("return",ar(u,o,a));case 9:if(s!=="geojson"){p.next=13;break}return p.abrupt("return",xn(u,o,a));case 13:if(s!=="kml"){p.next=21;break}return h=new DOMParser().parseFromString(u,"text/xml"),p.next=17,er().kml(h,{style:!0});case 17:return c=p.sent,p.abrupt("return",{id:a||(0,Gt.Z)(a),metadata:{name:o},data:c,type:"local"});case 21:if(s!=="wkt"){p.next=24;break}return y=(0,te.Y)(u),p.abrupt("return",{id:a||(0,Gt.Z)(a),metadata:{name:o},data:y,type:"local"});case 24:case"end":return p.stop()}},n)}));return function(i,o,a){return v.apply(this,arguments)}}(),or=function(){var v=$e()(je()().mark(function n(i,o,a){var l,s;return je()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,gn(i);case 2:return l=h.sent,s=nr().parse(l,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),h.abrupt("return",{id:a||(0,Gt.Z)(a),metadata:{name:o},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return h.stop()}},n)}));return function(i,o,a){return v.apply(this,arguments)}}(),ir=function(n){return new Promise(function(i,o){var a=new FileReader;a.readAsArrayBuffer(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){o(l)}})},lr=function(n,i,o){var a;try{var l=(0,mn.ij)(n,{type:"array",cellDates:!0}),s=l.Sheets[l.SheetNames[0]];Object.keys(s).forEach(function(h){var c=s[h];c.t==="d"&&(c.v=c.w)}),a=mn.P6.sheet_to_json(s)}catch(h){throw h}var u=Object.keys(a[0]);return{id:o,metadata:{name:i},data:a,type:"local",columns:u}},sr=function(){var v=$e()(je()().mark(function n(i,o,a){var l;return je()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,ir(i);case 3:l=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",lr(l,o,a));case 10:case"end":return u.stop()}},n,null,[[0,6]])}));return function(i,o,a){return v.apply(this,arguments)}}(),en=function(n){var i=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,o=!1;return typeof n=="string"&&i.test(n)&&(o=!0),o},tn=function(n){try{var i=JSON.parse(n);return R.dw.check(i)}catch(o){return!1}},ur=function(){var v=$e()(je()().mark(function n(i,o){var a,l,s,u;return je()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(a=i.name,l=a.substring(0,a.lastIndexOf(".")),s=a.substring(a.lastIndexOf(".")+1),c.prev=3,!["geojson","json","kml","wkt"].includes(s)){c.next=10;break}return c.next=7,rr(i,l,i.uid);case 7:u=c.sent,c.next=20;break;case 10:if(s!=="csv"){c.next=16;break}return c.next=13,or(i,l,i.uid);case 13:u=c.sent,c.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){c.next=20;break}return c.next=19,sr(i,l,i.uid);case 19:u=c.sent;case 20:c.next=25;break;case 22:return c.prev=22,c.t0=c.catch(3),c.abrupt("return",Promise.reject(o("utils.upload.wenJianJieXiShi")));case 25:return c.abrupt("return",u);case 26:case"end":return c.stop()}},n,null,[[3,22]])}));return function(i,o){return v.apply(this,arguments)}}(),cr=Ya.Z.Dragger,dr=(0,_.forwardRef)(function(n,i){vn()(n);var o=(0,_.useState)([]),a=f()(o,2),l=a[0],s=a[1],u=(0,_.useState)([]),h=f()(u,2),c=h[0],y=h[1],x=(0,_.useState)([]),p=f()(x,2),g=p[0],E=p[1],O=he.Z.useForm(),D=f()(O,1),A=D[0],C=(0,$.$G)(),m=C.t,j=Xe(),S=function(T){var G=T.file,B=T.onSuccess,I=T.onError;ur(G,m).then(function(b){if(console.log(b),b!=null&&b.columns){for(var L=b.data[0],F=void 0,U=0,Y=Object.keys(L);U":return i>v.value;case">=":return i>=v.value;default:if(Array.isArray(v.value)){var o=f()(v.value,2),a=o[0],l=o[1];return i>=a&&i<=l}}}function Un(v,n){var i=String(n[v.field]),o=v.value;switch(v.operator){case"NOT_IN":return!(o!=null&&o.includes(i));case"IN":return o==null?void 0:o.includes(i);case"LIKE":return(i==null?void 0:i.indexOf(o))>-1;default:return(i==null?void 0:i.indexOf(o))<=-1}}var Kn=(0,Kt.cn)({key:"filterFeature",default:[]});function Hn(){var v=(0,W.SS)(),n=v.features,i=(0,W.L0)(),o=i.filters,a=(0,Kt.Zl)(Kn),l=(0,Kt.sJ)(Kn);return(0,_.useEffect)(function(){if((0,Ut.Z)(o)){a(Je()(n));return}var s=Je()(n),u=o.filter(function(y){return!Wn(y)}),h=u.filter(function(y){return y.logic==="and"}),c=u.filter(function(y){return y.logic==="or"});(0,Ut.Z)(c)||(s=s.filter(function(y){var x=y.properties;return c.some(function(p){var g=p.type==="number"?zn:Un;return g(p,x)})})),(0,Ut.Z)(h)||(s=s.filter(function(y){var x=y.properties;return h.every(function(p){var g=p.type==="number"?zn:Un;return g(p,x)})})),a(s)},[n,o,a]),{features:l}}function on(v,n){var i=document.createElement("canvas"),o=i.getContext("2d"),a=new Image(n.x,n.y);return a.crossOrigin="Anonymous",a.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(l){a.onload=function(){i.width=a.width,i.height=a.height,o.imageSmoothingEnabled=!0,o.drawImage(a,0,0,a.width,a.height);for(var s=o.getImageData(0,0,i.width,i.height),u=s.data,h=0;h=10){var U=(0,At.Z)(o);U.pop(),a(U)}}else y(null)},N=function(B,I){return I.some(function(b){return b.label.toLowerCase().indexOf(B.toLowerCase())>-1})},T=(0,_.useMemo)(function(){if(o.length){var G=o.map(function(B){return{key:B.value,label:(0,e.jsx)("div",{onClick:function(){C(JSON.parse(B.value))},children:B.label})}});return G}else return[{key:"undefined",label:(0,e.jsx)(an.Z,{})}]},[o]);return(0,_.useEffect)(function(){if(A){var G=A[A.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(G,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(B){return B.json()}).then(function(B){var I;if(B.status==="1"&&(I=B.districts)!==null&&I!==void 0&&I.length&&s){var b=B.districts[0].center.split(",").map(function(U){return+U}),P=f()(b,2),H=P[0],L=P[1];s.setZoomAndCenter(9,[H,L]);var F=[];B.districts.forEach(function(U){U.polyline.split("|").forEach(function(Y){F.push(Y.split(";").map(function(V){return V.split(",").map(function(se){return+se})}))})}),y((0,ce.multiLineString)(F))}}).catch(function(){Ye.ZP.error(j("administrative_select_control.index.weiLanShuJuQing"))})}},[A]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ie.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(so.Z,{options:g,value:A,onChange:Z,className:n.cascader,allowClear:!0,showSearch:{filter:N},placeholder:j("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:n.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(De.Z,{menu:{items:T},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(k.Z,{title:j("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:Te()([n.history,"l7-draw-control__btn"]),children:(0,e.jsx)(Ie,{type:"icon-lishi",className:n.historyIcon})})})})]})}),(0,e.jsx)(ie.Ie,d()({source:{data:(0,ce.featureCollection)(c?[c]:[])}},co))]})},da,pa,fa,va,ha,_a,fo=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBgContainer,l=o.colorBorder,s=o.colorTextDescription,u=o.colorText,h=o.boxShadow,c=o.colorIcon;return{L7EditorControl:(0,M.iv)(da||(da=w()([` - display: inline-flex; - align-items: center; - justify-content: center; - border-radius: 2px; - width: 28px; - height: 28px; - padding: 0; - text-align: center; - background: `,`; - box-shadow: `,` !important; - border-width: 0; - color: `,`; - outline: 0; - cursor: pointer; - &:hover { - background: `,`; - svg { - color: `,`; - } - } - `])),a,h,c,a,u),l7EditorIcon:(0,M.iv)(pa||(pa=w()([` - font-size: 16px; - border: none; - cursor: pointer; - color: `,`; - `])),c),zoom:(0,M.iv)(fa||(fa=w()([` - .l7-button-control { - color: `,`; - font-size: 14px; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - } - .l7-button-control:first-child { - border-bottom: 1px solid `,`; - } - `])),s,a,l,s,u,l),scalesControl:(0,M.iv)(va||(va=w()([` - .l7-control-scale-line { - color: `,`; - background: `,` !important; - border-color: `,`; - } - `])),s,a,l),mouseLocatio:(0,M.iv)(ha||(ha=w()([` - color: `,` !important; - background: `,` !important; - border-color: `,`; - `])),s,a,l),fullScreen:(0,M.iv)(_a||(_a=w()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),s,a,l,s,u)}},Ht=fo,vo=function(){var n=Ht(),i=(0,W.SS)(),o=i.bboxAutoFit,a=(0,$.$G)(),l=a.t;return(0,e.jsx)(ie.br,{position:"bottomright",children:(0,e.jsx)(k.Z,{title:l("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:n.L7EditorControl,onClick:function(){o()},children:(0,e.jsx)(Ie,{type:"icon-suofang",className:n.l7EditorIcon})})})})},ma,ga,ho=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBgContainer,l=o.boxShadow,s=o.colorIcon,u=o.colorText;return{clear:(0,M.iv)(ma||(ma=w()([` - width: 30px; - height: 30px; - line-height: 41px; - text-align: center; - border-radius: 2px; - background-color: `,`; - box-shadow: `,` !important; - cursor: pointer; - color: `,`; - &:hover { - color: `,`; - background: `,`; - } - `])),a,l,s,u,a),clearSvg:(0,M.iv)(ga||(ga=w()([` - font-size: 24px; - `])))}},_o=ho,mo=function(){var n=_o(),i=(0,W.SS)(),o=i.saveEditorText,a=(0,$.$G)(),l=a.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ie.br,{position:"topright",children:(0,e.jsx)(nn.Z,{title:l("clear_control.index.queRenQingKongSuo"),onConfirm:function(){o((0,z.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(k.Z,{title:l("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:n.clear,id:"l7-editor-clear",children:(0,e.jsx)(Ie,{type:"icon-qingkong",className:n.clearSvg})})})})})})},go=r(15937),xa,xo=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBgContainer,l=o.boxShadow,s=o.colorBorder,u=o.colorIcon,h=o.colorText;return{l7DrawControl:(0,M.iv)(xa||(xa=w()([` - .l7-draw-control { - display: flex; - flex-direction: column; - align-items: center; - margin-right: 0 !important; - box-shadow: `,` !important; - .l7-draw-control__btn { - color: `,`; - background-color: `,`; - border-right: none; - border-bottom: 1px solid `,`; - &:hover { - color: `,`; - } - } - } - `])),l,u,a,s,h)}},yo=xo,bo=function(){var n=Gn(),i=(0,ie.$r)(),o=yo(),a=(0,_.useState)(null),l=f()(a,2),s=l[0],u=l[1],h=(0,W.SS)(),c=h.setIsDraw,y=h.resetFeatures,x=h.features,p=h.revertCoord,g=(0,W.Og)(),E=g.layerColor,O=(0,_.useMemo)(function(){return(0,At.Z)(x.find(function(C){return C.properties[R.AQ.IsEdit]}))},[x]);(0,_.useEffect)(function(){var C;if(i){var m;C=new it.DrawControl(i,{position:"topleft",drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0},commonDrawOptions:{maxCount:1,style:(0,re.C2)(E),helper:n}}),u(C),i.addControl(C),C.on(it.ControlEvent.DrawChange,function(S){c(!!S)});var j=document.querySelector(".l7-draw-control");j.style.marginTop=0,(m=document.querySelector("#l7-draw-content"))===null||m===void 0||m.appendChild(j)}return function(){C&&i.removeControl(C)}},[i,E]);var D=(0,_.useCallback)(function(C,m){m.properties=xt()({},R.AQ.DrawType,C),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var j=p([m]);y([].concat(Je()(x),Je()(j)))},[s,p,y,x]),A=(0,_.useCallback)(function(C,m){var j=m.properties[R.AQ.Index],S=Je()(x);S[j].properties[R.AQ.IsEdit]=!1,S[j].geometry=m.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var Z=p(S);y(Je()(Z))},[x,s,p,y]);return(0,_.useEffect)(function(){var C=["point","line","polygon","rect","circle"],m=(0,go.Z)(C.map(function(j){return[j,{onAdd:function(Z){return D(j,Z)},onEdit:function(Z){return A(j,Z)}}]}));return C.forEach(function(j){var S=s==null?void 0:s.getTypeDraw(j);S==null||S.on(it.DrawEvent.Add,m[j].onAdd),S==null||S.on(it.DrawEvent.Edit,m[j].onEdit)}),function(){C.forEach(function(j){var S=s==null?void 0:s.getTypeDraw(j);S==null||S.off(it.DrawEvent.Add,m[j].onAdd),S==null||S.off(it.DrawEvent.Edit,m[j].onEdit)})}},[s,D]),(0,_.useEffect)(function(){if(O&&s){var C,m=(C=O.properties)===null||C===void 0?void 0:C[R.AQ.DrawType];O.properties.isActive=!0,s.setActiveType(m);var j=s.getTypeDraw(m);j==null||j.setData([O])}},[O,s]),(0,e.jsx)(ie.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:o.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},Co=bo,So=r(37724),To=r(14468),jo=r(51042),Eo=r(26024),Ao=r(44230),Do=r(53434),Oo=function(n){var i=n.name,o=n.index,a=n.form,l=(0,W.L0)(),s=l.setFilters,u=(0,W.SS)(),h=u.dataSource,c=(0,$.$G)(),y=c.t,x=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:y("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(he.Z.Item,{name:[i,"operator"],children:(0,e.jsx)(be.Z,{style:{width:"100px",marginRight:"8px"},placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:x,onChange:function(){var g=(0,At.Z)(a.getFieldValue("filterFromList"));g.forEach(function(E,O){o===O&&(E.value=void 0)}),a.setFieldValue("filterFromList",g),s(g.map(function(E){var O=JSON.parse(E.field),D=O.field,A=O.type;return d()(d()({},E),{},{field:D,type:A})}))}})}),(0,e.jsx)(he.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(g,E){return g.operator===E.operator},children:function(g){var E,O,D,A=g.getFieldsValue,C=A(),m=C.filterFromList,j=(E=JSON.parse(m[o].field))===null||E===void 0?void 0:E.field,S=h.find(function(B){return(B==null?void 0:B.field)===j});if(m[o].operator==="BETWEEN"){var Z,N,T,G;return(0,e.jsxs)("div",{children:[(0,e.jsx)(he.Z.Item,{name:[i,"min"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(Z=S==null?void 0:S.min)!==null&&Z!==void 0?Z:0,max:(N=S==null?void 0:S.max)!==null&&N!==void 0?N:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(he.Z.Item,{name:[i,"max"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(T=S==null?void 0:S.min)!==null&&T!==void 0?T:0,max:(G=S==null?void 0:S.max)!==null&&G!==void 0?G:0})})]})}return(0,e.jsx)(he.Z.Item,{name:[i,"value"],children:(0,e.jsx)(Wt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(O=S==null?void 0:S.min)!==null&&O!==void 0?O:0,max:(D=S==null?void 0:S.max)!==null&&D!==void 0?D:0})})}})]})},Po=Oo,Lo=r(94207),Fo=r(85959),Zo=r(29795),Mo=function(n){var i=n.name,o=n.index,a=n.form,l=(0,Zo.Z)(),s=l.setFilters,u=(0,Fo.Z)(),h=u.dataSource,c=(0,$.$G)(),y=c.t,x=[{label:y("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:y("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:y("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:y("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(he.Z.Item,{name:[i,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(be.Z,{placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:x,onChange:function(){var g=(0,At.Z)(a.getFieldValue("filterFromList"));g.forEach(function(E,O){o===O&&(E.value=void 0)}),a.setFieldValue("filterFromList",g),s(g.map(function(E){var O=JSON.parse(E.field),D=O.field,A=O.type;return d()(d()({},E),{},{field:D,type:A})}))}})}),(0,e.jsx)(he.Z.Item,{shouldUpdate:function(g,E){return g.operator!==E.operator},style:{width:150,margin:0},children:function(g){var E,O,D=g.getFieldsValue,A=D(),C=A.filterFromList,m=(E=JSON.parse(C[o].field))===null||E===void 0?void 0:E.field,j=h.find(function(Z){return(Z==null?void 0:Z.field)===m}),S=C[o].operator;return S==="LIKE"||S==="NOT_LIKE"?(0,e.jsx)(he.Z.Item,{name:[i,"value"],children:(0,e.jsx)(gt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(he.Z.Item,{name:[i,"value"],children:(0,e.jsx)(be.Z,{placeholder:y("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((O=(0,Lo.Z)(j==null?void 0:j.value))!==null&&O!==void 0?O:[]).filter(function(Z){return Z!=="undefined"}).map(function(Z){return(0,e.jsx)(be.Z.Option,{value:Z,children:(0,e.jsx)(k.Z,{title:Z,children:Z})},Z)})})})}})]})},Io=Mo,ya,ba,wo=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBgContainer,l=o.boxShadow;return{l7FilterPanel:(0,M.iv)(ya||(ya=w()([` - position: relative; - `]))),l7Filter:(0,M.iv)(ba||(ba=w()([` - display: flex; - background: `,`; - padding: 16px; - margin-right: 8px; - position: absolute; - right: 35px; - bottom: 0; - box-shadow: `,` !important; - .ant-form-item { - margin-bottom: 0; - } - .ant-btn { - margin-left: px; - } - `])),a,l)}},Bo=wo,un=be.Z.Option,ko=function(){var n=(0,W.SS)(),i=n.dataSource,o=(0,W.L0)(),a=o.setFilters,l=o.filters,s=(0,_.useState)(!1),u=f()(s,2),h=u[0],c=u[1],y=(0,$.$G)(),x=y.t,p=he.Z.useForm(),g=f()(p,1),E=g[0],O=Bo(),D=Ht(),A=(0,_.useMemo)(function(){return!i.length},[i]),C=function(S,Z){if((0,Ut.Z)(Z.filterFromList)){a([]);return}var N=Z.filterFromList.filter(function(T){return T}).map(function(T){var G=T.logic,B=T.operator;if(T.field){var I=JSON.parse(T.field||""),b=I.field,P=I.type;return T.operator==="BETWEEN"&&T.min&&T.max?{logic:G,field:b,type:P,operator:B,value:[T.min,T.max]}:(T.operator==="IN"||T.operator==="NO_IN")&&T.value?d()(d()({},T),{},{field:b,type:P,value:T.value.length?T.value:void 0}):d()(d()({},T),{},{field:b,type:P})}else return d()(d()({},T),{},{field:void 0,type:void 0})});a(N)},m=(0,_.useMemo)(function(){return l.filter(function(j){return!Wn(j)}).find(function(j){return j})},[l]);return(0,e.jsxs)(ie.br,{position:"bottomright",className:O.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:O.l7Filter,style:{display:h?"block":"none"},children:(0,e.jsx)(he.Z,{style:{width:"100%"},form:E,onValuesChange:(0,Do.Z)(C,500),children:(0,e.jsx)(he.Z.List,{name:"filterFromList",children:function(S,Z){var N=Z.add,T=Z.remove;return(0,e.jsxs)(e.Fragment,{children:[S.map(function(G,B){var I,b,P=G.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(he.Z.Item,{name:[P,"logic"],initialValue:"and",children:(0,e.jsxs)(be.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(un,{value:"and",children:x("filter_form_list_control.index.bingQie")}),(0,e.jsx)(un,{value:"or",children:x("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(he.Z.Item,{name:[P,"field"],initialValue:JSON.stringify({field:(I=i[0])===null||I===void 0?void 0:I.field,type:(b=i[0])===null||b===void 0?void 0:b.type}),children:(0,e.jsx)(be.Z,{style:{width:130,marginRight:"8px"},placeholder:x("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var L=(0,At.Z)(E.getFieldValue("filterFromList"));L.forEach(function(F,U){B===U&&(F.operator=void 0,F.value=void 0)}),E.setFieldValue("filterFromList",L),a(L.map(function(F){var U=JSON.parse(F.field),Y=U.field,V=U.type;return d()(d()({},F),{},{field:Y,type:V})}))},children:i.map(function(H){var L=H.field,F=H.type;return(0,e.jsxs)(un,{value:JSON.stringify({field:L,type:F}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:F==="number"?(0,e.jsx)(So.Z,{}):(0,e.jsx)(To.Z,{})}),(0,e.jsx)(k.Z,{title:L,children:L})]},L)})})}),(0,e.jsx)(he.Z.Item,{shouldUpdate:function(L,F){return L.field===F.field},style:{margin:0},children:function(L){var F=L.getFieldsValue,U=F(),Y=U.filterFromList;if(Y[B].field){var V=JSON.parse(Y[B].field),se=V.type;return se==="number"?(0,e.jsx)(Po,{name:P,index:B,form:E}):(0,e.jsx)(Io,{name:P,index:B,form:E})}}}),(0,e.jsx)(ve.ZP,{type:"text",onClick:function(){T(P),a(E.getFieldValue("filterFromList"))},icon:(0,e.jsx)(Sn.Z,{})})]},P)}),(0,e.jsx)(ve.ZP,{type:"dashed",disabled:A,onClick:function(){N()},block:!0,icon:(0,e.jsx)(jo.Z,{}),style:{width:500},children:x("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(k.Z,{title:x("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:D.L7EditorControl,onClick:function(){c(!h)},children:m?(0,e.jsx)(Ao.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Eo.Z,{style:{lineHeight:"30px"}})})})]})},Ro=ko,Jo=r(87052),Ca,No=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.boxShadow;return{l7ButtonControl:(0,M.iv)(Ca||(Ca=w()([` - min-width: auto; - width: 28px; - height: 28px; - border: none; - box-shadow: `,`; - cursor: pointer; - border-radius: 2px; - .ant-color-picker-color-block { - width: 22px; - height: 22px; - border-radius: 2px; - } - `])),a)}},Go=No,Wo=function(){var n=(0,W.Og)(),i=n.layerColor,o=n.setLayerColor,a=(0,$.$G)(),l=a.t,s=Go();return(0,e.jsx)(ie.br,{position:"bottomright",children:(0,e.jsx)(k.Z,{title:l("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)(Jo.Z,{value:i,className:Te()([s.l7ButtonControl]),onChange:function(h,c){o(c)},format:"rgb",presets:[{label:l("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},zo=Wo,Sa,Ta,ja,Uo=function(){return{locationSearch:(0,M.iv)(Sa||(Sa=w()([` - min-width: 200px; - `]))),locationSearchName:(0,M.iv)(Ta||(Ta=w()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - `]))),locationSearchTip:(0,M.iv)(ja||(ja=w()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - color: #818181; - font-size: 12px; - `])))}},Ko=Uo;function Ho(v,n){return"".concat(v,"?").concat(Object.entries(n).map(function(i){var o=f()(i,2),a=o[0],l=o[1];return"".concat(a,"=").concat(window.encodeURIComponent(String(l)))}).join("&"))}var Vo=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],Qo=be.Z.Option,Ea=function(n){var i=n.searchParams,o=n.showDistrict,a=n.showAddress,l=n.onSearchFinish,s=n.onChange,u=Cn()(n,Vo),h=Ko(),c=(0,_.useState)([]),y=f()(c,2),x=y[0],p=y[1],g=(0,$.$G)(),E=g.t;(0,_.useEffect)(function(){l==null||l(x)},[l,x]);var O=(0,sn.Z)(function(){var C=$e()(je()().mark(function m(j){var S,Z,N,T;return je()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(j){B.next=3;break}return p([]),B.abrupt("return");case 3:return N=Ho("https://restapi.amap.com/v3/assistant/inputtips",d()(d()({},i),{},{keywords:[].concat(Je()(((S=i.keywords)!==null&&S!==void 0?S:"").split("|")),[j]).filter(function(I){return!!I}).join("|")})),B.next=6,fetch(N);case 6:return B.next=8,B.sent.json();case 8:T=B.sent,p(((Z=T==null?void 0:T.tips)!==null&&Z!==void 0?Z:[]).filter(function(I){return I.location&&I.location.length}).map(function(I){var b=I.location.split(","),P=f()(b,2),H=P[0],L=P[1];return I.longitude=+H,I.latitude=+L,I}));case 10:case"end":return B.stop()}},m)}));return function(m){return C.apply(this,arguments)}}(),{wait:1e3}),D=O.run,A=(0,_.useCallback)(function(C){var m=C&&x.find(function(j){return j.name===C});s==null||s(C||void 0,m||void 0)},[s,x]);return(0,e.jsx)(be.Z,d()(d()({className:h.locationSearch,onSearch:D,onChange:A,placeholder:E("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:x.map(function(C){var m="".concat(o?C.district:"").concat(a?C.address:"");return(0,e.jsxs)(Qo,{value:C.name,label:C.name,children:[(0,e.jsx)("div",{title:C.name,className:h.locationSearchName,children:C.name}),m&&(0,e.jsx)("div",{title:m,className:h.locationSearchTip,children:m})]},C.id)})}))};Ea.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Xo=_.memo(function(){var v=(0,ie.$r)(),n=(0,_.useState)(),i=f()(n,2),o=i[0],a=i[1],l=(0,_.useState)(""),s=f()(l,2),u=s[0],h=s[1],c=(0,W.SS)(),y=c.features,x=c.resetFeatures,p=(0,W.Og)(),g=p.layerColor,E=(0,_.useState)(),O=f()(E,2),D=O[0],A=O[1],C=(0,$.$G)(),m=C.t,j=(0,_.useCallback)(function(){if(v){var S=v.getCenter(),Z=S.lng,N=S.lat;h("".concat(Z,",").concat(N))}},[v]);return(0,_.useEffect)(function(){return j(),v==null||v.on("moveend",j),v==null||v.on("zoomend",j),function(){v==null||v.off("moveend",j),v==null||v.off("zoomend",j)}},[v,j]),(0,Qt.Z)($e()(je()().mark(function S(){var Z;return je()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return Z=rn()(g).rgb().object(),T.t0=A,T.next=4,on(Z,{x:100,y:100});case 4:T.t1=T.sent,(0,T.t0)(T.t1);case 6:case"end":return T.stop()}},S)})),[g]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ie.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(Ea,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:o==null?void 0:o.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(Z,N){if(N){var T=v.getZoom();v.setZoomAndCenter(T>16?T:16,[N.longitude,N.latitude])}a(N)}})})})})})}),o&&(0,e.jsx)(ie.Jx,{lngLat:{lng:o.longitude,lat:o.latitude},children:(0,e.jsx)(He.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(ve.ZP,{type:"primary",onClick:function(){var Z=o.longitude,N=o.latitude;x([].concat(Je()(y),[(0,ce.point)([Z,N],o)])),a(void 0)},children:m("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(ve.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){a(void 0)},children:m("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:D==null?void 0:D.src})})})]})}),$o=Xo,Aa,Da,Yo=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorText,l=o.colorBgContainer,s=o.boxShadow,u=o.colorTextDescription;return{mapAdministrative:(0,M.iv)(Aa||(Aa=w()([` - background: `,`; - color: `,`; - box-shadow: `,`; - `])),l,a,s),regionLocation:(0,M.iv)(Da||(Da=w()([` - background: `,` !important; - color: `,` !important; - padding: 2px 4px !important; - `])),l,u)}},qo=Yo,ei=function(){var n=qo();return(0,e.jsx)(ie.br,{className:Te()(["map-administrative-control",n.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(ie.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:n.regionLocation})})},Oa,Pa,ti=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorTextDescription,l=o.colorBgContainer,s=o.colorPrimary,u=o.colorBorder,h=o.colorText,c=o.colorBgElevated,y=o.colorFillSecondary;return{mapTheme:(0,M.iv)(Oa||(Oa=w()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),a,l,u,a,h),mapThemePopper:(0,M.iv)(Pa||(Pa=w()([` - *::-webkit-scrollbar { - width: 8px; - background-color: `,`; - } - *::-webkit-scrollbar-thumb { - background-color: `,`; - border-radius: 10px; - } - .l7-popper-content { - color: `,`; - background: `,`; - - .l7-select-control-item:hover { - box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), - 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); - } - - .l7-select-control-item { - border: 1px solid `,`; - border-radius: 4px; - } - - .l7-select-control-item-active { - border: 1px solid `,`; - } - } - - &.l7-popper-right .l7-popper-arrow\xA0 { - border-right-color: `,`; - } - - &.l7-popper-left .l7-popper-arrow\xA0 { - border-left-color: `,`; - } - - &.l7-popper-bottom .l7-popper-arrow\xA0 { - border-bottom-color: `,`; - } - - &.l7-popper-top .l7-popper-arrow\xA0 { - border-top-color: `,`; - } - `])),c,y,h,l,u,s,c,c,c,c)}},ni=ti,ai=function(){var n=(0,W.Og)(),i=n.setMapOptions,o=ni();return(0,e.jsx)(ie.w3,{className:Te()([o.mapTheme,"l7-editor-mapTheme"]),popperClassName:o.mapThemePopper,position:"bottomright",onSelectChange:function(l){i(function(s){return d()(d()({},s),{},{style:l})})}})},ri=ai,La=r(84567),Fa,Za,Ma,oi=function(){return{amapInfo:(0,M.iv)(Fa||(Fa=w()([` - margin-top: 10px; - .ant-checkbox-group { - display: flex; - flex-wrap: wrap; - width: 370px; - - .ant-checkbox-wrapper { - position: relative; - margin-left: 8px; - - .ant-checkbox { - position: absolute; - top: 4px; - left: 10px; - } - } - } - `]))),amapInfoItemImage:(0,M.iv)(Za||(Za=w()([` - width: 142px; - height: 80px; - margin-bottom: 8px; - object-fit: cover; - `]))),amapInfoItem:(0,M.iv)(Ma||(Ma=w()([` - text-align: center; - margin-bottom: 10px; - `])))}},ii=oi;function li(){var v=(0,ie.$r)(),n=ii(),i=Ht(),o=(0,W.Og)(),a=o.layerType,l=o.setLayerType,s=(0,$.$G)(),u=s.t,h=(0,_.useMemo)(function(){return[{label:u("official_layer_control.index.guGeTuCeng"),children:[{type:R.dY.GoogleSatellite,title:u("official_layer_control.index.guGeWeiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original",layers:[R.ay]}]},{label:u("official_layer_control.index.gaoDeTuCeng"),children:[{type:R.dY.AmapSatellite,title:u("official_layer_control.index.weiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original"},{type:R.dY.AmapRoadNet,title:u("official_layer_control.index.luWangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*G9RtT7qUxwYAAAAAAAAAAAAADqWCAQ/original"},{type:R.dY.AmapTraffic,title:u("official_layer_control.index.luKuangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*XTFITYbZaIsAAAAAAAAAAAAADqWCAQ/original"},{type:R.dY.AmapBuildings,title:u("official_layer_control.index.louKuaiTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*hIUgTryh-oAAAAAAAAAAAAAADqWCAQ/original"}]}]},[u]),c=(0,_.useRef)(v.getType()!=="mapbox"?{satellite:new AMap.TileLayer.Satellite,roadNet:new AMap.TileLayer.RoadNet,traffic:new AMap.TileLayer.Traffic,buildings:new AMap.Buildings}:{}),y=function(g){return a==null?void 0:a.includes(g)};(0,_.useEffect)(function(){if(v&&v.getType()!=="mapbox")try{var p=v.map,g=c.current,E=g.roadNet,O=g.satellite,D=g.traffic,A=g.buildings;y("amapSatellite")?p.add(O):p.remove(O),y("RoadNet")?p.add(E):p.remove(E),y("Traffic")?p.add(D):p.remove(D),y("Buildings")?p.add(A):p.remove(A)}catch(C){}},[a,v]);var x=(0,_.useMemo)(function(){var p=[];return h.map(function(g){return g.children}).flat().forEach(function(g){if(a.includes(g.type)){var E;p.push.apply(p,Je()((E=g==null?void 0:g.layers)!==null&&E!==void 0?E:[]))}}),p},[h,a]);return(0,e.jsxs)(ie.br,{position:"bottomright",children:[(0,e.jsx)(He.Z,{content:(0,e.jsx)(Yt.Z,{items:h.map(function(p){return{label:p.label,key:p.label,children:(0,e.jsx)("div",{className:n.amapInfo,children:(0,e.jsx)(La.Z.Group,{value:a,onChange:function(E){l(E)},children:p.children.map(function(g){return(0,e.jsx)(La.Z,{value:g.type,children:(0,e.jsxs)("div",{className:n.amapInfoItem,children:[(0,e.jsx)("img",{src:g.image,alt:"",className:n.amapInfoItemImage}),(0,e.jsx)("h5",{style:{marginTop:0},children:g.title})]},g.type)},g.type)})})})}})}),trigger:"click",placement:"leftTop",overlayInnerStyle:{width:370,height:v.getType()!=="mapbox"?330:190},children:(0,e.jsx)(k.Z,{title:u("app_header.constants.guanFangTuCeng"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:i.L7EditorControl,children:(0,e.jsx)(Ie,{id:"l7-editor-aMap",type:"icon-tuceng",className:i.l7EditorIcon})})})}),x.map(function(p){return(0,e.jsx)(ie.YY,{zIndex:1,source:{data:p,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}},p)})]})}var Ia=r(31762),si=r(75081),wa,ui=function(){return{marker:(0,M.iv)(wa||(wa=w()([` - color: #fff; - background: #ff0000; - font-size: 12px; - padding: 6px; - `])))}},ci=ui,di={shape:"line",size:3,color:"#ff0000",state:{active:!1},style:{opacity:1,lineType:"solid"},zIndex:100,animate:{interval:.6,trailLength:1.5,duration:4}},pi=function(){var n=ci(),i=Ht(),o=(0,_.useState)(null),a=f()(o,2),l=a[0],s=a[1],u=(0,W.SS)(),h=u.scene,c=u.features,y=u.resetFeatures,x=u.revertCoord,p=u.bboxAutoFit,g=(0,ie.dN)(),E=(0,_.useState)(!1),O=f()(E,2),D=O[0],A=O[1],C=(0,_.useState)(void 0),m=f()(C,2),j=m[0],S=m[1],Z=(0,_.useState)(void 0),N=f()(Z,2),T=N[0],G=N[1],B=(0,_.useState)(!1),I=f()(B,2),b=I[0],P=I[1],H=(0,_.useState)(void 0),L=f()(H,2),F=L[0],U=L[1],Y=(0,_.useState)(void 0),V=f()(Y,2),se=V[0],Ee=V[1],Ne=(0,_.useState)({data:{type:"FeatureCollection",features:[]}}),ze=f()(Ne,2),yt=ze[0],Ge=ze[1],st=(0,$.$G)(),nt=st.t,Dt=(0,_.useCallback)(function(at){var ut=[at.lngLat.lng,at.lngLat.lat];if(se)if((0,ce.booleanPointInPolygon)((0,ce.point)(ut),se)){if(l){var Ue=l.lngLat2ImagePixel(ut),bt=[{x:Ue[0],y:Ue[1],clickType:1}],ft=1;l.predict(bt).then(function(){var q=$e()(je()().mark(function K(ne){var Ae,Ce,_e,Ve;return je()().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,l.exportGeoPolygon(ne,ft);case 2:Ae=qe.sent,Ce=l.exportImageClip(ne),_e={feature:Ae.features,imageUrl:Ce.src},(0,ce.booleanPointInPolygon)((0,ce.point)(ut),_e==null?void 0:_e.feature[0])&&(_e==null?void 0:_e.feature[0].geometry.coordinates[0].length)>4?(Ve=x(_e.feature),y([].concat(Je()(c),Je()(Ve)))):Ye.ZP.warning(nt("map_control_group.sam.tuXingJieXiCuoWu"));case 6:case"end":return qe.stop()}},K)}));return function(K){return q.apply(this,arguments)}}())}}else Ye.ZP.error(nt("map_control_group.sam.qingZaiQuYuNei"))},[se,l,x,y,c,nt]),cn=function(){var at=$e()(je()().mark(function ut(){var Ue,bt,ft,q,K,ne,Ae,Ce,_e,Ve,Me,qe,Mt,Ot,It,Ct,rt,Vt,Pt,Jt,dn,Ua,Xt;return je()().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(P(!0),Ke.prev=1,!(!j||!l)){Ke.next=4;break}return Ke.abrupt("return");case 4:return bt=j.layer.getSource(),ft=bt==null||(Ue=bt.tileset)===null||Ue===void 0?void 0:Ue.currentTiles,q=1/0,K=1/0,ne=-1/0,Ae=-1/0,ft==null||ft.forEach(function(vt){q=Math.min(q,vt.x),K=Math.min(K,vt.y),ne=Math.max(ne,vt.x),Ae=Math.max(Ae,vt.y)}),Ce=Math.ceil(h==null?void 0:h.getZoom()),_e=document.createElement("canvas"),_e.width=(ne-q+1)*256,_e.height=(Ae-K+1)*256,Ve=_e.getContext("2d"),Me=l.mapHelper,qe=[].concat(Je()(Me.tileToLngLat(q,Ae+1,Ce)),Je()(Me.tileToLngLat(ne+1,K,Ce))),ft==null||ft.forEach(function(vt){vt&&(Ve==null||Ve.drawImage(vt.data,(vt.x-q)*256,(vt.y-K)*256,256,256))}),l.setGeoImage(_e.toDataURL(),{extent:qe,width:_e.width,height:_e.height}),Mt=_e.toDataURL("image/jpeg"),Ot=Mt.indexOf(","),It=Mt==null?void 0:Mt.substring(Ot+1),Ct="https://sam.lvisei.icu/api",rt=new FormData,rt.append("image_path",It),Ke.next=28,fetch(Ct,{body:rt,method:"post"});case 28:return Ke.next=30,Ke.sent.arrayBuffer();case 30:Vt=Ke.sent;try{Pt=Me.tileToLngLat(ne+1,K,Ce),Jt=Me.tileToLngLat(q,Ae+1,Ce),dn=[Jt[0],Pt[1]],Ua=[Pt[0],Jt[1]],Xt=(0,ce.polygon)([[Pt,dn,Jt,Ua,Pt]]),U(dn),Ee(Xt),Ge({data:{type:"FeatureCollection",features:[Xt]}}),p([Xt]),l.setEmbedding(Vt),Ye.ZP.success(nt("map_control_group.sam.jiSuanWanCheng"))}catch(vt){console.log(vt)}Ke.next=38;break;case 34:Ke.prev=34,Ke.t0=Ke.catch(1),Ye.ZP.error(nt("map_control_group.sam.jiSuanShiBai")),h==null||h.off("click",Dt);case 38:return Ke.prev=38,P(!1),Ke.finish(38);case 41:case"end":return Ke.stop()}},ut,null,[[1,34,38,41]])}));return function(){return at.apply(this,arguments)}}();return(0,_.useEffect)(function(){var at=new Ia.XU({modelUrl:Ia.AK});at.initModel().then(function(){s(at)})},[]),(0,_.useEffect)(function(){if(!(0,Ut.Z)(g)){var at=g.find(function(Ue){return Ue.type==="rasterLayer"&&[R.ay].includes(Ue.options.source.data)}),ut=g.find(function(Ue){return Ue.id===R.d7.PolygonLayer});G(ut),S(at)}},[g]),(0,_.useEffect)(function(){return T&&(D?T.on("unclick",Dt):(Ge({data:{type:"FeatureCollection",features:[]}}),U(void 0),T.off("unclick",Dt))),function(){T==null||T.off("unclick",Dt)}},[D,h,Dt]),(0,_.useEffect)(function(){D&&l&&cn()},[D,l]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ie.br,{position:"bottomright",children:(0,e.jsx)(k.Z,{title:nt("map_control_group.sam.zhiNengXuanZe"),placement:"left",children:(0,e.jsx)(si.Z,{spinning:b,children:(0,e.jsx)("button",{type:"button",className:i.L7EditorControl,onClick:function(){A(!D),D&&Ye.ZP.success(nt("map_control_group.sam.zhiNengShiBieGuanBi"))},children:(0,e.jsx)(Ie,{type:"icon-zhinengshibie",style:{fontSize:20,color:D?"#1677ff":""},className:i.l7EditorIcon})})})})}),F&&(0,e.jsx)(ie.Jx,{lngLat:{lng:F[0],lat:F[1]},anchor:"center",offsets:[54,-16],children:(0,e.jsx)("div",{className:n.marker,children:nt("map_control_group.sam.ziDongShiBie")})}),(0,e.jsx)(ie.Ie,d()(d()({},di),{},{source:yt}))]})},Ba={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0},fi=function(n){var i=n.mapControl,o=(0,W.Og)(),a=o.baseMap,l=o.layerType,s=Ht(),u=(0,_.useState)(Ba),h=f()(u,2),c=h[0],y=h[1];return(0,_.useEffect)(function(){y(d()(d()({},Ba),i))},[i]),(0,e.jsxs)(e.Fragment,{children:[c.logoControl&&(0,e.jsx)(ie.OB,{position:"leftbottom"}),c.scaleControl&&(0,e.jsx)(ie.jf,{position:"leftbottom",className:s.scalesControl}),c.mouseLocationControl&&(0,e.jsx)(ie.CB,{position:"leftbottom",className:s.mouseLocatio}),c.drawControl&&(0,e.jsx)(Co,{}),c.clearControl&&(0,e.jsx)(mo,{}),c.zoomControl&&(0,e.jsx)(ie.Ly,{className:s.zoom,showZoom:!0}),c.mapAdministrativeControl&&(0,e.jsx)(ei,{}),c.administrativeSelectControl&&(0,e.jsx)(po,{}),c.locationSearchControl&&(0,e.jsx)($o,{}),c.filterControl&&(0,e.jsx)(Ro,{}),a==="Gaode"&&c.officialLayerControl&&(0,e.jsx)(li,{}),c.mapThemeControl&&(0,e.jsx)(ri,{}),c.geoLocateControl&&(0,e.jsx)(ie.l_,{position:"topleft",className:s.fullScreen}),c.layerColorControl&&(0,e.jsx)(zo,{}),c.autoControl&&(0,e.jsx)(vo,{}),c.fullscreenControl&&(0,e.jsx)(ie.ot,{position:"bottomright",className:s.fullScreen}),l.includes(R.dY.GoogleSatellite)&&(0,e.jsx)(pi,{})]})},vi=r(14313),hi=r(46312),ka,Ra,Ja,Na,Ga,_i=function(){var n=Fe.Z.useToken,i=n(),o=i.token,a=o.colorBgContainer,l=o.boxShadow,s=o.colorBorderSecondary,u=o.colorInfoHover,h=o.colorIcon;return{resizePanel:(0,M.iv)(ka||(ka=w()([` - width: 100%; - height: calc(100% - 50px); - display: flex; - position: relative; - `]))),resizePanelLeft:(0,M.iv)(Ra||(Ra=w()([` - position: absolute; - left: 0; - top: 0; - bottom: 0; - overflow: hidden; - `]))),resizePanelRight:(0,M.iv)(Ja||(Ja=w()([` - position: relative; - border-left: 1px solid `,`; - box-shadow: `,`; - `])),s,l),resizePanelDragLine:(0,M.iv)(Na||(Na=w()([` - transition: all 0.5s; - cursor: move !important; - z-index: 100; - - &:hover, - &:focus { - background-color: `,`; - } - `])),u),resizePanelToggleBtn:(0,M.iv)(Ga||(Ga=w()([` - height: 60px; - width: 20px; - display: flex; - align-items: center; - justify-content: center; - background: `,`; - position: absolute; - top: calc(50% - 30px); - left: -20px; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - cursor: pointer; - z-index: 2; - .anticon { - transition: all 0.2s; - } - color: `,`; - `])),a,h)}},mi=_i,gi=function(n){var i,o=n.left,a=n.right,l=n.onFeatureChange,s=(0,W.Og)(),u=s.hideEditor,h=s.setHideEditor,c=s.rightPanelWidth,y=s.setRightWidth,x=(0,_.useState)(null),p=f()(x,2),g=p[0],E=p[1],O=f()(R.yc,2),D=O[0],A=O[1],C=(i=(0,jn.Z)(g))!==null&&i!==void 0?i:{},m=C.width,j=m===void 0?0:m,S=(0,W.SS)(),Z=S.features,N=mi(),T=function(I){var b,P=(b=g==null?void 0:g.getBoundingClientRect())!==null&&b!==void 0?b:{},H=P.left,L=H===void 0?0:H,F=100*(1-(I.clientX-L)/j);FA&&(F=A),y(F)},G=(0,_.useMemo)(function(){return u?0:c},[u,c]);return(0,_.useEffect)(function(){l(Z)},[Z]),(0,e.jsxs)("div",{className:Te()([N.resizePanel,"l7-editor-content"]),ref:function(I){E(I)},children:[(0,e.jsx)("div",{className:Te()([N.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-G,"%")},children:o}),(0,e.jsxs)(hi.e,{enable:{left:!0},style:{marginLeft:"".concat(100-G,"%")},size:{width:"".concat(G,"%"),height:"100%"},minWidth:"".concat(D/100*j,"px"),maxWidth:"".concat(A/100*j,"px"),className:Te()([N.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:N.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(G,"%"),height:"100%"},onResize:T,children:[a,(0,e.jsx)("div",{className:N.resizePanelToggleBtn,onClick:function(){h(!u)},children:(0,e.jsx)(vi.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},xi=r(29905),Di=r(37382),lt=r(22950),yi=r(77598),bi=r(94740),Ci=r(69483),Wa=r.n(Ci),Si=function(){var n=(0,W.SS)(),i=n.transformCoord,o=Hn(),a=o.features,l=(0,W.Og)(),s=l.layerColor,u=(0,_.useMemo)(function(){return{zIndex:101,field:"name",style:{fill:"".concat(s),opacity:1,fontSize:18,stroke:"#fff",strokeWidth:2,textAllowOverlap:!0,padding:[10,10],textOffset:[0,-18]}}},[s]),h=(0,_.useMemo)(function(){var c=i(a).map(function(x){var p;return{data:(0,ce.center)(x),featureIndex:(p=x.properties)===null||p===void 0?void 0:p[R.AQ.Index]}}),y=c.map(function(x){return{x:x.data.geometry.coordinates[0],y:x.data.geometry.coordinates[1],name:"".concat(x.featureIndex+1)}});return y},[i,a]);return(0,e.jsx)(ie.AB,d()(d()({},u),{},{source:{data:h,parser:{type:"json",x:"x",y:"y"}}}))},za,Ti=function(){return{l7Editor:(0,M.iv)(za||(za=w()([` - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - `])))}},ji=Ti,Ei=function(n){var i=n.onFeatureChange,o=(0,$.$G)(),a=o.i18n,l=o.t,s=(0,W.Og)(),u=s.theme,h=s.mapOptions,c=s.setMapOptions,y=s.showIndex,x=s.locale,p=ji(),g=(0,W.SS)(),E=g.saveEditorText,O=g.bboxAutoFit,D=g.scene;(0,yi.Z)(function(){c(u==="dark"?d()(d()({},h),{},{style:"dark"}):d()(d()({},h),{},{style:"normal"}))},[u]),(0,_.useEffect)(function(){a.changeLanguage(x)},[]);var A=(0,_.useMemo)(function(){var C;return(C=Tt.find(function(m){return m.lang===x}))===null||C===void 0?void 0:C.antd},[x]);return(0,Qt.Z)($e()(je()().mark(function C(){var m,j;return je()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Wa().getItem(R.Fe.EditorText);case 2:if(m=Z.sent,m&&D&&!n.features)try{j=JSON.parse(m).features,O(j)}catch(N){Ye.ZP.error(l("import_btn.file_upload.qingJianChaShuJu"))}else D&&n.features&&O();case 4:case"end":return Z.stop()}},C)})),[D]),(0,Qt.Z)($e()(je()().mark(function C(){var m;return je()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Wa().getItem(R.Fe.EditorText);case 2:m=S.sent,m&&!n.features&&E(m);case 4:case"end":return S.stop()}},C)})),[]),(0,e.jsx)(bi.ZP,{locale:A,theme:{algorithm:u==="dark"?Fe.Z.darkAlgorithm:Fe.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:Te()([p.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(xr,{toolbar:n.toolbar}),(0,e.jsx)(gi,{onFeatureChange:function(m){i&&i(m)},left:(0,e.jsxs)(Sr,{children:[(0,e.jsx)(fi,{mapControl:n.mapControl}),y&&(0,e.jsx)(Si,{}),(0,e.jsx)(Ur,{}),(0,e.jsx)($r,{}),(0,e.jsx)(Gr,{})]}),right:(0,e.jsx)(oo,{tabItems:n==null?void 0:n.tabItems,features:n==null?void 0:n.features})})]})})};Kt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var Ai=function(n){var i=(0,$.$G)(),o=i.t,a=(0,_.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),l=(0,_.useMemo)(function(){return function(s){var u,h,c,y,x,p,g,E,O,D,A,C=s.set;C(lt.EB,(u=n==null?void 0:n.baseMap)!==null&&u!==void 0?u:"Gaode"),C(lt.dR,(h=n==null?void 0:n.primaryColor)!==null&&h!==void 0?h:R.K6),C(lt.Do,(c=n==null?void 0:n.rightPanelWidth)!==null&&c!==void 0?c:40),C(lt.aQ,(y=n==null?void 0:n.mapOption)!==null&&y!==void 0?y:{style:"normal",maxZoom:24}),C(lt.E1,!(n!=null&&n.autoFitBounds)),C(lt.xZ,(x=n==null?void 0:n.popupTrigger)!==null&&x!==void 0?x:"click"),C(lt.Uv,(p=n==null?void 0:n.activeTab)!==null&&p!==void 0?p:"geojson"),C(lt.DJ,(g=n==null?void 0:n.officialLayers)!==null&&g!==void 0?g:[]),C(lt.bK,(E=n==null?void 0:n.hidePanel)!==null&&E!==void 0?E:!1),C(lt.XG,(O=n==null?void 0:n.theme)!==null&&O!==void 0?O:"light"),C(lt.PY,(D=n==null?void 0:n.coordConvert)!==null&&D!==void 0?D:"GCJ02"),C(lt.GR,(A=n==null?void 0:n.locale)!==null&&A!==void 0?A:"zh-CN")}},[n]);return a?(0,e.jsx)(Kt.Wh,{initializeState:l,children:(0,e.jsx)(Ei,d()({},n))}):(0,e.jsx)(xi.ZP,{status:"404",title:o("pages.index.qingYongPCDuan")})}},22950:function(Oe,oe,r){"use strict";r.d(oe,{DJ:function(){return W},Do:function(){return De},E1:function(){return Te},EB:function(){return $},GR:function(){return We},LY:function(){return fe},PY:function(){return e},Qn:function(){return ee},Rl:function(){return X},UW:function(){return Se},Uv:function(){return R},XG:function(){return Ie},aD:function(){return ye},aQ:function(){return He},bK:function(){return ct},bo:function(){return Pe},dR:function(){return Le},tJ:function(){return xe},xZ:function(){return _},zl:function(){return be}});var ue=r(69483),d=r.n(ue),J=r(4480),f=r(55375),ae=function(ce){return function(ke){var Qe=ke.setSelf,re=ke.onSet,z=localStorage.getItem(ce);z&&Qe(JSON.parse(z)),re(function(te){te instanceof J.nY?localStorage.removeItem(ce):localStorage.setItem(ce,JSON.stringify(te))})}},ge=function(ce){return function(ke){var Qe=ke.setSelf,re=ke.onSet;d().getItem(ce).then(function(z){z&&Qe(z)}),re(function(z){z instanceof J.nY?d().removeItem(ce):d().setItem(ce,z)})}},fe=(0,J.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),ye=(0,J.cn)({key:"isDraw",default:!1}),xe=(0,J.cn)({key:"savedText",default:""}),X=(0,J.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),ee=(0,J.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Pe=(0,J.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[ge(f.Fe.EditorText)]}),k=(0,J.cn)({key:"lnglatType"}),ve=(0,J.cn)({key:"lnglatText",default:""}),De=(0,J.cn)({key:"rightPanelWidth",effects:[ae(f.Fe.RightPanelWidth)]}),He=(0,J.cn)({key:"mapOptions",effects:[ae(f.Fe.MapOptions)]}),Le=(0,J.cn)({key:"layerColor",effects:[ae(f.Fe.LayerColor)]}),ct=(0,J.cn)({key:"hideEditor",default:!1,effects:[ae(f.Fe.HideEditor)]}),Te=(0,J.cn)({key:"autoFitBounds",effects:[ae(f.Fe.AutoFitBounds)]}),_=(0,J.cn)({key:"popupTrigger",effects:[ae(f.Fe.PopupTrigger)]}),$=(0,J.cn)({key:"baseMap",effects:[ae(f.Fe.BaseMap)]}),R=(0,J.cn)({key:"activeTab",default:"geojson",effects:[ae(f.Fe.ActiveRightTabKey)]}),W=(0,J.cn)({key:"layerType",default:[],effects:[ae(f.Fe.officialLayers)]}),e=(0,J.cn)({key:"coordConvert",default:"GCJ02",effects:[ae(f.Fe.Convert)]}),Ie=(0,J.cn)({key:"theme",default:"light",effects:[ae(f.Fe.theme)]}),be=(0,J.cn)({key:"cityHistory",default:[],effects:[ae(f.Fe.cityHistory)]}),Se=(0,J.cn)({key:"showIndex",default:!0,effects:[ae(f.Fe.showIndex)]}),We=(0,J.cn)({key:"locale",default:"zh-CN",effects:[ae(f.Fe.locale)]})},85959:function(Oe,oe,r){"use strict";r.d(oe,{Z:function(){return Ie}});var ue=r(861),d=r.n(ue),J=r(18698),f=r.n(J),ae=r(38416),ge=r.n(ae),fe=r(42122),ye=r.n(fe),xe=r(27424),X=r.n(xe),ee=r(24928),Pe=r(10154),k=r(68652),ve=r(16805),De=r(3729),He=r(90783),Le=r(67294),ct=r(67421),Te=r(4480),_=r(55375),$=r(20929),R=r(12510),W=r(22950),e=r(57874);function Ie(){var be=(0,e.Z)(),Se=be.baseMap,We=be.coordConvert,et=(0,Te.FV)(W.bo),ce=X()(et,2),ke=ce[0],Qe=ce[1],re=(0,Te.FV)(W.tJ),z=X()(re,2),te=z[0],Q=z[1],me=(0,Te.FV)(W.Rl),we=X()(me,2),Be=we[0],ht=we[1],dt=(0,Te.FV)(W.aD),ot=X()(dt,2),_t=ot[0],St=ot[1],pt=(0,Te.FV)(W.Qn),Tt=X()(pt,2),de=Tt[0],Nt=Tt[1],w=(0,ct.$G)(),M=w.t,Fe=(0,Le.useMemo)(function(){return ke!==te},[ke,te]),wt=(0,Le.useMemo)(function(){return(0,ee.featureCollection)(Be)},[Be]),jt=function(le){ht((0,k.Z)(le).map(function(pe,Ze){var Xe;return pe.properties=ye()(ye()({},pe.properties),{},ge()({},_.AQ.Index,Ze)),(Xe=pe.properties)!==null&&Xe!==void 0&&Xe[_.AQ.DrawType]||(pe.properties[_.AQ.DrawType]=function(){var mt=(0,ee.getType)(pe);return/Point/.test(mt)?"point":/LineString/.test(mt)?"line":"polygon"}()),pe}))},Bt=function(le){var pe=JSON.stringify({type:"FeatureCollection",features:[]},null,2),Ze=[];if(ke||le)try{Ze=(0,$.mr)(le!=null?le:ke,M),le&&Qe(le),Q(le!=null?le:ke),jt(Ze)}catch(Xe){Pe.ZP.warning(M("recoil.feature.shuJuJiaZaiYou"))}else Qe(pe),Q(pe);return Ze},Lt=function(le){var pe=(0,R.X)({content:(0,ee.featureCollection)(le)});Qe(pe),Q(pe),jt(le)},kt=(0,Le.useMemo)(function(){var Re=Be.map(function(pe,Ze){var Xe=pe.properties;return ye()({__index:Ze+1},Xe)}),le=[];return Array.from(new Set((0,ve.Z)(Be.map(function(pe){var Ze=pe.properties;return Object.keys(Ze)})))).forEach(function(pe){var Ze=f()(Re[0][pe]);if(Ze==="string"||Ze==="boolean"){var Xe=Re.map(function(Zt){return String(Zt[pe])});le.push({type:"string",field:pe,value:Xe})}else if(Ze==="number"){var mt=Re.map(function(Zt){return Zt[pe]});le.push({type:Ze,field:pe,min:(0,De.Z)(mt),max:(0,He.Z)(mt)})}}),le},[Be]),Et=(0,Le.useCallback)(function(Re){var le=d()(Re);return We==="WGS84"&&Se==="Gaode"?le=le.map(function(pe){return(0,$.IQ)((0,k.Z)(pe))}):We==="GCJ02"&&Se==="Mapbox"&&(le=le.map(function(pe){return(0,$.Jk)((0,k.Z)(pe))})),le},[Se,We]),Rt=(0,Le.useCallback)(function(Re){var le=d()(Re);return We==="WGS84"&&Se==="Gaode"?le=le.map(function(pe){return(0,$.Jk)((0,k.Z)(pe))}):We==="GCJ02"&&Se==="Mapbox"&&(le=le.map(function(pe){return(0,$.IQ)((0,k.Z)(pe))})),le},[Se,We]),Ft=(0,Le.useCallback)(function(Re){var le=Re!=null?Re:Be;if(de&&le.length){var pe=(0,ee.bbox)((0,ee.featureCollection)(Et(le))),Ze=X()(pe,4),Xe=Ze[0],mt=Ze[1],Zt=Ze[2],$t=Ze[3];de.fitBounds([[Xe,mt],[Zt,$t]])}},[Be,de,Et]);return{editorText:ke,setEditorText:Qe,savedText:te,setSavedText:Q,features:Be,setFeatures:jt,savable:Fe,saveEditorText:Bt,resetFeatures:Lt,dataSource:kt,bboxAutoFit:Ft,setIsDraw:St,isDraw:_t,scene:de,setScene:Nt,fc:wt,transformCoord:Et,revertCoord:Rt}}},29795:function(Oe,oe,r){"use strict";r.d(oe,{Z:function(){return ae}});var ue=r(27424),d=r.n(ue),J=r(4480),f=r(22950);function ae(){var ge=(0,J.FV)(f.LY),fe=d()(ge,2),ye=fe[0],xe=fe[1];return{filters:ye,setFilters:xe}}},57874:function(Oe,oe,r){"use strict";r.d(oe,{Z:function(){return ae}});var ue=r(27424),d=r.n(ue),J=r(4480),f=r(22950);function ae(){var ge=(0,J.FV)(f.Do),fe=d()(ge,2),ye=fe[0],xe=fe[1],X=(0,J.FV)(f.aQ),ee=d()(X,2),Pe=ee[0],k=ee[1],ve=(0,J.FV)(f.dR),De=d()(ve,2),He=De[0],Le=De[1],ct=(0,J.FV)(f.bK),Te=d()(ct,2),_=Te[0],$=Te[1],R=(0,J.FV)(f.E1),W=d()(R,2),e=W[0],Ie=W[1],be=(0,J.FV)(f.xZ),Se=d()(be,2),We=Se[0],et=Se[1],ce=(0,J.FV)(f.EB),ke=d()(ce,2),Qe=ke[0],re=ke[1],z=(0,J.FV)(f.Uv),te=d()(z,2),Q=te[0],me=te[1],we=(0,J.FV)(f.DJ),Be=d()(we,2),ht=Be[0],dt=Be[1],ot=(0,J.FV)(f.PY),_t=d()(ot,2),St=_t[0],pt=_t[1],Tt=(0,J.FV)(f.XG),de=d()(Tt,2),Nt=de[0],w=de[1],M=(0,J.FV)(f.zl),Fe=d()(M,2),wt=Fe[0],jt=Fe[1],Bt=(0,J.FV)(f.UW),Lt=d()(Bt,2),kt=Lt[0],Et=Lt[1],Rt=(0,J.FV)(f.GR),Ft=d()(Rt,2),Re=Ft[0],le=Ft[1];return{rightPanelWidth:ye,setRightWidth:xe,mapOptions:Pe,setMapOptions:k,layerColor:He,setLayerColor:Le,hideEditor:_,setHideEditor:$,popupTrigger:We,setPopupTrigger:et,baseMap:Qe,setBaseMap:re,autoFitBounds:e,setAutoFitBounds:Ie,activeTab:Q,setActiveTab:me,layerType:ht,setLayerType:dt,coordConvert:St,setCoordConvert:pt,theme:Nt,setTheme:w,cityHistory:wt,setCityHistory:jt,showIndex:kt,setShowIndex:Et,locale:Re,setLocale:le}}},32865:function(Oe,oe,r){"use strict";r.d(oe,{SS:function(){return ue.Z},L0:function(){return d.Z},Og:function(){return J.Z}});var ue=r(85959),d=r(29795),J=r(57874),f=r(861),ae=r(27424),ge=r(24928),fe=r(67421),ye=r(4480),xe=r(55375),X=r(22950);function ee(){var Pe=useRecoilState(lnglatTypeState),k=_slicedToArray(Pe,2),ve=k[0],De=k[1],He=useTranslation(),Le=He.t,ct=useRecoilState(lnglatTextState),Te=_slicedToArray(ct,2),_=Te[0],$=Te[1],R=function(e){var Ie=e.split(` -`).filter(function(Se){return Se}).map(function(Se){return Se.split(";").filter(function(We){return We}).map(function(We){return We.split(",").filter(function(et){return et}).map(function(et){return+et})})});if(LngLatVT.check(Ie)){var be=[];return ve==="Point"?be.push.apply(be,_toConsumableArray(Ie.flat().map(function(Se){return point(Se)}))):ve==="LingString"?be.push.apply(be,_toConsumableArray(Ie.map(function(Se){return lineString(Se)}))):be.push.apply(be,_toConsumableArray(Ie.map(function(Se){return isEqual(first(Se),last(Se))||Se.push(Se[0]),polygon([Se])}))),be}else throw new Error(Le("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:ve,setLngLatImportType:De,lngLatText:_,setLngLatText:$,importLngLatText:R}}},20929:function(Oe,oe,r){"use strict";r.d(oe,{fC:function(){return R},fN:function(){return He.f},Qp:function(){return W},Yt:function(){return He.Y},Di:function(){return Se},Jk:function(){return Te},C2:function(){return be},oO:function(){return We},bo:function(){return et},gw:function(){return ke},tI:function(){return ce},Ep:function(){return Qe},mr:function(){return e},IQ:function(){return ct}});var ue=r(17061),d=r.n(ue),J=r(17156),f=r.n(J),ae=r(42122),ge=r.n(ae),fe=r(67135),ye=r(89597),xe=r.n(ye),X=r(24928),ee=r(10154),Pe=r(27484),k=r.n(Pe),ve=r(49360),De=r(55375),He=r(42649),Le=r(80520),ct=function(z){return z.geometry.type.match(/polygon/i)&&(z.geometry=JSON.parse(JSON.stringify(z.geometry))),Le.Z.transform(z,Le.Z.WGS84,Le.Z.GCJ02)},Te=function(z){return z.geometry.type.match(/polygon/i)&&(z.geometry=JSON.parse(JSON.stringify(z.geometry))),Le.Z.transform(z,Le.Z.GCJ02,Le.Z.WGS84)},_=r(861),$=r.n(_);function R(re){var z=(0,X.coordAll)(re).map(function(te){return te.join(",")}).join(";");return z}function W(re){var z=re.split(` -`).filter(function(Q){return Q}).map(function(Q){return Q.split(";").filter(function(me){return me}).map(function(me){return me.split(",").filter(function(we){return we}).map(function(we){return+we})})});if(De.eG.check(z)){var te=[];return te.push.apply(te,$()(z.flat().map(function(Q){return(0,X.point)(Q)}))),te}}var e=function(z,te){var Q=JSON.parse(z);if(De._9.check(Q))return Q.features;if(Array.isArray(Q))return De.Iz.check(Q)?Q:De.xQ.check(Q)?Q.map(function(me){return(0,X.feature)(me)}):(console.warn(te("utils.transform.weiShiBieJS")),[]);if(De.u9.check(Q))return[Q];if(De.dw.check(Q))return[(0,X.feature)(Q)]},Ie=function(z,te){var Q=Color(z).fade(te);return"rgba(".concat(Q.array().join(", "),")")},be=function(z){var te=(0,fe.getSingleColorStyle)(z);return Object.keys(te).forEach(function(Q){te[Q].options=ge()(ge()({},te[Q].options),{},{zIndex:De.QF})}),te},Se=function(z,te){var Q=document.createElement("a");Q.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(z)),Q.setAttribute("download","".concat(k()().format("YYYY-MM-DD"),".").concat(te)),Q.style.display="none",document.body.appendChild(Q),Q.click()},We=function(z){var te=new URLSearchParams(window.location.search);return te.get(z)},et=function(){var re=f()(d()().mark(function z(te){var Q,me,we,Be,ht,dt,ot,_t,St,pt=arguments;return d()().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return Q=pt.length>1&&pt[1]!==void 0?pt[1]:"GeoJSON",me=pt.length>2?pt[2]:void 0,de.next=4,fetch(te);case 4:if(we=de.sent,Q!=="GeoJSON"){de.next=18;break}return de.prev=6,de.next=9,we.json();case 9:return Be=de.sent,de.abrupt("return",Be);case 13:throw de.prev=13,de.t0=de.catch(6),new Error(me("utils.index.qingJianChaUR"));case 16:de.next=43;break;case 18:if(Q!=="WKT"){de.next=30;break}return de.next=21,we.text();case 21:if(ht=de.sent,dt=(0,He.Y)(ht),!De._9.check(dt)){de.next=27;break}return de.abrupt("return",dt);case 27:ee.ZP.error(me("utils.index.qingJianChaUR"));case 28:de.next=43;break;case 30:if(Q!=="KML"){de.next=43;break}return de.next=33,we.text();case 33:if(ot=de.sent,_t=new DOMParser().parseFromString(ot,"text/xml"),!(_t.getElementsByTagName("parsererror").length>0)){de.next=39;break}ee.ZP.error(me("utils.index.qingJianChaUR")),de.next=43;break;case 39:return de.next=41,xe().kml(_t,{style:!0});case 41:return St=de.sent,de.abrupt("return",St);case 43:case"end":return de.stop()}},z,null,[[6,13]])}));return function(te){return re.apply(this,arguments)}}(),ce=function(z){return!(0,ve.Z)(z)&&z instanceof Promise},ke=function(z){var te,Q=(te=z.properties)===null||te===void 0?void 0:te[De.AQ.DrawType];if(Q==="circle")return!0;var me=(0,X.center)(z).geometry.coordinates,we=(0,X.coordAll)(z).map(function(Be){return Math.round((0,X.distance)(Be,me,{units:"meters"}))});return Array.from(new Set(we)).length===1},Qe=function(z){var te,Q=(te=z.properties)===null||te===void 0?void 0:te[De.AQ.DrawType];if(Q==="rect")return!0;var me=(0,X.coordAll)(z);if(me.length!==5)return!1;var we=(0,X.distance)(me[0],me[1],{units:"meters"}).toFixed(0),Be=(0,X.distance)(me[1],me[2],{units:"meters"}).toFixed(0),ht=(0,X.distance)(me[2],me[3],{units:"meters"}).toFixed(0),dt=(0,X.distance)(me[3],me[4],{units:"meters"}).toFixed(0);if(we===ht&&Be===dt){var ot=Math.round((0,X.bearing)(me[0],me[3])-(0,X.bearing)(me[0],me[1]));return ot===90||ot===270}return!1}},12510:function(Oe,oe,r){"use strict";r.d(oe,{X:function(){return ae}});var ue=r(73945),d=r.n(ue),J=r(28182),f=r.n(J);function ae(ge){var fe=ge.content,ye=ge.parser,xe=ye===void 0?"json":ye,X=fe;typeof fe!="string"&&(X=JSON.stringify(fe,null,2));var ee=d().format(X,{parser:xe==="json"?xe:"babel",plugins:[f()]});return ee}},42649:function(Oe,oe,r){"use strict";r.d(oe,{Y:function(){return ae},f:function(){return f}});var ue=r(24928),d=r(41545),J=r.n(d);function f(ge){return ge.features.map(function(fe){return(0,d.stringify)(fe.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function ae(ge){var fe=(0,ue.featureCollection)([]);return ge.split(/[;\n]/g).forEach(function(ye){if(ye){var xe=(0,d.parse)(ye);xe&&fe.features.push((0,ue.feature)(xe,{}))}}),fe}},20067:function(){}}]); diff --git a/288.bb94633b.async.js b/288.bb94633b.async.js new file mode 100644 index 0000000..f3d957b --- /dev/null +++ b/288.bb94633b.async.js @@ -0,0 +1,5 @@ +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[288],{2143:function($,K,h){"use strict";var x=h(73847),P=h(67294),E=h(96057);function C(u,e){return M(u)||R(u,e)||j(u,e)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(u,e){if(u){if(typeof u=="string")return T(u,e);var r=Object.prototype.toString.call(u).slice(8,-1);if(r==="Object"&&u.constructor&&(r=u.constructor.name),r==="Map"||r==="Set")return Array.from(u);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(u,e)}}function T(u,e){(e==null||e>u.length)&&(e=u.length);for(var r=0,i=new Array(e);r")},function:function(e){var r=this,i=e.signature;if(!i)return"Function";var f="oneOf"in i?i.oneOf:[i];return f.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(s){return"".concat(s.key,": ").concat(r.toString(s))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(i){return r.getValidClassName(i)||r.toString(i)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},W=function(e){var r=useState(function(){return L.toString(e)}),i=C(r,2),f=i[0],c=i[1];return useEffect(function(){c(L.toString(e))},[e]),React.createElement("code",null,f)},H=function(e){var r,i=useRouteMeta(),f=i.frontmatter,c=useAtomAssets(),s=c.components,p=e.id||f.atomId,y=useIntl();if(!p)throw new Error("`id` properties if required for API component!");var o=s==null?void 0:s[p];return React.createElement("div",{className:"markdown"},React.createElement(Table,null,React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",null,y.formatMessage({id:"api.component.name"})),React.createElement("th",null,y.formatMessage({id:"api.component.description"})),React.createElement("th",null,y.formatMessage({id:"api.component.type"})),React.createElement("th",null,y.formatMessage({id:"api.component.default"})))),React.createElement("tbody",null,o&&(r=o.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(o.propsConfig.properties).map(function(d){var m,v=C(d,2),O=v[0],S=v[1];return React.createElement("tr",{key:O},React.createElement("td",null,O),React.createElement("td",null,S.description||"--"),React.createElement("td",null,React.createElement(W,S)),React.createElement("td",null,React.createElement("code",null,(m=o.propsConfig.required)!==null&&m!==void 0&&m.includes(O)?y.formatMessage({id:"api.component.required"}):JSON.stringify(S.default)||"--")))}):React.createElement("tr",null,React.createElement("td",{colSpan:4},y.formatMessage({id:"api.component.".concat(s?"not.found":"unavailable")},{id:p}))))))},F=null},93359:function($,K,h){"use strict";var x=h(67294);function P(){return P=Object.assign?Object.assign.bind():function(A){for(var j=1;je.length)&&(r=e.length);for(var i=0,f=new Array(r);i=0)&&Object.prototype.propertyIsEnumerable.call(e,f)&&(i[f]=e[f])}return i}function H(e,r){if(e==null)return{};var i={},f=Object.keys(e),c,s;for(s=0;s=0)&&(i[c]=e[c]);return i}var F=function(r){var i=r.children,f=W(r,C),c=(0,E.useRef)(null),s=(0,E.useState)(!1),p=A(s,2),y=p[0],o=p[1],d=(0,E.useState)(!1),m=A(d,2),v=m[0],O=m[1];return(0,E.useEffect)(function(){var S=c.current;if(S){var t=P()(function(){o(S.scrollLeft>0),O(S.scrollLeftt.length)&&(n=t.length);for(var a=0,l=new Array(n);a1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(t).forEach(function(l,I){var b="".concat(n?"".concat(n,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var _,w=((_=a[a.length-1])===null||_===void 0?void 0:_.children)||a,N=c(l.props.children||[],b);w.push.apply(w,F(N));break}case"li":{var D=c(l.props.children,b);a.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:b,children:D,isLeaf:!D.length});break}default:}}),a}var s=function(n){var a=useState(c(n)),l=M(a,2),I=l[0],b=l[1];return useEffect(function(){b(c(n))},[n]),I},p=function(n){var a=n.isLeaf,l=n.expanded;return a?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FileOutlined,{fill:"currentColor"})):l?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOpenOutlined,{fill:"currentColor"})):React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOutlined,{fill:"currentColor"}))},y=function(n){var a=n.isLeaf,l=n.expanded;return a?React.createElement("span",{className:"tree-switcher-leaf-line"}):l?React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(MinusSquareOutlined,{fill:"currentColor"}))):React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(PlusSquareOutlined,{fill:"currentColor"})))},o=function(){return{height:0,opacity:0}},d=function(n){var a=n.scrollHeight;return{height:a,opacity:1}},m=function(n){return{height:n?n.offsetHeight:0}},v=function(n,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},O={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:d,onEnterActive:d,onLeaveStart:m,onLeaveActive:o,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500},S=function(t){var n=s(t.children),a=createRef(),l=function(b,_){var w=_.isLeaf;w||b.shiftKey||b.metaKey||b.ctrlKey||a.current.onNodeExpand(b,_)};return React.createElement(Tree,{className:"dumi-default-tree",icon:p,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A(A({},O),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:t.title||"",children:n}],defaultExpandAll:!0,switcherIcon:y})}},93096:function($,K,h){var x="Expected a function",P=NaN,E="[object Symbol]",C=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,T=/^0o[0-7]+$/i,R=parseInt,M=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g,L=typeof self=="object"&&self&&self.Object===Object&&self,W=M||L||Function("return this")(),H=Object.prototype,F=H.toString,u=Math.max,e=Math.min,r=function(){return W.Date.now()};function i(o,d,m){var v,O,S,t,n,a,l=0,I=!1,b=!1,_=!0;if(typeof o!="function")throw new TypeError(x);d=y(d)||0,c(m)&&(I=!!m.leading,b="maxWait"in m,S=b?u(y(m.maxWait)||0,d):S,_="trailing"in m?!!m.trailing:_);function w(g){var k=v,U=O;return v=O=void 0,l=g,t=o.apply(U,k),t}function N(g){return l=g,n=setTimeout(V,d),I?w(g):t}function D(g){var k=g-a,U=g-l,X=d-k;return b?e(X,S-U):X}function B(g){var k=g-a,U=g-l;return a===void 0||k>=d||k<0||b&&U>=S}function V(){var g=r();if(B(g))return J(g);n=setTimeout(V,D(g))}function J(g){return n=void 0,_&&v?w(g):(v=O=void 0,t)}function G(){n!==void 0&&clearTimeout(n),l=0,v=a=O=n=void 0}function Z(){return n===void 0?t:J(r())}function z(){var g=r(),k=B(g);if(v=arguments,O=this,a=g,k){if(n===void 0)return N(a);if(b)return n=setTimeout(V,d),w(a)}return n===void 0&&(n=setTimeout(V,d)),t}return z.cancel=G,z.flush=Z,z}function f(o,d,m){var v=!0,O=!0;if(typeof o!="function")throw new TypeError(x);return c(m)&&(v="leading"in m?!!m.leading:v,O="trailing"in m?!!m.trailing:O),i(o,d,{leading:v,maxWait:d,trailing:O})}function c(o){var d=typeof o;return!!o&&(d=="object"||d=="function")}function s(o){return!!o&&typeof o=="object"}function p(o){return typeof o=="symbol"||s(o)&&F.call(o)==E}function y(o){if(typeof o=="number")return o;if(p(o))return P;if(c(o)){var d=typeof o.valueOf=="function"?o.valueOf():o;o=c(d)?d+"":d}if(typeof o!="string")return o===0?o:+o;o=o.replace(C,"");var m=j.test(o);return m||T.test(o)?R(o.slice(2),m?2:8):A.test(o)?P:+o}$.exports=f}}]); diff --git a/404.html b/404.html index 1fc3442..6253950 100644 --- a/404.html +++ b/404.html @@ -26,6 +26,6 @@
- + \ No newline at end of file diff --git a/970.674197f2.chunk.css b/439.674197f2.chunk.css similarity index 100% rename from 970.674197f2.chunk.css rename to 439.674197f2.chunk.css diff --git a/970.dd6edaa8.async.js b/439.76dab209.async.js similarity index 54% rename from 970.dd6edaa8.async.js rename to 439.76dab209.async.js index 25bdc81..b0cc00f 100644 --- a/970.dd6edaa8.async.js +++ b/439.76dab209.async.js @@ -1,5 +1,5 @@ -!(function(){var lpe=Object.defineProperty,upe=Object.defineProperties;var cpe=Object.getOwnPropertyDescriptors;var HB=Object.getOwnPropertySymbols;var $ee=Object.prototype.hasOwnProperty,Wee=Object.prototype.propertyIsEnumerable;var u1=Math.pow,VK=(nt,V,m)=>V in nt?lpe(nt,V,{enumerable:!0,configurable:!0,writable:!0,value:m}):nt[V]=m,ef=(nt,V)=>{for(var m in V||(V={}))$ee.call(V,m)&&VK(nt,m,V[m]);if(HB)for(var m of HB(V))Wee.call(V,m)&&VK(nt,m,V[m]);return nt},X0=(nt,V)=>upe(nt,cpe(V));var mS=(nt,V)=>{var m={};for(var y in nt)$ee.call(nt,y)&&V.indexOf(y)<0&&(m[y]=nt[y]);if(nt!=null&&HB)for(var y of HB(nt))V.indexOf(y)<0&&Wee.call(nt,y)&&(m[y]=nt[y]);return m};var vS=(nt,V,m)=>(VK(nt,typeof V!="symbol"?V+"":V,m),m);var ig=(nt,V,m)=>new Promise((y,A)=>{var b=N=>{try{k(m.next(N))}catch(w){A(w)}},z=N=>{try{k(m.throw(N))}catch(w){A(w)}},k=N=>N.done?y(N.value):Promise.resolve(N.value).then(b,z);k((m=m.apply(nt,V)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[970],{81618:function(nt){"use strict";(function(V,m){nt.exports=m()})(this,function(){function V(I){var C=[];return I.AMapUI&&C.push(m(I.AMapUI)),I.Loca&&C.push(y(I.Loca)),Promise.all(C)}function m(I){return new Promise(function(C,f){var S=[];if(I.plugins)for(var P=0;P=60&&Math.round(bt.h)<=240?vt=$t?Math.round(bt.h)-b*ft:Math.round(bt.h)+b*ft:vt=$t?Math.round(bt.h)+b*ft:Math.round(bt.h)-b*ft,vt<0?vt+=360:vt>=360&&(vt-=360),vt}function q(bt,ft,$t){if(bt.h===0&&bt.s===0)return bt.s;var vt;return $t?vt=bt.s-z*ft:ft===C?vt=bt.s+z:vt=bt.s+k*ft,vt>1&&(vt=1),$t&&ft===I&&vt>.1&&(vt=.1),vt<.06&&(vt=.06),Number(vt.toFixed(2))}function ie(bt,ft,$t){var vt;return $t?vt=bt.v+N*ft:vt=bt.v-w*ft,vt>1&&(vt=1),Number(vt.toFixed(2))}function he(bt){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=[],vt=(0,A.uA)(bt),yn=I;yn>0;yn-=1){var Bn=S(vt),Lr=P((0,A.uA)({h:te(Bn,yn,!0),s:q(Bn,yn,!0),v:ie(Bn,yn,!0)}));$t.push(Lr)}$t.push(P(vt));for(var ii=1;ii<=C;ii+=1){var gi=S(vt),no=P((0,A.uA)({h:te(gi,ii),s:q(gi,ii),v:ie(gi,ii)}));$t.push(no)}return ft.theme==="dark"?f.map(function(To){var _r=To.index,Bo=To.opacity,hs=P(W((0,A.uA)(ft.backgroundColor||"#141414"),(0,A.uA)($t[_r]),Bo*100));return hs}):$t}var de={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fe={},ke={};Object.keys(de).forEach(function(bt){fe[bt]=he(de[bt]),fe[bt].primary=fe[bt][5],ke[bt]=he(de[bt],{theme:"dark",backgroundColor:"#141414"}),ke[bt].primary=ke[bt][5]});var Ie=fe.red,Be=fe.volcano,be=fe.gold,me=fe.orange,ye=fe.yellow,_e=fe.lime,Ce=fe.green,De=fe.cyan,ge=fe.blue,je=fe.geekblue,we=fe.purple,Pt=fe.magenta,dt=fe.grey,He=fe.grey},85731:function(nt,V,m){"use strict";m.d(V,{E4:function(){return Ml},jG:function(){return He},t2:function(){return Ui},fp:function(){return xo},xy:function(){return $a}});var y=m(74902),A=m(1413);function b(ls){for(var Ks=0,xa,Il=0,El=ls.length;El>=4;++Il,El-=4)xa=ls.charCodeAt(Il)&255|(ls.charCodeAt(++Il)&255)<<8|(ls.charCodeAt(++Il)&255)<<16|(ls.charCodeAt(++Il)&255)<<24,xa=(xa&65535)*1540483477+((xa>>>16)*59797<<16),xa^=xa>>>24,Ks=(xa&65535)*1540483477+((xa>>>16)*59797<<16)^(Ks&65535)*1540483477+((Ks>>>16)*59797<<16);switch(El){case 3:Ks^=(ls.charCodeAt(Il+2)&255)<<16;case 2:Ks^=(ls.charCodeAt(Il+1)&255)<<8;case 1:Ks^=ls.charCodeAt(Il)&255,Ks=(Ks&65535)*1540483477+((Ks>>>16)*59797<<16)}return Ks^=Ks>>>13,Ks=(Ks&65535)*1540483477+((Ks>>>16)*59797<<16),((Ks^Ks>>>15)>>>0).toString(36)}var z=b,k=m(67294),N=m.t(k,2),w=m(56982),I=m(91881),C=m(15671),f=m(43144),S=m(4942),P="%",W=function(){function ls(Ks){(0,C.Z)(this,ls),(0,S.Z)(this,"instanceId",void 0),(0,S.Z)(this,"cache",new Map),this.instanceId=Ks}return(0,f.Z)(ls,[{key:"get",value:function(xa){return this.cache.get(xa.join(P))||null}},{key:"update",value:function(xa,Il){var El=xa.join(P),vl=this.cache.get(El),fu=Il(vl);fu===null?this.cache.delete(El):this.cache.set(El,fu)}}]),ls}(),te=W,q=null,ie="data-token-hash",he="data-css-hash",de="data-cache-path",fe="__cssinjs_instance__";function ke(){var ls=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ks=document.body.querySelectorAll("style[".concat(he,"]"))||[],xa=document.head.firstChild;Array.from(Ks).forEach(function(El){El[fe]=El[fe]||ls,El[fe]===ls&&document.head.insertBefore(El,xa)});var Il={};Array.from(document.querySelectorAll("style[".concat(he,"]"))).forEach(function(El){var vl=El.getAttribute(he);if(Il[vl]){if(El[fe]===ls){var fu;(fu=El.parentNode)===null||fu===void 0||fu.removeChild(El)}}else Il[vl]=!0})}return new te(ls)}var Ie=k.createContext({hashPriority:"low",cache:ke(),defaultCache:!0}),Be=function(Ks){var xa=Ks.children,Il=_objectWithoutProperties(Ks,q),El=React.useContext(Ie),vl=useMemo(function(){var fu=_objectSpread({},El);Object.keys(Il).forEach(function(lc){var Ic=Il[lc];Il[lc]!==void 0&&(fu[lc]=Ic)});var Fu=Il.cache;return fu.cache=fu.cache||ke(),fu.defaultCache=!Fu&&El.defaultCache,fu},[El,Il],function(fu,Fu){return!isEqual(fu[0],Fu[0],!0)||!isEqual(fu[1],Fu[1],!0)});return React.createElement(Ie.Provider,{value:vl},xa)},be=Ie,me=m(71002),ye=m(98924),_e=m(44958),Ce=m(97685);function De(ls,Ks){if(ls.length!==Ks.length)return!1;for(var xa=0;xa1&&arguments[1]!==void 0?arguments[1]:!1,fu={map:this.cache};return xa.forEach(function(Fu){if(!fu)fu=void 0;else{var lc,Ic;fu=(lc=fu)===null||lc===void 0||(Ic=lc.map)===null||Ic===void 0?void 0:Ic.get(Fu)}}),(Il=fu)!==null&&Il!==void 0&&Il.value&&vl&&(fu.value[1]=this.cacheCallTimes++),(El=fu)===null||El===void 0?void 0:El.value}},{key:"get",value:function(xa){var Il;return(Il=this.internalGet(xa,!0))===null||Il===void 0?void 0:Il[0]}},{key:"has",value:function(xa){return!!this.internalGet(xa)}},{key:"set",value:function(xa,Il){var El=this;if(!this.has(xa)){if(this.size()+1>ls.MAX_CACHE_SIZE+ls.MAX_CACHE_OFFSET){var vl=this.keys.reduce(function(Ic,Uc){var zd=(0,Ce.Z)(Ic,2),th=zd[1];return El.internalGet(Uc)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),we+=1}return(0,f.Z)(ls,[{key:"getDerivativeToken",value:function(xa){return this.derivatives.reduce(function(Il,El){return El(xa,Il)},void 0)}}]),ls}(),dt=new ge;function He(ls){var Ks=Array.isArray(ls)?ls:[ls];return dt.has(Ks)||dt.set(Ks,new Pt(Ks)),dt.get(Ks)}var bt=new WeakMap,ft={};function $t(ls,Ks){for(var xa=bt,Il=0;IlVr&&Il.forEach(function(El){_n(El,Ks),uo.delete(El)})}var Ui=function(Ks,xa,Il,El){var vl=Il.getDerivativeToken(Ks),fu=(0,A.Z)((0,A.Z)({},vl),xa);return El&&(fu=El(fu)),fu};function xo(ls,Ks){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Il=(0,k.useContext)(be),El=Il.cache.instanceId,vl=xa.salt,fu=vl===void 0?"":vl,Fu=xa.override,lc=Fu===void 0?ri:Fu,Ic=xa.formatToken,Uc=xa.getComputedToken,zd=$t(function(){return Object.assign.apply(Object,[{}].concat((0,y.Z)(Ks)))},Ks),th=yn(zd),Xd=yn(lc),sd=Kr("token",[fu,ls.id,th,Xd],function(){var Mu=Uc?Uc(zd,lc,ls):Ui(zd,lc,ls,Ic),Fc=Bn(Mu,fu);Mu._tokenKey=Fc,Qo(Fc);var hd="".concat(si,"-").concat(z(Fc));return Mu._hashId=hd,[Mu,hd]},function(Mu){qr(Mu[0]._tokenKey,El)});return sd}var Us=m(87462),zn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kn=zn,Or="-ms-",mi="-moz-",Er="-webkit-",ti="comm",di="rule",rn="decl",Qn="@page",Xr="@media",ao="@import",as="@charset",Bt="@viewport",pn="@supports",br="@document",Jr="@namespace",vi="@keyframes",Di="@font-face",co="@counter-style",Qr="@font-feature-values",oi="@layer",Zi=Math.abs,Ar=String.fromCharCode,tn=Object.assign;function Gn(ls,Ks){return wi(ls,0)^45?(((Ks<<2^wi(ls,0))<<2^wi(ls,1))<<2^wi(ls,2))<<2^wi(ls,3):0}function Ei(ls){return ls.trim()}function In(ls,Ks){return(ls=Ks.exec(ls))?ls[0]:ls}function Li(ls,Ks,xa){return ls.replace(Ks,xa)}function nr(ls,Ks){return ls.indexOf(Ks)}function wi(ls,Ks){return ls.charCodeAt(Ks)|0}function Mi(ls,Ks,xa){return ls.slice(Ks,xa)}function Fr(ls){return ls.length}function qn(ls){return ls.length}function ms(ls,Ks){return Ks.push(ls),ls}function ya(ls,Ks){return ls.map(Ks).join("")}function ha(ls,Ks){return ls.filter(function(xa){return!In(xa,Ks)})}function Ws(ls,Ks){for(var xa="",Il=0;Il0?wi(pr,--er):0,dl--,Tr===10&&(dl=1,Ao--),Tr}function Sr(){return Tr=er<$r?wi(pr,er++):0,dl++,Tr===10&&(dl=1,Ao++),Tr}function ui(){return wi(pr,er)}function Xt(){return er}function gn(ls,Ks){return Mi(pr,ls,Ks)}function En(ls){switch(ls){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tt(ls){return Ao=dl=1,$r=Fr(pr=ls),er=0,[]}function at(ls){return pr="",ls}function gt(ls){return Ei(gn(er-1,jn(ls===91?ls+2:ls===40?ls+1:ls)))}function Ne(ls){return at(St(tt(ls)))}function lt(ls){for(;(Tr=ui())&&Tr<33;)Sr();return En(ls)>2||En(Tr)>3?"":" "}function St(ls){for(;Sr();)switch(En(Tr)){case 0:append(ki(er-1),ls);break;case 2:append(gt(Tr),ls);break;default:append(from(Tr),ls)}return ls}function ln(ls,Ks){for(;--Ks&&Sr()&&!(Tr<48||Tr>102||Tr>57&&Tr<65||Tr>70&&Tr<97););return gn(ls,Xt()+(Ks<6&&ui()==32&&Sr()==32))}function jn(ls){for(;Sr();)switch(Tr){case ls:return er;case 34:case 39:ls!==34&&ls!==39&&jn(Tr);break;case 40:ls===41&&jn(ls);break;case 92:Sr();break}return er}function Cr(ls,Ks){for(;Sr()&&ls+Tr!==47+10;)if(ls+Tr===42+42&&ui()===47)break;return"/*"+gn(Ks,er-1)+"*"+Ar(ls===47?ls:Sr())}function ki(ls){for(;!En(ui());)Sr();return gn(ls,er)}function Vi(ls){return at(Ki("",null,null,null,[""],ls=tt(ls),0,[0],ls))}function Ki(ls,Ks,xa,Il,El,vl,fu,Fu,lc){for(var Ic=0,Uc=0,zd=fu,th=0,Xd=0,sd=0,Mu=1,Fc=1,hd=1,vd=0,Yd="",nh=El,jd=vl,yh=Il,id=Yd;Fc;)switch(sd=vd,vd=Sr()){case 40:if(sd!=108&&wi(id,zd-1)==58){nr(id+=Li(gt(vd),"&","&\f"),"&\f")!=-1&&(hd=-1);break}case 34:case 39:case 91:id+=gt(vd);break;case 9:case 10:case 13:case 32:id+=lt(sd);break;case 92:id+=ln(Xt()-1,7);continue;case 47:switch(ui()){case 42:case 47:ms(Ns(Cr(Sr(),Xt()),Ks,xa,lc),lc);break;default:id+="/"}break;case 123*Mu:Fu[Ic++]=Fr(id)*hd;case 125*Mu:case 59:case 0:switch(vd){case 0:case 125:Fc=0;case 59+Uc:hd==-1&&(id=Li(id,/\f/g,"")),Xd>0&&Fr(id)-zd&&ms(Xd>32?Bs(id+";",Il,xa,zd-1,lc):Bs(Li(id," ","")+";",Il,xa,zd-2,lc),lc);break;case 59:id+=";";default:if(ms(yh=fs(id,Ks,xa,Ic,Uc,El,Fu,Yd,nh=[],jd=[],zd,vl),vl),vd===123)if(Uc===0)Ki(id,Ks,yh,yh,nh,vl,zd,Fu,jd);else switch(th===99&&wi(id,3)===110?100:th){case 100:case 108:case 109:case 115:Ki(ls,yh,yh,Il&&ms(fs(ls,yh,yh,0,0,El,Fu,Yd,El,nh=[],zd,jd),jd),El,jd,zd,Fu,Il?nh:jd);break;default:Ki(id,yh,yh,yh,[""],jd,0,Fu,jd)}}Ic=Uc=Xd=0,Mu=hd=1,Yd=id="",zd=fu;break;case 58:zd=1+Fr(id),Xd=sd;default:if(Mu<1){if(vd==123)--Mu;else if(vd==125&&Mu++==0&&xs()==125)continue}switch(id+=Ar(vd),vd*Mu){case 38:hd=Uc>0?1:(id+="\f",-1);break;case 44:Fu[Ic++]=(Fr(id)-1)*hd,hd=1;break;case 64:ui()===45&&(id+=gt(Sr())),th=ui(),Uc=zd=Fr(Yd=id+=ki(Xt())),vd++;break;case 45:sd===45&&Fr(id)==2&&(Mu=0)}}return vl}function fs(ls,Ks,xa,Il,El,vl,fu,Fu,lc,Ic,Uc,zd){for(var th=El-1,Xd=El===0?vl:[""],sd=qn(Xd),Mu=0,Fc=0,hd=0;Mu0?Xd[vd]+" "+Yd:Li(Yd,/&\f/g,Xd[vd])))&&(lc[hd++]=nh);return ci(ls,Ks,xa,El===0?di:Fu,lc,Ic,Uc,zd)}function Ns(ls,Ks,xa,Il){return ci(ls,Ks,xa,ti,Ar(Ts()),Mi(ls,2,-2),0,Il)}function Bs(ls,Ks,xa,Il,El){return ci(ls,Ks,xa,rn,Mi(ls,0,Il),Mi(ls,Il+1,-1),Il,El)}function _a(ls,Ks){var xa=Ks.path,Il=Ks.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(xa?"Error in ".concat(xa,": "):"").concat(ls).concat(Il.length?" Selector: ".concat(Il.join(" | ")):""))}var oo=function(Ks,xa,Il){if(Ks==="content"){var El=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vl=["normal","none","initial","inherit","unset"];(typeof xa!="string"||vl.indexOf(xa)===-1&&!El.test(xa)&&(xa.charAt(0)!==xa.charAt(xa.length-1)||xa.charAt(0)!=='"'&&xa.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(xa,"\"'`."),Il)}},Ds=null,oa=function(Ks,xa,Il){Ks==="animation"&&Il.hashId&&xa!=="none"&&lintWarning("You seem to be using hashed animation '".concat(xa,"', in which case 'animationName' with Keyframe as value is recommended."),Il)},va=null;function Bl(ls){var Ks,xa=((Ks=ls.match(/:not\(([^)]*)\)/))===null||Ks===void 0?void 0:Ks[1])||"",Il=xa.split(/(\[[^[]*])|(?=[.#])/).filter(function(El){return El});return Il.length>1}function Fa(ls){return ls.parentSelectors.reduce(function(Ks,xa){return Ks?xa.includes("&")?xa.replace(/&/g,Ks):"".concat(Ks," ").concat(xa):xa},"")}var ml=function(Ks,xa,Il){var El=Fa(Il),vl=El.match(/:not\([^)]*\)/g)||[];vl.length>0&&vl.some(Bl)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Il)},la=null,Nl=function(Ks,xa,Il){switch(Ks){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Ks,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof xa=="string"){var El=xa.split(" ").map(function(Fu){return Fu.trim()});El.length===4&&El[1]!==El[3]&&lintWarning("You seem to be using '".concat(Ks,"' property with different left ").concat(Ks," and right ").concat(Ks,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;case"clear":case"textAlign":(xa==="left"||xa==="right")&&lintWarning("You seem to be using non-logical value '".concat(xa,"' of ").concat(Ks,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"borderRadius":if(typeof xa=="string"){var vl=xa.split("/").map(function(Fu){return Fu.trim()}),fu=vl.reduce(function(Fu,lc){if(Fu)return Fu;var Ic=lc.split(" ").map(function(Uc){return Uc.trim()});return Ic.length>=2&&Ic[0]!==Ic[1]||Ic.length===3&&Ic[1]!==Ic[2]||Ic.length===4&&Ic[2]!==Ic[3]?!0:Fu},!1);fu&&lintWarning("You seem to be using non-logical value '".concat(xa,"' of ").concat(Ks,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;default:}},vs=null,Hi=function(Ks,xa,Il){Il.parentSelectors.some(function(El){var vl=El.split(",");return vl.some(function(fu){return fu.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Il)},to=null,sa="data-ant-cssinjs-cache-path",Cs="_FILE_STYLE__";function Ka(ls){return Object.keys(ls).map(function(Ks){var xa=ls[Ks];return"".concat(Ks,":").concat(xa)}).join(";")}var Wu,rc=!0;function Pc(ls){var Ks=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Wu=ls,rc=Ks}function vo(){if(!Wu&&(Wu={},(0,ye.Z)())){var ls=document.createElement("div");ls.className=sa,ls.style.position="fixed",ls.style.visibility="hidden",ls.style.top="-9999px",document.body.appendChild(ls);var Ks=getComputedStyle(ls).content||"";Ks=Ks.replace(/^"/,"").replace(/"$/,""),Ks.split(";").forEach(function(El){var vl=El.split(":"),fu=(0,Ce.Z)(vl,2),Fu=fu[0],lc=fu[1];Wu[Fu]=lc});var xa=document.querySelector("style[".concat(sa,"]"));if(xa){var Il;rc=!1,(Il=xa.parentNode)===null||Il===void 0||Il.removeChild(xa)}document.body.removeChild(ls)}}function eo(ls){return vo(),!!Wu[ls]}function ds(ls){var Ks=Wu[ls],xa=null;if(Ks&&(0,ye.Z)())if(rc)xa=Cs;else{var Il=document.querySelector("style[".concat(he,'="').concat(Wu[ls],'"]'));Il?xa=Il.innerHTML:delete Wu[ls]}return[xa,Ks]}var Wn=(0,ye.Z)(),yr="_skip_check_",ai="_multi_value_";function hi(ls){var Ks=Ws(Vi(ls),Ua);return Ks.replace(/\{%%%\:[^;];}/g,";")}function Ji(ls){return(0,me.Z)(ls)==="object"&&ls&&(yr in ls||ai in ls)}function so(ls,Ks,xa){if(!Ks)return ls;var Il=".".concat(Ks),El=xa==="low"?":where(".concat(Il,")"):Il,vl=ls.split(",").map(function(fu){var Fu,lc=fu.trim().split(/\s+/),Ic=lc[0]||"",Uc=((Fu=Ic.match(/^\w+/))===null||Fu===void 0?void 0:Fu[0])||"";return Ic="".concat(Uc).concat(El).concat(Ic.slice(Uc.length)),[Ic].concat((0,y.Z)(lc.slice(1))).join(" ")});return vl.join(",")}var Pi=function ls(Ks){var xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Il=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},El=Il.root,vl=Il.injectHash,fu=Il.parentSelectors,Fu=xa.hashId,lc=xa.layer,Ic=xa.path,Uc=xa.hashPriority,zd=xa.transformers,th=zd===void 0?[]:zd,Xd=xa.linters,sd=Xd===void 0?[]:Xd,Mu="",Fc={};function hd(yh){var id=yh.getName(Fu);if(!Fc[id]){var nd=ls(yh.style,xa,{root:!1,parentSelectors:fu}),Pf=(0,Ce.Z)(nd,1),Jd=Pf[0];Fc[id]="@keyframes ".concat(yh.getName(Fu)).concat(Jd)}}function vd(yh){var id=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return yh.forEach(function(nd){Array.isArray(nd)?vd(nd,id):nd&&id.push(nd)}),id}var Yd=vd(Array.isArray(Ks)?Ks:[Ks]);if(Yd.forEach(function(yh){var id=typeof yh=="string"&&!El?{}:yh;if(typeof id=="string")Mu+="".concat(id,` -`);else if(id._keyframe)hd(id);else{var nd=th.reduce(function(Pf,Jd){var cc;return(Jd==null||(cc=Jd.visit)===null||cc===void 0?void 0:cc.call(Jd,Pf))||Pf},id);Object.keys(nd).forEach(function(Pf){var Jd=nd[Pf];if((0,me.Z)(Jd)==="object"&&Jd&&(Pf!=="animationName"||!Jd._keyframe)&&!Ji(Jd)){var cc=!1,Yc=Pf.trim(),jh=!1;(El||vl)&&Fu?Yc.startsWith("@")?cc=!0:Yc=so(Pf,Fu,Uc):El&&!Fu&&(Yc==="&"||Yc==="")&&(Yc="",jh=!0);var uf=ls(Jd,xa,{root:jh,injectHash:cc,parentSelectors:[].concat((0,y.Z)(fu),[Yc])}),Lh=(0,Ce.Z)(uf,2),Sf=Lh[0],xp=Lh[1];Fc=(0,A.Z)((0,A.Z)({},Fc),xp),Mu+="".concat(Yc).concat(Sf)}else{let Th=function(yu,ff){var tl=yu.replace(/[A-Z]/g,function(wd){return"-".concat(wd.toLowerCase())}),Bu=ff;!Kn[yu]&&typeof Bu=="number"&&Bu!==0&&(Bu="".concat(Bu,"px")),yu==="animationName"&&ff!==null&&ff!==void 0&&ff._keyframe&&(hd(ff),Bu=ff.getName(Fu)),Mu+="".concat(tl,":").concat(Bu,";")};var Nf,ch=(Nf=Jd==null?void 0:Jd.value)!==null&&Nf!==void 0?Nf:Jd;(0,me.Z)(Jd)==="object"&&Jd!==null&&Jd!==void 0&&Jd[ai]&&Array.isArray(ch)?ch.forEach(function(yu){Th(Pf,yu)}):Th(Pf,ch)}})}}),!El)Mu="{".concat(Mu,"}");else if(lc&&To()){var nh=lc.split(","),jd=nh[nh.length-1].trim();Mu="@layer ".concat(jd," {").concat(Mu,"}"),nh.length>1&&(Mu="@layer ".concat(lc,"{%%%:%}").concat(Mu))}return[Mu,Fc]};function us(ls,Ks){return z("".concat(ls.join("%")).concat(Ks))}function pa(){return null}function $a(ls,Ks){var xa=ls.token,Il=ls.path,El=ls.hashId,vl=ls.layer,fu=ls.nonce,Fu=ls.clientOnly,lc=ls.order,Ic=lc===void 0?0:lc,Uc=k.useContext(be),zd=Uc.autoClear,th=Uc.mock,Xd=Uc.defaultCache,sd=Uc.hashPriority,Mu=Uc.container,Fc=Uc.ssrInline,hd=Uc.transformers,vd=Uc.linters,Yd=Uc.cache,nh=xa._tokenKey,jd=[nh].concat((0,y.Z)(Il)),yh=Wn,id=Kr("style",jd,function(){var Yc=jd.join("|");if(eo(Yc)){var jh=ds(Yc),uf=(0,Ce.Z)(jh,2),Lh=uf[0],Sf=uf[1];if(Lh)return[Lh,nh,Sf,{},Fu,Ic]}var xp=Ks(),Nf=Pi(xp,{hashId:El,hashPriority:sd,layer:vl,path:Il.join("-"),transformers:hd,linters:vd}),ch=(0,Ce.Z)(Nf,2),Th=ch[0],yu=ch[1],ff=hi(Th),tl=us(jd,ff);return[ff,nh,tl,yu,Fu,Ic]},function(Yc,jh){var uf=(0,Ce.Z)(Yc,3),Lh=uf[2];(jh||zd)&&Wn&&(0,_e.jL)(Lh,{mark:he})},function(Yc){var jh=(0,Ce.Z)(Yc,4),uf=jh[0],Lh=jh[1],Sf=jh[2],xp=jh[3];if(yh&&uf!==Cs){var Nf={mark:he,prepend:"queue",attachTo:Mu,priority:Ic},ch=typeof fu=="function"?fu():fu;ch&&(Nf.csp={nonce:ch});var Th=(0,_e.hq)(uf,Sf,Nf);Th[fe]=Yd.instanceId,Th.setAttribute(ie,nh),Object.keys(xp).forEach(function(yu){(0,_e.hq)(hi(xp[yu]),"_effect-".concat(yu),Nf)})}}),nd=(0,Ce.Z)(id,3),Pf=nd[0],Jd=nd[1],cc=nd[2];return function(Yc){var jh;if(!Fc||yh||!Xd)jh=k.createElement(pa,null);else{var uf;jh=k.createElement("style",(0,Us.Z)({},(uf={},(0,S.Z)(uf,ie,Jd),(0,S.Z)(uf,he,cc),uf),{dangerouslySetInnerHTML:{__html:Pf}}))}return k.createElement(k.Fragment,null,jh,Yc)}}function hl(ls){var Ks=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xa="style%",Il=Array.from(ls.cache.keys()).filter(function(Ic){return Ic.startsWith(xa)}),El={},vl={},fu="";function Fu(Ic,Uc,zd){var th,Xd=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},sd=_objectSpread(_objectSpread({},Xd),{},(th={},_defineProperty(th,ATTR_TOKEN,Uc),_defineProperty(th,ATTR_MARK,zd),th)),Mu=Object.keys(sd).map(function(Fc){var hd=sd[Fc];return hd?"".concat(Fc,'="').concat(hd,'"'):null}).filter(function(Fc){return Fc}).join(" ");return Ks?Ic:"")}var lc=Il.map(function(Ic){var Uc=Ic.slice(xa.length).replace(/%/g,"|"),zd=_slicedToArray(ls.cache.get(Ic)[1],6),th=zd[0],Xd=zd[1],sd=zd[2],Mu=zd[3],Fc=zd[4],hd=zd[5];if(Fc)return null;var vd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(hd)},Yd=Fu(th,Xd,sd,vd);vl[Uc]=sd,Mu&&Object.keys(Mu).forEach(function(jd){El[jd]||(El[jd]=!0,Yd+=Fu(hi(Mu[jd]),Xd,"_effect-".concat(jd),vd))});var nh=[hd,Yd];return nh}).filter(function(Ic){return Ic});return lc.sort(function(Ic,Uc){return Ic[0]-Uc[0]}).forEach(function(Ic){var Uc=_slicedToArray(Ic,2),zd=Uc[1];fu+=zd}),fu+=Fu(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(vl),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),fu}var Zl=function(){function ls(Ks,xa){(0,C.Z)(this,ls),(0,S.Z)(this,"name",void 0),(0,S.Z)(this,"style",void 0),(0,S.Z)(this,"_keyframe",!0),this.name=Ks,this.style=xa}return(0,f.Z)(ls,[{key:"getName",value:function(){var xa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xa?"".concat(xa,"-").concat(this.name):this.name}}]),ls}(),Ml=Zl;function Za(ls){if(typeof ls=="number")return[[ls],!1];var Ks=String(ls).trim(),xa=Ks.match(/(.*)(!important)/),Il=(xa?xa[1]:Ks).trim().split(/\s+/),El="",vl=0;return[Il.reduce(function(fu,Fu){return Fu.includes("(")?(El+=Fu,vl+=Fu.split("(").length-1):Fu.includes(")")?(El+=Fu,vl-=Fu.split(")").length-1,vl===0&&(fu.push(El),El="")):vl>0?El+=Fu:fu.push(Fu),fu},[]),!!xa]}function ku(ls){return ls.notSplit=!0,ls}var ea={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ku(["borderTop","borderBottom"]),borderBlockStart:ku(["borderTop"]),borderBlockEnd:ku(["borderBottom"]),borderInline:ku(["borderLeft","borderRight"]),borderInlineStart:ku(["borderLeft"]),borderInlineEnd:ku(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Qa(ls,Ks){var xa=ls;return Ks&&(xa="".concat(xa," !important")),{_skip_check_:!0,value:xa}}var el={visit:function(Ks){var xa={};return Object.keys(Ks).forEach(function(Il){var El=Ks[Il],vl=ea[Il];if(vl&&(typeof El=="number"||typeof El=="string")){var fu=Za(El),Fu=(0,Ce.Z)(fu,2),lc=Fu[0],Ic=Fu[1];vl.length&&vl.notSplit?vl.forEach(function(Uc){xa[Uc]=Qa(El,Ic)}):vl.length===1?xa[vl[0]]=Qa(El,Ic):vl.length===2?vl.forEach(function(Uc,zd){var th;xa[Uc]=Qa((th=lc[zd])!==null&&th!==void 0?th:lc[0],Ic)}):vl.length===4?vl.forEach(function(Uc,zd){var th,Xd;xa[Uc]=Qa((th=(Xd=lc[zd])!==null&&Xd!==void 0?Xd:lc[zd-2])!==null&&th!==void 0?th:lc[0],Ic)}):xa[Il]=El}else xa[Il]=El}),xa}},Hl=null,Jl=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function vu(ls,Ks){var xa=Math.pow(10,Ks+1),Il=Math.floor(ls*xa);return Math.round(Il/10)*10/xa}var au=function(){var Ks=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xa=Ks.rootValue,Il=xa===void 0?16:xa,El=Ks.precision,vl=El===void 0?5:El,fu=Ks.mediaQuery,Fu=fu===void 0?!1:fu,lc=function(zd,th){if(!th)return zd;var Xd=parseFloat(th);if(Xd<=1)return zd;var sd=vu(Xd/Il,vl);return"".concat(sd,"rem")},Ic=function(zd){var th=_objectSpread({},zd);return Object.entries(zd).forEach(function(Xd){var sd=_slicedToArray(Xd,2),Mu=sd[0],Fc=sd[1];if(typeof Fc=="string"&&Fc.includes("px")){var hd=Fc.replace(Jl,lc);th[Mu]=hd}!unitless[Mu]&&typeof Fc=="number"&&Fc!==0&&(th[Mu]="".concat(Fc,"px").replace(Jl,lc));var vd=Mu.trim();if(vd.startsWith("@")&&vd.includes("px")&&Fu){var Yd=Mu.replace(Jl,lc);th[Yd]=th[Mu],delete th[Mu]}}),th};return{visit:Ic}},Cn=null,Eu={supportModernCSS:function(){return Bo()&&ve()}}},89503:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};V.Z=m},47046:function(nt,V){"use strict";var m={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"};V.Z=m},98851:function(nt,V){"use strict";var m={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"};V.Z=m},42110:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};V.Z=m},43114:function(nt,V){"use strict";var m={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"};V.Z=m},36688:function(nt,V){"use strict";var m={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"};V.Z=m},89099:function(nt,V,m){"use strict";m.d(V,{Z:function(){return fr}});var y=m(1413),A=m(97685),b=m(4942),z=m(91),k=m(67294),N=m(94184),w=m.n(N),I=(0,k.createContext)({}),C=I,f=m(71002),S=m(86500),P=m(1350),W=2,te=.16,q=.05,ie=.05,he=.15,de=5,fe=4,ke=[{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 Ie(Kr){var ri=Kr.r,si=Kr.g,uo=Kr.b,Qo=(0,S.py)(ri,si,uo);return{h:Qo.h*360,s:Qo.s,v:Qo.v}}function Be(Kr){var ri=Kr.r,si=Kr.g,uo=Kr.b;return"#".concat((0,S.vq)(ri,si,uo,!1))}function be(Kr,ri,si){var uo=si/100,Qo={r:(ri.r-Kr.r)*uo+Kr.r,g:(ri.g-Kr.g)*uo+Kr.g,b:(ri.b-Kr.b)*uo+Kr.b};return Qo}function me(Kr,ri,si){var uo;return Math.round(Kr.h)>=60&&Math.round(Kr.h)<=240?uo=si?Math.round(Kr.h)-W*ri:Math.round(Kr.h)+W*ri:uo=si?Math.round(Kr.h)+W*ri:Math.round(Kr.h)-W*ri,uo<0?uo+=360:uo>=360&&(uo-=360),uo}function ye(Kr,ri,si){if(Kr.h===0&&Kr.s===0)return Kr.s;var uo;return si?uo=Kr.s-te*ri:ri===fe?uo=Kr.s+te:uo=Kr.s+q*ri,uo>1&&(uo=1),si&&ri===de&&uo>.1&&(uo=.1),uo<.06&&(uo=.06),Number(uo.toFixed(2))}function _e(Kr,ri,si){var uo;return si?uo=Kr.v+ie*ri:uo=Kr.v-he*ri,uo>1&&(uo=1),Number(uo.toFixed(2))}function Ce(Kr){for(var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},si=[],uo=(0,P.uA)(Kr),Qo=de;Qo>0;Qo-=1){var _n=Ie(uo),Vr=Be((0,P.uA)({h:me(_n,Qo,!0),s:ye(_n,Qo,!0),v:_e(_n,Qo,!0)}));si.push(Vr)}si.push(Be(uo));for(var qr=1;qr<=fe;qr+=1){var Ui=Ie(uo),xo=Be((0,P.uA)({h:me(Ui,qr),s:ye(Ui,qr),v:_e(Ui,qr)}));si.push(xo)}return ri.theme==="dark"?ke.map(function(Us){var zn=Us.index,Kn=Us.opacity,Or=Be(be((0,P.uA)(ri.backgroundColor||"#141414"),(0,P.uA)(si[zn]),Kn*100));return Or}):si}var De={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"},ge={},je={};Object.keys(De).forEach(function(Kr){ge[Kr]=Ce(De[Kr]),ge[Kr].primary=ge[Kr][5],je[Kr]=Ce(De[Kr],{theme:"dark",backgroundColor:"#141414"}),je[Kr].primary=je[Kr][5]});var we=ge.red,Pt=ge.volcano,dt=ge.gold,He=ge.orange,bt=ge.yellow,ft=ge.lime,$t=ge.green,vt=ge.cyan,yn=ge.blue,Bn=ge.geekblue,Lr=ge.purple,ii=ge.magenta,gi=ge.grey,no=m(80334),To=m(44958),_r=m(68929),Bo=m.n(_r);function hs(Kr,ri){(0,no.ZP)(Kr,"[@ant-design/icons] ".concat(ri))}function ve(Kr){return(0,f.Z)(Kr)==="object"&&typeof Kr.name=="string"&&typeof Kr.theme=="string"&&((0,f.Z)(Kr.icon)==="object"||typeof Kr.icon=="function")}function So(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Kr).reduce(function(ri,si){var uo=Kr[si];switch(si){case"class":ri.className=uo,delete ri.class;break;default:delete ri[si],ri[Bo()(si)]=uo}return ri},{})}function ho(Kr,ri,si){return si?k.createElement(Kr.tag,(0,y.Z)((0,y.Z)({key:ri},So(Kr.attrs)),si),(Kr.children||[]).map(function(uo,Qo){return ho(uo,"".concat(ri,"-").concat(Kr.tag,"-").concat(Qo))})):k.createElement(Kr.tag,(0,y.Z)({key:ri},So(Kr.attrs)),(Kr.children||[]).map(function(uo,Qo){return ho(uo,"".concat(ri,"-").concat(Kr.tag,"-").concat(Qo))}))}function go(Kr){return Ce(Kr)[0]}function ji(Kr){return Kr?Array.isArray(Kr)?Kr:[Kr]:[]}var No={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},dn=` +!(function(){var wpe=Object.defineProperty,Cpe=Object.defineProperties;var Spe=Object.getOwnPropertyDescriptors;var uV=Object.getOwnPropertySymbols;var Pre=Object.prototype.hasOwnProperty,Lre=Object.prototype.propertyIsEnumerable;var Q1=Math.pow,kJ=(gt,Y,_)=>Y in gt?wpe(gt,Y,{enumerable:!0,configurable:!0,writable:!0,value:_}):gt[Y]=_,Ef=(gt,Y)=>{for(var _ in Y||(Y={}))Pre.call(Y,_)&&kJ(gt,_,Y[_]);if(uV)for(var _ of uV(Y))Lre.call(Y,_)&&kJ(gt,_,Y[_]);return gt},bv=(gt,Y)=>Cpe(gt,Spe(Y));var zE=(gt,Y)=>{var _={};for(var v in gt)Pre.call(gt,v)&&Y.indexOf(v)<0&&(_[v]=gt[v]);if(gt!=null&&uV)for(var v of uV(gt))Y.indexOf(v)<0&&Lre.call(gt,v)&&(_[v]=gt[v]);return _};var UE=(gt,Y,_)=>(kJ(gt,typeof Y!="symbol"?Y+"":Y,_),_);var Dg=(gt,Y,_)=>new Promise((v,R)=>{var w=V=>{try{B(_.next(V))}catch(O){R(O)}},b=V=>{try{B(_.throw(V))}catch(O){R(O)}},B=V=>V.done?v(V.value):Promise.resolve(V.value).then(w,b);B((_=_.apply(gt,Y)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[439],{81618:function(gt){"use strict";(function(Y,_){gt.exports=_()})(this,function(){function Y(L){var S=[];return L.AMapUI&&S.push(_(L.AMapUI)),L.Loca&&S.push(v(L.Loca)),Promise.all(S)}function _(L){return new Promise(function(S,g){var T=[];if(L.plugins)for(var k=0;k=60&&Math.round(xt.h)<=240?_t=$t?Math.round(xt.h)-w*ut:Math.round(xt.h)+w*ut:_t=$t?Math.round(xt.h)+w*ut:Math.round(xt.h)-w*ut,_t<0?_t+=360:_t>=360&&(_t-=360),_t}function ae(xt,ut,$t){if(xt.h===0&&xt.s===0)return xt.s;var _t;return $t?_t=xt.s-b*ut:ut===S?_t=xt.s+b:_t=xt.s+B*ut,_t>1&&(_t=1),$t&&ut===L&&_t>.1&&(_t=.1),_t<.06&&(_t=.06),Number(_t.toFixed(2))}function fe(xt,ut,$t){var _t;return $t?_t=xt.v+V*ut:_t=xt.v-O*ut,_t>1&&(_t=1),Number(_t.toFixed(2))}function _e(xt){for(var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=[],_t=(0,R.uA)(xt),bn=L;bn>0;bn-=1){var Wn=T(_t),$r=k((0,R.uA)({h:he(Wn,bn,!0),s:ae(Wn,bn,!0),v:fe(Wn,bn,!0)}));$t.push($r)}$t.push(k(_t));for(var wi=1;wi<=S;wi+=1){var oo=T(_t),Mo=k((0,R.uA)({h:he(oo,wi),s:ae(oo,wi),v:fe(oo,wi)}));$t.push(Mo)}return ut.theme==="dark"?g.map(function(Ti){var Hr=Ti.index,Ho=Ti.opacity,Ss=k(K((0,R.uA)(ut.backgroundColor||"#141414"),(0,R.uA)($t[Hr]),Ho*100));return Ss}):$t}var be={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xe={},Xe={};Object.keys(be).forEach(function(xt){xe[xt]=_e(be[xt]),xe[xt].primary=xe[xt][5],Xe[xt]=_e(be[xt],{theme:"dark",backgroundColor:"#141414"}),Xe[xt].primary=Xe[xt][5]});var We=xe.red,dt=xe.volcano,Me=xe.gold,Se=xe.orange,ze=xe.yellow,De=xe.lime,ke=xe.green,$e=xe.cyan,Te=xe.blue,tt=xe.geekblue,Oe=xe.purple,Xt=xe.magenta,Ft=xe.grey,ot=xe.grey},85731:function(gt,Y,_){"use strict";_.d(Y,{E4:function(){return kl},jG:function(){return ot},t2:function(){return ji},fp:function(){return cr},xy:function(){return Ka}});var v=_(74902),R=_(1413);function w(es){for(var Is=0,Qs,dl=0,uu=es.length;uu>=4;++dl,uu-=4)Qs=es.charCodeAt(dl)&255|(es.charCodeAt(++dl)&255)<<8|(es.charCodeAt(++dl)&255)<<16|(es.charCodeAt(++dl)&255)<<24,Qs=(Qs&65535)*1540483477+((Qs>>>16)*59797<<16),Qs^=Qs>>>24,Is=(Qs&65535)*1540483477+((Qs>>>16)*59797<<16)^(Is&65535)*1540483477+((Is>>>16)*59797<<16);switch(uu){case 3:Is^=(es.charCodeAt(dl+2)&255)<<16;case 2:Is^=(es.charCodeAt(dl+1)&255)<<8;case 1:Is^=es.charCodeAt(dl)&255,Is=(Is&65535)*1540483477+((Is>>>16)*59797<<16)}return Is^=Is>>>13,Is=(Is&65535)*1540483477+((Is>>>16)*59797<<16),((Is^Is>>>15)>>>0).toString(36)}var b=w,B=_(67294),V=_.t(B,2),O=_(56982),L=_(91881),S=_(15671),g=_(43144),T=_(4942),k="%",K=function(){function es(Is){(0,S.Z)(this,es),(0,T.Z)(this,"instanceId",void 0),(0,T.Z)(this,"cache",new Map),this.instanceId=Is}return(0,g.Z)(es,[{key:"get",value:function(Qs){return this.cache.get(Qs.join(k))||null}},{key:"update",value:function(Qs,dl){var uu=Qs.join(k),Jl=this.cache.get(uu),xu=dl(Jl);xu===null?this.cache.delete(uu):this.cache.set(uu,xu)}}]),es}(),he=K,ae=null,fe="data-token-hash",_e="data-css-hash",be="data-cache-path",xe="__cssinjs_instance__";function Xe(){var es=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Is=document.body.querySelectorAll("style[".concat(_e,"]"))||[],Qs=document.head.firstChild;Array.from(Is).forEach(function(uu){uu[xe]=uu[xe]||es,uu[xe]===es&&document.head.insertBefore(uu,Qs)});var dl={};Array.from(document.querySelectorAll("style[".concat(_e,"]"))).forEach(function(uu){var Jl=uu.getAttribute(_e);if(dl[Jl]){if(uu[xe]===es){var xu;(xu=uu.parentNode)===null||xu===void 0||xu.removeChild(uu)}}else dl[Jl]=!0})}return new he(es)}var We=B.createContext({hashPriority:"low",cache:Xe(),defaultCache:!0}),dt=function(Is){var Qs=Is.children,dl=_objectWithoutProperties(Is,ae),uu=React.useContext(We),Jl=useMemo(function(){var xu=_objectSpread({},uu);Object.keys(dl).forEach(function(tc){var zc=dl[tc];dl[tc]!==void 0&&(xu[tc]=zc)});var Tu=dl.cache;return xu.cache=xu.cache||Xe(),xu.defaultCache=!Tu&&uu.defaultCache,xu},[uu,dl],function(xu,Tu){return!isEqual(xu[0],Tu[0],!0)||!isEqual(xu[1],Tu[1],!0)});return React.createElement(We.Provider,{value:Jl},Qs)},Me=We,Se=_(71002),ze=_(98924),De=_(44958),ke=_(97685);function $e(es,Is){if(es.length!==Is.length)return!1;for(var Qs=0;Qs1&&arguments[1]!==void 0?arguments[1]:!1,xu={map:this.cache};return Qs.forEach(function(Tu){if(!xu)xu=void 0;else{var tc;xu=(tc=xu)===null||tc===void 0||(tc=tc.map)===null||tc===void 0?void 0:tc.get(Tu)}}),(dl=xu)!==null&&dl!==void 0&&dl.value&&Jl&&(xu.value[1]=this.cacheCallTimes++),(uu=xu)===null||uu===void 0?void 0:uu.value}},{key:"get",value:function(Qs){var dl;return(dl=this.internalGet(Qs,!0))===null||dl===void 0?void 0:dl[0]}},{key:"has",value:function(Qs){return!!this.internalGet(Qs)}},{key:"set",value:function(Qs,dl){var uu=this;if(!this.has(Qs)){if(this.size()+1>es.MAX_CACHE_SIZE+es.MAX_CACHE_OFFSET){var Jl=this.keys.reduce(function(zc,Rc){var Ah=(0,ke.Z)(zc,2),Td=Ah[1];return uu.internalGet(Rc)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Oe+=1}return(0,g.Z)(es,[{key:"getDerivativeToken",value:function(Qs){return this.derivatives.reduce(function(dl,uu){return uu(Qs,dl)},void 0)}}]),es}(),Ft=new Te;function ot(es){var Is=Array.isArray(es)?es:[es];return Ft.has(Is)||Ft.set(Is,new Xt(Is)),Ft.get(Is)}var xt=new WeakMap,ut={};function $t(es,Is){for(var Qs=xt,dl=0;dlQr&&dl.forEach(function(uu){Fn(uu,Is),eo.delete(uu)})}var ji=function(Is,Qs,dl,uu){var Jl=dl.getDerivativeToken(Is),xu=(0,R.Z)((0,R.Z)({},Jl),Qs);return uu&&(xu=uu(xu)),xu};function cr(es,Is){var Qs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dl=(0,B.useContext)(Me),uu=dl.cache.instanceId,Jl=Qs.salt,xu=Jl===void 0?"":Jl,Tu=Qs.override,tc=Tu===void 0?Ii:Tu,zc=Qs.formatToken,Rc=Qs.getComputedToken,Ah=$t(function(){return Object.assign.apply(Object,[{}].concat((0,v.Z)(Is)))},Is),Td=bn(Ah),ld=bn(tc),ph=oi("token",[xu,es.id,Td,ld],function(){var lc=Rc?Rc(Ah,tc,es):ji(Ah,tc,es,zc),xc=Wn(lc,xu);lc._tokenKey=xc,Uo(xc);var Hh="".concat(jr,"-").concat(b(xc));return lc._hashId=Hh,[lc,Hh]},function(lc){ci(lc[0]._tokenKey,uu)});return ph}var Qn=_(87462),Vt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Yt=Vt,En="-ms-",er="-moz-",Tr="-webkit-",Nr="comm",Zn="rule",Ut="decl",$n="@page",xr="@media",Br="@import",_o="@charset",Qt="@viewport",xn="@supports",Sr="@document",qr="@namespace",Mi="@keyframes",zi="@font-face",Yi="@counter-style",Si="@font-feature-values",ni="@layer",qi=Math.abs,Vr=String.fromCharCode,ii=Object.assign;function nr(es,Is){return Wr(es,0)^45?(((Is<<2^Wr(es,0))<<2^Wr(es,1))<<2^Wr(es,2))<<2^Wr(es,3):0}function Mr(es){return es.trim()}function rr(es,Is){return(es=Is.exec(es))?es[0]:es}function to(es,Is,Qs){return es.replace(Is,Qs)}function ts(es,Is){return es.indexOf(Is)}function Wr(es,Is){return es.charCodeAt(Is)|0}function no(es,Is,Qs){return es.slice(Is,Qs)}function Vi(es){return es.length}function Pn(es){return es.length}function mi(es,Is){return Is.push(es),es}function ya(es,Is){return es.map(Is).join("")}function Zs(es,Is){return es.filter(function(Qs){return!rr(Qs,Is)})}function qs(es,Is){for(var Qs="",dl=0;dl0?Wr(Fi,--Ai):0,tl--,Xi===10&&(tl=1,co--),Xi}function Lr(){return Xi=Ai2||ar(Xi)>3?"":" "}function Wt(es){for(;Lr();)switch(ar(Xi)){case 0:append(Gi(Ai-1),es);break;case 2:append(At(Xi),es);break;default:append(from(Xi),es)}return es}function vn(es,Is){for(;--Is&&Lr()&&!(Xi<48||Xi>102||Xi>57&&Xi<65||Xi>70&&Xi<97););return Tn(es,hn()+(Is<6&&Ei()==32&&Lr()==32))}function Er(es){for(;Lr();)switch(Xi){case es:return Ai;case 34:case 39:es!==34&&es!==39&&Er(Xi);break;case 40:es===41&&Er(es);break;case 92:Lr();break}return Ai}function Gr(es,Is){for(;Lr()&&es+Xi!==47+10;)if(es+Xi===42+42&&Ei()===47)break;return"/*"+Tn(Is,Ai-1)+"*"+Vr(es===47?es:Lr())}function Gi(es){for(;!ar(Ei());)Lr();return Tn(es,Ai)}function ko(es){return wt(Bi("",null,null,null,[""],es=ft(es),0,[0],es))}function Bi(es,Is,Qs,dl,uu,Jl,xu,Tu,tc){for(var zc=0,Rc=0,Ah=xu,Td=0,ld=0,ph=0,lc=1,xc=1,Hh=1,xh=0,Cd="",md=uu,Bd=Jl,zd=dl,Dh=Cd;xc;)switch(ph=xh,xh=Lr()){case 40:if(ph!=108&&Wr(Dh,Ah-1)==58){ts(Dh+=to(At(xh),"&","&\f"),"&\f")!=-1&&(Hh=-1);break}case 34:case 39:case 91:Dh+=At(xh);break;case 9:case 10:case 13:case 32:Dh+=Et(ph);break;case 92:Dh+=vn(hn()-1,7);continue;case 47:switch(Ei()){case 42:case 47:mi(ps(Gr(Lr(),hn()),Is,Qs,tc),tc);break;default:Dh+="/"}break;case 123*lc:Tu[zc++]=Vi(Dh)*Hh;case 125*lc:case 59:case 0:switch(xh){case 0:case 125:xc=0;case 59+Rc:Hh==-1&&(Dh=to(Dh,/\f/g,"")),ld>0&&Vi(Dh)-Ah&&mi(ld>32?Js(Dh+";",dl,Qs,Ah-1,tc):Js(to(Dh," ","")+";",dl,Qs,Ah-2,tc),tc);break;case 59:Dh+=";";default:if(mi(zd=ms(Dh,Is,Qs,zc,Rc,uu,Tu,Cd,md=[],Bd=[],Ah,Jl),Jl),xh===123)if(Rc===0)Bi(Dh,Is,zd,zd,md,Jl,Ah,Tu,Bd);else switch(Td===99&&Wr(Dh,3)===110?100:Td){case 100:case 108:case 109:case 115:Bi(es,zd,zd,dl&&mi(ms(es,zd,zd,0,0,uu,Tu,Cd,uu,md=[],Ah,Bd),Bd),uu,Bd,Ah,Tu,dl?md:Bd);break;default:Bi(Dh,zd,zd,zd,[""],Bd,0,Tu,Bd)}}zc=Rc=ld=0,lc=Hh=1,Cd=Dh="",Ah=xu;break;case 58:Ah=1+Vi(Dh),ld=ph;default:if(lc<1){if(xh==123)--lc;else if(xh==125&&lc++==0&&ns()==125)continue}switch(Dh+=Vr(xh),xh*lc){case 38:Hh=Rc>0?1:(Dh+="\f",-1);break;case 44:Tu[zc++]=(Vi(Dh)-1)*Hh,Hh=1;break;case 64:Ei()===45&&(Dh+=At(Lr())),Td=Ei(),Rc=Ah=Vi(Cd=Dh+=Gi(hn())),xh++;break;case 45:ph===45&&Vi(Dh)==2&&(lc=0)}}return Jl}function ms(es,Is,Qs,dl,uu,Jl,xu,Tu,tc,zc,Rc,Ah){for(var Td=uu-1,ld=uu===0?Jl:[""],ph=Pn(ld),lc=0,xc=0,Hh=0;lc0?ld[xh]+" "+Cd:to(Cd,/&\f/g,ld[xh])))&&(tc[Hh++]=md);return No(es,Is,Qs,uu===0?Zn:Tu,tc,zc,Rc,Ah)}function ps(es,Is,Qs,dl){return No(es,Is,Qs,Nr,Vr(Zo()),no(es,2,-2),0,dl)}function Js(es,Is,Qs,dl,uu){return No(es,Is,Qs,Ut,no(es,0,dl),no(es,dl+1,-1),dl,uu)}function Hs(es,Is){var Qs=Is.path,dl=Is.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Qs?"Error in ".concat(Qs,": "):"").concat(es).concat(dl.length?" Selector: ".concat(dl.join(" | ")):""))}var Po=function(Is,Qs,dl){if(Is==="content"){var uu=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Jl=["normal","none","initial","inherit","unset"];(typeof Qs!="string"||Jl.indexOf(Qs)===-1&&!uu.test(Qs)&&(Qs.charAt(0)!==Qs.charAt(Qs.length-1)||Qs.charAt(0)!=='"'&&Qs.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Qs,"\"'`."),dl)}},zs=null,ma=function(Is,Qs,dl){Is==="animation"&&dl.hashId&&Qs!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Qs,"', in which case 'animationName' with Keyframe as value is recommended."),dl)},va=null;function El(es){var Is,Qs=((Is=es.match(/:not\(([^)]*)\)/))===null||Is===void 0?void 0:Is[1])||"",dl=Qs.split(/(\[[^[]*])|(?=[.#])/).filter(function(uu){return uu});return dl.length>1}function Dl(es){return es.parentSelectors.reduce(function(Is,Qs){return Is?Qs.includes("&")?Qs.replace(/&/g,Is):"".concat(Is," ").concat(Qs):Qs},"")}var Ns=function(Is,Qs,dl){var uu=Dl(dl),Jl=uu.match(/:not\([^)]*\)/g)||[];Jl.length>0&&Jl.some(El)&&lintWarning("Concat ':not' selector not support in legacy browsers.",dl)},Ca=null,vl=function(Is,Qs,dl){switch(Is){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Is,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),dl);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Qs=="string"){var uu=Qs.split(" ").map(function(Tu){return Tu.trim()});uu.length===4&&uu[1]!==uu[3]&&lintWarning("You seem to be using '".concat(Is,"' property with different left ").concat(Is," and right ").concat(Is,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),dl)}return;case"clear":case"textAlign":(Qs==="left"||Qs==="right")&&lintWarning("You seem to be using non-logical value '".concat(Qs,"' of ").concat(Is,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),dl);return;case"borderRadius":if(typeof Qs=="string"){var Jl=Qs.split("/").map(function(Tu){return Tu.trim()}),xu=Jl.reduce(function(Tu,tc){if(Tu)return Tu;var zc=tc.split(" ").map(function(Rc){return Rc.trim()});return zc.length>=2&&zc[0]!==zc[1]||zc.length===3&&zc[1]!==zc[2]||zc.length===4&&zc[2]!==zc[3]?!0:Tu},!1);xu&&lintWarning("You seem to be using non-logical value '".concat(Qs,"' of ").concat(Is,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),dl)}return;default:}},ds=null,io=function(Is,Qs,dl){dl.parentSelectors.some(function(uu){var Jl=uu.split(",");return Jl.some(function(xu){return xu.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",dl)},Ko=null,As="data-ant-cssinjs-cache-path",ks="_FILE_STYLE__";function Ga(es){return Object.keys(es).map(function(Is){var Qs=es[Is];return"".concat(Is,":").concat(Qs)}).join(";")}var zu,Ac=!0;function vc(es){var Is=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;zu=es,Ac=Is}function ec(){if(!zu&&(zu={},(0,ze.Z)())){var es=document.createElement("div");es.className=As,es.style.position="fixed",es.style.visibility="hidden",es.style.top="-9999px",document.body.appendChild(es);var Is=getComputedStyle(es).content||"";Is=Is.replace(/^"/,"").replace(/"$/,""),Is.split(";").forEach(function(uu){var Jl=uu.split(":"),xu=(0,ke.Z)(Jl,2),Tu=xu[0],tc=xu[1];zu[Tu]=tc});var Qs=document.querySelector("style[".concat(As,"]"));if(Qs){var dl;Ac=!1,(dl=Qs.parentNode)===null||dl===void 0||dl.removeChild(Qs)}document.body.removeChild(es)}}function qu(es){return ec(),!!zu[es]}function Uu(es){var Is=zu[es],Qs=null;if(Is&&(0,ze.Z)())if(Ac)Qs=ks;else{var dl=document.querySelector("style[".concat(_e,'="').concat(zu[es],'"]'));dl?Qs=dl.innerHTML:delete zu[es]}return[Qs,Is]}var zn=(0,ze.Z)(),ur="_skip_check_",Zr="_multi_value_";function Jr(es){var Is=qs(ko(es),al);return Is.replace(/\{%%%\:[^;];}/g,";")}function _i(es){return(0,Se.Z)(es)==="object"&&es&&(ur in es||Zr in es)}function so(es,Is,Qs){if(!Is)return es;var dl=".".concat(Is),uu=Qs==="low"?":where(".concat(dl,")"):dl,Jl=es.split(",").map(function(xu){var Tu,tc=xu.trim().split(/\s+/),zc=tc[0]||"",Rc=((Tu=zc.match(/^\w+/))===null||Tu===void 0?void 0:Tu[0])||"";return zc="".concat(Rc).concat(uu).concat(zc.slice(Rc.length)),[zc].concat((0,v.Z)(tc.slice(1))).join(" ")});return Jl.join(",")}var Ui=function es(Is){var Qs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},uu=dl.root,Jl=dl.injectHash,xu=dl.parentSelectors,Tu=Qs.hashId,tc=Qs.layer,zc=Qs.path,Rc=Qs.hashPriority,Ah=Qs.transformers,Td=Ah===void 0?[]:Ah,ld=Qs.linters,ph=ld===void 0?[]:ld,lc="",xc={};function Hh(zd){var Dh=zd.getName(Tu);if(!xc[Dh]){var gh=es(zd.style,Qs,{root:!1,parentSelectors:xu}),ap=(0,ke.Z)(gh,1),pd=ap[0];xc[Dh]="@keyframes ".concat(zd.getName(Tu)).concat(pd)}}function xh(zd){var Dh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return zd.forEach(function(gh){Array.isArray(gh)?xh(gh,Dh):gh&&Dh.push(gh)}),Dh}var Cd=xh(Array.isArray(Is)?Is:[Is]);if(Cd.forEach(function(zd){var Dh=typeof zd=="string"&&!uu?{}:zd;if(typeof Dh=="string")lc+="".concat(Dh,` +`);else if(Dh._keyframe)Hh(Dh);else{var gh=Td.reduce(function(ap,pd){var Nu;return(pd==null||(Nu=pd.visit)===null||Nu===void 0?void 0:Nu.call(pd,ap))||ap},Dh);Object.keys(gh).forEach(function(ap){var pd=gh[ap];if((0,Se.Z)(pd)==="object"&&pd&&(ap!=="animationName"||!pd._keyframe)&&!_i(pd)){var Nu=!1,oh=ap.trim(),Ud=!1;(uu||Jl)&&Tu?oh.startsWith("@")?Nu=!0:oh=so(ap,Tu,Rc):uu&&!Tu&&(oh==="&"||oh==="")&&(oh="",Ud=!0);var uf=es(pd,Qs,{root:Ud,injectHash:Nu,parentSelectors:[].concat((0,v.Z)(xu),[oh])}),Of=(0,ke.Z)(uf,2),Qf=Of[0],ep=Of[1];xc=(0,R.Z)((0,R.Z)({},xc),ep),lc+="".concat(oh).concat(Qf)}else{let jd=function(Su,Ih){var gl=Su.replace(/[A-Z]/g,function(xf){return"-".concat(xf.toLowerCase())}),Lu=Ih;!Yt[Su]&&typeof Lu=="number"&&Lu!==0&&(Lu="".concat(Lu,"px")),Su==="animationName"&&Ih!==null&&Ih!==void 0&&Ih._keyframe&&(Hh(Ih),Lu=Ih.getName(Tu)),lc+="".concat(gl,":").concat(Lu,";")};var tp,Ad=(tp=pd==null?void 0:pd.value)!==null&&tp!==void 0?tp:pd;(0,Se.Z)(pd)==="object"&&pd!==null&&pd!==void 0&&pd[Zr]&&Array.isArray(Ad)?Ad.forEach(function(Su){jd(ap,Su)}):jd(ap,Ad)}})}}),!uu)lc="{".concat(lc,"}");else if(tc&&Ti()){var md=tc.split(","),Bd=md[md.length-1].trim();lc="@layer ".concat(Bd," {").concat(lc,"}"),md.length>1&&(lc="@layer ".concat(tc,"{%%%:%}").concat(lc))}return[lc,xc]};function hs(es,Is){return b("".concat(es.join("%")).concat(Is))}function ra(){return null}function Ka(es,Is){var Qs=es.token,dl=es.path,uu=es.hashId,Jl=es.layer,xu=es.nonce,Tu=es.clientOnly,tc=es.order,zc=tc===void 0?0:tc,Rc=B.useContext(Me),Ah=Rc.autoClear,Td=Rc.mock,ld=Rc.defaultCache,ph=Rc.hashPriority,lc=Rc.container,xc=Rc.ssrInline,Hh=Rc.transformers,xh=Rc.linters,Cd=Rc.cache,md=Qs._tokenKey,Bd=[md].concat((0,v.Z)(dl)),zd=zn,Dh=oi("style",Bd,function(){var oh=Bd.join("|");if(qu(oh)){var Ud=Uu(oh),uf=(0,ke.Z)(Ud,2),Of=uf[0],Qf=uf[1];if(Of)return[Of,md,Qf,{},Tu,zc]}var ep=Is(),tp=Ui(ep,{hashId:uu,hashPriority:ph,layer:Jl,path:dl.join("-"),transformers:Hh,linters:xh}),Ad=(0,ke.Z)(tp,2),jd=Ad[0],Su=Ad[1],Ih=Jr(jd),gl=hs(Bd,Ih);return[Ih,md,gl,Su,Tu,zc]},function(oh,Ud){var uf=(0,ke.Z)(oh,3),Of=uf[2];(Ud||Ah)&&zn&&(0,De.jL)(Of,{mark:_e})},function(oh){var Ud=(0,ke.Z)(oh,4),uf=Ud[0],Of=Ud[1],Qf=Ud[2],ep=Ud[3];if(zd&&uf!==ks){var tp={mark:_e,prepend:"queue",attachTo:lc,priority:zc},Ad=typeof xu=="function"?xu():xu;Ad&&(tp.csp={nonce:Ad});var jd=(0,De.hq)(uf,Qf,tp);jd[xe]=Cd.instanceId,jd.setAttribute(fe,md),Object.keys(ep).forEach(function(Su){(0,De.hq)(Jr(ep[Su]),"_effect-".concat(Su),tp)})}}),gh=(0,ke.Z)(Dh,3),ap=gh[0],pd=gh[1],Nu=gh[2];return function(oh){var Ud;if(!xc||zd||!ld)Ud=B.createElement(ra,null);else{var uf;Ud=B.createElement("style",(0,Qn.Z)({},(uf={},(0,T.Z)(uf,fe,pd),(0,T.Z)(uf,_e,Nu),uf),{dangerouslySetInnerHTML:{__html:ap}}))}return B.createElement(B.Fragment,null,Ud,oh)}}function ul(es){var Is=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qs="style%",dl=Array.from(es.cache.keys()).filter(function(zc){return zc.startsWith(Qs)}),uu={},Jl={},xu="";function Tu(zc,Rc,Ah){var Td,ld=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ph=_objectSpread(_objectSpread({},ld),{},(Td={},_defineProperty(Td,ATTR_TOKEN,Rc),_defineProperty(Td,ATTR_MARK,Ah),Td)),lc=Object.keys(ph).map(function(xc){var Hh=ph[xc];return Hh?"".concat(xc,'="').concat(Hh,'"'):null}).filter(function(xc){return xc}).join(" ");return Is?zc:"")}var tc=dl.map(function(zc){var Rc=zc.slice(Qs.length).replace(/%/g,"|"),Ah=_slicedToArray(es.cache.get(zc)[1],6),Td=Ah[0],ld=Ah[1],ph=Ah[2],lc=Ah[3],xc=Ah[4],Hh=Ah[5];if(xc)return null;var xh={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Hh)},Cd=Tu(Td,ld,ph,xh);Jl[Rc]=ph,lc&&Object.keys(lc).forEach(function(Bd){uu[Bd]||(uu[Bd]=!0,Cd+=Tu(Jr(lc[Bd]),ld,"_effect-".concat(Bd),xh))});var md=[Hh,Cd];return md}).filter(function(zc){return zc});return tc.sort(function(zc,Rc){return zc[0]-Rc[0]}).forEach(function(zc){var Rc=_slicedToArray(zc,2),Ah=Rc[1];xu+=Ah}),xu+=Tu(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(Jl),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),xu}var hl=function(){function es(Is,Qs){(0,S.Z)(this,es),(0,T.Z)(this,"name",void 0),(0,T.Z)(this,"style",void 0),(0,T.Z)(this,"_keyframe",!0),this.name=Is,this.style=Qs}return(0,g.Z)(es,[{key:"getName",value:function(){var Qs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Qs?"".concat(Qs,"-").concat(this.name):this.name}}]),es}(),kl=hl;function Va(es){if(typeof es=="number")return[[es],!1];var Is=String(es).trim(),Qs=Is.match(/(.*)(!important)/),dl=(Qs?Qs[1]:Is).trim().split(/\s+/),uu="",Jl=0;return[dl.reduce(function(xu,Tu){return Tu.includes("(")?(uu+=Tu,Jl+=Tu.split("(").length-1):Tu.includes(")")?(uu+=Tu,Jl-=Tu.split(")").length-1,Jl===0&&(xu.push(uu),uu="")):Jl>0?uu+=Tu:xu.push(Tu),xu},[]),!!Qs]}function Xu(es){return es.notSplit=!0,es}var Na={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Xu(["borderTop","borderBottom"]),borderBlockStart:Xu(["borderTop"]),borderBlockEnd:Xu(["borderBottom"]),borderInline:Xu(["borderLeft","borderRight"]),borderInlineStart:Xu(["borderLeft"]),borderInlineEnd:Xu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Aa(es,Is){var Qs=es;return Is&&(Qs="".concat(Qs," !important")),{_skip_check_:!0,value:Qs}}var ll={visit:function(Is){var Qs={};return Object.keys(Is).forEach(function(dl){var uu=Is[dl],Jl=Na[dl];if(Jl&&(typeof uu=="number"||typeof uu=="string")){var xu=Va(uu),Tu=(0,ke.Z)(xu,2),tc=Tu[0],zc=Tu[1];Jl.length&&Jl.notSplit?Jl.forEach(function(Rc){Qs[Rc]=Aa(uu,zc)}):Jl.length===1?Qs[Jl[0]]=Aa(uu,zc):Jl.length===2?Jl.forEach(function(Rc,Ah){var Td;Qs[Rc]=Aa((Td=tc[Ah])!==null&&Td!==void 0?Td:tc[0],zc)}):Jl.length===4?Jl.forEach(function(Rc,Ah){var Td,ld;Qs[Rc]=Aa((Td=(ld=tc[Ah])!==null&&ld!==void 0?ld:tc[Ah-2])!==null&&Td!==void 0?Td:tc[0],zc)}):Qs[dl]=uu}else Qs[dl]=uu}),Qs}},Pu=null,Gl=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function fu(es,Is){var Qs=Math.pow(10,Is+1),dl=Math.floor(es*Qs);return Math.round(dl/10)*10/Qs}var Bl=function(){var Is=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Qs=Is.rootValue,dl=Qs===void 0?16:Qs,uu=Is.precision,Jl=uu===void 0?5:uu,xu=Is.mediaQuery,Tu=xu===void 0?!1:xu,tc=function(Ah,Td){if(!Td)return Ah;var ld=parseFloat(Td);if(ld<=1)return Ah;var ph=fu(ld/dl,Jl);return"".concat(ph,"rem")},zc=function(Ah){var Td=_objectSpread({},Ah);return Object.entries(Ah).forEach(function(ld){var ph=_slicedToArray(ld,2),lc=ph[0],xc=ph[1];if(typeof xc=="string"&&xc.includes("px")){var Hh=xc.replace(Gl,tc);Td[lc]=Hh}!unitless[lc]&&typeof xc=="number"&&xc!==0&&(Td[lc]="".concat(xc,"px").replace(Gl,tc));var xh=lc.trim();if(xh.startsWith("@")&&xh.includes("px")&&Tu){var Cd=lc.replace(Gl,tc);Td[Cd]=Td[lc],delete Td[lc]}}),Td};return{visit:zc}},lu=null,Ln={supportModernCSS:function(){return Ho()&&Pe()}}},89503:function(gt,Y){"use strict";var _={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};Y.Z=_},47046:function(gt,Y){"use strict";var _={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"};Y.Z=_},98851:function(gt,Y){"use strict";var _={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"};Y.Z=_},42110:function(gt,Y){"use strict";var _={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};Y.Z=_},43114:function(gt,Y){"use strict";var _={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"};Y.Z=_},36688:function(gt,Y){"use strict";var _={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"};Y.Z=_},89099:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Dr}});var v=_(1413),R=_(97685),w=_(4942),b=_(91),B=_(67294),V=_(94184),O=_.n(V),L=(0,B.createContext)({}),S=L,g=_(71002),T=_(86500),k=_(1350),K=2,he=.16,ae=.05,fe=.05,_e=.15,be=5,xe=4,Xe=[{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 We(oi){var Ii=oi.r,jr=oi.g,eo=oi.b,Uo=(0,T.py)(Ii,jr,eo);return{h:Uo.h*360,s:Uo.s,v:Uo.v}}function dt(oi){var Ii=oi.r,jr=oi.g,eo=oi.b;return"#".concat((0,T.vq)(Ii,jr,eo,!1))}function Me(oi,Ii,jr){var eo=jr/100,Uo={r:(Ii.r-oi.r)*eo+oi.r,g:(Ii.g-oi.g)*eo+oi.g,b:(Ii.b-oi.b)*eo+oi.b};return Uo}function Se(oi,Ii,jr){var eo;return Math.round(oi.h)>=60&&Math.round(oi.h)<=240?eo=jr?Math.round(oi.h)-K*Ii:Math.round(oi.h)+K*Ii:eo=jr?Math.round(oi.h)+K*Ii:Math.round(oi.h)-K*Ii,eo<0?eo+=360:eo>=360&&(eo-=360),eo}function ze(oi,Ii,jr){if(oi.h===0&&oi.s===0)return oi.s;var eo;return jr?eo=oi.s-he*Ii:Ii===xe?eo=oi.s+he:eo=oi.s+ae*Ii,eo>1&&(eo=1),jr&&Ii===be&&eo>.1&&(eo=.1),eo<.06&&(eo=.06),Number(eo.toFixed(2))}function De(oi,Ii,jr){var eo;return jr?eo=oi.v+fe*Ii:eo=oi.v-_e*Ii,eo>1&&(eo=1),Number(eo.toFixed(2))}function ke(oi){for(var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jr=[],eo=(0,k.uA)(oi),Uo=be;Uo>0;Uo-=1){var Fn=We(eo),Qr=dt((0,k.uA)({h:Se(Fn,Uo,!0),s:ze(Fn,Uo,!0),v:De(Fn,Uo,!0)}));jr.push(Qr)}jr.push(dt(eo));for(var ci=1;ci<=xe;ci+=1){var ji=We(eo),cr=dt((0,k.uA)({h:Se(ji,ci),s:ze(ji,ci),v:De(ji,ci)}));jr.push(cr)}return Ii.theme==="dark"?Xe.map(function(Qn){var Vt=Qn.index,Yt=Qn.opacity,En=dt(Me((0,k.uA)(Ii.backgroundColor||"#141414"),(0,k.uA)(jr[Vt]),Yt*100));return En}):jr}var $e={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"},Te={},tt={};Object.keys($e).forEach(function(oi){Te[oi]=ke($e[oi]),Te[oi].primary=Te[oi][5],tt[oi]=ke($e[oi],{theme:"dark",backgroundColor:"#141414"}),tt[oi].primary=tt[oi][5]});var Oe=Te.red,Xt=Te.volcano,Ft=Te.gold,ot=Te.orange,xt=Te.yellow,ut=Te.lime,$t=Te.green,_t=Te.cyan,bn=Te.blue,Wn=Te.geekblue,$r=Te.purple,wi=Te.magenta,oo=Te.grey,Mo=_(80334),Ti=_(44958),Hr=_(68929),Ho=_.n(Hr);function Ss(oi,Ii){(0,Mo.ZP)(oi,"[@ant-design/icons] ".concat(Ii))}function Pe(oi){return(0,g.Z)(oi)==="object"&&typeof oi.name=="string"&&typeof oi.theme=="string"&&((0,g.Z)(oi.icon)==="object"||typeof oi.icon=="function")}function qo(){var oi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(oi).reduce(function(Ii,jr){var eo=oi[jr];switch(jr){case"class":Ii.className=eo,delete Ii.class;break;default:delete Ii[jr],Ii[Ho()(jr)]=eo}return Ii},{})}function Ki(oi,Ii,jr){return jr?B.createElement(oi.tag,(0,v.Z)((0,v.Z)({key:Ii},qo(oi.attrs)),jr),(oi.children||[]).map(function(eo,Uo){return Ki(eo,"".concat(Ii,"-").concat(oi.tag,"-").concat(Uo))})):B.createElement(oi.tag,(0,v.Z)({key:Ii},qo(oi.attrs)),(oi.children||[]).map(function(eo,Uo){return Ki(eo,"".concat(Ii,"-").concat(oi.tag,"-").concat(Uo))}))}function Do(oi){return ke(oi)[0]}function ai(oi){return oi?Array.isArray(oi)?oi:[oi]:[]}var $o={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Mn=` .anticon { display: inline-block; color: inherit; @@ -53,42 +53,45 @@ transform: rotate(360deg); } } -`,Ve=function(){var ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn,si=(0,k.useContext)(C),uo=si.csp;(0,k.useEffect)(function(){(0,To.hq)(ri,"@ant-design-icons",{prepend:!0,csp:uo})},[])},yt=["icon","className","onClick","style","primaryColor","secondaryColor"],Ct={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Wt(Kr){var ri=Kr.primaryColor,si=Kr.secondaryColor;Ct.primaryColor=ri,Ct.secondaryColor=si||go(ri),Ct.calculated=!!si}function sn(){return(0,y.Z)({},Ct)}var Mt=function(ri){var si=ri.icon,uo=ri.className,Qo=ri.onClick,_n=ri.style,Vr=ri.primaryColor,qr=ri.secondaryColor,Ui=(0,z.Z)(ri,yt),xo=Ct;if(Vr&&(xo={primaryColor:Vr,secondaryColor:qr||go(Vr)}),Ve(),hs(ve(si),"icon should be icon definiton, but got ".concat(si)),!ve(si))return null;var Us=si;return Us&&typeof Us.icon=="function"&&(Us=(0,y.Z)((0,y.Z)({},Us),{},{icon:Us.icon(xo.primaryColor,xo.secondaryColor)})),ho(Us.icon,"svg-".concat(Us.name),(0,y.Z)({className:uo,onClick:Qo,style:_n,"data-icon":Us.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ui))};Mt.displayName="IconReact",Mt.getTwoToneColors=sn,Mt.setTwoToneColors=Wt;var Tt=Mt;function xt(Kr){var ri=ji(Kr),si=(0,A.Z)(ri,2),uo=si[0],Qo=si[1];return Tt.setTwoToneColors({primaryColor:uo,secondaryColor:Qo})}function Ht(){var Kr=Tt.getTwoToneColors();return Kr.calculated?[Kr.primaryColor,Kr.secondaryColor]:Kr.primaryColor}var Vn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xt("#1890ff");var en=k.forwardRef(function(Kr,ri){var si,uo=Kr.className,Qo=Kr.icon,_n=Kr.spin,Vr=Kr.rotate,qr=Kr.tabIndex,Ui=Kr.onClick,xo=Kr.twoToneColor,Us=(0,z.Z)(Kr,Vn),zn=k.useContext(C),Kn=zn.prefixCls,Or=Kn===void 0?"anticon":Kn,mi=zn.rootClassName,Er=w()(mi,Or,(si={},(0,b.Z)(si,"".concat(Or,"-").concat(Qo.name),!!Qo.name),(0,b.Z)(si,"".concat(Or,"-spin"),!!_n||Qo.name==="loading"),si),uo),ti=qr;ti===void 0&&Ui&&(ti=-1);var di=Vr?{msTransform:"rotate(".concat(Vr,"deg)"),transform:"rotate(".concat(Vr,"deg)")}:void 0,rn=ji(xo),Qn=(0,A.Z)(rn,2),Xr=Qn[0],ao=Qn[1];return k.createElement("span",(0,y.Z)((0,y.Z)({role:"img","aria-label":Qo.name},Us),{},{ref:ri,tabIndex:ti,onClick:Ui,className:Er}),k.createElement(Tt,{icon:Qo,primaryColor:Xr,secondaryColor:ao,style:di}))});en.displayName="AntdIcon",en.getTwoToneColor=Ht,en.setTwoToneColor=xt;var fr=en},14313:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CaretRightOutlined";var w=A.forwardRef(N)},28508:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(89503),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="CloseOutlined",V.Z=A.forwardRef(k)},85060:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudDownloadOutlined";var w=A.forwardRef(N)},16596:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudUploadOutlined";var w=A.forwardRef(N)},82061:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(47046),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="DeleteOutlined",V.Z=A.forwardRef(k)},78588:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={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:"dingtalk",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="DingtalkOutlined";var w=A.forwardRef(N)},37724:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldBinaryOutlined";var w=A.forwardRef(N)},14468:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldStringOutlined";var w=A.forwardRef(N)},15360:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FileTextOutlined";var w=A.forwardRef(N)},44230:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(98851),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="FilterFilled",V.Z=A.forwardRef(k)},26024:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FilterOutlined";var w=A.forwardRef(N)},75932:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FlagOutlined";var w=A.forwardRef(N)},1210:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={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"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GithubOutlined";var w=A.forwardRef(N)},10524:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GlobalOutlined";var w=A.forwardRef(N)},51042:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(42110),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="PlusOutlined",V.Z=A.forwardRef(k)},30723:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(43114),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="PlusSquareOutlined",V.Z=A.forwardRef(k)},63783:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(36688),z=m(89099),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="QuestionCircleOutlined",V.Z=A.forwardRef(k)},60219:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SaveOutlined";var w=A.forwardRef(N)},42952:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SettingOutlined";var w=A.forwardRef(N)},15611:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{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 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},z=b,k=m(89099),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="TableOutlined";var w=A.forwardRef(N)},4157:function(){window._iconfont_svg_string_3580659='',function(nt){try{let C=function(){k||(k=!0,b())},f=function(){try{z.documentElement.doScroll("left")}catch(S){return void setTimeout(f,50)}C()};var w=C,I=f,m=(m=document.getElementsByTagName("script"))[m.length-1],V=m.getAttribute("data-injectcss"),m=m.getAttribute("data-disable-injectsvg");if(!m){var y,A,b,z,k,N=function(P,W){W.parentNode.insertBefore(P,W)};if(V&&!nt.__iconfont__svg__cssinject__){nt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(S){console&&console.log(S)}}y=function(){var P,W=document.createElement("div");W.innerHTML=nt._iconfont_svg_string_3580659,(W=W.getElementsByTagName("svg")[0])&&(W.setAttribute("aria-hidden","true"),W.style.position="absolute",W.style.width=0,W.style.height=0,W.style.overflow="hidden",W=W,(P=document.body).firstChild?N(W,P.firstChild):P.appendChild(W))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(y,0):(A=function(){document.removeEventListener("DOMContentLoaded",A,!1),y()},document.addEventListener("DOMContentLoaded",A,!1)):document.attachEvent&&(b=y,z=nt.document,k=!1,f(),z.onreadystatechange=function(){z.readyState=="complete"&&(z.onreadystatechange=null,C())})}}catch(C){}}(window)},67135:function(nt,V,m){(function(y,A){A(V,m(61329))})(this,function(y,A){"use strict";var b={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},z={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},k="top",N="bottom",w="right",I="left",C="auto",f=[k,N,w,I],S="start",P="end",W="clippingParents",te="viewport",q="popper",ie="reference",he=f.reduce(function(Se,$e){return Se.concat([$e+"-"+S,$e+"-"+P])},[]),de=[].concat(f,[C]).reduce(function(Se,$e){return Se.concat([$e,$e+"-"+S,$e+"-"+P])},[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ke(Se){return Se?(Se.nodeName||"").toLowerCase():null}function Ie(Se){if(Se==null)return window;if(""+Se!="[object Window]"){var $e=Se.ownerDocument;return $e&&$e.defaultView||window}return Se}function Be(Se){return Se instanceof Ie(Se).Element||Se instanceof Element}function be(Se){return Se instanceof Ie(Se).HTMLElement||Se instanceof HTMLElement}function me(Se){return typeof ShadowRoot!="undefined"&&(Se instanceof Ie(Se).ShadowRoot||Se instanceof ShadowRoot)}var ye={name:"applyStyles",enabled:!0,phase:"write",fn:function(Se){var $e=Se.state;Object.keys($e.elements).forEach(function(Je){var Re=$e.styles[Je]||{},ot=$e.attributes[Je]||{},Lt=$e.elements[Je];be(Lt)&&ke(Lt)&&(Object.assign(Lt.style,Re),Object.keys(ot).forEach(function(on){var Fn=ot[on];Fn===!1?Lt.removeAttribute(on):Lt.setAttribute(on,Fn===!0?"":Fn)}))})},effect:function(Se){var $e=Se.state,Je={popper:{position:$e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign($e.elements.popper.style,Je.popper),$e.styles=Je,$e.elements.arrow&&Object.assign($e.elements.arrow.style,Je.arrow),function(){Object.keys($e.elements).forEach(function(Re){var ot=$e.elements[Re],Lt=$e.attributes[Re]||{},on=Object.keys($e.styles.hasOwnProperty(Re)?$e.styles[Re]:Je[Re]).reduce(function(Fn,Xn){return Fn[Xn]="",Fn},{});be(ot)&&ke(ot)&&(Object.assign(ot.style,on),Object.keys(Lt).forEach(function(Fn){ot.removeAttribute(Fn)}))})}},requires:["computeStyles"]};function _e(Se){return Se.split("-")[0]}var Ce=Math.max,De=Math.min,ge=Math.round;function je(){var Se=navigator.userAgentData;return Se!=null&&Se.brands&&Array.isArray(Se.brands)?Se.brands.map(function($e){return $e.brand+"/"+$e.version}).join(" "):navigator.userAgent}function we(){return!/^((?!chrome|android).)*safari/i.test(je())}function Pt(Se,$e,Je){$e===void 0&&($e=!1),Je===void 0&&(Je=!1);var Re=Se.getBoundingClientRect(),ot=1,Lt=1;$e&&be(Se)&&(ot=Se.offsetWidth>0&&ge(Re.width)/Se.offsetWidth||1,Lt=Se.offsetHeight>0&&ge(Re.height)/Se.offsetHeight||1);var on=(Be(Se)?Ie(Se):window).visualViewport,Fn=!we()&&Je,Xn=(Re.left+(Fn&&on?on.offsetLeft:0))/ot,zi=(Re.top+(Fn&&on?on.offsetTop:0))/Lt,ns=Re.width/ot,Fo=Re.height/Lt;return{width:ns,height:Fo,top:zi,right:Xn+ns,bottom:zi+Fo,left:Xn,x:Xn,y:zi}}function dt(Se){var $e=Pt(Se),Je=Se.offsetWidth,Re=Se.offsetHeight;return Math.abs($e.width-Je)>1||(Je=$e.width),Math.abs($e.height-Re)>1||(Re=$e.height),{x:Se.offsetLeft,y:Se.offsetTop,width:Je,height:Re}}function He(Se,$e){var Je=$e.getRootNode&&$e.getRootNode();if(Se.contains($e))return!0;if(Je&&me(Je)){var Re=$e;do{if(Re&&Se.isSameNode(Re))return!0;Re=Re.parentNode||Re.host}while(Re)}return!1}function bt(Se){return Ie(Se).getComputedStyle(Se)}function ft(Se){return["table","td","th"].indexOf(ke(Se))>=0}function $t(Se){return((Be(Se)?Se.ownerDocument:Se.document)||window.document).documentElement}function vt(Se){return ke(Se)==="html"?Se:Se.assignedSlot||Se.parentNode||(me(Se)?Se.host:null)||$t(Se)}function yn(Se){return be(Se)&&bt(Se).position!=="fixed"?Se.offsetParent:null}function Bn(Se){for(var $e=Ie(Se),Je=yn(Se);Je&&ft(Je)&&bt(Je).position==="static";)Je=yn(Je);return Je&&(ke(Je)==="html"||ke(Je)==="body"&&bt(Je).position==="static")?$e:Je||function(Re){var ot=/firefox/i.test(je());if(/Trident/i.test(je())&&be(Re)&&bt(Re).position==="fixed")return null;var Lt=vt(Re);for(me(Lt)&&(Lt=Lt.host);be(Lt)&&0>["html","body"].indexOf(ke(Lt));){var on=bt(Lt);if(on.transform!=="none"||on.perspective!=="none"||on.contain==="paint"||["transform","perspective"].indexOf(on.willChange)!==-1||ot&&on.willChange==="filter"||ot&&on.filter&&on.filter!=="none")return Lt;Lt=Lt.parentNode}return null}(Se)||$e}function Lr(Se){return 0>["top","bottom"].indexOf(Se)?"y":"x"}function ii(Se,$e,Je){return Ce(Se,De($e,Je))}function gi(Se){return Object.assign({},{top:0,right:0,bottom:0,left:0},Se)}function no(Se,$e){return $e.reduce(function(Je,Re){return Je[Re]=Se,Je},{})}var To={name:"arrow",enabled:!0,phase:"main",fn:function(Se){var $e,Je=Se.state,Re=Se.name,ot=Se.options,Lt=Je.elements.arrow,on=Je.modifiersData.popperOffsets,Fn=_e(Je.placement),Xn=Lr(Fn),zi=[I,w].indexOf(Fn)>=0?"height":"width";if(Lt&&on){var ns=function(pu,oc){return gi(typeof(pu=typeof pu=="function"?pu(Object.assign({},oc.rects,{placement:oc.placement})):pu)!="number"?pu:no(pu,f))}(ot.padding,Je),Fo=dt(Lt),Ho=Xn==="y"?k:I,$u=Xn==="y"?N:w,gu=Je.rects.reference[zi]+Je.rects.reference[Xn]-on[Xn]-Je.rects.popper[zi],Kl=on[Xn]-Je.rects.reference[Xn],Sl=Bn(Lt),ql=Sl?Xn==="y"?Sl.clientHeight||0:Sl.clientWidth||0:0,ol=ql/2-Fo[zi]/2+(gu/2-Kl/2),Ga=ii(ns[Ho],ol,ql-Fo[zi]-ns[$u]);Je.modifiersData[Re]=(($e={})[Xn]=Ga,$e.centerOffset=Ga-ol,$e)}},effect:function(Se){var $e=Se.state,Je=Se.options.element,Re=Je===void 0?"[data-popper-arrow]":Je;Re!=null&&(typeof Re!="string"||(Re=$e.elements.popper.querySelector(Re)))&&He($e.elements.popper,Re)&&($e.elements.arrow=Re)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _r(Se){return Se.split("-")[1]}var Bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hs(Se){var $e,Je=Se.popper,Re=Se.popperRect,ot=Se.placement,Lt=Se.variation,on=Se.offsets,Fn=Se.position,Xn=Se.gpuAcceleration,zi=Se.adaptive,ns=Se.roundOffsets,Fo=Se.isFixed,Ho=on.x,$u=Ho===void 0?0:Ho,gu=on.y,Kl=gu===void 0?0:gu,Sl=typeof ns=="function"?ns({x:$u,y:Kl}):{x:$u,y:Kl};$u=Sl.x,Kl=Sl.y;var ql=on.hasOwnProperty("x"),ol=on.hasOwnProperty("y"),Ga=I,pu=k,oc=window;if(zi){var cd=Bn(Je),Oo="clientHeight",Jh="clientWidth";cd===Ie(Je)&&bt(cd=$t(Je)).position!=="static"&&Fn==="absolute"&&(Oo="scrollHeight",Jh="scrollWidth"),(ot===k||(ot===I||ot===w)&&Lt===P)&&(pu=N,Kl-=(Fo&&cd===oc&&oc.visualViewport?oc.visualViewport.height:cd[Oo])-Re.height,Kl*=Xn?1:-1),(ot===I||(ot===k||ot===N)&&Lt===P)&&(Ga=w,$u-=(Fo&&cd===oc&&oc.visualViewport?oc.visualViewport.width:cd[Jh])-Re.width,$u*=Xn?1:-1)}var xc,fh=Object.assign({position:Fn},zi&&Bo),Gd=ns===!0?function(_,R){var Z=_.y,ue=R.devicePixelRatio||1;return{x:ge(_.x*ue)/ue||0,y:ge(Z*ue)/ue||0}}({x:$u,y:Kl},Ie(Je)):{x:$u,y:Kl};return $u=Gd.x,Kl=Gd.y,Object.assign({},fh,Xn?((xc={})[pu]=ol?"0":"",xc[Ga]=ql?"0":"",xc.transform=(oc.devicePixelRatio||1)>1?"translate3d("+$u+"px, "+Kl+"px, 0)":"translate("+$u+"px, "+Kl+"px)",xc):(($e={})[pu]=ol?Kl+"px":"",$e[Ga]=ql?$u+"px":"",$e.transform="",$e))}var ve={passive:!0},So={left:"right",right:"left",bottom:"top",top:"bottom"};function ho(Se){return Se.replace(/left|right|bottom|top/g,function($e){return So[$e]})}var go={start:"end",end:"start"};function ji(Se){return Se.replace(/start|end/g,function($e){return go[$e]})}function No(Se){var $e=Ie(Se);return{scrollLeft:$e.pageXOffset,scrollTop:$e.pageYOffset}}function dn(Se){return Pt($t(Se)).left+No(Se).scrollLeft}function Ve(Se){var $e=bt(Se);return/auto|scroll|overlay|hidden/.test($e.overflow+$e.overflowY+$e.overflowX)}function yt(Se){return 0>["html","body","#document"].indexOf(ke(Se))?be(Se)&&Ve(Se)?Se:yt(vt(Se)):Se.ownerDocument.body}function Ct(Se,$e){var Je;$e===void 0&&($e=[]);var Re=yt(Se),ot=Re===((Je=Se.ownerDocument)==null?void 0:Je.body),Lt=Ie(Re),on=ot?[Lt].concat(Lt.visualViewport||[],Ve(Re)?Re:[]):Re,Fn=$e.concat(on);return ot?Fn:Fn.concat(Ct(vt(on)))}function Wt(Se){return Object.assign({},Se,{left:Se.x,top:Se.y,right:Se.x+Se.width,bottom:Se.y+Se.height})}function sn(Se,$e,Je){return $e===te?Wt(function(Re,ot){var Lt=Ie(Re),on=$t(Re),Fn=Lt.visualViewport,Xn=on.clientWidth,zi=on.clientHeight,ns=0,Fo=0;if(Fn){Xn=Fn.width,zi=Fn.height;var Ho=we();(Ho||!Ho&&ot==="fixed")&&(ns=Fn.offsetLeft,Fo=Fn.offsetTop)}return{width:Xn,height:zi,x:ns+dn(Re),y:Fo}}(Se,Je)):Be($e)?function(Re,ot){var Lt=Pt(Re,!1,ot==="fixed");return Lt.top=Lt.top+Re.clientTop,Lt.left=Lt.left+Re.clientLeft,Lt.bottom=Lt.top+Re.clientHeight,Lt.right=Lt.left+Re.clientWidth,Lt.width=Re.clientWidth,Lt.height=Re.clientHeight,Lt.x=Lt.left,Lt.y=Lt.top,Lt}($e,Je):Wt(function(Re){var ot,Lt=$t(Re),on=No(Re),Fn=(ot=Re.ownerDocument)==null?void 0:ot.body,Xn=Ce(Lt.scrollWidth,Lt.clientWidth,Fn?Fn.scrollWidth:0,Fn?Fn.clientWidth:0),zi=Ce(Lt.scrollHeight,Lt.clientHeight,Fn?Fn.scrollHeight:0,Fn?Fn.clientHeight:0),ns=-on.scrollLeft+dn(Re),Fo=-on.scrollTop;return bt(Fn||Lt).direction==="rtl"&&(ns+=Ce(Lt.clientWidth,Fn?Fn.clientWidth:0)-Xn),{width:Xn,height:zi,x:ns,y:Fo}}($t(Se)))}function Mt(Se,$e,Je,Re){var ot=$e==="clippingParents"?function(Fn){var Xn=Ct(vt(Fn)),zi=["absolute","fixed"].indexOf(bt(Fn).position)>=0&&be(Fn)?Bn(Fn):Fn;return Be(zi)?Xn.filter(function(ns){return Be(ns)&&He(ns,zi)&&ke(ns)!=="body"}):[]}(Se):[].concat($e),Lt=[].concat(ot,[Je]),on=Lt.reduce(function(Fn,Xn){var zi=sn(Se,Xn,Re);return Fn.top=Ce(zi.top,Fn.top),Fn.right=De(zi.right,Fn.right),Fn.bottom=De(zi.bottom,Fn.bottom),Fn.left=Ce(zi.left,Fn.left),Fn},sn(Se,Lt[0],Re));return on.width=on.right-on.left,on.height=on.bottom-on.top,on.x=on.left,on.y=on.top,on}function Tt(Se){var $e,Je=Se.reference,Re=Se.element,ot=Se.placement,Lt=ot?_e(ot):null,on=ot?_r(ot):null,Fn=Je.x+Je.width/2-Re.width/2,Xn=Je.y+Je.height/2-Re.height/2;switch(Lt){case k:$e={x:Fn,y:Je.y-Re.height};break;case N:$e={x:Fn,y:Je.y+Je.height};break;case w:$e={x:Je.x+Je.width,y:Xn};break;case I:$e={x:Je.x-Re.width,y:Xn};break;default:$e={x:Je.x,y:Je.y}}var zi=Lt?Lr(Lt):null;if(zi!=null){var ns=zi==="y"?"height":"width";switch(on){case S:$e[zi]=$e[zi]-(Je[ns]/2-Re[ns]/2);break;case P:$e[zi]=$e[zi]+(Je[ns]/2-Re[ns]/2)}}return $e}function xt(Se,$e){$e===void 0&&($e={});var Je=$e.placement,Re=Je===void 0?Se.placement:Je,ot=$e.strategy,Lt=ot===void 0?Se.strategy:ot,on=$e.boundary,Fn=on===void 0?W:on,Xn=$e.rootBoundary,zi=Xn===void 0?te:Xn,ns=$e.elementContext,Fo=ns===void 0?q:ns,Ho=$e.altBoundary,$u=Ho!==void 0&&Ho,gu=$e.padding,Kl=gu===void 0?0:gu,Sl=gi(typeof Kl!="number"?Kl:no(Kl,f)),ql=Se.rects.popper,ol=Se.elements[$u?Fo===q?ie:q:Fo],Ga=Mt(Be(ol)?ol:ol.contextElement||$t(Se.elements.popper),Fn,zi,Lt),pu=Pt(Se.elements.reference),oc=Tt({reference:pu,element:ql,strategy:"absolute",placement:Re}),cd=Wt(Object.assign({},ql,oc)),Oo=Fo===q?cd:pu,Jh={top:Ga.top-Oo.top+Sl.top,bottom:Oo.bottom-Ga.bottom+Sl.bottom,left:Ga.left-Oo.left+Sl.left,right:Oo.right-Ga.right+Sl.right},xc=Se.modifiersData.offset;if(Fo===q&&xc){var fh=xc[Re];Object.keys(Jh).forEach(function(Gd){var _=0>[w,N].indexOf(Gd)?-1:1;Jh[Gd]+=fh[0>[k,N].indexOf(Gd)?"x":"y"]*_})}return Jh}function Ht(Se,$e){$e===void 0&&($e={});var Je=$e.boundary,Re=$e.rootBoundary,ot=$e.padding,Lt=$e.flipVariations,on=$e.allowedAutoPlacements,Fn=on===void 0?de:on,Xn=_r($e.placement),zi=Xn?Lt?he:he.filter(function(Ho){return _r(Ho)===Xn}):f,ns=zi.filter(function(Ho){return Fn.indexOf(Ho)>=0});ns.length===0&&(ns=zi);var Fo=ns.reduce(function(Ho,$u){return Ho[$u]=xt(Se,{placement:$u,boundary:Je,rootBoundary:Re,padding:ot})[_e($u)],Ho},{});return Object.keys(Fo).sort(function(Ho,$u){return Fo[Ho]-Fo[$u]})}var Vn={name:"flip",enabled:!0,phase:"main",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Se.name;if(!$e.modifiersData[Re]._skip){for(var ot=Je.mainAxis,Lt=ot===void 0||ot,on=Je.altAxis,Fn=on===void 0||on,Xn=Je.fallbackPlacements,zi=Je.padding,ns=Je.boundary,Fo=Je.rootBoundary,Ho=Je.altBoundary,$u=Je.flipVariations,gu=$u===void 0||$u,Kl=Je.allowedAutoPlacements,Sl=$e.options.placement,ql=_e(Sl),ol=Xn||(ql===Sl||!gu?[ho(Sl)]:function(cr){if(_e(cr)===C)return[];var Ur=ho(cr);return[ji(cr),Ur,ji(Ur)]}(Sl)),Ga=[Sl].concat(ol).reduce(function(cr,Ur){return cr.concat(_e(Ur)===C?Ht($e,{placement:Ur,boundary:ns,rootBoundary:Fo,padding:zi,flipVariations:gu,allowedAutoPlacements:Kl}):Ur)},[]),pu=$e.rects.reference,oc=$e.rects.popper,cd=new Map,Oo=!0,Jh=Ga[0],xc=0;Ga.length>xc;xc++){var fh=Ga[xc],Gd=_e(fh),_=_r(fh)===S,R=[k,N].indexOf(Gd)>=0,Z=R?"width":"height",ue=xt($e,{placement:fh,boundary:ns,rootBoundary:Fo,altBoundary:Ho,padding:zi}),Pe=R?_?w:I:_?N:k;pu[Z]>oc[Z]&&(Pe=ho(Pe));var Qe=ho(Pe),wt=[];if(Lt&&wt.push(0>=ue[Gd]),Fn&&wt.push(0>=ue[Pe],0>=ue[Qe]),wt.every(function(cr){return cr})){Jh=fh,Oo=!1;break}cd.set(fh,wt)}if(Oo)for(var jt=function(cr){var Ur=Ga.find(function(bi){var _o=cd.get(bi);if(_o)return _o.slice(0,cr).every(function(zo){return zo})});if(Ur)return Jh=Ur,"break"},Nn=gu?3:1;Nn>0&&jt(Nn)!=="break";Nn--);$e.placement!==Jh&&($e.modifiersData[Re]._skip=!0,$e.placement=Jh,$e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function en(Se,$e,Je){return Je===void 0&&(Je={x:0,y:0}),{top:Se.top-$e.height-Je.y,right:Se.right-$e.width+Je.x,bottom:Se.bottom-$e.height+Je.y,left:Se.left-$e.width-Je.x}}function fr(Se){return[k,w,N,I].some(function($e){return Se[$e]>=0})}var Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Se){var $e=Se.state,Je=Se.name,Re=Se.options.offset,ot=Re===void 0?[0,0]:Re,Lt=de.reduce(function(Xn,zi){return Xn[zi]=function(ns,Fo,Ho){var $u=_e(ns),gu=0>[I,k].indexOf($u)?1:-1,Kl=typeof Ho=="function"?Ho(Object.assign({},Fo,{placement:ns})):Ho,Sl=Kl[0],ql=Kl[1];return Sl=Sl||0,ql=(ql||0)*gu,0>[I,w].indexOf($u)?{x:Sl,y:ql}:{x:ql,y:Sl}}(zi,$e.rects,ot),Xn},{}),on=Lt[$e.placement],Fn=on.y;$e.modifiersData.popperOffsets!=null&&($e.modifiersData.popperOffsets.x+=on.x,$e.modifiersData.popperOffsets.y+=Fn),$e.modifiersData[Je]=Lt}},ri={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Se.name,ot=Je.mainAxis,Lt=ot===void 0||ot,on=Je.altAxis,Fn=on!==void 0&&on,Xn=Je.tether,zi=Xn===void 0||Xn,ns=Je.tetherOffset,Fo=ns===void 0?0:ns,Ho=xt($e,{boundary:Je.boundary,rootBoundary:Je.rootBoundary,padding:Je.padding,altBoundary:Je.altBoundary}),$u=_e($e.placement),gu=_r($e.placement),Kl=!gu,Sl=Lr($u),ql=Sl==="x"?"y":"x",ol=$e.modifiersData.popperOffsets,Ga=$e.rects.reference,pu=$e.rects.popper,oc=typeof Fo=="function"?Fo(Object.assign({},$e.rects,{placement:$e.placement})):Fo,cd=typeof oc=="number"?{mainAxis:oc,altAxis:oc}:Object.assign({mainAxis:0,altAxis:0},oc),Oo=$e.modifiersData.offset?$e.modifiersData.offset[$e.placement]:null,Jh={x:0,y:0};if(ol){if(Lt){var xc,fh=Sl==="y"?k:I,Gd=Sl==="y"?N:w,_=Sl==="y"?"height":"width",R=ol[Sl],Z=R+Ho[fh],ue=R-Ho[Gd],Pe=zi?-pu[_]/2:0,Qe=gu===S?Ga[_]:pu[_],wt=gu===S?-pu[_]:-Ga[_],jt=$e.elements.arrow,Nn=zi&&jt?dt(jt):{width:0,height:0},cr=$e.modifiersData["arrow#persistent"]?$e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ur=cr[fh],bi=cr[Gd],_o=ii(0,Ga[_],Nn[_]),zo=Kl?Ga[_]/2-Pe-_o-Ur-cd.mainAxis:Qe-_o-Ur-cd.mainAxis,qs=Kl?-Ga[_]/2+Pe+_o+bi+cd.mainAxis:wt+_o+bi+cd.mainAxis,ra=$e.elements.arrow&&Bn($e.elements.arrow),al=(xc=Oo==null?void 0:Oo[Sl])!=null?xc:0,Pa=R+qs-al,Ol=ii(zi?De(Z,R+zo-al-(ra?Sl==="y"?ra.clientTop||0:ra.clientLeft||0:0)):Z,R,zi?Ce(ue,Pa):ue);ol[Sl]=Ol,Jh[Sl]=Ol-R}if(Fn){var Vl,cu=ol[ql],lu=ql==="y"?"height":"width",Hu=cu+Ho[Sl==="x"?k:I],kc=cu-Ho[Sl==="x"?N:w],ac=[k,I].indexOf($u)!==-1,_d=(Vl=Oo==null?void 0:Oo[ql])!=null?Vl:0,Xu=ac?Hu:cu-Ga[lu]-pu[lu]-_d+cd.altAxis,Nd=ac?cu+Ga[lu]+pu[lu]-_d-cd.altAxis:kc,qt=zi&&ac?function(On,hr,Gr){var bo=ii(On,hr,Gr);return bo>Gr?Gr:bo}(Xu,cu,Nd):ii(zi?Xu:Hu,cu,zi?Nd:kc);ol[ql]=qt,Jh[ql]=qt-cu}$e.modifiersData[Re]=Jh}},requiresIfExists:["offset"]};function si(Se,$e,Je){Je===void 0&&(Je=!1);var Re,ot,Lt=be($e),on=be($e)&&function(Fo){var Ho=Fo.getBoundingClientRect(),$u=ge(Ho.width)/Fo.offsetWidth||1,gu=ge(Ho.height)/Fo.offsetHeight||1;return $u!==1||gu!==1}($e),Fn=$t($e),Xn=Pt(Se,on,Je),zi={scrollLeft:0,scrollTop:0},ns={x:0,y:0};return(Lt||!Lt&&!Je)&&((ke($e)!=="body"||Ve(Fn))&&(zi=(Re=$e)!==Ie(Re)&&be(Re)?{scrollLeft:(ot=Re).scrollLeft,scrollTop:ot.scrollTop}:No(Re)),be($e)?((ns=Pt($e,!0)).x+=$e.clientLeft,ns.y+=$e.clientTop):Fn&&(ns.x=dn(Fn))),{x:Xn.left+zi.scrollLeft-ns.x,y:Xn.top+zi.scrollTop-ns.y,width:Xn.width,height:Xn.height}}function uo(Se){var $e=new Map,Je=new Set,Re=[];function ot(Lt){Je.add(Lt.name),[].concat(Lt.requires||[],Lt.requiresIfExists||[]).forEach(function(on){if(!Je.has(on)){var Fn=$e.get(on);Fn&&ot(Fn)}}),Re.push(Lt)}return Se.forEach(function(Lt){$e.set(Lt.name,Lt)}),Se.forEach(function(Lt){Je.has(Lt.name)||ot(Lt)}),Re}var Qo={placement:"bottom",modifiers:[],strategy:"absolute"};function _n(){for(var Se=arguments.length,$e=Array(Se),Je=0;Se>Je;Je++)$e[Je]=arguments[Je];return!$e.some(function(Re){return!(Re&&typeof Re.getBoundingClientRect=="function")})}function Vr(Se){Se===void 0&&(Se={});var $e=Se.defaultModifiers,Je=$e===void 0?[]:$e,Re=Se.defaultOptions,ot=Re===void 0?Qo:Re;return function(Lt,on,Fn){Fn===void 0&&(Fn=ot);var Xn,zi,ns={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qo,ot),modifiersData:{},elements:{reference:Lt,popper:on},attributes:{},styles:{}},Fo=[],Ho=!1,$u={state:ns,setOptions:function(Kl){var Sl=typeof Kl=="function"?Kl(ns.options):Kl;gu(),ns.options=Object.assign({},ot,ns.options,Sl),ns.scrollParents={reference:Be(Lt)?Ct(Lt):Lt.contextElement?Ct(Lt.contextElement):[],popper:Ct(on)};var ql,ol,Ga=function(pu){var oc=uo(pu);return fe.reduce(function(cd,Oo){return cd.concat(oc.filter(function(Jh){return Jh.phase===Oo}))},[])}((ql=[].concat(Je,ns.options.modifiers),ol=ql.reduce(function(pu,oc){var cd=pu[oc.name];return pu[oc.name]=cd?Object.assign({},cd,oc,{options:Object.assign({},cd.options,oc.options),data:Object.assign({},cd.data,oc.data)}):oc,pu},{}),Object.keys(ol).map(function(pu){return ol[pu]})));return ns.orderedModifiers=Ga.filter(function(pu){return pu.enabled}),ns.orderedModifiers.forEach(function(pu){var oc=pu.options,cd=pu.effect;if(typeof cd=="function"){var Oo=cd({state:ns,name:pu.name,instance:$u,options:oc===void 0?{}:oc});Fo.push(Oo||function(){})}}),$u.update()},forceUpdate:function(){if(!Ho){var Kl=ns.elements,Sl=Kl.reference,ql=Kl.popper;if(_n(Sl,ql)){ns.rects={reference:si(Sl,Bn(ql),ns.options.strategy==="fixed"),popper:dt(ql)},ns.reset=!1,ns.placement=ns.options.placement,ns.orderedModifiers.forEach(function(cd){return ns.modifiersData[cd.name]=Object.assign({},cd.data)});for(var ol=0;ns.orderedModifiers.length>ol;ol++)if(ns.reset!==!0){var Ga=ns.orderedModifiers[ol],pu=Ga.fn,oc=Ga.options;typeof pu=="function"&&(ns=pu({state:ns,options:oc===void 0?{}:oc,name:Ga.name,instance:$u})||ns)}else ns.reset=!1,ol=-1}}},update:(Xn=function(){return new Promise(function(Kl){$u.forceUpdate(),Kl(ns)})},function(){return zi||(zi=new Promise(function(Kl){Promise.resolve().then(function(){zi=void 0,Kl(Xn())})})),zi}),destroy:function(){gu(),Ho=!0}};if(!_n(Lt,on))return $u;function gu(){Fo.forEach(function(Kl){return Kl()}),Fo=[]}return $u.setOptions(Fn).then(function(Kl){!Ho&&Fn.onFirstUpdate&&Fn.onFirstUpdate(Kl)}),$u}}var qr=Vr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Se){var $e=Se.state,Je=Se.instance,Re=Se.options,ot=Re.scroll,Lt=ot===void 0||ot,on=Re.resize,Fn=on===void 0||on,Xn=Ie($e.elements.popper),zi=[].concat($e.scrollParents.reference,$e.scrollParents.popper);return Lt&&zi.forEach(function(ns){ns.addEventListener("scroll",Je.update,ve)}),Fn&&Xn.addEventListener("resize",Je.update,ve),function(){Lt&&zi.forEach(function(ns){ns.removeEventListener("scroll",Je.update,ve)}),Fn&&Xn.removeEventListener("resize",Je.update,ve)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Se){var $e=Se.state;$e.modifiersData[Se.name]=Tt({reference:$e.rects.reference,element:$e.rects.popper,strategy:"absolute",placement:$e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Je.gpuAcceleration,ot=Re===void 0||Re,Lt=Je.adaptive,on=Lt===void 0||Lt,Fn=Je.roundOffsets,Xn=Fn===void 0||Fn,zi={placement:_e($e.placement),variation:_r($e.placement),popper:$e.elements.popper,popperRect:$e.rects.popper,gpuAcceleration:ot,isFixed:$e.options.strategy==="fixed"};$e.modifiersData.popperOffsets!=null&&($e.styles.popper=Object.assign({},$e.styles.popper,hs(Object.assign({},zi,{offsets:$e.modifiersData.popperOffsets,position:$e.options.strategy,adaptive:on,roundOffsets:Xn})))),$e.modifiersData.arrow!=null&&($e.styles.arrow=Object.assign({},$e.styles.arrow,hs(Object.assign({},zi,{offsets:$e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Xn})))),$e.attributes.popper=Object.assign({},$e.attributes.popper,{"data-popper-placement":$e.placement})},data:{}},ye,Kr,Vn,ri,To,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Se){var $e=Se.state,Je=Se.name,Re=$e.rects.reference,ot=$e.rects.popper,Lt=$e.modifiersData.preventOverflow,on=xt($e,{elementContext:"reference"}),Fn=xt($e,{altBoundary:!0}),Xn=en(on,Re),zi=en(Fn,ot,Lt),ns=fr(Xn),Fo=fr(zi);$e.modifiersData[Je]={referenceClippingOffsets:Xn,popperEscapeOffsets:zi,isReferenceHidden:ns,hasPopperEscaped:Fo},$e.attributes.popper=Object.assign({},$e.attributes.popper,{"data-popper-reference-hidden":ns,"data-popper-escaped":Fo})}}]}),Ui="tippy-content",xo="tippy-backdrop",Us="tippy-arrow",zn="tippy-svg-arrow",Kn={passive:!0,capture:!0},Or=function(){return document.body};function mi(Se,$e,Je){if(Array.isArray(Se)){var Re=Se[$e];return Re==null?Array.isArray(Je)?Je[$e]:Je:Re}return Se}function Er(Se,$e){var Je={}.toString.call(Se);return Je.indexOf("[object")===0&&Je.indexOf($e+"]")>-1}function ti(Se,$e){return typeof Se=="function"?Se.apply(void 0,$e):Se}function di(Se,$e){return $e===0?Se:function(Re){clearTimeout(Je),Je=setTimeout(function(){Se(Re)},$e)};var Je}function rn(Se){return[].concat(Se)}function Qn(Se,$e){Se.indexOf($e)===-1&&Se.push($e)}function Xr(Se){return[].slice.call(Se)}function ao(Se){return Object.keys(Se).reduce(function($e,Je){return Se[Je]!==void 0&&($e[Je]=Se[Je]),$e},{})}function as(){return document.createElement("div")}function Bt(Se){return["Element","Fragment"].some(function($e){return Er(Se,$e)})}function pn(Se){return Er(Se,"MouseEvent")}function br(Se){return Bt(Se)?[Se]:function($e){return Er($e,"NodeList")}(Se)?Xr(Se):Array.isArray(Se)?Se:Xr(document.querySelectorAll(Se))}function Jr(Se,$e){Se.forEach(function(Je){Je&&(Je.style.transitionDuration=$e+"ms")})}function vi(Se,$e){Se.forEach(function(Je){Je&&Je.setAttribute("data-state",$e)})}function Di(Se){var $e,Je=rn(Se)[0];return Je!=null&&($e=Je.ownerDocument)!=null&&$e.body?Je.ownerDocument:document}function co(Se,$e,Je){var Re=$e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(ot){Se[Re](ot,Je)})}function Qr(Se,$e){for(var Je=$e;Je;){var Re;if(Se.contains(Je))return!0;Je=Je.getRootNode==null||(Re=Je.getRootNode())==null?void 0:Re.host}return!1}var oi={isTouch:!1},Zi=0;function Ar(){oi.isTouch||(oi.isTouch=!0,window.performance&&document.addEventListener("mousemove",tn))}function tn(){var Se=performance.now();20>Se-Zi&&(oi.isTouch=!1,document.removeEventListener("mousemove",tn)),Zi=Se}function Gn(){var Se,$e=document.activeElement;(Se=$e)&&Se._tippy&&Se._tippy.reference===Se&&$e.blur&&!$e._tippy.state.isVisible&&$e.blur()}var Ei=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,In=Object.assign({appendTo:Or,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Li=Object.keys(In);function nr(Se){var $e=(Se.plugins||[]).reduce(function(Je,Re){var ot,Lt=Re.name;return Lt&&(Je[Lt]=Se[Lt]!==void 0?Se[Lt]:(ot=In[Lt])!=null?ot:Re.defaultValue),Je},{});return Object.assign({},Se,$e)}function wi(Se,$e){var Je=Object.assign({},$e,{content:ti($e.content,[Se])},$e.ignoreAttributes?{}:function(Re,ot){return(ot?Object.keys(nr(Object.assign({},In,{plugins:ot}))):Li).reduce(function(Lt,on){var Fn=(Re.getAttribute("data-tippy-"+on)||"").trim();if(!Fn)return Lt;if(on==="content")Lt[on]=Fn;else try{Lt[on]=JSON.parse(Fn)}catch(Xn){Lt[on]=Fn}return Lt},{})}(Se,$e.plugins));return Je.aria=Object.assign({},In.aria,Je.aria),Je.aria={expanded:Je.aria.expanded==="auto"?$e.interactive:Je.aria.expanded,content:Je.aria.content==="auto"?$e.interactive?null:"describedby":Je.aria.content},Je}var Mi=function(){return"innerHTML"};function Fr(Se,$e){Se[Mi()]=$e}function qn(Se){var $e=as();return Se===!0?$e.className=Us:($e.className=zn,Bt(Se)?$e.appendChild(Se):Fr($e,Se)),$e}function ms(Se,$e){Bt($e.content)?(Fr(Se,""),Se.appendChild($e.content)):typeof $e.content!="function"&&($e.allowHTML?Fr(Se,$e.content):Se.textContent=$e.content)}function ya(Se){var $e=Se.firstElementChild,Je=Xr($e.children);return{box:$e,content:Je.find(function(Re){return Re.classList.contains(Ui)}),arrow:Je.find(function(Re){return Re.classList.contains(Us)||Re.classList.contains(zn)}),backdrop:Je.find(function(Re){return Re.classList.contains(xo)})}}function ha(Se){var $e=as(),Je=as();Je.className="tippy-box",Je.setAttribute("data-state","hidden"),Je.setAttribute("tabindex","-1");var Re=as();function ot(Lt,on){var Fn=ya($e),Xn=Fn.box,zi=Fn.content,ns=Fn.arrow;on.theme?Xn.setAttribute("data-theme",on.theme):Xn.removeAttribute("data-theme"),typeof on.animation=="string"?Xn.setAttribute("data-animation",on.animation):Xn.removeAttribute("data-animation"),on.inertia?Xn.setAttribute("data-inertia",""):Xn.removeAttribute("data-inertia"),Xn.style.maxWidth=typeof on.maxWidth=="number"?on.maxWidth+"px":on.maxWidth,on.role?Xn.setAttribute("role",on.role):Xn.removeAttribute("role"),Lt.content===on.content&&Lt.allowHTML===on.allowHTML||ms(zi,Se.props),on.arrow?ns?Lt.arrow!==on.arrow&&(Xn.removeChild(ns),Xn.appendChild(qn(on.arrow))):Xn.appendChild(qn(on.arrow)):ns&&Xn.removeChild(ns)}return Re.className=Ui,Re.setAttribute("data-state","hidden"),ms(Re,Se.props),$e.appendChild(Je),Je.appendChild(Re),ot(Se.props,Se.props),{popper:$e,onUpdate:ot}}ha.$$tippy=!0;var Ws=1,Ua=[],Ao=[];function dl(Se,$e){var Je,Re,ot,Lt,on,Fn,Xn,zi,ns=wi(Se,Object.assign({},In,nr(ao($e)))),Fo=!1,Ho=!1,$u=!1,gu=!1,Kl=[],Sl=di(Vl,ns.interactiveDebounce),ql=Ws++,ol=(zi=ns.plugins).filter(function(qt,On){return zi.indexOf(qt)===On}),Ga={id:ql,reference:Se,popper:as(),popperInstance:null,props:ns,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:ol,clearDelayTimeouts:function(){clearTimeout(Je),clearTimeout(Re),cancelAnimationFrame(ot)},setProps:function(qt){if(!Ga.state.isDestroyed){Qe("onBeforeUpdate",[Ga,qt]),Pa();var On=Ga.props,hr=wi(Se,Object.assign({},On,ao(qt),{ignoreAttributes:!0}));Ga.props=hr,al(),On.interactiveDebounce!==hr.interactiveDebounce&&(Nn(),Sl=di(Vl,hr.interactiveDebounce)),On.triggerTarget&&!hr.triggerTarget?rn(On.triggerTarget).forEach(function(Gr){Gr.removeAttribute("aria-expanded")}):hr.triggerTarget&&Se.removeAttribute("aria-expanded"),jt(),Pe(),cd&&cd(On,hr),Ga.popperInstance&&(kc(),_d().forEach(function(Gr){requestAnimationFrame(Gr._tippy.popperInstance.forceUpdate)})),Qe("onAfterUpdate",[Ga,qt])}},setContent:function(qt){Ga.setProps({content:qt})},show:function(){var qt=Ga.state.isVisible,On=Ga.state.isDestroyed,hr=!Ga.state.isEnabled,Gr=oi.isTouch&&!Ga.props.touch,bo=mi(Ga.props.duration,0,In.duration);if(!(qt||On||hr||Gr)&&!_().hasAttribute("disabled")&&(Qe("onShow",[Ga],!1),Ga.props.onShow(Ga)!==!1)){if(Ga.state.isVisible=!0,Gd()&&(oc.style.visibility="visible"),Pe(),_o(),Ga.state.isMounted||(oc.style.transition="none"),Gd()){var aa=Z();Jr([aa.box,aa.content],0)}Fn=function(){var Ya;if(Ga.state.isVisible&&!gu){if(gu=!0,oc.style.transition=Ga.props.moveTransition,Gd()&&Ga.props.animation){var ka=Z(),Xl=ka.box,wu=ka.content;Jr([Xl,wu],bo),vi([Xl,wu],"visible")}wt(),jt(),Qn(Ao,Ga),(Ya=Ga.popperInstance)==null||Ya.forceUpdate(),Qe("onMount",[Ga]),Ga.props.animation&&Gd()&&function(Ls,Xc){qs(Ls,Xc)}(bo,function(){Ga.state.isShown=!0,Qe("onShown",[Ga])})}},function(){var Ya,ka=Ga.props.appendTo,Xl=_();Ya=Ga.props.interactive&&ka===Or||ka==="parent"?Xl.parentNode:ti(ka,[Xl]),Ya.contains(oc)||Ya.appendChild(oc),Ga.state.isMounted=!0,kc()}()}},hide:function(){var qt=!Ga.state.isVisible,On=Ga.state.isDestroyed,hr=!Ga.state.isEnabled,Gr=mi(Ga.props.duration,1,In.duration);if(!(qt||On||hr)&&(Qe("onHide",[Ga],!1),Ga.props.onHide(Ga)!==!1)){if(Ga.state.isVisible=!1,Ga.state.isShown=!1,gu=!1,Fo=!1,Gd()&&(oc.style.visibility="hidden"),Nn(),zo(),Pe(!0),Gd()){var bo=Z(),aa=bo.box,Ya=bo.content;Ga.props.animation&&(Jr([aa,Ya],Gr),vi([aa,Ya],"hidden"))}wt(),jt(),Ga.props.animation?Gd()&&function(ka,Xl){qs(ka,function(){!Ga.state.isVisible&&oc.parentNode&&oc.parentNode.contains(oc)&&Xl()})}(Gr,Ga.unmount):Ga.unmount()}},hideWithInteractivity:function(qt){R().addEventListener("mousemove",Sl),Qn(Ua,Sl),Sl(qt)},enable:function(){Ga.state.isEnabled=!0},disable:function(){Ga.hide(),Ga.state.isEnabled=!1},unmount:function(){Ga.state.isVisible&&Ga.hide(),Ga.state.isMounted&&(ac(),_d().forEach(function(qt){qt._tippy.unmount()}),oc.parentNode&&oc.parentNode.removeChild(oc),Ao=Ao.filter(function(qt){return qt!==Ga}),Ga.state.isMounted=!1,Qe("onHidden",[Ga]))},destroy:function(){Ga.state.isDestroyed||(Ga.clearDelayTimeouts(),Ga.unmount(),Pa(),delete Se._tippy,Ga.state.isDestroyed=!0,Qe("onDestroy",[Ga]))}};if(!ns.render)return Ga;var pu=ns.render(Ga),oc=pu.popper,cd=pu.onUpdate;oc.setAttribute("data-tippy-root",""),oc.id="tippy-"+Ga.id,Ga.popper=oc,Se._tippy=Ga,oc._tippy=Ga;var Oo=ol.map(function(qt){return qt.fn(Ga)}),Jh=Se.hasAttribute("aria-expanded");return al(),jt(),Pe(),Qe("onCreate",[Ga]),ns.showOnCreate&&Xu(),oc.addEventListener("mouseenter",function(){Ga.props.interactive&&Ga.state.isVisible&&Ga.clearDelayTimeouts()}),oc.addEventListener("mouseleave",function(){Ga.props.interactive&&Ga.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",Sl)}),Ga;function xc(){var qt=Ga.props.touch;return Array.isArray(qt)?qt:[qt,0]}function fh(){return xc()[0]==="hold"}function Gd(){var qt;return!((qt=Ga.props.render)==null||!qt.$$tippy)}function _(){return Xn||Se}function R(){var qt=_().parentNode;return qt?Di(qt):document}function Z(){return ya(oc)}function ue(qt){return Ga.state.isMounted&&!Ga.state.isVisible||oi.isTouch||Lt&&Lt.type==="focus"?0:mi(Ga.props.delay,qt?0:1,In.delay)}function Pe(qt){qt===void 0&&(qt=!1),oc.style.pointerEvents=Ga.props.interactive&&!qt?"":"none",oc.style.zIndex=""+Ga.props.zIndex}function Qe(qt,On,hr){var Gr;hr===void 0&&(hr=!0),Oo.forEach(function(bo){bo[qt]&&bo[qt].apply(bo,On)}),hr&&(Gr=Ga.props)[qt].apply(Gr,On)}function wt(){var qt=Ga.props.aria;if(qt.content){var On="aria-"+qt.content,hr=oc.id;rn(Ga.props.triggerTarget||Se).forEach(function(Gr){var bo=Gr.getAttribute(On);if(Ga.state.isVisible)Gr.setAttribute(On,bo?bo+" "+hr:hr);else{var aa=bo&&bo.replace(hr,"").trim();aa?Gr.setAttribute(On,aa):Gr.removeAttribute(On)}})}}function jt(){!Jh&&Ga.props.aria.expanded&&rn(Ga.props.triggerTarget||Se).forEach(function(qt){Ga.props.interactive?qt.setAttribute("aria-expanded",Ga.state.isVisible&&qt===_()?"true":"false"):qt.removeAttribute("aria-expanded")})}function Nn(){R().removeEventListener("mousemove",Sl),Ua=Ua.filter(function(qt){return qt!==Sl})}function cr(qt){if(!oi.isTouch||!$u&&qt.type!=="mousedown"){var On=qt.composedPath&&qt.composedPath()[0]||qt.target;if(!Ga.props.interactive||!Qr(oc,On)){if(rn(Ga.props.triggerTarget||Se).some(function(hr){return Qr(hr,On)})){if(oi.isTouch||Ga.state.isVisible&&Ga.props.trigger.indexOf("click")>=0)return}else Qe("onClickOutside",[Ga,qt]);Ga.props.hideOnClick===!0&&(Ga.clearDelayTimeouts(),Ga.hide(),Ho=!0,setTimeout(function(){Ho=!1}),Ga.state.isMounted||zo())}}}function Ur(){$u=!0}function bi(){$u=!1}function _o(){var qt=R();qt.addEventListener("mousedown",cr,!0),qt.addEventListener("touchend",cr,Kn),qt.addEventListener("touchstart",bi,Kn),qt.addEventListener("touchmove",Ur,Kn)}function zo(){var qt=R();qt.removeEventListener("mousedown",cr,!0),qt.removeEventListener("touchend",cr,Kn),qt.removeEventListener("touchstart",bi,Kn),qt.removeEventListener("touchmove",Ur,Kn)}function qs(qt,On){var hr=Z().box;function Gr(bo){bo.target===hr&&(co(hr,"remove",Gr),On())}if(qt===0)return On();co(hr,"remove",on),co(hr,"add",Gr),on=Gr}function ra(qt,On,hr){hr===void 0&&(hr=!1),rn(Ga.props.triggerTarget||Se).forEach(function(Gr){Gr.addEventListener(qt,On,hr),Kl.push({node:Gr,eventType:qt,handler:On,options:hr})})}function al(){var qt;fh()&&(ra("touchstart",Ol,{passive:!0}),ra("touchend",cu,{passive:!0})),(qt=Ga.props.trigger,qt.split(/\s+/).filter(Boolean)).forEach(function(On){if(On!=="manual")switch(ra(On,Ol),On){case"mouseenter":ra("mouseleave",cu);break;case"focus":ra(Ei?"focusout":"blur",lu);break;case"focusin":ra("focusout",lu)}})}function Pa(){Kl.forEach(function(qt){qt.node.removeEventListener(qt.eventType,qt.handler,qt.options)}),Kl=[]}function Ol(qt){var On,hr=!1;if(Ga.state.isEnabled&&!Hu(qt)&&!Ho){var Gr=((On=Lt)==null?void 0:On.type)==="focus";Lt=qt,Xn=qt.currentTarget,jt(),!Ga.state.isVisible&&pn(qt)&&Ua.forEach(function(bo){return bo(qt)}),qt.type==="click"&&(0>Ga.props.trigger.indexOf("mouseenter")||Fo)&&Ga.props.hideOnClick!==!1&&Ga.state.isVisible?hr=!0:Xu(qt),qt.type==="click"&&(Fo=!hr),hr&&!Gr&&Nd(qt)}}function Vl(qt){var On=qt.target,hr=_().contains(On)||oc.contains(On);if(qt.type!=="mousemove"||!hr){var Gr=_d().concat(oc).map(function(bo){var aa,Ya=(aa=bo._tippy.popperInstance)==null?void 0:aa.state;return Ya?{popperRect:bo.getBoundingClientRect(),popperState:Ya,props:ns}:null}).filter(Boolean);(function(bo,aa){var Ya=aa.clientX,ka=aa.clientY;return bo.every(function(Xl){var wu=Xl.popperRect,Ls=Xl.popperState,Xc=Xl.props.interactiveBorder,ph=Ls.placement.split("-")[0],gh=Ls.modifiersData.offset;return!gh||wu.top-ka+(ph==="bottom"?gh.top.y:0)>Xc||ka-wu.bottom-(ph==="top"?gh.bottom.y:0)>Xc||wu.left-Ya+(ph==="right"?gh.left.x:0)>Xc||Ya-wu.right-(ph==="left"?gh.right.x:0)>Xc})})(Gr,qt)&&(Nn(),Nd(qt))}}function cu(qt){Hu(qt)||Ga.props.trigger.indexOf("click")>=0&&Fo||(Ga.props.interactive?Ga.hideWithInteractivity(qt):Nd(qt))}function lu(qt){0>Ga.props.trigger.indexOf("focusin")&&qt.target!==_()||Ga.props.interactive&&qt.relatedTarget&&oc.contains(qt.relatedTarget)||Nd(qt)}function Hu(qt){return!!oi.isTouch&&fh()!==qt.type.indexOf("touch")>=0}function kc(){ac();var qt=Ga.props,On=qt.popperOptions,hr=qt.placement,Gr=qt.offset,bo=qt.getReferenceClientRect,aa=qt.moveTransition,Ya=Gd()?ya(oc).arrow:null,ka=bo?{getBoundingClientRect:bo,contextElement:bo.contextElement||_()}:Se,Xl={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ls){var Xc=Ls.state;if(Gd()){var ph=Z().box;["placement","reference-hidden","escaped"].forEach(function(gh){gh==="placement"?ph.setAttribute("data-placement",Xc.placement):Xc.attributes.popper["data-popper-"+gh]?ph.setAttribute("data-"+gh,""):ph.removeAttribute("data-"+gh)}),Xc.attributes.popper={}}}},wu=[{name:"offset",options:{offset:Gr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!aa}},Xl];Gd()&&Ya&&wu.push({name:"arrow",options:{element:Ya,padding:3}}),wu.push.apply(wu,(On==null?void 0:On.modifiers)||[]),Ga.popperInstance=qr(ka,oc,Object.assign({},On,{placement:hr,onFirstUpdate:Fn,modifiers:wu}))}function ac(){Ga.popperInstance&&(Ga.popperInstance.destroy(),Ga.popperInstance=null)}function _d(){return Xr(oc.querySelectorAll("[data-tippy-root]"))}function Xu(qt){Ga.clearDelayTimeouts(),qt&&Qe("onTrigger",[Ga,qt]),_o();var On=ue(!0),hr=xc(),Gr=hr[1];oi.isTouch&&hr[0]==="hold"&&Gr&&(On=Gr),On?Je=setTimeout(function(){Ga.show()},On):Ga.show()}function Nd(qt){if(Ga.clearDelayTimeouts(),Qe("onUntrigger",[Ga,qt]),Ga.state.isVisible){if(0>Ga.props.trigger.indexOf("mouseenter")||0>Ga.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(qt.type)||!Fo){var On=ue(!1);On?Re=setTimeout(function(){Ga.state.isVisible&&Ga.hide()},On):ot=requestAnimationFrame(function(){Ga.hide()})}}else zo()}}function $r(Se,$e){$e===void 0&&($e={});var Je=In.plugins.concat($e.plugins||[]);document.addEventListener("touchstart",Ar,Kn),window.addEventListener("blur",Gn);var Re=Object.assign({},$e,{plugins:Je}),ot=br(Se).reduce(function(Lt,on){var Fn=on&&dl(on,Re);return Fn&&Lt.push(Fn),Lt},[]);return Bt(Se)?ot[0]:ot}$r.defaultProps=In,$r.setDefaultProps=function(Se){Object.keys(Se).forEach(function($e){In[$e]=Se[$e]})},$r.currentInput=oi,Object.assign({},ye,{effect:function(Se){var $e=Se.state,Je={popper:{position:$e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign($e.elements.popper.style,Je.popper),$e.styles=Je,$e.elements.arrow&&Object.assign($e.elements.arrow.style,Je.arrow)}});var er={clientX:0,clientY:0},Tr=[];function pr(Se){er={clientX:Se.clientX,clientY:Se.clientY}}var ci={name:"followCursor",defaultValue:!1,fn:function(Se){var $e=Se.reference,Je=Di(Se.props.triggerTarget||$e),Re=!1,ot=!1,Lt=!0,on=Se.props;function Fn(){return Se.props.followCursor==="initial"&&Se.state.isVisible}function Xn(){Je.addEventListener("mousemove",Fo)}function zi(){Je.removeEventListener("mousemove",Fo)}function ns(){Re=!0,Se.setProps({getReferenceClientRect:null}),Re=!1}function Fo(gu){var Kl=!gu.target||$e.contains(gu.target),Sl=Se.props.followCursor,ql=gu.clientX,ol=gu.clientY,Ga=$e.getBoundingClientRect(),pu=ql-Ga.left,oc=ol-Ga.top;!Kl&&Se.props.interactive||Se.setProps({getReferenceClientRect:function(){var cd=$e.getBoundingClientRect(),Oo=ql,Jh=ol;Sl==="initial"&&(Oo=cd.left+pu,Jh=cd.top+oc);var xc=Sl==="horizontal"?cd.top:Jh,fh=Sl==="vertical"?cd.right:Oo,Gd=Sl==="horizontal"?cd.bottom:Jh,_=Sl==="vertical"?cd.left:Oo;return{width:fh-_,height:Gd-xc,top:xc,right:fh,bottom:Gd,left:_}}})}function Ho(){Se.props.followCursor&&(Tr.push({instance:Se,doc:Je}),function(gu){gu.addEventListener("mousemove",pr)}(Je))}function $u(){(Tr=Tr.filter(function(gu){return gu.instance!==Se})).filter(function(gu){return gu.doc===Je}).length===0&&function(gu){gu.removeEventListener("mousemove",pr)}(Je)}return{onCreate:Ho,onDestroy:$u,onBeforeUpdate:function(){on=Se.props},onAfterUpdate:function(gu,Kl){var Sl=Kl.followCursor;Re||Sl!==void 0&&on.followCursor!==Sl&&($u(),Sl?(Ho(),!Se.state.isMounted||ot||Fn()||Xn()):(zi(),ns()))},onMount:function(){Se.props.followCursor&&!ot&&(Lt&&(Fo(er),Lt=!1),Fn()||Xn())},onTrigger:function(gu,Kl){pn(Kl)&&(er={clientX:Kl.clientX,clientY:Kl.clientY}),ot=Kl.type==="focus"},onHidden:function(){Se.props.followCursor&&(ns(),zi(),Lt=!0)}}}};$r.setDefaultProps({render:ha});var Eo,mo,Ts,xs,Sr,ui,Xt={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Se){return 1e3>Se?+Se.toFixed(2)+"m":+(Se/1e3).toFixed(2)+"km"}},gn={showWhen:["normal","active"],format:function(Se){return Se>1e6?"".concat(+(Se/1e6).toFixed(2),"km\xB2"):"".concat(+Se.toFixed(2),"m\xB2")}},En={maxSize:100},tt={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},at={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[ci],trigger:"manual",hideOnClick:!1,theme:"light"},gt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Ne(Se,$e){var Je=Object.keys(Se);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(Se);$e&&(Re=Re.filter(function(ot){return Object.getOwnPropertyDescriptor(Se,ot).enumerable})),Je.push.apply(Je,Re)}return Je}function lt(Se){for(var $e=1;arguments.length>$e;$e++){var Je=arguments[$e]!=null?arguments[$e]:{};$e%2?Ne(Object(Je),!0).forEach(function(Re){Cr(Se,Re,Je[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Se,Object.getOwnPropertyDescriptors(Je)):Ne(Object(Je)).forEach(function(Re){Object.defineProperty(Se,Re,Object.getOwnPropertyDescriptor(Je,Re))})}return Se}function St(Se,$e){if(!(Se instanceof $e))throw new TypeError("Cannot call a class as a function")}function ln(Se,$e){for(var Je=0;$e.length>Je;Je++){var Re=$e[Je];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(Se,va(Re.key),Re)}}function jn(Se,$e,Je){return $e&&ln(Se.prototype,$e),Je&&ln(Se,Je),Object.defineProperty(Se,"prototype",{writable:!1}),Se}function Cr(Se,$e,Je){return($e=va($e))in Se?Object.defineProperty(Se,$e,{value:Je,enumerable:!0,configurable:!0,writable:!0}):Se[$e]=Je,Se}function ki(Se,$e){if(typeof $e!="function"&&$e!==null)throw new TypeError("Super expression must either be null or a function");Se.prototype=Object.create($e&&$e.prototype,{constructor:{value:Se,writable:!0,configurable:!0}}),Object.defineProperty(Se,"prototype",{writable:!1}),$e&&Ki(Se,$e)}function Vi(Se){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($e){return $e.__proto__||Object.getPrototypeOf($e)},Vi(Se)}function Ki(Se,$e){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,Re){return Je.__proto__=Re,Je},Ki(Se,$e)}function fs(Se){if(Se===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Se}function Ns(Se){var $e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Je){return!1}}();return function(){var Je,Re=Vi(Se);if($e){var ot=Vi(this).constructor;Je=Reflect.construct(Re,arguments,ot)}else Je=Re.apply(this,arguments);return function(Lt,on){if(on&&(typeof on=="object"||typeof on=="function"))return on;if(on!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fs(Lt)}(this,Je)}}function Bs(){return Bs=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Se,$e,Je){var Re=function(Lt,on){for(;!Object.prototype.hasOwnProperty.call(Lt,on)&&(Lt=Vi(Lt))!==null;);return Lt}(Se,$e);if(Re){var ot=Object.getOwnPropertyDescriptor(Re,$e);return ot.get?ot.get.call(3>arguments.length?Se:Je):ot.value}},Bs.apply(this,arguments)}function _a(Se,$e){return function(Je){if(Array.isArray(Je))return Je}(Se)||function(Je,Re){var ot=Je==null?null:typeof Symbol!="undefined"&&Je[Symbol.iterator]||Je["@@iterator"];if(ot!=null){var Lt,on,Fn,Xn,zi=[],ns=!0,Fo=!1;try{if(Fn=(ot=ot.call(Je)).next,Re===0){if(Object(ot)!==ot)return;ns=!1}else for(;!(ns=(Lt=Fn.call(ot)).done)&&(zi.push(Lt.value),zi.length!==Re);ns=!0);}catch(Ho){Fo=!0,on=Ho}finally{try{if(!ns&&ot.return!=null&&(Xn=ot.return(),Object(Xn)!==Xn))return}finally{if(Fo)throw on}}return zi}}(Se,$e)||Ds(Se,$e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function oo(Se){return function($e){if(Array.isArray($e))return oa($e)}(Se)||function($e){if(typeof Symbol!="undefined"&&$e[Symbol.iterator]!=null||$e["@@iterator"]!=null)return Array.from($e)}(Se)||Ds(Se)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ds(Se,$e){if(Se){if(typeof Se=="string")return oa(Se,$e);var Je=Object.prototype.toString.call(Se).slice(8,-1);return Je==="Object"&&Se.constructor&&(Je=Se.constructor.name),Je==="Map"||Je==="Set"?Array.from(Se):Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je)?oa(Se,$e):void 0}}function oa(Se,$e){($e==null||$e>Se.length)&&($e=Se.length);for(var Je=0,Re=Array($e);$e>Je;Je++)Re[Je]=Se[Je];return Re}function va(Se){var $e=function(Je,Re){if(typeof Je!="object"||Je===null)return Je;var ot=Je[Symbol.toPrimitive];if(ot!==void 0){var Lt=ot.call(Je,Re||"default");if(typeof Lt!="object")return Lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Re==="string"?String:Number)(Je)}(Se,"string");return typeof $e=="symbol"?$e:$e+""}(Eo=y.DrawEvent||(y.DrawEvent={})).Init="init",Eo.Destroy="destroy",Eo.Enable="enable",Eo.Disable="disable",Eo.Add="add",Eo.Edit="edit",Eo.Remove="remove",Eo.Clear="clear",Eo.Change="change",Eo.DragStart="dragStart",Eo.Dragging="dragging",Eo.DragEnd="dragEnd",Eo.Select="select",Eo.AddNode="addNode",Eo.RemoveNode="removeNode",(mo=y.SourceEvent||(y.SourceEvent={})).Change="change",mo.Update="update",(Ts=y.RenderEvent||(y.RenderEvent={})).Click="click",Ts.UnClick="unclick",Ts.Dragstart="dragstart",Ts.Mousemove="mousemove",Ts.Mouseout="mouseout",Ts.Dragging="dragging",Ts.Dragend="dragend",Ts.DblClick="dblClick",Ts.Contextmenu="contextmenu",(xs=y.LayerEvent||(y.LayerEvent={})).Mousedown="mousedown",xs.Mouseup="mouseup",xs.Click="click",xs.UnClick="unclick",xs.Dblclick="dblclick",xs.Mousemove="mousemove",xs.Mouseover="mouseover",xs.Mouseenter="mouseenter",xs.Mouseleave="mouseleave",xs.Mouseout="mouseout",xs.Contextmenu="contextmenu",(Sr=y.SceneEvent||(y.SceneEvent={})).Loaded="loaded",Sr.MapMove="mapmove",Sr.MoveStart="movestart",Sr.MoveEnd="moveend",Sr.ZoomChange="zoomchange",Sr.ZoomStart="zoomstart",Sr.ZoomEnd="zoomend",Sr.Click="click",Sr.Dblclick="dblclick",Sr.Mousemove="mousemove",Sr.Mousewheel="mousewheel",Sr.Mouseover="mouseover",Sr.Mouseout="mouseout",Sr.Mouseup="mouseup",Sr.Mousedown="mousedown",Sr.Contextmenu="contextmenu",Sr.Dragstart="dragstart",Sr.Dragging="dragging",Sr.Dragend="dragend",(ui=y.ControlEvent||(y.ControlEvent={})).DrawChange="drawchange",ui.DataChange="datachange",ui.DrawSelect="drawselect";var Bl=63710088e-1,Fa={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Bl,kilometers:6371.0088,kilometres:6371.0088,meters:Bl,metres:Bl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Bl/1852,radians:1,yards:6967335223679999e-9},ml={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function la(Se,$e,Je){Je===void 0&&(Je={});var Re={type:"Feature"};return(Je.id===0||Je.id)&&(Re.id=Je.id),Je.bbox&&(Re.bbox=Je.bbox),Re.properties=$e||{},Re.geometry=Se,Re}function Nl(Se,$e,Je){if(Je===void 0&&(Je={}),!Se)throw Error("coordinates is required");if(!Array.isArray(Se))throw Error("coordinates must be an Array");if(2>Se.length)throw Error("coordinates must be at least 2 numbers long");if(!eo(Se[0])||!eo(Se[1]))throw Error("coordinates must contain numbers");return la({type:"Point",coordinates:Se},$e,Je)}function vs(Se,$e,Je){Je===void 0&&(Je={});for(var Re=0,ot=Se;ot.length>Re;Re++){var Lt=ot[Re];if(4>Lt.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var on=0;Lt[Lt.length-1].length>on;on++)if(Lt[Lt.length-1][on]!==Lt[0][on])throw Error("First and last Position are not equivalent.")}return la({type:"Polygon",coordinates:Se},$e,Je)}function Hi(Se,$e,Je){if(Je===void 0&&(Je={}),2>Se.length)throw Error("coordinates must be an array of two or more positions");return la({type:"LineString",coordinates:Se},$e,Je)}function to(Se,$e){$e===void 0&&($e={});var Je={type:"FeatureCollection"};return $e.id&&(Je.id=$e.id),$e.bbox&&(Je.bbox=$e.bbox),Je.features=Se,Je}function sa(Se,$e,Je){return Je===void 0&&(Je={}),la({type:"MultiLineString",coordinates:Se},$e,Je)}function Cs(Se,$e,Je){return Je===void 0&&(Je={}),la({type:"MultiPoint",coordinates:Se},$e,Je)}function Ka(Se,$e,Je){return Je===void 0&&(Je={}),la({type:"MultiPolygon",coordinates:Se},$e,Je)}function Wu(Se,$e){$e===void 0&&($e="kilometers");var Je=Fa[$e];if(!Je)throw Error($e+" units is invalid");return Se*Je}function rc(Se,$e){$e===void 0&&($e="kilometers");var Je=Fa[$e];if(!Je)throw Error($e+" units is invalid");return Se/Je}function Pc(Se){return 180*(Se%(2*Math.PI))/Math.PI}function vo(Se){return Se%360*Math.PI/180}function eo(Se){return!isNaN(Se)&&Se!==null&&!Array.isArray(Se)}function ds(Se){return!!Se&&Se.constructor===Object}var Wn=Object.freeze({__proto__:null,earthRadius:Bl,factors:Fa,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Bl,yards:1.0936133},areaFactors:ml,feature:la,geometry:function(Se,$e,Je){switch(Se){case"Point":return Nl($e).geometry;case"LineString":return Hi($e).geometry;case"Polygon":return vs($e).geometry;case"MultiPoint":return Cs($e).geometry;case"MultiLineString":return sa($e).geometry;case"MultiPolygon":return Ka($e).geometry;default:throw Error(Se+" is invalid")}},point:Nl,points:function(Se,$e,Je){return Je===void 0&&(Je={}),to(Se.map(function(Re){return Nl(Re,$e)}),Je)},polygon:vs,polygons:function(Se,$e,Je){return Je===void 0&&(Je={}),to(Se.map(function(Re){return vs(Re,$e)}),Je)},lineString:Hi,lineStrings:function(Se,$e,Je){return Je===void 0&&(Je={}),to(Se.map(function(Re){return Hi(Re,$e)}),Je)},featureCollection:to,multiLineString:sa,multiPoint:Cs,multiPolygon:Ka,geometryCollection:function(Se,$e,Je){return Je===void 0&&(Je={}),la({type:"GeometryCollection",geometries:Se},$e,Je)},round:function(Se,$e){if($e===void 0&&($e=0),$e&&$e<0)throw Error("precision must be a positive number");var Je=Math.pow(10,$e||0);return Math.round(Se*Je)/Je},radiansToLength:Wu,lengthToRadians:rc,lengthToDegrees:function(Se,$e){return Pc(rc(Se,$e))},bearingToAzimuth:function(Se){var $e=Se%360;return 0>$e&&($e+=360),$e},radiansToDegrees:Pc,degreesToRadians:vo,convertLength:function(Se,$e,Je){if($e===void 0&&($e="kilometers"),Je===void 0&&(Je="kilometers"),Se<0)throw Error("length must be a positive number");return Wu(rc(Se,$e),Je)},convertArea:function(Se,$e,Je){if($e===void 0&&($e="meters"),Je===void 0&&(Je="kilometers"),Se<0)throw Error("area must be a positive number");var Re=ml[$e];if(!Re)throw Error("invalid original units");var ot=ml[Je];if(!ot)throw Error("invalid final units");return Se/Re*ot},isNumber:eo,isObject:ds,validateBBox:function(Se){if(!Se)throw Error("bbox is required");if(!Array.isArray(Se))throw Error("bbox must be an Array");if(Se.length!==4&&Se.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Se.forEach(function($e){if(!eo($e))throw Error("bbox must only contain numbers")})},validateId:function(Se){if(!Se)throw Error("id is required");if(["string","number"].indexOf(typeof Se)===-1)throw Error("id must be a number or a string")}});function yr(Se,$e,Je){if(Se!==null)for(var Re,ot,Lt,on,Fn,Xn,zi,ns,Fo=0,Ho=0,$u=Se.type,gu=$u==="FeatureCollection",Kl=$u==="Feature",Sl=gu?Se.features.length:1,ql=0;Sl>ql;ql++){Fn=(ns=!!(zi=gu?Se.features[ql].geometry:Kl?Se.geometry:Se)&&zi.type==="GeometryCollection")?zi.geometries.length:1;for(var ol=0;Fn>ol;ol++){var Ga=0,pu=0;if((on=ns?zi.geometries[ol]:zi)!==null){Xn=on.coordinates;var oc=on.type;switch(Fo=!Je||oc!=="Polygon"&&oc!=="MultiPolygon"?0:1,oc){case null:break;case"Point":if($e(Xn,Ho,ql,Ga,pu)===!1)return!1;Ho++,Ga++;break;case"LineString":case"MultiPoint":for(Re=0;Xn.length>Re;Re++){if($e(Xn[Re],Ho,ql,Ga,pu)===!1)return!1;Ho++,oc==="MultiPoint"&&Ga++}oc==="LineString"&&Ga++;break;case"Polygon":case"MultiLineString":for(Re=0;Xn.length>Re;Re++){for(ot=0;Xn[Re].length-Fo>ot;ot++){if($e(Xn[Re][ot],Ho,ql,Ga,pu)===!1)return!1;Ho++}oc==="MultiLineString"&&Ga++,oc==="Polygon"&&pu++}oc==="Polygon"&&Ga++;break;case"MultiPolygon":for(Re=0;Xn.length>Re;Re++){for(pu=0,ot=0;Xn[Re].length>ot;ot++){for(Lt=0;Xn[Re][ot].length-Fo>Lt;Lt++){if($e(Xn[Re][ot][Lt],Ho,ql,Ga,pu)===!1)return!1;Ho++}pu++}Ga++}break;case"GeometryCollection":for(Re=0;on.geometries.length>Re;Re++)if(yr(on.geometries[Re],$e,Je)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function ai(Se,$e){var Je;switch(Se.type){case"FeatureCollection":for(Je=0;Se.features.length>Je&&$e(Se.features[Je].properties,Je)!==!1;Je++);break;case"Feature":$e(Se.properties,0)}}function hi(Se,$e){if(Se.type==="Feature")$e(Se,0);else if(Se.type==="FeatureCollection")for(var Je=0;Se.features.length>Je&&$e(Se.features[Je],Je)!==!1;Je++);}function Ji(Se){var $e=[];return yr(Se,function(Je){$e.push(Je)}),$e}function so(Se,$e){var Je,Re,ot,Lt,on,Fn,Xn,zi,ns,Fo,Ho=0,$u=Se.type==="FeatureCollection",gu=Se.type==="Feature",Kl=$u?Se.features.length:1;for(Je=0;Kl>Je;Je++){for(zi=$u?Se.features[Je].properties:gu?Se.properties:{},ns=$u?Se.features[Je].bbox:gu?Se.bbox:void 0,Fo=$u?Se.features[Je].id:gu?Se.id:void 0,on=(Xn=!!(Fn=$u?Se.features[Je].geometry:gu?Se.geometry:Se)&&Fn.type==="GeometryCollection")?Fn.geometries.length:1,ot=0;on>ot;ot++)if((Lt=Xn?Fn.geometries[ot]:Fn)!==null)switch(Lt.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if($e(Lt,Ho,zi,ns,Fo)===!1)return!1;break;case"GeometryCollection":for(Re=0;Lt.geometries.length>Re;Re++)if($e(Lt.geometries[Re],Ho,zi,ns,Fo)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if($e(null,Ho,zi,ns,Fo)===!1)return!1;Ho++}}function Pi(Se,$e,Je){var Re=Je;return so(Se,function(ot,Lt,on,Fn,Xn){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt,on,Fn,Xn)}),Re}function us(Se,$e){so(Se,function(Je,Re,ot,Lt,on){var Fn,Xn=Je===null?null:Je.type;switch(Xn){case null:case"Point":case"LineString":case"Polygon":return $e(la(Je,ot,{bbox:Lt,id:on}),Re,0)!==!1&&void 0}switch(Xn){case"MultiPoint":Fn="Point";break;case"MultiLineString":Fn="LineString";break;case"MultiPolygon":Fn="Polygon"}for(var zi=0;Je.coordinates.length>zi;zi++)if($e(la({type:Fn,coordinates:Je.coordinates[zi]},ot),Re,zi)===!1)return!1})}function pa(Se,$e){us(Se,function(Je,Re,ot){var Lt=0;if(Je.geometry){var on=Je.geometry.type;if(on!=="Point"&&on!=="MultiPoint"){var Fn,Xn=0,zi=0,ns=0;return yr(Je,function(Fo,Ho,$u,gu,Kl){if(Fn===void 0||Re>Xn||gu>zi||Kl>ns)return Fn=Fo,Xn=Re,zi=gu,ns=Kl,void(Lt=0);var Sl=Hi([Fn,Fo],Je.properties);if($e(Sl,Re,ot,Kl,Lt)===!1)return!1;Lt++,Fn=Fo})!==!1&&void 0}}})}function $a(Se,$e,Je){var Re=Je,ot=!1;return pa(Se,function(Lt,on,Fn,Xn,zi){Re=ot===!1&&Je===void 0?Lt:$e(Re,Lt,on,Fn,Xn,zi),ot=!0}),Re}function hl(Se,$e){if(!Se)throw Error("geojson is required");us(Se,function(Je,Re,ot){if(Je.geometry!==null){var Lt=Je.geometry.coordinates;switch(Je.geometry.type){case"LineString":if($e(Je,Re,ot,0,0)===!1)return!1;break;case"Polygon":for(var on=0;Lt.length>on;on++)if($e(Hi(Lt[on],Je.properties),Re,ot,on)===!1)return!1}}})}var Zl=Object.freeze({__proto__:null,coordAll:Ji,coordEach:yr,coordReduce:function(Se,$e,Je,Re){var ot=Je;return yr(Se,function(Lt,on,Fn,Xn,zi){ot=on===0&&Je===void 0?Lt:$e(ot,Lt,on,Fn,Xn,zi)},Re),ot},featureEach:hi,featureReduce:function(Se,$e,Je){var Re=Je;return hi(Se,function(ot,Lt){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt)}),Re},findPoint:function(Se,$e){if(!ds($e=$e||{}))throw Error("options is invalid");var Je,Re=$e.featureIndex||0,ot=$e.multiFeatureIndex||0,Lt=$e.geometryIndex||0,on=$e.coordIndex||0,Fn=$e.properties;switch(Se.type){case"FeatureCollection":0>Re&&(Re=Se.features.length+Re),Fn=Fn||Se.features[Re].properties,Je=Se.features[Re].geometry;break;case"Feature":Fn=Fn||Se.properties,Je=Se.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=Se;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Xn=Je.coordinates;switch(Je.type){case"Point":return Nl(Xn,Fn,$e);case"MultiPoint":return 0>ot&&(ot=Xn.length+ot),Nl(Xn[ot],Fn,$e);case"LineString":return 0>on&&(on=Xn.length+on),Nl(Xn[on],Fn,$e);case"Polygon":return 0>Lt&&(Lt=Xn.length+Lt),0>on&&(on=Xn[Lt].length+on),Nl(Xn[Lt][on],Fn,$e);case"MultiLineString":return 0>ot&&(ot=Xn.length+ot),0>on&&(on=Xn[ot].length+on),Nl(Xn[ot][on],Fn,$e);case"MultiPolygon":return 0>ot&&(ot=Xn.length+ot),0>Lt&&(Lt=Xn[ot].length+Lt),0>on&&(on=Xn[ot][Lt].length-on),Nl(Xn[ot][Lt][on],Fn,$e)}throw Error("geojson is invalid")},findSegment:function(Se,$e){if(!ds($e=$e||{}))throw Error("options is invalid");var Je,Re=$e.featureIndex||0,ot=$e.multiFeatureIndex||0,Lt=$e.geometryIndex||0,on=$e.segmentIndex||0,Fn=$e.properties;switch(Se.type){case"FeatureCollection":0>Re&&(Re=Se.features.length+Re),Fn=Fn||Se.features[Re].properties,Je=Se.features[Re].geometry;break;case"Feature":Fn=Fn||Se.properties,Je=Se.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=Se;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Xn=Je.coordinates;switch(Je.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>on&&(on=Xn.length+on-1),Hi([Xn[on],Xn[on+1]],Fn,$e);case"Polygon":return 0>Lt&&(Lt=Xn.length+Lt),0>on&&(on=Xn[Lt].length+on-1),Hi([Xn[Lt][on],Xn[Lt][on+1]],Fn,$e);case"MultiLineString":return 0>ot&&(ot=Xn.length+ot),0>on&&(on=Xn[ot].length+on-1),Hi([Xn[ot][on],Xn[ot][on+1]],Fn,$e);case"MultiPolygon":return 0>ot&&(ot=Xn.length+ot),0>Lt&&(Lt=Xn[ot].length+Lt),0>on&&(on=Xn[ot][Lt].length-on-1),Hi([Xn[ot][Lt][on],Xn[ot][Lt][on+1]],Fn,$e)}throw Error("geojson is invalid")},flattenEach:us,flattenReduce:function(Se,$e,Je){var Re=Je;return us(Se,function(ot,Lt,on){Re=Lt===0&&on===0&&Je===void 0?ot:$e(Re,ot,Lt,on)}),Re},geomEach:so,geomReduce:Pi,lineEach:hl,lineReduce:function(Se,$e,Je){var Re=Je;return hl(Se,function(ot,Lt,on,Fn){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt,on,Fn)}),Re},propEach:ai,propReduce:function(Se,$e,Je){var Re=Je;return ai(Se,function(ot,Lt){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt)}),Re},segmentEach:pa,segmentReduce:$a});function Ml(Se){var $e=[1/0,1/0,-1/0,-1/0];return yr(Se,function(Je){$e[0]>Je[0]&&($e[0]=Je[0]),$e[1]>Je[1]&&($e[1]=Je[1]),Je[0]>$e[2]&&($e[2]=Je[0]),Je[1]>$e[3]&&($e[3]=Je[1])}),$e}Ml.default=Ml;var Za=Object.freeze({__proto__:null,default:Ml});function ku(Se){if(!Se)throw Error("coord is required");if(!Array.isArray(Se)){if(Se.type==="Feature"&&Se.geometry!==null&&Se.geometry.type==="Point")return Se.geometry.coordinates;if(Se.type==="Point")return Se.coordinates}if(Array.isArray(Se)&&Se.length>=2&&!Array.isArray(Se[0])&&!Array.isArray(Se[1]))return Se;throw Error("coord must be GeoJSON Point or an Array of numbers")}function ea(Se){if(Array.isArray(Se))return Se;if(Se.type==="Feature"){if(Se.geometry!==null)return Se.geometry.coordinates}else if(Se.coordinates)return Se.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Qa(Se){return Se.type==="Feature"?Se.geometry:Se}function el(Se,$e){return Se.type==="FeatureCollection"?"FeatureCollection":Se.type==="GeometryCollection"?"GeometryCollection":Se.type==="Feature"&&Se.geometry!==null?Se.geometry.type:Se.type}function Hl(Se,$e,Je,Re,ot){Jl(Se,$e,Je||0,Re||Se.length-1,ot||au)}function Jl(Se,$e,Je,Re,ot){for(;Re>Je;){if(Re-Je>600){var Lt=Re-Je+1,on=$e-Je+1,Fn=Math.log(Lt),Xn=.5*Math.exp(2*Fn/3),zi=.5*Math.sqrt(Fn*Xn*(Lt-Xn)/Lt)*(0>on-Lt/2?-1:1);Jl(Se,$e,Math.max(Je,Math.floor($e-on*Xn/Lt+zi)),Math.min(Re,Math.floor($e+(Lt-on)*Xn/Lt+zi)),ot)}var ns=Se[$e],Fo=Je,Ho=Re;for(vu(Se,Je,$e),ot(Se[Re],ns)>0&&vu(Se,Je,Re);Ho>Fo;){for(vu(Se,Fo,Ho),Fo++,Ho--;0>ot(Se[Fo],ns);)Fo++;for(;ot(Se[Ho],ns)>0;)Ho--}ot(Se[Je],ns)===0?vu(Se,Je,Ho):vu(Se,++Ho,Re),Ho>$e||(Je=Ho+1),$e>Ho||(Re=Ho-1)}}function vu(Se,$e,Je){var Re=Se[$e];Se[$e]=Se[Je],Se[Je]=Re}function au(Se,$e){return $e>Se?-1:Se>$e?1:0}function Cn(Se,$e,Je){if(!Je)return $e.indexOf(Se);for(let Re=0;$e.length>Re;Re++)if(Je(Se,$e[Re]))return Re;return-1}function Eu(Se,$e){ls(Se,0,Se.children.length,$e,Se)}function ls(Se,$e,Je,Re,ot){ot||(ot=Ic(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=$e;Je>Lt;Lt++){const on=Se.children[Lt];Ks(ot,Se.leaf?Re(on):on)}return ot}function Ks(Se,$e){return Se.minX=Math.min(Se.minX,$e.minX),Se.minY=Math.min(Se.minY,$e.minY),Se.maxX=Math.max(Se.maxX,$e.maxX),Se.maxY=Math.max(Se.maxY,$e.maxY),Se}function xa(Se,$e){return Se.minX-$e.minX}function Il(Se,$e){return Se.minY-$e.minY}function El(Se){return(Se.maxX-Se.minX)*(Se.maxY-Se.minY)}function vl(Se){return Se.maxX-Se.minX+(Se.maxY-Se.minY)}function fu(Se,$e){const Je=Math.max(Se.minX,$e.minX),Re=Math.max(Se.minY,$e.minY),ot=Math.min(Se.maxX,$e.maxX),Lt=Math.min(Se.maxY,$e.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Re)}function Fu(Se,$e){return!(Se.minX>$e.minX||Se.minY>$e.minY||$e.maxX>Se.maxX||$e.maxY>Se.maxY)}function lc(Se,$e){return!($e.minX>Se.maxX||$e.minY>Se.maxY||Se.minX>$e.maxX||Se.minY>$e.maxY)}function Ic(Se){return{children:Se,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Uc(Se,$e,Je,Re,ot){const Lt=[$e,Je];for(;Lt.length;){if(Re>=(Je=Lt.pop())-($e=Lt.pop()))continue;const on=$e+Math.ceil((Je-$e)/Re/2)*Re;Hl(Se,on,$e,Je,ot),Lt.push($e,on,on,Je)}}var zd=Object.freeze({__proto__:null,default:class{constructor(Se=9){this._maxEntries=Math.max(4,Se),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Se){let $e=this.data;const Je=[];if(!lc(Se,$e))return Je;const Re=this.toBBox,ot=[];for(;$e;){for(let Lt=0;$e.children.length>Lt;Lt++){const on=$e.children[Lt],Fn=$e.leaf?Re(on):on;lc(Se,Fn)&&($e.leaf?Je.push(on):Fu(Se,Fn)?this._all(on,Je):ot.push(on))}$e=ot.pop()}return Je}collides(Se){let $e=this.data;if(!lc(Se,$e))return!1;const Je=[];for(;$e;){for(let Re=0;$e.children.length>Re;Re++){const ot=$e.children[Re],Lt=$e.leaf?this.toBBox(ot):ot;if(lc(Se,Lt)){if($e.leaf||Fu(Se,Lt))return!0;Je.push(ot)}}$e=Je.pop()}return!1}load(Se){if(!Se||!Se.length)return this;if(this._minEntries>Se.length){for(let Je=0;Se.length>Je;Je++)this.insert(Se[Je]);return this}let $e=this._build(Se.slice(),0,Se.length-1,0);if(this.data.children.length)if(this.data.height===$e.height)this._splitRoot(this.data,$e);else{if($e.height>this.data.height){const Je=this.data;this.data=$e,$e=Je}this._insert($e,this.data.height-$e.height-1,!0)}else this.data=$e;return this}insert(Se){return Se&&this._insert(Se,this.data.height-1),this}clear(){return this.data=Ic([]),this}remove(Se,$e){if(!Se)return this;let Je=this.data;const Re=this.toBBox(Se),ot=[],Lt=[];let on,Fn,Xn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],on=Lt.pop(),Xn=!0),Je.leaf){const zi=Cn(Se,Je.children,$e);if(zi!==-1)return Je.children.splice(zi,1),ot.push(Je),this._condense(ot),this}Xn||Je.leaf||!Fu(Je,Re)?Fn?(on++,Je=Fn.children[on],Xn=!1):Je=null:(ot.push(Je),Lt.push(on),on=0,Fn=Je,Je=Je.children[0])}return this}toBBox(Se){return Se}compareMinX(Se,$e){return Se.minX-$e.minX}compareMinY(Se,$e){return Se.minY-$e.minY}toJSON(){return this.data}fromJSON(Se){return this.data=Se,this}_all(Se,$e){const Je=[];for(;Se;)Se.leaf?$e.push(...Se.children):Je.push(...Se.children),Se=Je.pop();return $e}_build(Se,$e,Je,Re){const ot=Je-$e+1;let Lt,on=this._maxEntries;if(on>=ot)return Lt=Ic(Se.slice($e,Je+1)),Eu(Lt,this.toBBox),Lt;Re||(on=Math.ceil(ot/Math.pow(on,(Re=Math.ceil(Math.log(ot)/Math.log(on)))-1))),Lt=Ic([]),Lt.leaf=!1,Lt.height=Re;const Fn=Math.ceil(ot/on),Xn=Fn*Math.ceil(Math.sqrt(on));Uc(Se,$e,Je,Xn,this.compareMinX);for(let zi=$e;Je>=zi;zi+=Xn){const ns=Math.min(zi+Xn-1,Je);Uc(Se,zi,ns,Fn,this.compareMinY);for(let Fo=zi;ns>=Fo;Fo+=Fn)Lt.children.push(this._build(Se,Fo,Math.min(Fo+Fn-1,ns),Re-1))}return Eu(Lt,this.toBBox),Lt}_chooseSubtree(Se,$e,Je,Re){for(;Re.push($e),!$e.leaf&&Re.length-1!==Je;){let on,Fn=1/0,Xn=1/0;for(let zi=0;$e.children.length>zi;zi++){const ns=$e.children[zi],Fo=El(ns),Ho=(Math.max((Lt=ns).maxX,(ot=Se).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Fo;Xn>Ho?(Xn=Ho,Fn=Fn>Fo?Fo:Fn,on=ns):Ho===Xn&&Fn>Fo&&(Fn=Fo,on=ns)}$e=on||$e.children[0]}var ot,Lt;return $e}_insert(Se,$e,Je){const Re=Je?Se:this.toBBox(Se),ot=[],Lt=this._chooseSubtree(Re,this.data,$e,ot);for(Lt.children.push(Se),Ks(Lt,Re);$e>=0&&ot[$e].children.length>this._maxEntries;)this._split(ot,$e),$e--;this._adjustParentBBoxes(Re,ot,$e)}_split(Se,$e){const Je=Se[$e],Re=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Re);const Lt=this._chooseSplitIndex(Je,ot,Re),on=Ic(Je.children.splice(Lt,Je.children.length-Lt));on.height=Je.height,on.leaf=Je.leaf,Eu(Je,this.toBBox),Eu(on,this.toBBox),$e?Se[$e-1].children.push(on):this._splitRoot(Je,on)}_splitRoot(Se,$e){this.data=Ic([Se,$e]),this.data.height=Se.height+1,this.data.leaf=!1,Eu(this.data,this.toBBox)}_chooseSplitIndex(Se,$e,Je){let Re,ot=1/0,Lt=1/0;for(let on=$e;Je-$e>=on;on++){const Fn=ls(Se,0,on,this.toBBox),Xn=ls(Se,on,Je,this.toBBox),zi=fu(Fn,Xn),ns=El(Fn)+El(Xn);ot>zi?(ot=zi,Re=on,Lt=Lt>ns?ns:Lt):zi===ot&&Lt>ns&&(Lt=ns,Re=on)}return Re||Je-$e}_chooseSplitAxis(Se,$e,Je){const Re=Se.leaf?this.compareMinX:xa,ot=Se.leaf?this.compareMinY:Il,Lt=this._allDistMargin(Se,$e,Je,Re);this._allDistMargin(Se,$e,Je,ot)>Lt&&Se.children.sort(Re)}_allDistMargin(Se,$e,Je,Re){Se.children.sort(Re);const ot=this.toBBox,Lt=ls(Se,0,$e,ot),on=ls(Se,Je-$e,Je,ot);let Fn=vl(Lt)+vl(on);for(let Xn=$e;Je-$e>Xn;Xn++){const zi=Se.children[Xn];Ks(Lt,Se.leaf?ot(zi):zi),Fn+=vl(Lt)}for(let Xn=Je-$e-1;Xn>=$e;Xn--){const zi=Se.children[Xn];Ks(on,Se.leaf?ot(zi):zi),Fn+=vl(on)}return Fn}_adjustParentBBoxes(Se,$e,Je){for(let Re=Je;Re>=0;Re--)Ks($e[Re],Se)}_condense(Se){for(let $e,Je=Se.length-1;Je>=0;Je--)Se[Je].children.length===0?Je>0?($e=Se[Je-1].children,$e.splice($e.indexOf(Se[Je]),1)):this.clear():Eu(Se[Je],this.toBBox)}}});function th(Se,$e){return $e>Se?-1:Se>$e?1:0}var Xd=Object.freeze({__proto__:null,default:class{constructor(Se=[],$e=th){if(this.data=Se,this.length=this.data.length,this.compare=$e,this.length>0)for(let Je=(this.length>>1)-1;Je>=0;Je--)this._down(Je)}push(Se){this.data.push(Se),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Se=this.data[0],$e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=$e,this._down(0)),Se}peek(){return this.data[0]}_up(Se){const{data:$e,compare:Je}=this,Re=$e[Se];for(;Se>0;){const ot=Se-1>>1,Lt=$e[ot];if(Je(Re,Lt)>=0)break;$e[Se]=Lt,Se=ot}$e[Se]=Re}_down(Se){const{data:$e,compare:Je}=this,Re=this.length>>1,ot=$e[Se];for(;Re>Se;){let Lt=1+(Se<<1),on=$e[Lt];const Fn=Lt+1;if(this.length>Fn&&0>Je($e[Fn],on)&&(Lt=Fn,on=$e[Fn]),Je(on,ot)>=0)break;$e[Se]=on,Se=Lt}$e[Se]=ot}}}),sd=function(Se,$e,Je,Re){var ot=Se[0],Lt=Se[1],on=!1;Je===void 0&&(Je=0),Re===void 0&&(Re=$e.length);for(var Fn=(Re-Je)/2,Xn=0,zi=Fn-1;Fn>Xn;zi=Xn++){var ns=$e[Je+2*Xn+0],Fo=$e[Je+2*Xn+1],Ho=$e[Je+2*zi+1];Fo>Lt!=Ho>Lt&&($e[Je+2*zi+0]-ns)*(Lt-Fo)/(Ho-Fo)+ns>ot&&(on=!on)}return on},Mu=function(Se,$e,Je,Re){var ot=Se[0],Lt=Se[1],on=!1;Je===void 0&&(Je=0),Re===void 0&&(Re=$e.length);for(var Fn=Re-Je,Xn=0,zi=Fn-1;Fn>Xn;zi=Xn++){var ns=$e[Xn+Je][0],Fo=$e[Xn+Je][1],Ho=$e[zi+Je][1];Fo>Lt!=Ho>Lt&&($e[zi+Je][0]-ns)*(Lt-Fo)/(Ho-Fo)+ns>ot&&(on=!on)}return on},Fc=function(Se,$e,Je,Re){return $e.length>0&&Array.isArray($e[0])?Mu(Se,$e,Je,Re):sd(Se,$e,Je,Re)},hd=sd;Fc.nested=Mu,Fc.flat=hd;var vd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof m.g!="undefined"?m.g:typeof self!="undefined"?self:{};function Yd(Se,$e,Je){return Se(Je={path:$e,exports:{},require:function(Re,ot){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},Je.exports),Je.exports}function nh(Se){if(Se.__esModule)return Se;var $e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Se).forEach(function(Je){var Re=Object.getOwnPropertyDescriptor(Se,Je);Object.defineProperty($e,Je,Re.get?Re:{enumerable:!0,get:function(){return Se[Je]}})}),$e}var jd=Yd(function(Se,$e){(function(Je){const ot=33306690738754706e-32;function Lt(Kl,Sl,ql,ol,Ga){let pu,oc,cd,Oo,Jh=Sl[0],xc=ol[0],fh=0,Gd=0;xc>Jh==xc>-Jh?(pu=Jh,Jh=Sl[++fh]):(pu=xc,xc=ol[++Gd]);let _=0;if(Kl>fh&&ql>Gd)for(xc>Jh==xc>-Jh?(cd=pu-((oc=Jh+pu)-Jh),Jh=Sl[++fh]):(cd=pu-((oc=xc+pu)-xc),xc=ol[++Gd]),pu=oc,cd!==0&&(Ga[_++]=cd);Kl>fh&&ql>Gd;)xc>Jh==xc>-Jh?(cd=pu-((oc=pu+Jh)-(Oo=oc-pu))+(Jh-Oo),Jh=Sl[++fh]):(cd=pu-((oc=pu+xc)-(Oo=oc-pu))+(xc-Oo),xc=ol[++Gd]),pu=oc,cd!==0&&(Ga[_++]=cd);for(;Kl>fh;)cd=pu-((oc=pu+Jh)-(Oo=oc-pu))+(Jh-Oo),Jh=Sl[++fh],pu=oc,cd!==0&&(Ga[_++]=cd);for(;ql>Gd;)cd=pu-((oc=pu+xc)-(Oo=oc-pu))+(xc-Oo),xc=ol[++Gd],pu=oc,cd!==0&&(Ga[_++]=cd);return pu===0&&_!==0||(Ga[_++]=pu),_}function on(Kl){return new Float64Array(Kl)}const Fn=33306690738754716e-32,Xn=22204460492503146e-32,zi=11093356479670487e-47,ns=on(4),Fo=on(8),Ho=on(12),$u=on(16),gu=on(4);Je.orient2d=function(Kl,Sl,ql,ol,Ga,pu){const oc=(Sl-pu)*(ql-Ga),cd=(Kl-Ga)*(ol-pu),Oo=oc-cd;if(oc===0||cd===0||oc>0!=cd>0)return Oo;const Jh=Math.abs(oc+cd);return Fn*Jh>Math.abs(Oo)?-function(xc,fh,Gd,_,R,Z,ue){let Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,Vl,cu,lu;const Hu=xc-R,kc=Gd-R,ac=fh-Z,_d=_-Z;Nn=(Ol=(bi=Hu-(Ur=(cr=134217729*Hu)-(cr-Hu)))*(zo=_d-(_o=(cr=134217729*_d)-(cr-_d)))-((Pa=Hu*_d)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=ac-(Ur=(cr=134217729*ac)-(cr-ac)))*(zo=kc-(_o=(cr=134217729*kc)-(cr-kc)))-((Vl=ac*kc)-Ur*_o-bi*_o-Ur*zo))),ns[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-Vl),ns[1]=al-(qs+Nn)+(Nn-Vl),Nn=(lu=ra+qs)-ra,ns[2]=ra-(lu-Nn)+(qs-Nn),ns[3]=lu;let Xu=function(Gr,bo){let aa=bo[0];for(let Ya=1;Gr>Ya;Ya++)aa+=bo[Ya];return aa}(4,ns),Nd=Xn*ue;if(Xu>=Nd||-Xu>=Nd||(Pe=xc-(Hu+(Nn=xc-Hu))+(Nn-R),wt=Gd-(kc+(Nn=Gd-kc))+(Nn-R),Qe=fh-(ac+(Nn=fh-ac))+(Nn-Z),jt=_-(_d+(Nn=_-_d))+(Nn-Z),Pe===0&&Qe===0&&wt===0&&jt===0)||(Nd=zi*ue+ot*Math.abs(Xu),(Xu+=Hu*jt+_d*Pe-(ac*wt+kc*Qe))>=Nd||-Xu>=Nd))return Xu;Nn=(Ol=(bi=Pe-(Ur=(cr=134217729*Pe)-(cr-Pe)))*(zo=_d-(_o=(cr=134217729*_d)-(cr-_d)))-((Pa=Pe*_d)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=Qe-(Ur=(cr=134217729*Qe)-(cr-Qe)))*(zo=kc-(_o=(cr=134217729*kc)-(cr-kc)))-((Vl=Qe*kc)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-Vl),gu[1]=al-(qs+Nn)+(Nn-Vl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const qt=Lt(4,ns,4,gu,Fo);Nn=(Ol=(bi=Hu-(Ur=(cr=134217729*Hu)-(cr-Hu)))*(zo=jt-(_o=(cr=134217729*jt)-(cr-jt)))-((Pa=Hu*jt)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=ac-(Ur=(cr=134217729*ac)-(cr-ac)))*(zo=wt-(_o=(cr=134217729*wt)-(cr-wt)))-((Vl=ac*wt)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-Vl),gu[1]=al-(qs+Nn)+(Nn-Vl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const On=Lt(qt,Fo,4,gu,Ho);Nn=(Ol=(bi=Pe-(Ur=(cr=134217729*Pe)-(cr-Pe)))*(zo=jt-(_o=(cr=134217729*jt)-(cr-jt)))-((Pa=Pe*jt)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=Qe-(Ur=(cr=134217729*Qe)-(cr-Qe)))*(zo=wt-(_o=(cr=134217729*wt)-(cr-wt)))-((Vl=Qe*wt)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-Vl),gu[1]=al-(qs+Nn)+(Nn-Vl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const hr=Lt(On,Ho,4,gu,$u);return $u[hr-1]}(Kl,Sl,ql,ol,Ga,pu,Jh):Oo},Je.orient2dfast=function(Kl,Sl,ql,ol,Ga,pu){return(Sl-pu)*(ql-Ga)-(Kl-Ga)*(ol-pu)},Object.defineProperty(Je,"__esModule",{value:!0})})($e)}),yh=nh(zd),id=nh(Xd),nd=jd.orient2d;id.default&&(id=id.default);var Pf=Jd;function Jd(Se,$e,Je){$e=Math.max(0,$e===void 0?2:$e),Je=Je||0;var Re=function(ol){for(var Ga=ol[0],pu=ol[0],oc=ol[0],cd=ol[0],Oo=0;ol.length>Oo;Oo++){var Jh=ol[Oo];Ga[0]>Jh[0]&&(Ga=Jh),Jh[0]>oc[0]&&(oc=Jh),pu[1]>Jh[1]&&(pu=Jh),Jh[1]>cd[1]&&(cd=Jh)}var xc=[Ga,pu,oc,cd],fh=xc.slice();for(Oo=0;ol.length>Oo;Oo++)Fc(ol[Oo],xc)||fh.push(ol[Oo]);return function(Gd){Gd.sort(ff);for(var _=[],R=0;Gd.length>R;R++){for(;_.length>=2&&0>=Sf(_[_.length-2],_[_.length-1],Gd[R]);)_.pop();_.push(Gd[R])}for(var Z=[],ue=Gd.length-1;ue>=0;ue--){for(;Z.length>=2&&0>=Sf(Z[Z.length-2],Z[Z.length-1],Gd[ue]);)Z.pop();Z.push(Gd[ue])}return Z.pop(),_.pop(),_.concat(Z)}(fh)}(Se),ot=new yh(16);ot.toBBox=function(ol){return{minX:ol[0],minY:ol[1],maxX:ol[0],maxY:ol[1]}},ot.compareMinX=function(ol,Ga){return ol[0]-Ga[0]},ot.compareMinY=function(ol,Ga){return ol[1]-Ga[1]},ot.load(Se);for(var Lt,on=[],Fn=0;Re.length>Fn;Fn++){var Xn=Re[Fn];ot.remove(Xn),Lt=Nf(Xn,Lt),on.push(Lt)}var zi=new yh(16);for(Fn=0;on.length>Fn;Fn++)zi.insert(xp(on[Fn]));for(var ns=$e*$e,Fo=Je*Je;on.length;){var Ho=on.shift(),$u=Ho.p,gu=Ho.next.p,Kl=ch($u,gu);if(Kl>=Fo){var Sl=Kl/ns;(Xn=cc(ot,Ho.prev.p,$u,gu,Ho.next.next.p,Sl,zi))&&Math.min(ch(Xn,$u),ch(Xn,gu))<=Sl&&(on.push(Ho),on.push(Nf(Xn,Ho)),ot.remove(Xn),zi.remove(Ho),zi.insert(xp(Ho)),zi.insert(xp(Ho.next)))}}Ho=Lt;var ql=[];do ql.push(Ho.p),Ho=Ho.next;while(Ho!==Lt);return ql.push(Ho.p),ql}function cc(Se,$e,Je,Re,ot,Lt,on){for(var Fn=new id([],Yc),Xn=Se.data;Xn;){for(var zi=0;Xn.children.length>zi;zi++){var ns=Xn.children[zi],Fo=Xn.leaf?Th(ns,Je,Re):jh(Je,Re,ns);LtHo.dist&&Kl>Ho.dist&&Lh(Je,$u,on)&&Lh(Re,$u,on))return $u}(Xn=Fn.pop())&&(Xn=Xn.node)}return null}function Yc(Se,$e){return Se.dist-$e.dist}function jh(Se,$e,Je){if(uf(Se,Je)||uf($e,Je))return 0;var Re=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.minY,Je.maxX,Je.minY);if(Re===0)return 0;var ot=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.minY,Je.minX,Je.maxY);if(ot===0)return 0;var Lt=yu(Se[0],Se[1],$e[0],$e[1],Je.maxX,Je.minY,Je.maxX,Je.maxY);if(Lt===0)return 0;var on=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.maxY,Je.maxX,Je.maxY);return on===0?0:Math.min(Re,ot,Lt,on)}function uf(Se,$e){return!($e.minX>Se[0]||Se[0]>$e.maxX||$e.minY>Se[1]||Se[1]>$e.maxY)}function Lh(Se,$e,Je){for(var Re,ot,Lt,on,Fn=Je.search({minX:Math.min(Se[0],$e[0]),minY:Math.min(Se[1],$e[1]),maxX:Math.max(Se[0],$e[0]),maxY:Math.max(Se[1],$e[1])}),Xn=0;Fn.length>Xn;Xn++)if(ot=Fn[Xn].next.p,Lt=Se,(Re=Fn[Xn].p)!==(on=$e)&&ot!==Lt&&Sf(Re,ot,Lt)>0!=Sf(Re,ot,on)>0&&Sf(Lt,on,Re)>0!=Sf(Lt,on,ot)>0)return!1;return!0}function Sf(Se,$e,Je){return nd(Se[0],Se[1],$e[0],$e[1],Je[0],Je[1])}function xp(Se){var $e=Se.p,Je=Se.next.p;return Se.minX=Math.min($e[0],Je[0]),Se.minY=Math.min($e[1],Je[1]),Se.maxX=Math.max($e[0],Je[0]),Se.maxY=Math.max($e[1],Je[1]),Se}function Nf(Se,$e){var Je={p:Se,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return $e?(Je.next=$e.next,Je.prev=$e,$e.next.prev=Je,$e.next=Je):(Je.prev=Je,Je.next=Je),Je}function ch(Se,$e){var Je=Se[0]-$e[0],Re=Se[1]-$e[1];return Je*Je+Re*Re}function Th(Se,$e,Je){var Re=$e[0],ot=$e[1],Lt=Je[0]-Re,on=Je[1]-ot;if(Lt!==0||on!==0){var Fn=((Se[0]-Re)*Lt+(Se[1]-ot)*on)/(Lt*Lt+on*on);Fn>1?(Re=Je[0],ot=Je[1]):Fn>0&&(Re+=Lt*Fn,ot+=on*Fn)}return(Lt=Se[0]-Re)*Lt+(on=Se[1]-ot)*on}function yu(Se,$e,Je,Re,ot,Lt,on,Fn){var Xn,zi,ns,Fo,Ho=Je-Se,$u=Re-$e,gu=on-ot,Kl=Fn-Lt,Sl=Se-ot,ql=$e-Lt,ol=Ho*Ho+$u*$u,Ga=Ho*gu+$u*Kl,pu=gu*gu+Kl*Kl,oc=Ho*Sl+$u*ql,cd=gu*Sl+Kl*ql,Oo=ol*pu-Ga*Ga,Jh=Oo,xc=Oo;Oo===0?(zi=0,Jh=1,Fo=cd,xc=pu):(Fo=ol*cd-Ga*oc,0>(zi=Ga*cd-pu*oc)?(zi=0,Fo=cd,xc=pu):zi>Jh&&(zi=Jh,Fo=cd+Ga,xc=pu)),0>Fo?(Fo=0,0>-oc?zi=0:-oc>ol?zi=Jh:(zi=-oc,Jh=ol)):Fo>xc&&(Fo=xc,0>-oc+Ga?zi=0:-oc+Ga>ol?zi=Jh:(zi=-oc+Ga,Jh=ol));var fh=(1-(ns=Fo===0?0:Fo/xc))*ot+ns*on-((1-(Xn=zi===0?0:zi/Jh))*Se+Xn*Je),Gd=(1-ns)*Lt+ns*Fn-((1-Xn)*$e+Xn*Re);return fh*fh+Gd*Gd}function ff(Se,$e){return Se[0]===$e[0]?Se[1]-$e[1]:Se[0]-$e[0]}function tl(Se,$e,Je){Je===void 0&&(Je={});var Re=ku(Se),ot=ku($e),Lt=vo(ot[1]-Re[1]),on=vo(ot[0]-Re[0]),Fn=vo(Re[1]),Xn=vo(ot[1]),zi=Math.pow(Math.sin(Lt/2),2)+Math.pow(Math.sin(on/2),2)*Math.cos(Fn)*Math.cos(Xn);return Wu(2*Math.atan2(Math.sqrt(zi),Math.sqrt(1-zi)),Je.units)}function Bu(Se){return function($e,Je){Je===void 0&&(Je={});var Re=Number($e[0]),ot=Number($e[1]),Lt=Number($e[2]),on=Number($e[3]);if($e.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Fn=[Re,ot];return vs([[Fn,[Lt,ot],[Lt,on],[Re,on],Fn]],Je.properties,{bbox:$e,id:Je.id})}(Ml(Se))}function wd(Se,$e,Je,Re){Re===void 0&&(Re={});var ot=ku(Se),Lt=vo(ot[0]),on=vo(ot[1]),Fn=vo(Je),Xn=rc($e,Re.units),zi=Math.asin(Math.sin(on)*Math.cos(Xn)+Math.cos(on)*Math.sin(Xn)*Math.cos(Fn));return Nl([Pc(Lt+Math.atan2(Math.sin(Fn)*Math.sin(Xn)*Math.cos(on),Math.cos(Xn)-Math.sin(on)*Math.sin(zi))),Pc(zi)],Re.properties)}function qd(Se,$e,Je){if(Je===void 0&&(Je={}),Je.final===!0)return function(zi,ns){var Fo=qd(ns,zi);return Fo=(Fo+180)%360}(Se,$e);var Re=ku(Se),ot=ku($e),Lt=vo(Re[0]),on=vo(ot[0]),Fn=vo(Re[1]),Xn=vo(ot[1]);return Pc(Math.atan2(Math.sin(on-Lt)*Math.cos(Xn),Math.cos(Fn)*Math.sin(Xn)-Math.sin(Fn)*Math.cos(Xn)*Math.cos(on-Lt)))}function ja(Se,$e){$e===void 0&&($e={});var Je=Ml(Se);return Nl([(Je[0]+Je[2])/2,(Je[1]+Je[3])/2],$e.properties,$e)}function ru(Se,$e){$e===void 0&&($e={});var Je=0,Re=0,ot=0;return yr(Se,function(Lt){Je+=Lt[0],Re+=Lt[1],ot++},!0),Nl([Je/ot,Re/ot],$e.properties)}function zl(Se,$e){switch($e===void 0&&($e={}),el(Se)){case"Point":return Nl(ku(Se),$e.properties);case"Polygon":var Je=[];yr(Se,function(Ga){Je.push(Ga)});var Re,ot,Lt,on,Fn,Xn,zi,ns,Fo=ru(Se,{properties:$e.properties}),Ho=Fo.geometry.coordinates,$u=0,gu=0,Kl=0,Sl=Je.map(function(Ga){return[Ga[0]-Ho[0],Ga[1]-Ho[1]]});for(Re=0;Je.length-1>Re;Re++)Kl+=ns=(on=(ot=Sl[Re])[0])*(zi=(Lt=Sl[Re+1])[1])-(Fn=Lt[0])*(Xn=ot[1]),$u+=(on+Fn)*ns,gu+=(Xn+zi)*ns;if(Kl===0)return Fo;var ql=1/(6*(.5*Kl));return Nl([Ho[0]+ql*$u,Ho[1]+ql*gu],$e.properties);default:var ol=function(Ga,pu){pu===void 0&&(pu={}),pu.concavity=pu.concavity||1/0;var oc=[];if(yr(Ga,function(Oo){oc.push([Oo[0],Oo[1]])}),!oc.length)return null;var cd=Pf(oc,pu.concavity);return cd.length>3?vs([cd]):null}(Se);return ol?zl(ol,{properties:$e.properties}):ru(Se,{properties:$e.properties})}}function Au(Se){if(!Se)throw Error("geojson is required");var $e=[];return us(Se,function(Je){(function(Re,ot){var Lt=[],on=Re.geometry;if(on!==null){switch(on.type){case"Polygon":Lt=ea(on);break;case"LineString":Lt=[ea(on)]}Lt.forEach(function(Fn){var Xn=function(zi,ns){var Fo=[];return zi.reduce(function(Ho,$u){var gu,Kl,Sl,ql,ol,Ga,pu=Hi([Ho,$u],ns);return pu.bbox=[(ol=(Kl=$u)[0])>(Sl=(gu=Ho)[0])?Sl:ol,(Ga=Kl[1])>(ql=gu[1])?ql:Ga,Sl>ol?Sl:ol,ql>Ga?ql:Ga],Fo.push(pu),$u}),Fo}(Fn,Re.properties);Xn.forEach(function(zi){zi.id=ot.length,ot.push(zi)})})}})(Je,$e)}),to($e)}Pf.default=Jd;function Uu(Se,$e,Je){if(!Je)return $e.indexOf(Se);for(let Re=0;$e.length>Re;Re++)if(Je(Se,$e[Re]))return Re;return-1}function Vd(Se,$e){Ud(Se,0,Se.children.length,$e,Se)}function Ud(Se,$e,Je,Re,ot){ot||(ot=ed(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=$e;Je>Lt;Lt++){const on=Se.children[Lt];sh(ot,Se.leaf?Re(on):on)}return ot}function sh(Se,$e){return Se.minX=Math.min(Se.minX,$e.minX),Se.minY=Math.min(Se.minY,$e.minY),Se.maxX=Math.max(Se.maxX,$e.maxX),Se.maxY=Math.max(Se.maxY,$e.maxY),Se}function Vf(Se,$e){return Se.minX-$e.minX}function vf(Se,$e){return Se.minY-$e.minY}function Uh(Se){return(Se.maxX-Se.minX)*(Se.maxY-Se.minY)}function kf(Se){return Se.maxX-Se.minX+(Se.maxY-Se.minY)}function Bh(Se,$e){const Je=Math.max(Se.minX,$e.minX),Re=Math.max(Se.minY,$e.minY),ot=Math.min(Se.maxX,$e.maxX),Lt=Math.min(Se.maxY,$e.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Re)}function Kf(Se,$e){return!(Se.minX>$e.minX||Se.minY>$e.minY||$e.maxX>Se.maxX||$e.maxY>Se.maxY)}function ah(Se,$e){return!($e.minX>Se.maxX||$e.minY>Se.maxY||Se.minX>$e.maxX||Se.minY>$e.maxY)}function ed(Se){return{children:Se,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vh(Se,$e,Je,Re,ot){const Lt=[$e,Je];for(;Lt.length;){if(Re>=(Je=Lt.pop())-($e=Lt.pop()))continue;const on=$e+Math.ceil((Je-$e)/Re/2)*Re;Hl(Se,on,$e,Je,ot),Lt.push($e,on,on,Je)}}var Kh=Object.freeze({__proto__:null,default:class{constructor(Se=9){this._maxEntries=Math.max(4,Se),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Se){let $e=this.data;const Je=[];if(!ah(Se,$e))return Je;const Re=this.toBBox,ot=[];for(;$e;){for(let Lt=0;$e.children.length>Lt;Lt++){const on=$e.children[Lt],Fn=$e.leaf?Re(on):on;ah(Se,Fn)&&($e.leaf?Je.push(on):Kf(Se,Fn)?this._all(on,Je):ot.push(on))}$e=ot.pop()}return Je}collides(Se){let $e=this.data;if(!ah(Se,$e))return!1;const Je=[];for(;$e;){for(let Re=0;$e.children.length>Re;Re++){const ot=$e.children[Re],Lt=$e.leaf?this.toBBox(ot):ot;if(ah(Se,Lt)){if($e.leaf||Kf(Se,Lt))return!0;Je.push(ot)}}$e=Je.pop()}return!1}load(Se){if(!Se||!Se.length)return this;if(this._minEntries>Se.length){for(let Je=0;Se.length>Je;Je++)this.insert(Se[Je]);return this}let $e=this._build(Se.slice(),0,Se.length-1,0);if(this.data.children.length)if(this.data.height===$e.height)this._splitRoot(this.data,$e);else{if($e.height>this.data.height){const Je=this.data;this.data=$e,$e=Je}this._insert($e,this.data.height-$e.height-1,!0)}else this.data=$e;return this}insert(Se){return Se&&this._insert(Se,this.data.height-1),this}clear(){return this.data=ed([]),this}remove(Se,$e){if(!Se)return this;let Je=this.data;const Re=this.toBBox(Se),ot=[],Lt=[];let on,Fn,Xn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],on=Lt.pop(),Xn=!0),Je.leaf){const zi=Uu(Se,Je.children,$e);if(zi!==-1)return Je.children.splice(zi,1),ot.push(Je),this._condense(ot),this}Xn||Je.leaf||!Kf(Je,Re)?Fn?(on++,Je=Fn.children[on],Xn=!1):Je=null:(ot.push(Je),Lt.push(on),on=0,Fn=Je,Je=Je.children[0])}return this}toBBox(Se){return Se}compareMinX(Se,$e){return Se.minX-$e.minX}compareMinY(Se,$e){return Se.minY-$e.minY}toJSON(){return this.data}fromJSON(Se){return this.data=Se,this}_all(Se,$e){const Je=[];for(;Se;)Se.leaf?$e.push(...Se.children):Je.push(...Se.children),Se=Je.pop();return $e}_build(Se,$e,Je,Re){const ot=Je-$e+1;let Lt,on=this._maxEntries;if(on>=ot)return Lt=ed(Se.slice($e,Je+1)),Vd(Lt,this.toBBox),Lt;Re||(on=Math.ceil(ot/Math.pow(on,(Re=Math.ceil(Math.log(ot)/Math.log(on)))-1))),Lt=ed([]),Lt.leaf=!1,Lt.height=Re;const Fn=Math.ceil(ot/on),Xn=Fn*Math.ceil(Math.sqrt(on));Vh(Se,$e,Je,Xn,this.compareMinX);for(let zi=$e;Je>=zi;zi+=Xn){const ns=Math.min(zi+Xn-1,Je);Vh(Se,zi,ns,Fn,this.compareMinY);for(let Fo=zi;ns>=Fo;Fo+=Fn)Lt.children.push(this._build(Se,Fo,Math.min(Fo+Fn-1,ns),Re-1))}return Vd(Lt,this.toBBox),Lt}_chooseSubtree(Se,$e,Je,Re){for(;Re.push($e),!$e.leaf&&Re.length-1!==Je;){let on,Fn=1/0,Xn=1/0;for(let zi=0;$e.children.length>zi;zi++){const ns=$e.children[zi],Fo=Uh(ns),Ho=(Math.max((Lt=ns).maxX,(ot=Se).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Fo;Xn>Ho?(Xn=Ho,Fn=Fn>Fo?Fo:Fn,on=ns):Ho===Xn&&Fn>Fo&&(Fn=Fo,on=ns)}$e=on||$e.children[0]}var ot,Lt;return $e}_insert(Se,$e,Je){const Re=Je?Se:this.toBBox(Se),ot=[],Lt=this._chooseSubtree(Re,this.data,$e,ot);for(Lt.children.push(Se),sh(Lt,Re);$e>=0&&ot[$e].children.length>this._maxEntries;)this._split(ot,$e),$e--;this._adjustParentBBoxes(Re,ot,$e)}_split(Se,$e){const Je=Se[$e],Re=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Re);const Lt=this._chooseSplitIndex(Je,ot,Re),on=ed(Je.children.splice(Lt,Je.children.length-Lt));on.height=Je.height,on.leaf=Je.leaf,Vd(Je,this.toBBox),Vd(on,this.toBBox),$e?Se[$e-1].children.push(on):this._splitRoot(Je,on)}_splitRoot(Se,$e){this.data=ed([Se,$e]),this.data.height=Se.height+1,this.data.leaf=!1,Vd(this.data,this.toBBox)}_chooseSplitIndex(Se,$e,Je){let Re,ot=1/0,Lt=1/0;for(let on=$e;Je-$e>=on;on++){const Fn=Ud(Se,0,on,this.toBBox),Xn=Ud(Se,on,Je,this.toBBox),zi=Bh(Fn,Xn),ns=Uh(Fn)+Uh(Xn);ot>zi?(ot=zi,Re=on,Lt=Lt>ns?ns:Lt):zi===ot&&Lt>ns&&(Lt=ns,Re=on)}return Re||Je-$e}_chooseSplitAxis(Se,$e,Je){const Re=Se.leaf?this.compareMinX:Vf,ot=Se.leaf?this.compareMinY:vf,Lt=this._allDistMargin(Se,$e,Je,Re);this._allDistMargin(Se,$e,Je,ot)>Lt&&Se.children.sort(Re)}_allDistMargin(Se,$e,Je,Re){Se.children.sort(Re);const ot=this.toBBox,Lt=Ud(Se,0,$e,ot),on=Ud(Se,Je-$e,Je,ot);let Fn=kf(Lt)+kf(on);for(let Xn=$e;Je-$e>Xn;Xn++){const zi=Se.children[Xn];sh(Lt,Se.leaf?ot(zi):zi),Fn+=kf(Lt)}for(let Xn=Je-$e-1;Xn>=$e;Xn--){const zi=Se.children[Xn];sh(on,Se.leaf?ot(zi):zi),Fn+=kf(on)}return Fn}_adjustParentBBoxes(Se,$e,Je){for(let Re=Je;Re>=0;Re--)sh($e[Re],Se)}_condense(Se){for(let $e,Je=Se.length-1;Je>=0;Je--)Se[Je].children.length===0?Je>0?($e=Se[Je-1].children,$e.splice($e.indexOf(Se[Je]),1)):this.clear():Vd(Se[Je],this.toBBox)}}}),cf=nh(Kh),Qc=nh(Wn),Na=nh(Zl),ps=nh(Za).default,Op=Na.featureEach,ro=Qc.featureCollection;function bc(Se){var $e=new cf(Se);return $e.insert=function(Je){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:ps(Je),cf.prototype.insert.call(this,Je)},$e.load=function(Je){var Re=[];return Array.isArray(Je)?Je.forEach(function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:ps(ot),Re.push(ot)}):Op(Je,function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:ps(ot),Re.push(ot)}),cf.prototype.load.call(this,Re)},$e.remove=function(Je,Re){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:ps(Je),cf.prototype.remove.call(this,Je,Re)},$e.clear=function(){return cf.prototype.clear.call(this)},$e.search=function(Je){var Re=cf.prototype.search.call(this,this.toBBox(Je));return ro(Re)},$e.collides=function(Je){return cf.prototype.collides.call(this,this.toBBox(Je))},$e.all=function(){var Je=cf.prototype.all.call(this);return ro(Je)},$e.toJSON=function(){return cf.prototype.toJSON.call(this)},$e.fromJSON=function(Je){return cf.prototype.fromJSON.call(this,Je)},$e.toBBox=function(Je){var Re;if(Je.bbox)Re=Je.bbox;else if(Array.isArray(Je)&&Je.length===4)Re=Je;else if(Array.isArray(Je)&&Je.length===6)Re=[Je[0],Je[1],Je[3],Je[4]];else if(Je.type==="Feature")Re=ps(Je);else{if(Je.type!=="FeatureCollection")throw Error("invalid geojson");Re=ps(Je)}return{minX:Re[0],minY:Re[1],maxX:Re[2],maxY:Re[3]}},$e}var yf=bc;function Qu(Se,$e){var Je={},Re=[];if(Se.type==="LineString"&&(Se=la(Se)),$e.type==="LineString"&&($e=la($e)),Se.type==="Feature"&&$e.type==="Feature"&&Se.geometry!==null&&$e.geometry!==null&&Se.geometry.type==="LineString"&&$e.geometry.type==="LineString"&&Se.geometry.coordinates.length===2&&$e.geometry.coordinates.length===2){var ot=Bc(Se,$e);return ot&&Re.push(ot),to(Re)}var Lt=yf();return Lt.load(Au($e)),hi(Au(Se),function(on){hi(Lt.search(on),function(Fn){var Xn=Bc(on,Fn);if(Xn){var zi=ea(Xn).join(",");Je[zi]||(Je[zi]=!0,Re.push(Xn))}})}),to(Re)}function Bc(Se,$e){var Je=ea(Se),Re=ea($e);if(Je.length!==2)throw Error(" line1 must only contain 2 coordinates");if(Re.length!==2)throw Error(" line2 must only contain 2 coordinates");var ot=Je[0][0],Lt=Je[0][1],on=Je[1][0],Fn=Je[1][1],Xn=Re[0][0],zi=Re[0][1],ns=Re[1][0],Fo=Re[1][1],Ho=(Fo-zi)*(on-ot)-(ns-Xn)*(Fn-Lt),$u=(ns-Xn)*(Lt-zi)-(Fo-zi)*(ot-Xn),gu=(on-ot)*(Lt-zi)-(Fn-Lt)*(ot-Xn);if(Ho===0)return null;var Kl=$u/Ho,Sl=gu/Ho;return 0>Kl||Kl>1||0>Sl||Sl>1?null:Nl([ot+Kl*(on-ot),Lt+Kl*(Fn-Lt)])}yf.default=bc;var Df=6378137;function Jp(Se){return Pi(Se,function($e,Je){return $e+function(Re){var ot,Lt=0;switch(Re.type){case"Polygon":return sg(Re.coordinates);case"MultiPolygon":for(ot=0;Re.coordinates.length>ot;ot++)Lt+=sg(Re.coordinates[ot]);return Lt;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(Je)},0)}function sg(Se){var $e=0;if(Se&&Se.length>0){$e+=Math.abs(Ah(Se[0]));for(var Je=1;Se.length>Je;Je++)$e-=Math.abs(Ah(Se[Je]))}return $e}function Ah(Se){var $e,Je,Re,ot,Lt,on,Fn=0,Xn=Se.length;if(Xn>2){for(on=0;Xn>on;on++)on===Xn-2?(Re=Xn-2,ot=Xn-1,Lt=0):on===Xn-1?(Re=Xn-1,ot=0,Lt=1):(Re=on,ot=on+1,Lt=on+2),$e=Se[Re],Je=Se[ot],Fn+=(ap(Se[Lt][0])-ap($e[0]))*Math.sin(ap(Je[1]));Fn=Fn*Df*Df/2}return Fn}function ap(Se){return Se*Math.PI/180}function Rp(Se,$e){return $e===void 0&&($e={}),$a(Se,function(Je,Re){var ot=Re.geometry.coordinates;return Je+tl(ot[0],ot[1],$e)},0)}function tp(Se,$e){$e===void 0&&($e={});var Je=Qa(Se);switch($e.properties||Se.type!=="Feature"||($e.properties=Se.properties),Je.type){case"Polygon":return function(Re,ot){ot===void 0&&(ot={});var Lt=Qa(Re),on=Lt.coordinates,Fn=ot.properties?ot.properties:Re.type==="Feature"?Re.properties:{};return pg(on,Fn)}(Je,$e);case"MultiPolygon":return function(Re,ot){ot===void 0&&(ot={});var Lt=Qa(Re),on=Lt.coordinates,Fn=ot.properties?ot.properties:Re.type==="Feature"?Re.properties:{},Xn=[];return on.forEach(function(zi){Xn.push(pg(zi,Fn))}),to(Xn)}(Je,$e);default:throw Error("invalid poly")}}function pg(Se,$e){return Se.length>1?sa(Se,$e):Hi(Se[0],$e)}function Cp(Se){for(var $e,Je,Re=ea(Se),ot=0,Lt=1;Re.length>Lt;)$e=Je||Re[0],ot+=((Je=Re[Lt])[0]-$e[0])*(Je[1]+$e[1]),Lt++;return ot>0}var Uf=Yd(function(Se){var $e=Object.prototype.hasOwnProperty,Je="~";function Re(){}function ot(Xn,zi,ns){this.fn=Xn,this.context=zi,this.once=ns||!1}function Lt(Xn,zi,ns,Fo,Ho){if(typeof ns!="function")throw new TypeError("The listener must be a function");var $u=new ot(ns,Fo||Xn,Ho),gu=Je?Je+zi:zi;return Xn._events[gu]?Xn._events[gu].fn?Xn._events[gu]=[Xn._events[gu],$u]:Xn._events[gu].push($u):(Xn._events[gu]=$u,Xn._eventsCount++),Xn}function on(Xn,zi){--Xn._eventsCount==0?Xn._events=new Re:delete Xn._events[zi]}function Fn(){this._events=new Re,this._eventsCount=0}Object.create&&(Re.prototype=Object.create(null),new Re().__proto__||(Je=!1)),Fn.prototype.eventNames=function(){var Xn,zi,ns=[];if(this._eventsCount===0)return ns;for(zi in Xn=this._events)$e.call(Xn,zi)&&ns.push(Je?zi.slice(1):zi);return Object.getOwnPropertySymbols?ns.concat(Object.getOwnPropertySymbols(Xn)):ns},Fn.prototype.listeners=function(Xn){var zi=this._events[Je?Je+Xn:Xn];if(!zi)return[];if(zi.fn)return[zi.fn];for(var ns=0,Fo=zi.length,Ho=Array(Fo);Fo>ns;ns++)Ho[ns]=zi[ns].fn;return Ho},Fn.prototype.listenerCount=function(Xn){var zi=this._events[Je?Je+Xn:Xn];return zi?zi.fn?1:zi.length:0},Fn.prototype.emit=function(Xn,zi,ns,Fo,Ho,$u){var gu=Je?Je+Xn:Xn;if(!this._events[gu])return!1;var Kl,Sl,ql=this._events[gu],ol=arguments.length;if(ql.fn){switch(ql.once&&this.removeListener(Xn,ql.fn,void 0,!0),ol){case 1:return ql.fn.call(ql.context),!0;case 2:return ql.fn.call(ql.context,zi),!0;case 3:return ql.fn.call(ql.context,zi,ns),!0;case 4:return ql.fn.call(ql.context,zi,ns,Fo),!0;case 5:return ql.fn.call(ql.context,zi,ns,Fo,Ho),!0;case 6:return ql.fn.call(ql.context,zi,ns,Fo,Ho,$u),!0}for(Sl=1,Kl=Array(ol-1);ol>Sl;Sl++)Kl[Sl-1]=arguments[Sl];ql.fn.apply(ql.context,Kl)}else{var Ga,pu=ql.length;for(Sl=0;pu>Sl;Sl++)switch(ql[Sl].once&&this.removeListener(Xn,ql[Sl].fn,void 0,!0),ol){case 1:ql[Sl].fn.call(ql[Sl].context);break;case 2:ql[Sl].fn.call(ql[Sl].context,zi);break;case 3:ql[Sl].fn.call(ql[Sl].context,zi,ns);break;case 4:ql[Sl].fn.call(ql[Sl].context,zi,ns,Fo);break;default:if(!Kl)for(Ga=1,Kl=Array(ol-1);ol>Ga;Ga++)Kl[Ga-1]=arguments[Ga];ql[Sl].fn.apply(ql[Sl].context,Kl)}}return!0},Fn.prototype.on=function(Xn,zi,ns){return Lt(this,Xn,zi,ns,!1)},Fn.prototype.once=function(Xn,zi,ns){return Lt(this,Xn,zi,ns,!0)},Fn.prototype.removeListener=function(Xn,zi,ns,Fo){var Ho=Je?Je+Xn:Xn;if(!this._events[Ho])return this;if(!zi)return on(this,Ho),this;var $u=this._events[Ho];if($u.fn)$u.fn!==zi||Fo&&!$u.once||ns&&$u.context!==ns||on(this,Ho);else{for(var gu=0,Kl=[],Sl=$u.length;Sl>gu;gu++)($u[gu].fn!==zi||Fo&&!$u[gu].once||ns&&$u[gu].context!==ns)&&Kl.push($u[gu]);Kl.length?this._events[Ho]=Kl.length===1?Kl[0]:Kl:on(this,Ho)}return this},Fn.prototype.removeAllListeners=function(Xn){var zi;return Xn?this._events[zi=Je?Je+Xn:Xn]&&on(this,zi):(this._events=new Re,this._eventsCount=0),this},Fn.prototype.off=Fn.prototype.removeListener,Fn.prototype.addListener=Fn.prototype.on,Fn.prefixed=Je,Fn.EventEmitter=Fn,Se.exports=Fn}),Pd=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt,on=ot.style;return St(this,Je),(Lt=$e.call(this)).scene=void 0,Lt.style=void 0,Lt.layers=void 0,Lt.data=[],Lt.scene=Re,Lt.style=on,Lt.layers=Lt.initLayers(),Lt.layers.forEach(function(Fn){Re.addLayer(Fn)}),on.callback instanceof Function&&on.callback(Lt.layers),Lt}return jn(Je,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(Re){Re.show()})}},{key:"hide",value:function(){this.layers.forEach(function(Re){Re.hide()})}},{key:"setData",value:function(Re){var ot=oo(Re).sort(function(Lt,on){return+Lt.properties.isActive-+on.properties.isActive});this.data=ot,this.layers.forEach(function(Lt){Lt.setData(to(ot))})}},{key:"destroy",value:function(){var Re=this;this.layers.forEach(function(ot){Re.scene.removeLayer(ot)})}}]),Je}(Uf.EventEmitter),Np=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){return St(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.style,on=Re.options;return[new A.LineLayer(on!=null?on:{}).source(to([])).size(ot.size).color(ot.color).shape("line").style(Lt)]}}]),Je}(Pd),$p=function(Se){var $e=typeof Se;return Se!=null&&($e=="object"||$e=="function")},ag=typeof vd=="object"&&vd&&vd.Object===Object&&vd,Md=typeof self=="object"&&self&&self.Object===Object&&self,Wp=ag||Md||Function("return this")(),Ih=function(){return Wp.Date.now()},of=/\s/,Ff=function(Se){for(var $e=Se.length;$e--&&of.test(Se.charAt($e)););return $e},iu=/^\s+/,mp=function(Se){return Se&&Se.slice(0,Ff(Se)+1).replace(iu,"")},Af=Wp.Symbol,np=Object.prototype,Od=np.hasOwnProperty,td=np.toString,Tp=Af?Af.toStringTag:void 0,_f=function(Se){var $e=Od.call(Se,Tp),Je=Se[Tp];try{Se[Tp]=void 0;var Re=!0}catch(Lt){}var ot=td.call(Se);return Re&&($e?Se[Tp]=Je:delete Se[Tp]),ot},Hh=Object.prototype.toString,Dp=function(Se){return Hh.call(Se)},Vp=Af?Af.toStringTag:void 0,Cd=function(Se){return Se==null?Se===void 0?"[object Undefined]":"[object Null]":Vp&&Vp in Object(Se)?_f(Se):Dp(Se)},qh=function(Se){return Se!=null&&typeof Se=="object"},kh=function(Se){return typeof Se=="symbol"||qh(Se)&&Cd(Se)=="[object Symbol]"},_h=/^[-+]0x[0-9a-f]+$/i,Bf=/^0b[01]+$/i,bd=/^0o[0-7]+$/i,$c=parseInt,Hd=function(Se){if(typeof Se=="number")return Se;if(kh(Se))return NaN;if($p(Se)){var $e=typeof Se.valueOf=="function"?Se.valueOf():Se;Se=$p($e)?$e+"":$e}if(typeof Se!="string")return Se===0?Se:+Se;Se=mp(Se);var Je=Bf.test(Se);return Je||bd.test(Se)?$c(Se.slice(2),Je?2:8):_h.test(Se)?NaN:+Se},vh=Math.max,Io=Math.min,D=function(Se,$e,Je){var Re,ot,Lt,on,Fn,Xn,zi=0,ns=!1,Fo=!1,Ho=!0;if(typeof Se!="function")throw new TypeError("Expected a function");function $u(ol){var Ga=Re,pu=ot;return Re=ot=void 0,zi=ol,on=Se.apply(pu,Ga)}function gu(ol){var Ga=ol-Xn;return Xn===void 0||Ga>=$e||0>Ga||Fo&&ol-zi>=Lt}function Kl(){var ol=Ih();if(gu(ol))return Sl(ol);Fn=setTimeout(Kl,function(Ga){var pu=$e-(Ga-Xn);return Fo?Io(pu,Lt-(Ga-zi)):pu}(ol))}function Sl(ol){return Fn=void 0,Ho&&Re?$u(ol):(Re=ot=void 0,on)}function ql(){var ol=Ih(),Ga=gu(ol);if(Re=arguments,ot=this,Xn=ol,Ga){if(Fn===void 0)return function(pu){return zi=pu,Fn=setTimeout(Kl,$e),ns?$u(pu):on}(Xn);if(Fo)return clearTimeout(Fn),Fn=setTimeout(Kl,$e),$u(Xn)}return Fn===void 0&&(Fn=setTimeout(Kl,$e)),on}return $e=Hd($e)||0,$p(Je)&&(ns=!!Je.leading,Lt=(Fo="maxWait"in Je)?vh(Hd(Je.maxWait)||0,$e):Lt,Ho="trailing"in Je?!!Je.trailing:Ho),ql.cancel=function(){Fn!==void 0&&clearTimeout(Fn),zi=0,Re=Xn=ot=Fn=void 0},ql.flush=function(){return Fn===void 0?on:Sl(Ih())},ql},F=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){var Re;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onUnClick=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.enableHover=function(){var Fn,Xn;Re.disableHover(),(Fn=Re.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Re.onMouseMove),(Xn=Re.layers[0])===null||Xn===void 0||Xn.on(y.LayerEvent.Mouseout,Re.onMouseOut)},Re.disableHover=function(){var Fn,Xn;(Fn=Re.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Re.onMouseMove),(Xn=Re.layers[0])===null||Xn===void 0||Xn.off(y.LayerEvent.Mouseout,Re.onMouseOut)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,on=Re.active,Fn=Re.style,Xn=Re.options;return[new A.LineLayer(Xn!=null?Xn:{}).source(to([])).size("isHover*isActive",function(zi,ns){return ns?on.size:zi?Lt.size:ot.size}).color("isHover*isActive",function(zi,ns){return ns?on.color:zi?Lt.color:ot.color}).shape("line").style(Fn)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),J=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){var Re;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Click,Fn)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.style,on=Lt===void 0?{}:Lt,Fn=Re.options,Xn=ot.shape,zi=ot.size,ns=ot.color;return[new A.PointLayer(Fn!=null?Fn:{}).source(to([])).size(zi).color(ns).shape(Xn).style(on)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var Re,ot;this.disableHover(),(Re=this.layers[0])===null||Re===void 0||Re.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Re,ot;(Re=this.layers[0])===null||Re===void 0||Re.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}}]),Je}(Pd),ae=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){var Re;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Re=$e.call.apply($e,[this].concat(Lt))).onCreate=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onClick=function(Fn){Re.emit(y.RenderEvent.Click,Fn)},Re.onContextmenu=function(Fn){Re.emit(y.RenderEvent.Contextmenu,Fn)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,on=Re.active,Fn=Re.style,Xn=Fn===void 0?{}:Fn,zi=Re.options;return[new A.PointLayer(zi!=null?zi:{}).source(to([])).size("isHover*isActive",function(ns,Fo){return Fo?on.size:ns?Lt.size:ot.size}).color("isHover*isActive",function(ns,Fo){return Fo?on.color:ns?Lt.color:ot.color}).shape("isHover*isActive",function(ns,Fo){return Fo?on.shape:ns?Lt.shape:ot.shape}).style(Xn)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(y.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var Re,ot;this.disableHover(),(Re=this.layers[0])===null||Re===void 0||Re.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Re,ot;(Re=this.layers[0])===null||Re===void 0||Re.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(y.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(y.LayerEvent.Contextmenu,this.onContextmenu)}}]),Je}(Pd),Ue=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){var Re;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onUnClick=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.enableHover=function(){var Fn,Xn;Re.disableHover(),(Fn=Re.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Re.onMouseMove),(Xn=Re.layers[0])===null||Xn===void 0||Xn.on(y.LayerEvent.Mouseout,Re.onMouseOut)},Re.disableHover=function(){var Fn,Xn;(Fn=Re.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Re.onMouseMove),(Xn=Re.layers[0])===null||Xn===void 0||Xn.off(y.LayerEvent.Mouseout,Re.onMouseOut)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,on=Re.active,Fn=Re.style,Xn=Re.options,zi=new A.PolygonLayer(Xn!=null?Xn:{});return zi.source(to([])).color("isHover*isActive",function(ns,Fo){return Fo?on.color:ns?Lt.color:ot.color}).style(Fn),[zi]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),Jt=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re){var ot;return St(this,Je),(ot=$e.call(this)).scene=void 0,ot.previousClick=void 0,ot.onDblClick=function(Lt){var on,Fn,Xn=(on=(Fn=Lt.pixel)!==null&&Fn!==void 0?Fn:Lt.point)!==null&&on!==void 0?on:{},zi=Xn.x,ns=zi===void 0?0:zi,Fo=Xn.y,Ho=Fo===void 0?0:Fo,$u=Date.now();if(ot.previousClick){var gu=ot.previousClick,Kl=gu.y;300>$u-gu.time&&5>Math.abs(ns-gu.x)&&5>Math.abs(Ho-Kl)&&ot.emit(y.RenderEvent.DblClick,Lt)}ot.previousClick={x:ns,y:Ho,time:$u}},ot.onMouseMove=function(Lt){ot.emit(y.RenderEvent.Mousemove,Lt)},ot.onMouseDown=function(Lt){ot.emit(y.RenderEvent.Dragstart,Lt)},ot.onDragging=function(Lt){ot.emit(y.RenderEvent.Dragging,Lt)},ot.onDragEnd=D(function(Lt){ot.emit(y.RenderEvent.Dragend,Lt)},0),ot.scene=Re,ot}return jn(Je,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(y.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onDblClick)}}]),Je}(Uf),$n=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){return St(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.active,on=Re.style,Fn=on===void 0?{}:on,Xn=Re.options;return[new A.PointLayer(Xn!=null?Xn:{}).source(to([])).size("isActive",function(zi){return zi?Lt.size:ot.size}).color("isActive",function(zi){return zi?Lt.color:ot.color}).shape("text","text").style(Fn)]}}]),Je}(Pd),_i={point:ae,line:F,dashLine:Np,midPoint:J,text:$n,polygon:Ue},Xo="#1990FF",fa="#ED9D48",Cl={blend:"normal",pickingBuffer:5},Ll={color:Xo,shape:"circle",size:6},zu={color:fa,shape:"circle",size:6},Iu={shape:"circle",size:6,color:fa},pc={options:Cl,normal:Ll,hover:lt(lt({},Ll),{},{size:8}),active:lt(lt({},Ll),{},{size:8,color:fa}),style:{stroke:"#ffffff",strokeWidth:2}},zc={options:Cl,normal:zu,hover:lt(lt({},zu),{},{size:8}),active:lt(lt({},zu),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},Rd={color:Xo,size:12},X={point:zc,line:{options:Cl,normal:{color:Xo,size:2},hover:{color:Xo,size:2},active:{color:fa,size:2},style:{}},polygon:{options:Cl,normal:{color:Xo},hover:{color:Xo},active:{color:fa},style:{opacity:.15}},midPoint:{options:Cl,normal:Iu},dashLine:{options:Cl,normal:{color:fa,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Cl,normal:Rd,active:lt(lt({},Rd),{},{color:fa}),style:{fontWeight:"800",textOffset:[0,Rd.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},re=function(Se,$e){return Se===$e||Se!=Se&&$e!=$e},Q=function(Se,$e){for(var Je=Se.length;Je--;)if(re(Se[Je][0],$e))return Je;return-1},le=Array.prototype.splice,it=function(Se){var $e=this.__data__,Je=Q($e,Se);return Je>=0&&(Je==$e.length-1?$e.pop():le.call($e,Je,1),--this.size,!0)},Rt=function(Se){var $e=this.__data__,Je=Q($e,Se);return 0>Je?void 0:$e[Je][1]},nn=function(Se){return Q(this.__data__,Se)>-1},Yn=function(Se,$e){var Je=this.__data__,Re=Q(Je,Se);return 0>Re?(++this.size,Je.push([Se,$e])):Je[Re][1]=$e,this};function ei(Se){var $e=-1,Je=Se==null?0:Se.length;for(this.clear();++$eRe.length)return Re.push([Se,$e]),this.size=++Je.size,this;Je=this.__data__=new Oc(Re)}return Je.set(Se,$e),this.size=Je.size,this};function yd(Se){var $e=this.__data__=new gr(Se);this.size=$e.size}yd.prototype.clear=ss,yd.prototype.delete=ts,yd.prototype.get=Is,yd.prototype.has=ua,yd.prototype.set=ad;var Bd=yd,Dc=function(Se,$e){for(var Je=-1,Re=Se==null?0:Se.length;++Je-1&&Se%1==0&&$e>Se},Wg=function(Se){return typeof Se=="number"&&Se>-1&&Se%1==0&&9007199254740991>=Se},lp={};lp["[object Float32Array]"]=lp["[object Float64Array]"]=lp["[object Int8Array]"]=lp["[object Int16Array]"]=lp["[object Int32Array]"]=lp["[object Uint8Array]"]=lp["[object Uint8ClampedArray]"]=lp["[object Uint16Array]"]=lp["[object Uint32Array]"]=!0,lp["[object Arguments]"]=lp["[object Array]"]=lp["[object ArrayBuffer]"]=lp["[object Boolean]"]=lp["[object DataView]"]=lp["[object Date]"]=lp["[object Error]"]=lp["[object Function]"]=lp["[object Map]"]=lp["[object Number]"]=lp["[object Object]"]=lp["[object RegExp]"]=lp["[object Set]"]=lp["[object String]"]=lp["[object WeakMap]"]=!1;var lg=function(Se){return qh(Se)&&Wg(Se.length)&&!!lp[Cd(Se)]},Id=function(Se){return function($e){return Se($e)}},rm=Yd(function(Se,$e){var Je=$e&&!$e.nodeType&&$e,Re=Je&&Se&&!Se.nodeType&&Se,ot=Re&&Re.exports===Je&&ag.process,Lt=function(){try{var on=Re&&Re.require&&Re.require("util").types;return on||ot&&ot.binding&&ot.binding("util")}catch(Fn){}}();Se.exports=Lt}),Im=rm&&rm.isTypedArray,Wm=Im?Id(Im):lg,im=Object.prototype.hasOwnProperty,wm=function(Se,$e){var Je=Qp(Se),Re=!Je&&bf(Se),ot=!Je&&!Re&&Hf(Se),Lt=!Je&&!Re&&!ot&&Wm(Se),on=Je||Re||ot||Lt,Fn=on?Zp(Se.length,String):[],Xn=Fn.length;for(var zi in Se)!$e&&!im.call(Se,zi)||on&&(zi=="length"||ot&&(zi=="offset"||zi=="parent")||Lt&&(zi=="buffer"||zi=="byteLength"||zi=="byteOffset")||af(zi,Xn))||Fn.push(zi);return Fn},ym=Object.prototype,Lg=function(Se){var $e=Se&&Se.constructor;return Se===(typeof $e=="function"&&$e.prototype||ym)},ug=function(Se,$e){return function(Je){return Se($e(Je))}},om=ug(Object.keys,Object),Qg=Object.prototype.hasOwnProperty,Lm=function(Se){if(!Lg(Se))return om(Se);var $e=[];for(var Je in Object(Se))Qg.call(Se,Je)&&Je!="constructor"&&$e.push(Je);return $e},Rm=function(Se){return Se!=null&&Wg(Se.length)&&!Go(Se)},Sg=function(Se){return Rm(Se)?wm(Se):Lm(Se)},jm=function(Se,$e){return Se&&Hg($e,Sg($e),Se)},Gp=function(Se){var $e=[];if(Se!=null)for(var Je in Object(Se))$e.push(Je);return $e},P0=Object.prototype.hasOwnProperty,wp=function(Se){if(!$p(Se))return Gp(Se);var $e=Lg(Se),Je=[];for(var Re in Se)(Re!="constructor"||!$e&&P0.call(Se,Re))&&Je.push(Re);return Je},Xf=function(Se){return Rm(Se)?wm(Se,!0):wp(Se)},Zh=function(Se,$e){return Se&&Hg($e,Xf($e),Se)},a0=Yd(function(Se,$e){var Je=$e&&!$e.nodeType&&$e,Re=Je&&Se&&!Se.nodeType&&Se,ot=Re&&Re.exports===Je?Wp.Buffer:void 0,Lt=ot?ot.allocUnsafe:void 0;Se.exports=function(on,Fn){if(Fn)return on.slice();var Xn=on.length,zi=Lt?Lt(Xn):new on.constructor(Xn);return on.copy(zi),zi}}),k0=function(Se,$e){var Je=-1,Re=Se.length;for($e||($e=Array(Re));++JeFn))return!1;var zi=Lt.get(Se),ns=Lt.get($e);if(zi&&ns)return zi==$e&&ns==Se;var Fo=-1,Ho=!0,$u=2&Je?new Ft:void 0;for(Lt.set(Se,$e),Lt.set($e,Se);++Fo0){if(++$e>=800)return arguments[0]}else $e=0;return Se.apply(void 0,arguments)}},Dl=cl(xd?function(Se,$e){return xd(Se,"toString",{configurable:!0,enumerable:!1,value:io($e),writable:!0})}:Ps),Ba=function(Se,$e){return Dl(sr(Se,$e,Ps),Se+"")},Ss=function(Se,$e,Je){if(!$p(Je))return!1;var Re=typeof $e;return!!(Re=="number"?Rm(Je)&&af($e,Je.length):Re=="string"&&$e in Je)&&re(Je[$e],Se)},wl=function(Se){return Ba(function($e,Je){var Re=-1,ot=Je.length,Lt=ot>1?Je[ot-1]:void 0,on=ot>2?Je[2]:void 0;for(Lt=Se.length>3&&typeof Lt=="function"?(ot--,Lt):void 0,on&&Ss(Je[0],Je[1],on)&&(Lt=3>ot?void 0:Lt,ot=1),$e=Object($e);++Re":".","?":"/","|":"\\"},Xn={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},zi=1;20>zi;++zi)Lt[111+zi]="f"+zi;for(zi=0;9>=zi;++zi)Lt[zi+96]=""+zi;Sl.prototype.bind=function(ql,ol,Ga){var pu=this;return pu._bindMultiple.call(pu,ql=ql instanceof Array?ql:[ql],ol,Ga),pu},Sl.prototype.unbind=function(ql,ol){return this.bind.call(this,ql,function(){},ol)},Sl.prototype.trigger=function(ql,ol){var Ga=this;return Ga._directMap[ql+":"+ol]&&Ga._directMap[ql+":"+ol]({},ql),Ga},Sl.prototype.reset=function(){var ql=this;return ql._callbacks={},ql._directMap={},ql},Sl.prototype.stopCallback=function(ql,ol){if((" "+ol.className+" ").indexOf(" mousetrap ")>-1||Kl(ol,this.target))return!1;if("composedPath"in ql&&typeof ql.composedPath=="function"){var Ga=ql.composedPath()[0];Ga!==ql.target&&(ol=Ga)}return ol.tagName=="INPUT"||ol.tagName=="SELECT"||ol.tagName=="TEXTAREA"||ol.isContentEditable},Sl.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Sl.addKeycodes=function(ql){for(var ol in ql)ql.hasOwnProperty(ol)&&(Lt[ol]=ql[ol]);ot=null},Sl.init=function(){var ql=Sl(Je);for(var ol in ql)ol.charAt(0)!=="_"&&(Sl[ol]=function(Ga){return function(){return ql[Ga].apply(ql,arguments)}}(ol))},Sl.init(),$e.Mousetrap=Sl,Se.exports&&(Se.exports=Sl)}function ns(ql,ol,Ga){ql.addEventListener?ql.addEventListener(ol,Ga,!1):ql.attachEvent("on"+ol,Ga)}function Fo(ql){if(ql.type=="keypress"){var ol=String.fromCharCode(ql.which);return ql.shiftKey||(ol=ol.toLowerCase()),ol}return Lt[ql.which]?Lt[ql.which]:on[ql.which]?on[ql.which]:String.fromCharCode(ql.which).toLowerCase()}function Ho(ql){return ql=="shift"||ql=="ctrl"||ql=="alt"||ql=="meta"}function $u(ql,ol,Ga){return Ga||(Ga=function(){if(!ot)for(var pu in ot={},Lt)pu>95&&112>pu||Lt.hasOwnProperty(pu)&&(ot[Lt[pu]]=pu);return ot}()[ql]?"keydown":"keypress"),Ga=="keypress"&&ol.length&&(Ga="keydown"),Ga}function gu(ql,ol){var Ga,pu,oc,cd=[];for(Ga=function(Oo){return Oo==="+"?["+"]:(Oo=Oo.replace(/\+{2}/g,"+plus")).split("+")}(ql),oc=0;Ga.length>oc;++oc)Xn[pu=Ga[oc]]&&(pu=Xn[pu]),ol&&ol!="keypress"&&Fn[pu]&&(pu=Fn[pu],cd.push("shift")),Ho(pu)&&cd.push(pu);return{key:pu,modifiers:cd,action:ol=$u(pu,cd,ol)}}function Kl(ql,ol){return ql!==null&&ql!==Je&&(ql===ol||Kl(ql.parentNode,ol))}function Sl(ql){var ol=this;if(ql=ql||Je,!(ol instanceof Sl))return new Sl(ql);ol.target=ql,ol._callbacks={},ol._directMap={};var Ga,pu={},oc=!1,cd=!1,Oo=!1;function Jh(Z){Z=Z||{};var ue,Pe=!1;for(ue in pu)Z[ue]?Pe=!0:pu[ue]=0;Pe||(Oo=!1)}function xc(Z,ue,Pe,Qe,wt,jt){var Nn,cr,Ur,bi=[],_o=Pe.type;if(!ol._callbacks[Z])return[];for(_o=="keyup"&&Ho(Z)&&(ue=[Z]),Nn=0;ol._callbacks[Z].length>Nn;++Nn)cr=ol._callbacks[Z][Nn],(Qe||!cr.seq||pu[cr.seq]==cr.level)&&_o==cr.action&&(_o=="keypress"&&!Pe.metaKey&&!Pe.ctrlKey||(Ur=cr.modifiers,ue.sort().join(",")===Ur.sort().join(",")))&&((!Qe&&cr.combo==wt||Qe&&cr.seq==Qe&&cr.level==jt)&&ol._callbacks[Z].splice(Nn,1),bi.push(cr));return bi}function fh(Z,ue,Pe,Qe){ol.stopCallback(ue,ue.target||ue.srcElement,Pe,Qe)||Z(ue,Pe)===!1&&(function(wt){wt.preventDefault?wt.preventDefault():wt.returnValue=!1}(ue),function(wt){wt.stopPropagation?wt.stopPropagation():wt.cancelBubble=!0}(ue))}function Gd(Z){typeof Z.which!="number"&&(Z.which=Z.keyCode);var ue=Fo(Z);ue&&(Z.type!="keyup"||oc!==ue?ol.handleKey(ue,function(Pe){var Qe=[];return Pe.shiftKey&&Qe.push("shift"),Pe.altKey&&Qe.push("alt"),Pe.ctrlKey&&Qe.push("ctrl"),Pe.metaKey&&Qe.push("meta"),Qe}(Z),Z):oc=!1)}function _(Z,ue,Pe,Qe){function wt(Ur){return function(){Oo=Ur,++pu[Z],clearTimeout(Ga),Ga=setTimeout(Jh,1e3)}}function jt(Ur){fh(Pe,Ur,Z),Qe!=="keyup"&&(oc=Fo(Ur)),setTimeout(Jh,10)}pu[Z]=0;for(var Nn=0;ue.length>Nn;++Nn){var cr=Nn+1===ue.length?jt:wt(Qe||gu(ue[Nn+1]).action);R(ue[Nn],cr,Qe,Z,Nn)}}function R(Z,ue,Pe,Qe,wt){ol._directMap[Z+":"+Pe]=ue;var jt,Nn=(Z=Z.replace(/\s+/g," ")).split(" ");Nn.length>1?_(Z,Nn,ue,Pe):(jt=gu(Z,Pe),ol._callbacks[jt.key]=ol._callbacks[jt.key]||[],xc(jt.key,jt.modifiers,{type:jt.action},Qe,Z,wt),ol._callbacks[jt.key][Qe?"unshift":"push"]({callback:ue,modifiers:jt.modifiers,action:jt.action,seq:Qe,level:wt,combo:Z}))}ol._handleKey=function(Z,ue,Pe){var Qe,wt=xc(Z,ue,Pe),jt={},Nn=0,cr=!1;for(Qe=0;wt.length>Qe;++Qe)wt[Qe].seq&&(Nn=Math.max(Nn,wt[Qe].level));for(Qe=0;wt.length>Qe;++Qe)if(wt[Qe].seq){if(wt[Qe].level!=Nn)continue;cr=!0,jt[wt[Qe].seq]=1,fh(wt[Qe].callback,Pe,wt[Qe].combo,wt[Qe].seq)}else cr||fh(wt[Qe].callback,Pe,wt[Qe].combo);var Ur=Pe.type=="keypress"&&cd;Pe.type!=Oo||Ho(Z)||Ur||Jh(jt),cd=cr&&Pe.type=="keydown"},ol._bindMultiple=function(Z,ue,Pe){for(var Qe=0;Z.length>Qe;++Qe)R(Z[Qe],ue,Pe)},ns(ql,"keypress",Gd),ns(ql,"keydown",Gd),ns(ql,"keyup",Gd)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),$l,su=function(Se){return Se&&Se.length?Se[0]:void 0},tu=($l=1,function(Se){return"".concat(Se,"-").concat($l++)}),Js=function(Se,$e){var Je,Re;return!(!Se||!$e||((Je=Se.properties)===null||Je===void 0?void 0:Je.id)!==((Re=$e.properties)===null||Re===void 0?void 0:Re.id))},Kc=function(Se){var $e=Se.target,Je=Se.targetHandler,Re=Se.otherHandler;return Se.data.map(function(ot,Lt){var on,Fn=Js(ot,$e)?Je:Re;return(on=Fn==null?void 0:Fn(ot,Lt))!==null&&on!==void 0?on:ot})},Le=function(){return{id:tu("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},Oe=function(){return{id:tu("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},et=function(){return{id:tu("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},hn=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Nl(Se,lt(lt({},Le()),$e))},Rr=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},Oe()),{},{nodes:Se},$e),geometry:{type:"LineString",coordinates:Ji(to(Se))}}},wn=function(Se){return Hi(Se,{id:tu("dashLine")})},li=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},et()),{},{nodes:Se},$e),geometry:{type:"Polygon",coordinates:[Ji(to([].concat(oo(Se),[su(Se)])))]}}},Fi=function(Se){return function($e,Je,Re){Re===void 0&&(Re={});for(var ot=Qa($e).coordinates,Lt=0,on=0;ot.length>on&&(Lt>Je||on!==ot.length-1);on++){if(Lt>=Je){var Fn=Je-Lt;if(Fn){var Xn=qd(ot[on],ot[on-1])-180;return wd(ot[on],Fn,Xn,Re)}return Nl(ot[on])}Lt+=tl(ot[on],ot[on+1],Re)}return Nl(ot[ot.length-1])}(Se,Rp(Se,{units:"meters"})/2,{units:"meters"})},_s=function(Se,$e){var Je=$e.format,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=[];if($e.showTotalDistance){var Lt=Fi(Se),on=Rp(Se,{units:"meters"});Lt.properties=lt({id:tu("text"),isActive:!1,meters:on,text:Je(on),type:"totalDistance"},Re),ot.push(Lt)}else for(var Fn=Se.geometry.coordinates,Xn=0;Fn.length-1>Xn;Xn++){var zi=Nl(Fn[Xn]),ns=Nl(Fn[Xn+1]),Fo=tl(zi,ns,{units:"meters"}),Ho=ja(to([zi,ns]));Ho.properties=lt({id:tu("text"),isActive:!1,meters:Fo,text:Je(Fo),type:"distance"},Re),ot.push(Ho)}return ot},Ea=function(Se,$e){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Re=$e.format,ot=Jp(Se);return zl(Se,{properties:lt({meters:ot,text:Re(ot),type:"area",isActive:!1},Je)})},Aa=function(Se){var $e,Je,Re=Se.getContainer();return($e=(Je=Re==null?void 0:Re.querySelector(".l7-marker-container"))!==null&&Je!==void 0?Je:Re==null?void 0:Re.querySelector(".amap-maps"))!==null&&$e!==void 0?$e:null},bl=function(Se){return Se.lngLat||Se.lnglat},Ql=function(Se){var $e=bl(Se);return[$e.lng,$e.lat]},Ju=function(Se){return[Se.lng,Se.lat]},As=function(Se){for(var $e=Number.MAX_SAFE_INTEGER,Je=0,Re=Se.length,ot=0;Re>ot;ot++)$e>Se[ot]&&($e=Se[ot],Je=ot);return Je},Xa=function(Se,$e){var Je=[],Re=[];return Se.forEach(function(ot){Ri(ot,$e)?Re.length&&(Je.push(Re),Re=[]):Re.push(ot)}),Re.length&&Je.push(Re),Je},vr=function(Se,$e,Je){var Re=[],ot=[],Lt=[];return Re=Se==="allDrawData"?Ra.instances.map(function(on){return on.getData()}).flat():Se==="drawData"?$e.getData():Se instanceof Function?Se(Je):Se,Re.length&&(ot=Re.map(function(on){var Fn,Xn=(Fn=on.properties)!==null&&Fn!==void 0?Fn:{},zi=Xn.nodes,ns=zi===void 0?[]:zi,Fo=Xn.isActive;return Fo!==void 0&&Fo?ns.filter(function(Ho){return!Ri(Ho.geometry.coordinates,Je)}):ns}).flat().filter(function(on){return on}),ot.length||(ot=Ji(to(Re)).map(function(on){return Nl(on)})),Lt=Re.map(function(on){var Fn,Xn,zi=(Fn=on.properties)===null||Fn===void 0?void 0:Fn.line;return!((Xn=on.properties)===null||Xn===void 0)&&Xn.isActive&&zi?Xa(zi.properties.nodes.map(function(ns){return ns.geometry.coordinates}),Je).filter(function(ns){return ns.length>1}).map(function(ns){return Hi(ns)}):[zi]}).flat().filter(function(on){return on}),Lt.length||Re.forEach(function(on){var Fn=el(on);if(/linestring/i.test(Fn)&&Lt.push(on),/polygon/i.test(Fn)){var Xn,zi,ns=tp(on);return(Xn=Lt).push.apply(Xn,oo((zi=ns==null?void 0:ns.features)!==null&&zi!==void 0?zi:[ns]))}})),{points:ot,lines:Lt}},qa=function(Se,$e,Je,Re){var ot=Je.pointAdsorbPixel,Lt=_a(Se,2),on=Re.lngLatToPixel([Lt[0],Lt[1]]),Fn=on.x,Xn=on.y,zi=$e.map(function(Fo){var Ho=_a(Fo.geometry.coordinates,2),$u=Re.lngLatToPixel([Ho[0],Ho[1]]),gu=$u.y;return Math.pow(Fn-$u.x,2)+Math.pow(Xn-gu,2)}),ns=As(zi);return Math.pow(zi[ns],.5)>ot?null:$e[ns].geometry.coordinates},Ta=function(Se,$e,Je,Re){var ot=Je.lineAdsorbPixel,Lt=_a(Se,2),on=Re.lngLatToPixel([Lt[0],Lt[1]]),Fn=on.x,Xn=on.y,zi=$e.filter(function(Ho){return Ji(Ho).length>1}).map(function(Ho){return function($u,gu,Kl){Kl===void 0&&(Kl={});var Sl=Nl([1/0,1/0],{dist:1/0}),ql=0;return us($u,function(ol){for(var Ga=ea(ol),pu=0;Ga.length-1>pu;pu++){var oc=Nl(Ga[pu]);oc.properties.dist=tl(gu,oc,Kl);var cd=Nl(Ga[pu+1]);cd.properties.dist=tl(gu,cd,Kl);var Oo=tl(oc,cd,Kl),Jh=Math.max(oc.properties.dist,cd.properties.dist),xc=qd(oc,cd),fh=wd(gu,Jh,xc+90,Kl),Gd=wd(gu,Jh,xc-90,Kl),_=Qu(Hi([fh.geometry.coordinates,Gd.geometry.coordinates]),Hi([oc.geometry.coordinates,cd.geometry.coordinates])),R=null;_.features.length>0&&((R=_.features[0]).properties.dist=tl(gu,R,Kl),R.properties.location=ql+tl(oc,R,Kl)),Sl.properties.dist>oc.properties.dist&&((Sl=oc).properties.index=pu,Sl.properties.location=ql),Sl.properties.dist>cd.properties.dist&&((Sl=cd).properties.index=pu+1,Sl.properties.location=ql+Oo),R&&Sl.properties.dist>R.properties.dist&&((Sl=R).properties.index=pu),ql+=Oo}}),Sl}(Ho,Se)});if(!zi.length)return null;var ns=zi.map(function(Ho){var $u=_a(Ho.geometry.coordinates,2),gu=Re.lngLatToPixel([$u[0],$u[1]]),Kl=gu.y;return Math.pow(Fn-gu.x,2)+Math.pow(Xn-Kl,2)}),Fo=As(ns);return Math.pow(ns[Fo],.5)>ot?null:zi[Fo].geometry.coordinates},Du=function(Se,$e){var Je=_a($e,2),Re=Je[0],ot=Je[1];Se.lngLat&&(Se.lngLat={lng:Re,lat:ot}),Se.lnglat&&(Se.lnglat={lng:Re,lat:ot})},Wc=function(){function Se($e,Je){St(this,Se),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Aa($e),this.options=Je}return jn(Se,[{key:"setCursor",value:function($e){$e!==this.cursor&&this.container&&(this.container.style.cursor=$e?this.options[$e]:"",this.cursor=$e)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Se}();function os(Se,$e){$e===void 0&&($e={});var Je=$e.insertAt;if(Se&&typeof document!="undefined"){var Re=document.head||document.getElementsByTagName("head")[0],ot=document.createElement("style");ot.type="text/css",Je==="top"&&Re.firstChild?Re.insertBefore(ot,Re.firstChild):Re.appendChild(ot),ot.styleSheet?ot.styleSheet.cssText=Se:ot.appendChild(document.createTextNode(Se))}}os('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),os(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var Mo=function(){function Se($e,Je){var Re=this;St(this,Se),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){Re.isMouseInner=!0,Re.checkTippyShow()},this.onMouseOut=function(){Re.isMouseInner=!1,Re.checkTippyShow()},this.setContent=D(function(ot){Re.content=ot!=null?ot:"",Re.tippy.setContent(ot!=null?ot:""),Re.checkTippyShow()},16,{maxWait:16}),this.tippy=$r(Aa($e),lt(lt({},at),Je)),this.tippy.hide(),this.scene=$e,$e.on(y.SceneEvent.Mousemove,this.onMouseMove),$e.on(y.SceneEvent.Mouseout,this.onMouseOut)}return jn(Se,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){this.content&&this.isMouseInner?this.tippy.show():this.tippy.hide()}},{key:"destroy",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(y.SceneEvent.Mouseout,this.onMouseOut),this.tippy.destroy()}}]),Se}(),ks=function(){function Se($e){var Je=$e.config;St(this,Se),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=Je}return jn(Se,[{key:"save",value:function($e){if(this.config){var Je=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),Je>this.historyList.length||this.historyList.pop();var Re=ys($e);return this.historyList.unshift(Re),Re}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var $e=this.historyList[++this.historyIndex];return $e?ys($e):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var $e=this.historyList[--this.historyIndex];return $e?ys($e):void 0}}}]),Se}(),Da=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re){var ot,Lt=Re.data,on=Re.render,Fn=Re.history,Xn=Re.scene;return St(this,Je),(ot=$e.call(this)).scene=void 0,ot.render=void 0,ot.data=ys(z),ot.timeout=null,ot.diffData={},ot.history=void 0,ot.scene=Xn,ot.render=on,Fn&&(ot.history=new ks({config:Fn})),Lt&&ot.setData(Lt),ot}return jn(Je,[{key:"saveHistory",value:function(){var Re;return(Re=this.history)===null||Re===void 0?void 0:Re.save(this.data)}},{key:"revertHistory",value:function(){var Re,ot=(Re=this.history)===null||Re===void 0?void 0:Re.revert();if(ot)return this.setData(ot),ot}},{key:"redoHistory",value:function(){var Re,ot=(Re=this.history)===null||Re===void 0?void 0:Re.redo();if(ot)return this.setData(ot),ot}},{key:"setData",value:function(Re){var ot=this;return Object.keys(Re).length&&(this.data=lt(lt({},this.data),Re),this.diffData=lt(lt({},this.diffData),Re),this.timeout||(this.timeout=requestAnimationFrame(function(){return ot.updateDiffData()})),this.emit(y.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(Re){return this.data[Re]}},{key:"setRenderData",value:function(Re,ot){var Lt=typeof ot=="function"?ot(this.getRenderData(Re)):ot;return this.setData(Cr({},Re,Lt)),this.emit(y.SourceEvent.Change,this.data),Lt}},{key:"updateDiffData",value:function(){var Re=this,ot=Object.entries(this.diffData);ot.length&&(ot.forEach(function(Lt){var on,Fn=_a(Lt,2),Xn=Fn[0],zi=Fn[1];Array.isArray(zi)&&((on=Re.getRender(Xn))===null||on===void 0||on.setData(zi))}),this.emit(y.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){Re.scene.render()}))}},{key:"getRender",value:function(Re){return this.render[Re]}},{key:"clear",value:function(){this.setData(Os(Object.keys(this.render).map(function(Re){return[Re,[]]})))}}]),Je}(Uf),Ra=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;St(this,Je),(Lt=$e.call(this)).scene=void 0,Lt.source=void 0,Lt.render=void 0,Lt.cursor=void 0,Lt.options=void 0,Lt.enabled=!1,Lt.allowCreate=!1,Lt.sceneRender=void 0,Lt.mouseLngLat={lng:0,lat:0},Lt.popup=void 0,Lt.addCount=0,Lt.saveMouseLngLat=D(function(zi){Lt.mouseLngLat=bl(zi)},100,{maxWait:100}),Lt.saveHistory=D(function(){Lt.options.history&&Lt.source.saveHistory()},100),Lt.bindThis(),Lt.scene=Re,Lt.sceneRender=new Jt(Re),Lt.options=rl({},Lt.getDefaultOptions(ot),ot),Lt.render=Lt.initRender(),Lt.source=new Da({render:Lt.render,history:Lt.options.history||void 0,scene:Re}),Lt.cursor=new Wc(Re,Lt.options.cursor);var on=Lt.options,Fn=on.initialData,Xn=on.popup;return Fn&&Lt.setData(Fn),Xn&&(Lt.popup=new Mo(Re,Xn instanceof Object?Xn:{})),Lt.saveHistory(),Lt.bindCommonEvent(),Lt.emit(y.DrawEvent.Init,fs(Lt)),Lt.bindEnableEvent(),Je.instances.push(fs(Lt)),Lt}return jn(Je,[{key:"addable",get:function(){var Re=this.getData(),ot=this.options,Lt=ot.multiple,on=ot.maxCount,Fn=Re.find(function(Xn){return Xn.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(Lt&&0>=on||Fn)||!(!Lt&&this.addCount>=1)&&(0>=on||on>Re.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(Re){var ot,Lt,on=this.options.helper;if(on){var Fn=(ot=Re in on?on[Re]:Re)!==null&&ot!==void 0?ot:null;(Lt=this.popup)===null||Lt===void 0||Lt.setContent(Fn)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var Re=this;this.on(y.DrawEvent.Add,this.emitChangeEvent),this.on(y.DrawEvent.Add,function(){Re.addCount++}),this.on(y.DrawEvent.Edit,this.emitChangeEvent),this.on(y.DrawEvent.Remove,this.emitChangeEvent),this.on(y.DrawEvent.Clear,this.emitChangeEvent),this.on(y.DrawEvent.AddNode,this.saveHistory),this.on(y.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var Re=this,ot=arguments.length>0&&arguments[0]!==void 0&&arguments[0],Lt=null,on=function(){var Fn,Xn,zi,ns=Re.getData().find(function(Fo){var Ho;return(Ho=Fo.properties)===null||Ho===void 0?void 0:Ho.isActive})||null;((Fn=Lt)===null||Fn===void 0||(Xn=Fn.properties)===null||Xn===void 0?void 0:Xn.id)!==(ns==null||(zi=ns.properties)===null||zi===void 0?void 0:zi.id)&&(Lt=ns,Re.emit(y.DrawEvent.Select,ns))};this.source.on(y.SourceEvent.Change,on),ot&&on()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var Re=this,ot=this.options.keyboard||{},Lt=ot.revert,on=ot.redo,Fn=ot.remove;Fn&&qu.bind(Fn,function(){Re.removeActiveFeature()}),this.options.history&&(Lt&&qu.bind(Lt,this.revertHistory),on&&qu.bind(on,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var Re=this.options.keyboard||{},ot=Re.revert,Lt=Re.redo,on=Re.remove;on&&qu.unbind(on),this.options.history&&(ot&&qu.unbind(ot),Lt&&qu.unbind(Lt))}},{key:"emitChangeEvent",value:function(){this.emit(y.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Os(Ca(this.render).map(function(Re){var ot=_a(Re,2);return[ot[0],ot[1].getLayers()]}))}},{key:"getTargetFeature",value:function(Re){var ot,Lt,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Fn=null;return Re&&(Fn=(ot=on.find(function(Xn){var zi;return Xn.properties.id===(typeof Re=="string"?Re:(zi=Re.properties)===null||zi===void 0?void 0:zi.id)}))!==null&&ot!==void 0?ot:null,!Fn&&Re instanceof Object&&(Fn=(Lt=on.find(function(Xn){return Ri(Re.geometry,Xn.geometry)}))!==null&&Lt!==void 0?Lt:null)),Fn}},{key:"removeActiveFeature",value:function(){var Re=this.getData().find(function(ot){var Lt=ot.properties;return Lt.isActive||Lt.isDraw});return Re&&this.removeFeature(Re),Re}},{key:"removeFeature",value:function(Re){var ot=this.getData(),Lt=this.getTargetFeature(Re);Lt&&(this.setData(ot.filter(function(on){return!Js(Lt,on)})),this.emit(y.DrawEvent.Remove,Re,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(Re){return Re.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var Re,ot={},Lt=function(Fn,Xn){var zi=typeof Symbol!="undefined"&&Fn[Symbol.iterator]||Fn["@@iterator"];if(!zi){if(Array.isArray(Fn)||(zi=Ds(Fn))||Xn&&Fn&&typeof Fn.length=="number"){zi&&(Fn=zi);var ns=0,Fo=function(){};return{s:Fo,n:function(){return Fn.length>ns?{done:!1,value:Fn[ns++]}:{done:!0}},e:function(Kl){throw Kl},f:Fo}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ho,$u=!0,gu=!1;return{s:function(){zi=zi.call(Fn)},n:function(){var Kl=zi.next();return $u=Kl.done,Kl},e:function(Kl){gu=!0,Ho=Kl},f:function(){try{$u||zi.return==null||zi.return()}finally{if(gu)throw Ho}}}}(this.getRenderTypes());try{for(Lt.s();!(Re=Lt.n()).done;){var on=Re.value;ot[on]=new _i[on](this.scene,{style:this.options.style[on]})}}catch(Fn){Lt.e(Fn)}finally{Lt.f()}return ot}},{key:"getCommonOptions",value:function(Re){return{initialData:[],autoActive:!0,cursor:ys(b),editable:!0,style:ys(X),multiple:!0,history:ys(En),keyboard:ys(tt),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(Re){this.cursor.setCursor(Re)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var Re=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){Re.emit(y.DrawEvent.Enable,Re)},0)}},{key:"disable",value:function(){var Re=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){Re.emit(y.DrawEvent.Disable,Re)},0)}},{key:"clear",value:function(){var Re=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(y.DrawEvent.Clear,this),Re&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(Re){Re.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(Re){Re.hide()})}},{key:"destroy",value:function(){var Re,ot=this;Object.values(this.render).forEach(function(on){on.destroy()}),Object.values(y.RenderEvent).forEach(function(on){Object.values(ot.render).forEach(function(Fn){Fn.removeAllListeners(on)}),ot.sceneRender.removeAllListeners(on)}),setTimeout(function(){Object.values(y.DrawEvent).forEach(function(on){ot.removeAllListeners(on)})},0),(Re=this.popup)===null||Re===void 0||Re.destroy(),this.cursor.destroy(),this.emit(y.DrawEvent.Destroy,this);var Lt=Je.instances.indexOf(this);Lt>-1&&Je.instances.splice(Lt,1)}}]),Je}(Uf);Ra.instances=[];var js=function(Se){var $e=Se==null?0:Se.length;return $e?Se[$e-1]:void 0},bs=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){return St(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(Re){return this.source.setRenderData("point",Re)}},{key:"bindPointRenderEvent",value:function(){var Re,ot,Lt,on,Fn,Xn;(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onPointCreate.bind(this)),(ot=this.pointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(Lt=this.pointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(on=this.pointRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Fn=this.pointRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Xn=this.pointRender)===null||Xn===void 0||Xn.on(y.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(Re){var ot=this.options,Lt=ot.autoActive,on=ot.editable,Fn=hn(Re);return this.setPointData(function(Xn){return Kc({target:Fn,data:[].concat(oo(Xn),[Fn]),targetHandler:function(zi){zi.properties=lt(lt({},zi.properties),{},{isHover:on,isActive:Lt&&on})},otherHandler:function(zi){zi.properties=lt(lt({},zi.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Fn}},{key:"handlePointHover",value:function(Re){return this.setCursor("pointHover"),Js(Re,this.hoverPoint)||this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handlePointUnHover",value:function(Re){return this.resetCursor(),this.setPointData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Re}},{key:"handlePointDragStart",value:function(Re){return this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Re}},{key:"handlePointDragging",value:function(Re,ot){return this.setPointData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(on){on.geometry.coordinates=Ju(ot)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Re}},{key:"handlePointDragEnd",value:function(Re){return this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),Re}},{key:"onPointCreate",value:function(Re){return this.handleCreatePoint(Ju(bl(Re)))}},{key:"onPointMouseMove",value:function(Re){return this.handlePointHover(Re.feature)}},{key:"onPointMouseOut",value:function(Re){return this.handlePointUnHover(Re.feature)}},{key:"onPointDragStart",value:function(Re){if(this.options.editable)return this.handlePointDragStart(Re.feature)}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragging(ot,bl(Re))}},{key:"onPointDragEnd",value:function(Re){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragEnd(ot)}},{key:"enablePointRenderAction",value:function(){var Re,ot,Lt,on,Fn=this.options.editable;this.enabled&&((ot=this.pointRender)===null||ot===void 0||ot.enableCreate()),(Re=this.pointRender)===null||Re===void 0||Re.enableClick(),Fn&&((Lt=this.pointRender)===null||Lt===void 0||Lt.enableHover(),(on=this.pointRender)===null||on===void 0||on.enableDrag())}},{key:"disablePointRenderAction",value:function(){var Re,ot,Lt,on;(Re=this.pointRender)===null||Re===void 0||Re.disableCreate(),(ot=this.pointRender)===null||ot===void 0||ot.disableHover(),(Lt=this.pointRender)===null||Lt===void 0||Lt.disableDrag(),(on=this.pointRender)===null||on===void 0||on.disableClick()}}]),Je}(Ra),Qi=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){return St(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(Re){return lt(lt({},Bs(Vi(Je.prototype),"getCommonOptions",this).call(this,Re)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var Re,ot,Lt;(Re=this.midPointRender)===null||Re===void 0||Re.on(y.RenderEvent.Click,this.onMidPointClick.bind(this)),(ot=this.midPointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(Lt=this.midPointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(Re){return this.source.setRenderData("midPoint",Re)}},{key:"getMidPointsByLine",value:function(Re){var ot=Re.properties.nodes;if(!this.options.showMidPoint||2>ot.length)return[];for(var Lt=[],on=0;ot.length-1>on;on++){var Fn,Xn,zi,ns,Fo=ja(to([ot[on],ot[on+1]]),{properties:{id:tu("midPoint"),startId:(Fn=(Xn=ot[on].properties)===null||Xn===void 0?void 0:Xn.id)!==null&&Fn!==void 0?Fn:"",endId:(zi=(ns=ot[on+1].properties)===null||ns===void 0?void 0:ns.id)!==null&&zi!==void 0?zi:""}});Lt.push(Fo)}return Lt}},{key:"onMidPointHover",value:function(Re){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(Re){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var Re,ot;(Re=this.midPointRender)===null||Re===void 0||Re.enableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var Re,ot;(Re=this.midPointRender)===null||Re===void 0||Re.disableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.disableHover()}}]),Je}(bs),ar={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},zr={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},Ci={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},gs=lt(lt({},Ci),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Es={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Pl={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},ta={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},yl=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){var Re;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Re=$e.call.apply($e,[this].concat(Lt))).previousPosition=[0,0],Re}return jn(Je,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(Re){var ot=Re.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},this.getCommonOptions(Re)),{},{showMidPoint:!0,distanceOptions:!1,helper:ys(zr)});return Re.distanceOptions&&(ot.distanceOptions=lt(lt({},Xt),ot.distanceOptions)),Re.adsorbOptions&&(ot.adsorbOptions=lt(lt({},gt),ot.adsorbOptions)),ot}},{key:"getAdsorbPosition",value:function(Re){var ot=this.options.adsorbOptions;if(typeof ot=="boolean")return Re;var Lt=this.scene,on=ot.pointAdsorbPixel,Fn=ot.lineAdsorbPixel,Xn=null,zi=vr(ot.data,this,Re),ns=zi.points,Fo=zi.lines;return ns.length&&on>0&&(Xn=qa(Re,ns,ot,Lt)),!Xn&&Fo.length&&Fn>0&&(Xn=Ta(Re,Fo,ot,Lt)),Xn}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(y.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var Re;Bs(Vi(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var Re,ot,Lt,on,Fn,Xn;(Re=this.lineRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(ot=this.lineRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(Lt=this.lineRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(on=this.lineRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Fn=this.lineRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Xn=this.lineRender)===null||Xn===void 0||Xn.on(y.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(Re,ot){var Lt=ot.showTotalDistance,on=ot.format;return ot.showDashDistance?Re.map(function(Fn){return _s(Fn,{showTotalDistance:Lt,format:on},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(Re,ot){var Lt=ot.showTotalDistance,on=ot.format,Fn=ot.showWhen,Xn=[];if(Fn.includes("active")){var zi=Re.filter(function(Fo){return Fo.properties.isActive&&Fo.properties.nodes.length>1});Xn.push.apply(Xn,oo(zi.map(function(Fo){return _s(Fo,{showTotalDistance:Lt,format:on},{isActive:!0})}).flat()))}if(Fn.includes("normal")){var ns=Re.filter(function(Fo){return!Fo.properties.isActive&&Fo.properties.nodes.length>1});Xn.push.apply(Xn,oo(ns.map(function(Fo){return _s(Fo,{showTotalDistance:Lt,format:on})}).flat()))}return Xn}},{key:"getDistanceTexts",value:function(){var Re=this.options.distanceOptions;if(!Re)return[];var ot=[],Lt=Re.showWhen,on=Re.showDashDistance,Fn=Re.format,Xn=Re.showTotalDistance;return ot.push.apply(ot,oo(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Fn,showDashDistance:on})).concat(oo(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Xn,format:Fn,showWhen:Lt})))),ot}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(Re){var ot=Rr([Re],{isActive:!0,isDraw:!0});return this.setLineData(function(Lt){return Kc({target:ot,data:[].concat(oo(Lt),[ot]),otherHandler:function(on){on.properties.isActive=!1}})}),this.setPointData([Re]),this.setTextData(this.getAllTexts()),ot}},{key:"syncLineNodes",value:function(Re,ot){return Re.properties.nodes=ot,Re.geometry.coordinates=Ji(to(ot)),this.setLineData(function(Lt){return Lt.map(function(on){return Js(on,Re)?Re:on})}),Js(this.editLine,Re)&&this.setMidPointData(this.getMidPointsByLine(Re)),this.setPointData(Re.properties.nodes),this.setTextData(this.getAllTexts()),Re}},{key:"setActiveLine",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Re.properties.nodes.map(function(Lt){return Lt.properties=lt(lt({},Lt.properties),{},{isHover:!1,isActive:!1}),Lt})),this.setMidPointData(this.getMidPointsByLine(Re)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),Re}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(Re){return Re.properties=lt(lt({},Re.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Re}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(Re){return this.clearActiveLine(),Re}},{key:"handleLineHover",value:function(Re){if(!this.drawLine)return this.setCursor("lineHover"),Js(Re,this.hoverLine)||this.setLineData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handleLineUnHover",value:function(Re){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Re}},{key:"handleLineDragStart",value:function(Re){return this.setActiveLine(Re,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),Re}},{key:"handleLineDragging",value:function(Re,ot){var Lt=ot.lng,on=ot.lat,Fn=Re.properties.nodes,Xn=_a(this.previousPosition,2),zi=Xn[0],ns=Xn[1];return Fn.forEach(function(Fo){var Ho=Fo.geometry.coordinates;Fo.geometry.coordinates=[Ho[0]+Lt-zi,Ho[1]+on-ns]}),this.syncLineNodes(Re,Fn),this.setActiveLine(Re,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[Lt,on],Re}},{key:"handleLineDragEnd",value:function(Re){return Re.properties.isDrag=!1,this.setLineData(function(ot){return ot}),this.scene.setMapStatus({dragEnable:!0}),Re}},{key:"resetAdsorbLngLat",value:function(Re){if(this.options.adsorbOptions){var ot=this.getAdsorbPosition(Ju(bl(Re)));return ot&&Du(Re,ot),ot}}},{key:"onPointCreate",value:function(Re){if(!this.editLine){this.resetAdsorbLngLat(Re);var ot=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Re),Lt=this.drawLine;if(ot)return Lt?(this.syncLineNodes(Lt,[].concat(oo(Lt.properties.nodes),[ot])),this.setDashLineData([])):this.handleCreateLine(ot),ot}}},{key:"onPointDragStart",value:function(Re){if(this.editLine)return this.setHelper("pointDrag"),Bs(Vi(Je.prototype),"onPointDragStart",this).call(this,Re)}},{key:"onPointDragging",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointDragging",this).call(this,Re);if(ot){var Lt=this.resetAdsorbLngLat(Re);Lt&&(ot.geometry.coordinates=ys(Lt))}var on=this.editLine;return on&&ot&&(this.syncLineNodes(on,on.properties.nodes.map(function(Fn){return Js(ot,Fn)?ot:Fn})),this.setActiveLine(on)),ot}},{key:"onPointDragEnd",value:function(Re){if(this.editLine){var ot=Bs(Vi(Je.prototype),"onPointDragEnd",this).call(this,Re);return this.setPointData(function(Lt){return Lt.map(function(on){return on.properties.isActive=!1,on})}),this.setHelper("pointHover"),ot}}},{key:"onLineUnClick",value:function(Re){var ot=this.editLine;if(ot)return this.handleLineUnClick(ot)}},{key:"onLineMouseMove",value:function(Re){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(Re.feature)}},{key:"onLineMouseOut",value:function(Re){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(Re.feature)}},{key:"onLineDragStart",value:function(Re){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ql(Re),this.setHelper("lineDrag"),this.handleLineDragStart(Re.feature)}},{key:"onLineDragging",value:function(Re){var ot=this.dragLine;if(ot)return this.handleLineDragging(ot,bl(Re))}},{key:"onLineDragEnd",value:function(Re){var ot=this.dragLine;if(ot)return this.setHelper("lineHover"),this.handleLineDragEnd(ot)}},{key:"onPointMouseMove",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointMouseMove",this).call(this,Re);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointMouseOut",this).call(this,Re);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),ot}},{key:"onMidPointHover",value:function(Re){Bs(Vi(Je.prototype),"onMidPointHover",this).call(this,Re),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(Re){Bs(Vi(Je.prototype),"onMidPointUnHover",this).call(this,Re),this.setHelper(null)}},{key:"onPointClick",value:function(Re){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(Re){return this.source.setRenderData("line",Re)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(Re){return this.source.setRenderData("text",Re)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(Re){return this.source.setRenderData("dashLine",Re)}},{key:"onMidPointClick",value:function(Re){var ot=this.editLine,Lt=Re.feature;if(ot&&Lt&&!this.dragPoint){var on=ot.properties.nodes,Fn=Lt.properties,Xn=Fn.startId,zi=Fn.endId,ns=on.findIndex(function($u){return $u.properties.id===Xn}),Fo=on.findIndex(function($u){return $u.properties.id===zi});if(ns>-1&&Fo>-1){var Ho=hn(Lt.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),on.splice(Fo,0,Ho),ot.geometry.coordinates=Ji(to(on)),this.syncLineNodes(ot,on),this.setActiveLine(ot),Ho}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var Re,ot,Lt,on=this.options.editable;(Re=this.lineRender)===null||Re===void 0||Re.enableUnClick(),on&&((ot=this.lineRender)===null||ot===void 0||ot.enableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disableLineRenderAction",value:function(){var Re,ot,Lt;(Re=this.lineRender)===null||Re===void 0||Re.disableUnClick(),(ot=this.lineRender)===null||ot===void 0||ot.disableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.disableDrag()}}]),Je}(Qi),mu=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(){return St(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(Re){var ot=Re.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.polygon)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{areaOptions:!1,helper:ys(Ci)});return Re.areaOptions&&(ot.areaOptions=lt(lt({},gn),Re.areaOptions)),ot}},{key:"getAreaTexts",value:function(Re){var ot=this.options.areaOptions;if(!ot)return[];var Lt=ot.format,on=ot.showWhen,Fn=[],Xn=Re.filter(function(zi){return zi.geometry.coordinates[0].length>=4});return on.includes("active")&&Xn.filter(function(zi){return zi.properties.isActive}).forEach(function(zi){Fn.push(Ea(zi,{format:Lt},{isActive:!0}))}),on.includes("normal")&&Xn.filter(function(zi){return!zi.properties.isActive}).forEach(function(zi){Fn.push(Ea(zi,{format:Lt},{isActive:!1}))}),Fn}},{key:"getAllTexts",value:function(){return[].concat(oo(Bs(Vi(Je.prototype),"getAllTexts",this).call(this)),oo(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(Re){return this.source.setRenderData("polygon",Re)}},{key:"handleCreatePolygon",value:function(Re,ot){var Lt=li(Re,{nodes:Re,line:ot,isActive:!0,isDraw:!0});return this.setPolygonData(function(on){return Kc({target:Lt,data:[].concat(oo(on),[Lt]),otherHandler:function(Fn){Fn.properties.isActive=!1}})}),Lt}},{key:"handlePolygonUnClick",value:function(Re){return this.clearActivePolygon(),Re}},{key:"handlePolygonHover",value:function(Re){return this.setCursor("polygonHover"),Js(Re,this.hoverPolygon)||this.setPolygonData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(Re){return Re.map(function(ot){return ot.properties.isHover=!1,ot})})}},{key:"handlePolygonDragStart",value:function(Re){return this.setActivePolygon(Re,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),Re}},{key:"bindPolygonRenderEvent",value:function(){var Re,ot,Lt,on;(Re=this.polygonRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(ot=this.polygonRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(Lt=this.polygonRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(on=this.polygonRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Ji(to([].concat(oo(ot),[su(ot)]))),on=Re.properties,Fn=on.line;if(Re.properties.nodes=ot,Re.geometry.coordinates=[Cp(Hi(Lt))?Lt:Lt.reverse()],this.setPolygonData(function(Ho){return Ho.map(function($u){return Js($u,Re)?Re:$u})}),!Js(this.drawPolygon,Re)){var Xn=Fn.properties.nodes,zi=oo(ot),ns=su(zi);zi.push(Xn.length===ot.length?hn(ns.geometry.coordinates):js(Xn));var Fo=js(zi);Ri(ns.geometry.coordinates,Fo.geometry.coordinates)||(Fo.geometry.coordinates=ys(ns.geometry.coordinates)),this.syncLineNodes(Fn,zi)}return Re}},{key:"setActivePolygon",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(Re.properties.line,ot),this.setPolygonData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),Re}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(Re){return Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragStart",this).call(this,Re),Lt=this.getPolygonData().find(function(on){return Js(on.properties.line,ot)});return Lt&&(this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.DragStart,Lt,this.getPolygonData())),ot}},{key:"onLineUnClick",value:function(Re){return this.editLine}},{key:"onLineDragEnd",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragEnd",this).call(this,Re),Lt=this.dragPolygon;return ot&&Lt&&(Lt.properties.isDrag=!1,this.emit(y.DrawEvent.DragEnd,Lt,this.getPolygonData()),this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData())),ot}},{key:"onPolygonUnClick",value:function(Re){var ot=this.editPolygon;if(ot)return this.handlePolygonUnClick(ot)}},{key:"onPolygonHover",value:function(Re){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(Re.feature)}},{key:"onPolygonUnHover",value:function(Re){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(Re){if(this.options.editable&&!this.drawPolygon){var ot=Re.feature;return this.previousPosition=Ql(Re),this.setHelper("polygonDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getPolygonData()),this.handlePolygonDragStart(ot)}}},{key:"onMidPointClick",value:function(Re){var ot=this.editPolygon,Lt=Bs(Vi(Je.prototype),"onMidPointClick",this).call(this,Re);if(Lt&&ot){var on=ot.properties.line.properties.nodes;this.syncPolygonNodes(ot,on.slice(0,on.length-1)),this.setActivePolygon(ot)}return Lt}},{key:"onPointDragEnd",value:function(Re){var ot=this.editPolygon,Lt=Bs(Vi(Je.prototype),"onPointDragEnd",this).call(this,Re);return Lt&&ot&&this.emit(y.DrawEvent.Edit,ot,this.getPolygonData()),Lt}},{key:"enablePolygonRenderAction",value:function(){var Re,ot,Lt,on=this.options.editable;(Re=this.polygonRender)===null||Re===void 0||Re.enableUnClick(),on&&((ot=this.polygonRender)===null||ot===void 0||ot.enableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var Re,ot,Lt;(Re=this.polygonRender)===null||Re===void 0||Re.disableUnClick(),(ot=this.polygonRender)===null||ot===void 0||ot.disableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.disableDrag()}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Bs(Vi(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);ot?this.setActivePolygon(ot):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var Re=this.getPolygonData();this.drawPolygon&&(Re=Re.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isDraw})}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}}]),Je}(yl),hc=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).onSceneDragStart=Lt.onSceneDragStart.bind(fs(Lt)),Lt.onSceneDragEnd=Lt.onSceneDragEnd.bind(fs(Lt)),Lt}return jn(Je,[{key:"drawLine",get:function(){var Re;return(Re=this.drawPolygon)===null||Re===void 0?void 0:Re.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:ys(gs)});return Re.trigger==="drag"&&(ot.helper=lt(lt({},ot.helper),Es)),ot}},{key:"getMidPointsByLine",value:function(Re){return[]}},{key:"handleCreatePolygon",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},on=ot.properties.nodes;return li(on.slice(0,on.length-1),lt({nodes:Re,line:ot},Lt))}},{key:"handleFirstNodeCreate",value:function(Re){var ot=hn(Re.geometry.coordinates),Lt=this.handleCreatePolygonLine(Re,ot,{isDraw:!0,isActive:!0}),on=this.handleCreatePolygon([Re,ot],Lt,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Fn){return Kc({target:on,data:[].concat(oo(Fn),[on]),targetHandler:function(Xn){Xn.properties=lt(lt({},Xn.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(y.DrawEvent.AddNode,Re,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),Re}},{key:"handleLastNodeCreate",value:function(Re){var ot=this.options,Lt=ot.autoActive,on=ot.editable,Fn=this.drawPolygon;return Fn&&(this.setLineData(function(Xn){return[].concat(oo(Xn),[Fn.properties.line])}),this.setActivePolygon(Fn),Lt&&on||this.handlePolygonUnClick(Fn),this.emit(y.DrawEvent.Add,Fn,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,Fn.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(on?Lt?"pointHover":"polygonHover":this.addable?"draw":null)),Re}},{key:"onPointCreate",value:function(Re){var ot=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var Lt=this.drawPolygon,on=Ql(Re),Fn=this.handleCreatePoint(on);return Lt?requestAnimationFrame(function(){ot.handleLastNodeCreate(Fn)}):this.handleFirstNodeCreate(Fn),Fn}}},{key:"setActivePolygon",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(Re.properties.line,ot),this.setPolygonData(function(on){return Kc({target:Re,data:on,targetHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Re.properties.nodes),this.setDashLineData([]);var Lt=this.getAllTexts();return this.setTextData(Lt),Re}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint;if(ot){var Lt=this.handlePointDragging(ot,bl(Re)),on=this.editPolygon;return Lt&&on&&(this.syncPolygonNodes(on,on.properties.nodes.map(function(Fn){return Js(Fn,Lt)?Lt:Fn})),this.setActivePolygon(on)),Lt}}},{key:"onSceneDragStart",value:function(Re){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ql(Re))))}},{key:"onSceneDragEnd",value:function(Re){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ql(Re))))}},{key:"onSceneMouseMove",value:function(Re){var ot=this.drawPolygon;if(ot){var Lt=ot.properties.nodes,on=su(Lt),Fn=js(Lt);Fn.geometry.coordinates=Ql(Re),this.syncPolygonNodes(ot,[on,Fn]),this.setDashLineData([ot.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Bs(Vi(Je.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),Je}(mu),ud=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{showMidPoint:!1,circleSteps:60});return ot.distanceOptions&&(ot.distanceOptions.showTotalDistance=!0,ot.distanceOptions.showOnRadius===void 0&&(ot.distanceOptions.showOnRadius=!0)),ot.helper&&(ot.helper=lt(lt({},ot.helper),ta)),ot}},{key:"getDistanceTexts",value:function(){var Re=this.options.distanceOptions;if(!Re)return[];var ot=[],Lt=Re.showWhen,on=Re.showDashDistance,Fn=Re.format,Xn=Re.showTotalDistance;return ot.push.apply(ot,oo(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Fn,showDashDistance:on})).concat(oo(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Xn,format:Fn,showWhen:Lt})))),ot}},{key:"setData",value:function(Re){var ot=this,Lt=Re.map(function(on){var Fn,Xn,zi;on.properties=lt(lt({},et()),on.properties);var ns=(Fn=on.properties)===null||Fn===void 0?void 0:Fn.nodes;if(((Xn=ns)===null||Xn===void 0?void 0:Xn.length)!==2){var Fo=_a(ja(on).geometry.coordinates,2),Ho=Fo[0],$u=Fo[1],gu=Ml(on),Kl=gu[2],Sl=(gu[1]+gu[3])/2;ns=[hn([Ho,$u]),hn([Kl,Sl])],on.properties.nodes=ns}var ql=ns[0],ol=ns[1],Ga=!!(!((zi=on.properties)===null||zi===void 0)&&zi.isActive),pu=on.properties.line;return pu||(pu=ot.handleCreatePolygonLine(ql,ol,{isActive:Ga}),on.properties.line=pu),ot.handleCreatePolygon([ql,ol],pu,lt(lt({},on.properties),{},{isActive:Ga}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(on){return on.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},on=this.getBoundaryPositions(Re,ot).map(function(Fn){return hn(Fn)});return Rr(on,Lt)}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Re.properties.line,on=this.getBoundaryPositions(ot[0],ot[1]);return Re.properties.nodes=ot,Re.geometry.coordinates=[on],this.setPolygonData(function(Fn){return Fn.map(function(Xn){return Js(Xn,Re)?Re:Xn})}),this.setPointData(Re.properties.isDraw?[ot[0]]:ot),Lt.properties.nodes.forEach(function(Fn,Xn){Fn.geometry.coordinates=on[Xn]}),Lt.geometry.coordinates=on,Re}},{key:"onLineDragging",value:function(Re){var ot=this.dragPolygon,Lt=_a(this.previousPosition,2),on=Lt[0],Fn=Lt[1],Xn=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Re);if(ot){var zi=_a(Ql(Re),2),ns=zi[0],Fo=zi[1];ot.properties.nodes.forEach(function(Ho){var $u=_a(Ho.geometry.coordinates,2);Ho.geometry.coordinates=[$u[0]+ns-on,$u[1]+Fo-Fn]}),this.syncPolygonNodes(ot,ot.properties.nodes),this.setActivePolygon(ot,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Xn}},{key:"getBoundaryPositions",value:function(Re,ot){for(var Lt=this.options.circleSteps,on=tl(Re,ot,{units:"meters"}),Fn=[],Xn=0;Lt>Xn;Xn++)Fn.push(wd(Re,on,-360*Xn/Lt,{units:"meters"}).geometry.coordinates);return Fn.push(Fn[0]),Fn}}]),Je}(hc),Wo=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).drawLineFinish=function(){var on,Fn=Lt.drawLine,Xn=(on=Fn==null?void 0:Fn.properties.nodes)!==null&&on!==void 0?on:[];if(Fn&&(Xn==null?void 0:Xn.length)>1){Lt.setActiveLine(Fn);var zi=Lt.options,ns=zi.autoActive,Fo=zi.editable;ns&&Fo||Lt.handleLineUnClick(Fn),Lt.setHelper(Fo&&ns?"pointHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getLineData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawLineFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.line)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"setData",value:function(Re){var ot=Re.map(function(Lt){var on,Fn;return Lt.properties=lt(lt({},Oe()),(on=Lt.properties)!==null&&on!==void 0?on:{}),!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length||(Lt.properties.nodes=Ji(Lt).map(function(Xn){return hn(Xn)})),Lt});this.source.setData({point:[],midPoint:[],dashLine:[],line:ot}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var Re;Bs(Vi(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(Re){var ot,Lt=this,on=this.drawLine,Fn=(ot=on==null?void 0:on.properties.nodes)!==null&&ot!==void 0?ot:[],Xn=Re.feature;if(Js(Xn,js(Fn)))requestAnimationFrame(function(){Lt.drawLineFinish()});else{var zi=_a(Xn.geometry.coordinates,2);Re.lngLat={lng:zi[0],lat:zi[1]},this.onPointCreate(Re)}}},{key:"removeNode",value:function(Re,ot){var Lt,on=this.getTargetFeature(ot),Fn=this.getTargetFeature(Re,(Lt=on==null?void 0:on.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(on&&Fn){var Xn,zi=(Xn=on==null?void 0:on.properties.nodes)!==null&&Xn!==void 0?Xn:[];if(3>zi.length)return;this.syncLineNodes(on,zi.filter(function(ns){return!Js(Fn,ns)})),this.emit(y.DrawEvent.RemoveNode,Fn,on,this.getLineData()),this.emit(y.DrawEvent.Edit,on,this.getLineData())}}},{key:"onPointContextMenu",value:function(Re){var ot,Lt=this.editLine,on=Re.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=3)return this.removeNode(on,Lt),this.scene.setMapStatus({dragEnable:!0}),on}},{key:"onPointCreate",value:function(Re){if(this.addable){var ot=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Re);return ot&&(this.setHelper("drawFinish"),this.emit(y.DrawEvent.AddNode,ot,this.drawLine,this.getLineData())),ot}}},{key:"onPointDragEnd",value:function(Re){var ot=this.editLine,Lt=Bs(Vi(Je.prototype),"onPointDragEnd",this).call(this,Re);return ot&&Lt&&this.emit(y.DrawEvent.Edit,ot,this.getLineData()),Lt}},{key:"onLineDragStart",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragStart",this).call(this,Re);return ot&&this.emit(y.DrawEvent.DragStart,ot,this.getLineData()),ot}},{key:"onLineDragging",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Re);return ot&&this.emit(y.DrawEvent.Dragging,ot,this.getLineData()),ot}},{key:"onLineDragEnd",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragEnd",this).call(this,Re);return ot&&(this.emit(y.DrawEvent.DragEnd,ot,this.getLineData()),this.emit(y.DrawEvent.Edit,ot,this.getLineData())),ot}},{key:"onMidPointClick",value:function(Re){var ot=this.editLine,Lt=Bs(Vi(Je.prototype),"onMidPointClick",this).call(this,Re);return ot&&Lt&&(this.emit(y.DrawEvent.Edit,ot,this.getLineData()),this.emit(y.DrawEvent.AddNode,Lt,ot,this.getLineData())),Lt}},{key:"onSceneMouseMove",value:function(Re){var ot=this.drawLine;if(ot){var Lt,on=js(ot.properties.nodes),Fn=Ql(Re);this.options.adsorbOptions&&(Fn=(Lt=this.getAdsorbPosition(Fn))!==null&&Lt!==void 0?Lt:Fn),this.setDashLineData([wn([Fn,on.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);ot?this.setActiveLine(ot):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var Re=this.getLineData();this.drawLine&&(Re=Re.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}},{key:"enablePointRenderAction",value:function(){var Re;Bs(Vi(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Re=this.pointRender)===null||Re===void 0||Re.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Re;Bs(Vi(Je.prototype),"disablePointRenderAction",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Bs(Vi(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),Je}(yl),Wd=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},this.getCommonOptions(Re)),{},{helper:ys(ar),initialData:Re.initialData});return ot.style.point=pc,ot}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.point)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"setData",value:function(Re){this.setPointData(Re.map(function(ot){var Lt;return ot.properties=lt(lt({},Le()),(Lt=ot.properties)!==null&&Lt!==void 0?Lt:{}),ot}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(Re){if(this.addable){var ot=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Re);if(ot)return this.options.editable&&this.setHelper("pointHover"),this.emit(y.DrawEvent.Add,ot,this.getData()),ot}else this.setPointData(function(Lt){return Lt.map(function(on){return on.properties=lt(lt({},on.properties),{},{isHover:!1,isActive:!1}),on})})}},{key:"onPointMouseMove",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointMouseMove",this).call(this,Re);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointMouseOut",this).call(this,Re);return this.setHelper(this.addable?"draw":null),ot}},{key:"onPointDragStart",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointDragStart",this).call(this,Re);return this.setHelper("pointDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getData()),ot}},{key:"onPointDragging",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointDragging",this).call(this,Re);return ot&&this.options.editable&&this.emit(y.DrawEvent.Dragging,ot,this.getData()),ot}},{key:"onPointDragEnd",value:function(Re){var ot=Bs(Vi(Je.prototype),"onPointDragEnd",this).call(this,Re);return ot&&this.options.editable&&(this.setHelper("pointHover"),this.emit(y.DrawEvent.DragEnd,ot,this.getData()),this.emit(y.DrawEvent.Edit,ot,this.getData())),ot}},{key:"bindThis",value:function(){Bs(Vi(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(Re){}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);this.setPointData(function(Lt){return Lt.map(function(on){return on.properties.isActive=Js(ot,on),on})})}},{key:"resetFeatures",value:function(){this.setPointData(function(Re){return Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})})}}]),Je}(bs),pd=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).drawPolygonFinish=function(){var on,Fn=Lt.drawPolygon,Xn=(on=Fn==null?void 0:Fn.properties.nodes)!==null&&on!==void 0?on:[];if(Fn&&Xn.length>=3){Fn.properties.isDraw=!1,Lt.syncPolygonNodes(Fn,Xn),Lt.setActivePolygon(Fn);var zi=Lt.options,ns=zi.autoActive,Fo=zi.editable;ns&&Fo||Lt.handlePolygonUnClick(Fn),Lt.setHelper(Fo?ns?"pointHover":"polygonHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getPolygonData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawPolygonFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){return lt(lt({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{liveUpdate:!1})}},{key:"setData",value:function(Re){var ot=Re.map(function(Lt){var on,Fn;if(Lt.properties=lt(lt({},et()),(on=Lt.properties)!==null&&on!==void 0?on:{}),!(!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length)){var Xn=Ji(Lt);Xn=Xn.slice(0,Xn.length-1),Lt.properties.nodes=Xn.map(function(ns){return hn(ns)})}if(!Lt.properties.line){var zi=Lt.properties.nodes;Lt.properties.line=Rr([].concat(oo(zi),[hn(su(zi).geometry.coordinates)]))}return Lt});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:ot,line:ot.map(function(Lt){return Lt.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(Re){if(this.addable&&!this.dragPoint){var ot=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Re),Lt=this.drawPolygon,on=this.drawLine;return ot&&(Lt?(this.syncPolygonNodes(Lt,[].concat(oo(Lt.properties.nodes),[ot])),this.setDashLineData([wn([Ql(Re),Lt.properties.nodes[0].geometry.coordinates])]),Lt.properties.nodes.length>1&&this.setHelper("drawFinish")):on&&(this.handleCreatePolygon([ot],on),this.setHelper("drawContinue")),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}}},{key:"onPointClick",value:function(Re){var ot=this,Lt=this.drawPolygon,on=Re.feature;if(Lt){var Fn=Lt.properties.nodes;if(Fn.length<3||!Js(su(Fn),on)&&!Js(js(Fn),on)){var Xn=_a(on.geometry.coordinates,2);Re.lngLat={lng:Xn[0],lat:Xn[1]},this.onPointCreate(Re)}else requestAnimationFrame(function(){ot.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint,Lt=this.editPolygon;if(ot&&Lt){var on=Lt.properties.line;on.properties.nodes=on.properties.nodes.map(function($u){return Js($u,ot)?ot:$u});var Fn=on.properties.nodes,Xn=Fn.slice(0,Fn.length-1),zi=su(Fn),ns=js(Fn),Fo=Js(zi,ot)||Js(ns,ot);if(Fo&&(zi.geometry.coordinates=ns.geometry.coordinates=Ql(Re)),this.options.adsorbOptions&&Fo){var Ho=this.resetAdsorbLngLat(Re);Ho&&(zi.geometry.coordinates=ns.geometry.coordinates=Ho)}Bs(Vi(Je.prototype),"onPointDragging",this).call(this,Re),this.syncPolygonNodes(Lt,Xn),this.setActivePolygon(Lt)}return ot}},{key:"onLineDragging",value:function(Re){var ot=this.dragPolygon,Lt=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Re);if(Lt&&ot){var on=Lt.properties.nodes;this.syncPolygonNodes(ot,on.slice(0,on.length-1)),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Lt}},{key:"onMidPointClick",value:function(Re){var ot=Bs(Vi(Je.prototype),"onMidPointClick",this).call(this,Re),Lt=this.editPolygon;return ot&&Lt&&(this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}},{key:"onSceneMouseMove",value:function(Re){var ot,Lt=this.drawPolygon,on=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&on.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(Re);var Fn=Ql(Re),Xn=[];if(Xn.push(wn([Fn,su(on).geometry.coordinates])),on.length>1&&Xn.push(wn([Fn,js(on).geometry.coordinates])),this.options.liveUpdate&&on.length>=2){var zi=Ji(to(on));Lt.geometry.coordinates=[[].concat(oo(zi),[Fn,zi[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Xn),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(Re,ot){var Lt,on=this.getTargetFeature(ot),Fn=this.getTargetFeature(Re,(Lt=on==null?void 0:on.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(on&&Fn){var Xn,zi=(Xn=on==null?void 0:on.properties.nodes)!==null&&Xn!==void 0?Xn:[];if(4>zi.length)return;this.syncPolygonNodes(on,zi.filter(function(ns){return!Js(Fn,ns)})),this.emit(y.DrawEvent.RemoveNode,Fn,on,this.getLineData()),this.emit(y.DrawEvent.Edit,on,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(Re){var ot,Lt=this.editPolygon,on=Re.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=4)return Fn.find(function(Xn){return Js(Xn,on)})||(on=Fn[0]),this.removeNode(on,Lt),on}},{key:"bindPointRenderEvent",value:function(){var Re;Bs(Vi(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var Re;Bs(Vi(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Re=this.pointRender)===null||Re===void 0||Re.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Re;Bs(Vi(Je.prototype),"disablePointRenderAction",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.disableContextMenu()}}]),Je}(mu),up=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re,ot){var Lt;return St(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){var ot=Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Re);return ot.helper&&(ot.helper=lt(lt({},ot.helper),Pl)),ot}},{key:"setData",value:function(Re){var ot=this,Lt=Re.map(function(on){var Fn,Xn,zi;on.properties=lt(lt({},et()),(Fn=on.properties)!==null&&Fn!==void 0?Fn:{});var ns=on.properties.nodes;if(((Xn=ns)===null||Xn===void 0?void 0:Xn.length)!==2){var Fo=_a(Ml(on),4),Ho=Fo[2],$u=Fo[3];ns=[hn([Fo[0],Fo[1]]),hn([Ho,$u])],on.properties.nodes=ns}var gu=_a(ns,2),Kl=gu[0],Sl=gu[1],ql=!!(!((zi=on.properties)===null||zi===void 0)&&zi.isActive),ol=on.properties.line;return ol||(ol=ot.handleCreatePolygonLine(Kl,Sl,{isActive:ql}),on.properties.line=ol),ot.handleCreatePolygon([Kl,Sl],ol,lt(lt({},on.properties),{},{isActive:ql}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(on){return on.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},on=Ji(Bu(to([Re,ot]))).map(function(Fn,Xn){return Xn===0?Re:Xn===2?ot:hn(Fn)});return Rr(on,Lt)}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Re.properties.line,on=Ji(Bu(to(ot)));Re.properties.nodes=ot,Re.geometry.coordinates=[on],this.setPolygonData(function(zi){return zi.map(function(ns){return Js(ns,Re)?Re:ns})}),this.setPointData(Re.properties.isDraw?[ot[0]]:ot);var Fn=Lt.properties.nodes,Xn=on.filter(function(zi){return!Ri(zi,ot[0].geometry.coordinates)&&!Ri(zi,ot[1].geometry.coordinates)});return Fn.forEach(function(zi,ns){var Fo=[0,0];switch(ns){case 0:Fo=ot[0].geometry.coordinates;break;case 1:Fo=Xn[0];break;case 2:Fo=ot[1].geometry.coordinates;break;case 3:Fo=Xn[1];break;case 4:Fo=ys(ot[0].geometry.coordinates)}zi.geometry.coordinates=Fo}),Lt.geometry.coordinates=on,Re}},{key:"onLineDragging",value:function(Re){var ot=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Re),Lt=this.dragPolygon;if(ot&&Lt){var on=Lt.properties.line.properties.nodes;this.syncPolygonNodes(Lt,[on[0],on[2]]),this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,Lt,this.getPolygonData())}return ot}}]),Je}(hc),eg=function(Se,$e){for(var Je=Se;Je&&!Array.from(Je.classList).includes($e);)Je=Je.parentElement;return Je},Gg={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},Pm={point:Wd,line:Wo,polygon:pd,rect:up,circle:ud},Nm="data-draw-type",Hm="l7-draw-control",Eg="".concat(Hm,"__btn"),Sm="".concat(Eg,"--active");(function(Se){var $e,Je,Re,ot,Lt,on='',Fn=(Fn=document.getElementsByTagName("script"))[Fn.length-1].getAttribute("data-injectcss");if(Fn&&!Se.__iconfont__svg__cssinject__){Se.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(zi){console&&console.log(zi)}}function Xn(){Lt||(Lt=!0,Re())}$e=function(){var zi,ns=document.createElement("div");ns.innerHTML=on,on=null,(ns=ns.getElementsByTagName("svg")[0])&&(ns.setAttribute("aria-hidden","true"),ns.style.position="absolute",ns.style.width=0,ns.style.height=0,ns.style.overflow="hidden",(zi=document.body).firstChild?function(Fo,Ho){Ho.parentNode.insertBefore(Fo,Ho)}(ns,zi.firstChild):zi.appendChild(ns))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout($e,0):(Je=function(){document.removeEventListener("DOMContentLoaded",Je,!1),$e()},document.addEventListener("DOMContentLoaded",Je,!1)):document.attachEvent&&(Re=$e,ot=Se.document,Lt=!1,function zi(){try{ot.documentElement.doScroll("left")}catch(ns){return void setTimeout(zi,50)}Xn()}(),ot.onreadystatechange=function(){ot.readyState=="complete"&&(ot.onreadystatechange=null,Xn())})})(window),os(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var um=function(Se){ki(Je,Se);var $e=Ns(Je);function Je(Re){var ot,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return St(this,Je),(ot=$e.call(this,Lt)).controlOption=void 0,ot.sceneInstance=void 0,ot.drawMap={},ot.btnMap={},ot.activeType=null,ot.emitDataChange=D(function(){ot.emit(y.ControlEvent.DataChange,ot.getDrawData())},16),ot.emitDrawSelect=function(on,Fn){ot.emit(y.ControlEvent.DrawSelect,on,Fn)},ot.sceneInstance=Re,ot.controlOption=lt(lt({},ot.getDefault()),Lt||{}),ot.onBtnClick=ot.onBtnClick.bind(fs(ot)),ot}return jn(Je,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return lt(lt({},Bs(Vi(Je.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(Re){return Bs(Vi(Je.prototype),"addTo",this).call(this,Re),this.init(),this}},{key:"onAdd",value:function(){var Re=this.controlOption,ot=Re.className,Lt=Re.style,on=A.DOM.create("div","".concat(Hm," ").concat(ot));return Lt&&on.setAttribute("style",Lt),on}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(Re){Re.clear(!0)})}},{key:"init",value:function(){var Re,ot=this,Lt=[];Object.entries(this.controlOption.drawConfig).forEach(function(on){var Fn=_a(on,2),Xn=Fn[0],zi=Fn[1];if(zi){var ns=ot.initBtn(Xn);ns.addEventListener("click",ot.onBtnClick),Lt.push(ns),ot.btnMap[Xn]=ns;var Fo=Pm[Xn];if(Fo&&ot.sceneInstance){var Ho=new Fo(ot.sceneInstance,lt(lt({},ot.controlOption.commonDrawOptions),typeof zi=="boolean"?{}:zi));Ho.on(y.DrawEvent.Change,ot.emitDataChange),Ho.on(y.DrawEvent.Select,function($u){ot.emitDrawSelect(Xn,$u)}),ot.drawMap[Xn]=Ho}}}),(Re=this.container).append.apply(Re,Lt),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Os(Ca(this.drawMap).map(function(Re){var ot=_a(Re,2);return[ot[0],ot[1].getData()]}))}},{key:"getTypeDraw",value:function(Re){var ot;return(ot=this.drawMap[Re])!==null&&ot!==void 0?ot:null}},{key:"onBtnClick",value:function(Re){var ot=eg(Re.target,Eg);if(ot){var Lt=ot.getAttribute(Nm);Lt==="clear"?this.clearDrawData():this.onDrawClick(Lt)}}},{key:"setActiveType",value:function(Re){var ot=null,Lt=this.activeType;if(Lt){var on,Fn=this.btnMap[Lt];if(Fn){A.DOM.removeClass(Fn,Sm);var Xn=this.controlOption.activeButtonClassName;Xn&&A.DOM.removeClass(Fn,Xn)}(on=this.drawMap[Lt])===null||on===void 0||on.disable(),ot=null}if(Lt!==Re&&Re){var zi;(zi=this.drawMap[Re])===null||zi===void 0||zi.enable();var ns=this.btnMap[Re];ns&&A.DOM.addClass(ns,"".concat(Sm," ").concat(this.controlOption.activeButtonClassName)),ot=Re}this.activeType=ot,this.emit(y.ControlEvent.DrawChange,ot)}},{key:"onDrawClick",value:function(Re){this.setActiveType(Re)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(Re){Re==null||Re.clear()})}},{key:"initBtn",value:function(Re){var ot=A.DOM.create("button","".concat(Eg," ").concat(this.controlOption.buttonClassName));return ot.innerHTML=``),ot.setAttribute(Nm,Re),ot}}]),Je}(A.Control);y.ACTIVE_COLOR=fa,y.BaseMode=Ra,y.CircleDrawer=ud,y.DEFAULT_ADSORB_CONFIG=gt,y.DEFAULT_AREA_OPTIONS=gn,y.DEFAULT_COMMON_OPTIONS=Cl,y.DEFAULT_CURSOR_MAP=b,y.DEFAULT_DISTANCE_OPTIONS=Xt,y.DEFAULT_HISTORY_CONFIG=En,y.DEFAULT_KEYBOARD_CONFIG=tt,y.DEFAULT_MID_POINT_STYLE=Iu,y.DEFAULT_NODE_NORMAL_STYLE=zu,y.DEFAULT_NODE_STYLE=zc,y.DEFAULT_POINT_NORMAL_STYLE=Ll,y.DEFAULT_POINT_STYLE=pc,y.DEFAULT_POPUP_CONFIG=at,y.DEFAULT_SOURCE_DATA=z,y.DEFAULT_STYLE=X,y.DEFAULT_TEXT_NORMAL_STYLE=Rd,y.DashLineRender=Np,y.DragPolygonMode=hc,y.DrawCircle=ud,y.DrawControl=um,y.DrawLine=Wo,y.DrawPoint=Wd,y.DrawPolygon=pd,y.DrawRect=up,y.LayerRender=Pd,y.LineDrawer=Wo,y.LineMode=yl,y.LineRender=F,y.MidPointMode=Qi,y.MidPointRender=J,y.NORMAL_COLOR=Xo,y.PointDrawer=Wd,y.PointMode=bs,y.PointRender=ae,y.PolygonDrawer=pd,y.PolygonMode=mu,y.PolygonRender=Ue,y.RENDER_MAP=_i,y.RectDrawer=up,y.SceneRender=Jt,y.Source=Da,y.TextRender=$n,y.calcAreaText=Ea,y.calcDistanceTextsByLine=_s,y.createDashLine=wn,y.createLineFeature=Rr,y.createPointFeature=hn,y.createPolygonFeature=li,y.findMinIndex=As,y.getAdsorbFeature=vr,y.getAdsorbLine=Ta,y.getAdsorbPoint=qa,y.getDefaultLineProperties=Oe,y.getDefaultPointProperties=Le,y.getDefaultPolygonProperties=et,y.getLineCenterPoint=Fi,y.getLngLat=bl,y.getMapDom=Aa,y.getParentByClassName=eg,y.getPosition=Ql,y.getSingleColorStyle=function(Se){return{point:{normal:{color:Se},hover:{color:Se},active:{color:Se}},line:{normal:{color:Se},hover:{color:Se},active:{color:Se}},polygon:{normal:{color:Se},hover:{color:Se},active:{color:Se},style:{opacity:.2}},text:{normal:{color:Se},active:{color:Se}},midPoint:{normal:{color:Se}},dashLine:{normal:{color:Se}}}},y.getUuid=tu,y.isDev=!1,y.isSameFeature=Js,y.resetEventLngLat=Du,y.splitByPosition=Xa,y.transLngLat2Position=Ju,y.updateTargetFeature=Kc,Object.defineProperty(y,"__esModule",{value:!0})})},61329:function(nt,V,m){"use strict";m.r(V),m.d(V,{AJAXError:function(){return hs},AttributeType:function(){return Ld},BKDRHash:function(){return Nf},BaseLayer:function(){return Ja},BaseMapService:function(){return JE},BaseMapWrapper:function(){return fA},BaseModel:function(){return Su},BasePostProcessingPass:function(){return O1},BlendType:function(){return Fh},ButtonControl:function(){return Y},CameraUniform:function(){return Fb},CanvasLayer:function(){return lE},CanvasUpdateType:function(){return jf},CityBuildingLayer:function(){return hE},Control:function(){return v},CoordinateSystem:function(){return eh},CoordinateUniform:function(){return rf},DOM:function(){return y},Earth:function(){return I7},EarthLayer:function(){return lW},ExportImage:function(){return nl},FrequencyController:function(){return ls},Fullscreen:function(){return Oh},GaodeMap:function(){return GF},GaodeMapV1:function(){return mV},GaodeMapV2:function(){return GF},GeoLocate:function(){return Jf},GeometryLayer:function(){return m6},HeatmapLayer:function(){return _6},IDebugLog:function(){return fm},ILayerStage:function(){return Rl},ImageLayer:function(){return WM},InteractionEvent:function(){return fg},LRUCache:function(){return kf},LayerPopup:function(){return W0},LayerSwitch:function(){return Qh},LineLayer:function(){return _E},LineTriangulation:function(){return Ut},LinearDir:function(){return Tc},LoadTileDataStatus:function(){return Df},Logo:function(){return Fl},Map:function(){return QE},MapServiceEvent:function(){return pw},MapTheme:function(){return _t},Mapbox:function(){return ck},Marker:function(){return S2},MarkerLayer:function(){return dC},MaskLayer:function(){return _O},MaskOperation:function(){return es},MouseLocation:function(){return Uo},PassType:function(){return Rf},PointFillTriangulation:function(){return Vt},PointLayer:function(){return $4},PolygonLayer:function(){return j4},PopperControl:function(){return Zn},Popup:function(){return _g},PositionType:function(){return bo},RasterLayer:function(){return V4},RasterTileType:function(){return Pv},Satistics:function(){return A},Scale:function(){return _c},ScaleTypes:function(){return n0},Scene:function(){return OR},SceneConifg:function(){return no},SceneEventList:function(){return gw},SelectControl:function(){return $o},SizeUnitType:function(){return Wh},Source:function(){return r0},SourceTile:function(){return Od},StencilType:function(){return nf},StyleScaleType:function(){return Bb},TYPES:function(){return vr},TextureBlend:function(){return Ch},TileDebugLayer:function(){return mO},TilesetManager:function(){return _h},UpdateTileStrategy:function(){return Bc},Version:function(){return d0},Viewport:function(){return OI},WindLayer:function(){return yW},WorkerSourceMap:function(){return Hr},Zoom:function(){return Ed},aProjectFlat:function(){return Mu},amap2Project:function(){return hd},amap2UnProject:function(){return vd},anchorTranslate:function(){return Tt},anchorType:function(){return Mt},applyAnchorClass:function(){return xt},bBoxToBounds:function(){return id},bindAll:function(){return Eu},boundsContains:function(){return yh},calAngle:function(){return Yc},calDistance:function(){return Pf},calculateCentroid:function(){return Lh},calculatePointsCenterAndRadius:function(){return Sf},container:function(){return _v},createLayerContainer:function(){return Rb},createSceneContainer:function(){return qm},decodePickingColor:function(){return oi},djb2hash:function(){return ch},encodePickingColor:function(){return Zi},executeWorkerTask:function(){return zs},expandUrl:function(){return bd},extent:function(){return fu},flow:function(){return uf},formatImage:function(){return sn},generateCatRamp:function(){return Gn},generateColorRamp:function(){return Ar},generateCustomRamp:function(){return In},generateLinearRamp:function(){return tn},generateQuantizeRamp:function(){return Ei},getAngle:function(){return jh},getArrayBuffer:function(){return ji},getBBoxFromPoints:function(){return xp},getCullFace:function(){return Mi},getDefaultDomain:function(){return nr},getImage:function(){return Wt},getJSON:function(){return go},getProtocolAction:function(){return Bo},getReferrer:function(){return el},getTileIndices:function(){return iu},getTileWarpXY:function(){return mp},getURLFromTemplate:function(){return $c},getWMTSURLFromTemplate:function(){return Hd},gl:function(){return qi},guid:function(){return Th},isAndroid:function(){return vu},isColor:function(){return co},isImageBitmap:function(){return ea},isPC:function(){return au},isURLTemplate:function(){return Bf},isWorker:function(){return Qa},isiOS:function(){return Jl},latitude:function(){return Xd},lazyInject:function(){return dw},lazyMultiInject:function(){return WS},lineAtOffset:function(){return Vf},lineAtOffsetAsyc:function(){return vf},lineStyleType:function(){return Cc},lngLatInExtent:function(){return vl},lngLatToMeters:function(){return Uc},lnglatDistance:function(){return Yd},lodashUtil:function(){return Fa},longitude:function(){return th},makeXMLHttpRequestPromise:function(){return So},metersToLngLat:function(){return zd},normalize:function(){return nd},osmLonLat2TileXY:function(){return Ih},osmTileXY2LonLat:function(){return of},packCircleVertex:function(){return B_},padBounds:function(){return jd},polygonFillTriangulation:function(){return Yt},postData:function(){return No},project:function(){return nh},rgb2arr:function(){return Qr},sameOrigin:function(){return dn},setL7WorkerSource:function(){return Po},tileToBounds:function(){return Ff},tranfrormCoord:function(){return lc},unProjectFlat:function(){return Fc},validateLngLat:function(){return sd},version:function(){return B7}});var y={};m.r(y),m.d(y,{DPR:function(){return hi},addClass:function(){return Cs},addStyle:function(){return Ji},appendElementType:function(){return Ml},clearChildren:function(){return hl},create:function(){return to},css2Style:function(){return us},empty:function(){return vo},findParentElement:function(){return Za},getClass:function(){return Pc},getContainer:function(){return la},getDiffRect:function(){return pa},getStyleList:function(){return so},getViewPortScale:function(){return ai},hasClass:function(){return Wu},printCanvas:function(){return yr},remove:function(){return sa},removeClass:function(){return Ka},removeStyle:function(){return Pi},setChecked:function(){return $a},setClass:function(){return rc},setTransform:function(){return ds},setUnDraggable:function(){return Zl},splitWords:function(){return vs},triggerResize:function(){return Wn},trim:function(){return Nl}});var A={};m.r(A),m.d(A,{getColumn:function(){return cf},getSatByColumn:function(){return Qc},max:function(){return Bh},mean:function(){return ed},min:function(){return Kf},mode:function(){return Vh},statMap:function(){return Kh},sum:function(){return ah}});var b={};m.r(b),m.d(b,{add:function(){return lu},adjoint:function(){return gu},clone:function(){return Fn},copy:function(){return Xn},create:function(){return on},determinant:function(){return Kl},equals:function(){return Xu},exactEquals:function(){return _d},frob:function(){return cu},fromQuat:function(){return Nn},fromQuat2:function(){return Z},fromRotation:function(){return xc},fromRotationTranslation:function(){return R},fromRotationTranslationScale:function(){return wt},fromRotationTranslationScaleOrigin:function(){return jt},fromScaling:function(){return Jh},fromTranslation:function(){return Oo},fromValues:function(){return zi},fromXRotation:function(){return fh},fromYRotation:function(){return Gd},fromZRotation:function(){return _},frustum:function(){return cr},getRotation:function(){return Qe},getScaling:function(){return Pe},getTranslation:function(){return ue},identity:function(){return Fo},invert:function(){return $u},lookAt:function(){return Pa},mul:function(){return Nd},multiply:function(){return Sl},multiplyScalar:function(){return kc},multiplyScalarAndAdd:function(){return ac},ortho:function(){return ra},orthoNO:function(){return qs},orthoZO:function(){return al},perspective:function(){return bi},perspectiveFromFieldOfView:function(){return zo},perspectiveNO:function(){return Ur},perspectiveZO:function(){return _o},rotate:function(){return Ga},rotateX:function(){return pu},rotateY:function(){return oc},rotateZ:function(){return cd},scale:function(){return ol},set:function(){return ns},str:function(){return Vl},sub:function(){return qt},subtract:function(){return Hu},targetTo:function(){return Ol},translate:function(){return ql},transpose:function(){return Ho}});var z={};m.r(z),m.d(z,{add:function(){return rz},angle:function(){return EM},bezier:function(){return iX},ceil:function(){return oz},clone:function(){return yw},copy:function(){return tz},create:function(){return $_},cross:function(){return lD},dist:function(){return lX},distance:function(){return wM},div:function(){return aX},divide:function(){return iz},dot:function(){return Lx},equals:function(){return sX},exactEquals:function(){return i6},floor:function(){return e6},forEach:function(){return s6},fromValues:function(){return Yg},hermite:function(){return rX},inverse:function(){return n6},len:function(){return cD},length:function(){return aD},lerp:function(){return o0},max:function(){return Ty},min:function(){return o4},mul:function(){return o6},multiply:function(){return QN},negate:function(){return s4},normalize:function(){return A2},random:function(){return r6},rotateX:function(){return hb},rotateY:function(){return lz},rotateZ:function(){return a4},round:function(){return sz},scale:function(){return Wb},scaleAndAdd:function(){return D2},set:function(){return nz},sqrDist:function(){return I2},sqrLen:function(){return Xv},squaredDistance:function(){return t6},squaredLength:function(){return SM},str:function(){return cz},sub:function(){return l4},subtract:function(){return JN},transformMat3:function(){return oX},transformMat4:function(){return uD},transformQuat:function(){return az},zero:function(){return uz}});var k={},N={},w=function(p){return N[p]},I=function(p,u){N[p]=u},C=function(p){return k[p]},f=function(p,u){k[p]=u},S={},P={},W=34,te=10,q=13;function ie(a){return new Function("d","return {"+a.map(function(p,u){return JSON.stringify(p)+": d["+u+'] || ""'}).join(",")+"}")}function he(a,p){var u=ie(a);return function(c,l){return p(u(c),l,a)}}function de(a){var p=Object.create(null),u=[];return a.forEach(function(c){for(var l in c)l in p||u.push(p[l]=l)}),u}function fe(a,p){var u=a+"",c=u.length;return c9999?"+"+fe(a,6):fe(a,4)}function Ie(a){var p=a.getUTCHours(),u=a.getUTCMinutes(),c=a.getUTCSeconds(),l=a.getUTCMilliseconds();return isNaN(a)?"Invalid Date":ke(a.getUTCFullYear(),4)+"-"+fe(a.getUTCMonth()+1,2)+"-"+fe(a.getUTCDate(),2)+(l?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"."+fe(l,3)+"Z":c?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"Z":u||p?"T"+fe(p,2)+":"+fe(u,2)+"Z":"")}function Be(a){var p=new RegExp('["'+a+` -\r]`),u=a.charCodeAt(0);function c(Ge,Et){var Ot,Pn,Mn=l(Ge,function(Ir,Ti){if(Ot)return Ot(Ir,Ti-1);Pn=Ir,Ot=Et?he(Ir,Et):ie(Ir)});return Mn.columns=Pn||[],Mn}function l(Ge,Et){var Ot=[],Pn=Ge.length,Mn=0,Ir=0,Ti,Ko=Pn<=0,Zo=!1;Ge.charCodeAt(Pn-1)===te&&--Pn,Ge.charCodeAt(Pn-1)===q&&--Pn;function Qs(){if(Ko)return P;if(Zo)return Zo=!1,S;var Ma,ll=Mn,Wl;if(Ge.charCodeAt(ll)===W){for(;Mn++=Pn?Ko=!0:(Wl=Ge.charCodeAt(Mn++))===te?Zo=!0:Wl===q&&(Zo=!0,Ge.charCodeAt(Mn)===te&&++Mn),Ge.slice(ll+1,Ma-1).replace(/""/g,'"')}for(;Mn=200&&u.status<300||u.status===0)&&u.response!==null){var g=u.response;if(a.type==="json")try{g=JSON.parse(u.response)}catch(B){return p(B)}p(null,g,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"),u)}else{var T=new Blob([u.response],{type:u.getResponseHeader("Content-Type")});p(new hs(u.status,u.statusText,c.toString(),T))}},u.cancel=u.abort,u.send(a.body),u}function So(a){return new Promise(function(p,u){ve(a,function(c,l,g,T,B){c?u({err:c,data:null,xhr:B}):p({err:null,data:l,cacheControl:g,expires:T,xhr:B})})})}function ho(a,p){return ve(a,p)}var go=function(p,u){var c=Bo(p.url)||ho;return c((0,we.Z)((0,we.Z)({},p),{},{type:"json"}),u)},ji=function(p,u){var c=Bo(p.url)||ho;return c((0,we.Z)((0,we.Z)({},p),{},{type:"arrayBuffer"}),u)},No=function(p,u){return ho((0,we.Z)((0,we.Z)({},p),{},{method:"POST"}),u)};function dn(a){var p=window.document.createElement("a");return p.href=a,p.protocol===window.document.location.protocol&&p.host===window.document.location.host}var Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function yt(a,p){var u=new window.Image,c=window.URL||window.webkitURL;u.crossOrigin="anonymous",u.onload=function(){p(null,u),c.revokeObjectURL(u.src),u.onload=null,window.requestAnimationFrame(function(){u.src=Ve})},u.onerror=function(){return p(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 l=new Blob([new Uint8Array(a)],{type:"image/png"});u.src=a.byteLength?c.createObjectURL(l):Ve}function Ct(a,p){var u=new Blob([new Uint8Array(a)],{type:"image/png"});createImageBitmap(u).then(function(c){p(null,c)}).catch(function(c){p(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Wt=function(p,u,c){var l=function(T,B){if(T)u(T);else if(B){var G=typeof createImageBitmap=="function",ne=c?c(B):B;G?Ct(ne,u):yt(ne,u)}};return p.type==="json"?go(p,l):ji(p,l)},sn=function(p,u){var c=typeof createImageBitmap=="function";c?Ct(p,u):yt(p,u)},Mt=function(a){return a.CENTER="center",a.TOP="top",a["TOP-LEFT"]="top-left",a["TOP-RIGHT"]="top-right",a.BOTTOM="bottom",a["BOTTOM-LEFT"]="bottom-left",a["BOTTOM-RIGHT"]="bottom-right",a.LEFT="left",a.RIGHT="right",a}({}),Tt={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 xt(a,p,u){var c=a.classList;for(var l in Tt)Tt.hasOwnProperty(l)&&c.remove("l7-".concat(u,"-anchor-").concat(l));c.add("l7-".concat(u,"-anchor-").concat(p))}function Ht(a,p,u){a.prototype=p.prototype=u,u.constructor=a}function Vn(a,p){var u=Object.create(a.prototype);for(var c in p)u[c]=p[c];return u}function en(){}var fr=.7,Kr=1/fr,ri="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",uo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qo=/^#([0-9a-f]{3,8})$/,_n=new RegExp("^rgb\\("+[ri,ri,ri]+"\\)$"),Vr=new RegExp("^rgb\\("+[uo,uo,uo]+"\\)$"),qr=new RegExp("^rgba\\("+[ri,ri,ri,si]+"\\)$"),Ui=new RegExp("^rgba\\("+[uo,uo,uo,si]+"\\)$"),xo=new RegExp("^hsl\\("+[si,uo,uo]+"\\)$"),Us=new RegExp("^hsla\\("+[si,uo,uo,si]+"\\)$"),zn={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};Ht(en,Er,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:Kn,formatHex:Kn,formatHsl:Or,formatRgb:mi,toString:mi});function Kn(){return this.rgb().formatHex()}function Or(){return br(this).formatHsl()}function mi(){return this.rgb().formatRgb()}function Er(a){var p,u;return a=(a+"").trim().toLowerCase(),(p=Qo.exec(a))?(u=p[1].length,p=parseInt(p[1],16),u===6?ti(p):u===3?new Xr(p>>8&15|p>>4&240,p>>4&15|p&240,(p&15)<<4|p&15,1):u===8?di(p>>24&255,p>>16&255,p>>8&255,(p&255)/255):u===4?di(p>>12&15|p>>8&240,p>>8&15|p>>4&240,p>>4&15|p&240,((p&15)<<4|p&15)/255):null):(p=_n.exec(a))?new Xr(p[1],p[2],p[3],1):(p=Vr.exec(a))?new Xr(p[1]*255/100,p[2]*255/100,p[3]*255/100,1):(p=qr.exec(a))?di(p[1],p[2],p[3],p[4]):(p=Ui.exec(a))?di(p[1]*255/100,p[2]*255/100,p[3]*255/100,p[4]):(p=xo.exec(a))?pn(p[1],p[2]/100,p[3]/100,1):(p=Us.exec(a))?pn(p[1],p[2]/100,p[3]/100,p[4]):zn.hasOwnProperty(a)?ti(zn[a]):a==="transparent"?new Xr(NaN,NaN,NaN,0):null}function ti(a){return new Xr(a>>16&255,a>>8&255,a&255,1)}function di(a,p,u,c){return c<=0&&(a=p=u=NaN),new Xr(a,p,u,c)}function rn(a){return a instanceof en||(a=Er(a)),a?(a=a.rgb(),new Xr(a.r,a.g,a.b,a.opacity)):new Xr}function Qn(a,p,u,c){return arguments.length===1?rn(a):new Xr(a,p,u,c==null?1:c)}function Xr(a,p,u,c){this.r=+a,this.g=+p,this.b=+u,this.opacity=+c}Ht(Xr,Qn,Vn(en,{brighter:function(a){return a=a==null?Kr:Math.pow(Kr,a),new Xr(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?fr:Math.pow(fr,a),new Xr(this.r*a,this.g*a,this.b*a,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:ao,formatHex:ao,formatRgb:as,toString:as}));function ao(){return"#"+Bt(this.r)+Bt(this.g)+Bt(this.b)}function as(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"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))+(a===1?")":", "+a+")")}function Bt(a){return a=Math.max(0,Math.min(255,Math.round(a)||0)),(a<16?"0":"")+a.toString(16)}function pn(a,p,u,c){return c<=0?a=p=u=NaN:u<=0||u>=1?a=p=NaN:p<=0&&(a=NaN),new vi(a,p,u,c)}function br(a){if(a instanceof vi)return new vi(a.h,a.s,a.l,a.opacity);if(a instanceof en||(a=Er(a)),!a)return new vi;if(a instanceof vi)return a;a=a.rgb();var p=a.r/255,u=a.g/255,c=a.b/255,l=Math.min(p,u,c),g=Math.max(p,u,c),T=NaN,B=g-l,G=(g+l)/2;return B?(p===g?T=(u-c)/B+(u0&&G<1?0:T,new vi(T,B,G,a.opacity)}function Jr(a,p,u,c){return arguments.length===1?br(a):new vi(a,p,u,c==null?1:c)}function vi(a,p,u,c){this.h=+a,this.s=+p,this.l=+u,this.opacity=+c}Ht(vi,Jr,Vn(en,{brighter:function(a){return a=a==null?Kr:Math.pow(Kr,a),new vi(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?fr:Math.pow(fr,a),new vi(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+(this.h<0)*360,p=isNaN(a)||isNaN(this.s)?0:this.s,u=this.l,c=u+(u<.5?u:1-u)*p,l=2*u-c;return new Xr(Di(a>=240?a-240:a+120,l,c),Di(a,l,c),Di(a<120?a+240:a-120,l,c),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 a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(a===1?")":", "+a+")")}}));function Di(a,p,u){return(a<60?p+(u-p)*a/60:a<180?u:a<240?p+(u-p)*(240-a)/60:p)*255}function co(a){return typeof a=="string"?!!Er(a):!1}function Qr(a){var p=Er(a),u=[0,0,0,0];return p!=null&&(u[0]=p.r/255,u[1]=p.g/255,u[2]=p.b/255,u[3]=p.opacity),u}function oi(a){var p=a&&a[0],u=a&&a[1],c=a&&a[2],l=p+u*256+c*65536-1;return l}function Zi(a){return[a+1&255,a+1>>8&255,a+1>>8>>8&255]}function Ar(a){var p=window.document.createElement("canvas"),u=p.getContext("2d");p.width=256,p.height=1;for(var c=null,l=u.createLinearGradient(0,0,256,1),g=a.positions[0],T=a.positions[a.positions.length-1],B=0;B0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(u)}function rc(a,p){a instanceof HTMLElement?a.className=p:a.className.baseVal=p}function Pc(a){return a instanceof SVGElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function vo(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)}var eo=Hi(["transform","WebkitTransform"]);function ds(a,p){a.style[eo]=p}function Wn(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var a=window.document.createEvent("UIEvents");a.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(a)}}function yr(a){var p=["padding: "+(a.height/2-8)+"px "+a.width/2+"px;","line-height: "+a.height+"px;","background-image: url("+a.toDataURL()+");"];console.log(`%c -`,p.join(""))}function ai(){var a,p=window.document.querySelector('meta[name="viewport"]');if(!p)return 1;var u=(a=p.content)===null||a===void 0?void 0:a.split(","),c=u.find(function(l){var g=l.split("="),T=(0,qn.Z)(g,1),B=T[0];return B==="initial-scale"});return c?c.split("=")[1]*1:1}var hi=ai()<1?1:window.devicePixelRatio;function Ji(a,p){a.setAttribute("style","".concat(a.style.cssText).concat(p))}function so(a){return a.split(";").map(function(p){return p.trim()}).filter(function(p){return p})}function Pi(a,p){var u,c=so((u=a.getAttribute("style"))!==null&&u!==void 0?u:""),l=so(p),g=ml.apply(void 0,[c].concat((0,Fr.Z)(l)));a.setAttribute("style",g.join(";"))}function us(a){return Object.entries(a).map(function(p){var u=(0,qn.Z)(p,2),c=u[0],l=u[1];return"".concat(c,": ").concat(l)}).join(";")}function pa(a,p){return{left:a.left-p.left,top:a.top-p.top,right:p.left+p.width-a.left-a.width,bottom:p.top+p.height-a.top-a.height}}function $a(a,p){a.checked=p,p?a.setAttribute("checked","true"):a.removeAttribute("checked")}function hl(a){a.innerHTML=""}function Zl(a){a.setAttribute("draggable","false")}function Ml(a,p){if(typeof p=="string"){var u=document.createElement("div");for(u.innerHTML=p;u.firstChild;)a.append(u.firstChild)}else Array.isArray(p)?a.append.apply(a,(0,Fr.Z)(p)):a.append(p)}function Za(a,p){for(var u=Array.isArray(p)?p:[p],c=a;c instanceof Element&&c!==window.document.body;){var l,g;if(u.find(function(T){var B;return(B=c)===null||B===void 0?void 0:B.matches(T)}))return c;c=(l=(g=c)===null||g===void 0?void 0:g.parentElement)!==null&&l!==void 0?l:null}}var ku;function ea(a){return typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap}function Qa(){return typeof importScripts=="function"}var el=Qa()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Hl=(ku=navigator)===null||ku===void 0?void 0:ku.userAgent,Jl=!!Hl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),vu=Hl.indexOf("Android")>-1||Hl.indexOf("Adr")>-1;function au(){for(var a=Hl,p=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],u=!0,c=0,l=p;c0){u=!1;break}}return u}var Cn=m(4942);function Eu(a,p){a.forEach(function(u){p[u]&&(p[u]=p[u].bind(p))})}var ls=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,bt.Z)(this,a),(0,Cn.Z)(this,"duration",16),(0,Cn.Z)(this,"timestamp",new Date().getTime()),this.duration=p}return(0,He.Z)(a,[{key:"run",value:function(u){var c=new Date().getTime(),l=c-this.timestamp;this.timestamp=c,l>=this.duration&&u()}}]),a}(),Ks=m(62096),xa=m(1449);function Il(a){return typeof a=="number"}var El=2*Math.PI*6378137/2;function vl(a,p){var u=(0,qn.Z)(p,4),c=u[0],l=u[1],g=u[2],T=u[3];return a.lng>c&&a.lng<=g&&a.lat>l&&a.lat<=T}function fu(a){var p=[1/0,1/0,-1/0,-1/0];return a.forEach(function(u){var c=u.coordinates;Fu(p,c)}),p}function Fu(a,p){return Array.isArray(p[0])?p.forEach(function(u){Fu(a,u)}):(a[0]>p[0]&&(a[0]=p[0]),a[1]>p[1]&&(a[1]=p[1]),a[2]1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};a=sd(a,p);var c=a[0],l=a[1],g=c*El/180,T=Math.log(Math.tan((90+l)*Math.PI/360))/(Math.PI/180);return T=T*El/180,u.enable&&(g=Number(g.toFixed(u.decimal)),T=Number(T.toFixed(u.decimal))),a.length===3?[g,T,a[2]]:[g,T]}function zd(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,u=a[0],c=a[1],l=u/El*180,g=c/El*180;return g=180/Math.PI*(2*Math.atan(Math.exp(g*Math.PI/180))-Math.PI/2),p!=null&&(l=Number(l.toFixed(p)),g=Number(g.toFixed(p))),a.length===3?[l,g,a[2]]:[l,g]}function th(a){if(a==null)throw new Error("lng is required");return(a>180||a<-180)&&(a=a%360,a>180&&(a=-360+a),a<-180&&(a=360+a),a===0&&(a=0)),a}function Xd(a){if(a==null)throw new Error("lat is required");return(a>90||a<-90)&&(a=a%180,a>90&&(a=-180+a),a<-90&&(a=180+a),a===0&&(a=0)),a}function sd(a,p){if(p===!1)return a;var u=th(a[0]),c=Xd(a[1]);return c>85&&(c=85),c<-85&&(c=-85),a.length===3?[u,c,a[2]]:[u,c]}function Mu(a){var p=85.0511287798,u=Math.max(Math.min(p,a[1]),-p),c=256<<20,l=Math.PI/180,g=a[0]*l,T=u*l;T=Math.log(Math.tan(Math.PI/4+T/2));var B=.5/Math.PI,G=.5,ne=-.5/Math.PI;return l=.5,g=c*(B*g+G),T=c*(ne*T+l),[Math.floor(g),Math.floor(T)]}function Fc(a){var p=.5/Math.PI,u=.5,c=-.5/Math.PI,l=.5,g=256<<20,T=(0,qn.Z)(a,2),B=T[0],G=T[1];B=(B/g-u)/p,G=(G/g-l)/c,G=(Math.atan(Math.pow(Math.E,G))-Math.PI/4)*2,l=Math.PI/180;var ne=G/l,Me=B/l;return[Me,ne]}function hd(a,p){var u=85.0511287798,c=Math.PI/180,l=6378137;return p=Math.max(Math.min(u,p),-u),a*=c,p*=c,p=Math.log(Math.tan(Math.PI/4+p/2)),[a*l,p*l]}function vd(a,p){var u=Math.PI/180,c=6378137,l=a/c/u,g=2*(Math.atan(Math.exp(p/c))-Math.PI/4)/u;return[l,g]}function Yd(a,p,u){var c=(0,xa.degreesToRadians)(p[1]-a[1]),l=(0,xa.degreesToRadians)(p[0]-a[0]),g=(0,xa.degreesToRadians)(a[1]),T=(0,xa.degreesToRadians)(p[1]),B=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(g)*Math.cos(T);return(0,xa.radiansToLength)(2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B)),u="meters")}function nh(a){var p=Math.PI/180,u=85.0511287798,c=6378137,l=Math.max(Math.min(u,a[1]),-u),g=Math.sin(l*p),T=c*a[0]*p,B=c*Math.log((1+g)/(1-g))/2;return[T,B]}function jd(a,p){var u=Math.abs(a[1][1]-a[0][1])*p,c=Math.abs(a[1][0]-a[0][0])*p;return[[a[0][0]-c,a[0][1]-u],[a[1][0]+c,a[1][1]+u]]}function yh(a,p){return a[0][0]<=p[0][0]&&a[0][1]<=p[0][1]&&a[1][0]>=p[1][0]&&a[1][1]>=p[1][1]}function id(a){return[[a[0],a[1]],[a[2],a[3]]]}function nd(a){var p=Pf(a,[0,0]);return[a[0]/p,a[1]/p]}function Pf(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function Jd(a,p){return a[0]*p[0]+a[1]*p[1]}function cc(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function Yc(a,p){return Math.acos(Jd(a,p)/(cc(a)*cc(p)))*180/Math.PI}function jh(a,p){return p[0]>0?p[1]>0?90-Math.atan(p[1]/p[0])*180/Math.PI:90+Math.atan(-p[1]/p[0])*180/Math.PI:p[1]<0?180+(90-Math.atan(p[1]/p[0])*180/Math.PI):270+Math.atan(p[1]/-p[0])*180/Math.PI}function uf(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!a||a.length<2)){for(var u=[0,1],c=0,l=[],g=0;g0){var Ge=l[g-1].rotation;Ge-Me>360-Ge+Me&&(Me=Me+360)}l.push({start:T,end:B,dis:G,rotation:Me,duration:0})}return l.map(function(Et){Et.duration=p*(Et.dis/c)}),l}}function Lh(a){if(Il(a[0]))return a;if(Il(a[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(Il(a[0][0][0])){var p=a,u=0,c=0,l=0;return p.forEach(function(g){g.forEach(function(T){u+=T[0],c+=T[1],l++})}),[u/l,c/l,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Sf(a){for(var p=a[0],u=a[1],c=a[0],l=a[1],g=0,T=0,B=0,G=0;Gl&&(c=Math.floor(c/u)),c=c*p+a.charCodeAt(g);return c}function ch(a){a=a.toString();for(var p=5381,u=a.length;u;)p=p*33^a.charCodeAt(--u);return p>>>0}function Th(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var p=Math.random()*16|0,u=a==="x"?p:p&3|8;return u.toString(16)})}var yu=function(a){return a["GAODE1.x"]="GAODE1.x",a["GAODE2.x"]="GAODE2.x",a.MAPBOX="MAPBOX",a.DEFAULT="DEFAUlTMAP",a.SIMPLE="SIMPLE",a.GLOBEL="GLOBEL",a}({});function ff(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*(g-1))/(g-1)),c?qd(a,p,B,c,l):qd(a,p,B,.314,l)}function tl(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Bu(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function wd(a,p,u){var c=[p[0]-a[0],p[1]-a[1]],l=Bu(c,[0,0]),g=Math.atan2(c[1],c[0]),T=l/2/Math.cos(u),B=g+u,G=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return G}function qd(a,p,u,c,l){if(l===yu["GAODE2.x"]){var g=hd(a[0],a[1]),T=hd(p[0],p[1]),B=wd(g,T,c),G=[g[0],B[0],T[0]],ne=[g[1],B[1],T[1]];return[].concat((0,Fr.Z)(vd(tl(G,u),tl(ne,u))),[0])}else{var Me=wd(a,p,c),Ge=[a[0],Me[0],p[0]],Et=[a[1],Me[1],p[1]];return[tl(Ge,u),tl(Et,u),0]}}function ja(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*29)/29),Uu(a,p,B,l)}function ru(a,p){var u=[p[0]-a[0],p[1]-a[1]],c=Pf(u,[0,0]),l=Math.atan2(u[1],u[0]),g=.314,T=c/2/Math.cos(g),B=l+g,G=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return G}function zl(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Au(a,p){var u=[a[0]-p[0],a[1]-p[1]],c=[Math.sin(u[0]/2),Math.sin(u[1]/2)],l=c[1]*c[1]+Math.cos(a[1])*Math.cos(p[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function Uu(a,p,u,c){var l=[(0,xa.degreesToRadians)(a[0]),(0,xa.degreesToRadians)(a[1])],g=[(0,xa.degreesToRadians)(p[0]),(0,xa.degreesToRadians)(p[1])];if(c==="GAODE2.x"){var T=ru(l,g),B=[l[0],T[0],g[0]],G=[l[1],T[1],g[1]];return[zl(B,u),zl(G,u),0]}else{var ne=Au(l,g);if(Math.abs(ne-Math.PI)<.001)return[(1-u)*l[0]+u*g[0],(1-u)*l[1]+u*g[1]];var Me=Math.sin((1-u)*ne)/Math.sin(ne),Ge=Math.sin(u*ne)/Math.sin(ne),Et=[Math.sin(l[0]),Math.sin(l[1])],Ot=[Math.cos(l[0]),Math.cos(l[1])],Pn=[Math.sin(g[0]),Math.sin(g[1])],Mn=[Math.cos(g[0]),Math.cos(g[1])],Ir=Me*Ot[1]*Ot[0]+Ge*Mn[1]*Mn[0],Ti=Me*Ot[1]*Et[0]+Ge*Mn[1]*Pn[0],Ko=Me*Et[1]+Ge*Pn[1];return[(0,xa.radiansToDegrees)(Math.atan2(Ti,Ir)),(0,xa.radiansToDegrees)(Math.atan2(Ko,Math.sqrt(Ir*Ir+Ti*Ti)))]}}function Vd(a,p){for(var u=0,c=[],l=0;lne){var Ir=Pn.p1,Ti=Pn.p2,Ko=(ne-Pn.lastTotalDistance)/Pn.distance,Zo=Ud(Ti,Ir,Ko);Me=Zo[0],Ge=Zo[1];break}}return{lng:Me,lat:Ge,height:0}}function Ud(a,p,u){return[a[0]*u+p[0]*(1-u),a[1]*u+p[1]*(1-u)]}function sh(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function Vf(a,p){var u=p.featureId,c=a.data.dataArray;return typeof u=="number"&&(c=c.filter(function(l){var g=l.id;return g===u})),c.map(function(l){var g=Uh(l,p);return(0,we.Z)((0,we.Z)({},l),g)})}function vf(a,p){return new Promise(function(u){a.inited?u(Vf(a,p)):a.once("update",function(){u(Vf(a,p))})})}function Uh(a,p){var u=p.offset,c=p.shape,l=p.thetaOffset,g=p.mapVersion,T=p.segmentNumber,B=T===void 0?30:T,G=p.autoFit,ne=G===void 0?!0:G,Me=a.coordinates;if(c==="line")return Vd(Me,u);var Ge=Me[0],Et=Me[1],Ot=typeof l=="string"?a[l]||0:l,Pn;switch(c){case"arc":Pn=ff;break;case"greatcircle":Pn=ja;break;default:Pn=ff}var Mn=Pn(Ge,Et,u,Ot,g,B,ne),Ir=(0,qn.Z)(Mn,3),Ti=Ir[0],Ko=Ir[1],Zo=Ir[2];return{lng:Ti,lat:Ko,height:Zo}}var kf=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,u=arguments.length>1?arguments[1]:void 0;(0,bt.Z)(this,a),this.limit=p,this.destroy=u||this.defaultDestroy,this.order=[],this.clear()}return(0,He.Z)(a,[{key:"clear",value:function(){var u=this;this.order.forEach(function(c){u.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(u){var c=this.cache[u];return c&&(this.deleteOrder(u),this.appendOrder(u)),c}},{key:"set",value:function(u,c){this.cache[u]?(this.delete(u),this.cache[u]=c,this.appendOrder(u)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[u]=c,this.appendOrder(u))}},{key:"delete",value:function(u){var c=this.cache[u];c&&(this.deleteCache(u),this.deleteOrder(u),this.destroy(c,u))}},{key:"deleteCache",value:function(u){delete this.cache[u]}},{key:"deleteOrder",value:function(u){var c=this.order.findIndex(function(l){return l===u});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(u){this.order.push(u)}},{key:"defaultDestroy",value:function(u,c){return null}}]),a}();function Bh(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p*1}function Kf(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;uc&&(c=l,u=p),l=1,p=a[g]):l++;return u*1}var Kh={min:Kf,max:Bh,mean:ed,sum:ah,mode:Vh};function cf(a,p){return a.map(function(u){return u[p]})}function Qc(a,p){return Kh[a](p)}var Na=m(15861),ps=m(97326),Op=m(64687),ro=m.n(Op),bc=m(95),yf=m(26729),Qu=m.n(yf),Bc=function(a){return a.Realtime="realtime",a.Overlap="overlap",a.Replace="replace",a}({}),Df=function(a){return a.Loading="Loading",a.Loaded="Loaded",a.Failure="Failure",a.Cancelled="Cancelled",a}({}),Jp=0,sg=1,Ah=2;function ap(a){a.forEach(function(p){p.isCurrent&&(p.isVisible=p.isLoaded)})}function Rp(a){a.forEach(function(p){p.properties.state=Jp}),a.forEach(function(p){p.isCurrent&&!pg(p)&&Cp(p)}),a.forEach(function(p){p.isVisible=!!(p.properties.state&Ah)})}function tp(a){a.forEach(function(u){u.properties.state=Jp}),a.forEach(function(u){u.isCurrent&&pg(u)});var p=a.slice().sort(function(u,c){return u.z-c.z});p.forEach(function(u){u.isVisible=!!(u.properties.state&Ah),u.children.length&&(u.isVisible||u.properties.state&sg)?u.children.forEach(function(c){c.properties.state=sg}):u.isCurrent&&Cp(u)})}function pg(a){for(;a;){if(a.isLoaded)return a.properties.state|=Ah,!0;a=a.parent}return!1}function Cp(a){a.children.forEach(function(p){p.isLoaded?p.properties.state|=Ah:Cp(p)})}var Uf,Pd=256,Np=[-1/0,-1/0,1/0,1/0],$p=.2,ag=5,Md=(Uf={},(0,Cn.Z)(Uf,Bc.Realtime,ap),(0,Cn.Z)(Uf,Bc.Overlap,Rp),(0,Cn.Z)(Uf,Bc.Replace,tp),Uf),Wp=function(){};function Ih(a,p,u){var c=Math.floor((a+180)/360*Math.pow(2,u)),l=Math.floor((1-Math.log(Math.tan(p*Math.PI/180)+1/Math.cos(p*Math.PI/180))/Math.PI)/2*Math.pow(2,u));return[c,l]}function of(a,p,u){var c=a/Math.pow(2,u)*360-180,l=Math.PI-2*Math.PI*p/Math.pow(2,u),g=180/Math.PI*Math.atan(.5*(Math.exp(l)-Math.exp(-l)));return[c,g]}var Ff=function(p,u,c){var l=of(p,u,c),g=(0,qn.Z)(l,2),T=g[0],B=g[1],G=of(p+1,u+1,c),ne=(0,qn.Z)(G,2),Me=ne[0],Ge=ne[1];return[T,Ge,Me,B]};function iu(a){var p=a.zoom,u=a.latLonBounds,c=a.maxZoom,l=c===void 0?1/0:c,g=a.minZoom,T=g===void 0?0:g,B=a.zoomOffset,G=B===void 0?0:B,ne=a.extent,Me=ne===void 0?Np:ne,Ge=Math.ceil(p)+G;if(Number.isFinite(T)&&Gel&&(Ge=l);for(var Et=(0,qn.Z)(u,4),Ot=Et[0],Pn=Et[1],Mn=Et[2],Ir=Et[3],Ti=[Math.max(Ot,Me[0]),Math.max(Pn,Me[1]),Math.min(Mn,Me[2]),Math.min(Ir,Me[3])],Ko=[],Zo=Ih(Ti[0],Ti[1],Ge),Qs=(0,qn.Z)(Zo,2),ga=Qs[0],Ma=Qs[1],ll=Ih(Ti[2],Ti[3],Ge),Wl=(0,qn.Z)(ll,2),jl=Wl[0],ju=Wl[1],Pu=ga;Pu<=jl;Pu++)for(var Vc=ju;Vc<=Ma;Vc++)Ko.push({x:Pu,y:Vc,z:Ge});var dd=(jl+ga)/2,Kd=(Ma+ju)/2,Hp=function(Fg,mm){return Math.abs(Fg-dd)+Math.abs(mm-Kd)};return Ko.sort(function(gm,Fg){return Hp(gm.x,gm.y)-Hp(Fg.x,Fg.y)}),Ko}var mp=function(p,u,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,g=Math.pow(2,c),T=g-1,B=g,G=p,ne=u;return l&&(G<0?G=G+B:G>T&&(G=G%B)),{warpX:G,warpY:ne}};function Af(a){var p=np();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function np(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Od=function(a){(0,ft.Z)(u,a);var p=Af(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,ps.Z)(l),"tileSize",256),(0,Cn.Z)((0,ps.Z)(l),"isVisible",!1),(0,Cn.Z)((0,ps.Z)(l),"isCurrent",!1),(0,Cn.Z)((0,ps.Z)(l),"isVisibleChange",!1),(0,Cn.Z)((0,ps.Z)(l),"loadedLayers",0),(0,Cn.Z)((0,ps.Z)(l),"isLayerLoaded",!1),(0,Cn.Z)((0,ps.Z)(l),"isLoad",!1),(0,Cn.Z)((0,ps.Z)(l),"isChildLoad",!1),(0,Cn.Z)((0,ps.Z)(l),"parent",null),(0,Cn.Z)((0,ps.Z)(l),"children",[]),(0,Cn.Z)((0,ps.Z)(l),"data",null),(0,Cn.Z)((0,ps.Z)(l),"properties",{}),(0,Cn.Z)((0,ps.Z)(l),"loadDataId",0);var g=c.x,T=c.y,B=c.z,G=c.tileSize,ne=c.warp,Me=ne===void 0?!0:ne;return l.x=g,l.y=T,l.z=B,l.warp=Me||!0,l.tileSize=G,l}return(0,He.Z)(u,[{key:"isLoading",get:function(){return this.loadStatus===Df.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Df.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Df.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Df.Cancelled}},{key:"isDone",get:function(){return[Df.Loaded,Df.Cancelled,Df.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Ff(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var l=(0,qn.Z)(this.bounds,4),g=l[0],T=l[1],B=l[2],G=l[3],ne=[(B-g)/2,(G-T)/2],Me=(0,bc.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ne,meta:` +`,nt=function(){var Ii=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn,jr=(0,B.useContext)(S),eo=jr.csp;(0,B.useEffect)(function(){(0,Ti.hq)(Ii,"@ant-design-icons",{prepend:!0,csp:eo})},[])},Dt=["icon","className","onClick","style","primaryColor","secondaryColor"],Kt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function mn(oi){var Ii=oi.primaryColor,jr=oi.secondaryColor;Kt.primaryColor=Ii,Kt.secondaryColor=jr||Do(Ii),Kt.calculated=!!jr}function kn(){return(0,v.Z)({},Kt)}var an=function(Ii){var jr=Ii.icon,eo=Ii.className,Uo=Ii.onClick,Fn=Ii.style,Qr=Ii.primaryColor,ci=Ii.secondaryColor,ji=(0,b.Z)(Ii,Dt),cr=Kt;if(Qr&&(cr={primaryColor:Qr,secondaryColor:ci||Do(Qr)}),nt(),Ss(Pe(jr),"icon should be icon definiton, but got ".concat(jr)),!Pe(jr))return null;var Qn=jr;return Qn&&typeof Qn.icon=="function"&&(Qn=(0,v.Z)((0,v.Z)({},Qn),{},{icon:Qn.icon(cr.primaryColor,cr.secondaryColor)})),Ki(Qn.icon,"svg-".concat(Qn.name),(0,v.Z)({className:eo,onClick:Uo,style:Fn,"data-icon":Qn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ji))};an.displayName="IconReact",an.getTwoToneColors=kn,an.setTwoToneColors=mn;var tn=an;function kt(oi){var Ii=ai(oi),jr=(0,R.Z)(Ii,2),eo=jr[0],Uo=jr[1];return tn.setTwoToneColors({primaryColor:eo,secondaryColor:Uo})}function en(){var oi=tn.getTwoToneColors();return oi.calculated?[oi.primaryColor,oi.secondaryColor]:oi.primaryColor}var Vn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kt("#1890ff");var on=B.forwardRef(function(oi,Ii){var jr,eo=oi.className,Uo=oi.icon,Fn=oi.spin,Qr=oi.rotate,ci=oi.tabIndex,ji=oi.onClick,cr=oi.twoToneColor,Qn=(0,b.Z)(oi,Vn),Vt=B.useContext(S),Yt=Vt.prefixCls,En=Yt===void 0?"anticon":Yt,er=Vt.rootClassName,Tr=O()(er,En,(jr={},(0,w.Z)(jr,"".concat(En,"-").concat(Uo.name),!!Uo.name),(0,w.Z)(jr,"".concat(En,"-spin"),!!Fn||Uo.name==="loading"),jr),eo),Nr=ci;Nr===void 0&&ji&&(Nr=-1);var Zn=Qr?{msTransform:"rotate(".concat(Qr,"deg)"),transform:"rotate(".concat(Qr,"deg)")}:void 0,Ut=ai(cr),$n=(0,R.Z)(Ut,2),xr=$n[0],Br=$n[1];return B.createElement("span",(0,v.Z)((0,v.Z)({role:"img","aria-label":Uo.name},Qn),{},{ref:Ii,tabIndex:Nr,onClick:ji,className:Tr}),B.createElement(tn,{icon:Uo,primaryColor:xr,secondaryColor:Br,style:Zn}))});on.displayName="AntdIcon",on.getTwoToneColor=en,on.setTwoToneColor=kt;var Dr=on},14313:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="CaretRightOutlined";var O=R.forwardRef(V)},28508:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(89503),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="CloseOutlined",Y.Z=R.forwardRef(B)},85060:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="CloudDownloadOutlined";var O=R.forwardRef(V)},16596:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="CloudUploadOutlined";var O=R.forwardRef(V)},82061:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(47046),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="DeleteOutlined",Y.Z=R.forwardRef(B)},78588:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={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:"dingtalk",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="DingtalkOutlined";var O=R.forwardRef(V)},37724:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FieldBinaryOutlined";var O=R.forwardRef(V)},14468:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FieldStringOutlined";var O=R.forwardRef(V)},15360:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FileTextOutlined";var O=R.forwardRef(V)},44230:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(98851),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="FilterFilled",Y.Z=R.forwardRef(B)},26024:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FilterOutlined";var O=R.forwardRef(V)},75932:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FlagOutlined";var O=R.forwardRef(V)},77123:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="FormOutlined";var O=R.forwardRef(V)},1210:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={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"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="GithubOutlined";var O=R.forwardRef(V)},10524:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="GlobalOutlined";var O=R.forwardRef(V)},3089:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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:"minus-circle",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="MinusCircleOutlined";var O=R.forwardRef(V)},51042:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(42110),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="PlusOutlined",Y.Z=R.forwardRef(B)},30723:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(43114),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="PlusSquareOutlined",Y.Z=R.forwardRef(B)},63783:function(gt,Y,_){"use strict";var v=_(1413),R=_(67294),w=_(36688),b=_(89099),B=function(O,L){return R.createElement(b.Z,(0,v.Z)((0,v.Z)({},O),{},{ref:L,icon:w.Z}))};B.displayName="QuestionCircleOutlined",Y.Z=R.forwardRef(B)},60219:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="SaveOutlined";var O=R.forwardRef(V)},42952:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="SettingOutlined";var O=R.forwardRef(V)},15611:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{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 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="TableOutlined";var O=R.forwardRef(V)},88484:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(1413),R=_(67294),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},b=w,B=_(89099),V=function(S,g){return R.createElement(B.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:g,icon:b}))};V.displayName="UploadOutlined";var O=R.forwardRef(V)},90857:function(gt){"use strict";var Y=Object.prototype.hasOwnProperty,_="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(_=!1));function R(V,O,L){this.fn=V,this.context=O,this.once=L||!1}function w(V,O,L,S,g){if(typeof L!="function")throw new TypeError("The listener must be a function");var T=new R(L,S||V,g),k=_?_+O:O;return V._events[k]?V._events[k].fn?V._events[k]=[V._events[k],T]:V._events[k].push(T):(V._events[k]=T,V._eventsCount++),V}function b(V,O){--V._eventsCount===0?V._events=new v:delete V._events[O]}function B(){this._events=new v,this._eventsCount=0}B.prototype.eventNames=function(){var O=[],L,S;if(this._eventsCount===0)return O;for(S in L=this._events)Y.call(L,S)&&O.push(_?S.slice(1):S);return Object.getOwnPropertySymbols?O.concat(Object.getOwnPropertySymbols(L)):O},B.prototype.listeners=function(O){var L=_?_+O:O,S=this._events[L];if(!S)return[];if(S.fn)return[S.fn];for(var g=0,T=S.length,k=new Array(T);g',function(gt){try{let S=function(){B||(B=!0,w())},g=function(){try{b.documentElement.doScroll("left")}catch(T){return void setTimeout(g,50)}S()};var O=S,L=g,_=(_=document.getElementsByTagName("script"))[_.length-1],Y=_.getAttribute("data-injectcss"),_=_.getAttribute("data-disable-injectsvg");if(!_){var v,R,w,b,B,V=function(k,K){K.parentNode.insertBefore(k,K)};if(Y&&!gt.__iconfont__svg__cssinject__){gt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(T){console&&console.log(T)}}v=function(){var k,K=document.createElement("div");K.innerHTML=gt._iconfont_svg_string_3580659,(K=K.getElementsByTagName("svg")[0])&&(K.setAttribute("aria-hidden","true"),K.style.position="absolute",K.style.width=0,K.style.height=0,K.style.overflow="hidden",K=K,(k=document.body).firstChild?V(K,k.firstChild):k.appendChild(K))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(R=function(){document.removeEventListener("DOMContentLoaded",R,!1),v()},document.addEventListener("DOMContentLoaded",R,!1)):document.attachEvent&&(w=v,b=gt.document,B=!1,g(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,S())})}}catch(S){}}(window)},67135:function(gt,Y,_){(function(v,R){R(Y,_(47766))})(this,function(v,R){"use strict";var w={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},b={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},B="top",V="bottom",O="right",L="left",S="auto",g=[B,V,O,L],T="start",k="end",K="clippingParents",he="viewport",ae="popper",fe="reference",_e=g.reduce(function(Le,f){return Le.concat([f+"-"+T,f+"-"+k])},[]),be=[].concat(g,[S]).reduce(function(Le,f){return Le.concat([f,f+"-"+T,f+"-"+k])},[]),xe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xe(Le){return Le?(Le.nodeName||"").toLowerCase():null}function We(Le){if(Le==null)return window;if(""+Le!="[object Window]"){var f=Le.ownerDocument;return f&&f.defaultView||window}return Le}function dt(Le){return Le instanceof We(Le).Element||Le instanceof Element}function Me(Le){return Le instanceof We(Le).HTMLElement||Le instanceof HTMLElement}function Se(Le){return typeof ShadowRoot!="undefined"&&(Le instanceof We(Le).ShadowRoot||Le instanceof ShadowRoot)}var ze={name:"applyStyles",enabled:!0,phase:"write",fn:function(Le){var f=Le.state;Object.keys(f.elements).forEach(function(y){var A=f.styles[y]||{},j=f.attributes[y]||{},re=f.elements[y];Me(re)&&Xe(re)&&(Object.assign(re.style,A),Object.keys(j).forEach(function(de){var Ie=j[de];Ie===!1?re.removeAttribute(de):re.setAttribute(de,Ie===!0?"":Ie)}))})},effect:function(Le){var f=Le.state,y={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(f.elements.popper.style,y.popper),f.styles=y,f.elements.arrow&&Object.assign(f.elements.arrow.style,y.arrow),function(){Object.keys(f.elements).forEach(function(A){var j=f.elements[A],re=f.attributes[A]||{},de=Object.keys(f.styles.hasOwnProperty(A)?f.styles[A]:y[A]).reduce(function(Ie,Je){return Ie[Je]="",Ie},{});Me(j)&&Xe(j)&&(Object.assign(j.style,de),Object.keys(re).forEach(function(Ie){j.removeAttribute(Ie)}))})}},requires:["computeStyles"]};function De(Le){return Le.split("-")[0]}var ke=Math.max,$e=Math.min,Te=Math.round;function tt(){var Le=navigator.userAgentData;return Le!=null&&Le.brands&&Array.isArray(Le.brands)?Le.brands.map(function(f){return f.brand+"/"+f.version}).join(" "):navigator.userAgent}function Oe(){return!/^((?!chrome|android).)*safari/i.test(tt())}function Xt(Le,f,y){f===void 0&&(f=!1),y===void 0&&(y=!1);var A=Le.getBoundingClientRect(),j=1,re=1;f&&Me(Le)&&(j=Le.offsetWidth>0&&Te(A.width)/Le.offsetWidth||1,re=Le.offsetHeight>0&&Te(A.height)/Le.offsetHeight||1);var de=(dt(Le)?We(Le):window).visualViewport,Ie=!Oe()&&y,Je=(A.left+(Ie&&de?de.offsetLeft:0))/j,zt=(A.top+(Ie&&de?de.offsetTop:0))/re,un=A.width/j,tr=A.height/re;return{width:un,height:tr,top:zt,right:Je+un,bottom:zt+tr,left:Je,x:Je,y:zt}}function Ft(Le){var f=Xt(Le),y=Le.offsetWidth,A=Le.offsetHeight;return Math.abs(f.width-y)>1||(y=f.width),Math.abs(f.height-A)>1||(A=f.height),{x:Le.offsetLeft,y:Le.offsetTop,width:y,height:A}}function ot(Le,f){var y=f.getRootNode&&f.getRootNode();if(Le.contains(f))return!0;if(y&&Se(y)){var A=f;do{if(A&&Le.isSameNode(A))return!0;A=A.parentNode||A.host}while(A)}return!1}function xt(Le){return We(Le).getComputedStyle(Le)}function ut(Le){return["table","td","th"].indexOf(Xe(Le))>=0}function $t(Le){return((dt(Le)?Le.ownerDocument:Le.document)||window.document).documentElement}function _t(Le){return Xe(Le)==="html"?Le:Le.assignedSlot||Le.parentNode||(Se(Le)?Le.host:null)||$t(Le)}function bn(Le){return Me(Le)&&xt(Le).position!=="fixed"?Le.offsetParent:null}function Wn(Le){for(var f=We(Le),y=bn(Le);y&&ut(y)&&xt(y).position==="static";)y=bn(y);return y&&(Xe(y)==="html"||Xe(y)==="body"&&xt(y).position==="static")?f:y||function(A){var j=/firefox/i.test(tt());if(/Trident/i.test(tt())&&Me(A)&&xt(A).position==="fixed")return null;var re=_t(A);for(Se(re)&&(re=re.host);Me(re)&&0>["html","body"].indexOf(Xe(re));){var de=xt(re);if(de.transform!=="none"||de.perspective!=="none"||de.contain==="paint"||["transform","perspective"].indexOf(de.willChange)!==-1||j&&de.willChange==="filter"||j&&de.filter&&de.filter!=="none")return re;re=re.parentNode}return null}(Le)||f}function $r(Le){return 0>["top","bottom"].indexOf(Le)?"y":"x"}function wi(Le,f,y){return ke(Le,$e(f,y))}function oo(Le){return Object.assign({},{top:0,right:0,bottom:0,left:0},Le)}function Mo(Le,f){return f.reduce(function(y,A){return y[A]=Le,y},{})}var Ti={name:"arrow",enabled:!0,phase:"main",fn:function(Le){var f,y=Le.state,A=Le.name,j=Le.options,re=y.elements.arrow,de=y.modifiersData.popperOffsets,Ie=De(y.placement),Je=$r(Ie),zt=[L,O].indexOf(Ie)>=0?"height":"width";if(re&&de){var un=function(Gs,Oa){return oo(typeof(Gs=typeof Gs=="function"?Gs(Object.assign({},Oa.rects,{placement:Oa.placement})):Gs)!="number"?Gs:Mo(Gs,g))}(j.padding,y),tr=Ft(re),Cr=Je==="y"?B:L,xi=Je==="y"?V:O,Li=y.rects.reference[zt]+y.rects.reference[Je]-de[Je]-y.rects.popper[zt],Io=de[Je]-y.rects.reference[Je],Ao=Wn(re),Xo=Ao?Je==="y"?Ao.clientHeight||0:Ao.clientWidth||0:0,Ro=Xo/2-tr[zt]/2+(Li/2-Io/2),po=wi(un[Cr],Ro,Xo-tr[zt]-un[xi]);y.modifiersData[A]=((f={})[Je]=po,f.centerOffset=po-Ro,f)}},effect:function(Le){var f=Le.state,y=Le.options.element,A=y===void 0?"[data-popper-arrow]":y;A!=null&&(typeof A!="string"||(A=f.elements.popper.querySelector(A)))&&ot(f.elements.popper,A)&&(f.elements.arrow=A)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hr(Le){return Le.split("-")[1]}var Ho={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ss(Le){var f,y=Le.popper,A=Le.popperRect,j=Le.placement,re=Le.variation,de=Le.offsets,Ie=Le.position,Je=Le.gpuAcceleration,zt=Le.adaptive,un=Le.roundOffsets,tr=Le.isFixed,Cr=de.x,xi=Cr===void 0?0:Cr,Li=de.y,Io=Li===void 0?0:Li,Ao=typeof un=="function"?un({x:xi,y:Io}):{x:xi,y:Io};xi=Ao.x,Io=Ao.y;var Xo=de.hasOwnProperty("x"),Ro=de.hasOwnProperty("y"),po=L,Gs=B,Oa=window;if(zt){var yl=Wn(y),cu="clientHeight",Fu="clientWidth";yl===We(y)&&xt(yl=$t(y)).position!=="static"&&Ie==="absolute"&&(cu="scrollHeight",Fu="scrollWidth"),(j===B||(j===L||j===O)&&re===k)&&(Gs=V,Io-=(tr&&yl===Oa&&Oa.visualViewport?Oa.visualViewport.height:yl[cu])-A.height,Io*=Je?1:-1),(j===L||(j===B||j===V)&&re===k)&&(po=O,xi-=(tr&&yl===Oa&&Oa.visualViewport?Oa.visualViewport.width:yl[Fu])-A.width,xi*=Je?1:-1)}var Eu,qc=Object.assign({position:Ie},zt&&Ho),vu=un===!0?function(kc,On){var lr=kc.y,Ur=On.devicePixelRatio||1;return{x:Te(kc.x*Ur)/Ur||0,y:Te(lr*Ur)/Ur||0}}({x:xi,y:Io},We(y)):{x:xi,y:Io};return xi=vu.x,Io=vu.y,Object.assign({},qc,Je?((Eu={})[Gs]=Ro?"0":"",Eu[po]=Xo?"0":"",Eu.transform=(Oa.devicePixelRatio||1)>1?"translate3d("+xi+"px, "+Io+"px, 0)":"translate("+xi+"px, "+Io+"px)",Eu):((f={})[Gs]=Ro?Io+"px":"",f[po]=Xo?xi+"px":"",f.transform="",f))}var Pe={passive:!0},qo={left:"right",right:"left",bottom:"top",top:"bottom"};function Ki(Le){return Le.replace(/left|right|bottom|top/g,function(f){return qo[f]})}var Do={start:"end",end:"start"};function ai(Le){return Le.replace(/start|end/g,function(f){return Do[f]})}function $o(Le){var f=We(Le);return{scrollLeft:f.pageXOffset,scrollTop:f.pageYOffset}}function Mn(Le){return Xt($t(Le)).left+$o(Le).scrollLeft}function nt(Le){var f=xt(Le);return/auto|scroll|overlay|hidden/.test(f.overflow+f.overflowY+f.overflowX)}function Dt(Le){return 0>["html","body","#document"].indexOf(Xe(Le))?Me(Le)&&nt(Le)?Le:Dt(_t(Le)):Le.ownerDocument.body}function Kt(Le,f){var y;f===void 0&&(f=[]);var A=Dt(Le),j=A===((y=Le.ownerDocument)==null?void 0:y.body),re=We(A),de=j?[re].concat(re.visualViewport||[],nt(A)?A:[]):A,Ie=f.concat(de);return j?Ie:Ie.concat(Kt(_t(de)))}function mn(Le){return Object.assign({},Le,{left:Le.x,top:Le.y,right:Le.x+Le.width,bottom:Le.y+Le.height})}function kn(Le,f,y){return f===he?mn(function(A,j){var re=We(A),de=$t(A),Ie=re.visualViewport,Je=de.clientWidth,zt=de.clientHeight,un=0,tr=0;if(Ie){Je=Ie.width,zt=Ie.height;var Cr=Oe();(Cr||!Cr&&j==="fixed")&&(un=Ie.offsetLeft,tr=Ie.offsetTop)}return{width:Je,height:zt,x:un+Mn(A),y:tr}}(Le,y)):dt(f)?function(A,j){var re=Xt(A,!1,j==="fixed");return re.top=re.top+A.clientTop,re.left=re.left+A.clientLeft,re.bottom=re.top+A.clientHeight,re.right=re.left+A.clientWidth,re.width=A.clientWidth,re.height=A.clientHeight,re.x=re.left,re.y=re.top,re}(f,y):mn(function(A){var j,re=$t(A),de=$o(A),Ie=(j=A.ownerDocument)==null?void 0:j.body,Je=ke(re.scrollWidth,re.clientWidth,Ie?Ie.scrollWidth:0,Ie?Ie.clientWidth:0),zt=ke(re.scrollHeight,re.clientHeight,Ie?Ie.scrollHeight:0,Ie?Ie.clientHeight:0),un=-de.scrollLeft+Mn(A),tr=-de.scrollTop;return xt(Ie||re).direction==="rtl"&&(un+=ke(re.clientWidth,Ie?Ie.clientWidth:0)-Je),{width:Je,height:zt,x:un,y:tr}}($t(Le)))}function an(Le,f,y,A){var j=f==="clippingParents"?function(Ie){var Je=Kt(_t(Ie)),zt=["absolute","fixed"].indexOf(xt(Ie).position)>=0&&Me(Ie)?Wn(Ie):Ie;return dt(zt)?Je.filter(function(un){return dt(un)&&ot(un,zt)&&Xe(un)!=="body"}):[]}(Le):[].concat(f),re=[].concat(j,[y]),de=re.reduce(function(Ie,Je){var zt=kn(Le,Je,A);return Ie.top=ke(zt.top,Ie.top),Ie.right=$e(zt.right,Ie.right),Ie.bottom=$e(zt.bottom,Ie.bottom),Ie.left=ke(zt.left,Ie.left),Ie},kn(Le,re[0],A));return de.width=de.right-de.left,de.height=de.bottom-de.top,de.x=de.left,de.y=de.top,de}function tn(Le){var f,y=Le.reference,A=Le.element,j=Le.placement,re=j?De(j):null,de=j?Hr(j):null,Ie=y.x+y.width/2-A.width/2,Je=y.y+y.height/2-A.height/2;switch(re){case B:f={x:Ie,y:y.y-A.height};break;case V:f={x:Ie,y:y.y+y.height};break;case O:f={x:y.x+y.width,y:Je};break;case L:f={x:y.x-A.width,y:Je};break;default:f={x:y.x,y:y.y}}var zt=re?$r(re):null;if(zt!=null){var un=zt==="y"?"height":"width";switch(de){case T:f[zt]=f[zt]-(y[un]/2-A[un]/2);break;case k:f[zt]=f[zt]+(y[un]/2-A[un]/2)}}return f}function kt(Le,f){f===void 0&&(f={});var y=f.placement,A=y===void 0?Le.placement:y,j=f.strategy,re=j===void 0?Le.strategy:j,de=f.boundary,Ie=de===void 0?K:de,Je=f.rootBoundary,zt=Je===void 0?he:Je,un=f.elementContext,tr=un===void 0?ae:un,Cr=f.altBoundary,xi=Cr!==void 0&&Cr,Li=f.padding,Io=Li===void 0?0:Li,Ao=oo(typeof Io!="number"?Io:Mo(Io,g)),Xo=Le.rects.popper,Ro=Le.elements[xi?tr===ae?fe:ae:tr],po=an(dt(Ro)?Ro:Ro.contextElement||$t(Le.elements.popper),Ie,zt,re),Gs=Xt(Le.elements.reference),Oa=tn({reference:Gs,element:Xo,strategy:"absolute",placement:A}),yl=mn(Object.assign({},Xo,Oa)),cu=tr===ae?yl:Gs,Fu={top:po.top-cu.top+Ao.top,bottom:cu.bottom-po.bottom+Ao.bottom,left:po.left-cu.left+Ao.left,right:cu.right-po.right+Ao.right},Eu=Le.modifiersData.offset;if(tr===ae&&Eu){var qc=Eu[A];Object.keys(Fu).forEach(function(vu){var kc=0>[O,V].indexOf(vu)?-1:1;Fu[vu]+=qc[0>[B,V].indexOf(vu)?"x":"y"]*kc})}return Fu}function en(Le,f){f===void 0&&(f={});var y=f.boundary,A=f.rootBoundary,j=f.padding,re=f.flipVariations,de=f.allowedAutoPlacements,Ie=de===void 0?be:de,Je=Hr(f.placement),zt=Je?re?_e:_e.filter(function(Cr){return Hr(Cr)===Je}):g,un=zt.filter(function(Cr){return Ie.indexOf(Cr)>=0});un.length===0&&(un=zt);var tr=un.reduce(function(Cr,xi){return Cr[xi]=kt(Le,{placement:xi,boundary:y,rootBoundary:A,padding:j})[De(xi)],Cr},{});return Object.keys(tr).sort(function(Cr,xi){return tr[Cr]-tr[xi]})}var Vn={name:"flip",enabled:!0,phase:"main",fn:function(Le){var f=Le.state,y=Le.options,A=Le.name;if(!f.modifiersData[A]._skip){for(var j=y.mainAxis,re=j===void 0||j,de=y.altAxis,Ie=de===void 0||de,Je=y.fallbackPlacements,zt=y.padding,un=y.boundary,tr=y.rootBoundary,Cr=y.altBoundary,xi=y.flipVariations,Li=xi===void 0||xi,Io=y.allowedAutoPlacements,Ao=f.options.placement,Xo=De(Ao),Ro=Je||(Xo===Ao||!Li?[Ki(Ao)]:function(il){if(De(il)===S)return[];var iu=Ki(il);return[ai(il),iu,ai(iu)]}(Ao)),po=[Ao].concat(Ro).reduce(function(il,iu){return il.concat(De(iu)===S?en(f,{placement:iu,boundary:un,rootBoundary:tr,padding:zt,flipVariations:Li,allowedAutoPlacements:Io}):iu)},[]),Gs=f.rects.reference,Oa=f.rects.popper,yl=new Map,cu=!0,Fu=po[0],Eu=0;po.length>Eu;Eu++){var qc=po[Eu],vu=De(qc),kc=Hr(qc)===T,On=[B,V].indexOf(vu)>=0,lr=On?"width":"height",Ur=kt(f,{placement:qc,boundary:un,rootBoundary:tr,altBoundary:Cr,padding:zt}),di=On?kc?O:L:kc?V:B;Gs[lr]>Oa[lr]&&(di=Ki(di));var uo=Ki(di),Ys=[];if(re&&Ys.push(0>=Ur[vu]),Ie&&Ys.push(0>=Ur[di],0>=Ur[uo]),Ys.every(function(il){return il})){Fu=qc,cu=!1;break}yl.set(qc,Ys)}if(cu)for(var qa=function(il){var iu=po.find(function(Ls){var Cc=yl.get(Ls);if(Cc)return Cc.slice(0,il).every(function(qh){return qh})});if(iu)return Fu=iu,"break"},Fs=Li?3:1;Fs>0&&qa(Fs)!=="break";Fs--);f.placement!==Fu&&(f.modifiersData[A]._skip=!0,f.placement=Fu,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function on(Le,f,y){return y===void 0&&(y={x:0,y:0}),{top:Le.top-f.height-y.y,right:Le.right-f.width+y.x,bottom:Le.bottom-f.height+y.y,left:Le.left-f.width-y.x}}function Dr(Le){return[B,O,V,L].some(function(f){return Le[f]>=0})}var oi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Le){var f=Le.state,y=Le.name,A=Le.options.offset,j=A===void 0?[0,0]:A,re=be.reduce(function(Je,zt){return Je[zt]=function(un,tr,Cr){var xi=De(un),Li=0>[L,B].indexOf(xi)?1:-1,Io=typeof Cr=="function"?Cr(Object.assign({},tr,{placement:un})):Cr,Ao=Io[0],Xo=Io[1];return Ao=Ao||0,Xo=(Xo||0)*Li,0>[L,O].indexOf(xi)?{x:Ao,y:Xo}:{x:Xo,y:Ao}}(zt,f.rects,j),Je},{}),de=re[f.placement],Ie=de.y;f.modifiersData.popperOffsets!=null&&(f.modifiersData.popperOffsets.x+=de.x,f.modifiersData.popperOffsets.y+=Ie),f.modifiersData[y]=re}},Ii={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Le){var f=Le.state,y=Le.options,A=Le.name,j=y.mainAxis,re=j===void 0||j,de=y.altAxis,Ie=de!==void 0&&de,Je=y.tether,zt=Je===void 0||Je,un=y.tetherOffset,tr=un===void 0?0:un,Cr=kt(f,{boundary:y.boundary,rootBoundary:y.rootBoundary,padding:y.padding,altBoundary:y.altBoundary}),xi=De(f.placement),Li=Hr(f.placement),Io=!Li,Ao=$r(xi),Xo=Ao==="x"?"y":"x",Ro=f.modifiersData.popperOffsets,po=f.rects.reference,Gs=f.rects.popper,Oa=typeof tr=="function"?tr(Object.assign({},f.rects,{placement:f.placement})):tr,yl=typeof Oa=="number"?{mainAxis:Oa,altAxis:Oa}:Object.assign({mainAxis:0,altAxis:0},Oa),cu=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,Fu={x:0,y:0};if(Ro){if(re){var Eu,qc=Ao==="y"?B:L,vu=Ao==="y"?V:O,kc=Ao==="y"?"height":"width",On=Ro[Ao],lr=On+Cr[qc],Ur=On-Cr[vu],di=zt?-Gs[kc]/2:0,uo=Li===T?po[kc]:Gs[kc],Ys=Li===T?-Gs[kc]:-po[kc],qa=f.elements.arrow,Fs=zt&&qa?Ft(qa):{width:0,height:0},il=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},iu=il[qc],Ls=il[vu],Cc=wi(0,po[kc],Fs[kc]),qh=Io?po[kc]/2-di-Cc-iu-yl.mainAxis:uo-Cc-iu-yl.mainAxis,Ch=Io?-po[kc]/2+di+Cc+Ls+yl.mainAxis:Ys+Cc+Ls+yl.mainAxis,fh=f.elements.arrow&&Wn(f.elements.arrow),Jh=(Eu=cu==null?void 0:cu[Ao])!=null?Eu:0,rp=On+Ch-Jh,Tp=wi(zt?$e(lr,On+qh-Jh-(fh?Ao==="y"?fh.clientTop||0:fh.clientLeft||0:0)):lr,On,zt?ke(Ur,rp):Ur);Ro[Ao]=Tp,Fu[Ao]=Tp-On}if(Ie){var gd,Pd=Ro[Xo],ss=Xo==="y"?"height":"width",Ll=Pd+Cr[Ao==="x"?B:L],rf=Pd-Cr[Ao==="x"?V:O],of=[B,L].indexOf(xi)!==-1,gf=(gd=cu==null?void 0:cu[Xo])!=null?gd:0,gg=of?Ll:Pd-po[ss]-Gs[ss]-gf+yl.altAxis,mf=of?Pd+po[ss]+Gs[ss]-gf-yl.altAxis:rf,au=zt&&of?function(vh,Kd,Fc){var kh=wi(vh,Kd,Fc);return kh>Fc?Fc:kh}(gg,Pd,mf):wi(zt?gg:Ll,Pd,zt?mf:rf);Ro[Xo]=au,Fu[Xo]=au-Pd}f.modifiersData[A]=Fu}},requiresIfExists:["offset"]};function jr(Le,f,y){y===void 0&&(y=!1);var A,j,re=Me(f),de=Me(f)&&function(tr){var Cr=tr.getBoundingClientRect(),xi=Te(Cr.width)/tr.offsetWidth||1,Li=Te(Cr.height)/tr.offsetHeight||1;return xi!==1||Li!==1}(f),Ie=$t(f),Je=Xt(Le,de,y),zt={scrollLeft:0,scrollTop:0},un={x:0,y:0};return(re||!re&&!y)&&((Xe(f)!=="body"||nt(Ie))&&(zt=(A=f)!==We(A)&&Me(A)?{scrollLeft:(j=A).scrollLeft,scrollTop:j.scrollTop}:$o(A)),Me(f)?((un=Xt(f,!0)).x+=f.clientLeft,un.y+=f.clientTop):Ie&&(un.x=Mn(Ie))),{x:Je.left+zt.scrollLeft-un.x,y:Je.top+zt.scrollTop-un.y,width:Je.width,height:Je.height}}function eo(Le){var f=new Map,y=new Set,A=[];function j(re){y.add(re.name),[].concat(re.requires||[],re.requiresIfExists||[]).forEach(function(de){if(!y.has(de)){var Ie=f.get(de);Ie&&j(Ie)}}),A.push(re)}return Le.forEach(function(re){f.set(re.name,re)}),Le.forEach(function(re){y.has(re.name)||j(re)}),A}var Uo={placement:"bottom",modifiers:[],strategy:"absolute"};function Fn(){for(var Le=arguments.length,f=Array(Le),y=0;Le>y;y++)f[y]=arguments[y];return!f.some(function(A){return!(A&&typeof A.getBoundingClientRect=="function")})}function Qr(Le){Le===void 0&&(Le={});var f=Le.defaultModifiers,y=f===void 0?[]:f,A=Le.defaultOptions,j=A===void 0?Uo:A;return function(re,de,Ie){Ie===void 0&&(Ie=j);var Je,zt,un={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uo,j),modifiersData:{},elements:{reference:re,popper:de},attributes:{},styles:{}},tr=[],Cr=!1,xi={state:un,setOptions:function(Io){var Ao=typeof Io=="function"?Io(un.options):Io;Li(),un.options=Object.assign({},j,un.options,Ao),un.scrollParents={reference:dt(re)?Kt(re):re.contextElement?Kt(re.contextElement):[],popper:Kt(de)};var Xo,Ro,po=function(Gs){var Oa=eo(Gs);return xe.reduce(function(yl,cu){return yl.concat(Oa.filter(function(Fu){return Fu.phase===cu}))},[])}((Xo=[].concat(y,un.options.modifiers),Ro=Xo.reduce(function(Gs,Oa){var yl=Gs[Oa.name];return Gs[Oa.name]=yl?Object.assign({},yl,Oa,{options:Object.assign({},yl.options,Oa.options),data:Object.assign({},yl.data,Oa.data)}):Oa,Gs},{}),Object.keys(Ro).map(function(Gs){return Ro[Gs]})));return un.orderedModifiers=po.filter(function(Gs){return Gs.enabled}),un.orderedModifiers.forEach(function(Gs){var Oa=Gs.options,yl=Gs.effect;if(typeof yl=="function"){var cu=yl({state:un,name:Gs.name,instance:xi,options:Oa===void 0?{}:Oa});tr.push(cu||function(){})}}),xi.update()},forceUpdate:function(){if(!Cr){var Io=un.elements,Ao=Io.reference,Xo=Io.popper;if(Fn(Ao,Xo)){un.rects={reference:jr(Ao,Wn(Xo),un.options.strategy==="fixed"),popper:Ft(Xo)},un.reset=!1,un.placement=un.options.placement,un.orderedModifiers.forEach(function(yl){return un.modifiersData[yl.name]=Object.assign({},yl.data)});for(var Ro=0;un.orderedModifiers.length>Ro;Ro++)if(un.reset!==!0){var po=un.orderedModifiers[Ro],Gs=po.fn,Oa=po.options;typeof Gs=="function"&&(un=Gs({state:un,options:Oa===void 0?{}:Oa,name:po.name,instance:xi})||un)}else un.reset=!1,Ro=-1}}},update:(Je=function(){return new Promise(function(Io){xi.forceUpdate(),Io(un)})},function(){return zt||(zt=new Promise(function(Io){Promise.resolve().then(function(){zt=void 0,Io(Je())})})),zt}),destroy:function(){Li(),Cr=!0}};if(!Fn(re,de))return xi;function Li(){tr.forEach(function(Io){return Io()}),tr=[]}return xi.setOptions(Ie).then(function(Io){!Cr&&Ie.onFirstUpdate&&Ie.onFirstUpdate(Io)}),xi}}var ci=Qr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Le){var f=Le.state,y=Le.instance,A=Le.options,j=A.scroll,re=j===void 0||j,de=A.resize,Ie=de===void 0||de,Je=We(f.elements.popper),zt=[].concat(f.scrollParents.reference,f.scrollParents.popper);return re&&zt.forEach(function(un){un.addEventListener("scroll",y.update,Pe)}),Ie&&Je.addEventListener("resize",y.update,Pe),function(){re&&zt.forEach(function(un){un.removeEventListener("scroll",y.update,Pe)}),Ie&&Je.removeEventListener("resize",y.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Le){var f=Le.state;f.modifiersData[Le.name]=tn({reference:f.rects.reference,element:f.rects.popper,strategy:"absolute",placement:f.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Le){var f=Le.state,y=Le.options,A=y.gpuAcceleration,j=A===void 0||A,re=y.adaptive,de=re===void 0||re,Ie=y.roundOffsets,Je=Ie===void 0||Ie,zt={placement:De(f.placement),variation:Hr(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:j,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,Ss(Object.assign({},zt,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:de,roundOffsets:Je})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,Ss(Object.assign({},zt,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Je})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})},data:{}},ze,oi,Vn,Ii,Ti,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Le){var f=Le.state,y=Le.name,A=f.rects.reference,j=f.rects.popper,re=f.modifiersData.preventOverflow,de=kt(f,{elementContext:"reference"}),Ie=kt(f,{altBoundary:!0}),Je=on(de,A),zt=on(Ie,j,re),un=Dr(Je),tr=Dr(zt);f.modifiersData[y]={referenceClippingOffsets:Je,popperEscapeOffsets:zt,isReferenceHidden:un,hasPopperEscaped:tr},f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-reference-hidden":un,"data-popper-escaped":tr})}}]}),ji="tippy-content",cr="tippy-backdrop",Qn="tippy-arrow",Vt="tippy-svg-arrow",Yt={passive:!0,capture:!0},En=function(){return document.body};function er(Le,f,y){if(Array.isArray(Le)){var A=Le[f];return A==null?Array.isArray(y)?y[f]:y:A}return Le}function Tr(Le,f){var y={}.toString.call(Le);return y.indexOf("[object")===0&&y.indexOf(f+"]")>-1}function Nr(Le,f){return typeof Le=="function"?Le.apply(void 0,f):Le}function Zn(Le,f){return f===0?Le:function(A){clearTimeout(y),y=setTimeout(function(){Le(A)},f)};var y}function Ut(Le){return[].concat(Le)}function $n(Le,f){Le.indexOf(f)===-1&&Le.push(f)}function xr(Le){return[].slice.call(Le)}function Br(Le){return Object.keys(Le).reduce(function(f,y){return Le[y]!==void 0&&(f[y]=Le[y]),f},{})}function _o(){return document.createElement("div")}function Qt(Le){return["Element","Fragment"].some(function(f){return Tr(Le,f)})}function xn(Le){return Tr(Le,"MouseEvent")}function Sr(Le){return Qt(Le)?[Le]:function(f){return Tr(f,"NodeList")}(Le)?xr(Le):Array.isArray(Le)?Le:xr(document.querySelectorAll(Le))}function qr(Le,f){Le.forEach(function(y){y&&(y.style.transitionDuration=f+"ms")})}function Mi(Le,f){Le.forEach(function(y){y&&y.setAttribute("data-state",f)})}function zi(Le){var f,y=Ut(Le)[0];return y!=null&&(f=y.ownerDocument)!=null&&f.body?y.ownerDocument:document}function Yi(Le,f,y){var A=f+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(j){Le[A](j,y)})}function Si(Le,f){for(var y=f;y;){var A;if(Le.contains(y))return!0;y=y.getRootNode==null||(A=y.getRootNode())==null?void 0:A.host}return!1}var ni={isTouch:!1},qi=0;function Vr(){ni.isTouch||(ni.isTouch=!0,window.performance&&document.addEventListener("mousemove",ii))}function ii(){var Le=performance.now();20>Le-qi&&(ni.isTouch=!1,document.removeEventListener("mousemove",ii)),qi=Le}function nr(){var Le,f=document.activeElement;(Le=f)&&Le._tippy&&Le._tippy.reference===Le&&f.blur&&!f._tippy.state.isVisible&&f.blur()}var Mr=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,rr=Object.assign({appendTo:En,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),to=Object.keys(rr);function ts(Le){var f=(Le.plugins||[]).reduce(function(y,A){var j,re=A.name;return re&&(y[re]=Le[re]!==void 0?Le[re]:(j=rr[re])!=null?j:A.defaultValue),y},{});return Object.assign({},Le,f)}function Wr(Le,f){var y=Object.assign({},f,{content:Nr(f.content,[Le])},f.ignoreAttributes?{}:function(A,j){return(j?Object.keys(ts(Object.assign({},rr,{plugins:j}))):to).reduce(function(re,de){var Ie=(A.getAttribute("data-tippy-"+de)||"").trim();if(!Ie)return re;if(de==="content")re[de]=Ie;else try{re[de]=JSON.parse(Ie)}catch(Je){re[de]=Ie}return re},{})}(Le,f.plugins));return y.aria=Object.assign({},rr.aria,y.aria),y.aria={expanded:y.aria.expanded==="auto"?f.interactive:y.aria.expanded,content:y.aria.content==="auto"?f.interactive?null:"describedby":y.aria.content},y}var no=function(){return"innerHTML"};function Vi(Le,f){Le[no()]=f}function Pn(Le){var f=_o();return Le===!0?f.className=Qn:(f.className=Vt,Qt(Le)?f.appendChild(Le):Vi(f,Le)),f}function mi(Le,f){Qt(f.content)?(Vi(Le,""),Le.appendChild(f.content)):typeof f.content!="function"&&(f.allowHTML?Vi(Le,f.content):Le.textContent=f.content)}function ya(Le){var f=Le.firstElementChild,y=xr(f.children);return{box:f,content:y.find(function(A){return A.classList.contains(ji)}),arrow:y.find(function(A){return A.classList.contains(Qn)||A.classList.contains(Vt)}),backdrop:y.find(function(A){return A.classList.contains(cr)})}}function Zs(Le){var f=_o(),y=_o();y.className="tippy-box",y.setAttribute("data-state","hidden"),y.setAttribute("tabindex","-1");var A=_o();function j(re,de){var Ie=ya(f),Je=Ie.box,zt=Ie.content,un=Ie.arrow;de.theme?Je.setAttribute("data-theme",de.theme):Je.removeAttribute("data-theme"),typeof de.animation=="string"?Je.setAttribute("data-animation",de.animation):Je.removeAttribute("data-animation"),de.inertia?Je.setAttribute("data-inertia",""):Je.removeAttribute("data-inertia"),Je.style.maxWidth=typeof de.maxWidth=="number"?de.maxWidth+"px":de.maxWidth,de.role?Je.setAttribute("role",de.role):Je.removeAttribute("role"),re.content===de.content&&re.allowHTML===de.allowHTML||mi(zt,Le.props),de.arrow?un?re.arrow!==de.arrow&&(Je.removeChild(un),Je.appendChild(Pn(de.arrow))):Je.appendChild(Pn(de.arrow)):un&&Je.removeChild(un)}return A.className=ji,A.setAttribute("data-state","hidden"),mi(A,Le.props),f.appendChild(y),y.appendChild(A),j(Le.props,Le.props),{popper:f,onUpdate:j}}Zs.$$tippy=!0;var qs=1,al=[],co=[];function tl(Le,f){var y,A,j,re,de,Ie,Je,zt,un=Wr(Le,Object.assign({},rr,ts(Br(f)))),tr=!1,Cr=!1,xi=!1,Li=!1,Io=[],Ao=Zn(gd,un.interactiveDebounce),Xo=qs++,Ro=(zt=un.plugins).filter(function(au,vh){return zt.indexOf(au)===vh}),po={id:Xo,reference:Le,popper:_o(),popperInstance:null,props:un,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Ro,clearDelayTimeouts:function(){clearTimeout(y),clearTimeout(A),cancelAnimationFrame(j)},setProps:function(au){if(!po.state.isDestroyed){uo("onBeforeUpdate",[po,au]),rp();var vh=po.props,Kd=Wr(Le,Object.assign({},vh,Br(au),{ignoreAttributes:!0}));po.props=Kd,Jh(),vh.interactiveDebounce!==Kd.interactiveDebounce&&(Fs(),Ao=Zn(gd,Kd.interactiveDebounce)),vh.triggerTarget&&!Kd.triggerTarget?Ut(vh.triggerTarget).forEach(function(Fc){Fc.removeAttribute("aria-expanded")}):Kd.triggerTarget&&Le.removeAttribute("aria-expanded"),qa(),di(),yl&&yl(vh,Kd),po.popperInstance&&(rf(),gf().forEach(function(Fc){requestAnimationFrame(Fc._tippy.popperInstance.forceUpdate)})),uo("onAfterUpdate",[po,au])}},setContent:function(au){po.setProps({content:au})},show:function(){var au=po.state.isVisible,vh=po.state.isDestroyed,Kd=!po.state.isEnabled,Fc=ni.isTouch&&!po.props.touch,kh=er(po.props.duration,0,rr.duration);if(!(au||vh||Kd||Fc)&&!kc().hasAttribute("disabled")&&(uo("onShow",[po],!1),po.props.onShow(po)!==!1)){if(po.state.isVisible=!0,vu()&&(Oa.style.visibility="visible"),di(),Cc(),po.state.isMounted||(Oa.style.transition="none"),vu()){var H=lr();qr([H.box,H.content],0)}Ie=function(){var F;if(po.state.isVisible&&!Li){if(Li=!0,Oa.style.transition=po.props.moveTransition,vu()&&po.props.animation){var te=lr(),ve=te.box,je=te.content;qr([ve,je],kh),Mi([ve,je],"visible")}Ys(),qa(),$n(co,po),(F=po.popperInstance)==null||F.forceUpdate(),uo("onMount",[po]),po.props.animation&&vu()&&function(vt,ht){Ch(vt,ht)}(kh,function(){po.state.isShown=!0,uo("onShown",[po])})}},function(){var F,te=po.props.appendTo,ve=kc();F=po.props.interactive&&te===En||te==="parent"?ve.parentNode:Nr(te,[ve]),F.contains(Oa)||F.appendChild(Oa),po.state.isMounted=!0,rf()}()}},hide:function(){var au=!po.state.isVisible,vh=po.state.isDestroyed,Kd=!po.state.isEnabled,Fc=er(po.props.duration,1,rr.duration);if(!(au||vh||Kd)&&(uo("onHide",[po],!1),po.props.onHide(po)!==!1)){if(po.state.isVisible=!1,po.state.isShown=!1,Li=!1,tr=!1,vu()&&(Oa.style.visibility="hidden"),Fs(),qh(),di(!0),vu()){var kh=lr(),H=kh.box,F=kh.content;po.props.animation&&(qr([H,F],Fc),Mi([H,F],"hidden"))}Ys(),qa(),po.props.animation?vu()&&function(te,ve){Ch(te,function(){!po.state.isVisible&&Oa.parentNode&&Oa.parentNode.contains(Oa)&&ve()})}(Fc,po.unmount):po.unmount()}},hideWithInteractivity:function(au){On().addEventListener("mousemove",Ao),$n(al,Ao),Ao(au)},enable:function(){po.state.isEnabled=!0},disable:function(){po.hide(),po.state.isEnabled=!1},unmount:function(){po.state.isVisible&&po.hide(),po.state.isMounted&&(of(),gf().forEach(function(au){au._tippy.unmount()}),Oa.parentNode&&Oa.parentNode.removeChild(Oa),co=co.filter(function(au){return au!==po}),po.state.isMounted=!1,uo("onHidden",[po]))},destroy:function(){po.state.isDestroyed||(po.clearDelayTimeouts(),po.unmount(),rp(),delete Le._tippy,po.state.isDestroyed=!0,uo("onDestroy",[po]))}};if(!un.render)return po;var Gs=un.render(po),Oa=Gs.popper,yl=Gs.onUpdate;Oa.setAttribute("data-tippy-root",""),Oa.id="tippy-"+po.id,po.popper=Oa,Le._tippy=po,Oa._tippy=po;var cu=Ro.map(function(au){return au.fn(po)}),Fu=Le.hasAttribute("aria-expanded");return Jh(),qa(),di(),uo("onCreate",[po]),un.showOnCreate&&gg(),Oa.addEventListener("mouseenter",function(){po.props.interactive&&po.state.isVisible&&po.clearDelayTimeouts()}),Oa.addEventListener("mouseleave",function(){po.props.interactive&&po.props.trigger.indexOf("mouseenter")>=0&&On().addEventListener("mousemove",Ao)}),po;function Eu(){var au=po.props.touch;return Array.isArray(au)?au:[au,0]}function qc(){return Eu()[0]==="hold"}function vu(){var au;return!((au=po.props.render)==null||!au.$$tippy)}function kc(){return Je||Le}function On(){var au=kc().parentNode;return au?zi(au):document}function lr(){return ya(Oa)}function Ur(au){return po.state.isMounted&&!po.state.isVisible||ni.isTouch||re&&re.type==="focus"?0:er(po.props.delay,au?0:1,rr.delay)}function di(au){au===void 0&&(au=!1),Oa.style.pointerEvents=po.props.interactive&&!au?"":"none",Oa.style.zIndex=""+po.props.zIndex}function uo(au,vh,Kd){var Fc;Kd===void 0&&(Kd=!0),cu.forEach(function(kh){kh[au]&&kh[au].apply(kh,vh)}),Kd&&(Fc=po.props)[au].apply(Fc,vh)}function Ys(){var au=po.props.aria;if(au.content){var vh="aria-"+au.content,Kd=Oa.id;Ut(po.props.triggerTarget||Le).forEach(function(Fc){var kh=Fc.getAttribute(vh);if(po.state.isVisible)Fc.setAttribute(vh,kh?kh+" "+Kd:Kd);else{var H=kh&&kh.replace(Kd,"").trim();H?Fc.setAttribute(vh,H):Fc.removeAttribute(vh)}})}}function qa(){!Fu&&po.props.aria.expanded&&Ut(po.props.triggerTarget||Le).forEach(function(au){po.props.interactive?au.setAttribute("aria-expanded",po.state.isVisible&&au===kc()?"true":"false"):au.removeAttribute("aria-expanded")})}function Fs(){On().removeEventListener("mousemove",Ao),al=al.filter(function(au){return au!==Ao})}function il(au){if(!ni.isTouch||!xi&&au.type!=="mousedown"){var vh=au.composedPath&&au.composedPath()[0]||au.target;if(!po.props.interactive||!Si(Oa,vh)){if(Ut(po.props.triggerTarget||Le).some(function(Kd){return Si(Kd,vh)})){if(ni.isTouch||po.state.isVisible&&po.props.trigger.indexOf("click")>=0)return}else uo("onClickOutside",[po,au]);po.props.hideOnClick===!0&&(po.clearDelayTimeouts(),po.hide(),Cr=!0,setTimeout(function(){Cr=!1}),po.state.isMounted||qh())}}}function iu(){xi=!0}function Ls(){xi=!1}function Cc(){var au=On();au.addEventListener("mousedown",il,!0),au.addEventListener("touchend",il,Yt),au.addEventListener("touchstart",Ls,Yt),au.addEventListener("touchmove",iu,Yt)}function qh(){var au=On();au.removeEventListener("mousedown",il,!0),au.removeEventListener("touchend",il,Yt),au.removeEventListener("touchstart",Ls,Yt),au.removeEventListener("touchmove",iu,Yt)}function Ch(au,vh){var Kd=lr().box;function Fc(kh){kh.target===Kd&&(Yi(Kd,"remove",Fc),vh())}if(au===0)return vh();Yi(Kd,"remove",de),Yi(Kd,"add",Fc),de=Fc}function fh(au,vh,Kd){Kd===void 0&&(Kd=!1),Ut(po.props.triggerTarget||Le).forEach(function(Fc){Fc.addEventListener(au,vh,Kd),Io.push({node:Fc,eventType:au,handler:vh,options:Kd})})}function Jh(){var au;qc()&&(fh("touchstart",Tp,{passive:!0}),fh("touchend",Pd,{passive:!0})),(au=po.props.trigger,au.split(/\s+/).filter(Boolean)).forEach(function(vh){if(vh!=="manual")switch(fh(vh,Tp),vh){case"mouseenter":fh("mouseleave",Pd);break;case"focus":fh(Mr?"focusout":"blur",ss);break;case"focusin":fh("focusout",ss)}})}function rp(){Io.forEach(function(au){au.node.removeEventListener(au.eventType,au.handler,au.options)}),Io=[]}function Tp(au){var vh,Kd=!1;if(po.state.isEnabled&&!Ll(au)&&!Cr){var Fc=((vh=re)==null?void 0:vh.type)==="focus";re=au,Je=au.currentTarget,qa(),!po.state.isVisible&&xn(au)&&al.forEach(function(kh){return kh(au)}),au.type==="click"&&(0>po.props.trigger.indexOf("mouseenter")||tr)&&po.props.hideOnClick!==!1&&po.state.isVisible?Kd=!0:gg(au),au.type==="click"&&(tr=!Kd),Kd&&!Fc&&mf(au)}}function gd(au){var vh=au.target,Kd=kc().contains(vh)||Oa.contains(vh);if(au.type!=="mousemove"||!Kd){var Fc=gf().concat(Oa).map(function(kh){var H,F=(H=kh._tippy.popperInstance)==null?void 0:H.state;return F?{popperRect:kh.getBoundingClientRect(),popperState:F,props:un}:null}).filter(Boolean);(function(kh,H){var F=H.clientX,te=H.clientY;return kh.every(function(ve){var je=ve.popperRect,vt=ve.popperState,ht=ve.props.interactiveBorder,nn=vt.placement.split("-")[0],wn=vt.modifiersData.offset;return!wn||je.top-te+(nn==="bottom"?wn.top.y:0)>ht||te-je.bottom-(nn==="top"?wn.bottom.y:0)>ht||je.left-F+(nn==="right"?wn.left.x:0)>ht||F-je.right-(nn==="left"?wn.right.x:0)>ht})})(Fc,au)&&(Fs(),mf(au))}}function Pd(au){Ll(au)||po.props.trigger.indexOf("click")>=0&&tr||(po.props.interactive?po.hideWithInteractivity(au):mf(au))}function ss(au){0>po.props.trigger.indexOf("focusin")&&au.target!==kc()||po.props.interactive&&au.relatedTarget&&Oa.contains(au.relatedTarget)||mf(au)}function Ll(au){return!!ni.isTouch&&qc()!==au.type.indexOf("touch")>=0}function rf(){of();var au=po.props,vh=au.popperOptions,Kd=au.placement,Fc=au.offset,kh=au.getReferenceClientRect,H=au.moveTransition,F=vu()?ya(Oa).arrow:null,te=kh?{getBoundingClientRect:kh,contextElement:kh.contextElement||kc()}:Le,ve={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(vt){var ht=vt.state;if(vu()){var nn=lr().box;["placement","reference-hidden","escaped"].forEach(function(wn){wn==="placement"?nn.setAttribute("data-placement",ht.placement):ht.attributes.popper["data-popper-"+wn]?nn.setAttribute("data-"+wn,""):nn.removeAttribute("data-"+wn)}),ht.attributes.popper={}}}},je=[{name:"offset",options:{offset:Fc}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!H}},ve];vu()&&F&&je.push({name:"arrow",options:{element:F,padding:3}}),je.push.apply(je,(vh==null?void 0:vh.modifiers)||[]),po.popperInstance=ci(te,Oa,Object.assign({},vh,{placement:Kd,onFirstUpdate:Ie,modifiers:je}))}function of(){po.popperInstance&&(po.popperInstance.destroy(),po.popperInstance=null)}function gf(){return xr(Oa.querySelectorAll("[data-tippy-root]"))}function gg(au){po.clearDelayTimeouts(),au&&uo("onTrigger",[po,au]),Cc();var vh=Ur(!0),Kd=Eu(),Fc=Kd[1];ni.isTouch&&Kd[0]==="hold"&&Fc&&(vh=Fc),vh?y=setTimeout(function(){po.show()},vh):po.show()}function mf(au){if(po.clearDelayTimeouts(),uo("onUntrigger",[po,au]),po.state.isVisible){if(0>po.props.trigger.indexOf("mouseenter")||0>po.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(au.type)||!tr){var vh=Ur(!1);vh?A=setTimeout(function(){po.state.isVisible&&po.hide()},vh):j=requestAnimationFrame(function(){po.hide()})}}else qh()}}function fl(Le,f){f===void 0&&(f={});var y=rr.plugins.concat(f.plugins||[]);document.addEventListener("touchstart",Vr,Yt),window.addEventListener("blur",nr);var A=Object.assign({},f,{plugins:y}),j=Sr(Le).reduce(function(re,de){var Ie=de&&tl(de,A);return Ie&&re.push(Ie),re},[]);return Qt(Le)?j[0]:j}fl.defaultProps=rr,fl.setDefaultProps=function(Le){Object.keys(Le).forEach(function(f){rr[f]=Le[f]})},fl.currentInput=ni,Object.assign({},ze,{effect:function(Le){var f=Le.state,y={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(f.elements.popper.style,y.popper),f.styles=y,f.elements.arrow&&Object.assign(f.elements.arrow.style,y.arrow)}});var Ai={clientX:0,clientY:0},Xi=[];function Fi(Le){Ai={clientX:Le.clientX,clientY:Le.clientY}}var No={name:"followCursor",defaultValue:!1,fn:function(Le){var f=Le.reference,y=zi(Le.props.triggerTarget||f),A=!1,j=!1,re=!0,de=Le.props;function Ie(){return Le.props.followCursor==="initial"&&Le.state.isVisible}function Je(){y.addEventListener("mousemove",tr)}function zt(){y.removeEventListener("mousemove",tr)}function un(){A=!0,Le.setProps({getReferenceClientRect:null}),A=!1}function tr(Li){var Io=!Li.target||f.contains(Li.target),Ao=Le.props.followCursor,Xo=Li.clientX,Ro=Li.clientY,po=f.getBoundingClientRect(),Gs=Xo-po.left,Oa=Ro-po.top;!Io&&Le.props.interactive||Le.setProps({getReferenceClientRect:function(){var yl=f.getBoundingClientRect(),cu=Xo,Fu=Ro;Ao==="initial"&&(cu=yl.left+Gs,Fu=yl.top+Oa);var Eu=Ao==="horizontal"?yl.top:Fu,qc=Ao==="vertical"?yl.right:cu,vu=Ao==="horizontal"?yl.bottom:Fu,kc=Ao==="vertical"?yl.left:cu;return{width:qc-kc,height:vu-Eu,top:Eu,right:qc,bottom:vu,left:kc}}})}function Cr(){Le.props.followCursor&&(Xi.push({instance:Le,doc:y}),function(Li){Li.addEventListener("mousemove",Fi)}(y))}function xi(){(Xi=Xi.filter(function(Li){return Li.instance!==Le})).filter(function(Li){return Li.doc===y}).length===0&&function(Li){Li.removeEventListener("mousemove",Fi)}(y)}return{onCreate:Cr,onDestroy:xi,onBeforeUpdate:function(){de=Le.props},onAfterUpdate:function(Li,Io){var Ao=Io.followCursor;A||Ao!==void 0&&de.followCursor!==Ao&&(xi(),Ao?(Cr(),!Le.state.isMounted||j||Ie()||Je()):(zt(),un()))},onMount:function(){Le.props.followCursor&&!j&&(re&&(tr(Ai),re=!1),Ie()||Je())},onTrigger:function(Li,Io){xn(Io)&&(Ai={clientX:Io.clientX,clientY:Io.clientY}),j=Io.type==="focus"},onHidden:function(){Le.props.followCursor&&(un(),zt(),re=!0)}}}};fl.setDefaultProps({render:Zs});var yr,ui,Zo,ns,Lr,Ei,hn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Le){return 1e3>Le?+Le.toFixed(2)+"m":+(Le/1e3).toFixed(2)+"km"}},Tn={showWhen:["normal","active"],format:function(Le){return Le>1e6?"".concat(+(Le/1e6).toFixed(2),"km\xB2"):"".concat(+Le.toFixed(2),"m\xB2")}},ar={maxSize:100},ft={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},wt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[No],trigger:"manual",hideOnClick:!1,theme:"light"},At={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Ye(Le,f){var y=Object.keys(Le);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(Le);f&&(A=A.filter(function(j){return Object.getOwnPropertyDescriptor(Le,j).enumerable})),y.push.apply(y,A)}return y}function Et(Le){for(var f=1;arguments.length>f;f++){var y=arguments[f]!=null?arguments[f]:{};f%2?Ye(Object(y),!0).forEach(function(A){Gi(Le,A,y[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Le,Object.getOwnPropertyDescriptors(y)):Ye(Object(y)).forEach(function(A){Object.defineProperty(Le,A,Object.getOwnPropertyDescriptor(y,A))})}return Le}function Wt(Le){return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Wt(Le)}function vn(Le,f){if(!(Le instanceof f))throw new TypeError("Cannot call a class as a function")}function Er(Le,f){for(var y=0;f.length>y;y++){var A=f[y];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(Le,El(A.key),A)}}function Gr(Le,f,y){return f&&Er(Le.prototype,f),y&&Er(Le,y),Object.defineProperty(Le,"prototype",{writable:!1}),Le}function Gi(Le,f,y){return(f=El(f))in Le?Object.defineProperty(Le,f,{value:y,enumerable:!0,configurable:!0,writable:!0}):Le[f]=y,Le}function ko(Le,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");Le.prototype=Object.create(f&&f.prototype,{constructor:{value:Le,writable:!0,configurable:!0}}),Object.defineProperty(Le,"prototype",{writable:!1}),f&&ms(Le,f)}function Bi(Le){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},Bi(Le)}function ms(Le,f){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,A){return y.__proto__=A,y},ms(Le,f)}function ps(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function Js(Le){var f=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(y){return!1}}();return function(){var y,A=Bi(Le);if(f){var j=Bi(this).constructor;y=Reflect.construct(A,arguments,j)}else y=A.apply(this,arguments);return function(re,de){if(de&&(typeof de=="object"||typeof de=="function"))return de;if(de!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ps(re)}(this,y)}}function Hs(){return Hs=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Le,f,y){var A=function(re,de){for(;!Object.prototype.hasOwnProperty.call(re,de)&&(re=Bi(re))!==null;);return re}(Le,f);if(A){var j=Object.getOwnPropertyDescriptor(A,f);return j.get?j.get.call(3>arguments.length?Le:y):j.value}},Hs.apply(this,arguments)}function Po(Le,f){return function(y){if(Array.isArray(y))return y}(Le)||function(y,A){var j=y==null?null:typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(j!=null){var re,de,Ie,Je,zt=[],un=!0,tr=!1;try{if(Ie=(j=j.call(y)).next,A===0){if(Object(j)!==j)return;un=!1}else for(;!(un=(re=Ie.call(j)).done)&&(zt.push(re.value),zt.length!==A);un=!0);}catch(Cr){tr=!0,de=Cr}finally{try{if(!un&&j.return!=null&&(Je=j.return(),Object(Je)!==Je))return}finally{if(tr)throw de}}return zt}}(Le,f)||ma(Le,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function zs(Le){return function(f){if(Array.isArray(f))return va(f)}(Le)||function(f){if(typeof Symbol!="undefined"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}(Le)||ma(Le)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ma(Le,f){if(Le){if(typeof Le=="string")return va(Le,f);var y=Object.prototype.toString.call(Le).slice(8,-1);return y==="Object"&&Le.constructor&&(y=Le.constructor.name),y==="Map"||y==="Set"?Array.from(Le):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?va(Le,f):void 0}}function va(Le,f){(f==null||f>Le.length)&&(f=Le.length);for(var y=0,A=Array(f);f>y;y++)A[y]=Le[y];return A}function El(Le){var f=function(y,A){if(typeof y!="object"||y===null)return y;var j=y[Symbol.toPrimitive];if(j!==void 0){var re=j.call(y,A||"default");if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(y)}(Le,"string");return typeof f=="symbol"?f:f+""}(yr=v.DrawEvent||(v.DrawEvent={})).Init="init",yr.Destroy="destroy",yr.Enable="enable",yr.Disable="disable",yr.Add="add",yr.Edit="edit",yr.Remove="remove",yr.Clear="clear",yr.Change="change",yr.DragStart="dragStart",yr.Dragging="dragging",yr.DragEnd="dragEnd",yr.Select="select",yr.AddNode="addNode",yr.RemoveNode="removeNode",(ui=v.SourceEvent||(v.SourceEvent={})).Change="change",ui.Update="update",(Zo=v.RenderEvent||(v.RenderEvent={})).Click="click",Zo.UnClick="unclick",Zo.Dragstart="dragstart",Zo.Mousemove="mousemove",Zo.Mouseout="mouseout",Zo.Dragging="dragging",Zo.Dragend="dragend",Zo.DblClick="dblClick",Zo.Contextmenu="contextmenu",(ns=v.LayerEvent||(v.LayerEvent={})).Mousedown="mousedown",ns.Mouseup="mouseup",ns.Click="click",ns.UnClick="unclick",ns.Dblclick="dblclick",ns.Mousemove="mousemove",ns.Mouseover="mouseover",ns.Mouseenter="mouseenter",ns.Mouseleave="mouseleave",ns.Mouseout="mouseout",ns.Contextmenu="contextmenu",(Lr=v.SceneEvent||(v.SceneEvent={})).Loaded="loaded",Lr.MapMove="mapmove",Lr.MoveStart="movestart",Lr.MoveEnd="moveend",Lr.ZoomChange="zoomchange",Lr.ZoomStart="zoomstart",Lr.ZoomEnd="zoomend",Lr.Click="click",Lr.Dblclick="dblclick",Lr.Mousemove="mousemove",Lr.Mousewheel="mousewheel",Lr.Mouseover="mouseover",Lr.Mouseout="mouseout",Lr.Mouseup="mouseup",Lr.Mousedown="mousedown",Lr.Contextmenu="contextmenu",Lr.Dragstart="dragstart",Lr.Dragging="dragging",Lr.Dragend="dragend",(Ei=v.ControlEvent||(v.ControlEvent={})).DrawChange="drawchange",Ei.DataChange="datachange",Ei.DrawSelect="drawselect",Ei.DrawClear="drawclear";var Dl=63710088e-1,Ns={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Dl,kilometers:6371.0088,kilometres:6371.0088,meters:Dl,metres:Dl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Dl/1852,radians:1,yards:6967335223679999e-9},Ca={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function vl(Le,f,y){y===void 0&&(y={});var A={type:"Feature"};return(y.id===0||y.id)&&(A.id=y.id),y.bbox&&(A.bbox=y.bbox),A.properties=f||{},A.geometry=Le,A}function ds(Le,f,y){if(y===void 0&&(y={}),!Le)throw Error("coordinates is required");if(!Array.isArray(Le))throw Error("coordinates must be an Array");if(2>Le.length)throw Error("coordinates must be at least 2 numbers long");if(!Uu(Le[0])||!Uu(Le[1]))throw Error("coordinates must contain numbers");return vl({type:"Point",coordinates:Le},f,y)}function io(Le,f,y){y===void 0&&(y={});for(var A=0,j=Le;j.length>A;A++){var re=j[A];if(4>re.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var de=0;re[re.length-1].length>de;de++)if(re[re.length-1][de]!==re[0][de])throw Error("First and last Position are not equivalent.")}return vl({type:"Polygon",coordinates:Le},f,y)}function Ko(Le,f,y){if(y===void 0&&(y={}),2>Le.length)throw Error("coordinates must be an array of two or more positions");return vl({type:"LineString",coordinates:Le},f,y)}function As(Le,f){f===void 0&&(f={});var y={type:"FeatureCollection"};return f.id&&(y.id=f.id),f.bbox&&(y.bbox=f.bbox),y.features=Le,y}function ks(Le,f,y){return y===void 0&&(y={}),vl({type:"MultiLineString",coordinates:Le},f,y)}function Ga(Le,f,y){return y===void 0&&(y={}),vl({type:"MultiPoint",coordinates:Le},f,y)}function zu(Le,f,y){return y===void 0&&(y={}),vl({type:"MultiPolygon",coordinates:Le},f,y)}function Ac(Le,f){f===void 0&&(f="kilometers");var y=Ns[f];if(!y)throw Error(f+" units is invalid");return Le*y}function vc(Le,f){f===void 0&&(f="kilometers");var y=Ns[f];if(!y)throw Error(f+" units is invalid");return Le/y}function ec(Le){return 180*(Le%(2*Math.PI))/Math.PI}function qu(Le){return Le%360*Math.PI/180}function Uu(Le){return!isNaN(Le)&&Le!==null&&!Array.isArray(Le)}function zn(Le){return!!Le&&Le.constructor===Object}var ur=Object.freeze({__proto__:null,earthRadius:Dl,factors:Ns,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Dl,yards:1.0936133},areaFactors:Ca,feature:vl,geometry:function(Le,f,y){switch(Le){case"Point":return ds(f).geometry;case"LineString":return Ko(f).geometry;case"Polygon":return io(f).geometry;case"MultiPoint":return Ga(f).geometry;case"MultiLineString":return ks(f).geometry;case"MultiPolygon":return zu(f).geometry;default:throw Error(Le+" is invalid")}},point:ds,points:function(Le,f,y){return y===void 0&&(y={}),As(Le.map(function(A){return ds(A,f)}),y)},polygon:io,polygons:function(Le,f,y){return y===void 0&&(y={}),As(Le.map(function(A){return io(A,f)}),y)},lineString:Ko,lineStrings:function(Le,f,y){return y===void 0&&(y={}),As(Le.map(function(A){return Ko(A,f)}),y)},featureCollection:As,multiLineString:ks,multiPoint:Ga,multiPolygon:zu,geometryCollection:function(Le,f,y){return y===void 0&&(y={}),vl({type:"GeometryCollection",geometries:Le},f,y)},round:function(Le,f){if(f===void 0&&(f=0),f&&f<0)throw Error("precision must be a positive number");var y=Math.pow(10,f||0);return Math.round(Le*y)/y},radiansToLength:Ac,lengthToRadians:vc,lengthToDegrees:function(Le,f){return ec(vc(Le,f))},bearingToAzimuth:function(Le){var f=Le%360;return 0>f&&(f+=360),f},radiansToDegrees:ec,degreesToRadians:qu,convertLength:function(Le,f,y){if(f===void 0&&(f="kilometers"),y===void 0&&(y="kilometers"),Le<0)throw Error("length must be a positive number");return Ac(vc(Le,f),y)},convertArea:function(Le,f,y){if(f===void 0&&(f="meters"),y===void 0&&(y="kilometers"),Le<0)throw Error("area must be a positive number");var A=Ca[f];if(!A)throw Error("invalid original units");var j=Ca[y];if(!j)throw Error("invalid final units");return Le/A*j},isNumber:Uu,isObject:zn,validateBBox:function(Le){if(!Le)throw Error("bbox is required");if(!Array.isArray(Le))throw Error("bbox must be an Array");if(Le.length!==4&&Le.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Le.forEach(function(f){if(!Uu(f))throw Error("bbox must only contain numbers")})},validateId:function(Le){if(!Le)throw Error("id is required");if(["string","number"].indexOf(typeof Le)===-1)throw Error("id must be a number or a string")}});function Zr(Le,f,y){if(Le!==null)for(var A,j,re,de,Ie,Je,zt,un,tr=0,Cr=0,xi=Le.type,Li=xi==="FeatureCollection",Io=xi==="Feature",Ao=Li?Le.features.length:1,Xo=0;Ao>Xo;Xo++){Ie=(un=!!(zt=Li?Le.features[Xo].geometry:Io?Le.geometry:Le)&&zt.type==="GeometryCollection")?zt.geometries.length:1;for(var Ro=0;Ie>Ro;Ro++){var po=0,Gs=0;if((de=un?zt.geometries[Ro]:zt)!==null){Je=de.coordinates;var Oa=de.type;switch(tr=!y||Oa!=="Polygon"&&Oa!=="MultiPolygon"?0:1,Oa){case null:break;case"Point":if(f(Je,Cr,Xo,po,Gs)===!1)return!1;Cr++,po++;break;case"LineString":case"MultiPoint":for(A=0;Je.length>A;A++){if(f(Je[A],Cr,Xo,po,Gs)===!1)return!1;Cr++,Oa==="MultiPoint"&&po++}Oa==="LineString"&&po++;break;case"Polygon":case"MultiLineString":for(A=0;Je.length>A;A++){for(j=0;Je[A].length-tr>j;j++){if(f(Je[A][j],Cr,Xo,po,Gs)===!1)return!1;Cr++}Oa==="MultiLineString"&&po++,Oa==="Polygon"&&Gs++}Oa==="Polygon"&&po++;break;case"MultiPolygon":for(A=0;Je.length>A;A++){for(Gs=0,j=0;Je[A].length>j;j++){for(re=0;Je[A][j].length-tr>re;re++){if(f(Je[A][j][re],Cr,Xo,po,Gs)===!1)return!1;Cr++}Gs++}po++}break;case"GeometryCollection":for(A=0;de.geometries.length>A;A++)if(Zr(de.geometries[A],f,y)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function Jr(Le,f){var y;switch(Le.type){case"FeatureCollection":for(y=0;Le.features.length>y&&f(Le.features[y].properties,y)!==!1;y++);break;case"Feature":f(Le.properties,0)}}function _i(Le,f){if(Le.type==="Feature")f(Le,0);else if(Le.type==="FeatureCollection")for(var y=0;Le.features.length>y&&f(Le.features[y],y)!==!1;y++);}function so(Le){var f=[];return Zr(Le,function(y){f.push(y)}),f}function Ui(Le,f){var y,A,j,re,de,Ie,Je,zt,un,tr,Cr=0,xi=Le.type==="FeatureCollection",Li=Le.type==="Feature",Io=xi?Le.features.length:1;for(y=0;Io>y;y++){for(zt=xi?Le.features[y].properties:Li?Le.properties:{},un=xi?Le.features[y].bbox:Li?Le.bbox:void 0,tr=xi?Le.features[y].id:Li?Le.id:void 0,de=(Je=!!(Ie=xi?Le.features[y].geometry:Li?Le.geometry:Le)&&Ie.type==="GeometryCollection")?Ie.geometries.length:1,j=0;de>j;j++)if((re=Je?Ie.geometries[j]:Ie)!==null)switch(re.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(f(re,Cr,zt,un,tr)===!1)return!1;break;case"GeometryCollection":for(A=0;re.geometries.length>A;A++)if(f(re.geometries[A],Cr,zt,un,tr)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(f(null,Cr,zt,un,tr)===!1)return!1;Cr++}}function hs(Le,f,y){var A=y;return Ui(Le,function(j,re,de,Ie,Je){A=re===0&&y===void 0?j:f(A,j,re,de,Ie,Je)}),A}function ra(Le,f){Ui(Le,function(y,A,j,re,de){var Ie,Je=y===null?null:y.type;switch(Je){case null:case"Point":case"LineString":case"Polygon":return f(vl(y,j,{bbox:re,id:de}),A,0)!==!1&&void 0}switch(Je){case"MultiPoint":Ie="Point";break;case"MultiLineString":Ie="LineString";break;case"MultiPolygon":Ie="Polygon"}for(var zt=0;y.coordinates.length>zt;zt++)if(f(vl({type:Ie,coordinates:y.coordinates[zt]},j),A,zt)===!1)return!1})}function Ka(Le,f){ra(Le,function(y,A,j){var re=0;if(y.geometry){var de=y.geometry.type;if(de!=="Point"&&de!=="MultiPoint"){var Ie,Je=0,zt=0,un=0;return Zr(y,function(tr,Cr,xi,Li,Io){if(Ie===void 0||A>Je||Li>zt||Io>un)return Ie=tr,Je=A,zt=Li,un=Io,void(re=0);var Ao=Ko([Ie,tr],y.properties);if(f(Ao,A,j,Io,re)===!1)return!1;re++,Ie=tr})!==!1&&void 0}}})}function ul(Le,f,y){var A=y,j=!1;return Ka(Le,function(re,de,Ie,Je,zt){A=j===!1&&y===void 0?re:f(A,re,de,Ie,Je,zt),j=!0}),A}function hl(Le,f){if(!Le)throw Error("geojson is required");ra(Le,function(y,A,j){if(y.geometry!==null){var re=y.geometry.coordinates;switch(y.geometry.type){case"LineString":if(f(y,A,j,0,0)===!1)return!1;break;case"Polygon":for(var de=0;re.length>de;de++)if(f(Ko(re[de],y.properties),A,j,de)===!1)return!1}}})}var kl=Object.freeze({__proto__:null,coordAll:so,coordEach:Zr,coordReduce:function(Le,f,y,A){var j=y;return Zr(Le,function(re,de,Ie,Je,zt){j=de===0&&y===void 0?re:f(j,re,de,Ie,Je,zt)},A),j},featureEach:_i,featureReduce:function(Le,f,y){var A=y;return _i(Le,function(j,re){A=re===0&&y===void 0?j:f(A,j,re)}),A},findPoint:function(Le,f){if(!zn(f=f||{}))throw Error("options is invalid");var y,A=f.featureIndex||0,j=f.multiFeatureIndex||0,re=f.geometryIndex||0,de=f.coordIndex||0,Ie=f.properties;switch(Le.type){case"FeatureCollection":0>A&&(A=Le.features.length+A),Ie=Ie||Le.features[A].properties,y=Le.features[A].geometry;break;case"Feature":Ie=Ie||Le.properties,y=Le.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Le;break;default:throw Error("geojson is invalid")}if(y===null)return null;var Je=y.coordinates;switch(y.type){case"Point":return ds(Je,Ie,f);case"MultiPoint":return 0>j&&(j=Je.length+j),ds(Je[j],Ie,f);case"LineString":return 0>de&&(de=Je.length+de),ds(Je[de],Ie,f);case"Polygon":return 0>re&&(re=Je.length+re),0>de&&(de=Je[re].length+de),ds(Je[re][de],Ie,f);case"MultiLineString":return 0>j&&(j=Je.length+j),0>de&&(de=Je[j].length+de),ds(Je[j][de],Ie,f);case"MultiPolygon":return 0>j&&(j=Je.length+j),0>re&&(re=Je[j].length+re),0>de&&(de=Je[j][re].length-de),ds(Je[j][re][de],Ie,f)}throw Error("geojson is invalid")},findSegment:function(Le,f){if(!zn(f=f||{}))throw Error("options is invalid");var y,A=f.featureIndex||0,j=f.multiFeatureIndex||0,re=f.geometryIndex||0,de=f.segmentIndex||0,Ie=f.properties;switch(Le.type){case"FeatureCollection":0>A&&(A=Le.features.length+A),Ie=Ie||Le.features[A].properties,y=Le.features[A].geometry;break;case"Feature":Ie=Ie||Le.properties,y=Le.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Le;break;default:throw Error("geojson is invalid")}if(y===null)return null;var Je=y.coordinates;switch(y.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>de&&(de=Je.length+de-1),Ko([Je[de],Je[de+1]],Ie,f);case"Polygon":return 0>re&&(re=Je.length+re),0>de&&(de=Je[re].length+de-1),Ko([Je[re][de],Je[re][de+1]],Ie,f);case"MultiLineString":return 0>j&&(j=Je.length+j),0>de&&(de=Je[j].length+de-1),Ko([Je[j][de],Je[j][de+1]],Ie,f);case"MultiPolygon":return 0>j&&(j=Je.length+j),0>re&&(re=Je[j].length+re),0>de&&(de=Je[j][re].length-de-1),Ko([Je[j][re][de],Je[j][re][de+1]],Ie,f)}throw Error("geojson is invalid")},flattenEach:ra,flattenReduce:function(Le,f,y){var A=y;return ra(Le,function(j,re,de){A=re===0&&de===0&&y===void 0?j:f(A,j,re,de)}),A},geomEach:Ui,geomReduce:hs,lineEach:hl,lineReduce:function(Le,f,y){var A=y;return hl(Le,function(j,re,de,Ie){A=re===0&&y===void 0?j:f(A,j,re,de,Ie)}),A},propEach:Jr,propReduce:function(Le,f,y){var A=y;return Jr(Le,function(j,re){A=re===0&&y===void 0?j:f(A,j,re)}),A},segmentEach:Ka,segmentReduce:ul});function Va(Le){var f=[1/0,1/0,-1/0,-1/0];return Zr(Le,function(y){f[0]>y[0]&&(f[0]=y[0]),f[1]>y[1]&&(f[1]=y[1]),y[0]>f[2]&&(f[2]=y[0]),y[1]>f[3]&&(f[3]=y[1])}),f}Va.default=Va;var Xu=Object.freeze({__proto__:null,default:Va});function Na(Le){if(!Le)throw Error("coord is required");if(!Array.isArray(Le)){if(Le.type==="Feature"&&Le.geometry!==null&&Le.geometry.type==="Point")return Le.geometry.coordinates;if(Le.type==="Point")return Le.coordinates}if(Array.isArray(Le)&&Le.length>=2&&!Array.isArray(Le[0])&&!Array.isArray(Le[1]))return Le;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Aa(Le){if(Array.isArray(Le))return Le;if(Le.type==="Feature"){if(Le.geometry!==null)return Le.geometry.coordinates}else if(Le.coordinates)return Le.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function ll(Le){return Le.type==="Feature"?Le.geometry:Le}function Pu(Le,f){return Le.type==="FeatureCollection"?"FeatureCollection":Le.type==="GeometryCollection"?"GeometryCollection":Le.type==="Feature"&&Le.geometry!==null?Le.geometry.type:Le.type}function Gl(Le,f,y,A,j){fu(Le,f,y||0,A||Le.length-1,j||lu)}function fu(Le,f,y,A,j){for(;A>y;){if(A-y>600){var re=A-y+1,de=f-y+1,Ie=Math.log(re),Je=.5*Math.exp(2*Ie/3),zt=.5*Math.sqrt(Ie*Je*(re-Je)/re)*(0>de-re/2?-1:1);fu(Le,f,Math.max(y,Math.floor(f-de*Je/re+zt)),Math.min(A,Math.floor(f+(re-de)*Je/re+zt)),j)}var un=Le[f],tr=y,Cr=A;for(Bl(Le,y,f),j(Le[A],un)>0&&Bl(Le,y,A);Cr>tr;){for(Bl(Le,tr,Cr),tr++,Cr--;0>j(Le[tr],un);)tr++;for(;j(Le[Cr],un)>0;)Cr--}j(Le[y],un)===0?Bl(Le,y,Cr):Bl(Le,++Cr,A),Cr>f||(y=Cr+1),f>Cr||(A=Cr-1)}}function Bl(Le,f,y){var A=Le[f];Le[f]=Le[y],Le[y]=A}function lu(Le,f){return f>Le?-1:Le>f?1:0}function Ln(Le,f,y){if(!y)return f.indexOf(Le);for(let A=0;f.length>A;A++)if(y(Le,f[A]))return A;return-1}function es(Le,f){Is(Le,0,Le.children.length,f,Le)}function Is(Le,f,y,A,j){j||(j=Rc(null)),j.minX=1/0,j.minY=1/0,j.maxX=-1/0,j.maxY=-1/0;for(let re=f;y>re;re++){const de=Le.children[re];Qs(j,Le.leaf?A(de):de)}return j}function Qs(Le,f){return Le.minX=Math.min(Le.minX,f.minX),Le.minY=Math.min(Le.minY,f.minY),Le.maxX=Math.max(Le.maxX,f.maxX),Le.maxY=Math.max(Le.maxY,f.maxY),Le}function dl(Le,f){return Le.minX-f.minX}function uu(Le,f){return Le.minY-f.minY}function Jl(Le){return(Le.maxX-Le.minX)*(Le.maxY-Le.minY)}function xu(Le){return Le.maxX-Le.minX+(Le.maxY-Le.minY)}function Tu(Le,f){const y=Math.max(Le.minX,f.minX),A=Math.max(Le.minY,f.minY),j=Math.min(Le.maxX,f.maxX),re=Math.min(Le.maxY,f.maxY);return Math.max(0,j-y)*Math.max(0,re-A)}function tc(Le,f){return!(Le.minX>f.minX||Le.minY>f.minY||f.maxX>Le.maxX||f.maxY>Le.maxY)}function zc(Le,f){return!(f.minX>Le.maxX||f.minY>Le.maxY||Le.minX>f.maxX||Le.minY>f.maxY)}function Rc(Le){return{children:Le,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ah(Le,f,y,A,j){const re=[f,y];for(;re.length;){if(A>=(y=re.pop())-(f=re.pop()))continue;const de=f+Math.ceil((y-f)/A/2)*A;Gl(Le,de,f,y,j),re.push(f,de,de,y)}}var Td=Object.freeze({__proto__:null,default:class{constructor(Le=9){this._maxEntries=Math.max(4,Le),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Le){let f=this.data;const y=[];if(!zc(Le,f))return y;const A=this.toBBox,j=[];for(;f;){for(let re=0;f.children.length>re;re++){const de=f.children[re],Ie=f.leaf?A(de):de;zc(Le,Ie)&&(f.leaf?y.push(de):tc(Le,Ie)?this._all(de,y):j.push(de))}f=j.pop()}return y}collides(Le){let f=this.data;if(!zc(Le,f))return!1;const y=[];for(;f;){for(let A=0;f.children.length>A;A++){const j=f.children[A],re=f.leaf?this.toBBox(j):j;if(zc(Le,re)){if(f.leaf||tc(Le,re))return!0;y.push(j)}}f=y.pop()}return!1}load(Le){if(!Le||!Le.length)return this;if(this._minEntries>Le.length){for(let y=0;Le.length>y;y++)this.insert(Le[y]);return this}let f=this._build(Le.slice(),0,Le.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const y=this.data;this.data=f,f=y}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Le){return Le&&this._insert(Le,this.data.height-1),this}clear(){return this.data=Rc([]),this}remove(Le,f){if(!Le)return this;let y=this.data;const A=this.toBBox(Le),j=[],re=[];let de,Ie,Je;for(;y||j.length;){if(y||(y=j.pop(),Ie=j[j.length-1],de=re.pop(),Je=!0),y.leaf){const zt=Ln(Le,y.children,f);if(zt!==-1)return y.children.splice(zt,1),j.push(y),this._condense(j),this}Je||y.leaf||!tc(y,A)?Ie?(de++,y=Ie.children[de],Je=!1):y=null:(j.push(y),re.push(de),de=0,Ie=y,y=y.children[0])}return this}toBBox(Le){return Le}compareMinX(Le,f){return Le.minX-f.minX}compareMinY(Le,f){return Le.minY-f.minY}toJSON(){return this.data}fromJSON(Le){return this.data=Le,this}_all(Le,f){const y=[];for(;Le;)Le.leaf?f.push(...Le.children):y.push(...Le.children),Le=y.pop();return f}_build(Le,f,y,A){const j=y-f+1;let re,de=this._maxEntries;if(de>=j)return re=Rc(Le.slice(f,y+1)),es(re,this.toBBox),re;A||(de=Math.ceil(j/Math.pow(de,(A=Math.ceil(Math.log(j)/Math.log(de)))-1))),re=Rc([]),re.leaf=!1,re.height=A;const Ie=Math.ceil(j/de),Je=Ie*Math.ceil(Math.sqrt(de));Ah(Le,f,y,Je,this.compareMinX);for(let zt=f;y>=zt;zt+=Je){const un=Math.min(zt+Je-1,y);Ah(Le,zt,un,Ie,this.compareMinY);for(let tr=zt;un>=tr;tr+=Ie)re.children.push(this._build(Le,tr,Math.min(tr+Ie-1,un),A-1))}return es(re,this.toBBox),re}_chooseSubtree(Le,f,y,A){for(;A.push(f),!f.leaf&&A.length-1!==y;){let de,Ie=1/0,Je=1/0;for(let zt=0;f.children.length>zt;zt++){const un=f.children[zt],tr=Jl(un),Cr=(Math.max((re=un).maxX,(j=Le).maxX)-Math.min(re.minX,j.minX))*(Math.max(re.maxY,j.maxY)-Math.min(re.minY,j.minY))-tr;Je>Cr?(Je=Cr,Ie=Ie>tr?tr:Ie,de=un):Cr===Je&&Ie>tr&&(Ie=tr,de=un)}f=de||f.children[0]}var j,re;return f}_insert(Le,f,y){const A=y?Le:this.toBBox(Le),j=[],re=this._chooseSubtree(A,this.data,f,j);for(re.children.push(Le),Qs(re,A);f>=0&&j[f].children.length>this._maxEntries;)this._split(j,f),f--;this._adjustParentBBoxes(A,j,f)}_split(Le,f){const y=Le[f],A=y.children.length,j=this._minEntries;this._chooseSplitAxis(y,j,A);const re=this._chooseSplitIndex(y,j,A),de=Rc(y.children.splice(re,y.children.length-re));de.height=y.height,de.leaf=y.leaf,es(y,this.toBBox),es(de,this.toBBox),f?Le[f-1].children.push(de):this._splitRoot(y,de)}_splitRoot(Le,f){this.data=Rc([Le,f]),this.data.height=Le.height+1,this.data.leaf=!1,es(this.data,this.toBBox)}_chooseSplitIndex(Le,f,y){let A,j=1/0,re=1/0;for(let de=f;y-f>=de;de++){const Ie=Is(Le,0,de,this.toBBox),Je=Is(Le,de,y,this.toBBox),zt=Tu(Ie,Je),un=Jl(Ie)+Jl(Je);j>zt?(j=zt,A=de,re=re>un?un:re):zt===j&&re>un&&(re=un,A=de)}return A||y-f}_chooseSplitAxis(Le,f,y){const A=Le.leaf?this.compareMinX:dl,j=Le.leaf?this.compareMinY:uu,re=this._allDistMargin(Le,f,y,A);this._allDistMargin(Le,f,y,j)>re&&Le.children.sort(A)}_allDistMargin(Le,f,y,A){Le.children.sort(A);const j=this.toBBox,re=Is(Le,0,f,j),de=Is(Le,y-f,y,j);let Ie=xu(re)+xu(de);for(let Je=f;y-f>Je;Je++){const zt=Le.children[Je];Qs(re,Le.leaf?j(zt):zt),Ie+=xu(re)}for(let Je=y-f-1;Je>=f;Je--){const zt=Le.children[Je];Qs(de,Le.leaf?j(zt):zt),Ie+=xu(de)}return Ie}_adjustParentBBoxes(Le,f,y){for(let A=y;A>=0;A--)Qs(f[A],Le)}_condense(Le){for(let f,y=Le.length-1;y>=0;y--)Le[y].children.length===0?y>0?(f=Le[y-1].children,f.splice(f.indexOf(Le[y]),1)):this.clear():es(Le[y],this.toBBox)}}});function ld(Le,f){return f>Le?-1:Le>f?1:0}var ph=Object.freeze({__proto__:null,default:class{constructor(Le=[],f=ld){if(this.data=Le,this.length=this.data.length,this.compare=f,this.length>0)for(let y=(this.length>>1)-1;y>=0;y--)this._down(y)}push(Le){this.data.push(Le),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Le=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),Le}peek(){return this.data[0]}_up(Le){const{data:f,compare:y}=this,A=f[Le];for(;Le>0;){const j=Le-1>>1,re=f[j];if(y(A,re)>=0)break;f[Le]=re,Le=j}f[Le]=A}_down(Le){const{data:f,compare:y}=this,A=this.length>>1,j=f[Le];for(;A>Le;){let re=1+(Le<<1),de=f[re];const Ie=re+1;if(this.length>Ie&&0>y(f[Ie],de)&&(re=Ie,de=f[Ie]),y(de,j)>=0)break;f[Le]=de,Le=re}f[Le]=j}}}),lc=function(Le,f,y,A){var j=Le[0],re=Le[1],de=!1;y===void 0&&(y=0),A===void 0&&(A=f.length);for(var Ie=(A-y)/2,Je=0,zt=Ie-1;Ie>Je;zt=Je++){var un=f[y+2*Je+0],tr=f[y+2*Je+1],Cr=f[y+2*zt+1];tr>re!=Cr>re&&(f[y+2*zt+0]-un)*(re-tr)/(Cr-tr)+un>j&&(de=!de)}return de},xc=function(Le,f,y,A){var j=Le[0],re=Le[1],de=!1;y===void 0&&(y=0),A===void 0&&(A=f.length);for(var Ie=A-y,Je=0,zt=Ie-1;Ie>Je;zt=Je++){var un=f[Je+y][0],tr=f[Je+y][1],Cr=f[zt+y][1];tr>re!=Cr>re&&(f[zt+y][0]-un)*(re-tr)/(Cr-tr)+un>j&&(de=!de)}return de},Hh=function(Le,f,y,A){return f.length>0&&Array.isArray(f[0])?xc(Le,f,y,A):lc(Le,f,y,A)},xh=lc;Hh.nested=xc,Hh.flat=xh;var Cd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:typeof self!="undefined"?self:{};function md(Le,f,y){return Le(y={path:f,exports:{},require:function(A,j){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},y.exports),y.exports}function Bd(Le){if(Le.__esModule)return Le;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Le).forEach(function(y){var A=Object.getOwnPropertyDescriptor(Le,y);Object.defineProperty(f,y,A.get?A:{enumerable:!0,get:function(){return Le[y]}})}),f}var zd=md(function(Le,f){(function(y){const j=33306690738754706e-32;function re(Io,Ao,Xo,Ro,po){let Gs,Oa,yl,cu,Fu=Ao[0],Eu=Ro[0],qc=0,vu=0;Eu>Fu==Eu>-Fu?(Gs=Fu,Fu=Ao[++qc]):(Gs=Eu,Eu=Ro[++vu]);let kc=0;if(Io>qc&&Xo>vu)for(Eu>Fu==Eu>-Fu?(yl=Gs-((Oa=Fu+Gs)-Fu),Fu=Ao[++qc]):(yl=Gs-((Oa=Eu+Gs)-Eu),Eu=Ro[++vu]),Gs=Oa,yl!==0&&(po[kc++]=yl);Io>qc&&Xo>vu;)Eu>Fu==Eu>-Fu?(yl=Gs-((Oa=Gs+Fu)-(cu=Oa-Gs))+(Fu-cu),Fu=Ao[++qc]):(yl=Gs-((Oa=Gs+Eu)-(cu=Oa-Gs))+(Eu-cu),Eu=Ro[++vu]),Gs=Oa,yl!==0&&(po[kc++]=yl);for(;Io>qc;)yl=Gs-((Oa=Gs+Fu)-(cu=Oa-Gs))+(Fu-cu),Fu=Ao[++qc],Gs=Oa,yl!==0&&(po[kc++]=yl);for(;Xo>vu;)yl=Gs-((Oa=Gs+Eu)-(cu=Oa-Gs))+(Eu-cu),Eu=Ro[++vu],Gs=Oa,yl!==0&&(po[kc++]=yl);return Gs===0&&kc!==0||(po[kc++]=Gs),kc}function de(Io){return new Float64Array(Io)}const Ie=33306690738754716e-32,Je=22204460492503146e-32,zt=11093356479670487e-47,un=de(4),tr=de(8),Cr=de(12),xi=de(16),Li=de(4);y.orient2d=function(Io,Ao,Xo,Ro,po,Gs){const Oa=(Ao-Gs)*(Xo-po),yl=(Io-po)*(Ro-Gs),cu=Oa-yl;if(Oa===0||yl===0||Oa>0!=yl>0)return cu;const Fu=Math.abs(Oa+yl);return Ie*Fu>Math.abs(cu)?-function(Eu,qc,vu,kc,On,lr,Ur){let di,uo,Ys,qa,Fs,il,iu,Ls,Cc,qh,Ch,fh,Jh,rp,Tp,gd,Pd,ss;const Ll=Eu-On,rf=vu-On,of=qc-lr,gf=kc-lr;Fs=(Tp=(Ls=Ll-(iu=(il=134217729*Ll)-(il-Ll)))*(qh=gf-(Cc=(il=134217729*gf)-(il-gf)))-((rp=Ll*gf)-iu*Cc-Ls*Cc-iu*qh))-(Ch=Tp-(Pd=(Ls=of-(iu=(il=134217729*of)-(il-of)))*(qh=rf-(Cc=(il=134217729*rf)-(il-rf)))-((gd=of*rf)-iu*Cc-Ls*Cc-iu*qh))),un[0]=Tp-(Ch+Fs)+(Fs-Pd),Fs=(Jh=rp-((fh=rp+Ch)-(Fs=fh-rp))+(Ch-Fs))-(Ch=Jh-gd),un[1]=Jh-(Ch+Fs)+(Fs-gd),Fs=(ss=fh+Ch)-fh,un[2]=fh-(ss-Fs)+(Ch-Fs),un[3]=ss;let gg=function(Fc,kh){let H=kh[0];for(let F=1;Fc>F;F++)H+=kh[F];return H}(4,un),mf=Je*Ur;if(gg>=mf||-gg>=mf||(di=Eu-(Ll+(Fs=Eu-Ll))+(Fs-On),Ys=vu-(rf+(Fs=vu-rf))+(Fs-On),uo=qc-(of+(Fs=qc-of))+(Fs-lr),qa=kc-(gf+(Fs=kc-gf))+(Fs-lr),di===0&&uo===0&&Ys===0&&qa===0)||(mf=zt*Ur+j*Math.abs(gg),(gg+=Ll*qa+gf*di-(of*Ys+rf*uo))>=mf||-gg>=mf))return gg;Fs=(Tp=(Ls=di-(iu=(il=134217729*di)-(il-di)))*(qh=gf-(Cc=(il=134217729*gf)-(il-gf)))-((rp=di*gf)-iu*Cc-Ls*Cc-iu*qh))-(Ch=Tp-(Pd=(Ls=uo-(iu=(il=134217729*uo)-(il-uo)))*(qh=rf-(Cc=(il=134217729*rf)-(il-rf)))-((gd=uo*rf)-iu*Cc-Ls*Cc-iu*qh))),Li[0]=Tp-(Ch+Fs)+(Fs-Pd),Fs=(Jh=rp-((fh=rp+Ch)-(Fs=fh-rp))+(Ch-Fs))-(Ch=Jh-gd),Li[1]=Jh-(Ch+Fs)+(Fs-gd),Fs=(ss=fh+Ch)-fh,Li[2]=fh-(ss-Fs)+(Ch-Fs),Li[3]=ss;const au=re(4,un,4,Li,tr);Fs=(Tp=(Ls=Ll-(iu=(il=134217729*Ll)-(il-Ll)))*(qh=qa-(Cc=(il=134217729*qa)-(il-qa)))-((rp=Ll*qa)-iu*Cc-Ls*Cc-iu*qh))-(Ch=Tp-(Pd=(Ls=of-(iu=(il=134217729*of)-(il-of)))*(qh=Ys-(Cc=(il=134217729*Ys)-(il-Ys)))-((gd=of*Ys)-iu*Cc-Ls*Cc-iu*qh))),Li[0]=Tp-(Ch+Fs)+(Fs-Pd),Fs=(Jh=rp-((fh=rp+Ch)-(Fs=fh-rp))+(Ch-Fs))-(Ch=Jh-gd),Li[1]=Jh-(Ch+Fs)+(Fs-gd),Fs=(ss=fh+Ch)-fh,Li[2]=fh-(ss-Fs)+(Ch-Fs),Li[3]=ss;const vh=re(au,tr,4,Li,Cr);Fs=(Tp=(Ls=di-(iu=(il=134217729*di)-(il-di)))*(qh=qa-(Cc=(il=134217729*qa)-(il-qa)))-((rp=di*qa)-iu*Cc-Ls*Cc-iu*qh))-(Ch=Tp-(Pd=(Ls=uo-(iu=(il=134217729*uo)-(il-uo)))*(qh=Ys-(Cc=(il=134217729*Ys)-(il-Ys)))-((gd=uo*Ys)-iu*Cc-Ls*Cc-iu*qh))),Li[0]=Tp-(Ch+Fs)+(Fs-Pd),Fs=(Jh=rp-((fh=rp+Ch)-(Fs=fh-rp))+(Ch-Fs))-(Ch=Jh-gd),Li[1]=Jh-(Ch+Fs)+(Fs-gd),Fs=(ss=fh+Ch)-fh,Li[2]=fh-(ss-Fs)+(Ch-Fs),Li[3]=ss;const Kd=re(vh,Cr,4,Li,xi);return xi[Kd-1]}(Io,Ao,Xo,Ro,po,Gs,Fu):cu},y.orient2dfast=function(Io,Ao,Xo,Ro,po,Gs){return(Ao-Gs)*(Xo-po)-(Io-po)*(Ro-Gs)},Object.defineProperty(y,"__esModule",{value:!0})})(f)}),Dh=Bd(Td),gh=Bd(ph),ap=zd.orient2d;gh.default&&(gh=gh.default);var pd=Nu;function Nu(Le,f,y){f=Math.max(0,f===void 0?2:f),y=y||0;var A=function(Ro){for(var po=Ro[0],Gs=Ro[0],Oa=Ro[0],yl=Ro[0],cu=0;Ro.length>cu;cu++){var Fu=Ro[cu];po[0]>Fu[0]&&(po=Fu),Fu[0]>Oa[0]&&(Oa=Fu),Gs[1]>Fu[1]&&(Gs=Fu),Fu[1]>yl[1]&&(yl=Fu)}var Eu=[po,Gs,Oa,yl],qc=Eu.slice();for(cu=0;Ro.length>cu;cu++)Hh(Ro[cu],Eu)||qc.push(Ro[cu]);return function(vu){vu.sort(gl);for(var kc=[],On=0;vu.length>On;On++){for(;kc.length>=2&&0>=ep(kc[kc.length-2],kc[kc.length-1],vu[On]);)kc.pop();kc.push(vu[On])}for(var lr=[],Ur=vu.length-1;Ur>=0;Ur--){for(;lr.length>=2&&0>=ep(lr[lr.length-2],lr[lr.length-1],vu[Ur]);)lr.pop();lr.push(vu[Ur])}return lr.pop(),kc.pop(),kc.concat(lr)}(qc)}(Le),j=new Dh(16);j.toBBox=function(Ro){return{minX:Ro[0],minY:Ro[1],maxX:Ro[0],maxY:Ro[1]}},j.compareMinX=function(Ro,po){return Ro[0]-po[0]},j.compareMinY=function(Ro,po){return Ro[1]-po[1]},j.load(Le);for(var re,de=[],Ie=0;A.length>Ie;Ie++){var Je=A[Ie];j.remove(Je),re=Ad(Je,re),de.push(re)}var zt=new Dh(16);for(Ie=0;de.length>Ie;Ie++)zt.insert(tp(de[Ie]));for(var un=f*f,tr=y*y;de.length;){var Cr=de.shift(),xi=Cr.p,Li=Cr.next.p,Io=jd(xi,Li);if(Io>=tr){var Ao=Io/un;(Je=oh(j,Cr.prev.p,xi,Li,Cr.next.next.p,Ao,zt))&&Math.min(jd(Je,xi),jd(Je,Li))<=Ao&&(de.push(Cr),de.push(Ad(Je,Cr)),j.remove(Je),zt.remove(Cr),zt.insert(tp(Cr)),zt.insert(tp(Cr.next)))}}Cr=re;var Xo=[];do Xo.push(Cr.p),Cr=Cr.next;while(Cr!==re);return Xo.push(Cr.p),Xo}function oh(Le,f,y,A,j,re,de){for(var Ie=new gh([],Ud),Je=Le.data;Je;){for(var zt=0;Je.children.length>zt;zt++){var un=Je.children[zt],tr=Je.leaf?Su(un,y,A):uf(y,A,un);reCr.dist&&Io>Cr.dist&&Qf(y,xi,de)&&Qf(A,xi,de))return xi}(Je=Ie.pop())&&(Je=Je.node)}return null}function Ud(Le,f){return Le.dist-f.dist}function uf(Le,f,y){if(Of(Le,y)||Of(f,y))return 0;var A=Ih(Le[0],Le[1],f[0],f[1],y.minX,y.minY,y.maxX,y.minY);if(A===0)return 0;var j=Ih(Le[0],Le[1],f[0],f[1],y.minX,y.minY,y.minX,y.maxY);if(j===0)return 0;var re=Ih(Le[0],Le[1],f[0],f[1],y.maxX,y.minY,y.maxX,y.maxY);if(re===0)return 0;var de=Ih(Le[0],Le[1],f[0],f[1],y.minX,y.maxY,y.maxX,y.maxY);return de===0?0:Math.min(A,j,re,de)}function Of(Le,f){return!(f.minX>Le[0]||Le[0]>f.maxX||f.minY>Le[1]||Le[1]>f.maxY)}function Qf(Le,f,y){for(var A,j,re,de,Ie=y.search({minX:Math.min(Le[0],f[0]),minY:Math.min(Le[1],f[1]),maxX:Math.max(Le[0],f[0]),maxY:Math.max(Le[1],f[1])}),Je=0;Ie.length>Je;Je++)if(j=Ie[Je].next.p,re=Le,(A=Ie[Je].p)!==(de=f)&&j!==re&&ep(A,j,re)>0!=ep(A,j,de)>0&&ep(re,de,A)>0!=ep(re,de,j)>0)return!1;return!0}function ep(Le,f,y){return ap(Le[0],Le[1],f[0],f[1],y[0],y[1])}function tp(Le){var f=Le.p,y=Le.next.p;return Le.minX=Math.min(f[0],y[0]),Le.minY=Math.min(f[1],y[1]),Le.maxX=Math.max(f[0],y[0]),Le.maxY=Math.max(f[1],y[1]),Le}function Ad(Le,f){var y={p:Le,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return f?(y.next=f.next,y.prev=f,f.next.prev=y,f.next=y):(y.prev=y,y.next=y),y}function jd(Le,f){var y=Le[0]-f[0],A=Le[1]-f[1];return y*y+A*A}function Su(Le,f,y){var A=f[0],j=f[1],re=y[0]-A,de=y[1]-j;if(re!==0||de!==0){var Ie=((Le[0]-A)*re+(Le[1]-j)*de)/(re*re+de*de);Ie>1?(A=y[0],j=y[1]):Ie>0&&(A+=re*Ie,j+=de*Ie)}return(re=Le[0]-A)*re+(de=Le[1]-j)*de}function Ih(Le,f,y,A,j,re,de,Ie){var Je,zt,un,tr,Cr=y-Le,xi=A-f,Li=de-j,Io=Ie-re,Ao=Le-j,Xo=f-re,Ro=Cr*Cr+xi*xi,po=Cr*Li+xi*Io,Gs=Li*Li+Io*Io,Oa=Cr*Ao+xi*Xo,yl=Li*Ao+Io*Xo,cu=Ro*Gs-po*po,Fu=cu,Eu=cu;cu===0?(zt=0,Fu=1,tr=yl,Eu=Gs):(tr=Ro*yl-po*Oa,0>(zt=po*yl-Gs*Oa)?(zt=0,tr=yl,Eu=Gs):zt>Fu&&(zt=Fu,tr=yl+po,Eu=Gs)),0>tr?(tr=0,0>-Oa?zt=0:-Oa>Ro?zt=Fu:(zt=-Oa,Fu=Ro)):tr>Eu&&(tr=Eu,0>-Oa+po?zt=0:-Oa+po>Ro?zt=Fu:(zt=-Oa+po,Fu=Ro));var qc=(1-(un=tr===0?0:tr/Eu))*j+un*de-((1-(Je=zt===0?0:zt/Fu))*Le+Je*y),vu=(1-un)*re+un*Ie-((1-Je)*f+Je*A);return qc*qc+vu*vu}function gl(Le,f){return Le[0]===f[0]?Le[1]-f[1]:Le[0]-f[0]}function Lu(Le,f,y){y===void 0&&(y={});var A=Na(Le),j=Na(f),re=qu(j[1]-A[1]),de=qu(j[0]-A[0]),Ie=qu(A[1]),Je=qu(j[1]),zt=Math.pow(Math.sin(re/2),2)+Math.pow(Math.sin(de/2),2)*Math.cos(Ie)*Math.cos(Je);return Ac(2*Math.atan2(Math.sqrt(zt),Math.sqrt(1-zt)),y.units)}function xf(Le){return function(f,y){y===void 0&&(y={});var A=Number(f[0]),j=Number(f[1]),re=Number(f[2]),de=Number(f[3]);if(f.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Ie=[A,j];return io([[Ie,[re,j],[re,de],[A,de],Ie]],y.properties,{bbox:f,id:y.id})}(Va(Le))}function Nh(Le,f,y,A){A===void 0&&(A={});var j=Na(Le),re=qu(j[0]),de=qu(j[1]),Ie=qu(y),Je=vc(f,A.units),zt=Math.asin(Math.sin(de)*Math.cos(Je)+Math.cos(de)*Math.sin(Je)*Math.cos(Ie));return ds([ec(re+Math.atan2(Math.sin(Ie)*Math.sin(Je)*Math.cos(de),Math.cos(Je)-Math.sin(de)*Math.sin(zt))),ec(zt)],A.properties)}function Ba(Le,f,y){if(y===void 0&&(y={}),y.final===!0)return function(zt,un){var tr=Ba(un,zt);return tr=(tr+180)%360}(Le,f);var A=Na(Le),j=Na(f),re=qu(A[0]),de=qu(j[0]),Ie=qu(A[1]),Je=qu(j[1]);return ec(Math.atan2(Math.sin(de-re)*Math.cos(Je),Math.cos(Ie)*Math.sin(Je)-Math.sin(Ie)*Math.cos(Je)*Math.cos(de-re)))}function Mu(Le,f){f===void 0&&(f={});var y=Va(Le);return ds([(y[0]+y[2])/2,(y[1]+y[3])/2],f.properties,f)}function Zl(Le,f){f===void 0&&(f={});var y=0,A=0,j=0;return Zr(Le,function(re){y+=re[0],A+=re[1],j++},!0),ds([y/j,A/j],f.properties)}function Au(Le,f){switch(f===void 0&&(f={}),Pu(Le)){case"Point":return ds(Na(Le),f.properties);case"Polygon":var y=[];Zr(Le,function(po){y.push(po)});var A,j,re,de,Ie,Je,zt,un,tr=Zl(Le,{properties:f.properties}),Cr=tr.geometry.coordinates,xi=0,Li=0,Io=0,Ao=y.map(function(po){return[po[0]-Cr[0],po[1]-Cr[1]]});for(A=0;y.length-1>A;A++)Io+=un=(de=(j=Ao[A])[0])*(zt=(re=Ao[A+1])[1])-(Ie=re[0])*(Je=j[1]),xi+=(de+Ie)*un,Li+=(Je+zt)*un;if(Io===0)return tr;var Xo=1/(6*(.5*Io));return ds([Cr[0]+Xo*xi,Cr[1]+Xo*Li],f.properties);default:var Ro=function(po,Gs){Gs===void 0&&(Gs={}),Gs.concavity=Gs.concavity||1/0;var Oa=[];if(Zr(po,function(cu){Oa.push([cu[0],cu[1]])}),!Oa.length)return null;var yl=pd(Oa,Gs.concavity);return yl.length>3?io([yl]):null}(Le);return Ro?Au(Ro,{properties:f.properties}):Zl(Le,{properties:f.properties})}}function Wu(Le){if(!Le)throw Error("geojson is required");var f=[];return ra(Le,function(y){(function(A,j){var re=[],de=A.geometry;if(de!==null){switch(de.type){case"Polygon":re=Aa(de);break;case"LineString":re=[Aa(de)]}re.forEach(function(Ie){var Je=function(zt,un){var tr=[];return zt.reduce(function(Cr,xi){var Li,Io,Ao,Xo,Ro,po,Gs=Ko([Cr,xi],un);return Gs.bbox=[(Ro=(Io=xi)[0])>(Ao=(Li=Cr)[0])?Ao:Ro,(po=Io[1])>(Xo=Li[1])?Xo:po,Ao>Ro?Ao:Ro,Xo>po?Xo:po],tr.push(Gs),xi}),tr}(Ie,A.properties);Je.forEach(function(zt){zt.id=j.length,j.push(zt)})})}})(y,f)}),As(f)}pd.default=Nu;function Qh(Le,f,y){if(!y)return f.indexOf(Le);for(let A=0;f.length>A;A++)if(y(Le,f[A]))return A;return-1}function hd(Le,f){Bh(Le,0,Le.children.length,f,Le)}function Bh(Le,f,y,A,j){j||(j=Tf(null)),j.minX=1/0,j.minY=1/0,j.maxX=-1/0,j.maxY=-1/0;for(let re=f;y>re;re++){const de=Le.children[re];hf(j,Le.leaf?A(de):de)}return j}function hf(Le,f){return Le.minX=Math.min(Le.minX,f.minX),Le.minY=Math.min(Le.minY,f.minY),Le.maxX=Math.max(Le.maxX,f.maxX),Le.maxY=Math.max(Le.maxY,f.maxY),Le}function Rf(Le,f){return Le.minX-f.minX}function Yd(Le,f){return Le.minY-f.minY}function If(Le){return(Le.maxX-Le.minX)*(Le.maxY-Le.minY)}function tf(Le){return Le.maxX-Le.minX+(Le.maxY-Le.minY)}function hp(Le,f){const y=Math.max(Le.minX,f.minX),A=Math.max(Le.minY,f.minY),j=Math.min(Le.maxX,f.maxX),re=Math.min(Le.maxY,f.maxY);return Math.max(0,j-y)*Math.max(0,re-A)}function od(Le,f){return!(Le.minX>f.minX||Le.minY>f.minY||f.maxX>Le.maxX||f.maxY>Le.maxY)}function wh(Le,f){return!(f.minX>Le.maxX||f.minY>Le.maxY||Le.minX>f.maxX||Le.minY>f.maxY)}function Tf(Le){return{children:Le,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Zd(Le,f,y,A,j){const re=[f,y];for(;re.length;){if(A>=(y=re.pop())-(f=re.pop()))continue;const de=f+Math.ceil((y-f)/A/2)*A;Gl(Le,de,f,y,j),re.push(f,de,de,y)}}var Wc=Object.freeze({__proto__:null,default:class{constructor(Le=9){this._maxEntries=Math.max(4,Le),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Le){let f=this.data;const y=[];if(!wh(Le,f))return y;const A=this.toBBox,j=[];for(;f;){for(let re=0;f.children.length>re;re++){const de=f.children[re],Ie=f.leaf?A(de):de;wh(Le,Ie)&&(f.leaf?y.push(de):od(Le,Ie)?this._all(de,y):j.push(de))}f=j.pop()}return y}collides(Le){let f=this.data;if(!wh(Le,f))return!1;const y=[];for(;f;){for(let A=0;f.children.length>A;A++){const j=f.children[A],re=f.leaf?this.toBBox(j):j;if(wh(Le,re)){if(f.leaf||od(Le,re))return!0;y.push(j)}}f=y.pop()}return!1}load(Le){if(!Le||!Le.length)return this;if(this._minEntries>Le.length){for(let y=0;Le.length>y;y++)this.insert(Le[y]);return this}let f=this._build(Le.slice(),0,Le.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const y=this.data;this.data=f,f=y}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(Le){return Le&&this._insert(Le,this.data.height-1),this}clear(){return this.data=Tf([]),this}remove(Le,f){if(!Le)return this;let y=this.data;const A=this.toBBox(Le),j=[],re=[];let de,Ie,Je;for(;y||j.length;){if(y||(y=j.pop(),Ie=j[j.length-1],de=re.pop(),Je=!0),y.leaf){const zt=Qh(Le,y.children,f);if(zt!==-1)return y.children.splice(zt,1),j.push(y),this._condense(j),this}Je||y.leaf||!od(y,A)?Ie?(de++,y=Ie.children[de],Je=!1):y=null:(j.push(y),re.push(de),de=0,Ie=y,y=y.children[0])}return this}toBBox(Le){return Le}compareMinX(Le,f){return Le.minX-f.minX}compareMinY(Le,f){return Le.minY-f.minY}toJSON(){return this.data}fromJSON(Le){return this.data=Le,this}_all(Le,f){const y=[];for(;Le;)Le.leaf?f.push(...Le.children):y.push(...Le.children),Le=y.pop();return f}_build(Le,f,y,A){const j=y-f+1;let re,de=this._maxEntries;if(de>=j)return re=Tf(Le.slice(f,y+1)),hd(re,this.toBBox),re;A||(de=Math.ceil(j/Math.pow(de,(A=Math.ceil(Math.log(j)/Math.log(de)))-1))),re=Tf([]),re.leaf=!1,re.height=A;const Ie=Math.ceil(j/de),Je=Ie*Math.ceil(Math.sqrt(de));Zd(Le,f,y,Je,this.compareMinX);for(let zt=f;y>=zt;zt+=Je){const un=Math.min(zt+Je-1,y);Zd(Le,zt,un,Ie,this.compareMinY);for(let tr=zt;un>=tr;tr+=Ie)re.children.push(this._build(Le,tr,Math.min(tr+Ie-1,un),A-1))}return hd(re,this.toBBox),re}_chooseSubtree(Le,f,y,A){for(;A.push(f),!f.leaf&&A.length-1!==y;){let de,Ie=1/0,Je=1/0;for(let zt=0;f.children.length>zt;zt++){const un=f.children[zt],tr=If(un),Cr=(Math.max((re=un).maxX,(j=Le).maxX)-Math.min(re.minX,j.minX))*(Math.max(re.maxY,j.maxY)-Math.min(re.minY,j.minY))-tr;Je>Cr?(Je=Cr,Ie=Ie>tr?tr:Ie,de=un):Cr===Je&&Ie>tr&&(Ie=tr,de=un)}f=de||f.children[0]}var j,re;return f}_insert(Le,f,y){const A=y?Le:this.toBBox(Le),j=[],re=this._chooseSubtree(A,this.data,f,j);for(re.children.push(Le),hf(re,A);f>=0&&j[f].children.length>this._maxEntries;)this._split(j,f),f--;this._adjustParentBBoxes(A,j,f)}_split(Le,f){const y=Le[f],A=y.children.length,j=this._minEntries;this._chooseSplitAxis(y,j,A);const re=this._chooseSplitIndex(y,j,A),de=Tf(y.children.splice(re,y.children.length-re));de.height=y.height,de.leaf=y.leaf,hd(y,this.toBBox),hd(de,this.toBBox),f?Le[f-1].children.push(de):this._splitRoot(y,de)}_splitRoot(Le,f){this.data=Tf([Le,f]),this.data.height=Le.height+1,this.data.leaf=!1,hd(this.data,this.toBBox)}_chooseSplitIndex(Le,f,y){let A,j=1/0,re=1/0;for(let de=f;y-f>=de;de++){const Ie=Bh(Le,0,de,this.toBBox),Je=Bh(Le,de,y,this.toBBox),zt=hp(Ie,Je),un=If(Ie)+If(Je);j>zt?(j=zt,A=de,re=re>un?un:re):zt===j&&re>un&&(re=un,A=de)}return A||y-f}_chooseSplitAxis(Le,f,y){const A=Le.leaf?this.compareMinX:Rf,j=Le.leaf?this.compareMinY:Yd,re=this._allDistMargin(Le,f,y,A);this._allDistMargin(Le,f,y,j)>re&&Le.children.sort(A)}_allDistMargin(Le,f,y,A){Le.children.sort(A);const j=this.toBBox,re=Bh(Le,0,f,j),de=Bh(Le,y-f,y,j);let Ie=tf(re)+tf(de);for(let Je=f;y-f>Je;Je++){const zt=Le.children[Je];hf(re,Le.leaf?j(zt):zt),Ie+=tf(re)}for(let Je=y-f-1;Je>=f;Je--){const zt=Le.children[Je];hf(de,Le.leaf?j(zt):zt),Ie+=tf(de)}return Ie}_adjustParentBBoxes(Le,f,y){for(let A=y;A>=0;A--)hf(f[A],Le)}_condense(Le){for(let f,y=Le.length-1;y>=0;y--)Le[y].children.length===0?y>0?(f=Le[y-1].children,f.splice(f.indexOf(Le[y]),1)):this.clear():hd(Le[y],this.toBBox)}}}),Gc=Bd(Wc),vd=Bd(ur),Il=Bd(kl),gs=Bd(Xu).default,_c=Il.featureEach,Wi=vd.featureCollection;function fg(Le){var f=new Gc(Le);return f.insert=function(y){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:gs(y),Gc.prototype.insert.call(this,y)},f.load=function(y){var A=[];return Array.isArray(y)?y.forEach(function(j){if(j.type!=="Feature")throw Error("invalid features");j.bbox=j.bbox?j.bbox:gs(j),A.push(j)}):_c(y,function(j){if(j.type!=="Feature")throw Error("invalid features");j.bbox=j.bbox?j.bbox:gs(j),A.push(j)}),Gc.prototype.load.call(this,A)},f.remove=function(y,A){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:gs(y),Gc.prototype.remove.call(this,y,A)},f.clear=function(){return Gc.prototype.clear.call(this)},f.search=function(y){var A=Gc.prototype.search.call(this,this.toBBox(y));return Wi(A)},f.collides=function(y){return Gc.prototype.collides.call(this,this.toBBox(y))},f.all=function(){var y=Gc.prototype.all.call(this);return Wi(y)},f.toJSON=function(){return Gc.prototype.toJSON.call(this)},f.fromJSON=function(y){return Gc.prototype.fromJSON.call(this,y)},f.toBBox=function(y){var A;if(y.bbox)A=y.bbox;else if(Array.isArray(y)&&y.length===4)A=y;else if(Array.isArray(y)&&y.length===6)A=[y[0],y[1],y[3],y[4]];else if(y.type==="Feature")A=gs(y);else{if(y.type!=="FeatureCollection")throw Error("invalid geojson");A=gs(y)}return{minX:A[0],minY:A[1],maxX:A[2],maxY:A[3]}},f}var uc=fg;function nh(Le,f){var y={},A=[];if(Le.type==="LineString"&&(Le=vl(Le)),f.type==="LineString"&&(f=vl(f)),Le.type==="Feature"&&f.type==="Feature"&&Le.geometry!==null&&f.geometry!==null&&Le.geometry.type==="LineString"&&f.geometry.type==="LineString"&&Le.geometry.coordinates.length===2&&f.geometry.coordinates.length===2){var j=Dp(Le,f);return j&&A.push(j),As(A)}var re=uc();return re.load(Wu(f)),_i(Wu(Le),function(de){_i(re.search(de),function(Ie){var Je=Dp(de,Ie);if(Je){var zt=Aa(Je).join(",");y[zt]||(y[zt]=!0,A.push(Je))}})}),As(A)}function Dp(Le,f){var y=Aa(Le),A=Aa(f);if(y.length!==2)throw Error(" line1 must only contain 2 coordinates");if(A.length!==2)throw Error(" line2 must only contain 2 coordinates");var j=y[0][0],re=y[0][1],de=y[1][0],Ie=y[1][1],Je=A[0][0],zt=A[0][1],un=A[1][0],tr=A[1][1],Cr=(tr-zt)*(de-j)-(un-Je)*(Ie-re),xi=(un-Je)*(re-zt)-(tr-zt)*(j-Je),Li=(de-j)*(re-zt)-(Ie-re)*(j-Je);if(Cr===0)return null;var Io=xi/Cr,Ao=Li/Cr;return 0>Io||Io>1||0>Ao||Ao>1?null:ds([j+Io*(de-j),re+Io*(Ie-re)])}uc.default=fg;var qp=6378137;function Ng(Le){return hs(Le,function(f,y){return f+function(A){var j,re=0;switch(A.type){case"Polygon":return df(A.coordinates);case"MultiPolygon":for(j=0;A.coordinates.length>j;j++)re+=df(A.coordinates[j]);return re;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(y)},0)}function df(Le){var f=0;if(Le&&Le.length>0){f+=Math.abs(mp(Le[0]));for(var y=1;Le.length>y;y++)f-=Math.abs(mp(Le[y]))}return f}function mp(Le){var f,y,A,j,re,de,Ie=0,Je=Le.length;if(Je>2){for(de=0;Je>de;de++)de===Je-2?(A=Je-2,j=Je-1,re=0):de===Je-1?(A=Je-1,j=0,re=1):(A=de,j=de+1,re=de+2),f=Le[A],y=Le[j],Ie+=(Jp(Le[re][0])-Jp(f[0]))*Math.sin(Jp(y[1]));Ie=Ie*qp*qp/2}return Ie}function Jp(Le){return Le*Math.PI/180}function dp(Le,f){return f===void 0&&(f={}),ul(Le,function(y,A){var j=A.geometry.coordinates;return y+Lu(j[0],j[1],f)},0)}function Eg(Le,f){f===void 0&&(f={});var y=ll(Le);switch(f.properties||Le.type!=="Feature"||(f.properties=Le.properties),y.type){case"Polygon":return function(A,j){j===void 0&&(j={});var re=ll(A),de=re.coordinates,Ie=j.properties?j.properties:A.type==="Feature"?A.properties:{};return np(de,Ie)}(y,f);case"MultiPolygon":return function(A,j){j===void 0&&(j={});var re=ll(A),de=re.coordinates,Ie=j.properties?j.properties:A.type==="Feature"?A.properties:{},Je=[];return de.forEach(function(zt){Je.push(np(zt,Ie))}),As(Je)}(y,f);default:throw Error("invalid poly")}}function np(Le,f){return Le.length>1?ks(Le,f):Ko(Le[0],f)}function lp(Le){for(var f,y,A=Aa(Le),j=0,re=1;A.length>re;)f=y||A[0],j+=((y=A[re])[0]-f[0])*(y[1]+f[1]),re++;return j>0}var Ph=md(function(Le){var f=Object.prototype.hasOwnProperty,y="~";function A(){}function j(Je,zt,un){this.fn=Je,this.context=zt,this.once=un||!1}function re(Je,zt,un,tr,Cr){if(typeof un!="function")throw new TypeError("The listener must be a function");var xi=new j(un,tr||Je,Cr),Li=y?y+zt:zt;return Je._events[Li]?Je._events[Li].fn?Je._events[Li]=[Je._events[Li],xi]:Je._events[Li].push(xi):(Je._events[Li]=xi,Je._eventsCount++),Je}function de(Je,zt){--Je._eventsCount==0?Je._events=new A:delete Je._events[zt]}function Ie(){this._events=new A,this._eventsCount=0}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(y=!1)),Ie.prototype.eventNames=function(){var Je,zt,un=[];if(this._eventsCount===0)return un;for(zt in Je=this._events)f.call(Je,zt)&&un.push(y?zt.slice(1):zt);return Object.getOwnPropertySymbols?un.concat(Object.getOwnPropertySymbols(Je)):un},Ie.prototype.listeners=function(Je){var zt=this._events[y?y+Je:Je];if(!zt)return[];if(zt.fn)return[zt.fn];for(var un=0,tr=zt.length,Cr=Array(tr);tr>un;un++)Cr[un]=zt[un].fn;return Cr},Ie.prototype.listenerCount=function(Je){var zt=this._events[y?y+Je:Je];return zt?zt.fn?1:zt.length:0},Ie.prototype.emit=function(Je,zt,un,tr,Cr,xi){var Li=y?y+Je:Je;if(!this._events[Li])return!1;var Io,Ao,Xo=this._events[Li],Ro=arguments.length;if(Xo.fn){switch(Xo.once&&this.removeListener(Je,Xo.fn,void 0,!0),Ro){case 1:return Xo.fn.call(Xo.context),!0;case 2:return Xo.fn.call(Xo.context,zt),!0;case 3:return Xo.fn.call(Xo.context,zt,un),!0;case 4:return Xo.fn.call(Xo.context,zt,un,tr),!0;case 5:return Xo.fn.call(Xo.context,zt,un,tr,Cr),!0;case 6:return Xo.fn.call(Xo.context,zt,un,tr,Cr,xi),!0}for(Ao=1,Io=Array(Ro-1);Ro>Ao;Ao++)Io[Ao-1]=arguments[Ao];Xo.fn.apply(Xo.context,Io)}else{var po,Gs=Xo.length;for(Ao=0;Gs>Ao;Ao++)switch(Xo[Ao].once&&this.removeListener(Je,Xo[Ao].fn,void 0,!0),Ro){case 1:Xo[Ao].fn.call(Xo[Ao].context);break;case 2:Xo[Ao].fn.call(Xo[Ao].context,zt);break;case 3:Xo[Ao].fn.call(Xo[Ao].context,zt,un);break;case 4:Xo[Ao].fn.call(Xo[Ao].context,zt,un,tr);break;default:if(!Io)for(po=1,Io=Array(Ro-1);Ro>po;po++)Io[po-1]=arguments[po];Xo[Ao].fn.apply(Xo[Ao].context,Io)}}return!0},Ie.prototype.on=function(Je,zt,un){return re(this,Je,zt,un,!1)},Ie.prototype.once=function(Je,zt,un){return re(this,Je,zt,un,!0)},Ie.prototype.removeListener=function(Je,zt,un,tr){var Cr=y?y+Je:Je;if(!this._events[Cr])return this;if(!zt)return de(this,Cr),this;var xi=this._events[Cr];if(xi.fn)xi.fn!==zt||tr&&!xi.once||un&&xi.context!==un||de(this,Cr);else{for(var Li=0,Io=[],Ao=xi.length;Ao>Li;Li++)(xi[Li].fn!==zt||tr&&!xi[Li].once||un&&xi[Li].context!==un)&&Io.push(xi[Li]);Io.length?this._events[Cr]=Io.length===1?Io[0]:Io:de(this,Cr)}return this},Ie.prototype.removeAllListeners=function(Je){var zt;return Je?this._events[zt=y?y+Je:Je]&&de(this,zt):(this._events=new A,this._eventsCount=0),this},Ie.prototype.off=Ie.prototype.removeListener,Ie.prototype.addListener=Ie.prototype.on,Ie.prefixed=y,Ie.EventEmitter=Ie,Le.exports=Ie}),Ip=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re,de=j.style;return vn(this,y),(re=f.call(this)).scene=void 0,re.style=void 0,re.layers=void 0,re.data=[],re.scene=A,re.style=de,re.layers=re.initLayers(),re.layers.forEach(function(Ie){A.addLayer(Ie)}),de.callback instanceof Function&&de.callback(re.layers),re}return Gr(y,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(A){A.show()})}},{key:"hide",value:function(){this.layers.forEach(function(A){A.hide()})}},{key:"setData",value:function(A){var j=zs(A).sort(function(re,de){return+re.properties.isActive-+de.properties.isActive});this.data=j,this.layers.forEach(function(re){re.setData(As(j))})}},{key:"destroy",value:function(){var A=this;this.layers.forEach(function(j){A.scene.removeLayer(j)})}}]),y}(Ph.EventEmitter),pg=function(Le){ko(y,Le);var f=Js(y);function y(){return vn(this,y),f.apply(this,arguments)}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.style,de=A.options;return[new R.LineLayer(de!=null?de:{}).source(As([])).size(j.size).color(j.color).shape("line").style(re)]}}]),y}(Ip),Wp=function(Le){var f=typeof Le;return Le!=null&&(f=="object"||f=="function")},ud=typeof Cd=="object"&&Cd&&Cd.Object===Object&&Cd,rg=typeof self=="object"&&self&&self.Object===Object&&self,Wh=ud||rg||Function("return this")(),wf=function(){return Wh.Date.now()},up=/\s/,Cu=function(Le){for(var f=Le.length;f--&&up.test(Le.charAt(f)););return f},kp=/^\s+/,Pp=function(Le){return Le&&Le.slice(0,Cu(Le)+1).replace(kp,"")},zf=Wh.Symbol,Th=Object.prototype,Mh=Th.hasOwnProperty,Lh=Th.toString,_h=zf?zf.toStringTag:void 0,ff=function(Le){var f=Mh.call(Le,_h),y=Le[_h];try{Le[_h]=void 0;var A=!0}catch(re){}var j=Lh.call(Le);return A&&(f?Le[_h]=y:delete Le[_h]),j},vp=Object.prototype.toString,ig=function(Le){return vp.call(Le)},mh=zf?zf.toStringTag:void 0,Sf=function(Le){return Le==null?Le===void 0?"[object Undefined]":"[object Null]":mh&&mh in Object(Le)?ff(Le):ig(Le)},Ld=function(Le){return Le!=null&&typeof Le=="object"},Dd=function(Le){return typeof Le=="symbol"||Ld(Le)&&Sf(Le)=="[object Symbol]"},Wf=/^[-+]0x[0-9a-f]+$/i,ah=/^0b[01]+$/i,Nc=/^0o[0-7]+$/i,Xh=parseInt,$d=function(Le){if(typeof Le=="number")return Le;if(Dd(Le))return NaN;if(Wp(Le)){var f=typeof Le.valueOf=="function"?Le.valueOf():Le;Le=Wp(f)?f+"":f}if(typeof Le!="string")return Le===0?Le:+Le;Le=Pp(Le);var y=ah.test(Le);return y||Nc.test(Le)?Xh(Le.slice(2),y?2:8):Wf.test(Le)?NaN:+Le},Vo=Math.max,P=Math.min,W=function(Le,f,y){var A,j,re,de,Ie,Je,zt=0,un=!1,tr=!1,Cr=!0;if(typeof Le!="function")throw new TypeError("Expected a function");function xi(Ro){var po=A,Gs=j;return A=j=void 0,zt=Ro,de=Le.apply(Gs,po)}function Li(Ro){var po=Ro-Je;return Je===void 0||po>=f||0>po||tr&&Ro-zt>=re}function Io(){var Ro=wf();if(Li(Ro))return Ao(Ro);Ie=setTimeout(Io,function(po){var Gs=f-(po-Je);return tr?P(Gs,re-(po-zt)):Gs}(Ro))}function Ao(Ro){return Ie=void 0,Cr&&A?xi(Ro):(A=j=void 0,de)}function Xo(){var Ro=wf(),po=Li(Ro);if(A=arguments,j=this,Je=Ro,po){if(Ie===void 0)return function(Gs){return zt=Gs,Ie=setTimeout(Io,f),un?xi(Gs):de}(Je);if(tr)return clearTimeout(Ie),Ie=setTimeout(Io,f),xi(Je)}return Ie===void 0&&(Ie=setTimeout(Io,f)),de}return f=$d(f)||0,Wp(y)&&(un=!!y.leading,re=(tr="maxWait"in y)?Vo($d(y.maxWait)||0,f):re,Cr="trailing"in y?!!y.trailing:Cr),Xo.cancel=function(){Ie!==void 0&&clearTimeout(Ie),zt=0,A=Je=j=Ie=void 0},Xo.flush=function(){return Ie===void 0?de:Ao(wf())},Xo},le=function(Le){ko(y,Le);var f=Js(y);function y(){var A;vn(this,y);for(var j=arguments.length,re=Array(j),de=0;j>de;de++)re[de]=arguments[de];return(A=f.call.apply(f,[this].concat(re))).onMouseMove=function(Ie){A.emit(v.RenderEvent.Mousemove,Ie)},A.onMouseOut=function(Ie){A.emit(v.RenderEvent.Mouseout,Ie)},A.onMouseDown=function(Ie){A.emit(v.RenderEvent.Dragstart,Ie)},A.onDragging=function(Ie){A.emit(v.RenderEvent.Dragging,Ie)},A.onDragEnd=W(function(Ie){A.emit(v.RenderEvent.Dragend,Ie)},0),A.onUnClick=function(Ie){A.emit(v.RenderEvent.UnClick,Ie)},A.enableHover=function(){var Ie,Je;A.disableHover(),(Ie=A.layers[0])===null||Ie===void 0||Ie.on(v.LayerEvent.Mousemove,A.onMouseMove),(Je=A.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,A.onMouseOut)},A.disableHover=function(){var Ie,Je;(Ie=A.layers[0])===null||Ie===void 0||Ie.off(v.LayerEvent.Mousemove,A.onMouseMove),(Je=A.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,A.onMouseOut)},A}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.hover,de=A.active,Ie=A.style,Je=A.options;return[new R.LineLayer(Je!=null?Je:{}).source(As([])).size("isHover*isActive",function(zt,un){return un?de.size:zt?re.size:j.size}).color("isHover*isActive",function(zt,un){return un?de.color:zt?re.color:j.color}).shape("line").style(Ie)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(Ip),ge=function(Le){ko(y,Le);var f=Js(y);function y(){var A;vn(this,y);for(var j=arguments.length,re=Array(j),de=0;j>de;de++)re[de]=arguments[de];return(A=f.call.apply(f,[this].concat(re))).onMouseMove=function(Ie){A.emit(v.RenderEvent.Mousemove,Ie)},A.onMouseOut=function(Ie){A.emit(v.RenderEvent.Mouseout,Ie)},A.onMouseDown=function(Ie){A.emit(v.RenderEvent.Click,Ie)},A}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.style,de=re===void 0?{}:re,Ie=A.options,Je=j.shape,zt=j.size,un=j.color;return[new R.PointLayer(Ie!=null?Ie:{}).source(As([])).size(zt).color(un).shape(Je).style(de)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var A,j;this.disableHover(),(A=this.layers[0])===null||A===void 0||A.on(v.LayerEvent.Mousemove,this.onMouseMove),(j=this.layers[0])===null||j===void 0||j.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var A,j;(A=this.layers[0])===null||A===void 0||A.off(v.LayerEvent.Mousemove,this.onMouseMove),(j=this.layers[0])===null||j===void 0||j.off(v.LayerEvent.Mouseout,this.onMouseOut)}}]),y}(Ip),rt=function(Le){ko(y,Le);var f=Js(y);function y(){var A;vn(this,y);for(var j=arguments.length,re=Array(j),de=0;j>de;de++)re[de]=arguments[de];return(A=f.call.apply(f,[this].concat(re))).onCreate=function(Ie){A.emit(v.RenderEvent.UnClick,Ie)},A.onMouseMove=function(Ie){A.emit(v.RenderEvent.Mousemove,Ie)},A.onMouseOut=function(Ie){A.emit(v.RenderEvent.Mouseout,Ie)},A.onMouseDown=function(Ie){A.emit(v.RenderEvent.Dragstart,Ie)},A.onDragging=function(Ie){A.emit(v.RenderEvent.Dragging,Ie)},A.onDragEnd=W(function(Ie){A.emit(v.RenderEvent.Dragend,Ie)},0),A.onClick=function(Ie){A.emit(v.RenderEvent.Click,Ie)},A.onContextmenu=function(Ie){A.emit(v.RenderEvent.Contextmenu,Ie)},A}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.hover,de=A.active,Ie=A.style,Je=Ie===void 0?{}:Ie,zt=A.options;return[new R.PointLayer(zt!=null?zt:{}).source(As([])).size("isHover*isActive",function(un,tr){return tr?de.size:un?re.size:j.size}).color("isHover*isActive",function(un,tr){return tr?de.color:un?re.color:j.color}).shape("isHover*isActive",function(un,tr){return tr?de.shape:un?re.shape:j.shape}).style(Je)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(v.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var A,j;this.disableHover(),(A=this.layers[0])===null||A===void 0||A.on(v.LayerEvent.Mousemove,this.onMouseMove),(j=this.layers[0])===null||j===void 0||j.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var A,j;(A=this.layers[0])===null||A===void 0||A.off(v.LayerEvent.Mousemove,this.onMouseMove),(j=this.layers[0])===null||j===void 0||j.off(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(v.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(v.LayerEvent.Contextmenu,this.onContextmenu)}}]),y}(Ip),pn=function(Le){ko(y,Le);var f=Js(y);function y(){var A;vn(this,y);for(var j=arguments.length,re=Array(j),de=0;j>de;de++)re[de]=arguments[de];return(A=f.call.apply(f,[this].concat(re))).onMouseMove=function(Ie){A.emit(v.RenderEvent.Mousemove,Ie)},A.onMouseOut=function(Ie){A.emit(v.RenderEvent.Mouseout,Ie)},A.onMouseDown=function(Ie){A.emit(v.RenderEvent.Dragstart,Ie)},A.onDragging=function(Ie){A.emit(v.RenderEvent.Dragging,Ie)},A.onDragEnd=W(function(Ie){A.emit(v.RenderEvent.Dragend,Ie)},0),A.onUnClick=function(Ie){A.emit(v.RenderEvent.UnClick,Ie)},A.enableHover=function(){var Ie,Je;A.disableHover(),(Ie=A.layers[0])===null||Ie===void 0||Ie.on(v.LayerEvent.Mousemove,A.onMouseMove),(Je=A.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,A.onMouseOut)},A.disableHover=function(){var Ie,Je;(Ie=A.layers[0])===null||Ie===void 0||Ie.off(v.LayerEvent.Mousemove,A.onMouseMove),(Je=A.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,A.onMouseOut)},A}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.hover,de=A.active,Ie=A.style,Je=A.options,zt=new R.PolygonLayer(Je!=null?Je:{});return zt.source(As([])).color("isHover*isActive",function(un,tr){return tr?de.color:un?re.color:j.color}).style(Ie),[zt]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(Ip),sr=function(Le){ko(y,Le);var f=Js(y);function y(A){var j;return vn(this,y),(j=f.call(this)).scene=void 0,j.previousClick=void 0,j.onDblClick=function(re){var de,Ie,Je=(de=(Ie=re.pixel)!==null&&Ie!==void 0?Ie:re.point)!==null&&de!==void 0?de:{},zt=Je.x,un=zt===void 0?0:zt,tr=Je.y,Cr=tr===void 0?0:tr,xi=Date.now();if(j.previousClick){var Li=j.previousClick,Io=Li.y;300>xi-Li.time&&5>Math.abs(un-Li.x)&&5>Math.abs(Cr-Io)&&j.emit(v.RenderEvent.DblClick,re)}j.previousClick={x:un,y:Cr,time:xi}},j.onMouseMove=function(re){j.emit(v.RenderEvent.Mousemove,re)},j.onMouseDown=function(re){j.emit(v.RenderEvent.Dragstart,re)},j.onDragging=function(re){j.emit(v.RenderEvent.Dragging,re)},j.onDragEnd=W(function(re){j.emit(v.RenderEvent.Dragend,re)},0),j.scene=A,j}return Gr(y,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(v.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onDblClick)}}]),y}(Ph),Ae=function(Le){ko(y,Le);var f=Js(y);function y(){return vn(this,y),f.apply(this,arguments)}return Gr(y,[{key:"initLayers",value:function(){var A=this.style,j=A.normal,re=A.active,de=A.style,Ie=de===void 0?{}:de,Je=A.options;return[new R.PointLayer(Je!=null?Je:{}).source(As([])).size("isActive",function(zt){return zt?re.size:j.size}).color("isActive",function(zt){return zt?re.color:j.color}).shape("text","text").style(Ie)]}}]),y}(Ip),D={point:rt,line:le,dashLine:pg,midPoint:ge,text:Ae,polygon:pn},ie="#1990FF",Ee="#ED9D48",Ne={blend:"normal",pickingBuffer:5},at={color:ie,shape:"circle",size:6},Gt={color:Ee,shape:"circle",size:6},rn={shape:"circle",size:6,color:Ee},Un={options:Ne,normal:at,hover:Et(Et({},at),{},{size:8}),active:Et(Et({},at),{},{size:8,color:Ee}),style:{stroke:"#ffffff",strokeWidth:2}},Ir={options:Ne,normal:Gt,hover:Et(Et({},Gt),{},{size:8}),active:Et(Et({},Gt),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},G={color:ie,size:12},J={point:Ir,line:{options:Ne,normal:{color:ie,size:2},hover:{color:ie,size:2},active:{color:Ee,size:2},style:{}},polygon:{options:Ne,normal:{color:ie},hover:{color:ie},active:{color:Ee},style:{opacity:.15}},midPoint:{options:Ne,normal:rn},dashLine:{options:Ne,normal:{color:Ee,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Ne,normal:G,active:Et(Et({},G),{},{color:Ee}),style:{fontWeight:"800",textOffset:[0,G.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},Q=function(Le,f){return Le===f||Le!=Le&&f!=f},ce=function(Le,f){for(var y=Le.length;y--;)if(Q(Le[y][0],f))return y;return-1},Ze=Array.prototype.splice,Ct=function(Le){var f=this.__data__,y=ce(f,Le);return y>=0&&(y==f.length-1?f.pop():Ze.call(f,y,1),--this.size,!0)},Mt=function(Le){var f=this.__data__,y=ce(f,Le);return 0>y?void 0:f[y][1]},yn=function(Le){return ce(this.__data__,Le)>-1},_r=function(Le,f){var y=this.__data__,A=ce(y,Le);return 0>A?(++this.size,y.push([Le,f])):y[A][1]=f,this};function Sn(Le){var f=-1,y=Le==null?0:Le.length;for(this.clear();++fA.length)return A.push([Le,f]),this.size=++y.size,this;y=this.__data__=new rh(A)}return y.set(Le,f),this.size=y.size,this};function Gh(Le){var f=this.__data__=new yi(Le);this.size=f.size}Gh.prototype.clear=Oi,Gh.prototype.delete=Ji,Gh.prototype.get=Lo,Gh.prototype.has=Qo,Gh.prototype.set=uh;var wc=Gh,Sd=function(Le,f){for(var y=-1,A=Le==null?0:Le.length;++y-1&&Le%1==0&&f>Le},Yg=function(Le){return typeof Le=="number"&&Le>-1&&Le%1==0&&9007199254740991>=Le},qf={};qf["[object Float32Array]"]=qf["[object Float64Array]"]=qf["[object Int8Array]"]=qf["[object Int16Array]"]=qf["[object Int32Array]"]=qf["[object Uint8Array]"]=qf["[object Uint8ClampedArray]"]=qf["[object Uint16Array]"]=qf["[object Uint32Array]"]=!0,qf["[object Arguments]"]=qf["[object Array]"]=qf["[object ArrayBuffer]"]=qf["[object Boolean]"]=qf["[object DataView]"]=qf["[object Date]"]=qf["[object Error]"]=qf["[object Function]"]=qf["[object Map]"]=qf["[object Number]"]=qf["[object Object]"]=qf["[object RegExp]"]=qf["[object Set]"]=qf["[object String]"]=qf["[object WeakMap]"]=!1;var yd=function(Le){return Ld(Le)&&Yg(Le.length)&&!!qf[Sf(Le)]},i0=function(Le){return function(f){return Le(f)}},Cm=md(function(Le,f){var y=f&&!f.nodeType&&f,A=y&&Le&&!Le.nodeType&&Le,j=A&&A.exports===y&&ud.process,re=function(){try{var de=A&&A.require&&A.require("util").types;return de||j&&j.binding&&j.binding("util")}catch(Ie){}}();Le.exports=re}),o0=Cm&&Cm.isTypedArray,qg=o0?i0(o0):yd,Qm=Object.prototype.hasOwnProperty,x0=function(Le,f){var y=Sp(Le),A=!y&&Hp(Le),j=!y&&!A&&qd(Le),re=!y&&!A&&!j&&qg(Le),de=y||A||j||re,Ie=de?Hg(Le.length,String):[],Je=Ie.length;for(var zt in Le)!f&&!Qm.call(Le,zt)||de&&(zt=="length"||j&&(zt=="offset"||zt=="parent")||re&&(zt=="buffer"||zt=="byteLength"||zt=="byteOffset")||Tg(zt,Je))||Ie.push(zt);return Ie},Am=Object.prototype,Jg=function(Le){var f=Le&&Le.constructor;return Le===(typeof f=="function"&&f.prototype||Am)},Qg=function(Le,f){return function(y){return Le(f(y))}},k0=Qg(Object.keys,Object),Fg=Object.prototype.hasOwnProperty,ym=function(Le){if(!Jg(Le))return k0(Le);var f=[];for(var y in Object(Le))Fg.call(Le,y)&&y!="constructor"&&f.push(y);return f},zg=function(Le){return Le!=null&&Yg(Le.length)&&!Wo(Le)},jm=function(Le){return zg(Le)?x0(Le):ym(Le)},Lg=function(Le,f){return Le&&Np(f,jm(f),Le)},sv=function(Le){var f=[];if(Le!=null)for(var y in Object(Le))f.push(y);return f},Zf=Object.prototype.hasOwnProperty,Ep=function(Le){if(!Wp(Le))return sv(Le);var f=Jg(Le),y=[];for(var A in Le)(A!="constructor"||!f&&Zf.call(Le,A))&&y.push(A);return y},pf=function(Le){return zg(Le)?x0(Le,!0):Ep(Le)},O0=function(Le,f){return Le&&Np(f,pf(f),Le)},N0=md(function(Le,f){var y=f&&!f.nodeType&&f,A=y&&Le&&!Le.nodeType&&Le,j=A&&A.exports===y?Wh.Buffer:void 0,re=j?j.allocUnsafe:void 0;Le.exports=function(de,Ie){if(Ie)return de.slice();var Je=de.length,zt=re?re(Je):new de.constructor(Je);return de.copy(zt),zt}}),hm=function(Le,f){var y=-1,A=Le.length;for(f||(f=Array(A));++yIe))return!1;var zt=re.get(Le),un=re.get(f);if(zt&&un)return zt==f&&un==Le;var tr=-1,Cr=!0,xi=2&y?new Us:void 0;for(re.set(Le,f),re.set(f,Le);++tr0){if(++f>=800)return arguments[0]}else f=0;return Le.apply(void 0,arguments)}},wu=Ql(td?function(Le,f){return td(Le,"toString",{configurable:!0,enumerable:!1,value:ha(f),writable:!0})}:xl),wa=function(Le,f){return wu(ws(Le,f,xl),Le+"")},eh=function(Le,f,y){if(!Wp(y))return!1;var A=typeof f;return!!(A=="number"?zg(y)&&Tg(f,y.length):A=="string"&&f in y)&&Q(y[f],Le)},Kl=function(Le){return wa(function(f,y){var A=-1,j=y.length,re=j>1?y[j-1]:void 0,de=j>2?y[2]:void 0;for(re=Le.length>3&&typeof re=="function"?(j--,re):void 0,de&&eh(y[0],y[1],de)&&(re=3>j?void 0:re,j=1),f=Object(f);++A":".","?":"/","|":"\\"},Je={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},zt=1;20>zt;++zt)re[111+zt]="f"+zt;for(zt=0;9>=zt;++zt)re[zt+96]=""+zt;Ao.prototype.bind=function(Xo,Ro,po){var Gs=this;return Gs._bindMultiple.call(Gs,Xo=Xo instanceof Array?Xo:[Xo],Ro,po),Gs},Ao.prototype.unbind=function(Xo,Ro){return this.bind.call(this,Xo,function(){},Ro)},Ao.prototype.trigger=function(Xo,Ro){var po=this;return po._directMap[Xo+":"+Ro]&&po._directMap[Xo+":"+Ro]({},Xo),po},Ao.prototype.reset=function(){var Xo=this;return Xo._callbacks={},Xo._directMap={},Xo},Ao.prototype.stopCallback=function(Xo,Ro){if((" "+Ro.className+" ").indexOf(" mousetrap ")>-1||Io(Ro,this.target))return!1;if("composedPath"in Xo&&typeof Xo.composedPath=="function"){var po=Xo.composedPath()[0];po!==Xo.target&&(Ro=po)}return Ro.tagName=="INPUT"||Ro.tagName=="SELECT"||Ro.tagName=="TEXTAREA"||Ro.isContentEditable},Ao.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Ao.addKeycodes=function(Xo){for(var Ro in Xo)Xo.hasOwnProperty(Ro)&&(re[Ro]=Xo[Ro]);j=null},Ao.init=function(){var Xo=Ao(y);for(var Ro in Xo)Ro.charAt(0)!=="_"&&(Ao[Ro]=function(po){return function(){return Xo[po].apply(Xo,arguments)}}(Ro))},Ao.init(),f.Mousetrap=Ao,Le.exports&&(Le.exports=Ao)}function un(Xo,Ro,po){Xo.addEventListener?Xo.addEventListener(Ro,po,!1):Xo.attachEvent("on"+Ro,po)}function tr(Xo){if(Xo.type=="keypress"){var Ro=String.fromCharCode(Xo.which);return Xo.shiftKey||(Ro=Ro.toLowerCase()),Ro}return re[Xo.which]?re[Xo.which]:de[Xo.which]?de[Xo.which]:String.fromCharCode(Xo.which).toLowerCase()}function Cr(Xo){return Xo=="shift"||Xo=="ctrl"||Xo=="alt"||Xo=="meta"}function xi(Xo,Ro,po){return po||(po=function(){if(!j)for(var Gs in j={},re)Gs>95&&112>Gs||re.hasOwnProperty(Gs)&&(j[re[Gs]]=Gs);return j}()[Xo]?"keydown":"keypress"),po=="keypress"&&Ro.length&&(po="keydown"),po}function Li(Xo,Ro){var po,Gs,Oa,yl=[];for(po=function(cu){return cu==="+"?["+"]:(cu=cu.replace(/\+{2}/g,"+plus")).split("+")}(Xo),Oa=0;po.length>Oa;++Oa)Je[Gs=po[Oa]]&&(Gs=Je[Gs]),Ro&&Ro!="keypress"&&Ie[Gs]&&(Gs=Ie[Gs],yl.push("shift")),Cr(Gs)&&yl.push(Gs);return{key:Gs,modifiers:yl,action:Ro=xi(Gs,yl,Ro)}}function Io(Xo,Ro){return Xo!==null&&Xo!==y&&(Xo===Ro||Io(Xo.parentNode,Ro))}function Ao(Xo){var Ro=this;if(Xo=Xo||y,!(Ro instanceof Ao))return new Ao(Xo);Ro.target=Xo,Ro._callbacks={},Ro._directMap={};var po,Gs={},Oa=!1,yl=!1,cu=!1;function Fu(lr){lr=lr||{};var Ur,di=!1;for(Ur in Gs)lr[Ur]?di=!0:Gs[Ur]=0;di||(cu=!1)}function Eu(lr,Ur,di,uo,Ys,qa){var Fs,il,iu,Ls=[],Cc=di.type;if(!Ro._callbacks[lr])return[];for(Cc=="keyup"&&Cr(lr)&&(Ur=[lr]),Fs=0;Ro._callbacks[lr].length>Fs;++Fs)il=Ro._callbacks[lr][Fs],(uo||!il.seq||Gs[il.seq]==il.level)&&Cc==il.action&&(Cc=="keypress"&&!di.metaKey&&!di.ctrlKey||(iu=il.modifiers,Ur.sort().join(",")===iu.sort().join(",")))&&((!uo&&il.combo==Ys||uo&&il.seq==uo&&il.level==qa)&&Ro._callbacks[lr].splice(Fs,1),Ls.push(il));return Ls}function qc(lr,Ur,di,uo){Ro.stopCallback(Ur,Ur.target||Ur.srcElement,di,uo)||lr(Ur,di)===!1&&(function(Ys){Ys.preventDefault?Ys.preventDefault():Ys.returnValue=!1}(Ur),function(Ys){Ys.stopPropagation?Ys.stopPropagation():Ys.cancelBubble=!0}(Ur))}function vu(lr){typeof lr.which!="number"&&(lr.which=lr.keyCode);var Ur=tr(lr);Ur&&(lr.type!="keyup"||Oa!==Ur?Ro.handleKey(Ur,function(di){var uo=[];return di.shiftKey&&uo.push("shift"),di.altKey&&uo.push("alt"),di.ctrlKey&&uo.push("ctrl"),di.metaKey&&uo.push("meta"),uo}(lr),lr):Oa=!1)}function kc(lr,Ur,di,uo){function Ys(iu){return function(){cu=iu,++Gs[lr],clearTimeout(po),po=setTimeout(Fu,1e3)}}function qa(iu){qc(di,iu,lr),uo!=="keyup"&&(Oa=tr(iu)),setTimeout(Fu,10)}Gs[lr]=0;for(var Fs=0;Ur.length>Fs;++Fs){var il=Fs+1===Ur.length?qa:Ys(uo||Li(Ur[Fs+1]).action);On(Ur[Fs],il,uo,lr,Fs)}}function On(lr,Ur,di,uo,Ys){Ro._directMap[lr+":"+di]=Ur;var qa,Fs=(lr=lr.replace(/\s+/g," ")).split(" ");Fs.length>1?kc(lr,Fs,Ur,di):(qa=Li(lr,di),Ro._callbacks[qa.key]=Ro._callbacks[qa.key]||[],Eu(qa.key,qa.modifiers,{type:qa.action},uo,lr,Ys),Ro._callbacks[qa.key][uo?"unshift":"push"]({callback:Ur,modifiers:qa.modifiers,action:qa.action,seq:uo,level:Ys,combo:lr}))}Ro._handleKey=function(lr,Ur,di){var uo,Ys=Eu(lr,Ur,di),qa={},Fs=0,il=!1;for(uo=0;Ys.length>uo;++uo)Ys[uo].seq&&(Fs=Math.max(Fs,Ys[uo].level));for(uo=0;Ys.length>uo;++uo)if(Ys[uo].seq){if(Ys[uo].level!=Fs)continue;il=!0,qa[Ys[uo].seq]=1,qc(Ys[uo].callback,di,Ys[uo].combo,Ys[uo].seq)}else il||qc(Ys[uo].callback,di,Ys[uo].combo);var iu=di.type=="keypress"&&yl;di.type!=cu||Cr(lr)||iu||Fu(qa),yl=il&&di.type=="keydown"},Ro._bindMultiple=function(lr,Ur,di){for(var uo=0;lr.length>uo;++uo)On(lr[uo],Ur,di)},un(Xo,"keypress",vu),un(Xo,"keydown",vu),un(Xo,"keyup",vu)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),dh,Lc=function(Le){return Le&&Le.length?Le[0]:void 0},$l=(dh=1,function(Le){return"".concat(Le,"-").concat(dh++)}),ed=function(Le,f){var y,A;return!(!Le||!f||((y=Le.properties)===null||y===void 0?void 0:y.id)!==((A=f.properties)===null||A===void 0?void 0:A.id))},Ge=function(Le){var f=Le.target,y=Le.targetHandler,A=Le.otherHandler;return Le.data.map(function(j,re){var de,Ie=ed(j,f)?y:A;return(de=Ie==null?void 0:Ie(j,re))!==null&&de!==void 0?de:j})},He=function(){return{id:$l("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},mt=function(){return{id:$l("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},In=function(){return{id:$l("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},bi=function(Le){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ds(Le,Et(Et({},He()),f))},Kn=function(Le){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Et(Et({},mt()),{},{nodes:Le},f),geometry:{type:"LineString",coordinates:so(As(Le))}}},vi=function(Le){return Ko(Le,{id:$l("dashLine")})},Co=function(Le){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Et(Et({},In()),{},{nodes:Le},f),geometry:{type:"Polygon",coordinates:[so(As([].concat(zs(Le),[Lc(Le)])))]}}},$s=function(Le){return function(f,y,A){A===void 0&&(A={});for(var j=ll(f).coordinates,re=0,de=0;j.length>de&&(re>y||de!==j.length-1);de++){if(re>=y){var Ie=y-re;if(Ie){var Je=Ba(j[de],j[de-1])-180;return Nh(j[de],Ie,Je,A)}return ds(j[de])}re+=Lu(j[de],j[de+1],A)}return ds(j[j.length-1])}(Le,dp(Le,{units:"meters"})/2,{units:"meters"})},za=function(Le,f){var y=f.format,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=[];if(f.showTotalDistance){var re=$s(Le),de=dp(Le,{units:"meters"});re.properties=Et({id:$l("text"),isActive:!1,meters:de,text:y(de),type:"totalDistance"},A),j.push(re)}else for(var Ie=Le.geometry.coordinates,Je=0;Ie.length-1>Je;Je++){var zt=ds(Ie[Je]),un=ds(Ie[Je+1]),tr=Lu(zt,un,{units:"meters"}),Cr=Mu(As([zt,un]));Cr.properties=Et({id:$l("text"),isActive:!1,meters:tr,text:y(tr),type:"distance"},A),j.push(Cr)}return j},Hl=function(Le,f){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=f.format,j=Ng(Le);return Au(Le,{properties:Et({meters:j,text:A(j),type:"area",isActive:!1},y)})},Eo=function(Le){var f,y,A,j,re,de,Ie=Le.getContainer();return(f=(y=(A=(j=(re=(de=Ie==null?void 0:Ie.querySelector(".l7-marker-container"))!==null&&de!==void 0?de:Ie==null?void 0:Ie.querySelector(".BMap_mask"))!==null&&re!==void 0?re:Le.getMapCanvasContainer())!==null&&j!==void 0?j:Ie==null?void 0:Ie.querySelector(".l7-scene"))!==null&&A!==void 0?A:Ie==null?void 0:Ie.querySelector(".l7-control-container"))!==null&&y!==void 0?y:Ie==null?void 0:Ie.querySelector(".l7-marker-container2"))!==null&&f!==void 0?f:null},Fa=function(Le){return Le.lngLat||Le.lnglat},Ia=function(Le){var f=Fa(Le);return[f.lng,f.lat]},os=function(Le){return[Le.lng,Le.lat]},ka=function(Le){for(var f=Number.MAX_SAFE_INTEGER,y=0,A=Le.length,j=0;A>j;j++)f>Le[j]&&(f=Le[j],y=j);return y},Ms=function(Le,f){var y=[],A=[];return Le.forEach(function(j){Ve(j,f)?A.length&&(y.push(A),A=[]):A.push(j)}),A.length&&y.push(A),y},wo=function(Le,f,y){var A=[],j=[],re=[];return A=Le==="allDrawData"?Ta.instances.map(function(de){return de.getData()}).flat():Le==="drawData"?f.getData():Le instanceof Function?Le(y):Le,A.length&&(j=A.map(function(de){var Ie,Je=(Ie=de.properties)!==null&&Ie!==void 0?Ie:{},zt=Je.nodes,un=zt===void 0?[]:zt,tr=Je.isActive;return tr!==void 0&&tr?un.filter(function(Cr){return!Ve(Cr.geometry.coordinates,y)}):un}).flat().filter(function(de){return de}),j.length||(j=so(As(A)).map(function(de){return ds(de)})),re=A.map(function(de){var Ie,Je,zt=(Ie=de.properties)===null||Ie===void 0?void 0:Ie.line;return!((Je=de.properties)===null||Je===void 0)&&Je.isActive&&zt?Ms(zt.properties.nodes.map(function(un){return un.geometry.coordinates}),y).filter(function(un){return un.length>1}).map(function(un){return Ko(un)}):[zt]}).flat().filter(function(de){return de}),re.length||A.forEach(function(de){var Ie=Pu(de);if(/linestring/i.test(Ie)&&re.push(de),/polygon/i.test(Ie)){var Je,zt,un=Eg(de);return(Je=re).push.apply(Je,zs((zt=un==null?void 0:un.features)!==null&&zt!==void 0?zt:[un]))}})),{points:j,lines:re}},is=function(Le,f,y,A){var j=y.pointAdsorbPixel,re=Po(Le,2),de=A.lngLatToPixel([re[0],re[1]]),Ie=de.x,Je=de.y,zt=f.map(function(tr){var Cr=Po(tr.geometry.coordinates,2),xi=A.lngLatToPixel([Cr[0],Cr[1]]),Li=xi.y;return Math.pow(Ie-xi.x,2)+Math.pow(Je-Li,2)}),un=ka(zt);return Math.pow(zt[un],.5)>j?null:f[un].geometry.coordinates},Rs=function(Le,f,y,A){var j=y.lineAdsorbPixel,re=Po(Le,2),de=A.lngLatToPixel([re[0],re[1]]),Ie=de.x,Je=de.y,zt=f.filter(function(Cr){return so(Cr).length>1}).map(function(Cr){return function(xi,Li,Io){Io===void 0&&(Io={});var Ao=ds([1/0,1/0],{dist:1/0}),Xo=0;return ra(xi,function(Ro){for(var po=Aa(Ro),Gs=0;po.length-1>Gs;Gs++){var Oa=ds(po[Gs]);Oa.properties.dist=Lu(Li,Oa,Io);var yl=ds(po[Gs+1]);yl.properties.dist=Lu(Li,yl,Io);var cu=Lu(Oa,yl,Io),Fu=Math.max(Oa.properties.dist,yl.properties.dist),Eu=Ba(Oa,yl),qc=Nh(Li,Fu,Eu+90,Io),vu=Nh(Li,Fu,Eu-90,Io),kc=nh(Ko([qc.geometry.coordinates,vu.geometry.coordinates]),Ko([Oa.geometry.coordinates,yl.geometry.coordinates])),On=null;kc.features.length>0&&((On=kc.features[0]).properties.dist=Lu(Li,On,Io),On.properties.location=Xo+Lu(Oa,On,Io)),Ao.properties.dist>Oa.properties.dist&&((Ao=Oa).properties.index=Gs,Ao.properties.location=Xo),Ao.properties.dist>yl.properties.dist&&((Ao=yl).properties.index=Gs+1,Ao.properties.location=Xo+cu),On&&Ao.properties.dist>On.properties.dist&&((Ao=On).properties.index=Gs),Xo+=cu}}),Ao}(Cr,Le)});if(!zt.length)return null;var un=zt.map(function(Cr){var xi=Po(Cr.geometry.coordinates,2),Li=A.lngLatToPixel([xi[0],xi[1]]),Io=Li.y;return Math.pow(Ie-Li.x,2)+Math.pow(Je-Io,2)}),tr=ka(un);return Math.pow(un[tr],.5)>j?null:zt[tr].geometry.coordinates},Vl=function(Le,f){var y=Po(f,2),A=y[0],j=y[1];Le.lngLat&&(Le.lngLat={lng:A,lat:j}),Le.lnglat&&(Le.lnglat={lng:A,lat:j})},wl=function(){function Le(f,y){vn(this,Le),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Eo(f),this.options=y}return Gr(Le,[{key:"setCursor",value:function(f){f!==this.cursor&&this.container&&(this.container.style.cursor=f?this.options[f]:"",this.cursor=f)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Le}();function Sa(Le,f){f===void 0&&(f={});var y=f.insertAt;if(Le&&typeof document!="undefined"){var A=document.head||document.getElementsByTagName("head")[0],j=document.createElement("style");j.type="text/css",y==="top"&&A.firstChild?A.insertBefore(j,A.firstChild):A.appendChild(j),j.styleSheet?j.styleSheet.cssText=Le:j.appendChild(document.createTextNode(Le))}}Sa('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Sa(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var ea=function(){function Le(f,y){var A=this;vn(this,Le),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){A.isMouseInner=!0,A.checkTippyShow()},this.onMouseOut=function(){A.isMouseInner=!1,A.checkTippyShow()},this.setContent=W(function(re){var de;A.content=re!=null?re:"",(de=A.tippy)===null||de===void 0||de.setContent(re!=null?re:""),A.checkTippyShow()},16,{maxWait:16});var j=Eo(f);this.scene=f,j&&(this.tippy=fl(Eo(f),Et(Et({},wt),y)),this.tippy.hide(),f.on(v.SceneEvent.Mousemove,this.onMouseMove),f.on(v.SceneEvent.Mouseout,this.onMouseOut))}return Gr(Le,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var f,y;this.content&&this.isMouseInner?(f=this.tippy)===null||f===void 0||f.show():(y=this.tippy)===null||y===void 0||y.hide()}},{key:"destroy",value:function(){var f;this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(v.SceneEvent.Mouseout,this.onMouseOut),(f=this.tippy)===null||f===void 0||f.destroy()}}]),Le}(),ja=function(){function Le(f){var y=f.config;vn(this,Le),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=y}return Gr(Le,[{key:"save",value:function(f){if(this.config){var y=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),y>this.historyList.length||this.historyList.pop();var A=zo(f);return this.historyList.unshift(A),A}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var f=this.historyList[++this.historyIndex];return f?zo(f):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var f=this.historyList[--this.historyIndex];return f?zo(f):void 0}}}]),Le}(),Bs=function(Le){ko(y,Le);var f=Js(y);function y(A){var j,re=A.data,de=A.render,Ie=A.history,Je=A.scene;return vn(this,y),(j=f.call(this)).scene=void 0,j.render=void 0,j.data=zo(b),j.timeout=null,j.diffData={},j.history=void 0,j.scene=Je,j.render=de,Ie&&(j.history=new ja({config:Ie})),re&&j.setData(re),j}return Gr(y,[{key:"saveHistory",value:function(){var A;return(A=this.history)===null||A===void 0?void 0:A.save(this.data)}},{key:"revertHistory",value:function(){var A,j=(A=this.history)===null||A===void 0?void 0:A.revert();if(j)return this.setData(j),j}},{key:"redoHistory",value:function(){var A,j=(A=this.history)===null||A===void 0?void 0:A.redo();if(j)return this.setData(j),j}},{key:"setData",value:function(A){var j=this;return Object.keys(A).length&&(this.data=Et(Et({},this.data),A),this.diffData=Et(Et({},this.diffData),A),this.timeout||(this.timeout=requestAnimationFrame(function(){return j.updateDiffData()})),this.emit(v.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(A){return this.data[A]}},{key:"setRenderData",value:function(A,j){var re=typeof j=="function"?j(this.getRenderData(A)):j;return this.setData(Gi({},A,re)),this.emit(v.SourceEvent.Change,this.data),re}},{key:"updateDiffData",value:function(){var A=this,j=Object.entries(this.diffData);j.length&&(j.forEach(function(re){var de,Ie=Po(re,2),Je=Ie[0],zt=Ie[1];Array.isArray(zt)&&((de=A.getRender(Je))===null||de===void 0||de.setData(zt))}),this.emit(v.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){A.scene.render()}))}},{key:"getRender",value:function(A){return this.render[A]}},{key:"clear",value:function(){this.setData(Oo(Object.keys(this.render).map(function(A){return[A,[]]})))}}]),y}(Ph),Ta=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;vn(this,y),(re=f.call(this)).scene=void 0,re.source=void 0,re.render=void 0,re.cursor=void 0,re.options=void 0,re.enabled=!1,re.allowCreate=!1,re.sceneRender=void 0,re.mouseLngLat={lng:0,lat:0},re.popup=void 0,re.addCount=0,re.saveMouseLngLat=W(function(zt){re.mouseLngLat=Fa(zt)},100,{maxWait:100}),re.saveHistory=W(function(){re.options.history&&re.source.saveHistory()},100),re.bindThis(),re.scene=A,re.sceneRender=new sr(A),re.options=$c({},re.getDefaultOptions(j),j),re.render=re.initRender(),re.source=new Bs({render:re.render,history:re.options.history||void 0,scene:A}),re.cursor=new wl(A,re.options.cursor);var de=re.options,Ie=de.initialData,Je=de.popup;return Ie&&re.setData(Ie),Je&&(re.popup=new ea(A,Je instanceof Object?Je:{})),re.saveHistory(),re.bindCommonEvent(),re.emit(v.DrawEvent.Init,ps(re)),re.bindEnableEvent(),y.instances.push(ps(re)),re}return Gr(y,[{key:"addable",get:function(){var A=this.getData(),j=this.options,re=j.multiple,de=j.maxCount,Ie=A.find(function(Je){return Je.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(re&&0>=de||Ie)||!(!re&&this.addCount>=1)&&(0>=de||de>A.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(A){var j,re,de=this.options.helper;if(de){var Ie=(j=A in de?de[A]:A)!==null&&j!==void 0?j:null;(re=this.popup)===null||re===void 0||re.setContent(Ie)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var A=this;this.on(v.DrawEvent.Add,this.emitChangeEvent),this.on(v.DrawEvent.Add,function(){A.addCount++}),this.on(v.DrawEvent.Edit,this.emitChangeEvent),this.on(v.DrawEvent.Remove,this.emitChangeEvent),this.on(v.DrawEvent.Clear,this.emitChangeEvent),this.on(v.DrawEvent.AddNode,this.saveHistory),this.on(v.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var A=this,j=arguments.length>0&&arguments[0]!==void 0&&arguments[0],re=null,de=function(){var Ie,Je,zt,un=A.getData().find(function(tr){var Cr;return(Cr=tr.properties)===null||Cr===void 0?void 0:Cr.isActive})||null;((Ie=re)===null||Ie===void 0||(Je=Ie.properties)===null||Je===void 0?void 0:Je.id)!==(un==null||(zt=un.properties)===null||zt===void 0?void 0:zt.id)&&(re=un,A.emit(v.DrawEvent.Select,un))};this.source.on(v.SourceEvent.Change,de),j&&de()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var A=this,j=this.options.keyboard||{},re=j.revert,de=j.redo,Ie=j.remove;Ie&&Pc.bind(Ie,function(){A.removeActiveFeature()}),this.options.history&&(re&&Pc.bind(re,this.revertHistory),de&&Pc.bind(de,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var A=this.options.keyboard||{},j=A.revert,re=A.redo,de=A.remove;de&&Pc.unbind(de),this.options.history&&(j&&Pc.unbind(j),re&&Pc.unbind(re))}},{key:"emitChangeEvent",value:function(){this.emit(v.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Oo(nd(this.render).map(function(A){var j=Po(A,2);return[j[0],j[1].getLayers()]}))}},{key:"getTargetFeature",value:function(A){var j,re,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Ie=null;return A&&(Ie=(j=de.find(function(Je){var zt;return Je.properties.id===(typeof A=="string"?A:(zt=A.properties)===null||zt===void 0?void 0:zt.id)}))!==null&&j!==void 0?j:null,!Ie&&A instanceof Object&&(Ie=(re=de.find(function(Je){return Ve(A.geometry,Je.geometry)}))!==null&&re!==void 0?re:null)),Ie}},{key:"removeActiveFeature",value:function(){var A=this.getData().find(function(j){var re=j.properties;return re.isActive||re.isDraw});return A&&this.removeFeature(A),A}},{key:"removeFeature",value:function(A){var j=this.getData(),re=this.getTargetFeature(A);re&&(this.setData(j.filter(function(de){return!ed(re,de)})),this.emit(v.DrawEvent.Remove,A,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(A){return A.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var A,j={},re=function(Ie,Je){var zt=typeof Symbol!="undefined"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!zt){if(Array.isArray(Ie)||(zt=ma(Ie))||Je&&Ie&&typeof Ie.length=="number"){zt&&(Ie=zt);var un=0,tr=function(){};return{s:tr,n:function(){return Ie.length>un?{done:!1,value:Ie[un++]}:{done:!0}},e:function(Io){throw Io},f:tr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Cr,xi=!0,Li=!1;return{s:function(){zt=zt.call(Ie)},n:function(){var Io=zt.next();return xi=Io.done,Io},e:function(Io){Li=!0,Cr=Io},f:function(){try{xi||zt.return==null||zt.return()}finally{if(Li)throw Cr}}}}(this.getRenderTypes());try{for(re.s();!(A=re.n()).done;){var de=A.value;j[de]=new D[de](this.scene,{style:this.options.style[de]})}}catch(Ie){re.e(Ie)}finally{re.f()}return j}},{key:"getCommonOptions",value:function(A){return{initialData:[],autoActive:!0,cursor:zo(w),editable:!0,style:zo(J),multiple:!0,history:zo(ar),keyboard:zo(ft),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(A){this.cursor.setCursor(A)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var A=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){A.emit(v.DrawEvent.Enable,A)},0)}},{key:"disable",value:function(){var A=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){A.emit(v.DrawEvent.Disable,A)},0)}},{key:"clear",value:function(){var A=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(v.DrawEvent.Clear,this),A&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(A){A.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(A){A.hide()})}},{key:"destroy",value:function(){var A,j=this;Object.values(this.render).forEach(function(de){de.destroy()}),Object.values(v.RenderEvent).forEach(function(de){Object.values(j.render).forEach(function(Ie){Ie.removeAllListeners(de)}),j.sceneRender.removeAllListeners(de)}),setTimeout(function(){Object.values(v.DrawEvent).forEach(function(de){j.removeAllListeners(de)})},0),(A=this.popup)===null||A===void 0||A.destroy(),this.cursor.destroy(),this.emit(v.DrawEvent.Destroy,this);var re=y.instances.indexOf(this);re>-1&&y.instances.splice(re,1)}}]),y}(Ph);Ta.instances=[];var jo=function(Le){var f=Le==null?0:Le.length;return f?Le[f-1]:void 0},Ya=function(Le){ko(y,Le);var f=Js(y);function y(){return vn(this,y),f.apply(this,arguments)}return Gr(y,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(A){return A.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(A){return A.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(A){return A.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(A){return this.source.setRenderData("point",A)}},{key:"bindPointRenderEvent",value:function(){var A,j,re,de,Ie,Je;(A=this.pointRender)===null||A===void 0||A.on(v.RenderEvent.UnClick,this.onPointCreate.bind(this)),(j=this.pointRender)===null||j===void 0||j.on(v.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(re=this.pointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(de=this.pointRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Ie=this.pointRender)===null||Ie===void 0||Ie.on(v.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Je=this.pointRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(A){var j=this.options,re=j.autoActive,de=j.editable,Ie=bi(A);return this.setPointData(function(Je){return Ge({target:Ie,data:[].concat(zs(Je),[Ie]),targetHandler:function(zt){zt.properties=Et(Et({},zt.properties),{},{isHover:de,isActive:re&&de})},otherHandler:function(zt){zt.properties=Et(Et({},zt.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Ie}},{key:"handlePointHover",value:function(A){return this.setCursor("pointHover"),ed(A,this.hoverPoint)||this.setPointData(function(j){return Ge({target:A,data:j,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),A}},{key:"handlePointUnHover",value:function(A){return this.resetCursor(),this.setPointData(function(j){return j.map(function(re){return re.properties.isHover=!1,re})}),A}},{key:"handlePointDragStart",value:function(A){return this.setPointData(function(j){return Ge({target:A,data:j,targetHandler:function(re){re.properties=Et(Et({},re.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(re){re.properties=Et(Et({},re.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),A}},{key:"handlePointDragging",value:function(A,j){return this.setPointData(function(re){return Ge({target:A,data:re,targetHandler:function(de){de.geometry.coordinates=os(j)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),A}},{key:"handlePointDragEnd",value:function(A){return this.setPointData(function(j){return Ge({target:A,data:j,targetHandler:function(re){re.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),A}},{key:"onPointCreate",value:function(A){return this.handleCreatePoint(os(Fa(A)))}},{key:"onPointMouseMove",value:function(A){return this.handlePointHover(A.feature)}},{key:"onPointMouseOut",value:function(A){return this.handlePointUnHover(A.feature)}},{key:"onPointDragStart",value:function(A){if(this.options.editable)return this.handlePointDragStart(A.feature)}},{key:"onPointDragging",value:function(A){var j=this.dragPoint;if(this.options.editable&&j)return this.handlePointDragging(j,Fa(A))}},{key:"onPointDragEnd",value:function(A){var j=this.dragPoint;if(this.options.editable&&j)return this.handlePointDragEnd(j)}},{key:"enablePointRenderAction",value:function(){var A,j,re,de,Ie=this.options.editable;this.enabled&&((j=this.pointRender)===null||j===void 0||j.enableCreate()),(A=this.pointRender)===null||A===void 0||A.enableClick(),Ie&&((re=this.pointRender)===null||re===void 0||re.enableHover(),(de=this.pointRender)===null||de===void 0||de.enableDrag())}},{key:"disablePointRenderAction",value:function(){var A,j,re,de;(A=this.pointRender)===null||A===void 0||A.disableCreate(),(j=this.pointRender)===null||j===void 0||j.disableHover(),(re=this.pointRender)===null||re===void 0||re.disableDrag(),(de=this.pointRender)===null||de===void 0||de.disableClick()}}]),y}(Ta),Al=function(Le){ko(y,Le);var f=Js(y);function y(){return vn(this,y),f.apply(this,arguments)}return Gr(y,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(A){return Et(Et({},Hs(Bi(y.prototype),"getCommonOptions",this).call(this,A)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var A,j,re;(A=this.midPointRender)===null||A===void 0||A.on(v.RenderEvent.Click,this.onMidPointClick.bind(this)),(j=this.midPointRender)===null||j===void 0||j.on(v.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(re=this.midPointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(A){return this.source.setRenderData("midPoint",A)}},{key:"getMidPointsByLine",value:function(A){var j=A.properties.nodes;if(!this.options.showMidPoint||2>j.length)return[];for(var re=[],de=0;j.length-1>de;de++){var Ie,Je,zt,un,tr=Mu(As([j[de],j[de+1]]),{properties:{id:$l("midPoint"),startId:(Ie=(Je=j[de].properties)===null||Je===void 0?void 0:Je.id)!==null&&Ie!==void 0?Ie:"",endId:(zt=(un=j[de+1].properties)===null||un===void 0?void 0:un.id)!==null&&zt!==void 0?zt:""}});re.push(tr)}return re}},{key:"onMidPointHover",value:function(A){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(A){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var A,j;(A=this.midPointRender)===null||A===void 0||A.enableClick(),(j=this.midPointRender)===null||j===void 0||j.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var A,j;(A=this.midPointRender)===null||A===void 0||A.disableClick(),(j=this.midPointRender)===null||j===void 0||j.disableHover()}}]),y}(Ya),Pl={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Bu={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},ys={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},Jo=Et(Et({},ys),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),oa={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Wa={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},nu={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},su=function(Le){ko(y,Le);var f=Js(y);function y(){var A;vn(this,y);for(var j=arguments.length,re=Array(j),de=0;j>de;de++)re[de]=arguments[de];return(A=f.call.apply(f,[this].concat(re))).previousPosition=[0,0],A}return Gr(y,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(A){return A.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(A){return A.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(A){var j=A.properties;return!j.isDraw&&j.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(A){return A.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(A){var j=Et(Et({},this.getCommonOptions(A)),{},{showMidPoint:!0,distanceOptions:!1,helper:zo(Bu)});return A.distanceOptions&&(j.distanceOptions=Et(Et({},hn),j.distanceOptions)),A.adsorbOptions&&(j.adsorbOptions=Et(Et({},At),j.adsorbOptions)),j}},{key:"getAdsorbPosition",value:function(A){var j=this.options.adsorbOptions;if(typeof j=="boolean")return A;var re=this.scene,de=j.pointAdsorbPixel,Ie=j.lineAdsorbPixel,Je=null,zt=wo(j.data,this,A),un=zt.points,tr=zt.lines;return un.length&&de>0&&(Je=is(A,un,j,re)),!Je&&tr.length&&Ie>0&&(Je=Rs(A,tr,j,re)),Je}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(v.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var A;Hs(Bi(y.prototype),"bindPointRenderEvent",this).call(this),(A=this.pointRender)===null||A===void 0||A.on(v.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var A,j,re,de,Ie,Je;(A=this.lineRender)===null||A===void 0||A.on(v.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(j=this.lineRender)===null||j===void 0||j.on(v.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(re=this.lineRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(de=this.lineRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Ie=this.lineRender)===null||Ie===void 0||Ie.on(v.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Je=this.lineRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(A,j){var re=j.showTotalDistance,de=j.format;return j.showDashDistance?A.map(function(Ie){return za(Ie,{showTotalDistance:re,format:de},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(A,j){var re=j.showTotalDistance,de=j.format,Ie=j.showWhen,Je=[];if(Ie.includes("active")){var zt=A.filter(function(tr){return tr.properties.isActive&&tr.properties.nodes.length>1});Je.push.apply(Je,zs(zt.map(function(tr){return za(tr,{showTotalDistance:re,format:de},{isActive:!0})}).flat()))}if(Ie.includes("normal")){var un=A.filter(function(tr){return!tr.properties.isActive&&tr.properties.nodes.length>1});Je.push.apply(Je,zs(un.map(function(tr){return za(tr,{showTotalDistance:re,format:de})}).flat()))}return Je}},{key:"getDistanceTexts",value:function(){var A=this.options.distanceOptions;if(!A)return[];var j=[],re=A.showWhen,de=A.showDashDistance,Ie=A.format,Je=A.showTotalDistance;return j.push.apply(j,zs(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Ie,showDashDistance:de})).concat(zs(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Ie,showWhen:re})))),j}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(A){var j=Kn([A],{isActive:!0,isDraw:!0});return this.setLineData(function(re){return Ge({target:j,data:[].concat(zs(re),[j]),otherHandler:function(de){de.properties.isActive=!1}})}),this.setPointData([A]),this.setTextData(this.getAllTexts()),j}},{key:"syncLineNodes",value:function(A,j){return A.properties.nodes=j,A.geometry.coordinates=so(As(j)),this.setLineData(function(re){return re.map(function(de){return ed(de,A)?A:de})}),ed(this.editLine,A)&&this.setMidPointData(this.getMidPointsByLine(A)),this.setPointData(A.properties.nodes),this.setTextData(this.getAllTexts()),A}},{key:"setActiveLine",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(re){return Ge({target:A,data:re,targetHandler:function(de){de.properties=Et(Et({},de.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},j)},otherHandler:function(de){de.properties=Et(Et({},de.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(A.properties.nodes.map(function(re){return re.properties=Et(Et({},re.properties),{},{isHover:!1,isActive:!1}),re})),this.setMidPointData(this.getMidPointsByLine(A)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),A}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(A){return A.properties=Et(Et({},A.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),A}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(A){return this.clearActiveLine(),A}},{key:"handleLineHover",value:function(A){if(!this.drawLine)return this.setCursor("lineHover"),ed(A,this.hoverLine)||this.setLineData(function(j){return Ge({target:A,data:j,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),A}},{key:"handleLineUnHover",value:function(A){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(j){return j.map(function(re){return re.properties.isHover=!1,re})}),A}},{key:"handleLineDragStart",value:function(A){return this.setActiveLine(A,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),A}},{key:"handleLineDragging",value:function(A,j){var re=j.lng,de=j.lat,Ie=A.properties.nodes,Je=Po(this.previousPosition,2),zt=Je[0],un=Je[1];return Ie.forEach(function(tr){var Cr=tr.geometry.coordinates;tr.geometry.coordinates=[Cr[0]+re-zt,Cr[1]+de-un]}),this.syncLineNodes(A,Ie),this.setActiveLine(A,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[re,de],A}},{key:"handleLineDragEnd",value:function(A){return A.properties.isDrag=!1,this.setLineData(function(j){return j}),this.scene.setMapStatus({dragEnable:!0}),A}},{key:"resetAdsorbLngLat",value:function(A){if(this.options.adsorbOptions){var j=this.getAdsorbPosition(os(Fa(A)));return j&&Vl(A,j),j}}},{key:"onPointCreate",value:function(A){if(!this.editLine){this.resetAdsorbLngLat(A);var j=Hs(Bi(y.prototype),"onPointCreate",this).call(this,A),re=this.drawLine;if(j)return re?(this.syncLineNodes(re,[].concat(zs(re.properties.nodes),[j])),this.setDashLineData([])):this.handleCreateLine(j),j}}},{key:"onPointDragStart",value:function(A){if(this.editLine)return this.setHelper("pointDrag"),Hs(Bi(y.prototype),"onPointDragStart",this).call(this,A)}},{key:"onPointDragging",value:function(A){var j=Hs(Bi(y.prototype),"onPointDragging",this).call(this,A);if(j){var re=this.resetAdsorbLngLat(A);re&&(j.geometry.coordinates=zo(re))}var de=this.editLine;return de&&j&&(this.syncLineNodes(de,de.properties.nodes.map(function(Ie){return ed(j,Ie)?j:Ie})),this.setActiveLine(de)),j}},{key:"onPointDragEnd",value:function(A){if(this.editLine){var j=Hs(Bi(y.prototype),"onPointDragEnd",this).call(this,A);return this.setPointData(function(re){return re.map(function(de){return de.properties.isActive=!1,de})}),this.setHelper("pointHover"),j}}},{key:"onLineUnClick",value:function(A){var j=this.editLine;if(j)return this.handleLineUnClick(j)}},{key:"onLineMouseMove",value:function(A){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(A.feature)}},{key:"onLineMouseOut",value:function(A){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(A.feature)}},{key:"onLineDragStart",value:function(A){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ia(A),this.setHelper("lineDrag"),this.handleLineDragStart(A.feature)}},{key:"onLineDragging",value:function(A){var j=this.dragLine;if(j)return this.handleLineDragging(j,Fa(A))}},{key:"onLineDragEnd",value:function(A){var j=this.dragLine;if(j)return this.setHelper("lineHover"),this.handleLineDragEnd(j)}},{key:"onPointMouseMove",value:function(A){var j=Hs(Bi(y.prototype),"onPointMouseMove",this).call(this,A);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),j}},{key:"onPointMouseOut",value:function(A){var j=Hs(Bi(y.prototype),"onPointMouseOut",this).call(this,A);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),j}},{key:"onMidPointHover",value:function(A){Hs(Bi(y.prototype),"onMidPointHover",this).call(this,A),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(A){Hs(Bi(y.prototype),"onMidPointUnHover",this).call(this,A),this.setHelper(null)}},{key:"onPointClick",value:function(A){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(A){return this.source.setRenderData("line",A)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(A){return this.source.setRenderData("text",A)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(A){return this.source.setRenderData("dashLine",A)}},{key:"onMidPointClick",value:function(A){var j=this.editLine,re=A.feature;if(j&&re&&!this.dragPoint){var de=j.properties.nodes,Ie=re.properties,Je=Ie.startId,zt=Ie.endId,un=de.findIndex(function(xi){return xi.properties.id===Je}),tr=de.findIndex(function(xi){return xi.properties.id===zt});if(un>-1&&tr>-1){var Cr=bi(re.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),de.splice(tr,0,Cr),j.geometry.coordinates=so(As(de)),this.syncLineNodes(j,de),this.setActiveLine(j),Cr}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var A,j,re,de=this.options.editable;(A=this.lineRender)===null||A===void 0||A.enableUnClick(),de&&((j=this.lineRender)===null||j===void 0||j.enableHover(),(re=this.lineRender)===null||re===void 0||re.enableDrag())}},{key:"disableLineRenderAction",value:function(){var A,j,re;(A=this.lineRender)===null||A===void 0||A.disableUnClick(),(j=this.lineRender)===null||j===void 0||j.disableHover(),(re=this.lineRender)===null||re===void 0||re.disableDrag()}}]),y}(Al),bc=function(Le){ko(y,Le);var f=Js(y);function y(){return vn(this,y),f.apply(this,arguments)}return Gr(y,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(A){return A.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(A){return A.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(A){var j=A.properties;return!j.isDraw&&j.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(A){return A.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var A,j;return(A=(j=this.render.polygon)===null||j===void 0?void 0:j.getLayers())!==null&&A!==void 0?A:[]}},{key:"getDefaultOptions",value:function(A){var j=Et(Et({},Hs(Bi(y.prototype),"getDefaultOptions",this).call(this,A)),{},{areaOptions:!1,helper:zo(ys)});return A.areaOptions&&(j.areaOptions=Et(Et({},Tn),A.areaOptions)),j}},{key:"getAreaTexts",value:function(A){var j=this.options.areaOptions;if(!j)return[];var re=j.format,de=j.showWhen,Ie=[],Je=A.filter(function(zt){return zt.geometry.coordinates[0].length>=4});return de.includes("active")&&Je.filter(function(zt){return zt.properties.isActive}).forEach(function(zt){Ie.push(Hl(zt,{format:re},{isActive:!0}))}),de.includes("normal")&&Je.filter(function(zt){return!zt.properties.isActive}).forEach(function(zt){Ie.push(Hl(zt,{format:re},{isActive:!1}))}),Ie}},{key:"getAllTexts",value:function(){return[].concat(zs(Hs(Bi(y.prototype),"getAllTexts",this).call(this)),zs(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(A){return this.source.setRenderData("polygon",A)}},{key:"handleCreatePolygon",value:function(A,j){var re=Co(A,{nodes:A,line:j,isActive:!0,isDraw:!0});return this.setPolygonData(function(de){return Ge({target:re,data:[].concat(zs(de),[re]),otherHandler:function(Ie){Ie.properties.isActive=!1}})}),re}},{key:"handlePolygonUnClick",value:function(A){return this.clearActivePolygon(),A}},{key:"handlePolygonHover",value:function(A){return this.setCursor("polygonHover"),ed(A,this.hoverPolygon)||this.setPolygonData(function(j){return Ge({target:A,data:j,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),A}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(A){return A.map(function(j){return j.properties.isHover=!1,j})})}},{key:"handlePolygonDragStart",value:function(A){return this.setActivePolygon(A,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),A}},{key:"bindPolygonRenderEvent",value:function(){var A,j,re,de;(A=this.polygonRender)===null||A===void 0||A.on(v.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(j=this.polygonRender)===null||j===void 0||j.on(v.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(re=this.polygonRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(de=this.polygonRender)===null||de===void 0||de.on(v.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(A,j){var re=so(As([].concat(zs(j),[Lc(j)]))),de=A.properties,Ie=de.line;if(A.properties.nodes=j,A.geometry.coordinates=[lp(Ko(re))?re:re.reverse()],this.setPolygonData(function(Cr){return Cr.map(function(xi){return ed(xi,A)?A:xi})}),!ed(this.drawPolygon,A)){var Je=Ie.properties.nodes,zt=zs(j),un=Lc(zt);zt.push(Je.length===j.length?bi(un.geometry.coordinates):jo(Je));var tr=jo(zt);Ve(un.geometry.coordinates,tr.geometry.coordinates)||(tr.geometry.coordinates=zo(un.geometry.coordinates)),this.syncLineNodes(Ie,zt)}return A}},{key:"setActivePolygon",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(A.properties.line,j),this.setPolygonData(function(re){return Ge({target:A,data:re,targetHandler:function(de){de.properties=Et(Et({},de.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},j)},otherHandler:function(de){de.properties=Et(Et({},de.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),A}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(A){return A.map(function(j){return j.properties=Et(Et({},j.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),j})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragStart",this).call(this,A),re=this.getPolygonData().find(function(de){return ed(de.properties.line,j)});return re&&(this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.DragStart,re,this.getPolygonData())),j}},{key:"onLineUnClick",value:function(A){return this.editLine}},{key:"onLineDragEnd",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragEnd",this).call(this,A),re=this.dragPolygon;return j&&re&&(re.properties.isDrag=!1,this.emit(v.DrawEvent.DragEnd,re,this.getPolygonData()),this.emit(v.DrawEvent.Edit,re,this.getPolygonData())),j}},{key:"onPolygonUnClick",value:function(A){var j=this.editPolygon;if(j)return this.handlePolygonUnClick(j)}},{key:"onPolygonHover",value:function(A){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(A.feature)}},{key:"onPolygonUnHover",value:function(A){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(A){if(this.options.editable&&!this.drawPolygon){var j=A.feature;return this.previousPosition=Ia(A),this.setHelper("polygonDrag"),this.emit(v.DrawEvent.DragStart,j,this.getPolygonData()),this.handlePolygonDragStart(j)}}},{key:"onMidPointClick",value:function(A){var j=this.editPolygon,re=Hs(Bi(y.prototype),"onMidPointClick",this).call(this,A);if(re&&j){var de=j.properties.line.properties.nodes;this.syncPolygonNodes(j,de.slice(0,de.length-1)),this.setActivePolygon(j)}return re}},{key:"onPointDragEnd",value:function(A){var j=this.editPolygon,re=Hs(Bi(y.prototype),"onPointDragEnd",this).call(this,A);return re&&j&&this.emit(v.DrawEvent.Edit,j,this.getPolygonData()),re}},{key:"enablePolygonRenderAction",value:function(){var A,j,re,de=this.options.editable;(A=this.polygonRender)===null||A===void 0||A.enableUnClick(),de&&((j=this.polygonRender)===null||j===void 0||j.enableHover(),(re=this.polygonRender)===null||re===void 0||re.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var A,j,re;(A=this.polygonRender)===null||A===void 0||A.disableUnClick(),(j=this.polygonRender)===null||j===void 0||j.disableHover(),(re=this.polygonRender)===null||re===void 0||re.disableDrag()}},{key:"bindEnableEvent",value:function(){Hs(Bi(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Hs(Bi(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Hs(Bi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(A){var j=this.getTargetFeature(A);j?this.setActivePolygon(j):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var A=this.getPolygonData();this.drawPolygon&&(A=A.filter(function(j){return!j.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(j){return j.filter(function(re){return!re.properties.isDraw})}),this.setTextData(function(j){return j.filter(function(re){return!re.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(A.map(function(j){return j.properties=Et(Et({},j.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),j}))}}]),y}(su),Uh=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).onSceneDragStart=re.onSceneDragStart.bind(ps(re)),re.onSceneDragEnd=re.onSceneDragEnd.bind(ps(re)),re}return Gr(y,[{key:"drawLine",get:function(){var A;return(A=this.drawPolygon)===null||A===void 0?void 0:A.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(A){var j=Et(Et({},Hs(Bi(y.prototype),"getDefaultOptions",this).call(this,A)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:zo(Jo)});return A.trigger==="drag"&&(j.helper=Et(Et({},j.helper),oa)),j}},{key:"getMidPointsByLine",value:function(A){return[]}},{key:"handleCreatePolygon",value:function(A,j){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=j.properties.nodes;return Co(de.slice(0,de.length-1),Et({nodes:A,line:j},re))}},{key:"handleFirstNodeCreate",value:function(A){var j=bi(A.geometry.coordinates),re=this.handleCreatePolygonLine(A,j,{isDraw:!0,isActive:!0}),de=this.handleCreatePolygon([A,j],re,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Ie){return Ge({target:de,data:[].concat(zs(Ie),[de]),targetHandler:function(Je){Je.properties=Et(Et({},Je.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(v.DrawEvent.AddNode,A,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),A}},{key:"handleLastNodeCreate",value:function(A){var j=this.options,re=j.autoActive,de=j.editable,Ie=this.drawPolygon;return Ie&&(this.setLineData(function(Je){return[].concat(zs(Je),[Ie.properties.line])}),this.setActivePolygon(Ie),re&&de||this.handlePolygonUnClick(Ie),this.emit(v.DrawEvent.Add,Ie,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,Ie.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(de?re?"pointHover":"polygonHover":this.addable?"draw":null)),A}},{key:"onPointCreate",value:function(A){var j=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var re=this.drawPolygon,de=Ia(A),Ie=this.handleCreatePoint(de);return re?requestAnimationFrame(function(){j.handleLastNodeCreate(Ie)}):this.handleFirstNodeCreate(Ie),Ie}}},{key:"setActivePolygon",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(A.properties.line,j),this.setPolygonData(function(de){return Ge({target:A,data:de,targetHandler:function(Ie){Ie.properties=Et(Et({},Ie.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},j)},otherHandler:function(Ie){Ie.properties=Et(Et({},Ie.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(A.properties.nodes),this.setDashLineData([]);var re=this.getAllTexts();return this.setTextData(re),A}},{key:"onPointDragging",value:function(A){var j=this.dragPoint;if(j){var re=this.handlePointDragging(j,Fa(A)),de=this.editPolygon;return re&&de&&(this.syncPolygonNodes(de,de.properties.nodes.map(function(Ie){return ed(Ie,re)?re:Ie})),this.setActivePolygon(de)),re}}},{key:"onSceneDragStart",value:function(A){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ia(A))))}},{key:"onSceneDragEnd",value:function(A){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ia(A))))}},{key:"onSceneMouseMove",value:function(A){var j=this.drawPolygon;if(j){var re=j.properties.nodes,de=Lc(re),Ie=jo(re);Ie.geometry.coordinates=Ia(A),this.syncPolygonNodes(j,[de,Ie]),this.setDashLineData([j.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Hs(Bi(y.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Hs(Bi(y.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Hs(Bi(y.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),y}(bc),Cs=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Gr(y,[{key:"getDefaultOptions",value:function(A){var j=Et(Et({},Hs(Bi(y.prototype),"getDefaultOptions",this).call(this,A)),{},{showMidPoint:!1,circleSteps:60});return j.distanceOptions&&(j.distanceOptions.showTotalDistance=!0,j.distanceOptions.showOnRadius===void 0&&(j.distanceOptions.showOnRadius=!0)),j.helper&&(j.helper=Et(Et({},j.helper),nu)),j}},{key:"getDistanceTexts",value:function(){var A=this.options.distanceOptions;if(!A)return[];var j=[],re=A.showWhen,de=A.showDashDistance,Ie=A.format,Je=A.showTotalDistance;return j.push.apply(j,zs(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Ie,showDashDistance:de})).concat(zs(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Ie,showWhen:re})))),j}},{key:"setData",value:function(A){var j=this,re=A.map(function(de){var Ie,Je,zt;de.properties=Et(Et({},In()),de.properties);var un=(Ie=de.properties)===null||Ie===void 0?void 0:Ie.nodes;if(((Je=un)===null||Je===void 0?void 0:Je.length)!==2){var tr=Po(Mu(de).geometry.coordinates,2),Cr=tr[0],xi=tr[1],Li=Va(de),Io=Li[2],Ao=(Li[1]+Li[3])/2;un=[bi([Cr,xi]),bi([Io,Ao])],de.properties.nodes=un}var Xo=un[0],Ro=un[1],po=!!(!((zt=de.properties)===null||zt===void 0)&&zt.isActive),Gs=de.properties.line;return Gs||(Gs=j.handleCreatePolygonLine(Xo,Ro,{isActive:po}),de.properties.line=Gs),j.handleCreatePolygon([Xo,Ro],Gs,Et(Et({},de.properties),{},{isActive:po}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(de){return de.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(A,j){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=this.getBoundaryPositions(A,j).map(function(Ie){return bi(Ie)});return Kn(de,re)}},{key:"syncPolygonNodes",value:function(A,j){var re=A.properties.line,de=this.getBoundaryPositions(j[0],j[1]);return A.properties.nodes=j,A.geometry.coordinates=[de],this.setPolygonData(function(Ie){return Ie.map(function(Je){return ed(Je,A)?A:Je})}),this.setPointData(A.properties.isDraw?[j[0]]:j),re.properties.nodes.forEach(function(Ie,Je){Ie.geometry.coordinates=de[Je]}),re.geometry.coordinates=de,A}},{key:"onLineDragging",value:function(A){var j=this.dragPolygon,re=Po(this.previousPosition,2),de=re[0],Ie=re[1],Je=Hs(Bi(y.prototype),"onLineDragging",this).call(this,A);if(j){var zt=Po(Ia(A),2),un=zt[0],tr=zt[1];j.properties.nodes.forEach(function(Cr){var xi=Po(Cr.geometry.coordinates,2);Cr.geometry.coordinates=[xi[0]+un-de,xi[1]+tr-Ie]}),this.syncPolygonNodes(j,j.properties.nodes),this.setActivePolygon(j,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,j,this.getPolygonData())}return Je}},{key:"getBoundaryPositions",value:function(A,j){for(var re=this.options.circleSteps,de=Lu(A,j,{units:"meters"}),Ie=[],Je=0;re>Je;Je++)Ie.push(Nh(A,de,-360*Je/re,{units:"meters"}).geometry.coordinates);return Ie.push(Ie[0]),Ie}}]),y}(Uh),Lp=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).drawLineFinish=function(){var de,Ie=re.drawLine,Je=(de=Ie==null?void 0:Ie.properties.nodes)!==null&&de!==void 0?de:[];if(Ie&&(Je==null?void 0:Je.length)>1){re.setActiveLine(Ie);var zt=re.options,un=zt.autoActive,tr=zt.editable;un&&tr||re.handleLineUnClick(Ie),re.setHelper(tr&&un?"pointHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Ie,re.getLineData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawLineFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re}return Gr(y,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var A,j;return(A=(j=this.render.line)===null||j===void 0?void 0:j.getLayers())!==null&&A!==void 0?A:[]}},{key:"setData",value:function(A){var j=A.map(function(re){var de,Ie;return re.properties=Et(Et({},mt()),(de=re.properties)!==null&&de!==void 0?de:{}),!((Ie=re.properties.nodes)===null||Ie===void 0)&&Ie.length||(re.properties.nodes=so(re).map(function(Je){return bi(Je)})),re});this.source.setData({point:[],midPoint:[],dashLine:[],line:j}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var A;Hs(Bi(y.prototype),"bindPointRenderEvent",this).call(this),(A=this.pointRender)===null||A===void 0||A.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(A){var j,re=this,de=this.drawLine,Ie=(j=de==null?void 0:de.properties.nodes)!==null&&j!==void 0?j:[],Je=A.feature;if(ed(Je,jo(Ie)))requestAnimationFrame(function(){re.drawLineFinish()});else{var zt=Po(Je.geometry.coordinates,2);A.lngLat={lng:zt[0],lat:zt[1]},this.onPointCreate(A)}}},{key:"removeNode",value:function(A,j){var re,de=this.getTargetFeature(j),Ie=this.getTargetFeature(A,(re=de==null?void 0:de.properties.nodes)!==null&&re!==void 0?re:[]);if(de&&Ie){var Je,zt=(Je=de==null?void 0:de.properties.nodes)!==null&&Je!==void 0?Je:[];if(3>zt.length)return;this.syncLineNodes(de,zt.filter(function(un){return!ed(Ie,un)})),this.emit(v.DrawEvent.RemoveNode,Ie,de,this.getLineData()),this.emit(v.DrawEvent.Edit,de,this.getLineData())}}},{key:"onPointContextMenu",value:function(A){var j,re=this.editLine,de=A.feature,Ie=(j=re==null?void 0:re.properties.nodes)!==null&&j!==void 0?j:[];if(re&&Ie.length>=3)return this.removeNode(de,re),this.scene.setMapStatus({dragEnable:!0}),de}},{key:"onPointCreate",value:function(A){if(this.addable){var j=Hs(Bi(y.prototype),"onPointCreate",this).call(this,A);return j&&(this.setHelper("drawFinish"),this.emit(v.DrawEvent.AddNode,j,this.drawLine,this.getLineData())),j}}},{key:"onPointDragEnd",value:function(A){var j=this.editLine,re=Hs(Bi(y.prototype),"onPointDragEnd",this).call(this,A);return j&&re&&this.emit(v.DrawEvent.Edit,j,this.getLineData()),re}},{key:"onLineDragStart",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragStart",this).call(this,A);return j&&this.emit(v.DrawEvent.DragStart,j,this.getLineData()),j}},{key:"onLineDragging",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragging",this).call(this,A);return j&&this.emit(v.DrawEvent.Dragging,j,this.getLineData()),j}},{key:"onLineDragEnd",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragEnd",this).call(this,A);return j&&(this.emit(v.DrawEvent.DragEnd,j,this.getLineData()),this.emit(v.DrawEvent.Edit,j,this.getLineData())),j}},{key:"onMidPointClick",value:function(A){var j=this.editLine,re=Hs(Bi(y.prototype),"onMidPointClick",this).call(this,A);return j&&re&&(this.emit(v.DrawEvent.Edit,j,this.getLineData()),this.emit(v.DrawEvent.AddNode,re,j,this.getLineData())),re}},{key:"onSceneMouseMove",value:function(A){var j=this.drawLine;if(j){var re,de=jo(j.properties.nodes),Ie=Ia(A);this.options.adsorbOptions&&(Ie=(re=this.getAdsorbPosition(Ie))!==null&&re!==void 0?re:Ie),this.setDashLineData([vi([Ie,de.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(A){var j=this.getTargetFeature(A);j?this.setActiveLine(j):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var A=this.getLineData();this.drawLine&&(A=A.filter(function(j){return!j.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(j){return j.filter(function(re){return!re.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(A.map(function(j){return j.properties=Et(Et({},j.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),j}))}},{key:"enablePointRenderAction",value:function(){var A;Hs(Bi(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((A=this.pointRender)===null||A===void 0||A.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var A;Hs(Bi(y.prototype),"disablePointRenderAction",this).call(this),(A=this.pointRender)===null||A===void 0||A.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Hs(Bi(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Hs(Bi(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Hs(Bi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),y}(su),nf=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).bindPointRenderEvent(),re}return Gr(y,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(A){var j=Et(Et({},this.getCommonOptions(A)),{},{helper:zo(Pl),initialData:A.initialData});return j.style.point=Un,j}},{key:"bindEnableEvent",value:function(){Hs(Bi(y.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Hs(Bi(y.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var A,j;return(A=(j=this.render.point)===null||j===void 0?void 0:j.getLayers())!==null&&A!==void 0?A:[]}},{key:"setData",value:function(A){this.setPointData(A.map(function(j){var re;return j.properties=Et(Et({},He()),(re=j.properties)!==null&&re!==void 0?re:{}),j}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(A){if(this.addable){var j=Hs(Bi(y.prototype),"onPointCreate",this).call(this,A);if(j)return this.options.editable&&this.setHelper("pointHover"),this.emit(v.DrawEvent.Add,j,this.getData()),j}else this.setPointData(function(re){return re.map(function(de){return de.properties=Et(Et({},de.properties),{},{isHover:!1,isActive:!1}),de})})}},{key:"onPointMouseMove",value:function(A){var j=Hs(Bi(y.prototype),"onPointMouseMove",this).call(this,A);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),j}},{key:"onPointMouseOut",value:function(A){var j=Hs(Bi(y.prototype),"onPointMouseOut",this).call(this,A);return this.setHelper(this.addable?"draw":null),j}},{key:"onPointDragStart",value:function(A){var j=Hs(Bi(y.prototype),"onPointDragStart",this).call(this,A);return this.setHelper("pointDrag"),this.emit(v.DrawEvent.DragStart,j,this.getData()),j}},{key:"onPointDragging",value:function(A){var j=Hs(Bi(y.prototype),"onPointDragging",this).call(this,A);return j&&this.options.editable&&this.emit(v.DrawEvent.Dragging,j,this.getData()),j}},{key:"onPointDragEnd",value:function(A){var j=Hs(Bi(y.prototype),"onPointDragEnd",this).call(this,A);return j&&this.options.editable&&(this.setHelper("pointHover"),this.emit(v.DrawEvent.DragEnd,j,this.getData()),this.emit(v.DrawEvent.Edit,j,this.getData())),j}},{key:"bindThis",value:function(){Hs(Bi(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(A){}},{key:"setActiveFeature",value:function(A){var j=this.getTargetFeature(A);this.setPointData(function(re){return re.map(function(de){return de.properties.isActive=ed(j,de),de})})}},{key:"resetFeatures",value:function(){this.setPointData(function(A){return A.map(function(j){return j.properties=Et(Et({},j.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),j})})}}]),y}(Ya),zp=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).drawPolygonFinish=function(){var de,Ie=re.drawPolygon,Je=(de=Ie==null?void 0:Ie.properties.nodes)!==null&&de!==void 0?de:[];if(Ie&&Je.length>=3){Ie.properties.isDraw=!1,re.syncPolygonNodes(Ie,Je),re.setActivePolygon(Ie);var zt=re.options,un=zt.autoActive,tr=zt.editable;un&&tr||re.handlePolygonUnClick(Ie),re.setHelper(tr?un?"pointHover":"polygonHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Ie,re.getPolygonData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawPolygonFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Gr(y,[{key:"getDefaultOptions",value:function(A){return Et(Et({},Hs(Bi(y.prototype),"getDefaultOptions",this).call(this,A)),{},{liveUpdate:!1})}},{key:"setData",value:function(A){var j=A.map(function(re){var de,Ie;if(re.properties=Et(Et({},In()),(de=re.properties)!==null&&de!==void 0?de:{}),!(!((Ie=re.properties.nodes)===null||Ie===void 0)&&Ie.length)){var Je=so(re);Je=Je.slice(0,Je.length-1),re.properties.nodes=Je.map(function(un){return bi(un)})}if(!re.properties.line){var zt=re.properties.nodes;re.properties.line=Kn([].concat(zs(zt),[bi(Lc(zt).geometry.coordinates)]))}return re});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:j,line:j.map(function(re){return re.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(A){if(this.addable&&!this.dragPoint){var j=Hs(Bi(y.prototype),"onPointCreate",this).call(this,A),re=this.drawPolygon,de=this.drawLine;return j&&(re?(this.syncPolygonNodes(re,[].concat(zs(re.properties.nodes),[j])),this.setDashLineData([vi([Ia(A),re.properties.nodes[0].geometry.coordinates])]),re.properties.nodes.length>1&&this.setHelper("drawFinish")):de&&(this.handleCreatePolygon([j],de),this.setHelper("drawContinue")),this.emit(v.DrawEvent.AddNode,j,re,this.getPolygonData())),j}}},{key:"onPointClick",value:function(A){var j=this,re=this.drawPolygon,de=A.feature;if(re){var Ie=re.properties.nodes;if(Ie.length<3||!ed(Lc(Ie),de)&&!ed(jo(Ie),de)){var Je=Po(de.geometry.coordinates,2);A.lngLat={lng:Je[0],lat:Je[1]},this.onPointCreate(A)}else requestAnimationFrame(function(){j.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(A){var j=this.dragPoint,re=this.editPolygon;if(j&&re){var de=re.properties.line;de.properties.nodes=de.properties.nodes.map(function(xi){return ed(xi,j)?j:xi});var Ie=de.properties.nodes,Je=Ie.slice(0,Ie.length-1),zt=Lc(Ie),un=jo(Ie),tr=ed(zt,j)||ed(un,j);if(tr&&(zt.geometry.coordinates=un.geometry.coordinates=Ia(A)),this.options.adsorbOptions&&tr){var Cr=this.resetAdsorbLngLat(A);Cr&&(zt.geometry.coordinates=un.geometry.coordinates=Cr)}Hs(Bi(y.prototype),"onPointDragging",this).call(this,A),this.syncPolygonNodes(re,Je),this.setActivePolygon(re)}return j}},{key:"onLineDragging",value:function(A){var j=this.dragPolygon,re=Hs(Bi(y.prototype),"onLineDragging",this).call(this,A);if(re&&j){var de=re.properties.nodes;this.syncPolygonNodes(j,de.slice(0,de.length-1)),this.emit(v.DrawEvent.Dragging,j,this.getPolygonData())}return re}},{key:"onMidPointClick",value:function(A){var j=Hs(Bi(y.prototype),"onMidPointClick",this).call(this,A),re=this.editPolygon;return j&&re&&(this.emit(v.DrawEvent.Edit,re,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,j,re,this.getPolygonData())),j}},{key:"onSceneMouseMove",value:function(A){var j,re=this.drawPolygon,de=(j=re==null?void 0:re.properties.nodes)!==null&&j!==void 0?j:[];if(re&&de.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(A);var Ie=Ia(A),Je=[];if(Je.push(vi([Ie,Lc(de).geometry.coordinates])),de.length>1&&Je.push(vi([Ie,jo(de).geometry.coordinates])),this.options.liveUpdate&&de.length>=2){var zt=so(As(de));re.geometry.coordinates=[[].concat(zs(zt),[Ie,zt[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Je),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(A,j){var re,de=this.getTargetFeature(j),Ie=this.getTargetFeature(A,(re=de==null?void 0:de.properties.nodes)!==null&&re!==void 0?re:[]);if(de&&Ie){var Je,zt=(Je=de==null?void 0:de.properties.nodes)!==null&&Je!==void 0?Je:[];if(4>zt.length)return;this.syncPolygonNodes(de,zt.filter(function(un){return!ed(Ie,un)})),this.emit(v.DrawEvent.RemoveNode,Ie,de,this.getLineData()),this.emit(v.DrawEvent.Edit,de,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(A){var j,re=this.editPolygon,de=A.feature,Ie=(j=re==null?void 0:re.properties.nodes)!==null&&j!==void 0?j:[];if(re&&Ie.length>=4)return Ie.find(function(Je){return ed(Je,de)})||(de=Ie[0]),this.removeNode(de,re),de}},{key:"bindPointRenderEvent",value:function(){var A;Hs(Bi(y.prototype),"bindPointRenderEvent",this).call(this),(A=this.pointRender)===null||A===void 0||A.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var A;Hs(Bi(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((A=this.pointRender)===null||A===void 0||A.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var A;Hs(Bi(y.prototype),"disablePointRenderAction",this).call(this),(A=this.pointRender)===null||A===void 0||A.disableContextMenu()}}]),y}(bc),P0=function(Le){ko(y,Le);var f=Js(y);function y(A,j){var re;return vn(this,y),(re=f.call(this,A,j)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Gr(y,[{key:"getDefaultOptions",value:function(A){var j=Hs(Bi(y.prototype),"getDefaultOptions",this).call(this,A);return j.helper&&(j.helper=Et(Et({},j.helper),Wa)),j}},{key:"setData",value:function(A){var j=this,re=A.map(function(de){var Ie,Je,zt;de.properties=Et(Et({},In()),(Ie=de.properties)!==null&&Ie!==void 0?Ie:{});var un=de.properties.nodes;if(((Je=un)===null||Je===void 0?void 0:Je.length)!==2){var tr=Po(Va(de),4),Cr=tr[2],xi=tr[3];un=[bi([tr[0],tr[1]]),bi([Cr,xi])],de.properties.nodes=un}var Li=Po(un,2),Io=Li[0],Ao=Li[1],Xo=!!(!((zt=de.properties)===null||zt===void 0)&&zt.isActive),Ro=de.properties.line;return Ro||(Ro=j.handleCreatePolygonLine(Io,Ao,{isActive:Xo}),de.properties.line=Ro),j.handleCreatePolygon([Io,Ao],Ro,Et(Et({},de.properties),{},{isActive:Xo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(de){return de.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(A,j){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=so(xf(As([A,j]))).map(function(Ie,Je){return Je===0?A:Je===2?j:bi(Ie)});return Kn(de,re)}},{key:"syncPolygonNodes",value:function(A,j){var re=A.properties.line,de=so(xf(As(j)));A.properties.nodes=j,A.geometry.coordinates=[de],this.setPolygonData(function(zt){return zt.map(function(un){return ed(un,A)?A:un})}),this.setPointData(A.properties.isDraw?[j[0]]:j);var Ie=re.properties.nodes,Je=de.filter(function(zt){return!Ve(zt,j[0].geometry.coordinates)&&!Ve(zt,j[1].geometry.coordinates)});return Ie.forEach(function(zt,un){var tr=[0,0];switch(un){case 0:tr=j[0].geometry.coordinates;break;case 1:tr=Je[0];break;case 2:tr=j[1].geometry.coordinates;break;case 3:tr=Je[1];break;case 4:tr=zo(j[0].geometry.coordinates)}zt.geometry.coordinates=tr}),re.geometry.coordinates=de,A}},{key:"onLineDragging",value:function(A){var j=Hs(Bi(y.prototype),"onLineDragging",this).call(this,A),re=this.dragPolygon;if(j&&re){var de=re.properties.line.properties.nodes;this.syncPolygonNodes(re,[de[0],de[2]]),this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,re,this.getPolygonData())}return j}}]),y}(Uh),zm=function(Le,f){for(var y=Le;y&&!Array.from(y.classList).includes(f);)y=y.parentElement;return y},Zm=["point","line","polygon","rect","circle","clear"],Av={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},a0={point:nf,line:Lp,polygon:zp,rect:P0,circle:Cs},Sm="data-draw-type",l0="l7-draw-control",$f="".concat(l0,"__btn"),yg="".concat($f,"--active");(function(Le){var f,y,A,j,re,de='',Ie=(Ie=document.getElementsByTagName("script"))[Ie.length-1].getAttribute("data-injectcss");if(Ie&&!Le.__iconfont__svg__cssinject__){Le.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(zt){console&&console.log(zt)}}function Je(){re||(re=!0,A())}f=function(){var zt,un=document.createElement("div");un.innerHTML=de,de=null,(un=un.getElementsByTagName("svg")[0])&&(un.setAttribute("aria-hidden","true"),un.style.position="absolute",un.style.width=0,un.style.height=0,un.style.overflow="hidden",(zt=document.body).firstChild?function(tr,Cr){Cr.parentNode.insertBefore(tr,Cr)}(un,zt.firstChild):zt.appendChild(un))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(f,0):(y=function(){document.removeEventListener("DOMContentLoaded",y,!1),f()},document.addEventListener("DOMContentLoaded",y,!1)):document.attachEvent&&(A=f,j=Le.document,re=!1,function zt(){try{j.documentElement.doScroll("left")}catch(un){return void setTimeout(zt,50)}Je()}(),j.onreadystatechange=function(){j.readyState=="complete"&&(j.onreadystatechange=null,Je())})})(window),Sa(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var Kp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ag=/^\w*$/,Pf=function(Le,f){if(Sp(Le))return!1;var y=typeof Le;return!(y!="number"&&y!="symbol"&&y!="boolean"&&Le!=null&&!Dd(Le))||Ag.test(Le)||!Kp.test(Le)||f!=null&&Le in Object(f)};function bp(Le,f){if(typeof Le!="function"||f!=null&&typeof f!="function")throw new TypeError("Expected a function");var y=function(){var A=arguments,j=f?f.apply(this,A):A[0],re=y.cache;if(re.has(j))return re.get(j);var de=Le.apply(this,A);return y.cache=re.set(j,de)||re,de};return y.cache=new(bp.Cache||rh),y}bp.Cache=rh;var Hm=bp,yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qp=/\\(\\)?/g,Ic=function(Le){var f=Hm(Le,function(A){return y.size===500&&y.clear(),A}),y=f.cache;return f}(function(Le){var f=[];return Le.charCodeAt(0)===46&&f.push(""),Le.replace(yp,function(y,A,j,re){f.push(j?re.replace(Qp,"$1"):A||y)}),f}),Dm=zf?zf.prototype:void 0,w0=Dm?Dm.toString:void 0,fc=function Le(f){if(typeof f=="string")return f;if(Sp(f))return bu(f,Le)+"";if(Dd(f))return w0?w0.call(f):"";var y=f+"";return y=="0"&&1/f==-1/0?"-0":y},ku=function(Le){return Le==null?"":fc(Le)},kv=function(Le,f){return Sp(Le)?Le:Pf(Le,f)?[Le]:Ic(ku(Le))},Gm=function(Le){if(typeof Le=="string"||Dd(Le))return Le;var f=Le+"";return f=="0"&&1/Le==-1/0?"-0":f},lg=function(Le,f){for(var y=0,A=(f=kv(f,Le)).length;Le!=null&&A>y;)Le=Le[Gm(f[y++])];return y&&y==A?Le:void 0},Af=function(Le,f,y){var A=-1,j=Le.length;0>f&&(f=-f>j?0:j+f),0>(y=y>j?j:y)&&(y+=j),j=f>y?0:y-f>>>0,f>>>=0;for(var re=Array(j);++Af.length?Le:lg(Le,Af(f,0,-1))},Jd=function(Le,f){return f=kv(f,Le),(Le=C0(Le,f))==null||delete Le[Gm(jo(f))]},F1=function(Le){return yo(Le)?void 0:Le},mm=zf?zf.isConcatSpreadable:void 0,u0=function(Le){return Sp(Le)||Hp(Le)||!!(mm&&Le&&Le[mm])},c0=function Le(f,y,A,j,re){var de=-1,Ie=f.length;for(A||(A=u0),re||(re=[]);++de0&&A(Je)?y>1?Le(Je,y-1,A,j,re):d0(re,Je):j||(re[re.length]=Je)}return re},Vs=function(Le){return Le!=null&&Le.length?c0(Le,1):[]},Xy=function(Le){return wu(ws(Le,void 0,Vs),Le+"")}(function(Le,f){var y={};if(Le==null)return y;var A=!1;f=bu(f,function(re){return re=kv(re,Le),A||(A=re.length>1),re}),Np(Le,Bm(Le),y),A&&(y=fo(y,7,F1));for(var j=f.length;j--;)Jd(y,f[j]);return y}),vg=Xy,ev=function(Le){ko(y,Le);var f=Js(y);function y(A){var j,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vn(this,y),(j=f.call(this,re)).controlOption=void 0,j.sceneInstance=void 0,j.drawMap={},j.btnMap={},j.activeType=null,j.emitDataChange=W(function(){j.emit(v.ControlEvent.DataChange,j.getDrawData())},16),j.emitDrawSelect=function(de,Ie){j.emit(v.ControlEvent.DrawSelect,de,Ie)},j.sceneInstance=A,j.controlOption=Et(Et({},j.getDefault()),re||{}),j.onBtnClick=j.onBtnClick.bind(ps(j)),j}return Gr(y,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return Et(Et({},Hs(Bi(y.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(A){return Hs(Bi(y.prototype),"addTo",this).call(this,A),this.init(),this}},{key:"onAdd",value:function(){var A=this.controlOption,j=A.className,re=A.style,de=R.DOM.create("div","".concat(l0," ").concat(j));return re&&de.setAttribute("style",re),de}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(A){A.clear(!0)})}},{key:"init",value:function(){var A,j=this,re=[];Object.entries(this.controlOption.drawConfig).filter(function(de){var Ie=Po(de,2);return Ie[1]}).sort(function(de,Ie){var Je=Po(de,2)[1],zt=Po(Ie,2)[1],un=Number.MAX_SAFE_INTEGER;return(typeof Je=="boolean"?un:Je.order)-(typeof zt=="boolean"?un:zt.order)}).map(function(de){var Ie=Po(de,2),Je=Ie[1];return[Ie[0],Wt(Je)==="object"?vg(Je,"order"):Je]}).forEach(function(de){var Ie=Po(de,2),Je=Ie[0],zt=Ie[1];if(Wt(zt)==="object"&&zt.button){var un=zt.button;un.classList.contains("l7-draw-control__btn")||un.classList.add("l7-draw-control__btn"),j.btnMap[Je]=un,re.push(un)}else if(zt&&Zm.includes(Je)){var tr=j.initBtn(Je);tr.addEventListener("click",j.onBtnClick),re.push(tr),j.btnMap[Je]=tr;var Cr=a0[Je];if(Cr&&j.sceneInstance){var xi=new Cr(j.sceneInstance,Et(Et({},j.controlOption.commonDrawOptions),typeof zt=="boolean"?{}:zt));xi.on(v.DrawEvent.Change,j.emitDataChange),xi.on(v.DrawEvent.Select,function(Li){j.emitDrawSelect(Je,Li)}),j.drawMap[Je]=xi}}}),(A=this.container).append.apply(A,re),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Oo(nd(this.drawMap).map(function(A){var j=Po(A,2);return[j[0],j[1].getData()]}))}},{key:"getTypeDraw",value:function(A){var j;return(j=this.drawMap[A])!==null&&j!==void 0?j:null}},{key:"onBtnClick",value:function(A){var j=zm(A.target,$f);if(j){var re=j.getAttribute(Sm);re==="clear"?this.clearDrawData():this.onDrawClick(re)}}},{key:"setActiveType",value:function(A){var j=null,re=this.activeType;if(re){var de,Ie=this.btnMap[re];if(Ie){R.DOM.removeClass(Ie,yg);var Je=this.controlOption.activeButtonClassName;Je&&R.DOM.removeClass(Ie,Je)}(de=this.drawMap[re])===null||de===void 0||de.disable(),j=null}if(re!==A&&A){var zt;(zt=this.drawMap[A])===null||zt===void 0||zt.enable();var un=this.btnMap[A];un&&R.DOM.addClass(un,"".concat(yg," ").concat(this.controlOption.activeButtonClassName)),j=A}this.activeType=j,this.emit(v.ControlEvent.DrawChange,j)}},{key:"onDrawClick",value:function(A){this.setActiveType(A)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(A){A==null||A.clear()}),this.emit(v.ControlEvent.DrawClear)}},{key:"initBtn",value:function(A){var j=R.DOM.create("button","".concat($f," ").concat(this.controlOption.buttonClassName));return j.innerHTML=``),j.setAttribute(Sm,A),j}}]),y}(R.Control);v.ACTIVE_COLOR=Ee,v.BaseMode=Ta,v.CircleDrawer=Cs,v.DEFAULT_ADSORB_CONFIG=At,v.DEFAULT_AREA_OPTIONS=Tn,v.DEFAULT_COMMON_OPTIONS=Ne,v.DEFAULT_CURSOR_MAP=w,v.DEFAULT_DISTANCE_OPTIONS=hn,v.DEFAULT_HISTORY_CONFIG=ar,v.DEFAULT_KEYBOARD_CONFIG=ft,v.DEFAULT_MID_POINT_STYLE=rn,v.DEFAULT_NODE_NORMAL_STYLE=Gt,v.DEFAULT_NODE_STYLE=Ir,v.DEFAULT_POINT_NORMAL_STYLE=at,v.DEFAULT_POINT_STYLE=Un,v.DEFAULT_POPUP_CONFIG=wt,v.DEFAULT_SOURCE_DATA=b,v.DEFAULT_STYLE=J,v.DEFAULT_TEXT_NORMAL_STYLE=G,v.DashLineRender=pg,v.DragPolygonMode=Uh,v.DrawCircle=Cs,v.DrawControl=ev,v.DrawLine=Lp,v.DrawPoint=nf,v.DrawPolygon=zp,v.DrawRect=P0,v.LayerRender=Ip,v.LineDrawer=Lp,v.LineMode=su,v.LineRender=le,v.MidPointMode=Al,v.MidPointRender=ge,v.NORMAL_COLOR=ie,v.PointDrawer=nf,v.PointMode=Ya,v.PointRender=rt,v.PolygonDrawer=zp,v.PolygonMode=bc,v.PolygonRender=pn,v.RENDER_MAP=D,v.RectDrawer=P0,v.SceneRender=sr,v.Source=Bs,v.TextRender=Ae,v.calcAreaText=Hl,v.calcDistanceTextsByLine=za,v.createDashLine=vi,v.createLineFeature=Kn,v.createPointFeature=bi,v.createPolygonFeature=Co,v.findMinIndex=ka,v.getAdsorbFeature=wo,v.getAdsorbLine=Rs,v.getAdsorbPoint=is,v.getDefaultLineProperties=mt,v.getDefaultPointProperties=He,v.getDefaultPolygonProperties=In,v.getLineCenterPoint=$s,v.getLngLat=Fa,v.getMapDom=Eo,v.getParentByClassName=zm,v.getPosition=Ia,v.getSingleColorStyle=function(Le){return{point:{normal:{color:Le},hover:{color:Le},active:{color:Le}},line:{normal:{color:Le},hover:{color:Le},active:{color:Le}},polygon:{normal:{color:Le},hover:{color:Le},active:{color:Le},style:{opacity:.2}},text:{normal:{color:Le},active:{color:Le}},midPoint:{normal:{color:Le}},dashLine:{normal:{color:Le}}}},v.getUuid=$l,v.isDev=!1,v.isSameFeature=ed,v.resetEventLngLat=Vl,v.splitByPosition=Ms,v.transLngLat2Position=os,v.updateTargetFeature=Ge,Object.defineProperty(v,"__esModule",{value:!0})})},47766:function(gt,Y,_){"use strict";_.r(Y),_.d(Y,{AJAXError:function(){return Ss},AttributeType:function(){return wd},BKDRHash:function(){return Ad},BaiduMap:function(){return J6},BaseLayer:function(){return i_},BaseMapService:function(){return Kv},BaseMapWrapper:function(){return V2},BaseModel:function(){return Gu},BasePostProcessingPass:function(){return Cb},BlendType:function(){return gd},ButtonControl:function(){return Lt},CameraUniform:function(){return b_},CanvasLayer:function(){return RT},CanvasUpdateType:function(){return Mp},CityBuildingLayer:function(){return kV},Control:function(){return ue},CoordinateSystem:function(){return Oh},CoordinateUniform:function(){return Wd},DOM:function(){return v},Earth:function(){return TN},EarthLayer:function(){return _j},ExportImage:function(){return Hu},FrequencyController:function(){return Is},Fullscreen:function(){return Cp},GaodeMap:function(){return Z9},GaodeMapV1:function(){return DH},GaodeMapV2:function(){return Z9},GeoLocate:function(){return eg},GeometryLayer:function(){return WV},HeatmapLayer:function(){return xM},IDebugLog:function(){return Bv},ILayerStage:function(){return Ll},ImageLayer:function(){return $T},InteractionEvent:function(){return Xp},LRUCache:function(){return tf},LayerPopup:function(){return H1},LayerSwitch:function(){return pu},LineLayer:function(){return Sv},LineTriangulation:function(){return cn},LinearDir:function(){return Zc},LoadTileDataStatus:function(){return qp},Logo:function(){return Ot},Map:function(){return AN},MapLibre:function(){return zN},MapServiceEvent:function(){return x_},MapTheme:function(){return Es},MapType:function(){return Ih},Mapbox:function(){return Oz},Marker:function(){return P2},MarkerLayer:function(){return x},MaskLayer:function(){return WO},MaskOperation:function(){return ss},MouseLocation:function(){return Hd},PassType:function(){return Rd},PointFillTriangulation:function(){return ln},PointLayer:function(){return NC},PolygonLayer:function(){return FO},PopperControl:function(){return as},Popup:function(){return n0},PositionType:function(){return uo},RasterLayer:function(){return NM},RasterTileType:function(){return Gg},Satistics:function(){return R},Scale:function(){return mg},ScaleTypes:function(){return B0},Scene:function(){return eX},SceneConifg:function(){return Mo},SceneEventList:function(){return A2},SelectControl:function(){return _l},SizeUnitType:function(){return Cf},Source:function(){return Ew},SourceTile:function(){return Mh},StencilType:function(){return Pd},StyleScaleType:function(){return Ux},TYPES:function(){return Ms},TencentMap:function(){return jG},TextureBlend:function(){return Xd},TileDebugLayer:function(){return z7},TilesetManager:function(){return Wf},UpdateTileStrategy:function(){return Dp},Viewport:function(){return bA},WindLayer:function(){return tA},WorkerSourceMap:function(){return Fr},Zoom:function(){return j0},aProjectFlat:function(){return xc},amap2Project:function(){return xh},amap2UnProject:function(){return Cd},anchorTranslate:function(){return kt},anchorType:function(){return tn},applyAnchorClass:function(){return en},bBoxToBounds:function(){return gh},bindAll:function(){return es},boundsContains:function(){return Dh},calAngle:function(){return Ud},calDistance:function(){return pd},calculateCentroid:function(){return Qf},calculatePointsCenterAndRadius:function(){return ep},container:function(){return iy},createLayerContainer:function(){return Bx},createSceneContainer:function(){return H_},decodePickingColor:function(){return qi},djb2hash:function(){return jd},encodePickingColor:function(){return Vr},executeWorkerTask:function(){return kr},expandUrl:function(){return Nc},extent:function(){return Tu},flow:function(){return Of},formatImage:function(){return an},generateCatRamp:function(){return Mr},generateColorRamp:function(){return ii},generateCustomRamp:function(){return to},generateLinearRamp:function(){return nr},generateQuantizeRamp:function(){return rr},getAngle:function(){return uf},getArrayBuffer:function(){return ai},getBBoxFromPoints:function(){return tp},getCullFace:function(){return Vi},getData:function(){return Mn},getDefaultDomain:function(){return Wr},getImage:function(){return kn},getJSON:function(){return Do},getProtocolAction:function(){return Ho},getReferrer:function(){return Pu},getTileIndices:function(){return kp},getTileWarpXY:function(){return Pp},getURLFromTemplate:function(){return Xh},getWMTSURLFromTemplate:function(){return $d},gl:function(){return Di},guid:function(){return Su},isAndroid:function(){return Bl},isColor:function(){return Si},isImageBitmap:function(){return Aa},isPC:function(){return lu},isURLTemplate:function(){return ah},isWorker:function(){return ll},isiOS:function(){return fu},latitude:function(){return ph},lazyInject:function(){return T0},lazyMultiInject:function(){return fT},lineAtOffset:function(){return Rf},lineAtOffsetAsyc:function(){return Yd},lineStyleType:function(){return Vc},lngLatInExtent:function(){return xu},lngLatToMeters:function(){return Ah},lnglatDistance:function(){return md},lodashUtil:function(){return Ns},longitude:function(){return ld},makeXMLHttpRequestPromise:function(){return qo},metersToLngLat:function(){return Td},normalize:function(){return ap},osmLonLat2TileXY:function(){return wf},osmTileXY2LonLat:function(){return up},packCircleVertex:function(){return qL},padBounds:function(){return zd},polygonFillTriangulation:function(){return gn},postData:function(){return $o},project:function(){return Bd},removeDuplicateUniforms:function(){return Pt},rgb2arr:function(){return ni},sameOrigin:function(){return nt},setL7WorkerSource:function(){return wr},tileToBounds:function(){return Cu},tranfrormCoord:function(){return zc},unProjectFlat:function(){return Hh},validateLngLat:function(){return lc},version:function(){return tX}});var v={};_.r(v),_.d(v,{DPR:function(){return _i},addClass:function(){return Ga},addStyle:function(){return so},appendElementType:function(){return Va},clearChildren:function(){return hl},create:function(){return As},css2Style:function(){return ra},empty:function(){return qu},findParentElement:function(){return Xu},getClass:function(){return ec},getContainer:function(){return vl},getDiffRect:function(){return Ka},getStyleList:function(){return Ui},getViewPortScale:function(){return Jr},hasClass:function(){return Ac},printCanvas:function(){return Zr},remove:function(){return ks},removeClass:function(){return zu},removeStyle:function(){return hs},setChecked:function(){return ul},setClass:function(){return vc},setTransform:function(){return zn},setUnDraggable:function(){return kl},splitWords:function(){return io},triggerResize:function(){return ur},trim:function(){return ds}});var R={};_.r(R),_.d(R,{getColumn:function(){return Gc},getSatByColumn:function(){return vd},max:function(){return hp},mean:function(){return Tf},min:function(){return od},mode:function(){return Zd},statMap:function(){return Wc},sum:function(){return wh}});var w={};_.r(w),_.d(w,{add:function(){return yl},adjoint:function(){return Gm},clone:function(){return Qp},copy:function(){return Ic},create:function(){return yp},determinant:function(){return lg},equals:function(){return vu},exactEquals:function(){return qc},frob:function(){return Oa},fromQuat:function(){return zt},fromQuat2:function(){return A},fromRotation:function(){return vg},fromRotationTranslation:function(){return y},fromRotationTranslationScale:function(){return Ie},fromRotationTranslationScaleOrigin:function(){return Je},fromScaling:function(){return Xy},fromTranslation:function(){return Vs},fromValues:function(){return Dm},fromXRotation:function(){return ev},fromYRotation:function(){return Le},fromZRotation:function(){return f},frustum:function(){return un},getRotation:function(){return de},getScaling:function(){return re},getTranslation:function(){return j},identity:function(){return fc},invert:function(){return kv},lookAt:function(){return Ro},mul:function(){return kc},multiply:function(){return Af},multiplyScalar:function(){return Fu},multiplyScalarAndAdd:function(){return Eu},ortho:function(){return Ao},orthoNO:function(){return Io},orthoZO:function(){return Xo},perspective:function(){return Cr},perspectiveFromFieldOfView:function(){return Li},perspectiveNO:function(){return tr},perspectiveZO:function(){return xi},rotate:function(){return F1},rotateX:function(){return mm},rotateY:function(){return u0},rotateZ:function(){return c0},scale:function(){return Jd},set:function(){return w0},str:function(){return Gs},sub:function(){return On},subtract:function(){return cu},targetTo:function(){return po},translate:function(){return C0},transpose:function(){return ku}});var b={};_.r(b),_.d(b,{add:function(){return xV},angle:function(){return Kk},bezier:function(){return XJ},ceil:function(){return CV},clone:function(){return TC},copy:function(){return _V},create:function(){return Pb},cross:function(){return $3},dist:function(){return QJ},distance:function(){return Hk},div:function(){return JJ},divide:function(){return wV},dot:function(){return M2},equals:function(){return qJ},exactEquals:function(){return OF},floor:function(){return LF},forEach:function(){return FF},fromValues:function(){return nm},hermite:function(){return KJ},inverse:function(){return RF},len:function(){return W3},length:function(){return U3},lerp:function(){return Z0},max:function(){return ay},min:function(){return nM},mul:function(){return NF},multiply:function(){return PF},negate:function(){return rM},normalize:function(){return US},random:function(){return kF},rotateX:function(){return ox},rotateY:function(){return TV},rotateZ:function(){return iM},round:function(){return SV},scale:function(){return Wx},scaleAndAdd:function(){return zS},set:function(){return bV},sqrDist:function(){return $S},sqrLen:function(){return L1},squaredDistance:function(){return MF},squaredLength:function(){return Gk},str:function(){return DV},sub:function(){return oM},subtract:function(){return IF},transformMat3:function(){return YJ},transformMat4:function(){return V3},transformQuat:function(){return EV},zero:function(){return AV}});var B={},V={},O=function(d){return V[d]},L=function(d,l){V[d]=l},S=function(d){return B[d]},g=function(d,l){B[d]=l},T={},k={},K=34,he=10,ae=13;function fe(o){return new Function("d","return {"+o.map(function(d,l){return JSON.stringify(d)+": d["+l+'] || ""'}).join(",")+"}")}function _e(o,d){var l=fe(o);return function(c,u){return d(l(c),u,o)}}function be(o){var d=Object.create(null),l=[];return o.forEach(function(c){for(var u in c)u in d||l.push(d[u]=u)}),l}function xe(o,d){var l=o+"",c=l.length;return c9999?"+"+xe(o,6):xe(o,4)}function We(o){var d=o.getUTCHours(),l=o.getUTCMinutes(),c=o.getUTCSeconds(),u=o.getUTCMilliseconds();return isNaN(o)?"Invalid Date":Xe(o.getUTCFullYear(),4)+"-"+xe(o.getUTCMonth()+1,2)+"-"+xe(o.getUTCDate(),2)+(u?"T"+xe(d,2)+":"+xe(l,2)+":"+xe(c,2)+"."+xe(u,3)+"Z":c?"T"+xe(d,2)+":"+xe(l,2)+":"+xe(c,2)+"Z":l||d?"T"+xe(d,2)+":"+xe(l,2)+"Z":"")}function dt(o){var d=new RegExp('["'+o+` +\r]`),l=o.charCodeAt(0);function c(Fe,bt){var Bt,Cn,An=u(Fe,function(Pr,ti){if(Bt)return Bt(Pr,ti-1);Cn=Pr,Bt=bt?_e(Pr,bt):fe(Pr)});return An.columns=Cn||[],An}function u(Fe,bt){var Bt=[],Cn=Fe.length,An=0,Pr=0,ti,ho=Cn<=0,bo=!1;Fe.charCodeAt(Cn-1)===he&&--Cn,Fe.charCodeAt(Cn-1)===ae&&--Cn;function Ds(){if(ho)return k;if(bo)return bo=!1,T;var aa,Ua=An,pl;if(Fe.charCodeAt(Ua)===K){for(;An++=Cn?ho=!0:(pl=Fe.charCodeAt(An++))===he?bo=!0:pl===ae&&(bo=!0,Fe.charCodeAt(An)===he&&++An),Fe.slice(Ua+1,aa-1).replace(/""/g,'"')}for(;An=200&&l.status<300||l.status===0)&&l.response!==null){var m=l.response;if(o.type==="json")try{m=JSON.parse(l.response)}catch(M){return d(M)}d(null,m,l.getResponseHeader("Cache-Control"),l.getResponseHeader("Expires"),l)}else{var E=new Blob([l.response],{type:l.getResponseHeader("Content-Type")});d(new Ss(l.status,l.statusText,c.toString(),E))}},l.cancel=l.abort,l.send(o.body),l}function qo(o){return new Promise(function(d,l){Pe(o,function(c,u,m,E,M){c?l({err:c,data:null,xhr:M}):d({err:null,data:u,cacheControl:m,expires:E,xhr:M})})})}function Ki(o,d){return Pe(o,d)}var Do=function(d,l){var c=Ho(d.url)||Ki;return c((0,Oe.Z)((0,Oe.Z)({},d),{},{type:"json"}),l)},ai=function(d,l){var c=Ho(d.url)||Ki;return c((0,Oe.Z)((0,Oe.Z)({},d),{},{type:"arrayBuffer"}),l)},$o=function(d,l){return Ki((0,Oe.Z)((0,Oe.Z)({},d),{},{method:"POST"}),l)},Mn=function(d,l){return Ki((0,Oe.Z)((0,Oe.Z)({},d),{},{method:"GET"}),l)};function nt(o){var d=window.document.createElement("a");return d.href=o,d.protocol===window.document.location.protocol&&d.host===window.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Kt(o,d){var l=new window.Image,c=window.URL||window.webkitURL;l.crossOrigin="anonymous",l.onload=function(){d(null,l),c.revokeObjectURL(l.src),l.onload=null,window.requestAnimationFrame(function(){l.src=Dt})},l.onerror=function(){return d(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 u=new Blob([new Uint8Array(o)],{type:"image/png"});l.src=o.byteLength?c.createObjectURL(u):Dt}function mn(o,d){var l=new Blob([new Uint8Array(o)],{type:"image/png"});createImageBitmap(l).then(function(c){d(null,c)}).catch(function(c){d(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var kn=function(d,l,c){var u=function(E,M){if(E)l(E);else if(M){var Z=typeof createImageBitmap=="function",ne=c?c(M):M;Z?mn(ne,l):Kt(ne,l)}};return d.type==="json"?Do(d,u):ai(d,u)},an=function(d,l){var c=typeof createImageBitmap=="function";c?mn(d,l):Kt(d,l)},tn=function(o){return o.CENTER="center",o.TOP="top",o["TOP-LEFT"]="top-left",o["TOP-RIGHT"]="top-right",o.BOTTOM="bottom",o["BOTTOM-LEFT"]="bottom-left",o["BOTTOM-RIGHT"]="bottom-right",o.LEFT="left",o.RIGHT="right",o}({}),kt={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 en(o,d,l){var c=o.classList;for(var u in kt)kt.hasOwnProperty(u)&&c.remove("l7-".concat(l,"-anchor-").concat(u));c.add("l7-".concat(l,"-anchor-").concat(d))}function Vn(o,d,l){o.prototype=d.prototype=l,l.constructor=o}function on(o,d){var l=Object.create(o.prototype);for(var c in d)l[c]=d[c];return l}function Dr(){}var oi=.7,Ii=1/oi,jr="\\s*([+-]?\\d+)\\s*",eo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fn=/^#([0-9a-f]{3,8})$/,Qr=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),ci=new RegExp("^rgb\\("+[Uo,Uo,Uo]+"\\)$"),ji=new RegExp("^rgba\\("+[jr,jr,jr,eo]+"\\)$"),cr=new RegExp("^rgba\\("+[Uo,Uo,Uo,eo]+"\\)$"),Qn=new RegExp("^hsl\\("+[eo,Uo,Uo]+"\\)$"),Vt=new RegExp("^hsla\\("+[eo,Uo,Uo,eo]+"\\)$"),Yt={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};Vn(Dr,Nr,{copy:function(o){return Object.assign(new this.constructor,this,o)},displayable:function(){return this.rgb().displayable()},hex:En,formatHex:En,formatHsl:er,formatRgb:Tr,toString:Tr});function En(){return this.rgb().formatHex()}function er(){return qr(this).formatHsl()}function Tr(){return this.rgb().formatRgb()}function Nr(o){var d,l;return o=(o+"").trim().toLowerCase(),(d=Fn.exec(o))?(l=d[1].length,d=parseInt(d[1],16),l===6?Zn(d):l===3?new Br(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1):l===8?Ut(d>>24&255,d>>16&255,d>>8&255,(d&255)/255):l===4?Ut(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|d&240,((d&15)<<4|d&15)/255):null):(d=Qr.exec(o))?new Br(d[1],d[2],d[3],1):(d=ci.exec(o))?new Br(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=ji.exec(o))?Ut(d[1],d[2],d[3],d[4]):(d=cr.exec(o))?Ut(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=Qn.exec(o))?Sr(d[1],d[2]/100,d[3]/100,1):(d=Vt.exec(o))?Sr(d[1],d[2]/100,d[3]/100,d[4]):Yt.hasOwnProperty(o)?Zn(Yt[o]):o==="transparent"?new Br(NaN,NaN,NaN,0):null}function Zn(o){return new Br(o>>16&255,o>>8&255,o&255,1)}function Ut(o,d,l,c){return c<=0&&(o=d=l=NaN),new Br(o,d,l,c)}function $n(o){return o instanceof Dr||(o=Nr(o)),o?(o=o.rgb(),new Br(o.r,o.g,o.b,o.opacity)):new Br}function xr(o,d,l,c){return arguments.length===1?$n(o):new Br(o,d,l,c==null?1:c)}function Br(o,d,l,c){this.r=+o,this.g=+d,this.b=+l,this.opacity=+c}Vn(Br,xr,on(Dr,{brighter:function(o){return o=o==null?Ii:Math.pow(Ii,o),new Br(this.r*o,this.g*o,this.b*o,this.opacity)},darker:function(o){return o=o==null?oi:Math.pow(oi,o),new Br(this.r*o,this.g*o,this.b*o,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:_o,formatHex:_o,formatRgb:Qt,toString:Qt}));function _o(){return"#"+xn(this.r)+xn(this.g)+xn(this.b)}function Qt(){var o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"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))+(o===1?")":", "+o+")")}function xn(o){return o=Math.max(0,Math.min(255,Math.round(o)||0)),(o<16?"0":"")+o.toString(16)}function Sr(o,d,l,c){return c<=0?o=d=l=NaN:l<=0||l>=1?o=d=NaN:d<=0&&(o=NaN),new zi(o,d,l,c)}function qr(o){if(o instanceof zi)return new zi(o.h,o.s,o.l,o.opacity);if(o instanceof Dr||(o=Nr(o)),!o)return new zi;if(o instanceof zi)return o;o=o.rgb();var d=o.r/255,l=o.g/255,c=o.b/255,u=Math.min(d,l,c),m=Math.max(d,l,c),E=NaN,M=m-u,Z=(m+u)/2;return M?(d===m?E=(l-c)/M+(l0&&Z<1?0:E,new zi(E,M,Z,o.opacity)}function Mi(o,d,l,c){return arguments.length===1?qr(o):new zi(o,d,l,c==null?1:c)}function zi(o,d,l,c){this.h=+o,this.s=+d,this.l=+l,this.opacity=+c}Vn(zi,Mi,on(Dr,{brighter:function(o){return o=o==null?Ii:Math.pow(Ii,o),new zi(this.h,this.s,this.l*o,this.opacity)},darker:function(o){return o=o==null?oi:Math.pow(oi,o),new zi(this.h,this.s,this.l*o,this.opacity)},rgb:function(){var o=this.h%360+(this.h<0)*360,d=isNaN(o)||isNaN(this.s)?0:this.s,l=this.l,c=l+(l<.5?l:1-l)*d,u=2*l-c;return new Br(Yi(o>=240?o-240:o+120,u,c),Yi(o,u,c),Yi(o<120?o+240:o-120,u,c),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 o=this.opacity;return o=isNaN(o)?1:Math.max(0,Math.min(1,o)),(o===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(o===1?")":", "+o+")")}}));function Yi(o,d,l){return(o<60?d+(l-d)*o/60:o<180?l:o<240?d+(l-d)*(240-o)/60:d)*255}function Si(o){return typeof o=="string"?!!Nr(o):!1}function ni(o){var d=Nr(o),l=[0,0,0,0];return d!=null&&(l[0]=d.r/255,l[1]=d.g/255,l[2]=d.b/255,l[3]=d.opacity),l}function qi(o){var d=o&&o[0],l=o&&o[1],c=o&&o[2],u=d+l*256+c*65536-1;return u}function Vr(o){return[o+1&255,o+1>>8&255,o+1>>8>>8&255]}function ii(o){var d=window.document.createElement("canvas"),l=d.getContext("2d");d.width=256,d.height=1;for(var c=null,u=l.createLinearGradient(0,0,256,1),m=o.positions[0],E=o.positions[o.positions.length-1],M=0;M0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(l)}function vc(o,d){o instanceof HTMLElement?o.className=d:o.className.baseVal=d}function ec(o){return o instanceof SVGElement&&(o=o.correspondingElement),o.className.baseVal===void 0?o.className:o.className.baseVal}function qu(o){for(;o&&o.firstChild;)o.removeChild(o.firstChild)}var Uu=Ko(["transform","WebkitTransform"]);function zn(o,d){o.style[Uu]=d}function ur(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var o=window.document.createEvent("UIEvents");o.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(o)}}function Zr(o){var d=["padding: "+(o.height/2-8)+"px "+o.width/2+"px;","line-height: "+o.height+"px;","background-image: url("+o.toDataURL()+");"];console.log(`%c +`,d.join(""))}function Jr(){var o,d=window.document.querySelector('meta[name="viewport"]');if(!d)return 1;var l=(o=d.content)===null||o===void 0?void 0:o.split(","),c=l.find(function(u){var m=u.split("="),E=(0,mi.Z)(m,1),M=E[0];return M==="initial-scale"});return c?c.split("=")[1]*1:1}var _i=Jr()<1?1:window.devicePixelRatio;function so(o,d){o.setAttribute("style","".concat(o.style.cssText).concat(d))}function Ui(o){return o.split(";").map(function(d){return d.trim()}).filter(function(d){return d})}function hs(o,d){var l,c=Ui((l=o.getAttribute("style"))!==null&&l!==void 0?l:""),u=Ui(d),m=Ca.apply(void 0,[c].concat((0,Pn.Z)(u)));o.setAttribute("style",m.join(";"))}function ra(o){return Object.entries(o).map(function(d){var l=(0,mi.Z)(d,2),c=l[0],u=l[1];return"".concat(c,": ").concat(u)}).join(";")}function Ka(o,d){return{left:o.left-d.left,top:o.top-d.top,right:d.left+d.width-o.left-o.width,bottom:d.top+d.height-o.top-o.height}}function ul(o,d){o.checked=d,d?o.setAttribute("checked","true"):o.removeAttribute("checked")}function hl(o){o.innerHTML=""}function kl(o){o.setAttribute("draggable","false")}function Va(o,d){if(typeof d=="string"){var l=document.createElement("div");for(l.innerHTML=d;l.firstChild;)o.append(l.firstChild)}else Array.isArray(d)?o.append.apply(o,(0,Pn.Z)(d)):o.append(d)}function Xu(o,d){for(var l=Array.isArray(d)?d:[d],c=o;c instanceof Element&&c!==window.document.body;){var u,m;if(l.find(function(E){var M;return(M=c)===null||M===void 0?void 0:M.matches(E)}))return c;c=(u=(m=c)===null||m===void 0?void 0:m.parentElement)!==null&&u!==void 0?u:null}}var Na;function Aa(o){return typeof ImageBitmap!="undefined"&&o instanceof ImageBitmap}function ll(){return typeof importScripts=="function"}var Pu=ll()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Gl=(Na=navigator)===null||Na===void 0?void 0:Na.userAgent,fu=!!Gl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),Bl=Gl.indexOf("Android")>-1||Gl.indexOf("Adr")>-1;function lu(){for(var o=Gl,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],l=!0,c=0,u=d;c0){l=!1;break}}return l}var Ln=_(4942);function es(o,d){o.forEach(function(l){d[l]&&(d[l]=d[l].bind(d))})}var Is=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,xt.Z)(this,o),(0,Ln.Z)(this,"duration",16),(0,Ln.Z)(this,"timestamp",new Date().getTime()),this.duration=d}return(0,ot.Z)(o,[{key:"run",value:function(l){var c=new Date().getTime(),u=c-this.timestamp;this.timestamp=c,u>=this.duration&&l()}}]),o}(),Qs=_(62096),dl=_(1449);function uu(o){return typeof o=="number"}var Jl=2*Math.PI*6378137/2;function xu(o,d){var l=(0,mi.Z)(d,4),c=l[0],u=l[1],m=l[2],E=l[3];return o.lng>c&&o.lng<=m&&o.lat>u&&o.lat<=E}function Tu(o){var d=[1/0,1/0,-1/0,-1/0];return o.forEach(function(l){var c=l.coordinates;tc(d,c)}),d}function tc(o,d){return Array.isArray(d[0])?d.forEach(function(l){tc(o,l)}):(o[0]>d[0]&&(o[0]=d[0]),o[1]>d[1]&&(o[1]=d[1]),o[2]1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};o=lc(o,d);var c=o[0],u=o[1],m=c*Jl/180,E=Math.log(Math.tan((90+u)*Math.PI/360))/(Math.PI/180);return E=E*Jl/180,l.enable&&(m=Number(m.toFixed(l.decimal)),E=Number(E.toFixed(l.decimal))),o.length===3?[m,E,o[2]]:[m,E]}function Td(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=o[0],c=o[1],u=l/Jl*180,m=c/Jl*180;return m=180/Math.PI*(2*Math.atan(Math.exp(m*Math.PI/180))-Math.PI/2),d!=null&&(u=Number(u.toFixed(d)),m=Number(m.toFixed(d))),o.length===3?[u,m,o[2]]:[u,m]}function ld(o){if(o==null)throw new Error("lng is required");return(o>180||o<-180)&&(o=o%360,o>180&&(o=-360+o),o<-180&&(o=360+o),o===0&&(o=0)),o}function ph(o){if(o==null)throw new Error("lat is required");return(o>90||o<-90)&&(o=o%180,o>90&&(o=-180+o),o<-90&&(o=180+o),o===0&&(o=0)),o}function lc(o,d){if(d===!1)return o;var l=ld(o[0]),c=ph(o[1]);return c>85&&(c=85),c<-85&&(c=-85),o.length===3?[l,c,o[2]]:[l,c]}function xc(o){var d=85.0511287798,l=Math.max(Math.min(d,o[1]),-d),c=256<<20,u=Math.PI/180,m=o[0]*u,E=l*u;E=Math.log(Math.tan(Math.PI/4+E/2));var M=.5/Math.PI,Z=.5,ne=-.5/Math.PI;return u=.5,m=c*(M*m+Z),E=c*(ne*E+u),[Math.floor(m),Math.floor(E)]}function Hh(o){var d=.5/Math.PI,l=.5,c=-.5/Math.PI,u=.5,m=256<<20,E=(0,mi.Z)(o,2),M=E[0],Z=E[1];M=(M/m-l)/d,Z=(Z/m-u)/c,Z=(Math.atan(Math.pow(Math.E,Z))-Math.PI/4)*2,u=Math.PI/180;var ne=Z/u,Ce=M/u;return[Ce,ne]}function xh(o,d){var l=85.0511287798,c=Math.PI/180,u=6378137;return d=Math.max(Math.min(l,d),-l),o*=c,d*=c,d=Math.log(Math.tan(Math.PI/4+d/2)),[o*u,d*u]}function Cd(o,d){var l=Math.PI/180,c=6378137,u=o/c/l,m=2*(Math.atan(Math.exp(d/c))-Math.PI/4)/l;return[u,m]}function md(o,d,l){var c=(0,dl.degreesToRadians)(d[1]-o[1]),u=(0,dl.degreesToRadians)(d[0]-o[0]),m=(0,dl.degreesToRadians)(o[1]),E=(0,dl.degreesToRadians)(d[1]),M=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(m)*Math.cos(E);return(0,dl.radiansToLength)(2*Math.atan2(Math.sqrt(M),Math.sqrt(1-M)),l="meters")}function Bd(o){var d=Math.PI/180,l=85.0511287798,c=6378137,u=Math.max(Math.min(l,o[1]),-l),m=Math.sin(u*d),E=c*o[0]*d,M=c*Math.log((1+m)/(1-m))/2;return[E,M]}function zd(o,d){var l=Math.abs(o[1][1]-o[0][1])*d,c=Math.abs(o[1][0]-o[0][0])*d;return[[o[0][0]-c,o[0][1]-l],[o[1][0]+c,o[1][1]+l]]}function Dh(o,d){return o[0][0]<=d[0][0]&&o[0][1]<=d[0][1]&&o[1][0]>=d[1][0]&&o[1][1]>=d[1][1]}function gh(o){return[[o[0],o[1]],[o[2],o[3]]]}function ap(o){var d=pd(o,[0,0]);return[o[0]/d,o[1]/d]}function pd(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Nu(o,d){return o[0]*d[0]+o[1]*d[1]}function oh(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])}function Ud(o,d){return Math.acos(Nu(o,d)/(oh(o)*oh(d)))*180/Math.PI}function uf(o,d){return d[0]>0?d[1]>0?90-Math.atan(d[1]/d[0])*180/Math.PI:90+Math.atan(-d[1]/d[0])*180/Math.PI:d[1]<0?180+(90-Math.atan(d[1]/d[0])*180/Math.PI):270+Math.atan(d[1]/-d[0])*180/Math.PI}function Of(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!o||o.length<2)){for(var l=[0,1],c=0,u=[],m=0;m0){var Fe=u[m-1].rotation;Fe-Ce>360-Fe+Ce&&(Ce=Ce+360)}u.push({start:E,end:M,dis:Z,rotation:Ce,duration:0})}return u.map(function(bt){bt.duration=d*(bt.dis/c)}),u}}function Qf(o){if(uu(o[0]))return o;if(uu(o[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(uu(o[0][0][0])){var d=o,l=0,c=0,u=0;return d.forEach(function(m){m.forEach(function(E){l+=E[0],c+=E[1],u++})}),[l/u,c/u,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function ep(o){for(var d=o[0],l=o[1],c=o[0],u=o[1],m=0,E=0,M=0,Z=0;Zu&&(c=Math.floor(c/l)),c=c*d+o.charCodeAt(m);return c}function jd(o){o=o.toString();for(var d=5381,l=o.length;l;)d=d*33^o.charCodeAt(--l);return d>>>0}function Su(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var d=Math.random()*16|0,l=o==="x"?d:d&3|8;return l.toString(16)})}var Ih=function(o){return o["GAODE1.x"]="GAODE1.x",o["GAODE2.x"]="GAODE2.x",o.MAPBOX="MAPBOX",o.DEFAULT="DEFAUlTMAP",o.SIMPLE="SIMPLE",o.GLOBEL="GLOBEL",o}({});function gl(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,M=l;return E&&(M=Math.round(l*(m-1))/(m-1)),c?Ba(o,d,M,c,u):Ba(o,d,M,.314,u)}function Lu(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function xf(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Nh(o,d,l){var c=[d[0]-o[0],d[1]-o[1]],u=xf(c,[0,0]),m=Math.atan2(c[1],c[0]),E=u/2/Math.cos(l),M=m+l,Z=[E*Math.cos(M)+o[0],E*Math.sin(M)+o[1]];return Z}function Ba(o,d,l,c,u){if(u===Ih["GAODE2.x"]){var m=xh(o[0],o[1]),E=xh(d[0],d[1]),M=Nh(m,E,c),Z=[m[0],M[0],E[0]],ne=[m[1],M[1],E[1]];return[].concat((0,Pn.Z)(Cd(Lu(Z,l),Lu(ne,l))),[0])}else{var Ce=Nh(o,d,c),Fe=[o[0],Ce[0],d[0]],bt=[o[1],Ce[1],d[1]];return[Lu(Fe,l),Lu(bt,l),0]}}function Mu(o,d,l,c,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,E=arguments.length>6?arguments[6]:void 0,M=l;return E&&(M=Math.round(l*29)/29),Qh(o,d,M,u)}function Zl(o,d){var l=[d[0]-o[0],d[1]-o[1]],c=pd(l,[0,0]),u=Math.atan2(l[1],l[0]),m=.314,E=c/2/Math.cos(m),M=u+m,Z=[E*Math.cos(M)+o[0],E*Math.sin(M)+o[1]];return Z}function Au(o,d){var l=1-d;return(o[0]*l+o[1]*d)*l+(o[1]*l+o[2]*d)*d}function Wu(o,d){var l=[o[0]-d[0],o[1]-d[1]],c=[Math.sin(l[0]/2),Math.sin(l[1]/2)],u=c[1]*c[1]+Math.cos(o[1])*Math.cos(d[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function Qh(o,d,l,c){var u=[(0,dl.degreesToRadians)(o[0]),(0,dl.degreesToRadians)(o[1])],m=[(0,dl.degreesToRadians)(d[0]),(0,dl.degreesToRadians)(d[1])];if(c==="GAODE2.x"){var E=Zl(u,m),M=[u[0],E[0],m[0]],Z=[u[1],E[1],m[1]];return[Au(M,l),Au(Z,l),0]}else{var ne=Wu(u,m);if(Math.abs(ne-Math.PI)<.001)return[(1-l)*u[0]+l*m[0],(1-l)*u[1]+l*m[1]];var Ce=Math.sin((1-l)*ne)/Math.sin(ne),Fe=Math.sin(l*ne)/Math.sin(ne),bt=[Math.sin(u[0]),Math.sin(u[1])],Bt=[Math.cos(u[0]),Math.cos(u[1])],Cn=[Math.sin(m[0]),Math.sin(m[1])],An=[Math.cos(m[0]),Math.cos(m[1])],Pr=Ce*Bt[1]*Bt[0]+Fe*An[1]*An[0],ti=Ce*Bt[1]*bt[0]+Fe*An[1]*Cn[0],ho=Ce*bt[1]+Fe*Cn[1];return[(0,dl.radiansToDegrees)(Math.atan2(ti,Pr)),(0,dl.radiansToDegrees)(Math.atan2(ho,Math.sqrt(Pr*Pr+ti*ti)))]}}function hd(o,d){for(var l=0,c=[],u=0;une){var Pr=Cn.p1,ti=Cn.p2,ho=(ne-Cn.lastTotalDistance)/Cn.distance,bo=Bh(ti,Pr,ho);Ce=bo[0],Fe=bo[1];break}}return{lng:Ce,lat:Fe,height:0}}function Bh(o,d,l){return[o[0]*l+d[0]*(1-l),o[1]*l+d[1]*(1-l)]}function hf(o,d){return Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2))}function Rf(o,d){var l=d.featureId,c=o.data.dataArray;return typeof l=="number"&&(c=c.filter(function(u){var m=u.id;return m===l})),c.map(function(u){var m=If(u,d);return(0,Oe.Z)((0,Oe.Z)({},u),m)})}function Yd(o,d){return new Promise(function(l){o.inited?l(Rf(o,d)):o.once("update",function(){l(Rf(o,d))})})}function If(o,d){var l=d.offset,c=d.shape,u=d.thetaOffset,m=d.mapVersion,E=d.segmentNumber,M=E===void 0?30:E,Z=d.autoFit,ne=Z===void 0?!0:Z,Ce=o.coordinates;if(c==="line")return hd(Ce,l);var Fe=Ce[0],bt=Ce[1],Bt=typeof u=="string"?o[u]||0:u,Cn;switch(c){case"arc":Cn=gl;break;case"greatcircle":Cn=Mu;break;default:Cn=gl}var An=Cn(Fe,bt,l,Bt,m,M,ne),Pr=(0,mi.Z)(An,3),ti=Pr[0],ho=Pr[1],bo=Pr[2];return{lng:ti,lat:ho,height:bo}}var tf=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,l=arguments.length>1?arguments[1]:void 0;(0,xt.Z)(this,o),this.limit=d,this.destroy=l||this.defaultDestroy,this.order=[],this.clear()}return(0,ot.Z)(o,[{key:"clear",value:function(){var l=this;this.order.forEach(function(c){l.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(l){var c=this.cache[l];return c&&(this.deleteOrder(l),this.appendOrder(l)),c}},{key:"set",value:function(l,c){this.cache[l]?(this.delete(l),this.cache[l]=c,this.appendOrder(l)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[l]=c,this.appendOrder(l))}},{key:"delete",value:function(l){var c=this.cache[l];c&&(this.deleteCache(l),this.deleteOrder(l),this.destroy(c,l))}},{key:"deleteCache",value:function(l){delete this.cache[l]}},{key:"deleteOrder",value:function(l){var c=this.order.findIndex(function(u){return u===l});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(l){this.order.push(l)}},{key:"defaultDestroy",value:function(l,c){return null}}]),o}();function hp(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d*1}function od(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;lc&&(c=u,l=d),u=1,d=o[m]):u++;return l*1}var Wc={min:od,max:hp,mean:Tf,sum:wh,mode:Zd};function Gc(o,d){return o.map(function(l){return l[d]})}function vd(o,d){return Wc[o](d)}var Il=_(15861),gs=_(97326),_c=_(64687),Wi=_.n(_c),fg=_(95),uc=_(26729),nh=_.n(uc),Dp=function(o){return o.Realtime="realtime",o.Overlap="overlap",o.Replace="replace",o}({}),qp=function(o){return o.Loading="Loading",o.Loaded="Loaded",o.Failure="Failure",o.Cancelled="Cancelled",o}({}),Ng=0,df=1,mp=2;function Jp(o){o.forEach(function(d){d.isCurrent&&(d.isVisible=d.isLoaded)})}function dp(o){o.forEach(function(d){d.properties.state=Ng}),o.forEach(function(d){d.isCurrent&&!np(d)&&lp(d)}),o.forEach(function(d){d.isVisible=!!(d.properties.state&mp)})}function Eg(o){o.forEach(function(l){l.properties.state=Ng}),o.forEach(function(l){l.isCurrent&&np(l)});var d=o.slice().sort(function(l,c){return l.z-c.z});d.forEach(function(l){l.isVisible=!!(l.properties.state&mp),l.children.length&&(l.isVisible||l.properties.state&df)?l.children.forEach(function(c){c.properties.state=df}):l.isCurrent&&lp(l)})}function np(o){for(;o;){if(o.isLoaded)return o.properties.state|=mp,!0;o=o.parent}return!1}function lp(o){o.children.forEach(function(d){d.isLoaded?d.properties.state|=mp:lp(d)})}var Ph,Ip=256,pg=[-1/0,-1/0,1/0,1/0],Wp=.2,ud=5,rg=(Ph={},(0,Ln.Z)(Ph,Dp.Realtime,Jp),(0,Ln.Z)(Ph,Dp.Overlap,dp),(0,Ln.Z)(Ph,Dp.Replace,Eg),Ph),Wh=function(){};function wf(o,d,l){var c=Math.floor((o+180)/360*Math.pow(2,l)),u=Math.floor((1-Math.log(Math.tan(d*Math.PI/180)+1/Math.cos(d*Math.PI/180))/Math.PI)/2*Math.pow(2,l));return[c,u]}function up(o,d,l){var c=o/Math.pow(2,l)*360-180,u=Math.PI-2*Math.PI*d/Math.pow(2,l),m=180/Math.PI*Math.atan(.5*(Math.exp(u)-Math.exp(-u)));return[c,m]}var Cu=function(d,l,c){var u=up(d,l,c),m=(0,mi.Z)(u,2),E=m[0],M=m[1],Z=up(d+1,l+1,c),ne=(0,mi.Z)(Z,2),Ce=ne[0],Fe=ne[1];return[E,Fe,Ce,M]};function kp(o){var d=o.zoom,l=o.latLonBounds,c=o.maxZoom,u=c===void 0?1/0:c,m=o.minZoom,E=m===void 0?0:m,M=o.zoomOffset,Z=M===void 0?0:M,ne=o.extent,Ce=ne===void 0?pg:ne,Fe=Math.ceil(d)+Z;if(Number.isFinite(E)&&Feu&&(Fe=u);for(var bt=(0,mi.Z)(l,4),Bt=bt[0],Cn=bt[1],An=bt[2],Pr=bt[3],ti=[Math.max(Bt,Ce[0]),Math.max(Cn,Ce[1]),Math.min(An,Ce[2]),Math.min(Pr,Ce[3])],ho=[],bo=wf(ti[0],ti[1],Fe),Ds=(0,mi.Z)(bo,2),ta=Ds[0],aa=Ds[1],Ua=wf(ti[2],ti[3],Fe),pl=(0,mi.Z)(Ua,2),ru=pl[0],Iu=pl[1],Vu=ta;Vu<=ru;Vu++)for(var th=Iu;th<=aa;th++)ho.push({x:Vu,y:th,z:Fe});var yh=(ru+ta)/2,Ed=(aa+Iu)/2,$p=function(um,nv){return Math.abs(um-yh)+Math.abs(nv-Ed)};return ho.sort(function(Kg,um){return $p(Kg.x,Kg.y)-$p(um.x,um.y)}),ho}var Pp=function(d,l,c){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,m=Math.pow(2,c),E=m-1,M=m,Z=d,ne=l;return u&&(Z<0?Z=Z+M:Z>E&&(Z=Z%M)),{warpX:Z,warpY:ne}};function zf(o){var d=Th();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Th(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Mh=function(o){(0,ut.Z)(l,o);var d=zf(l);function l(c){var u;(0,xt.Z)(this,l),u=d.call(this),(0,Ln.Z)((0,gs.Z)(u),"tileSize",256),(0,Ln.Z)((0,gs.Z)(u),"isVisible",!1),(0,Ln.Z)((0,gs.Z)(u),"isCurrent",!1),(0,Ln.Z)((0,gs.Z)(u),"isVisibleChange",!1),(0,Ln.Z)((0,gs.Z)(u),"loadedLayers",0),(0,Ln.Z)((0,gs.Z)(u),"isLayerLoaded",!1),(0,Ln.Z)((0,gs.Z)(u),"isLoad",!1),(0,Ln.Z)((0,gs.Z)(u),"isChildLoad",!1),(0,Ln.Z)((0,gs.Z)(u),"parent",null),(0,Ln.Z)((0,gs.Z)(u),"children",[]),(0,Ln.Z)((0,gs.Z)(u),"data",null),(0,Ln.Z)((0,gs.Z)(u),"properties",{}),(0,Ln.Z)((0,gs.Z)(u),"loadDataId",0);var m=c.x,E=c.y,M=c.z,Z=c.tileSize,ne=c.warp,Ce=ne===void 0?!0:ne;return u.x=m,u.y=E,u.z=M,u.warp=Ce||!0,u.tileSize=Z,u}return(0,ot.Z)(l,[{key:"isLoading",get:function(){return this.loadStatus===qp.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===qp.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===qp.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===qp.Cancelled}},{key:"isDone",get:function(){return[qp.Loaded,qp.Cancelled,qp.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Cu(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var u=(0,mi.Z)(this.bounds,4),m=u[0],E=u[1],M=u[2],Z=u[3],ne=[(M-m)/2,(Z-E)/2],Ce=(0,fg.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ne,meta:` `.concat(this.key,` - `)}});return Me}},{key:"key",get:function(){var l="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return l}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,Na.Z)(ro().mark(function g(T){var B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo,Qs,ga,Ma,ll;return ro().wrap(function(jl){for(;;)switch(jl.prev=jl.next){case 0:return B=T.getData,G=T.onLoad,ne=T.onError,this.loadDataId++,Me=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Df.Loading,Ge=null,jl.prev=7,Ot=this.x,Pn=this.y,Mn=this.z,Ir=this.bounds,Ti=this.tileSize,Ko=this.warp,Zo=mp(Ot,Pn,Mn,Ko),Qs=Zo.warpX,ga=Zo.warpY,Ma=this.abortController.signal,ll={x:Qs,y:ga,z:Mn,bounds:Ir,tileSize:Ti,signal:Ma,warp:Ko},jl.next=14,B(ll,this);case 14:Ge=jl.sent,jl.next=20;break;case 17:jl.prev=17,jl.t0=jl.catch(7),Et=jl.t0;case 20:if(Me===this.loadDataId){jl.next=22;break}return jl.abrupt("return");case 22:if(!(this.isCancelled&&!Ge)){jl.next=24;break}return jl.abrupt("return");case 24:if(!(Et||!Ge)){jl.next=28;break}return this.loadStatus=Df.Failure,ne(Et,this),jl.abrupt("return");case 28:this.loadStatus=Df.Loaded,this.data=Ge,G(this);case 31:case"end":return jl.stop()}},g,this,[[7,17]])}));function l(g){return c.apply(this,arguments)}return l}()},{key:"reloadData",value:function(l){this.isLoading&&this.abortLoad(),this.loadData(l)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Df.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),u}(yf.EventEmitter),td=function(p,u){var c=id(p),l=jd(c,u),g=360*3-180,T=85.0511287798065,B=[Math.max(l[0][0],-g),Math.max(l[0][1],-T),Math.min(l[1][0],g),Math.min(l[1][1],T)];return B},Tp=function(p,u){var c=id(p),l=id(u),g=yh(c,l);return g};function _f(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Hh(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Hh(a,p){if(a){if(typeof a=="string")return Dp(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Dp(a,p)}}function Dp(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u=0&&Ge.x0;){var G=l.shift();G.abortLoad()}}},{key:"getTileByLngLat",value:function(l,g,T){var B=this.options.zoomOffset,G=Math.ceil(T)+B,ne=Ih(l,g,G),Me=this.tiles.filter(function(Ge){return Ge.key==="".concat(ne[0],"_").concat(ne[1],"_").concat(G)});return Me[0]}},{key:"getTileExtent",value:function(l,g){return this.getTileIndices(g,l)}},{key:"getTileByZXY",value:function(l,g,T){var B=this.tiles.filter(function(G){return G.key==="".concat(g,"_").concat(T,"_").concat(l)});return B[0]}},{key:"clear",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.isLoading?T.abortLoad():this.onTileUnload(T)}}catch(B){l.e(B)}finally{l.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var l=this.options.updateStrategy,g=new Map,T=_f(this.cacheTiles.values()),B;try{for(T.s();!(B=T.n()).done;){var G=B.value;g.set(G.key,G.isVisible),G.isCurrent=!1,G.isVisible=!1}}catch(Pn){T.e(Pn)}finally{T.f()}var ne=_f(this.currentTiles),Me;try{for(ne.s();!(Me=ne.n()).done;){var Ge=Me.value;Ge.isCurrent=!0,Ge.isVisible=!0}}catch(Pn){ne.e(Pn)}finally{ne.f()}var Et=Array.from(this.cacheTiles.values());typeof l=="function"?l(Et):Md[l](Et);var Ot=!1;Array.from(this.cacheTiles.values()).forEach(function(Pn){Pn.isVisible!==g.get(Pn.key)?(Pn.isVisibleChange=!0,Ot=!0):Pn.isVisibleChange=!1}),Ot&&this.emit(kh.TileUpdate)}},{key:"getTileIndices",value:function(l,g){var T=this.options,B=T.tileSize,G=T.extent,ne=T.zoomOffset,Me=Math.floor(this.options.maxZoom),Ge=Math.ceil(this.options.minZoom),Et=iu({maxZoom:Me,minZoom:Ge,zoomOffset:ne,tileSize:B,zoom:l,latLonBounds:g,extent:G});return Et}},{key:"getTileId",value:function(l,g,T){var B="".concat(l,",").concat(g,",").concat(T);return B}},{key:"loadFinished",value:function(){var l=!this.currentTiles.some(function(g){return!g.isDone});return l&&this.emit(kh.TilesLoadFinished),l}},{key:"getTile",value:function(l,g,T){var B=this.getTileId(l,g,T),G=this.cacheTiles.get(B);return G}},{key:"createTile",value:function(l,g,T){var B=this.getTileId(l,g,T),G=new Od({x:l,y:g,z:T,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(B,G),G.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),G}},{key:"resizeCacheTiles",value:function(){var l=ag*this.currentTiles.length,g=this.cacheTiles.size>l;if(g){var T=_f(this.cacheTiles),B;try{for(T.s();!(B=T.n()).done;){var G=(0,qn.Z)(B.value,2),ne=G[0],Me=G[1];if(!Me.isVisible&&!this.currentTiles.includes(Me)&&(this.cacheTiles.delete(ne),this.onTileUnload(Me)),this.cacheTiles.size<=l)break}}catch(Ge){T.e(Ge)}finally{T.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.parent=null,T.children.length=0}}catch(Ge){l.e(Ge)}finally{l.f()}var B=_f(this.cacheTiles.values()),G;try{for(B.s();!(G=B.n()).done;){var ne=G.value,Me=this.getNearestAncestor(ne.x,ne.y,ne.z);ne.parent=Me,Me!=null&&Me.children&&Me.children.push(ne)}}catch(Ge){B.e(Ge)}finally{B.f()}}},{key:"getNearestAncestor",value:function(l,g,T){for(;T>this.options.minZoom;){l=Math.floor(l/2),g=Math.floor(g/2),T=T-1;var B=this.getTile(l,g,T);if(B)return B}return null}}]),u}(Qu());function Bf(a){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(a)}function bd(a){var p=[],u=/\{([a-z])-([a-z])\}/.exec(a);if(u){var c=u[1].charCodeAt(0),l=u[2].charCodeAt(0),g;for(g=c;g<=l;++g)p.push(a.replace(u[0],String.fromCharCode(g)));return p}if(u=/\{(\d+)-(\d+)\}/.exec(a),u){for(var T=parseInt(u[2],10),B=parseInt(u[1],10);B<=T;B++)p.push(a.replace(u[0],B.toString()));return p}return p.push(a),p}function $c(a,p){if(!a||!a.length)throw new Error("url is not allowed to be empty");var u=p.x,c=p.y,l=p.z,g=bd(a),T=Math.abs(u+c)%g.length,B=Bo(g[T])?"".concat(g[T],"/{z}/{x}/{y}"):g[T];return B.replace(/\{x\}/g,u.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,l.toString()).replace(/\{bbox\}/g,Ff(u,c,l).join(",")).replace(/\{-y\}/g,(Math.pow(2,l)-c-1).toString())}function Hd(a,p){var u=p.x,c=p.y,l=p.z,g=p.layer,T=p.version,B=T===void 0?"1.0.0":T,G=p.style,ne=G===void 0?"default":G,Me=p.format,Ge=p.service,Et=Ge===void 0?"WMTS":Ge,Ot=p.tileMatrixset,Pn="".concat(a,"&SERVICE=").concat(Et,"&REQUEST=GetTile&VERSION=").concat(B,"&LAYER=").concat(g,"&STYLE=").concat(ne,"&TILEMATRIXSET=").concat(Ot,"&FORMAT=").concat(Me,"&TILECOL=").concat(u,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(l);return Pn}function vh(a,p){if(!a)throw new Error(p||"web worker helper assertion failed.")}var Io={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},D=Io.self||Io.window||{},F=Io.window||Io.self||{},J=Io.self||Io.window||{},ae=Io.document||{},Ue=typeof importScripts=="function",Jt=typeof window!="undefined"&&typeof window.orientation!="undefined",$n=function(){function a(p,u){var c=this;this.name=p,this.workerThread=u,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(l,g){c.resolve=l,c.reject=g})}return a.prototype.postMessage=function(p,u){this.workerThread.postMessage({source:"Main thread",type:p,payload:u})},a.prototype.done=function(p){vh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(p)},a.prototype.error=function(p){vh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(p)},a}(),_i=$n,Xo=new Map;function fa(a){vh(a.source&&!a.url||!a.source&&a.url);var p=Xo.get(a.source||a.url);return p||(a.url&&(p=Cl(a.url),Xo.set(a.url,p)),a.source&&(p=Ll(a.source),Xo.set(a.source,p))),vh(p),p}function Cl(a){if(!a.startsWith("http"))return a;var p=zu(a);return Ll(p)}function Ll(a){var p=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(p)}function zu(a){return`try { - importScripts('`+a+`'); + `)}});return Ce}},{key:"key",get:function(){var u="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return u}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){var M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo,Ds,ta,aa,Ua;return Wi().wrap(function(ru){for(;;)switch(ru.prev=ru.next){case 0:return M=E.getData,Z=E.onLoad,ne=E.onError,this.loadDataId++,Ce=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=qp.Loading,Fe=null,ru.prev=7,Bt=this.x,Cn=this.y,An=this.z,Pr=this.bounds,ti=this.tileSize,ho=this.warp,bo=Pp(Bt,Cn,An,ho),Ds=bo.warpX,ta=bo.warpY,aa=this.abortController.signal,Ua={x:Ds,y:ta,z:An,bounds:Pr,tileSize:ti,signal:aa,warp:ho},ru.next=14,M(Ua,this);case 14:Fe=ru.sent,ru.next=20;break;case 17:ru.prev=17,ru.t0=ru.catch(7),bt=ru.t0;case 20:if(Ce===this.loadDataId){ru.next=22;break}return ru.abrupt("return");case 22:if(!(this.isCancelled&&!Fe)){ru.next=24;break}return ru.abrupt("return");case 24:if(!(bt||!Fe)){ru.next=28;break}return this.loadStatus=qp.Failure,ne(bt,this),ru.abrupt("return");case 28:this.loadStatus=qp.Loaded,this.data=Fe,Z(this);case 31:case"end":return ru.stop()}},m,this,[[7,17]])}));function u(m){return c.apply(this,arguments)}return u}()},{key:"reloadData",value:function(u){this.isLoading&&this.abortLoad(),this.loadData(u)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=qp.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(uc.EventEmitter),Lh=function(d,l){var c=gh(d),u=zd(c,l),m=360*3-180,E=85.0511287798065,M=[Math.max(u[0][0],-m),Math.max(u[0][1],-E),Math.min(u[1][0],m),Math.min(u[1][1],E)];return M},_h=function(d,l){var c=gh(d),u=gh(l),m=Dh(c,u);return m};function ff(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=vp(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function vp(o,d){if(o){if(typeof o=="string")return ig(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return ig(o,d)}}function ig(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l=0&&Fe.x0;){var Z=u.shift();Z.abortLoad()}}},{key:"getTileByLngLat",value:function(u,m,E){var M=this.options.zoomOffset,Z=Math.ceil(E)+M,ne=wf(u,m,Z),Ce=this.tiles.filter(function(Fe){return Fe.key==="".concat(ne[0],"_").concat(ne[1],"_").concat(Z)});return Ce[0]}},{key:"getTileExtent",value:function(u,m){return this.getTileIndices(m,u)}},{key:"getTileByZXY",value:function(u,m,E){var M=this.tiles.filter(function(Z){return Z.key==="".concat(m,"_").concat(E,"_").concat(u)});return M[0]}},{key:"clear",value:function(){var u=ff(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.isLoading?E.abortLoad():this.onTileUnload(E)}}catch(M){u.e(M)}finally{u.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var u=this.options.updateStrategy,m=new Map,E=ff(this.cacheTiles.values()),M;try{for(E.s();!(M=E.n()).done;){var Z=M.value;m.set(Z.key,Z.isVisible),Z.isCurrent=!1,Z.isVisible=!1}}catch(Cn){E.e(Cn)}finally{E.f()}var ne=ff(this.currentTiles),Ce;try{for(ne.s();!(Ce=ne.n()).done;){var Fe=Ce.value;Fe.isCurrent=!0,Fe.isVisible=!0}}catch(Cn){ne.e(Cn)}finally{ne.f()}var bt=Array.from(this.cacheTiles.values());typeof u=="function"?u(bt):rg[u](bt);var Bt=!1;Array.from(this.cacheTiles.values()).forEach(function(Cn){Cn.isVisible!==m.get(Cn.key)?(Cn.isVisibleChange=!0,Bt=!0):Cn.isVisibleChange=!1}),Bt&&this.emit(Dd.TileUpdate)}},{key:"getTileIndices",value:function(u,m){var E=this.options,M=E.tileSize,Z=E.extent,ne=E.zoomOffset,Ce=Math.floor(this.options.maxZoom),Fe=Math.ceil(this.options.minZoom),bt=kp({maxZoom:Ce,minZoom:Fe,zoomOffset:ne,tileSize:M,zoom:u,latLonBounds:m,extent:Z});return bt}},{key:"getTileId",value:function(u,m,E){var M="".concat(u,",").concat(m,",").concat(E);return M}},{key:"loadFinished",value:function(){var u=!this.currentTiles.some(function(m){return!m.isDone});return u&&this.emit(Dd.TilesLoadFinished),u}},{key:"getTile",value:function(u,m,E){var M=this.getTileId(u,m,E),Z=this.cacheTiles.get(M);return Z}},{key:"createTile",value:function(u,m,E){var M=this.getTileId(u,m,E),Z=new Mh({x:u,y:m,z:E,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(M,Z),Z.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),Z}},{key:"resizeCacheTiles",value:function(){var u=ud*this.currentTiles.length,m=this.cacheTiles.size>u;if(m){var E=ff(this.cacheTiles),M;try{for(E.s();!(M=E.n()).done;){var Z=(0,mi.Z)(M.value,2),ne=Z[0],Ce=Z[1];if(!Ce.isVisible&&!this.currentTiles.includes(Ce)&&(this.cacheTiles.delete(ne),this.onTileUnload(Ce)),this.cacheTiles.size<=u)break}}catch(Fe){E.e(Fe)}finally{E.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var u=ff(this.cacheTiles.values()),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;E.parent=null,E.children.length=0}}catch(Fe){u.e(Fe)}finally{u.f()}var M=ff(this.cacheTiles.values()),Z;try{for(M.s();!(Z=M.n()).done;){var ne=Z.value,Ce=this.getNearestAncestor(ne.x,ne.y,ne.z);ne.parent=Ce,Ce!=null&&Ce.children&&Ce.children.push(ne)}}catch(Fe){M.e(Fe)}finally{M.f()}}},{key:"getNearestAncestor",value:function(u,m,E){for(;E>this.options.minZoom;){u=Math.floor(u/2),m=Math.floor(m/2),E=E-1;var M=this.getTile(u,m,E);if(M)return M}return null}}]),l}(nh());function ah(o){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(o)}function Nc(o){var d=[],l=/\{([a-z])-([a-z])\}/.exec(o);if(l){var c=l[1].charCodeAt(0),u=l[2].charCodeAt(0),m;for(m=c;m<=u;++m)d.push(o.replace(l[0],String.fromCharCode(m)));return d}if(l=/\{(\d+)-(\d+)\}/.exec(o),l){for(var E=parseInt(l[2],10),M=parseInt(l[1],10);M<=E;M++)d.push(o.replace(l[0],M.toString()));return d}return d.push(o),d}function Xh(o,d){if(!o||!o.length)throw new Error("url is not allowed to be empty");var l=d.x,c=d.y,u=d.z,m=Nc(o),E=Math.abs(l+c)%m.length,M=Ho(m[E])?"".concat(m[E],"/{z}/{x}/{y}"):m[E];return M.replace(/\{x\}/g,l.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,u.toString()).replace(/\{bbox\}/g,Cu(l,c,u).join(",")).replace(/\{-y\}/g,(Math.pow(2,u)-c-1).toString())}function $d(o,d){var l=d.x,c=d.y,u=d.z,m=d.layer,E=d.version,M=E===void 0?"1.0.0":E,Z=d.style,ne=Z===void 0?"default":Z,Ce=d.format,Fe=d.service,bt=Fe===void 0?"WMTS":Fe,Bt=d.tileMatrixset,Cn="".concat(o,"&SERVICE=").concat(bt,"&REQUEST=GetTile&VERSION=").concat(M,"&LAYER=").concat(m,"&STYLE=").concat(ne,"&TILEMATRIXSET=").concat(Bt,"&FORMAT=").concat(Ce,"&TILECOL=").concat(l,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(u);return Cn}function Vo(o,d){if(!o)throw new Error(d||"web worker helper assertion failed.")}var P={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},W=P.self||P.window||{},le=P.window||P.self||{},ge=P.self||P.window||{},rt=P.document||{},pn=typeof importScripts=="function",sr=typeof window!="undefined"&&typeof window.orientation!="undefined",Ae=function(){function o(d,l){var c=this;this.name=d,this.workerThread=l,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(u,m){c.resolve=u,c.reject=m})}return o.prototype.postMessage=function(d,l){this.workerThread.postMessage({source:"Main thread",type:d,payload:l})},o.prototype.done=function(d){Vo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(d)},o.prototype.error=function(d){Vo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(d)},o}(),D=Ae,ie=new Map;function Ee(o){Vo(o.source&&!o.url||!o.source&&o.url);var d=ie.get(o.source||o.url);return d||(o.url&&(d=Ne(o.url),ie.set(o.url,d)),o.source&&(d=at(o.source),ie.set(o.source,d))),Vo(d),d}function Ne(o){if(!o.startsWith("http"))return o;var d=Gt(o);return at(d)}function at(o){var d=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(d)}function Gt(o){return`try { + importScripts('`+o+`'); } catch (error) { console.error(error); throw error; -}`}function Iu(a,p,u){p===void 0&&(p=!0);var c=u||new Set;if(a){if(pc(a))c.add(a);else if(pc(a.buffer))c.add(a.buffer);else if(!ArrayBuffer.isView(a)){if(p&&typeof a=="object")for(var l in a)Iu(a[l],p,c)}}return u===void 0?Array.from(c):[]}function pc(a){return a?a instanceof ArrayBuffer||typeof MessagePort!="undefined"&&a instanceof MessagePort||typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&a instanceof OffscreenCanvas:!1}var zc=function(){},Rd=function(){function a(p){this.terminated=!1,this.loadableURL="";var u=p.name,c=p.source,l=p.url;vh(c||l),this.name=u,this.source=c,this.url=l,this.onMessage=zc,this.onError=function(g){return console.log(g)},this.worker=this.createBrowserWorker()}return a.isSupported=function(){return typeof Worker!="undefined"},a.prototype.destroy=function(){this.onMessage=zc,this.onError=zc,this.worker.terminate(),this.terminated=!0},Object.defineProperty(a.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),a.prototype.postMessage=function(p,u){u=u||Iu(p),this.worker.postMessage(p,u)},a.prototype.getErrorFromErrorEvent=function(p){var u="Failed to load ";return u+="worker "+this.name+" from "+this.url+". ",p.message&&(u+=p.message+" in "),p.lineno&&(u+=":"+p.lineno+":"+p.colno),new Error(u)},a.prototype.createBrowserWorker=function(){var p=this;this.loadableURL=fa({source:this.source,url:this.url});var u=new Worker(this.loadableURL,{name:this.name});return u.onmessage=function(c){c.data?p.onMessage(c.data):p.onError(new Error("No data received"))},u.onerror=function(c){p.onError(p.getErrorFromErrorEvent(c)),p.terminated=!0},u.onmessageerror=function(c){return console.error("worker "+p.name+", message error: "+c)},u},a}(),X=Rd,re=function(){return re=Object.assign||function(a){for(var p,u=1,c=arguments.length;u0&&g[g.length-1])&&(ne[0]===6||ne[0]===2)){u=0;continue}if(ne[0]===3&&(!g||ne[1]>g[0]&&ne[1]this.getMaxConcurrency();u?(p.destroy(),this.count--):this.idleQueue.push(p),this.isDestroyed||this.startQueuedJob()},a.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},ei={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},gr=function(){function a(p){this.workerPools=new Map,this.props=nn({},ei),this.setProps(p),this.workerPools=new Map}return a.isSupported=function(){return X.isSupported()},a.getWorkerFarm=function(p){return p===void 0&&(p={}),a.workerFarm=a.workerFarm||new a({}),a.workerFarm.setProps(p),a.workerFarm},a.prototype.destroy=function(){var p,u;try{for(var c=Yn(this.workerPools.values()),l=c.next();!l.done;l=c.next()){var g=l.value;g.destroy()}}catch(T){p={error:T}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(p)throw p.error}}},a.prototype.setProps=function(p){var u,c;this.props=nn(nn({},this.props),p);try{for(var l=Yn(this.workerPools.values()),g=l.next();!g.done;g=l.next()){var T=g.value;T.setProps(this.getWorkerPoolProps())}}catch(B){u={error:B}}finally{try{g&&!g.done&&(c=l.return)&&c.call(l)}finally{if(u)throw u.error}}},a.prototype.getWorkerPool=function(p){var u=p.name,c=p.source,l=p.url,g=this.workerPools.get(u);return g||(g=new Rt({name:u,source:c,url:l}),g.setProps(this.getWorkerPoolProps()),this.workerPools.set(u,g)),g},a.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},a}(),ss=gr,ts=new Map,Is=function(){function a(){}return Object.defineProperty(a,"onmessage",{set:function(p){self.onmessage=function(u){if(na(u)){var c=u.data,l=c.type,g=c.payload;p(l,g)}}},enumerable:!1,configurable:!0}),a.addEventListener=function(p){var u=ts.get(p);u||(u=function(c){if(na(c)){var l=c.data,g=l.type,T=l.payload;p(g,T)}}),self.addEventListener("message",u)},a.removeEventListener=function(p){var u=ts.get(p);ts.delete(p),self.removeEventListener("message",u)},a.postMessage=function(p,u){if(self){var c={source:"Worker thread",type:p,payload:u},l=Iu(u);self.postMessage(c,l)}},a}(),ua=null;function na(a){var p=a.type,u=a.data;return p==="message"&&u&&typeof u.source=="string"&&u.source==="Main thread"}function Go(a){return JSON.parse(Gs(a))}function Gs(a){var p=new Set;return JSON.stringify(a,function(u,c){if(typeof c=="object"&&c!==null){if(p.has(c))try{return JSON.parse(JSON.stringify(c))}catch(l){return}p.add(c)}return c})}function Va(a){return""+a.name}function _l(a,p){p===void 0&&(p={});var u=p[a.id]||{},c=a.name+".worker.js",l=u.workerUrl;return p._workerType==="test"&&(l=a.module+"/dist/"+c),l||(l="https://unpkg.com/"+a.module+"/dist/"+c),assert(l),l}var nu=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Me){try{ne(c.next(Me))}catch(Ge){T(Ge)}}function G(Me){try{ne(c.throw(Me))}catch(Ge){T(Ge)}}function ne(Me){Me.done?g(Me.value):l(Me.value).then(B,G)}ne((c=c.apply(a,p||[])).next())})},xu=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(ne){return function(Me){return G([ne,Me])}}function G(ne){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=ne[0]&2?l.return:ne[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,ne[1])).done)return g;switch(l=0,g&&(ne=[ne[0]&2,g.value]),ne[0]){case 0:case 1:g=ne;break;case 4:return u.label++,{value:ne[1],done:!1};case 5:u.label++,l=ne[1],ne=[0];continue;case 7:ne=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(ne[0]===6||ne[0]===2)){u=0;continue}if(ne[0]===3&&(!g||ne[1]>g[0]&&ne[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var u=this._settlers.shift();p instanceof Error?u.reject(p):u.resolve({value:p})}else this._values.push(p)},a.prototype.close=function(){for(;this._settlers.length>0;){var p=this._settlers.shift();p.resolve({done:!0})}this._closed=!0},a.prototype.next=function(){var p=this;if(this._values.length>0){var u=this._values.shift();return u instanceof Error?Promise.reject(u):Promise.resolve({done:!1,value:u})}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(c,l){p._settlers.push({resolve:c,reject:l})})},a}(),wc=null,fd=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Me){try{ne(c.next(Me))}catch(Ge){T(Ge)}}function G(Me){try{ne(c.throw(Me))}catch(Ge){T(Ge)}}function ne(Me){Me.done?g(Me.value):l(Me.value).then(B,G)}ne((c=c.apply(a,p||[])).next())})},Td=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(ne){return function(Me){return G([ne,Me])}}function G(ne){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=ne[0]&2?l.return:ne[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,ne[1])).done)return g;switch(l=0,g&&(ne=[ne[0]&2,g.value]),ne[0]){case 0:case 1:g=ne;break;case 4:return u.label++,{value:ne[1],done:!1};case 5:u.label++,l=ne[1],ne=[0];continue;case 7:ne=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(ne[0]===6||ne[0]===2)){u=0;continue}if(ne[0]===3&&(!g||ne[1]>g[0]&&ne[1]0&&g[g.length-1])&&(ne[0]===6||ne[0]===2)){u=0;continue}if(ne[0]===3&&(!g||ne[1]>g[0]&&ne[1]0&&(l=1/Math.sqrt(l)),a[0]=p[0]*l,a[1]=p[1]*l,a}function Lm(a,p){return a[0]*p[0]+a[1]*p[1]}function Rm(a,p,u){var c=p[0]*u[1]-p[1]*u[0];return a[0]=a[1]=0,a[2]=c,a}function Sg(a,p,u,c){var l=p[0],g=p[1];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a}function jm(a,p){p=p||1;var u=glMatrix.RANDOM()*2*Math.PI;return a[0]=Math.cos(u)*p,a[1]=Math.sin(u)*p,a}function Gp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l,a[1]=u[1]*c+u[3]*l,a}function P0(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l+u[4],a[1]=u[1]*c+u[3]*l+u[5],a}function wp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[3]*l+u[6],a[1]=u[1]*c+u[4]*l+u[7],a}function Xf(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[4]*l+u[12],a[1]=u[1]*c+u[5]*l+u[13],a}function Zh(a,p,u,c){var l=p[0]-u[0],g=p[1]-u[1],T=Math.sin(c),B=Math.cos(c);return a[0]=l*B-g*T+u[0],a[1]=l*T+g*B+u[1],a}function a0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1],T=Math.sqrt(u*u+c*c)*Math.sqrt(l*l+g*g),B=T&&(u*l+c*g)/T;return Math.acos(Math.min(Math.max(B,-1),1))}function k0(a){return a[0]=0,a[1]=0,a}function Zg(a){return"vec2("+a[0]+", "+a[1]+")"}function Vm(a,p){return a[0]===p[0]&&a[1]===p[1]}function m0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1];return Math.abs(u-l)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(c-g)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(g))}var Gm=null,$d=Hf,Y0=null,jg=null,e0=null,_m=null,Um=null,yp=function(){var a=Zd();return function(p,u,c,l,g,T){var B,G;for(u||(u=2),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0&&arguments[0]!==void 0?arguments[0]:{};(0,bt.Z)(this,a),(0,Cn.Z)(this,"lastFlip",-1),(0,Cn.Z)(this,"miter",zf(0,0)),(0,Cn.Z)(this,"started",!1),(0,Cn.Z)(this,"dash",!1),(0,Cn.Z)(this,"totalDistance",0),(0,Cn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,He.Z)(a,[{key:"extrude_gaode2",value:function(u,c){var l=this.complex;if(u.length<=1)return l;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var g=u.length,T=l.startIndex,B=1;Bthis.miterLimit&&(Vc=!0)}Vc?(Ot.push(this.normal[0],this.normal[1],0),Ot.push(ju[0],ju[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip!==-Pu?[c,c+2,c+3]:[c+2,c+1,c+3])),Ge.push(c+2,c+3,c+4),xe(sm,Pg),bf(this.normal,sm),Ot.push(this.normal[0],this.normal[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Me+=3):(this.extrusions(Et,Ot,g,ju,jl,this.totalDistance),Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pu=-1,bf(this.normal,ju),Me+=2),this.lastFlip=Pu}else{if(xe(this.normal,Ap),Pn){var ga=Zd(),Ma=Zd();$d(Ma,Ap,this.normal),Bp(ga,Ap,this.normal),Ot.push(Ma[0],Ma[1],0),Ot.push(ga[0],ga[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Et,Ot,g,this.normal,this.thickness,this.totalDistance);Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Me+=2}return Me}},{key:"simpleSegment",value:function(u,c,l,g,T){var B=0,G=u.indices,ne=u.positions,Me=u.normals,Ge=Mu([g[0],g[1]]),Et=Mu([l[0],l[1]]);ut(Ap,Ge,Et);var Ot=0;if(this.dash&&(Ot=this.lineSegmentDistance(Ge,Et),this.totalDistance+=Ot),this.normal||(this.normal=Zd(),xe(this.normal,Ap)),this.started||(this.started=!0,this.extrusions(ne,Me,l,this.normal,this.thickness,this.totalDistance-Ot)),G.push(c+0,c+1,c+2),!T)xe(this.normal,Ap),this.extrusions(ne,Me,g,this.normal,this.thickness,this.totalDistance),G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2;else{var Pn=Mu([T[0],T[1]]);mn(Ge,Pn)&&Bp(Pn,Ge,Qg(Pn,Hf(Pn,Ge,Et))),ut(Pg,Pn,Ge);var Mn=H(pe,Zd(),Ap,Pg,this.thickness),Ir=(0,qn.Z)(Mn,2),Ti=Ir[0],Ko=Ir[1],Zo=Lm(pe,this.normal)<0?-1:1;this.extrusions(ne,Me,g,Ko,Ti,this.totalDistance),G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Zo=-1,bf(this.normal,Ko),B+=2,this.lastFlip=Zo}return B}},{key:"segment",value:function(u,c,l,g,T){var B=0,G=u.indices,ne=u.positions,Me=u.normals,Ge=this.cap==="square",Et=this.join==="bevel",Ot=Mu([g[0],g[1]]),Pn=Mu([l[0],l[1]]);ut(Ap,Ot,Pn);var Mn=0;if(this.dash&&(Mn=this.lineSegmentDistance(Ot,Pn),this.totalDistance+=Mn),this.normal||(this.normal=Zd(),xe(this.normal,Ap)),!this.started)if(this.started=!0,Ge){var Ir=Zd(),Ti=Zd();Bp(Ir,this.normal,Ap),Bp(Ti,this.normal,Ap),Me.push(Ti[0],Ti[1],0),Me.push(Ir[0],Ir[1],0),ne.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Me,l,this.normal,this.thickness,this.totalDistance-Mn);if(G.push(c+0,c+1,c+2),T){var Qs=Mu([T[0],T[1]]);mn(Ot,Qs)&&Bp(Qs,Ot,Qg(Qs,Hf(Qs,Ot,Pn))),ut(Pg,Qs,Ot);var ga=H(pe,Zd(),Ap,Pg,this.thickness),Ma=(0,qn.Z)(ga,2),ll=Ma[0],Wl=Ma[1],jl=Lm(pe,this.normal)<0?-1:1,ju=Et;if(!ju&&this.join==="miter"){var Pu=ll;Pu>this.miterLimit&&(ju=!0)}ju?(Me.push(this.normal[0],this.normal[1],0),Me.push(Wl[0],Wl[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,G.push.apply(G,(0,Fr.Z)(this.lastFlip!==-jl?[c,c+2,c+3]:[c+2,c+1,c+3])),G.push(c+2,c+3,c+4),xe(sm,Pg),bf(this.normal,sm),Me.push(this.normal[0],this.normal[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ne,Me,g,Wl,ll,this.totalDistance),G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),jl=-1,bf(this.normal,Wl),B+=2),this.lastFlip=jl}else{if(xe(this.normal,Ap),Ge){var Ko=Zd(),Zo=Zd();$d(Zo,Ap,this.normal),Bp(Ko,Ap,this.normal),Me.push(Zo[0],Zo[1],0),Me.push(Ko[0],Ko[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Me,g,this.normal,this.thickness,this.totalDistance);G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}(),It=85.0511287798;function Ut(a){var p=a.coordinates,u=a.originCoordinates,c=a.version,l=new Xe({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var g=p;Array.isArray(g[0][0])||(g=[p]);var T=u;Array.isArray(T[0][0])||(T=[u]);for(var B=0;BIt&&(u=It),p<-It&&(u=-It),[Math.PI*a/180+Math.PI,Math.PI-Math.log(Math.tan(Math.PI*.25+Math.PI*u/180*.5))]}function vn(a,p){return[(a-Math.PI)*180/Math.PI,(Math.atan(Math.exp(Math.PI-p))-Math.PI*.25)*2*180/Math.PI]}var Rn=function(){var a=(0,Na.Z)(ro().mark(function p(u){var c,l,g,T,B,G,ne,Me,Ge;return ro().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return c=u.descriptors,l=u.features,g=u.enablePicking,T=u.iconMap,B={a_Color:Oc,a_Position:ad,filter:yd,a_vertexId:Bd,a_PickingColor:function(Mn){var Ir=Mn.id;return g?Zi(Ir):[0,0,0]},a_DistanceAndIndex:function(Mn,Ir,Ti,Ko,Zo,Qs){return Qs===void 0?[Ti[3],10]:[Ti[3],Qs]},a_Total_Distance:function(Mn,Ir,Ti){return[Ti[5]]},a_Size:function(Mn){var Ir=Mn.size,Ti=Ir===void 0?1:Ir;return Array.isArray(Ti)?[Ti[0],Ti[1]]:[Ti,0]},a_Normal:function(Mn,Ir,Ti,Ko,Zo){return Zo},a_Miter:function(Mn,Ir,Ti){return[Ti[4]]},a_iconMapUV:function(Mn){var Ir=Mn.texture,Ti=T[Ir]||{x:0,y:0},Ko=Ti.x,Zo=Ti.y;return[Ko,Zo]}},G={sizePerElement:0,elements:[]},ne=0,Me=[],Ge=3,l.forEach(function(Pn,Mn){var Ir=Ut(Pn),Ti=Ir.indices,Ko=Ir.vertices,Zo=Ir.normals,Qs=Ir.size,ga=Ir.indexes;Ti.forEach(function(jl){Me.push(jl+ne)}),Ge=Qs;var Ma=Ko.length/Qs;G.sizePerElement=Ge,G.elements.push({featureIdx:Mn,vertices:Ko,normals:Zo,offset:ne}),ne+=Ma;for(var ll=function(ju){var Pu=(Zo==null?void 0:Zo.slice(ju*3,ju*3+3))||[],Vc=Ko.slice(ju*Qs,ju*Qs+Qs),dd=0;ga&&ga[ju]!==void 0&&(dd=ga[ju]),c.forEach(function(Kd){if(Kd&&B[Kd.name]){var Hp;(Hp=Kd.buffer.data).push.apply(Hp,(0,Fr.Z)(B[Kd.name](Pn,Mn,Vc,ju,Pu,dd)))}})},Wl=0;Wl0}).forEach(function(Ti,Ko){var Zo=Ai(Ti[B]);(0,dt.flattenEach)(Zo,function(Qs){var ga=(0,Pt.getCoords)(Qs),Ma=(0,we.Z)((0,we.Z)({},Ti),{},{_id:Ko,coordinates:ga});G.push(Ma)})}),{dataArray:G};for(var ne=0;ne>>0}function Os(a,p){return p===void 0?null:(0,jo.Z)(a.properties[p])*1==="number"?a.properties[p]*1:a.properties&&a.properties[p]?ys(a.properties[p]+"")%1000019:null}function Ye(a,p){var u=[],c={};return a.features?(a.features=a.features.filter(function(l){var g=l.geometry;return l!=null&&g&&g.type&&g.coordinates&&g.coordinates.length>0}),a=Ai(a),a.features.length===0?{dataArray:[],featureKeys:c}:((0,dt.flattenEach)(a,function(l,g){var T=Os(l,p==null?void 0:p.featureId);T===null&&(T=g);var B=T,G=(0,Pt.getCoords)(l),ne=(0,we.Z)((0,we.Z)({},l.properties),{},{coordinates:G,_id:B});u.push(ne)}),{dataArray:u,featureKeys:c})):(a.features=[],{dataArray:[]})}function mt(a,p,u,c){for(var l=c,g=u-p>>1,T=u-p,B,G=a[p],ne=a[p+1],Me=a[u],Ge=a[u+1],Et=p+3;Etl)B=Et,l=Ot;else if(Ot===l){var Pn=Math.abs(Et-g);Pnc&&(B-p>3&&mt(a,p,B,c),a[B+2]=l,u-B>3&&mt(a,B,u,c))}function Ft(a,p,u,c,l,g){var T=l-u,B=g-c;if(T!==0||B!==0){var G=((a-u)*T+(p-c)*B)/(T*T+B*B);G>1?(u=l,c=g):G>0&&(u+=T*G,c+=B*G)}return T=a-u,B=p-c,T*T+B*B}function Dt(a,p,u,c){var l={id:typeof a=="undefined"?null:a,type:p,geometry:u,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return zt(l),l}function zt(a){var p=a.geometry,u=a.type;if(u==="Point"||u==="MultiPoint"||u==="LineString")Gt(a,p);else if(u==="Polygon"||u==="MultiLineString")for(var c=0;c0&&(c?T+=(l*ne-G*g)/2:T+=Math.sqrt(Math.pow(G-l,2)+Math.pow(ne-g,2))),l=G,g=ne}var Me=p.length-3;p[2]=1,mt(p,0,Me,u),p[Me+2]=1,p.size=Math.abs(T),p.start=0,p.end=p.size}function Jn(a,p,u,c){for(var l=0;l1?1:u}function kt(a,p,u,c,l,g,T,B){if(u/=p,c/=p,g>=u&&T=c)return null;for(var G=[],ne=0;ne=u&&Pn=c)continue;var Mn=[];if(Et==="Point"||Et==="MultiPoint")tr(Ge,Mn,u,c,l);else if(Et==="LineString")Ln(Ge,Mn,u,c,l,!1,B.lineMetrics);else if(Et==="MultiLineString")dr(Ge,Mn,u,c,l,!1);else if(Et==="Polygon")dr(Ge,Mn,u,c,l,!0);else if(Et==="MultiPolygon")for(var Ir=0;Ir=u&&T<=c&&(p.push(a[g]),p.push(a[g+1]),p.push(a[g+2]))}}function Ln(a,p,u,c,l,g,T){for(var B=ir(a),G=l===0?Ri:Te,ne=a.start,Me,Ge,Et=0;Etu&&(Ge=G(B,Ot,Pn,Ir,Ti,u),T&&(B.start=ne+Me*Ge)):Ko>c?Zo=u&&(Ge=G(B,Ot,Pn,Ir,Ti,u),Qs=!0),Zo>c&&Ko<=c&&(Ge=G(B,Ot,Pn,Ir,Ti,c),Qs=!0),!g&&Qs&&(T&&(B.end=ne+Me*Ge),p.push(B),B=ir(a)),T&&(ne+=Me)}var ga=a.length-3;Ot=a[ga],Pn=a[ga+1],Mn=a[ga+2],Ko=l===0?Ot:Pn,Ko>=u&&Ko<=c&&jr(B,Ot,Pn,Mn),ga=B.length-3,g&&ga>=3&&(B[ga]!==B[0]||B[ga+1]!==B[1])&&jr(B,B[0],B[1],B[2]),B.length&&p.push(B)}function ir(a){var p=[];return p.size=a.size,p.start=a.start,p.end=a.end,p}function dr(a,p,u,c,l,g){for(var T=0;TT.maxX&&(T.maxX=Me),Ge>T.maxY&&(T.maxY=Ge)}return T}function ko(a,p,u,c){var l=p.geometry,g=p.type,T=[];if(g==="Point"||g==="MultiPoint")for(var B=0;B0&&p.size<(l?T:c)){u.numPoints+=p.length/3;return}for(var B=[],G=0;GT)&&(u.numSimplified++,B.push(p[G]),B.push(p[G+1])),u.numPoints++;l&&Ii(B,g),a.push(B)}function Ii(a,p){for(var u=0,c=0,l=a.length,g=l-2;c0===p)for(c=0,l=a.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(p.promoteId&&p.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=Nr(a,p);this.tiles={},this.tileCoords=[],u&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",p.indexMaxZoom,p.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=qo(c,p),c.length&&this.splitTile(c,0,0,0),u&&(c.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)))}cs.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},cs.prototype.splitTile=function(a,p,u,c,l,g,T){for(var B=[a,p,u,c],G=this.options,ne=G.debug;B.length;){c=B.pop(),u=B.pop(),p=B.pop(),a=B.pop();var Me=1<1&&console.time("creation"),Et=this.tiles[Ge]=ma(a,p,u,c,G),this.tileCoords.push({z:p,x:u,y:c}),ne)){ne>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",p,u,c,Et.numFeatures,Et.numPoints,Et.numSimplified),console.timeEnd("creation"));var Ot="z"+p;this.stats[Ot]=(this.stats[Ot]||0)+1,this.total++}if(Et.source=a,l){if(p===G.maxZoom||p===l)continue;var Pn=1<1&&console.time("clipping");var Mn=.5*G.buffer/G.extent,Ir=.5-Mn,Ti=.5+Mn,Ko=1+Mn,Zo,Qs,ga,Ma,ll,Wl;Zo=Qs=ga=Ma=null,ll=kt(a,Me,u-Mn,u+Ti,0,Et.minX,Et.maxX,G),Wl=kt(a,Me,u+Ir,u+Ko,0,Et.minX,Et.maxX,G),a=null,ll&&(Zo=kt(ll,Me,c-Mn,c+Ti,1,Et.minY,Et.maxY,G),Qs=kt(ll,Me,c+Ir,c+Ko,1,Et.minY,Et.maxY,G),ll=null),Wl&&(ga=kt(Wl,Me,c-Mn,c+Ti,1,Et.minY,Et.maxY,G),Ma=kt(Wl,Me,c+Ir,c+Ko,1,Et.minY,Et.maxY,G),Wl=null),ne>1&&console.timeEnd("clipping"),B.push(Zo||[],p+1,u*2,c*2),B.push(Qs||[],p+1,u*2,c*2+1),B.push(ga||[],p+1,u*2+1,c*2),B.push(Ma||[],p+1,u*2+1,c*2+1)}}},cs.prototype.getTile=function(a,p,u){var c=this.options,l=c.extent,g=c.debug;if(a<0||a>24)return null;var T=1<1&&console.log("drilling down to z%d-%d-%d",a,p,u);for(var G=a,ne=p,Me=u,Ge;!Ge&&G>0;)G--,ne=Math.floor(ne/2),Me=Math.floor(Me/2),Ge=this.tiles[Ps(G,ne,Me)];return!Ge||!Ge.source?null:(g>1&&console.log("found parent tile z%d-%d-%d",G,ne,Me),g>1&&console.time("drilling down"),this.splitTile(Ge.source,G,ne,Me,a,p,u),g>1&&console.timeEnd("drilling down"),this.tiles[B]?ca(this.tiles[B],l):null)};function Ps(a,p,u){return((1<0)switch(c[0]){case"band":try{a[l]=p[c[1]][u]}catch(g){console.warn("Raster Data err!"),a[l]=0}break;default:Le(c,p,u)}})}function Oe(a){var p=(0,qn.Z)(a,3),u=p[0],c=p[1],l=c===void 0?-1:c,g=p[2],T=g===void 0?-1:g;if(u===void 0)return console.warn("Express err!"),["+",0,0];var B=u.replace(/\s+/g,"");return[B,l,T]}function et(a){var p=Oe(a),u=p[0],c=p[1],l=p[2];return Array.isArray(c)&&(c=et(a[1])),Array.isArray(l)&&(l=et(a[2])),Js(u,c,l)}var hn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Rr}};function Rr(a,p){for(var u=a[0].rasterData,c=a[1].rasterData,l=a[2].rasterData,g=[],T=(p==null?void 0:p.countCut)||[2,98],B=(0,qn.Z)(T,2),G=B[0],ne=B[1],Me=(p==null?void 0:p.RMinMax)||wn(u,G,ne),Ge=(p==null?void 0:p.GMinMax)||wn(c,G,ne),Et=(p==null?void 0:p.BMinMax)||wn(l,G,ne),Ot=0;Ot"),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"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},qa=m(49296),Ta=m.n(qa);function Du(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Wc(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Wc(a,p){if(a){if(typeof a=="string")return os(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return os(a,p)}}function os(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ug&&(Ot=0,Et++),B[Mn]={x:Ot,y:Ge+Et*Mo,width:Mo,height:Mo,advance:Ti},Ot+=Mo}});var Pn=c+l*2;return{mapping:B,xOffset:Ot,yOffset:Ge+Et*Pn,canvasHeight:js(Ge+(Et+1)*Pn)}}function Da(a,p,u){var c=0,l=0,g=0,T=[],B={},G=Du(a),ne;try{for(G.s();!(ne=G.n()).done;){var Me=ne.value;if(!B[Me.id]){var Ge=Me.size;c+Ge+p>u&&(Ra(B,T,l),c=0,l=g+l+p,g=0,T=[]),T.push({icon:Me,xOffset:c}),c=c+Ge+p,g=Math.max(g,Ge)}}}catch(Ot){G.e(Ot)}finally{G.f()}T.length>0&&Ra(B,T,l);var Et=js(g+l+p);return{mapping:B,canvasHeight:Et}}function Ra(a,p,u){var c=Du(p),l;try{for(c.s();!(l=c.n()).done;){var g=l.value,T=g.icon,B=g.xOffset;a[T.id]=(0,we.Z)((0,we.Z)({},T),{},{x:B,y:u,image:T.image,width:T.width,height:T.height})}}catch(G){c.e(G)}finally{c.f()}}function js(a){return Math.pow(2,Math.ceil(Math.log2(a)))}var bs,Qi;function ar(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=zr(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function zr(a,p){if(a){if(typeof a=="string")return Ci(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Ci(a,p)}}function Ci(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]this.getMaxConcurrency();l?(d.destroy(),this.count--):this.idleQueue.push(d),this.isDestroyed||this.startQueuedJob()},o.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=o.length&&(o=void 0),{value:o&&o[c++],done:!o}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},Sn={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},yi=function(){function o(d){this.workerPools=new Map,this.props=yn({},Sn),this.setProps(d),this.workerPools=new Map}return o.isSupported=function(){return J.isSupported()},o.getWorkerFarm=function(d){return d===void 0&&(d={}),o.workerFarm=o.workerFarm||new o({}),o.workerFarm.setProps(d),o.workerFarm},o.prototype.destroy=function(){var d,l;try{for(var c=_r(this.workerPools.values()),u=c.next();!u.done;u=c.next()){var m=u.value;m.destroy()}}catch(E){d={error:E}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}},o.prototype.setProps=function(d){var l,c;this.props=yn(yn({},this.props),d);try{for(var u=_r(this.workerPools.values()),m=u.next();!m.done;m=u.next()){var E=m.value;E.setProps(this.getWorkerPoolProps())}}catch(M){l={error:M}}finally{try{m&&!m.done&&(c=u.return)&&c.call(u)}finally{if(l)throw l.error}}},o.prototype.getWorkerPool=function(d){var l=d.name,c=d.source,u=d.url,m=this.workerPools.get(l);return m||(m=new Mt({name:l,source:c,url:u}),m.setProps(this.getWorkerPoolProps()),this.workerPools.set(l,m)),m},o.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},o}(),Oi=yi,Ji=new Map,Lo=function(){function o(){}return Object.defineProperty(o,"onmessage",{set:function(d){self.onmessage=function(l){if(Zi(l)){var c=l.data,u=c.type,m=c.payload;d(u,m)}}},enumerable:!1,configurable:!0}),o.addEventListener=function(d){var l=Ji.get(d);l||(l=function(c){if(Zi(c)){var u=c.data,m=u.type,E=u.payload;d(m,E)}}),self.addEventListener("message",l)},o.removeEventListener=function(d){var l=Ji.get(d);Ji.delete(d),self.removeEventListener("message",l)},o.postMessage=function(d,l){if(self){var c={source:"Worker thread",type:d,payload:l},u=rn(l);self.postMessage(c,u)}},o}(),Qo=null;function Zi(o){var d=o.type,l=o.data;return d==="message"&&l&&typeof l.source=="string"&&l.source==="Main thread"}function Wo(o){return JSON.parse(js(o))}function js(o){var d=new Set;return JSON.stringify(o,function(l,c){if(typeof c=="object"&&c!==null){if(d.has(c))try{return JSON.parse(JSON.stringify(c))}catch(u){return}d.add(c)}return c})}function Ja(o){return""+o.name}function Ha(o,d){d===void 0&&(d={});var l=d[o.id]||{},c=o.name+".worker.js",u=l.workerUrl;return d._workerType==="test"&&(u=o.module+"/dist/"+c),u||(u="https://unpkg.com/"+o.module+"/dist/"+c),assert(u),u}var Xl=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function M(Ce){try{ne(c.next(Ce))}catch(Fe){E(Fe)}}function Z(Ce){try{ne(c.throw(Ce))}catch(Fe){E(Fe)}}function ne(Ce){Ce.done?m(Ce.value):u(Ce.value).then(M,Z)}ne((c=c.apply(o,d||[])).next())})},bl=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function M(ne){return function(Ce){return Z([ne,Ce])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var l=this._settlers.shift();d instanceof Error?l.reject(d):l.resolve({value:d})}else this._values.push(d)},o.prototype.close=function(){for(;this._settlers.length>0;){var d=this._settlers.shift();d.resolve({done:!0})}this._closed=!0},o.prototype.next=function(){var d=this;if(this._values.length>0){var l=this._values.shift();return l instanceof Error?Promise.reject(l):Promise.resolve({done:!1,value:l})}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(c,u){d._settlers.push({resolve:c,reject:u})})},o}(),Qc=null,lh=function(o,d,l,c){function u(m){return m instanceof l?m:new l(function(E){E(m)})}return new(l||(l=Promise))(function(m,E){function M(Ce){try{ne(c.next(Ce))}catch(Fe){E(Fe)}}function Z(Ce){try{ne(c.throw(Ce))}catch(Fe){E(Fe)}}function ne(Ce){Ce.done?m(Ce.value):u(Ce.value).then(M,Z)}ne((c=c.apply(o,d||[])).next())})},zh=function(o,d){var l={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,u,m,E;return E={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function M(ne){return function(Ce){return Z([ne,Ce])}}function Z(ne){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,u&&(m=ne[0]&2?u.return:ne[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,ne[1])).done)return m;switch(u=0,m&&(ne=[ne[0]&2,m.value]),ne[0]){case 0:case 1:m=ne;break;case 4:return l.label++,{value:ne[1],done:!1};case 5:l.label++,u=ne[1],ne=[0];continue;case 7:ne=l.ops.pop(),l.trys.pop();continue;default:if(m=l.trys,!(m=m.length>0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0&&(u=1/Math.sqrt(u)),o[0]=d[0]*u,o[1]=d[1]*u,o}function ym(o,d){return o[0]*d[0]+o[1]*d[1]}function zg(o,d,l){var c=d[0]*l[1]-d[1]*l[0];return o[0]=o[1]=0,o[2]=c,o}function jm(o,d,l,c){var u=d[0],m=d[1];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o}function Lg(o,d){d=d||1;var l=glMatrix.RANDOM()*2*Math.PI;return o[0]=Math.cos(l)*d,o[1]=Math.sin(l)*d,o}function sv(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u,o[1]=l[1]*c+l[3]*u,o}function Zf(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[2]*u+l[4],o[1]=l[1]*c+l[3]*u+l[5],o}function Ep(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[3]*u+l[6],o[1]=l[1]*c+l[4]*u+l[7],o}function pf(o,d,l){var c=d[0],u=d[1];return o[0]=l[0]*c+l[4]*u+l[12],o[1]=l[1]*c+l[5]*u+l[13],o}function O0(o,d,l,c){var u=d[0]-l[0],m=d[1]-l[1],E=Math.sin(c),M=Math.cos(c);return o[0]=u*M-m*E+l[0],o[1]=u*E+m*M+l[1],o}function N0(o,d){var l=o[0],c=o[1],u=d[0],m=d[1],E=Math.sqrt(l*l+c*c)*Math.sqrt(u*u+m*m),M=E&&(l*u+c*m)/E;return Math.acos(Math.min(Math.max(M,-1),1))}function hm(o){return o[0]=0,o[1]=0,o}function I0(o){return"vec2("+o[0]+", "+o[1]+")"}function Y0(o,d){return o[0]===d[0]&&o[1]===d[1]}function q0(o,d){var l=o[0],c=o[1],u=d[0],m=d[1];return Math.abs(l-u)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(c-m)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}var Md=null,s0=qd,gm=null,d0=null,Mm=null,f0=null,Gp=null,em=function(){var o=Nd();return function(d,l,c,u,m,E){var M,Z;for(l||(l=2),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;M0&&arguments[0]!==void 0?arguments[0]:{};(0,xt.Z)(this,o),(0,Ln.Z)(this,"lastFlip",-1),(0,Ln.Z)(this,"miter",Fp(0,0)),(0,Ln.Z)(this,"started",!1),(0,Ln.Z)(this,"dash",!1),(0,Ln.Z)(this,"totalDistance",0),(0,Ln.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,ot.Z)(o,[{key:"extrude_gaode2",value:function(l,c){var u=this.complex;if(l.length<=1)return u;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var m=l.length,E=u.startIndex,M=1;Mthis.miterLimit&&(th=!0)}th?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(Iu[0],Iu[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip!==-Vu?[c,c+2,c+3]:[c+2,c+1,c+3])),Fe.push(c+2,c+3,c+4),Tt(Fm,we),Hp(this.normal,Fm),Bt.push(this.normal[0],this.normal[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ce+=3):(this.extrusions(bt,Bt,m,Iu,ru,this.totalDistance),Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Vu=-1,Hp(this.normal,Iu),Ce+=2),this.lastFlip=Vu}else{if(Tt(this.normal,hg),Cn){var ta=Nd(),aa=Nd();s0(aa,hg,this.normal),Uf(ta,hg,this.normal),Bt.push(aa[0],aa[1],0),Bt.push(ta[0],ta[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(bt,Bt,m,this.normal,this.thickness,this.totalDistance);Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ce+=2}return Ce}},{key:"simpleSegment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Fe=xc([m[0],m[1]]),bt=xc([u[0],u[1]]);jn(hg,Fe,bt);var Bt=0;if(this.dash&&(Bt=this.lineSegmentDistance(Fe,bt),this.totalDistance+=Bt),this.normal||(this.normal=Nd(),Tt(this.normal,hg)),this.started||(this.started=!0,this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-Bt)),Z.push(c+0,c+1,c+2),!E)Tt(this.normal,hg),this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance),Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2;else{var Cn=xc([E[0],E[1]]);yt(Fe,Cn)&&Uf(Cn,Fe,Fg(Cn,qd(Cn,Fe,bt))),jn(we,Cn,Fe);var An=Re(ee,Nd(),hg,we,this.thickness),Pr=(0,mi.Z)(An,2),ti=Pr[0],ho=Pr[1],bo=ym(ee,this.normal)<0?-1:1;this.extrusions(ne,Ce,m,ho,ti,this.totalDistance),Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),bo=-1,Hp(this.normal,ho),M+=2,this.lastFlip=bo}return M}},{key:"segment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Fe=this.cap==="square",bt=this.join==="bevel",Bt=xc([m[0],m[1]]),Cn=xc([u[0],u[1]]);jn(hg,Bt,Cn);var An=0;if(this.dash&&(An=this.lineSegmentDistance(Bt,Cn),this.totalDistance+=An),this.normal||(this.normal=Nd(),Tt(this.normal,hg)),!this.started)if(this.started=!0,Fe){var Pr=Nd(),ti=Nd();Uf(Pr,this.normal,hg),Uf(ti,this.normal,hg),Ce.push(ti[0],ti[1],0),Ce.push(Pr[0],Pr[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-An,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-An,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-An);if(Z.push(c+0,c+1,c+2),E){var Ds=xc([E[0],E[1]]);yt(Bt,Ds)&&Uf(Ds,Bt,Fg(Ds,qd(Ds,Bt,Cn))),jn(we,Ds,Bt);var ta=Re(ee,Nd(),hg,we,this.thickness),aa=(0,mi.Z)(ta,2),Ua=aa[0],pl=aa[1],ru=ym(ee,this.normal)<0?-1:1,Iu=bt;if(!Iu&&this.join==="miter"){var Vu=Ua;Vu>this.miterLimit&&(Iu=!0)}Iu?(Ce.push(this.normal[0],this.normal[1],0),Ce.push(pl[0],pl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,Pn.Z)(this.lastFlip!==-ru?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),Tt(Fm,we),Hp(this.normal,Fm),Ce.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,M+=3):(this.extrusions(ne,Ce,m,pl,Ua,this.totalDistance),Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),ru=-1,Hp(this.normal,pl),M+=2),this.lastFlip=ru}else{if(Tt(this.normal,hg),Fe){var ho=Nd(),bo=Nd();s0(bo,hg,this.normal),Uf(ho,hg,this.normal),Ce.push(bo[0],bo[1],0),Ce.push(ho[0],ho[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2}return M}},{key:"extrusions",value:function(l,c,u,m,E,M){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,M,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,M,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function cn(o){var d=o.coordinates,l=o.originCoordinates,c=o.version,u=new Zt({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var m=d;Array.isArray(m[0][0])||(m=[d]);var E=l;Array.isArray(E[0][0])||(E=[l]);for(var M=0;M0}).forEach(function(ti,ho){var bo=Rr(ti[M]);(0,Ft.flattenEach)(bo,function(Ds){var ta=(0,Xt.getCoords)(Ds),aa=(0,Oe.Z)((0,Oe.Z)({},ti),{},{_id:ho,coordinates:ta});Z.push(aa)})}),{dataArray:Z};for(var ne=0;ne>>0}function ro(o,d){return d===void 0?null:(0,ri.Z)(o.properties[d])*1==="number"?o.properties[d]*1:o.properties&&o.properties[d]?Ri(o.properties[d]+"")%1000019:null}function fo(o,d){var l=[],c={};return o.features?(o.features=o.features.filter(function(u){var m=u.geometry;return u!=null&&m&&m.type&&m.coordinates&&m.coordinates.length>0}),o=Rr(o),o.features.length===0?{dataArray:[],featureKeys:c}:((0,Ft.flattenEach)(o,function(u,m){var E=ro(u,d==null?void 0:d.featureId);E===null&&(E=m);var M=E,Z=(0,Xt.getCoords)(u),ne=(0,Oe.Z)((0,Oe.Z)({},u.properties),{},{coordinates:Z,_id:M});l.push(ne)}),{dataArray:l,featureKeys:c})):(o.features=[],{dataArray:[]})}function zo(o,d,l,c){for(var u=c,m=l-d>>1,E=l-d,M,Z=o[d],ne=o[d+1],Ce=o[l],Fe=o[l+1],bt=d+3;btu)M=bt,u=Bt;else if(Bt===u){var Cn=Math.abs(bt-m);Cnc&&(M-d>3&&zo(o,d,M,c),o[M+2]=u,l-M>3&&zo(o,M,l,c))}function Oo(o,d,l,c,u,m){var E=u-l,M=m-c;if(E!==0||M!==0){var Z=((o-l)*E+(d-c)*M)/(E*E+M*M);Z>1?(l=u,c=m):Z>0&&(l+=E*Z,c+=M*Z)}return E=o-l,M=d-c,E*E+M*M}function cs(o,d,l,c){var u={id:typeof o=="undefined"?null:o,type:d,geometry:l,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Pi(u),u}function Pi(o){var d=o.geometry,l=o.type;if(l==="Point"||l==="MultiPoint"||l==="LineString")Us(o,d);else if(l==="Polygon"||l==="MultiLineString")for(var c=0;c0&&(c?E+=(u*ne-Z*m)/2:E+=Math.sqrt(Math.pow(Z-u,2)+Math.pow(ne-m,2))),u=Z,m=ne}var Ce=d.length-3;d[2]=1,zo(d,0,Ce,l),d[Ce+2]=1,d.size=Math.abs(E),d.start=0,d.end=d.size}function ia(o,d,l,c){for(var u=0;u1?1:l}function hi(o,d,l,c,u,m,E,M){if(l/=d,c/=d,m>=l&&E=c)return null;for(var Z=[],ne=0;ne=l&&Cn=c)continue;var An=[];if(bt==="Point"||bt==="MultiPoint")fs(Fe,An,l,c,u);else if(bt==="LineString")vs(Fe,An,l,c,u,!1,M.lineMetrics);else if(bt==="MultiLineString")Qi(Fe,An,l,c,u,!1);else if(bt==="Polygon")Qi(Fe,An,l,c,u,!0);else if(bt==="MultiPolygon")for(var Pr=0;Pr=l&&E<=c&&(d.push(o[m]),d.push(o[m+1]),d.push(o[m+2]))}}function vs(o,d,l,c,u,m,E){for(var M=ga(o),Z=u===0?Bo:Os,ne=o.start,Ce,Fe,bt=0;btl&&(Fe=Z(M,Bt,Cn,Pr,ti,l),E&&(M.start=ne+Ce*Fe)):ho>c?bo=l&&(Fe=Z(M,Bt,Cn,Pr,ti,l),Ds=!0),bo>c&&ho<=c&&(Fe=Z(M,Bt,Cn,Pr,ti,c),Ds=!0),!m&&Ds&&(E&&(M.end=ne+Ce*Fe),d.push(M),M=ga(o)),E&&(ne+=Ce)}var ta=o.length-3;Bt=o[ta],Cn=o[ta+1],An=o[ta+2],ho=u===0?Bt:Cn,ho>=l&&ho<=c&&vo(M,Bt,Cn,An),ta=M.length-3,m&&ta>=3&&(M[ta]!==M[0]||M[ta+1]!==M[1])&&vo(M,M[0],M[1],M[2]),M.length&&d.push(M)}function ga(o){var d=[];return d.size=o.size,d.start=o.start,d.end=o.end,d}function Qi(o,d,l,c,u,m){for(var E=0;EE.maxX&&(E.maxX=Ce),Fe>E.maxY&&(E.maxY=Fe)}return E}function La(o,d,l,c){var u=d.geometry,m=d.type,E=[];if(m==="Point"||m==="MultiPoint")for(var M=0;M0&&d.size<(u?E:c)){l.numPoints+=d.length/3;return}for(var M=[],Z=0;ZE)&&(l.numSimplified++,M.push(d[Z]),M.push(d[Z+1])),l.numPoints++;u&&la(M,m),o.push(M)}function la(o,d){for(var l=0,c=0,u=o.length,m=u-2;c0===d)for(c=0,u=o.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(d.promoteId&&d.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=rs(o,d);this.tiles={},this.tileCoords=[],l&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",d.indexMaxZoom,d.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=_a(c,d),c.length&&this.splitTile(c,0,0,0),l&&(c.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)))}Ws.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ws.prototype.splitTile=function(o,d,l,c,u,m,E){for(var M=[o,d,l,c],Z=this.options,ne=Z.debug;M.length;){c=M.pop(),l=M.pop(),d=M.pop(),o=M.pop();var Ce=1<1&&console.time("creation"),bt=this.tiles[Fe]=Ps(o,d,l,c,Z),this.tileCoords.push({z:d,x:l,y:c}),ne)){ne>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",d,l,c,bt.numFeatures,bt.numPoints,bt.numSimplified),console.timeEnd("creation"));var Bt="z"+d;this.stats[Bt]=(this.stats[Bt]||0)+1,this.total++}if(bt.source=o,u){if(d===Z.maxZoom||d===u)continue;var Cn=1<1&&console.time("clipping");var An=.5*Z.buffer/Z.extent,Pr=.5-An,ti=.5+An,ho=1+An,bo,Ds,ta,aa,Ua,pl;bo=Ds=ta=aa=null,Ua=hi(o,Ce,l-An,l+ti,0,bt.minX,bt.maxX,Z),pl=hi(o,Ce,l+Pr,l+ho,0,bt.minX,bt.maxX,Z),o=null,Ua&&(bo=hi(Ua,Ce,c-An,c+ti,1,bt.minY,bt.maxY,Z),Ds=hi(Ua,Ce,c+Pr,c+ho,1,bt.minY,bt.maxY,Z),Ua=null),pl&&(ta=hi(pl,Ce,c-An,c+ti,1,bt.minY,bt.maxY,Z),aa=hi(pl,Ce,c+Pr,c+ho,1,bt.minY,bt.maxY,Z),pl=null),ne>1&&console.timeEnd("clipping"),M.push(bo||[],d+1,l*2,c*2),M.push(Ds||[],d+1,l*2,c*2+1),M.push(ta||[],d+1,l*2+1,c*2),M.push(aa||[],d+1,l*2+1,c*2+1)}}},Ws.prototype.getTile=function(o,d,l){var c=this.options,u=c.extent,m=c.debug;if(o<0||o>24)return null;var E=1<1&&console.log("drilling down to z%d-%d-%d",o,d,l);for(var Z=o,ne=d,Ce=l,Fe;!Fe&&Z>0;)Z--,ne=Math.floor(ne/2),Ce=Math.floor(Ce/2),Fe=this.tiles[_s(Z,ne,Ce)];return!Fe||!Fe.source?null:(m>1&&console.log("found parent tile z%d-%d-%d",Z,ne,Ce),m>1&&console.time("drilling down"),this.splitTile(Fe.source,Z,ne,Ce,o,d,l),m>1&&console.timeEnd("drilling down"),this.tiles[M]?sl(this.tiles[M],u):null)};function _s(o,d,l){return((1<0)switch(c[0]){case"band":try{o[u]=d[c[1]][l]}catch(m){console.warn("Raster Data err!"),o[u]=0}break;default:Ge(c,d,l)}})}function He(o){var d=(0,mi.Z)(o,3),l=d[0],c=d[1],u=c===void 0?-1:c,m=d[2],E=m===void 0?-1:m;if(l===void 0)return console.warn("Express err!"),["+",0,0];var M=l.replace(/\s+/g,"");return[M,u,E]}function mt(o){var d=He(o),l=d[0],c=d[1],u=d[2];return Array.isArray(c)&&(c=mt(o[1])),Array.isArray(u)&&(u=mt(o[2])),$l(l,c,u)}var In={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:bi}};function bi(o,d){for(var l=o[0].rasterData,c=o[1].rasterData,u=o[2].rasterData,m=[],E=(d==null?void 0:d.countCut)||[2,98],M=(0,mi.Z)(E,2),Z=M[0],ne=M[1],Ce=(d==null?void 0:d.RMinMax)||Kn(l,Z,ne),Fe=(d==null?void 0:d.GMinMax)||Kn(c,Z,ne),bt=(d==null?void 0:d.BMinMax)||Kn(u,Z,ne),Bt=0;Bt"),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"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},wo=_(49296),is=_.n(wo);function Rs(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Vl(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Vl(o,d){if(o){if(typeof o=="string")return wl(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return wl(o,d)}}function wl(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lm&&(Bt=0,bt++),M[An]={x:Bt,y:Fe+bt*Sa,width:Sa,height:Sa,advance:ti},Bt+=Sa}});var Cn=c+u*2;return{mapping:M,xOffset:Bt,yOffset:Fe+bt*Cn,canvasHeight:Ta(Fe+(bt+1)*Cn)}}function ja(o,d,l){var c=0,u=0,m=0,E=[],M={},Z=Rs(o),ne;try{for(Z.s();!(ne=Z.n()).done;){var Ce=ne.value;if(!M[Ce.id]){var Fe=Ce.size;c+Fe+d>l&&(Bs(M,E,u),c=0,u=m+u+d,m=0,E=[]),E.push({icon:Ce,xOffset:c}),c=c+Fe+d,m=Math.max(m,Fe)}}}catch(Bt){Z.e(Bt)}finally{Z.f()}E.length>0&&Bs(M,E,u);var bt=Ta(m+u+d);return{mapping:M,canvasHeight:bt}}function Bs(o,d,l){var c=Rs(d),u;try{for(c.s();!(u=c.n()).done;){var m=u.value,E=m.icon,M=m.xOffset;o[E.id]=(0,Oe.Z)((0,Oe.Z)({},E),{},{x:M,y:l,image:E.image,width:E.width,height:E.height})}}catch(Z){c.e(Z)}finally{c.f()}}function Ta(o){return Math.pow(2,Math.ceil(Math.log2(o)))}var jo,Ya;function Al(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Pl(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Pl(o,d){if(o){if(typeof o=="string")return Bu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Bu(o,d)}}function Bu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0?(u[0]=(B*T+Me*c+G*g-ne*l)*2/Ge,u[1]=(G*T+Me*l+ne*c-B*g)*2/Ge,u[2]=(ne*T+Me*g+B*l-G*c)*2/Ge):(u[0]=(B*T+Me*c+G*g-ne*l)*2,u[1]=(G*T+Me*l+ne*c-B*g)*2,u[2]=(ne*T+Me*g+B*l-G*c)*2),R(a,p,u),a}function ue(a,p){return a[0]=p[12],a[1]=p[13],a[2]=p[14],a}function Pe(a,p){var u=p[0],c=p[1],l=p[2],g=p[4],T=p[5],B=p[6],G=p[8],ne=p[9],Me=p[10];return a[0]=Math.hypot(u,c,l),a[1]=Math.hypot(g,T,B),a[2]=Math.hypot(G,ne,Me),a}function Qe(a,p){var u=new Sc(3);Pe(u,p);var c=1/u[0],l=1/u[1],g=1/u[2],T=p[0]*c,B=p[1]*l,G=p[2]*g,ne=p[4]*c,Me=p[5]*l,Ge=p[6]*g,Et=p[8]*c,Ot=p[9]*l,Pn=p[10]*g,Mn=T+Me+Pn,Ir=0;return Mn>0?(Ir=Math.sqrt(Mn+1)*2,a[3]=.25*Ir,a[0]=(Ge-Ot)/Ir,a[1]=(Et-G)/Ir,a[2]=(B-ne)/Ir):T>Me&&T>Pn?(Ir=Math.sqrt(1+T-Me-Pn)*2,a[3]=(Ge-Ot)/Ir,a[0]=.25*Ir,a[1]=(B+ne)/Ir,a[2]=(Et+G)/Ir):Me>Pn?(Ir=Math.sqrt(1+Me-T-Pn)*2,a[3]=(Et-G)/Ir,a[0]=(B+ne)/Ir,a[1]=.25*Ir,a[2]=(Ge+Ot)/Ir):(Ir=Math.sqrt(1+Pn-T-Me)*2,a[3]=(B-ne)/Ir,a[0]=(Et+G)/Ir,a[1]=(Ge+Ot)/Ir,a[2]=.25*Ir),a}function wt(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3],G=l+l,ne=g+g,Me=T+T,Ge=l*G,Et=l*ne,Ot=l*Me,Pn=g*ne,Mn=g*Me,Ir=T*Me,Ti=B*G,Ko=B*ne,Zo=B*Me,Qs=c[0],ga=c[1],Ma=c[2];return a[0]=(1-(Pn+Ir))*Qs,a[1]=(Et+Zo)*Qs,a[2]=(Ot-Ko)*Qs,a[3]=0,a[4]=(Et-Zo)*ga,a[5]=(1-(Ge+Ir))*ga,a[6]=(Mn+Ti)*ga,a[7]=0,a[8]=(Ot+Ko)*Ma,a[9]=(Mn-Ti)*Ma,a[10]=(1-(Ge+Pn))*Ma,a[11]=0,a[12]=u[0],a[13]=u[1],a[14]=u[2],a[15]=1,a}function jt(a,p,u,c,l){var g=p[0],T=p[1],B=p[2],G=p[3],ne=g+g,Me=T+T,Ge=B+B,Et=g*ne,Ot=g*Me,Pn=g*Ge,Mn=T*Me,Ir=T*Ge,Ti=B*Ge,Ko=G*ne,Zo=G*Me,Qs=G*Ge,ga=c[0],Ma=c[1],ll=c[2],Wl=l[0],jl=l[1],ju=l[2],Pu=(1-(Mn+Ti))*ga,Vc=(Ot+Qs)*ga,dd=(Pn-Zo)*ga,Kd=(Ot-Qs)*Ma,Hp=(1-(Et+Ti))*Ma,gm=(Ir+Ko)*Ma,Fg=(Pn+Zo)*ll,mm=(Ir-Ko)*ll,b0=(1-(Et+Mn))*ll;return a[0]=Pu,a[1]=Vc,a[2]=dd,a[3]=0,a[4]=Kd,a[5]=Hp,a[6]=gm,a[7]=0,a[8]=Fg,a[9]=mm,a[10]=b0,a[11]=0,a[12]=u[0]+Wl-(Pu*Wl+Kd*jl+Fg*ju),a[13]=u[1]+jl-(Vc*Wl+Hp*jl+mm*ju),a[14]=u[2]+ju-(dd*Wl+gm*jl+b0*ju),a[15]=1,a}function Nn(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u+u,B=c+c,G=l+l,ne=u*T,Me=c*T,Ge=c*B,Et=l*T,Ot=l*B,Pn=l*G,Mn=g*T,Ir=g*B,Ti=g*G;return a[0]=1-Ge-Pn,a[1]=Me+Ti,a[2]=Et-Ir,a[3]=0,a[4]=Me-Ti,a[5]=1-ne-Pn,a[6]=Ot+Mn,a[7]=0,a[8]=Et+Ir,a[9]=Ot-Mn,a[10]=1-ne-Ge,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function cr(a,p,u,c,l,g,T){var B=1/(u-p),G=1/(l-c),ne=1/(g-T);return a[0]=g*2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g*2*G,a[6]=0,a[7]=0,a[8]=(u+p)*B,a[9]=(l+c)*G,a[10]=(T+g)*ne,a[11]=-1,a[12]=0,a[13]=0,a[14]=T*g*2*ne,a[15]=0,a}function Ur(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=(l+c)*T,a[14]=2*l*c*T):(a[10]=-1,a[14]=-2*c),a}var bi=Ur;function _o(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=l*T,a[14]=l*c*T):(a[10]=-1,a[14]=-c),a}function zo(a,p,u,c){var l=Math.tan(p.upDegrees*Math.PI/180),g=Math.tan(p.downDegrees*Math.PI/180),T=Math.tan(p.leftDegrees*Math.PI/180),B=Math.tan(p.rightDegrees*Math.PI/180),G=2/(T+B),ne=2/(l+g);return a[0]=G,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=ne,a[6]=0,a[7]=0,a[8]=-((T-B)*G*.5),a[9]=(l-g)*ne*.5,a[10]=c/(u-c),a[11]=-1,a[12]=0,a[13]=0,a[14]=c*u/(u-c),a[15]=0,a}function qs(a,p,u,c,l,g,T){var B=1/(p-u),G=1/(c-l),ne=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*G,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*ne,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*G,a[14]=(T+g)*ne,a[15]=1,a}var ra=qs;function al(a,p,u,c,l,g,T){var B=1/(p-u),G=1/(c-l),ne=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*G,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=ne,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*G,a[14]=g*ne,a[15]=1,a}function Pa(a,p,u,c){var l,g,T,B,G,ne,Me,Ge,Et,Ot,Pn=p[0],Mn=p[1],Ir=p[2],Ti=c[0],Ko=c[1],Zo=c[2],Qs=u[0],ga=u[1],Ma=u[2];return Math.abs(Pn-Qs)0&&(Ot=1/Math.sqrt(Ot),Me*=Ot,Ge*=Ot,Et*=Ot);var Pn=G*Et-ne*Ge,Mn=ne*Me-B*Et,Ir=B*Ge-G*Me;return Ot=Pn*Pn+Mn*Mn+Ir*Ir,Ot>0&&(Ot=1/Math.sqrt(Ot),Pn*=Ot,Mn*=Ot,Ir*=Ot),a[0]=Pn,a[1]=Mn,a[2]=Ir,a[3]=0,a[4]=Ge*Ir-Et*Mn,a[5]=Et*Pn-Me*Ir,a[6]=Me*Mn-Ge*Pn,a[7]=0,a[8]=Me,a[9]=Ge,a[10]=Et,a[11]=0,a[12]=l,a[13]=g,a[14]=T,a[15]=1,a}function Vl(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}function cu(a){return Math.hypot(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15])}function lu(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a[4]=p[4]+u[4],a[5]=p[5]+u[5],a[6]=p[6]+u[6],a[7]=p[7]+u[7],a[8]=p[8]+u[8],a[9]=p[9]+u[9],a[10]=p[10]+u[10],a[11]=p[11]+u[11],a[12]=p[12]+u[12],a[13]=p[13]+u[13],a[14]=p[14]+u[14],a[15]=p[15]+u[15],a}function Hu(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a[4]=p[4]-u[4],a[5]=p[5]-u[5],a[6]=p[6]-u[6],a[7]=p[7]-u[7],a[8]=p[8]-u[8],a[9]=p[9]-u[9],a[10]=p[10]-u[10],a[11]=p[11]-u[11],a[12]=p[12]-u[12],a[13]=p[13]-u[13],a[14]=p[14]-u[14],a[15]=p[15]-u[15],a}function kc(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a[4]=p[4]*u,a[5]=p[5]*u,a[6]=p[6]*u,a[7]=p[7]*u,a[8]=p[8]*u,a[9]=p[9]*u,a[10]=p[10]*u,a[11]=p[11]*u,a[12]=p[12]*u,a[13]=p[13]*u,a[14]=p[14]*u,a[15]=p[15]*u,a}function ac(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a[4]=p[4]+u[4]*c,a[5]=p[5]+u[5]*c,a[6]=p[6]+u[6]*c,a[7]=p[7]+u[7]*c,a[8]=p[8]+u[8]*c,a[9]=p[9]+u[9]*c,a[10]=p[10]+u[10]*c,a[11]=p[11]+u[11]*c,a[12]=p[12]+u[12]*c,a[13]=p[13]+u[13]*c,a[14]=p[14]+u[14]*c,a[15]=p[15]+u[15]*c,a}function _d(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]&&a[4]===p[4]&&a[5]===p[5]&&a[6]===p[6]&&a[7]===p[7]&&a[8]===p[8]&&a[9]===p[9]&&a[10]===p[10]&&a[11]===p[11]&&a[12]===p[12]&&a[13]===p[13]&&a[14]===p[14]&&a[15]===p[15]}function Xu(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=a[4],B=a[5],G=a[6],ne=a[7],Me=a[8],Ge=a[9],Et=a[10],Ot=a[11],Pn=a[12],Mn=a[13],Ir=a[14],Ti=a[15],Ko=p[0],Zo=p[1],Qs=p[2],ga=p[3],Ma=p[4],ll=p[5],Wl=p[6],jl=p[7],ju=p[8],Pu=p[9],Vc=p[10],dd=p[11],Kd=p[12],Hp=p[13],gm=p[14],Fg=p[15];return Math.abs(u-Ko)<=ld*Math.max(1,Math.abs(u),Math.abs(Ko))&&Math.abs(c-Zo)<=ld*Math.max(1,Math.abs(c),Math.abs(Zo))&&Math.abs(l-Qs)<=ld*Math.max(1,Math.abs(l),Math.abs(Qs))&&Math.abs(g-ga)<=ld*Math.max(1,Math.abs(g),Math.abs(ga))&&Math.abs(T-Ma)<=ld*Math.max(1,Math.abs(T),Math.abs(Ma))&&Math.abs(B-ll)<=ld*Math.max(1,Math.abs(B),Math.abs(ll))&&Math.abs(G-Wl)<=ld*Math.max(1,Math.abs(G),Math.abs(Wl))&&Math.abs(ne-jl)<=ld*Math.max(1,Math.abs(ne),Math.abs(jl))&&Math.abs(Me-ju)<=ld*Math.max(1,Math.abs(Me),Math.abs(ju))&&Math.abs(Ge-Pu)<=ld*Math.max(1,Math.abs(Ge),Math.abs(Pu))&&Math.abs(Et-Vc)<=ld*Math.max(1,Math.abs(Et),Math.abs(Vc))&&Math.abs(Ot-dd)<=ld*Math.max(1,Math.abs(Ot),Math.abs(dd))&&Math.abs(Pn-Kd)<=ld*Math.max(1,Math.abs(Pn),Math.abs(Kd))&&Math.abs(Mn-Hp)<=ld*Math.max(1,Math.abs(Mn),Math.abs(Hp))&&Math.abs(Ir-gm)<=ld*Math.max(1,Math.abs(Ir),Math.abs(gm))&&Math.abs(Ti-Fg)<=ld*Math.max(1,Math.abs(Ti),Math.abs(Fg))}var Nd=Sl,qt=Hu,On,hr,Gr=(On=(0,As.b2)(),On(hr=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"viewport",void 0),(0,Cn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Cn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Cn.Z)(this,"jitteredProjectionMatrix",void 0),(0,Cn.Z)(this,"viewMatrixInverse",void 0),(0,Cn.Z)(this,"cameraPosition",void 0)}return(0,He.Z)(a,[{key:"init",value:function(){}},{key:"update",value:function(u){this.viewport=u,this.viewMatrixInverse=on(),$u(this.viewMatrixInverse,u.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 u=this.viewport.getCenter(),c=(0,qn.Z)(u,2),l=c[0],g=c[1];return[l,g]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}},{key:"setViewProjectionMatrix",value:function(u){this.overridedViewProjectionMatrix=u}},{key:"jitterProjectionMatrix",value:function(u,c){var l=Oo(on(),[u,c,0]);this.jitteredProjectionMatrix=Sl(on(),l,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Sl(on(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),a}())||hr),bo=function(a){return a.TOPRIGHT="topright",a.TOPLEFT="topleft",a.BOTTOMRIGHT="bottomright",a.BOTTOMLEFT="bottomleft",a.TOPCENTER="topcenter",a.BOTTOMCENTER="bottomcenter",a.LEFTCENTER="leftcenter",a.RIGHTCENTER="rightcenter",a.LEFTTOP="lefttop",a.RIGHTTOP="righttop",a.LEFTBOTTOM="leftbottom",a.RIGHTBOTTOM="rightbottom",a}({}),aa,Ya;function ka(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Xl(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Xl(a,p){if(a){if(typeof a=="string")return wu(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return wu(a,p)}}function wu(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&this.controls.splice(c,1),u.remove(),this}},{key:"addControls",value:function(){var u=this;this.unAddControls.forEach(function(c){c.addTo(u.scene),u.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var u=ka(this.controls),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;l.remove()}}catch(g){u.e(g)}finally{u.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var u=this.controlCorners={},c="l7-",l=this.controlContainer=to("div",c+"control-container",this.container);function g(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=B.map(function(ne){return c+ne}).join(" ");u[B.filter(function(ne){return!["row","column"].includes(ne)}).join("")]=to("div",G,l)}function T(B){var G=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Fr.Z)(G),[Ls[B]])}Object.values(bo).forEach(function(B){g(T(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var u in this.controlCorners)this.controlCorners[u]&&sa(this.controlCorners[u]);this.controlContainer&&sa(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var u=this,c=window.MutationObserver;if(c)for(var l=function(){var G=T[g],ne=G.match(/^(top|bottom)(left|right)$/);if(ne){var Me=(0,qn.Z)(ne,3),Ge=Me[1],Et=Me[2],Ot=u.controlCorners["".concat(Ge).concat(Et)],Pn=new c(function(Mn){var Ir=(0,qn.Z)(Mn,1),Ti=Ir[0].target;Ot&&(Ot.style[Ge]=Ti.clientHeight+"px")});Pn.observe(u.controlCorners["".concat(Et).concat(Ge)],{childList:!0,attributes:!0})}},g=0,T=Object.keys(this.controlCorners);g-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(u){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(u),u.addTo(this.scene)):this.unAddMarkers.push(u)}},{key:"addMarkers",value:function(){var u=this;this.unAddMarkers.forEach(function(c){c.addTo(u.scene),u.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var u=this;this.unAddMarkerLayers.forEach(function(c){u.markerLayers.push(c),c.addTo(u.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(u){u.remove(),this.markers.indexOf(u);var c=this.markers.indexOf(u);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(vr.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(u){u.remove()}),this.markers=[],this.markerLayers.forEach(function(u){u.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(u){u.destroy()}}]),a}())||gh),wh,cg,yg=(wh=(0,As.b2)(),wh(cg=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"scene",void 0),(0,Cn.Z)(this,"mapsService",void 0),(0,Cn.Z)(this,"popups",[]),(0,Cn.Z)(this,"unAddPopups",[])}return(0,He.Z)(a,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(u){u!=null&&u.isOpen()&&u.remove();var c=this.popups.indexOf(u);c>-1&&this.popups.splice(c,1);var l=this.unAddPopups.indexOf(u);l>-1&&this.unAddPopups.splice(l,1)}},{key:"destroy",value:function(){this.popups.forEach(function(u){return u.remove()})}},{key:"addPopup",value:function(u){var c=this;u&&u.getOptions().autoClose&&[].concat((0,Fr.Z)(this.popups),(0,Fr.Z)(this.unAddPopups)).forEach(function(l){l.getOptions().autoClose&&c.removePopup(l)}),this.isMarkerReady?(u.addTo(this.scene),this.popups.push(u)):this.unAddPopups.push(u),u.on("close",function(){c.removePopup(u)})}},{key:"initPopup",value:function(){var u=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){u.addPopup(c),u.unAddPopups=[]})}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(vr.IMapService)}}]),a}())||cg),Fh=function(a){return a.normal="normal",a.additive="additive",a.subtractive="subtractive",a.min="min",a.max="max",a.none="none",a}({}),nf=function(a){return a.MULTIPLE="MULTIPLE",a.SINGLE="SINGLE",a}({}),es=function(a){return a.AND="and",a.OR="or",a}({}),Rl=function(a){return a.INIT="init",a.UPDATE="update",a}({}),Zf={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},$f=Zf,Yf,em,Mf=Fa.merge,kd={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Ef={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",maskLayers:[],enableMask:!0,maskOperation:es.AND,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},Rg=(Yf=(0,As.b2)(),Yf(em=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"sceneConfigCache",{}),(0,Cn.Z)(this,"layerConfigCache",{}),(0,Cn.Z)(this,"layerAttributeConfigCache",{})}return(0,He.Z)(a,[{key:"getSceneConfig",value:function(u){return this.sceneConfigCache[u]}},{key:"getSceneWarninfo",value:function(u){return $f[u]}},{key:"setSceneConfig",value:function(u,c){this.sceneConfigCache[u]=(0,we.Z)((0,we.Z)({},kd),c)}},{key:"getLayerConfig",value:function(u){return this.layerConfigCache[u]}},{key:"setLayerConfig",value:function(u,c,l){this.layerConfigCache[c]=(0,we.Z)({},Mf({},this.sceneConfigCache[u],Ef,l))}},{key:"getAttributeConfig",value:function(u){return this.layerAttributeConfigCache[u]}},{key:"setAttributeConfig",value:function(u,c){this.layerAttributeConfigCache[u]=(0,we.Z)((0,we.Z)({},this.layerAttributeConfigCache[u]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),a}())||em);function Fd(a,p,u,c){u&&Object.defineProperty(a,p,{enumerable:u.enumerable,configurable:u.configurable,writable:u.writable,value:u.initializer?u.initializer.call(c):void 0})}function $h(a,p,u,c,l){var g={};return Object.keys(c).forEach(function(T){g[T]=c[T]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=u.slice().reverse().reduce(function(T,B){return B(a,p,T)||T},g),l&&g.initializer!==void 0&&(g.value=g.initializer?g.initializer.call(l):void 0,g.initializer=void 0),g.initializer===void 0&&(Object.defineProperty(a,p,g),g=null),g}function Tg(){var a=new Sc(4);return Sc!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function cm(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function Sp(a,p,u,c){var l=new Sc(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function gf(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function Kp(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function Of(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function Nu(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function lh(a,p,u){return a[0]=p[0]*u[0],a[1]=p[1]*u[1],a[2]=p[2]*u[2],a[3]=p[3]*u[3],a}function oh(a,p,u){return a[0]=p[0]/u[0],a[1]=p[1]/u[1],a[2]=p[2]/u[2],a[3]=p[3]/u[3],a}function Ip(a,p){return a[0]=Math.ceil(p[0]),a[1]=Math.ceil(p[1]),a[2]=Math.ceil(p[2]),a[3]=Math.ceil(p[3]),a}function qf(a,p){return a[0]=Math.floor(p[0]),a[1]=Math.floor(p[1]),a[2]=Math.floor(p[2]),a[3]=Math.floor(p[3]),a}function kp(a,p,u){return a[0]=Math.min(p[0],u[0]),a[1]=Math.min(p[1],u[1]),a[2]=Math.min(p[2],u[2]),a[3]=Math.min(p[3],u[3]),a}function Xp(a,p,u){return a[0]=Math.max(p[0],u[0]),a[1]=Math.max(p[1],u[1]),a[2]=Math.max(p[2],u[2]),a[3]=Math.max(p[3],u[3]),a}function rp(a,p){return a[0]=Math.round(p[0]),a[1]=Math.round(p[1]),a[2]=Math.round(p[2]),a[3]=Math.round(p[3]),a}function Em(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function Kg(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}function dg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return Math.hypot(u,c,l,g)}function Xg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return u*u+c*c+l*l+g*g}function og(a){var p=a[0],u=a[1],c=a[2],l=a[3];return Math.hypot(p,u,c,l)}function hg(a){var p=a[0],u=a[1],c=a[2],l=a[3];return p*p+u*u+c*c+l*l}function Yp(a,p){return a[0]=-p[0],a[1]=-p[1],a[2]=-p[2],a[3]=-p[3],a}function z0(a,p){return a[0]=1/p[0],a[1]=1/p[1],a[2]=1/p[2],a[3]=1/p[3],a}function gy(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*u+c*c+l*l+g*g;return T>0&&(T=1/Math.sqrt(T)),a[0]=u*T,a[1]=c*T,a[2]=l*T,a[3]=g*T,a}function H0(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]+a[3]*p[3]}function q_(a,p,u,c){var l=u[0]*c[1]-u[1]*c[0],g=u[0]*c[2]-u[2]*c[0],T=u[0]*c[3]-u[3]*c[0],B=u[1]*c[2]-u[2]*c[1],G=u[1]*c[3]-u[3]*c[1],ne=u[2]*c[3]-u[3]*c[2],Me=p[0],Ge=p[1],Et=p[2],Ot=p[3];return a[0]=Ge*ne-Et*G+Ot*B,a[1]=-(Me*ne)+Et*T-Ot*g,a[2]=Me*G-Ge*T+Ot*l,a[3]=-(Me*B)+Ge*g-Et*l,a}function lv(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a[3]=B+c*(u[3]-B),a}function vy(a,p){p=p||1;var u,c,l,g,T,B;do u=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,T=u*u+c*c;while(T>=1);do l=glMatrix.RANDOM()*2-1,g=glMatrix.RANDOM()*2-1,B=l*l+g*g;while(B>=1);var G=Math.sqrt((1-T)/B);return a[0]=p*u,a[1]=p*c,a[2]=p*l*G,a[3]=p*g*G,a}function q0(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3];return a[0]=u[0]*c+u[4]*l+u[8]*g+u[12]*T,a[1]=u[1]*c+u[5]*l+u[9]*g+u[13]*T,a[2]=u[2]*c+u[6]*l+u[10]*g+u[14]*T,a[3]=u[3]*c+u[7]*l+u[11]*g+u[15]*T,a}function Uy(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],G=u[2],ne=u[3],Me=ne*c+B*g-G*l,Ge=ne*l+G*c-T*g,Et=ne*g+T*l-B*c,Ot=-T*c-B*l-G*g;return a[0]=Me*ne+Ot*-T+Ge*-G-Et*-B,a[1]=Ge*ne+Ot*-B+Et*-T-Me*-G,a[2]=Et*ne+Ot*-G+Me*-B-Ge*-T,a[3]=p[3],a}function Cv(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}function gv(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function c1(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function wv(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],G=p[2],ne=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-G)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(G))&&Math.abs(g-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(ne))}var mv=null,E0=null,Bv=null,d1=null,q1=null,zv=null,ey=null,Ku=function(){var a=Tg();return function(p,u,c,l,g,T){var B,G;for(u||(u=4),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0?(l[0]=(M*E+Ce*c+Z*m-ne*u)*2/Fe,l[1]=(Z*E+Ce*u+ne*c-M*m)*2/Fe,l[2]=(ne*E+Ce*m+M*u-Z*c)*2/Fe):(l[0]=(M*E+Ce*c+Z*m-ne*u)*2,l[1]=(Z*E+Ce*u+ne*c-M*m)*2,l[2]=(ne*E+Ce*m+M*u-Z*c)*2),y(o,d,l),o}function j(o,d){return o[0]=d[12],o[1]=d[13],o[2]=d[14],o}function re(o,d){var l=d[0],c=d[1],u=d[2],m=d[4],E=d[5],M=d[6],Z=d[8],ne=d[9],Ce=d[10];return o[0]=Math.hypot(l,c,u),o[1]=Math.hypot(m,E,M),o[2]=Math.hypot(Z,ne,Ce),o}function de(o,d){var l=new Fo(3);re(l,d);var c=1/l[0],u=1/l[1],m=1/l[2],E=d[0]*c,M=d[1]*u,Z=d[2]*m,ne=d[4]*c,Ce=d[5]*u,Fe=d[6]*m,bt=d[8]*c,Bt=d[9]*u,Cn=d[10]*m,An=E+Ce+Cn,Pr=0;return An>0?(Pr=Math.sqrt(An+1)*2,o[3]=.25*Pr,o[0]=(Fe-Bt)/Pr,o[1]=(bt-Z)/Pr,o[2]=(M-ne)/Pr):E>Ce&&E>Cn?(Pr=Math.sqrt(1+E-Ce-Cn)*2,o[3]=(Fe-Bt)/Pr,o[0]=.25*Pr,o[1]=(M+ne)/Pr,o[2]=(bt+Z)/Pr):Ce>Cn?(Pr=Math.sqrt(1+Ce-E-Cn)*2,o[3]=(bt-Z)/Pr,o[0]=(M+ne)/Pr,o[1]=.25*Pr,o[2]=(Fe+Bt)/Pr):(Pr=Math.sqrt(1+Cn-E-Ce)*2,o[3]=(M-ne)/Pr,o[0]=(bt+Z)/Pr,o[1]=(Fe+Bt)/Pr,o[2]=.25*Pr),o}function Ie(o,d,l,c){var u=d[0],m=d[1],E=d[2],M=d[3],Z=u+u,ne=m+m,Ce=E+E,Fe=u*Z,bt=u*ne,Bt=u*Ce,Cn=m*ne,An=m*Ce,Pr=E*Ce,ti=M*Z,ho=M*ne,bo=M*Ce,Ds=c[0],ta=c[1],aa=c[2];return o[0]=(1-(Cn+Pr))*Ds,o[1]=(bt+bo)*Ds,o[2]=(Bt-ho)*Ds,o[3]=0,o[4]=(bt-bo)*ta,o[5]=(1-(Fe+Pr))*ta,o[6]=(An+ti)*ta,o[7]=0,o[8]=(Bt+ho)*aa,o[9]=(An-ti)*aa,o[10]=(1-(Fe+Cn))*aa,o[11]=0,o[12]=l[0],o[13]=l[1],o[14]=l[2],o[15]=1,o}function Je(o,d,l,c,u){var m=d[0],E=d[1],M=d[2],Z=d[3],ne=m+m,Ce=E+E,Fe=M+M,bt=m*ne,Bt=m*Ce,Cn=m*Fe,An=E*Ce,Pr=E*Fe,ti=M*Fe,ho=Z*ne,bo=Z*Ce,Ds=Z*Fe,ta=c[0],aa=c[1],Ua=c[2],pl=u[0],ru=u[1],Iu=u[2],Vu=(1-(An+ti))*ta,th=(Bt+Ds)*ta,yh=(Cn-bo)*ta,Ed=(Bt-Ds)*aa,$p=(1-(bt+ti))*aa,Kg=(Pr+ho)*aa,um=(Cn+bo)*Ua,nv=(Pr-ho)*Ua,Em=(1-(bt+An))*Ua;return o[0]=Vu,o[1]=th,o[2]=yh,o[3]=0,o[4]=Ed,o[5]=$p,o[6]=Kg,o[7]=0,o[8]=um,o[9]=nv,o[10]=Em,o[11]=0,o[12]=l[0]+pl-(Vu*pl+Ed*ru+um*Iu),o[13]=l[1]+ru-(th*pl+$p*ru+nv*Iu),o[14]=l[2]+Iu-(yh*pl+Kg*ru+Em*Iu),o[15]=1,o}function zt(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l+l,M=c+c,Z=u+u,ne=l*E,Ce=c*E,Fe=c*M,bt=u*E,Bt=u*M,Cn=u*Z,An=m*E,Pr=m*M,ti=m*Z;return o[0]=1-Fe-Cn,o[1]=Ce+ti,o[2]=bt-Pr,o[3]=0,o[4]=Ce-ti,o[5]=1-ne-Cn,o[6]=Bt+An,o[7]=0,o[8]=bt+Pr,o[9]=Bt-An,o[10]=1-ne-Fe,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}function un(o,d,l,c,u,m,E){var M=1/(l-d),Z=1/(u-c),ne=1/(m-E);return o[0]=m*2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m*2*Z,o[6]=0,o[7]=0,o[8]=(l+d)*M,o[9]=(u+c)*Z,o[10]=(E+m)*ne,o[11]=-1,o[12]=0,o[13]=0,o[14]=E*m*2*ne,o[15]=0,o}function tr(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=(u+c)*E,o[14]=2*u*c*E):(o[10]=-1,o[14]=-2*c),o}var Cr=tr;function xi(o,d,l,c,u){var m=1/Math.tan(d/2),E;return o[0]=m/l,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=-1,o[12]=0,o[13]=0,o[15]=0,u!=null&&u!==1/0?(E=1/(c-u),o[10]=u*E,o[14]=u*c*E):(o[10]=-1,o[14]=-c),o}function Li(o,d,l,c){var u=Math.tan(d.upDegrees*Math.PI/180),m=Math.tan(d.downDegrees*Math.PI/180),E=Math.tan(d.leftDegrees*Math.PI/180),M=Math.tan(d.rightDegrees*Math.PI/180),Z=2/(E+M),ne=2/(u+m);return o[0]=Z,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=ne,o[6]=0,o[7]=0,o[8]=-((E-M)*Z*.5),o[9]=(u-m)*ne*.5,o[10]=c/(l-c),o[11]=-1,o[12]=0,o[13]=0,o[14]=c*l/(l-c),o[15]=0,o}function Io(o,d,l,c,u,m,E){var M=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*ne,o[11]=0,o[12]=(d+l)*M,o[13]=(u+c)*Z,o[14]=(E+m)*ne,o[15]=1,o}var Ao=Io;function Xo(o,d,l,c,u,m,E){var M=1/(d-l),Z=1/(c-u),ne=1/(m-E);return o[0]=-2*M,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*Z,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=ne,o[11]=0,o[12]=(d+l)*M,o[13]=(u+c)*Z,o[14]=m*ne,o[15]=1,o}function Ro(o,d,l,c){var u,m,E,M,Z,ne,Ce,Fe,bt,Bt,Cn=d[0],An=d[1],Pr=d[2],ti=c[0],ho=c[1],bo=c[2],Ds=l[0],ta=l[1],aa=l[2];return Math.abs(Cn-Ds)0&&(Bt=1/Math.sqrt(Bt),Ce*=Bt,Fe*=Bt,bt*=Bt);var Cn=Z*bt-ne*Fe,An=ne*Ce-M*bt,Pr=M*Fe-Z*Ce;return Bt=Cn*Cn+An*An+Pr*Pr,Bt>0&&(Bt=1/Math.sqrt(Bt),Cn*=Bt,An*=Bt,Pr*=Bt),o[0]=Cn,o[1]=An,o[2]=Pr,o[3]=0,o[4]=Fe*Pr-bt*An,o[5]=bt*Cn-Ce*Pr,o[6]=Ce*An-Fe*Cn,o[7]=0,o[8]=Ce,o[9]=Fe,o[10]=bt,o[11]=0,o[12]=u,o[13]=m,o[14]=E,o[15]=1,o}function Gs(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}function Oa(o){return Math.hypot(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}function yl(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o[4]=d[4]+l[4],o[5]=d[5]+l[5],o[6]=d[6]+l[6],o[7]=d[7]+l[7],o[8]=d[8]+l[8],o[9]=d[9]+l[9],o[10]=d[10]+l[10],o[11]=d[11]+l[11],o[12]=d[12]+l[12],o[13]=d[13]+l[13],o[14]=d[14]+l[14],o[15]=d[15]+l[15],o}function cu(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o[4]=d[4]-l[4],o[5]=d[5]-l[5],o[6]=d[6]-l[6],o[7]=d[7]-l[7],o[8]=d[8]-l[8],o[9]=d[9]-l[9],o[10]=d[10]-l[10],o[11]=d[11]-l[11],o[12]=d[12]-l[12],o[13]=d[13]-l[13],o[14]=d[14]-l[14],o[15]=d[15]-l[15],o}function Fu(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o[4]=d[4]*l,o[5]=d[5]*l,o[6]=d[6]*l,o[7]=d[7]*l,o[8]=d[8]*l,o[9]=d[9]*l,o[10]=d[10]*l,o[11]=d[11]*l,o[12]=d[12]*l,o[13]=d[13]*l,o[14]=d[14]*l,o[15]=d[15]*l,o}function Eu(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o[4]=d[4]+l[4]*c,o[5]=d[5]+l[5]*c,o[6]=d[6]+l[6]*c,o[7]=d[7]+l[7]*c,o[8]=d[8]+l[8]*c,o[9]=d[9]+l[9]*c,o[10]=d[10]+l[10]*c,o[11]=d[11]+l[11]*c,o[12]=d[12]+l[12]*c,o[13]=d[13]+l[13]*c,o[14]=d[14]+l[14]*c,o[15]=d[15]+l[15]*c,o}function qc(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]&&o[4]===d[4]&&o[5]===d[5]&&o[6]===d[6]&&o[7]===d[7]&&o[8]===d[8]&&o[9]===d[9]&&o[10]===d[10]&&o[11]===d[11]&&o[12]===d[12]&&o[13]===d[13]&&o[14]===d[14]&&o[15]===d[15]}function vu(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=o[4],M=o[5],Z=o[6],ne=o[7],Ce=o[8],Fe=o[9],bt=o[10],Bt=o[11],Cn=o[12],An=o[13],Pr=o[14],ti=o[15],ho=d[0],bo=d[1],Ds=d[2],ta=d[3],aa=d[4],Ua=d[5],pl=d[6],ru=d[7],Iu=d[8],Vu=d[9],th=d[10],yh=d[11],Ed=d[12],$p=d[13],Kg=d[14],um=d[15];return Math.abs(l-ho)<=Dc*Math.max(1,Math.abs(l),Math.abs(ho))&&Math.abs(c-bo)<=Dc*Math.max(1,Math.abs(c),Math.abs(bo))&&Math.abs(u-Ds)<=Dc*Math.max(1,Math.abs(u),Math.abs(Ds))&&Math.abs(m-ta)<=Dc*Math.max(1,Math.abs(m),Math.abs(ta))&&Math.abs(E-aa)<=Dc*Math.max(1,Math.abs(E),Math.abs(aa))&&Math.abs(M-Ua)<=Dc*Math.max(1,Math.abs(M),Math.abs(Ua))&&Math.abs(Z-pl)<=Dc*Math.max(1,Math.abs(Z),Math.abs(pl))&&Math.abs(ne-ru)<=Dc*Math.max(1,Math.abs(ne),Math.abs(ru))&&Math.abs(Ce-Iu)<=Dc*Math.max(1,Math.abs(Ce),Math.abs(Iu))&&Math.abs(Fe-Vu)<=Dc*Math.max(1,Math.abs(Fe),Math.abs(Vu))&&Math.abs(bt-th)<=Dc*Math.max(1,Math.abs(bt),Math.abs(th))&&Math.abs(Bt-yh)<=Dc*Math.max(1,Math.abs(Bt),Math.abs(yh))&&Math.abs(Cn-Ed)<=Dc*Math.max(1,Math.abs(Cn),Math.abs(Ed))&&Math.abs(An-$p)<=Dc*Math.max(1,Math.abs(An),Math.abs($p))&&Math.abs(Pr-Kg)<=Dc*Math.max(1,Math.abs(Pr),Math.abs(Kg))&&Math.abs(ti-um)<=Dc*Math.max(1,Math.abs(ti),Math.abs(um))}var kc=Af,On=cu,lr,Ur,di=(lr=(0,os.b2)(),lr(Ur=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"viewport",void 0),(0,Ln.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Ln.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Ln.Z)(this,"jitteredProjectionMatrix",void 0),(0,Ln.Z)(this,"viewMatrixInverse",void 0),(0,Ln.Z)(this,"cameraPosition",void 0)}return(0,ot.Z)(o,[{key:"init",value:function(){}},{key:"update",value:function(l){this.viewport=l,this.viewMatrixInverse=yp(),kv(this.viewMatrixInverse,l.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 l=this.viewport.getCenter(),c=(0,mi.Z)(l,2),u=c[0],m=c[1];return[u,m]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}},{key:"setViewProjectionMatrix",value:function(l){this.overridedViewProjectionMatrix=l}},{key:"jitterProjectionMatrix",value:function(l,c){var u=Vs(yp(),[l,c,0]);this.jitteredProjectionMatrix=Af(yp(),u,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Af(yp(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),o}())||Ur),uo=function(o){return o.TOPRIGHT="topright",o.TOPLEFT="topleft",o.BOTTOMRIGHT="bottomright",o.BOTTOMLEFT="bottomleft",o.TOPCENTER="topcenter",o.BOTTOMCENTER="bottomcenter",o.LEFTCENTER="leftcenter",o.RIGHTCENTER="rightcenter",o.LEFTTOP="lefttop",o.RIGHTTOP="righttop",o.LEFTBOTTOM="leftbottom",o.RIGHTBOTTOM="rightbottom",o}({}),Ys,qa;function Fs(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=il(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function il(o,d){if(o){if(typeof o=="string")return iu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return iu(o,d)}}function iu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&this.controls.splice(c,1),l.remove(),this}},{key:"addControls",value:function(){var l=this;this.unAddControls.forEach(function(c){c.addTo(l.scene),l.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var l=Fs(this.controls),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;u.remove()}}catch(m){l.e(m)}finally{l.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var l=this.controlCorners={},c="l7-",u=this.controlContainer=As("div",c+"control-container",this.container);function m(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=M.map(function(ne){return c+ne}).join(" ");l[M.filter(function(ne){return!["row","column"].includes(ne)}).join("")]=As("div",Z,u)}function E(M){var Z=M.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Pn.Z)(Z),[Ls[M]])}Object.values(uo).forEach(function(M){m(E(M))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var l in this.controlCorners)this.controlCorners[l]&&ks(this.controlCorners[l]);this.controlContainer&&ks(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var l=this,c=window.MutationObserver;if(c)for(var u=function(){var Z=E[m],ne=Z.match(/^(top|bottom)(left|right)$/);if(ne){var Ce=(0,mi.Z)(ne,3),Fe=Ce[1],bt=Ce[2],Bt=l.controlCorners["".concat(Fe).concat(bt)],Cn=new c(function(An){var Pr=(0,mi.Z)(An,1),ti=Pr[0].target;Bt&&(Bt.style[Fe]=ti.clientHeight+"px")});Cn.observe(l.controlCorners["".concat(bt).concat(Fe)],{childList:!0,attributes:!0})}},m=0,E=Object.keys(this.controlCorners);m-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(l){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(l),l.addTo(this.scene)):this.unAddMarkers.push(l)}},{key:"addMarkers",value:function(){var l=this;this.unAddMarkers.forEach(function(c){c.addTo(l.scene),l.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var l=this;this.unAddMarkerLayers.forEach(function(c){l.markerLayers.push(c),c.addTo(l.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(l){l.remove(),this.markers.indexOf(l);var c=this.markers.indexOf(l);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Ms.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(l){l.remove()}),this.markers=[],this.markerLayers.forEach(function(l){l.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(l){l.destroy()}}]),o}())||Ch),Jh,rp,Tp=(Jh=(0,os.b2)(),Jh(rp=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"scene",void 0),(0,Ln.Z)(this,"mapsService",void 0),(0,Ln.Z)(this,"popups",[]),(0,Ln.Z)(this,"unAddPopups",[])}return(0,ot.Z)(o,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(l){l!=null&&l.isOpen()&&l.remove();var c=this.popups.indexOf(l);c>-1&&this.popups.splice(c,1);var u=this.unAddPopups.indexOf(l);u>-1&&this.unAddPopups.splice(u,1)}},{key:"destroy",value:function(){this.popups.forEach(function(l){return l.remove()})}},{key:"addPopup",value:function(l){var c=this;l&&l.getOptions().autoClose&&[].concat((0,Pn.Z)(this.popups),(0,Pn.Z)(this.unAddPopups)).forEach(function(u){u.getOptions().autoClose&&c.removePopup(u)}),this.isMarkerReady?(l.addTo(this.scene),this.popups.push(l)):this.unAddPopups.push(l),l.on("close",function(){c.removePopup(l)})}},{key:"initPopup",value:function(){var l=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){l.addPopup(c),l.unAddPopups=[]})}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(Ms.IMapService)}}]),o}())||rp),gd=function(o){return o.normal="normal",o.additive="additive",o.subtractive="subtractive",o.min="min",o.max="max",o.none="none",o}({}),Pd=function(o){return o.MULTIPLE="MULTIPLE",o.SINGLE="SINGLE",o}({}),ss=function(o){return o.AND="and",o.OR="or",o}({}),Ll=function(o){return o.INIT="init",o.UPDATE="update",o}({}),rf={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},of=rf,gf,gg,mf=Ns.merge,au={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},vh={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",maskLayers:[],enableMask:!0,maskOperation:ss.AND,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},Kd=(gf=(0,os.b2)(),gf(gg=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"sceneConfigCache",{}),(0,Ln.Z)(this,"layerConfigCache",{}),(0,Ln.Z)(this,"layerAttributeConfigCache",{})}return(0,ot.Z)(o,[{key:"getSceneConfig",value:function(l){return this.sceneConfigCache[l]}},{key:"getSceneWarninfo",value:function(l){return of[l]}},{key:"setSceneConfig",value:function(l,c){this.sceneConfigCache[l]=(0,Oe.Z)((0,Oe.Z)({},au),c)}},{key:"getLayerConfig",value:function(l){return this.layerConfigCache[l]}},{key:"setLayerConfig",value:function(l,c,u){this.layerConfigCache[c]=(0,Oe.Z)({},mf({},this.sceneConfigCache[l],vh,u))}},{key:"getAttributeConfig",value:function(l){return this.layerAttributeConfigCache[l]}},{key:"setAttributeConfig",value:function(l,c){this.layerAttributeConfigCache[l]=(0,Oe.Z)((0,Oe.Z)({},this.layerAttributeConfigCache[l]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),o}())||gg);function Fc(o,d,l,c){l&&Object.defineProperty(o,d,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(c):void 0})}function kh(o,d,l,c,u){var m={};return Object.keys(c).forEach(function(E){m[E]=c[E]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=l.slice().reverse().reduce(function(E,M){return M(o,d,E)||E},m),u&&m.initializer!==void 0&&(m.value=m.initializer?m.initializer.call(u):void 0,m.initializer=void 0),m.initializer===void 0&&(Object.defineProperty(o,d,m),m=null),m}function H(){var o=new Fo(4);return Fo!=Float32Array&&(o[0]=0,o[1]=0,o[2]=0,o[3]=0),o}function F(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function te(o,d,l,c){var u=new Fo(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function ve(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function je(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function vt(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function ht(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function nn(o,d,l){return o[0]=d[0]*l[0],o[1]=d[1]*l[1],o[2]=d[2]*l[2],o[3]=d[3]*l[3],o}function wn(o,d,l){return o[0]=d[0]/l[0],o[1]=d[1]/l[1],o[2]=d[2]/l[2],o[3]=d[3]/l[3],o}function Ar(o,d){return o[0]=Math.ceil(d[0]),o[1]=Math.ceil(d[1]),o[2]=Math.ceil(d[2]),o[3]=Math.ceil(d[3]),o}function li(o,d){return o[0]=Math.floor(d[0]),o[1]=Math.floor(d[1]),o[2]=Math.floor(d[2]),o[3]=Math.floor(d[3]),o}function ki(o,d,l){return o[0]=Math.min(d[0],l[0]),o[1]=Math.min(d[1],l[1]),o[2]=Math.min(d[2],l[2]),o[3]=Math.min(d[3],l[3]),o}function xo(o,d,l){return o[0]=Math.max(d[0],l[0]),o[1]=Math.max(d[1],l[1]),o[2]=Math.max(d[2],l[2]),o[3]=Math.max(d[3],l[3]),o}function Yo(o,d){return o[0]=Math.round(d[0]),o[1]=Math.round(d[1]),o[2]=Math.round(d[2]),o[3]=Math.round(d[3]),o}function bs(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function pa(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}function Ma(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return Math.hypot(l,c,u,m)}function rl(o,d){var l=d[0]-o[0],c=d[1]-o[1],u=d[2]-o[2],m=d[3]-o[3];return l*l+c*c+u*u+m*m}function Wl(o){var d=o[0],l=o[1],c=o[2],u=o[3];return Math.hypot(d,l,c,u)}function ml(o){var d=o[0],l=o[1],c=o[2],u=o[3];return d*d+l*l+c*c+u*u}function Yl(o,d){return o[0]=-d[0],o[1]=-d[1],o[2]=-d[2],o[3]=-d[3],o}function Zu(o,d){return o[0]=1/d[0],o[1]=1/d[1],o[2]=1/d[2],o[3]=1/d[3],o}function Jc(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*l+c*c+u*u+m*m;return E>0&&(E=1/Math.sqrt(E)),o[0]=l*E,o[1]=c*E,o[2]=u*E,o[3]=m*E,o}function fd(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]+o[3]*d[3]}function Lf(o,d,l,c){var u=l[0]*c[1]-l[1]*c[0],m=l[0]*c[2]-l[2]*c[0],E=l[0]*c[3]-l[3]*c[0],M=l[1]*c[2]-l[2]*c[1],Z=l[1]*c[3]-l[3]*c[1],ne=l[2]*c[3]-l[3]*c[2],Ce=d[0],Fe=d[1],bt=d[2],Bt=d[3];return o[0]=Fe*ne-bt*Z+Bt*M,o[1]=-(Ce*ne)+bt*E-Bt*m,o[2]=Ce*Z-Fe*E+Bt*u,o[3]=-(Ce*M)+Fe*m-bt*u,o}function _d(o,d,l,c){var u=d[0],m=d[1],E=d[2],M=d[3];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o[3]=M+c*(l[3]-M),o}function xd(o,d){d=d||1;var l,c,u,m,E,M;do l=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,E=l*l+c*c;while(E>=1);do u=glMatrix.RANDOM()*2-1,m=glMatrix.RANDOM()*2-1,M=u*u+m*m;while(M>=1);var Z=Math.sqrt((1-E)/M);return o[0]=d*l,o[1]=d*c,o[2]=d*u*Z,o[3]=d*m*Z,o}function Vh(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3];return o[0]=l[0]*c+l[4]*u+l[8]*m+l[12]*E,o[1]=l[1]*c+l[5]*u+l[9]*m+l[13]*E,o[2]=l[2]*c+l[6]*u+l[10]*m+l[14]*E,o[3]=l[3]*c+l[7]*u+l[11]*m+l[15]*E,o}function sf(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],M=l[1],Z=l[2],ne=l[3],Ce=ne*c+M*m-Z*u,Fe=ne*u+Z*c-E*m,bt=ne*m+E*u-M*c,Bt=-E*c-M*u-Z*m;return o[0]=Ce*ne+Bt*-E+Fe*-Z-bt*-M,o[1]=Fe*ne+Bt*-M+bt*-E-Ce*-Z,o[2]=bt*ne+Bt*-Z+Ce*-M-Fe*-E,o[3]=d[3],o}function rd(o){return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}function bh(o){return"vec4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function Hf(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function cf(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],M=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}var jp=null,bg=null,om=null,p0=null,fv=null,g0=null,Rm=null,$u=function(){var o=H();return function(d,l,c,u,m,E){var M,Z;for(l||(l=4),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;MPn-1*hi||Zo<0||Qs>Mn-1*hi||Qs<0)return!1;var ga=Ge({x:Math.floor(Zo/p.pickBufferScale),y:Math.floor((Mn-(g+1)*hi)/p.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:p.pickingFBO});if(p.pickedColors=ga,ga[0]!==0||ga[1]!==0||ga[2]!==0){var Ma=oi(ga),ll=u.layerPickService.getFeatureById(Ma);Ma!==u.getCurrentPickId()&&B==="mousemove"&&(B="mouseenter");var Wl={x:l,y:g,type:B,lngLat:T,featureId:Ma,feature:ll,target:G};ll&&(ne=!0,u.setCurrentPickId(Ma),p.triggerHoverOnLayer(u,Wl))}else{var jl={x:l,y:g,lngLat:T,type:u.getCurrentPickId()!==null&&B==="mousemove"?"mouseout":"un"+B,featureId:null,target:G,feature:null};p.triggerHoverOnLayer(u,(0,we.Z)((0,we.Z)({},jl),{},{type:"unpick"})),p.triggerHoverOnLayer(u,jl),u.setCurrentPickId(null)}if(Ti&&u.layerPickService.highlightPickedFeature(ga),Ko&&B==="click"&&(ga==null?void 0:ga.toString())!==[0,0,0,0].toString()){var ju=oi(ga);u.getCurrentSelectedId()===null||ju!==u.getCurrentSelectedId()?(u.layerPickService.selectFeature(ga),u.setCurrentSelectedId(ju)):(u.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),u.setCurrentSelectedId(null))}return ne})}return(0,He.Z)(a,[{key:"init",value:function(u){var c=this.rendererService,l=c.createTexture2D,g=c.createFramebuffer,T=c.getContainer,B=this.getContainerSize(T()),G=B.width,ne=B.height;G*=hi,ne*=hi,this.pickBufferScale=this.configService.getSceneConfig(u).pickBufferScale||1,this.pickingFBO=g({color:l({width:Math.round(G/this.pickBufferScale),height:Math.round(ne/this.pickBufferScale),wrapS:qi.CLAMP_TO_EDGE,wrapT:qi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g,T){var B=this,G,ne,Me;return ro().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:G=this.rendererService,ne=G.useFramebuffer,Me=G.clear,this.resizePickingFBO(),ne(this.pickingFBO,function(){Me({framebuffer:B.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),l.hooks.beforePickingEncode.call(),l.renderModels({ispick:!0}),l.hooks.afterPickingEncode.call();var Ot=B.pickBox(l,g);T(Ot)});case 3:case"end":return Et.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"pickBox",value:function(u,c){var l=this,g=c.map(function(ju){var Pu=ju<0?0:ju;return Math.floor(Pu*hi/l.pickBufferScale)}),T=(0,qn.Z)(g,4),B=T[0],G=T[1],ne=T[2],Me=T[3],Ge=this.rendererService,Et=Ge.readPixels,Ot=Ge.getContainer,Pn=this.getContainerSize(Ot()),Mn=Pn.width,Ir=Pn.height;if(Mn*=hi,Ir*=hi,B>(Mn-1)*hi/this.pickBufferScale||ne<0||G>(Ir-1)*hi/this.pickBufferScale||Me<0)return[];for(var Ti=Math.min(Mn/this.pickBufferScale,ne)-B,Ko=Math.min(Ir/this.pickBufferScale,Me)-G,Zo=Et({x:B,y:Math.floor(Ir/this.pickBufferScale-(Me+1)),width:Ti,height:Ko,data:new Uint8Array(Ti*Ko*4),framebuffer:this.pickingFBO}),Qs=[],ga={},Ma=0;Ma0&&arguments[0]!==void 0?arguments[0]:!0;(0,bt.Z)(this,a),(0,Cn.Z)(this,"autoStart",void 0),(0,Cn.Z)(this,"startTime",0),(0,Cn.Z)(this,"oldTime",0),(0,Cn.Z)(this,"running",!1),(0,Cn.Z)(this,"elapsedTime",0),this.autoStart=p}return(0,He.Z)(a,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?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 u=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();u=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=u}return u}}]),a}(),uv,Q1,ry,cv,rv,yv,Wv,jv,Ny;function e_(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=iv(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function iv(a,p){if(a){if(typeof a=="string")return S_(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return S_(a,p)}}function S_(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&B.layerChildren.splice(G,1)):(ne=this.layers.indexOf(T),ne>-1&&this.layers.splice(ne,1)),T.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Ge.stop()}},g,this)}));function l(g,T){return c.apply(this,arguments)}return l}()},{key:"removeAllLayers",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:this.destroy(),this.reRender();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"setEnableRender",value:function(l){this.enableRender=l}},{key:"renderLayers",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge;return ro().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Ot.next=2;break}return Ot.abrupt("return");case 2:this.updateLayerRenderList(),T=this.debugService.generateRenderUid(),this.debugService.renderStart(T),this.alreadyInRendering=!0,this.clear(),B=e_(this.layerList),Ot.prev=8,B.s();case 10:if((G=B.n()).done){Ot.next=23;break}if(ne=G.value,Me=ne.getLayerConfig(),Ge=Me.enableMask,ne.masks.filter(function(Pn){return Pn.inited}).length>0&&Ge&&this.renderMask(ne.masks),!ne.getLayerConfig().enableMultiPassRenderer){Ot.next=19;break}return Ot.next=17,ne.renderMultiPass();case 17:Ot.next=21;break;case 19:return Ot.next=21,ne.render();case 21:Ot.next=10;break;case 23:Ot.next=28;break;case 25:Ot.prev=25,Ot.t0=Ot.catch(8),B.e(Ot.t0);case 28:return Ot.prev=28,B.f(),Ot.finish(28);case 31:this.debugService.renderEnd(T),this.alreadyInRendering=!1;case 33:case"end":return Ot.stop()}},g,this,[[8,25,28,31]])}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMask",value:function(l){var g=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var T=l.length>1?nf.MULTIPLE:nf.SINGLE,B=e_(l),G;try{for(B.s();!(G=B.n()).done;){var ne=G.value;ne.render({isStencil:!0,stencilType:T,stencilIndex:g++})}}catch(Me){B.e(Me)}finally{B.f()}}},{key:"beforeRenderData",value:function(){var c=(0,Na.Z)(ro().mark(function g(T){var B;return ro().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,T.hooks.beforeRenderData.promise();case 2:B=ne.sent,B&&this.renderLayers();case 4:case"end":return ne.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderTileLayerMask",value:function(l){var g=0,T=l.getLayerConfig(),B=T.enableMask,G=B===void 0?!0:B,ne=l.tileMask?1:0,Me=l.masks.filter(function(Mn){return Mn.inited});ne=ne+(G?Me.length:1);var Ge=ne>1?nf.MULTIPLE:nf.SINGLE;if((l.tileMask||Me.length&&G)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Me.length&&G){var Et=e_(Me),Ot;try{for(Et.s();!(Ot=Et.n()).done;){var Pn=Ot.value;Pn.render({isStencil:!0,stencilType:Ge,stencilIndex:g++})}}catch(Mn){Et.e(Mn)}finally{Et.f()}}l.tileMask&&l.tileMask.render({isStencil:!0,stencilType:Ge,stencilIndex:g++,stencilOperation:es.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(T){return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.renderTileLayerMask(T),!T.getLayerConfig().enableMultiPassRenderer){G.next=6;break}return G.next=4,T.renderMultiPass();case 4:G.next=8;break;case 6:return G.next=8,T.render();case 8:case"end":return G.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"updateLayerRenderList",value:function(){var l=this;this.layerList=[],this.layers.filter(function(g){return g.inited}).filter(function(g){return g.isVisible()}).sort(function(g,T){return g.zIndex-T.zIndex}).forEach(function(g){l.layerList.push(g)})}},{key:"destroy",value:function(){this.layers.forEach(function(l){l.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(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 l=Qr(this.mapService.bgColor);this.renderService.clear({color:l,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),u}(yf.EventEmitter),Wv=$h(yv.prototype,"renderService",[Q1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jv=$h(yv.prototype,"mapService",[ry],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ny=$h(yv.prototype,"debugService",[cv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yv))||rv),Vg=m(91),Q_=Fa.isNil,ZC=function(){function a(p){var u=this;(0,bt.Z)(this,a),(0,Cn.Z)(this,"name",void 0),(0,Cn.Z)(this,"type",void 0),(0,Cn.Z)(this,"scale",void 0),(0,Cn.Z)(this,"descriptor",void 0),(0,Cn.Z)(this,"featureBufferLayout",[]),(0,Cn.Z)(this,"needRescale",!1),(0,Cn.Z)(this,"needRemapping",!1),(0,Cn.Z)(this,"needRegenerateVertices",!1),(0,Cn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Cn.Z)(this,"vertexAttribute",void 0),(0,Cn.Z)(this,"defaultCallback",function(c){if(c.length===0){var l;return((l=u.scale)===null||l===void 0?void 0:l.defaultValues)||[]}return c.map(function(g,T){var B,G=(B=u.scale)===null||B===void 0?void 0:B.scalers[T].func,ne=G(g);return ne})}),this.setProps(p)}return(0,He.Z)(a,[{key:"setProps",value:function(u){Object.assign(this,u)}},{key:"mapping",value:function(u){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var l,g=(l=this.scale)===null||l===void 0?void 0:l.callback.apply(l,(0,Fr.Z)(u));if(!Q_(g))return[g]}return this.defaultCallback(u)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),a}(),T_=["buffer","update","name"],ax=["buffer","update","name"],p1,lx,D_,A_,I_,qx,ux=(p1={},(0,Cn.Z)(p1,qi.FLOAT,4),(0,Cn.Z)(p1,qi.UNSIGNED_BYTE,1),(0,Cn.Z)(p1,qi.UNSIGNED_SHORT,2),p1),yS=(lx=(0,As.b2)(),D_=(0,As.f3)(vr.IRendererService),lx(A_=(I_=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"attributesAndIndices",void 0),Fd(this,"rendererService",qx,this),(0,Cn.Z)(this,"attributes",[]),(0,Cn.Z)(this,"triangulation",void 0),(0,Cn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,He.Z)(a,[{key:"registerStyleAttribute",value:function(u){var c=this.getLayerStyleAttribute(u.name||"");return c?c.setProps(u):(c=new ZC(u),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(u){var c=this.attributes.findIndex(function(l){return l.name===u});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(u){this.attributes.forEach(function(c){var l,g=c.name,T=(l=c.scale)===null||l===void 0?void 0:l.field;(u[g]||T&&u[T])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(u,c,l){var g=this.getLayerStyleAttribute(u);g||(g=this.registerStyleAttribute((0,we.Z)((0,we.Z)({},c),{},{name:u})));var T=c.scale;T&&g&&(g.scale=T,g.needRescale=!0,g.needRemapping=!0,g.needRegenerateVertices=!0,l&&l.featureRange&&(g.featureRange=l.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(u){return this.attributes.find(function(c){return c.name===u})}},{key:"getLayerAttributeScale",value:function(u){var c,l=this.getLayerStyleAttribute(u),g=l==null||(c=l.scale)===null||c===void 0?void 0:c.scalers;return g&&g[0]?g[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(u,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,B=this.attributes.find(function(ga){return ga.name===u});if(B&&B.descriptor){var G=B.descriptor,ne=G.update,Me=G.buffer,Ge=G.size,Et=Ge===void 0?0:Ge,Ot=ux[Me.type||qi.FLOAT];if(ne){var Pn=this.featureLayout,Mn=Pn.elements,Ir=Pn.sizePerElement,Ti=Mn.slice(l,g);if(!Ti.length)return;var Ko=Ti[0].offset,Zo=Ko*Et*Ot,Qs=Ti.map(function(ga,Ma){for(var ll=ga.featureIdx,Wl=ga.vertices,jl=ga.normals,ju=Wl.length/Ir,Pu=[],Vc=0;Vc0&&g[g.length-1])&&(ne[0]===6||ne[0]===2)){u=0;continue}if(ne[0]===3&&(!g||ne[1]>g[0]&&ne[1]0)&&!(l=c.next()).done;)g.push(l.value)}catch(B){T={error:B}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(T)throw T.error}}return g}function Ky(a,p,u){if(u||arguments.length===2)for(var c=0,l=p.length,g;c=0&&c.length%1===0}a.exports=p.default})(xy,xy.exports);var Av={},P_={exports:{}},Iv={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return function(){for(var c=[],l=arguments.length;l--;)c[l]=arguments[l];var g=c.pop();return u.call(this,c,g)}},a.exports=p.default})(Iv,Iv.exports);var sy={};Object.defineProperty(sy,"__esModule",{value:!0}),sy.fallback=Qx,sy.wrap=dx;var Jx=sy.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Lv=sy.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,cx=sy.hasNextTick=typeof oy=="object"&&typeof oy.nextTick=="function";function Qx(a){setTimeout(a,0)}function dx(a){return function(p){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];return a(function(){return p.apply(void 0,u)})}}var eb;Jx?eb=queueMicrotask:Lv?eb=setImmediate:cx?eb=oy.nextTick:eb=Qx,sy.default=dx(eb),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=G;var u=Iv.exports,c=B(u),l=sy,g=B(l),T=Av;function B(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function G(Ge){return(0,T.isAsync)(Ge)?function(){for(var Et=[],Ot=arguments.length;Ot--;)Et[Ot]=arguments[Ot];var Pn=Et.pop(),Mn=Ge.apply(this,Et);return ne(Mn,Pn)}:(0,c.default)(function(Et,Ot){var Pn;try{Pn=Ge.apply(this,Et)}catch(Mn){return Ot(Mn)}if(Pn&&typeof Pn.then=="function")return ne(Pn,Ot);Ot(null,Pn)})}function ne(Ge,Et){return Ge.then(function(Ot){Me(Et,null,Ot)},function(Ot){Me(Et,Ot&&Ot.message?Ot:new Error(Ot))})}function Me(Ge,Et,Ot){try{Ge(Et,Ot)}catch(Pn){(0,g.default)(function(Mn){throw Mn},Pn)}}a.exports=p.default}(P_,P_.exports),Object.defineProperty(Av,"__esModule",{value:!0}),Av.isAsyncIterable=Av.isAsyncGenerator=Av.isAsync=void 0;var hx=P_.exports,fx=Yw(hx);function Yw(a){return a&&a.__esModule?a:{default:a}}function Ab(a){return a[Symbol.toStringTag]==="AsyncFunction"}function GC(a){return a[Symbol.toStringTag]==="AsyncGenerator"}function px(a){return typeof a[Symbol.asyncIterator]=="function"}function _S(a){if(typeof a!="function")throw new Error("expected a function");return Ab(a)?(0,fx.default)(a):a}Av.default=_S,Av.isAsync=Ab,Av.isAsyncGenerator=GC,Av.isAsyncIterable=px;var g1={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c,l){if(l===void 0&&(l=c.length),!l)throw new Error("arity is undefined");function g(){for(var T=this,B=[],G=arguments.length;G--;)B[G]=arguments[G];return typeof B[l-1]=="function"?c.apply(this,B):new Promise(function(ne,Me){B[l-1]=function(Ge){for(var Et=[],Ot=arguments.length-1;Ot-- >0;)Et[Ot]=arguments[Ot+1];if(Ge)return Me(Ge);ne(Et.length>1?Et:Et[0])},c.apply(T,B)})}return g}a.exports=p.default})(g1,g1.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=xy.exports,c=G(u),l=Av,g=G(l),T=g1.exports,B=G(T);function G(ne){return ne&&ne.__esModule?ne:{default:ne}}p.default=(0,B.default)(function(ne,Me,Ge){var Et=(0,c.default)(Me)?[]:{};ne(Me,function(Ot,Pn,Mn){(0,g.default)(Ot)(function(Ir){for(var Ti,Ko=[],Zo=arguments.length-1;Zo-- >0;)Ko[Zo]=arguments[Zo+1];Ko.length<2&&(Ti=Ko,Ko=Ti[0]),Et[Pn]=Ko,Mn(Ir)})},function(Ot){return Ge(Ot,Et)})},3),a.exports=p.default}(Xy,Xy.exports);var m1={exports:{}},t_={exports:{}},k_={exports:{}},tb={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c){function l(){for(var g=[],T=arguments.length;T--;)g[T]=arguments[T];if(c!==null){var B=c;c=null,B.apply(this,g)}}return Object.assign(l,c),l}a.exports=p.default})(tb,tb.exports);var Ib={exports:{}},M1={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return u[Symbol.iterator]&&u[Symbol.iterator]()},a.exports=p.default})(M1,M1.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=Me;var u=xy.exports,c=T(u),l=M1.exports,g=T(l);function T(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function B(Ge){var Et=-1,Ot=Ge.length;return function(){return++Et=B||Et||Me||(Et=!0,T.next().then(function(Ko){var Zo=Ko.value,Qs=Ko.done;if(!(Ge||Me)){if(Et=!1,Qs){Me=!0,Ot<=0&&ne(null);return}Ot++,G(Zo,Pn,Ir),Pn++,Mn()}}).catch(Ti))}function Ir(Ko,Zo){if(Ot-=1,!Ge){if(Ko)return Ti(Ko);if(Ko===!1){Me=!0,Ge=!0;return}if(Zo===c.default||Me&&Ot<=0)return Me=!0,ne(null);Mn()}}function Ti(Ko){Ge||(Et=!1,Me=!0,ne(Ko))}Mn()}a.exports=p.default}(Lb,Lb.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=tb.exports,c=Ot(u),l=Ib.exports,g=Ot(l),T=v1.exports,B=Ot(T),G=Av,ne=Lb.exports,Me=Ot(ne),Ge=nb.exports,Et=Ot(Ge);function Ot(Pn){return Pn&&Pn.__esModule?Pn:{default:Pn}}p.default=function(Pn){return function(Mn,Ir,Ti){if(Ti=(0,c.default)(Ti),Pn<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Mn)return Ti(null);if((0,G.isAsyncGenerator)(Mn))return(0,Me.default)(Mn,Pn,Ir,Ti);if((0,G.isAsyncIterable)(Mn))return(0,Me.default)(Mn[Symbol.asyncIterator](),Pn,Ir,Ti);var Ko=(0,g.default)(Mn),Zo=!1,Qs=!1,ga=0,Ma=!1;function ll(jl,ju){if(!Qs)if(ga-=1,jl)Zo=!0,Ti(jl);else if(jl===!1)Zo=!0,Qs=!0;else{if(ju===Et.default||Zo&&ga<=0)return Zo=!0,Ti(null);Ma||Wl()}}function Wl(){for(Ma=!0;ga0;)Ko[Zo]=arguments[Zo+1];if(Ti!==!1){if(Ti||Pn===Et.length)return Ot.apply(void 0,[Ti].concat(Ko));Mn(Ko)}}Mn([])}p.default=(0,ne.default)(Ge),a.exports=p.default})(tC,tC.exports);var YC=L_(tC.exports),qC=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return YC(this.tasks)},a.prototype.tap=function(p,u){this.tasks.length===0?this.tasks.push(function(c){var l=u();c(l?null:!1,l)}):this.tasks.push(function(c,l){var g=u.apply(void 0,Ky([],Dv(c),!1));l(g?null:!1,p)})},a}(),qw=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return n_(this.tasks)},a.prototype.tap=function(p,u){this.tasks.push(function(c){var l=u();c(l,p)})},a}(),Jw=function(){function a(){this.args=[],this.tasks=[]}return a.prototype.promise=function(){for(var p=arguments,u=[],c=0;c1&&(B=g[1].trim()),c){case"bool":B=B==="true";break;case"float":case"int":B=Number(B);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":B?B=B.replace("[","").replace("]","").split(",").reduce(function(G,ne){return G.push(Number(ne.trim())),G},[]):B=new Array(se(c)).fill(0);break;default:}return p[T]=B,"uniform ".concat(c," ").concat(T,`; -`)}),{content:a,uniforms:p}}var st,ht,Kt=Fa.uniq,Qt="#define PI 3.14159265359",At=`#define SHIFT_RIGHT17 1.0 / 131072.0 + `,l.id="l7-scene-".concat(km++),l.classList.add("l7-scene"),d.appendChild(l),l}return null}function My(o){var d,l=!0;if((o==null||(d=o.target)===null||d===void 0?void 0:d.target)instanceof HTMLElement)for(var c,u=o==null||(c=o.target)===null||c===void 0?void 0:c.target;u;){var m,E=Array.from(u.classList);if(E.includes("l7-marker")||E.includes("l7-popup")){l=!1;break}u=(m=u)===null||m===void 0?void 0:m.parentElement}return l}var Di=function(o){return o[o.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",o[o.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",o[o.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",o[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC_COLOR=768]="SRC_COLOR",o[o.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.DST_COLOR=774]="DST_COLOR",o[o.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",o[o.FUNC_ADD=32774]="FUNC_ADD",o[o.BLEND_EQUATION=32777]="BLEND_EQUATION",o[o.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",o[o.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",o[o.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",o[o.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",o[o.MAX_EXT=32776]="MAX_EXT",o[o.MIN_EXT=32775]="MIN_EXT",o[o.BLEND_DST_RGB=32968]="BLEND_DST_RGB",o[o.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",o[o.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",o[o.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",o[o.CONSTANT_COLOR=32769]="CONSTANT_COLOR",o[o.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",o[o.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",o[o.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",o[o.BLEND_COLOR=32773]="BLEND_COLOR",o[o.ARRAY_BUFFER=34962]="ARRAY_BUFFER",o[o.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",o[o.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",o[o.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",o[o.STREAM_DRAW=35040]="STREAM_DRAW",o[o.STATIC_DRAW=35044]="STATIC_DRAW",o[o.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",o[o.BUFFER_SIZE=34660]="BUFFER_SIZE",o[o.BUFFER_USAGE=34661]="BUFFER_USAGE",o[o.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",o[o.FRONT=1028]="FRONT",o[o.BACK=1029]="BACK",o[o.FRONT_AND_BACK=1032]="FRONT_AND_BACK",o[o.CULL_FACE=2884]="CULL_FACE",o[o.BLEND=3042]="BLEND",o[o.DITHER=3024]="DITHER",o[o.STENCIL_TEST=2960]="STENCIL_TEST",o[o.DEPTH_TEST=2929]="DEPTH_TEST",o[o.SCISSOR_TEST=3089]="SCISSOR_TEST",o[o.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",o[o.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",o[o.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",o[o.NO_ERROR=0]="NO_ERROR",o[o.INVALID_ENUM=1280]="INVALID_ENUM",o[o.INVALID_VALUE=1281]="INVALID_VALUE",o[o.INVALID_OPERATION=1282]="INVALID_OPERATION",o[o.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",o[o.CW=2304]="CW",o[o.CCW=2305]="CCW",o[o.LINE_WIDTH=2849]="LINE_WIDTH",o[o.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",o[o.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",o[o.CULL_FACE_MODE=2885]="CULL_FACE_MODE",o[o.FRONT_FACE=2886]="FRONT_FACE",o[o.DEPTH_RANGE=2928]="DEPTH_RANGE",o[o.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",o[o.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",o[o.DEPTH_FUNC=2932]="DEPTH_FUNC",o[o.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",o[o.STENCIL_FUNC=2962]="STENCIL_FUNC",o[o.STENCIL_FAIL=2964]="STENCIL_FAIL",o[o.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",o[o.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",o[o.STENCIL_REF=2967]="STENCIL_REF",o[o.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",o[o.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",o[o.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",o[o.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",o[o.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",o[o.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",o[o.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",o[o.VIEWPORT=2978]="VIEWPORT",o[o.SCISSOR_BOX=3088]="SCISSOR_BOX",o[o.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",o[o.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",o[o.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",o[o.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",o[o.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",o[o.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",o[o.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",o[o.RED_BITS=3410]="RED_BITS",o[o.GREEN_BITS=3411]="GREEN_BITS",o[o.BLUE_BITS=3412]="BLUE_BITS",o[o.ALPHA_BITS=3413]="ALPHA_BITS",o[o.DEPTH_BITS=3414]="DEPTH_BITS",o[o.STENCIL_BITS=3415]="STENCIL_BITS",o[o.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",o[o.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",o[o.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",o[o.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",o[o.SAMPLES=32937]="SAMPLES",o[o.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",o[o.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",o[o.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",o[o.DONT_CARE=4352]="DONT_CARE",o[o.FASTEST=4353]="FASTEST",o[o.NICEST=4354]="NICEST",o[o.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",o[o.BYTE=5120]="BYTE",o[o.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",o[o.SHORT=5122]="SHORT",o[o.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",o[o.INT=5124]="INT",o[o.UNSIGNED_INT=5125]="UNSIGNED_INT",o[o.FLOAT=5126]="FLOAT",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.ALPHA=6406]="ALPHA",o[o.RGB=6407]="RGB",o[o.RGBA=6408]="RGBA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",o[o.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",o[o.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",o[o.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",o[o.VERTEX_SHADER=35633]="VERTEX_SHADER",o[o.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",o[o.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",o[o.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",o[o.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",o[o.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",o[o.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",o[o.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",o[o.SHADER_TYPE=35663]="SHADER_TYPE",o[o.DELETE_STATUS=35712]="DELETE_STATUS",o[o.LINK_STATUS=35714]="LINK_STATUS",o[o.VALIDATE_STATUS=35715]="VALIDATE_STATUS",o[o.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",o[o.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",o[o.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",o[o.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",o[o.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",o[o.NEVER=512]="NEVER",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.GEQUAL=518]="GEQUAL",o[o.ALWAYS=519]="ALWAYS",o[o.KEEP=7680]="KEEP",o[o.REPLACE=7681]="REPLACE",o[o.INCR=7682]="INCR",o[o.DECR=7683]="DECR",o[o.INVERT=5386]="INVERT",o[o.INCR_WRAP=34055]="INCR_WRAP",o[o.DECR_WRAP=34056]="DECR_WRAP",o[o.VENDOR=7936]="VENDOR",o[o.RENDERER=7937]="RENDERER",o[o.VERSION=7938]="VERSION",o[o.NEAREST=9728]="NEAREST",o[o.LINEAR=9729]="LINEAR",o[o.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",o[o.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",o[o.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",o[o.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",o[o.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",o[o.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",o[o.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",o[o.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",o[o.TEXTURE_2D=3553]="TEXTURE_2D",o[o.TEXTURE=5890]="TEXTURE",o[o.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",o[o.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",o[o.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",o[o.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",o[o.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",o[o.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",o[o.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",o[o.TEXTURE0=33984]="TEXTURE0",o[o.TEXTURE1=33985]="TEXTURE1",o[o.TEXTURE2=33986]="TEXTURE2",o[o.TEXTURE3=33987]="TEXTURE3",o[o.TEXTURE4=33988]="TEXTURE4",o[o.TEXTURE5=33989]="TEXTURE5",o[o.TEXTURE6=33990]="TEXTURE6",o[o.TEXTURE7=33991]="TEXTURE7",o[o.TEXTURE8=33992]="TEXTURE8",o[o.TEXTURE9=33993]="TEXTURE9",o[o.TEXTURE10=33994]="TEXTURE10",o[o.TEXTURE11=33995]="TEXTURE11",o[o.TEXTURE12=33996]="TEXTURE12",o[o.TEXTURE13=33997]="TEXTURE13",o[o.TEXTURE14=33998]="TEXTURE14",o[o.TEXTURE15=33999]="TEXTURE15",o[o.TEXTURE16=34e3]="TEXTURE16",o[o.TEXTURE17=34001]="TEXTURE17",o[o.TEXTURE18=34002]="TEXTURE18",o[o.TEXTURE19=34003]="TEXTURE19",o[o.TEXTURE20=34004]="TEXTURE20",o[o.TEXTURE21=34005]="TEXTURE21",o[o.TEXTURE22=34006]="TEXTURE22",o[o.TEXTURE23=34007]="TEXTURE23",o[o.TEXTURE24=34008]="TEXTURE24",o[o.TEXTURE25=34009]="TEXTURE25",o[o.TEXTURE26=34010]="TEXTURE26",o[o.TEXTURE27=34011]="TEXTURE27",o[o.TEXTURE28=34012]="TEXTURE28",o[o.TEXTURE29=34013]="TEXTURE29",o[o.TEXTURE30=34014]="TEXTURE30",o[o.TEXTURE31=34015]="TEXTURE31",o[o.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",o[o.REPEAT=10497]="REPEAT",o[o.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",o[o.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",o[o.FLOAT_VEC2=35664]="FLOAT_VEC2",o[o.FLOAT_VEC3=35665]="FLOAT_VEC3",o[o.FLOAT_VEC4=35666]="FLOAT_VEC4",o[o.INT_VEC2=35667]="INT_VEC2",o[o.INT_VEC3=35668]="INT_VEC3",o[o.INT_VEC4=35669]="INT_VEC4",o[o.BOOL=35670]="BOOL",o[o.BOOL_VEC2=35671]="BOOL_VEC2",o[o.BOOL_VEC3=35672]="BOOL_VEC3",o[o.BOOL_VEC4=35673]="BOOL_VEC4",o[o.FLOAT_MAT2=35674]="FLOAT_MAT2",o[o.FLOAT_MAT3=35675]="FLOAT_MAT3",o[o.FLOAT_MAT4=35676]="FLOAT_MAT4",o[o.SAMPLER_2D=35678]="SAMPLER_2D",o[o.SAMPLER_CUBE=35680]="SAMPLER_CUBE",o[o.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",o[o.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",o[o.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",o[o.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",o[o.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",o[o.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",o[o.COMPILE_STATUS=35713]="COMPILE_STATUS",o[o.LOW_FLOAT=36336]="LOW_FLOAT",o[o.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",o[o.HIGH_FLOAT=36338]="HIGH_FLOAT",o[o.LOW_INT=36339]="LOW_INT",o[o.MEDIUM_INT=36340]="MEDIUM_INT",o[o.HIGH_INT=36341]="HIGH_INT",o[o.FRAMEBUFFER=36160]="FRAMEBUFFER",o[o.RENDERBUFFER=36161]="RENDERBUFFER",o[o.RGBA4=32854]="RGBA4",o[o.RGB5_A1=32855]="RGB5_A1",o[o.RGB565=36194]="RGB565",o[o.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",o[o.STENCIL_INDEX=6401]="STENCIL_INDEX",o[o.STENCIL_INDEX8=36168]="STENCIL_INDEX8",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",o[o.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",o[o.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",o[o.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",o[o.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",o[o.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",o[o.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",o[o.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",o[o.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",o[o.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",o[o.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",o[o.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",o[o.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",o[o.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",o[o.NONE=0]="NONE",o[o.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",o[o.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",o[o.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",o[o.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",o[o.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",o[o.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",o[o.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",o[o.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",o[o.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",o[o.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",o[o.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",o}({}),f_,Yy,x1,by,gv,E0,p_,w1,c1,Ry,U0,tv,Jv,$0=(f_=(0,os.b2)(),Yy=(0,os.f3)(Ms.IMapService),x1=(0,os.f3)(Ms.IRendererService),by=(0,os.f3)(Ms.IGlobalConfigService),gv=(0,os.f3)(Ms.IInteractionService),E0=(0,os.f3)(Ms.ILayerService),f_(p_=(w1=function(){function o(){var d=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"pickedColors",void 0),(0,Ln.Z)(this,"pickedTileLayers",[]),Fc(this,"mapService",c1,this),Fc(this,"rendererService",Ry,this),Fc(this,"configService",U0,this),Fc(this,"interactionService",tv,this),Fc(this,"layerService",Jv,this),(0,Ln.Z)(this,"pickingFBO",void 0),(0,Ln.Z)(this,"width",0),(0,Ln.Z)(this,"height",0),(0,Ln.Z)(this,"alreadyInPicking",!1),(0,Ln.Z)(this,"pickBufferScale",1),(0,Ln.Z)(this,"pickFromPickingFBO",function(l,c){var u=c.x,m=c.y,E=c.lngLat,M=c.type,Z=c.target,ne=!1,Ce=d.rendererService,Fe=Ce.readPixels,bt=Ce.getContainer,Bt=d.getContainerSize(bt()),Cn=Bt.width,An=Bt.height;Cn*=_i,An*=_i;var Pr=l.getLayerConfig(),ti=Pr.enableHighlight,ho=Pr.enableSelect,bo=u*_i,Ds=m*_i;if(bo>Cn-1*_i||bo<0||Ds>An-1*_i||Ds<0)return!1;var ta=Fe({x:Math.floor(bo/d.pickBufferScale),y:Math.floor((An-(m+1)*_i)/d.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:d.pickingFBO});if(d.pickedColors=ta,ta[0]!==0||ta[1]!==0||ta[2]!==0){var aa=qi(ta),Ua=l.layerPickService.getFeatureById(aa);aa!==l.getCurrentPickId()&&M==="mousemove"&&(M="mouseenter");var pl={x:u,y:m,type:M,lngLat:E,featureId:aa,feature:Ua,target:Z};Ua&&(ne=!0,l.setCurrentPickId(aa),d.triggerHoverOnLayer(l,pl))}else{var ru={x:u,y:m,lngLat:E,type:l.getCurrentPickId()!==null&&M==="mousemove"?"mouseout":"un"+M,featureId:null,target:Z,feature:null};d.triggerHoverOnLayer(l,(0,Oe.Z)((0,Oe.Z)({},ru),{},{type:"unpick"})),d.triggerHoverOnLayer(l,ru),l.setCurrentPickId(null)}if(ti&&l.layerPickService.highlightPickedFeature(ta),ho&&M==="click"&&(ta==null?void 0:ta.toString())!==[0,0,0,0].toString()){var Iu=qi(ta);l.getCurrentSelectedId()===null||Iu!==l.getCurrentSelectedId()?(l.layerPickService.selectFeature(ta),l.setCurrentSelectedId(Iu)):(l.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),l.setCurrentSelectedId(null))}return ne})}return(0,ot.Z)(o,[{key:"init",value:function(l){var c=this.rendererService,u=c.createTexture2D,m=c.createFramebuffer,E=c.getContainer,M=this.getContainerSize(E()),Z=M.width,ne=M.height;Z*=_i,ne*=_i,this.pickBufferScale=this.configService.getSceneConfig(l).pickBufferScale||1,this.pickingFBO=m({color:u({width:Math.round(Z/this.pickBufferScale),height:Math.round(ne/this.pickBufferScale),wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE})}),this.interactionService.on(Xp.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u,m,E){var M=this,Z,ne,Ce;return Wi().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:Z=this.rendererService,ne=Z.useFramebuffer,Ce=Z.clear,this.resizePickingFBO(),ne(this.pickingFBO,function(){Ce({framebuffer:M.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),u.hooks.beforePickingEncode.call(),u.renderModels({ispick:!0}),u.hooks.afterPickingEncode.call();var Bt=M.pickBox(u,m);E(Bt)});case 3:case"end":return bt.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"pickBox",value:function(l,c){var u=this,m=c.map(function(Iu){var Vu=Iu<0?0:Iu;return Math.floor(Vu*_i/u.pickBufferScale)}),E=(0,mi.Z)(m,4),M=E[0],Z=E[1],ne=E[2],Ce=E[3],Fe=this.rendererService,bt=Fe.readPixels,Bt=Fe.getContainer,Cn=this.getContainerSize(Bt()),An=Cn.width,Pr=Cn.height;if(An*=_i,Pr*=_i,M>(An-1)*_i/this.pickBufferScale||ne<0||Z>(Pr-1)*_i/this.pickBufferScale||Ce<0)return[];for(var ti=Math.min(An/this.pickBufferScale,ne)-M,ho=Math.min(Pr/this.pickBufferScale,Ce)-Z,bo=bt({x:M,y:Math.floor(Pr/this.pickBufferScale-(Ce+1)),width:ti,height:ho,data:new Uint8Array(ti*ho*4),framebuffer:this.pickingFBO}),Ds=[],ta={},aa=0;aa0&&arguments[0]!==void 0?arguments[0]:!0;(0,xt.Z)(this,o),(0,Ln.Z)(this,"autoStart",void 0),(0,Ln.Z)(this,"startTime",0),(0,Ln.Z)(this,"oldTime",0),(0,Ln.Z)(this,"running",!1),(0,Ln.Z)(this,"elapsedTime",0),this.autoStart=d}return(0,ot.Z)(o,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?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 l=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();l=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=l}return l}}]),o}(),M0,U_,B1,Hv,Ov,Qv,C1,S1,xy;function $_(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Nv(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Nv(o,d){if(o){if(typeof o=="string")return db(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return db(o,d)}}function db(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l-1&&M.layerChildren.splice(Z,1)):(ne=this.layers.indexOf(E),ne>-1&&this.layers.splice(ne,1)),E.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Fe.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"removeAllLayers",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:this.destroy(),this.reRender();case 2:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"setEnableRender",value:function(u){this.enableRender=u}},{key:"renderLayers",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe;return Wi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Bt.next=2;break}return Bt.abrupt("return");case 2:this.updateLayerRenderList(),E=this.debugService.generateRenderUid(),this.debugService.renderStart(E),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),M=$_(this.layerList),Bt.prev=9,M.s();case 11:if((Z=M.n()).done){Bt.next=24;break}if(ne=Z.value,Ce=ne.getLayerConfig(),Fe=Ce.enableMask,ne.masks.filter(function(Cn){return Cn.inited}).length>0&&Fe&&this.renderMask(ne.masks),!ne.getLayerConfig().enableMultiPassRenderer){Bt.next=20;break}return Bt.next=18,ne.renderMultiPass();case 18:Bt.next=22;break;case 20:return Bt.next=22,ne.render();case 22:Bt.next=11;break;case 24:Bt.next=29;break;case 26:Bt.prev=26,Bt.t0=Bt.catch(9),M.e(Bt.t0);case 29:return Bt.prev=29,M.f(),Bt.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(E),this.alreadyInRendering=!1;case 35:case"end":return Bt.stop()}},m,this,[[9,26,29,32]])}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMask",value:function(u){var m=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var E=u.length>1?Pd.MULTIPLE:Pd.SINGLE,M=$_(u),Z;try{for(M.s();!(Z=M.n()).done;){var ne=Z.value;ne.render({isStencil:!0,stencilType:E,stencilIndex:m++})}}catch(Ce){M.e(Ce)}finally{M.f()}}},{key:"beforeRenderData",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){var M;return Wi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,E.hooks.beforeRenderData.promise();case 2:M=ne.sent,M&&this.renderLayers();case 4:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderTileLayerMask",value:function(u){var m=0,E=u.getLayerConfig(),M=E.enableMask,Z=M===void 0?!0:M,ne=u.tileMask?1:0,Ce=u.masks.filter(function(An){return An.inited});ne=ne+(Z?Ce.length:1);var Fe=ne>1?Pd.MULTIPLE:Pd.SINGLE;if((u.tileMask||Ce.length&&Z)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Ce.length&&Z){var bt=$_(Ce),Bt;try{for(bt.s();!(Bt=bt.n()).done;){var Cn=Bt.value;Cn.render({isStencil:!0,stencilType:Fe,stencilIndex:m++})}}catch(An){bt.e(An)}finally{bt.f()}}u.tileMask&&u.tileMask.render({isStencil:!0,stencilType:Fe,stencilIndex:m++,stencilOperation:ss.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.renderTileLayerMask(E),!E.getLayerConfig().enableMultiPassRenderer){Z.next=6;break}return Z.next=4,E.renderMultiPass();case 4:Z.next=8;break;case 6:return Z.next=8,E.render();case 8:case"end":return Z.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateLayerRenderList",value:function(){var u=this;this.layerList=[],this.layers.filter(function(m){return m.inited}).filter(function(m){return m.isVisible()}).sort(function(m,E){return m.zIndex-E.zIndex}).forEach(function(m){u.layerList.push(m)})}},{key:"destroy",value:function(){this.layers.forEach(function(u){u.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(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 u=ni(this.mapService.bgColor);this.renderService.clear({color:u,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),l}(uc.EventEmitter),C1=kh(Qv.prototype,"renderService",[U_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S1=kh(Qv.prototype,"mapService",[B1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xy=kh(Qv.prototype,"debugService",[Hv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qv))||Ov),dm=_(91),Gb=Ns.isNil,tC=function(){function o(d){var l=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"name",void 0),(0,Ln.Z)(this,"type",void 0),(0,Ln.Z)(this,"scale",void 0),(0,Ln.Z)(this,"descriptor",void 0),(0,Ln.Z)(this,"featureBufferLayout",[]),(0,Ln.Z)(this,"needRescale",!1),(0,Ln.Z)(this,"needRemapping",!1),(0,Ln.Z)(this,"needRegenerateVertices",!1),(0,Ln.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Ln.Z)(this,"vertexAttribute",void 0),(0,Ln.Z)(this,"defaultCallback",function(c){if(c.length===0){var u;return((u=l.scale)===null||u===void 0?void 0:u.defaultValues)||[]}return c.map(function(m,E){var M,Z=(M=l.scale)===null||M===void 0?void 0:M.scalers[E].func,ne=Z(m);return ne})}),this.setProps(d)}return(0,ot.Z)(o,[{key:"setProps",value:function(l){Object.assign(this,l)}},{key:"mapping",value:function(l){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var u,m=(u=this.scale)===null||u===void 0?void 0:u.callback.apply(u,(0,Pn.Z)(l));if(!Gb(m))return[m]}return this.defaultCallback(l)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),o}(),pb=["buffer","update","name"],d2=["buffer","update","name"],qy,f2,gb,mb,vb,aw,p2=(qy={},(0,Ln.Z)(qy,Di.FLOAT,4),(0,Ln.Z)(qy,Di.UNSIGNED_BYTE,1),(0,Ln.Z)(qy,Di.UNSIGNED_SHORT,2),qy),$E=(f2=(0,os.b2)(),gb=(0,os.f3)(Ms.IRendererService),f2(mb=(vb=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"attributesAndIndices",void 0),Fc(this,"rendererService",aw,this),(0,Ln.Z)(this,"attributes",[]),(0,Ln.Z)(this,"triangulation",void 0),(0,Ln.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,ot.Z)(o,[{key:"registerStyleAttribute",value:function(l){var c=this.getLayerStyleAttribute(l.name||"");return c?c.setProps(l):(c=new tC(l),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(l){var c=this.attributes.findIndex(function(u){return u.name===l});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(l){this.attributes.forEach(function(c){var u,m=c.name,E=(u=c.scale)===null||u===void 0?void 0:u.field;(l[m]||E&&l[E])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(l,c,u){var m=this.getLayerStyleAttribute(l);m||(m=this.registerStyleAttribute((0,Oe.Z)((0,Oe.Z)({},c),{},{name:l})));var E=c.scale;E&&m&&(m.scale=E,m.needRescale=!0,m.needRemapping=!0,m.needRegenerateVertices=!0,u&&u.featureRange&&(m.featureRange=u.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(l){return this.attributes.find(function(c){return c.name===l})}},{key:"getLayerAttributeScale",value:function(l){var c,u=this.getLayerStyleAttribute(l),m=u==null||(c=u.scale)===null||c===void 0?void 0:c.scalers;return m&&m[0]?m[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3?arguments[3]:void 0,E=arguments.length>4?arguments[4]:void 0,M=this.attributes.find(function(ta){return ta.name===l});if(M&&M.descriptor){var Z=M.descriptor,ne=Z.update,Ce=Z.buffer,Fe=Z.size,bt=Fe===void 0?0:Fe,Bt=p2[Ce.type||Di.FLOAT];if(ne){var Cn=this.featureLayout,An=Cn.elements,Pr=Cn.sizePerElement,ti=An.slice(u,m);if(!ti.length)return;var ho=ti[0].offset,bo=ho*bt*Bt,Ds=ti.map(function(ta,aa){for(var Ua=ta.featureIdx,pl=ta.vertices,ru=ta.normals,Iu=pl.length/Pr,Vu=[],th=0;th0&&m[m.length-1])&&(ne[0]===6||ne[0]===2)){l=0;continue}if(ne[0]===3&&(!m||ne[1]>m[0]&&ne[1]0)&&!(u=c.next()).done;)m.push(u.value)}catch(M){E={error:M}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(E)throw E.error}}return m}function Oy(o,d,l){if(l||arguments.length===2)for(var c=0,u=d.length,m;c=0&&c.length%1===0}o.exports=d.default})(ty,ty.exports);var d1={},_b={exports:{}},f1={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return function(){for(var c=[],u=arguments.length;u--;)c[u]=arguments[u];var m=c.pop();return l.call(this,c,m)}},o.exports=d.default})(f1,f1.exports);var $1={};Object.defineProperty($1,"__esModule",{value:!0}),$1.fallback=uw,$1.wrap=m2;var lw=$1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,p1=$1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,g2=$1.hasNextTick=typeof U1=="object"&&typeof U1.nextTick=="function";function uw(o){setTimeout(o,0)}function m2(o){return function(d){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];return o(function(){return d.apply(void 0,l)})}}var Kb;lw?Kb=queueMicrotask:p1?Kb=setImmediate:g2?Kb=U1.nextTick:Kb=uw,$1.default=m2(Kb),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=Z;var l=f1.exports,c=M(l),u=$1,m=M(u),E=d1;function M(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function Z(Fe){return(0,E.isAsync)(Fe)?function(){for(var bt=[],Bt=arguments.length;Bt--;)bt[Bt]=arguments[Bt];var Cn=bt.pop(),An=Fe.apply(this,bt);return ne(An,Cn)}:(0,c.default)(function(bt,Bt){var Cn;try{Cn=Fe.apply(this,bt)}catch(An){return Bt(An)}if(Cn&&typeof Cn.then=="function")return ne(Cn,Bt);Bt(null,Cn)})}function ne(Fe,bt){return Fe.then(function(Bt){Ce(bt,null,Bt)},function(Bt){Ce(bt,Bt&&Bt.message?Bt:new Error(Bt))})}function Ce(Fe,bt,Bt){try{Fe(bt,Bt)}catch(Cn){(0,m.default)(function(An){throw An},Cn)}}o.exports=d.default}(_b,_b.exports),Object.defineProperty(d1,"__esModule",{value:!0}),d1.isAsyncIterable=d1.isAsyncGenerator=d1.isAsync=void 0;var v2=_b.exports,y2=vS(v2);function vS(o){return o&&o.__esModule?o:{default:o}}function Mx(o){return o[Symbol.toStringTag]==="AsyncFunction"}function nC(o){return o[Symbol.toStringTag]==="AsyncGenerator"}function _2(o){return typeof o[Symbol.asyncIterator]=="function"}function VE(o){if(typeof o!="function")throw new Error("expected a function");return Mx(o)?(0,y2.default)(o):o}d1.default=VE,d1.isAsync=Mx,d1.isAsyncGenerator=nC,d1.isAsyncIterable=_2;var Jy={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c,u){if(u===void 0&&(u=c.length),!u)throw new Error("arity is undefined");function m(){for(var E=this,M=[],Z=arguments.length;Z--;)M[Z]=arguments[Z];return typeof M[u-1]=="function"?c.apply(this,M):new Promise(function(ne,Ce){M[u-1]=function(Fe){for(var bt=[],Bt=arguments.length-1;Bt-- >0;)bt[Bt]=arguments[Bt+1];if(Fe)return Ce(Fe);ne(bt.length>1?bt:bt[0])},c.apply(E,M)})}return m}o.exports=d.default})(Jy,Jy.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=ty.exports,c=Z(l),u=d1,m=Z(u),E=Jy.exports,M=Z(E);function Z(ne){return ne&&ne.__esModule?ne:{default:ne}}d.default=(0,M.default)(function(ne,Ce,Fe){var bt=(0,c.default)(Ce)?[]:{};ne(Ce,function(Bt,Cn,An){(0,m.default)(Bt)(function(Pr){for(var ti,ho=[],bo=arguments.length-1;bo-- >0;)ho[bo]=arguments[bo+1];ho.length<2&&(ti=ho,ho=ti[0]),bt[Cn]=ho,An(Pr)})},function(Bt){return Fe(Bt,bt)})},3),o.exports=d.default}(Ny,Ny.exports);var Qy={exports:{}},V_={exports:{}},bb={exports:{}},Xb={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c){function u(){for(var m=[],E=arguments.length;E--;)m[E]=arguments[E];if(c!==null){var M=c;c=null,M.apply(this,m)}}return Object.assign(u,c),u}o.exports=d.default})(Xb,Xb.exports);var Rx={exports:{}},v_={exports:{}};(function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return l[Symbol.iterator]&&l[Symbol.iterator]()},o.exports=d.default})(v_,v_.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=Ce;var l=ty.exports,c=E(l),u=v_.exports,m=E(u);function E(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function M(Fe){var bt=-1,Bt=Fe.length;return function(){return++bt=M||bt||Ce||(bt=!0,E.next().then(function(ho){var bo=ho.value,Ds=ho.done;if(!(Fe||Ce)){if(bt=!1,Ds){Ce=!0,Bt<=0&&ne(null);return}Bt++,Z(bo,Cn,Pr),Cn++,An()}}).catch(ti))}function Pr(ho,bo){if(Bt-=1,!Fe){if(ho)return ti(ho);if(ho===!1){Ce=!0,Fe=!0;return}if(bo===c.default||Ce&&Bt<=0)return Ce=!0,ne(null);An()}}function ti(ho){Fe||(bt=!1,Ce=!0,ne(ho))}An()}o.exports=d.default}(kx,kx.exports),function(o,d){Object.defineProperty(d,"__esModule",{value:!0});var l=Xb.exports,c=Bt(l),u=Rx.exports,m=Bt(u),E=e_.exports,M=Bt(E),Z=d1,ne=kx.exports,Ce=Bt(ne),Fe=Yb.exports,bt=Bt(Fe);function Bt(Cn){return Cn&&Cn.__esModule?Cn:{default:Cn}}d.default=function(Cn){return function(An,Pr,ti){if(ti=(0,c.default)(ti),Cn<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!An)return ti(null);if((0,Z.isAsyncGenerator)(An))return(0,Ce.default)(An,Cn,Pr,ti);if((0,Z.isAsyncIterable)(An))return(0,Ce.default)(An[Symbol.asyncIterator](),Cn,Pr,ti);var ho=(0,m.default)(An),bo=!1,Ds=!1,ta=0,aa=!1;function Ua(ru,Iu){if(!Ds)if(ta-=1,ru)bo=!0,ti(ru);else if(ru===!1)bo=!0,Ds=!0;else{if(Iu===bt.default||bo&&ta<=0)return bo=!0,ti(null);aa||pl()}}function pl(){for(aa=!0;ta0;)ho[bo]=arguments[bo+1];if(ti!==!1){if(ti||Cn===bt.length)return Bt.apply(void 0,[ti].concat(ho));An(ho)}}An([])}d.default=(0,ne.default)(Fe),o.exports=d.default})(hw,hw.exports);var oC=yb(hw.exports),sC=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return oC(this.tasks)},o.prototype.tap=function(d,l){this.tasks.length===0?this.tasks.push(function(c){var u=l();c(u?null:!1,u)}):this.tasks.push(function(c,u){var m=l.apply(void 0,Oy([],h1(c),!1));u(m?null:!1,d)})},o}(),yS=function(){function o(){this.tasks=[]}return o.prototype.call=function(){return W_(this.tasks)},o.prototype.tap=function(d,l){this.tasks.push(function(c){var u=l();c(u,d)})},o}(),_S=function(){function o(){this.args=[],this.tasks=[]}return o.prototype.promise=function(){for(var d=arguments,l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,l={};return o=o.replace(Ue,function(c,u,m){var E=m.split(":"),M=E[0].trim(),Z="";switch(E.length>1&&(Z=E[1].trim()),u){case"bool":Z=Z==="true";break;case"float":case"int":Z=Number(Z);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":Z?Z=Z.replace("[","").replace("]","").split(",").reduce(function(ne,Ce){return ne.push(Number(Ce.trim())),ne},[]):Z=new Array(me(u)).fill(0);break;default:}return l[M]=Z,"".concat(d?"uniform ":"").concat(u," ").concat(M,`; +`)}),{content:o,uniforms:l}}function St(o){var d=qe(o,!0),l=d.content,c=d.uniforms;return l=l.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(u,m,E){E=E.trim().replace(/^.*$/gm,function(Ce){return"uniform ".concat(Ce)});var M=qe(E),Z=M.content,ne=M.uniforms;return Object.assign(c,ne),"".concat(m,`{ +`).concat(Z,` +};`)}),{content:l,uniforms:c}}function Pt(o){var d={};return o.replace(Ue,function(l,c,u){var m=u.trim();return d[m]?"":(d[m]=!0,"uniform ".concat(c," ").concat(m,`; +`))})}var fn,_n,Ht=Ns.uniq,Bn="#define PI 3.14159265359",Xn=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -118,7 +121,37 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,fn=`#define ambientRatio 0.5 +`,mr=`layout(std140) uniform SceneUniforms { + mat4 u_ViewMatrix; + mat4 u_ProjectionMatrix; + mat4 u_ViewProjectionMatrix; + mat4 u_ModelMatrix; + mat4 u_Mvp; + vec4 u_ViewportCenterProjection; + vec3 u_PixelsPerDegree; + float u_Zoom; + vec3 u_PixelsPerDegree2; + float u_ZoomScale; + vec3 u_PixelsPerMeter; + float u_CoordinateSystem; + vec3 u_CameraPosition; + float u_DevicePixelRatio; + vec2 u_ViewportCenter; + vec2 u_ViewportSize; + vec2 u_sceneCenterMercator; + float u_FocalDistance; +};`,zr=`layout(std140) uniform PickingUniforms { + vec4 u_HighlightColor; + vec4 u_SelectColor; + vec3 u_PickingColor; + float u_PickingStage; + vec3 u_CurrentSelectedId; + float u_PickingThreshold; + float u_PickingBuffer; + float u_shaderPick; + float u_EnableSelect; + float u_activeMix; +};`,Xs=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -143,7 +176,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,bn=`// Blinn-Phong model +`,da=`// Blinn-Phong model // apply lighting in vertex shader instead of fragment shader // @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting uniform float u_Ambient : 1.0; @@ -240,13 +273,10 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { // } return weight; } -`,Un=`varying vec4 v_PickingResult; -uniform vec4 u_HighlightColor : [0, 0, 0, 0]; -uniform vec4 u_SelectColor : [0, 0, 0, 0]; -uniform float u_PickingStage : 0.0; -uniform float u_shaderPick; +`,jl=` +in vec4 v_PickingResult; -uniform float u_activeMix: 0; +#pragma include "picking_uniforms" #define PICKING_NONE 0.0 #define PICKING_ENCODE 1.0 @@ -318,18 +348,10 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,lr=`attribute vec3 a_PickingColor; -varying vec4 v_PickingResult; +`,Za=`layout(location = 2) in vec3 a_PickingColor; +out vec4 v_PickingResult; -uniform vec3 u_PickingColor : [0, 0, 0]; -uniform vec3 u_CurrentSelectedId : [0, 0, 0]; -uniform vec4 u_HighlightColor : [0, 0, 0, 0]; -uniform vec4 u_SelectColor : [0, 0, 0, 0]; -uniform float u_PickingStage : 0.0; -uniform float u_PickingThreshold : 1.0; -uniform float u_PickingBuffer: 0.0; -uniform float u_shaderPick; -uniform float u_EnableSelect: 0.0; +#pragma include "picking_uniforms" #define PICKING_NONE 0.0 #define PICKING_ENCODE 1.0 @@ -341,18 +363,12 @@ uniform float u_EnableSelect: 0.0; #define SELECT 2.0 bool isVertexPicked(vec3 vertexColor) { - return - abs(vertexColor.r - u_PickingColor.r) < u_PickingThreshold && - abs(vertexColor.g - u_PickingColor.g) < u_PickingThreshold && - abs(vertexColor.b - u_PickingColor.b) < u_PickingThreshold; + return distance(vertexColor,u_PickingColor.rgb) < 0.01; } // \u5224\u65AD\u5F53\u524D\u70B9\u662F\u5426\u5DF2\u7ECF\u88AB select \u9009\u4E2D bool isVertexSelected(vec3 vertexColor) { - return - abs(vertexColor.r - u_CurrentSelectedId.r) < u_PickingThreshold && - abs(vertexColor.g - u_CurrentSelectedId.g) < u_PickingThreshold && - abs(vertexColor.b - u_CurrentSelectedId.b) < u_PickingThreshold; + return distance(vertexColor,u_CurrentSelectedId.rgb) < 0.01; } void setPickingColor(vec3 pickingColor) { @@ -363,16 +379,6 @@ void setPickingColor(vec3 pickingColor) { v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor)); - // if (u_EnableSelect == 1.0 && u_PickingStage == PICKING_HIGHLIGHT && isVertexSelected(pickingColor)) { - // // \u9009\u4E2D\u6001 - // v_PickingResult.a = SELECT; - // } else if (u_PickingStage == PICKING_HIGHLIGHT && isVertexPicked(pickingColor)) { - // // \u9AD8\u4EAE\u6001 - // v_PickingResult.a = HIGHLIGHT; - // } else { - // v_PickingResult.a = NORMAL; - // } - // Stores the picking color so that the fragment shader can render it during picking v_PickingResult.rgb = pickingColor * COLOR_SCALE; } @@ -385,7 +391,7 @@ float setPickingOrder(float z) { bool selected = bool(v_PickingResult.a); return selected ? z + 1. : 0.; } -`,Fs=` +`,sa=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -454,9 +460,10 @@ float customPixelDistance(vec2 from, vec2 to) { vec2 a1 = ProjectFlat(from); vec2 b1 = ProjectFlat(to); return distance(a1, b1); -}`,Xs=`#define TILE_SIZE 512.0 +}`,ol=`#define TILE_SIZE 512.0 #define PI 3.1415926536 #define WORLD_SCALE TILE_SIZE / (PI * 2.0) +#define EARTH_CIRCUMFERENCE 40.03e6 #define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox #define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset @@ -467,28 +474,14 @@ float customPixelDistance(vec2 from, vec2 to) { #define COORDINATE_SYSTEM_METER_OFFSET 7.0 #define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 +#pragma include "scene_uniforms" -uniform mat4 u_ViewMatrix; -uniform mat4 u_ProjectionMatrix; -uniform mat4 u_ViewProjectionMatrix; -uniform float u_Zoom : 1; -uniform float u_ZoomScale : 1; - -uniform float u_CoordinateSystem; -uniform vec2 u_ViewportCenter; -uniform vec4 u_ViewportCenterProjection; -uniform vec3 u_PixelsPerDegree; -uniform vec3 u_PixelsPerDegree2; -uniform vec3 u_PixelsPerMeter; - -uniform vec2 u_ViewportSize; -uniform float u_DevicePixelRatio; -uniform float u_FocalDistance; -uniform vec3 u_CameraPosition; -uniform mat4 u_Mvp; // web mercator coords -> world coords vec2 project_mercator(vec2 lnglat) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 + return lnglat; + } float x = lnglat.x; return vec2( radians(x) + PI, @@ -569,7 +562,6 @@ vec4 project_position(vec4 position) { position.w ); } - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { return vec4( (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.), @@ -578,17 +570,14 @@ vec4 project_position(vec4 position) { ); } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // return vec4( - // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), - // project_scale(position.z), - // position.w); + // if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + - return vec4( - position.xy, - project_scale(position.z), - position.w); - } + // return vec4( + // position.xy, + // project_scale(position.z), + // position.w); + // } return position; // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB @@ -598,6 +587,8 @@ vec2 project_pixel_size_to_clipspace(vec2 pixels) { return offset * u_FocalDistance; } + + float project_pixel_allmap(float pixel) { if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { return pixel * pow(2.0, u_Zoom); @@ -621,7 +612,7 @@ float project_pixel_texture(float pixel) { if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { return pixel * pow(0.5, u_Zoom)* u_FocalDistance ; } - + // amap zoom < 12 if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { return pixel * pow(2.0, (20.0 - u_Zoom))* u_FocalDistance ; @@ -646,6 +637,20 @@ float project_float_pixel(float pixel) { return pixel * u_FocalDistance; } +// Project meter into the unit of pixel which used in the camera world space +float project_float_meter(float meter) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Since the zoom level uniform is updated by mapservice and it's alread been subtracted by 1 + // Not sure if we are supposed to do that again + return meter; + } else { + return project_float_pixel(meter); + } + + // TODO: change the following code to make adaptations for amap + return u_FocalDistance * TILE_SIZE * pow(2.0, u_Zoom) * meter / EARTH_CIRCUMFERENCE; +} + float project_pixel(float pixel) { if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 @@ -722,13 +727,14 @@ vec4 project_common_position_to_clipspace_v2(vec4 position) { } else { return project_common_position_to_clipspace(position); } -}`,xl=`vec2 rotate_matrix(vec2 v, float a) { +} +`,Ou=`vec2 rotate_matrix(vec2 v, float a) { float b = a / 180.0 * 3.1415926535897932384626433832795; float s = sin(b); float c = cos(b); mat2 m = mat2(c, s, -s, c); return m * v; -}`,Ia=`/** +}`,Du=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -802,22 +808,24 @@ float sdVesica(vec2 p, float r, float d) { ? length(p-vec2(0.0,b)) : length(p-vec2(-d,0.0))-r; } -`,Vs=/precision\s+(high|low|medium)p\s+float/,za=`#ifdef GL_FRAGMENT_PRECISION_HIGH +`,oc=/precision\s+(high|low|medium)p\s+float/,nc=`#ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; #else precision mediump float; #endif -`,uu=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,ou=/void\s+main\s*\([^)]*\)\s*\{\n?/,Vu=/}\n?[^{}]*$/,Ru=(st=(0,As.b2)(),st(ht=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"moduleCache",{}),(0,Cn.Z)(this,"rawContentCache",{})}return(0,He.Z)(a,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Qt,fs:Qt}),this.registerModule("decode",{vs:At,fs:""}),this.registerModule("projection",{vs:Xs,fs:""}),this.registerModule("project",{vs:Fs,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ia}),this.registerModule("lighting",{vs:bn,fs:""}),this.registerModule("light",{vs:fn,fs:""}),this.registerModule("picking",{vs:lr,fs:Un}),this.registerModule("rotation_2d",{vs:xl,fs:""})}},{key:"registerModule",value:function(u,c){var l=c.vs,g=c.fs,T=c.uniforms,B=c.inject,G=Fe(l),ne=G.content,Me=G.uniforms,Ge=Fe(g),Et=Ge.content,Ot=Ge.uniforms;this.rawContentCache[u]={fs:Et,inject:B,uniforms:(0,we.Z)((0,we.Z)((0,we.Z)({},Me),Ot),T),vs:ne}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(u){var c=this,l=this.rawContentCache[u].vs,g=this.rawContentCache[u].fs,T=this.rawContentCache[u].inject,B={};T!=null&&T["vs:#decl"]&&(l=(T==null?void 0:T["vs:#decl"])+l,B=Fe(T==null?void 0:T["vs:#decl"]).uniforms),T!=null&&T["vs:#main-start"]&&(l=l.replace(ou,function(Ir){return Ir+(T==null?void 0:T["vs:#main-start"])}));var G=this.processModule(l,[],"vs"),ne=G.content,Me=G.includeList,Ge=this.processModule(g,[],"fs"),Et=Ge.content,Ot=Ge.includeList,Pn="",Mn=Kt(Me.concat(Ot).concat(u)).reduce(function(Ir,Ti){return(0,we.Z)((0,we.Z)({},Ir),c.rawContentCache[Ti].uniforms)},(0,we.Z)({},B));return Vs.test(Et)||(Pn=Pn+za),Pn=Pn+Et,this.moduleCache[u]={fs:Pn.trim(),uniforms:Mn,vs:ne.trim()},this.moduleCache[u]}},{key:"processModule",value:function(u,c,l){var g=this,T=u.replace(uu,function(B,G){var ne=G.split(" "),Me=ne[0].replace(/"/g,"");if(c.indexOf(Me)>-1)return"";var Ge=g.rawContentCache[Me][l];c.push(Me);var Et=g.processModule(Ge,c,l),Ot=Et.content;return Ot});return{content:T,includeList:c}}},{key:"injectDefines",value:function(u){var c=Object.keys(u).reduce(function(l,g){return l+"#define ".concat(g.toUpperCase()," ").concat(u[g],`; +`,gc=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,Ul=/void\s+main\s*\([^)]*\)\s*\{\n?/,ag=/}\n?[^{}]*$/,Kf=(fn=(0,os.b2)(),fn(_n=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"moduleCache",{}),(0,Ln.Z)(this,"rawContentCache",{})}return(0,ot.Z)(o,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Bn,fs:Bn}),this.registerModule("decode",{vs:Xn,fs:""}),this.registerModule("scene_uniforms",{vs:mr,fs:mr}),this.registerModule("picking_uniforms",{vs:zr,fs:zr}),this.registerModule("projection",{vs:ol,fs:ol}),this.registerModule("project",{vs:sa,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Du}),this.registerModule("lighting",{vs:da,fs:""}),this.registerModule("light",{vs:Xs,fs:""}),this.registerModule("picking",{vs:Za,fs:jl}),this.registerModule("rotation_2d",{vs:Ou,fs:""})}},{key:"registerModule",value:function(l,c){c.vs=c.vs.replace(/\r\n/g,` +`),c.fs=c.fs.replace(/\r\n/g,` +`);var u=c.vs,m=c.fs,E=c.uniforms,M=c.inject,Z=St(u),ne=Z.content,Ce=Z.uniforms,Fe=St(m),bt=Fe.content,Bt=Fe.uniforms;this.rawContentCache[l]={fs:bt,inject:M,uniforms:(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},Ce),Bt),E),vs:ne}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(l){var c=this,u=this.rawContentCache[l].vs,m=this.rawContentCache[l].fs,E=this.rawContentCache[l].inject,M={};E!=null&&E["vs:#decl"]&&(u=(E==null?void 0:E["vs:#decl"])+u,M=St(E==null?void 0:E["vs:#decl"]).uniforms),E!=null&&E["vs:#main-start"]&&(u=u.replace(Ul,function(ti){return ti+(E==null?void 0:E["vs:#main-start"])})),E!=null&&E["fs:#decl"]&&(m=(E==null?void 0:E["fs:#decl"])+m);var Z=this.processModule(u,[],"vs"),ne=Z.content,Ce=Z.includeList,Fe=this.processModule(m,[],"fs"),bt=Fe.content,Bt=Fe.includeList,Cn="",An=Ht(Ce.concat(Bt).concat(l)).reduce(function(ti,ho){return(0,Oe.Z)((0,Oe.Z)({},ti),c.rawContentCache[ho].uniforms)},(0,Oe.Z)({},M));oc.test(bt)||(Cn=Cn+nc),Cn=Cn+bt;var Pr="";return oc.test(ne)||(Pr=Pr+nc),Pr=Pr+ne,this.moduleCache[l]={fs:Cn.trim(),uniforms:An,vs:Pr.trim()},this.moduleCache[l]}},{key:"processModule",value:function(l,c,u){var m=this,E=l.replace(gc,function(M,Z){var ne=Z.split(" "),Ce=ne[0].replace(/"/g,"");if(c.indexOf(Ce)>-1)return"";var Fe=m.rawContentCache[Ce][u];c.push(Ce);var bt=m.processModule(Fe,c,u),Bt=bt.content;return Bt});return{content:E,includeList:c}}},{key:"injectDefines",value:function(l){var c=Object.keys(l).reduce(function(u,m){return u+"#define ".concat(m.toUpperCase()," ").concat(l[m],`; `)},` -`);return c}}]),a}())||ht);function tc(a,p){for(;!Object.prototype.hasOwnProperty.call(a,p)&&(a=(0,vt.Z)(a),a!==null););return a}function Oa(){return typeof Reflect!="undefined"&&Reflect.get?Oa=Reflect.get.bind():Oa=function(p,u,c){var l=tc(p,u);if(l){var g=Object.getOwnPropertyDescriptor(l,u);return g.get?g.get.call(arguments.length<3?p:c):g.value}},Oa.apply(this,arguments)}var Rf=function(a){return a.Normal="normal",a.PostProcessing="post-processing",a}({}),sf,qp,tg=(sf=(0,As.b2)(),sf(qp=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"shaderModuleService",void 0),(0,Cn.Z)(this,"rendererService",void 0),(0,Cn.Z)(this,"cameraService",void 0),(0,Cn.Z)(this,"mapService",void 0),(0,Cn.Z)(this,"interactionService",void 0),(0,Cn.Z)(this,"layerService",void 0),(0,Cn.Z)(this,"config",void 0)}return(0,He.Z)(a,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Rf.Normal}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(vr.IRendererService),this.cameraService=u.getContainer().get(vr.ICameraService),this.mapService=u.getContainer().get(vr.IMapService),this.interactionService=u.getContainer().get(vr.IInteractionService),this.layerService=u.getContainer().get(vr.ILayerService),this.shaderModuleService=u.getContainer().get(vr.IShaderModuleService)}},{key:"render",value:function(u){}}]),a}())||qp),uh,_p;function Wf(a){var p=Tm();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Tm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var bm=(uh=(0,As.b2)(),uh(_p=function(a){(0,ft.Z)(u,a);var p=Wf(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(l,g){Oa((0,vt.Z)(u.prototype),"init",this).call(this,l,g)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),u}(tg))||_p),gg,O0,J0,am,km;function xm(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=u0(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function u0(a,p){if(a){if(typeof a=="string")return y1(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y1(a,p)}}function y1(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uTi||Ma<0||ll>Ko||ll<0)){var Wl;Mn(c.pickingFBO,function(){var jl;if(Wl=Pn({x:Math.round(Ma),y:Math.round(Ko-(ne+1)*hi),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),Wl[0]!==0||Wl[1]!==0||Wl[2]!==0){var ju=oi(Wl),Pu=c.layer.getSource().getFeatureById(ju),Vc={x:G,y:ne,type:Ge,lngLat:Me,featureId:ju,feature:Pu};Pu&&(c.layer.setCurrentPickId(ju),c.triggerHoverOnLayer(Vc))}else{var dd={x:G,y:ne,lngLat:Me,type:c.layer.getCurrentPickId()===null?"un"+Ge:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,we.Z)((0,we.Z)({},dd),{},{type:"unpick"})),c.triggerHoverOnLayer(dd),c.layer.setCurrentPickId(null)}Qs&&c.highlightPickedFeature(Wl),ga&&Ge==="click"&&((jl=Wl)===null||jl===void 0?void 0:jl.toString())!==[0,0,0,0].toString()&&c.selectFeature(Wl)})}}}),c}return(0,He.Z)(u,[{key:"getType",value:function(){return Rf.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(l,g){Oa((0,vt.Z)(u.prototype),"init",this).call(this,l,g),this.layer=l;var T=this.rendererService,B=T.createTexture2D,G=T.createFramebuffer,ne=T.getViewportSize,Me=ne(),Ge=Me.width,Et=Me.height;this.pickingFBO=G({color:B({width:Ge,height:Et,wrapS:qi.CLAMP_TO_EDGE,wrapT:qi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickFromPickingFBO),this.interactionService.on(fg.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(fg.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(l){var g=this;if(!this.alreadyInRendering){var T=this.rendererService,B=T.getViewportSize,G=T.useFramebuffer,ne=T.clear,Me=B(),Ge=Me.width,Et=Me.height;this.alreadyInRendering=!0,(this.width!==Ge||this.height!==Et)&&(this.pickingFBO.resize({width:Ge,height:Et}),this.width=Ge,this.height=Et),G(this.pickingFBO,function(){ne({framebuffer:g.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Ot=g.layer.multiPassRenderer.getRenderFlag();g.layer.multiPassRenderer.setRenderFlag(!1),l.hooks.beforePickingEncode.call(),l.render(),l.hooks.afterPickingEncode.call(),g.layer.multiPassRenderer.setRenderFlag(Ot),g.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(l){this.layer.emit(l.type,l)}},{key:"highlightPickedFeature",value:function(l){var g=(0,qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.layer.hooks.beforeHighlight.call([T,B,G]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(l){var g=(0,qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.layer.hooks.beforeSelect.call([T,B,G]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(l){var g=l.featureId,T=Zi(g);this.selectFeature(new Uint8Array(T))}},{key:"highlightFeatureHandle",value:function(l){var g=l.featureId,T=Zi(g);this.highlightPickedFeature(new Uint8Array(T))}}]),u}(tg))||O_),vx,yx,ew,tw,nw,u3=Fa.camelCase,ET=Fa.isNil,SS=Fa.upperFirst,TT=`attribute vec2 a_Position; +`);return c}}]),o}())||_n);function Rg(o,d){for(;!Object.prototype.hasOwnProperty.call(o,d)&&(o=(0,_t.Z)(o),o!==null););return o}function lf(){return typeof Reflect!="undefined"&&Reflect.get?lf=Reflect.get.bind():lf=function(d,l,c){var u=Rg(d,l);if(u){var m=Object.getOwnPropertyDescriptor(u,l);return m.get?m.get.call(arguments.length<3?d:c):m.value}},lf.apply(this,arguments)}var Rd=function(o){return o.Normal="normal",o.PostProcessing="post-processing",o}({}),ug,Ap,$m=(ug=(0,os.b2)(),ug(Ap=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"shaderModuleService",void 0),(0,Ln.Z)(this,"rendererService",void 0),(0,Ln.Z)(this,"cameraService",void 0),(0,Ln.Z)(this,"mapService",void 0),(0,Ln.Z)(this,"interactionService",void 0),(0,Ln.Z)(this,"layerService",void 0),(0,Ln.Z)(this,"config",void 0)}return(0,ot.Z)(o,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Rd.Normal}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Ms.IRendererService),this.cameraService=l.getContainer().get(Ms.ICameraService),this.mapService=l.getContainer().get(Ms.IMapService),this.interactionService=l.getContainer().get(Ms.IInteractionService),this.layerService=l.getContainer().get(Ms.ILayerService),this.shaderModuleService=l.getContainer().get(Ms.IShaderModuleService)}},{key:"render",value:function(l){}}]),o}())||Ap),Xm,$g;function wv(o){var d=Fv();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Fv(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var e0=(Xm=(0,os.b2)(),Xm($g=function(o){(0,ut.Z)(l,o);var d=wv(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(u,m){lf((0,_t.Z)(l.prototype),"init",this).call(this,u,m)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),l}($m))||$g),v0,Ym,V0,By,ry;function pw(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=Jb(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function Jb(o,d){if(o){if(typeof o=="string")return Ig(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Ig(o,d)}}function Ig(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lti||aa<0||Ua>ho||Ua<0)){var pl;An(c.pickingFBO,function(){var ru;if(pl=Cn({x:Math.round(aa),y:Math.round(ho-(ne+1)*_i),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),pl[0]!==0||pl[1]!==0||pl[2]!==0){var Iu=qi(pl),Vu=c.layer.getSource().getFeatureById(Iu),th={x:Z,y:ne,type:Fe,lngLat:Ce,featureId:Iu,feature:Vu};Vu&&(c.layer.setCurrentPickId(Iu),c.triggerHoverOnLayer(th))}else{var yh={x:Z,y:ne,lngLat:Ce,type:c.layer.getCurrentPickId()===null?"un"+Fe:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,Oe.Z)((0,Oe.Z)({},yh),{},{type:"unpick"})),c.triggerHoverOnLayer(yh),c.layer.setCurrentPickId(null)}Ds&&c.highlightPickedFeature(pl),ta&&Fe==="click"&&((ru=pl)===null||ru===void 0?void 0:ru.toString())!==[0,0,0,0].toString()&&c.selectFeature(pl)})}}}),c}return(0,ot.Z)(l,[{key:"getType",value:function(){return Rd.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(u,m){lf((0,_t.Z)(l.prototype),"init",this).call(this,u,m),this.layer=u;var E=this.rendererService,M=E.createTexture2D,Z=E.createFramebuffer,ne=E.getViewportSize,Ce=ne(),Fe=Ce.width,bt=Ce.height;this.pickingFBO=Z({color:M({width:Fe,height:bt,wrapS:Di.CLAMP_TO_EDGE,wrapT:Di.CLAMP_TO_EDGE})}),this.interactionService.on(Xp.Hover,this.pickFromPickingFBO),this.interactionService.on(Xp.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Xp.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(u){var m=this;if(!this.alreadyInRendering){var E=this.rendererService,M=E.getViewportSize,Z=E.useFramebuffer,ne=E.clear,Ce=M(),Fe=Ce.width,bt=Ce.height;this.alreadyInRendering=!0,(this.width!==Fe||this.height!==bt)&&(this.pickingFBO.resize({width:Fe,height:bt}),this.width=Fe,this.height=bt),Z(this.pickingFBO,function(){ne({framebuffer:m.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Bt=m.layer.multiPassRenderer.getRenderFlag();m.layer.multiPassRenderer.setRenderFlag(!1),u.hooks.beforePickingEncode.call(),u.render(),u.hooks.afterPickingEncode.call(),m.layer.multiPassRenderer.setRenderFlag(Bt),m.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(u){this.layer.emit(u.type,u)}},{key:"highlightPickedFeature",value:function(u){var m=(0,mi.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.layer.hooks.beforeHighlight.call([E,M,Z]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(u){var m=(0,mi.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.layer.hooks.beforeSelect.call([E,M,Z]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(u){var m=u.featureId,E=Vr(m);this.selectFeature(new Uint8Array(E))}},{key:"highlightFeatureHandle",value:function(u){var m=u.featureId,E=Vr(m);this.highlightPickedFeature(new Uint8Array(E))}}]),l}($m))||x2),uC,r3,KE,cC,XE,YE=Ns.camelCase,XI=Ns.isNil,YI=Ns.upperFirst,qI=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,O1=(vx=(0,As.b2)(),yx=(0,As.f3)(vr.IShaderModuleService),vx(ew=(tw=function(){function a(){(0,bt.Z)(this,a),Fd(this,"shaderModuleService",nw,this),(0,Cn.Z)(this,"rendererService",void 0),(0,Cn.Z)(this,"config",void 0),(0,Cn.Z)(this,"quad",TT),(0,Cn.Z)(this,"enabled",!0),(0,Cn.Z)(this,"renderToScreen",!1),(0,Cn.Z)(this,"model",void 0),(0,Cn.Z)(this,"name",void 0),(0,Cn.Z)(this,"optionsToUpdate",{})}return(0,He.Z)(a,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(u){this.name=u}},{key:"getType",value:function(){return Rf.PostProcessing}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(vr.IRendererService),this.shaderModuleService=u.getContainer().get(vr.IShaderModuleService);var l=this.rendererService,g=l.createAttribute,T=l.createBuffer,B=l.createModel,G=this.setupShaders(),ne=G.vs,Me=G.fs,Ge=G.uniforms;this.model=B({vs:ne,fs:Me,attributes:{a_Position:g({buffer:T({data:[-4,-4,4,-4,0,4],type:qi.FLOAT}),size:2})},uniforms:(0,we.Z)((0,we.Z)({u_Texture:null},Ge),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(u,c){var l=this,g=u.multiPassRenderer.getPostProcessor(),T=this.rendererService,B=T.useFramebuffer,G=T.getViewportSize,ne=T.clear,Me=G(),Ge=Me.width,Et=Me.height;B(this.renderToScreen?null:g.getWriteFBO(),function(){ne({framebuffer:g.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Ot=(0,we.Z)({u_BloomFinal:0,u_Texture:g.getReadFBO(),u_ViewportSize:[Ge,Et]},l.convertOptionsToUniforms(l.optionsToUpdate));c&&(Ot.u_BloomFinal=1,Ot.u_Texture2=c),l.model.draw({uniforms:Ot})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(u){this.enabled=u}},{key:"setRenderToScreen",value:function(u){this.renderToScreen=u}},{key:"updateOptions",value:function(u){this.optionsToUpdate=(0,we.Z)((0,we.Z)({},this.optionsToUpdate),u)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(u){var c={};return Object.keys(u).forEach(function(l){ET(u[l])||(c["u_".concat(SS(u3(l)))]=u[l])}),c}}]),a}(),nw=$h(tw.prototype,"shaderModuleService",[yx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tw))||ew),DT,AT;function c3(a){var p=d3();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function d3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var IT=`varying vec2 v_UV; +}`,Cb=(uC=(0,os.b2)(),r3=(0,os.f3)(Ms.IShaderModuleService),uC(KE=(cC=function(){function o(){(0,xt.Z)(this,o),Fc(this,"shaderModuleService",XE,this),(0,Ln.Z)(this,"rendererService",void 0),(0,Ln.Z)(this,"config",void 0),(0,Ln.Z)(this,"quad",qI),(0,Ln.Z)(this,"enabled",!0),(0,Ln.Z)(this,"renderToScreen",!1),(0,Ln.Z)(this,"model",void 0),(0,Ln.Z)(this,"name",void 0),(0,Ln.Z)(this,"optionsToUpdate",{})}return(0,ot.Z)(o,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(l){this.name=l}},{key:"getType",value:function(){return Rd.PostProcessing}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(Ms.IRendererService),this.shaderModuleService=l.getContainer().get(Ms.IShaderModuleService);var u=this.rendererService,m=u.createAttribute,E=u.createBuffer,M=u.createModel,Z=this.setupShaders(),ne=Z.vs,Ce=Z.fs,Fe=Z.uniforms;this.model=M({vs:ne,fs:Ce,attributes:{a_Position:m({buffer:E({data:[-4,-4,4,-4,0,4],type:Di.FLOAT}),size:2})},uniforms:(0,Oe.Z)((0,Oe.Z)({u_Texture:null},Fe),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(l,c){var u=this,m=l.multiPassRenderer.getPostProcessor(),E=this.rendererService,M=E.useFramebuffer,Z=E.getViewportSize,ne=E.clear,Ce=Z(),Fe=Ce.width,bt=Ce.height;M(this.renderToScreen?null:m.getWriteFBO(),function(){ne({framebuffer:m.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Bt=(0,Oe.Z)({u_BloomFinal:0,u_Texture:m.getReadFBO(),u_ViewportSize:[Fe,bt]},u.convertOptionsToUniforms(u.optionsToUpdate));c&&(Bt.u_BloomFinal=1,Bt.u_Texture2=c),u.model.draw({uniforms:Bt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(l){this.enabled=l}},{key:"setRenderToScreen",value:function(l){this.renderToScreen=l}},{key:"updateOptions",value:function(l){this.optionsToUpdate=(0,Oe.Z)((0,Oe.Z)({},this.optionsToUpdate),l)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(l){var c={};return Object.keys(l).forEach(function(u){XI(l[u])||(c["u_".concat(YI(YE(u)))]=l[u])}),c}}]),o}(),XE=kh(cC.prototype,"shaderModuleService",[r3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cC))||KE),qE,i3;function JE(o){var d=QE();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function QE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var JI=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -873,14 +881,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,h3=`attribute vec2 a_Position; +}`,eT=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,rw=Fa.isNil,ES=(DT=(0,As.b2)(),DT(AT=function(a){(0,ft.Z)(u,a);var p=c3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:h3,fs:IT});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return rw(l.bloomRadius)||(g.u_radius=l.bloomRadius),rw(l.bloomIntensity)||(g.u_intensity=l.bloomIntensity),rw(l.bloomBaseRadio)||(g.u_baseRadio=l.bloomBaseRadio),g}}]),u}(O1))||AT),LT,t2;function PT(a){var p=kT();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function kT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var R_=`varying vec2 v_UV; +}`,CS=Ns.isNil,o3=(qE=(0,os.b2)(),qE(i3=function(o){(0,ut.Z)(l,o);var d=JE(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:eT,fs:JI});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return CS(u.bloomRadius)||(m.u_radius=u.bloomRadius),CS(u.bloomIntensity)||(m.u_intensity=u.bloomIntensity),CS(u.bloomBaseRadio)||(m.u_baseRadio=u.bloomBaseRadio),m}}]),l}(Cb))||i3),j_,hC;function ex(o){var d=tT();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function tT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var SS=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -902,14 +910,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,n2=`attribute vec2 a_Position; +}`,s3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,sb=Fa.isNil,TS=(LT=(0,As.b2)(),LT(t2=function(a){(0,ft.Z)(u,a);var p=PT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:n2,fs:R_});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return sb(l.blurRadius)||(g.u_BlurDir=[l.blurRadius,0]),g}}]),u}(O1))||t2),iw,DS;function AS(a){var p=qy();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function qy(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var kb=`varying vec2 v_UV; +}`,nT=Ns.isNil,zy=(j_=(0,os.b2)(),j_(hC=function(o){(0,ut.Z)(l,o);var d=ex(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:s3,fs:SS});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return nT(u.blurRadius)||(m.u_BlurDir=[u.blurRadius,0]),m}}]),l}(Cb))||hC),tx,mw;function QI(o){var d=ES();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function ES(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var a3=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -931,14 +939,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,ow=`attribute vec2 a_Position; +}`,wy=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,f3=Fa.isNil,r2=(iw=(0,As.b2)(),iw(DS=function(a){(0,ft.Z)(u,a);var p=AS(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:ow,fs:kb});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return f3(l.blurRadius)||(g.u_BlurDir=[0,l.blurRadius]),g}}]),u}(O1))||DS),IS,wy;function MT(a){var p=Mb();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Mb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var p3=`varying vec2 v_UV; +}`,l3=Ns.isNil,Nx=(tx=(0,os.b2)(),tx(mw=function(o){(0,ut.Z)(l,o);var d=QI(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:wy,fs:a3});var u=this.shaderModuleService.getModule("blur-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}},{key:"convertOptionsToUniforms",value:function(u){var m={};return l3(u.blurRadius)||(m.u_BlurDir=[0,u.blurRadius]),m}}]),l}(Cb))||mw),u3,t_;function rT(o){var d=vw();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function vw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var c3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -981,27 +989,27 @@ vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,R1=`attribute vec2 a_Position; +}`,h3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,LS=(IS=(0,As.b2)(),IS(wy=function(a){(0,ft.Z)(u,a);var p=MT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:R1,fs:p3});var l=this.shaderModuleService.getModule("colorhalftone-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}}]),u}(O1))||wy),_x,PS;function OT(a){var p=kS();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function kS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var OS=`varying vec2 v_UV; +}`,iT=(u3=(0,os.b2)(),u3(t_=function(o){(0,ut.Z)(l,o);var d=rT(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:h3,fs:c3});var u=this.shaderModuleService.getModule("colorhalftone-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(Cb))||t_),TS,d3;function dC(o){var d=oT();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function oT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var f3=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,g3=`attribute vec2 a_Position; +}`,e4=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,sw=(_x=(0,As.b2)(),_x(PS=function(a){(0,ft.Z)(u,a);var p=OT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:g3,fs:OS}),this.shaderModuleService.getModule("copy-pass")}}]),u}(O1))||PS),i2,RS;function m3(a){var p=v3();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function v3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var y3=`varying vec2 v_UV; +}`,t4=(TS=(0,os.b2)(),TS(d3=function(o){(0,ut.Z)(l,o);var d=dC(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:e4,fs:f3}),this.shaderModuleService.getModule("copy-pass")}}]),l}(Cb))||d3),p3,g3;function n4(o){var d=fC();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function fC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var yw=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1044,14 +1052,14 @@ vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoor void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,_3=`attribute vec2 a_Position; +}`,r4=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,b3=(i2=(0,As.b2)(),i2(RS=function(a){(0,ft.Z)(u,a);var p=m3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:_3,fs:y3});var l=this.shaderModuleService.getModule("hexagonalpixelate-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}}]),u}(O1))||RS),iC,bx;function x3(a){var p=xx();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function xx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Sy=`varying vec2 v_UV; +}`,w2=(p3=(0,os.b2)(),p3(g3=function(o){(0,ut.Z)(l,o);var d=n4(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:r4,fs:yw});var u=this.shaderModuleService.getModule("hexagonalpixelate-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(Cb))||g3),j1,C2;function m3(o){var d=Sb();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Sb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var S2=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1084,14 +1092,14 @@ vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,oC=`attribute vec2 a_Position; +}`,sT=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,RT=(iC=(0,As.b2)(),iC(bx=function(a){(0,ft.Z)(u,a);var p=x3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:oC,fs:Sy});var l=this.shaderModuleService.getModule("ink-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),ne=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,we.Z)((0,we.Z)({},B),{},{u_ViewportSize:[ne,Me]})}}}]),u}(O1))||bx),r_,Ob;function NS(a){var p=aw();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function aw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Xi=`varying vec2 v_UV; +}`,pC=(j1=(0,os.b2)(),j1(C2=function(o){(0,ut.Z)(l,o);var d=m3(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:sT,fs:S2});var u=this.shaderModuleService.getModule("ink-pass"),m=u.vs,E=u.fs,M=u.uniforms,Z=this.rendererService.getViewportSize(),ne=Z.width,Ce=Z.height;return{vs:m,fs:E,uniforms:(0,Oe.Z)((0,Oe.Z)({},M),{},{u_ViewportSize:[ne,Ce]})}}}]),l}(Cb))||C2),go,sd;function v3(o){var d=i4();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function i4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Fx=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1112,21 +1120,21 @@ vec4 noise_filterColor(vec4 color, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,Ad=`attribute vec2 a_Position; +}`,_w=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,NT=(r_=(0,As.b2)(),r_(Ob=function(a){(0,ft.Z)(u,a);var p=NS(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:Ad,fs:Xi}),this.shaderModuleService.getModule("noise-pass")}}]),u}(O1))||Ob),FT,ab;function sC(a){var p=Sh();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Sh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var C3=`attribute vec2 a_Position; +}`,Qd=(go=(0,os.b2)(),go(sd=function(o){(0,ut.Z)(l,o);var d=v3(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:_w,fs:Fx}),this.shaderModuleService.getModule("noise-pass")}}]),l}(Cb))||sd),y3,bw;function o4(o){var d=s4();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function s4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var nx=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,lw=`varying vec2 v_UV; +}`,a4=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1147,7 +1155,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,w3=(FT=(0,As.b2)(),FT(ab=function(a){(0,ft.Z)(u,a);var p=sC(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:C3,fs:lw}),this.shaderModuleService.getModule("sepia-pass")}}]),u}(O1))||ab),BT,N_,zT,FS,Cx,o2,F_=(BT=(0,As.b2)(),N_=(0,As.f3)(vr.IRendererService),zT=(0,As.zY)(),BT(FS=(Cx=function(){function a(){(0,bt.Z)(this,a),Fd(this,"rendererService",o2,this),(0,Cn.Z)(this,"passes",[]),(0,Cn.Z)(this,"readFBO",void 0),(0,Cn.Z)(this,"writeFBO",void 0)}return(0,He.Z)(a,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var u=this.rendererService,c=u.getViewportSize,l=u.createTexture2D,g=c(),T=g.width,B=g.height;return l({x:0,y:0,width:T,height:B,copy:!0})}},{key:"getReadFBOTex",value:function(){var u=this,c=this.rendererService.useFramebuffer;return new Promise(function(l){c(u.readFBO,(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:l(u.getCurrentFBOTex());case 1:case"end":return B.stop()}},g)})))})}},{key:"renderBloomPass",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g){var T,B;return ro().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,this.getReadFBOTex();case 2:T=ne.sent,B=0;case 4:if(!(B<4)){ne.next=11;break}return ne.next=7,g.render(l,T);case 7:this.swap(),B++,ne.next=4;break;case 11:case"end":return ne.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){var p=(0,Na.Z)(ro().mark(function c(l){var g,T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:g=0;case 1:if(!(g0;)u=u+c*(l%p),l=Math.floor(l/p),c=c/p;return u}var Ym=1,l2=(aC=(0,As.b2)(),BS=(0,As.f3)(vr.IShaderModuleService),aC(uw=(a2=function(a){(0,ft.Z)(u,a);var p=$T(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=1&&(ne(this.copyRenderTarget,function(){g.outputModel.draw({uniforms:{u_Texture:g.outputRenderTarget}})}),ne(l.multiPassRenderer.getPostProcessor().getReadFBO(),function(){g.copyModel.draw({uniforms:{u_Texture:g.copyRenderTarget}})}),l.multiPassRenderer.getPostProcessor().render(l));var Ko=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=Ko,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,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(l,g,T){this.shaderModuleService.registerModule(l,{vs:cw,fs:g});var B=this.shaderModuleService.getModule(l),G=B.vs,ne=B.fs,Me=B.uniforms,Ge=this.rendererService,Et=Ge.createAttribute,Ot=Ge.createBuffer,Pn=Ge.createModel;return Pn((0,we.Z)({vs:G,fs:ne,attributes:{a_Position:Et({buffer:Ot({data:[-4,-4,4,-4,0,4],type:qi.FLOAT}),size:2})},uniforms:(0,we.Z)({},Me),depth:{enable:!1},count:3},T))}}]),u}(tg),zS=$h(a2.prototype,"shaderModuleService",[BS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a2))||uw),lC=new As.W2;lC.bind(vr.IGlobalConfigService).to(Rg).inSingletonScope(),(0,As.GW)((0,As.b2)(),yf.EventEmitter),lC.bind(vr.IEventEmitter).to(yf.EventEmitter);var u2=(0,Xa.Z)(lC,!1),dw=function(p){var u=u2.lazyInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},WS=function(p){var u=u2.lazyMultiInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},_v=lC,WT=0;function qm(){var a=new As.W2;return a.parent=lC,a.bind(vr.SceneID).toConstantValue("".concat(WT++)),a.bind(vr.IShaderModuleService).to(Ru).inSingletonScope(),a.bind(vr.ILayerService).to(Db).inSingletonScope(),a.bind(vr.IDebugService).to(dm).inSingletonScope(),a.bind(vr.ISceneService).to(K).inSingletonScope(),a.bind(vr.ICameraService).to(Gr).inSingletonScope(),a.bind(vr.ICoordinateSystemService).to(Xm).inSingletonScope(),a.bind(vr.IInteractionService).to(yy).inSingletonScope(),a.bind(vr.IPickingService).to($v).inSingletonScope(),a.bind(vr.IControlService).to(Xc).inSingletonScope(),a.bind(vr.IMarkerService).to(ih).inSingletonScope(),a.bind(vr.IIconService).to(Lt).inSingletonScope(),a.bind(vr.IFontService).to(Eg).inSingletonScope(),a.bind(vr.IPopupService).to(yg).inSingletonScope(),a.bind(vr.INormalPass).to(bm).whenTargetNamed("clear"),a.bind(vr.INormalPass).to(ob).whenTargetNamed("pixelPicking"),a.bind(vr.INormalPass).to(s2).whenTargetNamed("render"),a.bind(vr.INormalPass).to(l2).whenTargetNamed("taa"),a.bind(vr.IFactoryNormalPass).toFactory(function(p){return function(u){return p.container.getNamed(vr.INormalPass,u)}}),a.bind(vr.IPostProcessingPass).to(sw).whenTargetNamed("copy"),a.bind(vr.IPostProcessingPass).to(ES).whenTargetNamed("bloom"),a.bind(vr.IPostProcessingPass).to(TS).whenTargetNamed("blurH"),a.bind(vr.IPostProcessingPass).to(r2).whenTargetNamed("blurV"),a.bind(vr.IPostProcessingPass).to(NT).whenTargetNamed("noise"),a.bind(vr.IPostProcessingPass).to(w3).whenTargetNamed("sepia"),a.bind(vr.IPostProcessingPass).to(LS).whenTargetNamed("colorHalftone"),a.bind(vr.IPostProcessingPass).to(b3).whenTargetNamed("hexagonalPixelate"),a.bind(vr.IPostProcessingPass).to(RT).whenTargetNamed("ink"),a.bind(vr.IFactoryPostProcessingPass).toFactory(function(p){return function(u){var c=p.container.getNamed(vr.IPostProcessingPass,u);return c.setName(u),c}}),a}function Rb(a){var p=new As.W2;return p.parent=a,p.bind(vr.IStyleAttributeService).to(yS).inSingletonScope(),p.bind(vr.IMultiPassRenderer).to(Fy).inSingletonScope(),p.bind(vr.IPostProcessor).to(F_).inSingletonScope(),p}var jT=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function Sx(a){return jT.indexOf(a)}var i_=Fa.clamp,jS=2,ub=4,c2=64,cb=128,VS=256,US=512,HS=8192,hw=16384,c0=32768,zm=null,Bg=131072,Zv=262144,d2=524288,_1=1048576,Ex=2097152,VT=4194304,F1=8388608,Nb=16777216,UT=null;function fw(a,p){return a=i_(Math.floor(a),0,255),p=i_(Math.floor(p),0,255),256*a+p}function B_(a){var p=a.color,u=a.radius,c=a.tileX,l=a.tileY,g=a.shape,T=a.opacity,B=a.stroke,G=a.strokeWidth,ne=a.strokeOpacity,Me=[],Ge=[],Et=[],Ot=[fw(p[0],p[1]),fw(p[2],p[3])],Pn=[fw(B[0],B[1]),fw(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(Mn){var Ir=(0,qn.Z)(Mn,2),Ti=Ir[0],Ko=Ir[1];Me.push([].concat(Ot,[(Ti+1)*F1+(Ko+1)*Ex+Sx(g)*Bg+u,(c+512)*d2+(l+512)*c2])),Ge.push([].concat(Pn,[G,ne])),Et.push([T,0,0,0])}),{packedBuffer:Me,packedBuffer2:Ge,packedBuffer3:Et}}function h2(a,p){if(a===0&&!p)return 0;if(a===1&&p)return 4294967295;var u=p?1:0,c=Math.floor(a*127);return c*UT+u*Nb+c*Bg+u*zm+c*US+u*VS+c*jS+u}var Fb={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},fm={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},n0=function(a){return a.LINEAR="linear",a.SEQUENTIAL="sequential",a.POWER="power",a.LOG="log",a.IDENTITY="identity",a.TIME="time",a.QUANTILE="quantile",a.QUANTIZE="quantize",a.THRESHOLD="threshold",a.CAT="cat",a.DIVERGING="diverging",a}({}),Bb=function(a){return a.CONSTANT="constant",a.VARIABLE="variable",a}({}),Ld=function(a){return a[a.Attribute=0]="Attribute",a[a.InstancedAttribute=1]="InstancedAttribute",a[a.Uniform=2]="Uniform",a}({}),pw=["mapload","mapchange","mapAfterFrameChange"],gw=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Pv=function(a){return a.IMAGE="image",a.CUSTOMIMAGE="customImage",a.ARRAYBUFFER="arraybuffer",a.RGB="rgb",a.TERRAINRGB="terrainRGB",a.CUSTOMRGB="customRGB",a.CUSTOMARRAYBUFFER="customArrayBuffer",a.CUSTOMTERRAINRGB="customTerrainRGB",a}({}),HT=function(){var a=(0,Na.Z)(ro().mark(function p(u,c,l,g){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",new Promise(function(G,ne){c({x:u.x,y:u.y,z:u.z},function(Me,Ge){if(Me||Ge.length===0){ne(Me);return}Ge&&Aa([{data:Ge,bands:[0]}],l,g,function(Et,Ot){Et?ne(Et):Ot&&G(Ot)})})}));case 1:case"end":return B.stop()}},p)}));return function(u,c,l,g){return a.apply(this,arguments)}}(),f2=function(){var a=(0,Na.Z)(ro().mark(function p(u,c){return ro().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",new Promise(function(T,B){c({x:u.x,y:u.y,z:u.z},function(G,ne){if(G||!ne){B(G);return}ne instanceof ArrayBuffer?sn(ne,function(Me,Ge){Me&&B(Me),T(Ge)}):ne instanceof HTMLImageElement?T(ne):B(G)})}));case 1:case"end":return g.stop()}},p)}));return function(u,c){return a.apply(this,arguments)}}();function ZS(a,p){return Array.isArray(a)?typeof a[0]=="string"?a.map(function(u){return $c(u,p)}):a.map(function(u){return{url:$c(u.url,p),bands:u.bands||[0]}}):$c(a,p)}function Jm(a){return typeof a=="string"?[{url:a,bands:[0]}]:typeof a[0]=="string"?a.map(function(p){return{url:p,bands:[0]}}):a}function ZT(a,p){a.xhrCancel=function(){p.map(function(u){u.abort()})}}var GT=function(){var a=(0,Na.Z)(ro().mark(function p(u,c,l,g,T){var B,G,ne,Me,Ge,Et;return ro().wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(B=Jm(c.url),!(B.length>1)){Pn.next=15;break}return Pn.next=4,GS(B,c);case 4:if(G=Pn.sent,ne=G.rasterFiles,Me=G.xhrList,Ge=G.errList,ZT(u,Me),!(Ge.length>0)){Pn.next=12;break}return l(Ge,null),Pn.abrupt("return");case 12:Aa(ne,g,T,l),Pn.next=17;break;case 15:Et=ji(c,function(Mn,Ir){if(Mn)l(Mn);else if(Ir){var Ti=[{data:Ir,bands:B[0].bands}];Aa(Ti,g,T,l)}}),ZT(u,[Et]);case 17:case"end":return Pn.stop()}},p)}));return function(u,c,l,g,T){return a.apply(this,arguments)}}();function GS(a,p){return zb.apply(this,arguments)}function zb(){return zb=(0,Na.Z)(ro().mark(function a(p,u){var c,l,g,T,B,G,ne,Me,Ge,Et,Ot;return ro().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:c=[],l=[],g=[],T=0;case 4:if(!(T1&&arguments[1]!==void 0?arguments[1]:{};if(uC(a))throw new Error("tile server url is error");var u=(p==null?void 0:p.dataType)||Pv.IMAGE;u===Pv.RGB&&(u=Pv.ARRAYBUFFER);var c=function(T,B){switch(u){case Pv.IMAGE:return b1(a,T,B,p);case Pv.CUSTOMIMAGE:case Pv.CUSTOMTERRAINRGB:return f2(B,p==null?void 0:p.getCustomData);case Pv.ARRAYBUFFER:return KS(a,T,B,(p==null?void 0:p.format)||KT,p==null?void 0:p.operation);case Pv.CUSTOMARRAYBUFFER:case Pv.CUSTOMRGB:return HT(B,p==null?void 0:p.getCustomData,(p==null?void 0:p.format)||KT,p==null?void 0:p.operation);default:return b1(a,T,B,p)}},l=(0,we.Z)((0,we.Z)((0,we.Z)({},By),p),{},{getTileData:c});return{data:a,dataArray:[],tilesetOptions:l,isTile:!0}}var XT=["extent","min","max","width","height","format","operation"];function p2(a,p){var u=p.extent,c=p.min,l=p.max,g=p.width,T=p.height,B=p.format,G=p.operation,ne=(0,Vg.Z)(p,XT),Me;if(B===void 0||Yr(a))Me=Array.from(a);else{var Ge=Array.isArray(a)?a:[a];Me=li(Ge,B,G)}var Et={_id:1,dataArray:[(0,we.Z)((0,we.Z)({_id:1,data:Me,width:g,height:T},ne),{},{min:c,max:l,coordinates:[[u[0],u[1]],[u[2],u[3]]]})]};return Et}var XS={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},YT=function(){var a=(0,Na.Z)(ro().mark(function p(u){return ro().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(g){var T=(0,qn.Z)(u.bounds,4),B=T[0],G=T[1],ne=T[2],Me=T[3],Ge={layers:{testTile:{features:[{type:"Feature",properties:{key:u.x+"/"+u.y+"/"+u.z,x:(B+ne)/2,y:(G+Me)/2},geometry:{type:"LineString",coordinates:[[ne,Me],[ne,G],[B,G],[B,G]]}}]}}};g(Ge)}));case 1:case"end":return l.stop()}},p)}));return function(u){return a.apply(this,arguments)}}();function qT(a,p){var u=function(g){return YT(g)},c=(0,we.Z)((0,we.Z)((0,we.Z)({},XS),p),{},{getTileData:u});return{data:a,dataArray:[],tilesetOptions:c,isTile:!0}}var JT=m(69848),o_=m.n(JT);function g2(a,p){var u=p.radius,c=u===void 0?40:u,l=p.maxZoom,g=l===void 0?18:l,T=p.minZoom,B=T===void 0?0:T,G=p.zoom,ne=G===void 0?2:G;if(a.pointIndex){var Me=a.pointIndex.getClusters(a.extent,Math.floor(ne));return a.dataArray=Ag(Me),a}var Ge=new(o_())({radius:c,minZoom:B,maxZoom:g}),Et={type:"FeatureCollection",features:[]};return Et.features=a.dataArray.map(function(Ot){return{type:"Feature",geometry:{type:"Point",coordinates:Ot.coordinates},properties:(0,we.Z)({},Ot)}}),Ge.load(Et.features),Ge}function Ag(a){return a.map(function(p,u){return(0,we.Z)({coordinates:p.geometry.coordinates,_id:u+1},p.properties)})}function m2(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p}function kv(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;u=Math.abs(a[l])?u+=p-c+a[l]:u+=a[l]-c+p,p=c;return p+u*1}function v2(a){if(a.length===0)throw new Error("mean requires at least one data point");return db(a)/a.length}var YS={min:kv,max:m2,mean:v2,sum:db};function qS(a){var p=y2();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function y2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var JS=Fa.cloneDeep,t1=Fa.isFunction,mw=Fa.isString,vw=Fa.mergeWith;function QT(a,p){if(Array.isArray(p))return p}var _2=function(a){(0,ft.Z)(u,a);var p=qS(u);function u(c,l){var g;return(0,bt.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,ps.Z)(g),"type","source"),(0,Cn.Z)((0,ps.Z)(g),"isTile",!1),(0,Cn.Z)((0,ps.Z)(g),"inited",!1),(0,Cn.Z)((0,ps.Z)(g),"hooks",{init:new ay}),(0,Cn.Z)((0,ps.Z)(g),"parser",{type:"geojson"}),(0,Cn.Z)((0,ps.Z)(g),"transforms",[]),(0,Cn.Z)((0,ps.Z)(g),"cluster",!1),(0,Cn.Z)((0,ps.Z)(g),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Cn.Z)((0,ps.Z)(g),"invalidExtent",!1),(0,Cn.Z)((0,ps.Z)(g),"dataArrayChanged",!1),(0,Cn.Z)((0,ps.Z)(g),"cfg",{autoRender:!0}),g.originData=c,g.initCfg(l),g.init().then(function(){g.inited=!0,g.emit("update",{type:"inited"})}),g}return(0,He.Z)(u,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(l){return this.clusterIndex.getClusters(this.caculClusterExtent(2),l)}},{key:"getClustersLeaves",value:function(l){return this.clusterIndex.getLeaves(l,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(l){var g=this,T=this.clusterOptions,B=T.method,G=B===void 0?"sum":B,ne=T.field,Me=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(l));this.clusterOptions.zoom=l,Me.forEach(function(Ge){Ge.id||(Ge.properties.point_count=1)}),(ne||t1(G))&&(Me=Me.map(function(Ge){var Et=Ge.id;if(Et){var Ot=g.clusterIndex.getLeaves(Et,1/0),Pn=Ot.map(function(Ti){return Ti.properties}),Mn;if(mw(G)&&ne){var Ir=yi(Pn,ne);Mn=YS[G](Ir)}t1(G)&&(Mn=G(Pn)),Ge.properties.stat=Mn}else Ge.properties.point_count=1;return Ge})),this.data=w("geojson")({type:"FeatureCollection",features:Me}),this.executeTrans()}},{key:"getFeatureById",value:function(l){var g=this.parser,T=g.type,B=T===void 0?"geojson":T,G=g.geometry;if(B==="geojson"&&!this.cluster){var ne=l=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function x2(a,p){if(a){if(typeof a=="string")return eD(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return eD(a,p)}}function eD(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc?l:c)}}catch(Zo){g.e(Zo)}finally{g.f()}var G=(u+c)/2,ne=tD(p,G);if(ne.xOffset<=0||ne.yOffset<=0)return{gridHash:{},gridOffset:ne};var Me={},Ge=Tx(a),Et;try{for(Ge.s();!(Et=Ge.n()).done;){var Ot=Et.value,Pn=Ot.coordinates[1],Mn=Ot.coordinates[0];if(Number.isFinite(Pn)&&Number.isFinite(Mn)){var Ir=Math.floor((Pn+90)/ne.yOffset),Ti=Math.floor((Mn+180)/ne.xOffset),Ko="".concat(Ir,"-").concat(Ti);Me[Ko]=Me[Ko]||{count:0,points:[]},Me[Ko].count+=1,Me[Ko].points.push(Ot)}}}catch(Zo){Ge.e(Zo)}finally{Ge.f()}return{gridHash:Me,gridOffset:ne}}function tD(a,p){var u=eE(a),c=Ax(p,a);return{yOffset:u,xOffset:c}}function eE(a){return a/C2*(180/Math.PI)}function Ax(a,p){return p/C2*(180/Math.PI)/Math.cos(a*Math.PI/180)}function zy(a,p,u){return Object.keys(a).reduce(function(c,l,g){var T=l.split("-"),B=parseInt(T[0],10),G=parseInt(T[1],10),ne={};if(u.field&&u.method){var Me=cf(a[l].points,u.field);ne[u.method]=Kh[u.method](Me)}return Object.assign(ne,{_id:g,coordinates:Mu([-180+p.xOffset*(G+.5),-90+p.yOffset*(B+.5)]),rawData:a[l].points,count:a[l].count}),c.push(ne),c},[])}var Ix=Math.PI/3,S3=[0,Ix,2*Ix,3*Ix,4*Ix,5*Ix];function cC(a){return a[0]}function nD(a){return a[1]}function tE(){var a=0,p=0,u=1,c=1,l=cC,g=nD,T,B,G;function ne(Ge){var Et={},Ot=[],Pn,Mn=Ge.length;for(Pn=0;Pn1){var Ma=Ti-Qs,ll=Qs+(Tijl*jl+ju*ju&&(Qs=ll+(Zo&1?1:-1)/2,Zo=Wl)}var Pu=Qs+"-"+Zo,Vc=Et[Pu];Vc?Vc.push(Ir):(Ot.push(Vc=Et[Pu]=[Ir]),Vc.x=(Qs+(Zo&1)/2)*B,Vc.y=Zo*G)}return Ot}function Me(Ge){var Et=0,Ot=0;return S3.map(function(Pn){var Mn=Math.sin(Pn)*Ge,Ir=-Math.cos(Pn)*Ge,Ti=Mn-Et,Ko=Ir-Ot;return Et=Mn,Ot=Ir,[Ti,Ko]})}return ne.hexagon=function(Ge){return"m"+Me(Ge==null?T:+Ge).join("l")+"z"},ne.centers=function(){for(var Ge=[],Et=Math.round(p/G),Ot=Math.round(a/B),Pn=Et*G;Pn180||Math.abs(Pn[1][0])>180){if(Me.x>Ot){var Mn=this.mapsService.lngLatToContainer([G-360,ne]);Me.x=Mn.x}if(Me.x<0){var Ir=this.mapsService.lngLatToContainer([G+360,ne]);Me.x=Ir.x}}(Me.x>Ot||Me.x<0||Me.y>Et||Me.y<0)&&(g.style.display="none"),g.style.left=Me.x+T[0]+"px",g.style.top=Me.y-T[1]+"px"}}}},{key:"init",value:function(){var l=this,g=this.markerOption.element,T=this.markerOption,B=T.color,G=T.anchor;if(!g){this.defaultMarker=!0,g=to("div"),this.markerOption.element=g;var ne=document.createElementNS("http://www.w3.org/2000/svg","svg");ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height","48px"),ne.setAttributeNS(null,"width","48px"),ne.setAttributeNS(null,"viewBox","0 0 1024 1024");var Me=document.createElementNS("http://www.w3.org/2000/svg","path");Me.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"),Me.setAttributeNS(null,"fill",B),ne.appendChild(Me),g.appendChild(ne)}Cs(g,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Ge){var Et,Ot,Pn=((Et=l.markerOption)===null||Et===void 0?void 0:Et.style)&&((Ot=l.markerOption)===null||Ot===void 0?void 0:Ot.style[Ge]);g&&(g.style[Ge]=Pn)}),xt(g,G,"marker")}},{key:"registerMarkerEvent",value:function(l){l.addEventListener("click",this.onMapClick),l.addEventListener("mousemove",this.eventHandle),l.addEventListener("click",this.eventHandle),l.addEventListener("mousedown",this.eventHandle),l.addEventListener("mouseup",this.eventHandle),l.addEventListener("dblclick",this.eventHandle),l.addEventListener("contextmenu",this.eventHandle),l.addEventListener("mouseover",this.eventHandle),l.addEventListener("mouseout",this.eventHandle),l.addEventListener("touchstart",this.eventHandle),l.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var l=this.getElement();l.removeEventListener("click",this.onMapClick),l.removeEventListener("mousemove",this.eventHandle),l.removeEventListener("click",this.eventHandle),l.removeEventListener("mousedown",this.eventHandle),l.removeEventListener("mouseup",this.eventHandle),l.removeEventListener("dblclick",this.eventHandle),l.removeEventListener("contextmenu",this.eventHandle),l.removeEventListener("mouseover",this.eventHandle),l.removeEventListener("mouseout",this.eventHandle),l.removeEventListener("touchstart",this.eventHandle),l.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(l){!this.mapsService||this.mapsService.version!=="GAODE2.x"||au()||(l.type==="touchstart"&&(this.touchStartTime=Date.now()),l.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:l,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(l){return null}},{key:"onUp",value:function(l){throw new Error("Method not implemented.")}}]),u}(yf.EventEmitter);function E2(a){var p=iE();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function iE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var iD=Fa.merge,dC=function(a){(0,ft.Z)(u,a);var p=E2(u);function u(c){var l,g;return(0,bt.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,ps.Z)(g),"markers",[]),(0,Cn.Z)((0,ps.Z)(g),"points",[]),(0,Cn.Z)((0,ps.Z)(g),"clusterMarkers",[]),g.markerLayerOption=iD(g.getDefault(),c),Eu(["update"],(0,ps.Z)(g)),g.zoom=((l=g.markerLayerOption.clusterOption)===null||l===void 0?void 0:l.zoom)||-99,g}return(0,He.Z)(u,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(l){return this.scene=l,this.mapsService=l.get(vr.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.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var l=this.mapsService.getContainer();this.containerSize={containerWidth:(l==null?void 0:l.scrollWidth)||0,containerHeight:(l==null?void 0:l.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(l){var g=this.markerLayerOption.cluster;if(l.getMarkerLayerContainerSize=this.getContainerSize.bind(this),g&&(this.addPoint(l,this.markers.length),this.mapsService)){var T=this.mapsService.getZoom(),B=this.mapsService.getBounds();this.bbox=jd(B,.5),this.zoom=Math.floor(T),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(l)}},{key:"removeMarker",value:function(l){this.markers.indexOf(l);var g=this.markers.indexOf(l);g>-1&&this.markers.splice(g,1)}},{key:"hide",value:function(){this.markers.map(function(l){l.getElement().style.opacity="0"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(l){l.getElement().style.opacity="1"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var l=this.markerLayerOption.cluster;return l?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var l=this;this.getMarkers().forEach(function(g){g.addTo(l.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(l){l.remove()}),this.clusterMarkers.forEach(function(l){l.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(l,g){var T=l.getLnglat(),B=T.lng,G=T.lat,ne={geometry:{type:"Point",coordinates:[B,G]},properties:(0,we.Z)((0,we.Z)({},l.getExtData()),{},{marker_id:g})};this.points.push(ne),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var l=this.markerLayerOption.clusterOption,g=l.radius,T=l.minZoom,B=T===void 0?0:T,G=l.maxZoom;this.clusterIndex=new(o_())({radius:g,minZoom:B,maxZoom:G}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(l,g){var T=this,B=l[0].concat(l[1]),G=this.clusterIndex.getClusters(B,g);this.clusterMarkers.forEach(function(ne){ne.remove()}),this.clusterMarkers=[],G.forEach(function(ne){var Me,Ge=T.markerLayerOption.clusterOption,Et=Ge.field,Ot=Ge.method;if((Me=ne.properties)!==null&&Me!==void 0&&Me.cluster_id){var Pn,Mn=T.getLeaves((Pn=ne.properties)===null||Pn===void 0?void 0:Pn.cluster_id);if(ne.properties.clusterData=Mn,Et&&Ot){var Ir=Mn==null?void 0:Mn.map(function(ga){var Ma=(0,Cn.Z)({},Et,ga.properties[Et]);return Ma}),Ti=cf(Ir,Et),Ko=Qc(Ot,Ti),Zo="point_"+Ot;ne.properties[Zo]=Ko.toFixed(2)}}var Qs=T.clusterMarker(ne);T.clusterMarkers.push(Qs),Qs.addTo(T.scene)})}},{key:"getLeaves",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return l?this.clusterIndex.getLeaves(l,g,T):null}},{key:"clusterMarker",value:function(l){var g=this.markerLayerOption.clusterOption,T=g,B=T.element,G=B===void 0?this.generateElement.bind(this):B,ne=new S2({element:G(l)}).setLnglat({lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]});return ne}},{key:"normalMarker",value:function(l){var g=l.properties.marker_id;return this.markers[g]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var l=this.mapsService.getZoom(),g=this.mapsService.getBounds();(!this.bbox||Math.abs(l-this.zoom)>=1||!yh(this.bbox,g))&&(this.bbox=jd(g,.5),this.zoom=Math.floor(l),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(l){var g=to("div","l7-marker-cluster"),T=to("div","",g),B=to("span","",T),G=this.markerLayerOption.clusterOption,ne=G.field,Me=G.method;l.properties.point_count=l.properties.point_count||1;var Ge=ne&&Me?l.properties["point_"+Me]||l.properties[ne]:l.properties.point_count;return B.textContent=Ge,g}}]),u}(yf.EventEmitter),t4=m(4157);function D3(a){var p=A3();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function A3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var v=function(a){(0,ft.Z)(u,a);var p=D3(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this),u.controlCount++,l.controlOption=(0,we.Z)((0,we.Z)({},l.getDefault(c)),c||{}),l}return(0,He.Z)(u,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(l){var g=this.getDefault(l);Object.entries(l).forEach(function(T){var B=(0,qn.Z)(T,2),G=B[0],ne=B[1];ne===void 0&&(l[G]=g[G])}),"position"in l&&this.setPosition(l.position),"className"in l&&this.setClassName(l.className),"style"in l&&this.setStyle(l.style),this.controlOption=(0,we.Z)((0,we.Z)({},this.controlOption),l)}},{key:"addTo",value:function(l){this.mapsService=l.get(vr.IMapService),this.renderService=l.get(vr.IRendererService),this.layerService=l.get(vr.ILayerService),this.controlService=l.get(vr.IControlService),this.configService=l.get(vr.IGlobalConfigService),this.scene=l.get(vr.ISceneService),this.sceneContainer=l,this.isShow=!0,this.container=this.onAdd(),Cs(this.container,"l7-control");var g=this.controlOption,T=g.className,B=g.style;return T&&this.setClassName(T),B&&this.setStyle(B),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;sa(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return to("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var l=this.container;Ka(l,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var l=this.container;Cs(l,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(l){return{position:bo.TOPRIGHT,name:"".concat(u.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(l){if(this.mapsService&&l&&l.screenX>0&&l.screenY>0){var g=this.mapsService.getContainer();g!==null&&g.focus()}}},{key:"setPosition",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bo.TOPLEFT,g=this.controlService;return g&&g.removeControl(this),this.controlOption.position=l,g&&g.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(l){var g=this.container,T=this.controlOption.className;T&&Ka(g,T),l&&Cs(g,l)}},{key:"setStyle",value:function(l){var g=this.container;l?g.setAttribute("style",l):g.removeAttribute("style")}},{key:"insertContainer",value:function(){var l=this.controlOption.position,g=this.container;if(l instanceof Element)l.appendChild(g);else{var T=this.controlService.controlCorners[l];["bottomleft","bottomright","righttop","rightbottom"].includes(l)?T.insertBefore(g,T.firstChild):T.appendChild(g)}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(Qu());(0,Cn.Z)(v,"controlCount",0);function M(a){var p=L();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function L(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Y=function(a){(0,ft.Z)(u,a);var p=M(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:"";return to("button","l7-button-control ".concat(l))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var l=this.controlOption,g=l.title,T=l.btnText,B=l.btnIcon;return this.setBtnTitle(g),this.setBtnText(T),this.setBtnIcon(B),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(l){var g=l.title,T=l.btnText,B=l.btnIcon;this.checkUpdateOption(l,["title"])&&this.setBtnTitle(g),this.checkUpdateOption(l,["btnIcon"])&&this.setBtnIcon(B),this.checkUpdateOption(l,["btnText"])&&this.setBtnText(T),Oa((0,vt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"setBtnTitle",value:function(l){var g;(g=this.button)===null||g===void 0||g.setAttribute("title",l!=null?l:"")}},{key:"setBtnIcon",value:function(l){if(this.buttonIcon&&sa(this.buttonIcon),l){var g,T=(g=this.button)===null||g===void 0?void 0:g.firstChild;if(T){var B;(B=this.button)===null||B===void 0||B.insertBefore(l,T)}else{var G;(G=this.button)===null||G===void 0||G.appendChild(l)}this.buttonIcon=l}}},{key:"setBtnText",value:function(l){if(this.button)if(Ka(this.button,"l7-button-control--row"),Ka(this.button,"l7-button-control--column"),l){var g=this.buttonText;if(!g){var T;g=to("div","l7-button-control__text"),(T=this.button)===null||T===void 0||T.appendChild(g),this.buttonText=g}g.innerText=l,Cs(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!l&&this.buttonText&&(sa(this.buttonText),this.buttonText=void 0)}}]),u}(v);function ee(a){var p=We();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function We(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var qe=function(a){(0,ft.Z)(u,a);var p=ee(u);function u(c,l){var g;return(0,bt.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,ps.Z)(g),"isShow",!1),(0,Cn.Z)((0,ps.Z)(g),"timeout",null),(0,Cn.Z)((0,ps.Z)(g),"show",function(){return g.isShow||!g.contentDOM.innerHTML||(g.resetPopperPosition(),Ka(g.popperDOM,"l7-popper-hide"),g.isShow=!0,g.option.unique&&u.conflictPopperList.forEach(function(T){T!==(0,ps.Z)(g)&&T.isShow&&T.hide()}),g.emit("show"),window.addEventListener("pointerdown",g.onPopperUnClick)),(0,ps.Z)(g)}),(0,Cn.Z)((0,ps.Z)(g),"hide",function(){return g.isShow&&(Cs(g.popperDOM,"l7-popper-hide"),g.isShow=!1,g.emit("hide"),window.removeEventListener("pointerdown",g.onPopperUnClick)),(0,ps.Z)(g)}),(0,Cn.Z)((0,ps.Z)(g),"setHideTimeout",function(){g.timeout||(g.timeout=window.setTimeout(function(){g.isShow&&(g.hide(),g.timeout=null)},300))}),(0,Cn.Z)((0,ps.Z)(g),"clearHideTimeout",function(){g.timeout&&(window.clearTimeout(g.timeout),g.timeout=null)}),(0,Cn.Z)((0,ps.Z)(g),"onBtnClick",function(){g.isShow?g.hide():g.show()}),(0,Cn.Z)((0,ps.Z)(g),"onPopperUnClick",function(T){Za(T.target,[".l7-button-control",".l7-popper-content"])||g.hide()}),(0,Cn.Z)((0,ps.Z)(g),"onBtnMouseLeave",function(){g.setHideTimeout()}),(0,Cn.Z)((0,ps.Z)(g),"onBtnMouseMove",function(){g.clearHideTimeout(),!g.isShow&&g.show()}),g.button=c,g.option=l,g.init(),l.unique&&u.conflictPopperList.push((0,ps.Z)(g)),g}return(0,He.Z)(u,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(l){typeof l=="string"?this.contentDOM.innerHTML=l:l instanceof HTMLElement&&(hl(this.contentDOM),this.contentDOM.appendChild(l)),this.content=l}},{key:"init",value:function(){var l=this.option.trigger;this.popperDOM=this.createPopper(),l==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),sa(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var l={},g=this.option,T=g.container,B=g.offset,G=B===void 0?[0,0]:B,ne=g.placement,Me=(0,qn.Z)(G,2),Ge=Me[0],Et=Me[1],Ot=this.button.getBoundingClientRect(),Pn=T.getBoundingClientRect(),Mn=pa(Ot,Pn),Ir=Mn.left,Ti=Mn.right,Ko=Mn.top,Zo=Mn.bottom,Qs=!1,ga=!1;/^(left|right)/.test(ne)?(ne.includes("left")?l.right="".concat(Ot.width+Ti,"px"):ne.includes("right")&&(l.left="".concat(Ot.width+Ir,"px")),ne.includes("start")?l.top="".concat(Ko,"px"):ne.includes("end")?l.bottom="".concat(Zo,"px"):(l.top="".concat(Ko+Ot.height/2,"px"),ga=!0,l.transform="translate(".concat(Ge,"px, calc(").concat(Et,"px - 50%))"))):/^(top|bottom)/.test(ne)&&(ne.includes("top")?l.bottom="".concat(Ot.height+Zo,"px"):ne.includes("bottom")&&(l.top="".concat(Ot.height+Ko,"px")),ne.includes("start")?l.left="".concat(Ir,"px"):ne.includes("end")?l.right="".concat(Ti,"px"):(l.left="".concat(Ir+Ot.width/2,"px"),Qs=!0,l.transform="translate(calc(".concat(Ge,"px - 50%), ").concat(Et,"px)"))),l.transform="translate(calc(".concat(Ge,"px - ").concat(Qs?"50%":"0%","), calc(").concat(Et,"px - ").concat(ga?"50%":"0%",")");var Ma=ne.split("-");Ma.length&&Cs(this.popperDOM,Ma.map(function(ll){return"l7-popper-".concat(ll)}).join(" ")),Ji(this.popperDOM,us(l))}},{key:"createPopper",value:function(){var l=this.option,g=l.container,T=l.className,B=T===void 0?"":T,G=l.content,ne=to("div","l7-popper l7-popper-hide ".concat(B)),Me=to("div","l7-popper-content"),Ge=to("div","l7-popper-arrow");return ne.appendChild(Me),ne.appendChild(Ge),g.appendChild(ne),this.popperDOM=ne,this.contentDOM=Me,G&&this.setContent(G),ne}}]),u}(yf.EventEmitter);(0,Cn.Z)(qe,"conflictPopperList",[]);function pt(a){var p=un();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function un(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var kn={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},Zn=function(a){(0,ft.Z)(u,a);var p=pt(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Oa((0,vt.Z)(u.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(l){var g,T=Oa((0,vt.Z)(u.prototype),"getDefault",this).call(this,l),B=(g=l==null?void 0:l.position)!==null&&g!==void 0?g:T.position;return(0,we.Z)((0,we.Z)({},Oa((0,vt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{popperPlacement:B instanceof Element?"bottom":kn[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var l=Oa((0,vt.Z)(u.prototype),"onAdd",this).call(this);return this.initPopper(),l}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var l=this,g=this.controlOption,T=g.popperClassName,B=g.popperPlacement,G=g.popperTrigger,ne=this.mapsService.getMapContainer();return this.popper=new qe(this.button,{className:T,placement:B,trigger:G,container:ne,unique:!0}),this.popper.on("show",function(){l.emit("popperShow",l)}).on("hide",function(){l.emit("popperHide",l)}),this.popper}},{key:"setOptions",value:function(l){if(Oa((0,vt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["popperPlacement","popperTrigger","popperClassName"])){var g=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(g)}}}]),u}(Y);function Si(a){var p=Yi();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Yi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Do=function(a){return a.ActiveOptionClassName="l7-select-control-item-active",a.OptionValueAttrKey="data-option-value",a.OptionIndexAttrKey="data-option-index",a}(Do||{}),$o=function(a){(0,ft.Z)(u,a);var p=Si(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T-1?c.selectValue.splice(G,1):c.selectValue=[].concat((0,Fr.Z)(c.selectValue),[B.value])}else c.selectValue=[B.value];c.setSelectValue(c.selectValue)}),c}return(0,He.Z)(u,[{key:"setOptions",value:function(l){Oa((0,vt.Z)(u.prototype),"setOptions",this).call(this,l);var g=l.options;g&&this.popper.setContent(this.getPopperContent(g))}},{key:"onAdd",value:function(){var l=Oa((0,vt.Z)(u.prototype),"onAdd",this).call(this),g=this.controlOption.defaultValue;return g&&(this.selectValue=this.transSelectValue(g)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),l}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(l){var g=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,B=this.transSelectValue(l);this.optionDOMList.forEach(function(G){var ne=G.getAttribute(Do.OptionValueAttrKey),Me=g.getIsMultiple()?G.querySelector("input[type=checkbox]"):void 0;B.includes(ne)?(Cs(G,Do.ActiveOptionClassName),Me&&$a(Me,!0)):(Ka(G,Do.ActiveOptionClassName),Me&&$a(Me,!1))}),this.selectValue=B,T&&this.emit("selectChange",this.getIsMultiple()?B:B[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(l){var g=this,T=this.isImageOptions(),B=to("div",T?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&Cs(B,"l7-select-control--multiple");var G=l.map(function(ne,Me){var Ge=T?g.createImageOption(ne):g.createNormalOption(ne);return Ge.setAttribute(Do.OptionValueAttrKey,ne.value),Ge.setAttribute(Do.OptionIndexAttrKey,window.String(Me)),Ge.addEventListener("click",g.onItemClick.bind(g,ne)),Ge});return B.append.apply(B,(0,Fr.Z)(G)),this.optionDOMList=G,B}},{key:"createImageOption",value:function(l){var g=this.selectValue.includes(l.value),T=to("div","l7-select-control-item ".concat(g?Do.ActiveOptionClassName:"")),B=to("img");B.setAttribute("src",l.img),Zl(B),T.appendChild(B);var G=to("div","l7-select-control-item-row");this.getIsMultiple()&&T.appendChild(this.createCheckbox(g));var ne=to("span");return ne.innerText=l.text,G.appendChild(ne),T.appendChild(G),T}},{key:"createCheckbox",value:function(l){var g=to("input");return g.setAttribute("type","checkbox"),l&&$a(g,!0),g}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(l){return l.img})}},{key:"transSelectValue",value:function(l){return Array.isArray(l)?l:[l]}}]),u}(Zn),Wr=function(p){var u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("l7-iconfont"),u.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(p)),u.appendChild(c),u};function Jo(a){var p=Wa();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Wa(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var nl=function(a){(0,ft.Z)(u,a);var p=Jo(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Lu(a,p){if(a){if(typeof a=="string")return uc(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return uc(a,p)}}function uc(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:document.documentElement,u=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,l){var g=function B(){du.off("change",B),c()};du.on("change",g);var T=p[il.requestFullscreen](u);T instanceof Promise&&T.then(g).catch(l)})},exit:function(){return new Promise(function(p,u){if(!du.isFullscreen){p();return}var c=function g(){du.off("change",g),p()};du.on("change",c);var l=document[il.exitFullscreen]();l instanceof Promise&&l.then(c).catch(u)})},toggle:function(p,u){return du.isFullscreen?du.exit():du.request(p,u)},onchange:function(p){du.on("change",p)},onerror:function(p){du.on("error",p)},on:function(p,u){var c=Yu[p];c&&document.addEventListener(c,u,!1)},off:function(p,u){var c=Yu[p];c&&document.removeEventListener(c,u,!1)},raw:il};Object.defineProperties(du,{isFullscreen:{get:function(){return!!document[il.fullscreenElement]}},element:{enumerable:!0,get:function(){var p;return(p=document[il.fullscreenElement])!==null&&p!==void 0?p:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[il.fullscreenEnabled]}}}),il||(du={isEnabled:!1});var Ac=du;function sc(a){var p=Zu();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Zu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Oh=function(a){(0,ft.Z)(u,a);var p=sc(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,c),(0,Cn.Z)((0,ps.Z)(l),"isFullscreen",!1),(0,Cn.Z)((0,ps.Z)(l),"toggleFullscreen",(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!Ac.isEnabled){B.next=3;break}return B.next=3,Ac.toggle(l.mapContainer);case 3:case"end":return B.stop()}},g)}))),(0,Cn.Z)((0,ps.Z)(l),"onClick",function(){l.toggleFullscreen()}),(0,Cn.Z)((0,ps.Z)(l),"onFullscreenChange",function(){l.isFullscreen=!!document.fullscreenElement;var g=l.controlOption,T=g.btnText,B=g.btnIcon,G=g.title,ne=g.exitBtnText,Me=g.exitBtnIcon,Ge=g.exitTitle;l.isFullscreen?(l.setBtnTitle(Ge),l.setBtnText(ne),l.setBtnIcon(Me)):(l.setBtnTitle(G),l.setBtnText(T),l.setBtnIcon(B)),l.emit("fullscreenChange",l.isFullscreen)}),Ac.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),l}return(0,He.Z)(u,[{key:"setOptions",value:function(l){var g=l.exitBtnText,T=l.exitBtnIcon,B=l.exitTitle;this.isFullscreen&&(this.checkUpdateOption(l,["exitBtnIcon"])&&this.setBtnIcon(T),this.checkUpdateOption(l,["exitBtnText"])&&this.setBtnText(g),this.checkUpdateOption(l,["exitTitle"])&&this.setBtnTitle(B)),Oa((0,vt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"onAdd",value:function(){var l=Oa((0,vt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),this.mapContainer=la(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),l}},{key:"onRemove",value:function(){Oa((0,vt.Z)(u.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(l){return(0,we.Z)((0,we.Z)({},Oa((0,vt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5168\u5C4F",btnIcon:Wr("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Wr("l7-icon-exit-fullscreen")})}}]),u}(Y);function xf(a){var p=Dh();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Dh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Jf=function(a){(0,ft.Z)(u,a);var p=xf(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,c),(0,Cn.Z)((0,ps.Z)(l),"getGeoLocation",function(){return new Promise(function(g,T){window.navigator.geolocation.getCurrentPosition(function(B){var G=B.coords,ne=G!=null?G:{},Me=ne.longitude,Ge=ne.latitude;!isNaN(Me)&&!isNaN(Ge)?g([Me,Ge]):T()},function(B){T(B)})})}),(0,Cn.Z)((0,ps.Z)(l),"onClick",(0,Na.Z)(ro().mark(function g(){var T,B,G;return ro().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(window.navigator.geolocation){Me.next=2;break}return Me.abrupt("return");case 2:return T=l.controlOption.transform,Me.next=5,l.getGeoLocation();case 5:if(B=Me.sent,G=l.mapsService.getZoom(),Me.t0=l.mapsService,Me.t1=G>15?G:15,!T){Me.next=15;break}return Me.next=12,T(B);case 12:Me.t2=Me.sent,Me.next=16;break;case 15:Me.t2=B;case 16:Me.t3=Me.t2,Me.t0.setZoomAndCenter.call(Me.t0,Me.t1,Me.t3);case 18:case"end":return Me.stop()}},g)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),l}return(0,He.Z)(u,[{key:"getDefault",value:function(l){return(0,we.Z)((0,we.Z)({},Oa((0,vt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5B9A\u4F4D",btnIcon:Wr("l7-icon-reposition")})}},{key:"onAdd",value:function(){var l=Oa((0,vt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),l}}]),u}(Y);function Lf(a){var p=pm();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function pm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Qh=function(a){(0,ft.Z)(u,a);var p=Lf(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=10?10:T>=5?5:T>=3?3:T>=2?2:1,g*T}},{key:"updateMetric",value:function(l){var g=this.getRoundNum(l),T=g<1e3?g+" m":g/1e3+" km";this.updateScale(this.mScale,T,g/l)}},{key:"updateImperial",value:function(l){var g=l*3.2808399,T,B,G;g>5280?(T=g/5280,B=this.getRoundNum(T),this.updateScale(this.iScale,B+" mi",B/T)):(G=this.getRoundNum(g),this.updateScale(this.iScale,G+" ft",G/g))}}]),u}(v);function Ec(a){var p=mh();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function mh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Ed=function(a){(0,ft.Z)(u,a);var p=Ec(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tc.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,Cn.Z)((0,ps.Z)(c),"updateDisabled",function(){var B=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||B.getZoom()<=B.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(B.getZoom()))),(c.disabled||B.getZoom()>=B.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,He.Z)(u,[{key:"getDefault",value:function(l){return(0,we.Z)((0,we.Z)({},Oa((0,vt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{position:bo.BOTTOMRIGHT,name:"zoom",zoomInText:Wr("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Wr("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(l){Oa((0,vt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var l=to("div","l7-control-zoom");return this.resetButtonGroup(l),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),l}},{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:"resetButtonGroup",value:function(l){hl(l),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",l,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",l)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",l,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(l,g,T,B,G){var ne=to("button",T,B);return typeof l=="string"?ne.innerHTML=l:ne.append(l),ne.title=g,G&&ne.addEventListener("click",G),ne}}]),u}(v);function Mc(a){var p=Lp();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Lp(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _g=function(a){(0,ft.Z)(u,a);var p=Mc(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,ps.Z)(l),"isShow",!0),(0,Cn.Z)((0,ps.Z)(l),"onMouseMove",function(T){var B,G=l.mapsService.getMapContainer(),ne=(B=G==null?void 0:G.getBoundingClientRect())!==null&&B!==void 0?B:{},Me=ne.left,Ge=Me===void 0?0:Me,Et=ne.top,Ot=Et===void 0?0:Et;l.setPopupPosition(T.clientX-Ge,T.clientY-Ot)}),(0,Cn.Z)((0,ps.Z)(l),"updateLngLatPosition",function(){if(!(!l.mapsService||l.popupOption.followCursor)){var T=l.lngLat,B=T.lng,G=T.lat,ne=l.mapsService.lngLatToContainer([B,G]),Me=ne.x,Ge=ne.y;l.setPopupPosition(Me,Ge)}}),(0,Cn.Z)((0,ps.Z)(l),"onKeyDown",function(T){T.keyCode===27&&l.remove()}),(0,Cn.Z)((0,ps.Z)(l),"onCloseButtonClick",function(T){T.stopPropagation&&T.stopPropagation(),l.hide()}),(0,Cn.Z)((0,ps.Z)(l),"update",function(){var T=!!l.lngLat,B=l.popupOption,G=B.className,ne=B.style,Me=B.maxWidth,Ge=B.anchor,Et=B.stopPropagation;if(!(!l.mapsService||!T||!l.content)){var Ot=l.mapsService.getMarkerContainer();if(!l.container&&Ot&&(l.container=to("div","l7-popup ".concat(G!=null?G:""," ").concat(l.isShow?"":"l7-popup-hide"),Ot),ne&&l.container.setAttribute("style",ne),l.tip=to("div","l7-popup-tip",l.container),l.container.appendChild(l.content),Et&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Ir){l.container.addEventListener(Ir,function(Ti){Ti.stopPropagation()})}),l.container.style.whiteSpace="nowrap"),l.updateLngLatPosition(),ds(l.container,"".concat(Tt[Ge])),xt(l.container,Ge,"popup"),Me){var Pn=l.container.getBoundingClientRect(),Mn=Pn.width;Mn>parseFloat(Me)&&(l.container.style.width=Me)}else l.container.style.removeProperty("width")}}),l.popupOption=(0,we.Z)((0,we.Z)({},l.getDefault(c!=null?c:{})),c);var g=l.popupOption.lngLat;return g&&(l.lngLat=g),l}return(0,He.Z)(u,[{key:"lngLat",get:function(){var l;return(l=this.popupOption.lngLat)!==null&&l!==void 0?l:{lng:0,lat:0}},set:function(l){this.popupOption.lngLat=l}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(l){this.mapsService=l.get(vr.IMapService),this.sceneService=l.get(vr.ISceneService),this.layerService=l.get(vr.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=l,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var g=this.popupOption,T=g.html,B=g.text,G=g.title;return T?this.setHTML(T):B&&this.setText(B),G&&this.setTitle(G),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&sa(this.content),this.container&&(sa(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(l){return this.show(),this.popupOption=(0,we.Z)((0,we.Z)({},this.popupOption),l),this.checkUpdateOption(l,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(sa(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(l,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(l,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(l,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(l,["html"])&&l.html?this.setHTML(l.html):this.checkUpdateOption(l,["text"])&&l.text&&this.setText(l.text),this.checkUpdateOption(l,["lngLat"])&&l.lngLat&&this.setLnglat(l.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Ka(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&Cs(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(l){return this.popupOption.html=l,this.setDOMContent(l)}},{key:"setText",value:function(l){return this.popupOption.text=l,this.setDOMContent(window.document.createTextNode(l))}},{key:"setTitle",value:function(l){this.show(),this.popupOption.title=l,l?(this.contentTitle||(this.contentTitle=to("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),hl(this.contentTitle),Ml(this.contentTitle,l)):this.contentTitle&&(sa(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var l=this.lngLat,g=l.lng,T=l.lat;return this.popupOption.autoPan&&this.mapsService.panTo([g,T]),this}},{key:"setLngLat",value:function(l){return this.setLnglat(l)}},{key:"setLnglat",value:function(l){var g=this;return this.show(),this.lngLat=l,Array.isArray(l)&&(this.lngLat={lng:l[0],lat:l[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){g.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(l){return this.popupOption.maxWidth=l,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(l){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:Mt.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(l){return this.show(),this.createContent(),Ml(this.contentPanel,l),this.update(),this}},{key:"updateCloseOnClick",value:function(l){var g=this,T=this.mapsService;T&&(T==null||T.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!l&&requestAnimationFrame(function(){T==null||T.on("click",g.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(l){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!l&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(l){var g,T=(g=this.mapsService)===null||g===void 0?void 0:g.getContainer();T&&(T==null||T.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!l&&(T==null||T.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var l=this;if(this.content&&sa(this.content),this.contentTitle=void 0,this.content=to("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var g=Wr("l7-icon-guanbi");Cs(g,"l7-popup-close-button"),this.content.appendChild(g),this.popupOption.closeButtonOffsets&&(g.style.right=this.popupOption.closeButtonOffsets[0]+"px",g.style.top=this.popupOption.closeButtonOffsets[1]+"px"),g.setAttribute("aria-label","Close popup"),g.addEventListener("click",function(T){l.hide()}),g.addEventListener("pointerup",function(T){T.stopPropagation()}),g.addEventListener("pointerdown",function(T){T.stopPropagation()}),this.closeButton=g}else this.closeButton=void 0;this.contentPanel=to("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(l,g){if(this.container){var T=this.popupOption.offsets;this.container.style.left=l+T[0]+"px",this.container.style.top=g-T[1]+"px"}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(yf.EventEmitter);function Dm(a){var p=i0();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function i0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Cm=Fa.get,W0=function(a){(0,ft.Z)(u,a);var p=Dm(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0;)l=l+c*(u%d),u=Math.floor(u/d),c=c/d;return l}var C3=1,hT=(lT=(0,os.b2)(),uT=(0,os.f3)(Ms.IShaderModuleService),lT(Eb=(vv=function(o){(0,ut.Z)(l,o);var d=mC(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=1&&(ne(this.copyRenderTarget,function(){m.outputModel.draw({uniforms:{u_Texture:m.outputRenderTarget}})}),ne(u.multiPassRenderer.getPostProcessor().getReadFBO(),function(){m.copyModel.draw({uniforms:{u_Texture:m.copyRenderTarget}})}),u.multiPassRenderer.getPostProcessor().render(u));var ho=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=ho,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,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(u,m,E){this.shaderModuleService.registerModule(u,{vs:w3,fs:m});var M=this.shaderModuleService.getModule(u),Z=M.vs,ne=M.fs,Ce=M.uniforms,Fe=this.rendererService,bt=Fe.createAttribute,Bt=Fe.createBuffer,Cn=Fe.createModel;return Cn((0,Oe.Z)({vs:Z,fs:ne,attributes:{a_Position:bt({buffer:Bt({data:[-4,-4,4,-4,0,4],type:Di.FLOAT}),size:2})},uniforms:(0,Oe.Z)({},Ce),depth:{enable:!1},count:3},E))}}]),l}($m),cT=kh(vv.prototype,"shaderModuleService",[uT],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vv))||Eb),Tb=new os.W2;Tb.bind(Ms.IGlobalConfigService).to(Kd).inSingletonScope(),(0,os.GW)((0,os.b2)(),uc.EventEmitter),Tb.bind(Ms.IEventEmitter).to(uc.EventEmitter);var dT=(0,ka.Z)(Tb,!1),T0=function(d){var l=dT.lazyInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},fT=function(d){var l=dT.lazyMultiInject(d);return function(c,u,m){l.call(this,c,u),m&&(m.initializer=function(){return c[u]})}},iy=Tb,E2=0;function H_(){var o=new os.W2;return o.parent=Tb,o.bind(Ms.SceneID).toConstantValue("".concat(E2++)),o.bind(Ms.IShaderModuleService).to(Kf).inSingletonScope(),o.bind(Ms.ILayerService).to(Lx).inSingletonScope(),o.bind(Ms.IDebugService).to(Bg).inSingletonScope(),o.bind(Ms.ISceneService).to(oe).inSingletonScope(),o.bind(Ms.ICameraService).to(di).inSingletonScope(),o.bind(Ms.ICoordinateSystemService).to(Ug).inSingletonScope(),o.bind(Ms.IInteractionService).to(u1).inSingletonScope(),o.bind(Ms.IPickingService).to($0).inSingletonScope(),o.bind(Ms.IControlService).to(Cc).inSingletonScope(),o.bind(Ms.IMarkerService).to(fh).inSingletonScope(),o.bind(Ms.IIconService).to(Hm).inSingletonScope(),o.bind(Ms.IFontService).to(Sm).inSingletonScope(),o.bind(Ms.IPopupService).to(Tp).inSingletonScope(),o.bind(Ms.INormalPass).to(e0).whenTargetNamed("clear"),o.bind(Ms.INormalPass).to(GE).whenTargetNamed("pixelPicking"),o.bind(Ms.INormalPass).to(x3).whenTargetNamed("render"),o.bind(Ms.INormalPass).to(hT).whenTargetNamed("taa"),o.bind(Ms.IFactoryNormalPass).toFactory(function(d){return function(l){return d.container.getNamed(Ms.INormalPass,l)}}),o.bind(Ms.IPostProcessingPass).to(t4).whenTargetNamed("copy"),o.bind(Ms.IPostProcessingPass).to(o3).whenTargetNamed("bloom"),o.bind(Ms.IPostProcessingPass).to(zy).whenTargetNamed("blurH"),o.bind(Ms.IPostProcessingPass).to(Nx).whenTargetNamed("blurV"),o.bind(Ms.IPostProcessingPass).to(Qd).whenTargetNamed("noise"),o.bind(Ms.IPostProcessingPass).to(_3).whenTargetNamed("sepia"),o.bind(Ms.IPostProcessingPass).to(iT).whenTargetNamed("colorHalftone"),o.bind(Ms.IPostProcessingPass).to(w2).whenTargetNamed("hexagonalPixelate"),o.bind(Ms.IPostProcessingPass).to(pC).whenTargetNamed("ink"),o.bind(Ms.IFactoryPostProcessingPass).toFactory(function(d){return function(l){var c=d.container.getNamed(Ms.IPostProcessingPass,l);return c.setName(l),c}}),o}function Bx(o){var d=new os.W2;return d.parent=o,d.bind(Ms.IStyleAttributeService).to($E).inSingletonScope(),d.bind(Ms.IMultiPassRenderer).to(Qb).inSingletonScope(),d.bind(Ms.IPostProcessor).to(y_).inSingletonScope(),d}var Ab=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function PS(o){return Ab.indexOf(o)}var G_=Ns.clamp,pT=2,S3=4,LS=64,yC=128,W0=256,A0=512,Pm=8192,I1=16384,gT=32768,$y=null,zx=131072,E3=262144,__=524288,T2=1048576,T3=2097152,l4=4194304,Db=8388608,_C=16777216,u4=null;function t1(o,d){return o=G_(Math.floor(o),0,255),d=G_(Math.floor(d),0,255),256*o+d}function qL(o){var d=o.color,l=o.radius,c=o.tileX,u=o.tileY,m=o.shape,E=o.opacity,M=o.stroke,Z=o.strokeWidth,ne=o.strokeOpacity,Ce=[],Fe=[],bt=[],Bt=[t1(d[0],d[1]),t1(d[2],d[3])],Cn=[t1(M[0],M[1]),t1(M[2],M[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(An){var Pr=(0,mi.Z)(An,2),ti=Pr[0],ho=Pr[1];Ce.push([].concat(Bt,[(ti+1)*Db+(ho+1)*T3+PS(m)*zx+l,(c+512)*__+(u+512)*LS])),Fe.push([].concat(Cn,[Z,ne])),bt.push([E,0,0,0])}),{packedBuffer:Ce,packedBuffer2:Fe,packedBuffer3:bt}}function c4(o,d){if(o===0&&!d)return 0;if(o===1&&d)return 4294967295;var l=d?1:0,c=Math.floor(o*127);return c*u4+l*_C+c*zx+l*$y+c*A0+l*W0+c*pT+l}var b_={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Bv={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},B0=function(o){return o.LINEAR="linear",o.SEQUENTIAL="sequential",o.POWER="power",o.LOG="log",o.IDENTITY="identity",o.TIME="time",o.QUANTILE="quantile",o.QUANTIZE="quantize",o.THRESHOLD="threshold",o.CAT="cat",o.DIVERGING="diverging",o}({}),Ux=function(o){return o.CONSTANT="constant",o.VARIABLE="variable",o}({}),wd=function(o){return o[o.Attribute=0]="Attribute",o[o.InstancedAttribute=1]="InstancedAttribute",o[o.Uniform=2]="Uniform",o}({}),x_=["mapload","mapchange","mapAfterFrameChange"],A2=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Gg=function(o){return o.IMAGE="image",o.CUSTOMIMAGE="customImage",o.ARRAYBUFFER="arraybuffer",o.RGB="rgb",o.TERRAINRGB="terrainRGB",o.CUSTOMRGB="customRGB",o.CUSTOMARRAYBUFFER="customArrayBuffer",o.CUSTOMTERRAINRGB="customTerrainRGB",o}({}),h4=function(){var o=(0,Il.Z)(Wi().mark(function d(l,c,u,m){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",new Promise(function(Z,ne){c({x:l.x,y:l.y,z:l.z},function(Ce,Fe){if(Ce||Fe.length===0){ne(Ce);return}Fe&&Hl([{data:Fe,bands:[0]}],u,m,function(bt,Bt){bt?ne(bt):Bt&&Z(Bt)})})}));case 1:case"end":return M.stop()}},d)}));return function(l,c,u,m){return o.apply(this,arguments)}}(),A3=function(){var o=(0,Il.Z)(Wi().mark(function d(l,c){return Wi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",new Promise(function(E,M){c({x:l.x,y:l.y,z:l.z},function(Z,ne){if(Z||!ne){M(Z);return}ne instanceof ArrayBuffer?an(ne,function(Ce,Fe){Ce&&M(Ce),E(Fe)}):ne instanceof HTMLImageElement?E(ne):M(Z)})}));case 1:case"end":return m.stop()}},d)}));return function(l,c){return o.apply(this,arguments)}}();function mT(o,d){return Array.isArray(o)?typeof o[0]=="string"?o.map(function(l){return Xh(l,d)}):o.map(function(l){return{url:Xh(l.url,d),bands:l.bands||[0]}}):Xh(o,d)}function ww(o){return typeof o=="string"?[{url:o,bands:[0]}]:typeof o[0]=="string"?o.map(function(d){return{url:d,bands:[0]}}):o}function RS(o,d){o.xhrCancel=function(){d.map(function(l){l.abort()})}}var w_=function(){var o=(0,Il.Z)(Wi().mark(function d(l,c,u,m,E){var M,Z,ne,Ce,Fe,bt;return Wi().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(M=ww(c.url),!(M.length>1)){Cn.next=15;break}return Cn.next=4,d4(M,c);case 4:if(Z=Cn.sent,ne=Z.rasterFiles,Ce=Z.xhrList,Fe=Z.errList,RS(l,Ce),!(Fe.length>0)){Cn.next=12;break}return u(Fe,null),Cn.abrupt("return");case 12:Hl(ne,m,E,u),Cn.next=17;break;case 15:bt=ai(c,function(An,Pr){if(An)u(An);else if(Pr){var ti=[{data:Pr,bands:M[0].bands}];Hl(ti,m,E,u)}}),RS(l,[bt]);case 17:case"end":return Cn.stop()}},d)}));return function(l,c,u,m,E){return o.apply(this,arguments)}}();function d4(o,d){return Z1.apply(this,arguments)}function Z1(){return Z1=(0,Il.Z)(Wi().mark(function o(d,l){var c,u,m,E,M,Z,ne,Ce,Fe,bt,Bt;return Wi().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:c=[],u=[],m=[],E=0;case 4:if(!(E1&&arguments[1]!==void 0?arguments[1]:{};if(yT(o))throw new Error("tile server url is error");var l=(d==null?void 0:d.dataType)||Gg.IMAGE;l===Gg.RGB&&(l=Gg.ARRAYBUFFER);var c=function(E,M){switch(l){case Gg.IMAGE:return D2(o,E,M,d);case Gg.CUSTOMIMAGE:case Gg.CUSTOMTERRAINRGB:return A3(M,d==null?void 0:d.getCustomData);case Gg.ARRAYBUFFER:return f4(o,E,M,(d==null?void 0:d.format)||sm,d==null?void 0:d.operation);case Gg.CUSTOMARRAYBUFFER:case Gg.CUSTOMRGB:return h4(M,d==null?void 0:d.getCustomData,(d==null?void 0:d.format)||sm,d==null?void 0:d.operation);default:return D2(o,E,M,d)}},u=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},D3),d),{},{getTileData:c});return{data:o,dataArray:[],tilesetOptions:u,isTile:!0}}var P3=["extent","min","max","width","height","format","operation"];function L3(o,d){var l=d.extent,c=d.min,u=d.max,m=d.width,E=d.height,M=d.format,Z=d.operation,ne=(0,dm.Z)(d,P3),Ce;if(M===void 0||Nn(o))Ce=Array.from(o);else{var Fe=Array.isArray(o)?o:[o];Ce=vi(Fe,M,Z)}var bt={_id:1,dataArray:[(0,Oe.Z)((0,Oe.Z)({_id:1,data:Ce,width:m,height:E},ne),{},{min:c,max:u,coordinates:[[l[0],l[1]],[l[2],l[3]]]})]};return bt}var Ib={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},_T=function(){var o=(0,Il.Z)(Wi().mark(function d(l){return Wi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",new Promise(function(m){var E=(0,mi.Z)(l.bounds,4),M=E[0],Z=E[1],ne=E[2],Ce=E[3],Fe={layers:{testTile:{features:[{type:"Feature",properties:{key:l.x+"/"+l.y+"/"+l.z,x:(M+ne)/2,y:(Z+Ce)/2},geometry:{type:"LineString",coordinates:[[ne,Ce],[ne,Z],[M,Z],[M,Z]]}}]}}};m(Fe)}));case 1:case"end":return u.stop()}},d)}));return function(l){return o.apply(this,arguments)}}();function am(o,d){var l=function(m){return _T(m)},c=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},Ib),d),{},{getTileData:l});return{data:o,dataArray:[],tilesetOptions:c,isTile:!0}}var kS=_(69848),n1=_.n(kS);function rx(o,d){var l=d.radius,c=l===void 0?40:l,u=d.maxZoom,m=u===void 0?18:u,E=d.minZoom,M=E===void 0?0:E,Z=d.zoom,ne=Z===void 0?2:Z;if(o.pointIndex){var Ce=o.pointIndex.getClusters(o.extent,Math.floor(ne));return o.dataArray=OS(Ce),o}var Fe=new(n1())({radius:c,minZoom:M,maxZoom:m}),bt={type:"FeatureCollection",features:[]};return bt.features=o.dataArray.map(function(Bt){return{type:"Feature",geometry:{type:"Point",coordinates:Bt.coordinates},properties:(0,Oe.Z)({},Bt)}}),Fe.load(bt.features),Fe}function OS(o){return o.map(function(d,l){return(0,Oe.Z)({coordinates:d.geometry.coordinates,_id:l+1},d.properties)})}function bT(o){if(o.length===0)throw new Error("max requires at least one data point");for(var d=o[0],l=1;ld&&(d=o[l]);return d}function xT(o){if(o.length===0)throw new Error("min requires at least one data point");for(var d=o[0],l=1;l=Math.abs(o[u])?l+=d-c+o[u]:l+=o[u]-c+d,d=c;return d+l*1}function wT(o){if(o.length===0)throw new Error("mean requires at least one data point");return bC(o)/o.length}var n_={min:xT,max:bT,mean:wT,sum:bC};function xC(o){var d=wC();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function wC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var M3=Ns.cloneDeep,CC=Ns.isFunction,NS=Ns.isString,Cw=Ns.mergeWith;function FS(o,d){if(Array.isArray(d))return d}var p4=function(o){(0,ut.Z)(l,o);var d=xC(l);function l(c,u){var m;return(0,xt.Z)(this,l),m=d.call(this),(0,Ln.Z)((0,gs.Z)(m),"type","source"),(0,Ln.Z)((0,gs.Z)(m),"isTile",!1),(0,Ln.Z)((0,gs.Z)(m),"inited",!1),(0,Ln.Z)((0,gs.Z)(m),"hooks",{init:new V1}),(0,Ln.Z)((0,gs.Z)(m),"parser",{type:"geojson"}),(0,Ln.Z)((0,gs.Z)(m),"transforms",[]),(0,Ln.Z)((0,gs.Z)(m),"cluster",!1),(0,Ln.Z)((0,gs.Z)(m),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Ln.Z)((0,gs.Z)(m),"invalidExtent",!1),(0,Ln.Z)((0,gs.Z)(m),"dataArrayChanged",!1),(0,Ln.Z)((0,gs.Z)(m),"cfg",{autoRender:!0}),m.originData=c,m.initCfg(u),m.init().then(function(){m.inited=!0,m.emit("update",{type:"inited"})}),m}return(0,ot.Z)(l,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(u){return this.clusterIndex.getClusters(this.caculClusterExtent(2),u)}},{key:"getClustersLeaves",value:function(u){return this.clusterIndex.getLeaves(u,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(u){var m=this,E=this.clusterOptions,M=E.method,Z=M===void 0?"sum":M,ne=E.field,Ce=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(u));this.clusterOptions.zoom=u,Ce.forEach(function(Fe){Fe.id||(Fe.properties.point_count=1)}),(ne||CC(Z))&&(Ce=Ce.map(function(Fe){var bt=Fe.id;if(bt){var Bt=m.clusterIndex.getLeaves(bt,1/0),Cn=Bt.map(function(ti){return ti.properties}),An;if(NS(Z)&&ne){var Pr=Kr(Cn,ne);An=n_[Z](Pr)}CC(Z)&&(An=Z(Cn)),Fe.properties.stat=An}else Fe.properties.point_count=1;return Fe})),this.data=O("geojson")({type:"FeatureCollection",features:Ce}),this.executeTrans()}},{key:"getFeatureById",value:function(u){var m=this.parser,E=m.type,M=E===void 0?"geojson":E,Z=m.geometry;if(M==="geojson"&&!this.cluster){var ne=u=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function CT(o,d){if(o){if(typeof o=="string")return ST(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return ST(o,d)}}function ST(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc?u:c)}}catch(bo){m.e(bo)}finally{m.f()}var Z=(l+c)/2,ne=k3(d,Z);if(ne.xOffset<=0||ne.yOffset<=0)return{gridHash:{},gridOffset:ne};var Ce={},Fe=$x(o),bt;try{for(Fe.s();!(bt=Fe.n()).done;){var Bt=bt.value,Cn=Bt.coordinates[1],An=Bt.coordinates[0];if(Number.isFinite(Cn)&&Number.isFinite(An)){var Pr=Math.floor((Cn+90)/ne.yOffset),ti=Math.floor((An+180)/ne.xOffset),ho="".concat(Pr,"-").concat(ti);Ce[ho]=Ce[ho]||{count:0,points:[]},Ce[ho].count+=1,Ce[ho].points.push(Bt)}}}catch(bo){Fe.e(bo)}finally{Fe.f()}return{gridHash:Ce,gridOffset:ne}}function k3(o,d){var l=g4(o),c=Sw(d,o);return{yOffset:l,xOffset:c}}function g4(o){return o/SC*(180/Math.PI)}function Sw(o,d){return d/SC*(180/Math.PI)/Math.cos(o*Math.PI/180)}function O3(o,d,l){return Object.keys(o).reduce(function(c,u,m){var E=u.split("-"),M=parseInt(E[0],10),Z=parseInt(E[1],10),ne={};if(l.field&&l.method){var Ce=Gc(o[u].points,l.field);ne[l.method]=Wc[l.method](Ce)}return Object.assign(ne,{_id:m,coordinates:xc([-180+d.xOffset*(Z+.5),-90+d.yOffset*(M+.5)]),rawData:o[u].points,count:o[u].count}),c.push(ne),c},[])}var Vx=Math.PI/3,ET=[0,Vx,2*Vx,3*Vx,4*Vx,5*Vx];function m4(o){return o[0]}function N3(o){return o[1]}function BS(){var o=0,d=0,l=1,c=1,u=m4,m=N3,E,M,Z;function ne(Fe){var bt={},Bt=[],Cn,An=Fe.length;for(Cn=0;Cn1){var aa=ti-Ds,Ua=Ds+(tiru*ru+Iu*Iu&&(Ds=Ua+(bo&1?1:-1)/2,bo=pl)}var Vu=Ds+"-"+bo,th=bt[Vu];th?th.push(Pr):(Bt.push(th=bt[Vu]=[Pr]),th.x=(Ds+(bo&1)/2)*M,th.y=bo*Z)}return Bt}function Ce(Fe){var bt=0,Bt=0;return ET.map(function(Cn){var An=Math.sin(Cn)*Fe,Pr=-Math.cos(Cn)*Fe,ti=An-bt,ho=Pr-Bt;return bt=An,Bt=Pr,[ti,ho]})}return ne.hexagon=function(Fe){return"m"+Ce(Fe==null?E:+Fe).join("l")+"z"},ne.centers=function(){for(var Fe=[],bt=Math.round(d/Z),Bt=Math.round(o/M),Cn=bt*Z;Cn180||Math.abs(Cn[1][0])>180){if(Ce.x>Bt){var An=this.mapsService.lngLatToContainer([Z-360,ne]);Ce.x=An.x}if(Ce.x<0){var Pr=this.mapsService.lngLatToContainer([Z+360,ne]);Ce.x=Pr.x}}(Ce.x>Bt||Ce.x<0||Ce.y>bt||Ce.y<0)&&(m.style.display="none"),m.style.left=Ce.x+E[0]+"px",m.style.top=Ce.y-E[1]+"px"}}}},{key:"init",value:function(){var u=this,m=this.markerOption.element,E=this.markerOption,M=E.color,Z=E.anchor;if(!m){this.defaultMarker=!0,m=As("div"),this.markerOption.element=m;var ne=document.createElementNS("http://www.w3.org/2000/svg","svg");ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height","48px"),ne.setAttributeNS(null,"width","48px"),ne.setAttributeNS(null,"viewBox","0 0 1024 1024");var Ce=document.createElementNS("http://www.w3.org/2000/svg","path");Ce.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"),Ce.setAttributeNS(null,"fill",M),ne.appendChild(Ce),m.appendChild(ne)}Ga(m,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Fe){var bt,Bt,Cn=((bt=u.markerOption)===null||bt===void 0?void 0:bt.style)&&((Bt=u.markerOption)===null||Bt===void 0?void 0:Bt.style[Fe]);m&&(m.style[Fe]=Cn)}),en(m,Z,"marker")}},{key:"registerMarkerEvent",value:function(u){u.addEventListener("click",this.onMapClick),u.addEventListener("mousemove",this.eventHandle),u.addEventListener("click",this.eventHandle),u.addEventListener("mousedown",this.eventHandle),u.addEventListener("mouseup",this.eventHandle),u.addEventListener("dblclick",this.eventHandle),u.addEventListener("contextmenu",this.eventHandle),u.addEventListener("mouseover",this.eventHandle),u.addEventListener("mouseout",this.eventHandle),u.addEventListener("touchstart",this.eventHandle),u.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var u=this.getElement();u.removeEventListener("click",this.onMapClick),u.removeEventListener("mousemove",this.eventHandle),u.removeEventListener("click",this.eventHandle),u.removeEventListener("mousedown",this.eventHandle),u.removeEventListener("mouseup",this.eventHandle),u.removeEventListener("dblclick",this.eventHandle),u.removeEventListener("contextmenu",this.eventHandle),u.removeEventListener("mouseover",this.eventHandle),u.removeEventListener("mouseout",this.eventHandle),u.removeEventListener("touchstart",this.eventHandle),u.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(u){!this.mapsService||this.mapsService.version!=="GAODE2.x"||lu()||(u.type==="touchstart"&&(this.touchStartTime=Date.now()),u.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:u,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(u){return null}},{key:"onUp",value:function(u){throw new Error("Method not implemented.")}}]),l}(uc.EventEmitter);function y4(o){var d=_4();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function _4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var b4=Ns.merge,x=function(o){(0,ut.Z)(l,o);var d=y4(l);function l(c){var u,m;return(0,xt.Z)(this,l),m=d.call(this),(0,Ln.Z)((0,gs.Z)(m),"markers",[]),(0,Ln.Z)((0,gs.Z)(m),"points",[]),(0,Ln.Z)((0,gs.Z)(m),"clusterMarkers",[]),m.markerLayerOption=b4(m.getDefault(),c),es(["update"],(0,gs.Z)(m)),m.zoom=((u=m.markerLayerOption.clusterOption)===null||u===void 0?void 0:u.zoom)||-99,m}return(0,ot.Z)(l,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(u){return this.scene=u,this.mapsService=u.get(Ms.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.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var u=this.mapsService.getContainer();this.containerSize={containerWidth:(u==null?void 0:u.scrollWidth)||0,containerHeight:(u==null?void 0:u.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(u){var m=this.markerLayerOption.cluster;if(u.getMarkerLayerContainerSize=this.getContainerSize.bind(this),m&&(this.addPoint(u,this.markers.length),this.mapsService)){var E=this.mapsService.getZoom(),M=this.mapsService.getBounds();this.bbox=zd(M,.5),this.zoom=Math.floor(E),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(u)}},{key:"removeMarker",value:function(u){this.markers.indexOf(u);var m=this.markers.indexOf(u);m>-1&&(this.markers.splice(m,1),this.markerLayerOption.cluster&&(this.removePoint(m),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(u){u.getElement().style.opacity="0"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(u){u.getElement().style.opacity="1"}),this.clusterMarkers.map(function(u){u.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var u=this.markerLayerOption.cluster;return u?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var u=this;this.getMarkers().forEach(function(m){m.addTo(u.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(u){u.remove()}),this.clusterMarkers.forEach(function(u){u.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(u,m){var E=u.getLnglat(),M=E.lng,Z=E.lat,ne={geometry:{type:"Point",coordinates:[M,Z]},properties:(0,Oe.Z)((0,Oe.Z)({},u.getExtData()),{},{marker_id:m})};this.points.push(ne),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(u){var m=this.points.findIndex(function(E){return E.properties.marker_id===u});m>-1&&this.points.splice(m,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var u=this.markerLayerOption.clusterOption,m=u.radius,E=u.minZoom,M=E===void 0?0:E,Z=u.maxZoom;this.clusterIndex=new(n1())({radius:m,minZoom:M,maxZoom:Z}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(u,m){var E=this,M=u[0].concat(u[1]),Z=this.clusterIndex.getClusters(M,m);this.clusterMarkers.forEach(function(ne){ne.remove()}),this.clusterMarkers=[],Z.forEach(function(ne){var Ce,Fe=E.markerLayerOption.clusterOption,bt=Fe.field,Bt=Fe.method;if((Ce=ne.properties)!==null&&Ce!==void 0&&Ce.cluster_id){var Cn,An=E.getLeaves((Cn=ne.properties)===null||Cn===void 0?void 0:Cn.cluster_id);if(ne.properties.clusterData=An,bt&&Bt){var Pr=An==null?void 0:An.map(function(ta){var aa=(0,Ln.Z)({},bt,ta.properties[bt]);return aa}),ti=Gc(Pr,bt),ho=vd(Bt,ti),bo="point_"+Bt;ne.properties[bo]=ho.toFixed(2)}}var Ds=E.clusterMarker(ne);E.clusterMarkers.push(Ds),Ds.addTo(E.scene)})}},{key:"getLeaves",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return u?this.clusterIndex.getLeaves(u,m,E):null}},{key:"clusterMarker",value:function(u){var m=this.markerLayerOption.clusterOption,E=m,M=E.element,Z=M===void 0?this.generateElement.bind(this):M,ne=new P2({element:Z(u)}).setLnglat({lng:u.geometry.coordinates[0],lat:u.geometry.coordinates[1]});return ne}},{key:"normalMarker",value:function(u){var m=u.properties.marker_id;return this.markers[m]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var u=this.mapsService.getZoom(),m=this.mapsService.getBounds();(!this.bbox||Math.abs(u-this.zoom)>=1||!Dh(this.bbox,m))&&(this.bbox=zd(m,.5),this.zoom=Math.floor(u),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(u){var m=As("div","l7-marker-cluster"),E=As("div","",m),M=As("span","",E),Z=this.markerLayerOption.clusterOption,ne=Z.field,Ce=Z.method;u.properties.point_count=u.properties.point_count||1;var Fe=ne&&Ce?u.properties["point_"+Ce]||u.properties[ne]:u.properties.point_count;return M.textContent=Fe,m}}]),l}(uc.EventEmitter),z=_(4157);function N(o){var d=se();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function se(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var ue=function(o){(0,ut.Z)(l,o);var d=N(l);function l(c){var u;return(0,xt.Z)(this,l),u=d.call(this),l.controlCount++,u.controlOption=(0,Oe.Z)((0,Oe.Z)({},u.getDefault(c)),c||{}),u}return(0,ot.Z)(l,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(u){var m=this.getDefault(u);Object.entries(u).forEach(function(E){var M=(0,mi.Z)(E,2),Z=M[0],ne=M[1];ne===void 0&&(u[Z]=m[Z])}),"position"in u&&this.setPosition(u.position),"className"in u&&this.setClassName(u.className),"style"in u&&this.setStyle(u.style),this.controlOption=(0,Oe.Z)((0,Oe.Z)({},this.controlOption),u)}},{key:"addTo",value:function(u){this.mapsService=u.get(Ms.IMapService),this.renderService=u.get(Ms.IRendererService),this.layerService=u.get(Ms.ILayerService),this.controlService=u.get(Ms.IControlService),this.configService=u.get(Ms.IGlobalConfigService),this.scene=u.get(Ms.ISceneService),this.sceneContainer=u,this.isShow=!0,this.container=this.onAdd(),Ga(this.container,"l7-control");var m=this.controlOption,E=m.className,M=m.style;return E&&this.setClassName(E),M&&this.setStyle(M),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;ks(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return As("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var u=this.container;zu(u,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var u=this.container;Ga(u,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(u){return{position:uo.TOPRIGHT,name:"".concat(l.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(u){if(this.mapsService&&u&&u.screenX>0&&u.screenY>0){var m=this.mapsService.getContainer();m!==null&&m.focus()}}},{key:"setPosition",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uo.TOPLEFT,m=this.controlService;return m&&m.removeControl(this),this.controlOption.position=u,m&&m.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(u){var m=this.container,E=this.controlOption.className;E&&zu(m,E),u&&Ga(m,u)}},{key:"setStyle",value:function(u){var m=this.container;u?m.setAttribute("style",u):m.removeAttribute("style")}},{key:"insertContainer",value:function(){var u=this.controlOption.position,m=this.container;if(u instanceof Element)u.appendChild(m);else{var E=this.controlService.controlCorners[u];["bottomleft","bottomright","righttop","rightbottom"].includes(u)?E.insertBefore(m,E.firstChild):E.appendChild(m)}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(nh());(0,Ln.Z)(ue,"controlCount",0);function et(o){var d=pt();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function pt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Lt=function(o){(0,ut.Z)(l,o);var d=et(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:"";return As("button","l7-button-control ".concat(u))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var u=this.controlOption,m=u.title,E=u.btnText,M=u.btnIcon;return this.setBtnTitle(m),this.setBtnText(E),this.setBtnIcon(M),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(u){var m=u.title,E=u.btnText,M=u.btnIcon;this.checkUpdateOption(u,["title"])&&this.setBtnTitle(m),this.checkUpdateOption(u,["btnIcon"])&&this.setBtnIcon(M),this.checkUpdateOption(u,["btnText"])&&this.setBtnText(E),lf((0,_t.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"setBtnTitle",value:function(u){var m;(m=this.button)===null||m===void 0||m.setAttribute("title",u!=null?u:"")}},{key:"setBtnIcon",value:function(u){if(this.buttonIcon&&ks(this.buttonIcon),u){var m,E=(m=this.button)===null||m===void 0?void 0:m.firstChild;if(E){var M;(M=this.button)===null||M===void 0||M.insertBefore(u,E)}else{var Z;(Z=this.button)===null||Z===void 0||Z.appendChild(u)}this.buttonIcon=u}}},{key:"setBtnText",value:function(u){if(this.button)if(zu(this.button,"l7-button-control--row"),zu(this.button,"l7-button-control--column"),u){var m=this.buttonText;if(!m){var E;m=As("div","l7-button-control__text"),(E=this.button)===null||E===void 0||E.appendChild(m),this.buttonText=m}m.innerText=u,Ga(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!u&&this.buttonText&&(ks(this.buttonText),this.buttonText=void 0)}}]),l}(ue);function Rn(o){var d=hr();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function hr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var br=function(o){(0,ut.Z)(l,o);var d=Rn(l);function l(c,u){var m;return(0,xt.Z)(this,l),m=d.call(this),(0,Ln.Z)((0,gs.Z)(m),"isShow",!1),(0,Ln.Z)((0,gs.Z)(m),"timeout",null),(0,Ln.Z)((0,gs.Z)(m),"show",function(){return m.isShow||!m.contentDOM.innerHTML||(m.resetPopperPosition(),zu(m.popperDOM,"l7-popper-hide"),m.isShow=!0,m.option.unique&&l.conflictPopperList.forEach(function(E){E!==(0,gs.Z)(m)&&E.isShow&&E.hide()}),m.emit("show"),window.addEventListener("pointerdown",m.onPopperUnClick)),(0,gs.Z)(m)}),(0,Ln.Z)((0,gs.Z)(m),"hide",function(){return m.isShow&&(Ga(m.popperDOM,"l7-popper-hide"),m.isShow=!1,m.emit("hide"),window.removeEventListener("pointerdown",m.onPopperUnClick)),(0,gs.Z)(m)}),(0,Ln.Z)((0,gs.Z)(m),"setHideTimeout",function(){m.timeout||(m.timeout=window.setTimeout(function(){m.isShow&&(m.hide(),m.timeout=null)},300))}),(0,Ln.Z)((0,gs.Z)(m),"clearHideTimeout",function(){m.timeout&&(window.clearTimeout(m.timeout),m.timeout=null)}),(0,Ln.Z)((0,gs.Z)(m),"onBtnClick",function(){m.isShow?m.hide():m.show()}),(0,Ln.Z)((0,gs.Z)(m),"onPopperUnClick",function(E){Xu(E.target,[".l7-button-control",".l7-popper-content"])||m.hide()}),(0,Ln.Z)((0,gs.Z)(m),"onBtnMouseLeave",function(){m.setHideTimeout()}),(0,Ln.Z)((0,gs.Z)(m),"onBtnMouseMove",function(){m.clearHideTimeout(),!m.isShow&&m.show()}),m.button=c,m.option=u,m.init(),u.unique&&l.conflictPopperList.push((0,gs.Z)(m)),m}return(0,ot.Z)(l,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(u){typeof u=="string"?this.contentDOM.innerHTML=u:u instanceof HTMLElement&&(hl(this.contentDOM),this.contentDOM.appendChild(u)),this.content=u}},{key:"init",value:function(){var u=this.option.trigger;this.popperDOM=this.createPopper(),u==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),ks(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var u={},m=this.option,E=m.container,M=m.offset,Z=M===void 0?[0,0]:M,ne=m.placement,Ce=(0,mi.Z)(Z,2),Fe=Ce[0],bt=Ce[1],Bt=this.button.getBoundingClientRect(),Cn=E.getBoundingClientRect(),An=Ka(Bt,Cn),Pr=An.left,ti=An.right,ho=An.top,bo=An.bottom,Ds=!1,ta=!1;/^(left|right)/.test(ne)?(ne.includes("left")?u.right="".concat(Bt.width+ti,"px"):ne.includes("right")&&(u.left="".concat(Bt.width+Pr,"px")),ne.includes("start")?u.top="".concat(ho,"px"):ne.includes("end")?u.bottom="".concat(bo,"px"):(u.top="".concat(ho+Bt.height/2,"px"),ta=!0,u.transform="translate(".concat(Fe,"px, calc(").concat(bt,"px - 50%))"))):/^(top|bottom)/.test(ne)&&(ne.includes("top")?u.bottom="".concat(Bt.height+bo,"px"):ne.includes("bottom")&&(u.top="".concat(Bt.height+ho,"px")),ne.includes("start")?u.left="".concat(Pr,"px"):ne.includes("end")?u.right="".concat(ti,"px"):(u.left="".concat(Pr+Bt.width/2,"px"),Ds=!0,u.transform="translate(calc(".concat(Fe,"px - 50%), ").concat(bt,"px)"))),u.transform="translate(calc(".concat(Fe,"px - ").concat(Ds?"50%":"0%","), calc(").concat(bt,"px - ").concat(ta?"50%":"0%",")");var aa=ne.split("-");aa.length&&Ga(this.popperDOM,aa.map(function(Ua){return"l7-popper-".concat(Ua)}).join(" ")),so(this.popperDOM,ra(u))}},{key:"createPopper",value:function(){var u=this.option,m=u.container,E=u.className,M=E===void 0?"":E,Z=u.content,ne=As("div","l7-popper l7-popper-hide ".concat(M)),Ce=As("div","l7-popper-content"),Fe=As("div","l7-popper-arrow");return ne.appendChild(Ce),ne.appendChild(Fe),m.appendChild(ne),this.popperDOM=ne,this.contentDOM=Ce,Z&&this.setContent(Z),ne}}]),l}(uc.EventEmitter);(0,Ln.Z)(br,"conflictPopperList",[]);function Hi(o){var d=mo();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function mo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Go={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},as=function(o){(0,ut.Z)(l,o);var d=Hi(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),lf((0,_t.Z)(l.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(u){var m,E=lf((0,_t.Z)(l.prototype),"getDefault",this).call(this,u),M=(m=u==null?void 0:u.position)!==null&&m!==void 0?m:E.position;return(0,Oe.Z)((0,Oe.Z)({},lf((0,_t.Z)(l.prototype),"getDefault",this).call(this,u)),{},{popperPlacement:M instanceof Element?"bottom":Go[M],popperTrigger:"click"})}},{key:"onAdd",value:function(){var u=lf((0,_t.Z)(l.prototype),"onAdd",this).call(this);return this.initPopper(),u}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var u=this,m=this.controlOption,E=m.popperClassName,M=m.popperPlacement,Z=m.popperTrigger,ne=this.mapsService.getMapContainer();return this.popper=new br(this.button,{className:E,placement:M,trigger:Z,container:ne,unique:!0}),this.popper.on("show",function(){u.emit("popperShow",u)}).on("hide",function(){u.emit("popperHide",u)}),this.popper}},{key:"setOptions",value:function(u){if(lf((0,_t.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["popperPlacement","popperTrigger","popperClassName"])){var m=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(m)}}}]),l}(Lt);function Ci(o){var d=xs();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function xs(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var el=function(o){return o.ActiveOptionClassName="l7-select-control-item-active",o.OptionValueAttrKey="data-option-value",o.OptionIndexAttrKey="data-option-index",o}(el||{}),_l=function(o){(0,ut.Z)(l,o);var d=Ci(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E-1?c.selectValue.splice(Z,1):c.selectValue=[].concat((0,Pn.Z)(c.selectValue),[M.value])}else c.selectValue=[M.value];c.setSelectValue(c.selectValue)}),c}return(0,ot.Z)(l,[{key:"setOptions",value:function(u){lf((0,_t.Z)(l.prototype),"setOptions",this).call(this,u);var m=u.options;m&&this.popper.setContent(this.getPopperContent(m))}},{key:"onAdd",value:function(){var u=lf((0,_t.Z)(l.prototype),"onAdd",this).call(this),m=this.controlOption.defaultValue;return m&&(this.selectValue=this.transSelectValue(m)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),u}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(u){var m=this,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,M=this.transSelectValue(u);this.optionDOMList.forEach(function(Z){var ne=Z.getAttribute(el.OptionValueAttrKey),Ce=m.getIsMultiple()?Z.querySelector("input[type=checkbox]"):void 0;M.includes(ne)?(Ga(Z,el.ActiveOptionClassName),Ce&&ul(Ce,!0)):(zu(Z,el.ActiveOptionClassName),Ce&&ul(Ce,!1))}),this.selectValue=M,E&&this.emit("selectChange",this.getIsMultiple()?M:M[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(u){var m=this,E=this.isImageOptions(),M=As("div",E?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&Ga(M,"l7-select-control--multiple");var Z=u.map(function(ne,Ce){var Fe=E?m.createImageOption(ne):m.createNormalOption(ne);return Fe.setAttribute(el.OptionValueAttrKey,ne.value),Fe.setAttribute(el.OptionIndexAttrKey,window.String(Ce)),Fe.addEventListener("click",m.onItemClick.bind(m,ne)),Fe});return M.append.apply(M,(0,Pn.Z)(Z)),this.optionDOMList=Z,M}},{key:"createImageOption",value:function(u){var m=this.selectValue.includes(u.value),E=As("div","l7-select-control-item ".concat(m?el.ActiveOptionClassName:"")),M=As("img");M.setAttribute("src",u.img),kl(M),E.appendChild(M);var Z=As("div","l7-select-control-item-row");this.getIsMultiple()&&E.appendChild(this.createCheckbox(m));var ne=As("span");return ne.innerText=u.text,Z.appendChild(ne),E.appendChild(Z),E}},{key:"createCheckbox",value:function(u){var m=As("input");return m.setAttribute("type","checkbox"),u&&ul(m,!0),m}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(u){return u.img})}},{key:"transSelectValue",value:function(u){return Array.isArray(u)?u:[u]}}]),l}(as),Pa=function(d){var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add("l7-iconfont"),l.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(d)),l.appendChild(c),l};function Qu(o){var d=Ec();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Ec(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Hu=function(o){(0,ut.Z)(l,o);var d=Qu(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function hc(o,d){if(o){if(typeof o=="string")return Yu(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Yu(o,d)}}function Yu(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:document.documentElement,l=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,u){var m=function M(){Fd.off("change",M),c()};Fd.on("change",m);var E=d[dc.requestFullscreen](l);E instanceof Promise&&E.then(m).catch(u)})},exit:function(){return new Promise(function(d,l){if(!Fd.isFullscreen){d();return}var c=function m(){Fd.off("change",m),d()};Fd.on("change",c);var u=document[dc.exitFullscreen]();u instanceof Promise&&u.then(c).catch(l)})},toggle:function(d,l){return Fd.isFullscreen?Fd.exit():Fd.request(d,l)},onchange:function(d){Fd.on("change",d)},onerror:function(d){Fd.on("error",d)},on:function(d,l){var c=sc[d];c&&document.addEventListener(c,l,!1)},off:function(d,l){var c=sc[d];c&&document.removeEventListener(c,l,!1)},raw:dc};Object.defineProperties(Fd,{isFullscreen:{get:function(){return!!document[dc.fullscreenElement]}},element:{enumerable:!0,get:function(){var d;return(d=document[dc.fullscreenElement])!==null&&d!==void 0?d:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[dc.fullscreenEnabled]}}}),dc||(Fd={isEnabled:!1});var op=Fd;function af(o){var d=Up();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Up(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Cp=function(o){(0,ut.Z)(l,o);var d=af(l);function l(c){var u;return(0,xt.Z)(this,l),u=d.call(this,c),(0,Ln.Z)((0,gs.Z)(u),"isFullscreen",!1),(0,Ln.Z)((0,gs.Z)(u),"toggleFullscreen",(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!op.isEnabled){M.next=3;break}return M.next=3,op.toggle(u.mapContainer);case 3:case"end":return M.stop()}},m)}))),(0,Ln.Z)((0,gs.Z)(u),"onClick",function(){u.toggleFullscreen()}),(0,Ln.Z)((0,gs.Z)(u),"onFullscreenChange",function(){u.isFullscreen=!!document.fullscreenElement;var m=u.controlOption,E=m.btnText,M=m.btnIcon,Z=m.title,ne=m.exitBtnText,Ce=m.exitBtnIcon,Fe=m.exitTitle;u.isFullscreen?(u.setBtnTitle(Fe),u.setBtnText(ne),u.setBtnIcon(Ce)):(u.setBtnTitle(Z),u.setBtnText(E),u.setBtnIcon(M)),u.emit("fullscreenChange",u.isFullscreen)}),op.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),u}return(0,ot.Z)(l,[{key:"setOptions",value:function(u){var m=u.exitBtnText,E=u.exitBtnIcon,M=u.exitTitle;this.isFullscreen&&(this.checkUpdateOption(u,["exitBtnIcon"])&&this.setBtnIcon(E),this.checkUpdateOption(u,["exitBtnText"])&&this.setBtnText(m),this.checkUpdateOption(u,["exitTitle"])&&this.setBtnTitle(M)),lf((0,_t.Z)(l.prototype),"setOptions",this).call(this,u)}},{key:"onAdd",value:function(){var u=lf((0,_t.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),this.mapContainer=vl(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),u}},{key:"onRemove",value:function(){lf((0,_t.Z)(l.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(u){return(0,Oe.Z)((0,Oe.Z)({},lf((0,_t.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5168\u5C4F",btnIcon:Pa("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Pa("l7-icon-exit-fullscreen")})}}]),l}(Lt);function qm(o){var d=kf();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function kf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var eg=function(o){(0,ut.Z)(l,o);var d=qm(l);function l(c){var u;return(0,xt.Z)(this,l),u=d.call(this,c),(0,Ln.Z)((0,gs.Z)(u),"getGeoLocation",function(){return new Promise(function(m,E){window.navigator.geolocation.getCurrentPosition(function(M){var Z=M.coords,ne=Z!=null?Z:{},Ce=ne.longitude,Fe=ne.latitude;!isNaN(Ce)&&!isNaN(Fe)?m([Ce,Fe]):E()},function(M){E(M)})})}),(0,Ln.Z)((0,gs.Z)(u),"onClick",(0,Il.Z)(Wi().mark(function m(){var E,M,Z;return Wi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(window.navigator.geolocation){Ce.next=2;break}return Ce.abrupt("return");case 2:return E=u.controlOption.transform,Ce.next=5,u.getGeoLocation();case 5:if(M=Ce.sent,Z=u.mapsService.getZoom(),Ce.t0=u.mapsService,Ce.t1=Z>15?Z:15,!E){Ce.next=15;break}return Ce.next=12,E(M);case 12:Ce.t2=Ce.sent,Ce.next=16;break;case 15:Ce.t2=M;case 16:Ce.t3=Ce.t2,Ce.t0.setZoomAndCenter.call(Ce.t0,Ce.t1,Ce.t3);case 18:case"end":return Ce.stop()}},m)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),u}return(0,ot.Z)(l,[{key:"getDefault",value:function(u){return(0,Oe.Z)((0,Oe.Z)({},lf((0,_t.Z)(l.prototype),"getDefault",this).call(this,u)),{},{title:"\u5B9A\u4F4D",btnIcon:Pa("l7-icon-reposition")})}},{key:"onAdd",value:function(){var u=lf((0,_t.Z)(l.prototype),"onAdd",this).call(this);return u.addEventListener("click",this.onClick),u}}]),l}(Lt);function jh(o){var d=ou();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function ou(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function Tc(o){return Object.keys(o!=null?o:{}).every(function(d){return["layer","name","img"].includes(d)})}var pu=function(o){(0,ut.Z)(l,o);var d=jh(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E=10?10:E>=5?5:E>=3?3:E>=2?2:1,m*E}},{key:"updateMetric",value:function(u){var m=this.getRoundNum(u),E=m<1e3?m+" m":m/1e3+" km";this.updateScale(this.mScale,E,m/u)}},{key:"updateImperial",value:function(u){var m=u*3.2808399,E,M,Z;m>5280?(E=m/5280,M=this.getRoundNum(E),this.updateScale(this.iScale,M+" mi",M/E)):(Z=this.getRoundNum(m),this.updateScale(this.iScale,Z+" ft",Z/m))}}]),l}(ue);function tm(o){var d=h0();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function h0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var j0=function(o){(0,ut.Z)(l,o);var d=tm(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Ec.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,Ln.Z)((0,gs.Z)(c),"updateDisabled",function(){var M=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||M.getZoom()<=M.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(M.getZoom()))),(c.disabled||M.getZoom()>=M.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,ot.Z)(l,[{key:"getDefault",value:function(u){return(0,Oe.Z)((0,Oe.Z)({},lf((0,_t.Z)(l.prototype),"getDefault",this).call(this,u)),{},{position:uo.BOTTOMRIGHT,name:"zoom",zoomInText:Pa("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Pa("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(u){lf((0,_t.Z)(l.prototype),"setOptions",this).call(this,u),this.checkUpdateOption(u,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var u=As("div","l7-control-zoom");return this.resetButtonGroup(u),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),u}},{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:"resetButtonGroup",value:function(u){hl(u),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",u,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",u)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",u,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(u,m,E,M,Z){var ne=As("button",E,M);return typeof u=="string"?ne.innerHTML=u:ne.append(u),ne.title=m,Z&&ne.addEventListener("click",Z),ne}}]),l}(ue);function t0(o){var d=Cv();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Cv(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var n0=function(o){(0,ut.Z)(l,o);var d=t0(l);function l(c){var u;(0,xt.Z)(this,l),u=d.call(this),(0,Ln.Z)((0,gs.Z)(u),"isShow",!0),(0,Ln.Z)((0,gs.Z)(u),"onMouseMove",function(E){var M,Z=u.mapsService.getMapContainer(),ne=(M=Z==null?void 0:Z.getBoundingClientRect())!==null&&M!==void 0?M:{},Ce=ne.left,Fe=Ce===void 0?0:Ce,bt=ne.top,Bt=bt===void 0?0:bt;u.setPopupPosition(E.clientX-Fe,E.clientY-Bt)}),(0,Ln.Z)((0,gs.Z)(u),"updateLngLatPosition",function(){if(!(!u.mapsService||u.popupOption.followCursor)){var E=u.lngLat,M=E.lng,Z=E.lat,ne=u.mapsService.lngLatToContainer([M,Z]),Ce=ne.x,Fe=ne.y;u.setPopupPosition(Ce,Fe)}}),(0,Ln.Z)((0,gs.Z)(u),"onKeyDown",function(E){E.keyCode===27&&u.remove()}),(0,Ln.Z)((0,gs.Z)(u),"onCloseButtonClick",function(E){E.stopPropagation&&E.stopPropagation(),u.hide()}),(0,Ln.Z)((0,gs.Z)(u),"update",function(){var E=!!u.lngLat,M=u.popupOption,Z=M.className,ne=M.style,Ce=M.maxWidth,Fe=M.anchor,bt=M.stopPropagation;if(!(!u.mapsService||!E||!u.content)){var Bt=u.mapsService.getMarkerContainer();if(!u.container&&Bt&&(u.container=As("div","l7-popup ".concat(Z!=null?Z:""," ").concat(u.isShow?"":"l7-popup-hide"),Bt),ne&&u.container.setAttribute("style",ne),u.tip=As("div","l7-popup-tip",u.container),u.container.appendChild(u.content),bt&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Pr){u.container.addEventListener(Pr,function(ti){ti.stopPropagation()})}),u.container.style.whiteSpace="nowrap"),u.updateLngLatPosition(),zn(u.container,"".concat(kt[Fe])),en(u.container,Fe,"popup"),Ce){var Cn=u.container.getBoundingClientRect(),An=Cn.width;An>parseFloat(Ce)&&(u.container.style.width=Ce)}else u.container.style.removeProperty("width")}}),u.popupOption=(0,Oe.Z)((0,Oe.Z)({},u.getDefault(c!=null?c:{})),c);var m=u.popupOption.lngLat;return m&&(u.lngLat=m),u}return(0,ot.Z)(l,[{key:"lngLat",get:function(){var u;return(u=this.popupOption.lngLat)!==null&&u!==void 0?u:{lng:0,lat:0}},set:function(u){this.popupOption.lngLat=u}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(u){this.mapsService=u.get(Ms.IMapService),this.sceneService=u.get(Ms.ISceneService),this.layerService=u.get(Ms.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=u,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var m=this.popupOption,E=m.html,M=m.text,Z=m.title;return E?this.setHTML(E):M&&this.setText(M),Z&&this.setTitle(Z),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&ks(this.content),this.container&&(ks(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(u){return this.show(),this.popupOption=(0,Oe.Z)((0,Oe.Z)({},this.popupOption),u),this.checkUpdateOption(u,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(ks(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(u,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(u,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(u,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(u,["html"])&&u.html?this.setHTML(u.html):this.checkUpdateOption(u,["text"])&&u.text&&this.setText(u.text),this.checkUpdateOption(u,["lngLat"])&&u.lngLat&&this.setLnglat(u.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&zu(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&Ga(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(u){return this.popupOption.html=u,this.setDOMContent(u)}},{key:"setText",value:function(u){return this.popupOption.text=u,this.setDOMContent(window.document.createTextNode(u))}},{key:"setTitle",value:function(u){this.show(),this.popupOption.title=u,u?(this.contentTitle||(this.contentTitle=As("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),hl(this.contentTitle),Va(this.contentTitle,u)):this.contentTitle&&(ks(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var u=this.lngLat,m=u.lng,E=u.lat;return this.popupOption.autoPan&&this.mapsService.panTo([m,E]),this}},{key:"setLngLat",value:function(u){return this.setLnglat(u)}},{key:"setLnglat",value:function(u){var m=this;return this.show(),this.lngLat=u,Array.isArray(u)&&(this.lngLat={lng:u[0],lat:u[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){m.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(u){return this.popupOption.maxWidth=u,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(u){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:tn.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(u){return this.show(),this.createContent(),Va(this.contentPanel,u),this.update(),this}},{key:"updateCloseOnClick",value:function(u){var m=this,E=this.mapsService;E&&(E==null||E.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!u&&requestAnimationFrame(function(){E==null||E.on("click",m.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(u){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!u&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(u){var m,E=(m=this.mapsService)===null||m===void 0?void 0:m.getContainer();E&&(E==null||E.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!u&&(E==null||E.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var u=this;if(this.content&&ks(this.content),this.contentTitle=void 0,this.content=As("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var m=Pa("l7-icon-guanbi");Ga(m,"l7-popup-close-button"),this.content.appendChild(m),this.popupOption.closeButtonOffsets&&(m.style.right=this.popupOption.closeButtonOffsets[0]+"px",m.style.top=this.popupOption.closeButtonOffsets[1]+"px"),m.setAttribute("aria-label","Close popup"),m.addEventListener("click",function(){u.hide()}),m.addEventListener("pointerup",function(E){E.stopPropagation()}),m.addEventListener("pointerdown",function(E){E.stopPropagation()}),this.closeButton=m}else this.closeButton=void 0;this.contentPanel=As("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(u,m){if(this.container){var E=this.popupOption.offsets;this.container.style.left=u+E[0]+"px",this.container.style.top=m-E[1]+"px"}}},{key:"checkUpdateOption",value:function(u,m){return m.some(function(E){return E in u})}}]),l}(uc.EventEmitter);function oy(o){var d=sy();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function sy(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var ix=Ns.get,H1=function(o){(0,ut.Z)(l,o);var d=oy(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E * + * { margin-left: 6px; } .l7-select-control--normal .l7-select-control-item input[type='checkbox'] { - height: 14px; width: 14px; + height: 14px; } .l7-select-control--normal .l7-select-control-item:hover { background-color: #f3f3f3; } .l7-select-control--image { - padding: 12px 12px 0 12px; - width: 474px; - height: 320px; - overflow: auto; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; - -webkit-box-sizing: border-box; - box-sizing: border-box; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; -} -.l7-select-control--image .l7-select-control-item { - margin-right: 12px; - border-radius: 2px; - overflow: hidden; - border: 1px solid #fff; -webkit-box-sizing: content-box; box-sizing: content-box; - width: calc((100% - 36px) / 3); + max-width: 420px; + max-height: 400px; + margin: 12px 0 0 12px; + overflow: auto; +} +.l7-select-control--image .l7-select-control-item { + position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; @@ -1567,29 +1569,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; + -webkit-box-sizing: content-box; + box-sizing: content-box; + width: 408px / 3 - 12px; + margin-right: 12px; margin-bottom: 12px; - position: relative; + overflow: hidden; font-size: 12px; + border: 1px solid #fff; + border-radius: 2px; } .l7-select-control--image .l7-select-control-item img { - width: 142px; + width: 100%; height: 80px; } .l7-select-control--image .l7-select-control-item input[type='checkbox'] { position: absolute; - right: 0; top: 0; + right: 0; } .l7-select-control--image .l7-select-control-item .l7-select-control-item-row { display: -webkit-box; display: -ms-flexbox; display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; line-height: 26px; } .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * { @@ -1598,9 +1606,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .l7-select-control--image .l7-select-control-item.l7-select-control-item-active { border-color: #0370fe; } -.l7-select-control--image .l7-select-control-item:nth-child(3n) { - margin-right: 0; -} .l7-select-control-item { cursor: pointer; } @@ -1900,25 +1905,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .l7-layer-popup__row + .l7-layer-popup__row { margin-top: 4px; } -`);var Q0,uy=(Q0={},(0,Cn.Z)(Q0,Fh.additive,{enable:!0,func:{srcRGB:qi.ONE,dstRGB:qi.ONE,srcAlpha:1,dstAlpha:1}}),(0,Cn.Z)(Q0,Fh.none,{enable:!1}),(0,Cn.Z)(Q0,Fh.normal,{enable:!0,func:{srcRGB:qi.SRC_ALPHA,dstRGB:qi.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,Cn.Z)(Q0,Fh.subtractive,{enable:!0,func:{srcRGB:qi.ONE,dstRGB:qi.ONE,srcAlpha:qi.ZERO,dstAlpha:qi.ONE_MINUS_SRC_COLOR},equation:{rgb:qi.FUNC_SUBTRACT,alpha:qi.FUNC_SUBTRACT}}),(0,Cn.Z)(Q0,Fh.max,{enable:!0,func:{srcRGB:qi.ONE,dstRGB:qi.ONE},equation:{rgb:qi.MAX_EXT}}),(0,Cn.Z)(Q0,Fh.min,{enable:!0,func:{srcRGB:qi.ONE,dstRGB:qi.ONE},equation:{rgb:qi.MIN_EXT}}),Q0),d0=function(a){return a["GAODE1.x"]="GAODE1.x",a["GAODE2.x"]="GAODE2.x",a.MAPBOX="MAPBOX",a.DEFUALT="DEFUALTMAP",a.SIMPLE="SIMPLE",a.GLOBEL="GLOBEL",a}({}),Gv=Fa.cloneDeep;function s_(a,p){var u=[p[0]-a[0],p[1]-a[1]],c=nd(u),l=[a[0]+c[0]*1e-4,a[1]+c[1]*1e-4];return l}function Ug(a,p,u){if(a.length>0&&p.version===d0["GAODE2.x"]){var c=u.coordCenter;typeof a[0].coordinates[0]=="number"?a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)}):a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)})}}function Mv(a,p){a.length>0&&p.version===d0.SIMPLE&&a.map(function(u){u.simpleCoordinate||(u.coordinates=z_(u.coordinates,p),u.simpleCoordinate=!0)})}function z_(a,p){if(typeof a[0]=="number")return p.simpleMapCoord.unproject(a);if(a[0]&&a[0][0]instanceof Array){var u=[];return a.map(function(l){var g=[];l.map(function(T){g.push(p.simpleMapCoord.unproject(T))}),u.push(g)}),u}else{var c=[];return a.map(function(l){c.push(p.simpleMapCoord.unproject(l))}),c}}function Ov(a,p){var u;if(!a.scale)return[];var c=(a==null||(u=a.scale)===null||u===void 0?void 0:u.scalers)||[],l=[];c.forEach(function(T){var B,G=T.field;(p.hasOwnProperty(G)||((B=a.scale)===null||B===void 0?void 0:B.type)==="variable")&&l.push(p[G])});var g=a.mapping?a.mapping(l):[];return g}function x1(a,p,u,c,l){var g=l==null?void 0:l.getLayerConfig(),T=g.arrow,B=T===void 0?{enable:!1}:T,G=p.map(function(ne){var Me={id:ne._id,coordinates:ne.coordinates};if(a.filter(function(Ot){return Ot.scale!==void 0}).forEach(function(Ot){var Pn=Ov(Ot,ne);Ot.needRemapping=!1,Ot.name==="color"&&(Pn=Pn.map(function(Mn){return Qr(Mn)})),Me[Ot.name]=Array.isArray(Pn)&&Pn.length===1?Pn[0]:Pn,Ot.name==="shape"&&(Me.shape=u.getIconFontKey(Me[Ot.name]))}),Me.shape==="line"&&B.enable){var Ge=Me.coordinates,Et=s_(Ge[0],Ge[1]);Me.coordinates.splice(1,0,Et,Et)}return Me});return Ug(G,c,l),Mv(G,c),G}function oE(a,p,u,c,l,g){var T=new r0(l,g),B=c.getLayerStyleAttributes()||[],G=T.data.dataArray,ne=G,Me=x1(B,ne,p,u,a);return T.destroy(),Me}function I3(a){return a.map(function(p){return typeof p=="string"&&(p=[p,{}]),p})}function L3(a,p,u,c){var l=a.multiPassRenderer,g=a.getLayerConfig(),T=g.enableTAA;return T?l.add(c("taa")):l.add(c("render")),I3(p).forEach(function(B){var G=(0,qn.Z)(B,2),ne=G[0],Me=G[1];l.add(u(ne),Me)}),l.add(u("copy")),l}var n4=function(){function a(p){(0,bt.Z)(this,a),this.layer=p}return(0,He.Z)(a,[{key:"pickRender",value:function(u){var c=this.layer.getContainer(),l=c.get(vr.ILayerService),g=this.layer;if(g.tileLayer)return g.tileLayer.pickRender(u);g.hooks.beforePickingEncode.call(),l.renderTileLayerMask(g),g.renderModels({ispick:!0}),g.hooks.afterPickingEncode.call()}},{key:"pick",value:function(u,c){var l=this.layer.getContainer(),g=l.get(vr.IPickingService);return u.type==="RasterLayer"?this.pickRasterLayer(u,c):(this.pickRender(c),g.pickFromPickingFBO(u,c))}},{key:"pickRasterLayer",value:function(u,c,l){var g=this.layer.getContainer(),T=g.get(vr.IPickingService),B=g.get(vr.IMapService),G=this.layer.getSource().extent,ne=vl(c.lngLat,G),Me={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},Ge=l||u;if(ne){var Et=this.readRasterValue(u,G,B,c.x,c.y);return Me.rasterValue=Et,T.triggerHoverOnLayer(Ge,Me),!0}else return Me.type=c.type==="mousemove"?"mouseout":"un"+c.type,T.triggerHoverOnLayer(Ge,(0,we.Z)((0,we.Z)({},Me),{},{type:"unpick"})),T.triggerHoverOnLayer(Ge,Me),!1}},{key:"readRasterValue",value:function(u,c,l,g,T){var B=u.getSource().data.dataArray[0],G=(0,qn.Z)(c,4),ne=G[0],Me=ne===void 0?0:ne,Ge=G[1],Et=Ge===void 0?0:Ge,Ot=G[2],Pn=Ot===void 0?10:Ot,Mn=G[3],Ir=Mn===void 0?-10:Mn,Ti=l.lngLatToContainer([Me,Et]),Ko=l.lngLatToContainer([Pn,Ir]),Zo=Ko.x-Ti.x,Qs=Ti.y-Ko.y,ga=[(g-Ti.x)/Zo,(T-Ko.y)/Qs],Ma=B.width||1,ll=B.height||1,Wl=Math.floor(ga[0]*Ma),jl=Math.floor(ga[1]*ll),ju=Math.max(0,jl-1)*Ma+Wl,Pu=B.data[ju];return Pu}},{key:"selectFeature",value:function(u){var c=this.layer,l=(0,qn.Z)(u,3),g=l[0],T=l[1],B=l[2];c.hooks.beforeSelect.call([g,T,B])}},{key:"highlightPickedFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2];this.layer.hooks.beforeHighlight.call([l,g,T])}},{key:"getFeatureById",value:function(u){return this.layer.getSource().getFeatureById(u)}}]),a}(),r4=function(){function a(p){(0,bt.Z)(this,a),this.layer=p;var u=this.layer.getContainer();this.rendererService=u.get(vr.IRendererService)}return(0,He.Z)(a,[{key:"getColorTexture",value:function(u,c){var l=this.getTextureKey(u,c);return this.key===l?this.colorTexture:(this.createColorTexture(u,c),this.key=l,this.colorTexture)}},{key:"createColorTexture",value:function(u,c){var l=this.rendererService.createTexture2D,g=this.getColorRampBar(u,c),T=l({data:new Uint8Array(g.data),width:g.width,height:g.height,flipY:!1});return this.colorTexture=T,T}},{key:"setColorTexture",value:function(u,c,l){this.key=this.getTextureKey(c,l),this.colorTexture=u}},{key:"destroy",value:function(){var u;(u=this.colorTexture)===null||u===void 0||u.destroy()}},{key:"getColorRampBar",value:function(u,c){switch(u.type){case"cat":return Gn(u);case"quantize":return Ei(u);case"custom":return In(u,c);case"linear":return tn(u,c);default:return Ar(u)}}},{key:"getTextureKey",value:function(u,c){var l;return"".concat(u.colors.join("_"),"_").concat(u==null||(l=u.positions)===null||l===void 0?void 0:l.join("_"),"_").concat(u.type,"_").concat(c==null?void 0:c.join("_"))}}]),a}(),i4=["passes"],yM=["moduleName","vertexShader","fragmentShader","inject","triangulation","segmentNumber"],P3,T2,$b;function sE(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=aE(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function aE(a,p){if(a){if(typeof a=="string")return k3(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return k3(a,p)}}function k3(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:{};return(0,bt.Z)(this,u),c=p.call(this),(0,Cn.Z)((0,ps.Z)(c),"id","".concat(Ms++)),(0,Cn.Z)((0,ps.Z)(c),"name","".concat(Ms)),(0,Cn.Z)((0,ps.Z)(c),"visible",!0),(0,Cn.Z)((0,ps.Z)(c),"zIndex",0),(0,Cn.Z)((0,ps.Z)(c),"inited",!1),(0,Cn.Z)((0,ps.Z)(c),"layerModelNeedUpdate",!1),(0,Cn.Z)((0,ps.Z)(c),"pickedFeatureID",null),(0,Cn.Z)((0,ps.Z)(c),"selectedFeatureID",null),(0,Cn.Z)((0,ps.Z)(c),"styleNeedUpdate",!1),(0,Cn.Z)((0,ps.Z)(c),"forceRender",!1),(0,Cn.Z)((0,ps.Z)(c),"clusterZoom",0),(0,Cn.Z)((0,ps.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Cn.Z)((0,ps.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Cn.Z)((0,ps.Z)(c),"hooks",{init:new bS,afterInit:new qw,beforeRender:new qw,beforeRenderData:new JC,afterRender:new ay,beforePickingEncode:new ay,afterPickingEncode:new ay,beforeHighlight:new ay(["pickedColor"]),afterHighlight:new ay,beforeSelect:new ay(["pickedColor"]),afterSelect:new ay,beforeDestroy:new ay,afterDestroy:new ay}),(0,Cn.Z)((0,ps.Z)(c),"models",[]),(0,Cn.Z)((0,ps.Z)(c),"startInit",!1),(0,Cn.Z)((0,ps.Z)(c),"layerChildren",[]),(0,Cn.Z)((0,ps.Z)(c),"masks",[]),Fd((0,ps.Z)(c),"configService",$b,(0,ps.Z)(c)),(0,Cn.Z)((0,ps.Z)(c),"animateOptions",{enable:!1}),(0,Cn.Z)((0,ps.Z)(c),"currentPickId",null),(0,Cn.Z)((0,ps.Z)(c),"encodeStyleAttribute",{}),(0,Cn.Z)((0,ps.Z)(c),"enableShaderEncodeStyles",[]),(0,Cn.Z)((0,ps.Z)(c),"enableDataEncodeStyles",[]),(0,Cn.Z)((0,ps.Z)(c),"enablg",[]),(0,Cn.Z)((0,ps.Z)(c),"pendingStyleAttributes",[]),(0,Cn.Z)((0,ps.Z)(c),"scaleOptions",{}),(0,Cn.Z)((0,ps.Z)(c),"animateStatus",!1),(0,Cn.Z)((0,ps.Z)(c),"isDestroyed",!1),(0,Cn.Z)((0,ps.Z)(c),"encodeDataLength",0),(0,Cn.Z)((0,ps.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var g=c.getLayerConfig();g&&g.autoFit&&c.fitBounds(g.fitBoundsOptions);var T=c.layerSource.getSourceCfg().autoRender;T&&c.reRender()}),c.name=l.name||c.id,c.zIndex=l.zIndex||0,c.rawConfig=l,c}return(0,He.Z)(u,[{key:"addMask",value:function(l){this.masks.push(l),this.enableMask()}},{key:"removeMask",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(l){this.masks.push(l)}},{key:"removeMaskLayer",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1),l.destroy()}},{key:"getAttribute",value:function(l){return this.styleAttributeService.getLayerStyleAttribute(l)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(l){var g=this;if(Object.keys(l).map(function(B){B in g.rawConfig&&(g.rawConfig[B]=l[B])}),!this.startInit)this.needUpdateConfig=(0,we.Z)((0,we.Z)({},this.needUpdateConfig),l);else{var T=this.container.get(vr.SceneID);this.configService.setLayerConfig(T,this.id,(0,we.Z)((0,we.Z)((0,we.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),l)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(l,g){this.container=l,this.sceneContainer=g}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(l){return this.plugins.push(l),this}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T=this,B,G,ne,Me,Ge,Et,Ot;return ro().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:B=this.container.get(vr.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(vr.IIconService),this.fontService=this.container.get(vr.IFontService),this.rendererService=this.container.get(vr.IRendererService),this.layerService=this.container.get(vr.ILayerService),this.debugService=this.container.get(vr.IDebugService),this.interactionService=this.container.get(vr.IInteractionService),this.pickingService=this.container.get(vr.IPickingService),this.mapService=this.container.get(vr.IMapService),G=this.getLayerConfig(),ne=G.enableMultiPassRenderer,Me=G.passes,ne&&Me!==null&&Me!==void 0&&Me.length&&Me.length>0&&this.mapService.on("mapAfterFrameChange",function(){T.renderLayers()}),this.cameraService=this.container.get(vr.ICameraService),this.coordinateService=this.container.get(vr.ICoordinateSystemService),this.shaderModuleService=this.container.get(vr.IShaderModuleService),this.postProcessingPassFactory=this.container.get(vr.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(vr.IFactoryNormalPass),this.styleAttributeService=this.container.get(vr.IStyleAttributeService),ne&&(this.multiPassRenderer=this.container.get(vr.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Ir){var Ti=Ir.attributeName,Ko=Ir.attributeField,Zo=Ir.attributeValues,Qs=Ir.updateOptions;T.styleAttributeService.updateStyleAttribute(Ti,{scale:(0,we.Z)({field:Ko},T.splitValuesAndCallbackInAttribute(Zo,Ko?void 0:T.getLayerConfig()[Ti]))},Qs)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(vr.ILayerPlugin),Ge=sE(this.plugins);try{for(Ge.s();!(Et=Ge.n()).done;)Ot=Et.value,Ot.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Ir){Ge.e(Ir)}finally{Ge.f()}return this.layerPickService=new n4(this),this.textureService=new r4(this),this.log(fm.LayerInitStart),Mn.next=31,this.hooks.init.promise();case 31:this.log(fm.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return Mn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"log",value:function(l){var g,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var B="".concat(this.id,".").concat(T,".").concat(l),G={id:this.id,type:this.type};(g=this.debugService)===null||g===void 0||g.log(B,G)}}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models.map(function(g){g.updateAttributesAndElements(l.attributes,l.elements)}):console.warn("data error")}},{key:"createModelData",value:function(l,g){var T;if((T=this.layerModel)!==null&&T!==void 0&&T.createModelData)return this.layerModel.createModelData(g);var B=this.calculateEncodeData(l,g),G=this.triangulation;return B&&G?this.styleAttributeService.createAttributesAndIndices(B,G):{attributes:void 0,elements:void 0}}},{key:"setLayerPickService",value:function(l){this.layerPickService=l}},{key:"calculateEncodeData",value:function(l,g){return this.inited?oE(this,this.fontService,this.mapService,this.styleAttributeService,l,g):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var l=this.getLayerConfig(),g=l.animateOption;g!=null&&g.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(l,g,T){return this.updateStyleAttribute("color",l,g,T),this}},{key:"texture",value:function(l,g,T){return this.updateStyleAttribute("texture",l,g,T),this}},{key:"rotate",value:function(l,g,T){return this.updateStyleAttribute("rotate",l,g,T),this}},{key:"size",value:function(l,g,T){return this.updateStyleAttribute("size",l,g,T),this}},{key:"filter",value:function(l,g,T){var B=this.updateStyleAttribute("filter",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"shape",value:function(l,g,T){this.shapeOption={field:l,values:g};var B=this.updateStyleAttribute("shape",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"label",value:function(l,g,T){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:l,attributeValues:g,updateOptions:T}),this}},{key:"animate",value:function(l){var g={};return Ey(l)?(g.enable=!0,g=(0,we.Z)((0,we.Z)({},g),l)):g.enable=l,this.updateLayerConfig({animateOption:g}),this}},{key:"source",value:function(l,g){return(l==null?void 0:l.type)==="source"?(this.setSource(l),this):(this.sourceOption={data:l,options:g},this.clusterZoom=0,this)}},{key:"setData",value:function(l,g){var T=this;return this.inited?(this.log(fm.SourceInitStart,Rl.UPDATE),this.layerSource.setData(l,g),this.log(fm.SourceInitEnd,Rl.UPDATE)):this.on("inited",function(){T.log(fm.SourceInitStart,Rl.UPDATE);var B=T.getSource();B?T.layerSource.setData(l,g):T.source(new r0(l,g)),T.layerSource.once("update",function(){T.log(fm.SourceInitEnd,Rl.UPDATE)})}),this}},{key:"style",value:function(l){var g=this,T=l.passes,B=(0,Vg.Z)(l,i4);T&&I3(T).forEach(function(ne){var Me=g.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ne[0]);Me&&Me.updateOptions(ne[1])});var G=B;return Object.keys(B).forEach(function(ne){var Me=B[ne];Array.isArray(Me)&&Me.length===2&&!sD(Me[0])&&!sD(Me[1])&&(G[ne]={field:Me[0],value:Me[1]})}),this.encodeStyle(G),this.updateLayerConfig(G),this}},{key:"encodeStyle",value:function(l){var g=this;Object.keys(l).forEach(function(T){[].concat((0,Fr.Z)(g.enableShaderEncodeStyles),(0,Fr.Z)(g.enableDataEncodeStyles)).includes(T)&&xM(l[T])&&(l[T].field||l[T].value)&&!M3(g.encodeStyleAttribute[T],l[T])?(g.encodeStyleAttribute[T]=l[T],g.updateStyleAttribute(T,l[T].field,l[T].value),g.inited&&(g.dataState.dataMappingNeedUpdate=!0)):g.encodeStyleAttribute[T]&&(delete g.encodeStyleAttribute[T],g.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(l,g){var T=(0,we.Z)({},this.scaleOptions);if(Ey(l)?this.scaleOptions=(0,we.Z)((0,we.Z)({},this.scaleOptions),l):this.scaleOptions[l]=g,this.styleAttributeService&&!M3(T,this.scaleOptions)){var B=Ey(l)?l:(0,Cn.Z)({},l,g);this.styleAttributeService.updateScaleAttribute(B)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(l),this))}},{key:"renderMultiPass",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){B.next=2;break}return B.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){B.next=7;break}return B.next=5,this.multiPassRenderer.render();case 5:B.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"active",value:function(l){var g={};return g.enableHighlight=Ey(l)?!0:l,Ey(l)?(g.enableHighlight=!0,l.color&&(g.highlightColor=l.color),l.mix&&(g.activeMix=l.mix)):g.enableHighlight=!!l,this.updateLayerConfig(g),this}},{key:"setActive",value:function(l,g){var T=this;if(Ey(l)){var B=l.x,G=B===void 0?0:B,ne=l.y,Me=ne===void 0?0:ne;this.updateLayerConfig({highlightColor:Ey(g)?g.color:this.getLayerConfig().highlightColor,activeMix:Ey(g)?g.mix:this.getLayerConfig().activeMix}),this.pick({x:G,y:Me})}else this.updateLayerConfig({pickedFeatureID:l,highlightColor:Ey(g)?g.color:this.getLayerConfig().highlightColor,activeMix:Ey(g)?g.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Zi(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"select",value:function(l){var g={};return g.enableSelect=Ey(l)?!0:l,Ey(l)?(g.enableSelect=!0,l.color&&(g.selectColor=l.color),l.mix&&(g.selectMix=l.mix)):g.enableSelect=!!l,this.updateLayerConfig(g),this}},{key:"setSelect",value:function(l,g){var T=this;if(Ey(l)){var B=l.x,G=B===void 0?0:B,ne=l.y,Me=ne===void 0?0:ne;this.updateLayerConfig({selectColor:Ey(g)?g.color:this.getLayerConfig().selectColor,selectMix:Ey(g)?g.mix:this.getLayerConfig().selectMix}),this.pick({x:G,y:Me})}else this.updateLayerConfig({pickedFeatureID:l,selectColor:Ey(g)?g.color:this.getLayerConfig().selectColor,selectMix:Ey(g)?g.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Zi(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"setBlend",value:function(l){return this.updateLayerConfig({blend:l}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(l){return this.zIndex=l,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(l){this.currentPickId=l}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(l){this.selectedFeatureID=l}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var l=this.mapService.getZoom(),g=this.getLayerConfig(),T=g.visible,B=g.minZoom,G=B===void 0?-1/0:B,ne=g.maxZoom,Me=ne===void 0?1/0:ne;return!!T&&l>=G&&l0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){this.layerChildren.map(function(Ge){return Ge.destroy(!1)}),this.layerChildren=[];var ne=this.getLayerConfig(),Me=ne.maskfence;Me&&(this.masks.map(function(Ge){return Ge.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(l=this.multiPassRenderer)===null||l===void 0||l.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(g=this.layerModel)===null||g===void 0||g.clearModels(G),(T=this.tileLayer)===null||T===void 0||T.destroy(),this.models=[],(B=this.debugService)===null||B===void 0||B.removeLog(this.id),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 l;this.models.forEach(function(g){return g.destroy()}),(l=this.layerModel)===null||l===void 0||l.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(l){return l.needRescale||l.needRemapping||l.needRegenerateVertices}).length}},{key:"setSource",value:function(l){var g=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=l,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var T=this.mapService.getZoom();this.layerSource.updateClusterData(T)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(B){var G=B.type;if(g.coordCenter===void 0){var ne,Me=g.layerSource.center;g.coordCenter=Me,(ne=g.mapService)!==null&&ne!==void 0&&ne.setCoordCenter&&g.mapService.setCoordCenter(Me)}if(G==="update"){if(g.tileLayer){g.tileLayer.reload();return}g.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(l){this.encodedData=l,this.encodeDataLength=l.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(l){return this.styleAttributeService.getLayerAttributeScale(l)}},{key:"getLegend",value:function(l){var g,T,B,G=this.styleAttributeService.getLayerStyleAttribute(l),ne=(G==null||(g=G.scale)===null||g===void 0?void 0:g.scalers)||[];return{type:(T=ne[0].option)===null||T===void 0?void 0:T.type,field:G==null||(B=G.scale)===null||B===void 0?void 0:B.field,items:this.getLegendItems(l)}}},{key:"getLegendItems",value:function(l){var g=this.styleAttributeService.getLayerAttributeScale(l);if(!g)return[];if(g.invertExtent){var T=g.range().map(function(ne){return(0,Cn.Z)({value:g.invertExtent(ne)},l,ne)});return T}else if(g.ticks){var B=g.ticks().map(function(ne){return(0,Cn.Z)({value:ne},l,g(ne))});return B}else if(g!=null&&g.domain){var G=g.domain().filter(function(ne){return!CM(ne)}).map(function(ne){return(0,Cn.Z)({value:ne},l,g(ne))});return G}return[]}},{key:"pick",value:function(l){var g=l.x,T=l.y;this.interactionService.triggerHover({x:g,y:T})}},{key:"boxSelect",value:function(l,g){this.pickingService.boxPickLayer(this,l,g)}},{key:"buildLayerModel",value:function(){var c=(0,Na.Z)(ro().mark(function g(T){var B=this,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo;return ro().wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return G=T.moduleName,ne=T.vertexShader,Me=T.fragmentShader,Ge=T.inject,Et=T.triangulation,Ot=T.segmentNumber,Pn=(0,Vg.Z)(T,yM),this.shaderModuleService.registerModule(G,{vs:ne,fs:Me,inject:Ge}),Mn=this.shaderModuleService.getModule(G),Ir=Mn.vs,Ti=Mn.fs,Ko=Mn.uniforms,Zo=this.rendererService.createModel,ga.abrupt("return",new Promise(function(Ma){var ll=B.styleAttributeService.createAttributesAndIndices(B.encodedData,Et,Ot),Wl=ll.attributes,jl=ll.elements,ju=ll.count,Pu=(0,we.Z)({attributes:Wl,uniforms:Ko,fs:Ti,vs:Ir,elements:jl,blend:uy[Fh.normal]},Pn);ju&&(Pu.count=ju);var Vc=Zo(Pu);Ma(Vc)}));case 5:case"end":return ga.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"createAttributes",value:function(l){var g=l.triangulation,T=this.styleAttributeService.createAttributes(this.encodedData,g),B=T.attributes;return B}},{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(l){var g=this.getLayerConfig(),T=g.enableHighlight,B=T===void 0?!0:T,G=g.enableSelect,ne=G===void 0?!0:G,Me=this.eventNames().indexOf(l)!==-1||this.eventNames().indexOf("un"+l)!==-1;return(l==="click"||l==="dblclick")&&ne&&(Me=!0),l==="mousemove"&&(B||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Me=!0),this.isVisible()&&Me}},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return B.stop()}},g)}));function l(){return c.apply(this,arguments)}return l}()},{key:"rebuildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.buildModels();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMulPass",value:function(){var c=(0,Na.Z)(ro().mark(function g(T){return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,T.render();case 2:case"end":return G.stop()}},g)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderModels",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(T){T.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)},(g==null?void 0:g.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(l,g,T,B){var G=this.configService.getAttributeConfig(this.id)||{};return M3(G[l],{field:g,values:T})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(l)!==-1&&this.configService.setAttributeConfig(this.id,(0,Cn.Z)({},l,{field:g,values:T})),this.startInit?this.styleAttributeService.updateStyleAttribute(l,{scale:(0,we.Z)({field:g},this.splitValuesAndCallbackInAttribute(T,this.getLayerConfig()[g]))},B):this.pendingStyleAttributes.push({attributeName:l,attributeField:g,attributeValues:T,updateOptions:B}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(l){console.warn("empty fn")}},{key:"processData",value:function(l){return l}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.models.forEach(function(G){return G.destroy()}),this.models=[],B.next=4,this.layerModel.initModels();case 4:this.models=B.sent;case 5:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(l,g){return{values:bM(l)?void 0:l,callback:bM(l)?l:void 0}}}]),u}(yf.EventEmitter),$b=$h(T2.prototype,"configService",[P3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T2);function La(a,p){return{enable:a,mask:255,func:{cmp:qi.EQUAL,ref:p?1:0,mask:1}}}function Ha(a){return a.maskOperation===es.OR?{enable:!0,mask:255,func:{cmp:qi.ALWAYS,ref:1,mask:255},opFront:{fail:qi.KEEP,zfail:qi.REPLACE,zpass:qi.REPLACE}}:{enable:!0,mask:255,func:{cmp:a.stencilType===nf.SINGLE||a.stencilIndex===0?qi.ALWAYS:qi.LESS,ref:a.stencilType===nf.SINGLE?1:a.stencilIndex===0?2:1,mask:255},opFront:{fail:qi.KEEP,zfail:qi.REPLACE,zpass:qi.REPLACE}}}function fl(a){switch(a){case"rotation":return{name:"Rotation",type:Ld.Attribute,descriptor:{name:"a_Rotation",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(u){var c=u.rotation,l=c===void 0?0:c;return Array.isArray(l)?[l[0]]:[l]}}};case"stroke":return{name:"stroke",type:Ld.Attribute,descriptor:{name:"a_Stroke",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:4,update:function(u){var c=u.stroke,l=c===void 0?[1,1,1,1]:c;return l}}};case"opacity":return{name:"opacity",type:Ld.Attribute,descriptor:{name:"a_Opacity",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(u){var c=u.opacity,l=c===void 0?1:c;return[l]}}};case"extrusionBase":return{name:"extrusionBase",type:Ld.Attribute,descriptor:{name:"a_ExtrusionBase",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(u){var c=u.extrusionBase,l=c===void 0?0:c;return[l]}}};case"offsets":return{name:"offsets",type:Ld.Attribute,descriptor:{name:"a_Offsets",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(u){var c=u.offsets;return c}}};default:return}}var pl,gc,Jc,Su=(pl=dw(vr.IGlobalConfigService),gc=function(){function a(p){(0,bt.Z)(this,a),(0,Cn.Z)(this,"preStyleAttribute",{}),(0,Cn.Z)(this,"encodeStyleAttribute",{}),Fd(this,"configService",Jc,this),this.layer=p,this.rendererService=p.getContainer().get(vr.IRendererService),this.pickingService=p.getContainer().get(vr.IPickingService),this.shaderModuleService=p.getContainer().get(vr.IShaderModuleService),this.styleAttributeService=p.getContainer().get(vr.IStyleAttributeService),this.mapService=p.getContainer().get(vr.IMapService),this.iconService=p.getContainer().get(vr.IIconService),this.fontService=p.getContainer().get(vr.IFontService),this.cameraService=p.getContainer().get(vr.ICameraService),this.layerService=p.getContainer().get(vr.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var u=this.rendererService.createTexture2D;this.createTexture2D=u}return(0,He.Z)(a,[{key:"getBlend",value:function(){var u=this.layer.getLayerConfig(),c=u.blend,l=c===void 0?"normal":c;return uy[Fh[l]]}},{key:"getStencil",value:function(u){var c=this.layer.getLayerConfig(),l=c.mask,g=l===void 0?!1:l,T=c.maskInside,B=T===void 0?!0:T,G=c.enableMask,ne=c.maskOperation,Me=ne===void 0?es.AND:ne;if(this.layer.type==="MaskLayer")return Ha({isStencil:!0,stencilType:nf.SINGLE});if(u.isStencil)return Ha((0,we.Z)((0,we.Z)({},u),{},{maskOperation:Me}));var Ge=g||G&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return La(Ge,B)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var p=(0,Na.Z)(ro().mark(function c(){return ro().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",!1);case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var p=(0,Na.Z)(ro().mark(function c(){return ro().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"initModels",value:function(){var p=(0,Na.Z)(ro().mark(function c(){return ro().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(u){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.duration||4,u.interval||.2,u.trailLength||.1]}},{key:"startModelAnimate",value:function(){var u=this.layer.getLayerConfig(),c=u.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var u=this.layer.encodeStyleAttribute,c="",l={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float"};this.layer.enableShaderEncodeStyles.forEach(function(T){u[T]&&(c+="#define USE_ATTRIBUTE_".concat(T.toUpperCase(),` 0.0; +`);var Vg,r1=(Vg={},(0,Ln.Z)(Vg,gd.additive,{enable:!0,func:{srcRGB:Di.ONE,dstRGB:Di.ONE,srcAlpha:1,dstAlpha:1}}),(0,Ln.Z)(Vg,gd.none,{enable:!1}),(0,Ln.Z)(Vg,gd.normal,{enable:!0,func:{srcRGB:Di.SRC_ALPHA,dstRGB:Di.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,Ln.Z)(Vg,gd.subtractive,{enable:!0,func:{srcRGB:Di.ONE,dstRGB:Di.ONE,srcAlpha:Di.ZERO,dstAlpha:Di.ONE_MINUS_SRC_COLOR},equation:{rgb:Di.FUNC_SUBTRACT,alpha:Di.FUNC_SUBTRACT}}),(0,Ln.Z)(Vg,gd.max,{enable:!0,func:{srcRGB:Di.ONE,dstRGB:Di.ONE},equation:{rgb:Di.MAX_EXT}}),(0,Ln.Z)(Vg,gd.min,{enable:!0,func:{srcRGB:Di.ONE,dstRGB:Di.ONE},equation:{rgb:Di.MIN_EXT}}),Vg);function X_(o){return o.map(function(d){return typeof d=="string"&&(d=[d,{}]),d})}function i1(o,d,l,c){var u=o.multiPassRenderer,m=o.getLayerConfig(),E=m.enableTAA;return E?u.add(c("taa")):u.add(c("render")),X_(d).forEach(function(M){var Z=(0,mi.Z)(M,2),ne=Z[0],Ce=Z[1];u.add(l(ne),Ce)}),u.add(l("copy")),u}var r_=function(){function o(d){(0,xt.Z)(this,o),this.layer=d}return(0,ot.Z)(o,[{key:"pickRender",value:function(l){var c=this.layer.getContainer(),u=c.get(Ms.ILayerService),m=this.layer;if(m.tileLayer)return m.tileLayer.pickRender(l);m.hooks.beforePickingEncode.call(),u.renderTileLayerMask(m),m.renderModels({ispick:!0}),m.hooks.afterPickingEncode.call()}},{key:"pick",value:function(l,c){var u=this.layer.getContainer(),m=u.get(Ms.IPickingService);return l.type==="RasterLayer"?this.pickRasterLayer(l,c):(this.pickRender(c),m.pickFromPickingFBO(l,c))}},{key:"pickRasterLayer",value:function(l,c,u){var m=this.layer.getContainer(),E=m.get(Ms.IPickingService),M=m.get(Ms.IMapService),Z=this.layer.getSource().extent,ne=xu(c.lngLat,Z),Ce={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},Fe=u||l;if(ne){var bt=this.readRasterValue(l,Z,M,c.x,c.y);return Ce.rasterValue=bt,E.triggerHoverOnLayer(Fe,Ce),!0}else return Ce.type=c.type==="mousemove"?"mouseout":"un"+c.type,E.triggerHoverOnLayer(Fe,(0,Oe.Z)((0,Oe.Z)({},Ce),{},{type:"unpick"})),E.triggerHoverOnLayer(Fe,Ce),!1}},{key:"readRasterValue",value:function(l,c,u,m,E){var M=l.getSource().data.dataArray[0],Z=(0,mi.Z)(c,4),ne=Z[0],Ce=ne===void 0?0:ne,Fe=Z[1],bt=Fe===void 0?0:Fe,Bt=Z[2],Cn=Bt===void 0?10:Bt,An=Z[3],Pr=An===void 0?-10:An,ti=u.lngLatToContainer([Ce,bt]),ho=u.lngLatToContainer([Cn,Pr]),bo=ho.x-ti.x,Ds=ti.y-ho.y,ta=[(m-ti.x)/bo,(E-ho.y)/Ds],aa=M.width||1,Ua=M.height||1,pl=Math.floor(ta[0]*aa),ru=Math.floor(ta[1]*Ua),Iu=Math.max(0,ru-1)*aa+pl,Vu=M.data[Iu];return Vu}},{key:"selectFeature",value:function(l){var c=this.layer,u=(0,mi.Z)(l,3),m=u[0],E=u[1],M=u[2];c.hooks.beforeSelect.call([m,E,M])}},{key:"highlightPickedFeature",value:function(l){var c=(0,mi.Z)(l,3),u=c[0],m=c[1],E=c[2];this.layer.hooks.beforeHighlight.call([u,m,E])}},{key:"getFeatureById",value:function(l){return this.layer.getSource().getFeatureById(l)}}]),o}(),IT=function(){function o(d){(0,xt.Z)(this,o),this.layer=d;var l=this.layer.getContainer();this.rendererService=l.get(Ms.IRendererService)}return(0,ot.Z)(o,[{key:"getColorTexture",value:function(l,c){var u=this.getTextureKey(l,c);return this.key===u?this.colorTexture:(this.createColorTexture(l,c),this.key=u,this.colorTexture)}},{key:"createColorTexture",value:function(l,c){var u=this.rendererService.createTexture2D,m=this.getColorRampBar(l,c),E=u({data:new Uint8Array(m.data),width:m.width,height:m.height,flipY:!1});return this.colorTexture=E,E}},{key:"setColorTexture",value:function(l,c,u){this.key=this.getTextureKey(c,u),this.colorTexture=l}},{key:"destroy",value:function(){var l;(l=this.colorTexture)===null||l===void 0||l.destroy()}},{key:"getColorRampBar",value:function(l,c){switch(l.type){case"cat":return Mr(l);case"quantize":return rr(l);case"custom":return to(l,c);case"linear":return nr(l,c);default:return ii(l)}}},{key:"getTextureKey",value:function(l,c){var u;return"".concat(l.colors.join("_"),"_").concat(l==null||(u=l.positions)===null||u===void 0?void 0:u.join("_"),"_").concat(l.type,"_").concat(c==null?void 0:c.join("_"))}}]),o}(),JL=["passes"],QL=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],x4,B3,w4;function Wk(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=eM(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function eM(o,d){if(o){if(typeof o=="string")return PT(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return PT(o,d)}}function PT(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:{};return(0,xt.Z)(this,l),c=d.call(this),(0,Ln.Z)((0,gs.Z)(c),"id","".concat(z3++)),(0,Ln.Z)((0,gs.Z)(c),"name","".concat(z3)),(0,Ln.Z)((0,gs.Z)(c),"visible",!0),(0,Ln.Z)((0,gs.Z)(c),"zIndex",0),(0,Ln.Z)((0,gs.Z)(c),"inited",!1),(0,Ln.Z)((0,gs.Z)(c),"layerModelNeedUpdate",!1),(0,Ln.Z)((0,gs.Z)(c),"pickedFeatureID",null),(0,Ln.Z)((0,gs.Z)(c),"selectedFeatureID",null),(0,Ln.Z)((0,gs.Z)(c),"styleNeedUpdate",!1),(0,Ln.Z)((0,gs.Z)(c),"forceRender",!1),(0,Ln.Z)((0,gs.Z)(c),"clusterZoom",0),(0,Ln.Z)((0,gs.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Ln.Z)((0,gs.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Ln.Z)((0,gs.Z)(c),"hooks",{init:new WE,afterInit:new yS,beforeRender:new yS,beforeRenderData:new aC,afterRender:new V1,beforePickingEncode:new V1,afterPickingEncode:new V1,beforeHighlight:new V1(["pickedColor"]),afterHighlight:new V1,beforeSelect:new V1(["pickedColor"]),afterSelect:new V1,beforeDestroy:new V1,afterDestroy:new V1}),(0,Ln.Z)((0,gs.Z)(c),"models",[]),(0,Ln.Z)((0,gs.Z)(c),"startInit",!1),(0,Ln.Z)((0,gs.Z)(c),"layerChildren",[]),(0,Ln.Z)((0,gs.Z)(c),"masks",[]),Fc((0,gs.Z)(c),"configService",w4,(0,gs.Z)(c)),(0,Ln.Z)((0,gs.Z)(c),"animateOptions",{enable:!1}),(0,Ln.Z)((0,gs.Z)(c),"currentPickId",null),(0,Ln.Z)((0,gs.Z)(c),"encodeStyleAttribute",{}),(0,Ln.Z)((0,gs.Z)(c),"enableShaderEncodeStyles",[]),(0,Ln.Z)((0,gs.Z)(c),"enableDataEncodeStyles",[]),(0,Ln.Z)((0,gs.Z)(c),"enablg",[]),(0,Ln.Z)((0,gs.Z)(c),"pendingStyleAttributes",[]),(0,Ln.Z)((0,gs.Z)(c),"scaleOptions",{}),(0,Ln.Z)((0,gs.Z)(c),"animateStatus",!1),(0,Ln.Z)((0,gs.Z)(c),"isDestroyed",!1),(0,Ln.Z)((0,gs.Z)(c),"encodeDataLength",0),(0,Ln.Z)((0,gs.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var m=c.getLayerConfig();m&&m.autoFit&&c.fitBounds(m.fitBoundsOptions);var E=c.layerSource.getSourceCfg().autoRender;E&&c.reRender()}),c.name=u.name||c.id,c.zIndex=u.zIndex||0,c.rawConfig=u,c}return(0,ot.Z)(l,[{key:"addMask",value:function(u){this.masks.push(u),this.enableMask()}},{key:"removeMask",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(u){this.masks.push(u)}},{key:"removeMaskLayer",value:function(u){var m=this.masks.indexOf(u);m>-1&&this.masks.splice(m,1),u.destroy()}},{key:"getAttribute",value:function(u){return this.styleAttributeService.getLayerStyleAttribute(u)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(u){var m=this;if(Object.keys(u).map(function(M){M in m.rawConfig&&(m.rawConfig[M]=u[M])}),!this.startInit)this.needUpdateConfig=(0,Oe.Z)((0,Oe.Z)({},this.needUpdateConfig),u);else{var E=this.container.get(Ms.SceneID);this.configService.setLayerConfig(E,this.id,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),u)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(u,m){this.container=u,this.sceneContainer=m}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(u){return this.plugins.push(u),this}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt;return Wi().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:M=this.container.get(Ms.SceneID),this.startInit=!0,this.configService.setLayerConfig(M,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Ms.IIconService),this.fontService=this.container.get(Ms.IFontService),this.rendererService=this.container.get(Ms.IRendererService),this.layerService=this.container.get(Ms.ILayerService),this.debugService=this.container.get(Ms.IDebugService),this.interactionService=this.container.get(Ms.IInteractionService),this.pickingService=this.container.get(Ms.IPickingService),this.mapService=this.container.get(Ms.IMapService),Z=this.getLayerConfig(),ne=Z.enableMultiPassRenderer,Ce=Z.passes,ne&&Ce!==null&&Ce!==void 0&&Ce.length&&Ce.length>0&&this.mapService.on("mapAfterFrameChange",function(){E.renderLayers()}),this.cameraService=this.container.get(Ms.ICameraService),this.coordinateService=this.container.get(Ms.ICoordinateSystemService),this.shaderModuleService=this.container.get(Ms.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Ms.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Ms.IFactoryNormalPass),this.styleAttributeService=this.container.get(Ms.IStyleAttributeService),ne&&(this.multiPassRenderer=this.container.get(Ms.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Pr){var ti=Pr.attributeName,ho=Pr.attributeField,bo=Pr.attributeValues,Ds=Pr.updateOptions;E.styleAttributeService.updateStyleAttribute(ti,{scale:(0,Oe.Z)({field:ho},E.splitValuesAndCallbackInAttribute(bo,ho?void 0:E.getLayerConfig()[ti]))},Ds)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Ms.ILayerPlugin),Fe=Wk(this.plugins);try{for(Fe.s();!(bt=Fe.n()).done;)Bt=bt.value,Bt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Pr){Fe.e(Pr)}finally{Fe.f()}return this.layerPickService=new r_(this),this.textureService=new IT(this),this.log(Bv.LayerInitStart),An.next=31,this.hooks.init.promise();case 31:this.log(Bv.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return An.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"log",value:function(u){var m,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var M="".concat(this.id,".").concat(E,".").concat(u),Z={id:this.id,type:this.type};(m=this.debugService)===null||m===void 0||m.log(M,Z)}}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models.map(function(m){m.updateAttributesAndElements(u.attributes,u.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(u){this.layerPickService=u}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var u=this.getLayerConfig(),m=u.animateOption;m!=null&&m.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(u,m,E){return this.updateStyleAttribute("color",u,m,E),this}},{key:"texture",value:function(u,m,E){return this.updateStyleAttribute("texture",u,m,E),this}},{key:"rotate",value:function(u,m,E){return this.updateStyleAttribute("rotate",u,m,E),this}},{key:"size",value:function(u,m,E){return this.updateStyleAttribute("size",u,m,E),this}},{key:"filter",value:function(u,m,E){var M=this.updateStyleAttribute("filter",u,m,E);return this.dataState.dataSourceNeedUpdate=M&&this.inited,this}},{key:"shape",value:function(u,m,E){this.shapeOption={field:u,values:m};var M=this.updateStyleAttribute("shape",u,m,E);return this.dataState.dataSourceNeedUpdate=M&&this.inited,this}},{key:"label",value:function(u,m,E){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:u,attributeValues:m,updateOptions:E}),this}},{key:"animate",value:function(u){var m={};return Ey(u)?(m.enable=!0,m=(0,Oe.Z)((0,Oe.Z)({},m),u)):m.enable=u,this.updateLayerConfig({animateOption:m}),this}},{key:"source",value:function(u,m){return(u==null?void 0:u.type)==="source"?(this.setSource(u),this):(this.sourceOption={data:u,options:m},this.clusterZoom=0,this)}},{key:"setData",value:function(u,m){var E=this;return this.inited?(this.log(Bv.SourceInitStart,Ll.UPDATE),this.layerSource.setData(u,m),this.log(Bv.SourceInitEnd,Ll.UPDATE)):this.on("inited",function(){E.log(Bv.SourceInitStart,Ll.UPDATE);var M=E.getSource();M?E.layerSource.setData(u,m):E.source(new Ew(u,m)),E.layerSource.once("update",function(){E.log(Bv.SourceInitEnd,Ll.UPDATE)})}),this}},{key:"style",value:function(u){var m=this,E=u.passes,M=(0,dm.Z)(u,JL);E&&X_(E).forEach(function(ne){var Ce=m.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ne[0]);Ce&&Ce.updateOptions(ne[1])}),M.borderColor&&(M.stroke=M.borderColor),M.borderWidth&&(M.strokeWidth=M.borderWidth);var Z=M;return Object.keys(M).forEach(function(ne){var Ce=M[ne];Array.isArray(Ce)&&Ce.length===2&&!MT(Ce[0])&&!MT(Ce[1])&&(Z[ne]={field:Ce[0],value:Ce[1]})}),this.encodeStyle(Z),this.updateLayerConfig(Z),this}},{key:"encodeStyle",value:function(u){var m=this;Object.keys(u).forEach(function(E){[].concat((0,Pn.Z)(m.enableShaderEncodeStyles),(0,Pn.Z)(m.enableDataEncodeStyles)).includes(E)&&jk(u[E])&&(u[E].field||u[E].value)&&!EC(m.encodeStyleAttribute[E],u[E])?(m.encodeStyleAttribute[E]=u[E],m.updateStyleAttribute(E,u[E].field,u[E].value),m.inited&&(m.dataState.dataMappingNeedUpdate=!0)):m.encodeStyleAttribute[E]&&(delete m.encodeStyleAttribute[E],m.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(u,m){var E=(0,Oe.Z)({},this.scaleOptions);if(Ey(u)?this.scaleOptions=(0,Oe.Z)((0,Oe.Z)({},this.scaleOptions),u):this.scaleOptions[u]=m,this.styleAttributeService&&!EC(E,this.scaleOptions)){var M=Ey(u)?u:(0,Ln.Z)({},u,m);this.styleAttributeService.updateScaleAttribute(M)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(u),this))}},{key:"renderMultiPass",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){M.next=2;break}return M.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){M.next=7;break}return M.next=5,this.multiPassRenderer.render();case 5:M.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"active",value:function(u){var m={};return m.enableHighlight=Ey(u)?!0:u,Ey(u)?(m.enableHighlight=!0,u.color&&(m.highlightColor=u.color),u.mix&&(m.activeMix=u.mix)):m.enableHighlight=!!u,this.updateLayerConfig(m),this}},{key:"setActive",value:function(u,m){var E=this;if(Ey(u)){var M=u.x,Z=M===void 0?0:M,ne=u.y,Ce=ne===void 0?0:ne;this.updateLayerConfig({highlightColor:Ey(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Ey(m)?m.mix:this.getLayerConfig().activeMix}),this.pick({x:Z,y:Ce})}else this.updateLayerConfig({pickedFeatureID:u,highlightColor:Ey(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Ey(m)?m.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Vr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"select",value:function(u){var m={};return m.enableSelect=Ey(u)?!0:u,Ey(u)?(m.enableSelect=!0,u.color&&(m.selectColor=u.color),u.mix&&(m.selectMix=u.mix)):m.enableSelect=!!u,this.updateLayerConfig(m),this}},{key:"setSelect",value:function(u,m){var E=this;if(Ey(u)){var M=u.x,Z=M===void 0?0:M,ne=u.y,Ce=ne===void 0?0:ne;this.updateLayerConfig({selectColor:Ey(m)?m.color:this.getLayerConfig().selectColor,selectMix:Ey(m)?m.mix:this.getLayerConfig().selectMix}),this.pick({x:Z,y:Ce})}else this.updateLayerConfig({pickedFeatureID:u,selectColor:Ey(m)?m.color:this.getLayerConfig().selectColor,selectMix:Ey(m)?m.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Vr(u)).then(function(){setTimeout(function(){E.reRender()},1)})}},{key:"setBlend",value:function(u){return this.updateLayerConfig({blend:u}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(u){return this.zIndex=u,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(u){this.currentPickId=u}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(u){this.selectedFeatureID=u}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var u=this.mapService.getZoom(),m=this.getLayerConfig(),E=m.visible,M=m.minZoom,Z=M===void 0?-1/0:M,ne=m.maxZoom,Ce=ne===void 0?1/0:ne;return!!E&&u>=Z&&u0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(u=this.layerModel)===null||u===void 0||u.uniformBuffers.forEach(function(bt){bt.destroy()}),this.layerChildren.map(function(bt){return bt.destroy(!1)}),this.layerChildren=[];var Ce=this.getLayerConfig(),Fe=Ce.maskfence;Fe&&(this.masks.map(function(bt){return bt.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(m=this.multiPassRenderer)===null||m===void 0||m.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(E=this.layerModel)===null||E===void 0||E.clearModels(ne),(M=this.tileLayer)===null||M===void 0||M.destroy(),this.models=[],(Z=this.debugService)===null||Z===void 0||Z.removeLog(this.id),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 u;this.models.forEach(function(m){return m.destroy()}),(u=this.layerModel)===null||u===void 0||u.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(u){return u.needRescale||u.needRemapping||u.needRegenerateVertices}).length}},{key:"setSource",value:function(u){var m=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=u,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var E=this.mapService.getZoom();this.layerSource.updateClusterData(E)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(M){var Z=M.type;if(m.coordCenter===void 0){var ne,Ce=m.layerSource.center;m.coordCenter=Ce,(ne=m.mapService)!==null&&ne!==void 0&&ne.setCoordCenter&&m.mapService.setCoordCenter(Ce)}if(Z==="update"){if(m.tileLayer){m.tileLayer.reload();return}m.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(u){this.encodedData=u,this.encodeDataLength=u.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(u){return this.styleAttributeService.getLayerAttributeScale(u)}},{key:"getLegend",value:function(u){var m,E,M,Z=this.styleAttributeService.getLayerStyleAttribute(u),ne=(Z==null||(m=Z.scale)===null||m===void 0?void 0:m.scalers)||[];return{type:(E=ne[0].option)===null||E===void 0?void 0:E.type,field:Z==null||(M=Z.scale)===null||M===void 0?void 0:M.field,items:this.getLegendItems(u)}}},{key:"getLegendItems",value:function(u){var m=this.styleAttributeService.getLayerAttributeScale(u);if(!m)return[];if(m.invertExtent){var E=m.range().map(function(ne){return(0,Ln.Z)({value:m.invertExtent(ne)},u,ne)});return E}else if(m.ticks){var M=m.ticks().map(function(ne){return(0,Ln.Z)({value:ne},u,m(ne))});return M}else if(m!=null&&m.domain){var Z=m.domain().filter(function(ne){return!DF(ne)}).map(function(ne){return(0,Ln.Z)({value:ne},u,m(ne))});return Z}return[]}},{key:"pick",value:function(u){var m=u.x,E=u.y;this.interactionService.triggerHover({x:m,y:E})}},{key:"boxSelect",value:function(u,m){this.pickingService.boxPickLayer(this,u,m)}},{key:"buildLayerModel",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){var M=this,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo;return Wi().wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:return Z=E.moduleName,ne=E.vertexShader,Ce=E.fragmentShader,Fe=E.inject,bt=E.triangulation,Bt=E.styleOption,Cn=(0,dm.Z)(E,QL),this.shaderModuleService.registerModule(Z,{vs:ne,fs:Ce,inject:Fe}),An=this.shaderModuleService.getModule(Z),Pr=An.vs,ti=An.fs,ho=An.uniforms,bo=this.rendererService.createModel,ta.abrupt("return",new Promise(function(aa){var Ua=M.styleAttributeService.createAttributesAndIndices(M.encodedData,bt,Bt),pl=Ua.attributes,ru=Ua.elements,Iu=Ua.count,Vu=(0,Oe.Z)({attributes:pl,uniforms:ho,fs:ti,vs:Pr,elements:ru,blend:r1[gd.normal],uniformBuffers:[].concat((0,Pn.Z)(M.layerModel.uniformBuffers),(0,Pn.Z)(M.rendererService.uniformBuffers)),textures:M.layerModel.textures},Cn);Iu&&(Vu.count=Iu);var th=bo(Vu);aa(th)}));case 5:case"end":return ta.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"createAttributes",value:function(u){var m=u.triangulation,E=this.styleAttributeService.createAttributes(this.encodedData,m),M=E.attributes;return M}},{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(u){var m=this.getLayerConfig(),E=m.enableHighlight,M=E===void 0?!0:E,Z=m.enableSelect,ne=Z===void 0?!0:Z,Ce=this.eventNames().indexOf(u)!==-1||this.eventNames().indexOf("un"+u)!==-1;return(u==="click"||u==="dblclick")&&ne&&(Ce=!0),u==="mousemove"&&(M||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Ce=!0),this.isVisible()&&Ce}},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return M.stop()}},m)}));function u(){return c.apply(this,arguments)}return u}()},{key:"rebuildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.buildModels();case 2:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"renderMulPass",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,E.render();case 2:case"end":return Z.stop()}},m)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"renderModels",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(E){E.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)},(m==null?void 0:m.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(u,m,E,M){var Z=this.configService.getAttributeConfig(this.id)||{};return EC(Z[u],{field:m,values:E})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(u)!==-1&&this.configService.setAttributeConfig(this.id,(0,Ln.Z)({},u,{field:m,values:E})),this.startInit?this.styleAttributeService.updateStyleAttribute(u,{scale:(0,Oe.Z)({field:m},this.splitValuesAndCallbackInAttribute(E,this.getLayerConfig()[m]))},M):this.pendingStyleAttributes.push({attributeName:u,attributeField:m,attributeValues:E,updateOptions:M}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(u){console.warn("empty fn")}},{key:"processData",value:function(u){return u}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return this.models.forEach(function(Z){return Z.destroy()}),this.models=[],M.next=4,this.layerModel.initModels();case 4:this.models=M.sent;case 5:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(u){return{values:C4(u)?void 0:u,callback:C4(u)?u:void 0}}}]),l}(uc.EventEmitter),w4=kh(B3.prototype,"configService",[x4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B3);function Zk(o,d){return{enable:o,mask:255,func:{cmp:Di.EQUAL,ref:d?1:0,mask:1}}}function tM(o){return o.maskOperation===ss.OR?{enable:!0,mask:255,func:{cmp:Di.ALWAYS,ref:1,mask:255},opFront:{fail:Di.KEEP,zfail:Di.REPLACE,zpass:Di.REPLACE}}:{enable:!0,mask:255,func:{cmp:o.stencilType===Pd.SINGLE||o.stencilIndex===0?Di.ALWAYS:Di.LESS,ref:o.stencilType===Pd.SINGLE?1:o.stencilIndex===0?2:1,mask:255},opFront:{fail:Di.KEEP,zfail:Di.REPLACE,zpass:Di.REPLACE}}}var Ks={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},Cl={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"},Ra=function(o){return o[o.POSITION=0]="POSITION",o[o.COLOR=1]="COLOR",o[o.VERTEX_ID=2]="VERTEX_ID",o[o.PICKING_COLOR=3]="PICKING_COLOR",o[o.STROKE=4]="STROKE",o[o.OPACITY=5]="OPACITY",o[o.OFFSETS=6]="OFFSETS",o[o.ROTATION=7]="ROTATION",o[o.EXTRUSION_BASE=8]="EXTRUSION_BASE",o[o.SIZE=9]="SIZE",o[o.SHAPE=10]="SHAPE",o[o.EXTRUDE=11]="EXTRUDE",o[o.MAX=12]="MAX",o}({});function cl(o){switch(o){case"rotation":return{name:"Rotation",type:wd.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Ra.ROTATION,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.rotation,u=c===void 0?0:c;return Array.isArray(u)?[u[0]]:[u]}}};case"stroke":return{name:"stroke",type:wd.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Ra.STROKE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:4,update:function(l){var c=l.stroke,u=c===void 0?[1,1,1,1]:c;return u}}};case"opacity":return{name:"opacity",type:wd.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Ra.OPACITY,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.opacity,u=c===void 0?1:c;return[u]}}};case"extrusionBase":return{name:"extrusionBase",type:wd.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:Ra.EXTRUSION_BASE,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.extrusionBase,u=c===void 0?0:c;return[u]}}};case"offsets":return{name:"offsets",type:wd.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Ra.OFFSETS,buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(l){var c=l.offsets;return c}}};case"thetaOffset":return{name:"thetaOffset",type:wd.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(l){var c=l.thetaOffset,u=c===void 0?1:c;return[u]}}};default:return}}var Ml,Rl,Mc,Sh={opacity:Ra.OPACITY,stroke:Ra.STROKE,offsets:Ra.OFFSETS,rotation:Ra.ROTATION,extrusionBase:Ra.EXTRUSION_BASE},Gu=(Ml=T0(Ms.IGlobalConfigService),Rl=function(){function o(d){(0,xt.Z)(this,o),(0,Ln.Z)(this,"uniformBuffers",[]),(0,Ln.Z)(this,"textures",[]),(0,Ln.Z)(this,"preStyleAttribute",{}),(0,Ln.Z)(this,"encodeStyleAttribute",{}),Fc(this,"configService",Mc,this),this.layer=d,this.rendererService=d.getContainer().get(Ms.IRendererService),this.pickingService=d.getContainer().get(Ms.IPickingService),this.shaderModuleService=d.getContainer().get(Ms.IShaderModuleService),this.styleAttributeService=d.getContainer().get(Ms.IStyleAttributeService),this.mapService=d.getContainer().get(Ms.IMapService),this.iconService=d.getContainer().get(Ms.IIconService),this.fontService=d.getContainer().get(Ms.IFontService),this.cameraService=d.getContainer().get(Ms.ICameraService),this.layerService=d.getContainer().get(Ms.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var l=this.rendererService.createTexture2D;this.createTexture2D=l}return(0,ot.Z)(o,[{key:"getBlend",value:function(){var l=this.layer.getLayerConfig(),c=l.blend,u=c===void 0?"normal":c;return r1[gd[u]]}},{key:"getStencil",value:function(l){var c=this.layer.getLayerConfig(),u=c.mask,m=u===void 0?!1:u,E=c.maskInside,M=E===void 0?!0:E,Z=c.enableMask,ne=c.maskOperation,Ce=ne===void 0?ss.AND:ne;if(this.layer.type==="MaskLayer")return tM({isStencil:!0,stencilType:Pd.SINGLE});if(l.isStencil)return tM((0,Oe.Z)((0,Oe.Z)({},l),{},{maskOperation:Ce}));var Fe=m||Z&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Zk(Fe,M)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){return Wi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",!1);case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){return Wi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"initModels",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){return Wi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(l){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.duration||4,l.interval||.2,l.trailLength||.1]}},{key:"startModelAnimate",value:function(){var l=this.layer.getLayerConfig(),c=l.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var l=this.layer.encodeStyleAttribute,c="",u=[];this.layer.enableShaderEncodeStyles.forEach(function(M){l[M]?c+="#define USE_ATTRIBUTE_".concat(M.toUpperCase(),` 0.0; -`)),c+=` - #ifdef USE_ATTRIBUTE_`.concat(T.toUpperCase(),` - attribute `).concat(l[T]," a_").concat(T.charAt(0).toUpperCase()+T.slice(1),`; - #else - uniform `).concat(l[T]," u_").concat(T,`; - #endif +`):u.push(" ".concat(Cl[M]," u_").concat(M,";")),c+=` + #ifdef USE_ATTRIBUTE_`.concat(M.toUpperCase(),` + layout(location = `).concat(Sh[M],") in ").concat(Cl[M]," a_").concat(M.charAt(0).toUpperCase()+M.slice(1),`; + #endif - `)});var g="";return this.layer.enableShaderEncodeStyles.forEach(function(T){g+=` + `)});var m=u.length?` +layout(std140) uniform AttributeUniforms { +`.concat(u.join(` +`),` +}; + `):"";c+=m;var E="";return this.layer.enableShaderEncodeStyles.forEach(function(M){E+=` -#ifdef USE_ATTRIBUTE_`.concat(T.toUpperCase(),` - `).concat(l[T]," ").concat(T," = a_").concat(T.charAt(0).toUpperCase()+T.slice(1),`; -#else - `).concat(l[T]," ").concat(T," = u_").concat(T,`; -#endif + #ifdef USE_ATTRIBUTE_`.concat(M.toUpperCase(),` + `).concat(Cl[M]," ").concat(M," = a_").concat(M.charAt(0).toUpperCase()+M.slice(1),`; + #else + `).concat(Cl[M]," ").concat(M," = u_").concat(M,`; + #endif -`)}),{"vs:#decl":c,"vs:#main-start":g}}},{key:"getStyleAttribute",value:function(){var u=this,c={},l={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0};return this.layer.enableShaderEncodeStyles.forEach(function(g){if(!u.layer.encodeStyleAttribute[g]){var T=u.layer.getLayerConfig()[g],B=typeof T=="undefined"?l[g]:T;g==="stroke"&&(B=Qr(B)),c["u_"+g]=B}}),c}},{key:"registerStyleAttribute",value:function(){var u=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(c){var l=fl(c);l&&u.styleAttributeService.registerStyleAttribute(l)})}},{key:"updateEncodeAttribute",value:function(u,c){this.encodeStyleAttribute[u]=c}}]),a}(),Jc=$h(gc.prototype,"configService",[pl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc),Cc=function(a){return a[a.solid=0]="solid",a[a.dash=1]="dash",a}({}),Tc=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a}({}),Ch=function(a){return a.NORMAL="normal",a.REPLACE="replace",a}({}),Wh=function(a){return a[a.pixel=0]="pixel",a[a.meter=1]="meter",a}({}),jf=function(a){return a.ALWAYS="always",a.DRAGEND="dragend",a}({});function Gh(a){var p=lf();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function lf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var zg=function(a){(0,ft.Z)(u,a);var p=Gh(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&(g=1/Math.sqrt(g)),a[0]=p[0]*g,a[1]=p[1]*g,a[2]=p[2]*g,a}function Lx(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]}function lD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],G=u[2];return a[0]=l*G-g*B,a[1]=g*T-c*G,a[2]=c*B-l*T,a}function o0(a,p,u,c){var l=p[0],g=p[1],T=p[2];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a}function rX(a,p,u,c,l,g){var T=g*g,B=T*(2*g-3)+1,G=T*(g-2)+g,ne=T*(g-1),Me=T*(3-2*g);return a[0]=p[0]*B+u[0]*G+c[0]*ne+l[0]*Me,a[1]=p[1]*B+u[1]*G+c[1]*ne+l[1]*Me,a[2]=p[2]*B+u[2]*G+c[2]*ne+l[2]*Me,a}function iX(a,p,u,c,l,g){var T=1-g,B=T*T,G=g*g,ne=B*T,Me=3*g*B,Ge=3*G*T,Et=G*g;return a[0]=p[0]*ne+u[0]*Me+c[0]*Ge+l[0]*Et,a[1]=p[1]*ne+u[1]*Me+c[1]*Ge+l[1]*Et,a[2]=p[2]*ne+u[2]*Me+c[2]*Ge+l[2]*Et,a}function r6(a,p){p=p||1;var u=Ro()*2*Math.PI,c=Ro()*2-1,l=Math.sqrt(1-c*c)*p;return a[0]=Math.cos(u)*l,a[1]=Math.sin(u)*l,a[2]=c*p,a}function uD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[3]*c+u[7]*l+u[11]*g+u[15];return T=T||1,a[0]=(u[0]*c+u[4]*l+u[8]*g+u[12])/T,a[1]=(u[1]*c+u[5]*l+u[9]*g+u[13])/T,a[2]=(u[2]*c+u[6]*l+u[10]*g+u[14])/T,a}function oX(a,p,u){var c=p[0],l=p[1],g=p[2];return a[0]=c*u[0]+l*u[3]+g*u[6],a[1]=c*u[1]+l*u[4]+g*u[7],a[2]=c*u[2]+l*u[5]+g*u[8],a}function az(a,p,u){var c=u[0],l=u[1],g=u[2],T=u[3],B=p[0],G=p[1],ne=p[2],Me=l*ne-g*G,Ge=g*B-c*ne,Et=c*G-l*B,Ot=l*Et-g*Ge,Pn=g*Me-c*Et,Mn=c*Ge-l*Me,Ir=T*2;return Me*=Ir,Ge*=Ir,Et*=Ir,Ot*=2,Pn*=2,Mn*=2,a[0]=B+Me+Ot,a[1]=G+Ge+Pn,a[2]=ne+Et+Mn,a}function hb(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0],g[1]=l[1]*Math.cos(c)-l[2]*Math.sin(c),g[2]=l[1]*Math.sin(c)+l[2]*Math.cos(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function lz(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[2]*Math.sin(c)+l[0]*Math.cos(c),g[1]=l[1],g[2]=l[2]*Math.cos(c)-l[0]*Math.sin(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function a4(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0]*Math.cos(c)-l[1]*Math.sin(c),g[1]=l[0]*Math.sin(c)+l[1]*Math.cos(c),g[2]=l[2],a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function EM(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2],G=Math.sqrt(u*u+c*c+l*l),ne=Math.sqrt(g*g+T*T+B*B),Me=G*ne,Ge=Me&&Lx(a,p)/Me;return Math.acos(Math.min(Math.max(Ge,-1),1))}function uz(a){return a[0]=0,a[1]=0,a[2]=0,a}function cz(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"}function i6(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]}function sX(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2];return Math.abs(u-g)<=ld*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-T)<=ld*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(l-B)<=ld*Math.max(1,Math.abs(l),Math.abs(B))}var l4=JN,o6=QN,aX=iz,lX=wM,I2=t6,cD=aD,Xv=SM,s6=function(){var a=$_();return function(p,u,c,l,g,T){var B,G;for(u||(u=3),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0)for(var ga=Ge.length,Ma=ga-2*(G+1);Ma+G+20&&arguments[0]!==void 0?arguments[0]:{};(0,bt.Z)(this,a),(0,Cn.Z)(this,"lastFlip",-1),(0,Cn.Z)(this,"miter",zf(0,0)),(0,Cn.Z)(this,"started",!1),(0,Cn.Z)(this,"dash",!1),(0,Cn.Z)(this,"totalDistance",0),(0,Cn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,He.Z)(a,[{key:"simpleExtrude",value:function(u){var c=this.complex;if(u.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var l=u.length,g=c.startIndex,T=1;Tthis.miterLimit&&(Vc=!0)}Vc?(Ot.push(this.normal[0],this.normal[1],0),Ot.push(ju[0],ju[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip!==-Pu?[c,c+2,c+3]:[c+2,c+1,c+3])),Ge.push(c+2,c+3,c+4),P2(hC,L2),bf(this.normal,hC),Ot.push(this.normal[0],this.normal[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Me+=3):(this.extrusions(Et,Ot,g,ju,jl,this.totalDistance),Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pu=-1,bf(this.normal,ju),Me+=2),this.lastFlip=Pu}else{if(P2(this.normal,bv),Pn){var ga=Zd(),Ma=Zd();$d(Ma,bv,this.normal),Bp(ga,bv,this.normal),Ot.push(Ma[0],Ma[1],0),Ot.push(ga[0],ga[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Et,Ot,g,this.normal,this.thickness,this.totalDistance);Ge.push.apply(Ge,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Me+=2}return Me}},{key:"segment",value:function(u,c,l,g,T){var B=0,G=u.indices,ne=u.positions,Me=u.normals,Ge=this.cap==="square",Et=this.join==="bevel",Ot=Mu([g[0],g[1]]),Pn=Mu([l[0],l[1]]);cE(bv,Ot,Pn);var Mn=0;if(this.dash&&(Mn=this.lineSegmentDistance(Ot,Pn),this.totalDistance+=Mn),this.normal||(this.normal=Zd(),P2(this.normal,bv)),!this.started)if(this.started=!0,Ge){var Ir=Zd(),Ti=Zd();Bp(Ir,this.normal,bv),Bp(Ti,this.normal,bv),Me.push(Ti[0],Ti[1],0),Me.push(Ir[0],Ir[1],0),ne.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Me,l,this.normal,this.thickness,this.totalDistance-Mn);if(G.push(c+0,c+1,c+2),T){var Qs=Mu([T[0],T[1]]);n1(Ot,Qs)&&Bp(Qs,Ot,Qg(Qs,Hf(Qs,Ot,Pn))),cE(L2,Qs,Ot);var ga=DM(uE,Zd(),bv,L2,this.thickness),Ma=(0,qn.Z)(ga,2),ll=Ma[0],Wl=Ma[1],jl=Lm(uE,this.normal)<0?-1:1,ju=Et;if(!ju&&this.join==="miter"){var Pu=ll;Pu>this.miterLimit&&(ju=!0)}ju?(Me.push(this.normal[0],this.normal[1],0),Me.push(Wl[0],Wl[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,G.push.apply(G,(0,Fr.Z)(this.lastFlip!==-jl?[c,c+2,c+3]:[c+2,c+1,c+3])),G.push(c+2,c+3,c+4),P2(hC,L2),bf(this.normal,hC),Me.push(this.normal[0],this.normal[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ne,Me,g,Wl,ll,this.totalDistance),G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),jl=-1,bf(this.normal,Wl),B+=2),this.lastFlip=jl}else{if(P2(this.normal,bv),Ge){var Ko=Zd(),Zo=Zd();$d(Zo,bv,this.normal),Bp(Ko,bv,this.normal),Me.push(Zo[0],Zo[1],0),Me.push(Ko[0],Ko[1],0),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Me,g,this.normal,this.thickness,this.totalDistance);G.push.apply(G,(0,Fr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}();function Qm(a){var p=a[0][0],u=a[0][a[0].length-1];p[0]===u[0]&&p[1]===u[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var c=a[0].length,l=xd().flatten(a),g=l.vertices,T=l.dimensions,B=[],G=[],ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,u=a[0][0],c=a[0][a[0].length-1];u[0]===c[0]&&u[1]===c[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var l=a[0].length,g=xd().flatten(a),T=g.vertices,B=g.dimensions,G=[],ne=[],Me=[],Ge=0;Ge3&&arguments[3]!==void 0?arguments[3]:!1,l=$_(),g=$_(),T=$_();c&&(a=Uc(a),p=Uc(p),u=Uc(u));var B=Yg.apply(z,(0,Fr.Z)(a)),G=Yg.apply(z,(0,Fr.Z)(p)),ne=Yg.apply(z,(0,Fr.Z)(u));l4(l,ne,G),l4(g,B,G),lD(T,l,g);var Me=$_();return A2(Me,T),Me}var fb,N3=function(a){return a.CYLINDER="cylinder",a.SQUARECOLUMN="squareColumn",a.TRIANGLECOLUMN="triangleColumn",a.HEXAGONCOLUMN="hexagonColumn",a.PENTAGONCOLUMN="pentagonColumn",a}({}),hD=function(a){return a.CIRCLE="circle",a.SQUARE="square",a.TRIANGLE="triangle",a.HEXAGON="hexagon",a.PENTAGON="pentagon",a}({});function fD(a){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=Math.PI*2/a,c=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:!1;if(h4&&h4[a])return h4[a];var u=pD[a]?pD[a]():pD.cylinder(),c=AM([u],p);return h4[a]=c,c}function v4(a,p){for(var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=new Float32Array(a.length/u*3),g,T,B,G=vec3.create(),ne=vec3.create(),Me=vec3.create(),Ge=0,Et=p.length;Ge0&&(m=1/Math.sqrt(m)),o[0]=d[0]*m,o[1]=d[1]*m,o[2]=d[2]*m,o}function M2(o,d){return o[0]*d[0]+o[1]*d[1]+o[2]*d[2]}function $3(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[0],M=l[1],Z=l[2];return o[0]=u*Z-m*M,o[1]=m*E-c*Z,o[2]=c*M-u*E,o}function Z0(o,d,l,c){var u=d[0],m=d[1],E=d[2];return o[0]=u+c*(l[0]-u),o[1]=m+c*(l[1]-m),o[2]=E+c*(l[2]-E),o}function KJ(o,d,l,c,u,m){var E=m*m,M=E*(2*m-3)+1,Z=E*(m-2)+m,ne=E*(m-1),Ce=E*(3-2*m);return o[0]=d[0]*M+l[0]*Z+c[0]*ne+u[0]*Ce,o[1]=d[1]*M+l[1]*Z+c[1]*ne+u[1]*Ce,o[2]=d[2]*M+l[2]*Z+c[2]*ne+u[2]*Ce,o}function XJ(o,d,l,c,u,m){var E=1-m,M=E*E,Z=m*m,ne=M*E,Ce=3*m*M,Fe=3*Z*E,bt=Z*m;return o[0]=d[0]*ne+l[0]*Ce+c[0]*Fe+u[0]*bt,o[1]=d[1]*ne+l[1]*Ce+c[1]*Fe+u[1]*bt,o[2]=d[2]*ne+l[2]*Ce+c[2]*Fe+u[2]*bt,o}function kF(o,d){d=d||1;var l=Pg()*2*Math.PI,c=Pg()*2-1,u=Math.sqrt(1-c*c)*d;return o[0]=Math.cos(l)*u,o[1]=Math.sin(l)*u,o[2]=c*d,o}function V3(o,d,l){var c=d[0],u=d[1],m=d[2],E=l[3]*c+l[7]*u+l[11]*m+l[15];return E=E||1,o[0]=(l[0]*c+l[4]*u+l[8]*m+l[12])/E,o[1]=(l[1]*c+l[5]*u+l[9]*m+l[13])/E,o[2]=(l[2]*c+l[6]*u+l[10]*m+l[14])/E,o}function YJ(o,d,l){var c=d[0],u=d[1],m=d[2];return o[0]=c*l[0]+u*l[3]+m*l[6],o[1]=c*l[1]+u*l[4]+m*l[7],o[2]=c*l[2]+u*l[5]+m*l[8],o}function EV(o,d,l){var c=l[0],u=l[1],m=l[2],E=l[3],M=d[0],Z=d[1],ne=d[2],Ce=u*ne-m*Z,Fe=m*M-c*ne,bt=c*Z-u*M,Bt=u*bt-m*Fe,Cn=m*Ce-c*bt,An=c*Fe-u*Ce,Pr=E*2;return Ce*=Pr,Fe*=Pr,bt*=Pr,Bt*=2,Cn*=2,An*=2,o[0]=M+Ce+Bt,o[1]=Z+Fe+Cn,o[2]=ne+bt+An,o}function ox(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0],m[1]=u[1]*Math.cos(c)-u[2]*Math.sin(c),m[2]=u[1]*Math.sin(c)+u[2]*Math.cos(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function TV(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[2]*Math.sin(c)+u[0]*Math.cos(c),m[1]=u[1],m[2]=u[2]*Math.cos(c)-u[0]*Math.sin(c),o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function iM(o,d,l,c){var u=[],m=[];return u[0]=d[0]-l[0],u[1]=d[1]-l[1],u[2]=d[2]-l[2],m[0]=u[0]*Math.cos(c)-u[1]*Math.sin(c),m[1]=u[0]*Math.sin(c)+u[1]*Math.cos(c),m[2]=u[2],o[0]=m[0]+l[0],o[1]=m[1]+l[1],o[2]=m[2]+l[2],o}function Kk(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],M=d[2],Z=Math.sqrt(l*l+c*c+u*u),ne=Math.sqrt(m*m+E*E+M*M),Ce=Z*ne,Fe=Ce&&M2(o,d)/Ce;return Math.acos(Math.min(Math.max(Fe,-1),1))}function AV(o){return o[0]=0,o[1]=0,o[2]=0,o}function DV(o){return"vec3("+o[0]+", "+o[1]+", "+o[2]+")"}function OF(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]}function qJ(o,d){var l=o[0],c=o[1],u=o[2],m=d[0],E=d[1],M=d[2];return Math.abs(l-m)<=Dc*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-E)<=Dc*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-M)<=Dc*Math.max(1,Math.abs(u),Math.abs(M))}var oM=IF,NF=PF,JJ=wV,QJ=Hk,$S=MF,W3=U3,L1=Gk,FF=function(){var o=Pb();return function(d,l,c,u,m,E){var M,Z;for(l||(l=3),c||(c=0),u?Z=Math.min(u*l+c,d.length):Z=d.length,M=c;M0)for(var ta=Fe.length,aa=ta-2*(Z+1);aa+Z+20&&arguments[0]!==void 0?arguments[0]:{};(0,xt.Z)(this,o),(0,Ln.Z)(this,"lastFlip",-1),(0,Ln.Z)(this,"miter",Fp(0,0)),(0,Ln.Z)(this,"started",!1),(0,Ln.Z)(this,"dash",!1),(0,Ln.Z)(this,"totalDistance",0),(0,Ln.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,ot.Z)(o,[{key:"simpleExtrude",value:function(l){var c=this.complex;if(l.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var u=l.length,m=c.startIndex,E=1;Ethis.miterLimit&&(th=!0)}th?(Bt.push(this.normal[0],this.normal[1],0),Bt.push(Iu[0],Iu[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip!==-Vu?[c,c+2,c+3]:[c+2,c+1,c+3])),Fe.push(c+2,c+3,c+4),WS(Tw,VS),Hp(this.normal,Tw),Bt.push(this.normal[0],this.normal[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ce+=3):(this.extrusions(bt,Bt,m,Iu,ru,this.totalDistance),Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Vu=-1,Hp(this.normal,Iu),Ce+=2),this.lastFlip=Vu}else{if(WS(this.normal,o1),Cn){var ta=Nd(),aa=Nd();s0(aa,o1,this.normal),Uf(ta,o1,this.normal),Bt.push(aa[0],aa[1],0),Bt.push(ta[0],ta[1],0),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),bt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(bt,Bt,m,this.normal,this.thickness,this.totalDistance);Fe.push.apply(Fe,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ce+=2}return Ce}},{key:"segment",value:function(l,c,u,m,E){var M=0,Z=l.indices,ne=l.positions,Ce=l.normals,Fe=this.cap==="square",bt=this.join==="bevel",Bt=xc([m[0],m[1]]),Cn=xc([u[0],u[1]]);OT(o1,Bt,Cn);var An=0;if(this.dash&&(An=this.lineSegmentDistance(Bt,Cn),this.totalDistance+=An),this.normal||(this.normal=Nd(),WS(this.normal,o1)),!this.started)if(this.started=!0,Fe){var Pr=Nd(),ti=Nd();Uf(Pr,this.normal,o1),Uf(ti,this.normal,o1),Ce.push(ti[0],ti[1],0),Ce.push(Pr[0],Pr[1],0),ne.push(u[0],u[1],u[2]|0,this.totalDistance-An,-this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(u[0],u[1],u[2]|0,this.totalDistance-An,this.thickness,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,u,this.normal,this.thickness,this.totalDistance-An);if(Z.push(c+0,c+1,c+2),E){var Ds=xc([E[0],E[1]]);Vy(Bt,Ds)&&Uf(Ds,Bt,Fg(Ds,qd(Ds,Bt,Cn))),OT(VS,Ds,Bt);var ta=Yk(kT,Nd(),o1,VS,this.thickness),aa=(0,mi.Z)(ta,2),Ua=aa[0],pl=aa[1],ru=ym(kT,this.normal)<0?-1:1,Iu=bt;if(!Iu&&this.join==="miter"){var Vu=Ua;Vu>this.miterLimit&&(Iu=!0)}Iu?(Ce.push(this.normal[0],this.normal[1],0),Ce.push(pl[0],pl[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,Pn.Z)(this.lastFlip!==-ru?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),WS(Tw,VS),Hp(this.normal,Tw),Ce.push(this.normal[0],this.normal[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*ru,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,M+=3):(this.extrusions(ne,Ce,m,pl,Ua,this.totalDistance),Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),ru=-1,Hp(this.normal,pl),M+=2),this.lastFlip=ru}else{if(WS(this.normal,o1),Fe){var ho=Nd(),bo=Nd();s0(bo,o1,this.normal),Uf(ho,o1,this.normal),Ce.push(bo[0],bo[1],0),Ce.push(ho[0],ho[1],0),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),ne.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ne,Ce,m,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,Pn.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),M+=2}return M}},{key:"extrusions",value:function(l,c,u,m,E,M){c.push(m[0],m[1],0),c.push(m[0],m[1],0),l.push(u[0],u[1],u[2]|0,M,-E,u[2]|0),this.complex.indexes.push(this.currentIndex),l.push(u[0],u[1],u[2]|0,M,E,u[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var u=c[0]-l[0],m=c[1]-l[1];return Math.sqrt(u*u+m*m)}}]),o}();function z0(o){var d=o[0][0],l=o[0][o[0].length-1];d[0]===l[0]&&d[1]===l[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var c=o[0].length,u=td().flatten(o),m=u.vertices,E=u.dimensions,M=[],Z=[],ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,l=o[0][0],c=o[0][o[0].length-1];l[0]===c[0]&&l[1]===c[1]&&(o[0]=o[0].slice(0,o[0].length-1));for(var u=o[0].length,m=td().flatten(o),E=m.vertices,M=m.dimensions,Z=[],ne=[],Ce=[],Fe=0;Fe3&&arguments[3]!==void 0?arguments[3]:!1,u=Pb(),m=Pb(),E=Pb();c&&(o=Ah(o),d=Ah(d),l=Ah(l));var M=nm.apply(b,(0,Pn.Z)(o)),Z=nm.apply(b,(0,Pn.Z)(d)),ne=nm.apply(b,(0,Pn.Z)(l));oM(u,ne,Z),oM(m,M,Z),$3(E,u,m);var Ce=Pb();return US(Ce,E),Ce}var sx,T4=function(o){return o.CYLINDER="cylinder",o.SQUARECOLUMN="squareColumn",o.TRIANGLECOLUMN="triangleColumn",o.HEXAGONCOLUMN="hexagonColumn",o.PENTAGONCOLUMN="pentagonColumn",o}({}),Z3=function(o){return o.CIRCLE="circle",o.SQUARE="square",o.TRIANGLE="triangle",o.HEXAGON="hexagon",o.PENTAGON="pentagon",o}({});function H3(o){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Math.PI*2/o,c=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(uM&&uM[o])return uM[o];var l=G3[o]?G3[o]():G3.cylinder(),c=qk([l],d);return uM[o]=c,c}function jF(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=new Float32Array(o.length/l*3),m,E,M,Z=vec3.create(),ne=vec3.create(),Ce=vec3.create(),Fe=0,bt=d.length;Fe0&&arguments[0]!==void 0?arguments[0]:1,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Me=l/2,Ge=g/2,Et=Math.floor(T),Ot=Math.floor(B),Pn=Et+1,Mn=Ot+1,Ir=l/Et,Ti=g/Ot,Ko=[],Zo=[],Qs=0;Qs0&&arguments[0]!==void 0?arguments[0]:1,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Ce=u/2,Fe=m/2,bt=Math.floor(E),Bt=Math.floor(M),Cn=bt+1,An=Bt+1,Pr=u/bt,ti=m/Bt,ho=[],bo=[],Ds=0;DsEt&&(c.positions[Ot+2]=Ge)):(c.positions[Ot+2]-=Me,c.positions[Ot+2]0&&arguments[0]!==void 0?arguments[0]:10,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,G=[],ne=[],Me=this.mapService,Ge=this.spriteAnimate===Vb.UP?-this.spriteTop:this.spriteTop,Et=0;Etbt&&(c.positions[Bt+2]=Fe)):(c.positions[Bt+2]-=Ce,c.positions[Bt+2]0&&arguments[0]!==void 0?arguments[0]:10,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,Z=[],ne=[],Ce=this.mapService,Fe=this.spriteAnimate===uy.UP?-this.spriteTop:this.spriteTop,bt=0;bt0&&arguments[0]!==void 0?arguments[0]:{},T=this.getModelType();return T==="heatmap"?(this.layerModel&&this.layerModel.render(g),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(B){return B.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models[0].updateAttributesAndElements(l.attributes,l.elements):console.warn("data error")}},{key:"getModelType",value:function(){var l,g=this.styleAttributeService.getLayerStyleAttribute("shape"),T=this.getLayerConfig(),B=T.shape3d,G=this.getSource(),ne=G.data.type,Me=(g==null||(l=g.scale)===null||l===void 0?void 0:l.field)||"heatmap";return Me==="heatmap"||Me==="heatmap3d"?"heatmap":ne==="hexagon"?(B==null?void 0:B.indexOf(Me))===-1?"hexagon":"grid3d":ne==="grid"?(B==null?void 0:B.indexOf(Me))===-1?"grid":"grid3d":"heatmap"}}]),u}(Ja);function $M(a){var p=E4();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function E4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Rz=`precision mediump float; +`,XV=function(o){(0,ut.Z)(l,o);var d=aO(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=u.coverage,M=u.angle;return{u_opacity:m||1,u_coverage:E||.9,u_angle:M||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E;return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:KV,fragmentShader:GV,triangulation:tg,depth:{enable:!1},primitive:Di.TRIANGLES});case 2:return E=Z.sent,Z.abrupt("return",[E]);case 4:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:wd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.version==="GAODE2.x"?m.originCoordinates:m.coordinates;return[E[0],E[1],0]}}})}}]),l}(Gu),O4={heatmap:KF,heatmap3d:KF,grid:jV,grid3d:k4,hexagon:XV},PC=O4;function Pw(o){var d=LC();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function LC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var xM=function(o){(0,ut.Z)(l,o);var d=Pw(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},E=this.getModelType();return E==="heatmap"?(this.layerModel&&this.layerModel.render(m),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(M){return M.draw({uniforms:u.layerModel.getUninforms(),blend:u.layerModel.getBlend(),stencil:u.layerModel.getStencil(m)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(u){u.attributes&&u.elements?this.models[0].updateAttributesAndElements(u.attributes,u.elements):console.warn("data error")}},{key:"getModelType",value:function(){var u,m=this.styleAttributeService.getLayerStyleAttribute("shape"),E=this.getLayerConfig(),M=E.shape3d,Z=this.getSource(),ne=Z.data.type,Ce=(m==null||(u=m.scale)===null||u===void 0?void 0:u.field)||"heatmap";return Ce==="heatmap"||Ce==="heatmap3d"?"heatmap":ne==="hexagon"?(M==null?void 0:M.indexOf(Ce))===-1?"hexagon":"grid3d":ne==="grid"?(M==null?void 0:M.indexOf(Ce))===-1?"grid":"grid3d":"heatmap"}}]),l}(i_);function YF(o){var d=lO();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function lO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var wM=`precision mediump float; uniform float u_opacity: 1.0; uniform sampler2D u_texture; varying vec2 v_texCoord; @@ -2585,7 +2593,7 @@ void main() { if(gl_FragColor.a < 0.01) discard; } -`,kx=`precision highp float; +`,YV=`precision highp float; uniform mat4 u_ModelMatrix; attribute vec3 a_Position; @@ -2598,10 +2606,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,b6=function(a){(0,ft.Z)(u,a);var p=$M(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity;return{u_opacity:g||1,u_texture:this.texture}}},{key:"initModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.layer.getSource(),B=this.rendererService.createTexture2D,this.texture=B({height:0,width:0}),Ge.next=5,T.data.images;case 5:return G=Ge.sent,this.texture=B({data:G[0],width:G[0].width,height:G[0].height,mag:qi.LINEAR,min:qi.LINEAR}),Ge.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:kx,fragmentShader:Rz,triangulation:mD,primitive:qi.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return ne=Ge.sent,Ge.abrupt("return",[ne]);case 11:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l;(l=this.texture)===null||l===void 0||l.destroy()}},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.initModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:Ld.Attribute,descriptor:{name:"a_Uv",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}}]),u}(Su),Nz={image:b6},Fz=Nz;function Bz(a){var p=TD();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function TD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var WM=function(a){(0,ft.Z)(u,a);var p=Bz(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { @@ -2622,7 +2626,7 @@ void main() { gl_FragColor.a *=flag; gl_FragColor = filterColor(gl_FragColor); -}`,DD=` +}`,QF=` attribute vec4 a_Color; attribute vec3 a_Position; attribute vec4 a_Instance; @@ -2637,11 +2641,6 @@ uniform vec4 u_dash_array: [10.0, 5., 0, 0]; uniform float u_lineDir: 1.0; varying vec4 v_dash_array; varying float v_distance_ratio; - -uniform float u_thetaOffset: 0.314; - -uniform float u_opacity: 1.0; - #pragma include "projection" #pragma include "project" #pragma include "picking" @@ -2696,7 +2695,7 @@ vec2 getNormal(vec2 line_clipspace, float offset_direction) { } void main() { - v_color = vec4(a_Color.xyz, a_Color.w * u_opacity); + v_color = vec4(a_Color.xyz, a_Color.w * opacity); vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 vec2 target = a_Instance.ba; // \u7EC8\u70B9 @@ -2718,8 +2717,8 @@ void main() { v_distance_ratio = segmentIndex / segmentNumber; - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, u_thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, u_thetaOffset), 0.0, 1.0)); + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); @@ -2729,11 +2728,9 @@ void main() { gl_PointSize = 5.0; setPickingColor(a_PickingColor); } -`,vC=` +`,tD=` #define Animate 0.0 #define LineTexture 1.0 - -uniform float u_opacity; uniform float u_textureBlend; uniform float u_blur : 0.9; uniform float u_line_type: 0.0; @@ -2759,7 +2756,6 @@ void main() { float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 gl_FragColor = v_color; - gl_FragColor.a *= u_opacity; if(u_animate.x == Animate && u_line_texture != LineTexture) { animateSpeed = u_time / u_animate.y; @@ -2802,7 +2798,7 @@ void main() { pattern.a = 0.0; gl_FragColor = filterColor(gl_FragColor + pattern); } else { // replace - pattern.a *= u_opacity; + pattern.a *= v_color.a; if(gl_FragColor.a <= 0.0) { pattern.a = 0.0; } @@ -2812,7 +2808,7 @@ void main() { } else { gl_FragColor = filterColor(gl_FragColor); } -}`,zz=`#define Animate 0.0 +}`,Lw=`#define Animate 0.0 #define LineTexture 1.0 attribute vec4 a_Color; @@ -2827,7 +2823,6 @@ varying vec4 v_color; uniform float u_lineDir: 1.0; -uniform float u_thetaOffset: 0.314; uniform float u_icon_step: 100; uniform float u_line_texture: 0.0; attribute vec2 a_iconMapUV; @@ -2835,8 +2830,6 @@ varying vec2 v_iconMapUV; varying vec4 v_lineData; varying vec2 v_distance_ratio; -uniform float u_opacity: 1.0; - #pragma include "projection" #pragma include "project" @@ -2894,6 +2887,7 @@ vec2 getNormal(vec2 line_clipspace, float offset_direction) { void main() { v_color = a_Color; + v_color.a = v_color.a * opacity; vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 vec2 target = a_Instance.ba; // \u7EC8\u70B9 @@ -2913,8 +2907,8 @@ void main() { v_lineData.b = d_distance_ratio; - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, u_thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, u_thetaOffset), 0.0, 1.0)); + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); @@ -2948,7 +2942,7 @@ void main() { setPickingColor(a_PickingColor); } -`,jM=`varying vec4 v_color; +`,eW=`varying vec4 v_color; #pragma include "picking" @@ -2957,7 +2951,7 @@ void main() { gl_FragColor = v_color; gl_FragColor = filterColor(gl_FragColor); -}`,$z=` +}`,uO=` attribute vec4 a_Color; attribute vec3 a_Position; attribute vec4 a_Instance; @@ -2969,9 +2963,7 @@ varying vec4 v_color; varying float v_segmentIndex; uniform float u_lineDir: 1.0; -uniform float u_opacity: 1.0; -uniform float u_thetaOffset: 0.314; uniform vec4 u_sourceColor; uniform vec4 u_targetColor; @@ -3040,8 +3032,8 @@ void main() { float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); float d_distance_ratio; - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, u_thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, u_thetaOffset), 0.0, 1.0)); + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); //unProjCustomCoord @@ -3051,13 +3043,13 @@ void main() { float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - v_color.a *= u_opacity; + v_color.a *= opacity; gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); setPickingColor(a_PickingColor); } -`,Wz={solid:0,dash:1},C6=Fa.isNumber,D4=function(a){(0,ft.Z)(u,a);var p=pE(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T 0.0) { @@ -3331,7 +3322,7 @@ void main() { setPickingColor(a_PickingColor); } -`,Sw=` +`,N4=` #define Animate 0.0 uniform float u_time; uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; @@ -3363,7 +3354,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,Hz=`#define LineTypeSolid 0.0 +`,MC=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -3524,7 +3515,7 @@ void main() { setPickingColor(a_PickingColor); } -`,VM={solid:0,dash:1},UM=function(a){(0,ft.Z)(u,a);var p=jz(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T 0.0) { @@ -3798,7 +3788,7 @@ void main() { setPickingColor(a_PickingColor); } -`,Gz=` +`,sW=` #define Animate 0.0 uniform float u_time; uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; @@ -3830,7 +3820,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,gE=`#define LineTypeSolid 0.0 +`,aW=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -3991,7 +3981,7 @@ void main() { setPickingColor(a_PickingColor); } -`,Mp={solid:0,dash:1},E6=function(a){(0,ft.Z)(u,a);var p=w6(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0,c=(0,ri.Z)(l.source)==="object"?l.source.type:l.source,u=(0,ri.Z)(l.target)==="object"?l.target.type:l.target,m=(0,ri.Z)(l.source)==="object"?l.source:{},E=m.width,M=E===void 0?c?dO[c]:0:E,Z=m.height,ne=Z===void 0?2:Z,Ce=(0,ri.Z)(l.target)==="object"?l.target:{},Fe=Ce.width,bt=Fe===void 0?u?dO[u]:0:Fe,Bt=Ce.height,Cn=Bt===void 0?2:Bt;return{vertices:[0,q_,1*M].concat((0,Pn.Z)(o),[1,q_,-1*bt],(0,Pn.Z)(o),[1,-q_,-1*bt],(0,Pn.Z)(o),[0,-q_,1*M],(0,Pn.Z)(o),[0,q_,1*M],(0,Pn.Z)(o),[1,q_,-1*bt],(0,Pn.Z)(o),[1,-q_,-1*bt],(0,Pn.Z)(o),[0,-q_,1*M],(0,Pn.Z)(o)),outLineIndices:[0,1,2,0,2,3].map(function(An){return An+d}),indices:[4,5,6,4,6,7].map(function(An){return An+d}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function r7(o,d){var l=(0,ri.Z)(o)==="object"?o.type:o,c=d==="source"?1:-1,u=(0,ri.Z)(o)==="object"?o:{};switch(l){case"circle":return fW(c,u);case"triangle":return uW(c,u);case"diamond":return hW(c,u);case"rect":return cW(c,u);case"classic":return dW(c,u);case"halfTriangle":return lW(c,u);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function pW(o){var d=o.coordinates.flat(),l=1,c=1;return{vertices:[1,0,0].concat((0,Pn.Z)(d),[1,2,-3],(0,Pn.Z)(d),[1,1,-3],(0,Pn.Z)(d),[0,1,0],(0,Pn.Z)(d),[0,0,0],(0,Pn.Z)(d),[1,0,0],(0,Pn.Z)(d),[1,2,-3],(0,Pn.Z)(d),[1,1,-3],(0,Pn.Z)(d),[0,1,0],(0,Pn.Z)(d),[0,0,0],(0,Pn.Z)(d)),normals:[-l,2*c,1,2*c,-c,1,c,-c,1,c,-c,1,-l,-c,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function gW(o,d){return d?nD(o,d):pW(o)}function nD(o,d){var l=o.coordinates.flat(),c=d,u=c.target,m=u===void 0?"classic":u,E=c.source,M=E===void 0?"circle":E,Z=Wg(r7(M,"source"),l,0,0),ne=N2(l,Z.vertices.length/7,d),Ce=Wg(r7(m,"target"),l,1,Z.vertices.length/7+ne.vertices.length/7),Fe={vertices:[].concat((0,Pn.Z)(Z.vertices),(0,Pn.Z)(ne.vertices),(0,Pn.Z)(Ce.vertices)),indices:[].concat((0,Pn.Z)(Z.outLineIndices),(0,Pn.Z)(ne.outLineIndices),(0,Pn.Z)(Ce.outLineIndices),(0,Pn.Z)(Z.indices),(0,Pn.Z)(ne.indices),(0,Pn.Z)(Ce.indices)),normals:[].concat((0,Pn.Z)(Z.normals),(0,Pn.Z)(ne.normals),(0,Pn.Z)(Ce.normals)),size:7};return Fe}function Wg(o,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=[],m=o.vertices,E=o.indices,M=o.dimensions,Z=o.outLineIndices,ne=0;ne (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { @@ -4144,7 +4163,7 @@ void main() { float u = fract(arcRadio * count - animateSpeed * count); // float u = fract(arcRadio * count - animateSpeed); if(u_animate.x == Animate) { - u = gl_FragColor.a/opacity; + u = gl_FragColor.a/v_color.a; } float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C @@ -4157,7 +4176,7 @@ void main() { pattern.a = 0.0; gl_FragColor = filterColor(gl_FragColor + pattern); } else { // replace - pattern.a *= opacity; + pattern.a *= v_color.a; if(gl_FragColor.a <= 0.0) { pattern.a = 0.0; } @@ -4168,7 +4187,7 @@ void main() { } // gl_FragColor = filterColor(gl_FragColor); -}`,e$=`#define LineTypeSolid 0.0 +}`,EM=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -4289,9 +4308,8 @@ vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { } void main() { - - v_color = a_Color; + v_color.a = v_color.a * opacity; vec2 source = radians(a_Instance.rg); vec2 target = radians(a_Instance.ba); float angularDist = getAngularDist(source, target); @@ -4352,7 +4370,7 @@ v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56F setPickingColor(a_PickingColor); } -`,t$={solid:0,dash:1},n$=function(a){(0,ft.Z)(u,a);var p=Jz(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { // \u5B9E\u7EBF\u90E8\u5206 @@ -4380,7 +4397,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,i$=`#define LineTypeSolid 0.0 +`,ZT=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 @@ -4396,6 +4413,7 @@ attribute vec2 a_iconMapUV; attribute float a_Total_Distance; attribute vec2 a_DistanceAndIndex; uniform float u_raisingHeight: 0.0; +uniform float u_heightfixed: 0.0; uniform mat4 u_ModelMatrix; @@ -4422,37 +4440,55 @@ void main() { vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height + float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, project_pixel(a_Size.y), 1.0)); + lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C + h *= 0.2; + if(u_heightfixed < 1.0) { + lineHeight = project_pixel(a_Size.y); + } + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); } else { - float lineHeight = a_Size.y; - - // #define COORDINATE_SYSTEM_P20 5.0 - // #define COORDINATE_SYSTEM_P20_OFFSET 6.0 - // amap1.x - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // mapbox - amap + + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - lineHeight *= pow(2.0, 20.0 - u_Zoom); + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + h *= mapboxZoomScale; + h += u_raisingHeight * mapboxZoomScale; + if(u_heightfixed > 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } } - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0)); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); } setPickingColor(a_PickingColor); } -`,cy=`#extension GL_OES_standard_derivatives : enable +`,Lm=`#extension GL_OES_standard_derivatives : enable #define Animate 0.0 #define LineTexture 1.0 uniform float u_textureBlend; -uniform float u_borderWidth: 0.0; +uniform float u_strokeWidth: 0.0; uniform vec3 u_blur; -uniform vec4 u_borderColor; varying vec4 v_color; +varying vec4 v_stroke; // line texture uniform float u_line_texture; @@ -4504,20 +4540,20 @@ void main() { } float v = v_texture_data.a; - float borderWidth = min(0.5, u_borderWidth); + float strokeWidth = min(0.5, u_strokeWidth); // \u7ED8\u5236 border - if(borderWidth > 0.01) { - float borderOuterWidth = borderWidth / 2.0; + if(strokeWidth > 0.01) { + float borderOuterWidth = strokeWidth / 2.0; - if(v >= 1.0 - borderWidth || v <= borderWidth) { - if(v > borderWidth) { // \u5916\u4FA7 - float linear = smoothstep(0.0, 1.0, (v - (1.0 - borderWidth))/borderWidth); + if(v >= 1.0 - strokeWidth || v <= strokeWidth) { + if(v > strokeWidth) { // \u5916\u4FA7 + float linear = smoothstep(0.0, 1.0, (v - (1.0 - strokeWidth))/strokeWidth); // float linear = step(0.0, (v - (1.0 - borderWidth))/borderWidth); - gl_FragColor.rgb = mix(gl_FragColor.rgb, u_borderColor.rgb, linear); - } else if(v <= borderWidth) { - float linear = smoothstep(0.0, 1.0, v/borderWidth); - gl_FragColor.rgb = mix(u_borderColor.rgb, gl_FragColor.rgb, linear); + gl_FragColor.rgb = mix(gl_FragColor.rgb, v_stroke.rgb, linear); + } else if(v <= strokeWidth) { + float linear = smoothstep(0.0, 1.0, v/strokeWidth); + gl_FragColor.rgb = mix(v_stroke.rgb, gl_FragColor.rgb, linear); } } @@ -4538,7 +4574,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,C1=` +`,B4=` #define Animate 0.0 attribute float a_Miter; @@ -4566,6 +4602,7 @@ uniform float u_raisingHeight: 0.0; #pragma include "picking" varying vec4 v_color; +varying vec4 v_stroke; // texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 varying vec2 v_iconMapUV; @@ -4635,6 +4672,7 @@ void main() { v_color = a_Color; v_color.a *= opacity; + v_stroke = stroke; vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); @@ -4701,13 +4739,12 @@ void main() { setPickingColor(a_PickingColor); } -`,M2=`varying vec4 v_color; +`,AM=`varying vec4 v_color; varying vec4 v_texture_data; uniform float u_linearDir: 1.0; uniform float u_linearColor: 0; uniform vec4 u_sourceColor; uniform vec4 u_targetColor; -uniform float u_opacity: 1.0; #pragma include "picking" @@ -4727,7 +4764,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,mE={solid:0,dash:1},dy=function(a){(0,ft.Z)(u,a);var p=AD(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Ma=T.speed,ll=Ma===void 0?.01:Ma;this.raiseCount+=ll,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Et),u_heightfixed:Number(Pn),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:nm(G)?G:1,u_linearColor:Zo,u_sourceColor:Qs,u_targetColor:ga,u_opacitylinear:Number(Ir.enable),u_opacitylinear_dir:Ir.dir==="up"?1:0,u_lightEnable:Number(Ko)}}},{key:"initModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption.repeat,G=B===void 0?1:B,this.raiseRepeat=G,Ge.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:I6,fragmentShader:A6,triangulation:IM,depth:{enable:!0},cull:{enable:!0,face:Mi(this.mapService.version)},blend:this.getBlend()});case 4:return ne=Ge.sent,Ge.abrupt("return",[ne]);case 6:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g,T,B,G,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return TM([T[0],T[1]])}}})}}]),u}(Su);function O4(a){var p=LD();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function LD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var YM=`uniform float u_additive; +`,TW=Ns.isNumber,h7=function(o){(0,ut.Z)(l,o);var d=u7(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&E.enable){var aa=E.speed,Ua=aa===void 0?.01:aa;this.raiseCount+=Ua,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(bt),u_heightfixed:Number(Cn),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:TW(Z)?Z:1,u_linearColor:bo,u_sourceColor:Ds,u_targetColor:ta,u_opacitylinear:Number(Pr.enable),u_opacitylinear_dir:Pr.dir==="up"?1:0,u_lightEnable:Number(ho)}}},{key:"initModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.layer.getLayerConfig(),M=E.animateOption.repeat,Z=M===void 0?1:M,this.raiseRepeat=Z,Fe.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:HT,fragmentShader:c7,triangulation:Jk,depth:{enable:!0},cull:{enable:!0,face:Vi(this.mapService.version)},blend:this.getBlend()});case 4:return ne=Fe.sent,Fe.abrupt("return",[ne]);case 6:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:wd.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.size;if(E){var M=[];return Array.isArray(E)&&(M=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(M=[E,E,E]),M}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:wd.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m,E,M,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:wd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=Qf(m.coordinates);return Xk([E[0],E[1]])}}})}}]),l}(Gu);function AW(o){var d=DW();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function DW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var IW=`uniform float u_additive; uniform float u_opacity : 1; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5378,7 +5411,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,Yv=`attribute vec4 a_Color; +`,cx=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5429,7 +5462,7 @@ void main() { setPickingColor(a_PickingColor); } -`,p$=function(a){(0,ft.Z)(u,a);var p=O4(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity,T=g===void 0?1:g,B=l.strokeOpacity,G=B===void 0?1:B,ne=l.strokeWidth,Me=ne===void 0?0:ne,Ge=l.stroke,Et=Ge===void 0?"rgba(0,0,0,0)":Ge,Ot=l.blend,Pn=l.blur,Mn=Pn===void 0?0:Pn;return{u_blur:Mn,u_additive:Ot==="additive"?1:0,u_opacity:T,u_stroke_opacity:G,u_stroke_width:Me,u_stroke_color:Qr(Et)}}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return this.layer.triangulation=c6,G.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Yv,fragmentShader:YM,triangulation:c6,depth:{enable:!0},blend:this.getBlend()});case 3:return T=G.sent,G.abrupt("return",[T]);case 5:case"end":return G.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(T,B,G,ne){var Me=(0,qn.Z)(G,3),Ge=Me[0],Et=Me[1],Ot=Me[2],Pn=Yg(0,0,1),Mn=Yg(Ge,0,Ot),Ir=Ge>=0?EM(Pn,Mn):Math.PI*2-EM(Pn,Mn),Ti=Math.PI*2-Math.asin(Et/100),Ko=on();oc(Ko,Ko,Ir),pu(Ko,Ko,Ti);var Zo=Yg(1,1,0);uD(Zo,Zo,Ko),A2(Zo,Zo);var Qs=Yg(-1,1,0);uD(Qs,Qs,Ko),A2(Qs,Qs);var ga=Yg(-1,-1,0);uD(ga,ga,Ko),A2(ga,ga);var Ma=Yg(1,-1,0);uD(Ma,Ma,Ko),A2(Ma,Ma);var ll=[].concat((0,Fr.Z)(Zo),(0,Fr.Z)(Qs),(0,Fr.Z)(ga),(0,Fr.Z)(Ma)),Wl=ne%4*3;return[ll[Wl],ll[Wl+1],ll[Wl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(T){var B=T.size,G=B===void 0?5:B;return Array.isArray(G)?[G[0]]:[G]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(T){var B=T.shape,G=B===void 0?2:B,ne=l.layer.getLayerConfig().shape2d,Me=ne.indexOf(G);return[Me]}}})}}]),u}(Su);function PD(a){var p=L6();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function L6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var kD=`varying vec4 v_color; +`,hy=function(o){(0,ut.Z)(l,o);var d=AW(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.opacity,E=m===void 0?1:m,M=u.strokeOpacity,Z=M===void 0?1:M,ne=u.strokeWidth,Ce=ne===void 0?0:ne,Fe=u.stroke,bt=Fe===void 0?"rgba(0,0,0,0)":Fe,Bt=u.blend,Cn=u.blur,An=Cn===void 0?0:Cn;return{u_blur:An,u_additive:Bt==="additive"?1:0,u_opacity:E,u_stroke_opacity:Z,u_stroke_width:Ce,u_stroke_color:ni(bt)}}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E;return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.layer.triangulation=$F,Z.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:cx,fragmentShader:IW,triangulation:$F,depth:{enable:!0},blend:this.getBlend()});case 3:return E=Z.sent,Z.abrupt("return",[E]);case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:wd.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(E,M,Z,ne){var Ce=(0,mi.Z)(Z,3),Fe=Ce[0],bt=Ce[1],Bt=Ce[2],Cn=nm(0,0,1),An=nm(Fe,0,Bt),Pr=Fe>=0?Kk(Cn,An):Math.PI*2-Kk(Cn,An),ti=Math.PI*2-Math.asin(bt/100),ho=yp();u0(ho,ho,Pr),mm(ho,ho,ti);var bo=nm(1,1,0);V3(bo,bo,ho),US(bo,bo);var Ds=nm(-1,1,0);V3(Ds,Ds,ho),US(Ds,Ds);var ta=nm(-1,-1,0);V3(ta,ta,ho),US(ta,ta);var aa=nm(1,-1,0);V3(aa,aa,ho),US(aa,aa);var Ua=[].concat((0,Pn.Z)(bo),(0,Pn.Z)(Ds),(0,Pn.Z)(ta),(0,Pn.Z)(aa)),pl=ne%4*3;return[Ua[pl],Ua[pl+1],Ua[pl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:wd.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var M=E.size,Z=M===void 0?5:M;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:wd.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var M=E.shape,Z=M===void 0?2:M,ne=u.layer.getLayerConfig().shape2d,Ce=ne.indexOf(Z);return[Ce]}}})}}]),l}(Gu);function uD(o){var d=LM();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function LM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var yO=`varying vec4 v_color; varying float v_lightWeight; uniform float u_pickLight: 0.0; @@ -5447,7 +5480,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,P6=`precision highp float; +`,U4=`precision highp float; #define pi 3.1415926535 #define ambientRatio 0.5 @@ -5550,13 +5583,11 @@ void main() { } - // gl_Position = project_common_position_to_clipspace(pos); - gl_Position = project_common_position_to_clipspace_v2(pos); setPickingColor(a_PickingColor); } -`,O2=function(a){(0,ft.Z)(u,a);var p=PD(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Ma=T.speed,ll=Ma===void 0?.01:Ma;this.raiseCount+=ll,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Et),u_heightfixed:Number(Pn),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:G,u_linearColor:Zo,u_sourceColor:Qs,u_targetColor:ga,u_opacitylinear:Number(Ir.enable),u_opacitylinear_dir:Ir.dir==="up"?1:0,u_lightEnable:Number(Ko)}}},{key:"initModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge;return ro().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return T=this.layer.getLayerConfig(),B=T.depth,G=B===void 0?!0:B,ne=T.animateOption.repeat,Me=ne===void 0?1:ne,this.raiseRepeat=Me,Ot.next=4,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:P6,fragmentShader:kD,triangulation:IM,cull:{enable:!0,face:Mi(this.mapService.version)},depth:{enable:G}});case 4:return Ge=Ot.sent,Ot.abrupt("return",[Ge]);case 6:case"end":return Ot.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g,T,B,G,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return[T[0],T[1],0]}}})}}]),u}(Su);function g$(a){var p=k6();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function k6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var M6=` +`,d7=function(o){(0,ut.Z)(l,o);var d=uD(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&E.enable){var aa=E.speed,Ua=aa===void 0?.01:aa;this.raiseCount+=Ua,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(bt),u_heightfixed:Number(Cn),u_r:E.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Z,u_linearColor:bo,u_sourceColor:Ds,u_targetColor:ta,u_opacitylinear:Number(Pr.enable),u_opacitylinear_dir:Pr.dir==="up"?1:0,u_lightEnable:Number(ho)}}},{key:"initModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe;return Wi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=this.layer.getLayerConfig(),M=E.depth,Z=M===void 0?!0:M,ne=E.animateOption.repeat,Ce=ne===void 0?1:ne,this.raiseRepeat=Ce,Bt.next=4,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:U4,fragmentShader:yO,triangulation:Jk,cull:{enable:!0,face:Vi(this.mapService.version)},depth:{enable:Z}});case 4:return Fe=Bt.sent,Bt.abrupt("return",[Fe]);case 6:case"end":return Bt.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:wd.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=m.size;if(E){var M=[];return Array.isArray(E)&&(M=E.length===2?[E[0],E[0],E[1]]:E),Array.isArray(E)||(M=[E,E,E]),M}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:wd.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m,E,M,Z,ne){return ne}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:wd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(m){var E=Qf(m.coordinates);return[E[0],E[1],0]}}})}}]),l}(Gu);function PW(o){var d=f7();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function f7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var p7=` uniform float u_additive; @@ -5611,19 +5642,25 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,m$=`uniform float u_additive; -uniform float u_stroke_opacity : 1; -uniform float u_stroke_width : 2; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -varying vec4 v_stroke; +`,kC=` +layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; +}; +in vec4 v_color; +in vec4 v_stroke; +in vec4 v_data; +in float v_radius; +#pragma include "scene_uniforms" #pragma include "sdf_2d" #pragma include "picking" +out vec4 outputColor; void main() { int shape = int(floor(v_data.w + 0.5)); @@ -5671,45 +5708,46 @@ void main() { ); if(u_stroke_width < 0.01) { - gl_FragColor = v_color; + outputColor = v_color; } else { - gl_FragColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); + outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); } if(u_additive > 0.0) { - gl_FragColor *= opacity_t; - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); + outputColor *= opacity_t; + outputColor = filterColorAlpha(outputColor, outputColor.a); } else { - gl_FragColor.a *= opacity_t; - gl_FragColor = filterColor(gl_FragColor); + outputColor.a *= opacity_t; + outputColor = filterColor(outputColor); } // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 - if(gl_FragColor.a < 0.01) { + if(outputColor.a < 0.01) { discard; } } -`,qM=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute float a_Shape; -uniform mat4 u_ModelMatrix; - -uniform int u_size_unit; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -varying vec4 v_stroke; -uniform float u_stroke_width: 2; -uniform vec3 u_blur_height_fixed: [0, 0, 0]; +`,_O=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 11) in vec3 a_Extrude; +layout(location = 10) in float a_Shape; + +layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; +}; +out vec4 v_color; +out vec4 v_stroke; +out vec4 v_data; +out float v_radius; #pragma include "projection" #pragma include "picking" #pragma include "rotation_2d" - void main() { // \u900F\u660E\u5EA6\u8BA1\u7B97 v_stroke = stroke; @@ -5727,7 +5765,7 @@ void main() { // unpack color(vec2) v_color = vec4(a_Color.xyz, a_Color.w * opacity); - if(u_size_unit == 1) { + if(u_size_unit == 1.0) { newSize = newSize * u_PixelsPerMeter.z; } @@ -5766,7 +5804,7 @@ void main() { setPickingColor(a_PickingColor); } -`,W_=function(a){(0,ft.Z)(u,a);var p=g$(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.strokeOpacity,T=g===void 0?1:g,B=l.strokeWidth,G=B===void 0?0:B,ne=l.blend,Me=l.blur,Ge=Me===void 0?0:Me,Et=l.raisingHeight,Ot=Et===void 0?0:Et,Pn=l.heightfixed,Mn=Pn===void 0?!1:Pn,Ir=l.unit,Ti=Ir===void 0?"pixel":Ir;return(0,we.Z)({u_blur_height_fixed:[Ge,Number(Ot),Number(Mn)],u_additive:ne==="additive"?1:0,u_stroke_opacity:T,u_stroke_width:G,u_size_unit:Wh[Ti]},this.getStyleAttribute())}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Vt)}},{key:"initModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge,Et,Ot;return ro().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption,G=B===void 0?{enable:!1}:B,ne=this.getShaders(G),Me=ne.frag,Ge=ne.vert,Et=ne.type,this.layer.triangulation=Vt,Mn.next=5,this.layer.buildLayerModel({moduleName:Et,vertexShader:Ge,fragmentShader:Me,inject:this.getInject(),triangulation:Vt,depth:{enable:!1}});case 5:return Ot=Mn.sent,Mn.abrupt("return",[Ot]);case 7:case"end":return Mn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getShaders",value:function(l){if(l.enable)switch(l.type){case"wave":return{frag:M6,vert:qM,type:"pointWave"};default:return{frag:M6,vert:qM,type:"pointWave"}}else return{frag:m$,vert:qM,type:"pointFill"}}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(T,B,G,ne){var Me=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Ge=ne%4*3;return[Me[Ge],Me[Ge+1],Me[Ge+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(T){var B=T.size,G=B===void 0?5:B;return Array.isArray(G)?[G[0]]:[G]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(T){var B=T.shape,G=B===void 0?2:B,ne=l.indexOf(G);return[ne]}}})}}]),u}(Su);function Ay(a){var p=MD();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function MD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var R4=`uniform sampler2D u_texture; +`,HS=function(o){(0,ut.Z)(l,o);var d=PW(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getUninforms",value:function(){var u=this.layer.getLayerConfig(),m=u.strokeOpacity,E=m===void 0?1:m,M=u.strokeWidth,Z=M===void 0?0:M,ne=u.blend,Ce=u.blur,Fe=Ce===void 0?0:Ce,bt=u.raisingHeight,Bt=bt===void 0?0:bt,Cn=u.heightfixed,An=Cn===void 0?!1:Cn,Pr=u.unit,ti=Pr===void 0?"pixel":Pr,ho=(0,Oe.Z)({u_blur_height_fixed:[Fe,Number(Bt),Number(An)],u_additive:ne==="additive"?1:0,u_stroke_opacity:E,u_stroke_width:Z,u_size_unit:Cf[ti]},this.getStyleAttribute()),bo=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Pn.Z)(bo.u_stroke),(0,Pn.Z)(bo.u_offsets),[bo.u_opacity,bo.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Pn.Z)(ho.u_blur_height_fixed),[ho.u_stroke_width,ho.u_stroke_opacity,ho.u_additive,ho.u_size_unit])).buffer)}),ho}},{key:"getAnimateUniforms",value:function(){var u=this.layer.getLayerConfig(),m=u.animateOption,E=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(E),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),ln)}},{key:"initModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.buildModels());case 1:case"end":return M.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe,bt,Bt,Cn,An;return Wi().wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:return E=this.layer.getLayerConfig(),M=E.animateOption,Z=M===void 0?{enable:!1}:M,ne=this.getShaders(Z),Ce=ne.frag,Fe=ne.vert,bt=ne.type,this.layer.triangulation=ln,Bt=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),Cn=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(Bt,Cn),ti.next=8,this.layer.buildLayerModel({moduleName:bt,vertexShader:Fe,fragmentShader:Ce,inject:this.getInject(),triangulation:ln,depth:{enable:!1}});case 8:return An=ti.sent,ti.abrupt("return",[An]);case 10:case"end":return ti.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getShaders",value:function(u){if(u.enable)switch(u.type){case"wave":return{frag:p7,vert:_O,type:"pointWave"};default:return{frag:p7,vert:_O,type:"pointWave"}}else return{frag:kC,vert:_O,type:"pointFill"}}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.speed||1,u.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var u=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:wd.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ra.EXTRUDE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:3,update:function(E,M,Z,ne){var Ce=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Fe=ne%4*3;return[Ce[Fe],Ce[Fe+1],Ce[Fe+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:wd.Attribute,descriptor:{name:"a_Size",shaderLocation:Ra.SIZE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var M=E.size,Z=M===void 0?5:M;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:wd.Attribute,descriptor:{name:"a_Shape",shaderLocation:Ra.SHAPE,buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(E){var M=E.shape,Z=M===void 0?2:M,ne=u.indexOf(Z);return[ne]}}})}}]),l}(Gu);function LW(o){var d=g7();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function g7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var MW=`uniform sampler2D u_texture; uniform vec2 u_textSize; uniform float u_opacity : 1; @@ -5784,7 +5822,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,JM=`attribute vec4 a_Color; +`,bO=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5843,7 +5881,7 @@ void main() { setPickingColor(a_PickingColor); } -`,U3=function(a){(0,ft.Z)(u,a);var p=Ay(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function xE(a,p){if(a){if(typeof a=="string")return CE(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return CE(a,p)}}function CE(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.width||g<0||c>this.height)return T?!1:[];var G=[];if(u<=0&&c<=0&&this.width<=l&&this.height<=g){if(T)return!0;for(var ne=0;ne0:G}},{key:"queryCell",value:function(u,c,l,g,T,B,G,ne){var Me=G.seenUids,Ge=this.boxCells[T];if(Ge!==null){var Et=this.bboxes,Ot=OD(Ge),Pn;try{for(Ot.s();!(Pn=Ot.n()).done;){var Mn=Pn.value;if(!Me.box[Mn]){Me.box[Mn]=!0;var Ir=Mn*4;if(u<=Et[Ir+2]&&c<=Et[Ir+3]&&l>=Et[Ir+0]&&g>=Et[Ir+1]&&(!ne||ne(this.boxKeys[Mn]))){if(G.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[Mn],x1:Et[Ir],y1:Et[Ir+1],x2:Et[Ir+2],y2:Et[Ir+3]})}}}}catch(Ti){Ot.e(Ti)}finally{Ot.f()}}return!1}},{key:"forEachCell",value:function(u,c,l,g,T,B,G,ne){for(var Me=this.convertToXCellCoord(u),Ge=this.convertToYCellCoord(c),Et=this.convertToXCellCoord(l),Ot=this.convertToYCellCoord(g),Pn=Me;Pn<=Et;Pn++)for(var Mn=Ge;Mn<=Ot;Mn++){var Ir=this.xCellCount*Mn+Pn;if(T.call(this,u,c,l,g,Ir,B,G,ne))return}}},{key:"convertToXCellCoord",value:function(u){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(u*this.xScale)))}},{key:"convertToYCellCoord",value:function(u){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(u*this.yScale)))}}]),a}(),eO=Eh,B6=function(){function a(p,u){(0,bt.Z)(this,a),(0,Cn.Z)(this,"viewportPadding",100),this.width=p,this.height=u,this.viewportPadding=Math.max(p,u),this.grid=new eO(p+this.viewportPadding,u+this.viewportPadding,25),this.screenRightBoundary=p+this.viewportPadding,this.screenBottomBoundary=u+this.viewportPadding,this.gridRightBoundary=p+2*this.viewportPadding,this.gridBottomBoundary=u+2*this.viewportPadding}return(0,He.Z)(a,[{key:"placeCollisionBox",value:function(u){var c=u.x1+u.anchorPointX+this.viewportPadding,l=u.y1+u.anchorPointY+this.viewportPadding,g=u.x2+u.anchorPointX+this.viewportPadding,T=u.y2+u.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,l,g,T)||this.grid.hitTest(c,l,g,T)?{box:[]}:{box:[c,l,g,T]}}},{key:"insertCollisionBox",value:function(u,c){var l={featureIndex:c};this.grid.insert(l,u[0],u[1],u[2],u[3])}},{key:"project",value:function(u,c,l){var g=Sp(c,l,0,1),T=Tg(),B=zi.apply(b,(0,Fr.Z)(u));return q0(T,g,B),{x:(T[0]/T[3]+1)/2*this.width+this.viewportPadding,y:(-T[1]/T[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(u,c,l,g){return l>=0&&u=0&&c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Z3(a,p){if(a){if(typeof a=="string")return R2(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return R2(a,p)}}function R2(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u6&&arguments[6]!==void 0?arguments[6]:[0,0],B=arguments.length>7?arguments[7]:void 0,G=a.split(` -`),ne=[],Me={positionedGlyphs:ne,top:T[1],bottom:T[1],left:T[0],right:T[0],lineCount:G.length,text:a};return B?N2(Me,p,G,u,c,l,g):wE(Me,p,G,u,c,l,g),ne.length?Me:!1}function r1(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],u=arguments.length>2?arguments[2]:void 0,c=a.positionedGlyphs,l=c===void 0?[]:c,g=[],T=z6(l),B;try{for(T.s();!(B=T.n()).done;){var G=B.value,ne=G.metrics,Me=4,Ge=ne.advance*G.scale/2,Et=u?[G.x+Ge,G.y]:[0,0],Ot=u?[0,0]:[G.x+Ge+p[0],G.y+p[1]],Pn=(0-Me)*G.scale-Ge+Ot[0],Mn=(0-Me)*G.scale+Ot[1],Ir=Pn+ne.width*G.scale,Ti=Mn+ne.height*G.scale,Ko={x:Pn,y:Mn},Zo={x:Ir,y:Mn},Qs={x:Pn,y:Ti},ga={x:Ir,y:Ti};g.push({tl:Ko,tr:Zo,bl:Qs,br:ga,tex:ne,glyphOffset:Et})}}catch(Ma){T.e(Ma)}finally{T.f()}return g}function E$(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=T$(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function T$(a,p){if(a){if(typeof a=="string")return nO(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return nO(a,p)}}function nO(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function XT(o,d){if(o){if(typeof o=="string")return OC(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return OC(o,d)}}function OC(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.width||m<0||c>this.height)return E?!1:[];var Z=[];if(l<=0&&c<=0&&this.width<=u&&this.height<=m){if(E)return!0;for(var ne=0;ne0:Z}},{key:"queryCell",value:function(l,c,u,m,E,M,Z,ne){var Ce=Z.seenUids,Fe=this.boxCells[E];if(Fe!==null){var bt=this.bboxes,Bt=iQ(Fe),Cn;try{for(Bt.s();!(Cn=Bt.n()).done;){var An=Cn.value;if(!Ce.box[An]){Ce.box[An]=!0;var Pr=An*4;if(l<=bt[Pr+2]&&c<=bt[Pr+3]&&u>=bt[Pr+0]&&m>=bt[Pr+1]&&(!ne||ne(this.boxKeys[An]))){if(Z.hitTest)return M.push(!0),!0;M.push({key:this.boxKeys[An],x1:bt[Pr],y1:bt[Pr+1],x2:bt[Pr+2],y2:bt[Pr+3]})}}}}catch(ti){Bt.e(ti)}finally{Bt.f()}}return!1}},{key:"forEachCell",value:function(l,c,u,m,E,M,Z,ne){for(var Ce=this.convertToXCellCoord(l),Fe=this.convertToYCellCoord(c),bt=this.convertToXCellCoord(u),Bt=this.convertToYCellCoord(m),Cn=Ce;Cn<=bt;Cn++)for(var An=Fe;An<=Bt;An++){var Pr=this.xCellCount*An+Cn;if(E.call(this,l,c,u,m,Pr,M,Z,ne))return}}},{key:"convertToXCellCoord",value:function(l){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(l*this.xScale)))}},{key:"convertToYCellCoord",value:function(l){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(l*this.yScale)))}}]),o}(),Wy=pm,FW=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"viewportPadding",100),this.width=d,this.height=l,this.viewportPadding=Math.max(d,l),this.grid=new Wy(d+this.viewportPadding,l+this.viewportPadding,25),this.screenRightBoundary=d+this.viewportPadding,this.screenBottomBoundary=l+this.viewportPadding,this.gridRightBoundary=d+2*this.viewportPadding,this.gridBottomBoundary=l+2*this.viewportPadding}return(0,ot.Z)(o,[{key:"placeCollisionBox",value:function(l){var c=l.x1+l.anchorPointX+this.viewportPadding,u=l.y1+l.anchorPointY+this.viewportPadding,m=l.x2+l.anchorPointX+this.viewportPadding,E=l.y2+l.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,u,m,E)||this.grid.hitTest(c,u,m,E)?{box:[]}:{box:[c,u,m,E]}}},{key:"insertCollisionBox",value:function(l,c){var u={featureIndex:c};this.grid.insert(u,l[0],l[1],l[2],l[3])}},{key:"project",value:function(l,c,u){var m=te(c,u,0,1),E=H(),M=Dm.apply(w,(0,Pn.Z)(l));return Vh(E,m,M),{x:(E[0]/E[3]+1)/2*this.width+this.viewportPadding,y:(-E[1]/E[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(l,c,u,m){return u>=0&&l=0&&c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function _7(o,d){if(o){if(typeof o=="string")return F2(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return F2(o,d)}}function F2(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l6&&arguments[6]!==void 0?arguments[6]:[0,0],M=arguments.length>7?arguments[7]:void 0,Z=o.split(` +`),ne=[],Ce={positionedGlyphs:ne,top:E[1],bottom:E[1],left:E[0],right:E[0],lineCount:Z.length,text:o};return M?b7(Ce,d,Z,l,c,u,m):BW(Ce,d,Z,l,c,u,m),ne.length?Ce:!1}function AO(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],l=arguments.length>2?arguments[2]:void 0,c=o.positionedGlyphs,u=c===void 0?[]:c,m=[],E=y7(u),M;try{for(E.s();!(M=E.n()).done;){var Z=M.value,ne=Z.metrics,Ce=4,Fe=ne.advance*Z.scale/2,bt=l?[Z.x+Fe,Z.y]:[0,0],Bt=l?[0,0]:[Z.x+Fe+d[0],Z.y+d[1]],Cn=(0-Ce)*Z.scale-Fe+Bt[0],An=(0-Ce)*Z.scale+Bt[1],Pr=Cn+ne.width*Z.scale,ti=An+ne.height*Z.scale,ho={x:Cn,y:An},bo={x:Pr,y:An},Ds={x:Cn,y:ti},ta={x:Pr,y:ti};m.push({tl:ho,tr:bo,bl:Ds,br:ta,tex:ne,glyphOffset:bt})}}catch(aa){E.e(aa)}finally{E.f()}return m}function x7(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=DO(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function DO(o,d){if(o){if(typeof o=="string")return IO(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return IO(o,d)}}function IO(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l.5||!Ti||G!==this.preTextStyle.textAllowOverlap)){Zo.next=14;break}return Zo.next=13,this.reBuildModel();case 13:return Zo.abrupt("return",!0);case 14:return Zo.abrupt("return",!1);case 15:case"end":return Zo.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l;(l=this.texture)===null||l===void 0||l.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Ld.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(g,T,B){return[B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:1,update:function(g){var T=g.size,B=T===void 0?12:T;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Ld.Attribute,descriptor:{name:"a_tex",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var l=this.mapService.getBounds();return jd(l,.5)}},{key:"initTextFont",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,G=[];B.forEach(function(ne){var Me=ne.shape,Ge=Me===void 0?"":Me;Ge=Ge.toString();var Et=E$(Ge),Ot;try{for(Et.s();!(Ot=Et.n()).done;){var Pn=Ot.value;G.indexOf(Pn)===-1&&G.push(Pn)}}catch(Mn){Et.e(Mn)}finally{Et.f()}}),this.fontService.setFontOptions({characterSet:G,fontWeight:g,fontFamily:T,iconfont:!1})}},{key:"initIconFontTex",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,G=[];B.forEach(function(ne){var Me=ne.shape,Ge=Me===void 0?"":Me;Ge="".concat(Ge),G.indexOf(Ge)===-1&&G.push(Ge)}),this.fontService.setFontOptions({characterSet:G,fontWeight:g,fontFamily:T,iconfont:!0})}},{key:"getTextStyle",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B,ne=l.textAllowOverlap,Me=ne===void 0?!1:ne,Ge=l.padding,Et=Ge===void 0?[0,0]:Ge,Ot=l.textAnchor,Pn=Ot===void 0?"center":Ot,Mn=l.textOffset,Ir=Mn===void 0?[0,0]:Mn,Ti=l.opacity,Ko=Ti===void 0?1:Ti,Zo=l.strokeOpacity,Qs=Zo===void 0?1:Zo,ga=l.strokeWidth,Ma=ga===void 0?0:ga,ll=l.stroke,Wl=ll===void 0?"#000":ll;return{fontWeight:T,fontFamily:G,textAllowOverlap:Me,padding:Et,textAnchor:Pn,textOffset:Ir,opacity:Ko,strokeOpacity:Qs,strokeWidth:Ma,stroke:Wl}}},{key:"generateGlyphLayout",value:function(l){var g=this,T=this.getFontServiceMapping(),B=this.layer.getLayerConfig(),G=B.spacing,ne=G===void 0?2:G,Me=B.textAnchor,Ge=Me===void 0?"center":Me,Et=B.textOffset,Ot=this.rawEncodeData;this.glyphInfo=Ot.map(function(Pn){var Mn=Pn.shape,Ir=Mn===void 0?"":Mn,Ti=Pn.id,Ko=Pn.size,Zo=Ko===void 0?1:Ko,Qs=Pn.textOffset?Pn.textOffset:Et||[0,0],ga=Pn.textAnchor?Pn.textAnchor:Ge||"center",Ma=Og(Ir.toString(),T,Zo,ga,"left",ne,Qs,l),ll=r1(Ma,Qs,!1);return Pn.shaping=Ma,Pn.glyphQuads=ll,Pn.centroid=Lh(Pn.coordinates),Pn.originCentroid=Pn.version==="GAODE2.x"?Lh(Pn.originCoordinates):Pn.originCentroid=Pn.centroid,g.glyphInfoMap[Ti]={shaping:Ma,glyphQuads:ll,centroid:Lh(Pn.coordinates)},Pn})}},{key:"getFontServiceMapping",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B;return this.fontService.getMappingByKey("".concat(G,"_").concat(T))}},{key:"getFontServiceCanvas",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B;return this.fontService.getCanvasByKey("".concat(G,"_").concat(T))}},{key:"filterGlyphs",value:function(){var l=this,g=this.layer.getLayerConfig(),T=g.padding,B=T===void 0?[0,0]:T,G=g.textAllowOverlap,ne=G===void 0?!1:G;if(!ne){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Me=this.rendererService.getViewportSize(),Ge=Me.width,Et=Me.height,Ot=new B6(Ge,Et),Pn=this.glyphInfo.filter(function(Mn){var Ir=Mn.shaping,Ti=Mn.id,Ko=Ti===void 0?0:Ti,Zo=Mn.version==="GAODE2.x"?Mn.originCentroid:Mn.centroid,Qs=Mn.size,ga=Qs/16,Ma=l.mapService.lngLatToContainer(Zo),ll=Ot.placeCollisionBox({x1:Ir.left*ga-B[0],x2:Ir.right*ga+B[0],y1:Ir.top*ga-B[1],y2:Ir.bottom*ga+B[1],anchorPointX:Ma.x,anchorPointY:Ma.y}),Wl=ll.box;return Wl&&Wl.length?(Ot.insertCollisionBox(Wl,Ko),!0):!1});Pn.forEach(function(Mn){l.glyphInfoMap[Mn.id]=Mn})}}},{key:"initGlyph",value:function(){var l=this.layer.getLayerConfig(),g=l.iconfont,T=g===void 0?!1:g;T?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(T)}},{key:"updateTexture",value:function(){var l=this.rendererService.createTexture2D,g=this.getFontServiceCanvas();this.textureHeight=g.height,this.texture&&this.texture.destroy(),this.texture=l({data:g,mag:qi.LINEAR,min:qi.LINEAR,width:g.width,height:g.height})}},{key:"reBuildModel",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return this.filterGlyphs(),G.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:oO,fragmentShader:iO,triangulation:sO.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:T=G.sent,this.layer.models=[T];case 5:case"end":return G.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()}]),u}(Su),aO={fillImage:U3,fill:W_,radar:H3,image:yC,normal:N6,simplePoint:f$,extrude:O2,text:B4,earthFill:p$,earthExtrude:tv},$6=aO;function lO(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=W6(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function W6(a,p){if(a){if(typeof a=="string")return z4(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return z4(a,p)}}function z4(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u.5||!ti||Z!==this.preTextStyle.textAllowOverlap)){bo.next=14;break}return bo.next=13,this.reBuildModel();case 13:return bo.abrupt("return",!0);case 14:return bo.abrupt("return",!1);case 15:case"end":return bo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u;(u=this.texture)===null||u===void 0||u.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:wd.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:Di.STATIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,M){return[M[5],M[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:wd.Attribute,descriptor:{name:"a_Size",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:1,update:function(m){var E=m.size,M=E===void 0?12:E;return Array.isArray(M)?[M[0]]:[M]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:wd.Attribute,descriptor:{name:"a_tex",buffer:{usage:Di.DYNAMIC_DRAW,data:[],type:Di.FLOAT},size:2,update:function(m,E,M){return[M[3],M[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var u=this.mapService.getBounds();return zd(u,.5)}},{key:"initTextFont",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,M=this.rawEncodeData,Z=[];M.forEach(function(ne){var Ce=ne.shape,Fe=Ce===void 0?"":Ce;Fe=Fe.toString();var bt=x7(Fe),Bt;try{for(bt.s();!(Bt=bt.n()).done;){var Cn=Bt.value;Z.indexOf(Cn)===-1&&Z.push(Cn)}}catch(An){bt.e(An)}finally{bt.f()}}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!1})}},{key:"initIconFontTex",value:function(){var u=this.getTextStyle(),m=u.fontWeight,E=u.fontFamily,M=this.rawEncodeData,Z=[];M.forEach(function(ne){var Ce=ne.shape,Fe=Ce===void 0?"":Ce;Fe="".concat(Fe),Z.indexOf(Fe)===-1&&Z.push(Fe)}),this.fontService.setFontOptions({characterSet:Z,fontWeight:m,fontFamily:E,iconfont:!0})}},{key:"getTextStyle",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M,ne=u.textAllowOverlap,Ce=ne===void 0?!1:ne,Fe=u.padding,bt=Fe===void 0?[0,0]:Fe,Bt=u.textAnchor,Cn=Bt===void 0?"center":Bt,An=u.textOffset,Pr=An===void 0?[0,0]:An,ti=u.opacity,ho=ti===void 0?1:ti,bo=u.strokeOpacity,Ds=bo===void 0?1:bo,ta=u.strokeWidth,aa=ta===void 0?0:ta,Ua=u.stroke,pl=Ua===void 0?"#000":Ua;return{fontWeight:E,fontFamily:Z,textAllowOverlap:Ce,padding:bt,textAnchor:Cn,textOffset:Pr,opacity:ho,strokeOpacity:Ds,strokeWidth:aa,stroke:pl}}},{key:"generateGlyphLayout",value:function(u){var m=this,E=this.getFontServiceMapping(),M=this.layer.getLayerConfig(),Z=M.spacing,ne=Z===void 0?2:Z,Ce=M.textAnchor,Fe=Ce===void 0?"center":Ce,bt=M.textOffset,Bt=this.rawEncodeData;this.glyphInfo=Bt.map(function(Cn){var An=Cn.shape,Pr=An===void 0?"":An,ti=Cn.id,ho=Cn.size,bo=ho===void 0?1:ho,Ds=Cn.textOffset?Cn.textOffset:bt||[0,0],ta=Cn.textAnchor?Cn.textAnchor:Fe||"center",aa=TO(Pr.toString(),E,bo,ta,"left",ne,Ds,u),Ua=AO(aa,Ds,!1);return Cn.shaping=aa,Cn.glyphQuads=Ua,Cn.centroid=Qf(Cn.coordinates),Cn.originCentroid=Cn.version==="GAODE2.x"?Qf(Cn.originCoordinates):Cn.originCentroid=Cn.centroid,m.glyphInfoMap[ti]={shaping:aa,glyphQuads:Ua,centroid:Qf(Cn.coordinates)},Cn})}},{key:"getFontServiceMapping",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M;return this.fontService.getMappingByKey("".concat(Z,"_").concat(E))}},{key:"getFontServiceCanvas",value:function(){var u=this.layer.getLayerConfig(),m=u.fontWeight,E=m===void 0?"400":m,M=u.fontFamily,Z=M===void 0?"sans-serif":M;return this.fontService.getCanvasByKey("".concat(Z,"_").concat(E))}},{key:"filterGlyphs",value:function(){var u=this,m=this.layer.getLayerConfig(),E=m.padding,M=E===void 0?[0,0]:E,Z=m.textAllowOverlap,ne=Z===void 0?!1:Z;if(!ne){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Ce=this.rendererService.getViewportSize(),Fe=Ce.width,bt=Ce.height,Bt=new FW(Fe,bt),Cn=this.glyphInfo.filter(function(An){var Pr=An.shaping,ti=An.id,ho=ti===void 0?0:ti,bo=An.version==="GAODE2.x"?An.originCentroid:An.centroid,Ds=An.size,ta=Ds/16,aa=u.mapService.lngLatToContainer(bo),Ua=Bt.placeCollisionBox({x1:Pr.left*ta-M[0],x2:Pr.right*ta+M[0],y1:Pr.top*ta-M[1],y2:Pr.bottom*ta+M[1],anchorPointX:aa.x,anchorPointY:aa.y}),pl=Ua.box;return pl&&pl.length?(Bt.insertCollisionBox(pl,ho),!0):!1});Cn.forEach(function(An){u.glyphInfoMap[An.id]=An})}}},{key:"initGlyph",value:function(){var u=this.layer.getLayerConfig(),m=u.iconfont,E=m===void 0?!1:m;E?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(E)}},{key:"updateTexture",value:function(){var u=this.rendererService.createTexture2D,m=this.getFontServiceCanvas();this.textureHeight=m.height,this.texture&&this.texture.destroy(),this.texture=u({data:m,mag:Di.LINEAR,min:Di.LINEAR,width:m.width,height:m.height})}},{key:"reBuildModel",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E;return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.filterGlyphs(),Z.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:C7,fragmentShader:w7,triangulation:E_.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:E=Z.sent,this.layer.models=[E];case 5:case"end":return Z.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()}]),l}(Gu),E7={fillImage:RW,fill:HS,radar:v7,image:cD,normal:wO,simplePoint:aD,extrude:d7,text:S7,earthFill:hy,earthExtrude:h7},R0=E7;function LO(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=UW(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function UW(o,d){if(o){if(typeof o=="string")return T_(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return T_(o,d)}}function T_(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:!0;l&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),u}(Su),Dw={fill:i8},dW=Dw;function $D(a){var p=yO();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function yO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _O=function(a){(0,ft.Z)(u,a);var p=$D(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:!0;u&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),l}(Gu),wj={fill:xj},X4=wj;function zM(o){var d=Cj();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Cj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var WO=function(o){(0,ut.Z)(l,o);var d=zM(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},T=this.layer.getLayerConfig(),B=T.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(l=this.colorModel)===null||l===void 0||l.draw({uniforms:{u_opacity:B||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(g)}),this.layer.hooks.afterRender.call()}}]),u}(Su),a8={wind:WD},mW=a8;function LE(a){var p=vW();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function vW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var yW=function(a){(0,ft.Z)(u,a);var p=LE(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(l),this}},{key:"getDefaultConfig",value:function(){var l=this.getModelType(),g={wind:{}};return g[l]}},{key:"getModelType",value:function(){return"wind"}}]),u}(Ja),l8,jD,TO,VD,tI,nI,Aw,DO=Fa.cloneDeep,_W=(l8=(0,As.b2)(),jD=(0,As.f3)(vr.IMapService),TO=(0,As.f3)(vr.IFontService),l8(VD=(tI=function(){function a(){(0,bt.Z)(this,a),Fd(this,"mapService",nI,this),Fd(this,"fontService",Aw,this)}return(0,He.Z)(a,[{key:"apply",value:function(u,c){var l=this,g=c.styleAttributeService;u.hooks.init.tapPromise("DataMappingPlugin",(0,Na.Z)(ro().mark(function T(){return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:u.log(fm.MappingStart,Rl.INIT),l.generateMaping(u,{styleAttributeService:g}),u.log(fm.MappingEnd,Rl.INIT);case 3:case"end":return G.stop()}},T)}))),u.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var T=(0,Na.Z)(ro().mark(function B(G){var ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(G){Ge.next=2;break}return Ge.abrupt("return",G);case 2:return u.dataState.dataMappingNeedUpdate=!1,u.log(fm.MappingStart,Rl.UPDATE),ne=l.generateMaping(u,{styleAttributeService:g}),u.log(fm.MappingEnd,Rl.UPDATE),Ge.abrupt("return",ne);case 7:case"end":return Ge.stop()}},B)}));return function(B){return T.apply(this,arguments)}}()),u.hooks.beforeRender.tap("DataMappingPlugin",function(){var T=u.getSource();if(!(u.layerModelNeedUpdate||!T||!T.inited)){var B=g.getLayerStyleAttributes()||[],G=g.getLayerStyleAttribute("filter"),ne=T.data.dataArray;if(!(Array.isArray(ne)&&ne.length===0)){var Me=B.filter(function(Ot){return Ot.needRemapping}),Ge=ne;if(G!=null&&G.needRemapping&&G!==null&&G!==void 0&&G.scale&&(Ge=ne.filter(function(Ot){return l.applyAttributeMapping(G,Ot)[0]})),Me.length){var Et=l.mapping(u,Me,Ge,u.getEncodedData());u.setEncodedData(Et)}}}})}},{key:"generateMaping",value:function(u,c){var l=this,g=c.styleAttributeService,T=g.getLayerStyleAttributes()||[],B=g.getLayerStyleAttribute("filter"),G=u.getSource().data.dataArray,ne=G;B!=null&&B.scale&&(ne=G.filter(function(Ge){return l.applyAttributeMapping(B,Ge)[0]})),ne=u.processData(ne);var Me=this.mapping(u,T,ne,void 0);return u.setEncodedData(Me),G.length===0&&u.encodeDataLength===0?!1:(u.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(u,c,l,g){var T=this,B=u.getLayerConfig(),G=B.arrow,ne=G===void 0?{enable:!1}:G,Me=c.filter(function(Et){return Et.scale!==void 0}).filter(function(Et){return Et.name!=="filter"}),Ge=l.map(function(Et,Ot){var Pn=g?g[Ot]:{},Mn=(0,we.Z)({id:Et._id,coordinates:Et.coordinates},Pn);if(Me.forEach(function(Ko){var Zo=T.applyAttributeMapping(Ko,Et);(Ko.name==="color"||Ko.name==="stroke")&&(Zo=Zo.map(function(Qs){return Qr(Qs)})),Mn[Ko.name]=Array.isArray(Zo)&&Zo.length===1?Zo[0]:Zo,Ko.name==="shape"&&(Mn.shape=T.fontService.getIconFontKey(Mn[Ko.name]))}),ne.enable&&Mn.shape==="line"){var Ir=Mn.coordinates;if(u.arrowInsertCount0&&this.mapService.version===d0["GAODE2.x"]){var g=c.coordCenter||c.getSource().center;u.filter(function(T){return!T.originCoordinates}).map(function(T){T.version=d0["GAODE2.x"],T.originCoordinates=DO(T.coordinates),T.coordinates=l.mapService.coordToAMap2RelativeCoordinates(T.coordinates,g)})}}},{key:"adjustData2SimpleCoordinates",value:function(u){var c=this;u.length>0&&this.mapService.version===d0.SIMPLE&&u.map(function(l){l.simpleCoordinate||(l.coordinates=c.unProjectCoordinates(l.coordinates),l.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(u){var c=this;if(typeof u[0]=="number")return this.mapService.simpleMapCoord.unproject(u);if(u[0]&&u[0][0]instanceof Array){var l=[];return u.map(function(T){var B=[];T.map(function(G){B.push(c.mapService.simpleMapCoord.unproject(G))}),l.push(B)}),l}else{var g=[];return u.map(function(T){g.push(c.mapService.simpleMapCoord.unproject(T))}),g}}},{key:"applyAttributeMapping",value:function(u,c){var l;if(!u.scale)return[];var g=(u==null||(l=u.scale)===null||l===void 0?void 0:l.scalers)||[],T=[];g.forEach(function(G){var ne,Me=G.field;(c.hasOwnProperty(Me)||((ne=u.scale)===null||ne===void 0?void 0:ne.type)==="variable")&&T.push(c[Me])});var B=u.mapping?u.mapping(T):[];return B}},{key:"getArrowPoints",value:function(u,c){var l=[c[0]-u[0],c[1]-u[1]],g=nd(l),T=[u[0]+g[0]*1e-4,u[1]+g[1]*1e-4];return T}}]),a}(),nI=$h(tI.prototype,"mapService",[jD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Aw=$h(tI.prototype,"fontService",[TO],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tI))||VD),u8,z2,UD=(u8=(0,As.b2)(),u8(z2=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){var c=this;this.mapService=u.getContainer().get(vr.IMapService),u.hooks.init.tapPromise("DataSourcePlugin",(0,Na.Z)(ro().mark(function l(){var g,T,B,G;return ro().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(u.log(fm.SourceInitStart,Rl.INIT),g=u.getSource(),g||(T=u.sourceOption||u.defaultSourceConfig,B=T.data,G=T.options,g=new r0(B,G),u.setSource(g)),!g.inited){Me.next=8;break}c.updateClusterData(u),u.log(fm.SourceInitEnd,Rl.INIT),Me.next=10;break;case 8:return Me.next=10,new Promise(function(Ge){g.on("update",function(Et){Et.type==="inited"&&(c.updateClusterData(u),u.log(fm.SourceInitEnd,Rl.INIT)),Ge(null)})});case 10:case"end":return Me.stop()}},l)}))),u.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Na.Z)(ro().mark(function l(){var g,T,B;return ro().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return g=c.updateClusterData(u),T=u.dataState.dataSourceNeedUpdate,u.dataState.dataSourceNeedUpdate=!1,B=g||T,ne.abrupt("return",B);case 5:case"end":return ne.stop()}},l)})))}},{key:"updateClusterData",value:function(u){if(u.isTileLayer||u.tileLayer||!u.getSource())return!1;var c=u.getSource(),l=c.cluster,g=c.clusterOptions.zoom,T=g===void 0?0:g,B=this.mapService.getZoom()-1,G=u.dataState.dataSourceNeedUpdate;return l&&G&&c.updateClusterData(Math.floor(B)),l&&Math.abs(u.clusterZoom-B)>=1?(T!==Math.floor(B)&&c.updateClusterData(Math.floor(B)),u.clusterZoom=B,!0):!1}}]),a}())||z2),w1=m(61272);function c8(a,p,u,c,l){var g=a*a,T=g*a;return((1-3*a+3*g-T)*p+(4-6*g+3*T)*u+(1+3*a+3*g-3*T)*c+T*l)/6}function bW(a){var p=a.length-1;return function(u){var c=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),l=a[c],g=a[c+1],T=c>0?a[c-1]:2*l-g,B=c180||u<-180?u-360*Math.round(u/360):u):constant(isNaN(a)?p:a)}function iI(a){return(a=+a)==1?Iw:function(p,u){return u-p?rI(p,u,a):AO(isNaN(p)?u:p)}}function Iw(a,p){var u=p-a;return u?d8(a,u):AO(isNaN(a)?p:a)}var IO=function a(p){var u=iI(p);function c(l,g){var T=u((l=Qn(l)).r,(g=Qn(g)).r),B=u(l.g,g.g),G=u(l.b,g.b),ne=Iw(l.opacity,g.opacity);return function(Me){return l.r=T(Me),l.g=B(Me),l.b=G(Me),l.opacity=ne(Me),l+""}}return c.gamma=a,c}(1);function LO(a){return function(p){var u=p.length,c=new Array(u),l=new Array(u),g=new Array(u),T,B;for(T=0;T=a.length)return u!=null&&B.sort(u),c!=null?c(B):B;for(var Ge=-1,Et=B.length,Ot=a[G++],Pn,Mn,Ir=map(),Ti,Ko=ne();++Gea.length)return B;var ne,Me=p[G-1];return c!=null&&G>=a.length?ne=B.entries():(ne=[],B.each(function(Ge,Et){ne.push({key:Et,values:T(Ge,G)})})),Me!=null?ne.sort(function(Ge,Et){return Me(Ge.key,Et.key)}):ne}return l={object:function(B){return g(B,0,PO,f0)},map:function(B){return g(B,0,Rx,z1)},entries:function(B){return T(g(B,0,Rx,z1),0)},key:function(B){return a.push(B),l},sortKeys:function(B){return p[a.length-1]=B,l},sortValues:function(B){return u=B,l},rollup:function(B){return c=B,l}}}function PO(){return{}}function f0(a,p,u){a[p]=u}function Rx(){return map()}function z1(a,p,u){a.set(p,u)}function Nv(){}var N0=pf.prototype;Nv.prototype=oI.prototype={constructor:Nv,has:N0.has,add:function(a){return a+="",this[d_+a]=a,this},remove:N0.remove,clear:N0.clear,values:N0.keys,size:N0.size,empty:N0.empty,each:N0.each};function oI(a,p){var u=new Nv;if(a instanceof Nv)a.each(function(g){u.add(g)});else if(a){var c=-1,l=a.length;if(p==null)for(;++cu&&(g=p.slice(u,g),B[T]?B[T]+=g:B[++T]=g),(c=c[0])===(l=l[0])?B[T]?B[T]+=l:B[++T]=l:(B[++T]=null,G.push({i:T,x:J4(c,l)})),u=MO.lastIndex;return uu&&(c=p,p=u,u=c),function(l){return Math.max(p,Math.min(u,l))}}function j_(a,p,u){var c=a[0],l=a[1],g=p[0],T=p[1];return l2?W1:j_,G=ne=null,Ge}function Ge(Et){return isNaN(Et=+Et)?g:(G||(G=B(a.map(c),p,u)))(c(T(Et)))}return Ge.invert=function(Et){return T(l((ne||(ne=B(p,a.map(c),J4)))(Et)))},Ge.domain=function(Et){return arguments.length?(a=f8.call(Et,LW),T===$1||(T=v8(a)),Me()):a.slice()},Ge.range=function(Et){return arguments.length?(p=PE.call(Et),Me()):p.slice()},Ge.rangeRound=function(Et){return p=PE.call(Et),u=AW,Me()},Ge.clamp=function(Et){return arguments.length?(T=Et?v8(a):$1,Ge):T!==$1},Ge.interpolate=function(Et){return arguments.length?(u=Et,Me()):u},Ge.unknown=function(Et){return arguments.length?(g=Et,Ge):g},function(Et,Ot){return c=Et,l=Ot,Me()}}function y8(a,p){return RO()(a,p)}var PW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pw(a){if(!(p=PW.exec(a)))throw new Error("invalid format: "+a);var p;return new NO({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}Pw.prototype=NO.prototype;function NO(a){this.fill=a.fill===void 0?" ":a.fill+"",this.align=a.align===void 0?">":a.align+"",this.sign=a.sign===void 0?"-":a.sign+"",this.symbol=a.symbol===void 0?"":a.symbol+"",this.zero=!!a.zero,this.width=a.width===void 0?void 0:+a.width,this.comma=!!a.comma,this.precision=a.precision===void 0?void 0:+a.precision,this.trim=!!a.trim,this.type=a.type===void 0?"":a.type+""}NO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kW(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)}function tP(a,p){if((u=(a=p?a.toExponential(p-1):a.toExponential()).indexOf("e"))<0)return null;var u,c=a.slice(0,u);return[c.length>1?c[0]+c.slice(2):c,+a.slice(u+1)]}function ZD(a){return a=tP(Math.abs(a)),a?a[1]:NaN}function MW(a,p){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ZD(p)/3)))*3-ZD(Math.abs(a)))}function OW(a,p){return function(u,c){for(var l=u.length,g=[],T=0,B=a[0],G=0;l>0&&B>0&&(G+B+1>c&&(B=Math.max(1,c-G)),g.push(u.substring(l-=B,l+B)),!((G+=B+1)>c));)B=a[T=(T+1)%a.length];return g.reverse().join(p)}}function gX(a){return function(p){return p.replace(/[0-9]/g,function(u){return a[+u]})}}function mX(a){e:for(var p=a.length,u=1,c=-1,l;u0&&(c=0);break}return c>0?a.slice(0,c)+a.slice(l+1):a}var RW;function f_(a,p){var u=tP(a,p);if(!u)return a+"";var c=u[0],l=u[1],g=l-(RW=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,T=c.length;return g===T?c:g>T?c+new Array(g-T+1).join("0"):g>0?c.slice(0,g)+"."+c.slice(g):"0."+new Array(1-g).join("0")+tP(a,Math.max(0,p+g-1))[0]}function kE(a,p){var u=tP(a,p);if(!u)return a+"";var c=u[0],l=u[1];return l<0?"0."+new Array(-l).join("0")+c:c.length>l+1?c.slice(0,l+1)+"."+c.slice(l+1):c+new Array(l-c.length+2).join("0")}var jc={"%":function(a,p){return(a*100).toFixed(p)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:kW,e:function(a,p){return a.toExponential(p)},f:function(a,p){return a.toFixed(p)},g:function(a,p){return a.toPrecision(p)},o:function(a){return Math.round(a).toString(8)},p:function(a,p){return kE(a*100,p)},r:kE,s:f_,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}};function Zb(a){return a}var nP=Array.prototype.map,aI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function NW(a){var p=a.grouping===void 0||a.thousands===void 0?Zb:OW(nP.call(a.grouping,Number),a.thousands+""),u=a.currency===void 0?"":a.currency[0]+"",c=a.currency===void 0?"":a.currency[1]+"",l=a.decimal===void 0?".":a.decimal+"",g=a.numerals===void 0?Zb:gX(nP.call(a.numerals,String)),T=a.percent===void 0?"%":a.percent+"",B=a.minus===void 0?"-":a.minus+"",G=a.nan===void 0?"NaN":a.nan+"";function ne(Ge){Ge=Pw(Ge);var Et=Ge.fill,Ot=Ge.align,Pn=Ge.sign,Mn=Ge.symbol,Ir=Ge.zero,Ti=Ge.width,Ko=Ge.comma,Zo=Ge.precision,Qs=Ge.trim,ga=Ge.type;ga==="n"?(Ko=!0,ga="g"):jc[ga]||(Zo===void 0&&(Zo=12),Qs=!0,ga="g"),(Ir||Et==="0"&&Ot==="=")&&(Ir=!0,Et="0",Ot="=");var Ma=Mn==="$"?u:Mn==="#"&&/[boxX]/.test(ga)?"0"+ga.toLowerCase():"",ll=Mn==="$"?c:/[%p]/.test(ga)?T:"",Wl=jc[ga],jl=/[defgprs%]/.test(ga);Zo=Zo===void 0?6:/[gprs]/.test(ga)?Math.max(1,Math.min(21,Zo)):Math.max(0,Math.min(20,Zo));function ju(Pu){var Vc=Ma,dd=ll,Kd,Hp,gm;if(ga==="c")dd=Wl(Pu)+dd,Pu="";else{Pu=+Pu;var Fg=Pu<0||1/Pu<0;if(Pu=isNaN(Pu)?G:Wl(Math.abs(Pu),Zo),Qs&&(Pu=mX(Pu)),Fg&&+Pu==0&&Pn!=="+"&&(Fg=!1),Vc=(Fg?Pn==="("?Pn:B:Pn==="-"||Pn==="("?"":Pn)+Vc,dd=(ga==="s"?aI[8+RW/3]:"")+dd+(Fg&&Pn==="("?")":""),jl){for(Kd=-1,Hp=Pu.length;++Kdgm||gm>57){dd=(gm===46?l+Pu.slice(Kd+1):Pu.slice(Kd))+dd,Pu=Pu.slice(0,Kd);break}}}Ko&&!Ir&&(Pu=p(Pu,1/0));var mm=Vc.length+Pu.length+dd.length,b0=mm>1)+Vc+Pu+dd+b0.slice(mm);break;default:Pu=b0+Vc+Pu+dd;break}return g(Pu)}return ju.toString=function(){return Ge+""},ju}function Me(Ge,Et){var Ot=ne((Ge=Pw(Ge),Ge.type="f",Ge)),Pn=Math.max(-8,Math.min(8,Math.floor(ZD(Et)/3)))*3,Mn=Math.pow(10,-Pn),Ir=aI[8+Pn/3];return function(Ti){return Ot(Mn*Ti)+Ir}}return{format:ne,formatPrefix:Me}}var ME,rP,_8;FW({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function FW(a){return ME=NW(a),rP=ME.format,_8=ME.formatPrefix,ME}function vX(a,p){return a=Math.abs(a),p=Math.abs(p)-a,Math.max(0,ZD(p)-ZD(a))+1}function FO(a){return Math.max(0,-ZD(Math.abs(a)))}function iP(a,p,u,c){var l=(0,w1.ly)(a,p,u),g;switch(c=Pw(c==null?",f":c),c.type){case"s":{var T=Math.max(Math.abs(a),Math.abs(p));return c.precision==null&&!isNaN(g=MW(l,T))&&(c.precision=g),_8(c,T)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(g=vX(l,Math.max(Math.abs(a),Math.abs(p))))&&(c.precision=g-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(g=FO(l))&&(c.precision=g-(c.type==="%")*2);break}}return rP(c)}function vb(a){var p=a.domain;return a.ticks=function(u){var c=p();return(0,w1.sd)(c[0],c[c.length-1],u==null?10:u)},a.tickFormat=function(u,c){var l=p();return iP(l[0],l[l.length-1],u==null?10:u,c)},a.nice=function(u){u==null&&(u=10);var c=p(),l=0,g=c.length-1,T=c[l],B=c[g],G;return B0?(T=Math.floor(T/G)*G,B=Math.ceil(B/G)*G,G=(0,w1.G9)(T,B,u)):G<0&&(T=Math.ceil(T*G)/G,B=Math.floor(B*G)/G,G=(0,w1.G9)(T,B,u)),G>0?(c[l]=Math.floor(T/G)*G,c[g]=Math.ceil(B/G)*G,p(c)):G<0&&(c[l]=Math.ceil(T*G)/G,c[g]=Math.floor(B*G)/G,p(c)),a},a}function b8(){var a=y8($1,$1);return a.copy=function(){return eP(a,b8())},K0.apply(a,arguments),vb(a)}function BO(a){var p;function u(c){return isNaN(c=+c)?p:c}return u.invert=u,u.domain=u.range=function(c){return arguments.length?(a=map.call(c,number),u):a.slice()},u.unknown=function(c){return arguments.length?(p=c,u):p},u.copy=function(){return BO(a).unknown(p)},a=arguments.length?map.call(a,number):[0,1],linearish(u)}function x8(a,p){a=a.slice();var u=0,c=a.length-1,l=a[u],g=a[c],T;return g0){for(;EtMe)break;Ko.push(Ir)}}else for(;Et=1;--Mn)if(Ir=Pn*Mn,!(IrMe)break;Ko.push(Ir)}}else Ko=(0,w1.sd)(Et,Ot,Math.min(Ot-Et,Ti)).map(g);return Ge?Ko.reverse():Ko},p.tickFormat=function(B,G){if(G==null&&(G=c===10?".0e":","),typeof G!="function"&&(G=rP(G)),B===1/0)return G;B==null&&(B=10);var ne=Math.max(1,c*B/p.ticks().length);return function(Me){var Ge=Me/g(Math.round(l(Me)));return Ge*c0?u[B-1]:a[0],B=u?[c[u-1],p]:[c[ne-1],c[ne]]},T.unknown=function(G){return arguments.length&&(g=G),T},T.thresholds=function(){return c.slice()},T.copy=function(){return UO().domain([a,p]).range(l).unknown(g)},K0.apply(vb(T),arguments)}function HO(){var a=[.5],p=[0,1],u,c=1;function l(g){return g<=g?p[(0,w1.b4)(a,g,0,c)]:u}return l.domain=function(g){return arguments.length?(a=PE.call(g),c=Math.min(a.length,p.length-1),l):a.slice()},l.range=function(g){return arguments.length?(p=PE.call(g),c=Math.min(a.length,p.length-1),l):p.slice()},l.invertExtent=function(g){var T=p.indexOf(g);return[a[T-1],a[T]]},l.unknown=function(g){return arguments.length?(u=g,l):u},l.copy=function(){return HO().domain(a).range(p).unknown(u)},K0.apply(l,arguments)}var cI=new Date,ZO=new Date;function fy(a,p,u,c){function l(g){return a(g=arguments.length===0?new Date:new Date(+g)),g}return l.floor=function(g){return a(g=new Date(+g)),g},l.ceil=function(g){return a(g=new Date(g-1)),p(g,1),a(g),g},l.round=function(g){var T=l(g),B=l.ceil(g);return g-T0))return G;do G.push(ne=new Date(+g)),p(g,B),a(g);while(ne=T)for(;a(T),!g(T);)T.setTime(T-1)},function(T,B){if(T>=T)if(B<0)for(;++B<=0;)for(;p(T,-1),!g(T););else for(;--B>=0;)for(;p(T,1),!g(T););})},u&&(l.count=function(g,T){return cI.setTime(+g),ZO.setTime(+T),a(cI),a(ZO),Math.floor(u(cI,ZO))},l.every=function(g){return g=Math.floor(g),!isFinite(g)||!(g>0)?null:g>1?l.filter(c?function(T){return c(T)%g===0}:function(T){return l.count(0,T)%g===0}):l}),l}var GO=fy(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,p){a.setFullYear(a.getFullYear()+p)},function(a,p){return p.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});GO.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:fy(function(p){p.setFullYear(Math.floor(p.getFullYear()/a)*a),p.setMonth(0,1),p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*a)})};var XD=GO,KO=GO.range,uP=fy(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,p){a.setMonth(a.getMonth()+p)},function(a,p){return p.getMonth()-a.getMonth()+(p.getFullYear()-a.getFullYear())*12},function(a){return a.getMonth()}),E8=uP,_X=uP.range,j2=1e3,p_=6e4,T8=36e5,zW=864e5,CC=6048e5;function RE(a){return fy(function(p){p.setDate(p.getDate()-(p.getDay()+7-a)%7),p.setHours(0,0,0,0)},function(p,u){p.setDate(p.getDate()+u*7)},function(p,u){return(u-p-(u.getTimezoneOffset()-p.getTimezoneOffset())*p_)/CC})}var XO=RE(0),j1=RE(1),cP=RE(2),$W=RE(3),V2=RE(4),WW=RE(5),dI=RE(6),bX=XO.range,hI=j1.range,D8=cP.range,jW=$W.range,xX=V2.range,CX=WW.range,VW=dI.range,YO=fy(function(a){a.setHours(0,0,0,0)},function(a,p){a.setDate(a.getDate()+p)},function(a,p){return(p-a-(p.getTimezoneOffset()-a.getTimezoneOffset())*p_)/zW},function(a){return a.getDate()-1}),wC=YO,wX=YO.range,A8=fy(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*j2-a.getMinutes()*p_)},function(a,p){a.setTime(+a+p*T8)},function(a,p){return(p-a)/T8},function(a){return a.getHours()}),UW=A8,dP=A8.range,I8=fy(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*j2)},function(a,p){a.setTime(+a+p*p_)},function(a,p){return(p-a)/p_},function(a){return a.getMinutes()}),HW=I8,SX=I8.range,qO=fy(function(a){a.setTime(a-a.getMilliseconds())},function(a,p){a.setTime(+a+p*j2)},function(a,p){return(p-a)/j2},function(a){return a.getUTCSeconds()}),ZW=qO,L8=qO.range,hP=fy(function(){},function(a,p){a.setTime(+a+p)},function(a,p){return p-a});hP.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?fy(function(p){p.setTime(Math.floor(p/a)*a)},function(p,u){p.setTime(+p+u*a)},function(p,u){return(u-p)/a}):hP};var P8=hP,EX=hP.range;function yb(a){return fy(function(p){p.setUTCDate(p.getUTCDate()-(p.getUTCDay()+7-a)%7),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCDate(p.getUTCDate()+u*7)},function(p,u){return(u-p)/CC})}var k8=yb(0),V_=yb(1),GW=yb(2),KW=yb(3),YD=yb(4),M8=yb(5),XW=yb(6),TX=k8.range,DX=V_.range,AX=GW.range,IX=KW.range,YW=YD.range,LX=M8.range,O8=XW.range,fP=fy(function(a){a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCDate(a.getUTCDate()+p)},function(a,p){return(p-a)/zW},function(a){return a.getUTCDate()-1}),pP=fP,qW=fP.range,qD=fy(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCFullYear(a.getUTCFullYear()+p)},function(a,p){return p.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});qD.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:fy(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/a)*a),p.setUTCMonth(0,1),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*a)})};var JD=qD,R8=qD.range;function fI(a){if(0<=a.y&&a.y<100){var p=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return p.setFullYear(a.y),p}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function JO(a){if(0<=a.y&&a.y<100){var p=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return p.setUTCFullYear(a.y),p}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function pI(a,p,u){return{y:a,m:p,d:u,H:0,M:0,S:0,L:0}}function N8(a){var p=a.dateTime,u=a.date,c=a.time,l=a.periods,g=a.days,T=a.shortDays,B=a.months,G=a.shortMonths,ne=gI(l),Me=kw(l),Ge=gI(g),Et=kw(g),Ot=gI(T),Pn=kw(T),Mn=gI(B),Ir=kw(B),Ti=gI(G),Ko=kw(G),Zo={a:Fg,A:mm,b:b0,B:py,c:null,d:eA,e:eA,f:lj,g:mP,G:pj,H:sj,I:aj,j:r5,L:z8,m:uj,M:cj,p:MA,q:WC,Q:H8,s:Z8,S:H2,u:$8,U:mI,V:TC,w:dj,W:hj,x:null,X:null,y:fj,Y:tA,Z:gj,"%":U8},Qs={a:iT,A:oT,b:V0,B:a1,c:null,d:vP,e:vP,f:Jv,g:bj,G:V8,H:m_,I:W8,j:yP,L:j8,m:mj,M:Z2,p:vL,q:yL,Q:H8,s:Z8,S:i5,u:DC,U:o5,V:vj,w:_P,W:yj,x:null,X:null,y:_j,Y:xj,Z:Cj,"%":U8},ga={a:ju,A:Pu,b:Vc,B:dd,c:Kd,d:gP,e:gP,f:Bx,g:B8,G:EC,H:t5,I:t5,j:rj,L:QD,m:nj,M:n5,p:jl,q:NE,Q:oj,s:Mw,S:U2,u:Wy,U:ej,V:QO,w:F8,W:tj,x:Hp,X:gm,y:B8,Y:EC,Z:e5,"%":ij};Zo.x=Ma(u,Zo),Zo.X=Ma(c,Zo),Zo.c=Ma(p,Zo),Qs.x=Ma(u,Qs),Qs.X=Ma(c,Qs),Qs.c=Ma(p,Qs);function Ma(op,Mm){return function(p0){var Rh=[],G1=-1,B0=0,Pp=op.length,ky,sT,OA;for(p0 instanceof Date||(p0=new Date(+p0));++G153)return null;"w"in Rh||(Rh.w=1),"Z"in Rh?(B0=JO(pI(Rh.y,0,1)),Pp=B0.getUTCDay(),B0=Pp>4||Pp===0?V_.ceil(B0):V_(B0),B0=pP.offset(B0,(Rh.V-1)*7),Rh.y=B0.getUTCFullYear(),Rh.m=B0.getUTCMonth(),Rh.d=B0.getUTCDate()+(Rh.w+6)%7):(B0=fI(pI(Rh.y,0,1)),Pp=B0.getDay(),B0=Pp>4||Pp===0?j1.ceil(B0):j1(B0),B0=wC.offset(B0,(Rh.V-1)*7),Rh.y=B0.getFullYear(),Rh.m=B0.getMonth(),Rh.d=B0.getDate()+(Rh.w+6)%7)}else("W"in Rh||"U"in Rh)&&("w"in Rh||(Rh.w="u"in Rh?Rh.u%7:"W"in Rh?1:0),Pp="Z"in Rh?JO(pI(Rh.y,0,1)).getUTCDay():fI(pI(Rh.y,0,1)).getDay(),Rh.m=0,Rh.d="W"in Rh?(Rh.w+6)%7+Rh.W*7-(Pp+5)%7:Rh.w+Rh.U*7-(Pp+6)%7);return"Z"in Rh?(Rh.H+=Rh.Z/100|0,Rh.M+=Rh.Z%100,JO(Rh)):fI(Rh)}}function Wl(op,Mm,p0,Rh){for(var G1=0,B0=Mm.length,Pp=p0.length,ky,sT;G1=Pp)return-1;if(ky=Mm.charCodeAt(G1++),ky===37){if(ky=Mm.charAt(G1++),sT=ga[ky in Fx?Mm.charAt(G1++):ky],!sT||(Rh=sT(op,p0,Rh))<0)return-1}else if(ky!=p0.charCodeAt(Rh++))return-1}return Rh}function jl(op,Mm,p0){var Rh=ne.exec(Mm.slice(p0));return Rh?(op.p=Me[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function ju(op,Mm,p0){var Rh=Ot.exec(Mm.slice(p0));return Rh?(op.w=Pn[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Pu(op,Mm,p0){var Rh=Ge.exec(Mm.slice(p0));return Rh?(op.w=Et[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Vc(op,Mm,p0){var Rh=Ti.exec(Mm.slice(p0));return Rh?(op.m=Ko[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function dd(op,Mm,p0){var Rh=Mn.exec(Mm.slice(p0));return Rh?(op.m=Ir[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Kd(op,Mm,p0){return Wl(op,p,Mm,p0)}function Hp(op,Mm,p0){return Wl(op,u,Mm,p0)}function gm(op,Mm,p0){return Wl(op,c,Mm,p0)}function Fg(op){return T[op.getDay()]}function mm(op){return g[op.getDay()]}function b0(op){return G[op.getMonth()]}function py(op){return B[op.getMonth()]}function MA(op){return l[+(op.getHours()>=12)]}function WC(op){return 1+~~(op.getMonth()/3)}function iT(op){return T[op.getUTCDay()]}function oT(op){return g[op.getUTCDay()]}function V0(op){return G[op.getUTCMonth()]}function a1(op){return B[op.getUTCMonth()]}function vL(op){return l[+(op.getUTCHours()>=12)]}function yL(op){return 1+~~(op.getUTCMonth()/3)}return{format:function(op){var Mm=Ma(op+="",Zo);return Mm.toString=function(){return op},Mm},parse:function(op){var Mm=ll(op+="",!1);return Mm.toString=function(){return op},Mm},utcFormat:function(op){var Mm=Ma(op+="",Qs);return Mm.toString=function(){return op},Mm},utcParse:function(op){var Mm=ll(op+="",!0);return Mm.toString=function(){return op},Mm}}}var Fx={"-":"",_:" ",0:"0"},qv=/^\s*\d+/,JW=/^%/,SC=/[\\^$*+?|[\]().{}]/g;function s0(a,p,u){var c=a<0?"-":"",l=(c?-a:a)+"",g=l.length;return c+(g68?1900:2e3),u+c[0].length):-1}function e5(a,p,u){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(p.slice(u,u+6));return c?(a.Z=c[1]?0:-(c[2]+(c[3]||"00")),u+c[0].length):-1}function NE(a,p,u){var c=qv.exec(p.slice(u,u+1));return c?(a.q=c[0]*3-3,u+c[0].length):-1}function nj(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.m=c[0]-1,u+c[0].length):-1}function gP(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.d=+c[0],u+c[0].length):-1}function rj(a,p,u){var c=qv.exec(p.slice(u,u+3));return c?(a.m=0,a.d=+c[0],u+c[0].length):-1}function t5(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.H=+c[0],u+c[0].length):-1}function n5(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.M=+c[0],u+c[0].length):-1}function U2(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.S=+c[0],u+c[0].length):-1}function QD(a,p,u){var c=qv.exec(p.slice(u,u+3));return c?(a.L=+c[0],u+c[0].length):-1}function Bx(a,p,u){var c=qv.exec(p.slice(u,u+6));return c?(a.L=Math.floor(c[0]/1e3),u+c[0].length):-1}function ij(a,p,u){var c=JW.exec(p.slice(u,u+1));return c?u+c[0].length:-1}function oj(a,p,u){var c=qv.exec(p.slice(u));return c?(a.Q=+c[0],u+c[0].length):-1}function Mw(a,p,u){var c=qv.exec(p.slice(u));return c?(a.s=+c[0],u+c[0].length):-1}function eA(a,p){return s0(a.getDate(),p,2)}function sj(a,p){return s0(a.getHours(),p,2)}function aj(a,p){return s0(a.getHours()%12||12,p,2)}function r5(a,p){return s0(1+wC.count(XD(a),a),p,3)}function z8(a,p){return s0(a.getMilliseconds(),p,3)}function lj(a,p){return z8(a,p)+"000"}function uj(a,p){return s0(a.getMonth()+1,p,2)}function cj(a,p){return s0(a.getMinutes(),p,2)}function H2(a,p){return s0(a.getSeconds(),p,2)}function $8(a){var p=a.getDay();return p===0?7:p}function mI(a,p){return s0(XO.count(XD(a)-1,a),p,2)}function g_(a){var p=a.getDay();return p>=4||p===0?V2(a):V2.ceil(a)}function TC(a,p){return a=g_(a),s0(V2.count(XD(a),a)+(XD(a).getDay()===4),p,2)}function dj(a){return a.getDay()}function hj(a,p){return s0(j1.count(XD(a)-1,a),p,2)}function fj(a,p){return s0(a.getFullYear()%100,p,2)}function mP(a,p){return a=g_(a),s0(a.getFullYear()%100,p,2)}function tA(a,p){return s0(a.getFullYear()%1e4,p,4)}function pj(a,p){var u=a.getDay();return a=u>=4||u===0?V2(a):V2.ceil(a),s0(a.getFullYear()%1e4,p,4)}function gj(a){var p=a.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+s0(p/60|0,"0",2)+s0(p%60,"0",2)}function vP(a,p){return s0(a.getUTCDate(),p,2)}function m_(a,p){return s0(a.getUTCHours(),p,2)}function W8(a,p){return s0(a.getUTCHours()%12||12,p,2)}function yP(a,p){return s0(1+pP.count(JD(a),a),p,3)}function j8(a,p){return s0(a.getUTCMilliseconds(),p,3)}function Jv(a,p){return j8(a,p)+"000"}function mj(a,p){return s0(a.getUTCMonth()+1,p,2)}function Z2(a,p){return s0(a.getUTCMinutes(),p,2)}function i5(a,p){return s0(a.getUTCSeconds(),p,2)}function DC(a){var p=a.getUTCDay();return p===0?7:p}function o5(a,p){return s0(k8.count(JD(a)-1,a),p,2)}function nA(a){var p=a.getUTCDay();return p>=4||p===0?YD(a):YD.ceil(a)}function vj(a,p){return a=nA(a),s0(YD.count(JD(a),a)+(JD(a).getUTCDay()===4),p,2)}function _P(a){return a.getUTCDay()}function yj(a,p){return s0(V_.count(JD(a)-1,a),p,2)}function _j(a,p){return s0(a.getUTCFullYear()%100,p,2)}function bj(a,p){return a=nA(a),s0(a.getUTCFullYear()%100,p,2)}function xj(a,p){return s0(a.getUTCFullYear()%1e4,p,4)}function V8(a,p){var u=a.getUTCDay();return a=u>=4||u===0?YD(a):YD.ceil(a),s0(a.getUTCFullYear()%1e4,p,4)}function Cj(){return"+0000"}function U8(){return"%"}function H8(a){return+a}function Z8(a){return Math.floor(+a/1e3)}var rA,G8,iA,K8,X8;AC({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 AC(a){return rA=N8(a),G8=rA.format,iA=rA.parse,K8=rA.utcFormat,X8=rA.utcParse,rA}var G2=1e3,oA=G2*60,vI=oA*60,sA=vI*24,wj=sA*7,Y8=sA*30,IC=sA*365;function s5(a){return new Date(a)}function FE(a){return a instanceof Date?+a:+new Date(+a)}function q8(a,p,u,c,l,g,T,B,G){var ne=y8($1,$1),Me=ne.invert,Ge=ne.domain,Et=G(".%L"),Ot=G(":%S"),Pn=G("%I:%M"),Mn=G("%I %p"),Ir=G("%a %d"),Ti=G("%b %d"),Ko=G("%B"),Zo=G("%Y"),Qs=[[T,1,G2],[T,5,5*G2],[T,15,15*G2],[T,30,30*G2],[g,1,oA],[g,5,5*oA],[g,15,15*oA],[g,30,30*oA],[l,1,vI],[l,3,3*vI],[l,6,6*vI],[l,12,12*vI],[c,1,sA],[c,2,2*sA],[u,1,wj],[p,1,Y8],[p,3,3*Y8],[a,1,IC]];function ga(ll){return(T(ll)2){var Ge=ne.scale.ticks(T.values.length);ne.scale.domain(Ge)}T.values?ne.scale.range(T.values):ne.scale.range(ne.option.domain);break;case n0.QUANTILE:case n0.QUANTIZE:case n0.THRESHOLD:ne.scale.range(T.values);break;case n0.IDENTITY:break;case n0.CAT:T.values?ne.scale.range(T.values):ne.scale.range(ne.option.domain);break;case n0.DIVERGING:case n0.SEQUENTIAL:ne.scale.interpolator(fv(T.values));break}}if(T.values==="text"){var Et;ne.scale.range((Et=ne.option)===null||Et===void 0?void 0:Et.domain)}})):(T.type=Bb.CONSTANT,T.defaultValues=G.map(function(ne,Me){return ne.scale(T.names[Me])})),T.scalers=G.map(function(ne){return{field:ne.field,func:ne.scale,option:ne.option}}),g.needRescale=!1}})}},{key:"parseFields",value:function(u){return Array.isArray(u)?u:_I(u)?u.split("*"):[u]}},{key:"createScale",value:function(u,c,l,g){var T,B,G=this.scaleOptions[c]&&((T=this.scaleOptions[c])===null||T===void 0?void 0:T.field)===u?this.scaleOptions[c]:this.scaleOptions[u],ne={field:u,scale:void 0,type:Bb.VARIABLE,option:G};if(!g||!g.length)return G&&G.type?ne.scale=this.createDefaultScale(G):(ne.scale=q4([u]),ne.type=Bb.CONSTANT),ne;var Me=(B=g.find(function(Ot){return!l5(Ot[u])}))===null||B===void 0?void 0:B[u];if(this.isNumber(u)||l5(Me)&&!G)ne.scale=q4([u]),ne.type=Bb.CONSTANT;else{var Ge=G&&G.type||this.getDefaultType(Me);l==="text"&&(Ge=n0.CAT),l===void 0&&(Ge=n0.IDENTITY);var Et=this.createScaleConfig(Ge,u,G,g);ne.scale=this.createDefaultScale(Et),ne.option=Et}return ne}},{key:"getDefaultType",value:function(u){var c=n0.LINEAR;return typeof u=="string"&&(c=Tj.test(u)?n0.TIME:n0.CAT),c}},{key:"createScaleConfig",value:function(u,c,l,g){var T={type:u},B=(g==null?void 0:g.map(function(Me){return Me[c]}))||[];if(l!=null&&l.domain)T.domain=l==null?void 0:l.domain;else if(u===n0.CAT||u===n0.IDENTITY)T.domain=Ej(B);else if(u===n0.QUANTILE)T.domain=B;else if(u===n0.DIVERGING){var G=(0,w1.We)(B),ne=(l==null?void 0:l.neutral)!==void 0?l==null?void 0:l.neutral:(G[0]+G[1])/2;T.domain=[G[0],ne,G[1]]}else T.domain=(0,w1.We)(B);return(0,we.Z)((0,we.Z)({},T),l)}},{key:"createDefaultScale",value:function(u){var c=u.type,l=u.domain,g=u.unknown,T=u.clamp,B=u.nice,G=Dj[c]();return l&&G.domain&&G.domain(l),g&&G.unknown(g),T!==void 0&&G.clamp&&G.clamp(T),B!==void 0&&G.nice&&G.nice(B),G}}]),a}())||X2),wP,u5,tF=(wP=(0,As.b2)(),wP(u5=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){u.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=u.animateStatus;c&&u.models.forEach(function(l){l.addUniforms((0,we.Z)({},u.layerModel.getAnimateUniforms()))})})}}]),a}())||u5),LC,c5,Aj=(LC=(0,As.b2)(),LC(c5=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){u.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=u.getLayerConfig(),l=c.maskLayers,g=c.enableMask;if(!u.tileLayer&&l&&l.length>0){var T;(T=u.masks).push.apply(T,(0,Fr.Z)(l)),u.updateLayerConfig({mask:g})}})}}]),a}())||c5),Ij=function(){function a(p){var u=p.rendererService,c=p.layerService,l=p.parent;(0,bt.Z)(this,a),(0,Cn.Z)(this,"tileResource",new Map),(0,Cn.Z)(this,"layerTiles",[]),this.rendererService=u,this.layerService=c,this.parent=l}return(0,He.Z)(a,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(u){return this.layerTiles.some(function(c){return c.key===u})}},{key:"addTile",value:function(u){this.layerTiles.push(u)}},{key:"getTile",value:function(u){return this.layerTiles.find(function(c){return c.key===u})}},{key:"getVisibleTileBylngLat",value:function(u){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(u)})}},{key:"removeTile",value:function(u){var c=this.layerTiles.findIndex(function(g){return g.key===u}),l=this.layerTiles.splice(c,1);l[0]&&l[0].destroy()}},{key:"updateTileVisible",value:function(u){var c=this.getTile(u.key);c==null||c.updateVisible(u.isVisible)}},{key:"isParentLoaded",value:function(u){var c=u.parent;if(!c)return!0;var l=this.getTile(c==null?void 0:c.key);return!!(l!=null&&l.isLoaded)}},{key:"isChildrenLoaded",value:function(u){var c=this,l=u==null?void 0:u.children;return l.length===0?!0:l.some(function(g){var T=c.getTile(g==null?void 0:g.key);return(T==null?void 0:T.isLoaded)===!1})}},{key:"render",value:function(){var p=(0,Na.Z)(ro().mark(function c(){var l=this,g,T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return g=this.getRenderLayers(),T=g.map(function(){var ne=(0,Na.Z)(ro().mark(function Me(Ge){return ro().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,l.layerService.renderTileLayer(Ge);case 2:case"end":return Ot.stop()}},Me)}));return function(Me){return ne.apply(this,arguments)}}()),G.next=4,Promise.all(T);case 4:case"end":return G.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"getRenderLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.visible&&l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,Fr.Z)(l.getLayers()))}),c}},{key:"getLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,Fr.Z)(l.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(u){return u.destroy()}),this.tileResource.clear()}}]),a}(),Lj=m(51287),bI=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"getCombineFeature",value:function(u){var c=null,l=u[0];return u.map(function(g){var T=xa.polygon(g.coordinates);c===null?c=T:c=(0,Lj.Z)(c,T)}),l&&(c.properties=(0,we.Z)({},l)),c}}]),a}(),xI="select",CI="active",d5=function(){function a(p){var u=p.layerService,c=p.tileLayerService,l=p.parent;(0,bt.Z)(this,a),(0,Cn.Z)(this,"tilePickID",new Map),this.layerService=u,this.tileLayerService=c,this.parent=l,this.tileSourceService=new bI}return(0,He.Z)(a,[{key:"pickRender",value:function(u){var c=this.tileLayerService.getVisibleTileBylngLat(u.lngLat);if(c){var l=c.getMainLayer();l==null||l.layerPickService.pickRender(u)}}},{key:"pick",value:function(u,c){var l=this.parent.getContainer(),g=l.get(vr.IPickingService);if(u.type==="RasterLayer"){var T=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(T&&T.getMainLayer()!==void 0){var B=T.getMainLayer();return B.layerPickService.pickRasterLayer(B,c,this.parent)}return!1}return this.pickRender(c),g.pickFromPickingFBO(u,c)}},{key:"selectFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(xI,B),this.updateHighLight(l,g,T,xI)}},{key:"highlightPickedFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(CI,B),this.updateHighLight(l,g,T,CI)}},{key:"updateHighLight",value:function(u,c,l,g){this.tileLayerService.tiles.map(function(T){var B=T.getMainLayer();switch(g){case xI:B==null||B.hooks.beforeSelect.call([u,c,l]);break;case CI:B==null||B.hooks.beforeHighlight.call([u,c,l]);break}})}},{key:"setPickState",value:function(){var u=this.tilePickID.get(xI),c=this.tilePickID.get(CI);if(u){var l=this.pickId2Color(u),g=(0,qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.updateHighLight(T,B,G,xI);return}if(c){var ne=this.pickId2Color(c),Me=(0,qn.Z)(ne,3),Ge=Me[0],Et=Me[1],Ot=Me[2];this.updateHighLight(Ge,Et,Ot,CI);return}}},{key:"color2PickId",value:function(u,c,l){return oi(new Uint8Array([u,c,l]))}},{key:"pickId2Color",value:function(u){return Zi(u)}},{key:"getFeatureById",value:function(u){var c=this.tileLayerService.getTiles().filter(function(g){return g.visible}),l=[];return c.forEach(function(g){l.push.apply(l,(0,Fr.Z)(g.getFeatureById(u)))}),l}},{key:"pickRasterLayer",value:function(u,c,l){return!1}}]),a}(),nF=["shape","color","size","style","animate","filter","rotate","scale","setBlend","setSelect","setActive","disableMask","enableMask"];function Pj(a){return a==="PolygonLayer"?j4:a==="LineLayer"?_E:$4}function kj(a){return["PolygonLayer","LineLayer"].indexOf(a)!==-1}var $E=function(){function a(p,u){(0,bt.Z)(this,a),(0,Cn.Z)(this,"visible",!0),(0,Cn.Z)(this,"layers",[]),(0,Cn.Z)(this,"isLoaded",!1),(0,Cn.Z)(this,"tileMaskLayers",[]),this.parent=u,this.sourceTile=p,this.x=p.x,this.y=p.y,this.z=p.z,this.key="".concat(this.x,"_").concat(this.y,"_").concat(this.z)}return(0,He.Z)(a,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(u){var c=(0,qn.Z)(this.sourceTile.bounds,4),l=c[0],g=c[1],T=c[2],B=c[3],G=u.lng,ne=u.lat;return G>=l&&G<=T&&ne>=g&&ne<=B}},{key:"getLayerOptions",value:function(){var u,c=this.parent.getLayerConfig();return(0,we.Z)((0,we.Z)({},c),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:kj(this.parent.type),mask:c.mask||((u=c.maskLayers)===null||u===void 0?void 0:u.length)!==0&&c.enableMask})}},{key:"getMaskLayer",value:function(){var u=this,c=this.parent.getLayerConfig(),l=c.maskLayers,g=[];return l==null||l.forEach(function(T){if(!T.tileLayer)return g.push(T),T;var B=T.tileLayer,G=B.getTile(u.sourceTile.key),ne=G==null?void 0:G.getLayers()[0];ne&&g.push(ne)}),g}},{key:"addTileMask",value:function(){var p=(0,Na.Z)(ro().mark(function c(){var l,g,T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return l=new j4({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill"),g=Rb(this.parent.sceneContainer),l.setContainer(g,this.parent.sceneContainer),G.next=5,l.init();case 5:return this.tileMask=l,T=this.getMainLayer(),T!==void 0&&(T.tileMask=l),G.abrupt("return",l);case 9:case"end":return G.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"addMask",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g){var T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return T=Rb(this.parent.sceneContainer),g.setContainer(T,this.parent.sceneContainer),G.next=4,g.init();case 4:l.addMask(g),this.tileMaskLayers.push(g);case 6:case"end":return G.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"addLayer",value:function(){var p=(0,Na.Z)(ro().mark(function c(l){var g;return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return l.isTileLayer=!0,g=Rb(this.parent.sceneContainer),l.setContainer(g,this.parent.sceneContainer),this.layers.push(l),B.next=6,l.init();case 6:case"end":return B.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"updateVisible",value:function(u){this.visible=u,this.updateOptions("visible",u)}},{key:"updateOptions",value:function(u,c){this.layers.forEach(function(l){l.updateLayerConfig((0,Cn.Z)({},u,c))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(u){return[]}},{key:"getFeatureById",value:function(u){return[]}},{key:"destroy",value:function(){var u;(u=this.tileMask)===null||u===void 0||u.destroy(),this.layers.forEach(function(c){return c.destroy()})}}]),a}();function Mj(a){var p=SP();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function SP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var h5=function(a){(0,ft.Z)(u,a);var p=Mj(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.getSourceOption(),B=T.data.features[0].properties,G=new _E().source(T.data,T.options).size(1).shape("line").color("red"),ne=new $4({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([B],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Ge.next=6,this.addLayer(G);case 6:return Ge.next=8,this.addLayer(ne);case 8:this.isLoaded=!0;case 9:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:g},options:{parser:{type:"geojson"},transforms:l.transforms}}}}]),u}($E);function Oj(a){var p=Rj();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Rj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var EP=function(a){(0,ft.Z)(u,a);var p=Oj(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),ne=new WM((0,we.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(Et){var Ot,Pn,Mn=Et;ne[Mn]((Ot=T[Mn])===null||Ot===void 0?void 0:Ot.field,(Pn=T[Mn])===null||Pn===void 0?void 0:Pn.values)}),Ge.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}($E);function Nj(a){var p=Fj();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Fj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Bj=function(a){(0,ft.Z)(u,a);var p=Nj(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),ne=new _O((0,we.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(Et){var Ot,Pn,Mn=Et;ne[Mn]((Ot=T[Mn])===null||Ot===void 0?void 0:Ot.field,(Pn=T[Mn])===null||Pn===void 0?void 0:Pn.values)}),Ge.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getFeatures",value:function(l){if(!l)return[];var g=this.sourceTile.data;return g.getTileData(l)}},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.parent.getLayerConfig(),T=g.sourceLayer,B=g.featureId,G=this.getFeatures(T);return{data:{type:"FeatureCollection",features:G},options:{parser:{type:"geojson",featureId:B},transforms:l.transforms}}}}]),u}($E),TP=["rasterData"];function zj(a){var p=$j();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function $j(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _b=function(a){(0,ft.Z)(u,a);var p=zj(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),ne=new V4((0,we.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(Et){var Ot,Pn,Mn=Et;ne[Mn]((Ot=T[Mn])===null||Ot===void 0?void 0:Ot.field,(Pn=T[Mn])===null||Pn===void 0?void 0:Pn.values)}),Ge.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Vg.Z)(g,TP);return{data:T,options:{parser:(0,we.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}}]),u}($E);function wI(a){var p=rF();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function rF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Wj=function(a){(0,ft.Z)(u,a);var p=wI(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne;return ro().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),ne=new V4((0,we.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(Et){var Ot,Pn,Mn=Et;ne[Mn]((Ot=T[Mn])===null||Ot===void 0?void 0:Ot.field,(Pn=T[Mn])===null||Pn===void 0?void 0:Pn.values)}),Ge.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}($E),f5=["rasterData"];function U_(a){var p=SI();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function SI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var jj={positions:[0,1],colors:["#000","#fff"]},iF=function(a){(0,ft.Z)(u,a);var p=U_(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge,Et;return ro().wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),ne=this.getLayerOptions(),Me=ne.rampColors,Ge=ne.domain,this.colorTexture=this.parent.textureService.getColorTexture(Me,Ge),Et=new V4((0,we.Z)((0,we.Z)({},B),{},{colorTexture:this.colorTexture})).source(G.data,G.options),T&&Object.keys(T).forEach(function(Mn){var Ir,Ti,Ko=Mn;Et[Ko]((Ir=T[Ko])===null||Ir===void 0?void 0:Ir.field,(Ti=T[Ko])===null||Ti===void 0?void 0:Ti.values)}),Pn.next=9,this.addLayer(Et);case 9:this.isLoaded=!0;case 10:case"end":return Pn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Vg.Z)(g,f5);return{data:T,options:{parser:(0,we.Z)({type:"raster",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}},{key:"styleUpdate",value:function(){for(var l=this,g=arguments.length,T=new Array(g),B=0;B=2&&!ne&&(u.parent.updateLayerConfig({visible:!0}),u.layerService.reRender())}u.lastViewStates&&u.lastViewStates.zoom===B&&u.lastViewStates.latLonBounds.toString()===T.toString()||(u.lastViewStates={zoom:B,latLonBounds:T},(l=u.tilesetManager)===null||l===void 0||l.throttleUpdate(B,T))}}),(0,Cn.Z)(this,"viewchange",sF(this.mapchange,24)),this.parent=p;var c=this.parent.getContainer();this.rendererService=c.get(vr.IRendererService),this.layerService=c.get(vr.ILayerService),this.mapService=c.get(vr.IMapService),this.pickingService=c.get(vr.IPickingService),this.tileLayerService=new Ij({rendererService:this.rendererService,layerService:this.layerService,parent:p}),this.tilePickService=new d5({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:p}),this.parent.setLayerPickService(this.tilePickService),this.proxy(p),this.initTileSetManager()}return(0,He.Z)(a,[{key:"initTileSetManager",value:function(){var u,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var l=this.getCurrentView(),g=l.latLonBounds,T=l.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(T,g)}}},{key:"getCurrentView",value:function(){var u=this.mapService.getBounds(),c=[u[0][0],u[0][1],u[1][0],u[1][1]],l=this.mapService.getZoom();return{latLonBounds:c,zoom:l}}},{key:"bindTilesetEvent",value:function(){var u=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){u.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,l){u.tileError(c)}),this.tilesetManager.on("tile-update",function(){u.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(u){return this.tileLayerService.getTile(u)}},{key:"tileLoaded",value:function(u){}},{key:"tileError",value:function(u){console.warn("error:",u)}},{key:"destroy",value:function(){var u;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(u=this.tilesetManager)===null||u===void 0||u.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var u;this.tilesetManager.clear();var c=this.getCurrentView(),l=c.latLonBounds,g=c.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(g,l)}},{key:"tileUnLoad",value:function(u){this.tileLayerService.removeTile(u.key)}},{key:"tileUpdate",value:function(){var p=(0,Na.Z)(ro().mark(function c(){var l=this,g,T;return ro().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.tilesetManager){G.next=2;break}return G.abrupt("return");case 2:return g=this.parent.getMinZoom(),T=this.parent.getMaxZoom(),G.next=6,Promise.all(this.tilesetManager.tiles.filter(function(ne){return ne.isLoaded}).filter(function(ne){return ne.isVisibleChange}).filter(function(ne){return ne.data}).filter(function(ne){return ne.z>=g&&ne.z0&&arguments[0]!==void 0?arguments[0]:{},p={top:0,right:0,bottom:0,left:0};if(typeof a=="number")return{top:a,right:a,bottom:a,left:a};if(Array.isArray(a)){if(a.length===4)return{top:a[0],right:a[1],bottom:a[2],left:a[3]};if(a.length===2)return{top:a[0],right:a[1],bottom:a[0],left:a[1]}}return(0,we.Z)((0,we.Z)({},p),a)}function WE(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function jE(a,p){var u=q0([],p,a);return Em(u,u,1/u[3]),u}function OX(a,p){var u=a%p;return u<0?p+u:u}function RX(a,p,u){return u*p+(1-u)*a}function VE(a,p){if(!a)throw new Error(p||"viewport-mercator-project: assertion failed.")}var $x=Math.PI,wF=$x/4,Rw=$x/180,SF=180/$x,kI=512,MI=4003e4,w5=1.5;function EF(a){return Math.pow(2,a)}function eV(a){return Math.log2(a)}function UE(a,p){var u=(0,qn.Z)(a,2),c=u[0],l=u[1];VE(Number.isFinite(c)&&Number.isFinite(p)),VE(Number.isFinite(l)&&l>=-90&&l<=90,"invalid latitude"),p*=kI;var g=c*Rw,T=l*Rw,B=p*(g+$x)/(2*$x),G=p*($x-Math.log(Math.tan(wF+T*.5)))/(2*$x);return[B,G]}function S5(a,p){var u=(0,qn.Z)(a,2),c=u[0],l=u[1];p*=kI;var g=c/p*(2*$x)-$x,T=2*(Math.atan(Math.exp($x-l/p*(2*$x)))-wF);return[g*SF,T*SF]}function NX(a){var p=a.latitude;assert(Number.isFinite(p));var u=Math.cos(p*Rw);return eV(MI*u)-9}function TF(a){var p=a.latitude,u=a.longitude,c=a.zoom,l=a.scale,g=a.highPrecision,T=g===void 0?!1:g;l=l!==void 0?l:EF(c),VE(Number.isFinite(p)&&Number.isFinite(u)&&Number.isFinite(l));var B={},G=kI*l,ne=Math.cos(p*Rw),Me=G/360,Ge=Me/ne,Et=G/MI/ne;if(B.pixelsPerMeter=[Et,-Et,Et],B.metersPerPixel=[1/Et,-1/Et,1/Et],B.pixelsPerDegree=[Me,-Ge,Et],B.degreesPerPixel=[1/Me,-1/Ge,1/Et],T){var Ot=Rw*Math.tan(p*Rw)/ne,Pn=Me*Ot/2,Mn=G/MI*Ot,Ir=Mn/Ge*Et;B.pixelsPerDegree2=[0,-Pn,Mn],B.pixelsPerMeter2=[Ir,0,Ir]}return B}function FX(a,p){var u=_slicedToArray(a,3),c=u[0],l=u[1],g=u[2],T=_slicedToArray(p,3),B=T[0],G=T[1],ne=T[2],Me=1,Ge=TF({longitude:c,latitude:l,scale:Me,highPrecision:!0}),Et=Ge.pixelsPerMeter,Ot=Ge.pixelsPerMeter2,Pn=UE(a,Me);Pn[0]+=B*(Et[0]+Ot[0]*G),Pn[1]+=G*(Et[1]+Ot[1]*G);var Mn=S5(Pn,Me),Ir=(g||0)+(ne||0);return Number.isFinite(g)||Number.isFinite(ne)?[Mn[0],Mn[1],Ir]:Mn}function tV(a){var p=a.height,u=a.pitch,c=a.bearing,l=a.altitude,g=a.center,T=g===void 0?null:g,B=a.flipY,G=B===void 0?!1:B,ne=WE();return ql(ne,ne,[0,0,-l]),ol(ne,ne,[1,1,1/p]),pu(ne,ne,-u*Rw),cd(ne,ne,c*Rw),G&&ol(ne,ne,[1,-1,1]),T&&ql(ne,ne,s4([],T)),ne}function nV(a){var p=a.width,u=a.height,c=a.altitude,l=c===void 0?w5:c,g=a.pitch,T=g===void 0?0:g,B=a.nearZMultiplier,G=B===void 0?1:B,ne=a.farZMultiplier,Me=ne===void 0?1:ne,Ge=T*Rw,Et=Math.atan(.5/l),Ot=Math.sin(Et)*l/Math.sin(Math.PI/2-Ge-Et),Pn=Math.cos(Math.PI/2-Ge)*Ot+l;return{fov:2*Math.atan(u/2/l),aspect:p/u,focalDistance:l,near:G,far:Pn*Me}}function rV(a){var p=a.width,u=a.height,c=a.pitch,l=a.altitude,g=a.nearZMultiplier,T=a.farZMultiplier,B=nV({width:p,height:u,altitude:l,pitch:c,nearZMultiplier:g,farZMultiplier:T}),G=B.fov,ne=B.aspect,Me=B.near,Ge=B.far,Et=bi([],G,ne,Me,Ge);return Et}function pA(a,p){var u=(0,qn.Z)(a,3),c=u[0],l=u[1],g=u[2],T=g===void 0?0:g;return VE(Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(T)),jE(p,[c,l,T,1])}function gA(a,p){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,qn.Z)(a,3),l=c[0],g=c[1],T=c[2];if(VE(Number.isFinite(l)&&Number.isFinite(g),"invalid pixel coordinate"),Number.isFinite(T)){var B=jE(p,[l,g,T,1]);return B}var G=jE(p,[l,g,0,1]),ne=jE(p,[l,g,1,1]),Me=G[2],Ge=ne[2],Et=Me===Ge?0:((u||0)-Me)/(Ge-Me);return Sg([],G,ne,Et)}var E5=WE(),iV=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=p.width,c=p.height,l=p.viewMatrix,g=l===void 0?E5:l,T=p.projectionMatrix,B=T===void 0?E5:T;(0,bt.Z)(this,a),this.width=u||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=g,this.projectionMatrix=B;var G=WE();Sl(G,G,this.projectionMatrix),Sl(G,G,this.viewMatrix),this.viewProjectionMatrix=G;var ne=WE();ol(ne,ne,[this.width/2,-this.height/2,1]),ql(ne,ne,[1,-1,0]),Sl(ne,ne,this.viewProjectionMatrix);var Me=$u(WE(),ne);if(!Me)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ne,this.pixelUnprojectionMatrix=Me,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(0,He.Z)(a,[{key:"equals",value:function(u){return u instanceof a?u.width===this.width&&u.height===this.height&&Xu(u.projectionMatrix,this.projectionMatrix)&&Xu(u.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=this.projectPosition(u),B=pA(T,this.pixelProjectionMatrix),G=(0,qn.Z)(B,2),ne=G[0],Me=G[1],Ge=g?Me:this.height-Me;return u.length===2?[ne,Ge]:[ne,Ge,B[2]]}},{key:"unproject",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=c.targetZ,B=(0,qn.Z)(u,3),G=B[0],ne=B[1],Me=B[2],Ge=g?ne:this.height-ne,Et=T&&T*this.pixelsPerMeter,Ot=gA([G,Ge,Me],this.pixelUnprojectionMatrix,Et),Pn=this.unprojectPosition(Ot),Mn=(0,qn.Z)(Pn,3),Ir=Mn[0],Ti=Mn[1],Ko=Mn[2];return Number.isFinite(Me)?[Ir,Ti,Ko]:Number.isFinite(T)?[Ir,Ti,T]:[Ir,Ti]}},{key:"projectPosition",value:function(u){var c=this.projectFlat(u),l=(0,qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)*this.pixelsPerMeter;return[g,T,B]}},{key:"unprojectPosition",value:function(u){var c=this.unprojectFlat(u),l=(0,qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)/this.pixelsPerMeter;return[g,T,B]}},{key:"projectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}},{key:"unprojectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}}]),a}();function oV(a){var p=a.width,u=a.height,c=a.bounds,l=a.minExtent,g=l===void 0?0:l,T=a.maxZoom,B=T===void 0?24:T,G=a.padding,ne=G===void 0?0:G,Me=a.offset,Ge=Me===void 0?[0,0]:Me,Et=(0,qn.Z)(c,2),Ot=(0,qn.Z)(Et[0],2),Pn=Ot[0],Mn=Ot[1],Ir=(0,qn.Z)(Et[1],2),Ti=Ir[0],Ko=Ir[1];if(Number.isFinite(ne)){var Zo=ne;ne={top:Zo,bottom:Zo,left:Zo,right:Zo}}else VE(Number.isFinite(ne.top)&&Number.isFinite(ne.bottom)&&Number.isFinite(ne.left)&&Number.isFinite(ne.right));var Qs=new HE({width:p,height:u,longitude:0,latitude:0,zoom:0}),ga=Qs.project([Pn,Ko]),Ma=Qs.project([Ti,Mn]),ll=[Math.max(Math.abs(Ma[0]-ga[0]),g),Math.max(Math.abs(Ma[1]-ga[1]),g)],Wl=[p-ne.left-ne.right-Math.abs(Ge[0])*2,u-ne.top-ne.bottom-Math.abs(Ge[1])*2];VE(Wl[0]>0&&Wl[1]>0);var jl=Wl[0]/ll[0],ju=Wl[1]/ll[1],Pu=(ne.right-ne.left)/2/jl,Vc=(ne.bottom-ne.top)/2/ju,dd=[(Ma[0]+ga[0])/2+Pu,(Ma[1]+ga[1])/2+Vc],Kd=Qs.unproject(dd),Hp=Qs.zoom+Math.log2(Math.abs(Math.min(jl,ju)));return{longitude:Kd[0],latitude:Kd[1],zoom:Math.min(Hp,B)}}var HE=function(a){(0,ft.Z)(p,a);function p(){var u,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.width,g=c.height,T=c.latitude,B=T===void 0?0:T,G=c.longitude,ne=G===void 0?0:G,Me=c.zoom,Ge=Me===void 0?0:Me,Et=c.pitch,Ot=Et===void 0?0:Et,Pn=c.bearing,Mn=Pn===void 0?0:Pn,Ir=c.altitude,Ti=Ir===void 0?1.5:Ir,Ko=c.nearZMultiplier,Zo=c.farZMultiplier;(0,bt.Z)(this,p),l=l||1,g=g||1;var Qs=EF(Ge);Ti=Math.max(.75,Ti);var ga=UE([ne,B],Qs);ga[2]=0;var Ma=rV({width:l,height:g,pitch:Ot,bearing:Mn,altitude:Ti,nearZMultiplier:Ko||1/g,farZMultiplier:Zo||1.01}),ll=tV({height:g,center:ga,pitch:Ot,bearing:Mn,altitude:Ti,flipY:!0});return u=(0,$t.Z)(this,(0,vt.Z)(p).call(this,{width:l,height:g,viewMatrix:ll,projectionMatrix:Ma})),u.latitude=B,u.longitude=ne,u.zoom=Ge,u.pitch=Ot,u.bearing=Mn,u.altitude=Ti,u.scale=Qs,u.center=ga,u.pixelsPerMeter=TF((0,ps.Z)((0,ps.Z)(u))).pixelsPerMeter[2],Object.freeze((0,ps.Z)((0,ps.Z)(u))),u}return(0,He.Z)(p,[{key:"projectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return UE(c,l)}},{key:"unprojectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return S5(c,l)}},{key:"getMapCenterByLngLatPosition",value:function(c){var l=c.lngLat,g=c.pos,T=gA(g,this.pixelUnprojectionMatrix),B=UE(l,this.scale),G=Bp([],B,ug([],T)),ne=Bp([],this.center,G);return S5(ne,this.scale)}},{key:"getLocationAtPoint",value:function(c){var l=c.lngLat,g=c.pos;return this.getMapCenterByLngLatPosition({lngLat:l,pos:g})}},{key:"fitBounds",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=this.width,T=this.height,B=oV(Object.assign({width:g,height:T,bounds:c},l)),G=B.longitude,ne=B.latitude,Me=B.zoom;return new p({width:g,height:T,longitude:G,latitude:ne,zoom:Me})}}]),p}(iV),OI=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,G=u.viewportWidth,ne=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 HE((0,we.Z)((0,we.Z)({},ne),{},{width:G,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T}))}},{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(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),RI={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},sV=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],T5,DF,AF,D5,IF,LF,PC,PF,mA,kF,MF;function aV(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}aV(`.amap-logo{ +`,HO={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},VM=function(o){(0,ut.Z)(l,o);var d=Dj(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{},E=this.layer.getLayerConfig(),M=E.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(u=this.colorModel)===null||u===void 0||u.draw({uniforms:{u_opacity:M||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(m)}),this.layer.hooks.afterRender.call()}}]),l}(Gu),YS={wind:VM},GO=YS;function Ij(o){var d=Pj();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Pj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var tA=function(o){(0,ut.Z)(l,o);var d=Ij(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(u),this}},{key:"getDefaultConfig",value:function(){var u=this.getModelType(),m={wind:{}};return m[u]}},{key:"getModelType",value:function(){return"wind"}}]),l}(i_),nA,X7,Y7,q7,WM,J7,Q7,Q4=Ns.cloneDeep,eP=(nA=(0,os.b2)(),X7=(0,os.f3)(Ms.IMapService),Y7=(0,os.f3)(Ms.IFontService),nA(q7=(WM=function(){function o(){(0,xt.Z)(this,o),Fc(this,"mapService",J7,this),Fc(this,"fontService",Q7,this)}return(0,ot.Z)(o,[{key:"apply",value:function(l,c){var u=this,m=c.styleAttributeService;l.hooks.init.tapPromise("DataMappingPlugin",(0,Il.Z)(Wi().mark(function E(){return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:l.log(Bv.MappingStart,Ll.INIT),u.generateMaping(l,{styleAttributeService:m}),l.log(Bv.MappingEnd,Ll.INIT);case 3:case"end":return Z.stop()}},E)}))),l.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var E=(0,Il.Z)(Wi().mark(function M(Z){var ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Z){Fe.next=2;break}return Fe.abrupt("return",Z);case 2:return l.dataState.dataMappingNeedUpdate=!1,l.log(Bv.MappingStart,Ll.UPDATE),ne=u.generateMaping(l,{styleAttributeService:m}),l.log(Bv.MappingEnd,Ll.UPDATE),Fe.abrupt("return",ne);case 7:case"end":return Fe.stop()}},M)}));return function(M){return E.apply(this,arguments)}}()),l.hooks.beforeRender.tap("DataMappingPlugin",function(){var E=l.getSource();if(!(l.layerModelNeedUpdate||!E||!E.inited)){var M=m.getLayerStyleAttributes()||[],Z=m.getLayerStyleAttribute("filter"),ne=E.data.dataArray;if(!(Array.isArray(ne)&&ne.length===0)){var Ce=M.filter(function(Bt){return Bt.needRemapping}),Fe=ne;if(Z!=null&&Z.needRemapping&&Z!==null&&Z!==void 0&&Z.scale&&(Fe=ne.filter(function(Bt){return u.applyAttributeMapping(Z,Bt)[0]})),Ce.length){var bt=u.mapping(l,Ce,Fe,l.getEncodedData());l.setEncodedData(bt)}}}})}},{key:"generateMaping",value:function(l,c){var u=this,m=c.styleAttributeService,E=m.getLayerStyleAttributes()||[],M=m.getLayerStyleAttribute("filter"),Z=l.getSource().data.dataArray,ne=Z;M!=null&&M.scale&&(ne=Z.filter(function(Fe){return u.applyAttributeMapping(M,Fe)[0]})),ne=l.processData(ne);var Ce=this.mapping(l,E,ne,void 0);return l.setEncodedData(Ce),Z.length===0&&l.encodeDataLength===0?!1:(l.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(l,c,u,m){var E=this,M=c.filter(function(ne){return ne.scale!==void 0}).filter(function(ne){return ne.name!=="filter"}),Z=u.map(function(ne,Ce){var Fe=m?m[Ce]:{},bt=(0,Oe.Z)({id:ne._id,coordinates:ne.coordinates},Fe);return M.forEach(function(Bt){var Cn=E.applyAttributeMapping(Bt,ne);(Bt.name==="color"||Bt.name==="stroke")&&(Cn=Cn.map(function(An){return ni(An)})),bt[Bt.name]=Array.isArray(Cn)&&Cn.length===1?Cn[0]:Cn,Bt.name==="shape"&&(bt.shape=E.fontService.getIconFontKey(bt[Bt.name]))}),bt});return c.forEach(function(ne){ne.needRemapping=!1}),this.adjustData2Amap2Coordinates(Z,l),this.adjustData2SimpleCoordinates(Z),Z}},{key:"adjustData2Amap2Coordinates",value:function(l,c){var u=this;if(l.length>0&&this.mapService.version==="GAODE2.x"){var m=c.coordCenter||c.getSource().center;l.filter(function(E){return!E.originCoordinates}).map(function(E){E.version="GAODE2.x",E.originCoordinates=Q4(E.coordinates),E.coordinates=u.mapService.coordToAMap2RelativeCoordinates(E.coordinates,m)})}}},{key:"adjustData2SimpleCoordinates",value:function(l){var c=this;l.length>0&&this.mapService.version==="SIMPLE"&&l.map(function(u){u.simpleCoordinate||(u.coordinates=c.unProjectCoordinates(u.coordinates),u.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(l){var c=this;if(typeof l[0]=="number")return this.mapService.simpleMapCoord.unproject(l);if(l[0]&&l[0][0]instanceof Array){var u=[];return l.map(function(E){var M=[];E.map(function(Z){M.push(c.mapService.simpleMapCoord.unproject(Z))}),u.push(M)}),u}else{var m=[];return l.map(function(E){m.push(c.mapService.simpleMapCoord.unproject(E))}),m}}},{key:"applyAttributeMapping",value:function(l,c){var u;if(!l.scale)return[];var m=(l==null||(u=l.scale)===null||u===void 0?void 0:u.scalers)||[],E=[];m.forEach(function(Z){var ne,Ce=Z.field;(c.hasOwnProperty(Ce)||((ne=l.scale)===null||ne===void 0?void 0:ne.type)==="variable")&&E.push(c[Ce])});var M=l.mapping?l.mapping(E):[];return M}},{key:"getArrowPoints",value:function(l,c){var u=[c[0]-l[0],c[1]-l[1]],m=ap(u),E=[l[0]+m[0]*1e-4,l[1]+m[1]*1e-4];return E}}]),o}(),J7=kh(WM.prototype,"mapService",[X7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q7=kh(WM.prototype,"fontService",[Y7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),WM))||q7),bD,zC,eB=(bD=(0,os.b2)(),bD(zC=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"apply",value:function(l){var c=this;this.mapService=l.getContainer().get(Ms.IMapService),l.hooks.init.tapPromise("DataSourcePlugin",(0,Il.Z)(Wi().mark(function u(){var m,E,M,Z;return Wi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(l.log(Bv.SourceInitStart,Ll.INIT),m=l.getSource(),m||(E=l.sourceOption||l.defaultSourceConfig,M=E.data,Z=E.options,m=new Ew(M,Z),l.setSource(m)),!m.inited){Ce.next=8;break}c.updateClusterData(l),l.log(Bv.SourceInitEnd,Ll.INIT),Ce.next=10;break;case 8:return Ce.next=10,new Promise(function(Fe){m.on("update",function(bt){bt.type==="inited"&&(c.updateClusterData(l),l.log(Bv.SourceInitEnd,Ll.INIT)),Fe(null)})});case 10:case"end":return Ce.stop()}},u)}))),l.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Il.Z)(Wi().mark(function u(){var m,E,M;return Wi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return m=c.updateClusterData(l),E=l.dataState.dataSourceNeedUpdate,l.dataState.dataSourceNeedUpdate=!1,M=m||E,ne.abrupt("return",M);case 5:case"end":return ne.stop()}},u)})))}},{key:"updateClusterData",value:function(l){if(l.isTileLayer||l.tileLayer||!l.getSource())return!1;var c=l.getSource(),u=c.cluster,m=c.clusterOptions.zoom,E=m===void 0?0:m,M=this.mapService.getZoom()-1,Z=l.dataState.dataSourceNeedUpdate;return u&&Z&&c.updateClusterData(Math.floor(M)),u&&Math.abs(l.clusterZoom-M)>=1?(E!==Math.floor(M)&&c.updateClusterData(Math.floor(M)),l.clusterZoom=M,!0):!1}}]),o}())||zC),jy=_(61272);function Uv(o,d,l,c,u){var m=o*o,E=m*o;return((1-3*o+3*m-E)*d+(4-6*m+3*E)*l+(1+3*o+3*m-3*E)*c+E*u)/6}function tP(o){var d=o.length-1;return function(l){var c=l<=0?l=0:l>=1?(l=1,d-1):Math.floor(l*d),u=o[c],m=o[c+1],E=c>0?o[c-1]:2*u-m,M=c180||l<-180?l-360*Math.round(l/360):l):constant(isNaN(o)?d:o)}function KO(o){return(o=+o)==1?H0:function(d,l){return l-d?cp(d,l,o):qS(isNaN(d)?l:d)}}function H0(o,d){var l=d-o;return l?JS(o,l):qS(isNaN(o)?d:o)}var z2=function o(d){var l=KO(d);function c(u,m){var E=l((u=xr(u)).r,(m=xr(m)).r),M=l(u.g,m.g),Z=l(u.b,m.b),ne=H0(u.opacity,m.opacity);return function(Ce){return u.r=E(Ce),u.g=M(Ce),u.b=Z(Ce),u.opacity=ne(Ce),u+""}}return c.gamma=o,c}(1);function A_(o){return function(d){var l=d.length,c=new Array(l),u=new Array(l),m=new Array(l),E,M;for(E=0;E=o.length)return l!=null&&M.sort(l),c!=null?c(M):M;for(var Fe=-1,bt=M.length,Bt=o[Z++],Cn,An,Pr=map(),ti,ho=ne();++Feo.length)return M;var ne,Ce=d[Z-1];return c!=null&&Z>=o.length?ne=M.entries():(ne=[],M.each(function(Fe,bt){ne.push({key:bt,values:E(Fe,Z)})})),Ce!=null?ne.sort(function(Fe,bt){return Ce(Fe.key,bt.key)}):ne}return u={object:function(M){return m(M,0,X1,Lj)},map:function(M){return m(M,0,nB,rB)},entries:function(M){return E(m(M,0,nB,rB),0)},key:function(M){return o.push(M),u},sortKeys:function(M){return d[o.length-1]=M,u},sortValues:function(M){return l=M,u},rollup:function(M){return c=M,u}}}function X1(){return{}}function Lj(o,d,l){o[d]=l}function nB(){return map()}function rB(o,d,l){o.set(d,l)}function HM(){}var fy=XO.prototype;HM.prototype=Mj.prototype={constructor:HM,has:fy.has,add:function(o){return o+="",this[D_+o]=o,this},remove:fy.remove,clear:fy.clear,values:fy.keys,size:fy.size,empty:fy.empty,each:fy.each};function Mj(o,d){var l=new HM;if(o instanceof HM)o.each(function(m){l.add(m)});else if(o){var c=-1,u=o.length;if(d==null)for(;++cl&&(m=d.slice(l,m),M[E]?M[E]+=m:M[++E]=m),(c=c[0])===(u=u[0])?M[E]?M[E]+=u:M[++E]=u:(M[++E]=null,Z.push({i:E,x:KM(c,u)})),l=YO.lastIndex;return ll&&(c=d,d=l,l=c),function(u){return Math.max(d,Math.min(l,u))}}function zj(o,d,l){var c=o[0],u=o[1],m=d[0],E=d[1];return u2?Uj:zj,Z=ne=null,Fe}function Fe(bt){return isNaN(bt=+bt)?m:(Z||(Z=M(o.map(c),d,l)))(c(E(bt)))}return Fe.invert=function(bt){return E(u((ne||(ne=M(d,o.map(c),KM)))(bt)))},Fe.domain=function(bt){return arguments.length?(o=iB.call(bt,wD),E===P_||(E=dB(o)),Ce()):o.slice()},Fe.range=function(bt){return arguments.length?(d=rA.call(bt),Ce()):d.slice()},Fe.rangeRound=function(bt){return d=rA.call(bt),l=Fj,Ce()},Fe.clamp=function(bt){return arguments.length?(E=bt?dB(o):P_,Fe):E!==P_},Fe.interpolate=function(bt){return arguments.length?(l=bt,Ce()):l},Fe.unknown=function(bt){return arguments.length?(m=bt,Fe):m},function(bt,Bt){return c=bt,u=Bt,Ce()}}function $j(o,d){return fB()(o,d)}var J_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function UC(o){if(!(d=J_.exec(o)))throw new Error("invalid format: "+o);var d;return new ch({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}UC.prototype=ch.prototype;function ch(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}ch.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $2(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)}function CD(o,d){if((l=(o=d?o.toExponential(d-1):o.toExponential()).indexOf("e"))<0)return null;var l,c=o.slice(0,l);return[c.length>1?c[0]+c.slice(2):c,+o.slice(l+1)]}function $C(o){return o=CD(Math.abs(o)),o?o[1]:NaN}function Vj(o,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($C(d)/3)))*3-$C(Math.abs(o)))}function XM(o,d){return function(l,c){for(var u=l.length,m=[],E=0,M=o[0],Z=0;u>0&&M>0&&(Z+M+1>c&&(M=Math.max(1,c-Z)),m.push(l.substring(u-=M,u+M)),!((Z+=M+1)>c));)M=o[E=(E+1)%o.length];return m.reverse().join(d)}}function pB(o){return function(d){return d.replace(/[0-9]/g,function(l){return o[+l]})}}function Wj(o){e:for(var d=o.length,l=1,c=-1,u;l0&&(c=0);break}return c>0?o.slice(0,c)+o.slice(u+1):o}var gB;function uQ(o,d){var l=CD(o,d);if(!l)return o+"";var c=l[0],u=l[1],m=u-(gB=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,E=c.length;return m===E?c:m>E?c+new Array(m-E+1).join("0"):m>0?c.slice(0,m)+"."+c.slice(m):"0."+new Array(1-m).join("0")+CD(o,Math.max(0,d+m-1))[0]}function YM(o,d){var l=CD(o,d);if(!l)return o+"";var c=l[0],u=l[1];return u<0?"0."+new Array(-u).join("0")+c:c.length>u+1?c.slice(0,u+1)+"."+c.slice(u+1):c+new Array(u-c.length+2).join("0")}var nP={"%":function(o,d){return(o*100).toFixed(d)},b:function(o){return Math.round(o).toString(2)},c:function(o){return o+""},d:$2,e:function(o,d){return o.toExponential(d)},f:function(o,d){return o.toFixed(d)},g:function(o,d){return o.toPrecision(d)},o:function(o){return Math.round(o).toString(8)},p:function(o,d){return YM(o*100,d)},r:YM,s:uQ,X:function(o){return Math.round(o).toString(16).toUpperCase()},x:function(o){return Math.round(o).toString(16)}};function Ow(o){return o}var mB=Array.prototype.map,qM=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function jj(o){var d=o.grouping===void 0||o.thousands===void 0?Ow:XM(mB.call(o.grouping,Number),o.thousands+""),l=o.currency===void 0?"":o.currency[0]+"",c=o.currency===void 0?"":o.currency[1]+"",u=o.decimal===void 0?".":o.decimal+"",m=o.numerals===void 0?Ow:pB(mB.call(o.numerals,String)),E=o.percent===void 0?"%":o.percent+"",M=o.minus===void 0?"-":o.minus+"",Z=o.nan===void 0?"NaN":o.nan+"";function ne(Fe){Fe=UC(Fe);var bt=Fe.fill,Bt=Fe.align,Cn=Fe.sign,An=Fe.symbol,Pr=Fe.zero,ti=Fe.width,ho=Fe.comma,bo=Fe.precision,Ds=Fe.trim,ta=Fe.type;ta==="n"?(ho=!0,ta="g"):nP[ta]||(bo===void 0&&(bo=12),Ds=!0,ta="g"),(Pr||bt==="0"&&Bt==="=")&&(Pr=!0,bt="0",Bt="=");var aa=An==="$"?l:An==="#"&&/[boxX]/.test(ta)?"0"+ta.toLowerCase():"",Ua=An==="$"?c:/[%p]/.test(ta)?E:"",pl=nP[ta],ru=/[defgprs%]/.test(ta);bo=bo===void 0?6:/[gprs]/.test(ta)?Math.max(1,Math.min(21,bo)):Math.max(0,Math.min(20,bo));function Iu(Vu){var th=aa,yh=Ua,Ed,$p,Kg;if(ta==="c")yh=pl(Vu)+yh,Vu="";else{Vu=+Vu;var um=Vu<0||1/Vu<0;if(Vu=isNaN(Vu)?Z:pl(Math.abs(Vu),bo),Ds&&(Vu=Wj(Vu)),um&&+Vu==0&&Cn!=="+"&&(um=!1),th=(um?Cn==="("?Cn:M:Cn==="-"||Cn==="("?"":Cn)+th,yh=(ta==="s"?qM[8+gB/3]:"")+yh+(um&&Cn==="("?")":""),ru){for(Ed=-1,$p=Vu.length;++Ed<$p;)if(Kg=Vu.charCodeAt(Ed),48>Kg||Kg>57){yh=(Kg===46?u+Vu.slice(Ed+1):Vu.slice(Ed))+yh,Vu=Vu.slice(0,Ed);break}}}ho&&!Pr&&(Vu=d(Vu,1/0));var nv=th.length+Vu.length+yh.length,Em=nv>1)+th+Vu+yh+Em.slice(nv);break;default:Vu=Em+th+Vu+yh;break}return m(Vu)}return Iu.toString=function(){return Fe+""},Iu}function Ce(Fe,bt){var Bt=ne((Fe=UC(Fe),Fe.type="f",Fe)),Cn=Math.max(-8,Math.min(8,Math.floor($C(bt)/3)))*3,An=Math.pow(10,-Cn),Pr=qM[8+Cn/3];return function(ti){return Bt(An*ti)+Pr}}return{format:ne,formatPrefix:Ce}}var JM,rP,e6;Zj({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Zj(o){return JM=jj(o),rP=JM.format,e6=JM.formatPrefix,JM}function iP(o,d){return o=Math.abs(o),d=Math.abs(d)-o,Math.max(0,$C(d)-$C(o))+1}function QM(o){return Math.max(0,-$C(Math.abs(o)))}function QS(o,d,l,c){var u=(0,jy.ly)(o,d,l),m;switch(c=UC(c==null?",f":c),c.type){case"s":{var E=Math.max(Math.abs(o),Math.abs(d));return c.precision==null&&!isNaN(m=Vj(u,E))&&(c.precision=m),e6(c,E)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(m=iP(u,Math.max(Math.abs(o),Math.abs(d))))&&(c.precision=m-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(m=QM(u))&&(c.precision=m-(c.type==="%")*2);break}}return rP(c)}function SD(o){var d=o.domain;return o.ticks=function(l){var c=d();return(0,jy.sd)(c[0],c[c.length-1],l==null?10:l)},o.tickFormat=function(l,c){var u=d();return QS(u[0],u[u.length-1],l==null?10:l,c)},o.nice=function(l){l==null&&(l=10);var c=d(),u=0,m=c.length-1,E=c[u],M=c[m],Z;return M0?(E=Math.floor(E/Z)*Z,M=Math.ceil(M/Z)*Z,Z=(0,jy.G9)(E,M,l)):Z<0&&(E=Math.ceil(E*Z)/Z,M=Math.floor(M*Z)/Z,Z=(0,jy.G9)(E,M,l)),Z>0?(c[u]=Math.floor(E/Z)*Z,c[m]=Math.ceil(M/Z)*Z,d(c)):Z<0&&(c[u]=Math.ceil(E*Z)/Z,c[m]=Math.floor(M*Z)/Z,d(c)),o},o}function e5(){var o=$j(P_,P_);return o.copy=function(){return QO(o,e5())},hx.apply(o,arguments),SD(o)}function vB(o){var d;function l(c){return isNaN(c=+c)?d:c}return l.invert=l,l.domain=l.range=function(c){return arguments.length?(o=map.call(c,number),l):o.slice()},l.unknown=function(c){return arguments.length?(d=c,l):d},l.copy=function(){return vB(o).unknown(d)},o=arguments.length?map.call(o,number):[0,1],linearish(l)}function ED(o,d){o=o.slice();var l=0,c=o.length-1,u=o[l],m=o[c],E;return m0){for(;btCe)break;ho.push(Pr)}}else for(;bt=1;--An)if(Pr=Cn*An,!(PrCe)break;ho.push(Pr)}}else ho=(0,jy.sd)(bt,Bt,Math.min(Bt-bt,ti)).map(m);return Fe?ho.reverse():ho},d.tickFormat=function(M,Z){if(Z==null&&(Z=c===10?".0e":","),typeof Z!="function"&&(Z=rP(Z)),M===1/0)return Z;M==null&&(M=10);var ne=Math.max(1,c*M/d.ticks().length);return function(Ce){var Fe=Ce/m(Math.round(u(Ce)));return Fe*c0?l[M-1]:o[0],M=l?[c[l-1],d]:[c[ne-1],c[ne]]},E.unknown=function(Z){return arguments.length&&(m=Z),E},E.thresholds=function(){return c.slice()},E.copy=function(){return TD().domain([o,d]).range(u).unknown(m)},hx.apply(SD(E),arguments)}function Hx(){var o=[.5],d=[0,1],l,c=1;function u(m){return m<=m?d[(0,jy.b4)(o,m,0,c)]:l}return u.domain=function(m){return arguments.length?(o=rA.call(m),c=Math.min(o.length,d.length-1),u):o.slice()},u.range=function(m){return arguments.length?(d=rA.call(m),c=Math.min(o.length,d.length-1),u):d.slice()},u.invertExtent=function(m){var E=d.indexOf(m);return[o[E-1],o[E]]},u.unknown=function(m){return arguments.length?(l=m,u):l},u.copy=function(){return Hx().domain(o).range(d).unknown(l)},hx.apply(u,arguments)}var o6=new Date,xB=new Date;function v1(o,d,l,c){function u(m){return o(m=arguments.length===0?new Date:new Date(+m)),m}return u.floor=function(m){return o(m=new Date(+m)),m},u.ceil=function(m){return o(m=new Date(m-1)),d(m,1),o(m),m},u.round=function(m){var E=u(m),M=u.ceil(m);return m-E0))return Z;do Z.push(ne=new Date(+m)),d(m,M),o(m);while(ne=E)for(;o(E),!m(E);)E.setTime(E-1)},function(E,M){if(E>=E)if(M<0)for(;++M<=0;)for(;d(E,-1),!m(E););else for(;--M>=0;)for(;d(E,1),!m(E););})},l&&(u.count=function(m,E){return o6.setTime(+m),xB.setTime(+E),o(o6),o(xB),Math.floor(l(o6,xB))},u.every=function(m){return m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?u.filter(c?function(E){return c(E)%m===0}:function(E){return u.count(0,E)%m===0}):u}),u}var s6=v1(function(o){o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,d){o.setFullYear(o.getFullYear()+d)},function(o,d){return d.getFullYear()-o.getFullYear()},function(o){return o.getFullYear()});s6.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:v1(function(d){d.setFullYear(Math.floor(d.getFullYear()/o)*o),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,l){d.setFullYear(d.getFullYear()+l*o)})};var AD=s6,Gx=s6.range,sP=v1(function(o){o.setDate(1),o.setHours(0,0,0,0)},function(o,d){o.setMonth(o.getMonth()+d)},function(o,d){return d.getMonth()-o.getMonth()+(d.getFullYear()-o.getFullYear())*12},function(o){return o.getMonth()}),qj=sP,wB=sP.range,o5=1e3,VC=6e4,CB=36e5,sA=864e5,s5=6048e5;function tE(o){return v1(function(d){d.setDate(d.getDate()-(d.getDay()+7-o)%7),d.setHours(0,0,0,0)},function(d,l){d.setDate(d.getDate()+l*7)},function(d,l){return(l-d-(l.getTimezoneOffset()-d.getTimezoneOffset())*VC)/s5})}var a6=tE(0),a5=tE(1),SB=tE(2),EB=tE(3),dx=tE(4),Jj=tE(5),Qj=tE(6),cQ=a6.range,l5=a5.range,hQ=SB.range,dQ=EB.range,fQ=dx.range,eZ=Jj.range,pQ=Qj.range,u5=v1(function(o){o.setHours(0,0,0,0)},function(o,d){o.setDate(o.getDate()+d)},function(o,d){return(d-o-(d.getTimezoneOffset()-o.getTimezoneOffset())*VC)/sA},function(o){return o.getDate()-1}),l6=u5,tZ=u5.range,TB=v1(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*o5-o.getMinutes()*VC)},function(o,d){o.setTime(+o+d*CB)},function(o,d){return(d-o)/CB},function(o){return o.getHours()}),aA=TB,gQ=TB.range,Kx=v1(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*o5)},function(o,d){o.setTime(+o+d*VC)},function(o,d){return(d-o)/VC},function(o){return o.getMinutes()}),nZ=Kx,mQ=Kx.range,AB=v1(function(o){o.setTime(o-o.getMilliseconds())},function(o,d){o.setTime(+o+d*o5)},function(o,d){return(d-o)/o5},function(o){return o.getUTCSeconds()}),DB=AB,vQ=AB.range,c5=v1(function(){},function(o,d){o.setTime(+o+d)},function(o,d){return d-o});c5.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?v1(function(d){d.setTime(Math.floor(d/o)*o)},function(d,l){d.setTime(+d+l*o)},function(d,l){return(l-d)/o}):c5};var rZ=c5,yQ=c5.range;function lA(o){return v1(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-o)%7),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCDate(d.getUTCDate()+l*7)},function(d,l){return(l-d)/s5})}var u6=lA(0),h5=lA(1),c6=lA(2),h6=lA(3),nE=lA(4),IB=lA(5),d5=lA(6),iZ=u6.range,PB=h5.range,LB=c6.range,_Q=h6.range,bQ=nE.range,oZ=IB.range,WC=d5.range,DD=v1(function(o){o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCDate(o.getUTCDate()+d)},function(o,d){return(d-o)/sA},function(o){return o.getUTCDate()-1}),MB=DD,jC=DD.range,aP=v1(function(o){o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCFullYear(o.getUTCFullYear()+d)},function(o,d){return d.getUTCFullYear()-o.getUTCFullYear()},function(o){return o.getUTCFullYear()});aP.every=function(o){return!isFinite(o=Math.floor(o))||!(o>0)?null:v1(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/o)*o),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCFullYear(d.getUTCFullYear()+l*o)})};var lP=aP,xQ=aP.range;function uA(o){if(0<=o.y&&o.y<100){var d=new Date(-1,o.m,o.d,o.H,o.M,o.S,o.L);return d.setFullYear(o.y),d}return new Date(o.y,o.m,o.d,o.H,o.M,o.S,o.L)}function f5(o){if(0<=o.y&&o.y<100){var d=new Date(Date.UTC(-1,o.m,o.d,o.H,o.M,o.S,o.L));return d.setUTCFullYear(o.y),d}return new Date(Date.UTC(o.y,o.m,o.d,o.H,o.M,o.S,o.L))}function y1(o,d,l){return{y:o,m:d,d:l,H:0,M:0,S:0,L:0}}function sZ(o){var d=o.dateTime,l=o.date,c=o.time,u=o.periods,m=o.days,E=o.shortDays,M=o.months,Z=o.shortMonths,ne=uP(u),Ce=hA(u),Fe=uP(m),bt=hA(m),Bt=uP(E),Cn=hA(E),An=uP(M),Pr=hA(M),ti=uP(Z),ho=hA(Z),bo={a:um,A:nv,b:Em,B:gy,c:null,d:Q_,e:Q_,f:m5,g:oE,G:Fw,H:Nw,I:gZ,j:mZ,L:FB,m:PD,M:vZ,p:RE,q:dS,Q:v6,s:ZB,S:yZ,u:f6,U:eb,V:v5,w:_Z,W:R1,x:null,X:null,y:bZ,Y:g6,Z:m6,"%":jB},Ds={a:EI,A:TI,b:Wv,B:Ex,c:null,d:LD,e:LD,f:CZ,g:VB,G:_5,H:xZ,I:y5,j:wZ,L:BB,m:SZ,M:zB,p:B_,q:fS,Q:v6,s:ZB,S:EZ,u:TZ,U:AZ,V:DZ,w:IZ,W:MD,x:null,X:null,y:$B,Y:Bw,Z:WB,"%":jB},ta={a:Iu,A:Vu,b:th,B:yh,c:Ed,d:OB,e:OB,f:pZ,g:kB,G:Xx,H:g5,I:g5,j:cZ,L:fZ,m:cP,M:hZ,p:ru,q:HC,Q:NB,s:hP,S:dZ,u:RB,U:d6,V:rE,w:lZ,W:ID,x:$p,X:Kg,y:kB,Y:Xx,Z:uZ,"%":iE};bo.x=aa(l,bo),bo.X=aa(c,bo),bo.c=aa(d,bo),Ds.x=aa(l,Ds),Ds.X=aa(c,Ds),Ds.c=aa(d,Ds);function aa(dg,Tm){return function(X0){var _f=[],vy=-1,Mv=0,Tx=dg.length,Ax,VA,kU;for(X0 instanceof Date||(X0=new Date(+X0));++vy53)return null;"w"in _f||(_f.w=1),"Z"in _f?(Mv=f5(y1(_f.y,0,1)),Tx=Mv.getUTCDay(),Mv=Tx>4||Tx===0?h5.ceil(Mv):h5(Mv),Mv=MB.offset(Mv,(_f.V-1)*7),_f.y=Mv.getUTCFullYear(),_f.m=Mv.getUTCMonth(),_f.d=Mv.getUTCDate()+(_f.w+6)%7):(Mv=uA(y1(_f.y,0,1)),Tx=Mv.getDay(),Mv=Tx>4||Tx===0?a5.ceil(Mv):a5(Mv),Mv=l6.offset(Mv,(_f.V-1)*7),_f.y=Mv.getFullYear(),_f.m=Mv.getMonth(),_f.d=Mv.getDate()+(_f.w+6)%7)}else("W"in _f||"U"in _f)&&("w"in _f||(_f.w="u"in _f?_f.u%7:"W"in _f?1:0),Tx="Z"in _f?f5(y1(_f.y,0,1)).getUTCDay():uA(y1(_f.y,0,1)).getDay(),_f.m=0,_f.d="W"in _f?(_f.w+6)%7+_f.W*7-(Tx+5)%7:_f.w+_f.U*7-(Tx+6)%7);return"Z"in _f?(_f.H+=_f.Z/100|0,_f.M+=_f.Z%100,f5(_f)):uA(_f)}}function pl(dg,Tm,X0,_f){for(var vy=0,Mv=Tm.length,Tx=X0.length,Ax,VA;vy=Tx)return-1;if(Ax=Tm.charCodeAt(vy++),Ax===37){if(Ax=Tm.charAt(vy++),VA=ta[Ax in p5?Tm.charAt(vy++):Ax],!VA||(_f=VA(dg,X0,_f))<0)return-1}else if(Ax!=X0.charCodeAt(_f++))return-1}return _f}function ru(dg,Tm,X0){var _f=ne.exec(Tm.slice(X0));return _f?(dg.p=Ce[_f[0].toLowerCase()],X0+_f[0].length):-1}function Iu(dg,Tm,X0){var _f=Bt.exec(Tm.slice(X0));return _f?(dg.w=Cn[_f[0].toLowerCase()],X0+_f[0].length):-1}function Vu(dg,Tm,X0){var _f=Fe.exec(Tm.slice(X0));return _f?(dg.w=bt[_f[0].toLowerCase()],X0+_f[0].length):-1}function th(dg,Tm,X0){var _f=ti.exec(Tm.slice(X0));return _f?(dg.m=ho[_f[0].toLowerCase()],X0+_f[0].length):-1}function yh(dg,Tm,X0){var _f=An.exec(Tm.slice(X0));return _f?(dg.m=Pr[_f[0].toLowerCase()],X0+_f[0].length):-1}function Ed(dg,Tm,X0){return pl(dg,d,Tm,X0)}function $p(dg,Tm,X0){return pl(dg,l,Tm,X0)}function Kg(dg,Tm,X0){return pl(dg,c,Tm,X0)}function um(dg){return E[dg.getDay()]}function nv(dg){return m[dg.getDay()]}function Em(dg){return Z[dg.getMonth()]}function gy(dg){return M[dg.getMonth()]}function RE(dg){return u[+(dg.getHours()>=12)]}function dS(dg){return 1+~~(dg.getMonth()/3)}function EI(dg){return E[dg.getUTCDay()]}function TI(dg){return m[dg.getUTCDay()]}function Wv(dg){return Z[dg.getUTCMonth()]}function Ex(dg){return M[dg.getUTCMonth()]}function B_(dg){return u[+(dg.getUTCHours()>=12)]}function fS(dg){return 1+~~(dg.getUTCMonth()/3)}return{format:function(dg){var Tm=aa(dg+="",bo);return Tm.toString=function(){return dg},Tm},parse:function(dg){var Tm=Ua(dg+="",!1);return Tm.toString=function(){return dg},Tm},utcFormat:function(dg){var Tm=aa(dg+="",Ds);return Tm.toString=function(){return dg},Tm},utcParse:function(dg){var Tm=Ua(dg+="",!0);return Tm.toString=function(){return dg},Tm}}}var p5={"-":"",_:" ",0:"0"},Zy=/^\s*\d+/,ZC=/^%/,aZ=/[\\^$*+?|[\]().{}]/g;function G0(o,d,l){var c=o<0?"-":"",u=(c?-o:o)+"",m=u.length;return c+(m68?1900:2e3),l+c[0].length):-1}function uZ(o,d,l){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(l,l+6));return c?(o.Z=c[1]?0:-(c[2]+(c[3]||"00")),l+c[0].length):-1}function HC(o,d,l){var c=Zy.exec(d.slice(l,l+1));return c?(o.q=c[0]*3-3,l+c[0].length):-1}function cP(o,d,l){var c=Zy.exec(d.slice(l,l+2));return c?(o.m=c[0]-1,l+c[0].length):-1}function OB(o,d,l){var c=Zy.exec(d.slice(l,l+2));return c?(o.d=+c[0],l+c[0].length):-1}function cZ(o,d,l){var c=Zy.exec(d.slice(l,l+3));return c?(o.m=0,o.d=+c[0],l+c[0].length):-1}function g5(o,d,l){var c=Zy.exec(d.slice(l,l+2));return c?(o.H=+c[0],l+c[0].length):-1}function hZ(o,d,l){var c=Zy.exec(d.slice(l,l+2));return c?(o.M=+c[0],l+c[0].length):-1}function dZ(o,d,l){var c=Zy.exec(d.slice(l,l+2));return c?(o.S=+c[0],l+c[0].length):-1}function fZ(o,d,l){var c=Zy.exec(d.slice(l,l+3));return c?(o.L=+c[0],l+c[0].length):-1}function pZ(o,d,l){var c=Zy.exec(d.slice(l,l+6));return c?(o.L=Math.floor(c[0]/1e3),l+c[0].length):-1}function iE(o,d,l){var c=ZC.exec(d.slice(l,l+1));return c?l+c[0].length:-1}function NB(o,d,l){var c=Zy.exec(d.slice(l));return c?(o.Q=+c[0],l+c[0].length):-1}function hP(o,d,l){var c=Zy.exec(d.slice(l));return c?(o.s=+c[0],l+c[0].length):-1}function Q_(o,d){return G0(o.getDate(),d,2)}function Nw(o,d){return G0(o.getHours(),d,2)}function gZ(o,d){return G0(o.getHours()%12||12,d,2)}function mZ(o,d){return G0(1+l6.count(AD(o),o),d,3)}function FB(o,d){return G0(o.getMilliseconds(),d,3)}function m5(o,d){return FB(o,d)+"000"}function PD(o,d){return G0(o.getMonth()+1,d,2)}function vZ(o,d){return G0(o.getMinutes(),d,2)}function yZ(o,d){return G0(o.getSeconds(),d,2)}function f6(o){var d=o.getDay();return d===0?7:d}function eb(o,d){return G0(a6.count(AD(o)-1,o),d,2)}function p6(o){var d=o.getDay();return d>=4||d===0?dx(o):dx.ceil(o)}function v5(o,d){return o=p6(o),G0(dx.count(AD(o),o)+(AD(o).getDay()===4),d,2)}function _Z(o){return o.getDay()}function R1(o,d){return G0(a5.count(AD(o)-1,o),d,2)}function bZ(o,d){return G0(o.getFullYear()%100,d,2)}function oE(o,d){return o=p6(o),G0(o.getFullYear()%100,d,2)}function g6(o,d){return G0(o.getFullYear()%1e4,d,4)}function Fw(o,d){var l=o.getDay();return o=l>=4||l===0?dx(o):dx.ceil(o),G0(o.getFullYear()%1e4,d,4)}function m6(o){var d=o.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+G0(d/60|0,"0",2)+G0(d%60,"0",2)}function LD(o,d){return G0(o.getUTCDate(),d,2)}function xZ(o,d){return G0(o.getUTCHours(),d,2)}function y5(o,d){return G0(o.getUTCHours()%12||12,d,2)}function wZ(o,d){return G0(1+MB.count(lP(o),o),d,3)}function BB(o,d){return G0(o.getUTCMilliseconds(),d,3)}function CZ(o,d){return BB(o,d)+"000"}function SZ(o,d){return G0(o.getUTCMonth()+1,d,2)}function zB(o,d){return G0(o.getUTCMinutes(),d,2)}function EZ(o,d){return G0(o.getUTCSeconds(),d,2)}function TZ(o){var d=o.getUTCDay();return d===0?7:d}function AZ(o,d){return G0(u6.count(lP(o)-1,o),d,2)}function UB(o){var d=o.getUTCDay();return d>=4||d===0?nE(o):nE.ceil(o)}function DZ(o,d){return o=UB(o),G0(nE.count(lP(o),o)+(lP(o).getUTCDay()===4),d,2)}function IZ(o){return o.getUTCDay()}function MD(o,d){return G0(h5.count(lP(o)-1,o),d,2)}function $B(o,d){return G0(o.getUTCFullYear()%100,d,2)}function VB(o,d){return o=UB(o),G0(o.getUTCFullYear()%100,d,2)}function Bw(o,d){return G0(o.getUTCFullYear()%1e4,d,4)}function _5(o,d){var l=o.getUTCDay();return o=l>=4||l===0?nE(o):nE.ceil(o),G0(o.getUTCFullYear()%1e4,d,4)}function WB(){return"+0000"}function jB(){return"%"}function v6(o){return+o}function ZB(o){return Math.floor(+o/1e3)}var RD,GC,y6,dA,PZ;L_({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 L_(o){return RD=sZ(o),GC=RD.format,y6=RD.parse,dA=RD.utcFormat,PZ=RD.utcParse,RD}var M_=1e3,zw=M_*60,dP=zw*60,fA=dP*24,HB=fA*7,b5=fA*30,Y1=fA*365;function LZ(o){return new Date(o)}function pA(o){return o instanceof Date?+o:+new Date(+o)}function x5(o,d,l,c,u,m,E,M,Z){var ne=$j(P_,P_),Ce=ne.invert,Fe=ne.domain,bt=Z(".%L"),Bt=Z(":%S"),Cn=Z("%I:%M"),An=Z("%I %p"),Pr=Z("%a %d"),ti=Z("%b %d"),ho=Z("%B"),bo=Z("%Y"),Ds=[[E,1,M_],[E,5,5*M_],[E,15,15*M_],[E,30,30*M_],[m,1,zw],[m,5,5*zw],[m,15,15*zw],[m,30,30*zw],[u,1,dP],[u,3,3*dP],[u,6,6*dP],[u,12,12*dP],[c,1,fA],[c,2,2*fA],[l,1,HB],[d,1,b5],[d,3,3*b5],[o,1,Y1]];function ta(Ua){return(E(Ua)2){var Fe=ne.scale.ticks(E.values.length);ne.scale.domain(Fe)}E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.QUANTILE:case B0.QUANTIZE:case B0.THRESHOLD:ne.scale.range(E.values);break;case B0.IDENTITY:break;case B0.CAT:E.values?ne.scale.range(E.values):ne.scale.range(ne.option.domain);break;case B0.DIVERGING:case B0.SEQUENTIAL:ne.scale.interpolator(dy(E.values));break}}if(E.values==="text"){var bt;ne.scale.range((bt=ne.option)===null||bt===void 0?void 0:bt.domain)}})):(E.type=Ux.CONSTANT,E.defaultValues=Z.map(function(ne,Ce){return ne.scale(E.names[Ce])})),E.scalers=Z.map(function(ne){return{field:ne.field,func:ne.scale,option:ne.option}}),m.needRescale=!1}})}},{key:"parseFields",value:function(l){return Array.isArray(l)?l:NZ(l)?l.split("*"):[l]}},{key:"createScale",value:function(l,c,u,m){var E,M,Z=this.scaleOptions[c]&&((E=this.scaleOptions[c])===null||E===void 0?void 0:E.field)===l?this.scaleOptions[c]:this.scaleOptions[l],ne={field:l,scale:void 0,type:Ux.VARIABLE,option:Z};if(!m||!m.length)return Z&&Z.type?ne.scale=this.createDefaultScale(Z):(ne.scale=GM([l]),ne.type=Ux.CONSTANT),ne;var Ce=(M=m.find(function(Bt){return!w6(Bt[l])}))===null||M===void 0?void 0:M[l];if(this.isNumber(l)||w6(Ce)&&!Z)ne.scale=GM([l]),ne.type=Ux.CONSTANT;else{var Fe=Z&&Z.type||this.getDefaultType(Ce);u==="text"&&(Fe=B0.CAT),u===void 0&&(Fe=B0.IDENTITY);var bt=this.createScaleConfig(Fe,l,Z,m);ne.scale=this.createDefaultScale(bt),ne.option=bt}return ne}},{key:"getDefaultType",value:function(l){var c=B0.LINEAR;return typeof l=="string"&&(c=gP.test(l)?B0.TIME:B0.CAT),c}},{key:"createScaleConfig",value:function(l,c,u,m){var E={type:l},M=(m==null?void 0:m.map(function(Ce){return Ce[c]}))||[];if(u!=null&&u.domain)E.domain=u==null?void 0:u.domain;else if(l===B0.CAT||l===B0.IDENTITY)E.domain=FZ(M);else if(l===B0.QUANTILE)E.domain=M;else if(l===B0.DIVERGING){var Z=(0,jy.We)(M),ne=(u==null?void 0:u.neutral)!==void 0?u==null?void 0:u.neutral:(Z[0]+Z[1])/2;E.domain=[Z[0],ne,Z[1]]}else E.domain=(0,jy.We)(M);return(0,Oe.Z)((0,Oe.Z)({},E),u)}},{key:"createDefaultScale",value:function(l){var c=l.type,u=l.domain,m=l.unknown,E=l.clamp,M=l.nice,Z=BZ[c]();return u&&Z.domain&&Z.domain(u),m&&Z.unknown(m),E!==void 0&&Z.clamp&&Z.clamp(E),M!==void 0&&Z.nice&&Z.nice(M),Z}}]),o}())||x6),C5,C6,UZ=(C5=(0,os.b2)(),C5(C6=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"apply",value:function(l){l.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=l.animateStatus;c&&l.models.forEach(function(u){u.addUniforms((0,Oe.Z)({},l.layerModel.getAnimateUniforms()))})})}}]),o}())||C6),YB,qB,$Z=(YB=(0,os.b2)(),YB(qB=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"apply",value:function(l){l.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=l.getLayerConfig(),u=c.maskLayers,m=c.enableMask;if(!l.tileLayer&&u&&u.length>0){var E;(E=l.masks).push.apply(E,(0,Pn.Z)(u)),l.updateLayerConfig({mask:m})}})}}]),o}())||qB),S5=function(){function o(d){var l=d.rendererService,c=d.layerService,u=d.parent;(0,xt.Z)(this,o),(0,Ln.Z)(this,"tileResource",new Map),(0,Ln.Z)(this,"layerTiles",[]),this.rendererService=l,this.layerService=c,this.parent=u}return(0,ot.Z)(o,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(l){return this.layerTiles.some(function(c){return c.key===l})}},{key:"addTile",value:function(l){this.layerTiles.push(l)}},{key:"getTile",value:function(l){return this.layerTiles.find(function(c){return c.key===l})}},{key:"getVisibleTileBylngLat",value:function(l){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(l)})}},{key:"removeTile",value:function(l){var c=this.layerTiles.findIndex(function(m){return m.key===l}),u=this.layerTiles.splice(c,1);u[0]&&u[0].destroy()}},{key:"updateTileVisible",value:function(l){var c=this.getTile(l.key);if(l.isVisible)if(l.parent){var u=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(u)}else c==null||c.updateVisible(!0);else if(l.parent){var m=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(!m)}else c==null||c.updateVisible(!1)}},{key:"isParentLoaded",value:function(l){var c=l.parent;if(!c)return!0;var u=this.getTile(c==null?void 0:c.key);return!!(u!=null&&u.isLoaded)}},{key:"isChildrenLoaded",value:function(l){var c=this,u=l==null?void 0:l.children;return u.length===0?!0:u.every(function(m){var E=c.getTile(m==null?void 0:m.key);return E?(E==null?void 0:E.isLoaded)===!0:!0})}},{key:"render",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){var u=this,m,E;return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return m=this.getRenderLayers(),E=m.map(function(){var ne=(0,Il.Z)(Wi().mark(function Ce(Fe){return Wi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,u.layerService.renderTileLayer(Fe);case 2:case"end":return Bt.stop()}},Ce)}));return function(Ce){return ne.apply(this,arguments)}}()),Z.next=4,Promise.all(E);case 4:case"end":return Z.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"getRenderLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.visible&&u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,Pn.Z)(u.getLayers()))}),c}},{key:"getLayers",value:function(){var l=this.layerTiles.filter(function(u){return u.isLoaded}),c=[];return l.map(function(u){return c.push.apply(c,(0,Pn.Z)(u.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(l){return l.destroy()}),this.tileResource.clear()}}]),o}(),S6=_(51287),VZ=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"getCombineFeature",value:function(l){var c=null,u=l[0];return l.map(function(m){var E=dl.polygon(m.coordinates);c===null?c=E:c=(0,S6.Z)(c,E)}),u&&(c.properties=(0,Oe.Z)({},u)),c}}]),o}(),mP="select",lE="active",WZ=function(){function o(d){var l=d.layerService,c=d.tileLayerService,u=d.parent;(0,xt.Z)(this,o),(0,Ln.Z)(this,"tilePickID",new Map),this.layerService=l,this.tileLayerService=c,this.parent=u,this.tileSourceService=new VZ}return(0,ot.Z)(o,[{key:"pickRender",value:function(l){var c=this.tileLayerService.getVisibleTileBylngLat(l.lngLat);if(c){var u=c.getMainLayer();u==null||u.layerPickService.pickRender(l)}}},{key:"pick",value:function(l,c){var u=this.parent.getContainer(),m=u.get(Ms.IPickingService);if(l.type==="RasterLayer"){var E=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(E&&E.getMainLayer()!==void 0){var M=E.getMainLayer();return M.layerPickService.pickRasterLayer(M,c,this.parent)}return!1}return this.pickRender(c),m.pickFromPickingFBO(l,c)}},{key:"selectFeature",value:function(l){var c=(0,mi.Z)(l,3),u=c[0],m=c[1],E=c[2],M=this.color2PickId(u,m,E);this.tilePickID.set(mP,M),this.updateHighLight(u,m,E,mP)}},{key:"highlightPickedFeature",value:function(l){var c=(0,mi.Z)(l,3),u=c[0],m=c[1],E=c[2],M=this.color2PickId(u,m,E);this.tilePickID.set(lE,M),this.updateHighLight(u,m,E,lE)}},{key:"updateHighLight",value:function(l,c,u,m){this.tileLayerService.tiles.map(function(E){var M=E.getMainLayer();switch(m){case mP:M==null||M.hooks.beforeSelect.call([l,c,u]);break;case lE:M==null||M.hooks.beforeHighlight.call([l,c,u]);break}})}},{key:"setPickState",value:function(){var l=this.tilePickID.get(mP),c=this.tilePickID.get(lE);if(l){var u=this.pickId2Color(l),m=(0,mi.Z)(u,3),E=m[0],M=m[1],Z=m[2];this.updateHighLight(E,M,Z,mP);return}if(c){var ne=this.pickId2Color(c),Ce=(0,mi.Z)(ne,3),Fe=Ce[0],bt=Ce[1],Bt=Ce[2];this.updateHighLight(Fe,bt,Bt,lE);return}}},{key:"color2PickId",value:function(l,c,u){return qi(new Uint8Array([l,c,u]))}},{key:"pickId2Color",value:function(l){return Vr(l)}},{key:"getFeatureById",value:function(l){var c=this.tileLayerService.getTiles().filter(function(m){return m.visible}),u=[];return c.forEach(function(m){u.push.apply(u,(0,Pn.Z)(m.getFeatureById(l)))}),u}},{key:"pickRasterLayer",value:function(l,c,u){return!1}}]),o}();function jZ(o){return o==="PolygonLayer"?FO:o==="LineLayer"?Sv:NC}function ZZ(o){return["PolygonLayer","LineLayer"].indexOf(o)!==-1}function E5(o){var d=HZ();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function HZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var gA=function(o){(0,ut.Z)(l,o);var d=E5(l);function l(c,u){var m;return(0,xt.Z)(this,l),m=d.call(this),(0,Ln.Z)((0,gs.Z)(m),"visible",!0),(0,Ln.Z)((0,gs.Z)(m),"layers",[]),(0,Ln.Z)((0,gs.Z)(m),"isLoaded",!1),(0,Ln.Z)((0,gs.Z)(m),"tileMaskLayers",[]),m.parent=u,m.sourceTile=c,m.x=c.x,m.y=c.y,m.z=c.z,m.key="".concat(m.x,"_").concat(m.y,"_").concat(m.z),m}return(0,ot.Z)(l,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(u){var m=(0,mi.Z)(this.sourceTile.bounds,4),E=m[0],M=m[1],Z=m[2],ne=m[3],Ce=u.lng,Fe=u.lat;return Ce>=E&&Ce<=Z&&Fe>=M&&Fe<=ne}},{key:"getLayerOptions",value:function(){var u,m=this.parent.getLayerConfig();return(0,Oe.Z)((0,Oe.Z)({},m),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:ZZ(this.parent.type),mask:m.mask||((u=m.maskLayers)===null||u===void 0?void 0:u.length)!==0&&m.enableMask})}},{key:"getMaskLayer",value:function(){var u=this,m=this.parent.getLayerConfig(),E=m.maskLayers,M=[];return E==null||E.forEach(function(Z){if(!Z.tileLayer)return M.push(Z),Z;var ne=Z.tileLayer,Ce=ne.getTile(u.sourceTile.key),Fe=Ce==null?void 0:Ce.getLayers()[0];Fe&&M.push(Fe)}),M}},{key:"addTileMask",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z;return Wi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return E=new FO({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),M=Bx(this.parent.sceneContainer),E.setContainer(M,this.parent.sceneContainer),Ce.next=5,E.init();case 5:return this.tileMask=E,Z=this.getMainLayer(),Z!==void 0&&(Z.tileMask=E),Ce.abrupt("return",E);case 9:case"end":return Ce.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"addMask",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E,M){var Z;return Wi().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Z=Bx(this.parent.sceneContainer),M.setContainer(Z,this.parent.sceneContainer),Ce.next=4,M.init();case 4:E.addMask(M),this.tileMaskLayers.push(M);case 6:case"end":return Ce.stop()}},m,this)}));function u(m,E){return c.apply(this,arguments)}return u}()},{key:"addLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(E){var M;return Wi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return E.isTileLayer=!0,M=Bx(this.parent.sceneContainer),E.setContainer(M,this.parent.sceneContainer),this.layers.push(E),ne.next=6,E.init();case 6:case"end":return ne.stop()}},m,this)}));function u(m){return c.apply(this,arguments)}return u}()},{key:"updateVisible",value:function(u){this.visible=u,this.updateOptions("visible",u)}},{key:"updateOptions",value:function(u,m){this.layers.forEach(function(E){E.updateLayerConfig((0,Ln.Z)({},u,m))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(u){return[]}},{key:"getFeatureById",value:function(u){return[]}},{key:"destroy",value:function(){var u;(u=this.tileMask)===null||u===void 0||u.destroy(),this.layers.forEach(function(m){return m.destroy()})}}]),l}(uc.EventEmitter);function fx(o){var d=vP();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function vP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var JB=function(o){(0,ut.Z)(l,o);var d=fx(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.getSourceOption(),M=E.data.features[0].properties,Z=new Sv().source(E.data,E.options).size(1).shape("line").color("red"),ne=new NC({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([M],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Fe.next=6,this.addLayer(Z);case 6:return Fe.next=8,this.addLayer(ne);case 8:this.isLoaded=!0;case 9:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:m},options:{parser:{type:"geojson"},transforms:u.transforms}}}}]),l}(gA);function GZ(o){var d=E6();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function E6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Rb=function(o){(0,ut.Z)(l,o);var d=GZ(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new $T((0,Oe.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(bt){var Bt,Cn,An=bt;ne[An]((Bt=E[An])===null||Bt===void 0?void 0:Bt.field,(Cn=E[An])===null||Cn===void 0?void 0:Cn.values)}),Fe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(gA);function yP(o){var d=KZ();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function KZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var QB=function(o){(0,ut.Z)(l,o);var d=yP(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new WO((0,Oe.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(bt){var Bt,Cn,An=bt;ne[An]((Bt=E[An])===null||Bt===void 0?void 0:Bt.field,(Cn=E[An])===null||Cn===void 0?void 0:Cn.values)}),Fe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getFeatures",value:function(u){if(!u)return[];var m=this.sourceTile.data;return m.getTileData(u)}},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.parent.getLayerConfig(),E=m.sourceLayer,M=m.featureId,Z=this.getFeatures(E);return{data:{type:"FeatureCollection",features:Z},options:{parser:{type:"geojson",featureId:M},transforms:u.transforms}}}}]),l}(gA),e9=["rasterData"];function XZ(o){var d=YZ();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function YZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var _P=function(o){(0,ut.Z)(l,o);var d=XZ(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new NM((0,Oe.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(bt){var Bt,Cn,An=bt;ne[An]((Bt=E[An])===null||Bt===void 0?void 0:Bt.field,(Cn=E[An])===null||Cn===void 0?void 0:Cn.values)}),Fe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,M=(0,dm.Z)(m,e9);return{data:E,options:{parser:(0,Oe.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},M),transforms:u.transforms}}}}]),l}(gA);function t9(o){var d=n9();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function n9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var r9=function(o){(0,ut.Z)(l,o);var d=t9(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne;return Wi().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=new NM((0,Oe.Z)({},M)).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(bt){var Bt,Cn,An=bt;ne[An]((Bt=E[An])===null||Bt===void 0?void 0:Bt.field,(Cn=E[An])===null||Cn===void 0?void 0:Cn.values)}),Fe.next=7,this.addLayer(ne);case 7:this.isLoaded=!0;case 8:case"end":return Fe.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:u.transforms}}}}]),l}(gA),bP=["rasterData"];function qZ(o){var d=JZ();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function JZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var xP={positions:[0,1],colors:["#000","#fff"]},wP=function(o){(0,ut.Z)(l,o);var d=qZ(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe,bt;return Wi().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return E=this.parent.getLayerAttributeConfig(),M=this.getLayerOptions(),Z=this.getSourceOption(),ne=this.getLayerOptions(),Ce=ne.rampColors,Fe=ne.domain,this.colorTexture=this.parent.textureService.getColorTexture(Ce,Fe),bt=new NM((0,Oe.Z)((0,Oe.Z)({},M),{},{colorTexture:this.colorTexture})).source(Z.data,Z.options),E&&Object.keys(E).forEach(function(An){var Pr,ti,ho=An;bt[ho]((Pr=E[ho])===null||Pr===void 0?void 0:Pr.field,(ti=E[ho])===null||ti===void 0?void 0:ti.values)}),Cn.next=9,this.addLayer(bt);case 9:this.isLoaded=!0;case 10:case"end":return Cn.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getSourceOption",value:function(){var u=this.parent.getSource(),m=this.sourceTile.data.data,E=m.rasterData,M=(0,dm.Z)(m,bP);return{data:E,options:{parser:(0,Oe.Z)({type:"raster",extent:this.sourceTile.bounds},M),transforms:u.transforms}}}},{key:"styleUpdate",value:function(){for(var u=this,m=arguments.length,E=new Array(m),M=0;M=2&&!ne&&(l.parent.updateLayerConfig({visible:!0}),l.layerService.reRender())}l.lastViewStates&&l.lastViewStates.zoom===M&&l.lastViewStates.latLonBounds.toString()===E.toString()||(l.lastViewStates={zoom:M,latLonBounds:E},(u=l.tilesetManager)===null||u===void 0||u.throttleUpdate(M,E))}}),(0,Ln.Z)(this,"viewchange",A5(this.mapchange,24)),this.parent=d;var c=this.parent.getContainer();this.rendererService=c.get(Ms.IRendererService),this.layerService=c.get(Ms.ILayerService),this.mapService=c.get(Ms.IMapService),this.pickingService=c.get(Ms.IPickingService),this.tileLayerService=new S5({rendererService:this.rendererService,layerService:this.layerService,parent:d}),this.tilePickService=new WZ({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:d}),this.parent.setLayerPickService(this.tilePickService),this.proxy(d),this.initTileSetManager()}return(0,ot.Z)(o,[{key:"initTileSetManager",value:function(){var l,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var u=this.getCurrentView(),m=u.latLonBounds,E=u.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(E,m)}}},{key:"getCurrentView",value:function(){var l=this.mapService.getBounds(),c=[l[0][0],l[0][1],l[1][0],l[1][1]],u=this.mapService.getZoom();return{latLonBounds:c,zoom:u}}},{key:"bindTilesetEvent",value:function(){var l=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){l.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,u){l.tileError(c)}),this.tilesetManager.on("tile-update",function(){l.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(l){return this.tileLayerService.getTile(l)}},{key:"tileLoaded",value:function(l){}},{key:"tileError",value:function(l){console.warn("error:",l)}},{key:"destroy",value:function(){var l;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(l=this.tilesetManager)===null||l===void 0||l.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var l;this.tilesetManager.clear();var c=this.getCurrentView(),u=c.latLonBounds,m=c.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(m,u)}},{key:"tileUnLoad",value:function(l){this.tileLayerService.removeTile(l.key)}},{key:"tileUpdate",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){var u=this,m,E;return Wi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.tilesetManager){Z.next=2;break}return Z.abrupt("return");case 2:return m=this.parent.getMinZoom(),E=this.parent.getMaxZoom(),Z.next=6,Promise.all(this.tilesetManager.tiles.filter(function(ne){return ne.isLoaded}).filter(function(ne){return ne.isVisibleChange}).filter(function(ne){return ne.data}).filter(function(ne){return ne.z>=m&&ne.z=-90&&u<=90,"invalid latitude"),d*=uE;var m=c*KC,E=u*KC,M=d*(m+W2)/(2*W2),Z=d*(W2-Math.log(Math.tan(S9+E*.5)))/(2*W2);return[M,Z]}function R5(o,d){var l=(0,mi.Z)(o,2),c=l[0],u=l[1];d*=uE;var m=c/d*(2*W2)-W2,E=2*(Math.atan(Math.exp(W2-u/d*(2*W2)))-S9);return[m*E9,E*E9]}function k5(o){var d=o.latitude;assert(Number.isFinite(d));var l=Math.cos(d*KC);return hH(_A*l)-9}function D9(o){var d=o.latitude,l=o.longitude,c=o.zoom,u=o.scale,m=o.highPrecision,E=m===void 0?!1:m;u=u!==void 0?u:A9(c),yA(Number.isFinite(d)&&Number.isFinite(l)&&Number.isFinite(u));var M={},Z=uE*u,ne=Math.cos(d*KC),Ce=Z/360,Fe=Ce/ne,bt=Z/_A/ne;if(M.pixelsPerMeter=[bt,-bt,bt],M.metersPerPixel=[1/bt,-1/bt,1/bt],M.pixelsPerDegree=[Ce,-Fe,bt],M.degreesPerPixel=[1/Ce,-1/Fe,1/bt],E){var Bt=KC*Math.tan(d*KC)/ne,Cn=Ce*Bt/2,An=Z/_A*Bt,Pr=An/Fe*bt;M.pixelsPerDegree2=[0,-Cn,An],M.pixelsPerMeter2=[Pr,0,Pr]}return M}function dH(o,d){var l=_slicedToArray(o,3),c=l[0],u=l[1],m=l[2],E=_slicedToArray(d,3),M=E[0],Z=E[1],ne=E[2],Ce=1,Fe=D9({longitude:c,latitude:u,scale:Ce,highPrecision:!0}),bt=Fe.pixelsPerMeter,Bt=Fe.pixelsPerMeter2,Cn=cE(o,Ce);Cn[0]+=M*(bt[0]+Bt[0]*Z),Cn[1]+=Z*(bt[1]+Bt[1]*Z);var An=R5(Cn,Ce),Pr=(m||0)+(ne||0);return Number.isFinite(m)||Number.isFinite(ne)?[An[0],An[1],Pr]:An}function fH(o){var d=o.height,l=o.pitch,c=o.bearing,u=o.altitude,m=o.center,E=m===void 0?null:m,M=o.flipY,Z=M===void 0?!1:M,ne=AP();return C0(ne,ne,[0,0,-u]),Jd(ne,ne,[1,1,1/d]),mm(ne,ne,-l*KC),c0(ne,ne,c*KC),Z&&Jd(ne,ne,[1,-1,1]),E&&C0(ne,ne,rM([],E)),ne}function pH(o){var d=o.width,l=o.height,c=o.altitude,u=c===void 0?T9:c,m=o.pitch,E=m===void 0?0:m,M=o.nearZMultiplier,Z=M===void 0?1:M,ne=o.farZMultiplier,Ce=ne===void 0?1:ne,Fe=E*KC,bt=Math.atan(.5/u),Bt=Math.sin(bt)*u/Math.sin(Math.PI/2-Fe-bt),Cn=Math.cos(Math.PI/2-Fe)*Bt+u;return{fov:2*Math.atan(l/2/u),aspect:d/l,focalDistance:u,near:Z,far:Cn*Ce}}function I9(o){var d=o.width,l=o.height,c=o.pitch,u=o.altitude,m=o.nearZMultiplier,E=o.farZMultiplier,M=pH({width:d,height:l,altitude:u,pitch:c,nearZMultiplier:m,farZMultiplier:E}),Z=M.fov,ne=M.aspect,Ce=M.near,Fe=M.far,bt=Cr([],Z,ne,Ce,Fe);return bt}function gH(o,d){var l=(0,mi.Z)(o,3),c=l[0],u=l[1],m=l[2],E=m===void 0?0:m;return yA(Number.isFinite(c)&&Number.isFinite(u)&&Number.isFinite(E)),vA(d,[c,u,E,1])}function P9(o,d){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,mi.Z)(o,3),u=c[0],m=c[1],E=c[2];if(yA(Number.isFinite(u)&&Number.isFinite(m),"invalid pixel coordinate"),Number.isFinite(E)){var M=vA(d,[u,m,E,1]);return M}var Z=vA(d,[u,m,0,1]),ne=vA(d,[u,m,1,1]),Ce=Z[2],Fe=ne[2],bt=Ce===Fe?0:((l||0)-Ce)/(Fe-Ce);return jm([],Z,ne,bt)}var UD=AP(),mH=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=d.width,c=d.height,u=d.viewMatrix,m=u===void 0?UD:u,E=d.projectionMatrix,M=E===void 0?UD:E;(0,xt.Z)(this,o),this.width=l||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=m,this.projectionMatrix=M;var Z=AP();Af(Z,Z,this.projectionMatrix),Af(Z,Z,this.viewMatrix),this.viewProjectionMatrix=Z;var ne=AP();Jd(ne,ne,[this.width/2,-this.height/2,1]),C0(ne,ne,[1,-1,0]),Af(ne,ne,this.viewProjectionMatrix);var Ce=kv(AP(),ne);if(!Ce)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ne,this.pixelUnprojectionMatrix=Ce,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(0,ot.Z)(o,[{key:"equals",value:function(l){return l instanceof o?l.width===this.width&&l.height===this.height&&vu(l.projectionMatrix,this.projectionMatrix)&&vu(l.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=this.projectPosition(l),M=gH(E,this.pixelProjectionMatrix),Z=(0,mi.Z)(M,2),ne=Z[0],Ce=Z[1],Fe=m?Ce:this.height-Ce;return l.length===2?[ne,Fe]:[ne,Fe,M[2]]}},{key:"unproject",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=c.topLeft,m=u===void 0?!0:u,E=c.targetZ,M=(0,mi.Z)(l,3),Z=M[0],ne=M[1],Ce=M[2],Fe=m?ne:this.height-ne,bt=E&&E*this.pixelsPerMeter,Bt=P9([Z,Fe,Ce],this.pixelUnprojectionMatrix,bt),Cn=this.unprojectPosition(Bt),An=(0,mi.Z)(Cn,3),Pr=An[0],ti=An[1],ho=An[2];return Number.isFinite(Ce)?[Pr,ti,ho]:Number.isFinite(E)?[Pr,ti,E]:[Pr,ti]}},{key:"projectPosition",value:function(l){var c=this.projectFlat(l),u=(0,mi.Z)(c,2),m=u[0],E=u[1],M=(l[2]||0)*this.pixelsPerMeter;return[m,E,M]}},{key:"unprojectPosition",value:function(l){var c=this.unprojectFlat(l),u=(0,mi.Z)(c,2),m=u[0],E=u[1],M=(l[2]||0)/this.pixelsPerMeter;return[m,E,M]}},{key:"projectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}},{key:"unprojectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}}]),o}();function DP(o){var d=o.width,l=o.height,c=o.bounds,u=o.minExtent,m=u===void 0?0:u,E=o.maxZoom,M=E===void 0?24:E,Z=o.padding,ne=Z===void 0?0:Z,Ce=o.offset,Fe=Ce===void 0?[0,0]:Ce,bt=(0,mi.Z)(c,2),Bt=(0,mi.Z)(bt[0],2),Cn=Bt[0],An=Bt[1],Pr=(0,mi.Z)(bt[1],2),ti=Pr[0],ho=Pr[1];if(Number.isFinite(ne)){var bo=ne;ne={top:bo,bottom:bo,left:bo,right:bo}}else yA(Number.isFinite(ne.top)&&Number.isFinite(ne.bottom)&&Number.isFinite(ne.left)&&Number.isFinite(ne.right));var Ds=new N6({width:d,height:l,longitude:0,latitude:0,zoom:0}),ta=Ds.project([Cn,ho]),aa=Ds.project([ti,An]),Ua=[Math.max(Math.abs(aa[0]-ta[0]),m),Math.max(Math.abs(aa[1]-ta[1]),m)],pl=[d-ne.left-ne.right-Math.abs(Fe[0])*2,l-ne.top-ne.bottom-Math.abs(Fe[1])*2];yA(pl[0]>0&&pl[1]>0);var ru=pl[0]/Ua[0],Iu=pl[1]/Ua[1],Vu=(ne.right-ne.left)/2/ru,th=(ne.bottom-ne.top)/2/Iu,yh=[(aa[0]+ta[0])/2+Vu,(aa[1]+ta[1])/2+th],Ed=Ds.unproject(yh),$p=Ds.zoom+Math.log2(Math.abs(Math.min(ru,Iu)));return{longitude:Ed[0],latitude:Ed[1],zoom:Math.min($p,M)}}var N6=function(o){(0,ut.Z)(d,o);function d(){var l,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=c.width,m=c.height,E=c.latitude,M=E===void 0?0:E,Z=c.longitude,ne=Z===void 0?0:Z,Ce=c.zoom,Fe=Ce===void 0?0:Ce,bt=c.pitch,Bt=bt===void 0?0:bt,Cn=c.bearing,An=Cn===void 0?0:Cn,Pr=c.altitude,ti=Pr===void 0?1.5:Pr,ho=c.nearZMultiplier,bo=c.farZMultiplier;(0,xt.Z)(this,d),u=u||1,m=m||1;var Ds=A9(Fe);ti=Math.max(.75,ti);var ta=cE([ne,M],Ds);ta[2]=0;var aa=I9({width:u,height:m,pitch:Bt,bearing:An,altitude:ti,nearZMultiplier:ho||1/m,farZMultiplier:bo||1.01}),Ua=fH({height:m,center:ta,pitch:Bt,bearing:An,altitude:ti,flipY:!0});return l=(0,$t.Z)(this,(0,_t.Z)(d).call(this,{width:u,height:m,viewMatrix:Ua,projectionMatrix:aa})),l.latitude=M,l.longitude=ne,l.zoom=Fe,l.pitch=Bt,l.bearing=An,l.altitude=ti,l.scale=Ds,l.center=ta,l.pixelsPerMeter=D9((0,gs.Z)((0,gs.Z)(l))).pixelsPerMeter[2],Object.freeze((0,gs.Z)((0,gs.Z)(l))),l}return(0,ot.Z)(d,[{key:"projectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return cE(c,u)}},{key:"unprojectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return R5(c,u)}},{key:"getMapCenterByLngLatPosition",value:function(c){var u=c.lngLat,m=c.pos,E=P9(m,this.pixelUnprojectionMatrix),M=cE(u,this.scale),Z=Uf([],M,Qg([],E)),ne=Uf([],this.center,Z);return R5(ne,this.scale)}},{key:"getLocationAtPoint",value:function(c){var u=c.lngLat,m=c.pos;return this.getMapCenterByLngLatPosition({lngLat:u,pos:m})}},{key:"fitBounds",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=this.width,E=this.height,M=DP(Object.assign({width:m,height:E,bounds:c},u)),Z=M.longitude,ne=M.latitude,Ce=M.zoom;return new d({width:m,height:E,longitude:Z,latitude:ne,zoom:Ce})}}]),d}(mH),bA=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,M=l.viewportHeight,Z=l.viewportWidth,ne=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 N6((0,Oe.Z)((0,Oe.Z)({},ne),{},{width:Z,height:M,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E}))}},{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(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),L9=function(){function o(d){(0,xt.Z)(this,o),(0,Ln.Z)(this,"size",1e4),this.size=d||1e4}return(0,ot.Z)(o,[{key:"setSize",value:function(l){this.size=l}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(l){return(180+l)/360*this.size}},{key:"mercatorYfromLat",value:function(l){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(l){return l/this.size*360-180}},{key:"latFromMercatorY",value:function(l){var c=180-(1-l/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(c*Math.PI/180))-90}},{key:"project",value:function(l){var c=this.mercatorXfromLng(l[0]),u=this.mercatorYfromLat(l[1]);return[c,u]}},{key:"unproject",value:function(l){var c=this.lngFromMercatorX(l[0]),u=this.latFromMercatorY(l[1]);return[c,u]}}]),o}();function $D(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={top:0,right:0,bottom:0,left:0};if(typeof o=="number")return{top:o,right:o,bottom:o,left:o};if(Array.isArray(o)){if(o.length===4)return{top:o[0],right:o[1],bottom:o[2],left:o[3]};if(o.length===2)return{top:o[0],right:o[1],bottom:o[0],left:o[1]}}return(0,Oe.Z)((0,Oe.Z)({},d),o)}var F6={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},B6=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],z6,O5,M9,IP,PP,N5,xA,R9,k9,O9,U6;function vH(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}vH(`.amap-logo{ display: none !important; } -`);var A5={contextmenu:"rightclick"},I5={contextmenu:"rightclick",camerachange:"viewchange"},MP={"GAODE1.x":A5,"GAODE2.x":I5},OF=0;window.forceWebGL=!0;var OP="15cd8a57710d40c9b7c0e3cc120f1200",lV="1.4.15",RP="amap-script",vA=!1,yA=[],RF=12,NF=(T5=(0,As.b2)(),DF=(0,As.f3)(vr.IGlobalConfigService),AF=(0,As.f3)(vr.MapConfig),D5=(0,As.f3)(vr.ICoordinateSystemService),IF=(0,As.f3)(vr.IEventEmitter),T5(LF=(PC=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,Cn.Z)(this,"version",d0["GAODE1.x"]),(0,Cn.Z)(this,"simpleMapCoord",new C5),(0,Cn.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),Fd(this,"configService",PF,this),Fd(this,"config",mA,this),Fd(this,"coordinateSystemService",kF,this),Fd(this,"eventEmitter",MF,this),(0,Cn.Z)(this,"handleCameraChanged",function(u){var c=u.camera,l=c.fov,g=c.near,T=c.far,B=c.height,G=c.pitch,ne=c.rotation,Me=c.aspect,Ge=c.position,Et=p.getCenter(),Ot=Et.lng,Pn=Et.lat;if(p.emit("mapchange"),p.cameraChangedCallback){p.viewport.syncWithMapCamera({aspect:Me,bearing:360-ne,far:T,fov:l,cameraHeight:B,near:g,pitch:G,zoom:p.map.getZoom()-1,center:[Ot,Pn],offsetOrigin:[Ge.x,Ge.y]});var Mn=p.config.offsetZoom,Ir=Mn===void 0?RF:Mn;p.viewport.getZoom()>Ir?p.coordinateSystemService.setCoordinateSystem(eh.P20_OFFSET):p.coordinateSystemService.setCoordinateSystem(eh.P20),p.cameraChangedCallback(p.viewport)}})}return(0,He.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getContainer();if(u!==null){var c=u.getElementsByClassName("amap-maps")[0];this.markerContainer=to("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(MP[this.version][u]||u,c)}},{key:"off",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.off(u,c):this.map.off(MP[this.version][u]||u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var u;return(u=this.map.getContainer())===null||u===void 0?void 0:u.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var u=this.map.getSize();return[u.getWidth(),u.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(u){return this.map.setZoom(u+1)}},{key:"getCenter",value:function(u){if(u!=null&&u.padding){var c=this.getCenter(),l=kP(u.padding),g=this.lngLatToPixel([c.lng,c.lat]),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x-T[0],g.y-T[1]]);return B}var G=this.map.getCenter();return{lng:G.getLng(),lat:G.getLat()}}},{key:"setCenter",value:function(u,c){if(c!=null&&c.padding){var l=kP(c.padding),g=this.lngLatToPixel(u),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x+T[0],g.y+T[1]]);this.map.setCenter([B.lng,B.lat])}else this.map.setCenter(u)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var u=this.map.getBounds().toBounds(),c=u.getNorthEast(),l=u.getSouthWest(),g=this.getCenter(),T=g.lng>c.getLng()||g.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(u,c)}},{key:"fitBounds",value:function(u){this.map.setBounds(new AMap.Bounds([u[0][0],u[0][1],u[1][0],u[1][1]]))}},{key:"setZoomAndCenter",value:function(u,c){this.map.setZoomAndCenter(u+1,c)}},{key:"setMapStyle",value:function(u){this.map.setMapStyle(this.getMapStyleValue(u))}},{key:"setMapStatus",value:function(u){this.map.setStatus(u)}},{key:"getMapStyleConfig",value:function(){return RI}},{key:"getMapStyleValue",value:function(u){return this.getMapStyleConfig()[u]||u}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(u){var c=this.map.pixelToLngLat(new AMap.Pixel(u[0],u[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(u){var c=this.map.lnglatToPixel(new AMap.LngLat(u[0],u[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(u){var c=new AMap.Pixel(u[0],u[1]),l=this.map.containerToLngLat(c);return{lng:l==null?void 0:l.getLng(),lat:l==null?void 0:l.getLat()}}},{key:"lngLatToContainer",value:function(u){var c=new AMap.LngLat(u[0],u[1]),l=this.map.lngLatToContainer(c);return{x:l.getX(),y:l.getY()}}},{key:"lngLatToCoord",value:function(u){var c=this.map.lngLatToGeodeticCoord(u),l=c.x,g=c.y;return[l,-g]}},{key:"lngLatToMercator",value:function(u,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(u,c,l){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],T=this.viewport.projectFlat(u),B=on();return ql(B,B,Yg(T[0],T[1],c)),ol(B,B,Yg(g[0],g[1],g[2])),pu(B,B,l[0]),oc(B,B,l[1]),cd(B,B,l[2]),B}},{key:"init",value:function(){var p=(0,Na.Z)(ro().mark(function c(){var l=this,g,T,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko;return ro().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:return g=this.config,T=g.id,B=g.style,G=B===void 0?"light":B,ne=g.minZoom,Me=ne===void 0?0:ne,Ge=g.maxZoom,Et=Ge===void 0?18:Ge,Ot=g.token,Pn=Ot===void 0?OP:Ot,Mn=g.mapInstance,Ir=g.plugin,Ti=Ir===void 0?[]:Ir,Ko=(0,Vg.Z)(g,sV),Qs.next=3,new Promise(function(ga){var Ma=function(){if(Mn)l.map=Mn,l.$mapContainer=l.map.getContainer(),setTimeout(function(){l.map.on("camerachange",l.handleCameraChanged),ga()},30);else{l.$mapContainer=l.creatMapContainer(T);var Wl=(0,we.Z)({mapStyle:l.getMapStyleValue(G),zooms:[Me,Et],viewMode:"3D"},Ko);Wl.zoom&&(Wl.zoom+=1);var jl=new AMap.Map(l.$mapContainer,Wl);jl.on("camerachange",l.handleCameraChanged),jl.on("camerachange",function(){setTimeout(function(){return l.handleAfterMapChange()})}),l.map=jl,setTimeout(function(){ga()},10)}};!vA&&!Mn?(Pn===OP&&console.warn("%c".concat(l.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),vA=!0,Ti.push("Map3D"),PI().load({key:Pn,version:lV,plugins:Ti}).then(function(){Ma(),yA.length&&(yA.forEach(function(ll){return ll()}),yA=[])}).catch(function(ll){throw new Error(ll)})):vA&&window.AMap||Mn?Ma():yA.push(Ma)});case 3:this.viewport=new OI;case 4:case"end":return Qs.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,c){var l=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,Fr.Z)(u)),ii(AMap.LngLat,(0,Fr.Z)(c))),g=this.lngLatToCoord(u),T=(0,qn.Z)(g,2),B=T[0],G=T[1],ne=this.lngLatToCoord(c),Me=(0,qn.Z)(ne,2),Ge=Me[0],Et=Me[1],Ot=Math.sqrt(Math.pow(B-Ge,2)+Math.pow(G-Et,2));return Ot/l}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var c,l=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],g=u==="jpg"?l==null?void 0:l.toDataURL("image/jpeg"):l==null?void 0:l.toDataURL("image/png");return g}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;TPr?d.coordinateSystemService.setCoordinateSystem(Oh.P20_OFFSET):d.coordinateSystemService.setCoordinateSystem(Oh.P20),d.cameraChangedCallback(d.viewport)}})}return(0,ot.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getContainer();if(l!==null){var c=l.getElementsByClassName("amap-maps")[0];this.markerContainer=As("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on($6[this.version][l]||l,c)}},{key:"off",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.off(l,c):this.map.off($6[this.version][l]||l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var l;return(l=this.map.getContainer())===null||l===void 0?void 0:l.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var l=this.map.getSize();return[l.getWidth(),l.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(l){return this.map.setZoom(l+1)}},{key:"getCenter",value:function(l){if(l!=null&&l.padding){var c=this.getCenter(),u=$D(l.padding),m=this.lngLatToPixel([c.lng,c.lat]),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],M=this.pixelToLngLat([m.x-E[0],m.y-E[1]]);return M}var Z=this.map.getCenter();return{lng:Z.getLng(),lat:Z.getLat()}}},{key:"setCenter",value:function(l,c){if(c!=null&&c.padding){var u=$D(c.padding),m=this.lngLatToPixel(l),E=[(u.right-u.left)/2,(u.bottom-u.top)/2],M=this.pixelToLngLat([m.x+E[0],m.y+E[1]]);this.map.setCenter([M.lng,M.lat])}else this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var l=this.map.getBounds().toBounds(),c=l.getNorthEast(),u=l.getSouthWest(),m=this.getCenter(),E=m.lng>c.getLng()||m.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(l,c)}},{key:"fitBounds",value:function(l){this.map.setBounds(new AMap.Bounds([l[0][0],l[0][1],l[1][0],l[1][1]]))}},{key:"setZoomAndCenter",value:function(l,c){this.map.setZoomAndCenter(l+1,c)}},{key:"setMapStyle",value:function(l){this.map.setMapStyle(this.getMapStyleValue(l))}},{key:"setMapStatus",value:function(l){this.map.setStatus(l)}},{key:"getMapStyleConfig",value:function(){return F6}},{key:"getMapStyleValue",value:function(l){return this.getMapStyleConfig()[l]||l}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(l){var c=this.map.pixelToLngLat(new AMap.Pixel(l[0],l[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(l){var c=this.map.lnglatToPixel(new AMap.LngLat(l[0],l[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(l){var c=new AMap.Pixel(l[0],l[1]),u=this.map.containerToLngLat(c);return{lng:u==null?void 0:u.getLng(),lat:u==null?void 0:u.getLat()}}},{key:"lngLatToContainer",value:function(l){var c=new AMap.LngLat(l[0],l[1]),u=this.map.lngLatToContainer(c);return{x:u.getX(),y:u.getY()}}},{key:"lngLatToCoord",value:function(l){var c=this.map.lngLatToGeodeticCoord(l),u=c.x,m=c.y;return[u,-m]}},{key:"lngLatToMercator",value:function(l,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(l,c,u){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],E=this.viewport.projectFlat(l),M=yp();return C0(M,M,nm(E[0],E[1],c)),Jd(M,M,nm(m[0],m[1],m[2])),mm(M,M,u[0]),u0(M,M,u[1]),c0(M,M,u[2]),M}},{key:"init",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){var u=this,m,E,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho;return Wi().wrap(function(Ds){for(;;)switch(Ds.prev=Ds.next){case 0:return m=this.config,E=m.id,M=m.style,Z=M===void 0?"light":M,ne=m.minZoom,Ce=ne===void 0?0:ne,Fe=m.maxZoom,bt=Fe===void 0?18:Fe,Bt=m.token,Cn=Bt===void 0?F9:Bt,An=m.mapInstance,Pr=m.plugin,ti=Pr===void 0?[]:Pr,ho=(0,dm.Z)(m,B6),Ds.next=3,new Promise(function(ta){var aa=function(){if(An)u.map=An,u.$mapContainer=u.map.getContainer(),setTimeout(function(){u.map.on("camerachange",u.handleCameraChanged),ta()},30);else{u.$mapContainer=u.creatMapContainer(E);var pl=(0,Oe.Z)({mapStyle:u.getMapStyleValue(Z),zooms:[Ce,bt],viewMode:"3D"},ho);pl.zoom&&(pl.zoom+=1);var ru=new AMap.Map(u.$mapContainer,pl);ru.on("camerachange",u.handleCameraChanged),ru.on("camerachange",function(){setTimeout(function(){return u.handleAfterMapChange()})}),u.map=ru,setTimeout(function(){ta()},10)}};!V6&&!An?(Cn===F9&&console.warn("%c".concat(u.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),V6=!0,ti.push("Map3D"),C9().load({key:Cn,version:bH,plugins:ti}).then(function(){aa(),VD.length&&(VD.forEach(function(Ua){return Ua()}),VD=[])}).catch(function(Ua){throw new Error(Ua)})):V6&&window.AMap||An?aa():VD.push(aa)});case 3:this.viewport=new bA;case 4:case"end":return Ds.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,c){var u=AMap.GeometryUtil.distance(wi(AMap.LngLat,(0,Pn.Z)(l)),wi(AMap.LngLat,(0,Pn.Z)(c))),m=this.lngLatToCoord(l),E=(0,mi.Z)(m,2),M=E[0],Z=E[1],ne=this.lngLatToCoord(c),Ce=(0,mi.Z)(ne,2),Fe=Ce[0],bt=Ce[1],Bt=Math.sqrt(Math.pow(M-Fe,2)+Math.pow(Z-bt,2));return Bt/u}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var c,u=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],m=l==="jpg"?u==null?void 0:u.toDataURL("image/jpeg"):u==null?void 0:u.toDataURL("image/png");return m}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;Ega?c.coordinateSystemService.setCoordinateSystem(eh.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,He.Z)(u,[{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=this.viewport.projectFlat(l),ne=on();return ql(ne,ne,Yg(G[0],G[1],g)),ol(ne,ne,Yg(B[0],B[1],B[2])),pu(ne,ne,T[0]),oc(ne,ne,T[1]),cd(ne,ne,T[2]),ne}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T=this,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo,Qs;return ro().wrap(function(Ma){for(;;)switch(Ma.prev=Ma.next){case 0:return B=this.config,G=B.id,ne=B.style,Me=ne===void 0?"light":ne,Ge=B.minZoom,Et=Ge===void 0?0:Ge,Ot=B.maxZoom,Pn=Ot===void 0?18:Ot,Mn=B.token,Ir=Mn===void 0?L5:Mn,Ti=B.mapInstance,Ko=B.plugin,Zo=Ko===void 0?[]:Ko,Qs=(0,Vg.Z)(B,pV),Ma.next=3,new Promise(function(ll){var Wl=function(){if(Ti)T.map=Ti,T.$mapContainer=T.map.getContainer(),setTimeout(function(){T.map.on("camerachange",T.handleCameraChanged),ll()},30);else{T.$mapContainer=T.creatMapContainer(G);var ju=(0,we.Z)({mapStyle:T.getMapStyleValue(Me),zooms:[Et,Pn],viewMode:"3D"},Qs);ju.zoom&&(ju.zoom+=1);var Pu=new AMap.Map(T.$mapContainer,ju);Pu.on("camerachange",T.handleCameraChanged),Pu.on("camerachange",function(){setTimeout(function(){return T.handleAfterMapChange()})}),T.map=Pu,setTimeout(function(){ll()},10)}};!jF&&!Ti?(Ir===L5&&console.warn(T.configService.getSceneWarninfo("MapToken")),jF=!0,Zo.push("Map3D"),hV.load({key:Ir,version:WF,plugins:Zo}).then(function(jl){Wl(),ZE.length&&(ZE.forEach(function(ju){return ju()}),ZE=[])}).catch(function(jl){throw new Error(jl)})):jF&&window.AMap||Ti?Wl():ZE.push(Wl)});case 3:this.viewport=new fV;case 4:case"end":return Ma.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,g){var T=AMap.GeometryUtil.distance(ii(AMap.LngLat,(0,Fr.Z)(l)),ii(AMap.LngLat,(0,Fr.Z)(g))),B=this.lngLatToCoord(l),G=(0,qn.Z)(B,2),ne=G[0],Me=G[1],Ge=this.lngLatToCoord(g),Et=(0,qn.Z)(Ge,2),Ot=Et[0],Pn=Et[1],Mn=Math.sqrt(Math.pow(ne-Ot,2)+Math.pow(Me-Pn,2));return Mn/T}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var g,T=(g=this.getContainer())===null||g===void 0?void 0:g.getElementsByClassName("amap-layer")[0],B=l==="jpg"?T==null?void 0:T.toDataURL("image/jpeg"):T==null?void 0:T.toDataURL("image/png");return B}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}}]),u}(NF))||$F);function k5(a){var p=M5();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function M5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var mV=function(a){(0,ft.Z)(u,a);var p=k5(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return gV}}]),u}(fA),vV=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"projectionMatrix",on()),(0,Cn.Z)(this,"viewMatrix",on()),(0,Cn.Z)(this,"viewProjectionMatrix",on()),(0,Cn.Z)(this,"ViewProjectionMatrixUncentered",on()),(0,Cn.Z)(this,"viewUncenteredMatrix",on())}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.zoom,l=c===void 0?1:c,g=u.center,T=g===void 0?[0,0]:g,B=u.offsetOrigin,G=B===void 0?[0,0]:B,ne=u.cameraPosition,Me=ne===void 0?[0,0,0]:ne,Ge=u.up,Et=Ge===void 0?[0,1,0]:Ge,Ot=u.lookAt,Pn=Ot===void 0?[0,0,0]:Ot,Mn=u.aspect,Ir=Mn===void 0?1:Mn,Ti=u.near,Ko=Ti===void 0?.1:Ti,Zo=u.far,Qs=Zo===void 0?1e3:Zo,ga=u.fov,Ma=ga===void 0?45:ga;this.zoom=l,this.center=T,bi(this.projectionMatrix,Ma/180*Math.PI,Ir,Ko,Qs);var ll=Yg.apply(z,(0,Fr.Z)(Me)),Wl=Yg.apply(z,(0,Fr.Z)(Pn)),jl=Yg.apply(z,(0,Fr.Z)(Et));Pa(this.viewMatrix,ll,Wl,jl),this.viewUncenteredMatrix=Fn(this.viewMatrix),ql(this.viewMatrix,this.viewMatrix,Yg(-G[0],G[1],0)),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var u=(0,qn.Z)(this.center,2),c=u[0],l=u[1];return[c,l]}},{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.2}},{key:"projectFlat",value:function(u){var c=85.0511287798,l=Math.max(Math.min(c,u[1]),-c),g=256<<20,T=Math.PI/180,B=u[0]*T,G=l*T;G=Math.log(Math.tan(Math.PI/4+G/2));var ne=.5/Math.PI,Me=.5,Ge=-.5/Math.PI;return T=.5,B=g*(ne*B+Me)-215440491,G=-(g*(Ge*G+T)-106744817),[B,G]}}]),a}(),FI=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],O5,BP;function VF(a){var p=R5();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function R5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function N5(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}N5(`.amap-logo{ + `,u.id="l7_amap_div"+_H++,c.appendChild(u),u}}]),o}(),R9=kh(xA.prototype,"configService",[O5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k9=kh(xA.prototype,"config",[M9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O9=kh(xA.prototype,"coordinateSystemService",[IP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U6=kh(xA.prototype,"eventEmitter",[PP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xA))||N5);if(!window)throw Error("AMap JSAPI can only be used in Browser.");var tb=function(o){return o.notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed",o}(tb||{}),nb={key:"",AMap:{version:"2.0",plugins:[]}},Vw={AMap:tb.notload},EQ=[],F5=function(d){if(typeof d=="function"){if(Vw.AMap===tb.loaded){d(window.AMap);return}EQ.push(d)}},W6=function(){var o=(0,Il.Z)(Wi().mark(function d(l){return Wi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",new Promise(function(m,E){if(Vw.AMap===tb.failed)E("");else if(Vw.AMap===tb.notload){var M=l.key,Z=l.version,ne=l.plugins;if(!M){E("\u8BF7\u586B\u5199key");return}window.AMap&&location.host!=="lbs.amap.com"&&E("\u7981\u6B62\u591A\u79CDAPI\u52A0\u8F7D\u65B9\u5F0F\u6DF7\u7528"),nb.key=M,nb.AMap.version=Z||nb.AMap.version,nb.AMap.plugins=ne||nb.AMap.plugins,Vw.AMap=tb.loading;var Ce=document.body||document.head;window._onAPILoaded=function(Cn){Cn?(Vw.AMap=tb.failed,E(Cn)):(Vw.AMap=tb.loaded,m(null))};var Fe=document.createElement("script");Fe.type="text/javascript",Fe.async=!1,Fe.src="https://webapi.amap.com/maps?callback=_onAPILoaded&v="+nb.AMap.version+"&key="+M+"&plugin="+nb.AMap.plugins.join(","),Fe.onerror=function(Cn){Vw.AMap=tb.failed,E(Cn)},Ce.appendChild(Fe)}else if(Vw.AMap===tb.loaded){if(l.key&&l.key!==nb.key){E("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==nb.AMap.version){E("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var bt=[];l.plugins&&l.plugins.forEach(function(Cn){nb.AMap.plugins.indexOf(Cn)===-1&&bt.push(Cn)}),bt.length&&window.AMap.plugin(bt,function(){m(window.AMap)})}else{if(l.key&&l.key!==nb.key){E("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==nb.AMap.version){E("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Bt=[];l.plugins&&l.plugins.forEach(function(Cn){nb.AMap.plugins.indexOf(Cn)===-1&&Bt.push(Cn)}),F5(function(){Bt.length&&window.AMap.plugin(Bt,function(){m(window.AMap)})})}}));case 1:case"end":return u.stop()}},d)}));return function(l){return o.apply(this,arguments)}}();function CH(){delete window.AMap,nb={key:"",AMap:{version:"1.4.15",plugins:[]}},Vw={AMap:tb.notload}}var j6={load:W6,reset:CH},B5=Math.PI/180,SH=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"projectionMatrix",yp()),(0,Ln.Z)(this,"viewMatrix",yp()),(0,Ln.Z)(this,"viewProjectionMatrix",yp()),(0,Ln.Z)(this,"ViewProjectionMatrixUncentered",yp()),(0,Ln.Z)(this,"viewUncenteredMatrix",yp())}return(0,ot.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,u=c===void 0?1:c,m=l.pitch,E=m===void 0?0:m,M=l.bearing,Z=M===void 0?0:M,ne=l.center,Ce=ne===void 0?[0,0]:ne,Fe=l.offsetOrigin,bt=Fe===void 0?[0,0]:Fe,Bt=l.cameraHeight,Cn=Bt===void 0?1:Bt,An=l.aspect,Pr=An===void 0?1:An,ti=l.near,ho=ti===void 0?.1:ti,bo=l.far,Ds=bo===void 0?1e3:bo,ta=l.fov,aa=ta===void 0?0:ta;this.zoom=u,this.center=Ce;var Ua=E*B5,pl=(360-Z)*B5;Cr(this.projectionMatrix,aa,Pr,ho,Ds);var ru=nm(Cn*Math.sin(Ua)*Math.sin(pl),-Cn*Math.sin(Ua)*Math.cos(pl),Cn*Math.cos(Ua)),Iu=nm(-Math.cos(Ua)*Math.sin(pl),Math.cos(Ua)*Math.cos(pl),Math.sin(Ua));Ro(this.viewMatrix,ru,nm(0,0,0),Iu),this.viewUncenteredMatrix=Qp(this.viewMatrix),C0(this.viewMatrix,this.viewMatrix,nm(-bt[0],bt[1],0)),Af(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Af(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var l=(0,mi.Z)(this.center,2),c=l[0],u=l[1];return[c,u]}},{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(l){var c=85.0511287798,u=Math.max(Math.min(c,l[1]),-c),m=256<<20,E=Math.PI/180,M=l[0]*E,Z=u*E;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ne=.5/Math.PI,Ce=.5,Fe=-.5/Math.PI;return E=.5,M=m*(ne*M+Ce)-215440491,Z=-(m*(Fe*Z+E)-106744817),[M,Z]}}]),o}(),EH=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],WD,Z6;function H6(o){var d=B9();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function B9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}window.forceWebGL=!0;var z5="15cd8a57710d40c9b7c0e3cc120f1200",G6="1.4.15",MP=!1,U5=[],TH=12,AH=(WD=(0,os.b2)(),WD(Z6=function(o){(0,ut.Z)(l,o);var d=H6(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Eta?c.coordinateSystemService.setCoordinateSystem(Oh.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(Oh.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,ot.Z)(l,[{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return C0(ne,ne,nm(Z[0],Z[1],m)),Jd(ne,ne,nm(M[0],M[1],M[2])),mm(ne,ne,E[0]),u0(ne,ne,E[1]),c0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo,Ds;return Wi().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return M=this.config,Z=M.id,ne=M.style,Ce=ne===void 0?"light":ne,Fe=M.minZoom,bt=Fe===void 0?0:Fe,Bt=M.maxZoom,Cn=Bt===void 0?18:Bt,An=M.token,Pr=An===void 0?z5:An,ti=M.mapInstance,ho=M.plugin,bo=ho===void 0?[]:ho,Ds=(0,dm.Z)(M,EH),aa.next=3,new Promise(function(Ua){var pl=function(){if(ti)E.map=ti,E.$mapContainer=E.map.getContainer(),setTimeout(function(){E.map.on("camerachange",E.handleCameraChanged),Ua()},30);else{E.$mapContainer=E.creatMapContainer(Z);var Iu=(0,Oe.Z)({mapStyle:E.getMapStyleValue(Ce),zooms:[bt,Cn],viewMode:"3D"},Ds);Iu.zoom&&(Iu.zoom+=1);var Vu=new AMap.Map(E.$mapContainer,Iu);Vu.on("camerachange",E.handleCameraChanged),Vu.on("camerachange",function(){setTimeout(function(){return E.handleAfterMapChange()})}),E.map=Vu,setTimeout(function(){Ua()},10)}};!MP&&!ti?(Pr===z5&&console.warn(E.configService.getSceneWarninfo("MapToken")),MP=!0,bo.push("Map3D"),j6.load({key:Pr,version:G6,plugins:bo}).then(function(ru){pl(),U5.length&&(U5.forEach(function(Iu){return Iu()}),U5=[])}).catch(function(ru){throw new Error(ru)})):MP&&window.AMap||ti?pl():U5.push(pl)});case 3:this.viewport=new SH;case 4:case"end":return aa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,m){var E=AMap.GeometryUtil.distance(wi(AMap.LngLat,(0,Pn.Z)(u)),wi(AMap.LngLat,(0,Pn.Z)(m))),M=this.lngLatToCoord(u),Z=(0,mi.Z)(M,2),ne=Z[0],Ce=Z[1],Fe=this.lngLatToCoord(m),bt=(0,mi.Z)(Fe,2),Bt=bt[0],Cn=bt[1],An=Math.sqrt(Math.pow(ne-Bt,2)+Math.pow(Ce-Cn,2));return An/E}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var m,E=(m=this.getContainer())===null||m===void 0?void 0:m.getElementsByClassName("amap-layer")[0],M=u==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}}]),l}(LP))||Z6);function K6(o){var d=X6();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function X6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var DH=function(o){(0,ut.Z)(l,o);var d=K6(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return AH}}]),l}(V2),XC=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"projectionMatrix",yp()),(0,Ln.Z)(this,"viewMatrix",yp()),(0,Ln.Z)(this,"viewProjectionMatrix",yp()),(0,Ln.Z)(this,"ViewProjectionMatrixUncentered",yp()),(0,Ln.Z)(this,"viewUncenteredMatrix",yp())}return(0,ot.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,u=c===void 0?1:c,m=l.center,E=m===void 0?[0,0]:m,M=l.offsetOrigin,Z=M===void 0?[0,0]:M,ne=l.cameraPosition,Ce=ne===void 0?[0,0,0]:ne,Fe=l.up,bt=Fe===void 0?[0,1,0]:Fe,Bt=l.lookAt,Cn=Bt===void 0?[0,0,0]:Bt,An=l.aspect,Pr=An===void 0?1:An,ti=l.near,ho=ti===void 0?.1:ti,bo=l.far,Ds=bo===void 0?1e3:bo,ta=l.fov,aa=ta===void 0?45:ta;this.zoom=u,this.center=E,Cr(this.projectionMatrix,aa/180*Math.PI,Pr,ho,Ds);var Ua=nm.apply(b,(0,Pn.Z)(Ce)),pl=nm.apply(b,(0,Pn.Z)(Cn)),ru=nm.apply(b,(0,Pn.Z)(bt));Ro(this.viewMatrix,Ua,pl,ru),this.viewUncenteredMatrix=Qp(this.viewMatrix),C0(this.viewMatrix,this.viewMatrix,nm(-Z[0],Z[1],0)),Af(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Af(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var l=(0,mi.Z)(this.center,2),c=l[0],u=l[1];return[c,u]}},{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.2}},{key:"projectFlat",value:function(l){var c=85.0511287798,u=Math.max(Math.min(c,l[1]),-c),m=256<<20,E=Math.PI/180,M=l[0]*E,Z=u*E;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ne=.5/Math.PI,Ce=.5,Fe=-.5/Math.PI;return E=.5,M=m*(ne*M+Ce)-215440491,Z=-(m*(Fe*Z+E)-106744817),[M,Z]}}]),o}(),IH=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],z9,U9;function jD(o){var d=$9();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function $9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function PH(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}PH(`.amap-logo{ display: none !important; } -`);var zP=[108.92361,34.54083];window.forceWebGL=!0;var UF="ff533602d57df6f8ab3b0fea226ae52f",HF="2.0",BX=!1,ZF=null,F5=(O5=(0,As.b2)(),O5(BP=function(a){(0,ft.Z)(u,a);var p=VF(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tg.getLng()||B.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=this.map.customCoords.lngLatToCoord(l),ne=on();return ql(ne,ne,Yg(G[0],G[1],g)),ol(ne,ne,Yg(B[0],B[1],B[2])),pu(ne,ne,T[0]),oc(ne,ne,T[1]),cd(ne,ne,T[2]),ne}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo,Qs,ga,Ma,ll,Wl,jl,ju,Pu;return ro().wrap(function(dd){for(;;)switch(dd.prev=dd.next){case 0:if(T=this.config,B=T.id,G=T.style,ne=G===void 0?"light":G,Me=T.minZoom,Ge=Me===void 0?0:Me,Et=T.maxZoom,Ot=Et===void 0?18:Et,Pn=T.token,Mn=Pn===void 0?UF:Pn,Ir=T.mapInstance,Ti=T.plugin,Ko=Ti===void 0?[]:Ti,Zo=T.version,Qs=Zo===void 0?HF:Zo,ga=(0,Vg.Z)(T,FI),this.viewport=new vV,window.AMap||Ir){dd.next=6;break}return Ko.push("Map3D"),dd.next=6,PI().load({key:Mn,version:HF,plugins:Ko});case 6:Ir?(this.map=Ir,this.$mapContainer=this.map.getContainer(),ll=this.map.getCenter(),(Ma=this.map.customCoords)===null||Ma===void 0||Ma.setCenter([ll.lng,ll.lat]),this.setCustomCoordCenter([ll.lng,ll.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),jl=(0,we.Z)({mapStyle:this.getMapStyleValue(ne),zooms:[Ge,Ot],viewMode:"3D"},ga),jl.zoom&&(jl.zoom+=1),Mn===UF&&console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),ju=new AMap.Map(this.$mapContainer,jl),this.map=ju,Pu=ju.getCenter(),(Wl=this.map.customCoords)===null||Wl===void 0||Wl.setCenter([Pu.lng,Pu.lat]),this.setCustomCoordCenter([Pu.lng,Pu.lat]),ju.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return dd.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}},{key:"initViewPort",value:function(){var l,g=(l=this.map.customCoords)===null||l===void 0?void 0:l.getCameraParams(),T=g.fov,B=g.near,G=g.far,ne=g.aspect,Me=g.position,Ge=g.lookAt,Et=g.up;this.emit("mapchange");var Ot=this.map.customCoords.getCenter(),Pn=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ne,far:G,fov:T,cameraPosition:Me,lookAt:Ge,near:B,up:Et,zoom:Pn-1,center:Ot,offsetOrigin:[Me[0],Me[1]]}),this.coordinateSystemService.setCoordinateSystem(eh.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(l,g){var T=[0,0];return T[0]=l[0]-g[0],T[1]=l[1]-g[1],T}}]),u}(NF))||BP);function yV(a){var p=Nw();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function Nw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var GF=function(a){(0,ft.Z)(u,a);var p=yV(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return F5}}]),u}(fA),_V=m(99874),bV=m.n(_V);function _A(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=KF(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function KF(a,p){if(a){if(typeof a=="string")return XF(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return XF(a,p)}}function XF(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u1?p-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,He.Z)(a,[{key:"wrap",value:function(){return new a(z5(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(u){var c=Math.PI/180,l=this.lat*c,g=u.lat*c,T=Math.sin(l)*Math.sin(g)+Math.cos(l)*Math.cos(g)*Math.cos((u.lng-this.lng)*c),B=qF*Math.acos(Math.min(T,1));return B}}],[{key:"convert",value:function(u){if(u instanceof a)return u;if(Array.isArray(u)&&(u.length===2||u.length===3))return new a(Number(u[0]),Number(u[1]));if(!Array.isArray(u)&&(0,jo.Z)(u)==="object"&&u!==null){var c="lng"in u?u.lng:u.lon;return new a(Number(c),Number(u.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),a}(),zI=function(){function a(p,u){(0,bt.Z)(this,a),p&&(u?this.setSouthWest(p).setNorthEast(u):p.length===4?this.setSouthWest([p[0],p[1]]).setNorthEast([p[2],p[3]]):this.setSouthWest(p[0]).setNorthEast(p[1]))}return(0,He.Z)(a,[{key:"setNorthEast",value:function(u){return this.ne=u instanceof F0?new F0(u.lng,u.lat):F0.convert(u),this}},{key:"setSouthWest",value:function(u){return this.sw=u instanceof F0?new F0(u.lng,u.lat):F0.convert(u),this}},{key:"extend",value:function(u){var c=this.sw,l=this.ne,g,T;if(u instanceof F0)g=u,T=u;else if(u instanceof a){if(g=u.sw,T=u.ne,!g||!T)return this}else{if(Array.isArray(u))if(u.length===4||u.every(Array.isArray)){var B=u;return this.extend(a.convert(B))}else{var G=u;return this.extend(F0.convert(G))}return this}return!c&&!l?(this.sw=new F0(g.lng,g.lat),this.ne=new F0(T.lng,T.lat)):(c.lng=Math.min(g.lng,c.lng),c.lat=Math.min(g.lat,c.lat),l.lng=Math.max(T.lng,l.lng),l.lat=Math.max(T.lat,l.lat)),this}},{key:"getCenter",value:function(){return new F0((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 F0(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new F0(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(u){var c=F0.convert(u),l=c.lng,g=c.lat,T=this.sw.lat<=g&&g<=this.ne.lat,B=this.sw.lng<=l&&l<=this.ne.lng;return this.sw.lng>this.ne.lng&&(B=this.sw.lng>=l&&l>=this.ne.lng),T&&B}}],[{key:"convert",value:function(u){return u instanceof a?u:new a(u)}}]),a}(),$m=function(){function a(p,u){(0,bt.Z)(this,a),this.x=p,this.y=u}return(0,He.Z)(a,[{key:"clone",value:function(){return new a(this.x,this.y)}},{key:"_add",value:function(u){return this.x+=u.x,this.y+=u.y,this}},{key:"add",value:function(u){return this.clone()._add(u)}},{key:"_sub",value:function(u){return this.x-=u.x,this.y-=u.y,this}},{key:"sub",value:function(u){return this.clone()._sub(u)}},{key:"_multByPoint",value:function(u){return this.x*=u.x,this.y*=u.y,this}},{key:"multByPoint",value:function(u){return this.clone()._multByPoint(u)}},{key:"_divByPoint",value:function(u){return this.x/=u.x,this.y/=u.y,this}},{key:"divByPoint",value:function(u){return this.clone()._divByPoint(u)}},{key:"_mult",value:function(u){return this.x*=u,this.y*=u,this}},{key:"mult",value:function(u){return this.clone()._mult(u)}},{key:"_div",value:function(u){return this.x/=u,this.y/=u,this}},{key:"div",value:function(u){return this.clone()._div(u)}},{key:"_rotate",value:function(u){var c=Math.cos(u),l=Math.sin(u),g=c*this.x-l*this.y,T=l*this.x+c*this.y;return this.x=g,this.y=T,this}},{key:"rotate",value:function(u){return this.clone()._rotate(u)}},{key:"_rotateAround",value:function(u,c){var l=Math.cos(u),g=Math.sin(u),T=c.x+l*(this.x-c.x)-g*(this.y-c.y),B=c.y+g*(this.x-c.x)+l*(this.y-c.y);return this.x=T,this.y=B,this}},{key:"roateAround",value:function(u,c){return this.clone()._rotateAround(u,c)}},{key:"_matMult",value:function(u){var c=u[0]*this.x+u[1]*this.y,l=u[2]*this.x+u[3]*this.y;return this.x=c,this.y=l,this}},{key:"matMult",value:function(u){return this.clone()._matMult(u)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var u=this.y;return this.y=this.x,this.x=-u,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(u){return this.x===u.x&&this.y===u.y}},{key:"dist",value:function(u){return Math.sqrt(this.distSqr(u))}},{key:"distSqr",value:function(u){var c=u.x-this.x,l=u.y-this.y;return c*c+l*l}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(u){return Math.atan2(this.y-u.y,this.x-u.x)}},{key:"angleWith",value:function(u){return this.angleWithSep(u.x,u.y)}},{key:"angleWithSep",value:function(u,c){return Math.atan2(this.x*c-this.y*u,this.x*u+this.y*c)}}],[{key:"convert",value:function(u){return u instanceof a?u:Array.isArray(u)?new a(u[0],u[1]):u}}]),a}();function wV(){var a=new Sc(4);return Sc!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a}function zX(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function JF(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function QF(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a}function W5(a,p,u,c){var l=new glMatrix.ARRAY_TYPE(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function SV(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function o1(a,p){if(a===p){var u=p[1];a[1]=p[2],a[2]=u}else a[0]=p[0],a[1]=p[2],a[2]=p[1],a[3]=p[3];return a}function e7(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*g-l*c;return T?(T=1/T,a[0]=g*T,a[1]=-c*T,a[2]=-l*T,a[3]=u*T,a):null}function EV(a,p){var u=p[0];return a[0]=p[3],a[1]=-p[1],a[2]=-p[2],a[3]=u,a}function TV(a){return a[0]*a[3]-a[2]*a[1]}function $X(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],G=u[1],ne=u[2],Me=u[3];return a[0]=c*B+g*G,a[1]=l*B+T*G,a[2]=c*ne+g*Me,a[3]=l*ne+T*Me,a}function DV(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=Math.sin(u),G=Math.cos(u);return a[0]=c*G+g*B,a[1]=l*G+T*B,a[2]=c*-B+g*G,a[3]=l*-B+T*G,a}function WX(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],G=u[1];return a[0]=c*B,a[1]=l*B,a[2]=g*G,a[3]=T*G,a}function jX(a,p){var u=Math.sin(p),c=Math.cos(p);return a[0]=c,a[1]=u,a[2]=-u,a[3]=c,a}function j5(a,p){return a[0]=p[0],a[1]=0,a[2]=0,a[3]=p[1],a}function VX(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function UX(a){return Math.hypot(a[0],a[1],a[2],a[3])}function HX(a,p,u,c){return a[2]=c[2]/c[0],u[0]=c[0],u[1]=c[1],u[3]=c[3]-a[2]*u[1],[a,p,u]}function AV(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function V5(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function t7(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function ZX(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],G=p[2],ne=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-G)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(G))&&Math.abs(g-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(ne))}function GX(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function _te(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}var KX=null,n7=null,bb=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,bt.Z)(this,a),isNaN(p)||p<0||isNaN(u)||u<0||isNaN(c)||c<0||isNaN(l)||l<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=p,this.bottom=u,this.left=c,this.right=l}return(0,He.Z)(a,[{key:"interpolate",value:function(u,c,l){return c.top!=null&&u.top!=null&&(this.top=Kb(u.top,c.top,l)),c.bottom!=null&&u.bottom!=null&&(this.bottom=Kb(u.bottom,c.bottom,l)),c.left!=null&&u.left!=null&&(this.left=Kb(u.left,c.left,l)),c.right!=null&&u.right!=null&&(this.right=Kb(u.right,c.right,l)),this}},{key:"getCenter",value:function(u,c){var l=Fw((this.left+u-this.right)/2,0,u),g=Fw((this.top+c-this.bottom)/2,0,c);return new $m(l,g)}},{key:"equals",value:function(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}},{key:"clone",value:function(){return new a(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}(),U5=2*Math.PI*qF;function r7(a){return U5*Math.cos(a*Math.PI/180)}function $P(a){return(180+a)/360}function WP(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function GE(a,p){return a/r7(p)}function H5(a){return a*360-180}function $I(a){var p=180-a*360;return 360/Math.PI*Math.atan(Math.exp(p*Math.PI/180))-90}function IV(a,p){return a*r7($I(p))}function i7(a){return 1/Math.cos(a*Math.PI/180)}var KE=function(){function a(p,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,bt.Z)(this,a),this.x=+p,this.y=+u,this.z=+c}return(0,He.Z)(a,[{key:"toLngLat",value:function(){return new F0(H5(this.x),$I(this.y))}},{key:"toAltitude",value:function(){return IV(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/U5*i7($I(this.y))}}],[{key:"fromLngLat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=F0.convert(u);return new a($P(l.lng),WP(l.lat),GE(c,l.lat))}}]),a}();function o7(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=U1(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function U1(a,p){if(a){if(typeof a=="string")return xA(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return xA(a,p)}}function xA(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc&&(ne=c-Ti)}if(this.lngRange){var Ko=Pn.x,Zo=Me.x/2;Ko-Zog&&(G=g-Zo)}(G!==void 0||ne!==void 0)&&(this.center=this.unproject(new $m(G!==void 0?G:Pn.x,ne!==void 0?ne:Pn.y))),this.unmodified=Ge,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var u=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(u)*this.height;var l=Math.PI/2+this._pitch,g=this._fov*(.5+c.y/this.height),T=Math.sin(g)*this.cameraToCenterDistance/Math.sin(Fw(Math.PI-l-g,.01,Math.PI-.01)),B=this.point,G=B.x,ne=B.y,Me=Math.cos(Math.PI/2-this._pitch)*T+this.cameraToCenterDistance,Ge=Me*1.01,Et=this.height/50,Ot=new Float64Array(16);bi(Ot,this._fov,this.width/this.height,Et,Ge),Ot[8]=-c.x*2/this.width,Ot[9]=c.y*2/this.height,ol(Ot,Ot,[1,-1,1]),ql(Ot,Ot,[0,0,-this.cameraToCenterDistance]),pu(Ot,Ot,this._pitch),cd(Ot,Ot,this.angle),ql(Ot,Ot,[-G,-ne,0]),this.mercatorMatrix=ol([],Ot,[this.worldSize,this.worldSize,this.worldSize]),ol(Ot,Ot,[1,1,GE(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Ot,this.invProjMatrix=$u([],this.projMatrix);var Pn=this.width%2/2,Mn=this.height%2/2,Ir=Math.cos(this.angle),Ti=Math.sin(this.angle),Ko=G-Math.round(G)+Ir*Pn+Ti*Mn,Zo=ne-Math.round(ne)+Ir*Mn+Ti*Pn,Qs=new Float64Array(Ot);if(ql(Qs,Qs,[Ko>.5?Ko-1:Ko,Zo>.5?Zo-1:Zo,0]),this.alignedProjMatrix=Qs,Ot=on(),ol(Ot,Ot,[this.width/2,-this.height/2,1]),ql(Ot,Ot,[1,-1,0]),this.labelPlaneMatrix=Ot,Ot=on(),ol(Ot,Ot,[1,-1,1]),ql(Ot,Ot,[-1,-1,0]),ol(Ot,Ot,[2/this.width,2/this.height,1]),this.glCoordMatrix=Ot,this.pixelMatrix=Sl(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Ot=$u(new Float64Array(16),this.pixelMatrix),!Ot)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Ot,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),a}(),jP=Fa.merge,_0=(0,He.Z)(function a(p){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,bt.Z)(this,a),jP(this,u),this.type=p});function s7(a){var p=a7();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function a7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var OC=Fa.merge,l7=function(a){(0,ft.Z)(u,a);var p=s7(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,ps.Z)(l),"renderFrameCallback",function(){var Me=Math.min((q2()-l.easeStart)/l.easeOptions.duration,1);l.onEaseFrame(l.easeOptions.easing(Me)),Me<1?l.easeFrameId=l.requestRenderFrame(l.renderFrameCallback):l.stop()}),l.options=c;var g=c.minZoom,T=c.maxZoom,B=c.minPitch,G=c.maxPitch,ne=c.renderWorldCopies;return l.moving=!1,l.zooming=!1,l.bearingSnap=c.bearingSnap,l.pitchEnabled=c.pitchEnabled,l.rotateEnabled=c.rotateEnabled,l.transform=new LV(g,T,B,G,ne),l}return(0,He.Z)(u,[{key:"requestRenderFrame",value:function(l){return 0}},{key:"cancelRenderFrame",value:function(l){}},{key:"getCenter",value:function(){var l=this.transform.center,g=l.lng,T=l.lat;return new F0(g,T)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(l,g){return this.jumpTo({center:l},g)}},{key:"setPitch",value:function(l,g){return this.jumpTo({pitch:l},g),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(l,g,T){return this.easeTo(OC({center:l},g),T)}},{key:"panBy",value:function(l,g,T){return l=$m.convert(l).mult(-1),this.panTo(this.transform.center,bA({offset:l},g||{}),T)}},{key:"zoomOut",value:function(l,g){return this.zoomTo(this.getZoom()-1,l,g),this}},{key:"setBearing",value:function(l,g){return this.jumpTo({bearing:l},g),this}},{key:"setZoom",value:function(l,g){return this.jumpTo({zoom:l},g),this}},{key:"zoomIn",value:function(l,g){return this.zoomTo(this.getZoom()+1,l,g),this}},{key:"zoomTo",value:function(l,g,T){return this.easeTo(OC({zoom:l},g),T)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(l,g){return this.jumpTo({padding:l},g),this}},{key:"rotateTo",value:function(l,g,T){return this.easeTo(OC({bearing:l},g),T)}},{key:"resetNorth",value:function(l,g){return this.rotateTo(0,OC({duration:1e3},l),g),this}},{key:"resetNorthPitch",value:function(l,g){return this.easeTo(OC({bearing:0,pitch:0,duration:1e3},l),g),this}},{key:"fitBounds",value:function(l,g,T){return this.fitInternal(this.cameraForBounds(l,g),g,T)}},{key:"cameraForBounds",value:function(l,g){return l=zI.convert(l),this.cameraForBoxAndBearing(l.getNorthWest(),l.getSouthEast(),0,g)}},{key:"snapToNorth",value:function(l,g){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;this.stop();var T=this.transform,B=!1,G=!1,ne=!1;return l.zoom!==void 0&&T.zoom!==+l.zoom&&(B=!0,T.zoom=+l.zoom),l.center!==void 0&&(T.center=F0.convert(l.center)),l.bearing!==void 0&&T.bearing!==+l.bearing&&(G=!0,T.bearing=+l.bearing),l.pitch!==void 0&&T.pitch!==+l.pitch&&(ne=!0,T.pitch=+l.pitch),l.padding!==void 0&&!T.isPaddingEqual(l.padding)&&(T.padding=l.padding),this.emit("movestart",new _0("movestart",g)),this.emit("move",new _0("move",g)),B&&(this.emit("zoomstart",new _0("zoomstart",g)),this.emit("zoom",new _0("zoom",g)),this.emit("zoomend",new _0("zoomend",g))),G&&(this.emit("rotatestart",new _0("rotatestart",g)),this.emit("rotate",new _0("rotate",g)),this.emit("rotateend",new _0("rotateend",g))),ne&&(this.emit("pitchstart",new _0("pitchstart",g)),this.emit("pitch",new _0("pitch",g)),this.emit("pitchend",new _0("pitchend",g))),this.emit("moveend",new _0("moveend",g))}},{key:"easeTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;g=OC({offset:[0,0],duration:500,easing:BI},g),(g.animate===!1||!g.essential&&YF())&&(g.duration=0);var B=this.transform,G=this.getZoom(),ne=this.getBearing(),Me=this.getPitch(),Ge=this.getPadding(),Et=g.zoom?+g.zoom:G,Ot=g.bearing?this.normalizeBearing(g.bearing,ne):ne,Pn=g.pitch?+g.pitch:Me,Mn=g.padding?g.padding:B.padding,Ir=$m.convert(g.offset),Ti=B.centerPoint.add(Ir),Ko=B.pointLocation(Ti),Zo=F0.convert(g.center||Ko);this.normalizeCenter(Zo);var Qs=B.project(Ko),ga=B.project(Zo).sub(Qs),Ma=B.zoomScale(Et-G),ll,Wl;g.around&&(ll=F0.convert(g.around),Wl=B.locationPoint(ll));var jl={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||Et!==G,this.rotating=this.rotating||ne!==Ot,this.pitching=this.pitching||Pn!==Me,this.padding=!B.isPaddingEqual(Mn),this.easeId=g.easeId,this.prepareEase(T,g.noMoveStart,jl),clearTimeout(this.easeEndTimeoutID),this.ease(function(ju){if(l.zooming&&(B.zoom=Kb(G,Et,ju)),l.rotating&&l.rotateEnabled&&(B.bearing=Kb(ne,Ot,ju)),l.pitching&&l.pitchEnabled&&(B.pitch=Kb(Me,Pn,ju)),l.padding&&(B.interpolatePadding(Ge,Mn,ju),Ti=B.centerPoint.add(Ir)),ll)B.setLocationAtPoint(ll,Wl);else{var Pu=B.zoomScale(B.zoom-G),Vc=Et>G?Math.min(2,Ma):Math.max(.5,Ma),dd=Math.pow(Vc,1-ju),Kd=B.unproject(Qs.add(ga.mult(ju*dd)).mult(Pu));B.setLocationAtPoint(B.renderWorldCopies?Kd.wrap():Kd,Ti)}l.fireMoveEvents(T)},function(ju){l.afterEase(T,ju)},g),this}},{key:"flyTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;if(!g.essential&&YF()){var B=xV(g,["center","zoom","bearing","pitch","around"]);return this.jumpTo(B,T)}this.stop(),g=OC({offset:[0,0],speed:1.2,curve:1.42,easing:BI},g);var G=this.transform,ne=this.getZoom(),Me=this.getBearing(),Ge=this.getPitch(),Et=this.getPadding(),Ot=g.zoom?Fw(+g.zoom,G.minZoom,G.maxZoom):ne,Pn=g.bearing?this.normalizeBearing(g.bearing,Me):Me,Mn=g.pitch?+g.pitch:Ge,Ir="padding"in g?g.padding:G.padding,Ti=G.zoomScale(Ot-ne),Ko=$m.convert(g.offset),Zo=G.centerPoint.add(Ko),Qs=G.pointLocation(Zo),ga=F0.convert(g.center||Qs);this.normalizeCenter(ga);var Ma=G.project(Qs),ll=G.project(ga).sub(Ma),Wl=g.curve,jl=Math.max(G.width,G.height),ju=jl/Ti,Pu=ll.mag();if("minZoom"in g){var Vc=Fw(Math.min(g.minZoom,ne,Ot),G.minZoom,G.maxZoom),dd=jl/G.zoomScale(Vc-ne);Wl=Math.sqrt(dd/Pu*2)}var Kd=Wl*Wl;function Hp(V0){var a1=(ju*ju-jl*jl+(V0?-1:1)*Kd*Kd*Pu*Pu)/(2*(V0?ju:jl)*Kd*Pu);return Math.log(Math.sqrt(a1*a1+1)-a1)}function gm(V0){return(Math.exp(V0)-Math.exp(-V0))/2}function Fg(V0){return(Math.exp(V0)+Math.exp(-V0))/2}function mm(V0){return gm(V0)/Fg(V0)}var b0=Hp(0),py=function(a1){return Fg(b0)/Fg(b0+Wl*a1)},MA=function(a1){return jl*((Fg(b0)*mm(b0+Wl*a1)-gm(b0))/Kd)/Pu},WC=(Hp(1)-b0)/Wl;if(Math.abs(Pu)<1e-6||!isFinite(WC)){if(Math.abs(jl-ju)<1e-6)return this.easeTo(g,T);var iT=jug.maxDuration&&(g.duration=0),this.zooming=!0,this.rotating=Me!==Pn,this.pitching=Mn!==Ge,this.padding=!G.isPaddingEqual(Ir),this.prepareEase(T,!1),this.ease(function(V0){var a1=V0*WC,vL=1/py(a1);G.zoom=V0===1?Ot:ne+G.scaleZoom(vL),l.rotating&&(G.bearing=Kb(Me,Pn,V0)),l.pitching&&(G.pitch=Kb(Ge,Mn,V0)),l.padding&&(G.interpolatePadding(Et,Ir,V0),Zo=G.centerPoint.add(Ko));var yL=V0===1?ga:G.unproject(Ma.add(ll.mult(MA(a1))).mult(vL));G.setLocationAtPoint(G.renderWorldCopies?yL.wrap():yL,Zo),l.fireMoveEvents(T)},function(){return l.afterEase(T)},g),this}},{key:"fitScreenCoordinates",value:function(l,g,T,B,G){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation($m.convert(l)),this.transform.pointLocation($m.convert(g)),T,B),B,G)}},{key:"stop",value:function(l,g){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var T=this.onEaseEnd;delete this.onEaseEnd,T.call(this,g)}return this}},{key:"normalizeBearing",value:function(l,g){l=z5(l,-180,180);var T=Math.abs(l-g);return Math.abs(l-360-g)180?-360:T<-180?360:0}}},{key:"fireMoveEvents",value:function(l){this.emit("move",new _0("move",l)),this.zooming&&this.emit("zoom",new _0("zoom",l)),this.rotating&&this.emit("rotate",new _0("rotate",l)),this.pitching&&this.emit("rotate",new _0("pitch",l))}},{key:"prepareEase",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!g&&!T.moving&&this.emit("movestart",new _0("movestart",l)),this.zooming&&!T.zooming&&this.emit("zoomstart",new _0("zoomstart",l)),this.rotating&&!T.rotating&&this.emit("rotatestart",new _0("rotatestart",l)),this.pitching&&!T.pitching&&this.emit("pitchstart",new _0("pitchstart",l))}},{key:"afterEase",value:function(l,g){if(!(this.easeId&&g&&this.easeId===g)){delete this.easeId;var T=this.zooming,B=this.rotating,G=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,T&&this.emit("zoomend",new _0("zoomend",l)),B&&this.emit("rotateend",new _0("rotateend",l)),G&&this.emit("pitchend",new _0("pitchend",l)),this.emit("moveend",new _0("moveend",l))}}},{key:"ease",value:function(l,g,T){T.animate===!1||T.duration===0?(l(1),g()):(this.easeStart=q2(),this.easeOptions=T,this.onEaseFrame=l,this.onEaseEnd=g,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(l,g,T,B){var G={top:0,bottom:0,right:0,left:0};if(B=OC({padding:G,offset:[0,0],maxZoom:this.transform.maxZoom},B),typeof B.padding=="number"){var ne=B.padding;B.padding={top:ne,bottom:ne,right:ne,left:ne}}B.padding=OC(G,B.padding);var Me=this.transform,Ge=Me.padding,Et=Me.project(F0.convert(l)),Ot=Me.project(F0.convert(g)),Pn=Et.rotate(-T*Math.PI/180),Mn=Ot.rotate(-T*Math.PI/180),Ir=new $m(Math.max(Pn.x,Mn.x),Math.max(Pn.y,Mn.y)),Ti=new $m(Math.min(Pn.x,Mn.x),Math.min(Pn.y,Mn.y)),Ko=Ir.sub(Ti),Zo=(Me.width-(Ge.left+Ge.right+B.padding.left+B.padding.right))/Ko.x,Qs=(Me.height-(Ge.top+Ge.bottom+B.padding.top+B.padding.bottom))/Ko.y;if(!(Qs<0||Zo<0)){var ga=Math.min(Me.scaleZoom(Me.scale*Math.min(Zo,Qs)),B.maxZoom),Ma=$m.convert(B.offset),ll=(B.padding.left-B.padding.right)/2,Wl=(B.padding.top-B.padding.bottom)/2,jl=new $m(Ma.x+ll,Ma.y+Wl),ju=jl.mult(Me.scale/Me.zoomScale(ga)),Pu=Me.unproject(Et.add(Ot).div(2).sub(ju));return{center:Pu,zoom:ga,bearing:T}}}},{key:"fitInternal",value:function(l,g,T){return l?(g=OC(l,g),delete g.padding,g.linear?this.easeTo(g,T):this.flyTo(g,T)):this}}]),u}(yf.EventEmitter);function PV(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=YX(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function YX(a,p){if(a){if(typeof a=="string")return kV(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return kV(a,p)}}function kV(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&WI?a.addEventListener(p,u,c):a.addEventListener(p,u,c.capture)},Xb.removeEventListener=function(a,p,u){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&WI?a.removeEventListener(p,u,c):a.removeEventListener(p,u,c.capture)};var u7=function a(p){p.preventDefault(),p.stopPropagation(),window.removeEventListener("click",a,!0)};Xb.suppressClick=function(){window.addEventListener("click",u7,!0),setTimeout(function(){window.removeEventListener("click",u7,!0)},0)},Xb.mousePos=function(a,p){var u=a.getBoundingClientRect();return new $m(p.clientX-u.left-a.clientLeft,p.clientY-u.top-a.clientTop)},Xb.touchPos=function(a,p){var u=a.getBoundingClientRect(),c=[],l=PV(p),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;c.push(new $m(T.clientX-u.left-a.clientLeft,T.clientY-u.top-a.clientTop))}}catch(B){l.e(B)}finally{l.f()}return c},Xb.mouseButton=function(a){return a.button},Xb.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};function RV(a){var p=NV();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function NV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var FV=Fa.merge,$w=function(a){(0,ft.Z)(u,a);var p=RV(u);function u(c,l,g){var T,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,bt.Z)(this,u);var G=Ly.mousePos(l.getCanvasContainer(),g),ne=l.unproject(G);return T=p.call(this,c,FV({point:G,lngLat:ne,originalEvent:g},B)),T.defaultPrevented=!1,T.target=l,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function c7(a){var p=BV();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function BV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var UP=function(a){(0,ft.Z)(u,a);var p=c7(u);function u(c,l,g){var T;(0,bt.Z)(this,u);var B=c==="touchend"?g.changedTouches:g.touches,G=Ly.touchPos(l.getCanvasContainer(),B),ne=G.map(function(Et){return l.unproject(Et)}),Me=G.reduce(function(Et,Ot,Pn,Mn){return Et.add(Ot.div(Mn.length))},new $m(0,0)),Ge=l.unproject(Me);return T=p.call(this,c,{points:G,point:Me,lngLats:ne,lngLat:Ge,originalEvent:g}),T.defaultPrevented=!1,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function Ww(a){var p=HP();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function HP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var d7=function(a){(0,ft.Z)(u,a);var p=Ww(u);function u(c,l,g){var T;return(0,bt.Z)(this,u),T=p.call(this,c,{originalEvent:g}),T.defaultPrevented=!1,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0),VI=function(){function a(p){(0,bt.Z)(this,a),this.map=p}return(0,He.Z)(a,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new $w("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(u){this.delayContextMenu?this.contextMenuEvent=u:this.map.emit(u.type,new $w(u.type,this.map,u)),this.map.listeners("contextmenu")&&u.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}}]),a}(),zV=function(){function a(p,u){(0,bt.Z)(this,a),this.map=p,this.el=p.getCanvasContainer(),this.container=p.getContainer(),this.clickTolerance=u.clickTolerance||1}return(0,He.Z)(a,[{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(u,c){this.isEnabled()&&u.shiftKey&&u.button===0&&(Ly.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(u,c){if(this.active){var l=c;if(!(this.lastPos.equals(l)||!this.box&&l.dist(this.startPos)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function UV(a,p){if(a){if(typeof a=="string")return Z5(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Z5(a,p)}}function Z5(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&c-u[0].time>l;)u.shift()}},{key:"onMoveEnd",value:function(u){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new $m(0,0),pinchAround:void 0,around:void 0},l=VV(this.inertiaBuffer),g;try{for(l.s();!(g=l.n()).done;){var T=g.value.settings;c.zoom+=T.zoomDelta||0,c.bearing+=T.bearingDelta||0,c.pitch+=T.pitchDelta||0,T.panDelta&&c.pan._add(T.panDelta),T.around&&(c.around=T.around),T.pinchAround&&(c.pinchAround=T.pinchAround)}}catch(Mn){l.e(Mn)}finally{l.f()}var B=this.inertiaBuffer[this.inertiaBuffer.length-1],G=B.time-this.inertiaBuffer[0].time,ne={};if(c.pan.mag()){var Me=GP(c.pan.mag(),G,XE({},HV,u||{}));ne.offset=c.pan.mult(Me.amount/c.pan.mag()),ne.center=this.map.transform.center,GI(ne,Me)}if(c.zoom){var Ge=GP(c.zoom,G,ZV);ne.zoom=this.map.transform.zoom+Ge.amount,GI(ne,Ge)}if(c.bearing){var Et=GP(c.bearing,G,ZI);ne.bearing=this.map.transform.bearing+Fw(Et.amount,-179,179),GI(ne,Et)}if(c.pitch){var Ot=GP(c.pitch,G,GV);ne.pitch=this.map.transform.pitch+Ot.amount,GI(ne,Ot)}if(ne.zoom||ne.bearing){var Pn=c.pinchAround===void 0?c.around:c.pinchAround;ne.around=Pn?this.map.unproject(Pn):this.map.getCenter()}return this.clear(),XE(ne,{noMoveStart:!0})}}}]),a}();function GI(a,p){(!a.duration||a.duration=this.clickTolerance||this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"dblclick",value:function(u){return this.firePreventable(new $w(u.type,this.map,u))}},{key:"mouseover",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"mouseout",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"touchstart",value:function(u){return this.firePreventable(new UP(u.type,this.map,u))}},{key:"touchmove",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"touchend",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"touchcancel",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"firePreventable",value:function(u){if(this.map.emit(u.type,u),u.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}}]),a}(),KI,KP=0,Q2=2,wA=(KI={},(0,Cn.Z)(KI,KP,1),(0,Cn.Z)(KI,Q2,2),KI);function f7(a,p){var u=wA[p];return a.buttons===void 0||(a.buttons&u)!==u}var Yb=function(){function a(p){(0,bt.Z)(this,a),this.reset(),this.clickTolerance=p.clickTolerance||1}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(u,c){if(!this.lastPoint){var l=Ly.mouseButton(u);this.correctButton(u,l)&&(this.lastPoint=c,this.eventButton=l)}}},{key:"mousemoveWindow",value:function(u,c){var l=this.lastPoint;if(l){if(u.preventDefault(),f7(u,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(l)p7?c.wheelZoomRate:c.defaultZoomRate,T=eU/(1+Math.exp(-Math.abs(c.delta*g)));c.delta<0&&T!==0&&(T=1/T);var B=typeof c.targetZoom=="number"?l.zoomScale(c.targetZoom):l.scale;c.targetZoom=Math.min(l.maxZoom,Math.max(l.minZoom,l.scaleZoom(B*T))),c.type==="wheel"&&(c.startZoom=l.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var G=typeof c.targetZoom=="number"?c.targetZoom:l.zoom,ne=c.startZoom,Me=c.easing,Ge=!1,Et;if(c.type==="wheel"&&ne&&Me){var Ot=Math.min((q2()-c.lastWheelEventTime)/200,1),Pn=Me(Ot);Et=Kb(ne,G,Pn),Ot<1?c.frameId||(c.frameId=!0):Ge=!0}else Et=G,Ge=!0;return c.active=!0,Ge&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ge,zoomDelta:Et-l.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=p,this.el=p.getCanvasContainer(),this.handler=u,this.delta=0,this.defaultZoomRate=q5,this.wheelZoomRate=YI}return(0,He.Z)(a,[{key:"setZoomRate",value:function(u){this.defaultZoomRate=u}},{key:"setWheelZoomRate",value:function(u){this.wheelZoomRate=u}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(u){this.isEnabled()||(this.enabled=!0,this.aroundCenter=u&&u.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(u){if(this.isEnabled()){var c=u.deltaMode===window.WheelEvent.DOM_DELTA_LINE?u.deltaY*40:u.deltaY,l=q2(),g=l-(this.lastWheelEventTime||0);this.lastWheelEventTime=l,c!==0&&c%p7===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":g>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,u)):this.type||(this.type=Math.abs(g*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),u.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=u,this.delta-=c,this.active||this.start(u)),u.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(u){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(u)}},{key:"start",value:function(u){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 c=Ly.mousePos(this.el,u);this.around=F0.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(u){var c=BI;if(this.prevEase){var l=this.prevEase,g=(q2()-l.start)/l.duration,T=l.easing(g+.01)-l.easing(g),B=.27/Math.sqrt(T*T+1e-4)*.01,G=Math.sqrt(.27*.27-B*B);c=$5(B,G,.25,1)}return this.prevEase={start:q2(),duration:u,easing:c},c}}]),a}(),tU=qI,nU=function(){function a(p,u){(0,bt.Z)(this,a),this.clickZoom=p,this.tapZoom=u}return(0,He.Z)(a,[{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()}}]),a}(),v_=function(){function a(p,u,c){(0,bt.Z)(this,a),this.el=p,this.mousePan=u,this.touchPan=c}return(0,He.Z)(a,[{key:"enable",value:function(u){this.inertiaOptions=u||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),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()}}]),a}(),qX=function(){function a(p,u,c){(0,bt.Z)(this,a),this.pitchWithRotate=p.pitchWithRotate,this.mouseRotate=u,this.mousePitch=c}return(0,He.Z)(a,[{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()}}]),a}(),rU=function(){function a(p,u,c,l){(0,bt.Z)(this,a),this.el=p,this.touchZoom=u,this.touchRotate=c,this.tapDragZoom=l,this.rotationDisabled=!1,this.enabled=!0}return(0,He.Z)(a,[{key:"enable",value:function(u){this.touchZoom.enable(u),this.rotationDisabled||this.touchRotate.enable(u),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),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()}}]),a}();function XP(a,p){for(var u={},c=0;c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function J5(a,p){if(a){if(typeof a=="string")return g7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return g7(a,p)}}function g7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=u.timeStamp),l.length===this.numTouches&&(this.centroid=iU(c),this.touches=XP(l,c)))}},{key:"touchmove",value:function(u,c,l){if(!(this.aborted||!this.centroid)){var g=XP(l,c);for(var T in this.touches)if(this.touches[T]){var B=this.touches[T],G=g[T];(!G||G.dist(B)>JI)&&(this.aborted=!0)}}}},{key:"touchend",value:function(u,c,l){if((!this.centroid||u.timeStamp-this.startTime>eR)&&(this.aborted=!0),l.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}}}]),a}(),QI=function(){function a(p){(0,bt.Z)(this,a),this.singleTap=new qP(p),this.numTaps=p.numTaps,this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(u,c,l){this.singleTap.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.singleTap.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this.singleTap.touchend(u,c,l);if(g){var T=u.timeStamp-this.lastTimeQ5&&this.reset(),this.tapTime?l.length>0&&(this.swipePoint=c[0],this.swipeTouch=l[0].identifier):this.tap.touchstart(u,c,l))}},{key:"touchmove",value:function(u,c,l){if(!this.tapTime)this.tap.touchmove(u,c,l);else if(this.swipePoint){if(l[0].identifier!==this.swipeTouch)return;var g=c[0],T=g.y-this.swipePoint.y;return this.swipePoint=g,u.preventDefault(),this.active=!0,{zoomDelta:T/128}}}},{key:"touchend",value:function(u,c,l){if(this.tapTime)this.swipePoint&&l.length===0&&this.reset();else{var g=this.tap.touchend(u,c,l);g&&(this.tapTime=u.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}}]),a}(),v7=function(){function a(){(0,bt.Z)(this,a),this.zoomIn=new QI({numTouches:1,numTaps:2}),this.zoomOut=new QI({numTouches:2,numTaps:1}),this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(u,c,l){this.zoomIn.touchstart(u,c,l),this.zoomOut.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.zoomIn.touchmove(u,c,l),this.zoomOut.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this,T=this.zoomIn.touchend(u,c,l),B=this.zoomOut.touchend(u,c,l);if(T)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()+1,around:ne.unproject(T)},{originalEvent:u})}};if(B)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()-1,around:ne.unproject(B)},{originalEvent:u})}}}},{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}}]),a}(),oU=function(){function a(p){(0,bt.Z)(this,a),this.minTouches=1,this.clickTolerance=p.clickTolerance||1,this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new $m(0,0)}},{key:"touchstart",value:function(u,c,l){return this.calculateTransform(u,c,l)}},{key:"touchmove",value:function(u,c,l){if(this.active)return u.preventDefault(),this.calculateTransform(u,c,l)}},{key:"touchend",value:function(u,c,l){this.calculateTransform(u,c,l),this.active&&l.length0&&(this.active=!0);var g=XP(l,c),T=new $m(0,0),B=new $m(0,0),G=0;for(var ne in g)if(g[ne]){var Me=g[ne],Ge=this.touches[ne];Ge&&(T._add(Me),B._add(Me.sub(Ge)),G++,g[ne]=Me)}if(this.touches=g,!(GMath.abs(a.x)}var aU=100,lU=function(a){(0,ft.Z)(u,a);var p=nR(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Oa((0,vt.Z)(u.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(l){this.lastPoints=l,rR(l[0].sub(l[1]))&&(this.valid=!1)}},{key:"move",value:function(l,g,T){var B=l[0].sub(this.lastPoints[0]),G=l[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(B,G,T.timeStamp),!!this.valid){this.lastPoints=l,this.active=!0;var ne=(B.y+G.y)/2,Me=-.5;return{pitchDelta:ne*Me}}}},{key:"gestureBeginsVertically",value:function(l,g,T){if(this.valid!==void 0)return this.valid;var B=2,G=l.mag()>=B,ne=g.mag()>=B;if(!(!G&&!ne)){if(!G||!ne)return this.firstMove===void 0&&(this.firstMove=T),T-this.firstMove0==g.y>0;return rR(l)&&rR(g)&&Me}}}]),u}(tR);function iR(a){var p=y7();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function y7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var uU=25;function oR(a,p){return a.angleWith(p)*180/Math.PI}var eS=function(a){(0,ft.Z)(u,a);var p=iR(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Oa((0,vt.Z)(u.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(l){this.startVector=this.vector=l[0].sub(l[1]),this.minDiameter=l[0].dist(l[1])}},{key:"move",value:function(l,g){var T=this.vector;if(this.vector=l[0].sub(l[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:oR(this.vector,T),pinchAround:g}}},{key:"isBelowThreshold",value:function(l){this.minDiameter=Math.min(this.minDiameter,l.mag());var g=Math.PI*this.minDiameter,T=uU/g*360,B=oR(l,this.startVector);return Math.abs(B)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function _7(a,p){if(a){if(typeof a=="string")return b7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return b7(a,p)}}function b7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ucR}).reduce(function(G,ne){return G+(ne-cR)/cR},0),B=T/(c+T)*100;return{loadTime:p,fullLoadTime:u,fps:g,percentDroppedFrames:B}}};function fU(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=nk(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ne){throw ne},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ne=u.next();return g=ne.done,ne},e:function(ne){T=!0,B=ne},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function nk(a,p){if(a){if(typeof a=="string")return pU(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return pU(a,p)}}function pU(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var l=fU(c),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;if(!T.cancelled&&(T.callback(u),this.cleared))break}}catch(B){l.e(B)}finally{l.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),a}(),gU=JX;function QX(a){var p=eY();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function eY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function x7(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}x7(`.l7-map { +`);var V9=[108.92361,34.54083];window.forceWebGL=!0;var W9="f59bcf249433f8b05caaee19f349b3d7",j9="2.0",TQ=!1,AQ=null,Y6=(z9=(0,os.b2)(),z9(U9=function(o){(0,ut.Z)(l,o);var d=jD(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;Em.getLng()||M.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.map.customCoords.lngLatToCoord(u),ne=yp();return C0(ne,ne,nm(Z[0],Z[1],m)),Jd(ne,ne,nm(M[0],M[1],M[2])),mm(ne,ne,E[0]),u0(ne,ne,E[1]),c0(ne,ne,E[2]),ne}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo,Ds,ta,aa,Ua,pl,ru,Iu,Vu;return Wi().wrap(function(yh){for(;;)switch(yh.prev=yh.next){case 0:if(E=this.config,M=E.id,Z=E.style,ne=Z===void 0?"light":Z,Ce=E.minZoom,Fe=Ce===void 0?0:Ce,bt=E.maxZoom,Bt=bt===void 0?18:bt,Cn=E.token,An=Cn===void 0?W9:Cn,Pr=E.mapInstance,ti=E.plugin,ho=ti===void 0?[]:ti,bo=E.version,Ds=bo===void 0?j9:bo,ta=(0,dm.Z)(E,IH),this.viewport=new XC,window.AMap||Pr){yh.next=6;break}return ho.push("Map3D"),yh.next=6,C9().load({key:An,version:j9,plugins:ho});case 6:Pr?(this.map=Pr,this.$mapContainer=this.map.getContainer(),Ua=this.map.getCenter(),(aa=this.map.customCoords)===null||aa===void 0||aa.setCenter([Ua.lng,Ua.lat]),this.setCustomCoordCenter([Ua.lng,Ua.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(M),ru=(0,Oe.Z)({mapStyle:this.getMapStyleValue(ne),zooms:[Fe,Bt],viewMode:"3D"},ta),ru.zoom&&(ru.zoom+=1),An===W9&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),Iu=new AMap.Map(this.$mapContainer,ru),this.map=Iu,Vu=Iu.getCenter(),(pl=this.map.customCoords)===null||pl===void 0||pl.setCenter([Vu.lng,Vu.lat]),this.setCustomCoordCenter([Vu.lng,Vu.lat]),Iu.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return yh.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(u){this.cameraChangedCallback=u}},{key:"initViewPort",value:function(){var u,m=(u=this.map.customCoords)===null||u===void 0?void 0:u.getCameraParams(),E=m.fov,M=m.near,Z=m.far,ne=m.aspect,Ce=m.position,Fe=m.lookAt,bt=m.up;this.emit("mapchange");var Bt=this.map.customCoords.getCenter(),Cn=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ne,far:Z,fov:E,cameraPosition:Ce,lookAt:Fe,near:M,up:bt,zoom:Cn-1,center:Bt,offsetOrigin:[Ce[0],Ce[1]]}),this.coordinateSystemService.setCoordinateSystem(Oh.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(u,m){var E=[0,0];return E[0]=u[0]-m[0],E[1]=u[1]-m[1],E}}]),l}(LP))||U9);function LH(o){var d=MH();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function MH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var Z9=function(o){(0,ut.Z)(l,o);var d=LH(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return Y6}}]),l}(V2),RH={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"}}]}},Ww,hE,wA,H9,RP,G9,ZD,K9,X9,$5,V5,kP={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},Y9=12,Kv=(Ww=(0,os.b2)(),hE=(0,os.f3)(Ms.MapConfig),wA=(0,os.f3)(Ms.IGlobalConfigService),H9=(0,os.f3)(Ms.ICoordinateSystemService),RP=(0,os.f3)(Ms.IEventEmitter),Ww(G9=(ZD=function(){function o(){var d=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"version","DEFAUlTMAP"),(0,Ln.Z)(this,"simpleMapCoord",new L9),(0,Ln.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Fc(this,"config",K9,this),Fc(this,"configService",X9,this),Fc(this,"coordinateSystemService",$5,this),Fc(this,"eventEmitter",V5,this),(0,Ln.Z)(this,"handleCameraChanged",function(l){var c=d.map.getCenter(),u=c.lat,m=c.lng;d.emit("mapchange"),d.viewport.syncWithMapCamera({bearing:d.map.getBearing(),center:[m,u],viewportHeight:d.map.transform.height,pitch:d.map.getPitch(),viewportWidth:d.map.transform.width,zoom:d.map.getZoom(),cameraHeight:0}),d.updateCoordinateSystemService(),d.cameraChangedCallback(d.viewport)})}return(0,ot.Z)(o,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getCanvasContainer();this.markerContainer=As("div","l7-marker-container",l),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(l,c){x_.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(kP[l]||l,c)}},{key:"off",value:function(l,c){this.map.off(kP[l]||l,c),this.eventEmitter.off(l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(l){return this.map.setZoom(l)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(l){this.map.setCenter(l)}},{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(l){this.map.setBearing(l)}},{key:"zoomIn",value:function(l,c){this.map.zoomIn(l,c)}},{key:"zoomOut",value:function(l,c){this.map.zoomOut(l,c)}},{key:"setPitch",value:function(l){return this.map.setPitch(l)}},{key:"panTo",value:function(l){this.map.panTo(l)}},{key:"panBy",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([l,c])}},{key:"fitBounds",value:function(l,c){this.map.fitBounds(l,c)}},{key:"setMaxZoom",value:function(l){this.map.setMaxZoom(l)}},{key:"setMinZoom",value:function(l){this.map.setMinZoom(l)}},{key:"setMapStatus",value:function(l){l.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),l.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),l.dragEnable===!1&&this.map.dragPan.disable(),l.dragEnable===!0&&this.map.dragPan.enable(),l.rotateEnable===!1&&this.map.dragRotate.disable(),l.dragEnable===!0&&this.map.dragRotate.enable(),l.keyboardEnable===!1&&this.map.keyboard.disable(),l.keyboardEnable===!0&&this.map.keyboard.enable(),l.zoomEnable===!1&&this.map.scrollZoom.disable(),l.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(l,c){this.map.flyTo({zoom:l,center:c})}},{key:"setMapStyle",value:function(l){this.map.setStyle(this.getMapStyleValue(l))}},{key:"meterToCoord",value:function(l,c){return 1}},{key:"pixelToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToPixel",value:function(l){return this.map.project(l)}},{key:"containerToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToContainer",value:function(l){return this.map.project(l)}},{key:"getMapStyle",value:function(){try{var l,c=(l=this.map.getStyle().sprite)!==null&&l!==void 0?l:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(u){return""}}},{key:"getMapStyleConfig",value:function(){return RH}},{key:"getMapStyleValue",value:function(l){var c;return(c=this.getMapStyleConfig()[l])!==null&&c!==void 0?c:l}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var c,u=arguments.length,m=new Array(u>1?u-1:0),E=1;E1?u-1:0),E=1;EY9&&c?this.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT)}}]),o}(),K9=kh(ZD.prototype,"config",[hE],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X9=kh(ZD.prototype,"configService",[wA],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$5=kh(ZD.prototype,"coordinateSystemService",[H9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V5=kh(ZD.prototype,"eventEmitter",[RP],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ZD))||G9);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var px=function(o){return o.notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed",o}(px||{}),j2={key:"",BMapGL:{version:"1.0"}},jw={BMapGL:px.notload},q6=[],q9=function(d){if(typeof d=="function"){if(jw.BMapGL===px.loaded){d(window.BMapGL);return}q6.push(d)}},kH=function(d){return new Promise(function(l,c){if(jw.BMapGL===px.failed)c("");else if(jw.BMapGL===px.notload){var u=d.key,m=d.version;if(!u){c("\u8BF7\u586B\u5199key");return}j2.key=u,j2.BMapGL.version=m||j2.BMapGL.version,jw.BMapGL=px.loading;var E=document.body||document.head;window.___onBMapGLAPILoaded=function(Z){if(delete window.___onBMapGLAPILoaded,Z)jw.BMapGL=px.failed,c(Z);else for(jw.BMapGL=px.loaded;q6.length;)q6.splice(0,1)[0](window.BMapGL)};var M=document.createElement("script");M.type="text/javascript",M.src="https://api.map.baidu.com/api?type=webgl&v=".concat(j2.BMapGL.version,"&ak=").concat(j2.key,"&callback=___onBMapGLAPILoaded"),M.onerror=function(Z){jw.BMapGL=px.failed,c(Z)},E.appendChild(M),q9(l)}else if(jw.BMapGL===px.loaded){if(d.key&&d.key!==j2.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==j2.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}l(window.BMapGL)}else{if(d.key&&d.key!==j2.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==j2.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}q9(l)}})},OH=function(){delete window.BMapGL,j2={key:"",BMapGL:{version:"1.0"}},jw={BMapGL:px.notload}},W5={load:kH,reset:OH},NH=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function FH(o){var d=BH();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function BH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function J9(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}J9(`.bmap-contianer--hide-logo .anchorBL > img[src*='api.map.baidu.com/images/logo_hd.png'] { + display: none; +} +`);var OP={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},j5="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",Q9="1.0",zH=function(o){(0,ut.Z)(l,o);var d=FH(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return C0(ne,ne,nm(Z[0],Z[1],m)),Jd(ne,ne,nm(M[0],M[1],M[2])),mm(ne,ne,E[0]),u0(ne,ne,E[1]),c0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMap()._webglPainter._canvas,E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&Ga(u,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(u){var m=u.style,E=u.pitch,M=E===void 0?0:E,Z=u.rotation,ne=Z===void 0?0:Z,Ce=u.logoVisible,Fe=Ce===void 0?!0:Ce;m&&this.setMapStyle(m),M&&this.setPitch(M),ne&&this.setRotation(ne),Fe===!1&&this.hideLogo()}}]),l}(Kv);function DQ(o){var d=UH();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function UH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var J6=function(o){(0,ut.Z)(l,o);var d=DQ(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return zH}}]),l}(V2),gx=_(99874),ez=_.n(gx);function $H(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=VH(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function VH(o,d){if(o){if(typeof o=="string")return tz(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return tz(o,d)}}function tz(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l1?d-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,ot.Z)(o,[{key:"wrap",value:function(){return new o(NP(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(l){var c=Math.PI/180,u=this.lat*c,m=l.lat*c,E=Math.sin(u)*Math.sin(m)+Math.cos(u)*Math.cos(m)*Math.cos((l.lng-this.lng)*c),M=eN*Math.acos(Math.min(E,1));return M}}],[{key:"convert",value:function(l){if(l instanceof o)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new o(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&(0,ri.Z)(l)==="object"&&l!==null){var c="lng"in l?l.lng:l.lon;return new o(Number(c),Number(l.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),o}(),FP=function(){function o(d,l){(0,xt.Z)(this,o),d&&(l?this.setSouthWest(d).setNorthEast(l):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))}return(0,ot.Z)(o,[{key:"setNorthEast",value:function(l){return this.ne=l instanceof Iv?new Iv(l.lng,l.lat):Iv.convert(l),this}},{key:"setSouthWest",value:function(l){return this.sw=l instanceof Iv?new Iv(l.lng,l.lat):Iv.convert(l),this}},{key:"extend",value:function(l){var c=this.sw,u=this.ne,m,E;if(l instanceof Iv)m=l,E=l;else if(l instanceof o){if(m=l.sw,E=l.ne,!m||!E)return this}else{if(Array.isArray(l))if(l.length===4||l.every(Array.isArray)){var M=l;return this.extend(o.convert(M))}else{var Z=l;return this.extend(Iv.convert(Z))}return this}return!c&&!u?(this.sw=new Iv(m.lng,m.lat),this.ne=new Iv(E.lng,E.lat)):(c.lng=Math.min(m.lng,c.lng),c.lat=Math.min(m.lat,c.lat),u.lng=Math.max(E.lng,u.lng),u.lat=Math.max(E.lat,u.lat)),this}},{key:"getCenter",value:function(){return new Iv((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 Iv(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new Iv(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(l){var c=Iv.convert(l),u=c.lng,m=c.lat,E=this.sw.lat<=m&&m<=this.ne.lat,M=this.sw.lng<=u&&u<=this.ne.lng;return this.sw.lng>this.ne.lng&&(M=this.sw.lng>=u&&u>=this.ne.lng),E&&M}}],[{key:"convert",value:function(l){return l instanceof o?l:new o(l)}}]),o}(),D0=function(){function o(d,l){(0,xt.Z)(this,o),this.x=d,this.y=l}return(0,ot.Z)(o,[{key:"clone",value:function(){return new o(this.x,this.y)}},{key:"_add",value:function(l){return this.x+=l.x,this.y+=l.y,this}},{key:"add",value:function(l){return this.clone()._add(l)}},{key:"_sub",value:function(l){return this.x-=l.x,this.y-=l.y,this}},{key:"sub",value:function(l){return this.clone()._sub(l)}},{key:"_multByPoint",value:function(l){return this.x*=l.x,this.y*=l.y,this}},{key:"multByPoint",value:function(l){return this.clone()._multByPoint(l)}},{key:"_divByPoint",value:function(l){return this.x/=l.x,this.y/=l.y,this}},{key:"divByPoint",value:function(l){return this.clone()._divByPoint(l)}},{key:"_mult",value:function(l){return this.x*=l,this.y*=l,this}},{key:"mult",value:function(l){return this.clone()._mult(l)}},{key:"_div",value:function(l){return this.x/=l,this.y/=l,this}},{key:"div",value:function(l){return this.clone()._div(l)}},{key:"_rotate",value:function(l){var c=Math.cos(l),u=Math.sin(l),m=c*this.x-u*this.y,E=u*this.x+c*this.y;return this.x=m,this.y=E,this}},{key:"rotate",value:function(l){return this.clone()._rotate(l)}},{key:"_rotateAround",value:function(l,c){var u=Math.cos(l),m=Math.sin(l),E=c.x+u*(this.x-c.x)-m*(this.y-c.y),M=c.y+m*(this.x-c.x)+u*(this.y-c.y);return this.x=E,this.y=M,this}},{key:"roateAround",value:function(l,c){return this.clone()._rotateAround(l,c)}},{key:"_matMult",value:function(l){var c=l[0]*this.x+l[1]*this.y,u=l[2]*this.x+l[3]*this.y;return this.x=c,this.y=u,this}},{key:"matMult",value:function(l){return this.clone()._matMult(l)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var l=this.y;return this.y=this.x,this.x=-l,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(l){return this.x===l.x&&this.y===l.y}},{key:"dist",value:function(l){return Math.sqrt(this.distSqr(l))}},{key:"distSqr",value:function(l){var c=l.x-this.x,u=l.y-this.y;return c*c+u*u}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(l){return Math.atan2(this.y-l.y,this.x-l.x)}},{key:"angleWith",value:function(l){return this.angleWithSep(l.x,l.y)}},{key:"angleWithSep",value:function(l,c){return Math.atan2(this.x*c-this.y*l,this.x*l+this.y*c)}}],[{key:"convert",value:function(l){return l instanceof o?l:Array.isArray(l)?new o(l[0],l[1]):l}}]),o}();function IQ(){var o=new Fo(4);return Fo!=Float32Array&&(o[1]=0,o[2]=0),o[0]=1,o[3]=1,o}function cie(o){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=o[0],d[1]=o[1],d[2]=o[2],d[3]=o[3],d}function hie(o,d){return o[0]=d[0],o[1]=d[1],o[2]=d[2],o[3]=d[3],o}function die(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o}function tN(o,d,l,c){var u=new glMatrix.ARRAY_TYPE(4);return u[0]=o,u[1]=d,u[2]=l,u[3]=c,u}function fie(o,d,l,c,u){return o[0]=d,o[1]=l,o[2]=c,o[3]=u,o}function pie(o,d){if(o===d){var l=d[1];o[1]=d[2],o[2]=l}else o[0]=d[0],o[1]=d[2],o[2]=d[1],o[3]=d[3];return o}function gie(o,d){var l=d[0],c=d[1],u=d[2],m=d[3],E=l*m-u*c;return E?(E=1/E,o[0]=m*E,o[1]=-c*E,o[2]=-u*E,o[3]=l*E,o):null}function mie(o,d){var l=d[0];return o[0]=d[3],o[1]=-d[1],o[2]=-d[2],o[3]=l,o}function fE(o){return o[0]*o[3]-o[2]*o[1]}function HH(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=l[0],Z=l[1],ne=l[2],Ce=l[3];return o[0]=c*M+m*Z,o[1]=u*M+E*Z,o[2]=c*ne+m*Ce,o[3]=u*ne+E*Ce,o}function nz(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=Math.sin(l),Z=Math.cos(l);return o[0]=c*Z+m*M,o[1]=u*Z+E*M,o[2]=c*-M+m*Z,o[3]=u*-M+E*Z,o}function PQ(o,d,l){var c=d[0],u=d[1],m=d[2],E=d[3],M=l[0],Z=l[1];return o[0]=c*M,o[1]=u*M,o[2]=m*Z,o[3]=E*Z,o}function LQ(o,d){var l=Math.sin(d),c=Math.cos(d);return o[0]=c,o[1]=l,o[2]=-l,o[3]=c,o}function MQ(o,d){return o[0]=d[0],o[1]=0,o[2]=0,o[3]=d[1],o}function RQ(o){return"mat2("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")"}function kQ(o){return Math.hypot(o[0],o[1],o[2],o[3])}function GH(o,d,l,c){return o[2]=c[2]/c[0],l[0]=c[0],l[1]=c[1],l[3]=c[3]-o[2]*l[1],[o,d,l]}function OQ(o,d,l){return o[0]=d[0]+l[0],o[1]=d[1]+l[1],o[2]=d[2]+l[2],o[3]=d[3]+l[3],o}function NQ(o,d,l){return o[0]=d[0]-l[0],o[1]=d[1]-l[1],o[2]=d[2]-l[2],o[3]=d[3]-l[3],o}function pE(o,d){return o[0]===d[0]&&o[1]===d[1]&&o[2]===d[2]&&o[3]===d[3]}function nN(o,d){var l=o[0],c=o[1],u=o[2],m=o[3],E=d[0],M=d[1],Z=d[2],ne=d[3];return Math.abs(l-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(Z))&&Math.abs(m-ne)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(ne))}function KH(o,d,l){return o[0]=d[0]*l,o[1]=d[1]*l,o[2]=d[2]*l,o[3]=d[3]*l,o}function G5(o,d,l,c){return o[0]=d[0]+l[0]*c,o[1]=d[1]+l[1]*c,o[2]=d[2]+l[2]*c,o[3]=d[3]+l[3]*c,o}var FQ=null,BQ=null,K5=function(){function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,xt.Z)(this,o),isNaN(d)||d<0||isNaN(l)||l<0||isNaN(c)||c<0||isNaN(u)||u<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=l,this.left=c,this.right=u}return(0,ot.Z)(o,[{key:"interpolate",value:function(l,c,u){return c.top!=null&&l.top!=null&&(this.top=Yx(l.top,c.top,u)),c.bottom!=null&&l.bottom!=null&&(this.bottom=Yx(l.bottom,c.bottom,u)),c.left!=null&&l.left!=null&&(this.left=Yx(l.left,c.left,u)),c.right!=null&&l.right!=null&&(this.right=Yx(l.right,c.right,u)),this}},{key:"getCenter",value:function(l,c){var u=Z2((this.left+l-this.right)/2,0,l),m=Z2((this.top+c-this.bottom)/2,0,c);return new D0(u,m)}},{key:"equals",value:function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}},{key:"clone",value:function(){return new o(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}}}]),o}(),rz=2*Math.PI*eN;function HD(o){return rz*Math.cos(o*Math.PI/180)}function X5(o){return(180+o)/360}function Y5(o){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360}function iz(o,d){return o/HD(d)}function oz(o){return o*360-180}function q5(o){var d=180-o*360;return 360/Math.PI*Math.atan(Math.exp(d*Math.PI/180))-90}function sz(o,d){return o*HD(q5(d))}function XH(o){return 1/Math.cos(o*Math.PI/180)}var SA=function(){function o(d,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,xt.Z)(this,o),this.x=+d,this.y=+l,this.z=+c}return(0,ot.Z)(o,[{key:"toLngLat",value:function(){return new Iv(oz(this.x),q5(this.y))}},{key:"toAltitude",value:function(){return sz(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/rz*XH(q5(this.y))}}],[{key:"fromLngLat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=Iv.convert(l);return new o(X5(u.lng),Y5(u.lat),iz(c,u.lat))}}]),o}();function BP(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=YH(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function YH(o,d){if(o){if(typeof o=="string")return rN(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return rN(o,d)}}function rN(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lc&&(ne=c-ti)}if(this.lngRange){var ho=Cn.x,bo=Ce.x/2;ho-bom&&(Z=m-bo)}(Z!==void 0||ne!==void 0)&&(this.center=this.unproject(new D0(Z!==void 0?Z:Cn.x,ne!==void 0?ne:Cn.y))),this.unmodified=Fe,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var l=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(l)*this.height;var u=Math.PI/2+this._pitch,m=this._fov*(.5+c.y/this.height),E=Math.sin(m)*this.cameraToCenterDistance/Math.sin(Z2(Math.PI-u-m,.01,Math.PI-.01)),M=this.point,Z=M.x,ne=M.y,Ce=Math.cos(Math.PI/2-this._pitch)*E+this.cameraToCenterDistance,Fe=Ce*1.01,bt=this.height/50,Bt=new Float64Array(16);Cr(Bt,this._fov,this.width/this.height,bt,Fe),Bt[8]=-c.x*2/this.width,Bt[9]=c.y*2/this.height,Jd(Bt,Bt,[1,-1,1]),C0(Bt,Bt,[0,0,-this.cameraToCenterDistance]),mm(Bt,Bt,this._pitch),c0(Bt,Bt,this.angle),C0(Bt,Bt,[-Z,-ne,0]),this.mercatorMatrix=Jd([],Bt,[this.worldSize,this.worldSize,this.worldSize]),Jd(Bt,Bt,[1,1,iz(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Bt,this.invProjMatrix=kv([],this.projMatrix);var Cn=this.width%2/2,An=this.height%2/2,Pr=Math.cos(this.angle),ti=Math.sin(this.angle),ho=Z-Math.round(Z)+Pr*Cn+ti*An,bo=ne-Math.round(ne)+Pr*An+ti*Cn,Ds=new Float64Array(Bt);if(C0(Ds,Ds,[ho>.5?ho-1:ho,bo>.5?bo-1:bo,0]),this.alignedProjMatrix=Ds,Bt=yp(),Jd(Bt,Bt,[this.width/2,-this.height/2,1]),C0(Bt,Bt,[1,-1,0]),this.labelPlaneMatrix=Bt,Bt=yp(),Jd(Bt,Bt,[1,-1,1]),C0(Bt,Bt,[-1,-1,0]),Jd(Bt,Bt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Bt,this.pixelMatrix=Af(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Bt=kv(new Float64Array(16),this.pixelMatrix),!Bt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Bt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),o}(),QH=Ns.merge,b0=(0,ot.Z)(function o(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,xt.Z)(this,o),QH(this,l),this.type=d});function mx(o){var d=iN();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function iN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var o_=Ns.merge,oN=function(o){(0,ut.Z)(l,o);var d=mx(l);function l(c){var u;(0,xt.Z)(this,l),u=d.call(this),(0,Ln.Z)((0,gs.Z)(u),"renderFrameCallback",function(){var Ce=Math.min((qx()-u.easeStart)/u.easeOptions.duration,1);u.onEaseFrame(u.easeOptions.easing(Ce)),Ce<1?u.easeFrameId=u.requestRenderFrame(u.renderFrameCallback):u.stop()}),u.options=c;var m=c.minZoom,E=c.maxZoom,M=c.minPitch,Z=c.maxPitch,ne=c.renderWorldCopies;return u.moving=!1,u.zooming=!1,u.bearingSnap=c.bearingSnap,u.pitchEnabled=c.pitchEnabled,u.rotateEnabled=c.rotateEnabled,u.transform=new JH(m,E,M,Z,ne),u}return(0,ot.Z)(l,[{key:"requestRenderFrame",value:function(u){return 0}},{key:"cancelRenderFrame",value:function(u){}},{key:"getCenter",value:function(){var u=this.transform.center,m=u.lng,E=u.lat;return new Iv(m,E)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(u,m){return this.jumpTo({center:u},m)}},{key:"setPitch",value:function(u,m){return this.jumpTo({pitch:u},m),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(u,m,E){return this.easeTo(o_({center:u},m),E)}},{key:"panBy",value:function(u,m,E){return u=D0.convert(u).mult(-1),this.panTo(this.transform.center,ZH({offset:u},m||{}),E)}},{key:"zoomOut",value:function(u,m){return this.zoomTo(this.getZoom()-1,u,m),this}},{key:"setBearing",value:function(u,m){return this.jumpTo({bearing:u},m),this}},{key:"setZoom",value:function(u,m){return this.jumpTo({zoom:u},m),this}},{key:"zoomIn",value:function(u,m){return this.zoomTo(this.getZoom()+1,u,m),this}},{key:"zoomTo",value:function(u,m,E){return this.easeTo(o_({zoom:u},m),E)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(u,m){return this.jumpTo({padding:u},m),this}},{key:"rotateTo",value:function(u,m,E){return this.easeTo(o_({bearing:u},m),E)}},{key:"resetNorth",value:function(u,m){return this.rotateTo(0,o_({duration:1e3},u),m),this}},{key:"resetNorthPitch",value:function(u,m){return this.easeTo(o_({bearing:0,pitch:0,duration:1e3},u),m),this}},{key:"fitBounds",value:function(u,m,E){return this.fitInternal(this.cameraForBounds(u,m),m,E)}},{key:"cameraForBounds",value:function(u,m){return u=FP.convert(u),this.cameraForBoxAndBearing(u.getNorthWest(),u.getSouthEast(),0,m)}},{key:"snapToNorth",value:function(u,m){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.stop();var E=this.transform,M=!1,Z=!1,ne=!1;return u.zoom!==void 0&&E.zoom!==+u.zoom&&(M=!0,E.zoom=+u.zoom),u.center!==void 0&&(E.center=Iv.convert(u.center)),u.bearing!==void 0&&E.bearing!==+u.bearing&&(Z=!0,E.bearing=+u.bearing),u.pitch!==void 0&&E.pitch!==+u.pitch&&(ne=!0,E.pitch=+u.pitch),u.padding!==void 0&&!E.isPaddingEqual(u.padding)&&(E.padding=u.padding),this.emit("movestart",new b0("movestart",m)),this.emit("move",new b0("move",m)),M&&(this.emit("zoomstart",new b0("zoomstart",m)),this.emit("zoom",new b0("zoom",m)),this.emit("zoomend",new b0("zoomend",m))),Z&&(this.emit("rotatestart",new b0("rotatestart",m)),this.emit("rotate",new b0("rotate",m)),this.emit("rotateend",new b0("rotateend",m))),ne&&(this.emit("pitchstart",new b0("pitchstart",m)),this.emit("pitch",new b0("pitch",m)),this.emit("pitchend",new b0("pitchend",m))),this.emit("moveend",new b0("moveend",m))}},{key:"easeTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;m=o_({offset:[0,0],duration:500,easing:H5},m),(m.animate===!1||!m.essential&&Q6())&&(m.duration=0);var M=this.transform,Z=this.getZoom(),ne=this.getBearing(),Ce=this.getPitch(),Fe=this.getPadding(),bt=m.zoom?+m.zoom:Z,Bt=m.bearing?this.normalizeBearing(m.bearing,ne):ne,Cn=m.pitch?+m.pitch:Ce,An=m.padding?m.padding:M.padding,Pr=D0.convert(m.offset),ti=M.centerPoint.add(Pr),ho=M.pointLocation(ti),bo=Iv.convert(m.center||ho);this.normalizeCenter(bo);var Ds=M.project(ho),ta=M.project(bo).sub(Ds),aa=M.zoomScale(bt-Z),Ua,pl;m.around&&(Ua=Iv.convert(m.around),pl=M.locationPoint(Ua));var ru={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||bt!==Z,this.rotating=this.rotating||ne!==Bt,this.pitching=this.pitching||Cn!==Ce,this.padding=!M.isPaddingEqual(An),this.easeId=m.easeId,this.prepareEase(E,m.noMoveStart,ru),clearTimeout(this.easeEndTimeoutID),this.ease(function(Iu){if(u.zooming&&(M.zoom=Yx(Z,bt,Iu)),u.rotating&&u.rotateEnabled&&(M.bearing=Yx(ne,Bt,Iu)),u.pitching&&u.pitchEnabled&&(M.pitch=Yx(Ce,Cn,Iu)),u.padding&&(M.interpolatePadding(Fe,An,Iu),ti=M.centerPoint.add(Pr)),Ua)M.setLocationAtPoint(Ua,pl);else{var Vu=M.zoomScale(M.zoom-Z),th=bt>Z?Math.min(2,aa):Math.max(.5,aa),yh=Math.pow(th,1-Iu),Ed=M.unproject(Ds.add(ta.mult(Iu*yh)).mult(Vu));M.setLocationAtPoint(M.renderWorldCopies?Ed.wrap():Ed,ti)}u.fireMoveEvents(E)},function(Iu){u.afterEase(E,Iu)},m),this}},{key:"flyTo",value:function(){var u=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;if(!m.essential&&Q6()){var M=R_(m,["center","zoom","bearing","pitch","around"]);return this.jumpTo(M,E)}this.stop(),m=o_({offset:[0,0],speed:1.2,curve:1.42,easing:H5},m);var Z=this.transform,ne=this.getZoom(),Ce=this.getBearing(),Fe=this.getPitch(),bt=this.getPadding(),Bt=m.zoom?Z2(+m.zoom,Z.minZoom,Z.maxZoom):ne,Cn=m.bearing?this.normalizeBearing(m.bearing,Ce):Ce,An=m.pitch?+m.pitch:Fe,Pr="padding"in m?m.padding:Z.padding,ti=Z.zoomScale(Bt-ne),ho=D0.convert(m.offset),bo=Z.centerPoint.add(ho),Ds=Z.pointLocation(bo),ta=Iv.convert(m.center||Ds);this.normalizeCenter(ta);var aa=Z.project(Ds),Ua=Z.project(ta).sub(aa),pl=m.curve,ru=Math.max(Z.width,Z.height),Iu=ru/ti,Vu=Ua.mag();if("minZoom"in m){var th=Z2(Math.min(m.minZoom,ne,Bt),Z.minZoom,Z.maxZoom),yh=ru/Z.zoomScale(th-ne);pl=Math.sqrt(yh/Vu*2)}var Ed=pl*pl;function $p(Wv){var Ex=(Iu*Iu-ru*ru+(Wv?-1:1)*Ed*Ed*Vu*Vu)/(2*(Wv?Iu:ru)*Ed*Vu);return Math.log(Math.sqrt(Ex*Ex+1)-Ex)}function Kg(Wv){return(Math.exp(Wv)-Math.exp(-Wv))/2}function um(Wv){return(Math.exp(Wv)+Math.exp(-Wv))/2}function nv(Wv){return Kg(Wv)/um(Wv)}var Em=$p(0),gy=function(Ex){return um(Em)/um(Em+pl*Ex)},RE=function(Ex){return ru*((um(Em)*nv(Em+pl*Ex)-Kg(Em))/Ed)/Vu},dS=($p(1)-Em)/pl;if(Math.abs(Vu)<1e-6||!isFinite(dS)){if(Math.abs(ru-Iu)<1e-6)return this.easeTo(m,E);var EI=Ium.maxDuration&&(m.duration=0),this.zooming=!0,this.rotating=Ce!==Cn,this.pitching=An!==Fe,this.padding=!Z.isPaddingEqual(Pr),this.prepareEase(E,!1),this.ease(function(Wv){var Ex=Wv*dS,B_=1/gy(Ex);Z.zoom=Wv===1?Bt:ne+Z.scaleZoom(B_),u.rotating&&(Z.bearing=Yx(Ce,Cn,Wv)),u.pitching&&(Z.pitch=Yx(Fe,An,Wv)),u.padding&&(Z.interpolatePadding(bt,Pr,Wv),bo=Z.centerPoint.add(ho));var fS=Wv===1?ta:Z.unproject(aa.add(Ua.mult(RE(Ex))).mult(B_));Z.setLocationAtPoint(Z.renderWorldCopies?fS.wrap():fS,bo),u.fireMoveEvents(E)},function(){return u.afterEase(E)},m),this}},{key:"fitScreenCoordinates",value:function(u,m,E,M,Z){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(D0.convert(u)),this.transform.pointLocation(D0.convert(m)),E,M),M,Z)}},{key:"stop",value:function(u,m){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var E=this.onEaseEnd;delete this.onEaseEnd,E.call(this,m)}return this}},{key:"normalizeBearing",value:function(u,m){u=NP(u,-180,180);var E=Math.abs(u-m);return Math.abs(u-360-m)180?-360:E<-180?360:0}}},{key:"fireMoveEvents",value:function(u){this.emit("move",new b0("move",u)),this.zooming&&this.emit("zoom",new b0("zoom",u)),this.rotating&&this.emit("rotate",new b0("rotate",u)),this.pitching&&this.emit("rotate",new b0("pitch",u))}},{key:"prepareEase",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!m&&!E.moving&&this.emit("movestart",new b0("movestart",u)),this.zooming&&!E.zooming&&this.emit("zoomstart",new b0("zoomstart",u)),this.rotating&&!E.rotating&&this.emit("rotatestart",new b0("rotatestart",u)),this.pitching&&!E.pitching&&this.emit("pitchstart",new b0("pitchstart",u))}},{key:"afterEase",value:function(u,m){if(!(this.easeId&&m&&this.easeId===m)){delete this.easeId;var E=this.zooming,M=this.rotating,Z=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,E&&this.emit("zoomend",new b0("zoomend",u)),M&&this.emit("rotateend",new b0("rotateend",u)),Z&&this.emit("pitchend",new b0("pitchend",u)),this.emit("moveend",new b0("moveend",u))}}},{key:"ease",value:function(u,m,E){E.animate===!1||E.duration===0?(u(1),m()):(this.easeStart=qx(),this.easeOptions=E,this.onEaseFrame=u,this.onEaseEnd=m,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(u,m,E,M){var Z={top:0,bottom:0,right:0,left:0};if(M=o_({padding:Z,offset:[0,0],maxZoom:this.transform.maxZoom},M),typeof M.padding=="number"){var ne=M.padding;M.padding={top:ne,bottom:ne,right:ne,left:ne}}M.padding=o_(Z,M.padding);var Ce=this.transform,Fe=Ce.padding,bt=Ce.project(Iv.convert(u)),Bt=Ce.project(Iv.convert(m)),Cn=bt.rotate(-E*Math.PI/180),An=Bt.rotate(-E*Math.PI/180),Pr=new D0(Math.max(Cn.x,An.x),Math.max(Cn.y,An.y)),ti=new D0(Math.min(Cn.x,An.x),Math.min(Cn.y,An.y)),ho=Pr.sub(ti),bo=(Ce.width-(Fe.left+Fe.right+M.padding.left+M.padding.right))/ho.x,Ds=(Ce.height-(Fe.top+Fe.bottom+M.padding.top+M.padding.bottom))/ho.y;if(!(Ds<0||bo<0)){var ta=Math.min(Ce.scaleZoom(Ce.scale*Math.min(bo,Ds)),M.maxZoom),aa=D0.convert(M.offset),Ua=(M.padding.left-M.padding.right)/2,pl=(M.padding.top-M.padding.bottom)/2,ru=new D0(aa.x+Ua,aa.y+pl),Iu=ru.mult(Ce.scale/Ce.zoomScale(ta)),Vu=Ce.unproject(bt.add(Bt).div(2).sub(Iu));return{center:Vu,zoom:ta,bearing:E}}}},{key:"fitInternal",value:function(u,m,E){return u?(m=o_(u,m),delete m.padding,m.linear?this.easeTo(m,E):this.flyTo(m,E)):this}}]),l}(uc.EventEmitter);function az(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=GD(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function GD(o,d){if(o){if(typeof o=="string")return EA(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return EA(o,d)}}function EA(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&J5?o.addEventListener(d,l,c):o.addEventListener(d,l,c.capture)},kb.removeEventListener=function(o,d,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&J5?o.removeEventListener(d,l,c):o.removeEventListener(d,l,c.capture)};var eR=function o(d){d.preventDefault(),d.stopPropagation(),window.removeEventListener("click",o,!0)};kb.suppressClick=function(){window.addEventListener("click",eR,!0),setTimeout(function(){window.removeEventListener("click",eR,!0)},0)},kb.mousePos=function(o,d){var l=o.getBoundingClientRect();return new D0(d.clientX-l.left-o.clientLeft,d.clientY-l.top-o.clientTop)},kb.touchPos=function(o,d){var l=o.getBoundingClientRect(),c=[],u=az(d),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;c.push(new D0(E.clientX-l.left-o.clientLeft,E.clientY-l.top-o.clientTop))}}catch(M){u.e(M)}finally{u.f()}return c},kb.mouseButton=function(o){return o.button},kb.remove=function(o){o.parentNode&&o.parentNode.removeChild(o)};function tG(o){var d=nG();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function nG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var sN=Ns.merge,vx=function(o){(0,ut.Z)(l,o);var d=tG(l);function l(c,u,m){var E,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,xt.Z)(this,l);var Z=$v.mousePos(u.getCanvasContainer(),m),ne=u.unproject(Z);return E=d.call(this,c,sN({point:Z,lngLat:ne,originalEvent:m},M)),E.defaultPrevented=!1,E.target=u,E}return(0,ot.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(b0);function rG(o){var d=zP();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function zP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var tR=function(o){(0,ut.Z)(l,o);var d=rG(l);function l(c,u,m){var E;(0,xt.Z)(this,l);var M=c==="touchend"?m.changedTouches:m.touches,Z=$v.touchPos(u.getCanvasContainer(),M),ne=Z.map(function(bt){return u.unproject(bt)}),Ce=Z.reduce(function(bt,Bt,Cn,An){return bt.add(Bt.div(An.length))},new D0(0,0)),Fe=u.unproject(Ce);return E=d.call(this,c,{points:Z,point:Ce,lngLats:ne,lngLat:Fe,originalEvent:m}),E.defaultPrevented=!1,E}return(0,ot.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(b0);function iG(o){var d=rb();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function rb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var zQ=function(o){(0,ut.Z)(l,o);var d=iG(l);function l(c,u,m){var E;return(0,xt.Z)(this,l),E=d.call(this,c,{originalEvent:m}),E.defaultPrevented=!1,E}return(0,ot.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(b0),oG=function(){function o(d){(0,xt.Z)(this,o),this.map=d}return(0,ot.Z)(o,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new vx("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(l){this.delayContextMenu?this.contextMenuEvent=l:this.map.emit(l.type,new vx(l.type,this.map,l)),this.map.listeners("contextmenu")&&l.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}}]),o}(),uz=function(){function o(d,l){(0,xt.Z)(this,o),this.map=d,this.el=d.getCanvasContainer(),this.container=d.getContainer(),this.clickTolerance=l.clickTolerance||1}return(0,ot.Z)(o,[{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(l,c){this.isEnabled()&&l.shiftKey&&l.button===0&&($v.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(l,c){if(this.active){var u=c;if(!(this.lastPos.equals(u)||!this.box&&u.dist(this.startPos)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function rR(o,d){if(o){if(typeof o=="string")return UP(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return UP(o,d)}}function UP(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&c-l[0].time>u;)l.shift()}},{key:"onMoveEnd",value:function(l){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new D0(0,0),pinchAround:void 0,around:void 0},u=lN(this.inertiaBuffer),m;try{for(u.s();!(m=u.n()).done;){var E=m.value.settings;c.zoom+=E.zoomDelta||0,c.bearing+=E.bearingDelta||0,c.pitch+=E.pitchDelta||0,E.panDelta&&c.pan._add(E.panDelta),E.around&&(c.around=E.around),E.pinchAround&&(c.pinchAround=E.pinchAround)}}catch(An){u.e(An)}finally{u.f()}var M=this.inertiaBuffer[this.inertiaBuffer.length-1],Z=M.time-this.inertiaBuffer[0].time,ne={};if(c.pan.mag()){var Ce=oR(c.pan.mag(),Z,gE({},hz,l||{}));ne.offset=c.pan.mult(Ce.amount/c.pan.mag()),ne.center=this.map.transform.center,iR(ne,Ce)}if(c.zoom){var Fe=oR(c.zoom,Z,lG);ne.zoom=this.map.transform.zoom+Fe.amount,iR(ne,Fe)}if(c.bearing){var bt=oR(c.bearing,Z,uG);ne.bearing=this.map.transform.bearing+Z2(bt.amount,-179,179),iR(ne,bt)}if(c.pitch){var Bt=oR(c.pitch,Z,cG);ne.pitch=this.map.transform.pitch+Bt.amount,iR(ne,Bt)}if(ne.zoom||ne.bearing){var Cn=c.pinchAround===void 0?c.around:c.pinchAround;ne.around=Cn?this.map.unproject(Cn):this.map.getCenter()}return this.clear(),gE(ne,{noMoveStart:!0})}}}]),o}();function iR(o,d){(!o.duration||o.duration=this.clickTolerance||this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"dblclick",value:function(l){return this.firePreventable(new vx(l.type,this.map,l))}},{key:"mouseover",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"mouseout",value:function(l){this.map.emit(l.type,new vx(l.type,this.map,l))}},{key:"touchstart",value:function(l){return this.firePreventable(new tR(l.type,this.map,l))}},{key:"touchmove",value:function(l){this.map.emit(l.type,new tR(l.type,this.map,l))}},{key:"touchend",value:function(l){this.map.emit(l.type,new tR(l.type,this.map,l))}},{key:"touchcancel",value:function(l){this.map.emit(l.type,new tR(l.type,this.map,l))}},{key:"firePreventable",value:function(l){if(this.map.emit(l.type,l),l.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}}]),o}(),VP,H2=0,WP=2,hN=(VP={},(0,Ln.Z)(VP,H2,1),(0,Ln.Z)(VP,WP,2),VP);function pG(o,d){var l=hN[d];return o.buttons===void 0||(o.buttons&l)!==l}var jP=function(){function o(d){(0,xt.Z)(this,o),this.reset(),this.clickTolerance=d.clickTolerance||1}return(0,ot.Z)(o,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(l,c){if(!this.lastPoint){var u=$v.mouseButton(l);this.correctButton(l,u)&&(this.lastPoint=c,this.eventButton=u)}}},{key:"mousemoveWindow",value:function(l,c){var u=this.lastPoint;if(u){if(l.preventDefault(),pG(l,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(u)sR?c.wheelZoomRate:c.defaultZoomRate,E=bG/(1+Math.exp(-Math.abs(c.delta*m)));c.delta<0&&E!==0&&(E=1/E);var M=typeof c.targetZoom=="number"?u.zoomScale(c.targetZoom):u.scale;c.targetZoom=Math.min(u.maxZoom,Math.max(u.minZoom,u.scaleZoom(M*E))),c.type==="wheel"&&(c.startZoom=u.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var Z=typeof c.targetZoom=="number"?c.targetZoom:u.zoom,ne=c.startZoom,Ce=c.easing,Fe=!1,bt;if(c.type==="wheel"&&ne&&Ce){var Bt=Math.min((qx()-c.lastWheelEventTime)/200,1),Cn=Ce(Bt);bt=Yx(ne,Z,Cn),Bt<1?c.frameId||(c.frameId=!0):Fe=!0}else bt=Z,Fe=!0;return c.active=!0,Fe&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Fe,zoomDelta:bt-u.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=d,this.el=d.getCanvasContainer(),this.handler=l,this.delta=0,this.defaultZoomRate=yG,this.wheelZoomRate=_G}return(0,ot.Z)(o,[{key:"setZoomRate",value:function(l){this.defaultZoomRate=l}},{key:"setWheelZoomRate",value:function(l){this.wheelZoomRate=l}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(l){this.isEnabled()||(this.enabled=!0,this.aroundCenter=l&&l.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(l){if(this.isEnabled()){var c=l.deltaMode===window.WheelEvent.DOM_DELTA_LINE?l.deltaY*40:l.deltaY,u=qx(),m=u-(this.lastWheelEventTime||0);this.lastWheelEventTime=u,c!==0&&c%sR===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":m>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,l)):this.type||(this.type=Math.abs(m*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),l.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=l,this.delta-=c,this.active||this.start(l)),l.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(l){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(l)}},{key:"start",value:function(l){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 c=$v.mousePos(this.el,l);this.around=Iv.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(l){var c=H5;if(this.prevEase){var u=this.prevEase,m=(qx()-u.start)/u.duration,E=u.easing(m+.01)-u.easing(m),M=.27/Math.sqrt(E*E+1e-4)*.01,Z=Math.sqrt(.27*.27-M*M);c=Z5(M,Z,.25,1)}return this.prevEase={start:qx(),duration:l,easing:c},c}}]),o}(),wG=xG,UQ=function(){function o(d,l){(0,xt.Z)(this,o),this.clickZoom=d,this.tapZoom=l}return(0,ot.Z)(o,[{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()}}]),o}(),$Q=function(){function o(d,l,c){(0,xt.Z)(this,o),this.el=d,this.mousePan=l,this.touchPan=c}return(0,ot.Z)(o,[{key:"enable",value:function(l){this.inertiaOptions=l||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),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()}}]),o}(),aR=function(){function o(d,l,c){(0,xt.Z)(this,o),this.pitchWithRotate=d.pitchWithRotate,this.mouseRotate=l,this.mousePitch=c}return(0,ot.Z)(o,[{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()}}]),o}(),VQ=function(){function o(d,l,c,u){(0,xt.Z)(this,o),this.el=d,this.touchZoom=l,this.touchRotate=c,this.tapDragZoom=u,this.rotationDisabled=!1,this.enabled=!0}return(0,ot.Z)(o,[{key:"enable",value:function(l){this.touchZoom.enable(l),this.rotationDisabled||this.touchRotate.enable(l),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),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()}}]),o}();function vz(o,d){for(var l={},c=0;c=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function jQ(o,d){if(o){if(typeof o=="string")return CG(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return CG(o,d)}}function CG(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=l.timeStamp),u.length===this.numTouches&&(this.centroid=yz(c),this.touches=vz(u,c)))}},{key:"touchmove",value:function(l,c,u){if(!(this.aborted||!this.centroid)){var m=vz(u,c);for(var E in this.touches)if(this.touches[E]){var M=this.touches[E],Z=m[E];(!Z||Z.dist(M)>lR)&&(this.aborted=!0)}}}},{key:"touchend",value:function(l,c,u){if((!this.centroid||l.timeStamp-this.startTime>G2)&&(this.aborted=!0),u.length===0){var m=!this.aborted&&this.centroid;if(this.reset(),m)return m}}}]),o}(),qC=function(){function o(d){(0,xt.Z)(this,o),this.singleTap=new EG(d),this.numTaps=d.numTaps,this.reset()}return(0,ot.Z)(o,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(l,c,u){this.singleTap.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.singleTap.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this.singleTap.touchend(l,c,u);if(m){var E=l.timeStamp-this.lastTimeSG&&this.reset(),this.tapTime?u.length>0&&(this.swipePoint=c[0],this.swipeTouch=u[0].identifier):this.tap.touchstart(l,c,u))}},{key:"touchmove",value:function(l,c,u){if(!this.tapTime)this.tap.touchmove(l,c,u);else if(this.swipePoint){if(u[0].identifier!==this.swipeTouch)return;var m=c[0],E=m.y-this.swipePoint.y;return this.swipePoint=m,l.preventDefault(),this.active=!0,{zoomDelta:E/128}}}},{key:"touchend",value:function(l,c,u){if(this.tapTime)this.swipePoint&&u.length===0&&this.reset();else{var m=this.tap.touchend(l,c,u);m&&(this.tapTime=l.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}}]),o}(),TG=function(){function o(){(0,xt.Z)(this,o),this.zoomIn=new qC({numTouches:1,numTaps:2}),this.zoomOut=new qC({numTouches:2,numTaps:1}),this.reset()}return(0,ot.Z)(o,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(l,c,u){this.zoomIn.touchstart(l,c,u),this.zoomOut.touchstart(l,c,u)}},{key:"touchmove",value:function(l,c,u){this.zoomIn.touchmove(l,c,u),this.zoomOut.touchmove(l,c,u)}},{key:"touchend",value:function(l,c,u){var m=this,E=this.zoomIn.touchend(l,c,u),M=this.zoomOut.touchend(l,c,u);if(E)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()+1,around:ne.unproject(E)},{originalEvent:l})}};if(M)return this.active=!0,l.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(ne){return ne.easeTo({duration:300,zoom:ne.getZoom()-1,around:ne.unproject(M)},{originalEvent:l})}}}},{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}}]),o}(),AG=function(){function o(d){(0,xt.Z)(this,o),this.minTouches=1,this.clickTolerance=d.clickTolerance||1,this.reset()}return(0,ot.Z)(o,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new D0(0,0)}},{key:"touchstart",value:function(l,c,u){return this.calculateTransform(l,c,u)}},{key:"touchmove",value:function(l,c,u){if(this.active)return l.preventDefault(),this.calculateTransform(l,c,u)}},{key:"touchend",value:function(l,c,u){this.calculateTransform(l,c,u),this.active&&u.length0&&(this.active=!0);var m=vz(u,c),E=new D0(0,0),M=new D0(0,0),Z=0;for(var ne in m)if(m[ne]){var Ce=m[ne],Fe=this.touches[ne];Fe&&(E._add(Ce),M._add(Ce.sub(Fe)),Z++,m[ne]=Ce)}if(this.touches=m,!(ZMath.abs(o.x)}var hR=100,_z=function(o){(0,ut.Z)(l,o);var d=yx(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"reset",value:function(){lf((0,_t.Z)(l.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(u){this.lastPoints=u,cR(u[0].sub(u[1]))&&(this.valid=!1)}},{key:"move",value:function(u,m,E){var M=u[0].sub(this.lastPoints[0]),Z=u[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(M,Z,E.timeStamp),!!this.valid){this.lastPoints=u,this.active=!0;var ne=(M.y+Z.y)/2,Ce=-.5;return{pitchDelta:ne*Ce}}}},{key:"gestureBeginsVertically",value:function(u,m,E){if(this.valid!==void 0)return this.valid;var M=2,Z=u.mag()>=M,ne=m.mag()>=M;if(!(!Z&&!ne)){if(!Z||!ne)return this.firstMove===void 0&&(this.firstMove=E),E-this.firstMove0==m.y>0;return cR(u)&&cR(m)&&Ce}}}]),l}(Jx);function gN(o){var d=mN();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function mN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var vN=25;function ZP(o,d){return o.angleWith(d)*180/Math.PI}var DG=function(o){(0,ut.Z)(l,o);var d=gN(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"reset",value:function(){lf((0,_t.Z)(l.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(u){this.startVector=this.vector=u[0].sub(u[1]),this.minDiameter=u[0].dist(u[1])}},{key:"move",value:function(u,m){var E=this.vector;if(this.vector=u[0].sub(u[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:ZP(this.vector,E),pinchAround:m}}},{key:"isBelowThreshold",value:function(u){this.minDiameter=Math.min(this.minDiameter,u.mag());var m=Math.PI*this.minDiameter,E=vN/m*360,M=ZP(u,this.startVector);return Math.abs(M)=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function xz(o,d){if(o){if(typeof o=="string")return HP(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return HP(o,d)}}function HP(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);lQx}).reduce(function(Z,ne){return Z+(ne-Qx)/Qx},0),M=E/(c+E)*100;return{loadTime:d,fullLoadTime:l,fps:m,percentDroppedFrames:M}}};function wz(o,d){var l=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!l){if(Array.isArray(o)||(l=fR(o))||d&&o&&typeof o.length=="number"){l&&(o=l);var c=0,u=function(){};return{s:u,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(ne){throw ne},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,E=!1,M;return{s:function(){l=l.call(o)},n:function(){var ne=l.next();return m=ne.done,ne},e:function(ne){E=!0,M=ne},f:function(){try{!m&&l.return!=null&&l.return()}finally{if(E)throw M}}}}function fR(o,d){if(o){if(typeof o=="string")return pR(o,d);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return pR(o,d)}}function pR(o,d){(d==null||d>o.length)&&(d=o.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var u=wz(c),m;try{for(u.s();!(m=u.n()).done;){var E=m.value;if(!E.cancelled&&(E.callback(l),this.cleared))break}}catch(M){u.e(M)}finally{u.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),o}(),xN=Cz;function wN(o){var d=Sz();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function Sz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function LG(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}LG(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7545,7 +7587,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var hR=-2,qb=22,fR=Fa.merge,DA=0,RC=60,rk={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:hR,maxZoom:qb,minPitch:DA,maxPitch:RC,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},mU=function(a){(0,ft.Z)(u,a);var p=QX(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,fR({},rk,c)),(0,Cn.Z)((0,ps.Z)(l),"renderTaskQueue",new gU),(0,Cn.Z)((0,ps.Z)(l),"trackResize",!0),(0,Cn.Z)((0,ps.Z)(l),"onWindowOnline",function(){l.update()}),(0,Cn.Z)((0,ps.Z)(l),"onWindowResize",function(g){l.trackResize&&l.resize({originalEvent:g}).update()}),l.initContainer(),l.resize(),l.handlers=new uR((0,ps.Z)(l),l.options),typeof window!="undefined"&&(window.addEventListener("online",l.onWindowOnline,!1),window.addEventListener("resize",l.onWindowResize,!1),window.addEventListener("orientationchange",l.onWindowResize,!1)),l}return(0,He.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=g[0],B=g[1];this.transform.resize(T,B);var G=!this.moving;return G&&(this.stop(),this.emit("movestart",new Event("movestart",l)),this.emit("move",new Event("move",l))),this.emit("resize",new Event("resize",l)),G&&this.emit("moveend",new Event("moveend",l)),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(l){return this.transform.locationPoint(F0.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation($m.convert(l))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(l){this.transform.setMaxBounds(zI.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?hR:l,l>=hR&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?DA:l,l=DA&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()RC)throw new Error("maxPitch must be less than or equal to ".concat(RC));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),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(l){this.transform.renderWorldCopies=!!l}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=MC(function(g){dR.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=MC(function(T){dR.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){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)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=to("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth||400,g=this.container.clientHeight||300),[l,g]}},{key:"resizeCanvas",value:function(l,g){var T=hi||1;this.canvas.width=T*l,this.canvas.height=T*g,this.canvas.style.width="".concat(l,"px"),this.canvas.style.height="".concat(g,"px")}}]),u}(l7),vU=Fa.throttle,NC=function(){function a(p){var u=this;(0,bt.Z)(this,a),(0,Cn.Z)(this,"onHashChange",function(){var c=u.getCurrentHash();if(c.length>=3&&!c.some(function(g){return isNaN(+g)})){var l=u.map.dragRotate.isEnabled()&&u.map.touchZoomRotate.isEnabled()?+(c[3]||0):u.map.getBearing();return u.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:l,pitch:+(c[4]||0)}),!0}return!1}),(0,Cn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(u.hashName){var l;return c.split("&").map(function(g){return g.split("=")}).forEach(function(g){g[0]===u.hashName&&(l=g)}),(l&&l[1]||"").split("/")}return c.split("/")}),(0,Cn.Z)(this,"updateHashUnthrottled",function(){var c=u.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(l){}}),this.hashName=p&&encodeURIComponent(p),this.updateHash=vU(this.updateHashUnthrottled,30*1e3/100)}return(0,He.Z)(a,[{key:"addTo",value:function(u){return this.map=u,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(u){var c=this.map.getCenter(),l=Math.round(this.map.getZoom()*100)/100,g=Math.ceil((l*Math.LN2+Math.log(512/360/.5))/Math.LN10),T=Math.pow(10,g),B=Math.round(c.lng*T)/T,G=Math.round(c.lat*T)/T,ne=this.map.getBearing(),Me=this.map.getPitch(),Ge="";if(u?Ge+="/".concat(B,"/").concat(G,"/").concat(l):Ge+="".concat(l,"/").concat(G,"/").concat(B),(ne||Me)&&(Ge+="/".concat(Math.round(ne*10)/10)),Me&&(Ge+="/".concat(Math.round(Me))),this.hashName){var Et=this.hashName,Ot=!1,Pn=window.location.hash.slice(1).split("&").map(function(Mn){var Ir=Mn.split("=")[0];return Ir===Et?(Ot=!0,"".concat(Ir,"=").concat(Ge)):Mn}).filter(function(Mn){return Mn});return Ot||Pn.push("".concat(Et,"=").concat(Ge)),"#".concat(Pn.join("&"))}return"#".concat(Ge)}}]),a}(),Jg=NC;function Cb(a){var p=pR();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function pR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function C7(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}C7(`.l7-map { +`);var gR=-2,Ez=22,Tz=Ns.merge,AA=0,GP=60,CN={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:gR,maxZoom:Ez,minPitch:AA,maxPitch:GP,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},Az=function(o){(0,ut.Z)(l,o);var d=wN(l);function l(c){var u;return(0,xt.Z)(this,l),u=d.call(this,Tz({},CN,c)),(0,Ln.Z)((0,gs.Z)(u),"renderTaskQueue",new xN),(0,Ln.Z)((0,gs.Z)(u),"trackResize",!0),(0,Ln.Z)((0,gs.Z)(u),"onWindowOnline",function(){u.update()}),(0,Ln.Z)((0,gs.Z)(u),"onWindowResize",function(m){u.trackResize&&u.resize({originalEvent:m}).update()}),u.initContainer(),u.resize(),u.handlers=new dR((0,gs.Z)(u),u.options),typeof window!="undefined"&&(window.addEventListener("online",u.onWindowOnline,!1),window.addEventListener("resize",u.onWindowResize,!1),window.addEventListener("orientationchange",u.onWindowResize,!1)),u}return(0,ot.Z)(l,[{key:"resize",value:function(u){var m=this.containerDimensions(),E=m[0],M=m[1];this.transform.resize(E,M);var Z=!this.moving;return Z&&(this.stop(),this.emit("movestart",new Event("movestart",u)),this.emit("move",new Event("move",u))),this.emit("resize",new Event("resize",u)),Z&&this.emit("moveend",new Event("moveend",u)),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(u){return this.transform.locationPoint(Iv.convert(u))}},{key:"unproject",value:function(u){return this.transform.pointLocation(D0.convert(u))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(u){this.transform.setMaxBounds(FP.convert(u))}},{key:"setStyle",value:function(u){}},{key:"setMinZoom",value:function(u){if(u=u==null?gR:u,u>=gR&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?AA:u,u=AA&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()GP)throw new Error("maxPitch must be less than or equal to ".concat(GP));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),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(u){this.transform.renderWorldCopies=!!u}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=CA(function(m){_x.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=CA(function(E){_x.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){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)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=As("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth||400,m=this.container.clientHeight||300),[u,m]}},{key:"resizeCanvas",value:function(u,m){var E=_i||1;this.canvas.width=E*u,this.canvas.height=E*m,this.canvas.style.width="".concat(u,"px"),this.canvas.style.height="".concat(m,"px")}}]),l}(oN),Dz=Ns.throttle,KP=function(){function o(d){var l=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"onHashChange",function(){var c=l.getCurrentHash();if(c.length>=3&&!c.some(function(m){return isNaN(+m)})){var u=l.map.dragRotate.isEnabled()&&l.map.touchZoomRotate.isEnabled()?+(c[3]||0):l.map.getBearing();return l.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:u,pitch:+(c[4]||0)}),!0}return!1}),(0,Ln.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(l.hashName){var u;return c.split("&").map(function(m){return m.split("=")}).forEach(function(m){m[0]===l.hashName&&(u=m)}),(u&&u[1]||"").split("/")}return c.split("/")}),(0,Ln.Z)(this,"updateHashUnthrottled",function(){var c=l.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(u){}}),this.hashName=d&&encodeURIComponent(d),this.updateHash=Dz(this.updateHashUnthrottled,30*1e3/100)}return(0,ot.Z)(o,[{key:"addTo",value:function(l){return this.map=l,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(l){var c=this.map.getCenter(),u=Math.round(this.map.getZoom()*100)/100,m=Math.ceil((u*Math.LN2+Math.log(512/360/.5))/Math.LN10),E=Math.pow(10,m),M=Math.round(c.lng*E)/E,Z=Math.round(c.lat*E)/E,ne=this.map.getBearing(),Ce=this.map.getPitch(),Fe="";if(l?Fe+="/".concat(M,"/").concat(Z,"/").concat(u):Fe+="".concat(u,"/").concat(Z,"/").concat(M),(ne||Ce)&&(Fe+="/".concat(Math.round(ne*10)/10)),Ce&&(Fe+="/".concat(Math.round(Ce))),this.hashName){var bt=this.hashName,Bt=!1,Cn=window.location.hash.slice(1).split("&").map(function(An){var Pr=An.split("=")[0];return Pr===bt?(Bt=!0,"".concat(Pr,"=").concat(Fe)):An}).filter(function(An){return An});return Bt||Cn.push("".concat(bt,"=").concat(Fe)),"#".concat(Cn.join("&"))}return"#".concat(Fe)}}]),o}(),DA=KP;function ZQ(o){var d=MG();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function MG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function _E(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}_E(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7645,118 +7687,184 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var qE=-2,gR=22,ik=Fa.merge,nS=0,AA=60,ok={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:qE,maxZoom:gR,minPitch:nS,maxPitch:AA,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},w7=function(a){(0,ft.Z)(u,a);var p=Cb(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this,ik({},ok,c)),(0,Cn.Z)((0,ps.Z)(l),"renderTaskQueue",new gU),(0,Cn.Z)((0,ps.Z)(l),"trackResize",!0),(0,Cn.Z)((0,ps.Z)(l),"onWindowOnline",function(){l.update()}),(0,Cn.Z)((0,ps.Z)(l),"onWindowResize",function(T){l.trackResize&&l.resize({originalEvent:T}).update()}),l.initContainer(),l.resize(),l.handlers=new uR((0,ps.Z)(l),l.options),typeof window!="undefined"&&(window.addEventListener("online",l.onWindowOnline,!1),window.addEventListener("resize",l.onWindowResize,!1),window.addEventListener("orientationchange",l.onWindowResize,!1));var g=typeof c.hash=="string"&&c.hash||void 0;return c.hash&&(l.hash=new Jg(g).addTo((0,ps.Z)(l))),(!l.hash||!l.hash.onHashChange())&&(l.jumpTo({center:c.center,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch}),c.bounds&&(l.resize(),l.fitBounds(c.bounds,ik({},c.fitBoundsOptions,{duration:0})))),l}return(0,He.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=(0,qn.Z)(g,2),B=T[0],G=T[1];this.transform.resize(B,G);var ne=!this.moving;return ne&&(this.stop(),this.emit("movestart",new window.Event("movestart",l)),this.emit("move",new window.Event("move",l))),this.emit("resize",new window.Event("resize",l)),ne&&this.emit("moveend",new window.Event("moveend",l)),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(l){return this.transform.locationPoint(F0.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation($m.convert(l))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(l){this.transform.setMaxBounds(zI.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?qE:l,l>=qE&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?nS:l,l=nS&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()AA)throw new Error("maxPitch must be less than or equal to ".concat(AA));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),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(l){this.transform.renderWorldCopies=!!l}},{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(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=MC(function(g){dR.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=MC(function(T){dR.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){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)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=to("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth,g=this.container.clientHeight,l=l===0?400:l,g=g===0?300:g),[l,g]}}]),u}(l7),mR={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"}}]}},S7,sk,E7,T7,vR,yR,jw,rS,ak,Z_,lk,uk={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},nL=12,JE=(S7=(0,As.b2)(),sk=(0,As.f3)(vr.MapConfig),E7=(0,As.f3)(vr.IGlobalConfigService),T7=(0,As.f3)(vr.ICoordinateSystemService),vR=(0,As.f3)(vr.IEventEmitter),S7(yR=(jw=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,Cn.Z)(this,"version",d0.DEFUALT),(0,Cn.Z)(this,"simpleMapCoord",new C5),(0,Cn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Fd(this,"config",rS,this),Fd(this,"configService",ak,this),Fd(this,"coordinateSystemService",Z_,this),Fd(this,"eventEmitter",lk,this),(0,Cn.Z)(this,"handleCameraChanged",function(u){var c=p.map.getCenter(),l=c.lat,g=c.lng;p.emit("mapchange"),p.viewport.syncWithMapCamera({bearing:p.map.getBearing(),center:[g,l],viewportHeight:p.map.transform.height,pitch:p.map.getPitch(),viewportWidth:p.map.transform.width,zoom:p.map.getZoom(),cameraHeight:0}),p.updateCoordinateSystemService(),p.cameraChangedCallback(p.viewport)})}return(0,He.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getCanvasContainer();this.markerContainer=to("div","l7-marker-container",u),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(uk[u]||u,c)}},{key:"off",value:function(u,c){this.map.off(uk[u]||u,c),this.eventEmitter.off(u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===d0.SIMPLE)return this.simpleMapCoord.getSize();var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(u){return this.map.setZoom(u)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(u){this.map.setCenter(u)}},{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(u){this.map.setBearing(u)}},{key:"zoomIn",value:function(u,c){this.map.zoomIn(u,c)}},{key:"zoomOut",value:function(u,c){this.map.zoomOut(u,c)}},{key:"setPitch",value:function(u){return this.map.setPitch(u)}},{key:"panTo",value:function(u){this.map.panTo(u)}},{key:"panBy",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([u,c])}},{key:"fitBounds",value:function(u,c){this.map.fitBounds(u,c)}},{key:"setMaxZoom",value:function(u){this.map.setMaxZoom(u)}},{key:"setMinZoom",value:function(u){this.map.setMinZoom(u)}},{key:"setMapStatus",value:function(u){u.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),u.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),u.dragEnable===!1&&this.map.dragPan.disable(),u.dragEnable===!0&&this.map.dragPan.enable(),u.rotateEnable===!1&&this.map.dragRotate.disable(),u.dragEnable===!0&&this.map.dragRotate.enable(),u.keyboardEnable===!1&&this.map.keyboard.disable(),u.keyboardEnable===!0&&this.map.keyboard.enable(),u.zoomEnable===!1&&this.map.scrollZoom.disable(),u.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(u,c){this.map.flyTo({zoom:u,center:c})}},{key:"setMapStyle",value:function(u){this.map.setStyle(this.getMapStyleValue(u))}},{key:"meterToCoord",value:function(u,c){return 1}},{key:"pixelToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToPixel",value:function(u){return this.map.project(u)}},{key:"containerToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToContainer",value:function(u){return this.map.project(u)}},{key:"getMapStyle",value:function(){try{var u,c=(u=this.map.getStyle().sprite)!==null&&u!==void 0?u:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(l){return""}}},{key:"getMapStyleConfig",value:function(){return mR}},{key:"getMapStyleValue",value:function(u){var c;return(c=this.getMapStyleConfig()[u])!==null&&c!==void 0?c:u}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;TnL&&c?this.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(eh.LNGLAT)}}]),a}(),rS=$h(jw.prototype,"config",[sk],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ak=$h(jw.prototype,"configService",[E7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z_=$h(jw.prototype,"coordinateSystemService",[T7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lk=$h(jw.prototype,"eventEmitter",[vR],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jw))||yR),jx=function(){function a(){(0,bt.Z)(this,a),(0,Cn.Z)(this,"xzReg",-Math.PI*.6),(0,Cn.Z)(this,"yReg",Math.PI*.2),(0,Cn.Z)(this,"earthCameraRadius",200),(0,Cn.Z)(this,"earthCameraZoom",1),(0,Cn.Z)(this,"cameraPosition",$_()),(0,Cn.Z)(this,"projectionMatrix",on()),(0,Cn.Z)(this,"modelMatrix",on()),(0,Cn.Z)(this,"viewMatrix",on()),(0,Cn.Z)(this,"viewProjectionMatrix",on()),(0,Cn.Z)(this,"ViewProjectionMatrixUncentered",on()),(0,Cn.Z)(this,"viewUncenteredMatrix",on())}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.viewportHeight,l=c===void 0?1:c,g=u.viewportWidth,T=g===void 0?1:g,B=T/l,G=.1,ne=1e4,Me=20;bi(this.projectionMatrix,Me,B,G,ne);var Ge=this.earthCameraRadius*Math.cos(this.xzReg),Et=this.earthCameraRadius*Math.sin(this.xzReg),Ot=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=Yg(Ge,Ot,Et),A2(this.cameraPosition,this.cameraPosition),QN(this.cameraPosition,this.cameraPosition,Yg(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),Wb(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var Pn=$_();lD(Pn,this.cameraPosition,Yg(0,1,0));var Mn=Yg(0,1,0);lD(Mn,Pn,this.cameraPosition);var Ir=Yg(0,0,0);Pa(this.viewMatrix,this.cameraPosition,Ir,Mn),this.viewUncenteredMatrix=Fn(this.viewMatrix),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(u){this.xzReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(u){this.yReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(u){this.earthCameraZoom+=u,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(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),FC=["id","style","rotation"],Vx,rL;function BC(a){var p=yU();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function yU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var iL={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},_R=12,D7=(Vx=(0,As.b2)(),Vx(rL=function(a){(0,ft.Z)(u,a);var p=BC(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;TMath.abs(B.originalEvent.movementY)?B.originalEvent.movementX>0?c.viewport.rotateY(ne):B.originalEvent.movementX<0&&c.viewport.rotateY(-ne):B.originalEvent.movementY>0?c.viewport.rotateX(ne):B.originalEvent.movementY<0&&c.viewport.rotateX(-ne));var Me=c.config.offsetCoordinate,Ge=Me===void 0?!0:Me;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>_R&&Ge?c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,He.Z)(u,[{key:"lngLatToMercator",value:function(l,g){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(l,g,T,B,G){throw new Error("Method not implemented.")}},{key:"on",value:function(l,g){pw.indexOf(l)!==-1?this.eventEmitter.on(l,g):this.map.on(iL[l]||l,g)}},{key:"off",value:function(l,g){this.map.off(iL[l]||l,g),this.eventEmitter.off(l,g)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T,B,G,ne,Me,Ge,Et,Ot;return ro().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:T=this.config,B=T.id,G=B===void 0?"map":B,ne=T.style,Me=ne===void 0?"light":ne,Ge=T.rotation,Et=Ge===void 0?0:Ge,Ot=(0,Vg.Z)(T,FC),this.viewport=new jx,this.$mapContainer=this.creatMapContainer(G),this.map=new mU((0,we.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Me),bearing:Et},Ot)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return Mn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),G=1;G1?T-1:0),G=1;GCR&&Ot?c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,He.Z)(u,[{key:"lngLatToCoord",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,G=T.y;return[B-g.x,G-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=KE.fromLngLat(l,g),B=T.x,G=B===void 0?0:B,ne=T.y,Me=ne===void 0?0:ne,Ge=T.z,Et=Ge===void 0?0:Ge;return{x:G,y:Me,z:Et}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=KE.fromLngLat(l,g),Me=ne.meterInMercatorCoordinateUnits(),Ge=on();return ql(Ge,Ge,Yg(ne.x-G.x,ne.y-G.y,ne.z||0-G.z)),ol(Ge,Ge,Yg(Me*B[0],-Me*B[1],Me*B[2])),pu(Ge,Ge,T[0]),oc(Ge,Ge,T[1]),cd(Ge,Ge,T[2]),Ge}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T=this,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo,Qs,ga;return ro().wrap(function(ll){for(;;)switch(ll.prev=ll.next){case 0:B=this.config,G=B.id,ne=G===void 0?"map":G,Me=B.style,Ge=Me===void 0?"light":Me,Et=B.rotation,Ot=Et===void 0?0:Et,Pn=B.mapInstance,Mn=B.version,Ir=Mn===void 0?"DEFAULTMAP":Mn,Ti=B.mapSize,Ko=Ti===void 0?1e4:Ti,Zo=B.interactive,Qs=Zo===void 0?!0:Zo,ga=(0,Vg.Z)(B,_U),this.viewport=new OI,this.version=Ir,this.simpleMapCoord.setSize(Ko),Ir===d0.SIMPLE&&ga.center&&(ga.center=this.simpleMapCoord.unproject(ga.center)),Pn?(this.map=Pn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new w7((0,we.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ge),bearing:Ot},ga))),this.map.on("load",function(){T.handleCameraChanged()}),Qs&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){T.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return ll.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"initMiniMap",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T=this,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo,Qs;return ro().wrap(function(Ma){for(;;)switch(Ma.prev=Ma.next){case 0:B=this.config,G=B.id,ne=G===void 0?"map":G,Me=B.style,Ge=Me===void 0?"light":Me,Et=B.rotation,Ot=Et===void 0?0:Et,Pn=B.mapInstance,Mn=B.canvas,Ir=Mn===void 0?null:Mn,Ti=B.hasBaseMap,Ko=Ti===void 0?!1:Ti,Zo=(0,Vg.Z)(B,bU),this.viewport=new OI,this.$mapContainer=Ir,this.map=new w7((0,we.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ge),bearing:Ot,canvas:Ir},Zo)),Ko?(Qs=this.map.getCenter(),this.handleMiniCameraChanged(Qs.lng,Qs.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(ll){var Wl=ll.e,jl=Wl.longitude,ju=Wl.latitude,Pu=Wl.scale,Vc=Wl.bearing,dd=Wl.pitch;T.handleMiniCameraChanged(jl,ju,Pu-1.25,Vc,dd)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return Ma.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"exportMap",value:function(l){var g=this.map.getCanvas(),T=l==="jpg"?g==null?void 0:g.toDataURL("image/jpeg"):g==null?void 0:g.toDataURL("image/png");return T}}]),u}(JE))||xR);function O7(a){var p=oL();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function oL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var QE=function(a){(0,ft.Z)(u,a);var p=O7(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return M7}}]),u}(fA),tY=m(6158),sL=m.n(tY),iS=function(){function a(){(0,bt.Z)(this,a)}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,G=u.viewportWidth;this.viewport=new HE({width:G,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T})}},{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(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),xU=["id","attributionControl","style","token","rotation","mapInstance"],IA,H1;function CU(a){var p=wR();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function wR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function eT(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}eT(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=sL();var SR=0,aL="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",wU=(IA=(0,As.b2)(),IA(H1=function(a){(0,ft.Z)(u,a);var p=CU(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,G=T.y;return[B-g.x,G-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),B=T.x,G=B===void 0?0:B,ne=T.y,Me=ne===void 0?0:ne,Ge=T.z,Et=Ge===void 0?0:Ge;return{x:G,y:Me,z:Et}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),Me=ne.meterInMercatorCoordinateUnits(),Ge=on();return ql(Ge,Ge,Yg(ne.x-G.x,ne.y-G.y,ne.z||0-G.z)),ol(Ge,Ge,Yg(Me*B[0],-Me*B[1],Me*B[2])),pu(Ge,Ge,T[0]),oc(Ge,Ge,T[1]),cd(Ge,Ge,T[2]),Ge}},{key:"init",value:function(){var c=(0,Na.Z)(ro().mark(function g(){var T=this,B,G,ne,Me,Ge,Et,Ot,Pn,Mn,Ir,Ti,Ko,Zo;return ro().wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:B=this.config,G=B.id,ne=G===void 0?"map":G,Me=B.attributionControl,Ge=Me===void 0?!1:Me,Et=B.style,Ot=Et===void 0?"light":Et,Pn=B.token,Mn=Pn===void 0?aL:Pn,Ir=B.rotation,Ti=Ir===void 0?0:Ir,Ko=B.mapInstance,Zo=(0,Vg.Z)(B,xU),this.viewport=new iS,!Ko&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),Mn===aL&&Ot!=="blank"&&!window.mapboxgl.accessToken&&!Ko&&console.warn(this.configService.getSceneWarninfo("MapToken")),!Ko&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=Mn),Ko?(this.map=Ko,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.mapboxgl.Map((0,we.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ot),attributionControl:Ge,bearing:Ti},Zo))),this.map.on("load",function(){T.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return ga.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),G=1;G1?T-1:0),G=1;G=mR&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this.getZoom()>u&&this.setZoom(u),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(u){if(u=u==null?qD:u,u=qD&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this.getPitch()JD)throw new Error("maxPitch must be less than or equal to ".concat(JD));if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this.getPitch()>u&&this.setPitch(u),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(u){this.transform.renderWorldCopies=!!u}},{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(u){return this.update(),this.renderTaskQueue.add(u)}},{key:"cancelRenderFrame",value:function(u){return this.renderTaskQueue.remove(u)}},{key:"triggerRepaint",value:function(){var u=this;this.frame||(this.frame=CA(function(m){_x.frame(m),u.frame=null,u.update(m)}))}},{key:"update",value:function(u){var m=this;this.frame||(this.frame=CA(function(E){_x.frame(E),m.frame=null,m.renderTaskQueue.run(u)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){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)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var u=this.container;u.classList.add("l7-map");var m=this.canvasContainer=As("div","l7-canvas-container",u);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var u=0,m=0;return this.container&&(u=this.container.clientWidth,m=this.container.clientHeight,u=u===0?400:u,m=m===0?300:m),[u,m]}}]),l}(oN),yR=function(){function o(){(0,xt.Z)(this,o),(0,Ln.Z)(this,"xzReg",-Math.PI*.6),(0,Ln.Z)(this,"yReg",Math.PI*.2),(0,Ln.Z)(this,"earthCameraRadius",200),(0,Ln.Z)(this,"earthCameraZoom",1),(0,Ln.Z)(this,"cameraPosition",Pb()),(0,Ln.Z)(this,"projectionMatrix",yp()),(0,Ln.Z)(this,"modelMatrix",yp()),(0,Ln.Z)(this,"viewMatrix",yp()),(0,Ln.Z)(this,"viewProjectionMatrix",yp()),(0,Ln.Z)(this,"ViewProjectionMatrixUncentered",yp()),(0,Ln.Z)(this,"viewUncenteredMatrix",yp())}return(0,ot.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.viewportHeight,u=c===void 0?1:c,m=l.viewportWidth,E=m===void 0?1:m,M=E/u,Z=.1,ne=1e4,Ce=20;Cr(this.projectionMatrix,Ce,M,Z,ne);var Fe=this.earthCameraRadius*Math.cos(this.xzReg),bt=this.earthCameraRadius*Math.sin(this.xzReg),Bt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=nm(Fe,Bt,bt),US(this.cameraPosition,this.cameraPosition),PF(this.cameraPosition,this.cameraPosition,nm(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),Wx(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var Cn=Pb();$3(Cn,this.cameraPosition,nm(0,1,0));var An=nm(0,1,0);$3(An,Cn,this.cameraPosition);var Pr=nm(0,0,0);Ro(this.viewMatrix,this.cameraPosition,Pr,An),this.viewUncenteredMatrix=Qp(this.viewMatrix),Af(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Af(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(l){this.xzReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(l){this.yReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(l){this.earthCameraZoom+=l,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(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),RG=["id","style","rotation"],Iz,Pz;function QD(o){var d=_R();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function _R(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var eI={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},SN=12,kG=(Iz=(0,os.b2)(),Iz(Pz=function(o){(0,ut.Z)(l,o);var d=QD(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;EMath.abs(M.originalEvent.movementY)?M.originalEvent.movementX>0?c.viewport.rotateY(ne):M.originalEvent.movementX<0&&c.viewport.rotateY(-ne):M.originalEvent.movementY>0?c.viewport.rotateX(ne):M.originalEvent.movementY<0&&c.viewport.rotateX(-ne));var Ce=c.config.offsetCoordinate,Fe=Ce===void 0?!0:Ce;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>SN&&Fe?c.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,ot.Z)(l,[{key:"lngLatToMercator",value:function(u,m){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(u,m,E,M,Z){throw new Error("Method not implemented.")}},{key:"on",value:function(u,m){x_.indexOf(u)!==-1?this.eventEmitter.on(u,m):this.map.on(eI[u]||u,m)}},{key:"off",value:function(u,m){this.map.off(eI[u]||u,m),this.eventEmitter.off(u,m)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E,M,Z,ne,Ce,Fe,bt,Bt;return Wi().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:E=this.config,M=E.id,Z=M===void 0?"map":M,ne=E.style,Ce=ne===void 0?"light":ne,Fe=E.rotation,bt=Fe===void 0?0:Fe,Bt=(0,dm.Z)(E,RG),this.viewport=new yR,this.$mapContainer=this.creatMapContainer(Z),this.map=new Az((0,Oe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ce),bearing:bt},Bt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return An.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;ZMz&&Bt?c.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Oh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,ot.Z)(l,[{key:"lngLatToCoord",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=SA.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Fe=E.z,bt=Fe===void 0?0:Fe;return{x:Z,y:Ce,z:bt}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=SA.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Fe=yp();return C0(Fe,Fe,nm(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),Jd(Fe,Fe,nm(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Fe,Fe,E[0]),u0(Fe,Fe,E[1]),c0(Fe,Fe,E[2]),Fe}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo,Ds,ta;return Wi().wrap(function(Ua){for(;;)switch(Ua.prev=Ua.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.style,Fe=Ce===void 0?"light":Ce,bt=M.rotation,Bt=bt===void 0?0:bt,Cn=M.mapInstance,An=M.version,Pr=An===void 0?"DEFAULTMAP":An,ti=M.mapSize,ho=ti===void 0?1e4:ti,bo=M.interactive,Ds=bo===void 0?!0:bo,ta=(0,dm.Z)(M,XP),this.viewport=new bA,this.version=Pr,this.simpleMapCoord.setSize(ho),Pr==="SIMPLE"&&ta.center&&(ta.center=this.simpleMapCoord.unproject(ta.center)),Cn?(this.map=Cn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new vR((0,Oe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Fe),bearing:Bt},ta))),this.map.on("load",function(){E.handleCameraChanged()}),Ds&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){E.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return Ua.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"initMiniMap",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo,Ds;return Wi().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.style,Fe=Ce===void 0?"light":Ce,bt=M.rotation,Bt=bt===void 0?0:bt,Cn=M.mapInstance,An=M.canvas,Pr=An===void 0?null:An,ti=M.hasBaseMap,ho=ti===void 0?!1:ti,bo=(0,dm.Z)(M,NG),this.viewport=new bA,this.$mapContainer=Pr,this.map=new vR((0,Oe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Fe),bearing:Bt,canvas:Pr},bo)),ho?(Ds=this.map.getCenter(),this.handleMiniCameraChanged(Ds.lng,Ds.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(Ua){var pl=Ua.e,ru=pl.longitude,Iu=pl.latitude,Vu=pl.scale,th=pl.bearing,yh=pl.pitch;E.handleMiniCameraChanged(ru,Iu,Vu-1.25,th,yh)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return aa.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"exportMap",value:function(u){var m=this.map.getCanvas(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}}]),l}(Kv))||Lz);function BG(o){var d=zG();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function zG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var AN=function(o){(0,ut.Z)(l,o);var d=BG(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return bR}}]),l}(V2),UG=_(6158),Zw=_.n(UG),DN=function(){function o(){(0,xt.Z)(this,o)}return(0,ot.Z)(o,[{key:"syncWithMapCamera",value:function(l){var c=l.center,u=l.zoom,m=l.pitch,E=l.bearing,M=l.viewportHeight,Z=l.viewportWidth;this.viewport=new N6({width:Z,height:M,longitude:c&&c[0],latitude:c&&c[1],zoom:u,pitch:m,bearing:E})}},{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(l,c){return this.viewport.projectFlat(l,c)}}]),o}(),PA=["id","attributionControl","style","token","rotation","mapInstance"],tS,bE;function Rz(o){var d=YP();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function YP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function IN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}IN(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=Zw();var xR=0,wR="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",PN=(tS=(0,os.b2)(),tS(bE=function(o){(0,ut.Z)(l,o);var d=Rz(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Fe=E.z,bt=Fe===void 0?0:Fe;return{x:Z,y:Ce,z:bt}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.mapboxgl.MercatorCoordinate.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Fe=yp();return C0(Fe,Fe,nm(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),Jd(Fe,Fe,nm(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Fe,Fe,E[0]),u0(Fe,Fe,E[1]),c0(Fe,Fe,E[2]),Fe}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti,ho,bo;return Wi().wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.attributionControl,Fe=Ce===void 0?!1:Ce,bt=M.style,Bt=bt===void 0?"light":bt,Cn=M.token,An=Cn===void 0?wR:Cn,Pr=M.rotation,ti=Pr===void 0?0:Pr,ho=M.mapInstance,bo=(0,dm.Z)(M,PA),this.viewport=new DN,!ho&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),An===wR&&Bt!=="blank"&&!window.mapboxgl.accessToken&&!ho&&console.warn(this.configService.getSceneWarninfo("MapToken")),!ho&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=An),ho?(this.map=ho,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.mapboxgl.Map((0,Oe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Fe,bearing:ti},bo))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return ta.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z0&&arguments[0]!==void 0?arguments[0]:{};this.texture(u)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(u){var c=u.width,l=u.height;this.texture.resize(c,l),this.width=c,this.height=l}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var u;(u=this.texture)===null||u===void 0||u.destroy()}this.isDestroy=!0}}]),a}(),pk,gk,LR=(pk=(0,As.b2)(),pk(gk=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,Cn.Z)(this,"createModel",function(u){return new gL(p.gl,u)}),(0,Cn.Z)(this,"createAttribute",function(u){return new TU(p.gl,u)}),(0,Cn.Z)(this,"createBuffer",function(u){return new IR(p.gl,u)}),(0,Cn.Z)(this,"createElements",function(u){return new R7(p.gl,u)}),(0,Cn.Z)(this,"createTexture2D",function(u){return new Qb(p.gl,u)}),(0,Cn.Z)(this,"createFramebuffer",function(u){return new N7(p.gl,u)}),(0,Cn.Z)(this,"useFramebuffer",function(u,c){p.gl({framebuffer:u?u.get():null})(c)}),(0,Cn.Z)(this,"clear",function(u){var c,l=u.color,g=u.depth,T=u.stencil,B=u.framebuffer,G=B===void 0?null:B,ne={color:l,depth:g,stencil:T};ne.framebuffer=G===null?G:G.get(),(c=p.gl)===null||c===void 0||c.clear(ne)}),(0,Cn.Z)(this,"viewport",function(u){var c=u.x,l=u.y,g=u.width,T=u.height;p.gl._gl.viewport(c,l,g,T),p.width=g,p.height=T,p.gl._refresh()}),(0,Cn.Z)(this,"readPixels",function(u){var c=u.framebuffer,l=u.x,g=u.y,T=u.width,B=u.height,G={x:l,y:g,width:T,height:B};return c&&(G.framebuffer=c.get()),p.gl.read(G)}),(0,Cn.Z)(this,"getViewportSize",function(){return{width:p.gl._gl.drawingBufferWidth,height:p.gl._gl.drawingBufferHeight}}),(0,Cn.Z)(this,"getContainer",function(){var u;return(u=p.canvas)===null||u===void 0?void 0:u.parentElement}),(0,Cn.Z)(this,"getCanvas",function(){return p.canvas}),(0,Cn.Z)(this,"getGLContext",function(){return p.gl._gl}),(0,Cn.Z)(this,"destroy",function(){var u,c,l;p.canvas=null,(u=p.gl)===null||u===void 0||(c=u._gl)===null||c===void 0||(l=c.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),p.gl.destroy(),p.gl=null})}return(0,He.Z)(a,[{key:"init",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g,T){var B=this;return ro().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(this.canvas=l,!T){ne.next=5;break}this.gl=T,ne.next=8;break;case 5:return ne.next=7,new Promise(function(Me,Ge){ER()({canvas:B.canvas,attributes:{alpha:!0,antialias:g.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:g.preserveDrawingBuffer,stencil:g.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","WEBGL_lose_context"],profile:!0,onDone:function(Ot,Pn){(Ot||!Pn)&&Ge(Ot),Me(Pn)}})});case 7:this.gl=ne.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ne.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(u){return!!this.getGLContext().getExtension(u)}},{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 u=this.getGLContext();u.disable(u.CULL_FACE)}},{key:"setDirty",value:function(u){this.isDirty=u}},{key:"getDirty",value:function(){return this.isDirty}}]),a}())||gk);function PR(a){var p=kR();return function(){var c=(0,vt.Z)(a),l;if(p){var g=(0,vt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,$t.Z)(this,l)}}function kR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var mL=["selectstart","selecting","selectend"],MR=function(a){(0,ft.Z)(u,a);var p=PR(u);function u(c){var l,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,bt.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,ps.Z)(l),"isEnable",!1),(0,Cn.Z)((0,ps.Z)(l),"onDragStart",function(T){l.box.style.display="block",l.startEvent=l.endEvent=T,l.syncBoxBound(),l.emit("selectstart",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,Cn.Z)((0,ps.Z)(l),"onDragging",function(T){l.endEvent=T,l.syncBoxBound(),l.emit("selecting",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,Cn.Z)((0,ps.Z)(l),"onDragEnd",function(T){l.endEvent=T,l.box.style.display="none",l.emit("selectend",l.getLngLatBox(),l.startEvent,l.endEvent)}),l.scene=c,l.options=g,l}return(0,He.Z)(u,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var l=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var g=to("div",void 0,this.container);g.classList.add("l7-select-box"),l&&g.classList.add(l),g.style.display="none",this.box=g}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var l=this.startEvent,g=l.x,T=l.y,B=this.endEvent,G=B.x,ne=B.y,Me=Math.min(g,G),Ge=Math.min(T,ne),Et=Math.abs(g-G),Ot=Math.abs(T-ne);this.box.style.top="".concat(Ge,"px"),this.box.style.left="".concat(Me,"px"),this.box.style.width="".concat(Et,"px"),this.box.style.height="".concat(Ot,"px")}},{key:"getLngLatBox",value:function(){var l=this.startEvent.lngLat,g=l.lng,T=l.lat,B=this.endEvent.lngLat,G=B.lng,ne=B.lat;return xp([[g,T],[G,ne]])}}]),u}(yf.EventEmitter),OR=function(){function a(p){(0,bt.Z)(this,a);var u=p.id,c=p.map,l=p.canvas,g=p.hasBaseMap,T=qm();this.container=T,c.setContainer(T,u,l,g),T.bind(vr.IRendererService).to(LR).inSingletonScope(),this.sceneService=T.get(vr.ISceneService),this.mapService=T.get(vr.IMapService),this.iconService=T.get(vr.IIconService),this.fontService=T.get(vr.IFontService),this.controlService=T.get(vr.IControlService),this.layerService=T.get(vr.ILayerService),this.debugService=T.get(vr.IDebugService),this.debugService.setEnable(p.debug),this.markerService=T.get(vr.IMarkerService),this.interactionService=T.get(vr.IInteractionService),this.popupService=T.get(vr.IPopupService),this.boxSelect=new MR(this,{}),this.initComponent(u),this.sceneService.init(p),this.initControl()}return(0,He.Z)(a,[{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:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var p=(0,Na.Z)(ro().mark(function c(l){return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"exportMap",value:function(){var p=(0,Na.Z)(ro().mark(function c(l){return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"registerRenderService",value:function(u){var c=this;if(this.sceneService.loaded){var l=new u(this);l.init()}else this.on("loaded",function(){var g=new u(c);g.init()})}},{key:"setBgColor",value:function(u){this.mapService.setBgColor(u)}},{key:"addLayer",value:function(u){var c=this,l=Rb(this.container);if(u.setContainer(l,this.container),this.sceneService.addLayer(u),u.inited){var g=this.initMask(u);this.addMask(g,u.id)}else u.on("inited",function(){var T=c.initMask(u);c.addMask(T,u.id)})}},{key:"initMask",value:function(u){var c=u.getLayerConfig(),l=c.mask,g=c.maskfence,T=c.maskColor,B=T===void 0?"#000":T,G=c.maskOpacity,ne=G===void 0?0:G;if(!(!l||!g)){var Me=new _O().source(g).shape("fill").style({color:B,opacity:ne});return Me}}},{key:"addMask",value:function(u,c){if(u){var l=this.getLayer(c);if(l){var g=Rb(this.container);u.setContainer(g,this.container),l.addMaskLayer(u),this.sceneService.addMask(u)}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(u){return this.layerService.getLayer(u)}},{key:"getLayerByName",value:function(u){return this.layerService.getLayerByName(u)}},{key:"removeLayer",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.layerService.remove(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"removeAllLayer",value:function(){var p=(0,Na.Z)(ro().mark(function c(){return ro().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.layerService.removeAllLayers();case 2:case"end":return g.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(u){this.layerService.setEnableRender(u)}},{key:"addIconFont",value:function(u,c){this.fontService.addIconFont(u,c)}},{key:"addIconFonts",value:function(u){var c=this;u.forEach(function(l){var g=(0,qn.Z)(l,2),T=g[0],B=g[1];c.fontService.addIconFont(T,B)})}},{key:"addFontFace",value:function(u,c){var l=this;this.fontService.once("fontloaded",function(g){l.emit("fontloaded",g)}),this.fontService.addFontFace(u,c)}},{key:"addImage",value:function(){var p=(0,Na.Z)(ro().mark(function c(l,g){return ro().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.iconService.addImage(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"hasImage",value:function(u){return this.iconService.hasImage(u)}},{key:"removeImage",value:function(u){this.iconService.removeImage(u)}},{key:"addIconFontGlyphs",value:function(u,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(u){this.controlService.addControl(u,this.container)}},{key:"removeControl",value:function(u){this.controlService.removeControl(u)}},{key:"getControlByName",value:function(u){return this.controlService.getControlByName(u)}},{key:"addMarker",value:function(u){this.markerService.addMarker(u)}},{key:"addMarkerLayer",value:function(u){this.markerService.addMarkerLayer(u)}},{key:"removeMarkerLayer",value:function(u){this.markerService.removeMarkerLayer(u)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(u){this.popupService.addPopup(u)}},{key:"removePopup",value:function(u){this.popupService.removePopup(u)}},{key:"on",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.on(u,c)}else gw.includes(u)?this.sceneService.on(u,c):this.mapService.on(u,c)}},{key:"once",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.once(u,c)}else gw.includes(u)?this.sceneService.once(u,c):this.mapService.once(u,c)}},{key:"emit",value:function(u,c){gw.indexOf(u)===-1?this.mapService.on(u,c):this.sceneService.emit(u,c)}},{key:"off",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.off(u,c)}else gw.includes(u)?this.sceneService.off(u,c):this.mapService.off(u,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(u){return this.mapService.getCenter(u)}},{key:"setCenter",value:function(u,c){return this.mapService.setCenter(u,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(u){return this.mapService.setPitch(u)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(u){this.mapService.setRotation(u)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(u){this.mapService.panTo(u)}},{key:"panBy",value:function(u,c){this.mapService.panBy(u,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(u){this.mapService.setZoom(u)}},{key:"fitBounds",value:function(u,c){var l=this.sceneService.getSceneConfig(),g=l.fitBoundsOptions,T=l.animate;this.mapService.fitBounds(u,c||(0,we.Z)((0,we.Z)({},g),{},{animate:T}))}},{key:"setZoomAndCenter",value:function(u,c){this.mapService.setZoomAndCenter(u,c)}},{key:"setMapStyle",value:function(u){this.mapService.setMapStyle(u)}},{key:"setMapStatus",value:function(u){this.mapService.setMapStatus(u)}},{key:"pixelToLngLat",value:function(u){return this.mapService.pixelToLngLat(u)}},{key:"lngLatToPixel",value:function(u){return this.mapService.lngLatToPixel(u)}},{key:"containerToLngLat",value:function(u){return this.mapService.containerToLngLat(u)}},{key:"lngLatToContainer",value:function(u){return this.mapService.lngLatToContainer(u)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(u,c){this.container.bind(vr.IPostProcessingPass).to(u).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var u=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){u.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(u){return no.REGISTERED_PROTOCOLS[u]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(u){this.controlService.init({container:la(u)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var u=this.sceneService.getSceneConfig(),c=u.logoVisible,l=u.logoPosition;c&&this.addControl(new Fl({position:l}))}}],[{key:"addProtocol",value:function(u,c){no.REGISTERED_PROTOCOLS[u]=c}},{key:"removeProtocol",value:function(u){delete no.REGISTERED_PROTOCOLS[u]}}]),a}(),B7="2.17.11"},19752:function(nt,V,m){"use strict";m.d(V,{br:function(){return Ff},ot:function(){return J},l_:function(){return fa},$2:function(){return mi},Ie:function(){return Df},OB:function(){return hh},w3:function(){return nn},Jx:function(){return Gc},CB:function(){return ua},ns:function(){return sg},dW:function(){return ap},GI:function(){return ld},YY:function(){return tp},kp:function(){return Hn},jf:function(){return xu},AB:function(){return Cp},Ly:function(){return Td},dN:function(){return Zi},$r:function(){return ti}});var y=m(61329),A=m(67294),b=m(70202),z=function(Le){return function(Oe,et){var hn=(0,A.useRef)(),Rr=(0,A.useRef)(0);(et===void 0||!(0,b.k)(et,hn.current))&&(hn.current=et,Rr.current+=1),Le(Oe,[Rr.current])}},k=z(A.useEffect),N=m(94184),w=m.n(N),I=m(49360),C=m(58146),f=m(290),S="*",P=function(){function Le(){this._events={}}return Le.prototype.on=function(Oe,et,hn){return this._events[Oe]||(this._events[Oe]=[]),this._events[Oe].push({callback:et,once:!!hn}),this},Le.prototype.once=function(Oe,et){return this.on(Oe,et,!0)},Le.prototype.emit=function(Oe){for(var et=this,hn=[],Rr=1;Rr=Le.length?{done:!0}:{done:!1,value:Le[hn++]}},e:function(Ea){throw Ea},f:Rr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wn=!0,li=!1,Fi;return{s:function(){et=et.call(Le)},n:function(){var Ea=et.next();return wn=Ea.done,Ea},e:function(Ea){li=!0,Fi=Ea},f:function(){try{!wn&&et.return!=null&&et.return()}finally{if(li)throw Fi}}}}function ie(Le,Oe){if(Le){if(typeof Le=="string")return he(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return he(Le,Oe)}}function he(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Oe!=null?Oe:{}).map(function(et){var hn=He(et,2),Rr=hn[0],wn=hn[1],li=(0,dt.Z)(Rr),Fi=wn;return typeof Fi=="number"?Fi="".concat(Fi,"px"):typeof Fi=="string"&&(Fi=Fi.replace("'","")),"".concat(li," :").concat(Fi)}).join("; ")};function Lr(Le,Oe){return _r(Le)||To(Le,Oe)||gi(Le,Oe)||ii()}function ii(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(Le,Oe){if(Le){if(typeof Le=="string")return no(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return no(Le,Oe)}}function no(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),yl=et.call(Es,"finallyLoc");if(ta&&yl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},Le}function So(Le,Oe,et,hn,Rr,wn,li){try{var Fi=Le[wn](li),_s=Fi.value}catch(Ea){et(Ea);return}Fi.done?Oe(_s):Promise.resolve(_s).then(hn,Rr)}function ho(Le){return function(){var Oe=this,et=arguments;return new Promise(function(hn,Rr){var wn=Le.apply(Oe,et);function li(_s){So(wn,hn,Rr,li,Fi,"next",_s)}function Fi(_s){So(wn,hn,Rr,li,Fi,"throw",_s)}li(void 0)})}}var go=function(){var Le=ho(ve().mark(function Oe(et,hn){return ve().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(et!=="Map"){wn.next=2;break}return wn.abrupt("return",new y.Map(hn));case 2:if(et!=="Gaode"){wn.next=6;break}return wn.abrupt("return",new y.GaodeMap(hn));case 6:if(et!=="GaodeV1"){wn.next=10;break}return wn.abrupt("return",new y.GaodeMapV1(hn));case 10:if(et!=="GaodeV2"){wn.next=12;break}return wn.abrupt("return",new y.GaodeMapV2(hn));case 12:return wn.abrupt("return",Promise.resolve(Promise.resolve().then(m.bind(m,61329))).then(function(li){var Fi=li.Mapbox;return new Fi(hn)}));case 13:case"end":return wn.stop()}},Oe)}));return function(et,hn){return Le.apply(this,arguments)}}(),ji=function(Le,Oe){return Le?Le.map(function(et,hn){return Object.is(Le[hn],Oe==null?void 0:Oe[hn])?-1:hn}).filter(function(et){return et>=0}):Oe?Oe.map(function(et,hn){return hn}):[]},No=function(Le,Oe){var et=(0,A.useRef)();(0,A.useEffect)(function(){var hn=ji(et.current,Oe),Rr=et.current;return et.current=Oe,Le(hn,Rr,Oe)},Oe)},dn=No,Ve=m(45210),yt={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},Ct=Object.keys(yt);function Wt(Le){return xt(Le)||Tt(Le)||Mt(Le)||sn()}function sn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(Le,Oe){if(Le){if(typeof Le=="string")return Ht(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return Ht(Le,Oe)}}function Tt(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function xt(Le){if(Array.isArray(Le))return Ht(Le)}function Ht(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function Kn(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Rr,wn;for(wn=0;wn=0)&&(et[Rr]=Le[Rr]);return et}var Or=A.createContext(null),mi=(0,A.memo)((0,A.forwardRef)(function(Oe,et){var hn=Oe.id,Rr=Oe.style,wn=Oe.className,li=Oe.map,Fi=Oe.mapType,_s=Fi===void 0?"Gaode":Fi,Ea=Oe.mapOptions,Aa=Ea===void 0?{}:Ea,bl=Oe.onLayerManagerCreated,Ql=Oe.onSceneLoaded,Ju=Oe.children,As=zn(Oe,fr),Xa=(0,A.useRef)(),vr=(0,A.useState)(null),qa=_n(vr,2),Ta=qa[0],Du=qa[1],Wc=(0,A.useRef)({scene:null,layerManager:null}),os=Wc.current;(0,A.useEffect)(function(){var ks,Da=!0,Ra=(0,I.Z)(li)?go(_s,Aa):typeof li=="function"?li():li;return Promise.resolve(Ra).then(function(js){if(Da){ks=new y.Scene(ri(ri({},As),{},{id:Xa.current,map:js}));var bs=new Pt({scene:ks});os.scene=ks,os.layerManager=bs,ks.once("loaded",function(){Ql&&Ql(ks),bl&&bl(bs),Du(ks)})}}).catch(function(js){console.error(js)}),function(){Da=!1,ks&&(os.scene=null,os.layerManager=null,ks.destroy())}},[]),Vn(Ta,Oe),(0,A.useImperativeHandle)(et,function(){return{getScene:function(){return Ta},getMap:function(){return Ta.map}}},[Ta]),(0,A.useEffect)(function(){Ta&&Aa.style&&Ta.setMapStyle(Aa.style)},[Aa.style]),k(function(){(0,C.Z)(Ta)||(Aa.center&&(0,f.Z)(Aa.zoom)?Ta.setZoomAndCenter(Aa.zoom,Aa.center):(0,f.Z)(Aa.zoom)?Ta.setZoom(Aa.zoom):Aa.center&&Ta.setCenter(Aa.center))},[Aa.zoom,Aa.center]),(0,A.useEffect)(function(){Ta&&(0,f.Z)(Aa.pitch)&&Ta.setPitch(Aa.pitch)},[Aa.pitch]),(0,A.useEffect)(function(){Ta&&(0,f.Z)(Aa.rotation)&&Ta.setRotation(Aa.rotation)},[Aa.rotation]);var Mo=(0,A.useMemo)(function(){return ri({position:"relative"},Rr)},[Rr]);return A.createElement("div",{id:hn,ref:Xa,style:Mo,className:w()("larkmap",wn)},Ta&&A.createElement(Or.Provider,{value:os},Ju))})),Er=m(77598),ti=function(){var Oe=(0,A.useContext)(Or);if(!Oe)throw new Error("The useScene must be used in the LarkMap container");var et=Oe.scene;return et},di=function(Oe,et,hn){var Rr=ti(),wn=(0,A.useRef)();(0,A.useEffect)(function(){var li=new y.Control(hn);return li.onAdd=function(){return Oe(Rr)},li.onRemove=function(){},wn.current=li,Rr.addControl(li),function(){typeof et=="function"&&et(Rr),wn.current=null,Rr.removeControl(li)}},[]),(0,Er.Z)(function(){var li;(li=wn.current)===null||li===void 0||li.setOptions(hn)},[hn])},rn=function(){var Oe=(0,A.useContext)(Or);if(!Oe)throw new Error("The useLayerManager must be used in the LarkMap container");var et=Oe.layerManager;return et};function Qn(Le,Oe){return pn(Le)||Bt(Le,Oe)||ao(Le,Oe)||Xr()}function Xr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ao(Le,Oe){if(Le){if(typeof Le=="string")return as(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return as(Le,Oe)}}function as(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function ya(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Rr,wn;for(wn=0;wn=0)&&(et[Rr]=Le[Rr]);return et}var ha=function(Oe,et){var hn=et.onCreated,Rr=et.source,wn=ms(et,Ei),li=rn(),Fi=(0,A.useRef)(),_s=(0,A.useRef)(wn),Ea=(0,A.useRef)(Rr);return Fi.current||(Fi.current=new Oe(et),hn&&Fi.current.once("inited",function(){return hn(Fi.current)}),li.addLayer(Fi.current)),(0,Er.Z)(function(){if(Fi.current){var Aa=!(0,Ar.Z)(_s.current,wn);Aa&&(Fi.current.update(wn),_s.current=(0,tn.Z)(wn))}},[wn]),(0,Er.Z)(function(){if(Fi.current){var Aa=Rr.data,bl=ms(Rr,In),Ql=Ea.current,Ju=Ql.data,As=ms(Ql,Li),Xa=Aa!==Ju||!(0,Ar.Z)(bl,As);Xa&&(Fi.current.changeData(Rr),Ea.current=wi({},Rr))}},[Rr]),(0,A.useEffect)(function(){return function(){Fi.current&&(li.removeLayer(Fi.current),Fi.current=null)}},[]),Fi},Ws={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},Ua=function(Oe,et){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ws,Rr=(0,A.useMemo)(function(){return Object.keys(hn)},[hn]),wn=function(Aa){Rr.forEach(function(bl){var Ql=hn[bl],Ju=et[bl];bl&&Ju&&Oe[Aa](Ql,Ju)})},li=function(){return wn("on")},Fi=function(){return wn("off")},_s=(0,A.useRef)(!0);_s.current&&li(),(0,A.useEffect)(function(){return _s.current?_s.current=!1:li(),function(){Fi()}},Rr.map(function(Ea){return et[Ea]})),(0,Ve.Z)(function(){Fi()})},Ao=null,dl=null,$r=m(97582),er={}.toString,Tr=function(Le,Oe){return er.call(Le)==="[object "+Oe+"]"},pr=Tr,ci=function(Le){return pr(Le,"Function")},Eo=function(Le){return Array.isArray?Array.isArray(Le):pr(Le,"Array")},mo=function(Le){var Oe=typeof Le;return Le!==null&&Oe==="object"||Oe==="function"};function Ts(Le,Oe){if(Le){var et;if(Eo(Le))for(var hn=0,Rr=Le.length;hn-1;)oo.call(Le,wn,1);return Le},va=null,Bl=Array.prototype.splice,Fa=function(Oe,et){if(!isArrayLike(Oe))return[];for(var hn=Oe?et.length:0,Rr=hn-1;hn--;){var wn=void 0,li=et[hn];(hn===Rr||li!==wn)&&(wn=li,Bl.call(Oe,li,1))}return Oe},ml=null,la=function(Le,Oe,et){if(!Eo(Le)&&!gt(Le))return Le;var hn=et;return xs(Le,function(Rr,wn){hn=Oe(hn,Rr,wn)}),hn},Nl=la,vs=function(Le,Oe){var et=[];if(!isArrayLike(Le))return et;for(var hn=-1,Rr=[],wn=Le.length;++hnwn[Fi])return 1;if(Rr[Fi]0},au=null,Cn=function(Le,Oe){if(isArray(Le)){for(var et,hn=-1/0,Rr=0;Rrhn&&(et=wn,hn=li)}return et}},Eu=function(Le,Oe){if(isArray(Le)){for(var et,hn=1/0,Rr=0;RrFi&&Aa>Fi);)if(_s.push(Ea),Fi-=Aa,li=li.substr(Rr),!li)return _s.join("");for(;Ea=li.substr(0,1),Aa=measureTextWidth(Ea,et),!(Aa+wn>Fi);)if(_s.push(Ea),Fi-=Aa,li=li.substr(1),!li)return _s.join("");return""+_s.join("")+hn},ed=function(){function Le(){this.map={}}return Le.prototype.has=function(Oe){return this.map[Oe]!==void 0},Le.prototype.get=function(Oe,et){var hn=this.map[Oe];return hn===void 0?et:hn},Le.prototype.set=function(Oe,et){this.map[Oe]=et},Le.prototype.clear=function(){this.map={}},Le.prototype.delete=function(Oe){delete this.map[Oe]},Le.prototype.size=function(){return Object.keys(this.map).length},Le}(),Vh=null;function Kh(Le,Oe){return function(){for(var et=[],hn=0;hnLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function P0(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Rr,wn;for(wn=0;wn=0)&&(et[Rr]=Le[Rr]);return et}var wp="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xf="larkmap-select",Zh=function(Oe,et){var hn=Oe.prefixCls,Rr=Oe.bordered,wn=Rr===void 0?!0:Rr,li=Oe.className,Fi=Oe.getPopupContainer,_s=Oe.dropdownClassName,Ea=Oe.popupClassName,Aa=Oe.listHeight,bl=Aa===void 0?256:Aa,Ql=Oe.placement,Ju=Oe.listItemHeight,As=Ju===void 0?24:Ju,Xa=Oe.disabled,vr=Oe.notFoundContent,qa=Gp(Oe,Qg),Ta=A.useMemo(function(){var os=qa,Mo=os.mode;if(Mo!=="combobox")return Mo===wp?"combobox":Mo},[qa]),Du=(0,Lg.Z)(qa,"suffixIcon","itemIcon"),Wc=w()(Rm({},"".concat(Xf,"-borderless"),!wn),li);return A.createElement(ug.ZP,Lm({ref:et},Du,{listHeight:bl,listItemHeight:As,mode:Ta,prefixCls:Xf,placement:Ql,notFoundContent:vr!=null?vr:"\u5F53\u524D\u65E0\u6570\u636E",className:Wc,getPopupContainer:Fi,dropdownClassName:Ea,disabled:Xa}))},a0=A.forwardRef(Zh);a0.SECRET_COMBOBOX_MODE_DO_NOT_USE=wp,a0.Option=ug.Wx,a0.OptGroup=ug.Xo;var k0=a0;function Zg(Le){"@babel/helpers - typeof";return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},Zg(Le)}var Vm=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function m0(){return m0=Object.assign?Object.assign.bind():function(Le){for(var Oe=1;Oe=0;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),yl=et.call(Es,"finallyLoc");if(ta&&yl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},Le}function $d(Le){return e0(Le)||jg(Le)||xe(Le)||Y0()}function Y0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jg(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function e0(Le){if(Array.isArray(Le))return ut(Le)}function _m(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Rr){return Object.getOwnPropertyDescriptor(Le,Rr).enumerable})),et.push.apply(et,hn)}return et}function Um(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function It(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Rr,wn;for(wn=0;wn=0)&&(et[Rr]=Le[Rr]);return et}var Ut=k0.Option,Vt=function(Oe){var et=Oe.searchParams,hn=Oe.showDistrict,Rr=Oe.showAddress,wn=Oe.onSearchFinish,li=Oe.onChange,Fi=Xe(Oe,Vm),_s=(0,A.useState)([]),Ea=pe(_s,2),Aa=Ea[0],bl=Ea[1];(0,A.useEffect)(function(){wn==null||wn(Aa)},[wn,Aa]);var Ql=(0,im.Z)(function(){var Xa=Pg(Gm().mark(function vr(qa){var Ta,Du,Wc,os;return Gm().wrap(function(ks){for(;;)switch(ks.prev=ks.next){case 0:if(qa){ks.next=3;break}return bl([]),ks.abrupt("return");case 3:return Wc=Bo(ym,Um(Um({},et),{},{keywords:[].concat($d(((Ta=et.keywords)!==null&&Ta!==void 0?Ta:"").split("|")),[qa]).filter(function(Da){return!!Da}).join("|")})),ks.next=6,fetch(Wc);case 6:return ks.next=8,ks.sent.json();case 8:os=ks.sent,bl(((Du=os==null?void 0:os.tips)!==null&&Du!==void 0?Du:[]).filter(function(Da){return Da.location&&Da.location.length}).map(function(Da){var Ra=Da.location.split(","),js=pe(Ra,2),bs=js[0],Qi=js[1];return Da.longitude=+bs,Da.latitude=+Qi,Da}));case 10:case"end":return ks.stop()}},vr)}));return function(vr){return Xa.apply(this,arguments)}}(),{wait:1e3}),Ju=Ql.run,As=(0,A.useCallback)(function(Xa){var vr=Xa&&Aa.find(function(qa){return qa.name===Xa});li==null||li(Xa||void 0,vr||void 0)},[li,Aa]);return A.createElement(k0,m0({className:"".concat(wm),onSearch:Ju,onChange:As,clearIcon:function(){return null}},Fi),Aa.map(function(Xa){var vr="".concat(hn?Xa.district:"").concat(Rr?Xa.address:"");return A.createElement(Ut,{key:Xa.id,value:Xa.name},A.createElement("div",{title:Xa.name,className:"".concat(wm,"__option-name")},Xa.name),vr&&A.createElement("div",{title:vr,className:"".concat(wm,"__option-tip")},vr))}))};Vt.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Yt=m(8961),an=m(53434),vn="larkmap-administrative-location",Rn="https://restapi.amap.com/v3/geocode/regeo";function ur(Le){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},ur(Le)}function Dr(){"use strict";Dr=function(){return Le};var Le={},Oe=Object.prototype,et=Oe.hasOwnProperty,hn=Object.defineProperty||function(Qi,ar,zr){Qi[ar]=zr.value},Rr=typeof Symbol=="function"?Symbol:{},wn=Rr.iterator||"@@iterator",li=Rr.asyncIterator||"@@asyncIterator",Fi=Rr.toStringTag||"@@toStringTag";function _s(Qi,ar,zr){return Object.defineProperty(Qi,ar,{value:zr,enumerable:!0,configurable:!0,writable:!0}),Qi[ar]}try{_s({},"")}catch(Qi){_s=function(zr,Ci,gs){return zr[Ci]=gs}}function Ea(Qi,ar,zr,Ci){var gs=ar&&ar.prototype instanceof Ql?ar:Ql,Es=Object.create(gs.prototype),Pl=new Ra(Ci||[]);return hn(Es,"_invoke",{value:os(Qi,zr,Pl)}),Es}function Aa(Qi,ar,zr){try{return{type:"normal",arg:Qi.call(ar,zr)}}catch(Ci){return{type:"throw",arg:Ci}}}Le.wrap=Ea;var bl={};function Ql(){}function Ju(){}function As(){}var Xa={};_s(Xa,wn,function(){return this});var vr=Object.getPrototypeOf,qa=vr&&vr(vr(js([])));qa&&qa!==Oe&&et.call(qa,wn)&&(Xa=qa);var Ta=As.prototype=Ql.prototype=Object.create(Xa);function Du(Qi){["next","throw","return"].forEach(function(ar){_s(Qi,ar,function(zr){return this._invoke(ar,zr)})})}function Wc(Qi,ar){function zr(gs,Es,Pl,ta){var yl=Aa(Qi[gs],Qi,Es);if(yl.type!=="throw"){var mu=yl.arg,hc=mu.value;return hc&&ur(hc)=="object"&&et.call(hc,"__await")?ar.resolve(hc.__await).then(function(ud){zr("next",ud,Pl,ta)},function(ud){zr("throw",ud,Pl,ta)}):ar.resolve(hc).then(function(ud){mu.value=ud,Pl(mu)},function(ud){return zr("throw",ud,Pl,ta)})}ta(yl.arg)}var Ci;hn(this,"_invoke",{value:function(Es,Pl){function ta(){return new ar(function(yl,mu){zr(Es,Pl,yl,mu)})}return Ci=Ci?Ci.then(ta,ta):ta()}})}function os(Qi,ar,zr){var Ci="suspendedStart";return function(gs,Es){if(Ci==="executing")throw new Error("Generator is already running");if(Ci==="completed"){if(gs==="throw")throw Es;return bs()}for(zr.method=gs,zr.arg=Es;;){var Pl=zr.delegate;if(Pl){var ta=Mo(Pl,zr);if(ta){if(ta===bl)continue;return ta}}if(zr.method==="next")zr.sent=zr._sent=zr.arg;else if(zr.method==="throw"){if(Ci==="suspendedStart")throw Ci="completed",zr.arg;zr.dispatchException(zr.arg)}else zr.method==="return"&&zr.abrupt("return",zr.arg);Ci="executing";var yl=Aa(Qi,ar,zr);if(yl.type==="normal"){if(Ci=zr.done?"completed":"suspendedYield",yl.arg===bl)continue;return{value:yl.arg,done:zr.done}}yl.type==="throw"&&(Ci="completed",zr.method="throw",zr.arg=yl.arg)}}}function Mo(Qi,ar){var zr=ar.method,Ci=Qi.iterator[zr];if(Ci===void 0)return ar.delegate=null,zr==="throw"&&Qi.iterator.return&&(ar.method="return",ar.arg=void 0,Mo(Qi,ar),ar.method==="throw")||zr!=="return"&&(ar.method="throw",ar.arg=new TypeError("The iterator does not provide a '"+zr+"' method")),bl;var gs=Aa(Ci,Qi.iterator,ar.arg);if(gs.type==="throw")return ar.method="throw",ar.arg=gs.arg,ar.delegate=null,bl;var Es=gs.arg;return Es?Es.done?(ar[Qi.resultName]=Es.value,ar.next=Qi.nextLoc,ar.method!=="return"&&(ar.method="next",ar.arg=void 0),ar.delegate=null,bl):Es:(ar.method="throw",ar.arg=new TypeError("iterator result is not an object"),ar.delegate=null,bl)}function ks(Qi){var ar={tryLoc:Qi[0]};1 in Qi&&(ar.catchLoc=Qi[1]),2 in Qi&&(ar.finallyLoc=Qi[2],ar.afterLoc=Qi[3]),this.tryEntries.push(ar)}function Da(Qi){var ar=Qi.completion||{};ar.type="normal",delete ar.arg,Qi.completion=ar}function Ra(Qi){this.tryEntries=[{tryLoc:"root"}],Qi.forEach(ks,this),this.reset(!0)}function js(Qi){if(Qi){var ar=Qi[wn];if(ar)return ar.call(Qi);if(typeof Qi.next=="function")return Qi;if(!isNaN(Qi.length)){var zr=-1,Ci=function gs(){for(;++zr=0;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),yl=et.call(Es,"finallyLoc");if(ta&&yl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},Le}function Hr(Le){return mr(Le)||rr(Le)||Pr(Le)||Br()}function Br(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rr(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function mr(Le){if(Array.isArray(Le))return Ni(Le)}function ni(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Rr){return Object.getOwnPropertyDescriptor(Le,Rr).enumerable})),et.push.apply(et,hn)}return et}function yo(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et2&&arguments[2]!==void 0?arguments[2]:5,Rr=[Oe],wn=cn()(Oe).object(),li=cn()(et).object();if(hn<2)return hn<1?[]:Rr;var Fi={r:(wn.r-li.r)/(hn-1),g:(wn.g-li.g)/(hn-1),b:(wn.b-li.b)/(hn-1)};return(0,Jn.Z)(new Array(hn-2),function(_s,Ea){return Rr.push(cn()({r:(0,wr.Z)(wn.r-Fi.r*(Ea+1),0),g:(0,wr.Z)(wn.g-Fi.g*(Ea+1),0),b:(0,wr.Z)(wn.b-Fi.b*(Ea+1),0)}).hex())}),Rr.push(et),Rr};function kt(Le){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},kt(Le)}function tr(Le,Oe,et){return Oe=Ln(Oe),Oe in Le?Object.defineProperty(Le,Oe,{value:et,enumerable:!0,configurable:!0,writable:!0}):Le[Oe]=et,Le}function Ln(Le){var Oe=ir(Le,"string");return kt(Oe)==="symbol"?Oe:String(Oe)}function ir(Le,Oe){if(kt(Le)!=="object"||Le===null)return Le;var et=Le[Symbol.toPrimitive];if(et!==void 0){var hn=et.call(Le,Oe||"default");if(kt(hn)!=="object")return hn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(Le)}var dr="larkmap-legend-category";function jr(Le){var Oe=Le.labels,et=Le.colors,hn=Le.geometryType,Rr=hn===void 0?"circle":hn,wn=Le.isStrokeColor,li=Le.style,Fi=Le.className;function _s(bl){return wn?{border:"2px solid ".concat(bl)}:{background:bl}}function Ea(bl){return A.createElement("div",{className:w()(dr,Fi),style:li},Oe.map(function(Ql,Ju){return A.createElement("div",{className:"".concat(dr,"__content"),key:Ql},A.createElement("div",{className:w()("".concat(dr,"__content__shape"),tr({},"".concat(dr,"__content__").concat(Rr),Rr)),style:_s(bl[Ju])}),A.createElement("div",{className:"".concat(dr,"labels")},Ql))}))}function Aa(){if(Array.isArray(et))return Ea(et);var bl=Lo(et.startColor,et.endColor,Oe.length);return Ea(bl)}return A.createElement(Aa,null)}jr.defaultProps={geometryType:"circle",isStrokeColor:!1};var Ri=m(36306),Te="larkmap-legend-ramp",qo=function(Oe){var et=Oe[Oe.length-1],hn=Oe[0];return Number.isFinite(hn)||(hn=parseInt(hn,10)),Number.isFinite(et)||(et=parseInt(et,10)),[hn,et]};function Zs(Le){var Oe=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Rr=Le.colors,wn=Oe[0]+hn,li=Oe[Oe.length-1]+hn;return A.createElement(A.Fragment,null,A.createElement("div",{className:"".concat(Te,"__continuous"),style:{background:"linear-gradient(to right,".concat(Rr,")")}}),A.createElement("div",{className:"".concat(Te,"__continuous-labelbar")},A.createElement("span",null,wn),A.createElement("span",null,li)))}function Sa(Le){var Oe=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Rr=Le.colors,wn=(0,A.useRef)(null),li=(0,Ri.Z)(wn),Fi=(li==null?void 0:li.width)/(Rr.length+1),_s=Oe;if(Oe.length+1===Rr.length){var Ea="< "+Oe[0],Aa="\u2265 "+Oe[Oe.length-1];_s.unshift(Ea),_s.push(Aa)}var bl=function(Ju){var As="".concat(Oe[Ju]).concat(hn," - ").concat(Oe[Ju+1]).concat(hn);return As};return A.createElement("div",{className:"".concat(Te,"__dis-continuous"),ref:wn},Number.isNaN(Fi)?null:A.createElement(A.Fragment,null,A.createElement("div",{className:"".concat(Te,"__dis-continuous__colors"),style:{paddingLeft:Fi/2}},Rr==null?void 0:Rr.map(function(Ql,Ju){return A.createElement("div",{key:Ql,title:bl(Ju),className:"".concat(Te,"__dis-continuous__color"),style:{background:Ql,width:Fi}})})),A.createElement("div",{className:"".concat(Te,"__dis-continuous__labels")},Oe==null?void 0:Oe.map(function(Ql){var Ju=Ql+hn;return A.createElement("span",{key:Ql,className:"".concat(Te,"__dis-continuous__label")},Ju)}))))}function ca(Le){var Oe=Le.isContinuous,et=Le.labels,hn=Le.colors,Rr=Le.labelUnit,wn=Le.className,li=Le.style;return A.createElement("div",{className:w()("".concat(Te),wn),style:li},Oe?A.createElement(Zs,{labels:et,labelUnit:Rr,colors:hn}):A.createElement(Sa,{labels:et,labelUnit:Rr,colors:hn}))}ca.defaultProps={isContinuous:!1,labelUnit:""};var Rs=m(67135),ma={point:Rs.DrawPoint,line:Rs.DrawLine,polygon:Rs.DrawPolygon,rect:Rs.DrawRect,circle:Rs.DrawCircle};function ko(Le){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},ko(Le)}function or(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Rr){return Object.getOwnPropertyDescriptor(Le,Rr).enumerable})),et.push.apply(et,hn)}return et}function Ii(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=tt&&++En;else{let tt=-1;for(let at of Xt)(at=gn(at,++tt,Xt))!=null&&(at=+at)>=at&&++En}return En}function I(Xt){return Math.max(1,Math.ceil(Math.log(w(Xt))/Math.LN2)+1)}function C(Xt,gn){let En,tt;if(gn===void 0)for(const at of Xt)at!=null&&(En===void 0?at>=at&&(En=tt=at):(En>at&&(En=at),tt=gt&&(En=tt=gt):(En>gt&&(En=gt),tt=f?10:gt>=S?5:gt>=P?2:1;let lt,St,ln;return at<0?(ln=Math.pow(10,-at)/Ne,lt=Math.round(Xt*ln),St=Math.round(gn*ln),lt/lngn&&--St,ln=-ln):(ln=Math.pow(10,at)*Ne,lt=Math.round(Xt/ln),St=Math.round(gn/ln),lt*lngn&&--St),St0))return[];if(Xt===gn)return[Xt];const tt=gn=at))return[];const lt=gt-at+1,St=new Array(lt);if(tt)if(Ne<0)for(let ln=0;ln0?(Xt=Math.floor(Xt/at)*at,gn=Math.ceil(gn/at)*at):at<0&&(Xt=Math.ceil(Xt*at)/at,gn=Math.floor(gn*at)/at),tt=at}}var de=Array.prototype,fe=de.slice;function ke(Xt,gn){return Xt-gn}function Ie(Xt){for(var gn=0,En=Xt.length,tt=Xt[En-1][1]*Xt[0][0]-Xt[En-1][0]*Xt[0][1];++gn()=>Xt;function be(Xt,gn){for(var En=-1,tt=gn.length,at;++Entt!=Vi>tt&&En<(ki-ln)*(tt-jn)/(Vi-jn)+ln&&(at=-at)}return at}function ye(Xt,gn,En){var tt;return _e(Xt,gn,En)&&Ce(Xt[tt=+(Xt[0]===gn[0])],En[tt],gn[tt])}function _e(Xt,gn,En){return(gn[0]-Xt[0])*(En[1]-Xt[1])===(En[0]-Xt[0])*(gn[1]-Xt[1])}function Ce(Xt,gn,En){return Xt<=gn&&gn<=En||En<=gn&&gn<=Xt}function De(){}var ge=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function je(){var Xt=1,gn=1,En=I,tt=St;function at(ln){var jn=En(ln);if(Array.isArray(jn))jn=jn.slice().sort(ke);else{const Cr=C(ln,we);for(jn=te(...he(Cr[0],Cr[1],jn),jn);jn[jn.length-1]>=Cr[1];)jn.pop();for(;jn[1]gt(ln,Cr))}function gt(ln,jn){const Cr=jn==null?NaN:+jn;if(isNaN(Cr))throw new Error(`invalid value: ${jn}`);var ki=[],Vi=[];return Ne(ln,Cr,function(Ki){tt(Ki,ln,Cr),Ie(Ki)>0?ki.push([Ki]):Vi.push(Ki)}),Vi.forEach(function(Ki){for(var fs=0,Ns=ki.length,Bs;fs=jn,ge[_a<<2].forEach(Ds);++Ki0&&Vi0&&Ki=0&&Cr>=0))throw new Error("invalid size");return Xt=jn,gn=Cr,at},at.thresholds=function(ln){return arguments.length?(En=typeof ln=="function"?ln:Array.isArray(ln)?Be(fe.call(ln)):Be(ln),at):En},at.smooth=function(ln){return arguments.length?(tt=ln?St:De,at):tt===St},at}function we(Xt){return isFinite(Xt)?Xt:NaN}function Pt(Xt,gn){return Xt==null?!1:+Xt>=gn}function dt(Xt){return Xt==null||isNaN(Xt=+Xt)?-1/0:Xt}function He(Xt,gn,En,tt){const at=tt-gn,gt=En-gn,Ne=isFinite(at)||isFinite(gt)?at/gt:Math.sign(at)/Math.sign(gt);return isNaN(Ne)?Xt:Xt+Ne-.5}var bt=m(16479),ft=m.n(bt);function $t(Xt,gn){return ii(Xt)||Lr(Xt,gn)||yn(Xt,gn)||vt()}function vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yn(Xt,gn){if(Xt){if(typeof Xt=="string")return Bn(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return Bn(Xt,gn)}}function Bn(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En1&&arguments[1]!==void 0?arguments[1]:"image/png",En=document.createElement("canvas"),tt=En.getContext("2d");return En.width=Xt.width,En.height=Xt.height,tt.drawImage(Xt,0,0,Xt.width,Xt.height),En.toDataURL(gn)}function To(Xt){var gn=gi(Xt),En=new Image;return En.src=gn.toDataURL(),En}function _r(Xt,gn,En,tt){for(var at=new Uint8ClampedArray(Xt.data),gt=new Uint8ClampedArray(4*En*tt),Ne=0;Ne0){var lt=4*Ne;gt[lt+0]=at[lt+0],gt[lt+1]=at[lt+1],gt[lt+2]=Math.max(at[lt+2],200),gt[lt+3]=at[lt+3]}return To(new ImageData(gt,En,tt))}function Bo(Xt,gn,En){for(var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,at=gn,gt=0,Ne=En,lt=0,St=0;St0){var ln=St%gn,jn=Math.floor(St/gn);at=Math.min(at,ln),gt=Math.max(gt,ln),Ne=Math.min(Ne,jn),lt=Math.max(lt,jn)}return[at-tt,gt+tt,Ne-tt,lt+tt]}function hs(Xt,gn,En,tt,at,gt){for(var Ne=[],lt=0,St=gn;St0?1:-1}return Ne}function ve(Xt,gn,En){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,at=Xt.map(function(Ne){return{x:Ne[0]+gn,y:Ne[1]+En}});if(tt===0)return at;var gt=ft()(at,tt,!0);return gt}var So=function(gn){return new Promise(function(En,tt){var at=new FileReader;at.readAsDataURL(gn),at.onload=function(){return En(at.result)},at.onerror=function(gt){return tt(gt)}})};function ho(Xt,gn,En){var tt=Bo(Xt,gn,En),at=$t(tt,4),gt=at[0],Ne=at[1],lt=at[2],St=at[3],ln=hs(gt,lt,Ne,St,Xt,gn),jn=_r(ln,Ne-gt,St-lt);return To(jn)}function go(Xt,gn,En){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,at=Bo(Xt,gn,En),gt=$t(at,4),Ne=gt[0],lt=gt[1],St=gt[2],ln=gt[3],jn=hs(Ne,St,lt,ln,Xt,gn),Cr=lt-Ne,ki=ln-St,Vi=je().size([Cr,ki]).smooth(!1).thresholds(2),Ki=Vi(jn);return ve(Ki[1].coordinates[0][0],Ne,St,tt)}function ji(Xt,gn){for(var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,tt=0;tt0)&&(Xt.data[4*tt+0]=0,Xt.data[4*tt+1]=0,Xt.data[4*tt+2]=0,Xt.data[4*tt+3]=0);return To(Xt)}function No(Xt,gn,En,tt){for(var at=Bo(gn,En,tt),gt=$t(at,4),Ne=gt[0],lt=gt[1],St=gt[2],ln=gt[3],jn=new Uint8ClampedArray(4*(lt-Ne)*(ln-St)).fill(0),Cr=0,ki=St;ki0&&(jn[Cr*4]=Xt.data[Ki*4],jn[Cr*4+1]=Xt.data[Ki*4+1],jn[Cr*4+2]=Xt.data[Ki*4+2],jn[Cr*4+3]=Xt.data[Ki*4+3]),Cr++}var fs=new ImageData(jn,lt-Ne,ln-St);return To(fs)}function dn(Xt){var gn=document.createElement("a");gn.href=Xt.src,gn.download="image",gn.click()}function Ve(Xt){var gn=document.createElement("a");gn.href=Xt.toDataURL("image/png"),gn.download="image",gn.click()}function yt(Xt){var gn=document.createElement("canvas"),En=gn.getContext("2d");return gn.width=Xt.width,gn.height=Xt.height,En==null||En.drawImage(Xt,0,0),En==null?void 0:En.getImageData(0,0,Xt.width,Xt.height)}var Ct=function(gn){var En=1024,tt=gn.naturalWidth,at=gn.naturalHeight,gt=En/Math.max(at,tt);return{height:at,width:tt,samScale:gt}},Wt=function(gn,En){var tt=1024,at=tt/Math.max(En,gn);return{height:En,width:gn,samScale:at}};function sn(Xt){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},sn(Xt)}function Mt(){"use strict";Mt=function(){return Xt};var Xt={},gn=Object.prototype,En=gn.hasOwnProperty,tt=Object.defineProperty||function(vs,Hi,to){vs[Hi]=to.value},at=typeof Symbol=="function"?Symbol:{},gt=at.iterator||"@@iterator",Ne=at.asyncIterator||"@@asyncIterator",lt=at.toStringTag||"@@toStringTag";function St(vs,Hi,to){return Object.defineProperty(vs,Hi,{value:to,enumerable:!0,configurable:!0,writable:!0}),vs[Hi]}try{St({},"")}catch(vs){St=function(to,sa,Cs){return to[sa]=Cs}}function ln(vs,Hi,to,sa){var Cs=Hi&&Hi.prototype instanceof ki?Hi:ki,Ka=Object.create(Cs.prototype),Wu=new ml(sa||[]);return tt(Ka,"_invoke",{value:oa(vs,to,Wu)}),Ka}function jn(vs,Hi,to){try{return{type:"normal",arg:vs.call(Hi,to)}}catch(sa){return{type:"throw",arg:sa}}}Xt.wrap=ln;var Cr={};function ki(){}function Vi(){}function Ki(){}var fs={};St(fs,gt,function(){return this});var Ns=Object.getPrototypeOf,Bs=Ns&&Ns(Ns(la([])));Bs&&Bs!==gn&&En.call(Bs,gt)&&(fs=Bs);var _a=Ki.prototype=ki.prototype=Object.create(fs);function oo(vs){["next","throw","return"].forEach(function(Hi){St(vs,Hi,function(to){return this._invoke(Hi,to)})})}function Ds(vs,Hi){function to(Cs,Ka,Wu,rc){var Pc=jn(vs[Cs],vs,Ka);if(Pc.type!=="throw"){var vo=Pc.arg,eo=vo.value;return eo&&sn(eo)=="object"&&En.call(eo,"__await")?Hi.resolve(eo.__await).then(function(ds){to("next",ds,Wu,rc)},function(ds){to("throw",ds,Wu,rc)}):Hi.resolve(eo).then(function(ds){vo.value=ds,Wu(vo)},function(ds){return to("throw",ds,Wu,rc)})}rc(Pc.arg)}var sa;tt(this,"_invoke",{value:function(Ka,Wu){function rc(){return new Hi(function(Pc,vo){to(Ka,Wu,Pc,vo)})}return sa=sa?sa.then(rc,rc):rc()}})}function oa(vs,Hi,to){var sa="suspendedStart";return function(Cs,Ka){if(sa==="executing")throw new Error("Generator is already running");if(sa==="completed"){if(Cs==="throw")throw Ka;return Nl()}for(to.method=Cs,to.arg=Ka;;){var Wu=to.delegate;if(Wu){var rc=va(Wu,to);if(rc){if(rc===Cr)continue;return rc}}if(to.method==="next")to.sent=to._sent=to.arg;else if(to.method==="throw"){if(sa==="suspendedStart")throw sa="completed",to.arg;to.dispatchException(to.arg)}else to.method==="return"&&to.abrupt("return",to.arg);sa="executing";var Pc=jn(vs,Hi,to);if(Pc.type==="normal"){if(sa=to.done?"completed":"suspendedYield",Pc.arg===Cr)continue;return{value:Pc.arg,done:to.done}}Pc.type==="throw"&&(sa="completed",to.method="throw",to.arg=Pc.arg)}}}function va(vs,Hi){var to=Hi.method,sa=vs.iterator[to];if(sa===void 0)return Hi.delegate=null,to==="throw"&&vs.iterator.return&&(Hi.method="return",Hi.arg=void 0,va(vs,Hi),Hi.method==="throw")||to!=="return"&&(Hi.method="throw",Hi.arg=new TypeError("The iterator does not provide a '"+to+"' method")),Cr;var Cs=jn(sa,vs.iterator,Hi.arg);if(Cs.type==="throw")return Hi.method="throw",Hi.arg=Cs.arg,Hi.delegate=null,Cr;var Ka=Cs.arg;return Ka?Ka.done?(Hi[vs.resultName]=Ka.value,Hi.next=vs.nextLoc,Hi.method!=="return"&&(Hi.method="next",Hi.arg=void 0),Hi.delegate=null,Cr):Ka:(Hi.method="throw",Hi.arg=new TypeError("iterator result is not an object"),Hi.delegate=null,Cr)}function Bl(vs){var Hi={tryLoc:vs[0]};1 in vs&&(Hi.catchLoc=vs[1]),2 in vs&&(Hi.finallyLoc=vs[2],Hi.afterLoc=vs[3]),this.tryEntries.push(Hi)}function Fa(vs){var Hi=vs.completion||{};Hi.type="normal",delete Hi.arg,vs.completion=Hi}function ml(vs){this.tryEntries=[{tryLoc:"root"}],vs.forEach(Bl,this),this.reset(!0)}function la(vs){if(vs){var Hi=vs[gt];if(Hi)return Hi.call(vs);if(typeof vs.next=="function")return vs;if(!isNaN(vs.length)){var to=-1,sa=function Cs(){for(;++to=0;--Cs){var Ka=this.tryEntries[Cs],Wu=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--to){var sa=this.tryEntries[to];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),Cr}},catch:function(Hi){for(var to=this.tryEntries.length-1;to>=0;--to){var sa=this.tryEntries[to];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,to,sa){return this.delegate={iterator:la(Hi),resultName:to,nextLoc:sa},this.method==="next"&&(this.arg=void 0),Cr}},Xt}function Tt(Xt,gn,En,tt,at,gt,Ne){try{var lt=Xt[gt](Ne),St=lt.value}catch(ln){En(ln);return}lt.done?gn(St):Promise.resolve(St).then(tt,at)}function xt(Xt){return function(){var gn=this,En=arguments;return new Promise(function(tt,at){var gt=Xt.apply(gn,En);function Ne(St){Tt(gt,tt,at,Ne,lt,"next",St)}function lt(St){Tt(gt,tt,at,Ne,lt,"throw",St)}Ne(void 0)})}}function Ht(Xt,gn){if(!(Xt instanceof gn))throw new TypeError("Cannot call a class as a function")}function Vn(Xt,gn){for(var En=0;En1&&ln[1]!==void 0?ln[1]:"float32",Ne=new N,typeof at!="string"){Cr.next=6;break}Cr.t0=Ne.load(at),Cr.next=9;break;case 6:return Cr.next=8,Ne.parse(at);case 8:Cr.t0=Cr.sent;case 9:lt=Cr.t0,St=new si.Tensor(gt,lt.data,lt.shape),this.tensor=St;case 12:case"end":return Cr.stop()}},tt,this)}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"predict",value:function(){var gn=xt(Mt().mark(function tt(at){var gt,Ne,lt;return Mt().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(ln.prev=0,!(this.model===null||at===null||this.tensor===null||this.modelScale===null)){ln.next=6;break}return console.log("model not loaded"),ln.abrupt("return");case 6:if(gt=b({clicks:at,tensor:this.tensor,modelScale:this.modelScale}),gt!==void 0){ln.next=9;break}return ln.abrupt("return");case 9:return ln.next=11,this.model.run(gt);case 11:return Ne=ln.sent,lt=Ne[this.model.outputNames[0]],ln.abrupt("return",lt);case 14:ln.next=20;break;case 16:return ln.prev=16,ln.t0=ln.catch(0),console.log(ln.t0),ln.abrupt("return");case 20:case"end":return ln.stop()}},tt,this,[[0,16]])}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"predictByBox",value:function(){var gn=xt(Mt().mark(function tt(at){return Mt().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",at);case 1:case"end":return Ne.stop()}},tt)}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"exportMaskImage",value:function(En){if(this.imageData!==void 0)return _r(this.imageData,En.data,En.dims[3],En.dims[2])}},{key:"exportMaskClip",value:function(En){return ho(En.data,En.dims[3],En.dims[2])}},{key:"exportImage",value:function(En){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return ji(this.imageData,En.data,tt)}},{key:"exportImageClip",value:function(En){if(this.imageData!==void 0)return No(this.imageData,En.data,En.dims[3],En.dims[2])}},{key:"exportVector",value:function(En){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return go(En.data,En.dims[3],En.dims[2],tt)}},{key:"setWasmUrl",value:function(En){A.env.wasm.wasmPaths=En}},{key:"getImageScale",value:function(En){var tt=En.width,at=En.height;this.modelScale=Wt(tt,at)}}]),Xt}();function Qo(Xt){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},Qo(Xt)}function _n(Xt,gn){return Us(Xt)||xo(Xt,gn)||qr(Xt,gn)||Vr()}function Vr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qr(Xt,gn){if(Xt){if(typeof Xt=="string")return Ui(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return Ui(Xt,gn)}}function Ui(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En0&&arguments[0]!==void 0?arguments[0]:256,En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";zn(this,Xt),mi(this,"tileSize",void 0),mi(this,"type",void 0),mi(this,"initialResolution",void 0),mi(this,"originShift",void 0),this.tileSize=gn,this.type=En,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return Or(Xt,[{key:"lngLatToMeters",value:function(En,tt){var at=En*this.originShift/180,gt=Math.log(Math.tan((90+tt)*Math.PI/360))/(Math.PI/180);return gt=gt*this.originShift/180,[at,gt]}},{key:"metersToLngLat",value:function(En,tt){var at=En/this.originShift*180,gt=tt/this.originShift*180;return gt=180/Math.PI*(2*Math.atan(Math.exp(gt*Math.PI/180))-Math.PI/2),[at,gt]}},{key:"pixelsToMeters",value:function(En,tt,at){var gt=this.resolution(at),Ne=En*gt-this.originShift,lt=(this.type==="tms"?tt:Math.pow(2,at)*256-tt)*gt-this.originShift;return[Ne,lt]}},{key:"metersToPixels",value:function(En,tt,at){var gt=this.resolution(at),Ne=(En+this.originShift)/gt,lt=(tt+this.originShift)/gt;return lt=this.type==="tms"?lt:Math.pow(2,at)*256-lt,[Ne,lt]}},{key:"metersToTile",value:function(En,tt,at){var gt=this.metersToPixels(En,tt,at),Ne=_n(gt,2),lt=Ne[0],St=Ne[1];return this.pixelsToTile(lt,St)}},{key:"tileToMeters",value:function(En,tt,at){return this.pixelsToMeters(En*this.tileSize,tt*this.tileSize,at)}},{key:"tileToLngLat",value:function(En,tt,at){var gt=this.tileToMeters(En,tt,at),Ne=_n(gt,2),lt=Ne[0],St=Ne[1];return this.metersToLngLat(lt,St)}},{key:"pixelsToTile",value:function(En,tt){var at=Math.floor(Math.ceil(En/this.tileSize)-1),gt=Math.floor(Math.ceil(tt/this.tileSize)-1);return[at,gt]}},{key:"pixelsToRaster",value:function(En,tt,at){var gt=this.tileSize<Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En=0;--Cs){var Ka=this.tryEntries[Cs],Wu=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--to){var sa=this.tryEntries[to];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),Cr}},catch:function(Hi){for(var to=this.tryEntries.length-1;to>=0;--to){var sa=this.tryEntries[to];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,to,sa){return this.delegate={iterator:la(Hi),resultName:to,nextLoc:sa},this.method==="next"&&(this.arg=void 0),Cr}},Xt}function Jr(Xt,gn,En,tt,at,gt,Ne){try{var lt=Xt[gt](Ne),St=lt.value}catch(ln){En(ln);return}lt.done?gn(St):Promise.resolve(St).then(tt,at)}function vi(Xt){return function(){var gn=this,En=arguments;return new Promise(function(tt,at){var gt=Xt.apply(gn,En);function Ne(St){Jr(gt,tt,at,Ne,lt,"next",St)}function lt(St){Jr(gt,tt,at,Ne,lt,"throw",St)}Ne(void 0)})}}var Di=null,co=function(gn){var En=Qn(gn,4),tt=En[0],at=En[1],gt=En[2],Ne=En[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[tt,at],[tt,Ne],[gt,Ne],[gt,at],[tt,at]]]}}]}},Qr=function(gn){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[gn]}}]}},oi=function(){return{type:"FeatureCollection",features:[]}};function Zi(Xt){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},Zi(Xt)}function Ar(Xt,gn){return Ei(Xt)||Gn(Xt,gn)||wi(Xt,gn)||tn()}function tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gn(Xt,gn){var En=Xt==null?null:typeof Symbol!="undefined"&&Xt[Symbol.iterator]||Xt["@@iterator"];if(En!=null){var tt,at,gt,Ne,lt=[],St=!0,ln=!1;try{if(gt=(En=En.call(Xt)).next,gn===0){if(Object(En)!==En)return;St=!1}else for(;!(St=(tt=gt.call(En)).done)&&(lt.push(tt.value),lt.length!==gn);St=!0);}catch(jn){ln=!0,at=jn}finally{try{if(!St&&En.return!=null&&(Ne=En.return(),Object(Ne)!==Ne))return}finally{if(ln)throw at}}return lt}}function Ei(Xt){if(Array.isArray(Xt))return Xt}function In(){"use strict";In=function(){return Xt};var Xt={},gn=Object.prototype,En=gn.hasOwnProperty,tt=Object.defineProperty||function(vs,Hi,to){vs[Hi]=to.value},at=typeof Symbol=="function"?Symbol:{},gt=at.iterator||"@@iterator",Ne=at.asyncIterator||"@@asyncIterator",lt=at.toStringTag||"@@toStringTag";function St(vs,Hi,to){return Object.defineProperty(vs,Hi,{value:to,enumerable:!0,configurable:!0,writable:!0}),vs[Hi]}try{St({},"")}catch(vs){St=function(to,sa,Cs){return to[sa]=Cs}}function ln(vs,Hi,to,sa){var Cs=Hi&&Hi.prototype instanceof ki?Hi:ki,Ka=Object.create(Cs.prototype),Wu=new ml(sa||[]);return tt(Ka,"_invoke",{value:oa(vs,to,Wu)}),Ka}function jn(vs,Hi,to){try{return{type:"normal",arg:vs.call(Hi,to)}}catch(sa){return{type:"throw",arg:sa}}}Xt.wrap=ln;var Cr={};function ki(){}function Vi(){}function Ki(){}var fs={};St(fs,gt,function(){return this});var Ns=Object.getPrototypeOf,Bs=Ns&&Ns(Ns(la([])));Bs&&Bs!==gn&&En.call(Bs,gt)&&(fs=Bs);var _a=Ki.prototype=ki.prototype=Object.create(fs);function oo(vs){["next","throw","return"].forEach(function(Hi){St(vs,Hi,function(to){return this._invoke(Hi,to)})})}function Ds(vs,Hi){function to(Cs,Ka,Wu,rc){var Pc=jn(vs[Cs],vs,Ka);if(Pc.type!=="throw"){var vo=Pc.arg,eo=vo.value;return eo&&Zi(eo)=="object"&&En.call(eo,"__await")?Hi.resolve(eo.__await).then(function(ds){to("next",ds,Wu,rc)},function(ds){to("throw",ds,Wu,rc)}):Hi.resolve(eo).then(function(ds){vo.value=ds,Wu(vo)},function(ds){return to("throw",ds,Wu,rc)})}rc(Pc.arg)}var sa;tt(this,"_invoke",{value:function(Ka,Wu){function rc(){return new Hi(function(Pc,vo){to(Ka,Wu,Pc,vo)})}return sa=sa?sa.then(rc,rc):rc()}})}function oa(vs,Hi,to){var sa="suspendedStart";return function(Cs,Ka){if(sa==="executing")throw new Error("Generator is already running");if(sa==="completed"){if(Cs==="throw")throw Ka;return Nl()}for(to.method=Cs,to.arg=Ka;;){var Wu=to.delegate;if(Wu){var rc=va(Wu,to);if(rc){if(rc===Cr)continue;return rc}}if(to.method==="next")to.sent=to._sent=to.arg;else if(to.method==="throw"){if(sa==="suspendedStart")throw sa="completed",to.arg;to.dispatchException(to.arg)}else to.method==="return"&&to.abrupt("return",to.arg);sa="executing";var Pc=jn(vs,Hi,to);if(Pc.type==="normal"){if(sa=to.done?"completed":"suspendedYield",Pc.arg===Cr)continue;return{value:Pc.arg,done:to.done}}Pc.type==="throw"&&(sa="completed",to.method="throw",to.arg=Pc.arg)}}}function va(vs,Hi){var to=Hi.method,sa=vs.iterator[to];if(sa===void 0)return Hi.delegate=null,to==="throw"&&vs.iterator.return&&(Hi.method="return",Hi.arg=void 0,va(vs,Hi),Hi.method==="throw")||to!=="return"&&(Hi.method="throw",Hi.arg=new TypeError("The iterator does not provide a '"+to+"' method")),Cr;var Cs=jn(sa,vs.iterator,Hi.arg);if(Cs.type==="throw")return Hi.method="throw",Hi.arg=Cs.arg,Hi.delegate=null,Cr;var Ka=Cs.arg;return Ka?Ka.done?(Hi[vs.resultName]=Ka.value,Hi.next=vs.nextLoc,Hi.method!=="return"&&(Hi.method="next",Hi.arg=void 0),Hi.delegate=null,Cr):Ka:(Hi.method="throw",Hi.arg=new TypeError("iterator result is not an object"),Hi.delegate=null,Cr)}function Bl(vs){var Hi={tryLoc:vs[0]};1 in vs&&(Hi.catchLoc=vs[1]),2 in vs&&(Hi.finallyLoc=vs[2],Hi.afterLoc=vs[3]),this.tryEntries.push(Hi)}function Fa(vs){var Hi=vs.completion||{};Hi.type="normal",delete Hi.arg,vs.completion=Hi}function ml(vs){this.tryEntries=[{tryLoc:"root"}],vs.forEach(Bl,this),this.reset(!0)}function la(vs){if(vs){var Hi=vs[gt];if(Hi)return Hi.call(vs);if(typeof vs.next=="function")return vs;if(!isNaN(vs.length)){var to=-1,sa=function Cs(){for(;++to=0;--Cs){var Ka=this.tryEntries[Cs],Wu=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--to){var sa=this.tryEntries[to];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),Cr}},catch:function(Hi){for(var to=this.tryEntries.length-1;to>=0;--to){var sa=this.tryEntries[to];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,to,sa){return this.delegate={iterator:la(Hi),resultName:to,nextLoc:sa},this.method==="next"&&(this.arg=void 0),Cr}},Xt}function Li(Xt){return Fr(Xt)||Mi(Xt)||wi(Xt)||nr()}function nr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wi(Xt,gn){if(Xt){if(typeof Xt=="string")return qn(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return qn(Xt,gn)}}function Mi(Xt){if(typeof Symbol!="undefined"&&Xt[Symbol.iterator]!=null||Xt["@@iterator"]!=null)return Array.from(Xt)}function Fr(Xt){if(Array.isArray(Xt))return qn(Xt)}function qn(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En1&&Vi[1]!==void 0?Vi[1]:5,fs.next=3,this.exportVector(Ne,St);case 3:return ln=fs.sent,jn=this.imageBounds,Cr=ln.map(function(Ns){var Bs=[Ns.x*lt.metersPerpixelsX+jn[0],(lt.imageOption.height-Ns.y)*lt.metersPerpixelsY+jn[1]],_a=lt.mapHelper.metersToLngLat(Bs[0],Bs[1]);return _a}),ki=Qr(Cr),fs.abrupt("return",ki);case 8:case"end":return fs.stop()}},gt,this)}));function at(gt){return tt.apply(this,arguments)}return at}()},{key:"lngLat2ImagePixel",value:function(at){if(this.imageBounds){var gt=this.mapHelper.lngLatToMeters(at[0],at[1]),Ne=Ar(gt,2),lt=Ne[0],St=Ne[1],ln=(lt-this.imageBounds[0])/this.metersPerpixelsX,jn=(St-this.imageBounds[1])/this.metersPerpixelsY;return jn=this.imageOption.height-jn,[ln,jn]}}}]),En}(uo)},86500:function(nt,V,m){"use strict";m.d(V,{T6:function(){return P},VD:function(){return W},WE:function(){return w},Yt:function(){return te},lC:function(){return b},py:function(){return N},rW:function(){return A},s:function(){return C},ve:function(){return k},vq:function(){return I}});var y=m(90279);function A(q,ie,he){return{r:(0,y.sh)(q,255)*255,g:(0,y.sh)(ie,255)*255,b:(0,y.sh)(he,255)*255}}function b(q,ie,he){q=(0,y.sh)(q,255),ie=(0,y.sh)(ie,255),he=(0,y.sh)(he,255);var de=Math.max(q,ie,he),fe=Math.min(q,ie,he),ke=0,Ie=0,Be=(de+fe)/2;if(de===fe)Ie=0,ke=0;else{var be=de-fe;switch(Ie=Be>.5?be/(2-de-fe):be/(de+fe),de){case q:ke=(ie-he)/be+(ie1&&(he-=1),he<1/6?q+(ie-q)*(6*he):he<1/2?ie:he<2/3?q+(ie-q)*(2/3-he)*6:q}function k(q,ie,he){var de,fe,ke;if(q=(0,y.sh)(q,360),ie=(0,y.sh)(ie,100),he=(0,y.sh)(he,100),ie===0)fe=he,ke=he,de=he;else{var Ie=he<.5?he*(1+ie):he+ie-he*ie,Be=2*he-Ie;de=z(Be,Ie,q+1/3),fe=z(Be,Ie,q),ke=z(Be,Ie,q-1/3)}return{r:de*255,g:fe*255,b:ke*255}}function N(q,ie,he){q=(0,y.sh)(q,255),ie=(0,y.sh)(ie,255),he=(0,y.sh)(he,255);var de=Math.max(q,ie,he),fe=Math.min(q,ie,he),ke=0,Ie=de,Be=de-fe,be=de===0?0:Be/de;if(de===fe)ke=0;else{switch(de){case q:ke=(ie-he)/Be+(ie>16,g:(q&65280)>>8,b:q&255}}},48701:function(nt,V,m){"use strict";m.d(V,{R:function(){return y}});var y={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"}},1350:function(nt,V,m){"use strict";m.d(V,{uA:function(){return z}});var y=m(86500),A=m(48701),b=m(90279);function z(W){var te={r:0,g:0,b:0},q=1,ie=null,he=null,de=null,fe=!1,ke=!1;return typeof W=="string"&&(W=S(W)),typeof W=="object"&&(P(W.r)&&P(W.g)&&P(W.b)?(te=(0,y.rW)(W.r,W.g,W.b),fe=!0,ke=String(W.r).substr(-1)==="%"?"prgb":"rgb"):P(W.h)&&P(W.s)&&P(W.v)?(ie=(0,b.JX)(W.s),he=(0,b.JX)(W.v),te=(0,y.WE)(W.h,ie,he),fe=!0,ke="hsv"):P(W.h)&&P(W.s)&&P(W.l)&&(ie=(0,b.JX)(W.s),de=(0,b.JX)(W.l),te=(0,y.ve)(W.h,ie,de),fe=!0,ke="hsl"),Object.prototype.hasOwnProperty.call(W,"a")&&(q=W.a)),q=(0,b.Yq)(q),{ok:fe,format:W.format||ke,r:Math.min(255,Math.max(te.r,0)),g:Math.min(255,Math.max(te.g,0)),b:Math.min(255,Math.max(te.b,0)),a:q}}var k="[-\\+]?\\d+%?",N="[-\\+]?\\d*\\.\\d+%?",w="(?:".concat(N,")|(?:").concat(k,")"),I="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),C="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),f={CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+C),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 S(W){if(W=W.trim().toLowerCase(),W.length===0)return!1;var te=!1;if(A.R[W])W=A.R[W],te=!0;else if(W==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var q=f.rgb.exec(W);return q?{r:q[1],g:q[2],b:q[3]}:(q=f.rgba.exec(W),q?{r:q[1],g:q[2],b:q[3],a:q[4]}:(q=f.hsl.exec(W),q?{h:q[1],s:q[2],l:q[3]}:(q=f.hsla.exec(W),q?{h:q[1],s:q[2],l:q[3],a:q[4]}:(q=f.hsv.exec(W),q?{h:q[1],s:q[2],v:q[3]}:(q=f.hsva.exec(W),q?{h:q[1],s:q[2],v:q[3],a:q[4]}:(q=f.hex8.exec(W),q?{r:(0,y.VD)(q[1]),g:(0,y.VD)(q[2]),b:(0,y.VD)(q[3]),a:(0,y.T6)(q[4]),format:te?"name":"hex8"}:(q=f.hex6.exec(W),q?{r:(0,y.VD)(q[1]),g:(0,y.VD)(q[2]),b:(0,y.VD)(q[3]),format:te?"name":"hex"}:(q=f.hex4.exec(W),q?{r:(0,y.VD)(q[1]+q[1]),g:(0,y.VD)(q[2]+q[2]),b:(0,y.VD)(q[3]+q[3]),a:(0,y.T6)(q[4]+q[4]),format:te?"name":"hex8"}:(q=f.hex3.exec(W),q?{r:(0,y.VD)(q[1]+q[1]),g:(0,y.VD)(q[2]+q[2]),b:(0,y.VD)(q[3]+q[3]),format:te?"name":"hex"}:!1)))))))))}function P(W){return!!f.CSS_UNIT.exec(String(W))}},10274:function(nt,V,m){"use strict";m.d(V,{C:function(){return k}});var y=m(86500),A=m(48701),b=m(1350),z=m(90279),k=function(){function w(I,C){I===void 0&&(I=""),C===void 0&&(C={});var f;if(I instanceof w)return I;typeof I=="number"&&(I=(0,y.Yt)(I)),this.originalInput=I;var S=(0,b.uA)(I);this.originalInput=I,this.r=S.r,this.g=S.g,this.b=S.b,this.a=S.a,this.roundA=Math.round(100*this.a)/100,this.format=(f=C.format)!==null&&f!==void 0?f:S.format,this.gradientType=C.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=S.ok}return w.prototype.isDark=function(){return this.getBrightness()<128},w.prototype.isLight=function(){return!this.isDark()},w.prototype.getBrightness=function(){var I=this.toRgb();return(I.r*299+I.g*587+I.b*114)/1e3},w.prototype.getLuminance=function(){var I=this.toRgb(),C,f,S,P=I.r/255,W=I.g/255,te=I.b/255;return P<=.03928?C=P/12.92:C=Math.pow((P+.055)/1.055,2.4),W<=.03928?f=W/12.92:f=Math.pow((W+.055)/1.055,2.4),te<=.03928?S=te/12.92:S=Math.pow((te+.055)/1.055,2.4),.2126*C+.7152*f+.0722*S},w.prototype.getAlpha=function(){return this.a},w.prototype.setAlpha=function(I){return this.a=(0,z.Yq)(I),this.roundA=Math.round(100*this.a)/100,this},w.prototype.isMonochrome=function(){var I=this.toHsl().s;return I===0},w.prototype.toHsv=function(){var I=(0,y.py)(this.r,this.g,this.b);return{h:I.h*360,s:I.s,v:I.v,a:this.a}},w.prototype.toHsvString=function(){var I=(0,y.py)(this.r,this.g,this.b),C=Math.round(I.h*360),f=Math.round(I.s*100),S=Math.round(I.v*100);return this.a===1?"hsv(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsva(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHsl=function(){var I=(0,y.lC)(this.r,this.g,this.b);return{h:I.h*360,s:I.s,l:I.l,a:this.a}},w.prototype.toHslString=function(){var I=(0,y.lC)(this.r,this.g,this.b),C=Math.round(I.h*360),f=Math.round(I.s*100),S=Math.round(I.l*100);return this.a===1?"hsl(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsla(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHex=function(I){return I===void 0&&(I=!1),(0,y.vq)(this.r,this.g,this.b,I)},w.prototype.toHexString=function(I){return I===void 0&&(I=!1),"#"+this.toHex(I)},w.prototype.toHex8=function(I){return I===void 0&&(I=!1),(0,y.s)(this.r,this.g,this.b,this.a,I)},w.prototype.toHex8String=function(I){return I===void 0&&(I=!1),"#"+this.toHex8(I)},w.prototype.toHexShortString=function(I){return I===void 0&&(I=!1),this.a===1?this.toHexString(I):this.toHex8String(I)},w.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},w.prototype.toRgbString=function(){var I=Math.round(this.r),C=Math.round(this.g),f=Math.round(this.b);return this.a===1?"rgb(".concat(I,", ").concat(C,", ").concat(f,")"):"rgba(".concat(I,", ").concat(C,", ").concat(f,", ").concat(this.roundA,")")},w.prototype.toPercentageRgb=function(){var I=function(C){return"".concat(Math.round((0,z.sh)(C,255)*100),"%")};return{r:I(this.r),g:I(this.g),b:I(this.b),a:this.a}},w.prototype.toPercentageRgbString=function(){var I=function(C){return Math.round((0,z.sh)(C,255)*100)};return this.a===1?"rgb(".concat(I(this.r),"%, ").concat(I(this.g),"%, ").concat(I(this.b),"%)"):"rgba(".concat(I(this.r),"%, ").concat(I(this.g),"%, ").concat(I(this.b),"%, ").concat(this.roundA,")")},w.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var I="#"+(0,y.vq)(this.r,this.g,this.b,!1),C=0,f=Object.entries(A.R);C=0,P=!C&&S&&(I.startsWith("hex")||I==="name");return P?I==="name"&&this.a===0?this.toName():this.toRgbString():(I==="rgb"&&(f=this.toRgbString()),I==="prgb"&&(f=this.toPercentageRgbString()),(I==="hex"||I==="hex6")&&(f=this.toHexString()),I==="hex3"&&(f=this.toHexString(!0)),I==="hex4"&&(f=this.toHex8String(!0)),I==="hex8"&&(f=this.toHex8String()),I==="name"&&(f=this.toName()),I==="hsl"&&(f=this.toHslString()),I==="hsv"&&(f=this.toHsvString()),f||this.toHexString())},w.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},w.prototype.clone=function(){return new w(this.toString())},w.prototype.lighten=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.l+=I/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.brighten=function(I){I===void 0&&(I=10);var C=this.toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(I/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(I/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(I/100)))),new w(C)},w.prototype.darken=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.l-=I/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.tint=function(I){return I===void 0&&(I=10),this.mix("white",I)},w.prototype.shade=function(I){return I===void 0&&(I=10),this.mix("black",I)},w.prototype.desaturate=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.s-=I/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.saturate=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.s+=I/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.greyscale=function(){return this.desaturate(100)},w.prototype.spin=function(I){var C=this.toHsl(),f=(C.h+I)%360;return C.h=f<0?360+f:f,new w(C)},w.prototype.mix=function(I,C){C===void 0&&(C=50);var f=this.toRgb(),S=new w(I).toRgb(),P=C/100,W={r:(S.r-f.r)*P+f.r,g:(S.g-f.g)*P+f.g,b:(S.b-f.b)*P+f.b,a:(S.a-f.a)*P+f.a};return new w(W)},w.prototype.analogous=function(I,C){I===void 0&&(I=6),C===void 0&&(C=30);var f=this.toHsl(),S=360/C,P=[this];for(f.h=(f.h-(S*I>>1)+720)%360;--I;)f.h=(f.h+S)%360,P.push(new w(f));return P},w.prototype.complement=function(){var I=this.toHsl();return I.h=(I.h+180)%360,new w(I)},w.prototype.monochromatic=function(I){I===void 0&&(I=6);for(var C=this.toHsv(),f=C.h,S=C.s,P=C.v,W=[],te=1/I;I--;)W.push(new w({h:f,s:S,v:P})),P=(P+te)%1;return W},w.prototype.splitcomplement=function(){var I=this.toHsl(),C=I.h;return[this,new w({h:(C+72)%360,s:I.s,l:I.l}),new w({h:(C+216)%360,s:I.s,l:I.l})]},w.prototype.onBackground=function(I){var C=this.toRgb(),f=new w(I).toRgb(),S=C.a+f.a*(1-C.a);return new w({r:(C.r*C.a+f.r*f.a*(1-C.a))/S,g:(C.g*C.a+f.g*f.a*(1-C.a))/S,b:(C.b*C.a+f.b*f.a*(1-C.a))/S,a:S})},w.prototype.triad=function(){return this.polyad(3)},w.prototype.tetrad=function(){return this.polyad(4)},w.prototype.polyad=function(I){for(var C=this.toHsl(),f=C.h,S=[this],P=360/I,W=1;W1)&&(I=1),I}function N(I){return I<=1?"".concat(Number(I)*100,"%"):I}function w(I){return I.length===1?"0"+I:String(I)}},68479:function(nt,V,m){"use strict";m.d(V,{iv:function(){return Xt}});function y(tt){if(tt.sheet)return tt.sheet;for(var at=0;at0?P(be,--Ie):0,fe--,Be===10&&(fe=1,de--),Be}function De(){return Be=Ie2||Pt(Be)>3?"":" "}function vt(tt){for(;De();)switch(Pt(Be)){case 0:append(ii(Ie-1),tt);break;case 2:append(bt(Be),tt);break;default:append(from(Be),tt)}return tt}function yn(tt,at){for(;--at&&De()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return we(tt,je()+(at<6&&ge()==32&&De()==32))}function Bn(tt){for(;De();)switch(Be){case tt:return Ie;case 34:case 39:tt!==34&&tt!==39&&Bn(Be);break;case 40:tt===41&&Bn(tt);break;case 92:De();break}return Ie}function Lr(tt,at){for(;De()&&tt+Be!==47+10;)if(tt+Be===42+42&&ge()===47)break;return"/*"+we(at,Ie-1)+"*"+k(tt===47?tt:De())}function ii(tt){for(;!Pt(ge());)De();return we(tt,Ie)}var gi="-ms-",no="-moz-",To="-webkit-",_r="comm",Bo="rule",hs="decl",ve="@page",So="@media",ho="@import",go="@charset",ji="@viewport",No="@supports",dn="@document",Ve="@namespace",yt="@keyframes",Ct="@font-face",Wt="@counter-style",sn="@font-feature-values",Mt="@layer";function Tt(tt,at){for(var gt="",Ne=q(tt),lt=0;lt-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length,gt);return;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],Ne);case RULESET:if(tt.length)return combine(tt.props,function(lt){switch(match(lt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(lt,/:(read-\w+)/,":"+MOZ+"$1")]})],Ne);case"::placeholder":return serialize([copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,MS+"input-$1")]})],Ne)}return""})}}function fr(tt){switch(tt.type){case RULESET:tt.props=tt.props.map(function(at){return combine(tokenize(at),function(gt,Ne,lt){switch(charat(gt,0)){case 12:return substr(gt,1,strlen(gt));case 0:case 40:case 43:case 62:case 126:return gt;case 58:lt[++Ne]==="global"&&(lt[Ne]="",lt[++Ne]="\f"+substr(lt[Ne],Ne=1,-1));case 32:return Ne===1?"":gt;default:switch(Ne){case 0:return tt=gt,sizeof(lt)>1?"":gt;case(Ne=sizeof(lt)-1):case 2:return Ne===2?gt+tt+tt:gt+tt;default:return gt}}})})}}function Kr(tt){return He(ri("",null,null,null,[""],tt=dt(tt),0,[0],tt))}function ri(tt,at,gt,Ne,lt,St,ln,jn,Cr){for(var ki=0,Vi=0,Ki=ln,fs=0,Ns=0,Bs=0,_a=1,oo=1,Ds=1,oa=0,va="",Bl=lt,Fa=St,ml=Ne,la=va;oo;)switch(Bs=oa,oa=De()){case 40:if(Bs!=108&&P(la,Ki-1)==58){S(la+=f(bt(oa),"&","&\f"),"&\f")!=-1&&(Ds=-1);break}case 34:case 39:case 91:la+=bt(oa);break;case 9:case 10:case 13:case 32:la+=$t(Bs);break;case 92:la+=yn(je()-1,7);continue;case 47:switch(ge()){case 42:case 47:ie(uo(Lr(De(),je()),at,gt),Cr);break;default:la+="/"}break;case 123*_a:jn[ki++]=te(la)*Ds;case 125*_a:case 59:case 0:switch(oa){case 0:case 125:oo=0;case 59+Vi:Ds==-1&&(la=f(la,/\f/g,"")),Ns>0&&te(la)-Ki&&ie(Ns>32?Qo(la+";",Ne,gt,Ki-1):Qo(f(la," ","")+";",Ne,gt,Ki-2),Cr);break;case 59:la+=";";default:if(ie(ml=si(la,at,gt,ki,Vi,lt,jn,va,Bl=[],Fa=[],Ki),St),oa===123)if(Vi===0)ri(la,at,ml,ml,Bl,St,Ki,jn,Fa);else switch(fs===99&&P(la,3)===110?100:fs){case 100:case 108:case 109:case 115:ri(tt,ml,ml,Ne&&ie(si(tt,ml,ml,0,0,lt,jn,va,lt,Bl=[],Ki),Fa),lt,Fa,Ki,jn,Ne?Bl:Fa);break;default:ri(la,ml,ml,ml,[""],Fa,0,jn,Fa)}}ki=Vi=Ns=0,_a=Ds=1,va=la="",Ki=ln;break;case 58:Ki=1+te(la),Ns=Bs;default:if(_a<1){if(oa==123)--_a;else if(oa==125&&_a++==0&&Ce()==125)continue}switch(la+=k(oa),oa*_a){case 38:Ds=Vi>0?1:(la+="\f",-1);break;case 44:jn[ki++]=(te(la)-1)*Ds,Ds=1;break;case 64:ge()===45&&(la+=bt(De())),fs=ge(),Vi=Ki=te(va=la+=ii(je())),oa++;break;case 45:Bs===45&&te(la)==2&&(_a=0)}}return St}function si(tt,at,gt,Ne,lt,St,ln,jn,Cr,ki,Vi){for(var Ki=lt-1,fs=lt===0?St:[""],Ns=q(fs),Bs=0,_a=0,oo=0;Bs0?fs[Ds]+" "+oa:f(oa,/&\f/g,fs[Ds])))&&(Cr[oo++]=va);return me(tt,at,gt,lt===0?Bo:jn,Cr,ki,Vi)}function uo(tt,at,gt){return me(tt,at,gt,_r,k(_e()),W(tt,2,-2),0)}function Qo(tt,at,gt,Ne){return me(tt,at,gt,hs,W(tt,0,Ne),W(tt,Ne+1,-1),Ne)}var _n=function(at,gt,Ne){for(var lt=0,St=0;lt=St,St=ge(),lt===38&&St===12&&(gt[Ne]=1),!Pt(St);)De();return we(at,Ie)},Vr=function(at,gt){var Ne=-1,lt=44;do switch(Pt(lt)){case 0:lt===38&&ge()===12&&(gt[Ne]=1),at[Ne]+=_n(Ie-1,gt,Ne);break;case 2:at[Ne]+=bt(lt);break;case 4:if(lt===44){at[++Ne]=ge()===58?"&\f":"",gt[Ne]=at[Ne].length;break}default:at[Ne]+=k(lt)}while(lt=De());return at},qr=function(at,gt){return He(Vr(dt(at),gt))},Ui=new WeakMap,xo=function(at){if(!(at.type!=="rule"||!at.parent||at.length<1)){for(var gt=at.value,Ne=at.parent,lt=at.column===Ne.column&&at.line===Ne.line;Ne.type!=="rule";)if(Ne=Ne.parent,!Ne)return;if(!(at.props.length===1&>.charCodeAt(0)!==58&&!Ui.get(Ne))&&!lt){Ui.set(at,!0);for(var St=[],ln=qr(gt,St),jn=Ne.props,Cr=0,ki=0;Cr-1},Or=function(at){return function(gt,Ne,lt){if(!(gt.type!=="rule"||at.compat)){var St=gt.value.match(/(:first|:nth|:nth-last)-child/g);if(St){for(var ln=!!gt.parent,jn=ln?gt.parent.children:lt,Cr=jn.length-1;Cr>=0;Cr--){var ki=jn[Cr];if(ki.line=0;Ne--)if(!mi(gt[Ne]))return!0;return!1},ti=function(at){at.type="",at.value="",at.return="",at.children="",at.props=""},di=function(at,gt,Ne){mi(at)&&(at.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ti(at)):Er(gt,Ne)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ti(at)))};function rn(tt,at){switch(w(tt,at)){case 5103:return To+"print-"+tt+tt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return To+tt+tt;case 5349:case 4246:case 4810:case 6968:case 2756:return To+tt+no+tt+gi+tt+tt;case 6828:case 4268:return To+tt+gi+tt+tt;case 6165:return To+tt+gi+"flex-"+tt+tt;case 5187:return To+tt+f(tt,/(\w+).+(:[^]+)/,To+"box-$1$2"+gi+"flex-$1$2")+tt;case 5443:return To+tt+gi+"flex-item-"+f(tt,/flex-|-self/,"")+tt;case 4675:return To+tt+gi+"flex-line-pack"+f(tt,/align-content|flex-|-self/,"")+tt;case 5548:return To+tt+gi+f(tt,"shrink","negative")+tt;case 5292:return To+tt+gi+f(tt,"basis","preferred-size")+tt;case 6060:return To+"box-"+f(tt,"-grow","")+To+tt+gi+f(tt,"grow","positive")+tt;case 4554:return To+f(tt,/([^-])(transform)/g,"$1"+To+"$2")+tt;case 6187:return f(f(f(tt,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),tt,"")+tt;case 5495:case 3959:return f(tt,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return f(f(tt,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+gi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+tt+tt;case 4095:case 3583:case 4068:case 2532:return f(tt,/(.+)-inline(.+)/,To+"$1$2")+tt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(tt)-1-at>6)switch(P(tt,at+1)){case 109:if(P(tt,at+4)!==45)break;case 102:return f(tt,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+no+(P(tt,at+3)==108?"$3":"$2-$3"))+tt;case 115:return~S(tt,"stretch")?rn(f(tt,"stretch","fill-available"),at)+tt:tt}break;case 4949:if(P(tt,at+1)!==115)break;case 6444:switch(P(tt,te(tt)-3-(~S(tt,"!important")&&10))){case 107:return f(tt,":",":"+To)+tt;case 101:return f(tt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(P(tt,14)===45?"inline-":"")+"box$3$1"+To+"$2$3$1"+gi+"$2box$3")+tt}break;case 5936:switch(P(tt,at+11)){case 114:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"tb")+tt;case 108:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"tb-rl")+tt;case 45:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"lr")+tt}return To+tt+gi+tt+tt}return tt}var Qn=function(at,gt,Ne,lt){if(at.length>-1&&!at.return)switch(at.type){case hs:at.return=rn(at.value,at.length);break;case yt:return Tt([ye(at,{value:f(at.value,"@","@"+To)})],lt);case Bo:if(at.length)return he(at.props,function(St){switch(C(St,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([ye(at,{props:[f(St,/:(read-\w+)/,":"+no+"$1")]})],lt);case"::placeholder":return Tt([ye(at,{props:[f(St,/:(plac\w+)/,":"+To+"input-$1")]}),ye(at,{props:[f(St,/:(plac\w+)/,":"+no+"$1")]}),ye(at,{props:[f(St,/:(plac\w+)/,gi+"input-$1")]})],lt)}return""})}},Xr=[Qn],ao=function(at){var gt=at.key;if(gt==="css"){var Ne=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Ne,function(_a){var oo=_a.getAttribute("data-emotion");oo.indexOf(" ")!==-1&&(document.head.appendChild(_a),_a.setAttribute("data-s",""))})}var lt=at.stylisPlugins||Xr,St={},ln,jn=[];ln=at.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+gt+' "]'),function(_a){for(var oo=_a.getAttribute("data-emotion").split(" "),Ds=1;Ds=4;++Ne,lt-=4)gt=tt.charCodeAt(Ne)&255|(tt.charCodeAt(++Ne)&255)<<8|(tt.charCodeAt(++Ne)&255)<<16|(tt.charCodeAt(++Ne)&255)<<24,gt=(gt&65535)*1540483477+((gt>>>16)*59797<<16),gt^=gt>>>24,at=(gt&65535)*1540483477+((gt>>>16)*59797<<16)^(at&65535)*1540483477+((at>>>16)*59797<<16);switch(lt){case 3:at^=(tt.charCodeAt(Ne+2)&255)<<16;case 2:at^=(tt.charCodeAt(Ne+1)&255)<<8;case 1:at^=tt.charCodeAt(Ne)&255,at=(at&65535)*1540483477+((at>>>16)*59797<<16)}return at^=at>>>13,at=(at&65535)*1540483477+((at>>>16)*59797<<16),((at^at>>>15)>>>0).toString(36)}var Bt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pn(tt){var at=Object.create(null);return function(gt){return at[gt]===void 0&&(at[gt]=tt(gt)),at[gt]}}var br=`You have illegal escape sequence in your template literal, most likely inside content's property value. +`);var Oz=function(o){(0,ut.Z)(l,o);var d=kz(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return PN}}]),l}(V2),Nz=_(24613),nI=_.n(Nz),CR=["id","attributionControl","style","rotation","mapInstance"],rI,bx;function MN(o){var d=RN();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function RN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function kN(o,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var u=d.head||d.getElementsByTagName("head")[0];if(!u){u=d.createElement("head");var m=d.body||d.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(u,m):d.documentElement.appendChild(u)}var E=d.createElement("style");return E.type="text/css",E.styleSheet?E.styleSheet.cssText=o:E.appendChild(d.createTextNode(o)),u.appendChild(E),E}}kN(`.maplibregl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:-webkit-full-screen{height:100%;width:100%}.maplibregl-map:-moz-full-screen{height:100%;width:100%}.maplibregl-map:-ms-fullscreen{height:100%;width:100%}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{-ms-touch-action:none;touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{-ms-touch-action:none;touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.maplibregl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23999' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{-webkit-animation:maplibregl-spin 2s linear infinite;animation:maplibregl-spin 2s linear infinite}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}}@-webkit-keyframes maplibregl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes maplibregl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;-webkit-box-sizing:content-box;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=nI();var ON=0,NN=(rI=(0,os.b2)(),rI(bx=function(o){(0,ut.Z)(l,o);var d=MN(l);function l(){var c;(0,xt.Z)(this,l);for(var u=arguments.length,m=new Array(u),E=0;E1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},E=this.lngLatToMercator(u,0),M=E.x,Z=E.y;return[M-m.x,Z-m.y]}},{key:"lngLatToMercator",value:function(u,m){var E=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),M=E.x,Z=M===void 0?0:M,ne=E.y,Ce=ne===void 0?0:ne,Fe=E.z,bt=Fe===void 0?0:Fe;return{x:Z,y:Ce,z:bt}}},{key:"getModelMatrix",value:function(u,m,E){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ne=window.maplibregl.MercatorCoordinate.fromLngLat(u,m),Ce=ne.meterInMercatorCoordinateUnits(),Fe=yp();return C0(Fe,Fe,nm(ne.x-Z.x,ne.y-Z.y,ne.z||0-Z.z)),Jd(Fe,Fe,nm(Ce*M[0],-Ce*M[1],Ce*M[2])),mm(Fe,Fe,E[0]),u0(Fe,Fe,E[1]),c0(Fe,Fe,E[2]),Fe}},{key:"init",value:function(){var c=(0,Il.Z)(Wi().mark(function m(){var E=this,M,Z,ne,Ce,Fe,bt,Bt,Cn,An,Pr,ti;return Wi().wrap(function(bo){for(;;)switch(bo.prev=bo.next){case 0:M=this.config,Z=M.id,ne=Z===void 0?"map":Z,Ce=M.attributionControl,Fe=Ce===void 0?!1:Ce,bt=M.style,Bt=bt===void 0?"light":bt,Cn=M.rotation,An=Cn===void 0?0:Cn,Pr=M.mapInstance,ti=(0,dm.Z)(M,CR),this.viewport=new DN,!Pr&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),Pr?(this.map=Pr,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ne),this.map=new window.maplibregl.Map((0,Oe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Bt),attributionControl:Fe,bearing:An},ti))),this.map.on("load",function(){E.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return bo.stop()}},m,this)}));function u(){return c.apply(this,arguments)}return u}()},{key:"destroy",value:function(){var u;(u=this.$mapContainer)===null||u===void 0||(u=u.parentNode)===null||u===void 0||u.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var m,E=arguments.length,M=new Array(E>1?E-1:0),Z=1;Z1?E-1:0),Z=1;Z3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(u),ne=yp();return C0(ne,ne,nm(Z[0],Z[1],m)),Jd(ne,ne,nm(M[0],M[1],M[2])),mm(ne,ne,E[0]),u0(ne,ne,E[1]),c0(ne,ne,E[2]),ne}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(u){var m=this.getMapCanvasContainer(),E=u==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return E}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var u=this.map.getContainer();u&&Ga(u,"tmap-contianer--hide-logo")}}]),l}(Kv);function $N(o){var d=WG();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function WG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var jG=function(o){(0,ut.Z)(l,o);var d=$N(l);function l(){return(0,xt.Z)(this,l),d.apply(this,arguments)}return(0,ot.Z)(l,[{key:"getServiceConstructor",value:function(){return Vz}}]),l}(V2),ZG=_(81550),Wz=_.n(ZG),VN=function(){function o(d,l){(0,xt.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,M=l.size,Z=l.divisor;this.buffer=c,this.attribute={buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},M&&(this.attribute.size=M)}return(0,ot.Z)(o,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),t2,X2,Dy,s_,py,rS,O_,iS,n2,a_,q1,Y2,Nb,q2,HG=(t2={},(0,Ln.Z)(t2,Di.POINTS,"points"),(0,Ln.Z)(t2,Di.LINES,"lines"),(0,Ln.Z)(t2,Di.LINE_LOOP,"line loop"),(0,Ln.Z)(t2,Di.LINE_STRIP,"line strip"),(0,Ln.Z)(t2,Di.TRIANGLES,"triangles"),(0,Ln.Z)(t2,Di.TRIANGLE_FAN,"triangle fan"),(0,Ln.Z)(t2,Di.TRIANGLE_STRIP,"triangle strip"),t2),jz=(X2={},(0,Ln.Z)(X2,Di.STATIC_DRAW,"static"),(0,Ln.Z)(X2,Di.DYNAMIC_DRAW,"dynamic"),(0,Ln.Z)(X2,Di.STREAM_DRAW,"stream"),X2),WN=(Dy={},(0,Ln.Z)(Dy,Di.BYTE,"int8"),(0,Ln.Z)(Dy,Di.INT,"int32"),(0,Ln.Z)(Dy,Di.UNSIGNED_BYTE,"uint8"),(0,Ln.Z)(Dy,Di.UNSIGNED_SHORT,"uint16"),(0,Ln.Z)(Dy,Di.UNSIGNED_INT,"uint32"),(0,Ln.Z)(Dy,Di.FLOAT,"float"),Dy),GG=(s_={},(0,Ln.Z)(s_,Di.ALPHA,"alpha"),(0,Ln.Z)(s_,Di.LUMINANCE,"luminance"),(0,Ln.Z)(s_,Di.LUMINANCE_ALPHA,"luminance alpha"),(0,Ln.Z)(s_,Di.RGB,"rgb"),(0,Ln.Z)(s_,Di.RGBA,"rgba"),(0,Ln.Z)(s_,Di.RGBA4,"rgba4"),(0,Ln.Z)(s_,Di.RGB5_A1,"rgb5 a1"),(0,Ln.Z)(s_,Di.RGB565,"rgb565"),(0,Ln.Z)(s_,Di.DEPTH_COMPONENT,"depth"),(0,Ln.Z)(s_,Di.DEPTH_STENCIL,"depth stencil"),s_),Zz=(py={},(0,Ln.Z)(py,Di.DONT_CARE,"dont care"),(0,Ln.Z)(py,Di.NICEST,"nice"),(0,Ln.Z)(py,Di.FASTEST,"fast"),py),jN=(rS={},(0,Ln.Z)(rS,Di.NEAREST,"nearest"),(0,Ln.Z)(rS,Di.LINEAR,"linear"),(0,Ln.Z)(rS,Di.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,Ln.Z)(rS,Di.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,Ln.Z)(rS,Di.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,Ln.Z)(rS,Di.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),rS),SR=(O_={},(0,Ln.Z)(O_,Di.REPEAT,"repeat"),(0,Ln.Z)(O_,Di.CLAMP_TO_EDGE,"clamp"),(0,Ln.Z)(O_,Di.MIRRORED_REPEAT,"mirror"),O_),ZN=(iS={},(0,Ln.Z)(iS,Di.NONE,"none"),(0,Ln.Z)(iS,Di.BROWSER_DEFAULT_WEBGL,"browser"),iS),Hz=(n2={},(0,Ln.Z)(n2,Di.NEVER,"never"),(0,Ln.Z)(n2,Di.ALWAYS,"always"),(0,Ln.Z)(n2,Di.LESS,"less"),(0,Ln.Z)(n2,Di.LEQUAL,"lequal"),(0,Ln.Z)(n2,Di.GREATER,"greater"),(0,Ln.Z)(n2,Di.GEQUAL,"gequal"),(0,Ln.Z)(n2,Di.EQUAL,"equal"),(0,Ln.Z)(n2,Di.NOTEQUAL,"notequal"),n2),HN=(a_={},(0,Ln.Z)(a_,Di.FUNC_ADD,"add"),(0,Ln.Z)(a_,Di.MIN_EXT,"min"),(0,Ln.Z)(a_,Di.MAX_EXT,"max"),(0,Ln.Z)(a_,Di.FUNC_SUBTRACT,"subtract"),(0,Ln.Z)(a_,Di.FUNC_REVERSE_SUBTRACT,"reverse subtract"),a_),Hw=(q1={},(0,Ln.Z)(q1,Di.ZERO,"zero"),(0,Ln.Z)(q1,Di.ONE,"one"),(0,Ln.Z)(q1,Di.SRC_COLOR,"src color"),(0,Ln.Z)(q1,Di.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,Ln.Z)(q1,Di.SRC_ALPHA,"src alpha"),(0,Ln.Z)(q1,Di.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,Ln.Z)(q1,Di.DST_COLOR,"dst color"),(0,Ln.Z)(q1,Di.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,Ln.Z)(q1,Di.DST_ALPHA,"dst alpha"),(0,Ln.Z)(q1,Di.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,Ln.Z)(q1,Di.CONSTANT_COLOR,"constant color"),(0,Ln.Z)(q1,Di.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,Ln.Z)(q1,Di.CONSTANT_ALPHA,"constant alpha"),(0,Ln.Z)(q1,Di.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,Ln.Z)(q1,Di.SRC_ALPHA_SATURATE,"src alpha saturate"),q1),ER=(Y2={},(0,Ln.Z)(Y2,Di.NEVER,"never"),(0,Ln.Z)(Y2,Di.ALWAYS,"always"),(0,Ln.Z)(Y2,Di.LESS,"less"),(0,Ln.Z)(Y2,Di.LEQUAL,"lequal"),(0,Ln.Z)(Y2,Di.GREATER,"greater"),(0,Ln.Z)(Y2,Di.GEQUAL,"gequal"),(0,Ln.Z)(Y2,Di.EQUAL,"equal"),(0,Ln.Z)(Y2,Di.NOTEQUAL,"notequal"),Y2),MA=(Nb={},(0,Ln.Z)(Nb,Di.ZERO,"zero"),(0,Ln.Z)(Nb,Di.KEEP,"keep"),(0,Ln.Z)(Nb,Di.REPLACE,"replace"),(0,Ln.Z)(Nb,Di.INVERT,"invert"),(0,Ln.Z)(Nb,Di.INCR,"increment"),(0,Ln.Z)(Nb,Di.DECR,"decrement"),(0,Ln.Z)(Nb,Di.INCR_WRAP,"increment wrap"),(0,Ln.Z)(Nb,Di.DECR_WRAP,"decrement wrap"),Nb),GN=(q2={},(0,Ln.Z)(q2,Di.FRONT,"front"),(0,Ln.Z)(q2,Di.BACK,"back"),q2),KN=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type;this.buffer=d.buffer({data:c,usage:jz[u||Di.STATIC_DRAW],type:WN[m||Di.UNSIGNED_BYTE]})}return(0,ot.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset;this.buffer.subdata(c,u)}}]),o}(),JP=function(){function o(d,l){(0,xt.Z)(this,o);var c=l.data,u=l.usage,m=l.type,E=l.count;this.elements=d.elements({data:c,usage:jz[u||Di.STATIC_DRAW],type:WN[m||Di.UNSIGNED_BYTE],count:E})}return(0,ot.Z)(o,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(l){var c=l.data;this.elements.subdata(c)}},{key:"destroy",value:function(){}}]),o}(),lm=function(){function o(d,l){(0,xt.Z)(this,o);var c=l.width,u=l.height,m=l.color,E=l.colors,M={width:c,height:u};Array.isArray(E)&&(M.colors=E.map(function(Z){return Z.get()})),m&&typeof m!="boolean"&&(M.color=m.get()),this.framebuffer=d.framebuffer(M)}return(0,ot.Z)(o,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.framebuffer.resize(c,u)}}]),o}(),xE={}.toString,KG=function(o,d){return xE.call(o)==="[object "+d+"]"},QP=KG,eL=function(o){return QP(o,"Number")},oI=eL,XG=function(o){return o==null},wE=XG,XN=function(o,d,l){return ol?l:o},YG=XN,Yf=_(97582),TR=_(90857),YN=TR,Nl;(function(o){o[o.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",o[o.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",o[o.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",o[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC_COLOR=768]="SRC_COLOR",o[o.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.DST_COLOR=774]="DST_COLOR",o[o.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",o[o.CONSTANT_COLOR=32769]="CONSTANT_COLOR",o[o.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",o[o.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",o[o.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",o[o.FUNC_ADD=32774]="FUNC_ADD",o[o.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",o[o.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",o[o.BLEND_EQUATION=32777]="BLEND_EQUATION",o[o.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",o[o.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",o[o.BLEND_DST_RGB=32968]="BLEND_DST_RGB",o[o.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",o[o.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",o[o.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",o[o.BLEND_COLOR=32773]="BLEND_COLOR",o[o.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",o[o.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",o[o.LINE_WIDTH=2849]="LINE_WIDTH",o[o.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",o[o.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",o[o.CULL_FACE_MODE=2885]="CULL_FACE_MODE",o[o.FRONT_FACE=2886]="FRONT_FACE",o[o.DEPTH_RANGE=2928]="DEPTH_RANGE",o[o.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",o[o.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",o[o.DEPTH_FUNC=2932]="DEPTH_FUNC",o[o.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",o[o.STENCIL_FUNC=2962]="STENCIL_FUNC",o[o.STENCIL_FAIL=2964]="STENCIL_FAIL",o[o.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",o[o.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",o[o.STENCIL_REF=2967]="STENCIL_REF",o[o.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",o[o.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",o[o.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",o[o.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",o[o.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",o[o.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",o[o.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",o[o.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",o[o.VIEWPORT=2978]="VIEWPORT",o[o.SCISSOR_BOX=3088]="SCISSOR_BOX",o[o.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",o[o.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",o[o.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",o[o.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",o[o.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",o[o.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",o[o.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",o[o.RED_BITS=3410]="RED_BITS",o[o.GREEN_BITS=3411]="GREEN_BITS",o[o.BLUE_BITS=3412]="BLUE_BITS",o[o.ALPHA_BITS=3413]="ALPHA_BITS",o[o.DEPTH_BITS=3414]="DEPTH_BITS",o[o.STENCIL_BITS=3415]="STENCIL_BITS",o[o.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",o[o.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",o[o.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",o[o.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",o[o.SAMPLES=32937]="SAMPLES",o[o.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",o[o.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",o[o.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",o[o.VENDOR=7936]="VENDOR",o[o.RENDERER=7937]="RENDERER",o[o.VERSION=7938]="VERSION",o[o.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",o[o.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",o[o.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",o[o.STATIC_DRAW=35044]="STATIC_DRAW",o[o.STREAM_DRAW=35040]="STREAM_DRAW",o[o.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",o[o.ARRAY_BUFFER=34962]="ARRAY_BUFFER",o[o.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",o[o.BUFFER_SIZE=34660]="BUFFER_SIZE",o[o.BUFFER_USAGE=34661]="BUFFER_USAGE",o[o.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",o[o.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",o[o.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",o[o.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",o[o.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",o[o.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",o[o.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",o[o.CULL_FACE=2884]="CULL_FACE",o[o.FRONT=1028]="FRONT",o[o.BACK=1029]="BACK",o[o.FRONT_AND_BACK=1032]="FRONT_AND_BACK",o[o.BLEND=3042]="BLEND",o[o.DEPTH_TEST=2929]="DEPTH_TEST",o[o.DITHER=3024]="DITHER",o[o.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",o[o.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",o[o.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",o[o.SCISSOR_TEST=3089]="SCISSOR_TEST",o[o.STENCIL_TEST=2960]="STENCIL_TEST",o[o.NO_ERROR=0]="NO_ERROR",o[o.INVALID_ENUM=1280]="INVALID_ENUM",o[o.INVALID_VALUE=1281]="INVALID_VALUE",o[o.INVALID_OPERATION=1282]="INVALID_OPERATION",o[o.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",o[o.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",o[o.CW=2304]="CW",o[o.CCW=2305]="CCW",o[o.DONT_CARE=4352]="DONT_CARE",o[o.FASTEST=4353]="FASTEST",o[o.NICEST=4354]="NICEST",o[o.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",o[o.BYTE=5120]="BYTE",o[o.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",o[o.SHORT=5122]="SHORT",o[o.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",o[o.INT=5124]="INT",o[o.UNSIGNED_INT=5125]="UNSIGNED_INT",o[o.FLOAT=5126]="FLOAT",o[o.DOUBLE=5130]="DOUBLE",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.ALPHA=6406]="ALPHA",o[o.RGB=6407]="RGB",o[o.RGBA=6408]="RGBA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",o[o.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",o[o.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",o[o.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",o[o.VERTEX_SHADER=35633]="VERTEX_SHADER",o[o.COMPILE_STATUS=35713]="COMPILE_STATUS",o[o.DELETE_STATUS=35712]="DELETE_STATUS",o[o.LINK_STATUS=35714]="LINK_STATUS",o[o.VALIDATE_STATUS=35715]="VALIDATE_STATUS",o[o.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",o[o.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",o[o.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",o[o.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",o[o.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",o[o.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",o[o.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",o[o.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",o[o.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",o[o.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",o[o.SHADER_TYPE=35663]="SHADER_TYPE",o[o.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",o[o.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",o[o.NEVER=512]="NEVER",o[o.ALWAYS=519]="ALWAYS",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.GEQUAL=518]="GEQUAL",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.KEEP=7680]="KEEP",o[o.REPLACE=7681]="REPLACE",o[o.INCR=7682]="INCR",o[o.DECR=7683]="DECR",o[o.INVERT=5386]="INVERT",o[o.INCR_WRAP=34055]="INCR_WRAP",o[o.DECR_WRAP=34056]="DECR_WRAP",o[o.NEAREST=9728]="NEAREST",o[o.LINEAR=9729]="LINEAR",o[o.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",o[o.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",o[o.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",o[o.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",o[o.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",o[o.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",o[o.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",o[o.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",o[o.TEXTURE_2D=3553]="TEXTURE_2D",o[o.TEXTURE=5890]="TEXTURE",o[o.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",o[o.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",o[o.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",o[o.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",o[o.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",o[o.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",o[o.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",o[o.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",o[o.TEXTURE0=33984]="TEXTURE0",o[o.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",o[o.REPEAT=10497]="REPEAT",o[o.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",o[o.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",o[o.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",o[o.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",o[o.FLOAT_VEC2=35664]="FLOAT_VEC2",o[o.FLOAT_VEC3=35665]="FLOAT_VEC3",o[o.FLOAT_VEC4=35666]="FLOAT_VEC4",o[o.INT_VEC2=35667]="INT_VEC2",o[o.INT_VEC3=35668]="INT_VEC3",o[o.INT_VEC4=35669]="INT_VEC4",o[o.BOOL=35670]="BOOL",o[o.BOOL_VEC2=35671]="BOOL_VEC2",o[o.BOOL_VEC3=35672]="BOOL_VEC3",o[o.BOOL_VEC4=35673]="BOOL_VEC4",o[o.FLOAT_MAT2=35674]="FLOAT_MAT2",o[o.FLOAT_MAT3=35675]="FLOAT_MAT3",o[o.FLOAT_MAT4=35676]="FLOAT_MAT4",o[o.SAMPLER_2D=35678]="SAMPLER_2D",o[o.SAMPLER_CUBE=35680]="SAMPLER_CUBE",o[o.LOW_FLOAT=36336]="LOW_FLOAT",o[o.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",o[o.HIGH_FLOAT=36338]="HIGH_FLOAT",o[o.LOW_INT=36339]="LOW_INT",o[o.MEDIUM_INT=36340]="MEDIUM_INT",o[o.HIGH_INT=36341]="HIGH_INT",o[o.FRAMEBUFFER=36160]="FRAMEBUFFER",o[o.RENDERBUFFER=36161]="RENDERBUFFER",o[o.RGBA4=32854]="RGBA4",o[o.RGB5_A1=32855]="RGB5_A1",o[o.RGB565=36194]="RGB565",o[o.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",o[o.STENCIL_INDEX=6401]="STENCIL_INDEX",o[o.STENCIL_INDEX8=36168]="STENCIL_INDEX8",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",o[o.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",o[o.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",o[o.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",o[o.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",o[o.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",o[o.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",o[o.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",o[o.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",o[o.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",o[o.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",o[o.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",o[o.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",o[o.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",o[o.NONE=0]="NONE",o[o.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",o[o.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",o[o.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",o[o.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",o[o.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",o[o.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",o[o.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",o[o.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",o[o.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",o[o.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",o[o.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",o[o.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",o[o.READ_BUFFER=3074]="READ_BUFFER",o[o.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",o[o.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",o[o.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",o[o.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",o[o.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",o[o.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",o[o.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",o[o.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",o[o.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",o[o.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",o[o.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",o[o.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",o[o.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",o[o.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",o[o.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",o[o.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",o[o.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",o[o.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",o[o.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",o[o.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",o[o.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",o[o.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",o[o.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",o[o.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",o[o.RED=6403]="RED",o[o.RGB8=32849]="RGB8",o[o.RGBA8=32856]="RGBA8",o[o.RGB10_A2=32857]="RGB10_A2",o[o.TEXTURE_3D=32879]="TEXTURE_3D",o[o.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",o[o.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",o[o.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",o[o.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",o[o.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",o[o.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",o[o.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",o[o.SRGB=35904]="SRGB",o[o.SRGB8=35905]="SRGB8",o[o.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",o[o.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",o[o.RGBA32F=34836]="RGBA32F",o[o.RGB32F=34837]="RGB32F",o[o.RGBA16F=34842]="RGBA16F",o[o.RGB16F=34843]="RGB16F",o[o.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",o[o.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",o[o.R11F_G11F_B10F=35898]="R11F_G11F_B10F",o[o.RGB9_E5=35901]="RGB9_E5",o[o.RGBA32UI=36208]="RGBA32UI",o[o.RGB32UI=36209]="RGB32UI",o[o.RGBA16UI=36214]="RGBA16UI",o[o.RGB16UI=36215]="RGB16UI",o[o.RGBA8UI=36220]="RGBA8UI",o[o.RGB8UI=36221]="RGB8UI",o[o.RGBA32I=36226]="RGBA32I",o[o.RGB32I=36227]="RGB32I",o[o.RGBA16I=36232]="RGBA16I",o[o.RGB16I=36233]="RGB16I",o[o.RGBA8I=36238]="RGBA8I",o[o.RGB8I=36239]="RGB8I",o[o.RED_INTEGER=36244]="RED_INTEGER",o[o.RGB_INTEGER=36248]="RGB_INTEGER",o[o.RGBA_INTEGER=36249]="RGBA_INTEGER",o[o.R8=33321]="R8",o[o.RG8=33323]="RG8",o[o.R16F=33325]="R16F",o[o.R32F=33326]="R32F",o[o.RG16F=33327]="RG16F",o[o.RG32F=33328]="RG32F",o[o.R8I=33329]="R8I",o[o.R8UI=33330]="R8UI",o[o.R16I=33331]="R16I",o[o.R16UI=33332]="R16UI",o[o.R32I=33333]="R32I",o[o.R32UI=33334]="R32UI",o[o.RG8I=33335]="RG8I",o[o.RG8UI=33336]="RG8UI",o[o.RG16I=33337]="RG16I",o[o.RG16UI=33338]="RG16UI",o[o.RG32I=33339]="RG32I",o[o.RG32UI=33340]="RG32UI",o[o.R8_SNORM=36756]="R8_SNORM",o[o.RG8_SNORM=36757]="RG8_SNORM",o[o.RGB8_SNORM=36758]="RGB8_SNORM",o[o.RGBA8_SNORM=36759]="RGBA8_SNORM",o[o.RGB10_A2UI=36975]="RGB10_A2UI",o[o.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",o[o.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",o[o.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",o[o.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",o[o.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",o[o.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",o[o.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",o[o.HALF_FLOAT=5131]="HALF_FLOAT",o[o.RG=33319]="RG",o[o.RG_INTEGER=33320]="RG_INTEGER",o[o.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",o[o.CURRENT_QUERY=34917]="CURRENT_QUERY",o[o.QUERY_RESULT=34918]="QUERY_RESULT",o[o.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",o[o.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",o[o.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",o[o.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",o[o.DRAW_BUFFER0=34853]="DRAW_BUFFER0",o[o.DRAW_BUFFER1=34854]="DRAW_BUFFER1",o[o.DRAW_BUFFER2=34855]="DRAW_BUFFER2",o[o.DRAW_BUFFER3=34856]="DRAW_BUFFER3",o[o.DRAW_BUFFER4=34857]="DRAW_BUFFER4",o[o.DRAW_BUFFER5=34858]="DRAW_BUFFER5",o[o.DRAW_BUFFER6=34859]="DRAW_BUFFER6",o[o.DRAW_BUFFER7=34860]="DRAW_BUFFER7",o[o.DRAW_BUFFER8=34861]="DRAW_BUFFER8",o[o.DRAW_BUFFER9=34862]="DRAW_BUFFER9",o[o.DRAW_BUFFER10=34863]="DRAW_BUFFER10",o[o.DRAW_BUFFER11=34864]="DRAW_BUFFER11",o[o.DRAW_BUFFER12=34865]="DRAW_BUFFER12",o[o.DRAW_BUFFER13=34866]="DRAW_BUFFER13",o[o.DRAW_BUFFER14=34867]="DRAW_BUFFER14",o[o.DRAW_BUFFER15=34868]="DRAW_BUFFER15",o[o.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",o[o.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",o[o.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",o[o.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",o[o.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",o[o.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",o[o.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",o[o.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",o[o.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",o[o.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",o[o.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",o[o.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",o[o.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",o[o.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",o[o.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",o[o.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",o[o.SAMPLER_3D=35679]="SAMPLER_3D",o[o.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",o[o.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",o[o.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",o[o.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",o[o.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",o[o.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",o[o.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",o[o.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",o[o.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",o[o.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",o[o.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",o[o.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",o[o.MAX_SAMPLES=36183]="MAX_SAMPLES",o[o.SAMPLER_BINDING=35097]="SAMPLER_BINDING",o[o.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",o[o.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",o[o.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",o[o.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",o[o.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",o[o.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",o[o.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",o[o.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",o[o.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",o[o.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",o[o.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",o[o.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",o[o.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",o[o.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",o[o.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",o[o.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",o[o.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",o[o.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",o[o.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",o[o.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",o[o.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",o[o.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",o[o.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",o[o.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",o[o.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",o[o.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",o[o.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",o[o.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",o[o.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",o[o.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",o[o.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",o[o.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",o[o.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",o[o.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",o[o.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",o[o.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",o[o.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",o[o.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",o[o.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",o[o.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",o[o.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",o[o.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",o[o.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",o[o.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",o[o.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",o[o.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",o[o.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",o[o.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",o[o.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",o[o.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",o[o.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",o[o.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",o[o.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",o[o.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",o[o.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",o[o.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",o[o.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",o[o.UNIFORM_TYPE=35383]="UNIFORM_TYPE",o[o.UNIFORM_SIZE=35384]="UNIFORM_SIZE",o[o.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",o[o.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",o[o.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",o[o.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",o[o.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",o[o.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",o[o.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",o[o.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",o[o.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",o[o.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",o[o.OBJECT_TYPE=37138]="OBJECT_TYPE",o[o.SYNC_CONDITION=37139]="SYNC_CONDITION",o[o.SYNC_STATUS=37140]="SYNC_STATUS",o[o.SYNC_FLAGS=37141]="SYNC_FLAGS",o[o.SYNC_FENCE=37142]="SYNC_FENCE",o[o.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",o[o.UNSIGNALED=37144]="UNSIGNALED",o[o.SIGNALED=37145]="SIGNALED",o[o.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",o[o.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",o[o.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",o[o.WAIT_FAILED=37149]="WAIT_FAILED",o[o.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",o[o.COLOR=6144]="COLOR",o[o.DEPTH=6145]="DEPTH",o[o.STENCIL=6146]="STENCIL",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX",o[o.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",o[o.STREAM_READ=35041]="STREAM_READ",o[o.STREAM_COPY=35042]="STREAM_COPY",o[o.STATIC_READ=35045]="STATIC_READ",o[o.STATIC_COPY=35046]="STATIC_COPY",o[o.DYNAMIC_READ=35049]="DYNAMIC_READ",o[o.DYNAMIC_COPY=35050]="DYNAMIC_COPY",o[o.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",o[o.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",o[o.INVALID_INDEX=4294967295]="INVALID_INDEX",o[o.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",o[o.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",o[o.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",o[o.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",o[o.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",o[o.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",o[o.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",o[o.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",o[o.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",o[o.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",o[o.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",o[o.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",o[o.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",o[o.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",o[o.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",o[o.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",o[o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",o[o.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",o[o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",o[o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",o[o.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",o[o.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",o[o.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",o[o.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",o[o.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",o[o.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",o[o.RGBA32F_EXT=34836]="RGBA32F_EXT",o[o.RGB32F_EXT=34837]="RGB32F_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",o[o.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",o[o.MIN_EXT=32775]="MIN_EXT",o[o.MAX_EXT=32776]="MAX_EXT",o[o.SRGB_EXT=35904]="SRGB_EXT",o[o.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",o[o.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",o[o.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",o[o.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",o[o.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",o[o.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",o[o.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",o[o.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",o[o.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",o[o.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",o[o.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",o[o.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",o[o.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",o[o.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",o[o.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",o[o.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",o[o.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",o[o.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",o[o.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",o[o.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",o[o.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",o[o.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",o[o.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",o[o.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",o[o.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",o[o.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",o[o.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",o[o.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",o[o.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",o[o.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",o[o.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",o[o.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",o[o.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",o[o.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",o[o.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",o[o.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",o[o.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",o[o.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",o[o.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",o[o.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",o[o.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",o[o.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",o[o.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",o[o.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",o[o.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",o[o.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(Nl||(Nl={}));var r0;(function(o){o[o.Buffer=0]="Buffer",o[o.Texture=1]="Texture",o[o.RenderTarget=2]="RenderTarget",o[o.Sampler=3]="Sampler",o[o.Program=4]="Program",o[o.Bindings=5]="Bindings",o[o.InputLayout=6]="InputLayout",o[o.RenderPipeline=7]="RenderPipeline",o[o.ComputePipeline=8]="ComputePipeline",o[o.Readback=9]="Readback",o[o.QueryPool=10]="QueryPool"})(r0||(r0={}));var y0;(function(o){o[o.NEVER=512]="NEVER",o[o.LESS=513]="LESS",o[o.EQUAL=514]="EQUAL",o[o.LEQUAL=515]="LEQUAL",o[o.GREATER=516]="GREATER",o[o.NOTEQUAL=517]="NOTEQUAL",o[o.GEQUAL=518]="GEQUAL",o[o.ALWAYS=519]="ALWAYS"})(y0||(y0={}));var CE;(function(o){o[o.CCW=2305]="CCW",o[o.CW=2304]="CW"})(CE||(CE={}));var sb;(function(o){o[o.NONE=0]="NONE",o[o.FRONT=1]="FRONT",o[o.BACK=2]="BACK",o[o.FRONT_AND_BACK=3]="FRONT_AND_BACK"})(sb||(sb={}));var Wm;(function(o){o[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.SRC=768]="SRC",o[o.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",o[o.DST=774]="DST",o[o.ONE_MINUS_DST=775]="ONE_MINUS_DST",o[o.SRC_ALPHA=770]="SRC_ALPHA",o[o.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",o[o.DST_ALPHA=772]="DST_ALPHA",o[o.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",o[o.CONST=32769]="CONST",o[o.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",o[o.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})(Wm||(Wm={}));var l_;(function(o){o[o.ADD=32774]="ADD",o[o.SUBSTRACT=32778]="SUBSTRACT",o[o.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",o[o.MIN=32775]="MIN",o[o.MAX=32776]="MAX"})(l_||(l_={}));var J1;(function(o){o[o.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",o[o.REPEAT=1]="REPEAT",o[o.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(J1||(J1={}));var s1;(function(o){o[o.POINT=0]="POINT",o[o.BILINEAR=1]="BILINEAR"})(s1||(s1={}));var _1;(function(o){o[o.NO_MIP=0]="NO_MIP",o[o.NEAREST=1]="NEAREST",o[o.LINEAR=2]="LINEAR"})(_1||(_1={}));var b1;(function(o){o[o.POINTS=0]="POINTS",o[o.TRIANGLES=1]="TRIANGLES",o[o.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",o[o.LINES=3]="LINES",o[o.LINE_STRIP=4]="LINE_STRIP"})(b1||(b1={}));var cv;(function(o){o[o.MAP_READ=1]="MAP_READ",o[o.MAP_WRITE=2]="MAP_WRITE",o[o.COPY_SRC=4]="COPY_SRC",o[o.COPY_DST=8]="COPY_DST",o[o.INDEX=16]="INDEX",o[o.VERTEX=32]="VERTEX",o[o.UNIFORM=64]="UNIFORM",o[o.STORAGE=128]="STORAGE",o[o.INDIRECT=256]="INDIRECT",o[o.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(cv||(cv={}));var Fb;(function(o){o[o.STATIC=1]="STATIC",o[o.DYNAMIC=2]="DYNAMIC"})(Fb||(Fb={}));var oS;(function(o){o[o.VERTEX=1]="VERTEX",o[o.INSTANCE=2]="INSTANCE"})(oS||(oS={}));var Gz;(function(o){o.LOADED="loaded"})(Gz||(Gz={}));var wm;(function(o){o[o.TEXTURE_2D=0]="TEXTURE_2D",o[o.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",o[o.TEXTURE_3D=2]="TEXTURE_3D",o[o.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(wm||(wm={}));var Bb;(function(o){o[o.SAMPLED=1]="SAMPLED",o[o.RENDER_TARGET=2]="RENDER_TARGET"})(Bb||(Bb={}));var u_;(function(o){o[o.NONE=0]="NONE",o[o.RED=1]="RED",o[o.GREEN=2]="GREEN",o[o.BLUE=4]="BLUE",o[o.ALPHA=8]="ALPHA",o[o.RGB=7]="RGB",o[o.ALL=15]="ALL"})(u_||(u_={}));var N_;(function(o){o[o.KEEP=7680]="KEEP",o[o.ZERO=0]="ZERO",o[o.REPLACE=7681]="REPLACE",o[o.INVERT=5386]="INVERT",o[o.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",o[o.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",o[o.INCREMENT_WRAP=34055]="INCREMENT_WRAP",o[o.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(N_||(N_={}));function qG(o,d,l,c){var u=wm.TEXTURE_2D,m=1,E=Bb.SAMPLED;return{dimension:u,format:o,width:d,height:l,depthOrArrayLayers:m,mipLevelCount:c,usage:E}}var Xv;(function(o){o[o.Float=0]="Float",o[o.Uint=1]="Uint",o[o.Sint=2]="Sint",o[o.Depth=3]="Depth"})(Xv||(Xv={}));var SE;(function(o){o[o.LOWER_LEFT=0]="LOWER_LEFT",o[o.UPPER_LEFT=1]="UPPER_LEFT"})(SE||(SE={}));var zb;(function(o){o[o.NEGATIVE_ONE=0]="NEGATIVE_ONE",o[o.ZERO=1]="ZERO"})(zb||(zb={}));var tL;(function(o){o[o.OcclusionConservative=0]="OcclusionConservative"})(tL||(tL={}));var Eh;(function(o){o[o.U8=1]="U8",o[o.U16=2]="U16",o[o.U32=3]="U32",o[o.S8=4]="S8",o[o.S16=5]="S16",o[o.S32=6]="S32",o[o.F16=7]="F16",o[o.F32=8]="F32",o[o.BC1=65]="BC1",o[o.BC2=66]="BC2",o[o.BC3=67]="BC3",o[o.BC4_UNORM=68]="BC4_UNORM",o[o.BC4_SNORM=69]="BC4_SNORM",o[o.BC5_UNORM=70]="BC5_UNORM",o[o.BC5_SNORM=71]="BC5_SNORM",o[o.U16_PACKED_5551=97]="U16_PACKED_5551",o[o.U16_PACKED_565=98]="U16_PACKED_565",o[o.D24=129]="D24",o[o.D32F=130]="D32F",o[o.D24S8=131]="D24S8",o[o.D32FS8=132]="D32FS8"})(Eh||(Eh={}));var Bp;(function(o){o[o.R=1]="R",o[o.RG=2]="RG",o[o.RGB=3]="RGB",o[o.RGBA=4]="RGBA",o[o.A=5]="A"})(Bp||(Bp={}));function HQ(o){return o}var Bf;(function(o){o[o.None=0]="None",o[o.Normalized=1]="Normalized",o[o.sRGB=2]="sRGB",o[o.Depth=4]="Depth",o[o.Stencil=8]="Stencil",o[o.RenderTarget=16]="RenderTarget"})(Bf||(Bf={}));function Cg(o,d,l){return o<<16|d<<8|l}var Ku;(function(o){o[o.ALPHA=Cg(Eh.U8,Bp.A,Bf.None)]="ALPHA",o[o.U8_LUMINANCE=Cg(Eh.U8,Bp.A,Bf.None)]="U8_LUMINANCE",o[o.F16_LUMINANCE=Cg(Eh.F16,Bp.A,Bf.None)]="F16_LUMINANCE",o[o.F32_LUMINANCE=Cg(Eh.F32,Bp.A,Bf.None)]="F32_LUMINANCE",o[o.F16_R=Cg(Eh.F16,Bp.R,Bf.None)]="F16_R",o[o.F16_RG=Cg(Eh.F16,Bp.RG,Bf.None)]="F16_RG",o[o.F16_RGB=Cg(Eh.F16,Bp.RGB,Bf.None)]="F16_RGB",o[o.F16_RGBA=Cg(Eh.F16,Bp.RGBA,Bf.None)]="F16_RGBA",o[o.F32_R=Cg(Eh.F32,Bp.R,Bf.None)]="F32_R",o[o.F32_RG=Cg(Eh.F32,Bp.RG,Bf.None)]="F32_RG",o[o.F32_RGB=Cg(Eh.F32,Bp.RGB,Bf.None)]="F32_RGB",o[o.F32_RGBA=Cg(Eh.F32,Bp.RGBA,Bf.None)]="F32_RGBA",o[o.U8_R=Cg(Eh.U8,Bp.R,Bf.None)]="U8_R",o[o.U8_R_NORM=Cg(Eh.U8,Bp.R,Bf.Normalized)]="U8_R_NORM",o[o.U8_RG=Cg(Eh.U8,Bp.RG,Bf.None)]="U8_RG",o[o.U8_RG_NORM=Cg(Eh.U8,Bp.RG,Bf.Normalized)]="U8_RG_NORM",o[o.U8_RGB=Cg(Eh.U8,Bp.RGB,Bf.None)]="U8_RGB",o[o.U8_RGB_NORM=Cg(Eh.U8,Bp.RGB,Bf.Normalized)]="U8_RGB_NORM",o[o.U8_RGB_SRGB=Cg(Eh.U8,Bp.RGB,Bf.sRGB|Bf.Normalized)]="U8_RGB_SRGB",o[o.U8_RGBA=Cg(Eh.U8,Bp.RGBA,Bf.None)]="U8_RGBA",o[o.U8_RGBA_NORM=Cg(Eh.U8,Bp.RGBA,Bf.Normalized)]="U8_RGBA_NORM",o[o.U8_RGBA_SRGB=Cg(Eh.U8,Bp.RGBA,Bf.sRGB|Bf.Normalized)]="U8_RGBA_SRGB",o[o.U16_R=Cg(Eh.U16,Bp.R,Bf.None)]="U16_R",o[o.U16_R_NORM=Cg(Eh.U16,Bp.R,Bf.Normalized)]="U16_R_NORM",o[o.U16_RG_NORM=Cg(Eh.U16,Bp.RG,Bf.Normalized)]="U16_RG_NORM",o[o.U16_RGBA_NORM=Cg(Eh.U16,Bp.RGBA,Bf.Normalized)]="U16_RGBA_NORM",o[o.U16_RGB=Cg(Eh.U16,Bp.RGB,Bf.None)]="U16_RGB",o[o.U32_R=Cg(Eh.U32,Bp.R,Bf.None)]="U32_R",o[o.U32_RG=Cg(Eh.U32,Bp.RG,Bf.None)]="U32_RG",o[o.S8_R=Cg(Eh.S8,Bp.R,Bf.None)]="S8_R",o[o.S8_R_NORM=Cg(Eh.S8,Bp.R,Bf.Normalized)]="S8_R_NORM",o[o.S8_RG_NORM=Cg(Eh.S8,Bp.RG,Bf.Normalized)]="S8_RG_NORM",o[o.S8_RGB_NORM=Cg(Eh.S8,Bp.RGB,Bf.Normalized)]="S8_RGB_NORM",o[o.S8_RGBA_NORM=Cg(Eh.S8,Bp.RGBA,Bf.Normalized)]="S8_RGBA_NORM",o[o.S16_R=Cg(Eh.S16,Bp.R,Bf.None)]="S16_R",o[o.S16_RG=Cg(Eh.S16,Bp.RG,Bf.None)]="S16_RG",o[o.S16_RG_NORM=Cg(Eh.S16,Bp.RG,Bf.Normalized)]="S16_RG_NORM",o[o.S16_RGB_NORM=Cg(Eh.S16,Bp.RGB,Bf.Normalized)]="S16_RGB_NORM",o[o.S16_RGBA=Cg(Eh.S16,Bp.RGBA,Bf.None)]="S16_RGBA",o[o.S16_RGBA_NORM=Cg(Eh.S16,Bp.RGBA,Bf.Normalized)]="S16_RGBA_NORM",o[o.S32_R=Cg(Eh.S32,Bp.R,Bf.None)]="S32_R",o[o.U16_RGBA_5551=Cg(Eh.U16_PACKED_5551,Bp.RGBA,Bf.Normalized)]="U16_RGBA_5551",o[o.U16_RGB_565=Cg(Eh.U16_PACKED_565,Bp.RGB,Bf.Normalized)]="U16_RGB_565",o[o.BC1=Cg(Eh.BC1,Bp.RGBA,Bf.Normalized)]="BC1",o[o.BC1_SRGB=Cg(Eh.BC1,Bp.RGBA,Bf.Normalized|Bf.sRGB)]="BC1_SRGB",o[o.BC2=Cg(Eh.BC2,Bp.RGBA,Bf.Normalized)]="BC2",o[o.BC2_SRGB=Cg(Eh.BC2,Bp.RGBA,Bf.Normalized|Bf.sRGB)]="BC2_SRGB",o[o.BC3=Cg(Eh.BC3,Bp.RGBA,Bf.Normalized)]="BC3",o[o.BC3_SRGB=Cg(Eh.BC3,Bp.RGBA,Bf.Normalized|Bf.sRGB)]="BC3_SRGB",o[o.BC4_UNORM=Cg(Eh.BC4_UNORM,Bp.R,Bf.Normalized)]="BC4_UNORM",o[o.BC4_SNORM=Cg(Eh.BC4_SNORM,Bp.R,Bf.Normalized)]="BC4_SNORM",o[o.BC5_UNORM=Cg(Eh.BC5_UNORM,Bp.RG,Bf.Normalized)]="BC5_UNORM",o[o.BC5_SNORM=Cg(Eh.BC5_SNORM,Bp.RG,Bf.Normalized)]="BC5_SNORM",o[o.D24=Cg(Eh.D24,Bp.R,Bf.Depth)]="D24",o[o.D24_S8=Cg(Eh.D24S8,Bp.RG,Bf.Depth|Bf.Stencil)]="D24_S8",o[o.D32F=Cg(Eh.D32F,Bp.R,Bf.Depth)]="D32F",o[o.D32F_S8=Cg(Eh.D32FS8,Bp.RG,Bf.Depth|Bf.Stencil)]="D32F_S8",o[o.U8_RGB_RT=Cg(Eh.U8,Bp.RGB,Bf.RenderTarget|Bf.Normalized)]="U8_RGB_RT",o[o.U8_RGBA_RT=Cg(Eh.U8,Bp.RGBA,Bf.RenderTarget|Bf.Normalized)]="U8_RGBA_RT",o[o.U8_RGBA_RT_SRGB=Cg(Eh.U8,Bp.RGBA,Bf.RenderTarget|Bf.Normalized|Bf.sRGB)]="U8_RGBA_RT_SRGB"})(Ku||(Ku={}));function AR(o){return o>>>8&255}function Gw(o){return o>>>16&255}function sI(o){return o&255}function nL(o){switch(o){case Eh.F32:case Eh.U32:case Eh.S32:return 4;case Eh.U16:case Eh.S16:case Eh.F16:return 2;case Eh.U8:case Eh.S8:return 1;default:throw new Error("whoops")}}function qN(o){return nL(Gw(o))}function sS(o){return AR(o)}function DR(o){var d=nL(Gw(o)),l=AR(o);return d*l}function JG(o,d){return o&4294967040|d}function QG(o,d){return o&4294902015|d<<8}function rL(o){var d=sI(o);if(d&Bf.Depth)return Xv.Depth;if(d&Bf.Normalized)return Xv.Float;var l=Gw(o);if(l===Eh.F16||l===Eh.F32)return Xv.Float;if(l===Eh.U8||l===Eh.U16||l===Eh.U32)return Xv.Uint;if(l===Eh.S8||l===Eh.S16||l===Eh.S32)return Xv.Sint;throw new Error("whoops")}function rm(o,d){if(d===void 0&&(d=""),!o)throw new Error("Assert fail: ".concat(d))}function aS(o){if(o!=null)return o;throw new Error("Missing object")}function JN(o,d){return o.r===d.r&&o.g===d.g&&o.b===d.b&&o.a===d.a}function IR(o,d){o.r=d.r,o.g=d.g,o.b=d.b,o.a=d.a}function Kz(o){var d=o.r,l=o.g,c=o.b,u=o.a;return{r:d,g:l,b:c,a:u}}function iL(o,d,l,c){return c===void 0&&(c=1),{r:o,g:d,b:l,a:c}}var PR=iL(0,0,0,0),GQ=iL(0,0,0,1),RA=iL(1,1,1,0),a1=iL(1,1,1,1),kA=!0;function KQ(o,d){d===void 0&&(d=kA),d&&(o[10]=-o[10],o[14]=-o[14])}function eK(o,d){d===void 0&&(d=kA),d&&(o[10]=-o[10],o[14]=-o[14]+1)}function Xz(o,d){if(d===void 0&&(d=kA),d)switch(o){case y0.LESS:return y0.GREATER;case y0.LEQUAL:return y0.GEQUAL;case y0.GEQUAL:return y0.LEQUAL;case y0.GREATER:return y0.LESS;default:return o}else return o}function tK(o,d){return d===void 0&&(d=kA),d?1-o:o}function nK(o,d){return d===void 0&&(d=kA),d?-o:o}function vie(o,d,l,c){if(c===void 0&&(c=kA),l=Xz(l,c),l===y0.LESS)return od;if(l===y0.GEQUAL)return o>=d;throw new Error("whoops")}function QN(o){return!!(o&&!(o&o-1))}function oL(o,d){return o!=null?o:d}function XQ(o){return o===void 0?null:o}function Yz(o,d,l){o.length=d,o.fill(l)}function LR(o,d){var l=d-1;return o+l&~l}function sL(o,d){return((o+d-1)/d|0)*d}function rK(o,d,l){for(var c=0,u=o.length;c>>1),E=l(d,o[m]);E<0?u=m:c=m+1}return c}function aL(o,d,l){var c=rK(o,d,l);o.splice(c,0,d)}function iK(o,d,l){return l?o|=d:o&=~d,o}function qz(o,d){for(var l=new Array(o),c=0;c-1;if(Z=Z.replace(";","").replace("[","").trim(),!M.startsWith("#")){if(M){var Ce=l.find(function(Bt){return M===Bt.type});if(Ce)if(ne)for(var Fe=function(Bt){Ce.uniforms.forEach(function(Cn){d.push("".concat(Z,"[").concat(Bt,"].").concat(Cn.name))})},bt=0;bt<5;bt++)Fe(bt);else Ce.uniforms.forEach(function(Bt){d.push("".concat(Z,".").concat(Bt.name))})}Z&&d.push(Z)}}),""}),d}function gK(o){if(o===void 0)return null;var d=/binding\s*=\s*(\d+)/.exec(o);if(d!==null){var l=parseInt(d[1],10);if(!Number.isNaN(l))return l}return null}function mK(o){var d="",l=o;return[l,d]}function Kw(o,d,l,c,u){var m;c===void 0&&(c=null),u===void 0&&(u=!0);var E=o.glslVersion==="#version 100",M=d==="frag"&&((m=l.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||m===void 0?void 0:m.length)>1,Z=l.replace(`\r +`,` +`).split(` +`).map(function(aa){return aa.replace(/[/][/].*$/,"")}).filter(function(aa){var Ua=!aa||/^\s+$/.test(aa);return!Ua}),ne="";c!==null&&(ne=Object.keys(c).map(function(aa){return FA(aa,c[aa])}).join(` +`));var Ce=Z.find(function(aa){return aa.startsWith("precision")})||"precision mediump float;",Fe=u?Z.filter(function(aa){return!aa.startsWith("precision")}).join(` +`):Z.join(` +`),bt="";if(o.viewportOrigin===SE.UPPER_LEFT&&(bt+="".concat(FA("VIEWPORT_ORIGIN_TL","1"),` +`)),o.clipSpaceNearZ===zb.ZERO&&(bt+="".concat(FA("CLIPSPACE_NEAR_ZERO","1"),` +`)),o.explicitBindingLocations){var Bt=0,Cn=0,An=0;Fe=Fe.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(aa,Ua,pl,ru){var Iu=pl?"".concat(pl,", "):"";return"layout(".concat(Iu,"set = ").concat(Bt,", binding = ").concat(Cn++,") uniform ").concat(ru)}),Bt++,Cn=0,rm(o.separateSamplerTextures),Fe=Fe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(aa,Ua,pl,ru,Iu){var Vu=gK(pl);Vu===null&&(Vu=Cn++);var th=(0,Yf.CR)(mK(ru),2),yh=th[0],Ed=th[1];return d==="frag"?` +layout(set = `.concat(Bt,", binding = ").concat(Vu*2+0,") uniform texture").concat(yh," T_").concat(Iu,`; +layout(set = `).concat(Bt,", binding = ").concat(Vu*2+1,") uniform sampler").concat(Ed," S_").concat(Iu,";").trim():""}),Fe=Fe.replace(d==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(aa,Ua){return"layout(location = ".concat(An++,") ").concat(Ua)}),bt+="".concat(FA("gl_VertexID","gl_VertexIndex"),` +`),bt+="".concat(FA("gl_InstanceID","gl_InstanceIndex"),` +`),Ce=Ce.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var Pr=0;Fe=Fe.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(aa,Ua,pl,ru,Iu){var Vu=gK(pl);return Vu===null&&(Vu=Pr++),"uniform sampler".concat(ru," ").concat(Iu,"; // BINDING=").concat(Vu)})}if(o.separateSamplerTextures)Fe=Fe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(aa,Ua,pl){return"sampler".concat(Ua,"(T_").concat(pl,", S_").concat(pl,")")}),Fe=Fe.replace(/\bTEXTURE\((.*?)\)/g,function(aa,Ua){return"T_".concat(Ua)});else{var ti=[];Fe=Fe.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(aa,Ua,pl){return ti.push([pl,Ua]),pl}),E&&ti.forEach(function(aa){var Ua=(0,Yf.CR)(aa,2),pl=Ua[0],ru=Ua[1];Fe=Fe.replace(new RegExp("texture\\(".concat(pl),"g"),function(){return"texture".concat(ru,"(").concat(pl)})}),Fe=Fe.replace(/\bTEXTURE\((.*?)\)/g,function(aa,Ua){return Ua})}var ho="".concat(E?"":o.glslVersion,` +`).concat(E&&M?`#extension GL_EXT_draw_buffers : require +`:"",` +`).concat(E&&d==="frag"?`#extension GL_OES_standard_derivatives : enable +`:"").concat(u?Ce:"",` +`).concat(bt||"").concat(ne?ne+` +`:"",` +`).concat(Fe,` +`).trim();if(o.explicitBindingLocations&&d==="frag"&&(ho=ho.replace(/^\b(out)\b/g,function(aa,Ua){return"layout(location = 0) ".concat(Ua)})),E){if(d==="frag"&&(ho=ho.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(aa,Ua,pl){return"varying ".concat(Ua," ").concat(pl,`; +`)})),d==="vert"&&(ho=ho.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(aa,Ua,pl){return"varying ".concat(Ua," ").concat(pl,`; +`)}),ho=ho.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(aa,Ua,pl){return"attribute ".concat(Ua," ").concat(pl,`; +`)})),ho=ho.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(aa,Ua){return Ua.trim().replace(/^.*$/gm,function(pl){var ru=pl.trim();return ru.startsWith("#")?ru:pl?"uniform ".concat(ru):""})}),d==="frag")if(M){var bo=[];ho=ho.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(aa,Ua){return bo.push(Ua),"vec4 ".concat(Ua,`; +`)});var Ds=ho.lastIndexOf("}");ho=ho.substring(0,Ds)+` + `.concat(bo.map(function(aa,Ua){return"gl_FragData[".concat(Ua,"] = ").concat(aa,`; + `)}).join(` +`))+ho.substring(Ds)}else{var ta;if(ho=ho.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(aa,Ua,pl){return ta=pl,"".concat(Ua," ").concat(pl,`; +`)}),ta){var Ds=ho.lastIndexOf("}");ho=ho.substring(0,Ds)+` + gl_FragColor = vec4(`.concat(ta,`); +`)+ho.substring(Ds)}}ho=ho.replace(/^\s*layout\((.*)\)/gm,"")}return ho}function yie(o,d,l,c){c===void 0&&(c=null);var u=Kw(o,"vert",d,c),m=Kw(o,"frag",l,c);return{vert:d,frag:l,preprocessedVert:u,preprocessedFrag:m}}var r2=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this)||this;return m.id=c,m.device=u,m.device.resourceCreationTracker!==null&&m.device.resourceCreationTracker.trackResourceCreated(m),m}return d.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},d}(YN),eee=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.Bindings;var M=m.uniformBufferBindings,Z=m.samplerBindings;return E.uniformBufferBindings=M||[],E.samplerBindings=Z||[],E.bindingLayouts=E.createBindingLayouts(),E}return d.prototype.createBindingLayouts=function(){var l=0,c=0,u=[],m=this.uniformBufferBindings.length,E=this.samplerBindings.length;return u.push({firstUniformBuffer:l,numUniformBuffers:m,firstSampler:c,numSamplers:E}),l+=m,c+=E,{numUniformBuffers:l,numSamplers:c,bindingLayoutTables:u}},d}(r2);function Rp(o){return typeof WebGL2RenderingContext!="undefined"&&o instanceof WebGL2RenderingContext?!0:!!(o&&o._version===2)}function uU(o){var d=Gw(o);switch(d){case Eh.BC1:case Eh.BC2:case Eh.BC3:case Eh.BC4_UNORM:case Eh.BC4_SNORM:case Eh.BC5_UNORM:case Eh.BC5_SNORM:return!0;default:return!1}}function vK(o){var d=sI(o);if(d&Bf.Normalized)return!1;var l=Gw(o);return l===Eh.S8||l===Eh.S16||l===Eh.S32||l===Eh.U8||l===Eh.U16||l===Eh.U32}function cU(o){switch(o){case Fb.STATIC:return Nl.STATIC_DRAW;case Fb.DYNAMIC:return Nl.DYNAMIC_DRAW}}function s8(o){if(o&cv.INDEX)return Nl.ELEMENT_ARRAY_BUFFER;if(o&cv.VERTEX)return Nl.ARRAY_BUFFER;if(o&cv.UNIFORM)return Nl.UNIFORM_BUFFER}function hU(o){switch(o){case b1.TRIANGLES:return Nl.TRIANGLES;case b1.POINTS:return Nl.POINTS;case b1.TRIANGLE_STRIP:return Nl.TRIANGLE_STRIP;case b1.LINES:return Nl.LINES;case b1.LINE_STRIP:return Nl.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function dU(o){switch(o){case Eh.U8:return Nl.UNSIGNED_BYTE;case Eh.U16:return Nl.UNSIGNED_SHORT;case Eh.U32:return Nl.UNSIGNED_INT;case Eh.S8:return Nl.BYTE;case Eh.S16:return Nl.SHORT;case Eh.S32:return Nl.INT;case Eh.F16:return Nl.HALF_FLOAT;case Eh.F32:return Nl.FLOAT;default:throw new Error("whoops")}}function zR(o){switch(o){case Bp.R:return 1;case Bp.RG:return 2;case Bp.RGB:return 3;case Bp.RGBA:return 4;default:return 1}}function J2(o){var d=Gw(o),l=AR(o),c=sI(o),u=dU(d),m=zR(l),E=!!(c&Bf.Normalized);return{size:m,type:u,normalized:E}}function fU(o){switch(o){case Ku.U8_R:return Nl.UNSIGNED_BYTE;case Ku.U16_R:return Nl.UNSIGNED_SHORT;case Ku.U32_R:return Nl.UNSIGNED_INT;default:throw new Error("whoops")}}function dI(o){switch(o){case J1.CLAMP_TO_EDGE:return Nl.CLAMP_TO_EDGE;case J1.REPEAT:return Nl.REPEAT;case J1.MIRRORED_REPEAT:return Nl.MIRRORED_REPEAT;default:throw new Error("whoops")}}function UR(o,d){if(d===_1.LINEAR&&o===s1.BILINEAR)return Nl.LINEAR_MIPMAP_LINEAR;if(d===_1.LINEAR&&o===s1.POINT)return Nl.NEAREST_MIPMAP_LINEAR;if(d===_1.NEAREST&&o===s1.BILINEAR)return Nl.LINEAR_MIPMAP_NEAREST;if(d===_1.NEAREST&&o===s1.POINT)return Nl.NEAREST_MIPMAP_NEAREST;if(d===_1.NO_MIP&&o===s1.BILINEAR)return Nl.LINEAR;if(d===_1.NO_MIP&&o===s1.POINT)return Nl.NEAREST;throw new Error("Unknown texture filter mode")}function fI(o,d){d===void 0&&(d=0);var l=o;return l.gl_buffer_pages[d/l.pageByteSize|0]}function Gy(o){var d=o;return d.gl_texture}function $R(o){var d=o;return d.gl_sampler}function TE(o,d){o.name=d,o.__SPECTOR_Metadata={name:d}}function pU(o,d){for(var l=[];;){var c=d.exec(o);if(!c)break;l.push(c)}return l}function Q2(o){return o.blendMode==l_.ADD&&o.blendSrcFactor==Wm.ONE&&o.blendDstFactor===Wm.ZERO}function VR(o){switch(o){case tL.OcclusionConservative:return Nl.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function k1(o){if(o===wm.TEXTURE_2D)return Nl.TEXTURE_2D;if(o===wm.TEXTURE_2D_ARRAY)return Nl.TEXTURE_2D_ARRAY;if(o===wm.TEXTURE_CUBE_MAP)return Nl.TEXTURE_CUBE_MAP;if(o===wm.TEXTURE_3D)return Nl.TEXTURE_3D;throw new Error("whoops")}function pI(o,d,l,c){return!(o%l!==0||d%c!==0)}var gU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.Buffer;var M=m.viewOrSize,Z=m.usage,ne=m.hint,Ce=ne===void 0?Fb.STATIC:ne,Fe=u.uniformBufferMaxPageByteSize,bt=u.gl,Bt=Z&cv.UNIFORM;Bt||(Rp(bt)?bt.bindVertexArray(null):u.OES_vertex_array_object.bindVertexArrayOES(null));var Cn=oI(M)?LR(M,4):LR(M.byteLength,4);E.gl_buffer_pages=[];var An;if(Bt){for(var Pr=Cn;Pr>0;)E.gl_buffer_pages.push(E.createBufferPage(Math.min(Pr,Fe),Z,Ce)),Pr-=Fe;An=Fe}else E.gl_buffer_pages.push(E.createBufferPage(Cn,Z,Ce)),An=Cn;return E.pageByteSize=An,E.byteSize=Cn,E.usage=Z,E.gl_target=s8(Z),oI(M)||E.setSubData(0,new Uint8Array(M.buffer)),Bt||(Rp(bt)?bt.bindVertexArray(E.device.currentBoundVAO):u.OES_vertex_array_object.bindVertexArrayOES(E.device.currentBoundVAO)),E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=c.byteLength-u);for(var E=this.device.gl,M=this.pageByteSize,Z=l+m,ne=l,Ce=l%M;ne=1,!E){Ce=M.device.ensureResourceExists(Z.createTexture());var bt=M.device.translateTextureType(m.format),Bt=M.device.translateTextureInternalFormat(m.format);if(M.device.setActiveTexture(Z.TEXTURE0),M.device.currentTextures[0]=null,M.preprocessImage(),m.dimension===wm.TEXTURE_2D){if(ne=Nl.TEXTURE_2D,Z.bindTexture(ne,Ce),M.immutable)if(Rp(Z))Z.texStorage2D(ne,Fe,Bt,m.width,m.height);else{var Cn=(Bt===Nl.DEPTH_COMPONENT||M.isNPOT(),0);(M.format===Ku.D32F||M.format===Ku.D24_S8)&&!Rp(Z)&&!u.WEBGL_depth_texture||(Z.texImage2D(ne,Cn,Bt,m.width,m.height,0,Bt,bt,null),M.mipmaps&&(M.mipmaps=!1,Z.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_MIN_FILTER,Nl.LINEAR),Z.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_WRAP_S,Nl.CLAMP_TO_EDGE),Z.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_WRAP_T,Nl.CLAMP_TO_EDGE)))}rm(m.depthOrArrayLayers===1)}else if(m.dimension===wm.TEXTURE_2D_ARRAY)ne=Nl.TEXTURE_2D_ARRAY,Z.bindTexture(ne,Ce),M.immutable&&Rp(Z)&&Z.texStorage3D(ne,Fe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===wm.TEXTURE_3D)ne=Nl.TEXTURE_3D,Z.bindTexture(ne,Ce),M.immutable&&Rp(Z)&&Z.texStorage3D(ne,Fe,Bt,m.width,m.height,m.depthOrArrayLayers);else if(m.dimension===wm.TEXTURE_CUBE_MAP)ne=Nl.TEXTURE_CUBE_MAP,Z.bindTexture(ne,Ce),M.immutable&&Rp(Z)&&Z.texStorage2D(ne,Fe,Bt,m.width,m.height),rm(m.depthOrArrayLayers===6);else throw new Error("whoops")}return M.gl_texture=Ce,M.gl_target=ne,M.mipLevelCount=Fe,M}return d.prototype.setImageData=function(l,c){c===void 0&&(c=0);var u=this.device.gl;uU(this.format);var m=this.gl_target===Nl.TEXTURE_3D||this.gl_target===Nl.TEXTURE_2D_ARRAY,E=this.gl_target===Nl.TEXTURE_CUBE_MAP,M=pK(l[0]);this.device.setActiveTexture(u.TEXTURE0),this.device.currentTextures[0]=null;var Z=l[0],ne,Ce;M?(ne=this.width,Ce=this.height):(ne=Z.width,Ce=Z.height,this.width=ne,this.height=Ce),u.bindTexture(this.gl_target,this.gl_texture);var Fe=this.device.translateTextureFormat(this.format),bt=this.device.translateTextureType(this.format);this.preprocessImage();for(var Bt=0;Bt1){var c=Gw(l.format);if(c===Eh.BC1)for(var u=l.width,m=l.height,E=0;E1?M.renderbufferStorageMultisample(Nl.RENDERBUFFER,bt,An,ne,Ce):M.renderbufferStorage(Nl.RENDERBUFFER,An,ne,Ce)}return E.format=Z,E.width=ne,E.height=Ce,E.sampleCount=bt,E}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},d}(r2),F_;(function(o){o[o.NeedsCompile=0]="NeedsCompile",o[o.Compiling=1]="Compiling",o[o.NeedsBind=2]="NeedsBind",o[o.ReadyToUse=3]="ReadyToUse"})(F_||(F_={}));var dL=function(o){(0,Yf.ZT)(d,o);function d(l,c){var u=l.id,m=l.device,E=l.descriptor,M=o.call(this,{id:u,device:m})||this;M.rawVertexGLSL=c,M.type=r0.Program,M.uniformSetters={},M.attributes=[];var Z=M.device.gl;return M.descriptor=E,M.gl_program=M.device.ensureResourceExists(Z.createProgram()),M.gl_shader_vert=null,M.gl_shader_frag=null,M.compileState=F_.NeedsCompile,M.tryCompileProgram(),M}return d.prototype.destroy=function(){o.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},d.prototype.tryCompileProgram=function(){var l,c;rm(this.compileState===F_.NeedsCompile);var u=this.descriptor,m=this.device.gl;!((l=u.vertex)===null||l===void 0)&&l.glsl&&(!((c=u.fragment)===null||c===void 0)&&c.glsl)&&(this.gl_shader_vert=this.compileShader(u.vertex.glsl,m.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(u.fragment.glsl,m.FRAGMENT_SHADER),m.attachShader(this.gl_program,this.gl_shader_vert),m.attachShader(this.gl_program,this.gl_shader_frag),m.linkProgram(this.gl_program),this.compileState=F_.Compiling,Rp(m)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},d.prototype.readAttributesFromLinkedProgram=function(){for(var l,c=this.device.gl,u=c.getProgramParameter(this.gl_program,c.ACTIVE_ATTRIBUTES),m=hL(this.descriptor.vertex.glsl),E=lU(this.rawVertexGLSL,m),M=function(Ce){var Fe=c.getActiveAttrib(Z.gl_program,Ce),bt=Fe.name,Bt=Fe.type,Cn=Fe.size,An=c.getAttribLocation(Z.gl_program,bt),Pr=(l=E.find(function(ti){return ti.name===bt}))===null||l===void 0?void 0:l.location;An>=0&&!wE(Pr)&&(Z.attributes[Pr]={name:bt,location:An,type:Bt,size:Cn})},Z=this,ne=0;ne1)for(var Z=0;Z1&&Z.device.EXT_texture_filter_anisotropic!==null&&(rm(m.minFilter===s1.BILINEAR&&m.magFilter===s1.BILINEAR&&m.mipmapFilter===_1.LINEAR),ne.samplerParameterf(Ce,Z.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Fe)),Z.gl_sampler=Ce}else Z.descriptor=m;return Z}return d.prototype.setTextureParameters=function(l,c,u){var m,E=this.device.gl,M=this.descriptor;this.isNPOT(c,u)?E.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_MIN_FILTER,Nl.LINEAR):E.texParameteri(l,Nl.TEXTURE_MIN_FILTER,UR(M.minFilter,M.mipmapFilter)),E.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_WRAP_S,dI(M.addressModeU)),E.texParameteri(Nl.TEXTURE_2D,Nl.TEXTURE_WRAP_T,dI(M.addressModeV)),E.texParameteri(l,Nl.TEXTURE_MAG_FILTER,UR(M.magFilter,_1.NO_MIP));var Z=(m=M.maxAnisotropy)!==null&&m!==void 0?m:1;Z>1&&this.device.EXT_texture_filter_anisotropic!==null&&(rm(M.minFilter===s1.BILINEAR&&M.magFilter===s1.BILINEAR&&M.mipmapFilter===_1.LINEAR),E.texParameteri(l,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Z))},d.prototype.destroy=function(){o.prototype.destroy.call(this),Rp(this.device.gl)&&this.device.gl.deleteSampler($R(this))},d.prototype.isNPOT=function(l,c){return!QN(l)||!QN(c)},d}(r2),mI=function(){function o(){}return o.prototype.dispatchWorkgroups=function(d,l,c){},o.prototype.dispatchWorkgroupsIndirect=function(d,l){},o.prototype.setPipeline=function(d){},o.prototype.setBindings=function(d){},o.prototype.pushDebugGroup=function(d){},o.prototype.popDebugGroup=function(){},o.prototype.insertDebugMarker=function(d){},o}(),Xw=65536,wK=function(){function o(d,l){this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentDepthStencilResolveTo=null,this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=aI(Ub),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=SE.LOWER_LEFT,this.clipSpaceNearZ=zb.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=d,this.contextAttributes=aS(d.getContextAttributes()),Rp(d)?(this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=d.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=d.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=d.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=d.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=d.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=d.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=d.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=d.getExtension("EXT_color_buffer_half_float"),d.getExtension("EXT_frag_depth"),d.getExtension("OES_element_index_uint"),d.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=d.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=d.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=d.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=d.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=d.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=d.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=d.getExtension("KHR_parallel_shader_compile"),Rp(d)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new gI({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:wm.TEXTURE_2D,mipLevelCount:1,usage:Bb.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Ku.U8_RGB_RT:Ku.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=Xv.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(wm.TEXTURE_2D,Xv.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(wm.TEXTURE_2D,Xv.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:cv.VERTEX,hint:Fb.STATIC}),Rp(d)&&(this.fallbackTexture2DArray=this.createFallbackTexture(wm.TEXTURE_2D_ARRAY,Xv.Float),this.fallbackTexture3D=this.createFallbackTexture(wm.TEXTURE_3D,Xv.Float),this.fallbackTextureCube=this.createFallbackTexture(wm.TEXTURE_CUBE_MAP,Xv.Float)),this.currentMegaState.depthCompare=y0.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=u_.ALL,d.enable(d.DEPTH_TEST),d.enable(d.STENCIL_TEST),this.checkLimits(),l.shaderDebug&&(this.shaderDebug=!0),l.trackResources&&(this.resourceCreationTracker=new bK)}return o.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},o.prototype.createFallbackTexture=function(d,l){var c=d===wm.TEXTURE_CUBE_MAP?6:1,u=l===Xv.Depth?Ku.D32F:Ku.U8_RGBA_NORM,m=this.createTexture({dimension:d,format:u,usage:Bb.SAMPLED,width:1,height:1,depthOrArrayLayers:c,mipLevelCount:1});return l===Xv.Float&&m.setImageData([new Uint8Array(4*c)]),Gy(m)},o.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},o.prototype.checkLimits=function(){var d=this.gl;if(this.maxVertexAttribs=d.getParameter(Nl.MAX_VERTEX_ATTRIBS),Rp(d)){this.uniformBufferMaxPageByteSize=Math.min(d.getParameter(Nl.MAX_UNIFORM_BLOCK_SIZE),Xw),this.uniformBufferWordAlignment=d.getParameter(d.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var l=d.getInternalformatParameter(d.RENDERBUFFER,d.DEPTH32F_STENCIL8,d.SAMPLES);this.supportedSampleCounts=l?(0,Yf.ev)([],(0,Yf.CR)(l),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=Xw;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(c,u){return c-u})},o.prototype.configureSwapChain=function(d,l,c){var u=this.scTexture;u.width=d,u.height=l,this.scPlatformFramebuffer=XQ(c)},o.prototype.getDevice=function(){return this},o.prototype.getCanvas=function(){return this.gl.canvas},o.prototype.getOnscreenTexture=function(){return this.scTexture},o.prototype.beginFrame=function(){},o.prototype.endFrame=function(){},o.prototype.translateTextureInternalFormat=function(d,l){switch(l===void 0&&(l=!1),d){case Ku.ALPHA:return Nl.ALPHA;case Ku.U8_LUMINANCE:case Ku.F16_LUMINANCE:case Ku.F32_LUMINANCE:return Nl.LUMINANCE;case Ku.F16_R:return Nl.R16F;case Ku.F16_RG:return Nl.RG16F;case Ku.F16_RGB:return Nl.RGB16F;case Ku.F16_RGBA:return Nl.RGBA16F;case Ku.F32_R:return Nl.R32F;case Ku.F32_RG:return Nl.RG32F;case Ku.F32_RGB:return Nl.RGB32F;case Ku.F32_RGBA:return Rp(this.gl)?Nl.RGBA32F:l?this.WEBGL_color_buffer_float.RGBA32F_EXT:Nl.RGBA;case Ku.U8_R_NORM:return Nl.R8;case Ku.U8_RG_NORM:return Nl.RG8;case Ku.U8_RGB_NORM:case Ku.U8_RGB_RT:return Nl.RGB8;case Ku.U8_RGB_SRGB:return Nl.SRGB8;case Ku.U8_RGBA_NORM:case Ku.U8_RGBA_RT:return Rp(this.gl)?Nl.RGBA8:l?Nl.RGBA4:Nl.RGBA;case Ku.U8_RGBA:return Nl.RGBA;case Ku.U8_RGBA_SRGB:case Ku.U8_RGBA_RT_SRGB:return Nl.SRGB8_ALPHA8;case Ku.U16_R:return Nl.R16UI;case Ku.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Ku.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Ku.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Ku.U16_RGBA_5551:return Nl.RGB5_A1;case Ku.U16_RGB_565:return Nl.RGB565;case Ku.U32_R:return Nl.R32UI;case Ku.S8_RGBA_NORM:return Nl.RGBA8_SNORM;case Ku.S8_RG_NORM:return Nl.RG8_SNORM;case Ku.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Ku.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Ku.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Ku.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Ku.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Ku.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Ku.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Ku.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Ku.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Ku.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Ku.D32F_S8:return Rp(this.gl)?Nl.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?Nl.DEPTH_STENCIL:Nl.DEPTH_COMPONENT16;case Ku.D24_S8:return Rp(this.gl)?Nl.DEPTH24_STENCIL8:this.WEBGL_depth_texture?Nl.DEPTH_STENCIL:Nl.DEPTH_COMPONENT16;case Ku.D32F:return Rp(this.gl)?Nl.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?Nl.DEPTH_COMPONENT:Nl.DEPTH_COMPONENT16;case Ku.D24:return Rp(this.gl)?Nl.DEPTH_COMPONENT24:this.WEBGL_depth_texture?Nl.DEPTH_COMPONENT:Nl.DEPTH_COMPONENT16;default:throw new Error("whoops")}},o.prototype.translateTextureType=function(d){var l=Gw(d);switch(l){case Eh.U8:return Nl.UNSIGNED_BYTE;case Eh.U16:return Nl.UNSIGNED_SHORT;case Eh.U32:return Nl.UNSIGNED_INT;case Eh.S8:return Nl.BYTE;case Eh.F16:return Nl.HALF_FLOAT;case Eh.F32:return Nl.FLOAT;case Eh.U16_PACKED_5551:return Nl.UNSIGNED_SHORT_5_5_5_1;case Eh.D32F:return Rp(this.gl)?Nl.FLOAT:this.WEBGL_depth_texture?Nl.UNSIGNED_INT:Nl.UNSIGNED_BYTE;case Eh.D24:return Rp(this.gl)?Nl.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Nl.UNSIGNED_SHORT:Nl.UNSIGNED_BYTE;case Eh.D24S8:return Rp(this.gl)?Nl.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Nl.UNSIGNED_INT_24_8_WEBGL:Nl.UNSIGNED_BYTE;case Eh.D32FS8:return Nl.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},o.prototype.translateTextureFormat=function(d){if(uU(d)||d===Ku.F32_LUMINANCE||d===Ku.U8_LUMINANCE)return this.translateTextureInternalFormat(d);var l=Rp(this.gl)||!Rp(this.gl)&&!!this.WEBGL_depth_texture;switch(d){case Ku.D24_S8:case Ku.D32F_S8:return l?Nl.DEPTH_STENCIL:Nl.RGBA;case Ku.D24:case Ku.D32F:return l?Nl.DEPTH_COMPONENT:Nl.RGBA}var c=vK(d),u=AR(d);switch(u){case Bp.A:return Nl.ALPHA;case Bp.R:return c?Nl.RED_INTEGER:Nl.RED;case Bp.RG:return c?Nl.RG_INTEGER:Nl.RG;case Bp.RGB:return c?Nl.RGB_INTEGER:Nl.RGB;case Bp.RGBA:return Nl.RGBA}},o.prototype.setActiveTexture=function(d){this.currentActiveTexture!==d&&(this.gl.activeTexture(d),this.currentActiveTexture=d)},o.prototype.bindVAO=function(d){this.currentBoundVAO!==d&&(Rp(this.gl)?this.gl.bindVertexArray(d):this.OES_vertex_array_object.bindVertexArrayOES(d),this.currentBoundVAO=d)},o.prototype.programCompiled=function(d){rm(d.compileState!==F_.NeedsCompile),d.compileState===F_.Compiling&&(d.compileState=F_.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(d))},o.prototype.useProgram=function(d){this.currentProgram!==d&&(this.programCompiled(d),this.gl.useProgram(d.gl_program),this.currentProgram=d)},o.prototype.ensureResourceExists=function(d){if(d===null){var l=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(l))}else return d},o.prototype.createBuffer=function(d){return new gU({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createTexture=function(d){return new gI({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createSampler=function(d){return new xK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTarget=function(d){return new mU({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderTargetFromTexture=function(d){var l=d,c=l.format,u=l.width,m=l.height,E=l.mipLevelCount;return rm(E===1),this.createRenderTarget({format:c,width:u,height:m,sampleCount:1,texture:d})},o.prototype.createProgram=function(d){var l,c,u,m=(l=d.vertex)===null||l===void 0?void 0:l.glsl;return!((c=d.vertex)===null||c===void 0)&&c.glsl&&(d.vertex.glsl=Kw(this.queryVendorInfo(),"vert",d.vertex.glsl)),!((u=d.fragment)===null||u===void 0)&&u.glsl&&(d.fragment.glsl=Kw(this.queryVendorInfo(),"frag",d.fragment.glsl)),this.createProgramSimple(d,m)},o.prototype.createProgramSimple=function(d,l){var c=new dL({id:this.getNextUniqueId(),device:this,descriptor:d},l);return c},o.prototype.createBindings=function(d){return new eee({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createInputLayout=function(d){return new yK({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createRenderPipeline=function(d){return new BA({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createComputePass=function(){return new mI},o.prototype.createComputePipeline=function(d){return new _K({id:this.getNextUniqueId(),device:this,descriptor:d})},o.prototype.createReadback=function(){return new l8({id:this.getNextUniqueId(),device:this})},o.prototype.createQueryPool=function(d,l){return new a8({id:this.getNextUniqueId(),device:this,descriptor:{type:d,elemCount:l}})},o.prototype.formatRenderPassDescriptor=function(d){var l,c,u,m,E,M,Z=d.colorAttachment;d.depthClearValue=(l=d.depthClearValue)!==null&&l!==void 0?l:"load",d.stencilClearValue=(c=d.stencilClearValue)!==null&&c!==void 0?c:"load";for(var ne=0;ne=0;l--)this.debugGroupStack[l].drawCallCount+=d},o.prototype.debugGroupStatisticsBufferUpload=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].bufferUploadCount+=d},o.prototype.debugGroupStatisticsTextureBind=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].textureBindCount+=d},o.prototype.debugGroupStatisticsTriangles=function(d){for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].triangleCount+=d},o.prototype.reportShaderError=function(d,l){var c=this.gl,u=c.getShaderParameter(d,c.COMPILE_STATUS);if(!u){console.error(Jz(l));var m=c.getExtension("WEBGL_debug_shaders");m&&console.error(m.getTranslatedShaderSource(d)),console.error(c.getShaderInfoLog(d))}return u},o.prototype.checkProgramCompilationForErrors=function(d){var l=this.gl,c=d.gl_program;if(!l.getProgramParameter(c,l.LINK_STATUS)){var u=d.descriptor;if(!this.reportShaderError(d.gl_shader_vert,u.vertex.glsl)||!this.reportShaderError(d.gl_shader_frag,u.fragment.glsl))return;console.error(l.getProgramInfoLog(d.gl_program))}},o.prototype.bindFramebufferAttachment=function(d,l,c,u){var m=this.gl;if(c===null)m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,null);else if(c.type===r0.RenderTarget)c.gl_renderbuffer!==null?m.framebufferRenderbuffer(d,l,m.RENDERBUFFER,c.gl_renderbuffer):c.texture!==null&&m.framebufferTexture2D(d,l,Nl.TEXTURE_2D,Gy(c.texture),u);else if(c.type===r0.Texture){var E=Gy(c);c.dimension===wm.TEXTURE_2D?m.framebufferTexture2D(d,l,Nl.TEXTURE_2D,E,u):Rp(m)&&(c.dimension,wm.TEXTURE_2D_ARRAY)}},o.prototype.bindFramebufferDepthStencilAttachment=function(d,l){var c=this.gl,u=l!==null?sI(l.format):Bf.Depth|Bf.Stencil,m=!!(u&Bf.Depth),E=!!(u&Bf.Stencil);if(m&&E){var M=Rp(this.gl)||!Rp(this.gl)&&!!this.WEBGL_depth_texture;M?this.bindFramebufferAttachment(d,c.DEPTH_STENCIL_ATTACHMENT,l,0):this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0)}else m?(this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,null,0)):E&&(this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,null,0))},o.prototype.validateCurrentAttachments=function(){for(var d=-1,l=-1,c=-1,u=0;u=Z.numUniformBuffers),rm(E.length>=Z.numSamplers);for(var ne=0;ne{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&zA.decode();let AE=null;function WR(){return(AE===null||AE.byteLength===0)&&(AE=new Uint8Array($b.memory.buffer)),AE}function ew(o,d){return o=o>>>0,zA.decode(WR().subarray(o,o+d))}const i2=new Array(128).fill(void 0);i2.push(void 0,null,!0,!1);let UA=i2.length;function CK(o){UA===i2.length&&i2.push(i2.length+1);const d=UA;return UA=i2[d],i2[d]=o,d}function fL(o){return i2[o]}function pL(o){o<132||(i2[o]=UA,UA=o)}function jR(o){const d=fL(o);return pL(o),d}let DE=0;const vI=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Ky=typeof vI.encodeInto=="function"?function(o,d){return vI.encodeInto(o,d)}:function(o,d){const l=vI.encode(o);return d.set(l),{read:o.length,written:l.length}};function vU(o,d,l){if(l===void 0){const M=vI.encode(o),Z=d(M.length,1)>>>0;return WR().subarray(Z,Z+M.length).set(M),DE=M.length,Z}let c=o.length,u=d(c,1)>>>0;const m=WR();let E=0;for(;E127)break;m[u+E]=M}if(E!==c){E!==0&&(o=o.slice(E)),u=l(u,c,c=E+o.length*3,1)>>>0;const M=WR().subarray(u+E,u+c),Z=Ky(o,M);E+=Z.written}return DE=E,u}let yI=null;function c8(){return(yI===null||yI.byteLength===0)&&(yI=new Int32Array($b.memory.buffer)),yI}function yU(o,d,l){let c,u;try{const M=$b.__wbindgen_add_to_stack_pointer(-16),Z=vU(o,$b.__wbindgen_malloc,$b.__wbindgen_realloc),ne=DE,Ce=vU(d,$b.__wbindgen_malloc,$b.__wbindgen_realloc),Fe=DE;$b.glsl_compile(M,Z,ne,Ce,Fe,l);var m=c8()[M/4+0],E=c8()[M/4+1];return c=m,u=E,ew(m,E)}finally{$b.__wbindgen_add_to_stack_pointer(16),$b.__wbindgen_free(c,u,1)}}function _U(o,d){return Dg(this,null,function*(){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(o,d)}catch(c){if(o.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",c);else throw c}const l=yield o.arrayBuffer();return yield WebAssembly.instantiate(l,d)}else{const l=yield WebAssembly.instantiate(o,d);return l instanceof WebAssembly.Instance?{instance:l,module:o}:l}})}function SK(){const o={};return o.wbg={},o.wbg.__wbindgen_string_new=function(d,l){const c=ew(d,l);return CK(c)},o.wbg.__wbindgen_object_drop_ref=function(d){jR(d)},o.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(fL(d))},o.wbg.__wbg_log_576ca876af0d4a77=function(d,l){console.log(fL(d),fL(l))},o.wbg.__wbindgen_throw=function(d,l){throw new Error(ew(d,l))},o}function _I(o,d){return $b=o.exports,IE.__wbindgen_wasm_module=d,yI=null,AE=null,$b}function IE(o){return Dg(this,null,function*(){if($b!==void 0)return $b;const d=SK();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));const{instance:l,module:c}=yield _U(yield o,d);return _I(l,c)})}var lb;(function(o){o[o.COPY_SRC=1]="COPY_SRC",o[o.COPY_DST=2]="COPY_DST",o[o.TEXTURE_BINDING=4]="TEXTURE_BINDING",o[o.STORAGE_BINDING=8]="STORAGE_BINDING",o[o.STORAGE=8]="STORAGE",o[o.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(lb||(lb={}));var h8;(function(o){o[o.READ=1]="READ",o[o.WRITE=2]="WRITE"})(h8||(h8={}));function PE(o){var d=0;return o&Bb.SAMPLED&&(d|=lb.TEXTURE_BINDING|lb.COPY_DST),o&Bb.RENDER_TARGET&&(d|=lb.RENDER_ATTACHMENT|lb.TEXTURE_BINDING|lb.COPY_SRC|lb.COPY_DST),d}function bU(o){if(o===Ku.U8_R_NORM)return"r8unorm";if(o===Ku.U8_RG_NORM)return"rg8unorm";if(o===Ku.U8_RGBA_RT)return"bgra8unorm";if(o===Ku.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(o===Ku.U8_RGBA_NORM)return"rgba8unorm";if(o===Ku.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(o===Ku.S8_R_NORM)return"r8snorm";if(o===Ku.S8_RG_NORM)return"rg8snorm";if(o===Ku.S8_RGBA_NORM)return"rgba8snorm";if(o===Ku.U32_R)return"r32uint";if(o===Ku.F16_RGBA)return"rgba16float";if(o===Ku.F32_RGBA)return"rgba32float";if(o===Ku.D24)return"depth24plus";if(o===Ku.D24_S8)return"depth24plus-stencil8";if(o===Ku.D32F)return"depth32float";if(o===Ku.D32F_S8)return"depth32float-stencil8";if(o===Ku.BC1)return"bc1-rgba-unorm";if(o===Ku.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(o===Ku.BC2)return"bc2-rgba-unorm";if(o===Ku.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(o===Ku.BC3)return"bc3-rgba-unorm";if(o===Ku.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(o===Ku.BC4_SNORM)return"bc4-r-snorm";if(o===Ku.BC4_UNORM)return"bc4-r-unorm";if(o===Ku.BC5_SNORM)return"bc5-rg-snorm";if(o===Ku.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function ZR(o){if(o===wm.TEXTURE_2D)return"2d";if(o===wm.TEXTURE_CUBE_MAP)return"2d";if(o===wm.TEXTURE_2D_ARRAY)return"2d";if(o===wm.TEXTURE_3D)return"3d";throw new Error("whoops")}function d8(o){if(o===wm.TEXTURE_2D)return"2d";if(o===wm.TEXTURE_CUBE_MAP)return"cube";if(o===wm.TEXTURE_2D_ARRAY)return"2d-array";if(o===wm.TEXTURE_3D)return"3d";throw new Error("whoops")}function HR(o){var d=0;return o&cv.INDEX&&(d|=GPUBufferUsage.INDEX),o&cv.VERTEX&&(d|=GPUBufferUsage.VERTEX),o&cv.UNIFORM&&(d|=GPUBufferUsage.UNIFORM),o&cv.STORAGE&&(d|=GPUBufferUsage.STORAGE),o&cv.COPY_SRC&&(d|=GPUBufferUsage.COPY_SRC),d|=GPUBufferUsage.COPY_DST,d}function bI(o){if(o===J1.CLAMP_TO_EDGE)return"clamp-to-edge";if(o===J1.REPEAT)return"repeat";if(o===J1.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function gL(o){if(o===s1.BILINEAR)return"linear";if(o===s1.POINT)return"nearest";throw new Error("whoops")}function GR(o){if(o===_1.LINEAR)return"linear";if(o===_1.NEAREST)return"nearest";if(o===_1.NO_MIP)return"nearest";throw new Error("whoops")}function hS(o){var d=o;return d.gpuBuffer}function K0(o){var d=o;return d.gpuSampler}function LE(o){var d=o;return d.querySet}function EK(o){if(o===tL.OcclusionConservative)return"occlusion";throw new Error("whoops")}function mL(o){switch(o){case b1.TRIANGLES:return"triangle-list";case b1.POINTS:return"point-list";case b1.TRIANGLE_STRIP:return"triangle-strip";case b1.LINES:return"line-list";case b1.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function KR(o){if(o===sb.NONE)return"none";if(o===sb.FRONT)return"front";if(o===sb.BACK)return"back";throw new Error("whoops")}function XR(o){if(o===CE.CCW)return"ccw";if(o===CE.CW)return"cw";throw new Error("whoops")}function TK(o,d){return{topology:mL(o),cullMode:KR(d.cullMode),frontFace:XR(d.frontFace)}}function f8(o){if(o===Wm.ZERO)return"zero";if(o===Wm.ONE)return"one";if(o===Wm.SRC)return"src";if(o===Wm.ONE_MINUS_SRC)return"one-minus-src";if(o===Wm.DST)return"dst";if(o===Wm.ONE_MINUS_DST)return"one-minus-dst";if(o===Wm.SRC_ALPHA)return"src-alpha";if(o===Wm.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(o===Wm.DST_ALPHA)return"dst-alpha";if(o===Wm.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(o===Wm.CONST)return"constant";if(o===Wm.ONE_MINUS_CONSTANT)return"one-minus-constant";if(o===Wm.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function AK(o){if(o===l_.ADD)return"add";if(o===l_.SUBSTRACT)return"subtract";if(o===l_.REVERSE_SUBSTRACT)return"reverse-subtract";if(o===l_.MIN)return"min";if(o===l_.MAX)return"max";throw new Error("whoops")}function xU(o){return{operation:AK(o.blendMode),srcFactor:f8(o.blendSrcFactor),dstFactor:f8(o.blendDstFactor)}}function p8(o){return o.blendMode===l_.ADD&&o.blendSrcFactor===Wm.ONE&&o.blendDstFactor===Wm.ZERO}function wU(o){if(!(p8(o.rgbBlendState)&&p8(o.alphaBlendState)))return{color:xU(o.rgbBlendState),alpha:xU(o.alphaBlendState)}}function DK(o,d){return{format:bU(d),blend:wU(o),writeMask:o.channelWriteMask}}function IK(o,d){return d.attachmentsState.map(function(l,c){return DK(l,o[c])})}function YR(o){if(o===y0.NEVER)return"never";if(o===y0.LESS)return"less";if(o===y0.EQUAL)return"equal";if(o===y0.LEQUAL)return"less-equal";if(o===y0.GREATER)return"greater";if(o===y0.NOTEQUAL)return"not-equal";if(o===y0.GEQUAL)return"greater-equal";if(o===y0.ALWAYS)return"always";throw new Error("whoops")}function xI(o){if(o===N_.KEEP)return"keep";if(o===N_.REPLACE)return"replace";if(o===N_.ZERO)return"zero";if(o===N_.DECREMENT_CLAMP)return"decrement-clamp";if(o===N_.DECREMENT_WRAP)return"decrement-wrap";if(o===N_.INCREMENT_CLAMP)return"increment-clamp";if(o===N_.INCREMENT_WRAP)return"increment-wrap";if(o===N_.INVERT)return"invert";throw new Error("whoops")}function PK(o,d){if(!wE(o))return{format:bU(o),depthWriteEnabled:!!d.depthWrite,depthCompare:YR(d.depthCompare),depthBias:d.polygonOffset?1:0,depthBiasSlopeScale:d.polygonOffset?1:0,stencilFront:{compare:YR(d.stencilFront.compare),passOp:xI(d.stencilFront.passOp),failOp:xI(d.stencilFront.failOp),depthFailOp:xI(d.stencilFront.depthFailOp)},stencilBack:{compare:YR(d.stencilBack.compare),passOp:xI(d.stencilBack.passOp),failOp:xI(d.stencilBack.failOp),depthFailOp:xI(d.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function LK(o){if(o!==null){if(o===Ku.U16_R)return"uint16";if(o===Ku.U32_R)return"uint32";throw new Error("whoops")}}function MK(o){if(o===oS.VERTEX)return"vertex";if(o===oS.INSTANCE)return"instance";throw new Error("whoops")}function RK(o){if(o===Ku.U8_R)return"uint8x2";if(o===Ku.U8_RG)return"uint8x2";if(o===Ku.U8_RGB)return"uint8x4";if(o===Ku.U8_RGBA)return"uint8x4";if(o===Ku.U8_RG_NORM)return"unorm8x2";if(o===Ku.U8_RGBA_NORM)return"unorm8x4";if(o===Ku.S8_RGB_NORM)return"snorm8x4";if(o===Ku.S8_RGBA_NORM)return"snorm8x4";if(o===Ku.U16_RG_NORM)return"unorm16x2";if(o===Ku.U16_RGBA_NORM)return"unorm16x4";if(o===Ku.S16_RG_NORM)return"snorm16x2";if(o===Ku.S16_RGBA_NORM)return"snorm16x4";if(o===Ku.S16_RG)return"uint16x2";if(o===Ku.F16_RG)return"float16x2";if(o===Ku.F16_RGBA)return"float16x4";if(o===Ku.F32_R)return"float32";if(o===Ku.F32_RG)return"float32x2";if(o===Ku.F32_RGB)return"float32x3";if(o===Ku.F32_RGBA)return"float32x4";throw"whoops"}function kK(o){var d=Gw(o);switch(d){case Eh.BC1:case Eh.BC2:case Eh.BC3:case Eh.BC4_SNORM:case Eh.BC4_UNORM:case Eh.BC5_SNORM:case Eh.BC5_UNORM:return!0;default:return!1}}function OK(o){var d=Gw(o);switch(d){case Eh.BC1:case Eh.BC2:case Eh.BC3:case Eh.BC4_SNORM:case Eh.BC4_UNORM:case Eh.BC5_SNORM:case Eh.BC5_UNORM:return 4;default:return 1}}function CU(o,d,l,c){switch(l===void 0&&(l=!1),o){case Ku.S8_R:case Ku.S8_R_NORM:case Ku.S8_RG_NORM:case Ku.S8_RGB_NORM:case Ku.S8_RGBA_NORM:{var u=d instanceof ArrayBuffer?new Int8Array(d):new Int8Array(d);return c&&u.set(new Int8Array(c)),u}case Ku.U8_R:case Ku.U8_R_NORM:case Ku.U8_RG:case Ku.U8_RG_NORM:case Ku.U8_RGB:case Ku.U8_RGB_NORM:case Ku.U8_RGB_SRGB:case Ku.U8_RGBA:case Ku.U8_RGBA_NORM:case Ku.U8_RGBA_SRGB:{var m=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&m.set(new Uint8Array(c)),m}case Ku.S16_R:case Ku.S16_RG:case Ku.S16_RG_NORM:case Ku.S16_RGB_NORM:case Ku.S16_RGBA:case Ku.S16_RGBA_NORM:{var E=d instanceof ArrayBuffer?new Int16Array(d):new Int16Array(l?d/2:d);return c&&E.set(new Int16Array(c)),E}case Ku.U16_R:case Ku.U16_RGB:case Ku.U16_RGBA_5551:case Ku.U16_RGBA_NORM:case Ku.U16_RG_NORM:case Ku.U16_R_NORM:{var M=d instanceof ArrayBuffer?new Uint16Array(d):new Uint16Array(l?d/2:d);return c&&M.set(new Uint16Array(c)),M}case Ku.S32_R:{var Z=d instanceof ArrayBuffer?new Int32Array(d):new Int32Array(l?d/4:d);return c&&Z.set(new Int32Array(c)),Z}case Ku.U32_R:case Ku.U32_RG:{var ne=d instanceof ArrayBuffer?new Uint32Array(d):new Uint32Array(l?d/4:d);return c&&ne.set(new Uint32Array(c)),ne}case Ku.F32_R:case Ku.F32_RG:case Ku.F32_RGB:case Ku.F32_RGBA:{var Ce=d instanceof ArrayBuffer?new Float32Array(d):new Float32Array(l?d/4:d);return c&&Ce.set(new Float32Array(c)),Ce}}var Fe=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&Fe.set(new Uint8Array(c)),Fe}function NK(o){var d=(o&32768)>>15,l=(o&31744)>>10,c=o&1023;return l===0?(d?-1:1)*Math.pow(2,-14)*(c/Math.pow(2,10)):l==31?c?NaN:(d?-1:1)*(1/0):(d?-1:1)*Math.pow(2,l-15)*(1+c/Math.pow(2,10))}var Yw=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this)||this;return m.id=c,m.device=u,m}return d.prototype.destroy=function(){},d}(YN),FK=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.Bindings;var M=m.pipeline;rm(!!M);var Z=m.uniformBufferBindings,ne=m.storageBufferBindings,Ce=m.samplerBindings;E.numUniformBuffers=(Z==null?void 0:Z.length)||0;var Fe=[[],[]],bt=0;if(ne&&ne.length)for(var Bt=0;Bt0}).map(function(Iu,Vu){return E.device.device.createBindGroup({layout:M.getBindGroupLayout(Vu),entries:Iu})}),E}return d}(Yw),BK=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.Buffer;var M=m.usage,Z=m.viewOrSize,ne=!!(M&cv.MAP_READ);E.usage=HR(M),ne&&(E.usage=cv.MAP_READ|cv.COPY_DST);var Ce=!oI(Z);if(E.view=oI(Z)?null:Z,E.size=oI(Z)?LR(Z,4):LR(Z.byteLength,4),oI(Z))E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:ne?Ce:!1});else{E.gpuBuffer=E.device.device.createBuffer({usage:E.usage,size:E.size,mappedAtCreation:!0});var Fe=Z&&Z.constructor||Float32Array;new Fe(E.gpuBuffer.getMappedRange()).set(Z),E.gpuBuffer.unmap()}return E}return d.prototype.setSubData=function(l,c,u,m){u===void 0&&(u=0),m===void 0&&(m=0);var E=this.gpuBuffer;m=m||c.byteLength,m=Math.min(m,this.size-l);var M=c.byteOffset+u,Z=M+m,ne=m+3&-4;if(ne!==m){var Ce=new Uint8Array(c.buffer.slice(M,Z));c=new Uint8Array(ne),c.set(Ce),u=0,M=0,Z=ne,m=ne}for(var Fe=1024*1024*15,bt=0;Z-(M+bt)>Fe;)this.device.device.queue.writeBuffer(E,l+bt,c.buffer,M+bt,Fe),bt+=Fe;this.device.device.queue.writeBuffer(E,l+bt,c.buffer,M+bt,m-bt)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.gpuBuffer.destroy()},d}(Yw),zK=function(){function o(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return o.prototype.dispatchWorkgroups=function(d,l,c){this.gpuComputePassEncoder.dispatchWorkgroups(d,l,c)},o.prototype.dispatchWorkgroupsIndirect=function(d,l){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(d.gpuBuffer,l)},o.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},o.prototype.beginComputePass=function(){rm(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},o.prototype.setPipeline=function(d){var l=d,c=aS(l.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(c)},o.prototype.setBindings=function(d){var l=d;this.gpuComputePassEncoder.setBindGroup(0,l.gpuBindGroup[0])},o.prototype.pushDebugGroup=function(d){this.gpuComputePassEncoder.pushDebugGroup(d)},o.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},o.prototype.insertDebugMarker=function(d){this.gpuComputePassEncoder.insertDebugMarker(d)},o}(),UK=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.ComputePipeline,E.gpuComputePipeline=null,E.descriptor=m;var M=m.program,Z=M.computeStage;if(Z===null)return E;var ne={layout:"auto",compute:(0,Yf.pi)({},Z)};return E.gpuComputePipeline=E.device.device.createComputePipeline(ne),E.name!==void 0&&(E.gpuComputePipeline.label=E.name),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuComputePipeline.getBindGroupLayout(l)},d}(Yw),SU=function(o){(0,Yf.ZT)(d,o);function d(l){var c,u,m,E,M=l.id,Z=l.device,ne=l.descriptor,Ce=o.call(this,{id:M,device:Z})||this;Ce.type=r0.InputLayout;var Fe=[];try{for(var bt=(0,Yf.XA)(ne.vertexBufferDescriptors),Bt=bt.next();!Bt.done;Bt=bt.next()){var Cn=Bt.value,An=Cn.arrayStride,Pr=Cn.stepMode,ti=Cn.attributes;Fe.push({arrayStride:An,stepMode:MK(Pr),attributes:[]});try{for(var ho=(m=void 0,(0,Yf.XA)(ti)),bo=ho.next();!bo.done;bo=ho.next()){var Ds=bo.value,ta=Ds.shaderLocation,aa=Ds.format,Ua=Ds.offset;Fe[Fe.length-1].attributes.push({shaderLocation:ta,format:RK(aa),offset:Ua})}}catch(pl){m={error:pl}}finally{try{bo&&!bo.done&&(E=ho.return)&&E.call(ho)}finally{if(m)throw m.error}}}}catch(pl){c={error:pl}}finally{try{Bt&&!Bt.done&&(u=bt.return)&&u.call(bt)}finally{if(c)throw c.error}}return Ce.indexFormat=LK(ne.indexBufferFormat),Ce.buffers=Fe,Ce}return d}(Yw),tw=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=r0.Program,E.vertexStage=null,E.fragmentStage=null,E.computeStage=null,E.descriptor=m,m.vertex&&(E.vertexStage=E.createShaderStage(m.vertex,"vertex")),m.fragment&&(E.fragmentStage=E.createShaderStage(m.fragment,"fragment")),m.compute&&(E.computeStage=E.createShaderStage(m.compute,"compute")),E}return d.prototype.setUniformsLegacy=function(l){},d.prototype.createShaderStage=function(l,c){var u,m,E=l.glsl,M=l.wgsl,Z=l.entryPoint,ne=!1,Ce=M;if(!Ce)try{Ce=this.device.glsl_compile(E,c,ne)}catch(Pr){throw console.error(Pr,E),new Error("whoops")}var Fe=function(Pr){if(!Ce.includes(Pr))return"continue";Ce=Ce.replace("var T_".concat(Pr,": texture_2d;"),"var T_".concat(Pr,": texture_depth_2d;")),Ce=Ce.replace(new RegExp("textureSample\\(T_".concat(Pr,"(.*)\\);$"),"gm"),function(ti,ho){return"vec4(textureSample(T_".concat(Pr).concat(ho,"), 0.0, 0.0, 0.0);")})};try{for(var bt=(0,Yf.XA)(["u_TextureFramebufferDepth"]),Bt=bt.next();!Bt.done;Bt=bt.next()){var Cn=Bt.value;Fe(Cn)}}catch(Pr){u={error:Pr}}finally{try{Bt&&!Bt.done&&(m=bt.return)&&m.call(bt)}finally{if(u)throw u.error}}var An=this.device.device.createShaderModule({code:Ce});return{module:An,entryPoint:Z||"main"}},d}(Yw),tee=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;E.type=r0.QueryPool;var M=m.elemCount,Z=m.type;return E.querySet=E.device.device.createQuerySet({type:EK(Z),count:M}),E.resolveBuffer=E.device.device.createBuffer({size:M*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),E.cpuBuffer=E.device.device.createBuffer({size:M*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),E.results=null,E}return d.prototype.queryResultOcclusion=function(l){return this.results===null?null:this.results[l]!==BigInt(0)},d.prototype.destroy=function(){o.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},d}(Yw),$K=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=o.call(this,{id:c,device:u})||this;return m.type=r0.Readback,m}return d.prototype.readTexture=function(l,c,u,m,E,M,Z,ne){return Z===void 0&&(Z=0),(0,Yf.mG)(this,void 0,void 0,function(){var Ce,Fe,bt,Bt,Cn,An,Pr,ti;return(0,Yf.Jh)(this,function(ho){return Ce=l,Fe=0,bt=this.getBlockInformationFromFormat(Ce.gpuTextureformat),Bt=Math.ceil(m/bt.width)*bt.length,Cn=Math.ceil(Bt/256)*256,An=Cn*E,Pr=this.device.createBuffer({usage:cv.STORAGE|cv.MAP_READ|cv.COPY_DST,hint:Fb.STATIC,viewOrSize:An}),ti=this.device.device.createCommandEncoder(),ti.copyTextureToBuffer({texture:Ce.gpuTexture,mipLevel:0,origin:{x:c,y:u,z:Math.max(Fe,0)}},{buffer:Pr.gpuBuffer,offset:0,bytesPerRow:Cn},{width:m,height:E,depthOrArrayLayers:1}),this.device.device.queue.submit([ti.finish()]),[2,this.readBuffer(Pr,0,M.byteLength===An?M:null,Z,An,Ce.format)]})})},d.prototype.readTextureSync=function(l,c,u,m,E,M,Z,ne){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},d.prototype.readBuffer=function(l,c,u,m,E,M,Z,ne){var Ce=this;c===void 0&&(c=0),u===void 0&&(u=null),E===void 0&&(E=0),M===void 0&&(M=Ku.U8_RGB),Z===void 0&&(Z=!1);var Fe=l,bt=E||Fe.size,Bt=u||Fe.view,Cn=Bt&&Bt.constructor&&Bt.constructor.BYTES_PER_ELEMENT||qN(M),An=Fe;if(!(Fe.usage&cv.MAP_READ&&Fe.usage&cv.COPY_DST)){var Pr=this.device.device.createCommandEncoder();An=this.device.createBuffer({usage:cv.STORAGE|cv.MAP_READ|cv.COPY_DST,hint:Fb.STATIC,viewOrSize:bt}),Pr.copyBufferToBuffer(Fe.gpuBuffer,c,An.gpuBuffer,0,bt),this.device.device.queue.submit([Pr.finish()])}return new Promise(function(ti,ho){An.gpuBuffer.mapAsync(h8.READ,c,bt).then(function(){var bo=An.gpuBuffer.getMappedRange(c,bt),Ds=Bt;if(Z)Ds===null?Ds=CU(M,bt,!0,bo):Ds=CU(M,Ds.buffer,void 0,bo);else if(Ds===null)switch(Cn){case 1:Ds=new Uint8Array(bt),Ds.set(new Uint8Array(bo));break;case 2:Ds=Ce.getHalfFloatAsFloatRGBAArrayBuffer(bt/2,bo);break;case 4:Ds=new Float32Array(bt/4),Ds.set(new Float32Array(bo));break}else switch(Cn){case 1:Ds=new Uint8Array(Ds.buffer),Ds.set(new Uint8Array(bo));break;case 2:Ds=Ce.getHalfFloatAsFloatRGBAArrayBuffer(bt/2,bo,Bt);break;case 4:var ta=Bt&&Bt.constructor||Float32Array;Ds=new ta(Ds.buffer),Ds.set(new ta(bo));break}An.gpuBuffer.unmap(),ti(Ds)},function(bo){return ho(bo)})})},d.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(l,c,u){u||(u=new Float32Array(l));for(var m=new Uint16Array(c);l--;)u[l]=NK(m[l]);return u},d.prototype.getBlockInformationFromFormat=function(l){switch(l){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}},d}(Yw),vL=function(){function o(d){this.device=d,this.commandEncoder=null,this.gpuRenderPassEncoder=null,this.gfxColorAttachment=[],this.gfxColorAttachmentLevel=[],this.gfxColorResolveTo=[],this.gfxColorResolveToLevel=[],this.gfxDepthStencilAttachment=null,this.gfxDepthStencilResolveTo=null,this.gpuColorAttachments=[],this.gpuDepthStencilAttachment={view:null,depthLoadOp:"load",depthStoreOp:"store",stencilLoadOp:"load",stencilStoreOp:"store"},this.gpuRenderPassDescriptor={colorAttachments:this.gpuColorAttachments,depthStencilAttachment:this.gpuDepthStencilAttachment}}return o.prototype.getTextureView=function(d,l){return rm(l1?bt.resolveTarget=this.getTextureView(Fe,this.gfxColorResolveToLevel[ne]):bt.storeOp="store")}else{this.gpuColorAttachments.length=ne,this.gfxColorAttachment.length=ne,this.gfxColorResolveTo.length=ne;break}}if(this.gfxDepthStencilAttachment=d.depthStencilAttachment,this.gfxDepthStencilResolveTo=d.depthStencilResolveTo,d.depthStencilAttachment){var Cn=d.depthStencilAttachment,bt=this.gpuDepthStencilAttachment;bt.view=Cn.gpuTextureView;var An=!!(sI(Cn.format)&Bf.Depth);An?(d.depthClearValue==="load"?bt.depthLoadOp="load":(bt.depthLoadOp="clear",bt.depthClearValue=d.depthClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?bt.depthStoreOp="store":bt.depthStoreOp="discard"):(bt.depthLoadOp=void 0,bt.depthStoreOp=void 0);var Pr=!!(sI(Cn.format)&Bf.Stencil);Pr?(d.stencilClearValue==="load"?bt.stencilLoadOp="load":(bt.stencilLoadOp="clear",bt.stencilClearValue=d.stencilClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?bt.stencilStoreOp="store":bt.stencilStoreOp="discard"):(bt.stencilLoadOp=void 0,bt.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=wE(d.occlusionQueryPool)?void 0:LE(d.occlusionQueryPool)},o.prototype.beginRenderPass=function(d){rm(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(d),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},o.prototype.flipY=function(d,l){var c=this.device.swapChainHeight;return c-d-l},o.prototype.setViewport=function(d,l,c,u,m,E){m===void 0&&(m=0),E===void 0&&(E=1),this.gpuRenderPassEncoder.setViewport(d,this.flipY(l,u),c,u,m,E)},o.prototype.setScissorRect=function(d,l,c,u){this.gpuRenderPassEncoder.setScissorRect(d,this.flipY(l,u),c,u)},o.prototype.setPipeline=function(d){var l=d,c=aS(l.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(c)},o.prototype.setVertexInput=function(d,l,c){if(d!==null){var u=d;c!==null&&this.gpuRenderPassEncoder.setIndexBuffer(hS(c.buffer),aS(u.indexFormat),c.offset);for(var m=0;m1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},o.prototype.copyAttachment=function(d,l,c,u){rm(c.sampleCount===1);var m={texture:c.gpuTexture,mipLevel:u},E={texture:d.gpuTexture,mipLevel:l};rm(c.width>>>u===d.width>>>l),rm(c.height>>>u===d.height>>>l),rm(!!(c.usage&lb.COPY_SRC)),rm(!!(d.usage&lb.COPY_DST)),this.commandEncoder.copyTextureToTexture(m,E,[d.width,d.height,1])},o}(),VK=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=o.call(this,{id:c,device:u})||this;return E.type=r0.RenderPipeline,E.isCreatingAsync=!1,E.gpuRenderPipeline=null,E.descriptor=m,E.device.createRenderPipelineInternal(E,!1),E}return d.prototype.getBindGroupLayout=function(l){return this.gpuRenderPipeline.getBindGroupLayout(l)},d}(Yw),EU=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E,M,Z=o.call(this,{id:c,device:u})||this;Z.type=r0.Sampler;var ne=m.lodMinClamp,Ce=m.mipmapFilter===_1.NO_MIP?m.lodMinClamp:m.lodMaxClamp,Fe=(E=m.maxAnisotropy)!==null&&E!==void 0?E:1;return Fe>1&&rm(m.minFilter===s1.BILINEAR&&m.magFilter===s1.BILINEAR&&m.mipmapFilter===_1.LINEAR),Z.gpuSampler=Z.device.device.createSampler({addressModeU:bI(m.addressModeU),addressModeV:bI(m.addressModeV),addressModeW:bI((M=m.addressModeW)!==null&&M!==void 0?M:m.addressModeU),lodMinClamp:ne,lodMaxClamp:Ce,minFilter:gL(m.minFilter),magFilter:gL(m.magFilter),mipmapFilter:GR(m.mipmapFilter),compare:m.compareFunction!==void 0?YR(m.compareFunction):void 0,maxAnisotropy:Fe}),Z}return d}(Yw),yL=function(o){(0,Yf.ZT)(d,o);function d(l){var c=l.id,u=l.device,m=l.descriptor,E=l.skipCreate,M=l.sampleCount,Z=o.call(this,{id:c,device:u})||this;Z.type=r0.Texture;var ne=m.format,Ce=m.dimension,Fe=m.width,bt=m.height,Bt=m.depthOrArrayLayers,Cn=m.mipLevelCount,An=m.usage;return Z.device.createTextureShared({format:ne,dimension:Ce!=null?Ce:wm.TEXTURE_2D,width:Fe,height:bt,depthOrArrayLayers:Bt!=null?Bt:1,mipLevelCount:Cn!=null?Cn:1,usage:An,sampleCount:M!=null?M:1},Z,E),Z}return d.prototype.textureFromImageBitmapOrCanvas=function(l,c,u){for(var m=c[0].width,E=c[0].height,M={size:{width:m,height:E,depthOrArrayLayers:u},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},Z=l.createTexture(M),ne=0;ne>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},o.prototype.queryTextureFormatSupported=function(d,l,c){if(kK(d)){if(!this.featureTextureCompressionBC)return!1;var u=OK(d);return l%u!==0||c%u!==0?!1:this.featureTextureCompressionBC}switch(d){case Ku.U16_RGBA_NORM:return!1;case Ku.F32_RGBA:return!1}return!0},o.prototype.queryPlatformAvailable=function(){return!0},o.prototype.queryVendorInfo=function(){return this},o.prototype.queryRenderPass=function(d){var l=d;return l.descriptor},o.prototype.queryRenderTarget=function(d){var l=d;return l},o.prototype.setResourceName=function(d,l){if(d.name=l,d.type===r0.Buffer){var c=d;c.gpuBuffer.label=l}else if(d.type===r0.Texture){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===r0.RenderTarget){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===r0.Sampler){var c=d;c.gpuSampler.label=l}else if(d.type===r0.RenderPipeline){var c=d;c.gpuRenderPipeline!==null&&(c.gpuRenderPipeline.label=l)}},o.prototype.setResourceLeakCheck=function(d,l){},o.prototype.checkForLeaks=function(){},o.prototype.programPatched=function(d){},o.prototype.pipelineQueryReady=function(d){var l=d;return l.gpuRenderPipeline!==null},o.prototype.pipelineForceReady=function(d){var l=d;this.createRenderPipelineInternal(l,!1)},o}(),TU=function(){function o(d){this.pluginOptions=d}return o.prototype.createSwapChain=function(d){return(0,Yf.mG)(this,void 0,void 0,function(){var l,c,u,m,E,M,Z,ne;return(0,Yf.Jh)(this,function(Ce){switch(Ce.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];l=null,Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),c=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:c})];case 2:return l=Ce.sent(),[3,4];case 3:return u=Ce.sent(),console.log(u),[3,4];case 4:return l===null?[2,null]:(m=["depth32float-stencil8","texture-compression-bc"],E=m.filter(function(Fe){return l.features.has(Fe)}),[4,l.requestDevice({requiredFeatures:E})]);case 5:if(M=Ce.sent(),M&&(Z=this.pluginOptions.onContextLost,M.lost.then(function(){Z&&Z()})),M===null)return[2,null];if(ne=d.getContext("webgpu"),!ne)return[2,null];Ce.label=6;case 6:return Ce.trys.push([6,8,,9]),[4,IE(this.pluginOptions.shaderCompilerPath)];case 7:return Ce.sent(),[3,9];case 8:return Ce.sent(),[3,9];case 9:return[2,new g8(l,M,d,ne,yU)]}})})},o}(),AU=Ns.isPlainObject,qR=Ns.isTypedArray,wI=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"destroyed",!1),(0,Ln.Z)(this,"uniforms",{}),this.reGl=d;var c=l.vs,u=l.fs,m=l.attributes,E=l.uniforms,M=l.primitive,Z=l.count,ne=l.elements,Ce=l.depth,Fe=l.cull,bt=l.instances,Bt={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:SE.LOWER_LEFT,clipSpaceNearZ:zb.NEGATIVE_ONE,supportMRT:!1},Cn={};this.options=l,E&&(this.uniforms=this.extractUniforms(E),Object.keys(E).forEach(function(ti){Cn[ti]=d.prop(ti)}));var An={};Object.keys(m).forEach(function(ti){An[ti]=m[ti].get()});var Pr={attributes:An,frag:Pt(Kw(Bt,"frag",u,null,!1)),uniforms:Cn,vert:Pt(Kw(Bt,"vert",c,null,!1)),colorMask:d.prop("colorMask"),lineWidth:1,blend:{enable:d.prop("blend.enable"),func:d.prop("blend.func"),equation:d.prop("blend.equation"),color:d.prop("blend.color")},stencil:{enable:d.prop("stencil.enable"),mask:d.prop("stencil.mask"),func:d.prop("stencil.func"),opFront:d.prop("stencil.opFront"),opBack:d.prop("stencil.opBack")},primitive:HG[M===void 0?Di.TRIANGLES:M]};bt&&(Pr.instances=bt),Z?Pr.count=Z:ne&&(Pr.elements=ne.get()),this.initDepthDrawParams({depth:Ce},Pr),this.initCullDrawParams({cull:Fe},Pr),this.drawCommand=d(Pr),this.drawParams=Pr}return(0,ot.Z)(o,[{key:"updateAttributesAndElements",value:function(l,c){var u={};Object.keys(l).forEach(function(m){u[m]=l[m].get()}),this.drawParams.attributes=u,this.drawParams.elements=c.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(l){var c={};Object.keys(l).forEach(function(u){c[u]=l[u].get()}),this.drawParams.attributes=c,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(l){this.uniforms=(0,Oe.Z)((0,Oe.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l,c){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var u=(0,Oe.Z)((0,Oe.Z)({},this.uniforms),this.extractUniforms(l.uniforms||{})),m={};Object.keys(u).forEach(function(E){var M=(0,ri.Z)(u[E]);M==="boolean"||M==="number"||Array.isArray(u[E])||u[E].BYTES_PER_ELEMENT?m[E]=u[E]:m[E]=u[E].get()}),m.blend=c?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(l),m.stencil=this.getStencilDrawParams(l),m.colorMask=this.getColorMaskDrawParams(l,c),this.drawCommand(m)}}},{key:"destroy",value:function(){var l;(l=this.drawParams)===null||l===void 0||(l=l.elements)===null||l===void 0||l.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(c){c==null||c.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l,c){var u=l.depth;u&&(c.depth={enable:u.enable===void 0?!0:!!u.enable,mask:u.mask===void 0?!0:!!u.mask,func:Hz[u.func||Di.LESS],range:u.range||[0,1]})}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,M=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:Hw[E&&E.srcRGB||Di.SRC_ALPHA],srcAlpha:Hw[E&&E.srcAlpha||Di.SRC_ALPHA],dstRGB:Hw[E&&E.dstRGB||Di.ONE_MINUS_SRC_ALPHA],dstAlpha:Hw[E&&E.dstAlpha||Di.ONE_MINUS_SRC_ALPHA]},equation:{rgb:HN[M&&M.rgb||Di.FUNC_ADD],alpha:HN[M&&M.alpha||Di.FUNC_ADD]},color:ne}}},{key:"getStencilDrawParams",value:function(l){var c=l.stencil,u=c||{},m=u.enable,E=u.mask,M=E===void 0?-1:E,Z=u.func,ne=Z===void 0?{cmp:Di.ALWAYS,ref:0,mask:-1}:Z,Ce=u.opFront,Fe=Ce===void 0?{fail:Di.KEEP,zfail:Di.KEEP,zpass:Di.KEEP}:Ce,bt=u.opBack,Bt=bt===void 0?{fail:Di.KEEP,zfail:Di.KEEP,zpass:Di.KEEP}:bt;return{enable:!!m,mask:M,func:(0,Oe.Z)((0,Oe.Z)({},ne),{},{cmp:ER[ne.cmp]}),opFront:{fail:MA[Fe.fail],zfail:MA[Fe.zfail],zpass:MA[Fe.zpass]},opBack:{fail:MA[Bt.fail],zfail:MA[Bt.zfail],zpass:MA[Bt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(l,c){var u=l.stencil,m=u!=null&&u.enable&&u.opFront&&!c?[!1,!1,!1,!1]:[!0,!0,!0,!0];return m}},{key:"initCullDrawParams",value:function(l,c){var u=l.cull;if(u){var m=u.enable,E=u.face,M=E===void 0?Di.BACK:E;c.cull={enable:!!m,face:GN[M]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||qR(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}AU(c)&&Object.keys(c).forEach(function(M){E.extractUniformsRecursively(M,c[M],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(M,Z){Object.keys(M).forEach(function(ne){E.extractUniformsRecursively(ne,M[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}(),DU=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Di.UNSIGNED_BYTE:u,E=l.width,M=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,Ce=l.format,Fe=Ce===void 0?Di.RGBA:Ce,bt=l.mipmap,Bt=bt===void 0?!1:bt,Cn=l.wrapS,An=Cn===void 0?Di.CLAMP_TO_EDGE:Cn,Pr=l.wrapT,ti=Pr===void 0?Di.CLAMP_TO_EDGE:Pr,ho=l.aniso,bo=ho===void 0?0:ho,Ds=l.alignment,ta=Ds===void 0?1:Ds,aa=l.premultiplyAlpha,Ua=aa===void 0?!1:aa,pl=l.mag,ru=pl===void 0?Di.NEAREST:pl,Iu=l.min,Vu=Iu===void 0?Di.NEAREST:Iu,th=l.colorSpace,yh=th===void 0?Di.BROWSER_DEFAULT_WEBGL:th,Ed=l.x,$p=Ed===void 0?0:Ed,Kg=l.y,um=Kg===void 0?0:Kg,nv=l.copy,Em=nv===void 0?!1:nv;this.width=E,this.height=M;var gy={width:E,height:M,type:WN[m],format:GG[Fe],wrapS:SR[An],wrapT:SR[ti],mag:jN[ru],min:jN[Vu],alignment:ta,flipY:ne,colorSpace:ZN[yh],premultiplyAlpha:Ua,aniso:bo,x:$p,y:um,copy:Em};c&&(gy.data=c),typeof Bt=="number"?gy.mipmap=Zz[Bt]:typeof Bt=="boolean"&&(gy.mipmap=Bt),this.texture=d.texture(gy)}return(0,ot.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(l)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.texture.resize(c,u),this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),nw,ME,WK=(nw=(0,os.b2)(),nw(ME=function(){function o(){var d=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"uniformBuffers",[]),(0,Ln.Z)(this,"createModel",function(l){return new wI(d.gl,l)}),(0,Ln.Z)(this,"createAttribute",function(l){return new VN(d.gl,l)}),(0,Ln.Z)(this,"createBuffer",function(l){return new KN(d.gl,l)}),(0,Ln.Z)(this,"createElements",function(l){return new JP(d.gl,l)}),(0,Ln.Z)(this,"createTexture2D",function(l){return new DU(d.gl,l)}),(0,Ln.Z)(this,"createFramebuffer",function(l){return new lm(d.gl,l)}),(0,Ln.Z)(this,"useFramebuffer",function(l,c){d.gl({framebuffer:l?l.get():null})(c)}),(0,Ln.Z)(this,"clear",function(l){var c,u=l.color,m=l.depth,E=l.stencil,M=l.framebuffer,Z=M===void 0?null:M,ne={color:u,depth:m,stencil:E};ne.framebuffer=Z===null?Z:Z.get(),(c=d.gl)===null||c===void 0||c.clear(ne)}),(0,Ln.Z)(this,"viewport",function(l){var c=l.x,u=l.y,m=l.width,E=l.height;d.gl._gl.viewport(c,u,m,E),d.width=m,d.height=E,d.gl._refresh()}),(0,Ln.Z)(this,"readPixels",function(l){var c=l.framebuffer,u=l.x,m=l.y,E=l.width,M=l.height,Z={x:u,y:m,width:E,height:M};return c&&(Z.framebuffer=c.get()),d.gl.read(Z)}),(0,Ln.Z)(this,"getViewportSize",function(){return{width:d.gl._gl.drawingBufferWidth,height:d.gl._gl.drawingBufferHeight}}),(0,Ln.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Ln.Z)(this,"getCanvas",function(){return d.canvas}),(0,Ln.Z)(this,"getGLContext",function(){return d.gl._gl}),(0,Ln.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.gl)===null||l===void 0||(l=l._gl)===null||l===void 0||(l=l.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),d.gl.destroy(),d.gl=null})}return(0,ot.Z)(o,[{key:"init",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u,m,E){var M=this;return Wi().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(this.canvas=u,!E){ne.next=5;break}this.gl=E,ne.next=8;break;case 5:return ne.next=7,new Promise(function(Ce,Fe){Wz()({canvas:M.canvas,attributes:{alpha:!0,antialias:m.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:m.preserveDrawingBuffer,stencil:m.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","WEBGL_lose_context"],profile:!0,onDone:function(Bt,Cn){(Bt||!Cn)&&Fe(Bt),Ce(Cn)}})});case 7:this.gl=ne.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ne.stop()}},c,this)}));function l(c,u,m){return d.apply(this,arguments)}return l}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{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 l=this.getGLContext();l.disable(l.CULL_FACE)}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),o}())||ME),m8=function(){function o(d,l){(0,xt.Z)(this,o);var c=l.buffer,u=l.offset,m=l.stride,E=l.normalized,M=l.size,Z=l.divisor,ne=l.shaderLocation;this.buffer=c,this.attribute={shaderLocation:ne,buffer:c.get(),offset:u||0,stride:m||0,normalized:E||!1,divisor:Z||0},M&&(this.attribute.size=M)}return(0,ot.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),o}(),O1,rw,_L,bL,xL,qw,wL,$A,c_,CL=(O1={},(0,Ln.Z)(O1,Di.FLOAT,Float32Array),(0,Ln.Z)(O1,Di.UNSIGNED_BYTE,Uint8Array),(0,Ln.Z)(O1,Di.SHORT,Int16Array),(0,Ln.Z)(O1,Di.UNSIGNED_SHORT,Uint16Array),(0,Ln.Z)(O1,Di.INT,Int32Array),(0,Ln.Z)(O1,Di.UNSIGNED_INT,Uint32Array),O1),jK=(rw={},(0,Ln.Z)(rw,Di.POINTS,b1.POINTS),(0,Ln.Z)(rw,Di.LINES,b1.LINES),(0,Ln.Z)(rw,Di.LINE_LOOP,b1.LINES),(0,Ln.Z)(rw,Di.LINE_STRIP,b1.LINE_STRIP),(0,Ln.Z)(rw,Di.TRIANGLES,b1.TRIANGLES),(0,Ln.Z)(rw,Di.TRIANGLE_FAN,b1.TRIANGLES),(0,Ln.Z)(rw,Di.TRIANGLE_STRIP,b1.TRIANGLE_STRIP),rw),ZK=(_L={},(0,Ln.Z)(_L,1,Ku.F32_R),(0,Ln.Z)(_L,2,Ku.F32_RG),(0,Ln.Z)(_L,3,Ku.F32_RGB),(0,Ln.Z)(_L,4,Ku.F32_RGBA),_L),nee=(bL={},(0,Ln.Z)(bL,Di.STATIC_DRAW,Fb.STATIC),(0,Ln.Z)(bL,Di.DYNAMIC_DRAW,Fb.DYNAMIC),(0,Ln.Z)(bL,Di.STREAM_DRAW,Fb.DYNAMIC),bL),o2=(xL={},(0,Ln.Z)(xL,Di.REPEAT,J1.REPEAT),(0,Ln.Z)(xL,Di.CLAMP_TO_EDGE,J1.CLAMP_TO_EDGE),(0,Ln.Z)(xL,Di.MIRRORED_REPEAT,J1.MIRRORED_REPEAT),xL),IU=(qw={},(0,Ln.Z)(qw,Di.NEVER,y0.NEVER),(0,Ln.Z)(qw,Di.ALWAYS,y0.ALWAYS),(0,Ln.Z)(qw,Di.LESS,y0.LESS),(0,Ln.Z)(qw,Di.LEQUAL,y0.LEQUAL),(0,Ln.Z)(qw,Di.GREATER,y0.GREATER),(0,Ln.Z)(qw,Di.GEQUAL,y0.GEQUAL),(0,Ln.Z)(qw,Di.EQUAL,y0.EQUAL),(0,Ln.Z)(qw,Di.NOTEQUAL,y0.NOTEQUAL),qw),iw=(wL={},(0,Ln.Z)(wL,Di.FRONT,sb.FRONT),(0,Ln.Z)(wL,Di.BACK,sb.BACK),wL),v8=($A={},(0,Ln.Z)($A,Di.FUNC_ADD,l_.ADD),(0,Ln.Z)($A,Di.MIN_EXT,l_.MIN),(0,Ln.Z)($A,Di.MAX_EXT,l_.MAX),(0,Ln.Z)($A,Di.FUNC_SUBTRACT,l_.SUBSTRACT),(0,Ln.Z)($A,Di.FUNC_REVERSE_SUBTRACT,l_.REVERSE_SUBSTRACT),$A),CI=(c_={},(0,Ln.Z)(c_,Di.ZERO,Wm.ZERO),(0,Ln.Z)(c_,Di.ONE,Wm.ONE),(0,Ln.Z)(c_,Di.SRC_COLOR,Wm.SRC),(0,Ln.Z)(c_,Di.ONE_MINUS_SRC_COLOR,Wm.ONE_MINUS_SRC),(0,Ln.Z)(c_,Di.SRC_ALPHA,Wm.SRC_ALPHA),(0,Ln.Z)(c_,Di.ONE_MINUS_SRC_ALPHA,Wm.ONE_MINUS_SRC_ALPHA),(0,Ln.Z)(c_,Di.DST_COLOR,Wm.DST),(0,Ln.Z)(c_,Di.ONE_MINUS_DST_COLOR,Wm.ONE_MINUS_DST),(0,Ln.Z)(c_,Di.DST_ALPHA,Wm.DST_ALPHA),(0,Ln.Z)(c_,Di.ONE_MINUS_DST_ALPHA,Wm.ONE_MINUS_DST_ALPHA),(0,Ln.Z)(c_,Di.CONSTANT_COLOR,Wm.CONST),(0,Ln.Z)(c_,Di.ONE_MINUS_CONSTANT_COLOR,Wm.ONE_MINUS_CONSTANT),(0,Ln.Z)(c_,Di.CONSTANT_ALPHA,Wm.CONST),(0,Ln.Z)(c_,Di.ONE_MINUS_CONSTANT_ALPHA,Wm.ONE_MINUS_CONSTANT),(0,Ln.Z)(c_,Di.SRC_ALPHA_SATURATE,Wm.SRC_ALPHA_SATURATE),c_),Vb={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function JR(o){return Object.prototype.toString.call(o)in Vb}var HK=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"isDestroyed",!1);var c=l.data,u=l.usage,m=l.type,E=l.isUBO,M;JR(c)?M=c:M=new CL[this.type||Di.FLOAT](c),this.type=m,this.size=M.byteLength,this.buffer=d.createBuffer({viewOrSize:M,usage:E?cv.UNIFORM:cv.VERTEX,hint:nee[u||Di.STATIC_DRAW]})}return(0,ot.Z)(o,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,u=l.offset,m;JR(c)?m=c:m=new CL[this.type||Di.FLOAT](c),this.buffer.setSubData(u,new Uint8Array(m.buffer))}}]),o}(),GK=function(){function o(d,l){(0,xt.Z)(this,o);var c=l.data,u=l.type,m=l.count,E=m===void 0?0:m,M;JR(c)?M=c:M=new CL[this.type||Di.UNSIGNED_INT](c),this.type=u,this.count=E,this.indexBuffer=d.createBuffer({viewOrSize:M,usage:cv.INDEX})}return(0,ot.Z)(o,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(l){var c=l.data,u;JR(c)?u=c:u=new CL[this.type||Di.UNSIGNED_INT](c),this.indexBuffer.setSubData(0,new Uint8Array(u.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),o}();function SI(o){return!1}var PU=function(){function o(d,l){(0,xt.Z)(this,o),(0,Ln.Z)(this,"isDestroy",!1);var c=l.data,u=l.type,m=u===void 0?Di.UNSIGNED_BYTE:u,E=l.width,M=l.height,Z=l.flipY,ne=Z===void 0?!1:Z,Ce=l.format,Fe=Ce===void 0?Di.RGBA:Ce,bt=l.wrapS,Bt=bt===void 0?Di.CLAMP_TO_EDGE:bt,Cn=l.wrapT,An=Cn===void 0?Di.CLAMP_TO_EDGE:Cn,Pr=l.alignment,ti=Pr===void 0?1:Pr;this.width=E,this.height=M;var ho=Ku.U8_RGBA_RT;if(m===Di.UNSIGNED_BYTE&&Fe===Di.RGBA)ho=Ku.U8_RGBA_RT;else if(Fe===Di.LUMINANCE&&m===Di.FLOAT)ho=Ku.F32_LUMINANCE;else if(Fe===Di.LUMINANCE&&m===Di.UNSIGNED_BYTE)ho=Ku.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(m,", format: ").concat(Fe));this.texture=d.createTexture({format:ho,width:E,height:M,usage:Bb.SAMPLED,pixelStore:{unpackFlipY:ne,packAlignment:ti}}),c&&this.texture.setImageData([c]),this.sampler=d.createSampler({addressModeU:o2[Bt],addressModeV:o2[An],minFilter:s1.POINT,magFilter:s1.BILINEAR,mipmapFilter:_1.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,ot.Z)(o,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(l){var c=l.data;this.texture.setImageData([c])}},{key:"bind",value:function(){}},{key:"resize",value:function(l){var c=l.width,u=l.height;this.width=c,this.height=u}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),o}(),KK=function(){function o(d,l){(0,xt.Z)(this,o),this.device=d;var c=l.width,u=l.height,m=l.color;SI(m)?(this.renderTarget=d.createRenderTargetFromTexture(m.get()),this.width=m.width,this.height=m.height):c&&u&&(this.renderTarget=d.createRenderTarget({format:Ku.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}return(0,ot.Z)(o,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(l){var c=l.width,u=l.height;(this.width!==c||this.height!==u)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:Ku.U8_RGBA_RT,width:c,height:u}),this.width=c,this.height=u)}}]),o}(),XK=Ns.isPlainObject,LU=Ns.isTypedArray,y8=function(){function o(d,l){var c=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"destroyed",!1),(0,Ln.Z)(this,"uniforms",{}),(0,Ln.Z)(this,"vertexBuffers",[]),this.device=d,this.options=l;var u=l.vs,m=l.fs,E=l.attributes,M=l.uniforms,Z=l.count,ne=l.elements;this.options=l;var Ce=d.createProgram({vertex:{glsl:u},fragment:{glsl:m}});this.program=Ce,M&&(this.uniforms=this.extractUniforms(M));var Fe=[],bt=0;Object.keys(E).forEach(function(Cn){var An=E[Cn],Pr=An.get();c.vertexBuffers.push(Pr.get());var ti=An.attribute,ho=ti.offset,bo=ho===void 0?0:ho,Ds=ti.stride,ta=Ds===void 0?0:Ds,aa=ti.size,Ua=aa===void 0?1:aa,pl=ti.divisor,ru=pl===void 0?0:pl,Iu=ti.shaderLocation,Vu=Iu===void 0?0:Iu;Fe.push({arrayStride:ta||Ua*4,stepMode:oS.VERTEX,attributes:[{format:ZK[Ua],shaderLocation:Vu,offset:bo,divisor:ru}]}),bt=Pr.size/Ua}),Z||(this.options.count=bt),ne&&(this.indexBuffer=ne.get());var Bt=d.createInputLayout({vertexBufferDescriptors:Fe,indexBufferFormat:ne?Ku.U32_R:null,program:Ce});this.inputLayout=Bt,this.pipeline=this.createPipeline(l)}return(0,ot.Z)(o,[{key:"createPipeline",value:function(l){var c=l.primitive,u=c===void 0?Di.TRIANGLES:c,m=l.depth,E=l.cull,M=l.blend,Z=this.initDepthDrawParams({depth:m}),ne=!!(Z&&Z.enable),Ce=this.initCullDrawParams({cull:E}),Fe=!!(Ce&&Ce.enable),bt=this.getBlendDrawParams({blend:M}),Bt=!!(bt&&bt.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:jK[u],colorAttachmentFormats:[Ku.U8_RGBA_RT],depthStencilAttachmentFormat:Ku.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:u_.ALL,rgbBlendState:{blendMode:Bt&&bt.equation.rgb||l_.ADD,blendSrcFactor:Bt&&bt.func.srcRGB||Wm.SRC_ALPHA,blendDstFactor:Bt&&bt.func.dstRGB||Wm.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:Bt&&bt.equation.alpha||l_.ADD,blendSrcFactor:Bt&&bt.func.srcAlpha||Wm.ONE,blendDstFactor:Bt&&bt.func.dstAlpha||Wm.ONE_MINUS_SRC_ALPHA}}],blendConstant:PR,depthWrite:ne,depthCompare:ne&&Z.func||y0.LESS,cullMode:Fe&&Ce.face||sb.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(l){this.uniforms=(0,Oe.Z)((0,Oe.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l){var c=(0,Oe.Z)((0,Oe.Z)({},this.options),l),u=c.count,m=u===void 0?0:u,E=c.instances,M=c.elements,Z=c.uniforms,ne=Z===void 0?{}:Z,Ce=c.uniformBuffers,Fe=c.textures;this.uniforms=(0,Oe.Z)((0,Oe.Z)({},this.uniforms),this.extractUniforms(ne));var bt=this.device,Bt=bt.width,Cn=bt.height,An=this.device.renderPass;if(this.pipeline=this.createPipeline(c),An.setPipeline(this.pipeline),An.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(ti){return{buffer:ti}}),M?{buffer:this.indexBuffer,offset:0}:null),An.setViewport(0,0,Bt,Cn),Ce&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:Ce.map(function(ti,ho){var bo=ti;return{binding:ho,buffer:bo.get(),size:bo.size}}),samplerBindings:Fe==null?void 0:Fe.map(function(ti){return{texture:ti.texture,sampler:ti.sampler}})})),this.bindings&&(An.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),M){var Pr=M.count;Pr===0?An.draw(m,E):An.drawIndexed(Pr,E)}else An.draw(m,E)}},{key:"destroy",value:function(){var l,c,u;this.program.destroy(),(l=this.vertexBuffers)===null||l===void 0||l.forEach(function(m){return m.destroy()}),(c=this.indexBuffer)===null||c===void 0||c.destroy(),(u=this.bindings)===null||u===void 0||u.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l){var c=l.depth;if(c)return{enable:c.enable===void 0?!0:!!c.enable,mask:c.mask===void 0?!0:!!c.mask,func:IU[c.func||Di.LESS],range:c.range||[0,1]}}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,u=c||{},m=u.enable,E=u.func,M=u.equation,Z=u.color,ne=Z===void 0?[0,0,0,0]:Z;return{enable:!!m,func:{srcRGB:CI[E&&E.srcRGB||Di.SRC_ALPHA],srcAlpha:CI[E&&E.srcAlpha||Di.SRC_ALPHA],dstRGB:CI[E&&E.dstRGB||Di.ONE_MINUS_SRC_ALPHA],dstAlpha:CI[E&&E.dstAlpha||Di.ONE_MINUS_SRC_ALPHA]},equation:{rgb:v8[M&&M.rgb||Di.FUNC_ADD],alpha:v8[M&&M.alpha||Di.FUNC_ADD]},color:ne}}},{key:"initCullDrawParams",value:function(l){var c=l.cull;if(c){var u=c.enable,m=c.face,E=m===void 0?Di.BACK:m;return{enable:!!u,face:iw[E]}}}},{key:"extractUniforms",value:function(l){var c=this,u={};return Object.keys(l).forEach(function(m){c.extractUniformsRecursively(m,l[m],u,"")}),u}},{key:"extractUniformsRecursively",value:function(l,c,u,m){var E=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||LU(c)||c===""||"resize"in c){u["".concat(m&&m+".").concat(l)]=c;return}XK(c)&&Object.keys(c).forEach(function(M){E.extractUniformsRecursively(M,c[M],u,"".concat(m&&m+".").concat(l))}),Array.isArray(c)&&c.forEach(function(M,Z){Object.keys(M).forEach(function(ne){E.extractUniformsRecursively(ne,M[ne],u,"".concat(m&&m+".").concat(l,"[").concat(Z,"]"))})})}}]),o}();function _8(o){return typeof WebGL2RenderingContext!="undefined"&&o instanceof WebGL2RenderingContext?!0:!!(o&&o._version===2)}var MU,RU,YK=(MU=(0,os.b2)(),MU(RU=function(){function o(){var d=this;(0,xt.Z)(this,o),(0,Ln.Z)(this,"uniformBuffers",[]),(0,Ln.Z)(this,"createModel",function(l){return new y8(d.device,l)}),(0,Ln.Z)(this,"createAttribute",function(l){return new m8(d.device,l)}),(0,Ln.Z)(this,"createBuffer",function(l){return new HK(d.device,l)}),(0,Ln.Z)(this,"createElements",function(l){return new GK(d.device,l)}),(0,Ln.Z)(this,"createTexture2D",function(l){return new PU(d.device,l)}),(0,Ln.Z)(this,"createFramebuffer",function(l){return new KK(d.device,l)}),(0,Ln.Z)(this,"useFramebuffer",function(){}),(0,Ln.Z)(this,"clear",function(){}),(0,Ln.Z)(this,"viewport",function(l){var c=l.width,u=l.height;d.width=c,d.height=u,d.device.width=c,d.device.height=u}),(0,Ln.Z)(this,"readPixels",function(){return new Uint8Array}),(0,Ln.Z)(this,"getViewportSize",function(){return{width:d.device.width,height:d.device.height}}),(0,Ln.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,Ln.Z)(this,"getCanvas",function(){return d.canvas}),(0,Ln.Z)(this,"getGLContext",function(){return d.device.gl}),(0,Ln.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.uniformBuffers)===null||l===void 0||l.forEach(function(c){c.destroy()}),d.device.destroy()})}return(0,ot.Z)(o,[{key:"init",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u,m){var E,M,Z,ne,Ce,Fe;return Wi().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return E=m.enableWebGPU,M=m.shaderCompilerPath,this.canvas=u,Z=E?new TU({shaderCompilerPath:M}):new u8({targets:["webgl2","webgl1"],onContextLost:function(An){console.warn("context lost",An)},onContextCreationError:function(An){console.warn("context creation error",An)},onContextRestored:function(An){console.warn("context restored",An)}}),Bt.next=5,Z.createSwapChain(u);case 5:ne=Bt.sent,ne.configureSwapChain(u.width,u.height),this.device=ne.getDevice(),this.swapChain=ne,Ce=this.device.gl,this.extensionObject={OES_texture_float:!_8(Ce)&&this.device.OES_texture_float},Fe=this.device.createTexture({format:Ku.U8_RGBA_RT,width:u.width,height:u.height,usage:Bb.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(Fe),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:Ku.D24_S8,width:u.width,height:u.height,usage:Bb.RENDER_TARGET}));case 14:case"end":return Bt.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"beginFrame",value:function(){var l=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[l],colorClearColor:[PR],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var l=this.device.gl;return l.getParameter(l.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}}]),o}())||RU);function qK(o){var d=JK();return function(){var c=(0,_t.Z)(o),u;if(d){var m=(0,_t.Z)(this).constructor;u=Reflect.construct(c,arguments,m)}else u=c.apply(this,arguments);return(0,$t.Z)(this,u)}}function JK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}var QR=["selectstart","selecting","selectend"],QK=function(o){(0,ut.Z)(l,o);var d=qK(l);function l(c){var u,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,xt.Z)(this,l),u=d.call(this),(0,Ln.Z)((0,gs.Z)(u),"isEnable",!1),(0,Ln.Z)((0,gs.Z)(u),"onDragStart",function(E){u.box.style.display="block",u.startEvent=u.endEvent=E,u.syncBoxBound(),u.emit("selectstart",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Ln.Z)((0,gs.Z)(u),"onDragging",function(E){u.endEvent=E,u.syncBoxBound(),u.emit("selecting",u.getLngLatBox(),u.startEvent,u.endEvent)}),(0,Ln.Z)((0,gs.Z)(u),"onDragEnd",function(E){u.endEvent=E,u.box.style.display="none",u.emit("selectend",u.getLngLatBox(),u.startEvent,u.endEvent)}),u.scene=c,u.options=m,u}return(0,ot.Z)(l,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var u=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var m=As("div",void 0,this.container);m.classList.add("l7-select-box"),u&&m.classList.add(u),m.style.display="none",this.box=m}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var u=this.startEvent,m=u.x,E=u.y,M=this.endEvent,Z=M.x,ne=M.y,Ce=Math.min(m,Z),Fe=Math.min(E,ne),bt=Math.abs(m-Z),Bt=Math.abs(E-ne);this.box.style.top="".concat(Fe,"px"),this.box.style.left="".concat(Ce,"px"),this.box.style.width="".concat(bt,"px"),this.box.style.height="".concat(Bt,"px")}},{key:"getLngLatBox",value:function(){var u=this.startEvent.lngLat,m=u.lng,E=u.lat,M=this.endEvent.lngLat,Z=M.lng,ne=M.lat;return tp([[m,E],[Z,ne]])}}]),l}(uc.EventEmitter),eX=function(){function o(d){(0,xt.Z)(this,o);var l=d.id,c=d.map,u=d.canvas,m=d.hasBaseMap,E=d.renderer,M=E===void 0?"regl":E,Z=H_();this.container=Z,c.setContainer(Z,l,u,m),Z.bind(Ms.IRendererService).to(M==="regl"?WK:YK).inSingletonScope(),this.sceneService=Z.get(Ms.ISceneService),this.mapService=Z.get(Ms.IMapService),this.iconService=Z.get(Ms.IIconService),this.fontService=Z.get(Ms.IFontService),this.controlService=Z.get(Ms.IControlService),this.layerService=Z.get(Ms.ILayerService),this.debugService=Z.get(Ms.IDebugService),this.debugService.setEnable(d.debug),this.markerService=Z.get(Ms.IMarkerService),this.interactionService=Z.get(Ms.IInteractionService),this.popupService=Z.get(Ms.IPopupService),this.boxSelect=new QK(this,{}),this.initComponent(l),this.sceneService.init(d),this.initControl()}return(0,ot.Z)(o,[{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:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u){return Wi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"exportMap",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u){return Wi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",this.sceneService.exportPng(u));case 1:case"end":return E.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"registerRenderService",value:function(l){var c=this;if(this.sceneService.loaded){var u=new l(this);u.init()}else this.on("loaded",function(){var m=new l(c);m.init()})}},{key:"setBgColor",value:function(l){this.mapService.setBgColor(l)}},{key:"addLayer",value:function(l){var c=this,u=Bx(this.container);if(l.setContainer(u,this.container),this.sceneService.addLayer(l),l.inited){var m=this.initMask(l);this.addMask(m,l.id)}else l.on("inited",function(){var E=c.initMask(l);c.addMask(E,l.id)})}},{key:"initMask",value:function(l){var c=l.getLayerConfig(),u=c.mask,m=c.maskfence,E=c.maskColor,M=E===void 0?"#000":E,Z=c.maskOpacity,ne=Z===void 0?0:Z;if(!(!u||!m)){var Ce=new WO().source(m).shape("fill").style({color:M,opacity:ne});return Ce}}},{key:"addMask",value:function(l,c){if(l){var u=this.getLayer(c);if(u){var m=Bx(this.container);l.setContainer(m,this.container),u.addMaskLayer(l),this.sceneService.addMask(l)}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(l){return this.layerService.getLayer(l)}},{key:"getLayerByName",value:function(l){return this.layerService.getLayerByName(l)}},{key:"removeLayer",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u,m){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.layerService.remove(u,m);case 2:case"end":return M.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"removeAllLayer",value:function(){var d=(0,Il.Z)(Wi().mark(function c(){return Wi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.layerService.removeAllLayers();case 2:case"end":return m.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(l){this.layerService.setEnableRender(l)}},{key:"addIconFont",value:function(l,c){this.fontService.addIconFont(l,c)}},{key:"addIconFonts",value:function(l){var c=this;l.forEach(function(u){var m=(0,mi.Z)(u,2),E=m[0],M=m[1];c.fontService.addIconFont(E,M)})}},{key:"addFontFace",value:function(l,c){var u=this;this.fontService.once("fontloaded",function(m){u.emit("fontloaded",m)}),this.fontService.addFontFace(l,c)}},{key:"addImage",value:function(){var d=(0,Il.Z)(Wi().mark(function c(u,m){return Wi().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.iconService.addImage(u,m);case 2:case"end":return M.stop()}},c,this)}));function l(c,u){return d.apply(this,arguments)}return l}()},{key:"hasImage",value:function(l){return this.iconService.hasImage(l)}},{key:"removeImage",value:function(l){this.iconService.removeImage(l)}},{key:"addIconFontGlyphs",value:function(l,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(l){this.controlService.addControl(l,this.container)}},{key:"removeControl",value:function(l){this.controlService.removeControl(l)}},{key:"getControlByName",value:function(l){return this.controlService.getControlByName(l)}},{key:"addMarker",value:function(l){this.markerService.addMarker(l)}},{key:"addMarkerLayer",value:function(l){this.markerService.addMarkerLayer(l)}},{key:"removeMarkerLayer",value:function(l){this.markerService.removeMarkerLayer(l)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(l){this.popupService.addPopup(l)}},{key:"removePopup",value:function(l){this.popupService.removePopup(l)}},{key:"on",value:function(l,c){if(QR.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.on(l,c)}else A2.includes(l)?this.sceneService.on(l,c):this.mapService.on(l,c)}},{key:"once",value:function(l,c){if(QR.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.once(l,c)}else A2.includes(l)?this.sceneService.once(l,c):this.mapService.once(l,c)}},{key:"emit",value:function(l,c){A2.indexOf(l)===-1?this.mapService.on(l,c):this.sceneService.emit(l,c)}},{key:"off",value:function(l,c){if(QR.includes(l)){var u;(u=this.boxSelect)===null||u===void 0||u.off(l,c)}else A2.includes(l)?this.sceneService.off(l,c):this.mapService.off(l,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(l){return this.mapService.getCenter(l)}},{key:"setCenter",value:function(l,c){return this.mapService.setCenter(l,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(l){return this.mapService.setPitch(l)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(l){this.mapService.setRotation(l)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(l){this.mapService.panTo(l)}},{key:"panBy",value:function(l,c){this.mapService.panBy(l,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(l){this.mapService.setZoom(l)}},{key:"fitBounds",value:function(l,c){var u=this.sceneService.getSceneConfig(),m=u.fitBoundsOptions,E=u.animate;this.mapService.fitBounds(l,c||(0,Oe.Z)((0,Oe.Z)({},m),{},{animate:E}))}},{key:"setZoomAndCenter",value:function(l,c){this.mapService.setZoomAndCenter(l,c)}},{key:"setMapStyle",value:function(l){this.mapService.setMapStyle(l)}},{key:"setMapStatus",value:function(l){this.mapService.setMapStatus(l)}},{key:"pixelToLngLat",value:function(l){return this.mapService.pixelToLngLat(l)}},{key:"lngLatToPixel",value:function(l){return this.mapService.lngLatToPixel(l)}},{key:"containerToLngLat",value:function(l){return this.mapService.containerToLngLat(l)}},{key:"lngLatToContainer",value:function(l){return this.mapService.lngLatToContainer(l)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(l,c){this.container.bind(Ms.IPostProcessingPass).to(l).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){l.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(l){return Mo.REGISTERED_PROTOCOLS[l]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(l){this.controlService.init({container:vl(l)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var l=this.sceneService.getSceneConfig(),c=l.logoVisible,u=l.logoPosition;c&&this.addControl(new Ot({position:u}))}}],[{key:"addProtocol",value:function(l,c){Mo.REGISTERED_PROTOCOLS[l]=c}},{key:"removeProtocol",value:function(l){delete Mo.REGISTERED_PROTOCOLS[l]}}]),o}(),tX="2.20.3"},19752:function(gt,Y,_){"use strict";_.d(Y,{br:function(){return up},ot:function(){return le},l_:function(){return ie},$2:function(){return er},Ie:function(){return Dp},OB:function(){return Od},w3:function(){return Mt},Jx:function(){return Uc},CB:function(){return Lo},ns:function(){return Ng},dW:function(){return mp},GI:function(){return td},YY:function(){return dp},kp:function(){return Nn},jf:function(){return Xl},AB:function(){return np},Ly:function(){return lh},dN:function(){return qi},$r:function(){return Nr}});var v=_(47766),R=_(67294),w=_(70202),b=function(Ge){return function(He,mt){var In=(0,R.useRef)(),bi=(0,R.useRef)(0);(mt===void 0||!(0,w.k)(mt,In.current))&&(In.current=mt,bi.current+=1),Ge(He,[bi.current])}},B=b(R.useEffect),V=_(94184),O=_.n(V),L=_(49360),S=_(58146),g=_(290),T="*",k=function(){function Ge(){this._events={}}return Ge.prototype.on=function(He,mt,In){return this._events[He]||(this._events[He]=[]),this._events[He].push({callback:mt,once:!!In}),this},Ge.prototype.once=function(He,mt){return this.on(He,mt,!0)},Ge.prototype.emit=function(He){for(var mt=this,In=[],bi=1;bi=Ge.length?{done:!0}:{done:!1,value:Ge[In++]}},e:function(za){throw za},f:bi}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Kn=!0,vi=!1,Co;return{s:function(){mt=mt.call(Ge)},n:function(){var za=mt.next();return Kn=za.done,za},e:function(za){vi=!0,Co=za},f:function(){try{!Kn&&mt.return!=null&&mt.return()}finally{if(vi)throw Co}}}}function fe(Ge,He){if(Ge){if(typeof Ge=="string")return _e(Ge,He);var mt=Object.prototype.toString.call(Ge).slice(8,-1);if(mt==="Object"&&Ge.constructor&&(mt=Ge.constructor.name),mt==="Map"||mt==="Set")return Array.from(Ge);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return _e(Ge,He)}}function _e(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(He!=null?He:{}).map(function(mt){var In=ot(mt,2),bi=In[0],Kn=In[1],vi=(0,Ft.Z)(bi),Co=Kn;return typeof Co=="number"?Co="".concat(Co,"px"):typeof Co=="string"&&(Co=Co.replace("'","")),"".concat(vi," :").concat(Co)}).join("; ")};function $r(Ge,He){return Hr(Ge)||Ti(Ge,He)||oo(Ge,He)||wi()}function wi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oo(Ge,He){if(Ge){if(typeof Ge=="string")return Mo(Ge,He);var mt=Object.prototype.toString.call(Ge).slice(8,-1);if(mt==="Object"&&Ge.constructor&&(mt=Ge.constructor.name),mt==="Map"||mt==="Set")return Array.from(Ge);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return Mo(Ge,He)}}function Mo(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=0;--nu){var su=this.tryEntries[nu],bc=su.completion;if(su.tryLoc==="root")return Wa("end");if(su.tryLoc<=this.prev){var Uh=In.call(su,"catchLoc"),Cs=In.call(su,"finallyLoc");if(Uh&&Cs){if(this.prev=0;--Wa){var nu=this.tryEntries[Wa];if(nu.tryLoc<=this.prev&&In.call(nu,"finallyLoc")&&this.prev=0;--oa){var Wa=this.tryEntries[oa];if(Wa.finallyLoc===Jo)return this.complete(Wa.completion,Wa.afterLoc),Al(Wa),Ms}},catch:function(Jo){for(var oa=this.tryEntries.length-1;oa>=0;--oa){var Wa=this.tryEntries[oa];if(Wa.tryLoc===Jo){var nu=Wa.completion;if(nu.type==="throw"){var su=nu.arg;Al(Wa)}return su}}throw new Error("illegal catch attempt")},delegateYield:function(Jo,oa,Wa){return this.delegate={iterator:Bu(Jo),resultName:oa,nextLoc:Wa},this.method==="next"&&(this.arg=Ge),Ms}},He}function qo(Ge,He,mt,In,bi,Kn,vi){try{var Co=Ge[Kn](vi),$s=Co.value}catch(za){mt(za);return}Co.done?He($s):Promise.resolve($s).then(In,bi)}function Ki(Ge){return function(){var He=this,mt=arguments;return new Promise(function(In,bi){var Kn=Ge.apply(He,mt);function vi($s){qo(Kn,In,bi,vi,Co,"next",$s)}function Co($s){qo(Kn,In,bi,vi,Co,"throw",$s)}vi(void 0)})}}var Do=function(){var Ge=Ki(Pe().mark(function He(mt,In){return Pe().wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(mt!=="Map"){Kn.next=2;break}return Kn.abrupt("return",new v.Map(In));case 2:if(mt!=="Gaode"){Kn.next=6;break}return Kn.abrupt("return",new v.GaodeMap(In));case 6:if(mt!=="GaodeV1"){Kn.next=10;break}return Kn.abrupt("return",new v.GaodeMapV1(In));case 10:if(mt!=="GaodeV2"){Kn.next=12;break}return Kn.abrupt("return",new v.GaodeMapV2(In));case 12:if(mt!=="Tencent"){Kn.next=14;break}return Kn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,47766))).then(function(vi){var Co=vi.TencentMap;return new Co(In)}));case 14:if(mt!=="Baidu"){Kn.next=16;break}return Kn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,47766))).then(function(vi){var Co=vi.BaiduMap;return new Co(In)}));case 16:return Kn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,47766))).then(function(vi){var Co=vi.Mapbox;return new Co(In)}));case 17:case"end":return Kn.stop()}},He)}));return function(mt,In){return Ge.apply(this,arguments)}}(),ai=function(Ge,He){return Ge?Ge.map(function(mt,In){return Object.is(Ge[In],He==null?void 0:He[In])?-1:In}).filter(function(mt){return mt>=0}):He?He.map(function(mt,In){return In}):[]},$o=function(Ge,He){var mt=(0,R.useRef)();(0,R.useEffect)(function(){var In=ai(mt.current,He),bi=mt.current;return mt.current=He,Ge(In,bi,He)},He)},Mn=$o,nt=_(45210),Dt={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},Kt=Object.keys(Dt);function mn(Ge){return kt(Ge)||tn(Ge)||an(Ge)||kn()}function kn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function an(Ge,He){if(Ge){if(typeof Ge=="string")return en(Ge,He);var mt=Object.prototype.toString.call(Ge).slice(8,-1);if(mt==="Object"&&Ge.constructor&&(mt=Ge.constructor.name),mt==="Map"||mt==="Set")return Array.from(Ge);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return en(Ge,He)}}function tn(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function kt(Ge){if(Array.isArray(Ge))return en(Ge)}function en(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,In)&&(mt[In]=Ge[In])}return mt}function Yt(Ge,He){if(Ge==null)return{};var mt={},In=Object.keys(Ge),bi,Kn;for(Kn=0;Kn=0)&&(mt[bi]=Ge[bi]);return mt}var En=R.createContext(null),er=(0,R.memo)((0,R.forwardRef)(function(He,mt){var In=He.id,bi=He.style,Kn=He.className,vi=He.map,Co=He.mapType,$s=Co===void 0?"Gaode":Co,za=He.mapOptions,Hl=za===void 0?{}:za,Eo=He.onLayerManagerCreated,Fa=He.onSceneLoaded,Ia=He.children,os=Vt(He,Dr),ka=(0,R.useRef)(),Ms=(0,R.useState)(null),wo=Fn(Ms,2),is=wo[0],Rs=wo[1],Vl=(0,R.useRef)({scene:null,layerManager:null}),wl=Vl.current;(0,R.useEffect)(function(){var ea,ja=!0,Bs=(0,L.Z)(vi)?Do($s,Hl):typeof vi=="function"?vi():vi;return Promise.resolve(Bs).then(function(Ta){if(ja){ea=new v.Scene(Ii(Ii({},os),{},{id:ka.current,map:Ta}));var jo=new Xt({scene:ea});wl.scene=ea,wl.layerManager=jo,ea.once("loaded",function(){Fa&&Fa(ea),Eo&&Eo(jo),Rs(ea)})}}).catch(function(Ta){console.error(Ta)}),function(){ja=!1,ea&&(wl.scene=null,wl.layerManager=null,ea.destroy())}},[]),Vn(is,He),(0,R.useImperativeHandle)(mt,function(){return{getScene:function(){return is},getMap:function(){return is.map}}},[is]),(0,R.useEffect)(function(){is&&Hl.style&&is.setMapStyle(Hl.style)},[Hl.style]),B(function(){(0,S.Z)(is)||(Hl.center&&(0,g.Z)(Hl.zoom)?is.setZoomAndCenter(Hl.zoom,Hl.center):(0,g.Z)(Hl.zoom)?is.setZoom(Hl.zoom):Hl.center&&is.setCenter(Hl.center))},[Hl.zoom,Hl.center]),(0,R.useEffect)(function(){is&&(0,g.Z)(Hl.pitch)&&is.setPitch(Hl.pitch)},[Hl.pitch]),(0,R.useEffect)(function(){is&&(0,g.Z)(Hl.rotation)&&is.setRotation(Hl.rotation)},[Hl.rotation]);var Sa=(0,R.useMemo)(function(){return Ii({position:"relative"},bi)},[bi]);return R.createElement("div",{id:In,ref:ka,style:Sa,className:O()("larkmap",Kn)},is&&R.createElement(En.Provider,{value:wl},Ia))})),Tr=_(77598),Nr=function(){var He=(0,R.useContext)(En);if(!He)throw new Error("The useScene must be used in the LarkMap container");var mt=He.scene;return mt},Zn=function(He,mt,In){var bi=Nr(),Kn=(0,R.useRef)();(0,R.useEffect)(function(){var vi=new v.Control(In);return vi.onAdd=function(){return He(bi)},vi.onRemove=function(){},Kn.current=vi,bi.addControl(vi),function(){typeof mt=="function"&&mt(bi),Kn.current=null,bi.removeControl(vi)}},[]),(0,Tr.Z)(function(){var vi;(vi=Kn.current)===null||vi===void 0||vi.setOptions(In)},[In])},Ut=function(){var He=(0,R.useContext)(En);if(!He)throw new Error("The useLayerManager must be used in the LarkMap container");var mt=He.layerManager;return mt};function $n(Ge,He){return xn(Ge)||Qt(Ge,He)||Br(Ge,He)||xr()}function xr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Br(Ge,He){if(Ge){if(typeof Ge=="string")return _o(Ge,He);var mt=Object.prototype.toString.call(Ge).slice(8,-1);if(mt==="Object"&&Ge.constructor&&(mt=Ge.constructor.name),mt==="Map"||mt==="Set")return Array.from(Ge);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return _o(Ge,He)}}function _o(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,In)&&(mt[In]=Ge[In])}return mt}function ya(Ge,He){if(Ge==null)return{};var mt={},In=Object.keys(Ge),bi,Kn;for(Kn=0;Kn=0)&&(mt[bi]=Ge[bi]);return mt}var Zs=function(He,mt){var In=mt.onCreated,bi=mt.source,Kn=mi(mt,Mr),vi=Ut(),Co=(0,R.useRef)(),$s=(0,R.useRef)(Kn),za=(0,R.useRef)(bi);return Co.current||(Co.current=new He(mt),In&&Co.current.once("inited",function(){return In(Co.current)}),vi.addLayer(Co.current)),(0,Tr.Z)(function(){if(Co.current){var Hl=!(0,Vr.Z)($s.current,Kn);Hl&&(Co.current.update(Kn),$s.current=(0,ii.Z)(Kn))}},[Kn]),(0,Tr.Z)(function(){if(Co.current){var Hl=bi.data,Eo=mi(bi,rr),Fa=za.current,Ia=Fa.data,os=mi(Fa,to),ka=Hl!==Ia||!(0,Vr.Z)(Eo,os);ka&&(Co.current.changeData(bi),za.current=Wr({},bi))}},[bi]),(0,R.useEffect)(function(){return function(){Co.current&&(vi.removeLayer(Co.current),Co.current=null)}},[]),Co},qs={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},al=function(He,mt){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qs,bi=(0,R.useMemo)(function(){return Object.keys(In)},[In]),Kn=function(Hl){bi.forEach(function(Eo){var Fa=In[Eo],Ia=mt[Eo];Eo&&Ia&&He[Hl](Fa,Ia)})},vi=function(){return Kn("on")},Co=function(){return Kn("off")},$s=(0,R.useRef)(!0);$s.current&&vi(),(0,R.useEffect)(function(){return $s.current?$s.current=!1:vi(),function(){Co()}},bi.map(function(za){return mt[za]})),(0,nt.Z)(function(){Co()})},co=null,tl=null,fl=_(97582),Ai={}.toString,Xi=function(Ge,He){return Ai.call(Ge)==="[object "+He+"]"},Fi=Xi,No=function(Ge){return Fi(Ge,"Function")},yr=function(Ge){return Array.isArray?Array.isArray(Ge):Fi(Ge,"Array")},ui=function(Ge){var He=typeof Ge;return Ge!==null&&He==="object"||He==="function"};function Zo(Ge,He){if(Ge){var mt;if(yr(Ge))for(var In=0,bi=Ge.length;In-1;)Po.call(Ge,Kn,1);return Ge},va=null,El=Array.prototype.splice,Dl=function(He,mt){if(!isArrayLike(He))return[];for(var In=He?mt.length:0,bi=In-1;In--;){var Kn=void 0,vi=mt[In];(In===bi||vi!==Kn)&&(Kn=vi,El.call(He,vi,1))}return He},Ns=null,Ca=function(Ge,He,mt){if(!yr(Ge)&&!At(Ge))return Ge;var In=mt;return ns(Ge,function(bi,Kn){In=He(In,bi,Kn)}),In},vl=Ca,ds=function(Ge,He){var mt=[];if(!isArrayLike(Ge))return mt;for(var In=-1,bi=[],Kn=Ge.length;++InKn[Co])return 1;if(bi[Co]0},Bl=null,lu=function(Ge,He){if(isArray(Ge)){for(var mt,In=-1/0,bi=0;biIn&&(mt=Kn,In=vi)}return mt}},Ln=function(Ge,He){if(isArray(Ge)){for(var mt,In=1/0,bi=0;biCo&&Hl>Co);)if($s.push(za),Co-=Hl,vi=vi.substr(bi),!vi)return $s.join("");for(;za=vi.substr(0,1),Hl=measureTextWidth(za,mt),!(Hl+Kn>Co);)if($s.push(za),Co-=Hl,vi=vi.substr(1),!vi)return $s.join("");return""+$s.join("")+In},wh=function(){function Ge(){this.map={}}return Ge.prototype.has=function(He){return this.map[He]!==void 0},Ge.prototype.get=function(He,mt){var In=this.map[He];return In===void 0?mt:In},Ge.prototype.set=function(He,mt){this.map[He]=mt},Ge.prototype.clear=function(){this.map={}},Ge.prototype.delete=function(He){delete this.map[He]},Ge.prototype.size=function(){return Object.keys(this.map).length},Ge}(),Tf=null;function Zd(Ge,He){return function(){for(var mt=[],In=0;InGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,In)&&(mt[In]=Ge[In])}return mt}function sv(Ge,He){if(Ge==null)return{};var mt={},In=Object.keys(Ge),bi,Kn;for(Kn=0;Kn=0)&&(mt[bi]=Ge[bi]);return mt}var Zf="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ep="larkmap-select",pf=function(He,mt){var In=He.prefixCls,bi=He.bordered,Kn=bi===void 0?!0:bi,vi=He.className,Co=He.getPopupContainer,$s=He.dropdownClassName,za=He.popupClassName,Hl=He.listHeight,Eo=Hl===void 0?256:Hl,Fa=He.placement,Ia=He.listItemHeight,os=Ia===void 0?24:Ia,ka=He.disabled,Ms=He.notFoundContent,wo=Lg(He,k0),is=R.useMemo(function(){var wl=wo,Sa=wl.mode;if(Sa!=="combobox")return Sa===Zf?"combobox":Sa},[wo]),Rs=(0,Am.Z)(wo,"suffixIcon","itemIcon"),Vl=O()(ym({},"".concat(Ep,"-borderless"),!Kn),vi);return R.createElement(Jg.ZP,Fg({ref:mt},Rs,{listHeight:Eo,listItemHeight:os,mode:is,prefixCls:Ep,placement:Fa,notFoundContent:Ms!=null?Ms:"\u5F53\u524D\u65E0\u6570\u636E",className:Vl,getPopupContainer:Co,dropdownClassName:za,disabled:ka}))},O0=R.forwardRef(pf);O0.SECRET_COMBOBOX_MODE_DO_NOT_USE=Zf,O0.Option=Jg.Wx,O0.OptGroup=Jg.Xo;var N0=O0;function hm(Ge){"@babel/helpers - typeof";return hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},hm(Ge)}var I0=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function Y0(){return Y0=Object.assign?Object.assign.bind():function(Ge){for(var He=1;He=0;--nu){var su=this.tryEntries[nu],bc=su.completion;if(su.tryLoc==="root")return Wa("end");if(su.tryLoc<=this.prev){var Uh=In.call(su,"catchLoc"),Cs=In.call(su,"finallyLoc");if(Uh&&Cs){if(this.prev=0;--Wa){var nu=this.tryEntries[Wa];if(nu.tryLoc<=this.prev&&In.call(nu,"finallyLoc")&&this.prev=0;--oa){var Wa=this.tryEntries[oa];if(Wa.finallyLoc===Jo)return this.complete(Wa.completion,Wa.afterLoc),Al(Wa),Ms}},catch:function(Jo){for(var oa=this.tryEntries.length-1;oa>=0;--oa){var Wa=this.tryEntries[oa];if(Wa.tryLoc===Jo){var nu=Wa.completion;if(nu.type==="throw"){var su=nu.arg;Al(Wa)}return su}}throw new Error("illegal catch attempt")},delegateYield:function(Jo,oa,Wa){return this.delegate={iterator:Bu(Jo),resultName:oa,nextLoc:Wa},this.method==="next"&&(this.arg=Ge),Ms}},He}function Md(Ge){return d0(Ge)||gm(Ge)||Re(Ge)||s0()}function s0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function d0(Ge){if(Array.isArray(Ge))return Tt(Ge)}function Mm(Ge,He){var mt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(Ge);He&&(In=In.filter(function(bi){return Object.getOwnPropertyDescriptor(Ge,bi).enumerable})),mt.push.apply(mt,In)}return mt}function f0(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,In)&&(mt[In]=Ge[In])}return mt}function Zt(Ge,He){if(Ge==null)return{};var mt={},In=Object.keys(Ge),bi,Kn;for(Kn=0;Kn=0)&&(mt[bi]=Ge[bi]);return mt}var cn=N0.Option,ln=function(He){var mt=He.searchParams,In=He.showDistrict,bi=He.showAddress,Kn=He.onSearchFinish,vi=He.onChange,Co=ct(He,I0),$s=(0,R.useState)([]),za=we($s,2),Hl=za[0],Eo=za[1];(0,R.useEffect)(function(){Kn==null||Kn(Hl)},[Kn,Hl]);var Fa=(0,qg.Z)(function(){var ka=hg(q0().mark(function Ms(wo){var is,Rs,Vl,wl;return q0().wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:if(wo){ea.next=3;break}return Eo([]),ea.abrupt("return");case 3:return Vl=Ho(x0,f0(f0({},mt),{},{keywords:[].concat(Md(((is=mt.keywords)!==null&&is!==void 0?is:"").split("|")),[wo]).filter(function(ja){return!!ja}).join("|")})),ea.next=6,fetch(Vl);case 6:return ea.next=8,ea.sent.json();case 8:wl=ea.sent,Eo(((Rs=wl==null?void 0:wl.tips)!==null&&Rs!==void 0?Rs:[]).filter(function(ja){return ja.location&&ja.location.length}).map(function(ja){var Bs=ja.location.split(","),Ta=we(Bs,2),jo=Ta[0],Ya=Ta[1];return ja.longitude=+jo,ja.latitude=+Ya,ja}));case 10:case"end":return ea.stop()}},Ms)}));return function(Ms){return ka.apply(this,arguments)}}(),{wait:1e3}),Ia=Fa.run,os=(0,R.useCallback)(function(ka){var Ms=ka&&Hl.find(function(wo){return wo.name===ka});vi==null||vi(ka||void 0,Ms||void 0)},[vi,Hl]);return R.createElement(N0,Y0({className:"".concat(Qm),onSearch:Ia,onChange:os,clearIcon:function(){return null}},Co),Hl.map(function(ka){var Ms="".concat(In?ka.district:"").concat(bi?ka.address:"");return R.createElement(cn,{key:ka.id,value:ka.name},R.createElement("div",{title:ka.name,className:"".concat(Qm,"__option-name")},ka.name),Ms&&R.createElement("div",{title:Ms,className:"".concat(Qm,"__option-tip")},Ms))}))};ln.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var gn=_(8961),Dn=_(53434),Gn="larkmap-administrative-location",fr="https://restapi.amap.com/v3/geocode/regeo";function Fr(Ge){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},Fr(Ge)}function Ke(){"use strict";Ke=function(){return He};var Ge,He={},mt=Object.prototype,In=mt.hasOwnProperty,bi=Object.defineProperty||function(ys,Jo,oa){ys[Jo]=oa.value},Kn=typeof Symbol=="function"?Symbol:{},vi=Kn.iterator||"@@iterator",Co=Kn.asyncIterator||"@@asyncIterator",$s=Kn.toStringTag||"@@toStringTag";function za(ys,Jo,oa){return Object.defineProperty(ys,Jo,{value:oa,enumerable:!0,configurable:!0,writable:!0}),ys[Jo]}try{za({},"")}catch(ys){za=function(oa,Wa,nu){return oa[Wa]=nu}}function Hl(ys,Jo,oa,Wa){var nu=Jo&&Jo.prototype instanceof wo?Jo:wo,su=Object.create(nu.prototype),bc=new Pl(Wa||[]);return bi(su,"_invoke",{value:Ta(ys,oa,bc)}),su}function Eo(ys,Jo,oa){try{return{type:"normal",arg:ys.call(Jo,oa)}}catch(Wa){return{type:"throw",arg:Wa}}}He.wrap=Hl;var Fa="suspendedStart",Ia="suspendedYield",os="executing",ka="completed",Ms={};function wo(){}function is(){}function Rs(){}var Vl={};za(Vl,vi,function(){return this});var wl=Object.getPrototypeOf,Sa=wl&&wl(wl(Bu([])));Sa&&Sa!==mt&&In.call(Sa,vi)&&(Vl=Sa);var ea=Rs.prototype=wo.prototype=Object.create(Vl);function ja(ys){["next","throw","return"].forEach(function(Jo){za(ys,Jo,function(oa){return this._invoke(Jo,oa)})})}function Bs(ys,Jo){function oa(nu,su,bc,Uh){var Cs=Eo(ys[nu],ys,su);if(Cs.type!=="throw"){var Lp=Cs.arg,nf=Lp.value;return nf&&Fr(nf)=="object"&&In.call(nf,"__await")?Jo.resolve(nf.__await).then(function(zp){oa("next",zp,bc,Uh)},function(zp){oa("throw",zp,bc,Uh)}):Jo.resolve(nf).then(function(zp){Lp.value=zp,bc(Lp)},function(zp){return oa("throw",zp,bc,Uh)})}Uh(Cs.arg)}var Wa;bi(this,"_invoke",{value:function(su,bc){function Uh(){return new Jo(function(Cs,Lp){oa(su,bc,Cs,Lp)})}return Wa=Wa?Wa.then(Uh,Uh):Uh()}})}function Ta(ys,Jo,oa){var Wa=Fa;return function(nu,su){if(Wa===os)throw new Error("Generator is already running");if(Wa===ka){if(nu==="throw")throw su;return{value:Ge,done:!0}}for(oa.method=nu,oa.arg=su;;){var bc=oa.delegate;if(bc){var Uh=jo(bc,oa);if(Uh){if(Uh===Ms)continue;return Uh}}if(oa.method==="next")oa.sent=oa._sent=oa.arg;else if(oa.method==="throw"){if(Wa===Fa)throw Wa=ka,oa.arg;oa.dispatchException(oa.arg)}else oa.method==="return"&&oa.abrupt("return",oa.arg);Wa=os;var Cs=Eo(ys,Jo,oa);if(Cs.type==="normal"){if(Wa=oa.done?ka:Ia,Cs.arg===Ms)continue;return{value:Cs.arg,done:oa.done}}Cs.type==="throw"&&(Wa=ka,oa.method="throw",oa.arg=Cs.arg)}}}function jo(ys,Jo){var oa=Jo.method,Wa=ys.iterator[oa];if(Wa===Ge)return Jo.delegate=null,oa==="throw"&&ys.iterator.return&&(Jo.method="return",Jo.arg=Ge,jo(ys,Jo),Jo.method==="throw")||oa!=="return"&&(Jo.method="throw",Jo.arg=new TypeError("The iterator does not provide a '"+oa+"' method")),Ms;var nu=Eo(Wa,ys.iterator,Jo.arg);if(nu.type==="throw")return Jo.method="throw",Jo.arg=nu.arg,Jo.delegate=null,Ms;var su=nu.arg;return su?su.done?(Jo[ys.resultName]=su.value,Jo.next=ys.nextLoc,Jo.method!=="return"&&(Jo.method="next",Jo.arg=Ge),Jo.delegate=null,Ms):su:(Jo.method="throw",Jo.arg=new TypeError("iterator result is not an object"),Jo.delegate=null,Ms)}function Ya(ys){var Jo={tryLoc:ys[0]};1 in ys&&(Jo.catchLoc=ys[1]),2 in ys&&(Jo.finallyLoc=ys[2],Jo.afterLoc=ys[3]),this.tryEntries.push(Jo)}function Al(ys){var Jo=ys.completion||{};Jo.type="normal",delete Jo.arg,ys.completion=Jo}function Pl(ys){this.tryEntries=[{tryLoc:"root"}],ys.forEach(Ya,this),this.reset(!0)}function Bu(ys){if(ys||ys===""){var Jo=ys[vi];if(Jo)return Jo.call(ys);if(typeof ys.next=="function")return ys;if(!isNaN(ys.length)){var oa=-1,Wa=function nu(){for(;++oa=0;--nu){var su=this.tryEntries[nu],bc=su.completion;if(su.tryLoc==="root")return Wa("end");if(su.tryLoc<=this.prev){var Uh=In.call(su,"catchLoc"),Cs=In.call(su,"finallyLoc");if(Uh&&Cs){if(this.prev=0;--Wa){var nu=this.tryEntries[Wa];if(nu.tryLoc<=this.prev&&In.call(nu,"finallyLoc")&&this.prev=0;--oa){var Wa=this.tryEntries[oa];if(Wa.finallyLoc===Jo)return this.complete(Wa.completion,Wa.afterLoc),Al(Wa),Ms}},catch:function(Jo){for(var oa=this.tryEntries.length-1;oa>=0;--oa){var Wa=this.tryEntries[oa];if(Wa.tryLoc===Jo){var nu=Wa.completion;if(nu.type==="throw"){var su=nu.arg;Al(Wa)}return su}}throw new Error("illegal catch attempt")},delegateYield:function(Jo,oa,Wa){return this.delegate={iterator:Bu(Jo),resultName:oa,nextLoc:Wa},this.method==="next"&&(this.arg=Ge),Ms}},He}function lt(Ge){return Rt(Ge)||Nt(Ge)||Jn(Ge)||jt()}function jt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function Rt(Ge){if(Array.isArray(Ge))return Kr(Ge)}function Jt(Ge,He){var mt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(Ge);He&&(In=In.filter(function(bi){return Object.getOwnPropertyDescriptor(Ge,bi).enumerable})),mt.push.apply(mt,In)}return mt}function dr(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt2&&arguments[2]!==void 0?arguments[2]:5,bi=[He],Kn=qt()(He).object(),vi=qt()(mt).object();if(In<2)return In<1?[]:bi;var Co={r:(Kn.r-vi.r)/(In-1),g:(Kn.g-vi.g)/(In-1),b:(Kn.b-vi.b)/(In-1)};return(0,gr.Z)(new Array(In-2),function($s,za){return bi.push(qt()({r:(0,hi.Z)(Kn.r-Co.r*(za+1),0),g:(0,hi.Z)(Kn.g-Co.g*(za+1),0),b:(0,hi.Z)(Kn.b-Co.b*(za+1),0)}).hex())}),bi.push(mt),bi};function vs(Ge){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},vs(Ge)}function ga(Ge,He,mt){return He=Qi(He),He in Ge?Object.defineProperty(Ge,He,{value:mt,enumerable:!0,configurable:!0,writable:!0}):Ge[He]=mt,Ge}function Qi(Ge){var He=vo(Ge,"string");return vs(He)==="symbol"?He:String(He)}function vo(Ge,He){if(vs(Ge)!=="object"||Ge===null)return Ge;var mt=Ge[Symbol.toPrimitive];if(mt!==void 0){var In=mt.call(Ge,He||"default");if(vs(In)!=="object")return In;throw new TypeError("@@toPrimitive must return a primitive value.")}return(He==="string"?String:Number)(Ge)}var Bo="larkmap-legend-category";function Os(Ge){var He=Ge.labels,mt=Ge.colors,In=Ge.geometryType,bi=In===void 0?"circle":In,Kn=Ge.isStrokeColor,vi=Ge.style,Co=Ge.className;function $s(Eo){return Kn?{border:"2px solid ".concat(Eo)}:{background:Eo}}function za(Eo){return R.createElement("div",{className:O()(Bo,Co),style:vi},He.map(function(Fa,Ia){return R.createElement("div",{className:"".concat(Bo,"__content"),key:Fa},R.createElement("div",{className:O()("".concat(Bo,"__content__shape"),ga({},"".concat(Bo,"__content__").concat(bi),bi)),style:$s(Eo[Ia])}),R.createElement("div",{className:"".concat(Bo,"labels")},Fa))}))}function Hl(){if(Array.isArray(mt))return za(mt);var Eo=fs(mt.startColor,mt.endColor,He.length);return za(Eo)}return R.createElement(Hl,null)}Os.defaultProps={geometryType:"circle",isStrokeColor:!1};var _a=_(36306),Ve="larkmap-legend-ramp",Da=function(He){var mt=He[He.length-1],In=He[0];return Number.isFinite(In)||(In=parseInt(In,10)),Number.isFinite(mt)||(mt=parseInt(mt,10)),[In,mt]};function sl(Ge){var He=Ge.labels,mt=Ge.labelUnit,In=mt===void 0?"":mt,bi=Ge.colors,Kn=He[0]+In,vi=He[He.length-1]+In;return R.createElement(R.Fragment,null,R.createElement("div",{className:"".concat(Ve,"__continuous"),style:{background:"linear-gradient(to right,".concat(bi,")")}}),R.createElement("div",{className:"".concat(Ve,"__continuous-labelbar")},R.createElement("span",null,Kn),R.createElement("span",null,vi)))}function Ol(Ge){var He=Ge.labels,mt=Ge.labelUnit,In=mt===void 0?"":mt,bi=Ge.colors,Kn=(0,R.useRef)(null),vi=(0,_a.Z)(Kn),Co=(vi==null?void 0:vi.width)/(bi.length+1),$s=He;if(He.length+1===bi.length){var za="< "+He[0],Hl="\u2265 "+He[He.length-1];$s.unshift(za),$s.push(Hl)}var Eo=function(Ia){var os="".concat(He[Ia]).concat(In," - ").concat(He[Ia+1]).concat(In);return os};return R.createElement("div",{className:"".concat(Ve,"__dis-continuous"),ref:Kn},Number.isNaN(Co)?null:R.createElement(R.Fragment,null,R.createElement("div",{className:"".concat(Ve,"__dis-continuous__colors"),style:{paddingLeft:Co/2}},bi==null?void 0:bi.map(function(Fa,Ia){return R.createElement("div",{key:Fa,title:Eo(Ia),className:"".concat(Ve,"__dis-continuous__color"),style:{background:Fa,width:Co}})})),R.createElement("div",{className:"".concat(Ve,"__dis-continuous__labels")},He==null?void 0:He.map(function(Fa){var Ia=Fa+In;return R.createElement("span",{key:Fa,className:"".concat(Ve,"__dis-continuous__label")},Ia)}))))}function Ps(Ge){var He=Ge.isContinuous,mt=Ge.labels,In=Ge.colors,bi=Ge.labelUnit,Kn=Ge.className,vi=Ge.style;return R.createElement("div",{className:O()("".concat(Ve),Kn),style:vi},He?R.createElement(sl,{labels:mt,labelUnit:bi,colors:In}):R.createElement(Ol,{labels:mt,labelUnit:bi,colors:In}))}Ps.defaultProps={isContinuous:!1,labelUnit:""};var La=_(67135),zl={point:La.DrawPoint,line:La.DrawLine,polygon:La.DrawPolygon,rect:La.DrawRect,circle:La.DrawCircle};function la(Ge){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},la(Ge)}function yo(Ge,He){var mt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(Ge);He&&(In=In.filter(function(bi){return Object.getOwnPropertyDescriptor(Ge,bi).enumerable})),mt.push.apply(mt,In)}return mt}function Ws(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mtGe.length)&&(He=Ge.length);for(var mt=0,In=new Array(He);mt=ft&&++ar;else{let ft=-1;for(let wt of hn)(wt=Tn(wt,++ft,hn))!=null&&(wt=+wt)>=wt&&++ar}return ar}function L(hn){return Math.max(1,Math.ceil(Math.log(O(hn))/Math.LN2)+1)}function S(hn,Tn){let ar,ft;if(Tn===void 0)for(const wt of hn)wt!=null&&(ar===void 0?wt>=wt&&(ar=ft=wt):(ar>wt&&(ar=wt),ft=At&&(ar=ft=At):(ar>At&&(ar=At),ft=g?10:At>=T?5:At>=k?2:1;let Et,Wt,vn;return wt<0?(vn=Math.pow(10,-wt)/Ye,Et=Math.round(hn*vn),Wt=Math.round(Tn*vn),Et/vnTn&&--Wt,vn=-vn):(vn=Math.pow(10,wt)*Ye,Et=Math.round(hn/vn),Wt=Math.round(Tn/vn),Et*vnTn&&--Wt),Wt0))return[];if(hn===Tn)return[hn];const ft=Tn=wt))return[];const Et=At-wt+1,Wt=new Array(Et);if(ft)if(Ye<0)for(let vn=0;vn0?(hn=Math.floor(hn/wt)*wt,Tn=Math.ceil(Tn/wt)*wt):wt<0&&(hn=Math.ceil(hn*wt)/wt,Tn=Math.floor(Tn*wt)/wt),ft=wt}}var be=Array.prototype,xe=be.slice;function Xe(hn,Tn){return hn-Tn}function We(hn){for(var Tn=0,ar=hn.length,ft=hn[ar-1][1]*hn[0][0]-hn[ar-1][0]*hn[0][1];++Tn()=>hn;function Me(hn,Tn){for(var ar=-1,ft=Tn.length,wt;++arft!=ko>ft&&ar<(Gi-vn)*(ft-Er)/(ko-Er)+vn&&(wt=-wt)}return wt}function ze(hn,Tn,ar){var ft;return De(hn,Tn,ar)&&ke(hn[ft=+(hn[0]===Tn[0])],ar[ft],Tn[ft])}function De(hn,Tn,ar){return(Tn[0]-hn[0])*(ar[1]-hn[1])===(ar[0]-hn[0])*(Tn[1]-hn[1])}function ke(hn,Tn,ar){return hn<=Tn&&Tn<=ar||ar<=Tn&&Tn<=hn}function $e(){}var Te=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function tt(){var hn=1,Tn=1,ar=L,ft=Wt;function wt(vn){var Er=ar(vn);if(Array.isArray(Er))Er=Er.slice().sort(Xe);else{const Gr=S(vn,Oe);for(Er=he(..._e(Gr[0],Gr[1],Er),Er);Er[Er.length-1]>=Gr[1];)Er.pop();for(;Er[1]At(vn,Gr))}function At(vn,Er){const Gr=Er==null?NaN:+Er;if(isNaN(Gr))throw new Error(`invalid value: ${Er}`);var Gi=[],ko=[];return Ye(vn,Gr,function(Bi){ft(Bi,vn,Gr),We(Bi)>0?Gi.push([Bi]):ko.push(Bi)}),ko.forEach(function(Bi){for(var ms=0,ps=Gi.length,Js;ms=Er,Te[Hs<<2].forEach(zs);++Bi0&&ko0&&Bi=0&&Gr>=0))throw new Error("invalid size");return hn=Er,Tn=Gr,wt},wt.thresholds=function(vn){return arguments.length?(ar=typeof vn=="function"?vn:Array.isArray(vn)?dt(xe.call(vn)):dt(vn),wt):ar},wt.smooth=function(vn){return arguments.length?(ft=vn?Wt:$e,wt):ft===Wt},wt}function Oe(hn){return isFinite(hn)?hn:NaN}function Xt(hn,Tn){return hn==null?!1:+hn>=Tn}function Ft(hn){return hn==null||isNaN(hn=+hn)?-1/0:hn}function ot(hn,Tn,ar,ft){const wt=ft-Tn,At=ar-Tn,Ye=isFinite(wt)||isFinite(At)?wt/At:Math.sign(wt)/Math.sign(At);return isNaN(Ye)?hn:hn+Ye-.5}var xt=_(16479),ut=_.n(xt);function $t(hn,Tn){return wi(hn)||$r(hn,Tn)||bn(hn,Tn)||_t()}function _t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(hn,Tn){if(hn){if(typeof hn=="string")return Wn(hn,Tn);var ar=Object.prototype.toString.call(hn).slice(8,-1);if(ar==="Object"&&hn.constructor&&(ar=hn.constructor.name),ar==="Map"||ar==="Set")return Array.from(hn);if(ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ar))return Wn(hn,Tn)}}function Wn(hn,Tn){(Tn==null||Tn>hn.length)&&(Tn=hn.length);for(var ar=0,ft=new Array(Tn);ar1&&arguments[1]!==void 0?arguments[1]:"image/png",ar=document.createElement("canvas"),ft=ar.getContext("2d");return ar.width=hn.width,ar.height=hn.height,ft.drawImage(hn,0,0,hn.width,hn.height),ar.toDataURL(Tn)}function Ti(hn){var Tn=oo(hn),ar=new Image;return ar.src=Tn.toDataURL(),ar}function Hr(hn,Tn,ar,ft){for(var wt=new Uint8ClampedArray(hn.data),At=new Uint8ClampedArray(4*ar*ft),Ye=0;Ye0){var Et=4*Ye;At[Et+0]=wt[Et+0],At[Et+1]=wt[Et+1],At[Et+2]=Math.max(wt[Et+2],200),At[Et+3]=wt[Et+3]}return Ti(new ImageData(At,ar,ft))}function Ho(hn,Tn,ar){for(var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,wt=Tn,At=0,Ye=ar,Et=0,Wt=0;Wt0){var vn=Wt%Tn,Er=Math.floor(Wt/Tn);wt=Math.min(wt,vn),At=Math.max(At,vn),Ye=Math.min(Ye,Er),Et=Math.max(Et,Er)}return[wt-ft,At+ft,Ye-ft,Et+ft]}function Ss(hn,Tn,ar,ft,wt,At){for(var Ye=[],Et=0,Wt=Tn;Wt0?1:-1}return Ye}function Pe(hn,Tn,ar){var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,wt=hn.map(function(Ye){return{x:Ye[0]+Tn,y:Ye[1]+ar}});if(ft===0)return wt;var At=ut()(wt,ft,!0);return At}var qo=function(Tn){return new Promise(function(ar,ft){var wt=new FileReader;wt.readAsDataURL(Tn),wt.onload=function(){return ar(wt.result)},wt.onerror=function(At){return ft(At)}})};function Ki(hn,Tn,ar){var ft=Ho(hn,Tn,ar),wt=$t(ft,4),At=wt[0],Ye=wt[1],Et=wt[2],Wt=wt[3],vn=Ss(At,Et,Ye,Wt,hn,Tn),Er=Hr(vn,Ye-At,Wt-Et);return Ti(Er)}function Do(hn,Tn,ar){var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,wt=Ho(hn,Tn,ar),At=$t(wt,4),Ye=At[0],Et=At[1],Wt=At[2],vn=At[3],Er=Ss(Ye,Wt,Et,vn,hn,Tn),Gr=Et-Ye,Gi=vn-Wt,ko=tt().size([Gr,Gi]).smooth(!1).thresholds(2),Bi=ko(Er);return Pe(Bi[1].coordinates[0][0],Ye,Wt,ft)}function ai(hn,Tn){for(var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ft=0;ft0)&&(hn.data[4*ft+0]=0,hn.data[4*ft+1]=0,hn.data[4*ft+2]=0,hn.data[4*ft+3]=0);return Ti(hn)}function $o(hn,Tn,ar,ft){for(var wt=Ho(Tn,ar,ft),At=$t(wt,4),Ye=At[0],Et=At[1],Wt=At[2],vn=At[3],Er=new Uint8ClampedArray(4*(Et-Ye)*(vn-Wt)).fill(0),Gr=0,Gi=Wt;Gi0&&(Er[Gr*4]=hn.data[Bi*4],Er[Gr*4+1]=hn.data[Bi*4+1],Er[Gr*4+2]=hn.data[Bi*4+2],Er[Gr*4+3]=hn.data[Bi*4+3]),Gr++}var ms=new ImageData(Er,Et-Ye,vn-Wt);return Ti(ms)}function Mn(hn){var Tn=document.createElement("a");Tn.href=hn.src,Tn.download="image",Tn.click()}function nt(hn){var Tn=document.createElement("a");Tn.href=hn.toDataURL("image/png"),Tn.download="image",Tn.click()}function Dt(hn){var Tn=document.createElement("canvas"),ar=Tn.getContext("2d");return Tn.width=hn.width,Tn.height=hn.height,ar==null||ar.drawImage(hn,0,0),ar==null?void 0:ar.getImageData(0,0,hn.width,hn.height)}var Kt=function(Tn){var ar=1024,ft=Tn.naturalWidth,wt=Tn.naturalHeight,At=ar/Math.max(wt,ft);return{height:wt,width:ft,samScale:At}},mn=function(Tn,ar){var ft=1024,wt=ft/Math.max(ar,Tn);return{height:ar,width:Tn,samScale:wt}};function kn(hn){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tn){return typeof Tn}:function(Tn){return Tn&&typeof Symbol=="function"&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},kn(hn)}function an(){"use strict";an=function(){return hn};var hn={},Tn=Object.prototype,ar=Tn.hasOwnProperty,ft=Object.defineProperty||function(ds,io,Ko){ds[io]=Ko.value},wt=typeof Symbol=="function"?Symbol:{},At=wt.iterator||"@@iterator",Ye=wt.asyncIterator||"@@asyncIterator",Et=wt.toStringTag||"@@toStringTag";function Wt(ds,io,Ko){return Object.defineProperty(ds,io,{value:Ko,enumerable:!0,configurable:!0,writable:!0}),ds[io]}try{Wt({},"")}catch(ds){Wt=function(Ko,As,ks){return Ko[As]=ks}}function vn(ds,io,Ko,As){var ks=io&&io.prototype instanceof Gi?io:Gi,Ga=Object.create(ks.prototype),zu=new Ns(As||[]);return ft(Ga,"_invoke",{value:ma(ds,Ko,zu)}),Ga}function Er(ds,io,Ko){try{return{type:"normal",arg:ds.call(io,Ko)}}catch(As){return{type:"throw",arg:As}}}hn.wrap=vn;var Gr={};function Gi(){}function ko(){}function Bi(){}var ms={};Wt(ms,At,function(){return this});var ps=Object.getPrototypeOf,Js=ps&&ps(ps(Ca([])));Js&&Js!==Tn&&ar.call(Js,At)&&(ms=Js);var Hs=Bi.prototype=Gi.prototype=Object.create(ms);function Po(ds){["next","throw","return"].forEach(function(io){Wt(ds,io,function(Ko){return this._invoke(io,Ko)})})}function zs(ds,io){function Ko(ks,Ga,zu,Ac){var vc=Er(ds[ks],ds,Ga);if(vc.type!=="throw"){var ec=vc.arg,qu=ec.value;return qu&&kn(qu)=="object"&&ar.call(qu,"__await")?io.resolve(qu.__await).then(function(Uu){Ko("next",Uu,zu,Ac)},function(Uu){Ko("throw",Uu,zu,Ac)}):io.resolve(qu).then(function(Uu){ec.value=Uu,zu(ec)},function(Uu){return Ko("throw",Uu,zu,Ac)})}Ac(vc.arg)}var As;ft(this,"_invoke",{value:function(Ga,zu){function Ac(){return new io(function(vc,ec){Ko(Ga,zu,vc,ec)})}return As=As?As.then(Ac,Ac):Ac()}})}function ma(ds,io,Ko){var As="suspendedStart";return function(ks,Ga){if(As==="executing")throw new Error("Generator is already running");if(As==="completed"){if(ks==="throw")throw Ga;return vl()}for(Ko.method=ks,Ko.arg=Ga;;){var zu=Ko.delegate;if(zu){var Ac=va(zu,Ko);if(Ac){if(Ac===Gr)continue;return Ac}}if(Ko.method==="next")Ko.sent=Ko._sent=Ko.arg;else if(Ko.method==="throw"){if(As==="suspendedStart")throw As="completed",Ko.arg;Ko.dispatchException(Ko.arg)}else Ko.method==="return"&&Ko.abrupt("return",Ko.arg);As="executing";var vc=Er(ds,io,Ko);if(vc.type==="normal"){if(As=Ko.done?"completed":"suspendedYield",vc.arg===Gr)continue;return{value:vc.arg,done:Ko.done}}vc.type==="throw"&&(As="completed",Ko.method="throw",Ko.arg=vc.arg)}}}function va(ds,io){var Ko=io.method,As=ds.iterator[Ko];if(As===void 0)return io.delegate=null,Ko==="throw"&&ds.iterator.return&&(io.method="return",io.arg=void 0,va(ds,io),io.method==="throw")||Ko!=="return"&&(io.method="throw",io.arg=new TypeError("The iterator does not provide a '"+Ko+"' method")),Gr;var ks=Er(As,ds.iterator,io.arg);if(ks.type==="throw")return io.method="throw",io.arg=ks.arg,io.delegate=null,Gr;var Ga=ks.arg;return Ga?Ga.done?(io[ds.resultName]=Ga.value,io.next=ds.nextLoc,io.method!=="return"&&(io.method="next",io.arg=void 0),io.delegate=null,Gr):Ga:(io.method="throw",io.arg=new TypeError("iterator result is not an object"),io.delegate=null,Gr)}function El(ds){var io={tryLoc:ds[0]};1 in ds&&(io.catchLoc=ds[1]),2 in ds&&(io.finallyLoc=ds[2],io.afterLoc=ds[3]),this.tryEntries.push(io)}function Dl(ds){var io=ds.completion||{};io.type="normal",delete io.arg,ds.completion=io}function Ns(ds){this.tryEntries=[{tryLoc:"root"}],ds.forEach(El,this),this.reset(!0)}function Ca(ds){if(ds){var io=ds[At];if(io)return io.call(ds);if(typeof ds.next=="function")return ds;if(!isNaN(ds.length)){var Ko=-1,As=function ks(){for(;++Ko=0;--ks){var Ga=this.tryEntries[ks],zu=Ga.completion;if(Ga.tryLoc==="root")return As("end");if(Ga.tryLoc<=this.prev){var Ac=ar.call(Ga,"catchLoc"),vc=ar.call(Ga,"finallyLoc");if(Ac&&vc){if(this.prev=0;--As){var ks=this.tryEntries[As];if(ks.tryLoc<=this.prev&&ar.call(ks,"finallyLoc")&&this.prev=0;--Ko){var As=this.tryEntries[Ko];if(As.finallyLoc===io)return this.complete(As.completion,As.afterLoc),Dl(As),Gr}},catch:function(io){for(var Ko=this.tryEntries.length-1;Ko>=0;--Ko){var As=this.tryEntries[Ko];if(As.tryLoc===io){var ks=As.completion;if(ks.type==="throw"){var Ga=ks.arg;Dl(As)}return Ga}}throw new Error("illegal catch attempt")},delegateYield:function(io,Ko,As){return this.delegate={iterator:Ca(io),resultName:Ko,nextLoc:As},this.method==="next"&&(this.arg=void 0),Gr}},hn}function tn(hn,Tn,ar,ft,wt,At,Ye){try{var Et=hn[At](Ye),Wt=Et.value}catch(vn){ar(vn);return}Et.done?Tn(Wt):Promise.resolve(Wt).then(ft,wt)}function kt(hn){return function(){var Tn=this,ar=arguments;return new Promise(function(ft,wt){var At=hn.apply(Tn,ar);function Ye(Wt){tn(At,ft,wt,Ye,Et,"next",Wt)}function Et(Wt){tn(At,ft,wt,Ye,Et,"throw",Wt)}Ye(void 0)})}}function en(hn,Tn){if(!(hn instanceof Tn))throw new TypeError("Cannot call a class as a function")}function Vn(hn,Tn){for(var ar=0;ar1&&vn[1]!==void 0?vn[1]:"float32",Ye=new V,typeof wt!="string"){Gr.next=6;break}Gr.t0=Ye.load(wt),Gr.next=9;break;case 6:return Gr.next=8,Ye.parse(wt);case 8:Gr.t0=Gr.sent;case 9:Et=Gr.t0,Wt=new jr.Tensor(At,Et.data,Et.shape),this.tensor=Wt;case 12:case"end":return Gr.stop()}},ft,this)}));function ar(ft){return Tn.apply(this,arguments)}return ar}()},{key:"predict",value:function(){var Tn=kt(an().mark(function ft(wt){var At,Ye,Et;return an().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(vn.prev=0,!(this.model===null||wt===null||this.tensor===null||this.modelScale===null)){vn.next=6;break}return console.log("model not loaded"),vn.abrupt("return");case 6:if(At=w({clicks:wt,tensor:this.tensor,modelScale:this.modelScale}),At!==void 0){vn.next=9;break}return vn.abrupt("return");case 9:return vn.next=11,this.model.run(At);case 11:return Ye=vn.sent,Et=Ye[this.model.outputNames[0]],vn.abrupt("return",Et);case 14:vn.next=20;break;case 16:return vn.prev=16,vn.t0=vn.catch(0),console.log(vn.t0),vn.abrupt("return");case 20:case"end":return vn.stop()}},ft,this,[[0,16]])}));function ar(ft){return Tn.apply(this,arguments)}return ar}()},{key:"predictByBox",value:function(){var Tn=kt(an().mark(function ft(wt){return an().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.abrupt("return",wt);case 1:case"end":return Ye.stop()}},ft)}));function ar(ft){return Tn.apply(this,arguments)}return ar}()},{key:"exportMaskImage",value:function(ar){if(this.imageData!==void 0)return Hr(this.imageData,ar.data,ar.dims[3],ar.dims[2])}},{key:"exportMaskClip",value:function(ar){return Ki(ar.data,ar.dims[3],ar.dims[2])}},{key:"exportImage",value:function(ar){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return ai(this.imageData,ar.data,ft)}},{key:"exportImageClip",value:function(ar){if(this.imageData!==void 0)return $o(this.imageData,ar.data,ar.dims[3],ar.dims[2])}},{key:"exportVector",value:function(ar){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return Do(ar.data,ar.dims[3],ar.dims[2],ft)}},{key:"setWasmUrl",value:function(ar){R.env.wasm.wasmPaths=ar}},{key:"getImageScale",value:function(ar){var ft=ar.width,wt=ar.height;this.modelScale=mn(ft,wt)}}]),hn}();function Uo(hn){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tn){return typeof Tn}:function(Tn){return Tn&&typeof Symbol=="function"&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},Uo(hn)}function Fn(hn,Tn){return Qn(hn)||cr(hn,Tn)||ci(hn,Tn)||Qr()}function Qr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ci(hn,Tn){if(hn){if(typeof hn=="string")return ji(hn,Tn);var ar=Object.prototype.toString.call(hn).slice(8,-1);if(ar==="Object"&&hn.constructor&&(ar=hn.constructor.name),ar==="Map"||ar==="Set")return Array.from(hn);if(ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ar))return ji(hn,Tn)}}function ji(hn,Tn){(Tn==null||Tn>hn.length)&&(Tn=hn.length);for(var ar=0,ft=new Array(Tn);ar0&&arguments[0]!==void 0?arguments[0]:256,ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";Vt(this,hn),er(this,"tileSize",void 0),er(this,"type",void 0),er(this,"initialResolution",void 0),er(this,"originShift",void 0),this.tileSize=Tn,this.type=ar,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return En(hn,[{key:"lngLatToMeters",value:function(ar,ft){var wt=ar*this.originShift/180,At=Math.log(Math.tan((90+ft)*Math.PI/360))/(Math.PI/180);return At=At*this.originShift/180,[wt,At]}},{key:"metersToLngLat",value:function(ar,ft){var wt=ar/this.originShift*180,At=ft/this.originShift*180;return At=180/Math.PI*(2*Math.atan(Math.exp(At*Math.PI/180))-Math.PI/2),[wt,At]}},{key:"pixelsToMeters",value:function(ar,ft,wt){var At=this.resolution(wt),Ye=ar*At-this.originShift,Et=(this.type==="tms"?ft:Math.pow(2,wt)*256-ft)*At-this.originShift;return[Ye,Et]}},{key:"metersToPixels",value:function(ar,ft,wt){var At=this.resolution(wt),Ye=(ar+this.originShift)/At,Et=(ft+this.originShift)/At;return Et=this.type==="tms"?Et:Math.pow(2,wt)*256-Et,[Ye,Et]}},{key:"metersToTile",value:function(ar,ft,wt){var At=this.metersToPixels(ar,ft,wt),Ye=Fn(At,2),Et=Ye[0],Wt=Ye[1];return this.pixelsToTile(Et,Wt)}},{key:"tileToMeters",value:function(ar,ft,wt){return this.pixelsToMeters(ar*this.tileSize,ft*this.tileSize,wt)}},{key:"tileToLngLat",value:function(ar,ft,wt){var At=this.tileToMeters(ar,ft,wt),Ye=Fn(At,2),Et=Ye[0],Wt=Ye[1];return this.metersToLngLat(Et,Wt)}},{key:"pixelsToTile",value:function(ar,ft){var wt=Math.floor(Math.ceil(ar/this.tileSize)-1),At=Math.floor(Math.ceil(ft/this.tileSize)-1);return[wt,At]}},{key:"pixelsToRaster",value:function(ar,ft,wt){var At=this.tileSize<hn.length)&&(Tn=hn.length);for(var ar=0,ft=new Array(Tn);ar=0;--ks){var Ga=this.tryEntries[ks],zu=Ga.completion;if(Ga.tryLoc==="root")return As("end");if(Ga.tryLoc<=this.prev){var Ac=ar.call(Ga,"catchLoc"),vc=ar.call(Ga,"finallyLoc");if(Ac&&vc){if(this.prev=0;--As){var ks=this.tryEntries[As];if(ks.tryLoc<=this.prev&&ar.call(ks,"finallyLoc")&&this.prev=0;--Ko){var As=this.tryEntries[Ko];if(As.finallyLoc===io)return this.complete(As.completion,As.afterLoc),Dl(As),Gr}},catch:function(io){for(var Ko=this.tryEntries.length-1;Ko>=0;--Ko){var As=this.tryEntries[Ko];if(As.tryLoc===io){var ks=As.completion;if(ks.type==="throw"){var Ga=ks.arg;Dl(As)}return Ga}}throw new Error("illegal catch attempt")},delegateYield:function(io,Ko,As){return this.delegate={iterator:Ca(io),resultName:Ko,nextLoc:As},this.method==="next"&&(this.arg=void 0),Gr}},hn}function qr(hn,Tn,ar,ft,wt,At,Ye){try{var Et=hn[At](Ye),Wt=Et.value}catch(vn){ar(vn);return}Et.done?Tn(Wt):Promise.resolve(Wt).then(ft,wt)}function Mi(hn){return function(){var Tn=this,ar=arguments;return new Promise(function(ft,wt){var At=hn.apply(Tn,ar);function Ye(Wt){qr(At,ft,wt,Ye,Et,"next",Wt)}function Et(Wt){qr(At,ft,wt,Ye,Et,"throw",Wt)}Ye(void 0)})}}var zi=null,Yi=function(Tn){var ar=$n(Tn,4),ft=ar[0],wt=ar[1],At=ar[2],Ye=ar[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[ft,wt],[ft,Ye],[At,Ye],[At,wt],[ft,wt]]]}}]}},Si=function(Tn){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[Tn]}}]}},ni=function(){return{type:"FeatureCollection",features:[]}};function qi(hn){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tn){return typeof Tn}:function(Tn){return Tn&&typeof Symbol=="function"&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn},qi(hn)}function Vr(hn,Tn){return Mr(hn)||nr(hn,Tn)||Wr(hn,Tn)||ii()}function ii(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(hn,Tn){var ar=hn==null?null:typeof Symbol!="undefined"&&hn[Symbol.iterator]||hn["@@iterator"];if(ar!=null){var ft,wt,At,Ye,Et=[],Wt=!0,vn=!1;try{if(At=(ar=ar.call(hn)).next,Tn===0){if(Object(ar)!==ar)return;Wt=!1}else for(;!(Wt=(ft=At.call(ar)).done)&&(Et.push(ft.value),Et.length!==Tn);Wt=!0);}catch(Er){vn=!0,wt=Er}finally{try{if(!Wt&&ar.return!=null&&(Ye=ar.return(),Object(Ye)!==Ye))return}finally{if(vn)throw wt}}return Et}}function Mr(hn){if(Array.isArray(hn))return hn}function rr(){"use strict";rr=function(){return hn};var hn={},Tn=Object.prototype,ar=Tn.hasOwnProperty,ft=Object.defineProperty||function(ds,io,Ko){ds[io]=Ko.value},wt=typeof Symbol=="function"?Symbol:{},At=wt.iterator||"@@iterator",Ye=wt.asyncIterator||"@@asyncIterator",Et=wt.toStringTag||"@@toStringTag";function Wt(ds,io,Ko){return Object.defineProperty(ds,io,{value:Ko,enumerable:!0,configurable:!0,writable:!0}),ds[io]}try{Wt({},"")}catch(ds){Wt=function(Ko,As,ks){return Ko[As]=ks}}function vn(ds,io,Ko,As){var ks=io&&io.prototype instanceof Gi?io:Gi,Ga=Object.create(ks.prototype),zu=new Ns(As||[]);return ft(Ga,"_invoke",{value:ma(ds,Ko,zu)}),Ga}function Er(ds,io,Ko){try{return{type:"normal",arg:ds.call(io,Ko)}}catch(As){return{type:"throw",arg:As}}}hn.wrap=vn;var Gr={};function Gi(){}function ko(){}function Bi(){}var ms={};Wt(ms,At,function(){return this});var ps=Object.getPrototypeOf,Js=ps&&ps(ps(Ca([])));Js&&Js!==Tn&&ar.call(Js,At)&&(ms=Js);var Hs=Bi.prototype=Gi.prototype=Object.create(ms);function Po(ds){["next","throw","return"].forEach(function(io){Wt(ds,io,function(Ko){return this._invoke(io,Ko)})})}function zs(ds,io){function Ko(ks,Ga,zu,Ac){var vc=Er(ds[ks],ds,Ga);if(vc.type!=="throw"){var ec=vc.arg,qu=ec.value;return qu&&qi(qu)=="object"&&ar.call(qu,"__await")?io.resolve(qu.__await).then(function(Uu){Ko("next",Uu,zu,Ac)},function(Uu){Ko("throw",Uu,zu,Ac)}):io.resolve(qu).then(function(Uu){ec.value=Uu,zu(ec)},function(Uu){return Ko("throw",Uu,zu,Ac)})}Ac(vc.arg)}var As;ft(this,"_invoke",{value:function(Ga,zu){function Ac(){return new io(function(vc,ec){Ko(Ga,zu,vc,ec)})}return As=As?As.then(Ac,Ac):Ac()}})}function ma(ds,io,Ko){var As="suspendedStart";return function(ks,Ga){if(As==="executing")throw new Error("Generator is already running");if(As==="completed"){if(ks==="throw")throw Ga;return vl()}for(Ko.method=ks,Ko.arg=Ga;;){var zu=Ko.delegate;if(zu){var Ac=va(zu,Ko);if(Ac){if(Ac===Gr)continue;return Ac}}if(Ko.method==="next")Ko.sent=Ko._sent=Ko.arg;else if(Ko.method==="throw"){if(As==="suspendedStart")throw As="completed",Ko.arg;Ko.dispatchException(Ko.arg)}else Ko.method==="return"&&Ko.abrupt("return",Ko.arg);As="executing";var vc=Er(ds,io,Ko);if(vc.type==="normal"){if(As=Ko.done?"completed":"suspendedYield",vc.arg===Gr)continue;return{value:vc.arg,done:Ko.done}}vc.type==="throw"&&(As="completed",Ko.method="throw",Ko.arg=vc.arg)}}}function va(ds,io){var Ko=io.method,As=ds.iterator[Ko];if(As===void 0)return io.delegate=null,Ko==="throw"&&ds.iterator.return&&(io.method="return",io.arg=void 0,va(ds,io),io.method==="throw")||Ko!=="return"&&(io.method="throw",io.arg=new TypeError("The iterator does not provide a '"+Ko+"' method")),Gr;var ks=Er(As,ds.iterator,io.arg);if(ks.type==="throw")return io.method="throw",io.arg=ks.arg,io.delegate=null,Gr;var Ga=ks.arg;return Ga?Ga.done?(io[ds.resultName]=Ga.value,io.next=ds.nextLoc,io.method!=="return"&&(io.method="next",io.arg=void 0),io.delegate=null,Gr):Ga:(io.method="throw",io.arg=new TypeError("iterator result is not an object"),io.delegate=null,Gr)}function El(ds){var io={tryLoc:ds[0]};1 in ds&&(io.catchLoc=ds[1]),2 in ds&&(io.finallyLoc=ds[2],io.afterLoc=ds[3]),this.tryEntries.push(io)}function Dl(ds){var io=ds.completion||{};io.type="normal",delete io.arg,ds.completion=io}function Ns(ds){this.tryEntries=[{tryLoc:"root"}],ds.forEach(El,this),this.reset(!0)}function Ca(ds){if(ds){var io=ds[At];if(io)return io.call(ds);if(typeof ds.next=="function")return ds;if(!isNaN(ds.length)){var Ko=-1,As=function ks(){for(;++Ko=0;--ks){var Ga=this.tryEntries[ks],zu=Ga.completion;if(Ga.tryLoc==="root")return As("end");if(Ga.tryLoc<=this.prev){var Ac=ar.call(Ga,"catchLoc"),vc=ar.call(Ga,"finallyLoc");if(Ac&&vc){if(this.prev=0;--As){var ks=this.tryEntries[As];if(ks.tryLoc<=this.prev&&ar.call(ks,"finallyLoc")&&this.prev=0;--Ko){var As=this.tryEntries[Ko];if(As.finallyLoc===io)return this.complete(As.completion,As.afterLoc),Dl(As),Gr}},catch:function(io){for(var Ko=this.tryEntries.length-1;Ko>=0;--Ko){var As=this.tryEntries[Ko];if(As.tryLoc===io){var ks=As.completion;if(ks.type==="throw"){var Ga=ks.arg;Dl(As)}return Ga}}throw new Error("illegal catch attempt")},delegateYield:function(io,Ko,As){return this.delegate={iterator:Ca(io),resultName:Ko,nextLoc:As},this.method==="next"&&(this.arg=void 0),Gr}},hn}function to(hn){return Vi(hn)||no(hn)||Wr(hn)||ts()}function ts(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wr(hn,Tn){if(hn){if(typeof hn=="string")return Pn(hn,Tn);var ar=Object.prototype.toString.call(hn).slice(8,-1);if(ar==="Object"&&hn.constructor&&(ar=hn.constructor.name),ar==="Map"||ar==="Set")return Array.from(hn);if(ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ar))return Pn(hn,Tn)}}function no(hn){if(typeof Symbol!="undefined"&&hn[Symbol.iterator]!=null||hn["@@iterator"]!=null)return Array.from(hn)}function Vi(hn){if(Array.isArray(hn))return Pn(hn)}function Pn(hn,Tn){(Tn==null||Tn>hn.length)&&(Tn=hn.length);for(var ar=0,ft=new Array(Tn);ar1&&ko[1]!==void 0?ko[1]:5,ms.next=3,this.exportVector(Ye,Wt);case 3:return vn=ms.sent,Er=this.imageBounds,Gr=vn.map(function(ps){var Js=[ps.x*Et.metersPerpixelsX+Er[0],(Et.imageOption.height-ps.y)*Et.metersPerpixelsY+Er[1]],Hs=Et.mapHelper.metersToLngLat(Js[0],Js[1]);return Hs}),Gi=Si(Gr),ms.abrupt("return",Gi);case 8:case"end":return ms.stop()}},At,this)}));function wt(At){return ft.apply(this,arguments)}return wt}()},{key:"lngLat2ImagePixel",value:function(wt){if(this.imageBounds){var At=this.mapHelper.lngLatToMeters(wt[0],wt[1]),Ye=Vr(At,2),Et=Ye[0],Wt=Ye[1],vn=(Et-this.imageBounds[0])/this.metersPerpixelsX,Er=(Wt-this.imageBounds[1])/this.metersPerpixelsY;return Er=this.imageOption.height-Er,[vn,Er]}}}]),ar}(eo)},86500:function(gt,Y,_){"use strict";_.d(Y,{T6:function(){return k},VD:function(){return K},WE:function(){return O},Yt:function(){return he},lC:function(){return w},py:function(){return V},rW:function(){return R},s:function(){return S},ve:function(){return B},vq:function(){return L}});var v=_(90279);function R(ae,fe,_e){return{r:(0,v.sh)(ae,255)*255,g:(0,v.sh)(fe,255)*255,b:(0,v.sh)(_e,255)*255}}function w(ae,fe,_e){ae=(0,v.sh)(ae,255),fe=(0,v.sh)(fe,255),_e=(0,v.sh)(_e,255);var be=Math.max(ae,fe,_e),xe=Math.min(ae,fe,_e),Xe=0,We=0,dt=(be+xe)/2;if(be===xe)We=0,Xe=0;else{var Me=be-xe;switch(We=dt>.5?Me/(2-be-xe):Me/(be+xe),be){case ae:Xe=(fe-_e)/Me+(fe<_e?6:0);break;case fe:Xe=(_e-ae)/Me+2;break;case _e:Xe=(ae-fe)/Me+4;break;default:break}Xe/=6}return{h:Xe,s:We,l:dt}}function b(ae,fe,_e){return _e<0&&(_e+=1),_e>1&&(_e-=1),_e<1/6?ae+(fe-ae)*(6*_e):_e<1/2?fe:_e<2/3?ae+(fe-ae)*(2/3-_e)*6:ae}function B(ae,fe,_e){var be,xe,Xe;if(ae=(0,v.sh)(ae,360),fe=(0,v.sh)(fe,100),_e=(0,v.sh)(_e,100),fe===0)xe=_e,Xe=_e,be=_e;else{var We=_e<.5?_e*(1+fe):_e+fe-_e*fe,dt=2*_e-We;be=b(dt,We,ae+1/3),xe=b(dt,We,ae),Xe=b(dt,We,ae-1/3)}return{r:be*255,g:xe*255,b:Xe*255}}function V(ae,fe,_e){ae=(0,v.sh)(ae,255),fe=(0,v.sh)(fe,255),_e=(0,v.sh)(_e,255);var be=Math.max(ae,fe,_e),xe=Math.min(ae,fe,_e),Xe=0,We=be,dt=be-xe,Me=be===0?0:dt/be;if(be===xe)Xe=0;else{switch(be){case ae:Xe=(fe-_e)/dt+(fe<_e?6:0);break;case fe:Xe=(_e-ae)/dt+2;break;case _e:Xe=(ae-fe)/dt+4;break;default:break}Xe/=6}return{h:Xe,s:Me,v:We}}function O(ae,fe,_e){ae=(0,v.sh)(ae,360)*6,fe=(0,v.sh)(fe,100),_e=(0,v.sh)(_e,100);var be=Math.floor(ae),xe=ae-be,Xe=_e*(1-fe),We=_e*(1-xe*fe),dt=_e*(1-(1-xe)*fe),Me=be%6,Se=[_e,We,Xe,Xe,dt,_e][Me],ze=[dt,_e,_e,We,Xe,Xe][Me],De=[Xe,Xe,dt,_e,_e,We][Me];return{r:Se*255,g:ze*255,b:De*255}}function L(ae,fe,_e,be){var xe=[(0,v.FZ)(Math.round(ae).toString(16)),(0,v.FZ)(Math.round(fe).toString(16)),(0,v.FZ)(Math.round(_e).toString(16))];return be&&xe[0].startsWith(xe[0].charAt(1))&&xe[1].startsWith(xe[1].charAt(1))&&xe[2].startsWith(xe[2].charAt(1))?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0):xe.join("")}function S(ae,fe,_e,be,xe){var Xe=[(0,v.FZ)(Math.round(ae).toString(16)),(0,v.FZ)(Math.round(fe).toString(16)),(0,v.FZ)(Math.round(_e).toString(16)),(0,v.FZ)(T(be))];return xe&&Xe[0].startsWith(Xe[0].charAt(1))&&Xe[1].startsWith(Xe[1].charAt(1))&&Xe[2].startsWith(Xe[2].charAt(1))&&Xe[3].startsWith(Xe[3].charAt(1))?Xe[0].charAt(0)+Xe[1].charAt(0)+Xe[2].charAt(0)+Xe[3].charAt(0):Xe.join("")}function g(ae,fe,_e,be){var xe=[pad2(T(be)),pad2(Math.round(ae).toString(16)),pad2(Math.round(fe).toString(16)),pad2(Math.round(_e).toString(16))];return xe.join("")}function T(ae){return Math.round(parseFloat(ae)*255).toString(16)}function k(ae){return K(ae)/255}function K(ae){return parseInt(ae,16)}function he(ae){return{r:ae>>16,g:(ae&65280)>>8,b:ae&255}}},48701:function(gt,Y,_){"use strict";_.d(Y,{R:function(){return v}});var v={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"}},1350:function(gt,Y,_){"use strict";_.d(Y,{uA:function(){return b}});var v=_(86500),R=_(48701),w=_(90279);function b(K){var he={r:0,g:0,b:0},ae=1,fe=null,_e=null,be=null,xe=!1,Xe=!1;return typeof K=="string"&&(K=T(K)),typeof K=="object"&&(k(K.r)&&k(K.g)&&k(K.b)?(he=(0,v.rW)(K.r,K.g,K.b),xe=!0,Xe=String(K.r).substr(-1)==="%"?"prgb":"rgb"):k(K.h)&&k(K.s)&&k(K.v)?(fe=(0,w.JX)(K.s),_e=(0,w.JX)(K.v),he=(0,v.WE)(K.h,fe,_e),xe=!0,Xe="hsv"):k(K.h)&&k(K.s)&&k(K.l)&&(fe=(0,w.JX)(K.s),be=(0,w.JX)(K.l),he=(0,v.ve)(K.h,fe,be),xe=!0,Xe="hsl"),Object.prototype.hasOwnProperty.call(K,"a")&&(ae=K.a)),ae=(0,w.Yq)(ae),{ok:xe,format:K.format||Xe,r:Math.min(255,Math.max(he.r,0)),g:Math.min(255,Math.max(he.g,0)),b:Math.min(255,Math.max(he.b,0)),a:ae}}var B="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",O="(?:".concat(V,")|(?:").concat(B,")"),L="[\\s|\\(]+(".concat(O,")[,|\\s]+(").concat(O,")[,|\\s]+(").concat(O,")\\s*\\)?"),S="[\\s|\\(]+(".concat(O,")[,|\\s]+(").concat(O,")[,|\\s]+(").concat(O,")[,|\\s]+(").concat(O,")\\s*\\)?"),g={CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+S),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+S),hsv:new RegExp("hsv"+L),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 T(K){if(K=K.trim().toLowerCase(),K.length===0)return!1;var he=!1;if(R.R[K])K=R.R[K],he=!0;else if(K==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae=g.rgb.exec(K);return ae?{r:ae[1],g:ae[2],b:ae[3]}:(ae=g.rgba.exec(K),ae?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=g.hsl.exec(K),ae?{h:ae[1],s:ae[2],l:ae[3]}:(ae=g.hsla.exec(K),ae?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=g.hsv.exec(K),ae?{h:ae[1],s:ae[2],v:ae[3]}:(ae=g.hsva.exec(K),ae?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=g.hex8.exec(K),ae?{r:(0,v.VD)(ae[1]),g:(0,v.VD)(ae[2]),b:(0,v.VD)(ae[3]),a:(0,v.T6)(ae[4]),format:he?"name":"hex8"}:(ae=g.hex6.exec(K),ae?{r:(0,v.VD)(ae[1]),g:(0,v.VD)(ae[2]),b:(0,v.VD)(ae[3]),format:he?"name":"hex"}:(ae=g.hex4.exec(K),ae?{r:(0,v.VD)(ae[1]+ae[1]),g:(0,v.VD)(ae[2]+ae[2]),b:(0,v.VD)(ae[3]+ae[3]),a:(0,v.T6)(ae[4]+ae[4]),format:he?"name":"hex8"}:(ae=g.hex3.exec(K),ae?{r:(0,v.VD)(ae[1]+ae[1]),g:(0,v.VD)(ae[2]+ae[2]),b:(0,v.VD)(ae[3]+ae[3]),format:he?"name":"hex"}:!1)))))))))}function k(K){return!!g.CSS_UNIT.exec(String(K))}},10274:function(gt,Y,_){"use strict";_.d(Y,{C:function(){return B}});var v=_(86500),R=_(48701),w=_(1350),b=_(90279),B=function(){function O(L,S){L===void 0&&(L=""),S===void 0&&(S={});var g;if(L instanceof O)return L;typeof L=="number"&&(L=(0,v.Yt)(L)),this.originalInput=L;var T=(0,w.uA)(L);this.originalInput=L,this.r=T.r,this.g=T.g,this.b=T.b,this.a=T.a,this.roundA=Math.round(100*this.a)/100,this.format=(g=S.format)!==null&&g!==void 0?g:T.format,this.gradientType=S.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=T.ok}return O.prototype.isDark=function(){return this.getBrightness()<128},O.prototype.isLight=function(){return!this.isDark()},O.prototype.getBrightness=function(){var L=this.toRgb();return(L.r*299+L.g*587+L.b*114)/1e3},O.prototype.getLuminance=function(){var L=this.toRgb(),S,g,T,k=L.r/255,K=L.g/255,he=L.b/255;return k<=.03928?S=k/12.92:S=Math.pow((k+.055)/1.055,2.4),K<=.03928?g=K/12.92:g=Math.pow((K+.055)/1.055,2.4),he<=.03928?T=he/12.92:T=Math.pow((he+.055)/1.055,2.4),.2126*S+.7152*g+.0722*T},O.prototype.getAlpha=function(){return this.a},O.prototype.setAlpha=function(L){return this.a=(0,b.Yq)(L),this.roundA=Math.round(100*this.a)/100,this},O.prototype.isMonochrome=function(){var L=this.toHsl().s;return L===0},O.prototype.toHsv=function(){var L=(0,v.py)(this.r,this.g,this.b);return{h:L.h*360,s:L.s,v:L.v,a:this.a}},O.prototype.toHsvString=function(){var L=(0,v.py)(this.r,this.g,this.b),S=Math.round(L.h*360),g=Math.round(L.s*100),T=Math.round(L.v*100);return this.a===1?"hsv(".concat(S,", ").concat(g,"%, ").concat(T,"%)"):"hsva(".concat(S,", ").concat(g,"%, ").concat(T,"%, ").concat(this.roundA,")")},O.prototype.toHsl=function(){var L=(0,v.lC)(this.r,this.g,this.b);return{h:L.h*360,s:L.s,l:L.l,a:this.a}},O.prototype.toHslString=function(){var L=(0,v.lC)(this.r,this.g,this.b),S=Math.round(L.h*360),g=Math.round(L.s*100),T=Math.round(L.l*100);return this.a===1?"hsl(".concat(S,", ").concat(g,"%, ").concat(T,"%)"):"hsla(".concat(S,", ").concat(g,"%, ").concat(T,"%, ").concat(this.roundA,")")},O.prototype.toHex=function(L){return L===void 0&&(L=!1),(0,v.vq)(this.r,this.g,this.b,L)},O.prototype.toHexString=function(L){return L===void 0&&(L=!1),"#"+this.toHex(L)},O.prototype.toHex8=function(L){return L===void 0&&(L=!1),(0,v.s)(this.r,this.g,this.b,this.a,L)},O.prototype.toHex8String=function(L){return L===void 0&&(L=!1),"#"+this.toHex8(L)},O.prototype.toHexShortString=function(L){return L===void 0&&(L=!1),this.a===1?this.toHexString(L):this.toHex8String(L)},O.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},O.prototype.toRgbString=function(){var L=Math.round(this.r),S=Math.round(this.g),g=Math.round(this.b);return this.a===1?"rgb(".concat(L,", ").concat(S,", ").concat(g,")"):"rgba(".concat(L,", ").concat(S,", ").concat(g,", ").concat(this.roundA,")")},O.prototype.toPercentageRgb=function(){var L=function(S){return"".concat(Math.round((0,b.sh)(S,255)*100),"%")};return{r:L(this.r),g:L(this.g),b:L(this.b),a:this.a}},O.prototype.toPercentageRgbString=function(){var L=function(S){return Math.round((0,b.sh)(S,255)*100)};return this.a===1?"rgb(".concat(L(this.r),"%, ").concat(L(this.g),"%, ").concat(L(this.b),"%)"):"rgba(".concat(L(this.r),"%, ").concat(L(this.g),"%, ").concat(L(this.b),"%, ").concat(this.roundA,")")},O.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var L="#"+(0,v.vq)(this.r,this.g,this.b,!1),S=0,g=Object.entries(R.R);S=0,k=!S&&T&&(L.startsWith("hex")||L==="name");return k?L==="name"&&this.a===0?this.toName():this.toRgbString():(L==="rgb"&&(g=this.toRgbString()),L==="prgb"&&(g=this.toPercentageRgbString()),(L==="hex"||L==="hex6")&&(g=this.toHexString()),L==="hex3"&&(g=this.toHexString(!0)),L==="hex4"&&(g=this.toHex8String(!0)),L==="hex8"&&(g=this.toHex8String()),L==="name"&&(g=this.toName()),L==="hsl"&&(g=this.toHslString()),L==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},O.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},O.prototype.clone=function(){return new O(this.toString())},O.prototype.lighten=function(L){L===void 0&&(L=10);var S=this.toHsl();return S.l+=L/100,S.l=(0,b.V2)(S.l),new O(S)},O.prototype.brighten=function(L){L===void 0&&(L=10);var S=this.toRgb();return S.r=Math.max(0,Math.min(255,S.r-Math.round(255*-(L/100)))),S.g=Math.max(0,Math.min(255,S.g-Math.round(255*-(L/100)))),S.b=Math.max(0,Math.min(255,S.b-Math.round(255*-(L/100)))),new O(S)},O.prototype.darken=function(L){L===void 0&&(L=10);var S=this.toHsl();return S.l-=L/100,S.l=(0,b.V2)(S.l),new O(S)},O.prototype.tint=function(L){return L===void 0&&(L=10),this.mix("white",L)},O.prototype.shade=function(L){return L===void 0&&(L=10),this.mix("black",L)},O.prototype.desaturate=function(L){L===void 0&&(L=10);var S=this.toHsl();return S.s-=L/100,S.s=(0,b.V2)(S.s),new O(S)},O.prototype.saturate=function(L){L===void 0&&(L=10);var S=this.toHsl();return S.s+=L/100,S.s=(0,b.V2)(S.s),new O(S)},O.prototype.greyscale=function(){return this.desaturate(100)},O.prototype.spin=function(L){var S=this.toHsl(),g=(S.h+L)%360;return S.h=g<0?360+g:g,new O(S)},O.prototype.mix=function(L,S){S===void 0&&(S=50);var g=this.toRgb(),T=new O(L).toRgb(),k=S/100,K={r:(T.r-g.r)*k+g.r,g:(T.g-g.g)*k+g.g,b:(T.b-g.b)*k+g.b,a:(T.a-g.a)*k+g.a};return new O(K)},O.prototype.analogous=function(L,S){L===void 0&&(L=6),S===void 0&&(S=30);var g=this.toHsl(),T=360/S,k=[this];for(g.h=(g.h-(T*L>>1)+720)%360;--L;)g.h=(g.h+T)%360,k.push(new O(g));return k},O.prototype.complement=function(){var L=this.toHsl();return L.h=(L.h+180)%360,new O(L)},O.prototype.monochromatic=function(L){L===void 0&&(L=6);for(var S=this.toHsv(),g=S.h,T=S.s,k=S.v,K=[],he=1/L;L--;)K.push(new O({h:g,s:T,v:k})),k=(k+he)%1;return K},O.prototype.splitcomplement=function(){var L=this.toHsl(),S=L.h;return[this,new O({h:(S+72)%360,s:L.s,l:L.l}),new O({h:(S+216)%360,s:L.s,l:L.l})]},O.prototype.onBackground=function(L){var S=this.toRgb(),g=new O(L).toRgb(),T=S.a+g.a*(1-S.a);return new O({r:(S.r*S.a+g.r*g.a*(1-S.a))/T,g:(S.g*S.a+g.g*g.a*(1-S.a))/T,b:(S.b*S.a+g.b*g.a*(1-S.a))/T,a:T})},O.prototype.triad=function(){return this.polyad(3)},O.prototype.tetrad=function(){return this.polyad(4)},O.prototype.polyad=function(L){for(var S=this.toHsl(),g=S.h,T=[this],k=360/L,K=1;K1)&&(L=1),L}function V(L){return L<=1?"".concat(Number(L)*100,"%"):L}function O(L){return L.length===1?"0"+L:String(L)}},68479:function(gt,Y,_){"use strict";_.d(Y,{iv:function(){return hn}});function v(ft){if(ft.sheet)return ft.sheet;for(var wt=0;wt0?k(Me,--We):0,xe--,dt===10&&(xe=1,be--),dt}function $e(){return dt=We2||Xt(dt)>3?"":" "}function _t(ft){for(;$e();)switch(Xt(dt)){case 0:append(wi(We-1),ft);break;case 2:append(xt(dt),ft);break;default:append(from(dt),ft)}return ft}function bn(ft,wt){for(;--wt&&$e()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return Oe(ft,tt()+(wt<6&&Te()==32&&$e()==32))}function Wn(ft){for(;$e();)switch(dt){case ft:return We;case 34:case 39:ft!==34&&ft!==39&&Wn(dt);break;case 40:ft===41&&Wn(ft);break;case 92:$e();break}return We}function $r(ft,wt){for(;$e()&&ft+dt!==47+10;)if(ft+dt===42+42&&Te()===47)break;return"/*"+Oe(wt,We-1)+"*"+B(ft===47?ft:$e())}function wi(ft){for(;!Xt(Te());)$e();return Oe(ft,We)}var oo="-ms-",Mo="-moz-",Ti="-webkit-",Hr="comm",Ho="rule",Ss="decl",Pe="@page",qo="@media",Ki="@import",Do="@charset",ai="@viewport",$o="@supports",Mn="@document",nt="@namespace",Dt="@keyframes",Kt="@font-face",mn="@counter-style",kn="@font-feature-values",an="@layer";function tn(ft,wt){for(var At="",Ye=ae(ft),Et=0;Et-1&&!ft.return)switch(ft.type){case DECLARATION:ft.return=prefix(ft.value,ft.length,At);return;case KEYFRAMES:return serialize([copy(ft,{value:replace(ft.value,"@","@"+WEBKIT)})],Ye);case RULESET:if(ft.length)return combine(ft.props,function(Et){switch(match(Et,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(ft,{props:[replace(Et,/:(read-\w+)/,":"+MOZ+"$1")]})],Ye);case"::placeholder":return serialize([copy(ft,{props:[replace(Et,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(ft,{props:[replace(Et,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(ft,{props:[replace(Et,/:(plac\w+)/,MS+"input-$1")]})],Ye)}return""})}}function Dr(ft){switch(ft.type){case RULESET:ft.props=ft.props.map(function(wt){return combine(tokenize(wt),function(At,Ye,Et){switch(charat(At,0)){case 12:return substr(At,1,strlen(At));case 0:case 40:case 43:case 62:case 126:return At;case 58:Et[++Ye]==="global"&&(Et[Ye]="",Et[++Ye]="\f"+substr(Et[Ye],Ye=1,-1));case 32:return Ye===1?"":At;default:switch(Ye){case 0:return ft=At,sizeof(Et)>1?"":At;case(Ye=sizeof(Et)-1):case 2:return Ye===2?At+ft+ft:At+ft;default:return At}}})})}}function oi(ft){return ot(Ii("",null,null,null,[""],ft=Ft(ft),0,[0],ft))}function Ii(ft,wt,At,Ye,Et,Wt,vn,Er,Gr){for(var Gi=0,ko=0,Bi=vn,ms=0,ps=0,Js=0,Hs=1,Po=1,zs=1,ma=0,va="",El=Et,Dl=Wt,Ns=Ye,Ca=va;Po;)switch(Js=ma,ma=$e()){case 40:if(Js!=108&&k(Ca,Bi-1)==58){T(Ca+=g(xt(ma),"&","&\f"),"&\f")!=-1&&(zs=-1);break}case 34:case 39:case 91:Ca+=xt(ma);break;case 9:case 10:case 13:case 32:Ca+=$t(Js);break;case 92:Ca+=bn(tt()-1,7);continue;case 47:switch(Te()){case 42:case 47:fe(eo($r($e(),tt()),wt,At),Gr);break;default:Ca+="/"}break;case 123*Hs:Er[Gi++]=he(Ca)*zs;case 125*Hs:case 59:case 0:switch(ma){case 0:case 125:Po=0;case 59+ko:zs==-1&&(Ca=g(Ca,/\f/g,"")),ps>0&&he(Ca)-Bi&&fe(ps>32?Uo(Ca+";",Ye,At,Bi-1):Uo(g(Ca," ","")+";",Ye,At,Bi-2),Gr);break;case 59:Ca+=";";default:if(fe(Ns=jr(Ca,wt,At,Gi,ko,Et,Er,va,El=[],Dl=[],Bi),Wt),ma===123)if(ko===0)Ii(Ca,wt,Ns,Ns,El,Wt,Bi,Er,Dl);else switch(ms===99&&k(Ca,3)===110?100:ms){case 100:case 108:case 109:case 115:Ii(ft,Ns,Ns,Ye&&fe(jr(ft,Ns,Ns,0,0,Et,Er,va,Et,El=[],Bi),Dl),Et,Dl,Bi,Er,Ye?El:Dl);break;default:Ii(Ca,Ns,Ns,Ns,[""],Dl,0,Er,Dl)}}Gi=ko=ps=0,Hs=zs=1,va=Ca="",Bi=vn;break;case 58:Bi=1+he(Ca),ps=Js;default:if(Hs<1){if(ma==123)--Hs;else if(ma==125&&Hs++==0&&ke()==125)continue}switch(Ca+=B(ma),ma*Hs){case 38:zs=ko>0?1:(Ca+="\f",-1);break;case 44:Er[Gi++]=(he(Ca)-1)*zs,zs=1;break;case 64:Te()===45&&(Ca+=xt($e())),ms=Te(),ko=Bi=he(va=Ca+=wi(tt())),ma++;break;case 45:Js===45&&he(Ca)==2&&(Hs=0)}}return Wt}function jr(ft,wt,At,Ye,Et,Wt,vn,Er,Gr,Gi,ko){for(var Bi=Et-1,ms=Et===0?Wt:[""],ps=ae(ms),Js=0,Hs=0,Po=0;Js0?ms[zs]+" "+ma:g(ma,/&\f/g,ms[zs])))&&(Gr[Po++]=va);return Se(ft,wt,At,Et===0?Ho:Er,Gr,Gi,ko)}function eo(ft,wt,At){return Se(ft,wt,At,Hr,B(De()),K(ft,2,-2),0)}function Uo(ft,wt,At,Ye){return Se(ft,wt,At,Ss,K(ft,0,Ye),K(ft,Ye+1,-1),Ye)}var Fn=function(wt,At,Ye){for(var Et=0,Wt=0;Et=Wt,Wt=Te(),Et===38&&Wt===12&&(At[Ye]=1),!Xt(Wt);)$e();return Oe(wt,We)},Qr=function(wt,At){var Ye=-1,Et=44;do switch(Xt(Et)){case 0:Et===38&&Te()===12&&(At[Ye]=1),wt[Ye]+=Fn(We-1,At,Ye);break;case 2:wt[Ye]+=xt(Et);break;case 4:if(Et===44){wt[++Ye]=Te()===58?"&\f":"",At[Ye]=wt[Ye].length;break}default:wt[Ye]+=B(Et)}while(Et=$e());return wt},ci=function(wt,At){return ot(Qr(Ft(wt),At))},ji=new WeakMap,cr=function(wt){if(!(wt.type!=="rule"||!wt.parent||wt.length<1)){for(var At=wt.value,Ye=wt.parent,Et=wt.column===Ye.column&&wt.line===Ye.line;Ye.type!=="rule";)if(Ye=Ye.parent,!Ye)return;if(!(wt.props.length===1&&At.charCodeAt(0)!==58&&!ji.get(Ye))&&!Et){ji.set(wt,!0);for(var Wt=[],vn=ci(At,Wt),Er=Ye.props,Gr=0,Gi=0;Gr-1},En=function(wt){return function(At,Ye,Et){if(!(At.type!=="rule"||wt.compat)){var Wt=At.value.match(/(:first|:nth|:nth-last)-child/g);if(Wt){for(var vn=!!At.parent,Er=vn?At.parent.children:Et,Gr=Er.length-1;Gr>=0;Gr--){var Gi=Er[Gr];if(Gi.line=0;Ye--)if(!er(At[Ye]))return!0;return!1},Nr=function(wt){wt.type="",wt.value="",wt.return="",wt.children="",wt.props=""},Zn=function(wt,At,Ye){er(wt)&&(wt.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Nr(wt)):Tr(At,Ye)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Nr(wt)))};function Ut(ft,wt){switch(O(ft,wt)){case 5103:return Ti+"print-"+ft+ft;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ti+ft+ft;case 5349:case 4246:case 4810:case 6968:case 2756:return Ti+ft+Mo+ft+oo+ft+ft;case 6828:case 4268:return Ti+ft+oo+ft+ft;case 6165:return Ti+ft+oo+"flex-"+ft+ft;case 5187:return Ti+ft+g(ft,/(\w+).+(:[^]+)/,Ti+"box-$1$2"+oo+"flex-$1$2")+ft;case 5443:return Ti+ft+oo+"flex-item-"+g(ft,/flex-|-self/,"")+ft;case 4675:return Ti+ft+oo+"flex-line-pack"+g(ft,/align-content|flex-|-self/,"")+ft;case 5548:return Ti+ft+oo+g(ft,"shrink","negative")+ft;case 5292:return Ti+ft+oo+g(ft,"basis","preferred-size")+ft;case 6060:return Ti+"box-"+g(ft,"-grow","")+Ti+ft+oo+g(ft,"grow","positive")+ft;case 4554:return Ti+g(ft,/([^-])(transform)/g,"$1"+Ti+"$2")+ft;case 6187:return g(g(g(ft,/(zoom-|grab)/,Ti+"$1"),/(image-set)/,Ti+"$1"),ft,"")+ft;case 5495:case 3959:return g(ft,/(image-set\([^]*)/,Ti+"$1$`$1");case 4968:return g(g(ft,/(.+:)(flex-)?(.*)/,Ti+"box-pack:$3"+oo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ti+ft+ft;case 4095:case 3583:case 4068:case 2532:return g(ft,/(.+)-inline(.+)/,Ti+"$1$2")+ft;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(he(ft)-1-wt>6)switch(k(ft,wt+1)){case 109:if(k(ft,wt+4)!==45)break;case 102:return g(ft,/(.+:)(.+)-([^]+)/,"$1"+Ti+"$2-$3$1"+Mo+(k(ft,wt+3)==108?"$3":"$2-$3"))+ft;case 115:return~T(ft,"stretch")?Ut(g(ft,"stretch","fill-available"),wt)+ft:ft}break;case 4949:if(k(ft,wt+1)!==115)break;case 6444:switch(k(ft,he(ft)-3-(~T(ft,"!important")&&10))){case 107:return g(ft,":",":"+Ti)+ft;case 101:return g(ft,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ti+(k(ft,14)===45?"inline-":"")+"box$3$1"+Ti+"$2$3$1"+oo+"$2box$3")+ft}break;case 5936:switch(k(ft,wt+11)){case 114:return Ti+ft+oo+g(ft,/[svh]\w+-[tblr]{2}/,"tb")+ft;case 108:return Ti+ft+oo+g(ft,/[svh]\w+-[tblr]{2}/,"tb-rl")+ft;case 45:return Ti+ft+oo+g(ft,/[svh]\w+-[tblr]{2}/,"lr")+ft}return Ti+ft+oo+ft+ft}return ft}var $n=function(wt,At,Ye,Et){if(wt.length>-1&&!wt.return)switch(wt.type){case Ss:wt.return=Ut(wt.value,wt.length);break;case Dt:return tn([ze(wt,{value:g(wt.value,"@","@"+Ti)})],Et);case Ho:if(wt.length)return _e(wt.props,function(Wt){switch(S(Wt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tn([ze(wt,{props:[g(Wt,/:(read-\w+)/,":"+Mo+"$1")]})],Et);case"::placeholder":return tn([ze(wt,{props:[g(Wt,/:(plac\w+)/,":"+Ti+"input-$1")]}),ze(wt,{props:[g(Wt,/:(plac\w+)/,":"+Mo+"$1")]}),ze(wt,{props:[g(Wt,/:(plac\w+)/,oo+"input-$1")]})],Et)}return""})}},xr=[$n],Br=function(wt){var At=wt.key;if(At==="css"){var Ye=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Ye,function(Hs){var Po=Hs.getAttribute("data-emotion");Po.indexOf(" ")!==-1&&(document.head.appendChild(Hs),Hs.setAttribute("data-s",""))})}var Et=wt.stylisPlugins||xr,Wt={},vn,Er=[];vn=wt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+At+' "]'),function(Hs){for(var Po=Hs.getAttribute("data-emotion").split(" "),zs=1;zs=4;++Ye,Et-=4)At=ft.charCodeAt(Ye)&255|(ft.charCodeAt(++Ye)&255)<<8|(ft.charCodeAt(++Ye)&255)<<16|(ft.charCodeAt(++Ye)&255)<<24,At=(At&65535)*1540483477+((At>>>16)*59797<<16),At^=At>>>24,wt=(At&65535)*1540483477+((At>>>16)*59797<<16)^(wt&65535)*1540483477+((wt>>>16)*59797<<16);switch(Et){case 3:wt^=(ft.charCodeAt(Ye+2)&255)<<16;case 2:wt^=(ft.charCodeAt(Ye+1)&255)<<8;case 1:wt^=ft.charCodeAt(Ye)&255,wt=(wt&65535)*1540483477+((wt>>>16)*59797<<16)}return wt^=wt>>>13,wt=(wt&65535)*1540483477+((wt>>>16)*59797<<16),((wt^wt>>>15)>>>0).toString(36)}var Qt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xn(ft){var wt=Object.create(null);return function(At){return wt[At]===void 0&&(wt[At]=ft(At)),wt[At]}}var Sr=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Jr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",vi=/[A-Z]|^ms/g,Di=/_EMO_([^_]+?)_([^]*?)_EMO_/g,co=function(at){return at.charCodeAt(1)===45},Qr=function(at){return at!=null&&typeof at!="boolean"},oi=pn(function(tt){return co(tt)?tt:tt.replace(vi,"-$&").toLowerCase()}),Zi=function(at,gt){switch(at){case"animation":case"animationName":if(typeof gt=="string")return gt.replace(Di,function(Ne,lt,St){return ms={name:lt,styles:St,next:ms},lt})}return Bt[at]!==1&&!co(at)&&typeof gt=="number"&>!==0?gt+"px":gt};if(!1)var Ar,tn,Gn,Ei,In,Li;var nr=null;function wi(tt,at,gt){if(gt==null)return"";if(gt.__emotion_styles!==void 0)return gt;switch(typeof gt){case"boolean":return"";case"object":{if(gt.anim===1)return ms={name:gt.name,styles:gt.styles,next:ms},gt.name;if(gt.styles!==void 0){var Ne=gt.next;if(Ne!==void 0)for(;Ne!==void 0;)ms={name:Ne.name,styles:Ne.styles,next:ms},Ne=Ne.next;var lt=gt.styles+";";return lt}return Mi(tt,at,gt)}case"function":{if(tt!==void 0){var St=ms,ln=gt(tt);return ms=St,wi(tt,at,ln)}break}case"string":if(!1)var jn,Cr;break}if(at==null)return gt;var ki=at[gt];return ki!==void 0?ki:gt}function Mi(tt,at,gt){var Ne="";if(Array.isArray(gt))for(var lt=0;lt=Math.abs(C)?z-f+C:C-f+z,z=f}z+k>=0!=!!b&&A.reverse()}},75550:function(nt){"use strict";nt.exports=V;function V(m,y){this.x=m,this.y=y}V.prototype={clone:function(){return new V(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},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(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,A=m.y-this.y;return y*y+A*A},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,A=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=A,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),A=Math.sin(m),b=y*this.x-A*this.y,z=A*this.x+y*this.y;return this.x=b,this.y=z,this},_rotateAround:function(m,y){var A=Math.cos(m),b=Math.sin(m),z=y.x+A*(this.x-y.x)-b*(this.y-y.y),k=y.y+b*(this.x-y.x)+A*(this.y-y.y);return this.x=z,this.y=k,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},V.convert=function(m){return m instanceof V?m:Array.isArray(m)?new V(m[0],m[1]):m}},49296:function(nt){"use strict";nt.exports=m,nt.exports.default=m;var V=1e20;function m(k,N,w,I,C,f){this.fontSize=k||24,this.buffer=N===void 0?3:N,this.cutoff=I||.25,this.fontFamily=C||"sans-serif",this.fontWeight=f||"normal",this.radius=w||8;var S=this.size=this.fontSize+this.buffer*2,P=S+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=S,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(P*P),this.gridInner=new Float64Array(P*P),this.f=new Float64Array(P),this.z=new Float64Array(P+1),this.v=new Uint16Array(P),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(S/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(k,N,w,I,C,f,S){f.fill(V,0,N*w),S.fill(0,0,N*w);for(var P=(N-I)/2,W=0;W-1);W++,f[W]=P,S[W]=te,S[W+1]=V}for(P=0,W=0;Pb)return b;for(;Ak?A=z:b=z,z=(b-A)*.5+A}return z},V.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))}},38929:function(nt,V,m){nt.exports.VectorTile=m(22779),m(66024),m(59701)},22779:function(nt,V,m){"use strict";var y=m(59701);nt.exports=A;function A(z,k){this.layers=z.readFields(b,{},k)}function b(z,k,N){if(z===3){var w=new y(N,N.readVarint()+N.pos);w.length&&(k[w.name]=w)}}},66024:function(nt,V,m){"use strict";var y=m(75550);nt.exports=A;function A(w,I,C,f,S){this.properties={},this.extent=C,this.type=0,this._pbf=w,this._geometry=-1,this._keys=f,this._values=S,w.readFields(b,this,I)}function b(w,I,C){w==1?I.id=C.readVarint():w==2?z(C,I):w==3?I.type=C.readVarint():w==4&&(I._geometry=C.pos)}function z(w,I){for(var C=w.readVarint()+w.pos;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),C===1&&(te&&W.push(te),te=[]),te.push(new y(S,P));else if(C===7)te&&te.push(te[0].clone());else throw new Error("unknown command "+C)}return te&&W.push(te),W},A.prototype.bbox=function(){var w=this._pbf;w.pos=this._geometry;for(var I=w.readVarint()+w.pos,C=1,f=0,S=0,P=0,W=1/0,te=-1/0,q=1/0,ie=-1/0;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),Ste&&(te=S),Pie&&(ie=P);else if(C!==7)throw new Error("unknown command "+C)}return[W,q,te,ie]},A.prototype.toGeoJSON=function(w,I,C){var f=this.extent*Math.pow(2,C),S=this.extent*w,P=this.extent*I,W=this.loadGeometry(),te=A.types[this.type],q,ie;function he(ke){for(var Ie=0;Ie>3;N=I===1?k.readString():I===2?k.readFloat():I===3?k.readDouble():I===4?k.readVarint64():I===5?k.readVarint():I===6?k.readSVarint():I===7?k.readBoolean():null}return N}A.prototype.feature=function(k){if(k<0||k>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[k];var N=this._pbf.readVarint()+this._pbf.pos;return new y(this._pbf,N,this.extent,this._keys,this._values)}},9705:function(nt,V,m){"use strict";var y;y={value:!0};var A=m(31540);function b(z){var k=[1/0,1/0,-1/0,-1/0];return A.coordEach(z,function(N){k[0]>N[0]&&(k[0]=N[0]),k[1]>N[1]&&(k[1]=N[1]),k[2]=0))throw new Error("precision must be a positive number");var De=Math.pow(10,Ce||0);return Math.round(_e*De)/De}V.round=W;function te(_e,Ce){Ce===void 0&&(Ce="kilometers");var De=V.factors[Ce];if(!De)throw new Error(Ce+" units is invalid");return _e*De}V.radiansToLength=te;function q(_e,Ce){Ce===void 0&&(Ce="kilometers");var De=V.factors[Ce];if(!De)throw new Error(Ce+" units is invalid");return _e/De}V.lengthToRadians=q;function ie(_e,Ce){return de(q(_e,Ce))}V.lengthToDegrees=ie;function he(_e){var Ce=_e%360;return Ce<0&&(Ce+=360),Ce}V.bearingToAzimuth=he;function de(_e){var Ce=_e%(2*Math.PI);return Ce*180/Math.PI}V.radiansToDegrees=de;function fe(_e){var Ce=_e%360;return Ce*Math.PI/180}V.degreesToRadians=fe;function ke(_e,Ce,De){if(Ce===void 0&&(Ce="kilometers"),De===void 0&&(De="kilometers"),!(_e>=0))throw new Error("length must be a positive number");return te(q(_e,Ce),De)}V.convertLength=ke;function Ie(_e,Ce,De){if(Ce===void 0&&(Ce="meters"),De===void 0&&(De="kilometers"),!(_e>=0))throw new Error("area must be a positive number");var ge=V.areaFactors[Ce];if(!ge)throw new Error("invalid original units");var je=V.areaFactors[De];if(!je)throw new Error("invalid final units");return _e/ge*je}V.convertArea=Ie;function Be(_e){return!isNaN(_e)&&_e!==null&&!Array.isArray(_e)}V.isNumber=Be;function be(_e){return!!_e&&_e.constructor===Object}V.isObject=be;function me(_e){if(!_e)throw new Error("bbox is required");if(!Array.isArray(_e))throw new Error("bbox must be an Array");if(_e.length!==4&&_e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");_e.forEach(function(Ce){if(!Be(Ce))throw new Error("bbox must only contain numbers")})}V.validateBBox=me;function ye(_e){if(!_e)throw new Error("id is required");if(["string","number"].indexOf(typeof _e)===-1)throw new Error("id must be a number or a string")}V.validateId=ye},31540:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var y=m(84102);function A(fe,ke,Ie){if(fe!==null)for(var Be,be,me,ye,_e,Ce,De,ge=0,je=0,we,Pt=fe.type,dt=Pt==="FeatureCollection",He=Pt==="Feature",bt=dt?fe.features.length:1,ft=0;ftCe||dt>De||He>ge){_e=je,Ce=Be,De=dt,ge=He,me=0;return}var bt=y.lineString([_e,je],Ie.properties);if(ke(bt,Be,be,He,me)===!1)return!1;me++,_e=je})===!1)return!1}}})}function te(fe,ke,Ie){var Be=Ie,be=!1;return W(fe,function(me,ye,_e,Ce,De){be===!1&&Ie===void 0?Be=me:Be=ke(Be,me,ye,_e,Ce,De),be=!0}),Be}function q(fe,ke){if(!fe)throw new Error("geojson is required");S(fe,function(Ie,Be,be){if(Ie.geometry!==null){var me=Ie.geometry.type,ye=Ie.geometry.coordinates;switch(me){case"LineString":if(ke(Ie,Be,be,0,0)===!1)return!1;break;case"Polygon":for(var _e=0;_e=Math.abs(S)?b-g+S:S-g+b,b=g}b+B>=0!=!!w&&R.reverse()}},75550:function(gt){"use strict";gt.exports=Y;function Y(_,v){this.x=_,this.y=v}Y.prototype={clone:function(){return new Y(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,v){return this.clone()._rotateAround(_,v)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var v=_.x-this.x,R=_.y-this.y;return v*v+R*R},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,v){return Math.atan2(this.x*v-this.y*_,this.x*_+this.y*v)},_matMult:function(_){var v=_[0]*this.x+_[1]*this.y,R=_[2]*this.x+_[3]*this.y;return this.x=v,this.y=R,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var v=Math.cos(_),R=Math.sin(_),w=v*this.x-R*this.y,b=R*this.x+v*this.y;return this.x=w,this.y=b,this},_rotateAround:function(_,v){var R=Math.cos(_),w=Math.sin(_),b=v.x+R*(this.x-v.x)-w*(this.y-v.y),B=v.y+w*(this.x-v.x)+R*(this.y-v.y);return this.x=b,this.y=B,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Y.convert=function(_){return _ instanceof Y?_:Array.isArray(_)?new Y(_[0],_[1]):_}},49296:function(gt){"use strict";gt.exports=_,gt.exports.default=_;var Y=1e20;function _(B,V,O,L,S,g){this.fontSize=B||24,this.buffer=V===void 0?3:V,this.cutoff=L||.25,this.fontFamily=S||"sans-serif",this.fontWeight=g||"normal",this.radius=O||8;var T=this.size=this.fontSize+this.buffer*2,k=T+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=T,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(k*k),this.gridInner=new Float64Array(k*k),this.f=new Float64Array(k),this.z=new Float64Array(k+1),this.v=new Uint16Array(k),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(T/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function v(B,V,O,L,S,g,T){g.fill(Y,0,V*O),T.fill(0,0,V*O);for(var k=(V-L)/2,K=0;K-1);K++,g[K]=k,T[K]=he,T[K+1]=Y}for(k=0,K=0;kw)return w;for(;RB?R=b:w=b,b=(w-R)*.5+R}return b},Y.prototype.solve=function(_,v){return this.sampleCurveY(this.solveCurveX(_,v))}},38929:function(gt,Y,_){gt.exports.VectorTile=_(22779),_(66024),_(59701)},22779:function(gt,Y,_){"use strict";var v=_(59701);gt.exports=R;function R(b,B){this.layers=b.readFields(w,{},B)}function w(b,B,V){if(b===3){var O=new v(V,V.readVarint()+V.pos);O.length&&(B[O.name]=O)}}},66024:function(gt,Y,_){"use strict";var v=_(75550);gt.exports=R;function R(O,L,S,g,T){this.properties={},this.extent=S,this.type=0,this._pbf=O,this._geometry=-1,this._keys=g,this._values=T,O.readFields(w,this,L)}function w(O,L,S){O==1?L.id=S.readVarint():O==2?b(S,L):O==3?L.type=S.readVarint():O==4&&(L._geometry=S.pos)}function b(O,L){for(var S=O.readVarint()+O.pos;O.pos>3}if(g--,S===1||S===2)T+=O.readSVarint(),k+=O.readSVarint(),S===1&&(he&&K.push(he),he=[]),he.push(new v(T,k));else if(S===7)he&&he.push(he[0].clone());else throw new Error("unknown command "+S)}return he&&K.push(he),K},R.prototype.bbox=function(){var O=this._pbf;O.pos=this._geometry;for(var L=O.readVarint()+O.pos,S=1,g=0,T=0,k=0,K=1/0,he=-1/0,ae=1/0,fe=-1/0;O.pos>3}if(g--,S===1||S===2)T+=O.readSVarint(),k+=O.readSVarint(),The&&(he=T),kfe&&(fe=k);else if(S!==7)throw new Error("unknown command "+S)}return[K,ae,he,fe]},R.prototype.toGeoJSON=function(O,L,S){var g=this.extent*Math.pow(2,S),T=this.extent*O,k=this.extent*L,K=this.loadGeometry(),he=R.types[this.type],ae,fe;function _e(Xe){for(var We=0;We>3;V=L===1?B.readString():L===2?B.readFloat():L===3?B.readDouble():L===4?B.readVarint64():L===5?B.readVarint():L===6?B.readSVarint():L===7?B.readBoolean():null}return V}R.prototype.feature=function(B){if(B<0||B>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[B];var V=this._pbf.readVarint()+this._pbf.pos;return new v(this._pbf,V,this.extent,this._keys,this._values)}},9705:function(gt,Y,_){"use strict";var v;v={value:!0};var R=_(31540);function w(b){var B=[1/0,1/0,-1/0,-1/0];return R.coordEach(b,function(V){B[0]>V[0]&&(B[0]=V[0]),B[1]>V[1]&&(B[1]=V[1]),B[2]=0))throw new Error("precision must be a positive number");var $e=Math.pow(10,ke||0);return Math.round(De*$e)/$e}Y.round=K;function he(De,ke){ke===void 0&&(ke="kilometers");var $e=Y.factors[ke];if(!$e)throw new Error(ke+" units is invalid");return De*$e}Y.radiansToLength=he;function ae(De,ke){ke===void 0&&(ke="kilometers");var $e=Y.factors[ke];if(!$e)throw new Error(ke+" units is invalid");return De/$e}Y.lengthToRadians=ae;function fe(De,ke){return be(ae(De,ke))}Y.lengthToDegrees=fe;function _e(De){var ke=De%360;return ke<0&&(ke+=360),ke}Y.bearingToAzimuth=_e;function be(De){var ke=De%(2*Math.PI);return ke*180/Math.PI}Y.radiansToDegrees=be;function xe(De){var ke=De%360;return ke*Math.PI/180}Y.degreesToRadians=xe;function Xe(De,ke,$e){if(ke===void 0&&(ke="kilometers"),$e===void 0&&($e="kilometers"),!(De>=0))throw new Error("length must be a positive number");return he(ae(De,ke),$e)}Y.convertLength=Xe;function We(De,ke,$e){if(ke===void 0&&(ke="meters"),$e===void 0&&($e="kilometers"),!(De>=0))throw new Error("area must be a positive number");var Te=Y.areaFactors[ke];if(!Te)throw new Error("invalid original units");var tt=Y.areaFactors[$e];if(!tt)throw new Error("invalid final units");return De/Te*tt}Y.convertArea=We;function dt(De){return!isNaN(De)&&De!==null&&!Array.isArray(De)}Y.isNumber=dt;function Me(De){return!!De&&De.constructor===Object}Y.isObject=Me;function Se(De){if(!De)throw new Error("bbox is required");if(!Array.isArray(De))throw new Error("bbox must be an Array");if(De.length!==4&&De.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");De.forEach(function(ke){if(!dt(ke))throw new Error("bbox must only contain numbers")})}Y.validateBBox=Se;function ze(De){if(!De)throw new Error("id is required");if(["string","number"].indexOf(typeof De)===-1)throw new Error("id must be a number or a string")}Y.validateId=ze},31540:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var v=_(84102);function R(xe,Xe,We){if(xe!==null)for(var dt,Me,Se,ze,De,ke,$e,Te=0,tt=0,Oe,Xt=xe.type,Ft=Xt==="FeatureCollection",ot=Xt==="Feature",xt=Ft?xe.features.length:1,ut=0;utke||Ft>$e||ot>Te){De=tt,ke=dt,$e=Ft,Te=ot,Se=0;return}var xt=v.lineString([De,tt],We.properties);if(Xe(xt,dt,Me,ot,Se)===!1)return!1;Se++,De=tt})===!1)return!1}}})}function he(xe,Xe,We){var dt=We,Me=!1;return K(xe,function(Se,ze,De,ke,$e){Me===!1&&We===void 0?dt=Se:dt=Xe(dt,Se,ze,De,ke,$e),Me=!0}),dt}function ae(xe,Xe){if(!xe)throw new Error("geojson is required");T(xe,function(We,dt,Me){if(We.geometry!==null){var Se=We.geometry.type,ze=We.geometry.coordinates;switch(Se){case"LineString":if(Xe(We,dt,Me,0,0)===!1)return!1;break;case"Polygon":for(var De=0;De=fe+ke||fe?new java.lang.String(de,fe,ke)+"":de}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(de){W.prototype[de]=function(){return null}});function he(de,fe){de.currentElement?de.currentElement.appendChild(fe):de.doc.appendChild(fe)}y=W,y=f,y=S},41146:function(nt,V,m){var y=m(72167),A=y.find,b=y.NAMESPACE;function z(Bt){return Bt!==""}function k(Bt){return Bt?Bt.split(/[\t\n\f\r ]+/).filter(z):[]}function N(Bt,pn){return Bt.hasOwnProperty(pn)||(Bt[pn]=!0),Bt}function w(Bt){if(!Bt)return[];var pn=k(Bt);return Object.keys(pn.reduce(N,{}))}function I(Bt){return function(pn){return Bt&&Bt.indexOf(pn)!==-1}}function C(Bt,pn){for(var br in Bt)Object.prototype.hasOwnProperty.call(Bt,br)&&(pn[br]=Bt[br])}function f(Bt,pn){var br=Bt.prototype;if(!(br instanceof pn)){let vi=function(){};var Jr=vi;vi.prototype=pn.prototype,vi=new vi,C(br,vi),Bt.prototype=br=vi}br.constructor!=Bt&&(typeof Bt!="function"&&console.error("unknown Class:"+Bt),br.constructor=Bt)}var S={},P=S.ELEMENT_NODE=1,W=S.ATTRIBUTE_NODE=2,te=S.TEXT_NODE=3,q=S.CDATA_SECTION_NODE=4,ie=S.ENTITY_REFERENCE_NODE=5,he=S.ENTITY_NODE=6,de=S.PROCESSING_INSTRUCTION_NODE=7,fe=S.COMMENT_NODE=8,ke=S.DOCUMENT_NODE=9,Ie=S.DOCUMENT_TYPE_NODE=10,Be=S.DOCUMENT_FRAGMENT_NODE=11,be=S.NOTATION_NODE=12,me={},ye={},_e=me.INDEX_SIZE_ERR=(ye[1]="Index size error",1),Ce=me.DOMSTRING_SIZE_ERR=(ye[2]="DOMString size error",2),De=me.HIERARCHY_REQUEST_ERR=(ye[3]="Hierarchy request error",3),ge=me.WRONG_DOCUMENT_ERR=(ye[4]="Wrong document",4),je=me.INVALID_CHARACTER_ERR=(ye[5]="Invalid character",5),we=me.NO_DATA_ALLOWED_ERR=(ye[6]="No data allowed",6),Pt=me.NO_MODIFICATION_ALLOWED_ERR=(ye[7]="No modification allowed",7),dt=me.NOT_FOUND_ERR=(ye[8]="Not found",8),He=me.NOT_SUPPORTED_ERR=(ye[9]="Not supported",9),bt=me.INUSE_ATTRIBUTE_ERR=(ye[10]="Attribute in use",10),ft=me.INVALID_STATE_ERR=(ye[11]="Invalid state",11),$t=me.SYNTAX_ERR=(ye[12]="Syntax error",12),vt=me.INVALID_MODIFICATION_ERR=(ye[13]="Invalid modification",13),yn=me.NAMESPACE_ERR=(ye[14]="Invalid namespace",14),Bn=me.INVALID_ACCESS_ERR=(ye[15]="Invalid access",15);function Lr(Bt,pn){if(pn instanceof Error)var br=pn;else br=this,Error.call(this,ye[Bt]),this.message=ye[Bt],Error.captureStackTrace&&Error.captureStackTrace(this,Lr);return br.code=Bt,pn&&(this.message=this.message+": "+pn),br}Lr.prototype=Error.prototype,C(me,Lr);function ii(){}ii.prototype={length:0,item:function(Bt){return Bt>=0&&Bt=0){for(var vi=pn.length-1;Jr0},lookupPrefix:function(Bt){for(var pn=this;pn;){var br=pn._nsMap;if(br){for(var Jr in br)if(Object.prototype.hasOwnProperty.call(br,Jr)&&br[Jr]===Bt)return Jr}pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},lookupNamespaceURI:function(Bt){for(var pn=this;pn;){var br=pn._nsMap;if(br&&Object.prototype.hasOwnProperty.call(br,Bt))return br[Bt];pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},isDefaultNamespace:function(Bt){var pn=this.lookupPrefix(Bt);return pn==null}};function ho(Bt){return Bt=="<"&&"<"||Bt==">"&&">"||Bt=="&"&&"&"||Bt=='"'&&"""||"&#"+Bt.charCodeAt()+";"}C(S,So),C(S,So.prototype);function go(Bt,pn){if(pn(Bt))return!0;if(Bt=Bt.firstChild)do if(go(Bt,pn))return!0;while(Bt=Bt.nextSibling)}function ji(){this.ownerDocument=this}function No(Bt,pn,br){Bt&&Bt._inc++;var Jr=br.namespaceURI;Jr===b.XMLNS&&(pn._nsMap[br.prefix?br.localName:""]=br.value)}function dn(Bt,pn,br,Jr){Bt&&Bt._inc++;var vi=br.namespaceURI;vi===b.XMLNS&&delete pn._nsMap[br.prefix?br.localName:""]}function Ve(Bt,pn,br){if(Bt&&Bt._inc){Bt._inc++;var Jr=pn.childNodes;if(br)Jr[Jr.length++]=br;else{for(var vi=pn.firstChild,Di=0;vi;)Jr[Di++]=vi,vi=vi.nextSibling;Jr.length=Di,delete Jr[Jr.length]}}}function yt(Bt,pn){var br=pn.previousSibling,Jr=pn.nextSibling;return br?br.nextSibling=Jr:Bt.firstChild=Jr,Jr?Jr.previousSibling=br:Bt.lastChild=br,pn.parentNode=null,pn.previousSibling=null,pn.nextSibling=null,Ve(Bt.ownerDocument,Bt),pn}function Ct(Bt){return Bt&&(Bt.nodeType===So.DOCUMENT_NODE||Bt.nodeType===So.DOCUMENT_FRAGMENT_NODE||Bt.nodeType===So.ELEMENT_NODE)}function Wt(Bt){return Bt&&(Mt(Bt)||Tt(Bt)||sn(Bt)||Bt.nodeType===So.DOCUMENT_FRAGMENT_NODE||Bt.nodeType===So.COMMENT_NODE||Bt.nodeType===So.PROCESSING_INSTRUCTION_NODE)}function sn(Bt){return Bt&&Bt.nodeType===So.DOCUMENT_TYPE_NODE}function Mt(Bt){return Bt&&Bt.nodeType===So.ELEMENT_NODE}function Tt(Bt){return Bt&&Bt.nodeType===So.TEXT_NODE}function xt(Bt,pn){var br=Bt.childNodes||[];if(A(br,Mt)||sn(pn))return!1;var Jr=A(br,sn);return!(pn&&Jr&&br.indexOf(Jr)>br.indexOf(pn))}function Ht(Bt,pn){var br=Bt.childNodes||[];function Jr(Di){return Mt(Di)&&Di!==pn}if(A(br,Jr))return!1;var vi=A(br,sn);return!(pn&&vi&&br.indexOf(vi)>br.indexOf(pn))}function Vn(Bt,pn,br){if(!Ct(Bt))throw new Lr(De,"Unexpected parent node type "+Bt.nodeType);if(br&&br.parentNode!==Bt)throw new Lr(dt,"child not in parent");if(!Wt(pn)||sn(pn)&&Bt.nodeType!==So.DOCUMENT_NODE)throw new Lr(De,"Unexpected node type "+pn.nodeType+" for parent node type "+Bt.nodeType)}function en(Bt,pn,br){var Jr=Bt.childNodes||[],vi=pn.childNodes||[];if(pn.nodeType===So.DOCUMENT_FRAGMENT_NODE){var Di=vi.filter(Mt);if(Di.length>1||A(vi,Tt))throw new Lr(De,"More than one element or text in fragment");if(Di.length===1&&!xt(Bt,br))throw new Lr(De,"Element in fragment can not be inserted before doctype")}if(Mt(pn)&&!xt(Bt,br))throw new Lr(De,"Only one element can be added and only after doctype");if(sn(pn)){if(A(Jr,sn))throw new Lr(De,"Only one doctype is allowed");var co=A(Jr,Mt);if(br&&Jr.indexOf(co)1||A(vi,Tt))throw new Lr(De,"More than one element or text in fragment");if(Di.length===1&&!Ht(Bt,br))throw new Lr(De,"Element in fragment can not be inserted before doctype")}if(Mt(pn)&&!Ht(Bt,br))throw new Lr(De,"Only one element can be added and only after doctype");if(sn(pn)){let oi=function(Zi){return sn(Zi)&&Zi!==br};var Qr=oi;if(A(Jr,oi))throw new Lr(De,"Only one doctype is allowed");var co=A(Jr,Mt);if(br&&Jr.indexOf(co)0&&go(br.documentElement,function(vi){if(vi!==br&&vi.nodeType===P){var Di=vi.getAttribute("class");if(Di){var co=Bt===Di;if(!co){var Qr=w(Di);co=pn.every(I(Qr))}co&&Jr.push(vi)}}}),Jr})},createElement:function(Bt){var pn=new si;pn.ownerDocument=this,pn.nodeName=Bt,pn.tagName=Bt,pn.localName=Bt,pn.childNodes=new ii;var br=pn.attributes=new To;return br._ownerElement=pn,pn},createDocumentFragment:function(){var Bt=new Kn;return Bt.ownerDocument=this,Bt.childNodes=new ii,Bt},createTextNode:function(Bt){var pn=new _n;return pn.ownerDocument=this,pn.appendData(Bt),pn},createComment:function(Bt){var pn=new Vr;return pn.ownerDocument=this,pn.appendData(Bt),pn},createCDATASection:function(Bt){var pn=new qr;return pn.ownerDocument=this,pn.appendData(Bt),pn},createProcessingInstruction:function(Bt,pn){var br=new Or;return br.ownerDocument=this,br.tagName=br.nodeName=br.target=Bt,br.nodeValue=br.data=pn,br},createAttribute:function(Bt){var pn=new uo;return pn.ownerDocument=this,pn.name=Bt,pn.nodeName=Bt,pn.localName=Bt,pn.specified=!0,pn},createEntityReference:function(Bt){var pn=new zn;return pn.ownerDocument=this,pn.nodeName=Bt,pn},createElementNS:function(Bt,pn){var br=new si,Jr=pn.split(":"),vi=br.attributes=new To;return br.childNodes=new ii,br.ownerDocument=this,br.nodeName=pn,br.tagName=pn,br.namespaceURI=Bt,Jr.length==2?(br.prefix=Jr[0],br.localName=Jr[1]):br.localName=pn,vi._ownerElement=br,br},createAttributeNS:function(Bt,pn){var br=new uo,Jr=pn.split(":");return br.ownerDocument=this,br.nodeName=pn,br.name=pn,br.namespaceURI=Bt,br.specified=!0,Jr.length==2?(br.prefix=Jr[0],br.localName=Jr[1]):br.localName=pn,br}},f(ji,So);function si(){this._nsMap={}}si.prototype={nodeType:P,hasAttribute:function(Bt){return this.getAttributeNode(Bt)!=null},getAttribute:function(Bt){var pn=this.getAttributeNode(Bt);return pn&&pn.value||""},getAttributeNode:function(Bt){return this.attributes.getNamedItem(Bt)},setAttribute:function(Bt,pn){var br=this.ownerDocument.createAttribute(Bt);br.value=br.nodeValue=""+pn,this.setAttributeNode(br)},removeAttribute:function(Bt){var pn=this.getAttributeNode(Bt);pn&&this.removeAttributeNode(pn)},appendChild:function(Bt){return Bt.nodeType===Be?this.insertBefore(Bt,null):ri(this,Bt)},setAttributeNode:function(Bt){return this.attributes.setNamedItem(Bt)},setAttributeNodeNS:function(Bt){return this.attributes.setNamedItemNS(Bt)},removeAttributeNode:function(Bt){return this.attributes.removeNamedItem(Bt.nodeName)},removeAttributeNS:function(Bt,pn){var br=this.getAttributeNodeNS(Bt,pn);br&&this.removeAttributeNode(br)},hasAttributeNS:function(Bt,pn){return this.getAttributeNodeNS(Bt,pn)!=null},getAttributeNS:function(Bt,pn){var br=this.getAttributeNodeNS(Bt,pn);return br&&br.value||""},setAttributeNS:function(Bt,pn,br){var Jr=this.ownerDocument.createAttributeNS(Bt,pn);Jr.value=Jr.nodeValue=""+br,this.setAttributeNode(Jr)},getAttributeNodeNS:function(Bt,pn){return this.attributes.getNamedItemNS(Bt,pn)},getElementsByTagName:function(Bt){return new gi(this,function(pn){var br=[];return go(pn,function(Jr){Jr!==pn&&Jr.nodeType==P&&(Bt==="*"||Jr.tagName==Bt)&&br.push(Jr)}),br})},getElementsByTagNameNS:function(Bt,pn){return new gi(this,function(br){var Jr=[];return go(br,function(vi){vi!==br&&vi.nodeType===P&&(Bt==="*"||vi.namespaceURI===Bt)&&(pn==="*"||vi.localName==pn)&&Jr.push(vi)}),Jr})}},ji.prototype.getElementsByTagName=si.prototype.getElementsByTagName,ji.prototype.getElementsByTagNameNS=si.prototype.getElementsByTagNameNS,f(si,So);function uo(){}uo.prototype.nodeType=W,f(uo,So);function Qo(){}Qo.prototype={data:"",substringData:function(Bt,pn){return this.data.substring(Bt,Bt+pn)},appendData:function(Bt){Bt=this.data+Bt,this.nodeValue=this.data=Bt,this.length=Bt.length},insertData:function(Bt,pn){this.replaceData(Bt,0,pn)},appendChild:function(Bt){throw new Error(ye[De])},deleteData:function(Bt,pn){this.replaceData(Bt,pn,"")},replaceData:function(Bt,pn,br){var Jr=this.data.substring(0,Bt),vi=this.data.substring(Bt+pn);br=Jr+br+vi,this.nodeValue=this.data=br,this.length=br.length}},f(Qo,So);function _n(){}_n.prototype={nodeName:"#text",nodeType:te,splitText:function(Bt){var pn=this.data,br=pn.substring(Bt);pn=pn.substring(0,Bt),this.data=this.nodeValue=pn,this.length=pn.length;var Jr=this.ownerDocument.createTextNode(br);return this.parentNode&&this.parentNode.insertBefore(Jr,this.nextSibling),Jr}},f(_n,Qo);function Vr(){}Vr.prototype={nodeName:"#comment",nodeType:fe},f(Vr,Qo);function qr(){}qr.prototype={nodeName:"#cdata-section",nodeType:q},f(qr,Qo);function Ui(){}Ui.prototype.nodeType=Ie,f(Ui,So);function xo(){}xo.prototype.nodeType=be,f(xo,So);function Us(){}Us.prototype.nodeType=he,f(Us,So);function zn(){}zn.prototype.nodeType=ie,f(zn,So);function Kn(){}Kn.prototype.nodeName="#document-fragment",Kn.prototype.nodeType=Be,f(Kn,So);function Or(){}Or.prototype.nodeType=de,f(Or,So);function mi(){}mi.prototype.serializeToString=function(Bt,pn,br){return Er.call(Bt,pn,br)},So.prototype.toString=Er;function Er(Bt,pn){var br=[],Jr=this.nodeType==9&&this.documentElement||this,vi=Jr.prefix,Di=Jr.namespaceURI;if(Di&&vi==null){var vi=Jr.lookupPrefix(Di);if(vi==null)var co=[{namespace:Di,prefix:null}]}return rn(this,br,Bt,pn,co),br.join("")}function ti(Bt,pn,br){var Jr=Bt.prefix||"",vi=Bt.namespaceURI;if(!vi||Jr==="xml"&&vi===b.XML||vi===b.XMLNS)return!1;for(var Di=br.length;Di--;){var co=br[Di];if(co.prefix===Jr)return co.namespace!==vi}return!0}function di(Bt,pn,br){Bt.push(" ",pn,'="',br.replace(/[<>&"\t\n\r]/g,ho),'"')}function rn(Bt,pn,br,Jr,vi){if(vi||(vi=[]),Jr)if(Bt=Jr(Bt),Bt){if(typeof Bt=="string"){pn.push(Bt);return}}else return;switch(Bt.nodeType){case P:var Di=Bt.attributes,co=Di.length,wi=Bt.firstChild,Qr=Bt.tagName;br=b.isHTML(Bt.namespaceURI)||br;var oi=Qr;if(!br&&!Bt.prefix&&Bt.namespaceURI){for(var Zi,Ar=0;Ar=0;tn--){var Gn=vi[tn];if(Gn.prefix===""&&Gn.namespace===Bt.namespaceURI){Zi=Gn.namespace;break}}if(Zi!==Bt.namespaceURI)for(var tn=vi.length-1;tn>=0;tn--){var Gn=vi[tn];if(Gn.namespace===Bt.namespaceURI){Gn.prefix&&(oi=Gn.prefix+":"+Qr);break}}}pn.push("<",oi);for(var Ei=0;Ei"),br&&/^script$/i.test(Qr))for(;wi;)wi.data?pn.push(wi.data):rn(wi,pn,br,Jr,vi.slice()),wi=wi.nextSibling;else for(;wi;)rn(wi,pn,br,Jr,vi.slice()),wi=wi.nextSibling;pn.push("")}else pn.push("/>");return;case ke:case Be:for(var wi=Bt.firstChild;wi;)rn(wi,pn,br,Jr,vi.slice()),wi=wi.nextSibling;return;case W:return di(pn,Bt.name,Bt.value);case te:return pn.push(Bt.data.replace(/[<&>]/g,ho));case q:return pn.push("");case fe:return pn.push("");case Ie:var Mi=Bt.publicId,Fr=Bt.systemId;if(pn.push("");else if(Fr&&Fr!=".")pn.push(" SYSTEM ",Fr,">");else{var qn=Bt.internalSubset;qn&&pn.push(" [",qn,"]"),pn.push(">")}return;case de:return pn.push("");case ie:return pn.push("&",Bt.nodeName,";");default:pn.push("??",Bt.nodeName)}}function Qn(Bt,pn,br){var Jr;switch(pn.nodeType){case P:Jr=pn.cloneNode(!1),Jr.ownerDocument=Bt;case Be:break;case W:br=!0;break}if(Jr||(Jr=pn.cloneNode(!1)),Jr.ownerDocument=Bt,Jr.parentNode=null,br)for(var vi=pn.firstChild;vi;)Jr.appendChild(Qn(Bt,vi,br)),vi=vi.nextSibling;return Jr}function Xr(Bt,pn,br){var Jr=new pn.constructor;for(var vi in pn)if(Object.prototype.hasOwnProperty.call(pn,vi)){var Di=pn[vi];typeof Di!="object"&&Di!=Jr[vi]&&(Jr[vi]=Di)}switch(pn.childNodes&&(Jr.childNodes=new ii),Jr.ownerDocument=Bt,Jr.nodeType){case P:var co=pn.attributes,Qr=Jr.attributes=new To,oi=co.length;Qr._ownerElement=Jr;for(var Zi=0;Zi",lt:"<",quot:'"'}),V.HTML_ENTITIES=y({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),V.entityMap=V.HTML_ENTITIES},3969:function(nt,V,m){var y,A=m(41146);y=A.DOMImplementation,V.B=A.XMLSerializer,m(86129)},76925:function(nt,V,m){var y=m(72167).NAMESPACE,A=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=new RegExp("[\\-\\.0-9"+A.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),z=new RegExp("^"+A.source+b.source+"*(?::"+A.source+b.source+"*)?$"),k=0,N=1,w=2,I=3,C=4,f=5,S=6,P=7;function W(_e,Ce){this.message=_e,this.locator=Ce,Error.captureStackTrace&&Error.captureStackTrace(this,W)}W.prototype=new Error,W.prototype.name=W.name;function te(){}te.prototype={parse:function(_e,Ce,De){var ge=this.domBuilder;ge.startDocument(),Ie(Ce,Ce={}),q(_e,Ce,De,ge,this.errorHandler),ge.endDocument()}};function q(_e,Ce,De,ge,je){function we(Ct){if(Ct>65535){Ct-=65536;var Wt=55296+(Ct>>10),sn=56320+(Ct&1023);return String.fromCharCode(Wt,sn)}else return String.fromCharCode(Ct)}function Pt(Ct){var Wt=Ct.slice(1,-1);return Object.hasOwnProperty.call(De,Wt)?De[Wt]:Wt.charAt(0)==="#"?we(parseInt(Wt.substr(1).replace("x","0x"))):(je.error("entity not found:"+Ct),Ct)}function dt(Ct){if(Ct>Lr){var Wt=_e.substring(Lr,Ct).replace(/&#?\w+;/g,Pt);vt&&He(Lr),ge.characters(Wt,0,Ct-Lr),Lr=Ct}}function He(Ct,Wt){for(;Ct>=ft&&(Wt=$t.exec(_e));)bt=Wt.index,ft=bt+Wt[0].length,vt.lineNumber++;vt.columnNumber=Ct-bt+1}for(var bt=0,ft=0,$t=/.*(?:\r\n?|\n)|.*$/g,vt=ge.locator,yn=[{currentNSMap:Ce}],Bn={},Lr=0;;){try{var ii=_e.indexOf("<",Lr);if(ii<0){if(!_e.substr(Lr).match(/^\s*$/)){var gi=ge.doc,no=gi.createTextNode(_e.substr(Lr));gi.appendChild(no),ge.currentElement=no}return}switch(ii>Lr&&dt(ii),_e.charAt(ii+1)){case"/":var ji=_e.indexOf(">",ii+3),To=_e.substring(ii+2,ji).replace(/[ \t\n\r]+$/g,""),_r=yn.pop();ji<0?(To=_e.substring(ii+2).replace(/[\s<].*/,""),je.error("end tag name: "+To+" is not complete:"+_r.tagName),ji=ii+1+To.length):To.match(/\sLr?Lr=ji:dt(Math.max(ii,Lr)+1)}}function ie(_e,Ce){return Ce.lineNumber=_e.lineNumber,Ce.columnNumber=_e.columnNumber,Ce}function he(_e,Ce,De,ge,je,we){function Pt(yn,Bn,Lr){De.attributeNames.hasOwnProperty(yn)&&we.fatalError("Attribute "+yn+" redefined"),De.addValue(yn,Bn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,je),Lr)}for(var dt,He,bt=++Ce,ft=k;;){var $t=_e.charAt(bt);switch($t){case"=":if(ft===N)dt=_e.slice(Ce,bt),ft=I;else if(ft===w)ft=I;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ft===I||ft===N)if(ft===N&&(we.warning('attribute value must after "="'),dt=_e.slice(Ce,bt)),Ce=bt+1,bt=_e.indexOf($t,Ce),bt>0)He=_e.slice(Ce,bt),Pt(dt,He,Ce-1),ft=f;else throw new Error("attribute value no end '"+$t+"' match");else if(ft==C)He=_e.slice(Ce,bt),Pt(dt,He,Ce),we.warning('attribute "'+dt+'" missed start quot('+$t+")!!"),Ce=bt+1,ft=f;else throw new Error('attribute value must after "="');break;case"/":switch(ft){case k:De.setTagName(_e.slice(Ce,bt));case f:case S:case P:ft=P,De.closed=!0;case C:case N:break;case w:De.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return we.error("unexpected end of input"),ft==k&&De.setTagName(_e.slice(Ce,bt)),bt;case">":switch(ft){case k:De.setTagName(_e.slice(Ce,bt));case f:case S:case P:break;case C:case N:He=_e.slice(Ce,bt),He.slice(-1)==="/"&&(De.closed=!0,He=He.slice(0,-1));case w:ft===w&&(He=dt),ft==C?(we.warning('attribute "'+He+'" missed quot(")!'),Pt(dt,He,Ce)):((!y.isHTML(ge[""])||!He.match(/^(?:disabled|checked|selected)$/i))&&we.warning('attribute "'+He+'" missed value!! "'+He+'" instead!!'),Pt(He,He,Ce));break;case I:throw new Error("attribute value missed!!")}return bt;case"\x80":$t=" ";default:if($t<=" ")switch(ft){case k:De.setTagName(_e.slice(Ce,bt)),ft=S;break;case N:dt=_e.slice(Ce,bt),ft=w;break;case C:var He=_e.slice(Ce,bt);we.warning('attribute "'+He+'" missed quot(")!!'),Pt(dt,He,Ce);case f:ft=S;break}else switch(ft){case w:var vt=De.tagName;(!y.isHTML(ge[""])||!dt.match(/^(?:disabled|checked|selected)$/i))&&we.warning('attribute "'+dt+'" missed value!! "'+dt+'" instead2!!'),Pt(dt,dt,Ce),Ce=bt,ft=N;break;case f:we.warning('attribute space is required"'+dt+'"!!');case S:ft=N,Ce=bt;break;case I:ft=C,Ce=bt;break;case P:throw new Error("elements closed character '/' and '>' must be connected to")}}bt++}}function de(_e,Ce,De){for(var ge=_e.tagName,je=null,$t=_e.length;$t--;){var we=_e[$t],Pt=we.qName,dt=we.value,vt=Pt.indexOf(":");if(vt>0)var He=we.prefix=Pt.slice(0,vt),bt=Pt.slice(vt+1),ft=He==="xmlns"&&bt;else bt=Pt,He=null,ft=Pt==="xmlns"&&"";we.localName=bt,ft!==!1&&(je==null&&(je={},Ie(De,De={})),De[ft]=je[ft]=dt,we.uri=y.XMLNS,Ce.startPrefixMapping(ft,dt))}for(var $t=_e.length;$t--;){we=_e[$t];var He=we.prefix;He&&(He==="xml"&&(we.uri=y.XML),He!=="xmlns"&&(we.uri=De[He||""]))}var vt=ge.indexOf(":");vt>0?(He=_e.prefix=ge.slice(0,vt),bt=_e.localName=ge.slice(vt+1)):(He=null,bt=_e.localName=ge);var yn=_e.uri=De[He||""];if(Ce.startElement(yn,bt,ge,_e),_e.closed){if(Ce.endElement(yn,bt,ge),je)for(He in je)Object.prototype.hasOwnProperty.call(je,He)&&Ce.endPrefixMapping(He)}else return _e.currentNSMap=De,_e.localNSMap=je,!0}function fe(_e,Ce,De,ge,je){if(/^(?:script|textarea)$/i.test(De)){var we=_e.indexOf("",Ce),Pt=_e.substring(Ce+1,we);if(/[&<]/.test(Pt))return/^script$/i.test(De)?(je.characters(Pt,0,Pt.length),we):(Pt=Pt.replace(/&#?\w+;/g,ge),je.characters(Pt,0,Pt.length),we)}return Ce+1}function ke(_e,Ce,De,ge){var je=ge[De];return je==null&&(je=_e.lastIndexOf(""),je",Ce+4);return we>Ce?(De.comment(_e,Ce+4,we-Ce-4),we+3):(ge.error("Unclosed comment"),-1)}else return-1;default:if(_e.substr(Ce+3,6)=="CDATA["){var we=_e.indexOf("]]>",Ce+9);return De.startCDATA(),De.characters(_e,Ce+9,we-Ce-9),De.endCDATA(),we+3}var Pt=ye(_e,Ce),dt=Pt.length;if(dt>1&&/!doctype/i.test(Pt[0][0])){var He=Pt[1][0],bt=!1,ft=!1;dt>3&&(/^public$/i.test(Pt[2][0])?(bt=Pt[3][0],ft=dt>4&&Pt[4][0]):/^system$/i.test(Pt[2][0])&&(ft=Pt[3][0]));var $t=Pt[dt-1];return De.startDTD(He,bt,ft),De.endDTD(),$t.index+$t[0].length}}return-1}function be(_e,Ce,De){var ge=_e.indexOf("?>",Ce);if(ge){var je=_e.substring(Ce,ge).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(je){var we=je[0].length;return De.processingInstruction(je[1],je[2]),ge+2}else return-1}return-1}function me(){this.attributeNames={}}me.prototype={setTagName:function(_e){if(!z.test(_e))throw new Error("invalid tagName:"+_e);this.tagName=_e},addValue:function(_e,Ce,De){if(!z.test(_e))throw new Error("invalid attribute:"+_e);this.attributeNames[_e]=this.length,this[this.length++]={qName:_e,value:Ce,offset:De}},length:0,getLocalName:function(_e){return this[_e].localName},getLocator:function(_e){return this[_e].locator},getQName:function(_e){return this[_e].qName},getURI:function(_e){return this[_e].uri},getValue:function(_e){return this[_e].value}};function ye(_e,Ce){var De,ge=[],je=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(je.lastIndex=Ce,je.exec(_e);De=je.exec(_e);)if(ge.push(De),De[1])return ge}V.XMLReader=te,V.ParseError=W},2093:function(nt,V,m){"use strict";var y=m(97582),A=m(67294),b=m(92770);function z(N){return(0,b.mf)(N[Symbol.asyncIterator])}function k(N,w){(0,A.useEffect)(function(){var I=N(),C=!1;function f(){return(0,y.mG)(this,void 0,void 0,function(){var S;return(0,y.Jh)(this,function(P){switch(P.label){case 0:if(!z(I))return[3,4];P.label=1;case 1:return[4,I.next()];case 2:return S=P.sent(),S.done||C?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,I];case 5:P.sent(),P.label=6;case 6:return[2]}})})}return f(),function(){C=!0}},w)}V.Z=k},58580:function(nt,V,m){"use strict";var y=m(97582),A=m(67294),b=m(85980);function z(k,N){var w=(0,y.CR)((0,A.useState)(k),2),I=w[0],C=w[1],f=(0,b.Z)(function(){C(k)},N).run;return(0,A.useEffect)(function(){f()},[k]),I}V.Z=z},85980:function(nt,V,m){"use strict";var y=m(97582),A=m(23279),b=m.n(A),z=m(67294),k=m(3930),N=m(45210),w=m(92770),I=m(31663);function C(f,S){var P;I.Z&&((0,w.mf)(f)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof f)));var W=(0,k.Z)(f),te=(P=S==null?void 0:S.wait)!==null&&P!==void 0?P:1e3,q=(0,z.useMemo)(function(){return b()(function(){for(var ie=[],he=0;he{const{type:I,children:C,prefixCls:f,buttonProps:S,close:P,autoFocus:W,emitEvent:te,isSilent:q,quitOnNullishReturnValue:ie,actionFn:he}=w,de=A.useRef(!1),fe=A.useRef(null),[ke,Ie]=(0,y.Z)(!1),Be=function(){P==null||P.apply(void 0,arguments)};A.useEffect(()=>{let ye=null;return W&&(ye=setTimeout(()=>{var _e;(_e=fe.current)===null||_e===void 0||_e.focus()})),()=>{ye&&clearTimeout(ye)}},[]);const be=ye=>{k(ye)&&(Ie(!0),ye.then(function(){Ie(!1,!0),Be.apply(void 0,arguments),de.current=!1},_e=>{if(Ie(!1,!0),de.current=!1,!(q!=null&&q()))return Promise.reject(_e)}))},me=ye=>{if(de.current)return;if(de.current=!0,!he){Be();return}let _e;if(te){if(_e=he(ye),ie&&!k(_e)){de.current=!1,Be(ye);return}}else if(he.length)_e=he(P),de.current=!1;else if(_e=he(),!_e){Be();return}be(_e)};return A.createElement(b.ZP,Object.assign({},(0,z.nx)(I),{onClick:me,loading:ke,prefixCls:f},S,{ref:fe}),C)};V.Z=N},8745:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N},i:function(){return k}});var y=m(21770),A=m(67294),b=m(94740),z=m(53124);function k(w){return function(C){return A.createElement(b.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},A.createElement(w,Object.assign({},C)))}}function N(w,I,C,f){function S(P){const{prefixCls:W,style:te}=P,q=A.useRef(null),[ie,he]=A.useState(0),[de,fe]=A.useState(0),[ke,Ie]=(0,y.Z)(!1,{value:P.open}),{getPrefixCls:Be}=A.useContext(z.E_),be=Be(I||"select",W);A.useEffect(()=>{if(Ie(!0),typeof ResizeObserver!="undefined"){const ye=new ResizeObserver(Ce=>{const De=Ce[0].target;he(De.offsetHeight+8),fe(De.offsetWidth)}),_e=setInterval(()=>{var Ce;const De=C?`.${C(be)}`:`.${be}-dropdown`,ge=(Ce=q.current)===null||Ce===void 0?void 0:Ce.querySelector(De);ge&&(clearInterval(_e),ye.observe(ge))},10);return()=>{clearInterval(_e),ye.disconnect()}}},[]);let me=Object.assign(Object.assign({},P),{style:Object.assign(Object.assign({},te),{margin:0}),open:ke,visible:ke,getPopupContainer:()=>q.current});return f&&(me=f(me)),A.createElement("div",{ref:q,style:{paddingBottom:ie,position:"relative",minWidth:de}},A.createElement(w,Object.assign({},me)))}return k(S)}},81643:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});const y=A=>A?typeof A=="function"?A():A:null},69760:function(nt,V,m){"use strict";m.d(V,{Z:function(){return z}});var y=m(62208),A=m(67294);function b(k,N,w){return typeof k=="boolean"?k:N===void 0?!!w:N!==!1&&N!==null}function z(k,N,w){let I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:A.createElement(y.Z,null),C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!b(k,N,C))return[!1,null];const S=typeof N=="boolean"||N===void 0||N===null?I:N;return[!0,w?w(S):S]}},57838:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(67294);function A(){const[,b]=y.useReducer(z=>z+1,0);return b}},33603:function(nt,V,m){"use strict";m.d(V,{m:function(){return w}});const y=()=>({height:0,opacity:0}),A=I=>{const{scrollHeight:C}=I;return{height:C,opacity:1}},b=I=>({height:I?I.offsetHeight:0}),z=(I,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",k=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:y,onEnterStart:y,onAppearActive:A,onEnterActive:A,onLeaveStart:b,onLeaveActive:y,onAppearEnd:z,onEnterEnd:z,onLeaveEnd:z,motionDeadline:500}},N=null,w=(I,C,f)=>f!==void 0?f:`${I}-${C}`;V.Z=k},80636:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N}});var y=m(77786);function A(w,I,C,f){if(f===!1)return{adjustX:!1,adjustY:!1};const S=f&&typeof f=="object"?f:{},P={};switch(w){case"top":case"bottom":P.shiftX=I.dropdownArrowOffset*2+C,P.shiftY=!0,P.adjustY=!0;break;case"left":case"right":P.shiftY=I.dropdownArrowOffsetVertical*2+C,P.shiftX=!0,P.adjustX=!0;break}const W=Object.assign(Object.assign({},P),S);return W.shiftX||(W.adjustX=!0),W.shiftY||(W.adjustY=!0),W}const b={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},z={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},k=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function N(w){const{arrowWidth:I,autoAdjustOverflow:C,arrowPointAtCenter:f,offset:S,borderRadius:P,visibleFirst:W}=w,te=I/2,q={};return Object.keys(b).forEach(ie=>{const he=f&&z[ie]||b[ie],de=Object.assign(Object.assign({},he),{offset:[0,0],dynamicInset:!0});switch(q[ie]=de,k.has(ie)&&(de.autoArrow=!1),ie){case"top":case"topLeft":case"topRight":de.offset[1]=-te-S;break;case"bottom":case"bottomLeft":case"bottomRight":de.offset[1]=te+S;break;case"left":case"leftTop":case"leftBottom":de.offset[0]=-te-S;break;case"right":case"rightTop":case"rightBottom":de.offset[0]=te+S;break}const fe=(0,y.fS)({contentRadius:P,limitVerticalRadius:!0});if(f)switch(ie){case"topLeft":case"bottomLeft":de.offset[0]=-fe.dropdownArrowOffset-te;break;case"topRight":case"bottomRight":de.offset[0]=fe.dropdownArrowOffset+te;break;case"leftTop":case"rightTop":de.offset[1]=-fe.dropdownArrowOffset-te;break;case"leftBottom":case"rightBottom":de.offset[1]=fe.dropdownArrowOffset+te;break}de.overflow=A(ie,fe,I,C),W&&(de.htmlRegion="visibleFirst")}),q}},96159:function(nt,V,m){"use strict";var y;m.d(V,{M2:function(){return z},Tm:function(){return N},l$:function(){return b}});var A=m(67294);const{isValidElement:b}=y||(y=m.t(A,2));function z(w){return w&&b(w)&&w.type===A.Fragment}function k(w,I,C){return b(w)?A.cloneElement(w,typeof C=="function"?C(w.props||{}):C):I}function N(w,I){return k(w,w,I)}},74443:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return N},c4:function(){return b},m9:function(){return w}});var y=m(67294),A=m(25976);const b=["xxl","xl","lg","md","sm","xs"],z=I=>({xs:`(max-width: ${I.screenXSMax}px)`,sm:`(min-width: ${I.screenSM}px)`,md:`(min-width: ${I.screenMD}px)`,lg:`(min-width: ${I.screenLG}px)`,xl:`(min-width: ${I.screenXL}px)`,xxl:`(min-width: ${I.screenXXL}px)`}),k=I=>{const C=I,f=[].concat(b).reverse();return f.forEach((S,P)=>{const W=S.toUpperCase(),te=`screen${W}Min`,q=`screen${W}`;if(!(C[te]<=C[q]))throw new Error(`${te}<=${q} fails : !(${C[te]}<=${C[q]})`);if(P{const f=new Map;let S=-1,P={};return{matchHandlers:{},dispatch(W){return P=W,f.forEach(te=>te(P)),f.size>=1},subscribe(W){return f.size||this.register(),S+=1,f.set(S,W),W(P),S},unsubscribe(W){f.delete(W),f.size||this.unregister()},unregister(){Object.keys(C).forEach(W=>{const te=C[W],q=this.matchHandlers[te];q==null||q.mql.removeListener(q==null?void 0:q.listener)}),f.clear()},register(){Object.keys(C).forEach(W=>{const te=C[W],q=he=>{let{matches:de}=he;this.dispatch(Object.assign(Object.assign({},P),{[W]:de}))},ie=window.matchMedia(te);ie.addListener(q),this.matchHandlers[te]={mql:ie,listener:q},q(ie)})},responsiveMap:C}},[I])}const w=(I,C)=>{if(C&&typeof C=="object")for(let f=0;fw||N},27288:function(nt,V,m){"use strict";m.d(V,{G8:function(){return w},ln:function(){return I}});var y=m(67294),A=m(80334);function b(){}let z=null;function k(){z=null,rcResetWarned()}let N=null;const w=y.createContext({}),I=()=>{const f=()=>{};return f.deprecated=b,f};var C=null},45353:function(nt,V,m){"use strict";m.d(V,{Z:function(){return _e}});var y=m(94184),A=m.n(y),b=m(42550),z=m(5110),k=m(67294),N=m(53124),w=m(96159),I=m(67968);const C=Ce=>{const{componentCls:De,colorPrimary:ge}=Ce;return{[De]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${ge})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Ce.motionEaseOutCirc}`,`opacity 2s ${Ce.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Ce.motionEaseInOut}`,`opacity 0.35s ${Ce.motionEaseInOut}`].join(",")}}}}};var f=(0,I.Z)("Wave",Ce=>[C(Ce)]),S=m(56790),P=m(75164),W=m(82225),te=m(38135);function q(Ce){const De=(Ce||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return De&&De[1]&&De[2]&&De[3]?!(De[1]===De[2]&&De[2]===De[3]):!0}function ie(Ce){return Ce&&Ce!=="#fff"&&Ce!=="#ffffff"&&Ce!=="rgb(255, 255, 255)"&&Ce!=="rgba(255, 255, 255, 1)"&&q(Ce)&&!/rgba\((?:\d*, ){3}0\)/.test(Ce)&&Ce!=="transparent"}function he(Ce){const{borderTopColor:De,borderColor:ge,backgroundColor:je}=getComputedStyle(Ce);return ie(De)?De:ie(ge)?ge:ie(je)?je:null}var de=m(17415);function fe(Ce){return Number.isNaN(Ce)?0:Ce}const ke=Ce=>{const{className:De,target:ge,component:je}=Ce,we=k.useRef(null),[Pt,dt]=k.useState(null),[He,bt]=k.useState([]),[ft,$t]=k.useState(0),[vt,yn]=k.useState(0),[Bn,Lr]=k.useState(0),[ii,gi]=k.useState(0),[no,To]=k.useState(!1),_r={left:ft,top:vt,width:Bn,height:ii,borderRadius:He.map(ve=>`${ve}px`).join(" ")};Pt&&(_r["--wave-color"]=Pt);function Bo(){const ve=getComputedStyle(ge);dt(he(ge));const So=ve.position==="static",{borderLeftWidth:ho,borderTopWidth:go}=ve;$t(So?ge.offsetLeft:fe(-parseFloat(ho))),yn(So?ge.offsetTop:fe(-parseFloat(go))),Lr(ge.offsetWidth),gi(ge.offsetHeight);const{borderTopLeftRadius:ji,borderTopRightRadius:No,borderBottomLeftRadius:dn,borderBottomRightRadius:Ve}=ve;bt([ji,No,Ve,dn].map(yt=>fe(parseFloat(yt))))}if(k.useEffect(()=>{if(ge){const ve=(0,P.Z)(()=>{Bo(),To(!0)});let So;return typeof ResizeObserver!="undefined"&&(So=new ResizeObserver(Bo),So.observe(ge)),()=>{P.Z.cancel(ve),So==null||So.disconnect()}}},[]),!no)return null;const hs=(je==="Checkbox"||je==="Radio")&&(ge==null?void 0:ge.classList.contains(de.A));return k.createElement(W.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(ve,So)=>{var ho;if(So.deadline||So.propertyName==="opacity"){const go=(ho=we.current)===null||ho===void 0?void 0:ho.parentElement;(0,te.v)(go).then(()=>{go==null||go.remove()})}return!1}},ve=>{let{className:So}=ve;return k.createElement("div",{ref:we,className:A()(De,{"wave-quick":hs},So),style:_r})})};var Be=(Ce,De)=>{var ge;const{component:je}=De;if(je==="Checkbox"&&!(!((ge=Ce.querySelector("input"))===null||ge===void 0)&&ge.checked))return;const we=document.createElement("div");we.style.position="absolute",we.style.left="0px",we.style.top="0px",Ce==null||Ce.insertBefore(we,Ce==null?void 0:Ce.firstChild),(0,te.s)(k.createElement(ke,Object.assign({},De,{target:Ce})),we)},be=m(25976);function me(Ce,De,ge){const{wave:je}=k.useContext(N.E_),[,we,Pt]=(0,be.Z)(),dt=(0,S.zX)(ft=>{const $t=Ce.current;if(je!=null&&je.disabled||!$t)return;const vt=$t.querySelector(`.${de.A}`)||$t,{showEffect:yn}=je||{};(yn||Be)(vt,{className:De,token:we,component:ge,event:ft,hashId:Pt})}),He=k.useRef();return ft=>{P.Z.cancel(He.current),He.current=(0,P.Z)(()=>{dt(ft)})}}var _e=Ce=>{const{children:De,disabled:ge,component:je}=Ce,{getPrefixCls:we}=(0,k.useContext)(N.E_),Pt=(0,k.useRef)(null),dt=we("wave"),[,He]=f(dt),bt=me(Pt,A()(dt,He),je);if(k.useEffect(()=>{const $t=Pt.current;if(!$t||$t.nodeType!==1||ge)return;const vt=yn=>{!(0,z.Z)(yn.target)||!$t.getAttribute||$t.getAttribute("disabled")||$t.disabled||$t.className.includes("disabled")||$t.className.includes("-leave")||bt(yn)};return $t.addEventListener("click",vt,!0),()=>{$t.removeEventListener("click",vt,!0)}},[ge]),!k.isValidElement(De))return De!=null?De:null;const ft=(0,b.Yr)(De)?(0,b.sQ)(De.ref,Pt):Pt;return(0,w.Tm)(De,{ref:ft})}},17415:function(nt,V,m){"use strict";m.d(V,{A:function(){return y}});const y="ant-wave-target"},33671:function(nt,V,m){"use strict";m.d(V,{Te:function(){return w},aG:function(){return z},hU:function(){return C},nx:function(){return k}});var y=m(67294),A=m(96159);const b=/^[\u4e00-\u9fa5]{2}$/,z=b.test.bind(b);function k(W){return W==="danger"?{danger:!0}:{type:W}}function N(W){return typeof W=="string"}function w(W){return W==="text"||W==="link"}function I(W,te){if(W==null)return;const q=te?" ":"";return typeof W!="string"&&typeof W!="number"&&N(W.type)&&z(W.props.children)?(0,A.Tm)(W,{children:W.props.children.split("").join(q)}):N(W)?z(W)?y.createElement("span",null,W.split("").join(q)):y.createElement("span",null,W):(0,A.M2)(W)?y.createElement("span",null,W):W}function C(W,te){let q=!1;const ie=[];return y.Children.forEach(W,he=>{const de=typeof he,fe=de==="string"||de==="number";if(q&&fe){const ke=ie.length-1,Ie=ie[ke];ie[ke]=`${Ie}${he}`}else ie.push(he);q=fe}),y.Children.map(ie,he=>I(he,te))}const f=null,S=null,P=null},15867:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Vn}});var y=m(67294),A=m(94184),b=m.n(A),z=m(98423),k=m(42550),N=m(45353),w=m(53124),I=m(98866),C=m(98675),f=m(4173),S=m(25976),P=function(en,fr){var Kr={};for(var ri in en)Object.prototype.hasOwnProperty.call(en,ri)&&fr.indexOf(ri)<0&&(Kr[ri]=en[ri]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var si=0,ri=Object.getOwnPropertySymbols(en);si{const{getPrefixCls:fr,direction:Kr}=y.useContext(w.E_),{prefixCls:ri,size:si,className:uo}=en,Qo=P(en,["prefixCls","size","className"]),_n=fr("btn-group",ri),[,,Vr]=(0,S.Z)();let qr="";switch(si){case"large":qr="lg";break;case"small":qr="sm";break;case"middle":default:}const Ui=b()(_n,{[`${_n}-${qr}`]:qr,[`${_n}-rtl`]:Kr==="rtl"},uo,Vr);return y.createElement(W.Provider,{value:si},y.createElement("div",Object.assign({},Qo,{className:Ui})))},ie=m(33671),de=(0,y.forwardRef)((en,fr)=>{const{className:Kr,style:ri,children:si,prefixCls:uo}=en,Qo=b()(`${uo}-icon`,Kr);return y.createElement("span",{ref:fr,className:Qo,style:ri},si)}),fe=m(22508),ke=m(82225);const Ie=(0,y.forwardRef)((en,fr)=>{let{prefixCls:Kr,className:ri,style:si,iconClassName:uo}=en;const Qo=b()(`${Kr}-loading-icon`,ri);return y.createElement(de,{prefixCls:Kr,className:Qo,style:si,ref:fr},y.createElement(fe.Z,{className:uo}))}),Be=()=>({width:0,opacity:0,transform:"scale(0)"}),be=en=>({width:en.scrollWidth,opacity:1,transform:"scale(1)"});var ye=en=>{const{prefixCls:fr,loading:Kr,existIcon:ri,className:si,style:uo}=en,Qo=!!Kr;return ri?y.createElement(Ie,{prefixCls:fr,className:si,style:uo}):y.createElement(ke.ZP,{visible:Qo,motionName:`${fr}-loading-icon-motion`,motionLeave:Qo,removeOnLeave:!0,onAppearStart:Be,onAppearActive:be,onEnterStart:Be,onEnterActive:be,onLeaveStart:be,onLeaveActive:Be},(_n,Vr)=>{let{className:qr,style:Ui}=_n;return y.createElement(Ie,{prefixCls:fr,className:si,style:Object.assign(Object.assign({},uo),Ui),ref:Vr,iconClassName:qr})})},_e=m(14747),Ce=m(45503),De=m(67968);const ge=(en,fr)=>({[`> span, > ${en}`]:{"&:not(:last-child)":{[`&, & > ${en}`]:{"&:not(:disabled)":{borderInlineEndColor:fr}}},"&:not(:first-child)":{[`&, & > ${en}`]:{"&:not(:disabled)":{borderInlineStartColor:fr}}}}});var we=en=>{const{componentCls:fr,fontSize:Kr,lineWidth:ri,groupBorderColor:si,colorErrorHover:uo}=en;return{[`${fr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${fr}`]:{"&:not(:last-child)":{[`&, & > ${fr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-ri,[`&, & > ${fr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[fr]:{position:"relative",zIndex:1,[`&:hover, +`)}function T(be){this.options=be||{locator:{}}}T.prototype.parseFromString=function(be,xe){var Xe=this.options,We=new S,dt=Xe.domBuilder||new K,Me=Xe.errorHandler,Se=Xe.locator,ze=Xe.xmlns||{},De=/\/x?html?$/.test(xe),ke=De?b.HTML_ENTITIES:b.XML_ENTITIES;Se&&dt.setDocumentLocator(Se),We.errorHandler=k(Me,dt,Se),We.domBuilder=Xe.domBuilder||dt,De&&(ze[""]=O.HTML),ze.xml=ze.xml||O.XML;var $e=Xe.normalizeLineEndings||g;return be&&typeof be=="string"?We.parse($e(be),ze,ke):We.errorHandler.error("invalid doc source"),dt.doc};function k(be,xe,Xe){if(!be){if(xe instanceof K)return xe;be=xe}var We={},dt=be instanceof Function;Xe=Xe||{};function Me(Se){var ze=be[Se];!ze&&dt&&(ze=be.length==2?function(De){be(Se,De)}:be),We[Se]=ze&&function(De){ze("[xmldom "+Se+"] "+De+ae(Xe))}||function(){}}return Me("warning"),Me("error"),Me("fatalError"),We}function K(){this.cdata=!1}function he(be,xe){xe.lineNumber=be.lineNumber,xe.columnNumber=be.columnNumber}K.prototype={startDocument:function(){this.doc=new V().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(be,xe,Xe,We){var dt=this.doc,Me=dt.createElementNS(be,Xe||xe),Se=We.length;_e(this,Me),this.currentElement=Me,this.locator&&he(this.locator,Me);for(var ze=0;ze=xe+Xe||xe?new java.lang.String(be,xe,Xe)+"":be}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(be){K.prototype[be]=function(){return null}});function _e(be,xe){be.currentElement?be.currentElement.appendChild(xe):be.doc.appendChild(xe)}v=K,v=g,v=T},41146:function(gt,Y,_){var v=_(72167),R=v.find,w=v.NAMESPACE;function b(Qt){return Qt!==""}function B(Qt){return Qt?Qt.split(/[\t\n\f\r ]+/).filter(b):[]}function V(Qt,xn){return Qt.hasOwnProperty(xn)||(Qt[xn]=!0),Qt}function O(Qt){if(!Qt)return[];var xn=B(Qt);return Object.keys(xn.reduce(V,{}))}function L(Qt){return function(xn){return Qt&&Qt.indexOf(xn)!==-1}}function S(Qt,xn){for(var Sr in Qt)Object.prototype.hasOwnProperty.call(Qt,Sr)&&(xn[Sr]=Qt[Sr])}function g(Qt,xn){var Sr=Qt.prototype;if(!(Sr instanceof xn)){let Mi=function(){};var qr=Mi;Mi.prototype=xn.prototype,Mi=new Mi,S(Sr,Mi),Qt.prototype=Sr=Mi}Sr.constructor!=Qt&&(typeof Qt!="function"&&console.error("unknown Class:"+Qt),Sr.constructor=Qt)}var T={},k=T.ELEMENT_NODE=1,K=T.ATTRIBUTE_NODE=2,he=T.TEXT_NODE=3,ae=T.CDATA_SECTION_NODE=4,fe=T.ENTITY_REFERENCE_NODE=5,_e=T.ENTITY_NODE=6,be=T.PROCESSING_INSTRUCTION_NODE=7,xe=T.COMMENT_NODE=8,Xe=T.DOCUMENT_NODE=9,We=T.DOCUMENT_TYPE_NODE=10,dt=T.DOCUMENT_FRAGMENT_NODE=11,Me=T.NOTATION_NODE=12,Se={},ze={},De=Se.INDEX_SIZE_ERR=(ze[1]="Index size error",1),ke=Se.DOMSTRING_SIZE_ERR=(ze[2]="DOMString size error",2),$e=Se.HIERARCHY_REQUEST_ERR=(ze[3]="Hierarchy request error",3),Te=Se.WRONG_DOCUMENT_ERR=(ze[4]="Wrong document",4),tt=Se.INVALID_CHARACTER_ERR=(ze[5]="Invalid character",5),Oe=Se.NO_DATA_ALLOWED_ERR=(ze[6]="No data allowed",6),Xt=Se.NO_MODIFICATION_ALLOWED_ERR=(ze[7]="No modification allowed",7),Ft=Se.NOT_FOUND_ERR=(ze[8]="Not found",8),ot=Se.NOT_SUPPORTED_ERR=(ze[9]="Not supported",9),xt=Se.INUSE_ATTRIBUTE_ERR=(ze[10]="Attribute in use",10),ut=Se.INVALID_STATE_ERR=(ze[11]="Invalid state",11),$t=Se.SYNTAX_ERR=(ze[12]="Syntax error",12),_t=Se.INVALID_MODIFICATION_ERR=(ze[13]="Invalid modification",13),bn=Se.NAMESPACE_ERR=(ze[14]="Invalid namespace",14),Wn=Se.INVALID_ACCESS_ERR=(ze[15]="Invalid access",15);function $r(Qt,xn){if(xn instanceof Error)var Sr=xn;else Sr=this,Error.call(this,ze[Qt]),this.message=ze[Qt],Error.captureStackTrace&&Error.captureStackTrace(this,$r);return Sr.code=Qt,xn&&(this.message=this.message+": "+xn),Sr}$r.prototype=Error.prototype,S(Se,$r);function wi(){}wi.prototype={length:0,item:function(Qt){return Qt>=0&&Qt=0){for(var Mi=xn.length-1;qr0},lookupPrefix:function(Qt){for(var xn=this;xn;){var Sr=xn._nsMap;if(Sr){for(var qr in Sr)if(Object.prototype.hasOwnProperty.call(Sr,qr)&&Sr[qr]===Qt)return qr}xn=xn.nodeType==K?xn.ownerDocument:xn.parentNode}return null},lookupNamespaceURI:function(Qt){for(var xn=this;xn;){var Sr=xn._nsMap;if(Sr&&Object.prototype.hasOwnProperty.call(Sr,Qt))return Sr[Qt];xn=xn.nodeType==K?xn.ownerDocument:xn.parentNode}return null},isDefaultNamespace:function(Qt){var xn=this.lookupPrefix(Qt);return xn==null}};function Ki(Qt){return Qt=="<"&&"<"||Qt==">"&&">"||Qt=="&"&&"&"||Qt=='"'&&"""||"&#"+Qt.charCodeAt()+";"}S(T,qo),S(T,qo.prototype);function Do(Qt,xn){if(xn(Qt))return!0;if(Qt=Qt.firstChild)do if(Do(Qt,xn))return!0;while(Qt=Qt.nextSibling)}function ai(){this.ownerDocument=this}function $o(Qt,xn,Sr){Qt&&Qt._inc++;var qr=Sr.namespaceURI;qr===w.XMLNS&&(xn._nsMap[Sr.prefix?Sr.localName:""]=Sr.value)}function Mn(Qt,xn,Sr,qr){Qt&&Qt._inc++;var Mi=Sr.namespaceURI;Mi===w.XMLNS&&delete xn._nsMap[Sr.prefix?Sr.localName:""]}function nt(Qt,xn,Sr){if(Qt&&Qt._inc){Qt._inc++;var qr=xn.childNodes;if(Sr)qr[qr.length++]=Sr;else{for(var Mi=xn.firstChild,zi=0;Mi;)qr[zi++]=Mi,Mi=Mi.nextSibling;qr.length=zi,delete qr[qr.length]}}}function Dt(Qt,xn){var Sr=xn.previousSibling,qr=xn.nextSibling;return Sr?Sr.nextSibling=qr:Qt.firstChild=qr,qr?qr.previousSibling=Sr:Qt.lastChild=Sr,xn.parentNode=null,xn.previousSibling=null,xn.nextSibling=null,nt(Qt.ownerDocument,Qt),xn}function Kt(Qt){return Qt&&(Qt.nodeType===qo.DOCUMENT_NODE||Qt.nodeType===qo.DOCUMENT_FRAGMENT_NODE||Qt.nodeType===qo.ELEMENT_NODE)}function mn(Qt){return Qt&&(an(Qt)||tn(Qt)||kn(Qt)||Qt.nodeType===qo.DOCUMENT_FRAGMENT_NODE||Qt.nodeType===qo.COMMENT_NODE||Qt.nodeType===qo.PROCESSING_INSTRUCTION_NODE)}function kn(Qt){return Qt&&Qt.nodeType===qo.DOCUMENT_TYPE_NODE}function an(Qt){return Qt&&Qt.nodeType===qo.ELEMENT_NODE}function tn(Qt){return Qt&&Qt.nodeType===qo.TEXT_NODE}function kt(Qt,xn){var Sr=Qt.childNodes||[];if(R(Sr,an)||kn(xn))return!1;var qr=R(Sr,kn);return!(xn&&qr&&Sr.indexOf(qr)>Sr.indexOf(xn))}function en(Qt,xn){var Sr=Qt.childNodes||[];function qr(zi){return an(zi)&&zi!==xn}if(R(Sr,qr))return!1;var Mi=R(Sr,kn);return!(xn&&Mi&&Sr.indexOf(Mi)>Sr.indexOf(xn))}function Vn(Qt,xn,Sr){if(!Kt(Qt))throw new $r($e,"Unexpected parent node type "+Qt.nodeType);if(Sr&&Sr.parentNode!==Qt)throw new $r(Ft,"child not in parent");if(!mn(xn)||kn(xn)&&Qt.nodeType!==qo.DOCUMENT_NODE)throw new $r($e,"Unexpected node type "+xn.nodeType+" for parent node type "+Qt.nodeType)}function on(Qt,xn,Sr){var qr=Qt.childNodes||[],Mi=xn.childNodes||[];if(xn.nodeType===qo.DOCUMENT_FRAGMENT_NODE){var zi=Mi.filter(an);if(zi.length>1||R(Mi,tn))throw new $r($e,"More than one element or text in fragment");if(zi.length===1&&!kt(Qt,Sr))throw new $r($e,"Element in fragment can not be inserted before doctype")}if(an(xn)&&!kt(Qt,Sr))throw new $r($e,"Only one element can be added and only after doctype");if(kn(xn)){if(R(qr,kn))throw new $r($e,"Only one doctype is allowed");var Yi=R(qr,an);if(Sr&&qr.indexOf(Yi)1||R(Mi,tn))throw new $r($e,"More than one element or text in fragment");if(zi.length===1&&!en(Qt,Sr))throw new $r($e,"Element in fragment can not be inserted before doctype")}if(an(xn)&&!en(Qt,Sr))throw new $r($e,"Only one element can be added and only after doctype");if(kn(xn)){let ni=function(qi){return kn(qi)&&qi!==Sr};var Si=ni;if(R(qr,ni))throw new $r($e,"Only one doctype is allowed");var Yi=R(qr,an);if(Sr&&qr.indexOf(Yi)0&&Do(Sr.documentElement,function(Mi){if(Mi!==Sr&&Mi.nodeType===k){var zi=Mi.getAttribute("class");if(zi){var Yi=Qt===zi;if(!Yi){var Si=O(zi);Yi=xn.every(L(Si))}Yi&&qr.push(Mi)}}}),qr})},createElement:function(Qt){var xn=new jr;xn.ownerDocument=this,xn.nodeName=Qt,xn.tagName=Qt,xn.localName=Qt,xn.childNodes=new wi;var Sr=xn.attributes=new Ti;return Sr._ownerElement=xn,xn},createDocumentFragment:function(){var Qt=new Yt;return Qt.ownerDocument=this,Qt.childNodes=new wi,Qt},createTextNode:function(Qt){var xn=new Fn;return xn.ownerDocument=this,xn.appendData(Qt),xn},createComment:function(Qt){var xn=new Qr;return xn.ownerDocument=this,xn.appendData(Qt),xn},createCDATASection:function(Qt){var xn=new ci;return xn.ownerDocument=this,xn.appendData(Qt),xn},createProcessingInstruction:function(Qt,xn){var Sr=new En;return Sr.ownerDocument=this,Sr.tagName=Sr.nodeName=Sr.target=Qt,Sr.nodeValue=Sr.data=xn,Sr},createAttribute:function(Qt){var xn=new eo;return xn.ownerDocument=this,xn.name=Qt,xn.nodeName=Qt,xn.localName=Qt,xn.specified=!0,xn},createEntityReference:function(Qt){var xn=new Vt;return xn.ownerDocument=this,xn.nodeName=Qt,xn},createElementNS:function(Qt,xn){var Sr=new jr,qr=xn.split(":"),Mi=Sr.attributes=new Ti;return Sr.childNodes=new wi,Sr.ownerDocument=this,Sr.nodeName=xn,Sr.tagName=xn,Sr.namespaceURI=Qt,qr.length==2?(Sr.prefix=qr[0],Sr.localName=qr[1]):Sr.localName=xn,Mi._ownerElement=Sr,Sr},createAttributeNS:function(Qt,xn){var Sr=new eo,qr=xn.split(":");return Sr.ownerDocument=this,Sr.nodeName=xn,Sr.name=xn,Sr.namespaceURI=Qt,Sr.specified=!0,qr.length==2?(Sr.prefix=qr[0],Sr.localName=qr[1]):Sr.localName=xn,Sr}},g(ai,qo);function jr(){this._nsMap={}}jr.prototype={nodeType:k,hasAttribute:function(Qt){return this.getAttributeNode(Qt)!=null},getAttribute:function(Qt){var xn=this.getAttributeNode(Qt);return xn&&xn.value||""},getAttributeNode:function(Qt){return this.attributes.getNamedItem(Qt)},setAttribute:function(Qt,xn){var Sr=this.ownerDocument.createAttribute(Qt);Sr.value=Sr.nodeValue=""+xn,this.setAttributeNode(Sr)},removeAttribute:function(Qt){var xn=this.getAttributeNode(Qt);xn&&this.removeAttributeNode(xn)},appendChild:function(Qt){return Qt.nodeType===dt?this.insertBefore(Qt,null):Ii(this,Qt)},setAttributeNode:function(Qt){return this.attributes.setNamedItem(Qt)},setAttributeNodeNS:function(Qt){return this.attributes.setNamedItemNS(Qt)},removeAttributeNode:function(Qt){return this.attributes.removeNamedItem(Qt.nodeName)},removeAttributeNS:function(Qt,xn){var Sr=this.getAttributeNodeNS(Qt,xn);Sr&&this.removeAttributeNode(Sr)},hasAttributeNS:function(Qt,xn){return this.getAttributeNodeNS(Qt,xn)!=null},getAttributeNS:function(Qt,xn){var Sr=this.getAttributeNodeNS(Qt,xn);return Sr&&Sr.value||""},setAttributeNS:function(Qt,xn,Sr){var qr=this.ownerDocument.createAttributeNS(Qt,xn);qr.value=qr.nodeValue=""+Sr,this.setAttributeNode(qr)},getAttributeNodeNS:function(Qt,xn){return this.attributes.getNamedItemNS(Qt,xn)},getElementsByTagName:function(Qt){return new oo(this,function(xn){var Sr=[];return Do(xn,function(qr){qr!==xn&&qr.nodeType==k&&(Qt==="*"||qr.tagName==Qt)&&Sr.push(qr)}),Sr})},getElementsByTagNameNS:function(Qt,xn){return new oo(this,function(Sr){var qr=[];return Do(Sr,function(Mi){Mi!==Sr&&Mi.nodeType===k&&(Qt==="*"||Mi.namespaceURI===Qt)&&(xn==="*"||Mi.localName==xn)&&qr.push(Mi)}),qr})}},ai.prototype.getElementsByTagName=jr.prototype.getElementsByTagName,ai.prototype.getElementsByTagNameNS=jr.prototype.getElementsByTagNameNS,g(jr,qo);function eo(){}eo.prototype.nodeType=K,g(eo,qo);function Uo(){}Uo.prototype={data:"",substringData:function(Qt,xn){return this.data.substring(Qt,Qt+xn)},appendData:function(Qt){Qt=this.data+Qt,this.nodeValue=this.data=Qt,this.length=Qt.length},insertData:function(Qt,xn){this.replaceData(Qt,0,xn)},appendChild:function(Qt){throw new Error(ze[$e])},deleteData:function(Qt,xn){this.replaceData(Qt,xn,"")},replaceData:function(Qt,xn,Sr){var qr=this.data.substring(0,Qt),Mi=this.data.substring(Qt+xn);Sr=qr+Sr+Mi,this.nodeValue=this.data=Sr,this.length=Sr.length}},g(Uo,qo);function Fn(){}Fn.prototype={nodeName:"#text",nodeType:he,splitText:function(Qt){var xn=this.data,Sr=xn.substring(Qt);xn=xn.substring(0,Qt),this.data=this.nodeValue=xn,this.length=xn.length;var qr=this.ownerDocument.createTextNode(Sr);return this.parentNode&&this.parentNode.insertBefore(qr,this.nextSibling),qr}},g(Fn,Uo);function Qr(){}Qr.prototype={nodeName:"#comment",nodeType:xe},g(Qr,Uo);function ci(){}ci.prototype={nodeName:"#cdata-section",nodeType:ae},g(ci,Uo);function ji(){}ji.prototype.nodeType=We,g(ji,qo);function cr(){}cr.prototype.nodeType=Me,g(cr,qo);function Qn(){}Qn.prototype.nodeType=_e,g(Qn,qo);function Vt(){}Vt.prototype.nodeType=fe,g(Vt,qo);function Yt(){}Yt.prototype.nodeName="#document-fragment",Yt.prototype.nodeType=dt,g(Yt,qo);function En(){}En.prototype.nodeType=be,g(En,qo);function er(){}er.prototype.serializeToString=function(Qt,xn,Sr){return Tr.call(Qt,xn,Sr)},qo.prototype.toString=Tr;function Tr(Qt,xn){var Sr=[],qr=this.nodeType==9&&this.documentElement||this,Mi=qr.prefix,zi=qr.namespaceURI;if(zi&&Mi==null){var Mi=qr.lookupPrefix(zi);if(Mi==null)var Yi=[{namespace:zi,prefix:null}]}return Ut(this,Sr,Qt,xn,Yi),Sr.join("")}function Nr(Qt,xn,Sr){var qr=Qt.prefix||"",Mi=Qt.namespaceURI;if(!Mi||qr==="xml"&&Mi===w.XML||Mi===w.XMLNS)return!1;for(var zi=Sr.length;zi--;){var Yi=Sr[zi];if(Yi.prefix===qr)return Yi.namespace!==Mi}return!0}function Zn(Qt,xn,Sr){Qt.push(" ",xn,'="',Sr.replace(/[<>&"\t\n\r]/g,Ki),'"')}function Ut(Qt,xn,Sr,qr,Mi){if(Mi||(Mi=[]),qr)if(Qt=qr(Qt),Qt){if(typeof Qt=="string"){xn.push(Qt);return}}else return;switch(Qt.nodeType){case k:var zi=Qt.attributes,Yi=zi.length,Wr=Qt.firstChild,Si=Qt.tagName;Sr=w.isHTML(Qt.namespaceURI)||Sr;var ni=Si;if(!Sr&&!Qt.prefix&&Qt.namespaceURI){for(var qi,Vr=0;Vr=0;ii--){var nr=Mi[ii];if(nr.prefix===""&&nr.namespace===Qt.namespaceURI){qi=nr.namespace;break}}if(qi!==Qt.namespaceURI)for(var ii=Mi.length-1;ii>=0;ii--){var nr=Mi[ii];if(nr.namespace===Qt.namespaceURI){nr.prefix&&(ni=nr.prefix+":"+Si);break}}}xn.push("<",ni);for(var Mr=0;Mr"),Sr&&/^script$/i.test(Si))for(;Wr;)Wr.data?xn.push(Wr.data):Ut(Wr,xn,Sr,qr,Mi.slice()),Wr=Wr.nextSibling;else for(;Wr;)Ut(Wr,xn,Sr,qr,Mi.slice()),Wr=Wr.nextSibling;xn.push("")}else xn.push("/>");return;case Xe:case dt:for(var Wr=Qt.firstChild;Wr;)Ut(Wr,xn,Sr,qr,Mi.slice()),Wr=Wr.nextSibling;return;case K:return Zn(xn,Qt.name,Qt.value);case he:return xn.push(Qt.data.replace(/[<&>]/g,Ki));case ae:return xn.push("");case xe:return xn.push("");case We:var no=Qt.publicId,Vi=Qt.systemId;if(xn.push("");else if(Vi&&Vi!=".")xn.push(" SYSTEM ",Vi,">");else{var Pn=Qt.internalSubset;Pn&&xn.push(" [",Pn,"]"),xn.push(">")}return;case be:return xn.push("");case fe:return xn.push("&",Qt.nodeName,";");default:xn.push("??",Qt.nodeName)}}function $n(Qt,xn,Sr){var qr;switch(xn.nodeType){case k:qr=xn.cloneNode(!1),qr.ownerDocument=Qt;case dt:break;case K:Sr=!0;break}if(qr||(qr=xn.cloneNode(!1)),qr.ownerDocument=Qt,qr.parentNode=null,Sr)for(var Mi=xn.firstChild;Mi;)qr.appendChild($n(Qt,Mi,Sr)),Mi=Mi.nextSibling;return qr}function xr(Qt,xn,Sr){var qr=new xn.constructor;for(var Mi in xn)if(Object.prototype.hasOwnProperty.call(xn,Mi)){var zi=xn[Mi];typeof zi!="object"&&zi!=qr[Mi]&&(qr[Mi]=zi)}switch(xn.childNodes&&(qr.childNodes=new wi),qr.ownerDocument=Qt,qr.nodeType){case k:var Yi=xn.attributes,Si=qr.attributes=new Ti,ni=Yi.length;Si._ownerElement=qr;for(var qi=0;qi",lt:"<",quot:'"'}),Y.HTML_ENTITIES=v({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),Y.entityMap=Y.HTML_ENTITIES},3969:function(gt,Y,_){var v,R=_(41146);v=R.DOMImplementation,Y.B=R.XMLSerializer,_(86129)},76925:function(gt,Y,_){var v=_(72167).NAMESPACE,R=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=new RegExp("[\\-\\.0-9"+R.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),b=new RegExp("^"+R.source+w.source+"*(?::"+R.source+w.source+"*)?$"),B=0,V=1,O=2,L=3,S=4,g=5,T=6,k=7;function K(De,ke){this.message=De,this.locator=ke,Error.captureStackTrace&&Error.captureStackTrace(this,K)}K.prototype=new Error,K.prototype.name=K.name;function he(){}he.prototype={parse:function(De,ke,$e){var Te=this.domBuilder;Te.startDocument(),We(ke,ke={}),ae(De,ke,$e,Te,this.errorHandler),Te.endDocument()}};function ae(De,ke,$e,Te,tt){function Oe(Kt){if(Kt>65535){Kt-=65536;var mn=55296+(Kt>>10),kn=56320+(Kt&1023);return String.fromCharCode(mn,kn)}else return String.fromCharCode(Kt)}function Xt(Kt){var mn=Kt.slice(1,-1);return Object.hasOwnProperty.call($e,mn)?$e[mn]:mn.charAt(0)==="#"?Oe(parseInt(mn.substr(1).replace("x","0x"))):(tt.error("entity not found:"+Kt),Kt)}function Ft(Kt){if(Kt>$r){var mn=De.substring($r,Kt).replace(/&#?\w+;/g,Xt);_t&&ot($r),Te.characters(mn,0,Kt-$r),$r=Kt}}function ot(Kt,mn){for(;Kt>=ut&&(mn=$t.exec(De));)xt=mn.index,ut=xt+mn[0].length,_t.lineNumber++;_t.columnNumber=Kt-xt+1}for(var xt=0,ut=0,$t=/.*(?:\r\n?|\n)|.*$/g,_t=Te.locator,bn=[{currentNSMap:ke}],Wn={},$r=0;;){try{var wi=De.indexOf("<",$r);if(wi<0){if(!De.substr($r).match(/^\s*$/)){var oo=Te.doc,Mo=oo.createTextNode(De.substr($r));oo.appendChild(Mo),Te.currentElement=Mo}return}switch(wi>$r&&Ft(wi),De.charAt(wi+1)){case"/":var ai=De.indexOf(">",wi+3),Ti=De.substring(wi+2,ai).replace(/[ \t\n\r]+$/g,""),Hr=bn.pop();ai<0?(Ti=De.substring(wi+2).replace(/[\s<].*/,""),tt.error("end tag name: "+Ti+" is not complete:"+Hr.tagName),ai=wi+1+Ti.length):Ti.match(/\s$r?$r=ai:Ft(Math.max(wi,$r)+1)}}function fe(De,ke){return ke.lineNumber=De.lineNumber,ke.columnNumber=De.columnNumber,ke}function _e(De,ke,$e,Te,tt,Oe){function Xt(bn,Wn,$r){$e.attributeNames.hasOwnProperty(bn)&&Oe.fatalError("Attribute "+bn+" redefined"),$e.addValue(bn,Wn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,tt),$r)}for(var Ft,ot,xt=++ke,ut=B;;){var $t=De.charAt(xt);switch($t){case"=":if(ut===V)Ft=De.slice(ke,xt),ut=L;else if(ut===O)ut=L;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ut===L||ut===V)if(ut===V&&(Oe.warning('attribute value must after "="'),Ft=De.slice(ke,xt)),ke=xt+1,xt=De.indexOf($t,ke),xt>0)ot=De.slice(ke,xt),Xt(Ft,ot,ke-1),ut=g;else throw new Error("attribute value no end '"+$t+"' match");else if(ut==S)ot=De.slice(ke,xt),Xt(Ft,ot,ke),Oe.warning('attribute "'+Ft+'" missed start quot('+$t+")!!"),ke=xt+1,ut=g;else throw new Error('attribute value must after "="');break;case"/":switch(ut){case B:$e.setTagName(De.slice(ke,xt));case g:case T:case k:ut=k,$e.closed=!0;case S:case V:break;case O:$e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Oe.error("unexpected end of input"),ut==B&&$e.setTagName(De.slice(ke,xt)),xt;case">":switch(ut){case B:$e.setTagName(De.slice(ke,xt));case g:case T:case k:break;case S:case V:ot=De.slice(ke,xt),ot.slice(-1)==="/"&&($e.closed=!0,ot=ot.slice(0,-1));case O:ut===O&&(ot=Ft),ut==S?(Oe.warning('attribute "'+ot+'" missed quot(")!'),Xt(Ft,ot,ke)):((!v.isHTML(Te[""])||!ot.match(/^(?:disabled|checked|selected)$/i))&&Oe.warning('attribute "'+ot+'" missed value!! "'+ot+'" instead!!'),Xt(ot,ot,ke));break;case L:throw new Error("attribute value missed!!")}return xt;case"\x80":$t=" ";default:if($t<=" ")switch(ut){case B:$e.setTagName(De.slice(ke,xt)),ut=T;break;case V:Ft=De.slice(ke,xt),ut=O;break;case S:var ot=De.slice(ke,xt);Oe.warning('attribute "'+ot+'" missed quot(")!!'),Xt(Ft,ot,ke);case g:ut=T;break}else switch(ut){case O:var _t=$e.tagName;(!v.isHTML(Te[""])||!Ft.match(/^(?:disabled|checked|selected)$/i))&&Oe.warning('attribute "'+Ft+'" missed value!! "'+Ft+'" instead2!!'),Xt(Ft,Ft,ke),ke=xt,ut=V;break;case g:Oe.warning('attribute space is required"'+Ft+'"!!');case T:ut=V,ke=xt;break;case L:ut=S,ke=xt;break;case k:throw new Error("elements closed character '/' and '>' must be connected to")}}xt++}}function be(De,ke,$e){for(var Te=De.tagName,tt=null,$t=De.length;$t--;){var Oe=De[$t],Xt=Oe.qName,Ft=Oe.value,_t=Xt.indexOf(":");if(_t>0)var ot=Oe.prefix=Xt.slice(0,_t),xt=Xt.slice(_t+1),ut=ot==="xmlns"&&xt;else xt=Xt,ot=null,ut=Xt==="xmlns"&&"";Oe.localName=xt,ut!==!1&&(tt==null&&(tt={},We($e,$e={})),$e[ut]=tt[ut]=Ft,Oe.uri=v.XMLNS,ke.startPrefixMapping(ut,Ft))}for(var $t=De.length;$t--;){Oe=De[$t];var ot=Oe.prefix;ot&&(ot==="xml"&&(Oe.uri=v.XML),ot!=="xmlns"&&(Oe.uri=$e[ot||""]))}var _t=Te.indexOf(":");_t>0?(ot=De.prefix=Te.slice(0,_t),xt=De.localName=Te.slice(_t+1)):(ot=null,xt=De.localName=Te);var bn=De.uri=$e[ot||""];if(ke.startElement(bn,xt,Te,De),De.closed){if(ke.endElement(bn,xt,Te),tt)for(ot in tt)Object.prototype.hasOwnProperty.call(tt,ot)&&ke.endPrefixMapping(ot)}else return De.currentNSMap=$e,De.localNSMap=tt,!0}function xe(De,ke,$e,Te,tt){if(/^(?:script|textarea)$/i.test($e)){var Oe=De.indexOf("",ke),Xt=De.substring(ke+1,Oe);if(/[&<]/.test(Xt))return/^script$/i.test($e)?(tt.characters(Xt,0,Xt.length),Oe):(Xt=Xt.replace(/&#?\w+;/g,Te),tt.characters(Xt,0,Xt.length),Oe)}return ke+1}function Xe(De,ke,$e,Te){var tt=Te[$e];return tt==null&&(tt=De.lastIndexOf(""),tt",ke+4);return Oe>ke?($e.comment(De,ke+4,Oe-ke-4),Oe+3):(Te.error("Unclosed comment"),-1)}else return-1;default:if(De.substr(ke+3,6)=="CDATA["){var Oe=De.indexOf("]]>",ke+9);return $e.startCDATA(),$e.characters(De,ke+9,Oe-ke-9),$e.endCDATA(),Oe+3}var Xt=ze(De,ke),Ft=Xt.length;if(Ft>1&&/!doctype/i.test(Xt[0][0])){var ot=Xt[1][0],xt=!1,ut=!1;Ft>3&&(/^public$/i.test(Xt[2][0])?(xt=Xt[3][0],ut=Ft>4&&Xt[4][0]):/^system$/i.test(Xt[2][0])&&(ut=Xt[3][0]));var $t=Xt[Ft-1];return $e.startDTD(ot,xt,ut),$e.endDTD(),$t.index+$t[0].length}}return-1}function Me(De,ke,$e){var Te=De.indexOf("?>",ke);if(Te){var tt=De.substring(ke,Te).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(tt){var Oe=tt[0].length;return $e.processingInstruction(tt[1],tt[2]),Te+2}else return-1}return-1}function Se(){this.attributeNames={}}Se.prototype={setTagName:function(De){if(!b.test(De))throw new Error("invalid tagName:"+De);this.tagName=De},addValue:function(De,ke,$e){if(!b.test(De))throw new Error("invalid attribute:"+De);this.attributeNames[De]=this.length,this[this.length++]={qName:De,value:ke,offset:$e}},length:0,getLocalName:function(De){return this[De].localName},getLocator:function(De){return this[De].locator},getQName:function(De){return this[De].qName},getURI:function(De){return this[De].uri},getValue:function(De){return this[De].value}};function ze(De,ke){var $e,Te=[],tt=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(tt.lastIndex=ke,tt.exec(De);$e=tt.exec(De);)if(Te.push($e),$e[1])return Te}Y.XMLReader=he,Y.ParseError=K},2093:function(gt,Y,_){"use strict";var v=_(97582),R=_(67294),w=_(92770);function b(V){return(0,w.mf)(V[Symbol.asyncIterator])}function B(V,O){(0,R.useEffect)(function(){var L=V(),S=!1;function g(){return(0,v.mG)(this,void 0,void 0,function(){var T;return(0,v.Jh)(this,function(k){switch(k.label){case 0:if(!b(L))return[3,4];k.label=1;case 1:return[4,L.next()];case 2:return T=k.sent(),T.done||S?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,L];case 5:k.sent(),k.label=6;case 6:return[2]}})})}return g(),function(){S=!0}},O)}Y.Z=B},58580:function(gt,Y,_){"use strict";var v=_(97582),R=_(67294),w=_(85980);function b(B,V){var O=(0,v.CR)((0,R.useState)(B),2),L=O[0],S=O[1],g=(0,w.Z)(function(){S(B)},V).run;return(0,R.useEffect)(function(){g()},[B]),L}Y.Z=b},85980:function(gt,Y,_){"use strict";var v=_(97582),R=_(23279),w=_.n(R),b=_(67294),B=_(3930),V=_(45210),O=_(92770),L=_(31663);function S(g,T){var k;L.Z&&((0,O.mf)(g)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof g)));var K=(0,B.Z)(g),he=(k=T==null?void 0:T.wait)!==null&&k!==void 0?k:1e3,ae=(0,b.useMemo)(function(){return w()(function(){for(var fe=[],_e=0;_e{const{type:L,children:S,prefixCls:g,buttonProps:T,close:k,autoFocus:K,emitEvent:he,isSilent:ae,quitOnNullishReturnValue:fe,actionFn:_e}=O,be=R.useRef(!1),xe=R.useRef(null),[Xe,We]=(0,v.Z)(!1),dt=function(){k==null||k.apply(void 0,arguments)};R.useEffect(()=>{let ze=null;return K&&(ze=setTimeout(()=>{var De;(De=xe.current)===null||De===void 0||De.focus()})),()=>{ze&&clearTimeout(ze)}},[]);const Me=ze=>{B(ze)&&(We(!0),ze.then(function(){We(!1,!0),dt.apply(void 0,arguments),be.current=!1},De=>{if(We(!1,!0),be.current=!1,!(ae!=null&&ae()))return Promise.reject(De)}))},Se=ze=>{if(be.current)return;if(be.current=!0,!_e){dt();return}let De;if(he){if(De=_e(ze),fe&&!B(De)){be.current=!1,dt(ze);return}}else if(_e.length)De=_e(k),be.current=!1;else if(De=_e(),!De){dt();return}Me(De)};return R.createElement(w.ZP,Object.assign({},(0,b.nx)(L),{onClick:Se,loading:Xe,prefixCls:g},T,{ref:xe}),S)};Y.Z=V},8745:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return V},i:function(){return B}});var v=_(21770),R=_(67294),w=_(94740),b=_(53124);function B(O){return function(S){return R.createElement(w.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},R.createElement(O,Object.assign({},S)))}}function V(O,L,S,g){function T(k){const{prefixCls:K,style:he}=k,ae=R.useRef(null),[fe,_e]=R.useState(0),[be,xe]=R.useState(0),[Xe,We]=(0,v.Z)(!1,{value:k.open}),{getPrefixCls:dt}=R.useContext(b.E_),Me=dt(L||"select",K);R.useEffect(()=>{if(We(!0),typeof ResizeObserver!="undefined"){const ze=new ResizeObserver(ke=>{const $e=ke[0].target;_e($e.offsetHeight+8),xe($e.offsetWidth)}),De=setInterval(()=>{var ke;const $e=S?`.${S(Me)}`:`.${Me}-dropdown`,Te=(ke=ae.current)===null||ke===void 0?void 0:ke.querySelector($e);Te&&(clearInterval(De),ze.observe(Te))},10);return()=>{clearInterval(De),ze.disconnect()}}},[]);let Se=Object.assign(Object.assign({},k),{style:Object.assign(Object.assign({},he),{margin:0}),open:Xe,visible:Xe,getPopupContainer:()=>ae.current});return g&&(Se=g(Se)),R.createElement("div",{ref:ae,style:{paddingBottom:fe,position:"relative",minWidth:be}},R.createElement(O,Object.assign({},Se)))}return B(T)}},81643:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return v}});const v=R=>R?typeof R=="function"?R():R:null},69760:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return b}});var v=_(62208),R=_(67294);function w(B,V,O){return typeof B=="boolean"?B:V===void 0?!!O:V!==!1&&V!==null}function b(B,V,O){let L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R.createElement(v.Z,null),S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!w(B,V,S))return[!1,null];const T=typeof V=="boolean"||V===void 0||V===null?L:V;return[!0,O?O(T):T]}},57838:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(67294);function R(){const[,w]=v.useReducer(b=>b+1,0);return w}},87263:function(gt,Y,_){"use strict";_.d(Y,{Cn:function(){return g},u6:function(){return V}});var v=_(67294),R=_(25976),w=_(43945);const b=100,V=b*10,O={Modal:b,Drawer:b,Popover:b,Popconfirm:b,Tooltip:b,Tour:b},L={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function S(T){return T in O}function g(T,k){const[,K]=(0,R.Z)(),he=v.useContext(w.Z),ae=S(T);if(k!==void 0)return[k,k];let fe=he!=null?he:0;return ae?(fe+=(he?0:K.zIndexPopupBase)+O[T],fe=Math.min(fe,K.zIndexPopupBase+V)):fe+=L[T],[he===void 0?k:fe,fe]}},33603:function(gt,Y,_){"use strict";_.d(Y,{m:function(){return O}});const v=()=>({height:0,opacity:0}),R=L=>{const{scrollHeight:S}=L;return{height:S,opacity:1}},w=L=>({height:L?L.offsetHeight:0}),b=(L,S)=>(S==null?void 0:S.deadline)===!0||S.propertyName==="height",B=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:v,onEnterStart:v,onAppearActive:R,onEnterActive:R,onLeaveStart:w,onLeaveActive:v,onAppearEnd:b,onEnterEnd:b,onLeaveEnd:b,motionDeadline:500}},V=null,O=(L,S,g)=>g!==void 0?g:`${L}-${S}`;Y.Z=B},80636:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return V}});var v=_(77786);function R(O,L,S,g){if(g===!1)return{adjustX:!1,adjustY:!1};const T=g&&typeof g=="object"?g:{},k={};switch(O){case"top":case"bottom":k.shiftX=L.dropdownArrowOffset*2+S,k.shiftY=!0,k.adjustY=!0;break;case"left":case"right":k.shiftY=L.dropdownArrowOffsetVertical*2+S,k.shiftX=!0,k.adjustX=!0;break}const K=Object.assign(Object.assign({},k),T);return K.shiftX||(K.adjustX=!0),K.shiftY||(K.adjustY=!0),K}const w={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},b={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},B=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function V(O){const{arrowWidth:L,autoAdjustOverflow:S,arrowPointAtCenter:g,offset:T,borderRadius:k,visibleFirst:K}=O,he=L/2,ae={};return Object.keys(w).forEach(fe=>{const _e=g&&b[fe]||w[fe],be=Object.assign(Object.assign({},_e),{offset:[0,0],dynamicInset:!0});switch(ae[fe]=be,B.has(fe)&&(be.autoArrow=!1),fe){case"top":case"topLeft":case"topRight":be.offset[1]=-he-T;break;case"bottom":case"bottomLeft":case"bottomRight":be.offset[1]=he+T;break;case"left":case"leftTop":case"leftBottom":be.offset[0]=-he-T;break;case"right":case"rightTop":case"rightBottom":be.offset[0]=he+T;break}const xe=(0,v.fS)({contentRadius:k,limitVerticalRadius:!0});if(g)switch(fe){case"topLeft":case"bottomLeft":be.offset[0]=-xe.dropdownArrowOffset-he;break;case"topRight":case"bottomRight":be.offset[0]=xe.dropdownArrowOffset+he;break;case"leftTop":case"rightTop":be.offset[1]=-xe.dropdownArrowOffset-he;break;case"leftBottom":case"rightBottom":be.offset[1]=xe.dropdownArrowOffset+he;break}be.overflow=R(fe,xe,L,S),K&&(be.htmlRegion="visibleFirst")}),ae}},96159:function(gt,Y,_){"use strict";var v;_.d(Y,{M2:function(){return b},Tm:function(){return V},l$:function(){return w}});var R=_(67294);const{isValidElement:w}=v||(v=_.t(R,2));function b(O){return O&&w(O)&&O.type===R.Fragment}function B(O,L,S){return w(O)?R.cloneElement(O,typeof S=="function"?S(O.props||{}):S):L}function V(O,L){return B(O,O,L)}},74443:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return V},c4:function(){return w},m9:function(){return O}});var v=_(67294),R=_(25976);const w=["xxl","xl","lg","md","sm","xs"],b=L=>({xs:`(max-width: ${L.screenXSMax}px)`,sm:`(min-width: ${L.screenSM}px)`,md:`(min-width: ${L.screenMD}px)`,lg:`(min-width: ${L.screenLG}px)`,xl:`(min-width: ${L.screenXL}px)`,xxl:`(min-width: ${L.screenXXL}px)`}),B=L=>{const S=L,g=[].concat(w).reverse();return g.forEach((T,k)=>{const K=T.toUpperCase(),he=`screen${K}Min`,ae=`screen${K}`;if(!(S[he]<=S[ae]))throw new Error(`${he}<=${ae} fails : !(${S[he]}<=${S[ae]})`);if(k{const g=new Map;let T=-1,k={};return{matchHandlers:{},dispatch(K){return k=K,g.forEach(he=>he(k)),g.size>=1},subscribe(K){return g.size||this.register(),T+=1,g.set(T,K),K(k),T},unsubscribe(K){g.delete(K),g.size||this.unregister()},unregister(){Object.keys(S).forEach(K=>{const he=S[K],ae=this.matchHandlers[he];ae==null||ae.mql.removeListener(ae==null?void 0:ae.listener)}),g.clear()},register(){Object.keys(S).forEach(K=>{const he=S[K],ae=_e=>{let{matches:be}=_e;this.dispatch(Object.assign(Object.assign({},k),{[K]:be}))},fe=window.matchMedia(he);fe.addListener(ae),this.matchHandlers[he]={mql:fe,listener:ae},ae(fe)})},responsiveMap:S}},[L])}const O=(L,S)=>{if(S&&typeof S=="object")for(let g=0;gO||V},27288:function(gt,Y,_){"use strict";_.d(Y,{G8:function(){return O},ln:function(){return L}});var v=_(67294),R=_(80334);function w(){}let b=null;function B(){b=null,rcResetWarned()}let V=null;const O=v.createContext({}),L=()=>{const g=()=>{};return g.deprecated=w,g};var S=null},45353:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return De}});var v=_(94184),R=_.n(v),w=_(42550),b=_(5110),B=_(67294),V=_(53124),O=_(96159),L=_(67968);const S=ke=>{const{componentCls:$e,colorPrimary:Te}=ke;return{[$e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${Te})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${ke.motionEaseOutCirc}`,`opacity 2s ${ke.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${ke.motionEaseInOut}`,`opacity 0.35s ${ke.motionEaseInOut}`].join(",")}}}}};var g=(0,L.Z)("Wave",ke=>[S(ke)]),T=_(56790),k=_(75164),K=_(82225),he=_(38135);function ae(ke){const $e=(ke||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return $e&&$e[1]&&$e[2]&&$e[3]?!($e[1]===$e[2]&&$e[2]===$e[3]):!0}function fe(ke){return ke&&ke!=="#fff"&&ke!=="#ffffff"&&ke!=="rgb(255, 255, 255)"&&ke!=="rgba(255, 255, 255, 1)"&&ae(ke)&&!/rgba\((?:\d*, ){3}0\)/.test(ke)&&ke!=="transparent"}function _e(ke){const{borderTopColor:$e,borderColor:Te,backgroundColor:tt}=getComputedStyle(ke);return fe($e)?$e:fe(Te)?Te:fe(tt)?tt:null}var be=_(17415);function xe(ke){return Number.isNaN(ke)?0:ke}const Xe=ke=>{const{className:$e,target:Te,component:tt}=ke,Oe=B.useRef(null),[Xt,Ft]=B.useState(null),[ot,xt]=B.useState([]),[ut,$t]=B.useState(0),[_t,bn]=B.useState(0),[Wn,$r]=B.useState(0),[wi,oo]=B.useState(0),[Mo,Ti]=B.useState(!1),Hr={left:ut,top:_t,width:Wn,height:wi,borderRadius:ot.map(Pe=>`${Pe}px`).join(" ")};Xt&&(Hr["--wave-color"]=Xt);function Ho(){const Pe=getComputedStyle(Te);Ft(_e(Te));const qo=Pe.position==="static",{borderLeftWidth:Ki,borderTopWidth:Do}=Pe;$t(qo?Te.offsetLeft:xe(-parseFloat(Ki))),bn(qo?Te.offsetTop:xe(-parseFloat(Do))),$r(Te.offsetWidth),oo(Te.offsetHeight);const{borderTopLeftRadius:ai,borderTopRightRadius:$o,borderBottomLeftRadius:Mn,borderBottomRightRadius:nt}=Pe;xt([ai,$o,nt,Mn].map(Dt=>xe(parseFloat(Dt))))}if(B.useEffect(()=>{if(Te){const Pe=(0,k.Z)(()=>{Ho(),Ti(!0)});let qo;return typeof ResizeObserver!="undefined"&&(qo=new ResizeObserver(Ho),qo.observe(Te)),()=>{k.Z.cancel(Pe),qo==null||qo.disconnect()}}},[]),!Mo)return null;const Ss=(tt==="Checkbox"||tt==="Radio")&&(Te==null?void 0:Te.classList.contains(be.A));return B.createElement(K.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Pe,qo)=>{var Ki;if(qo.deadline||qo.propertyName==="opacity"){const Do=(Ki=Oe.current)===null||Ki===void 0?void 0:Ki.parentElement;(0,he.v)(Do).then(()=>{Do==null||Do.remove()})}return!1}},Pe=>{let{className:qo}=Pe;return B.createElement("div",{ref:Oe,className:R()($e,{"wave-quick":Ss},qo),style:Hr})})};var dt=(ke,$e)=>{var Te;const{component:tt}=$e;if(tt==="Checkbox"&&!(!((Te=ke.querySelector("input"))===null||Te===void 0)&&Te.checked))return;const Oe=document.createElement("div");Oe.style.position="absolute",Oe.style.left="0px",Oe.style.top="0px",ke==null||ke.insertBefore(Oe,ke==null?void 0:ke.firstChild),(0,he.s)(B.createElement(Xe,Object.assign({},$e,{target:ke})),Oe)},Me=_(25976);function Se(ke,$e,Te){const{wave:tt}=B.useContext(V.E_),[,Oe,Xt]=(0,Me.Z)(),Ft=(0,T.zX)(ut=>{const $t=ke.current;if(tt!=null&&tt.disabled||!$t)return;const _t=$t.querySelector(`.${be.A}`)||$t,{showEffect:bn}=tt||{};(bn||dt)(_t,{className:$e,token:Oe,component:Te,event:ut,hashId:Xt})}),ot=B.useRef();return ut=>{k.Z.cancel(ot.current),ot.current=(0,k.Z)(()=>{Ft(ut)})}}var De=ke=>{const{children:$e,disabled:Te,component:tt}=ke,{getPrefixCls:Oe}=(0,B.useContext)(V.E_),Xt=(0,B.useRef)(null),Ft=Oe("wave"),[,ot]=g(Ft),xt=Se(Xt,R()(Ft,ot),tt);if(B.useEffect(()=>{const $t=Xt.current;if(!$t||$t.nodeType!==1||Te)return;const _t=bn=>{!(0,b.Z)(bn.target)||!$t.getAttribute||$t.getAttribute("disabled")||$t.disabled||$t.className.includes("disabled")||$t.className.includes("-leave")||xt(bn)};return $t.addEventListener("click",_t,!0),()=>{$t.removeEventListener("click",_t,!0)}},[Te]),!B.isValidElement($e))return $e!=null?$e:null;const ut=(0,w.Yr)($e)?(0,w.sQ)($e.ref,Xt):Xt;return(0,O.Tm)($e,{ref:ut})}},17415:function(gt,Y,_){"use strict";_.d(Y,{A:function(){return v}});const v="ant-wave-target"},43945:function(gt,Y,_){"use strict";var v=_(67294);const R=v.createContext(void 0);Y.Z=R},33671:function(gt,Y,_){"use strict";_.d(Y,{Te:function(){return O},aG:function(){return b},hU:function(){return S},nx:function(){return B}});var v=_(67294),R=_(96159);const w=/^[\u4e00-\u9fa5]{2}$/,b=w.test.bind(w);function B(K){return K==="danger"?{danger:!0}:{type:K}}function V(K){return typeof K=="string"}function O(K){return K==="text"||K==="link"}function L(K,he){if(K==null)return;const ae=he?" ":"";return typeof K!="string"&&typeof K!="number"&&V(K.type)&&b(K.props.children)?(0,R.Tm)(K,{children:K.props.children.split("").join(ae)}):V(K)?b(K)?v.createElement("span",null,K.split("").join(ae)):v.createElement("span",null,K):(0,R.M2)(K)?v.createElement("span",null,K):K}function S(K,he){let ae=!1;const fe=[];return v.Children.forEach(K,_e=>{const be=typeof _e,xe=be==="string"||be==="number";if(ae&&xe){const Xe=fe.length-1,We=fe[Xe];fe[Xe]=`${We}${_e}`}else fe.push(_e);ae=xe}),v.Children.map(fe,_e=>L(_e,he))}const g=null,T=null,k=null},15867:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return Vn}});var v=_(67294),R=_(94184),w=_.n(R),b=_(98423),B=_(42550),V=_(45353),O=_(53124),L=_(98866),S=_(98675),g=_(4173),T=_(25976),k=function(on,Dr){var oi={};for(var Ii in on)Object.prototype.hasOwnProperty.call(on,Ii)&&Dr.indexOf(Ii)<0&&(oi[Ii]=on[Ii]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jr=0,Ii=Object.getOwnPropertySymbols(on);jr{const{getPrefixCls:Dr,direction:oi}=v.useContext(O.E_),{prefixCls:Ii,size:jr,className:eo}=on,Uo=k(on,["prefixCls","size","className"]),Fn=Dr("btn-group",Ii),[,,Qr]=(0,T.Z)();let ci="";switch(jr){case"large":ci="lg";break;case"small":ci="sm";break;case"middle":default:}const ji=w()(Fn,{[`${Fn}-${ci}`]:ci,[`${Fn}-rtl`]:oi==="rtl"},eo,Qr);return v.createElement(K.Provider,{value:jr},v.createElement("div",Object.assign({},Uo,{className:ji})))},fe=_(33671),be=(0,v.forwardRef)((on,Dr)=>{const{className:oi,style:Ii,children:jr,prefixCls:eo}=on,Uo=w()(`${eo}-icon`,oi);return v.createElement("span",{ref:Dr,className:Uo,style:Ii},jr)}),xe=_(22508),Xe=_(82225);const We=(0,v.forwardRef)((on,Dr)=>{let{prefixCls:oi,className:Ii,style:jr,iconClassName:eo}=on;const Uo=w()(`${oi}-loading-icon`,Ii);return v.createElement(be,{prefixCls:oi,className:Uo,style:jr,ref:Dr},v.createElement(xe.Z,{className:eo}))}),dt=()=>({width:0,opacity:0,transform:"scale(0)"}),Me=on=>({width:on.scrollWidth,opacity:1,transform:"scale(1)"});var ze=on=>{const{prefixCls:Dr,loading:oi,existIcon:Ii,className:jr,style:eo}=on,Uo=!!oi;return Ii?v.createElement(We,{prefixCls:Dr,className:jr,style:eo}):v.createElement(Xe.ZP,{visible:Uo,motionName:`${Dr}-loading-icon-motion`,motionLeave:Uo,removeOnLeave:!0,onAppearStart:dt,onAppearActive:Me,onEnterStart:dt,onEnterActive:Me,onLeaveStart:Me,onLeaveActive:dt},(Fn,Qr)=>{let{className:ci,style:ji}=Fn;return v.createElement(We,{prefixCls:Dr,className:jr,style:Object.assign(Object.assign({},eo),ji),ref:Qr,iconClassName:ci})})},De=_(14747),ke=_(45503),$e=_(67968);const Te=(on,Dr)=>({[`> span, > ${on}`]:{"&:not(:last-child)":{[`&, & > ${on}`]:{"&:not(:disabled)":{borderInlineEndColor:Dr}}},"&:not(:first-child)":{[`&, & > ${on}`]:{"&:not(:disabled)":{borderInlineStartColor:Dr}}}}});var Oe=on=>{const{componentCls:Dr,fontSize:oi,lineWidth:Ii,groupBorderColor:jr,colorErrorHover:eo}=on;return{[`${Dr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${Dr}`]:{"&:not(:last-child)":{[`&, & > ${Dr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Ii,[`&, & > ${Dr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[Dr]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${fr}-icon-only`]:{fontSize:Kr}},ge(`${fr}-primary`,si),ge(`${fr}-danger`,uo)]}};const Pt=en=>{const{componentCls:fr,iconCls:Kr,fontWeight:ri}=en;return{[fr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:ri,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${en.lineWidth}px ${en.lineType} transparent`,cursor:"pointer",transition:`all ${en.motionDurationMid} ${en.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:en.lineHeight,color:en.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${fr}-icon`]:{lineHeight:0},[`> ${Kr} + span, > span + ${Kr}`]:{marginInlineStart:en.marginXS},[`&:not(${fr}-icon-only) > ${fr}-icon`]:{[`&${fr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:en.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,_e.Qy)(en)),[`&${fr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${fr}-two-chinese-chars > *:not(${Kr})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${fr}-compact-item`]:{flex:"none"},[`&-compact-item${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-en.lineWidth,insetInlineStart:-en.lineWidth,display:"inline-block",width:en.lineWidth,height:`calc(100% + ${en.lineWidth*2}px)`,backgroundColor:en.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-vertical-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-en.lineWidth,insetInlineStart:-en.lineWidth,display:"inline-block",width:`calc(100% + ${en.lineWidth*2}px)`,height:en.lineWidth,backgroundColor:en.colorPrimaryHover,content:'""'}}}}}}},dt=(en,fr,Kr)=>({[`&:not(:disabled):not(${en}-disabled)`]:{"&:hover":fr,"&:active":Kr}}),He=en=>({minWidth:en.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),bt=en=>({borderRadius:en.controlHeight,paddingInlineStart:en.controlHeight/2,paddingInlineEnd:en.controlHeight/2}),ft=en=>({cursor:"not-allowed",borderColor:en.borderColorDisabled,color:en.colorTextDisabled,backgroundColor:en.colorBgContainerDisabled,boxShadow:"none"}),$t=(en,fr,Kr,ri,si,uo,Qo,_n)=>({[`&${en}-background-ghost`]:Object.assign(Object.assign({color:Kr||void 0,backgroundColor:fr,borderColor:ri||void 0,boxShadow:"none"},dt(en,Object.assign({backgroundColor:fr},Qo),Object.assign({backgroundColor:fr},_n))),{"&:disabled":{cursor:"not-allowed",color:si||void 0,borderColor:uo||void 0}})}),vt=en=>({[`&:disabled, &${en.componentCls}-disabled`]:Object.assign({},ft(en))}),yn=en=>Object.assign({},vt(en)),Bn=en=>({[`&:disabled, &${en.componentCls}-disabled`]:{cursor:"not-allowed",color:en.colorTextDisabled}}),Lr=en=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(en)),{backgroundColor:en.defaultBg,borderColor:en.defaultBorderColor,color:en.defaultColor,boxShadow:en.defaultShadow}),dt(en.componentCls,{color:en.colorPrimaryHover,borderColor:en.colorPrimaryHover},{color:en.colorPrimaryActive,borderColor:en.colorPrimaryActive})),$t(en.componentCls,en.ghostBg,en.defaultGhostColor,en.defaultGhostBorderColor,en.colorTextDisabled,en.colorBorder)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:en.colorError,borderColor:en.colorError},dt(en.componentCls,{color:en.colorErrorHover,borderColor:en.colorErrorBorderHover},{color:en.colorErrorActive,borderColor:en.colorErrorActive})),$t(en.componentCls,en.ghostBg,en.colorError,en.colorError,en.colorTextDisabled,en.colorBorder)),vt(en))}),ii=en=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(en)),{color:en.primaryColor,backgroundColor:en.colorPrimary,boxShadow:en.primaryShadow}),dt(en.componentCls,{color:en.colorTextLightSolid,backgroundColor:en.colorPrimaryHover},{color:en.colorTextLightSolid,backgroundColor:en.colorPrimaryActive})),$t(en.componentCls,en.ghostBg,en.colorPrimary,en.colorPrimary,en.colorTextDisabled,en.colorBorder,{color:en.colorPrimaryHover,borderColor:en.colorPrimaryHover},{color:en.colorPrimaryActive,borderColor:en.colorPrimaryActive})),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:en.colorError,boxShadow:en.dangerShadow,color:en.dangerColor},dt(en.componentCls,{backgroundColor:en.colorErrorHover},{backgroundColor:en.colorErrorActive})),$t(en.componentCls,en.ghostBg,en.colorError,en.colorError,en.colorTextDisabled,en.colorBorder,{color:en.colorErrorHover,borderColor:en.colorErrorHover},{color:en.colorErrorActive,borderColor:en.colorErrorActive})),vt(en))}),gi=en=>Object.assign(Object.assign({},Lr(en)),{borderStyle:"dashed"}),no=en=>Object.assign(Object.assign(Object.assign({color:en.colorLink},dt(en.componentCls,{color:en.colorLinkHover,backgroundColor:en.linkHoverBg},{color:en.colorLinkActive})),Bn(en)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign({color:en.colorError},dt(en.componentCls,{color:en.colorErrorHover},{color:en.colorErrorActive})),Bn(en))}),To=en=>Object.assign(Object.assign(Object.assign({},dt(en.componentCls,{color:en.colorText,backgroundColor:en.textHoverBg},{color:en.colorText,backgroundColor:en.colorBgTextActive})),Bn(en)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign({color:en.colorError},Bn(en)),dt(en.componentCls,{color:en.colorErrorHover,backgroundColor:en.colorErrorBg},{color:en.colorErrorHover,backgroundColor:en.colorErrorBg}))}),_r=en=>{const{componentCls:fr}=en;return{[`${fr}-default`]:Lr(en),[`${fr}-primary`]:ii(en),[`${fr}-dashed`]:gi(en),[`${fr}-link`]:no(en),[`${fr}-text`]:To(en),[`${fr}-ghost`]:$t(en.componentCls,en.ghostBg,en.colorBgContainer,en.colorBgContainer,en.colorTextDisabled,en.colorBorder)}},Bo=function(en){let fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Kr,controlHeight:ri,fontSize:si,lineHeight:uo,lineWidth:Qo,borderRadius:_n,buttonPaddingHorizontal:Vr,iconCls:qr}=en,Ui=Math.max(0,(ri-si*uo)/2-Qo),xo=`${Kr}-icon-only`;return[{[`${Kr}${fr}`]:{fontSize:si,height:ri,padding:`${Ui}px ${Vr}px`,borderRadius:_n,[`&${xo}`]:{width:ri,paddingInlineStart:0,paddingInlineEnd:0,[`&${Kr}-round`]:{width:"auto"},[qr]:{fontSize:en.buttonIconOnlyFontSize}},[`&${Kr}-loading`]:{opacity:en.opacityLoading,cursor:"default"},[`${Kr}-loading-icon`]:{transition:`width ${en.motionDurationSlow} ${en.motionEaseInOut}, opacity ${en.motionDurationSlow} ${en.motionEaseInOut}`}}},{[`${Kr}${Kr}-circle${fr}`]:He(en)},{[`${Kr}${Kr}-round${fr}`]:bt(en)}]},hs=en=>Bo((0,Ce.TS)(en,{fontSize:en.contentFontSize})),ve=en=>{const fr=(0,Ce.TS)(en,{controlHeight:en.controlHeightSM,fontSize:en.contentFontSizeSM,padding:en.paddingXS,buttonPaddingHorizontal:en.paddingInlineSM,borderRadius:en.borderRadiusSM,buttonIconOnlyFontSize:en.onlyIconSizeSM});return Bo(fr,`${en.componentCls}-sm`)},So=en=>{const fr=(0,Ce.TS)(en,{controlHeight:en.controlHeightLG,fontSize:en.contentFontSizeLG,buttonPaddingHorizontal:en.paddingInlineLG,borderRadius:en.borderRadiusLG,buttonIconOnlyFontSize:en.onlyIconSizeLG});return Bo(fr,`${en.componentCls}-lg`)},ho=en=>{const{componentCls:fr}=en;return{[fr]:{[`&${fr}-block`]:{width:"100%"}}}},go=en=>{const{paddingInline:fr,onlyIconSize:Kr}=en;return(0,Ce.TS)(en,{buttonPaddingHorizontal:fr,buttonIconOnlyFontSize:Kr})},ji=en=>({fontWeight:400,defaultShadow:`0 ${en.controlOutlineWidth}px 0 ${en.controlTmpOutline}`,primaryShadow:`0 ${en.controlOutlineWidth}px 0 ${en.controlOutline}`,dangerShadow:`0 ${en.controlOutlineWidth}px 0 ${en.colorErrorOutline}`,primaryColor:en.colorTextLightSolid,dangerColor:en.colorTextLightSolid,borderColorDisabled:en.colorBorder,defaultGhostColor:en.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:en.colorBgContainer,paddingInline:en.paddingContentHorizontal-en.lineWidth,paddingInlineLG:en.paddingContentHorizontal-en.lineWidth,paddingInlineSM:8-en.lineWidth,onlyIconSize:en.fontSizeLG,onlyIconSizeSM:en.fontSizeLG-2,onlyIconSizeLG:en.fontSizeLG+2,groupBorderColor:en.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:en.colorBgTextHover,defaultColor:en.colorText,defaultBg:en.colorBgContainer,defaultBorderColor:en.colorBorder,defaultBorderColorDisabled:en.colorBorder,contentFontSize:en.fontSize,contentFontSizeSM:en.fontSize,contentFontSizeLG:en.fontSizeLG});var No=(0,De.Z)("Button",en=>{const fr=go(en);return[Pt(fr),ve(fr),hs(fr),So(fr),ho(fr),_r(fr),we(fr)]},ji),dn=m(80110);function Ve(en,fr){return{[`&-item:not(${fr}-last-item)`]:{marginBottom:-en.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function yt(en,fr){return{[`&-item:not(${fr}-first-item):not(${fr}-last-item)`]:{borderRadius:0},[`&-item${fr}-first-item:not(${fr}-last-item)`]:{[`&, &${en}-sm, &${en}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${fr}-last-item:not(${fr}-first-item)`]:{[`&, &${en}-sm, &${en}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ct(en){const fr=`${en.componentCls}-compact-vertical`;return{[fr]:Object.assign(Object.assign({},Ve(en,fr)),yt(en.componentCls,fr))}}var Wt=(0,De.b)(["Button","compact"],en=>{const fr=go(en);return[(0,dn.c)(fr),Ct(fr)]},ji),sn=function(en,fr){var Kr={};for(var ri in en)Object.prototype.hasOwnProperty.call(en,ri)&&fr.indexOf(ri)<0&&(Kr[ri]=en[ri]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var si=0,ri=Object.getOwnPropertySymbols(en);si{var Kr,ri;const{loading:si=!1,prefixCls:uo,type:Qo="default",danger:_n,shape:Vr="default",size:qr,styles:Ui,disabled:xo,className:Us,rootClassName:zn,children:Kn,icon:Or,ghost:mi=!1,block:Er=!1,htmlType:ti="button",classNames:di,style:rn={}}=en,Qn=sn(en,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Xr,autoInsertSpaceInButton:ao,direction:as,button:Bt}=(0,y.useContext)(w.E_),pn=Xr("btn",uo),[br,Jr]=No(pn),vi=(0,y.useContext)(I.Z),Di=xo!=null?xo:vi,co=(0,y.useContext)(W),Qr=(0,y.useMemo)(()=>Mt(si),[si]),[oi,Zi]=(0,y.useState)(Qr.loading),[Ar,tn]=(0,y.useState)(!1),Gn=(0,y.createRef)(),Ei=(0,k.sQ)(fr,Gn),In=y.Children.count(Kn)===1&&!Or&&!(0,ie.Te)(Qo);(0,y.useEffect)(()=>{let pr=null;Qr.delay>0?pr=setTimeout(()=>{pr=null,Zi(!0)},Qr.delay):Zi(Qr.loading);function ci(){pr&&(clearTimeout(pr),pr=null)}return ci},[Qr]),(0,y.useEffect)(()=>{if(!Ei||!Ei.current||ao===!1)return;const pr=Ei.current.textContent;In&&(0,ie.aG)(pr)?Ar||tn(!0):Ar&&tn(!1)},[Ei]);const Li=pr=>{const{onClick:ci}=en;if(oi||Di){pr.preventDefault();return}ci==null||ci(pr)},nr=ao!==!1,{compactSize:wi,compactItemClassnames:Mi}=(0,f.ri)(pn,as),Fr={large:"lg",small:"sm",middle:void 0},qn=(0,C.Z)(pr=>{var ci,Eo;return(Eo=(ci=qr!=null?qr:wi)!==null&&ci!==void 0?ci:co)!==null&&Eo!==void 0?Eo:pr}),ms=qn&&Fr[qn]||"",ya=oi?"loading":Or,ha=(0,z.Z)(Qn,["navigate"]),Ws=b()(pn,Jr,{[`${pn}-${Vr}`]:Vr!=="default"&&Vr,[`${pn}-${Qo}`]:Qo,[`${pn}-${ms}`]:ms,[`${pn}-icon-only`]:!Kn&&Kn!==0&&!!ya,[`${pn}-background-ghost`]:mi&&!(0,ie.Te)(Qo),[`${pn}-loading`]:oi,[`${pn}-two-chinese-chars`]:Ar&&nr&&!oi,[`${pn}-block`]:Er,[`${pn}-dangerous`]:!!_n,[`${pn}-rtl`]:as==="rtl"},Mi,Us,zn,Bt==null?void 0:Bt.className),Ua=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),rn),Ao=b()(di==null?void 0:di.icon,(Kr=Bt==null?void 0:Bt.classNames)===null||Kr===void 0?void 0:Kr.icon),dl=Object.assign(Object.assign({},(Ui==null?void 0:Ui.icon)||{}),((ri=Bt==null?void 0:Bt.styles)===null||ri===void 0?void 0:ri.icon)||{}),$r=Or&&!oi?y.createElement(de,{prefixCls:pn,className:Ao,style:dl},Or):y.createElement(ye,{existIcon:!!Or,prefixCls:pn,loading:!!oi}),er=Kn||Kn===0?(0,ie.hU)(Kn,In&&nr):null;if(ha.href!==void 0)return br(y.createElement("a",Object.assign({},ha,{className:b()(Ws,{[`${pn}-disabled`]:Di}),style:Ua,onClick:Li,ref:Ei}),$r,er));let Tr=y.createElement("button",Object.assign({},Qn,{type:ti,className:Ws,style:Ua,onClick:Li,disabled:Di,ref:Ei}),$r,er,Mi&&y.createElement(Wt,{key:"compact",prefixCls:pn}));return(0,ie.Te)(Qo)||(Tr=y.createElement(N.Z,{component:"Button",disabled:!!oi},Tr)),br(Tr)},xt=(0,y.forwardRef)(Tt);xt.Group=q,xt.__ANT_BUTTON=!0;var Ht=xt,Vn=Ht},3303:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Li}});var y=m(74902),A=m(67294),b=m(94184),z=m.n(b),k=m(87462),N=m(97685),w=m(91),I=m(88905),C=m(88708),f=m(66680),S=m(21770),P=A.createContext(null),W=P,te=m(71002),q=m(4942),ie=m(1413),he="__rc_cascader_search_mark__",de=function(wi,Mi,Fr){var qn=Fr.label;return Mi.some(function(ms){return String(ms[qn]).toLowerCase().includes(wi.toLowerCase())})},fe=function(wi,Mi,Fr,qn){return Mi.map(function(ms){return ms[qn.label]}).join(" / ")},ke=function(nr,wi,Mi,Fr,qn,ms){var ya=qn.filter,ha=ya===void 0?de:ya,Ws=qn.render,Ua=Ws===void 0?fe:Ws,Ao=qn.limit,dl=Ao===void 0?50:Ao,$r=qn.sort;return A.useMemo(function(){var er=[];if(!nr)return[];function Tr(pr,ci){var Eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;pr.forEach(function(mo){if(!(!$r&&dl!==!1&&dl>0&&er.length>=dl)){var Ts=[].concat((0,y.Z)(ci),[mo]),xs=mo[Mi.children],Sr=Eo||mo.disabled;if((!xs||xs.length===0||ms)&&ha(nr,Ts,{label:Mi.label})){var ui;er.push((0,ie.Z)((0,ie.Z)({},mo),{},(ui={disabled:Sr},(0,q.Z)(ui,Mi.label,Ua(nr,Ts,Fr,Mi)),(0,q.Z)(ui,he,Ts),(0,q.Z)(ui,Mi.children,void 0),ui)))}xs&&Tr(mo[Mi.children],Ts,Sr)}})}return Tr(wi,[]),$r&&er.sort(function(pr,ci){return $r(pr[he],ci[he],nr,Mi)}),dl!==!1&&dl>0?er.slice(0,dl):er},[nr,wi,Mi,Fr,Ua,ms,ha,$r,dl])},Ie="__RC_CASCADER_SPLIT__",Be="SHOW_PARENT",be="SHOW_CHILD";function me(nr){return nr.join(Ie)}function ye(nr){return nr.map(me)}function _e(nr){return nr.split(Ie)}function Ce(nr){var wi=nr||{},Mi=wi.label,Fr=wi.value,qn=wi.children,ms=Fr||"value";return{label:Mi||"label",value:ms,key:ms,children:qn||"children"}}function De(nr,wi){var Mi,Fr;return(Mi=nr.isLeaf)!==null&&Mi!==void 0?Mi:!((Fr=nr[wi.children])!==null&&Fr!==void 0&&Fr.length)}function ge(nr){var wi=nr.parentElement;if(wi){var Mi=nr.offsetTop-wi.offsetTop;Mi-wi.scrollTop<0?wi.scrollTo({top:Mi}):Mi+nr.offsetHeight-wi.scrollTop>wi.offsetHeight&&wi.scrollTo({top:Mi+nr.offsetHeight-wi.offsetHeight})}}function je(nr,wi){return nr.map(function(Mi){var Fr;return(Fr=Mi[he])===null||Fr===void 0?void 0:Fr.map(function(qn){return qn[wi.value]})})}function we(nr){return Array.isArray(nr)&&Array.isArray(nr[0])}function Pt(nr){return nr?we(nr)?nr:(nr.length===0?[]:[nr]).map(function(wi){return Array.isArray(wi)?wi:[wi]}):[]}function dt(nr,wi,Mi){var Fr=new Set(nr),qn=wi();return nr.filter(function(ms){var ya=qn[ms],ha=ya?ya.parent:null,Ws=ya?ya.children:null;return ya&&ya.node.disabled?!0:Mi===be?!(Ws&&Ws.some(function(Ua){return Ua.key&&Fr.has(Ua.key)})):!(ha&&!ha.node.disabled&&Fr.has(ha.key))})}function He(nr,wi,Mi){for(var Fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,qn=wi,ms=[],ya=function(){var Ua,Ao,dl,$r=nr[ha],er=(Ua=qn)===null||Ua===void 0?void 0:Ua.findIndex(function(pr){var ci=pr[Mi.value];return Fr?String(ci)===String($r):ci===$r}),Tr=er!==-1?(Ao=qn)===null||Ao===void 0?void 0:Ao[er]:null;ms.push({value:(dl=Tr==null?void 0:Tr[Mi.value])!==null&&dl!==void 0?dl:$r,index:er,option:Tr}),qn=Tr==null?void 0:Tr[Mi.children]},ha=0;ha1){var Xt=Tr.slice(0,-1);mo(Xt)}else Ua(!1)},Sr=function(){var Xt,gn=((Xt=ci[pr])===null||Xt===void 0?void 0:Xt[Mi.children])||[],En=gn.find(function(at){return!at.disabled});if(En){var tt=[].concat((0,y.Z)(Tr),[En[Mi.value]]);mo(tt)}};A.useImperativeHandle(nr,function(){return{onKeyDown:function(Xt){var gn=Xt.which;switch(gn){case ho.Z.UP:case ho.Z.DOWN:{var En=0;gn===ho.Z.UP?En=-1:gn===ho.Z.DOWN&&(En=1),En!==0&&Ts(En);break}case ho.Z.LEFT:{if(Ws)break;dl?Sr():xs();break}case ho.Z.RIGHT:{if(Ws)break;dl?xs():Sr();break}case ho.Z.BACKSPACE:{Ws||xs();break}case ho.Z.ENTER:{if(Tr.length){var tt=ci[pr],at=(tt==null?void 0:tt[he])||[];at.length?ms(at.map(function(gt){return gt[Mi.value]}),at[at.length-1]):ms(Tr,ci[pr])}break}case ho.Z.ESC:Ua(!1),Ao&&Xt.stopPropagation()}},onKeyUp:function(){}}})},ji=A.forwardRef(function(nr,wi){var Mi,Fr,qn,ms,ya=nr.prefixCls,ha=nr.multiple,Ws=nr.searchValue,Ua=nr.toggleOpen,Ao=nr.notFoundContent,dl=nr.direction,$r=nr.open,er=A.useRef(),Tr=dl==="rtl",pr=A.useContext(W),ci=pr.options,Eo=pr.values,mo=pr.halfValues,Ts=pr.fieldNames,xs=pr.changeOnSelect,Sr=pr.onSelect,ui=pr.searchOptions,Xt=pr.dropdownPrefixCls,gn=pr.loadData,En=pr.expandTrigger,tt=Xt||ya,at=A.useState([]),gt=(0,N.Z)(at,2),Ne=gt[0],lt=gt[1],St=function(Nl){if(!(!gn||Ws)){var vs=He(Nl,ci,Ts),Hi=vs.map(function(Cs){var Ka=Cs.option;return Ka}),to=Hi[Hi.length-1];if(to&&!De(to,Ts)){var sa=me(Nl);lt(function(Cs){return[].concat((0,y.Z)(Cs),[sa])}),gn(Hi)}}};A.useEffect(function(){Ne.length&&Ne.forEach(function(la){var Nl=_e(la),vs=He(Nl,ci,Ts,!0).map(function(to){var sa=to.option;return sa}),Hi=vs[vs.length-1];(!Hi||Hi[Ts.children]||De(Hi,Ts))&<(function(to){return to.filter(function(sa){return sa!==la})})})},[ci,Ne,Ts]);var ln=A.useMemo(function(){return new Set(ye(Eo))},[Eo]),jn=A.useMemo(function(){return new Set(ye(mo))},[mo]),Cr=So(ha,$r),ki=(0,N.Z)(Cr,2),Vi=ki[0],Ki=ki[1],fs=function(Nl){Ki(Nl),St(Nl)},Ns=function(Nl){var vs=Nl.disabled,Hi=De(Nl,Ts);return!vs&&(Hi||xs||ha)},Bs=function(Nl,vs){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Sr(Nl),!ha&&(vs||xs&&(En==="hover"||Hi))&&Ua(!1)},_a=A.useMemo(function(){return Ws?ui:ci},[Ws,ui,ci]),oo=A.useMemo(function(){for(var la=[{options:_a}],Nl=_a,vs=je(Nl,Ts),Hi=function(){var Ka=Vi[to],Wu=Nl.find(function(Pc,vo){return(vs[vo]?me(vs[vo]):Pc[Ts.value])===Ka}),rc=Wu==null?void 0:Wu[Ts.children];if(!(rc!=null&&rc.length))return"break";Nl=rc,la.push({options:rc})},to=0;to":Eo,Ts=Mi.loadingIcon,xs=Mi.direction,Sr=Mi.notFoundContent,ui=Sr===void 0?"Not Found":Sr,Xt=!!Ws,gn=(0,yt.C8)(Ua,{value:Ao,postState:Pt}),En=(0,N.Z)(gn,2),tt=En[0],at=En[1],gt=A.useMemo(function(){return Ce(dl)},[JSON.stringify(dl)]),Ne=yn(gt,ha),lt=(0,N.Z)(Ne,3),St=lt[0],ln=lt[1],jn=lt[2],Cr=ft(St,gt),ki=no(Xt,tt,ln,jn,Cr),Vi=(0,N.Z)(ki,3),Ki=Vi[0],fs=Vi[1],Ns=Vi[2],Bs=(0,yt.zX)(function(Bl){if(at(Bl),er){var Fa=Pt(Bl),ml=Fa.map(function(vs){return He(vs,St,gt).map(function(Hi){return Hi.option})}),la=Xt?Fa:Fa[0],Nl=Xt?ml:ml[0];er(la,Nl)}}),_a=gi(Xt,Bs,Ki,fs,Ns,ln,jn,Tr),oo=(0,yt.zX)(function(Bl){_a(Bl)}),Ds=A.useMemo(function(){return{options:St,fieldNames:gt,values:Ki,halfValues:fs,changeOnSelect:$r,onSelect:oo,checkable:Ws,searchOptions:[],dropdownPrefixCls:null,loadData:pr,expandTrigger:ci,expandIcon:mo,loadingIcon:Ts,dropdownMenuColumnStyle:null}},[St,gt,Ki,fs,$r,oo,Ws,pr,ci,mo,Ts]),oa="".concat(qn,"-panel"),va=!St.length;return A.createElement(W.Provider,{value:Ds},A.createElement("div",{className:z()(oa,(wi={},(0,q.Z)(wi,"".concat(oa,"-rtl"),xs==="rtl"),(0,q.Z)(wi,"".concat(oa,"-empty"),va),wi),ya),style:ms},va?ui:A.createElement(No,{prefixCls:qn,searchValue:null,multiple:Xt,toggleOpen:Ct,open:!0,direction:xs})))}function sn(nr){var wi=nr.onPopupVisibleChange,Mi=nr.popupVisible,Fr=nr.popupClassName,qn=nr.popupPlacement;warning(!wi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Mi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Fr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(qn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Mt(nr,wi){if(nr){var Mi=function Fr(qn){for(var ms=0;ms":lt,ln=nr.loadingIcon,jn=nr.children,Cr=nr.dropdownMatchSelectWidth,ki=Cr===void 0?!1:Cr,Vi=nr.showCheckedStrategy,Ki=Vi===void 0?Be:Vi,fs=(0,w.Z)(nr,xt),Ns=(0,C.ZP)(Mi),Bs=!!dl,_a=(0,S.Z)(ya,{value:ha,postState:Pt}),oo=(0,N.Z)(_a,2),Ds=oo[0],oa=oo[1],va=A.useMemo(function(){return Ce(ms)},[JSON.stringify(ms)]),Bl=yn(va,mo),Fa=(0,N.Z)(Bl,3),ml=Fa[0],la=Fa[1],Nl=Fa[2],vs=(0,S.Z)("",{value:Tr,postState:function(Hl){return Hl||""}}),Hi=(0,N.Z)(vs,2),to=Hi[0],sa=Hi[1],Cs=function(Hl,Jl){sa(Hl),Jl.source!=="blur"&&pr&&pr(Hl)},Ka=Lr(ci),Wu=(0,N.Z)(Ka,2),rc=Wu[0],Pc=Wu[1],vo=ke(to,ml,va,Ts||qn,Pc,Ws),eo=ft(ml,va),ds=no(Bs,Ds,la,Nl,eo),Wn=(0,N.Z)(ds,3),yr=Wn[0],ai=Wn[1],hi=Wn[2],Ji=A.useMemo(function(){var el=ye(yr),Hl=dt(el,la,Ki);return[].concat((0,y.Z)(hi),(0,y.Z)(Nl(Hl)))},[yr,la,Nl,hi,Ki]),so=bt(Ji,ml,va,Bs,Ao),Pi=(0,f.Z)(function(el){if(oa(el),Ua){var Hl=Pt(el),Jl=Hl.map(function(Cn){return He(Cn,ml,va).map(function(Eu){return Eu.option})}),vu=Bs?Hl:Hl[0],au=Bs?Jl:Jl[0];Ua(vu,au)}}),us=gi(Bs,Pi,yr,ai,hi,la,Nl,Ki),pa=(0,f.Z)(function(el){(!Bs||er)&&sa(""),us(el)}),$a=function(Hl,Jl){if(Jl.type==="clear"){Pi([]);return}var vu=Jl.values[0],au=vu.valueCells;pa(au)},hl=ui!==void 0?ui:Sr,Zl=gn||Xt,Ml=at||tt,Za=function(Hl){gt==null||gt(Hl),Ne==null||Ne(Hl)},ku=A.useMemo(function(){return{options:ml,fieldNames:va,values:yr,halfValues:ai,changeOnSelect:Ws,onSelect:pa,checkable:dl,searchOptions:vo,dropdownPrefixCls:Ts,loadData:xs,expandTrigger:Eo,expandIcon:St,loadingIcon:ln,dropdownMenuColumnStyle:En}},[ml,va,yr,ai,Ws,pa,dl,vo,Ts,xs,Eo,St,ln,En]),ea=!(to?vo:ml).length,Qa=to&&Pc.matchInputWidth||ea?{}:{minWidth:"auto"};return A.createElement(W.Provider,{value:ku},A.createElement(I.Ac,(0,k.Z)({},fs,{ref:wi,id:Ns,prefixCls:qn,autoClearSearchValue:er,dropdownMatchSelectWidth:ki,dropdownStyle:Qa,displayValues:so,onDisplayValuesChange:$a,mode:Bs?"multiple":void 0,searchValue:to,onSearch:Cs,showSearch:rc,OptionList:Ve,emptyOptions:ea,open:hl,dropdownClassName:Zl,placement:Ml,onDropdownVisibleChange:Za,getRawInputElement:function(){return jn}})))});Ht.SHOW_PARENT=Be,Ht.SHOW_CHILD=be,Ht.Panel=Wt;var Vn=Ht,en=Vn,fr=m(98423),Kr=m(33603),ri=m(8745),si=m(9708),uo=m(53124),Qo=m(88258),_n=m(98866),Vr=m(98675),qr=m(65223),Ui=m(87244),xo=m(13458),Us=m(43277),zn=m(78642),Kn=m(4173);function Or(nr,wi){const{getPrefixCls:Mi,direction:Fr,renderEmpty:qn}=A.useContext(uo.E_),ms=wi||Fr,ya=Mi("select",nr),ha=Mi("cascader",nr);return[ya,ha,ms,qn]}function mi(nr,wi){return A.useMemo(()=>wi?A.createElement("span",{className:`${nr}-checkbox-inner`}):!1,[wi])}var Er=m(62946),ti=m(22508),di=m(68843);function rn(nr,wi,Mi){let Fr=Mi;Mi||(Fr=wi?A.createElement(Er.Z,null):A.createElement(di.Z,null));const qn=A.createElement("span",{className:`${nr}-menu-item-loading-icon`},A.createElement(ti.Z,{spin:!0}));return[Fr,qn]}var Qn=m(80110),Xr=m(67968),ao=m(63185),as=m(14747),pn=nr=>{const{prefixCls:wi,componentCls:Mi}=nr,Fr=`${Mi}-menu-item`,qn=` - &${Fr}-expand ${Fr}-expand-icon, - ${Fr}-loading-icon -`;return[(0,ao.C2)(`${wi}-checkbox`,nr),{[Mi]:{"&-checkbox":{top:0,marginInlineEnd:nr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Mi}-menu-empty`]:{[`${Mi}-menu`]:{width:"100%",height:"auto",[Fr]:{color:nr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:nr.controlItemWidth,height:nr.dropdownHeight,margin:0,padding:nr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${nr.lineWidth}px ${nr.lineType} ${nr.colorSplit}`},"&-item":Object.assign(Object.assign({},as.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:nr.optionPadding,lineHeight:nr.lineHeight,cursor:"pointer",transition:`all ${nr.motionDurationMid}`,borderRadius:nr.borderRadiusSM,"&:hover":{background:nr.controlItemBgHover},"&-disabled":{color:nr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[qn]:{color:nr.colorTextDisabled}},[`&-active:not(${Fr}-disabled)`]:{["&, &:hover"]:{fontWeight:nr.optionSelectedFontWeight,backgroundColor:nr.optionSelectedBg}},"&-content":{flex:"auto"},[qn]:{marginInlineStart:nr.paddingXXS,color:nr.colorTextDescription,fontSize:nr.fontSizeIcon},"&-keyword":{color:nr.colorHighlight}})}}}]};const br=nr=>{const{componentCls:wi,antCls:Mi}=nr;return[{[wi]:{width:nr.controlWidth}},{[`${wi}-dropdown`]:[{[`&${Mi}-select-dropdown`]:{padding:0}},pn(nr)]},{[`${wi}-dropdown-rtl`]:{direction:"rtl"}},(0,Qn.c)(nr)]},Jr=nr=>{const wi=Math.round((nr.controlHeight-nr.fontSize*nr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:nr.controlItemBgActive,optionSelectedFontWeight:nr.fontWeightStrong,optionPadding:`${wi}px ${nr.paddingSM}px`,menuPadding:nr.paddingXXS}};var vi=(0,Xr.Z)("Cascader",nr=>[br(nr)],Jr);const Di=nr=>{const{componentCls:wi}=nr;return{[`${wi}-panel`]:[pn(nr),{display:"inline-flex",border:`${nr.lineWidth}px ${nr.lineType} ${nr.colorSplit}`,borderRadius:nr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${wi}-menus`]:{alignItems:"stretch"},[`${wi}-menu`]:{height:"auto"},"&-empty":{padding:nr.paddingXXS}}]}};var co=(0,Xr.Z)(["Cascader","Panel"],nr=>Di(nr),Jr);function Qr(nr){const{prefixCls:wi,className:Mi,multiple:Fr,rootClassName:qn,notFoundContent:ms,direction:ya,expandIcon:ha}=nr,[Ws,Ua,Ao,dl]=Or(wi,ya),[,$r]=vi(Ua);co(Ua);const er=Ao==="rtl",[Tr,pr]=rn(Ws,er,ha),ci=ms||(dl==null?void 0:dl("Cascader"))||A.createElement(Qo.Z,{componentName:"Cascader"}),Eo=mi(Ua,Fr);return A.createElement(Wt,Object.assign({},nr,{checkable:Eo,prefixCls:Ua,className:z()(Mi,$r,qn),notFoundContent:ci,direction:Ao,expandIcon:Tr,loadingIcon:pr}))}var oi=function(nr,wi){var Mi={};for(var Fr in nr)Object.prototype.hasOwnProperty.call(nr,Fr)&&wi.indexOf(Fr)<0&&(Mi[Fr]=nr[Fr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,Fr=Object.getOwnPropertySymbols(nr);qnWs===0?[ha]:[].concat((0,y.Z)(ya),[wi,ha]),[]),qn=[];let ms=0;return Fr.forEach((ya,ha)=>{const Ws=ms+ya.length;let Ua=nr.slice(ms,Ws);ms=Ws,ha%2===1&&(Ua=A.createElement("span",{className:`${Mi}-menu-item-keyword`,key:`separator-${ha}`},Ua)),qn.push(Ua)}),qn}const Gn=(nr,wi,Mi,Fr)=>{const qn=[],ms=nr.toLowerCase();return wi.forEach((ya,ha)=>{ha!==0&&qn.push(" / ");let Ws=ya[Fr.label];const Ua=typeof Ws;(Ua==="string"||Ua==="number")&&(Ws=tn(String(Ws),ms,Mi)),qn.push(Ws)}),qn},Ei=A.forwardRef((nr,wi)=>{const{prefixCls:Mi,size:Fr,disabled:qn,className:ms,rootClassName:ya,multiple:ha,bordered:Ws=!0,transitionName:Ua,choiceTransitionName:Ao="",popupClassName:dl,dropdownClassName:$r,expandIcon:er,placement:Tr,showSearch:pr,allowClear:ci=!0,notFoundContent:Eo,direction:mo,getPopupContainer:Ts,status:xs,showArrow:Sr,builtinPlacements:ui,style:Xt}=nr,gn=oi(nr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),En=(0,fr.Z)(gn,["suffixIcon"]),{getPopupContainer:tt,getPrefixCls:at,popupOverflow:gt,cascader:Ne}=A.useContext(uo.E_),{status:lt,hasFeedback:St,isFormItemInput:ln,feedbackIcon:jn}=A.useContext(qr.aM),Cr=(0,si.F)(lt,xs),[ki,Vi,Ki,fs]=Or(Mi,mo),Ns=Ki==="rtl",Bs=at(),[_a,oo]=(0,Ui.Z)(ki),[Ds]=vi(Vi),{compactSize:oa,compactItemClassnames:va}=(0,Kn.ri)(ki,mo),Bl=Eo||(fs==null?void 0:fs("Cascader"))||A.createElement(Qo.Z,{componentName:"Cascader"}),Fa=z()(dl||$r,`${Vi}-dropdown`,{[`${Vi}-dropdown-rtl`]:Ki==="rtl"},ya,oo),ml=A.useMemo(()=>{if(!pr)return pr;let Wn={render:Gn};return typeof pr=="object"&&(Wn=Object.assign(Object.assign({},Wn),pr)),Wn},[pr]),la=(0,Vr.Z)(Wn=>{var yr;return(yr=Fr!=null?Fr:oa)!==null&&yr!==void 0?yr:Wn}),Nl=A.useContext(_n.Z),vs=qn!=null?qn:Nl,[Hi,to]=rn(ki,Ns,er),sa=mi(Vi,ha),Cs=(0,zn.Z)(nr.suffixIcon,Sr),{suffixIcon:Ka,removeIcon:Wu,clearIcon:rc}=(0,Us.Z)(Object.assign(Object.assign({},nr),{hasFeedback:St,feedbackIcon:jn,showSuffixIcon:Cs,multiple:ha,prefixCls:ki,componentName:"Cascader"})),Pc=A.useMemo(()=>Tr!==void 0?Tr:Ns?"bottomRight":"bottomLeft",[Tr,Ns]),vo=(0,xo.Z)(ui,gt),eo=ci===!0?{clearIcon:rc}:ci,ds=A.createElement(en,Object.assign({prefixCls:ki,className:z()(!Mi&&Vi,{[`${ki}-lg`]:la==="large",[`${ki}-sm`]:la==="small",[`${ki}-rtl`]:Ns,[`${ki}-borderless`]:!Ws,[`${ki}-in-form-item`]:ln},(0,si.Z)(ki,Cr,St),va,Ne==null?void 0:Ne.className,ms,ya,oo),disabled:vs,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),Xt)},En,{builtinPlacements:vo,direction:Ki,placement:Pc,notFoundContent:Bl,allowClear:eo,showSearch:ml,expandIcon:Hi,suffixIcon:Ka,removeIcon:Wu,loadingIcon:to,checkable:sa,dropdownClassName:Fa,dropdownPrefixCls:Mi||Vi,choiceTransitionName:(0,Kr.m)(Bs,"",Ao),transitionName:(0,Kr.m)(Bs,"slide-up",Ua),getPopupContainer:Ts||tt,ref:wi}));return Ds(_a(ds))}),In=(0,ri.Z)(Ei);Ei.SHOW_PARENT=Ar,Ei.SHOW_CHILD=Zi,Ei.Panel=Qr,Ei._InternalPanelDoNotUseOrYouWillBeFired=In;var Li=Ei},84567:function(nt,V,m){"use strict";m.d(V,{Z:function(){return me}});var y=m(67294),A=m(94184),b=m.n(A),z=m(50132),k=m(45353),N=m(17415),w=m(53124),I=m(98866),C=m(65223),S=y.createContext(null),P=m(63185),W=function(ye,_e){var Ce={};for(var De in ye)Object.prototype.hasOwnProperty.call(ye,De)&&_e.indexOf(De)<0&&(Ce[De]=ye[De]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,De=Object.getOwnPropertySymbols(ye);ge{var Ce;const{prefixCls:De,className:ge,rootClassName:je,children:we,indeterminate:Pt=!1,style:dt,onMouseEnter:He,onMouseLeave:bt,skipGroup:ft=!1,disabled:$t}=ye,vt=W(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yn,direction:Bn,checkbox:Lr}=y.useContext(w.E_),ii=y.useContext(S),{isFormItemInput:gi}=y.useContext(C.aM),no=y.useContext(I.Z),To=(Ce=(ii==null?void 0:ii.disabled)||$t)!==null&&Ce!==void 0?Ce:no,_r=y.useRef(vt.value);y.useEffect(()=>{ii==null||ii.registerValue(vt.value)},[]),y.useEffect(()=>{if(!ft)return vt.value!==_r.current&&(ii==null||ii.cancelValue(_r.current),ii==null||ii.registerValue(vt.value),_r.current=vt.value),()=>ii==null?void 0:ii.cancelValue(vt.value)},[vt.value]);const Bo=yn("checkbox",De),[hs,ve]=(0,P.ZP)(Bo),So=Object.assign({},vt);ii&&!ft&&(So.onChange=function(){vt.onChange&&vt.onChange.apply(vt,arguments),ii.toggleOption&&ii.toggleOption({label:we,value:vt.value})},So.name=ii.name,So.checked=ii.value.includes(vt.value));const ho=b()(`${Bo}-wrapper`,{[`${Bo}-rtl`]:Bn==="rtl",[`${Bo}-wrapper-checked`]:So.checked,[`${Bo}-wrapper-disabled`]:To,[`${Bo}-wrapper-in-form-item`]:gi},Lr==null?void 0:Lr.className,ge,je,ve),go=b()({[`${Bo}-indeterminate`]:Pt},N.A,ve),ji=Pt?"mixed":void 0;return hs(y.createElement(k.Z,{component:"Checkbox",disabled:To},y.createElement("label",{className:ho,style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),dt),onMouseEnter:He,onMouseLeave:bt},y.createElement(z.Z,Object.assign({"aria-checked":ji},So,{prefixCls:Bo,className:go,disabled:To,ref:_e})),we!==void 0&&y.createElement("span",null,we))))};var ie=y.forwardRef(te),he=m(74902),de=m(98423),fe=function(ye,_e){var Ce={};for(var De in ye)Object.prototype.hasOwnProperty.call(ye,De)&&_e.indexOf(De)<0&&(Ce[De]=ye[De]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,De=Object.getOwnPropertySymbols(ye);ge{const{defaultValue:Ce,children:De,options:ge=[],prefixCls:je,className:we,rootClassName:Pt,style:dt,onChange:He}=ye,bt=fe(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ft,direction:$t}=y.useContext(w.E_),[vt,yn]=y.useState(bt.value||Ce||[]),[Bn,Lr]=y.useState([]);y.useEffect(()=>{"value"in bt&&yn(bt.value||[])},[bt.value]);const ii=y.useMemo(()=>ge.map(No=>typeof No=="string"||typeof No=="number"?{label:No,value:No}:No),[ge]),gi=No=>{Lr(dn=>dn.filter(Ve=>Ve!==No))},no=No=>{Lr(dn=>[].concat((0,he.Z)(dn),[No]))},To=No=>{const dn=vt.indexOf(No.value),Ve=(0,he.Z)(vt);dn===-1?Ve.push(No.value):Ve.splice(dn,1),"value"in bt||yn(Ve),He==null||He(Ve.filter(yt=>Bn.includes(yt)).sort((yt,Ct)=>{const Wt=ii.findIndex(Mt=>Mt.value===yt),sn=ii.findIndex(Mt=>Mt.value===Ct);return Wt-sn}))},_r=ft("checkbox",je),Bo=`${_r}-group`,[hs,ve]=(0,P.ZP)(_r),So=(0,de.Z)(bt,["value","disabled"]),ho=ge.length?ii.map(No=>y.createElement(ie,{prefixCls:_r,key:No.value.toString(),disabled:"disabled"in No?No.disabled:bt.disabled,value:No.value,checked:vt.includes(No.value),onChange:No.onChange,className:`${Bo}-item`,style:No.style,title:No.title,id:No.id},No.label)):De,go={toggleOption:To,value:vt,disabled:bt.disabled,name:bt.name,registerValue:no,cancelValue:gi},ji=b()(Bo,{[`${Bo}-rtl`]:$t==="rtl"},we,Pt,ve);return hs(y.createElement("div",Object.assign({className:ji,style:dt},So,{ref:_e}),y.createElement(S.Provider,{value:go},ho)))},Ie=y.forwardRef(ke);var Be=y.memo(Ie);const be=ie;be.Group=Be,be.__ANT_CHECKBOX=!0;var me=be},63185:function(nt,V,m){"use strict";m.d(V,{C2:function(){return k}});var y=m(14747),A=m(45503),b=m(67968);const z=N=>{const{checkboxCls:w}=N,I=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",flexWrap:"wrap",columnGap:N.marginXS,[`> ${N.antCls}-row`]:{flex:1}}),[I]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${I}`]:{marginInlineStart:0},[`&${I}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,y.Wf)(N)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:N.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,y.oN)(N))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:N.checkboxSize,height:N.checkboxSize,direction:"ltr",backgroundColor:N.colorBgContainer,border:`${N.lineWidth}px ${N.lineType} ${N.colorBorder}`,borderRadius:N.borderRadiusSM,borderCollapse:"separate",transition:`all ${N.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:N.checkboxSize/14*5,height:N.checkboxSize/14*8,border:`${N.lineWidthBold}px solid ${N.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${N.motionDurationFast} ${N.motionEaseInBack}, opacity ${N.motionDurationFast}`}},"& + span":{paddingInlineStart:N.paddingXS,paddingInlineEnd:N.paddingXS}})},{[` - ${I}:not(${I}-disabled), - ${w}:not(${w}-disabled) - `]:{[`&:hover ${w}-inner`]:{borderColor:N.colorPrimary}},[`${I}:not(${I}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:N.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:N.colorPrimary,borderColor:N.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${N.motionDurationMid} ${N.motionEaseOutBack} ${N.motionDurationFast}`}}},[` - ${I}-checked:not(${I}-disabled), - ${w}-checked:not(${w}-disabled) - `]:{[`&:hover ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:N.colorBgContainer,borderColor:N.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:N.fontSizeLG/2,height:N.fontSizeLG/2,backgroundColor:N.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${I}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:N.colorBgContainerDisabled,borderColor:N.colorBorder,"&:after":{borderColor:N.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:N.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:N.colorTextDisabled}}}]};function k(N,w){const I=(0,A.TS)(w,{checkboxCls:`.${N}`,checkboxSize:w.controlInteractiveSize});return[z(I)]}V.ZP=(0,b.Z)("Checkbox",(N,w)=>{let{prefixCls:I}=w;return[k(I,N)]})},87052:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pc}});var y=m(67294),A=m(94184),b=m.n(A),z=m(21770),k=m(8745),N=m(9708),w=m(53124),I=m(98675),C=m(65223),f=m(55241),S=m(25976),P=m(96074),W=m(87462),te=m(4942),q=m(97685),ie=m(1413),he=m(15671),de=m(43144),fe=m(60136),ke=m(29388),Ie=m(91),Be=m(71002),be=m(10274),me=["b"],ye=["v"],_e=function(eo){return Math.round(Number(eo||0))},Ce=function(eo){if(eo&&(0,Be.Z)(eo)==="object"&&"h"in eo&&"b"in eo){var ds=eo,Wn=ds.b,yr=(0,Ie.Z)(ds,me);return(0,ie.Z)((0,ie.Z)({},yr),{},{v:Wn})}return typeof eo=="string"&&/hsb/.test(eo)?eo.replace(/hsb/,"hsv"):eo},De=function(vo){(0,fe.Z)(ds,vo);var eo=(0,ke.Z)(ds);function ds(Wn){return(0,he.Z)(this,ds),eo.call(this,Ce(Wn))}return(0,de.Z)(ds,[{key:"toHsbString",value:function(){var yr=this.toHsb(),ai=_e(yr.s*100),hi=_e(yr.b*100),Ji=_e(yr.h),so=yr.a,Pi="hsb(".concat(Ji,", ").concat(ai,"%, ").concat(hi,"%)"),us="hsba(".concat(Ji,", ").concat(ai,"%, ").concat(hi,"%, ").concat(so.toFixed(so===0?0:2),")");return so===1?Pi:us}},{key:"toHsb",value:function(){var yr=this.toHsv();(0,Be.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(yr=this.originalInput);var ai=yr,hi=ai.v,Ji=(0,Ie.Z)(ai,ye);return(0,ie.Z)((0,ie.Z)({},Ji),{},{b:yr.v})}}]),ds}(be.C),ge="rc-color-picker",je=function(eo){return eo instanceof De?eo:new De(eo)},we=je("#1677ff"),Pt=function(eo){var ds=eo.offset,Wn=eo.targetRef,yr=eo.containerRef,ai=eo.color,hi=eo.type,Ji=yr.current.getBoundingClientRect(),so=Ji.width,Pi=Ji.height,us=Wn.current.getBoundingClientRect(),pa=us.width,$a=us.height,hl=pa/2,Zl=$a/2,Ml=(ds.x+hl)/so,Za=1-(ds.y+Zl)/Pi,ku=ai.toHsb(),ea=Ml,Qa=(ds.x+hl)/so*360;if(hi)switch(hi){case"hue":return je((0,ie.Z)((0,ie.Z)({},ku),{},{h:Qa<=0?0:Qa}));case"alpha":return je((0,ie.Z)((0,ie.Z)({},ku),{},{a:ea<=0?0:ea}))}return je({h:ku.h,s:Ml<=0?0:Ml,b:Za>=1?1:Za,a:ku.a})},dt=function(eo,ds,Wn,yr){var ai=eo.current.getBoundingClientRect(),hi=ai.width,Ji=ai.height,so=ds.current.getBoundingClientRect(),Pi=so.width,us=so.height,pa=Pi/2,$a=us/2,hl=Wn.toHsb();if(!(Pi===0&&us===0||Pi!==us)){if(yr)switch(yr){case"hue":return{x:hl.h/360*hi-pa,y:-$a/3};case"alpha":return{x:hl.a/1*hi-pa,y:-$a/3}}return{x:hl.s*hi-pa,y:(1-hl.b)*Ji-$a}}},He=function(eo){var ds=eo.color,Wn=eo.prefixCls,yr=eo.className,ai=eo.style,hi=eo.onClick,Ji="".concat(Wn,"-color-block");return y.createElement("div",{className:b()(Ji,yr),style:ai,onClick:hi},y.createElement("div",{className:"".concat(Ji,"-inner"),style:{background:ds}}))},bt=He;function ft(vo){var eo="touches"in vo?vo.touches[0]:vo,ds=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Wn=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:eo.pageX-ds,pageY:eo.pageY-Wn}}function $t(vo){var eo=vo.offset,ds=vo.targetRef,Wn=vo.containerRef,yr=vo.direction,ai=vo.onDragChange,hi=vo.onDragChangeComplete,Ji=vo.calculate,so=vo.color,Pi=vo.disabledDrag,us=(0,y.useState)(eo||{x:0,y:0}),pa=(0,q.Z)(us,2),$a=pa[0],hl=pa[1],Zl=(0,y.useRef)(null),Ml=(0,y.useRef)(null),Za=(0,y.useRef)({flag:!1});(0,y.useEffect)(function(){if(Za.current.flag===!1){var Hl=Ji==null?void 0:Ji(Wn);Hl&&hl(Hl)}},[so,Wn]),(0,y.useEffect)(function(){return function(){document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Zl.current),document.removeEventListener("touchend",Ml.current),Zl.current=null,Ml.current=null}},[]);var ku=function(Jl){var vu=ft(Jl),au=vu.pageX,Cn=vu.pageY,Eu=Wn.current.getBoundingClientRect(),ls=Eu.x,Ks=Eu.y,xa=Eu.width,Il=Eu.height,El=ds.current.getBoundingClientRect(),vl=El.width,fu=El.height,Fu=vl/2,lc=fu/2,Ic=Math.max(0,Math.min(au-ls,xa))-Fu,Uc=Math.max(0,Math.min(Cn-Ks,Il))-lc,zd={x:Ic,y:yr==="x"?$a.y:Uc};if(vl===0&&fu===0||vl!==fu)return!1;hl(zd),ai==null||ai(zd)},ea=function(Jl){Jl.preventDefault(),ku(Jl)},Qa=function(Jl){Jl.preventDefault(),Za.current.flag=!1,document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Zl.current),document.removeEventListener("touchend",Ml.current),Zl.current=null,Ml.current=null,hi==null||hi()},el=function(Jl){document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),!Pi&&(ku(Jl),Za.current.flag=!0,document.addEventListener("mousemove",ea),document.addEventListener("mouseup",Qa),document.addEventListener("touchmove",ea),document.addEventListener("touchend",Qa),Zl.current=ea,Ml.current=Qa)};return[$a,el]}var vt=$t,yn=function(eo){var ds=eo.size,Wn=ds===void 0?"default":ds,yr=eo.color,ai=eo.prefixCls;return y.createElement("div",{className:b()("".concat(ai,"-handler"),(0,te.Z)({},"".concat(ai,"-handler-sm"),Wn==="small")),style:{backgroundColor:yr}})},Bn=yn,Lr=function(eo){var ds=eo.children,Wn=eo.style,yr=eo.prefixCls;return y.createElement("div",{className:"".concat(yr,"-palette"),style:(0,ie.Z)({position:"relative"},Wn)},ds)},ii=Lr,gi=(0,y.forwardRef)(function(vo,eo){var ds=vo.children,Wn=vo.offset;return y.createElement("div",{ref:eo,style:{position:"absolute",left:Wn.x,top:Wn.y,zIndex:1}},ds)}),no=gi,To=function(eo){var ds=eo.color,Wn=eo.onChange,yr=eo.prefixCls,ai=eo.onChangeComplete,hi=eo.disabled,Ji=(0,y.useRef)(),so=(0,y.useRef)(),Pi=(0,y.useRef)(ds),us=vt({color:ds,containerRef:Ji,targetRef:so,calculate:function(Ml){return dt(Ml,so,ds)},onDragChange:function(Ml){var Za=Pt({offset:Ml,targetRef:so,containerRef:Ji,color:ds});Pi.current=Za,Wn(Za)},onDragChangeComplete:function(){return ai==null?void 0:ai(Pi.current)},disabledDrag:hi}),pa=(0,q.Z)(us,2),$a=pa[0],hl=pa[1];return y.createElement("div",{ref:Ji,className:"".concat(yr,"-select"),onMouseDown:hl,onTouchStart:hl},y.createElement(ii,{prefixCls:yr},y.createElement(no,{offset:$a,ref:so},y.createElement(Bn,{color:ds.toRgbString(),prefixCls:yr})),y.createElement("div",{className:"".concat(yr,"-saturation"),style:{backgroundColor:"hsl(".concat(ds.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},_r=To,Bo=function(eo){var ds=eo.colors,Wn=eo.children,yr=eo.direction,ai=yr===void 0?"to right":yr,hi=eo.type,Ji=eo.prefixCls,so=(0,y.useMemo)(function(){return ds.map(function(Pi,us){var pa=je(Pi);return hi==="alpha"&&us===ds.length-1&&pa.setAlpha(1),pa.toRgbString()}).join(",")},[ds,hi]);return y.createElement("div",{className:"".concat(Ji,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(ai,", ").concat(so,")")}},Wn)},hs=Bo,ve=function(eo){var ds=eo.gradientColors,Wn=eo.direction,yr=eo.type,ai=yr===void 0?"hue":yr,hi=eo.color,Ji=eo.value,so=eo.onChange,Pi=eo.onChangeComplete,us=eo.disabled,pa=eo.prefixCls,$a=(0,y.useRef)(),hl=(0,y.useRef)(),Zl=(0,y.useRef)(hi),Ml=vt({color:hi,targetRef:hl,containerRef:$a,calculate:function(el){return dt(el,hl,hi,ai)},onDragChange:function(el){var Hl=Pt({offset:el,targetRef:hl,containerRef:$a,color:hi,type:ai});Zl.current=Hl,so(Hl)},onDragChangeComplete:function(){Pi==null||Pi(Zl.current,ai)},direction:"x",disabledDrag:us}),Za=(0,q.Z)(Ml,2),ku=Za[0],ea=Za[1];return y.createElement("div",{ref:$a,className:b()("".concat(pa,"-slider"),"".concat(pa,"-slider-").concat(ai)),onMouseDown:ea,onTouchStart:ea},y.createElement(ii,{prefixCls:pa},y.createElement(no,{offset:ku,ref:hl},y.createElement(Bn,{size:"small",color:Ji,prefixCls:pa})),y.createElement(hs,{colors:ds,direction:Wn,type:ai,prefixCls:pa})))},So=ve;function ho(vo){return vo!==void 0}var go=function(eo,ds){var Wn=ds.defaultValue,yr=ds.value,ai=(0,y.useState)(function(){var Pi;return ho(yr)?Pi=yr:ho(Wn)?Pi=Wn:Pi=eo,je(Pi)}),hi=(0,q.Z)(ai,2),Ji=hi[0],so=hi[1];return(0,y.useEffect)(function(){yr&&so(je(yr))},[yr]),[Ji,so]},ji=go,No=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],dn=(0,y.forwardRef)(function(vo,eo){var ds=vo.value,Wn=vo.defaultValue,yr=vo.prefixCls,ai=yr===void 0?ge:yr,hi=vo.onChange,Ji=vo.onChangeComplete,so=vo.className,Pi=vo.style,us=vo.panelRender,pa=vo.disabledAlpha,$a=pa===void 0?!1:pa,hl=vo.disabled,Zl=hl===void 0?!1:hl,Ml=ji(we,{value:ds,defaultValue:Wn}),Za=(0,q.Z)(Ml,2),ku=Za[0],ea=Za[1],Qa=(0,y.useMemo)(function(){var au=je(ku.toRgbString());return au.setAlpha(1),au.toRgbString()},[ku]),el=b()("".concat(ai,"-panel"),so,(0,te.Z)({},"".concat(ai,"-panel-disabled"),Zl)),Hl={prefixCls:ai,onChangeComplete:Ji,disabled:Zl},Jl=function(Cn,Eu){ds||ea(Cn),hi==null||hi(Cn,Eu)},vu=y.createElement(y.Fragment,null,y.createElement(_r,(0,W.Z)({color:ku,onChange:Jl},Hl)),y.createElement("div",{className:"".concat(ai,"-slider-container")},y.createElement("div",{className:b()("".concat(ai,"-slider-group"),(0,te.Z)({},"".concat(ai,"-slider-group-disabled-alpha"),$a))},y.createElement(So,(0,W.Z)({gradientColors:No,color:ku,value:"hsl(".concat(ku.toHsb().h,",100%, 50%)"),onChange:function(Cn){return Jl(Cn,"hue")}},Hl)),!$a&&y.createElement(So,(0,W.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Qa],color:ku,value:ku.toRgbString(),onChange:function(Cn){return Jl(Cn,"alpha")}},Hl))),y.createElement(bt,{color:ku.toRgbString(),prefixCls:ai})));return y.createElement("div",{className:el,style:Pi,ref:eo},typeof us=="function"?us(vu):vu)}),Ve=dn;const yt=y.createContext({}),Ct=y.createContext({}),{Provider:Wt}=yt,{Provider:sn}=Ct,Mt=(vo,eo)=>(vo==null?void 0:vo.replace(/[^\w/]/gi,"").slice(0,eo?8:6))||"",Tt=(vo,eo)=>vo?Mt(vo,eo):"";let xt=function(){function vo(eo){(0,he.Z)(this,vo),this.metaColor=new De(eo),eo||this.metaColor.setAlpha(0)}return(0,de.Z)(vo,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Tt(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),vo}();const Ht="ant-color-picker",Vn=vo=>vo instanceof xt?vo:new xt(vo),en=vo=>Math.round(Number(vo||0)),fr=vo=>en(vo.toHsb().a*100),Kr=(vo,eo)=>{const ds=vo.toHsb();return ds.a=eo||1,Vn(ds)};var si=vo=>{let{prefixCls:eo,value:ds,colorCleared:Wn,onChange:yr}=vo;const ai=()=>{if(ds&&!Wn){const hi=ds.toHsb();hi.a=0;const Ji=Vn(hi);yr==null||yr(Ji)}};return y.createElement("div",{className:`${eo}-clear`,onClick:ai})},uo=m(34041),Qo;(function(vo){vo.hex="hex",vo.rgb="rgb",vo.hsb="hsb"})(Qo||(Qo={}));var _n=m(73360),qr=vo=>{let{prefixCls:eo,min:ds=0,max:Wn=100,value:yr,onChange:ai,className:hi,formatter:Ji}=vo;const so=`${eo}-steppers`,[Pi,us]=(0,y.useState)(yr);return(0,y.useEffect)(()=>{Number.isNaN(yr)||us(yr)},[yr]),y.createElement(_n.Z,{className:b()(so,hi),min:ds,max:Wn,value:Pi,formatter:Ji,size:"small",onChange:pa=>{yr||us(pa||0),ai==null||ai(pa)}})},xo=vo=>{let{prefixCls:eo,value:ds,onChange:Wn}=vo;const yr=`${eo}-alpha-input`,[ai,hi]=(0,y.useState)(Vn(ds||"#000"));(0,y.useEffect)(()=>{ds&&hi(ds)},[ds]);const Ji=so=>{const Pi=ai.toHsb();Pi.a=(so||0)/100;const us=Vn(Pi);ds||hi(us),Wn==null||Wn(us)};return y.createElement(qr,{value:fr(ai),prefixCls:eo,formatter:so=>`${so}%`,className:yr,onChange:Ji})},Us=m(75008);const zn=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Kn=vo=>zn.test(`#${vo}`);var mi=vo=>{let{prefixCls:eo,value:ds,onChange:Wn}=vo;const yr=`${eo}-hex-input`,[ai,hi]=(0,y.useState)(ds==null?void 0:ds.toHex());(0,y.useEffect)(()=>{const so=ds==null?void 0:ds.toHex();Kn(so)&&ds&&hi(Mt(so))},[ds]);const Ji=so=>{const Pi=so.target.value;hi(Mt(Pi)),Kn(Mt(Pi,!0))&&(Wn==null||Wn(Vn(Pi)))};return y.createElement(Us.Z,{className:yr,value:ai,prefix:"#",onChange:Ji,size:"small"})},ti=vo=>{let{prefixCls:eo,value:ds,onChange:Wn}=vo;const yr=`${eo}-hsb-input`,[ai,hi]=(0,y.useState)(Vn(ds||"#000"));(0,y.useEffect)(()=>{ds&&hi(ds)},[ds]);const Ji=(so,Pi)=>{const us=ai.toHsb();us[Pi]=Pi==="h"?so:(so||0)/100;const pa=Vn(us);ds||hi(pa),Wn==null||Wn(pa)};return y.createElement("div",{className:yr},y.createElement(qr,{max:360,min:0,value:Number(ai.toHsb().h),prefixCls:eo,className:yr,formatter:so=>en(so||0).toString(),onChange:so=>Ji(Number(so),"h")}),y.createElement(qr,{max:100,min:0,value:Number(ai.toHsb().s)*100,prefixCls:eo,className:yr,formatter:so=>`${en(so||0)}%`,onChange:so=>Ji(Number(so),"s")}),y.createElement(qr,{max:100,min:0,value:Number(ai.toHsb().b)*100,prefixCls:eo,className:yr,formatter:so=>`${en(so||0)}%`,onChange:so=>Ji(Number(so),"b")}))},rn=vo=>{let{prefixCls:eo,value:ds,onChange:Wn}=vo;const yr=`${eo}-rgb-input`,[ai,hi]=(0,y.useState)(Vn(ds||"#000"));(0,y.useEffect)(()=>{ds&&hi(ds)},[ds]);const Ji=(so,Pi)=>{const us=ai.toRgb();us[Pi]=so||0;const pa=Vn(us);ds||hi(pa),Wn==null||Wn(pa)};return y.createElement("div",{className:yr},y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().r),prefixCls:eo,className:yr,onChange:so=>Ji(Number(so),"r")}),y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().g),prefixCls:eo,className:yr,onChange:so=>Ji(Number(so),"g")}),y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().b),prefixCls:eo,className:yr,onChange:so=>Ji(Number(so),"b")}))};const Qn=[Qo.hex,Qo.hsb,Qo.rgb].map(vo=>({value:vo,label:vo.toLocaleUpperCase()}));var ao=vo=>{const{prefixCls:eo,format:ds,value:Wn,disabledAlpha:yr,onFormatChange:ai,onChange:hi}=vo,[Ji,so]=(0,z.Z)(Qo.hex,{value:ds,onChange:ai}),Pi=`${eo}-input`,us=$a=>{so($a)},pa=(0,y.useMemo)(()=>{const $a={value:Wn,prefixCls:eo,onChange:hi};switch(Ji){case Qo.hsb:return y.createElement(ti,Object.assign({},$a));case Qo.rgb:return y.createElement(rn,Object.assign({},$a));case Qo.hex:default:return y.createElement(mi,Object.assign({},$a))}},[Ji,eo,Wn,hi]);return y.createElement("div",{className:`${Pi}-container`},y.createElement(uo.Z,{value:Ji,bordered:!1,getPopupContainer:$a=>$a,popupMatchSelectWidth:68,placement:"bottomRight",onChange:us,className:`${eo}-format-select`,size:"small",options:Qn}),y.createElement("div",{className:Pi},pa),!yr&&y.createElement(xo,{prefixCls:eo,value:Wn,onChange:hi}))},as=function(vo,eo){var ds={};for(var Wn in vo)Object.prototype.hasOwnProperty.call(vo,Wn)&&eo.indexOf(Wn)<0&&(ds[Wn]=vo[Wn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,Wn=Object.getOwnPropertySymbols(vo);yr{const vo=(0,y.useContext)(yt),{prefixCls:eo,colorCleared:ds,allowClear:Wn,value:yr,disabledAlpha:ai,onChange:hi,onClear:Ji,onChangeComplete:so}=vo,Pi=as(vo,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return y.createElement(y.Fragment,null,Wn&&y.createElement(si,Object.assign({prefixCls:eo,value:yr,colorCleared:ds,onChange:us=>{hi==null||hi(us),Ji==null||Ji()}},Pi)),y.createElement(Ve,{prefixCls:eo,value:yr==null?void 0:yr.toHsb(),disabledAlpha:ai,onChange:(us,pa)=>hi==null?void 0:hi(us,pa,!0),onChangeComplete:so}),y.createElement(ao,Object.assign({value:yr,onChange:hi,prefixCls:eo,disabledAlpha:ai},Pi)))},br=m(68843),Jr=m(74902),vi=m(80334),Di=m(50344),co=m(82225),Qr=m(15105),oi=y.forwardRef(function(vo,eo){var ds,Wn=vo.prefixCls,yr=vo.forceRender,ai=vo.className,hi=vo.style,Ji=vo.children,so=vo.isActive,Pi=vo.role,us=y.useState(so||yr),pa=(0,q.Z)(us,2),$a=pa[0],hl=pa[1];return y.useEffect(function(){(yr||so)&&hl(!0)},[yr,so]),$a?y.createElement("div",{ref:eo,className:b()("".concat(Wn,"-content"),(ds={},(0,te.Z)(ds,"".concat(Wn,"-content-active"),so),(0,te.Z)(ds,"".concat(Wn,"-content-inactive"),!so),ds),ai),style:hi,role:Pi},y.createElement("div",{className:"".concat(Wn,"-content-box")},Ji)):null});oi.displayName="PanelContent";var Zi=oi,Ar=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],tn=y.forwardRef(function(vo,eo){var ds,Wn,yr=vo.showArrow,ai=yr===void 0?!0:yr,hi=vo.headerClass,Ji=vo.isActive,so=vo.onItemClick,Pi=vo.forceRender,us=vo.className,pa=vo.prefixCls,$a=vo.collapsible,hl=vo.accordion,Zl=vo.panelKey,Ml=vo.extra,Za=vo.header,ku=vo.expandIcon,ea=vo.openMotion,Qa=vo.destroyInactivePanel,el=vo.children,Hl=(0,Ie.Z)(vo,Ar),Jl=$a==="disabled",vu=$a==="header",au=$a==="icon",Cn=Ml!=null&&typeof Ml!="boolean",Eu=function(){so==null||so(Zl)},ls=function(fu){(fu.key==="Enter"||fu.keyCode===Qr.Z.ENTER||fu.which===Qr.Z.ENTER)&&Eu()},Ks=typeof ku=="function"?ku(vo):y.createElement("i",{className:"arrow"});Ks&&(Ks=y.createElement("div",{className:"".concat(pa,"-expand-icon"),onClick:["header","icon"].includes($a)?Eu:void 0},Ks));var xa=b()((ds={},(0,te.Z)(ds,"".concat(pa,"-item"),!0),(0,te.Z)(ds,"".concat(pa,"-item-active"),Ji),(0,te.Z)(ds,"".concat(pa,"-item-disabled"),Jl),ds),us),Il=b()(hi,(Wn={},(0,te.Z)(Wn,"".concat(pa,"-header"),!0),(0,te.Z)(Wn,"".concat(pa,"-header-collapsible-only"),vu),(0,te.Z)(Wn,"".concat(pa,"-icon-collapsible-only"),au),Wn)),El={className:Il,"aria-expanded":Ji,"aria-disabled":Jl,onKeyDown:ls};return!vu&&!au&&(El.onClick=Eu,El.role=hl?"tab":"button",El.tabIndex=Jl?-1:0),y.createElement("div",(0,W.Z)({},Hl,{ref:eo,className:xa}),y.createElement("div",El,ai&&Ks,y.createElement("span",{className:"".concat(pa,"-header-text"),onClick:$a==="header"?Eu:void 0},Za),Cn&&y.createElement("div",{className:"".concat(pa,"-extra")},Ml)),y.createElement(co.ZP,(0,W.Z)({visible:Ji,leavedClassName:"".concat(pa,"-content-hidden")},ea,{forceRender:Pi,removeOnLeave:Qa}),function(vl,fu){var Fu=vl.className,lc=vl.style;return y.createElement(Zi,{ref:fu,prefixCls:pa,className:Fu,style:lc,isActive:Ji,forceRender:Pi,role:hl?"tabpanel":void 0},el)}))}),Gn=tn,Ei=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],In=function(eo,ds){var Wn=ds.prefixCls,yr=ds.accordion,ai=ds.collapsible,hi=ds.destroyInactivePanel,Ji=ds.onItemClick,so=ds.activeKey,Pi=ds.openMotion,us=ds.expandIcon;return eo.map(function(pa,$a){var hl=pa.children,Zl=pa.label,Ml=pa.key,Za=pa.collapsible,ku=pa.onItemClick,ea=pa.destroyInactivePanel,Qa=(0,Ie.Z)(pa,Ei),el=String(Ml!=null?Ml:$a),Hl=Za!=null?Za:ai,Jl=ea!=null?ea:hi,vu=function(Eu){Hl!=="disabled"&&(Ji(Eu),ku==null||ku(Eu))},au=!1;return yr?au=so[0]===el:au=so.indexOf(el)>-1,y.createElement(Gn,(0,W.Z)({},Qa,{prefixCls:Wn,key:el,panelKey:el,isActive:au,accordion:yr,openMotion:Pi,expandIcon:us,header:Zl,collapsible:Hl,onItemClick:vu,destroyInactivePanel:Jl}),hl)})},Li=function(eo,ds,Wn){if(!eo)return null;var yr=Wn.prefixCls,ai=Wn.accordion,hi=Wn.collapsible,Ji=Wn.destroyInactivePanel,so=Wn.onItemClick,Pi=Wn.activeKey,us=Wn.openMotion,pa=Wn.expandIcon,$a=eo.key||String(ds),hl=eo.props,Zl=hl.header,Ml=hl.headerClass,Za=hl.destroyInactivePanel,ku=hl.collapsible,ea=hl.onItemClick,Qa=!1;ai?Qa=Pi[0]===$a:Qa=Pi.indexOf($a)>-1;var el=ku!=null?ku:hi,Hl=function(au){el!=="disabled"&&(so(au),ea==null||ea(au))},Jl={key:$a,panelKey:$a,header:Zl,headerClass:Ml,isActive:Qa,prefixCls:yr,destroyInactivePanel:Za!=null?Za:Ji,openMotion:us,accordion:ai,children:eo.props.children,onItemClick:Hl,expandIcon:pa,collapsible:el};return typeof eo.type=="string"?eo:(Object.keys(Jl).forEach(function(vu){typeof Jl[vu]=="undefined"&&delete Jl[vu]}),y.cloneElement(eo,Jl))};function nr(vo,eo,ds){return Array.isArray(vo)?In(vo,ds):(0,Di.Z)(eo).map(function(Wn,yr){return Li(Wn,yr,ds)})}var wi=nr;function Mi(vo){var eo=vo;if(!Array.isArray(eo)){var ds=(0,Be.Z)(eo);eo=ds==="number"||ds==="string"?[eo]:[]}return eo.map(function(Wn){return String(Wn)})}var Fr=y.forwardRef(function(vo,eo){var ds=vo.prefixCls,Wn=ds===void 0?"rc-collapse":ds,yr=vo.destroyInactivePanel,ai=yr===void 0?!1:yr,hi=vo.style,Ji=vo.accordion,so=vo.className,Pi=vo.children,us=vo.collapsible,pa=vo.openMotion,$a=vo.expandIcon,hl=vo.activeKey,Zl=vo.defaultActiveKey,Ml=vo.onChange,Za=vo.items,ku=b()(Wn,so),ea=(0,z.Z)([],{value:hl,onChange:function(Cn){return Ml==null?void 0:Ml(Cn)},defaultValue:Zl,postState:Mi}),Qa=(0,q.Z)(ea,2),el=Qa[0],Hl=Qa[1],Jl=function(Cn){return Hl(function(){if(Ji)return el[0]===Cn?[]:[Cn];var Eu=el.indexOf(Cn),ls=Eu>-1;return ls?el.filter(function(Ks){return Ks!==Cn}):[].concat((0,Jr.Z)(el),[Cn])})};(0,vi.ZP)(!Pi,"`children` will be removed in next major version. Please use `items` instead.");var vu=wi(Za,Pi,{prefixCls:Wn,accordion:Ji,openMotion:pa,expandIcon:$a,collapsible:us,destroyInactivePanel:ai,onItemClick:Jl,activeKey:el});return y.createElement("div",{ref:eo,className:ku,style:hi,role:Ji?"tablist":void 0},vu)}),qn=Object.assign(Fr,{Panel:Gn}),ms=qn,ya=qn.Panel,ha=m(98423),Ws=m(33603),Ua=m(96159),dl=y.forwardRef((vo,eo)=>{const{getPrefixCls:ds}=y.useContext(w.E_),{prefixCls:Wn,className:yr,showArrow:ai=!0}=vo,hi=ds("collapse",Wn),Ji=b()({[`${hi}-no-arrow`]:!ai},yr);return y.createElement(ms.Panel,Object.assign({ref:eo},vo,{prefixCls:hi,className:Ji}))}),$r=m(14747),er=m(33507),Tr=m(67968),pr=m(45503);const ci=vo=>{const{componentCls:eo,contentBg:ds,padding:Wn,headerBg:yr,headerPadding:ai,collapseHeaderPaddingSM:hi,collapseHeaderPaddingLG:Ji,collapsePanelBorderRadius:so,lineWidth:Pi,lineType:us,colorBorder:pa,colorText:$a,colorTextHeading:hl,colorTextDisabled:Zl,fontSize:Ml,fontSizeLG:Za,lineHeight:ku,marginSM:ea,paddingSM:Qa,paddingLG:el,paddingXS:Hl,motionDurationSlow:Jl,fontSizeIcon:vu,contentPadding:au}=vo,Cn=`${Pi}px ${us} ${pa}`;return{[eo]:Object.assign(Object.assign({},(0,$r.Wf)(vo)),{backgroundColor:yr,border:Cn,borderBottom:0,borderRadius:`${so}px`,["&-rtl"]:{direction:"rtl"},[`& > ${eo}-item`]:{borderBottom:Cn,["&:last-child"]:{[` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${Dr}-icon-only`]:{fontSize:oi}},Te(`${Dr}-primary`,jr),Te(`${Dr}-danger`,eo)]}};const Xt=on=>{const{componentCls:Dr,iconCls:oi,fontWeight:Ii}=on;return{[Dr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ii,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${on.lineWidth}px ${on.lineType} transparent`,cursor:"pointer",transition:`all ${on.motionDurationMid} ${on.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:on.lineHeight,color:on.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${Dr}-icon`]:{lineHeight:0},[`> ${oi} + span, > span + ${oi}`]:{marginInlineStart:on.marginXS},[`&:not(${Dr}-icon-only) > ${Dr}-icon`]:{[`&${Dr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:on.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,De.Qy)(on)),[`&${Dr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${Dr}-two-chinese-chars > *:not(${oi})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${Dr}-compact-item`]:{flex:"none"},[`&-compact-item${Dr}-primary`]:{[`&:not([disabled]) + ${Dr}-compact-item${Dr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-on.lineWidth,insetInlineStart:-on.lineWidth,display:"inline-block",width:on.lineWidth,height:`calc(100% + ${on.lineWidth*2}px)`,backgroundColor:on.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${Dr}-primary`]:{[`&:not([disabled]) + ${Dr}-compact-vertical-item${Dr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-on.lineWidth,insetInlineStart:-on.lineWidth,display:"inline-block",width:`calc(100% + ${on.lineWidth*2}px)`,height:on.lineWidth,backgroundColor:on.colorPrimaryHover,content:'""'}}}}}}},Ft=(on,Dr,oi)=>({[`&:not(:disabled):not(${on}-disabled)`]:{"&:hover":Dr,"&:active":oi}}),ot=on=>({minWidth:on.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),xt=on=>({borderRadius:on.controlHeight,paddingInlineStart:on.controlHeight/2,paddingInlineEnd:on.controlHeight/2}),ut=on=>({cursor:"not-allowed",borderColor:on.borderColorDisabled,color:on.colorTextDisabled,backgroundColor:on.colorBgContainerDisabled,boxShadow:"none"}),$t=(on,Dr,oi,Ii,jr,eo,Uo,Fn)=>({[`&${on}-background-ghost`]:Object.assign(Object.assign({color:oi||void 0,backgroundColor:Dr,borderColor:Ii||void 0,boxShadow:"none"},Ft(on,Object.assign({backgroundColor:Dr},Uo),Object.assign({backgroundColor:Dr},Fn))),{"&:disabled":{cursor:"not-allowed",color:jr||void 0,borderColor:eo||void 0}})}),_t=on=>({[`&:disabled, &${on.componentCls}-disabled`]:Object.assign({},ut(on))}),bn=on=>Object.assign({},_t(on)),Wn=on=>({[`&:disabled, &${on.componentCls}-disabled`]:{cursor:"not-allowed",color:on.colorTextDisabled}}),$r=on=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bn(on)),{backgroundColor:on.defaultBg,borderColor:on.defaultBorderColor,color:on.defaultColor,boxShadow:on.defaultShadow}),Ft(on.componentCls,{color:on.colorPrimaryHover,borderColor:on.colorPrimaryHover},{color:on.colorPrimaryActive,borderColor:on.colorPrimaryActive})),$t(on.componentCls,on.ghostBg,on.defaultGhostColor,on.defaultGhostBorderColor,on.colorTextDisabled,on.colorBorder)),{[`&${on.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:on.colorError,borderColor:on.colorError},Ft(on.componentCls,{color:on.colorErrorHover,borderColor:on.colorErrorBorderHover},{color:on.colorErrorActive,borderColor:on.colorErrorActive})),$t(on.componentCls,on.ghostBg,on.colorError,on.colorError,on.colorTextDisabled,on.colorBorder)),_t(on))}),wi=on=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bn(on)),{color:on.primaryColor,backgroundColor:on.colorPrimary,boxShadow:on.primaryShadow}),Ft(on.componentCls,{color:on.colorTextLightSolid,backgroundColor:on.colorPrimaryHover},{color:on.colorTextLightSolid,backgroundColor:on.colorPrimaryActive})),$t(on.componentCls,on.ghostBg,on.colorPrimary,on.colorPrimary,on.colorTextDisabled,on.colorBorder,{color:on.colorPrimaryHover,borderColor:on.colorPrimaryHover},{color:on.colorPrimaryActive,borderColor:on.colorPrimaryActive})),{[`&${on.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:on.colorError,boxShadow:on.dangerShadow,color:on.dangerColor},Ft(on.componentCls,{backgroundColor:on.colorErrorHover},{backgroundColor:on.colorErrorActive})),$t(on.componentCls,on.ghostBg,on.colorError,on.colorError,on.colorTextDisabled,on.colorBorder,{color:on.colorErrorHover,borderColor:on.colorErrorHover},{color:on.colorErrorActive,borderColor:on.colorErrorActive})),_t(on))}),oo=on=>Object.assign(Object.assign({},$r(on)),{borderStyle:"dashed"}),Mo=on=>Object.assign(Object.assign(Object.assign({color:on.colorLink},Ft(on.componentCls,{color:on.colorLinkHover,backgroundColor:on.linkHoverBg},{color:on.colorLinkActive})),Wn(on)),{[`&${on.componentCls}-dangerous`]:Object.assign(Object.assign({color:on.colorError},Ft(on.componentCls,{color:on.colorErrorHover},{color:on.colorErrorActive})),Wn(on))}),Ti=on=>Object.assign(Object.assign(Object.assign({},Ft(on.componentCls,{color:on.colorText,backgroundColor:on.textHoverBg},{color:on.colorText,backgroundColor:on.colorBgTextActive})),Wn(on)),{[`&${on.componentCls}-dangerous`]:Object.assign(Object.assign({color:on.colorError},Wn(on)),Ft(on.componentCls,{color:on.colorErrorHover,backgroundColor:on.colorErrorBg},{color:on.colorErrorHover,backgroundColor:on.colorErrorBg}))}),Hr=on=>{const{componentCls:Dr}=on;return{[`${Dr}-default`]:$r(on),[`${Dr}-primary`]:wi(on),[`${Dr}-dashed`]:oo(on),[`${Dr}-link`]:Mo(on),[`${Dr}-text`]:Ti(on),[`${Dr}-ghost`]:$t(on.componentCls,on.ghostBg,on.colorBgContainer,on.colorBgContainer,on.colorTextDisabled,on.colorBorder)}},Ho=function(on){let Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:oi,controlHeight:Ii,fontSize:jr,lineHeight:eo,lineWidth:Uo,borderRadius:Fn,buttonPaddingHorizontal:Qr,iconCls:ci}=on,ji=Math.max(0,(Ii-jr*eo)/2-Uo),cr=`${oi}-icon-only`;return[{[`${oi}${Dr}`]:{fontSize:jr,height:Ii,padding:`${ji}px ${Qr}px`,borderRadius:Fn,[`&${cr}`]:{width:Ii,paddingInlineStart:0,paddingInlineEnd:0,[`&${oi}-round`]:{width:"auto"},[ci]:{fontSize:on.buttonIconOnlyFontSize}},[`&${oi}-loading`]:{opacity:on.opacityLoading,cursor:"default"},[`${oi}-loading-icon`]:{transition:`width ${on.motionDurationSlow} ${on.motionEaseInOut}, opacity ${on.motionDurationSlow} ${on.motionEaseInOut}`}}},{[`${oi}${oi}-circle${Dr}`]:ot(on)},{[`${oi}${oi}-round${Dr}`]:xt(on)}]},Ss=on=>Ho((0,ke.TS)(on,{fontSize:on.contentFontSize})),Pe=on=>{const Dr=(0,ke.TS)(on,{controlHeight:on.controlHeightSM,fontSize:on.contentFontSizeSM,padding:on.paddingXS,buttonPaddingHorizontal:on.paddingInlineSM,borderRadius:on.borderRadiusSM,buttonIconOnlyFontSize:on.onlyIconSizeSM});return Ho(Dr,`${on.componentCls}-sm`)},qo=on=>{const Dr=(0,ke.TS)(on,{controlHeight:on.controlHeightLG,fontSize:on.contentFontSizeLG,buttonPaddingHorizontal:on.paddingInlineLG,borderRadius:on.borderRadiusLG,buttonIconOnlyFontSize:on.onlyIconSizeLG});return Ho(Dr,`${on.componentCls}-lg`)},Ki=on=>{const{componentCls:Dr}=on;return{[Dr]:{[`&${Dr}-block`]:{width:"100%"}}}},Do=on=>{const{paddingInline:Dr,onlyIconSize:oi}=on;return(0,ke.TS)(on,{buttonPaddingHorizontal:Dr,buttonIconOnlyFontSize:oi})},ai=on=>({fontWeight:400,defaultShadow:`0 ${on.controlOutlineWidth}px 0 ${on.controlTmpOutline}`,primaryShadow:`0 ${on.controlOutlineWidth}px 0 ${on.controlOutline}`,dangerShadow:`0 ${on.controlOutlineWidth}px 0 ${on.colorErrorOutline}`,primaryColor:on.colorTextLightSolid,dangerColor:on.colorTextLightSolid,borderColorDisabled:on.colorBorder,defaultGhostColor:on.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:on.colorBgContainer,paddingInline:on.paddingContentHorizontal-on.lineWidth,paddingInlineLG:on.paddingContentHorizontal-on.lineWidth,paddingInlineSM:8-on.lineWidth,onlyIconSize:on.fontSizeLG,onlyIconSizeSM:on.fontSizeLG-2,onlyIconSizeLG:on.fontSizeLG+2,groupBorderColor:on.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:on.colorBgTextHover,defaultColor:on.colorText,defaultBg:on.colorBgContainer,defaultBorderColor:on.colorBorder,defaultBorderColorDisabled:on.colorBorder,contentFontSize:on.fontSize,contentFontSizeSM:on.fontSize,contentFontSizeLG:on.fontSizeLG});var $o=(0,$e.Z)("Button",on=>{const Dr=Do(on);return[Xt(Dr),Pe(Dr),Ss(Dr),qo(Dr),Ki(Dr),Hr(Dr),Oe(Dr)]},ai),Mn=_(80110);function nt(on,Dr){return{[`&-item:not(${Dr}-last-item)`]:{marginBottom:-on.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Dt(on,Dr){return{[`&-item:not(${Dr}-first-item):not(${Dr}-last-item)`]:{borderRadius:0},[`&-item${Dr}-first-item:not(${Dr}-last-item)`]:{[`&, &${on}-sm, &${on}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${Dr}-last-item:not(${Dr}-first-item)`]:{[`&, &${on}-sm, &${on}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Kt(on){const Dr=`${on.componentCls}-compact-vertical`;return{[Dr]:Object.assign(Object.assign({},nt(on,Dr)),Dt(on.componentCls,Dr))}}var mn=(0,$e.b)(["Button","compact"],on=>{const Dr=Do(on);return[(0,Mn.c)(Dr),Kt(Dr)]},ai),kn=function(on,Dr){var oi={};for(var Ii in on)Object.prototype.hasOwnProperty.call(on,Ii)&&Dr.indexOf(Ii)<0&&(oi[Ii]=on[Ii]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jr=0,Ii=Object.getOwnPropertySymbols(on);jr{var oi,Ii;const{loading:jr=!1,prefixCls:eo,type:Uo="default",danger:Fn,shape:Qr="default",size:ci,styles:ji,disabled:cr,className:Qn,rootClassName:Vt,children:Yt,icon:En,ghost:er=!1,block:Tr=!1,htmlType:Nr="button",classNames:Zn,style:Ut={}}=on,$n=kn(on,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:xr,autoInsertSpaceInButton:Br,direction:_o,button:Qt}=(0,v.useContext)(O.E_),xn=xr("btn",eo),[Sr,qr]=$o(xn),Mi=(0,v.useContext)(L.Z),zi=cr!=null?cr:Mi,Yi=(0,v.useContext)(K),Si=(0,v.useMemo)(()=>an(jr),[jr]),[ni,qi]=(0,v.useState)(Si.loading),[Vr,ii]=(0,v.useState)(!1),nr=(0,v.createRef)(),Mr=(0,B.sQ)(Dr,nr),rr=v.Children.count(Yt)===1&&!En&&!(0,fe.Te)(Uo);(0,v.useEffect)(()=>{let Fi=null;Si.delay>0?Fi=setTimeout(()=>{Fi=null,qi(!0)},Si.delay):qi(Si.loading);function No(){Fi&&(clearTimeout(Fi),Fi=null)}return No},[Si]),(0,v.useEffect)(()=>{if(!Mr||!Mr.current||Br===!1)return;const Fi=Mr.current.textContent;rr&&(0,fe.aG)(Fi)?Vr||ii(!0):Vr&&ii(!1)},[Mr]);const to=Fi=>{const{onClick:No}=on;if(ni||zi){Fi.preventDefault();return}No==null||No(Fi)},ts=Br!==!1,{compactSize:Wr,compactItemClassnames:no}=(0,g.ri)(xn,_o),Vi={large:"lg",small:"sm",middle:void 0},Pn=(0,S.Z)(Fi=>{var No,yr;return(yr=(No=ci!=null?ci:Wr)!==null&&No!==void 0?No:Yi)!==null&&yr!==void 0?yr:Fi}),mi=Pn&&Vi[Pn]||"",ya=ni?"loading":En,Zs=(0,b.Z)($n,["navigate"]),qs=w()(xn,qr,{[`${xn}-${Qr}`]:Qr!=="default"&&Qr,[`${xn}-${Uo}`]:Uo,[`${xn}-${mi}`]:mi,[`${xn}-icon-only`]:!Yt&&Yt!==0&&!!ya,[`${xn}-background-ghost`]:er&&!(0,fe.Te)(Uo),[`${xn}-loading`]:ni,[`${xn}-two-chinese-chars`]:Vr&&ts&&!ni,[`${xn}-block`]:Tr,[`${xn}-dangerous`]:!!Fn,[`${xn}-rtl`]:_o==="rtl"},no,Qn,Vt,Qt==null?void 0:Qt.className),al=Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Ut),co=w()(Zn==null?void 0:Zn.icon,(oi=Qt==null?void 0:Qt.classNames)===null||oi===void 0?void 0:oi.icon),tl=Object.assign(Object.assign({},(ji==null?void 0:ji.icon)||{}),((Ii=Qt==null?void 0:Qt.styles)===null||Ii===void 0?void 0:Ii.icon)||{}),fl=En&&!ni?v.createElement(be,{prefixCls:xn,className:co,style:tl},En):v.createElement(ze,{existIcon:!!En,prefixCls:xn,loading:!!ni}),Ai=Yt||Yt===0?(0,fe.hU)(Yt,rr&&ts):null;if(Zs.href!==void 0)return Sr(v.createElement("a",Object.assign({},Zs,{className:w()(qs,{[`${xn}-disabled`]:zi}),href:zi?void 0:Zs.href,style:al,onClick:to,ref:Mr,tabIndex:zi?-1:0}),fl,Ai));let Xi=v.createElement("button",Object.assign({},$n,{type:Nr,className:qs,style:al,onClick:to,disabled:zi,ref:Mr}),fl,Ai,no&&v.createElement(mn,{key:"compact",prefixCls:xn}));return(0,fe.Te)(Uo)||(Xi=v.createElement(V.Z,{component:"Button",disabled:!!ni},Xi)),Sr(Xi)},kt=(0,v.forwardRef)(tn);kt.Group=ae,kt.__ANT_BUTTON=!0;var en=kt,Vn=en},3303:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ts}});var v=_(74902),R=_(67294),w=_(94184),b=_.n(w),B=_(87462),V=_(1413),O=_(97685),L=_(91),S=_(88905),g=_(88708),T=_(66680),k=_(21770),K=R.createContext(null),he=K,ae=_(71002),fe=_(4942),_e="__rc_cascader_search_mark__",be=function(no,Vi,Pn){var mi=Pn.label;return Vi.some(function(ya){return String(ya[mi]).toLowerCase().includes(no.toLowerCase())})},xe=function(no,Vi,Pn,mi){return Vi.map(function(ya){return ya[mi.label]}).join(" / ")},Xe=function(Wr,no,Vi,Pn,mi,ya){var Zs=mi.filter,qs=Zs===void 0?be:Zs,al=mi.render,co=al===void 0?xe:al,tl=mi.limit,fl=tl===void 0?50:tl,Ai=mi.sort;return R.useMemo(function(){var Xi=[];if(!Wr)return[];function Fi(No,yr){var ui=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;No.forEach(function(Zo){if(!(!Ai&&fl!==!1&&fl>0&&Xi.length>=fl)){var ns=[].concat((0,v.Z)(yr),[Zo]),Lr=Zo[Vi.children],Ei=ui||Zo.disabled;if((!Lr||Lr.length===0||ya)&&qs(Wr,ns,{label:Vi.label})){var hn;Xi.push((0,V.Z)((0,V.Z)({},Zo),{},(hn={disabled:Ei},(0,fe.Z)(hn,Vi.label,co(Wr,ns,Pn,Vi)),(0,fe.Z)(hn,_e,ns),(0,fe.Z)(hn,Vi.children,void 0),hn)))}Lr&&Fi(Zo[Vi.children],ns,Ei)}})}return Fi(no,[]),Ai&&Xi.sort(function(No,yr){return Ai(No[_e],yr[_e],Wr,Vi)}),fl!==!1&&fl>0?Xi.slice(0,fl):Xi},[Wr,no,Vi,Pn,co,ya,qs,Ai,fl])},We="__RC_CASCADER_SPLIT__",dt="SHOW_PARENT",Me="SHOW_CHILD";function Se(Wr){return Wr.join(We)}function ze(Wr){return Wr.map(Se)}function De(Wr){return Wr.split(We)}function ke(Wr){var no=Wr||{},Vi=no.label,Pn=no.value,mi=no.children,ya=Pn||"value";return{label:Vi||"label",value:ya,key:ya,children:mi||"children"}}function $e(Wr,no){var Vi,Pn;return(Vi=Wr.isLeaf)!==null&&Vi!==void 0?Vi:!((Pn=Wr[no.children])!==null&&Pn!==void 0&&Pn.length)}function Te(Wr){var no=Wr.parentElement;if(no){var Vi=Wr.offsetTop-no.offsetTop;Vi-no.scrollTop<0?no.scrollTo({top:Vi}):Vi+Wr.offsetHeight-no.scrollTop>no.offsetHeight&&no.scrollTo({top:Vi+Wr.offsetHeight-no.offsetHeight})}}function tt(Wr,no){return Wr.map(function(Vi){var Pn;return(Pn=Vi[_e])===null||Pn===void 0?void 0:Pn.map(function(mi){return mi[no.value]})})}function Oe(Wr){return Array.isArray(Wr)&&Array.isArray(Wr[0])}function Xt(Wr){return Wr?Oe(Wr)?Wr:(Wr.length===0?[]:[Wr]).map(function(no){return Array.isArray(no)?no:[no]}):[]}function Ft(Wr,no,Vi){var Pn=new Set(Wr),mi=no();return Wr.filter(function(ya){var Zs=mi[ya],qs=Zs?Zs.parent:null,al=Zs?Zs.children:null;return Zs&&Zs.node.disabled?!0:Vi===Me?!(al&&al.some(function(co){return co.key&&Pn.has(co.key)})):!(qs&&!qs.node.disabled&&Pn.has(qs.key))})}function ot(Wr,no,Vi){for(var Pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,mi=no,ya=[],Zs=function(){var co,tl,fl,Ai=Wr[qs],Xi=(co=mi)===null||co===void 0?void 0:co.findIndex(function(No){var yr=No[Vi.value];return Pn?String(yr)===String(Ai):yr===Ai}),Fi=Xi!==-1?(tl=mi)===null||tl===void 0?void 0:tl[Xi]:null;ya.push({value:(fl=Fi==null?void 0:Fi[Vi.value])!==null&&fl!==void 0?fl:Ai,index:Xi,option:Fi}),mi=Fi==null?void 0:Fi[Vi.children]},qs=0;qs1){var Tn=Fi.slice(0,-1);Zo(Tn)}else co(!1)},Ei=function(){var Tn,ar=((Tn=yr[No])===null||Tn===void 0?void 0:Tn[Vi.children])||[],ft=ar.find(function(At){return!At.disabled});if(ft){var wt=[].concat((0,v.Z)(Fi),[ft[Vi.value]]);Zo(wt)}};R.useImperativeHandle(Wr,function(){return{onKeyDown:function(Tn){var ar=Tn.which;switch(ar){case Ki.Z.UP:case Ki.Z.DOWN:{var ft=0;ar===Ki.Z.UP?ft=-1:ar===Ki.Z.DOWN&&(ft=1),ft!==0&&ns(ft);break}case Ki.Z.LEFT:{if(al)break;fl?Ei():Lr();break}case Ki.Z.RIGHT:{if(al)break;fl?Lr():Ei();break}case Ki.Z.BACKSPACE:{al||Lr();break}case Ki.Z.ENTER:{if(Fi.length){var wt=yr[No],At=(wt==null?void 0:wt[_e])||[];At.length?ya(At.map(function(Ye){return Ye[Vi.value]}),At[At.length-1]):ya(Fi,yr[No])}break}case Ki.Z.ESC:co(!1),tl&&Tn.stopPropagation()}},onKeyUp:function(){}}})},ai=R.forwardRef(function(Wr,no){var Vi,Pn,mi,ya=Wr.prefixCls,Zs=Wr.multiple,qs=Wr.searchValue,al=Wr.toggleOpen,co=Wr.notFoundContent,tl=Wr.direction,fl=Wr.open,Ai=R.useRef(),Xi=tl==="rtl",Fi=R.useContext(he),No=Fi.options,yr=Fi.values,ui=Fi.halfValues,Zo=Fi.fieldNames,ns=Fi.changeOnSelect,Lr=Fi.onSelect,Ei=Fi.searchOptions,hn=Fi.dropdownPrefixCls,Tn=Fi.loadData,ar=Fi.expandTrigger,ft=hn||ya,wt=R.useState([]),At=(0,O.Z)(wt,2),Ye=At[0],Et=At[1],Wt=function(vl){if(!(!Tn||qs)){var ds=ot(vl,No,Zo),io=ds.map(function(ks){var Ga=ks.option;return Ga}),Ko=io[io.length-1];if(Ko&&!$e(Ko,Zo)){var As=Se(vl);Et(function(ks){return[].concat((0,v.Z)(ks),[As])}),Tn(io)}}};R.useEffect(function(){Ye.length&&Ye.forEach(function(Ca){var vl=De(Ca),ds=ot(vl,No,Zo,!0).map(function(Ko){var As=Ko.option;return As}),io=ds[ds.length-1];(!io||io[Zo.children]||$e(io,Zo))&&Et(function(Ko){return Ko.filter(function(As){return As!==Ca})})})},[No,Ye,Zo]);var vn=R.useMemo(function(){return new Set(ze(yr))},[yr]),Er=R.useMemo(function(){return new Set(ze(ui))},[ui]),Gr=qo(Zs,fl),Gi=(0,O.Z)(Gr,2),ko=Gi[0],Bi=Gi[1],ms=function(vl){Bi(vl),Wt(vl)},ps=function(vl){var ds=vl.disabled,io=$e(vl,Zo);return!ds&&(io||ns||Zs)},Js=function(vl,ds){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Lr(vl),!Zs&&(ds||ns&&(ar==="hover"||io))&&al(!1)},Hs=R.useMemo(function(){return qs?Ei:No},[qs,Ei,No]),Po=R.useMemo(function(){for(var Ca=[{options:Hs}],vl=Hs,ds=tt(vl,Zo),io=function(){var ks=ko[Ko],Ga=vl.find(function(Ac,vc){return(ds[vc]?Se(ds[vc]):Ac[Zo.value])===ks}),zu=Ga==null?void 0:Ga[Zo.children];if(!(zu!=null&&zu.length))return 1;vl=zu,Ca.push({options:zu})},Ko=0;Ko":ui,ns=Vi.loadingIcon,Lr=Vi.direction,Ei=Vi.notFoundContent,hn=Ei===void 0?"Not Found":Ei,Tn=!!al,ar=(0,Dt.C8)(co,{value:tl,postState:Xt}),ft=(0,O.Z)(ar,2),wt=ft[0],At=ft[1],Ye=R.useMemo(function(){return ke(fl)},[JSON.stringify(fl)]),Et=bn(Ye,qs),Wt=(0,O.Z)(Et,3),vn=Wt[0],Er=Wt[1],Gr=Wt[2],Gi=ut(vn,Ye),ko=Mo(Tn,wt,Er,Gr,Gi),Bi=(0,O.Z)(ko,3),ms=Bi[0],ps=Bi[1],Js=Bi[2],Hs=(0,Dt.zX)(function(Dl){if(At(Dl),Xi){var Ns=Xt(Dl),Ca=Ns.map(function(io){return ot(io,vn,Ye).map(function(Ko){return Ko.option})}),vl=Tn?Ns:Ns[0],ds=Tn?Ca:Ca[0];Xi(vl,ds)}}),Po=oo(Tn,Hs,ms,ps,Js,Er,Gr,Fi),zs=(0,Dt.zX)(function(Dl){Po(Dl)}),ma=R.useMemo(function(){return{options:vn,fieldNames:Ye,values:ms,halfValues:ps,changeOnSelect:Ai,onSelect:zs,checkable:al,searchOptions:[],dropdownPrefixCls:null,loadData:No,expandTrigger:yr,expandIcon:Zo,loadingIcon:ns,dropdownMenuColumnStyle:null}},[vn,Ye,ms,ps,Ai,zs,al,No,yr,Zo,ns]),va="".concat(mi,"-panel"),El=!vn.length;return R.createElement(he.Provider,{value:ma},R.createElement("div",{className:b()(va,(no={},(0,fe.Z)(no,"".concat(va,"-rtl"),Lr==="rtl"),(0,fe.Z)(no,"".concat(va,"-empty"),El),no),Zs),style:ya},El?hn:R.createElement($o,{prefixCls:mi,searchValue:null,multiple:Tn,toggleOpen:Kt,open:!0,direction:Lr})))}function kn(Wr){var no=Wr.onPopupVisibleChange,Vi=Wr.popupVisible,Pn=Wr.popupClassName,mi=Wr.popupPlacement;warning(!no,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Vi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Pn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(mi===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function an(Wr,no){if(Wr){var Vi=function Pn(mi){for(var ya=0;ya":vn,Gr=Wr.loadingIcon,Gi=Wr.children,ko=Wr.dropdownMatchSelectWidth,Bi=ko===void 0?!1:ko,ms=Wr.showCheckedStrategy,ps=ms===void 0?dt:ms,Js=(0,L.Z)(Wr,kt),Hs=(0,g.ZP)(Vi),Po=!!fl,zs=(0,k.Z)(Zs,{value:qs,postState:Xt}),ma=(0,O.Z)(zs,2),va=ma[0],El=ma[1],Dl=R.useMemo(function(){return ke(ya)},[JSON.stringify(ya)]),Ns=bn(Dl,Zo),Ca=(0,O.Z)(Ns,3),vl=Ca[0],ds=Ca[1],io=Ca[2],Ko=(0,k.Z)("",{value:Fi,postState:function(fu){return fu||""}}),As=(0,O.Z)(Ko,2),ks=As[0],Ga=As[1],zu=function(fu,Bl){Ga(fu),Bl.source!=="blur"&&No&&No(fu)},Ac=$r(yr),vc=(0,O.Z)(Ac,2),ec=vc[0],qu=vc[1],Uu=Xe(ks,vl,Dl,ns||mi,qu,al),zn=ut(vl,Dl),ur=Mo(Po,va,ds,io,zn),Zr=(0,O.Z)(ur,3),Jr=Zr[0],_i=Zr[1],so=Zr[2],Ui=R.useMemo(function(){var Gl=ze(Jr),fu=Ft(Gl,ds,ps);return[].concat((0,v.Z)(so),(0,v.Z)(io(fu)))},[Jr,ds,io,so,ps]),hs=xt(Ui,vl,Dl,Po,tl),ra=(0,T.Z)(function(Gl){if(El(Gl),co){var fu=Xt(Gl),Bl=fu.map(function(es){return ot(es,vl,Dl).map(function(Is){return Is.option})}),lu=Po?fu:fu[0],Ln=Po?Bl:Bl[0];co(lu,Ln)}}),Ka=oo(Po,ra,Jr,_i,so,ds,io,ps),ul=(0,T.Z)(function(Gl){(!Po||Xi)&&Ga(""),Ka(Gl)}),hl=function(fu,Bl){if(Bl.type==="clear"){ra([]);return}var lu=Bl.values[0],Ln=lu.valueCells;ul(Ln)},kl=hn!==void 0?hn:Ei,Va=ar||Tn,Xu=Ye||At,Na=function(fu){Et==null||Et(fu),Wt==null||Wt(fu)},Aa=R.useMemo(function(){return{options:vl,fieldNames:Dl,values:Jr,halfValues:_i,changeOnSelect:al,onSelect:ul,checkable:fl,searchOptions:Uu,dropdownPrefixCls:ns,loadData:Lr,expandTrigger:ui,expandIcon:Er,loadingIcon:Gr,dropdownMenuColumnStyle:ft}},[vl,Dl,Jr,_i,al,ul,fl,Uu,ns,Lr,ui,Er,Gr,ft]),ll=!(ks?Uu:vl).length,Pu=ks&&qu.matchInputWidth||ll?{}:{minWidth:"auto"};return R.createElement(he.Provider,{value:Aa},R.createElement(S.Ac,(0,B.Z)({},Js,{ref:no,id:Hs,prefixCls:mi,autoClearSearchValue:Xi,dropdownMatchSelectWidth:Bi,dropdownStyle:(0,V.Z)((0,V.Z)({},Pu),wt),displayValues:hs,onDisplayValuesChange:hl,mode:Po?"multiple":void 0,searchValue:ks,onSearch:zu,showSearch:ec,OptionList:nt,emptyOptions:ll,open:kl,dropdownClassName:Va,placement:Xu,onDropdownVisibleChange:Na,getRawInputElement:function(){return Gi}})))});en.SHOW_PARENT=dt,en.SHOW_CHILD=Me,en.Panel=mn;var Vn=en,on=Vn,Dr=_(98423),oi=_(33603),Ii=_(8745),jr=_(9708),eo=_(53124),Uo=_(88258),Fn=_(98866),Qr=_(98675),ci=_(65223),ji=_(87244),cr=_(13458),Qn=_(43277),Vt=_(78642),Yt=_(4173);function En(Wr,no){const{getPrefixCls:Vi,direction:Pn,renderEmpty:mi}=R.useContext(eo.E_),ya=no||Pn,Zs=Vi("select",Wr),qs=Vi("cascader",Wr);return[Zs,qs,ya,mi]}function er(Wr,no){return R.useMemo(()=>no?R.createElement("span",{className:`${Wr}-checkbox-inner`}):!1,[no])}var Tr=_(62946),Nr=_(22508),Zn=_(68843);function Ut(Wr,no,Vi){let Pn=Vi;Vi||(Pn=no?R.createElement(Tr.Z,null):R.createElement(Zn.Z,null));const mi=R.createElement("span",{className:`${Wr}-menu-item-loading-icon`},R.createElement(Nr.Z,{spin:!0}));return[Pn,mi]}var $n=_(80110),xr=_(67968),Br=_(63185),_o=_(14747),xn=Wr=>{const{prefixCls:no,componentCls:Vi}=Wr,Pn=`${Vi}-menu-item`,mi=` + &${Pn}-expand ${Pn}-expand-icon, + ${Pn}-loading-icon +`;return[(0,Br.C2)(`${no}-checkbox`,Wr),{[Vi]:{"&-checkbox":{top:0,marginInlineEnd:Wr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Vi}-menu-empty`]:{[`${Vi}-menu`]:{width:"100%",height:"auto",[Pn]:{color:Wr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Wr.controlItemWidth,height:Wr.dropdownHeight,margin:0,padding:Wr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Wr.lineWidth}px ${Wr.lineType} ${Wr.colorSplit}`},"&-item":Object.assign(Object.assign({},_o.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Wr.optionPadding,lineHeight:Wr.lineHeight,cursor:"pointer",transition:`all ${Wr.motionDurationMid}`,borderRadius:Wr.borderRadiusSM,"&:hover":{background:Wr.controlItemBgHover},"&-disabled":{color:Wr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[mi]:{color:Wr.colorTextDisabled}},[`&-active:not(${Pn}-disabled)`]:{["&, &:hover"]:{fontWeight:Wr.optionSelectedFontWeight,backgroundColor:Wr.optionSelectedBg}},"&-content":{flex:"auto"},[mi]:{marginInlineStart:Wr.paddingXXS,color:Wr.colorTextDescription,fontSize:Wr.fontSizeIcon},"&-keyword":{color:Wr.colorHighlight}})}}}]};const Sr=Wr=>{const{componentCls:no,antCls:Vi}=Wr;return[{[no]:{width:Wr.controlWidth}},{[`${no}-dropdown`]:[{[`&${Vi}-select-dropdown`]:{padding:0}},xn(Wr)]},{[`${no}-dropdown-rtl`]:{direction:"rtl"}},(0,$n.c)(Wr)]},qr=Wr=>{const no=Math.round((Wr.controlHeight-Wr.fontSize*Wr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Wr.controlItemBgActive,optionSelectedFontWeight:Wr.fontWeightStrong,optionPadding:`${no}px ${Wr.paddingSM}px`,menuPadding:Wr.paddingXXS}};var Mi=(0,xr.Z)("Cascader",Wr=>[Sr(Wr)],qr);const zi=Wr=>{const{componentCls:no}=Wr;return{[`${no}-panel`]:[xn(Wr),{display:"inline-flex",border:`${Wr.lineWidth}px ${Wr.lineType} ${Wr.colorSplit}`,borderRadius:Wr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${no}-menus`]:{alignItems:"stretch"},[`${no}-menu`]:{height:"auto"},"&-empty":{padding:Wr.paddingXXS}}]}};var Yi=(0,xr.Z)(["Cascader","Panel"],Wr=>zi(Wr),qr);function Si(Wr){const{prefixCls:no,className:Vi,multiple:Pn,rootClassName:mi,notFoundContent:ya,direction:Zs,expandIcon:qs}=Wr,[al,co,tl,fl]=En(no,Zs),[,Ai]=Mi(co);Yi(co);const Xi=tl==="rtl",[Fi,No]=Ut(al,Xi,qs),yr=ya||(fl==null?void 0:fl("Cascader"))||R.createElement(Uo.Z,{componentName:"Cascader"}),ui=er(co,Pn);return R.createElement(mn,Object.assign({},Wr,{checkable:ui,prefixCls:co,className:b()(Vi,Ai,mi),notFoundContent:yr,direction:tl,expandIcon:Fi,loadingIcon:No}))}var ni=_(87263),qi=function(Wr,no){var Vi={};for(var Pn in Wr)Object.prototype.hasOwnProperty.call(Wr,Pn)&&no.indexOf(Pn)<0&&(Vi[Pn]=Wr[Pn]);if(Wr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mi=0,Pn=Object.getOwnPropertySymbols(Wr);mial===0?[qs]:[].concat((0,v.Z)(Zs),[no,qs]),[]),mi=[];let ya=0;return Pn.forEach((Zs,qs)=>{const al=ya+Zs.length;let co=Wr.slice(ya,al);ya=al,qs%2===1&&(co=R.createElement("span",{className:`${Vi}-menu-item-keyword`,key:`separator-${qs}`},co)),mi.push(co)}),mi}const Mr=(Wr,no,Vi,Pn)=>{const mi=[],ya=Wr.toLowerCase();return no.forEach((Zs,qs)=>{qs!==0&&mi.push(" / ");let al=Zs[Pn.label];const co=typeof al;(co==="string"||co==="number")&&(al=nr(String(al),ya,Vi)),mi.push(al)}),mi},rr=R.forwardRef((Wr,no)=>{var Vi;const{prefixCls:Pn,size:mi,disabled:ya,className:Zs,rootClassName:qs,multiple:al,bordered:co=!0,transitionName:tl,choiceTransitionName:fl="",popupClassName:Ai,dropdownClassName:Xi,expandIcon:Fi,placement:No,showSearch:yr,allowClear:ui=!0,notFoundContent:Zo,direction:ns,getPopupContainer:Lr,status:Ei,showArrow:hn,builtinPlacements:Tn,style:ar}=Wr,ft=qi(Wr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),wt=(0,Dr.Z)(ft,["suffixIcon"]),{getPopupContainer:At,getPrefixCls:Ye,popupOverflow:Et,cascader:Wt}=R.useContext(eo.E_),{status:vn,hasFeedback:Er,isFormItemInput:Gr,feedbackIcon:Gi}=R.useContext(ci.aM),ko=(0,jr.F)(vn,Ei),[Bi,ms,ps,Js]=En(Pn,ns),Hs=ps==="rtl",Po=Ye(),[zs,ma]=(0,ji.Z)(Bi),[va]=Mi(ms),{compactSize:El,compactItemClassnames:Dl}=(0,Yt.ri)(Bi,ns),Ns=Zo||(Js==null?void 0:Js("Cascader"))||R.createElement(Uo.Z,{componentName:"Cascader"}),Ca=b()(Ai||Xi,`${ms}-dropdown`,{[`${ms}-dropdown-rtl`]:ps==="rtl"},qs,ma),vl=R.useMemo(()=>{if(!yr)return yr;let Jr={render:Mr};return typeof yr=="object"&&(Jr=Object.assign(Object.assign({},Jr),yr)),Jr},[yr]),ds=(0,Qr.Z)(Jr=>{var _i;return(_i=mi!=null?mi:El)!==null&&_i!==void 0?_i:Jr}),io=R.useContext(Fn.Z),Ko=ya!=null?ya:io,[As,ks]=Ut(Bi,Hs,Fi),Ga=er(ms,al),zu=(0,Vt.Z)(Wr.suffixIcon,hn),{suffixIcon:Ac,removeIcon:vc,clearIcon:ec}=(0,Qn.Z)(Object.assign(Object.assign({},Wr),{hasFeedback:Er,feedbackIcon:Gi,showSuffixIcon:zu,multiple:al,prefixCls:Bi,componentName:"Cascader"})),qu=R.useMemo(()=>No!==void 0?No:Hs?"bottomRight":"bottomLeft",[No,Hs]),Uu=(0,cr.Z)(Tn,Et),zn=ui===!0?{clearIcon:ec}:ui,[ur]=(0,ni.Cn)("SelectLike",(Vi=wt.dropdownStyle)===null||Vi===void 0?void 0:Vi.zIndex),Zr=R.createElement(on,Object.assign({prefixCls:Bi,className:b()(!Pn&&ms,{[`${Bi}-lg`]:ds==="large",[`${Bi}-sm`]:ds==="small",[`${Bi}-rtl`]:Hs,[`${Bi}-borderless`]:!co,[`${Bi}-in-form-item`]:Gr},(0,jr.Z)(Bi,ko,Er),Dl,Wt==null?void 0:Wt.className,Zs,qs,ma),disabled:Ko,style:Object.assign(Object.assign({},Wt==null?void 0:Wt.style),ar)},wt,{builtinPlacements:Uu,direction:ps,placement:qu,notFoundContent:Ns,allowClear:zn,showSearch:vl,expandIcon:As,suffixIcon:Ac,removeIcon:vc,loadingIcon:ks,checkable:Ga,dropdownClassName:Ca,dropdownPrefixCls:Pn||ms,dropdownStyle:Object.assign(Object.assign({},wt.dropdownStyle),{zIndex:ur}),choiceTransitionName:(0,oi.m)(Po,"",fl),transitionName:(0,oi.m)(Po,"slide-up",tl),getPopupContainer:Lr||At,ref:no}));return va(zs(Zr))}),to=(0,Ii.Z)(rr);rr.SHOW_PARENT=ii,rr.SHOW_CHILD=Vr,rr.Panel=Si,rr._InternalPanelDoNotUseOrYouWillBeFired=to;var ts=rr},63185:function(gt,Y,_){"use strict";_.d(Y,{C2:function(){return B}});var v=_(14747),R=_(45503),w=_(67968);const b=V=>{const{checkboxCls:O}=V,L=`${O}-wrapper`;return[{[`${O}-group`]:Object.assign(Object.assign({},(0,v.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[L]:Object.assign(Object.assign({},(0,v.Wf)(V)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${L}`]:{marginInlineStart:0},[`&${L}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[O]:Object.assign(Object.assign({},(0,v.Wf)(V)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:V.borderRadiusSM,alignSelf:"center",[`${O}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${O}-inner`]:Object.assign({},(0,v.oN)(V))},[`${O}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:V.checkboxSize,height:V.checkboxSize,direction:"ltr",backgroundColor:V.colorBgContainer,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadiusSM,borderCollapse:"separate",transition:`all ${V.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:V.checkboxSize/14*5,height:V.checkboxSize/14*8,border:`${V.lineWidthBold}px solid ${V.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${V.motionDurationFast} ${V.motionEaseInBack}, opacity ${V.motionDurationFast}`}},"& + span":{paddingInlineStart:V.paddingXS,paddingInlineEnd:V.paddingXS}})},{[` + ${L}:not(${L}-disabled), + ${O}:not(${O}-disabled) + `]:{[`&:hover ${O}-inner`]:{borderColor:V.colorPrimary}},[`${L}:not(${L}-disabled)`]:{[`&:hover ${O}-checked:not(${O}-disabled) ${O}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${O}-checked:not(${O}-disabled):after`]:{borderColor:V.colorPrimaryHover}}},{[`${O}-checked`]:{[`${O}-inner`]:{backgroundColor:V.colorPrimary,borderColor:V.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${V.motionDurationMid} ${V.motionEaseOutBack} ${V.motionDurationFast}`}}},[` + ${L}-checked:not(${L}-disabled), + ${O}-checked:not(${O}-disabled) + `]:{[`&:hover ${O}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"}}},{[O]:{"&-indeterminate":{[`${O}-inner`]:{backgroundColor:V.colorBgContainer,borderColor:V.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:V.fontSizeLG/2,height:V.fontSizeLG/2,backgroundColor:V.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${L}-disabled`]:{cursor:"not-allowed"},[`${O}-disabled`]:{[`&, ${O}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${O}-inner`]:{background:V.colorBgContainerDisabled,borderColor:V.colorBorder,"&:after":{borderColor:V.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:V.colorTextDisabled},[`&${O}-indeterminate ${O}-inner::after`]:{background:V.colorTextDisabled}}}]};function B(V,O){const L=(0,R.TS)(O,{checkboxCls:`.${V}`,checkboxSize:O.controlInteractiveSize});return[b(L)]}Y.ZP=(0,w.Z)("Checkbox",(V,O)=>{let{prefixCls:L}=O;return[B(L,V)]})},87052:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Uu}});var v=_(67294),R=_(94184),w=_.n(R),b=_(21770),B=_(8745),V=_(9708),O=_(53124),L=_(98866),S=_(98675),g=_(65223),T=_(55241),k=_(25976),K=_(96074),he=_(87462),ae=_(4942),fe=_(97685),_e=_(1413),be=_(15671),xe=_(43144),Xe=_(60136),We=_(29388),dt=_(91),Me=_(71002),Se=_(10274),ze=["b"],De=["v"],ke=function(ur){return Math.round(Number(ur||0))},$e=function(ur){if(ur&&(0,Me.Z)(ur)==="object"&&"h"in ur&&"b"in ur){var Zr=ur,Jr=Zr.b,_i=(0,dt.Z)(Zr,ze);return(0,_e.Z)((0,_e.Z)({},_i),{},{v:Jr})}return typeof ur=="string"&&/hsb/.test(ur)?ur.replace(/hsb/,"hsv"):ur},Te=function(zn){(0,Xe.Z)(Zr,zn);var ur=(0,We.Z)(Zr);function Zr(Jr){return(0,be.Z)(this,Zr),ur.call(this,$e(Jr))}return(0,xe.Z)(Zr,[{key:"toHsbString",value:function(){var _i=this.toHsb(),so=ke(_i.s*100),Ui=ke(_i.b*100),hs=ke(_i.h),ra=_i.a,Ka="hsb(".concat(hs,", ").concat(so,"%, ").concat(Ui,"%)"),ul="hsba(".concat(hs,", ").concat(so,"%, ").concat(Ui,"%, ").concat(ra.toFixed(ra===0?0:2),")");return ra===1?Ka:ul}},{key:"toHsb",value:function(){var _i=this.toHsv();(0,Me.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(_i=this.originalInput);var so=_i,Ui=so.v,hs=(0,dt.Z)(so,De);return(0,_e.Z)((0,_e.Z)({},hs),{},{b:_i.v})}}]),Zr}(Se.C),tt="rc-color-picker",Oe=function(ur){return ur instanceof Te?ur:new Te(ur)},Xt=Oe("#1677ff"),Ft=function(ur){var Zr=ur.offset,Jr=ur.targetRef,_i=ur.containerRef,so=ur.color,Ui=ur.type,hs=_i.current.getBoundingClientRect(),ra=hs.width,Ka=hs.height,ul=Jr.current.getBoundingClientRect(),hl=ul.width,kl=ul.height,Va=hl/2,Xu=kl/2,Na=(Zr.x+Va)/ra,Aa=1-(Zr.y+Xu)/Ka,ll=so.toHsb(),Pu=Na,Gl=(Zr.x+Va)/ra*360;if(Ui)switch(Ui){case"hue":return Oe((0,_e.Z)((0,_e.Z)({},ll),{},{h:Gl<=0?0:Gl}));case"alpha":return Oe((0,_e.Z)((0,_e.Z)({},ll),{},{a:Pu<=0?0:Pu}))}return Oe({h:ll.h,s:Na<=0?0:Na,b:Aa>=1?1:Aa,a:ll.a})},ot=function(ur,Zr,Jr,_i){var so=ur.current.getBoundingClientRect(),Ui=so.width,hs=so.height,ra=Zr.current.getBoundingClientRect(),Ka=ra.width,ul=ra.height,hl=Ka/2,kl=ul/2,Va=Jr.toHsb();if(!(Ka===0&&ul===0||Ka!==ul)){if(_i)switch(_i){case"hue":return{x:Va.h/360*Ui-hl,y:-kl/3};case"alpha":return{x:Va.a/1*Ui-hl,y:-kl/3}}return{x:Va.s*Ui-hl,y:(1-Va.b)*hs-kl}}},xt=function(ur){var Zr=ur.color,Jr=ur.prefixCls,_i=ur.className,so=ur.style,Ui=ur.onClick,hs="".concat(Jr,"-color-block");return v.createElement("div",{className:w()(hs,_i),style:so,onClick:Ui},v.createElement("div",{className:"".concat(hs,"-inner"),style:{background:Zr}}))},ut=xt;function $t(zn){var ur="touches"in zn?zn.touches[0]:zn,Zr=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Jr=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:ur.pageX-Zr,pageY:ur.pageY-Jr}}function _t(zn){var ur=zn.offset,Zr=zn.targetRef,Jr=zn.containerRef,_i=zn.direction,so=zn.onDragChange,Ui=zn.onDragChangeComplete,hs=zn.calculate,ra=zn.color,Ka=zn.disabledDrag,ul=(0,v.useState)(ur||{x:0,y:0}),hl=(0,fe.Z)(ul,2),kl=hl[0],Va=hl[1],Xu=(0,v.useRef)(null),Na=(0,v.useRef)(null),Aa=(0,v.useRef)({flag:!1});(0,v.useEffect)(function(){if(Aa.current.flag===!1){var Bl=hs==null?void 0:hs(Jr);Bl&&Va(Bl)}},[ra,Jr]),(0,v.useEffect)(function(){return function(){document.removeEventListener("mousemove",Xu.current),document.removeEventListener("mouseup",Na.current),document.removeEventListener("touchmove",Xu.current),document.removeEventListener("touchend",Na.current),Xu.current=null,Na.current=null}},[]);var ll=function(lu){var Ln=$t(lu),es=Ln.pageX,Is=Ln.pageY,Qs=Jr.current.getBoundingClientRect(),dl=Qs.x,uu=Qs.y,Jl=Qs.width,xu=Qs.height,Tu=Zr.current.getBoundingClientRect(),tc=Tu.width,zc=Tu.height,Rc=tc/2,Ah=zc/2,Td=Math.max(0,Math.min(es-dl,Jl))-Rc,ld=Math.max(0,Math.min(Is-uu,xu))-Ah,ph={x:Td,y:_i==="x"?kl.y:ld};if(tc===0&&zc===0||tc!==zc)return!1;Va(ph),so==null||so(ph)},Pu=function(lu){lu.preventDefault(),ll(lu)},Gl=function(lu){lu.preventDefault(),Aa.current.flag=!1,document.removeEventListener("mousemove",Xu.current),document.removeEventListener("mouseup",Na.current),document.removeEventListener("touchmove",Xu.current),document.removeEventListener("touchend",Na.current),Xu.current=null,Na.current=null,Ui==null||Ui()},fu=function(lu){document.removeEventListener("mousemove",Xu.current),document.removeEventListener("mouseup",Na.current),!Ka&&(ll(lu),Aa.current.flag=!0,document.addEventListener("mousemove",Pu),document.addEventListener("mouseup",Gl),document.addEventListener("touchmove",Pu),document.addEventListener("touchend",Gl),Xu.current=Pu,Na.current=Gl)};return[kl,fu]}var bn=_t,Wn=function(ur){var Zr=ur.size,Jr=Zr===void 0?"default":Zr,_i=ur.color,so=ur.prefixCls;return v.createElement("div",{className:w()("".concat(so,"-handler"),(0,ae.Z)({},"".concat(so,"-handler-sm"),Jr==="small")),style:{backgroundColor:_i}})},$r=Wn,wi=function(ur){var Zr=ur.children,Jr=ur.style,_i=ur.prefixCls;return v.createElement("div",{className:"".concat(_i,"-palette"),style:(0,_e.Z)({position:"relative"},Jr)},Zr)},oo=wi,Mo=(0,v.forwardRef)(function(zn,ur){var Zr=zn.children,Jr=zn.offset;return v.createElement("div",{ref:ur,style:{position:"absolute",left:Jr.x,top:Jr.y,zIndex:1}},Zr)}),Ti=Mo,Hr=function(ur){var Zr=ur.color,Jr=ur.onChange,_i=ur.prefixCls,so=ur.onChangeComplete,Ui=ur.disabled,hs=(0,v.useRef)(),ra=(0,v.useRef)(),Ka=(0,v.useRef)(Zr),ul=bn({color:Zr,containerRef:hs,targetRef:ra,calculate:function(Na){return ot(Na,ra,Zr)},onDragChange:function(Na){var Aa=Ft({offset:Na,targetRef:ra,containerRef:hs,color:Zr});Ka.current=Aa,Jr(Aa)},onDragChangeComplete:function(){return so==null?void 0:so(Ka.current)},disabledDrag:Ui}),hl=(0,fe.Z)(ul,2),kl=hl[0],Va=hl[1];return v.createElement("div",{ref:hs,className:"".concat(_i,"-select"),onMouseDown:Va,onTouchStart:Va},v.createElement(oo,{prefixCls:_i},v.createElement(Ti,{offset:kl,ref:ra},v.createElement($r,{color:Zr.toRgbString(),prefixCls:_i})),v.createElement("div",{className:"".concat(_i,"-saturation"),style:{backgroundColor:"hsl(".concat(Zr.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Ho=Hr,Ss=function(ur){var Zr=ur.colors,Jr=ur.children,_i=ur.direction,so=_i===void 0?"to right":_i,Ui=ur.type,hs=ur.prefixCls,ra=(0,v.useMemo)(function(){return Zr.map(function(Ka,ul){var hl=Oe(Ka);return Ui==="alpha"&&ul===Zr.length-1&&hl.setAlpha(1),hl.toRgbString()}).join(",")},[Zr,Ui]);return v.createElement("div",{className:"".concat(hs,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(so,", ").concat(ra,")")}},Jr)},Pe=Ss,qo=function(ur){var Zr=ur.gradientColors,Jr=ur.direction,_i=ur.type,so=_i===void 0?"hue":_i,Ui=ur.color,hs=ur.value,ra=ur.onChange,Ka=ur.onChangeComplete,ul=ur.disabled,hl=ur.prefixCls,kl=(0,v.useRef)(),Va=(0,v.useRef)(),Xu=(0,v.useRef)(Ui),Na=bn({color:Ui,targetRef:Va,containerRef:kl,calculate:function(fu){return ot(fu,Va,Ui,so)},onDragChange:function(fu){var Bl=Ft({offset:fu,targetRef:Va,containerRef:kl,color:Ui,type:so});Xu.current=Bl,ra(Bl)},onDragChangeComplete:function(){Ka==null||Ka(Xu.current,so)},direction:"x",disabledDrag:ul}),Aa=(0,fe.Z)(Na,2),ll=Aa[0],Pu=Aa[1];return v.createElement("div",{ref:kl,className:w()("".concat(hl,"-slider"),"".concat(hl,"-slider-").concat(so)),onMouseDown:Pu,onTouchStart:Pu},v.createElement(oo,{prefixCls:hl},v.createElement(Ti,{offset:ll,ref:Va},v.createElement($r,{size:"small",color:hs,prefixCls:hl})),v.createElement(Pe,{colors:Zr,direction:Jr,type:so,prefixCls:hl})))},Ki=qo;function Do(zn){return zn!==void 0}var ai=function(ur,Zr){var Jr=Zr.defaultValue,_i=Zr.value,so=(0,v.useState)(function(){var Ka;return Do(_i)?Ka=_i:Do(Jr)?Ka=Jr:Ka=ur,Oe(Ka)}),Ui=(0,fe.Z)(so,2),hs=Ui[0],ra=Ui[1];return(0,v.useEffect)(function(){_i&&ra(Oe(_i))},[_i]),[hs,ra]},$o=ai,Mn=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],nt=(0,v.forwardRef)(function(zn,ur){var Zr=zn.value,Jr=zn.defaultValue,_i=zn.prefixCls,so=_i===void 0?tt:_i,Ui=zn.onChange,hs=zn.onChangeComplete,ra=zn.className,Ka=zn.style,ul=zn.panelRender,hl=zn.disabledAlpha,kl=hl===void 0?!1:hl,Va=zn.disabled,Xu=Va===void 0?!1:Va,Na=$o(Xt,{value:Zr,defaultValue:Jr}),Aa=(0,fe.Z)(Na,2),ll=Aa[0],Pu=Aa[1],Gl=(0,v.useMemo)(function(){var es=Oe(ll.toRgbString());return es.setAlpha(1),es.toRgbString()},[ll]),fu=w()("".concat(so,"-panel"),ra,(0,ae.Z)({},"".concat(so,"-panel-disabled"),Xu)),Bl={prefixCls:so,onChangeComplete:hs,disabled:Xu},lu=function(Is,Qs){Zr||Pu(Is),Ui==null||Ui(Is,Qs)},Ln=v.createElement(v.Fragment,null,v.createElement(Ho,(0,he.Z)({color:ll,onChange:lu},Bl)),v.createElement("div",{className:"".concat(so,"-slider-container")},v.createElement("div",{className:w()("".concat(so,"-slider-group"),(0,ae.Z)({},"".concat(so,"-slider-group-disabled-alpha"),kl))},v.createElement(Ki,(0,he.Z)({gradientColors:Mn,color:ll,value:"hsl(".concat(ll.toHsb().h,",100%, 50%)"),onChange:function(Is){return lu(Is,"hue")}},Bl)),!kl&&v.createElement(Ki,(0,he.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Gl],color:ll,value:ll.toRgbString(),onChange:function(Is){return lu(Is,"alpha")}},Bl))),v.createElement(ut,{color:ll.toRgbString(),prefixCls:so})));return v.createElement("div",{className:fu,style:Ka,ref:ur},typeof ul=="function"?ul(Ln):Ln)}),Dt=nt;const Kt=v.createContext({}),mn=v.createContext({}),{Provider:kn}=Kt,{Provider:an}=mn,tn=(zn,ur)=>(zn==null?void 0:zn.replace(/[^\w/]/gi,"").slice(0,ur?8:6))||"",kt=(zn,ur)=>zn?tn(zn,ur):"";let en=function(){function zn(ur){(0,be.Z)(this,zn),this.metaColor=new Te(ur),ur||this.metaColor.setAlpha(0)}return(0,xe.Z)(zn,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kt(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),zn}();const Vn="ant-color-picker",on=zn=>zn instanceof en?zn:new en(zn),Dr=zn=>Math.round(Number(zn||0)),oi=zn=>Dr(zn.toHsb().a*100),Ii=(zn,ur)=>{const Zr=zn.toHsb();return Zr.a=ur||1,on(Zr)};var eo=zn=>{let{prefixCls:ur,value:Zr,colorCleared:Jr,onChange:_i}=zn;const so=()=>{if(Zr&&!Jr){const Ui=Zr.toHsb();Ui.a=0;const hs=on(Ui);_i==null||_i(hs)}};return v.createElement("div",{className:`${ur}-clear`,onClick:so})},Uo=_(34041),Fn;(function(zn){zn.hex="hex",zn.rgb="rgb",zn.hsb="hsb"})(Fn||(Fn={}));var Qr=_(73360),ji=zn=>{let{prefixCls:ur,min:Zr=0,max:Jr=100,value:_i,onChange:so,className:Ui,formatter:hs}=zn;const ra=`${ur}-steppers`,[Ka,ul]=(0,v.useState)(_i);return(0,v.useEffect)(()=>{Number.isNaN(_i)||ul(_i)},[_i]),v.createElement(Qr.Z,{className:w()(ra,Ui),min:Zr,max:Jr,value:Ka,formatter:hs,size:"small",onChange:hl=>{_i||ul(hl||0),so==null||so(hl)}})},Qn=zn=>{let{prefixCls:ur,value:Zr,onChange:Jr}=zn;const _i=`${ur}-alpha-input`,[so,Ui]=(0,v.useState)(on(Zr||"#000"));(0,v.useEffect)(()=>{Zr&&Ui(Zr)},[Zr]);const hs=ra=>{const Ka=so.toHsb();Ka.a=(ra||0)/100;const ul=on(Ka);Zr||Ui(ul),Jr==null||Jr(ul)};return v.createElement(ji,{value:oi(so),prefixCls:ur,formatter:ra=>`${ra}%`,className:_i,onChange:hs})},Vt=_(75008);const Yt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,En=zn=>Yt.test(`#${zn}`);var Tr=zn=>{let{prefixCls:ur,value:Zr,onChange:Jr}=zn;const _i=`${ur}-hex-input`,[so,Ui]=(0,v.useState)(Zr==null?void 0:Zr.toHex());(0,v.useEffect)(()=>{const ra=Zr==null?void 0:Zr.toHex();En(ra)&&Zr&&Ui(tn(ra))},[Zr]);const hs=ra=>{const Ka=ra.target.value;Ui(tn(Ka)),En(tn(Ka,!0))&&(Jr==null||Jr(on(Ka)))};return v.createElement(Vt.Z,{className:_i,value:so,prefix:"#",onChange:hs,size:"small"})},Zn=zn=>{let{prefixCls:ur,value:Zr,onChange:Jr}=zn;const _i=`${ur}-hsb-input`,[so,Ui]=(0,v.useState)(on(Zr||"#000"));(0,v.useEffect)(()=>{Zr&&Ui(Zr)},[Zr]);const hs=(ra,Ka)=>{const ul=so.toHsb();ul[Ka]=Ka==="h"?ra:(ra||0)/100;const hl=on(ul);Zr||Ui(hl),Jr==null||Jr(hl)};return v.createElement("div",{className:_i},v.createElement(ji,{max:360,min:0,value:Number(so.toHsb().h),prefixCls:ur,className:_i,formatter:ra=>Dr(ra||0).toString(),onChange:ra=>hs(Number(ra),"h")}),v.createElement(ji,{max:100,min:0,value:Number(so.toHsb().s)*100,prefixCls:ur,className:_i,formatter:ra=>`${Dr(ra||0)}%`,onChange:ra=>hs(Number(ra),"s")}),v.createElement(ji,{max:100,min:0,value:Number(so.toHsb().b)*100,prefixCls:ur,className:_i,formatter:ra=>`${Dr(ra||0)}%`,onChange:ra=>hs(Number(ra),"b")}))},$n=zn=>{let{prefixCls:ur,value:Zr,onChange:Jr}=zn;const _i=`${ur}-rgb-input`,[so,Ui]=(0,v.useState)(on(Zr||"#000"));(0,v.useEffect)(()=>{Zr&&Ui(Zr)},[Zr]);const hs=(ra,Ka)=>{const ul=so.toRgb();ul[Ka]=ra||0;const hl=on(ul);Zr||Ui(hl),Jr==null||Jr(hl)};return v.createElement("div",{className:_i},v.createElement(ji,{max:255,min:0,value:Number(so.toRgb().r),prefixCls:ur,className:_i,onChange:ra=>hs(Number(ra),"r")}),v.createElement(ji,{max:255,min:0,value:Number(so.toRgb().g),prefixCls:ur,className:_i,onChange:ra=>hs(Number(ra),"g")}),v.createElement(ji,{max:255,min:0,value:Number(so.toRgb().b),prefixCls:ur,className:_i,onChange:ra=>hs(Number(ra),"b")}))};const xr=[Fn.hex,Fn.hsb,Fn.rgb].map(zn=>({value:zn,label:zn.toLocaleUpperCase()}));var _o=zn=>{const{prefixCls:ur,format:Zr,value:Jr,disabledAlpha:_i,onFormatChange:so,onChange:Ui}=zn,[hs,ra]=(0,b.Z)(Fn.hex,{value:Zr,onChange:so}),Ka=`${ur}-input`,ul=kl=>{ra(kl)},hl=(0,v.useMemo)(()=>{const kl={value:Jr,prefixCls:ur,onChange:Ui};switch(hs){case Fn.hsb:return v.createElement(Zn,Object.assign({},kl));case Fn.rgb:return v.createElement($n,Object.assign({},kl));case Fn.hex:default:return v.createElement(Tr,Object.assign({},kl))}},[hs,ur,Jr,Ui]);return v.createElement("div",{className:`${Ka}-container`},v.createElement(Uo.Z,{value:hs,bordered:!1,getPopupContainer:kl=>kl,popupMatchSelectWidth:68,placement:"bottomRight",onChange:ul,className:`${ur}-format-select`,size:"small",options:xr}),v.createElement("div",{className:Ka},hl),!_i&&v.createElement(Qn,{prefixCls:ur,value:Jr,onChange:Ui}))},Qt=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{const zn=(0,v.useContext)(Kt),{prefixCls:ur,colorCleared:Zr,allowClear:Jr,value:_i,disabledAlpha:so,onChange:Ui,onClear:hs,onChangeComplete:ra}=zn,Ka=Qt(zn,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return v.createElement(v.Fragment,null,Jr&&v.createElement(eo,Object.assign({prefixCls:ur,value:_i,colorCleared:Zr,onChange:ul=>{Ui==null||Ui(ul),hs==null||hs()}},Ka)),v.createElement(Dt,{prefixCls:ur,value:_i==null?void 0:_i.toHsb(),disabledAlpha:so,onChange:(ul,hl)=>Ui==null?void 0:Ui(ul,hl,!0),onChangeComplete:ra}),v.createElement(_o,Object.assign({value:_i,onChange:Ui,prefixCls:ur,disabledAlpha:so},Ka)))},qr=_(68843),Mi=_(74902),zi=_(80334),Yi=_(50344),Si=_(82225),ni=_(15105),qi=v.forwardRef(function(zn,ur){var Zr,Jr=zn.prefixCls,_i=zn.forceRender,so=zn.className,Ui=zn.style,hs=zn.children,ra=zn.isActive,Ka=zn.role,ul=v.useState(ra||_i),hl=(0,fe.Z)(ul,2),kl=hl[0],Va=hl[1];return v.useEffect(function(){(_i||ra)&&Va(!0)},[_i,ra]),kl?v.createElement("div",{ref:ur,className:w()("".concat(Jr,"-content"),(Zr={},(0,ae.Z)(Zr,"".concat(Jr,"-content-active"),ra),(0,ae.Z)(Zr,"".concat(Jr,"-content-inactive"),!ra),Zr),so),style:Ui,role:Ka},v.createElement("div",{className:"".concat(Jr,"-content-box")},hs)):null});qi.displayName="PanelContent";var Vr=qi,ii=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],nr=v.forwardRef(function(zn,ur){var Zr,Jr,_i=zn.showArrow,so=_i===void 0?!0:_i,Ui=zn.headerClass,hs=zn.isActive,ra=zn.onItemClick,Ka=zn.forceRender,ul=zn.className,hl=zn.prefixCls,kl=zn.collapsible,Va=zn.accordion,Xu=zn.panelKey,Na=zn.extra,Aa=zn.header,ll=zn.expandIcon,Pu=zn.openMotion,Gl=zn.destroyInactivePanel,fu=zn.children,Bl=(0,dt.Z)(zn,ii),lu=kl==="disabled",Ln=kl==="header",es=kl==="icon",Is=Na!=null&&typeof Na!="boolean",Qs=function(){ra==null||ra(Xu)},dl=function(zc){(zc.key==="Enter"||zc.keyCode===ni.Z.ENTER||zc.which===ni.Z.ENTER)&&Qs()},uu=typeof ll=="function"?ll(zn):v.createElement("i",{className:"arrow"});uu&&(uu=v.createElement("div",{className:"".concat(hl,"-expand-icon"),onClick:["header","icon"].includes(kl)?Qs:void 0},uu));var Jl=w()((Zr={},(0,ae.Z)(Zr,"".concat(hl,"-item"),!0),(0,ae.Z)(Zr,"".concat(hl,"-item-active"),hs),(0,ae.Z)(Zr,"".concat(hl,"-item-disabled"),lu),Zr),ul),xu=w()(Ui,(Jr={},(0,ae.Z)(Jr,"".concat(hl,"-header"),!0),(0,ae.Z)(Jr,"".concat(hl,"-header-collapsible-only"),Ln),(0,ae.Z)(Jr,"".concat(hl,"-icon-collapsible-only"),es),Jr)),Tu={className:xu,"aria-expanded":hs,"aria-disabled":lu,onKeyDown:dl};return!Ln&&!es&&(Tu.onClick=Qs,Tu.role=Va?"tab":"button",Tu.tabIndex=lu?-1:0),v.createElement("div",(0,he.Z)({},Bl,{ref:ur,className:Jl}),v.createElement("div",Tu,so&&uu,v.createElement("span",{className:"".concat(hl,"-header-text"),onClick:kl==="header"?Qs:void 0},Aa),Is&&v.createElement("div",{className:"".concat(hl,"-extra")},Na)),v.createElement(Si.ZP,(0,he.Z)({visible:hs,leavedClassName:"".concat(hl,"-content-hidden")},Pu,{forceRender:Ka,removeOnLeave:Gl}),function(tc,zc){var Rc=tc.className,Ah=tc.style;return v.createElement(Vr,{ref:zc,prefixCls:hl,className:Rc,style:Ah,isActive:hs,forceRender:Ka,role:Va?"tabpanel":void 0},fu)}))}),Mr=nr,rr=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],to=function(ur,Zr){var Jr=Zr.prefixCls,_i=Zr.accordion,so=Zr.collapsible,Ui=Zr.destroyInactivePanel,hs=Zr.onItemClick,ra=Zr.activeKey,Ka=Zr.openMotion,ul=Zr.expandIcon;return ur.map(function(hl,kl){var Va=hl.children,Xu=hl.label,Na=hl.key,Aa=hl.collapsible,ll=hl.onItemClick,Pu=hl.destroyInactivePanel,Gl=(0,dt.Z)(hl,rr),fu=String(Na!=null?Na:kl),Bl=Aa!=null?Aa:so,lu=Pu!=null?Pu:Ui,Ln=function(Qs){Bl!=="disabled"&&(hs(Qs),ll==null||ll(Qs))},es=!1;return _i?es=ra[0]===fu:es=ra.indexOf(fu)>-1,v.createElement(Mr,(0,he.Z)({},Gl,{prefixCls:Jr,key:fu,panelKey:fu,isActive:es,accordion:_i,openMotion:Ka,expandIcon:ul,header:Xu,collapsible:Bl,onItemClick:Ln,destroyInactivePanel:lu}),Va)})},ts=function(ur,Zr,Jr){if(!ur)return null;var _i=Jr.prefixCls,so=Jr.accordion,Ui=Jr.collapsible,hs=Jr.destroyInactivePanel,ra=Jr.onItemClick,Ka=Jr.activeKey,ul=Jr.openMotion,hl=Jr.expandIcon,kl=ur.key||String(Zr),Va=ur.props,Xu=Va.header,Na=Va.headerClass,Aa=Va.destroyInactivePanel,ll=Va.collapsible,Pu=Va.onItemClick,Gl=!1;so?Gl=Ka[0]===kl:Gl=Ka.indexOf(kl)>-1;var fu=ll!=null?ll:Ui,Bl=function(es){fu!=="disabled"&&(ra(es),Pu==null||Pu(es))},lu={key:kl,panelKey:kl,header:Xu,headerClass:Na,isActive:Gl,prefixCls:_i,destroyInactivePanel:Aa!=null?Aa:hs,openMotion:ul,accordion:so,children:ur.props.children,onItemClick:Bl,expandIcon:hl,collapsible:fu};return typeof ur.type=="string"?ur:(Object.keys(lu).forEach(function(Ln){typeof lu[Ln]=="undefined"&&delete lu[Ln]}),v.cloneElement(ur,lu))};function Wr(zn,ur,Zr){return Array.isArray(zn)?to(zn,Zr):(0,Yi.Z)(ur).map(function(Jr,_i){return ts(Jr,_i,Zr)})}var no=Wr;function Vi(zn){var ur=zn;if(!Array.isArray(ur)){var Zr=(0,Me.Z)(ur);ur=Zr==="number"||Zr==="string"?[ur]:[]}return ur.map(function(Jr){return String(Jr)})}var Pn=v.forwardRef(function(zn,ur){var Zr=zn.prefixCls,Jr=Zr===void 0?"rc-collapse":Zr,_i=zn.destroyInactivePanel,so=_i===void 0?!1:_i,Ui=zn.style,hs=zn.accordion,ra=zn.className,Ka=zn.children,ul=zn.collapsible,hl=zn.openMotion,kl=zn.expandIcon,Va=zn.activeKey,Xu=zn.defaultActiveKey,Na=zn.onChange,Aa=zn.items,ll=w()(Jr,ra),Pu=(0,b.Z)([],{value:Va,onChange:function(Is){return Na==null?void 0:Na(Is)},defaultValue:Xu,postState:Vi}),Gl=(0,fe.Z)(Pu,2),fu=Gl[0],Bl=Gl[1],lu=function(Is){return Bl(function(){if(hs)return fu[0]===Is?[]:[Is];var Qs=fu.indexOf(Is),dl=Qs>-1;return dl?fu.filter(function(uu){return uu!==Is}):[].concat((0,Mi.Z)(fu),[Is])})};(0,zi.ZP)(!Ka,"`children` will be removed in next major version. Please use `items` instead.");var Ln=no(Aa,Ka,{prefixCls:Jr,accordion:hs,openMotion:hl,expandIcon:kl,collapsible:ul,destroyInactivePanel:so,onItemClick:lu,activeKey:fu});return v.createElement("div",{ref:ur,className:ll,style:Ui,role:hs?"tablist":void 0},Ln)}),mi=Object.assign(Pn,{Panel:Mr}),ya=mi,Zs=mi.Panel,qs=_(98423),al=_(33603),co=_(96159),fl=v.forwardRef((zn,ur)=>{const{getPrefixCls:Zr}=v.useContext(O.E_),{prefixCls:Jr,className:_i,showArrow:so=!0}=zn,Ui=Zr("collapse",Jr),hs=w()({[`${Ui}-no-arrow`]:!so},_i);return v.createElement(ya.Panel,Object.assign({ref:ur},zn,{prefixCls:Ui,className:hs}))}),Ai=_(14747),Xi=_(33507),Fi=_(67968),No=_(45503);const yr=zn=>{const{componentCls:ur,contentBg:Zr,padding:Jr,headerBg:_i,headerPadding:so,collapseHeaderPaddingSM:Ui,collapseHeaderPaddingLG:hs,collapsePanelBorderRadius:ra,lineWidth:Ka,lineType:ul,colorBorder:hl,colorText:kl,colorTextHeading:Va,colorTextDisabled:Xu,fontSize:Na,fontSizeLG:Aa,lineHeight:ll,marginSM:Pu,paddingSM:Gl,paddingLG:fu,paddingXS:Bl,motionDurationSlow:lu,fontSizeIcon:Ln,contentPadding:es}=zn,Is=`${Ka}px ${ul} ${hl}`;return{[ur]:Object.assign(Object.assign({},(0,Ai.Wf)(zn)),{backgroundColor:_i,border:Is,borderBottom:0,borderRadius:`${ra}px`,["&-rtl"]:{direction:"rtl"},[`& > ${ur}-item`]:{borderBottom:Is,["&:last-child"]:{[` &, - & > ${eo}-header`]:{borderRadius:`0 0 ${so}px ${so}px`}},[`> ${eo}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ai,color:hl,lineHeight:ku,cursor:"pointer",transition:`all ${Jl}, visibility 0s`,[`> ${eo}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${eo}-expand-icon`]:{height:Ml*ku,display:"flex",alignItems:"center",paddingInlineEnd:ea},[`${eo}-arrow`]:Object.assign(Object.assign({},(0,$r.Ro)()),{fontSize:vu,svg:{transition:`transform ${Jl}`}}),[`${eo}-header-text`]:{marginInlineEnd:"auto"}},[`${eo}-header-collapsible-only`]:{cursor:"default",[`${eo}-header-text`]:{flex:"none",cursor:"pointer"}},[`${eo}-icon-collapsible-only`]:{cursor:"default",[`${eo}-expand-icon`]:{cursor:"pointer"}}},[`${eo}-content`]:{color:$a,backgroundColor:ds,borderTop:Cn,[`& > ${eo}-content-box`]:{padding:au},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${eo}-item`]:{[`> ${eo}-header`]:{padding:hi,paddingInlineStart:Hl,[`> ${eo}-expand-icon`]:{marginInlineStart:Qa-Hl}},[`> ${eo}-content > ${eo}-content-box`]:{padding:Qa}}},["&-large"]:{[`> ${eo}-item`]:{fontSize:Za,[`> ${eo}-header`]:{padding:Ji,paddingInlineStart:Wn,[`> ${eo}-expand-icon`]:{height:Za*ku,marginInlineStart:el-Wn}},[`> ${eo}-content > ${eo}-content-box`]:{padding:el}}},[`${eo}-item:last-child`]:{[`> ${eo}-content`]:{borderRadius:`0 0 ${so}px ${so}px`}},[`& ${eo}-item-disabled > ${eo}-header`]:{[` + & > ${ur}-header`]:{borderRadius:`0 0 ${ra}px ${ra}px`}},[`> ${ur}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:so,color:Va,lineHeight:ll,cursor:"pointer",transition:`all ${lu}, visibility 0s`,[`> ${ur}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${ur}-expand-icon`]:{height:Na*ll,display:"flex",alignItems:"center",paddingInlineEnd:Pu},[`${ur}-arrow`]:Object.assign(Object.assign({},(0,Ai.Ro)()),{fontSize:Ln,svg:{transition:`transform ${lu}`}}),[`${ur}-header-text`]:{marginInlineEnd:"auto"}},[`${ur}-icon-collapsible-only`]:{cursor:"unset",[`${ur}-expand-icon`]:{cursor:"pointer"}}},[`${ur}-content`]:{color:kl,backgroundColor:Zr,borderTop:Is,[`& > ${ur}-content-box`]:{padding:es},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${ur}-item`]:{[`> ${ur}-header`]:{padding:Ui,paddingInlineStart:Bl,[`> ${ur}-expand-icon`]:{marginInlineStart:Gl-Bl}},[`> ${ur}-content > ${ur}-content-box`]:{padding:Gl}}},["&-large"]:{[`> ${ur}-item`]:{fontSize:Aa,[`> ${ur}-header`]:{padding:hs,paddingInlineStart:Jr,[`> ${ur}-expand-icon`]:{height:Aa*ll,marginInlineStart:fu-Jr}},[`> ${ur}-content > ${ur}-content-box`]:{padding:fu}}},[`${ur}-item:last-child`]:{[`> ${ur}-content`]:{borderRadius:`0 0 ${ra}px ${ra}px`}},[`& ${ur}-item-disabled > ${ur}-header`]:{[` &, & > .arrow - `]:{color:Zl,cursor:"not-allowed"}},[`&${eo}-icon-position-end`]:{[`& > ${eo}-item`]:{[`> ${eo}-header`]:{[`${eo}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:ea}}}}})}},Eo=vo=>{const{componentCls:eo}=vo,ds=`> ${eo}-item > ${eo}-header ${eo}-arrow svg`;return{[`${eo}-rtl`]:{[ds]:{transform:"rotate(180deg)"}}}},mo=vo=>{const{componentCls:eo,headerBg:ds,paddingXXS:Wn,colorBorder:yr}=vo;return{[`${eo}-borderless`]:{backgroundColor:ds,border:0,[`> ${eo}-item`]:{borderBottom:`1px solid ${yr}`},[` - > ${eo}-item:last-child, - > ${eo}-item:last-child ${eo}-header - `]:{borderRadius:0},[`> ${eo}-item:last-child`]:{borderBottom:0},[`> ${eo}-item > ${eo}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${eo}-item > ${eo}-content > ${eo}-content-box`]:{paddingTop:Wn}}}},Ts=vo=>{const{componentCls:eo,paddingSM:ds}=vo;return{[`${eo}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${eo}-item`]:{borderBottom:0,[`> ${eo}-content`]:{backgroundColor:"transparent",border:0,[`> ${eo}-content-box`]:{paddingBlock:ds}}}}}};var xs=(0,Tr.Z)("Collapse",vo=>{const eo=(0,pr.TS)(vo,{collapseHeaderPaddingSM:`${vo.paddingXS}px ${vo.paddingSM}px`,collapseHeaderPaddingLG:`${vo.padding}px ${vo.paddingLG}px`,collapsePanelBorderRadius:vo.borderRadiusLG});return[ci(eo),mo(eo),Ts(eo),Eo(eo),(0,er.Z)(eo)]},vo=>({headerPadding:`${vo.paddingSM}px ${vo.padding}px`,headerBg:vo.colorFillAlter,contentPadding:`${vo.padding}px 16px`,contentBg:vo.colorBgContainer})),ui=Object.assign(y.forwardRef((vo,eo)=>{const{getPrefixCls:ds,direction:Wn,collapse:yr}=y.useContext(w.E_),{prefixCls:ai,className:hi,rootClassName:Ji,style:so,bordered:Pi=!0,ghost:us,size:pa,expandIconPosition:$a="start",children:hl,expandIcon:Zl}=vo,Ml=(0,I.Z)(Cn=>{var Eu;return(Eu=pa!=null?pa:Cn)!==null&&Eu!==void 0?Eu:"middle"}),Za=ds("collapse",ai),ku=ds(),[ea,Qa]=xs(Za),el=y.useMemo(()=>$a==="left"?"start":$a==="right"?"end":$a,[$a]),Hl=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Eu=Zl?Zl(Cn):y.createElement(br.Z,{rotate:Cn.isActive?90:void 0});return(0,Ua.Tm)(Eu,()=>({className:b()(Eu.props.className,`${Za}-arrow`)}))},Jl=b()(`${Za}-icon-position-${el}`,{[`${Za}-borderless`]:!Pi,[`${Za}-rtl`]:Wn==="rtl",[`${Za}-ghost`]:!!us,[`${Za}-${Ml}`]:Ml!=="middle"},yr==null?void 0:yr.className,hi,Ji,Qa),vu=Object.assign(Object.assign({},(0,Ws.Z)(ku)),{motionAppear:!1,leavedClassName:`${Za}-content-hidden`}),au=y.useMemo(()=>hl?(0,Di.Z)(hl).map((Cn,Eu)=>{var ls,Ks;if(!((ls=Cn.props)===null||ls===void 0)&&ls.disabled){const xa=(Ks=Cn.key)!==null&&Ks!==void 0?Ks:String(Eu),{disabled:Il,collapsible:El}=Cn.props,vl=Object.assign(Object.assign({},(0,ha.Z)(Cn.props,["disabled"])),{key:xa,collapsible:El!=null?El:Il?"disabled":void 0});return(0,Ua.Tm)(Cn,vl)}return Cn}):null,[hl]);return ea(y.createElement(ms,Object.assign({ref:eo,openMotion:vu},(0,ha.Z)(vo,["rootClassName"]),{expandIcon:Hl,prefixCls:Za,className:Jl,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),so)}),au))}),{Panel:dl}),Xt=ui,gn=m(10110);const En=vo=>vo.map(eo=>(eo.colors=eo.colors.map(Vn),eo)),tt=(vo,eo)=>{const{r:ds,g:Wn,b:yr,a:ai}=vo.toRgb(),hi=new De(vo.toRgbString()).onBackground(eo).toHsv();return ai<=.5?hi.v>.5:ds*.299+Wn*.587+yr*.114>192};var gt=vo=>{let{prefixCls:eo,presets:ds,value:Wn,onChange:yr}=vo;const[ai]=(0,gn.Z)("ColorPicker"),[,hi]=(0,S.Z)(),[Ji]=(0,z.Z)(En(ds),{value:En(ds),postState:En}),so=`${eo}-presets`,Pi=(0,y.useMemo)(()=>Ji.map($a=>`panel-${$a.label}`),[Ji]),us=$a=>{yr==null||yr($a)},pa=Ji.map($a=>{var hl;return{key:`panel-${$a.label}`,label:y.createElement("div",{className:`${so}-label`},$a==null?void 0:$a.label),children:y.createElement("div",{className:`${so}-items`},Array.isArray($a==null?void 0:$a.colors)&&((hl=$a.colors)===null||hl===void 0?void 0:hl.length)>0?$a.colors.map((Zl,Ml)=>y.createElement(bt,{key:`preset-${Ml}-${Zl.toHexString()}`,color:Vn(Zl).toRgbString(),prefixCls:eo,className:b()(`${so}-color`,{[`${so}-color-checked`]:Zl.toHexString()===(Wn==null?void 0:Wn.toHexString()),[`${so}-color-bright`]:tt(Zl,hi.colorBgElevated)}),onClick:()=>us(Zl)})):y.createElement("span",{className:`${so}-empty`},ai.presetEmpty))}});return y.createElement("div",{className:so},y.createElement(Xt,{defaultActiveKey:Pi,ghost:!0,items:pa}))},lt=()=>{const{prefixCls:vo,value:eo,presets:ds,onChange:Wn}=(0,y.useContext)(Ct);return Array.isArray(ds)?y.createElement(gt,{value:eo,presets:ds,prefixCls:vo,onChange:Wn}):null},St=function(vo,eo){var ds={};for(var Wn in vo)Object.prototype.hasOwnProperty.call(vo,Wn)&&eo.indexOf(Wn)<0&&(ds[Wn]=vo[Wn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,Wn=Object.getOwnPropertySymbols(vo);yr{const{prefixCls:eo,presets:ds,panelRender:Wn,color:yr,onChange:ai,onClear:hi}=vo,Ji=St(vo,["prefixCls","presets","panelRender","color","onChange","onClear"]),so=`${eo}-inner-content`,Pi=Object.assign({prefixCls:eo,value:yr,onChange:ai,onClear:hi},Ji),us=y.useMemo(()=>({prefixCls:eo,value:yr,presets:ds,onChange:ai}),[eo,yr,ds,ai]),pa=y.createElement(y.Fragment,null,y.createElement(pn,null),Array.isArray(ds)&&y.createElement(P.Z,{className:`${so}-divider`}),y.createElement(lt,null));return y.createElement(Wt,{value:Pi},y.createElement(sn,{value:us},y.createElement("div",{className:so},typeof Wn=="function"?Wn(pa,{components:{Picker:pn,Presets:lt}}):pa)))},Cr=function(vo,eo){var ds={};for(var Wn in vo)Object.prototype.hasOwnProperty.call(vo,Wn)&&eo.indexOf(Wn)<0&&(ds[Wn]=vo[Wn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,Wn=Object.getOwnPropertySymbols(vo);yr{const{color:ds,prefixCls:Wn,open:yr,colorCleared:ai,disabled:hi,format:Ji,className:so,showText:Pi}=vo,us=Cr(vo,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),pa=`${Wn}-trigger`,$a=(0,y.useMemo)(()=>ai?y.createElement(si,{prefixCls:Wn}):y.createElement(bt,{prefixCls:Wn,color:ds.toRgbString()}),[ds,ai,Wn]),hl=()=>{const Ml=ds.toHexString().toUpperCase(),Za=fr(ds);switch(Ji){case"rgb":return ds.toRgbString();case"hsb":return ds.toHsbString();case"hex":default:return Za<100?`${Ml.slice(0,7)},${Za}%`:Ml}},Zl=()=>{if(typeof Pi=="function")return Pi(ds);if(Pi)return hl()};return y.createElement("div",Object.assign({ref:eo,className:b()(pa,so,{[`${pa}-active`]:yr,[`${pa}-disabled`]:hi})},us),$a,Pi&&y.createElement("div",{className:`${pa}-text`},Zl()))});function Ki(vo){return vo!==void 0}var Ns=(vo,eo)=>{const{defaultValue:ds,value:Wn}=eo,[yr,ai]=(0,y.useState)(()=>{let hi;return Ki(Wn)?hi=Wn:Ki(ds)?hi=ds:hi=vo,Vn(hi||"")});return(0,y.useEffect)(()=>{Wn&&ai(Vn(Wn))},[Wn]),[yr,ai]};const Bs=(vo,eo)=>({backgroundImage:`conic-gradient(${eo} 0 25%, transparent 0 50%, ${eo} 0 75%, transparent 0)`,backgroundSize:`${vo} ${vo}`});var oo=(vo,eo)=>{const{componentCls:ds,borderRadiusSM:Wn,colorPickerInsetShadow:yr,lineWidth:ai,colorFillSecondary:hi}=vo;return{[`${ds}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Wn,width:eo,height:eo,boxShadow:yr},Bs("50%",vo.colorFillSecondary)),{[`${ds}-color-block-inner`]:{width:"100%",height:"100%",border:`${ai}px solid ${hi}`,borderRadius:"inherit"}})}},oa=vo=>{const{componentCls:eo,antCls:ds,fontSizeSM:Wn,lineHeightSM:yr,colorPickerAlphaInputWidth:ai,marginXXS:hi,paddingXXS:Ji,controlHeightSM:so,marginXS:Pi,fontSizeIcon:us,paddingXS:pa,colorTextPlaceholder:$a,colorPickerInputNumberHandleWidth:hl,lineWidth:Zl}=vo;return{[`${eo}-input-container`]:{display:"flex",[`${eo}-steppers${ds}-input-number`]:{fontSize:Wn,lineHeight:yr,[`${ds}-input-number-input`]:{paddingInlineStart:Ji,paddingInlineEnd:0},[`${ds}-input-number-handler-wrap`]:{width:hl}},[`${eo}-steppers${eo}-alpha-input`]:{flex:`0 0 ${ai}px`,marginInlineStart:hi},[`${eo}-format-select${ds}-select`]:{marginInlineEnd:Pi,width:"auto","&-single":{[`${ds}-select-selector`]:{padding:0,border:0},[`${ds}-select-arrow`]:{insetInlineEnd:0},[`${ds}-select-selection-item`]:{paddingInlineEnd:us+hi,fontSize:Wn,lineHeight:`${so}px`},[`${ds}-select-item-option-content`]:{fontSize:Wn,lineHeight:yr},[`${ds}-select-dropdown`]:{[`${ds}-select-item`]:{minHeight:"auto"}}}},[`${eo}-input`]:{gap:hi,alignItems:"center",flex:1,width:0,[`${eo}-hsb-input,${eo}-rgb-input`]:{display:"flex",gap:hi,alignItems:"center"},[`${eo}-steppers`]:{flex:1},[`${eo}-hex-input${ds}-input-affix-wrapper`]:{flex:1,padding:`0 ${pa}px`,[`${ds}-input`]:{fontSize:Wn,textTransform:"uppercase",lineHeight:`${so-2*Zl}px`},[`${ds}-input-prefix`]:{color:$a}}}}}},Bl=vo=>{const{componentCls:eo,controlHeightLG:ds,borderRadiusSM:Wn,colorPickerInsetShadow:yr,marginSM:ai,colorBgElevated:hi,colorFillSecondary:Ji,lineWidthBold:so,colorPickerHandlerSize:Pi,colorPickerHandlerSizeSM:us,colorPickerSliderHeight:pa}=vo;return{[`${eo}-select`]:{[`${eo}-palette`]:{minHeight:ds*4,overflow:"hidden",borderRadius:Wn},[`${eo}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:yr,inset:0},marginBottom:ai},[`${eo}-handler`]:{width:Pi,height:Pi,border:`${so}px solid ${hi}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${yr}, 0 0 0 1px ${Ji}`,"&-sm":{width:us,height:us}},[`${eo}-slider`]:{borderRadius:pa/2,[`${eo}-palette`]:{height:pa},[`${eo}-gradient`]:{borderRadius:pa/2,boxShadow:yr},"&-alpha":Bs(`${pa}px`,vo.colorFillSecondary),"&-hue":{marginBottom:ai}},[`${eo}-slider-container`]:{display:"flex",gap:ai,marginBottom:ai,[`${eo}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${eo}-slider`]:{flex:1,marginBottom:0}}}}}},ml=vo=>{const{componentCls:eo,antCls:ds,colorTextQuaternary:Wn,paddingXXS:yr,colorPickerPresetColorSize:ai,fontSizeSM:hi,colorText:Ji,lineHeightSM:so,lineWidth:Pi,borderRadius:us,colorFill:pa,colorWhite:$a,marginXXS:hl,paddingXS:Zl}=vo;return{[`${eo}-presets`]:{[`${ds}-collapse-item > ${ds}-collapse-header`]:{padding:0,[`${ds}-collapse-expand-icon`]:{height:hi*so,color:Wn,paddingInlineEnd:yr}},[`${ds}-collapse`]:{display:"flex",flexDirection:"column",gap:hl},[`${ds}-collapse-item > ${ds}-collapse-content > ${ds}-collapse-content-box`]:{padding:`${Zl}px 0`},"&-label":{fontSize:hi,color:Ji,lineHeight:so},"&-items":{display:"flex",flexWrap:"wrap",gap:hl*1.5,[`${eo}-presets-color`]:{position:"relative",cursor:"pointer",width:ai,height:ai,"&::before":{content:'""',pointerEvents:"none",width:ai+4*Pi,height:ai+4*Pi,position:"absolute",top:-2*Pi,insetInlineStart:-2*Pi,borderRadius:us,border:`${Pi}px solid transparent`,transition:`border-color ${vo.motionDurationMid} ${vo.motionEaseInBack}`},"&:hover::before":{borderColor:pa},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ai/13*5,height:ai/13*8,border:`${vo.lineWidthBold}px solid ${vo.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${vo.motionDurationFast} ${vo.motionEaseInBack}, opacity ${vo.motionDurationFast}`},[`&${eo}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:$a,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${vo.motionDurationMid} ${vo.motionEaseOutBack} ${vo.motionDurationFast}`},[`&${eo}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:hi,color:Wn}}}};const la=(vo,eo,ds)=>({borderInlineEndWidth:vo.lineWidth,borderColor:eo,boxShadow:`0 0 0 ${vo.controlOutlineWidth}px ${ds}`,outline:0}),Nl=vo=>{const{componentCls:eo}=vo;return{"&-rtl":{[`${eo}-presets-color`]:{"&::after":{direction:"ltr"}},[`${eo}-clear`]:{"&::after":{direction:"ltr"}}}}},vs=(vo,eo,ds)=>{const{componentCls:Wn,borderRadiusSM:yr,lineWidth:ai,colorSplit:hi,red6:Ji}=vo;return{[`${Wn}-clear`]:Object.assign(Object.assign({width:eo,height:eo,borderRadius:yr,border:`${ai}px solid ${hi}`,position:"relative",cursor:"pointer",overflow:"hidden"},ds),{"&::after":{content:'""',position:"absolute",insetInlineEnd:ai,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Ji}})}},Hi=vo=>{const{componentCls:eo,colorError:ds,colorWarning:Wn,colorErrorHover:yr,colorWarningHover:ai,colorErrorOutline:hi,colorWarningOutline:Ji}=vo;return{[`&${eo}-status-error`]:{borderColor:ds,"&:hover":{borderColor:yr},[`&${eo}-trigger-active`]:Object.assign({},la(vo,ds,hi))},[`&${eo}-status-warning`]:{borderColor:Wn,"&:hover":{borderColor:ai},[`&${eo}-trigger-active`]:Object.assign({},la(vo,Wn,Ji))}}},to=vo=>{const{componentCls:eo,controlHeightLG:ds,controlHeightSM:Wn,controlHeight:yr,controlHeightXS:ai,borderRadius:hi,borderRadiusSM:Ji,borderRadiusXS:so,borderRadiusLG:Pi,fontSizeLG:us}=vo;return{[`&${eo}-lg`]:{minWidth:ds,height:ds,borderRadius:Pi,[`${eo}-color-block, ${eo}-clear`]:{width:yr,height:yr,borderRadius:hi},[`${eo}-trigger-text`]:{fontSize:us}},[`&${eo}-sm`]:{minWidth:Wn,height:Wn,borderRadius:Ji,[`${eo}-color-block, ${eo}-clear`]:{width:ai,height:ai,borderRadius:so}}}},sa=vo=>{const{componentCls:eo,colorPickerWidth:ds,colorPrimary:Wn,motionDurationMid:yr,colorBgElevated:ai,colorTextDisabled:hi,colorText:Ji,colorBgContainerDisabled:so,borderRadius:Pi,marginXS:us,marginSM:pa,controlHeight:$a,controlHeightSM:hl,colorBgTextActive:Zl,colorPickerPresetColorSize:Ml,colorPickerPreviewSize:Za,lineWidth:ku,colorBorder:ea,paddingXXS:Qa,fontSize:el,colorPrimaryHover:Hl,controlOutline:Jl}=vo;return[{[eo]:Object.assign({[`${eo}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:ds,"&-divider":{margin:`${pa}px 0 ${us}px`},[`${eo}-panel`]:Object.assign({},Bl(vo))},oo(vo,Za)),oa(vo)),ml(vo)),vs(vo,Ml,{marginInlineStart:"auto",marginBottom:us})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:$a,height:$a,borderRadius:Pi,border:`${ku}px solid ${ea}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${yr}`,background:ai,padding:Qa-ku,[`${eo}-trigger-text`]:{marginInlineStart:us,marginInlineEnd:us-(Qa-ku),fontSize:el,color:Ji},"&:hover":{borderColor:Hl},[`&${eo}-trigger-active`]:Object.assign({},la(vo,Wn,Jl)),"&-disabled":{color:hi,background:so,cursor:"not-allowed","&:hover":{borderColor:Zl},[`${eo}-trigger-text`]:{color:hi}}},vs(vo,hl)),oo(vo,hl)),Hi(vo)),to(vo))},Nl(vo))}]};var Cs=(0,Tr.Z)("ColorPicker",vo=>{const{colorTextQuaternary:eo,marginSM:ds}=vo,Wn=8,yr=(0,pr.TS)(vo,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${eo}`,colorPickerSliderHeight:Wn,colorPickerPreviewSize:Wn*2+ds});return[sa(yr)]});const Ka=vo=>{const{value:eo,defaultValue:ds,format:Wn,defaultFormat:yr,allowClear:ai=!1,presets:hi,children:Ji,trigger:so="click",open:Pi,disabled:us,placement:pa="bottomLeft",arrow:$a=!0,panelRender:hl,showText:Zl,style:Ml,className:Za,size:ku,rootClassName:ea,styles:Qa,disabledAlpha:el=!1,onFormatChange:Hl,onChange:Jl,onClear:vu,onOpenChange:au,onChangeComplete:Cn,getPopupContainer:Eu,autoAdjustOverflow:ls=!0,destroyTooltipOnHide:Ks}=vo,{getPrefixCls:xa,direction:Il,colorPicker:El}=(0,y.useContext)(w.E_),[,vl]=(0,S.Z)(),[fu,Fu]=Ns(vl.colorPrimary,{value:eo,defaultValue:ds}),[lc,Ic]=(0,z.Z)(!1,{value:Pi,postState:Lh=>!us&&Lh,onChange:au}),[Uc,zd]=(0,z.Z)(Wn,{value:Wn,defaultValue:yr,onChange:Hl}),[th,Xd]=(0,y.useState)(!1),sd=xa("color-picker",Ht),Mu=(0,y.useMemo)(()=>fr(fu)<100,[fu]),{status:Fc}=y.useContext(C.aM),hd=(0,I.Z)(ku),[vd,Yd]=Cs(sd),nh={[`${sd}-rtl`]:Il},jd=b()(ea,nh),yh=b()((0,N.Z)(sd,Fc),{[`${sd}-sm`]:hd==="small",[`${sd}-lg`]:hd==="large"},El==null?void 0:El.className,jd,Za,Yd),id=b()(sd,nh),nd=(0,y.useRef)(!0),Pf=(Lh,Sf,xp)=>{let Nf=Vn(Lh);(th||(eo===null||!eo&&ds===null))&&(Xd(!1),fr(fu)===0&&Sf!=="alpha"&&(Nf=Kr(Nf))),el&&Mu&&(Nf=Kr(Nf)),xp?nd.current=!1:Cn==null||Cn(Nf),Fu(Nf),Jl==null||Jl(Nf,Nf.toHexString())},Jd=()=>{Xd(!0),vu==null||vu()},cc=Lh=>{nd.current=!0;let Sf=Vn(Lh);el&&Mu&&(Sf=Kr(Lh)),Cn==null||Cn(Sf)},Yc={open:lc,trigger:so,placement:pa,arrow:$a,rootClassName:ea,getPopupContainer:Eu,autoAdjustOverflow:ls,destroyTooltipOnHide:Ks},jh={prefixCls:sd,color:fu,allowClear:ai,colorCleared:th,disabled:us,disabledAlpha:el,presets:hi,panelRender:hl,format:Uc,onFormatChange:zd,onChangeComplete:cc},uf=Object.assign(Object.assign({},El==null?void 0:El.style),Ml);return vd(y.createElement(f.Z,Object.assign({style:Qa==null?void 0:Qa.popup,overlayInnerStyle:Qa==null?void 0:Qa.popupOverlayInner,onOpenChange:Lh=>{nd.current&&!us&&Ic(Lh)},content:y.createElement(C.Ux,{override:!0,status:!0},y.createElement(jn,Object.assign({},jh,{onChange:Pf,onChangeComplete:cc,onClear:Jd}))),overlayClassName:id},Yc),Ji||y.createElement(Vi,{open:lc,className:yh,style:uf,color:eo?Vn(eo):fu,prefixCls:sd,disabled:us,colorCleared:th,showText:Zl,format:Uc})))},Wu=(0,k.Z)(Ka,"color-picker",vo=>vo,vo=>Object.assign(Object.assign({},vo),{placement:"bottom",autoAdjustOverflow:!1}));Ka._InternalPanelDoNotUseOrYouWillBeFired=Wu;var rc=Ka,Pc=rc},98866:function(nt,V,m){"use strict";m.d(V,{n:function(){return b}});var y=m(67294);const A=y.createContext(!1),b=z=>{let{children:k,disabled:N}=z;const w=y.useContext(A);return y.createElement(A.Provider,{value:N!=null?N:w},k)};V.Z=A},97647:function(nt,V,m){"use strict";m.d(V,{q:function(){return b}});var y=m(67294);const A=y.createContext(void 0),b=z=>{let{children:k,size:N}=z;const w=y.useContext(A);return y.createElement(A.Provider,{value:N||w},k)};V.Z=A},53124:function(nt,V,m){"use strict";m.d(V,{E_:function(){return z},oR:function(){return A}});var y=m(67294);const A="anticon",b=(N,w)=>w||(N?`ant-${N}`:"ant"),z=y.createContext({getPrefixCls:b,iconPrefixCls:A}),{Consumer:k}=z},88258:function(nt,V,m){"use strict";var y=m(67294),A=m(53124),b=m(32983);const z=k=>{const{componentName:N}=k,{getPrefixCls:w}=(0,y.useContext)(A.E_),I=w("empty");switch(N){case"Table":case"List":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE,className:`${I}-small`});default:return y.createElement(b.Z,null)}};V.Z=z},98675:function(nt,V,m){"use strict";var y=m(67294),A=m(97647);const b=z=>{const k=y.useContext(A.Z);return y.useMemo(()=>z?typeof z=="string"?z!=null?z:k:z instanceof Function?z(k):k:k,[z,k])};V.Z=b},94740:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return go},w6:function(){return ve}});var y=m(67294),A=m(85731),b=m(54775),z=m(56982),k=m(8880),N=m(27288),w=m(37920),I=m(83008),C=m(76745);const f="internalMark";var P=ji=>{const{locale:No={},children:dn,_ANT_MARK__:Ve}=ji;y.useEffect(()=>(0,I.f)(No&&No.Modal),[No]);const yt=y.useMemo(()=>Object.assign(Object.assign({},No),{exist:!0}),[No]);return y.createElement(C.Z.Provider,{value:yt},dn)},W=m(88526),te=m(33083),q=m(2790),ie=m(53124),he=m(16397),de=m(10274),fe=m(98924),ke=m(44958);const Ie=`-ant-${Date.now()}-${Math.random()}`;function Be(ji,No){const dn={},Ve=(Wt,sn)=>{let Mt=Wt.clone();return Mt=(sn==null?void 0:sn(Mt))||Mt,Mt.toRgbString()},yt=(Wt,sn)=>{const Mt=new de.C(Wt),Tt=(0,he.R_)(Mt.toRgbString());dn[`${sn}-color`]=Ve(Mt),dn[`${sn}-color-disabled`]=Tt[1],dn[`${sn}-color-hover`]=Tt[4],dn[`${sn}-color-active`]=Tt[6],dn[`${sn}-color-outline`]=Mt.clone().setAlpha(.2).toRgbString(),dn[`${sn}-color-deprecated-bg`]=Tt[0],dn[`${sn}-color-deprecated-border`]=Tt[2]};if(No.primaryColor){yt(No.primaryColor,"primary");const Wt=new de.C(No.primaryColor),sn=(0,he.R_)(Wt.toRgbString());sn.forEach((Tt,xt)=>{dn[`primary-${xt+1}`]=Tt}),dn["primary-color-deprecated-l-35"]=Ve(Wt,Tt=>Tt.lighten(35)),dn["primary-color-deprecated-l-20"]=Ve(Wt,Tt=>Tt.lighten(20)),dn["primary-color-deprecated-t-20"]=Ve(Wt,Tt=>Tt.tint(20)),dn["primary-color-deprecated-t-50"]=Ve(Wt,Tt=>Tt.tint(50)),dn["primary-color-deprecated-f-12"]=Ve(Wt,Tt=>Tt.setAlpha(Tt.getAlpha()*.12));const Mt=new de.C(sn[0]);dn["primary-color-active-deprecated-f-30"]=Ve(Mt,Tt=>Tt.setAlpha(Tt.getAlpha()*.3)),dn["primary-color-active-deprecated-d-02"]=Ve(Mt,Tt=>Tt.darken(2))}return No.successColor&&yt(No.successColor,"success"),No.warningColor&&yt(No.warningColor,"warning"),No.errorColor&&yt(No.errorColor,"error"),No.infoColor&&yt(No.infoColor,"info"),` + `]:{color:Xu,cursor:"not-allowed"}},[`&${ur}-icon-position-end`]:{[`& > ${ur}-item`]:{[`> ${ur}-header`]:{[`${ur}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Pu}}}}})}},ui=zn=>{const{componentCls:ur}=zn,Zr=`> ${ur}-item > ${ur}-header ${ur}-arrow svg`;return{[`${ur}-rtl`]:{[Zr]:{transform:"rotate(180deg)"}}}},Zo=zn=>{const{componentCls:ur,headerBg:Zr,paddingXXS:Jr,colorBorder:_i}=zn;return{[`${ur}-borderless`]:{backgroundColor:Zr,border:0,[`> ${ur}-item`]:{borderBottom:`1px solid ${_i}`},[` + > ${ur}-item:last-child, + > ${ur}-item:last-child ${ur}-header + `]:{borderRadius:0},[`> ${ur}-item:last-child`]:{borderBottom:0},[`> ${ur}-item > ${ur}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${ur}-item > ${ur}-content > ${ur}-content-box`]:{paddingTop:Jr}}}},ns=zn=>{const{componentCls:ur,paddingSM:Zr}=zn;return{[`${ur}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${ur}-item`]:{borderBottom:0,[`> ${ur}-content`]:{backgroundColor:"transparent",border:0,[`> ${ur}-content-box`]:{paddingBlock:Zr}}}}}};var Lr=(0,Fi.Z)("Collapse",zn=>{const ur=(0,No.TS)(zn,{collapseHeaderPaddingSM:`${zn.paddingXS}px ${zn.paddingSM}px`,collapseHeaderPaddingLG:`${zn.padding}px ${zn.paddingLG}px`,collapsePanelBorderRadius:zn.borderRadiusLG});return[yr(ur),Zo(ur),ns(ur),ui(ur),(0,Xi.Z)(ur)]},zn=>({headerPadding:`${zn.paddingSM}px ${zn.padding}px`,headerBg:zn.colorFillAlter,contentPadding:`${zn.padding}px 16px`,contentBg:zn.colorBgContainer})),hn=Object.assign(v.forwardRef((zn,ur)=>{const{getPrefixCls:Zr,direction:Jr,collapse:_i}=v.useContext(O.E_),{prefixCls:so,className:Ui,rootClassName:hs,style:ra,bordered:Ka=!0,ghost:ul,size:hl,expandIconPosition:kl="start",children:Va,expandIcon:Xu}=zn,Na=(0,S.Z)(Is=>{var Qs;return(Qs=hl!=null?hl:Is)!==null&&Qs!==void 0?Qs:"middle"}),Aa=Zr("collapse",so),ll=Zr(),[Pu,Gl]=Lr(Aa),fu=v.useMemo(()=>kl==="left"?"start":kl==="right"?"end":kl,[kl]),Bl=function(){let Is=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Qs=Xu?Xu(Is):v.createElement(qr.Z,{rotate:Is.isActive?90:void 0});return(0,co.Tm)(Qs,()=>({className:w()(Qs.props.className,`${Aa}-arrow`)}))},lu=w()(`${Aa}-icon-position-${fu}`,{[`${Aa}-borderless`]:!Ka,[`${Aa}-rtl`]:Jr==="rtl",[`${Aa}-ghost`]:!!ul,[`${Aa}-${Na}`]:Na!=="middle"},_i==null?void 0:_i.className,Ui,hs,Gl),Ln=Object.assign(Object.assign({},(0,al.Z)(ll)),{motionAppear:!1,leavedClassName:`${Aa}-content-hidden`}),es=v.useMemo(()=>Va?(0,Yi.Z)(Va).map((Is,Qs)=>{var dl,uu;if(!((dl=Is.props)===null||dl===void 0)&&dl.disabled){const Jl=(uu=Is.key)!==null&&uu!==void 0?uu:String(Qs),{disabled:xu,collapsible:Tu}=Is.props,tc=Object.assign(Object.assign({},(0,qs.Z)(Is.props,["disabled"])),{key:Jl,collapsible:Tu!=null?Tu:xu?"disabled":void 0});return(0,co.Tm)(Is,tc)}return Is}):null,[Va]);return Pu(v.createElement(ya,Object.assign({ref:ur,openMotion:Ln},(0,qs.Z)(zn,["rootClassName"]),{expandIcon:Bl,prefixCls:Aa,className:lu,style:Object.assign(Object.assign({},_i==null?void 0:_i.style),ra)}),es))}),{Panel:fl}),Tn=hn,ar=_(10110);const ft=zn=>zn.map(ur=>(ur.colors=ur.colors.map(on),ur)),wt=(zn,ur)=>{const{r:Zr,g:Jr,b:_i,a:so}=zn.toRgb(),Ui=new Te(zn.toRgbString()).onBackground(ur).toHsv();return so<=.5?Ui.v>.5:Zr*.299+Jr*.587+_i*.114>192},At=zn=>{let{label:ur}=zn;return`panel-${ur}`};var Et=zn=>{let{prefixCls:ur,presets:Zr,value:Jr,onChange:_i}=zn;const[so]=(0,ar.Z)("ColorPicker"),[,Ui]=(0,k.Z)(),[hs]=(0,b.Z)(ft(Zr),{value:ft(Zr),postState:ft}),ra=`${ur}-presets`,Ka=(0,v.useMemo)(()=>hs.reduce((kl,Va)=>{const{defaultOpen:Xu=!0}=Va;return Xu&&kl.push(At(Va)),kl},[]),[hs]),ul=kl=>{_i==null||_i(kl)},hl=hs.map(kl=>{var Va;return{key:At(kl),label:v.createElement("div",{className:`${ra}-label`},kl==null?void 0:kl.label),children:v.createElement("div",{className:`${ra}-items`},Array.isArray(kl==null?void 0:kl.colors)&&((Va=kl.colors)===null||Va===void 0?void 0:Va.length)>0?kl.colors.map((Xu,Na)=>v.createElement(ut,{key:`preset-${Na}-${Xu.toHexString()}`,color:on(Xu).toRgbString(),prefixCls:ur,className:w()(`${ra}-color`,{[`${ra}-color-checked`]:Xu.toHexString()===(Jr==null?void 0:Jr.toHexString()),[`${ra}-color-bright`]:wt(Xu,Ui.colorBgElevated)}),onClick:()=>ul(Xu)})):v.createElement("span",{className:`${ra}-empty`},so.presetEmpty))}});return v.createElement("div",{className:ra},v.createElement(Tn,{defaultActiveKey:Ka,ghost:!0,items:hl}))},vn=()=>{const{prefixCls:zn,value:ur,presets:Zr,onChange:Jr}=(0,v.useContext)(mn);return Array.isArray(Zr)?v.createElement(Et,{value:ur,presets:Zr,prefixCls:zn,onChange:Jr}):null},Er=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{const{prefixCls:ur,presets:Zr,panelRender:Jr,color:_i,onChange:so,onClear:Ui}=zn,hs=Er(zn,["prefixCls","presets","panelRender","color","onChange","onClear"]),ra=`${ur}-inner-content`,Ka=Object.assign({prefixCls:ur,value:_i,onChange:so,onClear:Ui},hs),ul=v.useMemo(()=>({prefixCls:ur,value:_i,presets:Zr,onChange:so}),[ur,_i,Zr,so]),hl=v.createElement(v.Fragment,null,v.createElement(Sr,null),Array.isArray(Zr)&&v.createElement(K.Z,{className:`${ra}-divider`}),v.createElement(vn,null));return v.createElement(kn,{value:Ka},v.createElement(an,{value:ul},v.createElement("div",{className:ra},typeof Jr=="function"?Jr(hl,{components:{Picker:Sr,Presets:vn}}):hl)))},ko=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{const{color:Zr,prefixCls:Jr,open:_i,colorCleared:so,disabled:Ui,format:hs,className:ra,showText:Ka}=zn,ul=ko(zn,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),hl=`${Jr}-trigger`,kl=(0,v.useMemo)(()=>so?v.createElement(eo,{prefixCls:Jr}):v.createElement(ut,{prefixCls:Jr,color:Zr.toRgbString()}),[Zr,so,Jr]),Va=()=>{const Na=Zr.toHexString().toUpperCase(),Aa=oi(Zr);switch(hs){case"rgb":return Zr.toRgbString();case"hsb":return Zr.toHsbString();case"hex":default:return Aa<100?`${Na.slice(0,7)},${Aa}%`:Na}},Xu=()=>{if(typeof Ka=="function")return Ka(Zr);if(Ka)return Va()};return v.createElement("div",Object.assign({ref:ur,className:w()(hl,ra,{[`${hl}-active`]:_i,[`${hl}-disabled`]:Ui})},ul),kl,Ka&&v.createElement("div",{className:`${hl}-text`},Xu()))});function ps(zn){return zn!==void 0}var Hs=(zn,ur)=>{const{defaultValue:Zr,value:Jr}=ur,[_i,so]=(0,v.useState)(()=>{let Ui;return ps(Jr)?Ui=Jr:ps(Zr)?Ui=Zr:Ui=zn,on(Ui||"")});return(0,v.useEffect)(()=>{Jr&&so(on(Jr))},[Jr]),[_i,so]};const Po=(zn,ur)=>({backgroundImage:`conic-gradient(${ur} 0 25%, transparent 0 50%, ${ur} 0 75%, transparent 0)`,backgroundSize:`${zn} ${zn}`});var ma=(zn,ur)=>{const{componentCls:Zr,borderRadiusSM:Jr,colorPickerInsetShadow:_i,lineWidth:so,colorFillSecondary:Ui}=zn;return{[`${Zr}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Jr,width:ur,height:ur,boxShadow:_i},Po("50%",zn.colorFillSecondary)),{[`${Zr}-color-block-inner`]:{width:"100%",height:"100%",border:`${so}px solid ${Ui}`,borderRadius:"inherit"}})}},El=zn=>{const{componentCls:ur,antCls:Zr,fontSizeSM:Jr,lineHeightSM:_i,colorPickerAlphaInputWidth:so,marginXXS:Ui,paddingXXS:hs,controlHeightSM:ra,marginXS:Ka,fontSizeIcon:ul,paddingXS:hl,colorTextPlaceholder:kl,colorPickerInputNumberHandleWidth:Va,lineWidth:Xu}=zn;return{[`${ur}-input-container`]:{display:"flex",[`${ur}-steppers${Zr}-input-number`]:{fontSize:Jr,lineHeight:_i,[`${Zr}-input-number-input`]:{paddingInlineStart:hs,paddingInlineEnd:0},[`${Zr}-input-number-handler-wrap`]:{width:Va}},[`${ur}-steppers${ur}-alpha-input`]:{flex:`0 0 ${so}px`,marginInlineStart:Ui},[`${ur}-format-select${Zr}-select`]:{marginInlineEnd:Ka,width:"auto","&-single":{[`${Zr}-select-selector`]:{padding:0,border:0},[`${Zr}-select-arrow`]:{insetInlineEnd:0},[`${Zr}-select-selection-item`]:{paddingInlineEnd:ul+Ui,fontSize:Jr,lineHeight:`${ra}px`},[`${Zr}-select-item-option-content`]:{fontSize:Jr,lineHeight:_i},[`${Zr}-select-dropdown`]:{[`${Zr}-select-item`]:{minHeight:"auto"}}}},[`${ur}-input`]:{gap:Ui,alignItems:"center",flex:1,width:0,[`${ur}-hsb-input,${ur}-rgb-input`]:{display:"flex",gap:Ui,alignItems:"center"},[`${ur}-steppers`]:{flex:1},[`${ur}-hex-input${Zr}-input-affix-wrapper`]:{flex:1,padding:`0 ${hl}px`,[`${Zr}-input`]:{fontSize:Jr,textTransform:"uppercase",lineHeight:`${ra-2*Xu}px`},[`${Zr}-input-prefix`]:{color:kl}}}}}},Ns=zn=>{const{componentCls:ur,controlHeightLG:Zr,borderRadiusSM:Jr,colorPickerInsetShadow:_i,marginSM:so,colorBgElevated:Ui,colorFillSecondary:hs,lineWidthBold:ra,colorPickerHandlerSize:Ka,colorPickerHandlerSizeSM:ul,colorPickerSliderHeight:hl}=zn;return{[`${ur}-select`]:{[`${ur}-palette`]:{minHeight:Zr*4,overflow:"hidden",borderRadius:Jr},[`${ur}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:_i,inset:0},marginBottom:so},[`${ur}-handler`]:{width:Ka,height:Ka,border:`${ra}px solid ${Ui}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${_i}, 0 0 0 1px ${hs}`,"&-sm":{width:ul,height:ul}},[`${ur}-slider`]:{borderRadius:hl/2,[`${ur}-palette`]:{height:hl},[`${ur}-gradient`]:{borderRadius:hl/2,boxShadow:_i},"&-alpha":Po(`${hl}px`,zn.colorFillSecondary),"&-hue":{marginBottom:so}},[`${ur}-slider-container`]:{display:"flex",gap:so,marginBottom:so,[`${ur}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${ur}-slider`]:{flex:1,marginBottom:0}}}}}},vl=zn=>{const{componentCls:ur,antCls:Zr,colorTextQuaternary:Jr,paddingXXS:_i,colorPickerPresetColorSize:so,fontSizeSM:Ui,colorText:hs,lineHeightSM:ra,lineWidth:Ka,borderRadius:ul,colorFill:hl,colorWhite:kl,marginXXS:Va,paddingXS:Xu}=zn;return{[`${ur}-presets`]:{[`${Zr}-collapse-item > ${Zr}-collapse-header`]:{padding:0,[`${Zr}-collapse-expand-icon`]:{height:Ui*ra,color:Jr,paddingInlineEnd:_i}},[`${Zr}-collapse`]:{display:"flex",flexDirection:"column",gap:Va},[`${Zr}-collapse-item > ${Zr}-collapse-content > ${Zr}-collapse-content-box`]:{padding:`${Xu}px 0`},"&-label":{fontSize:Ui,color:hs,lineHeight:ra},"&-items":{display:"flex",flexWrap:"wrap",gap:Va*1.5,[`${ur}-presets-color`]:{position:"relative",cursor:"pointer",width:so,height:so,"&::before":{content:'""',pointerEvents:"none",width:so+4*Ka,height:so+4*Ka,position:"absolute",top:-2*Ka,insetInlineStart:-2*Ka,borderRadius:ul,border:`${Ka}px solid transparent`,transition:`border-color ${zn.motionDurationMid} ${zn.motionEaseInBack}`},"&:hover::before":{borderColor:hl},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:so/13*5,height:so/13*8,border:`${zn.lineWidthBold}px solid ${zn.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${zn.motionDurationFast} ${zn.motionEaseInBack}, opacity ${zn.motionDurationFast}`},[`&${ur}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:kl,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${zn.motionDurationMid} ${zn.motionEaseOutBack} ${zn.motionDurationFast}`},[`&${ur}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:Ui,color:Jr}}}};const ds=(zn,ur,Zr)=>({borderInlineEndWidth:zn.lineWidth,borderColor:ur,boxShadow:`0 0 0 ${zn.controlOutlineWidth}px ${Zr}`,outline:0}),io=zn=>{const{componentCls:ur}=zn;return{"&-rtl":{[`${ur}-presets-color`]:{"&::after":{direction:"ltr"}},[`${ur}-clear`]:{"&::after":{direction:"ltr"}}}}},Ko=(zn,ur,Zr)=>{const{componentCls:Jr,borderRadiusSM:_i,lineWidth:so,colorSplit:Ui,red6:hs}=zn;return{[`${Jr}-clear`]:Object.assign(Object.assign({width:ur,height:ur,borderRadius:_i,border:`${so}px solid ${Ui}`,position:"relative",cursor:"pointer",overflow:"hidden"},Zr),{"&::after":{content:'""',position:"absolute",insetInlineEnd:so,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:hs}})}},As=zn=>{const{componentCls:ur,colorError:Zr,colorWarning:Jr,colorErrorHover:_i,colorWarningHover:so,colorErrorOutline:Ui,colorWarningOutline:hs}=zn;return{[`&${ur}-status-error`]:{borderColor:Zr,"&:hover":{borderColor:_i},[`&${ur}-trigger-active`]:Object.assign({},ds(zn,Zr,Ui))},[`&${ur}-status-warning`]:{borderColor:Jr,"&:hover":{borderColor:so},[`&${ur}-trigger-active`]:Object.assign({},ds(zn,Jr,hs))}}},ks=zn=>{const{componentCls:ur,controlHeightLG:Zr,controlHeightSM:Jr,controlHeight:_i,controlHeightXS:so,borderRadius:Ui,borderRadiusSM:hs,borderRadiusXS:ra,borderRadiusLG:Ka,fontSizeLG:ul}=zn;return{[`&${ur}-lg`]:{minWidth:Zr,height:Zr,borderRadius:Ka,[`${ur}-color-block, ${ur}-clear`]:{width:_i,height:_i,borderRadius:Ui},[`${ur}-trigger-text`]:{fontSize:ul}},[`&${ur}-sm`]:{minWidth:Jr,height:Jr,borderRadius:hs,[`${ur}-color-block, ${ur}-clear`]:{width:so,height:so,borderRadius:ra}}}},Ga=zn=>{const{componentCls:ur,colorPickerWidth:Zr,colorPrimary:Jr,motionDurationMid:_i,colorBgElevated:so,colorTextDisabled:Ui,colorText:hs,colorBgContainerDisabled:ra,borderRadius:Ka,marginXS:ul,marginSM:hl,controlHeight:kl,controlHeightSM:Va,colorBgTextActive:Xu,colorPickerPresetColorSize:Na,colorPickerPreviewSize:Aa,lineWidth:ll,colorBorder:Pu,paddingXXS:Gl,fontSize:fu,colorPrimaryHover:Bl,controlOutline:lu}=zn;return[{[ur]:Object.assign({[`${ur}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:Zr,"&-divider":{margin:`${hl}px 0 ${ul}px`},[`${ur}-panel`]:Object.assign({},Ns(zn))},ma(zn,Aa)),El(zn)),vl(zn)),Ko(zn,Na,{marginInlineStart:"auto",marginBottom:ul})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:kl,height:kl,borderRadius:Ka,border:`${ll}px solid ${Pu}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${_i}`,background:so,padding:Gl-ll,[`${ur}-trigger-text`]:{marginInlineStart:ul,marginInlineEnd:ul-(Gl-ll),fontSize:fu,color:hs},"&:hover":{borderColor:Bl},[`&${ur}-trigger-active`]:Object.assign({},ds(zn,Jr,lu)),"&-disabled":{color:Ui,background:ra,cursor:"not-allowed","&:hover":{borderColor:Xu},[`${ur}-trigger-text`]:{color:Ui}}},Ko(zn,Va)),ma(zn,Va)),As(zn)),ks(zn))},io(zn))}]};var zu=(0,Fi.Z)("ColorPicker",zn=>{const{colorTextQuaternary:ur,marginSM:Zr}=zn,Jr=8,_i=(0,No.TS)(zn,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${ur}`,colorPickerSliderHeight:Jr,colorPickerPreviewSize:Jr*2+Zr});return[Ga(_i)]}),Ac=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{const{value:ur,defaultValue:Zr,format:Jr,defaultFormat:_i,allowClear:so=!1,presets:Ui,children:hs,trigger:ra="click",open:Ka,disabled:ul,placement:hl="bottomLeft",arrow:kl=!0,panelRender:Va,showText:Xu,style:Na,className:Aa,size:ll,rootClassName:Pu,styles:Gl,disabledAlpha:fu=!1,onFormatChange:Bl,onChange:lu,onClear:Ln,onOpenChange:es,onChangeComplete:Is,getPopupContainer:Qs,autoAdjustOverflow:dl=!0,destroyTooltipOnHide:uu}=zn,Jl=Ac(zn,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:xu,direction:Tu,colorPicker:tc}=(0,v.useContext)(O.E_),zc=(0,v.useContext)(L.Z),Rc=ul!=null?ul:zc,[,Ah]=(0,k.Z)(),[Td,ld]=Hs(Ah.colorPrimary,{value:ur,defaultValue:Zr}),[ph,lc]=(0,b.Z)(!1,{value:Ka,postState:Su=>!Rc&&Su,onChange:es}),[xc,Hh]=(0,b.Z)(Jr,{value:Jr,defaultValue:_i,onChange:Bl}),[xh,Cd]=(0,v.useState)(!1),md=xu("color-picker",Vn),Bd=(0,v.useMemo)(()=>oi(Td)<100,[Td]),{status:zd}=v.useContext(g.aM),Dh=(0,S.Z)(ll),[gh,ap]=zu(md),pd={[`${md}-rtl`]:Tu},Nu=w()(Pu,pd),oh=w()((0,V.Z)(md,zd),{[`${md}-sm`]:Dh==="small",[`${md}-lg`]:Dh==="large"},tc==null?void 0:tc.className,Nu,Aa,ap),Ud=w()(md,pd),uf=(0,v.useRef)(!0),Of=(Su,Ih,gl)=>{let Lu=on(Su);(xh||(ur===null||!ur&&Zr===null))&&(Cd(!1),oi(Td)===0&&Ih!=="alpha"&&(Lu=Ii(Lu))),fu&&Bd&&(Lu=Ii(Lu)),gl?uf.current=!1:Is==null||Is(Lu),ld(Lu),lu==null||lu(Lu,Lu.toHexString())},Qf=()=>{Cd(!0),Ln==null||Ln()},ep=Su=>{uf.current=!0;let Ih=on(Su);fu&&Bd&&(Ih=Ii(Su)),Is==null||Is(Ih)},tp={open:ph,trigger:ra,placement:hl,arrow:kl,rootClassName:Pu,getPopupContainer:Qs,autoAdjustOverflow:dl,destroyTooltipOnHide:uu},Ad={prefixCls:md,color:Td,allowClear:so,colorCleared:xh,disabled:Rc,disabledAlpha:fu,presets:Ui,panelRender:Va,format:xc,onFormatChange:Hh,onChangeComplete:ep},jd=Object.assign(Object.assign({},tc==null?void 0:tc.style),Na);return gh(v.createElement(T.Z,Object.assign({style:Gl==null?void 0:Gl.popup,overlayInnerStyle:Gl==null?void 0:Gl.popupOverlayInner,onOpenChange:Su=>{uf.current&&!Rc&&lc(Su)},content:v.createElement(g.Ux,{override:!0,status:!0},v.createElement(Gi,Object.assign({},Ad,{onChange:Of,onChangeComplete:ep,onClear:Qf}))),overlayClassName:Ud},tp),hs||v.createElement(ms,Object.assign({open:ph,className:oh,style:jd,color:ur?on(ur):Td,prefixCls:md,disabled:Rc,colorCleared:xh,showText:Xu,format:xc},Jl))))},ec=(0,B.Z)(vc,"color-picker",zn=>zn,zn=>Object.assign(Object.assign({},zn),{placement:"bottom",autoAdjustOverflow:!1}));vc._InternalPanelDoNotUseOrYouWillBeFired=ec;var qu=vc,Uu=qu},98866:function(gt,Y,_){"use strict";_.d(Y,{n:function(){return w}});var v=_(67294);const R=v.createContext(!1),w=b=>{let{children:B,disabled:V}=b;const O=v.useContext(R);return v.createElement(R.Provider,{value:V!=null?V:O},B)};Y.Z=R},97647:function(gt,Y,_){"use strict";_.d(Y,{q:function(){return w}});var v=_(67294);const R=v.createContext(void 0),w=b=>{let{children:B,size:V}=b;const O=v.useContext(R);return v.createElement(R.Provider,{value:V||O},B)};Y.Z=R},53124:function(gt,Y,_){"use strict";_.d(Y,{E_:function(){return b},oR:function(){return R}});var v=_(67294);const R="anticon",w=(V,O)=>O||(V?`ant-${V}`:"ant"),b=v.createContext({getPrefixCls:w,iconPrefixCls:R}),{Consumer:B}=b},88258:function(gt,Y,_){"use strict";var v=_(67294),R=_(53124),w=_(32983);const b=B=>{const{componentName:V}=B,{getPrefixCls:O}=(0,v.useContext)(R.E_),L=O("empty");switch(V){case"Table":case"List":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE,className:`${L}-small`});default:return v.createElement(w.Z,null)}};Y.Z=b},98675:function(gt,Y,_){"use strict";var v=_(67294),R=_(97647);const w=b=>{const B=v.useContext(R.Z);return v.useMemo(()=>b?typeof b=="string"?b!=null?b:B:b instanceof Function?b(B):B:B,[b,B])};Y.Z=w},94740:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return Do},w6:function(){return Pe}});var v=_(67294),R=_(85731),w=_(54775),b=_(56982),B=_(8880),V=_(27288),O=_(37920),L=_(83008),S=_(76745);const g="internalMark";var k=ai=>{const{locale:$o={},children:Mn,_ANT_MARK__:nt}=ai;v.useEffect(()=>(0,L.f)($o&&$o.Modal),[$o]);const Dt=v.useMemo(()=>Object.assign(Object.assign({},$o),{exist:!0}),[$o]);return v.createElement(S.Z.Provider,{value:Dt},Mn)},K=_(88526),he=_(33083),ae=_(2790),fe=_(53124),_e=_(16397),be=_(10274),xe=_(98924),Xe=_(44958);const We=`-ant-${Date.now()}-${Math.random()}`;function dt(ai,$o){const Mn={},nt=(mn,kn)=>{let an=mn.clone();return an=(kn==null?void 0:kn(an))||an,an.toRgbString()},Dt=(mn,kn)=>{const an=new be.C(mn),tn=(0,_e.R_)(an.toRgbString());Mn[`${kn}-color`]=nt(an),Mn[`${kn}-color-disabled`]=tn[1],Mn[`${kn}-color-hover`]=tn[4],Mn[`${kn}-color-active`]=tn[6],Mn[`${kn}-color-outline`]=an.clone().setAlpha(.2).toRgbString(),Mn[`${kn}-color-deprecated-bg`]=tn[0],Mn[`${kn}-color-deprecated-border`]=tn[2]};if($o.primaryColor){Dt($o.primaryColor,"primary");const mn=new be.C($o.primaryColor),kn=(0,_e.R_)(mn.toRgbString());kn.forEach((tn,kt)=>{Mn[`primary-${kt+1}`]=tn}),Mn["primary-color-deprecated-l-35"]=nt(mn,tn=>tn.lighten(35)),Mn["primary-color-deprecated-l-20"]=nt(mn,tn=>tn.lighten(20)),Mn["primary-color-deprecated-t-20"]=nt(mn,tn=>tn.tint(20)),Mn["primary-color-deprecated-t-50"]=nt(mn,tn=>tn.tint(50)),Mn["primary-color-deprecated-f-12"]=nt(mn,tn=>tn.setAlpha(tn.getAlpha()*.12));const an=new be.C(kn[0]);Mn["primary-color-active-deprecated-f-30"]=nt(an,tn=>tn.setAlpha(tn.getAlpha()*.3)),Mn["primary-color-active-deprecated-d-02"]=nt(an,tn=>tn.darken(2))}return $o.successColor&&Dt($o.successColor,"success"),$o.warningColor&&Dt($o.warningColor,"warning"),$o.errorColor&&Dt($o.errorColor,"error"),$o.infoColor&&Dt($o.infoColor,"info"),` :root { - ${Object.keys(dn).map(Wt=>`--${ji}-${Wt}: ${dn[Wt]};`).join(` + ${Object.keys(Mn).map(mn=>`--${ai}-${mn}: ${Mn[mn]};`).join(` `)} } - `.trim()}function be(ji,No){const dn=Be(ji,No);(0,fe.Z)()&&(0,ke.hq)(dn,`${Ie}-dynamic-theme`)}var me=m(98866),ye=m(97647);function _e(){const ji=(0,y.useContext)(me.Z),No=(0,y.useContext)(ye.Z);return{componentDisabled:ji,componentSize:No}}var Ce=_e,De=m(91881);function ge(ji,No){const dn=ji||{},Ve=dn.inherit===!1||!No?te.u_:No;return(0,z.Z)(()=>{if(!ji)return No;const yt=Object.assign({},Ve.components);return Object.keys(ji.components||{}).forEach(Ct=>{yt[Ct]=Object.assign(Object.assign({},yt[Ct]),ji.components[Ct])}),Object.assign(Object.assign(Object.assign({},Ve),dn),{token:Object.assign(Object.assign({},Ve.token),dn.token),components:yt})},[dn,Ve],(yt,Ct)=>yt.some((Wt,sn)=>{const Mt=Ct[sn];return!(0,De.Z)(Wt,Mt,!0)}))}var je=m(82225),we=m(25976);function Pt(ji){const{children:No}=ji,[,dn]=(0,we.Z)(),{motion:Ve}=dn,yt=y.useRef(!1);return yt.current=yt.current||Ve===!1,yt.current?y.createElement(je.zt,{motion:Ve},No):No}const dt=null;var He=()=>null,bt=m(53269),ft=function(ji,No){var dn={};for(var Ve in ji)Object.prototype.hasOwnProperty.call(ji,Ve)&&No.indexOf(Ve)<0&&(dn[Ve]=ji[Ve]);if(ji!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Ve=Object.getOwnPropertySymbols(ji);ytNo.endsWith("Color"))}const hs=ji=>{let{prefixCls:No,iconPrefixCls:dn,theme:Ve}=ji;No!==void 0&&(ii=No),dn!==void 0&&(gi=dn),Ve&&(Bo(Ve)?be(To(),Ve):no=Ve)},ve=()=>({getPrefixCls:(ji,No)=>No||(ji?`${To()}-${ji}`:To()),getIconPrefixCls:_r,getRootPrefixCls:()=>ii||To(),getTheme:()=>no}),So=ji=>{const{children:No,csp:dn,autoInsertSpaceInButton:Ve,alert:yt,anchor:Ct,form:Wt,locale:sn,componentSize:Mt,direction:Tt,space:xt,virtual:Ht,dropdownMatchSelectWidth:Vn,popupMatchSelectWidth:en,popupOverflow:fr,legacyLocale:Kr,parentContext:ri,iconPrefixCls:si,theme:uo,componentDisabled:Qo,segmented:_n,statistic:Vr,spin:qr,calendar:Ui,carousel:xo,cascader:Us,collapse:zn,typography:Kn,checkbox:Or,descriptions:mi,divider:Er,drawer:ti,skeleton:di,steps:rn,image:Qn,layout:Xr,list:ao,mentions:as,modal:Bt,progress:pn,result:br,slider:Jr,breadcrumb:vi,menu:Di,pagination:co,input:Qr,empty:oi,badge:Zi,radio:Ar,rate:tn,switch:Gn,transfer:Ei,avatar:In,message:Li,tag:nr,table:wi,card:Mi,tabs:Fr,timeline:qn,timePicker:ms,upload:ya,notification:ha,tree:Ws,colorPicker:Ua,datePicker:Ao,flex:dl,wave:$r,warning:er}=ji,Tr=y.useCallback((En,tt)=>{const{prefixCls:at}=ji;if(tt)return tt;const gt=at||ri.getPrefixCls("");return En?`${gt}-${En}`:gt},[ri.getPrefixCls,ji.prefixCls]),pr=si||ri.iconPrefixCls||ie.oR,ci=dn||ri.csp;(0,bt.Z)(pr,ci);const Eo=ge(uo,ri.theme),mo={csp:ci,autoInsertSpaceInButton:Ve,alert:yt,anchor:Ct,locale:sn||Kr,direction:Tt,space:xt,virtual:Ht,popupMatchSelectWidth:en!=null?en:Vn,popupOverflow:fr,getPrefixCls:Tr,iconPrefixCls:pr,theme:Eo,segmented:_n,statistic:Vr,spin:qr,calendar:Ui,carousel:xo,cascader:Us,collapse:zn,typography:Kn,checkbox:Or,descriptions:mi,divider:Er,drawer:ti,skeleton:di,steps:rn,image:Qn,input:Qr,layout:Xr,list:ao,mentions:as,modal:Bt,progress:pn,result:br,slider:Jr,breadcrumb:vi,menu:Di,pagination:co,empty:oi,badge:Zi,radio:Ar,rate:tn,switch:Gn,transfer:Ei,avatar:In,message:Li,tag:nr,table:wi,card:Mi,tabs:Fr,timeline:qn,timePicker:ms,upload:ya,notification:ha,tree:Ws,colorPicker:Ua,datePicker:Ao,flex:dl,wave:$r,warning:er},Ts=Object.assign({},ri);Object.keys(mo).forEach(En=>{mo[En]!==void 0&&(Ts[En]=mo[En])}),Bn.forEach(En=>{const tt=ji[En];tt&&(Ts[En]=tt)});const xs=(0,z.Z)(()=>Ts,Ts,(En,tt)=>{const at=Object.keys(En),gt=Object.keys(tt);return at.length!==gt.length||at.some(Ne=>En[Ne]!==tt[Ne])}),Sr=y.useMemo(()=>({prefixCls:pr,csp:ci}),[pr,ci]);let ui=y.createElement(y.Fragment,null,y.createElement(He,{dropdownMatchSelectWidth:Vn}),No);const Xt=y.useMemo(()=>{var En,tt,at,gt;return(0,k.T)(((En=W.Z.Form)===null||En===void 0?void 0:En.defaultValidateMessages)||{},((at=(tt=xs.locale)===null||tt===void 0?void 0:tt.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((gt=xs.form)===null||gt===void 0?void 0:gt.validateMessages)||{},(Wt==null?void 0:Wt.validateMessages)||{})},[xs,Wt==null?void 0:Wt.validateMessages]);Object.keys(Xt).length>0&&(ui=y.createElement(w.Z.Provider,{value:Xt},ui)),sn&&(ui=y.createElement(P,{locale:sn,_ANT_MARK__:f},ui)),(pr||ci)&&(ui=y.createElement(b.Z.Provider,{value:Sr},ui)),Mt&&(ui=y.createElement(ye.q,{size:Mt},ui)),ui=y.createElement(Pt,null,ui);const gn=y.useMemo(()=>{const En=Eo||{},{algorithm:tt,token:at,components:gt}=En,Ne=ft(En,["algorithm","token","components"]),lt=tt&&(!Array.isArray(tt)||tt.length>0)?(0,A.jG)(tt):te.uH,St={};Object.entries(gt||{}).forEach(jn=>{let[Cr,ki]=jn;const Vi=Object.assign({},ki);"algorithm"in Vi&&(Vi.algorithm===!0?Vi.theme=lt:(Array.isArray(Vi.algorithm)||typeof Vi.algorithm=="function")&&(Vi.theme=(0,A.jG)(Vi.algorithm)),delete Vi.algorithm),St[Cr]=Vi});const ln=Object.assign(Object.assign({},q.Z),at);return Object.assign(Object.assign({},Ne),{theme:lt,token:ln,components:St,override:Object.assign({override:ln},St)})},[Eo]);return uo&&(ui=y.createElement(te.Mj.Provider,{value:gn},ui)),xs.warning&&(ui=y.createElement(N.G8.Provider,{value:xs.warning},ui)),Qo!==void 0&&(ui=y.createElement(me.n,{disabled:Qo},ui)),y.createElement(ie.E_.Provider,{value:xs},ui)},ho=ji=>{const No=y.useContext(ie.E_),dn=y.useContext(C.Z);return y.createElement(So,Object.assign({parentContext:No,legacyLocale:dn},ji))};ho.ConfigContext=ie.E_,ho.SizeContext=ye.Z,ho.config=hs,ho.useConfig=Ce,Object.defineProperty(ho,"SizeContext",{get:()=>ye.Z});var go=ho},26412:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ft}});var y=m(67294),A=m(94184),b=m.n(A),z=m(74443),k=m(53124),N=m(98675),w=m(25378),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},S=y.createContext({}),P=m(50344),W=function($t,vt){var yn={};for(var Bn in $t)Object.prototype.hasOwnProperty.call($t,Bn)&&vt.indexOf(Bn)<0&&(yn[Bn]=$t[Bn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,Bn=Object.getOwnPropertySymbols($t);Lr(0,P.Z)($t).map(vt=>Object.assign({},vt==null?void 0:vt.props));function q($t,vt,yn){const Bn=y.useMemo(()=>vt||te(yn),[vt,yn]);return y.useMemo(()=>Bn.map(ii=>{var{span:gi}=ii,no=W(ii,["span"]);return Object.assign(Object.assign({},no),{span:typeof gi=="number"?gi:(0,z.m9)($t,gi)})}),[Bn,$t])}function ie($t,vt,yn){let Bn=$t,Lr=!1;return(yn===void 0||yn>vt)&&(Bn=Object.assign(Object.assign({},$t),{span:vt}),Lr=yn!==void 0),[Bn,Lr]}function he($t,vt){const yn=[];let Bn=[],Lr=vt,ii=!1;return $t.filter(gi=>gi).forEach((gi,no)=>{const To=gi==null?void 0:gi.span,_r=To||1;if(no===$t.length-1){const[Bo,hs]=ie(gi,Lr,To);ii=ii||hs,Bn.push(Bo),yn.push(Bn);return}if(_r{const[yn,Bn]=(0,y.useMemo)(()=>he(vt,$t),[vt,$t]);return yn},Ie=$t=>{let{children:vt}=$t;return vt};function Be($t){return $t!=null}var me=$t=>{const{itemPrefixCls:vt,component:yn,span:Bn,className:Lr,style:ii,labelStyle:gi,contentStyle:no,bordered:To,label:_r,content:Bo,colon:hs}=$t,ve=yn;return To?y.createElement(ve,{className:b()({[`${vt}-item-label`]:Be(_r),[`${vt}-item-content`]:Be(Bo)},Lr),style:ii,colSpan:Bn},Be(_r)&&y.createElement("span",{style:gi},_r),Be(Bo)&&y.createElement("span",{style:no},Bo)):y.createElement(ve,{className:b()(`${vt}-item`,Lr),style:ii,colSpan:Bn},y.createElement("div",{className:`${vt}-item-container`},(_r||_r===0)&&y.createElement("span",{className:b()(`${vt}-item-label`,{[`${vt}-item-no-colon`]:!hs}),style:gi},_r),(Bo||Bo===0)&&y.createElement("span",{className:b()(`${vt}-item-content`),style:no},Bo)))};function ye($t,vt,yn){let{colon:Bn,prefixCls:Lr,bordered:ii}=vt,{component:gi,type:no,showLabel:To,showContent:_r,labelStyle:Bo,contentStyle:hs}=yn;return $t.map((ve,So)=>{let{label:ho,children:go,prefixCls:ji=Lr,className:No,style:dn,labelStyle:Ve,contentStyle:yt,span:Ct=1,key:Wt}=ve;return typeof gi=="string"?y.createElement(me,{key:`${no}-${Wt||So}`,className:No,style:dn,labelStyle:Object.assign(Object.assign({},Bo),Ve),contentStyle:Object.assign(Object.assign({},hs),yt),span:Ct,colon:Bn,component:gi,itemPrefixCls:ji,bordered:ii,label:To?ho:null,content:_r?go:null}):[y.createElement(me,{key:`label-${Wt||So}`,className:No,style:Object.assign(Object.assign(Object.assign({},Bo),dn),Ve),span:1,colon:Bn,component:gi[0],itemPrefixCls:ji,bordered:ii,label:ho}),y.createElement(me,{key:`content-${Wt||So}`,className:No,style:Object.assign(Object.assign(Object.assign({},hs),dn),yt),span:Ct*2-1,component:gi[1],itemPrefixCls:ji,bordered:ii,content:go})]})}var Ce=$t=>{const vt=y.useContext(S),{prefixCls:yn,vertical:Bn,row:Lr,index:ii,bordered:gi}=$t;return Bn?y.createElement(y.Fragment,null,y.createElement("tr",{key:`label-${ii}`,className:`${yn}-row`},ye(Lr,$t,Object.assign({component:"th",type:"label",showLabel:!0},vt))),y.createElement("tr",{key:`content-${ii}`,className:`${yn}-row`},ye(Lr,$t,Object.assign({component:"td",type:"content",showContent:!0},vt)))):y.createElement("tr",{key:ii,className:`${yn}-row`},ye(Lr,$t,Object.assign({component:gi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},vt)))},De=m(14747),ge=m(67968),je=m(45503);const we=$t=>{const{componentCls:vt,labelBg:yn}=$t;return{[`&${vt}-bordered`]:{[`> ${vt}-view`]:{border:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${vt}-row`]:{borderBottom:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${vt}-item-label, > ${vt}-item-content`]:{padding:`${$t.padding}px ${$t.paddingLG}px`,borderInlineEnd:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${vt}-item-label`]:{color:$t.colorTextSecondary,backgroundColor:yn,"&::after":{display:"none"}}}},[`&${vt}-middle`]:{[`${vt}-row`]:{[`> ${vt}-item-label, > ${vt}-item-content`]:{padding:`${$t.paddingSM}px ${$t.paddingLG}px`}}},[`&${vt}-small`]:{[`${vt}-row`]:{[`> ${vt}-item-label, > ${vt}-item-content`]:{padding:`${$t.paddingXS}px ${$t.padding}px`}}}}}},Pt=$t=>{const{componentCls:vt,extraColor:yn,itemPaddingBottom:Bn,colonMarginRight:Lr,colonMarginLeft:ii,titleMarginBottom:gi}=$t;return{[vt]:Object.assign(Object.assign(Object.assign({},(0,De.Wf)($t)),we($t)),{["&-rtl"]:{direction:"rtl"},[`${vt}-header`]:{display:"flex",alignItems:"center",marginBottom:gi},[`${vt}-title`]:Object.assign(Object.assign({},De.vS),{flex:"auto",color:$t.titleColor,fontWeight:$t.fontWeightStrong,fontSize:$t.fontSizeLG,lineHeight:$t.lineHeightLG}),[`${vt}-extra`]:{marginInlineStart:"auto",color:yn,fontSize:$t.fontSize},[`${vt}-view`]:{width:"100%",borderRadius:$t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${vt}-row`]:{"> th, > td":{paddingBottom:Bn},"&:last-child":{borderBottom:"none"}},[`${vt}-item-label`]:{color:$t.colorTextTertiary,fontWeight:"normal",fontSize:$t.fontSize,lineHeight:$t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ii}px ${Lr}px`},[`&${vt}-item-no-colon::after`]:{content:'""'}},[`${vt}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${vt}-item-content`]:{display:"table-cell",flex:1,color:$t.contentColor,fontSize:$t.fontSize,lineHeight:$t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${vt}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${vt}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${vt}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${vt}-row`]:{"> th, > td":{paddingBottom:$t.paddingSM}}},"&-small":{[`${vt}-row`]:{"> th, > td":{paddingBottom:$t.paddingXS}}}})}};var dt=(0,ge.Z)("Descriptions",$t=>{const vt=(0,je.TS)($t,{});return[Pt(vt)]},$t=>({labelBg:$t.colorFillAlter,titleColor:$t.colorText,titleMarginBottom:$t.fontSizeSM*$t.lineHeightSM,itemPaddingBottom:$t.padding,colonMarginRight:$t.marginXS,colonMarginLeft:$t.marginXXS/2,contentColor:$t.colorText,extraColor:$t.colorText})),He=function($t,vt){var yn={};for(var Bn in $t)Object.prototype.hasOwnProperty.call($t,Bn)&&vt.indexOf(Bn)<0&&(yn[Bn]=$t[Bn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,Bn=Object.getOwnPropertySymbols($t);Lr{const{prefixCls:vt,title:yn,extra:Bn,column:Lr,colon:ii=!0,bordered:gi,layout:no,children:To,className:_r,rootClassName:Bo,style:hs,size:ve,labelStyle:So,contentStyle:ho,items:go}=$t,ji=He($t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:No,direction:dn,descriptions:Ve}=y.useContext(k.E_),yt=No("descriptions",vt),Ct=(0,w.Z)(),Wt=y.useMemo(()=>{var en;return typeof Lr=="number"?Lr:(en=(0,z.m9)(Ct,Object.assign(Object.assign({},C),Lr)))!==null&&en!==void 0?en:3},[Ct,Lr]),sn=q(Ct,go,To),Mt=(0,N.Z)(ve),Tt=fe(Wt,sn),[xt,Ht]=dt(yt),Vn=y.useMemo(()=>({labelStyle:So,contentStyle:ho}),[So,ho]);return xt(y.createElement(S.Provider,{value:Vn},y.createElement("div",Object.assign({className:b()(yt,Ve==null?void 0:Ve.className,{[`${yt}-${Mt}`]:Mt&&Mt!=="default",[`${yt}-bordered`]:!!gi,[`${yt}-rtl`]:dn==="rtl"},_r,Bo,Ht),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),hs)},ji),(yn||Bn)&&y.createElement("div",{className:`${yt}-header`},yn&&y.createElement("div",{className:`${yt}-title`},yn),Bn&&y.createElement("div",{className:`${yt}-extra`},Bn)),y.createElement("div",{className:`${yt}-view`},y.createElement("table",null,y.createElement("tbody",null,Tt.map((en,fr)=>y.createElement(Ce,{key:fr,index:fr,colon:ii,prefixCls:yt,vertical:no==="vertical",bordered:gi,row:en}))))))))};bt.Item=Ie;var ft=bt},96074:function(nt,V,m){"use strict";m.d(V,{Z:function(){return P}});var y=m(67294),A=m(94184),b=m.n(A),z=m(53124),k=m(14747),N=m(67968),w=m(45503);const I=W=>{const{componentCls:te,sizePaddingEdgeHorizontal:q,colorSplit:ie,lineWidth:he,textPaddingInline:de,orientationMargin:fe,verticalMarginInline:ke}=W;return{[te]:Object.assign(Object.assign({},(0,k.Wf)(W)),{borderBlockStart:`${he}px solid ${ie}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${he}px solid ${ie}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${W.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${te}-with-text`]:{display:"flex",alignItems:"center",margin:`${W.dividerHorizontalWithTextGutterMargin}px 0`,color:W.colorTextHeading,fontWeight:500,fontSize:W.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ie}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${he}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${te}-with-text-left`]:{"&::before":{width:`${fe*100}%`},"&::after":{width:`${100-fe*100}%`}},[`&-horizontal${te}-with-text-right`]:{"&::before":{width:`${100-fe*100}%`},"&::after":{width:`${fe*100}%`}},[`${te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:de},"&-dashed":{background:"none",borderColor:ie,borderStyle:"dashed",borderWidth:`${he}px 0 0`},[`&-horizontal${te}-with-text${te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${te}-dashed`]:{borderInlineStartWidth:he,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${te}-with-text`]:{color:W.colorText,fontWeight:"normal",fontSize:W.fontSize},[`&-horizontal${te}-with-text-left${te}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${te}-inner-text`]:{paddingInlineStart:q}},[`&-horizontal${te}-with-text-right${te}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${te}-inner-text`]:{paddingInlineEnd:q}}})}};var C=(0,N.Z)("Divider",W=>{const te=(0,w.TS)(W,{dividerHorizontalWithTextGutterMargin:W.margin,dividerHorizontalGutterMargin:W.marginLG,sizePaddingEdgeHorizontal:0});return[I(te)]},W=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:W.marginXS})),f=function(W,te){var q={};for(var ie in W)Object.prototype.hasOwnProperty.call(W,ie)&&te.indexOf(ie)<0&&(q[ie]=W[ie]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ie=Object.getOwnPropertySymbols(W);he{const{getPrefixCls:te,direction:q,divider:ie}=y.useContext(z.E_),{prefixCls:he,type:de="horizontal",orientation:fe="center",orientationMargin:ke,className:Ie,rootClassName:Be,children:be,dashed:me,plain:ye,style:_e}=W,Ce=f(W,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),De=te("divider",he),[ge,je]=C(De),we=fe.length>0?`-${fe}`:fe,Pt=!!be,dt=fe==="left"&&ke!=null,He=fe==="right"&&ke!=null,bt=b()(De,ie==null?void 0:ie.className,je,`${De}-${de}`,{[`${De}-with-text`]:Pt,[`${De}-with-text${we}`]:Pt,[`${De}-dashed`]:!!me,[`${De}-plain`]:!!ye,[`${De}-rtl`]:q==="rtl",[`${De}-no-default-orientation-margin-left`]:dt,[`${De}-no-default-orientation-margin-right`]:He},Ie,Be),ft=y.useMemo(()=>typeof ke=="number"?ke:/^\d+$/.test(ke)?Number(ke):ke,[ke]),$t=Object.assign(Object.assign({},dt&&{marginLeft:ft}),He&&{marginRight:ft});return ge(y.createElement("div",Object.assign({className:bt,style:Object.assign(Object.assign({},ie==null?void 0:ie.style),_e)},Ce,{role:"separator"}),be&&de!=="vertical"&&y.createElement("span",{className:`${De}-inner-text`,style:$t},be)))}},83159:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ii}});var y=m(67294),A=m(68843),b=m(94184),z=m.n(b),k=m(29171),N=m(56790),w=m(21770),I=m(98423),C=m(80636),f=m(8745),S=m(96159),P=m(27288),W=m(53124),te=m(82610),q=m(76529),ie=m(25976),he=m(14747),de=m(67771),fe=m(33297),ke=m(50438),Ie=m(77786),Be=m(67968),be=m(45503),ye=gi=>{const{componentCls:no,menuCls:To,colorError:_r,colorTextLightSolid:Bo}=gi,hs=`${To}-item`;return{[`${no}, ${no}-menu-submenu`]:{[`${To} ${hs}`]:{[`&${hs}-danger:not(${hs}-disabled)`]:{color:_r,"&:hover":{color:Bo,backgroundColor:_r}}}}}};const _e=gi=>{const{componentCls:no,menuCls:To,zIndexPopup:_r,dropdownArrowDistance:Bo,sizePopupArrow:hs,antCls:ve,iconCls:So,motionDurationMid:ho,dropdownPaddingVertical:go,fontSize:ji,dropdownEdgeChildPadding:No,colorTextDisabled:dn,fontSizeIcon:Ve,controlPaddingHorizontal:yt,colorBgElevated:Ct}=gi;return[{[no]:Object.assign(Object.assign({},(0,he.Wf)(gi)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_r,display:"block","&::before":{position:"absolute",insetBlock:-Bo+hs/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ve}-btn`]:{[`& > ${So}-down, & > ${ve}-btn-icon > ${So}-down`]:{fontSize:Ve}},[`${no}-wrap`]:{position:"relative",[`${ve}-btn > ${So}-down`]:{fontSize:Ve},[`${So}-down::before`]:{transition:`transform ${ho}`}},[`${no}-wrap-open`]:{[`${So}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function Me(ai,$o){const Mn=dt(ai,$o);(0,xe.Z)()&&(0,Xe.hq)(Mn,`${We}-dynamic-theme`)}var Se=_(98866),ze=_(97647);function De(){const ai=(0,v.useContext)(Se.Z),$o=(0,v.useContext)(ze.Z);return{componentDisabled:ai,componentSize:$o}}var ke=De,$e=_(91881);function Te(ai,$o){const Mn=ai||{},nt=Mn.inherit===!1||!$o?he.u_:$o;return(0,b.Z)(()=>{if(!ai)return $o;const Dt=Object.assign({},nt.components);return Object.keys(ai.components||{}).forEach(Kt=>{Dt[Kt]=Object.assign(Object.assign({},Dt[Kt]),ai.components[Kt])}),Object.assign(Object.assign(Object.assign({},nt),Mn),{token:Object.assign(Object.assign({},nt.token),Mn.token),components:Dt})},[Mn,nt],(Dt,Kt)=>Dt.some((mn,kn)=>{const an=Kt[kn];return!(0,$e.Z)(mn,an,!0)}))}var tt=_(82225),Oe=_(25976);function Xt(ai){const{children:$o}=ai,[,Mn]=(0,Oe.Z)(),{motion:nt}=Mn,Dt=v.useRef(!1);return Dt.current=Dt.current||nt===!1,Dt.current?v.createElement(tt.zt,{motion:nt},$o):$o}const Ft=null;var ot=()=>null,xt=_(53269),ut=function(ai,$o){var Mn={};for(var nt in ai)Object.prototype.hasOwnProperty.call(ai,nt)&&$o.indexOf(nt)<0&&(Mn[nt]=ai[nt]);if(ai!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,nt=Object.getOwnPropertySymbols(ai);Dt$o.endsWith("Color"))}const Ss=ai=>{let{prefixCls:$o,iconPrefixCls:Mn,theme:nt}=ai;$o!==void 0&&(wi=$o),Mn!==void 0&&(oo=Mn),nt&&(Ho(nt)?Me(Ti(),nt):Mo=nt)},Pe=()=>({getPrefixCls:(ai,$o)=>$o||(ai?`${Ti()}-${ai}`:Ti()),getIconPrefixCls:Hr,getRootPrefixCls:()=>wi||Ti(),getTheme:()=>Mo}),qo=ai=>{const{children:$o,csp:Mn,autoInsertSpaceInButton:nt,alert:Dt,anchor:Kt,form:mn,locale:kn,componentSize:an,direction:tn,space:kt,virtual:en,dropdownMatchSelectWidth:Vn,popupMatchSelectWidth:on,popupOverflow:Dr,legacyLocale:oi,parentContext:Ii,iconPrefixCls:jr,theme:eo,componentDisabled:Uo,segmented:Fn,statistic:Qr,spin:ci,calendar:ji,carousel:cr,cascader:Qn,collapse:Vt,typography:Yt,checkbox:En,descriptions:er,divider:Tr,drawer:Nr,skeleton:Zn,steps:Ut,image:$n,layout:xr,list:Br,mentions:_o,modal:Qt,progress:xn,result:Sr,slider:qr,breadcrumb:Mi,menu:zi,pagination:Yi,input:Si,empty:ni,badge:qi,radio:Vr,rate:ii,switch:nr,transfer:Mr,avatar:rr,message:to,tag:ts,table:Wr,card:no,tabs:Vi,timeline:Pn,timePicker:mi,upload:ya,notification:Zs,tree:qs,colorPicker:al,datePicker:co,rangePicker:tl,flex:fl,wave:Ai,dropdown:Xi,warning:Fi}=ai,No=v.useCallback((wt,At)=>{const{prefixCls:Ye}=ai;if(At)return At;const Et=Ye||Ii.getPrefixCls("");return wt?`${Et}-${wt}`:Et},[Ii.getPrefixCls,ai.prefixCls]),yr=jr||Ii.iconPrefixCls||fe.oR,ui=Mn||Ii.csp;(0,xt.Z)(yr,ui);const Zo=Te(eo,Ii.theme),ns={csp:ui,autoInsertSpaceInButton:nt,alert:Dt,anchor:Kt,locale:kn||oi,direction:tn,space:kt,virtual:en,popupMatchSelectWidth:on!=null?on:Vn,popupOverflow:Dr,getPrefixCls:No,iconPrefixCls:yr,theme:Zo,segmented:Fn,statistic:Qr,spin:ci,calendar:ji,carousel:cr,cascader:Qn,collapse:Vt,typography:Yt,checkbox:En,descriptions:er,divider:Tr,drawer:Nr,skeleton:Zn,steps:Ut,image:$n,input:Si,layout:xr,list:Br,mentions:_o,modal:Qt,progress:xn,result:Sr,slider:qr,breadcrumb:Mi,menu:zi,pagination:Yi,empty:ni,badge:qi,radio:Vr,rate:ii,switch:nr,transfer:Mr,avatar:rr,message:to,tag:ts,table:Wr,card:no,tabs:Vi,timeline:Pn,timePicker:mi,upload:ya,notification:Zs,tree:qs,colorPicker:al,datePicker:co,rangePicker:tl,flex:fl,wave:Ai,dropdown:Xi,warning:Fi},Lr=Object.assign({},Ii);Object.keys(ns).forEach(wt=>{ns[wt]!==void 0&&(Lr[wt]=ns[wt])}),Wn.forEach(wt=>{const At=ai[wt];At&&(Lr[wt]=At)});const Ei=(0,b.Z)(()=>Lr,Lr,(wt,At)=>{const Ye=Object.keys(wt),Et=Object.keys(At);return Ye.length!==Et.length||Ye.some(Wt=>wt[Wt]!==At[Wt])}),hn=v.useMemo(()=>({prefixCls:yr,csp:ui}),[yr,ui]);let Tn=v.createElement(v.Fragment,null,v.createElement(ot,{dropdownMatchSelectWidth:Vn}),$o);const ar=v.useMemo(()=>{var wt,At,Ye,Et;return(0,B.T)(((wt=K.Z.Form)===null||wt===void 0?void 0:wt.defaultValidateMessages)||{},((Ye=(At=Ei.locale)===null||At===void 0?void 0:At.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((Et=Ei.form)===null||Et===void 0?void 0:Et.validateMessages)||{},(mn==null?void 0:mn.validateMessages)||{})},[Ei,mn==null?void 0:mn.validateMessages]);Object.keys(ar).length>0&&(Tn=v.createElement(O.Z.Provider,{value:ar},Tn)),kn&&(Tn=v.createElement(k,{locale:kn,_ANT_MARK__:g},Tn)),(yr||ui)&&(Tn=v.createElement(w.Z.Provider,{value:hn},Tn)),an&&(Tn=v.createElement(ze.q,{size:an},Tn)),Tn=v.createElement(Xt,null,Tn);const ft=v.useMemo(()=>{const wt=Zo||{},{algorithm:At,token:Ye,components:Et}=wt,Wt=ut(wt,["algorithm","token","components"]),vn=At&&(!Array.isArray(At)||At.length>0)?(0,R.jG)(At):he.uH,Er={};Object.entries(Et||{}).forEach(Gi=>{let[ko,Bi]=Gi;const ms=Object.assign({},Bi);"algorithm"in ms&&(ms.algorithm===!0?ms.theme=vn:(Array.isArray(ms.algorithm)||typeof ms.algorithm=="function")&&(ms.theme=(0,R.jG)(ms.algorithm)),delete ms.algorithm),Er[ko]=ms});const Gr=Object.assign(Object.assign({},ae.Z),Ye);return Object.assign(Object.assign({},Wt),{theme:vn,token:Gr,components:Er,override:Object.assign({override:Gr},Er)})},[Zo]);return eo&&(Tn=v.createElement(he.Mj.Provider,{value:ft},Tn)),Ei.warning&&(Tn=v.createElement(V.G8.Provider,{value:Ei.warning},Tn)),Uo!==void 0&&(Tn=v.createElement(Se.n,{disabled:Uo},Tn)),v.createElement(fe.E_.Provider,{value:Ei},Tn)},Ki=ai=>{const $o=v.useContext(fe.E_),Mn=v.useContext(S.Z);return v.createElement(qo,Object.assign({parentContext:$o,legacyLocale:Mn},ai))};Ki.ConfigContext=fe.E_,Ki.SizeContext=ze.Z,Ki.config=Ss,Ki.useConfig=ke,Object.defineProperty(Ki,"SizeContext",{get:()=>ze.Z});var Do=Ki},26412:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ut}});var v=_(67294),R=_(94184),w=_.n(R),b=_(74443),B=_(53124),V=_(98675),O=_(25378),S={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},T=v.createContext({}),k=_(50344),K=function($t,_t){var bn={};for(var Wn in $t)Object.prototype.hasOwnProperty.call($t,Wn)&&_t.indexOf(Wn)<0&&(bn[Wn]=$t[Wn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $r=0,Wn=Object.getOwnPropertySymbols($t);$r(0,k.Z)($t).map(_t=>Object.assign(Object.assign({},_t==null?void 0:_t.props),{key:_t.key}));function ae($t,_t,bn){const Wn=v.useMemo(()=>_t||he(bn),[_t,bn]);return v.useMemo(()=>Wn.map(wi=>{var{span:oo}=wi,Mo=K(wi,["span"]);return Object.assign(Object.assign({},Mo),{span:typeof oo=="number"?oo:(0,b.m9)($t,oo)})}),[Wn,$t])}function fe($t,_t,bn){let Wn=$t,$r=!1;return(bn===void 0||bn>_t)&&(Wn=Object.assign(Object.assign({},$t),{span:_t}),$r=bn!==void 0),[Wn,$r]}function _e($t,_t){const bn=[];let Wn=[],$r=_t,wi=!1;return $t.filter(oo=>oo).forEach((oo,Mo)=>{const Ti=oo==null?void 0:oo.span,Hr=Ti||1;if(Mo===$t.length-1){const[Ho,Ss]=fe(oo,$r,Ti);wi=wi||Ss,Wn.push(Ho),bn.push(Wn);return}if(Hr<$r)$r-=Hr,Wn.push(oo);else{const[Ho,Ss]=fe(oo,$r,Hr);wi=wi||Ss,Wn.push(Ho),bn.push(Wn),$r=_t,Wn=[]}}),[bn,wi]}var xe=($t,_t)=>{const[bn,Wn]=(0,v.useMemo)(()=>_e(_t,$t),[_t,$t]);return bn},We=$t=>{let{children:_t}=$t;return _t};function dt($t){return $t!=null}var Se=$t=>{const{itemPrefixCls:_t,component:bn,span:Wn,className:$r,style:wi,labelStyle:oo,contentStyle:Mo,bordered:Ti,label:Hr,content:Ho,colon:Ss}=$t,Pe=bn;return Ti?v.createElement(Pe,{className:w()({[`${_t}-item-label`]:dt(Hr),[`${_t}-item-content`]:dt(Ho)},$r),style:wi,colSpan:Wn},dt(Hr)&&v.createElement("span",{style:oo},Hr),dt(Ho)&&v.createElement("span",{style:Mo},Ho)):v.createElement(Pe,{className:w()(`${_t}-item`,$r),style:wi,colSpan:Wn},v.createElement("div",{className:`${_t}-item-container`},(Hr||Hr===0)&&v.createElement("span",{className:w()(`${_t}-item-label`,{[`${_t}-item-no-colon`]:!Ss}),style:oo},Hr),(Ho||Ho===0)&&v.createElement("span",{className:w()(`${_t}-item-content`),style:Mo},Ho)))};function ze($t,_t,bn){let{colon:Wn,prefixCls:$r,bordered:wi}=_t,{component:oo,type:Mo,showLabel:Ti,showContent:Hr,labelStyle:Ho,contentStyle:Ss}=bn;return $t.map((Pe,qo)=>{let{label:Ki,children:Do,prefixCls:ai=$r,className:$o,style:Mn,labelStyle:nt,contentStyle:Dt,span:Kt=1,key:mn}=Pe;return typeof oo=="string"?v.createElement(Se,{key:`${Mo}-${mn||qo}`,className:$o,style:Mn,labelStyle:Object.assign(Object.assign({},Ho),nt),contentStyle:Object.assign(Object.assign({},Ss),Dt),span:Kt,colon:Wn,component:oo,itemPrefixCls:ai,bordered:wi,label:Ti?Ki:null,content:Hr?Do:null}):[v.createElement(Se,{key:`label-${mn||qo}`,className:$o,style:Object.assign(Object.assign(Object.assign({},Ho),Mn),nt),span:1,colon:Wn,component:oo[0],itemPrefixCls:ai,bordered:wi,label:Ki}),v.createElement(Se,{key:`content-${mn||qo}`,className:$o,style:Object.assign(Object.assign(Object.assign({},Ss),Mn),Dt),span:Kt*2-1,component:oo[1],itemPrefixCls:ai,bordered:wi,content:Do})]})}var ke=$t=>{const _t=v.useContext(T),{prefixCls:bn,vertical:Wn,row:$r,index:wi,bordered:oo}=$t;return Wn?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${wi}`,className:`${bn}-row`},ze($r,$t,Object.assign({component:"th",type:"label",showLabel:!0},_t))),v.createElement("tr",{key:`content-${wi}`,className:`${bn}-row`},ze($r,$t,Object.assign({component:"td",type:"content",showContent:!0},_t)))):v.createElement("tr",{key:wi,className:`${bn}-row`},ze($r,$t,Object.assign({component:oo?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},_t)))},$e=_(14747),Te=_(67968),tt=_(45503);const Oe=$t=>{const{componentCls:_t,labelBg:bn}=$t;return{[`&${_t}-bordered`]:{[`> ${_t}-view`]:{border:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${_t}-row`]:{borderBottom:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${_t}-item-label, > ${_t}-item-content`]:{padding:`${$t.padding}px ${$t.paddingLG}px`,borderInlineEnd:`${$t.lineWidth}px ${$t.lineType} ${$t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${_t}-item-label`]:{color:$t.colorTextSecondary,backgroundColor:bn,"&::after":{display:"none"}}}},[`&${_t}-middle`]:{[`${_t}-row`]:{[`> ${_t}-item-label, > ${_t}-item-content`]:{padding:`${$t.paddingSM}px ${$t.paddingLG}px`}}},[`&${_t}-small`]:{[`${_t}-row`]:{[`> ${_t}-item-label, > ${_t}-item-content`]:{padding:`${$t.paddingXS}px ${$t.padding}px`}}}}}},Xt=$t=>{const{componentCls:_t,extraColor:bn,itemPaddingBottom:Wn,colonMarginRight:$r,colonMarginLeft:wi,titleMarginBottom:oo}=$t;return{[_t]:Object.assign(Object.assign(Object.assign({},(0,$e.Wf)($t)),Oe($t)),{["&-rtl"]:{direction:"rtl"},[`${_t}-header`]:{display:"flex",alignItems:"center",marginBottom:oo},[`${_t}-title`]:Object.assign(Object.assign({},$e.vS),{flex:"auto",color:$t.titleColor,fontWeight:$t.fontWeightStrong,fontSize:$t.fontSizeLG,lineHeight:$t.lineHeightLG}),[`${_t}-extra`]:{marginInlineStart:"auto",color:bn,fontSize:$t.fontSize},[`${_t}-view`]:{width:"100%",borderRadius:$t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${_t}-row`]:{"> th, > td":{paddingBottom:Wn},"&:last-child":{borderBottom:"none"}},[`${_t}-item-label`]:{color:$t.colorTextTertiary,fontWeight:"normal",fontSize:$t.fontSize,lineHeight:$t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${wi}px ${$r}px`},[`&${_t}-item-no-colon::after`]:{content:'""'}},[`${_t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${_t}-item-content`]:{display:"table-cell",flex:1,color:$t.contentColor,fontSize:$t.fontSize,lineHeight:$t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${_t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${_t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${_t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${_t}-row`]:{"> th, > td":{paddingBottom:$t.paddingSM}}},"&-small":{[`${_t}-row`]:{"> th, > td":{paddingBottom:$t.paddingXS}}}})}};var Ft=(0,Te.Z)("Descriptions",$t=>{const _t=(0,tt.TS)($t,{});return[Xt(_t)]},$t=>({labelBg:$t.colorFillAlter,titleColor:$t.colorText,titleMarginBottom:$t.fontSizeSM*$t.lineHeightSM,itemPaddingBottom:$t.padding,colonMarginRight:$t.marginXS,colonMarginLeft:$t.marginXXS/2,contentColor:$t.colorText,extraColor:$t.colorText})),ot=function($t,_t){var bn={};for(var Wn in $t)Object.prototype.hasOwnProperty.call($t,Wn)&&_t.indexOf(Wn)<0&&(bn[Wn]=$t[Wn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $r=0,Wn=Object.getOwnPropertySymbols($t);$r{const{prefixCls:_t,title:bn,extra:Wn,column:$r,colon:wi=!0,bordered:oo,layout:Mo,children:Ti,className:Hr,rootClassName:Ho,style:Ss,size:Pe,labelStyle:qo,contentStyle:Ki,items:Do}=$t,ai=ot($t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:$o,direction:Mn,descriptions:nt}=v.useContext(B.E_),Dt=$o("descriptions",_t),Kt=(0,O.Z)(),mn=v.useMemo(()=>{var on;return typeof $r=="number"?$r:(on=(0,b.m9)(Kt,Object.assign(Object.assign({},S),$r)))!==null&&on!==void 0?on:3},[Kt,$r]),kn=ae(Kt,Do,Ti),an=(0,V.Z)(Pe),tn=xe(mn,kn),[kt,en]=Ft(Dt),Vn=v.useMemo(()=>({labelStyle:qo,contentStyle:Ki}),[qo,Ki]);return kt(v.createElement(T.Provider,{value:Vn},v.createElement("div",Object.assign({className:w()(Dt,nt==null?void 0:nt.className,{[`${Dt}-${an}`]:an&&an!=="default",[`${Dt}-bordered`]:!!oo,[`${Dt}-rtl`]:Mn==="rtl"},Hr,Ho,en),style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Ss)},ai),(bn||Wn)&&v.createElement("div",{className:`${Dt}-header`},bn&&v.createElement("div",{className:`${Dt}-title`},bn),Wn&&v.createElement("div",{className:`${Dt}-extra`},Wn)),v.createElement("div",{className:`${Dt}-view`},v.createElement("table",null,v.createElement("tbody",null,tn.map((on,Dr)=>v.createElement(ke,{key:Dr,index:Dr,colon:wi,prefixCls:Dt,vertical:Mo==="vertical",bordered:oo,row:on}))))))))};xt.Item=We;var ut=xt},96074:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return k}});var v=_(67294),R=_(94184),w=_.n(R),b=_(53124),B=_(14747),V=_(67968),O=_(45503);const L=K=>{const{componentCls:he,sizePaddingEdgeHorizontal:ae,colorSplit:fe,lineWidth:_e,textPaddingInline:be,orientationMargin:xe,verticalMarginInline:Xe}=K;return{[he]:Object.assign(Object.assign({},(0,B.Wf)(K)),{borderBlockStart:`${_e}px solid ${fe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Xe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${_e}px solid ${fe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${K.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${he}-with-text`]:{display:"flex",alignItems:"center",margin:`${K.dividerHorizontalWithTextGutterMargin}px 0`,color:K.colorTextHeading,fontWeight:500,fontSize:K.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${fe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${_e}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${he}-with-text-left`]:{"&::before":{width:`${xe*100}%`},"&::after":{width:`${100-xe*100}%`}},[`&-horizontal${he}-with-text-right`]:{"&::before":{width:`${100-xe*100}%`},"&::after":{width:`${xe*100}%`}},[`${he}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:be},"&-dashed":{background:"none",borderColor:fe,borderStyle:"dashed",borderWidth:`${_e}px 0 0`},[`&-horizontal${he}-with-text${he}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${he}-dashed`]:{borderInlineStartWidth:_e,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${he}-with-text`]:{color:K.colorText,fontWeight:"normal",fontSize:K.fontSize},[`&-horizontal${he}-with-text-left${he}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${he}-inner-text`]:{paddingInlineStart:ae}},[`&-horizontal${he}-with-text-right${he}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${he}-inner-text`]:{paddingInlineEnd:ae}}})}};var S=(0,V.Z)("Divider",K=>{const he=(0,O.TS)(K,{dividerHorizontalWithTextGutterMargin:K.margin,dividerHorizontalGutterMargin:K.marginLG,sizePaddingEdgeHorizontal:0});return[L(he)]},K=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:K.marginXS})),g=function(K,he){var ae={};for(var fe in K)Object.prototype.hasOwnProperty.call(K,fe)&&he.indexOf(fe)<0&&(ae[fe]=K[fe]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,fe=Object.getOwnPropertySymbols(K);_e{const{getPrefixCls:he,direction:ae,divider:fe}=v.useContext(b.E_),{prefixCls:_e,type:be="horizontal",orientation:xe="center",orientationMargin:Xe,className:We,rootClassName:dt,children:Me,dashed:Se,plain:ze,style:De}=K,ke=g(K,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$e=he("divider",_e),[Te,tt]=S($e),Oe=xe.length>0?`-${xe}`:xe,Xt=!!Me,Ft=xe==="left"&&Xe!=null,ot=xe==="right"&&Xe!=null,xt=w()($e,fe==null?void 0:fe.className,tt,`${$e}-${be}`,{[`${$e}-with-text`]:Xt,[`${$e}-with-text${Oe}`]:Xt,[`${$e}-dashed`]:!!Se,[`${$e}-plain`]:!!ze,[`${$e}-rtl`]:ae==="rtl",[`${$e}-no-default-orientation-margin-left`]:Ft,[`${$e}-no-default-orientation-margin-right`]:ot},We,dt),ut=v.useMemo(()=>typeof Xe=="number"?Xe:/^\d+$/.test(Xe)?Number(Xe):Xe,[Xe]),$t=Object.assign(Object.assign({},Ft&&{marginLeft:ut}),ot&&{marginRight:ut});return Te(v.createElement("div",Object.assign({className:xt,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),De)},ke,{role:"separator"}),Me&&be!=="vertical"&&v.createElement("span",{className:`${$e}-inner-text`,style:$t},Me)))}},83159:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Mo}});var v=_(67294),R=_(68843),w=_(94184),b=_.n(w),B=_(29171),V=_(56790),O=_(21770),L=_(98423),S=_(87263),g=_(80636),T=_(8745),k=_(96159),K=_(27288),he=_(43945),ae=_(53124),fe=_(82610),_e=_(76529),be=_(25976),xe=_(14747),Xe=_(48611),We=_(33297),dt=_(50438),Me=_(77786),Se=_(67968),ze=_(45503),ke=Ti=>{const{componentCls:Hr,menuCls:Ho,colorError:Ss,colorTextLightSolid:Pe}=Ti,qo=`${Ho}-item`;return{[`${Hr}, ${Hr}-menu-submenu`]:{[`${Ho} ${qo}`]:{[`&${qo}-danger:not(${qo}-disabled)`]:{color:Ss,"&:hover":{color:Pe,backgroundColor:Ss}}}}}};const $e=Ti=>{const{componentCls:Hr,menuCls:Ho,zIndexPopup:Ss,dropdownArrowDistance:Pe,sizePopupArrow:qo,antCls:Ki,iconCls:Do,motionDurationMid:ai,dropdownPaddingVertical:$o,fontSize:Mn,dropdownEdgeChildPadding:nt,colorTextDisabled:Dt,fontSizeIcon:Kt,controlPaddingHorizontal:mn,colorBgElevated:kn}=Ti;return[{[Hr]:Object.assign(Object.assign({},(0,xe.Wf)(Ti)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ss,display:"block","&::before":{position:"absolute",insetBlock:-Pe+qo/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Ki}-btn`]:{[`& > ${Do}-down, & > ${Ki}-btn-icon > ${Do}-down`]:{fontSize:Kt}},[`${Hr}-wrap`]:{position:"relative",[`${Ki}-btn > ${Do}-down`]:{fontSize:Kt},[`${Do}-down::before`]:{transition:`transform ${ai}`}},[`${Hr}-wrap-open`]:{[`${Do}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden - `]:{display:"none"},[`&${ve}-slide-down-enter${ve}-slide-down-enter-active${no}-placement-bottomLeft, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${no}-placement-bottomLeft, - &${ve}-slide-down-enter${ve}-slide-down-enter-active${no}-placement-bottom, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${no}-placement-bottom, - &${ve}-slide-down-enter${ve}-slide-down-enter-active${no}-placement-bottomRight, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${no}-placement-bottomRight`]:{animationName:de.fJ},[`&${ve}-slide-up-enter${ve}-slide-up-enter-active${no}-placement-topLeft, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${no}-placement-topLeft, - &${ve}-slide-up-enter${ve}-slide-up-enter-active${no}-placement-top, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${no}-placement-top, - &${ve}-slide-up-enter${ve}-slide-up-enter-active${no}-placement-topRight, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${no}-placement-topRight`]:{animationName:de.Qt},[`&${ve}-slide-down-leave${ve}-slide-down-leave-active${no}-placement-bottomLeft, - &${ve}-slide-down-leave${ve}-slide-down-leave-active${no}-placement-bottom, - &${ve}-slide-down-leave${ve}-slide-down-leave-active${no}-placement-bottomRight`]:{animationName:de.Uw},[`&${ve}-slide-up-leave${ve}-slide-up-leave-active${no}-placement-topLeft, - &${ve}-slide-up-leave${ve}-slide-up-leave-active${no}-placement-top, - &${ve}-slide-up-leave${ve}-slide-up-leave-active${no}-placement-topRight`]:{animationName:de.ly}})},(0,Ie.ZP)(gi,{colorBg:Ct,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${no} ${To}`]:{position:"relative",margin:0},[`${To}-submenu-popup`]:{position:"absolute",zIndex:_r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${no}, ${no}-menu-submenu`]:{[To]:Object.assign(Object.assign({padding:No,listStyleType:"none",backgroundColor:Ct,backgroundClip:"padding-box",borderRadius:gi.borderRadiusLG,outline:"none",boxShadow:gi.boxShadowSecondary},(0,he.Qy)(gi)),{[`${To}-item-group-title`]:{padding:`${go}px ${yt}px`,color:gi.colorTextDescription,transition:`all ${ho}`},[`${To}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${To}-item-icon`]:{minWidth:ji,marginInlineEnd:gi.marginXS,fontSize:gi.fontSizeSM},[`${To}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ho}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${To}-item, ${To}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${go}px ${yt}px`,color:gi.colorText,fontWeight:"normal",fontSize:ji,lineHeight:gi.lineHeight,cursor:"pointer",transition:`all ${ho}`,borderRadius:gi.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:gi.controlItemBgHover}},(0,he.Qy)(gi)),{"&-selected":{color:gi.colorPrimary,backgroundColor:gi.controlItemBgActive,"&:hover, &-active":{backgroundColor:gi.controlItemBgActiveHover}},"&-disabled":{color:dn,cursor:"not-allowed","&:hover":{color:dn,backgroundColor:Ct,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${gi.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:gi.colorSplit},[`${no}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:gi.paddingXS,[`${no}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:gi.colorTextDescription,fontSize:Ve,fontStyle:"normal"}}}),[`${To}-item-group-list`]:{margin:`0 ${gi.marginXS}px`,padding:0,listStyle:"none"},[`${To}-submenu-title`]:{paddingInlineEnd:yt+gi.fontSizeSM},[`${To}-submenu-vertical`]:{position:"relative"},[`${To}-submenu${To}-submenu-disabled ${no}-menu-submenu-title`]:{[`&, ${no}-menu-submenu-arrow-icon`]:{color:dn,backgroundColor:Ct,cursor:"not-allowed"}},[`${To}-submenu-selected ${no}-menu-submenu-title`]:{color:gi.colorPrimary}})}},[(0,de.oN)(gi,"slide-up"),(0,de.oN)(gi,"slide-down"),(0,fe.Fm)(gi,"move-up"),(0,fe.Fm)(gi,"move-down"),(0,ke._y)(gi,"zoom-big")]]};var Ce=(0,Be.Z)("Dropdown",(gi,no)=>{let{rootPrefixCls:To}=no;const{marginXXS:_r,sizePopupArrow:Bo,controlHeight:hs,fontSize:ve,lineHeight:So,paddingXXS:ho,componentCls:go,borderRadiusLG:ji}=gi,No=(hs-ve*So)/2,{dropdownArrowOffset:dn}=(0,Ie.fS)({contentRadius:ji}),Ve=(0,be.TS)(gi,{menuCls:`${go}-menu`,rootPrefixCls:To,dropdownArrowDistance:Bo/2+_r,dropdownArrowOffset:dn,dropdownPaddingVertical:No,dropdownEdgeChildPadding:ho});return[_e(Ve),ye(Ve)]},gi=>({zIndexPopup:gi.zIndexPopupBase+50}));const De=null,ge=gi=>{const{menu:no,arrow:To,prefixCls:_r,children:Bo,trigger:hs,disabled:ve,dropdownRender:So,getPopupContainer:ho,overlayClassName:go,rootClassName:ji,open:No,onOpenChange:dn,visible:Ve,onVisibleChange:yt,mouseEnterDelay:Ct=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:sn=!0,placement:Mt="",overlay:Tt,transitionName:xt}=gi,{getPopupContainer:Ht,getPrefixCls:Vn,direction:en}=y.useContext(W.E_),fr=(0,P.ln)("Dropdown"),Kr=y.useMemo(()=>{const di=Vn();return xt!==void 0?xt:Mt.includes("top")?`${di}-slide-down`:`${di}-slide-up`},[Vn,Mt,xt]),ri=y.useMemo(()=>Mt?Mt.includes("Center")?Mt.slice(0,Mt.indexOf("Center")):Mt:en==="rtl"?"bottomRight":"bottomLeft",[Mt,en]),si=Vn("dropdown",_r),[uo,Qo]=Ce(si),[,_n]=(0,ie.Z)(),Vr=y.Children.only(Bo),qr=(0,S.Tm)(Vr,{className:z()(`${si}-trigger`,{[`${si}-rtl`]:en==="rtl"},Vr.props.className),disabled:ve}),Ui=ve?[]:hs;let xo;Ui&&Ui.includes("contextMenu")&&(xo=!0);const[Us,zn]=(0,w.Z)(!1,{value:No!=null?No:Ve}),Kn=(0,N.zX)(di=>{dn==null||dn(di),yt==null||yt(di),zn(di)}),Or=z()(go,ji,Qo,{[`${si}-rtl`]:en==="rtl"}),mi=(0,C.Z)({arrowPointAtCenter:typeof To=="object"&&To.pointAtCenter,autoAdjustOverflow:sn,offset:_n.marginXXS,arrowWidth:To?_n.sizePopupArrow:0,borderRadius:_n.borderRadius}),Er=y.useCallback(()=>{zn(!1)},[]),ti=()=>{let di;return no!=null&&no.items?di=y.createElement(te.Z,Object.assign({},no)):typeof Tt=="function"?di=Tt():di=Tt,So&&(di=So(di)),di=y.Children.only(typeof di=="string"?y.createElement("span",null,di):di),y.createElement(q.J,{prefixCls:`${si}-menu`,expandIcon:y.createElement("span",{className:`${si}-menu-submenu-arrow`},y.createElement(A.Z,{className:`${si}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Er,validator:rn=>{let{mode:Qn}=rn}},di)};return uo(y.createElement(k.Z,Object.assign({alignPoint:xo},(0,I.Z)(gi,["rootClassName"]),{mouseEnterDelay:Ct,mouseLeaveDelay:Wt,visible:Us,builtinPlacements:mi,arrow:!!To,overlayClassName:Or,prefixCls:si,getPopupContainer:ho||Ht,transitionName:Kr,trigger:Ui,overlay:ti,placement:ri,onVisibleChange:Kn}),qr))};function je(gi){return Object.assign(Object.assign({},gi),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const we=(0,f.Z)(ge,"dropdown",gi=>gi,je),Pt=gi=>y.createElement(we,Object.assign({},gi),y.createElement("span",null));ge._InternalPanelDoNotUseOrYouWillBeFired=Pt;var dt=ge,He=m(35872),bt=m(15867),ft=m(78957),$t=m(4173),vt=function(gi,no){var To={};for(var _r in gi)Object.prototype.hasOwnProperty.call(gi,_r)&&no.indexOf(_r)<0&&(To[_r]=gi[_r]);if(gi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bo=0,_r=Object.getOwnPropertySymbols(gi);Bo<_r.length;Bo++)no.indexOf(_r[Bo])<0&&Object.prototype.propertyIsEnumerable.call(gi,_r[Bo])&&(To[_r[Bo]]=gi[_r[Bo]]);return To};const yn=gi=>{const{getPopupContainer:no,getPrefixCls:To,direction:_r}=y.useContext(W.E_),{prefixCls:Bo,type:hs="default",danger:ve,disabled:So,loading:ho,onClick:go,htmlType:ji,children:No,className:dn,menu:Ve,arrow:yt,autoFocus:Ct,overlay:Wt,trigger:sn,align:Mt,open:Tt,onOpenChange:xt,placement:Ht,getPopupContainer:Vn,href:en,icon:fr=y.createElement(He.Z,null),title:Kr,buttonsRender:ri=ao=>ao,mouseEnterDelay:si,mouseLeaveDelay:uo,overlayClassName:Qo,overlayStyle:_n,destroyPopupOnHide:Vr,dropdownRender:qr}=gi,Ui=vt(gi,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),xo=To("dropdown",Bo),Us=`${xo}-button`,[zn,Kn]=Ce(xo),Or={menu:Ve,arrow:yt,autoFocus:Ct,align:Mt,disabled:So,trigger:So?[]:sn,onOpenChange:xt,getPopupContainer:Vn||no,mouseEnterDelay:si,mouseLeaveDelay:uo,overlayClassName:Qo,overlayStyle:_n,destroyPopupOnHide:Vr,dropdownRender:qr},{compactSize:mi,compactItemClassnames:Er}=(0,$t.ri)(xo,_r),ti=z()(Us,Er,dn,Kn);"overlay"in gi&&(Or.overlay=Wt),"open"in gi&&(Or.open=Tt),"placement"in gi?Or.placement=Ht:Or.placement=_r==="rtl"?"bottomLeft":"bottomRight";const di=y.createElement(bt.ZP,{type:hs,danger:ve,disabled:So,loading:ho,onClick:go,htmlType:ji,href:en,title:Kr},No),rn=y.createElement(bt.ZP,{type:hs,danger:ve,icon:fr}),[Qn,Xr]=ri([di,rn]);return zn(y.createElement(ft.Z.Compact,Object.assign({className:ti,size:mi,block:!0},Ui),Qn,y.createElement(dt,Object.assign({},Or),Xr)))};yn.__ANT_BUTTON=!0;var Bn=yn;const Lr=dt;Lr.Button=Bn;var ii=Lr},32983:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ke}});var y=m(94184),A=m.n(y),b=m(67294),z=m(53124),k=m(10110),N=m(10274),w=m(25976),C=()=>{const[,Ie]=(0,w.Z)(),be=new N.C(Ie.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{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",fill:"#AEB8C2"}),b.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{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",fill:"#F5F5F7"}),b.createElement("path",{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",fill:"#DCE0E6"})),b.createElement("path",{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",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},S=()=>{const[,Ie]=(0,w.Z)(),{colorFill:Be,colorFillTertiary:be,colorFillQuaternary:me,colorBgContainer:ye}=Ie,{borderColor:_e,shadowColor:Ce,contentColor:De}=(0,b.useMemo)(()=>({borderColor:new N.C(Be).onBackground(ye).toHexShortString(),shadowColor:new N.C(be).onBackground(ye).toHexShortString(),contentColor:new N.C(me).onBackground(ye).toHexShortString()}),[Be,be,me,ye]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:_e},b.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"}),b.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",fill:De}))))},P=m(67968),W=m(45503);const te=Ie=>{const{componentCls:Be,margin:be,marginXS:me,marginXL:ye,fontSize:_e,lineHeight:Ce}=Ie;return{[Be]:{marginInline:me,fontSize:_e,lineHeight:Ce,textAlign:"center",[`${Be}-image`]:{height:Ie.emptyImgHeight,marginBottom:me,opacity:Ie.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Be}-description`]:{color:Ie.colorText},[`${Be}-footer`]:{marginTop:be},"&-normal":{marginBlock:ye,color:Ie.colorTextDisabled,[`${Be}-description`]:{color:Ie.colorTextDisabled},[`${Be}-image`]:{height:Ie.emptyImgHeightMD}},"&-small":{marginBlock:me,color:Ie.colorTextDisabled,[`${Be}-image`]:{height:Ie.emptyImgHeightSM}}}}};var q=(0,P.Z)("Empty",Ie=>{const{componentCls:Be,controlHeightLG:be}=Ie,me=(0,W.TS)(Ie,{emptyImgCls:`${Be}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[te(me)]}),ie=function(Ie,Be){var be={};for(var me in Ie)Object.prototype.hasOwnProperty.call(Ie,me)&&Be.indexOf(me)<0&&(be[me]=Ie[me]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,me=Object.getOwnPropertySymbols(Ie);ye{var{className:Be,rootClassName:be,prefixCls:me,image:ye=he,description:_e,children:Ce,imageStyle:De,style:ge}=Ie,je=ie(Ie,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:we,direction:Pt,empty:dt}=b.useContext(z.E_),He=we("empty",me),[bt,ft]=q(He),[$t]=(0,k.Z)("Empty"),vt=typeof _e!="undefined"?_e:$t==null?void 0:$t.description,yn=typeof vt=="string"?vt:"empty";let Bn=null;return typeof ye=="string"?Bn=b.createElement("img",{alt:yn,src:ye}):Bn=ye,bt(b.createElement("div",Object.assign({className:A()(ft,He,dt==null?void 0:dt.className,{[`${He}-normal`]:ye===de,[`${He}-rtl`]:Pt==="rtl"},Be,be),style:Object.assign(Object.assign({},dt==null?void 0:dt.style),ge)},je),b.createElement("div",{className:`${He}-image`,style:De},Bn),vt&&b.createElement("div",{className:`${He}-description`},vt),Ce&&b.createElement("div",{className:`${He}-footer`},Ce)))};fe.PRESENTED_IMAGE_DEFAULT=he,fe.PRESENTED_IMAGE_SIMPLE=de;var ke=fe},65223:function(nt,V,m){"use strict";m.d(V,{RV:function(){return N},Rk:function(){return w},Ux:function(){return C},aM:function(){return I},q3:function(){return z},qI:function(){return k}});var y=m(67294),A=m(43589),b=m(98423);const z=y.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),k=y.createContext(null),N=f=>{const S=(0,b.Z)(f,["prefixCls"]);return y.createElement(A.RV,Object.assign({},S))},w=y.createContext({prefixCls:""}),I=y.createContext({}),C=f=>{let{children:S,status:P,override:W}=f;const te=(0,y.useContext)(I),q=(0,y.useMemo)(()=>{const ie=Object.assign({},te);return W&&delete ie.isFormItemInput,P&&(delete ie.status,delete ie.hasFeedback,delete ie.feedbackIcon),ie},[P,W,te]);return y.createElement(I.Provider,{value:q},S)}},31147:function(nt,V,m){"use strict";m.d(V,{Z:function(){return xs}});var y=m(74902),A=m(94184),b=m.n(A),z=m(82225),k=m(67294),N=m(33603),w=m(65223);function I(Sr){const[ui,Xt]=k.useState(Sr);return k.useEffect(()=>{const gn=setTimeout(()=>{Xt(Sr)},Sr.length?0:10);return()=>{clearTimeout(gn)}},[Sr]),ui}var C=m(14747),f=m(50438),S=m(33507),P=m(45503),W=m(67968),q=Sr=>{const{componentCls:ui}=Sr,Xt=`${ui}-show-help`,gn=`${ui}-show-help-item`;return{[Xt]:{transition:`opacity ${Sr.motionDurationSlow} ${Sr.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gn]:{overflow:"hidden",transition:`height ${Sr.motionDurationSlow} ${Sr.motionEaseInOut}, - opacity ${Sr.motionDurationSlow} ${Sr.motionEaseInOut}, - transform ${Sr.motionDurationSlow} ${Sr.motionEaseInOut} !important`,[`&${gn}-appear, &${gn}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${gn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ie=Sr=>({legend:{display:"block",width:"100%",marginBottom:Sr.marginLG,padding:0,color:Sr.colorTextDescription,fontSize:Sr.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Sr.lineWidth}px ${Sr.lineType} ${Sr.colorBorder}`},label:{fontSize:Sr.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + `]:{display:"none"},[`&${Ki}-slide-down-enter${Ki}-slide-down-enter-active${Hr}-placement-bottomLeft, + &${Ki}-slide-down-appear${Ki}-slide-down-appear-active${Hr}-placement-bottomLeft, + &${Ki}-slide-down-enter${Ki}-slide-down-enter-active${Hr}-placement-bottom, + &${Ki}-slide-down-appear${Ki}-slide-down-appear-active${Hr}-placement-bottom, + &${Ki}-slide-down-enter${Ki}-slide-down-enter-active${Hr}-placement-bottomRight, + &${Ki}-slide-down-appear${Ki}-slide-down-appear-active${Hr}-placement-bottomRight`]:{animationName:Xe.fJ},[`&${Ki}-slide-up-enter${Ki}-slide-up-enter-active${Hr}-placement-topLeft, + &${Ki}-slide-up-appear${Ki}-slide-up-appear-active${Hr}-placement-topLeft, + &${Ki}-slide-up-enter${Ki}-slide-up-enter-active${Hr}-placement-top, + &${Ki}-slide-up-appear${Ki}-slide-up-appear-active${Hr}-placement-top, + &${Ki}-slide-up-enter${Ki}-slide-up-enter-active${Hr}-placement-topRight, + &${Ki}-slide-up-appear${Ki}-slide-up-appear-active${Hr}-placement-topRight`]:{animationName:Xe.Qt},[`&${Ki}-slide-down-leave${Ki}-slide-down-leave-active${Hr}-placement-bottomLeft, + &${Ki}-slide-down-leave${Ki}-slide-down-leave-active${Hr}-placement-bottom, + &${Ki}-slide-down-leave${Ki}-slide-down-leave-active${Hr}-placement-bottomRight`]:{animationName:Xe.Uw},[`&${Ki}-slide-up-leave${Ki}-slide-up-leave-active${Hr}-placement-topLeft, + &${Ki}-slide-up-leave${Ki}-slide-up-leave-active${Hr}-placement-top, + &${Ki}-slide-up-leave${Ki}-slide-up-leave-active${Hr}-placement-topRight`]:{animationName:Xe.ly}})},(0,Me.ZP)(Ti,{colorBg:kn,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Hr} ${Ho}`]:{position:"relative",margin:0},[`${Ho}-submenu-popup`]:{position:"absolute",zIndex:Ss,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Hr}, ${Hr}-menu-submenu`]:{[Ho]:Object.assign(Object.assign({padding:nt,listStyleType:"none",backgroundColor:kn,backgroundClip:"padding-box",borderRadius:Ti.borderRadiusLG,outline:"none",boxShadow:Ti.boxShadowSecondary},(0,xe.Qy)(Ti)),{[`${Ho}-item-group-title`]:{padding:`${$o}px ${mn}px`,color:Ti.colorTextDescription,transition:`all ${ai}`},[`${Ho}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ho}-item-icon`]:{minWidth:Mn,marginInlineEnd:Ti.marginXS,fontSize:Ti.fontSizeSM},[`${Ho}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ai}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ho}-item, ${Ho}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${$o}px ${mn}px`,color:Ti.colorText,fontWeight:"normal",fontSize:Mn,lineHeight:Ti.lineHeight,cursor:"pointer",transition:`all ${ai}`,borderRadius:Ti.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:Ti.controlItemBgHover}},(0,xe.Qy)(Ti)),{"&-selected":{color:Ti.colorPrimary,backgroundColor:Ti.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ti.controlItemBgActiveHover}},"&-disabled":{color:Dt,cursor:"not-allowed","&:hover":{color:Dt,backgroundColor:kn,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ti.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ti.colorSplit},[`${Hr}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ti.paddingXS,[`${Hr}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ti.colorTextDescription,fontSize:Kt,fontStyle:"normal"}}}),[`${Ho}-item-group-list`]:{margin:`0 ${Ti.marginXS}px`,padding:0,listStyle:"none"},[`${Ho}-submenu-title`]:{paddingInlineEnd:mn+Ti.fontSizeSM},[`${Ho}-submenu-vertical`]:{position:"relative"},[`${Ho}-submenu${Ho}-submenu-disabled ${Hr}-menu-submenu-title`]:{[`&, ${Hr}-menu-submenu-arrow-icon`]:{color:Dt,backgroundColor:kn,cursor:"not-allowed"}},[`${Ho}-submenu-selected ${Hr}-menu-submenu-title`]:{color:Ti.colorPrimary}})}},[(0,Xe.oN)(Ti,"slide-up"),(0,Xe.oN)(Ti,"slide-down"),(0,We.Fm)(Ti,"move-up"),(0,We.Fm)(Ti,"move-down"),(0,dt._y)(Ti,"zoom-big")]]};var Te=(0,Se.Z)("Dropdown",(Ti,Hr)=>{let{rootPrefixCls:Ho}=Hr;const{marginXXS:Ss,sizePopupArrow:Pe,controlHeight:qo,fontSize:Ki,lineHeight:Do,paddingXXS:ai,componentCls:$o,borderRadiusLG:Mn}=Ti,nt=(qo-Ki*Do)/2,{dropdownArrowOffset:Dt}=(0,Me.fS)({contentRadius:Mn}),Kt=(0,ze.TS)(Ti,{menuCls:`${$o}-menu`,rootPrefixCls:Ho,dropdownArrowDistance:Pe/2+Ss,dropdownArrowOffset:Dt,dropdownPaddingVertical:nt,dropdownEdgeChildPadding:ai});return[$e(Kt),ke(Kt)]},Ti=>({zIndexPopup:Ti.zIndexPopupBase+50}));const tt=null,Oe=Ti=>{const{menu:Hr,arrow:Ho,prefixCls:Ss,children:Pe,trigger:qo,disabled:Ki,dropdownRender:Do,getPopupContainer:ai,overlayClassName:$o,rootClassName:Mn,overlayStyle:nt,open:Dt,onOpenChange:Kt,visible:mn,onVisibleChange:kn,mouseEnterDelay:an=.15,mouseLeaveDelay:tn=.1,autoAdjustOverflow:kt=!0,placement:en="",overlay:Vn,transitionName:on}=Ti,{getPopupContainer:Dr,getPrefixCls:oi,direction:Ii,dropdown:jr}=v.useContext(ae.E_),eo=(0,K.ln)("Dropdown"),Uo=v.useMemo(()=>{const xn=oi();return on!==void 0?on:en.includes("top")?`${xn}-slide-down`:`${xn}-slide-up`},[oi,en,on]),Fn=v.useMemo(()=>en?en.includes("Center")?en.slice(0,en.indexOf("Center")):en:Ii==="rtl"?"bottomRight":"bottomLeft",[en,Ii]),Qr=oi("dropdown",Ss),[ci,ji]=Te(Qr),[,cr]=(0,be.Z)(),Qn=v.Children.only(Pe),Vt=(0,k.Tm)(Qn,{className:b()(`${Qr}-trigger`,{[`${Qr}-rtl`]:Ii==="rtl"},Qn.props.className),disabled:Ki}),Yt=Ki?[]:qo;let En;Yt&&Yt.includes("contextMenu")&&(En=!0);const[er,Tr]=(0,O.Z)(!1,{value:Dt!=null?Dt:mn}),Nr=(0,V.zX)(xn=>{Kt==null||Kt(xn,{source:"trigger"}),kn==null||kn(xn),Tr(xn)}),Zn=b()($o,Mn,ji,jr==null?void 0:jr.className,{[`${Qr}-rtl`]:Ii==="rtl"}),Ut=(0,g.Z)({arrowPointAtCenter:typeof Ho=="object"&&Ho.pointAtCenter,autoAdjustOverflow:kt,offset:cr.marginXXS,arrowWidth:Ho?cr.sizePopupArrow:0,borderRadius:cr.borderRadius}),$n=v.useCallback(()=>{Hr!=null&&Hr.selectable&&(Hr!=null&&Hr.multiple)||(Kt==null||Kt(!1,{source:"menu"}),Tr(!1))},[Hr==null?void 0:Hr.selectable,Hr==null?void 0:Hr.multiple]),xr=()=>{let xn;return Hr!=null&&Hr.items?xn=v.createElement(fe.Z,Object.assign({},Hr)):typeof Vn=="function"?xn=Vn():xn=Vn,Do&&(xn=Do(xn)),xn=v.Children.only(typeof xn=="string"?v.createElement("span",null,xn):xn),v.createElement(_e.J,{prefixCls:`${Qr}-menu`,expandIcon:v.createElement("span",{className:`${Qr}-menu-submenu-arrow`},v.createElement(R.Z,{className:`${Qr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$n,validator:Sr=>{let{mode:qr}=Sr}},xn)},[Br,_o]=(0,S.Cn)("Dropdown",nt==null?void 0:nt.zIndex);let Qt=v.createElement(B.Z,Object.assign({alignPoint:En},(0,L.Z)(Ti,["rootClassName"]),{mouseEnterDelay:an,mouseLeaveDelay:tn,visible:er,builtinPlacements:Ut,arrow:!!Ho,overlayClassName:Zn,prefixCls:Qr,getPopupContainer:ai||Dr,transitionName:Uo,trigger:Yt,overlay:xr,placement:Fn,onVisibleChange:Nr,overlayStyle:Object.assign(Object.assign(Object.assign({},jr==null?void 0:jr.style),nt),{zIndex:Br})}),Vt);return Br&&(Qt=v.createElement(he.Z.Provider,{value:_o},Qt)),ci(Qt)};function Xt(Ti){return Object.assign(Object.assign({},Ti),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ft=(0,T.Z)(Oe,"dropdown",Ti=>Ti,Xt),ot=Ti=>v.createElement(Ft,Object.assign({},Ti),v.createElement("span",null));Oe._InternalPanelDoNotUseOrYouWillBeFired=ot;var xt=Oe,ut=_(35872),$t=_(15867),_t=_(78957),bn=_(4173),Wn=function(Ti,Hr){var Ho={};for(var Ss in Ti)Object.prototype.hasOwnProperty.call(Ti,Ss)&&Hr.indexOf(Ss)<0&&(Ho[Ss]=Ti[Ss]);if(Ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ss=Object.getOwnPropertySymbols(Ti);Pe{const{getPopupContainer:Hr,getPrefixCls:Ho,direction:Ss}=v.useContext(ae.E_),{prefixCls:Pe,type:qo="default",danger:Ki,disabled:Do,loading:ai,onClick:$o,htmlType:Mn,children:nt,className:Dt,menu:Kt,arrow:mn,autoFocus:kn,overlay:an,trigger:tn,align:kt,open:en,onOpenChange:Vn,placement:on,getPopupContainer:Dr,href:oi,icon:Ii=v.createElement(ut.Z,null),title:jr,buttonsRender:eo=Qt=>Qt,mouseEnterDelay:Uo,mouseLeaveDelay:Fn,overlayClassName:Qr,overlayStyle:ci,destroyPopupOnHide:ji,dropdownRender:cr}=Ti,Qn=Wn(Ti,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Vt=Ho("dropdown",Pe),Yt=`${Vt}-button`,[En,er]=Te(Vt),Tr={menu:Kt,arrow:mn,autoFocus:kn,align:kt,disabled:Do,trigger:Do?[]:tn,onOpenChange:Vn,getPopupContainer:Dr||Hr,mouseEnterDelay:Uo,mouseLeaveDelay:Fn,overlayClassName:Qr,overlayStyle:ci,destroyPopupOnHide:ji,dropdownRender:cr},{compactSize:Nr,compactItemClassnames:Zn}=(0,bn.ri)(Vt,Ss),Ut=b()(Yt,Zn,Dt,er);"overlay"in Ti&&(Tr.overlay=an),"open"in Ti&&(Tr.open=en),"placement"in Ti?Tr.placement=on:Tr.placement=Ss==="rtl"?"bottomLeft":"bottomRight";const $n=v.createElement($t.ZP,{type:qo,danger:Ki,disabled:Do,loading:ai,onClick:$o,htmlType:Mn,href:oi,title:jr},nt),xr=v.createElement($t.ZP,{type:qo,danger:Ki,icon:Ii}),[Br,_o]=eo([$n,xr]);return En(v.createElement(_t.Z.Compact,Object.assign({className:Ut,size:Nr,block:!0},Qn),Br,v.createElement(xt,Object.assign({},Tr),_o)))};$r.__ANT_BUTTON=!0;var wi=$r;const oo=xt;oo.Button=wi;var Mo=oo},32983:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Xe}});var v=_(94184),R=_.n(v),w=_(67294),b=_(53124),B=_(10110),V=_(10274),O=_(25976),S=()=>{const[,We]=(0,O.Z)(),Me=new V.C(We.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return w.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(24 31.67)"},w.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),w.createElement("path",{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",fill:"#AEB8C2"}),w.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),w.createElement("path",{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",fill:"#F5F5F7"}),w.createElement("path",{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",fill:"#DCE0E6"})),w.createElement("path",{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",fill:"#DCE0E6"}),w.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},w.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),w.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},T=()=>{const[,We]=(0,O.Z)(),{colorFill:dt,colorFillTertiary:Me,colorFillQuaternary:Se,colorBgContainer:ze}=We,{borderColor:De,shadowColor:ke,contentColor:$e}=(0,w.useMemo)(()=>({borderColor:new V.C(dt).onBackground(ze).toHexShortString(),shadowColor:new V.C(Me).onBackground(ze).toHexShortString(),contentColor:new V.C(Se).onBackground(ze).toHexShortString()}),[dt,Me,Se,ze]);return w.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},w.createElement("ellipse",{fill:ke,cx:"32",cy:"33",rx:"32",ry:"7"}),w.createElement("g",{fillRule:"nonzero",stroke:De},w.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"}),w.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",fill:$e}))))},k=_(67968),K=_(45503);const he=We=>{const{componentCls:dt,margin:Me,marginXS:Se,marginXL:ze,fontSize:De,lineHeight:ke}=We;return{[dt]:{marginInline:Se,fontSize:De,lineHeight:ke,textAlign:"center",[`${dt}-image`]:{height:We.emptyImgHeight,marginBottom:Se,opacity:We.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${dt}-description`]:{color:We.colorText},[`${dt}-footer`]:{marginTop:Me},"&-normal":{marginBlock:ze,color:We.colorTextDisabled,[`${dt}-description`]:{color:We.colorTextDisabled},[`${dt}-image`]:{height:We.emptyImgHeightMD}},"&-small":{marginBlock:Se,color:We.colorTextDisabled,[`${dt}-image`]:{height:We.emptyImgHeightSM}}}}};var ae=(0,k.Z)("Empty",We=>{const{componentCls:dt,controlHeightLG:Me}=We,Se=(0,K.TS)(We,{emptyImgCls:`${dt}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[he(Se)]}),fe=function(We,dt){var Me={};for(var Se in We)Object.prototype.hasOwnProperty.call(We,Se)&&dt.indexOf(Se)<0&&(Me[Se]=We[Se]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Se=Object.getOwnPropertySymbols(We);ze{var{className:dt,rootClassName:Me,prefixCls:Se,image:ze=_e,description:De,children:ke,imageStyle:$e,style:Te}=We,tt=fe(We,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Oe,direction:Xt,empty:Ft}=w.useContext(b.E_),ot=Oe("empty",Se),[xt,ut]=ae(ot),[$t]=(0,B.Z)("Empty"),_t=typeof De!="undefined"?De:$t==null?void 0:$t.description,bn=typeof _t=="string"?_t:"empty";let Wn=null;return typeof ze=="string"?Wn=w.createElement("img",{alt:bn,src:ze}):Wn=ze,xt(w.createElement("div",Object.assign({className:R()(ut,ot,Ft==null?void 0:Ft.className,{[`${ot}-normal`]:ze===be,[`${ot}-rtl`]:Xt==="rtl"},dt,Me),style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Te)},tt),w.createElement("div",{className:`${ot}-image`,style:$e},Wn),_t&&w.createElement("div",{className:`${ot}-description`},_t),ke&&w.createElement("div",{className:`${ot}-footer`},ke)))};xe.PRESENTED_IMAGE_DEFAULT=_e,xe.PRESENTED_IMAGE_SIMPLE=be;var Xe=xe},65223:function(gt,Y,_){"use strict";_.d(Y,{RV:function(){return V},Rk:function(){return O},Ux:function(){return S},aM:function(){return L},q3:function(){return b},qI:function(){return B}});var v=_(67294),R=_(43589),w=_(98423);const b=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),B=v.createContext(null),V=g=>{const T=(0,w.Z)(g,["prefixCls"]);return v.createElement(R.RV,Object.assign({},T))},O=v.createContext({prefixCls:""}),L=v.createContext({}),S=g=>{let{children:T,status:k,override:K}=g;const he=(0,v.useContext)(L),ae=(0,v.useMemo)(()=>{const fe=Object.assign({},he);return K&&delete fe.isFormItemInput,k&&(delete fe.status,delete fe.hasFeedback,delete fe.feedbackIcon),fe},[k,K,he]);return v.createElement(L.Provider,{value:ae},T)}},31147:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ns}});var v=_(74902),R=_(94184),w=_.n(R),b=_(82225),B=_(67294),V=_(33603),O=_(65223);function L(Lr){const[Ei,hn]=B.useState(Lr);return B.useEffect(()=>{const Tn=setTimeout(()=>{hn(Lr)},Lr.length?0:10);return()=>{clearTimeout(Tn)}},[Lr]),Ei}var S=_(14747),g=_(50438),T=_(33507),k=_(45503),K=_(67968),ae=Lr=>{const{componentCls:Ei}=Lr,hn=`${Ei}-show-help`,Tn=`${Ei}-show-help-item`;return{[hn]:{transition:`opacity ${Lr.motionDurationSlow} ${Lr.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Tn]:{overflow:"hidden",transition:`height ${Lr.motionDurationSlow} ${Lr.motionEaseInOut}, + opacity ${Lr.motionDurationSlow} ${Lr.motionEaseInOut}, + transform ${Lr.motionDurationSlow} ${Lr.motionEaseInOut} !important`,[`&${Tn}-appear, &${Tn}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Tn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const fe=Lr=>({legend:{display:"block",width:"100%",marginBottom:Lr.marginLG,padding:0,color:Lr.colorTextDescription,fontSize:Lr.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Lr.lineWidth}px ${Lr.lineType} ${Lr.colorBorder}`},label:{fontSize:Lr.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${Sr.controlOutlineWidth}px ${Sr.controlOutline}`},output:{display:"block",paddingTop:15,color:Sr.colorText,fontSize:Sr.fontSize,lineHeight:Sr.lineHeight}}),he=(Sr,ui)=>{const{formItemCls:Xt}=Sr;return{[Xt]:{[`${Xt}-label > label`]:{height:ui},[`${Xt}-control-input`]:{minHeight:ui}}}},de=Sr=>{const{componentCls:ui}=Sr;return{[Sr.componentCls]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Sr)),ie(Sr)),{[`${ui}-text`]:{display:"inline-block",paddingInlineEnd:Sr.paddingSM},"&-small":Object.assign({},he(Sr,Sr.controlHeightSM)),"&-large":Object.assign({},he(Sr,Sr.controlHeightLG))})}},fe=Sr=>{const{formItemCls:ui,iconCls:Xt,componentCls:gn,rootPrefixCls:En,labelRequiredMarkColor:tt,labelColor:at,labelFontSize:gt,labelHeight:Ne,labelColonMarginInlineStart:lt,labelColonMarginInlineEnd:St,itemMarginBottom:ln}=Sr;return{[ui]:Object.assign(Object.assign({},(0,C.Wf)(Sr)),{marginBottom:ln,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${En}-row`]:{display:"none"},"&-has-warning":{[`${ui}-split`]:{color:Sr.colorError}},"&-has-error":{[`${ui}-split`]:{color:Sr.colorWarning}},[`${ui}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Sr.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ne,color:at,fontSize:gt,[`> ${Xt}`]:{fontSize:Sr.fontSize,verticalAlign:"top"},[`&${ui}-required:not(${ui}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Sr.marginXXS,color:tt,fontSize:Sr.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${gn}-hide-required-mark &`]:{display:"none"}},[`${ui}-optional`]:{display:"inline-block",marginInlineStart:Sr.marginXXS,color:Sr.colorTextDescription,[`${gn}-hide-required-mark &`]:{display:"none"}},[`${ui}-tooltip`]:{color:Sr.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Sr.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:lt,marginInlineEnd:St},[`&${ui}-no-colon::after`]:{content:'"\\a0"'}}},[`${ui}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${En}-col-'"]):not([class*="' ${En}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Sr.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ui]:{"&-explain, &-extra":{clear:"both",color:Sr.colorTextDescription,fontSize:Sr.fontSize,lineHeight:Sr.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Sr.controlHeightSM,transition:`color ${Sr.motionDurationMid} ${Sr.motionEaseOut}`},"&-explain":{"&-error":{color:Sr.colorError},"&-warning":{color:Sr.colorWarning}}},[`&-with-help ${ui}-explain`]:{height:"auto",opacity:1},[`${ui}-feedback-icon`]:{fontSize:Sr.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:Sr.motionDurationMid,animationTimingFunction:Sr.motionEaseOutBack,pointerEvents:"none","&-success":{color:Sr.colorSuccess},"&-error":{color:Sr.colorError},"&-warning":{color:Sr.colorWarning},"&-validating":{color:Sr.colorPrimary}}})}},ke=Sr=>{const{componentCls:ui,formItemCls:Xt}=Sr;return{[`${ui}-horizontal`]:{[`${Xt}-label`]:{flexGrow:0},[`${Xt}-control`]:{flex:"1 1 0",minWidth:0},[`${Xt}-label[class$='-24'], ${Xt}-label[class*='-24 ']`]:{[`& + ${Xt}-control`]:{minWidth:"unset"}}}}},Ie=Sr=>{const{componentCls:ui,formItemCls:Xt}=Sr;return{[`${ui}-inline`]:{display:"flex",flexWrap:"wrap",[Xt]:{flex:"none",marginInlineEnd:Sr.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Xt}-label, - > ${Xt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Xt}-label`]:{flex:"none"},[`${ui}-text`]:{display:"inline-block"},[`${Xt}-has-feedback`]:{display:"inline-block"}}}}},Be=Sr=>({padding:Sr.verticalLabelPadding,margin:Sr.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=Sr=>{const{componentCls:ui,formItemCls:Xt,rootPrefixCls:gn}=Sr;return{[`${Xt} ${Xt}-label`]:Be(Sr),[ui]:{[Xt]:{flexWrap:"wrap",[`${Xt}-label, ${Xt}-control`]:{[`&:not([class*=" ${gn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},me=Sr=>{const{componentCls:ui,formItemCls:Xt,rootPrefixCls:gn}=Sr;return{[`${ui}-vertical`]:{[Xt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ui}-item-control`]:{width:"100%"}}},[`${ui}-vertical ${Xt}-label, - .${gn}-col-24${Xt}-label, - .${gn}-col-xl-24${Xt}-label`]:Be(Sr),[`@media (max-width: ${Sr.screenXSMax}px)`]:[be(Sr),{[ui]:{[`.${gn}-col-xs-24${Xt}-label`]:Be(Sr)}}],[`@media (max-width: ${Sr.screenSMMax}px)`]:{[ui]:{[`.${gn}-col-sm-24${Xt}-label`]:Be(Sr)}},[`@media (max-width: ${Sr.screenMDMax}px)`]:{[ui]:{[`.${gn}-col-md-24${Xt}-label`]:Be(Sr)}},[`@media (max-width: ${Sr.screenLGMax}px)`]:{[ui]:{[`.${gn}-col-lg-24${Xt}-label`]:Be(Sr)}}}},ye=(Sr,ui)=>(0,P.TS)(Sr,{formItemCls:`${Sr.componentCls}-item`,rootPrefixCls:ui});var _e=(0,W.Z)("Form",(Sr,ui)=>{let{rootPrefixCls:Xt}=ui;const gn=ye(Sr,Xt);return[de(gn),fe(gn),q(gn),ke(gn),Ie(gn),me(gn),(0,S.Z)(gn),f.kr]},Sr=>({labelRequiredMarkColor:Sr.colorError,labelColor:Sr.colorTextHeading,labelFontSize:Sr.fontSize,labelHeight:Sr.controlHeight,labelColonMarginInlineStart:Sr.marginXXS/2,labelColonMarginInlineEnd:Sr.marginXS,itemMarginBottom:Sr.marginLG,verticalLabelPadding:`0 0 ${Sr.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function De(Sr,ui,Xt){let gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Sr=="string"?Sr:`${ui}-${gn}`,error:Sr,errorStatus:Xt}}var je=Sr=>{let{help:ui,helpStatus:Xt,errors:gn=Ce,warnings:En=Ce,className:tt,fieldId:at,onVisibleChanged:gt}=Sr;const{prefixCls:Ne}=k.useContext(w.Rk),lt=`${Ne}-item-explain`,[,St]=_e(Ne),ln=(0,k.useMemo)(()=>(0,N.Z)(Ne),[Ne]),jn=I(gn),Cr=I(En),ki=k.useMemo(()=>ui!=null?[De(ui,"help",Xt)]:[].concat((0,y.Z)(jn.map((Ki,fs)=>De(Ki,"error","error",fs))),(0,y.Z)(Cr.map((Ki,fs)=>De(Ki,"warning","warning",fs)))),[ui,Xt,jn,Cr]),Vi={};return at&&(Vi.id=`${at}_help`),k.createElement(z.ZP,{motionDeadline:ln.motionDeadline,motionName:`${Ne}-show-help`,visible:!!ki.length,onVisibleChanged:gt},Ki=>{const{className:fs,style:Ns}=Ki;return k.createElement("div",Object.assign({},Vi,{className:b()(lt,fs,tt,St),style:Ns,role:"alert"}),k.createElement(z.V4,Object.assign({keys:ki},(0,N.Z)(Ne),{motionName:`${Ne}-show-help-item`,component:!1}),Bs=>{const{key:_a,error:oo,errorStatus:Ds,className:oa,style:va}=Bs;return k.createElement("div",{key:_a,className:b()(oa,{[`${lt}-${Ds}`]:Ds}),style:va},oo)}))})},we=m(43589),Pt=m(53124),dt=m(98866),He=m(97647),bt=m(98675);const ft=Sr=>typeof Sr=="object"&&Sr!=null&&Sr.nodeType===1,$t=(Sr,ui)=>(!ui||Sr!=="hidden")&&Sr!=="visible"&&Sr!=="clip",vt=(Sr,ui)=>{if(Sr.clientHeight{const En=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(at){return null}})(gn);return!!En&&(En.clientHeightttui||tt>Sr&&at=ui&>>=Xt?tt-Sr-gn:at>ui&>Xt?at-ui+En:0,Bn=Sr=>{const ui=Sr.parentElement;return ui==null?Sr.getRootNode().host||null:ui},Lr=(Sr,ui)=>{var Xt,gn,En,tt;if(typeof document=="undefined")return[];const{scrollMode:at,block:gt,inline:Ne,boundary:lt,skipOverflowHiddenElements:St}=ui,ln=typeof lt=="function"?lt:to=>to!==lt;if(!ft(Sr))throw new TypeError("Invalid target");const jn=document.scrollingElement||document.documentElement,Cr=[];let ki=Sr;for(;ft(ki)&&ln(ki);){if(ki=Bn(ki),ki===jn){Cr.push(ki);break}ki!=null&&ki===document.body&&vt(ki)&&!vt(document.documentElement)||ki!=null&&vt(ki,St)&&Cr.push(ki)}const Vi=(gn=(Xt=window.visualViewport)==null?void 0:Xt.width)!=null?gn:innerWidth,Ki=(tt=(En=window.visualViewport)==null?void 0:En.height)!=null?tt:innerHeight,{scrollX:fs,scrollY:Ns}=window,{height:Bs,width:_a,top:oo,right:Ds,bottom:oa,left:va}=Sr.getBoundingClientRect(),{top:Bl,right:Fa,bottom:ml,left:la}=(to=>{const sa=window.getComputedStyle(to);return{top:parseFloat(sa.scrollMarginTop)||0,right:parseFloat(sa.scrollMarginRight)||0,bottom:parseFloat(sa.scrollMarginBottom)||0,left:parseFloat(sa.scrollMarginLeft)||0}})(Sr);let Nl=gt==="start"||gt==="nearest"?oo-Bl:gt==="end"?oa+ml:oo+Bs/2-Bl+ml,vs=Ne==="center"?va+_a/2-la+Fa:Ne==="end"?Ds+Fa:va-la;const Hi=[];for(let to=0;to=0&&va>=0&&oa<=Ki&&Ds<=Vi&&oo>=Wu&&oa<=Pc&&va>=vo&&Ds<=rc)return Hi;const eo=getComputedStyle(sa),ds=parseInt(eo.borderLeftWidth,10),Wn=parseInt(eo.borderTopWidth,10),yr=parseInt(eo.borderRightWidth,10),ai=parseInt(eo.borderBottomWidth,10);let hi=0,Ji=0;const so="offsetWidth"in sa?sa.offsetWidth-sa.clientWidth-ds-yr:0,Pi="offsetHeight"in sa?sa.offsetHeight-sa.clientHeight-Wn-ai:0,us="offsetWidth"in sa?sa.offsetWidth===0?0:Ka/sa.offsetWidth:0,pa="offsetHeight"in sa?sa.offsetHeight===0?0:Cs/sa.offsetHeight:0;if(jn===sa)hi=gt==="start"?Nl:gt==="end"?Nl-Ki:gt==="nearest"?yn(Ns,Ns+Ki,Ki,Wn,ai,Ns+Nl,Ns+Nl+Bs,Bs):Nl-Ki/2,Ji=Ne==="start"?vs:Ne==="center"?vs-Vi/2:Ne==="end"?vs-Vi:yn(fs,fs+Vi,Vi,ds,yr,fs+vs,fs+vs+_a,_a),hi=Math.max(0,hi+Ns),Ji=Math.max(0,Ji+fs);else{hi=gt==="start"?Nl-Wu-Wn:gt==="end"?Nl-Pc+ai+Pi:gt==="nearest"?yn(Wu,Pc,Cs,Wn,ai+Pi,Nl,Nl+Bs,Bs):Nl-(Wu+Cs/2)+Pi/2,Ji=Ne==="start"?vs-vo-ds:Ne==="center"?vs-(vo+Ka/2)+so/2:Ne==="end"?vs-rc+yr+so:yn(vo,rc,Ka,ds,yr+so,vs,vs+_a,_a);const{scrollLeft:$a,scrollTop:hl}=sa;hi=pa===0?0:Math.max(0,Math.min(hl+hi/pa,sa.scrollHeight-Cs/pa+Pi)),Ji=us===0?0:Math.max(0,Math.min($a+Ji/us,sa.scrollWidth-Ka/us+so)),Nl+=hl-hi,vs+=$a-Ji}Hi.push({el:sa,top:hi,left:Ji})}return Hi},ii=Sr=>Sr===!1?{block:"end",inline:"nearest"}:(ui=>ui===Object(ui)&&Object.keys(ui).length!==0)(Sr)?Sr:{block:"start",inline:"nearest"};function gi(Sr,ui){if(!Sr.isConnected||!(En=>{let tt=En;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(Sr))return;const Xt=(En=>{const tt=window.getComputedStyle(En);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Sr);if((En=>typeof En=="object"&&typeof En.behavior=="function")(ui))return ui.behavior(Lr(Sr,ui));const gn=typeof ui=="boolean"||ui==null?void 0:ui.behavior;for(const{el:En,top:tt,left:at}of Lr(Sr,ii(ui))){const gt=tt-Xt.top+Xt.bottom,Ne=at-Xt.left+Xt.right;En.scroll({top:gt,left:Ne,behavior:gn})}}const no=["parentNode"],To="form_item";function _r(Sr){return Sr===void 0||Sr===!1?[]:Array.isArray(Sr)?Sr:[Sr]}function Bo(Sr,ui){if(!Sr.length)return;const Xt=Sr.join("_");return ui?`${ui}_${Xt}`:no.includes(Xt)?`${To}_${Xt}`:Xt}function hs(Sr,ui,Xt,gn,En,tt){let at=gn;return tt!==void 0?at=tt:Xt.validating?at="validating":Sr.length?at="error":ui.length?at="warning":(Xt.touched||En&&Xt.validated)&&(at="success"),at}function ve(Sr){return _r(Sr).join("_")}function So(Sr){const[ui]=(0,we.cI)(),Xt=k.useRef({}),gn=k.useMemo(()=>Sr!=null?Sr:Object.assign(Object.assign({},ui),{__INTERNAL__:{itemRef:En=>tt=>{const at=ve(En);tt?Xt.current[at]=tt:delete Xt.current[at]}},scrollToField:function(En){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const at=_r(En),gt=Bo(at,gn.__INTERNAL__.name),Ne=gt?document.getElementById(gt):null;Ne&&gi(Ne,Object.assign({scrollMode:"if-needed",block:"nearest"},tt))},getFieldInstance:En=>{const tt=ve(En);return Xt.current[tt]}}),[Sr,ui]);return[gn]}var ho=m(37920),go=function(Sr,ui){var Xt={};for(var gn in Sr)Object.prototype.hasOwnProperty.call(Sr,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Sr[gn]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Sr);En{const Xt=k.useContext(dt.Z),{getPrefixCls:gn,direction:En,form:tt}=k.useContext(Pt.E_),{prefixCls:at,className:gt,rootClassName:Ne,size:lt,disabled:St=Xt,form:ln,colon:jn,labelAlign:Cr,labelWrap:ki,labelCol:Vi,wrapperCol:Ki,hideRequiredMark:fs,layout:Ns="horizontal",scrollToFirstError:Bs,requiredMark:_a,onFinishFailed:oo,name:Ds,style:oa,feedbackIcons:va}=Sr,Bl=go(Sr,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Fa=(0,bt.Z)(lt),ml=k.useContext(ho.Z),la=(0,k.useMemo)(()=>_a!==void 0?_a:tt&&tt.requiredMark!==void 0?tt.requiredMark:!fs,[fs,_a,tt]),Nl=jn!=null?jn:tt==null?void 0:tt.colon,vs=gn("form",at),[Hi,to]=_e(vs),sa=b()(vs,`${vs}-${Ns}`,{[`${vs}-hide-required-mark`]:la===!1,[`${vs}-rtl`]:En==="rtl",[`${vs}-${Fa}`]:Fa},to,tt==null?void 0:tt.className,gt,Ne),[Cs]=So(ln),{__INTERNAL__:Ka}=Cs;Ka.name=Ds;const Wu=(0,k.useMemo)(()=>({name:Ds,labelAlign:Cr,labelCol:Vi,labelWrap:ki,wrapperCol:Ki,vertical:Ns==="vertical",colon:Nl,requiredMark:la,itemRef:Ka.itemRef,form:Cs,feedbackIcons:va}),[Ds,Cr,Vi,Ki,Ns,Nl,la,Cs,va]);k.useImperativeHandle(ui,()=>Cs);const rc=(vo,eo)=>{if(vo){let ds={block:"nearest"};typeof vo=="object"&&(ds=vo),Cs.scrollToField(eo,ds)}},Pc=vo=>{if(oo==null||oo(vo),vo.errorFields.length){const eo=vo.errorFields[0].name;if(Bs!==void 0){rc(Bs,eo);return}tt&&tt.scrollToFirstError!==void 0&&rc(tt.scrollToFirstError,eo)}};return Hi(k.createElement(dt.n,{disabled:St},k.createElement(He.q,{size:Fa},k.createElement(w.RV,{validateMessages:ml},k.createElement(w.q3.Provider,{value:Wu},k.createElement(we.ZP,Object.assign({id:Ds},Bl,{name:Ds,onFinishFailed:Pc,form:Cs,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),oa),className:sa})))))))};var dn=k.forwardRef(ji),Ve=m(30470),yt=m(42550),Ct=m(96159),Wt=m(27288),sn=m(50344);function Mt(Sr){if(typeof Sr=="function")return Sr;const ui=(0,sn.Z)(Sr);return ui.length<=1?ui[0]:ui}const Tt=()=>{const{status:Sr,errors:ui=[],warnings:Xt=[]}=(0,k.useContext)(w.aM);return{status:Sr,errors:ui,warnings:Xt}};Tt.Context=w.aM;var xt=Tt,Ht=m(75164);function Vn(Sr){const[ui,Xt]=k.useState(Sr),gn=(0,k.useRef)(null),En=(0,k.useRef)([]),tt=(0,k.useRef)(!1);k.useEffect(()=>(tt.current=!1,()=>{tt.current=!0,Ht.Z.cancel(gn.current),gn.current=null}),[]);function at(gt){tt.current||(gn.current===null&&(En.current=[],gn.current=(0,Ht.Z)(()=>{gn.current=null,Xt(Ne=>{let lt=Ne;return En.current.forEach(St=>{lt=St(lt)}),lt})})),En.current.push(gt))}return[ui,at]}function en(){const{itemRef:Sr}=k.useContext(w.q3),ui=k.useRef({});function Xt(gn,En){const tt=En&&typeof En=="object"&&En.ref,at=gn.join("_");return(ui.current.name!==at||ui.current.originRef!==tt)&&(ui.current.name=at,ui.current.originRef=tt,ui.current.ref=(0,yt.sQ)(Sr(gn),tt)),ui.current.ref}return Xt}var fr=m(5110),Kr=m(8410),ri=m(98423),si=m(74443),Qo=(0,k.createContext)({});const _n=Sr=>{const{componentCls:ui}=Sr;return{[ui]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Vr=Sr=>{const{componentCls:ui}=Sr;return{[ui]:{position:"relative",maxWidth:"100%",minHeight:1}}},qr=(Sr,ui)=>{const{componentCls:Xt,gridColumns:gn}=Sr,En={};for(let tt=gn;tt>=0;tt--)tt===0?(En[`${Xt}${ui}-${tt}`]={display:"none"},En[`${Xt}-push-${tt}`]={insetInlineStart:"auto"},En[`${Xt}-pull-${tt}`]={insetInlineEnd:"auto"},En[`${Xt}${ui}-push-${tt}`]={insetInlineStart:"auto"},En[`${Xt}${ui}-pull-${tt}`]={insetInlineEnd:"auto"},En[`${Xt}${ui}-offset-${tt}`]={marginInlineStart:0},En[`${Xt}${ui}-order-${tt}`]={order:0}):(En[`${Xt}${ui}-${tt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${tt/gn*100}%`,maxWidth:`${tt/gn*100}%`}],En[`${Xt}${ui}-push-${tt}`]={insetInlineStart:`${tt/gn*100}%`},En[`${Xt}${ui}-pull-${tt}`]={insetInlineEnd:`${tt/gn*100}%`},En[`${Xt}${ui}-offset-${tt}`]={marginInlineStart:`${tt/gn*100}%`},En[`${Xt}${ui}-order-${tt}`]={order:tt});return En},Ui=(Sr,ui)=>qr(Sr,ui),xo=(Sr,ui,Xt)=>({[`@media (min-width: ${ui}px)`]:Object.assign({},Ui(Sr,Xt))}),Us=(0,W.Z)("Grid",Sr=>[_n(Sr)]),zn=(0,W.Z)("Grid",Sr=>{const ui=(0,P.TS)(Sr,{gridColumns:24}),Xt={"-sm":ui.screenSMMin,"-md":ui.screenMDMin,"-lg":ui.screenLGMin,"-xl":ui.screenXLMin,"-xxl":ui.screenXXLMin};return[Vr(ui),Ui(ui,""),Ui(ui,"-xs"),Object.keys(Xt).map(gn=>xo(ui,Xt[gn],gn)).reduce((gn,En)=>Object.assign(Object.assign({},gn),En),{})]});var Kn=function(Sr,ui){var Xt={};for(var gn in Sr)Object.prototype.hasOwnProperty.call(Sr,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Sr[gn]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Sr);En{if(typeof Sr=="string"&&gn(Sr),typeof Sr=="object")for(let tt=0;tt{En()},[JSON.stringify(Sr),ui]),Xt}var di=k.forwardRef((Sr,ui)=>{const{prefixCls:Xt,justify:gn,align:En,className:tt,style:at,children:gt,gutter:Ne=0,wrap:lt}=Sr,St=Kn(Sr,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:ln,direction:jn}=k.useContext(Pt.E_),[Cr,ki]=k.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[Vi,Ki]=k.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),fs=Er(En,Vi),Ns=Er(gn,Vi),Bs=k.useRef(Ne),_a=(0,si.ZP)();k.useEffect(()=>{const to=_a.subscribe(sa=>{Ki(sa);const Cs=Bs.current||0;(!Array.isArray(Cs)&&typeof Cs=="object"||Array.isArray(Cs)&&(typeof Cs[0]=="object"||typeof Cs[1]=="object"))&&ki(sa)});return()=>_a.unsubscribe(to)},[]);const oo=()=>{const to=[void 0,void 0];return(Array.isArray(Ne)?Ne:[Ne,void 0]).forEach((Cs,Ka)=>{if(typeof Cs=="object")for(let Wu=0;Wu0?Bl[0]/-2:void 0;la&&(ml.marginLeft=la,ml.marginRight=la),[,ml.rowGap]=Bl;const[Nl,vs]=Bl,Hi=k.useMemo(()=>({gutter:[Nl,vs],wrap:lt}),[Nl,vs,lt]);return oa(k.createElement(Qo.Provider,{value:Hi},k.createElement("div",Object.assign({},St,{className:Fa,style:Object.assign(Object.assign({},ml),at),ref:ui}),gt)))}),rn=function(Sr,ui){var Xt={};for(var gn in Sr)Object.prototype.hasOwnProperty.call(Sr,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Sr[gn]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Sr);En{const{getPrefixCls:Xt,direction:gn}=k.useContext(Pt.E_),{gutter:En,wrap:tt}=k.useContext(Qo),{prefixCls:at,span:gt,order:Ne,offset:lt,push:St,pull:ln,className:jn,children:Cr,flex:ki,style:Vi}=Sr,Ki=rn(Sr,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),fs=Xt("col",at),[Ns,Bs]=zn(fs);let _a={};Xr.forEach(oa=>{let va={};const Bl=Sr[oa];typeof Bl=="number"?va.span=Bl:typeof Bl=="object"&&(va=Bl||{}),delete Ki[oa],_a=Object.assign(Object.assign({},_a),{[`${fs}-${oa}-${va.span}`]:va.span!==void 0,[`${fs}-${oa}-order-${va.order}`]:va.order||va.order===0,[`${fs}-${oa}-offset-${va.offset}`]:va.offset||va.offset===0,[`${fs}-${oa}-push-${va.push}`]:va.push||va.push===0,[`${fs}-${oa}-pull-${va.pull}`]:va.pull||va.pull===0,[`${fs}-${oa}-flex-${va.flex}`]:va.flex||va.flex==="auto",[`${fs}-rtl`]:gn==="rtl"})});const oo=b()(fs,{[`${fs}-${gt}`]:gt!==void 0,[`${fs}-order-${Ne}`]:Ne,[`${fs}-offset-${lt}`]:lt,[`${fs}-push-${St}`]:St,[`${fs}-pull-${ln}`]:ln},jn,_a,Bs),Ds={};if(En&&En[0]>0){const oa=En[0]/2;Ds.paddingLeft=oa,Ds.paddingRight=oa}return ki&&(Ds.flex=Qn(ki),tt===!1&&!Ds.minWidth&&(Ds.minWidth=0)),Ns(k.createElement("div",Object.assign({},Ki,{style:Object.assign(Object.assign({},Ds),Vi),className:oo,ref:ui}),Cr))});const Bt=Sr=>{const{formItemCls:ui}=Sr;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ui}-control`]:{display:"flex"}}}};var pn=(0,W.b)(["Form","item-item"],(Sr,ui)=>{let{rootPrefixCls:Xt}=ui;const gn=ye(Sr,Xt);return[Bt(gn)]}),Jr=Sr=>{const{prefixCls:ui,status:Xt,wrapperCol:gn,children:En,errors:tt,warnings:at,_internalItemRender:gt,extra:Ne,help:lt,fieldId:St,marginBottom:ln,onErrorVisibleChanged:jn}=Sr,Cr=`${ui}-item`,ki=k.useContext(w.q3),Vi=gn||ki.wrapperCol||{},Ki=b()(`${Cr}-control`,Vi.className),fs=k.useMemo(()=>Object.assign({},ki),[ki]);delete fs.labelCol,delete fs.wrapperCol;const Ns=k.createElement("div",{className:`${Cr}-control-input`},k.createElement("div",{className:`${Cr}-control-input-content`},En)),Bs=k.useMemo(()=>({prefixCls:ui,status:Xt}),[ui,Xt]),_a=ln!==null||tt.length||at.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(w.Rk.Provider,{value:Bs},k.createElement(je,{fieldId:St,errors:tt,warnings:at,help:lt,helpStatus:Xt,className:`${Cr}-explain-connected`,onVisibleChanged:jn})),!!ln&&k.createElement("div",{style:{width:0,height:ln}})):null,oo={};St&&(oo.id=`${St}_extra`);const Ds=Ne?k.createElement("div",Object.assign({},oo,{className:`${Cr}-extra`}),Ne):null,oa=gt&>.mark==="pro_table_render"&>.render?gt.render(Sr,{input:Ns,errorList:_a,extra:Ds}):k.createElement(k.Fragment,null,Ns,_a,Ds);return k.createElement(w.q3.Provider,{value:fs},k.createElement(as,Object.assign({},Vi,{className:Ki}),oa),k.createElement(pn,{prefixCls:ui}))},vi=m(87462),Di=m(36688),co=m(93771),Qr=function(ui,Xt){return k.createElement(co.Z,(0,vi.Z)({},ui,{ref:Xt,icon:Di.Z}))},oi=k.forwardRef(Qr),Zi=m(88526),Ar=m(10110),tn=m(61781),Gn=function(Sr,ui){var Xt={};for(var gn in Sr)Object.prototype.hasOwnProperty.call(Sr,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Sr[gn]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Sr);En{let{prefixCls:ui,label:Xt,htmlFor:gn,labelCol:En,labelAlign:tt,colon:at,required:gt,requiredMark:Ne,tooltip:lt}=Sr;var St;const[ln]=(0,Ar.Z)("Form"),{vertical:jn,labelAlign:Cr,labelCol:ki,labelWrap:Vi,colon:Ki}=k.useContext(w.q3);if(!Xt)return null;const fs=En||ki||{},Ns=tt||Cr,Bs=`${ui}-item-label`,_a=b()(Bs,Ns==="left"&&`${Bs}-left`,fs.className,{[`${Bs}-wrap`]:!!Vi});let oo=Xt;const Ds=at===!0||Ki!==!1&&at!==!1;Ds&&!jn&&typeof Xt=="string"&&Xt.trim()!==""&&(oo=Xt.replace(/[:|:]\s*$/,""));const va=Ei(lt);if(va){const{icon:la=k.createElement(oi,null)}=va,Nl=Gn(va,["icon"]),vs=k.createElement(tn.Z,Object.assign({},Nl),k.cloneElement(la,{className:`${ui}-item-tooltip`,title:""}));oo=k.createElement(k.Fragment,null,oo,vs)}const Bl=Ne==="optional",Fa=typeof Ne=="function";Fa?oo=Ne(oo,{required:!!gt}):Bl&&!gt&&(oo=k.createElement(k.Fragment,null,oo,k.createElement("span",{className:`${ui}-item-optional`,title:""},(ln==null?void 0:ln.optional)||((St=Zi.Z.Form)===null||St===void 0?void 0:St.optional))));const ml=b()({[`${ui}-item-required`]:gt,[`${ui}-item-required-mark-optional`]:Bl||Fa,[`${ui}-item-no-colon`]:!Ds});return k.createElement(as,Object.assign({},fs,{className:_a}),k.createElement("label",{htmlFor:gn,className:ml,title:typeof Xt=="string"?Xt:""},oo))},nr=m(76278),wi=m(41322),Mi=m(26702),Fr=m(22508);const qn={success:nr.Z,warning:Mi.Z,error:wi.Z,validating:Fr.Z};function ms(Sr){let{children:ui,errors:Xt,warnings:gn,hasFeedback:En,validateStatus:tt,prefixCls:at,meta:gt,noStyle:Ne}=Sr;const lt=`${at}-item`,{feedbackIcons:St}=k.useContext(w.q3),ln=hs(Xt,gn,gt,null,!!En,tt),{isFormItemInput:jn,status:Cr,hasFeedback:ki,feedbackIcon:Vi}=k.useContext(w.aM),Ki=k.useMemo(()=>{var fs;let Ns;if(En){const _a=En!==!0&&En.icons||St,oo=ln&&((fs=_a==null?void 0:_a({status:ln,errors:Xt,warnings:gn}))===null||fs===void 0?void 0:fs[ln]),Ds=ln&&qn[ln];Ns=oo!==!1&&Ds?k.createElement("span",{className:b()(`${lt}-feedback-icon`,`${lt}-feedback-icon-${ln}`)},oo||k.createElement(Ds,null)):null}const Bs={status:ln||"",errors:Xt,warnings:gn,hasFeedback:!!En,feedbackIcon:Ns,isFormItemInput:!0};return Ne&&(Bs.status=(ln!=null?ln:Cr)||"",Bs.isFormItemInput=jn,Bs.hasFeedback=!!(En!=null?En:ki),Bs.feedbackIcon=En!==void 0?Bs.feedbackIcon:Vi),Bs},[ln,En,Ne,jn,Cr]);return k.createElement(w.aM.Provider,{value:Ki},ui)}var ya=function(Sr,ui){var Xt={};for(var gn in Sr)Object.prototype.hasOwnProperty.call(Sr,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Sr[gn]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Sr);En{if(va&&_a.current){const to=getComputedStyle(_a.current);ml(parseInt(to.marginBottom,10))}},[va,Bl]);const la=to=>{to||ml(null)},vs=function(){let to=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const sa=to?oo:lt.errors,Cs=to?Ds:lt.warnings;return hs(sa,Cs,lt,"",!!St,Ne)}(),Hi=b()(Ns,Xt,gn,{[`${Ns}-with-help`]:oa||oo.length||Ds.length,[`${Ns}-has-feedback`]:vs&&St,[`${Ns}-has-success`]:vs==="success",[`${Ns}-has-warning`]:vs==="warning",[`${Ns}-has-error`]:vs==="error",[`${Ns}-is-validating`]:vs==="validating",[`${Ns}-hidden`]:ln});return k.createElement("div",{className:Hi,style:En,ref:_a},k.createElement(di,Object.assign({className:`${Ns}-row`},(0,ri.Z)(fs,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),k.createElement(Li,Object.assign({htmlFor:Cr},Sr,{requiredMark:Bs,required:ki!=null?ki:Vi,prefixCls:ui})),k.createElement(Jr,Object.assign({},Sr,lt,{errors:oo,warnings:Ds,prefixCls:ui,status:vs,help:tt,marginBottom:Fa,onErrorVisibleChanged:la}),k.createElement(w.qI.Provider,{value:Ki},k.createElement(ms,{prefixCls:ui,meta:lt,errors:lt.errors,warnings:lt.warnings,hasFeedback:St,validateStatus:vs},jn)))),!!Fa&&k.createElement("div",{className:`${Ns}-margin-offset`,style:{marginBottom:-Fa}}))}const Ws="__SPLIT__",Ua=null,Ao=k.memo(Sr=>{let{children:ui}=Sr;return ui},(Sr,ui)=>Sr.value===ui.value&&Sr.update===ui.update&&Sr.childProps.length===ui.childProps.length&&Sr.childProps.every((Xt,gn)=>Xt===ui.childProps[gn]));function dl(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $r(Sr){const{name:ui,noStyle:Xt,className:gn,dependencies:En,prefixCls:tt,shouldUpdate:at,rules:gt,children:Ne,required:lt,label:St,messageVariables:ln,trigger:jn="onChange",validateTrigger:Cr,hidden:ki,help:Vi}=Sr,{getPrefixCls:Ki}=k.useContext(Pt.E_),{name:fs}=k.useContext(w.q3),Ns=Mt(Ne),Bs=typeof Ns=="function",_a=k.useContext(w.qI),{validateTrigger:oo}=k.useContext(we.zb),Ds=Cr!==void 0?Cr:oo,oa=ui!=null,va=Ki("form",tt),[Bl,Fa]=_e(va),ml=(0,Wt.ln)("Form.Item"),la=k.useContext(we.ZM),Nl=k.useRef(),[vs,Hi]=Vn({}),[to,sa]=(0,Ve.Z)(()=>dl()),Cs=ds=>{const Wn=la==null?void 0:la.getKey(ds.name);if(sa(ds.destroy?dl():ds,!0),Xt&&Vi!==!1&&_a){let yr=ds.name;if(ds.destroy)yr=Nl.current||yr;else if(Wn!==void 0){const[ai,hi]=Wn;yr=[ai].concat((0,y.Z)(hi)),Nl.current=yr}_a(ds,yr)}},Ka=(ds,Wn)=>{Hi(yr=>{const ai=Object.assign({},yr),Ji=[].concat((0,y.Z)(ds.name.slice(0,-1)),(0,y.Z)(Wn)).join(Ws);return ds.destroy?delete ai[Ji]:ai[Ji]=ds,ai})},[Wu,rc]=k.useMemo(()=>{const ds=(0,y.Z)(to.errors),Wn=(0,y.Z)(to.warnings);return Object.values(vs).forEach(yr=>{ds.push.apply(ds,(0,y.Z)(yr.errors||[])),Wn.push.apply(Wn,(0,y.Z)(yr.warnings||[]))}),[ds,Wn]},[vs,to.errors,to.warnings]),Pc=en();function vo(ds,Wn,yr){return Xt&&!ki?k.createElement(ms,{prefixCls:va,hasFeedback:Sr.hasFeedback,validateStatus:Sr.validateStatus,meta:to,errors:Wu,warnings:rc,noStyle:!0},ds):k.createElement(ha,Object.assign({key:"row"},Sr,{className:b()(gn,Fa),prefixCls:va,fieldId:Wn,isRequired:yr,errors:Wu,warnings:rc,meta:to,onSubItemMetaChange:Ka}),ds)}if(!oa&&!Bs&&!En)return Bl(vo(Ns));let eo={};return typeof St=="string"?eo.label=St:ui&&(eo.label=String(ui)),ln&&(eo=Object.assign(Object.assign({},eo),ln)),Bl(k.createElement(we.gN,Object.assign({},Sr,{messageVariables:eo,trigger:jn,validateTrigger:Ds,onMetaChange:Cs}),(ds,Wn,yr)=>{const ai=_r(ui).length&&Wn?Wn.name:[],hi=Bo(ai,fs),Ji=lt!==void 0?lt:!!(gt&>.some(us=>{if(us&&typeof us=="object"&&us.required&&!us.warningOnly)return!0;if(typeof us=="function"){const pa=us(yr);return pa&&pa.required&&!pa.warningOnly}return!1})),so=Object.assign({},ds);let Pi=null;if(Array.isArray(Ns)&&oa)Pi=Ns;else if(!(Bs&&(!(at||En)||oa))){if(!(En&&!Bs&&!oa))if((0,Ct.l$)(Ns)){const us=Object.assign(Object.assign({},Ns.props),so);if(us.id||(us.id=hi),Vi||Wu.length>0||rc.length>0||Sr.extra){const hl=[];(Vi||Wu.length>0)&&hl.push(`${hi}_help`),Sr.extra&&hl.push(`${hi}_extra`),us["aria-describedby"]=hl.join(" ")}Wu.length>0&&(us["aria-invalid"]="true"),Ji&&(us["aria-required"]="true"),(0,yt.Yr)(Ns)&&(us.ref=Pc(ai,Ns)),new Set([].concat((0,y.Z)(_r(jn)),(0,y.Z)(_r(Ds)))).forEach(hl=>{us[hl]=function(){for(var Zl,Ml,Za,ku,ea,Qa=arguments.length,el=new Array(Qa),Hl=0;Hl{var{prefixCls:ui,children:Xt}=Sr,gn=pr(Sr,["prefixCls","children"]);const{getPrefixCls:En}=k.useContext(Pt.E_),tt=En("form",ui),at=k.useMemo(()=>({prefixCls:tt,status:"error"}),[tt]);return k.createElement(we.aV,Object.assign({},gn),(gt,Ne,lt)=>k.createElement(w.Rk.Provider,{value:at},Xt(gt.map(St=>Object.assign(Object.assign({},St),{fieldKey:St.key})),Ne,{errors:lt.errors,warnings:lt.warnings})))};function mo(){const{form:Sr}=(0,k.useContext)(w.q3);return Sr}const Ts=dn;Ts.Item=Tr,Ts.List=Eo,Ts.ErrorList=je,Ts.useForm=So,Ts.useFormInstance=mo,Ts.useWatch=we.qo,Ts.Provider=w.RV,Ts.create=()=>{};var xs=Ts},37920:function(nt,V,m){"use strict";var y=m(67294);V.Z=(0,y.createContext)(void 0)},25378:function(nt,V,m){"use strict";var y=m(67294),A=m(8410),b=m(57838),z=m(74443);function k(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const w=(0,y.useRef)({}),I=(0,b.Z)(),C=(0,z.ZP)();return(0,A.Z)(()=>{const f=C.subscribe(S=>{w.current=S,N&&I()});return()=>C.unsubscribe(f)},[]),w.current}V.Z=k},73360:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Qo}});var y=m(58964),A=m(87462),b=m(67294),z={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"},k=z,N=m(93771),w=function(Vr,qr){return b.createElement(N.Z,(0,A.Z)({},Vr,{ref:qr,icon:k}))},I=b.forwardRef(w),C=m(94184),f=m.n(C),S=m(4942),P=m(71002),W=m(97685),te=m(91),q=m(15671),ie=m(43144);function he(){return typeof BigInt=="function"}function de(_n){return!_n&&_n!==0&&!Number.isNaN(_n)||!String(_n).trim()}function fe(_n){var Vr=_n.trim(),qr=Vr.startsWith("-");qr&&(Vr=Vr.slice(1)),Vr=Vr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Vr.startsWith(".")&&(Vr="0".concat(Vr));var Ui=Vr||"0",xo=Ui.split("."),Us=xo[0]||"0",zn=xo[1]||"0";Us==="0"&&zn==="0"&&(qr=!1);var Kn=qr?"-":"";return{negative:qr,negativeStr:Kn,trimStr:Ui,integerStr:Us,decimalStr:zn,fullStr:"".concat(Kn).concat(Ui)}}function ke(_n){var Vr=String(_n);return!Number.isNaN(Number(Vr))&&Vr.includes("e")}function Ie(_n){var Vr=String(_n);if(ke(_n)){var qr=Number(Vr.slice(Vr.indexOf("e-")+2)),Ui=Vr.match(/\.(\d+)/);return Ui!=null&&Ui[1]&&(qr+=Ui[1].length),qr}return Vr.includes(".")&&be(Vr)?Vr.length-Vr.indexOf(".")-1:0}function Be(_n){var Vr=String(_n);if(ke(_n)){if(_n>Number.MAX_SAFE_INTEGER)return String(he()?BigInt(_n).toString():Number.MAX_SAFE_INTEGER);if(_n0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),_n}(),ye=function(){function _n(Vr){if((0,q.Z)(this,_n),(0,S.Z)(this,"origin",""),(0,S.Z)(this,"number",void 0),(0,S.Z)(this,"empty",void 0),de(Vr)){this.empty=!0;return}this.origin=String(Vr),this.number=Number(Vr)}return(0,ie.Z)(_n,[{key:"negate",value:function(){return new _n(-this.toNumber())}},{key:"add",value:function(qr){if(this.isInvalidate())return new _n(qr);var Ui=Number(qr);if(Number.isNaN(Ui))return this;var xo=this.number+Ui;if(xo>Number.MAX_SAFE_INTEGER)return new _n(Number.MAX_SAFE_INTEGER);if(xoNumber.MAX_SAFE_INTEGER)return new _n(Number.MAX_SAFE_INTEGER);if(xo0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":Be(this.number):this.origin}}]),_n}();function _e(_n){return he()?new me(_n):new ye(_n)}function Ce(_n,Vr,qr){var Ui=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(_n==="")return"";var xo=fe(_n),Us=xo.negativeStr,zn=xo.integerStr,Kn=xo.decimalStr,Or="".concat(Vr).concat(Kn),mi="".concat(Us).concat(zn);if(qr>=0){var Er=Number(Kn[qr]);if(Er>=5&&!Ui){var ti=_e(_n).add("".concat(Us,"0.").concat("0".repeat(qr)).concat(10-Er));return Ce(ti.toString(),Vr,qr,Ui)}return qr===0?mi:"".concat(mi).concat(Vr).concat(Kn.padEnd(qr,"0").slice(0,qr))}return Or===".0"?mi:"".concat(mi).concat(Or)}var De=_e,ge=m(67656),je=m(8410),we=m(42550),Pt=m(80334);function dt(_n,Vr){var qr=(0,b.useRef)(null);function Ui(){try{var Us=_n.selectionStart,zn=_n.selectionEnd,Kn=_n.value,Or=Kn.substring(0,Us),mi=Kn.substring(zn);qr.current={start:Us,end:zn,value:Kn,beforeTxt:Or,afterTxt:mi}}catch(Er){}}function xo(){if(_n&&qr.current&&Vr)try{var Us=_n.value,zn=qr.current,Kn=zn.beforeTxt,Or=zn.afterTxt,mi=zn.start,Er=Us.length;if(Us.endsWith(Or))Er=Us.length-qr.current.afterTxt.length;else if(Us.startsWith(Kn))Er=Kn.length;else{var ti=Kn[mi-1],di=Us.indexOf(ti,mi-1);di!==-1&&(Er=di+1)}_n.setSelectionRange(Er,Er)}catch(rn){(0,Pt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(rn.message))}}return[Ui,xo]}var He=m(31131),bt=function(){var Vr=(0,b.useState)(!1),qr=(0,W.Z)(Vr,2),Ui=qr[0],xo=qr[1];return(0,je.Z)(function(){xo((0,He.Z)())},[]),Ui},ft=bt,$t=m(75164),vt=200,yn=600;function Bn(_n){var Vr=_n.prefixCls,qr=_n.upNode,Ui=_n.downNode,xo=_n.upDisabled,Us=_n.downDisabled,zn=_n.onStep,Kn=b.useRef(),Or=b.useRef([]),mi=b.useRef();mi.current=zn;var Er=function(){clearTimeout(Kn.current)},ti=function(pn,br){pn.preventDefault(),Er(),mi.current(br);function Jr(){mi.current(br),Kn.current=setTimeout(Jr,vt)}Kn.current=setTimeout(Jr,yn)};b.useEffect(function(){return function(){Er(),Or.current.forEach(function(Bt){return $t.Z.cancel(Bt)})}},[]);var di=ft();if(di)return null;var rn="".concat(Vr,"-handler"),Qn=f()(rn,"".concat(rn,"-up"),(0,S.Z)({},"".concat(rn,"-up-disabled"),xo)),Xr=f()(rn,"".concat(rn,"-down"),(0,S.Z)({},"".concat(rn,"-down-disabled"),Us)),ao=function(){return Or.current.push((0,$t.Z)(Er))},as={unselectable:"on",role:"button",onMouseUp:ao,onMouseLeave:ao};return b.createElement("div",{className:"".concat(rn,"-wrap")},b.createElement("span",(0,A.Z)({},as,{onMouseDown:function(pn){ti(pn,!0)},"aria-label":"Increase Value","aria-disabled":xo,className:Qn}),qr||b.createElement("span",{unselectable:"on",className:"".concat(Vr,"-handler-up-inner")})),b.createElement("span",(0,A.Z)({},as,{onMouseDown:function(pn){ti(pn,!1)},"aria-label":"Decrease Value","aria-disabled":Us,className:Xr}),Ui||b.createElement("span",{unselectable:"on",className:"".concat(Vr,"-handler-down-inner")})))}function Lr(_n){var Vr=typeof _n=="number"?Be(_n):fe(_n).fullStr,qr=Vr.includes(".");return qr?fe(Vr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:_n+"0"}var ii=m(87887),gi=function(){var _n=(0,b.useRef)(0),Vr=function(){$t.Z.cancel(_n.current)};return(0,b.useEffect)(function(){return Vr},[]),function(qr){Vr(),_n.current=(0,$t.Z)(function(){qr()})}},no=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],To=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],_r=function(Vr,qr){return Vr||qr.isEmpty()?qr.toString():qr.toNumber()},Bo=function(Vr){var qr=De(Vr);return qr.isInvalidate()?null:qr},hs=b.forwardRef(function(_n,Vr){var qr,Ui=_n.prefixCls,xo=Ui===void 0?"rc-input-number":Ui,Us=_n.className,zn=_n.style,Kn=_n.min,Or=_n.max,mi=_n.step,Er=mi===void 0?1:mi,ti=_n.defaultValue,di=_n.value,rn=_n.disabled,Qn=_n.readOnly,Xr=_n.upHandler,ao=_n.downHandler,as=_n.keyboard,Bt=_n.controls,pn=Bt===void 0?!0:Bt,br=_n.classNames,Jr=_n.stringMode,vi=_n.parser,Di=_n.formatter,co=_n.precision,Qr=_n.decimalSeparator,oi=_n.onChange,Zi=_n.onInput,Ar=_n.onPressEnter,tn=_n.onStep,Gn=(0,te.Z)(_n,no),Ei="".concat(xo,"-input"),In=b.useRef(null),Li=b.useState(!1),nr=(0,W.Z)(Li,2),wi=nr[0],Mi=nr[1],Fr=b.useRef(!1),qn=b.useRef(!1),ms=b.useRef(!1),ya=b.useState(function(){return De(di!=null?di:ti)}),ha=(0,W.Z)(ya,2),Ws=ha[0],Ua=ha[1];function Ao(oo){di===void 0&&Ua(oo)}var dl=b.useCallback(function(oo,Ds){if(!Ds)return co>=0?co:Math.max(Ie(oo),Ie(Er))},[co,Er]),$r=b.useCallback(function(oo){var Ds=String(oo);if(vi)return vi(Ds);var oa=Ds;return Qr&&(oa=oa.replace(Qr,".")),oa.replace(/[^\w.-]+/g,"")},[vi,Qr]),er=b.useRef(""),Tr=b.useCallback(function(oo,Ds){if(Di)return Di(oo,{userTyping:Ds,input:String(er.current)});var oa=typeof oo=="number"?Be(oo):oo;if(!Ds){var va=dl(oa,Ds);if(be(oa)&&(Qr||va>=0)){var Bl=Qr||".";oa=Ce(oa,Bl,va)}}return oa},[Di,dl,Qr]),pr=b.useState(function(){var oo=ti!=null?ti:di;return Ws.isInvalidate()&&["string","number"].includes((0,P.Z)(oo))?Number.isNaN(oo)?"":oo:Tr(Ws.toString(),!1)}),ci=(0,W.Z)(pr,2),Eo=ci[0],mo=ci[1];er.current=Eo;function Ts(oo,Ds){mo(Tr(oo.isInvalidate()?oo.toString(!1):oo.toString(!Ds),Ds))}var xs=b.useMemo(function(){return Bo(Or)},[Or,co]),Sr=b.useMemo(function(){return Bo(Kn)},[Kn,co]),ui=b.useMemo(function(){return!xs||!Ws||Ws.isInvalidate()?!1:xs.lessEquals(Ws)},[xs,Ws]),Xt=b.useMemo(function(){return!Sr||!Ws||Ws.isInvalidate()?!1:Ws.lessEquals(Sr)},[Sr,Ws]),gn=dt(In.current,wi),En=(0,W.Z)(gn,2),tt=En[0],at=En[1],gt=function(Ds){return xs&&!Ds.lessEquals(xs)?xs:Sr&&!Sr.lessEquals(Ds)?Sr:null},Ne=function(Ds){return!gt(Ds)},lt=function(Ds,oa){var va=Ds,Bl=Ne(va)||va.isEmpty();if(!va.isEmpty()&&!oa&&(va=gt(va)||va,Bl=!0),!Qn&&!rn&&Bl){var Fa=va.toString(),ml=dl(Fa,oa);return ml>=0&&(va=De(Ce(Fa,".",ml)),Ne(va)||(va=De(Ce(Fa,".",ml,!0)))),va.equals(Ws)||(Ao(va),oi==null||oi(va.isEmpty()?null:_r(Jr,va)),di===void 0&&Ts(va,oa)),va}return Ws},St=gi(),ln=function oo(Ds){if(tt(),er.current=Ds,mo(Ds),!qn.current){var oa=$r(Ds),va=De(oa);va.isNaN()||lt(va,!0)}Zi==null||Zi(Ds),St(function(){var Bl=Ds;vi||(Bl=Ds.replace(/。/g,".")),Bl!==Ds&&oo(Bl)})},jn=function(){qn.current=!0},Cr=function(){qn.current=!1,ln(In.current.value)},ki=function(Ds){ln(Ds.target.value)},Vi=function(Ds){var oa;if(!(Ds&&ui||!Ds&&Xt)){Fr.current=!1;var va=De(ms.current?Lr(Er):Er);Ds||(va=va.negate());var Bl=(Ws||De(0)).add(va.toString()),Fa=lt(Bl,!1);tn==null||tn(_r(Jr,Fa),{offset:ms.current?Lr(Er):Er,type:Ds?"up":"down"}),(oa=In.current)===null||oa===void 0||oa.focus()}},Ki=function(Ds){var oa=De($r(Eo)),va=oa;oa.isNaN()?va=lt(Ws,Ds):va=lt(oa,Ds),di!==void 0?Ts(Ws,!1):va.isNaN()||Ts(va,!1)},fs=function(){Fr.current=!0},Ns=function(Ds){var oa=Ds.key,va=Ds.shiftKey;Fr.current=!0,ms.current=va,oa==="Enter"&&(qn.current||(Fr.current=!1),Ki(!1),Ar==null||Ar(Ds)),as!==!1&&!qn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(oa)&&(Vi(oa==="Up"||oa==="ArrowUp"),Ds.preventDefault())},Bs=function(){Fr.current=!1,ms.current=!1},_a=function(){Ki(!1),Mi(!1),Fr.current=!1};return(0,je.o)(function(){Ws.isInvalidate()||Ts(Ws,!1)},[co]),(0,je.o)(function(){var oo=De(di);Ua(oo);var Ds=De($r(Eo));(!oo.equals(Ds)||!Fr.current||Di)&&Ts(oo,Fr.current)},[di]),(0,je.o)(function(){Di&&at()},[Eo]),b.createElement("div",{className:f()(xo,br==null?void 0:br.input,Us,(qr={},(0,S.Z)(qr,"".concat(xo,"-focused"),wi),(0,S.Z)(qr,"".concat(xo,"-disabled"),rn),(0,S.Z)(qr,"".concat(xo,"-readonly"),Qn),(0,S.Z)(qr,"".concat(xo,"-not-a-number"),Ws.isNaN()),(0,S.Z)(qr,"".concat(xo,"-out-of-range"),!Ws.isInvalidate()&&!Ne(Ws)),qr)),style:zn,onFocus:function(){Mi(!0)},onBlur:_a,onKeyDown:Ns,onKeyUp:Bs,onCompositionStart:jn,onCompositionEnd:Cr,onBeforeInput:fs},pn&&b.createElement(Bn,{prefixCls:xo,upNode:Xr,downNode:ao,upDisabled:ui,downDisabled:Xt,onStep:Vi}),b.createElement("div",{className:"".concat(Ei,"-wrap")},b.createElement("input",(0,A.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Kn,"aria-valuemax":Or,"aria-valuenow":Ws.isInvalidate()?null:Ws.toString(),step:Er},Gn,{ref:(0,we.sQ)(In,Vr),className:Ei,value:Eo,onChange:ki,disabled:rn,readOnly:Qn}))))}),ve=b.forwardRef(function(_n,Vr){var qr=_n.disabled,Ui=_n.style,xo=_n.prefixCls,Us=_n.value,zn=_n.prefix,Kn=_n.suffix,Or=_n.addonBefore,mi=_n.addonAfter,Er=_n.classes,ti=_n.className,di=_n.classNames,rn=(0,te.Z)(_n,To),Qn=b.useRef(null),Xr=function(as){Qn.current&&(0,ii.nH)(Qn.current,as)};return b.createElement(ge.Q,{inputElement:b.createElement(hs,(0,A.Z)({prefixCls:xo,disabled:qr,classNames:di,ref:(0,we.sQ)(Qn,Vr)},rn)),className:ti,triggerFocus:Xr,prefixCls:xo,value:Us,disabled:qr,style:Ui,prefix:zn,suffix:Kn,addonAfter:mi,addonBefore:Or,classes:Er,classNames:di,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});ve.displayName="InputNumber";var So=ve,ho=So,go=m(9708),ji=m(53124),No=m(94740),dn=m(98866),Ve=m(98675),yt=m(65223),Ct=m(4173),Wt=m(47673),sn=m(14747),Mt=m(80110),Tt=m(67968),xt=m(45503);const Ht=(_n,Vr)=>{let{componentCls:qr,borderRadiusSM:Ui,borderRadiusLG:xo}=_n;const Us=Vr==="lg"?xo:Ui;return{[`&-${Vr}`]:{[`${qr}-handler-wrap`]:{borderStartEndRadius:Us,borderEndEndRadius:Us},[`${qr}-handler-up`]:{borderStartEndRadius:Us},[`${qr}-handler-down`]:{borderEndEndRadius:Us}}}},Vn=_n=>{const{componentCls:Vr,lineWidth:qr,lineType:Ui,colorBorder:xo,borderRadius:Us,fontSizeLG:zn,controlHeightLG:Kn,controlHeightSM:Or,colorError:mi,paddingInlineSM:Er,colorTextDescription:ti,motionDurationMid:di,handleHoverColor:rn,paddingInline:Qn,paddingBlock:Xr,handleBg:ao,handleActiveBg:as,colorTextDisabled:Bt,borderRadiusSM:pn,borderRadiusLG:br,controlWidth:Jr,handleVisible:vi,handleBorderColor:Di}=_n;return[{[Vr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),(0,Wt.ik)(_n)),(0,Wt.bi)(_n,Vr)),{display:"inline-block",width:Jr,margin:0,padding:0,border:`${qr}px ${Ui} ${xo}`,borderRadius:Us,"&-rtl":{direction:"rtl",[`${Vr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:zn,borderRadius:br,[`input${Vr}-input`]:{height:Kn-2*qr}},"&-sm":{padding:0,borderRadius:pn,[`input${Vr}-input`]:{height:Or-2*qr,padding:`0 ${Er}px`}},"&-out-of-range":{[`${Vr}-input-wrap`]:{input:{color:mi}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),(0,Wt.s7)(_n)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Vr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Vr}-group-addon`]:{borderRadius:br,fontSize:_n.fontSizeLG}},"&-sm":{[`${Vr}-group-addon`]:{borderRadius:pn}},[`${Vr}-wrapper-disabled > ${Vr}-group-addon`]:Object.assign({},(0,Wt.Xy)(_n))}}),[`&-disabled ${Vr}-input`]:{cursor:"not-allowed"},[Vr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),{width:"100%",padding:`${Xr}px ${Qn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Us,outline:0,transition:`all ${di} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Wt.nz)(_n.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Vr]:Object.assign(Object.assign(Object.assign({[`&:hover ${Vr}-handler-wrap, &-focused ${Vr}-handler-wrap`]:{opacity:1},[`${Vr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:_n.handleWidth,height:"100%",background:ao,borderStartStartRadius:0,borderStartEndRadius:Us,borderEndEndRadius:Us,borderEndStartRadius:0,opacity:vi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${di} linear ${di}`,[`${Vr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${Vr}-handler-up-inner, - ${Vr}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:_n.handleFontSize}}},[`${Vr}-handler`]:{height:"50%",overflow:"hidden",color:ti,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${qr}px ${Ui} ${Di}`,transition:`all ${di} linear`,"&:active":{background:as},"&:hover":{height:"60%",[` - ${Vr}-handler-up-inner, - ${Vr}-handler-down-inner - `]:{color:rn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,sn.Ro)()),{color:ti,transition:`all ${di} linear`,userSelect:"none"})},[`${Vr}-handler-up`]:{borderStartEndRadius:Us},[`${Vr}-handler-down`]:{borderBlockStart:`${qr}px ${Ui} ${Di}`,borderEndEndRadius:Us}},Ht(_n,"lg")),Ht(_n,"sm")),{"&-disabled, &-readonly":{[`${Vr}-handler-wrap`]:{display:"none"},[`${Vr}-input`]:{color:"inherit"}},[` - ${Vr}-handler-up-disabled, - ${Vr}-handler-down-disabled + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${Lr.controlOutlineWidth}px ${Lr.controlOutline}`},output:{display:"block",paddingTop:15,color:Lr.colorText,fontSize:Lr.fontSize,lineHeight:Lr.lineHeight}}),_e=(Lr,Ei)=>{const{formItemCls:hn}=Lr;return{[hn]:{[`${hn}-label > label`]:{height:Ei},[`${hn}-control-input`]:{minHeight:Ei}}}},be=Lr=>{const{componentCls:Ei}=Lr;return{[Lr.componentCls]:Object.assign(Object.assign(Object.assign({},(0,S.Wf)(Lr)),fe(Lr)),{[`${Ei}-text`]:{display:"inline-block",paddingInlineEnd:Lr.paddingSM},"&-small":Object.assign({},_e(Lr,Lr.controlHeightSM)),"&-large":Object.assign({},_e(Lr,Lr.controlHeightLG))})}},xe=Lr=>{const{formItemCls:Ei,iconCls:hn,componentCls:Tn,rootPrefixCls:ar,labelRequiredMarkColor:ft,labelColor:wt,labelFontSize:At,labelHeight:Ye,labelColonMarginInlineStart:Et,labelColonMarginInlineEnd:Wt,itemMarginBottom:vn}=Lr;return{[Ei]:Object.assign(Object.assign({},(0,S.Wf)(Lr)),{marginBottom:vn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${ar}-row`]:{display:"none"},"&-has-warning":{[`${Ei}-split`]:{color:Lr.colorError}},"&-has-error":{[`${Ei}-split`]:{color:Lr.colorWarning}},[`${Ei}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Lr.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ye,color:wt,fontSize:At,[`> ${hn}`]:{fontSize:Lr.fontSize,verticalAlign:"top"},[`&${Ei}-required:not(${Ei}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Lr.marginXXS,color:ft,fontSize:Lr.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Tn}-hide-required-mark &`]:{display:"none"}},[`${Ei}-optional`]:{display:"inline-block",marginInlineStart:Lr.marginXXS,color:Lr.colorTextDescription,[`${Tn}-hide-required-mark &`]:{display:"none"}},[`${Ei}-tooltip`]:{color:Lr.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Lr.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Et,marginInlineEnd:Wt},[`&${Ei}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ei}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ar}-col-'"]):not([class*="' ${ar}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Lr.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ei]:{"&-explain, &-extra":{clear:"both",color:Lr.colorTextDescription,fontSize:Lr.fontSize,lineHeight:Lr.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Lr.controlHeightSM,transition:`color ${Lr.motionDurationMid} ${Lr.motionEaseOut}`},"&-explain":{"&-error":{color:Lr.colorError},"&-warning":{color:Lr.colorWarning}}},[`&-with-help ${Ei}-explain`]:{height:"auto",opacity:1},[`${Ei}-feedback-icon`]:{fontSize:Lr.fontSize,textAlign:"center",visibility:"visible",animationName:g.kr,animationDuration:Lr.motionDurationMid,animationTimingFunction:Lr.motionEaseOutBack,pointerEvents:"none","&-success":{color:Lr.colorSuccess},"&-error":{color:Lr.colorError},"&-warning":{color:Lr.colorWarning},"&-validating":{color:Lr.colorPrimary}}})}},Xe=Lr=>{const{componentCls:Ei,formItemCls:hn}=Lr;return{[`${Ei}-horizontal`]:{[`${hn}-label`]:{flexGrow:0},[`${hn}-control`]:{flex:"1 1 0",minWidth:0},[`${hn}-label[class$='-24'], ${hn}-label[class*='-24 ']`]:{[`& + ${hn}-control`]:{minWidth:"unset"}}}}},We=Lr=>{const{componentCls:Ei,formItemCls:hn}=Lr;return{[`${Ei}-inline`]:{display:"flex",flexWrap:"wrap",[hn]:{flex:"none",marginInlineEnd:Lr.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${hn}-label, + > ${hn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${hn}-label`]:{flex:"none"},[`${Ei}-text`]:{display:"inline-block"},[`${hn}-has-feedback`]:{display:"inline-block"}}}}},dt=Lr=>({padding:Lr.verticalLabelPadding,margin:Lr.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=Lr=>{const{componentCls:Ei,formItemCls:hn,rootPrefixCls:Tn}=Lr;return{[`${hn} ${hn}-label`]:dt(Lr),[`${Ei}:not(${Ei}-inline)`]:{[hn]:{flexWrap:"wrap",[`${hn}-label, ${hn}-control`]:{[`&:not([class*=" ${Tn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Se=Lr=>{const{componentCls:Ei,formItemCls:hn,rootPrefixCls:Tn}=Lr;return{[`${Ei}-vertical`]:{[hn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ei}-item-control`]:{width:"100%"}}},[`${Ei}-vertical ${hn}-label, + .${Tn}-col-24${hn}-label, + .${Tn}-col-xl-24${hn}-label`]:dt(Lr),[`@media (max-width: ${Lr.screenXSMax}px)`]:[Me(Lr),{[Ei]:{[`.${Tn}-col-xs-24${hn}-label`]:dt(Lr)}}],[`@media (max-width: ${Lr.screenSMMax}px)`]:{[Ei]:{[`.${Tn}-col-sm-24${hn}-label`]:dt(Lr)}},[`@media (max-width: ${Lr.screenMDMax}px)`]:{[Ei]:{[`.${Tn}-col-md-24${hn}-label`]:dt(Lr)}},[`@media (max-width: ${Lr.screenLGMax}px)`]:{[Ei]:{[`.${Tn}-col-lg-24${hn}-label`]:dt(Lr)}}}},ze=(Lr,Ei)=>(0,k.TS)(Lr,{formItemCls:`${Lr.componentCls}-item`,rootPrefixCls:Ei});var De=(0,K.Z)("Form",(Lr,Ei)=>{let{rootPrefixCls:hn}=Ei;const Tn=ze(Lr,hn);return[be(Tn),xe(Tn),ae(Tn),Xe(Tn),We(Tn),Se(Tn),(0,T.Z)(Tn),g.kr]},Lr=>({labelRequiredMarkColor:Lr.colorError,labelColor:Lr.colorTextHeading,labelFontSize:Lr.fontSize,labelHeight:Lr.controlHeight,labelColonMarginInlineStart:Lr.marginXXS/2,labelColonMarginInlineEnd:Lr.marginXS,itemMarginBottom:Lr.marginLG,verticalLabelPadding:`0 0 ${Lr.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ke=[];function $e(Lr,Ei,hn){let Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Lr=="string"?Lr:`${Ei}-${Tn}`,error:Lr,errorStatus:hn}}var tt=Lr=>{let{help:Ei,helpStatus:hn,errors:Tn=ke,warnings:ar=ke,className:ft,fieldId:wt,onVisibleChanged:At}=Lr;const{prefixCls:Ye}=B.useContext(O.Rk),Et=`${Ye}-item-explain`,[,Wt]=De(Ye),vn=(0,B.useMemo)(()=>(0,V.Z)(Ye),[Ye]),Er=L(Tn),Gr=L(ar),Gi=B.useMemo(()=>Ei!=null?[$e(Ei,"help",hn)]:[].concat((0,v.Z)(Er.map((Bi,ms)=>$e(Bi,"error","error",ms))),(0,v.Z)(Gr.map((Bi,ms)=>$e(Bi,"warning","warning",ms)))),[Ei,hn,Er,Gr]),ko={};return wt&&(ko.id=`${wt}_help`),B.createElement(b.ZP,{motionDeadline:vn.motionDeadline,motionName:`${Ye}-show-help`,visible:!!Gi.length,onVisibleChanged:At},Bi=>{const{className:ms,style:ps}=Bi;return B.createElement("div",Object.assign({},ko,{className:w()(Et,ms,ft,Wt),style:ps,role:"alert"}),B.createElement(b.V4,Object.assign({keys:Gi},(0,V.Z)(Ye),{motionName:`${Ye}-show-help-item`,component:!1}),Js=>{const{key:Hs,error:Po,errorStatus:zs,className:ma,style:va}=Js;return B.createElement("div",{key:Hs,className:w()(ma,{[`${Et}-${zs}`]:zs}),style:va},Po)}))})},Oe=_(43589),Xt=_(53124),Ft=_(98866),ot=_(97647),xt=_(98675);const ut=Lr=>typeof Lr=="object"&&Lr!=null&&Lr.nodeType===1,$t=(Lr,Ei)=>(!Ei||Lr!=="hidden")&&Lr!=="visible"&&Lr!=="clip",_t=(Lr,Ei)=>{if(Lr.clientHeight{const ar=(ft=>{if(!ft.ownerDocument||!ft.ownerDocument.defaultView)return null;try{return ft.ownerDocument.defaultView.frameElement}catch(wt){return null}})(Tn);return!!ar&&(ar.clientHeightftEi||ft>Lr&&wt=Ei&&At>=hn?ft-Lr-Tn:wt>Ei&&Athn?wt-Ei+ar:0,Wn=Lr=>{const Ei=Lr.parentElement;return Ei==null?Lr.getRootNode().host||null:Ei},$r=(Lr,Ei)=>{var hn,Tn,ar,ft;if(typeof document=="undefined")return[];const{scrollMode:wt,block:At,inline:Ye,boundary:Et,skipOverflowHiddenElements:Wt}=Ei,vn=typeof Et=="function"?Et:Ko=>Ko!==Et;if(!ut(Lr))throw new TypeError("Invalid target");const Er=document.scrollingElement||document.documentElement,Gr=[];let Gi=Lr;for(;ut(Gi)&&vn(Gi);){if(Gi=Wn(Gi),Gi===Er){Gr.push(Gi);break}Gi!=null&&Gi===document.body&&_t(Gi)&&!_t(document.documentElement)||Gi!=null&&_t(Gi,Wt)&&Gr.push(Gi)}const ko=(Tn=(hn=window.visualViewport)==null?void 0:hn.width)!=null?Tn:innerWidth,Bi=(ft=(ar=window.visualViewport)==null?void 0:ar.height)!=null?ft:innerHeight,{scrollX:ms,scrollY:ps}=window,{height:Js,width:Hs,top:Po,right:zs,bottom:ma,left:va}=Lr.getBoundingClientRect(),{top:El,right:Dl,bottom:Ns,left:Ca}=(Ko=>{const As=window.getComputedStyle(Ko);return{top:parseFloat(As.scrollMarginTop)||0,right:parseFloat(As.scrollMarginRight)||0,bottom:parseFloat(As.scrollMarginBottom)||0,left:parseFloat(As.scrollMarginLeft)||0}})(Lr);let vl=At==="start"||At==="nearest"?Po-El:At==="end"?ma+Ns:Po+Js/2-El+Ns,ds=Ye==="center"?va+Hs/2-Ca+Dl:Ye==="end"?zs+Dl:va-Ca;const io=[];for(let Ko=0;Ko=0&&va>=0&&ma<=Bi&&zs<=ko&&Po>=zu&&ma<=vc&&va>=ec&&zs<=Ac)return io;const qu=getComputedStyle(As),Uu=parseInt(qu.borderLeftWidth,10),zn=parseInt(qu.borderTopWidth,10),ur=parseInt(qu.borderRightWidth,10),Zr=parseInt(qu.borderBottomWidth,10);let Jr=0,_i=0;const so="offsetWidth"in As?As.offsetWidth-As.clientWidth-Uu-ur:0,Ui="offsetHeight"in As?As.offsetHeight-As.clientHeight-zn-Zr:0,hs="offsetWidth"in As?As.offsetWidth===0?0:Ga/As.offsetWidth:0,ra="offsetHeight"in As?As.offsetHeight===0?0:ks/As.offsetHeight:0;if(Er===As)Jr=At==="start"?vl:At==="end"?vl-Bi:At==="nearest"?bn(ps,ps+Bi,Bi,zn,Zr,ps+vl,ps+vl+Js,Js):vl-Bi/2,_i=Ye==="start"?ds:Ye==="center"?ds-ko/2:Ye==="end"?ds-ko:bn(ms,ms+ko,ko,Uu,ur,ms+ds,ms+ds+Hs,Hs),Jr=Math.max(0,Jr+ps),_i=Math.max(0,_i+ms);else{Jr=At==="start"?vl-zu-zn:At==="end"?vl-vc+Zr+Ui:At==="nearest"?bn(zu,vc,ks,zn,Zr+Ui,vl,vl+Js,Js):vl-(zu+ks/2)+Ui/2,_i=Ye==="start"?ds-ec-Uu:Ye==="center"?ds-(ec+Ga/2)+so/2:Ye==="end"?ds-Ac+ur+so:bn(ec,Ac,Ga,Uu,ur+so,ds,ds+Hs,Hs);const{scrollLeft:Ka,scrollTop:ul}=As;Jr=ra===0?0:Math.max(0,Math.min(ul+Jr/ra,As.scrollHeight-ks/ra+Ui)),_i=hs===0?0:Math.max(0,Math.min(Ka+_i/hs,As.scrollWidth-Ga/hs+so)),vl+=ul-Jr,ds+=Ka-_i}io.push({el:As,top:Jr,left:_i})}return io},wi=Lr=>Lr===!1?{block:"end",inline:"nearest"}:(Ei=>Ei===Object(Ei)&&Object.keys(Ei).length!==0)(Lr)?Lr:{block:"start",inline:"nearest"};function oo(Lr,Ei){if(!Lr.isConnected||!(ar=>{let ft=ar;for(;ft&&ft.parentNode;){if(ft.parentNode===document)return!0;ft=ft.parentNode instanceof ShadowRoot?ft.parentNode.host:ft.parentNode}return!1})(Lr))return;const hn=(ar=>{const ft=window.getComputedStyle(ar);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(Lr);if((ar=>typeof ar=="object"&&typeof ar.behavior=="function")(Ei))return Ei.behavior($r(Lr,Ei));const Tn=typeof Ei=="boolean"||Ei==null?void 0:Ei.behavior;for(const{el:ar,top:ft,left:wt}of $r(Lr,wi(Ei))){const At=ft-hn.top+hn.bottom,Ye=wt-hn.left+hn.right;ar.scroll({top:At,left:Ye,behavior:Tn})}}const Mo=["parentNode"],Ti="form_item";function Hr(Lr){return Lr===void 0||Lr===!1?[]:Array.isArray(Lr)?Lr:[Lr]}function Ho(Lr,Ei){if(!Lr.length)return;const hn=Lr.join("_");return Ei?`${Ei}_${hn}`:Mo.includes(hn)?`${Ti}_${hn}`:hn}function Ss(Lr,Ei,hn,Tn,ar,ft){let wt=Tn;return ft!==void 0?wt=ft:hn.validating?wt="validating":Lr.length?wt="error":Ei.length?wt="warning":(hn.touched||ar&&hn.validated)&&(wt="success"),wt}function Pe(Lr){return Hr(Lr).join("_")}function qo(Lr){const[Ei]=(0,Oe.cI)(),hn=B.useRef({}),Tn=B.useMemo(()=>Lr!=null?Lr:Object.assign(Object.assign({},Ei),{__INTERNAL__:{itemRef:ar=>ft=>{const wt=Pe(ar);ft?hn.current[wt]=ft:delete hn.current[wt]}},scrollToField:function(ar){let ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const wt=Hr(ar),At=Ho(wt,Tn.__INTERNAL__.name),Ye=At?document.getElementById(At):null;Ye&&oo(Ye,Object.assign({scrollMode:"if-needed",block:"nearest"},ft))},getFieldInstance:ar=>{const ft=Pe(ar);return hn.current[ft]}}),[Lr,Ei]);return[Tn]}var Ki=_(37920),Do=function(Lr,Ei){var hn={};for(var Tn in Lr)Object.prototype.hasOwnProperty.call(Lr,Tn)&&Ei.indexOf(Tn)<0&&(hn[Tn]=Lr[Tn]);if(Lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Tn=Object.getOwnPropertySymbols(Lr);ar{const hn=B.useContext(Ft.Z),{getPrefixCls:Tn,direction:ar,form:ft}=B.useContext(Xt.E_),{prefixCls:wt,className:At,rootClassName:Ye,size:Et,disabled:Wt=hn,form:vn,colon:Er,labelAlign:Gr,labelWrap:Gi,labelCol:ko,wrapperCol:Bi,hideRequiredMark:ms,layout:ps="horizontal",scrollToFirstError:Js,requiredMark:Hs,onFinishFailed:Po,name:zs,style:ma,feedbackIcons:va}=Lr,El=Do(Lr,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Dl=(0,xt.Z)(Et),Ns=B.useContext(Ki.Z),Ca=(0,B.useMemo)(()=>Hs!==void 0?Hs:ft&&ft.requiredMark!==void 0?ft.requiredMark:!ms,[ms,Hs,ft]),vl=Er!=null?Er:ft==null?void 0:ft.colon,ds=Tn("form",wt),[io,Ko]=De(ds),As=w()(ds,`${ds}-${ps}`,{[`${ds}-hide-required-mark`]:Ca===!1,[`${ds}-rtl`]:ar==="rtl",[`${ds}-${Dl}`]:Dl},Ko,ft==null?void 0:ft.className,At,Ye),[ks]=qo(vn),{__INTERNAL__:Ga}=ks;Ga.name=zs;const zu=(0,B.useMemo)(()=>({name:zs,labelAlign:Gr,labelCol:ko,labelWrap:Gi,wrapperCol:Bi,vertical:ps==="vertical",colon:vl,requiredMark:Ca,itemRef:Ga.itemRef,form:ks,feedbackIcons:va}),[zs,Gr,ko,Bi,ps,vl,Ca,ks,va]);B.useImperativeHandle(Ei,()=>ks);const Ac=(ec,qu)=>{if(ec){let Uu={block:"nearest"};typeof ec=="object"&&(Uu=ec),ks.scrollToField(qu,Uu)}},vc=ec=>{if(Po==null||Po(ec),ec.errorFields.length){const qu=ec.errorFields[0].name;if(Js!==void 0){Ac(Js,qu);return}ft&&ft.scrollToFirstError!==void 0&&Ac(ft.scrollToFirstError,qu)}};return io(B.createElement(Ft.n,{disabled:Wt},B.createElement(ot.Z.Provider,{value:Dl},B.createElement(O.RV,{validateMessages:Ns},B.createElement(O.q3.Provider,{value:zu},B.createElement(Oe.ZP,Object.assign({id:zs},El,{name:zs,onFinishFailed:vc,form:ks,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),ma),className:As})))))))};var Mn=B.forwardRef(ai),nt=_(30470),Dt=_(42550),Kt=_(96159),mn=_(27288),kn=_(50344);function an(Lr){if(typeof Lr=="function")return Lr;const Ei=(0,kn.Z)(Lr);return Ei.length<=1?Ei[0]:Ei}const tn=()=>{const{status:Lr,errors:Ei=[],warnings:hn=[]}=(0,B.useContext)(O.aM);return{status:Lr,errors:Ei,warnings:hn}};tn.Context=O.aM;var kt=tn,en=_(75164);function Vn(Lr){const[Ei,hn]=B.useState(Lr),Tn=(0,B.useRef)(null),ar=(0,B.useRef)([]),ft=(0,B.useRef)(!1);B.useEffect(()=>(ft.current=!1,()=>{ft.current=!0,en.Z.cancel(Tn.current),Tn.current=null}),[]);function wt(At){ft.current||(Tn.current===null&&(ar.current=[],Tn.current=(0,en.Z)(()=>{Tn.current=null,hn(Ye=>{let Et=Ye;return ar.current.forEach(Wt=>{Et=Wt(Et)}),Et})})),ar.current.push(At))}return[Ei,wt]}function on(){const{itemRef:Lr}=B.useContext(O.q3),Ei=B.useRef({});function hn(Tn,ar){const ft=ar&&typeof ar=="object"&&ar.ref,wt=Tn.join("_");return(Ei.current.name!==wt||Ei.current.originRef!==ft)&&(Ei.current.name=wt,Ei.current.originRef=ft,Ei.current.ref=(0,Dt.sQ)(Lr(Tn),ft)),Ei.current.ref}return hn}var Dr=_(5110),oi=_(8410),Ii=_(98423),jr=_(74443),Uo=(0,B.createContext)({});const Fn=Lr=>{const{componentCls:Ei}=Lr;return{[Ei]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Qr=Lr=>{const{componentCls:Ei}=Lr;return{[Ei]:{position:"relative",maxWidth:"100%",minHeight:1}}},ci=(Lr,Ei)=>{const{componentCls:hn,gridColumns:Tn}=Lr,ar={};for(let ft=Tn;ft>=0;ft--)ft===0?(ar[`${hn}${Ei}-${ft}`]={display:"none"},ar[`${hn}-push-${ft}`]={insetInlineStart:"auto"},ar[`${hn}-pull-${ft}`]={insetInlineEnd:"auto"},ar[`${hn}${Ei}-push-${ft}`]={insetInlineStart:"auto"},ar[`${hn}${Ei}-pull-${ft}`]={insetInlineEnd:"auto"},ar[`${hn}${Ei}-offset-${ft}`]={marginInlineStart:0},ar[`${hn}${Ei}-order-${ft}`]={order:0}):(ar[`${hn}${Ei}-${ft}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${ft/Tn*100}%`,maxWidth:`${ft/Tn*100}%`}],ar[`${hn}${Ei}-push-${ft}`]={insetInlineStart:`${ft/Tn*100}%`},ar[`${hn}${Ei}-pull-${ft}`]={insetInlineEnd:`${ft/Tn*100}%`},ar[`${hn}${Ei}-offset-${ft}`]={marginInlineStart:`${ft/Tn*100}%`},ar[`${hn}${Ei}-order-${ft}`]={order:ft});return ar},ji=(Lr,Ei)=>ci(Lr,Ei),cr=(Lr,Ei,hn)=>({[`@media (min-width: ${Ei}px)`]:Object.assign({},ji(Lr,hn))}),Qn=(0,K.Z)("Grid",Lr=>[Fn(Lr)]),Vt=(0,K.Z)("Grid",Lr=>{const Ei=(0,k.TS)(Lr,{gridColumns:24}),hn={"-sm":Ei.screenSMMin,"-md":Ei.screenMDMin,"-lg":Ei.screenLGMin,"-xl":Ei.screenXLMin,"-xxl":Ei.screenXXLMin};return[Qr(Ei),ji(Ei,""),ji(Ei,"-xs"),Object.keys(hn).map(Tn=>cr(Ei,hn[Tn],Tn)).reduce((Tn,ar)=>Object.assign(Object.assign({},Tn),ar),{})]});var Yt=function(Lr,Ei){var hn={};for(var Tn in Lr)Object.prototype.hasOwnProperty.call(Lr,Tn)&&Ei.indexOf(Tn)<0&&(hn[Tn]=Lr[Tn]);if(Lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Tn=Object.getOwnPropertySymbols(Lr);ar{if(typeof Lr=="string"&&Tn(Lr),typeof Lr=="object")for(let ft=0;ft{ar()},[JSON.stringify(Lr),Ei]),hn}var Zn=B.forwardRef((Lr,Ei)=>{const{prefixCls:hn,justify:Tn,align:ar,className:ft,style:wt,children:At,gutter:Ye=0,wrap:Et}=Lr,Wt=Yt(Lr,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:vn,direction:Er}=B.useContext(Xt.E_),[Gr,Gi]=B.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[ko,Bi]=B.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),ms=Tr(ar,ko),ps=Tr(Tn,ko),Js=B.useRef(Ye),Hs=(0,jr.ZP)();B.useEffect(()=>{const Ko=Hs.subscribe(As=>{Bi(As);const ks=Js.current||0;(!Array.isArray(ks)&&typeof ks=="object"||Array.isArray(ks)&&(typeof ks[0]=="object"||typeof ks[1]=="object"))&&Gi(As)});return()=>Hs.unsubscribe(Ko)},[]);const Po=()=>{const Ko=[void 0,void 0];return(Array.isArray(Ye)?Ye:[Ye,void 0]).forEach((ks,Ga)=>{if(typeof ks=="object")for(let zu=0;zu0?El[0]/-2:void 0;Ca&&(Ns.marginLeft=Ca,Ns.marginRight=Ca),[,Ns.rowGap]=El;const[vl,ds]=El,io=B.useMemo(()=>({gutter:[vl,ds],wrap:Et}),[vl,ds,Et]);return ma(B.createElement(Uo.Provider,{value:io},B.createElement("div",Object.assign({},Wt,{className:Dl,style:Object.assign(Object.assign({},Ns),wt),ref:Ei}),At)))}),Ut=function(Lr,Ei){var hn={};for(var Tn in Lr)Object.prototype.hasOwnProperty.call(Lr,Tn)&&Ei.indexOf(Tn)<0&&(hn[Tn]=Lr[Tn]);if(Lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Tn=Object.getOwnPropertySymbols(Lr);ar{const{getPrefixCls:hn,direction:Tn}=B.useContext(Xt.E_),{gutter:ar,wrap:ft}=B.useContext(Uo),{prefixCls:wt,span:At,order:Ye,offset:Et,push:Wt,pull:vn,className:Er,children:Gr,flex:Gi,style:ko}=Lr,Bi=Ut(Lr,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),ms=hn("col",wt),[ps,Js]=Vt(ms);let Hs={};xr.forEach(ma=>{let va={};const El=Lr[ma];typeof El=="number"?va.span=El:typeof El=="object"&&(va=El||{}),delete Bi[ma],Hs=Object.assign(Object.assign({},Hs),{[`${ms}-${ma}-${va.span}`]:va.span!==void 0,[`${ms}-${ma}-order-${va.order}`]:va.order||va.order===0,[`${ms}-${ma}-offset-${va.offset}`]:va.offset||va.offset===0,[`${ms}-${ma}-push-${va.push}`]:va.push||va.push===0,[`${ms}-${ma}-pull-${va.pull}`]:va.pull||va.pull===0,[`${ms}-${ma}-flex-${va.flex}`]:va.flex||va.flex==="auto",[`${ms}-rtl`]:Tn==="rtl"})});const Po=w()(ms,{[`${ms}-${At}`]:At!==void 0,[`${ms}-order-${Ye}`]:Ye,[`${ms}-offset-${Et}`]:Et,[`${ms}-push-${Wt}`]:Wt,[`${ms}-pull-${vn}`]:vn},Er,Hs,Js),zs={};if(ar&&ar[0]>0){const ma=ar[0]/2;zs.paddingLeft=ma,zs.paddingRight=ma}return Gi&&(zs.flex=$n(Gi),ft===!1&&!zs.minWidth&&(zs.minWidth=0)),ps(B.createElement("div",Object.assign({},Bi,{style:Object.assign(Object.assign({},zs),ko),className:Po,ref:Ei}),Gr))});const Qt=Lr=>{const{formItemCls:Ei}=Lr;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ei}-control`]:{display:"flex"}}}};var xn=(0,K.b)(["Form","item-item"],(Lr,Ei)=>{let{rootPrefixCls:hn}=Ei;const Tn=ze(Lr,hn);return[Qt(Tn)]}),qr=Lr=>{const{prefixCls:Ei,status:hn,wrapperCol:Tn,children:ar,errors:ft,warnings:wt,_internalItemRender:At,extra:Ye,help:Et,fieldId:Wt,marginBottom:vn,onErrorVisibleChanged:Er}=Lr,Gr=`${Ei}-item`,Gi=B.useContext(O.q3),ko=Tn||Gi.wrapperCol||{},Bi=w()(`${Gr}-control`,ko.className),ms=B.useMemo(()=>Object.assign({},Gi),[Gi]);delete ms.labelCol,delete ms.wrapperCol;const ps=B.createElement("div",{className:`${Gr}-control-input`},B.createElement("div",{className:`${Gr}-control-input-content`},ar)),Js=B.useMemo(()=>({prefixCls:Ei,status:hn}),[Ei,hn]),Hs=vn!==null||ft.length||wt.length?B.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},B.createElement(O.Rk.Provider,{value:Js},B.createElement(tt,{fieldId:Wt,errors:ft,warnings:wt,help:Et,helpStatus:hn,className:`${Gr}-explain-connected`,onVisibleChanged:Er})),!!vn&&B.createElement("div",{style:{width:0,height:vn}})):null,Po={};Wt&&(Po.id=`${Wt}_extra`);const zs=Ye?B.createElement("div",Object.assign({},Po,{className:`${Gr}-extra`}),Ye):null,ma=At&&At.mark==="pro_table_render"&&At.render?At.render(Lr,{input:ps,errorList:Hs,extra:zs}):B.createElement(B.Fragment,null,ps,Hs,zs);return B.createElement(O.q3.Provider,{value:ms},B.createElement(_o,Object.assign({},ko,{className:Bi}),ma),B.createElement(xn,{prefixCls:Ei}))},Mi=_(87462),zi=_(36688),Yi=_(93771),Si=function(Ei,hn){return B.createElement(Yi.Z,(0,Mi.Z)({},Ei,{ref:hn,icon:zi.Z}))},ni=B.forwardRef(Si),qi=_(88526),Vr=_(10110),ii=_(61781),nr=function(Lr,Ei){var hn={};for(var Tn in Lr)Object.prototype.hasOwnProperty.call(Lr,Tn)&&Ei.indexOf(Tn)<0&&(hn[Tn]=Lr[Tn]);if(Lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Tn=Object.getOwnPropertySymbols(Lr);ar{let{prefixCls:Ei,label:hn,htmlFor:Tn,labelCol:ar,labelAlign:ft,colon:wt,required:At,requiredMark:Ye,tooltip:Et}=Lr;var Wt;const[vn]=(0,Vr.Z)("Form"),{vertical:Er,labelAlign:Gr,labelCol:Gi,labelWrap:ko,colon:Bi}=B.useContext(O.q3);if(!hn)return null;const ms=ar||Gi||{},ps=ft||Gr,Js=`${Ei}-item-label`,Hs=w()(Js,ps==="left"&&`${Js}-left`,ms.className,{[`${Js}-wrap`]:!!ko});let Po=hn;const zs=wt===!0||Bi!==!1&&wt!==!1;zs&&!Er&&typeof hn=="string"&&hn.trim()!==""&&(Po=hn.replace(/[:|:]\s*$/,""));const va=Mr(Et);if(va){const{icon:Ca=B.createElement(ni,null)}=va,vl=nr(va,["icon"]),ds=B.createElement(ii.Z,Object.assign({},vl),B.cloneElement(Ca,{className:`${Ei}-item-tooltip`,title:""}));Po=B.createElement(B.Fragment,null,Po,ds)}const El=Ye==="optional",Dl=typeof Ye=="function";Dl?Po=Ye(Po,{required:!!At}):El&&!At&&(Po=B.createElement(B.Fragment,null,Po,B.createElement("span",{className:`${Ei}-item-optional`,title:""},(vn==null?void 0:vn.optional)||((Wt=qi.Z.Form)===null||Wt===void 0?void 0:Wt.optional))));const Ns=w()({[`${Ei}-item-required`]:At,[`${Ei}-item-required-mark-optional`]:El||Dl,[`${Ei}-item-no-colon`]:!zs});return B.createElement(_o,Object.assign({},ms,{className:Hs}),B.createElement("label",{htmlFor:Tn,className:Ns,title:typeof hn=="string"?hn:""},Po))},ts=_(76278),Wr=_(41322),no=_(26702),Vi=_(22508);const Pn={success:ts.Z,warning:no.Z,error:Wr.Z,validating:Vi.Z};function mi(Lr){let{children:Ei,errors:hn,warnings:Tn,hasFeedback:ar,validateStatus:ft,prefixCls:wt,meta:At,noStyle:Ye}=Lr;const Et=`${wt}-item`,{feedbackIcons:Wt}=B.useContext(O.q3),vn=Ss(hn,Tn,At,null,!!ar,ft),{isFormItemInput:Er,status:Gr,hasFeedback:Gi,feedbackIcon:ko}=B.useContext(O.aM),Bi=B.useMemo(()=>{var ms;let ps;if(ar){const Hs=ar!==!0&&ar.icons||Wt,Po=vn&&((ms=Hs==null?void 0:Hs({status:vn,errors:hn,warnings:Tn}))===null||ms===void 0?void 0:ms[vn]),zs=vn&&Pn[vn];ps=Po!==!1&&zs?B.createElement("span",{className:w()(`${Et}-feedback-icon`,`${Et}-feedback-icon-${vn}`)},Po||B.createElement(zs,null)):null}const Js={status:vn||"",errors:hn,warnings:Tn,hasFeedback:!!ar,feedbackIcon:ps,isFormItemInput:!0};return Ye&&(Js.status=(vn!=null?vn:Gr)||"",Js.isFormItemInput=Er,Js.hasFeedback=!!(ar!=null?ar:Gi),Js.feedbackIcon=ar!==void 0?Js.feedbackIcon:ko),Js},[vn,ar,Ye,Er,Gr]);return B.createElement(O.aM.Provider,{value:Bi},Ei)}var ya=function(Lr,Ei){var hn={};for(var Tn in Lr)Object.prototype.hasOwnProperty.call(Lr,Tn)&&Ei.indexOf(Tn)<0&&(hn[Tn]=Lr[Tn]);if(Lr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Tn=Object.getOwnPropertySymbols(Lr);ar{if(va&&Hs.current){const Ko=getComputedStyle(Hs.current);Ns(parseInt(Ko.marginBottom,10))}},[va,El]);const Ca=Ko=>{Ko||Ns(null)},ds=function(){let Ko=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const As=Ko?Po:Et.errors,ks=Ko?zs:Et.warnings;return Ss(As,ks,Et,"",!!Wt,Ye)}(),io=w()(ps,hn,Tn,{[`${ps}-with-help`]:ma||Po.length||zs.length,[`${ps}-has-feedback`]:ds&&Wt,[`${ps}-has-success`]:ds==="success",[`${ps}-has-warning`]:ds==="warning",[`${ps}-has-error`]:ds==="error",[`${ps}-is-validating`]:ds==="validating",[`${ps}-hidden`]:vn});return B.createElement("div",{className:io,style:ar,ref:Hs},B.createElement(Zn,Object.assign({className:`${ps}-row`},(0,Ii.Z)(ms,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),B.createElement(to,Object.assign({htmlFor:Gr},Lr,{requiredMark:Js,required:Gi!=null?Gi:ko,prefixCls:Ei})),B.createElement(qr,Object.assign({},Lr,Et,{errors:Po,warnings:zs,prefixCls:Ei,status:ds,help:ft,marginBottom:Dl,onErrorVisibleChanged:Ca}),B.createElement(O.qI.Provider,{value:Bi},B.createElement(mi,{prefixCls:Ei,meta:Et,errors:Et.errors,warnings:Et.warnings,hasFeedback:Wt,validateStatus:ds},Er)))),!!Dl&&B.createElement("div",{className:`${ps}-margin-offset`,style:{marginBottom:-Dl}}))}const qs="__SPLIT__",al=null,co=B.memo(Lr=>{let{children:Ei}=Lr;return Ei},(Lr,Ei)=>Lr.value===Ei.value&&Lr.update===Ei.update&&Lr.childProps.length===Ei.childProps.length&&Lr.childProps.every((hn,Tn)=>hn===Ei.childProps[Tn]));function tl(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fl(Lr){const{name:Ei,noStyle:hn,className:Tn,dependencies:ar,prefixCls:ft,shouldUpdate:wt,rules:At,children:Ye,required:Et,label:Wt,messageVariables:vn,trigger:Er="onChange",validateTrigger:Gr,hidden:Gi,help:ko}=Lr,{getPrefixCls:Bi}=B.useContext(Xt.E_),{name:ms}=B.useContext(O.q3),ps=an(Ye),Js=typeof ps=="function",Hs=B.useContext(O.qI),{validateTrigger:Po}=B.useContext(Oe.zb),zs=Gr!==void 0?Gr:Po,ma=Ei!=null,va=Bi("form",ft),[El,Dl]=De(va),Ns=(0,mn.ln)("Form.Item"),Ca=B.useContext(Oe.ZM),vl=B.useRef(),[ds,io]=Vn({}),[Ko,As]=(0,nt.Z)(()=>tl()),ks=Uu=>{const zn=Ca==null?void 0:Ca.getKey(Uu.name);if(As(Uu.destroy?tl():Uu,!0),hn&&ko!==!1&&Hs){let ur=Uu.name;if(Uu.destroy)ur=vl.current||ur;else if(zn!==void 0){const[Zr,Jr]=zn;ur=[Zr].concat((0,v.Z)(Jr)),vl.current=ur}Hs(Uu,ur)}},Ga=(Uu,zn)=>{io(ur=>{const Zr=Object.assign({},ur),_i=[].concat((0,v.Z)(Uu.name.slice(0,-1)),(0,v.Z)(zn)).join(qs);return Uu.destroy?delete Zr[_i]:Zr[_i]=Uu,Zr})},[zu,Ac]=B.useMemo(()=>{const Uu=(0,v.Z)(Ko.errors),zn=(0,v.Z)(Ko.warnings);return Object.values(ds).forEach(ur=>{Uu.push.apply(Uu,(0,v.Z)(ur.errors||[])),zn.push.apply(zn,(0,v.Z)(ur.warnings||[]))}),[Uu,zn]},[ds,Ko.errors,Ko.warnings]),vc=on();function ec(Uu,zn,ur){return hn&&!Gi?B.createElement(mi,{prefixCls:va,hasFeedback:Lr.hasFeedback,validateStatus:Lr.validateStatus,meta:Ko,errors:zu,warnings:Ac,noStyle:!0},Uu):B.createElement(Zs,Object.assign({key:"row"},Lr,{className:w()(Tn,Dl),prefixCls:va,fieldId:zn,isRequired:ur,errors:zu,warnings:Ac,meta:Ko,onSubItemMetaChange:Ga}),Uu)}if(!ma&&!Js&&!ar)return El(ec(ps));let qu={};return typeof Wt=="string"?qu.label=Wt:Ei&&(qu.label=String(Ei)),vn&&(qu=Object.assign(Object.assign({},qu),vn)),El(B.createElement(Oe.gN,Object.assign({},Lr,{messageVariables:qu,trigger:Er,validateTrigger:zs,onMetaChange:ks}),(Uu,zn,ur)=>{const Zr=Hr(Ei).length&&zn?zn.name:[],Jr=Ho(Zr,ms),_i=Et!==void 0?Et:!!(At&&At.some(hs=>{if(hs&&typeof hs=="object"&&hs.required&&!hs.warningOnly)return!0;if(typeof hs=="function"){const ra=hs(ur);return ra&&ra.required&&!ra.warningOnly}return!1})),so=Object.assign({},Uu);let Ui=null;if(Array.isArray(ps)&&ma)Ui=ps;else if(!(Js&&(!(wt||ar)||ma))){if(!(ar&&!Js&&!ma))if((0,Kt.l$)(ps)){const hs=Object.assign(Object.assign({},ps.props),so);if(hs.id||(hs.id=Jr),ko||zu.length>0||Ac.length>0||Lr.extra){const ul=[];(ko||zu.length>0)&&ul.push(`${Jr}_help`),Lr.extra&&ul.push(`${Jr}_extra`),hs["aria-describedby"]=ul.join(" ")}zu.length>0&&(hs["aria-invalid"]="true"),_i&&(hs["aria-required"]="true"),(0,Dt.Yr)(ps)&&(hs.ref=vc(Zr,ps)),new Set([].concat((0,v.Z)(Hr(Er)),(0,v.Z)(Hr(zs)))).forEach(ul=>{hs[ul]=function(){for(var hl,kl,Va,Xu,Na,Aa=arguments.length,ll=new Array(Aa),Pu=0;Pu{var{prefixCls:Ei,children:hn}=Lr,Tn=Fi(Lr,["prefixCls","children"]);const{getPrefixCls:ar}=B.useContext(Xt.E_),ft=ar("form",Ei),wt=B.useMemo(()=>({prefixCls:ft,status:"error"}),[ft]);return B.createElement(Oe.aV,Object.assign({},Tn),(At,Ye,Et)=>B.createElement(O.Rk.Provider,{value:wt},hn(At.map(Wt=>Object.assign(Object.assign({},Wt),{fieldKey:Wt.key})),Ye,{errors:Et.errors,warnings:Et.warnings})))};function ui(){const{form:Lr}=(0,B.useContext)(O.q3);return Lr}const Zo=Mn;Zo.Item=Xi,Zo.List=yr,Zo.ErrorList=tt,Zo.useForm=qo,Zo.useFormInstance=ui,Zo.useWatch=Oe.qo,Zo.Provider=O.RV,Zo.create=()=>{};var ns=Zo},37920:function(gt,Y,_){"use strict";var v=_(67294);Y.Z=(0,v.createContext)(void 0)},25378:function(gt,Y,_){"use strict";var v=_(67294),R=_(8410),w=_(57838),b=_(74443);function B(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const O=(0,v.useRef)({}),L=(0,w.Z)(),S=(0,b.ZP)();return(0,R.Z)(()=>{const g=S.subscribe(T=>{O.current=T,V&&L()});return()=>S.unsubscribe(g)},[]),O.current}Y.Z=B},73360:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Uo}});var v=_(58964),R=_(87462),w=_(67294),b={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"},B=b,V=_(93771),O=function(Qr,ci){return w.createElement(V.Z,(0,R.Z)({},Qr,{ref:ci,icon:B}))},L=w.forwardRef(O),S=_(94184),g=_.n(S),T=_(4942),k=_(71002),K=_(97685),he=_(91),ae=_(15671),fe=_(43144);function _e(){return typeof BigInt=="function"}function be(Fn){return!Fn&&Fn!==0&&!Number.isNaN(Fn)||!String(Fn).trim()}function xe(Fn){var Qr=Fn.trim(),ci=Qr.startsWith("-");ci&&(Qr=Qr.slice(1)),Qr=Qr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Qr.startsWith(".")&&(Qr="0".concat(Qr));var ji=Qr||"0",cr=ji.split("."),Qn=cr[0]||"0",Vt=cr[1]||"0";Qn==="0"&&Vt==="0"&&(ci=!1);var Yt=ci?"-":"";return{negative:ci,negativeStr:Yt,trimStr:ji,integerStr:Qn,decimalStr:Vt,fullStr:"".concat(Yt).concat(ji)}}function Xe(Fn){var Qr=String(Fn);return!Number.isNaN(Number(Qr))&&Qr.includes("e")}function We(Fn){var Qr=String(Fn);if(Xe(Fn)){var ci=Number(Qr.slice(Qr.indexOf("e-")+2)),ji=Qr.match(/\.(\d+)/);return ji!=null&&ji[1]&&(ci+=ji[1].length),ci}return Qr.includes(".")&&Me(Qr)?Qr.length-Qr.indexOf(".")-1:0}function dt(Fn){var Qr=String(Fn);if(Xe(Fn)){if(Fn>Number.MAX_SAFE_INTEGER)return String(_e()?BigInt(Fn).toString():Number.MAX_SAFE_INTEGER);if(Fn0&&arguments[0]!==void 0?arguments[0]:!0;return ci?this.isInvalidate()?"":xe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Fn}(),ze=function(){function Fn(Qr){if((0,ae.Z)(this,Fn),(0,T.Z)(this,"origin",""),(0,T.Z)(this,"number",void 0),(0,T.Z)(this,"empty",void 0),be(Qr)){this.empty=!0;return}this.origin=String(Qr),this.number=Number(Qr)}return(0,fe.Z)(Fn,[{key:"negate",value:function(){return new Fn(-this.toNumber())}},{key:"add",value:function(ci){if(this.isInvalidate())return new Fn(ci);var ji=Number(ci);if(Number.isNaN(ji))return this;var cr=this.number+ji;if(cr>Number.MAX_SAFE_INTEGER)return new Fn(Number.MAX_SAFE_INTEGER);if(crNumber.MAX_SAFE_INTEGER)return new Fn(Number.MAX_SAFE_INTEGER);if(cr0&&arguments[0]!==void 0?arguments[0]:!0;return ci?this.isInvalidate()?"":dt(this.number):this.origin}}]),Fn}();function De(Fn){return _e()?new Se(Fn):new ze(Fn)}function ke(Fn,Qr,ci){var ji=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Fn==="")return"";var cr=xe(Fn),Qn=cr.negativeStr,Vt=cr.integerStr,Yt=cr.decimalStr,En="".concat(Qr).concat(Yt),er="".concat(Qn).concat(Vt);if(ci>=0){var Tr=Number(Yt[ci]);if(Tr>=5&&!ji){var Nr=De(Fn).add("".concat(Qn,"0.").concat("0".repeat(ci)).concat(10-Tr));return ke(Nr.toString(),Qr,ci,ji)}return ci===0?er:"".concat(er).concat(Qr).concat(Yt.padEnd(ci,"0").slice(0,ci))}return En===".0"?er:"".concat(er).concat(En)}var $e=De,Te=_(67656),tt=_(8410),Oe=_(42550),Xt=_(80334);function Ft(Fn,Qr){var ci=(0,w.useRef)(null);function ji(){try{var Qn=Fn.selectionStart,Vt=Fn.selectionEnd,Yt=Fn.value,En=Yt.substring(0,Qn),er=Yt.substring(Vt);ci.current={start:Qn,end:Vt,value:Yt,beforeTxt:En,afterTxt:er}}catch(Tr){}}function cr(){if(Fn&&ci.current&&Qr)try{var Qn=Fn.value,Vt=ci.current,Yt=Vt.beforeTxt,En=Vt.afterTxt,er=Vt.start,Tr=Qn.length;if(Qn.endsWith(En))Tr=Qn.length-ci.current.afterTxt.length;else if(Qn.startsWith(Yt))Tr=Yt.length;else{var Nr=Yt[er-1],Zn=Qn.indexOf(Nr,er-1);Zn!==-1&&(Tr=Zn+1)}Fn.setSelectionRange(Tr,Tr)}catch(Ut){(0,Xt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ut.message))}}return[ji,cr]}var ot=_(31131),xt=function(){var Qr=(0,w.useState)(!1),ci=(0,K.Z)(Qr,2),ji=ci[0],cr=ci[1];return(0,tt.Z)(function(){cr((0,ot.Z)())},[]),ji},ut=xt,$t=_(75164),_t=200,bn=600;function Wn(Fn){var Qr=Fn.prefixCls,ci=Fn.upNode,ji=Fn.downNode,cr=Fn.upDisabled,Qn=Fn.downDisabled,Vt=Fn.onStep,Yt=w.useRef(),En=w.useRef([]),er=w.useRef();er.current=Vt;var Tr=function(){clearTimeout(Yt.current)},Nr=function(xn,Sr){xn.preventDefault(),Tr(),er.current(Sr);function qr(){er.current(Sr),Yt.current=setTimeout(qr,_t)}Yt.current=setTimeout(qr,bn)};w.useEffect(function(){return function(){Tr(),En.current.forEach(function(Qt){return $t.Z.cancel(Qt)})}},[]);var Zn=ut();if(Zn)return null;var Ut="".concat(Qr,"-handler"),$n=g()(Ut,"".concat(Ut,"-up"),(0,T.Z)({},"".concat(Ut,"-up-disabled"),cr)),xr=g()(Ut,"".concat(Ut,"-down"),(0,T.Z)({},"".concat(Ut,"-down-disabled"),Qn)),Br=function(){return En.current.push((0,$t.Z)(Tr))},_o={unselectable:"on",role:"button",onMouseUp:Br,onMouseLeave:Br};return w.createElement("div",{className:"".concat(Ut,"-wrap")},w.createElement("span",(0,R.Z)({},_o,{onMouseDown:function(xn){Nr(xn,!0)},"aria-label":"Increase Value","aria-disabled":cr,className:$n}),ci||w.createElement("span",{unselectable:"on",className:"".concat(Qr,"-handler-up-inner")})),w.createElement("span",(0,R.Z)({},_o,{onMouseDown:function(xn){Nr(xn,!1)},"aria-label":"Decrease Value","aria-disabled":Qn,className:xr}),ji||w.createElement("span",{unselectable:"on",className:"".concat(Qr,"-handler-down-inner")})))}function $r(Fn){var Qr=typeof Fn=="number"?dt(Fn):xe(Fn).fullStr,ci=Qr.includes(".");return ci?xe(Qr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Fn+"0"}var wi=_(87887),oo=function(){var Fn=(0,w.useRef)(0),Qr=function(){$t.Z.cancel(Fn.current)};return(0,w.useEffect)(function(){return Qr},[]),function(ci){Qr(),Fn.current=(0,$t.Z)(function(){ci()})}},Mo=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Ti=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Hr=function(Qr,ci){return Qr||ci.isEmpty()?ci.toString():ci.toNumber()},Ho=function(Qr){var ci=$e(Qr);return ci.isInvalidate()?null:ci},Ss=w.forwardRef(function(Fn,Qr){var ci,ji=Fn.prefixCls,cr=ji===void 0?"rc-input-number":ji,Qn=Fn.className,Vt=Fn.style,Yt=Fn.min,En=Fn.max,er=Fn.step,Tr=er===void 0?1:er,Nr=Fn.defaultValue,Zn=Fn.value,Ut=Fn.disabled,$n=Fn.readOnly,xr=Fn.upHandler,Br=Fn.downHandler,_o=Fn.keyboard,Qt=Fn.controls,xn=Qt===void 0?!0:Qt,Sr=Fn.classNames,qr=Fn.stringMode,Mi=Fn.parser,zi=Fn.formatter,Yi=Fn.precision,Si=Fn.decimalSeparator,ni=Fn.onChange,qi=Fn.onInput,Vr=Fn.onPressEnter,ii=Fn.onStep,nr=Fn.changeOnBlur,Mr=nr===void 0?!0:nr,rr=(0,he.Z)(Fn,Mo),to="".concat(cr,"-input"),ts=w.useRef(null),Wr=w.useState(!1),no=(0,K.Z)(Wr,2),Vi=no[0],Pn=no[1],mi=w.useRef(!1),ya=w.useRef(!1),Zs=w.useRef(!1),qs=w.useState(function(){return $e(Zn!=null?Zn:Nr)}),al=(0,K.Z)(qs,2),co=al[0],tl=al[1];function fl(ma){Zn===void 0&&tl(ma)}var Ai=w.useCallback(function(ma,va){if(!va)return Yi>=0?Yi:Math.max(We(ma),We(Tr))},[Yi,Tr]),Xi=w.useCallback(function(ma){var va=String(ma);if(Mi)return Mi(va);var El=va;return Si&&(El=El.replace(Si,".")),El.replace(/[^\w.-]+/g,"")},[Mi,Si]),Fi=w.useRef(""),No=w.useCallback(function(ma,va){if(zi)return zi(ma,{userTyping:va,input:String(Fi.current)});var El=typeof ma=="number"?dt(ma):ma;if(!va){var Dl=Ai(El,va);if(Me(El)&&(Si||Dl>=0)){var Ns=Si||".";El=ke(El,Ns,Dl)}}return El},[zi,Ai,Si]),yr=w.useState(function(){var ma=Nr!=null?Nr:Zn;return co.isInvalidate()&&["string","number"].includes((0,k.Z)(ma))?Number.isNaN(ma)?"":ma:No(co.toString(),!1)}),ui=(0,K.Z)(yr,2),Zo=ui[0],ns=ui[1];Fi.current=Zo;function Lr(ma,va){ns(No(ma.isInvalidate()?ma.toString(!1):ma.toString(!va),va))}var Ei=w.useMemo(function(){return Ho(En)},[En,Yi]),hn=w.useMemo(function(){return Ho(Yt)},[Yt,Yi]),Tn=w.useMemo(function(){return!Ei||!co||co.isInvalidate()?!1:Ei.lessEquals(co)},[Ei,co]),ar=w.useMemo(function(){return!hn||!co||co.isInvalidate()?!1:co.lessEquals(hn)},[hn,co]),ft=Ft(ts.current,Vi),wt=(0,K.Z)(ft,2),At=wt[0],Ye=wt[1],Et=function(va){return Ei&&!va.lessEquals(Ei)?Ei:hn&&!hn.lessEquals(va)?hn:null},Wt=function(va){return!Et(va)},vn=function(va,El){var Dl=va,Ns=Wt(Dl)||Dl.isEmpty();if(!Dl.isEmpty()&&!El&&(Dl=Et(Dl)||Dl,Ns=!0),!$n&&!Ut&&Ns){var Ca=Dl.toString(),vl=Ai(Ca,El);return vl>=0&&(Dl=$e(ke(Ca,".",vl)),Wt(Dl)||(Dl=$e(ke(Ca,".",vl,!0)))),Dl.equals(co)||(fl(Dl),ni==null||ni(Dl.isEmpty()?null:Hr(qr,Dl)),Zn===void 0&&Lr(Dl,El)),Dl}return co},Er=oo(),Gr=function ma(va){if(At(),Fi.current=va,ns(va),!ya.current){var El=Xi(va),Dl=$e(El);Dl.isNaN()||vn(Dl,!0)}qi==null||qi(va),Er(function(){var Ns=va;Mi||(Ns=va.replace(/。/g,".")),Ns!==va&&ma(Ns)})},Gi=function(){ya.current=!0},ko=function(){ya.current=!1,Gr(ts.current.value)},Bi=function(va){Gr(va.target.value)},ms=function(va){var El;if(!(va&&Tn||!va&&ar)){mi.current=!1;var Dl=$e(Zs.current?$r(Tr):Tr);va||(Dl=Dl.negate());var Ns=(co||$e(0)).add(Dl.toString()),Ca=vn(Ns,!1);ii==null||ii(Hr(qr,Ca),{offset:Zs.current?$r(Tr):Tr,type:va?"up":"down"}),(El=ts.current)===null||El===void 0||El.focus()}},ps=function(va){var El=$e(Xi(Zo)),Dl=El;El.isNaN()?Dl=vn(co,va):Dl=vn(El,va),Zn!==void 0?Lr(co,!1):Dl.isNaN()||Lr(Dl,!1)},Js=function(){mi.current=!0},Hs=function(va){var El=va.key,Dl=va.shiftKey;mi.current=!0,Zs.current=Dl,El==="Enter"&&(ya.current||(mi.current=!1),ps(!1),Vr==null||Vr(va)),_o!==!1&&!ya.current&&["Up","ArrowUp","Down","ArrowDown"].includes(El)&&(ms(El==="Up"||El==="ArrowUp"),va.preventDefault())},Po=function(){mi.current=!1,Zs.current=!1},zs=function(){Mr&&ps(!1),Pn(!1),mi.current=!1};return(0,tt.o)(function(){co.isInvalidate()||Lr(co,!1)},[Yi,zi]),(0,tt.o)(function(){var ma=$e(Zn);tl(ma);var va=$e(Xi(Zo));(!ma.equals(va)||!mi.current||zi)&&Lr(ma,mi.current)},[Zn]),(0,tt.o)(function(){zi&&Ye()},[Zo]),w.createElement("div",{className:g()(cr,Sr==null?void 0:Sr.input,Qn,(ci={},(0,T.Z)(ci,"".concat(cr,"-focused"),Vi),(0,T.Z)(ci,"".concat(cr,"-disabled"),Ut),(0,T.Z)(ci,"".concat(cr,"-readonly"),$n),(0,T.Z)(ci,"".concat(cr,"-not-a-number"),co.isNaN()),(0,T.Z)(ci,"".concat(cr,"-out-of-range"),!co.isInvalidate()&&!Wt(co)),ci)),style:Vt,onFocus:function(){Pn(!0)},onBlur:zs,onKeyDown:Hs,onKeyUp:Po,onCompositionStart:Gi,onCompositionEnd:ko,onBeforeInput:Js},xn&&w.createElement(Wn,{prefixCls:cr,upNode:xr,downNode:Br,upDisabled:Tn,downDisabled:ar,onStep:ms}),w.createElement("div",{className:"".concat(to,"-wrap")},w.createElement("input",(0,R.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Yt,"aria-valuemax":En,"aria-valuenow":co.isInvalidate()?null:co.toString(),step:Tr},rr,{ref:(0,Oe.sQ)(ts,Qr),className:to,value:Zo,onChange:Bi,disabled:Ut,readOnly:$n}))))}),Pe=w.forwardRef(function(Fn,Qr){var ci=Fn.disabled,ji=Fn.style,cr=Fn.prefixCls,Qn=Fn.value,Vt=Fn.prefix,Yt=Fn.suffix,En=Fn.addonBefore,er=Fn.addonAfter,Tr=Fn.classes,Nr=Fn.className,Zn=Fn.classNames,Ut=(0,he.Z)(Fn,Ti),$n=w.useRef(null),xr=function(_o){$n.current&&(0,wi.nH)($n.current,_o)};return w.createElement(Te.Q,{inputElement:w.createElement(Ss,(0,R.Z)({prefixCls:cr,disabled:ci,classNames:Zn,ref:(0,Oe.sQ)($n,Qr)},Ut)),className:Nr,triggerFocus:xr,prefixCls:cr,value:Qn,disabled:ci,style:ji,prefix:Vt,suffix:Yt,addonAfter:er,addonBefore:En,classes:Tr,classNames:Zn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Pe.displayName="InputNumber";var qo=Pe,Ki=qo,Do=_(9708),ai=_(53124),$o=_(94740),Mn=_(98866),nt=_(98675),Dt=_(65223),Kt=_(4173),mn=_(47673),kn=_(14747),an=_(80110),tn=_(67968),kt=_(45503);const en=(Fn,Qr)=>{let{componentCls:ci,borderRadiusSM:ji,borderRadiusLG:cr}=Fn;const Qn=Qr==="lg"?cr:ji;return{[`&-${Qr}`]:{[`${ci}-handler-wrap`]:{borderStartEndRadius:Qn,borderEndEndRadius:Qn},[`${ci}-handler-up`]:{borderStartEndRadius:Qn},[`${ci}-handler-down`]:{borderEndEndRadius:Qn}}}},Vn=Fn=>{const{componentCls:Qr,lineWidth:ci,lineType:ji,colorBorder:cr,borderRadius:Qn,fontSizeLG:Vt,controlHeightLG:Yt,controlHeightSM:En,colorError:er,paddingInlineSM:Tr,colorTextDescription:Nr,motionDurationMid:Zn,handleHoverColor:Ut,paddingInline:$n,paddingBlock:xr,handleBg:Br,handleActiveBg:_o,colorTextDisabled:Qt,borderRadiusSM:xn,borderRadiusLG:Sr,controlWidth:qr,handleVisible:Mi,handleBorderColor:zi}=Fn;return[{[Qr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,kn.Wf)(Fn)),(0,mn.ik)(Fn)),(0,mn.bi)(Fn,Qr)),{display:"inline-block",width:qr,margin:0,padding:0,border:`${ci}px ${ji} ${cr}`,borderRadius:Qn,"&-rtl":{direction:"rtl",[`${Qr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vt,borderRadius:Sr,[`input${Qr}-input`]:{height:Yt-2*ci}},"&-sm":{padding:0,borderRadius:xn,[`input${Qr}-input`]:{height:En-2*ci,padding:`0 ${Tr}px`}},"&-out-of-range":{[`${Qr}-input-wrap`]:{input:{color:er}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,kn.Wf)(Fn)),(0,mn.s7)(Fn)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Qr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Qr}-group-addon`]:{borderRadius:Sr,fontSize:Fn.fontSizeLG}},"&-sm":{[`${Qr}-group-addon`]:{borderRadius:xn}},[`${Qr}-wrapper-disabled > ${Qr}-group-addon`]:Object.assign({},(0,mn.Xy)(Fn))}}),[`&-disabled ${Qr}-input`]:{cursor:"not-allowed"},[Qr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,kn.Wf)(Fn)),{width:"100%",padding:`${xr}px ${$n}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qn,outline:0,transition:`all ${Zn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,mn.nz)(Fn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Qr]:Object.assign(Object.assign(Object.assign({[`&:hover ${Qr}-handler-wrap, &-focused ${Qr}-handler-wrap`]:{opacity:1},[`${Qr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Fn.handleWidth,height:"100%",background:Br,borderStartStartRadius:0,borderStartEndRadius:Qn,borderEndEndRadius:Qn,borderEndStartRadius:0,opacity:Mi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Zn} linear ${Zn}`,[`${Qr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${Qr}-handler-up-inner, + ${Qr}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:Fn.handleFontSize}}},[`${Qr}-handler`]:{height:"50%",overflow:"hidden",color:Nr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ci}px ${ji} ${zi}`,transition:`all ${Zn} linear`,"&:active":{background:_o},"&:hover":{height:"60%",[` + ${Qr}-handler-up-inner, + ${Qr}-handler-down-inner + `]:{color:Ut}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,kn.Ro)()),{color:Nr,transition:`all ${Zn} linear`,userSelect:"none"})},[`${Qr}-handler-up`]:{borderStartEndRadius:Qn},[`${Qr}-handler-down`]:{borderBlockStart:`${ci}px ${ji} ${zi}`,borderEndEndRadius:Qn}},en(Fn,"lg")),en(Fn,"sm")),{"&-disabled, &-readonly":{[`${Qr}-handler-wrap`]:{display:"none"},[`${Qr}-input`]:{color:"inherit"}},[` + ${Qr}-handler-up-disabled, + ${Qr}-handler-down-disabled `]:{cursor:"not-allowed"},[` - ${Vr}-handler-up-disabled:hover &-handler-up-inner, - ${Vr}-handler-down-disabled:hover &-handler-down-inner - `]:{color:Bt}})},{[`${Vr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Vr}-handler-down`]:{borderBlockStartWidth:0}}}]},en=_n=>{const{componentCls:Vr,paddingBlock:qr,paddingInline:Ui,inputAffixPadding:xo,controlWidth:Us,borderRadiusLG:zn,borderRadiusSM:Kn}=_n;return{[`${Vr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Wt.ik)(_n)),(0,Wt.bi)(_n,`${Vr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Us,padding:0,paddingInlineStart:Ui,"&-lg":{borderRadius:zn},"&-sm":{borderRadius:Kn},[`&:not(${Vr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Vr}-disabled`]:{background:"transparent"},[`> div${Vr}`]:{width:"100%",border:"none",outline:"none",[`&${Vr}-focused`]:{boxShadow:"none !important"}},[`input${Vr}-input`]:{padding:`${qr}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Vr}-handler-wrap`]:{zIndex:2},[Vr]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:xo},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ui,marginInlineStart:xo}}})}};var fr=(0,Tt.Z)("InputNumber",_n=>{const Vr=(0,xt.TS)(_n,(0,Wt.e5)(_n));return[Vn(Vr),en(Vr),(0,Mt.c)(Vr)]},_n=>Object.assign(Object.assign({},(0,Wt.TM)(_n)),{controlWidth:90,handleWidth:_n.controlHeightSM-_n.lineWidth*2,handleFontSize:_n.fontSize/2,handleVisible:"auto",handleActiveBg:_n.colorFillAlter,handleBg:_n.colorBgContainer,handleHoverColor:_n.colorPrimary,handleBorderColor:_n.colorBorder})),Kr=function(_n,Vr){var qr={};for(var Ui in _n)Object.prototype.hasOwnProperty.call(_n,Ui)&&Vr.indexOf(Ui)<0&&(qr[Ui]=_n[Ui]);if(_n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xo=0,Ui=Object.getOwnPropertySymbols(_n);xo{const{getPrefixCls:qr,direction:Ui}=b.useContext(ji.E_),xo=b.useRef(null);b.useImperativeHandle(Vr,()=>xo.current);const{className:Us,rootClassName:zn,size:Kn,disabled:Or,prefixCls:mi,addonBefore:Er,addonAfter:ti,prefix:di,bordered:rn=!0,readOnly:Qn,status:Xr,controls:ao}=_n,as=Kr(_n,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Bt=qr("input-number",mi),[pn,br]=fr(Bt),{compactSize:Jr,compactItemClassnames:vi}=(0,Ct.ri)(Bt,Ui);let Di=b.createElement(I,{className:`${Bt}-handler-up-inner`}),co=b.createElement(y.Z,{className:`${Bt}-handler-down-inner`});const Qr=typeof ao=="boolean"?ao:void 0;typeof ao=="object"&&(Di=typeof ao.upIcon=="undefined"?Di:b.createElement("span",{className:`${Bt}-handler-up-inner`},ao.upIcon),co=typeof ao.downIcon=="undefined"?co:b.createElement("span",{className:`${Bt}-handler-down-inner`},ao.downIcon));const{hasFeedback:oi,status:Zi,isFormItemInput:Ar,feedbackIcon:tn}=b.useContext(yt.aM),Gn=(0,go.F)(Zi,Xr),Ei=(0,Ve.Z)(Fr=>{var qn;return(qn=Kn!=null?Kn:Jr)!==null&&qn!==void 0?qn:Fr}),In=b.useContext(dn.Z),Li=Or!=null?Or:In,nr=f()({[`${Bt}-lg`]:Ei==="large",[`${Bt}-sm`]:Ei==="small",[`${Bt}-rtl`]:Ui==="rtl",[`${Bt}-borderless`]:!rn,[`${Bt}-in-form-item`]:Ar},(0,go.Z)(Bt,Gn),br),wi=`${Bt}-group`,Mi=b.createElement(ho,Object.assign({ref:xo,disabled:Li,className:f()(Us,zn,vi),upHandler:Di,downHandler:co,prefixCls:Bt,readOnly:Qn,controls:Qr,prefix:di,suffix:oi&&tn,addonAfter:ti&&b.createElement(Ct.BR,null,b.createElement(yt.Ux,{override:!0,status:!0},ti)),addonBefore:Er&&b.createElement(Ct.BR,null,b.createElement(yt.Ux,{override:!0,status:!0},Er)),classNames:{input:nr},classes:{affixWrapper:f()((0,go.Z)(`${Bt}-affix-wrapper`,Gn,oi),{[`${Bt}-affix-wrapper-sm`]:Ei==="small",[`${Bt}-affix-wrapper-lg`]:Ei==="large",[`${Bt}-affix-wrapper-rtl`]:Ui==="rtl",[`${Bt}-affix-wrapper-borderless`]:!rn},br),wrapper:f()({[`${wi}-rtl`]:Ui==="rtl",[`${Bt}-wrapper-disabled`]:Li},br),group:f()({[`${Bt}-group-wrapper-sm`]:Ei==="small",[`${Bt}-group-wrapper-lg`]:Ei==="large",[`${Bt}-group-wrapper-rtl`]:Ui==="rtl"},(0,go.Z)(`${Bt}-group-wrapper`,Gn,oi),br)}},as));return pn(Mi)}),si=ri,uo=_n=>b.createElement(No.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(ri,Object.assign({},_n)));si._InternalPanelDoNotUseOrYouWillBeFired=uo;var Qo=si},82586:function(nt,V,m){"use strict";m.d(V,{Z:function(){return fe},n:function(){return he}});var y=m(67294),A=m(41322),b=m(94184),z=m.n(b),k=m(67656),N=m(42550),w=m(9708),I=m(53124),C=m(98866),f=m(98675),S=m(65223),P=m(4173),W=m(72922),te=m(47673);function q(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}var ie=function(ke,Ie){var Be={};for(var be in ke)Object.prototype.hasOwnProperty.call(ke,be)&&Ie.indexOf(be)<0&&(Be[be]=ke[be]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,be=Object.getOwnPropertySymbols(ke);me{var Be;const{prefixCls:be,bordered:me=!0,status:ye,size:_e,disabled:Ce,onBlur:De,onFocus:ge,suffix:je,allowClear:we,addonAfter:Pt,addonBefore:dt,className:He,style:bt,styles:ft,rootClassName:$t,onChange:vt,classNames:yn}=ke,Bn=ie(ke,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Lr,direction:ii,input:gi}=y.useContext(I.E_),no=Lr("input",be),To=(0,y.useRef)(null),[_r,Bo]=(0,te.ZP)(no),{compactSize:hs,compactItemClassnames:ve}=(0,P.ri)(no,ii),So=(0,f.Z)(Vn=>{var en;return(en=_e!=null?_e:hs)!==null&&en!==void 0?en:Vn}),ho=y.useContext(C.Z),go=Ce!=null?Ce:ho,{status:ji,hasFeedback:No,feedbackIcon:dn}=(0,y.useContext)(S.aM),Ve=(0,w.F)(ji,ye),yt=q(ke)||!!No,Ct=(0,y.useRef)(yt),Wt=(0,W.Z)(To,!0),sn=Vn=>{Wt(),De==null||De(Vn)},Mt=Vn=>{Wt(),ge==null||ge(Vn)},Tt=Vn=>{Wt(),vt==null||vt(Vn)},xt=(No||je)&&y.createElement(y.Fragment,null,je,No&&dn);let Ht;return typeof we=="object"&&(we!=null&&we.clearIcon)?Ht=we:we&&(Ht={clearIcon:y.createElement(A.Z,null)}),_r(y.createElement(k.Z,Object.assign({ref:(0,N.sQ)(Ie,To),prefixCls:no,autoComplete:gi==null?void 0:gi.autoComplete},Bn,{disabled:go,onBlur:sn,onFocus:Mt,style:Object.assign(Object.assign({},gi==null?void 0:gi.style),bt),styles:Object.assign(Object.assign({},gi==null?void 0:gi.styles),ft),suffix:xt,allowClear:Ht,className:z()(He,$t,ve,gi==null?void 0:gi.className),onChange:Tt,addonAfter:Pt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},Pt)),addonBefore:dt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},dt)),classNames:Object.assign(Object.assign(Object.assign({},yn),gi==null?void 0:gi.classNames),{input:z()({[`${no}-sm`]:So==="small",[`${no}-lg`]:So==="large",[`${no}-rtl`]:ii==="rtl",[`${no}-borderless`]:!me},!yt&&(0,w.Z)(no,Ve),yn==null?void 0:yn.input,(Be=gi==null?void 0:gi.classNames)===null||Be===void 0?void 0:Be.input,Bo)}),classes:{affixWrapper:z()({[`${no}-affix-wrapper-sm`]:So==="small",[`${no}-affix-wrapper-lg`]:So==="large",[`${no}-affix-wrapper-rtl`]:ii==="rtl",[`${no}-affix-wrapper-borderless`]:!me},(0,w.Z)(`${no}-affix-wrapper`,Ve,No),Bo),wrapper:z()({[`${no}-group-rtl`]:ii==="rtl"},Bo),group:z()({[`${no}-group-wrapper-sm`]:So==="small",[`${no}-group-wrapper-lg`]:So==="large",[`${no}-group-wrapper-rtl`]:ii==="rtl",[`${no}-group-wrapper-disabled`]:go},(0,w.Z)(`${no}-group-wrapper`,Ve,No),Bo)}})))})},22913:function(nt,V,m){"use strict";m.d(V,{Z:function(){return To}});var y=m(41322),A=m(94184),b=m.n(A),z=m(87462),k=m(1413),N=m(4942),w=m(71002),I=m(97685),C=m(91),f=m(74902),S=m(67656),P=m(87887),W=m(21770),te=m(67294),q=m(48555),ie=m(8410),he=m(75164),de=` + ${Qr}-handler-up-disabled:hover &-handler-up-inner, + ${Qr}-handler-down-disabled:hover &-handler-down-inner + `]:{color:Qt}})},{[`${Qr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Qr}-handler-down`]:{borderBlockStartWidth:0}}}]},on=Fn=>{const{componentCls:Qr,paddingBlock:ci,paddingInline:ji,inputAffixPadding:cr,controlWidth:Qn,borderRadiusLG:Vt,borderRadiusSM:Yt}=Fn;return{[`${Qr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,mn.ik)(Fn)),(0,mn.bi)(Fn,`${Qr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Qn,padding:0,paddingInlineStart:ji,"&-lg":{borderRadius:Vt},"&-sm":{borderRadius:Yt},[`&:not(${Qr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Qr}-disabled`]:{background:"transparent"},[`> div${Qr}`]:{width:"100%",border:"none",outline:"none",[`&${Qr}-focused`]:{boxShadow:"none !important"}},[`input${Qr}-input`]:{padding:`${ci}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Qr}-handler-wrap`]:{zIndex:2},[Qr]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:cr},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:ji,marginInlineStart:cr}}})}};var Dr=(0,tn.Z)("InputNumber",Fn=>{const Qr=(0,kt.TS)(Fn,(0,mn.e5)(Fn));return[Vn(Qr),on(Qr),(0,an.c)(Qr)]},Fn=>Object.assign(Object.assign({},(0,mn.TM)(Fn)),{controlWidth:90,handleWidth:Fn.controlHeightSM-Fn.lineWidth*2,handleFontSize:Fn.fontSize/2,handleVisible:"auto",handleActiveBg:Fn.colorFillAlter,handleBg:Fn.colorBgContainer,handleHoverColor:Fn.colorPrimary,handleBorderColor:Fn.colorBorder})),oi=function(Fn,Qr){var ci={};for(var ji in Fn)Object.prototype.hasOwnProperty.call(Fn,ji)&&Qr.indexOf(ji)<0&&(ci[ji]=Fn[ji]);if(Fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cr=0,ji=Object.getOwnPropertySymbols(Fn);cr{const{getPrefixCls:ci,direction:ji}=w.useContext(ai.E_),cr=w.useRef(null);w.useImperativeHandle(Qr,()=>cr.current);const{className:Qn,rootClassName:Vt,size:Yt,disabled:En,prefixCls:er,addonBefore:Tr,addonAfter:Nr,prefix:Zn,bordered:Ut=!0,readOnly:$n,status:xr,controls:Br}=Fn,_o=oi(Fn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Qt=ci("input-number",er),[xn,Sr]=Dr(Qt),{compactSize:qr,compactItemClassnames:Mi}=(0,Kt.ri)(Qt,ji);let zi=w.createElement(L,{className:`${Qt}-handler-up-inner`}),Yi=w.createElement(v.Z,{className:`${Qt}-handler-down-inner`});const Si=typeof Br=="boolean"?Br:void 0;typeof Br=="object"&&(zi=typeof Br.upIcon=="undefined"?zi:w.createElement("span",{className:`${Qt}-handler-up-inner`},Br.upIcon),Yi=typeof Br.downIcon=="undefined"?Yi:w.createElement("span",{className:`${Qt}-handler-down-inner`},Br.downIcon));const{hasFeedback:ni,status:qi,isFormItemInput:Vr,feedbackIcon:ii}=w.useContext(Dt.aM),nr=(0,Do.F)(qi,xr),Mr=(0,nt.Z)(Pn=>{var mi;return(mi=Yt!=null?Yt:qr)!==null&&mi!==void 0?mi:Pn}),rr=w.useContext(Mn.Z),to=En!=null?En:rr,ts=g()({[`${Qt}-lg`]:Mr==="large",[`${Qt}-sm`]:Mr==="small",[`${Qt}-rtl`]:ji==="rtl",[`${Qt}-borderless`]:!Ut,[`${Qt}-in-form-item`]:Vr},(0,Do.Z)(Qt,nr),Sr),Wr=`${Qt}-group`,no=ni&&w.createElement(w.Fragment,null,ii),Vi=w.createElement(Ki,Object.assign({ref:cr,disabled:to,className:g()(Qn,Vt,Mi),upHandler:zi,downHandler:Yi,prefixCls:Qt,readOnly:$n,controls:Si,prefix:Zn,suffix:no,addonAfter:Nr&&w.createElement(Kt.BR,null,w.createElement(Dt.Ux,{override:!0,status:!0},Nr)),addonBefore:Tr&&w.createElement(Kt.BR,null,w.createElement(Dt.Ux,{override:!0,status:!0},Tr)),classNames:{input:ts},classes:{affixWrapper:g()((0,Do.Z)(`${Qt}-affix-wrapper`,nr,ni),{[`${Qt}-affix-wrapper-sm`]:Mr==="small",[`${Qt}-affix-wrapper-lg`]:Mr==="large",[`${Qt}-affix-wrapper-rtl`]:ji==="rtl",[`${Qt}-affix-wrapper-borderless`]:!Ut},Sr),wrapper:g()({[`${Wr}-rtl`]:ji==="rtl",[`${Qt}-wrapper-disabled`]:to},Sr),group:g()({[`${Qt}-group-wrapper-sm`]:Mr==="small",[`${Qt}-group-wrapper-lg`]:Mr==="large",[`${Qt}-group-wrapper-rtl`]:ji==="rtl"},(0,Do.Z)(`${Qt}-group-wrapper`,nr,ni),Sr)}},_o));return xn(Vi)}),jr=Ii,eo=Fn=>w.createElement($o.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},w.createElement(Ii,Object.assign({},Fn)));jr._InternalPanelDoNotUseOrYouWillBeFired=eo;var Uo=jr},82586:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return xe},n:function(){return _e}});var v=_(67294),R=_(41322),w=_(94184),b=_.n(w),B=_(67656),V=_(42550),O=_(9708),L=_(53124),S=_(98866),g=_(98675),T=_(65223),k=_(4173),K=_(72922),he=_(47673);function ae(Xe){return!!(Xe.prefix||Xe.suffix||Xe.allowClear)}var fe=function(Xe,We){var dt={};for(var Me in Xe)Object.prototype.hasOwnProperty.call(Xe,Me)&&We.indexOf(Me)<0&&(dt[Me]=Xe[Me]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Me=Object.getOwnPropertySymbols(Xe);Se{var dt;const{prefixCls:Me,bordered:Se=!0,status:ze,size:De,disabled:ke,onBlur:$e,onFocus:Te,suffix:tt,allowClear:Oe,addonAfter:Xt,addonBefore:Ft,className:ot,style:xt,styles:ut,rootClassName:$t,onChange:_t,classNames:bn}=Xe,Wn=fe(Xe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$r,direction:wi,input:oo}=v.useContext(L.E_),Mo=$r("input",Me),Ti=(0,v.useRef)(null),[Hr,Ho]=(0,he.ZP)(Mo),{compactSize:Ss,compactItemClassnames:Pe}=(0,k.ri)(Mo,wi),qo=(0,g.Z)(Vn=>{var on;return(on=De!=null?De:Ss)!==null&&on!==void 0?on:Vn}),Ki=v.useContext(S.Z),Do=ke!=null?ke:Ki,{status:ai,hasFeedback:$o,feedbackIcon:Mn}=(0,v.useContext)(T.aM),nt=(0,O.F)(ai,ze),Dt=ae(Xe)||!!$o,Kt=(0,v.useRef)(Dt),mn=(0,K.Z)(Ti,!0),kn=Vn=>{mn(),$e==null||$e(Vn)},an=Vn=>{mn(),Te==null||Te(Vn)},tn=Vn=>{mn(),_t==null||_t(Vn)},kt=($o||tt)&&v.createElement(v.Fragment,null,tt,$o&&Mn);let en;return typeof Oe=="object"&&(Oe!=null&&Oe.clearIcon)?en=Oe:Oe&&(en={clearIcon:v.createElement(R.Z,null)}),Hr(v.createElement(B.Z,Object.assign({ref:(0,V.sQ)(We,Ti),prefixCls:Mo,autoComplete:oo==null?void 0:oo.autoComplete},Wn,{disabled:Do,onBlur:kn,onFocus:an,style:Object.assign(Object.assign({},oo==null?void 0:oo.style),xt),styles:Object.assign(Object.assign({},oo==null?void 0:oo.styles),ut),suffix:kt,allowClear:en,className:b()(ot,$t,Pe,oo==null?void 0:oo.className),onChange:tn,addonAfter:Xt&&v.createElement(k.BR,null,v.createElement(T.Ux,{override:!0,status:!0},Xt)),addonBefore:Ft&&v.createElement(k.BR,null,v.createElement(T.Ux,{override:!0,status:!0},Ft)),classNames:Object.assign(Object.assign(Object.assign({},bn),oo==null?void 0:oo.classNames),{input:b()({[`${Mo}-sm`]:qo==="small",[`${Mo}-lg`]:qo==="large",[`${Mo}-rtl`]:wi==="rtl",[`${Mo}-borderless`]:!Se},!Dt&&(0,O.Z)(Mo,nt),bn==null?void 0:bn.input,(dt=oo==null?void 0:oo.classNames)===null||dt===void 0?void 0:dt.input,Ho)}),classes:{affixWrapper:b()({[`${Mo}-affix-wrapper-sm`]:qo==="small",[`${Mo}-affix-wrapper-lg`]:qo==="large",[`${Mo}-affix-wrapper-rtl`]:wi==="rtl",[`${Mo}-affix-wrapper-borderless`]:!Se},(0,O.Z)(`${Mo}-affix-wrapper`,nt,$o),Ho),wrapper:b()({[`${Mo}-group-rtl`]:wi==="rtl"},Ho),group:b()({[`${Mo}-group-wrapper-sm`]:qo==="small",[`${Mo}-group-wrapper-lg`]:qo==="large",[`${Mo}-group-wrapper-rtl`]:wi==="rtl",[`${Mo}-group-wrapper-disabled`]:Do},(0,O.Z)(`${Mo}-group-wrapper`,nt,$o),Ho)}})))})},22913:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Mo}});var v=_(67294),R=_(41322),w=_(94184),b=_.n(w),B=_(87462),V=_(1413),O=_(4942),L=_(74902),S=_(97685),g=_(91),T=_(67656),k=_(82234),K=_(87887),he=_(21770),ae=_(71002),fe=_(48555),_e=_(8410),be=_(75164),xe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -7767,33 +7875,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter top:0 !important; right:0 !important; pointer-events: none !important; -`,fe=["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","white-space"],ke={},Ie;function Be(_r){var Bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hs=_r.getAttribute("id")||_r.getAttribute("data-reactid")||_r.getAttribute("name");if(Bo&&ke[hs])return ke[hs];var ve=window.getComputedStyle(_r),So=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),ho=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),go=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),ji=fe.map(function(dn){return"".concat(dn,":").concat(ve.getPropertyValue(dn))}).join(";"),No={sizingStyle:ji,paddingSize:ho,borderSize:go,boxSizing:So};return Bo&&hs&&(ke[hs]=No),No}function be(_r){var Bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ie||(Ie=document.createElement("textarea"),Ie.setAttribute("tab-index","-1"),Ie.setAttribute("aria-hidden","true"),document.body.appendChild(Ie)),_r.getAttribute("wrap")?Ie.setAttribute("wrap",_r.getAttribute("wrap")):Ie.removeAttribute("wrap");var So=Be(_r,Bo),ho=So.paddingSize,go=So.borderSize,ji=So.boxSizing,No=So.sizingStyle;Ie.setAttribute("style","".concat(No,";").concat(de)),Ie.value=_r.value||_r.placeholder||"";var dn=void 0,Ve=void 0,yt,Ct=Ie.scrollHeight;if(ji==="border-box"?Ct+=go:ji==="content-box"&&(Ct-=ho),hs!==null||ve!==null){Ie.value=" ";var Wt=Ie.scrollHeight-ho;hs!==null&&(dn=Wt*hs,ji==="border-box"&&(dn=dn+ho+go),Ct=Math.max(dn,Ct)),ve!==null&&(Ve=Wt*ve,ji==="border-box"&&(Ve=Ve+ho+go),yt=Ct>Ve?"":"hidden",Ct=Math.min(Ve,Ct))}var sn={height:Ct,overflowY:yt,resize:"none"};return dn&&(sn.minHeight=dn),Ve&&(sn.maxHeight=Ve),sn}var me=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ye=0,_e=1,Ce=2,De=te.forwardRef(function(_r,Bo){var hs=_r,ve=hs.prefixCls,So=hs.onPressEnter,ho=hs.defaultValue,go=hs.value,ji=hs.autoSize,No=hs.onResize,dn=hs.className,Ve=hs.style,yt=hs.disabled,Ct=hs.onChange,Wt=hs.onInternalAutoSize,sn=(0,C.Z)(hs,me),Mt=(0,W.Z)(ho,{value:go,postState:function(Xr){return Xr!=null?Xr:""}}),Tt=(0,I.Z)(Mt,2),xt=Tt[0],Ht=Tt[1],Vn=function(Xr){Ht(Xr.target.value),Ct==null||Ct(Xr)},en=te.useRef();te.useImperativeHandle(Bo,function(){return{textArea:en.current}});var fr=te.useMemo(function(){return ji&&(0,w.Z)(ji)==="object"?[ji.minRows,ji.maxRows]:[]},[ji]),Kr=(0,I.Z)(fr,2),ri=Kr[0],si=Kr[1],uo=!!ji,Qo=function(){try{if(document.activeElement===en.current){var Xr=en.current,ao=Xr.selectionStart,as=Xr.selectionEnd,Bt=Xr.scrollTop;en.current.setSelectionRange(ao,as),en.current.scrollTop=Bt}}catch(pn){}},_n=te.useState(Ce),Vr=(0,I.Z)(_n,2),qr=Vr[0],Ui=Vr[1],xo=te.useState(),Us=(0,I.Z)(xo,2),zn=Us[0],Kn=Us[1],Or=function(){Ui(ye)};(0,ie.Z)(function(){uo&&Or()},[go,ri,si,uo]),(0,ie.Z)(function(){if(qr===ye)Ui(_e);else if(qr===_e){var Qn=be(en.current,!1,ri,si);Ui(Ce),Kn(Qn)}else Qo()},[qr]);var mi=te.useRef(),Er=function(){he.Z.cancel(mi.current)},ti=function(Xr){qr===Ce&&(No==null||No(Xr),ji&&(Er(),mi.current=(0,he.Z)(function(){Or()})))};te.useEffect(function(){return Er},[]);var di=uo?zn:null,rn=(0,k.Z)((0,k.Z)({},Ve),di);return(qr===ye||qr===_e)&&(rn.overflowY="hidden",rn.overflowX="hidden"),te.createElement(q.Z,{onResize:ti,disabled:!(ji||No)},te.createElement("textarea",(0,z.Z)({},sn,{ref:en,style:rn,className:b()(ve,dn,(0,N.Z)({},"".concat(ve,"-disabled"),yt)),disabled:yt,value:xt,onChange:Vn})))}),ge=De,je=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function we(_r,Bo){return(0,f.Z)(_r||"").slice(0,Bo).join("")}function Pt(_r,Bo,hs,ve){var So=hs;return _r?So=we(hs,ve):(0,f.Z)(Bo||"").lengthve&&(So=Bo),So}var dt=te.forwardRef(function(_r,Bo){var hs,ve=_r.defaultValue,So=_r.value,ho=_r.onFocus,go=_r.onBlur,ji=_r.onChange,No=_r.allowClear,dn=_r.maxLength,Ve=_r.onCompositionStart,yt=_r.onCompositionEnd,Ct=_r.suffix,Wt=_r.prefixCls,sn=Wt===void 0?"rc-textarea":Wt,Mt=_r.classes,Tt=_r.showCount,xt=_r.className,Ht=_r.style,Vn=_r.disabled,en=_r.hidden,fr=_r.classNames,Kr=_r.styles,ri=_r.onResize,si=(0,C.Z)(_r,je),uo=(0,W.Z)(ve,{value:So,defaultValue:ve}),Qo=(0,I.Z)(uo,2),_n=Qo[0],Vr=Qo[1],qr=(0,te.useRef)(null),Ui=te.useState(!1),xo=(0,I.Z)(Ui,2),Us=xo[0],zn=xo[1],Kn=te.useState(!1),Or=(0,I.Z)(Kn,2),mi=Or[0],Er=Or[1],ti=te.useRef(),di=te.useRef(0),rn=te.useState(null),Qn=(0,I.Z)(rn,2),Xr=Qn[0],ao=Qn[1],as=function(){var nr;(nr=qr.current)===null||nr===void 0||nr.textArea.focus()};(0,te.useImperativeHandle)(Bo,function(){return{resizableTextArea:qr.current,focus:as,blur:function(){var nr;(nr=qr.current)===null||nr===void 0||nr.textArea.blur()}}}),(0,te.useEffect)(function(){zn(function(Li){return!Vn&&Li})},[Vn]);var Bt=Number(dn)>0,pn=function(nr){Er(!0),ti.current=_n,di.current=nr.currentTarget.selectionStart,Ve==null||Ve(nr)},br=function(nr){Er(!1);var wi=nr.currentTarget.value;if(Bt){var Mi,Fr=di.current>=dn+1||di.current===((Mi=ti.current)===null||Mi===void 0?void 0:Mi.length);wi=Pt(Fr,ti.current,wi,dn)}wi!==_n&&(Vr(wi),(0,P.rJ)(nr.currentTarget,nr,ji,wi)),yt==null||yt(nr)},Jr=function(nr){var wi=nr.target.value;if(!mi&&Bt){var Mi=nr.target.selectionStart>=dn+1||nr.target.selectionStart===wi.length||!nr.target.selectionStart;wi=Pt(Mi,_n,wi,dn)}Vr(wi),(0,P.rJ)(nr.currentTarget,nr,ji,wi)},vi=function(nr){var wi=si.onPressEnter,Mi=si.onKeyDown;nr.key==="Enter"&&wi&&wi(nr),Mi==null||Mi(nr)},Di=function(nr){zn(!0),ho==null||ho(nr)},co=function(nr){zn(!1),go==null||go(nr)},Qr=function(nr){var wi;Vr(""),as(),(0,P.rJ)((wi=qr.current)===null||wi===void 0?void 0:wi.textArea,nr,ji)},oi=(0,P.D7)(_n);!mi&&Bt&&So==null&&(oi=we(oi,dn));var Zi=Ct,Ar;if(Tt){var tn=(0,f.Z)(oi).length;(0,w.Z)(Tt)==="object"?Ar=Tt.formatter({value:oi,count:tn,maxLength:dn}):Ar="".concat(tn).concat(Bt?" / ".concat(dn):""),Zi=te.createElement(te.Fragment,null,Zi,te.createElement("span",{className:b()("".concat(sn,"-data-count"),fr==null?void 0:fr.count),style:Kr==null?void 0:Kr.count},Ar))}var Gn=function(nr){var wi;ri==null||ri(nr),(wi=qr.current)!==null&&wi!==void 0&&wi.textArea.style.height&&ao(!0)},Ei=!si.autoSize&&!Tt&&!No,In=te.createElement(S.Q,{value:oi,allowClear:No,handleReset:Qr,suffix:Zi,prefixCls:sn,classes:{affixWrapper:b()(Mt==null?void 0:Mt.affixWrapper,(hs={},(0,N.Z)(hs,"".concat(sn,"-show-count"),Tt),(0,N.Z)(hs,"".concat(sn,"-textarea-allow-clear"),No),hs))},disabled:Vn,focused:Us,className:xt,style:(0,k.Z)((0,k.Z)({},Ht),Xr&&!Ei?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ar=="string"?Ar:void 0}},hidden:en,inputElement:te.createElement(ge,(0,z.Z)({},si,{onKeyDown:vi,onChange:Jr,onFocus:Di,onBlur:co,onCompositionStart:pn,onCompositionEnd:br,className:fr==null?void 0:fr.textarea,style:(0,k.Z)((0,k.Z)({},Kr==null?void 0:Kr.textarea),{},{resize:Ht==null?void 0:Ht.resize}),disabled:Vn,prefixCls:sn,onResize:Gn,ref:qr}))});return In}),He=dt,bt=He,ft=m(9708),$t=m(53124),vt=m(98866),yn=m(98675),Bn=m(65223),Lr=m(82586),ii=m(47673),gi=function(_r,Bo){var hs={};for(var ve in _r)Object.prototype.hasOwnProperty.call(_r,ve)&&Bo.indexOf(ve)<0&&(hs[ve]=_r[ve]);if(_r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var So=0,ve=Object.getOwnPropertySymbols(_r);So{const{prefixCls:hs,bordered:ve=!0,size:So,disabled:ho,status:go,allowClear:ji,showCount:No,classNames:dn,rootClassName:Ve,className:yt}=_r,Ct=gi(_r,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Wt,direction:sn}=te.useContext($t.E_),Mt=(0,yn.Z)(So),Tt=te.useContext(vt.Z),xt=ho!=null?ho:Tt,{status:Ht,hasFeedback:Vn,feedbackIcon:en}=te.useContext(Bn.aM),fr=(0,ft.F)(Ht,go),Kr=te.useRef(null);te.useImperativeHandle(Bo,()=>{var _n;return{resizableTextArea:(_n=Kr.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Vr=>{var qr,Ui;(0,Lr.n)((Ui=(qr=Kr.current)===null||qr===void 0?void 0:qr.resizableTextArea)===null||Ui===void 0?void 0:Ui.textArea,Vr)},blur:()=>{var Vr;return(Vr=Kr.current)===null||Vr===void 0?void 0:Vr.blur()}}});const ri=Wt("input",hs);let si;typeof ji=="object"&&(ji!=null&&ji.clearIcon)?si=ji:ji&&(si={clearIcon:te.createElement(y.Z,null)});const[uo,Qo]=(0,ii.ZP)(ri);return uo(te.createElement(bt,Object.assign({},Ct,{disabled:xt,allowClear:si,className:b()(yt,Ve),classes:{affixWrapper:b()(`${ri}-textarea-affix-wrapper`,{[`${ri}-affix-wrapper-rtl`]:sn==="rtl",[`${ri}-affix-wrapper-borderless`]:!ve,[`${ri}-affix-wrapper-sm`]:Mt==="small",[`${ri}-affix-wrapper-lg`]:Mt==="large",[`${ri}-textarea-show-count`]:No},(0,ft.Z)(`${ri}-affix-wrapper`,fr),Qo)},classNames:Object.assign(Object.assign({},dn),{textarea:b()({[`${ri}-borderless`]:!ve,[`${ri}-sm`]:Mt==="small",[`${ri}-lg`]:Mt==="large"},(0,ft.Z)(ri,fr),Qo,dn==null?void 0:dn.textarea)}),prefixCls:ri,suffix:Vn&&te.createElement("span",{className:`${ri}-textarea-suffix`},en),showCount:No,ref:Kr})))})},72922:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(67294);function A(b,z){const k=(0,y.useRef)([]),N=()=>{k.current.push(setTimeout(()=>{var w,I,C,f;!((w=b.current)===null||w===void 0)&&w.input&&((I=b.current)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((C=b.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((f=b.current)===null||f===void 0||f.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(z&&N(),()=>k.current.forEach(w=>{w&&clearTimeout(w)})),[]),N}},75008:function(nt,V,m){"use strict";m.d(V,{Z:function(){return bt}});var y=m(67294),A=m(94184),b=m.n(A),z=m(53124),k=m(65223),N=m(47673),I=ft=>{const{getPrefixCls:$t,direction:vt}=(0,y.useContext)(z.E_),{prefixCls:yn,className:Bn}=ft,Lr=$t("input-group",yn),ii=$t("input"),[gi,no]=(0,N.ZP)(ii),To=b()(Lr,{[`${Lr}-lg`]:ft.size==="large",[`${Lr}-sm`]:ft.size==="small",[`${Lr}-compact`]:ft.compact,[`${Lr}-rtl`]:vt==="rtl"},no,Bn),_r=(0,y.useContext)(k.aM),Bo=(0,y.useMemo)(()=>Object.assign(Object.assign({},_r),{isFormItemInput:!1}),[_r]);return gi(y.createElement("span",{className:To,style:ft.style,onMouseEnter:ft.onMouseEnter,onMouseLeave:ft.onMouseLeave,onFocus:ft.onFocus,onBlur:ft.onBlur},y.createElement(k.aM.Provider,{value:Bo},ft.children)))},C=m(82586),f=m(87462),S={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"},P=S,W=m(93771),te=function($t,vt){return y.createElement(W.Z,(0,f.Z)({},$t,{ref:vt,icon:P}))},q=y.forwardRef(te),ie=m(7124),he=m(98423),de=m(42550),fe=m(72922),ke=function(ft,$t){var vt={};for(var yn in ft)Object.prototype.hasOwnProperty.call(ft,yn)&&$t.indexOf(yn)<0&&(vt[yn]=ft[yn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,yn=Object.getOwnPropertySymbols(ft);Bnft?y.createElement(ie.Z,null):y.createElement(q,null),Be={click:"onClick",hover:"onMouseOver"};var me=y.forwardRef((ft,$t)=>{const{visibilityToggle:vt=!0}=ft,yn=typeof vt=="object"&&vt.visible!==void 0,[Bn,Lr]=(0,y.useState)(()=>yn?vt.visible:!1),ii=(0,y.useRef)(null);y.useEffect(()=>{yn&&Lr(vt.visible)},[yn,vt]);const gi=(0,fe.Z)(ii),no=()=>{const{disabled:yt}=ft;yt||(Bn&&gi(),Lr(Ct=>{var Wt;const sn=!Ct;return typeof vt=="object"&&((Wt=vt.onVisibleChange)===null||Wt===void 0||Wt.call(vt,sn)),sn}))},To=yt=>{const{action:Ct="click",iconRender:Wt=Ie}=ft,sn=Be[Ct]||"",Mt=Wt(Bn),Tt={[sn]:no,className:`${yt}-icon`,key:"passwordIcon",onMouseDown:xt=>{xt.preventDefault()},onMouseUp:xt=>{xt.preventDefault()}};return y.cloneElement(y.isValidElement(Mt)?Mt:y.createElement("span",null,Mt),Tt)},{className:_r,prefixCls:Bo,inputPrefixCls:hs,size:ve}=ft,So=ke(ft,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ho}=y.useContext(z.E_),go=ho("input",hs),ji=ho("input-password",Bo),No=vt&&To(ji),dn=b()(ji,_r,{[`${ji}-${ve}`]:!!ve}),Ve=Object.assign(Object.assign({},(0,he.Z)(So,["suffix","iconRender","visibilityToggle"])),{type:Bn?"text":"password",className:dn,prefixCls:go,suffix:No});return ve&&(Ve.size=ve),y.createElement(C.Z,Object.assign({ref:(0,de.sQ)($t,ii)},Ve))}),ye=m(13805),_e=m(96159),Ce=m(15867),De=m(98675),ge=m(4173),je=function(ft,$t){var vt={};for(var yn in ft)Object.prototype.hasOwnProperty.call(ft,yn)&&$t.indexOf(yn)<0&&(vt[yn]=ft[yn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,yn=Object.getOwnPropertySymbols(ft);Bn{const{prefixCls:vt,inputPrefixCls:yn,className:Bn,size:Lr,suffix:ii,enterButton:gi=!1,addonAfter:no,loading:To,disabled:_r,onSearch:Bo,onChange:hs,onCompositionStart:ve,onCompositionEnd:So}=ft,ho=je(ft,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:go,direction:ji}=y.useContext(z.E_),No=y.useRef(!1),dn=go("input-search",vt),Ve=go("input",yn),{compactSize:yt}=(0,ge.ri)(dn,ji),Ct=(0,De.Z)(Qo=>{var _n;return(_n=Lr!=null?Lr:yt)!==null&&_n!==void 0?_n:Qo}),Wt=y.useRef(null),sn=Qo=>{Qo&&Qo.target&&Qo.type==="click"&&Bo&&Bo(Qo.target.value,Qo,{source:"clear"}),hs&&hs(Qo)},Mt=Qo=>{var _n;document.activeElement===((_n=Wt.current)===null||_n===void 0?void 0:_n.input)&&Qo.preventDefault()},Tt=Qo=>{var _n,Vr;Bo&&Bo((Vr=(_n=Wt.current)===null||_n===void 0?void 0:_n.input)===null||Vr===void 0?void 0:Vr.value,Qo,{source:"input"})},xt=Qo=>{No.current||To||Tt(Qo)},Ht=typeof gi=="boolean"?y.createElement(ye.Z,null):null,Vn=`${dn}-button`;let en;const fr=gi||{},Kr=fr.type&&fr.type.__ANT_BUTTON===!0;Kr||fr.type==="button"?en=(0,_e.Tm)(fr,Object.assign({onMouseDown:Mt,onClick:Qo=>{var _n,Vr;(Vr=(_n=fr==null?void 0:fr.props)===null||_n===void 0?void 0:_n.onClick)===null||Vr===void 0||Vr.call(_n,Qo),Tt(Qo)},key:"enterButton"},Kr?{className:Vn,size:Ct}:{})):en=y.createElement(Ce.ZP,{className:Vn,type:gi?"primary":void 0,size:Ct,disabled:_r,key:"enterButton",onMouseDown:Mt,onClick:Tt,loading:To,icon:Ht},gi),no&&(en=[en,(0,_e.Tm)(no,{key:"addonAfter"})]);const ri=b()(dn,{[`${dn}-rtl`]:ji==="rtl",[`${dn}-${Ct}`]:!!Ct,[`${dn}-with-button`]:!!gi},Bn),si=Qo=>{No.current=!0,ve==null||ve(Qo)},uo=Qo=>{No.current=!1,So==null||So(Qo)};return y.createElement(C.Z,Object.assign({ref:(0,de.sQ)(Wt,$t),onPressEnter:xt},ho,{size:Ct,onCompositionStart:si,onCompositionEnd:uo,prefixCls:Ve,addonAfter:en,suffix:ii,onChange:sn,className:ri,disabled:_r}))}),dt=m(22913);const He=C.Z;He.Group=I,He.Search=Pt,He.TextArea=dt.Z,He.Password=me;var bt=He},47673:function(nt,V,m){"use strict";m.d(V,{TM:function(){return Ie},Xy:function(){return I},bi:function(){return S},e5:function(){return ke},ik:function(){return P},nz:function(){return k},s7:function(){return W},x0:function(){return f}});var y=m(14747),A=m(80110),b=m(45503),z=m(67968);const k=Be=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Be,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),N=Be=>({borderColor:Be.hoverBorderColor,backgroundColor:Be.hoverBg}),w=Be=>({borderColor:Be.activeBorderColor,boxShadow:Be.activeShadow,outline:0,backgroundColor:Be.activeBg}),I=Be=>({color:Be.colorTextDisabled,backgroundColor:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},N((0,b.TS)(Be,{hoverBorderColor:Be.colorBorder,hoverBg:Be.colorBgContainerDisabled})))}),C=Be=>{const{paddingBlockLG:be,fontSizeLG:me,lineHeightLG:ye,borderRadiusLG:_e,paddingInlineLG:Ce}=Be;return{padding:`${be}px ${Ce}px`,fontSize:me,lineHeight:ye,borderRadius:_e}},f=Be=>({padding:`${Be.paddingBlockSM}px ${Be.paddingInlineSM}px`,borderRadius:Be.borderRadiusSM}),S=(Be,be)=>{const{componentCls:me,colorError:ye,colorWarning:_e,errorActiveShadow:Ce,warningActiveShadow:De,colorErrorBorderHover:ge,colorWarningBorderHover:je}=Be;return{[`&-status-error:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:ye,"&:hover":{borderColor:ge},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(Be,{activeBorderColor:ye,activeShadow:Ce}))),[`${me}-prefix, ${me}-suffix`]:{color:ye}},[`&-status-warning:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:_e,"&:hover":{borderColor:je},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(Be,{activeBorderColor:_e,activeShadow:De}))),[`${me}-prefix, ${me}-suffix`]:{color:_e}}}},P=Be=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Be.paddingBlock}px ${Be.paddingInline}px`,color:Be.colorText,fontSize:Be.fontSize,lineHeight:Be.lineHeight,backgroundColor:Be.colorBgContainer,backgroundImage:"none",borderWidth:Be.lineWidth,borderStyle:Be.lineType,borderColor:Be.colorBorder,borderRadius:Be.borderRadius,transition:`all ${Be.motionDurationMid}`},k(Be.colorTextPlaceholder)),{"&:hover":Object.assign({},N(Be)),"&:focus, &:focus-within":Object.assign({},w(Be)),"&-disabled, &[disabled]":Object.assign({},I(Be)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Be.controlHeight,lineHeight:Be.lineHeight,verticalAlign:"bottom",transition:`all ${Be.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},C(Be)),"&-sm":Object.assign({},f(Be)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),W=Be=>{const{componentCls:be,antCls:me}=Be;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Be.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${be}, &-lg > ${be}-group-addon`]:Object.assign({},C(Be)),[`&-sm ${be}, &-sm > ${be}-group-addon`]:Object.assign({},f(Be)),[`&-lg ${me}-select-single ${me}-select-selector`]:{height:Be.controlHeightLG},[`&-sm ${me}-select-single ${me}-select-selector`]:{height:Be.controlHeightSM},[`> ${be}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${be}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Be.paddingInline}px`,color:Be.colorText,fontWeight:"normal",fontSize:Be.fontSize,textAlign:"center",backgroundColor:Be.addonBg,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadius,transition:`all ${Be.motionDurationSlow}`,lineHeight:1,[`${me}-select`]:{margin:`-${Be.paddingBlock+1}px -${Be.paddingInline}px`,[`&${me}-select-single:not(${me}-select-customize-input):not(${me}-pagination-size-changer)`]:{[`${me}-select-selector`]:{backgroundColor:"inherit",border:`${Be.lineWidth}px ${Be.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${me}-select-selector`]:{color:Be.colorPrimary}}},[`${me}-cascader-picker`]:{margin:`-9px -${Be.paddingInline}px`,backgroundColor:"transparent",[`${me}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${be}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${be}-search-with-button &`]:{zIndex:0}}},[`> ${be}:first-child, ${be}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${me}-select ${me}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}-affix-wrapper`]:{[`&:not(:first-child) ${be}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${be}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}:last-child, ${be}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${me}-select ${me}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${be}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${be}-search &`]:{borderStartStartRadius:Be.borderRadius,borderEndStartRadius:Be.borderRadius}},[`&:not(:first-child), ${be}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${be}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,y.dF)()),{[`${be}-group-addon, ${be}-group-wrap, > ${be}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Be.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${be}-affix-wrapper, - & > ${be}-number-affix-wrapper, - & > ${me}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Be.lineWidth,borderInlineEndWidth:Be.lineWidth},[`${be}`]:{float:"none"},[`& > ${me}-select > ${me}-select-selector, - & > ${me}-select-auto-complete ${be}, - & > ${me}-cascader-picker ${be}, - & > ${be}-group-wrapper ${be}`]:{borderInlineEndWidth:Be.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${me}-select-focused`]:{zIndex:1},[`& > ${me}-select > ${me}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${me}-select:first-child > ${me}-select-selector, - & > ${me}-select-auto-complete:first-child ${be}, - & > ${me}-cascader-picker:first-child ${be}`]:{borderStartStartRadius:Be.borderRadius,borderEndStartRadius:Be.borderRadius},[`& > *:last-child, - & > ${me}-select:last-child > ${me}-select-selector, - & > ${me}-cascader-picker:last-child ${be}, - & > ${me}-cascader-picker-focused:last-child ${be}`]:{borderInlineEndWidth:Be.lineWidth,borderStartEndRadius:Be.borderRadius,borderEndEndRadius:Be.borderRadius},[`& > ${me}-select-auto-complete ${be}`]:{verticalAlign:"top"},[`${be}-group-wrapper + ${be}-group-wrapper`]:{marginInlineStart:-Be.lineWidth,[`${be}-affix-wrapper`]:{borderRadius:0}},[`${be}-group-wrapper:not(:last-child)`]:{[`&${be}-search > ${be}-group`]:{[`& > ${be}-group-addon > ${be}-search-button`]:{borderRadius:0},[`& > ${be}`]:{borderStartStartRadius:Be.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Be.borderRadius}}}})}},te=Be=>{const{componentCls:be,controlHeightSM:me,lineWidth:ye}=Be,_e=16,Ce=(me-ye*2-_e)/2;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(Be)),P(Be)),S(Be,be)),{'&[type="color"]':{height:Be.controlHeight,[`&${be}-lg`]:{height:Be.controlHeightLG},[`&${be}-sm`]:{height:me,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},q=Be=>{const{componentCls:be}=Be;return{[`${be}-clear-icon`]:{margin:0,color:Be.colorTextQuaternary,fontSize:Be.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Be.motionDurationSlow}`,"&:hover":{color:Be.colorTextTertiary},"&:active":{color:Be.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Be.inputAffixPadding}px`}}}},ie=Be=>{const{componentCls:be,inputAffixPadding:me,colorTextDescription:ye,motionDurationSlow:_e,colorIcon:Ce,colorIconHover:De,iconCls:ge}=Be;return{[`${be}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(Be)),{display:"inline-flex",[`&:not(${be}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${be}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${be}[disabled]`]:{background:"transparent"}},[`> input${be}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${be}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Be.paddingXS}},"&-show-count-suffix":{color:ye},"&-show-count-has-suffix":{marginInlineEnd:Be.paddingXXS},"&-prefix":{marginInlineEnd:me},"&-suffix":{marginInlineStart:me}}}),q(Be)),{[`${ge}${be}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${_e}`,"&:hover":{color:De}}}),S(Be,`${be}-affix-wrapper`))}},he=Be=>{const{componentCls:be,colorError:me,colorWarning:ye,borderRadiusLG:_e,borderRadiusSM:Ce}=Be;return{[`${be}-group`]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(Be)),W(Be)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${be}-group-addon`]:{borderRadius:_e,fontSize:Be.fontSizeLG}},"&-sm":{[`${be}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${be}-group-addon`]:{color:me,borderColor:me}},"&-status-warning":{[`${be}-group-addon`]:{color:ye,borderColor:ye}},"&-disabled":{[`${be}-group-addon`]:Object.assign({},I(Be))},[`&:not(${be}-compact-first-item):not(${be}-compact-last-item)${be}-compact-item`]:{[`${be}, ${be}-group-addon`]:{borderRadius:0}},[`&:not(${be}-compact-last-item)${be}-compact-first-item`]:{[`${be}, ${be}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${be}-compact-first-item)${be}-compact-last-item`]:{[`${be}, ${be}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},de=Be=>{const{componentCls:be,antCls:me}=Be,ye=`${be}-search`;return{[ye]:{[`${be}`]:{"&:hover, &:focus":{borderColor:Be.colorPrimaryHover,[`+ ${be}-group-addon ${ye}-button:not(${me}-btn-primary)`]:{borderInlineStartColor:Be.colorPrimaryHover}}},[`${be}-affix-wrapper`]:{borderRadius:0},[`${be}-lg`]:{lineHeight:Be.lineHeightLG-2e-4},[`> ${be}-group`]:{[`> ${be}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ye}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Be.borderRadius,borderEndEndRadius:Be.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ye}-button:not(${me}-btn-primary)`]:{color:Be.colorTextDescription,"&:hover":{color:Be.colorPrimaryHover},"&:active":{color:Be.colorPrimaryActive},[`&${me}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ye}-button`]:{height:Be.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ye}-button`]:{height:Be.controlHeightLG},[`&-small ${ye}-button`]:{height:Be.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${be}-compact-item`]:{[`&:not(${be}-compact-last-item)`]:{[`${be}-group-addon`]:{[`${be}-search-button`]:{marginInlineEnd:-Be.lineWidth,borderRadius:0}}},[`&:not(${be}-compact-first-item)`]:{[`${be},${be}-affix-wrapper`]:{borderRadius:0}},[`> ${be}-group-addon ${be}-search-button, - > ${be}, - ${be}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${be}-affix-wrapper-focused`]:{zIndex:2}}}}},fe=Be=>{const{componentCls:be,paddingLG:me}=Be,ye=`${be}-textarea`;return{[ye]:{position:"relative","&-show-count":{[`> ${be}`]:{height:"100%"},[`${be}-data-count`]:{position:"absolute",bottom:-Be.fontSize*Be.lineHeight,insetInlineEnd:0,color:Be.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${be}`]:{paddingInlineEnd:me}},[`&-affix-wrapper${ye}-has-feedback`]:{[`${be}`]:{paddingInlineEnd:me}},[`&-affix-wrapper${be}-affix-wrapper`]:{padding:0,[`> textarea${be}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${be}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${be}-clear-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,insetBlockStart:Be.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Be.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ke(Be){return(0,b.TS)(Be,{inputAffixPadding:Be.paddingXXS})}const Ie=Be=>{const{controlHeight:be,fontSize:me,lineHeight:ye,lineWidth:_e,controlHeightSM:Ce,controlHeightLG:De,fontSizeLG:ge,lineHeightLG:je,paddingSM:we,controlPaddingHorizontalSM:Pt,controlPaddingHorizontal:dt,colorFillAlter:He,colorPrimaryHover:bt,colorPrimary:ft,controlOutlineWidth:$t,controlOutline:vt,colorErrorOutline:yn,colorWarningOutline:Bn}=Be;return{paddingBlock:Math.max(Math.round((be-me*ye)/2*10)/10-_e,0),paddingBlockSM:Math.max(Math.round((Ce-me*ye)/2*10)/10-_e,0),paddingBlockLG:Math.ceil((De-ge*je)/2*10)/10-_e,paddingInline:we-_e,paddingInlineSM:Pt-_e,paddingInlineLG:dt-_e,addonBg:He,activeBorderColor:ft,hoverBorderColor:bt,activeShadow:`0 0 0 ${$t}px ${vt}`,errorActiveShadow:`0 0 0 ${$t}px ${yn}`,warningActiveShadow:`0 0 0 ${$t}px ${Bn}`,hoverBg:"",activeBg:""}};V.ZP=(0,z.Z)("Input",Be=>{const be=(0,b.TS)(Be,ke(Be));return[te(be),fe(be),ie(be),he(be),de(be),(0,A.c)(be)]},Ie)},76745:function(nt,V,m){"use strict";var y=m(67294);const A=(0,y.createContext)(void 0);V.Z=A},88526:function(nt,V,m){"use strict";m.d(V,{Z:function(){return S}});var y=m(62906),A={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"},b=A,k={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},w={lang:Object.assign({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"]},b),timePickerLocale:Object.assign({},k)},I=w;const C="${label} is not a valid ${type}";var S={locale:"en",Pagination:y.Z,DatePicker:w,TimePicker:k,Calendar:I,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},10110:function(nt,V,m){"use strict";var y=m(67294),A=m(76745),b=m(88526);const z=(k,N)=>{const w=y.useContext(A.Z),I=y.useMemo(()=>{var f;const S=N||b.Z[k],P=(f=w==null?void 0:w[k])!==null&&f!==void 0?f:{};return Object.assign(Object.assign({},typeof S=="function"?S():S),P||{})},[k,N,w]),C=y.useMemo(()=>{const f=w==null?void 0:w.locale;return w!=null&&w.exist&&!f?b.Z.locale:f},[w]);return[I,C]};V.Z=z},76529:function(nt,V,m){"use strict";m.d(V,{J:function(){return N}});var y=m(67294),A=m(56790),b=m(4173),z=function(w,I){var C={};for(var f in w)Object.prototype.hasOwnProperty.call(w,f)&&I.indexOf(f)<0&&(C[f]=w[f]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,f=Object.getOwnPropertySymbols(w);S{const{children:C}=w,f=z(w,["children"]),S=y.useContext(k),P=y.useMemo(()=>Object.assign(Object.assign({},S),f),[S,f.prefixCls,f.mode,f.selectable]),W=(0,A.t4)(C),te=(0,A.x1)(I,W?C.ref:null);return y.createElement(k.Provider,{value:P},y.createElement(b.BR,null,W?y.cloneElement(C,{ref:te}):C))});V.Z=k},82610:function(nt,V,m){"use strict";m.d(V,{Z:function(){return yt}});var y=m(72512),A=m(67294),b=m(94184),z=m.n(b),k=function(Ct,Wt){var sn={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&Wt.indexOf(Mt)<0&&(sn[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Mt=Object.getOwnPropertySymbols(Ct);Tt{let Ct=0;return function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${Wt}${Ct}`}})(),C=null;var f=null,S=m(53124),P=function(Ct,Wt){var sn={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&Wt.indexOf(Mt)<0&&(sn[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Mt=Object.getOwnPropertySymbols(Ct);Tt{const{prefixCls:Wt,className:sn,dashed:Mt}=Ct,Tt=P(Ct,["prefixCls","className","dashed"]),{getPrefixCls:xt}=A.useContext(S.E_),Ht=xt("menu",Wt),Vn=z()({[`${Ht}-item-divider-dashed`]:!!Mt},sn);return A.createElement(y.iz,Object.assign({className:Vn},Tt))},q=m(50344),ie=m(98423),he=m(61781),de=m(96159),ke=(0,A.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Be=Ct=>{var Wt;const{className:sn,children:Mt,icon:Tt,title:xt,danger:Ht}=Ct,{prefixCls:Vn,firstLevel:en,direction:fr,disableMenuItemTitleTooltip:Kr,inlineCollapsed:ri}=A.useContext(ke),si=Ui=>{const xo=A.createElement("span",{className:`${Vn}-title-content`},Mt);return(!Tt||(0,de.l$)(Mt)&&Mt.type==="span")&&Mt&&Ui&&en&&typeof Mt=="string"?A.createElement("div",{className:`${Vn}-inline-collapsed-noicon`},Mt.charAt(0)):xo},{siderCollapsed:uo}=A.useContext(w);let Qo=xt;typeof xt=="undefined"?Qo=en?Mt:"":xt===!1&&(Qo="");const _n={title:Qo};!uo&&!ri&&(_n.title=null,_n.open=!1);const Vr=(0,q.Z)(Mt).length;let qr=A.createElement(y.ck,Object.assign({},(0,ie.Z)(Ct,["title","icon","danger"]),{className:z()({[`${Vn}-item-danger`]:Ht,[`${Vn}-item-only-child`]:(Tt?Vr+1:Vr)===1},sn),title:typeof xt=="string"?xt:void 0}),(0,de.Tm)(Tt,{className:z()((0,de.l$)(Tt)?(Wt=Tt.props)===null||Wt===void 0?void 0:Wt.className:"",`${Vn}-item-icon`)}),si(ri));return Kr||(qr=A.createElement(he.Z,Object.assign({},_n,{placement:fr==="rtl"?"left":"right",overlayClassName:`${Vn}-inline-collapsed-tooltip`}),qr)),qr},me=Ct=>{var Wt;const{popupClassName:sn,icon:Mt,title:Tt,theme:xt}=Ct,Ht=A.useContext(ke),{prefixCls:Vn,inlineCollapsed:en,theme:fr}=Ht,Kr=(0,y.Xl)();let ri;if(!Mt)ri=en&&!Kr.length&&Tt&&typeof Tt=="string"?A.createElement("div",{className:`${Vn}-inline-collapsed-noicon`},Tt.charAt(0)):A.createElement("span",{className:`${Vn}-title-content`},Tt);else{const uo=(0,de.l$)(Tt)&&Tt.type==="span";ri=A.createElement(A.Fragment,null,(0,de.Tm)(Mt,{className:z()((0,de.l$)(Mt)?(Wt=Mt.props)===null||Wt===void 0?void 0:Wt.className:"",`${Vn}-item-icon`)}),uo?Tt:A.createElement("span",{className:`${Vn}-title-content`},Tt))}const si=A.useMemo(()=>Object.assign(Object.assign({},Ht),{firstLevel:!1}),[Ht]);return A.createElement(ke.Provider,{value:si},A.createElement(y.Wd,Object.assign({},(0,ie.Z)(Ct,["icon"]),{title:ri,popupClassName:z()(Vn,sn,`${Vn}-${xt||fr}`)})))},ye=m(35872),_e=m(56790),Ce=m(33603),De=function(Ct,Wt){var sn={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&Wt.indexOf(Mt)<0&&(sn[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Mt=Object.getOwnPropertySymbols(Ct);Tt{if(Wt&&typeof Wt=="object"){const Mt=Wt,{label:Tt,children:xt,key:Ht,type:Vn}=Mt,en=De(Mt,["label","children","key","type"]),fr=Ht!=null?Ht:`tmp-${sn}`;return xt||Vn==="group"?Vn==="group"?A.createElement(y.BW,Object.assign({key:fr},en,{title:Tt}),ge(xt)):A.createElement(me,Object.assign({key:fr},en,{title:Tt}),ge(xt)):Vn==="divider"?A.createElement(te,Object.assign({key:fr},en)):A.createElement(Be,Object.assign({key:fr},en),Tt)}return null}).filter(Wt=>Wt)}function je(Ct){return A.useMemo(()=>Ct&&ge(Ct),[Ct])}var we=m(76529),Pt=m(10274),dt=m(14747),He=m(33507),bt=m(67771),ft=m(50438),$t=m(67968),vt=m(45503),Bn=Ct=>{const{componentCls:Wt,motionDurationSlow:sn,horizontalLineHeight:Mt,colorSplit:Tt,lineWidth:xt,lineType:Ht,itemPaddingInline:Vn}=Ct;return{[`${Wt}-horizontal`]:{lineHeight:Mt,border:0,borderBottom:`${xt}px ${Ht} ${Tt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Wt}-item, ${Wt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Vn},[`> ${Wt}-item:hover, - > ${Wt}-item-active, - > ${Wt}-submenu ${Wt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Wt}-item, ${Wt}-submenu-title`]:{transition:[`border-color ${sn}`,`background ${sn}`].join(",")},[`${Wt}-submenu-arrow`]:{display:"none"}}}},ii=Ct=>{let{componentCls:Wt,menuArrowOffset:sn}=Ct;return{[`${Wt}-rtl`]:{direction:"rtl"},[`${Wt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Wt}-rtl${Wt}-vertical, - ${Wt}-submenu-rtl ${Wt}-vertical`]:{[`${Wt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${sn})`},"&::after":{transform:`rotate(45deg) translateY(${sn})`}}}}};const gi=Ct=>Object.assign({},(0,dt.oN)(Ct));var To=(Ct,Wt)=>{const{componentCls:sn,itemColor:Mt,itemSelectedColor:Tt,groupTitleColor:xt,itemBg:Ht,subMenuItemBg:Vn,itemSelectedBg:en,activeBarHeight:fr,activeBarWidth:Kr,activeBarBorderWidth:ri,motionDurationSlow:si,motionEaseInOut:uo,motionEaseOut:Qo,itemPaddingInline:_n,motionDurationMid:Vr,itemHoverColor:qr,lineType:Ui,colorSplit:xo,itemDisabledColor:Us,dangerItemColor:zn,dangerItemHoverColor:Kn,dangerItemSelectedColor:Or,dangerItemActiveBg:mi,dangerItemSelectedBg:Er,itemHoverBg:ti,itemActiveBg:di,menuSubMenuBg:rn,horizontalItemSelectedColor:Qn,horizontalItemSelectedBg:Xr,horizontalItemBorderRadius:ao,horizontalItemHoverBg:as,popupBg:Bt}=Ct;return{[`${sn}-${Wt}, ${sn}-${Wt} > ${sn}`]:{color:Mt,background:Ht,[`&${sn}-root:focus-visible`]:Object.assign({},gi(Ct)),[`${sn}-item-group-title`]:{color:xt},[`${sn}-submenu-selected`]:{[`> ${sn}-submenu-title`]:{color:Tt}},[`${sn}-item-disabled, ${sn}-submenu-disabled`]:{color:`${Us} !important`},[`${sn}-item:not(${sn}-item-selected):not(${sn}-submenu-selected)`]:{[`&:hover, > ${sn}-submenu-title:hover`]:{color:qr}},[`&:not(${sn}-horizontal)`]:{[`${sn}-item:not(${sn}-item-selected)`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:di}},[`${sn}-submenu-title`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:di}}},[`${sn}-item-danger`]:{color:zn,[`&${sn}-item:hover`]:{[`&:not(${sn}-item-selected):not(${sn}-submenu-selected)`]:{color:Kn}},[`&${sn}-item:active`]:{background:mi}},[`${sn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${sn}-item-selected`]:{color:Tt,[`&${sn}-item-danger`]:{color:Or},["a, a:hover"]:{color:"inherit"}},[`& ${sn}-item-selected`]:{backgroundColor:en,[`&${sn}-item-danger`]:{backgroundColor:Er}},[`${sn}-item, ${sn}-submenu-title`]:{[`&:not(${sn}-item-disabled):focus-visible`]:Object.assign({},gi(Ct))},[`&${sn}-submenu > ${sn}`]:{backgroundColor:rn},[`&${sn}-popup > ${sn}`]:{backgroundColor:Bt},[`&${sn}-horizontal`]:Object.assign(Object.assign({},Wt==="dark"?{borderBottom:0}:{}),{[`> ${sn}-item, > ${sn}-submenu`]:{top:ri,marginTop:-ri,marginBottom:0,borderRadius:ao,"&::after":{position:"absolute",insetInline:_n,bottom:0,borderBottom:`${fr}px solid transparent`,transition:`border-color ${si} ${uo}`,content:'""'},["&:hover, &-active, &-open"]:{background:as,"&::after":{borderBottomWidth:fr,borderBottomColor:Qn}},["&-selected"]:{color:Qn,backgroundColor:Xr,"&:hover":{backgroundColor:Xr},"&::after":{borderBottomWidth:fr,borderBottomColor:Qn}}}}),[`&${sn}-root`]:{[`&${sn}-inline, &${sn}-vertical`]:{borderInlineEnd:`${ri}px ${Ui} ${xo}`}},[`&${sn}-inline`]:{[`${sn}-sub${sn}-inline`]:{background:Vn},[`${sn}-item, ${sn}-submenu-title`]:ri&&Kr?{width:`calc(100% + ${ri}px)`}:{},[`${sn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Kr}px solid ${Tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vr} ${Qo}`,`opacity ${Vr} ${Qo}`].join(","),content:'""'},[`&${sn}-item-danger`]:{"&::after":{borderInlineEndColor:Or}}},[`${sn}-selected, ${sn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vr} ${uo}`,`opacity ${Vr} ${uo}`].join(",")}}}}}};const _r=Ct=>{const{componentCls:Wt,itemHeight:sn,itemMarginInline:Mt,padding:Tt,menuArrowSize:xt,marginXS:Ht,itemMarginBlock:Vn}=Ct,en=Tt+xt+Ht;return{[`${Wt}-item`]:{position:"relative",overflow:"hidden"},[`${Wt}-item, ${Wt}-submenu-title`]:{height:sn,lineHeight:`${sn}px`,paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Mt,marginBlock:Vn,width:`calc(100% - ${Mt*2}px)`},[`> ${Wt}-item, - > ${Wt}-submenu > ${Wt}-submenu-title`]:{height:sn,lineHeight:`${sn}px`},[`${Wt}-item-group-list ${Wt}-submenu-title, - ${Wt}-submenu-title`]:{paddingInlineEnd:en}}};var hs=Ct=>{const{componentCls:Wt,iconCls:sn,itemHeight:Mt,colorTextLightSolid:Tt,dropdownWidth:xt,controlHeightLG:Ht,motionDurationMid:Vn,motionEaseOut:en,paddingXL:fr,itemMarginInline:Kr,fontSizeLG:ri,motionDurationSlow:si,paddingXS:uo,boxShadowSecondary:Qo,collapsedWidth:_n,collapsedIconSize:Vr}=Ct,qr={height:Mt,lineHeight:`${Mt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Wt]:{["&-inline, &-vertical"]:Object.assign({[`&${Wt}-root`]:{boxShadow:"none"}},_r(Ct))},[`${Wt}-submenu-popup`]:{[`${Wt}-vertical`]:Object.assign(Object.assign({},_r(Ct)),{boxShadow:Qo})}},{[`${Wt}-submenu-popup ${Wt}-vertical${Wt}-sub`]:{minWidth:xt,maxHeight:`calc(100vh - ${Ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Wt}-inline`]:{width:"100%",[`&${Wt}-root`]:{[`${Wt}-item, ${Wt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${si}`,`background ${si}`,`padding ${Vn} ${en}`].join(","),[`> ${Wt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Wt}-sub${Wt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Wt}-submenu > ${Wt}-submenu-title`]:qr,[`& ${Wt}-item-group-title`]:{paddingInlineStart:fr}},[`${Wt}-item`]:qr}},{[`${Wt}-inline-collapsed`]:{width:_n,[`&${Wt}-root`]:{[`${Wt}-item, ${Wt}-submenu ${Wt}-submenu-title`]:{[`> ${Wt}-inline-collapsed-noicon`]:{fontSize:ri,textAlign:"center"}}},[`> ${Wt}-item, - > ${Wt}-item-group > ${Wt}-item-group-list > ${Wt}-item, - > ${Wt}-item-group > ${Wt}-item-group-list > ${Wt}-submenu > ${Wt}-submenu-title, - > ${Wt}-submenu > ${Wt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ri/2}px - ${Kr}px)`,textOverflow:"clip",[` - ${Wt}-submenu-arrow, - ${Wt}-submenu-expand-icon - `]:{opacity:0},[`${Wt}-item-icon, ${sn}`]:{margin:0,fontSize:Vr,lineHeight:`${Mt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Wt}-item-icon, ${sn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Wt}-item-icon, ${sn}`]:{display:"none"},"a, a:hover":{color:Tt}},[`${Wt}-item-group-title`]:Object.assign(Object.assign({},dt.vS),{paddingInline:uo})}}]};const ve=Ct=>{const{componentCls:Wt,motionDurationSlow:sn,motionDurationMid:Mt,motionEaseInOut:Tt,motionEaseOut:xt,iconCls:Ht,iconSize:Vn,iconMarginInlineEnd:en}=Ct;return{[`${Wt}-item, ${Wt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${sn} ${Tt}`].join(","),[`${Wt}-item-icon, ${Ht}`]:{minWidth:Vn,fontSize:Vn,transition:[`font-size ${Mt} ${xt}`,`margin ${sn} ${Tt}`,`color ${sn}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${sn} ${Tt}`,`margin ${sn}`,`color ${sn}`].join(",")}},[`${Wt}-item-icon`]:Object.assign({},(0,dt.Ro)()),[`&${Wt}-item-only-child`]:{[`> ${Ht}, > ${Wt}-item-icon`]:{marginInlineEnd:0}}},[`${Wt}-item-disabled, ${Wt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Wt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},So=Ct=>{const{componentCls:Wt,motionDurationSlow:sn,motionEaseInOut:Mt,borderRadius:Tt,menuArrowSize:xt,menuArrowOffset:Ht}=Ct;return{[`${Wt}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:Ct.margin,width:xt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${sn} ${Mt}, opacity ${sn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xt*.6,height:xt*.15,backgroundColor:"currentcolor",borderRadius:Tt,transition:[`background ${sn} ${Mt}`,`transform ${sn} ${Mt}`,`top ${sn} ${Mt}`,`color ${sn} ${Mt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ht})`},"&::after":{transform:`rotate(-45deg) translateY(${Ht})`}}}}},ho=Ct=>{const{antCls:Wt,componentCls:sn,fontSize:Mt,motionDurationSlow:Tt,motionDurationMid:xt,motionEaseInOut:Ht,paddingXS:Vn,padding:en,colorSplit:fr,lineWidth:Kr,zIndexPopup:ri,borderRadiusLG:si,subMenuItemBorderRadius:uo,menuArrowSize:Qo,menuArrowOffset:_n,lineType:Vr,menuPanelMaskInset:qr,groupTitleLineHeight:Ui,groupTitleFontSize:xo}=Ct;return[{"":{[`${sn}`]:Object.assign(Object.assign({},(0,dt.dF)()),{["&-hidden"]:{display:"none"}})},[`${sn}-submenu-hidden`]:{display:"none"}},{[sn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(Ct)),(0,dt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Mt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Tt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${sn}-item`]:{flex:"none"}},[`${sn}-item, ${sn}-submenu, ${sn}-submenu-title`]:{borderRadius:Ct.itemBorderRadius},[`${sn}-item-group-title`]:{padding:`${Vn}px ${en}px`,fontSize:xo,lineHeight:Ui,transition:`all ${Tt}`},[`&-horizontal ${sn}-submenu`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`].join(",")},[`${sn}-submenu, ${sn}-submenu-inline`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`,`padding ${xt} ${Ht}`].join(",")},[`${sn}-submenu ${sn}-sub`]:{cursor:"initial",transition:[`background ${Tt} ${Ht}`,`padding ${Tt} ${Ht}`].join(",")},[`${sn}-title-content`]:{transition:`color ${Tt}`,[`> ${Wt}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${sn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${sn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:fr,borderStyle:Vr,borderWidth:0,borderTopWidth:Kr,marginBlock:Kr,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ve(Ct)),{[`${sn}-item-group`]:{[`${sn}-item-group-list`]:{margin:0,padding:0,[`${sn}-item, ${sn}-submenu-title`]:{paddingInline:`${Mt*2}px ${en}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ri,borderRadius:si,boxShadow:"none",transformOrigin:"0 0",[`&${sn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${qr}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:qr},[` +`,Xe=["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","white-space"],We={},dt;function Me(Ti){var Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ho=Ti.getAttribute("id")||Ti.getAttribute("data-reactid")||Ti.getAttribute("name");if(Hr&&We[Ho])return We[Ho];var Ss=window.getComputedStyle(Ti),Pe=Ss.getPropertyValue("box-sizing")||Ss.getPropertyValue("-moz-box-sizing")||Ss.getPropertyValue("-webkit-box-sizing"),qo=parseFloat(Ss.getPropertyValue("padding-bottom"))+parseFloat(Ss.getPropertyValue("padding-top")),Ki=parseFloat(Ss.getPropertyValue("border-bottom-width"))+parseFloat(Ss.getPropertyValue("border-top-width")),Do=Xe.map(function($o){return"".concat($o,":").concat(Ss.getPropertyValue($o))}).join(";"),ai={sizingStyle:Do,paddingSize:qo,borderSize:Ki,boxSizing:Pe};return Hr&&Ho&&(We[Ho]=ai),ai}function Se(Ti){var Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ho=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ss=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),Ti.getAttribute("wrap")?dt.setAttribute("wrap",Ti.getAttribute("wrap")):dt.removeAttribute("wrap");var Pe=Me(Ti,Hr),qo=Pe.paddingSize,Ki=Pe.borderSize,Do=Pe.boxSizing,ai=Pe.sizingStyle;dt.setAttribute("style","".concat(ai,";").concat(xe)),dt.value=Ti.value||Ti.placeholder||"";var $o=void 0,Mn=void 0,nt,Dt=dt.scrollHeight;if(Do==="border-box"?Dt+=Ki:Do==="content-box"&&(Dt-=qo),Ho!==null||Ss!==null){dt.value=" ";var Kt=dt.scrollHeight-qo;Ho!==null&&($o=Kt*Ho,Do==="border-box"&&($o=$o+qo+Ki),Dt=Math.max($o,Dt)),Ss!==null&&(Mn=Kt*Ss,Do==="border-box"&&(Mn=Mn+qo+Ki),nt=Dt>Mn?"":"hidden",Dt=Math.min(Mn,Dt))}var mn={height:Dt,overflowY:nt,resize:"none"};return $o&&(mn.minHeight=$o),Mn&&(mn.maxHeight=Mn),mn}var ze=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],De=0,ke=1,$e=2,Te=v.forwardRef(function(Ti,Hr){var Ho=Ti,Ss=Ho.prefixCls,Pe=Ho.onPressEnter,qo=Ho.defaultValue,Ki=Ho.value,Do=Ho.autoSize,ai=Ho.onResize,$o=Ho.className,Mn=Ho.style,nt=Ho.disabled,Dt=Ho.onChange,Kt=Ho.onInternalAutoSize,mn=(0,g.Z)(Ho,ze),kn=(0,he.Z)(qo,{value:Ki,postState:function($n){return $n!=null?$n:""}}),an=(0,S.Z)(kn,2),tn=an[0],kt=an[1],en=function($n){kt($n.target.value),Dt==null||Dt($n)},Vn=v.useRef();v.useImperativeHandle(Hr,function(){return{textArea:Vn.current}});var on=v.useMemo(function(){return Do&&(0,ae.Z)(Do)==="object"?[Do.minRows,Do.maxRows]:[]},[Do]),Dr=(0,S.Z)(on,2),oi=Dr[0],Ii=Dr[1],jr=!!Do,eo=function(){try{if(document.activeElement===Vn.current){var $n=Vn.current,xr=$n.selectionStart,Br=$n.selectionEnd,_o=$n.scrollTop;Vn.current.setSelectionRange(xr,Br),Vn.current.scrollTop=_o}}catch(Qt){}},Uo=v.useState($e),Fn=(0,S.Z)(Uo,2),Qr=Fn[0],ci=Fn[1],ji=v.useState(),cr=(0,S.Z)(ji,2),Qn=cr[0],Vt=cr[1],Yt=function(){ci(De)};(0,_e.Z)(function(){jr&&Yt()},[Ki,oi,Ii,jr]),(0,_e.Z)(function(){if(Qr===De)ci(ke);else if(Qr===ke){var Ut=Se(Vn.current,!1,oi,Ii);ci($e),Vt(Ut)}else eo()},[Qr]);var En=v.useRef(),er=function(){be.Z.cancel(En.current)},Tr=function($n){Qr===$e&&(ai==null||ai($n),Do&&(er(),En.current=(0,be.Z)(function(){Yt()})))};v.useEffect(function(){return er},[]);var Nr=jr?Qn:null,Zn=(0,V.Z)((0,V.Z)({},Mn),Nr);return(Qr===De||Qr===ke)&&(Zn.overflowY="hidden",Zn.overflowX="hidden"),v.createElement(fe.Z,{onResize:Tr,disabled:!(Do||ai)},v.createElement("textarea",(0,B.Z)({},mn,{ref:Vn,style:Zn,className:b()(Ss,$o,(0,O.Z)({},"".concat(Ss,"-disabled"),nt)),disabled:nt,value:tn,onChange:en})))}),tt=Te,Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Xt=v.forwardRef(function(Ti,Hr){var Ho,Ss,Pe=Ti.defaultValue,qo=Ti.value,Ki=Ti.onFocus,Do=Ti.onBlur,ai=Ti.onChange,$o=Ti.allowClear,Mn=Ti.maxLength,nt=Ti.onCompositionStart,Dt=Ti.onCompositionEnd,Kt=Ti.suffix,mn=Ti.prefixCls,kn=mn===void 0?"rc-textarea":mn,an=Ti.classes,tn=Ti.showCount,kt=Ti.count,en=Ti.className,Vn=Ti.style,on=Ti.disabled,Dr=Ti.hidden,oi=Ti.classNames,Ii=Ti.styles,jr=Ti.onResize,eo=(0,g.Z)(Ti,Oe),Uo=(0,he.Z)(Pe,{value:qo,defaultValue:Pe}),Fn=(0,S.Z)(Uo,2),Qr=Fn[0],ci=Fn[1],ji=Qr==null?"":String(Qr),cr=v.useState(!1),Qn=(0,S.Z)(cr,2),Vt=Qn[0],Yt=Qn[1],En=v.useRef(!1),er=v.useState(null),Tr=(0,S.Z)(er,2),Nr=Tr[0],Zn=Tr[1],Ut=(0,v.useRef)(null),$n=function(){var mi;return(mi=Ut.current)===null||mi===void 0?void 0:mi.textArea},xr=function(){$n().focus()};(0,v.useImperativeHandle)(Hr,function(){return{resizableTextArea:Ut.current,focus:xr,blur:function(){$n().blur()}}}),(0,v.useEffect)(function(){Yt(function(Pn){return!on&&Pn})},[on]);var Br=v.useState(null),_o=(0,S.Z)(Br,2),Qt=_o[0],xn=_o[1];v.useEffect(function(){if(Qt){var Pn;(Pn=$n()).setSelectionRange.apply(Pn,(0,L.Z)(Qt))}},[Qt]);var Sr=(0,k.Z)(kt,tn),qr=(Ho=Sr.max)!==null&&Ho!==void 0?Ho:Mn,Mi=Number(qr)>0,zi=Sr.strategy(ji),Yi=!!qr&&zi>qr,Si=function(mi,ya){var Zs=ya;!En.current&&Sr.exceedFormatter&&Sr.max&&Sr.strategy(ya)>Sr.max&&(Zs=Sr.exceedFormatter(ya,{max:Sr.max}),ya!==Zs&&xn([$n().selectionStart||0,$n().selectionEnd||0])),ci(Zs),(0,K.rJ)(mi.currentTarget,mi,ai,Zs)},ni=function(mi){En.current=!0,nt==null||nt(mi)},qi=function(mi){En.current=!1,Si(mi,mi.currentTarget.value),Dt==null||Dt(mi)},Vr=function(mi){Si(mi,mi.target.value)},ii=function(mi){var ya=eo.onPressEnter,Zs=eo.onKeyDown;mi.key==="Enter"&&ya&&ya(mi),Zs==null||Zs(mi)},nr=function(mi){Yt(!0),Ki==null||Ki(mi)},Mr=function(mi){Yt(!1),Do==null||Do(mi)},rr=function(mi){ci(""),xr(),(0,K.rJ)($n(),mi,ai)},to=Kt,ts;Sr.show&&(Sr.showFormatter?ts=Sr.showFormatter({value:ji,count:zi,maxLength:qr}):ts="".concat(zi).concat(Mi?" / ".concat(qr):""),to=v.createElement(v.Fragment,null,to,v.createElement("span",{className:b()("".concat(kn,"-data-count"),oi==null?void 0:oi.count),style:Ii==null?void 0:Ii.count},ts)));var Wr=function(mi){var ya;jr==null||jr(mi),(ya=$n())!==null&&ya!==void 0&&ya.style.height&&Zn(!0)},no=!eo.autoSize&&!tn&&!$o,Vi=v.createElement(T.Q,{value:ji,allowClear:$o,handleReset:rr,suffix:to,prefixCls:kn,classes:{affixWrapper:b()(an==null?void 0:an.affixWrapper,(Ss={},(0,O.Z)(Ss,"".concat(kn,"-show-count"),tn),(0,O.Z)(Ss,"".concat(kn,"-textarea-allow-clear"),$o),Ss))},disabled:on,focused:Vt,className:b()(en,Yi&&"".concat(kn,"-out-of-range")),style:(0,V.Z)((0,V.Z)({},Vn),Nr&&!no?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ts=="string"?ts:void 0}},hidden:Dr,inputElement:v.createElement(tt,(0,B.Z)({},eo,{maxLength:Mn,onKeyDown:ii,onChange:Vr,onFocus:nr,onBlur:Mr,onCompositionStart:ni,onCompositionEnd:qi,className:b()(oi==null?void 0:oi.textarea),style:(0,V.Z)((0,V.Z)({},Ii==null?void 0:Ii.textarea),{},{resize:Vn==null?void 0:Vn.resize}),disabled:on,prefixCls:kn,onResize:Wr,ref:Ut}))});return Vi}),Ft=Xt,ot=Ft,xt=_(9708),ut=_(53124),$t=_(98866),_t=_(98675),bn=_(65223),Wn=_(82586),$r=_(47673),wi=function(Ti,Hr){var Ho={};for(var Ss in Ti)Object.prototype.hasOwnProperty.call(Ti,Ss)&&Hr.indexOf(Ss)<0&&(Ho[Ss]=Ti[Ss]);if(Ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ss=Object.getOwnPropertySymbols(Ti);Pe{var Ho;const{prefixCls:Ss,bordered:Pe=!0,size:qo,disabled:Ki,status:Do,allowClear:ai,classNames:$o,rootClassName:Mn,className:nt}=Ti,Dt=wi(Ti,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:Kt,direction:mn}=v.useContext(ut.E_),kn=(0,_t.Z)(qo),an=v.useContext($t.Z),tn=Ki!=null?Ki:an,{status:kt,hasFeedback:en,feedbackIcon:Vn}=v.useContext(bn.aM),on=(0,xt.F)(kt,Do),Dr=v.useRef(null);v.useImperativeHandle(Hr,()=>{var Uo;return{resizableTextArea:(Uo=Dr.current)===null||Uo===void 0?void 0:Uo.resizableTextArea,focus:Fn=>{var Qr,ci;(0,Wn.n)((ci=(Qr=Dr.current)===null||Qr===void 0?void 0:Qr.resizableTextArea)===null||ci===void 0?void 0:ci.textArea,Fn)},blur:()=>{var Fn;return(Fn=Dr.current)===null||Fn===void 0?void 0:Fn.blur()}}});const oi=Kt("input",Ss);let Ii;typeof ai=="object"&&(ai!=null&&ai.clearIcon)?Ii=ai:ai&&(Ii={clearIcon:v.createElement(R.Z,null)});const[jr,eo]=(0,$r.ZP)(oi);return jr(v.createElement(ot,Object.assign({},Dt,{disabled:tn,allowClear:Ii,className:b()(nt,Mn),classes:{affixWrapper:b()(`${oi}-textarea-affix-wrapper`,{[`${oi}-affix-wrapper-rtl`]:mn==="rtl",[`${oi}-affix-wrapper-borderless`]:!Pe,[`${oi}-affix-wrapper-sm`]:kn==="small",[`${oi}-affix-wrapper-lg`]:kn==="large",[`${oi}-textarea-show-count`]:Ti.showCount||((Ho=Ti.count)===null||Ho===void 0?void 0:Ho.show)},(0,xt.Z)(`${oi}-affix-wrapper`,on),eo)},classNames:Object.assign(Object.assign({},$o),{textarea:b()({[`${oi}-borderless`]:!Pe,[`${oi}-sm`]:kn==="small",[`${oi}-lg`]:kn==="large"},(0,xt.Z)(oi,on),eo,$o==null?void 0:$o.textarea)}),prefixCls:oi,suffix:en&&v.createElement("span",{className:`${oi}-textarea-suffix`},Vn),ref:Dr})))})},72922:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(67294);function R(w,b){const B=(0,v.useRef)([]),V=()=>{B.current.push(setTimeout(()=>{var O,L,S,g;!((O=w.current)===null||O===void 0)&&O.input&&((L=w.current)===null||L===void 0?void 0:L.input.getAttribute("type"))==="password"&&(!((S=w.current)===null||S===void 0)&&S.input.hasAttribute("value"))&&((g=w.current)===null||g===void 0||g.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(b&&V(),()=>B.current.forEach(O=>{O&&clearTimeout(O)})),[]),V}},75008:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return xt}});var v=_(67294),R=_(94184),w=_.n(R),b=_(53124),B=_(65223),V=_(47673),L=ut=>{const{getPrefixCls:$t,direction:_t}=(0,v.useContext)(b.E_),{prefixCls:bn,className:Wn}=ut,$r=$t("input-group",bn),wi=$t("input"),[oo,Mo]=(0,V.ZP)(wi),Ti=w()($r,{[`${$r}-lg`]:ut.size==="large",[`${$r}-sm`]:ut.size==="small",[`${$r}-compact`]:ut.compact,[`${$r}-rtl`]:_t==="rtl"},Mo,Wn),Hr=(0,v.useContext)(B.aM),Ho=(0,v.useMemo)(()=>Object.assign(Object.assign({},Hr),{isFormItemInput:!1}),[Hr]);return oo(v.createElement("span",{className:Ti,style:ut.style,onMouseEnter:ut.onMouseEnter,onMouseLeave:ut.onMouseLeave,onFocus:ut.onFocus,onBlur:ut.onBlur},v.createElement(B.aM.Provider,{value:Ho},ut.children)))},S=_(82586),g=_(87462),T={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"},k=T,K=_(93771),he=function($t,_t){return v.createElement(K.Z,(0,g.Z)({},$t,{ref:_t,icon:k}))},ae=v.forwardRef(he),fe=_(7124),_e=_(98423),be=_(42550),xe=_(72922),Xe=function(ut,$t){var _t={};for(var bn in ut)Object.prototype.hasOwnProperty.call(ut,bn)&&$t.indexOf(bn)<0&&(_t[bn]=ut[bn]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wn=0,bn=Object.getOwnPropertySymbols(ut);Wnut?v.createElement(fe.Z,null):v.createElement(ae,null),dt={click:"onClick",hover:"onMouseOver"};var Se=v.forwardRef((ut,$t)=>{const{visibilityToggle:_t=!0}=ut,bn=typeof _t=="object"&&_t.visible!==void 0,[Wn,$r]=(0,v.useState)(()=>bn?_t.visible:!1),wi=(0,v.useRef)(null);v.useEffect(()=>{bn&&$r(_t.visible)},[bn,_t]);const oo=(0,xe.Z)(wi),Mo=()=>{const{disabled:Dt}=ut;Dt||(Wn&&oo(),$r(Kt=>{var mn;const kn=!Kt;return typeof _t=="object"&&((mn=_t.onVisibleChange)===null||mn===void 0||mn.call(_t,kn)),kn}))},Ti=Dt=>{const{action:Kt="click",iconRender:mn=We}=ut,kn=dt[Kt]||"",an=mn(Wn),tn={[kn]:Mo,className:`${Dt}-icon`,key:"passwordIcon",onMouseDown:kt=>{kt.preventDefault()},onMouseUp:kt=>{kt.preventDefault()}};return v.cloneElement(v.isValidElement(an)?an:v.createElement("span",null,an),tn)},{className:Hr,prefixCls:Ho,inputPrefixCls:Ss,size:Pe}=ut,qo=Xe(ut,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ki}=v.useContext(b.E_),Do=Ki("input",Ss),ai=Ki("input-password",Ho),$o=_t&&Ti(ai),Mn=w()(ai,Hr,{[`${ai}-${Pe}`]:!!Pe}),nt=Object.assign(Object.assign({},(0,_e.Z)(qo,["suffix","iconRender","visibilityToggle"])),{type:Wn?"text":"password",className:Mn,prefixCls:Do,suffix:$o});return Pe&&(nt.size=Pe),v.createElement(S.Z,Object.assign({ref:(0,be.sQ)($t,wi)},nt))}),ze=_(13805),De=_(96159),ke=_(15867),$e=_(98675),Te=_(4173),tt=function(ut,$t){var _t={};for(var bn in ut)Object.prototype.hasOwnProperty.call(ut,bn)&&$t.indexOf(bn)<0&&(_t[bn]=ut[bn]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wn=0,bn=Object.getOwnPropertySymbols(ut);Wn{const{prefixCls:_t,inputPrefixCls:bn,className:Wn,size:$r,suffix:wi,enterButton:oo=!1,addonAfter:Mo,loading:Ti,disabled:Hr,onSearch:Ho,onChange:Ss,onCompositionStart:Pe,onCompositionEnd:qo}=ut,Ki=tt(ut,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Do,direction:ai}=v.useContext(b.E_),$o=v.useRef(!1),Mn=Do("input-search",_t),nt=Do("input",bn),{compactSize:Dt}=(0,Te.ri)(Mn,ai),Kt=(0,$e.Z)(Uo=>{var Fn;return(Fn=$r!=null?$r:Dt)!==null&&Fn!==void 0?Fn:Uo}),mn=v.useRef(null),kn=Uo=>{Uo&&Uo.target&&Uo.type==="click"&&Ho&&Ho(Uo.target.value,Uo,{source:"clear"}),Ss&&Ss(Uo)},an=Uo=>{var Fn;document.activeElement===((Fn=mn.current)===null||Fn===void 0?void 0:Fn.input)&&Uo.preventDefault()},tn=Uo=>{var Fn,Qr;Ho&&Ho((Qr=(Fn=mn.current)===null||Fn===void 0?void 0:Fn.input)===null||Qr===void 0?void 0:Qr.value,Uo,{source:"input"})},kt=Uo=>{$o.current||Ti||tn(Uo)},en=typeof oo=="boolean"?v.createElement(ze.Z,null):null,Vn=`${Mn}-button`;let on;const Dr=oo||{},oi=Dr.type&&Dr.type.__ANT_BUTTON===!0;oi||Dr.type==="button"?on=(0,De.Tm)(Dr,Object.assign({onMouseDown:an,onClick:Uo=>{var Fn,Qr;(Qr=(Fn=Dr==null?void 0:Dr.props)===null||Fn===void 0?void 0:Fn.onClick)===null||Qr===void 0||Qr.call(Fn,Uo),tn(Uo)},key:"enterButton"},oi?{className:Vn,size:Kt}:{})):on=v.createElement(ke.ZP,{className:Vn,type:oo?"primary":void 0,size:Kt,disabled:Hr,key:"enterButton",onMouseDown:an,onClick:tn,loading:Ti,icon:en},oo),Mo&&(on=[on,(0,De.Tm)(Mo,{key:"addonAfter"})]);const Ii=w()(Mn,{[`${Mn}-rtl`]:ai==="rtl",[`${Mn}-${Kt}`]:!!Kt,[`${Mn}-with-button`]:!!oo},Wn),jr=Uo=>{$o.current=!0,Pe==null||Pe(Uo)},eo=Uo=>{$o.current=!1,qo==null||qo(Uo)};return v.createElement(S.Z,Object.assign({ref:(0,be.sQ)(mn,$t),onPressEnter:kt},Ki,{size:Kt,onCompositionStart:jr,onCompositionEnd:eo,prefixCls:nt,addonAfter:on,suffix:wi,onChange:kn,className:Ii,disabled:Hr}))}),Ft=_(22913);const ot=S.Z;ot.Group=L,ot.Search=Xt,ot.TextArea=Ft.Z,ot.Password=Se;var xt=ot},47673:function(gt,Y,_){"use strict";_.d(Y,{TM:function(){return dt},Xy:function(){return L},bi:function(){return T},e5:function(){return We},ik:function(){return k},nz:function(){return B},s7:function(){return K},x0:function(){return g}});var v=_(14747),R=_(80110),w=_(45503),b=_(67968);const B=Me=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Me,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V=Me=>({borderColor:Me.hoverBorderColor,backgroundColor:Me.hoverBg}),O=Me=>({borderColor:Me.activeBorderColor,boxShadow:Me.activeShadow,outline:0,backgroundColor:Me.activeBg}),L=Me=>({color:Me.colorTextDisabled,backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},V((0,w.TS)(Me,{hoverBorderColor:Me.colorBorder,hoverBg:Me.colorBgContainerDisabled})))}),S=Me=>{const{paddingBlockLG:Se,fontSizeLG:ze,lineHeightLG:De,borderRadiusLG:ke,paddingInlineLG:$e}=Me;return{padding:`${Se}px ${$e}px`,fontSize:ze,lineHeight:De,borderRadius:ke}},g=Me=>({padding:`${Me.paddingBlockSM}px ${Me.paddingInlineSM}px`,borderRadius:Me.borderRadiusSM}),T=(Me,Se)=>{const{componentCls:ze,colorError:De,colorWarning:ke,errorActiveShadow:$e,warningActiveShadow:Te,colorErrorBorderHover:tt,colorWarningBorderHover:Oe}=Me;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:De,"&:hover":{borderColor:tt},"&:focus, &:focus-within":Object.assign({},O((0,w.TS)(Me,{activeBorderColor:De,activeShadow:$e}))),[`${ze}-prefix, ${ze}-suffix`]:{color:De}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:ke,"&:hover":{borderColor:Oe},"&:focus, &:focus-within":Object.assign({},O((0,w.TS)(Me,{activeBorderColor:ke,activeShadow:Te}))),[`${ze}-prefix, ${ze}-suffix`]:{color:ke}}}},k=Me=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me.paddingBlock}px ${Me.paddingInline}px`,color:Me.colorText,fontSize:Me.fontSize,lineHeight:Me.lineHeight,backgroundColor:Me.colorBgContainer,backgroundImage:"none",borderWidth:Me.lineWidth,borderStyle:Me.lineType,borderColor:Me.colorBorder,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationMid}`},B(Me.colorTextPlaceholder)),{"&:hover":Object.assign({},V(Me)),"&:focus, &:focus-within":Object.assign({},O(Me)),"&-disabled, &[disabled]":Object.assign({},L(Me)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Me.controlHeight,lineHeight:Me.lineHeight,verticalAlign:"bottom",transition:`all ${Me.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},S(Me)),"&-sm":Object.assign({},g(Me)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),K=Me=>{const{componentCls:Se,antCls:ze}=Me;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Me.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},S(Me)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},g(Me)),[`&-lg ${ze}-select-single ${ze}-select-selector`]:{height:Me.controlHeightLG},[`&-sm ${ze}-select-single ${ze}-select-selector`]:{height:Me.controlHeightSM},[`> ${Se}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Se}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me.paddingInline}px`,color:Me.colorText,fontWeight:"normal",fontSize:Me.fontSize,textAlign:"center",backgroundColor:Me.addonBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationSlow}`,lineHeight:1,[`${ze}-select`]:{margin:`-${Me.paddingBlock+1}px -${Me.paddingInline}px`,[`&${ze}-select-single:not(${ze}-select-customize-input):not(${ze}-pagination-size-changer)`]:{[`${ze}-select-selector`]:{backgroundColor:"inherit",border:`${Me.lineWidth}px ${Me.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ze}-select-selector`]:{color:Me.colorPrimary}}},[`${ze}-cascader-picker`]:{margin:`-9px -${Me.paddingInline}px`,backgroundColor:"transparent",[`${ze}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Se}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Se}-search-with-button &`]:{zIndex:0}}},[`> ${Se}:first-child, ${Se}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}-affix-wrapper`]:{[`&:not(:first-child) ${Se}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Se}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}:last-child, ${Se}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,v.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Me.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${Se}-affix-wrapper, + & > ${Se}-number-affix-wrapper, + & > ${ze}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Me.lineWidth,borderInlineEndWidth:Me.lineWidth},[`${Se}`]:{float:"none"},[`& > ${ze}-select > ${ze}-select-selector, + & > ${ze}-select-auto-complete ${Se}, + & > ${ze}-cascader-picker ${Se}, + & > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:Me.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ze}-select-focused`]:{zIndex:1},[`& > ${ze}-select > ${ze}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${ze}-select:first-child > ${ze}-select-selector, + & > ${ze}-select-auto-complete:first-child ${Se}, + & > ${ze}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius},[`& > *:last-child, + & > ${ze}-select:last-child > ${ze}-select-selector, + & > ${ze}-cascader-picker:last-child ${Se}, + & > ${ze}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:Me.lineWidth,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius},[`& > ${ze}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-Me.lineWidth,[`${Se}-affix-wrapper`]:{borderRadius:0}},[`${Se}-group-wrapper:not(:last-child)`]:{[`&${Se}-search > ${Se}-group`]:{[`& > ${Se}-group-addon > ${Se}-search-button`]:{borderRadius:0},[`& > ${Se}`]:{borderStartStartRadius:Me.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Me.borderRadius}}}})}},he=Me=>{const{componentCls:Se,controlHeightSM:ze,lineWidth:De}=Me,ke=16,$e=(ze-De*2-ke)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Me)),k(Me)),T(Me,Se)),{'&[type="color"]':{height:Me.controlHeight,[`&${Se}-lg`]:{height:Me.controlHeightLG},[`&${Se}-sm`]:{height:ze,paddingTop:$e,paddingBottom:$e}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ae=Me=>{const{componentCls:Se}=Me;return{[`${Se}-clear-icon`]:{margin:0,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Me.motionDurationSlow}`,"&:hover":{color:Me.colorTextTertiary},"&:active":{color:Me.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me.inputAffixPadding}px`}}}},fe=Me=>{const{componentCls:Se,inputAffixPadding:ze,colorTextDescription:De,motionDurationSlow:ke,colorIcon:$e,colorIconHover:Te,iconCls:tt}=Me;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k(Me)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${Se}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Se}[disabled]`]:{background:"transparent"}},[`> input${Se}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Se}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Me.paddingXS}},"&-show-count-suffix":{color:De},"&-show-count-has-suffix":{marginInlineEnd:Me.paddingXXS},"&-prefix":{marginInlineEnd:ze},"&-suffix":{marginInlineStart:ze}}}),ae(Me)),{[`${tt}${Se}-password-icon`]:{color:$e,cursor:"pointer",transition:`all ${ke}`,"&:hover":{color:Te}}}),T(Me,`${Se}-affix-wrapper`))}},_e=Me=>{const{componentCls:Se,colorError:ze,colorWarning:De,borderRadiusLG:ke,borderRadiusSM:$e}=Me;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Me)),K(Me)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:ke,fontSize:Me.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:$e}},"&-status-error":{[`${Se}-group-addon`]:{color:ze,borderColor:ze}},"&-status-warning":{[`${Se}-group-addon`]:{color:De,borderColor:De}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},L(Me))},[`&:not(${Se}-compact-first-item):not(${Se}-compact-last-item)${Se}-compact-item`]:{[`${Se}, ${Se}-group-addon`]:{borderRadius:0}},[`&:not(${Se}-compact-last-item)${Se}-compact-first-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Se}-compact-first-item)${Se}-compact-last-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},be=Me=>{const{componentCls:Se,antCls:ze}=Me,De=`${Se}-search`;return{[De]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:Me.colorPrimaryHover,[`+ ${Se}-group-addon ${De}-button:not(${ze}-btn-primary)`]:{borderInlineStartColor:Me.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:Me.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${De}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${De}-button:not(${ze}-btn-primary)`]:{color:Me.colorTextDescription,"&:hover":{color:Me.colorPrimaryHover},"&:active":{color:Me.colorPrimaryActive},[`&${ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${De}-button`]:{height:Me.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${De}-button`]:{height:Me.controlHeightLG},[`&-small ${De}-button`]:{height:Me.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-Me.lineWidth,borderRadius:0}}},[`&:not(${Se}-compact-first-item)`]:{[`${Se},${Se}-affix-wrapper`]:{borderRadius:0}},[`> ${Se}-group-addon ${Se}-search-button, + > ${Se}, + ${Se}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Se}-affix-wrapper-focused`]:{zIndex:2}}}}},xe=Me=>{const{componentCls:Se,paddingLG:ze}=Me,De=`${Se}-textarea`;return{[De]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-Me.fontSize*Me.lineHeight,insetInlineEnd:0,color:Me.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${De}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${Se}-affix-wrapper`]:{padding:0,[`> textarea${Se}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Se}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Se}-clear-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,insetBlockStart:Me.paddingXS},[`${De}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Me.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Xe=Me=>{const{componentCls:Se}=Me;return{[`${Se}-out-of-range`]:{[`&, & input, & textarea, ${Se}-show-count-suffix, ${Se}-data-count`]:{color:Me.colorError}}}};function We(Me){return(0,w.TS)(Me,{inputAffixPadding:Me.paddingXXS})}const dt=Me=>{const{controlHeight:Se,fontSize:ze,lineHeight:De,lineWidth:ke,controlHeightSM:$e,controlHeightLG:Te,fontSizeLG:tt,lineHeightLG:Oe,paddingSM:Xt,controlPaddingHorizontalSM:Ft,controlPaddingHorizontal:ot,colorFillAlter:xt,colorPrimaryHover:ut,colorPrimary:$t,controlOutlineWidth:_t,controlOutline:bn,colorErrorOutline:Wn,colorWarningOutline:$r}=Me;return{paddingBlock:Math.max(Math.round((Se-ze*De)/2*10)/10-ke,0),paddingBlockSM:Math.max(Math.round(($e-ze*De)/2*10)/10-ke,0),paddingBlockLG:Math.ceil((Te-tt*Oe)/2*10)/10-ke,paddingInline:Xt-ke,paddingInlineSM:Ft-ke,paddingInlineLG:ot-ke,addonBg:xt,activeBorderColor:$t,hoverBorderColor:ut,activeShadow:`0 0 0 ${_t}px ${bn}`,errorActiveShadow:`0 0 0 ${_t}px ${Wn}`,warningActiveShadow:`0 0 0 ${_t}px ${$r}`,hoverBg:"",activeBg:""}};Y.ZP=(0,b.Z)("Input",Me=>{const Se=(0,w.TS)(Me,We(Me));return[he(Se),xe(Se),fe(Se),_e(Se),be(Se),Xe(Se),(0,R.c)(Se)]},dt)},76745:function(gt,Y,_){"use strict";var v=_(67294);const R=(0,v.createContext)(void 0);Y.Z=R},88526:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return T}});var v=_(62906),R={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"},w=R,B={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},O={lang:Object.assign({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"]},w),timePickerLocale:Object.assign({},B)},L=O;const S="${label} is not a valid ${type}";var T={locale:"en",Pagination:v.Z,DatePicker:O,TimePicker:B,Calendar:L,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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:S,method:S,array:S,object:S,number:S,date:S,boolean:S,integer:S,float:S,regexp:S,email:S,url:S,hex:S},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"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},10110:function(gt,Y,_){"use strict";var v=_(67294),R=_(76745),w=_(88526);const b=(B,V)=>{const O=v.useContext(R.Z),L=v.useMemo(()=>{var g;const T=V||w.Z[B],k=(g=O==null?void 0:O[B])!==null&&g!==void 0?g:{};return Object.assign(Object.assign({},typeof T=="function"?T():T),k||{})},[B,V,O]),S=v.useMemo(()=>{const g=O==null?void 0:O.locale;return O!=null&&O.exist&&!g?w.Z.locale:g},[O]);return[L,S]};Y.Z=b},76529:function(gt,Y,_){"use strict";_.d(Y,{J:function(){return V}});var v=_(67294),R=_(56790),w=_(4173),b=function(O,L){var S={};for(var g in O)Object.prototype.hasOwnProperty.call(O,g)&&L.indexOf(g)<0&&(S[g]=O[g]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,g=Object.getOwnPropertySymbols(O);T{const{children:S}=O,g=b(O,["children"]),T=v.useContext(B),k=v.useMemo(()=>Object.assign(Object.assign({},T),g),[T,g.prefixCls,g.mode,g.selectable]),K=(0,R.t4)(S),he=(0,R.x1)(L,K?S.ref:null);return v.createElement(B.Provider,{value:k},v.createElement(w.BR,null,K?v.cloneElement(S,{ref:he}):S))});Y.Z=B},82610:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Kt}});var v=_(72512),R=_(67294),w=_(94184),b=_.n(w),B=function(mn,kn){var an={};for(var tn in mn)Object.prototype.hasOwnProperty.call(mn,tn)&&kn.indexOf(tn)<0&&(an[tn]=mn[tn]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tn=Object.getOwnPropertySymbols(mn);kt{let mn=0;return function(){let kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return mn+=1,`${kn}${mn}`}})(),S=null;var g=null,T=_(53124),k=function(mn,kn){var an={};for(var tn in mn)Object.prototype.hasOwnProperty.call(mn,tn)&&kn.indexOf(tn)<0&&(an[tn]=mn[tn]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tn=Object.getOwnPropertySymbols(mn);kt{const{prefixCls:kn,className:an,dashed:tn}=mn,kt=k(mn,["prefixCls","className","dashed"]),{getPrefixCls:en}=R.useContext(T.E_),Vn=en("menu",kn),on=b()({[`${Vn}-item-divider-dashed`]:!!tn},an);return R.createElement(v.iz,Object.assign({className:on},kt))},ae=_(50344),fe=_(98423),_e=_(61781),be=_(96159),Xe=(0,R.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),dt=mn=>{var kn;const{className:an,children:tn,icon:kt,title:en,danger:Vn}=mn,{prefixCls:on,firstLevel:Dr,direction:oi,disableMenuItemTitleTooltip:Ii,inlineCollapsed:jr}=R.useContext(Xe),eo=cr=>{const Qn=R.createElement("span",{className:`${on}-title-content`},tn);return(!kt||(0,be.l$)(tn)&&tn.type==="span")&&tn&&cr&&Dr&&typeof tn=="string"?R.createElement("div",{className:`${on}-inline-collapsed-noicon`},tn.charAt(0)):Qn},{siderCollapsed:Uo}=R.useContext(O);let Fn=en;typeof en=="undefined"?Fn=Dr?tn:"":en===!1&&(Fn="");const Qr={title:Fn};!Uo&&!jr&&(Qr.title=null,Qr.open=!1);const ci=(0,ae.Z)(tn).length;let ji=R.createElement(v.ck,Object.assign({},(0,fe.Z)(mn,["title","icon","danger"]),{className:b()({[`${on}-item-danger`]:Vn,[`${on}-item-only-child`]:(kt?ci+1:ci)===1},an),title:typeof en=="string"?en:void 0}),(0,be.Tm)(kt,{className:b()((0,be.l$)(kt)?(kn=kt.props)===null||kn===void 0?void 0:kn.className:"",`${on}-item-icon`)}),eo(jr));return Ii||(ji=R.createElement(_e.Z,Object.assign({},Qr,{placement:oi==="rtl"?"left":"right",overlayClassName:`${on}-inline-collapsed-tooltip`}),ji)),ji},Me=_(87263),ze=mn=>{var kn;const{popupClassName:an,icon:tn,title:kt,theme:en}=mn,Vn=R.useContext(Xe),{prefixCls:on,inlineCollapsed:Dr,theme:oi}=Vn,Ii=(0,v.Xl)();let jr;if(!tn)jr=Dr&&!Ii.length&&kt&&typeof kt=="string"?R.createElement("div",{className:`${on}-inline-collapsed-noicon`},kt.charAt(0)):R.createElement("span",{className:`${on}-title-content`},kt);else{const Fn=(0,be.l$)(kt)&&kt.type==="span";jr=R.createElement(R.Fragment,null,(0,be.Tm)(tn,{className:b()((0,be.l$)(tn)?(kn=tn.props)===null||kn===void 0?void 0:kn.className:"",`${on}-item-icon`)}),Fn?kt:R.createElement("span",{className:`${on}-title-content`},kt))}const eo=R.useMemo(()=>Object.assign(Object.assign({},Vn),{firstLevel:!1}),[Vn]),[Uo]=(0,Me.Cn)("Menu");return R.createElement(Xe.Provider,{value:eo},R.createElement(v.Wd,Object.assign({},(0,fe.Z)(mn,["icon"]),{title:jr,popupClassName:b()(on,an,`${on}-${en||oi}`),popupStyle:{zIndex:Uo}})))},De=_(35872),ke=_(56790),$e=_(33603),Te=function(mn,kn){var an={};for(var tn in mn)Object.prototype.hasOwnProperty.call(mn,tn)&&kn.indexOf(tn)<0&&(an[tn]=mn[tn]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tn=Object.getOwnPropertySymbols(mn);kt{if(kn&&typeof kn=="object"){const tn=kn,{label:kt,children:en,key:Vn,type:on}=tn,Dr=Te(tn,["label","children","key","type"]),oi=Vn!=null?Vn:`tmp-${an}`;return en||on==="group"?on==="group"?R.createElement(v.BW,Object.assign({key:oi},Dr,{title:kt}),tt(en)):R.createElement(ze,Object.assign({key:oi},Dr,{title:kt}),tt(en)):on==="divider"?R.createElement(he,Object.assign({key:oi},Dr)):R.createElement(dt,Object.assign({key:oi},Dr),kt)}return null}).filter(kn=>kn)}function Oe(mn){return R.useMemo(()=>mn&&tt(mn),[mn])}var Xt=_(76529),Ft=_(10274),ot=_(14747),xt=_(33507),ut=_(48611),$t=_(50438),_t=_(67968),bn=_(45503),$r=mn=>{const{componentCls:kn,motionDurationSlow:an,horizontalLineHeight:tn,colorSplit:kt,lineWidth:en,lineType:Vn,itemPaddingInline:on}=mn;return{[`${kn}-horizontal`]:{lineHeight:tn,border:0,borderBottom:`${en}px ${Vn} ${kt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${kn}-item, ${kn}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:on},[`> ${kn}-item:hover, + > ${kn}-item-active, + > ${kn}-submenu ${kn}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${kn}-item, ${kn}-submenu-title`]:{transition:[`border-color ${an}`,`background ${an}`].join(",")},[`${kn}-submenu-arrow`]:{display:"none"}}}},oo=mn=>{let{componentCls:kn,menuArrowOffset:an}=mn;return{[`${kn}-rtl`]:{direction:"rtl"},[`${kn}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${kn}-rtl${kn}-vertical, + ${kn}-submenu-rtl ${kn}-vertical`]:{[`${kn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${an})`},"&::after":{transform:`rotate(45deg) translateY(${an})`}}}}};const Mo=mn=>Object.assign({},(0,ot.oN)(mn));var Hr=(mn,kn)=>{const{componentCls:an,itemColor:tn,itemSelectedColor:kt,groupTitleColor:en,itemBg:Vn,subMenuItemBg:on,itemSelectedBg:Dr,activeBarHeight:oi,activeBarWidth:Ii,activeBarBorderWidth:jr,motionDurationSlow:eo,motionEaseInOut:Uo,motionEaseOut:Fn,itemPaddingInline:Qr,motionDurationMid:ci,itemHoverColor:ji,lineType:cr,colorSplit:Qn,itemDisabledColor:Vt,dangerItemColor:Yt,dangerItemHoverColor:En,dangerItemSelectedColor:er,dangerItemActiveBg:Tr,dangerItemSelectedBg:Nr,itemHoverBg:Zn,itemActiveBg:Ut,menuSubMenuBg:$n,horizontalItemSelectedColor:xr,horizontalItemSelectedBg:Br,horizontalItemBorderRadius:_o,horizontalItemHoverBg:Qt,popupBg:xn}=mn;return{[`${an}-${kn}, ${an}-${kn} > ${an}`]:{color:tn,background:Vn,[`&${an}-root:focus-visible`]:Object.assign({},Mo(mn)),[`${an}-item-group-title`]:{color:en},[`${an}-submenu-selected`]:{[`> ${an}-submenu-title`]:{color:kt}},[`${an}-item-disabled, ${an}-submenu-disabled`]:{color:`${Vt} !important`},[`${an}-item:not(${an}-item-selected):not(${an}-submenu-selected)`]:{[`&:hover, > ${an}-submenu-title:hover`]:{color:ji}},[`&:not(${an}-horizontal)`]:{[`${an}-item:not(${an}-item-selected)`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:Ut}},[`${an}-submenu-title`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:Ut}}},[`${an}-item-danger`]:{color:Yt,[`&${an}-item:hover`]:{[`&:not(${an}-item-selected):not(${an}-submenu-selected)`]:{color:En}},[`&${an}-item:active`]:{background:Tr}},[`${an}-item a`]:{"&, &:hover":{color:"inherit"}},[`${an}-item-selected`]:{color:kt,[`&${an}-item-danger`]:{color:er},["a, a:hover"]:{color:"inherit"}},[`& ${an}-item-selected`]:{backgroundColor:Dr,[`&${an}-item-danger`]:{backgroundColor:Nr}},[`${an}-item, ${an}-submenu-title`]:{[`&:not(${an}-item-disabled):focus-visible`]:Object.assign({},Mo(mn))},[`&${an}-submenu > ${an}`]:{backgroundColor:$n},[`&${an}-popup > ${an}`]:{backgroundColor:xn},[`&${an}-horizontal`]:Object.assign(Object.assign({},kn==="dark"?{borderBottom:0}:{}),{[`> ${an}-item, > ${an}-submenu`]:{top:jr,marginTop:-jr,marginBottom:0,borderRadius:_o,"&::after":{position:"absolute",insetInline:Qr,bottom:0,borderBottom:`${oi}px solid transparent`,transition:`border-color ${eo} ${Uo}`,content:'""'},["&:hover, &-active, &-open"]:{background:Qt,"&::after":{borderBottomWidth:oi,borderBottomColor:xr}},["&-selected"]:{color:xr,backgroundColor:Br,"&:hover":{backgroundColor:Br},"&::after":{borderBottomWidth:oi,borderBottomColor:xr}}}}),[`&${an}-root`]:{[`&${an}-inline, &${an}-vertical`]:{borderInlineEnd:`${jr}px ${cr} ${Qn}`}},[`&${an}-inline`]:{[`${an}-sub${an}-inline`]:{background:on},[`${an}-item, ${an}-submenu-title`]:jr&&Ii?{width:`calc(100% + ${jr}px)`}:{},[`${an}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ii}px solid ${kt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ci} ${Fn}`,`opacity ${ci} ${Fn}`].join(","),content:'""'},[`&${an}-item-danger`]:{"&::after":{borderInlineEndColor:er}}},[`${an}-selected, ${an}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ci} ${Uo}`,`opacity ${ci} ${Uo}`].join(",")}}}}}};const Ho=mn=>{const{componentCls:kn,itemHeight:an,itemMarginInline:tn,padding:kt,menuArrowSize:en,marginXS:Vn,itemMarginBlock:on}=mn,Dr=kt+en+Vn;return{[`${kn}-item`]:{position:"relative",overflow:"hidden"},[`${kn}-item, ${kn}-submenu-title`]:{height:an,lineHeight:`${an}px`,paddingInline:kt,overflow:"hidden",textOverflow:"ellipsis",marginInline:tn,marginBlock:on,width:`calc(100% - ${tn*2}px)`},[`> ${kn}-item, + > ${kn}-submenu > ${kn}-submenu-title`]:{height:an,lineHeight:`${an}px`},[`${kn}-item-group-list ${kn}-submenu-title, + ${kn}-submenu-title`]:{paddingInlineEnd:Dr}}};var Pe=mn=>{const{componentCls:kn,iconCls:an,itemHeight:tn,colorTextLightSolid:kt,dropdownWidth:en,controlHeightLG:Vn,motionDurationMid:on,motionEaseOut:Dr,paddingXL:oi,itemMarginInline:Ii,fontSizeLG:jr,motionDurationSlow:eo,paddingXS:Uo,boxShadowSecondary:Fn,collapsedWidth:Qr,collapsedIconSize:ci}=mn,ji={height:tn,lineHeight:`${tn}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[kn]:{["&-inline, &-vertical"]:Object.assign({[`&${kn}-root`]:{boxShadow:"none"}},Ho(mn))},[`${kn}-submenu-popup`]:{[`${kn}-vertical`]:Object.assign(Object.assign({},Ho(mn)),{boxShadow:Fn})}},{[`${kn}-submenu-popup ${kn}-vertical${kn}-sub`]:{minWidth:en,maxHeight:`calc(100vh - ${Vn*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${kn}-inline`]:{width:"100%",[`&${kn}-root`]:{[`${kn}-item, ${kn}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${eo}`,`background ${eo}`,`padding ${on} ${Dr}`].join(","),[`> ${kn}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${kn}-sub${kn}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${kn}-submenu > ${kn}-submenu-title`]:ji,[`& ${kn}-item-group-title`]:{paddingInlineStart:oi}},[`${kn}-item`]:ji}},{[`${kn}-inline-collapsed`]:{width:Qr,[`&${kn}-root`]:{[`${kn}-item, ${kn}-submenu ${kn}-submenu-title`]:{[`> ${kn}-inline-collapsed-noicon`]:{fontSize:jr,textAlign:"center"}}},[`> ${kn}-item, + > ${kn}-item-group > ${kn}-item-group-list > ${kn}-item, + > ${kn}-item-group > ${kn}-item-group-list > ${kn}-submenu > ${kn}-submenu-title, + > ${kn}-submenu > ${kn}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${jr/2}px - ${Ii}px)`,textOverflow:"clip",[` + ${kn}-submenu-arrow, + ${kn}-submenu-expand-icon + `]:{opacity:0},[`${kn}-item-icon, ${an}`]:{margin:0,fontSize:ci,lineHeight:`${tn}px`,"+ span":{display:"inline-block",opacity:0}}},[`${kn}-item-icon, ${an}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${kn}-item-icon, ${an}`]:{display:"none"},"a, a:hover":{color:kt}},[`${kn}-item-group-title`]:Object.assign(Object.assign({},ot.vS),{paddingInline:Uo})}}]};const qo=mn=>{const{componentCls:kn,motionDurationSlow:an,motionDurationMid:tn,motionEaseInOut:kt,motionEaseOut:en,iconCls:Vn,iconSize:on,iconMarginInlineEnd:Dr}=mn;return{[`${kn}-item, ${kn}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${an}`,`background ${an}`,`padding ${an} ${kt}`].join(","),[`${kn}-item-icon, ${Vn}`]:{minWidth:on,fontSize:on,transition:[`font-size ${tn} ${en}`,`margin ${an} ${kt}`,`color ${an}`].join(","),"+ span":{marginInlineStart:Dr,opacity:1,transition:[`opacity ${an} ${kt}`,`margin ${an}`,`color ${an}`].join(",")}},[`${kn}-item-icon`]:Object.assign({},(0,ot.Ro)()),[`&${kn}-item-only-child`]:{[`> ${Vn}, > ${kn}-item-icon`]:{marginInlineEnd:0}}},[`${kn}-item-disabled, ${kn}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${kn}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ki=mn=>{const{componentCls:kn,motionDurationSlow:an,motionEaseInOut:tn,borderRadius:kt,menuArrowSize:en,menuArrowOffset:Vn}=mn;return{[`${kn}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:mn.margin,width:en,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${an} ${tn}, opacity ${an}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:en*.6,height:en*.15,backgroundColor:"currentcolor",borderRadius:kt,transition:[`background ${an} ${tn}`,`transform ${an} ${tn}`,`top ${an} ${tn}`,`color ${an} ${tn}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Vn})`},"&::after":{transform:`rotate(-45deg) translateY(${Vn})`}}}}},Do=mn=>{const{antCls:kn,componentCls:an,fontSize:tn,motionDurationSlow:kt,motionDurationMid:en,motionEaseInOut:Vn,paddingXS:on,padding:Dr,colorSplit:oi,lineWidth:Ii,zIndexPopup:jr,borderRadiusLG:eo,subMenuItemBorderRadius:Uo,menuArrowSize:Fn,menuArrowOffset:Qr,lineType:ci,menuPanelMaskInset:ji,groupTitleLineHeight:cr,groupTitleFontSize:Qn}=mn;return[{"":{[`${an}`]:Object.assign(Object.assign({},(0,ot.dF)()),{["&-hidden"]:{display:"none"}})},[`${an}-submenu-hidden`]:{display:"none"}},{[an]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(mn)),(0,ot.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:tn,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${kt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${an}-item`]:{flex:"none"}},[`${an}-item, ${an}-submenu, ${an}-submenu-title`]:{borderRadius:mn.itemBorderRadius},[`${an}-item-group-title`]:{padding:`${on}px ${Dr}px`,fontSize:Qn,lineHeight:cr,transition:`all ${kt}`},[`&-horizontal ${an}-submenu`]:{transition:[`border-color ${kt} ${Vn}`,`background ${kt} ${Vn}`].join(",")},[`${an}-submenu, ${an}-submenu-inline`]:{transition:[`border-color ${kt} ${Vn}`,`background ${kt} ${Vn}`,`padding ${en} ${Vn}`].join(",")},[`${an}-submenu ${an}-sub`]:{cursor:"initial",transition:[`background ${kt} ${Vn}`,`padding ${kt} ${Vn}`].join(",")},[`${an}-title-content`]:{transition:`color ${kt}`,[`> ${kn}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${an}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${an}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:oi,borderStyle:ci,borderWidth:0,borderTopWidth:Ii,marginBlock:Ii,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qo(mn)),{[`${an}-item-group`]:{[`${an}-item-group-list`]:{margin:0,padding:0,[`${an}-item, ${an}-submenu-title`]:{paddingInline:`${tn*2}px ${Dr}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:jr,borderRadius:eo,boxShadow:"none",transformOrigin:"0 0",[`&${an}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ji}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ji},[` &-placement-leftTop, &-placement-bottomRight, `]:{transformOrigin:"100% 0"},[` @@ -7808,100 +7916,100 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{transformOrigin:"0 0"},[` &-placement-leftTop, &-placement-leftBottom - `]:{paddingInlineEnd:Ct.paddingXS},[` + `]:{paddingInlineEnd:mn.paddingXS},[` &-placement-rightTop, &-placement-rightBottom - `]:{paddingInlineStart:Ct.paddingXS},[` + `]:{paddingInlineStart:mn.paddingXS},[` &-placement-topRight, &-placement-topLeft - `]:{paddingBottom:Ct.paddingXS},[` + `]:{paddingBottom:mn.paddingXS},[` &-placement-bottomRight, &-placement-bottomLeft - `]:{paddingTop:Ct.paddingXS},[`> ${sn}`]:Object.assign(Object.assign(Object.assign({borderRadius:si},ve(Ct)),So(Ct)),{[`${sn}-item, ${sn}-submenu > ${sn}-submenu-title`]:{borderRadius:uo},[`${sn}-submenu-title::after`]:{transition:`transform ${Tt} ${Ht}`}})}}),So(Ct)),{[`&-inline-collapsed ${sn}-submenu-arrow, - &-inline ${sn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_n})`},"&::after":{transform:`rotate(45deg) translateX(-${_n})`}},[`${sn}-submenu-open${sn}-submenu-inline > ${sn}-submenu-title > ${sn}-submenu-arrow`]:{transform:`translateY(-${Qo*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_n})`},"&::before":{transform:`rotate(45deg) translateX(${_n})`}}})},{[`${Wt}-layout-header`]:{[sn]:{lineHeight:"inherit"}}}]};var go=(Ct,Wt)=>(0,$t.Z)("Menu",Mt=>{if(Wt===!1)return[];const{colorBgElevated:Tt,colorPrimary:xt,colorTextLightSolid:Ht,controlHeightLG:Vn,fontSize:en,darkItemColor:fr,darkDangerItemColor:Kr,darkItemBg:ri,darkSubMenuItemBg:si,darkItemSelectedColor:uo,darkItemSelectedBg:Qo,darkDangerItemSelectedBg:_n,darkItemHoverBg:Vr,darkGroupTitleColor:qr,darkItemHoverColor:Ui,darkItemDisabledColor:xo,darkDangerItemHoverColor:Us,darkDangerItemSelectedColor:zn,darkDangerItemActiveBg:Kn}=Mt,Or=en/7*5,mi=(0,vt.TS)(Mt,{menuArrowSize:Or,menuHorizontalHeight:Vn*1.15,menuArrowOffset:`${Or*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Tt}),Er=(0,vt.TS)(mi,{itemColor:fr,itemHoverColor:Ui,groupTitleColor:qr,itemSelectedColor:uo,itemBg:ri,popupBg:ri,subMenuItemBg:si,itemActiveBg:"transparent",itemSelectedBg:Qo,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Vr,itemDisabledColor:xo,dangerItemColor:Kr,dangerItemHoverColor:Us,dangerItemSelectedColor:zn,dangerItemActiveBg:Kn,dangerItemSelectedBg:_n,menuSubMenuBg:si,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:xt});return[ho(mi),Bn(mi),hs(mi),To(mi,"light"),To(Er,"dark"),ii(mi),(0,He.Z)(mi),(0,bt.oN)(mi,"slide-up"),(0,bt.oN)(mi,"slide-down"),(0,ft._y)(mi,"zoom-big")]},Mt=>{const{colorPrimary:Tt,colorError:xt,colorTextDisabled:Ht,colorErrorBg:Vn,colorText:en,colorTextDescription:fr,colorBgContainer:Kr,colorFillAlter:ri,colorFillContent:si,lineWidth:uo,lineWidthBold:Qo,controlItemBgActive:_n,colorBgTextHover:Vr,controlHeightLG:qr,lineHeight:Ui,colorBgElevated:xo,marginXXS:Us,padding:zn,fontSize:Kn,controlHeightSM:Or,fontSizeLG:mi,colorTextLightSolid:Er,colorErrorHover:ti}=Mt,di=new Pt.C(Er).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Mt.zIndexPopupBase+50,radiusItem:Mt.borderRadiusLG,itemBorderRadius:Mt.borderRadiusLG,radiusSubMenuItem:Mt.borderRadiusSM,subMenuItemBorderRadius:Mt.borderRadiusSM,colorItemText:en,itemColor:en,colorItemTextHover:en,itemHoverColor:en,colorItemTextHoverHorizontal:Tt,horizontalItemHoverColor:Tt,colorGroupTitle:fr,groupTitleColor:fr,colorItemTextSelected:Tt,itemSelectedColor:Tt,colorItemTextSelectedHorizontal:Tt,horizontalItemSelectedColor:Tt,colorItemBg:Kr,itemBg:Kr,colorItemBgHover:Vr,itemHoverBg:Vr,colorItemBgActive:si,itemActiveBg:_n,colorSubItemBg:ri,subMenuItemBg:ri,colorItemBgSelected:_n,itemSelectedBg:_n,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Qo,activeBarHeight:Qo,colorActiveBarBorderSize:uo,activeBarBorderWidth:uo,colorItemTextDisabled:Ht,itemDisabledColor:Ht,colorDangerItemText:xt,dangerItemColor:xt,colorDangerItemTextHover:xt,dangerItemHoverColor:xt,colorDangerItemTextSelected:xt,dangerItemSelectedColor:xt,colorDangerItemBgActive:Vn,dangerItemActiveBg:Vn,colorDangerItemBgSelected:Vn,dangerItemSelectedBg:Vn,itemMarginInline:Mt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qr,groupTitleLineHeight:Ui,collapsedWidth:qr*2,popupBg:xo,itemMarginBlock:Us,itemPaddingInline:zn,horizontalLineHeight:`${qr*1.15}px`,iconSize:Kn,iconMarginInlineEnd:Or-Kn,collapsedIconSize:mi,groupTitleFontSize:Kn,darkItemDisabledColor:new Pt.C(Er).setAlpha(.25).toRgbString(),darkItemColor:di,darkDangerItemColor:xt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Er,darkItemSelectedBg:Tt,darkDangerItemSelectedBg:xt,darkItemHoverBg:"transparent",darkGroupTitleColor:di,darkItemHoverColor:Er,darkDangerItemHoverColor:ti,darkDangerItemSelectedColor:Er,darkDangerItemActiveBg:xt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ct),ji=function(Ct,Wt){var sn={};for(var Mt in Ct)Object.prototype.hasOwnProperty.call(Ct,Mt)&&Wt.indexOf(Mt)<0&&(sn[Mt]=Ct[Mt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Mt=Object.getOwnPropertySymbols(Ct);Tt{var sn,Mt;const Tt=A.useContext(we.Z),xt=Tt||{},{getPrefixCls:Ht,getPopupContainer:Vn,direction:en,menu:fr}=A.useContext(S.E_),Kr=Ht(),{prefixCls:ri,className:si,style:uo,theme:Qo="light",expandIcon:_n,_internalDisableMenuItemTitleTooltip:Vr,inlineCollapsed:qr,siderCollapsed:Ui,items:xo,children:Us,rootClassName:zn,mode:Kn,selectable:Or,onClick:mi,overflowedIndicatorPopupClassName:Er}=Ct,ti=ji(Ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),di=(0,ie.Z)(ti,["collapsedWidth"]),rn=je(xo)||Us;(sn=xt.validator)===null||sn===void 0||sn.call(xt,{mode:Kn});const Qn=(0,_e.zX)(function(){var Qr;mi==null||mi.apply(void 0,arguments),(Qr=xt.onClick)===null||Qr===void 0||Qr.call(xt)}),Xr=xt.mode||Kn,ao=Or!=null?Or:xt.selectable,as=A.useMemo(()=>Ui!==void 0?Ui:qr,[qr,Ui]),Bt={horizontal:{motionName:`${Kr}-slide-up`},inline:(0,Ce.Z)(Kr),other:{motionName:`${Kr}-zoom-big`}},pn=Ht("menu",ri||xt.prefixCls),[br,Jr]=go(pn,!Tt),vi=z()(`${pn}-${Qo}`,fr==null?void 0:fr.className,si);let Di;if(typeof _n=="function")Di=_n;else if(_n===null||_n===!1)Di=null;else if(xt.expandIcon===null||xt.expandIcon===!1)Di=null;else{const Qr=_n!=null?_n:xt.expandIcon;Di=(0,de.Tm)(Qr,{className:z()(`${pn}-submenu-expand-icon`,(0,de.l$)(Qr)?(Mt=Qr.props)===null||Mt===void 0?void 0:Mt.className:"")})}const co=A.useMemo(()=>({prefixCls:pn,inlineCollapsed:as||!1,direction:en,firstLevel:!0,theme:Qo,mode:Xr,disableMenuItemTitleTooltip:Vr}),[pn,as,en,Vr,Qo]);return br(A.createElement(we.Z.Provider,{value:null},A.createElement(ke.Provider,{value:co},A.createElement(y.ZP,Object.assign({getPopupContainer:Vn,overflowedIndicator:A.createElement(ye.Z,null),overflowedIndicatorPopupClassName:z()(pn,`${pn}-${Qo}`,Er),mode:Xr,selectable:ao,onClick:Qn},di,{inlineCollapsed:as,style:Object.assign(Object.assign({},fr==null?void 0:fr.style),uo),className:vi,prefixCls:pn,direction:en,defaultMotions:Bt,expandIcon:Di,ref:Wt,rootClassName:z()(zn,Jr)}),rn))))});const Ve=(0,A.forwardRef)((Ct,Wt)=>{const sn=(0,A.useRef)(null),Mt=A.useContext(w);return(0,A.useImperativeHandle)(Wt,()=>({menu:sn.current,focus:Tt=>{var xt;(xt=sn.current)===null||xt===void 0||xt.focus(Tt)}})),A.createElement(dn,Object.assign({ref:sn},Ct,Mt))});Ve.Item=Be,Ve.SubMenu=me,Ve.Divider=te,Ve.ItemGroup=y.BW;var yt=Ve},10154:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return mi}});var y=m(74902),A=m(67294),b=m(38135),z=m(94740),k=m(76278),N=m(41322),w=m(26702),I=m(1558),C=m(22508),f=m(94184),S=m.n(f),P=m(97685),W=m(91),te=m(1413),q=m(73935),ie=m(87462),he=m(4942),de=m(82225),fe=m(15105),ke=A.forwardRef(function(Er,ti){var di=Er.prefixCls,rn=Er.style,Qn=Er.className,Xr=Er.duration,ao=Xr===void 0?4.5:Xr,as=Er.eventKey,Bt=Er.content,pn=Er.closable,br=Er.closeIcon,Jr=br===void 0?"x":br,vi=Er.props,Di=Er.onClick,co=Er.onNoticeClose,Qr=Er.times,oi=Er.hovering,Zi=A.useState(!1),Ar=(0,P.Z)(Zi,2),tn=Ar[0],Gn=Ar[1],Ei=oi||tn,In=function(){co(as)},Li=function(Mi){(Mi.key==="Enter"||Mi.code==="Enter"||Mi.keyCode===fe.Z.ENTER)&&In()};A.useEffect(function(){if(!Ei&&ao>0){var wi=setTimeout(function(){In()},ao*1e3);return function(){clearTimeout(wi)}}},[ao,Ei,Qr]);var nr="".concat(di,"-notice");return A.createElement("div",(0,ie.Z)({},vi,{ref:ti,className:S()(nr,Qn,(0,he.Z)({},"".concat(nr,"-closable"),pn)),style:rn,onMouseEnter:function(Mi){var Fr;Gn(!0),vi==null||(Fr=vi.onMouseEnter)===null||Fr===void 0||Fr.call(vi,Mi)},onMouseLeave:function(Mi){var Fr;Gn(!1),vi==null||(Fr=vi.onMouseLeave)===null||Fr===void 0||Fr.call(vi,Mi)},onClick:Di}),A.createElement("div",{className:"".concat(nr,"-content")},Bt),pn&&A.createElement("a",{tabIndex:0,className:"".concat(nr,"-close"),onKeyDown:Li,onClick:function(Mi){Mi.preventDefault(),Mi.stopPropagation(),In()}},Jr))}),Ie=ke,Be=A.createContext({}),be=function(ti){var di=ti.children,rn=ti.classNames;return A.createElement(Be.Provider,{value:{classNames:rn}},di)},me=be,ye=m(71002),_e=8,Ce=3,De=16,ge=function(ti){var di={offset:_e,threshold:Ce,gap:De};if(ti&&(0,ye.Z)(ti)==="object"){var rn,Qn,Xr;di.offset=(rn=ti.offset)!==null&&rn!==void 0?rn:_e,di.threshold=(Qn=ti.threshold)!==null&&Qn!==void 0?Qn:Ce,di.gap=(Xr=ti.gap)!==null&&Xr!==void 0?Xr:De}return[!!ti,di]},je=ge,we=function(ti){var di,rn=ti.configList,Qn=ti.placement,Xr=ti.prefixCls,ao=ti.className,as=ti.style,Bt=ti.motion,pn=ti.onAllNoticeRemoved,br=ti.onNoticeClose,Jr=ti.stack,vi=(0,A.useContext)(Be),Di=vi.classNames,co=(0,A.useRef)({}),Qr=(0,A.useState)(null),oi=(0,P.Z)(Qr,2),Zi=oi[0],Ar=oi[1],tn=(0,A.useState)([]),Gn=(0,P.Z)(tn,2),Ei=Gn[0],In=Gn[1],Li=rn.map(function(Ua){return{config:Ua,key:Ua.key}}),nr=je(Jr),wi=(0,P.Z)(nr,2),Mi=wi[0],Fr=wi[1],qn=Fr.offset,ms=Fr.threshold,ya=Fr.gap,ha=Mi&&(Ei.length>0||Li.length<=ms),Ws=typeof Bt=="function"?Bt(Qn):Bt;return(0,A.useEffect)(function(){Mi&&Ei.length>1&&In(function(Ua){return Ua.filter(function(Ao){return Li.some(function(dl){var $r=dl.key;return Ao===$r})})})},[Ei,Li,Mi]),(0,A.useEffect)(function(){var Ua;if(Mi&&co.current[(Ua=Li[Li.length-1])===null||Ua===void 0?void 0:Ua.key]){var Ao;Ar(co.current[(Ao=Li[Li.length-1])===null||Ao===void 0?void 0:Ao.key])}},[Li,Mi]),A.createElement(de.V4,(0,ie.Z)({key:Qn,className:S()(Xr,"".concat(Xr,"-").concat(Qn),Di==null?void 0:Di.list,ao,(di={},(0,he.Z)(di,"".concat(Xr,"-stack"),!!Mi),(0,he.Z)(di,"".concat(Xr,"-stack-expanded"),ha),di)),style:as,keys:Li,motionAppear:!0},Ws,{onAllRemoved:function(){pn(Qn)}}),function(Ua,Ao){var dl=Ua.config,$r=Ua.className,er=Ua.style,Tr=Ua.index,pr=dl,ci=pr.key,Eo=pr.times,mo=dl,Ts=mo.className,xs=mo.style,Sr=Li.findIndex(function(jn){return jn.key===ci}),ui={};if(Mi){var Xt=Li.length-1-(Sr>-1?Sr:Tr-1),gn=Qn==="top"||Qn==="bottom"?"-50%":"0";if(Xt>0){var En,tt,at;ui.height=ha?(En=co.current[ci])===null||En===void 0?void 0:En.offsetHeight:Zi==null?void 0:Zi.offsetHeight;for(var gt=0,Ne=0;Ne-1?co.current[ci]=Cr:delete co.current[ci]},prefixCls:Xr,className:S()(Ts,Di==null?void 0:Di.notice),times:Eo,key:ci,eventKey:ci,onNoticeClose:br,hovering:Mi&&Ei.length>0})))})},Pt=we,dt=A.forwardRef(function(Er,ti){var di=Er.prefixCls,rn=di===void 0?"rc-notification":di,Qn=Er.container,Xr=Er.motion,ao=Er.maxCount,as=Er.className,Bt=Er.style,pn=Er.onAllRemoved,br=Er.stack,Jr=Er.renderNotifications,vi=A.useState([]),Di=(0,P.Z)(vi,2),co=Di[0],Qr=Di[1],oi=function(wi){var Mi,Fr=co.find(function(qn){return qn.key===wi});Fr==null||(Mi=Fr.onClose)===null||Mi===void 0||Mi.call(Fr),Qr(function(qn){return qn.filter(function(ms){return ms.key!==wi})})};A.useImperativeHandle(ti,function(){return{open:function(wi){Qr(function(Mi){var Fr=(0,y.Z)(Mi),qn=Fr.findIndex(function(ha){return ha.key===wi.key}),ms=(0,te.Z)({},wi);if(qn>=0){var ya;ms.times=(((ya=Mi[qn])===null||ya===void 0?void 0:ya.times)||0)+1,Fr[qn]=ms}else ms.times=0,Fr.push(ms);return ao>0&&Fr.length>ao&&(Fr=Fr.slice(-ao)),Fr})},close:function(wi){oi(wi)},destroy:function(){Qr([])}}});var Zi=A.useState({}),Ar=(0,P.Z)(Zi,2),tn=Ar[0],Gn=Ar[1];A.useEffect(function(){var nr={};co.forEach(function(wi){var Mi=wi.placement,Fr=Mi===void 0?"topRight":Mi;Fr&&(nr[Fr]=nr[Fr]||[],nr[Fr].push(wi))}),Object.keys(tn).forEach(function(wi){nr[wi]=nr[wi]||[]}),Gn(nr)},[co]);var Ei=function(wi){Gn(function(Mi){var Fr=(0,te.Z)({},Mi),qn=Fr[wi]||[];return qn.length||delete Fr[wi],Fr})},In=A.useRef(!1);if(A.useEffect(function(){Object.keys(tn).length>0?In.current=!0:In.current&&(pn==null||pn(),In.current=!1)},[tn]),!Qn)return null;var Li=Object.keys(tn);return(0,q.createPortal)(A.createElement(A.Fragment,null,Li.map(function(nr){var wi=tn[nr],Mi=A.createElement(Pt,{key:nr,configList:wi,placement:nr,prefixCls:rn,className:as==null?void 0:as(nr),style:Bt==null?void 0:Bt(nr),motion:Xr,onNoticeClose:oi,onAllNoticeRemoved:Ei,stack:br});return Jr?Jr(Mi,{prefixCls:rn,key:nr}):Mi})),Qn)}),He=dt,bt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ft=function(){return document.body},$t=0;function vt(){for(var Er={},ti=arguments.length,di=new Array(ti),rn=0;rn0&&arguments[0]!==void 0?arguments[0]:{},ti=Er.getContainer,di=ti===void 0?ft:ti,rn=Er.motion,Qn=Er.prefixCls,Xr=Er.maxCount,ao=Er.className,as=Er.style,Bt=Er.onAllRemoved,pn=Er.stack,br=Er.renderNotifications,Jr=(0,W.Z)(Er,bt),vi=A.useState(),Di=(0,P.Z)(vi,2),co=Di[0],Qr=Di[1],oi=A.useRef(),Zi=A.createElement(He,{container:co,ref:oi,prefixCls:Qn,motion:rn,maxCount:Xr,className:ao,style:as,onAllRemoved:Bt,stack:pn,renderNotifications:br}),Ar=A.useState([]),tn=(0,P.Z)(Ar,2),Gn=tn[0],Ei=tn[1],In=A.useMemo(function(){return{open:function(nr){var wi=vt(Jr,nr);(wi.key===null||wi.key===void 0)&&(wi.key="rc-notification-".concat($t),$t+=1),Ei(function(Mi){return[].concat((0,y.Z)(Mi),[{type:"open",config:wi}])})},close:function(nr){Ei(function(wi){return[].concat((0,y.Z)(wi),[{type:"close",key:nr}])})},destroy:function(){Ei(function(nr){return[].concat((0,y.Z)(nr),[{type:"destroy"}])})}}},[]);return A.useEffect(function(){Qr(di())}),A.useEffect(function(){oi.current&&Gn.length&&(Gn.forEach(function(Li){switch(Li.type){case"open":oi.current.open(Li.config);break;case"close":oi.current.close(Li.key);break;case"destroy":oi.current.destroy();break}}),Ei(function(Li){return Li.filter(function(nr){return!Gn.includes(nr)})}))},[Gn]),[In,Zi]}var Bn=m(53124),Lr=m(85731),ii=m(14747),gi=m(67968),no=m(45503);const To=Er=>{const{componentCls:ti,iconCls:di,boxShadow:rn,colorText:Qn,colorSuccess:Xr,colorError:ao,colorWarning:as,colorInfo:Bt,fontSizeLG:pn,motionEaseInOutCirc:br,motionDurationSlow:Jr,marginXS:vi,paddingXS:Di,borderRadiusLG:co,zIndexPopup:Qr,contentPadding:oi,contentBg:Zi}=Er,Ar=`${ti}-notice`,tn=new Lr.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Di,transform:"translateY(0)",opacity:1}}),Gn=new Lr.E4("MessageMoveOut",{"0%":{maxHeight:Er.height,padding:Di,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Ei={padding:Di,textAlign:"center",[`${ti}-custom-content > ${di}`]:{verticalAlign:"text-bottom",marginInlineEnd:vi,fontSize:pn},[`${Ar}-content`]:{display:"inline-block",padding:oi,background:Zi,borderRadius:co,boxShadow:rn,pointerEvents:"all"},[`${ti}-success > ${di}`]:{color:Xr},[`${ti}-error > ${di}`]:{color:ao},[`${ti}-warning > ${di}`]:{color:as},[`${ti}-info > ${di}, - ${ti}-loading > ${di}`]:{color:Bt}};return[{[ti]:Object.assign(Object.assign({},(0,ii.Wf)(Er)),{color:Qn,position:"fixed",top:vi,width:"100%",pointerEvents:"none",zIndex:Qr,[`${ti}-move-up`]:{animationFillMode:"forwards"},[` - ${ti}-move-up-appear, - ${ti}-move-up-enter - `]:{animationName:tn,animationDuration:Jr,animationPlayState:"paused",animationTimingFunction:br},[` - ${ti}-move-up-appear${ti}-move-up-appear-active, - ${ti}-move-up-enter${ti}-move-up-enter-active - `]:{animationPlayState:"running"},[`${ti}-move-up-leave`]:{animationName:Gn,animationDuration:Jr,animationPlayState:"paused",animationTimingFunction:br},[`${ti}-move-up-leave${ti}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[ti]:{[`${Ar}-wrapper`]:Object.assign({},Ei)}},{[`${ti}-notice-pure-panel`]:Object.assign(Object.assign({},Ei),{padding:0,textAlign:"start"})}]};var _r=(0,gi.Z)("Message",Er=>{const ti=(0,no.TS)(Er,{height:150});return[To(ti)]},Er=>({zIndexPopup:Er.zIndexPopupBase+10,contentBg:Er.colorBgElevated,contentPadding:`${(Er.controlHeightLG-Er.fontSize*Er.lineHeight)/2}px ${Er.paddingSM}px`})),Bo=function(Er,ti){var di={};for(var rn in Er)Object.prototype.hasOwnProperty.call(Er,rn)&&ti.indexOf(rn)<0&&(di[rn]=Er[rn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(Er);Qn{let{prefixCls:ti,type:di,icon:rn,children:Qn}=Er;return A.createElement("div",{className:S()(`${ti}-custom-content`,`${ti}-${di}`)},rn||hs[di],A.createElement("span",null,Qn))};var ho=Er=>{const{prefixCls:ti,className:di,type:rn,icon:Qn,content:Xr}=Er,ao=Bo(Er,["prefixCls","className","type","icon","content"]),{getPrefixCls:as}=A.useContext(Bn.E_),Bt=ti||as("message"),[,pn]=_r(Bt);return A.createElement(Ie,Object.assign({},ao,{prefixCls:Bt,className:S()(di,pn,`${Bt}-notice-pure-panel`),eventKey:"pure",duration:null,content:A.createElement(ve,{prefixCls:Bt,type:rn,icon:Qn},Xr)}))},go=m(62208),ji=m(27288);function No(Er,ti){return{motionName:ti!=null?ti:`${Er}-move-up`}}function dn(Er){let ti;const di=new Promise(Qn=>{ti=Er(()=>{Qn(!0)})}),rn=()=>{ti==null||ti()};return rn.then=(Qn,Xr)=>di.then(Qn,Xr),rn.promise=di,rn}var Ve=function(Er,ti){var di={};for(var rn in Er)Object.prototype.hasOwnProperty.call(Er,rn)&&ti.indexOf(rn)<0&&(di[rn]=Er[rn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(Er);Qn{let{children:ti,prefixCls:di}=Er;const[,rn]=_r(di);return A.createElement(me,{classNames:{list:rn,notice:rn}},ti)},sn=(Er,ti)=>{let{prefixCls:di,key:rn}=ti;return A.createElement(Wt,{prefixCls:di,key:rn},Er)},Mt=A.forwardRef((Er,ti)=>{const{top:di,prefixCls:rn,getContainer:Qn,maxCount:Xr,duration:ao=Ct,rtl:as,transitionName:Bt,onAllRemoved:pn}=Er,{getPrefixCls:br,getPopupContainer:Jr,message:vi}=A.useContext(Bn.E_),Di=rn||br("message"),co=()=>({left:"50%",transform:"translateX(-50%)",top:di!=null?di:yt}),Qr=()=>S()({[`${Di}-rtl`]:as}),oi=()=>No(Di,Bt),Zi=A.createElement("span",{className:`${Di}-close-x`},A.createElement(go.Z,{className:`${Di}-close-icon`})),[Ar,tn]=yn({prefixCls:Di,style:co,className:Qr,motion:oi,closable:!1,closeIcon:Zi,duration:ao,getContainer:()=>(Qn==null?void 0:Qn())||(Jr==null?void 0:Jr())||document.body,maxCount:Xr,onAllRemoved:pn,renderNotifications:sn});return A.useImperativeHandle(ti,()=>Object.assign(Object.assign({},Ar),{prefixCls:Di,message:vi})),tn});let Tt=0;function xt(Er){const ti=A.useRef(null),di=(0,ji.ln)("Message");return[A.useMemo(()=>{const Qn=pn=>{var br;(br=ti.current)===null||br===void 0||br.close(pn)},Xr=pn=>{if(!ti.current){const Li=()=>{};return Li.then=()=>{},Li}const{open:br,prefixCls:Jr,message:vi}=ti.current,Di=`${Jr}-notice`,{content:co,icon:Qr,type:oi,key:Zi,className:Ar,style:tn,onClose:Gn}=pn,Ei=Ve(pn,["content","icon","type","key","className","style","onClose"]);let In=Zi;return In==null&&(Tt+=1,In=`antd-message-${Tt}`),dn(Li=>(br(Object.assign(Object.assign({},Ei),{key:In,content:A.createElement(ve,{prefixCls:Jr,type:oi,icon:Qr},co),placement:"top",className:S()(oi&&`${Di}-${oi}`,Ar,vi==null?void 0:vi.className),style:Object.assign(Object.assign({},vi==null?void 0:vi.style),tn),onClose:()=>{Gn==null||Gn(),Li()}})),()=>{Qn(In)}))},as={open:Xr,destroy:pn=>{var br;pn!==void 0?Qn(pn):(br=ti.current)===null||br===void 0||br.destroy()}};return["info","success","warning","error","loading"].forEach(pn=>{const br=(Jr,vi,Di)=>{let co;Jr&&typeof Jr=="object"&&"content"in Jr?co=Jr:co={content:Jr};let Qr,oi;typeof vi=="function"?oi=vi:(Qr=vi,oi=Di);const Zi=Object.assign(Object.assign({onClose:oi,duration:Qr},co),{type:pn});return Xr(Zi)};as[pn]=br}),as},[]),A.createElement(Mt,Object.assign({key:"message-holder"},Er,{ref:ti}))]}function Ht(Er){return xt(Er)}let Vn=null,en=Er=>Er(),fr=[],Kr={};function ri(){const{prefixCls:Er,getContainer:ti,duration:di,rtl:rn,maxCount:Qn,top:Xr}=Kr,ao=Er!=null?Er:(0,z.w6)().getPrefixCls("message"),as=(ti==null?void 0:ti())||document.body;return{prefixCls:ao,getContainer:()=>as,duration:di,rtl:rn,maxCount:Qn,top:Xr}}const si=A.forwardRef((Er,ti)=>{const[di,rn]=A.useState(ri),[Qn,Xr]=xt(di),ao=(0,z.w6)(),as=ao.getRootPrefixCls(),Bt=ao.getIconPrefixCls(),pn=ao.getTheme(),br=()=>{rn(ri)};return A.useEffect(br,[]),A.useImperativeHandle(ti,()=>{const Jr=Object.assign({},Qn);return Object.keys(Jr).forEach(vi=>{Jr[vi]=function(){return br(),Qn[vi].apply(Qn,arguments)}}),{instance:Jr,sync:br}}),A.createElement(z.ZP,{prefixCls:as,iconPrefixCls:Bt,theme:pn},Xr)});function uo(){if(!Vn){const Er=document.createDocumentFragment(),ti={fragment:Er};Vn=ti,en(()=>{(0,b.s)(A.createElement(si,{ref:di=>{const{instance:rn,sync:Qn}=di||{};Promise.resolve().then(()=>{!ti.instance&&rn&&(ti.instance=rn,ti.sync=Qn,uo())})}}),Er)});return}Vn.instance&&(fr.forEach(Er=>{const{type:ti,skipped:di}=Er;if(!di)switch(ti){case"open":{en(()=>{const rn=Vn.instance.open(Object.assign(Object.assign({},Kr),Er.config));rn==null||rn.then(Er.resolve),Er.setCloseFn(rn)});break}case"destroy":en(()=>{Vn==null||Vn.instance.destroy(Er.key)});break;default:en(()=>{var rn;const Qn=(rn=Vn.instance)[ti].apply(rn,(0,y.Z)(Er.args));Qn==null||Qn.then(Er.resolve),Er.setCloseFn(Qn)})}}),fr=[])}function Qo(Er){Kr=Object.assign(Object.assign({},Kr),Er),en(()=>{var ti;(ti=Vn==null?void 0:Vn.sync)===null||ti===void 0||ti.call(Vn)})}function _n(Er){const ti=dn(di=>{let rn;const Qn={type:"open",config:Er,resolve:di,setCloseFn:Xr=>{rn=Xr}};return fr.push(Qn),()=>{rn?en(()=>{rn()}):Qn.skipped=!0}});return uo(),ti}function Vr(Er,ti){const di=dn(rn=>{let Qn;const Xr={type:Er,args:ti,resolve:rn,setCloseFn:ao=>{Qn=ao}};return fr.push(Xr),()=>{Qn?en(()=>{Qn()}):Xr.skipped=!0}});return uo(),di}function qr(Er){fr.push({type:"destroy",key:Er}),uo()}const Ui=["success","info","warning","error","loading"],Us={open:_n,destroy:qr,config:Qo,useMessage:Ht,_InternalPanelDoNotUseOrYouWillBeFired:ho};Ui.forEach(Er=>{Us[Er]=function(){for(var ti=arguments.length,di=new Array(ti),rn=0;rn{};let Kn=null,Or=null;var mi=Us},39124:function(nt,V,m){"use strict";m.d(V,{Z:function(){return dl}});var y=m(74902),A=m(38135),b=m(67294),z=m(94740),k=m(76278),N=m(41322),w=m(26702),I=m(1558),C=m(94184),f=m.n(C),S=m(33603),P=m(10110),W=m(86743);const te=b.createContext({}),{Provider:q}=te;var he=()=>{const{autoFocusButton:$r,cancelButtonProps:er,cancelTextLocale:Tr,isSilent:pr,mergedOkCancel:ci,rootPrefixCls:Eo,close:mo,onCancel:Ts,onConfirm:xs}=(0,b.useContext)(te);return ci?b.createElement(W.Z,{isSilent:pr,actionFn:Ts,close:function(){mo==null||mo.apply(void 0,arguments),xs==null||xs(!1)},autoFocus:$r==="cancel",buttonProps:er,prefixCls:`${Eo}-btn`},Tr):null},fe=()=>{const{autoFocusButton:$r,close:er,isSilent:Tr,okButtonProps:pr,rootPrefixCls:ci,okTextLocale:Eo,okType:mo,onConfirm:Ts,onOk:xs}=(0,b.useContext)(te);return b.createElement(W.Z,{isSilent:Tr,type:mo||"primary",actionFn:xs,close:function(){er==null||er.apply(void 0,arguments),Ts==null||Ts(!0)},autoFocus:$r==="ok",buttonProps:pr,prefixCls:`${ci}-btn`},Eo)},ke=m(62208),Ie=m(87462),Be=m(97685),be=m(2788),me=b.createContext({}),ye=m(1413),_e=m(94999),Ce=m(7028),De=m(15105),ge=m(64217);function je($r,er,Tr){var pr=er;return!pr&&Tr&&(pr="".concat($r,"-").concat(Tr)),pr}function we($r,er){var Tr=$r["page".concat(er?"Y":"X","Offset")],pr="scroll".concat(er?"Top":"Left");if(typeof Tr!="number"){var ci=$r.document;Tr=ci.documentElement[pr],typeof Tr!="number"&&(Tr=ci.body[pr])}return Tr}function Pt($r){var er=$r.getBoundingClientRect(),Tr={left:er.left,top:er.top},pr=$r.ownerDocument,ci=pr.defaultView||pr.parentWindow;return Tr.left+=we(ci),Tr.top+=we(ci,!0),Tr}var dt=m(82225),He=m(42550),bt=b.memo(function($r){var er=$r.children;return er},function($r,er){var Tr=er.shouldUpdate;return!Tr}),ft={width:0,height:0,overflow:"hidden",outline:"none"},$t=b.forwardRef(function($r,er){var Tr=$r.prefixCls,pr=$r.className,ci=$r.style,Eo=$r.title,mo=$r.ariaId,Ts=$r.footer,xs=$r.closable,Sr=$r.closeIcon,ui=$r.onClose,Xt=$r.children,gn=$r.bodyStyle,En=$r.bodyProps,tt=$r.modalRender,at=$r.onMouseDown,gt=$r.onMouseUp,Ne=$r.holderRef,lt=$r.visible,St=$r.forceRender,ln=$r.width,jn=$r.height,Cr=$r.classNames,ki=$r.styles,Vi=b.useContext(me),Ki=Vi.panel,fs=(0,He.x1)(Ne,Ki),Ns=(0,b.useRef)(),Bs=(0,b.useRef)();b.useImperativeHandle(er,function(){return{focus:function(){var Fa;(Fa=Ns.current)===null||Fa===void 0||Fa.focus()},changeActive:function(Fa){var ml=document,la=ml.activeElement;Fa&&la===Bs.current?Ns.current.focus():!Fa&&la===Ns.current&&Bs.current.focus()}}});var _a={};ln!==void 0&&(_a.width=ln),jn!==void 0&&(_a.height=jn);var oo;Ts&&(oo=b.createElement("div",{className:f()("".concat(Tr,"-footer"),Cr==null?void 0:Cr.footer),style:(0,ye.Z)({},ki==null?void 0:ki.footer)},Ts));var Ds;Eo&&(Ds=b.createElement("div",{className:f()("".concat(Tr,"-header"),Cr==null?void 0:Cr.header),style:(0,ye.Z)({},ki==null?void 0:ki.header)},b.createElement("div",{className:"".concat(Tr,"-title"),id:mo},Eo)));var oa;xs&&(oa=b.createElement("button",{type:"button",onClick:ui,"aria-label":"Close",className:"".concat(Tr,"-close")},Sr||b.createElement("span",{className:"".concat(Tr,"-close-x")})));var va=b.createElement("div",{className:f()("".concat(Tr,"-content"),Cr==null?void 0:Cr.content),style:ki==null?void 0:ki.content},oa,Ds,b.createElement("div",(0,Ie.Z)({className:f()("".concat(Tr,"-body"),Cr==null?void 0:Cr.body),style:(0,ye.Z)((0,ye.Z)({},gn),ki==null?void 0:ki.body)},En),Xt),oo);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Eo?mo:null,"aria-modal":"true",ref:fs,style:(0,ye.Z)((0,ye.Z)({},ci),_a),className:f()(Tr,pr),onMouseDown:at,onMouseUp:gt},b.createElement("div",{tabIndex:0,ref:Ns,style:ft,"aria-hidden":"true"}),b.createElement(bt,{shouldUpdate:lt||St},tt?tt(va):va),b.createElement("div",{tabIndex:0,ref:Bs,style:ft,"aria-hidden":"true"}))}),vt=$t,yn=b.forwardRef(function($r,er){var Tr=$r.prefixCls,pr=$r.title,ci=$r.style,Eo=$r.className,mo=$r.visible,Ts=$r.forceRender,xs=$r.destroyOnClose,Sr=$r.motionName,ui=$r.ariaId,Xt=$r.onVisibleChanged,gn=$r.mousePosition,En=(0,b.useRef)(),tt=b.useState(),at=(0,Be.Z)(tt,2),gt=at[0],Ne=at[1],lt={};gt&&(lt.transformOrigin=gt);function St(){var ln=Pt(En.current);Ne(gn?"".concat(gn.x-ln.left,"px ").concat(gn.y-ln.top,"px"):"")}return b.createElement(dt.ZP,{visible:mo,onVisibleChanged:Xt,onAppearPrepare:St,onEnterPrepare:St,forceRender:Ts,motionName:Sr,removeOnLeave:xs,ref:En},function(ln,jn){var Cr=ln.className,ki=ln.style;return b.createElement(vt,(0,Ie.Z)({},$r,{ref:er,title:pr,ariaId:ui,prefixCls:Tr,holderRef:jn,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({},ki),ci),lt),className:f()(Eo,Cr)}))})});yn.displayName="Content";var Bn=yn;function Lr($r){var er=$r.prefixCls,Tr=$r.style,pr=$r.visible,ci=$r.maskProps,Eo=$r.motionName,mo=$r.className;return b.createElement(dt.ZP,{key:"mask",visible:pr,motionName:Eo,leavedClassName:"".concat(er,"-mask-hidden")},function(Ts,xs){var Sr=Ts.className,ui=Ts.style;return b.createElement("div",(0,Ie.Z)({ref:xs,style:(0,ye.Z)((0,ye.Z)({},ui),Tr),className:f()("".concat(er,"-mask"),Sr,mo)},ci))})}var ii=m(56790);function gi($r){var er=$r.prefixCls,Tr=er===void 0?"rc-dialog":er,pr=$r.zIndex,ci=$r.visible,Eo=ci===void 0?!1:ci,mo=$r.keyboard,Ts=mo===void 0?!0:mo,xs=$r.focusTriggerAfterClose,Sr=xs===void 0?!0:xs,ui=$r.wrapStyle,Xt=$r.wrapClassName,gn=$r.wrapProps,En=$r.onClose,tt=$r.afterOpenChange,at=$r.afterClose,gt=$r.transitionName,Ne=$r.animation,lt=$r.closable,St=lt===void 0?!0:lt,ln=$r.mask,jn=ln===void 0?!0:ln,Cr=$r.maskTransitionName,ki=$r.maskAnimation,Vi=$r.maskClosable,Ki=Vi===void 0?!0:Vi,fs=$r.maskStyle,Ns=$r.maskProps,Bs=$r.rootClassName,_a=$r.classNames,oo=$r.styles,Ds=(0,b.useRef)(),oa=(0,b.useRef)(),va=(0,b.useRef)(),Bl=b.useState(Eo),Fa=(0,Be.Z)(Bl,2),ml=Fa[0],la=Fa[1],Nl=(0,Ce.Z)();function vs(){(0,_e.Z)(oa.current,document.activeElement)||(Ds.current=document.activeElement)}function Hi(){if(!(0,_e.Z)(oa.current,document.activeElement)){var eo;(eo=va.current)===null||eo===void 0||eo.focus()}}function to(eo){if(eo)Hi();else{if(la(!1),jn&&Ds.current&&Sr){try{Ds.current.focus({preventScroll:!0})}catch(ds){}Ds.current=null}ml&&(at==null||at())}tt==null||tt(eo)}function sa(eo){En==null||En(eo)}var Cs=(0,b.useRef)(!1),Ka=(0,b.useRef)(),Wu=function(){clearTimeout(Ka.current),Cs.current=!0},rc=function(){Ka.current=setTimeout(function(){Cs.current=!1})},Pc=null;Ki&&(Pc=function(ds){Cs.current?Cs.current=!1:oa.current===ds.target&&sa(ds)});function vo(eo){if(Ts&&eo.keyCode===De.Z.ESC){eo.stopPropagation(),sa(eo);return}Eo&&eo.keyCode===De.Z.TAB&&va.current.changeActive(!eo.shiftKey)}return(0,b.useEffect)(function(){Eo&&(la(!0),vs())},[Eo]),(0,b.useEffect)(function(){return function(){clearTimeout(Ka.current)}},[]),b.createElement("div",(0,Ie.Z)({className:f()("".concat(Tr,"-root"),Bs)},(0,ge.Z)($r,{data:!0})),b.createElement(Lr,{prefixCls:Tr,visible:jn&&Eo,motionName:je(Tr,Cr,ki),style:(0,ye.Z)((0,ye.Z)({zIndex:pr},fs),oo==null?void 0:oo.mask),maskProps:Ns,className:_a==null?void 0:_a.mask}),b.createElement("div",(0,Ie.Z)({tabIndex:-1,onKeyDown:vo,className:f()("".concat(Tr,"-wrap"),Xt,_a==null?void 0:_a.wrapper),ref:oa,onClick:Pc,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({zIndex:pr},ui),oo==null?void 0:oo.wrapper),{},{display:ml?null:"none"})},gn),b.createElement(Bn,(0,Ie.Z)({},$r,{onMouseDown:Wu,onMouseUp:rc,ref:va,closable:St,ariaId:Nl,prefixCls:Tr,visible:Eo&&ml,onClose:sa,onVisibleChanged:to,motionName:je(Tr,gt,Ne)}))))}var no=function(er){var Tr=er.visible,pr=er.getContainer,ci=er.forceRender,Eo=er.destroyOnClose,mo=Eo===void 0?!1:Eo,Ts=er.afterClose,xs=er.panelRef,Sr=b.useState(Tr),ui=(0,Be.Z)(Sr,2),Xt=ui[0],gn=ui[1],En=b.useMemo(function(){return{panel:xs}},[xs]);return b.useEffect(function(){Tr&&gn(!0)},[Tr]),!ci&&mo&&!Xt?null:b.createElement(me.Provider,{value:En},b.createElement(be.Z,{open:Tr||ci||Xt,autoDestroy:!1,getContainer:pr,autoLock:Tr||Xt},b.createElement(gi,(0,Ie.Z)({},er,{destroyOnClose:mo,afterClose:function(){Ts==null||Ts(),gn(!1)}}))))};no.displayName="Dialog";var To=no,_r=To,Bo=m(69760),hs=m(98924);const ve=()=>(0,hs.Z)()&&window.document.documentElement;var So=m(53124),ho=m(65223),go=m(4173);function ji(){}const No=b.createContext({add:ji,remove:ji});function dn($r){const er=b.useContext(No),Tr=b.useRef();return(0,ii.zX)(ci=>{if(ci){const Eo=$r?ci.querySelector($r):ci;er.add(Eo),Tr.current=Eo}else er.remove(Tr.current)})}var Ve=null,yt=m(98866),Ct=m(15867),sn=()=>{const{cancelButtonProps:$r,cancelTextLocale:er,onCancel:Tr}=(0,b.useContext)(te);return b.createElement(Ct.ZP,Object.assign({onClick:Tr},$r),er)},Mt=m(33671),xt=()=>{const{confirmLoading:$r,okButtonProps:er,okType:Tr,okTextLocale:pr,onOk:ci}=(0,b.useContext)(te);return b.createElement(Ct.ZP,Object.assign({},(0,Mt.nx)(Tr),{loading:$r,onClick:ci},er),pr)},Ht=m(83008);function Vn($r,er){return b.createElement("span",{className:`${$r}-close-x`},er||b.createElement(ke.Z,{className:`${$r}-close-icon`}))}const en=$r=>{const{okText:er,okType:Tr="primary",cancelText:pr,confirmLoading:ci,onOk:Eo,onCancel:mo,okButtonProps:Ts,cancelButtonProps:xs,footer:Sr}=$r,[ui]=(0,P.Z)("Modal",(0,Ht.A)()),Xt=er||(ui==null?void 0:ui.okText),gn=pr||(ui==null?void 0:ui.cancelText),En={confirmLoading:ci,okButtonProps:Ts,cancelButtonProps:xs,okTextLocale:Xt,cancelTextLocale:gn,okType:Tr,onOk:Eo,onCancel:mo},tt=b.useMemo(()=>En,(0,y.Z)(Object.values(En)));let at;return typeof Sr=="function"||typeof Sr=="undefined"?(at=b.createElement(b.Fragment,null,b.createElement(sn,null),b.createElement(xt,null)),typeof Sr=="function"&&(at=Sr(at,{OkBtn:xt,CancelBtn:sn})),at=b.createElement(q,{value:tt},at)):at=Sr,b.createElement(yt.n,{disabled:!1},at)};var fr=m(14747),Kr=m(16932),ri=m(50438),si=m(45503),uo=m(67968);function Qo($r){return{position:$r,inset:0}}const _n=$r=>{const{componentCls:er,antCls:Tr}=$r;return[{[`${er}-root`]:{[`${er}${Tr}-zoom-enter, ${er}${Tr}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:$r.motionDurationSlow,userSelect:"none"},[`${er}${Tr}-zoom-leave ${er}-content`]:{pointerEvents:"none"},[`${er}-mask`]:Object.assign(Object.assign({},Qo("fixed")),{zIndex:$r.zIndexPopupBase,height:"100%",backgroundColor:$r.colorBgMask,pointerEvents:"none",[`${er}-hidden`]:{display:"none"}}),[`${er}-wrap`]:Object.assign(Object.assign({},Qo("fixed")),{zIndex:$r.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${er}${Tr}-zoom-enter), &:has(${er}${Tr}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${er}-root`]:(0,Kr.J$)($r)}]},Vr=$r=>{const{componentCls:er}=$r;return[{[`${er}-root`]:{[`${er}-wrap-rtl`]:{direction:"rtl"},[`${er}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[er]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${$r.screenSMMax})`]:{[er]:{maxWidth:"calc(100vw - 16px)",margin:`${$r.marginXS} auto`},[`${er}-centered`]:{[er]:{flex:1}}}}},{[er]:Object.assign(Object.assign({},(0,fr.Wf)($r)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${$r.margin*2}px)`,margin:"0 auto",paddingBottom:$r.paddingLG,[`${er}-title`]:{margin:0,color:$r.titleColor,fontWeight:$r.fontWeightStrong,fontSize:$r.titleFontSize,lineHeight:$r.titleLineHeight,wordWrap:"break-word"},[`${er}-content`]:{position:"relative",backgroundColor:$r.contentBg,backgroundClip:"padding-box",border:0,borderRadius:$r.borderRadiusLG,boxShadow:$r.boxShadow,pointerEvents:"auto",padding:`${$r.paddingMD}px ${$r.paddingContentHorizontalLG}px`},[`${er}-close`]:Object.assign({position:"absolute",top:($r.modalHeaderHeight-$r.modalCloseBtnSize)/2,insetInlineEnd:($r.modalHeaderHeight-$r.modalCloseBtnSize)/2,zIndex:$r.zIndexPopupBase+10,padding:0,color:$r.modalCloseIconColor,fontWeight:$r.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:$r.borderRadiusSM,width:$r.modalCloseBtnSize,height:$r.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${$r.motionDurationMid}, background-color ${$r.motionDurationMid}`,"&-x":{display:"flex",fontSize:$r.fontSizeLG,fontStyle:"normal",lineHeight:`${$r.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:$r.modalIconHoverColor,backgroundColor:$r.wireframe?"transparent":$r.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:$r.wireframe?"transparent":$r.colorFillContentHover}},(0,fr.Qy)($r)),[`${er}-header`]:{color:$r.colorText,background:$r.headerBg,borderRadius:`${$r.borderRadiusLG}px ${$r.borderRadiusLG}px 0 0`,marginBottom:$r.marginXS},[`${er}-body`]:{fontSize:$r.fontSize,lineHeight:$r.lineHeight,wordWrap:"break-word"},[`${er}-footer`]:{textAlign:"end",background:$r.footerBg,marginTop:$r.marginSM,[`${$r.antCls}-btn + ${$r.antCls}-btn:not(${$r.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:$r.marginXS}},[`${er}-open`]:{overflow:"hidden"}})},{[`${er}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${er}-content, - ${er}-body, - ${er}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${er}-confirm-body`]:{marginBottom:"auto"}}}]},qr=$r=>{const{componentCls:er,antCls:Tr}=$r,pr=`${er}-confirm`;return{[er]:{[`${er}-content`]:{padding:0},[`${er}-header`]:{padding:$r.modalHeaderPadding,borderBottom:`${$r.modalHeaderBorderWidth}px ${$r.modalHeaderBorderStyle} ${$r.modalHeaderBorderColorSplit}`,marginBottom:0},[`${er}-body`]:{padding:$r.modalBodyPadding},[`${er}-footer`]:{padding:`${$r.modalFooterPaddingVertical}px ${$r.modalFooterPaddingHorizontal}px`,borderTop:`${$r.modalFooterBorderWidth}px ${$r.modalFooterBorderStyle} ${$r.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${$r.borderRadiusLG}px ${$r.borderRadiusLG}px`,marginTop:0}},[pr]:{[`${Tr}-modal-body`]:{padding:`${$r.padding*2}px ${$r.padding*2}px ${$r.paddingLG}px`},[`${pr}-body > ${$r.iconCls}`]:{marginInlineEnd:$r.margin},[`${pr}-btns`]:{marginTop:$r.marginLG}}}},Ui=$r=>{const{componentCls:er}=$r;return{[`${er}-root`]:{[`${er}-wrap-rtl`]:{direction:"rtl",[`${er}-confirm-body`]:{direction:"rtl"}}}}},xo=$r=>{const er=$r.padding,Tr=$r.fontSizeHeading5,pr=$r.lineHeightHeading5;return(0,si.TS)($r,{modalBodyPadding:$r.paddingLG,modalHeaderPadding:`${er}px ${$r.paddingLG}px`,modalHeaderBorderWidth:$r.lineWidth,modalHeaderBorderStyle:$r.lineType,modalHeaderBorderColorSplit:$r.colorSplit,modalHeaderHeight:pr*Tr+er*2,modalFooterBorderColorSplit:$r.colorSplit,modalFooterBorderStyle:$r.lineType,modalFooterPaddingVertical:$r.paddingXS,modalFooterPaddingHorizontal:$r.padding,modalFooterBorderWidth:$r.lineWidth,modalIconHoverColor:$r.colorIconHover,modalCloseIconColor:$r.colorIcon,modalCloseBtnSize:$r.fontSize*$r.lineHeight,modalConfirmIconSize:$r.fontSize*$r.lineHeight})},Us=$r=>({footerBg:"transparent",headerBg:$r.colorBgElevated,titleLineHeight:$r.lineHeightHeading5,titleFontSize:$r.fontSizeHeading5,contentBg:$r.colorBgElevated,titleColor:$r.colorTextHeading});var zn=(0,uo.Z)("Modal",$r=>{const er=xo($r);return[Vr(er),Ui(er),_n(er),$r.wireframe&&qr(er),(0,ri._y)(er,"zoom")]},Us),Kn=function($r,er){var Tr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Tr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{Or={x:$r.pageX,y:$r.pageY},setTimeout(()=>{Or=null},100)};ve()&&document.documentElement.addEventListener("click",mi,!0);var ti=$r=>{var er;const{getPopupContainer:Tr,getPrefixCls:pr,direction:ci,modal:Eo}=b.useContext(So.E_),mo=Bl=>{const{onCancel:Fa}=$r;Fa==null||Fa(Bl)},Ts=Bl=>{const{onOk:Fa}=$r;Fa==null||Fa(Bl)},{prefixCls:xs,className:Sr,rootClassName:ui,open:Xt,wrapClassName:gn,centered:En,getContainer:tt,closeIcon:at,closable:gt,focusTriggerAfterClose:Ne=!0,style:lt,visible:St,width:ln=520,footer:jn,classNames:Cr,styles:ki}=$r,Vi=Kn($r,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Ki=pr("modal",xs),fs=pr(),[Ns,Bs]=zn(Ki),_a=f()(gn,{[`${Ki}-centered`]:!!En,[`${Ki}-wrap-rtl`]:ci==="rtl"}),oo=jn!==null&&b.createElement(en,Object.assign({},$r,{onOk:Ts,onCancel:mo})),[Ds,oa]=(0,Bo.Z)(gt,at,Bl=>Vn(Ki,Bl),b.createElement(ke.Z,{className:`${Ki}-close-icon`}),!0),va=dn(`.${Ki}-content`);return Ns(b.createElement(go.BR,null,b.createElement(ho.Ux,{status:!0,override:!0},b.createElement(_r,Object.assign({width:ln},Vi,{getContainer:tt===void 0?Tr:tt,prefixCls:Ki,rootClassName:f()(Bs,ui),footer:oo,visible:Xt!=null?Xt:St,mousePosition:(er=Vi.mousePosition)!==null&&er!==void 0?er:Or,onClose:mo,closable:Ds,closeIcon:oa,focusTriggerAfterClose:Ne,transitionName:(0,S.m)(fs,"zoom",$r.transitionName),maskTransitionName:(0,S.m)(fs,"fade",$r.maskTransitionName),className:f()(Bs,Sr,Eo==null?void 0:Eo.className),style:Object.assign(Object.assign({},Eo==null?void 0:Eo.style),lt),classNames:Object.assign(Object.assign({wrapper:_a},Eo==null?void 0:Eo.classNames),Cr),styles:Object.assign(Object.assign({},Eo==null?void 0:Eo.styles),ki),panelRef:va})))))};const di=$r=>{const{componentCls:er,titleFontSize:Tr,titleLineHeight:pr,modalConfirmIconSize:ci,fontSize:Eo,lineHeight:mo}=$r,Ts=`${er}-confirm`,xs=Math.round(Tr*pr),Sr=Math.round(Eo*mo);return{[Ts]:{"&-rtl":{direction:"rtl"},[`${$r.antCls}-modal-header`]:{display:"none"},[`${Ts}-body-wrapper`]:Object.assign({},(0,fr.dF)()),[`${Ts}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${$r.iconCls}`]:{flex:"none",fontSize:ci,marginInlineEnd:$r.marginSM,marginTop:(Sr-ci)/2},[`&-has-title > ${$r.iconCls}`]:{marginTop:(xs-ci)/2}},[`${Ts}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:$r.marginXS,maxWidth:`calc(100% - ${$r.modalConfirmIconSize+$r.marginSM}px)`},[`${Ts}-title`]:{color:$r.colorTextHeading,fontWeight:$r.fontWeightStrong,fontSize:Tr,lineHeight:pr},[`${Ts}-content`]:{color:$r.colorText,fontSize:Eo,lineHeight:mo},[`${Ts}-btns`]:{textAlign:"end",marginTop:$r.marginSM,[`${$r.antCls}-btn + ${$r.antCls}-btn`]:{marginBottom:0,marginInlineStart:$r.marginXS}}},[`${Ts}-error ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorError},[`${Ts}-warning ${Ts}-body > ${$r.iconCls}, - ${Ts}-confirm ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorWarning},[`${Ts}-info ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorInfo},[`${Ts}-success ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorSuccess}}};var rn=(0,uo.b)(["Modal","confirm"],$r=>{const er=xo($r);return[di(er)]},Us,{order:-1e3}),Qn=function($r,er){var Tr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Tr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);cilt,(0,y.Z)(Object.values(lt))),ln=b.createElement(b.Fragment,null,b.createElement(he,null),b.createElement(fe,null)),jn=$r.title!==void 0&&$r.title!==null,Cr=`${Eo}-body`;return b.createElement("div",{className:`${Eo}-body-wrapper`},b.createElement("div",{className:f()(Cr,{[`${Cr}-has-title`]:jn})},Xt,b.createElement("div",{className:`${Eo}-paragraph`},jn&&b.createElement("span",{className:`${Eo}-title`},$r.title),b.createElement("div",{className:`${Eo}-content`},$r.content))),xs===void 0||typeof xs=="function"?b.createElement(q,{value:St},b.createElement("div",{className:`${Eo}-btns`},typeof xs=="function"?xs(ln,{OkBtn:fe,CancelBtn:he}):ln)):xs,b.createElement(rn,{prefixCls:er}))}var as=$r=>{const{close:er,zIndex:Tr,afterClose:pr,open:ci,keyboard:Eo,centered:mo,getContainer:Ts,maskStyle:xs,direction:Sr,prefixCls:ui,wrapClassName:Xt,rootPrefixCls:gn,iconPrefixCls:En,theme:tt,bodyStyle:at,closable:gt=!1,closeIcon:Ne,modalRender:lt,focusTriggerAfterClose:St,onConfirm:ln}=$r,jn=`${ui}-confirm`,Cr=$r.width||416,ki=$r.style||{},Vi=$r.mask===void 0?!0:$r.mask,Ki=$r.maskClosable===void 0?!1:$r.maskClosable,fs=f()(jn,`${jn}-${$r.type}`,{[`${jn}-rtl`]:Sr==="rtl"},$r.className);return b.createElement(z.ZP,{prefixCls:gn,iconPrefixCls:En,direction:Sr,theme:tt},b.createElement(ti,{prefixCls:ui,className:fs,wrapClassName:f()({[`${jn}-centered`]:!!$r.centered},Xt),onCancel:()=>{er==null||er({triggerCancel:!0}),ln==null||ln(!1)},open:ci,title:"",footer:null,transitionName:(0,S.m)(gn||"","zoom",$r.transitionName),maskTransitionName:(0,S.m)(gn||"","fade",$r.maskTransitionName),mask:Vi,maskClosable:Ki,style:ki,styles:{body:at,mask:xs},width:Cr,zIndex:Tr,afterClose:pr,keyboard:Eo,centered:mo,getContainer:Ts,closable:gt,closeIcon:Ne,modalRender:lt,focusTriggerAfterClose:St},b.createElement(Xr,Object.assign({},$r,{confirmPrefixCls:jn}))))},pn=[],br=function($r,er){var Tr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Tr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);cign&&gn.triggerCancel);$r.onCancel&&Xt&&$r.onCancel.apply($r,[()=>{}].concat((0,y.Z)(Sr.slice(1))));for(let gn=0;gn{const tt=(0,Ht.A)(),{getPrefixCls:at,getIconPrefixCls:gt,getTheme:Ne}=(0,z.w6)(),lt=at(void 0,vi()),St=Xt||`${lt}-modal`,ln=gt(),jn=Ne();let Cr=gn;Cr===!1&&(Cr=void 0),(0,A.s)(b.createElement(as,Object.assign({},En,{getContainer:Cr,prefixCls:St,rootPrefixCls:lt,iconPrefixCls:ln,okText:Sr,locale:tt,theme:jn,cancelText:ui||tt.cancelText})),er)})}function mo(){for(var xs=arguments.length,Sr=new Array(xs),ui=0;ui{typeof $r.afterClose=="function"&&$r.afterClose(),ci.apply(this,Sr)}}),Tr.visible&&delete Tr.visible,Eo(Tr)}function Ts(xs){typeof xs=="function"?Tr=xs(Tr):Tr=Object.assign(Object.assign({},Tr),xs),Eo(Tr)}return Eo(Tr),pn.push(mo),{destroy:mo,update:Ts}}function co($r){return Object.assign(Object.assign({},$r),{type:"warning"})}function Qr($r){return Object.assign(Object.assign({},$r),{type:"info"})}function oi($r){return Object.assign(Object.assign({},$r),{type:"success"})}function Zi($r){return Object.assign(Object.assign({},$r),{type:"error"})}function Ar($r){return Object.assign(Object.assign({},$r),{type:"confirm"})}function tn($r){let{rootPrefixCls:er}=$r;Jr=er}var Gn=m(8745),Ei=function($r,er){var Tr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Tr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{const{prefixCls:er,className:Tr,closeIcon:pr,closable:ci,type:Eo,title:mo,children:Ts}=$r,xs=Ei($r,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:Sr}=b.useContext(So.E_),ui=Sr(),Xt=er||Sr("modal"),[,gn]=zn(Xt),En=`${Xt}-confirm`;let tt={};return Eo?tt={closable:ci!=null?ci:!1,title:"",footer:"",children:b.createElement(Xr,Object.assign({},$r,{prefixCls:Xt,confirmPrefixCls:En,rootPrefixCls:ui,content:Ts}))}:tt={closable:ci!=null?ci:!0,title:mo,footer:$r.footer===void 0?b.createElement(en,Object.assign({},$r)):$r.footer,children:Ts},b.createElement(vt,Object.assign({prefixCls:Xt,className:f()(gn,`${Xt}-pure-panel`,Eo&&En,Eo&&`${En}-${Eo}`,Tr)},xs,{closeIcon:Vn(Xt,pr),closable:ci},tt))};var Li=(0,Gn.i)(In);function nr(){const[$r,er]=b.useState([]),Tr=b.useCallback(pr=>(er(ci=>[].concat((0,y.Z)(ci),[pr])),()=>{er(ci=>ci.filter(Eo=>Eo!==pr))}),[]);return[$r,Tr]}var wi=m(88526),Mi=function($r,er){var Tr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Tr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{var Tr,{afterClose:pr,config:ci}=$r,Eo=Mi($r,["afterClose","config"]);const[mo,Ts]=b.useState(!0),[xs,Sr]=b.useState(ci),{direction:ui,getPrefixCls:Xt}=b.useContext(So.E_),gn=Xt("modal"),En=Xt(),tt=()=>{var lt;pr(),(lt=xs.afterClose)===null||lt===void 0||lt.call(xs)},at=function(){Ts(!1);for(var lt=arguments.length,St=new Array(lt),ln=0;lnCr&&Cr.triggerCancel);xs.onCancel&&jn&&xs.onCancel.apply(xs,[()=>{}].concat((0,y.Z)(St.slice(1))))};b.useImperativeHandle(er,()=>({destroy:at,update:lt=>{Sr(St=>Object.assign(Object.assign({},St),lt))}}));const gt=(Tr=xs.okCancel)!==null&&Tr!==void 0?Tr:xs.type==="confirm",[Ne]=(0,P.Z)("Modal",wi.Z.Modal);return b.createElement(as,Object.assign({prefixCls:gn,rootPrefixCls:En},xs,{close:at,open:mo,afterClose:tt,okText:xs.okText||(gt?Ne==null?void 0:Ne.okText:Ne==null?void 0:Ne.justOkText),direction:xs.direction||ui,cancelText:xs.cancelText||(Ne==null?void 0:Ne.cancelText)},Eo))};var qn=b.forwardRef(Fr);let ms=0;const ya=b.memo(b.forwardRef(($r,er)=>{const[Tr,pr]=nr();return b.useImperativeHandle(er,()=>({patchElement:pr}),[]),b.createElement(b.Fragment,null,Tr)}));function ha(){const $r=b.useRef(null),[er,Tr]=b.useState([]);b.useEffect(()=>{er.length&&((0,y.Z)(er).forEach(mo=>{mo()}),Tr([]))},[er]);const pr=b.useCallback(Eo=>function(Ts){var xs;ms+=1;const Sr=b.createRef();let ui;const Xt=new Promise(gt=>{ui=gt});let gn=!1,En;const tt=b.createElement(qn,{key:`modal-${ms}`,config:Eo(Ts),ref:Sr,afterClose:()=>{En==null||En()},isSilent:()=>gn,onConfirm:gt=>{ui(gt)}});return En=(xs=$r.current)===null||xs===void 0?void 0:xs.patchElement(tt),En&&pn.push(En),{destroy:()=>{function gt(){var Ne;(Ne=Sr.current)===null||Ne===void 0||Ne.destroy()}Sr.current?gt():Tr(Ne=>[].concat((0,y.Z)(Ne),[gt]))},update:gt=>{function Ne(){var lt;(lt=Sr.current)===null||lt===void 0||lt.update(gt)}Sr.current?Ne():Tr(lt=>[].concat((0,y.Z)(lt),[Ne]))},then:gt=>(gn=!0,Xt.then(gt))}},[]);return[b.useMemo(()=>({info:pr(Qr),success:pr(oi),error:pr(Zi),warning:pr(co),confirm:pr(Ar)}),[]),b.createElement(ya,{key:"modal-holder",ref:$r})]}var Ws=ha;function Ua($r){return Di(co($r))}const Ao=ti;Ao.useModal=Ws,Ao.info=function(er){return Di(Qr(er))},Ao.success=function(er){return Di(oi(er))},Ao.error=function(er){return Di(Zi(er))},Ao.warning=Ua,Ao.warn=Ua,Ao.confirm=function(er){return Di(Ar(er))},Ao.destroyAll=function(){for(;pn.length;){const er=pn.pop();er&&er()}},Ao.config=tn,Ao._InternalPanelDoNotUseOrYouWillBeFired=Li;var dl=Ao},83008:function(nt,V,m){"use strict";m.d(V,{A:function(){return N},f:function(){return k}});var y=m(88526);let A=Object.assign({},y.Z.Modal),b=[];const z=()=>b.reduce((w,I)=>Object.assign(Object.assign({},w),I),y.Z.Modal);function k(w){if(w){const I=Object.assign({},w);return b.push(I),A=z(),()=>{b=b.filter(C=>C!==I),A=z()}}A=Object.assign({},y.Z.Modal)}function N(){return A}},86738:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ce}});var y=m(26702),A=m(94184),b=m.n(A),z=m(15105),k=m(21770),N=m(98423),w=m(67294),I=m(96159),C=m(53124),f=m(55241),S=m(86743),P=m(81643),W=m(15867),te=m(33671),q=m(10110),ie=m(88526),he=m(60590),de=m(67968);const fe=De=>{const{componentCls:ge,iconCls:je,antCls:we,zIndexPopup:Pt,colorText:dt,colorWarning:He,marginXXS:bt,marginXS:ft,fontSize:$t,fontWeightStrong:vt,colorTextHeading:yn}=De;return{[ge]:{zIndex:Pt,[`&${we}-popover`]:{fontSize:$t},[`${ge}-message`]:{marginBottom:ft,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ge}-message-icon ${je}`]:{color:He,fontSize:$t,lineHeight:1,marginInlineEnd:ft},[`${ge}-title`]:{fontWeight:vt,color:yn,"&:only-child":{fontWeight:"normal"}},[`${ge}-description`]:{marginTop:bt,color:dt}},[`${ge}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ft}}}}};var ke=(0,de.Z)("Popconfirm",De=>fe(De),De=>{const{zIndexPopupBase:ge}=De;return{zIndexPopup:ge+60}},{resetStyle:!1}),Ie=function(De,ge){var je={};for(var we in De)Object.prototype.hasOwnProperty.call(De,we)&&ge.indexOf(we)<0&&(je[we]=De[we]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,we=Object.getOwnPropertySymbols(De);Pt{const{prefixCls:ge,okButtonProps:je,cancelButtonProps:we,title:Pt,description:dt,cancelText:He,okText:bt,okType:ft="primary",icon:$t=w.createElement(y.Z,null),showCancel:vt=!0,close:yn,onConfirm:Bn,onCancel:Lr,onPopupClick:ii}=De,{getPrefixCls:gi}=w.useContext(C.E_),[no]=(0,q.Z)("Popconfirm",ie.Z.Popconfirm),To=(0,P.Z)(Pt),_r=(0,P.Z)(dt);return w.createElement("div",{className:`${ge}-inner-content`,onClick:ii},w.createElement("div",{className:`${ge}-message`},$t&&w.createElement("span",{className:`${ge}-message-icon`},$t),w.createElement("div",{className:`${ge}-message-text`},To&&w.createElement("div",{className:b()(`${ge}-title`)},To),_r&&w.createElement("div",{className:`${ge}-description`},_r))),w.createElement("div",{className:`${ge}-buttons`},vt&&w.createElement(W.ZP,Object.assign({onClick:Lr,size:"small"},we),He!=null?He:no==null?void 0:no.cancelText),w.createElement(S.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,te.nx)(ft)),je),actionFn:Bn,close:yn,prefixCls:gi("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},bt!=null?bt:no==null?void 0:no.okText)))};var me=De=>{const{prefixCls:ge,placement:je,className:we,style:Pt}=De,dt=Ie(De,["prefixCls","placement","className","style"]),{getPrefixCls:He}=w.useContext(C.E_),bt=He("popconfirm",ge),[ft]=ke(bt);return ft(w.createElement(he.ZP,{placement:je,className:b()(bt,we),style:Pt,content:w.createElement(Be,Object.assign({prefixCls:bt},dt))}))},ye=function(De,ge){var je={};for(var we in De)Object.prototype.hasOwnProperty.call(De,we)&&ge.indexOf(we)<0&&(je[we]=De[we]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,we=Object.getOwnPropertySymbols(De);Pt{const{prefixCls:je,placement:we="top",trigger:Pt="click",okType:dt="primary",icon:He=w.createElement(y.Z,null),children:bt,overlayClassName:ft,onOpenChange:$t,onVisibleChange:vt}=De,yn=ye(De,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Bn}=w.useContext(C.E_),[Lr,ii]=(0,k.Z)(!1,{value:De.open,defaultValue:De.defaultOpen}),gi=(go,ji)=>{ii(go,!0),vt==null||vt(go),$t==null||$t(go,ji)},no=go=>{gi(!1,go)},To=go=>{var ji;return(ji=De.onConfirm)===null||ji===void 0?void 0:ji.call(void 0,go)},_r=go=>{var ji;gi(!1,go),(ji=De.onCancel)===null||ji===void 0||ji.call(void 0,go)},Bo=go=>{go.keyCode===z.Z.ESC&&Lr&&gi(!1,go)},hs=go=>{const{disabled:ji=!1}=De;ji||gi(go)},ve=Bn("popconfirm",je),So=b()(ve,ft),[ho]=ke(ve);return ho(w.createElement(f.Z,Object.assign({},(0,N.Z)(yn,["title"]),{trigger:Pt,placement:we,onOpenChange:hs,open:Lr,ref:ge,overlayClassName:So,content:w.createElement(Be,Object.assign({okType:dt,icon:He},De,{prefixCls:ve,close:no,onConfirm:To,onCancel:_r})),"data-popover-inject":!0}),(0,I.Tm)(bt,{onKeyDown:go=>{var ji,No;w.isValidElement(bt)&&((No=bt==null?void 0:(ji=bt.props).onKeyDown)===null||No===void 0||No.call(ji,go)),Bo(go)}})))});_e._InternalPanelDoNotUseOrYouWillBeFired=me;var Ce=_e},60590:function(nt,V,m){"use strict";m.d(V,{t5:function(){return f}});var y=m(94184),A=m.n(y),b=m(92419),z=m(67294),k=m(53124),N=m(81643),w=m(20136),I=function(P,W){var te={};for(var q in P)Object.prototype.hasOwnProperty.call(P,q)&&W.indexOf(q)<0&&(te[q]=P[q]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,q=Object.getOwnPropertySymbols(P);ie{if(!(!W&&!te))return z.createElement(z.Fragment,null,W&&z.createElement("div",{className:`${P}-title`},(0,N.Z)(W)),z.createElement("div",{className:`${P}-inner-content`},(0,N.Z)(te)))},f=P=>{const{hashId:W,prefixCls:te,className:q,style:ie,placement:he="top",title:de,content:fe,children:ke}=P;return z.createElement("div",{className:A()(W,te,`${te}-pure`,`${te}-placement-${he}`,q),style:ie},z.createElement("div",{className:`${te}-arrow`}),z.createElement(b.G,Object.assign({},P,{className:W,prefixCls:te}),ke||C(te,de,fe)))},S=P=>{const{prefixCls:W}=P,te=I(P,["prefixCls"]),{getPrefixCls:q}=z.useContext(k.E_),ie=q("popover",W),[he,de]=(0,w.Z)(ie);return he(z.createElement(f,Object.assign({},te,{prefixCls:ie,hashId:de})))};V.ZP=S},55241:function(nt,V,m){"use strict";var y=m(94184),A=m.n(y),b=m(67294),z=m(81643),k=m(33603),N=m(53124),w=m(61781),I=m(60590),C=m(20136),f=function(W,te){var q={};for(var ie in W)Object.prototype.hasOwnProperty.call(W,ie)&&te.indexOf(ie)<0&&(q[ie]=W[ie]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ie=Object.getOwnPropertySymbols(W);he{let{title:te,content:q,prefixCls:ie}=W;return b.createElement(b.Fragment,null,te&&b.createElement("div",{className:`${ie}-title`},(0,z.Z)(te)),b.createElement("div",{className:`${ie}-inner-content`},(0,z.Z)(q)))},P=b.forwardRef((W,te)=>{const{prefixCls:q,title:ie,content:he,overlayClassName:de,placement:fe="top",trigger:ke="hover",mouseEnterDelay:Ie=.1,mouseLeaveDelay:Be=.1,overlayStyle:be={}}=W,me=f(W,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ye}=b.useContext(N.E_),_e=ye("popover",q),[Ce,De]=(0,C.Z)(_e),ge=ye(),je=A()(de,De);return Ce(b.createElement(w.Z,Object.assign({placement:fe,trigger:ke,mouseEnterDelay:Ie,mouseLeaveDelay:Be,overlayStyle:be},me,{prefixCls:_e,overlayClassName:je,ref:te,overlay:ie||he?b.createElement(S,{prefixCls:_e,title:ie,content:he}):null,transitionName:(0,k.m)(ge,"zoom-big",me.transitionName),"data-popover-inject":!0})))});P._InternalPanelDoNotUseOrYouWillBeFired=I.ZP,V.Z=P},20136:function(nt,V,m){"use strict";var y=m(14747),A=m(50438),b=m(77786),z=m(8796),k=m(67968),N=m(45503);const w=f=>{const{componentCls:S,popoverColor:P,titleMinWidth:W,fontWeightStrong:te,popoverPadding:q,boxShadowSecondary:ie,colorTextHeading:he,borderRadiusLG:de,zIndexPopup:fe,marginXS:ke,colorBgElevated:Ie,popoverBg:Be}=f;return[{[S]:Object.assign(Object.assign({},(0,y.Wf)(f)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:fe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ie,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${S}-content`]:{position:"relative"},[`${S}-inner`]:{backgroundColor:Be,backgroundClip:"padding-box",borderRadius:de,boxShadow:ie,padding:q},[`${S}-title`]:{minWidth:W,marginBottom:ke,color:he,fontWeight:te},[`${S}-inner-content`]:{color:P}})},(0,b.ZP)(f,{colorBg:"var(--antd-arrow-background-color)"}),{[`${S}-pure`]:{position:"relative",maxWidth:"none",margin:f.sizePopupArrow,display:"inline-block",[`${S}-content`]:{display:"inline-block"}}}]},I=f=>{const{componentCls:S}=f;return{[S]:z.i.map(P=>{const W=f[`${P}6`];return{[`&${S}-${P}`]:{"--antd-arrow-background-color":W,[`${S}-inner`]:{backgroundColor:W},[`${S}-arrow`]:{background:"transparent"}}}})}},C=f=>{const{componentCls:S,lineWidth:P,lineType:W,colorSplit:te,paddingSM:q,controlHeight:ie,fontSize:he,lineHeight:de,padding:fe}=f,ke=ie-Math.round(he*de),Ie=ke/2,Be=ke/2-P,be=fe;return{[S]:{[`${S}-inner`]:{padding:0},[`${S}-title`]:{margin:0,padding:`${Ie}px ${be}px ${Be}px`,borderBottom:`${P}px ${W} ${te}`},[`${S}-inner-content`]:{padding:`${q}px ${be}px`}}}};V.Z=(0,k.Z)("Popover",f=>{const{colorBgElevated:S,colorText:P,wireframe:W}=f,te=(0,N.TS)(f,{popoverPadding:12,popoverBg:S,popoverColor:P});return[w(te),I(te),W&&C(te),(0,A._y)(te,"zoom-big")]},f=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:f.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},78045:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return $t}});var y=m(67294),A=m(94184),b=m.n(A),z=m(21770),k=m(64217),N=m(53124),w=m(98675);const I=y.createContext(null),C=I.Provider;var f=I;const S=y.createContext(null),P=S.Provider;var W=m(50132),te=m(42550),q=m(45353),ie=m(17415),he=m(98866),de=m(65223),fe=m(14747),ke=m(67968),Ie=m(45503);const Be=vt=>{const{componentCls:yn,antCls:Bn}=vt,Lr=`${yn}-group`;return{[Lr]:Object.assign(Object.assign({},(0,fe.Wf)(vt)),{display:"inline-block",fontSize:0,[`&${Lr}-rtl`]:{direction:"rtl"},[`${Bn}-badge ${Bn}-badge-count`]:{zIndex:1},[`> ${Bn}-badge:not(:first-child) > ${Bn}-button-wrapper`]:{borderInlineStart:"none"}})}},be=vt=>{const{componentCls:yn,wrapperMarginInlineEnd:Bn,colorPrimary:Lr,radioSize:ii,motionDurationSlow:gi,motionDurationMid:no,motionEaseInOutCirc:To,colorBgContainer:_r,colorBorder:Bo,lineWidth:hs,dotSize:ve,colorBgContainerDisabled:So,colorTextDisabled:ho,paddingXS:go,dotColorDisabled:ji,lineType:No,radioDotDisabledSize:dn,wireframe:Ve,colorWhite:yt}=vt,Ct=`${yn}-inner`;return{[`${yn}-wrapper`]:Object.assign(Object.assign({},(0,fe.Wf)(vt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Bn,cursor:"pointer",[`&${yn}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:vt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${yn}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${hs}px ${No} ${Lr}`,borderRadius:"50%",visibility:"hidden",content:'""'},[yn]:Object.assign(Object.assign({},(0,fe.Wf)(vt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${yn}-wrapper:hover &, - &:hover ${Ct}`]:{borderColor:Lr},[`${yn}-input:focus-visible + ${Ct}`]:Object.assign({},(0,fe.oN)(vt)),[`${yn}:hover::after, ${yn}-wrapper:hover &::after`]:{visibility:"visible"},[`${yn}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ii,height:ii,marginBlockStart:ii/-2,marginInlineStart:ii/-2,backgroundColor:Ve?Lr:yt,borderBlockStart:0,borderInlineStart:0,borderRadius:ii,transform:"scale(0)",opacity:0,transition:`all ${gi} ${To}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ii,height:ii,backgroundColor:_r,borderColor:Bo,borderStyle:"solid",borderWidth:hs,borderRadius:"50%",transition:`all ${no}`},[`${yn}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${yn}-checked`]:{[Ct]:{borderColor:Lr,backgroundColor:Ve?_r:Lr,"&::after":{transform:`scale(${ve/ii})`,opacity:1,transition:`all ${gi} ${To}`}}},[`${yn}-disabled`]:{cursor:"not-allowed",[Ct]:{backgroundColor:So,borderColor:Bo,cursor:"not-allowed","&::after":{backgroundColor:ji}},[`${yn}-input`]:{cursor:"not-allowed"},[`${yn}-disabled + span`]:{color:ho,cursor:"not-allowed"},[`&${yn}-checked`]:{[Ct]:{"&::after":{transform:`scale(${dn/ii})`}}}},[`span${yn} + *`]:{paddingInlineStart:go,paddingInlineEnd:go}})}},me=vt=>{const{buttonColor:yn,controlHeight:Bn,componentCls:Lr,lineWidth:ii,lineType:gi,colorBorder:no,motionDurationSlow:To,motionDurationMid:_r,buttonPaddingInline:Bo,fontSize:hs,buttonBg:ve,fontSizeLG:So,controlHeightLG:ho,controlHeightSM:go,paddingXS:ji,borderRadius:No,borderRadiusSM:dn,borderRadiusLG:Ve,buttonCheckedBg:yt,buttonSolidCheckedColor:Ct,colorTextDisabled:Wt,colorBgContainerDisabled:sn,buttonCheckedBgDisabled:Mt,buttonCheckedColorDisabled:Tt,colorPrimary:xt,colorPrimaryHover:Ht,colorPrimaryActive:Vn,buttonSolidCheckedBg:en,buttonSolidCheckedHoverBg:fr,buttonSolidCheckedActiveBg:Kr}=vt;return{[`${Lr}-button-wrapper`]:{position:"relative",display:"inline-block",height:Bn,margin:0,paddingInline:Bo,paddingBlock:0,color:yn,fontSize:hs,lineHeight:`${Bn-ii*2}px`,background:ve,border:`${ii}px ${gi} ${no}`,borderBlockStartWidth:ii+.02,borderInlineStartWidth:0,borderInlineEndWidth:ii,cursor:"pointer",transition:[`color ${_r}`,`background ${_r}`,`box-shadow ${_r}`].join(","),a:{color:yn},[`> ${Lr}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ii,insetInlineStart:-ii,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ii,paddingInline:0,backgroundColor:no,transition:`background-color ${To}`,content:'""'}},"&:first-child":{borderInlineStart:`${ii}px ${gi} ${no}`,borderStartStartRadius:No,borderEndStartRadius:No},"&:last-child":{borderStartEndRadius:No,borderEndEndRadius:No},"&:first-child:last-child":{borderRadius:No},[`${Lr}-group-large &`]:{height:ho,fontSize:So,lineHeight:`${ho-ii*2}px`,"&:first-child":{borderStartStartRadius:Ve,borderEndStartRadius:Ve},"&:last-child":{borderStartEndRadius:Ve,borderEndEndRadius:Ve}},[`${Lr}-group-small &`]:{height:go,paddingInline:ji-ii,paddingBlock:0,lineHeight:`${go-ii*2}px`,"&:first-child":{borderStartStartRadius:dn,borderEndStartRadius:dn},"&:last-child":{borderStartEndRadius:dn,borderEndEndRadius:dn}},"&:hover":{position:"relative",color:xt},"&:has(:focus-visible)":Object.assign({},(0,fe.oN)(vt)),[`${Lr}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Lr}-button-wrapper-disabled)`]:{zIndex:1,color:xt,background:yt,borderColor:xt,"&::before":{backgroundColor:xt},"&:first-child":{borderColor:xt},"&:hover":{color:Ht,borderColor:Ht,"&::before":{backgroundColor:Ht}},"&:active":{color:Vn,borderColor:Vn,"&::before":{backgroundColor:Vn}}},[`${Lr}-group-solid &-checked:not(${Lr}-button-wrapper-disabled)`]:{color:Ct,background:en,borderColor:en,"&:hover":{color:Ct,background:fr,borderColor:fr},"&:active":{color:Ct,background:Kr,borderColor:Kr}},"&-disabled":{color:Wt,backgroundColor:sn,borderColor:no,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:sn,borderColor:no}},[`&-disabled${Lr}-button-wrapper-checked`]:{color:Tt,backgroundColor:Mt,borderColor:no,boxShadow:"none"}}}},ye=vt=>vt-4*2;var _e=(0,ke.Z)("Radio",vt=>{const{controlOutline:yn,controlOutlineWidth:Bn,radioSize:Lr}=vt,ii=`0 0 0 ${Bn}px ${yn}`,gi=ii,no=ye(Lr),To=(0,Ie.TS)(vt,{radioDotDisabledSize:no,radioFocusShadow:ii,radioButtonFocusShadow:gi});return[Be(To),be(To),me(To)]},vt=>{const{wireframe:yn,padding:Bn,marginXS:Lr,lineWidth:ii,fontSizeLG:gi,colorText:no,colorBgContainer:To,colorTextDisabled:_r,controlItemBgActiveDisabled:Bo,colorTextLightSolid:hs,colorPrimary:ve,colorPrimaryHover:So,colorPrimaryActive:ho}=vt,go=4,ji=gi,No=yn?ye(ji):ji-(go+ii)*2;return{radioSize:ji,dotSize:No,dotColorDisabled:_r,buttonSolidCheckedColor:hs,buttonSolidCheckedBg:ve,buttonSolidCheckedHoverBg:So,buttonSolidCheckedActiveBg:ho,buttonBg:To,buttonCheckedBg:To,buttonColor:no,buttonCheckedBgDisabled:Bo,buttonCheckedColorDisabled:_r,buttonPaddingInline:Bn-ii,wrapperMarginInlineEnd:Lr}}),Ce=function(vt,yn){var Bn={};for(var Lr in vt)Object.prototype.hasOwnProperty.call(vt,Lr)&&yn.indexOf(Lr)<0&&(Bn[Lr]=vt[Lr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Lr=Object.getOwnPropertySymbols(vt);ii{var Bn,Lr;const ii=y.useContext(f),gi=y.useContext(S),{getPrefixCls:no,direction:To,radio:_r}=y.useContext(N.E_),Bo=y.useRef(null),hs=(0,te.sQ)(yn,Bo),{isFormItemInput:ve}=y.useContext(de.aM),So=Vn=>{var en,fr;(en=vt.onChange)===null||en===void 0||en.call(vt,Vn),(fr=ii==null?void 0:ii.onChange)===null||fr===void 0||fr.call(ii,Vn)},{prefixCls:ho,className:go,rootClassName:ji,children:No,style:dn}=vt,Ve=Ce(vt,["prefixCls","className","rootClassName","children","style"]),yt=no("radio",ho),Ct=((ii==null?void 0:ii.optionType)||gi)==="button",Wt=Ct?`${yt}-button`:yt,[sn,Mt]=_e(yt),Tt=Object.assign({},Ve),xt=y.useContext(he.Z);ii&&(Tt.name=ii.name,Tt.onChange=So,Tt.checked=vt.value===ii.value,Tt.disabled=(Bn=Tt.disabled)!==null&&Bn!==void 0?Bn:ii.disabled),Tt.disabled=(Lr=Tt.disabled)!==null&&Lr!==void 0?Lr:xt;const Ht=b()(`${Wt}-wrapper`,{[`${Wt}-wrapper-checked`]:Tt.checked,[`${Wt}-wrapper-disabled`]:Tt.disabled,[`${Wt}-wrapper-rtl`]:To==="rtl",[`${Wt}-wrapper-in-form-item`]:ve},_r==null?void 0:_r.className,go,ji,Mt);return sn(y.createElement(q.Z,{component:"Radio",disabled:Tt.disabled},y.createElement("label",{className:Ht,style:Object.assign(Object.assign({},_r==null?void 0:_r.style),dn),onMouseEnter:vt.onMouseEnter,onMouseLeave:vt.onMouseLeave},y.createElement(W.Z,Object.assign({},Tt,{className:b()(Tt.className,!Ct&&ie.A),type:"radio",prefixCls:Wt,ref:hs})),No!==void 0?y.createElement("span",null,No):null)))};var je=y.forwardRef(De);const we=y.forwardRef((vt,yn)=>{const{getPrefixCls:Bn,direction:Lr}=y.useContext(N.E_),[ii,gi]=(0,z.Z)(vt.defaultValue,{value:vt.value}),no=en=>{const fr=ii,Kr=en.target.value;"value"in vt||gi(Kr);const{onChange:ri}=vt;ri&&Kr!==fr&&ri(en)},{prefixCls:To,className:_r,rootClassName:Bo,options:hs,buttonStyle:ve="outline",disabled:So,children:ho,size:go,style:ji,id:No,onMouseEnter:dn,onMouseLeave:Ve,onFocus:yt,onBlur:Ct}=vt,Wt=Bn("radio",To),sn=`${Wt}-group`,[Mt,Tt]=_e(Wt);let xt=ho;hs&&hs.length>0&&(xt=hs.map(en=>typeof en=="string"||typeof en=="number"?y.createElement(je,{key:en.toString(),prefixCls:Wt,disabled:So,value:en,checked:ii===en},en):y.createElement(je,{key:`radio-group-value-options-${en.value}`,prefixCls:Wt,disabled:en.disabled||So,value:en.value,checked:ii===en.value,title:en.title,style:en.style,id:en.id},en.label)));const Ht=(0,w.Z)(go),Vn=b()(sn,`${sn}-${ve}`,{[`${sn}-${Ht}`]:Ht,[`${sn}-rtl`]:Lr==="rtl"},_r,Bo,Tt);return Mt(y.createElement("div",Object.assign({},(0,k.Z)(vt,{aria:!0,data:!0}),{className:Vn,style:ji,onMouseEnter:dn,onMouseLeave:Ve,onFocus:yt,onBlur:Ct,id:No,ref:yn}),y.createElement(C,{value:{onChange:no,value:ii,disabled:vt.disabled,name:vt.name,optionType:vt.optionType}},xt)))});var Pt=y.memo(we),dt=function(vt,yn){var Bn={};for(var Lr in vt)Object.prototype.hasOwnProperty.call(vt,Lr)&&yn.indexOf(Lr)<0&&(Bn[Lr]=vt[Lr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ii=0,Lr=Object.getOwnPropertySymbols(vt);ii{const{getPrefixCls:Bn}=y.useContext(N.E_),{prefixCls:Lr}=vt,ii=dt(vt,["prefixCls"]),gi=Bn("radio",Lr);return y.createElement(P,{value:"button"},y.createElement(je,Object.assign({prefixCls:gi},ii,{type:"radio",ref:yn})))};var bt=y.forwardRef(He);const ft=je;ft.Button=bt,ft.Group=Pt,ft.__ANT_RADIO=!0;var $t=ft},29905:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return dt}});var y=m(67294),A=m(76278),b=m(41322),z=m(26702),k=m(87462),N={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"},w=N,I=m(93771),C=function(bt,ft){return y.createElement(I.Z,(0,k.Z)({},bt,{ref:ft,icon:w}))},f=y.forwardRef(C),S=m(94184),P=m.n(S),W=m(53124),q=()=>y.createElement("svg",{width:"252",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .012)"},y.createElement("mask",{fill:"#fff"}),y.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)"})),y.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"}),y.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),y.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"}),y.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"}),y.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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:"#1677ff"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),y.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),y.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"}),y.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),he=()=>y.createElement("svg",{width:"254",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),y.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .067)"},y.createElement("mask",{fill:"#fff"}),y.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)"})),y.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"}),y.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),y.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.createElement("mask",{fill:"#fff"}),y.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),y.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)"}),y.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)"}),y.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)"}),y.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)"}),y.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)"}),y.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)"}),y.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),y.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)"}),y.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)"}),y.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)"}))),de=m(67968),fe=m(45503);const ke=He=>{const{componentCls:bt,lineHeightHeading3:ft,iconCls:$t,padding:vt,paddingXL:yn,paddingXS:Bn,paddingLG:Lr,marginXS:ii,lineHeight:gi}=He;return{[bt]:{padding:`${Lr*2}px ${yn}px`,"&-rtl":{direction:"rtl"}},[`${bt} ${bt}-image`]:{width:He.imageWidth,height:He.imageHeight,margin:"auto"},[`${bt} ${bt}-icon`]:{marginBottom:Lr,textAlign:"center",[`& > ${$t}`]:{fontSize:He.iconFontSize}},[`${bt} ${bt}-title`]:{color:He.colorTextHeading,fontSize:He.titleFontSize,lineHeight:ft,marginBlock:ii,textAlign:"center"},[`${bt} ${bt}-subtitle`]:{color:He.colorTextDescription,fontSize:He.subtitleFontSize,lineHeight:gi,textAlign:"center"},[`${bt} ${bt}-content`]:{marginTop:Lr,padding:`${Lr}px ${vt*2.5}px`,backgroundColor:He.colorFillAlter},[`${bt} ${bt}-extra`]:{margin:He.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Bn,"&:last-child":{marginInlineEnd:0}}}}},Ie=He=>{const{componentCls:bt,iconCls:ft}=He;return{[`${bt}-success ${bt}-icon > ${ft}`]:{color:He.resultSuccessIconColor},[`${bt}-error ${bt}-icon > ${ft}`]:{color:He.resultErrorIconColor},[`${bt}-info ${bt}-icon > ${ft}`]:{color:He.resultInfoIconColor},[`${bt}-warning ${bt}-icon > ${ft}`]:{color:He.resultWarningIconColor}}},Be=He=>[ke(He),Ie(He)],be=He=>Be(He);var me=(0,de.Z)("Result",He=>{const bt=He.colorInfo,ft=He.colorError,$t=He.colorSuccess,vt=He.colorWarning,yn=(0,fe.TS)(He,{resultInfoIconColor:bt,resultErrorIconColor:ft,resultSuccessIconColor:$t,resultWarningIconColor:vt,imageWidth:250,imageHeight:295});return[be(yn)]},He=>({titleFontSize:He.fontSizeHeading3,subtitleFontSize:He.fontSize,iconFontSize:He.fontSizeHeading3*3,extraMargin:`${He.paddingLG}px 0 0 0`})),_e=()=>y.createElement("svg",{width:"251",height:"294"},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.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"}),y.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"}),y.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),y.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"}),y.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"}),y.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"})));const Ce={success:A.Z,error:b.Z,info:z.Z,warning:f},De={404:q,500:he,403:_e},ge=Object.keys(De),je=He=>{let{prefixCls:bt,icon:ft,status:$t}=He;const vt=P()(`${bt}-icon`);if(ge.includes(`${$t}`)){const Bn=De[$t];return y.createElement("div",{className:`${vt} ${bt}-image`},y.createElement(Bn,null))}const yn=y.createElement(Ce[$t]);return ft===null||ft===!1?null:y.createElement("div",{className:vt},ft||yn)},we=He=>{let{prefixCls:bt,extra:ft}=He;return ft?y.createElement("div",{className:`${bt}-extra`},ft):null},Pt=He=>{let{prefixCls:bt,className:ft,rootClassName:$t,subTitle:vt,title:yn,style:Bn,children:Lr,status:ii="info",icon:gi,extra:no}=He;const{getPrefixCls:To,direction:_r,result:Bo}=y.useContext(W.E_),hs=To("result",bt),[ve,So]=me(hs),ho=P()(hs,`${hs}-${ii}`,ft,Bo==null?void 0:Bo.className,$t,{[`${hs}-rtl`]:_r==="rtl"},So),go=Object.assign(Object.assign({},Bo==null?void 0:Bo.style),Bn);return ve(y.createElement("div",{className:ho,style:go},y.createElement(je,{prefixCls:hs,status:ii,icon:gi}),y.createElement("div",{className:`${hs}-title`},yn),vt&&y.createElement("div",{className:`${hs}-subtitle`},vt),y.createElement(we,{prefixCls:hs,extra:no}),Lr&&y.createElement("div",{className:`${hs}-content`},Lr)))};Pt.PRESENTED_IMAGE_403=De[403],Pt.PRESENTED_IMAGE_404=De[404],Pt.PRESENTED_IMAGE_500=De[500];var dt=Pt},34041:function(nt,V,m){"use strict";var y=m(67294),A=m(94184),b=m.n(A),z=m(88905),k=m(98423),N=m(33603),w=m(8745),I=m(9708),C=m(53124),f=m(88258),S=m(98866),P=m(98675),W=m(65223),te=m(4173),q=m(87244),ie=m(13458),he=m(78642),de=m(43277),fe=function(me,ye){var _e={};for(var Ce in me)Object.prototype.hasOwnProperty.call(me,Ce)&&ye.indexOf(Ce)<0&&(_e[Ce]=me[Ce]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ce=Object.getOwnPropertySymbols(me);De{var _e,{prefixCls:Ce,bordered:De=!0,className:ge,rootClassName:je,getPopupContainer:we,popupClassName:Pt,dropdownClassName:dt,listHeight:He=256,placement:bt,listItemHeight:ft=24,size:$t,disabled:vt,notFoundContent:yn,status:Bn,builtinPlacements:Lr,dropdownMatchSelectWidth:ii,popupMatchSelectWidth:gi,direction:no,style:To,allowClear:_r}=me,Bo=fe(me,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:hs,getPrefixCls:ve,renderEmpty:So,direction:ho,virtual:go,popupMatchSelectWidth:ji,popupOverflow:No,select:dn}=y.useContext(C.E_),Ve=ve("select",Ce),yt=ve(),Ct=no!=null?no:ho,{compactSize:Wt,compactItemClassnames:sn}=(0,te.ri)(Ve,Ct),[Mt,Tt]=(0,q.Z)(Ve),xt=y.useMemo(()=>{const{mode:rn}=Bo;if(rn!=="combobox")return rn===ke?"combobox":rn},[Bo.mode]),Ht=xt==="multiple"||xt==="tags",Vn=(0,he.Z)(Bo.suffixIcon,Bo.showArrow),en=(_e=gi!=null?gi:ii)!==null&&_e!==void 0?_e:ji,{status:fr,hasFeedback:Kr,isFormItemInput:ri,feedbackIcon:si}=y.useContext(W.aM),uo=(0,I.F)(fr,Bn);let Qo;yn!==void 0?Qo=yn:xt==="combobox"?Qo=null:Qo=(So==null?void 0:So("Select"))||y.createElement(f.Z,{componentName:"Select"});const{suffixIcon:_n,itemIcon:Vr,removeIcon:qr,clearIcon:Ui}=(0,de.Z)(Object.assign(Object.assign({},Bo),{multiple:Ht,hasFeedback:Kr,feedbackIcon:si,showSuffixIcon:Vn,prefixCls:Ve,showArrow:Bo.showArrow,componentName:"Select"})),xo=_r===!0?{clearIcon:Ui}:_r,Us=(0,k.Z)(Bo,["suffixIcon","itemIcon"]),zn=b()(Pt||dt,{[`${Ve}-dropdown-${Ct}`]:Ct==="rtl"},je,Tt),Kn=(0,P.Z)(rn=>{var Qn;return(Qn=$t!=null?$t:Wt)!==null&&Qn!==void 0?Qn:rn}),Or=y.useContext(S.Z),mi=vt!=null?vt:Or,Er=b()({[`${Ve}-lg`]:Kn==="large",[`${Ve}-sm`]:Kn==="small",[`${Ve}-rtl`]:Ct==="rtl",[`${Ve}-borderless`]:!De,[`${Ve}-in-form-item`]:ri},(0,I.Z)(Ve,uo,Kr),sn,dn==null?void 0:dn.className,ge,je,Tt),ti=y.useMemo(()=>bt!==void 0?bt:Ct==="rtl"?"bottomRight":"bottomLeft",[bt,Ct]),di=(0,ie.Z)(Lr,No);return Mt(y.createElement(z.ZP,Object.assign({ref:ye,virtual:go,showSearch:dn==null?void 0:dn.showSearch},Us,{style:Object.assign(Object.assign({},dn==null?void 0:dn.style),To),dropdownMatchSelectWidth:en,builtinPlacements:di,transitionName:(0,N.m)(yt,"slide-up",Bo.transitionName),listHeight:He,listItemHeight:ft,mode:xt,prefixCls:Ve,placement:ti,direction:Ct,suffixIcon:_n,menuItemSelectedIcon:Vr,removeIcon:qr,allowClear:xo,notFoundContent:Qo,className:Er,getPopupContainer:we||hs,dropdownClassName:zn,disabled:mi})))},Be=y.forwardRef(Ie),be=(0,w.Z)(Be);Be.SECRET_COMBOBOX_MODE_DO_NOT_USE=ke,Be.Option=z.Wx,Be.OptGroup=z.Xo,Be._InternalPanelDoNotUseOrYouWillBeFired=be,V.Z=Be},87244:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Be}});var y=m(14747),A=m(80110),b=m(45503),z=m(67968),k=m(67771),N=m(33297);const w=be=>{const{optionHeight:me,optionFontSize:ye,optionLineHeight:_e,optionPadding:Ce}=be;return{position:"relative",display:"block",minHeight:me,padding:Ce,color:be.colorText,fontWeight:"normal",fontSize:ye,lineHeight:_e,boxSizing:"border-box"}};var C=be=>{const{antCls:me,componentCls:ye}=be,_e=`${ye}-item`,Ce=`&${me}-slide-up-enter${me}-slide-up-enter-active`,De=`&${me}-slide-up-appear${me}-slide-up-appear-active`,ge=`&${me}-slide-up-leave${me}-slide-up-leave-active`,je=`${ye}-dropdown-placement-`;return[{[`${ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[` - ${Ce}${je}bottomLeft, - ${De}${je}bottomLeft - `]:{animationName:k.fJ},[` - ${Ce}${je}topLeft, - ${De}${je}topLeft, - ${Ce}${je}topRight, - ${De}${je}topRight - `]:{animationName:k.Qt},[`${ge}${je}bottomLeft`]:{animationName:k.Uw},[` - ${ge}${je}topLeft, - ${ge}${je}topRight - `]:{animationName:k.ly},"&-hidden":{display:"none"},[`${_e}`]:Object.assign(Object.assign({},w(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${_e}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${_e}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${_e}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${_e}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,k.oN)(be,"slide-up"),(0,k.oN)(be,"slide-down"),(0,N.Fm)(be,"move-up"),(0,N.Fm)(be,"move-down")]};const f=2,S=be=>{let{multipleSelectItemHeight:me,selectHeight:ye,lineWidth:_e}=be;const Ce=(ye-me)/2-_e,De=Math.ceil(Ce/2);return[Ce,De]};function P(be,me){const{componentCls:ye,iconCls:_e}=be,Ce=`${ye}-selection-overflow`,De=be.multipleSelectItemHeight,[ge]=S(be),je=me?`${ye}-${me}`:"";return{[`${ye}-multiple${je}`]:{fontSize:be.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ye}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${ge-f}px ${f*2}px`,borderRadius:be.borderRadius,[`${ye}-show-search&`]:{cursor:"text"},[`${ye}-disabled&`]:{background:be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${f}px 0`,lineHeight:`${De}px`,visibility:"hidden",content:'"\\a0"'}},[` - &${ye}-show-arrow ${ye}-selector, - &${ye}-allow-clear ${ye}-selector - `]:{paddingInlineEnd:be.fontSizeIcon+be.controlPaddingHorizontal},[`${ye}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:De,marginTop:f,marginBottom:f,lineHeight:`${De-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,marginInlineEnd:f*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${ye}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,y.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${_e}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${ye}-selection-search`]:{marginInlineStart:0}},[`${Ce}-item-suffix`]:{height:"100%"},[`${ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-ge,[` + `]:{paddingTop:mn.paddingXS},[`> ${an}`]:Object.assign(Object.assign(Object.assign({borderRadius:eo},qo(mn)),Ki(mn)),{[`${an}-item, ${an}-submenu > ${an}-submenu-title`]:{borderRadius:Uo},[`${an}-submenu-title::after`]:{transition:`transform ${kt} ${Vn}`}})}}),Ki(mn)),{[`&-inline-collapsed ${an}-submenu-arrow, + &-inline ${an}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qr})`},"&::after":{transform:`rotate(45deg) translateX(-${Qr})`}},[`${an}-submenu-open${an}-submenu-inline > ${an}-submenu-title > ${an}-submenu-arrow`]:{transform:`translateY(-${Fn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Qr})`},"&::before":{transform:`rotate(45deg) translateX(${Qr})`}}})},{[`${kn}-layout-header`]:{[an]:{lineHeight:"inherit"}}}]};var ai=(mn,kn)=>(0,_t.Z)("Menu",tn=>{if(kn===!1)return[];const{colorBgElevated:kt,colorPrimary:en,colorTextLightSolid:Vn,controlHeightLG:on,fontSize:Dr,darkItemColor:oi,darkDangerItemColor:Ii,darkItemBg:jr,darkSubMenuItemBg:eo,darkItemSelectedColor:Uo,darkItemSelectedBg:Fn,darkDangerItemSelectedBg:Qr,darkItemHoverBg:ci,darkGroupTitleColor:ji,darkItemHoverColor:cr,darkItemDisabledColor:Qn,darkDangerItemHoverColor:Vt,darkDangerItemSelectedColor:Yt,darkDangerItemActiveBg:En}=tn,er=Dr/7*5,Tr=(0,bn.TS)(tn,{menuArrowSize:er,menuHorizontalHeight:on*1.15,menuArrowOffset:`${er*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:kt}),Nr=(0,bn.TS)(Tr,{itemColor:oi,itemHoverColor:cr,groupTitleColor:ji,itemSelectedColor:Uo,itemBg:jr,popupBg:jr,subMenuItemBg:eo,itemActiveBg:"transparent",itemSelectedBg:Fn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ci,itemDisabledColor:Qn,dangerItemColor:Ii,dangerItemHoverColor:Vt,dangerItemSelectedColor:Yt,dangerItemActiveBg:En,dangerItemSelectedBg:Qr,menuSubMenuBg:eo,horizontalItemSelectedColor:Vn,horizontalItemSelectedBg:en});return[Do(Tr),$r(Tr),Pe(Tr),Hr(Tr,"light"),Hr(Nr,"dark"),oo(Tr),(0,xt.Z)(Tr),(0,ut.oN)(Tr,"slide-up"),(0,ut.oN)(Tr,"slide-down"),(0,$t._y)(Tr,"zoom-big")]},tn=>{const{colorPrimary:kt,colorError:en,colorTextDisabled:Vn,colorErrorBg:on,colorText:Dr,colorTextDescription:oi,colorBgContainer:Ii,colorFillAlter:jr,colorFillContent:eo,lineWidth:Uo,lineWidthBold:Fn,controlItemBgActive:Qr,colorBgTextHover:ci,controlHeightLG:ji,lineHeight:cr,colorBgElevated:Qn,marginXXS:Vt,padding:Yt,fontSize:En,controlHeightSM:er,fontSizeLG:Tr,colorTextLightSolid:Nr,colorErrorHover:Zn}=tn,Ut=new Ft.C(Nr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:tn.zIndexPopupBase+50,radiusItem:tn.borderRadiusLG,itemBorderRadius:tn.borderRadiusLG,radiusSubMenuItem:tn.borderRadiusSM,subMenuItemBorderRadius:tn.borderRadiusSM,colorItemText:Dr,itemColor:Dr,colorItemTextHover:Dr,itemHoverColor:Dr,colorItemTextHoverHorizontal:kt,horizontalItemHoverColor:kt,colorGroupTitle:oi,groupTitleColor:oi,colorItemTextSelected:kt,itemSelectedColor:kt,colorItemTextSelectedHorizontal:kt,horizontalItemSelectedColor:kt,colorItemBg:Ii,itemBg:Ii,colorItemBgHover:ci,itemHoverBg:ci,colorItemBgActive:eo,itemActiveBg:Qr,colorSubItemBg:jr,subMenuItemBg:jr,colorItemBgSelected:Qr,itemSelectedBg:Qr,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fn,activeBarHeight:Fn,colorActiveBarBorderSize:Uo,activeBarBorderWidth:Uo,colorItemTextDisabled:Vn,itemDisabledColor:Vn,colorDangerItemText:en,dangerItemColor:en,colorDangerItemTextHover:en,dangerItemHoverColor:en,colorDangerItemTextSelected:en,dangerItemSelectedColor:en,colorDangerItemBgActive:on,dangerItemActiveBg:on,colorDangerItemBgSelected:on,dangerItemSelectedBg:on,itemMarginInline:tn.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ji,groupTitleLineHeight:cr,collapsedWidth:ji*2,popupBg:Qn,itemMarginBlock:Vt,itemPaddingInline:Yt,horizontalLineHeight:`${ji*1.15}px`,iconSize:En,iconMarginInlineEnd:er-En,collapsedIconSize:Tr,groupTitleFontSize:En,darkItemDisabledColor:new Ft.C(Nr).setAlpha(.25).toRgbString(),darkItemColor:Ut,darkDangerItemColor:en,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nr,darkItemSelectedBg:kt,darkDangerItemSelectedBg:en,darkItemHoverBg:"transparent",darkGroupTitleColor:Ut,darkItemHoverColor:Nr,darkDangerItemHoverColor:Zn,darkDangerItemSelectedColor:Nr,darkDangerItemActiveBg:en}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(mn),$o=function(mn,kn){var an={};for(var tn in mn)Object.prototype.hasOwnProperty.call(mn,tn)&&kn.indexOf(tn)<0&&(an[tn]=mn[tn]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tn=Object.getOwnPropertySymbols(mn);kt{var an,tn;const kt=R.useContext(Xt.Z),en=kt||{},{getPrefixCls:Vn,getPopupContainer:on,direction:Dr,menu:oi}=R.useContext(T.E_),Ii=Vn(),{prefixCls:jr,className:eo,style:Uo,theme:Fn="light",expandIcon:Qr,_internalDisableMenuItemTitleTooltip:ci,inlineCollapsed:ji,siderCollapsed:cr,items:Qn,children:Vt,rootClassName:Yt,mode:En,selectable:er,onClick:Tr,overflowedIndicatorPopupClassName:Nr}=mn,Zn=$o(mn,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ut=(0,fe.Z)(Zn,["collapsedWidth"]),$n=Oe(Qn)||Vt;(an=en.validator)===null||an===void 0||an.call(en,{mode:En});const xr=(0,ke.zX)(function(){var ni;Tr==null||Tr.apply(void 0,arguments),(ni=en.onClick)===null||ni===void 0||ni.call(en)}),Br=en.mode||En,_o=er!=null?er:en.selectable,Qt=R.useMemo(()=>cr!==void 0?cr:ji,[ji,cr]),xn={horizontal:{motionName:`${Ii}-slide-up`},inline:(0,$e.Z)(Ii),other:{motionName:`${Ii}-zoom-big`}},Sr=Vn("menu",jr||en.prefixCls),[qr,Mi]=ai(Sr,!kt),zi=b()(`${Sr}-${Fn}`,oi==null?void 0:oi.className,eo);let Yi;if(typeof Qr=="function")Yi=Qr;else if(Qr===null||Qr===!1)Yi=null;else if(en.expandIcon===null||en.expandIcon===!1)Yi=null;else{const ni=Qr!=null?Qr:en.expandIcon;Yi=(0,be.Tm)(ni,{className:b()(`${Sr}-submenu-expand-icon`,(0,be.l$)(ni)?(tn=ni.props)===null||tn===void 0?void 0:tn.className:"")})}const Si=R.useMemo(()=>({prefixCls:Sr,inlineCollapsed:Qt||!1,direction:Dr,firstLevel:!0,theme:Fn,mode:Br,disableMenuItemTitleTooltip:ci}),[Sr,Qt,Dr,ci,Fn]);return qr(R.createElement(Xt.Z.Provider,{value:null},R.createElement(Xe.Provider,{value:Si},R.createElement(v.ZP,Object.assign({getPopupContainer:on,overflowedIndicator:R.createElement(De.Z,null),overflowedIndicatorPopupClassName:b()(Sr,`${Sr}-${Fn}`,Nr),mode:Br,selectable:_o,onClick:xr},Ut,{inlineCollapsed:Qt,style:Object.assign(Object.assign({},oi==null?void 0:oi.style),Uo),className:zi,prefixCls:Sr,direction:Dr,defaultMotions:xn,expandIcon:Yi,ref:kn,rootClassName:b()(Yt,Mi)}),$n))))});const Dt=(0,R.forwardRef)((mn,kn)=>{const an=(0,R.useRef)(null),tn=R.useContext(O);return(0,R.useImperativeHandle)(kn,()=>({menu:an.current,focus:kt=>{var en;(en=an.current)===null||en===void 0||en.focus(kt)}})),R.createElement(nt,Object.assign({ref:an},mn,tn))});Dt.Item=dt,Dt.SubMenu=ze,Dt.Divider=he,Dt.ItemGroup=v.BW;var Kt=Dt},10154:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return Nr}});var v=_(74902),R=_(67294),w=_(38135),b=_(94740),B=_(76278),V=_(41322),O=_(26702),L=_(1558),S=_(22508),g=_(94184),T=_.n(g),k=_(97685),K=_(91),he=_(1413),ae=_(73935),fe=_(87462),_e=_(4942),be=_(82225),xe=_(15105),Xe=R.forwardRef(function(Zn,Ut){var $n=Zn.prefixCls,xr=Zn.style,Br=Zn.className,_o=Zn.duration,Qt=_o===void 0?4.5:_o,xn=Zn.eventKey,Sr=Zn.content,qr=Zn.closable,Mi=Zn.closeIcon,zi=Mi===void 0?"x":Mi,Yi=Zn.props,Si=Zn.onClick,ni=Zn.onNoticeClose,qi=Zn.times,Vr=Zn.hovering,ii=R.useState(!1),nr=(0,k.Z)(ii,2),Mr=nr[0],rr=nr[1],to=Vr||Mr,ts=function(){ni(xn)},Wr=function(Pn){(Pn.key==="Enter"||Pn.code==="Enter"||Pn.keyCode===xe.Z.ENTER)&&ts()};R.useEffect(function(){if(!to&&Qt>0){var Vi=setTimeout(function(){ts()},Qt*1e3);return function(){clearTimeout(Vi)}}},[Qt,to,qi]);var no="".concat($n,"-notice");return R.createElement("div",(0,fe.Z)({},Yi,{ref:Ut,className:T()(no,Br,(0,_e.Z)({},"".concat(no,"-closable"),qr)),style:xr,onMouseEnter:function(Pn){var mi;rr(!0),Yi==null||(mi=Yi.onMouseEnter)===null||mi===void 0||mi.call(Yi,Pn)},onMouseLeave:function(Pn){var mi;rr(!1),Yi==null||(mi=Yi.onMouseLeave)===null||mi===void 0||mi.call(Yi,Pn)},onClick:Si}),R.createElement("div",{className:"".concat(no,"-content")},Sr),qr&&R.createElement("a",{tabIndex:0,className:"".concat(no,"-close"),onKeyDown:Wr,onClick:function(Pn){Pn.preventDefault(),Pn.stopPropagation(),ts()}},zi))}),We=Xe,dt=R.createContext({}),Me=function(Ut){var $n=Ut.children,xr=Ut.classNames;return R.createElement(dt.Provider,{value:{classNames:xr}},$n)},Se=Me,ze=_(71002),De=8,ke=3,$e=16,Te=function(Ut){var $n={offset:De,threshold:ke,gap:$e};if(Ut&&(0,ze.Z)(Ut)==="object"){var xr,Br,_o;$n.offset=(xr=Ut.offset)!==null&&xr!==void 0?xr:De,$n.threshold=(Br=Ut.threshold)!==null&&Br!==void 0?Br:ke,$n.gap=(_o=Ut.gap)!==null&&_o!==void 0?_o:$e}return[!!Ut,$n]},tt=Te,Oe=["className","style","classNames","styles"],Xt=function(Ut){var $n,xr=Ut.configList,Br=Ut.placement,_o=Ut.prefixCls,Qt=Ut.className,xn=Ut.style,Sr=Ut.motion,qr=Ut.onAllNoticeRemoved,Mi=Ut.onNoticeClose,zi=Ut.stack,Yi=(0,R.useContext)(dt),Si=Yi.classNames,ni=(0,R.useRef)({}),qi=(0,R.useState)(null),Vr=(0,k.Z)(qi,2),ii=Vr[0],nr=Vr[1],Mr=(0,R.useState)([]),rr=(0,k.Z)(Mr,2),to=rr[0],ts=rr[1],Wr=xr.map(function(tl){return{config:tl,key:String(tl.key)}}),no=tt(zi),Vi=(0,k.Z)(no,2),Pn=Vi[0],mi=Vi[1],ya=mi.offset,Zs=mi.threshold,qs=mi.gap,al=Pn&&(to.length>0||Wr.length<=Zs),co=typeof Sr=="function"?Sr(Br):Sr;return(0,R.useEffect)(function(){Pn&&to.length>1&&ts(function(tl){return tl.filter(function(fl){return Wr.some(function(Ai){var Xi=Ai.key;return fl===Xi})})})},[to,Wr,Pn]),(0,R.useEffect)(function(){var tl;if(Pn&&ni.current[(tl=Wr[Wr.length-1])===null||tl===void 0?void 0:tl.key]){var fl;nr(ni.current[(fl=Wr[Wr.length-1])===null||fl===void 0?void 0:fl.key])}},[Wr,Pn]),R.createElement(be.V4,(0,fe.Z)({key:Br,className:T()(_o,"".concat(_o,"-").concat(Br),Si==null?void 0:Si.list,Qt,($n={},(0,_e.Z)($n,"".concat(_o,"-stack"),!!Pn),(0,_e.Z)($n,"".concat(_o,"-stack-expanded"),al),$n)),style:xn,keys:Wr,motionAppear:!0},co,{onAllRemoved:function(){qr(Br)}}),function(tl,fl){var Ai=tl.config,Xi=tl.className,Fi=tl.style,No=tl.index,yr=Ai,ui=yr.key,Zo=yr.times,ns=String(ui),Lr=Ai,Ei=Lr.className,hn=Lr.style,Tn=Lr.classNames,ar=Lr.styles,ft=(0,K.Z)(Lr,Oe),wt=Wr.findIndex(function(ps){return ps.key===ns}),At={};if(Pn){var Ye=Wr.length-1-(wt>-1?wt:No-1),Et=Br==="top"||Br==="bottom"?"-50%":"0";if(Ye>0){var Wt,vn,Er;At.height=al?(Wt=ni.current[ns])===null||Wt===void 0?void 0:Wt.offsetHeight:ii==null?void 0:ii.offsetHeight;for(var Gr=0,Gi=0;Gi-1?ni.current[ns]=Js:delete ni.current[ns]},prefixCls:_o,classNames:Tn,styles:ar,className:T()(Ei,Si==null?void 0:Si.notice),style:hn,times:Zo,key:ui,eventKey:ui,onNoticeClose:Mi,hovering:Pn&&to.length>0})))})},Ft=Xt,ot=R.forwardRef(function(Zn,Ut){var $n=Zn.prefixCls,xr=$n===void 0?"rc-notification":$n,Br=Zn.container,_o=Zn.motion,Qt=Zn.maxCount,xn=Zn.className,Sr=Zn.style,qr=Zn.onAllRemoved,Mi=Zn.stack,zi=Zn.renderNotifications,Yi=R.useState([]),Si=(0,k.Z)(Yi,2),ni=Si[0],qi=Si[1],Vr=function(Vi){var Pn,mi=ni.find(function(ya){return ya.key===Vi});mi==null||(Pn=mi.onClose)===null||Pn===void 0||Pn.call(mi),qi(function(ya){return ya.filter(function(Zs){return Zs.key!==Vi})})};R.useImperativeHandle(Ut,function(){return{open:function(Vi){qi(function(Pn){var mi=(0,v.Z)(Pn),ya=mi.findIndex(function(al){return al.key===Vi.key}),Zs=(0,he.Z)({},Vi);if(ya>=0){var qs;Zs.times=(((qs=Pn[ya])===null||qs===void 0?void 0:qs.times)||0)+1,mi[ya]=Zs}else Zs.times=0,mi.push(Zs);return Qt>0&&mi.length>Qt&&(mi=mi.slice(-Qt)),mi})},close:function(Vi){Vr(Vi)},destroy:function(){qi([])}}});var ii=R.useState({}),nr=(0,k.Z)(ii,2),Mr=nr[0],rr=nr[1];R.useEffect(function(){var no={};ni.forEach(function(Vi){var Pn=Vi.placement,mi=Pn===void 0?"topRight":Pn;mi&&(no[mi]=no[mi]||[],no[mi].push(Vi))}),Object.keys(Mr).forEach(function(Vi){no[Vi]=no[Vi]||[]}),rr(no)},[ni]);var to=function(Vi){rr(function(Pn){var mi=(0,he.Z)({},Pn),ya=mi[Vi]||[];return ya.length||delete mi[Vi],mi})},ts=R.useRef(!1);if(R.useEffect(function(){Object.keys(Mr).length>0?ts.current=!0:ts.current&&(qr==null||qr(),ts.current=!1)},[Mr]),!Br)return null;var Wr=Object.keys(Mr);return(0,ae.createPortal)(R.createElement(R.Fragment,null,Wr.map(function(no){var Vi=Mr[no],Pn=R.createElement(Ft,{key:no,configList:Vi,placement:no,prefixCls:xr,className:xn==null?void 0:xn(no),style:Sr==null?void 0:Sr(no),motion:_o,onNoticeClose:Vr,onAllNoticeRemoved:to,stack:Mi});return zi?zi(Pn,{prefixCls:xr,key:no}):Pn})),Br)}),xt=ot,ut=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$t=function(){return document.body},_t=0;function bn(){for(var Zn={},Ut=arguments.length,$n=new Array(Ut),xr=0;xr0&&arguments[0]!==void 0?arguments[0]:{},Ut=Zn.getContainer,$n=Ut===void 0?$t:Ut,xr=Zn.motion,Br=Zn.prefixCls,_o=Zn.maxCount,Qt=Zn.className,xn=Zn.style,Sr=Zn.onAllRemoved,qr=Zn.stack,Mi=Zn.renderNotifications,zi=(0,K.Z)(Zn,ut),Yi=R.useState(),Si=(0,k.Z)(Yi,2),ni=Si[0],qi=Si[1],Vr=R.useRef(),ii=R.createElement(xt,{container:ni,ref:Vr,prefixCls:Br,motion:xr,maxCount:_o,className:Qt,style:xn,onAllRemoved:Sr,stack:qr,renderNotifications:Mi}),nr=R.useState([]),Mr=(0,k.Z)(nr,2),rr=Mr[0],to=Mr[1],ts=R.useMemo(function(){return{open:function(no){var Vi=bn(zi,no);(Vi.key===null||Vi.key===void 0)&&(Vi.key="rc-notification-".concat(_t),_t+=1),to(function(Pn){return[].concat((0,v.Z)(Pn),[{type:"open",config:Vi}])})},close:function(no){to(function(Vi){return[].concat((0,v.Z)(Vi),[{type:"close",key:no}])})},destroy:function(){to(function(no){return[].concat((0,v.Z)(no),[{type:"destroy"}])})}}},[]);return R.useEffect(function(){qi($n())}),R.useEffect(function(){Vr.current&&rr.length&&(rr.forEach(function(Wr){switch(Wr.type){case"open":Vr.current.open(Wr.config);break;case"close":Vr.current.close(Wr.key);break;case"destroy":Vr.current.destroy();break}}),to(function(Wr){return Wr.filter(function(no){return!rr.includes(no)})}))},[rr]),[ts,ii]}var $r=_(53124),wi=_(85731),oo=_(87263),Mo=_(14747),Ti=_(67968),Hr=_(45503);const Ho=Zn=>{const{componentCls:Ut,iconCls:$n,boxShadow:xr,colorText:Br,colorSuccess:_o,colorError:Qt,colorWarning:xn,colorInfo:Sr,fontSizeLG:qr,motionEaseInOutCirc:Mi,motionDurationSlow:zi,marginXS:Yi,paddingXS:Si,borderRadiusLG:ni,zIndexPopup:qi,contentPadding:Vr,contentBg:ii}=Zn,nr=`${Ut}-notice`,Mr=new wi.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Si,transform:"translateY(0)",opacity:1}}),rr=new wi.E4("MessageMoveOut",{"0%":{maxHeight:Zn.height,padding:Si,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),to={padding:Si,textAlign:"center",[`${Ut}-custom-content > ${$n}`]:{verticalAlign:"text-bottom",marginInlineEnd:Yi,fontSize:qr},[`${nr}-content`]:{display:"inline-block",padding:Vr,background:ii,borderRadius:ni,boxShadow:xr,pointerEvents:"all"},[`${Ut}-success > ${$n}`]:{color:_o},[`${Ut}-error > ${$n}`]:{color:Qt},[`${Ut}-warning > ${$n}`]:{color:xn},[`${Ut}-info > ${$n}, + ${Ut}-loading > ${$n}`]:{color:Sr}};return[{[Ut]:Object.assign(Object.assign({},(0,Mo.Wf)(Zn)),{color:Br,position:"fixed",top:Yi,width:"100%",pointerEvents:"none",zIndex:qi,[`${Ut}-move-up`]:{animationFillMode:"forwards"},[` + ${Ut}-move-up-appear, + ${Ut}-move-up-enter + `]:{animationName:Mr,animationDuration:zi,animationPlayState:"paused",animationTimingFunction:Mi},[` + ${Ut}-move-up-appear${Ut}-move-up-appear-active, + ${Ut}-move-up-enter${Ut}-move-up-enter-active + `]:{animationPlayState:"running"},[`${Ut}-move-up-leave`]:{animationName:rr,animationDuration:zi,animationPlayState:"paused",animationTimingFunction:Mi},[`${Ut}-move-up-leave${Ut}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[Ut]:{[`${nr}-wrapper`]:Object.assign({},to)}},{[`${Ut}-notice-pure-panel`]:Object.assign(Object.assign({},to),{padding:0,textAlign:"start"})}]};var Ss=(0,Ti.Z)("Message",Zn=>{const Ut=(0,Hr.TS)(Zn,{height:150});return[Ho(Ut)]},Zn=>({zIndexPopup:Zn.zIndexPopupBase+oo.u6+10,contentBg:Zn.colorBgElevated,contentPadding:`${(Zn.controlHeightLG-Zn.fontSize*Zn.lineHeight)/2}px ${Zn.paddingSM}px`})),Pe=function(Zn,Ut){var $n={};for(var xr in Zn)Object.prototype.hasOwnProperty.call(Zn,xr)&&Ut.indexOf(xr)<0&&($n[xr]=Zn[xr]);if(Zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Br=0,xr=Object.getOwnPropertySymbols(Zn);Br{let{prefixCls:Ut,type:$n,icon:xr,children:Br}=Zn;return R.createElement("div",{className:T()(`${Ut}-custom-content`,`${Ut}-${$n}`)},xr||qo[$n],R.createElement("span",null,Br))};var ai=Zn=>{const{prefixCls:Ut,className:$n,type:xr,icon:Br,content:_o}=Zn,Qt=Pe(Zn,["prefixCls","className","type","icon","content"]),{getPrefixCls:xn}=R.useContext($r.E_),Sr=Ut||xn("message"),[,qr]=Ss(Sr);return R.createElement(We,Object.assign({},Qt,{prefixCls:Sr,className:T()($n,qr,`${Sr}-notice-pure-panel`),eventKey:"pure",duration:null,content:R.createElement(Ki,{prefixCls:Sr,type:xr,icon:Br},_o)}))},$o=_(62208),Mn=_(27288);function nt(Zn,Ut){return{motionName:Ut!=null?Ut:`${Zn}-move-up`}}function Dt(Zn){let Ut;const $n=new Promise(Br=>{Ut=Zn(()=>{Br(!0)})}),xr=()=>{Ut==null||Ut()};return xr.then=(Br,_o)=>$n.then(Br,_o),xr.promise=$n,xr}var Kt=function(Zn,Ut){var $n={};for(var xr in Zn)Object.prototype.hasOwnProperty.call(Zn,xr)&&Ut.indexOf(xr)<0&&($n[xr]=Zn[xr]);if(Zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Br=0,xr=Object.getOwnPropertySymbols(Zn);Br{let{children:Ut,prefixCls:$n}=Zn;const[,xr]=Ss($n);return R.createElement(Se,{classNames:{list:xr,notice:xr}},Ut)},tn=(Zn,Ut)=>{let{prefixCls:$n,key:xr}=Ut;return R.createElement(an,{prefixCls:$n,key:xr},Zn)},kt=R.forwardRef((Zn,Ut)=>{const{top:$n,prefixCls:xr,getContainer:Br,maxCount:_o,duration:Qt=kn,rtl:xn,transitionName:Sr,onAllRemoved:qr}=Zn,{getPrefixCls:Mi,getPopupContainer:zi,message:Yi}=R.useContext($r.E_),Si=xr||Mi("message"),ni=()=>({left:"50%",transform:"translateX(-50%)",top:$n!=null?$n:mn}),qi=()=>T()({[`${Si}-rtl`]:xn}),Vr=()=>nt(Si,Sr),ii=R.createElement("span",{className:`${Si}-close-x`},R.createElement($o.Z,{className:`${Si}-close-icon`})),[nr,Mr]=Wn({prefixCls:Si,style:ni,className:qi,motion:Vr,closable:!1,closeIcon:ii,duration:Qt,getContainer:()=>(Br==null?void 0:Br())||(zi==null?void 0:zi())||document.body,maxCount:_o,onAllRemoved:qr,renderNotifications:tn});return R.useImperativeHandle(Ut,()=>Object.assign(Object.assign({},nr),{prefixCls:Si,message:Yi})),Mr});let en=0;function Vn(Zn){const Ut=R.useRef(null),$n=(0,Mn.ln)("Message");return[R.useMemo(()=>{const Br=qr=>{var Mi;(Mi=Ut.current)===null||Mi===void 0||Mi.close(qr)},_o=qr=>{if(!Ut.current){const Wr=()=>{};return Wr.then=()=>{},Wr}const{open:Mi,prefixCls:zi,message:Yi}=Ut.current,Si=`${zi}-notice`,{content:ni,icon:qi,type:Vr,key:ii,className:nr,style:Mr,onClose:rr}=qr,to=Kt(qr,["content","icon","type","key","className","style","onClose"]);let ts=ii;return ts==null&&(en+=1,ts=`antd-message-${en}`),Dt(Wr=>(Mi(Object.assign(Object.assign({},to),{key:ts,content:R.createElement(Ki,{prefixCls:zi,type:Vr,icon:qi},ni),placement:"top",className:T()(Vr&&`${Si}-${Vr}`,nr,Yi==null?void 0:Yi.className),style:Object.assign(Object.assign({},Yi==null?void 0:Yi.style),Mr),onClose:()=>{rr==null||rr(),Wr()}})),()=>{Br(ts)}))},xn={open:_o,destroy:qr=>{var Mi;qr!==void 0?Br(qr):(Mi=Ut.current)===null||Mi===void 0||Mi.destroy()}};return["info","success","warning","error","loading"].forEach(qr=>{const Mi=(zi,Yi,Si)=>{let ni;zi&&typeof zi=="object"&&"content"in zi?ni=zi:ni={content:zi};let qi,Vr;typeof Yi=="function"?Vr=Yi:(qi=Yi,Vr=Si);const ii=Object.assign(Object.assign({onClose:Vr,duration:qi},ni),{type:qr});return _o(ii)};xn[qr]=Mi}),xn},[]),R.createElement(kt,Object.assign({key:"message-holder"},Zn,{ref:Ut}))]}function on(Zn){return Vn(Zn)}let Dr=null,oi=Zn=>Zn(),Ii=[],jr={};function eo(){const{prefixCls:Zn,getContainer:Ut,duration:$n,rtl:xr,maxCount:Br,top:_o}=jr,Qt=Zn!=null?Zn:(0,b.w6)().getPrefixCls("message"),xn=(Ut==null?void 0:Ut())||document.body;return{prefixCls:Qt,getContainer:()=>xn,duration:$n,rtl:xr,maxCount:Br,top:_o}}const Uo=R.forwardRef((Zn,Ut)=>{const[$n,xr]=R.useState(eo),[Br,_o]=Vn($n),Qt=(0,b.w6)(),xn=Qt.getRootPrefixCls(),Sr=Qt.getIconPrefixCls(),qr=Qt.getTheme(),Mi=()=>{xr(eo)};return R.useEffect(Mi,[]),R.useImperativeHandle(Ut,()=>{const zi=Object.assign({},Br);return Object.keys(zi).forEach(Yi=>{zi[Yi]=function(){return Mi(),Br[Yi].apply(Br,arguments)}}),{instance:zi,sync:Mi}}),R.createElement(b.ZP,{prefixCls:xn,iconPrefixCls:Sr,theme:qr},_o)});function Fn(){if(!Dr){const Zn=document.createDocumentFragment(),Ut={fragment:Zn};Dr=Ut,oi(()=>{(0,w.s)(R.createElement(Uo,{ref:$n=>{const{instance:xr,sync:Br}=$n||{};Promise.resolve().then(()=>{!Ut.instance&&xr&&(Ut.instance=xr,Ut.sync=Br,Fn())})}}),Zn)});return}Dr.instance&&(Ii.forEach(Zn=>{const{type:Ut,skipped:$n}=Zn;if(!$n)switch(Ut){case"open":{oi(()=>{const xr=Dr.instance.open(Object.assign(Object.assign({},jr),Zn.config));xr==null||xr.then(Zn.resolve),Zn.setCloseFn(xr)});break}case"destroy":oi(()=>{Dr==null||Dr.instance.destroy(Zn.key)});break;default:oi(()=>{var xr;const Br=(xr=Dr.instance)[Ut].apply(xr,(0,v.Z)(Zn.args));Br==null||Br.then(Zn.resolve),Zn.setCloseFn(Br)})}}),Ii=[])}function Qr(Zn){jr=Object.assign(Object.assign({},jr),Zn),oi(()=>{var Ut;(Ut=Dr==null?void 0:Dr.sync)===null||Ut===void 0||Ut.call(Dr)})}function ci(Zn){const Ut=Dt($n=>{let xr;const Br={type:"open",config:Zn,resolve:$n,setCloseFn:_o=>{xr=_o}};return Ii.push(Br),()=>{xr?oi(()=>{xr()}):Br.skipped=!0}});return Fn(),Ut}function ji(Zn,Ut){const $n=Dt(xr=>{let Br;const _o={type:Zn,args:Ut,resolve:xr,setCloseFn:Qt=>{Br=Qt}};return Ii.push(_o),()=>{Br?oi(()=>{Br()}):_o.skipped=!0}});return Fn(),$n}function cr(Zn){Ii.push({type:"destroy",key:Zn}),Fn()}const Qn=["success","info","warning","error","loading"],Yt={open:ci,destroy:cr,config:Qr,useMessage:on,_InternalPanelDoNotUseOrYouWillBeFired:ai};Qn.forEach(Zn=>{Yt[Zn]=function(){for(var Ut=arguments.length,$n=new Array(Ut),xr=0;xr{};let er=null,Tr=null;var Nr=Yt},39124:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return No}});var v=_(74902),R=_(38135),w=_(67294),b=_(94740),B=_(76278),V=_(41322),O=_(26702),L=_(1558),S=_(94184),g=_.n(S),T=_(87263),k=_(33603),K=_(10110),he=_(25976),ae=_(86743);const fe=w.createContext({}),{Provider:_e}=fe;var xe=()=>{const{autoFocusButton:yr,cancelButtonProps:ui,cancelTextLocale:Zo,isSilent:ns,mergedOkCancel:Lr,rootPrefixCls:Ei,close:hn,onCancel:Tn,onConfirm:ar}=(0,w.useContext)(fe);return Lr?w.createElement(ae.Z,{isSilent:ns,actionFn:Tn,close:function(){hn==null||hn.apply(void 0,arguments),ar==null||ar(!1)},autoFocus:yr==="cancel",buttonProps:ui,prefixCls:`${Ei}-btn`},Zo):null},We=()=>{const{autoFocusButton:yr,close:ui,isSilent:Zo,okButtonProps:ns,rootPrefixCls:Lr,okTextLocale:Ei,okType:hn,onConfirm:Tn,onOk:ar}=(0,w.useContext)(fe);return w.createElement(ae.Z,{isSilent:Zo,type:hn||"primary",actionFn:ar,close:function(){ui==null||ui.apply(void 0,arguments),Tn==null||Tn(!0)},autoFocus:yr==="ok",buttonProps:ns,prefixCls:`${Lr}-btn`},Ei)},dt=_(62208),Me=_(87462),Se=_(97685),ze=_(2788),De=w.createContext({}),ke=_(1413),$e=_(94999),Te=_(7028),tt=_(15105),Oe=_(64217);function Xt(yr,ui,Zo){var ns=ui;return!ns&&Zo&&(ns="".concat(yr,"-").concat(Zo)),ns}function Ft(yr,ui){var Zo=yr["page".concat(ui?"Y":"X","Offset")],ns="scroll".concat(ui?"Top":"Left");if(typeof Zo!="number"){var Lr=yr.document;Zo=Lr.documentElement[ns],typeof Zo!="number"&&(Zo=Lr.body[ns])}return Zo}function ot(yr){var ui=yr.getBoundingClientRect(),Zo={left:ui.left,top:ui.top},ns=yr.ownerDocument,Lr=ns.defaultView||ns.parentWindow;return Zo.left+=Ft(Lr),Zo.top+=Ft(Lr,!0),Zo}var xt=_(82225),ut=_(42550),$t=w.memo(function(yr){var ui=yr.children;return ui},function(yr,ui){var Zo=ui.shouldUpdate;return!Zo}),_t={width:0,height:0,overflow:"hidden",outline:"none"},bn=w.forwardRef(function(yr,ui){var Zo=yr.prefixCls,ns=yr.className,Lr=yr.style,Ei=yr.title,hn=yr.ariaId,Tn=yr.footer,ar=yr.closable,ft=yr.closeIcon,wt=yr.onClose,At=yr.children,Ye=yr.bodyStyle,Et=yr.bodyProps,Wt=yr.modalRender,vn=yr.onMouseDown,Er=yr.onMouseUp,Gr=yr.holderRef,Gi=yr.visible,ko=yr.forceRender,Bi=yr.width,ms=yr.height,ps=yr.classNames,Js=yr.styles,Hs=w.useContext(De),Po=Hs.panel,zs=(0,ut.x1)(Gr,Po),ma=(0,w.useRef)(),va=(0,w.useRef)();w.useImperativeHandle(ui,function(){return{focus:function(){var io;(io=ma.current)===null||io===void 0||io.focus()},changeActive:function(io){var Ko=document,As=Ko.activeElement;io&&As===va.current?ma.current.focus():!io&&As===ma.current&&va.current.focus()}}});var El={};Bi!==void 0&&(El.width=Bi),ms!==void 0&&(El.height=ms);var Dl;Tn&&(Dl=w.createElement("div",{className:g()("".concat(Zo,"-footer"),ps==null?void 0:ps.footer),style:(0,ke.Z)({},Js==null?void 0:Js.footer)},Tn));var Ns;Ei&&(Ns=w.createElement("div",{className:g()("".concat(Zo,"-header"),ps==null?void 0:ps.header),style:(0,ke.Z)({},Js==null?void 0:Js.header)},w.createElement("div",{className:"".concat(Zo,"-title"),id:hn},Ei)));var Ca;ar&&(Ca=w.createElement("button",{type:"button",onClick:wt,"aria-label":"Close",className:"".concat(Zo,"-close")},ft||w.createElement("span",{className:"".concat(Zo,"-close-x")})));var vl=w.createElement("div",{className:g()("".concat(Zo,"-content"),ps==null?void 0:ps.content),style:Js==null?void 0:Js.content},Ca,Ns,w.createElement("div",(0,Me.Z)({className:g()("".concat(Zo,"-body"),ps==null?void 0:ps.body),style:(0,ke.Z)((0,ke.Z)({},Ye),Js==null?void 0:Js.body)},Et),At),Dl);return w.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ei?hn:null,"aria-modal":"true",ref:zs,style:(0,ke.Z)((0,ke.Z)({},Lr),El),className:g()(Zo,ns),onMouseDown:vn,onMouseUp:Er},w.createElement("div",{tabIndex:0,ref:ma,style:_t,"aria-hidden":"true"}),w.createElement($t,{shouldUpdate:Gi||ko},Wt?Wt(vl):vl),w.createElement("div",{tabIndex:0,ref:va,style:_t,"aria-hidden":"true"}))}),Wn=bn,$r=w.forwardRef(function(yr,ui){var Zo=yr.prefixCls,ns=yr.title,Lr=yr.style,Ei=yr.className,hn=yr.visible,Tn=yr.forceRender,ar=yr.destroyOnClose,ft=yr.motionName,wt=yr.ariaId,At=yr.onVisibleChanged,Ye=yr.mousePosition,Et=(0,w.useRef)(),Wt=w.useState(),vn=(0,Se.Z)(Wt,2),Er=vn[0],Gr=vn[1],Gi={};Er&&(Gi.transformOrigin=Er);function ko(){var Bi=ot(Et.current);Gr(Ye?"".concat(Ye.x-Bi.left,"px ").concat(Ye.y-Bi.top,"px"):"")}return w.createElement(xt.ZP,{visible:hn,onVisibleChanged:At,onAppearPrepare:ko,onEnterPrepare:ko,forceRender:Tn,motionName:ft,removeOnLeave:ar,ref:Et},function(Bi,ms){var ps=Bi.className,Js=Bi.style;return w.createElement(Wn,(0,Me.Z)({},yr,{ref:ui,title:ns,ariaId:wt,prefixCls:Zo,holderRef:ms,style:(0,ke.Z)((0,ke.Z)((0,ke.Z)({},Js),Lr),Gi),className:g()(Ei,ps)}))})});$r.displayName="Content";var wi=$r;function oo(yr){var ui=yr.prefixCls,Zo=yr.style,ns=yr.visible,Lr=yr.maskProps,Ei=yr.motionName,hn=yr.className;return w.createElement(xt.ZP,{key:"mask",visible:ns,motionName:Ei,leavedClassName:"".concat(ui,"-mask-hidden")},function(Tn,ar){var ft=Tn.className,wt=Tn.style;return w.createElement("div",(0,Me.Z)({ref:ar,style:(0,ke.Z)((0,ke.Z)({},wt),Zo),className:g()("".concat(ui,"-mask"),ft,hn)},Lr))})}var Mo=_(80334);function Ti(yr){var ui=yr.prefixCls,Zo=ui===void 0?"rc-dialog":ui,ns=yr.zIndex,Lr=yr.visible,Ei=Lr===void 0?!1:Lr,hn=yr.keyboard,Tn=hn===void 0?!0:hn,ar=yr.focusTriggerAfterClose,ft=ar===void 0?!0:ar,wt=yr.wrapStyle,At=yr.wrapClassName,Ye=yr.wrapProps,Et=yr.onClose,Wt=yr.afterOpenChange,vn=yr.afterClose,Er=yr.transitionName,Gr=yr.animation,Gi=yr.closable,ko=Gi===void 0?!0:Gi,Bi=yr.mask,ms=Bi===void 0?!0:Bi,ps=yr.maskTransitionName,Js=yr.maskAnimation,Hs=yr.maskClosable,Po=Hs===void 0?!0:Hs,zs=yr.maskStyle,ma=yr.maskProps,va=yr.rootClassName,El=yr.classNames,Dl=yr.styles,Ns=(0,w.useRef)(),Ca=(0,w.useRef)(),vl=(0,w.useRef)(),ds=w.useState(Ei),io=(0,Se.Z)(ds,2),Ko=io[0],As=io[1],ks=(0,Te.Z)();function Ga(){(0,$e.Z)(Ca.current,document.activeElement)||(Ns.current=document.activeElement)}function zu(){if(!(0,$e.Z)(Ca.current,document.activeElement)){var Jr;(Jr=vl.current)===null||Jr===void 0||Jr.focus()}}function Ac(Jr){if(Jr)zu();else{if(As(!1),ms&&Ns.current&&ft){try{Ns.current.focus({preventScroll:!0})}catch(_i){}Ns.current=null}Ko&&(vn==null||vn())}Wt==null||Wt(Jr)}function vc(Jr){Et==null||Et(Jr)}var ec=(0,w.useRef)(!1),qu=(0,w.useRef)(),Uu=function(){clearTimeout(qu.current),ec.current=!0},zn=function(){qu.current=setTimeout(function(){ec.current=!1})},ur=null;Po&&(ur=function(_i){ec.current?ec.current=!1:Ca.current===_i.target&&vc(_i)});function Zr(Jr){if(Tn&&Jr.keyCode===tt.Z.ESC){Jr.stopPropagation(),vc(Jr);return}Ei&&Jr.keyCode===tt.Z.TAB&&vl.current.changeActive(!Jr.shiftKey)}return(0,w.useEffect)(function(){Ei&&(As(!0),Ga())},[Ei]),(0,w.useEffect)(function(){return function(){clearTimeout(qu.current)}},[]),w.createElement("div",(0,Me.Z)({className:g()("".concat(Zo,"-root"),va)},(0,Oe.Z)(yr,{data:!0})),w.createElement(oo,{prefixCls:Zo,visible:ms&&Ei,motionName:Xt(Zo,ps,Js),style:(0,ke.Z)((0,ke.Z)({zIndex:ns},zs),Dl==null?void 0:Dl.mask),maskProps:ma,className:El==null?void 0:El.mask}),w.createElement("div",(0,Me.Z)({tabIndex:-1,onKeyDown:Zr,className:g()("".concat(Zo,"-wrap"),At,El==null?void 0:El.wrapper),ref:Ca,onClick:ur,style:(0,ke.Z)((0,ke.Z)((0,ke.Z)({zIndex:ns},wt),Dl==null?void 0:Dl.wrapper),{},{display:Ko?null:"none"})},Ye),w.createElement(wi,(0,Me.Z)({},yr,{onMouseDown:Uu,onMouseUp:zn,ref:vl,closable:ko,ariaId:ks,prefixCls:Zo,visible:Ei&&Ko,onClose:vc,onVisibleChanged:Ac,motionName:Xt(Zo,Er,Gr)}))))}var Hr=function(ui){var Zo=ui.visible,ns=ui.getContainer,Lr=ui.forceRender,Ei=ui.destroyOnClose,hn=Ei===void 0?!1:Ei,Tn=ui.afterClose,ar=ui.panelRef,ft=w.useState(Zo),wt=(0,Se.Z)(ft,2),At=wt[0],Ye=wt[1],Et=w.useMemo(function(){return{panel:ar}},[ar]);return w.useEffect(function(){Zo&&Ye(!0)},[Zo]),!Lr&&hn&&!At?null:w.createElement(De.Provider,{value:Et},w.createElement(ze.Z,{open:Zo||Lr||At,autoDestroy:!1,getContainer:ns,autoLock:Zo||At},w.createElement(Ti,(0,Me.Z)({},ui,{destroyOnClose:hn,afterClose:function(){Tn==null||Tn(),Ye(!1)}}))))};Hr.displayName="Dialog";var Ho=Hr,Ss=Ho,Pe=_(69760),qo=_(98924);const Ki=()=>(0,qo.Z)()&&window.document.documentElement;var Do=_(43945),ai=_(53124),$o=_(65223),Mn=_(4173),nt=_(56790);function Dt(){}const Kt=w.createContext({add:Dt,remove:Dt});function mn(yr){const ui=w.useContext(Kt),Zo=w.useRef();return(0,nt.zX)(Lr=>{if(Lr){const Ei=yr?Lr.querySelector(yr):Lr;ui.add(Ei),Zo.current=Ei}else ui.remove(Zo.current)})}var kn=null,an=_(98866),tn=_(15867),en=()=>{const{cancelButtonProps:yr,cancelTextLocale:ui,onCancel:Zo}=(0,w.useContext)(fe);return w.createElement(tn.ZP,Object.assign({onClick:Zo},yr),ui)},Vn=_(33671),Dr=()=>{const{confirmLoading:yr,okButtonProps:ui,okType:Zo,okTextLocale:ns,onOk:Lr}=(0,w.useContext)(fe);return w.createElement(tn.ZP,Object.assign({},(0,Vn.nx)(Zo),{loading:yr,onClick:Lr},ui),ns)},oi=_(83008);function Ii(yr,ui){return w.createElement("span",{className:`${yr}-close-x`},ui||w.createElement(dt.Z,{className:`${yr}-close-icon`}))}const jr=yr=>{const{okText:ui,okType:Zo="primary",cancelText:ns,confirmLoading:Lr,onOk:Ei,onCancel:hn,okButtonProps:Tn,cancelButtonProps:ar,footer:ft}=yr,[wt]=(0,K.Z)("Modal",(0,oi.A)()),At=ui||(wt==null?void 0:wt.okText),Ye=ns||(wt==null?void 0:wt.cancelText),Et={confirmLoading:Lr,okButtonProps:Tn,cancelButtonProps:ar,okTextLocale:At,cancelTextLocale:Ye,okType:Zo,onOk:Ei,onCancel:hn},Wt=w.useMemo(()=>Et,(0,v.Z)(Object.values(Et)));let vn;return typeof ft=="function"||typeof ft=="undefined"?(vn=w.createElement(w.Fragment,null,w.createElement(en,null),w.createElement(Dr,null)),typeof ft=="function"&&(vn=ft(vn,{OkBtn:Dr,CancelBtn:en})),vn=w.createElement(_e,{value:Wt},vn)):vn=ft,w.createElement(an.n,{disabled:!1},vn)};var eo=_(14747),Uo=_(16932),Fn=_(50438),Qr=_(45503),ci=_(67968);function ji(yr){return{position:yr,inset:0}}const cr=yr=>{const{componentCls:ui,antCls:Zo}=yr;return[{[`${ui}-root`]:{[`${ui}${Zo}-zoom-enter, ${ui}${Zo}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:yr.motionDurationSlow,userSelect:"none"},[`${ui}${Zo}-zoom-leave ${ui}-content`]:{pointerEvents:"none"},[`${ui}-mask`]:Object.assign(Object.assign({},ji("fixed")),{zIndex:yr.zIndexPopupBase,height:"100%",backgroundColor:yr.colorBgMask,pointerEvents:"none",[`${ui}-hidden`]:{display:"none"}}),[`${ui}-wrap`]:Object.assign(Object.assign({},ji("fixed")),{zIndex:yr.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${ui}${Zo}-zoom-enter), &:has(${ui}${Zo}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${ui}-root`]:(0,Uo.J$)(yr)}]},Qn=yr=>{const{componentCls:ui}=yr;return[{[`${ui}-root`]:{[`${ui}-wrap-rtl`]:{direction:"rtl"},[`${ui}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[ui]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${yr.screenSMMax})`]:{[ui]:{maxWidth:"calc(100vw - 16px)",margin:`${yr.marginXS} auto`},[`${ui}-centered`]:{[ui]:{flex:1}}}}},{[ui]:Object.assign(Object.assign({},(0,eo.Wf)(yr)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${yr.margin*2}px)`,margin:"0 auto",paddingBottom:yr.paddingLG,[`${ui}-title`]:{margin:0,color:yr.titleColor,fontWeight:yr.fontWeightStrong,fontSize:yr.titleFontSize,lineHeight:yr.titleLineHeight,wordWrap:"break-word"},[`${ui}-content`]:{position:"relative",backgroundColor:yr.contentBg,backgroundClip:"padding-box",border:0,borderRadius:yr.borderRadiusLG,boxShadow:yr.boxShadow,pointerEvents:"auto",padding:`${yr.paddingMD}px ${yr.paddingContentHorizontalLG}px`},[`${ui}-close`]:Object.assign({position:"absolute",top:(yr.modalHeaderHeight-yr.modalCloseBtnSize)/2,insetInlineEnd:(yr.modalHeaderHeight-yr.modalCloseBtnSize)/2,zIndex:yr.zIndexPopupBase+10,padding:0,color:yr.modalCloseIconColor,fontWeight:yr.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:yr.borderRadiusSM,width:yr.modalCloseBtnSize,height:yr.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${yr.motionDurationMid}, background-color ${yr.motionDurationMid}`,"&-x":{display:"flex",fontSize:yr.fontSizeLG,fontStyle:"normal",lineHeight:`${yr.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:yr.modalIconHoverColor,backgroundColor:yr.wireframe?"transparent":yr.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:yr.wireframe?"transparent":yr.colorFillContentHover}},(0,eo.Qy)(yr)),[`${ui}-header`]:{color:yr.colorText,background:yr.headerBg,borderRadius:`${yr.borderRadiusLG}px ${yr.borderRadiusLG}px 0 0`,marginBottom:yr.marginXS},[`${ui}-body`]:{fontSize:yr.fontSize,lineHeight:yr.lineHeight,wordWrap:"break-word"},[`${ui}-footer`]:{textAlign:"end",background:yr.footerBg,marginTop:yr.marginSM,[`${yr.antCls}-btn + ${yr.antCls}-btn:not(${yr.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:yr.marginXS}},[`${ui}-open`]:{overflow:"hidden"}})},{[`${ui}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${ui}-content, + ${ui}-body, + ${ui}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${ui}-confirm-body`]:{marginBottom:"auto"}}}]},Vt=yr=>{const{componentCls:ui,antCls:Zo}=yr,ns=`${ui}-confirm`;return{[ui]:{[`${ui}-content`]:{padding:0},[`${ui}-header`]:{padding:yr.modalHeaderPadding,borderBottom:`${yr.modalHeaderBorderWidth}px ${yr.modalHeaderBorderStyle} ${yr.modalHeaderBorderColorSplit}`,marginBottom:0},[`${ui}-body`]:{padding:yr.modalBodyPadding},[`${ui}-footer`]:{padding:`${yr.modalFooterPaddingVertical}px ${yr.modalFooterPaddingHorizontal}px`,borderTop:`${yr.modalFooterBorderWidth}px ${yr.modalFooterBorderStyle} ${yr.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${yr.borderRadiusLG}px ${yr.borderRadiusLG}px`,marginTop:0}},[ns]:{[`${Zo}-modal-body`]:{padding:`${yr.padding*2}px ${yr.padding*2}px ${yr.paddingLG}px`},[`${ns}-body > ${yr.iconCls}`]:{marginInlineEnd:yr.margin},[`${ns}-btns`]:{marginTop:yr.marginLG}}}},Yt=yr=>{const{componentCls:ui}=yr;return{[`${ui}-root`]:{[`${ui}-wrap-rtl`]:{direction:"rtl",[`${ui}-confirm-body`]:{direction:"rtl"}}}}},En=yr=>{const ui=yr.padding,Zo=yr.fontSizeHeading5,ns=yr.lineHeightHeading5;return(0,Qr.TS)(yr,{modalBodyPadding:yr.paddingLG,modalHeaderPadding:`${ui}px ${yr.paddingLG}px`,modalHeaderBorderWidth:yr.lineWidth,modalHeaderBorderStyle:yr.lineType,modalHeaderBorderColorSplit:yr.colorSplit,modalHeaderHeight:ns*Zo+ui*2,modalFooterBorderColorSplit:yr.colorSplit,modalFooterBorderStyle:yr.lineType,modalFooterPaddingVertical:yr.paddingXS,modalFooterPaddingHorizontal:yr.padding,modalFooterBorderWidth:yr.lineWidth,modalIconHoverColor:yr.colorIconHover,modalCloseIconColor:yr.colorIcon,modalCloseBtnSize:yr.fontSize*yr.lineHeight,modalConfirmIconSize:yr.fontSize*yr.lineHeight})},er=yr=>({footerBg:"transparent",headerBg:yr.colorBgElevated,titleLineHeight:yr.lineHeightHeading5,titleFontSize:yr.fontSizeHeading5,contentBg:yr.colorBgElevated,titleColor:yr.colorTextHeading});var Tr=(0,ci.Z)("Modal",yr=>{const ui=En(yr);return[Qn(ui),Yt(ui),cr(ui),yr.wireframe&&Vt(ui),(0,Fn._y)(ui,"zoom")]},er),Nr=function(yr,ui){var Zo={};for(var ns in yr)Object.prototype.hasOwnProperty.call(yr,ns)&&ui.indexOf(ns)<0&&(Zo[ns]=yr[ns]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ns=Object.getOwnPropertySymbols(yr);Lr{Zn={x:yr.pageX,y:yr.pageY},setTimeout(()=>{Zn=null},100)};Ki()&&document.documentElement.addEventListener("click",Ut,!0);var xr=yr=>{var ui;const{getPopupContainer:Zo,getPrefixCls:ns,direction:Lr,modal:Ei}=w.useContext(ai.E_),hn=Ko=>{const{onCancel:As}=yr;As==null||As(Ko)},Tn=Ko=>{const{onOk:As}=yr;As==null||As(Ko)},{prefixCls:ar,className:ft,rootClassName:wt,open:At,wrapClassName:Ye,centered:Et,getContainer:Wt,closeIcon:vn,closable:Er,focusTriggerAfterClose:Gr=!0,style:Gi,visible:ko,width:Bi=520,footer:ms,classNames:ps,styles:Js}=yr,Hs=Nr(yr,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Po=ns("modal",ar),zs=ns(),[ma,va]=Tr(Po),El=g()(Ye,{[`${Po}-centered`]:!!Et,[`${Po}-wrap-rtl`]:Lr==="rtl"}),Dl=ms!==null&&w.createElement(jr,Object.assign({},yr,{onOk:Tn,onCancel:hn})),[Ns,Ca]=(0,Pe.Z)(Er,vn,Ko=>Ii(Po,Ko),w.createElement(dt.Z,{className:`${Po}-close-icon`}),!0),vl=mn(`.${Po}-content`),[ds,io]=(0,T.Cn)("Modal",Hs.zIndex);return ma(w.createElement(Mn.BR,null,w.createElement($o.Ux,{status:!0,override:!0},w.createElement(Do.Z.Provider,{value:io},w.createElement(Ss,Object.assign({width:Bi},Hs,{zIndex:ds,getContainer:Wt===void 0?Zo:Wt,prefixCls:Po,rootClassName:g()(va,wt),footer:Dl,visible:At!=null?At:ko,mousePosition:(ui=Hs.mousePosition)!==null&&ui!==void 0?ui:Zn,onClose:hn,closable:Ns,closeIcon:Ca,focusTriggerAfterClose:Gr,transitionName:(0,k.m)(zs,"zoom",yr.transitionName),maskTransitionName:(0,k.m)(zs,"fade",yr.maskTransitionName),className:g()(va,ft,Ei==null?void 0:Ei.className),style:Object.assign(Object.assign({},Ei==null?void 0:Ei.style),Gi),classNames:Object.assign(Object.assign({wrapper:El},Ei==null?void 0:Ei.classNames),ps),styles:Object.assign(Object.assign({},Ei==null?void 0:Ei.styles),Js),panelRef:vl}))))))};const Br=yr=>{const{componentCls:ui,titleFontSize:Zo,titleLineHeight:ns,modalConfirmIconSize:Lr,fontSize:Ei,lineHeight:hn}=yr,Tn=`${ui}-confirm`,ar=Math.round(Zo*ns),ft=Math.round(Ei*hn);return{[Tn]:{"&-rtl":{direction:"rtl"},[`${yr.antCls}-modal-header`]:{display:"none"},[`${Tn}-body-wrapper`]:Object.assign({},(0,eo.dF)()),[`${Tn}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${yr.iconCls}`]:{flex:"none",fontSize:Lr,marginInlineEnd:yr.marginSM,marginTop:(ft-Lr)/2},[`&-has-title > ${yr.iconCls}`]:{marginTop:(ar-Lr)/2}},[`${Tn}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:yr.marginXS,maxWidth:`calc(100% - ${yr.modalConfirmIconSize+yr.marginSM}px)`},[`${Tn}-title`]:{color:yr.colorTextHeading,fontWeight:yr.fontWeightStrong,fontSize:Zo,lineHeight:ns},[`${Tn}-content`]:{color:yr.colorText,fontSize:Ei,lineHeight:hn},[`${Tn}-btns`]:{textAlign:"end",marginTop:yr.marginSM,[`${yr.antCls}-btn + ${yr.antCls}-btn`]:{marginBottom:0,marginInlineStart:yr.marginXS}}},[`${Tn}-error ${Tn}-body > ${yr.iconCls}`]:{color:yr.colorError},[`${Tn}-warning ${Tn}-body > ${yr.iconCls}, + ${Tn}-confirm ${Tn}-body > ${yr.iconCls}`]:{color:yr.colorWarning},[`${Tn}-info ${Tn}-body > ${yr.iconCls}`]:{color:yr.colorInfo},[`${Tn}-success ${Tn}-body > ${yr.iconCls}`]:{color:yr.colorSuccess}}};var _o=(0,ci.b)(["Modal","confirm"],yr=>{const ui=En(yr);return[Br(ui)]},er,{order:-1e3}),Qt=function(yr,ui){var Zo={};for(var ns in yr)Object.prototype.hasOwnProperty.call(yr,ns)&&ui.indexOf(ns)<0&&(Zo[ns]=yr[ns]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ns=Object.getOwnPropertySymbols(yr);LrGi,(0,v.Z)(Object.values(Gi))),Bi=w.createElement(w.Fragment,null,w.createElement(xe,null),w.createElement(We,null)),ms=yr.title!==void 0&&yr.title!==null,ps=`${Ei}-body`;return w.createElement("div",{className:`${Ei}-body-wrapper`},w.createElement("div",{className:g()(ps,{[`${ps}-has-title`]:ms})},At,w.createElement("div",{className:`${Ei}-paragraph`},ms&&w.createElement("span",{className:`${Ei}-title`},yr.title),w.createElement("div",{className:`${Ei}-content`},yr.content))),ar===void 0||typeof ar=="function"?w.createElement(_e,{value:ko},w.createElement("div",{className:`${Ei}-btns`},typeof ar=="function"?ar(Bi,{OkBtn:We,CancelBtn:xe}):Bi)):ar,w.createElement(_o,{prefixCls:ui}))}const Sr=yr=>{const{close:ui,zIndex:Zo,afterClose:ns,open:Lr,keyboard:Ei,centered:hn,getContainer:Tn,maskStyle:ar,direction:ft,prefixCls:wt,wrapClassName:At,rootPrefixCls:Ye,bodyStyle:Et,closable:Wt=!1,closeIcon:vn,modalRender:Er,focusTriggerAfterClose:Gr,onConfirm:Gi,styles:ko}=yr,Bi=`${wt}-confirm`,ms=yr.width||416,ps=yr.style||{},Js=yr.mask===void 0?!0:yr.mask,Hs=yr.maskClosable===void 0?!1:yr.maskClosable,Po=g()(Bi,`${Bi}-${yr.type}`,{[`${Bi}-rtl`]:ft==="rtl"},yr.className),[,zs]=(0,he.Z)(),ma=w.useMemo(()=>Zo!==void 0?Zo:zs.zIndexPopupBase+T.u6,[Zo,zs]);return w.createElement(xr,{prefixCls:wt,className:Po,wrapClassName:g()({[`${Bi}-centered`]:!!yr.centered},At),onCancel:()=>{ui==null||ui({triggerCancel:!0}),Gi==null||Gi(!1)},open:Lr,title:"",footer:null,transitionName:(0,k.m)(Ye||"","zoom",yr.transitionName),maskTransitionName:(0,k.m)(Ye||"","fade",yr.maskTransitionName),mask:Js,maskClosable:Hs,style:ps,styles:Object.assign({body:Et,mask:ar},ko),width:ms,zIndex:ma,afterClose:ns,keyboard:Ei,centered:hn,getContainer:Tn,closable:Wt,closeIcon:vn,modalRender:Er,focusTriggerAfterClose:Gr},w.createElement(xn,Object.assign({},yr,{confirmPrefixCls:Bi})))};var Mi=yr=>{const{rootPrefixCls:ui,iconPrefixCls:Zo,direction:ns,theme:Lr}=yr;return w.createElement(b.ZP,{prefixCls:ui,iconPrefixCls:Zo,direction:ns,theme:Lr},w.createElement(Sr,Object.assign({},yr)))},Yi=[],Si=function(yr,ui){var Zo={};for(var ns in yr)Object.prototype.hasOwnProperty.call(yr,ns)&&ui.indexOf(ns)<0&&(Zo[ns]=yr[ns]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ns=Object.getOwnPropertySymbols(yr);LrYe&&Ye.triggerCancel);yr.onCancel&&At&&yr.onCancel.apply(yr,[()=>{}].concat((0,v.Z)(ft.slice(1))));for(let Ye=0;Ye{const Wt=(0,oi.A)(),{getPrefixCls:vn,getIconPrefixCls:Er,getTheme:Gr}=(0,b.w6)(),Gi=vn(void 0,qi()),ko=At||`${Gi}-modal`,Bi=Er(),ms=Gr();let ps=Ye;ps===!1&&(ps=void 0),(0,R.s)(w.createElement(Mi,Object.assign({},Et,{getContainer:ps,prefixCls:ko,rootPrefixCls:Gi,iconPrefixCls:Bi,okText:ft,locale:Wt,theme:ms,cancelText:wt||Wt.cancelText})),ui)})}function hn(){for(var ar=arguments.length,ft=new Array(ar),wt=0;wt{typeof yr.afterClose=="function"&&yr.afterClose(),Lr.apply(this,ft)}}),Zo.visible&&delete Zo.visible,Ei(Zo)}function Tn(ar){typeof ar=="function"?Zo=ar(Zo):Zo=Object.assign(Object.assign({},Zo),ar),Ei(Zo)}return Ei(Zo),Yi.push(hn),{destroy:hn,update:Tn}}function ii(yr){return Object.assign(Object.assign({},yr),{type:"warning"})}function nr(yr){return Object.assign(Object.assign({},yr),{type:"info"})}function Mr(yr){return Object.assign(Object.assign({},yr),{type:"success"})}function rr(yr){return Object.assign(Object.assign({},yr),{type:"error"})}function to(yr){return Object.assign(Object.assign({},yr),{type:"confirm"})}function ts(yr){let{rootPrefixCls:ui}=yr;ni=ui}var Wr=_(8745),no=function(yr,ui){var Zo={};for(var ns in yr)Object.prototype.hasOwnProperty.call(yr,ns)&&ui.indexOf(ns)<0&&(Zo[ns]=yr[ns]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ns=Object.getOwnPropertySymbols(yr);Lr{const{prefixCls:ui,className:Zo,closeIcon:ns,closable:Lr,type:Ei,title:hn,children:Tn,footer:ar}=yr,ft=no(yr,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:wt}=w.useContext(ai.E_),At=wt(),Ye=ui||wt("modal"),[,Et]=Tr(Ye),Wt=`${Ye}-confirm`;let vn={};return Ei?vn={closable:Lr!=null?Lr:!1,title:"",footer:"",children:w.createElement(xn,Object.assign({},yr,{prefixCls:Ye,confirmPrefixCls:Wt,rootPrefixCls:At,content:Tn}))}:vn={closable:Lr!=null?Lr:!0,title:hn,footer:ar!==null&&w.createElement(jr,Object.assign({},yr)),children:Tn},w.createElement(Wn,Object.assign({prefixCls:Ye,className:g()(Et,`${Ye}-pure-panel`,Ei&&Wt,Ei&&`${Wt}-${Ei}`,Zo)},ft,{closeIcon:Ii(Ye,ns),closable:Lr},vn))};var Pn=(0,Wr.i)(Vi);function mi(){const[yr,ui]=w.useState([]),Zo=w.useCallback(ns=>(ui(Lr=>[].concat((0,v.Z)(Lr),[ns])),()=>{ui(Lr=>Lr.filter(Ei=>Ei!==ns))}),[]);return[yr,Zo]}var ya=_(88526),Zs=function(yr,ui){var Zo={};for(var ns in yr)Object.prototype.hasOwnProperty.call(yr,ns)&&ui.indexOf(ns)<0&&(Zo[ns]=yr[ns]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ns=Object.getOwnPropertySymbols(yr);Lr{var Zo,{afterClose:ns,config:Lr}=yr,Ei=Zs(yr,["afterClose","config"]);const[hn,Tn]=w.useState(!0),[ar,ft]=w.useState(Lr),{direction:wt,getPrefixCls:At}=w.useContext(ai.E_),Ye=At("modal"),Et=At(),Wt=()=>{var Gi;ns(),(Gi=ar.afterClose)===null||Gi===void 0||Gi.call(ar)},vn=function(){Tn(!1);for(var Gi=arguments.length,ko=new Array(Gi),Bi=0;Bips&&ps.triggerCancel);ar.onCancel&&ms&&ar.onCancel.apply(ar,[()=>{}].concat((0,v.Z)(ko.slice(1))))};w.useImperativeHandle(ui,()=>({destroy:vn,update:Gi=>{ft(ko=>Object.assign(Object.assign({},ko),Gi))}}));const Er=(Zo=ar.okCancel)!==null&&Zo!==void 0?Zo:ar.type==="confirm",[Gr]=(0,K.Z)("Modal",ya.Z.Modal);return w.createElement(Mi,Object.assign({prefixCls:Ye,rootPrefixCls:Et},ar,{close:vn,open:hn,afterClose:Wt,okText:ar.okText||(Er?Gr==null?void 0:Gr.okText:Gr==null?void 0:Gr.justOkText),direction:ar.direction||wt,cancelText:ar.cancelText||(Gr==null?void 0:Gr.cancelText)},Ei))};var al=w.forwardRef(qs);let co=0;const tl=w.memo(w.forwardRef((yr,ui)=>{const[Zo,ns]=mi();return w.useImperativeHandle(ui,()=>({patchElement:ns}),[]),w.createElement(w.Fragment,null,Zo)}));function fl(){const yr=w.useRef(null),[ui,Zo]=w.useState([]);w.useEffect(()=>{ui.length&&((0,v.Z)(ui).forEach(hn=>{hn()}),Zo([]))},[ui]);const ns=w.useCallback(Ei=>function(Tn){var ar;co+=1;const ft=w.createRef();let wt;const At=new Promise(Er=>{wt=Er});let Ye=!1,Et;const Wt=w.createElement(al,{key:`modal-${co}`,config:Ei(Tn),ref:ft,afterClose:()=>{Et==null||Et()},isSilent:()=>Ye,onConfirm:Er=>{wt(Er)}});return Et=(ar=yr.current)===null||ar===void 0?void 0:ar.patchElement(Wt),Et&&Yi.push(Et),{destroy:()=>{function Er(){var Gr;(Gr=ft.current)===null||Gr===void 0||Gr.destroy()}ft.current?Er():Zo(Gr=>[].concat((0,v.Z)(Gr),[Er]))},update:Er=>{function Gr(){var Gi;(Gi=ft.current)===null||Gi===void 0||Gi.update(Er)}ft.current?Gr():Zo(Gi=>[].concat((0,v.Z)(Gi),[Gr]))},then:Er=>(Ye=!0,At.then(Er))}},[]);return[w.useMemo(()=>({info:ns(nr),success:ns(Mr),error:ns(rr),warning:ns(ii),confirm:ns(to)}),[]),w.createElement(tl,{key:"modal-holder",ref:yr})]}var Ai=fl;function Xi(yr){return Vr(ii(yr))}const Fi=xr;Fi.useModal=Ai,Fi.info=function(ui){return Vr(nr(ui))},Fi.success=function(ui){return Vr(Mr(ui))},Fi.error=function(ui){return Vr(rr(ui))},Fi.warning=Xi,Fi.warn=Xi,Fi.confirm=function(ui){return Vr(to(ui))},Fi.destroyAll=function(){for(;Yi.length;){const ui=Yi.pop();ui&&ui()}},Fi.config=ts,Fi._InternalPanelDoNotUseOrYouWillBeFired=Pn;var No=Fi},83008:function(gt,Y,_){"use strict";_.d(Y,{A:function(){return V},f:function(){return B}});var v=_(88526);let R=Object.assign({},v.Z.Modal),w=[];const b=()=>w.reduce((O,L)=>Object.assign(Object.assign({},O),L),v.Z.Modal);function B(O){if(O){const L=Object.assign({},O);return w.push(L),R=b(),()=>{w=w.filter(S=>S!==L),R=b()}}R=Object.assign({},v.Z.Modal)}function V(){return R}},86738:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ke}});var v=_(67294),R=_(26702),w=_(94184),b=_.n(w),B=_(21770),V=_(15105),O=_(98423),L=_(96159),S=_(53124),g=_(55241),T=_(86743),k=_(81643),K=_(15867),he=_(33671),ae=_(10110),fe=_(88526),_e=_(60590),be=_(67968);const xe=$e=>{const{componentCls:Te,iconCls:tt,antCls:Oe,zIndexPopup:Xt,colorText:Ft,colorWarning:ot,marginXXS:xt,marginXS:ut,fontSize:$t,fontWeightStrong:_t,colorTextHeading:bn}=$e;return{[Te]:{zIndex:Xt,[`&${Oe}-popover`]:{fontSize:$t},[`${Te}-message`]:{marginBottom:ut,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Te}-message-icon ${tt}`]:{color:ot,fontSize:$t,lineHeight:1,marginInlineEnd:ut},[`${Te}-title`]:{fontWeight:_t,color:bn,"&:only-child":{fontWeight:"normal"}},[`${Te}-description`]:{marginTop:xt,color:Ft}},[`${Te}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ut}}}}};var Xe=(0,be.Z)("Popconfirm",$e=>xe($e),$e=>{const{zIndexPopupBase:Te}=$e;return{zIndexPopup:Te+60}},{resetStyle:!1}),We=function($e,Te){var tt={};for(var Oe in $e)Object.prototype.hasOwnProperty.call($e,Oe)&&Te.indexOf(Oe)<0&&(tt[Oe]=$e[Oe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Oe=Object.getOwnPropertySymbols($e);Xt{const{prefixCls:Te,okButtonProps:tt,cancelButtonProps:Oe,title:Xt,description:Ft,cancelText:ot,okText:xt,okType:ut="primary",icon:$t=v.createElement(R.Z,null),showCancel:_t=!0,close:bn,onConfirm:Wn,onCancel:$r,onPopupClick:wi}=$e,{getPrefixCls:oo}=v.useContext(S.E_),[Mo]=(0,ae.Z)("Popconfirm",fe.Z.Popconfirm),Ti=(0,k.Z)(Xt),Hr=(0,k.Z)(Ft);return v.createElement("div",{className:`${Te}-inner-content`,onClick:wi},v.createElement("div",{className:`${Te}-message`},$t&&v.createElement("span",{className:`${Te}-message-icon`},$t),v.createElement("div",{className:`${Te}-message-text`},Ti&&v.createElement("div",{className:b()(`${Te}-title`)},Ti),Hr&&v.createElement("div",{className:`${Te}-description`},Hr))),v.createElement("div",{className:`${Te}-buttons`},_t&&v.createElement(K.ZP,Object.assign({onClick:$r,size:"small"},Oe),ot!=null?ot:Mo==null?void 0:Mo.cancelText),v.createElement(T.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,he.nx)(ut)),tt),actionFn:Wn,close:bn,prefixCls:oo("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},xt!=null?xt:Mo==null?void 0:Mo.okText)))};var Se=$e=>{const{prefixCls:Te,placement:tt,className:Oe,style:Xt}=$e,Ft=We($e,["prefixCls","placement","className","style"]),{getPrefixCls:ot}=v.useContext(S.E_),xt=ot("popconfirm",Te),[ut]=Xe(xt);return ut(v.createElement(_e.ZP,{placement:tt,className:b()(xt,Oe),style:Xt,content:v.createElement(dt,Object.assign({prefixCls:xt},Ft))}))},ze=function($e,Te){var tt={};for(var Oe in $e)Object.prototype.hasOwnProperty.call($e,Oe)&&Te.indexOf(Oe)<0&&(tt[Oe]=$e[Oe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Oe=Object.getOwnPropertySymbols($e);Xt{var tt,Oe;const{prefixCls:Xt,placement:Ft="top",trigger:ot="click",okType:xt="primary",icon:ut=v.createElement(R.Z,null),children:$t,overlayClassName:_t,onOpenChange:bn,onVisibleChange:Wn}=$e,$r=ze($e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:wi}=v.useContext(S.E_),[oo,Mo]=(0,B.Z)(!1,{value:(tt=$e.open)!==null&&tt!==void 0?tt:$e.visible,defaultValue:(Oe=$e.defaultOpen)!==null&&Oe!==void 0?Oe:$e.defaultVisible}),Ti=($o,Mn)=>{Mo($o,!0),Wn==null||Wn($o),bn==null||bn($o,Mn)},Hr=$o=>{Ti(!1,$o)},Ho=$o=>{var Mn;return(Mn=$e.onConfirm)===null||Mn===void 0?void 0:Mn.call(void 0,$o)},Ss=$o=>{var Mn;Ti(!1,$o),(Mn=$e.onCancel)===null||Mn===void 0||Mn.call(void 0,$o)},Pe=$o=>{$o.keyCode===V.Z.ESC&&oo&&Ti(!1,$o)},qo=$o=>{const{disabled:Mn=!1}=$e;Mn||Ti($o)},Ki=wi("popconfirm",Xt),Do=b()(Ki,_t),[ai]=Xe(Ki);return ai(v.createElement(g.Z,Object.assign({},(0,O.Z)($r,["title"]),{trigger:ot,placement:Ft,onOpenChange:qo,open:oo,ref:Te,overlayClassName:Do,content:v.createElement(dt,Object.assign({okType:xt,icon:ut},$e,{prefixCls:Ki,close:Hr,onConfirm:Ho,onCancel:Ss})),"data-popover-inject":!0}),(0,L.Tm)($t,{onKeyDown:$o=>{var Mn,nt;v.isValidElement($t)&&((nt=$t==null?void 0:(Mn=$t.props).onKeyDown)===null||nt===void 0||nt.call(Mn,$o)),Pe($o)}})))});De._InternalPanelDoNotUseOrYouWillBeFired=Se;var ke=De},60590:function(gt,Y,_){"use strict";_.d(Y,{t5:function(){return g}});var v=_(94184),R=_.n(v),w=_(92419),b=_(67294),B=_(53124),V=_(81643),O=_(20136),L=function(k,K){var he={};for(var ae in k)Object.prototype.hasOwnProperty.call(k,ae)&&K.indexOf(ae)<0&&(he[ae]=k[ae]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,ae=Object.getOwnPropertySymbols(k);fe{if(!(!K&&!he))return b.createElement(b.Fragment,null,K&&b.createElement("div",{className:`${k}-title`},(0,V.Z)(K)),b.createElement("div",{className:`${k}-inner-content`},(0,V.Z)(he)))},g=k=>{const{hashId:K,prefixCls:he,className:ae,style:fe,placement:_e="top",title:be,content:xe,children:Xe}=k;return b.createElement("div",{className:R()(K,he,`${he}-pure`,`${he}-placement-${_e}`,ae),style:fe},b.createElement("div",{className:`${he}-arrow`}),b.createElement(w.G,Object.assign({},k,{className:K,prefixCls:he}),Xe||S(he,be,xe)))},T=k=>{const{prefixCls:K}=k,he=L(k,["prefixCls"]),{getPrefixCls:ae}=b.useContext(B.E_),fe=ae("popover",K),[_e,be]=(0,O.Z)(fe);return _e(b.createElement(g,Object.assign({},he,{prefixCls:fe,hashId:be})))};Y.ZP=T},55241:function(gt,Y,_){"use strict";var v=_(67294),R=_(94184),w=_.n(R),b=_(81643),B=_(33603),V=_(53124),O=_(61781),L=_(60590),S=_(20136),g=function(K,he){var ae={};for(var fe in K)Object.prototype.hasOwnProperty.call(K,fe)&&he.indexOf(fe)<0&&(ae[fe]=K[fe]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,fe=Object.getOwnPropertySymbols(K);_e{let{title:he,content:ae,prefixCls:fe}=K;return v.createElement(v.Fragment,null,he&&v.createElement("div",{className:`${fe}-title`},(0,b.Z)(he)),v.createElement("div",{className:`${fe}-inner-content`},(0,b.Z)(ae)))},k=v.forwardRef((K,he)=>{const{prefixCls:ae,title:fe,content:_e,overlayClassName:be,placement:xe="top",trigger:Xe="hover",mouseEnterDelay:We=.1,mouseLeaveDelay:dt=.1,overlayStyle:Me={}}=K,Se=g(K,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ze}=v.useContext(V.E_),De=ze("popover",ae),[ke,$e]=(0,S.Z)(De),Te=ze(),tt=w()(be,$e);return ke(v.createElement(O.Z,Object.assign({placement:xe,trigger:Xe,mouseEnterDelay:We,mouseLeaveDelay:dt,overlayStyle:Me},Se,{prefixCls:De,overlayClassName:tt,ref:he,overlay:fe||_e?v.createElement(T,{prefixCls:De,title:fe,content:_e}):null,transitionName:(0,B.m)(Te,"zoom-big",Se.transitionName),"data-popover-inject":!0})))});k._InternalPanelDoNotUseOrYouWillBeFired=L.ZP,Y.Z=k},20136:function(gt,Y,_){"use strict";var v=_(14747),R=_(50438),w=_(77786),b=_(8796),B=_(67968),V=_(45503);const O=g=>{const{componentCls:T,popoverColor:k,titleMinWidth:K,fontWeightStrong:he,popoverPadding:ae,boxShadowSecondary:fe,colorTextHeading:_e,borderRadiusLG:be,zIndexPopup:xe,marginXS:Xe,colorBgElevated:We,popoverBg:dt}=g;return[{[T]:Object.assign(Object.assign({},(0,v.Wf)(g)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:xe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":We,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${T}-content`]:{position:"relative"},[`${T}-inner`]:{backgroundColor:dt,backgroundClip:"padding-box",borderRadius:be,boxShadow:fe,padding:ae},[`${T}-title`]:{minWidth:K,marginBottom:Xe,color:_e,fontWeight:he},[`${T}-inner-content`]:{color:k}})},(0,w.ZP)(g,{colorBg:"var(--antd-arrow-background-color)"}),{[`${T}-pure`]:{position:"relative",maxWidth:"none",margin:g.sizePopupArrow,display:"inline-block",[`${T}-content`]:{display:"inline-block"}}}]},L=g=>{const{componentCls:T}=g;return{[T]:b.i.map(k=>{const K=g[`${k}6`];return{[`&${T}-${k}`]:{"--antd-arrow-background-color":K,[`${T}-inner`]:{backgroundColor:K},[`${T}-arrow`]:{background:"transparent"}}}})}},S=g=>{const{componentCls:T,lineWidth:k,lineType:K,colorSplit:he,paddingSM:ae,controlHeight:fe,fontSize:_e,lineHeight:be,padding:xe}=g,Xe=fe-Math.round(_e*be),We=Xe/2,dt=Xe/2-k,Me=xe;return{[T]:{[`${T}-inner`]:{padding:0},[`${T}-title`]:{margin:0,padding:`${We}px ${Me}px ${dt}px`,borderBottom:`${k}px ${K} ${he}`},[`${T}-inner-content`]:{padding:`${ae}px ${Me}px`}}}};Y.Z=(0,B.Z)("Popover",g=>{const{colorBgElevated:T,colorText:k,wireframe:K}=g,he=(0,V.TS)(g,{popoverPadding:12,popoverBg:T,popoverColor:k});return[O(he),L(he),K&&S(he),(0,R._y)(he,"zoom-big")]},g=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:g.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},78045:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return $t}});var v=_(67294),R=_(94184),w=_.n(R),b=_(21770),B=_(64217),V=_(53124),O=_(98675);const L=v.createContext(null),S=L.Provider;var g=L;const T=v.createContext(null),k=T.Provider;var K=_(50132),he=_(42550),ae=_(45353),fe=_(17415),_e=_(98866),be=_(65223),xe=_(14747),Xe=_(67968),We=_(45503);const dt=_t=>{const{componentCls:bn,antCls:Wn}=_t,$r=`${bn}-group`;return{[$r]:Object.assign(Object.assign({},(0,xe.Wf)(_t)),{display:"inline-block",fontSize:0,[`&${$r}-rtl`]:{direction:"rtl"},[`${Wn}-badge ${Wn}-badge-count`]:{zIndex:1},[`> ${Wn}-badge:not(:first-child) > ${Wn}-button-wrapper`]:{borderInlineStart:"none"}})}},Me=_t=>{const{componentCls:bn,wrapperMarginInlineEnd:Wn,colorPrimary:$r,radioSize:wi,motionDurationSlow:oo,motionDurationMid:Mo,motionEaseInOutCirc:Ti,colorBgContainer:Hr,colorBorder:Ho,lineWidth:Ss,dotSize:Pe,colorBgContainerDisabled:qo,colorTextDisabled:Ki,paddingXS:Do,dotColorDisabled:ai,lineType:$o,radioDotDisabledSize:Mn,wireframe:nt,colorWhite:Dt}=_t,Kt=`${bn}-inner`;return{[`${bn}-wrapper`]:Object.assign(Object.assign({},(0,xe.Wf)(_t)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Wn,cursor:"pointer",[`&${bn}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${bn}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ss}px ${$o} ${$r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[bn]:Object.assign(Object.assign({},(0,xe.Wf)(_t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${bn}-wrapper:hover &, + &:hover ${Kt}`]:{borderColor:$r},[`${bn}-input:focus-visible + ${Kt}`]:Object.assign({},(0,xe.oN)(_t)),[`${bn}:hover::after, ${bn}-wrapper:hover &::after`]:{visibility:"visible"},[`${bn}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:wi,height:wi,marginBlockStart:wi/-2,marginInlineStart:wi/-2,backgroundColor:nt?$r:Dt,borderBlockStart:0,borderInlineStart:0,borderRadius:wi,transform:"scale(0)",opacity:0,transition:`all ${oo} ${Ti}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:wi,height:wi,backgroundColor:Hr,borderColor:Ho,borderStyle:"solid",borderWidth:Ss,borderRadius:"50%",transition:`all ${Mo}`},[`${bn}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${bn}-checked`]:{[Kt]:{borderColor:$r,backgroundColor:nt?Hr:$r,"&::after":{transform:`scale(${Pe/wi})`,opacity:1,transition:`all ${oo} ${Ti}`}}},[`${bn}-disabled`]:{cursor:"not-allowed",[Kt]:{backgroundColor:qo,borderColor:Ho,cursor:"not-allowed","&::after":{backgroundColor:ai}},[`${bn}-input`]:{cursor:"not-allowed"},[`${bn}-disabled + span`]:{color:Ki,cursor:"not-allowed"},[`&${bn}-checked`]:{[Kt]:{"&::after":{transform:`scale(${Mn/wi})`}}}},[`span${bn} + *`]:{paddingInlineStart:Do,paddingInlineEnd:Do}})}},Se=_t=>{const{buttonColor:bn,controlHeight:Wn,componentCls:$r,lineWidth:wi,lineType:oo,colorBorder:Mo,motionDurationSlow:Ti,motionDurationMid:Hr,buttonPaddingInline:Ho,fontSize:Ss,buttonBg:Pe,fontSizeLG:qo,controlHeightLG:Ki,controlHeightSM:Do,paddingXS:ai,borderRadius:$o,borderRadiusSM:Mn,borderRadiusLG:nt,buttonCheckedBg:Dt,buttonSolidCheckedColor:Kt,colorTextDisabled:mn,colorBgContainerDisabled:kn,buttonCheckedBgDisabled:an,buttonCheckedColorDisabled:tn,colorPrimary:kt,colorPrimaryHover:en,colorPrimaryActive:Vn,buttonSolidCheckedBg:on,buttonSolidCheckedHoverBg:Dr,buttonSolidCheckedActiveBg:oi}=_t;return{[`${$r}-button-wrapper`]:{position:"relative",display:"inline-block",height:Wn,margin:0,paddingInline:Ho,paddingBlock:0,color:bn,fontSize:Ss,lineHeight:`${Wn-wi*2}px`,background:Pe,border:`${wi}px ${oo} ${Mo}`,borderBlockStartWidth:wi+.02,borderInlineStartWidth:0,borderInlineEndWidth:wi,cursor:"pointer",transition:[`color ${Hr}`,`background ${Hr}`,`box-shadow ${Hr}`].join(","),a:{color:bn},[`> ${$r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-wi,insetInlineStart:-wi,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:wi,paddingInline:0,backgroundColor:Mo,transition:`background-color ${Ti}`,content:'""'}},"&:first-child":{borderInlineStart:`${wi}px ${oo} ${Mo}`,borderStartStartRadius:$o,borderEndStartRadius:$o},"&:last-child":{borderStartEndRadius:$o,borderEndEndRadius:$o},"&:first-child:last-child":{borderRadius:$o},[`${$r}-group-large &`]:{height:Ki,fontSize:qo,lineHeight:`${Ki-wi*2}px`,"&:first-child":{borderStartStartRadius:nt,borderEndStartRadius:nt},"&:last-child":{borderStartEndRadius:nt,borderEndEndRadius:nt}},[`${$r}-group-small &`]:{height:Do,paddingInline:ai-wi,paddingBlock:0,lineHeight:`${Do-wi*2}px`,"&:first-child":{borderStartStartRadius:Mn,borderEndStartRadius:Mn},"&:last-child":{borderStartEndRadius:Mn,borderEndEndRadius:Mn}},"&:hover":{position:"relative",color:kt},"&:has(:focus-visible)":Object.assign({},(0,xe.oN)(_t)),[`${$r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${$r}-button-wrapper-disabled)`]:{zIndex:1,color:kt,background:Dt,borderColor:kt,"&::before":{backgroundColor:kt},"&:first-child":{borderColor:kt},"&:hover":{color:en,borderColor:en,"&::before":{backgroundColor:en}},"&:active":{color:Vn,borderColor:Vn,"&::before":{backgroundColor:Vn}}},[`${$r}-group-solid &-checked:not(${$r}-button-wrapper-disabled)`]:{color:Kt,background:on,borderColor:on,"&:hover":{color:Kt,background:Dr,borderColor:Dr},"&:active":{color:Kt,background:oi,borderColor:oi}},"&-disabled":{color:mn,backgroundColor:kn,borderColor:Mo,cursor:"not-allowed","&:first-child, &:hover":{color:mn,backgroundColor:kn,borderColor:Mo}},[`&-disabled${$r}-button-wrapper-checked`]:{color:tn,backgroundColor:an,borderColor:Mo,boxShadow:"none"}}}},ze=_t=>_t-4*2;var De=(0,Xe.Z)("Radio",_t=>{const{controlOutline:bn,controlOutlineWidth:Wn,radioSize:$r}=_t,wi=`0 0 0 ${Wn}px ${bn}`,oo=wi,Mo=ze($r),Ti=(0,We.TS)(_t,{radioDotDisabledSize:Mo,radioFocusShadow:wi,radioButtonFocusShadow:oo});return[dt(Ti),Me(Ti),Se(Ti)]},_t=>{const{wireframe:bn,padding:Wn,marginXS:$r,lineWidth:wi,fontSizeLG:oo,colorText:Mo,colorBgContainer:Ti,colorTextDisabled:Hr,controlItemBgActiveDisabled:Ho,colorTextLightSolid:Ss,colorPrimary:Pe,colorPrimaryHover:qo,colorPrimaryActive:Ki}=_t,Do=4,ai=oo,$o=bn?ze(ai):ai-(Do+wi)*2;return{radioSize:ai,dotSize:$o,dotColorDisabled:Hr,buttonSolidCheckedColor:Ss,buttonSolidCheckedBg:Pe,buttonSolidCheckedHoverBg:qo,buttonSolidCheckedActiveBg:Ki,buttonBg:Ti,buttonCheckedBg:Ti,buttonColor:Mo,buttonCheckedBgDisabled:Ho,buttonCheckedColorDisabled:Hr,buttonPaddingInline:Wn-wi,wrapperMarginInlineEnd:$r}}),ke=function(_t,bn){var Wn={};for(var $r in _t)Object.prototype.hasOwnProperty.call(_t,$r)&&bn.indexOf($r)<0&&(Wn[$r]=_t[$r]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wi=0,$r=Object.getOwnPropertySymbols(_t);wi<$r.length;wi++)bn.indexOf($r[wi])<0&&Object.prototype.propertyIsEnumerable.call(_t,$r[wi])&&(Wn[$r[wi]]=_t[$r[wi]]);return Wn};const $e=(_t,bn)=>{var Wn,$r;const wi=v.useContext(g),oo=v.useContext(T),{getPrefixCls:Mo,direction:Ti,radio:Hr}=v.useContext(V.E_),Ho=v.useRef(null),Ss=(0,he.sQ)(bn,Ho),{isFormItemInput:Pe}=v.useContext(be.aM),qo=Vn=>{var on,Dr;(on=_t.onChange)===null||on===void 0||on.call(_t,Vn),(Dr=wi==null?void 0:wi.onChange)===null||Dr===void 0||Dr.call(wi,Vn)},{prefixCls:Ki,className:Do,rootClassName:ai,children:$o,style:Mn}=_t,nt=ke(_t,["prefixCls","className","rootClassName","children","style"]),Dt=Mo("radio",Ki),Kt=((wi==null?void 0:wi.optionType)||oo)==="button",mn=Kt?`${Dt}-button`:Dt,[kn,an]=De(Dt),tn=Object.assign({},nt),kt=v.useContext(_e.Z);wi&&(tn.name=wi.name,tn.onChange=qo,tn.checked=_t.value===wi.value,tn.disabled=(Wn=tn.disabled)!==null&&Wn!==void 0?Wn:wi.disabled),tn.disabled=($r=tn.disabled)!==null&&$r!==void 0?$r:kt;const en=w()(`${mn}-wrapper`,{[`${mn}-wrapper-checked`]:tn.checked,[`${mn}-wrapper-disabled`]:tn.disabled,[`${mn}-wrapper-rtl`]:Ti==="rtl",[`${mn}-wrapper-in-form-item`]:Pe},Hr==null?void 0:Hr.className,Do,ai,an);return kn(v.createElement(ae.Z,{component:"Radio",disabled:tn.disabled},v.createElement("label",{className:en,style:Object.assign(Object.assign({},Hr==null?void 0:Hr.style),Mn),onMouseEnter:_t.onMouseEnter,onMouseLeave:_t.onMouseLeave},v.createElement(K.Z,Object.assign({},tn,{className:w()(tn.className,!Kt&&fe.A),type:"radio",prefixCls:mn,ref:Ss})),$o!==void 0?v.createElement("span",null,$o):null)))};var tt=v.forwardRef($e);const Oe=v.forwardRef((_t,bn)=>{const{getPrefixCls:Wn,direction:$r}=v.useContext(V.E_),[wi,oo]=(0,b.Z)(_t.defaultValue,{value:_t.value}),Mo=on=>{const Dr=wi,oi=on.target.value;"value"in _t||oo(oi);const{onChange:Ii}=_t;Ii&&oi!==Dr&&Ii(on)},{prefixCls:Ti,className:Hr,rootClassName:Ho,options:Ss,buttonStyle:Pe="outline",disabled:qo,children:Ki,size:Do,style:ai,id:$o,onMouseEnter:Mn,onMouseLeave:nt,onFocus:Dt,onBlur:Kt}=_t,mn=Wn("radio",Ti),kn=`${mn}-group`,[an,tn]=De(mn);let kt=Ki;Ss&&Ss.length>0&&(kt=Ss.map(on=>typeof on=="string"||typeof on=="number"?v.createElement(tt,{key:on.toString(),prefixCls:mn,disabled:qo,value:on,checked:wi===on},on):v.createElement(tt,{key:`radio-group-value-options-${on.value}`,prefixCls:mn,disabled:on.disabled||qo,value:on.value,checked:wi===on.value,title:on.title,style:on.style,id:on.id,required:on.required},on.label)));const en=(0,O.Z)(Do),Vn=w()(kn,`${kn}-${Pe}`,{[`${kn}-${en}`]:en,[`${kn}-rtl`]:$r==="rtl"},Hr,Ho,tn);return an(v.createElement("div",Object.assign({},(0,B.Z)(_t,{aria:!0,data:!0}),{className:Vn,style:ai,onMouseEnter:Mn,onMouseLeave:nt,onFocus:Dt,onBlur:Kt,id:$o,ref:bn}),v.createElement(S,{value:{onChange:Mo,value:wi,disabled:_t.disabled,name:_t.name,optionType:_t.optionType}},kt)))});var Xt=v.memo(Oe),Ft=function(_t,bn){var Wn={};for(var $r in _t)Object.prototype.hasOwnProperty.call(_t,$r)&&bn.indexOf($r)<0&&(Wn[$r]=_t[$r]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wi=0,$r=Object.getOwnPropertySymbols(_t);wi<$r.length;wi++)bn.indexOf($r[wi])<0&&Object.prototype.propertyIsEnumerable.call(_t,$r[wi])&&(Wn[$r[wi]]=_t[$r[wi]]);return Wn};const ot=(_t,bn)=>{const{getPrefixCls:Wn}=v.useContext(V.E_),{prefixCls:$r}=_t,wi=Ft(_t,["prefixCls"]),oo=Wn("radio",$r);return v.createElement(k,{value:"button"},v.createElement(tt,Object.assign({prefixCls:oo},wi,{type:"radio",ref:bn})))};var xt=v.forwardRef(ot);const ut=tt;ut.Button=xt,ut.Group=Xt,ut.__ANT_RADIO=!0;var $t=ut},29905:function(gt,Y,_){"use strict";_.d(Y,{ZP:function(){return Ft}});var v=_(67294),R=_(76278),w=_(41322),b=_(26702),B=_(87462),V={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"},O=V,L=_(93771),S=function(xt,ut){return v.createElement(L.Z,(0,B.Z)({},xt,{ref:ut,icon:O}))},g=v.forwardRef(S),T=_(94184),k=_.n(T),K=_(53124),ae=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.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)"})),v.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"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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:"#1677ff"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.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"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),_e=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.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)"})),v.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"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.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)"}),v.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)"}),v.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)"}))),be=_(67968),xe=_(45503);const Xe=ot=>{const{componentCls:xt,lineHeightHeading3:ut,iconCls:$t,padding:_t,paddingXL:bn,paddingXS:Wn,paddingLG:$r,marginXS:wi,lineHeight:oo}=ot;return{[xt]:{padding:`${$r*2}px ${bn}px`,"&-rtl":{direction:"rtl"}},[`${xt} ${xt}-image`]:{width:ot.imageWidth,height:ot.imageHeight,margin:"auto"},[`${xt} ${xt}-icon`]:{marginBottom:$r,textAlign:"center",[`& > ${$t}`]:{fontSize:ot.iconFontSize}},[`${xt} ${xt}-title`]:{color:ot.colorTextHeading,fontSize:ot.titleFontSize,lineHeight:ut,marginBlock:wi,textAlign:"center"},[`${xt} ${xt}-subtitle`]:{color:ot.colorTextDescription,fontSize:ot.subtitleFontSize,lineHeight:oo,textAlign:"center"},[`${xt} ${xt}-content`]:{marginTop:$r,padding:`${$r}px ${_t*2.5}px`,backgroundColor:ot.colorFillAlter},[`${xt} ${xt}-extra`]:{margin:ot.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Wn,"&:last-child":{marginInlineEnd:0}}}}},We=ot=>{const{componentCls:xt,iconCls:ut}=ot;return{[`${xt}-success ${xt}-icon > ${ut}`]:{color:ot.resultSuccessIconColor},[`${xt}-error ${xt}-icon > ${ut}`]:{color:ot.resultErrorIconColor},[`${xt}-info ${xt}-icon > ${ut}`]:{color:ot.resultInfoIconColor},[`${xt}-warning ${xt}-icon > ${ut}`]:{color:ot.resultWarningIconColor}}},dt=ot=>[Xe(ot),We(ot)],Me=ot=>dt(ot);var Se=(0,be.Z)("Result",ot=>{const xt=ot.colorInfo,ut=ot.colorError,$t=ot.colorSuccess,_t=ot.colorWarning,bn=(0,xe.TS)(ot,{resultInfoIconColor:xt,resultErrorIconColor:ut,resultSuccessIconColor:$t,resultWarningIconColor:_t,imageWidth:250,imageHeight:295});return[Me(bn)]},ot=>({titleFontSize:ot.fontSizeHeading3,subtitleFontSize:ot.fontSize,iconFontSize:ot.fontSizeHeading3*3,extraMargin:`${ot.paddingLG}px 0 0 0`})),De=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.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"}),v.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"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"})));const ke={success:R.Z,error:w.Z,info:b.Z,warning:g},$e={404:ae,500:_e,403:De},Te=Object.keys($e),tt=ot=>{let{prefixCls:xt,icon:ut,status:$t}=ot;const _t=k()(`${xt}-icon`);if(Te.includes(`${$t}`)){const Wn=$e[$t];return v.createElement("div",{className:`${_t} ${xt}-image`},v.createElement(Wn,null))}const bn=v.createElement(ke[$t]);return ut===null||ut===!1?null:v.createElement("div",{className:_t},ut||bn)},Oe=ot=>{let{prefixCls:xt,extra:ut}=ot;return ut?v.createElement("div",{className:`${xt}-extra`},ut):null},Xt=ot=>{let{prefixCls:xt,className:ut,rootClassName:$t,subTitle:_t,title:bn,style:Wn,children:$r,status:wi="info",icon:oo,extra:Mo}=ot;const{getPrefixCls:Ti,direction:Hr,result:Ho}=v.useContext(K.E_),Ss=Ti("result",xt),[Pe,qo]=Se(Ss),Ki=k()(Ss,`${Ss}-${wi}`,ut,Ho==null?void 0:Ho.className,$t,{[`${Ss}-rtl`]:Hr==="rtl"},qo),Do=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Wn);return Pe(v.createElement("div",{className:Ki,style:Do},v.createElement(tt,{prefixCls:Ss,status:wi,icon:oo}),v.createElement("div",{className:`${Ss}-title`},bn),_t&&v.createElement("div",{className:`${Ss}-subtitle`},_t),v.createElement(Oe,{prefixCls:Ss,extra:Mo}),$r&&v.createElement("div",{className:`${Ss}-content`},$r)))};Xt.PRESENTED_IMAGE_403=$e[403],Xt.PRESENTED_IMAGE_404=$e[404],Xt.PRESENTED_IMAGE_500=$e[500];var Ft=Xt},34041:function(gt,Y,_){"use strict";var v=_(67294),R=_(94184),w=_.n(R),b=_(88905),B=_(98423),V=_(87263),O=_(33603),L=_(8745),S=_(9708),g=_(53124),T=_(88258),k=_(98866),K=_(98675),he=_(65223),ae=_(4173),fe=_(87244),_e=_(13458),be=_(43277),xe=_(78642),Xe=function(ze,De){var ke={};for(var $e in ze)Object.prototype.hasOwnProperty.call(ze,$e)&&De.indexOf($e)<0&&(ke[$e]=ze[$e]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,$e=Object.getOwnPropertySymbols(ze);Te<$e.length;Te++)De.indexOf($e[Te])<0&&Object.prototype.propertyIsEnumerable.call(ze,$e[Te])&&(ke[$e[Te]]=ze[$e[Te]]);return ke};const We="SECRET_COMBOBOX_MODE_DO_NOT_USE",dt=(ze,De)=>{var ke,$e,{prefixCls:Te,bordered:tt=!0,className:Oe,rootClassName:Xt,getPopupContainer:Ft,popupClassName:ot,dropdownClassName:xt,listHeight:ut=256,placement:$t,listItemHeight:_t=24,size:bn,disabled:Wn,notFoundContent:$r,status:wi,builtinPlacements:oo,dropdownMatchSelectWidth:Mo,popupMatchSelectWidth:Ti,direction:Hr,style:Ho,allowClear:Ss}=ze,Pe=Xe(ze,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:qo,getPrefixCls:Ki,renderEmpty:Do,direction:ai,virtual:$o,popupMatchSelectWidth:Mn,popupOverflow:nt,select:Dt}=v.useContext(g.E_),Kt=Ki("select",Te),mn=Ki(),kn=Hr!=null?Hr:ai,{compactSize:an,compactItemClassnames:tn}=(0,ae.ri)(Kt,kn),[kt,en]=(0,fe.Z)(Kt),Vn=v.useMemo(()=>{const{mode:Br}=Pe;if(Br!=="combobox")return Br===We?"combobox":Br},[Pe.mode]),on=Vn==="multiple"||Vn==="tags",Dr=(0,xe.Z)(Pe.suffixIcon,Pe.showArrow),oi=(ke=Ti!=null?Ti:Mo)!==null&&ke!==void 0?ke:Mn,{status:Ii,hasFeedback:jr,isFormItemInput:eo,feedbackIcon:Uo}=v.useContext(he.aM),Fn=(0,S.F)(Ii,wi);let Qr;$r!==void 0?Qr=$r:Vn==="combobox"?Qr=null:Qr=(Do==null?void 0:Do("Select"))||v.createElement(T.Z,{componentName:"Select"});const{suffixIcon:ci,itemIcon:ji,removeIcon:cr,clearIcon:Qn}=(0,be.Z)(Object.assign(Object.assign({},Pe),{multiple:on,hasFeedback:jr,feedbackIcon:Uo,showSuffixIcon:Dr,prefixCls:Kt,showArrow:Pe.showArrow,componentName:"Select"})),Vt=Ss===!0?{clearIcon:Qn}:Ss,Yt=(0,B.Z)(Pe,["suffixIcon","itemIcon"]),En=w()(ot||xt,{[`${Kt}-dropdown-${kn}`]:kn==="rtl"},Xt,en),er=(0,K.Z)(Br=>{var _o;return(_o=bn!=null?bn:an)!==null&&_o!==void 0?_o:Br}),Tr=v.useContext(k.Z),Nr=Wn!=null?Wn:Tr,Zn=w()({[`${Kt}-lg`]:er==="large",[`${Kt}-sm`]:er==="small",[`${Kt}-rtl`]:kn==="rtl",[`${Kt}-borderless`]:!tt,[`${Kt}-in-form-item`]:eo},(0,S.Z)(Kt,Fn,jr),tn,Dt==null?void 0:Dt.className,Oe,Xt,en),Ut=v.useMemo(()=>$t!==void 0?$t:kn==="rtl"?"bottomRight":"bottomLeft",[$t,kn]),$n=(0,_e.Z)(oo,nt),[xr]=(0,V.Cn)("SelectLike",($e=Pe.dropdownStyle)===null||$e===void 0?void 0:$e.zIndex);return kt(v.createElement(b.ZP,Object.assign({ref:De,virtual:$o,showSearch:Dt==null?void 0:Dt.showSearch},Yt,{style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),Ho),dropdownMatchSelectWidth:oi,builtinPlacements:$n,transitionName:(0,O.m)(mn,"slide-up",Pe.transitionName),listHeight:ut,listItemHeight:_t,mode:Vn,prefixCls:Kt,placement:Ut,direction:kn,suffixIcon:ci,menuItemSelectedIcon:ji,removeIcon:cr,allowClear:Vt,notFoundContent:Qr,className:Zn,getPopupContainer:Ft||qo,dropdownClassName:En,disabled:Nr,dropdownStyle:Object.assign(Object.assign({},Pe==null?void 0:Pe.dropdownStyle),{zIndex:xr})})))},Me=v.forwardRef(dt),Se=(0,L.Z)(Me);Me.SECRET_COMBOBOX_MODE_DO_NOT_USE=We,Me.Option=b.Wx,Me.OptGroup=b.Xo,Me._InternalPanelDoNotUseOrYouWillBeFired=Se,Y.Z=Me},87244:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return dt}});var v=_(14747),R=_(80110),w=_(45503),b=_(67968),B=_(48611),V=_(33297);const O=Me=>{const{optionHeight:Se,optionFontSize:ze,optionLineHeight:De,optionPadding:ke}=Me;return{position:"relative",display:"block",minHeight:Se,padding:ke,color:Me.colorText,fontWeight:"normal",fontSize:ze,lineHeight:De,boxSizing:"border-box"}};var S=Me=>{const{antCls:Se,componentCls:ze}=Me,De=`${ze}-item`,ke=`&${Se}-slide-up-enter${Se}-slide-up-enter-active`,$e=`&${Se}-slide-up-appear${Se}-slide-up-appear-active`,Te=`&${Se}-slide-up-leave${Se}-slide-up-leave-active`,tt=`${ze}-dropdown-placement-`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[` + ${ke}${tt}bottomLeft, + ${$e}${tt}bottomLeft + `]:{animationName:B.fJ},[` + ${ke}${tt}topLeft, + ${$e}${tt}topLeft, + ${ke}${tt}topRight, + ${$e}${tt}topRight + `]:{animationName:B.Qt},[`${Te}${tt}bottomLeft`]:{animationName:B.Uw},[` + ${Te}${tt}topLeft, + ${Te}${tt}topRight + `]:{animationName:B.ly},"&-hidden":{display:"none"},[`${De}`]:Object.assign(Object.assign({},O(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${De}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${De}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${De}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${De}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,B.oN)(Me,"slide-up"),(0,B.oN)(Me,"slide-down"),(0,V.Fm)(Me,"move-up"),(0,V.Fm)(Me,"move-down")]};const g=2,T=Me=>{let{multipleSelectItemHeight:Se,selectHeight:ze,lineWidth:De}=Me;const ke=(ze-Se)/2-De,$e=Math.ceil(ke/2);return[ke,$e]};function k(Me,Se){const{componentCls:ze,iconCls:De}=Me,ke=`${ze}-selection-overflow`,$e=Me.multipleSelectItemHeight,[Te]=T(Me),tt=Se?`${ze}-${Se}`:"";return{[`${ze}-multiple${tt}`]:{fontSize:Me.fontSize,[ke]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${Te-g}px ${g*2}px`,borderRadius:Me.borderRadius,[`${ze}-show-search&`]:{cursor:"text"},[`${ze}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${g}px 0`,lineHeight:`${$e}px`,visibility:"hidden",content:'"\\a0"'}},[` + &${ze}-show-arrow ${ze}-selector, + &${ze}-allow-clear ${ze}-selector + `]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${ze}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:$e,marginTop:g,marginBottom:g,lineHeight:`${$e-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,marginInlineEnd:g*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${ze}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,v.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${De}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${ke}-item + ${ke}-item`]:{[`${ze}-selection-search`]:{marginInlineStart:0}},[`${ke}-item-suffix`]:{height:"100%"},[`${ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-Te,[` &-input, &-mirror - `]:{height:De,fontFamily:be.fontFamily,lineHeight:`${De}px`,transition:`all ${be.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var te=be=>{const{componentCls:me}=be,ye=(0,b.TS)(be,{selectHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),_e=(0,b.TS)(be,{fontSize:be.fontSizeLG,selectHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,Ce]=S(be);return[P(be),P(ye,"sm"),{[`${me}-multiple${me}-sm`]:{[`${me}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${me}-selection-search`]:{marginInlineStart:Ce}}},P(_e,"lg")]};function q(be,me){const{componentCls:ye,inputPaddingHorizontalBase:_e,borderRadius:Ce}=be,De=be.controlHeight-be.lineWidth*2,ge=Math.ceil(be.fontSize*1.25),je=me?`${ye}-${me}`:"";return{[`${ye}-single${je}`]:{fontSize:be.fontSize,height:be.controlHeight,[`${ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(be,!0)),{display:"flex",borderRadius:Ce,[`${ye}-selection-search`]:{position:"absolute",top:0,insetInlineStart:_e,insetInlineEnd:_e,bottom:0,"&-input":{width:"100%"}},[` - ${ye}-selection-item, - ${ye}-selection-placeholder - `]:{padding:0,lineHeight:`${De}px`,transition:`all ${be.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ye}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ye}-selection-item:empty:after`,`${ye}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${ye}-show-arrow ${ye}-selection-item, - &${ye}-show-arrow ${ye}-selection-placeholder - `]:{paddingInlineEnd:ge},[`&${ye}-open ${ye}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${ye}-customize-input)`]:{[`${ye}-selector`]:{width:"100%",height:"100%",padding:`0 ${_e}px`,[`${ye}-selection-search-input`]:{height:De},"&:after":{lineHeight:`${De}px`}}},[`&${ye}-customize-input`]:{[`${ye}-selector`]:{"&:after":{display:"none"},[`${ye}-selection-search`]:{position:"static",width:"100%"},[`${ye}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_e}px`,"&:after":{display:"none"}}}}}}}function ie(be){const{componentCls:me}=be,ye=be.controlPaddingHorizontalSM-be.lineWidth;return[q(be),q((0,b.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.borderRadiusSM}),"sm"),{[`${me}-single${me}-sm`]:{[`&:not(${me}-customize-input)`]:{[`${me}-selection-search`]:{insetInlineStart:ye,insetInlineEnd:ye},[`${me}-selector`]:{padding:`0 ${ye}px`},[`&${me}-show-arrow ${me}-selection-search`]:{insetInlineEnd:ye+be.fontSize*1.5},[` - &${me}-show-arrow ${me}-selection-item, - &${me}-show-arrow ${me}-selection-placeholder - `]:{paddingInlineEnd:be.fontSize*1.5}}}},q((0,b.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const he=be=>{const{componentCls:me,selectorBg:ye}=be;return{position:"relative",backgroundColor:ye,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${me}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${me}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${me}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},de=function(be,me){let ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:_e,borderHoverColor:Ce,antCls:De,borderActiveColor:ge,outlineColor:je,controlOutlineWidth:we}=me,Pt=ye?{[`${_e}-selector`]:{borderColor:ge}}:{};return{[be]:{[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${De}-pagination-size-changer)`]:Object.assign(Object.assign({},Pt),{[`&:hover ${_e}-selector`]:{borderColor:Ce},[`${_e}-focused& ${_e}-selector`]:{borderColor:ge,boxShadow:`0 0 0 ${we}px ${je}`,outline:0}})}}},fe=be=>{const{componentCls:me}=be;return{[`${me}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ke=be=>{const{antCls:me,componentCls:ye,inputPaddingHorizontalBase:_e,iconCls:Ce}=be;return{[ye]:Object.assign(Object.assign({},(0,y.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ye}-customize-input) ${ye}-selector`]:Object.assign(Object.assign({},he(be)),fe(be)),[`${ye}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${me}-typography`]:{display:"inline"}}),[`${ye}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:be.colorTextPlaceholder,pointerEvents:"none"}),[`${ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:_e,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ce]:{verticalAlign:"top",transition:`transform ${be.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ye}-suffix)`]:{pointerEvents:"auto"}},[`${ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:_e,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${ye}-clear`]:{opacity:1}}}),[`${ye}-has-feedback`]:{[`${ye}-clear`]:{insetInlineEnd:_e+be.fontSize+be.paddingXS}}}},Ie=be=>{const{componentCls:me}=be;return[{[me]:{[`&-borderless ${me}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${me}-in-form-item`]:{width:"100%"}}},ke(be),ie(be),te(be),C(be),{[`${me}-rtl`]:{direction:"rtl"}},de(me,(0,b.TS)(be,{borderHoverColor:be.colorPrimaryHover,borderActiveColor:be.colorPrimary,outlineColor:be.controlOutline})),de(`${me}-status-error`,(0,b.TS)(be,{borderHoverColor:be.colorErrorHover,borderActiveColor:be.colorError,outlineColor:be.colorErrorOutline}),!0),de(`${me}-status-warning`,(0,b.TS)(be,{borderHoverColor:be.colorWarningHover,borderActiveColor:be.colorWarning,outlineColor:be.colorWarningOutline}),!0),(0,A.c)(be,{borderElCls:`${me}-selector`,focusElCls:`${me}-focused`})]};var Be=(0,z.Z)("Select",(be,me)=>{let{rootPrefixCls:ye}=me;const _e=(0,b.TS)(be,{rootPrefixCls:ye,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight,selectHeight:be.controlHeight});return[Ie(_e)]},be=>{const{fontSize:me,lineHeight:ye,controlHeight:_e,controlPaddingHorizontal:Ce,zIndexPopupBase:De,colorText:ge,fontWeightStrong:je,controlItemBgActive:we,controlItemBgHover:Pt,colorBgContainer:dt,colorFillSecondary:He,controlHeightLG:bt,controlHeightSM:ft,colorBgContainerDisabled:$t,colorTextDisabled:vt}=be;return{zIndexPopup:De+50,optionSelectedColor:ge,optionSelectedFontWeight:je,optionSelectedBg:we,optionActiveBg:Pt,optionPadding:`${(_e-me*ye)/2}px ${Ce}px`,optionFontSize:me,optionLineHeight:ye,optionHeight:_e,selectorBg:dt,clearBg:dt,singleItemHeightLG:bt,multipleItemBg:He,multipleItemBorderColor:"transparent",multipleItemHeight:ft,multipleItemHeightLG:_e,multipleSelectorBgDisabled:$t,multipleItemColorDisabled:vt,multipleItemBorderColorDisabled:"transparent"}})},13458:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});const y=b=>{const k={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:b==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},k),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},k),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},k),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},k),{points:["br","tr"],offset:[0,-4]})}};function A(b,z){return b||y(z)}},43277:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});var y=m(67294),A=m(35918),b=m(41322),z=m(62208),k=m(58964),N=m(22508),w=m(13805);function I(C){let{suffixIcon:f,clearIcon:S,menuItemSelectedIcon:P,removeIcon:W,loading:te,multiple:q,hasFeedback:ie,prefixCls:he,showSuffixIcon:de,feedbackIcon:fe,showArrow:ke,componentName:Ie}=C;const Be=S!=null?S:y.createElement(b.Z,null),be=Ce=>f===null&&!ie&&!ke?null:y.createElement(y.Fragment,null,de!==!1&&Ce,ie&&fe);let me=null;if(f!==void 0)me=be(f);else if(te)me=be(y.createElement(N.Z,{spin:!0}));else{const Ce=`${he}-suffix`;me=De=>{let{open:ge,showSearch:je}=De;return be(ge&&je?y.createElement(w.Z,{className:Ce}):y.createElement(k.Z,{className:Ce}))}}let ye=null;P!==void 0?ye=P:q?ye=y.createElement(A.Z,null):ye=null;let _e=null;return W!==void 0?_e=W:_e=y.createElement(z.Z,null),{clearIcon:Be,suffixIcon:me,itemIcon:ye,removeIcon:_e}}},78642:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});function y(A,b){return b!==void 0?b:A!==null}},4173:function(nt,V,m){"use strict";m.d(V,{BR:function(){return S},ri:function(){return f}});var y=m(94184),A=m.n(y),b=m(50344),z=m(67294),k=m(53124),N=m(98675),w=m(51916),I=function(te,q){var ie={};for(var he in te)Object.prototype.hasOwnProperty.call(te,he)&&q.indexOf(he)<0&&(ie[he]=te[he]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,he=Object.getOwnPropertySymbols(te);de{const ie=z.useContext(C),he=z.useMemo(()=>{if(!ie)return"";const{compactDirection:de,isFirstItem:fe,isLastItem:ke}=ie,Ie=de==="vertical"?"-vertical-":"-";return A()(`${te}-compact${Ie}item`,{[`${te}-compact${Ie}first-item`]:fe,[`${te}-compact${Ie}last-item`]:ke,[`${te}-compact${Ie}item-rtl`]:q==="rtl"})},[te,q,ie]);return{compactSize:ie==null?void 0:ie.compactSize,compactDirection:ie==null?void 0:ie.compactDirection,compactItemClassnames:he}},S=te=>{let{children:q}=te;return z.createElement(C.Provider,{value:null},q)},P=te=>{var{children:q}=te,ie=I(te,["children"]);return z.createElement(C.Provider,{value:ie},q)},W=te=>{const{getPrefixCls:q,direction:ie}=z.useContext(k.E_),{size:he,direction:de,block:fe,prefixCls:ke,className:Ie,rootClassName:Be,children:be}=te,me=I(te,["size","direction","block","prefixCls","className","rootClassName","children"]),ye=(0,N.Z)(dt=>he!=null?he:dt),_e=q("space-compact",ke),[Ce,De]=(0,w.Z)(_e),ge=A()(_e,De,{[`${_e}-rtl`]:ie==="rtl",[`${_e}-block`]:fe,[`${_e}-vertical`]:de==="vertical"},Ie,Be),je=z.useContext(C),we=(0,b.Z)(be),Pt=z.useMemo(()=>we.map((dt,He)=>{const bt=dt&&dt.key||`${_e}-item-${He}`;return z.createElement(P,{key:bt,compactSize:ye,compactDirection:de,isFirstItem:He===0&&(!je||(je==null?void 0:je.isFirstItem)),isLastItem:He===we.length-1&&(!je||(je==null?void 0:je.isLastItem))},dt)}),[he,we,je]);return we.length===0?null:Ce(z.createElement("div",Object.assign({className:ge},me),Pt))};V.ZP=W},78957:function(nt,V,m){"use strict";m.d(V,{Z:function(){return he}});var y=m(67294),A=m(94184),b=m.n(A),z=m(50344);function k(de){return["small","middle","large"].includes(de)}function N(de){return de?typeof de=="number"&&!Number.isNaN(de):!1}var w=m(53124),I=m(4173);const C=y.createContext({latestIndex:0}),f=C.Provider;var P=de=>{let{className:fe,index:ke,children:Ie,split:Be,style:be}=de;const{latestIndex:me}=y.useContext(C);return Ie==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:fe,style:be},Ie),ke{var ke,Ie;const{getPrefixCls:Be,space:be,direction:me}=y.useContext(w.E_),{size:ye=(be==null?void 0:be.size)||"small",align:_e,className:Ce,rootClassName:De,children:ge,direction:je="horizontal",prefixCls:we,split:Pt,style:dt,wrap:He=!1,classNames:bt,styles:ft}=de,$t=te(de,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[vt,yn]=Array.isArray(ye)?ye:[ye,ye],Bn=k(yn),Lr=k(vt),ii=N(yn),gi=N(vt),no=(0,z.Z)(ge,{keepEmpty:!0}),To=_e===void 0&&je==="horizontal"?"center":_e,_r=Be("space",we),[Bo,hs]=(0,W.Z)(_r),ve=b()(_r,be==null?void 0:be.className,hs,`${_r}-${je}`,{[`${_r}-rtl`]:me==="rtl",[`${_r}-align-${To}`]:To,[`${_r}-gap-row-${yn}`]:Bn,[`${_r}-gap-col-${vt}`]:Lr},Ce,De),So=b()(`${_r}-item`,(ke=bt==null?void 0:bt.item)!==null&&ke!==void 0?ke:(Ie=be==null?void 0:be.classNames)===null||Ie===void 0?void 0:Ie.item);let ho=0;const go=no.map((dn,Ve)=>{var yt,Ct;dn!=null&&(ho=Ve);const Wt=dn&&dn.key||`${So}-${Ve}`;return y.createElement(P,{className:So,key:Wt,index:Ve,split:Pt,style:(yt=ft==null?void 0:ft.item)!==null&&yt!==void 0?yt:(Ct=be==null?void 0:be.styles)===null||Ct===void 0?void 0:Ct.item},dn)}),ji=y.useMemo(()=>({latestIndex:ho}),[ho]);if(no.length===0)return null;const No={};return He&&(No.flexWrap="wrap"),!Lr&&gi&&(No.columnGap=vt),!Bn&&ii&&(No.rowGap=yn),Bo(y.createElement("div",Object.assign({ref:fe,className:ve,style:Object.assign(Object.assign(Object.assign({},No),be==null?void 0:be.style),dt)},$t),y.createElement(f,{value:ji},go)))});ie.Compact=I.ZP;var he=ie},51916:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(67968),A=m(45503),z=I=>{const{componentCls:C}=I;return{[C]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const k=I=>{const{componentCls:C}=I;return{[C]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${C}-item:empty`]:{display:"none"}}}},N=I=>{const{componentCls:C}=I;return{[C]:{"&-gap-row-small":{rowGap:I.spaceGapSmallSize},"&-gap-row-middle":{rowGap:I.spaceGapMiddleSize},"&-gap-row-large":{rowGap:I.spaceGapLargeSize},"&-gap-col-small":{columnGap:I.spaceGapSmallSize},"&-gap-col-middle":{columnGap:I.spaceGapMiddleSize},"&-gap-col-large":{columnGap:I.spaceGapLargeSize}}}};var w=(0,y.Z)("Space",I=>{const C=(0,A.TS)(I,{spaceGapSmallSize:I.paddingXS,spaceGapMiddleSize:I.padding,spaceGapLargeSize:I.paddingLG});return[k(C),N(C),z(C)]},()=>({}),{resetStyle:!1})},75081:function(nt,V,m){"use strict";m.d(V,{Z:function(){return me}});var y=m(67294),A=m(94184),b=m.n(A),z=m(98423);function k(ye,_e,Ce){var De=Ce||{},ge=De.noTrailing,je=ge===void 0?!1:ge,we=De.noLeading,Pt=we===void 0?!1:we,dt=De.debounceMode,He=dt===void 0?void 0:dt,bt,ft=!1,$t=0;function vt(){bt&&clearTimeout(bt)}function yn(Lr){var ii=Lr||{},gi=ii.upcomingOnly,no=gi===void 0?!1:gi;vt(),ft=!no}function Bn(){for(var Lr=arguments.length,ii=new Array(Lr),gi=0;giye?Pt?($t=Date.now(),je||(bt=setTimeout(He?Bo:_r,ye))):_r():je!==!0&&(bt=setTimeout(He?Bo:_r,He===void 0?ye-To:ye))}return Bn.cancel=yn,Bn}function N(ye,_e,Ce){var De=Ce||{},ge=De.atBegin,je=ge===void 0?!1:ge;return k(ye,_e,{debounceMode:je!==!1})}var w=m(96159),I=m(53124),C=m(85731),f=m(14747),S=m(67968),P=m(45503);const W=new C.E4("antSpinMove",{to:{opacity:1}}),te=new C.E4("antRotate",{to:{transform:"rotate(405deg)"}}),q=ye=>({[`${ye.componentCls}`]:Object.assign(Object.assign({},(0,f.Wf)(ye)),{position:"absolute",display:"none",color:ye.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${ye.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:ye.contentHeight,[`${ye.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-ye.dotSize/2},[`${ye.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(ye.dotSize-ye.fontSize)/2+2,textShadow:`0 1px 2px ${ye.colorBgContainer}`,fontSize:ye.fontSize},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSize/2)-10},"&-sm":{[`${ye.componentCls}-dot`]:{margin:-ye.dotSizeSM/2},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeSM-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeSM/2)-10}},"&-lg":{[`${ye.componentCls}-dot`]:{margin:-(ye.dotSizeLG/2)},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeLG-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeLG/2)-10}}},[`${ye.componentCls}-container`]:{position:"relative",transition:`opacity ${ye.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:ye.colorBgContainer,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${ye.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:ye.spinDotDefault},[`${ye.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:ye.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(ye.dotSize-ye.marginXXS/2)/2,height:(ye.dotSize-ye.marginXXS/2)/2,backgroundColor:ye.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:W,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:te,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeSM,i:{width:(ye.dotSizeSM-ye.marginXXS/2)/2,height:(ye.dotSizeSM-ye.marginXXS/2)/2}},[`&-lg ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeLG,i:{width:(ye.dotSizeLG-ye.marginXXS)/2,height:(ye.dotSizeLG-ye.marginXXS)/2}},[`&${ye.componentCls}-show-text ${ye.componentCls}-text`]:{display:"block"}})});var ie=(0,S.Z)("Spin",ye=>{const _e=(0,P.TS)(ye,{spinDotDefault:ye.colorTextDescription});return[q(_e)]},ye=>({contentHeight:400,dotSize:ye.controlHeightLG/2,dotSizeSM:ye.controlHeightLG*.35,dotSizeLG:ye.controlHeight})),he=function(ye,_e){var Ce={};for(var De in ye)Object.prototype.hasOwnProperty.call(ye,De)&&_e.indexOf(De)<0&&(Ce[De]=ye[De]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,De=Object.getOwnPropertySymbols(ye);ge{const{spinPrefixCls:_e,spinning:Ce=!0,delay:De=0,className:ge,rootClassName:je,size:we="default",tip:Pt,wrapperClassName:dt,style:He,children:bt,hashId:ft}=ye,$t=he(ye,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[vt,yn]=y.useState(()=>Ce&&!Ie(Ce,De));y.useEffect(()=>{if(Ce){const hs=N(De,()=>{yn(!0)});return hs(),()=>{var ve;(ve=hs==null?void 0:hs.cancel)===null||ve===void 0||ve.call(hs)}}yn(!1)},[De,Ce]);const Bn=y.useMemo(()=>typeof bt!="undefined",[bt]),{direction:Lr,spin:ii}=y.useContext(I.E_),gi=b()(_e,ii==null?void 0:ii.className,{[`${_e}-sm`]:we==="small",[`${_e}-lg`]:we==="large",[`${_e}-spinning`]:vt,[`${_e}-show-text`]:!!Pt,[`${_e}-rtl`]:Lr==="rtl"},ge,je,ft),no=b()(`${_e}-container`,{[`${_e}-blur`]:vt}),To=(0,z.Z)($t,["indicator","prefixCls"]),_r=Object.assign(Object.assign({},ii==null?void 0:ii.style),He),Bo=y.createElement("div",Object.assign({},To,{style:_r,className:gi,"aria-live":"polite","aria-busy":vt}),ke(_e,ye),Pt&&Bn?y.createElement("div",{className:`${_e}-text`},Pt):null);return Bn?y.createElement("div",Object.assign({},To,{className:b()(`${_e}-nested-loading`,dt,ft)}),vt&&y.createElement("div",{key:"loading"},Bo),y.createElement("div",{className:no,key:"container"},bt)):Bo},be=ye=>{const{prefixCls:_e}=ye,{getPrefixCls:Ce}=y.useContext(I.E_),De=Ce("spin",_e),[ge,je]=ie(De),we=Object.assign(Object.assign({},ye),{spinPrefixCls:De,hashId:je});return ge(y.createElement(Be,Object.assign({},we)))};be.setDefaultIndicator=ye=>{fe=ye};var me=be},80110:function(nt,V,m){"use strict";m.d(V,{c:function(){return b}});function y(z,k,N){const{focusElCls:w,focus:I,borderElCls:C}=N,f=C?"> *":"",S=["hover",I?"focus":null,"active"].filter(Boolean).map(P=>`&:${P} ${f}`).join(",");return{[`&-item:not(${k}-last-item)`]:{marginInlineEnd:-z.lineWidth},"&-item":Object.assign(Object.assign({[S]:{zIndex:2}},w?{[`&${w}`]:{zIndex:2}}:{}),{[`&[disabled] ${f}`]:{zIndex:0}})}}function A(z,k,N){const{borderElCls:w}=N,I=w?`> ${w}`:"";return{[`&-item:not(${k}-first-item):not(${k}-last-item) ${I}`]:{borderRadius:0},[`&-item:not(${k}-last-item)${k}-first-item`]:{[`& ${I}, &${z}-sm ${I}, &${z}-lg ${I}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${k}-first-item)${k}-last-item`]:{[`& ${I}, &${z}-sm ${I}, &${z}-lg ${I}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function b(z){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:N}=z,w=`${N}-compact`;return{[w]:Object.assign(Object.assign({},y(z,w,k)),A(N,w,k))}}},14747:function(nt,V,m){"use strict";m.d(V,{Lx:function(){return k},Qy:function(){return I},Ro:function(){return b},Wf:function(){return A},dF:function(){return z},du:function(){return N},oN:function(){return w},vS:function(){return y}});const y={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},A=function(C){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,listStyle:"none",fontFamily:f?"inherit":C.fontFamily}},b=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),z=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k=C=>({a:{color:C.colorLink,textDecoration:C.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:C.linkHoverDecoration,outline:0},"&:focus":{textDecoration:C.linkFocusDecoration,outline:0},"&[disabled]":{color:C.colorTextDisabled,cursor:"not-allowed"}}}),N=(C,f)=>{const{fontFamily:S,fontSize:P}=C,W=`[class^="${f}"], [class*=" ${f}"]`;return{[W]:{fontFamily:S,fontSize:P,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[W]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},w=C=>({outline:`${C.lineWidthFocus}px solid ${C.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),I=C=>({"&:focus-visible":Object.assign({},w(C))})},33507:function(nt,V){"use strict";const m=y=>({[y.componentCls]:{[`${y.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${y.motionDurationMid} ${y.motionEaseInOut}, - opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}},[`${y.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${y.motionDurationMid} ${y.motionEaseInOut}, - opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}}});V.Z=m},16932:function(nt,V,m){"use strict";m.d(V,{J$:function(){return k}});var y=m(85731),A=m(93590);const b=new y.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),z=new y.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),k=function(N){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:I}=N,C=`${I}-fade`,f=w?"&":"";return[(0,A.R)(C,b,z,N.motionDurationMid,w),{[` - ${f}${C}-enter, - ${f}${C}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${f}${C}-leave`]:{animationTimingFunction:"linear"}}]}},93590:function(nt,V,m){"use strict";m.d(V,{R:function(){return b}});const y=z=>({animationDuration:z,animationFillMode:"both"}),A=z=>({animationDuration:z,animationFillMode:"both"}),b=function(z,k,N,w){const C=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${C}${z}-enter, - ${C}${z}-appear - `]:Object.assign(Object.assign({},y(w)),{animationPlayState:"paused"}),[`${C}${z}-leave`]:Object.assign(Object.assign({},A(w)),{animationPlayState:"paused"}),[` - ${C}${z}-enter${z}-enter-active, - ${C}${z}-appear${z}-appear-active - `]:{animationName:k,animationPlayState:"running"},[`${C}${z}-leave${z}-leave-active`]:{animationName:N,animationPlayState:"running",pointerEvents:"none"}}}},33297:function(nt,V,m){"use strict";m.d(V,{Fm:function(){return P}});var y=m(85731),A=m(93590);const b=new y.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new y.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k=new y.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N=new y.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new y.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new y.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C=new y.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new y.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),S={"move-up":{inKeyframes:C,outKeyframes:f},"move-down":{inKeyframes:b,outKeyframes:z},"move-left":{inKeyframes:k,outKeyframes:N},"move-right":{inKeyframes:w,outKeyframes:I}},P=(W,te)=>{const{antCls:q}=W,ie=`${q}-${te}`,{inKeyframes:he,outKeyframes:de}=S[te];return[(0,A.R)(ie,he,de,W.motionDurationMid),{[` - ${ie}-enter, - ${ie}-appear - `]:{opacity:0,animationTimingFunction:W.motionEaseOutCirc},[`${ie}-leave`]:{animationTimingFunction:W.motionEaseInOutCirc}}]}},67771:function(nt,V,m){"use strict";m.d(V,{Qt:function(){return k},Uw:function(){return z},fJ:function(){return b},ly:function(){return N},oN:function(){return P}});var y=m(85731),A=m(93590);const b=new y.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),z=new y.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),k=new y.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N=new y.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new y.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),I=new y.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new y.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new y.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),S={"slide-up":{inKeyframes:b,outKeyframes:z},"slide-down":{inKeyframes:k,outKeyframes:N},"slide-left":{inKeyframes:w,outKeyframes:I},"slide-right":{inKeyframes:C,outKeyframes:f}},P=(W,te)=>{const{antCls:q}=W,ie=`${q}-${te}`,{inKeyframes:he,outKeyframes:de}=S[te];return[(0,A.R)(ie,he,de,W.motionDurationMid),{[` - ${ie}-enter, - ${ie}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:W.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${ie}-leave`]:{animationTimingFunction:W.motionEaseInQuint}}]}},50438:function(nt,V,m){"use strict";m.d(V,{_y:function(){return ie},kr:function(){return b}});var y=m(85731),A=m(93590);const b=new y.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z=new y.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),k=new y.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),N=new y.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),w=new y.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),I=new y.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C=new y.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),f=new y.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),S=new y.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P=new y.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),W=new y.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),te=new y.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),q={zoom:{inKeyframes:b,outKeyframes:z},"zoom-big":{inKeyframes:k,outKeyframes:N},"zoom-big-fast":{inKeyframes:k,outKeyframes:N},"zoom-left":{inKeyframes:C,outKeyframes:f},"zoom-right":{inKeyframes:S,outKeyframes:P},"zoom-up":{inKeyframes:w,outKeyframes:I},"zoom-down":{inKeyframes:W,outKeyframes:te}},ie=(he,de)=>{const{antCls:fe}=he,ke=`${fe}-${de}`,{inKeyframes:Ie,outKeyframes:Be}=q[de];return[(0,A.R)(ke,Ie,Be,de==="zoom-big-fast"?he.motionDurationFast:he.motionDurationMid),{[` - ${ke}-enter, - ${ke}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:he.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${ke}-leave`]:{animationTimingFunction:he.motionEaseInOutCirc}}]}},49867:function(nt,V,m){"use strict";m.d(V,{N:function(){return y}});const y=A=>({color:A.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"&:focus, &:hover":{color:A.colorLinkHover},"&:active":{color:A.colorLinkActive}})},77786:function(nt,V,m){"use strict";m.d(V,{qN:function(){return A},ZP:function(){return k},fS:function(){return b}});const y=(N,w,I,C,f)=>{const S=N/2,P=0,W=S,te=I*1/Math.sqrt(2),q=S-I*(1-1/Math.sqrt(2)),ie=S-w*(1/Math.sqrt(2)),he=I*(Math.sqrt(2)-1)+w*(1/Math.sqrt(2)),de=2*S-ie,fe=he,ke=2*S-te,Ie=q,Be=2*S-P,be=W,me=S*Math.sqrt(2)+I*(Math.sqrt(2)-2),ye=I*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:C,clipPath:{_multi_value_:!0,value:[`polygon(${ye}px 100%, 50% ${ye}px, ${2*S-ye}px 100%, ${ye}px 100%)`,`path('M ${P} ${W} A ${I} ${I} 0 0 0 ${te} ${q} L ${ie} ${he} A ${w} ${w} 0 0 1 ${de} ${fe} L ${ke} ${Ie} A ${I} ${I} 0 0 0 ${Be} ${be} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:me,height:me,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${w}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:f,zIndex:0,background:"transparent"}}},A=8;function b(N){const w=A,{contentRadius:I,limitVerticalRadius:C}=N,f=I>12?I+2:12;return{dropdownArrowOffset:f,dropdownArrowOffsetVertical:C?w:f}}function z(N,w){return N?w:{}}function k(N,w){const{componentCls:I,sizePopupArrow:C,borderRadiusXS:f,borderRadiusOuter:S,boxShadowPopoverArrow:P}=N,{colorBg:W,contentRadius:te=N.borderRadiusLG,limitVerticalRadius:q,arrowDistance:ie=0,arrowPlacement:he={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:de,dropdownArrowOffset:fe}=b({contentRadius:te,limitVerticalRadius:q});return{[I]:Object.assign(Object.assign(Object.assign(Object.assign({[`${I}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},y(C,f,S,W,P)),{"&:before":{background:W}})]},z(!!he.top,{[[`&-placement-top ${I}-arrow`,`&-placement-topLeft ${I}-arrow`,`&-placement-topRight ${I}-arrow`].join(",")]:{bottom:ie,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-topRight ${I}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!he.bottom,{[[`&-placement-bottom ${I}-arrow`,`&-placement-bottomLeft ${I}-arrow`,`&-placement-bottomRight ${I}-arrow`].join(",")]:{top:ie,transform:"translateY(-100%)"},[`&-placement-bottom ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-bottomRight ${I}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!he.left,{[[`&-placement-left ${I}-arrow`,`&-placement-leftTop ${I}-arrow`,`&-placement-leftBottom ${I}-arrow`].join(",")]:{right:{_skip_check_:!0,value:ie},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${I}-arrow`]:{top:de},[`&-placement-leftBottom ${I}-arrow`]:{bottom:de}})),z(!!he.right,{[[`&-placement-right ${I}-arrow`,`&-placement-rightTop ${I}-arrow`,`&-placement-rightBottom ${I}-arrow`].join(",")]:{left:{_skip_check_:!0,value:ie},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${I}-arrow`]:{top:de},[`&-placement-rightBottom ${I}-arrow`]:{bottom:de}}))}}},72269:function(nt,V,m){"use strict";m.d(V,{Z:function(){return je}});var y=m(67294),A=m(22508),b=m(94184),z=m.n(b),k=m(87462),N=m(4942),w=m(97685),I=m(91),C=m(21770),f=m(15105),S=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],P=y.forwardRef(function(we,Pt){var dt,He=we.prefixCls,bt=He===void 0?"rc-switch":He,ft=we.className,$t=we.checked,vt=we.defaultChecked,yn=we.disabled,Bn=we.loadingIcon,Lr=we.checkedChildren,ii=we.unCheckedChildren,gi=we.onClick,no=we.onChange,To=we.onKeyDown,_r=(0,I.Z)(we,S),Bo=(0,C.Z)(!1,{value:$t,defaultValue:vt}),hs=(0,w.Z)(Bo,2),ve=hs[0],So=hs[1];function ho(dn,Ve){var yt=ve;return yn||(yt=dn,So(yt),no==null||no(yt,Ve)),yt}function go(dn){dn.which===f.Z.LEFT?ho(!1,dn):dn.which===f.Z.RIGHT&&ho(!0,dn),To==null||To(dn)}function ji(dn){var Ve=ho(!ve,dn);gi==null||gi(Ve,dn)}var No=z()(bt,ft,(dt={},(0,N.Z)(dt,"".concat(bt,"-checked"),ve),(0,N.Z)(dt,"".concat(bt,"-disabled"),yn),dt));return y.createElement("button",(0,k.Z)({},_r,{type:"button",role:"switch","aria-checked":ve,disabled:yn,className:No,ref:Pt,onKeyDown:go,onClick:ji}),Bn,y.createElement("span",{className:"".concat(bt,"-inner")},y.createElement("span",{className:"".concat(bt,"-inner-checked")},Lr),y.createElement("span",{className:"".concat(bt,"-inner-unchecked")},ii)))});P.displayName="Switch";var W=P,te=m(45353),q=m(53124),ie=m(98866),he=m(98675),de=m(10274),fe=m(14747),ke=m(67968),Ie=m(45503);const Be=we=>{const{componentCls:Pt,trackHeightSM:dt,trackPadding:He,trackMinWidthSM:bt,innerMinMarginSM:ft,innerMaxMarginSM:$t,handleSizeSM:vt}=we,yn=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:bt,height:dt,lineHeight:`${dt}px`,[`${Pt}-inner`]:{paddingInlineStart:$t,paddingInlineEnd:ft,[`${yn}-checked`]:{marginInlineStart:`calc(-100% + ${vt+He*2}px - ${$t*2}px)`,marginInlineEnd:`calc(100% - ${vt+He*2}px + ${$t*2}px)`},[`${yn}-unchecked`]:{marginTop:-dt,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:vt,height:vt},[`${Pt}-loading-icon`]:{top:(vt-we.switchLoadingIconSize)/2,fontSize:we.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:$t,[`${yn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${yn}-unchecked`]:{marginInlineStart:`calc(100% - ${vt+He*2}px + ${$t*2}px)`,marginInlineEnd:`calc(-100% + ${vt+He*2}px - ${$t*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${vt+He}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${yn}`]:{[`${yn}-unchecked`]:{marginInlineStart:we.marginXXS/2,marginInlineEnd:-we.marginXXS/2}},[`&${Pt}-checked ${yn}`]:{[`${yn}-checked`]:{marginInlineStart:-we.marginXXS/2,marginInlineEnd:we.marginXXS/2}}}}}}},be=we=>{const{componentCls:Pt,handleSize:dt}=we;return{[Pt]:{[`${Pt}-loading-icon${we.iconCls}`]:{position:"relative",top:(dt-we.fontSize)/2,color:we.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:we.switchColor}}}},me=we=>{const{componentCls:Pt,motion:dt,trackPadding:He,handleBg:bt,handleShadow:ft,handleSize:$t}=we,vt=`${Pt}-handle`;return{[Pt]:{[vt]:{position:"absolute",top:He,insetInlineStart:He,width:$t,height:$t,transition:`all ${we.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:bt,borderRadius:$t/2,boxShadow:ft,transition:`all ${we.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${vt}`]:{insetInlineStart:`calc(100% - ${$t+He}px)`},[`&:not(${Pt}-disabled):active`]:dt?{[`${vt}::before`]:{insetInlineEnd:we.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${vt}::before`]:{insetInlineEnd:0,insetInlineStart:we.switchHandleActiveInset}}:{}}}},ye=we=>{const{componentCls:Pt,trackHeight:dt,trackPadding:He,innerMinMargin:bt,innerMaxMargin:ft,handleSize:$t}=we,vt=`${Pt}-inner`;return{[Pt]:{[vt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ft,paddingInlineEnd:bt,transition:`padding-inline-start ${we.switchDuration} ease-in-out, padding-inline-end ${we.switchDuration} ease-in-out`,[`${vt}-checked, ${vt}-unchecked`]:{display:"block",color:we.colorTextLightSolid,fontSize:we.fontSizeSM,transition:`margin-inline-start ${we.switchDuration} ease-in-out, margin-inline-end ${we.switchDuration} ease-in-out`,pointerEvents:"none"},[`${vt}-checked`]:{marginInlineStart:`calc(-100% + ${$t+He*2}px - ${ft*2}px)`,marginInlineEnd:`calc(100% - ${$t+He*2}px + ${ft*2}px)`},[`${vt}-unchecked`]:{marginTop:-dt,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${vt}`]:{paddingInlineStart:bt,paddingInlineEnd:ft,[`${vt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${vt}-unchecked`]:{marginInlineStart:`calc(100% - ${$t+He*2}px + ${ft*2}px)`,marginInlineEnd:`calc(-100% + ${$t+He*2}px - ${ft*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${vt}`]:{[`${vt}-unchecked`]:{marginInlineStart:He*2,marginInlineEnd:-He*2}},[`&${Pt}-checked ${vt}`]:{[`${vt}-checked`]:{marginInlineStart:-He*2,marginInlineEnd:He*2}}}}}},_e=we=>{const{componentCls:Pt,trackHeight:dt,trackMinWidth:He}=we;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(we)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:He,height:dt,lineHeight:`${dt}px`,verticalAlign:"middle",background:we.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${we.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:we.colorTextTertiary}}),(0,fe.Qy)(we)),{[`&${Pt}-checked`]:{background:we.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:we.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:we.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var Ce=(0,ke.Z)("Switch",we=>{const Pt=(0,Ie.TS)(we,{switchDuration:we.motionDurationMid,switchColor:we.colorPrimary,switchDisabledOpacity:we.opacityLoading,switchLoadingIconSize:we.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${we.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_e(Pt),ye(Pt),me(Pt),be(Pt),Be(Pt)]},we=>{const{fontSize:Pt,lineHeight:dt,controlHeight:He,colorWhite:bt}=we,ft=Pt*dt,$t=He/2,vt=2,yn=ft-vt*2,Bn=$t-vt*2;return{trackHeight:ft,trackHeightSM:$t,trackMinWidth:yn*2+vt*4,trackMinWidthSM:Bn*2+vt*2,trackPadding:vt,handleBg:bt,handleSize:yn,handleSizeSM:Bn,handleShadow:`0 2px 4px 0 ${new de.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:yn/2,innerMaxMargin:yn+vt+vt*2,innerMinMarginSM:Bn/2,innerMaxMarginSM:Bn+vt+vt*2}}),De=function(we,Pt){var dt={};for(var He in we)Object.prototype.hasOwnProperty.call(we,He)&&Pt.indexOf(He)<0&&(dt[He]=we[He]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,He=Object.getOwnPropertySymbols(we);bt{const{prefixCls:dt,size:He,disabled:bt,loading:ft,className:$t,rootClassName:vt,style:yn}=we,Bn=De(we,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Lr,direction:ii,switch:gi}=y.useContext(q.E_),no=y.useContext(ie.Z),To=(bt!=null?bt:no)||ft,_r=Lr("switch",dt),Bo=y.createElement("div",{className:`${_r}-handle`},ft&&y.createElement(A.Z,{className:`${_r}-loading-icon`})),[hs,ve]=Ce(_r),So=(0,he.Z)(He),ho=z()(gi==null?void 0:gi.className,{[`${_r}-small`]:So==="small",[`${_r}-loading`]:ft,[`${_r}-rtl`]:ii==="rtl"},$t,vt,ve),go=Object.assign(Object.assign({},gi==null?void 0:gi.style),yn);return hs(y.createElement(te.Z,{component:"Switch"},y.createElement(W,Object.assign({},Bn,{prefixCls:_r,className:ho,style:go,disabled:To,ref:Pt,loadingIcon:Bo}))))});ge.__ANT_SWITCH=!0;var je=ge},11702:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Os}});var y={},A="rc-table-internal-hook",b=m(97685),z=m(66680),k=m(8410),N=m(91881),w=m(67294),I=m(73935);function C(Ye){var mt=w.createContext(void 0),Ft=function(zt){var Gt=zt.value,Nr=zt.children,An=w.useRef(Gt);An.current=Gt;var Tn=w.useState(function(){return{getValue:function(){return An.current},listeners:new Set}}),cn=(0,b.Z)(Tn,1),Jn=cn[0];return(0,k.Z)(function(){(0,I.unstable_batchedUpdates)(function(){Jn.listeners.forEach(function(wr){wr(Gt)})})},[Gt]),w.createElement(mt.Provider,{value:Jn},Nr)};return{Context:mt,Provider:Ft,defaultValue:Ye}}function f(Ye,mt){var Ft=(0,z.Z)(typeof mt=="function"?mt:function(wr){if(mt===void 0)return wr;if(!Array.isArray(mt))return wr[mt];var Lo={};return mt.forEach(function(kt){Lo[kt]=wr[kt]}),Lo}),Dt=w.useContext(Ye==null?void 0:Ye.Context),zt=Dt||{},Gt=zt.listeners,Nr=zt.getValue,An=w.useRef();An.current=Ft(Dt?Nr():Ye==null?void 0:Ye.defaultValue);var Tn=w.useState({}),cn=(0,b.Z)(Tn,2),Jn=cn[1];return(0,k.Z)(function(){if(!Dt)return;function wr(Lo){var kt=Ft(Lo);(0,N.Z)(An.current,kt,!0)||Jn({})}return Gt.add(wr),function(){Gt.delete(wr)}},[Dt]),An.current}var S=m(87462),P=m(42550);function W(){var Ye=w.createContext(null);function mt(){return w.useContext(Ye)}function Ft(zt,Gt){var Nr=(0,P.Yr)(zt),An=function(cn,Jn){var wr=Nr?{ref:Jn}:{},Lo=w.useRef(0),kt=w.useRef(cn),tr=mt();return tr!==null?w.createElement(zt,(0,S.Z)({},cn,wr)):((!Gt||Gt(kt.current,cn))&&(Lo.current+=1),kt.current=cn,w.createElement(Ye.Provider,{value:Lo.current},w.createElement(zt,(0,S.Z)({},cn,wr))))};return Nr?w.forwardRef(An):An}function Dt(zt,Gt){var Nr=(0,P.Yr)(zt),An=function(cn,Jn){var wr=Nr?{ref:Jn}:{};return mt(),w.createElement(zt,(0,S.Z)({},cn,wr))};return Nr?w.memo(w.forwardRef(An),Gt):w.memo(An,Gt)}return{makeImmutable:Ft,responseImmutable:Dt,useImmutableMark:mt}}var te=W(),q=te.makeImmutable,ie=te.responseImmutable,he=te.useImmutableMark,de=W(),fe=de.makeImmutable,ke=de.responseImmutable,Ie=de.useImmutableMark,Be=C(),be=Be;function me(Ye,mt){var Ft=w.useRef(0);Ft.current+=1;var Dt=w.useRef(Ye),zt=[];Object.keys(Ye||{}).map(function(Nr){var An;(Ye==null?void 0:Ye[Nr])!==((An=Dt.current)===null||An===void 0?void 0:An[Nr])&&zt.push(Nr)}),Dt.current=Ye;var Gt=w.useRef([]);return zt.length&&(Gt.current=zt),w.useDebugValue(Ft.current),w.useDebugValue(Gt.current.join(", ")),mt&&console.log("".concat(mt,":"),Ft.current,Gt.current),Ft.current}var ye=null,_e=w.memo(function(){var Ye=me();return w.createElement("h1",null,"Render Times: ",Ye)});_e.displayName="RenderBlock";var Ce=m(71002),De=m(1413),ge=m(4942),je=m(94184),we=m.n(je),Pt=m(56982),dt=m(88306),He=m(80334),bt=w.createContext({renderWithProps:!1}),ft=bt,$t="RC_TABLE_KEY";function vt(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function yn(Ye){var mt=[],Ft={};return Ye.forEach(function(Dt){for(var zt=Dt||{},Gt=zt.key,Nr=zt.dataIndex,An=Gt||vt(Nr).join("-")||$t;Ft[An];)An="".concat(An,"_next");Ft[An]=!0,mt.push(An)}),mt}function Bn(Ye){return Ye!=null}function Lr(Ye){return Ye&&(0,Ce.Z)(Ye)==="object"&&!Array.isArray(Ye)&&!w.isValidElement(Ye)}function ii(Ye,mt,Ft,Dt,zt,Gt){var Nr=w.useContext(ft),An=Ie(),Tn=(0,Pt.Z)(function(){if(Bn(Dt))return[Dt];var cn=mt==null||mt===""?[]:Array.isArray(mt)?mt:[mt],Jn=(0,dt.Z)(Ye,cn),wr=Jn,Lo=void 0;if(zt){var kt=zt(Jn,Ye,Ft);Lr(kt)?(wr=kt.children,Lo=kt.props,Nr.renderWithProps=!0):wr=kt}return[wr,Lo]},[An,Ye,Dt,mt,zt,Ft],function(cn,Jn){if(Gt){var wr=(0,b.Z)(cn,2),Lo=wr[1],kt=(0,b.Z)(Jn,2),tr=kt[1];return Gt(tr,Lo)}return Nr.renderWithProps?!0:!(0,N.Z)(cn,Jn,!0)});return Tn}function gi(Ye,mt,Ft,Dt){var zt=Ye+mt-1;return Ye<=Dt&&zt>=Ft}function no(Ye,mt){return f(be,function(Ft){var Dt=gi(Ye,mt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[Dt,Ft.onHover]})}var To=function(mt){var Ft=mt.ellipsis,Dt=mt.rowType,zt=mt.children,Gt,Nr=Ft===!0?{showTitle:!0}:Ft;return Nr&&(Nr.showTitle||Dt==="header")&&(typeof zt=="string"||typeof zt=="number"?Gt=zt.toString():w.isValidElement(zt)&&typeof zt.props.children=="string"&&(Gt=zt.props.children)),Gt};function _r(Ye){var mt,Ft,Dt,zt,Gt,Nr,An,Tn,cn=Ye.component,Jn=Ye.children,wr=Ye.ellipsis,Lo=Ye.scope,kt=Ye.prefixCls,tr=Ye.className,Ln=Ye.align,ir=Ye.record,dr=Ye.render,jr=Ye.dataIndex,Ri=Ye.renderIndex,Te=Ye.shouldCellUpdate,qo=Ye.index,Zs=Ye.rowType,Sa=Ye.colSpan,ca=Ye.rowSpan,Rs=Ye.fixLeft,ma=Ye.fixRight,ko=Ye.firstFixLeft,or=Ye.lastFixLeft,Ii=Ye.firstFixRight,Gi=Ye.lastFixRight,cs=Ye.appendNode,Ps=Ye.additionalProps,da=Ps===void 0?{}:Ps,Yo=Ye.isSticky,sr="".concat(kt,"-cell"),io=f(be,["supportSticky","allColumnsFixedLeft"]),ws=io.supportSticky,cl=io.allColumnsFixedLeft,Dl=ii(ir,jr,Ri,Jn,dr,Te),Ba=(0,b.Z)(Dl,2),Ss=Ba[0],wl=Ba[1],rl={},mc=typeof Rs=="number"&&ws,gl=typeof ma=="number"&&ws;mc&&(rl.position="sticky",rl.left=Rs),gl&&(rl.position="sticky",rl.right=ma);var ic=(mt=(Ft=(Dt=wl==null?void 0:wl.colSpan)!==null&&Dt!==void 0?Dt:da.colSpan)!==null&&Ft!==void 0?Ft:Sa)!==null&&mt!==void 0?mt:1,Ca=(zt=(Gt=(Nr=wl==null?void 0:wl.rowSpan)!==null&&Nr!==void 0?Nr:da.rowSpan)!==null&&Gt!==void 0?Gt:ca)!==null&&zt!==void 0?zt:1,qu=no(qo,Ca),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Js=function(li){var Fi;ir&&tu(qo,qo+Ca-1),da==null||(Fi=da.onMouseEnter)===null||Fi===void 0||Fi.call(da,li)},Kc=function(li){var Fi;ir&&tu(-1,-1),da==null||(Fi=da.onMouseLeave)===null||Fi===void 0||Fi.call(da,li)};if(ic===0||Ca===0)return null;var Le=(An=da.title)!==null&&An!==void 0?An:To({rowType:Zs,ellipsis:wr,children:Ss}),Oe=we()(sr,tr,(Tn={},(0,ge.Z)(Tn,"".concat(sr,"-fix-left"),mc&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-first"),ko&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-last"),or&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-all"),or&&cl&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right"),gl&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right-first"),Ii&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right-last"),Gi&&ws),(0,ge.Z)(Tn,"".concat(sr,"-ellipsis"),wr),(0,ge.Z)(Tn,"".concat(sr,"-with-append"),cs),(0,ge.Z)(Tn,"".concat(sr,"-fix-sticky"),(mc||gl)&&Yo&&ws),(0,ge.Z)(Tn,"".concat(sr,"-row-hover"),!wl&&su),Tn),da.className,wl==null?void 0:wl.className),et={};Ln&&(et.textAlign=Ln);var hn=(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},rl),da.style),et),wl==null?void 0:wl.style),Rr=Ss;return(0,Ce.Z)(Rr)==="object"&&!Array.isArray(Rr)&&!w.isValidElement(Rr)&&(Rr=null),wr&&(or||Ii)&&(Rr=w.createElement("span",{className:"".concat(sr,"-content")},Rr)),w.createElement(cn,(0,S.Z)({},wl,da,{className:Oe,style:hn,title:Le,scope:Lo,onMouseEnter:Js,onMouseLeave:Kc,colSpan:ic!==1?ic:null,rowSpan:Ca!==1?Ca:null}),cs,Rr)}var Bo=w.memo(_r);function hs(Ye,mt,Ft,Dt,zt,Gt){var Nr=Ft[Ye]||{},An=Ft[mt]||{},Tn,cn;Nr.fixed==="left"?Tn=Dt.left[zt==="rtl"?mt:Ye]:An.fixed==="right"&&(cn=Dt.right[zt==="rtl"?Ye:mt]);var Jn=!1,wr=!1,Lo=!1,kt=!1,tr=Ft[mt+1],Ln=Ft[Ye-1],ir=!(Gt!=null&&Gt.children);if(zt==="rtl"){if(Tn!==void 0){var dr=Ln&&Ln.fixed==="left";kt=!dr&&ir}else if(cn!==void 0){var jr=tr&&tr.fixed==="right";Lo=!jr&&ir}}else if(Tn!==void 0){var Ri=tr&&tr.fixed==="left";Jn=!Ri&&ir}else if(cn!==void 0){var Te=Ln&&Ln.fixed==="right";wr=!Te&&ir}return{fixLeft:Tn,fixRight:cn,lastFixLeft:Jn,firstFixRight:wr,lastFixRight:Lo,firstFixLeft:kt,isSticky:Dt.isSticky}}var ve=w.createContext({}),So=ve;function ho(Ye){var mt=Ye.className,Ft=Ye.index,Dt=Ye.children,zt=Ye.colSpan,Gt=zt===void 0?1:zt,Nr=Ye.rowSpan,An=Ye.align,Tn=f(be,["prefixCls","direction"]),cn=Tn.prefixCls,Jn=Tn.direction,wr=w.useContext(So),Lo=wr.scrollColumnIndex,kt=wr.stickyOffsets,tr=wr.flattenColumns,Ln=wr.columns,ir=Ft+Gt-1,dr=ir+1===Lo?Gt+1:Gt,jr=hs(Ft,Ft+dr-1,tr,kt,Jn,Ln==null?void 0:Ln[Ft]);return w.createElement(Bo,(0,S.Z)({className:mt,index:Ft,component:"td",prefixCls:cn,record:null,dataIndex:null,align:An,colSpan:dr,rowSpan:Nr,render:function(){return Dt}},jr))}var go=m(91),ji=["children"];function No(Ye){var mt=Ye.children,Ft=(0,go.Z)(Ye,ji);return w.createElement("tr",Ft,mt)}function dn(Ye){var mt=Ye.children;return mt}dn.Row=No,dn.Cell=ho;var Ve=dn;function yt(Ye){var mt=Ye.children,Ft=Ye.stickyOffsets,Dt=Ye.flattenColumns,zt=Ye.columns,Gt=f(be,"prefixCls"),Nr=Dt.length-1,An=Dt[Nr],Tn=w.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:Dt,scrollColumnIndex:An!=null&&An.scrollbar?Nr:null,columns:zt}},[An,Dt,Nr,Ft,zt]);return w.createElement(So.Provider,{value:Tn},w.createElement("tfoot",{className:"".concat(Gt,"-summary")},mt))}var Ct=ke(yt),Wt=Ve,sn=m(56790),Mt=m(48555),Tt=m(5110),xt=m(79370),Ht=m(74204),Vn=m(64217);function en(Ye,mt,Ft,Dt,zt,Gt,Nr){Ye.push({record:mt,indent:Ft,index:Nr});var An=Gt(mt),Tn=zt==null?void 0:zt.has(An);if(mt&&Array.isArray(mt[Dt])&&Tn)for(var cn=0;cn1?ko-1:0),Ii=1;Ii=0;An-=1){var Tn=mt[An],cn=Ft&&Ft[An],Jn=cn&&cn[zn];if(Tn||Jn||Nr){var wr=Jn||{},Lo=wr.columnType,kt=(0,go.Z)(wr,Or);zt.unshift(w.createElement("col",(0,S.Z)({key:An,style:{width:Tn}},kt))),Nr=!0}}return w.createElement("colgroup",null,zt)}var Er=mi,ti=m(74902),di=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(Ye,mt){return(0,w.useMemo)(function(){for(var Ft=[],Dt=0;Dt1?"colgroup":"col":null,ellipsis:ir.ellipsis,align:ir.align,component:ir.title?Gt:Nr,prefixCls:Jn,key:kt[Ln]},dr,{additionalProps:jr,rowType:"header"}))}))}ao.displayName="HeaderRow";var as=ao;function Bt(Ye){var mt=[];function Ft(Nr,An){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mt[Tn]=mt[Tn]||[];var cn=An,Jn=Nr.filter(Boolean).map(function(wr){var Lo={key:wr.key,className:wr.className||"",children:wr.title,column:wr,colStart:cn},kt=1,tr=wr.children;return tr&&tr.length>0&&(kt=Ft(tr,cn,Tn+1).reduce(function(Ln,ir){return Ln+ir},0),Lo.hasSubColumns=!0),"colSpan"in wr&&(kt=wr.colSpan),"rowSpan"in wr&&(Lo.rowSpan=wr.rowSpan),Lo.colSpan=kt,Lo.colEnd=Lo.colStart+kt-1,mt[Tn].push(Lo),cn+=kt,kt});return Jn}Ft(Ye,0);for(var Dt=mt.length,zt=function(An){mt[An].forEach(function(Tn){!("rowSpan"in Tn)&&!Tn.hasSubColumns&&(Tn.rowSpan=Dt-An)})},Gt=0;Gt1&&arguments[1]!==void 0?arguments[1]:"";return typeof mt=="number"?mt:mt.endsWith("%")?Ye*parseFloat(mt)/100:null}function Di(Ye,mt,Ft){return w.useMemo(function(){if(mt&&mt>0){var Dt=0,zt=0;Ye.forEach(function(Lo){var kt=vi(mt,Lo.width);kt?Dt+=kt:zt+=1});var Gt=Math.max(mt-Dt,zt),Nr=zt,An=Gt/zt,Tn=0,cn=Ye.map(function(Lo){var kt=(0,De.Z)({},Lo),tr=vi(mt,kt.width);if(tr)kt.width=tr;else{var Ln=Math.floor(An);kt.width=Nr===1?Gt:Ln,Gt-=Ln,Nr-=1}return Tn+=kt.width,kt}),Jn=Math.max(mt,Ft);if(Tn1&&arguments[1]!==void 0?arguments[1]:"key";return Ye.filter(function(Ft){return Ft&&(0,Ce.Z)(Ft)==="object"}).reduce(function(Ft,Dt,zt){var Gt=Dt.fixed,Nr=Gt===!0?"left":Gt,An="".concat(mt,"-").concat(zt),Tn=Dt.children;return Tn&&Tn.length>0?[].concat((0,ti.Z)(Ft),(0,ti.Z)(Zi(Tn,An).map(function(cn){return(0,De.Z)({fixed:Nr},cn)}))):[].concat((0,ti.Z)(Ft),[(0,De.Z)((0,De.Z)({key:An},Dt),{},{fixed:Nr})])},[])}function Ar(Ye){for(var mt=!0,Ft=0;Ft=0;Gt-=1){var Nr=Ye[Gt];if(zt&&Nr.fixed!=="right")zt=!1;else if(!zt&&Nr.fixed==="right"){warning(!1,"Index ".concat(Gt+1," of `columns` missing `fixed='right'` prop."));break}}}function tn(Ye){return Ye.map(function(mt){var Ft=mt.fixed,Dt=(0,go.Z)(mt,Qr),zt=Ft;return Ft==="left"?zt="right":Ft==="right"&&(zt="left"),(0,De.Z)({fixed:zt},Dt)})}function Gn(Ye,mt){var Ft=Ye.prefixCls,Dt=Ye.columns,zt=Ye.children,Gt=Ye.expandable,Nr=Ye.expandedKeys,An=Ye.columnTitle,Tn=Ye.getRowKey,cn=Ye.onTriggerExpand,Jn=Ye.expandIcon,wr=Ye.rowExpandable,Lo=Ye.expandIconColumnIndex,kt=Ye.direction,tr=Ye.expandRowByClick,Ln=Ye.columnWidth,ir=Ye.fixed,dr=Ye.scrollWidth,jr=Ye.clientWidth,Ri=w.useMemo(function(){return Dt||oi(zt)},[Dt,zt]),Te=w.useMemo(function(){if(Gt){var ko,or=Ri.slice();if(!or.includes(y)){var Ii=Lo||0;Ii>=0&&or.splice(Ii,0,y)}var Gi=or.indexOf(y);or=or.filter(function(Yo,sr){return Yo!==y||sr===Gi});var cs=Ri[Gi],Ps;(ir==="left"||ir)&&!Lo?Ps="left":(ir==="right"||ir)&&Lo===Ri.length?Ps="right":Ps=cs?cs.fixed:null;var da=(ko={},(0,ge.Z)(ko,zn,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ge.Z)(ko,"title",An),(0,ge.Z)(ko,"fixed",Ps),(0,ge.Z)(ko,"className","".concat(Ft,"-row-expand-icon-cell")),(0,ge.Z)(ko,"width",Ln),(0,ge.Z)(ko,"render",function(sr,io,ws){var cl=Tn(io,ws),Dl=Nr.has(cl),Ba=wr?wr(io):!0,Ss=Jn({prefixCls:Ft,expanded:Dl,expandable:Ba,record:io,onExpand:cn});return tr?w.createElement("span",{onClick:function(rl){return rl.stopPropagation()}},Ss):Ss}),ko);return or.map(function(Yo){return Yo===y?da:Yo})}return Ri.filter(function(Yo){return Yo!==y})},[Gt,Ri,Tn,Nr,Jn,kt]),qo=w.useMemo(function(){var ko=Te;return mt&&(ko=mt(ko)),ko.length||(ko=[{render:function(){return null}}]),ko},[mt,Te,kt]),Zs=w.useMemo(function(){return kt==="rtl"?tn(Zi(qo)):Zi(qo)},[qo,kt,dr]),Sa=Di(Zs,dr,jr),ca=(0,b.Z)(Sa,2),Rs=ca[0],ma=ca[1];return[qo,Rs,ma]}var Ei=Gn;function In(Ye){var mt,Ft=Ye.prefixCls,Dt=Ye.record,zt=Ye.onExpand,Gt=Ye.expanded,Nr=Ye.expandable,An="".concat(Ft,"-row-expand-icon");if(!Nr)return w.createElement("span",{className:we()(An,"".concat(Ft,"-row-spaced"))});var Tn=function(Jn){zt(Dt,Jn),Jn.stopPropagation()};return w.createElement("span",{className:we()(An,(mt={},(0,ge.Z)(mt,"".concat(Ft,"-row-expanded"),Gt),(0,ge.Z)(mt,"".concat(Ft,"-row-collapsed"),!Gt),mt)),onClick:Tn})}function Li(Ye,mt,Ft){var Dt=[];function zt(Gt){(Gt||[]).forEach(function(Nr,An){Dt.push(mt(Nr,An)),zt(Nr[Ft])})}return zt(Ye),Dt}function nr(Ye,mt,Ft){var Dt=Kn(Ye),zt=Dt.expandIcon,Gt=Dt.expandedRowKeys,Nr=Dt.defaultExpandedRowKeys,An=Dt.defaultExpandAllRows,Tn=Dt.expandedRowRender,cn=Dt.onExpand,Jn=Dt.onExpandedRowsChange,wr=Dt.childrenColumnName,Lo=zt||In,kt=wr||"children",tr=w.useMemo(function(){return Tn?"row":Ye.expandable&&Ye.internalHooks===A&&Ye.expandable.__PARENT_RENDER_ICON__||mt.some(function(qo){return qo&&(0,Ce.Z)(qo)==="object"&&qo[kt]})?"nest":!1},[!!Tn,mt]),Ln=w.useState(function(){return Nr||(An?Li(mt,Ft,kt):[])}),ir=(0,b.Z)(Ln,2),dr=ir[0],jr=ir[1],Ri=w.useMemo(function(){return new Set(Gt||dr||[])},[Gt,dr]),Te=w.useCallback(function(qo){var Zs=Ft(qo,mt.indexOf(qo)),Sa,ca=Ri.has(Zs);ca?(Ri.delete(Zs),Sa=(0,ti.Z)(Ri)):Sa=[].concat((0,ti.Z)(Ri),[Zs]),jr(Sa),cn&&cn(!ca,qo),Jn&&Jn(Sa)},[Ft,Ri,mt,cn,Jn]);return[Dt,tr,Ri,Lo,kt,Te]}function wi(Ye,mt,Ft,Dt){var zt=Ye.map(function(Gt,Nr){return hs(Nr,Nr,Ye,mt,Ft,Dt==null?void 0:Dt[Nr])});return(0,Pt.Z)(function(){return zt},[zt],function(Gt,Nr){return!(0,N.Z)(Gt,Nr)})}function Mi(Ye){var mt=(0,w.useRef)(Ye),Ft=(0,w.useState)({}),Dt=(0,b.Z)(Ft,2),zt=Dt[1],Gt=(0,w.useRef)(null),Nr=(0,w.useRef)([]);function An(Tn){Nr.current.push(Tn);var cn=Promise.resolve();Gt.current=cn,cn.then(function(){if(Gt.current===cn){var Jn=Nr.current,wr=mt.current;Nr.current=[],Jn.forEach(function(Lo){mt.current=Lo(mt.current)}),Gt.current=null,wr!==mt.current&&zt({})}})}return(0,w.useEffect)(function(){return function(){Gt.current=null}},[]),[mt.current,An]}function Fr(Ye){var mt=(0,w.useRef)(Ye||null),Ft=(0,w.useRef)();function Dt(){window.clearTimeout(Ft.current)}function zt(Nr){mt.current=Nr,Dt(),Ft.current=window.setTimeout(function(){mt.current=null,Ft.current=void 0},100)}function Gt(){return mt.current}return(0,w.useEffect)(function(){return Dt},[]),[zt,Gt]}function qn(){var Ye=w.useState(-1),mt=(0,b.Z)(Ye,2),Ft=mt[0],Dt=mt[1],zt=w.useState(-1),Gt=(0,b.Z)(zt,2),Nr=Gt[0],An=Gt[1],Tn=w.useCallback(function(cn,Jn){Dt(cn),An(Jn)},[]);return[Ft,Nr,Tn]}var ms=m(98924),ya=(0,ms.Z)()?window:null;function ha(Ye,mt){var Ft=(0,Ce.Z)(Ye)==="object"?Ye:{},Dt=Ft.offsetHeader,zt=Dt===void 0?0:Dt,Gt=Ft.offsetSummary,Nr=Gt===void 0?0:Gt,An=Ft.offsetScroll,Tn=An===void 0?0:An,cn=Ft.getContainer,Jn=cn===void 0?function(){return ya}:cn,wr=Jn()||ya;return w.useMemo(function(){var Lo=!!Ye;return{isSticky:Lo,stickyClassName:Lo?"".concat(mt,"-sticky-holder"):"",offsetHeader:zt,offsetSummary:Nr,offsetScroll:Tn,container:wr}},[Tn,zt,Nr,mt,wr])}function Ws(Ye,mt,Ft){var Dt=(0,w.useMemo)(function(){for(var zt=[],Gt=[],Nr=0,An=0,Tn=0;Tn=wr&&(da=wr-Lo),Nr({scrollLeft:da/wr*(Jn+2)}),jr.current.x=Ii.pageX},ma=function(){if(Gt.current){var Ii=En(Gt.current).top,Gi=Ii+Gt.current.offsetHeight,cs=Tn===window?document.documentElement.scrollTop+window.innerHeight:En(Tn).top+Tn.clientHeight;Gi-(0,Ht.Z)()<=cs||Ii>=cs-An?dr(function(Ps){return(0,De.Z)((0,De.Z)({},Ps),{},{isHiddenScrollBar:!0})}):dr(function(Ps){return(0,De.Z)((0,De.Z)({},Ps),{},{isHiddenScrollBar:!1})})}},ko=function(Ii){dr(function(Gi){return(0,De.Z)((0,De.Z)({},Gi),{},{scrollLeft:Ii/Jn*wr||0})})};return w.useImperativeHandle(Ft,function(){return{setScrollLeft:ko}}),w.useEffect(function(){var or=$r(document.body,"mouseup",Sa,!1),Ii=$r(document.body,"mousemove",Rs,!1);return ma(),function(){or.remove(),Ii.remove()}},[Lo,qo]),w.useEffect(function(){var or=$r(Tn,"scroll",ma,!1),Ii=$r(window,"resize",ma,!1);return function(){or.remove(),Ii.remove()}},[Tn]),w.useEffect(function(){ir.isHiddenScrollBar||dr(function(or){var Ii=Gt.current;return Ii?(0,De.Z)((0,De.Z)({},or),{},{scrollLeft:Ii.scrollLeft/Ii.scrollWidth*Ii.clientWidth}):or})},[ir.isHiddenScrollBar]),Jn<=wr||!Lo||ir.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Ht.Z)(),width:wr,bottom:An},className:"".concat(cn,"-sticky-scroll")},w.createElement("div",{onMouseDown:ca,ref:kt,className:we()("".concat(cn,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(cn,"-sticky-scroll-bar-active"),qo)),style:{width:"".concat(Lo,"px"),transform:"translate3d(".concat(ir.scrollLeft,"px, 0, 0)")}}))},at=w.forwardRef(tt);function gt(Ye){return null}var Ne=gt;function lt(Ye){return null}var St=lt,ln="rc-table",jn=[],Cr={};function ki(){return"No Data"}function Vi(Ye){var mt,Ft=(0,De.Z)({rowKey:"key",prefixCls:ln,emptyText:ki},Ye),Dt=Ft.prefixCls,zt=Ft.className,Gt=Ft.rowClassName,Nr=Ft.style,An=Ft.data,Tn=Ft.rowKey,cn=Ft.scroll,Jn=Ft.tableLayout,wr=Ft.direction,Lo=Ft.title,kt=Ft.footer,tr=Ft.summary,Ln=Ft.caption,ir=Ft.id,dr=Ft.showHeader,jr=Ft.components,Ri=Ft.emptyText,Te=Ft.onRow,qo=Ft.onHeaderRow,Zs=Ft.internalHooks,Sa=Ft.transformColumns,ca=Ft.internalRefs,Rs=Ft.tailor,ma=Ft.getContainerWidth,ko=Ft.sticky,or=An||jn,Ii=!!or.length,Gi=Zs===A,cs=w.useCallback(function(xc,fh){return(0,dt.Z)(jr,xc)||fh},[jr]),Ps=w.useMemo(function(){return typeof Tn=="function"?Tn:function(xc){var fh=xc&&xc[Tn];return fh}},[Tn]),da=cs(["body"]),Yo=qn(),sr=(0,b.Z)(Yo,3),io=sr[0],ws=sr[1],cl=sr[2],Dl=nr(Ft,or,Ps),Ba=(0,b.Z)(Dl,6),Ss=Ba[0],wl=Ba[1],rl=Ba[2],mc=Ba[3],gl=Ba[4],ic=Ba[5],Ca=cn==null?void 0:cn.x,qu=w.useState(0),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Js=Ei((0,De.Z)((0,De.Z)((0,De.Z)({},Ft),Ss),{},{expandable:!!Ss.expandedRowRender,columnTitle:Ss.columnTitle,expandedKeys:rl,getRowKey:Ps,onTriggerExpand:ic,expandIcon:mc,expandIconColumnIndex:Ss.expandIconColumnIndex,direction:wr,scrollWidth:Gi&&Rs&&typeof Ca=="number"?Ca:null,clientWidth:su}),Gi?Sa:null),Kc=(0,b.Z)(Js,3),Le=Kc[0],Oe=Kc[1],et=Kc[2],hn=et!=null?et:Ca,Rr=w.useMemo(function(){return{columns:Le,flattenColumns:Oe}},[Le,Oe]),wn=w.useRef(),li=w.useRef(),Fi=w.useRef(),_s=w.useRef(),Ea=w.useRef(),Aa=w.useState(!1),bl=(0,b.Z)(Aa,2),Ql=bl[0],Ju=bl[1],As=w.useState(!1),Xa=(0,b.Z)(As,2),vr=Xa[0],qa=Xa[1],Ta=Mi(new Map),Du=(0,b.Z)(Ta,2),Wc=Du[0],os=Du[1],Mo=yn(Oe),ks=Mo.map(function(xc){return Wc.get(xc)}),Da=w.useMemo(function(){return ks},[ks.join("_")]),Ra=Ua(Da,Oe.length,wr),js=cn&&Bn(cn.y),bs=cn&&Bn(hn)||!!Ss.fixed,Qi=bs&&Oe.some(function(xc){var fh=xc.fixed;return fh}),ar=w.useRef(),zr=ha(ko,Dt),Ci=zr.isSticky,gs=zr.offsetHeader,Es=zr.offsetSummary,Pl=zr.offsetScroll,ta=zr.stickyClassName,yl=zr.container,mu=w.useMemo(function(){return tr==null?void 0:tr(or)},[tr,or]),hc=(js||Ci)&&w.isValidElement(mu)&&mu.type===Ve&&mu.props.fixed,ud,Wo,Wd;js&&(Wo={overflowY:"scroll",maxHeight:cn.y}),bs&&(ud={overflowX:"auto"},js||(Wo={overflowY:"hidden"}),Wd={width:hn===!0?"auto":hn,minWidth:"100%"});var pd=w.useCallback(function(xc,fh){(0,Tt.Z)(wn.current)&&os(function(Gd){if(Gd.get(xc)!==fh){var _=new Map(Gd);return _.set(xc,fh),_}return Gd})},[]),up=Fr(null),eg=(0,b.Z)(up,2),Gg=eg[0],Pm=eg[1];function Nm(xc,fh){fh&&(typeof fh=="function"?fh(xc):fh.scrollLeft!==xc&&(fh.scrollLeft=xc,fh.scrollLeft!==xc&&setTimeout(function(){fh.scrollLeft=xc},0)))}var Hm=(0,z.Z)(function(xc){var fh=xc.currentTarget,Gd=xc.scrollLeft,_=wr==="rtl",R=typeof Gd=="number"?Gd:fh.scrollLeft,Z=fh||Cr;if(!Pm()||Pm()===Z){var ue;Gg(Z),Nm(R,li.current),Nm(R,Fi.current),Nm(R,Ea.current),Nm(R,(ue=ar.current)===null||ue===void 0?void 0:ue.setScrollLeft)}var Pe=fh||li.current;if(Pe){var Qe=Pe.scrollWidth,wt=Pe.clientWidth;if(Qe===wt){Ju(!1),qa(!1);return}_?(Ju(-R0)):(Ju(R>0),qa(R1?Ln-Ii:0,cs=(0,De.Z)((0,De.Z)((0,De.Z)({},Sa),Tn),{},{flex:"0 0 ".concat(Ii,"px"),width:"".concat(Ii,"px"),marginRight:Gi,pointerEvents:"auto"}),Ps=w.useMemo(function(){return Jn?ko<=1:Rs===0||ko===0||ko>1},[ko,Rs,Jn]);Ps?cs.visibility="hidden":Jn&&(cs.height=wr==null?void 0:wr(ko));var da=Ps?function(){return null}:Lo,Yo={};return(ko===0||Rs===0)&&(Yo.rowSpan=1,Yo.colSpan=1),w.createElement(Bo,(0,S.Z)({className:we()(tr,cn),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:"div",prefixCls:mt.prefixCls,key:Ri,record:An,index:Gt,renderIndex:Nr,dataIndex:kt,render:da,shouldCellUpdate:Ft.shouldCellUpdate},Te,{appendNode:qo,additionalProps:(0,De.Z)((0,De.Z)({},Zs),{},{style:cs},Yo)}))}var va=oa,Bl=["data","index","className","rowKey","style","extra","getHeight"],Fa=w.forwardRef(function(Ye,mt){var Ft=Ye.data,Dt=Ye.index,zt=Ye.className,Gt=Ye.rowKey,Nr=Ye.style,An=Ye.extra,Tn=Ye.getHeight,cn=(0,go.Z)(Ye,Bl),Jn=Ft.record,wr=Ft.indent,Lo=Ft.index,kt=f(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),tr=kt.scrollX,Ln=kt.flattenColumns,ir=kt.prefixCls,dr=kt.fixColumn,jr=kt.componentWidth,Ri=Kr(Jn,Gt,Dt,wr),Te=Ri.rowSupportExpand,qo=Ri.expanded,Zs=Ri.rowProps,Sa=Ri.expandedRowRender,ca=Ri.expandedRowClassName,Rs;if(Te&&qo){var ma=Sa(Jn,Dt,wr+1,qo),ko=ca==null?void 0:ca(Jn,Dt,wr),or={};dr&&(or={style:(0,ge.Z)({},"--virtual-width","".concat(jr,"px"))});var Ii="".concat(ir,"-expanded-row-cell");Rs=w.createElement("div",{className:we()("".concat(ir,"-expanded-row"),"".concat(ir,"-expanded-row-level-").concat(wr+1),ko)},w.createElement(Bo,{component:"div",prefixCls:ir,className:we()(Ii,(0,ge.Z)({},"".concat(Ii,"-fixed"),dr)),additionalProps:or},ma))}var Gi=(0,De.Z)((0,De.Z)({},Nr),{},{width:tr});An&&(Gi.position="absolute",Gi.pointerEvents="none");var cs=w.createElement("div",(0,S.Z)({},Zs,cn,{ref:Te?null:mt,className:we()(zt,"".concat(ir,"-row"),Zs==null?void 0:Zs.className,(0,ge.Z)({},"".concat(ir,"-row-extra"),An)),style:(0,De.Z)((0,De.Z)({},Gi),Zs==null?void 0:Zs.style)}),Ln.map(function(Ps,da){return w.createElement(va,{key:da,rowInfo:Ri,column:Ps,colIndex:da,indent:wr,index:Dt,renderIndex:Lo,record:Jn,inverse:An,getHeight:Tn})}));return Te?w.createElement("div",{ref:mt},cs,Rs):cs}),ml=ke(Fa),la=ml,Nl=w.forwardRef(function(Ye,mt){var Ft=Ye.data,Dt=Ye.onScroll,zt=f(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Gt=zt.flattenColumns,Nr=zt.onColumnResize,An=zt.getRowKey,Tn=zt.expandedKeys,cn=zt.prefixCls,Jn=zt.childrenColumnName,wr=zt.emptyNode,Lo=zt.scrollX,kt=f(_a),tr=kt.sticky,Ln=kt.scrollY,ir=kt.listItemHeight,dr=w.useRef(),jr=fr(Ft,Jn,Tn,An),Ri=w.useMemo(function(){var ko=0;return Gt.map(function(or){var Ii=or.width,Gi=or.key;return ko+=Ii,[Gi,Ii,ko]})},[Gt]),Te=w.useMemo(function(){return Ri.map(function(ko){return ko[2]})},[Ri]);w.useEffect(function(){Ri.forEach(function(ko){var or=(0,b.Z)(ko,2),Ii=or[0],Gi=or[1];Nr(Ii,Gi)})},[Ri]),w.useImperativeHandle(mt,function(){var ko={};return Object.defineProperty(ko,"scrollLeft",{get:function(){var Ii;return((Ii=dr.current)===null||Ii===void 0?void 0:Ii.getScrollInfo().x)||0},set:function(Ii){var Gi;(Gi=dr.current)===null||Gi===void 0||Gi.scrollTo({left:Ii})}}),ko});var qo=function(or,Ii){var Gi,cs=(Gi=jr[Ii])===null||Gi===void 0?void 0:Gi.record,Ps=or.onCell;if(Ps){var da,Yo=Ps(cs,Ii);return(da=Yo==null?void 0:Yo.rowSpan)!==null&&da!==void 0?da:1}return 1},Zs=function(or){var Ii=or.start,Gi=or.end,cs=or.getSize,Ps=or.offsetY;if(Gi<0)return null;for(var da=Gt.filter(function(qu){return qo(qu,Ii)===0}),Yo=Ii,sr=function($l){if(da=da.filter(function(su){return qo(su,$l)===0}),!da.length)return Yo=$l,"break"},io=Ii;io>=0;io-=1){var ws=sr(io);if(ws==="break")break}for(var cl=Gt.filter(function(qu){return qo(qu,Gi)!==1}),Dl=Gi,Ba=function($l){if(cl=cl.filter(function(su){return qo(su,$l)!==1}),!cl.length)return Dl=Math.max($l-1,Gi),"break"},Ss=Gi;Ss1})&&rl.push($l)},gl=Yo;gl<=Dl;gl+=1)var ic=mc(gl);var Ca=rl.map(function(qu){var $l=jr[qu],su=An($l.record,qu),tu=function(Le){var Oe=qu+Le-1,et=An(jr[Oe].record,Oe),hn=cs(su,et);return hn.bottom-hn.top},Js=cs(su);return w.createElement(la,{key:qu,data:$l,rowKey:su,index:qu,style:{top:-Ps+Js.top},extra:!0,getHeight:tu})});return Ca},Sa=w.useMemo(function(){return{columnsOffset:Te}},[Te]),ca="".concat(cn,"-tbody"),Rs;if(jr.length){var ma={};tr&&(ma.position="sticky",ma.bottom=0,(0,Ce.Z)(tr)==="object"&&tr.offsetScroll&&(ma.bottom=tr.offsetScroll)),Rs=w.createElement(Bs.Z,{fullHeight:!1,ref:dr,styles:{horizontalScrollBar:ma},className:we()(ca,"".concat(ca,"-virtual")),height:Ln,itemHeight:ir||24,data:jr,itemKey:function(or){return An(or.record)},scrollWidth:Lo,onVirtualScroll:function(or){var Ii=or.x;Dt({scrollLeft:Ii})},extraRender:Zs},function(ko,or,Ii){var Gi=An(ko.record,or);return w.createElement(la,(0,S.Z)({data:ko,rowKey:Gi,index:or},Ii))})}else Rs=w.createElement("div",{className:we()("".concat(cn,"-placeholder"))},w.createElement(Bo,{component:"div",prefixCls:cn},wr));return w.createElement(oo.Provider,{value:Sa},Rs)}),vs=ke(Nl),Hi=vs,to=function(mt,Ft){var Dt=Ft.ref,zt=Ft.onScroll;return w.createElement(Hi,{ref:Dt,data:mt,onScroll:zt})};function sa(Ye){var mt=Ye.columns,Ft=Ye.scroll,Dt=Ye.sticky,zt=Ye.prefixCls,Gt=zt===void 0?ln:zt,Nr=Ye.className,An=Ye.listItemHeight,Tn=Ft||{},cn=Tn.x,Jn=Tn.y;typeof cn!="number"&&(cn=1),typeof Jn!="number"&&(Jn=500);var wr=w.useMemo(function(){return{sticky:Dt,scrollY:Jn,listItemHeight:An}},[Dt,Jn,An]);return w.createElement(_a.Provider,{value:wr},w.createElement(Ns,(0,S.Z)({},Ye,{className:we()(Nr,"".concat(Gt,"-virtual")),scroll:(0,De.Z)((0,De.Z)({},Ft),{},{x:cn}),components:{body:to},columns:mt,internalHooks:A,tailor:!0})))}function Cs(Ye){return fe(sa,Ye)}var Ka=Cs(),Wu=null;function rc(Ye){return null}var Pc=rc;function vo(Ye){return null}var eo=vo,ds=m(98423),Wn=m(75164);function yr(Ye,mt,Ft,Dt){const zt=Ft-mt;return Ye/=Dt/2,Ye<1?zt/2*Ye*Ye*Ye+mt:zt/2*((Ye-=2)*Ye*Ye+2)+mt}function ai(Ye){return Ye!=null&&Ye===Ye.window}function hi(Ye,mt){var Ft,Dt;if(typeof window=="undefined")return 0;const zt=mt?"scrollTop":"scrollLeft";let Gt=0;return ai(Ye)?Gt=Ye[mt?"pageYOffset":"pageXOffset"]:Ye instanceof Document?Gt=Ye.documentElement[zt]:(Ye instanceof HTMLElement||Ye)&&(Gt=Ye[zt]),Ye&&!ai(Ye)&&typeof Gt!="number"&&(Gt=(Dt=((Ft=Ye.ownerDocument)!==null&&Ft!==void 0?Ft:Ye).documentElement)===null||Dt===void 0?void 0:Dt[zt]),Gt}function Ji(Ye){let mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:Dt,duration:zt=450}=mt,Gt=Ft(),Nr=hi(Gt,!0),An=Date.now(),Tn=()=>{const Jn=Date.now()-An,wr=yr(Jn>zt?zt:Jn,Nr,Ye,zt);ai(Gt)?Gt.scrollTo(window.pageXOffset,wr):Gt instanceof Document||Gt.constructor.name==="HTMLDocument"?Gt.documentElement.scrollTop=wr:Gt.scrollTop=wr,Jn=0||An.relatedTarget.className.indexOf("".concat(wr,"-item"))>=0))&&Jn(Dt.getValidValue()))},Dt.go=function(An){var Tn=Dt.state.goInputText;Tn!==""&&(An.keyCode===Il.ENTER||An.type==="click")&&(Dt.setState({goInputText:""}),Dt.props.quickGo(Dt.getValidValue()))},Dt}return(0,Eu.Z)(Ft,[{key:"getPageSizeOptions",value:function(){var zt=this.props,Gt=zt.pageSize,Nr=zt.pageSizeOptions;return Nr.some(function(An){return An.toString()===Gt.toString()})?Nr:Nr.concat([Gt.toString()]).sort(function(An,Tn){var cn=Number.isNaN(Number(An))?0:Number(An),Jn=Number.isNaN(Number(Tn))?0:Number(Tn);return cn-Jn})}},{key:"render",value:function(){var zt=this,Gt=this.props,Nr=Gt.pageSize,An=Gt.locale,Tn=Gt.rootPrefixCls,cn=Gt.changeSize,Jn=Gt.quickGo,wr=Gt.goButton,Lo=Gt.selectComponentClass,kt=Gt.buildOptionText,tr=Gt.selectPrefixCls,Ln=Gt.disabled,ir=this.state.goInputText,dr="".concat(Tn,"-options"),jr=Lo,Ri=null,Te=null,qo=null;if(!cn&&!Jn)return null;var Zs=this.getPageSizeOptions();if(cn&&jr){var Sa=Zs.map(function(ca,Rs){return w.createElement(jr.Option,{key:Rs,value:ca.toString()},(kt||zt.buildOptionText)(ca))});Ri=w.createElement(jr,{disabled:Ln,prefixCls:tr,showSearch:!1,className:"".concat(dr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Nr||Zs[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Rs){return Rs.parentNode},"aria-label":An.page_size,defaultOpen:!1},Sa)}return Jn&&(wr&&(qo=typeof wr=="boolean"?w.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ln,className:"".concat(dr,"-quick-jumper-button")},An.jump_to_confirm):w.createElement("span",{onClick:this.go,onKeyUp:this.go},wr)),Te=w.createElement("div",{className:"".concat(dr,"-quick-jumper")},An.jump_to,w.createElement("input",{disabled:Ln,type:"text",value:ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":An.page}),An.page,qo)),w.createElement("li",{className:"".concat(dr)},Ri,Te)}}]),Ft}(w.Component);vl.defaultProps={pageSizeOptions:["10","20","50","100"]};var fu=vl,Fu=function(mt){var Ft,Dt=mt.rootPrefixCls,zt=mt.page,Gt=mt.active,Nr=mt.className,An=mt.showTitle,Tn=mt.onClick,cn=mt.onKeyPress,Jn=mt.itemRender,wr="".concat(Dt,"-item"),Lo=we()(wr,"".concat(wr,"-").concat(zt),(Ft={},(0,ge.Z)(Ft,"".concat(wr,"-active"),Gt),(0,ge.Z)(Ft,"".concat(wr,"-disabled"),!zt),(0,ge.Z)(Ft,mt.className,Nr),Ft)),kt=function(){Tn(zt)},tr=function(dr){cn(dr,Tn,zt)},Ln=Jn(zt,"page",w.createElement("a",{rel:"nofollow"},zt));return Ln?w.createElement("li",{title:An?zt.toString():null,className:Lo,onClick:kt,onKeyPress:tr,tabIndex:0},Ln):null},lc=Fu;function Ic(){}function Uc(Ye){var mt=Number(Ye);return typeof mt=="number"&&!Number.isNaN(mt)&&isFinite(mt)&&Math.floor(mt)===mt}var zd=function(mt,Ft,Dt){return Dt};function th(Ye,mt,Ft){var Dt=typeof Ye=="undefined"?mt.pageSize:Ye;return Math.floor((Ft.total-1)/Dt)+1}var Xd=function(Ye){(0,ls.Z)(Ft,Ye);var mt=(0,Ks.Z)(Ft);function Ft(Dt){var zt;(0,Cn.Z)(this,Ft),zt=mt.call(this,Dt),zt.paginationNode=w.createRef(),zt.getJumpPrevPage=function(){return Math.max(1,zt.state.current-(zt.props.showLessItems?3:5))},zt.getJumpNextPage=function(){return Math.min(th(void 0,zt.state,zt.props),zt.state.current+(zt.props.showLessItems?3:5))},zt.getItemIcon=function(cn,Jn){var wr=zt.props.prefixCls,Lo=cn||w.createElement("button",{type:"button","aria-label":Jn,className:"".concat(wr,"-item-link")});return typeof cn=="function"&&(Lo=w.createElement(cn,(0,De.Z)({},zt.props))),Lo},zt.isValid=function(cn){var Jn=zt.props.total;return Uc(cn)&&cn!==zt.state.current&&Uc(Jn)&&Jn>0},zt.shouldDisplayQuickJumper=function(){var cn=zt.props,Jn=cn.showQuickJumper,wr=cn.total,Lo=zt.state.pageSize;return wr<=Lo?!1:Jn},zt.handleKeyDown=function(cn){(cn.keyCode===Il.ARROW_UP||cn.keyCode===Il.ARROW_DOWN)&&cn.preventDefault()},zt.handleKeyUp=function(cn){var Jn=zt.getValidValue(cn),wr=zt.state.currentInputValue;Jn!==wr&&zt.setState({currentInputValue:Jn}),cn.keyCode===Il.ENTER?zt.handleChange(Jn):cn.keyCode===Il.ARROW_UP?zt.handleChange(Jn-1):cn.keyCode===Il.ARROW_DOWN&&zt.handleChange(Jn+1)},zt.handleBlur=function(cn){var Jn=zt.getValidValue(cn);zt.handleChange(Jn)},zt.changePageSize=function(cn){var Jn=zt.state.current,wr=th(cn,zt.state,zt.props);Jn=Jn>wr?wr:Jn,wr===0&&(Jn=zt.state.current),typeof cn=="number"&&("pageSize"in zt.props||zt.setState({pageSize:cn}),"current"in zt.props||zt.setState({current:Jn,currentInputValue:Jn})),zt.props.onShowSizeChange(Jn,cn),"onChange"in zt.props&&zt.props.onChange&&zt.props.onChange(Jn,cn)},zt.handleChange=function(cn){var Jn=zt.props,wr=Jn.disabled,Lo=Jn.onChange,kt=zt.state,tr=kt.pageSize,Ln=kt.current,ir=kt.currentInputValue;if(zt.isValid(cn)&&!wr){var dr=th(void 0,zt.state,zt.props),jr=cn;return cn>dr?jr=dr:cn<1&&(jr=1),"current"in zt.props||zt.setState({current:jr}),jr!==ir&&zt.setState({currentInputValue:jr}),Lo(jr,tr),jr}return Ln},zt.prev=function(){zt.hasPrev()&&zt.handleChange(zt.state.current-1)},zt.next=function(){zt.hasNext()&&zt.handleChange(zt.state.current+1)},zt.jumpPrev=function(){zt.handleChange(zt.getJumpPrevPage())},zt.jumpNext=function(){zt.handleChange(zt.getJumpNextPage())},zt.hasPrev=function(){return zt.state.current>1},zt.hasNext=function(){return zt.state.current2?wr-2:0),kt=2;kt=Nr?Tn=Nr:Tn=Number(Gt),Tn}},{key:"getShowSizeChanger",value:function(){var zt=this.props,Gt=zt.showSizeChanger,Nr=zt.total,An=zt.totalBoundaryShowSizeChanger;return typeof Gt!="undefined"?Gt:Nr>An}},{key:"render",value:function(){var zt=this.props,Gt=zt.prefixCls,Nr=zt.className,An=zt.style,Tn=zt.disabled,cn=zt.hideOnSinglePage,Jn=zt.total,wr=zt.locale,Lo=zt.showQuickJumper,kt=zt.showLessItems,tr=zt.showTitle,Ln=zt.showTotal,ir=zt.simple,dr=zt.itemRender,jr=zt.showPrevNextJumpers,Ri=zt.jumpPrevIcon,Te=zt.jumpNextIcon,qo=zt.selectComponentClass,Zs=zt.selectPrefixCls,Sa=zt.pageSizeOptions,ca=this.state,Rs=ca.current,ma=ca.pageSize,ko=ca.currentInputValue;if(cn===!0&&Jn<=ma)return null;var or=th(void 0,this.state,this.props),Ii=[],Gi=null,cs=null,Ps=null,da=null,Yo=null,sr=Lo&&Lo.goButton,io=kt?1:2,ws=Rs-1>0?Rs-1:0,cl=Rs+1Jn?Jn:Rs*ma]));if(ir){sr&&(typeof sr=="boolean"?Yo=w.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wr.jump_to_confirm):Yo=w.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},sr),Yo=w.createElement("li",{title:tr?"".concat(wr.jump_to).concat(Rs,"/").concat(or):null,className:"".concat(Gt,"-simple-pager")},Yo));var Ss=this.renderPrev(ws);return w.createElement("ul",(0,S.Z)({className:we()(Gt,"".concat(Gt,"-simple"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Tn),Nr),style:An,ref:this.paginationNode},Dl),Ba,Ss?w.createElement("li",{title:tr?wr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Gt,"-prev"),(0,ge.Z)({},"".concat(Gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ss):null,w.createElement("li",{title:tr?"".concat(Rs,"/").concat(or):null,className:"".concat(Gt,"-simple-pager")},w.createElement("input",{type:"text",value:ko,disabled:Tn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),w.createElement("span",{className:"".concat(Gt,"-slash")},"/"),or),w.createElement("li",{title:tr?wr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:we()("".concat(Gt,"-next"),(0,ge.Z)({},"".concat(Gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(cl)),Yo)}if(or<=3+io*2){var wl={locale:wr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:tr,itemRender:dr};or||Ii.push(w.createElement(lc,(0,S.Z)({},wl,{key:"noPager",page:1,className:"".concat(Gt,"-item-disabled")})));for(var rl=1;rl<=or;rl+=1){var mc=Rs===rl;Ii.push(w.createElement(lc,(0,S.Z)({},wl,{key:rl,page:rl,active:mc})))}}else{var gl=kt?wr.prev_3:wr.prev_5,ic=kt?wr.next_3:wr.next_5,Ca=dr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ri,"prev page")),qu=dr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Te,"next page"));jr&&(Gi=Ca?w.createElement("li",{title:tr?gl:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:we()("".concat(Gt,"-jump-prev"),(0,ge.Z)({},"".concat(Gt,"-jump-prev-custom-icon"),!!Ri))},Ca):null,cs=qu?w.createElement("li",{title:tr?ic:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:we()("".concat(Gt,"-jump-next"),(0,ge.Z)({},"".concat(Gt,"-jump-next-custom-icon"),!!Te))},qu):null),da=w.createElement(lc,{locale:wr,last:!0,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:or,page:or,active:!1,showTitle:tr,itemRender:dr}),Ps=w.createElement(lc,{locale:wr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:tr,itemRender:dr});var $l=Math.max(1,Rs-io),su=Math.min(Rs+io,or);Rs-1<=io&&(su=1+io*2),or-Rs<=io&&($l=or-io*2);for(var tu=$l;tu<=su;tu+=1){var Js=Rs===tu;Ii.push(w.createElement(lc,{locale:wr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tu,page:tu,active:Js,showTitle:tr,itemRender:dr}))}Rs-1>=io*2&&Rs!==1+2&&(Ii[0]=(0,w.cloneElement)(Ii[0],{className:"".concat(Gt,"-item-after-jump-prev")}),Ii.unshift(Gi)),or-Rs>=io*2&&Rs!==or-2&&(Ii[Ii.length-1]=(0,w.cloneElement)(Ii[Ii.length-1],{className:"".concat(Gt,"-item-before-jump-next")}),Ii.push(cs)),$l!==1&&Ii.unshift(Ps),su!==or&&Ii.push(da)}var Kc=!this.hasPrev()||!or,Le=!this.hasNext()||!or,Oe=this.renderPrev(ws),et=this.renderNext(cl);return w.createElement("ul",(0,S.Z)({className:we()(Gt,Nr,(0,ge.Z)({},"".concat(Gt,"-disabled"),Tn)),style:An,ref:this.paginationNode},Dl),Ba,Oe?w.createElement("li",{title:tr?wr.prev_page:null,onClick:this.prev,tabIndex:Kc?null:0,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Gt,"-prev"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Kc)),"aria-disabled":Kc},Oe):null,Ii,et?w.createElement("li",{title:tr?wr.next_page:null,onClick:this.next,tabIndex:Le?null:0,onKeyPress:this.runIfEnterNext,className:we()("".concat(Gt,"-next"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Le)),"aria-disabled":Le},et):null,w.createElement(fu,{disabled:Tn,locale:wr,rootPrefixCls:Gt,selectComponentClass:qo,selectPrefixCls:Zs,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Rs,pageSize:ma,pageSizeOptions:Sa,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:sr}))}}],[{key:"getDerivedStateFromProps",value:function(zt,Gt){var Nr={};if("current"in zt&&(Nr.current=zt.current,zt.current!==Gt.current&&(Nr.currentInputValue=Nr.current)),"pageSize"in zt&&zt.pageSize!==Gt.pageSize){var An=Gt.current,Tn=th(zt.pageSize,Gt,zt);An=An>Tn?Tn:An,"current"in zt||(Nr.current=An,Nr.currentInputValue=An),Nr.pageSize=zt.pageSize}return Nr}}]),Ft}(w.Component);Xd.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ic,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ic,locale:El,style:{},itemRender:zd,totalBoundaryShowSizeChanger:50};var sd=Xd,Mu=m(62906),Fc=m(10110),hd=m(34041);const vd=Ye=>w.createElement(hd.Z,Object.assign({},Ye,{showSearch:!0,size:"small"})),Yd=Ye=>w.createElement(hd.Z,Object.assign({},Ye,{showSearch:!0,size:"middle"}));vd.Option=hd.Z.Option,Yd.Option=hd.Z.Option;var nh=m(47673),jd=m(14747),yh=m(67968),id=m(45503);const nd=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${mt}-disabled`]:{cursor:"not-allowed",[`${mt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ye.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ye.colorBorder,backgroundColor:Ye.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ye.itemActiveBgDisabled},a:{color:Ye.itemActiveColorDisabled}}},[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${mt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${mt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${mt}-jump-prev, ${mt}-jump-next`]:{[`${mt}-item-link-icon`]:{opacity:0},[`${mt}-item-ellipsis`]:{opacity:1}}},[`&${mt}-simple`]:{[`${mt}-prev, ${mt}-next`]:{[`&${mt}-disabled ${mt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pf=Ye=>{const{componentCls:mt}=Ye;return{[`&${mt}-mini ${mt}-total-text, &${mt}-mini ${mt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini ${mt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM-2}px`},[`&${mt}-mini:not(${mt}-disabled) ${mt}-item:not(${mt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},[`&${mt}-mini ${mt}-prev, &${mt}-mini ${mt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini:not(${mt}-disabled)`]:{[`${mt}-prev, ${mt}-next`]:{[`&:hover ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${mt}-disabled:hover ${mt}-item-link`]:{backgroundColor:"transparent"}}},[` - &${mt}-mini ${mt}-prev ${mt}-item-link, - &${mt}-mini ${mt}-next ${mt}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}},[`&${mt}-mini ${mt}-jump-prev, &${mt}-mini ${mt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini ${mt}-options`]:{marginInlineStart:Ye.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ye.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nh.x0)(Ye)),{width:Ye.paginationMiniQuickJumperInputWidth,height:Ye.controlHeightSM})}}}},Jd=Ye=>{const{componentCls:mt}=Ye;return{[` - &${mt}-simple ${mt}-prev, - &${mt}-simple ${mt}-next - `]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,verticalAlign:"top",[`${mt}-item-link`]:{height:Ye.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive},"&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}}},[`&${mt}-simple ${mt}-simple-pager`]:{display:"inline-block",height:Ye.itemSizeSM,marginInlineEnd:Ye.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ye.marginXS,padding:`0 ${Ye.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ye.itemInputBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadius,outline:"none",transition:`border-color ${Ye.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ye.colorPrimary},"&:focus":{borderColor:Ye.colorPrimaryHover,boxShadow:`${Ye.inputOutlineOffset}px 0 ${Ye.controlOutlineWidth}px ${Ye.controlOutline}`},"&[disabled]":{color:Ye.colorTextDisabled,backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,cursor:"not-allowed"}}}}},cc=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-jump-prev, ${mt}-jump-next`]:{outline:0,[`${mt}-item-container`]:{position:"relative",[`${mt}-item-link-icon`]:{color:Ye.colorPrimary,fontSize:Ye.fontSizeSM,opacity:0,transition:`all ${Ye.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${mt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ye.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ye.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ye.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ye.motionDurationMid}`}},"&:hover":{[`${mt}-item-link-icon`]:{opacity:1},[`${mt}-item-ellipsis`]:{opacity:0}}},[` - ${mt}-prev, - ${mt}-jump-prev, - ${mt}-jump-next - `]:{marginInlineEnd:Ye.marginXS},[` - ${mt}-prev, - ${mt}-next, - ${mt}-jump-prev, - ${mt}-jump-next - `]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,color:Ye.colorText,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ye.borderRadius,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`},[`${mt}-prev, ${mt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${mt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ye.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:"none",transition:`all ${Ye.motionDurationMid}`},[`&:hover ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${mt}-disabled:hover`]:{[`${mt}-item-link`]:{backgroundColor:"transparent"}}},[`${mt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${mt}-options`]:{display:"inline-block",marginInlineStart:Ye.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ye.controlHeight,marginInlineStart:Ye.marginXS,lineHeight:`${Ye.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nh.ik)(Ye)),{width:Ye.controlHeightLG*1.25,height:Ye.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ye.marginXS,marginInlineEnd:Ye.marginXS})}}}},Yc=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-item`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,marginInlineEnd:Ye.marginXS,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ye.paginationItemPaddingInline}px`,color:Ye.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${mt}-item-active)`]:{"&:hover":{transition:`all ${Ye.motionDurationMid}`,backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},"&-active":{fontWeight:Ye.fontWeightStrong,backgroundColor:Ye.itemActiveBg,borderColor:Ye.colorPrimary,a:{color:Ye.colorPrimary},"&:hover":{borderColor:Ye.colorPrimaryHover},"&:hover a":{color:Ye.colorPrimaryHover}}}}},jh=Ye=>{const{componentCls:mt}=Ye;return{[mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${mt}-total-text`]:{display:"inline-block",height:Ye.itemSize,marginInlineEnd:Ye.marginXS,lineHeight:`${Ye.itemSize-2}px`,verticalAlign:"middle"}}),Yc(Ye)),cc(Ye)),Jd(Ye)),Pf(Ye)),nd(Ye)),{[`@media only screen and (max-width: ${Ye.screenLG}px)`]:{[`${mt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${mt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},uf=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}${mt}-disabled:not(${mt}-mini)`]:{"&, &:hover":{[`${mt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${mt}-item-link`]:{borderColor:Ye.colorBorder}},[`${mt}-item, ${mt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${mt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${mt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${mt}-prev, ${mt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${mt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${mt}:not(${mt}-mini)`]:{[`${mt}-prev, ${mt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${mt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${mt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${mt}-disabled`]:{[`${mt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${mt}-item`]:{backgroundColor:Ye.itemBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${mt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}},Lh=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}:not(${mt}-disabled)`]:{[`${mt}-item`]:Object.assign({},(0,jd.Qy)(Ye)),[`${mt}-jump-prev, ${mt}-jump-next`]:{"&:focus-visible":Object.assign({[`${mt}-item-link-icon`]:{opacity:1},[`${mt}-item-ellipsis`]:{opacity:0}},(0,jd.oN)(Ye))},[`${mt}-prev, ${mt}-next`]:{[`&:focus-visible ${mt}-item-link`]:Object.assign({},(0,jd.oN)(Ye))}}}};var Sf=(0,yh.Z)("Pagination",Ye=>{const mt=(0,id.TS)(Ye,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ye.marginXXS/2,paginationMiniQuickJumperInputWidth:Ye.controlHeightLG*1.1,paginationItemPaddingInline:Ye.marginXXS*1.5,paginationEllipsisLetterSpacing:Ye.marginXXS/2,paginationSlashMarginInlineStart:Ye.marginXXS,paginationSlashMarginInlineEnd:Ye.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nh.e5)(Ye),(0,nh.TM)(Ye));return[jh(mt),Lh(mt),Ye.wireframe&&uf(mt)]},Ye=>({itemBg:Ye.colorBgContainer,itemSize:Ye.controlHeight,itemSizeSM:Ye.controlHeightSM,itemActiveBg:Ye.colorBgContainer,itemLinkBg:Ye.colorBgContainer,itemActiveColorDisabled:Ye.colorTextDisabled,itemActiveBgDisabled:Ye.controlItemBgActiveDisabled,itemInputBg:Ye.colorBgContainer,miniOptionsSizeChangerTop:0})),xp=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Dt=Object.getOwnPropertySymbols(Ye);zt{const{prefixCls:mt,selectPrefixCls:Ft,className:Dt,rootClassName:zt,style:Gt,size:Nr,locale:An,selectComponentClass:Tn,responsive:cn,showSizeChanger:Jn}=Ye,wr=xp(Ye,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Lo}=(0,$a.Z)(cn),{getPrefixCls:kt,direction:tr,pagination:Ln={}}=w.useContext(Pi.E_),ir=kt("pagination",mt),[dr,jr]=Sf(ir),Ri=Jn!=null?Jn:Ln.showSizeChanger,Te=w.useMemo(()=>{const or=w.createElement("span",{className:`${ir}-item-ellipsis`},"\u2022\u2022\u2022"),Ii=w.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},tr==="rtl"?w.createElement(au.Z,null):w.createElement(vu.Z,null)),Gi=w.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},tr==="rtl"?w.createElement(vu.Z,null):w.createElement(au.Z,null)),cs=w.createElement("a",{className:`${ir}-item-link`},w.createElement("div",{className:`${ir}-item-container`},tr==="rtl"?w.createElement(Jl,{className:`${ir}-item-link-icon`}):w.createElement(ea,{className:`${ir}-item-link-icon`}),or)),Ps=w.createElement("a",{className:`${ir}-item-link`},w.createElement("div",{className:`${ir}-item-container`},tr==="rtl"?w.createElement(ea,{className:`${ir}-item-link-icon`}):w.createElement(Jl,{className:`${ir}-item-link-icon`}),or));return{prevIcon:Ii,nextIcon:Gi,jumpPrevIcon:cs,jumpNextIcon:Ps}},[tr,ir]),[qo]=(0,Fc.Z)("Pagination",Mu.Z),Zs=Object.assign(Object.assign({},qo),An),Sa=(0,pa.Z)(Nr),ca=Sa==="small"||!!(Lo&&!Sa&&cn),Rs=kt("select",Ft),ma=we()({[`${ir}-mini`]:ca,[`${ir}-rtl`]:tr==="rtl"},Ln==null?void 0:Ln.className,Dt,zt,jr),ko=Object.assign(Object.assign({},Ln==null?void 0:Ln.style),Gt);return dr(w.createElement(sd,Object.assign({},Te,wr,{style:ko,prefixCls:ir,selectPrefixCls:Rs,className:ma,selectComponentClass:Tn||(ca?vd:Yd),locale:Zs,showSizeChanger:Ri})))},Th=ch,yu=m(75081),ff=m(25976);function tl(Ye){return function(Ft){let{prefixCls:Dt,onExpand:zt,record:Gt,expanded:Nr,expandable:An}=Ft;const Tn=`${Dt}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:cn=>{zt(Gt,cn),cn.stopPropagation()},className:we()(Tn,{[`${Tn}-spaced`]:!An,[`${Tn}-expanded`]:An&&Nr,[`${Tn}-collapsed`]:An&&!Nr}),"aria-label":Nr?Ye.collapse:Ye.expand,"aria-expanded":Nr})}}var Bu=tl;function wd(Ye){return(Ft,Dt)=>{const zt=Ft.querySelector(`.${Ye}-container`);let Gt=Dt;if(zt){const Nr=getComputedStyle(zt),An=parseInt(Nr.borderLeftWidth,10),Tn=parseInt(Nr.borderRightWidth,10);Gt=Dt-An-Tn}return Gt}}function qd(Ye,mt){return"key"in Ye&&Ye.key!==void 0&&Ye.key!==null?Ye.key:Ye.dataIndex?Array.isArray(Ye.dataIndex)?Ye.dataIndex.join("."):Ye.dataIndex:mt}function ja(Ye,mt){return mt?`${mt}-${Ye}`:`${Ye}`}function ru(Ye,mt){return typeof Ye=="function"?Ye(mt):Ye}function zl(Ye,mt){const Ft=ru(Ye,mt);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft}var Au=m(98851),Uu=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:Au.Z}))},Vd=w.forwardRef(Uu),Ud=m(57838);function sh(Ye){const mt=w.useRef(Ye),Ft=(0,Ud.Z)();return[()=>mt.current,Dt=>{mt.current=Dt,Ft()}]}var Vf=m(15867),vf=m(84567),Uh=m(83159),kf=m(32983),Bh=m(82610),Kf=m(76529),ah=m(78045),ed=m(97326),Vh=m(15105),Kh=w.createContext(null);function cf(Ye){var mt=Ye.dropPosition,Ft=Ye.dropLevelOffset,Dt=Ye.indent,zt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(mt){case-1:zt.top=0,zt.left=-Ft*Dt;break;case 1:zt.bottom=0,zt.left=-Ft*Dt;break;case 0:zt.bottom=0,zt.left=Dt;break}return w.createElement("div",{style:zt})}var Qc=m(36459),Na=m(82225),ps=function(mt){for(var Ft=mt.prefixCls,Dt=mt.level,zt=mt.isStart,Gt=mt.isEnd,Nr="".concat(Ft,"-indent-unit"),An=[],Tn=0;Tn0&&arguments[0]!==void 0?arguments[0]:[],mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=Ye.length,Dt=mt.length;if(Math.abs(Ft-Dt)!==1)return{add:!1,key:null};function zt(Gt,Nr){var An=new Map;Gt.forEach(function(cn){An.set(cn,!0)});var Tn=Nr.filter(function(cn){return!An.has(cn)});return Tn.length===1?Tn[0]:null}return Ft ").concat(mt);return mt}var Af=w.forwardRef(function(Ye,mt){var Ft=Ye.prefixCls,Dt=Ye.data,zt=Ye.selectable,Gt=Ye.checkable,Nr=Ye.expandedKeys,An=Ye.selectedKeys,Tn=Ye.checkedKeys,cn=Ye.loadedKeys,Jn=Ye.loadingKeys,wr=Ye.halfCheckedKeys,Lo=Ye.keyEntities,kt=Ye.disabled,tr=Ye.dragging,Ln=Ye.dragOverNodeKey,ir=Ye.dropPosition,dr=Ye.motion,jr=Ye.height,Ri=Ye.itemHeight,Te=Ye.virtual,qo=Ye.focusable,Zs=Ye.activeItem,Sa=Ye.focused,ca=Ye.tabIndex,Rs=Ye.onKeyDown,ma=Ye.onFocus,ko=Ye.onBlur,or=Ye.onActiveChange,Ii=Ye.onListChangeStart,Gi=Ye.onListChangeEnd,cs=(0,go.Z)(Ye,Np),Ps=w.useRef(null),da=w.useRef(null);w.useImperativeHandle(mt,function(){return{scrollTo:function(wn){Ps.current.scrollTo(wn)},getIndentWidth:function(){return da.current.offsetWidth}}});var Yo=w.useState(Nr),sr=(0,b.Z)(Yo,2),io=sr[0],ws=sr[1],cl=w.useState(Dt),Dl=(0,b.Z)(cl,2),Ba=Dl[0],Ss=Dl[1],wl=w.useState(Dt),rl=(0,b.Z)(wl,2),mc=rl[0],gl=rl[1],ic=w.useState([]),Ca=(0,b.Z)(ic,2),qu=Ca[0],$l=Ca[1],su=w.useState(null),tu=(0,b.Z)(su,2),Js=tu[0],Kc=tu[1],Le=w.useRef(Dt);Le.current=Dt;function Oe(){var Rr=Le.current;Ss(Rr),gl(Rr),$l([]),Kc(null),Gi()}(0,k.Z)(function(){ws(Nr);var Rr=Uf(io,Nr);if(Rr.key!==null)if(Rr.add){var wn=Ba.findIndex(function(bl){var Ql=bl.key;return Ql===Rr.key}),li=Ff(Pd(Ba,Dt,Rr.key),Te,jr,Ri),Fi=Ba.slice();Fi.splice(wn+1,0,of),gl(Fi),$l(li),Kc("show")}else{var _s=Dt.findIndex(function(bl){var Ql=bl.key;return Ql===Rr.key}),Ea=Ff(Pd(Dt,Ba,Rr.key),Te,jr,Ri),Aa=Dt.slice();Aa.splice(_s+1,0,of),gl(Aa),$l(Ea),Kc("hide")}else Ba!==Dt&&(Ss(Dt),gl(Dt))},[Nr,Dt]),w.useEffect(function(){tr||Oe()},[tr]);var et=dr?mc:Dt,hn={expandedKeys:Nr,selectedKeys:An,loadedKeys:cn,loadingKeys:Jn,checkedKeys:Tn,halfCheckedKeys:wr,dragOverNodeKey:Ln,dropPosition:ir,keyEntities:Lo};return w.createElement(w.Fragment,null,Sa&&Zs&&w.createElement("span",{style:$p,"aria-live":"assertive"},mp(Zs)),w.createElement("div",null,w.createElement("input",{style:$p,disabled:qo===!1||kt,tabIndex:qo!==!1?ca:null,onKeyDown:Rs,onFocus:ma,onBlur:ko,value:"",onChange:ag,"aria-label":"for screen reader"})),w.createElement("div",{className:"".concat(Ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},w.createElement("div",{className:"".concat(Ft,"-indent")},w.createElement("div",{ref:da,className:"".concat(Ft,"-indent-unit")}))),w.createElement(Bs.Z,(0,S.Z)({},cs,{data:et,itemKey:iu,height:jr,fullHeight:!1,virtual:Te,itemHeight:Ri,prefixCls:"".concat(Ft,"-list"),ref:Ps,onVisibleChange:function(wn,li){var Fi=new Set(wn),_s=li.filter(function(Ea){return!Fi.has(Ea)});_s.some(function(Ea){return iu(Ea)===Md})&&Oe()}}),function(Rr){var wn=Rr.pos,li=(0,S.Z)({},((0,Qc.Z)(Rr.data),Rr.data)),Fi=Rr.title,_s=Rr.key,Ea=Rr.isStart,Aa=Rr.isEnd,bl=(0,bc.km)(_s,wn);delete li.key,delete li.children;var Ql=(0,bc.H8)(bl,hn);return w.createElement(Cp,(0,S.Z)({},li,Ql,{title:Fi,active:!!Zs&&_s===Zs.key,pos:wn,data:Rr.data,isStart:Ea,isEnd:Aa,motion:dr,motionNodes:_s===Md?qu:null,motionType:Js,onMotionStart:Ii,onMotionEnd:Oe,treeNodeRequiredProps:hn,onMouseMove:function(){or(null)}}))}))});Af.displayName="NodeList";var np=Af,Od=null;function td(Ye,mt){if(!Ye)return[];var Ft=Ye.slice(),Dt=Ft.indexOf(mt);return Dt>=0&&Ft.splice(Dt,1),Ft}function Tp(Ye,mt){var Ft=(Ye||[]).slice();return Ft.indexOf(mt)===-1&&Ft.push(mt),Ft}function _f(Ye){return Ye.split("-")}function Hh(Ye,mt){var Ft=[],Dt=(0,ro.Z)(mt,Ye);function zt(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gt.forEach(function(Nr){var An=Nr.key,Tn=Nr.children;Ft.push(An),zt(Tn)})}return zt(Dt.children),Ft}function Dp(Ye){if(Ye.parent){var mt=_f(Ye.pos);return Number(mt[mt.length-1])===Ye.parent.children.length-1}return!1}function Vp(Ye){var mt=_f(Ye.pos);return Number(mt[mt.length-1])===0}function Cd(Ye,mt,Ft,Dt,zt,Gt,Nr,An,Tn,cn){var Jn,wr=Ye.clientX,Lo=Ye.clientY,kt=Ye.target.getBoundingClientRect(),tr=kt.top,Ln=kt.height,ir=(cn==="rtl"?-1:1)*(((zt==null?void 0:zt.x)||0)-wr),dr=(ir-12)/Dt,jr=(0,ro.Z)(An,Ft.props.eventKey);if(Lo-1.5?Gt({dragNode:or,dropNode:Ii,dropPosition:1})?Rs=1:Gi=!1:Gt({dragNode:or,dropNode:Ii,dropPosition:0})?Rs=0:Gt({dragNode:or,dropNode:Ii,dropPosition:1})?Rs=1:Gi=!1:Gt({dragNode:or,dropNode:Ii,dropPosition:1})?Rs=1:Gi=!1,{dropPosition:Rs,dropLevelOffset:ma,dropTargetKey:jr.key,dropTargetPos:jr.pos,dragOverNodeKey:ca,dropContainerKey:Rs===0?null:((Jn=jr.parent)===null||Jn===void 0?void 0:Jn.key)||null,dropAllowed:Gi}}function qh(Ye,mt){if(Ye){var Ft=mt.multiple;return Ft?Ye.slice():Ye.length?[Ye[0]]:Ye}}var kh=function(mt){return mt};function _h(Ye,mt){if(!Ye)return[];var Ft=mt||{},Dt=Ft.processProps,zt=Dt===void 0?kh:Dt,Gt=Array.isArray(Ye)?Ye:[Ye];return Gt.map(function(Nr){var An=Nr.children,Tn=_objectWithoutProperties(Nr,Od),cn=_h(An,mt);return React.createElement(TreeNode,_extends({key:Tn.key},zt(Tn)),cn)})}function Bf(Ye){if(!Ye)return null;var mt;if(Array.isArray(Ye))mt={checkedKeys:Ye,halfCheckedKeys:void 0};else if((0,Ce.Z)(Ye)==="object")mt={checkedKeys:Ye.checked||void 0,halfCheckedKeys:Ye.halfChecked||void 0};else return(0,He.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return mt}function bd(Ye,mt){var Ft=new Set;function Dt(zt){if(!Ft.has(zt)){var Gt=(0,ro.Z)(mt,zt);if(Gt){Ft.add(zt);var Nr=Gt.parent,An=Gt.node;An.disabled||Nr&&Dt(Nr.key)}}}return(Ye||[]).forEach(function(zt){Dt(zt)}),(0,ti.Z)(Ft)}var $c=m(17341),Hd=10,vh=function(Ye){(0,ls.Z)(Ft,Ye);var mt=(0,Ks.Z)(Ft);function Ft(){var Dt;(0,Cn.Z)(this,Ft);for(var zt=arguments.length,Gt=new Array(zt),Nr=0;Nr2&&arguments[2]!==void 0?arguments[2]:!1,wr=Dt.state,Lo=wr.dragChildrenKeys,kt=wr.dropPosition,tr=wr.dropTargetKey,Ln=wr.dropTargetPos,ir=wr.dropAllowed;if(ir){var dr=Dt.props.onDrop;if(Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),tr!==null){var jr=(0,De.Z)((0,De.Z)({},(0,bc.H8)(tr,Dt.getTreeNodeRequiredProps())),{},{active:((cn=Dt.getActiveItem())===null||cn===void 0?void 0:cn.key)===tr,data:(0,ro.Z)(Dt.state.keyEntities,tr).node}),Ri=Lo.indexOf(tr)!==-1;(0,He.ZP)(!Ri,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Te=_f(Ln),qo={event:An,node:(0,bc.F)(jr),dragNode:Dt.dragNode?(0,bc.F)(Dt.dragNode.props):null,dragNodesKeys:[Dt.dragNode.props.eventKey].concat(Lo),dropToGap:kt!==0,dropPosition:kt+Number(Te[Te.length-1])};Jn||dr==null||dr(qo),Dt.dragNode=null}}},Dt.cleanDragState=function(){var An=Dt.state.draggingNodeKey;An!==null&&Dt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Dt.dragStartMousePosition=null,Dt.currentMouseOverDroppableNodeKey=null},Dt.triggerExpandActionExpand=function(An,Tn){var cn=Dt.state,Jn=cn.expandedKeys,wr=cn.flattenNodes,Lo=Tn.expanded,kt=Tn.key,tr=Tn.isLeaf;if(!(tr||An.shiftKey||An.metaKey||An.ctrlKey)){var Ln=wr.filter(function(dr){return dr.key===kt})[0],ir=(0,bc.F)((0,De.Z)((0,De.Z)({},(0,bc.H8)(kt,Dt.getTreeNodeRequiredProps())),{},{data:Ln.data}));Dt.setExpandedKeys(Lo?td(Jn,kt):Tp(Jn,kt)),Dt.onNodeExpand(An,ir)}},Dt.onNodeClick=function(An,Tn){var cn=Dt.props,Jn=cn.onClick,wr=cn.expandAction;wr==="click"&&Dt.triggerExpandActionExpand(An,Tn),Jn==null||Jn(An,Tn)},Dt.onNodeDoubleClick=function(An,Tn){var cn=Dt.props,Jn=cn.onDoubleClick,wr=cn.expandAction;wr==="doubleClick"&&Dt.triggerExpandActionExpand(An,Tn),Jn==null||Jn(An,Tn)},Dt.onNodeSelect=function(An,Tn){var cn=Dt.state.selectedKeys,Jn=Dt.state,wr=Jn.keyEntities,Lo=Jn.fieldNames,kt=Dt.props,tr=kt.onSelect,Ln=kt.multiple,ir=Tn.selected,dr=Tn[Lo.key],jr=!ir;jr?Ln?cn=Tp(cn,dr):cn=[dr]:cn=td(cn,dr);var Ri=cn.map(function(Te){var qo=(0,ro.Z)(wr,Te);return qo?qo.node:null}).filter(function(Te){return Te});Dt.setUncontrolledState({selectedKeys:cn}),tr==null||tr(cn,{event:"select",selected:jr,node:Tn,selectedNodes:Ri,nativeEvent:An.nativeEvent})},Dt.onNodeCheck=function(An,Tn,cn){var Jn=Dt.state,wr=Jn.keyEntities,Lo=Jn.checkedKeys,kt=Jn.halfCheckedKeys,tr=Dt.props,Ln=tr.checkStrictly,ir=tr.onCheck,dr=Tn.key,jr,Ri={event:"check",node:Tn,checked:cn,nativeEvent:An.nativeEvent};if(Ln){var Te=cn?Tp(Lo,dr):td(Lo,dr),qo=td(kt,dr);jr={checked:Te,halfChecked:qo},Ri.checkedNodes=Te.map(function(ko){return(0,ro.Z)(wr,ko)}).filter(function(ko){return ko}).map(function(ko){return ko.node}),Dt.setUncontrolledState({checkedKeys:Te})}else{var Zs=(0,$c.S)([].concat((0,ti.Z)(Lo),[dr]),!0,wr),Sa=Zs.checkedKeys,ca=Zs.halfCheckedKeys;if(!cn){var Rs=new Set(Sa);Rs.delete(dr);var ma=(0,$c.S)(Array.from(Rs),{checked:!1,halfCheckedKeys:ca},wr);Sa=ma.checkedKeys,ca=ma.halfCheckedKeys}jr=Sa,Ri.checkedNodes=[],Ri.checkedNodesPositions=[],Ri.halfCheckedKeys=ca,Sa.forEach(function(ko){var or=(0,ro.Z)(wr,ko);if(or){var Ii=or.node,Gi=or.pos;Ri.checkedNodes.push(Ii),Ri.checkedNodesPositions.push({node:Ii,pos:Gi})}}),Dt.setUncontrolledState({checkedKeys:Sa},!1,{halfCheckedKeys:ca})}ir==null||ir(jr,Ri)},Dt.onNodeLoad=function(An){var Tn=An.key,cn=new Promise(function(Jn,wr){Dt.setState(function(Lo){var kt=Lo.loadedKeys,tr=kt===void 0?[]:kt,Ln=Lo.loadingKeys,ir=Ln===void 0?[]:Ln,dr=Dt.props,jr=dr.loadData,Ri=dr.onLoad;if(!jr||tr.indexOf(Tn)!==-1||ir.indexOf(Tn)!==-1)return null;var Te=jr(An);return Te.then(function(){var qo=Dt.state.loadedKeys,Zs=Tp(qo,Tn);Ri==null||Ri(Zs,{event:"load",node:An}),Dt.setUncontrolledState({loadedKeys:Zs}),Dt.setState(function(Sa){return{loadingKeys:td(Sa.loadingKeys,Tn)}}),Jn()}).catch(function(qo){if(Dt.setState(function(Sa){return{loadingKeys:td(Sa.loadingKeys,Tn)}}),Dt.loadingRetryTimes[Tn]=(Dt.loadingRetryTimes[Tn]||0)+1,Dt.loadingRetryTimes[Tn]>=Hd){var Zs=Dt.state.loadedKeys;(0,He.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Dt.setUncontrolledState({loadedKeys:Tp(Zs,Tn)}),Jn()}wr(qo)}),{loadingKeys:Tp(ir,Tn)}})});return cn.catch(function(){}),cn},Dt.onNodeMouseEnter=function(An,Tn){var cn=Dt.props.onMouseEnter;cn==null||cn({event:An,node:Tn})},Dt.onNodeMouseLeave=function(An,Tn){var cn=Dt.props.onMouseLeave;cn==null||cn({event:An,node:Tn})},Dt.onNodeContextMenu=function(An,Tn){var cn=Dt.props.onRightClick;cn&&(An.preventDefault(),cn({event:An,node:Tn}))},Dt.onFocus=function(){var An=Dt.props.onFocus;Dt.setState({focused:!0});for(var Tn=arguments.length,cn=new Array(Tn),Jn=0;Jn1&&arguments[1]!==void 0?arguments[1]:!1,cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Dt.destroyed){var Jn=!1,wr=!0,Lo={};Object.keys(An).forEach(function(kt){if(kt in Dt.props){wr=!1;return}Jn=!0,Lo[kt]=An[kt]}),Jn&&(!Tn||wr)&&Dt.setState((0,De.Z)((0,De.Z)({},Lo),cn))}},Dt.scrollTo=function(An){Dt.listRef.current.scrollTo(An)},Dt}return(0,Eu.Z)(Ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var zt=this.props.activeKey;zt!==void 0&&zt!==this.state.activeKey&&(this.setState({activeKey:zt}),zt!==null&&this.scrollTo({key:zt}))}},{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 zt,Gt=this.state,Nr=Gt.focused,An=Gt.flattenNodes,Tn=Gt.keyEntities,cn=Gt.draggingNodeKey,Jn=Gt.activeKey,wr=Gt.dropLevelOffset,Lo=Gt.dropContainerKey,kt=Gt.dropTargetKey,tr=Gt.dropPosition,Ln=Gt.dragOverNodeKey,ir=Gt.indent,dr=this.props,jr=dr.prefixCls,Ri=dr.className,Te=dr.style,qo=dr.showLine,Zs=dr.focusable,Sa=dr.tabIndex,ca=Sa===void 0?0:Sa,Rs=dr.selectable,ma=dr.showIcon,ko=dr.icon,or=dr.switcherIcon,Ii=dr.draggable,Gi=dr.checkable,cs=dr.checkStrictly,Ps=dr.disabled,da=dr.motion,Yo=dr.loadData,sr=dr.filterTreeNode,io=dr.height,ws=dr.itemHeight,cl=dr.virtual,Dl=dr.titleRender,Ba=dr.dropIndicatorRender,Ss=dr.onContextMenu,wl=dr.onScroll,rl=dr.direction,mc=dr.rootClassName,gl=dr.rootStyle,ic=(0,Vn.Z)(this.props,{aria:!0,data:!0}),Ca;return Ii&&((0,Ce.Z)(Ii)==="object"?Ca=Ii:typeof Ii=="function"?Ca={nodeDraggable:Ii}:Ca={}),w.createElement(Kh.Provider,{value:{prefixCls:jr,selectable:Rs,showIcon:ma,icon:ko,switcherIcon:or,draggable:Ca,draggingNodeKey:cn,checkable:Gi,checkStrictly:cs,disabled:Ps,keyEntities:Tn,dropLevelOffset:wr,dropContainerKey:Lo,dropTargetKey:kt,dropPosition:tr,dragOverNodeKey:Ln,indent:ir,direction:rl,dropIndicatorRender:Ba,loadData:Yo,filterTreeNode:sr,titleRender:Dl,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}},w.createElement("div",{role:"tree",className:we()(jr,Ri,mc,(zt={},(0,ge.Z)(zt,"".concat(jr,"-show-line"),qo),(0,ge.Z)(zt,"".concat(jr,"-focused"),Nr),(0,ge.Z)(zt,"".concat(jr,"-active-focused"),Jn!==null),zt)),style:gl},w.createElement(np,(0,S.Z)({ref:this.listRef,prefixCls:jr,style:Te,data:An,disabled:Ps,selectable:Rs,checkable:!!Gi,motion:da,dragging:cn!==null,height:io,itemHeight:ws,virtual:cl,focusable:Zs,focused:Nr,tabIndex:ca,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ss,onScroll:wl},this.getTreeNodeRequiredProps(),ic))))}}],[{key:"getDerivedStateFromProps",value:function(zt,Gt){var Nr=Gt.prevProps,An={prevProps:zt};function Tn(Zs){return!Nr&&Zs in zt||Nr&&Nr[Zs]!==zt[Zs]}var cn,Jn=Gt.fieldNames;if(Tn("fieldNames")&&(Jn=(0,bc.w$)(zt.fieldNames),An.fieldNames=Jn),Tn("treeData")?cn=zt.treeData:Tn("children")&&((0,He.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),cn=(0,bc.zn)(zt.children)),cn){An.treeData=cn;var wr=(0,bc.I8)(cn,{fieldNames:Jn});An.keyEntities=(0,De.Z)((0,ge.Z)({},Md,Ih),wr.keyEntities)}var Lo=An.keyEntities||Gt.keyEntities;if(Tn("expandedKeys")||Nr&&Tn("autoExpandParent"))An.expandedKeys=zt.autoExpandParent||!Nr&&zt.defaultExpandParent?bd(zt.expandedKeys,Lo):zt.expandedKeys;else if(!Nr&&zt.defaultExpandAll){var kt=(0,De.Z)({},Lo);delete kt[Md],An.expandedKeys=Object.keys(kt).map(function(Zs){return kt[Zs].key})}else!Nr&&zt.defaultExpandedKeys&&(An.expandedKeys=zt.autoExpandParent||zt.defaultExpandParent?bd(zt.defaultExpandedKeys,Lo):zt.defaultExpandedKeys);if(An.expandedKeys||delete An.expandedKeys,cn||An.expandedKeys){var tr=(0,bc.oH)(cn||Gt.treeData,An.expandedKeys||Gt.expandedKeys,Jn);An.flattenNodes=tr}if(zt.selectable&&(Tn("selectedKeys")?An.selectedKeys=qh(zt.selectedKeys,zt):!Nr&&zt.defaultSelectedKeys&&(An.selectedKeys=qh(zt.defaultSelectedKeys,zt))),zt.checkable){var Ln;if(Tn("checkedKeys")?Ln=Bf(zt.checkedKeys)||{}:!Nr&&zt.defaultCheckedKeys?Ln=Bf(zt.defaultCheckedKeys)||{}:cn&&(Ln=Bf(zt.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),Ln){var ir=Ln,dr=ir.checkedKeys,jr=dr===void 0?[]:dr,Ri=ir.halfCheckedKeys,Te=Ri===void 0?[]:Ri;if(!zt.checkStrictly){var qo=(0,$c.S)(jr,!0,Lo);jr=qo.checkedKeys,Te=qo.halfCheckedKeys}An.checkedKeys=jr,An.halfCheckedKeys=Te}}return Tn("loadedKeys")&&(An.loadedKeys=zt.loadedKeys),An}}]),Ft}(w.Component);vh.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:cf,allowDrop:function(){return!0},expandAction:!1},vh.TreeNode=Ah;var Io=vh,D=Io,F={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"},J=F,ae=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:J}))},Ue=w.forwardRef(ae),Jt={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"},$n=Jt,_i=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:$n}))},Xo=w.forwardRef(_i),fa={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"},Cl=fa,Ll=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:Cl}))},zu=w.forwardRef(Ll),Iu={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"},pc=Iu,zc=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:pc}))},Rd=w.forwardRef(zc),X=m(33603),re=m(85731),Q=m(63185),le=m(33507);const it=new re.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rt=(Ye,mt)=>({[`.${Ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${mt.motionDurationSlow}`}}}),nn=(Ye,mt)=>({[`.${Ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:mt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${mt.lineWidthBold}px solid ${mt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Yn=(Ye,mt)=>{const{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:zt,titleHeight:Gt,nodeSelectedBg:Nr,nodeHoverBg:An}=mt,Tn=mt.paddingXS;return{[Ft]:Object.assign(Object.assign({},(0,jd.Wf)(mt)),{background:mt.colorBgContainer,borderRadius:mt.borderRadius,transition:`background-color ${mt.motionDurationSlow}`,[`&${Ft}-rtl`]:{[`${Ft}-switcher`]:{"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ft}-active-focused)`]:Object.assign({},(0,jd.oN)(mt)),[`${Ft}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ft}-block-node`]:{[`${Ft}-list-holder-inner`]:{alignItems:"stretch",[`${Ft}-node-content-wrapper`]:{flex:"auto"},[`${Dt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:zt,insetInlineStart:0,border:`1px solid ${mt.colorPrimary}`,opacity:0,animationName:it,animationDuration:mt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Dt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${zt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ft}-node-content-wrapper`]:{color:mt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ft}-node-content-wrapper`]:Object.assign({},(0,jd.oN)(mt)),[`&:not(${Dt}-disabled).filter-node ${Ft}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ft}-draggable-icon`]:{flexShrink:0,width:Gt,lineHeight:`${Gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${mt.motionDurationSlow}`,[`${Dt}:hover &`]:{opacity:.45}},[`&${Dt}-disabled`]:{[`${Ft}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ft}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Gt}},[`${Ft}-draggable-icon`]:{visibility:"hidden"},[`${Ft}-switcher`]:Object.assign(Object.assign({},Rt(Ye,mt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Gt,margin:0,lineHeight:`${Gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:mt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-zt,marginInlineStart:-1,borderInlineEnd:`1px solid ${mt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Gt/2*.8,height:Gt/2,borderBottom:`1px solid ${mt.colorBorder}`,content:'""'}}}),[`${Ft}-checkbox`]:{top:"initial",marginInlineEnd:Tn,alignSelf:"flex-start",marginTop:mt.marginXXS},[`${Ft}-node-content-wrapper, ${Ft}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Gt,margin:0,padding:`0 ${mt.paddingXS/2}px`,color:"inherit",lineHeight:`${Gt}px`,background:"transparent",borderRadius:mt.borderRadius,cursor:"pointer",transition:`all ${mt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:An},[`&${Ft}-node-selected`]:{backgroundColor:Nr},[`${Ft}-iconEle`]:{display:"inline-block",width:Gt,height:Gt,lineHeight:`${Gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ft}-unselectable ${Ft}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ft}-node-content-wrapper`]:Object.assign({lineHeight:`${Gt}px`,userSelect:"none"},nn(Ye,mt)),[`${Dt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${mt.colorPrimary}`}},"&-show-line":{[`${Ft}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-zt,borderInlineEnd:`1px solid ${mt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ft}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Dt}-leaf-last`]:{[`${Ft}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Gt/2}px !important`}}}}})}},ei=Ye=>{const{treeCls:mt,treeNodeCls:Ft,treeNodePadding:Dt,directoryNodeSelectedBg:zt,directoryNodeSelectedColor:Gt}=Ye;return{[`${mt}${mt}-directory`]:{[Ft]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Dt,insetInlineStart:0,transition:`background-color ${Ye.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ye.controlItemBgHover}},"> *":{zIndex:1},[`${mt}-switcher`]:{transition:`color ${Ye.motionDurationMid}`},[`${mt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${mt}-node-selected`]:{color:Gt,background:"transparent"}},"&-selected":{[` + `]:{height:$e,fontFamily:Me.fontFamily,lineHeight:`${$e}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ze}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var he=Me=>{const{componentCls:Se}=Me,ze=(0,w.TS)(Me,{selectHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),De=(0,w.TS)(Me,{fontSize:Me.fontSizeLG,selectHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,ke]=T(Me);return[k(Me),k(ze,"sm"),{[`${Se}-multiple${Se}-sm`]:{[`${Se}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${Se}-selection-search`]:{marginInlineStart:ke}}},k(De,"lg")]};function ae(Me,Se){const{componentCls:ze,inputPaddingHorizontalBase:De,borderRadius:ke}=Me,$e=Me.controlHeight-Me.lineWidth*2,Te=Math.ceil(Me.fontSize*1.25),tt=Se?`${ze}-${Se}`:"";return{[`${ze}-single${tt}`]:{fontSize:Me.fontSize,height:Me.controlHeight,[`${ze}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(Me,!0)),{display:"flex",borderRadius:ke,[`${ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:De,insetInlineEnd:De,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${ze}-selection-item, + ${ze}-selection-placeholder + `]:{padding:0,lineHeight:`${$e}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:empty:after`,`${ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${ze}-show-arrow ${ze}-selection-item, + &${ze}-show-arrow ${ze}-selection-placeholder + `]:{paddingInlineEnd:Te},[`&${ze}-open ${ze}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:"100%",padding:`0 ${De}px`,[`${ze}-selection-search-input`]:{height:$e},"&:after":{lineHeight:`${$e}px`}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${De}px`,"&:after":{display:"none"}}}}}}}function fe(Me){const{componentCls:Se}=Me,ze=Me.controlPaddingHorizontalSM-Me.lineWidth;return[ae(Me),ae((0,w.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${Se}-single${Se}-sm`]:{[`&:not(${Se}-customize-input)`]:{[`${Se}-selection-search`]:{insetInlineStart:ze,insetInlineEnd:ze},[`${Se}-selector`]:{padding:`0 ${ze}px`},[`&${Se}-show-arrow ${Se}-selection-search`]:{insetInlineEnd:ze+Me.fontSize*1.5},[` + &${Se}-show-arrow ${Se}-selection-item, + &${Se}-show-arrow ${Se}-selection-placeholder + `]:{paddingInlineEnd:Me.fontSize*1.5}}}},ae((0,w.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const _e=Me=>{const{componentCls:Se,selectorBg:ze}=Me;return{position:"relative",backgroundColor:ze,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Se}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Se}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${Se}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},be=function(Me,Se){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:De,borderHoverColor:ke,antCls:$e,borderActiveColor:Te,outlineColor:tt,controlOutlineWidth:Oe}=Se,Xt=ze?{[`${De}-selector`]:{borderColor:Te}}:{};return{[Me]:{[`&:not(${De}-disabled):not(${De}-customize-input):not(${$e}-pagination-size-changer)`]:Object.assign(Object.assign({},Xt),{[`&:hover ${De}-selector`]:{borderColor:ke},[`${De}-focused& ${De}-selector`]:{borderColor:Te,boxShadow:`0 0 0 ${Oe}px ${tt}`,outline:0}})}}},xe=Me=>{const{componentCls:Se}=Me;return{[`${Se}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Xe=Me=>{const{antCls:Se,componentCls:ze,inputPaddingHorizontalBase:De,iconCls:ke}=Me;return{[ze]:Object.assign(Object.assign({},(0,v.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},_e(Me)),xe(Me)),[`${ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},v.vS),{[`> ${Se}-typography`]:{display:"inline"}}),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:De,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ke]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:De,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:De+Me.fontSize+Me.paddingXS}}}},We=Me=>{const{componentCls:Se}=Me;return[{[Se]:{[`&-borderless ${Se}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Se}-in-form-item`]:{width:"100%"}}},Xe(Me),fe(Me),he(Me),S(Me),{[`${Se}-rtl`]:{direction:"rtl"}},be(Se,(0,w.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,borderActiveColor:Me.colorPrimary,outlineColor:Me.controlOutline})),be(`${Se}-status-error`,(0,w.TS)(Me,{borderHoverColor:Me.colorErrorHover,borderActiveColor:Me.colorError,outlineColor:Me.colorErrorOutline}),!0),be(`${Se}-status-warning`,(0,w.TS)(Me,{borderHoverColor:Me.colorWarningHover,borderActiveColor:Me.colorWarning,outlineColor:Me.colorWarningOutline}),!0),(0,R.c)(Me,{borderElCls:`${Se}-selector`,focusElCls:`${Se}-focused`})]};var dt=(0,b.Z)("Select",(Me,Se)=>{let{rootPrefixCls:ze}=Se;const De=(0,w.TS)(Me,{rootPrefixCls:ze,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight,selectHeight:Me.controlHeight});return[We(De)]},Me=>{const{fontSize:Se,lineHeight:ze,controlHeight:De,controlPaddingHorizontal:ke,zIndexPopupBase:$e,colorText:Te,fontWeightStrong:tt,controlItemBgActive:Oe,controlItemBgHover:Xt,colorBgContainer:Ft,colorFillSecondary:ot,controlHeightLG:xt,controlHeightSM:ut,colorBgContainerDisabled:$t,colorTextDisabled:_t}=Me;return{zIndexPopup:$e+50,optionSelectedColor:Te,optionSelectedFontWeight:tt,optionSelectedBg:Oe,optionActiveBg:Xt,optionPadding:`${(De-Se*ze)/2}px ${ke}px`,optionFontSize:Se,optionLineHeight:ze,optionHeight:De,selectorBg:Ft,clearBg:Ft,singleItemHeightLG:xt,multipleItemBg:ot,multipleItemBorderColor:"transparent",multipleItemHeight:ut,multipleItemHeightLG:De,multipleSelectorBgDisabled:$t,multipleItemColorDisabled:_t,multipleItemBorderColorDisabled:"transparent"}})},13458:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return R}});const v=w=>{const B={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:w==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},B),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},B),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},B),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},B),{points:["br","tr"],offset:[0,-4]})}};function R(w,b){return w||v(b)}},43277:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return L}});var v=_(67294),R=_(35918),w=_(41322),b=_(62208),B=_(58964),V=_(22508),O=_(13805);function L(S){let{suffixIcon:g,clearIcon:T,menuItemSelectedIcon:k,removeIcon:K,loading:he,multiple:ae,hasFeedback:fe,prefixCls:_e,showSuffixIcon:be,feedbackIcon:xe,showArrow:Xe,componentName:We}=S;const dt=T!=null?T:v.createElement(w.Z,null),Me=ke=>g===null&&!fe&&!Xe?null:v.createElement(v.Fragment,null,be!==!1&&ke,fe&&xe);let Se=null;if(g!==void 0)Se=Me(g);else if(he)Se=Me(v.createElement(V.Z,{spin:!0}));else{const ke=`${_e}-suffix`;Se=$e=>{let{open:Te,showSearch:tt}=$e;return Me(Te&&tt?v.createElement(O.Z,{className:ke}):v.createElement(B.Z,{className:ke}))}}let ze=null;k!==void 0?ze=k:ae?ze=v.createElement(R.Z,null):ze=null;let De=null;return K!==void 0?De=K:De=v.createElement(b.Z,null),{clearIcon:dt,suffixIcon:Se,itemIcon:ze,removeIcon:De}}},78642:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return v}});function v(R,w){return w!==void 0?w:R!==null}},4173:function(gt,Y,_){"use strict";_.d(Y,{BR:function(){return T},ri:function(){return g}});var v=_(94184),R=_.n(v),w=_(50344),b=_(67294),B=_(53124),V=_(98675),O=_(51916),L=function(he,ae){var fe={};for(var _e in he)Object.prototype.hasOwnProperty.call(he,_e)&&ae.indexOf(_e)<0&&(fe[_e]=he[_e]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,_e=Object.getOwnPropertySymbols(he);be<_e.length;be++)ae.indexOf(_e[be])<0&&Object.prototype.propertyIsEnumerable.call(he,_e[be])&&(fe[_e[be]]=he[_e[be]]);return fe};const S=b.createContext(null),g=(he,ae)=>{const fe=b.useContext(S),_e=b.useMemo(()=>{if(!fe)return"";const{compactDirection:be,isFirstItem:xe,isLastItem:Xe}=fe,We=be==="vertical"?"-vertical-":"-";return R()(`${he}-compact${We}item`,{[`${he}-compact${We}first-item`]:xe,[`${he}-compact${We}last-item`]:Xe,[`${he}-compact${We}item-rtl`]:ae==="rtl"})},[he,ae,fe]);return{compactSize:fe==null?void 0:fe.compactSize,compactDirection:fe==null?void 0:fe.compactDirection,compactItemClassnames:_e}},T=he=>{let{children:ae}=he;return b.createElement(S.Provider,{value:null},ae)},k=he=>{var{children:ae}=he,fe=L(he,["children"]);return b.createElement(S.Provider,{value:fe},ae)},K=he=>{const{getPrefixCls:ae,direction:fe}=b.useContext(B.E_),{size:_e,direction:be,block:xe,prefixCls:Xe,className:We,rootClassName:dt,children:Me}=he,Se=L(he,["size","direction","block","prefixCls","className","rootClassName","children"]),ze=(0,V.Z)(Ft=>_e!=null?_e:Ft),De=ae("space-compact",Xe),[ke,$e]=(0,O.Z)(De),Te=R()(De,$e,{[`${De}-rtl`]:fe==="rtl",[`${De}-block`]:xe,[`${De}-vertical`]:be==="vertical"},We,dt),tt=b.useContext(S),Oe=(0,w.Z)(Me),Xt=b.useMemo(()=>Oe.map((Ft,ot)=>{const xt=Ft&&Ft.key||`${De}-item-${ot}`;return b.createElement(k,{key:xt,compactSize:ze,compactDirection:be,isFirstItem:ot===0&&(!tt||(tt==null?void 0:tt.isFirstItem)),isLastItem:ot===Oe.length-1&&(!tt||(tt==null?void 0:tt.isLastItem))},Ft)}),[_e,Oe,tt]);return Oe.length===0?null:ke(b.createElement("div",Object.assign({className:Te},Se),Xt))};Y.ZP=K},78957:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return _e}});var v=_(67294),R=_(94184),w=_.n(R),b=_(50344);function B(be){return["small","middle","large"].includes(be)}function V(be){return be?typeof be=="number"&&!Number.isNaN(be):!1}var O=_(53124),L=_(4173);const S=v.createContext({latestIndex:0}),g=S.Provider;var k=be=>{let{className:xe,index:Xe,children:We,split:dt,style:Me}=be;const{latestIndex:Se}=v.useContext(S);return We==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:xe,style:Me},We),Xe{var Xe,We;const{getPrefixCls:dt,space:Me,direction:Se}=v.useContext(O.E_),{size:ze=(Me==null?void 0:Me.size)||"small",align:De,className:ke,rootClassName:$e,children:Te,direction:tt="horizontal",prefixCls:Oe,split:Xt,style:Ft,wrap:ot=!1,classNames:xt,styles:ut}=be,$t=he(be,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_t,bn]=Array.isArray(ze)?ze:[ze,ze],Wn=B(bn),$r=B(_t),wi=V(bn),oo=V(_t),Mo=(0,b.Z)(Te,{keepEmpty:!0}),Ti=De===void 0&&tt==="horizontal"?"center":De,Hr=dt("space",Oe),[Ho,Ss]=(0,K.Z)(Hr),Pe=w()(Hr,Me==null?void 0:Me.className,Ss,`${Hr}-${tt}`,{[`${Hr}-rtl`]:Se==="rtl",[`${Hr}-align-${Ti}`]:Ti,[`${Hr}-gap-row-${bn}`]:Wn,[`${Hr}-gap-col-${_t}`]:$r},ke,$e),qo=w()(`${Hr}-item`,(Xe=xt==null?void 0:xt.item)!==null&&Xe!==void 0?Xe:(We=Me==null?void 0:Me.classNames)===null||We===void 0?void 0:We.item);let Ki=0;const Do=Mo.map((Mn,nt)=>{var Dt,Kt;Mn!=null&&(Ki=nt);const mn=Mn&&Mn.key||`${qo}-${nt}`;return v.createElement(k,{className:qo,key:mn,index:nt,split:Xt,style:(Dt=ut==null?void 0:ut.item)!==null&&Dt!==void 0?Dt:(Kt=Me==null?void 0:Me.styles)===null||Kt===void 0?void 0:Kt.item},Mn)}),ai=v.useMemo(()=>({latestIndex:Ki}),[Ki]);if(Mo.length===0)return null;const $o={};return ot&&($o.flexWrap="wrap"),!$r&&oo&&($o.columnGap=_t),!Wn&&wi&&($o.rowGap=bn),Ho(v.createElement("div",Object.assign({ref:xe,className:Pe,style:Object.assign(Object.assign(Object.assign({},$o),Me==null?void 0:Me.style),Ft)},$t),v.createElement(g,{value:ai},Do)))});fe.Compact=L.ZP;var _e=fe},51916:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(67968),R=_(45503),b=L=>{const{componentCls:S}=L;return{[S]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const B=L=>{const{componentCls:S}=L;return{[S]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${S}-item:empty`]:{display:"none"}}}},V=L=>{const{componentCls:S}=L;return{[S]:{"&-gap-row-small":{rowGap:L.spaceGapSmallSize},"&-gap-row-middle":{rowGap:L.spaceGapMiddleSize},"&-gap-row-large":{rowGap:L.spaceGapLargeSize},"&-gap-col-small":{columnGap:L.spaceGapSmallSize},"&-gap-col-middle":{columnGap:L.spaceGapMiddleSize},"&-gap-col-large":{columnGap:L.spaceGapLargeSize}}}};var O=(0,v.Z)("Space",L=>{const S=(0,R.TS)(L,{spaceGapSmallSize:L.paddingXS,spaceGapMiddleSize:L.padding,spaceGapLargeSize:L.paddingLG});return[B(S),V(S),b(S)]},()=>({}),{resetStyle:!1})},75081:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ze}});var v=_(67294),R=_(94184),w=_.n(R),b=_(98423);function B(De,ke,$e){var Te=$e||{},tt=Te.noTrailing,Oe=tt===void 0?!1:tt,Xt=Te.noLeading,Ft=Xt===void 0?!1:Xt,ot=Te.debounceMode,xt=ot===void 0?void 0:ot,ut,$t=!1,_t=0;function bn(){ut&&clearTimeout(ut)}function Wn(wi){var oo=wi||{},Mo=oo.upcomingOnly,Ti=Mo===void 0?!1:Mo;bn(),$t=!Ti}function $r(){for(var wi=arguments.length,oo=new Array(wi),Mo=0;MoDe?Ft?(_t=Date.now(),Oe||(ut=setTimeout(xt?Ss:Ho,De))):Ho():Oe!==!0&&(ut=setTimeout(xt?Ss:Ho,xt===void 0?De-Hr:De))}return $r.cancel=Wn,$r}function V(De,ke,$e){var Te=$e||{},tt=Te.atBegin,Oe=tt===void 0?!1:tt;return B(De,ke,{debounceMode:Oe!==!1})}var O=_(96159),L=_(53124),S=_(85731),g=_(14747),T=_(67968),k=_(45503);const K=new S.E4("antSpinMove",{to:{opacity:1}}),he=new S.E4("antRotate",{to:{transform:"rotate(405deg)"}}),ae=De=>(De.dotSize-De.fontSize)/2+2,fe=De=>({[`${De.componentCls}`]:Object.assign(Object.assign({},(0,g.Wf)(De)),{position:"absolute",display:"none",color:De.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${De.componentCls}-text`]:{fontSize:De.fontSize,paddingTop:ae(De)},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:De.colorBgMask,zIndex:De.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",pointerEvents:"none",opacity:0,visibility:"hidden",transition:`all ${De.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${De.componentCls}-dot ${De.componentCls}-dot-item`]:{backgroundColor:De.colorWhite},[`${De.componentCls}-text`]:{color:De.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${De.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:De.contentHeight,[`${De.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-De.dotSize/2},[`${De.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${De.colorBgContainer}`},[`&${De.componentCls}-show-text ${De.componentCls}-dot`]:{marginTop:-(De.dotSize/2)-10},"&-sm":{[`${De.componentCls}-dot`]:{margin:-De.dotSizeSM/2},[`${De.componentCls}-text`]:{paddingTop:(De.dotSizeSM-De.fontSize)/2+2},[`&${De.componentCls}-show-text ${De.componentCls}-dot`]:{marginTop:-(De.dotSizeSM/2)-10}},"&-lg":{[`${De.componentCls}-dot`]:{margin:-(De.dotSizeLG/2)},[`${De.componentCls}-text`]:{paddingTop:(De.dotSizeLG-De.fontSize)/2+2},[`&${De.componentCls}-show-text ${De.componentCls}-dot`]:{marginTop:-(De.dotSizeLG/2)-10}}},[`${De.componentCls}-container`]:{position:"relative",transition:`opacity ${De.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:De.colorBgContainer,opacity:0,transition:`all ${De.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${De.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:De.spinDotDefault},[`${De.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:De.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(De.dotSize-De.marginXXS/2)/2,height:(De.dotSize-De.marginXXS/2)/2,backgroundColor:De.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:he,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${De.componentCls}-dot`]:{fontSize:De.dotSizeSM,i:{width:(De.dotSizeSM-De.marginXXS/2)/2,height:(De.dotSizeSM-De.marginXXS/2)/2}},[`&-lg ${De.componentCls}-dot`]:{fontSize:De.dotSizeLG,i:{width:(De.dotSizeLG-De.marginXXS)/2,height:(De.dotSizeLG-De.marginXXS)/2}},[`&${De.componentCls}-show-text ${De.componentCls}-text`]:{display:"block"}})});var _e=(0,T.Z)("Spin",De=>{const ke=(0,k.TS)(De,{spinDotDefault:De.colorTextDescription});return[fe(ke)]},De=>({contentHeight:400,dotSize:De.controlHeightLG/2,dotSizeSM:De.controlHeightLG*.35,dotSizeLG:De.controlHeight})),be=function(De,ke){var $e={};for(var Te in De)Object.prototype.hasOwnProperty.call(De,Te)&&ke.indexOf(Te)<0&&($e[Te]=De[Te]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Te=Object.getOwnPropertySymbols(De);tt{const{spinPrefixCls:ke,spinning:$e=!0,delay:Te=0,className:tt,rootClassName:Oe,size:Xt="default",tip:Ft,wrapperClassName:ot,style:xt,children:ut,hashId:$t,fullscreen:_t}=De,bn=be(De,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId","fullscreen"]),[Wn,$r]=v.useState(()=>$e&&!dt($e,Te));v.useEffect(()=>{if($e){const qo=V(Te,()=>{$r(!0)});return qo(),()=>{var Ki;(Ki=qo==null?void 0:qo.cancel)===null||Ki===void 0||Ki.call(qo)}}$r(!1)},[Te,$e]);const wi=v.useMemo(()=>typeof ut!="undefined"&&!_t,[ut,_t]),{direction:oo,spin:Mo}=v.useContext(L.E_),Ti=w()(ke,Mo==null?void 0:Mo.className,{[`${ke}-sm`]:Xt==="small",[`${ke}-lg`]:Xt==="large",[`${ke}-spinning`]:Wn,[`${ke}-show-text`]:!!Ft,[`${ke}-fullscreen`]:_t,[`${ke}-fullscreen-show`]:_t&&Wn,[`${ke}-rtl`]:oo==="rtl"},tt,Oe,$t),Hr=w()(`${ke}-container`,{[`${ke}-blur`]:Wn}),Ho=(0,b.Z)(bn,["indicator","prefixCls"]),Ss=Object.assign(Object.assign({},Mo==null?void 0:Mo.style),xt),Pe=v.createElement("div",Object.assign({},Ho,{style:Ss,className:Ti,"aria-live":"polite","aria-busy":Wn}),We(ke,De),Ft&&(wi||_t)?v.createElement("div",{className:`${ke}-text`},Ft):null);return wi?v.createElement("div",Object.assign({},Ho,{className:w()(`${ke}-nested-loading`,ot,$t)}),Wn&&v.createElement("div",{key:"loading"},Pe),v.createElement("div",{className:Hr,key:"container"},ut)):Pe},Se=De=>{const{prefixCls:ke}=De,{getPrefixCls:$e}=v.useContext(L.E_),Te=$e("spin",ke),[tt,Oe]=_e(Te),Xt=Object.assign(Object.assign({},De),{spinPrefixCls:Te,hashId:Oe});return tt(v.createElement(Me,Object.assign({},Xt)))};Se.setDefaultIndicator=De=>{Xe=De};var ze=Se},80110:function(gt,Y,_){"use strict";_.d(Y,{c:function(){return w}});function v(b,B,V){const{focusElCls:O,focus:L,borderElCls:S}=V,g=S?"> *":"",T=["hover",L?"focus":null,"active"].filter(Boolean).map(k=>`&:${k} ${g}`).join(",");return{[`&-item:not(${B}-last-item)`]:{marginInlineEnd:-b.lineWidth},"&-item":Object.assign(Object.assign({[T]:{zIndex:2}},O?{[`&${O}`]:{zIndex:2}}:{}),{[`&[disabled] ${g}`]:{zIndex:0}})}}function R(b,B,V){const{borderElCls:O}=V,L=O?`> ${O}`:"";return{[`&-item:not(${B}-first-item):not(${B}-last-item) ${L}`]:{borderRadius:0},[`&-item:not(${B}-last-item)${B}-first-item`]:{[`& ${L}, &${b}-sm ${L}, &${b}-lg ${L}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${B}-first-item)${B}-last-item`]:{[`& ${L}, &${b}-sm ${L}, &${b}-lg ${L}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function w(b){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:V}=b,O=`${V}-compact`;return{[O]:Object.assign(Object.assign({},v(b,O,B)),R(V,O,B))}}},14747:function(gt,Y,_){"use strict";_.d(Y,{Lx:function(){return B},Qy:function(){return L},Ro:function(){return w},Wf:function(){return R},dF:function(){return b},du:function(){return V},oN:function(){return O},vS:function(){return v}});const v={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},R=function(S){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:S.colorText,fontSize:S.fontSize,lineHeight:S.lineHeight,listStyle:"none",fontFamily:g?"inherit":S.fontFamily}},w=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),b=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),B=S=>({a:{color:S.colorLink,textDecoration:S.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${S.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:S.colorLinkHover},"&:active":{color:S.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:S.linkHoverDecoration,outline:0},"&:focus":{textDecoration:S.linkFocusDecoration,outline:0},"&[disabled]":{color:S.colorTextDisabled,cursor:"not-allowed"}}}),V=(S,g)=>{const{fontFamily:T,fontSize:k}=S,K=`[class^="${g}"], [class*=" ${g}"]`;return{[K]:{fontFamily:T,fontSize:k,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[K]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},O=S=>({outline:`${S.lineWidthFocus}px solid ${S.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),L=S=>({"&:focus-visible":Object.assign({},O(S))})},33507:function(gt,Y){"use strict";const _=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});Y.Z=_},16932:function(gt,Y,_){"use strict";_.d(Y,{J$:function(){return B}});var v=_(85731),R=_(93590);const w=new v.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),b=new v.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),B=function(V){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:L}=V,S=`${L}-fade`,g=O?"&":"";return[(0,R.R)(S,w,b,V.motionDurationMid,O),{[` + ${g}${S}-enter, + ${g}${S}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${g}${S}-leave`]:{animationTimingFunction:"linear"}}]}},93590:function(gt,Y,_){"use strict";_.d(Y,{R:function(){return w}});const v=b=>({animationDuration:b,animationFillMode:"both"}),R=b=>({animationDuration:b,animationFillMode:"both"}),w=function(b,B,V,O){const S=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${S}${b}-enter, + ${S}${b}-appear + `]:Object.assign(Object.assign({},v(O)),{animationPlayState:"paused"}),[`${S}${b}-leave`]:Object.assign(Object.assign({},R(O)),{animationPlayState:"paused"}),[` + ${S}${b}-enter${b}-enter-active, + ${S}${b}-appear${b}-appear-active + `]:{animationName:B,animationPlayState:"running"},[`${S}${b}-leave${b}-leave-active`]:{animationName:V,animationPlayState:"running",pointerEvents:"none"}}}},33297:function(gt,Y,_){"use strict";_.d(Y,{Fm:function(){return k}});var v=_(85731),R=_(93590);const w=new v.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b=new v.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),B=new v.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new v.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),O=new v.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L=new v.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new v.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new v.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),T={"move-up":{inKeyframes:S,outKeyframes:g},"move-down":{inKeyframes:w,outKeyframes:b},"move-left":{inKeyframes:B,outKeyframes:V},"move-right":{inKeyframes:O,outKeyframes:L}},k=(K,he)=>{const{antCls:ae}=K,fe=`${ae}-${he}`,{inKeyframes:_e,outKeyframes:be}=T[he];return[(0,R.R)(fe,_e,be,K.motionDurationMid),{[` + ${fe}-enter, + ${fe}-appear + `]:{opacity:0,animationTimingFunction:K.motionEaseOutCirc},[`${fe}-leave`]:{animationTimingFunction:K.motionEaseInOutCirc}}]}},48611:function(gt,Y,_){"use strict";_.d(Y,{Qt:function(){return B},Uw:function(){return b},fJ:function(){return w},ly:function(){return V},oN:function(){return k}});var v=_(85731),R=_(93590);const w=new v.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),b=new v.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),B=new v.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new v.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),O=new v.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),L=new v.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),S=new v.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),g=new v.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),T={"slide-up":{inKeyframes:w,outKeyframes:b},"slide-down":{inKeyframes:B,outKeyframes:V},"slide-left":{inKeyframes:O,outKeyframes:L},"slide-right":{inKeyframes:S,outKeyframes:g}},k=(K,he)=>{const{antCls:ae}=K,fe=`${ae}-${he}`,{inKeyframes:_e,outKeyframes:be}=T[he];return[(0,R.R)(fe,_e,be,K.motionDurationMid),{[` + ${fe}-enter, + ${fe}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:K.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${fe}-leave`]:{animationTimingFunction:K.motionEaseInQuint}}]}},50438:function(gt,Y,_){"use strict";_.d(Y,{_y:function(){return fe},kr:function(){return w}});var v=_(85731),R=_(93590);const w=new v.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b=new v.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),B=new v.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V=new v.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),O=new v.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),L=new v.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),S=new v.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),g=new v.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),T=new v.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),k=new v.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K=new v.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),he=new v.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ae={zoom:{inKeyframes:w,outKeyframes:b},"zoom-big":{inKeyframes:B,outKeyframes:V},"zoom-big-fast":{inKeyframes:B,outKeyframes:V},"zoom-left":{inKeyframes:S,outKeyframes:g},"zoom-right":{inKeyframes:T,outKeyframes:k},"zoom-up":{inKeyframes:O,outKeyframes:L},"zoom-down":{inKeyframes:K,outKeyframes:he}},fe=(_e,be)=>{const{antCls:xe}=_e,Xe=`${xe}-${be}`,{inKeyframes:We,outKeyframes:dt}=ae[be];return[(0,R.R)(Xe,We,dt,be==="zoom-big-fast"?_e.motionDurationFast:_e.motionDurationMid),{[` + ${Xe}-enter, + ${Xe}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:_e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Xe}-leave`]:{animationTimingFunction:_e.motionEaseInOutCirc}}]}},49867:function(gt,Y,_){"use strict";_.d(Y,{N:function(){return v}});const v=R=>({color:R.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${R.motionDurationSlow}`,"&:focus, &:hover":{color:R.colorLinkHover},"&:active":{color:R.colorLinkActive}})},77786:function(gt,Y,_){"use strict";_.d(Y,{qN:function(){return R},ZP:function(){return B},fS:function(){return w}});const v=(V,O,L,S,g)=>{const T=V/2,k=0,K=T,he=L*1/Math.sqrt(2),ae=T-L*(1-1/Math.sqrt(2)),fe=T-O*(1/Math.sqrt(2)),_e=L*(Math.sqrt(2)-1)+O*(1/Math.sqrt(2)),be=2*T-fe,xe=_e,Xe=2*T-he,We=ae,dt=2*T-k,Me=K,Se=T*Math.sqrt(2)+L*(Math.sqrt(2)-2),ze=L*(Math.sqrt(2)-1);return{pointerEvents:"none",width:V,height:V,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:V,height:V/2,background:S,clipPath:{_multi_value_:!0,value:[`polygon(${ze}px 100%, 50% ${ze}px, ${2*T-ze}px 100%, ${ze}px 100%)`,`path('M ${k} ${K} A ${L} ${L} 0 0 0 ${he} ${ae} L ${fe} ${_e} A ${O} ${O} 0 0 1 ${be} ${xe} L ${Xe} ${We} A ${L} ${L} 0 0 0 ${dt} ${Me} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:Se,height:Se,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${O}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}},R=8;function w(V){const O=R,{contentRadius:L,limitVerticalRadius:S}=V,g=L>12?L+2:12;return{dropdownArrowOffset:g,dropdownArrowOffsetVertical:S?O:g}}function b(V,O){return V?O:{}}function B(V,O){const{componentCls:L,sizePopupArrow:S,borderRadiusXS:g,borderRadiusOuter:T,boxShadowPopoverArrow:k}=V,{colorBg:K,contentRadius:he=V.borderRadiusLG,limitVerticalRadius:ae,arrowDistance:fe=0,arrowPlacement:_e={left:!0,right:!0,top:!0,bottom:!0}}=O,{dropdownArrowOffsetVertical:be,dropdownArrowOffset:xe}=w({contentRadius:he,limitVerticalRadius:ae});return{[L]:Object.assign(Object.assign(Object.assign(Object.assign({[`${L}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},v(S,g,T,K,k)),{"&:before":{background:K}})]},b(!!_e.top,{[[`&-placement-top ${L}-arrow`,`&-placement-topLeft ${L}-arrow`,`&-placement-topRight ${L}-arrow`].join(",")]:{bottom:fe,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${L}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${L}-arrow`]:{left:{_skip_check_:!0,value:xe}},[`&-placement-topRight ${L}-arrow`]:{right:{_skip_check_:!0,value:xe}}})),b(!!_e.bottom,{[[`&-placement-bottom ${L}-arrow`,`&-placement-bottomLeft ${L}-arrow`,`&-placement-bottomRight ${L}-arrow`].join(",")]:{top:fe,transform:"translateY(-100%)"},[`&-placement-bottom ${L}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${L}-arrow`]:{left:{_skip_check_:!0,value:xe}},[`&-placement-bottomRight ${L}-arrow`]:{right:{_skip_check_:!0,value:xe}}})),b(!!_e.left,{[[`&-placement-left ${L}-arrow`,`&-placement-leftTop ${L}-arrow`,`&-placement-leftBottom ${L}-arrow`].join(",")]:{right:{_skip_check_:!0,value:fe},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${L}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${L}-arrow`]:{top:be},[`&-placement-leftBottom ${L}-arrow`]:{bottom:be}})),b(!!_e.right,{[[`&-placement-right ${L}-arrow`,`&-placement-rightTop ${L}-arrow`,`&-placement-rightBottom ${L}-arrow`].join(",")]:{left:{_skip_check_:!0,value:fe},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${L}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${L}-arrow`]:{top:be},[`&-placement-rightBottom ${L}-arrow`]:{bottom:be}}))}}},72269:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return tt}});var v=_(67294),R=_(22508),w=_(94184),b=_.n(w),B=_(87462),V=_(4942),O=_(97685),L=_(91),S=_(21770),g=_(15105),T=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],k=v.forwardRef(function(Oe,Xt){var Ft,ot=Oe.prefixCls,xt=ot===void 0?"rc-switch":ot,ut=Oe.className,$t=Oe.checked,_t=Oe.defaultChecked,bn=Oe.disabled,Wn=Oe.loadingIcon,$r=Oe.checkedChildren,wi=Oe.unCheckedChildren,oo=Oe.onClick,Mo=Oe.onChange,Ti=Oe.onKeyDown,Hr=(0,L.Z)(Oe,T),Ho=(0,S.Z)(!1,{value:$t,defaultValue:_t}),Ss=(0,O.Z)(Ho,2),Pe=Ss[0],qo=Ss[1];function Ki(Mn,nt){var Dt=Pe;return bn||(Dt=Mn,qo(Dt),Mo==null||Mo(Dt,nt)),Dt}function Do(Mn){Mn.which===g.Z.LEFT?Ki(!1,Mn):Mn.which===g.Z.RIGHT&&Ki(!0,Mn),Ti==null||Ti(Mn)}function ai(Mn){var nt=Ki(!Pe,Mn);oo==null||oo(nt,Mn)}var $o=b()(xt,ut,(Ft={},(0,V.Z)(Ft,"".concat(xt,"-checked"),Pe),(0,V.Z)(Ft,"".concat(xt,"-disabled"),bn),Ft));return v.createElement("button",(0,B.Z)({},Hr,{type:"button",role:"switch","aria-checked":Pe,disabled:bn,className:$o,ref:Xt,onKeyDown:Do,onClick:ai}),Wn,v.createElement("span",{className:"".concat(xt,"-inner")},v.createElement("span",{className:"".concat(xt,"-inner-checked")},$r),v.createElement("span",{className:"".concat(xt,"-inner-unchecked")},wi)))});k.displayName="Switch";var K=k,he=_(45353),ae=_(53124),fe=_(98866),_e=_(98675),be=_(10274),xe=_(14747),Xe=_(67968),We=_(45503);const dt=Oe=>{const{componentCls:Xt,trackHeightSM:Ft,trackPadding:ot,trackMinWidthSM:xt,innerMinMarginSM:ut,innerMaxMarginSM:$t,handleSizeSM:_t}=Oe,bn=`${Xt}-inner`;return{[Xt]:{[`&${Xt}-small`]:{minWidth:xt,height:Ft,lineHeight:`${Ft}px`,[`${Xt}-inner`]:{paddingInlineStart:$t,paddingInlineEnd:ut,[`${bn}-checked`]:{marginInlineStart:`calc(-100% + ${_t+ot*2}px - ${$t*2}px)`,marginInlineEnd:`calc(100% - ${_t+ot*2}px + ${$t*2}px)`},[`${bn}-unchecked`]:{marginTop:-Ft,marginInlineStart:0,marginInlineEnd:0}},[`${Xt}-handle`]:{width:_t,height:_t},[`${Xt}-loading-icon`]:{top:(_t-Oe.switchLoadingIconSize)/2,fontSize:Oe.switchLoadingIconSize},[`&${Xt}-checked`]:{[`${Xt}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:$t,[`${bn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${bn}-unchecked`]:{marginInlineStart:`calc(100% - ${_t+ot*2}px + ${$t*2}px)`,marginInlineEnd:`calc(-100% + ${_t+ot*2}px - ${$t*2}px)`}},[`${Xt}-handle`]:{insetInlineStart:`calc(100% - ${_t+ot}px)`}},[`&:not(${Xt}-disabled):active`]:{[`&:not(${Xt}-checked) ${bn}`]:{[`${bn}-unchecked`]:{marginInlineStart:Oe.marginXXS/2,marginInlineEnd:-Oe.marginXXS/2}},[`&${Xt}-checked ${bn}`]:{[`${bn}-checked`]:{marginInlineStart:-Oe.marginXXS/2,marginInlineEnd:Oe.marginXXS/2}}}}}}},Me=Oe=>{const{componentCls:Xt,handleSize:Ft}=Oe;return{[Xt]:{[`${Xt}-loading-icon${Oe.iconCls}`]:{position:"relative",top:(Ft-Oe.fontSize)/2,color:Oe.switchLoadingIconColor,verticalAlign:"top"},[`&${Xt}-checked ${Xt}-loading-icon`]:{color:Oe.switchColor}}}},Se=Oe=>{const{componentCls:Xt,motion:Ft,trackPadding:ot,handleBg:xt,handleShadow:ut,handleSize:$t}=Oe,_t=`${Xt}-handle`;return{[Xt]:{[_t]:{position:"absolute",top:ot,insetInlineStart:ot,width:$t,height:$t,transition:`all ${Oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:xt,borderRadius:$t/2,boxShadow:ut,transition:`all ${Oe.switchDuration} ease-in-out`,content:'""'}},[`&${Xt}-checked ${_t}`]:{insetInlineStart:`calc(100% - ${$t+ot}px)`},[`&:not(${Xt}-disabled):active`]:Ft?{[`${_t}::before`]:{insetInlineEnd:Oe.switchHandleActiveInset,insetInlineStart:0},[`&${Xt}-checked ${_t}::before`]:{insetInlineEnd:0,insetInlineStart:Oe.switchHandleActiveInset}}:{}}}},ze=Oe=>{const{componentCls:Xt,trackHeight:Ft,trackPadding:ot,innerMinMargin:xt,innerMaxMargin:ut,handleSize:$t}=Oe,_t=`${Xt}-inner`;return{[Xt]:{[_t]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ut,paddingInlineEnd:xt,transition:`padding-inline-start ${Oe.switchDuration} ease-in-out, padding-inline-end ${Oe.switchDuration} ease-in-out`,[`${_t}-checked, ${_t}-unchecked`]:{display:"block",color:Oe.colorTextLightSolid,fontSize:Oe.fontSizeSM,transition:`margin-inline-start ${Oe.switchDuration} ease-in-out, margin-inline-end ${Oe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${_t}-checked`]:{marginInlineStart:`calc(-100% + ${$t+ot*2}px - ${ut*2}px)`,marginInlineEnd:`calc(100% - ${$t+ot*2}px + ${ut*2}px)`},[`${_t}-unchecked`]:{marginTop:-Ft,marginInlineStart:0,marginInlineEnd:0}},[`&${Xt}-checked ${_t}`]:{paddingInlineStart:xt,paddingInlineEnd:ut,[`${_t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_t}-unchecked`]:{marginInlineStart:`calc(100% - ${$t+ot*2}px + ${ut*2}px)`,marginInlineEnd:`calc(-100% + ${$t+ot*2}px - ${ut*2}px)`}},[`&:not(${Xt}-disabled):active`]:{[`&:not(${Xt}-checked) ${_t}`]:{[`${_t}-unchecked`]:{marginInlineStart:ot*2,marginInlineEnd:-ot*2}},[`&${Xt}-checked ${_t}`]:{[`${_t}-checked`]:{marginInlineStart:-ot*2,marginInlineEnd:ot*2}}}}}},De=Oe=>{const{componentCls:Xt,trackHeight:Ft,trackMinWidth:ot}=Oe;return{[Xt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(Oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ot,height:Ft,lineHeight:`${Ft}px`,verticalAlign:"middle",background:Oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Xt}-disabled)`]:{background:Oe.colorTextTertiary}}),(0,xe.Qy)(Oe)),{[`&${Xt}-checked`]:{background:Oe.switchColor,[`&:hover:not(${Xt}-disabled)`]:{background:Oe.colorPrimaryHover}},[`&${Xt}-loading, &${Xt}-disabled`]:{cursor:"not-allowed",opacity:Oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Xt}-rtl`]:{direction:"rtl"}})}};var ke=(0,Xe.Z)("Switch",Oe=>{const Xt=(0,We.TS)(Oe,{switchDuration:Oe.motionDurationMid,switchColor:Oe.colorPrimary,switchDisabledOpacity:Oe.opacityLoading,switchLoadingIconSize:Oe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[De(Xt),ze(Xt),Se(Xt),Me(Xt),dt(Xt)]},Oe=>{const{fontSize:Xt,lineHeight:Ft,controlHeight:ot,colorWhite:xt}=Oe,ut=Xt*Ft,$t=ot/2,_t=2,bn=ut-_t*2,Wn=$t-_t*2;return{trackHeight:ut,trackHeightSM:$t,trackMinWidth:bn*2+_t*4,trackMinWidthSM:Wn*2+_t*2,trackPadding:_t,handleBg:xt,handleSize:bn,handleSizeSM:Wn,handleShadow:`0 2px 4px 0 ${new be.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:bn/2,innerMaxMargin:bn+_t+_t*2,innerMinMarginSM:Wn/2,innerMaxMarginSM:Wn+_t+_t*2}}),$e=function(Oe,Xt){var Ft={};for(var ot in Oe)Object.prototype.hasOwnProperty.call(Oe,ot)&&Xt.indexOf(ot)<0&&(Ft[ot]=Oe[ot]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,ot=Object.getOwnPropertySymbols(Oe);xt{const{prefixCls:Ft,size:ot,disabled:xt,loading:ut,className:$t,rootClassName:_t,style:bn}=Oe,Wn=$e(Oe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:$r,direction:wi,switch:oo}=v.useContext(ae.E_),Mo=v.useContext(fe.Z),Ti=(xt!=null?xt:Mo)||ut,Hr=$r("switch",Ft),Ho=v.createElement("div",{className:`${Hr}-handle`},ut&&v.createElement(R.Z,{className:`${Hr}-loading-icon`})),[Ss,Pe]=ke(Hr),qo=(0,_e.Z)(ot),Ki=b()(oo==null?void 0:oo.className,{[`${Hr}-small`]:qo==="small",[`${Hr}-loading`]:ut,[`${Hr}-rtl`]:wi==="rtl"},$t,_t,Pe),Do=Object.assign(Object.assign({},oo==null?void 0:oo.style),bn);return Ss(v.createElement(he.Z,{component:"Switch"},v.createElement(K,Object.assign({},Wn,{prefixCls:Hr,className:Ki,style:Do,disabled:Ti,ref:Xt,loadingIcon:Ho}))))});Te.__ANT_SWITCH=!0;var tt=Te},64974:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Fr}});var v=_(67294),R={},w="rc-table-internal-hook",b=_(97685),B=_(66680),V=_(8410),O=_(91881),L=_(73935);function S(Ke){var lt=v.createContext(void 0),jt=function(Rt){var Jt=Rt.value,dr=Rt.children,pr=v.useRef(Jt);pr.current=Jt;var Hn=v.useState(function(){return{getValue:function(){return pr.current},listeners:new Set}}),wr=(0,b.Z)(Hn,1),vr=wr[0];return(0,V.Z)(function(){(0,L.unstable_batchedUpdates)(function(){vr.listeners.forEach(function(kr){kr(Jt)})})},[Jt]),v.createElement(lt.Provider,{value:vr},dr)};return{Context:lt,Provider:jt,defaultValue:Ke}}function g(Ke,lt){var jt=(0,B.Z)(typeof lt=="function"?lt:function(kr){if(lt===void 0)return kr;if(!Array.isArray(lt))return kr[lt];var Yr={};return lt.forEach(function(Ni){Yr[Ni]=kr[Ni]}),Yr}),Nt=v.useContext(Ke==null?void 0:Ke.Context),Rt=Nt||{},Jt=Rt.listeners,dr=Rt.getValue,pr=v.useRef();pr.current=jt(Nt?dr():Ke==null?void 0:Ke.defaultValue);var Hn=v.useState({}),wr=(0,b.Z)(Hn,2),vr=wr[1];return(0,V.Z)(function(){if(!Nt)return;function kr(Yr){var Ni=jt(Yr);(0,O.Z)(pr.current,Ni,!0)||vr({})}return Jt.add(kr),function(){Jt.delete(kr)}},[Nt]),pr.current}var T=_(87462),k=_(42550);function K(){var Ke=v.createContext(null);function lt(){return v.useContext(Ke)}function jt(Rt,Jt){var dr=(0,k.Yr)(Rt),pr=function(wr,vr){var kr=dr?{ref:vr}:{},Yr=v.useRef(0),Ni=v.useRef(wr),Jn=lt();return Jn!==null?v.createElement(Rt,(0,T.Z)({},wr,kr)):((!Jt||Jt(Ni.current,wr))&&(Yr.current+=1),Ni.current=wr,v.createElement(Ke.Provider,{value:Yr.current},v.createElement(Rt,(0,T.Z)({},wr,kr))))};return dr?v.forwardRef(pr):pr}function Nt(Rt,Jt){var dr=(0,k.Yr)(Rt),pr=function(wr,vr){var kr=dr?{ref:vr}:{};return lt(),v.createElement(Rt,(0,T.Z)({},wr,kr))};return dr?v.memo(v.forwardRef(pr),Jt):v.memo(pr,Jt)}return{makeImmutable:jt,responseImmutable:Nt,useImmutableMark:lt}}var he=K(),ae=he.makeImmutable,fe=he.responseImmutable,_e=he.useImmutableMark,be=K(),xe=be.makeImmutable,Xe=be.responseImmutable,We=be.useImmutableMark,dt=S(),Me=dt;function Se(Ke,lt){var jt=v.useRef(0);jt.current+=1;var Nt=v.useRef(Ke),Rt=[];Object.keys(Ke||{}).map(function(dr){var pr;(Ke==null?void 0:Ke[dr])!==((pr=Nt.current)===null||pr===void 0?void 0:pr[dr])&&Rt.push(dr)}),Nt.current=Ke;var Jt=v.useRef([]);return Rt.length&&(Jt.current=Rt),v.useDebugValue(jt.current),v.useDebugValue(Jt.current.join(", ")),lt&&console.log("".concat(lt,":"),jt.current,Jt.current),jt.current}var ze=null,De=v.memo(function(){var Ke=Se();return v.createElement("h1",null,"Render Times: ",Ke)});De.displayName="RenderBlock";var ke=_(71002),$e=_(1413),Te=_(4942),tt=_(94184),Oe=_.n(tt),Xt=_(56982),Ft=_(95013),ot=_(80334),xt=v.createContext({renderWithProps:!1}),ut=xt,$t="RC_TABLE_KEY";function _t(Ke){return Ke==null?[]:Array.isArray(Ke)?Ke:[Ke]}function bn(Ke){var lt=[],jt={};return Ke.forEach(function(Nt){for(var Rt=Nt||{},Jt=Rt.key,dr=Rt.dataIndex,pr=Jt||_t(dr).join("-")||$t;jt[pr];)pr="".concat(pr,"_next");jt[pr]=!0,lt.push(pr)}),lt}function Wn(Ke){return Ke!=null}function $r(Ke){return Ke&&(0,ke.Z)(Ke)==="object"&&!Array.isArray(Ke)&&!v.isValidElement(Ke)}function wi(Ke,lt,jt,Nt,Rt,Jt){var dr=v.useContext(ut),pr=We(),Hn=(0,Xt.Z)(function(){if(Wn(Nt))return[Nt];var wr=lt==null||lt===""?[]:Array.isArray(lt)?lt:[lt],vr=(0,Ft.Z)(Ke,wr),kr=vr,Yr=void 0;if(Rt){var Ni=Rt(vr,Ke,jt);$r(Ni)?(kr=Ni.children,Yr=Ni.props,dr.renderWithProps=!0):kr=Ni}return[kr,Yr]},[pr,Ke,Nt,lt,Rt,jt],function(wr,vr){if(Jt){var kr=(0,b.Z)(wr,2),Yr=kr[1],Ni=(0,b.Z)(vr,2),Jn=Ni[1];return Jt(Jn,Yr)}return dr.renderWithProps?!0:!(0,O.Z)(wr,vr,!0)});return Hn}function oo(Ke,lt,jt,Nt){var Rt=Ke+lt-1;return Ke<=Nt&&Rt>=jt}function Mo(Ke,lt){return g(Me,function(jt){var Nt=oo(Ke,lt||1,jt.hoverStartRow,jt.hoverEndRow);return[Nt,jt.onHover]})}var Ti=function(lt){var jt=lt.ellipsis,Nt=lt.rowType,Rt=lt.children,Jt,dr=jt===!0?{showTitle:!0}:jt;return dr&&(dr.showTitle||Nt==="header")&&(typeof Rt=="string"||typeof Rt=="number"?Jt=Rt.toString():v.isValidElement(Rt)&&typeof Rt.props.children=="string"&&(Jt=Rt.props.children)),Jt};function Hr(Ke){var lt,jt,Nt,Rt,Jt,dr,pr,Hn,wr=Ke.component,vr=Ke.children,kr=Ke.ellipsis,Yr=Ke.scope,Ni=Ke.prefixCls,Jn=Ke.className,Kr=Ke.align,ir=Ke.record,Or=Ke.render,Nn=Ke.dataIndex,Rr=Ke.renderIndex,Xr=Ke.shouldCellUpdate,fi=Ke.index,ri=Ke.rowType,Ri=Ke.colSpan,ro=Ke.rowSpan,fo=Ke.fixLeft,zo=Ke.fixRight,Oo=Ke.firstFixLeft,cs=Ke.lastFixLeft,Pi=Ke.firstFixRight,Us=Ke.lastFixRight,rs=Ke.appendNode,ao=Ke.additionalProps,ca=ao===void 0?{}:ao,Ea=Ke.isSticky,ia="".concat(Ni,"-cell"),qt=g(Me,["supportSticky","allColumnsFixedLeft"]),gr=qt.supportSticky,hi=qt.allColumnsFixedLeft,fs=wi(ir,Nn,Rr,vr,Or,Xr),vs=(0,b.Z)(fs,2),ga=vs[0],Qi=vs[1],vo={},Bo=typeof fo=="number"&&gr,Os=typeof zo=="number"&&gr;Bo&&(vo.position="sticky",vo.left=fo),Os&&(vo.position="sticky",vo.right=zo);var _a=(lt=(jt=(Nt=Qi==null?void 0:Qi.colSpan)!==null&&Nt!==void 0?Nt:ca.colSpan)!==null&&jt!==void 0?jt:Ri)!==null&<!==void 0?lt:1,Ve=(Rt=(Jt=(dr=Qi==null?void 0:Qi.rowSpan)!==null&&dr!==void 0?dr:ca.rowSpan)!==null&&Jt!==void 0?Jt:ro)!==null&&Rt!==void 0?Rt:1,Da=Mo(fi,Ve),sl=(0,b.Z)(Da,2),Ol=sl[0],Ps=sl[1],La=function(xl){var Qa;ir&&Ps(fi,fi+Ve-1),ca==null||(Qa=ca.onMouseEnter)===null||Qa===void 0||Qa.call(ca,xl)},zl=function(xl){var Qa;ir&&Ps(-1,-1),ca==null||(Qa=ca.onMouseLeave)===null||Qa===void 0||Qa.call(ca,xl)};if(_a===0||Ve===0)return null;var la=(pr=ca.title)!==null&&pr!==void 0?pr:Ti({rowType:ri,ellipsis:kr,children:ga}),yo=Oe()(ia,Jn,(Hn={},(0,Te.Z)(Hn,"".concat(ia,"-fix-left"),Bo&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-left-first"),Oo&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-left-last"),cs&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-left-all"),cs&&hi&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-right"),Os&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-right-first"),Pi&&gr),(0,Te.Z)(Hn,"".concat(ia,"-fix-right-last"),Us&&gr),(0,Te.Z)(Hn,"".concat(ia,"-ellipsis"),kr),(0,Te.Z)(Hn,"".concat(ia,"-with-append"),rs),(0,Te.Z)(Hn,"".concat(ia,"-fix-sticky"),(Bo||Os)&&Ea&&gr),(0,Te.Z)(Hn,"".concat(ia,"-row-hover"),!Qi&&Ol),Hn),ca.className,Qi==null?void 0:Qi.className),Ws={};Kr&&(Ws.textAlign=Kr);var _s=(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},vo),ca.style),Ws),Qi==null?void 0:Qi.style),ba=ga;return(0,ke.Z)(ba)==="object"&&!Array.isArray(ba)&&!v.isValidElement(ba)&&(ba=null),kr&&(cs||Pi)&&(ba=v.createElement("span",{className:"".concat(ia,"-content")},ba)),v.createElement(wr,(0,T.Z)({},Qi,ca,{className:yo,style:_s,title:la,scope:Yr,onMouseEnter:La,onMouseLeave:zl,colSpan:_a!==1?_a:null,rowSpan:Ve!==1?Ve:null}),rs,ba)}var Ho=v.memo(Hr);function Ss(Ke,lt,jt,Nt,Rt,Jt){var dr=jt[Ke]||{},pr=jt[lt]||{},Hn,wr;dr.fixed==="left"?Hn=Nt.left[Rt==="rtl"?lt:Ke]:pr.fixed==="right"&&(wr=Nt.right[Rt==="rtl"?Ke:lt]);var vr=!1,kr=!1,Yr=!1,Ni=!1,Jn=jt[lt+1],Kr=jt[Ke-1],ir=!(Jt!=null&&Jt.children);if(Rt==="rtl"){if(Hn!==void 0){var Or=Kr&&Kr.fixed==="left";Ni=!Or&&ir}else if(wr!==void 0){var Nn=Jn&&Jn.fixed==="right";Yr=!Nn&&ir}}else if(Hn!==void 0){var Rr=Jn&&Jn.fixed==="left";vr=!Rr&&ir}else if(wr!==void 0){var Xr=Kr&&Kr.fixed==="right";kr=!Xr&&ir}return{fixLeft:Hn,fixRight:wr,lastFixLeft:vr,firstFixRight:kr,lastFixRight:Yr,firstFixLeft:Ni,isSticky:Nt.isSticky}}var Pe=v.createContext({}),qo=Pe;function Ki(Ke){var lt=Ke.className,jt=Ke.index,Nt=Ke.children,Rt=Ke.colSpan,Jt=Rt===void 0?1:Rt,dr=Ke.rowSpan,pr=Ke.align,Hn=g(Me,["prefixCls","direction"]),wr=Hn.prefixCls,vr=Hn.direction,kr=v.useContext(qo),Yr=kr.scrollColumnIndex,Ni=kr.stickyOffsets,Jn=kr.flattenColumns,Kr=kr.columns,ir=jt+Jt-1,Or=ir+1===Yr?Jt+1:Jt,Nn=Ss(jt,jt+Or-1,Jn,Ni,vr,Kr==null?void 0:Kr[jt]);return v.createElement(Ho,(0,T.Z)({className:lt,index:jt,component:"td",prefixCls:wr,record:null,dataIndex:null,align:pr,colSpan:Or,rowSpan:dr,render:function(){return Nt}},Nn))}var Do=_(91),ai=["children"];function $o(Ke){var lt=Ke.children,jt=(0,Do.Z)(Ke,ai);return v.createElement("tr",jt,lt)}function Mn(Ke){var lt=Ke.children;return lt}Mn.Row=$o,Mn.Cell=Ki;var nt=Mn;function Dt(Ke){var lt=Ke.children,jt=Ke.stickyOffsets,Nt=Ke.flattenColumns,Rt=Ke.columns,Jt=g(Me,"prefixCls"),dr=Nt.length-1,pr=Nt[dr],Hn=v.useMemo(function(){return{stickyOffsets:jt,flattenColumns:Nt,scrollColumnIndex:pr!=null&&pr.scrollbar?dr:null,columns:Rt}},[pr,Nt,dr,jt,Rt]);return v.createElement(qo.Provider,{value:Hn},v.createElement("tfoot",{className:"".concat(Jt,"-summary")},lt))}var Kt=Xe(Dt),mn=nt,kn=_(48555),an=_(5110),tn=_(79370),kt=_(74204),en=_(64217);function Vn(Ke,lt,jt,Nt,Rt,Jt,dr){Ke.push({record:lt,indent:jt,index:dr});var pr=Jt(lt),Hn=Rt==null?void 0:Rt.has(pr);if(lt&&Array.isArray(lt[Nt])&&Hn)for(var wr=0;wr1?Oo-1:0),Pi=1;Pi=0;pr-=1){var Hn=lt[pr],wr=jt&&jt[pr],vr=wr&&wr[Vt];if(Hn||vr||dr){var kr=vr||{},Yr=kr.columnType,Ni=(0,Do.Z)(kr,En);Rt.unshift(v.createElement("col",(0,T.Z)({key:pr,style:{width:Hn}},Ni))),dr=!0}}return v.createElement("colgroup",null,Rt)}var Tr=er,Nr=_(74902),Zn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ut(Ke,lt){return(0,v.useMemo)(function(){for(var jt=[],Nt=0;Nt1?"colgroup":"col":null,ellipsis:ir.ellipsis,align:ir.align,component:ir.title?Jt:dr,prefixCls:vr,key:Ni[Kr]},Or,{additionalProps:Nn,rowType:"header"}))}))}Br.displayName="HeaderRow";var _o=Br;function Qt(Ke){var lt=[];function jt(dr,pr){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;lt[Hn]=lt[Hn]||[];var wr=pr,vr=dr.filter(Boolean).map(function(kr){var Yr={key:kr.key,className:kr.className||"",children:kr.title,column:kr,colStart:wr},Ni=1,Jn=kr.children;return Jn&&Jn.length>0&&(Ni=jt(Jn,wr,Hn+1).reduce(function(Kr,ir){return Kr+ir},0),Yr.hasSubColumns=!0),"colSpan"in kr&&(Ni=kr.colSpan),"rowSpan"in kr&&(Yr.rowSpan=kr.rowSpan),Yr.colSpan=Ni,Yr.colEnd=Yr.colStart+Ni-1,lt[Hn].push(Yr),wr+=Ni,Ni});return vr}jt(Ke,0);for(var Nt=lt.length,Rt=function(pr){lt[pr].forEach(function(Hn){!("rowSpan"in Hn)&&!Hn.hasSubColumns&&(Hn.rowSpan=Nt-pr)})},Jt=0;Jt1&&arguments[1]!==void 0?arguments[1]:"";return typeof lt=="number"?lt:lt.endsWith("%")?Ke*parseFloat(lt)/100:null}function zi(Ke,lt,jt){return v.useMemo(function(){if(lt&<>0){var Nt=0,Rt=0;Ke.forEach(function(Yr){var Ni=Mi(lt,Yr.width);Ni?Nt+=Ni:Rt+=1});var Jt=Math.max(lt,jt),dr=Math.max(Jt-Nt,Rt),pr=Rt,Hn=dr/Rt,wr=0,vr=Ke.map(function(Yr){var Ni=(0,$e.Z)({},Yr),Jn=Mi(lt,Ni.width);if(Jn)Ni.width=Jn;else{var Kr=Math.floor(Hn);Ni.width=pr===1?dr:Kr,dr-=Kr,pr-=1}return wr+=Ni.width,Ni});if(wr1&&arguments[1]!==void 0?arguments[1]:"key";return Ke.filter(function(jt){return jt&&(0,ke.Z)(jt)==="object"}).reduce(function(jt,Nt,Rt){var Jt=Nt.fixed,dr=Jt===!0?"left":Jt,pr="".concat(lt,"-").concat(Rt),Hn=Nt.children;return Hn&&Hn.length>0?[].concat((0,Nr.Z)(jt),(0,Nr.Z)(qi(Hn,pr).map(function(wr){return(0,$e.Z)({fixed:dr},wr)}))):[].concat((0,Nr.Z)(jt),[(0,$e.Z)((0,$e.Z)({key:pr},Nt),{},{fixed:dr})])},[])}function Vr(Ke){for(var lt=!0,jt=0;jt=0;Jt-=1){var dr=Ke[Jt];if(Rt&&dr.fixed!=="right")Rt=!1;else if(!Rt&&dr.fixed==="right"){warning(!1,"Index ".concat(Jt+1," of `columns` missing `fixed='right'` prop."));break}}}function ii(Ke){return Ke.map(function(lt){var jt=lt.fixed,Nt=(0,Do.Z)(lt,Si),Rt=jt;return jt==="left"?Rt="right":jt==="right"&&(Rt="left"),(0,$e.Z)({fixed:Rt},Nt)})}function nr(Ke,lt){var jt=Ke.prefixCls,Nt=Ke.columns,Rt=Ke.children,Jt=Ke.expandable,dr=Ke.expandedKeys,pr=Ke.columnTitle,Hn=Ke.getRowKey,wr=Ke.onTriggerExpand,vr=Ke.expandIcon,kr=Ke.rowExpandable,Yr=Ke.expandIconColumnIndex,Ni=Ke.direction,Jn=Ke.expandRowByClick,Kr=Ke.columnWidth,ir=Ke.fixed,Or=Ke.scrollWidth,Nn=Ke.clientWidth,Rr=v.useMemo(function(){return Nt||ni(Rt)},[Nt,Rt]),Xr=v.useMemo(function(){if(Jt){var Oo,cs=Rr.slice();if(!cs.includes(R)){var Pi=Yr||0;Pi>=0&&cs.splice(Pi,0,R)}var Us=cs.indexOf(R);cs=cs.filter(function(Ea,ia){return Ea!==R||ia===Us});var rs=Rr[Us],ao;(ir==="left"||ir)&&!Yr?ao="left":(ir==="right"||ir)&&Yr===Rr.length?ao="right":ao=rs?rs.fixed:null;var ca=(Oo={},(0,Te.Z)(Oo,Vt,{className:"".concat(jt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Te.Z)(Oo,"title",pr),(0,Te.Z)(Oo,"fixed",ao),(0,Te.Z)(Oo,"className","".concat(jt,"-row-expand-icon-cell")),(0,Te.Z)(Oo,"width",Kr),(0,Te.Z)(Oo,"render",function(ia,qt,gr){var hi=Hn(qt,gr),fs=dr.has(hi),vs=kr?kr(qt):!0,ga=vr({prefixCls:jt,expanded:fs,expandable:vs,record:qt,onExpand:wr});return Jn?v.createElement("span",{onClick:function(vo){return vo.stopPropagation()}},ga):ga}),Oo);return cs.map(function(Ea){return Ea===R?ca:Ea})}return Rr.filter(function(Ea){return Ea!==R})},[Jt,Rr,Hn,dr,vr,Ni]),fi=v.useMemo(function(){var Oo=Xr;return lt&&(Oo=lt(Oo)),Oo.length||(Oo=[{render:function(){return null}}]),Oo},[lt,Xr,Ni]),ri=v.useMemo(function(){return Ni==="rtl"?ii(qi(fi)):qi(fi)},[fi,Ni,Or]),Ri=zi(ri,Or,Nn),ro=(0,b.Z)(Ri,2),fo=ro[0],zo=ro[1];return[fi,fo,zo]}var Mr=nr;function rr(Ke){var lt,jt=Ke.prefixCls,Nt=Ke.record,Rt=Ke.onExpand,Jt=Ke.expanded,dr=Ke.expandable,pr="".concat(jt,"-row-expand-icon");if(!dr)return v.createElement("span",{className:Oe()(pr,"".concat(jt,"-row-spaced"))});var Hn=function(vr){Rt(Nt,vr),vr.stopPropagation()};return v.createElement("span",{className:Oe()(pr,(lt={},(0,Te.Z)(lt,"".concat(jt,"-row-expanded"),Jt),(0,Te.Z)(lt,"".concat(jt,"-row-collapsed"),!Jt),lt)),onClick:Hn})}function to(Ke,lt,jt){var Nt=[];function Rt(Jt){(Jt||[]).forEach(function(dr,pr){Nt.push(lt(dr,pr)),Rt(dr[jt])})}return Rt(Ke),Nt}function ts(Ke,lt,jt){var Nt=Yt(Ke),Rt=Nt.expandIcon,Jt=Nt.expandedRowKeys,dr=Nt.defaultExpandedRowKeys,pr=Nt.defaultExpandAllRows,Hn=Nt.expandedRowRender,wr=Nt.onExpand,vr=Nt.onExpandedRowsChange,kr=Nt.childrenColumnName,Yr=Rt||rr,Ni=kr||"children",Jn=v.useMemo(function(){return Hn?"row":Ke.expandable&&Ke.internalHooks===w&&Ke.expandable.__PARENT_RENDER_ICON__||lt.some(function(fi){return fi&&(0,ke.Z)(fi)==="object"&&fi[Ni]})?"nest":!1},[!!Hn,lt]),Kr=v.useState(function(){return dr||(pr?to(lt,jt,Ni):[])}),ir=(0,b.Z)(Kr,2),Or=ir[0],Nn=ir[1],Rr=v.useMemo(function(){return new Set(Jt||Or||[])},[Jt,Or]),Xr=v.useCallback(function(fi){var ri=jt(fi,lt.indexOf(fi)),Ri,ro=Rr.has(ri);ro?(Rr.delete(ri),Ri=(0,Nr.Z)(Rr)):Ri=[].concat((0,Nr.Z)(Rr),[ri]),Nn(Ri),wr&&wr(!ro,fi),vr&&vr(Ri)},[jt,Rr,lt,wr,vr]);return[Nt,Jn,Rr,Yr,Ni,Xr]}function Wr(Ke,lt,jt,Nt){var Rt=Ke.map(function(Jt,dr){return Ss(dr,dr,Ke,lt,jt,Nt==null?void 0:Nt[dr])});return(0,Xt.Z)(function(){return Rt},[Rt],function(Jt,dr){return!(0,O.Z)(Jt,dr)})}function no(Ke){var lt=(0,v.useRef)(Ke),jt=(0,v.useState)({}),Nt=(0,b.Z)(jt,2),Rt=Nt[1],Jt=(0,v.useRef)(null),dr=(0,v.useRef)([]);function pr(Hn){dr.current.push(Hn);var wr=Promise.resolve();Jt.current=wr,wr.then(function(){if(Jt.current===wr){var vr=dr.current,kr=lt.current;dr.current=[],vr.forEach(function(Yr){lt.current=Yr(lt.current)}),Jt.current=null,kr!==lt.current&&Rt({})}})}return(0,v.useEffect)(function(){return function(){Jt.current=null}},[]),[lt.current,pr]}function Vi(Ke){var lt=(0,v.useRef)(Ke||null),jt=(0,v.useRef)();function Nt(){window.clearTimeout(jt.current)}function Rt(dr){lt.current=dr,Nt(),jt.current=window.setTimeout(function(){lt.current=null,jt.current=void 0},100)}function Jt(){return lt.current}return(0,v.useEffect)(function(){return Nt},[]),[Rt,Jt]}function Pn(){var Ke=v.useState(-1),lt=(0,b.Z)(Ke,2),jt=lt[0],Nt=lt[1],Rt=v.useState(-1),Jt=(0,b.Z)(Rt,2),dr=Jt[0],pr=Jt[1],Hn=v.useCallback(function(wr,vr){Nt(wr),pr(vr)},[]);return[jt,dr,Hn]}var mi=_(98924),ya=(0,mi.Z)()?window:null;function Zs(Ke,lt){var jt=(0,ke.Z)(Ke)==="object"?Ke:{},Nt=jt.offsetHeader,Rt=Nt===void 0?0:Nt,Jt=jt.offsetSummary,dr=Jt===void 0?0:Jt,pr=jt.offsetScroll,Hn=pr===void 0?0:pr,wr=jt.getContainer,vr=wr===void 0?function(){return ya}:wr,kr=vr()||ya;return v.useMemo(function(){var Yr=!!Ke;return{isSticky:Yr,stickyClassName:Yr?"".concat(lt,"-sticky-holder"):"",offsetHeader:Rt,offsetSummary:dr,offsetScroll:Hn,container:kr}},[Hn,Rt,dr,lt,kr])}function qs(Ke,lt,jt){var Nt=(0,v.useMemo)(function(){for(var Rt=[],Jt=[],dr=0,pr=0,Hn=0;Hn=kr&&(ca=kr-Yr),dr({scrollLeft:ca/kr*(vr+2)}),Nn.current.x=Pi.pageX},zo=function(){if(Jt.current){var Pi=ar(Jt.current).top,Us=Pi+Jt.current.offsetHeight,rs=Hn===window?document.documentElement.scrollTop+window.innerHeight:ar(Hn).top+Hn.clientHeight;Us-(0,kt.Z)()<=rs||Pi>=rs-pr?Or(function(ao){return(0,$e.Z)((0,$e.Z)({},ao),{},{isHiddenScrollBar:!0})}):Or(function(ao){return(0,$e.Z)((0,$e.Z)({},ao),{},{isHiddenScrollBar:!1})})}},Oo=function(Pi){Or(function(Us){return(0,$e.Z)((0,$e.Z)({},Us),{},{scrollLeft:Pi/vr*kr||0})})};return v.useImperativeHandle(jt,function(){return{setScrollLeft:Oo}}),v.useEffect(function(){var cs=fl(document.body,"mouseup",Ri,!1),Pi=fl(document.body,"mousemove",fo,!1);return zo(),function(){cs.remove(),Pi.remove()}},[Yr,fi]),v.useEffect(function(){var cs=fl(Hn,"scroll",zo,!1),Pi=fl(window,"resize",zo,!1);return function(){cs.remove(),Pi.remove()}},[Hn]),v.useEffect(function(){ir.isHiddenScrollBar||Or(function(cs){var Pi=Jt.current;return Pi?(0,$e.Z)((0,$e.Z)({},cs),{},{scrollLeft:Pi.scrollLeft/Pi.scrollWidth*Pi.clientWidth}):cs})},[ir.isHiddenScrollBar]),vr<=kr||!Yr||ir.isHiddenScrollBar?null:v.createElement("div",{style:{height:(0,kt.Z)(),width:kr,bottom:pr},className:"".concat(wr,"-sticky-scroll")},v.createElement("div",{onMouseDown:ro,ref:Ni,className:Oe()("".concat(wr,"-sticky-scroll-bar"),(0,Te.Z)({},"".concat(wr,"-sticky-scroll-bar-active"),fi)),style:{width:"".concat(Yr,"px"),transform:"translate3d(".concat(ir.scrollLeft,"px, 0, 0)")}}))},wt=v.forwardRef(ft);function At(Ke){return null}var Ye=At;function Et(Ke){return null}var Wt=Et,vn="rc-table",Er=[],Gr={};function Gi(){return"No Data"}function ko(Ke,lt){var jt,Nt=(0,$e.Z)({rowKey:"key",prefixCls:vn,emptyText:Gi},Ke),Rt=Nt.prefixCls,Jt=Nt.className,dr=Nt.rowClassName,pr=Nt.style,Hn=Nt.data,wr=Nt.rowKey,vr=Nt.scroll,kr=Nt.tableLayout,Yr=Nt.direction,Ni=Nt.title,Jn=Nt.footer,Kr=Nt.summary,ir=Nt.caption,Or=Nt.id,Nn=Nt.showHeader,Rr=Nt.components,Xr=Nt.emptyText,fi=Nt.onRow,ri=Nt.onHeaderRow,Ri=Nt.internalHooks,ro=Nt.transformColumns,fo=Nt.internalRefs,zo=Nt.tailor,Oo=Nt.getContainerWidth,cs=Nt.sticky,Pi=Hn||Er,Us=!!Pi.length,rs=Ri===w,ao=v.useCallback(function($f,yg){return(0,Ft.Z)(Rr,$f)||yg},[Rr]),ca=v.useMemo(function(){return typeof wr=="function"?wr:function($f){var yg=$f&&$f[wr];return yg}},[wr]),Ea=ao(["body"]),ia=Pn(),qt=(0,b.Z)(ia,3),gr=qt[0],hi=qt[1],fs=qt[2],vs=ts(Nt,Pi,ca),ga=(0,b.Z)(vs,6),Qi=ga[0],vo=ga[1],Bo=ga[2],Os=ga[3],_a=ga[4],Ve=ga[5],Da=vr==null?void 0:vr.x,sl=v.useState(0),Ol=(0,b.Z)(sl,2),Ps=Ol[0],La=Ol[1],zl=Mr((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Nt),Qi),{},{expandable:!!Qi.expandedRowRender,columnTitle:Qi.columnTitle,expandedKeys:Bo,getRowKey:ca,onTriggerExpand:Ve,expandIcon:Os,expandIconColumnIndex:Qi.expandIconColumnIndex,direction:Yr,scrollWidth:rs&&zo&&typeof Da=="number"?Da:null,clientWidth:Ps}),rs?ro:null),la=(0,b.Z)(zl,3),yo=la[0],Ws=la[1],_s=la[2],ba=_s!=null?_s:Da,Xa=v.useMemo(function(){return{columns:yo,flattenColumns:Ws}},[yo,Ws]),xl=v.useRef(),Qa=v.useRef(),gi=v.useRef(),ws=v.useRef();v.useImperativeHandle(lt,function(){return{nativeElement:xl.current,scrollTo:function(yg){var Kp;if(gi.current instanceof HTMLElement){var Ag=yg.index,Pf=yg.top,bp=yg.key;if(Pf){var Hm;(Hm=gi.current)===null||Hm===void 0||Hm.scrollTo({top:Pf})}else{var yp,Qp=bp!=null?bp:ca(Pi[Ag]);(yp=gi.current.querySelector('[data-row-key="'.concat(Qp,'"]')))===null||yp===void 0||yp.scrollIntoView()}}else(Kp=gi.current)!==null&&Kp!==void 0&&Kp.scrollTo&&gi.current.scrollTo(yg)}}});var ha=v.useRef(),nl=v.useState(!1),Ql=(0,b.Z)(nl,2),wu=Ql[0],wa=Ql[1],eh=v.useState(!1),Kl=(0,b.Z)(eh,2),$c=Kl[0],bu=Kl[1],hh=no(new Map),hu=(0,b.Z)(hh,2),nd=hu[0],Pc=hu[1],dh=bn(Ws),Lc=dh.map(function($f){return nd.get($f)}),$l=v.useMemo(function(){return Lc},[Lc.join("_")]),ed=al($l,Ws.length,Yr),Ge=vr&&Wn(vr.y),He=vr&&Wn(ba)||!!Qi.fixed,mt=He&&Ws.some(function($f){var yg=$f.fixed;return yg}),In=v.useRef(),bi=Zs(cs,Rt),Kn=bi.isSticky,vi=bi.offsetHeader,Co=bi.offsetSummary,$s=bi.offsetScroll,za=bi.stickyClassName,Hl=bi.container,Eo=v.useMemo(function(){return Kr==null?void 0:Kr(Pi)},[Kr,Pi]),Fa=(Ge||Kn)&&v.isValidElement(Eo)&&Eo.type===nt&&Eo.props.fixed,Ia,os,ka;Ge&&(os={overflowY:"scroll",maxHeight:vr.y}),He&&(Ia={overflowX:"auto"},Ge||(os={overflowY:"hidden"}),ka={width:ba===!0?"auto":ba,minWidth:"100%"});var Ms=v.useCallback(function($f,yg){(0,an.Z)(xl.current)&&Pc(function(Kp){if(Kp.get($f)!==yg){var Ag=new Map(Kp);return Ag.set($f,yg),Ag}return Kp})},[]),wo=Vi(null),is=(0,b.Z)(wo,2),Rs=is[0],Vl=is[1];function wl($f,yg){yg&&(typeof yg=="function"?yg($f):yg.scrollLeft!==$f&&(yg.scrollLeft=$f,yg.scrollLeft!==$f&&setTimeout(function(){yg.scrollLeft=$f},0)))}var Sa=(0,B.Z)(function($f){var yg=$f.currentTarget,Kp=$f.scrollLeft,Ag=Yr==="rtl",Pf=typeof Kp=="number"?Kp:yg.scrollLeft,bp=yg||Gr;if(!Vl()||Vl()===bp){var Hm;Rs(bp),wl(Pf,Qa.current),wl(Pf,gi.current),wl(Pf,ha.current),wl(Pf,(Hm=In.current)===null||Hm===void 0?void 0:Hm.setScrollLeft)}var yp=yg||Qa.current;if(yp){var Qp=yp.scrollWidth,Ic=yp.clientWidth;if(Qp===Ic){wa(!1),bu(!1);return}Ag?(wa(-Pf0)):(wa(Pf>0),bu(Pf1?Kr-Pi:0,rs=(0,$e.Z)((0,$e.Z)((0,$e.Z)({},Ri),Hn),{},{flex:"0 0 ".concat(Pi,"px"),width:"".concat(Pi,"px"),marginRight:Us,pointerEvents:"auto"}),ao=v.useMemo(function(){return vr?Oo<=1:fo===0||Oo===0||Oo>1},[Oo,fo,vr]);ao?rs.visibility="hidden":vr&&(rs.height=kr==null?void 0:kr(Oo));var ca=ao?function(){return null}:Yr,Ea={};return(Oo===0||fo===0)&&(Ea.rowSpan=1,Ea.colSpan=1),v.createElement(Ho,(0,T.Z)({className:Oe()(Jn,wr),ellipsis:jt.ellipsis,align:jt.align,scope:jt.rowScope,component:"div",prefixCls:lt.prefixCls,key:Rr,record:pr,index:Jt,renderIndex:dr,dataIndex:Ni,render:ca,shouldCellUpdate:jt.shouldCellUpdate},Xr,{appendNode:fi,additionalProps:(0,$e.Z)((0,$e.Z)({},ri),{},{style:rs},Ea)}))}var El=va,Dl=["data","index","className","rowKey","style","extra","getHeight"],Ns=v.forwardRef(function(Ke,lt){var jt=Ke.data,Nt=Ke.index,Rt=Ke.className,Jt=Ke.rowKey,dr=Ke.style,pr=Ke.extra,Hn=Ke.getHeight,wr=(0,Do.Z)(Ke,Dl),vr=jt.record,kr=jt.indent,Yr=jt.index,Ni=g(Me,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Jn=Ni.scrollX,Kr=Ni.flattenColumns,ir=Ni.prefixCls,Or=Ni.fixColumn,Nn=Ni.componentWidth,Rr=oi(vr,Jt,Nt,kr),Xr=Rr.rowSupportExpand,fi=Rr.expanded,ri=Rr.rowProps,Ri=Rr.expandedRowRender,ro=Rr.expandedRowClassName,fo;if(Xr&&fi){var zo=Ri(vr,Nt,kr+1,fi),Oo=ro==null?void 0:ro(vr,Nt,kr),cs={};Or&&(cs={style:(0,Te.Z)({},"--virtual-width","".concat(Nn,"px"))});var Pi="".concat(ir,"-expanded-row-cell");fo=v.createElement("div",{className:Oe()("".concat(ir,"-expanded-row"),"".concat(ir,"-expanded-row-level-").concat(kr+1),Oo)},v.createElement(Ho,{component:"div",prefixCls:ir,className:Oe()(Pi,(0,Te.Z)({},"".concat(Pi,"-fixed"),Or)),additionalProps:cs},zo))}var Us=(0,$e.Z)((0,$e.Z)({},dr),{},{width:Jn});pr&&(Us.position="absolute",Us.pointerEvents="none");var rs=v.createElement("div",(0,T.Z)({},ri,wr,{ref:Xr?null:lt,className:Oe()(Rt,"".concat(ir,"-row"),ri==null?void 0:ri.className,(0,Te.Z)({},"".concat(ir,"-row-extra"),pr)),style:(0,$e.Z)((0,$e.Z)({},Us),ri==null?void 0:ri.style)}),Kr.map(function(ao,ca){return v.createElement(El,{key:ca,rowInfo:Rr,column:ao,colIndex:ca,indent:kr,index:Nt,renderIndex:Yr,record:vr,inverse:pr,getHeight:Hn})}));return Xr?v.createElement("div",{ref:lt},rs,fo):rs}),Ca=Xe(Ns),vl=Ca,ds=v.forwardRef(function(Ke,lt){var jt=Ke.data,Nt=Ke.onScroll,Rt=g(Me,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Jt=Rt.flattenColumns,dr=Rt.onColumnResize,pr=Rt.getRowKey,Hn=Rt.expandedKeys,wr=Rt.prefixCls,vr=Rt.childrenColumnName,kr=Rt.emptyNode,Yr=Rt.scrollX,Ni=g(Po),Jn=Ni.sticky,Kr=Ni.scrollY,ir=Ni.listItemHeight,Or=v.useRef(),Nn=on(jt,vr,Hn,pr),Rr=v.useMemo(function(){var Oo=0;return Jt.map(function(cs){var Pi=cs.width,Us=cs.key;return Oo+=Pi,[Us,Pi,Oo]})},[Jt]),Xr=v.useMemo(function(){return Rr.map(function(Oo){return Oo[2]})},[Rr]);v.useEffect(function(){Rr.forEach(function(Oo){var cs=(0,b.Z)(Oo,2),Pi=cs[0],Us=cs[1];dr(Pi,Us)})},[Rr]),v.useImperativeHandle(lt,function(){var Oo={scrollTo:function(Pi){var Us;(Us=Or.current)===null||Us===void 0||Us.scrollTo(Pi)}};return Object.defineProperty(Oo,"scrollLeft",{get:function(){var Pi;return((Pi=Or.current)===null||Pi===void 0?void 0:Pi.getScrollInfo().x)||0},set:function(Pi){var Us;(Us=Or.current)===null||Us===void 0||Us.scrollTo({left:Pi})}}),Oo});var fi=function(cs,Pi){var Us,rs=(Us=Nn[Pi])===null||Us===void 0?void 0:Us.record,ao=cs.onCell;if(ao){var ca,Ea=ao(rs,Pi);return(ca=Ea==null?void 0:Ea.rowSpan)!==null&&ca!==void 0?ca:1}return 1},ri=function(cs){var Pi=cs.start,Us=cs.end,rs=cs.getSize,ao=cs.offsetY;if(Us<0)return null;for(var ca=Jt.filter(function(Os){return fi(Os,Pi)===0}),Ea=Pi,ia=function(_a){if(ca=ca.filter(function(Ve){return fi(Ve,_a)===0}),!ca.length)return Ea=_a,1},qt=Pi;qt>=0&&!ia(qt);qt-=1);for(var gr=Jt.filter(function(Os){return fi(Os,Us)!==1}),hi=Us,fs=function(_a){if(gr=gr.filter(function(Ve){return fi(Ve,_a)!==1}),!gr.length)return hi=Math.max(_a-1,Us),1},vs=Us;vs1})&&ga.push(_a)},vo=Ea;vo<=hi;vo+=1)Qi(vo);var Bo=ga.map(function(Os){var _a=Nn[Os],Ve=pr(_a.record,Os),Da=function(Ps){var La=Os+Ps-1,zl=pr(Nn[La].record,La),la=rs(Ve,zl);return la.bottom-la.top},sl=rs(Ve);return v.createElement(vl,{key:Os,data:_a,rowKey:Ve,index:Os,style:{top:-ao+sl.top},extra:!0,getHeight:Da})});return Bo},Ri=v.useMemo(function(){return{columnsOffset:Xr}},[Xr]),ro="".concat(wr,"-tbody"),fo;if(Nn.length){var zo={};Jn&&(zo.position="sticky",zo.bottom=0,(0,ke.Z)(Jn)==="object"&&Jn.offsetScroll&&(zo.bottom=Jn.offsetScroll)),fo=v.createElement(Hs.Z,{fullHeight:!1,ref:Or,styles:{horizontalScrollBar:zo},className:Oe()(ro,"".concat(ro,"-virtual")),height:Kr,itemHeight:ir||24,data:Nn,itemKey:function(cs){return pr(cs.record)},scrollWidth:Yr,onVirtualScroll:function(cs){var Pi=cs.x;Nt({scrollLeft:Pi})},extraRender:ri},function(Oo,cs,Pi){var Us=pr(Oo.record,cs);return v.createElement(vl,(0,T.Z)({data:Oo,rowKey:Us,index:cs},Pi))})}else fo=v.createElement("div",{className:Oe()("".concat(wr,"-placeholder"))},v.createElement(Ho,{component:"div",prefixCls:wr},kr));return v.createElement(zs.Provider,{value:Ri},fo)}),io=Xe(ds),Ko=io,As=function(lt,jt){var Nt=jt.ref,Rt=jt.onScroll;return v.createElement(Ko,{ref:Nt,data:lt,onScroll:Rt})};function ks(Ke,lt){var jt=Ke.columns,Nt=Ke.scroll,Rt=Ke.sticky,Jt=Ke.prefixCls,dr=Jt===void 0?vn:Jt,pr=Ke.className,Hn=Ke.listItemHeight,wr=Ke.components,vr=Nt||{},kr=vr.x,Yr=vr.y;typeof kr!="number"&&(kr=1),typeof Yr!="number"&&(Yr=500);var Ni=v.useMemo(function(){return{sticky:Rt,scrollY:Yr,listItemHeight:Hn}},[Rt,Yr,Hn]);return v.createElement(Po.Provider,{value:Ni},v.createElement(Js,(0,T.Z)({},Ke,{className:Oe()(pr,"".concat(dr,"-virtual")),scroll:(0,$e.Z)((0,$e.Z)({},Nt),{},{x:kr}),components:(0,$e.Z)((0,$e.Z)({},wr),{},{body:As}),columns:jt,internalHooks:w,tailor:!0,ref:lt})))}var Ga=v.forwardRef(ks);function zu(Ke){return xe(Ga,Ke)}var Ac=zu(),vc=null;function ec(Ke){return null}var qu=ec;function Uu(Ke){return null}var zn=Uu,ur=_(58964),Zr=_(10225),Jr=_(17341),_i=_(1089),so=_(21770);function Ui(Ke){const[lt,jt]=(0,v.useState)(null);return[(0,v.useCallback)((Jt,dr,pr)=>{const Hn=lt!=null?lt:Jt,wr=Math.min(Hn||0,Jt),vr=Math.max(Hn||0,Jt),kr=dr.slice(wr,vr+1).map(Jn=>Ke(Jn)),Yr=kr.some(Jn=>!pr.has(Jn)),Ni=[];return kr.forEach(Jn=>{Yr?(pr.has(Jn)||Ni.push(Jn),pr.add(Jn)):(pr.delete(Jn),Ni.push(Jn))}),jt(Yr?vr:null),Ni},[lt]),Jt=>{jt(Jt)}]}var hs=_(27288),ra=_(50132),Ka=_(45353),ul=_(17415),hl=_(53124),kl=_(98866),Va=_(65223),Na=v.createContext(null),Aa=_(63185),ll=function(Ke,lt){var jt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&<.indexOf(Nt)<0&&(jt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(Ke);Rt{var jt;const{prefixCls:Nt,className:Rt,rootClassName:Jt,children:dr,indeterminate:pr=!1,style:Hn,onMouseEnter:wr,onMouseLeave:vr,skipGroup:kr=!1,disabled:Yr}=Ke,Ni=ll(Ke,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Jn,direction:Kr,checkbox:ir}=v.useContext(hl.E_),Or=v.useContext(Na),{isFormItemInput:Nn}=v.useContext(Va.aM),Rr=v.useContext(kl.Z),Xr=(jt=(Or==null?void 0:Or.disabled)||Yr)!==null&&jt!==void 0?jt:Rr,fi=v.useRef(Ni.value);v.useEffect(()=>{Or==null||Or.registerValue(Ni.value)},[]),v.useEffect(()=>{if(!kr)return Ni.value!==fi.current&&(Or==null||Or.cancelValue(fi.current),Or==null||Or.registerValue(Ni.value),fi.current=Ni.value),()=>Or==null?void 0:Or.cancelValue(Ni.value)},[Ni.value]);const ri=Jn("checkbox",Nt),[Ri,ro]=(0,Aa.ZP)(ri),fo=Object.assign({},Ni);Or&&!kr&&(fo.onChange=function(){Ni.onChange&&Ni.onChange.apply(Ni,arguments),Or.toggleOption&&Or.toggleOption({label:dr,value:Ni.value})},fo.name=Or.name,fo.checked=Or.value.includes(Ni.value));const zo=Oe()(`${ri}-wrapper`,{[`${ri}-rtl`]:Kr==="rtl",[`${ri}-wrapper-checked`]:fo.checked,[`${ri}-wrapper-disabled`]:Xr,[`${ri}-wrapper-in-form-item`]:Nn},ir==null?void 0:ir.className,Rt,Jt,ro),Oo=Oe()({[`${ri}-indeterminate`]:pr},ul.A,ro),cs=pr?"mixed":void 0;return Ri(v.createElement(Ka.Z,{component:"Checkbox",disabled:Xr},v.createElement("label",{className:zo,style:Object.assign(Object.assign({},ir==null?void 0:ir.style),Hn),onMouseEnter:wr,onMouseLeave:vr},v.createElement(ra.Z,Object.assign({"aria-checked":cs},fo,{prefixCls:ri,className:Oo,disabled:Xr,ref:lt})),dr!==void 0&&v.createElement("span",null,dr))))};var fu=v.forwardRef(Pu),Bl=_(98423),lu=function(Ke,lt){var jt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&<.indexOf(Nt)<0&&(jt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(Ke);Rt{const{defaultValue:jt,children:Nt,options:Rt=[],prefixCls:Jt,className:dr,rootClassName:pr,style:Hn,onChange:wr}=Ke,vr=lu(Ke,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:kr,direction:Yr}=v.useContext(hl.E_),[Ni,Jn]=v.useState(vr.value||jt||[]),[Kr,ir]=v.useState([]);v.useEffect(()=>{"value"in vr&&Jn(vr.value||[])},[vr.value]);const Or=v.useMemo(()=>Rt.map(Pi=>typeof Pi=="string"||typeof Pi=="number"?{label:Pi,value:Pi}:Pi),[Rt]),Nn=Pi=>{ir(Us=>Us.filter(rs=>rs!==Pi))},Rr=Pi=>{ir(Us=>[].concat((0,Nr.Z)(Us),[Pi]))},Xr=Pi=>{const Us=Ni.indexOf(Pi.value),rs=(0,Nr.Z)(Ni);Us===-1?rs.push(Pi.value):rs.splice(Us,1),"value"in vr||Jn(rs),wr==null||wr(rs.filter(ao=>Kr.includes(ao)).sort((ao,ca)=>{const Ea=Or.findIndex(qt=>qt.value===ao),ia=Or.findIndex(qt=>qt.value===ca);return Ea-ia}))},fi=kr("checkbox",Jt),ri=`${fi}-group`,[Ri,ro]=(0,Aa.ZP)(fi),fo=(0,Bl.Z)(vr,["value","disabled"]),zo=Rt.length?Or.map(Pi=>v.createElement(fu,{prefixCls:fi,key:Pi.value.toString(),disabled:"disabled"in Pi?Pi.disabled:vr.disabled,value:Pi.value,checked:Ni.includes(Pi.value),onChange:Pi.onChange,className:`${ri}-item`,style:Pi.style,title:Pi.title,id:Pi.id,required:Pi.required},Pi.label)):Nt,Oo={toggleOption:Xr,value:Ni,disabled:vr.disabled,name:vr.name,registerValue:Rr,cancelValue:Nn},cs=Oe()(ri,{[`${ri}-rtl`]:Yr==="rtl"},dr,pr,ro);return Ri(v.createElement("div",Object.assign({className:cs,style:Hn},fo,{ref:lt}),v.createElement(Na.Provider,{value:Oo},zo)))},es=v.forwardRef(Ln);var Is=v.memo(es);const Qs=fu;Qs.Group=Is,Qs.__ANT_CHECKBOX=!0;var dl=Qs,uu=_(83159),Jl=_(78045);const xu={},Tu="SELECT_ALL",tc="SELECT_INVERT",zc="SELECT_NONE",Rc=[],Ah=(Ke,lt)=>{let jt=[];return(lt||[]).forEach(Nt=>{jt.push(Nt),Nt&&typeof Nt=="object"&&Ke in Nt&&(jt=[].concat((0,Nr.Z)(jt),(0,Nr.Z)(Ah(Ke,Nt[Ke]))))}),jt};var ld=(Ke,lt)=>{const{preserveSelectedRowKeys:jt,selectedRowKeys:Nt,defaultSelectedRowKeys:Rt,getCheckboxProps:Jt,onChange:dr,onSelect:pr,onSelectAll:Hn,onSelectInvert:wr,onSelectNone:vr,onSelectMultiple:kr,columnWidth:Yr,type:Ni,selections:Jn,fixed:Kr,renderCell:ir,hideSelectAll:Or,checkStrictly:Nn=!0}=lt||{},{prefixCls:Rr,data:Xr,pageData:fi,getRecordByKey:ri,getRowKey:Ri,expandType:ro,childrenColumnName:fo,locale:zo,getPopupContainer:Oo}=Ke,cs=(0,hs.ln)("Table"),[Pi,Us]=Ui(Ve=>Ve),[rs,ao]=(0,so.Z)(Nt||Rt||Rc,{value:Nt}),ca=v.useRef(new Map),Ea=(0,v.useCallback)(Ve=>{if(jt){const Da=new Map;Ve.forEach(sl=>{let Ol=ri(sl);!Ol&&ca.current.has(sl)&&(Ol=ca.current.get(sl)),Da.set(sl,Ol)}),ca.current=Da}},[ri,jt]);v.useEffect(()=>{Ea(rs)},[rs]);const{keyEntities:ia}=(0,v.useMemo)(()=>{if(Nn)return{keyEntities:null};let Ve=Xr;if(jt){const Da=new Set(Xr.map((Ol,Ps)=>Ri(Ol,Ps))),sl=Array.from(ca.current).reduce((Ol,Ps)=>{let[La,zl]=Ps;return Da.has(La)?Ol:Ol.concat(zl)},[]);Ve=[].concat((0,Nr.Z)(Ve),(0,Nr.Z)(sl))}return(0,_i.I8)(Ve,{externalGetKey:Ri,childrenPropName:fo})},[Xr,Ri,Nn,fo,jt]),qt=(0,v.useMemo)(()=>Ah(fo,fi),[fo,fi]),gr=(0,v.useMemo)(()=>{const Ve=new Map;return qt.forEach((Da,sl)=>{const Ol=Ri(Da,sl),Ps=(Jt?Jt(Da):null)||{};Ve.set(Ol,Ps)}),Ve},[qt,Ri,Jt]),hi=(0,v.useCallback)(Ve=>{var Da;return!!(!((Da=gr.get(Ri(Ve)))===null||Da===void 0)&&Da.disabled)},[gr,Ri]),[fs,vs]=(0,v.useMemo)(()=>{if(Nn)return[rs||[],[]];const{checkedKeys:Ve,halfCheckedKeys:Da}=(0,Jr.S)(rs,!0,ia,hi);return[Ve||[],Da]},[rs,Nn,ia,hi]),ga=(0,v.useMemo)(()=>{const Ve=Ni==="radio"?fs.slice(0,1):fs;return new Set(Ve)},[fs,Ni]),Qi=(0,v.useMemo)(()=>Ni==="radio"?new Set:new Set(vs),[vs,Ni]);v.useEffect(()=>{lt||ao(Rc)},[!!lt]);const vo=(0,v.useCallback)((Ve,Da)=>{let sl,Ol;Ea(Ve),jt?(sl=Ve,Ol=Ve.map(Ps=>ca.current.get(Ps))):(sl=[],Ol=[],Ve.forEach(Ps=>{const La=ri(Ps);La!==void 0&&(sl.push(Ps),Ol.push(La))})),ao(sl),dr==null||dr(sl,Ol,{type:Da})},[ao,ri,dr,jt]),Bo=(0,v.useCallback)((Ve,Da,sl,Ol)=>{if(pr){const Ps=sl.map(La=>ri(La));pr(ri(Ve),Da,Ps,Ol)}vo(sl,"single")},[pr,ri,vo]),Os=(0,v.useMemo)(()=>!Jn||Or?null:(Jn===!0?[Tu,tc,zc]:Jn).map(Da=>Da===Tu?{key:"all",text:zo.selectionAll,onSelect(){vo(Xr.map((sl,Ol)=>Ri(sl,Ol)).filter(sl=>{const Ol=gr.get(sl);return!(Ol!=null&&Ol.disabled)||ga.has(sl)}),"all")}}:Da===tc?{key:"invert",text:zo.selectInvert,onSelect(){const sl=new Set(ga);fi.forEach((Ps,La)=>{const zl=Ri(Ps,La),la=gr.get(zl);la!=null&&la.disabled||(sl.has(zl)?sl.delete(zl):sl.add(zl))});const Ol=Array.from(sl);wr&&(cs.deprecated(!1,"onSelectInvert","onChange"),wr(Ol)),vo(Ol,"invert")}}:Da===zc?{key:"none",text:zo.selectNone,onSelect(){vr==null||vr(),vo(Array.from(ga).filter(sl=>{const Ol=gr.get(sl);return Ol==null?void 0:Ol.disabled}),"none")}}:Da).map(Da=>Object.assign(Object.assign({},Da),{onSelect:function(){for(var sl,Ol,Ps=arguments.length,La=new Array(Ps),zl=0;zl{var Da;if(!lt)return Ve.filter(Ql=>Ql!==xu);let sl=(0,Nr.Z)(Ve);const Ol=new Set(ga),Ps=qt.map(Ri).filter(Ql=>!gr.get(Ql).disabled),La=Ps.every(Ql=>Ol.has(Ql)),zl=Ps.some(Ql=>Ol.has(Ql)),la=()=>{const Ql=[];La?Ps.forEach(wa=>{Ol.delete(wa),Ql.push(wa)}):Ps.forEach(wa=>{Ol.has(wa)||(Ol.add(wa),Ql.push(wa))});const wu=Array.from(Ol);Hn==null||Hn(!La,wu.map(wa=>ri(wa)),Ql.map(wa=>ri(wa))),vo(wu,"all"),Us(null)};let yo,Ws;if(Ni!=="radio"){let Ql;if(Os){const $c={getPopupContainer:Oo,items:Os.map((bu,hh)=>{const{key:hu,text:nd,onSelect:Pc}=bu;return{key:hu!=null?hu:hh,onClick:()=>{Pc==null||Pc(Ps)},label:nd}})};Ql=v.createElement("div",{className:`${Rr}-selection-extra`},v.createElement(uu.Z,{menu:$c,getPopupContainer:Oo},v.createElement("span",null,v.createElement(ur.Z,null))))}const wu=qt.map(($c,bu)=>{const hh=Ri($c,bu),hu=gr.get(hh)||{};return Object.assign({checked:Ol.has(hh)},hu)}).filter($c=>{let{disabled:bu}=$c;return bu}),wa=!!wu.length&&wu.length===qt.length,eh=wa&&wu.every($c=>{let{checked:bu}=$c;return bu}),Kl=wa&&wu.some($c=>{let{checked:bu}=$c;return bu});Ws=v.createElement(dl,{checked:wa?eh:!!qt.length&&La,indeterminate:wa?!eh&&Kl:!La&&zl,onChange:la,disabled:qt.length===0||wa,"aria-label":Ql?"Custom selection":"Select all",skipGroup:!0}),yo=!Or&&v.createElement("div",{className:`${Rr}-selection`},Ws,Ql)}let _s;Ni==="radio"?_s=(Ql,wu,wa)=>{const eh=Ri(wu,wa),Kl=Ol.has(eh);return{node:v.createElement(Jl.ZP,Object.assign({},gr.get(eh),{checked:Kl,onClick:$c=>$c.stopPropagation(),onChange:$c=>{Ol.has(eh)||Bo(eh,!0,[eh],$c.nativeEvent)}})),checked:Kl}}:_s=(Ql,wu,wa)=>{var eh;const Kl=Ri(wu,wa),$c=Ol.has(Kl),bu=Qi.has(Kl),hh=gr.get(Kl);let hu;return ro==="nest"?hu=bu:hu=(eh=hh==null?void 0:hh.indeterminate)!==null&&eh!==void 0?eh:bu,{node:v.createElement(dl,Object.assign({},hh,{indeterminate:hu,checked:$c,skipGroup:!0,onClick:nd=>nd.stopPropagation(),onChange:nd=>{let{nativeEvent:Pc}=nd;const{shiftKey:dh}=Pc,Lc=Ps.findIndex(ed=>ed===Kl),$l=fs.some(ed=>Ps.includes(ed));if(dh&&Nn&&$l){const ed=Pi(Lc,Ps,Ol),Ge=Array.from(Ol);kr==null||kr(!$c,Ge.map(He=>ri(He)),ed.map(He=>ri(He))),vo(Ge,"multiple")}else{const ed=fs;if(Nn){const Ge=$c?(0,Zr._5)(ed,Kl):(0,Zr.L0)(ed,Kl);Bo(Kl,!$c,Ge,Pc)}else{const Ge=(0,Jr.S)([].concat((0,Nr.Z)(ed),[Kl]),!0,ia,hi),{checkedKeys:He,halfCheckedKeys:mt}=Ge;let In=He;if($c){const bi=new Set(He);bi.delete(Kl),In=(0,Jr.S)(Array.from(bi),{checked:!1,halfCheckedKeys:mt},ia,hi).checkedKeys}Bo(Kl,!$c,In,Pc)}}Us($c?null:Lc)}})),checked:$c}};const ba=(Ql,wu,wa)=>{const{node:eh,checked:Kl}=_s(Ql,wu,wa);return ir?ir(Kl,wu,wa,eh):eh};if(!sl.includes(xu))if(sl.findIndex(Ql=>{var wu;return((wu=Ql[Vt])===null||wu===void 0?void 0:wu.columnType)==="EXPAND_COLUMN"})===0){const[Ql,...wu]=sl;sl=[Ql,xu].concat((0,Nr.Z)(wu))}else sl=[xu].concat((0,Nr.Z)(sl));const Xa=sl.indexOf(xu);sl=sl.filter((Ql,wu)=>Ql!==xu||wu===Xa);const xl=sl[Xa-1],Qa=sl[Xa+1];let gi=Kr;gi===void 0&&((Qa==null?void 0:Qa.fixed)!==void 0?gi=Qa.fixed:(xl==null?void 0:xl.fixed)!==void 0&&(gi=xl.fixed)),gi&&xl&&((Da=xl[Vt])===null||Da===void 0?void 0:Da.columnType)==="EXPAND_COLUMN"&&xl.fixed===void 0&&(xl.fixed=gi);const ws=Oe()(`${Rr}-selection-col`,{[`${Rr}-selection-col-with-dropdown`]:Jn&&Ni==="checkbox"}),ha=()=>lt!=null&<.columnTitle?typeof lt.columnTitle=="function"?lt.columnTitle(Ws):lt.columnTitle:yo,nl={fixed:gi,width:Yr,className:`${Rr}-selection-column`,title:ha(),render:ba,onCell:lt.onCell,[Vt]:{className:ws}};return sl.map(Ql=>Ql===xu?nl:Ql)},[Ri,qt,lt,fs,ga,Qi,Yr,Os,ro,gr,kr,Bo,hi]),ga]};function ph(Ke,lt){return Ke._antProxy=Ke._antProxy||{},Object.keys(lt).forEach(jt=>{if(!(jt in Ke._antProxy)){const Nt=Ke[jt];Ke._antProxy[jt]=Nt,Ke[jt]=lt[jt]}}),Ke}function lc(Ke,lt){return(0,v.useImperativeHandle)(Ke,()=>{const jt=lt(),{nativeElement:Nt}=jt;return typeof Proxy!="undefined"?new Proxy(Nt,{get(Rt,Jt){return jt[Jt]?jt[Jt]:Reflect.get(Rt,Jt)}}):ph(Nt,jt)})}var xc=_(75164);function Hh(Ke,lt,jt,Nt){const Rt=jt-lt;return Ke/=Nt/2,Ke<1?Rt/2*Ke*Ke*Ke+lt:Rt/2*((Ke-=2)*Ke*Ke+2)+lt}function xh(Ke){return Ke!=null&&Ke===Ke.window}function Cd(Ke,lt){var jt,Nt;if(typeof window=="undefined")return 0;const Rt=lt?"scrollTop":"scrollLeft";let Jt=0;return xh(Ke)?Jt=Ke[lt?"pageYOffset":"pageXOffset"]:Ke instanceof Document?Jt=Ke.documentElement[Rt]:(Ke instanceof HTMLElement||Ke)&&(Jt=Ke[Rt]),Ke&&!xh(Ke)&&typeof Jt!="number"&&(Jt=(Nt=((jt=Ke.ownerDocument)!==null&&jt!==void 0?jt:Ke).documentElement)===null||Nt===void 0?void 0:Nt[Rt]),Jt}function md(Ke){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:jt=()=>window,callback:Nt,duration:Rt=450}=lt,Jt=jt(),dr=Cd(Jt,!0),pr=Date.now(),Hn=()=>{const vr=Date.now()-pr,kr=Hh(vr>Rt?Rt:vr,dr,Ke,Rt);xh(Jt)?Jt.scrollTo(window.pageXOffset,kr):Jt instanceof Document||Jt.constructor.name==="HTMLDocument"?Jt.documentElement.scrollTop=kr:Jt.scrollTop=kr,vr=0||pr.relatedTarget.className.indexOf("".concat(kr,"-item"))>=0))&&vr(Nt.getValidValue()))}),(0,Te.Z)((0,Ih.Z)(Nt),"go",function(pr){var Hn=Nt.state.goInputText;Hn!==""&&(pr.keyCode===Nh.ENTER||pr.type==="click")&&(Nt.setState({goInputText:""}),Nt.props.quickGo(Nt.getValidValue()))}),Nt}return(0,Su.Z)(jt,[{key:"getPageSizeOptions",value:function(){var Rt=this.props,Jt=Rt.pageSize,dr=Rt.pageSizeOptions;return dr.some(function(pr){return pr.toString()===Jt.toString()})?dr:dr.concat([Jt.toString()]).sort(function(pr,Hn){var wr=Number.isNaN(Number(pr))?0:Number(pr),vr=Number.isNaN(Number(Hn))?0:Number(Hn);return wr-vr})}},{key:"render",value:function(){var Rt=this,Jt=this.props,dr=Jt.pageSize,pr=Jt.locale,Hn=Jt.rootPrefixCls,wr=Jt.changeSize,vr=Jt.quickGo,kr=Jt.goButton,Yr=Jt.selectComponentClass,Ni=Jt.buildOptionText,Jn=Jt.selectPrefixCls,Kr=Jt.disabled,ir=this.state.goInputText,Or="".concat(Hn,"-options"),Nn=Yr,Rr=null,Xr=null,fi=null;if(!wr&&!vr)return null;var ri=this.getPageSizeOptions();if(wr&&Nn){var Ri=ri.map(function(ro,fo){return v.createElement(Nn.Option,{key:fo,value:ro.toString()},(Ni||Rt.buildOptionText)(ro))});Rr=v.createElement(Nn,{disabled:Kr,prefixCls:Jn,showSearch:!1,className:"".concat(Or,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(dr||ri[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fo){return fo.parentNode},"aria-label":pr.page_size,defaultOpen:!1},Ri)}return vr&&(kr&&(fi=typeof kr=="boolean"?v.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Kr,className:"".concat(Or,"-quick-jumper-button")},pr.jump_to_confirm):v.createElement("span",{onClick:this.go,onKeyUp:this.go},kr)),Xr=v.createElement("div",{className:"".concat(Or,"-quick-jumper")},pr.jump_to,v.createElement("input",{disabled:Kr,type:"text",value:ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":pr.page}),pr.page,fi)),v.createElement("li",{className:"".concat(Or)},Rr,Xr)}}]),jt}(v.Component);(0,Te.Z)(Mu,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var Zl=Mu,Au=function(lt){var jt,Nt=lt.rootPrefixCls,Rt=lt.page,Jt=lt.active,dr=lt.className,pr=lt.showTitle,Hn=lt.onClick,wr=lt.onKeyPress,vr=lt.itemRender,kr="".concat(Nt,"-item"),Yr=Oe()(kr,"".concat(kr,"-").concat(Rt),(jt={},(0,Te.Z)(jt,"".concat(kr,"-active"),Jt),(0,Te.Z)(jt,"".concat(kr,"-disabled"),!Rt),(0,Te.Z)(jt,lt.className,dr),jt)),Ni=function(){Hn(Rt)},Jn=function(Or){wr(Or,Hn,Rt)},Kr=vr(Rt,"page",v.createElement("a",{rel:"nofollow"},Rt));return Kr?v.createElement("li",{title:pr?Rt.toString():null,className:Yr,onClick:Ni,onKeyPress:Jn,tabIndex:0},Kr):null},Wu=Au;function Qh(){}function hd(Ke){var lt=Number(Ke);return typeof lt=="number"&&!Number.isNaN(lt)&&isFinite(lt)&&Math.floor(lt)===lt}var Bh=function(lt,jt,Nt){return Nt};function hf(Ke,lt,jt){var Nt=typeof Ke=="undefined"?lt.pageSize:Ke;return Math.floor((jt.total-1)/Nt)+1}var Rf=function(Ke){(0,gl.Z)(jt,Ke);var lt=(0,Lu.Z)(jt);function jt(Nt){var Rt;(0,jd.Z)(this,jt),Rt=lt.call(this,Nt),(0,Te.Z)((0,Ih.Z)(Rt),"paginationNode",v.createRef()),(0,Te.Z)((0,Ih.Z)(Rt),"getJumpPrevPage",function(){return Math.max(1,Rt.state.current-(Rt.props.showLessItems?3:5))}),(0,Te.Z)((0,Ih.Z)(Rt),"getJumpNextPage",function(){return Math.min(hf(void 0,Rt.state,Rt.props),Rt.state.current+(Rt.props.showLessItems?3:5))}),(0,Te.Z)((0,Ih.Z)(Rt),"getItemIcon",function(wr,vr){var kr=Rt.props.prefixCls,Yr=wr||v.createElement("button",{type:"button","aria-label":vr,className:"".concat(kr,"-item-link")});return typeof wr=="function"&&(Yr=v.createElement(wr,(0,$e.Z)({},Rt.props))),Yr}),(0,Te.Z)((0,Ih.Z)(Rt),"isValid",function(wr){var vr=Rt.props.total;return hd(wr)&&wr!==Rt.state.current&&hd(vr)&&vr>0}),(0,Te.Z)((0,Ih.Z)(Rt),"shouldDisplayQuickJumper",function(){var wr=Rt.props,vr=wr.showQuickJumper,kr=wr.total,Yr=Rt.state.pageSize;return kr<=Yr?!1:vr}),(0,Te.Z)((0,Ih.Z)(Rt),"handleKeyDown",function(wr){(wr.keyCode===Nh.ARROW_UP||wr.keyCode===Nh.ARROW_DOWN)&&wr.preventDefault()}),(0,Te.Z)((0,Ih.Z)(Rt),"handleKeyUp",function(wr){var vr=Rt.getValidValue(wr),kr=Rt.state.currentInputValue;vr!==kr&&Rt.setState({currentInputValue:vr}),wr.keyCode===Nh.ENTER?Rt.handleChange(vr):wr.keyCode===Nh.ARROW_UP?Rt.handleChange(vr-1):wr.keyCode===Nh.ARROW_DOWN&&Rt.handleChange(vr+1)}),(0,Te.Z)((0,Ih.Z)(Rt),"handleBlur",function(wr){var vr=Rt.getValidValue(wr);Rt.handleChange(vr)}),(0,Te.Z)((0,Ih.Z)(Rt),"changePageSize",function(wr){var vr=Rt.state.current,kr=hf(wr,Rt.state,Rt.props);vr=vr>kr?kr:vr,kr===0&&(vr=Rt.state.current),typeof wr=="number"&&("pageSize"in Rt.props||Rt.setState({pageSize:wr}),"current"in Rt.props||Rt.setState({current:vr,currentInputValue:vr})),Rt.props.onShowSizeChange(vr,wr),"onChange"in Rt.props&&Rt.props.onChange&&Rt.props.onChange(vr,wr)}),(0,Te.Z)((0,Ih.Z)(Rt),"handleChange",function(wr){var vr=Rt.props,kr=vr.disabled,Yr=vr.onChange,Ni=Rt.state,Jn=Ni.pageSize,Kr=Ni.current,ir=Ni.currentInputValue;if(Rt.isValid(wr)&&!kr){var Or=hf(void 0,Rt.state,Rt.props),Nn=wr;return wr>Or?Nn=Or:wr<1&&(Nn=1),"current"in Rt.props||Rt.setState({current:Nn}),Nn!==ir&&Rt.setState({currentInputValue:Nn}),Yr(Nn,Jn),Nn}return Kr}),(0,Te.Z)((0,Ih.Z)(Rt),"prev",function(){Rt.hasPrev()&&Rt.handleChange(Rt.state.current-1)}),(0,Te.Z)((0,Ih.Z)(Rt),"next",function(){Rt.hasNext()&&Rt.handleChange(Rt.state.current+1)}),(0,Te.Z)((0,Ih.Z)(Rt),"jumpPrev",function(){Rt.handleChange(Rt.getJumpPrevPage())}),(0,Te.Z)((0,Ih.Z)(Rt),"jumpNext",function(){Rt.handleChange(Rt.getJumpNextPage())}),(0,Te.Z)((0,Ih.Z)(Rt),"hasPrev",function(){return Rt.state.current>1}),(0,Te.Z)((0,Ih.Z)(Rt),"hasNext",function(){return Rt.state.current2?kr-2:0),Ni=2;Ni=dr?Hn=dr:Hn=Number(Jt),Hn}},{key:"getShowSizeChanger",value:function(){var Rt=this.props,Jt=Rt.showSizeChanger,dr=Rt.total,pr=Rt.totalBoundaryShowSizeChanger;return typeof Jt!="undefined"?Jt:dr>pr}},{key:"render",value:function(){var Rt=this.props,Jt=Rt.prefixCls,dr=Rt.className,pr=Rt.style,Hn=Rt.disabled,wr=Rt.hideOnSinglePage,vr=Rt.total,kr=Rt.locale,Yr=Rt.showQuickJumper,Ni=Rt.showLessItems,Jn=Rt.showTitle,Kr=Rt.showTotal,ir=Rt.simple,Or=Rt.itemRender,Nn=Rt.showPrevNextJumpers,Rr=Rt.jumpPrevIcon,Xr=Rt.jumpNextIcon,fi=Rt.selectComponentClass,ri=Rt.selectPrefixCls,Ri=Rt.pageSizeOptions,ro=this.state,fo=ro.current,zo=ro.pageSize,Oo=ro.currentInputValue;if(wr===!0&&vr<=zo)return null;var cs=hf(void 0,this.state,this.props),Pi=[],Us=null,rs=null,ao=null,ca=null,Ea=null,ia=Yr&&Yr.goButton,qt=Ni?1:2,gr=fo-1>0?fo-1:0,hi=fo+1vr?vr:fo*zo]));if(ir){ia&&(typeof ia=="boolean"?Ea=v.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},kr.jump_to_confirm):Ea=v.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ia),Ea=v.createElement("li",{title:Jn?"".concat(kr.jump_to).concat(fo,"/").concat(cs):null,className:"".concat(Jt,"-simple-pager")},Ea));var ga=this.renderPrev(gr);return v.createElement("ul",(0,T.Z)({className:Oe()(Jt,"".concat(Jt,"-simple"),(0,Te.Z)({},"".concat(Jt,"-disabled"),Hn),dr),style:pr,ref:this.paginationNode},fs),vs,ga?v.createElement("li",{title:Jn?kr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(Jt,"-prev"),(0,Te.Z)({},"".concat(Jt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ga):null,v.createElement("li",{title:Jn?"".concat(fo,"/").concat(cs):null,className:"".concat(Jt,"-simple-pager")},v.createElement("input",{type:"text",value:Oo,disabled:Hn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),v.createElement("span",{className:"".concat(Jt,"-slash")},"/"),cs),v.createElement("li",{title:Jn?kr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(Jt,"-next"),(0,Te.Z)({},"".concat(Jt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(hi)),v.createElement(Zl,{disabled:Hn,locale:kr,rootPrefixCls:Jt,selectComponentClass:fi,selectPrefixCls:ri,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fo,pageSize:zo,pageSizeOptions:Ri,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ea}))}if(cs<=3+qt*2){var Qi={locale:kr,rootPrefixCls:Jt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Jn,itemRender:Or};cs||Pi.push(v.createElement(Wu,(0,T.Z)({},Qi,{key:"noPager",page:1,className:"".concat(Jt,"-item-disabled")})));for(var vo=1;vo<=cs;vo+=1){var Bo=fo===vo;Pi.push(v.createElement(Wu,(0,T.Z)({},Qi,{key:vo,page:vo,active:Bo})))}}else{var Os=Ni?kr.prev_3:kr.prev_5,_a=Ni?kr.next_3:kr.next_5,Ve=Or(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Rr,"prev page")),Da=Or(this.getJumpNextPage(),"jump-next",this.getItemIcon(Xr,"next page"));Nn&&(Us=Ve?v.createElement("li",{title:Jn?Os:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Oe()("".concat(Jt,"-jump-prev"),(0,Te.Z)({},"".concat(Jt,"-jump-prev-custom-icon"),!!Rr))},Ve):null,rs=Da?v.createElement("li",{title:Jn?_a:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Oe()("".concat(Jt,"-jump-next"),(0,Te.Z)({},"".concat(Jt,"-jump-next-custom-icon"),!!Xr))},Da):null),ca=v.createElement(Wu,{locale:kr,last:!0,rootPrefixCls:Jt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:cs,page:cs,active:!1,showTitle:Jn,itemRender:Or}),ao=v.createElement(Wu,{locale:kr,rootPrefixCls:Jt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Jn,itemRender:Or});var sl=Math.max(1,fo-qt),Ol=Math.min(fo+qt,cs);fo-1<=qt&&(Ol=1+qt*2),cs-fo<=qt&&(sl=cs-qt*2);for(var Ps=sl;Ps<=Ol;Ps+=1){var La=fo===Ps;Pi.push(v.createElement(Wu,{locale:kr,rootPrefixCls:Jt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ps,page:Ps,active:La,showTitle:Jn,itemRender:Or}))}fo-1>=qt*2&&fo!==1+2&&(Pi[0]=(0,v.cloneElement)(Pi[0],{className:"".concat(Jt,"-item-after-jump-prev")}),Pi.unshift(Us)),cs-fo>=qt*2&&fo!==cs-2&&(Pi[Pi.length-1]=(0,v.cloneElement)(Pi[Pi.length-1],{className:"".concat(Jt,"-item-before-jump-next")}),Pi.push(rs)),sl!==1&&Pi.unshift(ao),Ol!==cs&&Pi.push(ca)}var zl=!this.hasPrev()||!cs,la=!this.hasNext()||!cs,yo=this.renderPrev(gr),Ws=this.renderNext(hi);return v.createElement("ul",(0,T.Z)({className:Oe()(Jt,dr,(0,Te.Z)({},"".concat(Jt,"-disabled"),Hn)),style:pr,ref:this.paginationNode},fs),vs,yo?v.createElement("li",{title:Jn?kr.prev_page:null,onClick:this.prev,tabIndex:zl?null:0,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(Jt,"-prev"),(0,Te.Z)({},"".concat(Jt,"-disabled"),zl)),"aria-disabled":zl},yo):null,Pi,Ws?v.createElement("li",{title:Jn?kr.next_page:null,onClick:this.next,tabIndex:la?null:0,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(Jt,"-next"),(0,Te.Z)({},"".concat(Jt,"-disabled"),la)),"aria-disabled":la},Ws):null,v.createElement(Zl,{disabled:Hn,locale:kr,rootPrefixCls:Jt,selectComponentClass:fi,selectPrefixCls:ri,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fo,pageSize:zo,pageSizeOptions:Ri,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ia}))}}],[{key:"getDerivedStateFromProps",value:function(Rt,Jt){var dr={};if("current"in Rt&&(dr.current=Rt.current,Rt.current!==Jt.current&&(dr.currentInputValue=dr.current)),"pageSize"in Rt&&Rt.pageSize!==Jt.pageSize){var pr=Jt.current,Hn=hf(Rt.pageSize,Jt,Rt);pr=pr>Hn?Hn:pr,"current"in Rt||(dr.current=pr,dr.currentInputValue=pr),dr.pageSize=Rt.pageSize}return dr}}]),jt}(v.Component);(0,Te.Z)(Rf,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:Qh,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Qh,locale:Ba,style:{},itemRender:Bh,totalBoundaryShowSizeChanger:50});var Yd=Rf,If=_(62906),tf=_(10110),hp=_(34041);const od=Ke=>v.createElement(hp.Z,Object.assign({},Ke,{showSearch:!0,size:"small"})),wh=Ke=>v.createElement(hp.Z,Object.assign({},Ke,{showSearch:!0,size:"middle"}));od.Option=hp.Z.Option,wh.Option=hp.Z.Option;var Tf=_(47673),Zd=_(14747),Wc=_(67968),Gc=_(45503);const vd=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed"}}},[`&${lt}-disabled`]:{cursor:"not-allowed",[`${lt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ke.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ke.colorBorder,backgroundColor:Ke.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ke.itemActiveBgDisabled},a:{color:Ke.itemActiveColorDisabled}}},[`${lt}-item-link`]:{color:Ke.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${lt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${lt}-simple-pager`]:{color:Ke.colorTextDisabled},[`${lt}-jump-prev, ${lt}-jump-next`]:{[`${lt}-item-link-icon`]:{opacity:0},[`${lt}-item-ellipsis`]:{opacity:1}}},[`&${lt}-simple`]:{[`${lt}-prev, ${lt}-next`]:{[`&${lt}-disabled ${lt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Il=Ke=>{const{componentCls:lt}=Ke;return{[`&${lt}-mini ${lt}-total-text, &${lt}-mini ${lt}-simple-pager`]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`},[`&${lt}-mini ${lt}-item`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM-2}px`},[`&${lt}-mini:not(${lt}-disabled) ${lt}-item:not(${lt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},[`&${lt}-mini ${lt}-prev, &${lt}-mini ${lt}-next`]:{minWidth:Ke.itemSizeSM,height:Ke.itemSizeSM,margin:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${lt}-mini:not(${lt}-disabled)`]:{[`${lt}-prev, ${lt}-next`]:{[`&:hover ${lt}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${lt}-disabled:hover ${lt}-item-link`]:{backgroundColor:"transparent"}}},[` + &${lt}-mini ${lt}-prev ${lt}-item-link, + &${lt}-mini ${lt}-next ${lt}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}},[`&${lt}-mini ${lt}-jump-prev, &${lt}-mini ${lt}-jump-next`]:{height:Ke.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ke.itemSizeSM}px`},[`&${lt}-mini ${lt}-options`]:{marginInlineStart:Ke.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ke.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Tf.x0)(Ke)),{width:Ke.paginationMiniQuickJumperInputWidth,height:Ke.controlHeightSM})}}}},gs=Ke=>{const{componentCls:lt}=Ke;return{[` + &${lt}-simple ${lt}-prev, + &${lt}-simple ${lt}-next + `]:{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`,verticalAlign:"top",[`${lt}-item-link`]:{height:Ke.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive},"&::after":{height:Ke.itemSizeSM,lineHeight:`${Ke.itemSizeSM}px`}}},[`&${lt}-simple ${lt}-simple-pager`]:{display:"inline-block",height:Ke.itemSizeSM,marginInlineEnd:Ke.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ke.marginXS,padding:`0 ${Ke.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ke.itemInputBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,borderRadius:Ke.borderRadius,outline:"none",transition:`border-color ${Ke.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ke.colorPrimary},"&:focus":{borderColor:Ke.colorPrimaryHover,boxShadow:`${Ke.inputOutlineOffset}px 0 ${Ke.controlOutlineWidth}px ${Ke.controlOutline}`},"&[disabled]":{color:Ke.colorTextDisabled,backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,cursor:"not-allowed"}}}}},_c=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-jump-prev, ${lt}-jump-next`]:{outline:0,[`${lt}-item-container`]:{position:"relative",[`${lt}-item-link-icon`]:{color:Ke.colorPrimary,fontSize:Ke.fontSizeSM,opacity:0,transition:`all ${Ke.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${lt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ke.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ke.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ke.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ke.motionDurationMid}`}},"&:hover":{[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}}},[` + ${lt}-prev, + ${lt}-jump-prev, + ${lt}-jump-next + `]:{marginInlineEnd:Ke.marginXS},[` + ${lt}-prev, + ${lt}-next, + ${lt}-jump-prev, + ${lt}-jump-next + `]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,color:Ke.colorText,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ke.borderRadius,cursor:"pointer",transition:`all ${Ke.motionDurationMid}`},[`${lt}-prev, ${lt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ke.colorText,cursor:"pointer",userSelect:"none"},[`${lt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ke.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:"none",transition:`all ${Ke.motionDurationMid}`},[`&:hover ${lt}-item-link`]:{backgroundColor:Ke.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ke.colorBgTextActive},[`&${lt}-disabled:hover`]:{[`${lt}-item-link`]:{backgroundColor:"transparent"}}},[`${lt}-slash`]:{marginInlineEnd:Ke.paginationSlashMarginInlineEnd,marginInlineStart:Ke.paginationSlashMarginInlineStart},[`${lt}-options`]:{display:"inline-block",marginInlineStart:Ke.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ke.controlHeight,marginInlineStart:Ke.marginXS,lineHeight:`${Ke.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Tf.ik)(Ke)),{width:Ke.controlHeightLG*1.25,height:Ke.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ke.marginXS,marginInlineEnd:Ke.marginXS})}}}},Wi=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-item`]:{display:"inline-block",minWidth:Ke.itemSize,height:Ke.itemSize,marginInlineEnd:Ke.marginXS,fontFamily:Ke.fontFamily,lineHeight:`${Ke.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ke.lineWidth}px ${Ke.lineType} transparent`,borderRadius:Ke.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ke.paginationItemPaddingInline}px`,color:Ke.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${lt}-item-active)`]:{"&:hover":{transition:`all ${Ke.motionDurationMid}`,backgroundColor:Ke.colorBgTextHover},"&:active":{backgroundColor:Ke.colorBgTextActive}},"&-active":{fontWeight:Ke.fontWeightStrong,backgroundColor:Ke.itemActiveBg,borderColor:Ke.colorPrimary,a:{color:Ke.colorPrimary},"&:hover":{borderColor:Ke.colorPrimaryHover},"&:hover a":{color:Ke.colorPrimaryHover}}}}},fg=Ke=>{const{componentCls:lt}=Ke;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Zd.Wf)(Ke)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${lt}-total-text`]:{display:"inline-block",height:Ke.itemSize,marginInlineEnd:Ke.marginXS,lineHeight:`${Ke.itemSize-2}px`,verticalAlign:"middle"}}),Wi(Ke)),_c(Ke)),gs(Ke)),Il(Ke)),vd(Ke)),{[`@media only screen and (max-width: ${Ke.screenLG}px)`]:{[`${lt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ke.screenSM}px)`]:{[`${lt}-options`]:{display:"none"}}}),[`&${Ke.componentCls}-rtl`]:{direction:"rtl"}}},uc=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}${lt}-disabled:not(${lt}-mini)`]:{"&, &:hover":{[`${lt}-item-link`]:{borderColor:Ke.colorBorder}},"&:focus-visible":{[`${lt}-item-link`]:{borderColor:Ke.colorBorder}},[`${lt}-item, ${lt}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,[`&:hover:not(${lt}-item-active)`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,a:{color:Ke.colorTextDisabled}},[`&${lt}-item-active`]:{backgroundColor:Ke.itemActiveBgDisabled}},[`${lt}-prev, ${lt}-next`]:{"&:hover button":{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,color:Ke.colorTextDisabled},[`${lt}-item-link`]:{backgroundColor:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder}}},[`${lt}:not(${lt}-mini)`]:{[`${lt}-prev, ${lt}-next`]:{"&:hover button":{borderColor:Ke.colorPrimaryHover,backgroundColor:Ke.itemBg},[`${lt}-item-link`]:{backgroundColor:Ke.itemLinkBg,borderColor:Ke.colorBorder},[`&:hover ${lt}-item-link`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,color:Ke.colorPrimary},[`&${lt}-disabled`]:{[`${lt}-item-link`]:{borderColor:Ke.colorBorder,color:Ke.colorTextDisabled}}},[`${lt}-item`]:{backgroundColor:Ke.itemBg,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,[`&:hover:not(${lt}-item-active)`]:{borderColor:Ke.colorPrimary,backgroundColor:Ke.itemBg,a:{color:Ke.colorPrimary}},"&-active":{borderColor:Ke.colorPrimary}}}}},nh=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}:not(${lt}-disabled)`]:{[`${lt}-item`]:Object.assign({},(0,Zd.Qy)(Ke)),[`${lt}-jump-prev, ${lt}-jump-next`]:{"&:focus-visible":Object.assign({[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}},(0,Zd.oN)(Ke))},[`${lt}-prev, ${lt}-next`]:{[`&:focus-visible ${lt}-item-link`]:Object.assign({},(0,Zd.oN)(Ke))}}}};var Dp=(0,Wc.Z)("Pagination",Ke=>{const lt=(0,Gc.TS)(Ke,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ke.marginXXS/2,paginationMiniQuickJumperInputWidth:Ke.controlHeightLG*1.1,paginationItemPaddingInline:Ke.marginXXS*1.5,paginationEllipsisLetterSpacing:Ke.marginXXS/2,paginationSlashMarginInlineStart:Ke.marginXXS,paginationSlashMarginInlineEnd:Ke.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Tf.e5)(Ke),(0,Tf.TM)(Ke));return[fg(lt),nh(lt),Ke.wireframe&&uc(lt)]},Ke=>({itemBg:Ke.colorBgContainer,itemSize:Ke.controlHeight,itemSizeSM:Ke.controlHeightSM,itemActiveBg:Ke.colorBgContainer,itemLinkBg:Ke.colorBgContainer,itemActiveColorDisabled:Ke.colorTextDisabled,itemActiveBgDisabled:Ke.controlItemBgActiveDisabled,itemInputBg:Ke.colorBgContainer,miniOptionsSizeChangerTop:0})),qp=function(Ke,lt){var jt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&<.indexOf(Nt)<0&&(jt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(Ke);Rt{const{prefixCls:lt,selectPrefixCls:jt,className:Nt,rootClassName:Rt,style:Jt,size:dr,locale:pr,selectComponentClass:Hn,responsive:wr,showSizeChanger:vr}=Ke,kr=qp(Ke,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Yr}=(0,Dh.Z)(wr),{getPrefixCls:Ni,direction:Jn,pagination:Kr={}}=v.useContext(hl.E_),ir=Ni("pagination",lt),[Or,Nn]=Dp(ir),Rr=vr!=null?vr:Kr.showSizeChanger,Xr=v.useMemo(()=>{const cs=v.createElement("span",{className:`${ir}-item-ellipsis`},"\u2022\u2022\u2022"),Pi=v.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},Jn==="rtl"?v.createElement(Ad.Z,null):v.createElement(tp.Z,null)),Us=v.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},Jn==="rtl"?v.createElement(tp.Z,null):v.createElement(Ad.Z,null)),rs=v.createElement("a",{className:`${ir}-item-link`},v.createElement("div",{className:`${ir}-item-container`},Jn==="rtl"?v.createElement(ep,{className:`${ir}-item-link-icon`}):v.createElement(Ud,{className:`${ir}-item-link-icon`}),cs)),ao=v.createElement("a",{className:`${ir}-item-link`},v.createElement("div",{className:`${ir}-item-container`},Jn==="rtl"?v.createElement(Ud,{className:`${ir}-item-link-icon`}):v.createElement(ep,{className:`${ir}-item-link-icon`}),cs));return{prevIcon:Pi,nextIcon:Us,jumpPrevIcon:rs,jumpNextIcon:ao}},[Jn,ir]),[fi]=(0,tf.Z)("Pagination",If.Z),ri=Object.assign(Object.assign({},fi),pr),Ri=(0,zd.Z)(dr),ro=Ri==="small"||!!(Yr&&!Ri&&wr),fo=Ni("select",jt),zo=Oe()({[`${ir}-mini`]:ro,[`${ir}-rtl`]:Jn==="rtl"},Kr==null?void 0:Kr.className,Nt,Rt,Nn),Oo=Object.assign(Object.assign({},Kr==null?void 0:Kr.style),Jt);return Or(v.createElement(Yd,Object.assign({},Xr,kr,{style:Oo,prefixCls:ir,selectPrefixCls:fo,className:zo,selectComponentClass:Hn||(ro?od:wh),locale:ri,showSizeChanger:Rr})))},mp=df,Jp=_(75081),dp=_(25976);function Eg(Ke){return function(jt){let{prefixCls:Nt,onExpand:Rt,record:Jt,expanded:dr,expandable:pr}=jt;const Hn=`${Nt}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:wr=>{Rt(Jt,wr),wr.stopPropagation()},className:Oe()(Hn,{[`${Hn}-spaced`]:!pr,[`${Hn}-expanded`]:pr&&dr,[`${Hn}-collapsed`]:pr&&!dr}),"aria-label":dr?Ke.collapse:Ke.expand,"aria-expanded":dr})}}var np=Eg;function lp(Ke){return(jt,Nt)=>{const Rt=jt.querySelector(`.${Ke}-container`);let Jt=Nt;if(Rt){const dr=getComputedStyle(Rt),pr=parseInt(dr.borderLeftWidth,10),Hn=parseInt(dr.borderRightWidth,10);Jt=Nt-pr-Hn}return Jt}}function Ph(Ke,lt){return"key"in Ke&&Ke.key!==void 0&&Ke.key!==null?Ke.key:Ke.dataIndex?Array.isArray(Ke.dataIndex)?Ke.dataIndex.join("."):Ke.dataIndex:lt}function Ip(Ke,lt){return lt?`${lt}-${Ke}`:`${Ke}`}function pg(Ke,lt){return typeof Ke=="function"?Ke(lt):Ke}function Wp(Ke,lt){const jt=pg(Ke,lt);return Object.prototype.toString.call(jt)==="[object Object]"?"":jt}var ud=_(98851),rg=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:ud.Z}))},Wh=v.forwardRef(rg),wf=_(57838);function up(Ke){const lt=v.useRef(Ke),jt=(0,wf.Z)();return[()=>lt.current,Nt=>{lt.current=Nt,jt()}]}var Cu=_(15867),kp=_(32983),Pp=_(82610),zf=_(76529),Th=_(70593),Mh={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"},Lh=Mh,_h=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Lh}))},ff=v.forwardRef(_h),vp={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"},ig=vp,mh=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:ig}))},Sf=v.forwardRef(mh),Ld={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"},Dd=Ld,Wf=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Dd}))},ah=v.forwardRef(Wf),Nc={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"},Xh=Nc,$d=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Xh}))},Vo=v.forwardRef($d),P=_(33603),W=_(85731),le=_(33507);const ge=new W.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),rt=(Ke,lt)=>({[`.${Ke}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${lt.motionDurationSlow}`}}}),pn=(Ke,lt)=>({[`.${Ke}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:lt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${lt.lineWidthBold}px solid ${lt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),sr=(Ke,lt)=>{const{treeCls:jt,treeNodeCls:Nt,treeNodePadding:Rt,titleHeight:Jt,nodeSelectedBg:dr,nodeHoverBg:pr}=lt,Hn=lt.paddingXS;return{[jt]:Object.assign(Object.assign({},(0,Zd.Wf)(lt)),{background:lt.colorBgContainer,borderRadius:lt.borderRadius,transition:`background-color ${lt.motionDurationSlow}`,[`&${jt}-rtl`]:{[`${jt}-switcher`]:{"&_close":{[`${jt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${jt}-active-focused)`]:Object.assign({},(0,Zd.oN)(lt)),[`${jt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${jt}-block-node`]:{[`${jt}-list-holder-inner`]:{alignItems:"stretch",[`${jt}-node-content-wrapper`]:{flex:"auto"},[`${Nt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Rt,insetInlineStart:0,border:`1px solid ${lt.colorPrimary}`,opacity:0,animationName:ge,animationDuration:lt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Nt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${jt}-node-content-wrapper`]:{color:lt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${jt}-node-content-wrapper`]:Object.assign({},(0,Zd.oN)(lt)),[`&:not(${Nt}-disabled).filter-node ${jt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${jt}-draggable-icon`]:{flexShrink:0,width:Jt,lineHeight:`${Jt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${lt.motionDurationSlow}`,[`${Nt}:hover &`]:{opacity:.45}},[`&${Nt}-disabled`]:{[`${jt}-draggable-icon`]:{visibility:"hidden"}}}},[`${jt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Jt}},[`${jt}-draggable-icon`]:{visibility:"hidden"},[`${jt}-switcher`]:Object.assign(Object.assign({},rt(Ke,lt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Jt,margin:0,lineHeight:`${Jt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${jt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:lt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Jt/2,bottom:-Rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${lt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Jt/2*.8,height:Jt/2,borderBottom:`1px solid ${lt.colorBorder}`,content:'""'}}}),[`${jt}-checkbox`]:{top:"initial",marginInlineEnd:Hn,alignSelf:"flex-start",marginTop:lt.marginXXS},[`${jt}-node-content-wrapper, ${jt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Jt,margin:0,padding:`0 ${lt.paddingXS/2}px`,color:"inherit",lineHeight:`${Jt}px`,background:"transparent",borderRadius:lt.borderRadius,cursor:"pointer",transition:`all ${lt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pr},[`&${jt}-node-selected`]:{backgroundColor:dr},[`${jt}-iconEle`]:{display:"inline-block",width:Jt,height:Jt,lineHeight:`${Jt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${jt}-unselectable ${jt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${jt}-node-content-wrapper`]:Object.assign({lineHeight:`${Jt}px`,userSelect:"none"},pn(Ke,lt)),[`${Nt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${lt.colorPrimary}`}},"&-show-line":{[`${jt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Jt/2,bottom:-Rt,borderInlineEnd:`1px solid ${lt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${jt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Nt}-leaf-last`]:{[`${jt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Jt/2}px !important`}}}}})}},Ae=Ke=>{const{treeCls:lt,treeNodeCls:jt,treeNodePadding:Nt,directoryNodeSelectedBg:Rt,directoryNodeSelectedColor:Jt}=Ke;return{[`${lt}${lt}-directory`]:{[jt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Nt,insetInlineStart:0,transition:`background-color ${Ke.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ke.controlItemBgHover}},"> *":{zIndex:1},[`${lt}-switcher`]:{transition:`color ${Ke.motionDurationMid}`},[`${lt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${lt}-node-selected`]:{color:Jt,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:zt},[`${mt}-switcher`]:{color:Gt},[`${mt}-node-content-wrapper`]:{color:Gt,background:"transparent"}}}}}},gr=(Ye,mt)=>{const Ft=`.${Ye}`,Dt=`${Ft}-treenode`,zt=mt.paddingXS/2,Gt=(0,id.TS)(mt,{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:zt});return[Yn(Ye,Gt),ei(Gt)]},ss=Ye=>{const{controlHeightSM:mt}=Ye;return{titleHeight:mt,nodeHoverBg:Ye.controlItemBgHover,nodeSelectedBg:Ye.controlItemBgActive}};var ts=(0,yh.Z)("Tree",(Ye,mt)=>{let{prefixCls:Ft}=mt;return[{[Ye.componentCls]:(0,Q.C2)(`${Ft}-checkbox`,Ye)},gr(Ft,Ye),(0,le.Z)(Ye)]},Ye=>{const{colorTextLightSolid:mt,colorPrimary:Ft}=Ye;return Object.assign(Object.assign({},ss(Ye)),{directoryNodeSelectedColor:mt,directoryNodeSelectedBg:Ft})});const Is=4;function ua(Ye){const{dropPosition:mt,dropLevelOffset:Ft,prefixCls:Dt,indent:zt,direction:Gt="ltr"}=Ye,Nr=Gt==="ltr"?"left":"right",An=Gt==="ltr"?"right":"left",Tn={[Nr]:-Ft*zt+Is,[An]:0};switch(mt){case-1:Tn.top=-3;break;case 1:Tn.bottom=-3;break;default:Tn.bottom=-3,Tn[Nr]=zt+Is;break}return w.createElement("div",{style:Tn,className:`${Dt}-drop-indicator`})}var na={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"},Go=na,Gs=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:Go}))},Va=w.forwardRef(Gs),_l=m(22508),nu={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"},xu=nu,Tu=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:xu}))},Cu=w.forwardRef(Tu),dc=m(43114),Zc=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:dc.Z}))},wc=w.forwardRef(Zc),fd=m(96159),dh=Ye=>{const{prefixCls:mt,switcherIcon:Ft,treeNodeProps:Dt,showLine:zt}=Ye,{isLeaf:Gt,expanded:Nr,loading:An}=Dt;if(An)return w.createElement(_l.Z,{className:`${mt}-switcher-loading-icon`});let Tn;if(zt&&typeof zt=="object"&&(Tn=zt.showLeafIcon),Gt){if(!zt)return null;if(typeof Tn!="boolean"&&Tn){const wr=typeof Tn=="function"?Tn(Dt):Tn,Lo=`${mt}-switcher-line-custom-icon`;return(0,fd.l$)(wr)?(0,fd.Tm)(wr,{className:we()(wr.props.className||"",Lo)}):wr}return Tn?w.createElement(Ue,{className:`${mt}-switcher-line-icon`}):w.createElement("span",{className:`${mt}-switcher-leaf-line`})}const cn=`${mt}-switcher-icon`,Jn=typeof Ft=="function"?Ft(Dt):Ft;return(0,fd.l$)(Jn)?(0,fd.Tm)(Jn,{className:we()(Jn.props.className||"",cn)}):Jn!==void 0?Jn:zt?Nr?w.createElement(Cu,{className:`${mt}-switcher-line-icon`}):w.createElement(wc,{className:`${mt}-switcher-line-icon`}):w.createElement(Va,{className:cn})},Xh=w.forwardRef((Ye,mt)=>{const{getPrefixCls:Ft,direction:Dt,virtual:zt,tree:Gt}=w.useContext(Pi.E_),{prefixCls:Nr,className:An,showIcon:Tn=!1,showLine:cn,switcherIcon:Jn,blockNode:wr=!1,children:Lo,checkable:kt=!1,selectable:tr=!0,draggable:Ln,motion:ir,style:dr}=Ye,jr=Ft("tree",Nr),Ri=Ft(),Te=ir!=null?ir:Object.assign(Object.assign({},(0,X.Z)(Ri)),{motionAppear:!1}),qo=Object.assign(Object.assign({},Ye),{checkable:kt,selectable:tr,showIcon:Tn,motion:Te,blockNode:wr,showLine:!!cn,dropIndicatorRender:ua}),[Zs,Sa]=ts(jr),ca=w.useMemo(()=>{if(!Ln)return!1;let ma={};switch(typeof Ln){case"function":ma.nodeDraggable=Ln;break;case"object":ma=Object.assign({},Ln);break;default:break}return ma.icon!==!1&&(ma.icon=ma.icon||w.createElement(Rd,null)),ma},[Ln]),Rs=ma=>w.createElement(dh,{prefixCls:jr,switcherIcon:Jn,treeNodeProps:ma,showLine:cn});return Zs(w.createElement(D,Object.assign({itemHeight:20,ref:mt,virtual:zt},qo,{style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),dr),prefixCls:jr,className:we()({[`${jr}-icon-hide`]:!Tn,[`${jr}-block-node`]:wr,[`${jr}-unselectable`]:!tr,[`${jr}-rtl`]:Dt==="rtl"},Gt==null?void 0:Gt.className,An,Sa),direction:Dt,checkable:kt&&w.createElement("span",{className:`${jr}-checkbox-inner`}),selectable:tr,switcherIcon:Rs,draggable:ca}),Lo))}),Nc;(function(Ye){Ye[Ye.None=0]="None",Ye[Ye.Start=1]="Start",Ye[Ye.End=2]="End"})(Nc||(Nc={}));function Hc(Ye,mt,Ft){const{key:Dt,children:zt}=Ft;function Gt(Nr){const An=Nr[Dt],Tn=Nr[zt];mt(An,Nr)!==!1&&Hc(Tn||[],mt,Ft)}Ye.forEach(Gt)}function tf(Ye){let{treeData:mt,expandedKeys:Ft,startKey:Dt,endKey:zt,fieldNames:Gt}=Ye;const Nr=[];let An=Nc.None;if(Dt&&Dt===zt)return[Dt];if(!Dt||!zt)return[];function Tn(cn){return cn===Dt||cn===zt}return Hc(mt,cn=>{if(An===Nc.End)return!1;if(Tn(cn)){if(Nr.push(cn),An===Nc.None)An=Nc.Start;else if(An===Nc.Start)return An=Nc.End,!1}else An===Nc.Start&&Nr.push(cn);return Ft.includes(cn)},(0,bc.w$)(Gt)),Nr}function hh(Ye,mt,Ft){const Dt=(0,ti.Z)(mt),zt=[];return Hc(Ye,(Gt,Nr)=>{const An=Dt.indexOf(Gt);return An!==-1&&(zt.push(Nr),Dt.splice(An,1)),!!Dt.length},(0,bc.w$)(Ft)),zt}var rh=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Dt=Object.getOwnPropertySymbols(Ye);zt{var{defaultExpandAll:Ft,defaultExpandParent:Dt,defaultExpandedKeys:zt}=Ye,Gt=rh(Ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Nr=w.useRef(),An=w.useRef(),Tn=()=>{const{keyEntities:ca}=(0,bc.I8)(bh(Gt));let Rs;return Ft?Rs=Object.keys(ca):Dt?Rs=bd(Gt.expandedKeys||zt||[],ca):Rs=Gt.expandedKeys||zt,Rs},[cn,Jn]=w.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[wr,Lo]=w.useState(()=>Tn());w.useEffect(()=>{"selectedKeys"in Gt&&Jn(Gt.selectedKeys)},[Gt.selectedKeys]),w.useEffect(()=>{"expandedKeys"in Gt&&Lo(Gt.expandedKeys)},[Gt.expandedKeys]);const kt=(ca,Rs)=>{var ma;return"expandedKeys"in Gt||Lo(ca),(ma=Gt.onExpand)===null||ma===void 0?void 0:ma.call(Gt,ca,Rs)},tr=(ca,Rs)=>{var ma;const{multiple:ko,fieldNames:or}=Gt,{node:Ii,nativeEvent:Gi}=Rs,{key:cs=""}=Ii,Ps=bh(Gt),da=Object.assign(Object.assign({},Rs),{selected:!0}),Yo=(Gi==null?void 0:Gi.ctrlKey)||(Gi==null?void 0:Gi.metaKey),sr=Gi==null?void 0:Gi.shiftKey;let io;ko&&Yo?(io=ca,Nr.current=cs,An.current=io,da.selectedNodes=hh(Ps,io,or)):ko&&sr?(io=Array.from(new Set([].concat((0,ti.Z)(An.current||[]),(0,ti.Z)(tf({treeData:Ps,expandedKeys:wr,startKey:cs,endKey:Nr.current,fieldNames:or}))))),da.selectedNodes=hh(Ps,io,or)):(io=[cs],Nr.current=cs,An.current=io,da.selectedNodes=hh(Ps,io,or)),(ma=Gt.onSelect)===null||ma===void 0||ma.call(Gt,io,da),"selectedKeys"in Gt||Jn(io)},{getPrefixCls:Ln,direction:ir}=w.useContext(Pi.E_),{prefixCls:dr,className:jr,showIcon:Ri=!0,expandAction:Te="click"}=Gt,qo=rh(Gt,["prefixCls","className","showIcon","expandAction"]),Zs=Ln("tree",dr),Sa=we()(`${Zs}-directory`,{[`${Zs}-directory-rtl`]:ir==="rtl"},jr);return w.createElement(Xh,Object.assign({icon:zh,ref:mt,blockNode:!0},qo,{showIcon:Ri,expandAction:Te,prefixCls:Zs,className:Sa,expandedKeys:wr,selectedKeys:cn,onSelect:tr,onExpand:kt}))};var jp=w.forwardRef(Mh);const vp=Xh;vp.DirectoryTree=jp,vp.TreeNode=Ah;var Gc=vp,Oc=m(13805),ad=m(75008);function yd(Ye){let{value:mt,onChange:Ft,filterSearch:Dt,tablePrefixCls:zt,locale:Gt}=Ye;return Dt?w.createElement("div",{className:`${zt}-filter-dropdown-search`},w.createElement(ad.Z,{prefix:w.createElement(Oc.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:Ft,value:mt,htmlSize:1,className:`${zt}-filter-dropdown-search-input`})):null}var Bd=yd;const Dc=Ye=>{const{keyCode:mt}=Ye;mt===Vh.Z.ENTER&&Ye.stopPropagation()};var ld=w.forwardRef((Ye,mt)=>w.createElement("div",{className:Ye.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:Dc,ref:mt},Ye.children));function Sc(Ye){let mt=[];return(Ye||[]).forEach(Ft=>{let{value:Dt,children:zt}=Ft;mt.push(Dt),zt&&(mt=[].concat((0,ti.Z)(mt),(0,ti.Z)(Sc(zt))))}),mt}function Ro(Ye){return Ye.some(mt=>{let{children:Ft}=mt;return Ft})}function Hg(Ye,mt){return typeof mt=="string"||typeof mt=="number"?mt==null?void 0:mt.toString().toLowerCase().includes(Ye.trim().toLowerCase()):!1}function Zp(Ye){let{filters:mt,prefixCls:Ft,filteredKeys:Dt,filterMultiple:zt,searchValue:Gt,filterSearch:Nr}=Ye;return mt.map((An,Tn)=>{const cn=String(An.value);if(An.children)return{key:cn||Tn,label:An.text,popupClassName:`${Ft}-dropdown-submenu`,children:Zp({filters:An.children,prefixCls:Ft,filteredKeys:Dt,filterMultiple:zt,searchValue:Gt,filterSearch:Nr})};const Jn=zt?vf.Z:ah.ZP,wr={key:An.value!==void 0?cn:Tn,label:w.createElement(w.Fragment,null,w.createElement(Jn,{checked:Dt.includes(cn)}),w.createElement("span",null,An.text))};return Gt.trim()?typeof Nr=="function"?Nr(Gt,An)?wr:null:Hg(Gt,An.text)?wr:null:wr})}function vm(Ye){return Ye||[]}function Fm(Ye){var mt,Ft;const{tablePrefixCls:Dt,prefixCls:zt,column:Gt,dropdownPrefixCls:Nr,columnKey:An,filterMultiple:Tn,filterMode:cn="menu",filterSearch:Jn=!1,filterState:wr,triggerFilter:Lo,locale:kt,children:tr,getPopupContainer:Ln}=Ye,{filterDropdownOpen:ir,onFilterDropdownOpenChange:dr,filterResetToDefaultFilteredValue:jr,defaultFilteredValue:Ri,filterDropdownVisible:Te,onFilterDropdownVisibleChange:qo}=Gt,[Zs,Sa]=w.useState(!1),ca=!!(wr&&(!((mt=wr.filteredKeys)===null||mt===void 0)&&mt.length||wr.forceFiltered)),Rs=tu=>{Sa(tu),dr==null||dr(tu),qo==null||qo(tu)},ma=(Ft=ir!=null?ir:Te)!==null&&Ft!==void 0?Ft:Zs,ko=wr==null?void 0:wr.filteredKeys,[or,Ii]=sh(vm(ko)),Gi=tu=>{let{selectedKeys:Js}=tu;Ii(Js)},cs=(tu,Js)=>{let{node:Kc,checked:Le}=Js;Gi(Tn?{selectedKeys:tu}:{selectedKeys:Le&&Kc.key?[Kc.key]:[]})};w.useEffect(()=>{Zs&&Gi({selectedKeys:vm(ko)})},[ko]);const[Ps,da]=w.useState([]),Yo=tu=>{da(tu)},[sr,io]=w.useState(""),ws=tu=>{const{value:Js}=tu.target;io(Js)};w.useEffect(()=>{Zs||io("")},[Zs]);const cl=tu=>{const Js=tu&&tu.length?tu:null;if(Js===null&&(!wr||!wr.filteredKeys)||(0,N.Z)(Js,wr==null?void 0:wr.filteredKeys,!0))return null;Lo({column:Gt,key:An,filteredKeys:Js})},Dl=()=>{Rs(!1),cl(or())},Ba=function(){let{confirm:tu,closeDropdown:Js}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tu&&cl([]),Js&&Rs(!1),io(""),Ii(jr?(Ri||[]).map(Kc=>String(Kc)):[])},Ss=function(){let{closeDropdown:tu}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tu&&Rs(!1),cl(or())},wl=tu=>{tu&&ko!==void 0&&Ii(vm(ko)),Rs(tu),!tu&&!Gt.filterDropdown&&Dl()},rl=we()({[`${Nr}-menu-without-submenu`]:!Ro(Gt.filters||[])}),mc=tu=>{if(tu.target.checked){const Js=Sc(Gt==null?void 0:Gt.filters).map(Kc=>String(Kc));Ii(Js)}else Ii([])},gl=tu=>{let{filters:Js}=tu;return(Js||[]).map((Kc,Le)=>{const Oe=String(Kc.value),et={title:Kc.text,key:Kc.value!==void 0?Oe:String(Le)};return Kc.children&&(et.children=gl({filters:Kc.children})),et})},ic=tu=>{var Js;return Object.assign(Object.assign({},tu),{text:tu.title,value:tu.key,children:((Js=tu.children)===null||Js===void 0?void 0:Js.map(Kc=>ic(Kc)))||[]})};let Ca;if(typeof Gt.filterDropdown=="function")Ca=Gt.filterDropdown({prefixCls:`${Nr}-custom`,setSelectedKeys:tu=>Gi({selectedKeys:tu}),selectedKeys:or(),confirm:Ss,clearFilters:Ba,filters:Gt.filters,visible:ma,close:()=>{Rs(!1)}});else if(Gt.filterDropdown)Ca=Gt.filterDropdown;else{const tu=or()||[],Js=()=>(Gt.filters||[]).length===0?w.createElement(kf.Z,{image:kf.Z.PRESENTED_IMAGE_SIMPLE,description:kt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):cn==="tree"?w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:Jn,value:sr,onChange:ws,tablePrefixCls:Dt,locale:kt}),w.createElement("div",{className:`${Dt}-filter-dropdown-tree`},Tn?w.createElement(vf.Z,{checked:tu.length===Sc(Gt.filters).length,indeterminate:tu.length>0&&tu.lengthtypeof Jn=="function"?Jn(sr,ic(Le)):Hg(sr,Le.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:Jn,value:sr,onChange:ws,tablePrefixCls:Dt,locale:kt}),w.createElement(Bh.Z,{selectable:!0,multiple:Tn,prefixCls:`${Nr}-menu`,className:rl,onSelect:Gi,onDeselect:Gi,selectedKeys:tu,getPopupContainer:Ln,openKeys:Ps,onOpenChange:Yo,items:Zp({filters:Gt.filters||[],filterSearch:Jn,prefixCls:zt,filteredKeys:or(),filterMultiple:Tn,searchValue:sr})})),Kc=()=>jr?(0,N.Z)((Ri||[]).map(Le=>String(Le)),tu,!0):tu.length===0;Ca=w.createElement(w.Fragment,null,Js(),w.createElement("div",{className:`${zt}-dropdown-btns`},w.createElement(Vf.ZP,{type:"link",size:"small",disabled:Kc(),onClick:()=>Ba()},kt.filterReset),w.createElement(Vf.ZP,{type:"primary",size:"small",onClick:Dl},kt.filterConfirm)))}Gt.filterDropdown&&(Ca=w.createElement(Kf.J,{selectable:void 0},Ca));const qu=()=>w.createElement(ld,{className:`${zt}-dropdown`},Ca);let $l;typeof Gt.filterIcon=="function"?$l=Gt.filterIcon(ca):Gt.filterIcon?$l=Gt.filterIcon:$l=w.createElement(Vd,null);const{direction:su}=w.useContext(Pi.E_);return w.createElement("div",{className:`${zt}-column`},w.createElement("span",{className:`${Dt}-column-title`},tr),w.createElement(Uh.Z,{dropdownRender:qu,trigger:["click"],open:ma,onOpenChange:wl,getPopupContainer:Ln,placement:su==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:we()(`${zt}-trigger`,{active:ca}),onClick:tu=>{tu.stopPropagation()}},$l)))}var Zd=Fm;function Fp(Ye,mt,Ft){let Dt=[];return(Ye||[]).forEach((zt,Gt)=>{var Nr;const An=ja(Gt,Ft);if(zt.filters||"filterDropdown"in zt||"onFilter"in zt)if("filteredValue"in zt){let Tn=zt.filteredValue;"filterDropdown"in zt||(Tn=(Nr=Tn==null?void 0:Tn.map(String))!==null&&Nr!==void 0?Nr:Tn),Dt.push({column:zt,key:qd(zt,An),filteredKeys:Tn,forceFiltered:zt.filtered})}else Dt.push({column:zt,key:qd(zt,An),filteredKeys:mt&&zt.defaultFilteredValue?zt.defaultFilteredValue:void 0,forceFiltered:zt.filtered});"children"in zt&&(Dt=[].concat((0,ti.Z)(Dt),(0,ti.Z)(Fp(zt.children,mt,An))))}),Dt}function zf(Ye,mt,Ft,Dt,zt,Gt,Nr,An){return Ft.map((Tn,cn)=>{const Jn=ja(cn,An),{filterMultiple:wr=!0,filterMode:Lo,filterSearch:kt}=Tn;let tr=Tn;if(tr.filters||tr.filterDropdown){const Ln=qd(tr,Jn),ir=Dt.find(dr=>{let{key:jr}=dr;return Ln===jr});tr=Object.assign(Object.assign({},tr),{title:dr=>w.createElement(Zd,{tablePrefixCls:Ye,prefixCls:`${Ye}-filter`,dropdownPrefixCls:mt,column:tr,columnKey:Ln,filterState:ir,filterMultiple:wr,filterMode:Lo,filterSearch:kt,triggerFilter:Gt,locale:zt,getPopupContainer:Nr},ru(Tn.title,dr))})}return"children"in tr&&(tr=Object.assign(Object.assign({},tr),{children:zf(Ye,mt,tr.children,Dt,zt,Gt,Nr,Jn)})),tr})}function bf(Ye){const mt={};return Ye.forEach(Ft=>{let{key:Dt,filteredKeys:zt,column:Gt}=Ft;const Nr=Dt,{filters:An,filterDropdown:Tn}=Gt;if(Tn)mt[Nr]=zt||null;else if(Array.isArray(zt)){const cn=Sc(An);mt[Nr]=cn.filter(Jn=>zt.includes(String(Jn)))}else mt[Nr]=null}),mt}function Qp(Ye,mt){return mt.reduce((Ft,Dt)=>{const{column:{onFilter:zt,filters:Gt},filteredKeys:Nr}=Dt;return zt&&Nr&&Nr.length?Ft.filter(An=>Nr.some(Tn=>{const cn=Sc(Gt),Jn=cn.findIndex(Lo=>String(Lo)===String(Tn)),wr=Jn!==-1?cn[Jn]:Tn;return zt(wr,An)})):Ft},Ye)}const Bp=Ye=>Ye.flatMap(mt=>"children"in mt?[mt].concat((0,ti.Z)(Bp(mt.children||[]))):[mt]);function Hf(Ye){let{prefixCls:mt,dropdownPrefixCls:Ft,mergedColumns:Dt,onFilterChange:zt,getPopupContainer:Gt,locale:Nr}=Ye;const An=(0,so.ln)("Table"),Tn=w.useMemo(()=>Bp(Dt||[]),[Dt]),[cn,Jn]=w.useState(()=>Fp(Tn,!0)),wr=w.useMemo(()=>{const Ln=Fp(Tn,!1);if(Ln.length===0)return Ln;let ir=!0,dr=!0;if(Ln.forEach(jr=>{let{filteredKeys:Ri}=jr;Ri!==void 0?ir=!1:dr=!1}),ir){const jr=(Tn||[]).map((Ri,Te)=>qd(Ri,ja(Te)));return cn.filter(Ri=>{let{key:Te}=Ri;return jr.includes(Te)}).map(Ri=>{const Te=Tn[jr.findIndex(qo=>qo===Ri.key)];return Object.assign(Object.assign({},Ri),{column:Object.assign(Object.assign({},Ri.column),Te),forceFiltered:Te.filtered})})}return Ln},[Tn,cn]),Lo=w.useMemo(()=>bf(wr),[wr]),kt=Ln=>{const ir=wr.filter(dr=>{let{key:jr}=dr;return jr!==Ln.key});ir.push(Ln),Jn(ir),zt(bf(ir),ir)};return[Ln=>zf(mt,Ft,Ln,wr,Nr,kt,Gt),wr,Lo]}var df=Hf;function af(Ye,mt,Ft){const Dt=w.useRef({});function zt(Gt){if(!Dt.current||Dt.current.data!==Ye||Dt.current.childrenColumnName!==mt||Dt.current.getRowKey!==Ft){let An=function(Tn){Tn.forEach((cn,Jn)=>{const wr=Ft(cn,Jn);Nr.set(wr,cn),cn&&typeof cn=="object"&&mt in cn&&An(cn[mt]||[])})};const Nr=new Map;An(Ye),Dt.current={data:Ye,childrenColumnName:mt,kvMap:Nr,getRowKey:Ft}}return Dt.current.kvMap.get(Gt)}return[zt]}function Wg(){const Ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let mt=1;mt{const zt=Ft[Dt];zt!==void 0&&(Ye[Dt]=zt)})}return Ye}var lp=Wg,lg=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Dt=Object.getOwnPropertySymbols(Ye);zt{const Gt=Ye[zt];typeof Gt!="function"&&(Ft[zt]=Gt)}),Ft}function Im(Ye,mt,Ft){const Dt=Ft&&typeof Ft=="object"?Ft:{},{total:zt=0}=Dt,Gt=lg(Dt,["total"]),[Nr,An]=(0,w.useState)(()=>({current:"defaultCurrent"in Gt?Gt.defaultCurrent:1,pageSize:"defaultPageSize"in Gt?Gt.defaultPageSize:Id})),Tn=lp(Nr,Gt,{total:zt>0?zt:Ye}),cn=Math.ceil((zt||Ye)/Tn.pageSize);Tn.current>cn&&(Tn.current=cn||1);const Jn=(Lo,kt)=>{An({current:Lo!=null?Lo:1,pageSize:kt||Tn.pageSize})},wr=(Lo,kt)=>{var tr;Ft&&((tr=Ft.onChange)===null||tr===void 0||tr.call(Ft,Lo,kt)),Jn(Lo,kt),mt(Lo,kt||(Tn==null?void 0:Tn.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},Tn),{onChange:wr}),Jn]}var Wm=Im,im=m(58964),wm=m(21770);const ym={},Lg="SELECT_ALL",ug="SELECT_INVERT",om="SELECT_NONE",Qg=[],Lm=(Ye,mt)=>{let Ft=[];return(mt||[]).forEach(Dt=>{Ft.push(Dt),Dt&&typeof Dt=="object"&&Ye in Dt&&(Ft=[].concat((0,ti.Z)(Ft),(0,ti.Z)(Lm(Ye,Dt[Ye]))))}),Ft};var Sg=(Ye,mt)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:Dt,defaultSelectedRowKeys:zt,getCheckboxProps:Gt,onChange:Nr,onSelect:An,onSelectAll:Tn,onSelectInvert:cn,onSelectNone:Jn,onSelectMultiple:wr,columnWidth:Lo,type:kt,selections:tr,fixed:Ln,renderCell:ir,hideSelectAll:dr,checkStrictly:jr=!0}=mt||{},{prefixCls:Ri,data:Te,pageData:qo,getRecordByKey:Zs,getRowKey:Sa,expandType:ca,childrenColumnName:Rs,locale:ma,getPopupContainer:ko}=Ye,or=(0,so.ln)("Table"),[Ii,Gi]=(0,wm.Z)(Dt||zt||Qg,{value:Dt}),cs=w.useRef(new Map),Ps=(0,w.useCallback)(Ca=>{if(Ft){const qu=new Map;Ca.forEach($l=>{let su=Zs($l);!su&&cs.current.has($l)&&(su=cs.current.get($l)),qu.set($l,su)}),cs.current=qu}},[Zs,Ft]);w.useEffect(()=>{Ps(Ii)},[Ii]);const{keyEntities:da}=(0,w.useMemo)(()=>{if(jr)return{keyEntities:null};let Ca=Te;if(Ft){const qu=new Set(Te.map((su,tu)=>Sa(su,tu))),$l=Array.from(cs.current).reduce((su,tu)=>{let[Js,Kc]=tu;return qu.has(Js)?su:su.concat(Kc)},[]);Ca=[].concat((0,ti.Z)(Ca),(0,ti.Z)($l))}return(0,bc.I8)(Ca,{externalGetKey:Sa,childrenPropName:Rs})},[Te,Sa,jr,Rs,Ft]),Yo=(0,w.useMemo)(()=>Lm(Rs,qo),[Rs,qo]),sr=(0,w.useMemo)(()=>{const Ca=new Map;return Yo.forEach((qu,$l)=>{const su=Sa(qu,$l),tu=(Gt?Gt(qu):null)||{};Ca.set(su,tu)}),Ca},[Yo,Sa,Gt]),io=(0,w.useCallback)(Ca=>{var qu;return!!(!((qu=sr.get(Sa(Ca)))===null||qu===void 0)&&qu.disabled)},[sr,Sa]),[ws,cl]=(0,w.useMemo)(()=>{if(jr)return[Ii||[],[]];const{checkedKeys:Ca,halfCheckedKeys:qu}=(0,$c.S)(Ii,!0,da,io);return[Ca||[],qu]},[Ii,jr,da,io]),Dl=(0,w.useMemo)(()=>{const Ca=kt==="radio"?ws.slice(0,1):ws;return new Set(Ca)},[ws,kt]),Ba=(0,w.useMemo)(()=>kt==="radio"?new Set:new Set(cl),[cl,kt]),[Ss,wl]=(0,w.useState)(null);w.useEffect(()=>{mt||Gi(Qg)},[!!mt]);const rl=(0,w.useCallback)((Ca,qu)=>{let $l,su;Ps(Ca),Ft?($l=Ca,su=Ca.map(tu=>cs.current.get(tu))):($l=[],su=[],Ca.forEach(tu=>{const Js=Zs(tu);Js!==void 0&&($l.push(tu),su.push(Js))})),Gi($l),Nr==null||Nr($l,su,{type:qu})},[Gi,Zs,Nr,Ft]),mc=(0,w.useCallback)((Ca,qu,$l,su)=>{if(An){const tu=$l.map(Js=>Zs(Js));An(Zs(Ca),qu,tu,su)}rl($l,"single")},[An,Zs,rl]),gl=(0,w.useMemo)(()=>!tr||dr?null:(tr===!0?[Lg,ug,om]:tr).map(qu=>qu===Lg?{key:"all",text:ma.selectionAll,onSelect(){rl(Te.map(($l,su)=>Sa($l,su)).filter($l=>{const su=sr.get($l);return!(su!=null&&su.disabled)||Dl.has($l)}),"all")}}:qu===ug?{key:"invert",text:ma.selectInvert,onSelect(){const $l=new Set(Dl);qo.forEach((tu,Js)=>{const Kc=Sa(tu,Js),Le=sr.get(Kc);Le!=null&&Le.disabled||($l.has(Kc)?$l.delete(Kc):$l.add(Kc))});const su=Array.from($l);cn&&(or.deprecated(!1,"onSelectInvert","onChange"),cn(su)),rl(su,"invert")}}:qu===om?{key:"none",text:ma.selectNone,onSelect(){Jn==null||Jn(),rl(Array.from(Dl).filter($l=>{const su=sr.get($l);return su==null?void 0:su.disabled}),"none")}}:qu).map(qu=>Object.assign(Object.assign({},qu),{onSelect:function(){for(var $l,su,tu=arguments.length,Js=new Array(tu),Kc=0;Kc{var qu;if(!mt)return Ca.filter(Aa=>Aa!==ym);let $l=(0,ti.Z)(Ca);const su=new Set(Dl),tu=Yo.map(Sa).filter(Aa=>!sr.get(Aa).disabled),Js=tu.every(Aa=>su.has(Aa)),Kc=tu.some(Aa=>su.has(Aa)),Le=()=>{const Aa=[];Js?tu.forEach(Ql=>{su.delete(Ql),Aa.push(Ql)}):tu.forEach(Ql=>{su.has(Ql)||(su.add(Ql),Aa.push(Ql))});const bl=Array.from(su);Tn==null||Tn(!Js,bl.map(Ql=>Zs(Ql)),Aa.map(Ql=>Zs(Ql))),rl(bl,"all"),wl(null)};let Oe;if(kt!=="radio"){let Aa;if(gl){const Xa={getPopupContainer:ko,items:gl.map((vr,qa)=>{const{key:Ta,text:Du,onSelect:Wc}=vr;return{key:Ta!=null?Ta:qa,onClick:()=>{Wc==null||Wc(tu)},label:Du}})};Aa=w.createElement("div",{className:`${Ri}-selection-extra`},w.createElement(Uh.Z,{menu:Xa,getPopupContainer:ko},w.createElement("span",null,w.createElement(im.Z,null))))}const bl=Yo.map((Xa,vr)=>{const qa=Sa(Xa,vr),Ta=sr.get(qa)||{};return Object.assign({checked:su.has(qa)},Ta)}).filter(Xa=>{let{disabled:vr}=Xa;return vr}),Ql=!!bl.length&&bl.length===Yo.length,Ju=Ql&&bl.every(Xa=>{let{checked:vr}=Xa;return vr}),As=Ql&&bl.some(Xa=>{let{checked:vr}=Xa;return vr});Oe=!dr&&w.createElement("div",{className:`${Ri}-selection`},w.createElement(vf.Z,{checked:Ql?Ju:!!Yo.length&&Js,indeterminate:Ql?!Ju&&As:!Js&&Kc,onChange:Le,disabled:Yo.length===0||Ql,"aria-label":Aa?"Custom selection":"Select all",skipGroup:!0}),Aa)}let et;kt==="radio"?et=(Aa,bl,Ql)=>{const Ju=Sa(bl,Ql),As=su.has(Ju);return{node:w.createElement(ah.ZP,Object.assign({},sr.get(Ju),{checked:As,onClick:Xa=>Xa.stopPropagation(),onChange:Xa=>{su.has(Ju)||mc(Ju,!0,[Ju],Xa.nativeEvent)}})),checked:As}}:et=(Aa,bl,Ql)=>{var Ju;const As=Sa(bl,Ql),Xa=su.has(As),vr=Ba.has(As),qa=sr.get(As);let Ta;return ca==="nest"?Ta=vr:Ta=(Ju=qa==null?void 0:qa.indeterminate)!==null&&Ju!==void 0?Ju:vr,{node:w.createElement(vf.Z,Object.assign({},qa,{indeterminate:Ta,checked:Xa,skipGroup:!0,onClick:Du=>Du.stopPropagation(),onChange:Du=>{let{nativeEvent:Wc}=Du;const{shiftKey:os}=Wc;let Mo=-1,ks=-1;if(os&&jr){const Da=new Set([Ss,As]);tu.some((Ra,js)=>{if(Da.has(Ra))if(Mo===-1)Mo=js;else return ks=js,!0;return!1})}if(ks!==-1&&Mo!==ks&&jr){const Da=tu.slice(Mo,ks+1),Ra=[];Xa?Da.forEach(bs=>{su.has(bs)&&(Ra.push(bs),su.delete(bs))}):Da.forEach(bs=>{su.has(bs)||(Ra.push(bs),su.add(bs))});const js=Array.from(su);wr==null||wr(!Xa,js.map(bs=>Zs(bs)),Ra.map(bs=>Zs(bs))),rl(js,"multiple")}else{const Da=ws;if(jr){const Ra=Xa?td(Da,As):Tp(Da,As);mc(As,!Xa,Ra,Wc)}else{const Ra=(0,$c.S)([].concat((0,ti.Z)(Da),[As]),!0,da,io),{checkedKeys:js,halfCheckedKeys:bs}=Ra;let Qi=js;if(Xa){const ar=new Set(js);ar.delete(As),Qi=(0,$c.S)(Array.from(ar),{checked:!1,halfCheckedKeys:bs},da,io).checkedKeys}mc(As,!Xa,Qi,Wc)}}wl(Xa?null:As)}})),checked:Xa}};const hn=(Aa,bl,Ql)=>{const{node:Ju,checked:As}=et(Aa,bl,Ql);return ir?ir(As,bl,Ql,Ju):Ju};if(!$l.includes(ym))if($l.findIndex(Aa=>{var bl;return((bl=Aa[zn])===null||bl===void 0?void 0:bl.columnType)==="EXPAND_COLUMN"})===0){const[Aa,...bl]=$l;$l=[Aa,ym].concat((0,ti.Z)(bl))}else $l=[ym].concat((0,ti.Z)($l));const Rr=$l.indexOf(ym);$l=$l.filter((Aa,bl)=>Aa!==ym||bl===Rr);const wn=$l[Rr-1],li=$l[Rr+1];let Fi=Ln;Fi===void 0&&((li==null?void 0:li.fixed)!==void 0?Fi=li.fixed:(wn==null?void 0:wn.fixed)!==void 0&&(Fi=wn.fixed)),Fi&&wn&&((qu=wn[zn])===null||qu===void 0?void 0:qu.columnType)==="EXPAND_COLUMN"&&wn.fixed===void 0&&(wn.fixed=Fi);const _s=we()(`${Ri}-selection-col`,{[`${Ri}-selection-col-with-dropdown`]:tr&&kt==="checkbox"}),Ea={fixed:Fi,width:Lo,className:`${Ri}-selection-column`,title:mt.columnTitle||Oe,render:hn,onCell:mt.onCell,[zn]:{className:_s}};return $l.map(Aa=>Aa===ym?Ea:Aa)},[Sa,Yo,mt,ws,Dl,Ba,Lo,gl,ca,Ss,sr,wr,mc,io]),Dl]},jm={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"},Gp=jm,P0=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:Gp}))},wp=w.forwardRef(P0),Xf={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"},Zh=Xf,a0=function(mt,Ft){return w.createElement(Za.Z,(0,S.Z)({},mt,{ref:Ft,icon:Zh}))},k0=w.forwardRef(a0),Zg=m(61781);const Vm="ascend",m0="descend";function Gm(Ye){return typeof Ye.sorter=="object"&&typeof Ye.sorter.multiple=="number"?Ye.sorter.multiple:!1}function $d(Ye){return typeof Ye=="function"?Ye:Ye&&typeof Ye=="object"&&Ye.compare?Ye.compare:!1}function Y0(Ye,mt){return mt?Ye[Ye.indexOf(mt)+1]:Ye[0]}function jg(Ye,mt,Ft){let Dt=[];function zt(Gt,Nr){Dt.push({column:Gt,key:qd(Gt,Nr),multiplePriority:Gm(Gt),sortOrder:Gt.sortOrder})}return(Ye||[]).forEach((Gt,Nr)=>{const An=ja(Nr,Ft);Gt.children?("sortOrder"in Gt&&zt(Gt,An),Dt=[].concat((0,ti.Z)(Dt),(0,ti.Z)(jg(Gt.children,mt,An)))):Gt.sorter&&("sortOrder"in Gt?zt(Gt,An):mt&&Gt.defaultSortOrder&&Dt.push({column:Gt,key:qd(Gt,An),multiplePriority:Gm(Gt),sortOrder:Gt.defaultSortOrder}))}),Dt}function e0(Ye,mt,Ft,Dt,zt,Gt,Nr,An){return(mt||[]).map((Tn,cn)=>{const Jn=ja(cn,An);let wr=Tn;if(wr.sorter){const Lo=wr.sortDirections||zt,kt=wr.showSorterTooltip===void 0?Nr:wr.showSorterTooltip,tr=qd(wr,Jn),Ln=Ft.find(ca=>{let{key:Rs}=ca;return Rs===tr}),ir=Ln?Ln.sortOrder:null,dr=Y0(Lo,ir);let jr;if(Tn.sortIcon)jr=Tn.sortIcon({sortOrder:ir});else{const ca=Lo.includes(Vm)&&w.createElement(k0,{className:we()(`${Ye}-column-sorter-up`,{active:ir===Vm})}),Rs=Lo.includes(m0)&&w.createElement(wp,{className:we()(`${Ye}-column-sorter-down`,{active:ir===m0})});jr=w.createElement("span",{className:we()(`${Ye}-column-sorter`,{[`${Ye}-column-sorter-full`]:!!(ca&&Rs)})},w.createElement("span",{className:`${Ye}-column-sorter-inner`,"aria-hidden":"true"},ca,Rs))}const{cancelSort:Ri,triggerAsc:Te,triggerDesc:qo}=Gt||{};let Zs=Ri;dr===m0?Zs=qo:dr===Vm&&(Zs=Te);const Sa=typeof kt=="object"?kt:{title:Zs};wr=Object.assign(Object.assign({},wr),{className:we()(wr.className,{[`${Ye}-column-sort`]:ir}),title:ca=>{const Rs=w.createElement("div",{className:`${Ye}-column-sorters`},w.createElement("span",{className:`${Ye}-column-title`},ru(Tn.title,ca)),jr);return kt?w.createElement(Zg.Z,Object.assign({},Sa),Rs):Rs},onHeaderCell:ca=>{const Rs=Tn.onHeaderCell&&Tn.onHeaderCell(ca)||{},ma=Rs.onClick,ko=Rs.onKeyDown;Rs.onClick=Gi=>{Dt({column:Tn,key:tr,sortOrder:dr,multiplePriority:Gm(Tn)}),ma==null||ma(Gi)},Rs.onKeyDown=Gi=>{Gi.keyCode===Vh.Z.ENTER&&(Dt({column:Tn,key:tr,sortOrder:dr,multiplePriority:Gm(Tn)}),ko==null||ko(Gi))};const or=zl(Tn.title,{}),Ii=or==null?void 0:or.toString();return ir?Rs["aria-sort"]=ir==="ascend"?"ascending":"descending":Rs["aria-label"]=Ii||"",Rs.className=we()(Rs.className,`${Ye}-column-has-sorters`),Rs.tabIndex=0,Tn.ellipsis&&(Rs.title=(or!=null?or:"").toString()),Rs}})}return"children"in wr&&(wr=Object.assign(Object.assign({},wr),{children:e0(Ye,wr.children,Ft,Dt,zt,Gt,Nr,Jn)})),wr})}function _m(Ye){const{column:mt,sortOrder:Ft}=Ye;return{column:mt,order:Ft,field:mt.dataIndex,columnKey:mt.key}}function Um(Ye){const mt=Ye.filter(Ft=>{let{sortOrder:Dt}=Ft;return Dt}).map(_m);return mt.length===0&&Ye.length?Object.assign(Object.assign({},_m(Ye[Ye.length-1])),{column:void 0}):mt.length<=1?mt[0]||{}:mt}function yp(Ye,mt,Ft){const Dt=mt.slice().sort((Nr,An)=>An.multiplePriority-Nr.multiplePriority),zt=Ye.slice(),Gt=Dt.filter(Nr=>{let{column:{sorter:An},sortOrder:Tn}=Nr;return $d(An)&&Tn});return Gt.length?zt.sort((Nr,An)=>{for(let Tn=0;Tn{const An=Nr[Ft];return An?Object.assign(Object.assign({},Nr),{[Ft]:yp(An,mt,Ft)}):Nr}):zt}function sm(Ye){let{prefixCls:mt,mergedColumns:Ft,onSorterChange:Dt,sortDirections:zt,tableLocale:Gt,showSorterTooltip:Nr}=Ye;const[An,Tn]=w.useState(jg(Ft,!0)),cn=w.useMemo(()=>{let tr=!0;const Ln=jg(Ft,!1);if(!Ln.length)return An;const ir=[];function dr(Ri){tr?ir.push(Ri):ir.push(Object.assign(Object.assign({},Ri),{sortOrder:null}))}let jr=null;return Ln.forEach(Ri=>{jr===null?(dr(Ri),Ri.sortOrder&&(Ri.multiplePriority===!1?tr=!1:jr=!0)):(jr&&Ri.multiplePriority!==!1||(tr=!1),dr(Ri))}),ir},[Ft,An]),Jn=w.useMemo(()=>{const tr=cn.map(Ln=>{let{column:ir,sortOrder:dr}=Ln;return{column:ir,order:dr}});return{sortColumns:tr,sortColumn:tr[0]&&tr[0].column,sortOrder:tr[0]&&tr[0].order}},[cn]);function wr(tr){let Ln;tr.multiplePriority===!1||!cn.length||cn[0].multiplePriority===!1?Ln=[tr]:Ln=[].concat((0,ti.Z)(cn.filter(ir=>{let{key:dr}=ir;return dr!==tr.key})),[tr]),Tn(Ln),Dt(Um(Ln),Ln)}return[tr=>e0(mt,tr,cn,wr,zt,Gt,Nr),cn,Jn,()=>Um(cn)]}function Km(Ye,mt){return Ye.map(Ft=>{const Dt=Object.assign({},Ft);return Dt.title=ru(Ft.title,mt),"children"in Dt&&(Dt.children=Km(Dt.children,mt)),Dt})}function Ap(Ye){return[w.useCallback(Ft=>Km(Ft,Ye),[Ye])]}var Pg=Ki((Ye,mt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=mt;return Ft!==Dt}),pe=Cs((Ye,mt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=mt;return Ft!==Dt}),H=m(10274),ut=Ye=>{const{componentCls:mt}=Ye,Ft=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,Dt=(zt,Gt,Nr)=>({[`&${mt}-${zt}`]:{[`> ${mt}-container`]:{[`> ${mt}-content, > ${mt}-body`]:{[` + `]:{background:Rt},[`${lt}-switcher`]:{color:Jt},[`${lt}-node-content-wrapper`]:{color:Jt,background:"transparent"}}}}}},D=(Ke,lt)=>{const jt=`.${Ke}`,Nt=`${jt}-treenode`,Rt=lt.paddingXS/2,Jt=(0,Gc.TS)(lt,{treeCls:jt,treeNodeCls:Nt,treeNodePadding:Rt});return[sr(Ke,Jt),Ae(Jt)]},ie=Ke=>{const{controlHeightSM:lt}=Ke;return{titleHeight:lt,nodeHoverBg:Ke.controlItemBgHover,nodeSelectedBg:Ke.controlItemBgActive}};var Ee=(0,Wc.Z)("Tree",(Ke,lt)=>{let{prefixCls:jt}=lt;return[{[Ke.componentCls]:(0,Aa.C2)(`${jt}-checkbox`,Ke)},D(jt,Ke),(0,le.Z)(Ke)]},Ke=>{const{colorTextLightSolid:lt,colorPrimary:jt}=Ke;return Object.assign(Object.assign({},ie(Ke)),{directoryNodeSelectedColor:lt,directoryNodeSelectedBg:jt})});const Ne=4;function at(Ke){const{dropPosition:lt,dropLevelOffset:jt,prefixCls:Nt,indent:Rt,direction:Jt="ltr"}=Ke,dr=Jt==="ltr"?"left":"right",pr=Jt==="ltr"?"right":"left",Hn={[dr]:-jt*Rt+Ne,[pr]:0};switch(lt){case-1:Hn.top=-3;break;case 1:Hn.bottom=-3;break;default:Hn.bottom=-3,Hn[dr]=Rt+Ne;break}return v.createElement("div",{style:Hn,className:`${Nt}-drop-indicator`})}var Gt={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"},rn=Gt,Un=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:rn}))},Ir=v.forwardRef(Un),G=_(22508),J={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"},Q=J,ce=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Q}))},Ze=v.forwardRef(ce),Ct=_(43114),Mt=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Ct.Z}))},yn=v.forwardRef(Mt),_r=_(96159),yi=Ke=>{const{prefixCls:lt,switcherIcon:jt,treeNodeProps:Nt,showLine:Rt}=Ke,{isLeaf:Jt,expanded:dr,loading:pr}=Nt;if(pr)return v.createElement(G.Z,{className:`${lt}-switcher-loading-icon`});let Hn;if(Rt&&typeof Rt=="object"&&(Hn=Rt.showLeafIcon),Jt){if(!Rt)return null;if(typeof Hn!="boolean"&&Hn){const kr=typeof Hn=="function"?Hn(Nt):Hn,Yr=`${lt}-switcher-line-custom-icon`;return(0,_r.l$)(kr)?(0,_r.Tm)(kr,{className:Oe()(kr.props.className||"",Yr)}):kr}return Hn?v.createElement(ff,{className:`${lt}-switcher-line-icon`}):v.createElement("span",{className:`${lt}-switcher-leaf-line`})}const wr=`${lt}-switcher-icon`,vr=typeof jt=="function"?jt(Nt):jt;return(0,_r.l$)(vr)?(0,_r.Tm)(vr,{className:Oe()(vr.props.className||"",wr)}):vr!==void 0?vr:Rt?dr?v.createElement(Ze,{className:`${lt}-switcher-line-icon`}):v.createElement(yn,{className:`${lt}-switcher-line-icon`}):v.createElement(Ir,{className:wr})},Ji=v.forwardRef((Ke,lt)=>{const{getPrefixCls:jt,direction:Nt,virtual:Rt,tree:Jt}=v.useContext(hl.E_),{prefixCls:dr,className:pr,showIcon:Hn=!1,showLine:wr,switcherIcon:vr,blockNode:kr=!1,children:Yr,checkable:Ni=!1,selectable:Jn=!0,draggable:Kr,motion:ir,style:Or}=Ke,Nn=jt("tree",dr),Rr=jt(),Xr=ir!=null?ir:Object.assign(Object.assign({},(0,P.Z)(Rr)),{motionAppear:!1}),fi=Object.assign(Object.assign({},Ke),{checkable:Ni,selectable:Jn,showIcon:Hn,motion:Xr,blockNode:kr,showLine:!!wr,dropIndicatorRender:at}),[ri,Ri]=Ee(Nn),ro=v.useMemo(()=>{if(!Kr)return!1;let zo={};switch(typeof Kr){case"function":zo.nodeDraggable=Kr;break;case"object":zo=Object.assign({},Kr);break;default:break}return zo.icon!==!1&&(zo.icon=zo.icon||v.createElement(Vo,null)),zo},[Kr]),fo=zo=>v.createElement(yi,{prefixCls:Nn,switcherIcon:vr,treeNodeProps:zo,showLine:wr});return ri(v.createElement(Th.Z,Object.assign({itemHeight:20,ref:lt,virtual:Rt},fi,{style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Or),prefixCls:Nn,className:Oe()({[`${Nn}-icon-hide`]:!Hn,[`${Nn}-block-node`]:kr,[`${Nn}-unselectable`]:!Jn,[`${Nn}-rtl`]:Nt==="rtl"},Jt==null?void 0:Jt.className,pr,Ri),direction:Nt,checkable:Ni&&v.createElement("span",{className:`${Nn}-checkbox-inner`}),selectable:Jn,switcherIcon:fo,draggable:ro}),Yr))}),Lo;(function(Ke){Ke[Ke.None=0]="None",Ke[Ke.Start=1]="Start",Ke[Ke.End=2]="End"})(Lo||(Lo={}));function Qo(Ke,lt,jt){const{key:Nt,children:Rt}=jt;function Jt(dr){const pr=dr[Nt],Hn=dr[Rt];lt(pr,dr)!==!1&&Qo(Hn||[],lt,jt)}Ke.forEach(Jt)}function Zi(Ke){let{treeData:lt,expandedKeys:jt,startKey:Nt,endKey:Rt,fieldNames:Jt}=Ke;const dr=[];let pr=Lo.None;if(Nt&&Nt===Rt)return[Nt];if(!Nt||!Rt)return[];function Hn(wr){return wr===Nt||wr===Rt}return Qo(lt,wr=>{if(pr===Lo.End)return!1;if(Hn(wr)){if(dr.push(wr),pr===Lo.None)pr=Lo.Start;else if(pr===Lo.Start)return pr=Lo.End,!1}else pr===Lo.Start&&dr.push(wr);return jt.includes(wr)},(0,_i.w$)(Jt)),dr}function Wo(Ke,lt,jt){const Nt=(0,Nr.Z)(lt),Rt=[];return Qo(Ke,(Jt,dr)=>{const pr=Nt.indexOf(Jt);return pr!==-1&&(Rt.push(dr),Nt.splice(pr,1)),!!Nt.length},(0,_i.w$)(jt)),Rt}var js=function(Ke,lt){var jt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&<.indexOf(Nt)<0&&(jt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(Ke);Rt{var{defaultExpandAll:jt,defaultExpandParent:Nt,defaultExpandedKeys:Rt}=Ke,Jt=js(Ke,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const dr=v.useRef(),pr=v.useRef(),Hn=()=>{const{keyEntities:ro}=(0,_i.I8)(Ha(Jt));let fo;return jt?fo=Object.keys(ro):Nt?fo=(0,Zr.r7)(Jt.expandedKeys||Rt||[],ro):fo=Jt.expandedKeys||Rt,fo},[wr,vr]=v.useState(Jt.selectedKeys||Jt.defaultSelectedKeys||[]),[kr,Yr]=v.useState(()=>Hn());v.useEffect(()=>{"selectedKeys"in Jt&&vr(Jt.selectedKeys)},[Jt.selectedKeys]),v.useEffect(()=>{"expandedKeys"in Jt&&Yr(Jt.expandedKeys)},[Jt.expandedKeys]);const Ni=(ro,fo)=>{var zo;return"expandedKeys"in Jt||Yr(ro),(zo=Jt.onExpand)===null||zo===void 0?void 0:zo.call(Jt,ro,fo)},Jn=(ro,fo)=>{var zo;const{multiple:Oo,fieldNames:cs}=Jt,{node:Pi,nativeEvent:Us}=fo,{key:rs=""}=Pi,ao=Ha(Jt),ca=Object.assign(Object.assign({},fo),{selected:!0}),Ea=(Us==null?void 0:Us.ctrlKey)||(Us==null?void 0:Us.metaKey),ia=Us==null?void 0:Us.shiftKey;let qt;Oo&&Ea?(qt=ro,dr.current=rs,pr.current=qt,ca.selectedNodes=Wo(ao,qt,cs)):Oo&&ia?(qt=Array.from(new Set([].concat((0,Nr.Z)(pr.current||[]),(0,Nr.Z)(Zi({treeData:ao,expandedKeys:kr,startKey:rs,endKey:dr.current,fieldNames:cs}))))),ca.selectedNodes=Wo(ao,qt,cs)):(qt=[rs],dr.current=rs,pr.current=qt,ca.selectedNodes=Wo(ao,qt,cs)),(zo=Jt.onSelect)===null||zo===void 0||zo.call(Jt,qt,ca),"selectedKeys"in Jt||vr(qt)},{getPrefixCls:Kr,direction:ir}=v.useContext(hl.E_),{prefixCls:Or,className:Nn,showIcon:Rr=!0,expandAction:Xr="click"}=Jt,fi=js(Jt,["prefixCls","className","showIcon","expandAction"]),ri=Kr("tree",Or),Ri=Oe()(`${ri}-directory`,{[`${ri}-directory-rtl`]:ir==="rtl"},Nn);return v.createElement(Ji,Object.assign({icon:Ja,ref:lt,blockNode:!0},fi,{showIcon:Rr,expandAction:Xr,prefixCls:ri,className:Ri,expandedKeys:kr,selectedKeys:wr,onSelect:Jn,onExpand:Ni}))};var mu=v.forwardRef(Xl);const Ru=Ji;Ru.DirectoryTree=mu,Ru.TreeNode=Th.O;var ic=Ru,Ju=_(13805),Qc=_(75008);function lh(Ke){let{value:lt,onChange:jt,filterSearch:Nt,tablePrefixCls:Rt,locale:Jt}=Ke;return Nt?v.createElement("div",{className:`${Rt}-filter-dropdown-search`},v.createElement(Qc.Z,{prefix:v.createElement(Ju.Z,null),placeholder:Jt.filterSearchPlaceholder,onChange:jt,value:lt,htmlSize:1,className:`${Rt}-filter-dropdown-search-input`})):null}var zh=lh,Rh=_(15105);const kd=Ke=>{const{keyCode:lt}=Ke;lt===Rh.Z.ENTER&&Ke.stopPropagation()};var Sc=v.forwardRef((Ke,lt)=>v.createElement("div",{className:Ke.className,onClick:jt=>jt.stopPropagation(),onKeyDown:kd,ref:lt},Ke.children));function Gd(Ke){let lt=[];return(Ke||[]).forEach(jt=>{let{value:Nt,children:Rt}=jt;lt.push(Nt),Rt&&(lt=[].concat((0,Nr.Z)(lt),(0,Nr.Z)(Gd(Rt))))}),lt}function Od(Ke){return Ke.some(lt=>{let{children:jt}=lt;return jt})}function Yh(Ke,lt){return typeof lt=="string"||typeof lt=="number"?lt==null?void 0:lt.toString().toLowerCase().includes(Ke.trim().toLowerCase()):!1}function Vd(Ke){let{filters:lt,prefixCls:jt,filteredKeys:Nt,filterMultiple:Rt,searchValue:Jt,filterSearch:dr}=Ke;return lt.map((pr,Hn)=>{const wr=String(pr.value);if(pr.children)return{key:wr||Hn,label:pr.text,popupClassName:`${jt}-dropdown-submenu`,children:Vd({filters:pr.children,prefixCls:jt,filteredKeys:Nt,filterMultiple:Rt,searchValue:Jt,filterSearch:dr})};const vr=Rt?dl:Jl.ZP,kr={key:pr.value!==void 0?wr:Hn,label:v.createElement(v.Fragment,null,v.createElement(vr,{checked:Nt.includes(wr)}),v.createElement("span",null,pr.text))};return Jt.trim()?typeof dr=="function"?dr(Jt,pr)?kr:null:Yh(Jt,pr.text)?kr:null:kr})}function Id(Ke){return Ke||[]}function dd(Ke){var lt,jt;const{tablePrefixCls:Nt,prefixCls:Rt,column:Jt,dropdownPrefixCls:dr,columnKey:pr,filterMultiple:Hn,filterMode:wr="menu",filterSearch:vr=!1,filterState:kr,triggerFilter:Yr,locale:Ni,children:Jn,getPopupContainer:Kr}=Ke,{filterDropdownOpen:ir,onFilterDropdownOpenChange:Or,filterResetToDefaultFilteredValue:Nn,defaultFilteredValue:Rr,filterDropdownVisible:Xr,onFilterDropdownVisibleChange:fi}=Jt,[ri,Ri]=v.useState(!1),ro=!!(kr&&(!((lt=kr.filteredKeys)===null||lt===void 0)&<.length||kr.forceFiltered)),fo=Ps=>{Ri(Ps),Or==null||Or(Ps),fi==null||fi(Ps)},zo=(jt=ir!=null?ir:Xr)!==null&&jt!==void 0?jt:ri,Oo=kr==null?void 0:kr.filteredKeys,[cs,Pi]=up(Id(Oo)),Us=Ps=>{let{selectedKeys:La}=Ps;Pi(La)},rs=(Ps,La)=>{let{node:zl,checked:la}=La;Us(Hn?{selectedKeys:Ps}:{selectedKeys:la&&zl.key?[zl.key]:[]})};v.useEffect(()=>{ri&&Us({selectedKeys:Id(Oo)})},[Oo]);const[ao,ca]=v.useState([]),Ea=Ps=>{ca(Ps)},[ia,qt]=v.useState(""),gr=Ps=>{const{value:La}=Ps.target;qt(La)};v.useEffect(()=>{ri||qt("")},[ri]);const hi=Ps=>{const La=Ps&&Ps.length?Ps:null;if(La===null&&(!kr||!kr.filteredKeys)||(0,O.Z)(La,kr==null?void 0:kr.filteredKeys,!0))return null;Yr({column:Jt,key:pr,filteredKeys:La})},fs=()=>{fo(!1),hi(cs())},vs=function(){let{confirm:Ps,closeDropdown:La}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ps&&hi([]),La&&fo(!1),qt(""),Pi(Nn?(Rr||[]).map(zl=>String(zl)):[])},ga=function(){let{closeDropdown:Ps}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ps&&fo(!1),hi(cs())},Qi=(Ps,La)=>{La.source==="trigger"&&(Ps&&Oo!==void 0&&Pi(Id(Oo)),fo(Ps),!Ps&&!Jt.filterDropdown&&fs())},vo=Oe()({[`${dr}-menu-without-submenu`]:!Od(Jt.filters||[])}),Bo=Ps=>{if(Ps.target.checked){const La=Gd(Jt==null?void 0:Jt.filters).map(zl=>String(zl));Pi(La)}else Pi([])},Os=Ps=>{let{filters:La}=Ps;return(La||[]).map((zl,la)=>{const yo=String(zl.value),Ws={title:zl.text,key:zl.value!==void 0?yo:String(la)};return zl.children&&(Ws.children=Os({filters:zl.children})),Ws})},_a=Ps=>{var La;return Object.assign(Object.assign({},Ps),{text:Ps.title,value:Ps.key,children:((La=Ps.children)===null||La===void 0?void 0:La.map(zl=>_a(zl)))||[]})};let Ve;if(typeof Jt.filterDropdown=="function")Ve=Jt.filterDropdown({prefixCls:`${dr}-custom`,setSelectedKeys:Ps=>Us({selectedKeys:Ps}),selectedKeys:cs(),confirm:ga,clearFilters:vs,filters:Jt.filters,visible:zo,close:()=>{fo(!1)}});else if(Jt.filterDropdown)Ve=Jt.filterDropdown;else{const Ps=cs()||[],La=()=>(Jt.filters||[]).length===0?v.createElement(kp.Z,{image:kp.Z.PRESENTED_IMAGE_SIMPLE,description:Ni.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):wr==="tree"?v.createElement(v.Fragment,null,v.createElement(zh,{filterSearch:vr,value:ia,onChange:gr,tablePrefixCls:Nt,locale:Ni}),v.createElement("div",{className:`${Nt}-filter-dropdown-tree`},Hn?v.createElement(dl,{checked:Ps.length===Gd(Jt.filters).length,indeterminate:Ps.length>0&&Ps.lengthtypeof vr=="function"?vr(ia,_a(la)):Yh(ia,la.title):void 0}))):v.createElement(v.Fragment,null,v.createElement(zh,{filterSearch:vr,value:ia,onChange:gr,tablePrefixCls:Nt,locale:Ni}),v.createElement(Pp.Z,{selectable:!0,multiple:Hn,prefixCls:`${dr}-menu`,className:vo,onSelect:Us,onDeselect:Us,selectedKeys:Ps,getPopupContainer:Kr,openKeys:ao,onOpenChange:Ea,items:Vd({filters:Jt.filters||[],filterSearch:vr,prefixCls:Rt,filteredKeys:cs(),filterMultiple:Hn,searchValue:ia})})),zl=()=>Nn?(0,O.Z)((Rr||[]).map(la=>String(la)),Ps,!0):Ps.length===0;Ve=v.createElement(v.Fragment,null,La(),v.createElement("div",{className:`${Rt}-dropdown-btns`},v.createElement(Cu.ZP,{type:"link",size:"small",disabled:zl(),onClick:()=>vs()},Ni.filterReset),v.createElement(Cu.ZP,{type:"primary",size:"small",onClick:fs},Ni.filterConfirm)))}Jt.filterDropdown&&(Ve=v.createElement(zf.J,{selectable:void 0},Ve));const Da=()=>v.createElement(Sc,{className:`${Rt}-dropdown`},Ve);let sl;typeof Jt.filterIcon=="function"?sl=Jt.filterIcon(ro):Jt.filterIcon?sl=Jt.filterIcon:sl=v.createElement(Wh,null);const{direction:Ol}=v.useContext(hl.E_);return v.createElement("div",{className:`${Rt}-column`},v.createElement("span",{className:`${Nt}-column-title`},Jn),v.createElement(uu.Z,{dropdownRender:Da,trigger:["click"],open:zo,onOpenChange:Qi,getPopupContainer:Kr,placement:Ol==="rtl"?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:Oe()(`${Rt}-trigger`,{active:ro}),onClick:Ps=>{Ps.stopPropagation()}},sl)))}var Op=dd;function ip(Ke,lt,jt){let Nt=[];return(Ke||[]).forEach((Rt,Jt)=>{var dr;const pr=Ip(Jt,jt);if(Rt.filters||"filterDropdown"in Rt||"onFilter"in Rt)if("filteredValue"in Rt){let Hn=Rt.filteredValue;"filterDropdown"in Rt||(Hn=(dr=Hn==null?void 0:Hn.map(String))!==null&&dr!==void 0?dr:Hn),Nt.push({column:Rt,key:Ph(Rt,pr),filteredKeys:Hn,forceFiltered:Rt.filtered})}else Nt.push({column:Rt,key:Ph(Rt,pr),filteredKeys:lt&&Rt.defaultFilteredValue?Rt.defaultFilteredValue:void 0,forceFiltered:Rt.filtered});"children"in Rt&&(Nt=[].concat((0,Nr.Z)(Nt),(0,Nr.Z)(ip(Rt.children,lt,pr))))}),Nt}function fp(Ke,lt,jt,Nt,Rt,Jt,dr,pr){return jt.map((Hn,wr)=>{const vr=Ip(wr,pr),{filterMultiple:kr=!0,filterMode:Yr,filterSearch:Ni}=Hn;let Jn=Hn;if(Jn.filters||Jn.filterDropdown){const Kr=Ph(Jn,vr),ir=Nt.find(Or=>{let{key:Nn}=Or;return Kr===Nn});Jn=Object.assign(Object.assign({},Jn),{title:Or=>v.createElement(Op,{tablePrefixCls:Ke,prefixCls:`${Ke}-filter`,dropdownPrefixCls:lt,column:Jn,columnKey:Kr,filterState:ir,filterMultiple:kr,filterMode:Yr,filterSearch:Ni,triggerFilter:Jt,locale:Rt,getPopupContainer:dr},pg(Hn.title,Or))})}return"children"in Jn&&(Jn=Object.assign(Object.assign({},Jn),{children:fp(Ke,lt,Jn.children,Nt,Rt,Jt,dr,vr)})),Jn})}function Uc(Ke){const lt={};return Ke.forEach(jt=>{let{key:Nt,filteredKeys:Rt,column:Jt}=jt;const dr=Nt,{filters:pr,filterDropdown:Hn}=Jt;if(Hn)lt[dr]=Rt||null;else if(Array.isArray(Rt)){const wr=Gd(pr);lt[dr]=wr.filter(vr=>Rt.includes(String(vr)))}else lt[dr]=null}),lt}function yc(Ke,lt){return lt.reduce((jt,Nt)=>{const{column:{onFilter:Rt,filters:Jt},filteredKeys:dr}=Nt;return Rt&&dr&&dr.length?jt.filter(pr=>dr.some(Hn=>{const wr=Gd(Jt),vr=wr.findIndex(Yr=>String(Yr)===String(Hn)),kr=vr!==-1?wr[vr]:Hn;return Rt(kr,pr)})):jt},Ke)}const rh=Ke=>Ke.flatMap(lt=>"children"in lt?[lt].concat((0,Nr.Z)(rh(lt.children||[]))):[lt]);function uh(Ke){let{prefixCls:lt,dropdownPrefixCls:jt,mergedColumns:Nt,onFilterChange:Rt,getPopupContainer:Jt,locale:dr}=Ke;const pr=(0,hs.ln)("Table"),Hn=v.useMemo(()=>rh(Nt||[]),[Nt]),[wr,vr]=v.useState(()=>ip(Hn,!0)),kr=v.useMemo(()=>{const Kr=ip(Hn,!1);if(Kr.length===0)return Kr;let ir=!0,Or=!0;if(Kr.forEach(Nn=>{let{filteredKeys:Rr}=Nn;Rr!==void 0?ir=!1:Or=!1}),ir){const Nn=(Hn||[]).map((Rr,Xr)=>Ph(Rr,Ip(Xr)));return wr.filter(Rr=>{let{key:Xr}=Rr;return Nn.includes(Xr)}).map(Rr=>{const Xr=Hn[Nn.findIndex(fi=>fi===Rr.key)];return Object.assign(Object.assign({},Rr),{column:Object.assign(Object.assign({},Rr.column),Xr),forceFiltered:Xr.filtered})})}return Kr},[Hn,wr]),Yr=v.useMemo(()=>Uc(kr),[kr]),Ni=Kr=>{const ir=kr.filter(Or=>{let{key:Nn}=Or;return Nn!==Kr.key});ir.push(Kr),vr(ir),Rt(Uc(ir),ir)};return[Kr=>fp(lt,jt,Kr,kr,dr,Ni,Jt),kr,Yr]}var Gh=uh;function wc(Ke,lt,jt){const Nt=v.useRef({});function Rt(Jt){if(!Nt.current||Nt.current.data!==Ke||Nt.current.childrenColumnName!==lt||Nt.current.getRowKey!==jt){let pr=function(Hn){Hn.forEach((wr,vr)=>{const kr=jt(wr,vr);dr.set(kr,wr),wr&&typeof wr=="object"&< in wr&&pr(wr[lt]||[])})};const dr=new Map;pr(Ke),Nt.current={data:Ke,childrenColumnName:lt,kvMap:dr,getRowKey:jt}}return Nt.current.kvMap.get(Jt)}return[Rt]}function Sd(){const Ke=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let lt=1;lt{const Rt=jt[Nt];Rt!==void 0&&(Ke[Nt]=Rt)})}return Ke}var td=Sd,Dc=function(Ke,lt){var jt={};for(var Nt in Ke)Object.prototype.hasOwnProperty.call(Ke,Nt)&<.indexOf(Nt)<0&&(jt[Nt]=Ke[Nt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Nt=Object.getOwnPropertySymbols(Ke);Rt{const Jt=Ke[Rt];typeof Jt!="function"&&(jt[Rt]=Jt)}),jt}function Np(Ke,lt,jt){const Nt=jt&&typeof jt=="object"?jt:{},{total:Rt=0}=Nt,Jt=Dc(Nt,["total"]),[dr,pr]=(0,v.useState)(()=>({current:"defaultCurrent"in Jt?Jt.defaultCurrent:1,pageSize:"defaultPageSize"in Jt?Jt.defaultPageSize:Fo})),Hn=td(dr,Jt,{total:Rt>0?Rt:Ke}),wr=Math.ceil((Rt||Ke)/Hn.pageSize);Hn.current>wr&&(Hn.current=wr||1);const vr=(Yr,Ni)=>{pr({current:Yr!=null?Yr:1,pageSize:Ni||Hn.pageSize})},kr=(Yr,Ni)=>{var Jn;jt&&((Jn=jt.onChange)===null||Jn===void 0||Jn.call(jt,Yr,Ni)),vr(Yr,Ni),lt(Yr,Ni||(Hn==null?void 0:Hn.pageSize))};return jt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Hn),{onChange:kr}),vr]}var Hg=Np,Og={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"},jf=Og,Nd=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:jf}))},Nf=v.forwardRef(Nd),Fp={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"},Hp=Fp,Sp=function(lt,jt){return v.createElement(Nu.Z,(0,T.Z)({},lt,{ref:jt,icon:Hp}))},Uf=v.forwardRef(Sp),qd=_(61781);const yf="ascend",Tg="descend";function Yg(Ke){return typeof Ke.sorter=="object"&&typeof Ke.sorter.multiple=="number"?Ke.sorter.multiple:!1}function qf(Ke){return typeof Ke=="function"?Ke:Ke&&typeof Ke=="object"&&Ke.compare?Ke.compare:!1}function yd(Ke,lt){return lt?Ke[Ke.indexOf(lt)+1]:Ke[0]}function i0(Ke,lt,jt){let Nt=[];function Rt(Jt,dr){Nt.push({column:Jt,key:Ph(Jt,dr),multiplePriority:Yg(Jt),sortOrder:Jt.sortOrder})}return(Ke||[]).forEach((Jt,dr)=>{const pr=Ip(dr,jt);Jt.children?("sortOrder"in Jt&&Rt(Jt,pr),Nt=[].concat((0,Nr.Z)(Nt),(0,Nr.Z)(i0(Jt.children,lt,pr)))):Jt.sorter&&("sortOrder"in Jt?Rt(Jt,pr):lt&&Jt.defaultSortOrder&&Nt.push({column:Jt,key:Ph(Jt,pr),multiplePriority:Yg(Jt),sortOrder:Jt.defaultSortOrder}))}),Nt}function Cm(Ke,lt,jt,Nt,Rt,Jt,dr,pr){return(lt||[]).map((Hn,wr)=>{const vr=Ip(wr,pr);let kr=Hn;if(kr.sorter){const Yr=kr.sortDirections||Rt,Ni=kr.showSorterTooltip===void 0?dr:kr.showSorterTooltip,Jn=Ph(kr,vr),Kr=jt.find(ro=>{let{key:fo}=ro;return fo===Jn}),ir=Kr?Kr.sortOrder:null,Or=yd(Yr,ir);let Nn;if(Hn.sortIcon)Nn=Hn.sortIcon({sortOrder:ir});else{const ro=Yr.includes(yf)&&v.createElement(Uf,{className:Oe()(`${Ke}-column-sorter-up`,{active:ir===yf})}),fo=Yr.includes(Tg)&&v.createElement(Nf,{className:Oe()(`${Ke}-column-sorter-down`,{active:ir===Tg})});Nn=v.createElement("span",{className:Oe()(`${Ke}-column-sorter`,{[`${Ke}-column-sorter-full`]:!!(ro&&fo)})},v.createElement("span",{className:`${Ke}-column-sorter-inner`,"aria-hidden":"true"},ro,fo))}const{cancelSort:Rr,triggerAsc:Xr,triggerDesc:fi}=Jt||{};let ri=Rr;Or===Tg?ri=fi:Or===yf&&(ri=Xr);const Ri=typeof Ni=="object"?Object.assign({title:ri},Ni):{title:ri};kr=Object.assign(Object.assign({},kr),{className:Oe()(kr.className,{[`${Ke}-column-sort`]:ir}),title:ro=>{const fo=v.createElement("div",{className:`${Ke}-column-sorters`},v.createElement("span",{className:`${Ke}-column-title`},pg(Hn.title,ro)),Nn);return Ni?v.createElement(qd.Z,Object.assign({},Ri),fo):fo},onHeaderCell:ro=>{const fo=Hn.onHeaderCell&&Hn.onHeaderCell(ro)||{},zo=fo.onClick,Oo=fo.onKeyDown;fo.onClick=Us=>{Nt({column:Hn,key:Jn,sortOrder:Or,multiplePriority:Yg(Hn)}),zo==null||zo(Us)},fo.onKeyDown=Us=>{Us.keyCode===Rh.Z.ENTER&&(Nt({column:Hn,key:Jn,sortOrder:Or,multiplePriority:Yg(Hn)}),Oo==null||Oo(Us))};const cs=Wp(Hn.title,{}),Pi=cs==null?void 0:cs.toString();return ir?fo["aria-sort"]=ir==="ascend"?"ascending":"descending":fo["aria-label"]=Pi||"",fo.className=Oe()(fo.className,`${Ke}-column-has-sorters`),fo.tabIndex=0,Hn.ellipsis&&(fo.title=(cs!=null?cs:"").toString()),fo}})}return"children"in kr&&(kr=Object.assign(Object.assign({},kr),{children:Cm(Ke,kr.children,jt,Nt,Rt,Jt,dr,vr)})),kr})}function o0(Ke){const{column:lt,sortOrder:jt}=Ke;return{column:lt,order:jt,field:lt.dataIndex,columnKey:lt.key}}function qg(Ke){const lt=Ke.filter(jt=>{let{sortOrder:Nt}=jt;return Nt}).map(o0);return lt.length===0&&Ke.length?Object.assign(Object.assign({},o0(Ke[Ke.length-1])),{column:void 0}):lt.length<=1?lt[0]||{}:lt}function Qm(Ke,lt,jt){const Nt=lt.slice().sort((dr,pr)=>pr.multiplePriority-dr.multiplePriority),Rt=Ke.slice(),Jt=Nt.filter(dr=>{let{column:{sorter:pr},sortOrder:Hn}=dr;return qf(pr)&&Hn});return Jt.length?Rt.sort((dr,pr)=>{for(let Hn=0;Hn{const pr=dr[jt];return pr?Object.assign(Object.assign({},dr),{[jt]:Qm(pr,lt,jt)}):dr}):Rt}function x0(Ke){let{prefixCls:lt,mergedColumns:jt,onSorterChange:Nt,sortDirections:Rt,tableLocale:Jt,showSorterTooltip:dr}=Ke;const[pr,Hn]=v.useState(i0(jt,!0)),wr=v.useMemo(()=>{let Jn=!0;const Kr=i0(jt,!1);if(!Kr.length)return pr;const ir=[];function Or(Rr){Jn?ir.push(Rr):ir.push(Object.assign(Object.assign({},Rr),{sortOrder:null}))}let Nn=null;return Kr.forEach(Rr=>{Nn===null?(Or(Rr),Rr.sortOrder&&(Rr.multiplePriority===!1?Jn=!1:Nn=!0)):(Nn&&Rr.multiplePriority!==!1||(Jn=!1),Or(Rr))}),ir},[jt,pr]),vr=v.useMemo(()=>{const Jn=wr.map(Kr=>{let{column:ir,sortOrder:Or}=Kr;return{column:ir,order:Or}});return{sortColumns:Jn,sortColumn:Jn[0]&&Jn[0].column,sortOrder:Jn[0]&&Jn[0].order}},[wr]);function kr(Jn){let Kr;Jn.multiplePriority===!1||!wr.length||wr[0].multiplePriority===!1?Kr=[Jn]:Kr=[].concat((0,Nr.Z)(wr.filter(ir=>{let{key:Or}=ir;return Or!==Jn.key})),[Jn]),Hn(Kr),Nt(qg(Kr),Kr)}return[Jn=>Cm(lt,Jn,wr,kr,Rt,Jt,dr),wr,vr,()=>qg(wr)]}function Am(Ke,lt){return Ke.map(jt=>{const Nt=Object.assign({},jt);return Nt.title=pg(jt.title,lt),"children"in Nt&&(Nt.children=Am(Nt.children,lt)),Nt})}function Jg(Ke){return[v.useCallback(jt=>Am(jt,Ke),[Ke])]}var Qg=ms((Ke,lt)=>{const{_renderTimes:jt}=Ke,{_renderTimes:Nt}=lt;return jt!==Nt}),k0=zu((Ke,lt)=>{const{_renderTimes:jt}=Ke,{_renderTimes:Nt}=lt;return jt!==Nt}),Fg=_(10274),zg=Ke=>{const{componentCls:lt}=Ke,jt=`${Ke.lineWidth}px ${Ke.lineType} ${Ke.tableBorderColor}`,Nt=(Rt,Jt,dr)=>({[`&${lt}-${Rt}`]:{[`> ${lt}-container`]:{[`> ${lt}-content, > ${lt}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td - `]:{[`> ${mt}-expanded-row-fixed`]:{margin:`-${Gt}px -${Nr+Ye.lineWidth}px`}}}}}});return{[`${mt}-wrapper`]:{[`${mt}${mt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${mt}-title`]:{border:Ft,borderBottom:0},[`> ${mt}-container`]:{borderInlineStart:Ft,borderTop:Ft,[` - > ${mt}-content, - > ${mt}-header, - > ${mt}-body, - > ${mt}-summary + `]:{[`> ${lt}-expanded-row-fixed`]:{margin:`-${Jt}px -${dr+Ke.lineWidth}px`}}}}}});return{[`${lt}-wrapper`]:{[`${lt}${lt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${lt}-title`]:{border:jt,borderBottom:0},[`> ${lt}-container`]:{borderInlineStart:jt,borderTop:jt,[` + > ${lt}-content, + > ${lt}-header, + > ${lt}-body, + > ${lt}-summary `]:{"> table":{[` > thead > tr > th, > thead > tr > td, @@ -7909,71 +8017,71 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td - `]:{borderInlineEnd:Ft},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ft},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + `]:{borderInlineEnd:jt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:jt},"> tr > th::before":{backgroundColor:"transparent !important"}},[` > thead > tr, > tbody > tr, > tfoot > tr - `]:{[`> ${mt}-cell-fix-right-first::after`]:{borderInlineEnd:Ft}},[` + `]:{[`> ${lt}-cell-fix-right-first::after`]:{borderInlineEnd:jt}},[` > tbody > tr > th, > tbody > tr > td - `]:{[`> ${mt}-expanded-row-fixed`]:{margin:`-${Ye.tablePaddingVertical}px -${Ye.tablePaddingHorizontal+Ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ye.lineWidth,bottom:0,borderInlineEnd:Ft,content:'""'}}}}}},[`&${mt}-scroll-horizontal`]:{[`> ${mt}-container > ${mt}-body`]:{"> table > tbody":{[` - > tr${mt}-expanded-row, - > tr${mt}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Dt("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle)),Dt("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall)),{[`> ${mt}-footer`]:{border:Ft,borderTop:0}}),[`${mt}-cell`]:{[`${mt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ye.lineWidth}px 0 ${Ye.lineWidth}px ${Ye.tableHeaderBg}`}},[`${mt}-bordered ${mt}-cell-scrollbar`]:{borderInlineEnd:Ft}}}},rt=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-cell-ellipsis`]:Object.assign(Object.assign({},jd.vS),{wordBreak:"keep-all",[` - &${mt}-cell-fix-left-last, - &${mt}-cell-fix-right-first - `]:{overflow:"visible",[`${mt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${mt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},It=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-tbody > tr${mt}-placeholder`]:{textAlign:"center",color:Ye.colorTextDisabled,[` + `]:{[`> ${lt}-expanded-row-fixed`]:{margin:`-${Ke.tablePaddingVertical}px -${Ke.tablePaddingHorizontal+Ke.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ke.lineWidth,bottom:0,borderInlineEnd:jt,content:'""'}}}}}},[`&${lt}-scroll-horizontal`]:{[`> ${lt}-container > ${lt}-body`]:{"> table > tbody":{[` + > tr${lt}-expanded-row, + > tr${lt}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Nt("middle",Ke.tablePaddingVerticalMiddle,Ke.tablePaddingHorizontalMiddle)),Nt("small",Ke.tablePaddingVerticalSmall,Ke.tablePaddingHorizontalSmall)),{[`> ${lt}-footer`]:{border:jt,borderTop:0}}),[`${lt}-cell`]:{[`${lt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ke.lineWidth}px 0 ${Ke.lineWidth}px ${Ke.tableHeaderBg}`}},[`${lt}-bordered ${lt}-cell-scrollbar`]:{borderInlineEnd:jt}}}},Lg=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-wrapper`]:{[`${lt}-cell-ellipsis`]:Object.assign(Object.assign({},Zd.vS),{wordBreak:"keep-all",[` + &${lt}-cell-fix-left-last, + &${lt}-cell-fix-right-first + `]:{overflow:"visible",[`${lt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${lt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zf=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-wrapper`]:{[`${lt}-tbody > tr${lt}-placeholder`]:{textAlign:"center",color:Ke.colorTextDisabled,[` &:hover > th, &:hover > td, - `]:{background:Ye.colorBgContainer}}}}},Ut=m(49867),Yt=Ye=>{const{componentCls:mt,antCls:Ft,controlInteractiveSize:Dt,motionDurationSlow:zt,lineWidth:Gt,paddingXS:Nr,lineType:An,tableBorderColor:Tn,tableExpandIconBg:cn,tableExpandColumnWidth:Jn,borderRadius:wr,fontSize:Lo,fontSizeSM:kt,lineHeight:tr,tablePaddingVertical:Ln,tablePaddingHorizontal:ir,tableExpandedRowBg:dr,paddingXXS:jr}=Ye,Ri=Dt/2-Gt,Te=Ri*2+Gt*3,qo=`${Gt}px ${An} ${Tn}`,Zs=jr-Gt;return{[`${mt}-wrapper`]:{[`${mt}-expand-icon-col`]:{width:Jn},[`${mt}-row-expand-icon-cell`]:{textAlign:"center",[`${mt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${mt}-row-indent`]:{height:1,float:"left"},[`${mt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ut.N)(Ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Te,height:Te,padding:0,color:"inherit",lineHeight:`${Te}px`,background:cn,border:qo,borderRadius:wr,transform:`scale(${Dt/Te})`,transition:`all ${zt}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${zt} ease-out`,content:'""'},"&::before":{top:Ri,insetInlineEnd:Zs,insetInlineStart:Zs,height:Gt},"&::after":{top:Zs,bottom:Zs,insetInlineStart:Ri,width:Gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${mt}-row-indent + ${mt}-row-expand-icon`]:{marginTop:(Lo*tr-Gt*3)/2-Math.ceil((kt*1.4-Gt*3)/2),marginInlineEnd:Nr},[`tr${mt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:dr}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${mt}-expanded-row-fixed`]:{position:"relative",margin:`-${Ln}px -${ir}px`,padding:`${Ln}px ${ir}px`}}}},vn=Ye=>{const{componentCls:mt,antCls:Ft,iconCls:Dt,tableFilterDropdownWidth:zt,tableFilterDropdownSearchWidth:Gt,paddingXXS:Nr,paddingXS:An,colorText:Tn,lineWidth:cn,lineType:Jn,tableBorderColor:wr,tableHeaderIconColor:Lo,fontSizeSM:kt,tablePaddingHorizontal:tr,borderRadius:Ln,motionDurationSlow:ir,colorTextDescription:dr,colorPrimary:jr,tableHeaderFilterActiveBg:Ri,colorTextDisabled:Te,tableFilterDropdownBg:qo,tableFilterDropdownHeight:Zs,controlItemBgHover:Sa,controlItemBgActive:ca,boxShadowSecondary:Rs,filterDropdownMenuBg:ma}=Ye,ko=`${Ft}-dropdown`,or=`${mt}-filter-dropdown`,Ii=`${Ft}-tree`,Gi=`${cn}px ${Jn} ${wr}`;return[{[`${mt}-wrapper`]:{[`${mt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${mt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Nr,marginInline:`${Nr}px ${-tr/2}px`,padding:`0 ${Nr}px`,color:Lo,fontSize:kt,borderRadius:Ln,cursor:"pointer",transition:`all ${ir}`,"&:hover":{color:dr,background:Ri},"&.active":{color:jr}}}},{[`${Ft}-dropdown`]:{[or]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{minWidth:zt,backgroundColor:qo,borderRadius:Ln,boxShadow:Rs,overflow:"hidden",[`${ko}-menu`]:{maxHeight:Zs,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ma,"&:empty::after":{display:"block",padding:`${An}px 0`,color:Te,fontSize:kt,textAlign:"center",content:'"Not Found"'}},[`${or}-tree`]:{paddingBlock:`${An}px 0`,paddingInline:An,[Ii]:{padding:0},[`${Ii}-treenode ${Ii}-node-content-wrapper:hover`]:{backgroundColor:Sa},[`${Ii}-treenode-checkbox-checked ${Ii}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ca}}},[`${or}-search`]:{padding:An,borderBottom:Gi,"&-input":{input:{minWidth:Gt},[Dt]:{color:Te}}},[`${or}-checkall`]:{width:"100%",marginBottom:Nr,marginInlineStart:Nr},[`${or}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${An-cn}px ${An}px`,overflow:"hidden",borderTop:Gi}})}},{[`${Ft}-dropdown ${or}, ${or}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:An,color:Tn},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ur=Ye=>{const{componentCls:mt,lineWidth:Ft,colorSplit:Dt,motionDurationSlow:zt,zIndexTableFixed:Gt,tableBg:Nr,zIndexTableSticky:An}=Ye,Tn=Dt;return{[`${mt}-wrapper`]:{[` - ${mt}-cell-fix-left, - ${mt}-cell-fix-right - `]:{position:"sticky !important",zIndex:Gt,background:Nr},[` - ${mt}-cell-fix-left-first::after, - ${mt}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ft,width:30,transform:"translateX(100%)",transition:`box-shadow ${zt}`,content:'""',pointerEvents:"none"},[`${mt}-cell-fix-left-all::after`]:{display:"none"},[` - ${mt}-cell-fix-right-first::after, - ${mt}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-Ft,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${zt}`,content:'""',pointerEvents:"none"},[`${mt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:An+1,width:30,transition:`box-shadow ${zt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${mt}-ping-left`]:{[`&:not(${mt}-has-fix-left) ${mt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Tn}`}},[` - ${mt}-cell-fix-left-first::after, - ${mt}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${Tn}`},[`${mt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${mt}-ping-right`]:{[`&:not(${mt}-has-fix-right) ${mt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Tn}`}},[` - ${mt}-cell-fix-right-first::after, - ${mt}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${Tn}`}}}}},Hr=Ye=>{const{componentCls:mt,antCls:Ft}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-pagination${Ft}-pagination`]:{margin:`${Ye.margin}px 0`},[`${mt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},rr=Ye=>{const{componentCls:mt,tableRadius:Ft}=Ye;return{[`${mt}-wrapper`]:{[mt]:{[`${mt}-title, ${mt}-header`]:{borderRadius:`${Ft}px ${Ft}px 0 0`},[`${mt}-title + ${mt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${mt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ft,borderStartEndRadius:Ft,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ft},"> *:last-child":{borderStartEndRadius:Ft}}},"&-footer":{borderRadius:`0 0 ${Ft}px ${Ft}px`}}}}},ni=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${mt}-pagination-left`]:{justifyContent:"flex-end"},[`${mt}-pagination-right`]:{justifyContent:"flex-start"},[`${mt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${mt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${mt}-row-indent`]:{float:"right"}}}}},Co=Ye=>{const{componentCls:mt,antCls:Ft,iconCls:Dt,fontSizeIcon:zt,padding:Gt,paddingXS:Nr,tableHeaderIconColor:An,tableHeaderIconColorHover:Tn,tableSelectionColumnWidth:cn,tableSelectedRowBg:Jn,tableSelectedRowHoverBg:wr,tableRowHoverBg:Lo}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-selection-col`]:{width:cn,[`&${mt}-selection-col-with-dropdown`]:{width:cn+zt+Gt/4}},[`${mt}-bordered ${mt}-selection-col`]:{width:cn+Nr*2,[`&${mt}-selection-col-with-dropdown`]:{width:cn+zt+Gt/4+Nr*2}},[` - table tr th${mt}-selection-column, - table tr td${mt}-selection-column, - ${mt}-selection-column - `]:{paddingInlineEnd:Ye.paddingXS,paddingInlineStart:Ye.paddingXS,textAlign:"center",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${mt}-selection-column${mt}-cell-fix-left`]:{zIndex:Ye.zIndexTableFixed+1},[`table tr th${mt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${mt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${mt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ye.tablePaddingHorizontal/4}px`,[Dt]:{color:An,fontSize:zt,verticalAlign:"baseline","&:hover":{color:Tn}}},[`${mt}-tbody`]:{[`${mt}-row`]:{[`&${mt}-row-selected`]:{[`> ${mt}-cell`]:{background:Jn,"&-row-hover":{background:wr}}},[`> ${mt}-cell-row-hover`]:{background:Lo}}}}}},po=Ye=>{const{componentCls:mt}=Ye,Ft=(Dt,zt,Gt,Nr)=>({[`${mt}${mt}-${Dt}`]:{fontSize:Nr,[` - ${mt}-title, - ${mt}-footer, - ${mt}-cell, - ${mt}-thead > tr > th, - ${mt}-tbody > tr > th, - ${mt}-tbody > tr > td, + `]:{background:Ke.colorBgContainer}}}}},Ep=_(49867),O0=Ke=>{const{componentCls:lt,antCls:jt,controlInteractiveSize:Nt,motionDurationSlow:Rt,lineWidth:Jt,paddingXS:dr,lineType:pr,tableBorderColor:Hn,tableExpandIconBg:wr,tableExpandColumnWidth:vr,borderRadius:kr,fontSize:Yr,fontSizeSM:Ni,lineHeight:Jn,tablePaddingVertical:Kr,tablePaddingHorizontal:ir,tableExpandedRowBg:Or,paddingXXS:Nn}=Ke,Rr=Nt/2-Jt,Xr=Rr*2+Jt*3,fi=`${Jt}px ${pr} ${Hn}`,ri=Nn-Jt;return{[`${lt}-wrapper`]:{[`${lt}-expand-icon-col`]:{width:vr},[`${lt}-row-expand-icon-cell`]:{textAlign:"center",[`${lt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${lt}-row-indent`]:{height:1,float:"left"},[`${lt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ep.N)(Ke)),{position:"relative",float:"left",boxSizing:"border-box",width:Xr,height:Xr,padding:0,color:"inherit",lineHeight:`${Xr}px`,background:wr,border:fi,borderRadius:kr,transform:`scale(${Nt/Xr})`,transition:`all ${Rt}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${Rt} ease-out`,content:'""'},"&::before":{top:Rr,insetInlineEnd:ri,insetInlineStart:ri,height:Jt},"&::after":{top:ri,bottom:ri,insetInlineStart:Rr,width:Jt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${lt}-row-indent + ${lt}-row-expand-icon`]:{marginTop:(Yr*Jn-Jt*3)/2-Math.ceil((Ni*1.4-Jt*3)/2),marginInlineEnd:dr},[`tr${lt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:Or}},[`${jt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${lt}-expanded-row-fixed`]:{position:"relative",margin:`-${Kr}px -${ir}px`,padding:`${Kr}px ${ir}px`}}}},hm=Ke=>{const{componentCls:lt,antCls:jt,iconCls:Nt,tableFilterDropdownWidth:Rt,tableFilterDropdownSearchWidth:Jt,paddingXXS:dr,paddingXS:pr,colorText:Hn,lineWidth:wr,lineType:vr,tableBorderColor:kr,tableHeaderIconColor:Yr,fontSizeSM:Ni,tablePaddingHorizontal:Jn,borderRadius:Kr,motionDurationSlow:ir,colorTextDescription:Or,colorPrimary:Nn,tableHeaderFilterActiveBg:Rr,colorTextDisabled:Xr,tableFilterDropdownBg:fi,tableFilterDropdownHeight:ri,controlItemBgHover:Ri,controlItemBgActive:ro,boxShadowSecondary:fo,filterDropdownMenuBg:zo}=Ke,Oo=`${jt}-dropdown`,cs=`${lt}-filter-dropdown`,Pi=`${jt}-tree`,Us=`${wr}px ${vr} ${kr}`;return[{[`${lt}-wrapper`]:{[`${lt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${lt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-dr,marginInline:`${dr}px ${-Jn/2}px`,padding:`0 ${dr}px`,color:Yr,fontSize:Ni,borderRadius:Kr,cursor:"pointer",transition:`all ${ir}`,"&:hover":{color:Or,background:Rr},"&.active":{color:Nn}}}},{[`${jt}-dropdown`]:{[cs]:Object.assign(Object.assign({},(0,Zd.Wf)(Ke)),{minWidth:Rt,backgroundColor:fi,borderRadius:Kr,boxShadow:fo,overflow:"hidden",[`${Oo}-menu`]:{maxHeight:ri,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zo,"&:empty::after":{display:"block",padding:`${pr}px 0`,color:Xr,fontSize:Ni,textAlign:"center",content:'"Not Found"'}},[`${cs}-tree`]:{paddingBlock:`${pr}px 0`,paddingInline:pr,[Pi]:{padding:0},[`${Pi}-treenode ${Pi}-node-content-wrapper:hover`]:{backgroundColor:Ri},[`${Pi}-treenode-checkbox-checked ${Pi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ro}}},[`${cs}-search`]:{padding:pr,borderBottom:Us,"&-input":{input:{minWidth:Jt},[Nt]:{color:Xr}}},[`${cs}-checkall`]:{width:"100%",marginBottom:dr,marginInlineStart:dr},[`${cs}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${pr-wr}px ${pr}px`,overflow:"hidden",borderTop:Us}})}},{[`${jt}-dropdown ${cs}, ${cs}-submenu`]:{[`${jt}-checkbox-wrapper + span`]:{paddingInlineStart:pr,color:Hn},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Y0=Ke=>{const{componentCls:lt,lineWidth:jt,colorSplit:Nt,motionDurationSlow:Rt,zIndexTableFixed:Jt,tableBg:dr,zIndexTableSticky:pr}=Ke,Hn=Nt;return{[`${lt}-wrapper`]:{[` + ${lt}-cell-fix-left, + ${lt}-cell-fix-right + `]:{position:"sticky !important",zIndex:Jt,background:dr},[` + ${lt}-cell-fix-left-first::after, + ${lt}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-jt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Rt}`,content:'""',pointerEvents:"none"},[`${lt}-cell-fix-left-all::after`]:{display:"none"},[` + ${lt}-cell-fix-right-first::after, + ${lt}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-jt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Rt}`,content:'""',pointerEvents:"none"},[`${lt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:pr+1,width:30,transition:`box-shadow ${Rt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${lt}-ping-left`]:{[`&:not(${lt}-has-fix-left) ${lt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Hn}`}},[` + ${lt}-cell-fix-left-first::after, + ${lt}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${Hn}`},[`${lt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${lt}-ping-right`]:{[`&:not(${lt}-has-fix-right) ${lt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Hn}`}},[` + ${lt}-cell-fix-right-first::after, + ${lt}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${Hn}`}}}}},Md=Ke=>{const{componentCls:lt,antCls:jt}=Ke;return{[`${lt}-wrapper`]:{[`${lt}-pagination${jt}-pagination`]:{margin:`${Ke.margin}px 0`},[`${lt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ke.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},gm=Ke=>{const{componentCls:lt,tableRadius:jt}=Ke;return{[`${lt}-wrapper`]:{[lt]:{[`${lt}-title, ${lt}-header`]:{borderRadius:`${jt}px ${jt}px 0 0`},[`${lt}-title + ${lt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${lt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:jt,borderStartEndRadius:jt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:jt},"> *:last-child":{borderStartEndRadius:jt}}},"&-footer":{borderRadius:`0 0 ${jt}px ${jt}px`}}}}},Mm=Ke=>{const{componentCls:lt}=Ke;return{[`${lt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${lt}-pagination-left`]:{justifyContent:"flex-end"},[`${lt}-pagination-right`]:{justifyContent:"flex-start"},[`${lt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${lt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${lt}-row-indent`]:{float:"right"}}}}},Gp=Ke=>{const{componentCls:lt,antCls:jt,iconCls:Nt,fontSizeIcon:Rt,padding:Jt,paddingXS:dr,tableHeaderIconColor:pr,tableHeaderIconColorHover:Hn,tableSelectionColumnWidth:wr,tableSelectedRowBg:vr,tableSelectedRowHoverBg:kr,tableRowHoverBg:Yr}=Ke;return{[`${lt}-wrapper`]:{[`${lt}-selection-col`]:{width:wr,[`&${lt}-selection-col-with-dropdown`]:{width:wr+Rt+Jt/4}},[`${lt}-bordered ${lt}-selection-col`]:{width:wr+dr*2,[`&${lt}-selection-col-with-dropdown`]:{width:wr+Rt+Jt/4+dr*2}},[` + table tr th${lt}-selection-column, + table tr td${lt}-selection-column, + ${lt}-selection-column + `]:{paddingInlineEnd:Ke.paddingXS,paddingInlineStart:Ke.paddingXS,textAlign:"center",[`${jt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${lt}-selection-column${lt}-cell-fix-left`]:{zIndex:Ke.zIndexTableFixed+1},[`table tr th${lt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${lt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${lt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ke.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ke.tablePaddingHorizontal/4}px`,[Nt]:{color:pr,fontSize:Rt,verticalAlign:"baseline","&:hover":{color:Hn}}},[`${lt}-tbody`]:{[`${lt}-row`]:{[`&${lt}-row-selected`]:{[`> ${lt}-cell`]:{background:vr,"&-row-hover":{background:kr}}},[`> ${lt}-cell-row-hover`]:{background:Yr}}}}}},Fm=Ke=>{const{componentCls:lt}=Ke,jt=(Nt,Rt,Jt,dr)=>({[`${lt}${lt}-${Nt}`]:{fontSize:dr,[` + ${lt}-title, + ${lt}-footer, + ${lt}-cell, + ${lt}-thead > tr > th, + ${lt}-tbody > tr > th, + ${lt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${zt}px ${Gt}px`},[`${mt}-filter-trigger`]:{marginInlineEnd:`-${Gt/2}px`},[`${mt}-expanded-row-fixed`]:{margin:`-${zt}px -${Gt}px`},[`${mt}-tbody`]:{[`${mt}-wrapper:only-child ${mt}`]:{marginBlock:`-${zt}px`,marginInline:`${Ye.tableExpandColumnWidth-Gt}px -${Gt}px`}},[`${mt}-selection-extra`]:{paddingInlineStart:`${Gt/4}px`}}});return{[`${mt}-wrapper`]:Object.assign(Object.assign({},Ft("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle,Ye.tableFontSizeMiddle)),Ft("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall,Ye.tableFontSizeSmall))}},Po=Ye=>{const{componentCls:mt,marginXXS:Ft,fontSizeIcon:Dt,tableHeaderIconColor:zt,tableHeaderIconColorHover:Gt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-thead th${mt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,"&:hover":{background:Ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ye.colorPrimary},[` - &${mt}-cell-fix-left:hover, - &${mt}-cell-fix-right:hover - `]:{background:Ye.tableFixedHeaderSortActiveBg}},[`${mt}-thead th${mt}-column-sort`]:{background:Ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${mt}-column-sort`]:{background:Ye.tableBodySortBg},[`${mt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${mt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${mt}-column-sorter`]:{marginInlineStart:Ft,color:zt,fontSize:0,transition:`color ${Ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Dt,"&.active":{color:Ye.colorPrimary}},[`${mt}-column-sorter-up + ${mt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${mt}-column-sorters:hover ${mt}-column-sorter`]:{color:Gt}}}},zs=Ye=>{const{componentCls:mt,opacityLoading:Ft,tableScrollThumbBg:Dt,tableScrollThumbBgHover:zt,tableScrollThumbSize:Gt,tableScrollBg:Nr,zIndexTableSticky:An,stickyScrollBarBorderRadius:Tn}=Ye,cn=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`;return{[`${mt}-wrapper`]:{[`${mt}-sticky`]:{"&-holder":{position:"sticky",zIndex:An,background:Ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Gt}px !important`,zIndex:An,display:"flex",alignItems:"center",background:Nr,borderTop:cn,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Gt,backgroundColor:Dt,borderRadius:Tn,transition:`all ${Ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:zt}}}}}}},Ni=Ye=>{const{componentCls:mt,lineWidth:Ft,tableBorderColor:Dt}=Ye,zt=`${Ft}px ${Ye.lineType} ${Dt}`;return{[`${mt}-wrapper`]:{[`${mt}-summary`]:{position:"relative",zIndex:Ye.zIndexTableFixed,background:Ye.tableBg,"> tr":{"> th, > td":{borderBottom:zt}}},[`div${mt}-summary`]:{boxShadow:`0 -${Ft}px 0 ${Dt}`}}}},yi=Ye=>{const{componentCls:mt,motionDurationMid:Ft}=Ye,Dt=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,zt=`${mt}-expanded-row-cell`;return{[`${mt}-wrapper`]:{[`${mt}-tbody-virtual`]:{[`${mt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${mt}-cell`]:{borderBottom:Dt,transition:`background ${Ft}`},[`${mt}-expanded-row`]:{[`${zt}${zt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${mt}-bordered`]:{[`${mt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${mt}-cell`]:{borderInlineEnd:Dt,[`&${mt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ye.lineWidth,borderInlineStart:Dt}}},[`&${mt}-virtual`]:{[`${mt}-placeholder ${mt}-cell`]:{borderInlineEnd:Dt,borderBottom:Dt}}}}}};const Hn=Ye=>{const{componentCls:mt,fontWeightStrong:Ft,tablePaddingVertical:Dt,tablePaddingHorizontal:zt,lineWidth:Gt,lineType:Nr,tableBorderColor:An,tableFontSize:Tn,tableBg:cn,tableRadius:Jn,tableHeaderTextColor:wr,motionDurationMid:Lo,tableHeaderBg:kt,tableHeaderCellSplitColor:tr,tableFooterTextColor:Ln,tableFooterBg:ir}=Ye,dr=`${Gt}px ${Nr} ${An}`;return{[`${mt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jd.dF)()),{[mt]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{fontSize:Tn,background:cn,borderRadius:`${Jn}px ${Jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Jn}px ${Jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${mt}-cell, - ${mt}-thead > tr > th, - ${mt}-tbody > tr > th, - ${mt}-tbody > tr > td, + `]:{padding:`${Rt}px ${Jt}px`},[`${lt}-filter-trigger`]:{marginInlineEnd:`-${Jt/2}px`},[`${lt}-expanded-row-fixed`]:{margin:`-${Rt}px -${Jt}px`},[`${lt}-tbody`]:{[`${lt}-wrapper:only-child ${lt}`]:{marginBlock:`-${Rt}px`,marginInline:`${Ke.tableExpandColumnWidth-Jt}px -${Jt}px`}},[`${lt}-selection-extra`]:{paddingInlineStart:`${Jt/4}px`}}});return{[`${lt}-wrapper`]:Object.assign(Object.assign({},jt("middle",Ke.tablePaddingVerticalMiddle,Ke.tablePaddingHorizontalMiddle,Ke.tableFontSizeMiddle)),jt("small",Ke.tablePaddingVerticalSmall,Ke.tablePaddingHorizontalSmall,Ke.tableFontSizeSmall))}},hg=Ke=>{const{componentCls:lt,marginXXS:jt,fontSizeIcon:Nt,tableHeaderIconColor:Rt,tableHeaderIconColorHover:Jt}=Ke;return{[`${lt}-wrapper`]:{[`${lt}-thead th${lt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ke.motionDurationSlow}`,"&:hover":{background:Ke.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ke.colorPrimary},[` + &${lt}-cell-fix-left:hover, + &${lt}-cell-fix-right:hover + `]:{background:Ke.tableFixedHeaderSortActiveBg}},[`${lt}-thead th${lt}-column-sort`]:{background:Ke.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${lt}-column-sort`]:{background:Ke.tableBodySortBg},[`${lt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${lt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${lt}-column-sorter`]:{marginInlineStart:jt,color:Rt,fontSize:0,transition:`color ${Ke.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Nt,"&.active":{color:Ke.colorPrimary}},[`${lt}-column-sorter-up + ${lt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${lt}-column-sorters:hover ${lt}-column-sorter`]:{color:Jt}}}},ee=Ke=>{const{componentCls:lt,opacityLoading:jt,tableScrollThumbBg:Nt,tableScrollThumbBgHover:Rt,tableScrollThumbSize:Jt,tableScrollBg:dr,zIndexTableSticky:pr,stickyScrollBarBorderRadius:Hn}=Ke,wr=`${Ke.lineWidth}px ${Ke.lineType} ${Ke.tableBorderColor}`;return{[`${lt}-wrapper`]:{[`${lt}-sticky`]:{"&-holder":{position:"sticky",zIndex:pr,background:Ke.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Jt}px !important`,zIndex:pr,display:"flex",alignItems:"center",background:dr,borderTop:wr,opacity:jt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Jt,backgroundColor:Nt,borderRadius:Hn,transition:`all ${Ke.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Rt}}}}}}},Tt=Ke=>{const{componentCls:lt,lineWidth:jt,tableBorderColor:Nt}=Ke,Rt=`${jt}px ${Ke.lineType} ${Nt}`;return{[`${lt}-wrapper`]:{[`${lt}-summary`]:{position:"relative",zIndex:Ke.zIndexTableFixed,background:Ke.tableBg,"> tr":{"> th, > td":{borderBottom:Rt}}},[`div${lt}-summary`]:{boxShadow:`0 -${jt}px 0 ${Nt}`}}}},yt=Ke=>{const{componentCls:lt,motionDurationMid:jt}=Ke,Nt=`${Ke.lineWidth}px ${Ke.lineType} ${Ke.tableBorderColor}`,Rt=`${lt}-expanded-row-cell`;return{[`${lt}-wrapper`]:{[`${lt}-tbody-virtual`]:{[`${lt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${lt}-cell`]:{borderBottom:Nt,transition:`background ${jt}`},[`${lt}-expanded-row`]:{[`${Rt}${Rt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ke.lineWidth}px)`,borderInlineEnd:"none"}}},[`${lt}-bordered`]:{[`${lt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Nt,position:"absolute"},[`${lt}-cell`]:{borderInlineEnd:Nt,[`&${lt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ke.lineWidth,borderInlineStart:Nt}}},[`&${lt}-virtual`]:{[`${lt}-placeholder ${lt}-cell`]:{borderInlineEnd:Nt,borderBottom:Nt}}}}}};const ct=Ke=>{const{componentCls:lt,fontWeightStrong:jt,tablePaddingVertical:Nt,tablePaddingHorizontal:Rt,lineWidth:Jt,lineType:dr,tableBorderColor:pr,tableFontSize:Hn,tableBg:wr,tableRadius:vr,tableHeaderTextColor:kr,motionDurationMid:Yr,tableHeaderBg:Ni,tableHeaderCellSplitColor:Jn,tableFooterTextColor:Kr,tableFooterBg:ir}=Ke,Or=`${Jt}px ${dr} ${pr}`;return{[`${lt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Zd.dF)()),{[lt]:Object.assign(Object.assign({},(0,Zd.Wf)(Ke)),{fontSize:Hn,background:wr,borderRadius:`${vr}px ${vr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${vr}px ${vr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${lt}-cell, + ${lt}-thead > tr > th, + ${lt}-tbody > tr > th, + ${lt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${Dt}px ${zt}px`,overflowWrap:"break-word"},[`${mt}-title`]:{padding:`${Dt}px ${zt}px`},[`${mt}-thead`]:{[` + `]:{position:"relative",padding:`${Nt}px ${Rt}px`,overflowWrap:"break-word"},[`${lt}-title`]:{padding:`${Nt}px ${Rt}px`},[`${lt}-thead`]:{[` > tr > th, > tr > td - `]:{position:"relative",color:wr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:dr,transition:`background ${Lo} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${mt}-selection-column):not(${mt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:tr,transform:"translateY(-50%)",transition:`background-color ${Lo}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${mt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${Lo}, border-color ${Lo}`,borderBottom:dr,[` - > ${mt}-wrapper:only-child, - > ${mt}-expanded-row-fixed > ${mt}-wrapper:only-child - `]:{[mt]:{marginBlock:`-${Dt}px`,marginInline:`${Ye.tableExpandColumnWidth-zt}px -${zt}px`,[`${mt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:wr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:dr,transition:`background ${Lo} ease`}}},[`${mt}-footer`]:{padding:`${Dt}px ${zt}px`,color:Ln,background:ir}})}};var Zr=(0,yh.Z)("Table",Ye=>{const{colorTextHeading:mt,colorSplit:Ft,colorIcon:Dt,colorIconHover:zt,opacityLoading:Gt,colorBgContainer:Nr,controlInteractiveSize:An,headerBg:Tn,headerColor:cn,headerSortActiveBg:Jn,headerSortHoverBg:wr,bodySortBg:Lo,rowHoverBg:kt,rowSelectedBg:tr,rowSelectedHoverBg:Ln,rowExpandedBg:ir,cellPaddingBlock:dr,cellPaddingInline:jr,cellPaddingBlockMD:Ri,cellPaddingInlineMD:Te,cellPaddingBlockSM:qo,cellPaddingInlineSM:Zs,borderColor:Sa,footerBg:ca,footerColor:Rs,headerBorderRadius:ma,cellFontSize:ko,cellFontSizeMD:or,cellFontSizeSM:Ii,headerSplitColor:Gi,fixedHeaderSortActiveBg:cs,headerFilterHoverBg:Ps,filterDropdownBg:da,expandIconBg:Yo,selectionColumnWidth:sr,stickyScrollBarBg:io}=Ye,ws=new H.C(Dt),cl=new H.C(zt),Dl=2,Ba=(0,id.TS)(Ye,{tableFontSize:ko,tableBg:Nr,tableRadius:ma,tablePaddingVertical:dr,tablePaddingHorizontal:jr,tablePaddingVerticalMiddle:Ri,tablePaddingHorizontalMiddle:Te,tablePaddingVerticalSmall:qo,tablePaddingHorizontalSmall:Zs,tableBorderColor:Sa,tableHeaderTextColor:cn,tableHeaderBg:Tn,tableFooterTextColor:Rs,tableFooterBg:ca,tableHeaderCellSplitColor:Gi,tableHeaderSortBg:Jn,tableHeaderSortHoverBg:wr,tableHeaderIconColor:ws.clone().setAlpha(ws.getAlpha()*Gt).toRgbString(),tableHeaderIconColorHover:cl.clone().setAlpha(cl.getAlpha()*Gt).toRgbString(),tableBodySortBg:Lo,tableFixedHeaderSortActiveBg:cs,tableHeaderFilterActiveBg:Ps,tableFilterDropdownBg:da,tableRowHoverBg:kt,tableSelectedRowBg:tr,tableSelectedRowHoverBg:Ln,zIndexTableFixed:Dl,zIndexTableSticky:Dl+1,tableFontSizeMiddle:or,tableFontSizeSmall:Ii,tableSelectionColumnWidth:sr,tableExpandIconBg:Yo,tableExpandColumnWidth:An+2*Ye.padding,tableExpandedRowBg:ir,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:io,tableScrollThumbBgHover:mt,tableScrollBg:Ft});return[Hn(Ba),Hr(Ba),Ni(Ba),Po(Ba),vn(Ba),ut(Ba),rr(Ba),Yt(Ba),Ni(Ba),It(Ba),Co(Ba),ur(Ba),zs(Ba),rt(Ba),po(Ba),ni(Ba),yi(Ba)]},Ye=>{const{colorFillAlter:mt,colorBgContainer:Ft,colorTextHeading:Dt,colorFillSecondary:zt,colorFillContent:Gt,controlItemBgActive:Nr,controlItemBgActiveHover:An,padding:Tn,paddingSM:cn,paddingXS:Jn,colorBorderSecondary:wr,borderRadiusLG:Lo,fontSize:kt,controlHeight:tr,colorTextPlaceholder:Ln}=Ye,ir=new H.C(zt).onBackground(Ft).toHexShortString(),dr=new H.C(Gt).onBackground(Ft).toHexShortString(),jr=new H.C(mt).onBackground(Ft).toHexShortString();return{headerBg:jr,headerColor:Dt,headerSortActiveBg:ir,headerSortHoverBg:dr,bodySortBg:jr,rowHoverBg:jr,rowSelectedBg:Nr,rowSelectedHoverBg:An,rowExpandedBg:mt,cellPaddingBlock:Tn,cellPaddingInline:Tn,cellPaddingBlockMD:cn,cellPaddingInlineMD:Jn,cellPaddingBlockSM:Jn,cellPaddingInlineSM:Jn,borderColor:wr,headerBorderRadius:Lo,footerBg:jr,footerColor:Dt,cellFontSize:kt,cellFontSizeMD:kt,cellFontSizeSM:kt,headerSplitColor:wr,fixedHeaderSortActiveBg:ir,headerFilterHoverBg:Gt,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:tr,stickyScrollBarBg:Ln,stickyScrollBarBorderRadius:100}});const Yr=[],Ai=(Ye,mt)=>{const{prefixCls:Ft,className:Dt,rootClassName:zt,style:Gt,size:Nr,bordered:An,dropdownPrefixCls:Tn,dataSource:cn,pagination:Jn,rowSelection:wr,rowKey:Lo="key",rowClassName:kt,columns:tr,children:Ln,childrenColumnName:ir,onChange:dr,getPopupContainer:jr,loading:Ri,expandIcon:Te,expandable:qo,expandedRowRender:Zs,expandIconColumnIndex:Sa,indentSize:ca,scroll:Rs,sortDirections:ma,locale:ko,showSorterTooltip:or=!0,virtual:Ii}=Ye,Gi=(0,so.ln)("Table"),cs=w.useMemo(()=>tr||oi(Ln),[tr,Ln]),Ps=w.useMemo(()=>cs.some(ta=>ta.responsive),[cs]),da=(0,$a.Z)(Ps),Yo=w.useMemo(()=>{const ta=new Set(Object.keys(da).filter(yl=>da[yl]));return cs.filter(yl=>!yl.responsive||yl.responsive.some(mu=>ta.has(mu)))},[cs,da]),sr=(0,ds.Z)(Ye,["className","style","columns"]),{locale:io=hl.Z,direction:ws,table:cl,renderEmpty:Dl,getPrefixCls:Ba,getPopupContainer:Ss}=w.useContext(Pi.E_),wl=(0,pa.Z)(Nr),rl=Object.assign(Object.assign({},io.Table),ko),mc=cn||Yr,gl=Ba("table",Ft),ic=Ba("dropdown",Tn),Ca=Object.assign({childrenColumnName:ir,expandIconColumnIndex:Sa},qo),{childrenColumnName:qu="children"}=Ca,$l=w.useMemo(()=>mc.some(ta=>ta==null?void 0:ta[qu])?"nest":Zs||qo&&qo.expandedRowRender?"row":null,[mc]),su={body:w.useRef()},tu=wd(gl),Js=w.useMemo(()=>typeof Lo=="function"?Lo:ta=>ta==null?void 0:ta[Lo],[Lo]),[Kc]=af(mc,qu,Js),Le={},Oe=function(ta,yl){let mu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var hc,ud,Wo;const Wd=Object.assign(Object.assign({},Le),ta);mu&&((hc=Le.resetPagination)===null||hc===void 0||hc.call(Le),!((ud=Wd.pagination)===null||ud===void 0)&&ud.current&&(Wd.pagination.current=1),Jn&&Jn.onChange&&Jn.onChange(1,(Wo=Wd.pagination)===null||Wo===void 0?void 0:Wo.pageSize)),Rs&&Rs.scrollToFirstRowOnChange!==!1&&su.body.current&&Ji(0,{getContainer:()=>su.body.current}),dr==null||dr(Wd.pagination,Wd.filters,Wd.sorter,{currentDataSource:Qp(yp(mc,Wd.sorterStates,qu),Wd.filterStates),action:yl})},et=(ta,yl)=>{Oe({sorter:ta,sorterStates:yl},"sort",!1)},[hn,Rr,wn,li]=sm({prefixCls:gl,mergedColumns:Yo,onSorterChange:et,sortDirections:ma||["ascend","descend"],tableLocale:rl,showSorterTooltip:or}),Fi=w.useMemo(()=>yp(mc,Rr,qu),[mc,Rr]);Le.sorter=li(),Le.sorterStates=Rr;const _s=(ta,yl)=>{Oe({filters:ta,filterStates:yl},"filter",!0)},[Ea,Aa,bl]=df({prefixCls:gl,locale:rl,dropdownPrefixCls:ic,mergedColumns:Yo,onFilterChange:_s,getPopupContainer:jr||Ss}),Ql=Qp(Fi,Aa);Le.filters=bl,Le.filterStates=Aa;const Ju=w.useMemo(()=>{const ta={};return Object.keys(bl).forEach(yl=>{bl[yl]!==null&&(ta[yl]=bl[yl])}),Object.assign(Object.assign({},wn),{filters:ta})},[wn,bl]),[As]=Ap(Ju),Xa=(ta,yl)=>{Oe({pagination:Object.assign(Object.assign({},Le.pagination),{current:ta,pageSize:yl})},"paginate")},[vr,qa]=Wm(Ql.length,Xa,Jn);Le.pagination=Jn===!1?{}:rm(vr,Jn),Le.resetPagination=qa;const Ta=w.useMemo(()=>{if(Jn===!1||!vr.pageSize)return Ql;const{current:ta=1,total:yl,pageSize:mu=Id}=vr;return Ql.lengthmu?Ql.slice((ta-1)*mu,ta*mu):Ql:Ql.slice((ta-1)*mu,ta*mu)},[!!Jn,Ql,vr&&vr.current,vr&&vr.pageSize,vr&&vr.total]),[Du,Wc]=Sg({prefixCls:gl,data:Ql,pageData:Ta,getRowKey:Js,getRecordByKey:Kc,expandType:$l,childrenColumnName:qu,locale:rl,getPopupContainer:jr||Ss},wr),os=(ta,yl,mu)=>{let hc;return typeof kt=="function"?hc=we()(kt(ta,yl,mu)):hc=we()(kt),we()({[`${gl}-row-selected`]:Wc.has(Js(ta,yl))},hc)};Ca.__PARENT_RENDER_ICON__=Ca.expandIcon,Ca.expandIcon=Ca.expandIcon||Te||Bu(rl),$l==="nest"&&Ca.expandIconColumnIndex===void 0?Ca.expandIconColumnIndex=wr?1:0:Ca.expandIconColumnIndex>0&&wr&&(Ca.expandIconColumnIndex-=1),typeof Ca.indentSize!="number"&&(Ca.indentSize=typeof ca=="number"?ca:15);const Mo=w.useCallback(ta=>As(Du(Ea(hn(ta)))),[hn,Ea,Du]);let ks,Da;if(Jn!==!1&&(vr!=null&&vr.total)){let ta;vr.size?ta=vr.size:ta=wl==="small"||wl==="middle"?"small":void 0;const yl=ud=>w.createElement(Th,Object.assign({},vr,{className:we()(`${gl}-pagination ${gl}-pagination-${ud}`,vr.className),size:ta})),mu=ws==="rtl"?"left":"right",{position:hc}=vr;if(hc!==null&&Array.isArray(hc)){const ud=hc.find(pd=>pd.includes("top")),Wo=hc.find(pd=>pd.includes("bottom")),Wd=hc.every(pd=>`${pd}`=="none");!ud&&!Wo&&!Wd&&(Da=yl(mu)),ud&&(ks=yl(ud.toLowerCase().replace("top",""))),Wo&&(Da=yl(Wo.toLowerCase().replace("bottom","")))}else Da=yl(mu)}let Ra;typeof Ri=="boolean"?Ra={spinning:Ri}:typeof Ri=="object"&&(Ra=Object.assign({spinning:!0},Ri));const[js,bs]=Zr(gl),[,Qi]=(0,ff.Z)(),ar=we()(`${gl}-wrapper`,cl==null?void 0:cl.className,{[`${gl}-wrapper-rtl`]:ws==="rtl"},Dt,zt,bs),zr=Object.assign(Object.assign({},cl==null?void 0:cl.style),Gt),Ci=ko&&ko.emptyText||(Dl==null?void 0:Dl("Table"))||w.createElement(us.Z,{componentName:"Table"}),gs=Ii?pe:Pg,Es={},Pl=w.useMemo(()=>{const{fontSize:ta,lineHeight:yl,padding:mu,paddingXS:hc,paddingSM:ud}=Qi,Wo=Math.floor(ta*yl);switch(wl){case"large":return mu*2+Wo;case"small":return hc*2+Wo;default:return ud*2+Wo}},[Qi,wl]);return Ii&&(Es.listItemHeight=Pl),js(w.createElement("div",{ref:mt,className:ar,style:zr},w.createElement(yu.Z,Object.assign({spinning:!1},Ra),ks,w.createElement(gs,Object.assign({},Es,sr,{columns:Yo,direction:ws,expandable:Ca,prefixCls:gl,className:we()({[`${gl}-middle`]:wl==="middle",[`${gl}-small`]:wl==="small",[`${gl}-bordered`]:An,[`${gl}-empty`]:mc.length===0}),data:Ta,rowKey:Js,rowClassName:os,emptyText:Ci,internalHooks:A,internalRefs:su,transformColumns:Mo,getContainerWidth:tu})),Da)))};var Bi=w.forwardRef(Ai);const Oi=(Ye,mt)=>{const Ft=w.useRef(0);return Ft.current+=1,w.createElement(Bi,Object.assign({},Ye,{ref:mt,_renderTimes:Ft.current}))},jo=w.forwardRef(Oi);jo.SELECTION_COLUMN=ym,jo.EXPAND_COLUMN=y,jo.SELECTION_ALL=Lg,jo.SELECTION_INVERT=ug,jo.SELECTION_NONE=om,jo.Column=Pc,jo.ColumnGroup=eo,jo.Summary=Wt;var ys=jo,Os=ys},11568:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ar}});var y=m(67294),A=m(62208),b=m(35872),z=m(87462),k=m(42110),N=m(93771),w=function(Gn,Ei){return y.createElement(N.Z,(0,z.Z)({},Gn,{ref:Ei,icon:k.Z}))},I=y.forwardRef(w),C=m(94184),f=m.n(C),S=m(4942),P=m(1413),W=m(97685),te=m(71002),q=m(91),ie=m(31131),he=m(21770),de=m(82225),fe=(0,y.createContext)(null),ke=y.forwardRef(function(tn,Gn){var Ei=tn.prefixCls,In=tn.className,Li=tn.style,nr=tn.id,wi=tn.active,Mi=tn.tabKey,Fr=tn.children;return y.createElement("div",{id:nr&&"".concat(nr,"-panel-").concat(Mi),role:"tabpanel",tabIndex:wi?0:-1,"aria-labelledby":nr&&"".concat(nr,"-tab-").concat(Mi),"aria-hidden":!wi,style:Li,className:f()(Ei,wi&&"".concat(Ei,"-active"),In),ref:Gn},Fr)}),Ie=ke,Be=["key","forceRender","style","className"];function be(tn){var Gn=tn.id,Ei=tn.activeKey,In=tn.animated,Li=tn.tabPosition,nr=tn.destroyInactiveTabPane,wi=y.useContext(fe),Mi=wi.prefixCls,Fr=wi.tabs,qn=In.tabPane,ms="".concat(Mi,"-tabpane");return y.createElement("div",{className:f()("".concat(Mi,"-content-holder"))},y.createElement("div",{className:f()("".concat(Mi,"-content"),"".concat(Mi,"-content-").concat(Li),(0,S.Z)({},"".concat(Mi,"-content-animated"),qn))},Fr.map(function(ya){var ha=ya.key,Ws=ya.forceRender,Ua=ya.style,Ao=ya.className,dl=(0,q.Z)(ya,Be),$r=ha===Ei;return y.createElement(de.ZP,(0,z.Z)({key:ha,visible:$r,forceRender:Ws,removeOnLeave:!!nr,leavedClassName:"".concat(ms,"-hidden")},In.tabPaneMotion),function(er,Tr){var pr=er.style,ci=er.className;return y.createElement(Ie,(0,z.Z)({},dl,{prefixCls:ms,id:Gn,tabKey:ha,animated:qn,active:$r,style:(0,P.Z)((0,P.Z)({},Ua),pr),className:f()(Ao,ci),ref:Tr}))})})))}var me=m(74902),ye=m(48555),_e=m(66680),Ce=m(42550),De={width:0,height:0,left:0,top:0};function ge(tn,Gn,Ei){return(0,y.useMemo)(function(){for(var In,Li=new Map,nr=Gn.get((In=tn[0])===null||In===void 0?void 0:In.key)||De,wi=nr.left+nr.width,Mi=0;MiEn?(Xt=Sr,Eo.current="x"):(Xt=ui,Eo.current="y"),Gn(-Xt,-Xt)&&xs.preventDefault()}var Ts=(0,y.useRef)(null);Ts.current={onTouchStart:Tr,onTouchMove:pr,onTouchEnd:ci,onWheel:mo},y.useEffect(function(){function xs(gn){Ts.current.onTouchStart(gn)}function Sr(gn){Ts.current.onTouchMove(gn)}function ui(gn){Ts.current.onTouchEnd(gn)}function Xt(gn){Ts.current.onWheel(gn)}return document.addEventListener("touchmove",Sr,{passive:!1}),document.addEventListener("touchend",ui,{passive:!1}),tn.current.addEventListener("touchstart",xs,{passive:!1}),tn.current.addEventListener("wheel",Xt),function(){document.removeEventListener("touchmove",Sr),document.removeEventListener("touchend",ui)}},[])}var ft=m(8410);function $t(tn){var Gn=(0,y.useState)(0),Ei=(0,W.Z)(Gn,2),In=Ei[0],Li=Ei[1],nr=(0,y.useRef)(0),wi=(0,y.useRef)();return wi.current=tn,(0,ft.o)(function(){var Mi;(Mi=wi.current)===null||Mi===void 0||Mi.call(wi)},[In]),function(){nr.current===In&&(nr.current+=1,Li(nr.current))}}function vt(tn){var Gn=(0,y.useRef)([]),Ei=(0,y.useState)({}),In=(0,W.Z)(Ei,2),Li=In[1],nr=(0,y.useRef)(typeof tn=="function"?tn():tn),wi=$t(function(){var Fr=nr.current;Gn.current.forEach(function(qn){Fr=qn(Fr)}),Gn.current=[],nr.current=Fr,Li({})});function Mi(Fr){Gn.current.push(Fr),wi()}return[nr.current,Mi]}var yn={width:0,height:0,left:0,top:0,right:0};function Bn(tn,Gn,Ei,In,Li,nr,wi){var Mi=wi.tabs,Fr=wi.tabPosition,qn=wi.rtl,ms,ya,ha;return["top","bottom"].includes(Fr)?(ms="width",ya=qn?"right":"left",ha=Math.abs(Ei)):(ms="height",ya="top",ha=-Ei),(0,y.useMemo)(function(){if(!Mi.length)return[0,0];for(var Ws=Mi.length,Ua=Ws,Ao=0;Aoha+Gn){Ua=Ao-1;break}}for(var $r=0,er=Ws-1;er>=0;er-=1){var Tr=tn.get(Mi[er].key)||yn;if(Tr[ya]=Ua?[0,0]:[$r,Ua]},[tn,Gn,In,Li,nr,ha,Fr,Mi.map(function(Ws){return Ws.key}).join("_"),qn])}function Lr(tn){var Gn;return tn instanceof Map?(Gn={},tn.forEach(function(Ei,In){Gn[In]=Ei})):Gn=tn,JSON.stringify(Gn)}var ii="TABS_DQ";function gi(tn){return String(tn).replace(/"/g,ii)}function no(tn,Gn,Ei,In){return!(!Ei||In||tn===!1||tn===void 0&&(Gn===!1||Gn===null))}function To(tn,Gn){var Ei=tn.prefixCls,In=tn.editable,Li=tn.locale,nr=tn.style;return!In||In.showAdd===!1?null:y.createElement("button",{ref:Gn,type:"button",className:"".concat(Ei,"-nav-add"),style:nr,"aria-label":(Li==null?void 0:Li.addAriaLabel)||"Add tab",onClick:function(Mi){In.onEdit("add",{event:Mi})}},In.addIcon||"+")}var _r=y.forwardRef(To),Bo=y.forwardRef(function(tn,Gn){var Ei=tn.position,In=tn.prefixCls,Li=tn.extra;if(!Li)return null;var nr,wi={};return(0,te.Z)(Li)==="object"&&!y.isValidElement(Li)?wi=Li:wi.right=Li,Ei==="right"&&(nr=wi.right),Ei==="left"&&(nr=wi.left),nr?y.createElement("div",{className:"".concat(In,"-extra-content"),ref:Gn},nr):null}),hs=Bo,ve=m(29171),So=m(72512),ho=m(15105);function go(tn,Gn){var Ei=tn.prefixCls,In=tn.id,Li=tn.tabs,nr=tn.locale,wi=tn.mobile,Mi=tn.moreIcon,Fr=Mi===void 0?"More":Mi,qn=tn.moreTransitionName,ms=tn.style,ya=tn.className,ha=tn.editable,Ws=tn.tabBarGutter,Ua=tn.rtl,Ao=tn.removeAriaLabel,dl=tn.onTabClick,$r=tn.getPopupContainer,er=tn.popupClassName,Tr=(0,y.useState)(!1),pr=(0,W.Z)(Tr,2),ci=pr[0],Eo=pr[1],mo=(0,y.useState)(null),Ts=(0,W.Z)(mo,2),xs=Ts[0],Sr=Ts[1],ui="".concat(In,"-more-popup"),Xt="".concat(Ei,"-dropdown"),gn=xs!==null?"".concat(ui,"-").concat(xs):null,En=nr==null?void 0:nr.dropdownAriaLabel;function tt(jn,Cr){jn.preventDefault(),jn.stopPropagation(),ha.onEdit("remove",{key:Cr,event:jn})}var at=y.createElement(So.ZP,{onClick:function(Cr){var ki=Cr.key,Vi=Cr.domEvent;dl(ki,Vi),Eo(!1)},prefixCls:"".concat(Xt,"-menu"),id:ui,tabIndex:-1,role:"listbox","aria-activedescendant":gn,selectedKeys:[xs],"aria-label":En!==void 0?En:"expanded dropdown"},Li.map(function(jn){var Cr=jn.closable,ki=jn.disabled,Vi=jn.closeIcon,Ki=jn.key,fs=jn.label,Ns=no(Cr,Vi,ha,ki);return y.createElement(So.sN,{key:Ki,id:"".concat(ui,"-").concat(Ki),role:"option","aria-controls":In&&"".concat(In,"-panel-").concat(Ki),disabled:ki},y.createElement("span",null,fs),Ns&&y.createElement("button",{type:"button","aria-label":Ao||"remove",tabIndex:0,className:"".concat(Xt,"-menu-item-remove"),onClick:function(_a){_a.stopPropagation(),tt(_a,Ki)}},Vi||ha.removeIcon||"\xD7"))}));function gt(jn){for(var Cr=Li.filter(function(Ns){return!Ns.disabled}),ki=Cr.findIndex(function(Ns){return Ns.key===xs})||0,Vi=Cr.length,Ki=0;Kivl?"left":"right"})}),En=(0,W.Z)(gn,2),tt=En[0],at=En[1],gt=je(0,function(El,vl){!Xt&&Tr&&Tr({direction:El>vl?"top":"bottom"})}),Ne=(0,W.Z)(gt,2),lt=Ne[0],St=Ne[1],ln=(0,y.useState)([0,0]),jn=(0,W.Z)(ln,2),Cr=jn[0],ki=jn[1],Vi=(0,y.useState)([0,0]),Ki=(0,W.Z)(Vi,2),fs=Ki[0],Ns=Ki[1],Bs=(0,y.useState)([0,0]),_a=(0,W.Z)(Bs,2),oo=_a[0],Ds=_a[1],oa=(0,y.useState)([0,0]),va=(0,W.Z)(oa,2),Bl=va[0],Fa=va[1],ml=vt(new Map),la=(0,W.Z)(ml,2),Nl=la[0],vs=la[1],Hi=ge(nr,Nl,fs[0]),to=sn(Cr,Xt),sa=sn(fs,Xt),Cs=sn(oo,Xt),Ka=sn(Bl,Xt),Wu=toeo?eo:El}var Wn=(0,y.useRef)(),yr=(0,y.useState)(),ai=(0,W.Z)(yr,2),hi=ai[0],Ji=ai[1];function so(){Ji(Date.now())}function Pi(){window.clearTimeout(Wn.current)}bt(Ts,function(El,vl){function fu(Fu,lc){Fu(function(Ic){var Uc=ds(Ic+lc);return Uc})}return Wu?(Xt?fu(at,El):fu(St,vl),Pi(),so(),!0):!1}),(0,y.useEffect)(function(){return Pi(),hi&&(Wn.current=window.setTimeout(function(){Ji(0)},100)),Pi},[hi]);var us=Bn(Hi,rc,Xt?tt:lt,sa,Cs,Ka,(0,P.Z)((0,P.Z)({},tn),{},{tabs:nr})),pa=(0,W.Z)(us,2),$a=pa[0],hl=pa[1],Zl=(0,_e.Z)(function(){var El=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ms,vl=Hi.get(El)||{width:0,height:0,left:0,right:0,top:0};if(Xt){var fu=tt;ya?vl.righttt+rc&&(fu=vl.right+vl.width-rc):vl.left<-tt?fu=-vl.left:vl.left+vl.width>-tt+rc&&(fu=-(vl.left+vl.width-rc)),St(0),at(ds(fu))}else{var Fu=lt;vl.top<-lt?Fu=-vl.top:vl.top+vl.height>-lt+rc&&(Fu=-(vl.top+vl.height-rc)),at(0),St(ds(Fu))}}),Ml={};Ao==="top"||Ao==="bottom"?Ml[ya?"marginRight":"marginLeft"]=dl:Ml.marginTop=dl;var Za=nr.map(function(El,vl){var fu=El.key;return y.createElement(dn,{id:Fr,prefixCls:Li,key:fu,tab:El,style:vl===0?void 0:Ml,closable:El.closable,editable:Ws,active:fu===ms,renderWrapper:$r,removeAriaLabel:Ua==null?void 0:Ua.removeAriaLabel,onClick:function(lc){er(fu,lc)},onFocus:function(){Zl(fu),so(),Ts.current&&(ya||(Ts.current.scrollLeft=0),Ts.current.scrollTop=0)}})}),ku=function(){return vs(function(){var vl=new Map;return nr.forEach(function(fu){var Fu,lc=fu.key,Ic=(Fu=xs.current)===null||Fu===void 0?void 0:Fu.querySelector('[data-node-key="'.concat(gi(lc),'"]'));Ic&&vl.set(lc,{width:Ic.offsetWidth,height:Ic.offsetHeight,left:Ic.offsetLeft,top:Ic.offsetTop})}),vl})};(0,y.useEffect)(function(){ku()},[nr.map(function(El){return El.key}).join("_")]);var ea=$t(function(){var El=Wt(ci),vl=Wt(Eo),fu=Wt(mo);ki([El[0]-vl[0]-fu[0],El[1]-vl[1]-fu[1]]);var Fu=Wt(ui);Ds(Fu);var lc=Wt(Sr);Fa(lc);var Ic=Wt(xs);Ns([Ic[0]-Fu[0],Ic[1]-Fu[1]]),ku()}),Qa=nr.slice(0,$a),el=nr.slice(hl+1),Hl=[].concat((0,me.Z)(Qa),(0,me.Z)(el)),Jl=Hi.get(ms),vu=Ct({activeTabOffset:Jl,horizontal:Xt,rtl:ya,indicatorSize:pr}),au=vu.style;(0,y.useEffect)(function(){Zl()},[ms,vo,eo,Lr(Jl),Lr(Hi),Xt]),(0,y.useEffect)(function(){ea()},[ya]);var Cn=!!Hl.length,Eu="".concat(Li,"-nav-wrap"),ls,Ks,xa,Il;return Xt?ya?(Ks=tt>0,ls=tt!==eo):(ls=tt<0,Ks=tt!==vo):(xa=lt<0,Il=lt!==vo),y.createElement(ye.Z,{onResize:ea},y.createElement("div",{ref:(0,Ce.x1)(Gn,ci),role:"tablist",className:f()("".concat(Li,"-nav"),wi),style:Mi,onKeyDown:function(){so()}},y.createElement(hs,{ref:Eo,position:"left",extra:ha,prefixCls:Li}),y.createElement(ye.Z,{onResize:ea},y.createElement("div",{className:f()(Eu,(Ei={},(0,S.Z)(Ei,"".concat(Eu,"-ping-left"),ls),(0,S.Z)(Ei,"".concat(Eu,"-ping-right"),Ks),(0,S.Z)(Ei,"".concat(Eu,"-ping-top"),xa),(0,S.Z)(Ei,"".concat(Eu,"-ping-bottom"),Il),Ei)),ref:Ts},y.createElement(ye.Z,{onResize:ea},y.createElement("div",{ref:xs,className:"".concat(Li,"-nav-list"),style:{transform:"translate(".concat(tt,"px, ").concat(lt,"px)"),transition:hi?"none":void 0}},Za,y.createElement(_r,{ref:ui,prefixCls:Li,locale:Ua,editable:Ws,style:(0,P.Z)((0,P.Z)({},Za.length===0?void 0:Ml),{},{visibility:Cn?"hidden":null})}),y.createElement("div",{className:f()("".concat(Li,"-ink-bar"),(0,S.Z)({},"".concat(Li,"-ink-bar-animated"),qn.inkBar)),style:au}))))),y.createElement(ji,(0,z.Z)({},tn,{removeAriaLabel:Ua==null?void 0:Ua.removeAriaLabel,ref:Sr,prefixCls:Li,tabs:Hl,className:!Cn&&Pc,tabMoving:!!hi})),y.createElement(hs,{ref:mo,position:"right",extra:ha,prefixCls:Li})))}var Tt=y.forwardRef(Mt),xt=["renderTabBar"],Ht=["label","key"];function Vn(tn){var Gn=tn.renderTabBar,Ei=(0,q.Z)(tn,xt),In=y.useContext(fe),Li=In.tabs;if(Gn){var nr=(0,P.Z)((0,P.Z)({},Ei),{},{panes:Li.map(function(wi){var Mi=wi.label,Fr=wi.key,qn=(0,q.Z)(wi,Ht);return y.createElement(Ie,(0,z.Z)({tab:Mi,key:Fr,tabKey:Fr},qn))})});return Gn(nr,Tt)}return y.createElement(Tt,Ei)}var en=m(80334);function fr(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Gn;return tn===!1?Gn={inkBar:!1,tabPane:!1}:tn===!0?Gn={inkBar:!0,tabPane:!1}:Gn=(0,P.Z)({inkBar:!0},(0,te.Z)(tn)==="object"?tn:{}),Gn.tabPaneMotion&&Gn.tabPane===void 0&&(Gn.tabPane=!0),!Gn.tabPaneMotion&&Gn.tabPane&&(Gn.tabPane=!1),Gn}var Kr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ri=0;function si(tn,Gn){var Ei,In=tn.id,Li=tn.prefixCls,nr=Li===void 0?"rc-tabs":Li,wi=tn.className,Mi=tn.items,Fr=tn.direction,qn=tn.activeKey,ms=tn.defaultActiveKey,ya=tn.editable,ha=tn.animated,Ws=tn.tabPosition,Ua=Ws===void 0?"top":Ws,Ao=tn.tabBarGutter,dl=tn.tabBarStyle,$r=tn.tabBarExtraContent,er=tn.locale,Tr=tn.moreIcon,pr=tn.moreTransitionName,ci=tn.destroyInactiveTabPane,Eo=tn.renderTabBar,mo=tn.onChange,Ts=tn.onTabClick,xs=tn.onTabScroll,Sr=tn.getPopupContainer,ui=tn.popupClassName,Xt=tn.indicatorSize,gn=(0,q.Z)(tn,Kr),En=y.useMemo(function(){return(Mi||[]).filter(function(Fa){return Fa&&(0,te.Z)(Fa)==="object"&&"key"in Fa})},[Mi]),tt=Fr==="rtl",at=fr(ha),gt=(0,y.useState)(!1),Ne=(0,W.Z)(gt,2),lt=Ne[0],St=Ne[1];(0,y.useEffect)(function(){St((0,ie.Z)())},[]);var ln=(0,he.Z)(function(){var Fa;return(Fa=En[0])===null||Fa===void 0?void 0:Fa.key},{value:qn,defaultValue:ms}),jn=(0,W.Z)(ln,2),Cr=jn[0],ki=jn[1],Vi=(0,y.useState)(function(){return En.findIndex(function(Fa){return Fa.key===Cr})}),Ki=(0,W.Z)(Vi,2),fs=Ki[0],Ns=Ki[1];(0,y.useEffect)(function(){var Fa=En.findIndex(function(la){return la.key===Cr});if(Fa===-1){var ml;Fa=Math.max(0,Math.min(fs,En.length-1)),ki((ml=En[Fa])===null||ml===void 0?void 0:ml.key)}Ns(Fa)},[En.map(function(Fa){return Fa.key}).join("_"),Cr,fs]);var Bs=(0,he.Z)(null,{value:In}),_a=(0,W.Z)(Bs,2),oo=_a[0],Ds=_a[1];(0,y.useEffect)(function(){In||(Ds("rc-tabs-".concat(ri)),ri+=1)},[]);function oa(Fa,ml){Ts==null||Ts(Fa,ml);var la=Fa!==Cr;ki(Fa),la&&(mo==null||mo(Fa))}var va={id:oo,activeKey:Cr,animated:at,tabPosition:Ua,rtl:tt,mobile:lt},Bl=(0,P.Z)((0,P.Z)({},va),{},{editable:ya,locale:er,moreIcon:Tr,moreTransitionName:pr,tabBarGutter:Ao,onTabClick:oa,onTabScroll:xs,extra:$r,style:dl,panes:null,getPopupContainer:Sr,popupClassName:ui,indicatorSize:Xt});return y.createElement(fe.Provider,{value:{tabs:En,prefixCls:nr}},y.createElement("div",(0,z.Z)({ref:Gn,id:In,className:f()(nr,"".concat(nr,"-").concat(Ua),(Ei={},(0,S.Z)(Ei,"".concat(nr,"-mobile"),lt),(0,S.Z)(Ei,"".concat(nr,"-editable"),ya),(0,S.Z)(Ei,"".concat(nr,"-rtl"),tt),Ei),wi)},gn),y.createElement(Vn,(0,z.Z)({},Bl,{renderTabBar:Eo})),y.createElement(be,(0,z.Z)({destroyInactiveTabPane:ci},va,{animated:at}))))}var uo=y.forwardRef(si),Qo=uo,_n=Qo,Vr=m(53124),qr=m(98675),Ui=m(33603);const xo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Us(tn){let Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ei;return Gn===!1?Ei={inkBar:!1,tabPane:!1}:Gn===!0?Ei={inkBar:!0,tabPane:!0}:Ei=Object.assign({inkBar:!0},typeof Gn=="object"?Gn:{}),Ei.tabPane&&(Ei.tabPaneMotion=Object.assign(Object.assign({},xo),{motionName:(0,Ui.m)(tn,"switch")})),Ei}var zn=m(50344),Kn=function(tn,Gn){var Ei={};for(var In in tn)Object.prototype.hasOwnProperty.call(tn,In)&&Gn.indexOf(In)<0&&(Ei[In]=tn[In]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Li=0,In=Object.getOwnPropertySymbols(tn);LiGn)}function mi(tn,Gn){if(tn)return tn;const Ei=(0,zn.Z)(Gn).map(In=>{if(y.isValidElement(In)){const{key:Li,props:nr}=In,wi=nr||{},{tab:Mi}=wi,Fr=Kn(wi,["tab"]);return Object.assign(Object.assign({key:String(Li)},Fr),{label:Mi})}return null});return Or(Ei)}var Er=m(14747),ti=m(67968),di=m(45503),rn=m(67771),Xr=tn=>{const{componentCls:Gn,motionDurationSlow:Ei}=tn;return[{[Gn]:{[`${Gn}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ei}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ei}`}}}}},[(0,rn.oN)(tn,"slide-up"),(0,rn.oN)(tn,"slide-down")]]};const ao=tn=>{const{componentCls:Gn,tabsCardPadding:Ei,cardBg:In,cardGutter:Li,colorBorderSecondary:nr,itemSelectedColor:wi}=tn;return{[`${Gn}-card`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{margin:0,padding:Ei,background:In,border:`${tn.lineWidth}px ${tn.lineType} ${nr}`,transition:`all ${tn.motionDurationSlow} ${tn.motionEaseInOut}`},[`${Gn}-tab-active`]:{color:wi,background:tn.colorBgContainer},[`${Gn}-ink-bar`]:{visibility:"hidden"}},[`&${Gn}-top, &${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Li}px`}}}},[`&${Gn}-top`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0 0`},[`${Gn}-tab-active`]:{borderBottomColor:tn.colorBgContainer}}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`0 0 ${tn.borderRadiusLG}px ${tn.borderRadiusLG}px`},[`${Gn}-tab-active`]:{borderTopColor:tn.colorBgContainer}}},[`&${Gn}-left, &${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginTop:`${Li}px`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${tn.borderRadiusLG}px 0 0 ${tn.borderRadiusLG}px`}},[`${Gn}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:tn.colorBgContainer}}}},[`&${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0`}},[`${Gn}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:tn.colorBgContainer}}}}}}},as=tn=>{const{componentCls:Gn,itemHoverColor:Ei,dropdownEdgeChildVerticalPadding:In}=tn;return{[`${Gn}-dropdown`]:Object.assign(Object.assign({},(0,Er.Wf)(tn)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:tn.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Gn}-dropdown-menu`]:{maxHeight:tn.tabsDropdownHeight,margin:0,padding:`${In}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:tn.colorBgContainer,backgroundClip:"padding-box",borderRadius:tn.borderRadiusLG,outline:"none",boxShadow:tn.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Er.vS),{display:"flex",alignItems:"center",minWidth:tn.tabsDropdownWidth,margin:0,padding:`${tn.paddingXXS}px ${tn.paddingSM}px`,color:tn.colorText,fontWeight:"normal",fontSize:tn.fontSize,lineHeight:tn.lineHeight,cursor:"pointer",transition:`all ${tn.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:tn.marginSM},color:tn.colorTextDescription,fontSize:tn.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ei}},"&:hover":{background:tn.controlItemBgHover},"&-disabled":{"&, &:hover":{color:tn.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bt=tn=>{const{componentCls:Gn,margin:Ei,colorBorderSecondary:In,horizontalMargin:Li,verticalItemPadding:nr,verticalItemMargin:wi}=tn;return{[`${Gn}-top, ${Gn}-bottom`]:{flexDirection:"column",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{margin:Li,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${tn.lineWidth}px ${tn.lineType} ${In}`,content:"''"},[`${Gn}-ink-bar`]:{height:tn.lineWidthBold,"&-animated":{transition:`width ${tn.motionDurationSlow}, left ${tn.motionDurationSlow}, - right ${tn.motionDurationSlow}`}},[`${Gn}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:tn.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:tn.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:tn.boxShadowTabsOverflowRight},[`&${Gn}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Gn}-top`]:{[`> ${Gn}-nav, - > div > ${Gn}-nav`]:{"&::before":{bottom:0},[`${Gn}-ink-bar`]:{bottom:0}}},[`${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,marginTop:`${Ei}px`,marginBottom:0,"&::before":{top:0},[`${Gn}-ink-bar`]:{top:0}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0}},[`${Gn}-left, ${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{flexDirection:"column",minWidth:tn.controlHeight*1.25,[`${Gn}-tab`]:{padding:nr,textAlign:"center"},[`${Gn}-tab + ${Gn}-tab`]:{margin:wi},[`${Gn}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:tn.controlHeight},"&::before":{top:0,boxShadow:tn.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:tn.boxShadowTabsOverflowBottom},[`&${Gn}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Gn}-ink-bar`]:{width:tn.lineWidthBold,"&-animated":{transition:`height ${tn.motionDurationSlow}, top ${tn.motionDurationSlow}`}},[`${Gn}-nav-list, ${Gn}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${tn.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${tn.lineWidth}px ${tn.lineType} ${tn.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:tn.paddingLG}}}},[`${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,[`${Gn}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-tn.lineWidth},borderRight:{_skip_check_:!0,value:`${tn.lineWidth}px ${tn.lineType} ${tn.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingRight:{_skip_check_:!0,value:tn.paddingLG}}}}}},pn=tn=>{const{componentCls:Gn,cardPaddingSM:Ei,cardPaddingLG:In,horizontalItemPaddingSM:Li,horizontalItemPaddingLG:nr}=tn;return{[Gn]:{"&-small":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Li,fontSize:tn.titleFontSizeSM}}},"&-large":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:nr,fontSize:tn.titleFontSizeLG}}}},[`${Gn}-card`]:{[`&${Gn}-small`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ei}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`0 0 ${tn.borderRadius}px ${tn.borderRadius}px`}},[`&${Gn}-top`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`${tn.borderRadius}px ${tn.borderRadius}px 0 0`}},[`&${Gn}-right`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${tn.borderRadius}px ${tn.borderRadius}px 0`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${tn.borderRadius}px 0 0 ${tn.borderRadius}px`}}}},[`&${Gn}-large`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:In}}}}}},br=tn=>{const{componentCls:Gn,itemActiveColor:Ei,itemHoverColor:In,iconCls:Li,tabsHorizontalItemMargin:nr,horizontalItemPadding:wi,itemSelectedColor:Mi,itemColor:Fr}=tn,qn=`${Gn}-tab`;return{[qn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:wi,fontSize:tn.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Fr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ei}},(0,Er.Qy)(tn)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-tn.marginXXS},marginLeft:{_skip_check_:!0,value:tn.marginXS},color:tn.colorTextDescription,fontSize:tn.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${tn.motionDurationSlow}`,"&:hover":{color:tn.colorTextHeading}},"&:hover":{color:In},[`&${qn}-active ${qn}-btn`]:{color:Mi,textShadow:tn.tabsActiveTextShadow},[`&${qn}-disabled`]:{color:tn.colorTextDisabled,cursor:"not-allowed"},[`&${qn}-disabled ${qn}-btn, &${qn}-disabled ${Gn}-remove`]:{"&:focus, &:active":{color:tn.colorTextDisabled}},[`& ${qn}-remove ${Li}`]:{margin:0},[Li]:{marginRight:{_skip_check_:!0,value:tn.marginSM}}},[`${qn} + ${qn}`]:{margin:{_skip_check_:!0,value:nr}}}},Jr=tn=>{const{componentCls:Gn,tabsHorizontalItemMarginRTL:Ei,iconCls:In,cardGutter:Li}=tn;return{[`${Gn}-rtl`]:{direction:"rtl",[`${Gn}-nav`]:{[`${Gn}-tab`]:{margin:{_skip_check_:!0,value:Ei},[`${Gn}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[In]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${tn.marginSM}px`}},[`${Gn}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${tn.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${tn.marginXXS}px`},[In]:{margin:0}}}},[`&${Gn}-left`]:{[`> ${Gn}-nav`]:{order:1},[`> ${Gn}-content-holder`]:{order:0}},[`&${Gn}-right`]:{[`> ${Gn}-nav`]:{order:0},[`> ${Gn}-content-holder`]:{order:1}},[`&${Gn}-card${Gn}-top, &${Gn}-card${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginRight:{_skip_check_:!0,value:Li},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Gn}-dropdown-rtl`]:{direction:"rtl"},[`${Gn}-menu-item`]:{[`${Gn}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},vi=tn=>{const{componentCls:Gn,tabsCardPadding:Ei,cardHeight:In,cardGutter:Li,itemHoverColor:nr,itemActiveColor:wi,colorBorderSecondary:Mi}=tn;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Er.Wf)(tn)),{display:"flex",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Gn}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${tn.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Gn}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${tn.motionDurationSlow}`},[`${Gn}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Gn}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Gn}-nav-more`]:{position:"relative",padding:Ei,background:"transparent",border:0,color:tn.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:tn.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Gn}-nav-add`]:Object.assign({minWidth:In,marginLeft:{_skip_check_:!0,value:Li},padding:`0 ${tn.paddingXS}px`,background:"transparent",border:`${tn.lineWidth}px ${tn.lineType} ${Mi}`,borderRadius:`${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:tn.colorText,transition:`all ${tn.motionDurationSlow} ${tn.motionEaseInOut}`,"&:hover":{color:nr},"&:active, &:focus:not(:focus-visible)":{color:wi}},(0,Er.Qy)(tn))},[`${Gn}-extra-content`]:{flex:"none"},[`${Gn}-ink-bar`]:{position:"absolute",background:tn.inkBarColor,pointerEvents:"none"}}),br(tn)),{[`${Gn}-content`]:{position:"relative",width:"100%"},[`${Gn}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Gn}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Gn}-centered`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-nav-wrap`]:{[`&:not([class*='${Gn}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Di=(0,ti.Z)("Tabs",tn=>{const Gn=(0,di.TS)(tn,{tabsCardPadding:tn.cardPadding||`${(tn.cardHeight-Math.round(tn.fontSize*tn.lineHeight))/2-tn.lineWidth}px ${tn.padding}px`,dropdownEdgeChildVerticalPadding:tn.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${tn.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${tn.horizontalItemGutter}px`});return[pn(Gn),Jr(Gn),Bt(Gn),as(Gn),ao(Gn),vi(Gn),Xr(Gn)]},tn=>{const Gn=tn.controlHeightLG;return{zIndexPopup:tn.zIndexPopupBase+50,cardBg:tn.colorFillAlter,cardHeight:Gn,cardPadding:"",cardPaddingSM:`${tn.paddingXXS*1.5}px ${tn.padding}px`,cardPaddingLG:`${tn.paddingXS}px ${tn.padding}px ${tn.paddingXXS*1.5}px`,titleFontSize:tn.fontSize,titleFontSizeLG:tn.fontSizeLG,titleFontSizeSM:tn.fontSize,inkBarColor:tn.colorPrimary,horizontalMargin:`0 0 ${tn.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${tn.paddingSM}px 0`,horizontalItemPaddingSM:`${tn.paddingXS}px 0`,horizontalItemPaddingLG:`${tn.padding}px 0`,verticalItemPadding:`${tn.paddingXS}px ${tn.paddingLG}px`,verticalItemMargin:`${tn.margin}px 0 0 0`,itemColor:tn.colorText,itemSelectedColor:tn.colorPrimary,itemHoverColor:tn.colorPrimaryHover,itemActiveColor:tn.colorPrimaryActive,cardGutter:tn.marginXXS/2}}),Qr=()=>null,oi=function(tn,Gn){var Ei={};for(var In in tn)Object.prototype.hasOwnProperty.call(tn,In)&&Gn.indexOf(In)<0&&(Ei[In]=tn[In]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Li=0,In=Object.getOwnPropertySymbols(tn);Li{const{type:Gn,className:Ei,rootClassName:In,size:Li,onEdit:nr,hideAdd:wi,centered:Mi,addIcon:Fr,popupClassName:qn,children:ms,items:ya,animated:ha,style:Ws,indicatorSize:Ua}=tn,Ao=oi(tn,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:dl,moreIcon:$r=y.createElement(b.Z,null)}=Ao,{direction:er,tabs:Tr,getPrefixCls:pr,getPopupContainer:ci}=y.useContext(Vr.E_),Eo=pr("tabs",dl),[mo,Ts]=Di(Eo);let xs;Gn==="editable-card"&&(xs={onEdit:(tt,at)=>{let{key:gt,event:Ne}=at;nr==null||nr(tt==="add"?Ne:gt,tt)},removeIcon:y.createElement(A.Z,null),addIcon:Fr||y.createElement(I,null),showAdd:wi!==!0});const Sr=pr(),ui=mi(ya,ms),Xt=Us(Eo,ha),gn=(0,qr.Z)(Li),En=Object.assign(Object.assign({},Tr==null?void 0:Tr.style),Ws);return mo(y.createElement(_n,Object.assign({direction:er,getPopupContainer:ci,moreTransitionName:`${Sr}-slide-up`},Ao,{items:ui,className:f()({[`${Eo}-${gn}`]:gn,[`${Eo}-card`]:["card","editable-card"].includes(Gn),[`${Eo}-editable-card`]:Gn==="editable-card",[`${Eo}-centered`]:Mi},Tr==null?void 0:Tr.className,Ei,In,Ts),popupClassName:f()(qn,Ts),style:En,editable:xs,moreIcon:$r,prefixCls:Eo,animated:Xt,indicatorSize:Ua!=null?Ua:Tr==null?void 0:Tr.indicatorSize})))};Zi.TabPane=Qr;var Ar=Zi},33083:function(nt,V,m){"use strict";m.d(V,{Mj:function(){return w},uH:function(){return k},u_:function(){return N}});var y=m(67294),A=m(85731),b=m(67164),z=m(2790);const k=(0,A.jG)(b.Z),N={token:z.Z,override:{override:z.Z},hashed:!0},w=y.createContext(N)},9361:function(nt,V,m){"use strict";m.d(V,{Z:function(){return me}});var y=m(85731),A=m(67164),b=m(2790),z=m(1393),N=ye=>{const _e=ye!=null&&ye.algorithm?(0,y.jG)(ye.algorithm):(0,y.jG)(A.Z),Ce=Object.assign(Object.assign({},b.Z),ye==null?void 0:ye.token);return(0,y.t2)(Ce,{override:ye==null?void 0:ye.token},_e,z.Z)},w=m(25976),I=m(33083),C=m(372);function f(ye){const{sizeUnit:_e,sizeStep:Ce}=ye,De=Ce-2;return{sizeXXL:_e*(De+10),sizeXL:_e*(De+6),sizeLG:_e*(De+2),sizeMD:_e*(De+2),sizeMS:_e*(De+1),size:_e*De,sizeSM:_e*De,sizeXS:_e*(De-1),sizeXXS:_e*(De-1)}}var S=m(98378),W=(ye,_e)=>{const Ce=_e!=null?_e:(0,A.Z)(ye),De=Ce.fontSizeSM,ge=Ce.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),f(_e!=null?_e:ye)),(0,S.Z)(De)),{controlHeight:ge}),(0,C.Z)(Object.assign(Object.assign({},Ce),{controlHeight:ge})))},te=m(16397),q=m(57),ie=m(10274);const he=(ye,_e)=>new ie.C(ye).setAlpha(_e).toRgbString(),de=(ye,_e)=>new ie.C(ye).lighten(_e).toHexString(),fe=ye=>{const _e=(0,te.R_)(ye,{theme:"dark"});return{1:_e[0],2:_e[1],3:_e[2],4:_e[3],5:_e[6],6:_e[5],7:_e[4],8:_e[6],9:_e[5],10:_e[4]}},ke=(ye,_e)=>{const Ce=ye||"#000",De=_e||"#fff";return{colorBgBase:Ce,colorTextBase:De,colorText:he(De,.85),colorTextSecondary:he(De,.65),colorTextTertiary:he(De,.45),colorTextQuaternary:he(De,.25),colorFill:he(De,.18),colorFillSecondary:he(De,.12),colorFillTertiary:he(De,.08),colorFillQuaternary:he(De,.04),colorBgElevated:de(Ce,12),colorBgContainer:de(Ce,8),colorBgLayout:de(Ce,0),colorBgSpotlight:de(Ce,26),colorBgBlur:he(De,.04),colorBorder:de(Ce,26),colorBorderSecondary:de(Ce,19)}};var Be=(ye,_e)=>{const Ce=Object.keys(b.M).map(ge=>{const je=(0,te.R_)(ye[ge],{theme:"dark"});return new Array(10).fill(1).reduce((we,Pt,dt)=>(we[`${ge}-${dt+1}`]=je[dt],we[`${ge}${dt+1}`]=je[dt],we),{})}).reduce((ge,je)=>(ge=Object.assign(Object.assign({},ge),je),ge),{}),De=_e!=null?_e:(0,A.Z)(ye);return Object.assign(Object.assign(Object.assign({},De),Ce),(0,q.Z)(ye,{generateColorPalettes:fe,generateNeutralColorPalettes:ke}))};function be(){const[ye,_e,Ce]=(0,w.Z)();return{theme:ye,token:_e,hashId:Ce}}var me={defaultConfig:I.u_,defaultSeed:I.u_.token,useToken:be,defaultAlgorithm:A.Z,darkAlgorithm:Be,compactAlgorithm:W,getDesignToken:N}},8796:function(nt,V,m){"use strict";m.d(V,{i:function(){return y}});const y=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},67164:function(nt,V,m){"use strict";m.d(V,{Z:function(){return q}});var y=m(16397),A=m(372);function b(ie){const{sizeUnit:he,sizeStep:de}=ie;return{sizeXXL:he*(de+8),sizeXL:he*(de+4),sizeLG:he*(de+2),sizeMD:he*(de+1),sizeMS:he*de,size:he*de,sizeSM:he*(de-1),sizeXS:he*(de-2),sizeXXS:he*(de-3)}}var z=m(2790),k=m(57),w=ie=>{let he=ie,de=ie,fe=ie,ke=ie;return ie<6&&ie>=5?he=ie+1:ie<16&&ie>=6?he=ie+2:ie>=16&&(he=16),ie<7&&ie>=5?de=4:ie<8&&ie>=7?de=5:ie<14&&ie>=8?de=6:ie<16&&ie>=14?de=7:ie>=16&&(de=8),ie<6&&ie>=2?fe=1:ie>=6&&(fe=2),ie>4&&ie<8?ke=4:ie>=8&&(ke=6),{borderRadius:ie,borderRadiusXS:fe,borderRadiusSM:de,borderRadiusLG:he,borderRadiusOuter:ke}};function I(ie){const{motionUnit:he,motionBase:de,borderRadius:fe,lineWidth:ke}=ie;return Object.assign({motionDurationFast:`${(de+he).toFixed(1)}s`,motionDurationMid:`${(de+he*2).toFixed(1)}s`,motionDurationSlow:`${(de+he*3).toFixed(1)}s`,lineWidthBold:ke+1},w(fe))}var C=m(10274);const f=(ie,he)=>new C.C(ie).setAlpha(he).toRgbString(),S=(ie,he)=>new C.C(ie).darken(he).toHexString(),P=ie=>{const he=(0,y.R_)(ie);return{1:he[0],2:he[1],3:he[2],4:he[3],5:he[4],6:he[5],7:he[6],8:he[4],9:he[5],10:he[6]}},W=(ie,he)=>{const de=ie||"#fff",fe=he||"#000";return{colorBgBase:de,colorTextBase:fe,colorText:f(fe,.88),colorTextSecondary:f(fe,.65),colorTextTertiary:f(fe,.45),colorTextQuaternary:f(fe,.25),colorFill:f(fe,.15),colorFillSecondary:f(fe,.06),colorFillTertiary:f(fe,.04),colorFillQuaternary:f(fe,.02),colorBgLayout:S(de,4),colorBgContainer:S(de,0),colorBgElevated:S(de,0),colorBgSpotlight:f(fe,.85),colorBgBlur:"transparent",colorBorder:S(de,15),colorBorderSecondary:S(de,6)}};var te=m(98378);function q(ie){const he=Object.keys(z.M).map(de=>{const fe=(0,y.R_)(ie[de]);return new Array(10).fill(1).reduce((ke,Ie,Be)=>(ke[`${de}-${Be+1}`]=fe[Be],ke[`${de}${Be+1}`]=fe[Be],ke),{})}).reduce((de,fe)=>(de=Object.assign(Object.assign({},de),fe),de),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),he),(0,k.Z)(ie,{generateColorPalettes:P,generateNeutralColorPalettes:W})),(0,te.Z)(ie.fontSize)),b(ie)),(0,A.Z)(ie)),I(ie))}},2790:function(nt,V,m){"use strict";m.d(V,{M:function(){return y}});const y={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},A=Object.assign(Object.assign({},y),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + `]:{position:"relative",color:kr,fontWeight:jt,textAlign:"start",background:Ni,borderBottom:Or,transition:`background ${Yr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${lt}-selection-column):not(${lt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Jn,transform:"translateY(-50%)",transition:`background-color ${Yr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${lt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${Yr}, border-color ${Yr}`,borderBottom:Or,[` + > ${lt}-wrapper:only-child, + > ${lt}-expanded-row-fixed > ${lt}-wrapper:only-child + `]:{[lt]:{marginBlock:`-${Nt}px`,marginInline:`${Ke.tableExpandColumnWidth-Rt}px -${Rt}px`,[`${lt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:kr,fontWeight:jt,textAlign:"start",background:Ni,borderBottom:Or,transition:`background ${Yr} ease`}}},[`${lt}-footer`]:{padding:`${Nt}px ${Rt}px`,color:Kr,background:ir}})}};var Zt=(0,Wc.Z)("Table",Ke=>{const{colorTextHeading:lt,colorSplit:jt,colorIcon:Nt,colorIconHover:Rt,opacityLoading:Jt,colorBgContainer:dr,controlInteractiveSize:pr,headerBg:Hn,headerColor:wr,headerSortActiveBg:vr,headerSortHoverBg:kr,bodySortBg:Yr,rowHoverBg:Ni,rowSelectedBg:Jn,rowSelectedHoverBg:Kr,rowExpandedBg:ir,cellPaddingBlock:Or,cellPaddingInline:Nn,cellPaddingBlockMD:Rr,cellPaddingInlineMD:Xr,cellPaddingBlockSM:fi,cellPaddingInlineSM:ri,borderColor:Ri,footerBg:ro,footerColor:fo,headerBorderRadius:zo,cellFontSize:Oo,cellFontSizeMD:cs,cellFontSizeSM:Pi,headerSplitColor:Us,fixedHeaderSortActiveBg:rs,headerFilterHoverBg:ao,filterDropdownBg:ca,expandIconBg:Ea,selectionColumnWidth:ia,stickyScrollBarBg:qt}=Ke,gr=new Fg.C(Nt),hi=new Fg.C(Rt),fs=2,vs=(0,Gc.TS)(Ke,{tableFontSize:Oo,tableBg:dr,tableRadius:zo,tablePaddingVertical:Or,tablePaddingHorizontal:Nn,tablePaddingVerticalMiddle:Rr,tablePaddingHorizontalMiddle:Xr,tablePaddingVerticalSmall:fi,tablePaddingHorizontalSmall:ri,tableBorderColor:Ri,tableHeaderTextColor:wr,tableHeaderBg:Hn,tableFooterTextColor:fo,tableFooterBg:ro,tableHeaderCellSplitColor:Us,tableHeaderSortBg:vr,tableHeaderSortHoverBg:kr,tableHeaderIconColor:gr.clone().setAlpha(gr.getAlpha()*Jt).toRgbString(),tableHeaderIconColorHover:hi.clone().setAlpha(hi.getAlpha()*Jt).toRgbString(),tableBodySortBg:Yr,tableFixedHeaderSortActiveBg:rs,tableHeaderFilterActiveBg:ao,tableFilterDropdownBg:ca,tableRowHoverBg:Ni,tableSelectedRowBg:Jn,tableSelectedRowHoverBg:Kr,zIndexTableFixed:fs,zIndexTableSticky:fs+1,tableFontSizeMiddle:cs,tableFontSizeSmall:Pi,tableSelectionColumnWidth:ia,tableExpandIconBg:Ea,tableExpandColumnWidth:pr+2*Ke.padding,tableExpandedRowBg:ir,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qt,tableScrollThumbBgHover:lt,tableScrollBg:jt});return[ct(vs),Md(vs),Tt(vs),hg(vs),hm(vs),zg(vs),gm(vs),O0(vs),Tt(vs),Zf(vs),Gp(vs),Y0(vs),ee(vs),Lg(vs),Fm(vs),Mm(vs),yt(vs)]},Ke=>{const{colorFillAlter:lt,colorBgContainer:jt,colorTextHeading:Nt,colorFillSecondary:Rt,colorFillContent:Jt,controlItemBgActive:dr,controlItemBgActiveHover:pr,padding:Hn,paddingSM:wr,paddingXS:vr,colorBorderSecondary:kr,borderRadiusLG:Yr,fontSize:Ni,controlHeight:Jn,colorTextPlaceholder:Kr}=Ke,ir=new Fg.C(Rt).onBackground(jt).toHexShortString(),Or=new Fg.C(Jt).onBackground(jt).toHexShortString(),Nn=new Fg.C(lt).onBackground(jt).toHexShortString();return{headerBg:Nn,headerColor:Nt,headerSortActiveBg:ir,headerSortHoverBg:Or,bodySortBg:Nn,rowHoverBg:Nn,rowSelectedBg:dr,rowSelectedHoverBg:pr,rowExpandedBg:lt,cellPaddingBlock:Hn,cellPaddingInline:Hn,cellPaddingBlockMD:wr,cellPaddingInlineMD:vr,cellPaddingBlockSM:vr,cellPaddingInlineSM:vr,borderColor:kr,headerBorderRadius:Yr,footerBg:Nn,footerColor:Nt,cellFontSize:Ni,cellFontSizeMD:Ni,cellFontSizeSM:Ni,headerSplitColor:kr,fixedHeaderSortActiveBg:ir,headerFilterHoverBg:Jt,filterDropdownMenuBg:jt,filterDropdownBg:jt,expandIconBg:jt,selectionColumnWidth:Jn,stickyScrollBarBg:Kr,stickyScrollBarBorderRadius:100}});const cn=[],ln=(Ke,lt)=>{const{prefixCls:jt,className:Nt,rootClassName:Rt,style:Jt,size:dr,bordered:pr,dropdownPrefixCls:Hn,dataSource:wr,pagination:vr,rowSelection:kr,rowKey:Yr="key",rowClassName:Ni,columns:Jn,children:Kr,childrenColumnName:ir,onChange:Or,getPopupContainer:Nn,loading:Rr,expandIcon:Xr,expandable:fi,expandedRowRender:ri,expandIconColumnIndex:Ri,indentSize:ro,scroll:fo,sortDirections:zo,locale:Oo,showSorterTooltip:cs=!0,virtual:Pi}=Ke,Us=(0,hs.ln)("Table"),rs=v.useMemo(()=>Jn||ni(Kr),[Jn,Kr]),ao=v.useMemo(()=>rs.some(Hl=>Hl.responsive),[rs]),ca=(0,Dh.Z)(ao),Ea=v.useMemo(()=>{const Hl=new Set(Object.keys(ca).filter(Eo=>ca[Eo]));return rs.filter(Eo=>!Eo.responsive||Eo.responsive.some(Fa=>Hl.has(Fa)))},[rs,ca]),ia=(0,Bl.Z)(Ke,["className","style","columns"]),{locale:qt=gh.Z,direction:gr,table:hi,renderEmpty:fs,getPrefixCls:vs,getPopupContainer:ga}=v.useContext(hl.E_),Qi=(0,zd.Z)(dr),vo=Object.assign(Object.assign({},qt.Table),Oo),Bo=wr||cn,Os=vs("table",jt),_a=vs("dropdown",Hn),Ve=Object.assign({childrenColumnName:ir,expandIconColumnIndex:Ri},fi),{childrenColumnName:Da="children"}=Ve,sl=v.useMemo(()=>Bo.some(Hl=>Hl==null?void 0:Hl[Da])?"nest":ri||fi&&fi.expandedRowRender?"row":null,[Bo]),Ol={body:v.useRef()},Ps=lp(Os),La=v.useRef(null),zl=v.useRef(null);lc(lt,()=>Object.assign(Object.assign({},zl.current),{nativeElement:La.current}));const la=v.useMemo(()=>typeof Yr=="function"?Yr:Hl=>Hl==null?void 0:Hl[Yr],[Yr]),[yo]=wc(Bo,Da,la),Ws={},_s=function(Hl,Eo){let Fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ia,os,ka;const Ms=Object.assign(Object.assign({},Ws),Hl);Fa&&((Ia=Ws.resetPagination)===null||Ia===void 0||Ia.call(Ws),!((os=Ms.pagination)===null||os===void 0)&&os.current&&(Ms.pagination.current=1),vr&&vr.onChange&&vr.onChange(1,(ka=Ms.pagination)===null||ka===void 0?void 0:ka.pageSize)),fo&&fo.scrollToFirstRowOnChange!==!1&&Ol.body.current&&md(0,{getContainer:()=>Ol.body.current}),Or==null||Or(Ms.pagination,Ms.filters,Ms.sorter,{currentDataSource:yc(Qm(Bo,Ms.sorterStates,Da),Ms.filterStates),action:Eo})},ba=(Hl,Eo)=>{_s({sorter:Hl,sorterStates:Eo},"sort",!1)},[Xa,xl,Qa,gi]=x0({prefixCls:Os,mergedColumns:Ea,onSorterChange:ba,sortDirections:zo||["ascend","descend"],tableLocale:vo,showSorterTooltip:cs}),ws=v.useMemo(()=>Qm(Bo,xl,Da),[Bo,xl]);Ws.sorter=gi(),Ws.sorterStates=xl;const ha=(Hl,Eo)=>{_s({filters:Hl,filterStates:Eo},"filter",!0)},[nl,Ql,wu]=Gh({prefixCls:Os,locale:vo,dropdownPrefixCls:_a,mergedColumns:Ea,onFilterChange:ha,getPopupContainer:Nn||ga}),wa=yc(ws,Ql);Ws.filters=wu,Ws.filterStates=Ql;const eh=v.useMemo(()=>{const Hl={};return Object.keys(wu).forEach(Eo=>{wu[Eo]!==null&&(Hl[Eo]=wu[Eo])}),Object.assign(Object.assign({},Qa),{filters:Hl})},[Qa,wu]),[Kl]=Jg(eh),$c=(Hl,Eo)=>{_s({pagination:Object.assign(Object.assign({},Ws.pagination),{current:Hl,pageSize:Eo})},"paginate")},[bu,hh]=Hg(wa.length,$c,vr);Ws.pagination=vr===!1?{}:Pg(bu,vr),Ws.resetPagination=hh;const hu=v.useMemo(()=>{if(vr===!1||!bu.pageSize)return wa;const{current:Hl=1,total:Eo,pageSize:Fa=Fo}=bu;return wa.lengthFa?wa.slice((Hl-1)*Fa,Hl*Fa):wa:wa.slice((Hl-1)*Fa,Hl*Fa)},[!!vr,wa,bu&&bu.current,bu&&bu.pageSize,bu&&bu.total]),[nd,Pc]=ld({prefixCls:Os,data:wa,pageData:hu,getRowKey:la,getRecordByKey:yo,expandType:sl,childrenColumnName:Da,locale:vo,getPopupContainer:Nn||ga},kr),dh=(Hl,Eo,Fa)=>{let Ia;return typeof Ni=="function"?Ia=Oe()(Ni(Hl,Eo,Fa)):Ia=Oe()(Ni),Oe()({[`${Os}-row-selected`]:Pc.has(la(Hl,Eo))},Ia)};Ve.__PARENT_RENDER_ICON__=Ve.expandIcon,Ve.expandIcon=Ve.expandIcon||Xr||np(vo),sl==="nest"&&Ve.expandIconColumnIndex===void 0?Ve.expandIconColumnIndex=kr?1:0:Ve.expandIconColumnIndex>0&&kr&&(Ve.expandIconColumnIndex-=1),typeof Ve.indentSize!="number"&&(Ve.indentSize=typeof ro=="number"?ro:15);const Lc=v.useCallback(Hl=>Kl(nd(nl(Xa(Hl)))),[Xa,nl,nd]);let $l,ed;if(vr!==!1&&(bu!=null&&bu.total)){let Hl;bu.size?Hl=bu.size:Hl=Qi==="small"||Qi==="middle"?"small":void 0;const Eo=os=>v.createElement(mp,Object.assign({},bu,{className:Oe()(`${Os}-pagination ${Os}-pagination-${os}`,bu.className),size:Hl})),Fa=gr==="rtl"?"left":"right",{position:Ia}=bu;if(Ia!==null&&Array.isArray(Ia)){const os=Ia.find(wo=>wo.includes("top")),ka=Ia.find(wo=>wo.includes("bottom")),Ms=Ia.every(wo=>`${wo}`=="none");!os&&!ka&&!Ms&&(ed=Eo(Fa)),os&&($l=Eo(os.toLowerCase().replace("top",""))),ka&&(ed=Eo(ka.toLowerCase().replace("bottom","")))}else ed=Eo(Fa)}let Ge;typeof Rr=="boolean"?Ge={spinning:Rr}:typeof Rr=="object"&&(Ge=Object.assign({spinning:!0},Rr));const[He,mt]=Zt(Os),[,In]=(0,dp.Z)(),bi=Oe()(`${Os}-wrapper`,hi==null?void 0:hi.className,{[`${Os}-wrapper-rtl`]:gr==="rtl"},Nt,Rt,mt),Kn=Object.assign(Object.assign({},hi==null?void 0:hi.style),Jt),vi=Oo&&Oo.emptyText||(fs==null?void 0:fs("Table"))||v.createElement(Bd.Z,{componentName:"Table"}),Co=Pi?k0:Qg,$s={},za=v.useMemo(()=>{const{fontSize:Hl,lineHeight:Eo,padding:Fa,paddingXS:Ia,paddingSM:os}=In,ka=Math.floor(Hl*Eo);switch(Qi){case"large":return Fa*2+ka;case"small":return Ia*2+ka;default:return os*2+ka}},[In,Qi]);return Pi&&($s.listItemHeight=za),He(v.createElement("div",{ref:La,className:bi,style:Kn},v.createElement(Jp.Z,Object.assign({spinning:!1},Ge),$l,v.createElement(Co,Object.assign({},$s,ia,{ref:zl,columns:Ea,direction:gr,expandable:Ve,prefixCls:Os,className:Oe()({[`${Os}-middle`]:Qi==="middle",[`${Os}-small`]:Qi==="small",[`${Os}-bordered`]:pr,[`${Os}-empty`]:Bo.length===0}),data:hu,rowKey:la,rowClassName:dh,emptyText:vi,internalHooks:w,internalRefs:Ol,transformColumns:Lc,getContainerWidth:Ps})),ed)))};var gn=v.forwardRef(ln);const Dn=(Ke,lt)=>{const jt=v.useRef(0);return jt.current+=1,v.createElement(gn,Object.assign({},Ke,{ref:lt,_renderTimes:jt.current}))},Gn=v.forwardRef(Dn);Gn.SELECTION_COLUMN=xu,Gn.EXPAND_COLUMN=R,Gn.SELECTION_ALL=Tu,Gn.SELECTION_INVERT=tc,Gn.SELECTION_NONE=zc,Gn.Column=qu,Gn.ColumnGroup=zn,Gn.Summary=mn;var fr=Gn,Fr=fr},11568:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ii}});var v=_(67294),R=_(62208),w=_(35872),b=_(87462),B=_(42110),V=_(93771),O=function(Mr,rr){return v.createElement(V.Z,(0,b.Z)({},Mr,{ref:rr,icon:B.Z}))},L=v.forwardRef(O),S=_(94184),g=_.n(S),T=_(4942),k=_(1413),K=_(97685),he=_(71002),ae=_(91),fe=_(31131),_e=_(21770),be=_(82225),xe=(0,v.createContext)(null),Xe=v.forwardRef(function(nr,Mr){var rr=nr.prefixCls,to=nr.className,ts=nr.style,Wr=nr.id,no=nr.active,Vi=nr.tabKey,Pn=nr.children;return v.createElement("div",{id:Wr&&"".concat(Wr,"-panel-").concat(Vi),role:"tabpanel",tabIndex:no?0:-1,"aria-labelledby":Wr&&"".concat(Wr,"-tab-").concat(Vi),"aria-hidden":!no,style:ts,className:g()(rr,no&&"".concat(rr,"-active"),to),ref:Mr},Pn)}),We=Xe,dt=["key","forceRender","style","className","destroyInactiveTabPane"];function Me(nr){var Mr=nr.id,rr=nr.activeKey,to=nr.animated,ts=nr.tabPosition,Wr=nr.destroyInactiveTabPane,no=v.useContext(xe),Vi=no.prefixCls,Pn=no.tabs,mi=to.tabPane,ya="".concat(Vi,"-tabpane");return v.createElement("div",{className:g()("".concat(Vi,"-content-holder"))},v.createElement("div",{className:g()("".concat(Vi,"-content"),"".concat(Vi,"-content-").concat(ts),(0,T.Z)({},"".concat(Vi,"-content-animated"),mi))},Pn.map(function(Zs){var qs=Zs.key,al=Zs.forceRender,co=Zs.style,tl=Zs.className,fl=Zs.destroyInactiveTabPane,Ai=(0,ae.Z)(Zs,dt),Xi=qs===rr;return v.createElement(be.ZP,(0,b.Z)({key:qs,visible:Xi,forceRender:al,removeOnLeave:!!(Wr||fl),leavedClassName:"".concat(ya,"-hidden")},to.tabPaneMotion),function(Fi,No){var yr=Fi.style,ui=Fi.className;return v.createElement(We,(0,b.Z)({},Ai,{prefixCls:ya,id:Mr,tabKey:qs,animated:mi,active:Xi,style:(0,k.Z)((0,k.Z)({},co),yr),className:g()(tl,ui),ref:No}))})})))}var Se=_(74902),ze=_(48555),De=_(66680),ke=_(42550),$e=_(75164),Te=function(Mr){var rr=Mr.activeTabOffset,to=Mr.horizontal,ts=Mr.rtl,Wr=Mr.indicatorSize,no=(0,v.useState)(),Vi=(0,K.Z)(no,2),Pn=Vi[0],mi=Vi[1],ya=(0,v.useRef)(),Zs=function(co){return typeof Wr=="function"?Wr(co):typeof Wr=="number"?Wr:co};function qs(){$e.Z.cancel(ya.current)}return(0,v.useEffect)(function(){var al={};return rr&&(to?(ts?(al.right=rr.right+rr.width/2,al.transform="translateX(50%)"):(al.left=rr.left+rr.width/2,al.transform="translateX(-50%)"),al.width=Zs(rr.width)):(al.top=rr.top+rr.height/2,al.transform="translateY(-50%)",al.height=Zs(rr.height))),qs(),ya.current=(0,$e.Z)(function(){mi(al)}),qs},[rr,to,ts,Wr]),{style:Pn}},tt=Te,Oe={width:0,height:0,left:0,top:0};function Xt(nr,Mr,rr){return(0,v.useMemo)(function(){for(var to,ts=new Map,Wr=Mr.get((to=nr[0])===null||to===void 0?void 0:to.key)||Oe,no=Wr.left+Wr.width,Vi=0;Vift?(Tn=Ei,ui.current="x"):(Tn=hn,ui.current="y"),Mr(-Tn,-Tn)&&Lr.preventDefault()}var ns=(0,v.useRef)(null);ns.current={onTouchStart:Fi,onTouchMove:No,onTouchEnd:yr,onWheel:Zo},v.useEffect(function(){function Lr(ar){ns.current.onTouchStart(ar)}function Ei(ar){ns.current.onTouchMove(ar)}function hn(ar){ns.current.onTouchEnd(ar)}function Tn(ar){ns.current.onWheel(ar)}return document.addEventListener("touchmove",Ei,{passive:!1}),document.addEventListener("touchend",hn,{passive:!1}),nr.current.addEventListener("touchstart",Lr,{passive:!1}),nr.current.addEventListener("wheel",Tn),function(){document.removeEventListener("touchmove",Ei),document.removeEventListener("touchend",hn)}},[])}var bn=_(8410);function Wn(nr){var Mr=(0,v.useState)(0),rr=(0,K.Z)(Mr,2),to=rr[0],ts=rr[1],Wr=(0,v.useRef)(0),no=(0,v.useRef)();return no.current=nr,(0,bn.o)(function(){var Vi;(Vi=no.current)===null||Vi===void 0||Vi.call(no)},[to]),function(){Wr.current===to&&(Wr.current+=1,ts(Wr.current))}}function $r(nr){var Mr=(0,v.useRef)([]),rr=(0,v.useState)({}),to=(0,K.Z)(rr,2),ts=to[1],Wr=(0,v.useRef)(typeof nr=="function"?nr():nr),no=Wn(function(){var Pn=Wr.current;Mr.current.forEach(function(mi){Pn=mi(Pn)}),Mr.current=[],Wr.current=Pn,ts({})});function Vi(Pn){Mr.current.push(Pn),no()}return[Wr.current,Vi]}var wi={width:0,height:0,left:0,top:0,right:0};function oo(nr,Mr,rr,to,ts,Wr,no){var Vi=no.tabs,Pn=no.tabPosition,mi=no.rtl,ya,Zs,qs;return["top","bottom"].includes(Pn)?(ya="width",Zs=mi?"right":"left",qs=Math.abs(rr)):(ya="height",Zs="top",qs=-rr),(0,v.useMemo)(function(){if(!Vi.length)return[0,0];for(var al=Vi.length,co=al,tl=0;tlqs+Mr){co=tl-1;break}}for(var Ai=0,Xi=al-1;Xi>=0;Xi-=1){var Fi=nr.get(Vi[Xi].key)||wi;if(Fi[Zs]=co?[0,0]:[Ai,co]},[nr,Mr,to,ts,Wr,qs,Pn,Vi.map(function(al){return al.key}).join("_"),mi])}function Mo(nr){var Mr;return nr instanceof Map?(Mr={},nr.forEach(function(rr,to){Mr[to]=rr})):Mr=nr,JSON.stringify(Mr)}var Ti="TABS_DQ";function Hr(nr){return String(nr).replace(/"/g,Ti)}function Ho(nr,Mr,rr,to){return!(!rr||to||nr===!1||nr===void 0&&(Mr===!1||Mr===null))}function Ss(nr,Mr){var rr=nr.prefixCls,to=nr.editable,ts=nr.locale,Wr=nr.style;return!to||to.showAdd===!1?null:v.createElement("button",{ref:Mr,type:"button",className:"".concat(rr,"-nav-add"),style:Wr,"aria-label":(ts==null?void 0:ts.addAriaLabel)||"Add tab",onClick:function(Vi){to.onEdit("add",{event:Vi})}},to.addIcon||"+")}var Pe=v.forwardRef(Ss),qo=v.forwardRef(function(nr,Mr){var rr=nr.position,to=nr.prefixCls,ts=nr.extra;if(!ts)return null;var Wr,no={};return(0,he.Z)(ts)==="object"&&!v.isValidElement(ts)?no=ts:no.right=ts,rr==="right"&&(Wr=no.right),rr==="left"&&(Wr=no.left),Wr?v.createElement("div",{className:"".concat(to,"-extra-content"),ref:Mr},Wr):null}),Ki=qo,Do=_(29171),ai=_(72512),$o=_(15105);function Mn(nr,Mr){var rr=nr.prefixCls,to=nr.id,ts=nr.tabs,Wr=nr.locale,no=nr.mobile,Vi=nr.moreIcon,Pn=Vi===void 0?"More":Vi,mi=nr.moreTransitionName,ya=nr.style,Zs=nr.className,qs=nr.editable,al=nr.tabBarGutter,co=nr.rtl,tl=nr.removeAriaLabel,fl=nr.onTabClick,Ai=nr.getPopupContainer,Xi=nr.popupClassName,Fi=(0,v.useState)(!1),No=(0,K.Z)(Fi,2),yr=No[0],ui=No[1],Zo=(0,v.useState)(null),ns=(0,K.Z)(Zo,2),Lr=ns[0],Ei=ns[1],hn="".concat(to,"-more-popup"),Tn="".concat(rr,"-dropdown"),ar=Lr!==null?"".concat(hn,"-").concat(Lr):null,ft=Wr==null?void 0:Wr.dropdownAriaLabel;function wt(Gr,Gi){Gr.preventDefault(),Gr.stopPropagation(),qs.onEdit("remove",{key:Gi,event:Gr})}var At=v.createElement(ai.ZP,{onClick:function(Gi){var ko=Gi.key,Bi=Gi.domEvent;fl(ko,Bi),ui(!1)},prefixCls:"".concat(Tn,"-menu"),id:hn,tabIndex:-1,role:"listbox","aria-activedescendant":ar,selectedKeys:[Lr],"aria-label":ft!==void 0?ft:"expanded dropdown"},ts.map(function(Gr){var Gi=Gr.closable,ko=Gr.disabled,Bi=Gr.closeIcon,ms=Gr.key,ps=Gr.label,Js=Ho(Gi,Bi,qs,ko);return v.createElement(ai.sN,{key:ms,id:"".concat(hn,"-").concat(ms),role:"option","aria-controls":to&&"".concat(to,"-panel-").concat(ms),disabled:ko},v.createElement("span",null,ps),Js&&v.createElement("button",{type:"button","aria-label":tl||"remove",tabIndex:0,className:"".concat(Tn,"-menu-item-remove"),onClick:function(Po){Po.stopPropagation(),wt(Po,ms)}},Bi||qs.removeIcon||"\xD7"))}));function Ye(Gr){for(var Gi=ts.filter(function(Js){return!Js.disabled}),ko=Gi.findIndex(function(Js){return Js.key===Lr})||0,Bi=Gi.length,ms=0;msxu?"left":"right"})}),ft=(0,K.Z)(ar,2),wt=ft[0],At=ft[1],Ye=Ft(0,function(Jl,xu){!Tn&&Fi&&Fi({direction:Jl>xu?"top":"bottom"})}),Et=(0,K.Z)(Ye,2),Wt=Et[0],vn=Et[1],Er=(0,v.useState)([0,0]),Gr=(0,K.Z)(Er,2),Gi=Gr[0],ko=Gr[1],Bi=(0,v.useState)([0,0]),ms=(0,K.Z)(Bi,2),ps=ms[0],Js=ms[1],Hs=(0,v.useState)([0,0]),Po=(0,K.Z)(Hs,2),zs=Po[0],ma=Po[1],va=(0,v.useState)([0,0]),El=(0,K.Z)(va,2),Dl=El[0],Ns=El[1],Ca=$r(new Map),vl=(0,K.Z)(Ca,2),ds=vl[0],io=vl[1],Ko=Xt(Wr,ds,ps[0]),As=an(Gi,Tn),ks=an(ps,Tn),Ga=an(zs,Tn),zu=an(Dl,Tn),Ac=AsUu?Uu:Jl}var ur=(0,v.useRef)(),Zr=(0,v.useState)(),Jr=(0,K.Z)(Zr,2),_i=Jr[0],so=Jr[1];function Ui(){so(Date.now())}function hs(){window.clearTimeout(ur.current)}_t(ns,function(Jl,xu){function Tu(tc,zc){tc(function(Rc){var Ah=zn(Rc+zc);return Ah})}return Ac?(Tn?Tu(At,Jl):Tu(vn,xu),hs(),Ui(),!0):!1}),(0,v.useEffect)(function(){return hs(),_i&&(ur.current=window.setTimeout(function(){so(0)},100)),hs},[_i]);var ra=oo(Ko,vc,Tn?wt:Wt,ks,Ga,zu,(0,k.Z)((0,k.Z)({},nr),{},{tabs:Wr})),Ka=(0,K.Z)(ra,2),ul=Ka[0],hl=Ka[1],kl=(0,De.Z)(function(){var Jl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ya,xu=Ko.get(Jl)||{width:0,height:0,left:0,right:0,top:0};if(Tn){var Tu=wt;Zs?xu.rightwt+vc&&(Tu=xu.right+xu.width-vc):xu.left<-wt?Tu=-xu.left:xu.left+xu.width>-wt+vc&&(Tu=-(xu.left+xu.width-vc)),vn(0),At(zn(Tu))}else{var tc=Wt;xu.top<-Wt?tc=-xu.top:xu.top+xu.height>-Wt+vc&&(tc=-(xu.top+xu.height-vc)),At(0),vn(zn(tc))}}),Va={};tl==="top"||tl==="bottom"?Va[Zs?"marginRight":"marginLeft"]=fl:Va.marginTop=fl;var Xu=Wr.map(function(Jl,xu){var Tu=Jl.key;return v.createElement(Kt,{id:Pn,prefixCls:ts,key:Tu,tab:Jl,style:xu===0?void 0:Va,closable:Jl.closable,editable:al,active:Tu===ya,renderWrapper:Ai,removeAriaLabel:co==null?void 0:co.removeAriaLabel,onClick:function(zc){Xi(Tu,zc)},onFocus:function(){kl(Tu),Ui(),ns.current&&(Zs||(ns.current.scrollLeft=0),ns.current.scrollTop=0)}})}),Na=function(){return io(function(){var xu,Tu=new Map,tc=(xu=Lr.current)===null||xu===void 0?void 0:xu.getBoundingClientRect();return Wr.forEach(function(zc){var Rc,Ah=zc.key,Td=(Rc=Lr.current)===null||Rc===void 0?void 0:Rc.querySelector('[data-node-key="'.concat(Hr(Ah),'"]'));if(Td){var ld=mn(Td,tc),ph=(0,K.Z)(ld,4),lc=ph[0],xc=ph[1],Hh=ph[2],xh=ph[3];Tu.set(Ah,{width:lc,height:xc,left:Hh,top:xh})}}),Tu})};(0,v.useEffect)(function(){Na()},[Wr.map(function(Jl){return Jl.key}).join("_")]);var Aa=Wn(function(){var Jl=kn(yr),xu=kn(ui),Tu=kn(Zo);ko([Jl[0]-xu[0]-Tu[0],Jl[1]-xu[1]-Tu[1]]);var tc=kn(hn);ma(tc);var zc=kn(Ei);Ns(zc);var Rc=kn(Lr);Js([Rc[0]-tc[0],Rc[1]-tc[1]]),Na()}),ll=Wr.slice(0,ul),Pu=Wr.slice(hl+1),Gl=[].concat((0,Se.Z)(ll),(0,Se.Z)(Pu)),fu=Ko.get(ya),Bl=tt({activeTabOffset:fu,horizontal:Tn,rtl:Zs,indicatorSize:No}),lu=Bl.style;(0,v.useEffect)(function(){kl()},[ya,qu,Uu,Mo(fu),Mo(Ko),Tn]),(0,v.useEffect)(function(){Aa()},[Zs]);var Ln=!!Gl.length,es="".concat(ts,"-nav-wrap"),Is,Qs,dl,uu;return Tn?Zs?(Qs=wt>0,Is=wt!==Uu):(Is=wt<0,Qs=wt!==qu):(dl=Wt<0,uu=Wt!==qu),v.createElement(ze.Z,{onResize:Aa},v.createElement("div",{ref:(0,ke.x1)(Mr,yr),role:"tablist",className:g()("".concat(ts,"-nav"),no),style:Vi,onKeyDown:function(){Ui()}},v.createElement(Ki,{ref:ui,position:"left",extra:qs,prefixCls:ts}),v.createElement(ze.Z,{onResize:Aa},v.createElement("div",{className:g()(es,(rr={},(0,T.Z)(rr,"".concat(es,"-ping-left"),Is),(0,T.Z)(rr,"".concat(es,"-ping-right"),Qs),(0,T.Z)(rr,"".concat(es,"-ping-top"),dl),(0,T.Z)(rr,"".concat(es,"-ping-bottom"),uu),rr)),ref:ns},v.createElement(ze.Z,{onResize:Aa},v.createElement("div",{ref:Lr,className:"".concat(ts,"-nav-list"),style:{transform:"translate(".concat(wt,"px, ").concat(Wt,"px)"),transition:_i?"none":void 0}},Xu,v.createElement(Pe,{ref:hn,prefixCls:ts,locale:co,editable:al,style:(0,k.Z)((0,k.Z)({},Xu.length===0?void 0:Va),{},{visibility:Ln?"hidden":null})}),v.createElement("div",{className:g()("".concat(ts,"-ink-bar"),(0,T.Z)({},"".concat(ts,"-ink-bar-animated"),mi.inkBar)),style:lu}))))),v.createElement(nt,(0,b.Z)({},nr,{removeAriaLabel:co==null?void 0:co.removeAriaLabel,ref:Ei,prefixCls:ts,tabs:Gl,className:!Ln&&ec,tabMoving:!!_i})),v.createElement(Ki,{ref:Zo,position:"right",extra:qs,prefixCls:ts})))}var kt=v.forwardRef(tn),en=["renderTabBar"],Vn=["label","key"];function on(nr){var Mr=nr.renderTabBar,rr=(0,ae.Z)(nr,en),to=v.useContext(xe),ts=to.tabs;if(Mr){var Wr=(0,k.Z)((0,k.Z)({},rr),{},{panes:ts.map(function(no){var Vi=no.label,Pn=no.key,mi=(0,ae.Z)(no,Vn);return v.createElement(We,(0,b.Z)({tab:Vi,key:Pn,tabKey:Pn},mi))})});return Mr(Wr,kt)}return v.createElement(kt,rr)}var Dr=_(80334);function oi(){var nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Mr;return nr===!1?Mr={inkBar:!1,tabPane:!1}:nr===!0?Mr={inkBar:!0,tabPane:!1}:Mr=(0,k.Z)({inkBar:!0},(0,he.Z)(nr)==="object"?nr:{}),Mr.tabPaneMotion&&Mr.tabPane===void 0&&(Mr.tabPane=!0),!Mr.tabPaneMotion&&Mr.tabPane&&(Mr.tabPane=!1),Mr}var Ii=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],jr=0;function eo(nr,Mr){var rr,to=nr.id,ts=nr.prefixCls,Wr=ts===void 0?"rc-tabs":ts,no=nr.className,Vi=nr.items,Pn=nr.direction,mi=nr.activeKey,ya=nr.defaultActiveKey,Zs=nr.editable,qs=nr.animated,al=nr.tabPosition,co=al===void 0?"top":al,tl=nr.tabBarGutter,fl=nr.tabBarStyle,Ai=nr.tabBarExtraContent,Xi=nr.locale,Fi=nr.moreIcon,No=nr.moreTransitionName,yr=nr.destroyInactiveTabPane,ui=nr.renderTabBar,Zo=nr.onChange,ns=nr.onTabClick,Lr=nr.onTabScroll,Ei=nr.getPopupContainer,hn=nr.popupClassName,Tn=nr.indicatorSize,ar=(0,ae.Z)(nr,Ii),ft=v.useMemo(function(){return(Vi||[]).filter(function(Ns){return Ns&&(0,he.Z)(Ns)==="object"&&"key"in Ns})},[Vi]),wt=Pn==="rtl",At=oi(qs),Ye=(0,v.useState)(!1),Et=(0,K.Z)(Ye,2),Wt=Et[0],vn=Et[1];(0,v.useEffect)(function(){vn((0,fe.Z)())},[]);var Er=(0,_e.Z)(function(){var Ns;return(Ns=ft[0])===null||Ns===void 0?void 0:Ns.key},{value:mi,defaultValue:ya}),Gr=(0,K.Z)(Er,2),Gi=Gr[0],ko=Gr[1],Bi=(0,v.useState)(function(){return ft.findIndex(function(Ns){return Ns.key===Gi})}),ms=(0,K.Z)(Bi,2),ps=ms[0],Js=ms[1];(0,v.useEffect)(function(){var Ns=ft.findIndex(function(vl){return vl.key===Gi});if(Ns===-1){var Ca;Ns=Math.max(0,Math.min(ps,ft.length-1)),ko((Ca=ft[Ns])===null||Ca===void 0?void 0:Ca.key)}Js(Ns)},[ft.map(function(Ns){return Ns.key}).join("_"),Gi,ps]);var Hs=(0,_e.Z)(null,{value:to}),Po=(0,K.Z)(Hs,2),zs=Po[0],ma=Po[1];(0,v.useEffect)(function(){to||(ma("rc-tabs-".concat(jr)),jr+=1)},[]);function va(Ns,Ca){ns==null||ns(Ns,Ca);var vl=Ns!==Gi;ko(Ns),vl&&(Zo==null||Zo(Ns))}var El={id:zs,activeKey:Gi,animated:At,tabPosition:co,rtl:wt,mobile:Wt},Dl=(0,k.Z)((0,k.Z)({},El),{},{editable:Zs,locale:Xi,moreIcon:Fi,moreTransitionName:No,tabBarGutter:tl,onTabClick:va,onTabScroll:Lr,extra:Ai,style:fl,panes:null,getPopupContainer:Ei,popupClassName:hn,indicatorSize:Tn});return v.createElement(xe.Provider,{value:{tabs:ft,prefixCls:Wr}},v.createElement("div",(0,b.Z)({ref:Mr,id:to,className:g()(Wr,"".concat(Wr,"-").concat(co),(rr={},(0,T.Z)(rr,"".concat(Wr,"-mobile"),Wt),(0,T.Z)(rr,"".concat(Wr,"-editable"),Zs),(0,T.Z)(rr,"".concat(Wr,"-rtl"),wt),rr),no)},ar),v.createElement(on,(0,b.Z)({},Dl,{renderTabBar:ui})),v.createElement(Me,(0,b.Z)({destroyInactiveTabPane:yr},El,{animated:At}))))}var Uo=v.forwardRef(eo),Fn=Uo,Qr=Fn,ci=_(53124),ji=_(98675),cr=_(33603);const Qn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Vt(nr){let Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},rr;return Mr===!1?rr={inkBar:!1,tabPane:!1}:Mr===!0?rr={inkBar:!0,tabPane:!0}:rr=Object.assign({inkBar:!0},typeof Mr=="object"?Mr:{}),rr.tabPane&&(rr.tabPaneMotion=Object.assign(Object.assign({},Qn),{motionName:(0,cr.m)(nr,"switch")})),rr}var Yt=_(50344),En=function(nr,Mr){var rr={};for(var to in nr)Object.prototype.hasOwnProperty.call(nr,to)&&Mr.indexOf(to)<0&&(rr[to]=nr[to]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ts=0,to=Object.getOwnPropertySymbols(nr);tsMr)}function Tr(nr,Mr){if(nr)return nr;const rr=(0,Yt.Z)(Mr).map(to=>{if(v.isValidElement(to)){const{key:ts,props:Wr}=to,no=Wr||{},{tab:Vi}=no,Pn=En(no,["tab"]);return Object.assign(Object.assign({key:String(ts)},Pn),{label:Vi})}return null});return er(rr)}var Nr=_(14747),Zn=_(67968),Ut=_(45503),$n=_(48611),Br=nr=>{const{componentCls:Mr,motionDurationSlow:rr}=nr;return[{[Mr]:{[`${Mr}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${rr}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${rr}`}}}}},[(0,$n.oN)(nr,"slide-up"),(0,$n.oN)(nr,"slide-down")]]};const _o=nr=>{const{componentCls:Mr,tabsCardPadding:rr,cardBg:to,cardGutter:ts,colorBorderSecondary:Wr,itemSelectedColor:no}=nr;return{[`${Mr}-card`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab`]:{margin:0,padding:rr,background:to,border:`${nr.lineWidth}px ${nr.lineType} ${Wr}`,transition:`all ${nr.motionDurationSlow} ${nr.motionEaseInOut}`},[`${Mr}-tab-active`]:{color:no,background:nr.colorBgContainer},[`${Mr}-ink-bar`]:{visibility:"hidden"}},[`&${Mr}-top, &${Mr}-bottom`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab + ${Mr}-tab`]:{marginLeft:{_skip_check_:!0,value:`${ts}px`}}}},[`&${Mr}-top`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab`]:{borderRadius:`${nr.borderRadiusLG}px ${nr.borderRadiusLG}px 0 0`},[`${Mr}-tab-active`]:{borderBottomColor:nr.colorBgContainer}}},[`&${Mr}-bottom`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab`]:{borderRadius:`0 0 ${nr.borderRadiusLG}px ${nr.borderRadiusLG}px`},[`${Mr}-tab-active`]:{borderTopColor:nr.colorBgContainer}}},[`&${Mr}-left, &${Mr}-right`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab + ${Mr}-tab`]:{marginTop:`${ts}px`}}},[`&${Mr}-left`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nr.borderRadiusLG}px 0 0 ${nr.borderRadiusLG}px`}},[`${Mr}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:nr.colorBgContainer}}}},[`&${Mr}-right`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${nr.borderRadiusLG}px ${nr.borderRadiusLG}px 0`}},[`${Mr}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:nr.colorBgContainer}}}}}}},Qt=nr=>{const{componentCls:Mr,itemHoverColor:rr,dropdownEdgeChildVerticalPadding:to}=nr;return{[`${Mr}-dropdown`]:Object.assign(Object.assign({},(0,Nr.Wf)(nr)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:nr.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Mr}-dropdown-menu`]:{maxHeight:nr.tabsDropdownHeight,margin:0,padding:`${to}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:nr.colorBgContainer,backgroundClip:"padding-box",borderRadius:nr.borderRadiusLG,outline:"none",boxShadow:nr.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Nr.vS),{display:"flex",alignItems:"center",minWidth:nr.tabsDropdownWidth,margin:0,padding:`${nr.paddingXXS}px ${nr.paddingSM}px`,color:nr.colorText,fontWeight:"normal",fontSize:nr.fontSize,lineHeight:nr.lineHeight,cursor:"pointer",transition:`all ${nr.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:nr.marginSM},color:nr.colorTextDescription,fontSize:nr.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:rr}},"&:hover":{background:nr.controlItemBgHover},"&-disabled":{"&, &:hover":{color:nr.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},xn=nr=>{const{componentCls:Mr,margin:rr,colorBorderSecondary:to,horizontalMargin:ts,verticalItemPadding:Wr,verticalItemMargin:no}=nr;return{[`${Mr}-top, ${Mr}-bottom`]:{flexDirection:"column",[`> ${Mr}-nav, > div > ${Mr}-nav`]:{margin:ts,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${nr.lineWidth}px ${nr.lineType} ${to}`,content:"''"},[`${Mr}-ink-bar`]:{height:nr.lineWidthBold,"&-animated":{transition:`width ${nr.motionDurationSlow}, left ${nr.motionDurationSlow}, + right ${nr.motionDurationSlow}`}},[`${Mr}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:nr.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:nr.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:nr.boxShadowTabsOverflowRight},[`&${Mr}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Mr}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Mr}-top`]:{[`> ${Mr}-nav, + > div > ${Mr}-nav`]:{"&::before":{bottom:0},[`${Mr}-ink-bar`]:{bottom:0}}},[`${Mr}-bottom`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{order:1,marginTop:`${rr}px`,marginBottom:0,"&::before":{top:0},[`${Mr}-ink-bar`]:{top:0}},[`> ${Mr}-content-holder, > div > ${Mr}-content-holder`]:{order:0}},[`${Mr}-left, ${Mr}-right`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{flexDirection:"column",minWidth:nr.controlHeight*1.25,[`${Mr}-tab`]:{padding:Wr,textAlign:"center"},[`${Mr}-tab + ${Mr}-tab`]:{margin:no},[`${Mr}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:nr.controlHeight},"&::before":{top:0,boxShadow:nr.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:nr.boxShadowTabsOverflowBottom},[`&${Mr}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Mr}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Mr}-ink-bar`]:{width:nr.lineWidthBold,"&-animated":{transition:`height ${nr.motionDurationSlow}, top ${nr.motionDurationSlow}`}},[`${Mr}-nav-list, ${Mr}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Mr}-left`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Mr}-content-holder, > div > ${Mr}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${nr.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${nr.lineWidth}px ${nr.lineType} ${nr.colorBorder}`},[`> ${Mr}-content > ${Mr}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:nr.paddingLG}}}},[`${Mr}-right`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{order:1,[`${Mr}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Mr}-content-holder, > div > ${Mr}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-nr.lineWidth},borderRight:{_skip_check_:!0,value:`${nr.lineWidth}px ${nr.lineType} ${nr.colorBorder}`},[`> ${Mr}-content > ${Mr}-tabpane`]:{paddingRight:{_skip_check_:!0,value:nr.paddingLG}}}}}},Sr=nr=>{const{componentCls:Mr,cardPaddingSM:rr,cardPaddingLG:to,horizontalItemPaddingSM:ts,horizontalItemPaddingLG:Wr}=nr;return{[Mr]:{"&-small":{[`> ${Mr}-nav`]:{[`${Mr}-tab`]:{padding:ts,fontSize:nr.titleFontSizeSM}}},"&-large":{[`> ${Mr}-nav`]:{[`${Mr}-tab`]:{padding:Wr,fontSize:nr.titleFontSizeLG}}}},[`${Mr}-card`]:{[`&${Mr}-small`]:{[`> ${Mr}-nav`]:{[`${Mr}-tab`]:{padding:rr}},[`&${Mr}-bottom`]:{[`> ${Mr}-nav ${Mr}-tab`]:{borderRadius:`0 0 ${nr.borderRadius}px ${nr.borderRadius}px`}},[`&${Mr}-top`]:{[`> ${Mr}-nav ${Mr}-tab`]:{borderRadius:`${nr.borderRadius}px ${nr.borderRadius}px 0 0`}},[`&${Mr}-right`]:{[`> ${Mr}-nav ${Mr}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${nr.borderRadius}px ${nr.borderRadius}px 0`}}},[`&${Mr}-left`]:{[`> ${Mr}-nav ${Mr}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nr.borderRadius}px 0 0 ${nr.borderRadius}px`}}}},[`&${Mr}-large`]:{[`> ${Mr}-nav`]:{[`${Mr}-tab`]:{padding:to}}}}}},qr=nr=>{const{componentCls:Mr,itemActiveColor:rr,itemHoverColor:to,iconCls:ts,tabsHorizontalItemMargin:Wr,horizontalItemPadding:no,itemSelectedColor:Vi,itemColor:Pn}=nr,mi=`${Mr}-tab`;return{[mi]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:no,fontSize:nr.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Pn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:rr}},(0,Nr.Qy)(nr)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-nr.marginXXS},marginLeft:{_skip_check_:!0,value:nr.marginXS},color:nr.colorTextDescription,fontSize:nr.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${nr.motionDurationSlow}`,"&:hover":{color:nr.colorTextHeading}},"&:hover":{color:to},[`&${mi}-active ${mi}-btn`]:{color:Vi,textShadow:nr.tabsActiveTextShadow},[`&${mi}-disabled`]:{color:nr.colorTextDisabled,cursor:"not-allowed"},[`&${mi}-disabled ${mi}-btn, &${mi}-disabled ${Mr}-remove`]:{"&:focus, &:active":{color:nr.colorTextDisabled}},[`& ${mi}-remove ${ts}`]:{margin:0},[ts]:{marginRight:{_skip_check_:!0,value:nr.marginSM}}},[`${mi} + ${mi}`]:{margin:{_skip_check_:!0,value:Wr}}}},Mi=nr=>{const{componentCls:Mr,tabsHorizontalItemMarginRTL:rr,iconCls:to,cardGutter:ts}=nr;return{[`${Mr}-rtl`]:{direction:"rtl",[`${Mr}-nav`]:{[`${Mr}-tab`]:{margin:{_skip_check_:!0,value:rr},[`${Mr}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[to]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${nr.marginSM}px`}},[`${Mr}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${nr.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${nr.marginXXS}px`},[to]:{margin:0}}}},[`&${Mr}-left`]:{[`> ${Mr}-nav`]:{order:1},[`> ${Mr}-content-holder`]:{order:0}},[`&${Mr}-right`]:{[`> ${Mr}-nav`]:{order:0},[`> ${Mr}-content-holder`]:{order:1}},[`&${Mr}-card${Mr}-top, &${Mr}-card${Mr}-bottom`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-tab + ${Mr}-tab`]:{marginRight:{_skip_check_:!0,value:ts},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Mr}-dropdown-rtl`]:{direction:"rtl"},[`${Mr}-menu-item`]:{[`${Mr}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zi=nr=>{const{componentCls:Mr,tabsCardPadding:rr,cardHeight:to,cardGutter:ts,itemHoverColor:Wr,itemActiveColor:no,colorBorderSecondary:Vi}=nr;return{[Mr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nr.Wf)(nr)),{display:"flex",[`> ${Mr}-nav, > div > ${Mr}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Mr}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${nr.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Mr}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${nr.motionDurationSlow}`},[`${Mr}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Mr}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Mr}-nav-more`]:{position:"relative",padding:rr,background:"transparent",border:0,color:nr.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:nr.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Mr}-nav-add`]:Object.assign({minWidth:to,marginLeft:{_skip_check_:!0,value:ts},padding:`0 ${nr.paddingXS}px`,background:"transparent",border:`${nr.lineWidth}px ${nr.lineType} ${Vi}`,borderRadius:`${nr.borderRadiusLG}px ${nr.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:nr.colorText,transition:`all ${nr.motionDurationSlow} ${nr.motionEaseInOut}`,"&:hover":{color:Wr},"&:active, &:focus:not(:focus-visible)":{color:no}},(0,Nr.Qy)(nr))},[`${Mr}-extra-content`]:{flex:"none"},[`${Mr}-ink-bar`]:{position:"absolute",background:nr.inkBarColor,pointerEvents:"none"}}),qr(nr)),{[`${Mr}-content`]:{position:"relative",width:"100%"},[`${Mr}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Mr}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Mr}-centered`]:{[`> ${Mr}-nav, > div > ${Mr}-nav`]:{[`${Mr}-nav-wrap`]:{[`&:not([class*='${Mr}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Yi=(0,Zn.Z)("Tabs",nr=>{const Mr=(0,Ut.TS)(nr,{tabsCardPadding:nr.cardPadding||`${(nr.cardHeight-Math.round(nr.fontSize*nr.lineHeight))/2-nr.lineWidth}px ${nr.padding}px`,dropdownEdgeChildVerticalPadding:nr.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${nr.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${nr.horizontalItemGutter}px`});return[Sr(Mr),Mi(Mr),xn(Mr),Qt(Mr),_o(Mr),zi(Mr),Br(Mr)]},nr=>{const Mr=nr.controlHeightLG;return{zIndexPopup:nr.zIndexPopupBase+50,cardBg:nr.colorFillAlter,cardHeight:Mr,cardPadding:"",cardPaddingSM:`${nr.paddingXXS*1.5}px ${nr.padding}px`,cardPaddingLG:`${nr.paddingXS}px ${nr.padding}px ${nr.paddingXXS*1.5}px`,titleFontSize:nr.fontSize,titleFontSizeLG:nr.fontSizeLG,titleFontSizeSM:nr.fontSize,inkBarColor:nr.colorPrimary,horizontalMargin:`0 0 ${nr.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${nr.paddingSM}px 0`,horizontalItemPaddingSM:`${nr.paddingXS}px 0`,horizontalItemPaddingLG:`${nr.padding}px 0`,verticalItemPadding:`${nr.paddingXS}px ${nr.paddingLG}px`,verticalItemMargin:`${nr.margin}px 0 0 0`,itemColor:nr.colorText,itemSelectedColor:nr.colorPrimary,itemHoverColor:nr.colorPrimaryHover,itemActiveColor:nr.colorPrimaryActive,cardGutter:nr.marginXXS/2}}),ni=()=>null,qi=function(nr,Mr){var rr={};for(var to in nr)Object.prototype.hasOwnProperty.call(nr,to)&&Mr.indexOf(to)<0&&(rr[to]=nr[to]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ts=0,to=Object.getOwnPropertySymbols(nr);ts{const{type:Mr,className:rr,rootClassName:to,size:ts,onEdit:Wr,hideAdd:no,centered:Vi,addIcon:Pn,popupClassName:mi,children:ya,items:Zs,animated:qs,style:al,indicatorSize:co}=nr,tl=qi(nr,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:fl,moreIcon:Ai=v.createElement(w.Z,null)}=tl,{direction:Xi,tabs:Fi,getPrefixCls:No,getPopupContainer:yr}=v.useContext(ci.E_),ui=No("tabs",fl),[Zo,ns]=Yi(ui);let Lr;Mr==="editable-card"&&(Lr={onEdit:(wt,At)=>{let{key:Ye,event:Et}=At;Wr==null||Wr(wt==="add"?Et:Ye,wt)},removeIcon:v.createElement(R.Z,null),addIcon:Pn||v.createElement(L,null),showAdd:no!==!0});const Ei=No(),hn=Tr(Zs,ya),Tn=Vt(ui,qs),ar=(0,ji.Z)(ts),ft=Object.assign(Object.assign({},Fi==null?void 0:Fi.style),al);return Zo(v.createElement(Qr,Object.assign({direction:Xi,getPopupContainer:yr,moreTransitionName:`${Ei}-slide-up`},tl,{items:hn,className:g()({[`${ui}-${ar}`]:ar,[`${ui}-card`]:["card","editable-card"].includes(Mr),[`${ui}-editable-card`]:Mr==="editable-card",[`${ui}-centered`]:Vi},Fi==null?void 0:Fi.className,rr,to,ns),popupClassName:g()(mi,ns),style:ft,editable:Lr,moreIcon:Ai,prefixCls:ui,animated:Tn,indicatorSize:co!=null?co:Fi==null?void 0:Fi.indicatorSize})))};Vr.TabPane=ni;var ii=Vr},33083:function(gt,Y,_){"use strict";_.d(Y,{Mj:function(){return O},uH:function(){return B},u_:function(){return V}});var v=_(67294),R=_(85731),w=_(67164),b=_(2790);const B=(0,R.jG)(w.Z),V={token:b.Z,override:{override:b.Z},hashed:!0},O=v.createContext(V)},9361:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Se}});var v=_(85731),R=_(67164),w=_(2790),b=_(1393),V=ze=>{const De=ze!=null&&ze.algorithm?(0,v.jG)(ze.algorithm):(0,v.jG)(R.Z),ke=Object.assign(Object.assign({},w.Z),ze==null?void 0:ze.token);return(0,v.t2)(ke,{override:ze==null?void 0:ze.token},De,b.Z)},O=_(25976),L=_(33083),S=_(372);function g(ze){const{sizeUnit:De,sizeStep:ke}=ze,$e=ke-2;return{sizeXXL:De*($e+10),sizeXL:De*($e+6),sizeLG:De*($e+2),sizeMD:De*($e+2),sizeMS:De*($e+1),size:De*$e,sizeSM:De*$e,sizeXS:De*($e-1),sizeXXS:De*($e-1)}}var T=_(98378),K=(ze,De)=>{const ke=De!=null?De:(0,R.Z)(ze),$e=ke.fontSizeSM,Te=ke.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ke),g(De!=null?De:ze)),(0,T.Z)($e)),{controlHeight:Te}),(0,S.Z)(Object.assign(Object.assign({},ke),{controlHeight:Te})))},he=_(16397),ae=_(57),fe=_(10274);const _e=(ze,De)=>new fe.C(ze).setAlpha(De).toRgbString(),be=(ze,De)=>new fe.C(ze).lighten(De).toHexString(),xe=ze=>{const De=(0,he.R_)(ze,{theme:"dark"});return{1:De[0],2:De[1],3:De[2],4:De[3],5:De[6],6:De[5],7:De[4],8:De[6],9:De[5],10:De[4]}},Xe=(ze,De)=>{const ke=ze||"#000",$e=De||"#fff";return{colorBgBase:ke,colorTextBase:$e,colorText:_e($e,.85),colorTextSecondary:_e($e,.65),colorTextTertiary:_e($e,.45),colorTextQuaternary:_e($e,.25),colorFill:_e($e,.18),colorFillSecondary:_e($e,.12),colorFillTertiary:_e($e,.08),colorFillQuaternary:_e($e,.04),colorBgElevated:be(ke,12),colorBgContainer:be(ke,8),colorBgLayout:be(ke,0),colorBgSpotlight:be(ke,26),colorBgBlur:_e($e,.04),colorBorder:be(ke,26),colorBorderSecondary:be(ke,19)}};var dt=(ze,De)=>{const ke=Object.keys(w.M).map(Te=>{const tt=(0,he.R_)(ze[Te],{theme:"dark"});return new Array(10).fill(1).reduce((Oe,Xt,Ft)=>(Oe[`${Te}-${Ft+1}`]=tt[Ft],Oe[`${Te}${Ft+1}`]=tt[Ft],Oe),{})}).reduce((Te,tt)=>(Te=Object.assign(Object.assign({},Te),tt),Te),{}),$e=De!=null?De:(0,R.Z)(ze);return Object.assign(Object.assign(Object.assign({},$e),ke),(0,ae.Z)(ze,{generateColorPalettes:xe,generateNeutralColorPalettes:Xe}))};function Me(){const[ze,De,ke]=(0,O.Z)();return{theme:ze,token:De,hashId:ke}}var Se={defaultConfig:L.u_,defaultSeed:L.u_.token,useToken:Me,defaultAlgorithm:R.Z,darkAlgorithm:dt,compactAlgorithm:K,getDesignToken:V}},8796:function(gt,Y,_){"use strict";_.d(Y,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},67164:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ae}});var v=_(16397),R=_(372);function w(fe){const{sizeUnit:_e,sizeStep:be}=fe;return{sizeXXL:_e*(be+8),sizeXL:_e*(be+4),sizeLG:_e*(be+2),sizeMD:_e*(be+1),sizeMS:_e*be,size:_e*be,sizeSM:_e*(be-1),sizeXS:_e*(be-2),sizeXXS:_e*(be-3)}}var b=_(2790),B=_(57),O=fe=>{let _e=fe,be=fe,xe=fe,Xe=fe;return fe<6&&fe>=5?_e=fe+1:fe<16&&fe>=6?_e=fe+2:fe>=16&&(_e=16),fe<7&&fe>=5?be=4:fe<8&&fe>=7?be=5:fe<14&&fe>=8?be=6:fe<16&&fe>=14?be=7:fe>=16&&(be=8),fe<6&&fe>=2?xe=1:fe>=6&&(xe=2),fe>4&&fe<8?Xe=4:fe>=8&&(Xe=6),{borderRadius:fe,borderRadiusXS:xe,borderRadiusSM:be,borderRadiusLG:_e,borderRadiusOuter:Xe}};function L(fe){const{motionUnit:_e,motionBase:be,borderRadius:xe,lineWidth:Xe}=fe;return Object.assign({motionDurationFast:`${(be+_e).toFixed(1)}s`,motionDurationMid:`${(be+_e*2).toFixed(1)}s`,motionDurationSlow:`${(be+_e*3).toFixed(1)}s`,lineWidthBold:Xe+1},O(xe))}var S=_(10274);const g=(fe,_e)=>new S.C(fe).setAlpha(_e).toRgbString(),T=(fe,_e)=>new S.C(fe).darken(_e).toHexString(),k=fe=>{const _e=(0,v.R_)(fe);return{1:_e[0],2:_e[1],3:_e[2],4:_e[3],5:_e[4],6:_e[5],7:_e[6],8:_e[4],9:_e[5],10:_e[6]}},K=(fe,_e)=>{const be=fe||"#fff",xe=_e||"#000";return{colorBgBase:be,colorTextBase:xe,colorText:g(xe,.88),colorTextSecondary:g(xe,.65),colorTextTertiary:g(xe,.45),colorTextQuaternary:g(xe,.25),colorFill:g(xe,.15),colorFillSecondary:g(xe,.06),colorFillTertiary:g(xe,.04),colorFillQuaternary:g(xe,.02),colorBgLayout:T(be,4),colorBgContainer:T(be,0),colorBgElevated:T(be,0),colorBgSpotlight:g(xe,.85),colorBgBlur:"transparent",colorBorder:T(be,15),colorBorderSecondary:T(be,6)}};var he=_(98378);function ae(fe){const _e=Object.keys(b.M).map(be=>{const xe=(0,v.R_)(fe[be]);return new Array(10).fill(1).reduce((Xe,We,dt)=>(Xe[`${be}-${dt+1}`]=xe[dt],Xe[`${be}${dt+1}`]=xe[dt],Xe),{})}).reduce((be,xe)=>(be=Object.assign(Object.assign({},be),xe),be),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fe),_e),(0,B.Z)(fe,{generateColorPalettes:k,generateNeutralColorPalettes:K})),(0,he.Z)(fe.fontSize)),w(fe)),(0,R.Z)(fe)),L(fe))}},2790:function(gt,Y,_){"use strict";_.d(Y,{M:function(){return v}});const v={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},R=Object.assign(Object.assign({},v),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});V.Z=A},57:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(10274);function A(b,z){let{generateColorPalettes:k,generateNeutralColorPalettes:N}=z;const{colorSuccess:w,colorWarning:I,colorError:C,colorInfo:f,colorPrimary:S,colorBgBase:P,colorTextBase:W}=b,te=k(S),q=k(w),ie=k(I),he=k(C),de=k(f),fe=N(P,W),ke=b.colorLink||b.colorInfo,Ie=k(ke);return Object.assign(Object.assign({},fe),{colorPrimaryBg:te[1],colorPrimaryBgHover:te[2],colorPrimaryBorder:te[3],colorPrimaryBorderHover:te[4],colorPrimaryHover:te[5],colorPrimary:te[6],colorPrimaryActive:te[7],colorPrimaryTextHover:te[8],colorPrimaryText:te[9],colorPrimaryTextActive:te[10],colorSuccessBg:q[1],colorSuccessBgHover:q[2],colorSuccessBorder:q[3],colorSuccessBorderHover:q[4],colorSuccessHover:q[4],colorSuccess:q[6],colorSuccessActive:q[7],colorSuccessTextHover:q[8],colorSuccessText:q[9],colorSuccessTextActive:q[10],colorErrorBg:he[1],colorErrorBgHover:he[2],colorErrorBorder:he[3],colorErrorBorderHover:he[4],colorErrorHover:he[5],colorError:he[6],colorErrorActive:he[7],colorErrorTextHover:he[8],colorErrorText:he[9],colorErrorTextActive:he[10],colorWarningBg:ie[1],colorWarningBgHover:ie[2],colorWarningBorder:ie[3],colorWarningBorderHover:ie[4],colorWarningHover:ie[4],colorWarning:ie[6],colorWarningActive:ie[7],colorWarningTextHover:ie[8],colorWarningText:ie[9],colorWarningTextActive:ie[10],colorInfoBg:de[1],colorInfoBgHover:de[2],colorInfoBorder:de[3],colorInfoBorderHover:de[4],colorInfoHover:de[4],colorInfo:de[6],colorInfoActive:de[7],colorInfoTextHover:de[8],colorInfoText:de[9],colorInfoTextActive:de[10],colorLinkHover:Ie[4],colorLink:Ie[6],colorLinkActive:Ie[7],colorBgMask:new y.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:function(nt,V){"use strict";const m=y=>{const{controlHeight:A}=y;return{controlHeightSM:A*.75,controlHeightXS:A*.5,controlHeightLG:A*1.25}};V.Z=m},98378:function(nt,V,m){"use strict";m.d(V,{Z:function(){return b}});function y(z){const k=new Array(10).fill(null).map((N,w)=>{const I=w-1,C=z*Math.pow(2.71828,I/5),f=w>1?Math.floor(C):Math.ceil(C);return Math.floor(f/2)*2});return k[1]=z,k.map(N=>{const w=N+8;return{size:N,lineHeight:w/N}})}var b=z=>{const k=y(z),N=k.map(I=>I.size),w=k.map(I=>I.lineHeight);return{fontSizeSM:N[0],fontSize:N[1],fontSizeLG:N[2],fontSizeXL:N[3],fontSizeHeading1:N[6],fontSizeHeading2:N[5],fontSizeHeading3:N[4],fontSizeHeading4:N[3],fontSizeHeading5:N[2],lineHeight:w[1],lineHeightLG:w[2],lineHeightSM:w[0],lineHeightHeading1:w[6],lineHeightHeading2:w[5],lineHeightHeading3:w[4],lineHeightHeading4:w[3],lineHeightHeading5:w[2]}}},25976:function(nt,V,m){"use strict";m.d(V,{Z:function(){return f}});var y=m(67294),A=m(85731),b="5.10.1",z=b,k=m(33083),N=m(2790),w=m(1393),I=function(S,P){var W={};for(var te in S)Object.prototype.hasOwnProperty.call(S,te)&&P.indexOf(te)<0&&(W[te]=S[te]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,te=Object.getOwnPropertySymbols(S);q{const te=W.getDerivativeToken(S),{override:q}=P,ie=I(P,["override"]);let he=Object.assign(Object.assign({},te),{override:q});return he=(0,w.Z)(he),ie&&Object.entries(ie).forEach(de=>{let[fe,ke]=de;const{theme:Ie}=ke,Be=I(ke,["theme"]);let be=Be;Ie&&(be=C(Object.assign(Object.assign({},he),Be),{override:Be},Ie)),he[fe]=be}),he};function f(){const{token:S,hashed:P,theme:W,override:te}=y.useContext(k.Mj),q=`${z}-${P||""}`,ie=W||k.uH,[he,de]=(0,A.fp)(ie,[N.Z,S],{salt:q,override:te,getComputedToken:C,formatToken:w.Z});return[ie,he,P?de:""]}},1393:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(10274),A=m(2790);function b(I){return I>=0&&I<=255}function z(I,C){const{r:f,g:S,b:P,a:W}=new y.C(I).toRgb();if(W<1)return I;const{r:te,g:q,b:ie}=new y.C(C).toRgb();for(let he=.01;he<=1;he+=.01){const de=Math.round((f-te*(1-he))/he),fe=Math.round((S-q*(1-he))/he),ke=Math.round((P-ie*(1-he))/he);if(b(de)&&b(fe)&&b(ke))return new y.C({r:de,g:fe,b:ke,a:Math.round(he*100)/100}).toRgbString()}return new y.C({r:f,g:S,b:P,a:1}).toRgbString()}var k=z,N=function(I,C){var f={};for(var S in I)Object.prototype.hasOwnProperty.call(I,S)&&C.indexOf(S)<0&&(f[S]=I[S]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,S=Object.getOwnPropertySymbols(I);P{delete S[ke]});const P=Object.assign(Object.assign({},f),S),W=480,te=576,q=768,ie=992,he=1200,de=1600;if(P.motion===!1){const ke="0s";P.motionDurationFast=ke,P.motionDurationMid=ke,P.motionDurationSlow=ke}return Object.assign(Object.assign(Object.assign({},P),{colorFillContent:P.colorFillSecondary,colorFillContentHover:P.colorFill,colorFillAlter:P.colorFillQuaternary,colorBgContainerDisabled:P.colorFillTertiary,colorBorderBg:P.colorBgContainer,colorSplit:k(P.colorBorderSecondary,P.colorBgContainer),colorTextPlaceholder:P.colorTextQuaternary,colorTextDisabled:P.colorTextQuaternary,colorTextHeading:P.colorText,colorTextLabel:P.colorTextSecondary,colorTextDescription:P.colorTextTertiary,colorTextLightSolid:P.colorWhite,colorHighlight:P.colorError,colorBgTextHover:P.colorFillSecondary,colorBgTextActive:P.colorFill,colorIcon:P.colorTextTertiary,colorIconHover:P.colorText,colorErrorOutline:k(P.colorErrorBg,P.colorBgContainer),colorWarningOutline:k(P.colorWarningBg,P.colorBgContainer),fontSizeIcon:P.fontSizeSM,lineWidthFocus:P.lineWidth*4,lineWidth:P.lineWidth,controlOutlineWidth:P.lineWidth*2,controlInteractiveSize:P.controlHeight/2,controlItemBgHover:P.colorFillTertiary,controlItemBgActive:P.colorPrimaryBg,controlItemBgActiveHover:P.colorPrimaryBgHover,controlItemBgActiveDisabled:P.colorFill,controlTmpOutline:P.colorFillQuaternary,controlOutline:k(P.colorPrimaryBg,P.colorBgContainer),lineType:P.lineType,borderRadius:P.borderRadius,borderRadiusXS:P.borderRadiusXS,borderRadiusSM:P.borderRadiusSM,borderRadiusLG:P.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:P.sizeXXS,paddingXS:P.sizeXS,paddingSM:P.sizeSM,padding:P.size,paddingMD:P.sizeMD,paddingLG:P.sizeLG,paddingXL:P.sizeXL,paddingContentHorizontalLG:P.sizeLG,paddingContentVerticalLG:P.sizeMS,paddingContentHorizontal:P.sizeMS,paddingContentVertical:P.sizeSM,paddingContentHorizontalSM:P.size,paddingContentVerticalSM:P.sizeXS,marginXXS:P.sizeXXS,marginXS:P.sizeXS,marginSM:P.sizeSM,margin:P.size,marginMD:P.sizeMD,marginLG:P.sizeLG,marginXL:P.sizeXL,marginXXL:P.sizeXXL,boxShadow:` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Y.Z=R},57:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return R}});var v=_(10274);function R(w,b){let{generateColorPalettes:B,generateNeutralColorPalettes:V}=b;const{colorSuccess:O,colorWarning:L,colorError:S,colorInfo:g,colorPrimary:T,colorBgBase:k,colorTextBase:K}=w,he=B(T),ae=B(O),fe=B(L),_e=B(S),be=B(g),xe=V(k,K),Xe=w.colorLink||w.colorInfo,We=B(Xe);return Object.assign(Object.assign({},xe),{colorPrimaryBg:he[1],colorPrimaryBgHover:he[2],colorPrimaryBorder:he[3],colorPrimaryBorderHover:he[4],colorPrimaryHover:he[5],colorPrimary:he[6],colorPrimaryActive:he[7],colorPrimaryTextHover:he[8],colorPrimaryText:he[9],colorPrimaryTextActive:he[10],colorSuccessBg:ae[1],colorSuccessBgHover:ae[2],colorSuccessBorder:ae[3],colorSuccessBorderHover:ae[4],colorSuccessHover:ae[4],colorSuccess:ae[6],colorSuccessActive:ae[7],colorSuccessTextHover:ae[8],colorSuccessText:ae[9],colorSuccessTextActive:ae[10],colorErrorBg:_e[1],colorErrorBgHover:_e[2],colorErrorBorder:_e[3],colorErrorBorderHover:_e[4],colorErrorHover:_e[5],colorError:_e[6],colorErrorActive:_e[7],colorErrorTextHover:_e[8],colorErrorText:_e[9],colorErrorTextActive:_e[10],colorWarningBg:fe[1],colorWarningBgHover:fe[2],colorWarningBorder:fe[3],colorWarningBorderHover:fe[4],colorWarningHover:fe[4],colorWarning:fe[6],colorWarningActive:fe[7],colorWarningTextHover:fe[8],colorWarningText:fe[9],colorWarningTextActive:fe[10],colorInfoBg:be[1],colorInfoBgHover:be[2],colorInfoBorder:be[3],colorInfoBorderHover:be[4],colorInfoHover:be[4],colorInfo:be[6],colorInfoActive:be[7],colorInfoTextHover:be[8],colorInfoText:be[9],colorInfoTextActive:be[10],colorLinkHover:We[4],colorLink:We[6],colorLinkActive:We[7],colorBgMask:new v.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:function(gt,Y){"use strict";const _=v=>{const{controlHeight:R}=v;return{controlHeightSM:R*.75,controlHeightXS:R*.5,controlHeightLG:R*1.25}};Y.Z=_},98378:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return w}});function v(b){const B=new Array(10).fill(null).map((V,O)=>{const L=O-1,S=b*Math.pow(2.71828,L/5),g=O>1?Math.floor(S):Math.ceil(S);return Math.floor(g/2)*2});return B[1]=b,B.map(V=>{const O=V+8;return{size:V,lineHeight:O/V}})}var w=b=>{const B=v(b),V=B.map(L=>L.size),O=B.map(L=>L.lineHeight);return{fontSizeSM:V[0],fontSize:V[1],fontSizeLG:V[2],fontSizeXL:V[3],fontSizeHeading1:V[6],fontSizeHeading2:V[5],fontSizeHeading3:V[4],fontSizeHeading4:V[3],fontSizeHeading5:V[2],lineHeight:O[1],lineHeightLG:O[2],lineHeightSM:O[0],lineHeightHeading1:O[6],lineHeightHeading2:O[5],lineHeightHeading3:O[4],lineHeightHeading4:O[3],lineHeightHeading5:O[2]}}},25976:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return g}});var v=_(67294),R=_(85731),w="5.11.4",b=w,B=_(33083),V=_(2790),O=_(1393),L=function(T,k){var K={};for(var he in T)Object.prototype.hasOwnProperty.call(T,he)&&k.indexOf(he)<0&&(K[he]=T[he]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,he=Object.getOwnPropertySymbols(T);ae{const he=K.getDerivativeToken(T),{override:ae}=k,fe=L(k,["override"]);let _e=Object.assign(Object.assign({},he),{override:ae});return _e=(0,O.Z)(_e),fe&&Object.entries(fe).forEach(be=>{let[xe,Xe]=be;const{theme:We}=Xe,dt=L(Xe,["theme"]);let Me=dt;We&&(Me=S(Object.assign(Object.assign({},_e),dt),{override:dt},We)),_e[xe]=Me}),_e};function g(){const{token:T,hashed:k,theme:K,override:he}=v.useContext(B.Mj),ae=`${b}-${k||""}`,fe=K||B.uH,[_e,be]=(0,R.fp)(fe,[V.Z,T],{salt:ae,override:he,getComputedToken:S,formatToken:O.Z});return[fe,_e,k?be:""]}},1393:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(10274),R=_(2790);function w(L){return L>=0&&L<=255}function b(L,S){const{r:g,g:T,b:k,a:K}=new v.C(L).toRgb();if(K<1)return L;const{r:he,g:ae,b:fe}=new v.C(S).toRgb();for(let _e=.01;_e<=1;_e+=.01){const be=Math.round((g-he*(1-_e))/_e),xe=Math.round((T-ae*(1-_e))/_e),Xe=Math.round((k-fe*(1-_e))/_e);if(w(be)&&w(xe)&&w(Xe))return new v.C({r:be,g:xe,b:Xe,a:Math.round(_e*100)/100}).toRgbString()}return new v.C({r:g,g:T,b:k,a:1}).toRgbString()}var B=b,V=function(L,S){var g={};for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&S.indexOf(T)<0&&(g[T]=L[T]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,T=Object.getOwnPropertySymbols(L);k{delete T[Xe]});const k=Object.assign(Object.assign({},g),T),K=480,he=576,ae=768,fe=992,_e=1200,be=1600;if(k.motion===!1){const Xe="0s";k.motionDurationFast=Xe,k.motionDurationMid=Xe,k.motionDurationSlow=Xe}return Object.assign(Object.assign(Object.assign({},k),{colorFillContent:k.colorFillSecondary,colorFillContentHover:k.colorFill,colorFillAlter:k.colorFillQuaternary,colorBgContainerDisabled:k.colorFillTertiary,colorBorderBg:k.colorBgContainer,colorSplit:B(k.colorBorderSecondary,k.colorBgContainer),colorTextPlaceholder:k.colorTextQuaternary,colorTextDisabled:k.colorTextQuaternary,colorTextHeading:k.colorText,colorTextLabel:k.colorTextSecondary,colorTextDescription:k.colorTextTertiary,colorTextLightSolid:k.colorWhite,colorHighlight:k.colorError,colorBgTextHover:k.colorFillSecondary,colorBgTextActive:k.colorFill,colorIcon:k.colorTextTertiary,colorIconHover:k.colorText,colorErrorOutline:B(k.colorErrorBg,k.colorBgContainer),colorWarningOutline:B(k.colorWarningBg,k.colorBgContainer),fontSizeIcon:k.fontSizeSM,lineWidthFocus:k.lineWidth*4,lineWidth:k.lineWidth,controlOutlineWidth:k.lineWidth*2,controlInteractiveSize:k.controlHeight/2,controlItemBgHover:k.colorFillTertiary,controlItemBgActive:k.colorPrimaryBg,controlItemBgActiveHover:k.colorPrimaryBgHover,controlItemBgActiveDisabled:k.colorFill,controlTmpOutline:k.colorFillQuaternary,controlOutline:B(k.colorPrimaryBg,k.colorBgContainer),lineType:k.lineType,borderRadius:k.borderRadius,borderRadiusXS:k.borderRadiusXS,borderRadiusSM:k.borderRadiusSM,borderRadiusLG:k.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:k.sizeXXS,paddingXS:k.sizeXS,paddingSM:k.sizeSM,padding:k.size,paddingMD:k.sizeMD,paddingLG:k.sizeLG,paddingXL:k.sizeXL,paddingContentHorizontalLG:k.sizeLG,paddingContentVerticalLG:k.sizeMS,paddingContentHorizontal:k.sizeMS,paddingContentVertical:k.sizeSM,paddingContentHorizontalSM:k.size,paddingContentVerticalSM:k.sizeXS,marginXXS:k.sizeXXS,marginXS:k.sizeXS,marginSM:k.sizeSM,margin:k.size,marginMD:k.sizeMD,marginLG:k.sizeLG,marginXL:k.sizeXL,marginXXL:k.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -7985,10 +8093,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:W,screenXSMin:W,screenXSMax:te-1,screenSM:te,screenSMMin:te,screenSMMax:q-1,screenMD:q,screenMDMin:q,screenMDMax:ie-1,screenLG:ie,screenLGMin:ie,screenLGMax:he-1,screenXL:he,screenXLMin:he,screenXLMax:de-1,screenXXL:de,screenXXLMin:de,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new y.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new y.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new y.C("rgba(0, 0, 0, 0.09)").toRgbString()} + `,screenXS:K,screenXSMin:K,screenXSMax:he-1,screenSM:he,screenSMMin:he,screenSMMax:ae-1,screenMD:ae,screenMDMin:ae,screenMDMax:fe-1,screenLG:fe,screenLGMin:fe,screenLGMax:_e-1,screenXL:_e,screenXLMin:_e,screenXLMax:be-1,screenXXL:be,screenXXLMin:be,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new v.C("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new v.C("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new v.C("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -8005,27 +8113,27 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),S)}},67968:function(nt,V,m){"use strict";m.d(V,{Z:function(){return C},b:function(){return f}});var y=m(67294),A=m(85731),b=m(56790),z=m(53124),k=m(14747),N=m(25976),w=m(45503),I=m(53269);function C(S,P,W){let te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const q=Array.isArray(S)?S:[S,S],[ie]=q,he=q.join("-");return de=>{const[fe,ke,Ie]=(0,N.Z)(),{getPrefixCls:Be,iconPrefixCls:be,csp:me}=(0,y.useContext)(z.E_),ye=Be(),_e={theme:fe,token:ke,hashId:Ie,nonce:()=>me==null?void 0:me.nonce,clientOnly:te.clientOnly,order:te.order||-999};return(0,A.xy)(Object.assign(Object.assign({},_e),{clientOnly:!1,path:["Shared",ye]}),()=>[{"&":(0,k.Lx)(ke)}]),(0,I.Z)(be,me),[(0,A.xy)(Object.assign(Object.assign({},_e),{path:[he,de,be]}),()=>{const{token:Ce,flush:De}=(0,w.ZP)(ke),ge=Object.assign({},ke[ie]);if(te.deprecatedTokens){const{deprecatedTokens:bt}=te;bt.forEach(ft=>{let[$t,vt]=ft;var yn;(ge!=null&&ge[$t]||ge!=null&&ge[vt])&&((yn=ge[vt])!==null&&yn!==void 0||(ge[vt]=ge==null?void 0:ge[$t]))})}const je=typeof W=="function"?W((0,w.TS)(Ce,ge!=null?ge:{})):W,we=Object.assign(Object.assign({},je),ge),Pt=`.${de}`,dt=(0,w.TS)(Ce,{componentCls:Pt,prefixCls:de,iconCls:`.${be}`,antCls:`.${ye}`},we),He=P(dt,{hashId:Ie,prefixCls:de,rootPrefixCls:ye,iconPrefixCls:be,overrideComponentToken:ge});return De(ie,we),[te.resetStyle===!1?null:(0,k.du)(ke,de),He]}),Ie]}}const f=(S,P,W,te)=>{const q=C(S,P,W,Object.assign({resetStyle:!1,order:-998},te));return he=>{let{prefixCls:de}=he;return q(de),null}}},45503:function(nt,V,m){"use strict";m.d(V,{TS:function(){return b},ZP:function(){return w}});const y=typeof CSSINJS_STATISTIC!="undefined";let A=!0;function b(){for(var I=arguments.length,C=new Array(I),f=0;f{Object.keys(P).forEach(te=>{Object.defineProperty(S,te,{configurable:!0,enumerable:!0,get:()=>P[te]})})}),A=!0,S}const z={},k={};function N(){}function w(I){let C,f=I,S=N;return y&&(C=new Set,f=new Proxy(I,{get(P,W){return A&&C.add(W),P[W]}}),S=(P,W)=>{var te;z[P]={global:Array.from(C),component:Object.assign(Object.assign({},(te=z[P])===null||te===void 0?void 0:te.component),W)}}),{token:f,keys:C,flush:S}}},53269:function(nt,V,m){"use strict";var y=m(85731),A=m(14747),b=m(25976);const z=(k,N)=>{const[w,I]=(0,b.Z)();return(0,y.xy)({theme:w,token:I,hashId:"",path:["ant-design-icons",k],nonce:()=>N==null?void 0:N.nonce},()=>[{[`.${k}`]:Object.assign(Object.assign({},(0,A.Ro)()),{[`.${k} .${k}-icon`]:{display:"block"}})}])};V.Z=z},61781:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pt}});var y=m(67294),A=m(94184),b=m.n(A),z=m(92419),k=m(21770),N=m(33603),w=m(80636),I=m(96159),C=m(27288),f=m(53124),S=m(4173),P=m(25976),W=m(14747),te=m(50438),q=m(77786),ie=m(8796);function he(dt,He){return ie.i.reduce((bt,ft)=>{const $t=dt[`${ft}1`],vt=dt[`${ft}3`],yn=dt[`${ft}6`],Bn=dt[`${ft}7`];return Object.assign(Object.assign({},bt),He(ft,{lightColor:$t,lightBorderColor:vt,darkColor:yn,textColor:Bn}))},{})}var de=m(45503),fe=m(67968);const ke=dt=>{const{componentCls:He,tooltipMaxWidth:bt,tooltipColor:ft,tooltipBg:$t,tooltipBorderRadius:vt,zIndexPopup:yn,controlHeight:Bn,boxShadowSecondary:Lr,paddingSM:ii,paddingXS:gi,tooltipRadiusOuter:no}=dt;return[{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(dt)),{position:"absolute",zIndex:yn,display:"block",width:"max-content",maxWidth:bt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":$t,[`${He}-inner`]:{minWidth:Bn,minHeight:Bn,padding:`${ii/2}px ${gi}px`,color:ft,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:$t,borderRadius:vt,boxShadow:Lr,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${He}-inner`]:{borderRadius:Math.min(vt,q.qN)}},[`${He}-content`]:{position:"relative"}}),he(dt,(To,_r)=>{let{darkColor:Bo}=_r;return{[`&${He}-${To}`]:{[`${He}-inner`]:{backgroundColor:Bo},[`${He}-arrow`]:{"--antd-arrow-background-color":Bo}}}})),{"&-rtl":{direction:"rtl"}})},(0,q.ZP)((0,de.TS)(dt,{borderRadiusOuter:no}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:vt,limitVerticalRadius:!0}),{[`${He}-pure`]:{position:"relative",maxWidth:"none",margin:dt.sizePopupArrow}}]};var Ie=(dt,He)=>(0,fe.Z)("Tooltip",ft=>{if(He===!1)return[];const{borderRadius:$t,colorTextLightSolid:vt,colorBgDefault:yn,borderRadiusOuter:Bn}=ft,Lr=(0,de.TS)(ft,{tooltipMaxWidth:250,tooltipColor:vt,tooltipBorderRadius:$t,tooltipBg:yn,tooltipRadiusOuter:Bn>4?4:Bn});return[ke(Lr),(0,te._y)(ft,"zoom-big-fast")]},ft=>{let{zIndexPopupBase:$t,colorBgSpotlight:vt}=ft;return{zIndexPopup:$t+70,colorBgDefault:vt}},{resetStyle:!1})(dt),Be=m(74902);const be=ie.i.map(dt=>`${dt}-inverse`),me=null;function ye(dt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Be.Z)(be),(0,Be.Z)(ie.i)).includes(dt):ie.i.includes(dt)}function _e(dt){return me.includes(dt)}function Ce(dt,He){const bt=ye(He),ft=b()({[`${dt}-${He}`]:He&&bt}),$t={},vt={};return He&&!bt&&($t.background=He,vt["--antd-arrow-background-color"]=He),{className:ft,overlayStyle:$t,arrowStyle:vt}}var ge=dt=>{const{prefixCls:He,className:bt,placement:ft="top",title:$t,color:vt,overlayInnerStyle:yn}=dt,{getPrefixCls:Bn}=y.useContext(f.E_),Lr=Bn("tooltip",He),[ii,gi]=Ie(Lr,!0),no=Ce(Lr,vt),To=no.arrowStyle,_r=Object.assign(Object.assign({},yn),no.overlayStyle),Bo=b()(gi,Lr,`${Lr}-pure`,`${Lr}-placement-${ft}`,bt,no.className);return ii(y.createElement("div",{className:Bo,style:To},y.createElement("div",{className:`${Lr}-arrow`}),y.createElement(z.G,Object.assign({},dt,{className:gi,prefixCls:Lr,overlayInnerStyle:_r}),$t)))},je=function(dt,He){var bt={};for(var ft in dt)Object.prototype.hasOwnProperty.call(dt,ft)&&He.indexOf(ft)<0&&(bt[ft]=dt[ft]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,ft=Object.getOwnPropertySymbols(dt);$t{var bt,ft;const{prefixCls:$t,openClassName:vt,getTooltipContainer:yn,overlayClassName:Bn,color:Lr,overlayInnerStyle:ii,children:gi,afterOpenChange:no,afterVisibleChange:To,destroyTooltipOnHide:_r,arrow:Bo=!0,title:hs,overlay:ve,builtinPlacements:So,arrowPointAtCenter:ho=!1,autoAdjustOverflow:go=!0}=dt,ji=!!Bo,[,No]=(0,P.Z)(),{getPopupContainer:dn,getPrefixCls:Ve,direction:yt}=y.useContext(f.E_),Ct=(0,C.ln)("Tooltip"),Wt=y.useRef(null),sn=()=>{var Xr;(Xr=Wt.current)===null||Xr===void 0||Xr.forceAlign()};y.useImperativeHandle(He,()=>({forceAlign:sn,forcePopupAlign:()=>{Ct.deprecated(!1,"forcePopupAlign","forceAlign"),sn()}}));const[Mt,Tt]=(0,k.Z)(!1,{value:(bt=dt.open)!==null&&bt!==void 0?bt:dt.visible,defaultValue:(ft=dt.defaultOpen)!==null&&ft!==void 0?ft:dt.defaultVisible}),xt=!hs&&!ve&&hs!==0,Ht=Xr=>{var ao,as;Tt(xt?!1:Xr),xt||((ao=dt.onOpenChange)===null||ao===void 0||ao.call(dt,Xr),(as=dt.onVisibleChange)===null||as===void 0||as.call(dt,Xr))},Vn=y.useMemo(()=>{var Xr,ao;let as=ho;return typeof Bo=="object"&&(as=(ao=(Xr=Bo.pointAtCenter)!==null&&Xr!==void 0?Xr:Bo.arrowPointAtCenter)!==null&&ao!==void 0?ao:ho),So||(0,w.Z)({arrowPointAtCenter:as,autoAdjustOverflow:go,arrowWidth:ji?No.sizePopupArrow:0,borderRadius:No.borderRadius,offset:No.marginXXS,visibleFirst:!0})},[ho,Bo,So,No]),en=y.useMemo(()=>hs===0?hs:ve||hs||"",[ve,hs]),fr=y.createElement(S.BR,null,typeof en=="function"?en():en),{getPopupContainer:Kr,placement:ri="top",mouseEnterDelay:si=.1,mouseLeaveDelay:uo=.1,overlayStyle:Qo,rootClassName:_n}=dt,Vr=je(dt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),qr=Ve("tooltip",$t),Ui=Ve(),xo=dt["data-popover-inject"];let Us=Mt;!("open"in dt)&&!("visible"in dt)&&xt&&(Us=!1);const zn=(0,I.l$)(gi)&&!(0,I.M2)(gi)?gi:y.createElement("span",null,gi),Kn=zn.props,Or=!Kn.className||typeof Kn.className=="string"?b()(Kn.className,vt||`${qr}-open`):Kn.className,[mi,Er]=Ie(qr,!xo),ti=Ce(qr,Lr),di=ti.arrowStyle,rn=Object.assign(Object.assign({},ii),ti.overlayStyle),Qn=b()(Bn,{[`${qr}-rtl`]:yt==="rtl"},ti.className,_n,Er);return mi(y.createElement(z.Z,Object.assign({},Vr,{showArrow:ji,placement:ri,mouseEnterDelay:si,mouseLeaveDelay:uo,prefixCls:qr,overlayClassName:Qn,overlayStyle:Object.assign(Object.assign({},di),Qo),getTooltipContainer:Kr||yn||dn,ref:Wt,builtinPlacements:Vn,overlay:fr,visible:Us,onVisibleChange:Ht,afterVisibleChange:no!=null?no:To,overlayInnerStyle:rn,arrowContent:y.createElement("span",{className:`${qr}-arrow-content`}),motion:{motionName:(0,N.m)(Ui,"zoom-big-fast",dt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!_r}),Us?(0,I.Tm)(zn,{className:Or}):zn))});we._InternalPanelDoNotUseOrYouWillBeFired=ge;var Pt=we},93531:function(nt,V,m){"use strict";m.d(V,{Z:function(){return sn}});var y=m(67294),A=m(1413),b=m(87462),z=m(71002),k=m(97685),N=m(91),w=m(2788),I=m(40228),C=m(94184),f=m.n(C),S=m(8410),P=m(21770),W=m(66680);function te(Mt){var Tt=window.innerWidth||document.documentElement.clientWidth,xt=window.innerHeight||document.documentElement.clientHeight,Ht=Mt.getBoundingClientRect(),Vn=Ht.top,en=Ht.right,fr=Ht.bottom,Kr=Ht.left;return Vn>=0&&Kr>=0&&en<=Tt&&fr<=xt}function q(Mt,Tt,xt){var Ht;return(Ht=xt!=null?xt:Tt)!==null&&Ht!==void 0?Ht:Mt===null?"center":"bottom"}function ie(Mt,Tt,xt,Ht){var Vn=(0,y.useState)(void 0),en=(0,k.Z)(Vn,2),fr=en[0],Kr=en[1];(0,S.Z)(function(){var Ui=typeof Mt=="function"?Mt():Mt;Kr(Ui||null)});var ri=(0,y.useState)(null),si=(0,k.Z)(ri,2),uo=si[0],Qo=si[1],_n=(0,W.Z)(function(){if(fr){!te(fr)&&Tt&&fr.scrollIntoView(Ht);var Ui=fr.getBoundingClientRect(),xo=Ui.left,Us=Ui.top,zn=Ui.width,Kn=Ui.height,Or={left:xo,top:Us,width:zn,height:Kn,radius:0};Qo(function(mi){return JSON.stringify(mi)!==JSON.stringify(Or)?Or:mi})}else Qo(null)}),Vr=function(xo){var Us;return(Us=Array.isArray(xt==null?void 0:xt.offset)?xt==null?void 0:xt.offset[xo]:xt==null?void 0:xt.offset)!==null&&Us!==void 0?Us:6};(0,S.Z)(function(){return _n(),window.addEventListener("resize",_n),function(){window.removeEventListener("resize",_n)}},[fr,Tt,_n]);var qr=(0,y.useMemo)(function(){if(!uo)return uo;var Ui=Vr(0),xo=Vr(1),Us=(xt==null?void 0:xt.radius)||2;return{left:uo.left-Ui,top:uo.top-xo,width:uo.width+Ui*2,height:uo.height+xo*2,radius:Us}},[uo,xt]);return[qr,fr]}var he=m(7028),de={fill:"transparent",pointerEvents:"auto"},fe=function(Tt){var xt=Tt.prefixCls,Ht=Tt.rootClassName,Vn=Tt.pos,en=Tt.showMask,fr=Tt.style,Kr=fr===void 0?{}:fr,ri=Tt.fill,si=ri===void 0?"rgba(0,0,0,0.5)":ri,uo=Tt.open,Qo=Tt.animated,_n=Tt.zIndex,Vr=(0,he.Z)(),qr="".concat(xt,"-mask-").concat(Vr),Ui=(0,z.Z)(Qo)==="object"?Qo==null?void 0:Qo.placeholder:Qo;return y.createElement(w.Z,{open:uo,autoLock:!0},y.createElement("div",{className:f()("".concat(xt,"-mask"),Ht),style:(0,A.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:_n,pointerEvents:"none"},Kr)},en?y.createElement("svg",{style:{width:"100%",height:"100%"}},y.createElement("defs",null,y.createElement("mask",{id:qr},y.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Vn&&y.createElement("rect",{x:Vn.left,y:Vn.top,rx:Vn.radius,width:Vn.width,height:Vn.height,fill:"black",className:Ui?"".concat(xt,"-placeholder-animated"):""}))),y.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:si,mask:"url(#".concat(qr,")")}),Vn&&y.createElement(y.Fragment,null,y.createElement("rect",(0,b.Z)({},de,{x:"0",y:"0",width:"100%",height:Vn.top})),y.createElement("rect",(0,b.Z)({},de,{x:"0",y:"0",width:Vn.left,height:"100%"})),y.createElement("rect",(0,b.Z)({},de,{x:"0",y:Vn.top+Vn.height,width:"100%",height:"calc(100vh - ".concat(Vn.top+Vn.height,"px)")})),y.createElement("rect",(0,b.Z)({},de,{x:Vn.left+Vn.width,y:"0",width:"calc(100vw - ".concat(Vn.left+Vn.width,"px)"),height:"100%"})))):null))},ke=fe,Ie={adjustX:1,adjustY:1},Be=[0,0],be={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function me(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Tt={};return Object.keys(be).forEach(function(xt){Tt[xt]=(0,A.Z)((0,A.Z)({},be[xt]),{},{autoArrow:Mt,targetOffset:Be})}),Tt}var ye=me(),_e=m(74902);function Ce(Mt){var Tt=Mt.prefixCls,xt=Mt.current,Ht=Mt.total,Vn=Mt.title,en=Mt.description,fr=Mt.onClose,Kr=Mt.onPrev,ri=Mt.onNext,si=Mt.onFinish,uo=Mt.className,Qo=Mt.closeIcon,_n=Qo!==!1&&Qo!==null,Vr=Qo!==void 0&&Qo!==!0?Qo:y.createElement("span",{className:"".concat(Tt,"-close-x")},"\xD7");return y.createElement("div",{className:f()("".concat(Tt,"-content"),uo)},y.createElement("div",{className:"".concat(Tt,"-inner")},_n&&y.createElement("button",{type:"button",onClick:fr,"aria-label":"Close",className:"".concat(Tt,"-close")},Vr),y.createElement("div",{className:"".concat(Tt,"-header")},y.createElement("div",{className:"".concat(Tt,"-title")},Vn)),y.createElement("div",{className:"".concat(Tt,"-description")},en),y.createElement("div",{className:"".concat(Tt,"-footer")},y.createElement("div",{className:"".concat(Tt,"-sliders")},Ht>1?(0,_e.Z)(Array.from({length:Ht}).keys()).map(function(qr,Ui){return y.createElement("span",{key:qr,className:Ui===xt?"active":""})}):null),y.createElement("div",{className:"".concat(Tt,"-buttons")},xt!==0?y.createElement("button",{className:"".concat(Tt,"-prev-btn"),onClick:Kr},"Prev"):null,xt===Ht-1?y.createElement("button",{className:"".concat(Tt,"-finish-btn"),onClick:si},"Finish"):y.createElement("button",{className:"".concat(Tt,"-next-btn"),onClick:ri},"Next")))))}var De=function(Tt){var xt=Tt.current,Ht=Tt.renderPanel;return y.createElement(y.Fragment,null,typeof Ht=="function"?Ht(Tt,xt):y.createElement(Ce,Tt))},ge=De,je=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],we={left:"50%",top:"50%",width:1,height:1},Pt=function(Tt){var xt=Tt.prefixCls,Ht=xt===void 0?"rc-tour":xt,Vn=Tt.steps,en=Vn===void 0?[]:Vn,fr=Tt.defaultCurrent,Kr=Tt.current,ri=Tt.onChange,si=Tt.onClose,uo=Tt.onFinish,Qo=Tt.open,_n=Tt.mask,Vr=_n===void 0?!0:_n,qr=Tt.arrow,Ui=qr===void 0?!0:qr,xo=Tt.rootClassName,Us=Tt.placement,zn=Tt.renderPanel,Kn=Tt.gap,Or=Tt.animated,mi=Tt.scrollIntoViewOptions,Er=mi===void 0?!0:mi,ti=Tt.zIndex,di=ti===void 0?1001:ti,rn=Tt.closeIcon,Qn=(0,N.Z)(Tt,je),Xr=y.useRef(),ao=(0,P.Z)(0,{value:Kr,defaultValue:fr}),as=(0,k.Z)(ao,2),Bt=as[0],pn=as[1],br=(0,P.Z)(void 0,{value:Qo,postState:function(Eo){return Bt<0||Bt>=en.length?!1:Eo!=null?Eo:!0}}),Jr=(0,k.Z)(br,2),vi=Jr[0],Di=Jr[1],co=y.useRef(vi);(0,S.Z)(function(){vi&&!co.current&&pn(0),co.current=vi},[vi]);var Qr=en[Bt]||{},oi=Qr.target,Zi=Qr.placement,Ar=Qr.style,tn=Qr.arrow,Gn=Qr.className,Ei=Qr.mask,In=Qr.scrollIntoViewOptions,Li=Qr.closeIcon,nr=vi&&(Ei!=null?Ei:Vr),wi=Li!=null?Li:rn,Mi=In!=null?In:Er,Fr=ie(oi,Qo,Kn,Mi),qn=(0,k.Z)(Fr,2),ms=qn[0],ya=qn[1],ha=q(ya,Us,Zi),Ws=ya?typeof tn=="undefined"?Ui:tn:!1,Ua=(0,z.Z)(Ws)==="object"?Ws.pointAtCenter:!1;(0,S.Z)(function(){var ci;(ci=Xr.current)===null||ci===void 0||ci.forceAlign()},[Ua,Bt]);var Ao=function(Eo){pn(Eo),ri==null||ri(Eo)};if(ya===void 0)return null;var dl=function(){Di(!1),si==null||si(Bt)},$r=function(){return y.createElement(ge,(0,b.Z)({arrow:Ws,key:"content",prefixCls:Ht,total:en.length,renderPanel:zn,onPrev:function(){Ao(Bt-1)},onNext:function(){Ao(Bt+1)},onClose:dl,current:Bt,onFinish:function(){dl(),uo==null||uo()},closeIcon:wi},en[Bt]))},er=typeof nr=="boolean"?nr:!!nr,Tr=typeof nr=="boolean"?void 0:nr,pr=function(Eo){return Eo||ya||document.body};return y.createElement(y.Fragment,null,y.createElement(ke,{zIndex:di,prefixCls:Ht,pos:ms,showMask:er,style:Tr==null?void 0:Tr.style,fill:Tr==null?void 0:Tr.color,open:vi,animated:Or,rootClassName:xo}),y.createElement(I.Z,(0,b.Z)({builtinPlacements:me(Ua)},Qn,{ref:Xr,popupStyle:Ar,popupPlacement:ha,popupVisible:vi,popupClassName:f()(xo,Gn),prefixCls:Ht,popup:$r,forceRender:!1,destroyPopupOnHide:!0,zIndex:di,getTriggerDOMNode:pr,arrow:!!Ws}),y.createElement(w.Z,{open:vi,autoLock:!0},y.createElement("div",{className:f()(xo,"".concat(Ht,"-target-placeholder")),style:(0,A.Z)((0,A.Z)({},ms||we),{},{position:"fixed",pointerEvents:"none"})}))))},dt=Pt,He=dt,bt=m(80636),ft=m(53124),$t=m(25976),vt=m(62208),yn=m(15867),Bn=m(10110),Lr=m(88526),ii=m(69760);function gi(Mt){return Mt!=null}var To=Mt=>{let{stepProps:Tt,current:xt,type:Ht,indicatorsRender:Vn,closeIcon:en}=Mt;var fr,Kr;const{prefixCls:ri,total:si=1,title:uo,onClose:Qo,onPrev:_n,onNext:Vr,onFinish:qr,cover:Ui,description:xo,nextButtonProps:Us,prevButtonProps:zn,type:Kn,closeIcon:Or}=Tt,mi=Kn!=null?Kn:Ht,Er=Or!=null?Or:en,ti=Er!==!1&&Er!==null,[di,rn]=(0,ii.Z)(ti,Er,co=>y.createElement("span",{onClick:Qo,"aria-label":"Close",className:`${ri}-close`},co),y.createElement(vt.Z,{className:`${ri}-close-icon`}),!0),Qn=xt===si-1,Xr=()=>{var co;_n==null||_n(),(co=zn==null?void 0:zn.onClick)===null||co===void 0||co.call(zn)},ao=()=>{var co;Qn?qr==null||qr():Vr==null||Vr(),(co=Us==null?void 0:Us.onClick)===null||co===void 0||co.call(Us)},as=gi(uo)?y.createElement("div",{className:`${ri}-header`},y.createElement("div",{className:`${ri}-title`},uo)):null,Bt=gi(xo)?y.createElement("div",{className:`${ri}-description`},xo):null,pn=gi(Ui)?y.createElement("div",{className:`${ri}-cover`},Ui):null;let br;Vn?br=Vn(xt,si):br=(0,_e.Z)(Array.from({length:si}).keys()).map((co,Qr)=>y.createElement("span",{key:co,className:f()(Qr===xt&&`${ri}-indicator-active`,`${ri}-indicator`)}));const Jr=mi==="primary"?"default":"primary",vi={type:"default",ghost:mi==="primary"},[Di]=(0,Bn.Z)("Tour",Lr.Z.Tour);return y.createElement("div",{className:`${ri}-content`},y.createElement("div",{className:`${ri}-inner`},di&&rn,pn,as,Bt,y.createElement("div",{className:`${ri}-footer`},si>1&&y.createElement("div",{className:`${ri}-indicators`},br),y.createElement("div",{className:`${ri}-buttons`},xt!==0?y.createElement(yn.ZP,Object.assign({},vi,zn,{onClick:Xr,size:"small",className:f()(`${ri}-prev-btn`,zn==null?void 0:zn.className)}),(fr=zn==null?void 0:zn.children)!==null&&fr!==void 0?fr:Di==null?void 0:Di.Previous):null,y.createElement(yn.ZP,Object.assign({type:Jr},Us,{onClick:ao,size:"small",className:f()(`${ri}-next-btn`,Us==null?void 0:Us.className)}),(Kr=Us==null?void 0:Us.children)!==null&&Kr!==void 0?Kr:Qn?Di==null?void 0:Di.Finish:Di==null?void 0:Di.Next)))))},_r=m(60590),Bo=m(10274),hs=m(14747),ve=m(77786),So=m(67968),ho=m(45503);const go=Mt=>{const{componentCls:Tt,lineHeight:xt,padding:Ht,paddingXS:Vn,borderRadius:en,borderRadiusXS:fr,colorPrimary:Kr,colorText:ri,colorFill:si,indicatorHeight:uo,indicatorWidth:Qo,boxShadowTertiary:_n,tourZIndexPopup:Vr,fontSize:qr,colorBgElevated:Ui,fontWeightStrong:xo,marginXS:Us,colorTextLightSolid:zn,tourBorderRadius:Kn,colorWhite:Or,colorBgTextHover:mi,tourCloseSize:Er,motionDurationSlow:ti,antCls:di}=Mt;return[{[Tt]:Object.assign(Object.assign({},(0,hs.Wf)(Mt)),{color:ri,position:"absolute",zIndex:Vr,display:"block",visibility:"visible",fontSize:qr,lineHeight:xt,width:520,"--antd-arrow-background-color":Ui,"&-pure":{maxWidth:"100%",position:"relative"},[`&${Tt}-hidden`]:{display:"none"},[`${Tt}-content`]:{position:"relative"},[`${Tt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Kn,boxShadow:_n,position:"relative",backgroundColor:Ui,border:"none",backgroundClip:"padding-box",[`${Tt}-close`]:{position:"absolute",top:Ht,insetInlineEnd:Ht,color:Mt.colorIcon,outline:"none",width:Er,height:Er,borderRadius:Mt.borderRadiusSM,transition:`background-color ${Mt.motionDurationMid}, color ${Mt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Mt.colorIconHover,backgroundColor:Mt.wireframe?"transparent":Mt.colorFillContent}},[`${Tt}-cover`]:{textAlign:"center",padding:`${Ht+Er+Vn}px ${Ht}px 0`,img:{width:"100%"}},[`${Tt}-header`]:{padding:`${Ht}px ${Ht}px ${Vn}px`,[`${Tt}-title`]:{lineHeight:xt,fontSize:qr,fontWeight:xo}},[`${Tt}-description`]:{padding:`0 ${Ht}px`,lineHeight:xt,wordWrap:"break-word"},[`${Tt}-footer`]:{padding:`${Vn}px ${Ht}px ${Ht}px`,textAlign:"end",borderRadius:`0 0 ${fr}px ${fr}px`,display:"flex",[`${Tt}-indicators`]:{display:"inline-block",[`${Tt}-indicator`]:{width:Qo,height:uo,display:"inline-block",borderRadius:"50%",background:si,"&:not(:last-child)":{marginInlineEnd:uo},"&-active":{background:Kr}}},[`${Tt}-buttons`]:{marginInlineStart:"auto",[`${di}-btn`]:{marginInlineStart:Us}}}},[`${Tt}-primary, &${Tt}-primary`]:{"--antd-arrow-background-color":Kr,[`${Tt}-inner`]:{color:zn,textAlign:"start",textDecoration:"none",backgroundColor:Kr,borderRadius:en,boxShadow:_n,[`${Tt}-close`]:{color:zn},[`${Tt}-indicators`]:{[`${Tt}-indicator`]:{background:new Bo.C(zn).setAlpha(.15).toRgbString(),"&-active":{background:zn}}},[`${Tt}-prev-btn`]:{color:zn,borderColor:new Bo.C(zn).setAlpha(.15).toRgbString(),backgroundColor:Kr,"&:hover":{backgroundColor:new Bo.C(zn).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${Tt}-next-btn`]:{color:Kr,borderColor:"transparent",background:Or,"&:hover":{background:new Bo.C(mi).onBackground(Or).toRgbString()}}}}}),[`${Tt}-mask`]:{[`${Tt}-placeholder-animated`]:{transition:`all ${ti}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Tt}-inner`]:{borderRadius:Math.min(Kn,ve.qN)}}},(0,ve.ZP)(Mt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Kn,limitVerticalRadius:!0})]};var ji=(0,So.Z)("Tour",Mt=>{const{borderRadiusLG:Tt,fontSize:xt,lineHeight:Ht}=Mt,Vn=(0,ho.TS)(Mt,{tourZIndexPopup:Mt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:Tt,tourCloseSize:xt*Ht});return[go(Vn)]}),No=m(8745),dn=function(Mt,Tt){var xt={};for(var Ht in Mt)Object.prototype.hasOwnProperty.call(Mt,Ht)&&Tt.indexOf(Ht)<0&&(xt[Ht]=Mt[Ht]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,Ht=Object.getOwnPropertySymbols(Mt);Vn{const{prefixCls:Tt,current:xt=0,total:Ht=6,className:Vn,style:en,type:fr}=Mt,Kr=dn(Mt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:ri}=y.useContext(ft.E_),si=ri("tour",Tt),[uo,Qo]=ji(si);return uo(y.createElement(_r.t5,{prefixCls:si,hashId:Qo,className:f()(Vn,`${si}-pure`,fr&&`${si}-${fr}`),style:en},y.createElement(To,{stepProps:Object.assign(Object.assign({},Kr),{prefixCls:si,total:Ht}),current:xt,type:fr})))};var yt=(0,No.i)(Ve),Ct=function(Mt,Tt){var xt={};for(var Ht in Mt)Object.prototype.hasOwnProperty.call(Mt,Ht)&&Tt.indexOf(Ht)<0&&(xt[Ht]=Mt[Ht]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,Ht=Object.getOwnPropertySymbols(Mt);Vn{const{prefixCls:Tt,type:xt,rootClassName:Ht,indicatorsRender:Vn,steps:en}=Mt,fr=Ct(Mt,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Kr,direction:ri}=(0,y.useContext)(ft.E_),si=Kr("tour",Tt),[uo,Qo]=ji(si),[,_n]=(0,$t.Z)(),Vr=(0,y.useMemo)(()=>en==null?void 0:en.map(Us=>{var zn;return Object.assign(Object.assign({},Us),{className:f()(Us.className,{[`${si}-primary`]:((zn=Us.type)!==null&&zn!==void 0?zn:xt)==="primary"})})}),[en,xt]),qr=(0,bt.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:_n.marginXXS,arrowWidth:_n.sizePopupArrow,borderRadius:_n.borderRadius}),Ui=f()({[`${si}-rtl`]:ri==="rtl"},Qo,Ht),xo=(Us,zn)=>y.createElement(To,{type:xt,stepProps:Us,current:zn,indicatorsRender:Vn});return uo(y.createElement(He,Object.assign({},fr,{rootClassName:Ui,prefixCls:si,animated:!0,renderPanel:xo,builtinPlacements:qr,steps:Vr})))};Wt._InternalPanelDoNotUseOrYouWillBeFired=yt;var sn=Wt},51945:function(nt,V,m){"use strict";m.d(V,{Z:function(){return as}});var y=m(67294),A=m(35918),b=m(87462),z={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"},k=z,N=m(93771),w=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:k}))},I=y.forwardRef(w),C={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"},f=C,S=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:f}))},P=y.forwardRef(S),W=m(94184),te=m.n(W),q=m(20640),ie=m.n(q),he=m(48555),de=m(50344),fe=m(8410),ke=m(21770),Ie=m(98423),Be=m(42550),be=m(79370),me=m(15105),ye=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const br=Zi=>{const{keyCode:Ar}=Zi;Ar===me.Z.ENTER&&Zi.preventDefault()},Jr=Zi=>{const{keyCode:Ar}=Zi,{onClick:tn}=Bt;Ar===me.Z.ENTER&&tn&&tn()},{style:vi,noStyle:Di,disabled:co}=Bt,Qr=ye(Bt,["style","noStyle","disabled"]);let oi={};return Di||(oi=Object.assign({},_e)),co&&(oi.pointerEvents="none"),oi=Object.assign(Object.assign({},oi),vi),y.createElement("div",Object.assign({role:"button",tabIndex:0,ref:pn},Qr,{onKeyDown:br,onKeyUp:Jr,style:oi}))}),ge=m(53124),je=m(10110),we=m(61781),Pt={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"},dt=Pt,He=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:dt}))},bt=y.forwardRef(He),ft=m(96159),$t=m(22913),vt=m(49867),yn=m(67968),Bn=m(16397);const Lr=(Bt,pn,br,Jr)=>{const{titleMarginBottom:vi,fontWeightStrong:Di}=Jr;return{marginBottom:vi,color:br,fontWeight:Di,fontSize:Bt,lineHeight:pn}},ii=Bt=>{const pn=[1,2,3,4,5],br={};return pn.forEach(Jr=>{br[` - h${Jr}&, - div&-h${Jr}, - div&-h${Jr} > textarea, - h${Jr} - `]=Lr(Bt[`fontSizeHeading${Jr}`],Bt[`lineHeightHeading${Jr}`],Bt.colorTextHeading,Bt)}),br},gi=Bt=>{const{componentCls:pn}=Bt;return{"a&, a":Object.assign(Object.assign({},(0,vt.N)(Bt)),{textDecoration:Bt.linkDecoration,"&:active, &:hover":{textDecoration:Bt.linkHoverDecoration},[`&[disabled], &${pn}-disabled`]:{color:Bt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:Bt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},no=Bt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:Bt.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:Bt.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Bn.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:Bt.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),To=Bt=>{const{componentCls:pn,paddingSM:br}=Bt,Jr=br;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-Bt.paddingSM,marginTop:-Jr,marginBottom:`calc(1em - ${Jr}px)`},[`${pn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:Bt.marginXS+2,insetBlockEnd:Bt.marginXS,color:Bt.colorTextDescription,fontWeight:"normal",fontSize:Bt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_r=Bt=>({"&-copy-success":{[` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),T)}},67968:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return S},b:function(){return g}});var v=_(67294),R=_(85731),w=_(56790),b=_(53124),B=_(14747),V=_(25976),O=_(45503),L=_(53269);function S(T,k,K){let he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const ae=Array.isArray(T)?T:[T,T],[fe]=ae,_e=ae.join("-");return be=>{const[xe,Xe,We]=(0,V.Z)(),{getPrefixCls:dt,iconPrefixCls:Me,csp:Se}=(0,v.useContext)(b.E_),ze=dt(),De={theme:xe,token:Xe,hashId:We,nonce:()=>Se==null?void 0:Se.nonce,clientOnly:he.clientOnly,order:he.order||-999};return(0,R.xy)(Object.assign(Object.assign({},De),{clientOnly:!1,path:["Shared",ze]}),()=>[{"&":(0,B.Lx)(Xe)}]),(0,L.Z)(Me,Se),[(0,R.xy)(Object.assign(Object.assign({},De),{path:[_e,be,Me]}),()=>{const{token:ke,flush:$e}=(0,O.ZP)(Xe),Te=Object.assign({},Xe[fe]);if(he.deprecatedTokens){const{deprecatedTokens:xt}=he;xt.forEach(ut=>{let[$t,_t]=ut;var bn;(Te!=null&&Te[$t]||Te!=null&&Te[_t])&&((bn=Te[_t])!==null&&bn!==void 0||(Te[_t]=Te==null?void 0:Te[$t]))})}const tt=typeof K=="function"?K((0,O.TS)(ke,Te!=null?Te:{})):K,Oe=Object.assign(Object.assign({},tt),Te),Xt=`.${be}`,Ft=(0,O.TS)(ke,{componentCls:Xt,prefixCls:be,iconCls:`.${Me}`,antCls:`.${ze}`},Oe),ot=k(Ft,{hashId:We,prefixCls:be,rootPrefixCls:ze,iconPrefixCls:Me,overrideComponentToken:Te});return $e(fe,Oe),[he.resetStyle===!1?null:(0,B.du)(Ft,be),ot]}),We]}}const g=(T,k,K,he)=>{const ae=S(T,k,K,Object.assign({resetStyle:!1,order:-998},he));return _e=>{let{prefixCls:be}=_e;return ae(be),null}}},45503:function(gt,Y,_){"use strict";_.d(Y,{TS:function(){return w},ZP:function(){return O}});const v=typeof CSSINJS_STATISTIC!="undefined";let R=!0;function w(){for(var L=arguments.length,S=new Array(L),g=0;g{Object.keys(k).forEach(he=>{Object.defineProperty(T,he,{configurable:!0,enumerable:!0,get:()=>k[he]})})}),R=!0,T}const b={},B={};function V(){}function O(L){let S,g=L,T=V;return v&&typeof Proxy!="undefined"&&(S=new Set,g=new Proxy(L,{get(k,K){return R&&S.add(K),k[K]}}),T=(k,K)=>{var he;b[k]={global:Array.from(S),component:Object.assign(Object.assign({},(he=b[k])===null||he===void 0?void 0:he.component),K)}}),{token:g,keys:S,flush:T}}},53269:function(gt,Y,_){"use strict";var v=_(85731),R=_(14747),w=_(25976);const b=(B,V)=>{const[O,L]=(0,w.Z)();return(0,v.xy)({theme:O,token:L,hashId:"",path:["ant-design-icons",B],nonce:()=>V==null?void 0:V.nonce},()=>[{[`.${B}`]:Object.assign(Object.assign({},(0,R.Ro)()),{[`.${B} .${B}-icon`]:{display:"block"}})}])};Y.Z=b},61781:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return ot}});var v=_(67294),R=_(94184),w=_.n(R),b=_(92419),B=_(21770),V=_(87263),O=_(33603),L=_(80636),S=_(96159),g=_(27288),T=_(43945),k=_(53124),K=_(4173),he=_(25976),ae=_(14747),fe=_(50438),_e=_(77786),be=_(8796);function xe(xt,ut){return be.i.reduce(($t,_t)=>{const bn=xt[`${_t}1`],Wn=xt[`${_t}3`],$r=xt[`${_t}6`],wi=xt[`${_t}7`];return Object.assign(Object.assign({},$t),ut(_t,{lightColor:bn,lightBorderColor:Wn,darkColor:$r,textColor:wi}))},{})}var Xe=_(45503),We=_(67968);const dt=xt=>{const{componentCls:ut,tooltipMaxWidth:$t,tooltipColor:_t,tooltipBg:bn,tooltipBorderRadius:Wn,zIndexPopup:$r,controlHeight:wi,boxShadowSecondary:oo,paddingSM:Mo,paddingXS:Ti,tooltipRadiusOuter:Hr}=xt;return[{[ut]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(xt)),{position:"absolute",zIndex:$r,display:"block",width:"max-content",maxWidth:$t,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":bn,[`${ut}-inner`]:{minWidth:wi,minHeight:wi,padding:`${Mo/2}px ${Ti}px`,color:_t,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:bn,borderRadius:Wn,boxShadow:oo,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${ut}-inner`]:{borderRadius:Math.min(Wn,_e.qN)}},[`${ut}-content`]:{position:"relative"}}),xe(xt,(Ho,Ss)=>{let{darkColor:Pe}=Ss;return{[`&${ut}-${Ho}`]:{[`${ut}-inner`]:{backgroundColor:Pe},[`${ut}-arrow`]:{"--antd-arrow-background-color":Pe}}}})),{"&-rtl":{direction:"rtl"}})},(0,_e.ZP)((0,Xe.TS)(xt,{borderRadiusOuter:Hr}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Wn,limitVerticalRadius:!0}),{[`${ut}-pure`]:{position:"relative",maxWidth:"none",margin:xt.sizePopupArrow}}]};var Me=(xt,ut)=>(0,We.Z)("Tooltip",_t=>{if(ut===!1)return[];const{borderRadius:bn,colorTextLightSolid:Wn,colorBgDefault:$r,borderRadiusOuter:wi}=_t,oo=(0,Xe.TS)(_t,{tooltipMaxWidth:250,tooltipColor:Wn,tooltipBorderRadius:bn,tooltipBg:$r,tooltipRadiusOuter:wi>4?4:wi});return[dt(oo),(0,fe._y)(_t,"zoom-big-fast")]},_t=>{let{zIndexPopupBase:bn,colorBgSpotlight:Wn}=_t;return{zIndexPopup:bn+70,colorBgDefault:Wn}},{resetStyle:!1})(xt),Se=_(74902);const ze=be.i.map(xt=>`${xt}-inverse`),De=null;function ke(xt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Se.Z)(ze),(0,Se.Z)(be.i)).includes(xt):be.i.includes(xt)}function $e(xt){return De.includes(xt)}function Te(xt,ut){const $t=ke(ut),_t=w()({[`${xt}-${ut}`]:ut&&$t}),bn={},Wn={};return ut&&!$t&&(bn.background=ut,Wn["--antd-arrow-background-color"]=ut),{className:_t,overlayStyle:bn,arrowStyle:Wn}}var Oe=xt=>{const{prefixCls:ut,className:$t,placement:_t="top",title:bn,color:Wn,overlayInnerStyle:$r}=xt,{getPrefixCls:wi}=v.useContext(k.E_),oo=wi("tooltip",ut),[Mo,Ti]=Me(oo,!0),Hr=Te(oo,Wn),Ho=Hr.arrowStyle,Ss=Object.assign(Object.assign({},$r),Hr.overlayStyle),Pe=w()(Ti,oo,`${oo}-pure`,`${oo}-placement-${_t}`,$t,Hr.className);return Mo(v.createElement("div",{className:Pe,style:Ho},v.createElement("div",{className:`${oo}-arrow`}),v.createElement(b.G,Object.assign({},xt,{className:Ti,prefixCls:oo,overlayInnerStyle:Ss}),bn)))},Xt=function(xt,ut){var $t={};for(var _t in xt)Object.prototype.hasOwnProperty.call(xt,_t)&&ut.indexOf(_t)<0&&($t[_t]=xt[_t]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,_t=Object.getOwnPropertySymbols(xt);bn<_t.length;bn++)ut.indexOf(_t[bn])<0&&Object.prototype.propertyIsEnumerable.call(xt,_t[bn])&&($t[_t[bn]]=xt[_t[bn]]);return $t};const Ft=v.forwardRef((xt,ut)=>{var $t,_t;const{prefixCls:bn,openClassName:Wn,getTooltipContainer:$r,overlayClassName:wi,color:oo,overlayInnerStyle:Mo,children:Ti,afterOpenChange:Hr,afterVisibleChange:Ho,destroyTooltipOnHide:Ss,arrow:Pe=!0,title:qo,overlay:Ki,builtinPlacements:Do,arrowPointAtCenter:ai=!1,autoAdjustOverflow:$o=!0}=xt,Mn=!!Pe,[,nt]=(0,he.Z)(),{getPopupContainer:Dt,getPrefixCls:Kt,direction:mn}=v.useContext(k.E_),kn=(0,g.ln)("Tooltip"),an=v.useRef(null),tn=()=>{var Sr;(Sr=an.current)===null||Sr===void 0||Sr.forceAlign()};v.useImperativeHandle(ut,()=>({forceAlign:tn,forcePopupAlign:()=>{kn.deprecated(!1,"forcePopupAlign","forceAlign"),tn()}}));const[kt,en]=(0,B.Z)(!1,{value:($t=xt.open)!==null&&$t!==void 0?$t:xt.visible,defaultValue:(_t=xt.defaultOpen)!==null&&_t!==void 0?_t:xt.defaultVisible}),Vn=!qo&&!Ki&&qo!==0,on=Sr=>{var qr,Mi;en(Vn?!1:Sr),Vn||((qr=xt.onOpenChange)===null||qr===void 0||qr.call(xt,Sr),(Mi=xt.onVisibleChange)===null||Mi===void 0||Mi.call(xt,Sr))},Dr=v.useMemo(()=>{var Sr,qr;let Mi=ai;return typeof Pe=="object"&&(Mi=(qr=(Sr=Pe.pointAtCenter)!==null&&Sr!==void 0?Sr:Pe.arrowPointAtCenter)!==null&&qr!==void 0?qr:ai),Do||(0,L.Z)({arrowPointAtCenter:Mi,autoAdjustOverflow:$o,arrowWidth:Mn?nt.sizePopupArrow:0,borderRadius:nt.borderRadius,offset:nt.marginXXS,visibleFirst:!0})},[ai,Pe,Do,nt]),oi=v.useMemo(()=>qo===0?qo:Ki||qo||"",[Ki,qo]),Ii=v.createElement(K.BR,null,typeof oi=="function"?oi():oi),{getPopupContainer:jr,placement:eo="top",mouseEnterDelay:Uo=.1,mouseLeaveDelay:Fn=.1,overlayStyle:Qr,rootClassName:ci}=xt,ji=Xt(xt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),cr=Kt("tooltip",bn),Qn=Kt(),Vt=xt["data-popover-inject"];let Yt=kt;!("open"in xt)&&!("visible"in xt)&&Vn&&(Yt=!1);const En=(0,S.l$)(Ti)&&!(0,S.M2)(Ti)?Ti:v.createElement("span",null,Ti),er=En.props,Tr=!er.className||typeof er.className=="string"?w()(er.className,Wn||`${cr}-open`):er.className,[Nr,Zn]=Me(cr,!Vt),Ut=Te(cr,oo),$n=Ut.arrowStyle,xr=Object.assign(Object.assign({},Mo),Ut.overlayStyle),Br=w()(wi,{[`${cr}-rtl`]:mn==="rtl"},Ut.className,ci,Zn),[_o,Qt]=(0,V.Cn)("Tooltip",ji.zIndex),xn=v.createElement(b.Z,Object.assign({},ji,{zIndex:_o,showArrow:Mn,placement:eo,mouseEnterDelay:Uo,mouseLeaveDelay:Fn,prefixCls:cr,overlayClassName:Br,overlayStyle:Object.assign(Object.assign({},$n),Qr),getTooltipContainer:jr||$r||Dt,ref:an,builtinPlacements:Dr,overlay:Ii,visible:Yt,onVisibleChange:on,afterVisibleChange:Hr!=null?Hr:Ho,overlayInnerStyle:xr,arrowContent:v.createElement("span",{className:`${cr}-arrow-content`}),motion:{motionName:(0,O.m)(Qn,"zoom-big-fast",xt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ss}),Yt?(0,S.Tm)(En,{className:Tr}):En);return Nr(v.createElement(T.Z.Provider,{value:Qt},xn))});Ft._InternalPanelDoNotUseOrYouWillBeFired=Oe;var ot=Ft},93531:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return tn}});var v=_(67294),R=_(1413),w=_(87462),b=_(71002),B=_(97685),V=_(91),O=_(2788),L=_(40228),S=_(94184),g=_.n(S),T=_(8410),k=_(21770),K=_(66680);function he(kt){var en=window.innerWidth||document.documentElement.clientWidth,Vn=window.innerHeight||document.documentElement.clientHeight,on=kt.getBoundingClientRect(),Dr=on.top,oi=on.right,Ii=on.bottom,jr=on.left;return Dr>=0&&jr>=0&&oi<=en&&Ii<=Vn}function ae(kt,en,Vn){var on;return(on=Vn!=null?Vn:en)!==null&&on!==void 0?on:kt===null?"center":"bottom"}function fe(kt,en,Vn,on){var Dr=(0,v.useState)(void 0),oi=(0,B.Z)(Dr,2),Ii=oi[0],jr=oi[1];(0,T.Z)(function(){var Qn=typeof kt=="function"?kt():kt;jr(Qn||null)});var eo=(0,v.useState)(null),Uo=(0,B.Z)(eo,2),Fn=Uo[0],Qr=Uo[1],ci=(0,K.Z)(function(){if(Ii){!he(Ii)&&en&&Ii.scrollIntoView(on);var Qn=Ii.getBoundingClientRect(),Vt=Qn.left,Yt=Qn.top,En=Qn.width,er=Qn.height,Tr={left:Vt,top:Yt,width:En,height:er,radius:0};Qr(function(Nr){return JSON.stringify(Nr)!==JSON.stringify(Tr)?Tr:Nr})}else Qr(null)}),ji=function(Vt){var Yt;return(Yt=Array.isArray(Vn==null?void 0:Vn.offset)?Vn==null?void 0:Vn.offset[Vt]:Vn==null?void 0:Vn.offset)!==null&&Yt!==void 0?Yt:6};(0,T.Z)(function(){return ci(),window.addEventListener("resize",ci),function(){window.removeEventListener("resize",ci)}},[Ii,en,ci]);var cr=(0,v.useMemo)(function(){if(!Fn)return Fn;var Qn=ji(0),Vt=ji(1),Yt=(Vn==null?void 0:Vn.radius)||2;return{left:Fn.left-Qn,top:Fn.top-Vt,width:Fn.width+Qn*2,height:Fn.height+Vt*2,radius:Yt}},[Fn,Vn]);return[cr,Ii]}var _e=_(7028),be={fill:"transparent",pointerEvents:"auto"},xe=function(en){var Vn=en.prefixCls,on=en.rootClassName,Dr=en.pos,oi=en.showMask,Ii=en.style,jr=Ii===void 0?{}:Ii,eo=en.fill,Uo=eo===void 0?"rgba(0,0,0,0.5)":eo,Fn=en.open,Qr=en.animated,ci=en.zIndex,ji=(0,_e.Z)(),cr="".concat(Vn,"-mask-").concat(ji),Qn=(0,b.Z)(Qr)==="object"?Qr==null?void 0:Qr.placeholder:Qr;return v.createElement(O.Z,{open:Fn,autoLock:!0},v.createElement("div",{className:g()("".concat(Vn,"-mask"),on),style:(0,R.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:ci,pointerEvents:"none"},jr)},oi?v.createElement("svg",{style:{width:"100%",height:"100%"}},v.createElement("defs",null,v.createElement("mask",{id:cr},v.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Dr&&v.createElement("rect",{x:Dr.left,y:Dr.top,rx:Dr.radius,width:Dr.width,height:Dr.height,fill:"black",className:Qn?"".concat(Vn,"-placeholder-animated"):""}))),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Uo,mask:"url(#".concat(cr,")")}),Dr&&v.createElement(v.Fragment,null,v.createElement("rect",(0,w.Z)({},be,{x:"0",y:"0",width:"100%",height:Dr.top})),v.createElement("rect",(0,w.Z)({},be,{x:"0",y:"0",width:Dr.left,height:"100%"})),v.createElement("rect",(0,w.Z)({},be,{x:"0",y:Dr.top+Dr.height,width:"100%",height:"calc(100vh - ".concat(Dr.top+Dr.height,"px)")})),v.createElement("rect",(0,w.Z)({},be,{x:Dr.left+Dr.width,y:"0",width:"calc(100vw - ".concat(Dr.left+Dr.width,"px)"),height:"100%"})))):null))},Xe=xe,We={adjustX:1,adjustY:1},dt=[0,0],Me={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Se(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,en={};return Object.keys(Me).forEach(function(Vn){en[Vn]=(0,R.Z)((0,R.Z)({},Me[Vn]),{},{autoArrow:kt,targetOffset:dt})}),en}var ze=Se(),De=_(74902);function ke(kt){var en=kt.prefixCls,Vn=kt.current,on=kt.total,Dr=kt.title,oi=kt.description,Ii=kt.onClose,jr=kt.onPrev,eo=kt.onNext,Uo=kt.onFinish,Fn=kt.className,Qr=kt.closeIcon,ci=Qr!==!1&&Qr!==null,ji=Qr!==void 0&&Qr!==!0?Qr:v.createElement("span",{className:"".concat(en,"-close-x")},"\xD7");return v.createElement("div",{className:g()("".concat(en,"-content"),Fn)},v.createElement("div",{className:"".concat(en,"-inner")},ci&&v.createElement("button",{type:"button",onClick:Ii,"aria-label":"Close",className:"".concat(en,"-close")},ji),v.createElement("div",{className:"".concat(en,"-header")},v.createElement("div",{className:"".concat(en,"-title")},Dr)),v.createElement("div",{className:"".concat(en,"-description")},oi),v.createElement("div",{className:"".concat(en,"-footer")},v.createElement("div",{className:"".concat(en,"-sliders")},on>1?(0,De.Z)(Array.from({length:on}).keys()).map(function(cr,Qn){return v.createElement("span",{key:cr,className:Qn===Vn?"active":""})}):null),v.createElement("div",{className:"".concat(en,"-buttons")},Vn!==0?v.createElement("button",{className:"".concat(en,"-prev-btn"),onClick:jr},"Prev"):null,Vn===on-1?v.createElement("button",{className:"".concat(en,"-finish-btn"),onClick:Uo},"Finish"):v.createElement("button",{className:"".concat(en,"-next-btn"),onClick:eo},"Next")))))}var $e=function(en){var Vn=en.current,on=en.renderPanel;return v.createElement(v.Fragment,null,typeof on=="function"?on(en,Vn):v.createElement(ke,en))},Te=$e,tt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Oe={left:"50%",top:"50%",width:1,height:1},Xt=function(en){var Vn=en.prefixCls,on=Vn===void 0?"rc-tour":Vn,Dr=en.steps,oi=Dr===void 0?[]:Dr,Ii=en.defaultCurrent,jr=en.current,eo=en.onChange,Uo=en.onClose,Fn=en.onFinish,Qr=en.open,ci=en.mask,ji=ci===void 0?!0:ci,cr=en.arrow,Qn=cr===void 0?!0:cr,Vt=en.rootClassName,Yt=en.placement,En=en.renderPanel,er=en.gap,Tr=en.animated,Nr=en.scrollIntoViewOptions,Zn=Nr===void 0?!0:Nr,Ut=en.zIndex,$n=Ut===void 0?1001:Ut,xr=en.closeIcon,Br=(0,V.Z)(en,tt),_o=v.useRef(),Qt=(0,k.Z)(0,{value:jr,defaultValue:Ii}),xn=(0,B.Z)(Qt,2),Sr=xn[0],qr=xn[1],Mi=(0,k.Z)(void 0,{value:Qr,postState:function(Zo){return Sr<0||Sr>=oi.length?!1:Zo!=null?Zo:!0}}),zi=(0,B.Z)(Mi,2),Yi=zi[0],Si=zi[1],ni=v.useRef(Yi);(0,T.Z)(function(){Yi&&!ni.current&&qr(0),ni.current=Yi},[Yi]);var qi=oi[Sr]||{},Vr=qi.target,ii=qi.placement,nr=qi.style,Mr=qi.arrow,rr=qi.className,to=qi.mask,ts=qi.scrollIntoViewOptions,Wr=qi.closeIcon,no=Yi&&(to!=null?to:ji),Vi=Wr!=null?Wr:xr,Pn=ts!=null?ts:Zn,mi=fe(Vr,Qr,er,Pn),ya=(0,B.Z)(mi,2),Zs=ya[0],qs=ya[1],al=ae(qs,Yt,ii),co=qs?typeof Mr=="undefined"?Qn:Mr:!1,tl=(0,b.Z)(co)==="object"?co.pointAtCenter:!1;(0,T.Z)(function(){var ui;(ui=_o.current)===null||ui===void 0||ui.forceAlign()},[tl,Sr]);var fl=function(Zo){qr(Zo),eo==null||eo(Zo)};if(qs===void 0)return null;var Ai=function(){Si(!1),Uo==null||Uo(Sr)},Xi=function(){return v.createElement(Te,(0,w.Z)({arrow:co,key:"content",prefixCls:on,total:oi.length,renderPanel:En,onPrev:function(){fl(Sr-1)},onNext:function(){fl(Sr+1)},onClose:Ai,current:Sr,onFinish:function(){Ai(),Fn==null||Fn()},closeIcon:Vi},oi[Sr]))},Fi=typeof no=="boolean"?no:!!no,No=typeof no=="boolean"?void 0:no,yr=function(Zo){return Zo||qs||document.body};return v.createElement(v.Fragment,null,v.createElement(Xe,{zIndex:$n,prefixCls:on,pos:Zs,showMask:Fi,style:No==null?void 0:No.style,fill:No==null?void 0:No.color,open:Yi,animated:Tr,rootClassName:Vt}),v.createElement(L.Z,(0,w.Z)({builtinPlacements:Se(tl)},Br,{ref:_o,popupStyle:nr,popupPlacement:al,popupVisible:Yi,popupClassName:g()(Vt,rr),prefixCls:on,popup:Xi,forceRender:!1,destroyPopupOnHide:!0,zIndex:$n,getTriggerDOMNode:yr,arrow:!!co}),v.createElement(O.Z,{open:Yi,autoLock:!0},v.createElement("div",{className:g()(Vt,"".concat(on,"-target-placeholder")),style:(0,R.Z)((0,R.Z)({},Zs||Oe),{},{position:"fixed",pointerEvents:"none"})}))))},Ft=Xt,ot=Ft,xt=_(87263),ut=_(80636),$t=_(43945),_t=_(53124),bn=_(25976),Wn=_(62208),$r=_(15867),wi=_(10110),oo=_(88526),Mo=_(69760);function Ti(kt){return kt!=null}var Ho=kt=>{let{stepProps:en,current:Vn,type:on,indicatorsRender:Dr,closeIcon:oi}=kt;var Ii,jr;const{prefixCls:eo,total:Uo=1,title:Fn,onClose:Qr,onPrev:ci,onNext:ji,onFinish:cr,cover:Qn,description:Vt,nextButtonProps:Yt,prevButtonProps:En,type:er,closeIcon:Tr}=en,Nr=er!=null?er:on,Zn=Tr!=null?Tr:oi,Ut=Zn!==!1&&Zn!==null,[$n,xr]=(0,Mo.Z)(Ut,Zn,ni=>v.createElement("span",{onClick:Qr,"aria-label":"Close",className:`${eo}-close`},ni),v.createElement(Wn.Z,{className:`${eo}-close-icon`}),!0),Br=Vn===Uo-1,_o=()=>{var ni;ci==null||ci(),(ni=En==null?void 0:En.onClick)===null||ni===void 0||ni.call(En)},Qt=()=>{var ni;Br?cr==null||cr():ji==null||ji(),(ni=Yt==null?void 0:Yt.onClick)===null||ni===void 0||ni.call(Yt)},xn=Ti(Fn)?v.createElement("div",{className:`${eo}-header`},v.createElement("div",{className:`${eo}-title`},Fn)):null,Sr=Ti(Vt)?v.createElement("div",{className:`${eo}-description`},Vt):null,qr=Ti(Qn)?v.createElement("div",{className:`${eo}-cover`},Qn):null;let Mi;Dr?Mi=Dr(Vn,Uo):Mi=(0,De.Z)(Array.from({length:Uo}).keys()).map((ni,qi)=>v.createElement("span",{key:ni,className:g()(qi===Vn&&`${eo}-indicator-active`,`${eo}-indicator`)}));const zi=Nr==="primary"?"default":"primary",Yi={type:"default",ghost:Nr==="primary"},[Si]=(0,wi.Z)("Tour",oo.Z.Tour);return v.createElement("div",{className:`${eo}-content`},v.createElement("div",{className:`${eo}-inner`},$n&&xr,qr,xn,Sr,v.createElement("div",{className:`${eo}-footer`},Uo>1&&v.createElement("div",{className:`${eo}-indicators`},Mi),v.createElement("div",{className:`${eo}-buttons`},Vn!==0?v.createElement($r.ZP,Object.assign({},Yi,En,{onClick:_o,size:"small",className:g()(`${eo}-prev-btn`,En==null?void 0:En.className)}),(Ii=En==null?void 0:En.children)!==null&&Ii!==void 0?Ii:Si==null?void 0:Si.Previous):null,v.createElement($r.ZP,Object.assign({type:zi},Yt,{onClick:Qt,size:"small",className:g()(`${eo}-next-btn`,Yt==null?void 0:Yt.className)}),(jr=Yt==null?void 0:Yt.children)!==null&&jr!==void 0?jr:Br?Si==null?void 0:Si.Finish:Si==null?void 0:Si.Next)))))},Ss=_(60590),Pe=_(10274),qo=_(14747),Ki=_(77786),Do=_(67968),ai=_(45503);const $o=kt=>{const{componentCls:en,lineHeight:Vn,padding:on,paddingXS:Dr,borderRadius:oi,borderRadiusXS:Ii,colorPrimary:jr,colorText:eo,colorFill:Uo,indicatorHeight:Fn,indicatorWidth:Qr,boxShadowTertiary:ci,tourZIndexPopup:ji,fontSize:cr,colorBgElevated:Qn,fontWeightStrong:Vt,marginXS:Yt,colorTextLightSolid:En,tourBorderRadius:er,colorWhite:Tr,colorBgTextHover:Nr,tourCloseSize:Zn,motionDurationSlow:Ut,antCls:$n}=kt;return[{[en]:Object.assign(Object.assign({},(0,qo.Wf)(kt)),{color:eo,position:"absolute",zIndex:ji,display:"block",visibility:"visible",fontSize:cr,lineHeight:Vn,width:520,"--antd-arrow-background-color":Qn,"&-pure":{maxWidth:"100%",position:"relative"},[`&${en}-hidden`]:{display:"none"},[`${en}-content`]:{position:"relative"},[`${en}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:er,boxShadow:ci,position:"relative",backgroundColor:Qn,border:"none",backgroundClip:"padding-box",[`${en}-close`]:{position:"absolute",top:on,insetInlineEnd:on,color:kt.colorIcon,outline:"none",width:Zn,height:Zn,borderRadius:kt.borderRadiusSM,transition:`background-color ${kt.motionDurationMid}, color ${kt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:kt.colorIconHover,backgroundColor:kt.wireframe?"transparent":kt.colorFillContent}},[`${en}-cover`]:{textAlign:"center",padding:`${on+Zn+Dr}px ${on}px 0`,img:{width:"100%"}},[`${en}-header`]:{padding:`${on}px ${on}px ${Dr}px`,[`${en}-title`]:{lineHeight:Vn,fontSize:cr,fontWeight:Vt}},[`${en}-description`]:{padding:`0 ${on}px`,lineHeight:Vn,wordWrap:"break-word"},[`${en}-footer`]:{padding:`${Dr}px ${on}px ${on}px`,textAlign:"end",borderRadius:`0 0 ${Ii}px ${Ii}px`,display:"flex",[`${en}-indicators`]:{display:"inline-block",[`${en}-indicator`]:{width:Qr,height:Fn,display:"inline-block",borderRadius:"50%",background:Uo,"&:not(:last-child)":{marginInlineEnd:Fn},"&-active":{background:jr}}},[`${en}-buttons`]:{marginInlineStart:"auto",[`${$n}-btn`]:{marginInlineStart:Yt}}}},[`${en}-primary, &${en}-primary`]:{"--antd-arrow-background-color":jr,[`${en}-inner`]:{color:En,textAlign:"start",textDecoration:"none",backgroundColor:jr,borderRadius:oi,boxShadow:ci,[`${en}-close`]:{color:En},[`${en}-indicators`]:{[`${en}-indicator`]:{background:new Pe.C(En).setAlpha(.15).toRgbString(),"&-active":{background:En}}},[`${en}-prev-btn`]:{color:En,borderColor:new Pe.C(En).setAlpha(.15).toRgbString(),backgroundColor:jr,"&:hover":{backgroundColor:new Pe.C(En).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${en}-next-btn`]:{color:jr,borderColor:"transparent",background:Tr,"&:hover":{background:new Pe.C(Nr).onBackground(Tr).toRgbString()}}}}}),[`${en}-mask`]:{[`${en}-placeholder-animated`]:{transition:`all ${Ut}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${en}-inner`]:{borderRadius:Math.min(er,Ki.qN)}}},(0,Ki.ZP)(kt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:er,limitVerticalRadius:!0})]};var Mn=(0,Do.Z)("Tour",kt=>{const{borderRadiusLG:en,fontSize:Vn,lineHeight:on}=kt,Dr=(0,ai.TS)(kt,{tourZIndexPopup:kt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:en,tourCloseSize:Vn*on});return[$o(Dr)]}),nt=_(8745),Dt=function(kt,en){var Vn={};for(var on in kt)Object.prototype.hasOwnProperty.call(kt,on)&&en.indexOf(on)<0&&(Vn[on]=kt[on]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dr=0,on=Object.getOwnPropertySymbols(kt);Dr{const{prefixCls:en,current:Vn=0,total:on=6,className:Dr,style:oi,type:Ii}=kt,jr=Dt(kt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:eo}=v.useContext(_t.E_),Uo=eo("tour",en),[Fn,Qr]=Mn(Uo);return Fn(v.createElement(Ss.t5,{prefixCls:Uo,hashId:Qr,className:g()(Dr,`${Uo}-pure`,Ii&&`${Uo}-${Ii}`),style:oi},v.createElement(Ho,{stepProps:Object.assign(Object.assign({},jr),{prefixCls:Uo,total:on}),current:Vn,type:Ii})))};var mn=(0,nt.i)(Kt),kn=function(kt,en){var Vn={};for(var on in kt)Object.prototype.hasOwnProperty.call(kt,on)&&en.indexOf(on)<0&&(Vn[on]=kt[on]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dr=0,on=Object.getOwnPropertySymbols(kt);Dr{const{prefixCls:en,type:Vn,rootClassName:on,indicatorsRender:Dr,steps:oi}=kt,Ii=kn(kt,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:jr,direction:eo}=(0,v.useContext)(_t.E_),Uo=jr("tour",en),[Fn,Qr]=Mn(Uo),[,ci]=(0,bn.Z)(),ji=(0,v.useMemo)(()=>oi==null?void 0:oi.map(er=>{var Tr;return Object.assign(Object.assign({},er),{className:g()(er.className,{[`${Uo}-primary`]:((Tr=er.type)!==null&&Tr!==void 0?Tr:Vn)==="primary"})})}),[oi,Vn]),cr=(0,ut.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:ci.marginXXS,arrowWidth:ci.sizePopupArrow,borderRadius:ci.borderRadius}),Qn=g()({[`${Uo}-rtl`]:eo==="rtl"},Qr,on),Vt=(er,Tr)=>v.createElement(Ho,{type:Vn,stepProps:er,current:Tr,indicatorsRender:Dr}),[Yt,En]=(0,xt.Cn)("Tour",Ii.zIndex);return Fn(v.createElement($t.Z.Provider,{value:En},v.createElement(ot,Object.assign({},Ii,{zIndex:Yt,rootClassName:Qn,prefixCls:Uo,animated:!0,renderPanel:Vt,builtinPlacements:cr,steps:ji}))))};an._InternalPanelDoNotUseOrYouWillBeFired=mn;var tn=an},51945:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return _o}});var v=_(67294),R=_(35918),w=_(87462),b={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"},B=b,V=_(93771),O=function(xn,Sr){return v.createElement(V.Z,(0,w.Z)({},xn,{ref:Sr,icon:B}))},L=v.forwardRef(O),S={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"},g=S,T=function(xn,Sr){return v.createElement(V.Z,(0,w.Z)({},xn,{ref:Sr,icon:g}))},k=v.forwardRef(T),K=_(94184),he=_.n(K),ae=_(20640),fe=_.n(ae),_e=_(48555),be=_(50344),xe=_(8410),Xe=_(21770),We=_(98423),dt=_(42550),Me=_(79370),Se=_(15105),ze=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{const Sr=qi=>{const{keyCode:Vr}=qi;Vr===Se.Z.ENTER&&qi.preventDefault()},qr=qi=>{const{keyCode:Vr}=qi,{onClick:ii}=Qt;Vr===Se.Z.ENTER&&ii&&ii()},{style:Mi,noStyle:zi,disabled:Yi}=Qt,Si=ze(Qt,["style","noStyle","disabled"]);let ni={};return zi||(ni=Object.assign({},De)),Yi&&(ni.pointerEvents="none"),ni=Object.assign(Object.assign({},ni),Mi),v.createElement("div",Object.assign({role:"button",tabIndex:0,ref:xn},Si,{onKeyDown:Sr,onKeyUp:qr,style:ni}))}),Te=_(53124),tt=_(10110),Oe=_(61781),Xt={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"},Ft=Xt,ot=function(xn,Sr){return v.createElement(V.Z,(0,w.Z)({},xn,{ref:Sr,icon:Ft}))},xt=v.forwardRef(ot),ut=_(96159),$t=_(22913),_t=_(49867),bn=_(67968),Wn=_(16397);const $r=(Qt,xn,Sr,qr)=>{const{titleMarginBottom:Mi,fontWeightStrong:zi}=qr;return{marginBottom:Mi,color:Sr,fontWeight:zi,fontSize:Qt,lineHeight:xn}},wi=Qt=>{const xn=[1,2,3,4,5],Sr={};return xn.forEach(qr=>{Sr[` + h${qr}&, + div&-h${qr}, + div&-h${qr} > textarea, + h${qr} + `]=$r(Qt[`fontSizeHeading${qr}`],Qt[`lineHeightHeading${qr}`],Qt.colorTextHeading,Qt)}),Sr},oo=Qt=>{const{componentCls:xn}=Qt;return{"a&, a":Object.assign(Object.assign({},(0,_t.N)(Qt)),{textDecoration:Qt.linkDecoration,"&:active, &:hover":{textDecoration:Qt.linkHoverDecoration},[`&[disabled], &${xn}-disabled`]:{color:Qt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:Qt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Mo=Qt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:Qt.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:Qt.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Wn.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:Qt.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Ti=Qt=>{const{componentCls:xn,paddingSM:Sr}=Qt,qr=Sr;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-Qt.paddingSM,marginTop:-qr,marginBottom:`calc(1em - ${qr}px)`},[`${xn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:Qt.marginXS+2,insetBlockEnd:Qt.marginXS,color:Qt.colorTextDescription,fontWeight:"normal",fontSize:Qt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Hr=Qt=>({"&-copy-success":{[` &, &:hover, - &:focus`]:{color:Bt.colorSuccess}}}),Bo=()=>({[` + &:focus`]:{color:Qt.colorSuccess}}}),Ho=()=>({[` a&-ellipsis, span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),hs=Bt=>{const{componentCls:pn,titleMarginTop:br}=Bt;return{[pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Bt.colorText,wordBreak:"break-word",lineHeight:Bt.lineHeight,[`&${pn}-secondary`]:{color:Bt.colorTextDescription},[`&${pn}-success`]:{color:Bt.colorSuccess},[`&${pn}-warning`]:{color:Bt.colorWarning},[`&${pn}-danger`]:{color:Bt.colorError,"a&:active, a&:focus":{color:Bt.colorErrorActive},"a&:hover":{color:Bt.colorErrorHover}},[`&${pn}-disabled`]:{color:Bt.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Ss=Qt=>{const{componentCls:xn,titleMarginTop:Sr}=Qt;return{[xn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Qt.colorText,wordBreak:"break-word",lineHeight:Qt.lineHeight,[`&${xn}-secondary`]:{color:Qt.colorTextDescription},[`&${xn}-success`]:{color:Qt.colorSuccess},[`&${xn}-warning`]:{color:Qt.colorWarning},[`&${xn}-danger`]:{color:Qt.colorError,"a&:active, a&:focus":{color:Qt.colorErrorActive},"a&:hover":{color:Qt.colorErrorHover}},[`&${xn}-disabled`]:{color:Qt.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` div&, p - `]:{marginBottom:"1em"}},ii(Bt)),{[` - & + h1${pn}, - & + h2${pn}, - & + h3${pn}, - & + h4${pn}, - & + h5${pn} - `]:{marginTop:br},[` + `]:{marginBottom:"1em"}},wi(Qt)),{[` + & + h1${xn}, + & + h2${xn}, + & + h3${xn}, + & + h4${xn}, + & + h5${xn} + `]:{marginTop:Sr},[` div, ul, li, @@ -8040,25 +8148,28 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter + h3, + h4, + h5 - `]:{marginTop:br}}}),no(Bt)),gi(Bt)),{[` - ${pn}-expand, - ${pn}-edit, - ${pn}-copy - `]:Object.assign(Object.assign({},(0,vt.N)(Bt)),{marginInlineStart:Bt.marginXXS})}),To(Bt)),_r(Bt)),Bo()),{"&-rtl":{direction:"rtl"}})}};var ve=(0,yn.Z)("Typography",Bt=>[hs(Bt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),ho=Bt=>{const{prefixCls:pn,"aria-label":br,className:Jr,style:vi,direction:Di,maxLength:co,autoSize:Qr=!0,value:oi,onSave:Zi,onCancel:Ar,onEnd:tn,component:Gn,enterIcon:Ei=y.createElement(bt,null)}=Bt,In=y.useRef(null),Li=y.useRef(!1),nr=y.useRef(),[wi,Mi]=y.useState(oi);y.useEffect(()=>{Mi(oi)},[oi]),y.useEffect(()=>{if(In.current&&In.current.resizableTextArea){const{textArea:Tr}=In.current.resizableTextArea;Tr.focus();const{length:pr}=Tr.value;Tr.setSelectionRange(pr,pr)}},[]);const Fr=Tr=>{let{target:pr}=Tr;Mi(pr.value.replace(/[\n\r]/g,""))},qn=()=>{Li.current=!0},ms=()=>{Li.current=!1},ya=Tr=>{let{keyCode:pr}=Tr;Li.current||(nr.current=pr)},ha=()=>{Zi(wi.trim())},Ws=Tr=>{let{keyCode:pr,ctrlKey:ci,altKey:Eo,metaKey:mo,shiftKey:Ts}=Tr;nr.current===pr&&!Li.current&&!ci&&!Eo&&!mo&&!Ts&&(pr===me.Z.ENTER?(ha(),tn==null||tn()):pr===me.Z.ESC&&Ar())},Ua=()=>{ha()},Ao=Gn?`${pn}-${Gn}`:"",[dl,$r]=ve(pn),er=te()(pn,`${pn}-edit-content`,{[`${pn}-rtl`]:Di==="rtl"},Jr,Ao,$r);return dl(y.createElement("div",{className:er,style:vi},y.createElement($t.Z,{ref:In,maxLength:co,value:wi,onChange:Fr,onKeyDown:ya,onKeyUp:Ws,onCompositionStart:qn,onCompositionEnd:ms,onBlur:Ua,"aria-label":br,rows:1,autoSize:Qr}),Ei!==null?(0,ft.Tm)(Ei,{className:`${pn}-edit-content-confirm`}):null))},go=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const{prefixCls:br,component:Jr="article",className:vi,rootClassName:Di,setContentRef:co,children:Qr,direction:oi,style:Zi}=Bt,Ar=go(Bt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:tn,direction:Gn,typography:Ei}=y.useContext(ge.E_),In=oi!=null?oi:Gn;let Li=pn;co&&(Li=(0,Be.sQ)(pn,co));const nr=tn("typography",br),[wi,Mi]=ve(nr),Fr=te()(nr,Ei==null?void 0:Ei.className,{[`${nr}-rtl`]:In==="rtl"},vi,Di,Mi),qn=Object.assign(Object.assign({},Ei==null?void 0:Ei.style),Zi);return wi(y.createElement(Jr,Object.assign({className:Fr,style:qn,ref:Li},Ar),Qr))});function dn(Bt,pn){return y.useMemo(()=>{const br=!!Bt;return[br,Object.assign(Object.assign({},pn),br&&typeof Bt=="object"?Bt:null)]},[Bt])}var yt=(Bt,pn)=>{const br=y.useRef(!1);y.useEffect(()=>{br.current?Bt():br.current=!0},pn)};function Ct(Bt){const pn=typeof Bt;return pn==="string"||pn==="number"}function Wt(Bt){let pn=0;return Bt.forEach(br=>{Ct(br)?pn+=String(br).length:pn+=1}),pn}function sn(Bt,pn){let br=0;const Jr=[];for(let vi=0;vipn){const Zi=pn-br;return Jr.push(String(Di).slice(0,Zi)),Jr}Jr.push(Di),br=oi}return Bt}const Mt=0,Tt=1,xt=2,Ht=3,Vn=4;var fr=Bt=>{let{enabledMeasure:pn,children:br,text:Jr,width:vi,fontSize:Di,rows:co,onEllipsis:Qr}=Bt;const[[oi,Zi,Ar],tn]=y.useState([0,0,0]),[Gn,Ei]=y.useState(0),[In,Li]=y.useState(Mt),[nr,wi]=y.useState(0),Mi=y.useRef(null),Fr=y.useRef(null),qn=y.useMemo(()=>(0,de.Z)(Jr),[Jr]),ms=y.useMemo(()=>Wt(qn),[qn]),ya=y.useMemo(()=>!pn||In!==Ht?Gn&&In!==Vn&&pn?br(sn(qn,Gn),Gn{pn&&vi&&Di&&ms&&(Li(Tt),tn([0,Math.ceil(ms/2),ms]))},[pn,vi,Di,Jr,ms,co]),(0,fe.Z)(()=>{var Ao;In===Tt&&wi(((Ao=Mi.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0)},[In]),(0,fe.Z)(()=>{var Ao,dl;if(nr){if(In===Tt){const $r=((Ao=Fr.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0,er=co*nr;$r<=er?(Li(Vn),Qr(!1)):Li(xt)}else if(In===xt)if(oi!==Ar){const $r=((dl=Fr.current)===null||dl===void 0?void 0:dl.offsetHeight)||0,er=co*nr;let Tr=oi,pr=Ar;oi===Ar-1?pr=oi:$r<=er?Tr=Zi:pr=Zi;const ci=Math.ceil((Tr+pr)/2);tn([Tr,ci,pr])}else Li(Ht),Ei(Zi),Qr(!0)}},[In,oi,Ar,co,nr]);const ha={width:vi,whiteSpace:"normal",margin:0,padding:0},Ws=(Ao,dl,$r)=>y.createElement("span",{"aria-hidden":!0,ref:dl,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(Di/2)*2},$r)},Ao),Ua=(Ao,dl)=>{const $r=sn(qn,Ao);return Ws(br($r,!0),dl,ha)};return y.createElement(y.Fragment,null,ya,pn&&In!==Ht&&In!==Vn&&y.createElement(y.Fragment,null,Ws("lg",Mi,{wordBreak:"keep-all",whiteSpace:"nowrap"}),In===Tt?Ws(br(qn,!1),Fr,ha):Ua(Zi,Fr)))},ri=Bt=>{let{enabledEllipsis:pn,isEllipsis:br,children:Jr,tooltipProps:vi}=Bt;return!(vi!=null&&vi.title)||!pn?Jr:y.createElement(we.Z,Object.assign({open:br?void 0:!1},vi),Jr)},si=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var br,Jr,vi;const{prefixCls:Di,className:co,style:Qr,type:oi,disabled:Zi,children:Ar,ellipsis:tn,editable:Gn,copyable:Ei,component:In,title:Li}=Bt,nr=si(Bt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:wi,direction:Mi}=y.useContext(ge.E_),[Fr]=(0,je.Z)("Text"),qn=y.useRef(null),ms=y.useRef(null),ya=wi("typography",Di),ha=(0,Ie.Z)(nr,["mark","code","delete","underline","strong","keyboard","italic"]),[Ws,Ua]=dn(Gn),[Ao,dl]=(0,ke.Z)(!1,{value:Ua.editing}),{triggerType:$r=["icon"]}=Ua,er=vo=>{var eo;vo&&((eo=Ua.onStart)===null||eo===void 0||eo.call(Ua)),dl(vo)};yt(()=>{var vo;Ao||(vo=ms.current)===null||vo===void 0||vo.focus()},[Ao]);const Tr=vo=>{vo==null||vo.preventDefault(),er(!0)},pr=vo=>{var eo;(eo=Ua.onChange)===null||eo===void 0||eo.call(Ua,vo),er(!1)},ci=()=>{var vo;(vo=Ua.onCancel)===null||vo===void 0||vo.call(Ua),er(!1)},[Eo,mo]=dn(Ei),[Ts,xs]=y.useState(!1),Sr=y.useRef(null),ui={};mo.format&&(ui.format=mo.format);const Xt=()=>{Sr.current&&clearTimeout(Sr.current)},gn=vo=>{var eo;vo==null||vo.preventDefault(),vo==null||vo.stopPropagation(),ie()(mo.text||String(Ar)||"",ui),xs(!0),Xt(),Sr.current=setTimeout(()=>{xs(!1)},3e3),(eo=mo.onCopy)===null||eo===void 0||eo.call(mo,vo)};y.useEffect(()=>Xt,[]);const[En,tt]=y.useState(!1),[at,gt]=y.useState(!1),[Ne,lt]=y.useState(!1),[St,ln]=y.useState(!1),[jn,Cr]=y.useState(!1),[ki,Vi]=y.useState(!0),[Ki,fs]=dn(tn,{expandable:!1}),Ns=Ki&&!Ne,{rows:Bs=1}=fs,_a=y.useMemo(()=>!Ns||fs.suffix!==void 0||fs.onEllipsis||fs.expandable||Ws||Eo,[Ns,fs,Ws,Eo]);(0,fe.Z)(()=>{Ki&&!_a&&(tt((0,be.G)("webkitLineClamp")),gt((0,be.G)("textOverflow")))},[_a,Ki]);const oo=y.useMemo(()=>_a?!1:Bs===1?at:En,[_a,at,En]),Ds=Ns&&(oo?jn:St),oa=Ns&&Bs===1&&oo,va=Ns&&Bs>1&&oo,Bl=vo=>{var eo;lt(!0),(eo=fs.onExpand)===null||eo===void 0||eo.call(fs,vo)},[Fa,ml]=y.useState(0),[la,Nl]=y.useState(0),vs=(vo,eo)=>{let{offsetWidth:ds}=vo;var Wn;ml(ds),Nl(parseInt((Wn=window.getComputedStyle)===null||Wn===void 0?void 0:Wn.call(window,eo).fontSize,10)||0)},Hi=vo=>{var eo;ln(vo),St!==vo&&((eo=fs.onEllipsis)===null||eo===void 0||eo.call(fs,vo))};y.useEffect(()=>{const vo=qn.current;if(Ki&&oo&&vo){const eo=va?vo.offsetHeight{const vo=qn.current;if(typeof IntersectionObserver=="undefined"||!vo||!oo||!Ns)return;const eo=new IntersectionObserver(()=>{Vi(!!vo.offsetParent)});return eo.observe(vo),()=>{eo.disconnect()}},[oo,Ns]);let to={};fs.tooltip===!0?to={title:(br=Ua.text)!==null&&br!==void 0?br:Ar}:y.isValidElement(fs.tooltip)?to={title:fs.tooltip}:typeof fs.tooltip=="object"?to=Object.assign({title:(Jr=Ua.text)!==null&&Jr!==void 0?Jr:Ar},fs.tooltip):to={title:fs.tooltip};const sa=y.useMemo(()=>{const vo=eo=>["string","number"].includes(typeof eo);if(!(!Ki||oo)){if(vo(Ua.text))return Ua.text;if(vo(Ar))return Ar;if(vo(Li))return Li;if(vo(to.title))return to.title}},[Ki,oo,Li,to.title,Ds]);if(Ao)return y.createElement(ho,{value:(vi=Ua.text)!==null&&vi!==void 0?vi:typeof Ar=="string"?Ar:"",onSave:pr,onCancel:ci,onEnd:Ua.onEnd,prefixCls:ya,className:co,style:Qr,direction:Mi,component:In,maxLength:Ua.maxLength,autoSize:Ua.autoSize,enterIcon:Ua.enterIcon});const Cs=()=>{const{expandable:vo,symbol:eo}=fs;if(!vo)return null;let ds;return eo?ds=eo:ds=Fr==null?void 0:Fr.expand,y.createElement("a",{key:"expand",className:`${ya}-expand`,onClick:Bl,"aria-label":Fr==null?void 0:Fr.expand},ds)},Ka=()=>{if(!Ws)return;const{icon:vo,tooltip:eo}=Ua,ds=(0,de.Z)(eo)[0]||(Fr==null?void 0:Fr.edit),Wn=typeof ds=="string"?ds:"";return $r.includes("icon")?y.createElement(we.Z,{key:"edit",title:eo===!1?"":ds},y.createElement(De,{ref:ms,className:`${ya}-edit`,onClick:Tr,"aria-label":Wn},vo||y.createElement(P,{role:"button"}))):null},Wu=()=>{if(!Eo)return;const{tooltips:vo,icon:eo}=mo,ds=_n(vo),Wn=_n(eo),yr=Ts?Qo(ds[1],Fr==null?void 0:Fr.copied):Qo(ds[0],Fr==null?void 0:Fr.copy),ai=Ts?Fr==null?void 0:Fr.copied:Fr==null?void 0:Fr.copy,hi=typeof yr=="string"?yr:ai;return y.createElement(we.Z,{key:"copy",title:yr},y.createElement(De,{className:te()(`${ya}-copy`,Ts&&`${ya}-copy-success`),onClick:gn,"aria-label":hi},Ts?Qo(Wn[1],y.createElement(A.Z,null),!0):Qo(Wn[0],y.createElement(I,null),!0)))},rc=vo=>[vo&&Cs(),Ka(),Wu()],Pc=vo=>[vo&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Vr),fs.suffix,rc(vo)];return y.createElement(he.Z,{onResize:vs,disabled:!Ns||oo},vo=>y.createElement(ri,{tooltipProps:to,enabledEllipsis:Ns,isEllipsis:Ds},y.createElement(No,Object.assign({className:te()({[`${ya}-${oi}`]:oi,[`${ya}-disabled`]:Zi,[`${ya}-ellipsis`]:Ki,[`${ya}-single-line`]:Ns&&Bs===1,[`${ya}-ellipsis-single-line`]:oa,[`${ya}-ellipsis-multiple-line`]:va},co),prefixCls:Di,style:Object.assign(Object.assign({},Qr),{WebkitLineClamp:va?Bs:void 0}),component:In,ref:(0,Be.sQ)(vo,qn,pn),direction:Mi,onClick:$r.includes("text")?Tr:void 0,"aria-label":sa==null?void 0:sa.toString(),title:Li},ha),y.createElement(fr,{enabledMeasure:Ns&&!oo,text:Ar,rows:Bs,width:Fa,fontSize:la,onEllipsis:Hi},(eo,ds)=>{let Wn=eo;return eo.length&&ds&&sa&&(Wn=y.createElement("span",{key:"show-content","aria-hidden":!0},Wn)),uo(Bt,y.createElement(y.Fragment,null,Wn,Pc(ds)))}))))}),xo=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var{ellipsis:br,rel:Jr}=Bt,vi=xo(Bt,["ellipsis","rel"]);const Di=Object.assign(Object.assign({},vi),{rel:Jr===void 0&&vi.target==="_blank"?"noopener noreferrer":Jr});return delete Di.navigate,y.createElement(Ui,Object.assign({},Di,{ref:pn,ellipsis:!!br,component:"a"}))}),Or=y.forwardRef((Bt,pn)=>y.createElement(Ui,Object.assign({ref:pn},Bt,{component:"div"}))),mi=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var{ellipsis:br}=Bt,Jr=mi(Bt,["ellipsis"]);const vi=y.useMemo(()=>br&&typeof br=="object"?(0,Ie.Z)(br,["expandable","rows"]):br,[br]);return y.createElement(Ui,Object.assign({ref:pn},Jr,{ellipsis:vi,component:"span"}))};var ti=y.forwardRef(Er),di=function(Bt,pn){var br={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(br[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const{level:br=1}=Bt,Jr=di(Bt,["level"]);let vi;return rn.includes(br)?vi=`h${br}`:vi="h1",y.createElement(Ui,Object.assign({ref:pn},Jr,{component:vi}))});const ao=No;ao.Text=ti,ao.Link=zn,ao.Title=Xr,ao.Paragraph=Or;var as=ao},54397:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ds}});var y=m(67294),A=m(74902),b=m(73935),z=m(94184),k=m.n(z),N=m(87462),w=m(15671),I=m(43144),C=m(60136),f=m(29388),S=m(4942),P=m(91),W=m(74165),te=m(71002),q=m(15861),ie=m(64217);function he(Wn,yr){var ai="cannot ".concat(Wn.method," ").concat(Wn.action," ").concat(yr.status,"'"),hi=new Error(ai);return hi.status=yr.status,hi.method=Wn.method,hi.url=Wn.action,hi}function de(Wn){var yr=Wn.responseText||Wn.response;if(!yr)return yr;try{return JSON.parse(yr)}catch(ai){return yr}}function fe(Wn){var yr=new XMLHttpRequest;Wn.onProgress&&yr.upload&&(yr.upload.onprogress=function(so){so.total>0&&(so.percent=so.loaded/so.total*100),Wn.onProgress(so)});var ai=new FormData;Wn.data&&Object.keys(Wn.data).forEach(function(Ji){var so=Wn.data[Ji];if(Array.isArray(so)){so.forEach(function(Pi){ai.append("".concat(Ji,"[]"),Pi)});return}ai.append(Ji,so)}),Wn.file instanceof Blob?ai.append(Wn.filename,Wn.file,Wn.file.name):ai.append(Wn.filename,Wn.file),yr.onerror=function(so){Wn.onError(so)},yr.onload=function(){return yr.status<200||yr.status>=300?Wn.onError(he(Wn,yr),de(yr)):Wn.onSuccess(de(yr),yr)},yr.open(Wn.method,Wn.action,!0),Wn.withCredentials&&"withCredentials"in yr&&(yr.withCredentials=!0);var hi=Wn.headers||{};return hi["X-Requested-With"]!==null&&yr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(hi).forEach(function(Ji){hi[Ji]!==null&&yr.setRequestHeader(Ji,hi[Ji])}),yr.send(ai),{abort:function(){yr.abort()}}}var ke=+new Date,Ie=0;function Be(){return"rc-upload-".concat(ke,"-").concat(++Ie)}var be=m(80334),me=function(Wn,yr){if(Wn&&yr){var ai=Array.isArray(yr)?yr:yr.split(","),hi=Wn.name||"",Ji=Wn.type||"",so=Ji.replace(/\/.*$/,"");return ai.some(function(Pi){var us=Pi.trim();if(/^\*(\/\*)?$/.test(Pi))return!0;if(us.charAt(0)==="."){var pa=hi.toLowerCase(),$a=us.toLowerCase(),hl=[$a];return($a===".jpg"||$a===".jpeg")&&(hl=[".jpg",".jpeg"]),hl.some(function(Zl){return pa.endsWith(Zl)})}return/\/\*$/.test(us)?so===us.replace(/\/.*$/,""):Ji===us?!0:/^\w+$/.test(us)?((0,be.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(us,"'.Skip for check.")),!0):!1})}return!0};function ye(Wn,yr){var ai=Wn.createReader(),hi=[];function Ji(){ai.readEntries(function(so){var Pi=Array.prototype.slice.apply(so);hi=hi.concat(Pi);var us=!Pi.length;us?yr(hi):Ji()})}Ji()}var _e=function(yr,ai,hi){var Ji=function so(Pi,us){Pi&&(Pi.path=us||"",Pi.isFile?Pi.file(function(pa){hi(pa)&&(Pi.fullPath&&!pa.webkitRelativePath&&(Object.defineProperties(pa,{webkitRelativePath:{writable:!0}}),pa.webkitRelativePath=Pi.fullPath.replace(/^\//,""),Object.defineProperties(pa,{webkitRelativePath:{writable:!1}})),ai([pa]))}):Pi.isDirectory&&ye(Pi,function(pa){pa.forEach(function($a){so($a,"".concat(us).concat(Pi.name,"/"))})}))};yr.forEach(function(so){Ji(so.webkitGetAsEntry())})},Ce=_e,De=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ge=function(Wn){(0,C.Z)(ai,Wn);var yr=(0,f.Z)(ai);function ai(){var hi;(0,w.Z)(this,ai);for(var Ji=arguments.length,so=new Array(Ji),Pi=0;Pi{const{componentCls:yr,iconCls:ai}=Wn;return{[`${yr}-wrapper`]:{[`${yr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Wn.colorFillAlter,border:`${Wn.lineWidth}px dashed ${Wn.colorBorder}`,borderRadius:Wn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wn.motionDurationSlow}`,[yr]:{padding:`${Wn.padding}px 0`},[`${yr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${yr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${yr}-disabled):hover`]:{borderColor:Wn.colorPrimaryHover},[`p${yr}-drag-icon`]:{marginBottom:Wn.margin,[ai]:{color:Wn.colorPrimary,fontSize:Wn.uploadThumbnailSize}},[`p${yr}-text`]:{margin:`0 0 ${Wn.marginXXS}px`,color:Wn.colorTextHeading,fontSize:Wn.fontSizeLG},[`p${yr}-hint`]:{color:Wn.colorTextDescription,fontSize:Wn.fontSize},[`&${yr}-disabled`]:{cursor:"not-allowed",[`p${yr}-drag-icon ${ai}, - p${yr}-text, - p${yr}-hint - `]:{color:Wn.colorTextDisabled}}}}}},Bo=Wn=>{const{componentCls:yr,antCls:ai,iconCls:hi,fontSize:Ji,lineHeight:so}=Wn,Pi=`${yr}-list-item`,us=`${Pi}-actions`,pa=`${Pi}-action`,$a=Math.round(Ji*so);return{[`${yr}-wrapper`]:{[`${yr}-list`]:Object.assign(Object.assign({},(0,Bn.dF)()),{lineHeight:Wn.lineHeight,[Pi]:{position:"relative",height:Wn.lineHeight*Ji,marginTop:Wn.marginXS,fontSize:Ji,display:"flex",alignItems:"center",transition:`background-color ${Wn.motionDurationSlow}`,"&:hover":{backgroundColor:Wn.controlItemBgHover},[`${Pi}-name`]:Object.assign(Object.assign({},Bn.vS),{padding:`0 ${Wn.paddingXS}px`,lineHeight:so,flex:"auto",transition:`all ${Wn.motionDurationSlow}`}),[us]:{[pa]:{opacity:0},[`${pa}${ai}-btn-sm`]:{height:$a,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${pa}:focus-visible, - &.picture ${pa} - `]:{opacity:1},[hi]:{color:Wn.actionsColor,transition:`all ${Wn.motionDurationSlow}`},[`&:hover ${hi}`]:{color:Wn.colorText}},[`${yr}-icon ${hi}`]:{color:Wn.colorTextDescription,fontSize:Ji},[`${Pi}-progress`]:{position:"absolute",bottom:-Wn.uploadProgressOffset,width:"100%",paddingInlineStart:Ji+Wn.paddingXS,fontSize:Ji,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Pi}:hover ${pa}`]:{opacity:1,color:Wn.colorText},[`${Pi}-error`]:{color:Wn.colorError,[`${Pi}-name, ${yr}-icon ${hi}`]:{color:Wn.colorError},[us]:{[`${hi}, ${hi}:hover`]:{color:Wn.colorError},[pa]:{opacity:1}}},[`${yr}-list-item-container`]:{transition:`opacity ${Wn.motionDurationSlow}, height ${Wn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},hs=m(85731),ve=m(16932);const So=new hs.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ho=new hs.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ji=Wn=>{const{componentCls:yr}=Wn,ai=`${yr}-animate-inline`;return[{[`${yr}-wrapper`]:{[`${ai}-appear, ${ai}-enter, ${ai}-leave`]:{animationDuration:Wn.motionDurationSlow,animationTimingFunction:Wn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ai}-appear, ${ai}-enter`]:{animationName:So},[`${ai}-leave`]:{animationName:ho}}},{[`${yr}-wrapper`]:(0,ve.J$)(Wn)},So,ho]},No=m(16397),dn=m(10274);const Ve=Wn=>{const{componentCls:yr,iconCls:ai,uploadThumbnailSize:hi,uploadProgressOffset:Ji}=Wn,so=`${yr}-list`,Pi=`${so}-item`;return{[`${yr}-wrapper`]:{[` + `]:{marginTop:Sr}}}),Mo(Qt)),oo(Qt)),{[` + ${xn}-expand, + ${xn}-edit, + ${xn}-copy + `]:Object.assign(Object.assign({},(0,_t.N)(Qt)),{marginInlineStart:Qt.marginXXS})}),Ti(Qt)),Hr(Qt)),Ho()),{"&-rtl":{direction:"rtl"}})}};var Pe=(0,bn.Z)("Typography",Qt=>[Ss(Qt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Ki=Qt=>{const{prefixCls:xn,"aria-label":Sr,className:qr,style:Mi,direction:zi,maxLength:Yi,autoSize:Si=!0,value:ni,onSave:qi,onCancel:Vr,onEnd:ii,component:nr,enterIcon:Mr=v.createElement(xt,null)}=Qt,rr=v.useRef(null),to=v.useRef(!1),ts=v.useRef(),[Wr,no]=v.useState(ni);v.useEffect(()=>{no(ni)},[ni]),v.useEffect(()=>{if(rr.current&&rr.current.resizableTextArea){const{textArea:Xi}=rr.current.resizableTextArea;Xi.focus();const{length:Fi}=Xi.value;Xi.setSelectionRange(Fi,Fi)}},[]);const Vi=Xi=>{let{target:Fi}=Xi;no(Fi.value.replace(/[\n\r]/g,""))},Pn=()=>{to.current=!0},mi=()=>{to.current=!1},ya=Xi=>{let{keyCode:Fi}=Xi;to.current||(ts.current=Fi)},Zs=()=>{qi(Wr.trim())},qs=Xi=>{let{keyCode:Fi,ctrlKey:No,altKey:yr,metaKey:ui,shiftKey:Zo}=Xi;ts.current===Fi&&!to.current&&!No&&!yr&&!ui&&!Zo&&(Fi===Se.Z.ENTER?(Zs(),ii==null||ii()):Fi===Se.Z.ESC&&Vr())},al=()=>{Zs()},co=nr?`${xn}-${nr}`:"",[tl,fl]=Pe(xn),Ai=he()(xn,`${xn}-edit-content`,{[`${xn}-rtl`]:zi==="rtl"},qr,co,fl);return tl(v.createElement("div",{className:Ai,style:Mi},v.createElement($t.Z,{ref:rr,maxLength:Yi,value:Wr,onChange:Vi,onKeyDown:ya,onKeyUp:qs,onCompositionStart:Pn,onCompositionEnd:mi,onBlur:al,"aria-label":Sr,rows:1,autoSize:Si}),Mr!==null?(0,ut.Tm)(Mr,{className:`${xn}-edit-content-confirm`}):null))},Do=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{const{prefixCls:Sr,component:qr="article",className:Mi,rootClassName:zi,setContentRef:Yi,children:Si,direction:ni,style:qi}=Qt,Vr=Do(Qt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:ii,direction:nr,typography:Mr}=v.useContext(Te.E_),rr=ni!=null?ni:nr;let to=xn;Yi&&(to=(0,dt.sQ)(xn,Yi));const ts=ii("typography",Sr),[Wr,no]=Pe(ts),Vi=he()(ts,Mr==null?void 0:Mr.className,{[`${ts}-rtl`]:rr==="rtl"},Mi,zi,no),Pn=Object.assign(Object.assign({},Mr==null?void 0:Mr.style),qi);return Wr(v.createElement(qr,Object.assign({className:Vi,style:Pn,ref:to},Vr),Si))});function Mn(Qt,xn){return v.useMemo(()=>{const Sr=!!Qt;return[Sr,Object.assign(Object.assign({},xn),Sr&&typeof Qt=="object"?Qt:null)]},[Qt])}var Dt=(Qt,xn)=>{const Sr=v.useRef(!1);v.useEffect(()=>{Sr.current?Qt():Sr.current=!0},xn)};function Kt(Qt){const xn=typeof Qt;return xn==="string"||xn==="number"}function mn(Qt){let xn=0;return Qt.forEach(Sr=>{Kt(Sr)?xn+=String(Sr).length:xn+=1}),xn}function kn(Qt,xn){let Sr=0;const qr=[];for(let Mi=0;Mixn){const qi=xn-Sr;return qr.push(String(zi).slice(0,qi)),qr}qr.push(zi),Sr=ni}return Qt}const an=0,tn=1,kt=2,en=3,Vn=4;var Dr=Qt=>{let{enabledMeasure:xn,children:Sr,text:qr,width:Mi,fontSize:zi,rows:Yi,onEllipsis:Si}=Qt;const[[ni,qi,Vr],ii]=v.useState([0,0,0]),[nr,Mr]=v.useState(0),[rr,to]=v.useState(an),[ts,Wr]=v.useState(0),no=v.useRef(null),Vi=v.useRef(null),Pn=v.useMemo(()=>(0,be.Z)(qr),[qr]),mi=v.useMemo(()=>mn(Pn),[Pn]),ya=v.useMemo(()=>!xn||rr!==en?nr&&rr!==Vn&&xn?Sr(kn(Pn,nr),nr{xn&&Mi&&zi&&mi&&(to(tn),ii([0,Math.ceil(mi/2),mi]))},[xn,Mi,zi,qr,mi,Yi]),(0,xe.Z)(()=>{var co;rr===tn&&Wr(((co=no.current)===null||co===void 0?void 0:co.offsetHeight)||0)},[rr]),(0,xe.Z)(()=>{var co,tl;if(ts){if(rr===tn){const fl=((co=Vi.current)===null||co===void 0?void 0:co.offsetHeight)||0,Ai=Yi*ts;fl<=Ai?(to(Vn),Si(!1)):to(kt)}else if(rr===kt)if(ni!==Vr){const fl=((tl=Vi.current)===null||tl===void 0?void 0:tl.offsetHeight)||0,Ai=Yi*ts;let Xi=ni,Fi=Vr;ni===Vr-1?Fi=ni:fl<=Ai?Xi=qi:Fi=qi;const No=Math.ceil((Xi+Fi)/2);ii([Xi,No,Fi])}else to(en),Mr(qi),Si(!0)}},[rr,ni,Vr,Yi,ts]);const Zs={width:Mi,whiteSpace:"normal",margin:0,padding:0},qs=(co,tl,fl)=>v.createElement("span",{"aria-hidden":!0,ref:tl,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(zi/2)*2},fl)},co),al=(co,tl)=>{const fl=kn(Pn,co);return qs(Sr(fl,!0),tl,Zs)};return v.createElement(v.Fragment,null,ya,xn&&rr!==en&&rr!==Vn&&v.createElement(v.Fragment,null,qs("lg",no,{wordBreak:"keep-all",whiteSpace:"nowrap"}),rr===tn?qs(Sr(Pn,!1),Vi,Zs):al(qi,Vi)))},Ii=Qt=>{let{enabledEllipsis:xn,isEllipsis:Sr,children:qr,tooltipProps:Mi}=Qt;return!(Mi!=null&&Mi.title)||!xn?qr:v.createElement(Oe.Z,Object.assign({open:Sr?void 0:!1},Mi),qr)},jr=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{var Sr,qr,Mi;const{prefixCls:zi,className:Yi,style:Si,type:ni,disabled:qi,children:Vr,ellipsis:ii,editable:nr,copyable:Mr,component:rr,title:to}=Qt,ts=jr(Qt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:Wr,direction:no}=v.useContext(Te.E_),[Vi]=(0,tt.Z)("Text"),Pn=v.useRef(null),mi=v.useRef(null),ya=Wr("typography",zi),Zs=(0,We.Z)(ts,["mark","code","delete","underline","strong","keyboard","italic"]),[qs,al]=Mn(nr),[co,tl]=(0,Xe.Z)(!1,{value:al.editing}),{triggerType:fl=["icon"]}=al,Ai=ec=>{var qu;ec&&((qu=al.onStart)===null||qu===void 0||qu.call(al)),tl(ec)};Dt(()=>{var ec;co||(ec=mi.current)===null||ec===void 0||ec.focus()},[co]);const Xi=ec=>{ec==null||ec.preventDefault(),Ai(!0)},Fi=ec=>{var qu;(qu=al.onChange)===null||qu===void 0||qu.call(al,ec),Ai(!1)},No=()=>{var ec;(ec=al.onCancel)===null||ec===void 0||ec.call(al),Ai(!1)},[yr,ui]=Mn(Mr),[Zo,ns]=v.useState(!1),Lr=v.useRef(null),Ei={};ui.format&&(Ei.format=ui.format);const hn=()=>{Lr.current&&clearTimeout(Lr.current)},Tn=ec=>{var qu;ec==null||ec.preventDefault(),ec==null||ec.stopPropagation(),fe()(ui.text||String(Vr)||"",Ei),ns(!0),hn(),Lr.current=setTimeout(()=>{ns(!1)},3e3),(qu=ui.onCopy)===null||qu===void 0||qu.call(ui,ec)};v.useEffect(()=>hn,[]);const[ar,ft]=v.useState(!1),[wt,At]=v.useState(!1),[Ye,Et]=v.useState(!1),[Wt,vn]=v.useState(!1),[Er,Gr]=v.useState(!1),[Gi,ko]=v.useState(!0),[Bi,ms]=Mn(ii,{expandable:!1}),ps=Bi&&!Ye,{rows:Js=1}=ms,Hs=v.useMemo(()=>!ps||ms.suffix!==void 0||ms.onEllipsis||ms.expandable||qs||yr,[ps,ms,qs,yr]);(0,xe.Z)(()=>{Bi&&!Hs&&(ft((0,Me.G)("webkitLineClamp")),At((0,Me.G)("textOverflow")))},[Hs,Bi]);const Po=v.useMemo(()=>Hs?!1:Js===1?wt:ar,[Hs,wt,ar]),zs=ps&&(Po?Er:Wt),ma=ps&&Js===1&&Po,va=ps&&Js>1&&Po,El=ec=>{var qu;Et(!0),(qu=ms.onExpand)===null||qu===void 0||qu.call(ms,ec)},[Dl,Ns]=v.useState(0),[Ca,vl]=v.useState(0),ds=(ec,qu)=>{let{offsetWidth:Uu}=ec;var zn;Ns(Uu),vl(parseInt((zn=window.getComputedStyle)===null||zn===void 0?void 0:zn.call(window,qu).fontSize,10)||0)},io=ec=>{var qu;vn(ec),Wt!==ec&&((qu=ms.onEllipsis)===null||qu===void 0||qu.call(ms,ec))};v.useEffect(()=>{const ec=Pn.current;if(Bi&&Po&&ec){const qu=va?ec.offsetHeight{const ec=Pn.current;if(typeof IntersectionObserver=="undefined"||!ec||!Po||!ps)return;const qu=new IntersectionObserver(()=>{ko(!!ec.offsetParent)});return qu.observe(ec),()=>{qu.disconnect()}},[Po,ps]);let Ko={};ms.tooltip===!0?Ko={title:(Sr=al.text)!==null&&Sr!==void 0?Sr:Vr}:v.isValidElement(ms.tooltip)?Ko={title:ms.tooltip}:typeof ms.tooltip=="object"?Ko=Object.assign({title:(qr=al.text)!==null&&qr!==void 0?qr:Vr},ms.tooltip):Ko={title:ms.tooltip};const As=v.useMemo(()=>{const ec=qu=>["string","number"].includes(typeof qu);if(!(!Bi||Po)){if(ec(al.text))return al.text;if(ec(Vr))return Vr;if(ec(to))return to;if(ec(Ko.title))return Ko.title}},[Bi,Po,to,Ko.title,zs]);if(co)return v.createElement(Ki,{value:(Mi=al.text)!==null&&Mi!==void 0?Mi:typeof Vr=="string"?Vr:"",onSave:Fi,onCancel:No,onEnd:al.onEnd,prefixCls:ya,className:Yi,style:Si,direction:no,component:rr,maxLength:al.maxLength,autoSize:al.autoSize,enterIcon:al.enterIcon});const ks=()=>{const{expandable:ec,symbol:qu}=ms;if(!ec)return null;let Uu;return qu?Uu=qu:Uu=Vi==null?void 0:Vi.expand,v.createElement("a",{key:"expand",className:`${ya}-expand`,onClick:El,"aria-label":Vi==null?void 0:Vi.expand},Uu)},Ga=()=>{if(!qs)return;const{icon:ec,tooltip:qu}=al,Uu=(0,be.Z)(qu)[0]||(Vi==null?void 0:Vi.edit),zn=typeof Uu=="string"?Uu:"";return fl.includes("icon")?v.createElement(Oe.Z,{key:"edit",title:qu===!1?"":Uu},v.createElement($e,{ref:mi,className:`${ya}-edit`,onClick:Xi,"aria-label":zn},ec||v.createElement(k,{role:"button"}))):null},zu=()=>{if(!yr)return;const{tooltips:ec,icon:qu}=ui,Uu=Fn(ec),zn=Fn(qu),ur=Zo?Uo(Uu[1],Vi==null?void 0:Vi.copied):Uo(Uu[0],Vi==null?void 0:Vi.copy),Zr=Zo?Vi==null?void 0:Vi.copied:Vi==null?void 0:Vi.copy,Jr=typeof ur=="string"?ur:Zr;return v.createElement(Oe.Z,{key:"copy",title:ur},v.createElement($e,{className:he()(`${ya}-copy`,Zo&&`${ya}-copy-success`),onClick:Tn,"aria-label":Jr},Zo?Uo(zn[1],v.createElement(R.Z,null),!0):Uo(zn[0],v.createElement(L,null),!0)))},Ac=ec=>[ec&&ks(),Ga(),zu()],vc=ec=>[ec&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Qr),ms.suffix,Ac(ec)];return v.createElement(_e.Z,{onResize:ds,disabled:!ps||Po},ec=>v.createElement(Ii,{tooltipProps:Ko,enabledEllipsis:ps,isEllipsis:zs},v.createElement($o,Object.assign({className:he()({[`${ya}-${ni}`]:ni,[`${ya}-disabled`]:qi,[`${ya}-ellipsis`]:Bi,[`${ya}-single-line`]:ps&&Js===1,[`${ya}-ellipsis-single-line`]:ma,[`${ya}-ellipsis-multiple-line`]:va},Yi),prefixCls:zi,style:Object.assign(Object.assign({},Si),{WebkitLineClamp:va?Js:void 0}),component:rr,ref:(0,dt.sQ)(ec,Pn,xn),direction:no,onClick:fl.includes("text")?Xi:void 0,"aria-label":As==null?void 0:As.toString(),title:to},Zs),v.createElement(Dr,{enabledMeasure:ps&&!Po,text:Vr,rows:Js,width:Dl,fontSize:Ca,onEllipsis:io},(qu,Uu)=>{let zn=qu;return qu.length&&Uu&&As&&(zn=v.createElement("span",{key:"show-content","aria-hidden":!0},zn)),eo(Qt,v.createElement(v.Fragment,null,zn,vc(Uu)))}))))}),cr=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{var{ellipsis:Sr,rel:qr}=Qt,Mi=cr(Qt,["ellipsis","rel"]);const zi=Object.assign(Object.assign({},Mi),{rel:qr===void 0&&Mi.target==="_blank"?"noopener noreferrer":qr});return delete zi.navigate,v.createElement(ji,Object.assign({},zi,{ref:xn,ellipsis:!!Sr,component:"a"}))}),En=v.forwardRef((Qt,xn)=>v.createElement(ji,Object.assign({ref:xn},Qt,{component:"div"}))),er=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{var{ellipsis:Sr}=Qt,qr=er(Qt,["ellipsis"]);const Mi=v.useMemo(()=>Sr&&typeof Sr=="object"?(0,We.Z)(Sr,["expandable","rows"]):Sr,[Sr]);return v.createElement(ji,Object.assign({ref:xn},qr,{ellipsis:Mi,component:"span"}))};var Nr=v.forwardRef(Tr),Zn=function(Qt,xn){var Sr={};for(var qr in Qt)Object.prototype.hasOwnProperty.call(Qt,qr)&&xn.indexOf(qr)<0&&(Sr[qr]=Qt[qr]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mi=0,qr=Object.getOwnPropertySymbols(Qt);Mi{const{level:Sr=1}=Qt,qr=Zn(Qt,["level"]);let Mi;return Ut.includes(Sr)?Mi=`h${Sr}`:Mi="h1",v.createElement(ji,Object.assign({ref:xn},qr,{component:Mi}))});const Br=$o;Br.Text=Nr,Br.Link=Vt,Br.Title=xr,Br.Paragraph=En;var _o=Br},54397:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return Uu}});var v=_(67294),R=_(74902),w=_(73935),b=_(94184),B=_.n(b),V=_(87462),O=_(15671),L=_(43144),S=_(60136),g=_(29388),T=_(4942),k=_(91),K=_(74165),he=_(71002),ae=_(15861),fe=_(64217);function _e(zn,ur){var Zr="cannot ".concat(zn.method," ").concat(zn.action," ").concat(ur.status,"'"),Jr=new Error(Zr);return Jr.status=ur.status,Jr.method=zn.method,Jr.url=zn.action,Jr}function be(zn){var ur=zn.responseText||zn.response;if(!ur)return ur;try{return JSON.parse(ur)}catch(Zr){return ur}}function xe(zn){var ur=new XMLHttpRequest;zn.onProgress&&ur.upload&&(ur.upload.onprogress=function(so){so.total>0&&(so.percent=so.loaded/so.total*100),zn.onProgress(so)});var Zr=new FormData;zn.data&&Object.keys(zn.data).forEach(function(_i){var so=zn.data[_i];if(Array.isArray(so)){so.forEach(function(Ui){Zr.append("".concat(_i,"[]"),Ui)});return}Zr.append(_i,so)}),zn.file instanceof Blob?Zr.append(zn.filename,zn.file,zn.file.name):Zr.append(zn.filename,zn.file),ur.onerror=function(so){zn.onError(so)},ur.onload=function(){return ur.status<200||ur.status>=300?zn.onError(_e(zn,ur),be(ur)):zn.onSuccess(be(ur),ur)},ur.open(zn.method,zn.action,!0),zn.withCredentials&&"withCredentials"in ur&&(ur.withCredentials=!0);var Jr=zn.headers||{};return Jr["X-Requested-With"]!==null&&ur.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Jr).forEach(function(_i){Jr[_i]!==null&&ur.setRequestHeader(_i,Jr[_i])}),ur.send(Zr),{abort:function(){ur.abort()}}}var Xe=+new Date,We=0;function dt(){return"rc-upload-".concat(Xe,"-").concat(++We)}var Me=_(80334),Se=function(zn,ur){if(zn&&ur){var Zr=Array.isArray(ur)?ur:ur.split(","),Jr=zn.name||"",_i=zn.type||"",so=_i.replace(/\/.*$/,"");return Zr.some(function(Ui){var hs=Ui.trim();if(/^\*(\/\*)?$/.test(Ui))return!0;if(hs.charAt(0)==="."){var ra=Jr.toLowerCase(),Ka=hs.toLowerCase(),ul=[Ka];return(Ka===".jpg"||Ka===".jpeg")&&(ul=[".jpg",".jpeg"]),ul.some(function(hl){return ra.endsWith(hl)})}return/\/\*$/.test(hs)?so===hs.replace(/\/.*$/,""):_i===hs?!0:/^\w+$/.test(hs)?((0,Me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(hs,"'.Skip for check.")),!0):!1})}return!0};function ze(zn,ur){var Zr=zn.createReader(),Jr=[];function _i(){Zr.readEntries(function(so){var Ui=Array.prototype.slice.apply(so);Jr=Jr.concat(Ui);var hs=!Ui.length;hs?ur(Jr):_i()})}_i()}var De=function(ur,Zr,Jr){var _i=function so(Ui,hs){Ui&&(Ui.path=hs||"",Ui.isFile?Ui.file(function(ra){Jr(ra)&&(Ui.fullPath&&!ra.webkitRelativePath&&(Object.defineProperties(ra,{webkitRelativePath:{writable:!0}}),ra.webkitRelativePath=Ui.fullPath.replace(/^\//,""),Object.defineProperties(ra,{webkitRelativePath:{writable:!1}})),Zr([ra]))}):Ui.isDirectory&&ze(Ui,function(ra){ra.forEach(function(Ka){so(Ka,"".concat(hs).concat(Ui.name,"/"))})}))};ur.forEach(function(so){_i(so.webkitGetAsEntry())})},ke=De,$e=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Te=function(zn){(0,S.Z)(Zr,zn);var ur=(0,g.Z)(Zr);function Zr(){var Jr;(0,O.Z)(this,Zr);for(var _i=arguments.length,so=new Array(_i),Ui=0;Ui<_i;Ui++)so[Ui]=arguments[Ui];return Jr=ur.call.apply(ur,[this].concat(so)),Jr.state={uid:dt()},Jr.reqs={},Jr.fileInput=void 0,Jr._isMounted=void 0,Jr.onChange=function(hs){var ra=Jr.props,Ka=ra.accept,ul=ra.directory,hl=hs.target.files,kl=(0,R.Z)(hl).filter(function(Va){return!ul||Se(Va,Ka)});Jr.uploadFiles(kl),Jr.reset()},Jr.onClick=function(hs){var ra=Jr.fileInput;if(ra){var Ka=Jr.props,ul=Ka.children,hl=Ka.onClick;if(ul&&ul.type==="button"){var kl=ra.parentNode;kl.focus(),kl.querySelector("button").blur()}ra.click(),hl&&hl(hs)}},Jr.onKeyDown=function(hs){hs.key==="Enter"&&Jr.onClick(hs)},Jr.onFileDrop=function(hs){var ra=Jr.props.multiple;if(hs.preventDefault(),hs.type!=="dragover")if(Jr.props.directory)ke(Array.prototype.slice.call(hs.dataTransfer.items),Jr.uploadFiles,function(ul){return Se(ul,Jr.props.accept)});else{var Ka=(0,R.Z)(hs.dataTransfer.files).filter(function(ul){return Se(ul,Jr.props.accept)});ra===!1&&(Ka=Ka.slice(0,1)),Jr.uploadFiles(Ka)}},Jr.uploadFiles=function(hs){var ra=(0,R.Z)(hs),Ka=ra.map(function(ul){return ul.uid=dt(),Jr.processFile(ul,ra)});Promise.all(Ka).then(function(ul){var hl=Jr.props.onBatchStart;hl==null||hl(ul.map(function(kl){var Va=kl.origin,Xu=kl.parsedFile;return{file:Va,parsedFile:Xu}})),ul.filter(function(kl){return kl.parsedFile!==null}).forEach(function(kl){Jr.post(kl)})})},Jr.processFile=function(){var hs=(0,ae.Z)((0,K.Z)().mark(function ra(Ka,ul){var hl,kl,Va,Xu,Na,Aa,ll,Pu,Gl;return(0,K.Z)().wrap(function(Bl){for(;;)switch(Bl.prev=Bl.next){case 0:if(hl=Jr.props.beforeUpload,kl=Ka,!hl){Bl.next=14;break}return Bl.prev=3,Bl.next=6,hl(Ka,ul);case 6:kl=Bl.sent,Bl.next=12;break;case 9:Bl.prev=9,Bl.t0=Bl.catch(3),kl=!1;case 12:if(kl!==!1){Bl.next=14;break}return Bl.abrupt("return",{origin:Ka,parsedFile:null,action:null,data:null});case 14:if(Va=Jr.props.action,typeof Va!="function"){Bl.next=21;break}return Bl.next=18,Va(Ka);case 18:Xu=Bl.sent,Bl.next=22;break;case 21:Xu=Va;case 22:if(Na=Jr.props.data,typeof Na!="function"){Bl.next=29;break}return Bl.next=26,Na(Ka);case 26:Aa=Bl.sent,Bl.next=30;break;case 29:Aa=Na;case 30:return ll=((0,he.Z)(kl)==="object"||typeof kl=="string")&&kl?kl:Ka,ll instanceof File?Pu=ll:Pu=new File([ll],Ka.name,{type:Ka.type}),Gl=Pu,Gl.uid=Ka.uid,Bl.abrupt("return",{origin:Ka,data:Aa,parsedFile:Gl,action:Xu});case 35:case"end":return Bl.stop()}},ra,null,[[3,9]])}));return function(ra,Ka){return hs.apply(this,arguments)}}(),Jr.saveFileInput=function(hs){Jr.fileInput=hs},Jr}return(0,L.Z)(Zr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(_i){var so=this,Ui=_i.data,hs=_i.origin,ra=_i.action,Ka=_i.parsedFile;if(this._isMounted){var ul=this.props,hl=ul.onStart,kl=ul.customRequest,Va=ul.name,Xu=ul.headers,Na=ul.withCredentials,Aa=ul.method,ll=hs.uid,Pu=kl||xe,Gl={action:ra,filename:Va,data:Ui,file:Ka,headers:Xu,withCredentials:Na,method:Aa||"post",onProgress:function(Bl){var lu=so.props.onProgress;lu==null||lu(Bl,Ka)},onSuccess:function(Bl,lu){var Ln=so.props.onSuccess;Ln==null||Ln(Bl,Ka,lu),delete so.reqs[ll]},onError:function(Bl,lu){var Ln=so.props.onError;Ln==null||Ln(Bl,lu,Ka),delete so.reqs[ll]}};hl(hs),this.reqs[ll]=Pu(Gl)}}},{key:"reset",value:function(){this.setState({uid:dt()})}},{key:"abort",value:function(_i){var so=this.reqs;if(_i){var Ui=_i.uid?_i.uid:_i;so[Ui]&&so[Ui].abort&&so[Ui].abort(),delete so[Ui]}else Object.keys(so).forEach(function(hs){so[hs]&&so[hs].abort&&so[hs].abort(),delete so[hs]})}},{key:"render",value:function(){var _i,so=this.props,Ui=so.component,hs=so.prefixCls,ra=so.className,Ka=so.disabled,ul=so.id,hl=so.style,kl=so.multiple,Va=so.accept,Xu=so.capture,Na=so.children,Aa=so.directory,ll=so.openFileDialogOnClick,Pu=so.onMouseEnter,Gl=so.onMouseLeave,fu=(0,k.Z)(so,$e),Bl=B()((_i={},(0,T.Z)(_i,hs,!0),(0,T.Z)(_i,"".concat(hs,"-disabled"),Ka),(0,T.Z)(_i,ra,ra),_i)),lu=Aa?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ln=Ka?{}:{onClick:ll?this.onClick:function(){},onKeyDown:ll?this.onKeyDown:function(){},onMouseEnter:Pu,onMouseLeave:Gl,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(Ui,(0,V.Z)({},Ln,{className:Bl,role:"button",style:hl}),v.createElement("input",(0,V.Z)({},(0,fe.Z)(fu,{aria:!0,data:!0}),{id:ul,disabled:Ka,type:"file",ref:this.saveFileInput,onClick:function(Is){return Is.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Va},lu,{multiple:kl,onChange:this.onChange},Xu!=null?{capture:Xu}:{})),Na)}}]),Zr}(v.Component),tt=Te;function Oe(){}var Xt=function(zn){(0,S.Z)(Zr,zn);var ur=(0,g.Z)(Zr);function Zr(){var Jr;(0,O.Z)(this,Zr);for(var _i=arguments.length,so=new Array(_i),Ui=0;Ui<_i;Ui++)so[Ui]=arguments[Ui];return Jr=ur.call.apply(ur,[this].concat(so)),Jr.uploader=void 0,Jr.saveUploader=function(hs){Jr.uploader=hs},Jr}return(0,L.Z)(Zr,[{key:"abort",value:function(_i){this.uploader.abort(_i)}},{key:"render",value:function(){return v.createElement(tt,(0,V.Z)({},this.props,{ref:this.saveUploader}))}}]),Zr}(v.Component);Xt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Oe,onError:Oe,onSuccess:Oe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ft=Xt,ot=Ft,xt=_(21770),ut=_(53124),$t=_(98866),_t=_(10110),bn=_(88526),Wn=_(14747),$r=_(33507),wi=_(67968),oo=_(45503),Ti=zn=>{const{componentCls:ur,iconCls:Zr}=zn;return{[`${ur}-wrapper`]:{[`${ur}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:zn.colorFillAlter,border:`${zn.lineWidth}px dashed ${zn.colorBorder}`,borderRadius:zn.borderRadiusLG,cursor:"pointer",transition:`border-color ${zn.motionDurationSlow}`,[ur]:{padding:`${zn.padding}px 0`},[`${ur}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ur}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${ur}-disabled):hover, + &-hover:not(${ur}-disabled) + `]:{borderColor:zn.colorPrimaryHover},[`p${ur}-drag-icon`]:{marginBottom:zn.margin,[Zr]:{color:zn.colorPrimary,fontSize:zn.uploadThumbnailSize}},[`p${ur}-text`]:{margin:`0 0 ${zn.marginXXS}px`,color:zn.colorTextHeading,fontSize:zn.fontSizeLG},[`p${ur}-hint`]:{color:zn.colorTextDescription,fontSize:zn.fontSize},[`&${ur}-disabled`]:{[`p${ur}-drag-icon ${Zr}, + p${ur}-text, + p${ur}-hint + `]:{color:zn.colorTextDisabled}}}}}},Ho=zn=>{const{componentCls:ur,antCls:Zr,iconCls:Jr,fontSize:_i,lineHeight:so}=zn,Ui=`${ur}-list-item`,hs=`${Ui}-actions`,ra=`${Ui}-action`,Ka=Math.round(_i*so);return{[`${ur}-wrapper`]:{[`${ur}-list`]:Object.assign(Object.assign({},(0,Wn.dF)()),{lineHeight:zn.lineHeight,[Ui]:{position:"relative",height:zn.lineHeight*_i,marginTop:zn.marginXS,fontSize:_i,display:"flex",alignItems:"center",transition:`background-color ${zn.motionDurationSlow}`,"&:hover":{backgroundColor:zn.controlItemBgHover},[`${Ui}-name`]:Object.assign(Object.assign({},Wn.vS),{padding:`0 ${zn.paddingXS}px`,lineHeight:so,flex:"auto",transition:`all ${zn.motionDurationSlow}`}),[hs]:{[ra]:{opacity:0},[`${ra}${Zr}-btn-sm`]:{height:Ka,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${ra}:focus-visible, + &.picture ${ra} + `]:{opacity:1},[Jr]:{color:zn.actionsColor,transition:`all ${zn.motionDurationSlow}`},[`&:hover ${Jr}`]:{color:zn.colorText}},[`${ur}-icon ${Jr}`]:{color:zn.colorTextDescription,fontSize:_i},[`${Ui}-progress`]:{position:"absolute",bottom:-zn.uploadProgressOffset,width:"100%",paddingInlineStart:_i+zn.paddingXS,fontSize:_i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ui}:hover ${ra}`]:{opacity:1,color:zn.colorText},[`${Ui}-error`]:{color:zn.colorError,[`${Ui}-name, ${ur}-icon ${Jr}`]:{color:zn.colorError},[hs]:{[`${Jr}, ${Jr}:hover`]:{color:zn.colorError},[ra]:{opacity:1}}},[`${ur}-list-item-container`]:{transition:`opacity ${zn.motionDurationSlow}, height ${zn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ss=_(85731),Pe=_(16932);const qo=new Ss.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ki=new Ss.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ai=zn=>{const{componentCls:ur}=zn,Zr=`${ur}-animate-inline`;return[{[`${ur}-wrapper`]:{[`${Zr}-appear, ${Zr}-enter, ${Zr}-leave`]:{animationDuration:zn.motionDurationSlow,animationTimingFunction:zn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Zr}-appear, ${Zr}-enter`]:{animationName:qo},[`${Zr}-leave`]:{animationName:Ki}}},{[`${ur}-wrapper`]:(0,Pe.J$)(zn)},qo,Ki]},$o=_(16397),Mn=_(10274);const nt=zn=>{const{componentCls:ur,iconCls:Zr,uploadThumbnailSize:Jr,uploadProgressOffset:_i}=zn,so=`${ur}-list`,Ui=`${so}-item`;return{[`${ur}-wrapper`]:{[` ${so}${so}-picture, ${so}${so}-picture-card, ${so}${so}-picture-circle - `]:{[Pi]:{position:"relative",height:hi+Wn.lineWidth*2+Wn.paddingXS*2,padding:Wn.paddingXS,border:`${Wn.lineWidth}px ${Wn.lineType} ${Wn.colorBorder}`,borderRadius:Wn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Pi}-thumbnail`]:Object.assign(Object.assign({},Bn.vS),{width:hi,height:hi,lineHeight:`${hi+Wn.paddingSM}px`,textAlign:"center",flex:"none",[ai]:{fontSize:Wn.fontSizeHeading2,color:Wn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Pi}-progress`]:{bottom:Ji,width:`calc(100% - ${Wn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:hi+Wn.paddingXS}},[`${Pi}-error`]:{borderColor:Wn.colorError,[`${Pi}-thumbnail ${ai}`]:{[`svg path[fill='${No.iN[0]}']`]:{fill:Wn.colorErrorBg},[`svg path[fill='${No.iN.primary}']`]:{fill:Wn.colorError}}},[`${Pi}-uploading`]:{borderStyle:"dashed",[`${Pi}-name`]:{marginBottom:Ji}}},[`${so}${so}-picture-circle ${Pi}`]:{[`&, &::before, ${Pi}-thumbnail`]:{borderRadius:"50%"}}}}},yt=Wn=>{const{componentCls:yr,iconCls:ai,fontSizeLG:hi,colorTextLightSolid:Ji}=Wn,so=`${yr}-list`,Pi=`${so}-item`,us=Wn.uploadPicCardSize;return{[` - ${yr}-wrapper${yr}-picture-card-wrapper, - ${yr}-wrapper${yr}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Bn.dF)()),{display:"inline-block",width:"100%",[`${yr}${yr}-select`]:{width:us,height:us,marginInlineEnd:Wn.marginXS,marginBottom:Wn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Wn.colorFillAlter,border:`${Wn.lineWidth}px dashed ${Wn.colorBorder}`,borderRadius:Wn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Wn.motionDurationSlow}`,[`> ${yr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${yr}-disabled):hover`]:{borderColor:Wn.colorPrimary}},[`${so}${so}-picture-card, ${so}${so}-picture-circle`]:{[`${so}-item-container`]:{display:"inline-block",width:us,height:us,marginBlock:`0 ${Wn.marginXS}px`,marginInline:`0 ${Wn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Pi]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Wn.paddingXS*2}px)`,height:`calc(100% - ${Wn.paddingXS*2}px)`,backgroundColor:Wn.colorBgMask,opacity:0,transition:`all ${Wn.motionDurationSlow}`,content:'" "'}},[`${Pi}:hover`]:{[`&::before, ${Pi}-actions`]:{opacity:1}},[`${Pi}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Wn.motionDurationSlow}`,[`${ai}-eye, ${ai}-download, ${ai}-delete`]:{zIndex:10,width:hi,margin:`0 ${Wn.marginXXS}px`,fontSize:hi,cursor:"pointer",transition:`all ${Wn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Pi}-actions, ${Pi}-actions:hover`]:{[`${ai}-eye, ${ai}-download, ${ai}-delete`]:{color:new dn.C(Ji).setAlpha(.65).toRgbString(),"&:hover":{color:Ji}}},[`${Pi}-thumbnail, ${Pi}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Pi}-name`]:{display:"none",textAlign:"center"},[`${Pi}-file + ${Pi}-name`]:{position:"absolute",bottom:Wn.margin,display:"block",width:`calc(100% - ${Wn.paddingXS*2}px)`},[`${Pi}-uploading`]:{[`&${Pi}`]:{backgroundColor:Wn.colorFillAlter},[`&::before, ${ai}-eye, ${ai}-download, ${ai}-delete`]:{display:"none"}},[`${Pi}-progress`]:{bottom:Wn.marginXL,width:`calc(100% - ${Wn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${yr}-wrapper${yr}-picture-circle-wrapper`]:{[`${yr}${yr}-select`]:{borderRadius:"50%"}}}};var Wt=Wn=>{const{componentCls:yr}=Wn;return{[`${yr}-rtl`]:{direction:"rtl"}}};const sn=Wn=>{const{componentCls:yr,colorTextDisabled:ai}=Wn;return{[`${yr}-wrapper`]:Object.assign(Object.assign({},(0,Bn.Wf)(Wn)),{[yr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${yr}-select`]:{display:"inline-block"},[`${yr}-disabled`]:{color:ai,cursor:"not-allowed"}})}};var Mt=(0,ii.Z)("Upload",Wn=>{const{fontSizeHeading3:yr,fontSize:ai,lineHeight:hi,lineWidth:Ji,controlHeightLG:so}=Wn,Pi=Math.round(ai*hi),us=(0,gi.TS)(Wn,{uploadThumbnailSize:yr*2,uploadProgressOffset:Pi/2+Ji,uploadPicCardSize:so*2.55});return[sn(us),To(us),Ve(us),yt(us),Bo(us),ji(us),Wt(us),(0,Lr.Z)(us)]},Wn=>({actionsColor:Wn.colorTextDescription})),Tt={icon:function(yr,ai){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ai}},{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:yr}}]}},name:"file",theme:"twotone"},xt=Tt,Ht=m(93771),Vn=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:xt}))},en=y.forwardRef(Vn),fr=m(22508),Kr={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"},ri=Kr,si=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:ri}))},uo=y.forwardRef(si),Qo={icon:function(yr,ai){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:yr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ai}},{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:ai}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ai}},{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:yr}}]}},name:"picture",theme:"twotone"},_n=Qo,Vr=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:_n}))},qr=y.forwardRef(Vr),Ui=m(82225),xo=m(57838),Us=m(33603),zn=m(96159),Kn=m(15867);function Or(Wn){return Object.assign(Object.assign({},Wn),{lastModified:Wn.lastModified,lastModifiedDate:Wn.lastModifiedDate,name:Wn.name,size:Wn.size,type:Wn.type,uid:Wn.uid,percent:0,originFileObj:Wn})}function mi(Wn,yr){const ai=(0,A.Z)(yr),hi=ai.findIndex(Ji=>{let{uid:so}=Ji;return so===Wn.uid});return hi===-1?ai.push(Wn):ai[hi]=Wn,ai}function Er(Wn,yr){const ai=Wn.uid!==void 0?"uid":"name";return yr.filter(hi=>hi[ai]===Wn[ai])[0]}function ti(Wn,yr){const ai=Wn.uid!==void 0?"uid":"name",hi=yr.filter(Ji=>Ji[ai]!==Wn[ai]);return hi.length===yr.length?null:hi}const di=function(){const yr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),hi=yr[yr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(hi)||[""])[0]},rn=Wn=>Wn.indexOf("image/")===0,Qn=Wn=>{if(Wn.type&&!Wn.thumbUrl)return rn(Wn.type);const yr=Wn.thumbUrl||Wn.url||"",ai=di(yr);return/^data:image\//.test(yr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ai)?!0:!(/^data:/.test(yr)||ai)},Xr=200;function ao(Wn){return new Promise(yr=>{if(!Wn.type||!rn(Wn.type)){yr("");return}const ai=document.createElement("canvas");ai.width=Xr,ai.height=Xr,ai.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xr}px; height: ${Xr}px; z-index: 9999; display: none;`,document.body.appendChild(ai);const hi=ai.getContext("2d"),Ji=new Image;if(Ji.onload=()=>{const{width:so,height:Pi}=Ji;let us=Xr,pa=Xr,$a=0,hl=0;so>Pi?(pa=Pi*(Xr/so),hl=-(pa-us)/2):(us=so*(Xr/Pi),$a=-(us-pa)/2),hi.drawImage(Ji,$a,hl,us,pa);const Zl=ai.toDataURL();document.body.removeChild(ai),window.URL.revokeObjectURL(Ji.src),yr(Zl)},Ji.crossOrigin="anonymous",Wn.type.startsWith("image/svg+xml")){const so=new FileReader;so.onload=()=>{so.result&&(Ji.src=so.result)},so.readAsDataURL(Wn)}else if(Wn.type.startsWith("image/gif")){const so=new FileReader;so.onload=()=>{so.result&&yr(so.result)},so.readAsDataURL(Wn)}else Ji.src=window.URL.createObjectURL(Wn)})}var as=m(47046),Bt=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:as.Z}))},pn=y.forwardRef(Bt),br={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"},Jr=br,vi=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:Jr}))},Di=y.forwardRef(vi),co=m(7124),Qr=m(76278),oi=m(35918),Zi=m(41322),Ar=m(62208),tn=m(98423),Gn=m(1413),Ei={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},In=function(){var yr=(0,y.useRef)([]),ai=(0,y.useRef)(null);return(0,y.useEffect)(function(){var hi=Date.now(),Ji=!1;yr.current.forEach(function(so){if(so){Ji=!0;var Pi=so.style;Pi.transitionDuration=".3s, .3s, .3s, .06s",ai.current&&hi-ai.current<100&&(Pi.transitionDuration="0s, 0s")}}),Ji&&(ai.current=Date.now())}),yr.current},Li=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nr=function(yr){var ai=(0,Gn.Z)((0,Gn.Z)({},Ei),yr),hi=ai.className,Ji=ai.percent,so=ai.prefixCls,Pi=ai.strokeColor,us=ai.strokeLinecap,pa=ai.strokeWidth,$a=ai.style,hl=ai.trailColor,Zl=ai.trailWidth,Ml=ai.transition,Za=(0,P.Z)(ai,Li);delete Za.gapPosition;var ku=Array.isArray(Ji)?Ji:[Ji],ea=Array.isArray(Pi)?Pi:[Pi],Qa=In(),el=pa/2,Hl=100-pa/2,Jl="M ".concat(us==="round"?el:0,",").concat(el,` - L `).concat(us==="round"?Hl:100,",").concat(el),vu="0 0 100 ".concat(pa),au=0;return y.createElement("svg",(0,N.Z)({className:k()("".concat(so,"-line"),hi),viewBox:vu,preserveAspectRatio:"none",style:$a},Za),y.createElement("path",{className:"".concat(so,"-line-trail"),d:Jl,strokeLinecap:us,stroke:hl,strokeWidth:Zl||pa,fillOpacity:"0"}),ku.map(function(Cn,Eu){var ls=1;switch(us){case"round":ls=1-pa/100;break;case"square":ls=1-pa/2/100;break;default:ls=1;break}var Ks={strokeDasharray:"".concat(Cn*ls,"px, 100px"),strokeDashoffset:"-".concat(au,"px"),transition:Ml||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xa=ea[Eu]||ea[ea.length-1];return au+=Cn,y.createElement("path",{key:Eu,className:"".concat(so,"-line-path"),d:Jl,strokeLinecap:us,stroke:xa,strokeWidth:pa,fillOpacity:"0",ref:function(El){Qa[Eu]=El},style:Ks})}))},wi=nr,Mi=m(97685),Fr=m(98924),qn=0,ms=(0,Fr.Z)();function ya(){var Wn;return ms?(Wn=qn,qn+=1):Wn="TEST_OR_SSR",Wn}var ha=function(Wn){var yr=y.useState(),ai=(0,Mi.Z)(yr,2),hi=ai[0],Ji=ai[1];return y.useEffect(function(){Ji("rc_progress_".concat(ya()))},[]),Wn||hi},Ws=function(yr){var ai=yr.bg,hi=yr.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:ai}},hi)};function Ua(Wn,yr){return Object.keys(Wn).map(function(ai){var hi=parseFloat(ai),Ji="".concat(Math.floor(hi*yr),"%");return"".concat(Wn[ai]," ").concat(Ji)})}var Ao=y.forwardRef(function(Wn,yr){var ai=Wn.prefixCls,hi=Wn.color,Ji=Wn.gradientId,so=Wn.radius,Pi=Wn.style,us=Wn.ptg,pa=Wn.strokeLinecap,$a=Wn.strokeWidth,hl=Wn.size,Zl=Wn.gapDegree,Ml=hi&&(0,te.Z)(hi)==="object",Za=Ml?"#FFF":void 0,ku=hl/2,ea=y.createElement("circle",{className:"".concat(ai,"-circle-path"),r:so,cx:ku,cy:ku,stroke:Za,strokeLinecap:pa,strokeWidth:$a,opacity:us===0?0:1,style:Pi,ref:yr});if(!Ml)return ea;var Qa="".concat(Ji,"-conic"),el=Zl?"".concat(180+Zl/2,"deg"):"0deg",Hl=Ua(hi,(360-Zl)/360),Jl=Ua(hi,1),vu="conic-gradient(from ".concat(el,", ").concat(Hl.join(", "),")"),au="linear-gradient(to ".concat(Zl?"bottom":"top",", ").concat(Jl.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Qa},ea),y.createElement("foreignObject",{x:0,y:0,width:hl,height:hl,mask:"url(#".concat(Qa,")")},y.createElement(Ws,{bg:au},y.createElement(Ws,{bg:vu}))))}),dl=Ao,$r=100,er=function(yr,ai,hi,Ji,so,Pi,us,pa,$a,hl){var Zl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ml=hi/100*360*((360-Pi)/360),Za=Pi===0?0:{bottom:0,top:180,left:90,right:-90}[us],ku=(100-Ji)/100*ai;$a==="round"&&Ji!==100&&(ku+=hl/2,ku>=ai&&(ku=ai-.01));var ea=$r/2;return{stroke:typeof pa=="string"?pa:void 0,strokeDasharray:"".concat(ai,"px ").concat(yr),strokeDashoffset:ku+Zl,transform:"rotate(".concat(so+Ml+Za,"deg)"),transformOrigin:"".concat(ea,"px ").concat(ea,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Tr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pr(Wn){var yr=Wn!=null?Wn:[];return Array.isArray(yr)?yr:[yr]}var ci=function(yr){var ai=(0,Gn.Z)((0,Gn.Z)({},Ei),yr),hi=ai.id,Ji=ai.prefixCls,so=ai.steps,Pi=ai.strokeWidth,us=ai.trailWidth,pa=ai.gapDegree,$a=pa===void 0?0:pa,hl=ai.gapPosition,Zl=ai.trailColor,Ml=ai.strokeLinecap,Za=ai.style,ku=ai.className,ea=ai.strokeColor,Qa=ai.percent,el=(0,P.Z)(ai,Tr),Hl=$r/2,Jl=ha(hi),vu="".concat(Jl,"-gradient"),au=Hl-Pi/2,Cn=Math.PI*2*au,Eu=$a>0?90+$a/2:-90,ls=Cn*((360-$a)/360),Ks=(0,te.Z)(so)==="object"?so:{count:so,space:2},xa=Ks.count,Il=Ks.space,El=pr(Qa),vl=pr(ea),fu=vl.find(function(Xd){return Xd&&(0,te.Z)(Xd)==="object"}),Fu=fu&&(0,te.Z)(fu)==="object",lc=Fu?"butt":Ml,Ic=er(Cn,ls,0,100,Eu,$a,hl,Zl,lc,Pi),Uc=In(),zd=function(){var sd=0;return El.map(function(Mu,Fc){var hd=vl[Fc]||vl[vl.length-1],vd=er(Cn,ls,sd,Mu,Eu,$a,hl,hd,lc,Pi);return sd+=Mu,y.createElement(dl,{key:Fc,color:hd,ptg:Mu,radius:au,prefixCls:Ji,gradientId:vu,style:vd,strokeLinecap:lc,strokeWidth:Pi,gapDegree:$a,ref:function(nh){Uc[Fc]=nh},size:$r})}).reverse()},th=function(){var sd=Math.round(xa*(El[0]/100)),Mu=100/xa,Fc=0;return new Array(xa).fill(null).map(function(hd,vd){var Yd=vd<=sd-1?vl[0]:Zl,nh=Yd&&(0,te.Z)(Yd)==="object"?"url(#".concat(vu,")"):void 0,jd=er(Cn,ls,Fc,Mu,Eu,$a,hl,Yd,"butt",Pi,Il);return Fc+=(ls-jd.strokeDashoffset+Il)*100/ls,y.createElement("circle",{key:vd,className:"".concat(Ji,"-circle-path"),r:au,cx:Hl,cy:Hl,stroke:nh,strokeWidth:Pi,opacity:1,style:jd,ref:function(id){Uc[vd]=id}})})};return y.createElement("svg",(0,N.Z)({className:k()("".concat(Ji,"-circle"),ku),viewBox:"0 0 ".concat($r," ").concat($r),style:Za,id:hi,role:"presentation"},el),!xa&&y.createElement("circle",{className:"".concat(Ji,"-circle-trail"),r:au,cx:Hl,cy:Hl,stroke:Zl,strokeLinecap:lc,strokeWidth:us||Pi,style:Ic}),xa?th():zd())},Eo=ci,mo={Line:wi,Circle:Eo},Ts=m(61781);function xs(Wn){return!Wn||Wn<0?0:Wn>100?100:Wn}function Sr(Wn){let{success:yr,successPercent:ai}=Wn,hi=ai;return yr&&"progress"in yr&&(hi=yr.progress),yr&&"percent"in yr&&(hi=yr.percent),hi}const ui=Wn=>{let{percent:yr,success:ai,successPercent:hi}=Wn;const Ji=xs(Sr({success:ai,successPercent:hi}));return[Ji,xs(xs(yr)-Ji)]},Xt=Wn=>{let{success:yr={},strokeColor:ai}=Wn;const{strokeColor:hi}=yr;return[hi||No.ez.green,ai||null]},gn=(Wn,yr,ai)=>{var hi,Ji,so,Pi;let us=-1,pa=-1;if(yr==="step"){const $a=ai.steps,hl=ai.strokeWidth;typeof Wn=="string"||typeof Wn=="undefined"?(us=Wn==="small"?2:14,pa=hl!=null?hl:8):typeof Wn=="number"?[us,pa]=[Wn,Wn]:[us=14,pa=8]=Wn,us*=$a}else if(yr==="line"){const $a=ai==null?void 0:ai.strokeWidth;typeof Wn=="string"||typeof Wn=="undefined"?pa=$a||(Wn==="small"?6:8):typeof Wn=="number"?[us,pa]=[Wn,Wn]:[us=-1,pa=8]=Wn}else(yr==="circle"||yr==="dashboard")&&(typeof Wn=="string"||typeof Wn=="undefined"?[us,pa]=Wn==="small"?[60,60]:[120,120]:typeof Wn=="number"?[us,pa]=[Wn,Wn]:(us=(Ji=(hi=Wn[0])!==null&&hi!==void 0?hi:Wn[1])!==null&&Ji!==void 0?Ji:120,pa=(Pi=(so=Wn[0])!==null&&so!==void 0?so:Wn[1])!==null&&Pi!==void 0?Pi:120));return[us,pa]},En=3,tt=Wn=>En/Wn*100;var gt=Wn=>{const{prefixCls:yr,trailColor:ai=null,strokeLinecap:hi="round",gapPosition:Ji,gapDegree:so,width:Pi=120,type:us,children:pa,success:$a,size:hl=Pi}=Wn,[Zl,Ml]=gn(hl,"circle");let{strokeWidth:Za}=Wn;Za===void 0&&(Za=Math.max(tt(Zl),6));const ku={width:Zl,height:Ml,fontSize:Zl*.15+6},ea=y.useMemo(()=>{if(so||so===0)return so;if(us==="dashboard")return 75},[so,us]),Qa=Ji||us==="dashboard"&&"bottom"||void 0,el=Object.prototype.toString.call(Wn.strokeColor)==="[object Object]",Hl=Xt({success:$a,strokeColor:Wn.strokeColor}),Jl=k()(`${yr}-inner`,{[`${yr}-circle-gradient`]:el}),vu=y.createElement(Eo,{percent:ui(Wn),strokeWidth:Za,trailWidth:Za,strokeColor:Hl,strokeLinecap:hi,trailColor:ai,prefixCls:yr,gapDegree:ea,gapPosition:Qa});return y.createElement("div",{className:Jl,style:ku},Zl<=20?y.createElement(Ts.Z,{title:pa},y.createElement("span",null,vu)):y.createElement(y.Fragment,null,vu,pa))},Ne=function(Wn,yr){var ai={};for(var hi in Wn)Object.prototype.hasOwnProperty.call(Wn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=Wn[hi]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(Wn);Ji{let yr=[];return Object.keys(Wn).forEach(ai=>{const hi=parseFloat(ai.replace(/%/g,""));isNaN(hi)||yr.push({key:hi,value:Wn[ai]})}),yr=yr.sort((ai,hi)=>ai.key-hi.key),yr.map(ai=>{let{key:hi,value:Ji}=ai;return`${Ji} ${hi}%`}).join(", ")},St=(Wn,yr)=>{const{from:ai=No.ez.blue,to:hi=No.ez.blue,direction:Ji=yr==="rtl"?"to left":"to right"}=Wn,so=Ne(Wn,["from","to","direction"]);if(Object.keys(so).length!==0){const Pi=lt(so);return{backgroundImage:`linear-gradient(${Ji}, ${Pi})`}}return{backgroundImage:`linear-gradient(${Ji}, ${ai}, ${hi})`}};var jn=Wn=>{const{prefixCls:yr,direction:ai,percent:hi,size:Ji,strokeWidth:so,strokeColor:Pi,strokeLinecap:us="round",children:pa,trailColor:$a=null,success:hl}=Wn,Zl=Pi&&typeof Pi!="string"?St(Pi,ai):{backgroundColor:Pi},Ml=us==="square"||us==="butt"?0:void 0,Za={backgroundColor:$a||void 0,borderRadius:Ml},ku=Ji!=null?Ji:[-1,so||(Ji==="small"?6:8)],[ea,Qa]=gn(ku,"line",{strokeWidth:so}),el=Object.assign({width:`${xs(hi)}%`,height:Qa,borderRadius:Ml},Zl),Hl=Sr(Wn),Jl={width:`${xs(Hl)}%`,height:Qa,borderRadius:Ml,backgroundColor:hl==null?void 0:hl.strokeColor},vu={width:ea<0?"100%":ea,height:Qa};return y.createElement(y.Fragment,null,y.createElement("div",{className:`${yr}-outer`,style:vu},y.createElement("div",{className:`${yr}-inner`,style:Za},y.createElement("div",{className:`${yr}-bg`,style:el}),Hl!==void 0?y.createElement("div",{className:`${yr}-success-bg`,style:Jl}):null)),pa)},ki=Wn=>{const{size:yr,steps:ai,percent:hi=0,strokeWidth:Ji=8,strokeColor:so,trailColor:Pi=null,prefixCls:us,children:pa}=Wn,$a=Math.round(ai*(hi/100)),hl=yr==="small"?2:14,Zl=yr!=null?yr:[hl,Ji],[Ml,Za]=gn(Zl,"step",{steps:ai,strokeWidth:Ji}),ku=Ml/ai,ea=new Array(ai);for(let Qa=0;Qa{const yr=Wn?"100%":"-100%";return new hs.E4(`antProgress${Wn?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${yr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${yr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ki=Wn=>{const{componentCls:yr,iconCls:ai}=Wn;return{[yr]:Object.assign(Object.assign({},(0,Bn.Wf)(Wn)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Wn.fontSize,marginInlineEnd:Wn.marginXS,marginBottom:Wn.marginXS},[`${yr}-outer`]:{display:"inline-block",width:"100%"},[`&${yr}-show-info`]:{[`${yr}-outer`]:{marginInlineEnd:`calc(-2em - ${Wn.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Wn.paddingXS}px)`}},[`${yr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Wn.remainingColor,borderRadius:Wn.lineBorderRadius},[`${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:Wn.defaultColor}},[`${yr}-success-bg, ${yr}-bg`]:{position:"relative",backgroundColor:Wn.defaultColor,borderRadius:Wn.lineBorderRadius,transition:`all ${Wn.motionDurationSlow} ${Wn.motionEaseInOutCirc}`},[`${yr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Wn.colorSuccess},[`${yr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Wn.marginXS,color:Wn.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ai]:{fontSize:Wn.fontSize}},[`&${yr}-status-active`]:{[`${yr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Wn.colorBgContainer,borderRadius:Wn.lineBorderRadius,opacity:0,animationName:Vi(),animationDuration:Wn.progressActiveMotionDuration,animationTimingFunction:Wn.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${yr}-rtl${yr}-status-active`]:{[`${yr}-bg::before`]:{animationName:Vi(!0)}},[`&${yr}-status-exception`]:{[`${yr}-bg`]:{backgroundColor:Wn.colorError},[`${yr}-text`]:{color:Wn.colorError}},[`&${yr}-status-exception ${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:Wn.colorError}},[`&${yr}-status-success`]:{[`${yr}-bg`]:{backgroundColor:Wn.colorSuccess},[`${yr}-text`]:{color:Wn.colorSuccess}},[`&${yr}-status-success ${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:Wn.colorSuccess}}})}},fs=Wn=>{const{componentCls:yr,iconCls:ai}=Wn;return{[yr]:{[`${yr}-circle-trail`]:{stroke:Wn.remainingColor},[`&${yr}-circle ${yr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${yr}-circle ${yr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Wn.circleTextColor,fontSize:Wn.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ai]:{fontSize:`${Wn.fontSize/Wn.fontSizeSM}em`}},[`${yr}-circle&-status-exception`]:{[`${yr}-text`]:{color:Wn.colorError}},[`${yr}-circle&-status-success`]:{[`${yr}-text`]:{color:Wn.colorSuccess}}},[`${yr}-inline-circle`]:{lineHeight:1,[`${yr}-inner`]:{verticalAlign:"bottom"}}}},Ns=Wn=>{const{componentCls:yr}=Wn;return{[yr]:{[`${yr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Wn.progressStepMinWidth,marginInlineEnd:Wn.progressStepMarginInlineEnd,backgroundColor:Wn.remainingColor,transition:`all ${Wn.motionDurationSlow}`,"&-active":{backgroundColor:Wn.defaultColor}}}}}},Bs=Wn=>{const{componentCls:yr,iconCls:ai}=Wn;return{[yr]:{[`${yr}-small&-line, ${yr}-small&-line ${yr}-text ${ai}`]:{fontSize:Wn.fontSizeSM}}}};var _a=(0,ii.Z)("Progress",Wn=>{const yr=Wn.marginXXS/2,ai=(0,gi.TS)(Wn,{progressStepMarginInlineEnd:yr,progressStepMinWidth:yr,progressActiveMotionDuration:"2.4s"});return[Ki(ai),fs(ai),Ns(ai),Bs(ai)]},Wn=>({circleTextColor:Wn.colorText,defaultColor:Wn.colorInfo,remainingColor:Wn.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),oo=function(Wn,yr){var ai={};for(var hi in Wn)Object.prototype.hasOwnProperty.call(Wn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=Wn[hi]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(Wn);Ji{const{prefixCls:ai,className:hi,rootClassName:Ji,steps:so,strokeColor:Pi,percent:us=0,size:pa="default",showInfo:$a=!0,type:hl="line",status:Zl,format:Ml,style:Za}=Wn,ku=oo(Wn,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ea=y.useMemo(()=>{var El,vl;const fu=Sr(Wn);return parseInt(fu!==void 0?(El=fu!=null?fu:0)===null||El===void 0?void 0:El.toString():(vl=us!=null?us:0)===null||vl===void 0?void 0:vl.toString(),10)},[us,Wn.success,Wn.successPercent]),Qa=y.useMemo(()=>!oa.includes(Zl)&&ea>=100?"success":Zl||"normal",[Zl,ea]),{getPrefixCls:el,direction:Hl,progress:Jl}=y.useContext(ft.E_),vu=el("progress",ai),[au,Cn]=_a(vu),Eu=y.useMemo(()=>{if(!$a)return null;const El=Sr(Wn);let vl;const fu=Ml||(lc=>`${lc}%`),Fu=hl==="line";return Ml||Qa!=="exception"&&Qa!=="success"?vl=fu(xs(us),xs(El)):Qa==="exception"?vl=Fu?y.createElement(Zi.Z,null):y.createElement(Ar.Z,null):Qa==="success"&&(vl=Fu?y.createElement(Qr.Z,null):y.createElement(oi.Z,null)),y.createElement("span",{className:`${vu}-text`,title:typeof vl=="string"?vl:void 0},vl)},[$a,us,ea,Qa,hl,vu,Ml]),ls=Array.isArray(Pi)?Pi[0]:Pi,Ks=typeof Pi=="string"||Array.isArray(Pi)?Pi:void 0;let xa;hl==="line"?xa=so?y.createElement(ki,Object.assign({},Wn,{strokeColor:Ks,prefixCls:vu,steps:so}),Eu):y.createElement(jn,Object.assign({},Wn,{strokeColor:ls,prefixCls:vu,direction:Hl}),Eu):(hl==="circle"||hl==="dashboard")&&(xa=y.createElement(gt,Object.assign({},Wn,{strokeColor:ls,prefixCls:vu,progressStatus:Qa}),Eu));const Il=k()(vu,`${vu}-status-${Qa}`,`${vu}-${hl==="dashboard"&&"circle"||so&&"steps"||hl}`,{[`${vu}-inline-circle`]:hl==="circle"&&gn(pa,"circle")[0]<=20,[`${vu}-show-info`]:$a,[`${vu}-${pa}`]:typeof pa=="string",[`${vu}-rtl`]:Hl==="rtl"},Jl==null?void 0:Jl.className,hi,Ji,Cn);return au(y.createElement("div",Object.assign({ref:yr,style:Object.assign(Object.assign({},Jl==null?void 0:Jl.style),Za),className:Il,role:"progressbar","aria-valuenow":ea},(0,tn.Z)(ku,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),xa))}),Fa=Bl,la=y.forwardRef((Wn,yr)=>{let{prefixCls:ai,className:hi,style:Ji,locale:so,listType:Pi,file:us,items:pa,progress:$a,iconRender:hl,actionIconRender:Zl,itemRender:Ml,isImgUrl:Za,showPreviewIcon:ku,showRemoveIcon:ea,showDownloadIcon:Qa,previewIcon:el,removeIcon:Hl,downloadIcon:Jl,onPreview:vu,onDownload:au,onClose:Cn}=Wn;var Eu,ls;const{status:Ks}=us,[xa,Il]=y.useState(Ks);y.useEffect(()=>{Ks!=="removed"&&Il(Ks)},[Ks]);const[El,vl]=y.useState(!1);y.useEffect(()=>{const id=setTimeout(()=>{vl(!0)},300);return()=>{clearTimeout(id)}},[]);const fu=hl(us);let Fu=y.createElement("div",{className:`${ai}-icon`},fu);if(Pi==="picture"||Pi==="picture-card"||Pi==="picture-circle")if(xa==="uploading"||!us.thumbUrl&&!us.url){const id=k()(`${ai}-list-item-thumbnail`,{[`${ai}-list-item-file`]:xa!=="uploading"});Fu=y.createElement("div",{className:id},fu)}else{const id=Za!=null&&Za(us)?y.createElement("img",{src:us.thumbUrl||us.url,alt:us.name,className:`${ai}-list-item-image`,crossOrigin:us.crossOrigin}):fu,nd=k()(`${ai}-list-item-thumbnail`,{[`${ai}-list-item-file`]:Za&&!Za(us)});Fu=y.createElement("a",{className:nd,onClick:Pf=>vu(us,Pf),href:us.url||us.thumbUrl,target:"_blank",rel:"noopener noreferrer"},id)}const lc=k()(`${ai}-list-item`,`${ai}-list-item-${xa}`),Ic=typeof us.linkProps=="string"?JSON.parse(us.linkProps):us.linkProps,Uc=ea?Zl((typeof Hl=="function"?Hl(us):Hl)||y.createElement(pn,null),()=>Cn(us),ai,so.removeFile):null,zd=Qa&&xa==="done"?Zl((typeof Jl=="function"?Jl(us):Jl)||y.createElement(Di,null),()=>au(us),ai,so.downloadFile):null,th=Pi!=="picture-card"&&Pi!=="picture-circle"&&y.createElement("span",{key:"download-delete",className:k()(`${ai}-list-item-actions`,{picture:Pi==="picture"})},zd,Uc),Xd=k()(`${ai}-list-item-name`),sd=us.url?[y.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xd,title:us.name},Ic,{href:us.url,onClick:id=>vu(us,id)}),us.name),th]:[y.createElement("span",{key:"view",className:Xd,onClick:id=>vu(us,id),title:us.name},us.name),th],Mu={pointerEvents:"none",opacity:.5},Fc=ku?y.createElement("a",{href:us.url||us.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:us.url||us.thumbUrl?void 0:Mu,onClick:id=>vu(us,id),title:so.previewFile},typeof el=="function"?el(us):el||y.createElement(co.Z,null)):null,hd=(Pi==="picture-card"||Pi==="picture-circle")&&xa!=="uploading"&&y.createElement("span",{className:`${ai}-list-item-actions`},Fc,xa==="done"&&zd,Uc),{getPrefixCls:vd}=y.useContext(ft.E_),Yd=vd(),nh=y.createElement("div",{className:lc},Fu,sd,hd,El&&y.createElement(Ui.ZP,{motionName:`${Yd}-fade`,visible:xa==="uploading",motionDeadline:2e3},id=>{let{className:nd}=id;const Pf="percent"in us?y.createElement(Fa,Object.assign({},$a,{type:"line",percent:us.percent,"aria-label":us["aria-label"],"aria-labelledby":us["aria-labelledby"]})):null;return y.createElement("div",{className:k()(`${ai}-list-item-progress`,nd)},Pf)})),jd=us.response&&typeof us.response=="string"?us.response:((Eu=us.error)===null||Eu===void 0?void 0:Eu.statusText)||((ls=us.error)===null||ls===void 0?void 0:ls.message)||so.uploadError,yh=xa==="error"?y.createElement(Ts.Z,{title:jd,getPopupContainer:id=>id.parentNode},nh):nh;return y.createElement("div",{className:k()(`${ai}-list-item-container`,hi),style:Ji,ref:yr},Ml?Ml(yh,us,pa,{download:au.bind(null,us),preview:vu.bind(null,us),remove:Cn.bind(null,us)}):yh)});const Nl=(Wn,yr)=>{const{listType:ai="text",previewFile:hi=ao,onPreview:Ji,onDownload:so,onRemove:Pi,locale:us,iconRender:pa,isImageUrl:$a=Qn,prefixCls:hl,items:Zl=[],showPreviewIcon:Ml=!0,showRemoveIcon:Za=!0,showDownloadIcon:ku=!1,removeIcon:ea,previewIcon:Qa,downloadIcon:el,progress:Hl={size:[-1,2],showInfo:!1},appendAction:Jl,appendActionVisible:vu=!0,itemRender:au,disabled:Cn}=Wn,Eu=(0,xo.Z)(),[ls,Ks]=y.useState(!1);y.useEffect(()=>{ai!=="picture"&&ai!=="picture-card"&&ai!=="picture-circle"||(Zl||[]).forEach(Mu=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Mu.originFileObj instanceof File||Mu.originFileObj instanceof Blob)||Mu.thumbUrl!==void 0||(Mu.thumbUrl="",hi&&hi(Mu.originFileObj).then(Fc=>{Mu.thumbUrl=Fc||"",Eu()}))})},[ai,Zl,hi]),y.useEffect(()=>{Ks(!0)},[]);const xa=(Mu,Fc)=>{if(Ji)return Fc==null||Fc.preventDefault(),Ji(Mu)},Il=Mu=>{typeof so=="function"?so(Mu):Mu.url&&window.open(Mu.url)},El=Mu=>{Pi==null||Pi(Mu)},vl=Mu=>{if(pa)return pa(Mu,ai);const Fc=Mu.status==="uploading",hd=$a&&$a(Mu)?y.createElement(qr,null):y.createElement(en,null);let vd=Fc?y.createElement(fr.Z,null):y.createElement(uo,null);return ai==="picture"?vd=Fc?y.createElement(fr.Z,null):hd:(ai==="picture-card"||ai==="picture-circle")&&(vd=Fc?us.uploading:hd),vd},fu=(Mu,Fc,hd,vd)=>{const Yd={type:"text",size:"small",title:vd,onClick:nh=>{Fc(),(0,zn.l$)(Mu)&&Mu.props.onClick&&Mu.props.onClick(nh)},className:`${hd}-list-item-action`,disabled:Cn};if((0,zn.l$)(Mu)){const nh=(0,zn.Tm)(Mu,Object.assign(Object.assign({},Mu.props),{onClick:()=>{}}));return y.createElement(Kn.ZP,Object.assign({},Yd,{icon:nh}))}return y.createElement(Kn.ZP,Object.assign({},Yd),y.createElement("span",null,Mu))};y.useImperativeHandle(yr,()=>({handlePreview:xa,handleDownload:Il}));const{getPrefixCls:Fu}=y.useContext(ft.E_),lc=Fu("upload",hl),Ic=Fu(),Uc=k()(`${lc}-list`,`${lc}-list-${ai}`),zd=(0,A.Z)(Zl.map(Mu=>({key:Mu.uid,file:Mu})));let Xd={motionDeadline:2e3,motionName:`${lc}-${ai==="picture-card"||ai==="picture-circle"?"animate-inline":"animate"}`,keys:zd,motionAppear:ls};const sd=y.useMemo(()=>{const Mu=Object.assign({},(0,Us.Z)(Ic));return delete Mu.onAppearEnd,delete Mu.onEnterEnd,delete Mu.onLeaveEnd,Mu},[Ic]);return ai!=="picture-card"&&ai!=="picture-circle"&&(Xd=Object.assign(Object.assign({},sd),Xd)),y.createElement("div",{className:Uc},y.createElement(Ui.V4,Object.assign({},Xd,{component:!1}),Mu=>{let{key:Fc,file:hd,className:vd,style:Yd}=Mu;return y.createElement(la,{key:Fc,locale:us,prefixCls:lc,className:vd,style:Yd,file:hd,items:Zl,progress:Hl,listType:ai,isImgUrl:$a,showPreviewIcon:Ml,showRemoveIcon:Za,showDownloadIcon:ku,removeIcon:ea,previewIcon:Qa,downloadIcon:el,iconRender:vl,actionIconRender:fu,itemRender:au,onPreview:xa,onDownload:Il,onClose:El})}),Jl&&y.createElement(Ui.ZP,Object.assign({},Xd,{visible:vu,forceRender:!0}),Mu=>{let{className:Fc,style:hd}=Mu;return(0,zn.Tm)(Jl,vd=>({className:k()(vd.className,Fc),style:Object.assign(Object.assign(Object.assign({},hd),{pointerEvents:Fc?"none":void 0}),vd.style)}))}))};var Hi=y.forwardRef(Nl),to=function(Wn,yr,ai,hi){function Ji(so){return so instanceof ai?so:new ai(function(Pi){Pi(so)})}return new(ai||(ai=Promise))(function(so,Pi){function us(hl){try{$a(hi.next(hl))}catch(Zl){Pi(Zl)}}function pa(hl){try{$a(hi.throw(hl))}catch(Zl){Pi(Zl)}}function $a(hl){hl.done?so(hl.value):Ji(hl.value).then(us,pa)}$a((hi=hi.apply(Wn,yr||[])).next())})};const sa=`__LIST_IGNORE_${Date.now()}__`,Cs=(Wn,yr)=>{const{fileList:ai,defaultFileList:hi,onRemove:Ji,showUploadList:so=!0,listType:Pi="text",onPreview:us,onDownload:pa,onChange:$a,onDrop:hl,previewFile:Zl,disabled:Ml,locale:Za,iconRender:ku,isImageUrl:ea,progress:Qa,prefixCls:el,className:Hl,type:Jl="select",children:vu,style:au,itemRender:Cn,maxCount:Eu,data:ls={},multiple:Ks=!1,action:xa="",accept:Il="",supportServerRender:El=!0,rootClassName:vl}=Wn,fu=y.useContext($t.Z),Fu=Ml!=null?Ml:fu,[lc,Ic]=(0,bt.Z)(hi||[],{value:ai,postState:wd=>wd!=null?wd:[]}),[Uc,zd]=y.useState("drop"),th=y.useRef(null);y.useMemo(()=>{const wd=Date.now();(ai||[]).forEach((qd,ja)=>{!qd.uid&&!Object.isFrozen(qd)&&(qd.uid=`__AUTO__${wd}_${ja}__`)})},[ai]);const Xd=(wd,qd,ja)=>{let ru=(0,A.Z)(qd),zl=!1;Eu===1?ru=ru.slice(-1):Eu&&(zl=ru.length>Eu,ru=ru.slice(0,Eu)),(0,b.flushSync)(()=>{Ic(ru)});const Au={file:wd,fileList:ru};ja&&(Au.event=ja),(!zl||ru.some(Uu=>Uu.uid===wd.uid))&&(0,b.flushSync)(()=>{$a==null||$a(Au)})},sd=(wd,qd)=>to(void 0,void 0,void 0,function*(){const{beforeUpload:ja,transformFile:ru}=Wn;let zl=wd;if(ja){const Au=yield ja(wd,qd);if(Au===!1)return!1;if(delete wd[sa],Au===sa)return Object.defineProperty(wd,sa,{value:!0,configurable:!0}),!1;typeof Au=="object"&&Au&&(zl=Au)}return ru&&(zl=yield ru(zl)),zl}),Mu=wd=>{const qd=wd.filter(zl=>!zl.file[sa]);if(!qd.length)return;const ja=qd.map(zl=>Or(zl.file));let ru=(0,A.Z)(lc);ja.forEach(zl=>{ru=mi(zl,ru)}),ja.forEach((zl,Au)=>{let Uu=zl;if(qd[Au].parsedFile)zl.status="uploading";else{const{originFileObj:Vd}=zl;let Ud;try{Ud=new File([Vd],Vd.name,{type:Vd.type})}catch(sh){Ud=new Blob([Vd],{type:Vd.type}),Ud.name=Vd.name,Ud.lastModifiedDate=new Date,Ud.lastModified=new Date().getTime()}Ud.uid=zl.uid,Uu=Ud}Xd(Uu,ru)})},Fc=(wd,qd,ja)=>{try{typeof wd=="string"&&(wd=JSON.parse(wd))}catch(Au){}if(!Er(qd,lc))return;const ru=Or(qd);ru.status="done",ru.percent=100,ru.response=wd,ru.xhr=ja;const zl=mi(ru,lc);Xd(ru,zl)},hd=(wd,qd)=>{if(!Er(qd,lc))return;const ja=Or(qd);ja.status="uploading",ja.percent=wd.percent;const ru=mi(ja,lc);Xd(ja,ru,wd)},vd=(wd,qd,ja)=>{if(!Er(ja,lc))return;const ru=Or(ja);ru.error=wd,ru.response=qd,ru.status="error";const zl=mi(ru,lc);Xd(ru,zl)},Yd=wd=>{let qd;Promise.resolve(typeof Ji=="function"?Ji(wd):Ji).then(ja=>{var ru;if(ja===!1)return;const zl=ti(wd,lc);zl&&(qd=Object.assign(Object.assign({},wd),{status:"removed"}),lc==null||lc.forEach(Au=>{const Uu=qd.uid!==void 0?"uid":"name";Au[Uu]===qd[Uu]&&!Object.isFrozen(Au)&&(Au.status="removed")}),(ru=th.current)===null||ru===void 0||ru.abort(qd),Xd(qd,zl))})},nh=wd=>{zd(wd.type),wd.type==="drop"&&(hl==null||hl(wd))};y.useImperativeHandle(yr,()=>({onBatchStart:Mu,onSuccess:Fc,onProgress:hd,onError:vd,fileList:lc,upload:th.current}));const{getPrefixCls:jd,direction:yh,upload:id}=y.useContext(ft.E_),nd=jd("upload",el),Pf=Object.assign(Object.assign({onBatchStart:Mu,onError:vd,onProgress:hd,onSuccess:Fc},Wn),{data:ls,multiple:Ks,action:xa,accept:Il,supportServerRender:El,prefixCls:nd,disabled:Fu,beforeUpload:sd,onChange:void 0});delete Pf.className,delete Pf.style,(!vu||Fu)&&delete Pf.id;const[Jd,cc]=Mt(nd),[Yc]=(0,vt.Z)("Upload",yn.Z.Upload),{showRemoveIcon:jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:xp,downloadIcon:Nf}=typeof so=="boolean"?{}:so,ch=(wd,qd)=>so?y.createElement(Hi,{prefixCls:nd,listType:Pi,items:lc,previewFile:Zl,onPreview:us,onDownload:pa,onRemove:Yd,showRemoveIcon:!Fu&&jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:xp,downloadIcon:Nf,iconRender:ku,locale:Object.assign(Object.assign({},Yc),Za),isImageUrl:ea,progress:Qa,appendAction:wd,appendActionVisible:qd,itemRender:Cn,disabled:Fu}):wd,Th=k()(`${nd}-wrapper`,Hl,vl,cc,id==null?void 0:id.className,{[`${nd}-rtl`]:yh==="rtl",[`${nd}-picture-card-wrapper`]:Pi==="picture-card",[`${nd}-picture-circle-wrapper`]:Pi==="picture-circle"}),yu=Object.assign(Object.assign({},id==null?void 0:id.style),au);if(Jl==="drag"){const wd=k()(cc,nd,`${nd}-drag`,{[`${nd}-drag-uploading`]:lc.some(qd=>qd.status==="uploading"),[`${nd}-drag-hover`]:Uc==="dragover",[`${nd}-disabled`]:Fu,[`${nd}-rtl`]:yh==="rtl"});return Jd(y.createElement("span",{className:Th},y.createElement("div",{className:wd,style:yu,onDrop:nh,onDragOver:nh,onDragLeave:nh},y.createElement(He,Object.assign({},Pf,{ref:th,className:`${nd}-btn`}),y.createElement("div",{className:`${nd}-drag-container`},vu))),ch()))}const ff=k()(nd,`${nd}-select`,{[`${nd}-disabled`]:Fu}),Bu=(wd=>y.createElement("div",{className:ff,style:wd},y.createElement(He,Object.assign({},Pf,{ref:th}))))(vu?void 0:{display:"none"});return Jd(Pi==="picture-card"||Pi==="picture-circle"?y.createElement("span",{className:Th},ch(Bu,!!vu)):y.createElement("span",{className:Th},Bu,ch()))};var Wu=y.forwardRef(Cs),rc=function(Wn,yr){var ai={};for(var hi in Wn)Object.prototype.hasOwnProperty.call(Wn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=Wn[hi]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(Wn);Ji{var{style:ai,height:hi}=Wn,Ji=rc(Wn,["style","height"]);return y.createElement(Wu,Object.assign({ref:yr},Ji,{type:"drag",style:Object.assign(Object.assign({},ai),{height:hi})}))});const eo=Wu;eo.Dragger=vo,eo.LIST_IGNORE=sa;var ds=eo},1028:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(25633)),b=V.default=A.default},80037:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(5584)),b=V.default=A.default},25633:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(27590)),b=y(m(52040));const z={lang:Object.assign({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"]},A.default),timePickerLocale:Object.assign({},b.default)};var k=V.default=z},5584:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(85369)),b=y(m(15704));const z={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},A.default),timePickerLocale:Object.assign({},b.default)};z.lang.ok="\u786E\u5B9A";var k=V.default=z},18253:function(nt,V,m){"use strict";var y,A=m(64836).default;y={value:!0},V.Z=void 0;var b=A(m(62273)),z=A(m(1028)),k=A(m(25633)),N=A(m(52040));const w="${label} is not a valid ${type}",I={locale:"en",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},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"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var C=V.Z=I},82925:function(nt,V,m){"use strict";var y,A=m(64836).default;y={value:!0},V.Z=void 0;var b=A(m(74219)),z=A(m(80037)),k=A(m(5584)),N=A(m(15704));const w="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",I={locale:"zh-cn",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var C=V.Z=I},52040:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var y=V.default=m},15704:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var y=V.default=m},93771:function(nt,V,m){"use strict";m.d(V,{Z:function(){return bt}});var y=m(87462),A=m(97685),b=m(4942),z=m(91),k=m(67294),N=m(94184),w=m.n(N),I=m(16397),C=m(54775),f=m(1413),S=m(71002),P=m(44958),W=m(27571),te=m(80334);function q(ft){return ft.replace(/-(.)/g,function($t,vt){return vt.toUpperCase()})}function ie(ft,$t){(0,te.ZP)(ft,"[@ant-design/icons] ".concat($t))}function he(ft){return(0,S.Z)(ft)==="object"&&typeof ft.name=="string"&&typeof ft.theme=="string"&&((0,S.Z)(ft.icon)==="object"||typeof ft.icon=="function")}function de(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ft).reduce(function($t,vt){var yn=ft[vt];switch(vt){case"class":$t.className=yn,delete $t.class;break;default:delete $t[vt],$t[q(vt)]=yn}return $t},{})}function fe(ft,$t,vt){return vt?k.createElement(ft.tag,(0,f.Z)((0,f.Z)({key:$t},de(ft.attrs)),vt),(ft.children||[]).map(function(yn,Bn){return fe(yn,"".concat($t,"-").concat(ft.tag,"-").concat(Bn))})):k.createElement(ft.tag,(0,f.Z)({key:$t},de(ft.attrs)),(ft.children||[]).map(function(yn,Bn){return fe(yn,"".concat($t,"-").concat(ft.tag,"-").concat(Bn))}))}function ke(ft){return(0,I.R_)(ft)[0]}function Ie(ft){return ft?Array.isArray(ft)?ft:[ft]:[]}var Be={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},be=` + `]:{[Ui]:{position:"relative",height:Jr+zn.lineWidth*2+zn.paddingXS*2,padding:zn.paddingXS,border:`${zn.lineWidth}px ${zn.lineType} ${zn.colorBorder}`,borderRadius:zn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ui}-thumbnail`]:Object.assign(Object.assign({},Wn.vS),{width:Jr,height:Jr,lineHeight:`${Jr+zn.paddingSM}px`,textAlign:"center",flex:"none",[Zr]:{fontSize:zn.fontSizeHeading2,color:zn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ui}-progress`]:{bottom:_i,width:`calc(100% - ${zn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Jr+zn.paddingXS}},[`${Ui}-error`]:{borderColor:zn.colorError,[`${Ui}-thumbnail ${Zr}`]:{[`svg path[fill='${$o.iN[0]}']`]:{fill:zn.colorErrorBg},[`svg path[fill='${$o.iN.primary}']`]:{fill:zn.colorError}}},[`${Ui}-uploading`]:{borderStyle:"dashed",[`${Ui}-name`]:{marginBottom:_i}}},[`${so}${so}-picture-circle ${Ui}`]:{[`&, &::before, ${Ui}-thumbnail`]:{borderRadius:"50%"}}}}},Dt=zn=>{const{componentCls:ur,iconCls:Zr,fontSizeLG:Jr,colorTextLightSolid:_i}=zn,so=`${ur}-list`,Ui=`${so}-item`,hs=zn.uploadPicCardSize;return{[` + ${ur}-wrapper${ur}-picture-card-wrapper, + ${ur}-wrapper${ur}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,Wn.dF)()),{display:"inline-block",width:"100%",[`${ur}${ur}-select`]:{width:hs,height:hs,marginInlineEnd:zn.marginXS,marginBottom:zn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:zn.colorFillAlter,border:`${zn.lineWidth}px dashed ${zn.colorBorder}`,borderRadius:zn.borderRadiusLG,cursor:"pointer",transition:`border-color ${zn.motionDurationSlow}`,[`> ${ur}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ur}-disabled):hover`]:{borderColor:zn.colorPrimary}},[`${so}${so}-picture-card, ${so}${so}-picture-circle`]:{[`${so}-item-container`]:{display:"inline-block",width:hs,height:hs,marginBlock:`0 ${zn.marginXS}px`,marginInline:`0 ${zn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ui]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${zn.paddingXS*2}px)`,height:`calc(100% - ${zn.paddingXS*2}px)`,backgroundColor:zn.colorBgMask,opacity:0,transition:`all ${zn.motionDurationSlow}`,content:'" "'}},[`${Ui}:hover`]:{[`&::before, ${Ui}-actions`]:{opacity:1}},[`${Ui}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${zn.motionDurationSlow}`,[`${Zr}-eye, ${Zr}-download, ${Zr}-delete`]:{zIndex:10,width:Jr,margin:`0 ${zn.marginXXS}px`,fontSize:Jr,cursor:"pointer",transition:`all ${zn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ui}-actions, ${Ui}-actions:hover`]:{[`${Zr}-eye, ${Zr}-download, ${Zr}-delete`]:{color:new Mn.C(_i).setAlpha(.65).toRgbString(),"&:hover":{color:_i}}},[`${Ui}-thumbnail, ${Ui}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ui}-name`]:{display:"none",textAlign:"center"},[`${Ui}-file + ${Ui}-name`]:{position:"absolute",bottom:zn.margin,display:"block",width:`calc(100% - ${zn.paddingXS*2}px)`},[`${Ui}-uploading`]:{[`&${Ui}`]:{backgroundColor:zn.colorFillAlter},[`&::before, ${Zr}-eye, ${Zr}-download, ${Zr}-delete`]:{display:"none"}},[`${Ui}-progress`]:{bottom:zn.marginXL,width:`calc(100% - ${zn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ur}-wrapper${ur}-picture-circle-wrapper`]:{[`${ur}${ur}-select`]:{borderRadius:"50%"}}}};var mn=zn=>{const{componentCls:ur}=zn;return{[`${ur}-rtl`]:{direction:"rtl"}}};const kn=zn=>{const{componentCls:ur,colorTextDisabled:Zr}=zn;return{[`${ur}-wrapper`]:Object.assign(Object.assign({},(0,Wn.Wf)(zn)),{[ur]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ur}-select`]:{display:"inline-block"},[`${ur}-disabled`]:{color:Zr,cursor:"not-allowed"}})}};var an=(0,wi.Z)("Upload",zn=>{const{fontSizeHeading3:ur,fontSize:Zr,lineHeight:Jr,lineWidth:_i,controlHeightLG:so}=zn,Ui=Math.round(Zr*Jr),hs=(0,oo.TS)(zn,{uploadThumbnailSize:ur*2,uploadProgressOffset:Ui/2+_i,uploadPicCardSize:so*2.55});return[kn(hs),Ti(hs),nt(hs),Dt(hs),Ho(hs),ai(hs),mn(hs),(0,$r.Z)(hs)]},zn=>({actionsColor:zn.colorTextDescription})),tn={icon:function(ur,Zr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Zr}},{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:ur}}]}},name:"file",theme:"twotone"},kt=tn,en=_(93771),Vn=function(ur,Zr){return v.createElement(en.Z,(0,V.Z)({},ur,{ref:Zr,icon:kt}))},on=v.forwardRef(Vn),Dr=_(22508),oi={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"},Ii=oi,jr=function(ur,Zr){return v.createElement(en.Z,(0,V.Z)({},ur,{ref:Zr,icon:Ii}))},eo=v.forwardRef(jr),Uo={icon:function(ur,Zr){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:ur}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Zr}},{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:Zr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Zr}},{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:ur}}]}},name:"picture",theme:"twotone"},Fn=Uo,Qr=function(ur,Zr){return v.createElement(en.Z,(0,V.Z)({},ur,{ref:Zr,icon:Fn}))},ci=v.forwardRef(Qr),ji=_(82225),cr=_(57838),Qn=_(33603),Vt=_(96159),Yt=_(15867);function En(zn){return Object.assign(Object.assign({},zn),{lastModified:zn.lastModified,lastModifiedDate:zn.lastModifiedDate,name:zn.name,size:zn.size,type:zn.type,uid:zn.uid,percent:0,originFileObj:zn})}function er(zn,ur){const Zr=(0,R.Z)(ur),Jr=Zr.findIndex(_i=>{let{uid:so}=_i;return so===zn.uid});return Jr===-1?Zr.push(zn):Zr[Jr]=zn,Zr}function Tr(zn,ur){const Zr=zn.uid!==void 0?"uid":"name";return ur.filter(Jr=>Jr[Zr]===zn[Zr])[0]}function Nr(zn,ur){const Zr=zn.uid!==void 0?"uid":"name",Jr=ur.filter(_i=>_i[Zr]!==zn[Zr]);return Jr.length===ur.length?null:Jr}const Zn=function(){const ur=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Jr=ur[ur.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Jr)||[""])[0]},Ut=zn=>zn.indexOf("image/")===0,$n=zn=>{if(zn.type&&!zn.thumbUrl)return Ut(zn.type);const ur=zn.thumbUrl||zn.url||"",Zr=Zn(ur);return/^data:image\//.test(ur)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Zr)?!0:!(/^data:/.test(ur)||Zr)},xr=200;function Br(zn){return new Promise(ur=>{if(!zn.type||!Ut(zn.type)){ur("");return}const Zr=document.createElement("canvas");Zr.width=xr,Zr.height=xr,Zr.style.cssText=`position: fixed; left: 0; top: 0; width: ${xr}px; height: ${xr}px; z-index: 9999; display: none;`,document.body.appendChild(Zr);const Jr=Zr.getContext("2d"),_i=new Image;if(_i.onload=()=>{const{width:so,height:Ui}=_i;let hs=xr,ra=xr,Ka=0,ul=0;so>Ui?(ra=Ui*(xr/so),ul=-(ra-hs)/2):(hs=so*(xr/Ui),Ka=-(hs-ra)/2),Jr.drawImage(_i,Ka,ul,hs,ra);const hl=Zr.toDataURL();document.body.removeChild(Zr),window.URL.revokeObjectURL(_i.src),ur(hl)},_i.crossOrigin="anonymous",zn.type.startsWith("image/svg+xml")){const so=new FileReader;so.onload=()=>{so.result&&(_i.src=so.result)},so.readAsDataURL(zn)}else if(zn.type.startsWith("image/gif")){const so=new FileReader;so.onload=()=>{so.result&&ur(so.result)},so.readAsDataURL(zn)}else _i.src=window.URL.createObjectURL(zn)})}var _o=_(47046),Qt=function(ur,Zr){return v.createElement(en.Z,(0,V.Z)({},ur,{ref:Zr,icon:_o.Z}))},xn=v.forwardRef(Qt),Sr={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"},qr=Sr,Mi=function(ur,Zr){return v.createElement(en.Z,(0,V.Z)({},ur,{ref:Zr,icon:qr}))},zi=v.forwardRef(Mi),Yi=_(7124),Si=_(76278),ni=_(35918),qi=_(41322),Vr=_(62208),ii=_(98423),nr=_(1413),Mr={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},rr=function(){var ur=(0,v.useRef)([]),Zr=(0,v.useRef)(null);return(0,v.useEffect)(function(){var Jr=Date.now(),_i=!1;ur.current.forEach(function(so){if(so){_i=!0;var Ui=so.style;Ui.transitionDuration=".3s, .3s, .3s, .06s",Zr.current&&Jr-Zr.current<100&&(Ui.transitionDuration="0s, 0s")}}),_i&&(Zr.current=Date.now())}),ur.current},to=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ts=function(ur){var Zr=(0,nr.Z)((0,nr.Z)({},Mr),ur),Jr=Zr.className,_i=Zr.percent,so=Zr.prefixCls,Ui=Zr.strokeColor,hs=Zr.strokeLinecap,ra=Zr.strokeWidth,Ka=Zr.style,ul=Zr.trailColor,hl=Zr.trailWidth,kl=Zr.transition,Va=(0,k.Z)(Zr,to);delete Va.gapPosition;var Xu=Array.isArray(_i)?_i:[_i],Na=Array.isArray(Ui)?Ui:[Ui],Aa=rr(),ll=ra/2,Pu=100-ra/2,Gl="M ".concat(hs==="round"?ll:0,",").concat(ll,` + L `).concat(hs==="round"?Pu:100,",").concat(ll),fu="0 0 100 ".concat(ra),Bl=0;return v.createElement("svg",(0,V.Z)({className:B()("".concat(so,"-line"),Jr),viewBox:fu,preserveAspectRatio:"none",style:Ka},Va),v.createElement("path",{className:"".concat(so,"-line-trail"),d:Gl,strokeLinecap:hs,stroke:ul,strokeWidth:hl||ra,fillOpacity:"0"}),Xu.map(function(lu,Ln){var es=1;switch(hs){case"round":es=1-ra/100;break;case"square":es=1-ra/2/100;break;default:es=1;break}var Is={strokeDasharray:"".concat(lu*es,"px, 100px"),strokeDashoffset:"-".concat(Bl,"px"),transition:kl||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qs=Na[Ln]||Na[Na.length-1];return Bl+=lu,v.createElement("path",{key:Ln,className:"".concat(so,"-line-path"),d:Gl,strokeLinecap:hs,stroke:Qs,strokeWidth:ra,fillOpacity:"0",ref:function(uu){Aa[Ln]=uu},style:Is})}))},Wr=ts,no=_(97685),Vi=_(98924),Pn=0,mi=(0,Vi.Z)();function ya(){var zn;return mi?(zn=Pn,Pn+=1):zn="TEST_OR_SSR",zn}var Zs=function(zn){var ur=v.useState(),Zr=(0,no.Z)(ur,2),Jr=Zr[0],_i=Zr[1];return v.useEffect(function(){_i("rc_progress_".concat(ya()))},[]),zn||Jr},qs=function(ur){var Zr=ur.bg,Jr=ur.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:Zr}},Jr)};function al(zn,ur){return Object.keys(zn).map(function(Zr){var Jr=parseFloat(Zr),_i="".concat(Math.floor(Jr*ur),"%");return"".concat(zn[Zr]," ").concat(_i)})}var co=v.forwardRef(function(zn,ur){var Zr=zn.prefixCls,Jr=zn.color,_i=zn.gradientId,so=zn.radius,Ui=zn.style,hs=zn.ptg,ra=zn.strokeLinecap,Ka=zn.strokeWidth,ul=zn.size,hl=zn.gapDegree,kl=Jr&&(0,he.Z)(Jr)==="object",Va=kl?"#FFF":void 0,Xu=ul/2,Na=v.createElement("circle",{className:"".concat(Zr,"-circle-path"),r:so,cx:Xu,cy:Xu,stroke:Va,strokeLinecap:ra,strokeWidth:Ka,opacity:hs===0?0:1,style:Ui,ref:ur});if(!kl)return Na;var Aa="".concat(_i,"-conic"),ll=hl?"".concat(180+hl/2,"deg"):"0deg",Pu=al(Jr,(360-hl)/360),Gl=al(Jr,1),fu="conic-gradient(from ".concat(ll,", ").concat(Pu.join(", "),")"),Bl="linear-gradient(to ".concat(hl?"bottom":"top",", ").concat(Gl.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:Aa},Na),v.createElement("foreignObject",{x:0,y:0,width:ul,height:ul,mask:"url(#".concat(Aa,")")},v.createElement(qs,{bg:Bl},v.createElement(qs,{bg:fu}))))}),tl=co,fl=100,Ai=function(ur,Zr,Jr,_i,so,Ui,hs,ra,Ka,ul){var hl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,kl=Jr/100*360*((360-Ui)/360),Va=Ui===0?0:{bottom:0,top:180,left:90,right:-90}[hs],Xu=(100-_i)/100*Zr;Ka==="round"&&_i!==100&&(Xu+=ul/2,Xu>=Zr&&(Xu=Zr-.01));var Na=fl/2;return{stroke:typeof ra=="string"?ra:void 0,strokeDasharray:"".concat(Zr,"px ").concat(ur),strokeDashoffset:Xu+hl,transform:"rotate(".concat(so+kl+Va,"deg)"),transformOrigin:"".concat(Na,"px ").concat(Na,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Xi=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Fi(zn){var ur=zn!=null?zn:[];return Array.isArray(ur)?ur:[ur]}var No=function(ur){var Zr=(0,nr.Z)((0,nr.Z)({},Mr),ur),Jr=Zr.id,_i=Zr.prefixCls,so=Zr.steps,Ui=Zr.strokeWidth,hs=Zr.trailWidth,ra=Zr.gapDegree,Ka=ra===void 0?0:ra,ul=Zr.gapPosition,hl=Zr.trailColor,kl=Zr.strokeLinecap,Va=Zr.style,Xu=Zr.className,Na=Zr.strokeColor,Aa=Zr.percent,ll=(0,k.Z)(Zr,Xi),Pu=fl/2,Gl=Zs(Jr),fu="".concat(Gl,"-gradient"),Bl=Pu-Ui/2,lu=Math.PI*2*Bl,Ln=Ka>0?90+Ka/2:-90,es=lu*((360-Ka)/360),Is=(0,he.Z)(so)==="object"?so:{count:so,space:2},Qs=Is.count,dl=Is.space,uu=Fi(Aa),Jl=Fi(Na),xu=Jl.find(function(ld){return ld&&(0,he.Z)(ld)==="object"}),Tu=xu&&(0,he.Z)(xu)==="object",tc=Tu?"butt":kl,zc=Ai(lu,es,0,100,Ln,Ka,ul,hl,tc,Ui),Rc=rr(),Ah=function(){var ph=0;return uu.map(function(lc,xc){var Hh=Jl[xc]||Jl[Jl.length-1],xh=Ai(lu,es,ph,lc,Ln,Ka,ul,Hh,tc,Ui);return ph+=lc,v.createElement(tl,{key:xc,color:Hh,ptg:lc,radius:Bl,prefixCls:_i,gradientId:fu,style:xh,strokeLinecap:tc,strokeWidth:Ui,gapDegree:Ka,ref:function(md){Rc[xc]=md},size:fl})}).reverse()},Td=function(){var ph=Math.round(Qs*(uu[0]/100)),lc=100/Qs,xc=0;return new Array(Qs).fill(null).map(function(Hh,xh){var Cd=xh<=ph-1?Jl[0]:hl,md=Cd&&(0,he.Z)(Cd)==="object"?"url(#".concat(fu,")"):void 0,Bd=Ai(lu,es,xc,lc,Ln,Ka,ul,Cd,"butt",Ui,dl);return xc+=(es-Bd.strokeDashoffset+dl)*100/es,v.createElement("circle",{key:xh,className:"".concat(_i,"-circle-path"),r:Bl,cx:Pu,cy:Pu,stroke:md,strokeWidth:Ui,opacity:1,style:Bd,ref:function(Dh){Rc[xh]=Dh}})})};return v.createElement("svg",(0,V.Z)({className:B()("".concat(_i,"-circle"),Xu),viewBox:"0 0 ".concat(fl," ").concat(fl),style:Va,id:Jr,role:"presentation"},ll),!Qs&&v.createElement("circle",{className:"".concat(_i,"-circle-trail"),r:Bl,cx:Pu,cy:Pu,stroke:hl,strokeLinecap:tc,strokeWidth:hs||Ui,style:zc}),Qs?Td():Ah())},yr=No,ui={Line:Wr,Circle:yr},Zo=_(61781);function ns(zn){return!zn||zn<0?0:zn>100?100:zn}function Lr(zn){let{success:ur,successPercent:Zr}=zn,Jr=Zr;return ur&&"progress"in ur&&(Jr=ur.progress),ur&&"percent"in ur&&(Jr=ur.percent),Jr}const Ei=zn=>{let{percent:ur,success:Zr,successPercent:Jr}=zn;const _i=ns(Lr({success:Zr,successPercent:Jr}));return[_i,ns(ns(ur)-_i)]},hn=zn=>{let{success:ur={},strokeColor:Zr}=zn;const{strokeColor:Jr}=ur;return[Jr||$o.ez.green,Zr||null]},Tn=(zn,ur,Zr)=>{var Jr,_i,so,Ui;let hs=-1,ra=-1;if(ur==="step"){const Ka=Zr.steps,ul=Zr.strokeWidth;typeof zn=="string"||typeof zn=="undefined"?(hs=zn==="small"?2:14,ra=ul!=null?ul:8):typeof zn=="number"?[hs,ra]=[zn,zn]:[hs=14,ra=8]=zn,hs*=Ka}else if(ur==="line"){const Ka=Zr==null?void 0:Zr.strokeWidth;typeof zn=="string"||typeof zn=="undefined"?ra=Ka||(zn==="small"?6:8):typeof zn=="number"?[hs,ra]=[zn,zn]:[hs=-1,ra=8]=zn}else(ur==="circle"||ur==="dashboard")&&(typeof zn=="string"||typeof zn=="undefined"?[hs,ra]=zn==="small"?[60,60]:[120,120]:typeof zn=="number"?[hs,ra]=[zn,zn]:(hs=(_i=(Jr=zn[0])!==null&&Jr!==void 0?Jr:zn[1])!==null&&_i!==void 0?_i:120,ra=(Ui=(so=zn[0])!==null&&so!==void 0?so:zn[1])!==null&&Ui!==void 0?Ui:120));return[hs,ra]},ar=3,ft=zn=>ar/zn*100;var At=zn=>{const{prefixCls:ur,trailColor:Zr=null,strokeLinecap:Jr="round",gapPosition:_i,gapDegree:so,width:Ui=120,type:hs,children:ra,success:Ka,size:ul=Ui}=zn,[hl,kl]=Tn(ul,"circle");let{strokeWidth:Va}=zn;Va===void 0&&(Va=Math.max(ft(hl),6));const Xu={width:hl,height:kl,fontSize:hl*.15+6},Na=v.useMemo(()=>{if(so||so===0)return so;if(hs==="dashboard")return 75},[so,hs]),Aa=_i||hs==="dashboard"&&"bottom"||void 0,ll=Object.prototype.toString.call(zn.strokeColor)==="[object Object]",Pu=hn({success:Ka,strokeColor:zn.strokeColor}),Gl=B()(`${ur}-inner`,{[`${ur}-circle-gradient`]:ll}),fu=v.createElement(yr,{percent:Ei(zn),strokeWidth:Va,trailWidth:Va,strokeColor:Pu,strokeLinecap:Jr,trailColor:Zr,prefixCls:ur,gapDegree:Na,gapPosition:Aa});return v.createElement("div",{className:Gl,style:Xu},hl<=20?v.createElement(Zo.Z,{title:ra},v.createElement("span",null,fu)):v.createElement(v.Fragment,null,fu,ra))},Ye=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{let ur=[];return Object.keys(zn).forEach(Zr=>{const Jr=parseFloat(Zr.replace(/%/g,""));isNaN(Jr)||ur.push({key:Jr,value:zn[Zr]})}),ur=ur.sort((Zr,Jr)=>Zr.key-Jr.key),ur.map(Zr=>{let{key:Jr,value:_i}=Zr;return`${_i} ${Jr}%`}).join(", ")},Wt=(zn,ur)=>{const{from:Zr=$o.ez.blue,to:Jr=$o.ez.blue,direction:_i=ur==="rtl"?"to left":"to right"}=zn,so=Ye(zn,["from","to","direction"]);if(Object.keys(so).length!==0){const Ui=Et(so);return{backgroundImage:`linear-gradient(${_i}, ${Ui})`}}return{backgroundImage:`linear-gradient(${_i}, ${Zr}, ${Jr})`}};var Er=zn=>{const{prefixCls:ur,direction:Zr,percent:Jr,size:_i,strokeWidth:so,strokeColor:Ui,strokeLinecap:hs="round",children:ra,trailColor:Ka=null,success:ul}=zn,hl=Ui&&typeof Ui!="string"?Wt(Ui,Zr):{backgroundColor:Ui},kl=hs==="square"||hs==="butt"?0:void 0,Va={backgroundColor:Ka||void 0,borderRadius:kl},Xu=_i!=null?_i:[-1,so||(_i==="small"?6:8)],[Na,Aa]=Tn(Xu,"line",{strokeWidth:so}),ll=Object.assign({width:`${ns(Jr)}%`,height:Aa,borderRadius:kl},hl),Pu=Lr(zn),Gl={width:`${ns(Pu)}%`,height:Aa,borderRadius:kl,backgroundColor:ul==null?void 0:ul.strokeColor},fu={width:Na<0?"100%":Na,height:Aa};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${ur}-outer`,style:fu},v.createElement("div",{className:`${ur}-inner`,style:Va},v.createElement("div",{className:`${ur}-bg`,style:ll}),Pu!==void 0?v.createElement("div",{className:`${ur}-success-bg`,style:Gl}):null)),ra)},Gi=zn=>{const{size:ur,steps:Zr,percent:Jr=0,strokeWidth:_i=8,strokeColor:so,trailColor:Ui=null,prefixCls:hs,children:ra}=zn,Ka=Math.round(Zr*(Jr/100)),ul=ur==="small"?2:14,hl=ur!=null?ur:[ul,_i],[kl,Va]=Tn(hl,"step",{steps:Zr,strokeWidth:_i}),Xu=kl/Zr,Na=new Array(Zr);for(let Aa=0;Aa{const ur=zn?"100%":"-100%";return new Ss.E4(`antProgress${zn?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ur}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ur}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Bi=zn=>{const{componentCls:ur,iconCls:Zr}=zn;return{[ur]:Object.assign(Object.assign({},(0,Wn.Wf)(zn)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:zn.fontSize,marginInlineEnd:zn.marginXS,marginBottom:zn.marginXS},[`${ur}-outer`]:{display:"inline-block",width:"100%"},[`&${ur}-show-info`]:{[`${ur}-outer`]:{marginInlineEnd:`calc(-2em - ${zn.marginXS}px)`,paddingInlineEnd:`calc(2em + ${zn.paddingXS}px)`}},[`${ur}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:zn.remainingColor,borderRadius:zn.lineBorderRadius},[`${ur}-inner:not(${ur}-circle-gradient)`]:{[`${ur}-circle-path`]:{stroke:zn.defaultColor}},[`${ur}-success-bg, ${ur}-bg`]:{position:"relative",backgroundColor:zn.defaultColor,borderRadius:zn.lineBorderRadius,transition:`all ${zn.motionDurationSlow} ${zn.motionEaseInOutCirc}`},[`${ur}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:zn.colorSuccess},[`${ur}-text`]:{display:"inline-block",width:"2em",marginInlineStart:zn.marginXS,color:zn.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Zr]:{fontSize:zn.fontSize}},[`&${ur}-status-active`]:{[`${ur}-bg::before`]:{position:"absolute",inset:0,backgroundColor:zn.colorBgContainer,borderRadius:zn.lineBorderRadius,opacity:0,animationName:ko(),animationDuration:zn.progressActiveMotionDuration,animationTimingFunction:zn.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ur}-rtl${ur}-status-active`]:{[`${ur}-bg::before`]:{animationName:ko(!0)}},[`&${ur}-status-exception`]:{[`${ur}-bg`]:{backgroundColor:zn.colorError},[`${ur}-text`]:{color:zn.colorError}},[`&${ur}-status-exception ${ur}-inner:not(${ur}-circle-gradient)`]:{[`${ur}-circle-path`]:{stroke:zn.colorError}},[`&${ur}-status-success`]:{[`${ur}-bg`]:{backgroundColor:zn.colorSuccess},[`${ur}-text`]:{color:zn.colorSuccess}},[`&${ur}-status-success ${ur}-inner:not(${ur}-circle-gradient)`]:{[`${ur}-circle-path`]:{stroke:zn.colorSuccess}}})}},ms=zn=>{const{componentCls:ur,iconCls:Zr}=zn;return{[ur]:{[`${ur}-circle-trail`]:{stroke:zn.remainingColor},[`&${ur}-circle ${ur}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ur}-circle ${ur}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:zn.circleTextColor,fontSize:zn.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Zr]:{fontSize:`${zn.fontSize/zn.fontSizeSM}em`}},[`${ur}-circle&-status-exception`]:{[`${ur}-text`]:{color:zn.colorError}},[`${ur}-circle&-status-success`]:{[`${ur}-text`]:{color:zn.colorSuccess}}},[`${ur}-inline-circle`]:{lineHeight:1,[`${ur}-inner`]:{verticalAlign:"bottom"}}}},ps=zn=>{const{componentCls:ur}=zn;return{[ur]:{[`${ur}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:zn.progressStepMinWidth,marginInlineEnd:zn.progressStepMarginInlineEnd,backgroundColor:zn.remainingColor,transition:`all ${zn.motionDurationSlow}`,"&-active":{backgroundColor:zn.defaultColor}}}}}},Js=zn=>{const{componentCls:ur,iconCls:Zr}=zn;return{[ur]:{[`${ur}-small&-line, ${ur}-small&-line ${ur}-text ${Zr}`]:{fontSize:zn.fontSizeSM}}}};var Hs=(0,wi.Z)("Progress",zn=>{const ur=zn.marginXXS/2,Zr=(0,oo.TS)(zn,{progressStepMarginInlineEnd:ur,progressStepMinWidth:ur,progressActiveMotionDuration:"2.4s"});return[Bi(Zr),ms(Zr),ps(Zr),Js(Zr)]},zn=>({circleTextColor:zn.colorText,defaultColor:zn.colorInfo,remainingColor:zn.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Po=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{const{prefixCls:Zr,className:Jr,rootClassName:_i,steps:so,strokeColor:Ui,percent:hs=0,size:ra="default",showInfo:Ka=!0,type:ul="line",status:hl,format:kl,style:Va}=zn,Xu=Po(zn,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Na=v.useMemo(()=>{var uu,Jl;const xu=Lr(zn);return parseInt(xu!==void 0?(uu=xu!=null?xu:0)===null||uu===void 0?void 0:uu.toString():(Jl=hs!=null?hs:0)===null||Jl===void 0?void 0:Jl.toString(),10)},[hs,zn.success,zn.successPercent]),Aa=v.useMemo(()=>!ma.includes(hl)&&Na>=100?"success":hl||"normal",[hl,Na]),{getPrefixCls:ll,direction:Pu,progress:Gl}=v.useContext(ut.E_),fu=ll("progress",Zr),[Bl,lu]=Hs(fu),Ln=v.useMemo(()=>{if(!Ka)return null;const uu=Lr(zn);let Jl;const xu=kl||(tc=>`${tc}%`),Tu=ul==="line";return kl||Aa!=="exception"&&Aa!=="success"?Jl=xu(ns(hs),ns(uu)):Aa==="exception"?Jl=Tu?v.createElement(qi.Z,null):v.createElement(Vr.Z,null):Aa==="success"&&(Jl=Tu?v.createElement(Si.Z,null):v.createElement(ni.Z,null)),v.createElement("span",{className:`${fu}-text`,title:typeof Jl=="string"?Jl:void 0},Jl)},[Ka,hs,Na,Aa,ul,fu,kl]),es=Array.isArray(Ui)?Ui[0]:Ui,Is=typeof Ui=="string"||Array.isArray(Ui)?Ui:void 0;let Qs;ul==="line"?Qs=so?v.createElement(Gi,Object.assign({},zn,{strokeColor:Is,prefixCls:fu,steps:so}),Ln):v.createElement(Er,Object.assign({},zn,{strokeColor:es,prefixCls:fu,direction:Pu}),Ln):(ul==="circle"||ul==="dashboard")&&(Qs=v.createElement(At,Object.assign({},zn,{strokeColor:es,prefixCls:fu,progressStatus:Aa}),Ln));const dl=B()(fu,`${fu}-status-${Aa}`,`${fu}-${ul==="dashboard"&&"circle"||so&&"steps"||ul}`,{[`${fu}-inline-circle`]:ul==="circle"&&Tn(ra,"circle")[0]<=20,[`${fu}-show-info`]:Ka,[`${fu}-${ra}`]:typeof ra=="string",[`${fu}-rtl`]:Pu==="rtl"},Gl==null?void 0:Gl.className,Jr,_i,lu);return Bl(v.createElement("div",Object.assign({ref:ur,style:Object.assign(Object.assign({},Gl==null?void 0:Gl.style),Va),className:dl,role:"progressbar","aria-valuenow":Na},(0,ii.Z)(Xu,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qs))}),Dl=El,Ca=v.forwardRef((zn,ur)=>{let{prefixCls:Zr,className:Jr,style:_i,locale:so,listType:Ui,file:hs,items:ra,progress:Ka,iconRender:ul,actionIconRender:hl,itemRender:kl,isImgUrl:Va,showPreviewIcon:Xu,showRemoveIcon:Na,showDownloadIcon:Aa,previewIcon:ll,removeIcon:Pu,downloadIcon:Gl,onPreview:fu,onDownload:Bl,onClose:lu}=zn;var Ln,es;const{status:Is}=hs,[Qs,dl]=v.useState(Is);v.useEffect(()=>{Is!=="removed"&&dl(Is)},[Is]);const[uu,Jl]=v.useState(!1);v.useEffect(()=>{const Dh=setTimeout(()=>{Jl(!0)},300);return()=>{clearTimeout(Dh)}},[]);const xu=ul(hs);let Tu=v.createElement("div",{className:`${Zr}-icon`},xu);if(Ui==="picture"||Ui==="picture-card"||Ui==="picture-circle")if(Qs==="uploading"||!hs.thumbUrl&&!hs.url){const Dh=B()(`${Zr}-list-item-thumbnail`,{[`${Zr}-list-item-file`]:Qs!=="uploading"});Tu=v.createElement("div",{className:Dh},xu)}else{const Dh=Va!=null&&Va(hs)?v.createElement("img",{src:hs.thumbUrl||hs.url,alt:hs.name,className:`${Zr}-list-item-image`,crossOrigin:hs.crossOrigin}):xu,gh=B()(`${Zr}-list-item-thumbnail`,{[`${Zr}-list-item-file`]:Va&&!Va(hs)});Tu=v.createElement("a",{className:gh,onClick:ap=>fu(hs,ap),href:hs.url||hs.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dh)}const tc=B()(`${Zr}-list-item`,`${Zr}-list-item-${Qs}`),zc=typeof hs.linkProps=="string"?JSON.parse(hs.linkProps):hs.linkProps,Rc=Na?hl((typeof Pu=="function"?Pu(hs):Pu)||v.createElement(xn,null),()=>lu(hs),Zr,so.removeFile):null,Ah=Aa&&Qs==="done"?hl((typeof Gl=="function"?Gl(hs):Gl)||v.createElement(zi,null),()=>Bl(hs),Zr,so.downloadFile):null,Td=Ui!=="picture-card"&&Ui!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:B()(`${Zr}-list-item-actions`,{picture:Ui==="picture"})},Ah,Rc),ld=B()(`${Zr}-list-item-name`),ph=hs.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ld,title:hs.name},zc,{href:hs.url,onClick:Dh=>fu(hs,Dh)}),hs.name),Td]:[v.createElement("span",{key:"view",className:ld,onClick:Dh=>fu(hs,Dh),title:hs.name},hs.name),Td],lc={pointerEvents:"none",opacity:.5},xc=Xu?v.createElement("a",{href:hs.url||hs.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:hs.url||hs.thumbUrl?void 0:lc,onClick:Dh=>fu(hs,Dh),title:so.previewFile},typeof ll=="function"?ll(hs):ll||v.createElement(Yi.Z,null)):null,Hh=(Ui==="picture-card"||Ui==="picture-circle")&&Qs!=="uploading"&&v.createElement("span",{className:`${Zr}-list-item-actions`},xc,Qs==="done"&&Ah,Rc),{getPrefixCls:xh}=v.useContext(ut.E_),Cd=xh(),md=v.createElement("div",{className:tc},Tu,ph,Hh,uu&&v.createElement(ji.ZP,{motionName:`${Cd}-fade`,visible:Qs==="uploading",motionDeadline:2e3},Dh=>{let{className:gh}=Dh;const ap="percent"in hs?v.createElement(Dl,Object.assign({},Ka,{type:"line",percent:hs.percent,"aria-label":hs["aria-label"],"aria-labelledby":hs["aria-labelledby"]})):null;return v.createElement("div",{className:B()(`${Zr}-list-item-progress`,gh)},ap)})),Bd=hs.response&&typeof hs.response=="string"?hs.response:((Ln=hs.error)===null||Ln===void 0?void 0:Ln.statusText)||((es=hs.error)===null||es===void 0?void 0:es.message)||so.uploadError,zd=Qs==="error"?v.createElement(Zo.Z,{title:Bd,getPopupContainer:Dh=>Dh.parentNode},md):md;return v.createElement("div",{className:B()(`${Zr}-list-item-container`,Jr),style:_i,ref:ur},kl?kl(zd,hs,ra,{download:Bl.bind(null,hs),preview:fu.bind(null,hs),remove:lu.bind(null,hs)}):zd)});const vl=(zn,ur)=>{const{listType:Zr="text",previewFile:Jr=Br,onPreview:_i,onDownload:so,onRemove:Ui,locale:hs,iconRender:ra,isImageUrl:Ka=$n,prefixCls:ul,items:hl=[],showPreviewIcon:kl=!0,showRemoveIcon:Va=!0,showDownloadIcon:Xu=!1,removeIcon:Na,previewIcon:Aa,downloadIcon:ll,progress:Pu={size:[-1,2],showInfo:!1},appendAction:Gl,appendActionVisible:fu=!0,itemRender:Bl,disabled:lu}=zn,Ln=(0,cr.Z)(),[es,Is]=v.useState(!1);v.useEffect(()=>{Zr!=="picture"&&Zr!=="picture-card"&&Zr!=="picture-circle"||(hl||[]).forEach(lc=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(lc.originFileObj instanceof File||lc.originFileObj instanceof Blob)||lc.thumbUrl!==void 0||(lc.thumbUrl="",Jr&&Jr(lc.originFileObj).then(xc=>{lc.thumbUrl=xc||"",Ln()}))})},[Zr,hl,Jr]),v.useEffect(()=>{Is(!0)},[]);const Qs=(lc,xc)=>{if(_i)return xc==null||xc.preventDefault(),_i(lc)},dl=lc=>{typeof so=="function"?so(lc):lc.url&&window.open(lc.url)},uu=lc=>{Ui==null||Ui(lc)},Jl=lc=>{if(ra)return ra(lc,Zr);const xc=lc.status==="uploading",Hh=Ka&&Ka(lc)?v.createElement(ci,null):v.createElement(on,null);let xh=xc?v.createElement(Dr.Z,null):v.createElement(eo,null);return Zr==="picture"?xh=xc?v.createElement(Dr.Z,null):Hh:(Zr==="picture-card"||Zr==="picture-circle")&&(xh=xc?hs.uploading:Hh),xh},xu=(lc,xc,Hh,xh)=>{const Cd={type:"text",size:"small",title:xh,onClick:md=>{xc(),(0,Vt.l$)(lc)&&lc.props.onClick&&lc.props.onClick(md)},className:`${Hh}-list-item-action`,disabled:lu};if((0,Vt.l$)(lc)){const md=(0,Vt.Tm)(lc,Object.assign(Object.assign({},lc.props),{onClick:()=>{}}));return v.createElement(Yt.ZP,Object.assign({},Cd,{icon:md}))}return v.createElement(Yt.ZP,Object.assign({},Cd),v.createElement("span",null,lc))};v.useImperativeHandle(ur,()=>({handlePreview:Qs,handleDownload:dl}));const{getPrefixCls:Tu}=v.useContext(ut.E_),tc=Tu("upload",ul),zc=Tu(),Rc=B()(`${tc}-list`,`${tc}-list-${Zr}`),Ah=(0,R.Z)(hl.map(lc=>({key:lc.uid,file:lc})));let ld={motionDeadline:2e3,motionName:`${tc}-${Zr==="picture-card"||Zr==="picture-circle"?"animate-inline":"animate"}`,keys:Ah,motionAppear:es};const ph=v.useMemo(()=>{const lc=Object.assign({},(0,Qn.Z)(zc));return delete lc.onAppearEnd,delete lc.onEnterEnd,delete lc.onLeaveEnd,lc},[zc]);return Zr!=="picture-card"&&Zr!=="picture-circle"&&(ld=Object.assign(Object.assign({},ph),ld)),v.createElement("div",{className:Rc},v.createElement(ji.V4,Object.assign({},ld,{component:!1}),lc=>{let{key:xc,file:Hh,className:xh,style:Cd}=lc;return v.createElement(Ca,{key:xc,locale:hs,prefixCls:tc,className:xh,style:Cd,file:Hh,items:hl,progress:Pu,listType:Zr,isImgUrl:Ka,showPreviewIcon:kl,showRemoveIcon:Va,showDownloadIcon:Xu,removeIcon:Na,previewIcon:Aa,downloadIcon:ll,iconRender:Jl,actionIconRender:xu,itemRender:Bl,onPreview:Qs,onDownload:dl,onClose:uu})}),Gl&&v.createElement(ji.ZP,Object.assign({},ld,{visible:fu,forceRender:!0}),lc=>{let{className:xc,style:Hh}=lc;return(0,Vt.Tm)(Gl,xh=>({className:B()(xh.className,xc),style:Object.assign(Object.assign(Object.assign({},Hh),{pointerEvents:xc?"none":void 0}),xh.style)}))}))};var io=v.forwardRef(vl),Ko=function(zn,ur,Zr,Jr){function _i(so){return so instanceof Zr?so:new Zr(function(Ui){Ui(so)})}return new(Zr||(Zr=Promise))(function(so,Ui){function hs(ul){try{Ka(Jr.next(ul))}catch(hl){Ui(hl)}}function ra(ul){try{Ka(Jr.throw(ul))}catch(hl){Ui(hl)}}function Ka(ul){ul.done?so(ul.value):_i(ul.value).then(hs,ra)}Ka((Jr=Jr.apply(zn,ur||[])).next())})};const As=`__LIST_IGNORE_${Date.now()}__`,ks=(zn,ur)=>{const{fileList:Zr,defaultFileList:Jr,onRemove:_i,showUploadList:so=!0,listType:Ui="text",onPreview:hs,onDownload:ra,onChange:Ka,onDrop:ul,previewFile:hl,disabled:kl,locale:Va,iconRender:Xu,isImageUrl:Na,progress:Aa,prefixCls:ll,className:Pu,type:Gl="select",children:fu,style:Bl,itemRender:lu,maxCount:Ln,data:es={},multiple:Is=!1,action:Qs="",accept:dl="",supportServerRender:uu=!0,rootClassName:Jl}=zn,xu=v.useContext($t.Z),Tu=kl!=null?kl:xu,[tc,zc]=(0,xt.Z)(Jr||[],{value:Zr,postState:Nh=>Nh!=null?Nh:[]}),[Rc,Ah]=v.useState("drop"),Td=v.useRef(null);v.useMemo(()=>{const Nh=Date.now();(Zr||[]).forEach((Ba,Mu)=>{!Ba.uid&&!Object.isFrozen(Ba)&&(Ba.uid=`__AUTO__${Nh}_${Mu}__`)})},[Zr]);const ld=(Nh,Ba,Mu)=>{let Zl=(0,R.Z)(Ba),Au=!1;Ln===1?Zl=Zl.slice(-1):Ln&&(Au=Zl.length>Ln,Zl=Zl.slice(0,Ln)),(0,w.flushSync)(()=>{zc(Zl)});const Wu={file:Nh,fileList:Zl};Mu&&(Wu.event=Mu),(!Au||Zl.some(Qh=>Qh.uid===Nh.uid))&&(0,w.flushSync)(()=>{Ka==null||Ka(Wu)})},ph=(Nh,Ba)=>Ko(void 0,void 0,void 0,function*(){const{beforeUpload:Mu,transformFile:Zl}=zn;let Au=Nh;if(Mu){const Wu=yield Mu(Nh,Ba);if(Wu===!1)return!1;if(delete Nh[As],Wu===As)return Object.defineProperty(Nh,As,{value:!0,configurable:!0}),!1;typeof Wu=="object"&&Wu&&(Au=Wu)}return Zl&&(Au=yield Zl(Au)),Au}),lc=Nh=>{const Ba=Nh.filter(Au=>!Au.file[As]);if(!Ba.length)return;const Mu=Ba.map(Au=>En(Au.file));let Zl=(0,R.Z)(tc);Mu.forEach(Au=>{Zl=er(Au,Zl)}),Mu.forEach((Au,Wu)=>{let Qh=Au;if(Ba[Wu].parsedFile)Au.status="uploading";else{const{originFileObj:hd}=Au;let Bh;try{Bh=new File([hd],hd.name,{type:hd.type})}catch(hf){Bh=new Blob([hd],{type:hd.type}),Bh.name=hd.name,Bh.lastModifiedDate=new Date,Bh.lastModified=new Date().getTime()}Bh.uid=Au.uid,Qh=Bh}ld(Qh,Zl)})},xc=(Nh,Ba,Mu)=>{try{typeof Nh=="string"&&(Nh=JSON.parse(Nh))}catch(Wu){}if(!Tr(Ba,tc))return;const Zl=En(Ba);Zl.status="done",Zl.percent=100,Zl.response=Nh,Zl.xhr=Mu;const Au=er(Zl,tc);ld(Zl,Au)},Hh=(Nh,Ba)=>{if(!Tr(Ba,tc))return;const Mu=En(Ba);Mu.status="uploading",Mu.percent=Nh.percent;const Zl=er(Mu,tc);ld(Mu,Zl,Nh)},xh=(Nh,Ba,Mu)=>{if(!Tr(Mu,tc))return;const Zl=En(Mu);Zl.error=Nh,Zl.response=Ba,Zl.status="error";const Au=er(Zl,tc);ld(Zl,Au)},Cd=Nh=>{let Ba;Promise.resolve(typeof _i=="function"?_i(Nh):_i).then(Mu=>{var Zl;if(Mu===!1)return;const Au=Nr(Nh,tc);Au&&(Ba=Object.assign(Object.assign({},Nh),{status:"removed"}),tc==null||tc.forEach(Wu=>{const Qh=Ba.uid!==void 0?"uid":"name";Wu[Qh]===Ba[Qh]&&!Object.isFrozen(Wu)&&(Wu.status="removed")}),(Zl=Td.current)===null||Zl===void 0||Zl.abort(Ba),ld(Ba,Au))})},md=Nh=>{Ah(Nh.type),Nh.type==="drop"&&(ul==null||ul(Nh))};v.useImperativeHandle(ur,()=>({onBatchStart:lc,onSuccess:xc,onProgress:Hh,onError:xh,fileList:tc,upload:Td.current}));const{getPrefixCls:Bd,direction:zd,upload:Dh}=v.useContext(ut.E_),gh=Bd("upload",ll),ap=Object.assign(Object.assign({onBatchStart:lc,onError:xh,onProgress:Hh,onSuccess:xc},zn),{data:es,multiple:Is,action:Qs,accept:dl,supportServerRender:uu,prefixCls:gh,disabled:Tu,beforeUpload:ph,onChange:void 0});delete ap.className,delete ap.style,(!fu||Tu)&&delete ap.id;const[pd,Nu]=an(gh),[oh]=(0,_t.Z)("Upload",bn.Z.Upload),{showRemoveIcon:Ud,showPreviewIcon:uf,showDownloadIcon:Of,removeIcon:Qf,previewIcon:ep,downloadIcon:tp}=typeof so=="boolean"?{}:so,Ad=typeof Ud=="undefined"?!Tu:!!Ud,jd=(Nh,Ba)=>so?v.createElement(io,{prefixCls:gh,listType:Ui,items:tc,previewFile:hl,onPreview:hs,onDownload:ra,onRemove:Cd,showRemoveIcon:Ad,showPreviewIcon:uf,showDownloadIcon:Of,removeIcon:Qf,previewIcon:ep,downloadIcon:tp,iconRender:Xu,locale:Object.assign(Object.assign({},oh),Va),isImageUrl:Na,progress:Aa,appendAction:Nh,appendActionVisible:Ba,itemRender:lu,disabled:Tu}):Nh,Su=B()(`${gh}-wrapper`,Pu,Jl,Nu,Dh==null?void 0:Dh.className,{[`${gh}-rtl`]:zd==="rtl",[`${gh}-picture-card-wrapper`]:Ui==="picture-card",[`${gh}-picture-circle-wrapper`]:Ui==="picture-circle"}),Ih=Object.assign(Object.assign({},Dh==null?void 0:Dh.style),Bl);if(Gl==="drag"){const Nh=B()(Nu,gh,`${gh}-drag`,{[`${gh}-drag-uploading`]:tc.some(Ba=>Ba.status==="uploading"),[`${gh}-drag-hover`]:Rc==="dragover",[`${gh}-disabled`]:Tu,[`${gh}-rtl`]:zd==="rtl"});return pd(v.createElement("span",{className:Su},v.createElement("div",{className:Nh,style:Ih,onDrop:md,onDragOver:md,onDragLeave:md},v.createElement(ot,Object.assign({},ap,{ref:Td,className:`${gh}-btn`}),v.createElement("div",{className:`${gh}-drag-container`},fu))),jd()))}const gl=B()(gh,`${gh}-select`,{[`${gh}-disabled`]:Tu}),xf=(Nh=>v.createElement("div",{className:gl,style:Nh},v.createElement(ot,Object.assign({},ap,{ref:Td}))))(fu?void 0:{display:"none"});return pd(Ui==="picture-card"||Ui==="picture-circle"?v.createElement("span",{className:Su},jd(xf,!!fu)):v.createElement("span",{className:Su},xf,jd()))};var zu=v.forwardRef(ks),Ac=function(zn,ur){var Zr={};for(var Jr in zn)Object.prototype.hasOwnProperty.call(zn,Jr)&&ur.indexOf(Jr)<0&&(Zr[Jr]=zn[Jr]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _i=0,Jr=Object.getOwnPropertySymbols(zn);_i{var{style:Zr,height:Jr}=zn,_i=Ac(zn,["style","height"]);return v.createElement(zu,Object.assign({ref:ur},_i,{type:"drag",style:Object.assign(Object.assign({},Zr),{height:Jr})}))});const qu=zu;qu.Dragger=ec,qu.LIST_IGNORE=As;var Uu=qu},1028:function(gt,Y,_){"use strict";var v=_(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(25633)),w=Y.default=R.default},80037:function(gt,Y,_){"use strict";var v=_(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(5584)),w=Y.default=R.default},25633:function(gt,Y,_){"use strict";var v=_(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(27590)),w=v(_(52040));const b={lang:Object.assign({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"]},R.default),timePickerLocale:Object.assign({},w.default)};var B=Y.default=b},5584:function(gt,Y,_){"use strict";var v=_(64836).default;Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;var R=v(_(85369)),w=v(_(15704));const b={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},R.default),timePickerLocale:Object.assign({},w.default)};b.lang.ok="\u786E\u5B9A";var B=Y.default=b},18253:function(gt,Y,_){"use strict";var v,R=_(64836).default;v={value:!0},Y.Z=void 0;var w=R(_(62273)),b=R(_(1028)),B=R(_(25633)),V=R(_(52040));const O="${label} is not a valid ${type}",L={locale:"en",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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:O,method:O,array:O,object:O,number:O,date:O,boolean:O,integer:O,float:O,regexp:O,email:O,url:O,hex:O},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"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var S=Y.Z=L},82925:function(gt,Y,_){"use strict";var v,R=_(64836).default;v={value:!0},Y.Z=void 0;var w=R(_(74219)),b=R(_(80037)),B=R(_(5584)),V=R(_(15704));const O="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",L={locale:"zh-cn",Pagination:w.default,DatePicker:B.default,TimePicker:V.default,Calendar:b.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:O,method:O,array:O,object:O,number:O,date:O,boolean:O,integer:O,float:O,regexp:O,email:O,url:O,hex:O},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var S=Y.Z=L},52040:function(gt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const _={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var v=Y.default=_},15704:function(gt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.default=void 0;const _={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var v=Y.default=_},93771:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return xt}});var v=_(87462),R=_(97685),w=_(4942),b=_(91),B=_(67294),V=_(94184),O=_.n(V),L=_(16397),S=_(54775),g=_(1413),T=_(71002),k=_(44958),K=_(27571),he=_(80334);function ae(ut){return ut.replace(/-(.)/g,function($t,_t){return _t.toUpperCase()})}function fe(ut,$t){(0,he.ZP)(ut,"[@ant-design/icons] ".concat($t))}function _e(ut){return(0,T.Z)(ut)==="object"&&typeof ut.name=="string"&&typeof ut.theme=="string"&&((0,T.Z)(ut.icon)==="object"||typeof ut.icon=="function")}function be(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ut).reduce(function($t,_t){var bn=ut[_t];switch(_t){case"class":$t.className=bn,delete $t.class;break;default:delete $t[_t],$t[ae(_t)]=bn}return $t},{})}function xe(ut,$t,_t){return _t?B.createElement(ut.tag,(0,g.Z)((0,g.Z)({key:$t},be(ut.attrs)),_t),(ut.children||[]).map(function(bn,Wn){return xe(bn,"".concat($t,"-").concat(ut.tag,"-").concat(Wn))})):B.createElement(ut.tag,(0,g.Z)({key:$t},be(ut.attrs)),(ut.children||[]).map(function(bn,Wn){return xe(bn,"".concat($t,"-").concat(ut.tag,"-").concat(Wn))}))}function Xe(ut){return(0,L.R_)(ut)[0]}function We(ut){return ut?Array.isArray(ut)?ut:[ut]:[]}var dt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Me=` .anticon { display: inline-block; color: inherit; @@ -8112,33 +8223,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter transform: rotate(360deg); } } -`,me=function($t){var vt=(0,k.useContext)(C.Z),yn=vt.csp,Bn=vt.prefixCls,Lr=be;Bn&&(Lr=Lr.replace(/anticon/g,Bn)),(0,k.useEffect)(function(){var ii=$t.current,gi=(0,W.A)(ii);(0,P.hq)(Lr,"@ant-design-icons",{prepend:!0,csp:yn,attachTo:gi})},[])},ye=["icon","className","onClick","style","primaryColor","secondaryColor"],_e={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ce(ft){var $t=ft.primaryColor,vt=ft.secondaryColor;_e.primaryColor=$t,_e.secondaryColor=vt||ke($t),_e.calculated=!!vt}function De(){return(0,f.Z)({},_e)}var ge=function($t){var vt=$t.icon,yn=$t.className,Bn=$t.onClick,Lr=$t.style,ii=$t.primaryColor,gi=$t.secondaryColor,no=(0,z.Z)($t,ye),To=k.useRef(),_r=_e;if(ii&&(_r={primaryColor:ii,secondaryColor:gi||ke(ii)}),me(To),ie(he(vt),"icon should be icon definiton, but got ".concat(vt)),!he(vt))return null;var Bo=vt;return Bo&&typeof Bo.icon=="function"&&(Bo=(0,f.Z)((0,f.Z)({},Bo),{},{icon:Bo.icon(_r.primaryColor,_r.secondaryColor)})),fe(Bo.icon,"svg-".concat(Bo.name),(0,f.Z)((0,f.Z)({className:yn,onClick:Bn,style:Lr,"data-icon":Bo.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},no),{},{ref:To}))};ge.displayName="IconReact",ge.getTwoToneColors=De,ge.setTwoToneColors=Ce;var je=ge;function we(ft){var $t=Ie(ft),vt=(0,A.Z)($t,2),yn=vt[0],Bn=vt[1];return je.setTwoToneColors({primaryColor:yn,secondaryColor:Bn})}function Pt(){var ft=je.getTwoToneColors();return ft.calculated?[ft.primaryColor,ft.secondaryColor]:ft.primaryColor}var dt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];we(I.iN.primary);var He=k.forwardRef(function(ft,$t){var vt,yn=ft.className,Bn=ft.icon,Lr=ft.spin,ii=ft.rotate,gi=ft.tabIndex,no=ft.onClick,To=ft.twoToneColor,_r=(0,z.Z)(ft,dt),Bo=k.useContext(C.Z),hs=Bo.prefixCls,ve=hs===void 0?"anticon":hs,So=Bo.rootClassName,ho=w()(So,ve,(vt={},(0,b.Z)(vt,"".concat(ve,"-").concat(Bn.name),!!Bn.name),(0,b.Z)(vt,"".concat(ve,"-spin"),!!Lr||Bn.name==="loading"),vt),yn),go=gi;go===void 0&&no&&(go=-1);var ji=ii?{msTransform:"rotate(".concat(ii,"deg)"),transform:"rotate(".concat(ii,"deg)")}:void 0,No=Ie(To),dn=(0,A.Z)(No,2),Ve=dn[0],yt=dn[1];return k.createElement("span",(0,y.Z)({role:"img","aria-label":Bn.name},_r,{ref:$t,tabIndex:go,onClick:no,className:ho}),k.createElement(je,{icon:Bn,primaryColor:Ve,secondaryColor:yt,style:ji}))});He.displayName="AntdIcon",He.getTwoToneColor=Pt,He.setTwoToneColor=we;var bt=He},54775:function(nt,V,m){"use strict";var y=m(67294),A=(0,y.createContext)({});V.Z=A},76278:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},35918:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},41322:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},62208:function(nt,V,m){"use strict";var y=m(87462),A=m(67294),b=m(89503),z=m(93771),k=function(w,I){return A.createElement(z.Z,(0,y.Z)({},w,{ref:I,icon:b.Z}))};V.Z=A.forwardRef(k)},58964:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},35872:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},26702:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},7124:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},1558:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},62946:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},22508:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},68843:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},13805:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={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"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},79742:function(nt,V){"use strict";V.byteLength=w,V.toByteArray=C,V.fromByteArray=P;for(var m=[],y=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,k=b.length;z0)throw new Error("Invalid string. Length must be a multiple of 4");var q=W.indexOf("=");q===-1&&(q=te);var ie=q===te?0:4-q%4;return[q,ie]}function w(W){var te=N(W),q=te[0],ie=te[1];return(q+ie)*3/4-ie}function I(W,te,q){return(te+q)*3/4-q}function C(W){var te,q=N(W),ie=q[0],he=q[1],de=new A(I(W,ie,he)),fe=0,ke=he>0?ie-4:ie,Ie;for(Ie=0;Ie>16&255,de[fe++]=te>>8&255,de[fe++]=te&255;return he===2&&(te=y[W.charCodeAt(Ie)]<<2|y[W.charCodeAt(Ie+1)]>>4,de[fe++]=te&255),he===1&&(te=y[W.charCodeAt(Ie)]<<10|y[W.charCodeAt(Ie+1)]<<4|y[W.charCodeAt(Ie+2)]>>2,de[fe++]=te>>8&255,de[fe++]=te&255),de}function f(W){return m[W>>18&63]+m[W>>12&63]+m[W>>6&63]+m[W&63]}function S(W,te,q){for(var ie,he=[],de=te;deke?ke:fe+de));return ie===1?(te=W[q-1],he.push(m[te>>2]+m[te<<4&63]+"==")):ie===2&&(te=(W[q-2]<<8)+W[q-1],he.push(m[te>>10]+m[te>>4&63]+m[te<<2&63]+"=")),he.join("")}},48764:function(nt,V,m){"use strict";var y;var A=m(79742),b=m(80645),z=m(5826);V.lW=I,y=de,V.h2=50,I.TYPED_ARRAY_SUPPORT=m.g.TYPED_ARRAY_SUPPORT!==void 0?m.g.TYPED_ARRAY_SUPPORT:k(),y=N();function k(){try{var dn=new Uint8Array(1);return dn.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},dn.foo()===42&&typeof dn.subarray=="function"&&dn.subarray(1,1).byteLength===0}catch(Ve){return!1}}function N(){return I.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(dn,Ve){if(N()=N())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N().toString(16)+" bytes");return dn|0}function de(dn){return+dn!=dn&&(dn=0),I.alloc(+dn)}I.isBuffer=function(Ve){return!!(Ve!=null&&Ve._isBuffer)},I.compare=function(Ve,yt){if(!I.isBuffer(Ve)||!I.isBuffer(yt))throw new TypeError("Arguments must be Buffers");if(Ve===yt)return 0;for(var Ct=Ve.length,Wt=yt.length,sn=0,Mt=Math.min(Ct,Wt);sn>>1;case"base64":return go(dn).length;default:if(Ct)return ve(dn).length;Ve=(""+Ve).toLowerCase(),Ct=!0}}I.byteLength=fe;function ke(dn,Ve,yt){var Ct=!1;if((Ve===void 0||Ve<0)&&(Ve=0),Ve>this.length||((yt===void 0||yt>this.length)&&(yt=this.length),yt<=0)||(yt>>>=0,Ve>>>=0,yt<=Ve))return"";for(dn||(dn="utf8");;)switch(dn){case"hex":return ft(this,Ve,yt);case"utf8":case"utf-8":return we(this,Ve,yt);case"ascii":return He(this,Ve,yt);case"latin1":case"binary":return bt(this,Ve,yt);case"base64":return je(this,Ve,yt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,Ve,yt);default:if(Ct)throw new TypeError("Unknown encoding: "+dn);dn=(dn+"").toLowerCase(),Ct=!0}}I.prototype._isBuffer=!0;function Ie(dn,Ve,yt){var Ct=dn[Ve];dn[Ve]=dn[yt],dn[yt]=Ct}I.prototype.swap16=function(){var Ve=this.length;if(Ve%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var yt=0;yt0&&(Ve=this.toString("hex",0,yt).match(/.{2}/g).join(" "),this.length>yt&&(Ve+=" ... ")),""},I.prototype.compare=function(Ve,yt,Ct,Wt,sn){if(!I.isBuffer(Ve))throw new TypeError("Argument must be a Buffer");if(yt===void 0&&(yt=0),Ct===void 0&&(Ct=Ve?Ve.length:0),Wt===void 0&&(Wt=0),sn===void 0&&(sn=this.length),yt<0||Ct>Ve.length||Wt<0||sn>this.length)throw new RangeError("out of range index");if(Wt>=sn&&yt>=Ct)return 0;if(Wt>=sn)return-1;if(yt>=Ct)return 1;if(yt>>>=0,Ct>>>=0,Wt>>>=0,sn>>>=0,this===Ve)return 0;for(var Mt=sn-Wt,Tt=Ct-yt,xt=Math.min(Mt,Tt),Ht=this.slice(Wt,sn),Vn=Ve.slice(yt,Ct),en=0;en2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,isNaN(yt)&&(yt=Wt?0:dn.length-1),yt<0&&(yt=dn.length+yt),yt>=dn.length){if(Wt)return-1;yt=dn.length-1}else if(yt<0)if(Wt)yt=0;else return-1;if(typeof Ve=="string"&&(Ve=I.from(Ve,Ct)),I.isBuffer(Ve))return Ve.length===0?-1:be(dn,Ve,yt,Ct,Wt);if(typeof Ve=="number")return Ve=Ve&255,I.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(dn,Ve,yt):Uint8Array.prototype.lastIndexOf.call(dn,Ve,yt):be(dn,[Ve],yt,Ct,Wt);throw new TypeError("val must be string, number or Buffer")}function be(dn,Ve,yt,Ct,Wt){var sn=1,Mt=dn.length,Tt=Ve.length;if(Ct!==void 0&&(Ct=String(Ct).toLowerCase(),Ct==="ucs2"||Ct==="ucs-2"||Ct==="utf16le"||Ct==="utf-16le")){if(dn.length<2||Ve.length<2)return-1;sn=2,Mt/=2,Tt/=2,yt/=2}function xt(Kr,ri){return sn===1?Kr[ri]:Kr.readUInt16BE(ri*sn)}var Ht;if(Wt){var Vn=-1;for(Ht=yt;HtMt&&(yt=Mt-Tt),Ht=yt;Ht>=0;Ht--){for(var en=!0,fr=0;frWt&&(Ct=Wt)):Ct=Wt;var sn=Ve.length;if(sn%2!==0)throw new TypeError("Invalid hex string");Ct>sn/2&&(Ct=sn/2);for(var Mt=0;Mtsn)&&(Ct=sn),Ve.length>0&&(Ct<0||yt<0)||yt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");for(var Mt=!1;;)switch(Wt){case"hex":return me(this,Ve,yt,Ct);case"utf8":case"utf-8":return ye(this,Ve,yt,Ct);case"ascii":return _e(this,Ve,yt,Ct);case"latin1":case"binary":return Ce(this,Ve,yt,Ct);case"base64":return De(this,Ve,yt,Ct);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,Ve,yt,Ct);default:if(Mt)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),Mt=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function je(dn,Ve,yt){return Ve===0&&yt===dn.length?A.fromByteArray(dn):A.fromByteArray(dn.slice(Ve,yt))}function we(dn,Ve,yt){yt=Math.min(dn.length,yt);for(var Ct=[],Wt=Ve;Wt239?4:sn>223?3:sn>191?2:1;if(Wt+Tt<=yt){var xt,Ht,Vn,en;switch(Tt){case 1:sn<128&&(Mt=sn);break;case 2:xt=dn[Wt+1],(xt&192)===128&&(en=(sn&31)<<6|xt&63,en>127&&(Mt=en));break;case 3:xt=dn[Wt+1],Ht=dn[Wt+2],(xt&192)===128&&(Ht&192)===128&&(en=(sn&15)<<12|(xt&63)<<6|Ht&63,en>2047&&(en<55296||en>57343)&&(Mt=en));break;case 4:xt=dn[Wt+1],Ht=dn[Wt+2],Vn=dn[Wt+3],(xt&192)===128&&(Ht&192)===128&&(Vn&192)===128&&(en=(sn&15)<<18|(xt&63)<<12|(Ht&63)<<6|Vn&63,en>65535&&en<1114112&&(Mt=en))}}Mt===null?(Mt=65533,Tt=1):Mt>65535&&(Mt-=65536,Ct.push(Mt>>>10&1023|55296),Mt=56320|Mt&1023),Ct.push(Mt),Wt+=Tt}return dt(Ct)}var Pt=4096;function dt(dn){var Ve=dn.length;if(Ve<=Pt)return String.fromCharCode.apply(String,dn);for(var yt="",Ct=0;CtCt)&&(yt=Ct);for(var Wt="",sn=Ve;snCt&&(Ve=Ct),yt<0?(yt+=Ct,yt<0&&(yt=0)):yt>Ct&&(yt=Ct),ytyt)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUIntLE=function(Ve,yt,Ct){Ve=Ve|0,yt=yt|0,Ct||vt(Ve,yt,this.length);for(var Wt=this[Ve],sn=1,Mt=0;++Mt0&&(sn*=256);)Wt+=this[Ve+--yt]*sn;return Wt},I.prototype.readUInt8=function(Ve,yt){return yt||vt(Ve,1,this.length),this[Ve]},I.prototype.readUInt16LE=function(Ve,yt){return yt||vt(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},I.prototype.readUInt16BE=function(Ve,yt){return yt||vt(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},I.prototype.readUInt32LE=function(Ve,yt){return yt||vt(Ve,4,this.length),(this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16)+this[Ve+3]*16777216},I.prototype.readUInt32BE=function(Ve,yt){return yt||vt(Ve,4,this.length),this[Ve]*16777216+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},I.prototype.readIntLE=function(Ve,yt,Ct){Ve=Ve|0,yt=yt|0,Ct||vt(Ve,yt,this.length);for(var Wt=this[Ve],sn=1,Mt=0;++Mt=sn&&(Wt-=Math.pow(2,8*yt)),Wt},I.prototype.readIntBE=function(Ve,yt,Ct){Ve=Ve|0,yt=yt|0,Ct||vt(Ve,yt,this.length);for(var Wt=yt,sn=1,Mt=this[Ve+--Wt];Wt>0&&(sn*=256);)Mt+=this[Ve+--Wt]*sn;return sn*=128,Mt>=sn&&(Mt-=Math.pow(2,8*yt)),Mt},I.prototype.readInt8=function(Ve,yt){return yt||vt(Ve,1,this.length),this[Ve]&128?(255-this[Ve]+1)*-1:this[Ve]},I.prototype.readInt16LE=function(Ve,yt){yt||vt(Ve,2,this.length);var Ct=this[Ve]|this[Ve+1]<<8;return Ct&32768?Ct|4294901760:Ct},I.prototype.readInt16BE=function(Ve,yt){yt||vt(Ve,2,this.length);var Ct=this[Ve+1]|this[Ve]<<8;return Ct&32768?Ct|4294901760:Ct},I.prototype.readInt32LE=function(Ve,yt){return yt||vt(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},I.prototype.readInt32BE=function(Ve,yt){return yt||vt(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},I.prototype.readFloatLE=function(Ve,yt){return yt||vt(Ve,4,this.length),b.read(this,Ve,!0,23,4)},I.prototype.readFloatBE=function(Ve,yt){return yt||vt(Ve,4,this.length),b.read(this,Ve,!1,23,4)},I.prototype.readDoubleLE=function(Ve,yt){return yt||vt(Ve,8,this.length),b.read(this,Ve,!0,52,8)},I.prototype.readDoubleBE=function(Ve,yt){return yt||vt(Ve,8,this.length),b.read(this,Ve,!1,52,8)};function yn(dn,Ve,yt,Ct,Wt,sn){if(!I.isBuffer(dn))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>Wt||Vedn.length)throw new RangeError("Index out of range")}I.prototype.writeUIntLE=function(Ve,yt,Ct,Wt){if(Ve=+Ve,yt=yt|0,Ct=Ct|0,!Wt){var sn=Math.pow(2,8*Ct)-1;yn(this,Ve,yt,Ct,sn,0)}var Mt=1,Tt=0;for(this[yt]=Ve&255;++Tt=0&&(Tt*=256);)this[yt+Mt]=Ve/Tt&255;return yt+Ct},I.prototype.writeUInt8=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,1,255,0),I.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),this[yt]=Ve&255,yt+1};function Bn(dn,Ve,yt,Ct){Ve<0&&(Ve=65535+Ve+1);for(var Wt=0,sn=Math.min(dn.length-yt,2);Wt>>(Ct?Wt:1-Wt)*8}I.prototype.writeUInt16LE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,2,65535,0),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8):Bn(this,Ve,yt,!0),yt+2},I.prototype.writeUInt16BE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,2,65535,0),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>8,this[yt+1]=Ve&255):Bn(this,Ve,yt,!1),yt+2};function Lr(dn,Ve,yt,Ct){Ve<0&&(Ve=4294967295+Ve+1);for(var Wt=0,sn=Math.min(dn.length-yt,4);Wt>>(Ct?Wt:3-Wt)*8&255}I.prototype.writeUInt32LE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,4,4294967295,0),I.TYPED_ARRAY_SUPPORT?(this[yt+3]=Ve>>>24,this[yt+2]=Ve>>>16,this[yt+1]=Ve>>>8,this[yt]=Ve&255):Lr(this,Ve,yt,!0),yt+4},I.prototype.writeUInt32BE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,4,4294967295,0),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>24,this[yt+1]=Ve>>>16,this[yt+2]=Ve>>>8,this[yt+3]=Ve&255):Lr(this,Ve,yt,!1),yt+4},I.prototype.writeIntLE=function(Ve,yt,Ct,Wt){if(Ve=+Ve,yt=yt|0,!Wt){var sn=Math.pow(2,8*Ct-1);yn(this,Ve,yt,Ct,sn-1,-sn)}var Mt=0,Tt=1,xt=0;for(this[yt]=Ve&255;++Mt>0)-xt&255;return yt+Ct},I.prototype.writeIntBE=function(Ve,yt,Ct,Wt){if(Ve=+Ve,yt=yt|0,!Wt){var sn=Math.pow(2,8*Ct-1);yn(this,Ve,yt,Ct,sn-1,-sn)}var Mt=Ct-1,Tt=1,xt=0;for(this[yt+Mt]=Ve&255;--Mt>=0&&(Tt*=256);)Ve<0&&xt===0&&this[yt+Mt+1]!==0&&(xt=1),this[yt+Mt]=(Ve/Tt>>0)-xt&255;return yt+Ct},I.prototype.writeInt8=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,1,127,-128),I.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),Ve<0&&(Ve=255+Ve+1),this[yt]=Ve&255,yt+1},I.prototype.writeInt16LE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,2,32767,-32768),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8):Bn(this,Ve,yt,!0),yt+2},I.prototype.writeInt16BE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,2,32767,-32768),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>8,this[yt+1]=Ve&255):Bn(this,Ve,yt,!1),yt+2},I.prototype.writeInt32LE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,4,2147483647,-2147483648),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8,this[yt+2]=Ve>>>16,this[yt+3]=Ve>>>24):Lr(this,Ve,yt,!0),yt+4},I.prototype.writeInt32BE=function(Ve,yt,Ct){return Ve=+Ve,yt=yt|0,Ct||yn(this,Ve,yt,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),I.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>24,this[yt+1]=Ve>>>16,this[yt+2]=Ve>>>8,this[yt+3]=Ve&255):Lr(this,Ve,yt,!1),yt+4};function ii(dn,Ve,yt,Ct,Wt,sn){if(yt+Ct>dn.length)throw new RangeError("Index out of range");if(yt<0)throw new RangeError("Index out of range")}function gi(dn,Ve,yt,Ct,Wt){return Wt||ii(dn,Ve,yt,4,34028234663852886e22,-34028234663852886e22),b.write(dn,Ve,yt,Ct,23,4),yt+4}I.prototype.writeFloatLE=function(Ve,yt,Ct){return gi(this,Ve,yt,!0,Ct)},I.prototype.writeFloatBE=function(Ve,yt,Ct){return gi(this,Ve,yt,!1,Ct)};function no(dn,Ve,yt,Ct,Wt){return Wt||ii(dn,Ve,yt,8,17976931348623157e292,-17976931348623157e292),b.write(dn,Ve,yt,Ct,52,8),yt+8}I.prototype.writeDoubleLE=function(Ve,yt,Ct){return no(this,Ve,yt,!0,Ct)},I.prototype.writeDoubleBE=function(Ve,yt,Ct){return no(this,Ve,yt,!1,Ct)},I.prototype.copy=function(Ve,yt,Ct,Wt){if(Ct||(Ct=0),!Wt&&Wt!==0&&(Wt=this.length),yt>=Ve.length&&(yt=Ve.length),yt||(yt=0),Wt>0&&Wt=this.length)throw new RangeError("sourceStart out of bounds");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),Ve.length-yt=0;--Mt)Ve[Mt+yt]=this[Mt+Ct];else if(sn<1e3||!I.TYPED_ARRAY_SUPPORT)for(Mt=0;Mt>>0,Ct=Ct===void 0?this.length:Ct>>>0,Ve||(Ve=0);var Mt;if(typeof Ve=="number")for(Mt=yt;Mt55295&&yt<57344){if(!Wt){if(yt>56319){(Ve-=3)>-1&&sn.push(239,191,189);continue}else if(Mt+1===Ct){(Ve-=3)>-1&&sn.push(239,191,189);continue}Wt=yt;continue}if(yt<56320){(Ve-=3)>-1&&sn.push(239,191,189),Wt=yt;continue}yt=(Wt-55296<<10|yt-56320)+65536}else Wt&&(Ve-=3)>-1&&sn.push(239,191,189);if(Wt=null,yt<128){if((Ve-=1)<0)break;sn.push(yt)}else if(yt<2048){if((Ve-=2)<0)break;sn.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((Ve-=3)<0)break;sn.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((Ve-=4)<0)break;sn.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return sn}function So(dn){for(var Ve=[],yt=0;yt>8,Wt=yt%256,sn.push(Wt),sn.push(Ct);return sn}function go(dn){return A.toByteArray(_r(dn))}function ji(dn,Ve,yt,Ct){for(var Wt=0;Wt=Ve.length||Wt>=dn.length);++Wt)Ve[Wt+yt]=dn[Wt];return Wt}function No(dn){return dn!==dn}},21924:function(nt,V,m){"use strict";var y=m(40210),A=m(55559),b=A(y("String.prototype.indexOf"));nt.exports=function(k,N){var w=y(k,!!N);return typeof w=="function"&&b(k,".prototype.")>-1?A(w):w}},55559:function(nt,V,m){"use strict";var y=m(58612),A=m(40210),b=A("%Function.prototype.apply%"),z=A("%Function.prototype.call%"),k=A("%Reflect.apply%",!0)||y.call(z,b),N=A("%Object.getOwnPropertyDescriptor%",!0),w=A("%Object.defineProperty%",!0),I=A("%Math.max%");if(w)try{w({},"a",{value:1})}catch(f){w=null}nt.exports=function(S){var P=k(y,z,arguments);if(N&&w){var W=N(P,"length");W.configurable&&w(P,"length",{value:1+I(0,S.length-(arguments.length-1))})}return P};var C=function(){return k(y,b,arguments)};w?w(nt.exports,"apply",{value:C}):nt.exports.apply=C},42152:function(nt){(function(m,y){nt.exports=y()})(this,function(){return function(){var V={686:function(A,b,z){"use strict";z.d(b,{default:function(){return He}});var k=z(279),N=z.n(k),w=z(370),I=z.n(w),C=z(817),f=z.n(C);function S(bt){try{return document.execCommand(bt)}catch(ft){return!1}}var P=function(ft){var $t=f()(ft);return S("cut"),$t},W=P;function te(bt){var ft=document.documentElement.getAttribute("dir")==="rtl",$t=document.createElement("textarea");$t.style.fontSize="12pt",$t.style.border="0",$t.style.padding="0",$t.style.margin="0",$t.style.position="absolute",$t.style[ft?"right":"left"]="-9999px";var vt=window.pageYOffset||document.documentElement.scrollTop;return $t.style.top="".concat(vt,"px"),$t.setAttribute("readonly",""),$t.value=bt,$t}var q=function(ft,$t){var vt=te(ft);$t.container.appendChild(vt);var yn=f()(vt);return S("copy"),vt.remove(),yn},ie=function(ft){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},vt="";return typeof ft=="string"?vt=q(ft,$t):ft instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ft==null?void 0:ft.type)?vt=q(ft.value,$t):(vt=f()(ft),S("copy")),vt},he=ie;function de(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function($t){return typeof $t}:de=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},de(bt)}var fe=function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=ft.action,vt=$t===void 0?"copy":$t,yn=ft.container,Bn=ft.target,Lr=ft.text;if(vt!=="copy"&&vt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Bn!==void 0)if(Bn&&de(Bn)==="object"&&Bn.nodeType===1){if(vt==="copy"&&Bn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(vt==="cut"&&(Bn.hasAttribute("readonly")||Bn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Lr)return he(Lr,{container:yn});if(Bn)return vt==="cut"?W(Bn):he(Bn,{container:yn})},ke=fe;function Ie(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function($t){return typeof $t}:Ie=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},Ie(bt)}function Be(bt,ft){if(!(bt instanceof ft))throw new TypeError("Cannot call a class as a function")}function be(bt,ft){for(var $t=0;$t0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof yn.action=="function"?yn.action:this.defaultAction,this.target=typeof yn.target=="function"?yn.target:this.defaultTarget,this.text=typeof yn.text=="function"?yn.text:this.defaultText,this.container=Ie(yn.container)==="object"?yn.container:document.body}},{key:"listenClick",value:function(yn){var Bn=this;this.listener=I()(yn,"click",function(Lr){return Bn.onClick(Lr)})}},{key:"onClick",value:function(yn){var Bn=yn.delegateTarget||yn.currentTarget,Lr=this.action(Bn)||"copy",ii=ke({action:Lr,container:this.container,target:this.target(Bn),text:this.text(Bn)});this.emit(ii?"success":"error",{action:Lr,text:ii,trigger:Bn,clearSelection:function(){Bn&&Bn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(yn){return Pt("action",yn)}},{key:"defaultTarget",value:function(yn){var Bn=Pt("target",yn);if(Bn)return document.querySelector(Bn)}},{key:"defaultText",value:function(yn){return Pt("text",yn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(yn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return he(yn,Bn)}},{key:"cut",value:function(yn){return W(yn)}},{key:"isSupported",value:function(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Bn=typeof yn=="string"?[yn]:yn,Lr=!!document.queryCommandSupported;return Bn.forEach(function(ii){Lr=Lr&&!!document.queryCommandSupported(ii)}),Lr}}]),$t}(N()),He=dt},828:function(A){var b=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var z=Element.prototype;z.matches=z.matchesSelector||z.mozMatchesSelector||z.msMatchesSelector||z.oMatchesSelector||z.webkitMatchesSelector}function k(N,w){for(;N&&N.nodeType!==b;){if(typeof N.matches=="function"&&N.matches(w))return N;N=N.parentNode}}A.exports=k},438:function(A,b,z){var k=z(828);function N(C,f,S,P,W){var te=I.apply(this,arguments);return C.addEventListener(S,te,W),{destroy:function(){C.removeEventListener(S,te,W)}}}function w(C,f,S,P,W){return typeof C.addEventListener=="function"?N.apply(null,arguments):typeof S=="function"?N.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(te){return N(te,f,S,P,W)}))}function I(C,f,S,P){return function(W){W.delegateTarget=k(W.target,f),W.delegateTarget&&P.call(C,W)}}A.exports=w},879:function(A,b){b.node=function(z){return z!==void 0&&z instanceof HTMLElement&&z.nodeType===1},b.nodeList=function(z){var k=Object.prototype.toString.call(z);return z!==void 0&&(k==="[object NodeList]"||k==="[object HTMLCollection]")&&"length"in z&&(z.length===0||b.node(z[0]))},b.string=function(z){return typeof z=="string"||z instanceof String},b.fn=function(z){var k=Object.prototype.toString.call(z);return k==="[object Function]"}},370:function(A,b,z){var k=z(879),N=z(438);function w(S,P,W){if(!S&&!P&&!W)throw new Error("Missing required arguments");if(!k.string(P))throw new TypeError("Second argument must be a String");if(!k.fn(W))throw new TypeError("Third argument must be a Function");if(k.node(S))return I(S,P,W);if(k.nodeList(S))return C(S,P,W);if(k.string(S))return f(S,P,W);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function I(S,P,W){return S.addEventListener(P,W),{destroy:function(){S.removeEventListener(P,W)}}}function C(S,P,W){return Array.prototype.forEach.call(S,function(te){te.addEventListener(P,W)}),{destroy:function(){Array.prototype.forEach.call(S,function(te){te.removeEventListener(P,W)})}}}function f(S,P,W){return N(document.body,S,P,W)}A.exports=w},817:function(A){function b(z){var k;if(z.nodeName==="SELECT")z.focus(),k=z.value;else if(z.nodeName==="INPUT"||z.nodeName==="TEXTAREA"){var N=z.hasAttribute("readonly");N||z.setAttribute("readonly",""),z.select(),z.setSelectionRange(0,z.value.length),N||z.removeAttribute("readonly"),k=z.value}else{z.hasAttribute("contenteditable")&&z.focus();var w=window.getSelection(),I=document.createRange();I.selectNodeContents(z),w.removeAllRanges(),w.addRange(I),k=w.toString()}return k}A.exports=b},279:function(A){function b(){}b.prototype={on:function(z,k,N){var w=this.e||(this.e={});return(w[z]||(w[z]=[])).push({fn:k,ctx:N}),this},once:function(z,k,N){var w=this;function I(){w.off(z,I),k.apply(N,arguments)}return I._=k,this.on(z,I,N)},emit:function(z){var k=[].slice.call(arguments,1),N=((this.e||(this.e={}))[z]||[]).slice(),w=0,I=N.length;for(w;w=4&&C[3]!==1&&(f=", "+C[3]),"hwb("+C[0]+", "+C[1]+"%, "+C[2]+"%"+f+")"},N.to.keyword=function(C){return z[C.slice(0,3)]};function w(C,f,S){return Math.min(Math.max(f,C),S)}function I(C){var f=Math.round(C).toString(16).toUpperCase();return f.length<2?"0"+f:f}},6767:function(nt,V,m){const y=m(19818),A=m(80978),b=["keyword","gray","hex"],z={};for(const W of Object.keys(A))z[[...A[W].labels].sort().join("")]=W;const k={};function N(W,te){if(!(this instanceof N))return new N(W,te);if(te&&te in b&&(te=null),te&&!(te in A))throw new Error("Unknown model: "+te);let q,ie;if(W==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(W instanceof N)this.model=W.model,this.color=[...W.color],this.valpha=W.valpha;else if(typeof W=="string"){const he=y.get(W);if(he===null)throw new Error("Unable to parse color from string: "+W);this.model=he.model,ie=A[this.model].channels,this.color=he.value.slice(0,ie),this.valpha=typeof he.value[ie]=="number"?he.value[ie]:1}else if(W.length>0){this.model=te||"rgb",ie=A[this.model].channels;const he=Array.prototype.slice.call(W,0,ie);this.color=P(he,ie),this.valpha=typeof W[ie]=="number"?W[ie]:1}else if(typeof W=="number")this.model="rgb",this.color=[W>>16&255,W>>8&255,W&255],this.valpha=1;else{this.valpha=1;const he=Object.keys(W);"alpha"in W&&(he.splice(he.indexOf("alpha"),1),this.valpha=typeof W.alpha=="number"?W.alpha:0);const de=he.sort().join("");if(!(de in z))throw new Error("Unable to parse color from object: "+JSON.stringify(W));this.model=z[de];const{labels:fe}=A[this.model],ke=[];for(q=0;q(W%360+360)%360),saturationl:C("hsl",1,f(100)),lightness:C("hsl",2,f(100)),saturationv:C("hsv",1,f(100)),value:C("hsv",2,f(100)),chroma:C("hcg",1,f(100)),gray:C("hcg",2,f(100)),white:C("hwb",1,f(100)),wblack:C("hwb",2,f(100)),cyan:C("cmyk",0,f(100)),magenta:C("cmyk",1,f(100)),yellow:C("cmyk",2,f(100)),black:C("cmyk",3,f(100)),x:C("xyz",0,f(95.047)),y:C("xyz",1,f(100)),z:C("xyz",2,f(108.833)),l:C("lab",0,f(100)),a:C("lab",1),b:C("lab",2),keyword(W){return W!==void 0?new N(W):A[this.model].keyword(this.color)},hex(W){return W!==void 0?new N(W):y.to.hex(this.rgb().round().color)},hexa(W){if(W!==void 0)return new N(W);const te=this.rgb().round().color;let q=Math.round(this.valpha*255).toString(16).toUpperCase();return q.length===1&&(q="0"+q),y.to.hex(te)+q},rgbNumber(){const W=this.rgb().color;return(W[0]&255)<<16|(W[1]&255)<<8|W[2]&255},luminosity(){const W=this.rgb().color,te=[];for(const[q,ie]of W.entries()){const he=ie/255;te[q]=he<=.04045?he/12.92:u1((he+.055)/1.055,2.4)}return .2126*te[0]+.7152*te[1]+.0722*te[2]},contrast(W){const te=this.luminosity(),q=W.luminosity();return te>q?(te+.05)/(q+.05):(q+.05)/(te+.05)},level(W){const te=this.contrast(W);return te>=7?"AAA":te>=4.5?"AA":""},isDark(){const W=this.rgb().color;return(W[0]*2126+W[1]*7152+W[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const W=this.rgb();for(let te=0;te<3;te++)W.color[te]=255-W.color[te];return W},lighten(W){const te=this.hsl();return te.color[2]+=te.color[2]*W,te},darken(W){const te=this.hsl();return te.color[2]-=te.color[2]*W,te},saturate(W){const te=this.hsl();return te.color[1]+=te.color[1]*W,te},desaturate(W){const te=this.hsl();return te.color[1]-=te.color[1]*W,te},whiten(W){const te=this.hwb();return te.color[1]+=te.color[1]*W,te},blacken(W){const te=this.hwb();return te.color[2]+=te.color[2]*W,te},grayscale(){const W=this.rgb().color,te=W[0]*.3+W[1]*.59+W[2]*.11;return N.rgb(te,te,te)},fade(W){return this.alpha(this.valpha-this.valpha*W)},opaquer(W){return this.alpha(this.valpha+this.valpha*W)},rotate(W){const te=this.hsl();let q=te.color[0];return q=(q+W)%360,q=q<0?360+q:q,te.color[0]=q,te},mix(W,te){if(!W||!W.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof W);const q=W.rgb(),ie=this.rgb(),he=te===void 0?.5:te,de=2*he-1,fe=q.alpha()-ie.alpha(),ke=((de*fe===-1?de:(de+fe)/(1+de*fe))+1)/2,Ie=1-ke;return N.rgb(ke*q.red()+Ie*ie.red(),ke*q.green()+Ie*ie.green(),ke*q.blue()+Ie*ie.blue(),q.alpha()*he+ie.alpha()*(1-he))}};for(const W of Object.keys(A)){if(b.includes(W))continue;const{channels:te}=A[W];N.prototype[W]=function(...q){return this.model===W?new N(this):q.length>0?new N(q,W):new N([...S(A[this.model][W].raw(this.color)),this.valpha],W)},N[W]=function(...q){let ie=q[0];return typeof ie=="number"&&(ie=P(q,te)),new N(ie,W)}}function w(W,te){return Number(W.toFixed(te))}function I(W){return function(te){return w(te,W)}}function C(W,te,q){W=Array.isArray(W)?W:[W];for(const ie of W)(k[ie]||(k[ie]=[]))[te]=q;return W=W[0],function(ie){let he;return ie!==void 0?(q&&(ie=q(ie)),he=this[W](),he.color[te]=ie,he):(he=this[W]().color[te],q&&(he=q(he)),he)}}function f(W){return function(te){return Math.max(0,Math.min(W,te))}}function S(W){return Array.isArray(W)?W:[W]}function P(W,te){for(let q=0;q1&&(C-=1)),[C*360,f*100,te*100]},b.rgb.hwb=function(k){const N=k[0],w=k[1];let I=k[2];const C=b.rgb.hsl(k)[0],f=1/255*Math.min(N,Math.min(w,I));return I=1-1/255*Math.max(N,Math.max(w,I)),[C,f*100,I*100]},b.rgb.cmyk=function(k){const N=k[0]/255,w=k[1]/255,I=k[2]/255,C=Math.min(1-N,1-w,1-I),f=(1-N-C)/(1-C)||0,S=(1-w-C)/(1-C)||0,P=(1-I-C)/(1-C)||0;return[f*100,S*100,P*100,C*100]};function z(k,N){return u1(k[0]-N[0],2)+u1(k[1]-N[1],2)+u1(k[2]-N[2],2)}b.rgb.keyword=function(k){const N=A[k];if(N)return N;let w=1/0,I;for(const C of Object.keys(y)){const f=y[C],S=z(k,f);S.04045?u1((N+.055)/1.055,2.4):N/12.92,w=w>.04045?u1((w+.055)/1.055,2.4):w/12.92,I=I>.04045?u1((I+.055)/1.055,2.4):I/12.92;const C=N*.4124+w*.3576+I*.1805,f=N*.2126+w*.7152+I*.0722,S=N*.0193+w*.1192+I*.9505;return[C*100,f*100,S*100]},b.rgb.lab=function(k){const N=b.rgb.xyz(k);let w=N[0],I=N[1],C=N[2];w/=95.047,I/=100,C/=108.883,w=w>.008856?u1(w,1/3):7.787*w+16/116,I=I>.008856?u1(I,1/3):7.787*I+16/116,C=C>.008856?u1(C,1/3):7.787*C+16/116;const f=116*I-16,S=500*(w-I),P=200*(I-C);return[f,S,P]},b.hsl.rgb=function(k){const N=k[0]/360,w=k[1]/100,I=k[2]/100;let C,f,S;if(w===0)return S=I*255,[S,S,S];I<.5?C=I*(1+w):C=I+w-I*w;const P=2*I-C,W=[0,0,0];for(let te=0;te<3;te++)f=N+1/3*-(te-1),f<0&&f++,f>1&&f--,6*f<1?S=P+(C-P)*6*f:2*f<1?S=C:3*f<2?S=P+(C-P)*(2/3-f)*6:S=P,W[te]=S*255;return W},b.hsl.hsv=function(k){const N=k[0];let w=k[1]/100,I=k[2]/100,C=w;const f=Math.max(I,.01);I*=2,w*=I<=1?I:2-I,C*=f<=1?f:2-f;const S=(I+w)/2,P=I===0?2*C/(f+C):2*w/(I+w);return[N,P*100,S*100]},b.hsv.rgb=function(k){const N=k[0]/60,w=k[1]/100;let I=k[2]/100;const C=Math.floor(N)%6,f=N-Math.floor(N),S=255*I*(1-w),P=255*I*(1-w*f),W=255*I*(1-w*(1-f));switch(I*=255,C){case 0:return[I,W,S];case 1:return[P,I,S];case 2:return[S,I,W];case 3:return[S,P,I];case 4:return[W,S,I];case 5:return[I,S,P]}},b.hsv.hsl=function(k){const N=k[0],w=k[1]/100,I=k[2]/100,C=Math.max(I,.01);let f,S;S=(2-w)*I;const P=(2-w)*C;return f=w*C,f/=P<=1?P:2-P,f=f||0,S/=2,[N,f*100,S*100]},b.hwb.rgb=function(k){const N=k[0]/360;let w=k[1]/100,I=k[2]/100;const C=w+I;let f;C>1&&(w/=C,I/=C);const S=Math.floor(6*N),P=1-I;f=6*N-S,S&1&&(f=1-f);const W=w+f*(P-w);let te,q,ie;switch(S){default:case 6:case 0:te=P,q=W,ie=w;break;case 1:te=W,q=P,ie=w;break;case 2:te=w,q=P,ie=W;break;case 3:te=w,q=W,ie=P;break;case 4:te=W,q=w,ie=P;break;case 5:te=P,q=w,ie=W;break}return[te*255,q*255,ie*255]},b.cmyk.rgb=function(k){const N=k[0]/100,w=k[1]/100,I=k[2]/100,C=k[3]/100,f=1-Math.min(1,N*(1-C)+C),S=1-Math.min(1,w*(1-C)+C),P=1-Math.min(1,I*(1-C)+C);return[f*255,S*255,P*255]},b.xyz.rgb=function(k){const N=k[0]/100,w=k[1]/100,I=k[2]/100;let C,f,S;return C=N*3.2406+w*-1.5372+I*-.4986,f=N*-.9689+w*1.8758+I*.0415,S=N*.0557+w*-.204+I*1.057,C=C>.0031308?1.055*u1(C,1/2.4)-.055:C*12.92,f=f>.0031308?1.055*u1(f,1/2.4)-.055:f*12.92,S=S>.0031308?1.055*u1(S,1/2.4)-.055:S*12.92,C=Math.min(Math.max(0,C),1),f=Math.min(Math.max(0,f),1),S=Math.min(Math.max(0,S),1),[C*255,f*255,S*255]},b.xyz.lab=function(k){let N=k[0],w=k[1],I=k[2];N/=95.047,w/=100,I/=108.883,N=N>.008856?u1(N,1/3):7.787*N+16/116,w=w>.008856?u1(w,1/3):7.787*w+16/116,I=I>.008856?u1(I,1/3):7.787*I+16/116;const C=116*w-16,f=500*(N-w),S=200*(w-I);return[C,f,S]},b.lab.xyz=function(k){const N=k[0],w=k[1],I=k[2];let C,f,S;f=(N+16)/116,C=w/500+f,S=f-I/200;const P=u1(f,3),W=u1(C,3),te=u1(S,3);return f=P>.008856?P:(f-16/116)/7.787,C=W>.008856?W:(C-16/116)/7.787,S=te>.008856?te:(S-16/116)/7.787,C*=95.047,f*=100,S*=108.883,[C,f,S]},b.lab.lch=function(k){const N=k[0],w=k[1],I=k[2];let C;C=Math.atan2(I,w)*360/2/Math.PI,C<0&&(C+=360);const S=Math.sqrt(w*w+I*I);return[N,S,C]},b.lch.lab=function(k){const N=k[0],w=k[1],C=k[2]/360*2*Math.PI,f=w*Math.cos(C),S=w*Math.sin(C);return[N,f,S]},b.rgb.ansi16=function(k,N=null){const[w,I,C]=k;let f=N===null?b.rgb.hsv(k)[2]:N;if(f=Math.round(f/50),f===0)return 30;let S=30+(Math.round(C/255)<<2|Math.round(I/255)<<1|Math.round(w/255));return f===2&&(S+=60),S},b.hsv.ansi16=function(k){return b.rgb.ansi16(b.hsv.rgb(k),k[2])},b.rgb.ansi256=function(k){const N=k[0],w=k[1],I=k[2];return N===w&&w===I?N<8?16:N>248?231:Math.round((N-8)/247*24)+232:16+36*Math.round(N/255*5)+6*Math.round(w/255*5)+Math.round(I/255*5)},b.ansi16.rgb=function(k){let N=k%10;if(N===0||N===7)return k>50&&(N+=3.5),N=N/10.5*255,[N,N,N];const w=(~~(k>50)+1)*.5,I=(N&1)*w*255,C=(N>>1&1)*w*255,f=(N>>2&1)*w*255;return[I,C,f]},b.ansi256.rgb=function(k){if(k>=232){const f=(k-232)*10+8;return[f,f,f]}k-=16;let N;const w=Math.floor(k/36)/5*255,I=Math.floor((N=k%36)/6)/5*255,C=N%6/5*255;return[w,I,C]},b.rgb.hex=function(k){const w=(((Math.round(k[0])&255)<<16)+((Math.round(k[1])&255)<<8)+(Math.round(k[2])&255)).toString(16).toUpperCase();return"000000".substring(w.length)+w},b.hex.rgb=function(k){const N=k.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!N)return[0,0,0];let w=N[0];N[0].length===3&&(w=w.split("").map(P=>P+P).join(""));const I=parseInt(w,16),C=I>>16&255,f=I>>8&255,S=I&255;return[C,f,S]},b.rgb.hcg=function(k){const N=k[0]/255,w=k[1]/255,I=k[2]/255,C=Math.max(Math.max(N,w),I),f=Math.min(Math.min(N,w),I),S=C-f;let P,W;return S<1?P=f/(1-S):P=0,S<=0?W=0:C===N?W=(w-I)/S%6:C===w?W=2+(I-N)/S:W=4+(N-w)/S,W/=6,W%=1,[W*360,S*100,P*100]},b.hsl.hcg=function(k){const N=k[1]/100,w=k[2]/100,I=w<.5?2*N*w:2*N*(1-w);let C=0;return I<1&&(C=(w-.5*I)/(1-I)),[k[0],I*100,C*100]},b.hsv.hcg=function(k){const N=k[1]/100,w=k[2]/100,I=N*w;let C=0;return I<1&&(C=(w-I)/(1-I)),[k[0],I*100,C*100]},b.hcg.rgb=function(k){const N=k[0]/360,w=k[1]/100,I=k[2]/100;if(w===0)return[I*255,I*255,I*255];const C=[0,0,0],f=N%1*6,S=f%1,P=1-S;let W=0;switch(Math.floor(f)){case 0:C[0]=1,C[1]=S,C[2]=0;break;case 1:C[0]=P,C[1]=1,C[2]=0;break;case 2:C[0]=0,C[1]=1,C[2]=S;break;case 3:C[0]=0,C[1]=P,C[2]=1;break;case 4:C[0]=S,C[1]=0,C[2]=1;break;default:C[0]=1,C[1]=0,C[2]=P}return W=(1-w)*I,[(w*C[0]+W)*255,(w*C[1]+W)*255,(w*C[2]+W)*255]},b.hcg.hsv=function(k){const N=k[1]/100,w=k[2]/100,I=N+w*(1-N);let C=0;return I>0&&(C=N/I),[k[0],C*100,I*100]},b.hcg.hsl=function(k){const N=k[1]/100,I=k[2]/100*(1-N)+.5*N;let C=0;return I>0&&I<.5?C=N/(2*I):I>=.5&&I<1&&(C=N/(2*(1-I))),[k[0],C*100,I*100]},b.hcg.hwb=function(k){const N=k[1]/100,w=k[2]/100,I=N+w*(1-N);return[k[0],(I-N)*100,(1-I)*100]},b.hwb.hcg=function(k){const N=k[1]/100,I=1-k[2]/100,C=I-N;let f=0;return C<1&&(f=(I-C)/(1-C)),[k[0],C*100,f*100]},b.apple.rgb=function(k){return[k[0]/65535*255,k[1]/65535*255,k[2]/65535*255]},b.rgb.apple=function(k){return[k[0]/255*65535,k[1]/255*65535,k[2]/255*65535]},b.gray.rgb=function(k){return[k[0]/100*255,k[0]/100*255,k[0]/100*255]},b.gray.hsl=function(k){return[0,0,k[0]]},b.gray.hsv=b.gray.hsl,b.gray.hwb=function(k){return[0,100,k[0]]},b.gray.cmyk=function(k){return[0,0,0,k[0]]},b.gray.lab=function(k){return[k[0],0,0]},b.gray.hex=function(k){const N=Math.round(k[0]/100*255)&255,I=((N<<16)+(N<<8)+N).toString(16).toUpperCase();return"000000".substring(I.length)+I},b.rgb.gray=function(k){return[(k[0]+k[1]+k[2])/3/255*100]}},80978:function(nt,V,m){const y=m(12956),A=m(87774),b={},z=Object.keys(y);function k(w){const I=function(...C){const f=C[0];return f==null?f:(f.length>1&&(C=f),w(C))};return"conversion"in w&&(I.conversion=w.conversion),I}function N(w){const I=function(...C){const f=C[0];if(f==null)return f;f.length>1&&(C=f);const S=w(C);if(typeof S=="object")for(let P=S.length,W=0;W{b[w]={},Object.defineProperty(b[w],"channels",{value:y[w].channels}),Object.defineProperty(b[w],"labels",{value:y[w].labels});const I=A(w);Object.keys(I).forEach(f=>{const S=I[f];b[w][f]=N(S),b[w][f].raw=k(S)})}),nt.exports=b},87774:function(nt,V,m){const y=m(12956);function A(){const N={},w=Object.keys(y);for(let I=w.length,C=0;C_e||De.push({node:we,dist:Pt})}for(;De.length&&!De.peek().node.children;){var dt=De.pop(),He=dt.node,bt=he(He,Be,be),ft=he(He,me,ye);if(dt.dist=Be.minX&&Ie[0]<=Be.maxX&&Ie[1]>=Be.minY&&Ie[1]<=Be.maxY}function f(Ie,Be,be){for(var me=Math.min(Ie[0],Be[0]),ye=Math.min(Ie[1],Be[1]),_e=Math.max(Ie[0],Be[0]),Ce=Math.max(Ie[1],Be[1]),De=be.search({minX:me,minY:ye,maxX:_e,maxY:Ce}),ge=0;ge0!=S(Ie,Be,me)>0&&S(be,me,Ie)>0!=S(be,me,Be)>0}function W(Ie){var Be=Ie.p,be=Ie.next.p;return Ie.minX=Math.min(Be[0],be[0]),Ie.minY=Math.min(Be[1],be[1]),Ie.maxX=Math.max(Be[0],be[0]),Ie.maxY=Math.max(Be[1],be[1]),Ie}function te(Ie){for(var Be=Ie[0],be=Ie[0],me=Ie[0],ye=Ie[0],_e=0;_eme[0]&&(me=Ce),Ce[1]ye[1]&&(ye=Ce)}var De=[Be,be,me,ye],ge=De.slice();for(_e=0;_e1?(me=be[0],ye=be[1]):De>0&&(me+=_e*De,ye+=Ce*De)}return _e=Ie[0]-me,Ce=Ie[1]-ye,_e*_e+Ce*Ce}function de(Ie,Be,be,me,ye,_e,Ce,De){var ge=be-Ie,je=me-Be,we=Ce-ye,Pt=De-_e,dt=Ie-ye,He=Be-_e,bt=ge*ge+je*je,ft=ge*we+je*Pt,$t=we*we+Pt*Pt,vt=ge*dt+je*He,yn=we*dt+Pt*He,Bn=bt*$t-ft*ft,Lr,ii,gi,no,To=Bn,_r=Bn;Bn===0?(ii=0,To=1,no=yn,_r=$t):(ii=ft*yn-$t*vt,no=bt*yn-ft*vt,ii<0?(ii=0,no=yn,_r=$t):ii>To&&(ii=To,no=yn+ft,_r=$t)),no<0?(no=0,-vt<0?ii=0:-vt>bt?ii=To:(ii=-vt,To=bt)):no>_r&&(no=_r,-vt+ft<0?ii=0:-vt+ft>bt?ii=To:(ii=-vt+ft,To=bt)),Lr=ii===0?0:ii/To,gi=no===0?0:no/_r;var Bo=(1-Lr)*Ie+Lr*be,hs=(1-Lr)*Be+Lr*me,ve=(1-gi)*ye+gi*Ce,So=(1-gi)*_e+gi*De,ho=ve-Bo,go=So-hs;return ho*ho+go*go}function fe(Ie,Be){return Ie[0]===Be[0]?Ie[1]-Be[1]:Ie[0]-Be[0]}function ke(Ie){Ie.sort(fe);for(var Be=[],be=0;be=2&&S(Be[Be.length-2],Be[Be.length-1],Ie[be])<=0;)Be.pop();Be.push(Ie[be])}for(var me=[],ye=Ie.length-1;ye>=0;ye--){for(;me.length>=2&&S(me[me.length-2],me[me.length-1],Ie[ye])<=0;)me.pop();me.push(Ie[ye])}return me.pop(),Be.pop(),Be.concat(me)}},81662:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";function V(q,ie,he,de,fe){(function ke(Ie,Be,be,me,ye){for(;me>be;){if(me-be>600){var _e=me-be+1,Ce=Be-be+1,De=Math.log(_e),ge=.5*Math.exp(2*De/3),je=.5*Math.sqrt(De*ge*(_e-ge)/_e)*(Ce-_e/2<0?-1:1),we=Math.max(be,Math.floor(Be-Ce*ge/_e+je)),Pt=Math.min(me,Math.floor(Be+(_e-Ce)*ge/_e+je));ke(Ie,Be,we,Pt,ye)}var dt=Ie[Be],He=be,bt=me;for(m(Ie,be,Be),ye(Ie[me],dt)>0&&m(Ie,be,me);He0;)bt--}ye(Ie[be],dt)===0?m(Ie,be,bt):m(Ie,++bt,me),bt<=Be&&(be=bt+1),Be<=bt&&(me=bt-1)}})(q,ie,he||0,de||q.length-1,fe||y)}function m(q,ie,he){var de=q[ie];q[ie]=q[he],q[he]=de}function y(q,ie){return qie?1:0}var A=function(q){q===void 0&&(q=9),this._maxEntries=Math.max(4,q),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(q,ie,he){if(!he)return ie.indexOf(q);for(var de=0;de=q.minX&&ie.maxY>=q.minY}function W(q){return{children:q,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function te(q,ie,he,de,fe){for(var ke=[ie,he];ke.length;)if(!((he=ke.pop())-(ie=ke.pop())<=de)){var Ie=ie+Math.ceil((he-ie)/de/2)*de;V(q,Ie,ie,he,fe),ke.push(ie,Ie,Ie,he)}}return A.prototype.all=function(){return this._all(this.data,[])},A.prototype.search=function(q){var ie=this.data,he=[];if(!P(q,ie))return he;for(var de=this.toBBox,fe=[];ie;){for(var ke=0;ke=0&&fe[ie].children.length>this._maxEntries;)this._split(fe,ie),ie--;this._adjustParentBBoxes(de,fe,ie)},A.prototype._split=function(q,ie){var he=q[ie],de=he.children.length,fe=this._minEntries;this._chooseSplitAxis(he,fe,de);var ke=this._chooseSplitIndex(he,fe,de),Ie=W(he.children.splice(ke,he.children.length-ke));Ie.height=he.height,Ie.leaf=he.leaf,z(he,this.toBBox),z(Ie,this.toBBox),ie?q[ie-1].children.push(Ie):this._splitRoot(he,Ie)},A.prototype._splitRoot=function(q,ie){this.data=W([q,ie]),this.data.height=q.height+1,this.data.leaf=!1,z(this.data,this.toBBox)},A.prototype._chooseSplitIndex=function(q,ie,he){for(var de,fe,ke,Ie,Be,be,me,ye=1/0,_e=1/0,Ce=ie;Ce<=he-ie;Ce++){var De=k(q,0,Ce,this.toBBox),ge=k(q,Ce,he,this.toBBox),je=(fe=De,ke=ge,Ie=void 0,Be=void 0,be=void 0,me=void 0,Ie=Math.max(fe.minX,ke.minX),Be=Math.max(fe.minY,ke.minY),be=Math.min(fe.maxX,ke.maxX),me=Math.min(fe.maxY,ke.maxY),Math.max(0,be-Ie)*Math.max(0,me-Be)),we=C(De)+C(ge);je=ie;ye--){var _e=q.children[ye];N(Ie,q.leaf?fe(_e):_e),Be+=f(Ie)}return Be},A.prototype._adjustParentBBoxes=function(q,ie,he){for(var de=he;de>=0;de--)N(ie[de],q)},A.prototype._condense=function(q){for(var ie=q.length-1,he=void 0;ie>=0;ie--)q[ie].children.length===0?ie>0?(he=q[ie-1].children).splice(he.indexOf(q[ie]),1):this.clear():z(q[ie],this.toBBox)},A})},54098:function(nt,V){var m=typeof self!="undefined"?self:this,y=function(){function b(){this.fetch=!1,this.DOMException=m.DOMException}return b.prototype=m,new b}();(function(b){var z=function(k){var N={searchParams:"URLSearchParams"in b,iterable:"Symbol"in b&&"iterator"in Symbol,blob:"FileReader"in b&&"Blob"in b&&function(){try{return new Blob,!0}catch(ge){return!1}}(),formData:"FormData"in b,arrayBuffer:"ArrayBuffer"in b};function w(ge){return ge&&DataView.prototype.isPrototypeOf(ge)}if(N.arrayBuffer)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(ge){return ge&&I.indexOf(Object.prototype.toString.call(ge))>-1};function f(ge){if(typeof ge!="string"&&(ge=String(ge)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ge))throw new TypeError("Invalid character in header field name");return ge.toLowerCase()}function S(ge){return typeof ge!="string"&&(ge=String(ge)),ge}function P(ge){var je={next:function(){var we=ge.shift();return{done:we===void 0,value:we}}};return N.iterable&&(je[Symbol.iterator]=function(){return je}),je}function W(ge){this.map={},ge instanceof W?ge.forEach(function(je,we){this.append(we,je)},this):Array.isArray(ge)?ge.forEach(function(je){this.append(je[0],je[1])},this):ge&&Object.getOwnPropertyNames(ge).forEach(function(je){this.append(je,ge[je])},this)}W.prototype.append=function(ge,je){ge=f(ge),je=S(je);var we=this.map[ge];this.map[ge]=we?we+", "+je:je},W.prototype.delete=function(ge){delete this.map[f(ge)]},W.prototype.get=function(ge){return ge=f(ge),this.has(ge)?this.map[ge]:null},W.prototype.has=function(ge){return this.map.hasOwnProperty(f(ge))},W.prototype.set=function(ge,je){this.map[f(ge)]=S(je)},W.prototype.forEach=function(ge,je){for(var we in this.map)this.map.hasOwnProperty(we)&&ge.call(je,this.map[we],we,this)},W.prototype.keys=function(){var ge=[];return this.forEach(function(je,we){ge.push(we)}),P(ge)},W.prototype.values=function(){var ge=[];return this.forEach(function(je){ge.push(je)}),P(ge)},W.prototype.entries=function(){var ge=[];return this.forEach(function(je,we){ge.push([we,je])}),P(ge)},N.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function te(ge){if(ge.bodyUsed)return Promise.reject(new TypeError("Already read"));ge.bodyUsed=!0}function q(ge){return new Promise(function(je,we){ge.onload=function(){je(ge.result)},ge.onerror=function(){we(ge.error)}})}function ie(ge){var je=new FileReader,we=q(je);return je.readAsArrayBuffer(ge),we}function he(ge){var je=new FileReader,we=q(je);return je.readAsText(ge),we}function de(ge){for(var je=new Uint8Array(ge),we=new Array(je.length),Pt=0;Pt-1?je:ge}function be(ge,je){je=je||{};var we=je.body;if(ge instanceof be){if(ge.bodyUsed)throw new TypeError("Already read");this.url=ge.url,this.credentials=ge.credentials,je.headers||(this.headers=new W(ge.headers)),this.method=ge.method,this.mode=ge.mode,this.signal=ge.signal,!we&&ge._bodyInit!=null&&(we=ge._bodyInit,ge.bodyUsed=!0)}else this.url=String(ge);if(this.credentials=je.credentials||this.credentials||"same-origin",(je.headers||!this.headers)&&(this.headers=new W(je.headers)),this.method=Be(je.method||this.method||"GET"),this.mode=je.mode||this.mode||null,this.signal=je.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&we)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(we)}be.prototype.clone=function(){return new be(this,{body:this._bodyInit})};function me(ge){var je=new FormData;return ge.trim().split("&").forEach(function(we){if(we){var Pt=we.split("="),dt=Pt.shift().replace(/\+/g," "),He=Pt.join("=").replace(/\+/g," ");je.append(decodeURIComponent(dt),decodeURIComponent(He))}}),je}function ye(ge){var je=new W,we=ge.replace(/\r?\n[\t ]+/g," ");return we.split(/\r?\n/).forEach(function(Pt){var dt=Pt.split(":"),He=dt.shift().trim();if(He){var bt=dt.join(":").trim();je.append(He,bt)}}),je}ke.call(be.prototype);function _e(ge,je){je||(je={}),this.type="default",this.status=je.status===void 0?200:je.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in je?je.statusText:"OK",this.headers=new W(je.headers),this.url=je.url||"",this._initBody(ge)}ke.call(_e.prototype),_e.prototype.clone=function(){return new _e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},_e.error=function(){var ge=new _e(null,{status:0,statusText:""});return ge.type="error",ge};var Ce=[301,302,303,307,308];_e.redirect=function(ge,je){if(Ce.indexOf(je)===-1)throw new RangeError("Invalid status code");return new _e(null,{status:je,headers:{location:ge}})},k.DOMException=b.DOMException;try{new k.DOMException}catch(ge){k.DOMException=function(je,we){this.message=je,this.name=we;var Pt=Error(je);this.stack=Pt.stack},k.DOMException.prototype=Object.create(Error.prototype),k.DOMException.prototype.constructor=k.DOMException}function De(ge,je){return new Promise(function(we,Pt){var dt=new be(ge,je);if(dt.signal&&dt.signal.aborted)return Pt(new k.DOMException("Aborted","AbortError"));var He=new XMLHttpRequest;function bt(){He.abort()}He.onload=function(){var ft={status:He.status,statusText:He.statusText,headers:ye(He.getAllResponseHeaders()||"")};ft.url="responseURL"in He?He.responseURL:ft.headers.get("X-Request-URL");var $t="response"in He?He.response:He.responseText;we(new _e($t,ft))},He.onerror=function(){Pt(new TypeError("Network request failed"))},He.ontimeout=function(){Pt(new TypeError("Network request failed"))},He.onabort=function(){Pt(new k.DOMException("Aborted","AbortError"))},He.open(dt.method,dt.url,!0),dt.credentials==="include"?He.withCredentials=!0:dt.credentials==="omit"&&(He.withCredentials=!1),"responseType"in He&&N.blob&&(He.responseType="blob"),dt.headers.forEach(function(ft,$t){He.setRequestHeader($t,ft)}),dt.signal&&(dt.signal.addEventListener("abort",bt),He.onreadystatechange=function(){He.readyState===4&&dt.signal.removeEventListener("abort",bt)}),He.send(typeof dt._bodyInit=="undefined"?null:dt._bodyInit)})}return De.polyfill=!0,b.fetch||(b.fetch=De,b.Headers=W,b.Request=be,b.Response=_e),k.Headers=W,k.Request=be,k.Response=_e,k.fetch=De,Object.defineProperty(k,"__esModule",{value:!0}),k}({})})(y),y.fetch.ponyfill=!0,delete y.fetch.polyfill;var A=y;V=A.fetch,V.default=A.fetch,V.fetch=A.fetch,V.Headers=A.Headers,V.Request=A.Request,V.Response=A.Response,nt.exports=V},61272:function(nt,V,m){"use strict";m.d(V,{j2:function(){return y},b4:function(){return w},YF:function(){return A},We:function(){return I},TS:function(){return ke},VR:function(){return Be},G9:function(){return ie},ly:function(){return he},sd:function(){return q}});function y(be,me){return beme?1:be>=me?0:NaN}function A(be){return be.length===1&&(be=b(be)),{left:function(me,ye,_e,Ce){for(_e==null&&(_e=0),Ce==null&&(Ce=me.length);_e>>1;be(me[De],ye)<0?_e=De+1:Ce=De}return _e},right:function(me,ye,_e,Ce){for(_e==null&&(_e=0),Ce==null&&(Ce=me.length);_e>>1;be(me[De],ye)>0?Ce=De:_e=De+1}return _e}}}function b(be){return function(me,ye){return y(be(me),ye)}}var z=A(y),k=z.right,N=z.left,w=k;function I(be,me){var ye=be.length,_e=-1,Ce,De,ge;if(me==null){for(;++_e=Ce)for(De=ge=Ce;++_eCe&&(De=Ce),ge=Ce)for(De=ge=Ce;++_eCe&&(De=Ce),ge0)return[be];if((_e=me0)for(be=Math.ceil(be/je),me=Math.floor(me/je),ge=new Array(De=Math.ceil(me-be+1));++Ce=0?(De>=P?10:De>=W?5:De>=te?2:1)*Math.pow(10,Ce):-Math.pow(10,-Ce)/(De>=P?10:De>=W?5:De>=te?2:1)}function he(be,me,ye){var _e=Math.abs(me-be)/Math.max(0,ye),Ce=Math.pow(10,Math.floor(Math.log(_e)/Math.LN10)),De=_e/Ce;return De>=P?Ce*=10:De>=W?Ce*=5:De>=te&&(Ce*=2),meHe;)bt.pop(),--ft;var $t=new Array(ft+1),vt;for(De=0;De<=ft;++De)vt=$t[De]=[],vt.x0=De>0?bt[De-1]:dt,vt.x1=De=0;)for(ge=be[me],ye=ge.length;--ye>=0;)De[--Ce]=ge[ye];return De}function Ie(be){return be===null?NaN:+be}function Be(be,me,ye){if(ye==null&&(ye=Ie),!!(_e=be.length)){if((me=+me)<=0||_e<2)return+ye(be[0],0,be);if(me>=1)return+ye(be[_e-1],_e-1,be);var _e,Ce=(_e-1)*me,De=Math.floor(Ce),ge=+ye(be[De],De,be),je=+ye(be[De+1],De+1,be);return ge+(je-ge)*(Ce-De)}}},27484:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V=1e3,m=6e4,y=36e5,A="millisecond",b="second",z="minute",k="hour",N="day",w="week",I="month",C="quarter",f="year",S="date",P="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,te=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ce){var De=["th","st","nd","rd"],ge=Ce%100;return"["+Ce+(De[(ge-20)%10]||De[ge]||De[0])+"]"}},ie=function(Ce,De,ge){var je=String(Ce);return!je||je.length>=De?Ce:""+Array(De+1-je.length).join(ge)+Ce},he={s:ie,z:function(Ce){var De=-Ce.utcOffset(),ge=Math.abs(De),je=Math.floor(ge/60),we=ge%60;return(De<=0?"+":"-")+ie(je,2,"0")+":"+ie(we,2,"0")},m:function Ce(De,ge){if(De.date()1)return Ce(dt[0])}else{var He=De.name;fe[He]=De,we=He}return!je&&we&&(de=we),we||!je&&de},be=function(Ce,De){if(Ie(Ce))return Ce.clone();var ge=typeof De=="object"?De:{};return ge.date=Ce,ge.args=arguments,new ye(ge)},me=he;me.l=Be,me.i=Ie,me.w=function(Ce,De){return be(Ce,{locale:De.$L,utc:De.$u,x:De.$x,$offset:De.$offset})};var ye=function(){function Ce(ge){this.$L=Be(ge.locale,null,!0),this.parse(ge),this.$x=this.$x||ge.x||{},this[ke]=!0}var De=Ce.prototype;return De.parse=function(ge){this.$d=function(je){var we=je.date,Pt=je.utc;if(we===null)return new Date(NaN);if(me.u(we))return new Date;if(we instanceof Date)return new Date(we);if(typeof we=="string"&&!/Z$/i.test(we)){var dt=we.match(W);if(dt){var He=dt[2]-1||0,bt=(dt[7]||"0").substring(0,3);return Pt?new Date(Date.UTC(dt[1],He,dt[3]||1,dt[4]||0,dt[5]||0,dt[6]||0,bt)):new Date(dt[1],He,dt[3]||1,dt[4]||0,dt[5]||0,dt[6]||0,bt)}}return new Date(we)}(ge),this.init()},De.init=function(){var ge=this.$d;this.$y=ge.getFullYear(),this.$M=ge.getMonth(),this.$D=ge.getDate(),this.$W=ge.getDay(),this.$H=ge.getHours(),this.$m=ge.getMinutes(),this.$s=ge.getSeconds(),this.$ms=ge.getMilliseconds()},De.$utils=function(){return me},De.isValid=function(){return this.$d.toString()!==P},De.isSame=function(ge,je){var we=be(ge);return this.startOf(je)<=we&&we<=this.endOf(je)},De.isAfter=function(ge,je){return be(ge)0&&typeof P[0]!="number")}function S(P,W,te){var q,ie;if(typeof P!=typeof W||C(P)||C(W)||P.prototype!==W.prototype||A(P)!==A(W))return!1;var he=z(P),de=z(W);if(he!==de)return!1;if(he||de)return P.source===W.source&&k(P)===k(W);if(N(P)&&N(W))return w.call(P)===w.call(W);var fe=f(P),ke=f(W);if(fe!==ke)return!1;if(fe||ke){if(P.length!==W.length)return!1;for(q=0;q=0;q--)if(Ie[q]!=Be[q])return!1;for(q=Ie.length-1;q>=0;q--)if(ie=Ie[q],!I(P[ie],W[ie],te))return!1;return!0}nt.exports=I},12296:function(nt,V,m){"use strict";var y=m(31044)(),A=m(40210),b=y&&A("%Object.defineProperty%",!0);if(b)try{b({},"a",{value:1})}catch(w){b=!1}var z=A("%SyntaxError%"),k=A("%TypeError%"),N=m(25275);nt.exports=function(I,C,f){if(!I||typeof I!="object"&&typeof I!="function")throw new k("`obj` must be an object or a function`");if(typeof C!="string"&&typeof C!="symbol")throw new k("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new k("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new k("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new k("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new k("`loose`, if provided, must be a boolean");var S=arguments.length>3?arguments[3]:null,P=arguments.length>4?arguments[4]:null,W=arguments.length>5?arguments[5]:null,te=arguments.length>6?arguments[6]:!1,q=!!N&&N(I,C);if(b)b(I,C,{configurable:W===null&&q?q.configurable:!W,enumerable:S===null&&q?q.enumerable:!S,value:f,writable:P===null&&q?q.writable:!P});else if(te||!S&&!P&&!W)I[C]=f;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4289:function(nt,V,m){"use strict";var y=m(82215),A=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b=Object.prototype.toString,z=Array.prototype.concat,k=m(12296),N=function(f){return typeof f=="function"&&b.call(f)==="[object Function]"},w=m(31044)(),I=function(f,S,P,W){if(S in f){if(W===!0){if(f[S]===P)return}else if(!N(W)||!W())return}w?k(f,S,P,!0):k(f,S,P)},C=function(f,S){var P=arguments.length>2?arguments[2]:{},W=y(S);A&&(W=z.call(W,Object.getOwnPropertySymbols(S)));for(var te=0;te=this.minPts&&(y=this._mergeArrays(y,z))}this._assigned[b]!==1&&this._addToCluster(b,m)}},V.prototype._addToCluster=function(m,y){this.clusters[y].push(m),this._assigned[m]=1},V.prototype._regionQuery=function(m){for(var y=[],A=0;A0){for(var I=0;I=0);return y},V.prototype.assign=function(){for(var m=!1,y=this.dataset.length,A,b=0;b=this.minPts)return k}},A.prototype._regionQuery=function(b,z){z=z||this.epsilon;for(var k=[],N=0,w=this.dataset.length;Nz&&(A=b):y80*dt){vt=Bn=we[0],yn=Lr=we[1];for(var To=dt;ToBn&&(Bn=ii),gi>Lr&&(Lr=gi);no=Math.max(Bn-vt,Lr-yn),no=no!==0?32767/no:0}return A(ft,$t,dt,vt,yn,no,0),$t}function m(we,Pt,dt,He,bt){var ft,$t;if(bt===je(we,Pt,dt,He)>0)for(ft=Pt;ft=Pt;ft-=He)$t=Ce(ft,we[ft],we[ft+1],$t);return $t&&fe($t,$t.next)&&(De($t),$t=$t.next),$t}function y(we,Pt){if(!we)return we;Pt||(Pt=we);var dt=we,He;do if(He=!1,!dt.steiner&&(fe(dt,dt.next)||de(dt.prev,dt,dt.next)===0)){if(De(dt),dt=Pt=dt.prev,dt===dt.next)break;He=!0}else dt=dt.next;while(He||dt!==Pt);return Pt}function A(we,Pt,dt,He,bt,ft,$t){if(we){!$t&&ft&&P(we,He,bt,ft);for(var vt=we,yn,Bn;we.prev!==we.next;){if(yn=we.prev,Bn=we.next,ft?z(we,He,bt,ft):b(we)){Pt.push(yn.i/dt|0),Pt.push(we.i/dt|0),Pt.push(Bn.i/dt|0),De(we),we=Bn.next,vt=Bn.next;continue}if(we=Bn,we===vt){$t?$t===1?(we=k(y(we),Pt,dt),A(we,Pt,dt,He,bt,ft,2)):$t===2&&N(we,Pt,dt,He,bt,ft):A(y(we),Pt,dt,He,bt,ft,1);break}}}}function b(we){var Pt=we.prev,dt=we,He=we.next;if(de(Pt,dt,He)>=0)return!1;for(var bt=Pt.x,ft=dt.x,$t=He.x,vt=Pt.y,yn=dt.y,Bn=He.y,Lr=btft?bt>$t?bt:$t:ft>$t?ft:$t,no=vt>yn?vt>Bn?vt:Bn:yn>Bn?yn:Bn,To=He.next;To!==Pt;){if(To.x>=Lr&&To.x<=gi&&To.y>=ii&&To.y<=no&&ie(bt,vt,ft,yn,$t,Bn,To.x,To.y)&&de(To.prev,To,To.next)>=0)return!1;To=To.next}return!0}function z(we,Pt,dt,He){var bt=we.prev,ft=we,$t=we.next;if(de(bt,ft,$t)>=0)return!1;for(var vt=bt.x,yn=ft.x,Bn=$t.x,Lr=bt.y,ii=ft.y,gi=$t.y,no=vtyn?vt>Bn?vt:Bn:yn>Bn?yn:Bn,Bo=Lr>ii?Lr>gi?Lr:gi:ii>gi?ii:gi,hs=te(no,To,Pt,dt,He),ve=te(_r,Bo,Pt,dt,He),So=we.prevZ,ho=we.nextZ;So&&So.z>=hs&&ho&&ho.z<=ve;){if(So.x>=no&&So.x<=_r&&So.y>=To&&So.y<=Bo&&So!==bt&&So!==$t&&ie(vt,Lr,yn,ii,Bn,gi,So.x,So.y)&&de(So.prev,So,So.next)>=0||(So=So.prevZ,ho.x>=no&&ho.x<=_r&&ho.y>=To&&ho.y<=Bo&&ho!==bt&&ho!==$t&&ie(vt,Lr,yn,ii,Bn,gi,ho.x,ho.y)&&de(ho.prev,ho,ho.next)>=0))return!1;ho=ho.nextZ}for(;So&&So.z>=hs;){if(So.x>=no&&So.x<=_r&&So.y>=To&&So.y<=Bo&&So!==bt&&So!==$t&&ie(vt,Lr,yn,ii,Bn,gi,So.x,So.y)&&de(So.prev,So,So.next)>=0)return!1;So=So.prevZ}for(;ho&&ho.z<=ve;){if(ho.x>=no&&ho.x<=_r&&ho.y>=To&&ho.y<=Bo&&ho!==bt&&ho!==$t&&ie(vt,Lr,yn,ii,Bn,gi,ho.x,ho.y)&&de(ho.prev,ho,ho.next)>=0)return!1;ho=ho.nextZ}return!0}function k(we,Pt,dt){var He=we;do{var bt=He.prev,ft=He.next.next;!fe(bt,ft)&&ke(bt,He,He.next,ft)&&me(bt,ft)&&me(ft,bt)&&(Pt.push(bt.i/dt|0),Pt.push(He.i/dt|0),Pt.push(ft.i/dt|0),De(He),De(He.next),He=we=ft),He=He.next}while(He!==we);return y(He)}function N(we,Pt,dt,He,bt,ft){var $t=we;do{for(var vt=$t.next.next;vt!==$t.prev;){if($t.i!==vt.i&&he($t,vt)){var yn=_e($t,vt);$t=y($t,$t.next),yn=y(yn,yn.next),A($t,Pt,dt,He,bt,ft,0),A(yn,Pt,dt,He,bt,ft,0);return}vt=vt.next}$t=$t.next}while($t!==we)}function w(we,Pt,dt,He){var bt=[],ft,$t,vt,yn,Bn;for(ft=0,$t=Pt.length;ft<$t;ft++)vt=Pt[ft]*He,yn=ft<$t-1?Pt[ft+1]*He:we.length,Bn=m(we,vt,yn,He,!1),Bn===Bn.next&&(Bn.steiner=!0),bt.push(q(Bn));for(bt.sort(I),ft=0;ft=dt.next.y&&dt.next.y!==dt.y){var vt=dt.x+(bt-dt.y)*(dt.next.x-dt.x)/(dt.next.y-dt.y);if(vt<=He&&vt>ft&&(ft=vt,$t=dt.x=dt.x&&dt.x>=Bn&&He!==dt.x&&ie(bt$t.x||dt.x===$t.x&&S($t,dt)))&&($t=dt,ii=gi)),dt=dt.next;while(dt!==yn);return $t}function S(we,Pt){return de(we.prev,we,Pt.prev)<0&&de(Pt.next,we,we.next)<0}function P(we,Pt,dt,He){var bt=we;do bt.z===0&&(bt.z=te(bt.x,bt.y,Pt,dt,He)),bt.prevZ=bt.prev,bt.nextZ=bt.next,bt=bt.next;while(bt!==we);bt.prevZ.nextZ=null,bt.prevZ=null,W(bt)}function W(we){var Pt,dt,He,bt,ft,$t,vt,yn,Bn=1;do{for(dt=we,we=null,ft=null,$t=0;dt;){for($t++,He=dt,vt=0,Pt=0;Pt0||yn>0&&He;)vt!==0&&(yn===0||!He||dt.z<=He.z)?(bt=dt,dt=dt.nextZ,vt--):(bt=He,He=He.nextZ,yn--),ft?ft.nextZ=bt:we=bt,bt.prevZ=ft,ft=bt;dt=He}ft.nextZ=null,Bn*=2}while($t>1);return we}function te(we,Pt,dt,He,bt){return we=(we-dt)*bt|0,Pt=(Pt-He)*bt|0,we=(we|we<<8)&16711935,we=(we|we<<4)&252645135,we=(we|we<<2)&858993459,we=(we|we<<1)&1431655765,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,we|Pt<<1}function q(we){var Pt=we,dt=we;do(Pt.x=(we-$t)*(ft-vt)&&(we-$t)*(He-vt)>=(dt-$t)*(Pt-vt)&&(dt-$t)*(ft-vt)>=(bt-$t)*(He-vt)}function he(we,Pt){return we.next.i!==Pt.i&&we.prev.i!==Pt.i&&!be(we,Pt)&&(me(we,Pt)&&me(Pt,we)&&ye(we,Pt)&&(de(we.prev,we,Pt.prev)||de(we,Pt.prev,Pt))||fe(we,Pt)&&de(we.prev,we,we.next)>0&&de(Pt.prev,Pt,Pt.next)>0)}function de(we,Pt,dt){return(Pt.y-we.y)*(dt.x-Pt.x)-(Pt.x-we.x)*(dt.y-Pt.y)}function fe(we,Pt){return we.x===Pt.x&&we.y===Pt.y}function ke(we,Pt,dt,He){var bt=Be(de(we,Pt,dt)),ft=Be(de(we,Pt,He)),$t=Be(de(dt,He,we)),vt=Be(de(dt,He,Pt));return!!(bt!==ft&&$t!==vt||bt===0&&Ie(we,dt,Pt)||ft===0&&Ie(we,He,Pt)||$t===0&&Ie(dt,we,He)||vt===0&&Ie(dt,Pt,He))}function Ie(we,Pt,dt){return Pt.x<=Math.max(we.x,dt.x)&&Pt.x>=Math.min(we.x,dt.x)&&Pt.y<=Math.max(we.y,dt.y)&&Pt.y>=Math.min(we.y,dt.y)}function Be(we){return we>0?1:we<0?-1:0}function be(we,Pt){var dt=we;do{if(dt.i!==we.i&&dt.next.i!==we.i&&dt.i!==Pt.i&&dt.next.i!==Pt.i&&ke(dt,dt.next,we,Pt))return!0;dt=dt.next}while(dt!==we);return!1}function me(we,Pt){return de(we.prev,we,we.next)<0?de(we,Pt,we.next)>=0&&de(we,we.prev,Pt)>=0:de(we,Pt,we.prev)<0||de(we,we.next,Pt)<0}function ye(we,Pt){var dt=we,He=!1,bt=(we.x+Pt.x)/2,ft=(we.y+Pt.y)/2;do dt.y>ft!=dt.next.y>ft&&dt.next.y!==dt.y&&bt<(dt.next.x-dt.x)*(ft-dt.y)/(dt.next.y-dt.y)+dt.x&&(He=!He),dt=dt.next;while(dt!==we);return He}function _e(we,Pt){var dt=new ge(we.i,we.x,we.y),He=new ge(Pt.i,Pt.x,Pt.y),bt=we.next,ft=Pt.prev;return we.next=Pt,Pt.prev=we,dt.next=bt,bt.prev=dt,He.next=dt,dt.prev=He,ft.next=He,He.prev=ft,He}function Ce(we,Pt,dt,He){var bt=new ge(we,Pt,dt);return He?(bt.next=He.next,bt.prev=He,He.next.prev=bt,He.next=bt):(bt.prev=bt,bt.next=bt),bt}function De(we){we.next.prev=we.prev,we.prev.next=we.next,we.prevZ&&(we.prevZ.nextZ=we.nextZ),we.nextZ&&(we.nextZ.prevZ=we.prevZ)}function ge(we,Pt,dt){this.i=we,this.x=Pt,this.y=dt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}V.deviation=function(we,Pt,dt,He){var bt=Pt&&Pt.length,ft=bt?Pt[0]*dt:we.length,$t=Math.abs(je(we,0,ft,dt));if(bt)for(var vt=0,yn=Pt.length;vt0&&(He+=we[bt-1].length,dt.holes.push(He))}return dt}},67709:function(nt){function V(y){var A=y.target||y.srcElement;A.__resizeRAF__&&cancelAnimationFrame(A.__resizeRAF__),A.__resizeRAF__=requestAnimationFrame(function(){var b=A.__resizeTrigger__,z=b&&b.__resizeListeners__;z&&z.forEach(function(k){k.call(b,y)})})}var m=function(A,b){var z=this,k=z.document,N,w=k.attachEvent;typeof navigator!="undefined"&&(N=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function I(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",V)}if(!A.__resizeListeners__)if(A.__resizeListeners__=[],w)A.__resizeTrigger__=A,A.attachEvent("onresize",V);else{getComputedStyle(A).position==="static"&&(A.style.position="relative");var C=A.__resizeTrigger__=k.createElement("object");C.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),C.setAttribute("class","resize-sensor"),C.setAttribute("tabindex","-1"),C.setAttribute("title",""),C.__resizeElement__=A,C.onload=I,C.type="text/html",N&&A.appendChild(C),C.data="about:blank",N||A.appendChild(C)}A.__resizeListeners__.push(b)};nt.exports=typeof window=="undefined"?m:m.bind(window),nt.exports.unbind=function(y,A){var b=document.attachEvent,z=y.__resizeListeners__||[];if(A){var k=z.indexOf(A);k!==-1&&z.splice(k,1)}else z=y.__resizeListeners__=[];if(!z.length){if(b)y.detachEvent("onresize",V);else if(y.__resizeTrigger__){var N=y.__resizeTrigger__.contentDocument,w=N&&N.defaultView;w&&(w.removeEventListener("resize",V),delete w.__resizeTrigger__),y.__resizeTrigger__=!y.removeChild(y.__resizeTrigger__)}delete y.__resizeListeners__}}},26729:function(nt){"use strict";var V=Object.prototype.hasOwnProperty,m="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(m=!1));function A(N,w,I){this.fn=N,this.context=w,this.once=I||!1}function b(N,w,I,C,f){if(typeof I!="function")throw new TypeError("The listener must be a function");var S=new A(I,C||N,f),P=m?m+w:w;return N._events[P]?N._events[P].fn?N._events[P]=[N._events[P],S]:N._events[P].push(S):(N._events[P]=S,N._eventsCount++),N}function z(N,w){--N._eventsCount===0?N._events=new y:delete N._events[w]}function k(){this._events=new y,this._eventsCount=0}k.prototype.eventNames=function(){var w=[],I,C;if(this._eventsCount===0)return w;for(C in I=this._events)V.call(I,C)&&w.push(m?C.slice(1):C);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(I)):w},k.prototype.listeners=function(w){var I=m?m+w:w,C=this._events[I];if(!C)return[];if(C.fn)return[C.fn];for(var f=0,S=C.length,P=new Array(S);f=72.004&&ho<=137.8347&&go>=.8293&&go<=55.8271}function C(ho,go){let ji=-100+2*ho+3*go+.2*go*go+.1*ho*go+.2*b(z(ho));return ji+=(20*y(6*ho*k)+20*y(2*ho*k))*2/3,ji+=(20*y(go*k)+40*y(go/3*k))*2/3,ji+=(160*y(go/12*k)+320*y(go*k/30))*2/3,ji}function f(ho,go){let ji=300+ho+2*go+.1*ho*ho+.1*ho*go+.1*b(z(ho));return ji+=(20*y(6*ho*k)+20*y(2*ho*k))*2/3,ji+=(20*y(ho*k)+40*y(ho/3*k))*2/3,ji+=(150*y(ho/12*k)+300*y(ho/30*k))*2/3,ji}function S(ho,go){let ji=f(ho-105,go-35),No=C(ho-105,go-35);const dn=go/180*k;let Ve=y(dn);Ve=1-w*Ve*Ve;const yt=b(Ve);return ji=ji*180/(N/yt*A(dn)*k),No=No*180/(N*(1-w)/(Ve*yt)*k),[ji,No]}function P(ho){const[go,ji]=ho;if(!I(go,ji))return[go,ji];const No=S(go,ji);return[go+No[0],ji+No[1]]}function W(ho){const[go,ji]=ho;if(!I(go,ji))return[go,ji];let[No,dn]=[go,ji],Ve=P([No,dn]),yt=Ve[0]-go,Ct=Ve[1]-ji;for(;z(yt)>1e-6||z(Ct)>1e-6;)No-=yt,dn-=Ct,Ve=P([No,dn]),yt=Ve[0]-go,Ct=Ve[1]-ji;return[No,dn]}const{sin:te,cos:q,atan2:ie,sqrt:he,PI:de}=Math,fe=de*3e3/180;function ke(ho){const[go,ji]=ho,No=go-.0065,dn=ji-.006,Ve=he(No*No+dn*dn)-2e-5*te(dn*fe),yt=ie(dn,No)-3e-6*q(No*fe),Ct=Ve*q(yt),Wt=Ve*te(yt);return[Ct,Wt]}function Ie(ho){const[go,ji]=ho,No=go,dn=ji,Ve=he(No*No+dn*dn)+2e-5*te(dn*fe),yt=ie(dn,No)+3e-6*q(No*fe),Ct=Ve*q(yt)+.0065,Wt=Ve*te(yt)+.006;return[Ct,Wt]}const Be=180/Math.PI,be=Math.PI/180,me=6378137,ye=20037508342789244e-9;function _e(ho){return[ho[0]*Be/me,(Math.PI*.5-2*Math.atan(Math.exp(-ho[1]/me)))*Be]}function Ce(ho){const go=Math.abs(ho[0])<=180?ho[0]:ho[0]-(ho[0]<0?-1:1)*360,ji=[me*go*be,me*Math.log(Math.tan(Math.PI*.25+.5*ho[1]*be))];return ji[0]>ye&&(ji[0]=ye),ji[0]<-ye&&(ji[0]=-ye),ji[1]>ye&&(ji[1]=ye),ji[1]<-ye&&(ji[1]=-ye),ji}const{abs:De}=Math,ge=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],je=[75,60,45,30,15,0],we=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Pt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function dt(ho,go,ji){const No=De(go)/ji[9];let dn=ji[0]+ji[1]*De(ho),Ve=ji[2]+ji[3]*No+ji[4]*Math.pow(No,2)+ji[5]*Math.pow(No,3)+ji[6]*Math.pow(No,4)+ji[7]*Math.pow(No,5)+ji[8]*Math.pow(No,6);return dn*=ho<0?-1:1,Ve*=go<0?-1:1,[dn,Ve]}function He(ho){const[go,ji]=ho;let No=[];for(let dn=0;dnje[dn]){No=Pt[dn];break}return dt(go,ji,No)}function bt(ho){const[go,ji]=ho;let No=[];for(let dn=0;dn=ge[dn]){No=we[dn];break}return dt(go,ji,No)}function ft(ho,go){if(!ho)throw new Error(go)}function $t(ho){return!!ho&&Object.prototype.toString.call(ho)==="[object Array]"}function vt(ho){return!isNaN(Number(ho))&&ho!==null&&!$t(ho)}function yn(...ho){const go=ho.length-1;return function(...ji){let No=go,dn=ho[go].apply(null,ji);for(;No--;)dn=ho[No].call(null,dn);return dn}}function Bn(ho,go,ji=!1){if(ho===null)return;let No,dn,Ve,yt,Ct,Wt,sn=0,Mt=0,Tt,xt;const{type:Ht}=ho,Vn=Ht==="FeatureCollection",en=Ht==="Feature",fr=Vn?ho.features.length:1;for(let Kr=0;Kr=2,`Invalid input coordinate: ${ho}`),ft(vt(ho[0])&&vt(ho[1]),`Invalid input coordinate: ${ho}`),ho=ho.map(Number),yt=!0);const Ct=dn;return yt?Ct(ho):(Bn(ho,Wt=>{[Wt[0],Wt[1]]=Ct(Wt)}),ho)}const So=Object.assign(Object.assign({},Lr),{CRSTypes:Lr,transform:ve})},29657:function(nt,V,m){var y=m(10251),A=function(N){this.precision=N&&N.precision?N.precision:17,this.direction=N&&N.direction?N.direction:!1,this.pseudoNode=N&&N.pseudoNode?N.pseudoNode:!1,this.objectComparator=N&&N.objectComparator?N.objectComparator:k};A.prototype.compare=function(N,w){if(N.type!==w.type||!z(N,w))return!1;switch(N.type){case"Point":return this.compareCoord(N.coordinates,w.coordinates);case"LineString":return this.compareLine(N.coordinates,w.coordinates,0,!1);case"Polygon":return this.comparePolygon(N,w);case"Feature":return this.compareFeature(N,w);default:if(N.type.indexOf("Multi")===0){var I=this,C=b(N),f=b(w);return C.every(function(S){return this.some(function(P){return I.compare(S,P)})},f)}}return!1};function b(N){return N.coordinates.map(function(w){return{type:N.type.replace("Multi",""),coordinates:w}})}function z(N,w){return N.hasOwnProperty("coordinates")?N.coordinates.length===w.coordinates.length:N.length===w.length}A.prototype.compareCoord=function(N,w){if(N.length!==w.length)return!1;for(var I=0;I=0&&(I=[].concat(N.slice(C,N.length),N.slice(1,C+1))),I},A.prototype.comparePath=function(N,w){var I=this;return N.every(function(C,f){return I.compareCoord(C,this[f])},w)},A.prototype.comparePolygon=function(N,w){if(this.compareLine(N.coordinates[0],w.coordinates[0],1,!0)){var I=N.coordinates.slice(1,N.coordinates.length),C=w.coordinates.slice(1,w.coordinates.length),f=this;return I.every(function(S){return this.some(function(P){return f.compareLine(S,P,1,!0)})},C)}else return!1},A.prototype.compareFeature=function(N,w){return N.id!==w.id||!this.objectComparator(N.properties,w.properties)||!this.compareBBox(N,w)?!1:this.compare(N.geometry,w.geometry)},A.prototype.compareBBox=function(N,w){return!!(!N.bbox&&!w.bbox||N.bbox&&w.bbox&&this.compareCoord(N.bbox,w.bbox))},A.prototype.removePseudo=function(N){return N};function k(N,w){return y(N,w,{strict:!0})}nt.exports=A},51787:function(nt,V,m){var y=m(24056),A=m(84102),b=m(31540),z=m(9705).Z,k=b.featureEach,N=b.coordEach,w=A.polygon,I=A.featureCollection;function C(f){var S=new y(f);return S.insert=function(P){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.insert.call(this,P)},S.load=function(P){var W=[];return Array.isArray(P)?P.forEach(function(te){if(te.type!=="Feature")throw new Error("invalid features");te.bbox=te.bbox?te.bbox:z(te),W.push(te)}):k(P,function(te){if(te.type!=="Feature")throw new Error("invalid features");te.bbox=te.bbox?te.bbox:z(te),W.push(te)}),y.prototype.load.call(this,W)},S.remove=function(P,W){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.remove.call(this,P,W)},S.clear=function(){return y.prototype.clear.call(this)},S.search=function(P){var W=y.prototype.search.call(this,this.toBBox(P));return I(W)},S.collides=function(P){return y.prototype.collides.call(this,this.toBBox(P))},S.all=function(){var P=y.prototype.all.call(this);return I(P)},S.toJSON=function(){return y.prototype.toJSON.call(this)},S.fromJSON=function(P){return y.prototype.fromJSON.call(this,P)},S.toBBox=function(P){var W;if(P.bbox)W=P.bbox;else if(Array.isArray(P)&&P.length===4)W=P;else if(Array.isArray(P)&&P.length===6)W=[P[0],P[1],P[3],P[4]];else if(P.type==="Feature")W=z(P);else if(P.type==="FeatureCollection")W=z(P);else throw new Error("invalid geojson");return{minX:W[0],minY:W[1],maxX:W[2],maxY:W[3]}},S}nt.exports=C,nt.exports.default=C},24056:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";function V(q,ie,he,de,fe){(function ke(Ie,Be,be,me,ye){for(;me>be;){if(me-be>600){var _e=me-be+1,Ce=Be-be+1,De=Math.log(_e),ge=.5*Math.exp(2*De/3),je=.5*Math.sqrt(De*ge*(_e-ge)/_e)*(Ce-_e/2<0?-1:1),we=Math.max(be,Math.floor(Be-Ce*ge/_e+je)),Pt=Math.min(me,Math.floor(Be+(_e-Ce)*ge/_e+je));ke(Ie,Be,we,Pt,ye)}var dt=Ie[Be],He=be,bt=me;for(m(Ie,be,Be),ye(Ie[me],dt)>0&&m(Ie,be,me);He0;)bt--}ye(Ie[be],dt)===0?m(Ie,be,bt):m(Ie,++bt,me),bt<=Be&&(be=bt+1),Be<=bt&&(me=bt-1)}})(q,ie,he||0,de||q.length-1,fe||y)}function m(q,ie,he){var de=q[ie];q[ie]=q[he],q[he]=de}function y(q,ie){return qie?1:0}var A=function(q){q===void 0&&(q=9),this._maxEntries=Math.max(4,q),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(q,ie,he){if(!he)return ie.indexOf(q);for(var de=0;de=q.minX&&ie.maxY>=q.minY}function W(q){return{children:q,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function te(q,ie,he,de,fe){for(var ke=[ie,he];ke.length;)if(!((he=ke.pop())-(ie=ke.pop())<=de)){var Ie=ie+Math.ceil((he-ie)/de/2)*de;V(q,Ie,ie,he,fe),ke.push(ie,Ie,Ie,he)}}return A.prototype.all=function(){return this._all(this.data,[])},A.prototype.search=function(q){var ie=this.data,he=[];if(!P(q,ie))return he;for(var de=this.toBBox,fe=[];ie;){for(var ke=0;ke=0&&fe[ie].children.length>this._maxEntries;)this._split(fe,ie),ie--;this._adjustParentBBoxes(de,fe,ie)},A.prototype._split=function(q,ie){var he=q[ie],de=he.children.length,fe=this._minEntries;this._chooseSplitAxis(he,fe,de);var ke=this._chooseSplitIndex(he,fe,de),Ie=W(he.children.splice(ke,he.children.length-ke));Ie.height=he.height,Ie.leaf=he.leaf,z(he,this.toBBox),z(Ie,this.toBBox),ie?q[ie-1].children.push(Ie):this._splitRoot(he,Ie)},A.prototype._splitRoot=function(q,ie){this.data=W([q,ie]),this.data.height=q.height+1,this.data.leaf=!1,z(this.data,this.toBBox)},A.prototype._chooseSplitIndex=function(q,ie,he){for(var de,fe,ke,Ie,Be,be,me,ye=1/0,_e=1/0,Ce=ie;Ce<=he-ie;Ce++){var De=k(q,0,Ce,this.toBBox),ge=k(q,Ce,he,this.toBBox),je=(fe=De,ke=ge,Ie=void 0,Be=void 0,be=void 0,me=void 0,Ie=Math.max(fe.minX,ke.minX),Be=Math.max(fe.minY,ke.minY),be=Math.min(fe.maxX,ke.maxX),me=Math.min(fe.maxY,ke.maxY),Math.max(0,be-Ie)*Math.max(0,me-Be)),we=C(De)+C(ge);je=ie;ye--){var _e=q.children[ye];N(Ie,q.leaf?fe(_e):_e),Be+=f(Ie)}return Be},A.prototype._adjustParentBBoxes=function(q,ie,he){for(var de=he;de>=0;de--)N(ie[de],q)},A.prototype._condense=function(q){for(var ie=q.length-1,he=void 0;ie>=0;ie--)q[ie].children.length===0?ie>0?(he=q[ie-1].children).splice(he.indexOf(q[ie]),1):this.clear():z(q[ie],this.toBBox)},A})},40210:function(nt,V,m){"use strict";var y,A=SyntaxError,b=Function,z=TypeError,k=function(ge){try{return b('"use strict"; return ('+ge+").constructor;")()}catch(je){}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch(ge){N=null}var w=function(){throw new z},I=N?function(){try{return arguments.callee,w}catch(ge){try{return N(arguments,"callee").get}catch(je){return w}}}():w,C=m(41405)(),f=m(28185)(),S=Object.getPrototypeOf||(f?function(ge){return ge.__proto__}:null),P={},W=typeof Uint8Array=="undefined"||!S?y:S(Uint8Array),te={"%AggregateError%":typeof AggregateError=="undefined"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C&&S?S([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics=="undefined"?y:Atomics,"%BigInt%":typeof BigInt=="undefined"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?y:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?y:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array=="undefined"?y:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?y:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&S?S(S([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map=="undefined"?y:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!C||!S?y:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?y:Promise,"%Proxy%":typeof Proxy=="undefined"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?y:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!C||!S?y:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&S?S(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":A,"%ThrowTypeError%":I,"%TypedArray%":W,"%TypeError%":z,"%Uint8Array%":typeof Uint8Array=="undefined"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?y:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?y:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?y:WeakSet};if(S)try{null.error}catch(ge){var q=S(S(ge));te["%Error.prototype%"]=q}var ie=function ge(je){var we;if(je==="%AsyncFunction%")we=k("async function () {}");else if(je==="%GeneratorFunction%")we=k("function* () {}");else if(je==="%AsyncGeneratorFunction%")we=k("async function* () {}");else if(je==="%AsyncGenerator%"){var Pt=ge("%AsyncGeneratorFunction%");Pt&&(we=Pt.prototype)}else if(je==="%AsyncIteratorPrototype%"){var dt=ge("%AsyncGenerator%");dt&&S&&(we=S(dt.prototype))}return te[je]=we,we},he={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=m(58612),fe=m(17642),ke=de.call(Function.call,Array.prototype.concat),Ie=de.call(Function.apply,Array.prototype.splice),Be=de.call(Function.call,String.prototype.replace),be=de.call(Function.call,String.prototype.slice),me=de.call(Function.call,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,Ce=function(je){var we=be(je,0,1),Pt=be(je,-1);if(we==="%"&&Pt!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(Pt==="%"&&we!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var dt=[];return Be(je,ye,function(He,bt,ft,$t){dt[dt.length]=ft?Be($t,_e,"$1"):bt||He}),dt},De=function(je,we){var Pt=je,dt;if(fe(he,Pt)&&(dt=he[Pt],Pt="%"+dt[0]+"%"),fe(te,Pt)){var He=te[Pt];if(He===P&&(He=ie(Pt)),typeof He=="undefined"&&!we)throw new z("intrinsic "+je+" exists, but is not available. Please file an issue!");return{alias:dt,name:Pt,value:He}}throw new A("intrinsic "+je+" does not exist!")};nt.exports=function(je,we){if(typeof je!="string"||je.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof we!="boolean")throw new z('"allowMissing" argument must be a boolean');if(me(/^%?[^%]*%?$/,je)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Pt=Ce(je),dt=Pt.length>0?Pt[0]:"",He=De("%"+dt+"%",we),bt=He.name,ft=He.value,$t=!1,vt=He.alias;vt&&(dt=vt[0],Ie(Pt,ke([0,1],vt)));for(var yn=1,Bn=!0;yn=Pt.length){var no=N(ft,Lr);Bn=!!no,Bn&&"get"in no&&!("originalValue"in no.get)?ft=no.get:ft=ft[Lr]}else Bn=fe(ft,Lr),ft=ft[Lr];Bn&&!$t&&(te[bt]=ft)}}return ft}},25275:function(nt,V,m){"use strict";var y=m(40210),A=y("%Object.getOwnPropertyDescriptor%",!0);if(A)try{A([],"length")}catch(b){A=null}nt.exports=A},50840:function(nt,V,m){var y;(function(A,b,z,k){"use strict";var N=["","webkit","Moz","MS","ms","o"],w=b.createElement("div"),I="function",C=Math.round,f=Math.abs,S=Date.now;function P(tt,at,gt){return setTimeout(ke(tt,gt),at)}function W(tt,at,gt){return Array.isArray(tt)?(te(tt,gt[at],gt),!0):!1}function te(tt,at,gt){var Ne;if(tt)if(tt.forEach)tt.forEach(at,gt);else if(tt.length!==k)for(Ne=0;Ne\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ln=A.console&&(A.console.warn||A.console.log);return ln&&ln.call(A.console,Ne,St),tt.apply(this,arguments)}}var ie;typeof Object.assign!="function"?ie=function(at){if(at===k||at===null)throw new TypeError("Cannot convert undefined or null to object");for(var gt=Object(at),Ne=1;Ne-1}function Ce(tt){return tt.trim().split(/\s+/g)}function De(tt,at,gt){if(tt.indexOf&&!gt)return tt.indexOf(at);for(var Ne=0;Neki[at]}):Ne=Ne.sort()),Ne}function we(tt,at){for(var gt,Ne,lt=at[0].toUpperCase()+at.slice(1),St=0;St1&&!gt.firstMultiple?gt.firstMultiple=Ht(at):lt===1&&(gt.firstMultiple=!1);var St=gt.firstInput,ln=gt.firstMultiple,jn=ln?ln.center:St.center,Cr=at.center=Vn(Ne);at.timeStamp=S(),at.deltaTime=at.timeStamp-St.timeStamp,at.angle=ri(jn,Cr),at.distance=Kr(jn,Cr),Tt(gt,at),at.offsetDirection=fr(at.deltaX,at.deltaY);var ki=en(at.deltaTime,at.deltaX,at.deltaY);at.overallVelocityX=ki.x,at.overallVelocityY=ki.y,at.overallVelocity=f(ki.x)>f(ki.y)?ki.x:ki.y,at.scale=ln?uo(ln.pointers,Ne):1,at.rotation=ln?si(ln.pointers,Ne):0,at.maxPointers=gt.prevInput?at.pointers.length>gt.prevInput.maxPointers?at.pointers.length:gt.prevInput.maxPointers:at.pointers.length,xt(gt,at);var Vi=tt.element;ye(at.srcEvent.target,Vi)&&(Vi=at.srcEvent.target),at.target=Vi}function Tt(tt,at){var gt=at.center,Ne=tt.offsetDelta||{},lt=tt.prevDelta||{},St=tt.prevInput||{};(at.eventType===no||St.eventType===_r)&&(lt=tt.prevDelta={x:St.deltaX||0,y:St.deltaY||0},Ne=tt.offsetDelta={x:gt.x,y:gt.y}),at.deltaX=lt.x+(gt.x-Ne.x),at.deltaY=lt.y+(gt.y-Ne.y)}function xt(tt,at){var gt=tt.lastInterval||at,Ne=at.timeStamp-gt.timeStamp,lt,St,ln,jn;if(at.eventType!=Bo&&(Ne>gi||gt.velocity===k)){var Cr=at.deltaX-gt.deltaX,ki=at.deltaY-gt.deltaY,Vi=en(Ne,Cr,ki);St=Vi.x,ln=Vi.y,lt=f(Vi.x)>f(Vi.y)?Vi.x:Vi.y,jn=fr(Cr,ki),tt.lastInterval=at}else lt=gt.velocity,St=gt.velocityX,ln=gt.velocityY,jn=gt.direction;at.velocity=lt,at.velocityX=St,at.velocityY=ln,at.direction=jn}function Ht(tt){for(var at=[],gt=0;gt=f(at)?tt<0?ve:So:at<0?ho:go}function Kr(tt,at,gt){gt||(gt=Ve);var Ne=at[gt[0]]-tt[gt[0]],lt=at[gt[1]]-tt[gt[1]];return Math.sqrt(Ne*Ne+lt*lt)}function ri(tt,at,gt){gt||(gt=Ve);var Ne=at[gt[0]]-tt[gt[0]],lt=at[gt[1]]-tt[gt[1]];return Math.atan2(lt,Ne)*180/Math.PI}function si(tt,at){return ri(at[1],at[0],yt)+ri(tt[1],tt[0],yt)}function uo(tt,at){return Kr(at[0],at[1],yt)/Kr(tt[0],tt[1],yt)}var Qo={mousedown:no,mousemove:To,mouseup:_r},_n="mousedown",Vr="mousemove mouseup";function qr(){this.evEl=_n,this.evWin=Vr,this.pressed=!1,Ct.apply(this,arguments)}fe(qr,Ct,{handler:function(at){var gt=Qo[at.type];gt&no&&at.button===0&&(this.pressed=!0),gt&To&&at.which!==1&&(gt=_r),this.pressed&&(gt&_r&&(this.pressed=!1),this.callback(this.manager,gt,{pointers:[at],changedPointers:[at],pointerType:Lr,srcEvent:at}))}});var Ui={pointerdown:no,pointermove:To,pointerup:_r,pointercancel:Bo,pointerout:Bo},xo={2:yn,3:Bn,4:Lr,5:ii},Us="pointerdown",zn="pointermove pointerup pointercancel";A.MSPointerEvent&&!A.PointerEvent&&(Us="MSPointerDown",zn="MSPointerMove MSPointerUp MSPointerCancel");function Kn(){this.evEl=Us,this.evWin=zn,Ct.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}fe(Kn,Ct,{handler:function(at){var gt=this.store,Ne=!1,lt=at.type.toLowerCase().replace("ms",""),St=Ui[lt],ln=xo[at.pointerType]||at.pointerType,jn=ln==yn,Cr=De(gt,at.pointerId,"pointerId");St&no&&(at.button===0||jn)?Cr<0&&(gt.push(at),Cr=gt.length-1):St&(_r|Bo)&&(Ne=!0),!(Cr<0)&&(gt[Cr]=at,this.callback(this.manager,St,{pointers:gt,changedPointers:[at],pointerType:ln,srcEvent:at}),Ne&>.splice(Cr,1))}});var Or={touchstart:no,touchmove:To,touchend:_r,touchcancel:Bo},mi="touchstart",Er="touchstart touchmove touchend touchcancel";function ti(){this.evTarget=mi,this.evWin=Er,this.started=!1,Ct.apply(this,arguments)}fe(ti,Ct,{handler:function(at){var gt=Or[at.type];if(gt===no&&(this.started=!0),!!this.started){var Ne=di.call(this,at,gt);gt&(_r|Bo)&&Ne[0].length-Ne[1].length===0&&(this.started=!1),this.callback(this.manager,gt,{pointers:Ne[0],changedPointers:Ne[1],pointerType:yn,srcEvent:at})}}});function di(tt,at){var gt=ge(tt.touches),Ne=ge(tt.changedTouches);return at&(_r|Bo)&&(gt=je(gt.concat(Ne),"identifier",!0)),[gt,Ne]}var rn={touchstart:no,touchmove:To,touchend:_r,touchcancel:Bo},Qn="touchstart touchmove touchend touchcancel";function Xr(){this.evTarget=Qn,this.targetIds={},Ct.apply(this,arguments)}fe(Xr,Ct,{handler:function(at){var gt=rn[at.type],Ne=ao.call(this,at,gt);Ne&&this.callback(this.manager,gt,{pointers:Ne[0],changedPointers:Ne[1],pointerType:yn,srcEvent:at})}});function ao(tt,at){var gt=ge(tt.touches),Ne=this.targetIds;if(at&(no|To)&>.length===1)return Ne[gt[0].identifier]=!0,[gt,gt];var lt,St,ln=ge(tt.changedTouches),jn=[],Cr=this.target;if(St=gt.filter(function(ki){return ye(ki.target,Cr)}),at===no)for(lt=0;lt-1&&Ne.splice(St,1)};setTimeout(lt,as)}}function vi(tt){for(var at=tt.srcEvent.clientX,gt=tt.srcEvent.clientY,Ne=0;Ne-1&&this.requireFail.splice(at,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(tt){return!!this.simultaneous[tt.id]},emit:function(tt){var at=this,gt=this.state;function Ne(lt){at.manager.emit(lt,tt)}gt=qn&&Ne(at.options.event+Ua(gt))},tryEmit:function(tt){if(this.canEmit())return this.emit(tt);this.state=ha},canEmit:function(){for(var tt=0;ttat.threshold&<&at.direction},attrTest:function(tt){return $r.prototype.attrTest.call(this,tt)&&(this.state&Mi||!(this.state&Mi)&&this.directionTest(tt))},emit:function(tt){this.pX=tt.deltaX,this.pY=tt.deltaY;var at=Ao(tt.direction);at&&(tt.additionalEvent=this.options.event+at),this._super.emit.call(this,tt)}});function Tr(){$r.apply(this,arguments)}fe(Tr,$r,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ar]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.scale-1)>this.options.threshold||this.state&Mi)},emit:function(tt){if(tt.scale!==1){var at=tt.scale<1?"in":"out";tt.additionalEvent=this.options.event+at}this._super.emit.call(this,tt)}});function pr(){Ws.apply(this,arguments),this._timer=null,this._input=null}fe(pr,Ws,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oi]},process:function(tt){var at=this.options,gt=tt.pointers.length===at.pointers,Ne=tt.distanceat.time;if(this._input=tt,!Ne||!gt||tt.eventType&(_r|Bo)&&!lt)this.reset();else if(tt.eventType&no)this.reset(),this._timer=P(function(){this.state=ms,this.tryEmit()},at.time,this);else if(tt.eventType&_r)return ms;return ha},reset:function(){clearTimeout(this._timer)},emit:function(tt){this.state===ms&&(tt&&tt.eventType&_r?this.manager.emit(this.options.event+"up",tt):(this._input.timeStamp=S(),this.manager.emit(this.options.event,this._input)))}});function ci(){$r.apply(this,arguments)}fe(ci,$r,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ar]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.rotation)>this.options.threshold||this.state&Mi)}});function Eo(){$r.apply(this,arguments)}fe(Eo,$r,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ji|No,pointers:1},getTouchAction:function(){return er.prototype.getTouchAction.call(this)},attrTest:function(tt){var at=this.options.direction,gt;return at&(ji|No)?gt=tt.overallVelocity:at&ji?gt=tt.overallVelocityX:at&No&&(gt=tt.overallVelocityY),this._super.attrTest.call(this,tt)&&at&tt.offsetDirection&&tt.distance>this.options.threshold&&tt.maxPointers==this.options.pointers&&f(gt)>this.options.velocity&&tt.eventType&_r},emit:function(tt){var at=Ao(tt.offsetDirection);at&&this.manager.emit(this.options.event+at,tt),this.manager.emit(this.options.event,tt)}});function mo(){Ws.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}fe(mo,Ws,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Zi]},process:function(tt){var at=this.options,gt=tt.pointers.length===at.pointers,Ne=tt.distance>1,f=-7,S=A?z-1:0,P=A?-1:1,W=m[y+S];for(S+=P,k=W&(1<<-f)-1,W>>=-f,f+=w;f>0;k=k*256+m[y+S],S+=P,f-=8);for(N=k&(1<<-f)-1,k>>=-f,f+=b;f>0;N=N*256+m[y+S],S+=P,f-=8);if(k===0)k=1-C;else{if(k===I)return N?NaN:(W?-1:1)*(1/0);N=N+Math.pow(2,b),k=k-C}return(W?-1:1)*N*Math.pow(2,k-b)},V.write=function(m,y,A,b,z,k){var N,w,I,C=k*8-z-1,f=(1<>1,P=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=b?0:k-1,te=b?1:-1,q=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(w=isNaN(y)?1:0,N=f):(N=Math.floor(Math.log(y)/Math.LN2),y*(I=Math.pow(2,-N))<1&&(N--,I*=2),N+S>=1?y+=P/I:y+=P*Math.pow(2,1-S),y*I>=2&&(N++,I/=2),N+S>=f?(w=0,N=f):N+S>=1?(w=(y*I-1)*Math.pow(2,z),N=N+S):(w=y*Math.pow(2,S-1)*Math.pow(2,z),N=0));z>=8;m[A+W]=w&255,W+=te,w/=256,z-=8);for(N=N<0;m[A+W]=N&255,W+=te,N/=256,C-=8);m[A+W-te]|=q*128}},7375:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var m=Symbol.for("INJECTION");function y(N,w,I,C){function f(){return C&&!Reflect.hasMetadata(m,this,w)&&Reflect.defineMetadata(m,I(),this,w),Reflect.hasMetadata(m,this,w)?Reflect.getMetadata(m,this,w):I()}function S(P){Reflect.defineMetadata(m,P,this,w)}Object.defineProperty(N,w,{configurable:!0,enumerable:!0,get:f,set:S})}function A(N,w){return function(I){return function(C,f){var S=function(){return N.get(I)};y(C,f,S,w)}}}V.makePropertyInjectDecorator=A;function b(N,w){return function(I,C){return function(f,S){var P=function(){return N.getNamed(I,C)};y(f,S,P,w)}}}V.makePropertyInjectNamedDecorator=b;function z(N,w){return function(I,C,f){return function(S,P){var W=function(){return N.getTagged(I,C,f)};y(S,P,W,w)}}}V.makePropertyInjectTaggedDecorator=z;function k(N,w){return function(I){return function(C,f){var S=function(){return N.getAll(I)};y(C,f,S,w)}}}V.makePropertyMultiInjectDecorator=k},84879:function(nt,V,m){"use strict";var y;y={value:!0};var A=m(7375);function b(z,k){k===void 0&&(k=!0);var N=A.makePropertyInjectDecorator(z,k),w=A.makePropertyInjectNamedDecorator(z,k),I=A.makePropertyInjectTaggedDecorator(z,k),C=A.makePropertyMultiInjectDecorator(z,k);return{lazyInject:N,lazyInjectNamed:w,lazyInjectTagged:I,lazyMultiInject:C}}V.Z=b},99934:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.tagProperty=V.tagParameter=V.decorate=void 0;var y=m(16674),A=m(6867);function b(C,f,S,P){var W=A.TAGGED;k(W,C,f,P,S)}V.tagParameter=b;function z(C,f,S){var P=A.TAGGED_PROP;k(P,C.constructor,f,S)}V.tagProperty=z;function k(C,f,S,P,W){var te={},q=typeof W=="number",ie=W!==void 0&&q?W.toString():S;if(q&&S!==void 0)throw new Error(y.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(C,f)&&(te=Reflect.getMetadata(C,f));var he=te[ie];if(!Array.isArray(he))he=[];else for(var de=0,fe=he;de= than the number of constructor arguments of its base class.")};V.ARGUMENTS_LENGTH_MISMATCH=y,V.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",V.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",V.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",V.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",V.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var A=function(){for(var z=[],k=0;k0&&Be[Be.length-1])&&(_e[0]===6||_e[0]===2)){fe=0;continue}if(_e[0]===3&&(!Be||_e[1]>Be[0]&&_e[1]0?k._map.set(w,I):k._map.delete(w)})},b.prototype.hasKey=function(z){if(z==null)throw new Error(y.NULL_ARGUMENT);return this._map.has(z)},b.prototype.clone=function(){var z=new b;return this._map.forEach(function(k,N){k.forEach(function(w){return z.add(N,w.clone())})}),z},b.prototype.traverse=function(z){this._map.forEach(function(k,N){z(N,k)})},b}();V.Lookup=A},86700:function(nt,V,m){"use strict";var y;y={value:!0},y=y=y=y=y=y=V.GW=y=y=V.zY=y=y=y=y=y=V.f3=y=y=V.b2=y=y=y=y=y=V.W2=y=void 0;var A=m(6867);y=A;var b=m(51389);Object.defineProperty(V,"W2",{enumerable:!0,get:function(){return b.Container}});var z=m(28421);y={enumerable:!0,get:function(){return z.BindingScopeEnum}},y={enumerable:!0,get:function(){return z.BindingTypeEnum}},y={enumerable:!0,get:function(){return z.TargetTypeEnum}};var k=m(33244);y={enumerable:!0,get:function(){return k.AsyncContainerModule}},y={enumerable:!0,get:function(){return k.ContainerModule}};var N=m(64315);Object.defineProperty(V,"b2",{enumerable:!0,get:function(){return N.injectable}});var w=m(32052);y={enumerable:!0,get:function(){return w.tagged}};var I=m(38085);y={enumerable:!0,get:function(){return I.named}};var C=m(5744);Object.defineProperty(V,"f3",{enumerable:!0,get:function(){return C.inject}}),y={enumerable:!0,get:function(){return C.LazyServiceIdentifer}};var f=m(6515);y={enumerable:!0,get:function(){return f.optional}};var S=m(86757);y={enumerable:!0,get:function(){return S.unmanaged}};var P=m(71693);y={enumerable:!0,get:function(){return P.multiInject}};var W=m(55638);y={enumerable:!0,get:function(){return W.targetName}};var te=m(7014);Object.defineProperty(V,"zY",{enumerable:!0,get:function(){return te.postConstruct}});var q=m(51377);y={enumerable:!0,get:function(){return q.MetadataReader}};var ie=m(37791);y={enumerable:!0,get:function(){return ie.id}};var he=m(99934);Object.defineProperty(V,"GW",{enumerable:!0,get:function(){return he.decorate}});var de=m(80758);y={enumerable:!0,get:function(){return de.traverseAncerstors}},y={enumerable:!0,get:function(){return de.taggedConstraint}},y={enumerable:!0,get:function(){return de.namedConstraint}},y={enumerable:!0,get:function(){return de.typeConstraint}};var fe=m(55800);y={enumerable:!0,get:function(){return fe.getServiceIdentifierAsString}};var ke=m(70600);y={enumerable:!0,get:function(){return ke.multiBindToService}}},95228:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Context=void 0;var y=m(37791),A=function(){function b(z){this.id=y.id(),this.container=z}return b.prototype.addPlan=function(z){this.plan=z},b.prototype.setCurrentRequest=function(z){this.currentRequest=z},b}();V.Context=A},47738:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Metadata=void 0;var y=m(6867),A=function(){function b(z,k){this.key=z,this.value=k}return b.prototype.toString=function(){return this.key===y.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},b}();V.Metadata=A},51377:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.MetadataReader=void 0;var y=m(6867),A=function(){function b(){}return b.prototype.getConstructorMetadata=function(z){var k=Reflect.getMetadata(y.PARAM_TYPES,z),N=Reflect.getMetadata(y.TAGGED,z);return{compilerGeneratedMetadata:k,userGeneratedMetadata:N||{}}},b.prototype.getPropertiesMetadata=function(z){var k=Reflect.getMetadata(y.TAGGED_PROP,z)||[];return k},b}();V.MetadataReader=A},55314:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Plan=void 0;var m=function(){function y(A,b){this.parentContext=A,this.rootRequest=b}return y}();V.Plan=m},86311:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.getBindingDictionary=V.createMockRequest=V.plan=void 0;var y=m(23184),A=m(16674),b=m(28421),z=m(6867),k=m(85265),N=m(55800),w=m(95228),I=m(47738),C=m(55314),f=m(6e3),S=m(6748),P=m(18924);function W(Ie){return Ie._bindingDictionary}V.getBindingDictionary=W;function te(Ie,Be,be,me,ye,_e){var Ce=Ie?z.MULTI_INJECT_TAG:z.INJECT_TAG,De=new I.Metadata(Ce,be),ge=new P.Target(Be,me,be,De);if(ye!==void 0){var je=new I.Metadata(ye,_e);ge.metadata.push(je)}return ge}function q(Ie,Be,be,me,ye){var _e=de(be.container,ye.serviceIdentifier),Ce=[];return _e.length===y.BindingCount.NoBindingsAvailable&&be.container.options.autoBindInjectable&&typeof ye.serviceIdentifier=="function"&&Ie.getConstructorMetadata(ye.serviceIdentifier).compilerGeneratedMetadata&&(be.container.bind(ye.serviceIdentifier).toSelf(),_e=de(be.container,ye.serviceIdentifier)),Be?Ce=_e:Ce=_e.filter(function(De){var ge=new S.Request(De.serviceIdentifier,be,me,De,ye);return De.constraint(ge)}),ie(ye.serviceIdentifier,Ce,ye,be.container),Ce}function ie(Ie,Be,be,me){switch(Be.length){case y.BindingCount.NoBindingsAvailable:if(be.isOptional())return Be;var ye=N.getServiceIdentifierAsString(Ie),_e=A.NOT_REGISTERED;throw _e+=N.listMetadataForTarget(ye,be),_e+=N.listRegisteredBindingsForServiceIdentifier(me,ye,de),new Error(_e);case y.BindingCount.OnlyOneBindingAvailable:if(!be.isArray())return Be;case y.BindingCount.MultipleBindingsAvailable:default:if(be.isArray())return Be;var ye=N.getServiceIdentifierAsString(Ie),_e=A.AMBIGUOUS_MATCH+" "+ye;throw _e+=N.listRegisteredBindingsForServiceIdentifier(me,ye,de),new Error(_e)}}function he(Ie,Be,be,me,ye,_e){var Ce,De;if(ye===null){Ce=q(Ie,Be,me,null,_e),De=new S.Request(be,me,null,Ce,_e);var ge=new C.Plan(me,De);me.addPlan(ge)}else Ce=q(Ie,Be,me,ye,_e),De=ye.addChildRequest(_e.serviceIdentifier,Ce,_e);Ce.forEach(function(je){var we=null;if(_e.isArray())we=De.addChildRequest(je.serviceIdentifier,je,_e);else{if(je.cache)return;we=De}if(je.type===b.BindingTypeEnum.Instance&&je.implementationType!==null){var Pt=f.getDependencies(Ie,je.implementationType);if(!me.container.options.skipBaseClassChecks){var dt=f.getBaseClassDependencyCount(Ie,je.implementationType);if(Pt.length0,ye=be.length>he.length,_e=me||ye?be.length:he.length,Ce=S(de,ie,ke,Be,_e),De=P(q,he),ge=y(y([],Ce),De);return ge}function f(q,ie,he,de,fe){var ke=fe[q.toString()]||[],Ie=te(ke),Be=Ie.unmanaged!==!0,be=de[q],me=Ie.inject||Ie.multiInject;if(be=me||be,be instanceof A.LazyServiceIdentifer&&(be=be.unwrap()),Be){var ye=be===Object,_e=be===Function,Ce=be===void 0,De=ye||_e||Ce;if(!ie&&De){var ge=b.MISSING_INJECT_ANNOTATION+" argument "+q+" in class "+he+".";throw new Error(ge)}var je=new w.Target(z.TargetTypeEnum.ConstructorArgument,Ie.targetName,be);return je.metadata=ke,je}return null}function S(q,ie,he,de,fe){for(var ke=[],Ie=0;Ie0?Be:W(q,he)}else return 0}V.getBaseClassDependencyCount=W;function te(q){var ie={};return q.forEach(function(he){ie[he.key.toString()]=he.value}),{inject:ie[k.INJECT_TAG],multiInject:ie[k.MULTI_INJECT_TAG],targetName:ie[k.NAME_TAG],unmanaged:ie[k.UNMANAGED_TAG]}}},6748:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Request=void 0;var y=m(37791),A=function(){function b(z,k,N,w,I){this.id=y.id(),this.serviceIdentifier=z,this.parentContext=k,this.parentRequest=N,this.target=I,this.childRequests=[],this.bindings=Array.isArray(w)?w:[w],this.requestScope=N===null?new Map:null}return b.prototype.addChildRequest=function(z,k,N){var w=new b(z,this.parentContext,this,k,N);return this.childRequests.push(w),w},b}();V.Request=A},18924:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Target=void 0;var y=m(6867),A=m(37791),b=m(47738),z=m(88460),k=function(){function N(w,I,C,f){this.id=A.id(),this.type=w,this.serviceIdentifier=C,this.name=new z.QueryableString(I||""),this.metadata=new Array;var S=null;typeof f=="string"?S=new b.Metadata(y.NAMED_TAG,f):f instanceof b.Metadata&&(S=f),S!==null&&this.metadata.push(S)}return N.prototype.hasTag=function(w){for(var I=0,C=this.metadata;I0){var W=f.filter(function(q){return q.target!==null&&q.target.type===b.TargetTypeEnum.ConstructorArgument}),te=W.map(S);P=N(C,te),P=k(P,f,S)}else P=new C;return w(C,P),P}V.resolveInstance=I},31927:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.resolve=void 0;var y=m(16674),A=m(28421),b=m(85265),z=m(55800),k=m(52279),N=function(C,f,S){try{return S()}catch(P){throw b.isStackOverflowExeption(P)?new Error(y.CIRCULAR_DEPENDENCY_IN_FACTORY(C,f.toString())):P}},w=function(C){return function(f){f.parentContext.setCurrentRequest(f);var S=f.bindings,P=f.childRequests,W=f.target&&f.target.isArray(),te=!f.parentRequest||!f.parentRequest.target||!f.target||!f.parentRequest.target.matchesArray(f.target.serviceIdentifier);if(W&&te)return P.map(function(ke){var Ie=w(C);return Ie(ke)});var q=null;if(f.target.isOptional()&&S.length===0)return;var ie=S[0],he=ie.scope===A.BindingScopeEnum.Singleton,de=ie.scope===A.BindingScopeEnum.Request;if(he&&ie.activated)return ie.cache;if(de&&C!==null&&C.has(ie.id))return C.get(ie.id);if(ie.type===A.BindingTypeEnum.ConstantValue)q=ie.cache,ie.activated=!0;else if(ie.type===A.BindingTypeEnum.Function)q=ie.cache,ie.activated=!0;else if(ie.type===A.BindingTypeEnum.Constructor)q=ie.implementationType;else if(ie.type===A.BindingTypeEnum.DynamicValue&&ie.dynamicValue!==null)q=N("toDynamicValue",ie.serviceIdentifier,function(){return ie.dynamicValue(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Factory&&ie.factory!==null)q=N("toFactory",ie.serviceIdentifier,function(){return ie.factory(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Provider&&ie.provider!==null)q=N("toProvider",ie.serviceIdentifier,function(){return ie.provider(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Instance&&ie.implementationType!==null)q=k.resolveInstance(ie.implementationType,P,w(C));else{var fe=z.getServiceIdentifierAsString(f.serviceIdentifier);throw new Error(y.INVALID_BINDING_TYPE+" "+fe)}return typeof ie.onActivation=="function"&&(q=ie.onActivation(f.parentContext,q)),he&&(ie.cache=q,ie.activated=!0),de&&C!==null&&!C.has(ie.id)&&C.set(ie.id,q),q}};function I(C){var f=w(C.plan.rootRequest.requestScope);return f(C.plan.rootRequest)}V.resolve=I},83366:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInSyntax=void 0;var y=m(28421),A=m(71325),b=function(){function z(k){this._binding=k}return z.prototype.inRequestScope=function(){return this._binding.scope=y.BindingScopeEnum.Request,new A.BindingWhenOnSyntax(this._binding)},z.prototype.inSingletonScope=function(){return this._binding.scope=y.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},z.prototype.inTransientScope=function(){return this._binding.scope=y.BindingScopeEnum.Transient,new A.BindingWhenOnSyntax(this._binding)},z}();V.BindingInSyntax=b},99812:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInWhenOnSyntax=void 0;var y=m(83366),A=m(51811),b=m(98370),z=function(){function k(N){this._binding=N,this._bindingWhenSyntax=new b.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new A.BindingOnSyntax(this._binding),this._bindingInSyntax=new y.BindingInSyntax(N)}return k.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},k.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},k.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},k.prototype.when=function(N){return this._bindingWhenSyntax.when(N)},k.prototype.whenTargetNamed=function(N){return this._bindingWhenSyntax.whenTargetNamed(N)},k.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},k.prototype.whenTargetTagged=function(N,w){return this._bindingWhenSyntax.whenTargetTagged(N,w)},k.prototype.whenInjectedInto=function(N){return this._bindingWhenSyntax.whenInjectedInto(N)},k.prototype.whenParentNamed=function(N){return this._bindingWhenSyntax.whenParentNamed(N)},k.prototype.whenParentTagged=function(N,w){return this._bindingWhenSyntax.whenParentTagged(N,w)},k.prototype.whenAnyAncestorIs=function(N){return this._bindingWhenSyntax.whenAnyAncestorIs(N)},k.prototype.whenNoAncestorIs=function(N){return this._bindingWhenSyntax.whenNoAncestorIs(N)},k.prototype.whenAnyAncestorNamed=function(N){return this._bindingWhenSyntax.whenAnyAncestorNamed(N)},k.prototype.whenAnyAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenAnyAncestorTagged(N,w)},k.prototype.whenNoAncestorNamed=function(N){return this._bindingWhenSyntax.whenNoAncestorNamed(N)},k.prototype.whenNoAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenNoAncestorTagged(N,w)},k.prototype.whenAnyAncestorMatches=function(N){return this._bindingWhenSyntax.whenAnyAncestorMatches(N)},k.prototype.whenNoAncestorMatches=function(N){return this._bindingWhenSyntax.whenNoAncestorMatches(N)},k.prototype.onActivation=function(N){return this._bindingOnSyntax.onActivation(N)},k}();V.BindingInWhenOnSyntax=z},51811:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingOnSyntax=void 0;var y=m(98370),A=function(){function b(z){this._binding=z}return b.prototype.onActivation=function(z){return this._binding.onActivation=z,new y.BindingWhenSyntax(this._binding)},b}();V.BindingOnSyntax=A},51860:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingToSyntax=void 0;var y=m(16674),A=m(28421),b=m(99812),z=m(71325),k=function(){function N(w){this._binding=w}return N.prototype.to=function(w){return this._binding.type=A.BindingTypeEnum.Instance,this._binding.implementationType=w,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+y.INVALID_TO_SELF_VALUE);var w=this._binding.serviceIdentifier;return this.to(w)},N.prototype.toConstantValue=function(w){return this._binding.type=A.BindingTypeEnum.ConstantValue,this._binding.cache=w,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toDynamicValue=function(w){return this._binding.type=A.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=w,this._binding.implementationType=null,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toConstructor=function(w){return this._binding.type=A.BindingTypeEnum.Constructor,this._binding.implementationType=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFactory=function(w){return this._binding.type=A.BindingTypeEnum.Factory,this._binding.factory=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFunction=function(w){if(typeof w!="function")throw new Error(y.INVALID_FUNCTION_BINDING);var I=this.toConstantValue(w);return this._binding.type=A.BindingTypeEnum.Function,this._binding.scope=A.BindingScopeEnum.Singleton,I},N.prototype.toAutoFactory=function(w){return this._binding.type=A.BindingTypeEnum.Factory,this._binding.factory=function(I){var C=function(){return I.container.get(w)};return C},this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toProvider=function(w){return this._binding.type=A.BindingTypeEnum.Provider,this._binding.provider=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toService=function(w){this.toDynamicValue(function(I){return I.container.get(w)})},N}();V.BindingToSyntax=k},71325:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenOnSyntax=void 0;var y=m(51811),A=m(98370),b=function(){function z(k){this._binding=k,this._bindingWhenSyntax=new A.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new y.BindingOnSyntax(this._binding)}return z.prototype.when=function(k){return this._bindingWhenSyntax.when(k)},z.prototype.whenTargetNamed=function(k){return this._bindingWhenSyntax.whenTargetNamed(k)},z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},z.prototype.whenTargetTagged=function(k,N){return this._bindingWhenSyntax.whenTargetTagged(k,N)},z.prototype.whenInjectedInto=function(k){return this._bindingWhenSyntax.whenInjectedInto(k)},z.prototype.whenParentNamed=function(k){return this._bindingWhenSyntax.whenParentNamed(k)},z.prototype.whenParentTagged=function(k,N){return this._bindingWhenSyntax.whenParentTagged(k,N)},z.prototype.whenAnyAncestorIs=function(k){return this._bindingWhenSyntax.whenAnyAncestorIs(k)},z.prototype.whenNoAncestorIs=function(k){return this._bindingWhenSyntax.whenNoAncestorIs(k)},z.prototype.whenAnyAncestorNamed=function(k){return this._bindingWhenSyntax.whenAnyAncestorNamed(k)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenAnyAncestorTagged(k,N)},z.prototype.whenNoAncestorNamed=function(k){return this._bindingWhenSyntax.whenNoAncestorNamed(k)},z.prototype.whenNoAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenNoAncestorTagged(k,N)},z.prototype.whenAnyAncestorMatches=function(k){return this._bindingWhenSyntax.whenAnyAncestorMatches(k)},z.prototype.whenNoAncestorMatches=function(k){return this._bindingWhenSyntax.whenNoAncestorMatches(k)},z.prototype.onActivation=function(k){return this._bindingOnSyntax.onActivation(k)},z}();V.BindingWhenOnSyntax=b},98370:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenSyntax=void 0;var y=m(51811),A=m(80758),b=function(){function z(k){this._binding=k}return z.prototype.when=function(k){return this._binding.constraint=k,new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetNamed=function(k){return this._binding.constraint=A.namedConstraint(k),new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(k){var N=k.target!==null&&!k.target.isNamed()&&!k.target.isTagged();return N},new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetTagged=function(k,N){return this._binding.constraint=A.taggedConstraint(k)(N),new y.BindingOnSyntax(this._binding)},z.prototype.whenInjectedInto=function(k){return this._binding.constraint=function(N){return A.typeConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentNamed=function(k){return this._binding.constraint=function(N){return A.namedConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentTagged=function(k,N){return this._binding.constraint=function(w){return A.taggedConstraint(k)(N)(w.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorIs=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,A.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorIs=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,A.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorNamed=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,A.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorNamed=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,A.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._binding.constraint=function(w){return A.traverseAncerstors(w,A.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorTagged=function(k,N){return this._binding.constraint=function(w){return!A.traverseAncerstors(w,A.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorMatches=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorMatches=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z}();V.BindingWhenSyntax=b},80758:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.typeConstraint=V.namedConstraint=V.taggedConstraint=V.traverseAncerstors=void 0;var y=m(6867),A=m(47738),b=function(w,I){var C=w.parentRequest;return C!==null?I(C)?!0:b(C,I):!1};V.traverseAncerstors=b;var z=function(w){return function(I){var C=function(f){return f!==null&&f.target!==null&&f.target.matchesTag(w)(I)};return C.metaData=new A.Metadata(w,I),C}};V.taggedConstraint=z;var k=z(y.NAMED_TAG);V.namedConstraint=k;var N=function(w){return function(I){var C=null;if(I!==null)if(C=I.bindings[0],typeof w=="string"){var f=C.serviceIdentifier;return f===w}else{var S=I.bindings[0].implementationType;return w===S}return!1}};V.typeConstraint=N},70600:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.multiBindToService=void 0;var m=function(y){return function(A){return function(){for(var b=[],z=0;z ")}function N(C){C.childRequests.forEach(function(f){if(z(f,f.serviceIdentifier)){var S=k(f);throw new Error(y.CIRCULAR_DEPENDENCY+" "+S)}else N(f)})}V.circularDependencyToException=N;function w(C,f){if(f.isTagged()||f.isNamed()){var S="",P=f.getNamedTag(),W=f.getCustomTags();return P!==null&&(S+=P.toString()+` -`),W!==null&&W.forEach(function(te){S+=te.toString()+` -`})," "+C+` - `+C+" - "+S}else return" "+C}V.listMetadataForTarget=w;function I(C){if(C.name)return C.name;var f=C.toString(),S=f.match(/^function\s*([^\s(]+)/);return S?S[1]:"Anonymous function: "+f}V.getFunctionName=I},82584:function(nt,V,m){"use strict";var y=m(96410)(),A=m(21924),b=A("Object.prototype.toString"),z=function(I){return y&&I&&typeof I=="object"&&Symbol.toStringTag in I?!1:b(I)==="[object Arguments]"},k=function(I){return z(I)?!0:I!==null&&typeof I=="object"&&typeof I.length=="number"&&I.length>=0&&b(I)!=="[object Array]"&&b(I.callee)==="[object Function]"},N=function(){return z(arguments)}();z.isLegacyArguments=k,nt.exports=N?z:k},18923:function(nt,V,m){"use strict";var y=Date.prototype.getDay,A=function(w){try{return y.call(w),!0}catch(I){return!1}},b=Object.prototype.toString,z="[object Date]",k=m(96410)();nt.exports=function(w){return typeof w!="object"||w===null?!1:k?A(w):b.call(w)===z}},98420:function(nt,V,m){"use strict";var y=m(21924),A=m(96410)(),b,z,k,N;if(A){b=y("Object.prototype.hasOwnProperty"),z=y("RegExp.prototype.exec"),k={};var w=function(){throw k};N={toString:w,valueOf:w},typeof Symbol.toPrimitive=="symbol"&&(N[Symbol.toPrimitive]=w)}var I=y("Object.prototype.toString"),C=Object.getOwnPropertyDescriptor,f="[object RegExp]";nt.exports=A?function(P){if(!P||typeof P!="object")return!1;var W=C(P,"lastIndex"),te=W&&b(W,"value");if(!te)return!1;try{z(P,N)}catch(q){return q===k}}:function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:I(P)===f}},5826:function(nt){var V={}.toString;nt.exports=Array.isArray||function(m){return V.call(m)=="[object Array]"}},69483:function(nt,V,m){(function(y){if(!0)nt.exports=y();else var A})(function(){var y,A,b;return function z(k,N,w){function I(S,P){if(!N[S]){if(!k[S]){var W=void 0;if(!P&&W)return require(S,!0);if(C)return C(S,!0);var te=new Error("Cannot find module '"+S+"'");throw te.code="MODULE_NOT_FOUND",te}var q=N[S]={exports:{}};k[S][0].call(q.exports,function(ie){var he=k[S][1][ie];return I(he||ie)},q,q.exports,z,k,N,w)}return N[S].exports}for(var C=void 0,f=0;f=43)}}).catch(function(){return!1})}function _e(er){return typeof fe=="boolean"?W.resolve(fe):ye(er).then(function(Tr){return fe=Tr,fe})}function Ce(er){var Tr=ke[er.name],pr={};pr.promise=new W(function(ci,Eo){pr.resolve=ci,pr.reject=Eo}),Tr.deferredOperations.push(pr),Tr.dbReady?Tr.dbReady=Tr.dbReady.then(function(){return pr.promise}):Tr.dbReady=pr.promise}function De(er){var Tr=ke[er.name],pr=Tr.deferredOperations.pop();if(pr)return pr.resolve(),pr.promise}function ge(er,Tr){var pr=ke[er.name],ci=pr.deferredOperations.pop();if(ci)return ci.reject(Tr),ci.promise}function je(er,Tr){return new W(function(pr,ci){if(ke[er.name]=ke[er.name]||Bn(),er.db)if(Tr)Ce(er),er.db.close();else return pr(er.db);var Eo=[er.name];Tr&&Eo.push(er.version);var mo=f.open.apply(f,Eo);Tr&&(mo.onupgradeneeded=function(Ts){var xs=mo.result;try{xs.createObjectStore(er.storeName),Ts.oldVersion<=1&&xs.createObjectStore(de)}catch(Sr){if(Sr.name==="ConstraintError")console.warn('The database "'+er.name+'" has been upgraded from version '+Ts.oldVersion+" to version "+Ts.newVersion+', but the storage "'+er.storeName+'" already exists.');else throw Sr}}),mo.onerror=function(Ts){Ts.preventDefault(),ci(mo.error)},mo.onsuccess=function(){var Ts=mo.result;Ts.onversionchange=function(xs){xs.target.close()},pr(Ts),De(er)}})}function we(er){return je(er,!1)}function Pt(er){return je(er,!0)}function dt(er,Tr){if(!er.db)return!0;var pr=!er.db.objectStoreNames.contains(er.storeName),ci=er.versioner.db.version;if(ci&&(er.version!==Tr&&console.warn('The database "'+er.name+`" can't be downgraded from version `+er.db.version+" to version "+er.version+"."),er.version=er.db.version),Eo||pr){if(pr){var mo=er.db.version+1;mo>er.version&&(er.version=mo)}return!0}return!1}function He(er){return new W(function(Tr,pr){var ci=new FileReader;ci.onerror=pr,ci.onloadend=function(Eo){var mo=btoa(Eo.target.result||"");Tr({__local_forage_encoded_blob:!0,data:mo,type:er.type})},ci.readAsBinaryString(er)})}function bt(er){var Tr=me(atob(er.data));return P([Tr],{type:er.type})}function ft(er){return er&&er.__local_forage_encoded_blob}function $t(er){var Tr=this,pr=Tr._initReady().then(function(){var ci=ke[Tr._dbInfo.name];if(ci&&ci.dbReady)return ci.dbReady});return q(pr,er,er),pr}function vt(er){Ce(er);for(var Tr=ke[er.name],pr=Tr.forages,ci=0;ci0&&(!er.db||mo.name==="InvalidStateError"||mo.name==="NotFoundError"))return W.resolve().then(function(){if(!er.db||mo.name==="NotFoundError"&&!er.db.objectStoreNames.contains(er.storeName)&&er.version<=er.db.version)return er.db&&(er.version=er.db.version+1),Pt(er)}).then(function(){return vt(er).then(function(){yn(er,Tr,pr,ci-1)})}).catch(pr);pr(mo)}}function Bn(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Lr(er){var Tr=this,pr={db:null};if(er)for(var ci in er)pr[ci]=er[ci];var Eo=ke[pr.name];Eo||(Eo=Bn(),ke[pr.name]=Eo),Eo.forages.push(Tr),Tr._initReady||(Tr._initReady=Tr.ready,Tr.ready=$t);var mo=[];function Ts(){return W.resolve()}for(var xs=0;xs>4,Xt[Eo++]=(Ts&15)<<4|xs>>2,Xt[Eo++]=(xs&3)<<6|Sr&63;return ui}function Qo(er){var Tr=new Uint8Array(er),pr="",ci;for(ci=0;ci>2],pr+=ji[(Tr[ci]&3)<<4|Tr[ci+1]>>4],pr+=ji[(Tr[ci+1]&15)<<2|Tr[ci+2]>>6],pr+=ji[Tr[ci+2]&63];return Tr.length%3===2?pr=pr.substring(0,pr.length-1)+"=":Tr.length%3===1&&(pr=pr.substring(0,pr.length-2)+"=="),pr}function _n(er,Tr){var pr="";if(er&&(pr=si.call(er)),er&&(pr==="[object ArrayBuffer]"||er.buffer&&si.call(er.buffer)==="[object ArrayBuffer]")){var ci,Eo=Ve;er instanceof ArrayBuffer?(ci=er,Eo+=Ct):(ci=er.buffer,pr==="[object Int8Array]"?Eo+=sn:pr==="[object Uint8Array]"?Eo+=Mt:pr==="[object Uint8ClampedArray]"?Eo+=Tt:pr==="[object Int16Array]"?Eo+=xt:pr==="[object Uint16Array]"?Eo+=Vn:pr==="[object Int32Array]"?Eo+=Ht:pr==="[object Uint32Array]"?Eo+=en:pr==="[object Float32Array]"?Eo+=fr:pr==="[object Float64Array]"?Eo+=Kr:Tr(new Error("Failed to get type for BinaryArray"))),Tr(Eo+Qo(ci))}else if(pr==="[object Blob]"){var mo=new FileReader;mo.onload=function(){var Ts=No+er.type+"~"+Qo(this.result);Tr(Ve+Wt+Ts)},mo.readAsArrayBuffer(er)}else try{Tr(JSON.stringify(er))}catch(Ts){console.error("Couldn't convert value into a JSON string: ",er),Tr(null,Ts)}}function Vr(er){if(er.substring(0,yt)!==Ve)return JSON.parse(er);var Tr=er.substring(ri),pr=er.substring(yt,ri),ci;if(pr===Wt&&dn.test(Tr)){var Eo=Tr.match(dn);ci=Eo[1],Tr=Tr.substring(Eo[0].length)}var mo=uo(Tr);switch(pr){case Ct:return mo;case Wt:return P([mo],{type:ci});case sn:return new Int8Array(mo);case Mt:return new Uint8Array(mo);case Tt:return new Uint8ClampedArray(mo);case xt:return new Int16Array(mo);case Vn:return new Uint16Array(mo);case Ht:return new Int32Array(mo);case en:return new Uint32Array(mo);case fr:return new Float32Array(mo);case Kr:return new Float64Array(mo);default:throw new Error("Unkown type: "+pr)}}var qr={serialize:_n,deserialize:Vr,stringToBuffer:uo,bufferToString:Qo};function Ui(er,Tr,pr,ci){er.executeSql("CREATE TABLE IF NOT EXISTS "+Tr.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],pr,ci)}function xo(er){var Tr=this,pr={db:null};if(er)for(var ci in er)pr[ci]=typeof er[ci]!="string"?er[ci].toString():er[ci];var Eo=new W(function(mo,Ts){try{pr.db=openDatabase(pr.name,String(pr.version),pr.description,pr.size)}catch(xs){return Ts(xs)}pr.db.transaction(function(xs){Ui(xs,pr,function(){Tr._dbInfo=pr,mo()},function(Sr,ui){Ts(ui)})},Ts)});return pr.serializer=qr,Eo}function Us(er,Tr,pr,ci,Eo,mo){er.executeSql(pr,ci,Eo,function(Ts,xs){xs.code===xs.SYNTAX_ERR?Ts.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Tr.storeName],function(Sr,ui){ui.rows.length?mo(Sr,xs):Ui(Sr,Tr,function(){Sr.executeSql(pr,ci,Eo,mo)},mo)},mo):mo(Ts,xs)},mo)}function zn(er,Tr){var pr=this;er=ie(er);var ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT * FROM "+Ts.storeName+" WHERE key = ? LIMIT 1",[er],function(Sr,ui){var Xt=ui.rows.length?ui.rows.item(0).value:null;Xt&&(Xt=Ts.serializer.deserialize(Xt)),Eo(Xt)},function(Sr,ui){mo(ui)})})}).catch(mo)});return te(ci,Tr),ci}function Kn(er,Tr){var pr=this,ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT * FROM "+Ts.storeName,[],function(Sr,ui){for(var Xt=ui.rows,gn=Xt.length,En=0;En0){Ts(Or.apply(Eo,[er,Sr,pr,ci-1]));return}xs(En)}})})}).catch(xs)});return te(mo,pr),mo}function mi(er,Tr,pr){return Or.apply(this,[er,Tr,pr,1])}function Er(er,Tr){var pr=this;er=ie(er);var ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"DELETE FROM "+Ts.storeName+" WHERE key = ?",[er],function(){Eo()},function(Sr,ui){mo(ui)})})}).catch(mo)});return te(ci,Tr),ci}function ti(er){var Tr=this,pr=new W(function(ci,Eo){Tr.ready().then(function(){var mo=Tr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"DELETE FROM "+mo.storeName,[],function(){ci()},function(xs,Sr){Eo(Sr)})})}).catch(Eo)});return te(pr,er),pr}function di(er){var Tr=this,pr=new W(function(ci,Eo){Tr.ready().then(function(){var mo=Tr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"SELECT COUNT(key) as c FROM "+mo.storeName,[],function(xs,Sr){var ui=Sr.rows.item(0).c;ci(ui)},function(xs,Sr){Eo(Sr)})})}).catch(Eo)});return te(pr,er),pr}function rn(er,Tr){var pr=this,ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT key FROM "+Ts.storeName+" WHERE id = ? LIMIT 1",[er+1],function(Sr,ui){var Xt=ui.rows.length?ui.rows.item(0).key:null;Eo(Xt)},function(Sr,ui){mo(ui)})})}).catch(mo)});return te(ci,Tr),ci}function Qn(er){var Tr=this,pr=new W(function(ci,Eo){Tr.ready().then(function(){var mo=Tr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"SELECT key FROM "+mo.storeName,[],function(xs,Sr){for(var ui=[],Xt=0;Xt '__WebKitDatabaseInfoTable__'",[],function(Eo,mo){for(var Ts=[],xs=0;xs0}function vi(er){var Tr=this,pr={};if(er)for(var ci in er)pr[ci]=er[ci];return pr.keyPrefix=pn(er,Tr._defaultConfig),Jr()?(Tr._dbInfo=pr,pr.serializer=qr,W.resolve()):W.reject()}function Di(er){var Tr=this,pr=Tr.ready().then(function(){for(var ci=Tr._dbInfo.keyPrefix,Eo=localStorage.length-1;Eo>=0;Eo--){var mo=localStorage.key(Eo);mo.indexOf(ci)===0&&localStorage.removeItem(mo)}});return te(pr,er),pr}function co(er,Tr){var pr=this;er=ie(er);var ci=pr.ready().then(function(){var Eo=pr._dbInfo,mo=localStorage.getItem(Eo.keyPrefix+er);return mo&&(mo=Eo.serializer.deserialize(mo)),mo});return te(ci,Tr),ci}function Qr(er,Tr){var pr=this,ci=pr.ready().then(function(){for(var Eo=pr._dbInfo,mo=Eo.keyPrefix,Ts=mo.length,xs=localStorage.length,Sr=1,ui=0;ui=0;Ts--){var xs=localStorage.key(Ts);xs.indexOf(mo)===0&&localStorage.removeItem(xs)}}):Eo=W.reject("Invalid arguments"),te(Eo,Tr),Eo}var In={_driver:"localStorageWrapper",_initStorage:vi,_support:Bt(),iterate:Qr,getItem:co,setItem:Gn,removeItem:tn,clear:Di,length:Ar,key:oi,keys:Zi,dropInstance:Ei},Li=function(Tr,pr){return Tr===pr||typeof Tr=="number"&&typeof pr=="number"&&isNaN(Tr)&&isNaN(pr)},nr=function(Tr,pr){for(var ci=Tr.length,Eo=0;Eo-1}nt.exports=A},1196:function(nt){function V(m,y,A){for(var b=-1,z=m==null?0:m.length;++b=y?m:y)),m}nt.exports=V},85990:function(nt,V,m){var y=m(46384),A=m(77412),b=m(34865),z=m(44037),k=m(63886),N=m(64626),w=m(278),I=m(18805),C=m(1911),f=m(58234),S=m(46904),P=m(64160),W=m(43824),te=m(29148),q=m(38517),ie=m(1469),he=m(44144),de=m(56688),fe=m(13218),ke=m(72928),Ie=m(3674),Be=m(81704),be=1,me=2,ye=4,_e="[object Arguments]",Ce="[object Array]",De="[object Boolean]",ge="[object Date]",je="[object Error]",we="[object Function]",Pt="[object GeneratorFunction]",dt="[object Map]",He="[object Number]",bt="[object Object]",ft="[object RegExp]",$t="[object Set]",vt="[object String]",yn="[object Symbol]",Bn="[object WeakMap]",Lr="[object ArrayBuffer]",ii="[object DataView]",gi="[object Float32Array]",no="[object Float64Array]",To="[object Int8Array]",_r="[object Int16Array]",Bo="[object Int32Array]",hs="[object Uint8Array]",ve="[object Uint8ClampedArray]",So="[object Uint16Array]",ho="[object Uint32Array]",go={};go[_e]=go[Ce]=go[Lr]=go[ii]=go[De]=go[ge]=go[gi]=go[no]=go[To]=go[_r]=go[Bo]=go[dt]=go[He]=go[bt]=go[ft]=go[$t]=go[vt]=go[yn]=go[hs]=go[ve]=go[So]=go[ho]=!0,go[je]=go[we]=go[Bn]=!1;function ji(No,dn,Ve,yt,Ct,Wt){var sn,Mt=dn&be,Tt=dn&me,xt=dn&ye;if(Ve&&(sn=Ct?Ve(No,yt,Ct,Wt):Ve(No)),sn!==void 0)return sn;if(!fe(No))return No;var Ht=ie(No);if(Ht){if(sn=W(No),!Mt)return w(No,sn)}else{var Vn=P(No),en=Vn==we||Vn==Pt;if(he(No))return N(No,Mt);if(Vn==bt||Vn==_e||en&&!Ct){if(sn=Tt||en?{}:q(No),!Mt)return Tt?C(No,k(sn,No)):I(No,z(sn,No))}else{if(!go[Vn])return Ct?No:{};sn=te(No,Vn,Mt)}}Wt||(Wt=new y);var fr=Wt.get(No);if(fr)return fr;Wt.set(No,sn),ke(No)?No.forEach(function(si){sn.add(ji(si,dn,Ve,si,No,Wt))}):de(No)&&No.forEach(function(si,uo){sn.set(uo,ji(si,dn,Ve,uo,No,Wt))});var Kr=xt?Tt?S:f:Tt?Be:Ie,ri=Ht?void 0:Kr(No);return A(ri||No,function(si,uo){ri&&(uo=si,si=No[uo]),b(sn,uo,ji(si,dn,Ve,uo,No,Wt))}),sn}nt.exports=ji},3118:function(nt,V,m){var y=m(13218),A=Object.create,b=function(){function z(){}return function(k){if(!y(k))return{};if(A)return A(k);z.prototype=k;var N=new z;return z.prototype=void 0,N}}();nt.exports=b},41848:function(nt){function V(m,y,A,b){for(var z=m.length,k=A+(b?1:-1);b?k--:++k-1;)ie!==C&&w.call(ie,he,1),w.call(C,he,1);return C}nt.exports=I},5976:function(nt,V,m){var y=m(6557),A=m(45357),b=m(30061);function z(k,N){return b(A(k,N,y),k+"")}nt.exports=z},56560:function(nt,V,m){var y=m(75703),A=m(38777),b=m(6557),z=A?function(k,N){return A(k,"toString",{configurable:!0,enumerable:!1,value:y(N),writable:!0})}:b;nt.exports=z},14259:function(nt){function V(m,y,A){var b=-1,z=m.length;y<0&&(y=-y>z?0:z+y),A=A>z?z:A,A<0&&(A+=z),z=y>A?0:A-y>>>0,y>>>=0;for(var k=Array(z);++b=w){var de=f?null:k(C);if(de)return N(de);q=!1,W=z,he=new y}else he=f?[]:ie;e:for(;++P=N?b:y(b,z,k)}nt.exports=A},74318:function(nt,V,m){var y=m(11149);function A(b){var z=new b.constructor(b.byteLength);return new y(z).set(new y(b)),z}nt.exports=A},64626:function(nt,V,m){nt=m.nmd(nt);var y=m(55639),A=V&&!V.nodeType&&V,b=A&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===A,k=z?y.Buffer:void 0,N=k?k.allocUnsafe:void 0;function w(I,C){if(C)return I.slice();var f=I.length,S=N?N(f):new I.constructor(f);return I.copy(S),S}nt.exports=w},57157:function(nt,V,m){var y=m(74318);function A(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.byteLength)}nt.exports=A},93147:function(nt){var V=/\w*$/;function m(y){var A=new y.constructor(y.source,V.exec(y));return A.lastIndex=y.lastIndex,A}nt.exports=m},40419:function(nt,V,m){var y=m(62705),A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function z(k){return b?Object(b.call(k)):{}}nt.exports=z},77133:function(nt,V,m){var y=m(74318);function A(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.length)}nt.exports=A},278:function(nt){function V(m,y){var A=-1,b=m.length;for(y||(y=Array(b));++A1?N[I-1]:void 0,f=I>2?N[2]:void 0;for(C=z.length>3&&typeof C=="function"?(I--,C):void 0,f&&A(N[0],N[1],f)&&(C=I<3?void 0:C,I=1),k=Object(k);++wte))return!1;var ie=P.get(w),he=P.get(I);if(ie&&he)return ie==I&&he==w;var de=-1,fe=!0,ke=C&k?new y:void 0;for(P.set(w,I),P.set(I,w);++de-1&&A%1==0&&A-1}nt.exports=A},44264:function(nt,V,m){var y=m(18470);function A(b,z){var k=this.__data__,N=y(k,b);return N<0?(++this.size,k.push([b,z])):k[N][1]=z,this}nt.exports=A},24785:function(nt,V,m){var y=m(1989),A=m(38407),b=m(57071);function z(){this.size=0,this.__data__={hash:new y,map:new(b||A),string:new y}}nt.exports=z},11285:function(nt,V,m){var y=m(45050);function A(b){var z=y(this,b).delete(b);return this.size-=z?1:0,z}nt.exports=A},96e3:function(nt,V,m){var y=m(45050);function A(b){return y(this,b).get(b)}nt.exports=A},49916:function(nt,V,m){var y=m(45050);function A(b){return y(this,b).has(b)}nt.exports=A},95265:function(nt,V,m){var y=m(45050);function A(b,z){var k=y(this,b),N=k.size;return k.set(b,z),this.size+=k.size==N?0:1,this}nt.exports=A},68776:function(nt){function V(m){var y=-1,A=Array(m.size);return m.forEach(function(b,z){A[++y]=[z,b]}),A}nt.exports=V},24523:function(nt,V,m){var y=m(15644),A=500;function b(z){var k=y(z,function(w){return N.size===A&&N.clear(),w}),N=k.cache;return k}nt.exports=b},94536:function(nt,V,m){var y=m(10852),A=y(Object,"create");nt.exports=A},86916:function(nt,V,m){var y=m(5569),A=y(Object.keys,Object);nt.exports=A},33498:function(nt){function V(m){var y=[];if(m!=null)for(var A in Object(m))y.push(A);return y}nt.exports=V},31167:function(nt,V,m){nt=m.nmd(nt);var y=m(31957),A=V&&!V.nodeType&&V,b=A&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===A,k=z&&y.process,N=function(){try{var w=b&&b.require&&b.require("util").types;return w||k&&k.binding&&k.binding("util")}catch(I){}}();nt.exports=N},2333:function(nt){var V=Object.prototype,m=V.toString;function y(A){return m.call(A)}nt.exports=y},5569:function(nt){function V(m,y){return function(A){return m(y(A))}}nt.exports=V},45357:function(nt,V,m){var y=m(96874),A=Math.max;function b(z,k,N){return k=A(k===void 0?z.length-1:k,0),function(){for(var w=arguments,I=-1,C=A(w.length-k,0),f=Array(C);++I0){if(++z>=V)return arguments[0]}else z=0;return b.apply(void 0,arguments)}}nt.exports=A},37465:function(nt,V,m){var y=m(38407);function A(){this.__data__=new y,this.size=0}nt.exports=A},63779:function(nt){function V(m){var y=this.__data__,A=y.delete(m);return this.size=y.size,A}nt.exports=V},67599:function(nt){function V(m){return this.__data__.get(m)}nt.exports=V},44758:function(nt){function V(m){return this.__data__.has(m)}nt.exports=V},34309:function(nt,V,m){var y=m(38407),A=m(57071),b=m(83369),z=200;function k(N,w){var I=this.__data__;if(I instanceof y){var C=I.__data__;if(!A||C.length=C||we<0||fe&&Pt>=W}function ye(){var je=A();if(me(je))return _e(je);q=setTimeout(ye,be(je))}function _e(je){return q=void 0,ke&&S?Ie(je):(S=P=void 0,te)}function Ce(){q!==void 0&&clearTimeout(q),he=0,S=ie=P=q=void 0}function De(){return q===void 0?te:_e(A())}function ge(){var je=A(),we=me(je);if(S=arguments,P=this,ie=je,we){if(q===void 0)return Be(ie);if(fe)return clearTimeout(q),q=setTimeout(ye,C),Ie(ie)}return q===void 0&&(q=setTimeout(ye,C)),te}return ge.cancel=Ce,ge.flush=De,ge}nt.exports=w},53816:function(nt,V,m){var y=m(69389),A=m(79833),b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,z="\\u0300-\\u036f",k="\\ufe20-\\ufe2f",N="\\u20d0-\\u20ff",w=z+k+N,I="["+w+"]",C=RegExp(I,"g");function f(S){return S=A(S),S&&S.replace(b,y).replace(C,"")}nt.exports=f},77813:function(nt){function V(m,y){return m===y||m!==m&&y!==y}nt.exports=V},27361:function(nt,V,m){var y=m(97786);function A(b,z,k){var N=b==null?void 0:y(b,z);return N===void 0?k:N}nt.exports=A},6557:function(nt){function V(m){return m}nt.exports=V},35694:function(nt,V,m){var y=m(9454),A=m(37005),b=Object.prototype,z=b.hasOwnProperty,k=b.propertyIsEnumerable,N=y(function(){return arguments}())?y:function(w){return A(w)&&z.call(w,"callee")&&!k.call(w,"callee")};nt.exports=N},1469:function(nt){var V=Array.isArray;nt.exports=V},98612:function(nt,V,m){var y=m(23560),A=m(41780);function b(z){return z!=null&&A(z.length)&&!y(z)}nt.exports=b},29246:function(nt,V,m){var y=m(98612),A=m(37005);function b(z){return A(z)&&y(z)}nt.exports=b},51584:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Boolean]";function z(k){return k===!0||k===!1||A(k)&&y(k)==b}nt.exports=z},44144:function(nt,V,m){nt=m.nmd(nt);var y=m(55639),A=m(95062),b=V&&!V.nodeType&&V,z=b&&!0&&nt&&!nt.nodeType&&nt,k=z&&z.exports===b,N=k?y.Buffer:void 0,w=N?N.isBuffer:void 0,I=w||A;nt.exports=I},18446:function(nt,V,m){var y=m(90939);function A(b,z){return y(b,z)}nt.exports=A},23560:function(nt,V,m){var y=m(44239),A=m(13218),b="[object AsyncFunction]",z="[object Function]",k="[object GeneratorFunction]",N="[object Proxy]";function w(I){if(!A(I))return!1;var C=y(I);return C==z||C==k||C==b||C==N}nt.exports=w},41780:function(nt){var V=9007199254740991;function m(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=V}nt.exports=m},56688:function(nt,V,m){var y=m(25588),A=m(7518),b=m(31167),z=b&&b.isMap,k=z?A(z):y;nt.exports=k},14293:function(nt){function V(m){return m==null}nt.exports=V},81763:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Number]";function z(k){return typeof k=="number"||A(k)&&y(k)==b}nt.exports=z},13218:function(nt){function V(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}nt.exports=V},37005:function(nt){function V(m){return m!=null&&typeof m=="object"}nt.exports=V},68630:function(nt,V,m){var y=m(44239),A=m(85924),b=m(37005),z="[object Object]",k=Function.prototype,N=Object.prototype,w=k.toString,I=N.hasOwnProperty,C=w.call(Object);function f(S){if(!b(S)||y(S)!=z)return!1;var P=A(S);if(P===null)return!0;var W=I.call(P,"constructor")&&P.constructor;return typeof W=="function"&&W instanceof W&&w.call(W)==C}nt.exports=f},72928:function(nt,V,m){var y=m(29221),A=m(7518),b=m(31167),z=b&&b.isSet,k=z?A(z):y;nt.exports=k},47037:function(nt,V,m){var y=m(44239),A=m(1469),b=m(37005),z="[object String]";function k(N){return typeof N=="string"||!A(N)&&b(N)&&y(N)==z}nt.exports=k},33448:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Symbol]";function z(k){return typeof k=="symbol"||A(k)&&y(k)==b}nt.exports=z},36719:function(nt,V,m){var y=m(38749),A=m(7518),b=m(31167),z=b&&b.isTypedArray,k=z?A(z):y;nt.exports=k},52353:function(nt){function V(m){return m===void 0}nt.exports=V},3674:function(nt,V,m){var y=m(14636),A=m(280),b=m(98612);function z(k){return b(k)?y(k):A(k)}nt.exports=z},81704:function(nt,V,m){var y=m(14636),A=m(35014),b=m(98612);function z(k){return b(k)?y(k,!0):A(k)}nt.exports=z},96486:function(nt,V,m){nt=m.nmd(nt);var y;(function(){var A,b="4.17.21",z=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",N="Expected a function",w="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",C=500,f="__lodash_placeholder__",S=1,P=2,W=4,te=1,q=2,ie=1,he=2,de=4,fe=8,ke=16,Ie=32,Be=64,be=128,me=256,ye=512,_e=30,Ce="...",De=800,ge=16,je=1,we=2,Pt=3,dt=1/0,He=9007199254740991,bt=17976931348623157e292,ft=0/0,$t=4294967295,vt=$t-1,yn=$t>>>1,Bn=[["ary",be],["bind",ie],["bindKey",he],["curry",fe],["curryRight",ke],["flip",ye],["partial",Ie],["partialRight",Be],["rearg",me]],Lr="[object Arguments]",ii="[object Array]",gi="[object AsyncFunction]",no="[object Boolean]",To="[object Date]",_r="[object DOMException]",Bo="[object Error]",hs="[object Function]",ve="[object GeneratorFunction]",So="[object Map]",ho="[object Number]",go="[object Null]",ji="[object Object]",No="[object Promise]",dn="[object Proxy]",Ve="[object RegExp]",yt="[object Set]",Ct="[object String]",Wt="[object Symbol]",sn="[object Undefined]",Mt="[object WeakMap]",Tt="[object WeakSet]",xt="[object ArrayBuffer]",Ht="[object DataView]",Vn="[object Float32Array]",en="[object Float64Array]",fr="[object Int8Array]",Kr="[object Int16Array]",ri="[object Int32Array]",si="[object Uint8Array]",uo="[object Uint8ClampedArray]",Qo="[object Uint16Array]",_n="[object Uint32Array]",Vr=/\b__p \+= '';/g,qr=/\b(__p \+=) '' \+/g,Ui=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xo=/&(?:amp|lt|gt|quot|#39);/g,Us=/[&<>"']/g,zn=RegExp(xo.source),Kn=RegExp(Us.source),Or=/<%-([\s\S]+?)%>/g,mi=/<%([\s\S]+?)%>/g,Er=/<%=([\s\S]+?)%>/g,ti=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qn=/[\\^$.*+?()[\]{}|]/g,Xr=RegExp(Qn.source),ao=/^\s+/,as=/\s/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,br=/,? & /,Jr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vi=/[()=,{}\[\]\/\s]/,Di=/\\(\\)?/g,co=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qr=/\w*$/,oi=/^[-+]0x[0-9a-f]+$/i,Zi=/^0b[01]+$/i,Ar=/^\[object .+?Constructor\]$/,tn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Ei=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Li=/['\n\r\u2028\u2029\\]/g,nr="\\ud800-\\udfff",wi="\\u0300-\\u036f",Mi="\\ufe20-\\ufe2f",Fr="\\u20d0-\\u20ff",qn=wi+Mi+Fr,ms="\\u2700-\\u27bf",ya="a-z\\xdf-\\xf6\\xf8-\\xff",ha="\\xac\\xb1\\xd7\\xf7",Ws="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ua="\\u2000-\\u206f",Ao=" \\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",dl="A-Z\\xc0-\\xd6\\xd8-\\xde",$r="\\ufe0e\\ufe0f",er=ha+Ws+Ua+Ao,Tr="['\u2019]",pr="["+nr+"]",ci="["+er+"]",Eo="["+qn+"]",mo="\\d+",Ts="["+ms+"]",xs="["+ya+"]",Sr="[^"+nr+er+mo+ms+ya+dl+"]",ui="\\ud83c[\\udffb-\\udfff]",Xt="(?:"+Eo+"|"+ui+")",gn="[^"+nr+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",at="["+dl+"]",gt="\\u200d",Ne="(?:"+xs+"|"+Sr+")",lt="(?:"+at+"|"+Sr+")",St="(?:"+Tr+"(?:d|ll|m|re|s|t|ve))?",ln="(?:"+Tr+"(?:D|LL|M|RE|S|T|VE))?",jn=Xt+"?",Cr="["+$r+"]?",ki="(?:"+gt+"(?:"+[gn,En,tt].join("|")+")"+Cr+jn+")*",Vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ki="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fs=Cr+jn+ki,Ns="(?:"+[Ts,En,tt].join("|")+")"+fs,Bs="(?:"+[gn+Eo+"?",Eo,En,tt,pr].join("|")+")",_a=RegExp(Tr,"g"),oo=RegExp(Eo,"g"),Ds=RegExp(ui+"(?="+ui+")|"+Bs+fs,"g"),oa=RegExp([at+"?"+xs+"+"+St+"(?="+[ci,at,"$"].join("|")+")",lt+"+"+ln+"(?="+[ci,at+Ne,"$"].join("|")+")",at+"?"+Ne+"+"+St,at+"+"+ln,Ki,Vi,mo,Ns].join("|"),"g"),va=RegExp("["+gt+nr+qn+$r+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ml=-1,la={};la[Vn]=la[en]=la[fr]=la[Kr]=la[ri]=la[si]=la[uo]=la[Qo]=la[_n]=!0,la[Lr]=la[ii]=la[xt]=la[no]=la[Ht]=la[To]=la[Bo]=la[hs]=la[So]=la[ho]=la[ji]=la[Ve]=la[yt]=la[Ct]=la[Mt]=!1;var Nl={};Nl[Lr]=Nl[ii]=Nl[xt]=Nl[Ht]=Nl[no]=Nl[To]=Nl[Vn]=Nl[en]=Nl[fr]=Nl[Kr]=Nl[ri]=Nl[So]=Nl[ho]=Nl[ji]=Nl[Ve]=Nl[yt]=Nl[Ct]=Nl[Wt]=Nl[si]=Nl[uo]=Nl[Qo]=Nl[_n]=!0,Nl[Bo]=Nl[hs]=Nl[Mt]=!1;var vs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Hi={"&":"&","<":"<",">":">",'"':""","'":"'"},to={"&":"&","<":"<",">":">",""":'"',"'":"'"},sa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cs=parseFloat,Ka=parseInt,Wu=typeof m.g=="object"&&m.g&&m.g.Object===Object&&m.g,rc=typeof self=="object"&&self&&self.Object===Object&&self,Pc=Wu||rc||Function("return this")(),vo=V&&!V.nodeType&&V,eo=vo&&!0&&nt&&!nt.nodeType&&nt,ds=eo&&eo.exports===vo,Wn=ds&&Wu.process,yr=function(){try{var ja=eo&&eo.require&&eo.require("util").types;return ja||Wn&&Wn.binding&&Wn.binding("util")}catch(ru){}}(),ai=yr&&yr.isArrayBuffer,hi=yr&&yr.isDate,Ji=yr&&yr.isMap,so=yr&&yr.isRegExp,Pi=yr&&yr.isSet,us=yr&&yr.isTypedArray;function pa(ja,ru,zl){switch(zl.length){case 0:return ja.call(ru);case 1:return ja.call(ru,zl[0]);case 2:return ja.call(ru,zl[0],zl[1]);case 3:return ja.call(ru,zl[0],zl[1],zl[2])}return ja.apply(ru,zl)}function $a(ja,ru,zl,Au){for(var Uu=-1,Vd=ja==null?0:ja.length;++Uu-1}function ea(ja,ru,zl){for(var Au=-1,Uu=ja==null?0:ja.length;++Au-1;);return zl}function vd(ja,ru){for(var zl=ja.length;zl--&&xa(ru,ja[zl],0)>-1;);return zl}function Yd(ja,ru){for(var zl=ja.length,Au=0;zl--;)ja[zl]===ru&&++Au;return Au}var nh=Fu(vs),jd=Fu(Hi);function yh(ja){return"\\"+sa[ja]}function id(ja,ru){return ja==null?A:ja[ru]}function nd(ja){return va.test(ja)}function Pf(ja){return Bl.test(ja)}function Jd(ja){for(var ru,zl=[];!(ru=ja.next()).done;)zl.push(ru.value);return zl}function cc(ja){var ru=-1,zl=Array(ja.size);return ja.forEach(function(Au,Uu){zl[++ru]=[Uu,Au]}),zl}function Yc(ja,ru){return function(zl){return ja(ru(zl))}}function jh(ja,ru){for(var zl=-1,Au=ja.length,Uu=0,Vd=[];++zl-1}function re(ce,ze){var Zt=this.__data__,kr=dc(Zt,ce);return kr<0?(++this.size,Zt.push([ce,ze])):Zt[kr][1]=ze,this}Iu.prototype.clear=pc,Iu.prototype.delete=zc,Iu.prototype.get=Rd,Iu.prototype.has=X,Iu.prototype.set=re;function Q(ce){var ze=-1,Zt=ce==null?0:ce.length;for(this.clear();++ze=ze?ce:ze)),ce}function Xh(ce,ze,Zt,kr,Vo,ia){var Tl,Ul=ze&S,Ou=ze&P,rd=ze&W;if(Zt&&(Tl=Vo?Zt(ce,kr,Vo,ia):Zt(ce)),Tl!==A)return Tl;if(!hg(ce))return ce;var od=gf(ce);if(od){if(Tl=or(ce),!Ul)return mr(ce,Tl)}else{var Dd=ca(ce),Yh=Dd==hs||Dd==ve;if(oh(ce))return Vt(ce,Ul);if(Dd==ji||Dd==Lr||Yh&&!Vo){if(Tl=Ou||Yh?{}:Ii(ce),!Ul)return Ou?Co(ce,fd(Tl,ce)):yo(ce,wc(Tl,ce))}else{if(!Nl[Dd])return Vo?ce:{};Tl=Gi(ce,Dd,Ul)}}ia||(ia=new ts);var If=ia.get(ce);if(If)return If;ia.set(ce,Tl),wv(ce)?ce.forEach(function(zp){Tl.add(Xh(zp,ze,Zt,zp,ce,ia))}):z0(ce)&&ce.forEach(function(zp,kg){Tl.set(kg,Xh(zp,ze,Zt,kg,ce,ia))});var pp=rd?Ou?kt:Lo:Ou?$0:hm,gp=od?A:pp(ce);return hl(gp||ce,function(zp,kg){gp&&(kg=zp,zp=ce[kg]),Cu(Tl,kg,Xh(zp,ze,Zt,kg,ce,ia))}),Tl}function Nc(ce){var ze=hm(ce);return function(Zt){return Hc(Zt,ce,ze)}}function Hc(ce,ze,Zt){var kr=Zt.length;if(ce==null)return!kr;for(ce=sh(ce);kr--;){var Vo=Zt[kr],ia=ze[Vo],Tl=ce[Vo];if(Tl===A&&!(Vo in ce)||!ia(Tl))return!1}return!0}function tf(ce,ze,Zt){if(typeof ce!="function")throw new Uh(N);return Js(function(){ce.apply(A,Zt)},ze)}function hh(ce,ze,Zt,kr){var Vo=-1,ia=ku,Tl=!0,Ul=ce.length,Ou=[],rd=ze.length;if(!Ul)return Ou;Zt&&(ze=Qa(ze,sd(Zt))),kr?(ia=ea,Tl=!1):ze.length>=z&&(ia=Fc,Tl=!1,ze=new ei(ze));e:for(;++VoVo?0:Vo+Zt),kr=kr===A||kr>Vo?Vo:vc(kr),kr<0&&(kr+=Vo),kr=Zt>kr?0:xh(kr);Zt0&&Zt(Ul)?ze>1?vp(Ul,ze-1,Zt,kr,Vo):el(Vo,Ul):kr||(Vo[Vo.length]=Ul)}return Vo}var Gc=Po(),Oc=Po(!0);function ad(ce,ze){return ce&&Gc(ce,ze,hm)}function yd(ce,ze){return ce&&Oc(ce,ze,hm)}function Bd(ce,ze){return Za(ze,function(Zt){return dg(ce[Zt])})}function Dc(ce,ze){ze=rt(ze,ce);for(var Zt=0,kr=ze.length;ce!=null&&Ztze}function Ro(ce,ze){return ce!=null&&Vh.call(ce,ze)}function Hg(ce,ze){return ce!=null&&ze in sh(ce)}function Zp(ce,ze,Zt){return ce>=Ff(ze,Zt)&&ce=120&&od.length>=120)?new ei(Tl&&od):A}od=ce[0];var Dd=-1,Yh=Ul[0];e:for(;++Dd-1;)Ul!==ce&&sg.call(Ul,Ou,1),sg.call(ce,Ou,1);return ce}function Gp(ce,ze){for(var Zt=ce?ze.length:0,kr=Zt-1;Zt--;){var Vo=ze[Zt];if(Zt==kr||Vo!==ia){var ia=Vo;da(Vo)?sg.call(ce,Vo,1):Km(ce,Vo)}}return ce}function P0(ce,ze){return ce+Np(Af()*(ze-ce+1))}function wp(ce,ze,Zt,kr){for(var Vo=-1,ia=of(Pd((ze-ce)/(Zt||1)),0),Tl=zl(ia);ia--;)Tl[kr?ia:++Vo]=ce,ce+=Zt;return Tl}function Xf(ce,ze){var Zt="";if(!ce||ze<1||ze>He)return Zt;do ze%2&&(Zt+=ce),ze=Np(ze/2),ze&&(ce+=ce);while(ze);return Zt}function Zh(ce,ze){return Kc(Ca(ce,ze,Lv),ce+"")}function a0(ce){return _l(uv(ce))}function k0(ce,ze){var Zt=uv(ce);return et(Zt,Qd(ze,0,Zt.length))}function Zg(ce,ze,Zt,kr){if(!hg(ce))return ce;ze=rt(ze,ce);for(var Vo=-1,ia=ze.length,Tl=ia-1,Ul=ce;Ul!=null&&++VoVo?0:Vo+ze),Zt=Zt>Vo?Vo:Zt,Zt<0&&(Zt+=Vo),Vo=ze>Zt?0:Zt-ze>>>0,ze>>>=0;for(var ia=zl(Vo);++kr>>1,Tl=ce[ia];Tl!==null&&!E0(Tl)&&(Zt?Tl<=ze:Tl=z){var rd=ze?null:Ft(ce);if(rd)return uf(rd);Tl=!1,Vo=Fc,Ou=new ei}else Ou=ze?[]:Ul;e:for(;++kr=kr?ce:$d(ce,ze,Zt)}var Ut=pg||function(ce){return Pc.clearTimeout(ce)};function Vt(ce,ze){if(ze)return ce.slice();var Zt=ce.length,kr=Qu?Qu(Zt):new ce.constructor(Zt);return ce.copy(kr),kr}function Yt(ce){var ze=new ce.constructor(ce.byteLength);return new yf(ze).set(new yf(ce)),ze}function an(ce,ze){var Zt=ze?Yt(ce.buffer):ce.buffer;return new ce.constructor(Zt,ce.byteOffset,ce.byteLength)}function vn(ce){var ze=new ce.constructor(ce.source,Qr.exec(ce));return ze.lastIndex=ce.lastIndex,ze}function Rn(ce){return Hd?sh(Hd.call(ce)):{}}function ur(ce,ze){var Zt=ze?Yt(ce.buffer):ce.buffer;return new ce.constructor(Zt,ce.byteOffset,ce.length)}function Dr(ce,ze){if(ce!==ze){var Zt=ce!==A,kr=ce===null,Vo=ce===ce,ia=E0(ce),Tl=ze!==A,Ul=ze===null,Ou=ze===ze,rd=E0(ze);if(!Ul&&!rd&&!ia&&ce>ze||ia&&Tl&&Ou&&!Ul&&!rd||kr&&Tl&&Ou||!Zt&&Ou||!Vo)return 1;if(!kr&&!ia&&!rd&&ce=Ul)return Ou;var rd=Zt[kr];return Ou*(rd=="desc"?-1:1)}}return ce.index-ze.index}function Br(ce,ze,Zt,kr){for(var Vo=-1,ia=ce.length,Tl=Zt.length,Ul=-1,Ou=ze.length,rd=of(ia-Tl,0),od=zl(Ou+rd),Dd=!kr;++Ul1?Zt[Vo-1]:A,Tl=Vo>2?Zt[2]:A;for(ia=ce.length>3&&typeof ia=="function"?(Vo--,ia):A,Tl&&Yo(Zt[0],Zt[1],Tl)&&(ia=Vo<3?A:ia,Vo=1),ze=sh(ze);++kr-1?Vo[ia?ze[Tl]:Tl]:A}}function Hn(ce){return wr(function(ze){var Zt=ze.length,kr=Zt,Vo=J.prototype.thru;for(ce&&ze.reverse();kr--;){var ia=ze[kr];if(typeof ia!="function")throw new Uh(N);if(Vo&&!Tl&&Ln(ia)=="wrapper")var Tl=new J([],!0)}for(kr=Tl?kr:Zt;++kr1&&tm.reverse(),od&&OuUl))return!1;var rd=ia.get(ce),od=ia.get(ze);if(rd&&od)return rd==ze&&od==ce;var Dd=-1,Yh=!0,If=Zt&q?new ei:A;for(ia.set(ce,ze),ia.set(ze,ce);++Dd1?"& ":"")+ze[kr],ze=ze.join(Zt>2?", ":" "),ce.replace(Bt,`{ -/* [wrapped with `+ze+`] */ -`)}function Ps(ce){return gf(ce)||Sp(ce)||!!(Ah&&ce&&ce[Ah])}function da(ce,ze){var Zt=typeof ce;return ze=ze==null?He:ze,!!ze&&(Zt=="number"||Zt!="symbol"&&Gn.test(ce))&&ce>-1&&ce%1==0&&ce0){if(++ze>=De)return arguments[0]}else ze=0;return ce.apply(A,arguments)}}function et(ce,ze){var Zt=-1,kr=ce.length,Vo=kr-1;for(ze=ze===A?kr:ze;++Zt1?ce[ze-1]:A;return Zt=typeof Zt=="function"?(ce.pop(),Zt):A,Fo(ce,Zt)});function pu(ce){var ze=Io(ce);return ze.__chain__=!0,ze}function oc(ce,ze){return ze(ce),ce}function cd(ce,ze){return ze(ce)}var Oo=wr(function(ce){var ze=ce.length,Zt=ze?ce[0]:0,kr=this.__wrapped__,Vo=function(ia){return dh(ia,ce)};return ze>1||this.__actions__.length||!(kr instanceof ae)||!da(Zt)?this.thru(Vo):(kr=kr.slice(Zt,+Zt+(ze?1:0)),kr.__actions__.push({func:cd,args:[Vo],thisArg:A}),new J(kr,this.__chain__).thru(function(ia){return ze&&!ia.length&&ia.push(A),ia}))});function Jh(){return pu(this)}function xc(){return new J(this.value(),this.__chain__)}function fh(){this.__values__===A&&(this.__values__=hu(this.value()));var ce=this.__index__>=this.__values__.length,ze=ce?A:this.__values__[this.__index__++];return{done:ce,value:ze}}function Gd(){return this}function _(ce){for(var ze,Zt=this;Zt instanceof F;){var kr=Fi(Zt);kr.__index__=0,kr.__values__=A,ze?Vo.__wrapped__=kr:ze=kr;var Vo=kr;Zt=Zt.__wrapped__}return Vo.__wrapped__=ce,ze}function R(){var ce=this.__wrapped__;if(ce instanceof ae){var ze=ce;return this.__actions__.length&&(ze=new ae(this)),ze=ze.reverse(),ze.__actions__.push({func:cd,args:[Wd],thisArg:A}),new J(ze,this.__chain__)}return this.thru(Wd)}function Z(){return pe(this.__wrapped__,this.__actions__)}var ue=xi(function(ce,ze,Zt){Vh.call(ce,Zt)?++ce[Zt]:Td(ce,Zt,1)});function Pe(ce,ze,Zt){var kr=gf(ce)?Ml:bh;return Zt&&Yo(ce,ze,Zt)&&(ze=A),kr(ce,dr(ze,3))}function Qe(ce,ze){var Zt=gf(ce)?Za:jp;return Zt(ce,dr(ze,3))}var wt=yi(Du),jt=yi(Wc);function Nn(ce,ze){return vp(Pa(ce,ze),1)}function cr(ce,ze){return vp(Pa(ce,ze),dt)}function Ur(ce,ze,Zt){return Zt=Zt===A?1:vc(Zt),vp(Pa(ce,ze),Zt)}function bi(ce,ze){var Zt=gf(ce)?hl:rh;return Zt(ce,dr(ze,3))}function _o(ce,ze){var Zt=gf(ce)?Zl:zh;return Zt(ce,dr(ze,3))}var zo=xi(function(ce,ze,Zt){Vh.call(ce,Zt)?ce[Zt].push(ze):Td(ce,Zt,[ze])});function qs(ce,ze,Zt,kr){ce=Of(ce)?ce:uv(ce),Zt=Zt&&!kr?vc(Zt):0;var Vo=ce.length;return Zt<0&&(Zt=of(Vo+Zt,0)),mv(ce)?Zt<=Vo&&ce.indexOf(ze,Zt)>-1:!!Vo&&xa(ce,ze,Zt)>-1}var ra=Zh(function(ce,ze,Zt){var kr=-1,Vo=typeof ze=="function",ia=Of(ce)?zl(ce.length):[];return rh(ce,function(Tl){ia[++kr]=Vo?pa(ze,Tl,Zt):Zd(Tl,ze,Zt)}),ia}),al=xi(function(ce,ze,Zt){Td(ce,Zt,ze)});function Pa(ce,ze){var Zt=gf(ce)?Qa:im;return Zt(ce,dr(ze,3))}function Ol(ce,ze,Zt,kr){return ce==null?[]:(gf(ze)||(ze=ze==null?[]:[ze]),Zt=kr?A:Zt,gf(Zt)||(Zt=Zt==null?[]:[Zt]),Qg(ce,ze,Zt))}var Vl=xi(function(ce,ze,Zt){ce[Zt?0:1].push(ze)},function(){return[[],[]]});function cu(ce,ze,Zt){var kr=gf(ce)?Hl:lc,Vo=arguments.length<3;return kr(ce,dr(ze,4),Zt,Vo,rh)}function lu(ce,ze,Zt){var kr=gf(ce)?Jl:lc,Vo=arguments.length<3;return kr(ce,dr(ze,4),Zt,Vo,zh)}function Hu(ce,ze){var Zt=gf(ce)?Za:jp;return Zt(ce,ih(dr(ze,3)))}function kc(ce){var ze=gf(ce)?_l:a0;return ze(ce)}function ac(ce,ze,Zt){(Zt?Yo(ce,ze,Zt):ze===A)?ze=1:ze=vc(ze);var kr=gf(ce)?nu:k0;return kr(ce,ze)}function _d(ce){var ze=gf(ce)?xu:Gm;return ze(ce)}function Xu(ce){if(ce==null)return 0;if(Of(ce))return mv(ce)?Nf(ce):ce.length;var ze=ca(ce);return ze==So||ze==yt?ce.size:rm(ce).length}function Nd(ce,ze,Zt){var kr=gf(ce)?vu:Y0;return Zt&&Yo(ce,ze,Zt)&&(ze=A),kr(ce,dr(ze,3))}var qt=Zh(function(ce,ze){if(ce==null)return[];var Zt=ze.length;return Zt>1&&Yo(ce,ze[0],ze[1])?ze=[]:Zt>2&&Yo(ze[0],ze[1],ze[2])&&(ze=[ze[0]]),Qg(ce,vp(ze,1),[])}),On=Cp||function(){return Pc.Date.now()};function hr(ce,ze){if(typeof ze!="function")throw new Uh(N);return ce=vc(ce),function(){if(--ce<1)return ze.apply(this,arguments)}}function Gr(ce,ze,Zt){return ze=Zt?A:ze,ze=ce&&ze==null?ce.length:ze,zt(ce,be,A,A,A,A,ze)}function bo(ce,ze){var Zt;if(typeof ze!="function")throw new Uh(N);return ce=vc(ce),function(){return--ce>0&&(Zt=ze.apply(this,arguments)),ce<=1&&(ze=A),Zt}}var aa=Zh(function(ce,ze,Zt){var kr=ie;if(Zt.length){var Vo=jh(Zt,ir(aa));kr|=Ie}return zt(ce,kr,ze,Zt,Vo)}),Ya=Zh(function(ce,ze,Zt){var kr=ie|he;if(Zt.length){var Vo=jh(Zt,ir(Ya));kr|=Ie}return zt(ze,kr,ce,Zt,Vo)});function ka(ce,ze,Zt){ze=Zt?A:ze;var kr=zt(ce,fe,A,A,A,A,A,ze);return kr.placeholder=ka.placeholder,kr}function Xl(ce,ze,Zt){ze=Zt?A:ze;var kr=zt(ce,ke,A,A,A,A,A,ze);return kr.placeholder=Xl.placeholder,kr}function wu(ce,ze,Zt){var kr,Vo,ia,Tl,Ul,Ou,rd=0,od=!1,Dd=!1,Yh=!0;if(typeof ce!="function")throw new Uh(N);ze=eh(ze)||0,hg(Zt)&&(od=!!Zt.leading,Dd="maxWait"in Zt,ia=Dd?of(eh(Zt.maxWait)||0,ze):ia,Yh="trailing"in Zt?!!Zt.trailing:Yh);function If(M0){var ly=kr,Yy=Vo;return kr=Vo=A,rd=M0,Tl=ce.apply(Yy,ly),Tl}function pp(M0){return rd=M0,Ul=Js(kg,ze),od?If(M0):Tl}function gp(M0){var ly=M0-Ou,Yy=M0-rd,gx=ze-ly;return Dd?Ff(gx,ia-Yy):gx}function zp(M0){var ly=M0-Ou,Yy=M0-rd;return Ou===A||ly>=ze||ly<0||Dd&&Yy>=ia}function kg(){var M0=On();if(zp(M0))return tm(M0);Ul=Js(kg,gp(M0))}function tm(M0){return Ul=A,Yh&&kr?If(M0):(kr=Vo=A,Tl)}function Uv(){Ul!==A&&Ut(Ul),rd=0,kr=Ou=Vo=Ul=A}function dv(){return Ul===A?Tl:tm(On())}function Hv(){var M0=On(),ly=zp(M0);if(kr=arguments,Vo=this,Ou=M0,ly){if(Ul===A)return pp(Ou);if(Dd)return Ut(Ul),Ul=Js(kg,ze),If(Ou)}return Ul===A&&(Ul=Js(kg,ze)),Tl}return Hv.cancel=Uv,Hv.flush=dv,Hv}var Ls=Zh(function(ce,ze){return tf(ce,1,ze)}),Xc=Zh(function(ce,ze,Zt){return tf(ce,eh(ze)||0,Zt)});function ph(ce){return zt(ce,ye)}function gh(ce,ze){if(typeof ce!="function"||ze!=null&&typeof ze!="function")throw new Uh(N);var Zt=function(){var kr=arguments,Vo=ze?ze.apply(this,kr):kr[0],ia=Zt.cache;if(ia.has(Vo))return ia.get(Vo);var Tl=ce.apply(this,kr);return Zt.cache=ia.set(Vo,Tl)||ia,Tl};return Zt.cache=new(gh.Cache||Q),Zt}gh.Cache=Q;function ih(ce){if(typeof ce!="function")throw new Uh(N);return function(){var ze=arguments;switch(ze.length){case 0:return!ce.call(this);case 1:return!ce.call(this,ze[0]);case 2:return!ce.call(this,ze[0],ze[1]);case 3:return!ce.call(this,ze[0],ze[1],ze[2])}return!ce.apply(this,ze)}}function wh(ce){return bo(2,ce)}var cg=Xe(function(ce,ze){ze=ze.length==1&&gf(ze[0])?Qa(ze[0],sd(dr())):Qa(vp(ze,1),sd(dr()));var Zt=ze.length;return Zh(function(kr){for(var Vo=-1,ia=Ff(kr.length,Zt);++Vo=ze}),Sp=Fp(function(){return arguments}())?Fp:function(ce){return Yp(ce)&&Vh.call(ce,"callee")&&!Jp.call(ce,"callee")},gf=zl.isArray,Kp=ai?sd(ai):zf;function Of(ce){return ce!=null&&og(ce.length)&&!dg(ce)}function Nu(ce){return Yp(ce)&&Of(ce)}function lh(ce){return ce===!0||ce===!1||Yp(ce)&&ld(ce)==no}var oh=ag||M1,Ip=hi?sd(hi):bf;function qf(ce){return Yp(ce)&&ce.nodeType===1&&!Cv(ce)}function kp(ce){if(ce==null)return!0;if(Of(ce)&&(gf(ce)||typeof ce=="string"||typeof ce.splice=="function"||oh(ce)||Bv(ce)||Sp(ce)))return!ce.length;var ze=ca(ce);if(ze==So||ze==yt)return!ce.size;if(Ba(ce))return!rm(ce).length;for(var Zt in ce)if(Vh.call(ce,Zt))return!1;return!0}function Xp(ce,ze){return Qp(ce,ze)}function rp(ce,ze,Zt){Zt=typeof Zt=="function"?Zt:A;var kr=Zt?Zt(ce,ze):A;return kr===A?Qp(ce,ze,A,Zt):!!kr}function Em(ce){if(!Yp(ce))return!1;var ze=ld(ce);return ze==Bo||ze==_r||typeof ce.message=="string"&&typeof ce.name=="string"&&!Cv(ce)}function Kg(ce){return typeof ce=="number"&&Md(ce)}function dg(ce){if(!hg(ce))return!1;var ze=ld(ce);return ze==hs||ze==ve||ze==gi||ze==dn}function Xg(ce){return typeof ce=="number"&&ce==vc(ce)}function og(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=He}function hg(ce){var ze=typeof ce;return ce!=null&&(ze=="object"||ze=="function")}function Yp(ce){return ce!=null&&typeof ce=="object"}var z0=Ji?sd(Ji):Hf;function gy(ce,ze){return ce===ze||df(ce,ze,Ri(ze))}function H0(ce,ze,Zt){return Zt=typeof Zt=="function"?Zt:A,df(ce,ze,Ri(ze),Zt)}function q_(ce){return Uy(ce)&&ce!=+ce}function lv(ce){if(Dl(ce))throw new Uu(k);return af(ce)}function vy(ce){return ce===null}function q0(ce){return ce==null}function Uy(ce){return typeof ce=="number"||Yp(ce)&&ld(ce)==ho}function Cv(ce){if(!Yp(ce)||ld(ce)!=ji)return!1;var ze=Bc(ce);if(ze===null)return!0;var Zt=Vh.call(ze,"constructor")&&ze.constructor;return typeof Zt=="function"&&Zt instanceof Zt&&ed.call(Zt)==Na}var gv=so?sd(so):Wg;function c1(ce){return Xg(ce)&&ce>=-He&&ce<=He}var wv=Pi?sd(Pi):lp;function mv(ce){return typeof ce=="string"||!gf(ce)&&Yp(ce)&&ld(ce)==Ct}function E0(ce){return typeof ce=="symbol"||Yp(ce)&&ld(ce)==Wt}var Bv=us?sd(us):lg;function d1(ce){return ce===A}function q1(ce){return Yp(ce)&&ca(ce)==Mt}function zv(ce){return Yp(ce)&&ld(ce)==Tt}var ey=Os(Wm),Ku=Os(function(ce,ze){return ce<=ze});function hu(ce){if(!ce)return[];if(Of(ce))return mv(ce)?ch(ce):mr(ce);if(ap&&ce[ap])return Jd(ce[ap]());var ze=ca(ce),Zt=ze==So?cc:ze==yt?uf:uv;return Zt(ce)}function qc(ce){if(!ce)return ce===0?ce:0;if(ce=eh(ce),ce===dt||ce===-dt){var ze=ce<0?-1:1;return ze*bt}return ce===ce?ce:0}function vc(ce){var ze=qc(ce),Zt=ze%1;return ze===ze?Zt?ze-Zt:ze:0}function xh(ce){return ce?Qd(vc(ce),0,$t):0}function eh(ce){if(typeof ce=="number")return ce;if(E0(ce))return ft;if(hg(ce)){var ze=typeof ce.valueOf=="function"?ce.valueOf():ce;ce=hg(ze)?ze+"":ze}if(typeof ce!="string")return ce===0?ce:+ce;ce=Xd(ce);var Zt=Zi.test(ce);return Zt||tn.test(ce)?Ka(ce.slice(2),Zt?2:8):oi.test(ce)?ft:+ce}function rf(ce){return ni(ce,$0(ce))}function Ep(ce){return ce?Qd(vc(ce),-He,He):ce===0?ce:0}function Ph(ce){return ce==null?"":yp(ce)}var cp=po(function(ce,ze){if(Ba(ze)||Of(ze)){ni(ze,hm(ze),ce);return}for(var Zt in ze)Vh.call(ze,Zt)&&Cu(ce,Zt,ze[Zt])}),fp=po(function(ce,ze){ni(ze,$0(ze),ce)}),t0=po(function(ce,ze,Zt,kr){ni(ze,$0(ze),ce,kr)}),Dg=po(function(ce,ze,Zt,kr){ni(ze,hm(ze),ce,kr)}),Xm=wr(dh);function Z0(ce,ze){var Zt=D(ce);return ze==null?Zt:wc(Zt,ze)}var Sv=Zh(function(ce,ze){ce=sh(ce);var Zt=-1,kr=ze.length,Vo=kr>2?ze[2]:A;for(Vo&&Yo(ze[0],ze[1],Vo)&&(kr=1);++Zt1),ia}),ni(ce,kt(ce),Zt),kr&&(Zt=Xh(Zt,S|P|W,An));for(var Vo=ze.length;Vo--;)Km(Zt,ze[Vo]);return Zt});function f1(ce,ze){return y0(ce,ih(dr(ze)))}var Hy=wr(function(ce,ze){return ce==null?{}:Lm(ce,ze)});function y0(ce,ze){if(ce==null)return{};var Zt=Qa(kt(ce),function(kr){return[kr]});return ze=dr(ze),Rm(ce,Zt,function(kr,Vo){return ze(kr,Vo[0])})}function J_(ce,ze,Zt){ze=rt(ze,ce);var kr=-1,Vo=ze.length;for(Vo||(Vo=1,ce=A);++krze){var kr=ce;ce=ze,ze=kr}if(Zt||ce%1||ze%1){var Vo=Af();return Ff(ce+Vo*(ze-ce+Cs("1e-"+((Vo+"").length-1))),ze)}return P0(ce,ze)}var yv=Pr(function(ce,ze,Zt){return ze=ze.toLowerCase(),ce+(Zt?Wv(ze):ze)});function Wv(ce){return Ky(Ph(ce).toLowerCase())}function jv(ce){return ce=Ph(ce),ce&&ce.replace(Ei,nh).replace(oo,"")}function Ny(ce,ze,Zt){ce=Ph(ce),ze=yp(ze);var kr=ce.length;Zt=Zt===A?kr:Qd(vc(Zt),0,kr);var Vo=Zt;return Zt-=ze.length,Zt>=0&&ce.slice(Zt,Vo)==ze}function e_(ce){return ce=Ph(ce),ce&&Kn.test(ce)?ce.replace(Us,jd):ce}function iv(ce){return ce=Ph(ce),ce&&Xr.test(ce)?ce.replace(Qn,"\\$&"):ce}var S_=Pr(function(ce,ze,Zt){return ce+(Zt?"-":"")+ze.toLowerCase()}),E_=Pr(function(ce,ze,Zt){return ce+(Zt?" ":"")+ze.toLowerCase()}),iy=zs("toLowerCase");function P1(ce,ze,Zt){ce=Ph(ce),ze=vc(ze);var kr=ze?Nf(ce):0;if(!ze||kr>=ze)return ce;var Vo=(ze-kr)/2;return Oi(Np(Vo),Zt)+ce+Oi(Pd(Vo),Zt)}function Db(ce,ze,Zt){ce=Ph(ce),ze=vc(ze);var kr=ze?Nf(ce):0;return ze&&kr>>0,Zt?(ce=Ph(ce),ce&&(typeof ze=="string"||ze!=null&&!gv(ze))&&(ze=yp(ze),!ze&&nd(ce))?It(ch(ce),0,Zt):ce.split(ze,Zt)):[]}var lx=Pr(function(ce,ze,Zt){return ce+(Zt?" ":"")+Ky(ze)});function D_(ce,ze,Zt){return ce=Ph(ce),Zt=Zt==null?0:Qd(vc(Zt),0,ce.length),ze=yp(ze),ce.slice(Zt,Zt+ze.length)==ze}function A_(ce,ze,Zt){var kr=Io.templateSettings;Zt&&Yo(ce,ze,Zt)&&(ze=A),ce=Ph(ce),ze=t0({},ze,kr,Gt);var Vo=t0({},ze.imports,kr.imports,Gt),ia=hm(Vo),Tl=Mu(Vo,ia),Ul,Ou,rd=0,od=ze.interpolate||In,Dd="__p += '",Yh=Vf((ze.escape||In).source+"|"+od.source+"|"+(od===Er?co:In).source+"|"+(ze.evaluate||In).source+"|$","g"),If="//# sourceURL="+(Vh.call(ze,"sourceURL")?(ze.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ml+"]")+` -`;ce.replace(Yh,function(zp,kg,tm,Uv,dv,Hv){return tm||(tm=Uv),Dd+=ce.slice(rd,Hv).replace(Li,yh),kg&&(Ul=!0,Dd+=`' + -__e(`+kg+`) + -'`),dv&&(Ou=!0,Dd+=`'; -`+dv+`; -__p += '`),tm&&(Dd+=`' + -((__t = (`+tm+`)) == null ? '' : __t) + -'`),rd=Hv+zp.length,zp}),Dd+=`'; -`;var pp=Vh.call(ze,"variable")&&ze.variable;if(!pp)Dd=`with (obj) { -`+Dd+` -} -`;else if(vi.test(pp))throw new Uu(w);Dd=(Ou?Dd.replace(Vr,""):Dd).replace(qr,"$1").replace(Ui,"$1;"),Dd="function("+(pp||"obj")+`) { -`+(pp?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Ul?", __e = _.escape":"")+(Ou?`, __j = Array.prototype.join; +`,Se=function($t){var _t=(0,B.useContext)(S.Z),bn=_t.csp,Wn=_t.prefixCls,$r=Me;Wn&&($r=$r.replace(/anticon/g,Wn)),(0,B.useEffect)(function(){var wi=$t.current,oo=(0,K.A)(wi);(0,k.hq)($r,"@ant-design-icons",{prepend:!0,csp:bn,attachTo:oo})},[])},ze=["icon","className","onClick","style","primaryColor","secondaryColor"],De={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ke(ut){var $t=ut.primaryColor,_t=ut.secondaryColor;De.primaryColor=$t,De.secondaryColor=_t||Xe($t),De.calculated=!!_t}function $e(){return(0,g.Z)({},De)}var Te=function($t){var _t=$t.icon,bn=$t.className,Wn=$t.onClick,$r=$t.style,wi=$t.primaryColor,oo=$t.secondaryColor,Mo=(0,b.Z)($t,ze),Ti=B.useRef(),Hr=De;if(wi&&(Hr={primaryColor:wi,secondaryColor:oo||Xe(wi)}),Se(Ti),fe(_e(_t),"icon should be icon definiton, but got ".concat(_t)),!_e(_t))return null;var Ho=_t;return Ho&&typeof Ho.icon=="function"&&(Ho=(0,g.Z)((0,g.Z)({},Ho),{},{icon:Ho.icon(Hr.primaryColor,Hr.secondaryColor)})),xe(Ho.icon,"svg-".concat(Ho.name),(0,g.Z)((0,g.Z)({className:bn,onClick:Wn,style:$r,"data-icon":Ho.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Mo),{},{ref:Ti}))};Te.displayName="IconReact",Te.getTwoToneColors=$e,Te.setTwoToneColors=ke;var tt=Te;function Oe(ut){var $t=We(ut),_t=(0,R.Z)($t,2),bn=_t[0],Wn=_t[1];return tt.setTwoToneColors({primaryColor:bn,secondaryColor:Wn})}function Xt(){var ut=tt.getTwoToneColors();return ut.calculated?[ut.primaryColor,ut.secondaryColor]:ut.primaryColor}var Ft=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Oe(L.iN.primary);var ot=B.forwardRef(function(ut,$t){var _t,bn=ut.className,Wn=ut.icon,$r=ut.spin,wi=ut.rotate,oo=ut.tabIndex,Mo=ut.onClick,Ti=ut.twoToneColor,Hr=(0,b.Z)(ut,Ft),Ho=B.useContext(S.Z),Ss=Ho.prefixCls,Pe=Ss===void 0?"anticon":Ss,qo=Ho.rootClassName,Ki=O()(qo,Pe,(_t={},(0,w.Z)(_t,"".concat(Pe,"-").concat(Wn.name),!!Wn.name),(0,w.Z)(_t,"".concat(Pe,"-spin"),!!$r||Wn.name==="loading"),_t),bn),Do=oo;Do===void 0&&Mo&&(Do=-1);var ai=wi?{msTransform:"rotate(".concat(wi,"deg)"),transform:"rotate(".concat(wi,"deg)")}:void 0,$o=We(Ti),Mn=(0,R.Z)($o,2),nt=Mn[0],Dt=Mn[1];return B.createElement("span",(0,v.Z)({role:"img","aria-label":Wn.name},Hr,{ref:$t,tabIndex:Do,onClick:Mo,className:Ki}),B.createElement(tt,{icon:Wn,primaryColor:nt,secondaryColor:Dt,style:ai}))});ot.displayName="AntdIcon",ot.getTwoToneColor=Xt,ot.setTwoToneColor=Oe;var xt=ot},54775:function(gt,Y,_){"use strict";var v=_(67294),R=(0,v.createContext)({});Y.Z=R},76278:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},35918:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},41322:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},62208:function(gt,Y,_){"use strict";var v=_(87462),R=_(67294),w=_(89503),b=_(93771),B=function(O,L){return R.createElement(b.Z,(0,v.Z)({},O,{ref:L,icon:w.Z}))};Y.Z=R.forwardRef(B)},58964:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},35872:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},26702:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},7124:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},1558:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},62946:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},22508:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},68843:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},13805:function(gt,Y,_){"use strict";_.d(Y,{Z:function(){return O}});var v=_(87462),R=_(67294),w={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"},b=w,B=_(93771),V=function(S,g){return R.createElement(B.Z,(0,v.Z)({},S,{ref:g,icon:b}))},O=R.forwardRef(V)},79742:function(gt,Y){"use strict";Y.byteLength=O,Y.toByteArray=S,Y.fromByteArray=k;for(var _=[],v=[],R=typeof Uint8Array!="undefined"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,B=w.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var ae=K.indexOf("=");ae===-1&&(ae=he);var fe=ae===he?0:4-ae%4;return[ae,fe]}function O(K){var he=V(K),ae=he[0],fe=he[1];return(ae+fe)*3/4-fe}function L(K,he,ae){return(he+ae)*3/4-ae}function S(K){var he,ae=V(K),fe=ae[0],_e=ae[1],be=new R(L(K,fe,_e)),xe=0,Xe=_e>0?fe-4:fe,We;for(We=0;We>16&255,be[xe++]=he>>8&255,be[xe++]=he&255;return _e===2&&(he=v[K.charCodeAt(We)]<<2|v[K.charCodeAt(We+1)]>>4,be[xe++]=he&255),_e===1&&(he=v[K.charCodeAt(We)]<<10|v[K.charCodeAt(We+1)]<<4|v[K.charCodeAt(We+2)]>>2,be[xe++]=he>>8&255,be[xe++]=he&255),be}function g(K){return _[K>>18&63]+_[K>>12&63]+_[K>>6&63]+_[K&63]}function T(K,he,ae){for(var fe,_e=[],be=he;beXe?Xe:xe+be));return fe===1?(he=K[ae-1],_e.push(_[he>>2]+_[he<<4&63]+"==")):fe===2&&(he=(K[ae-2]<<8)+K[ae-1],_e.push(_[he>>10]+_[he>>4&63]+_[he<<2&63]+"=")),_e.join("")}},48764:function(gt,Y,_){"use strict";var v;var R=_(79742),w=_(80645),b=_(5826);Y.lW=L,v=be,Y.h2=50,L.TYPED_ARRAY_SUPPORT=_.g.TYPED_ARRAY_SUPPORT!==void 0?_.g.TYPED_ARRAY_SUPPORT:B(),v=V();function B(){try{var Mn=new Uint8Array(1);return Mn.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Mn.foo()===42&&typeof Mn.subarray=="function"&&Mn.subarray(1,1).byteLength===0}catch(nt){return!1}}function V(){return L.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function O(Mn,nt){if(V()=V())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V().toString(16)+" bytes");return Mn|0}function be(Mn){return+Mn!=Mn&&(Mn=0),L.alloc(+Mn)}L.isBuffer=function(nt){return!!(nt!=null&&nt._isBuffer)},L.compare=function(nt,Dt){if(!L.isBuffer(nt)||!L.isBuffer(Dt))throw new TypeError("Arguments must be Buffers");if(nt===Dt)return 0;for(var Kt=nt.length,mn=Dt.length,kn=0,an=Math.min(Kt,mn);kn>>1;case"base64":return Do(Mn).length;default:if(Kt)return Pe(Mn).length;nt=(""+nt).toLowerCase(),Kt=!0}}L.byteLength=xe;function Xe(Mn,nt,Dt){var Kt=!1;if((nt===void 0||nt<0)&&(nt=0),nt>this.length||((Dt===void 0||Dt>this.length)&&(Dt=this.length),Dt<=0)||(Dt>>>=0,nt>>>=0,Dt<=nt))return"";for(Mn||(Mn="utf8");;)switch(Mn){case"hex":return ut(this,nt,Dt);case"utf8":case"utf-8":return Oe(this,nt,Dt);case"ascii":return ot(this,nt,Dt);case"latin1":case"binary":return xt(this,nt,Dt);case"base64":return tt(this,nt,Dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,nt,Dt);default:if(Kt)throw new TypeError("Unknown encoding: "+Mn);Mn=(Mn+"").toLowerCase(),Kt=!0}}L.prototype._isBuffer=!0;function We(Mn,nt,Dt){var Kt=Mn[nt];Mn[nt]=Mn[Dt],Mn[Dt]=Kt}L.prototype.swap16=function(){var nt=this.length;if(nt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Dt=0;Dt0&&(nt=this.toString("hex",0,Dt).match(/.{2}/g).join(" "),this.length>Dt&&(nt+=" ... ")),""},L.prototype.compare=function(nt,Dt,Kt,mn,kn){if(!L.isBuffer(nt))throw new TypeError("Argument must be a Buffer");if(Dt===void 0&&(Dt=0),Kt===void 0&&(Kt=nt?nt.length:0),mn===void 0&&(mn=0),kn===void 0&&(kn=this.length),Dt<0||Kt>nt.length||mn<0||kn>this.length)throw new RangeError("out of range index");if(mn>=kn&&Dt>=Kt)return 0;if(mn>=kn)return-1;if(Dt>=Kt)return 1;if(Dt>>>=0,Kt>>>=0,mn>>>=0,kn>>>=0,this===nt)return 0;for(var an=kn-mn,tn=Kt-Dt,kt=Math.min(an,tn),en=this.slice(mn,kn),Vn=nt.slice(Dt,Kt),on=0;on2147483647?Dt=2147483647:Dt<-2147483648&&(Dt=-2147483648),Dt=+Dt,isNaN(Dt)&&(Dt=mn?0:Mn.length-1),Dt<0&&(Dt=Mn.length+Dt),Dt>=Mn.length){if(mn)return-1;Dt=Mn.length-1}else if(Dt<0)if(mn)Dt=0;else return-1;if(typeof nt=="string"&&(nt=L.from(nt,Kt)),L.isBuffer(nt))return nt.length===0?-1:Me(Mn,nt,Dt,Kt,mn);if(typeof nt=="number")return nt=nt&255,L.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?mn?Uint8Array.prototype.indexOf.call(Mn,nt,Dt):Uint8Array.prototype.lastIndexOf.call(Mn,nt,Dt):Me(Mn,[nt],Dt,Kt,mn);throw new TypeError("val must be string, number or Buffer")}function Me(Mn,nt,Dt,Kt,mn){var kn=1,an=Mn.length,tn=nt.length;if(Kt!==void 0&&(Kt=String(Kt).toLowerCase(),Kt==="ucs2"||Kt==="ucs-2"||Kt==="utf16le"||Kt==="utf-16le")){if(Mn.length<2||nt.length<2)return-1;kn=2,an/=2,tn/=2,Dt/=2}function kt(oi,Ii){return kn===1?oi[Ii]:oi.readUInt16BE(Ii*kn)}var en;if(mn){var Vn=-1;for(en=Dt;enan&&(Dt=an-tn),en=Dt;en>=0;en--){for(var on=!0,Dr=0;Drmn&&(Kt=mn)):Kt=mn;var kn=nt.length;if(kn%2!==0)throw new TypeError("Invalid hex string");Kt>kn/2&&(Kt=kn/2);for(var an=0;ankn)&&(Kt=kn),nt.length>0&&(Kt<0||Dt<0)||Dt>this.length)throw new RangeError("Attempt to write outside buffer bounds");mn||(mn="utf8");for(var an=!1;;)switch(mn){case"hex":return Se(this,nt,Dt,Kt);case"utf8":case"utf-8":return ze(this,nt,Dt,Kt);case"ascii":return De(this,nt,Dt,Kt);case"latin1":case"binary":return ke(this,nt,Dt,Kt);case"base64":return $e(this,nt,Dt,Kt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,nt,Dt,Kt);default:if(an)throw new TypeError("Unknown encoding: "+mn);mn=(""+mn).toLowerCase(),an=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(Mn,nt,Dt){return nt===0&&Dt===Mn.length?R.fromByteArray(Mn):R.fromByteArray(Mn.slice(nt,Dt))}function Oe(Mn,nt,Dt){Dt=Math.min(Mn.length,Dt);for(var Kt=[],mn=nt;mn239?4:kn>223?3:kn>191?2:1;if(mn+tn<=Dt){var kt,en,Vn,on;switch(tn){case 1:kn<128&&(an=kn);break;case 2:kt=Mn[mn+1],(kt&192)===128&&(on=(kn&31)<<6|kt&63,on>127&&(an=on));break;case 3:kt=Mn[mn+1],en=Mn[mn+2],(kt&192)===128&&(en&192)===128&&(on=(kn&15)<<12|(kt&63)<<6|en&63,on>2047&&(on<55296||on>57343)&&(an=on));break;case 4:kt=Mn[mn+1],en=Mn[mn+2],Vn=Mn[mn+3],(kt&192)===128&&(en&192)===128&&(Vn&192)===128&&(on=(kn&15)<<18|(kt&63)<<12|(en&63)<<6|Vn&63,on>65535&&on<1114112&&(an=on))}}an===null?(an=65533,tn=1):an>65535&&(an-=65536,Kt.push(an>>>10&1023|55296),an=56320|an&1023),Kt.push(an),mn+=tn}return Ft(Kt)}var Xt=4096;function Ft(Mn){var nt=Mn.length;if(nt<=Xt)return String.fromCharCode.apply(String,Mn);for(var Dt="",Kt=0;KtKt)&&(Dt=Kt);for(var mn="",kn=nt;knKt&&(nt=Kt),Dt<0?(Dt+=Kt,Dt<0&&(Dt=0)):Dt>Kt&&(Dt=Kt),DtDt)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUIntLE=function(nt,Dt,Kt){nt=nt|0,Dt=Dt|0,Kt||_t(nt,Dt,this.length);for(var mn=this[nt],kn=1,an=0;++an0&&(kn*=256);)mn+=this[nt+--Dt]*kn;return mn},L.prototype.readUInt8=function(nt,Dt){return Dt||_t(nt,1,this.length),this[nt]},L.prototype.readUInt16LE=function(nt,Dt){return Dt||_t(nt,2,this.length),this[nt]|this[nt+1]<<8},L.prototype.readUInt16BE=function(nt,Dt){return Dt||_t(nt,2,this.length),this[nt]<<8|this[nt+1]},L.prototype.readUInt32LE=function(nt,Dt){return Dt||_t(nt,4,this.length),(this[nt]|this[nt+1]<<8|this[nt+2]<<16)+this[nt+3]*16777216},L.prototype.readUInt32BE=function(nt,Dt){return Dt||_t(nt,4,this.length),this[nt]*16777216+(this[nt+1]<<16|this[nt+2]<<8|this[nt+3])},L.prototype.readIntLE=function(nt,Dt,Kt){nt=nt|0,Dt=Dt|0,Kt||_t(nt,Dt,this.length);for(var mn=this[nt],kn=1,an=0;++an=kn&&(mn-=Math.pow(2,8*Dt)),mn},L.prototype.readIntBE=function(nt,Dt,Kt){nt=nt|0,Dt=Dt|0,Kt||_t(nt,Dt,this.length);for(var mn=Dt,kn=1,an=this[nt+--mn];mn>0&&(kn*=256);)an+=this[nt+--mn]*kn;return kn*=128,an>=kn&&(an-=Math.pow(2,8*Dt)),an},L.prototype.readInt8=function(nt,Dt){return Dt||_t(nt,1,this.length),this[nt]&128?(255-this[nt]+1)*-1:this[nt]},L.prototype.readInt16LE=function(nt,Dt){Dt||_t(nt,2,this.length);var Kt=this[nt]|this[nt+1]<<8;return Kt&32768?Kt|4294901760:Kt},L.prototype.readInt16BE=function(nt,Dt){Dt||_t(nt,2,this.length);var Kt=this[nt+1]|this[nt]<<8;return Kt&32768?Kt|4294901760:Kt},L.prototype.readInt32LE=function(nt,Dt){return Dt||_t(nt,4,this.length),this[nt]|this[nt+1]<<8|this[nt+2]<<16|this[nt+3]<<24},L.prototype.readInt32BE=function(nt,Dt){return Dt||_t(nt,4,this.length),this[nt]<<24|this[nt+1]<<16|this[nt+2]<<8|this[nt+3]},L.prototype.readFloatLE=function(nt,Dt){return Dt||_t(nt,4,this.length),w.read(this,nt,!0,23,4)},L.prototype.readFloatBE=function(nt,Dt){return Dt||_t(nt,4,this.length),w.read(this,nt,!1,23,4)},L.prototype.readDoubleLE=function(nt,Dt){return Dt||_t(nt,8,this.length),w.read(this,nt,!0,52,8)},L.prototype.readDoubleBE=function(nt,Dt){return Dt||_t(nt,8,this.length),w.read(this,nt,!1,52,8)};function bn(Mn,nt,Dt,Kt,mn,kn){if(!L.isBuffer(Mn))throw new TypeError('"buffer" argument must be a Buffer instance');if(nt>mn||ntMn.length)throw new RangeError("Index out of range")}L.prototype.writeUIntLE=function(nt,Dt,Kt,mn){if(nt=+nt,Dt=Dt|0,Kt=Kt|0,!mn){var kn=Math.pow(2,8*Kt)-1;bn(this,nt,Dt,Kt,kn,0)}var an=1,tn=0;for(this[Dt]=nt&255;++tn=0&&(tn*=256);)this[Dt+an]=nt/tn&255;return Dt+Kt},L.prototype.writeUInt8=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,1,255,0),L.TYPED_ARRAY_SUPPORT||(nt=Math.floor(nt)),this[Dt]=nt&255,Dt+1};function Wn(Mn,nt,Dt,Kt){nt<0&&(nt=65535+nt+1);for(var mn=0,kn=Math.min(Mn.length-Dt,2);mn>>(Kt?mn:1-mn)*8}L.prototype.writeUInt16LE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt&255,this[Dt+1]=nt>>>8):Wn(this,nt,Dt,!0),Dt+2},L.prototype.writeUInt16BE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt>>>8,this[Dt+1]=nt&255):Wn(this,nt,Dt,!1),Dt+2};function $r(Mn,nt,Dt,Kt){nt<0&&(nt=4294967295+nt+1);for(var mn=0,kn=Math.min(Mn.length-Dt,4);mn>>(Kt?mn:3-mn)*8&255}L.prototype.writeUInt32LE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[Dt+3]=nt>>>24,this[Dt+2]=nt>>>16,this[Dt+1]=nt>>>8,this[Dt]=nt&255):$r(this,nt,Dt,!0),Dt+4},L.prototype.writeUInt32BE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt>>>24,this[Dt+1]=nt>>>16,this[Dt+2]=nt>>>8,this[Dt+3]=nt&255):$r(this,nt,Dt,!1),Dt+4},L.prototype.writeIntLE=function(nt,Dt,Kt,mn){if(nt=+nt,Dt=Dt|0,!mn){var kn=Math.pow(2,8*Kt-1);bn(this,nt,Dt,Kt,kn-1,-kn)}var an=0,tn=1,kt=0;for(this[Dt]=nt&255;++an>0)-kt&255;return Dt+Kt},L.prototype.writeIntBE=function(nt,Dt,Kt,mn){if(nt=+nt,Dt=Dt|0,!mn){var kn=Math.pow(2,8*Kt-1);bn(this,nt,Dt,Kt,kn-1,-kn)}var an=Kt-1,tn=1,kt=0;for(this[Dt+an]=nt&255;--an>=0&&(tn*=256);)nt<0&&kt===0&&this[Dt+an+1]!==0&&(kt=1),this[Dt+an]=(nt/tn>>0)-kt&255;return Dt+Kt},L.prototype.writeInt8=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,1,127,-128),L.TYPED_ARRAY_SUPPORT||(nt=Math.floor(nt)),nt<0&&(nt=255+nt+1),this[Dt]=nt&255,Dt+1},L.prototype.writeInt16LE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt&255,this[Dt+1]=nt>>>8):Wn(this,nt,Dt,!0),Dt+2},L.prototype.writeInt16BE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt>>>8,this[Dt+1]=nt&255):Wn(this,nt,Dt,!1),Dt+2},L.prototype.writeInt32LE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,4,2147483647,-2147483648),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt&255,this[Dt+1]=nt>>>8,this[Dt+2]=nt>>>16,this[Dt+3]=nt>>>24):$r(this,nt,Dt,!0),Dt+4},L.prototype.writeInt32BE=function(nt,Dt,Kt){return nt=+nt,Dt=Dt|0,Kt||bn(this,nt,Dt,4,2147483647,-2147483648),nt<0&&(nt=4294967295+nt+1),L.TYPED_ARRAY_SUPPORT?(this[Dt]=nt>>>24,this[Dt+1]=nt>>>16,this[Dt+2]=nt>>>8,this[Dt+3]=nt&255):$r(this,nt,Dt,!1),Dt+4};function wi(Mn,nt,Dt,Kt,mn,kn){if(Dt+Kt>Mn.length)throw new RangeError("Index out of range");if(Dt<0)throw new RangeError("Index out of range")}function oo(Mn,nt,Dt,Kt,mn){return mn||wi(Mn,nt,Dt,4,34028234663852886e22,-34028234663852886e22),w.write(Mn,nt,Dt,Kt,23,4),Dt+4}L.prototype.writeFloatLE=function(nt,Dt,Kt){return oo(this,nt,Dt,!0,Kt)},L.prototype.writeFloatBE=function(nt,Dt,Kt){return oo(this,nt,Dt,!1,Kt)};function Mo(Mn,nt,Dt,Kt,mn){return mn||wi(Mn,nt,Dt,8,17976931348623157e292,-17976931348623157e292),w.write(Mn,nt,Dt,Kt,52,8),Dt+8}L.prototype.writeDoubleLE=function(nt,Dt,Kt){return Mo(this,nt,Dt,!0,Kt)},L.prototype.writeDoubleBE=function(nt,Dt,Kt){return Mo(this,nt,Dt,!1,Kt)},L.prototype.copy=function(nt,Dt,Kt,mn){if(Kt||(Kt=0),!mn&&mn!==0&&(mn=this.length),Dt>=nt.length&&(Dt=nt.length),Dt||(Dt=0),mn>0&&mn=this.length)throw new RangeError("sourceStart out of bounds");if(mn<0)throw new RangeError("sourceEnd out of bounds");mn>this.length&&(mn=this.length),nt.length-Dt=0;--an)nt[an+Dt]=this[an+Kt];else if(kn<1e3||!L.TYPED_ARRAY_SUPPORT)for(an=0;an>>0,Kt=Kt===void 0?this.length:Kt>>>0,nt||(nt=0);var an;if(typeof nt=="number")for(an=Dt;an55295&&Dt<57344){if(!mn){if(Dt>56319){(nt-=3)>-1&&kn.push(239,191,189);continue}else if(an+1===Kt){(nt-=3)>-1&&kn.push(239,191,189);continue}mn=Dt;continue}if(Dt<56320){(nt-=3)>-1&&kn.push(239,191,189),mn=Dt;continue}Dt=(mn-55296<<10|Dt-56320)+65536}else mn&&(nt-=3)>-1&&kn.push(239,191,189);if(mn=null,Dt<128){if((nt-=1)<0)break;kn.push(Dt)}else if(Dt<2048){if((nt-=2)<0)break;kn.push(Dt>>6|192,Dt&63|128)}else if(Dt<65536){if((nt-=3)<0)break;kn.push(Dt>>12|224,Dt>>6&63|128,Dt&63|128)}else if(Dt<1114112){if((nt-=4)<0)break;kn.push(Dt>>18|240,Dt>>12&63|128,Dt>>6&63|128,Dt&63|128)}else throw new Error("Invalid code point")}return kn}function qo(Mn){for(var nt=[],Dt=0;Dt>8,mn=Dt%256,kn.push(mn),kn.push(Kt);return kn}function Do(Mn){return R.toByteArray(Hr(Mn))}function ai(Mn,nt,Dt,Kt){for(var mn=0;mn=nt.length||mn>=Mn.length);++mn)nt[mn+Dt]=Mn[mn];return mn}function $o(Mn){return Mn!==Mn}},21924:function(gt,Y,_){"use strict";var v=_(40210),R=_(55559),w=R(v("String.prototype.indexOf"));gt.exports=function(B,V){var O=v(B,!!V);return typeof O=="function"&&w(B,".prototype.")>-1?R(O):O}},55559:function(gt,Y,_){"use strict";var v=_(58612),R=_(40210),w=_(67771),b=R("%TypeError%"),B=R("%Function.prototype.apply%"),V=R("%Function.prototype.call%"),O=R("%Reflect.apply%",!0)||v.call(V,B),L=R("%Object.defineProperty%",!0),S=R("%Math.max%");if(L)try{L({},"a",{value:1})}catch(T){L=null}gt.exports=function(k){if(typeof k!="function")throw new b("a function is required");var K=O(v,V,arguments);return w(K,1+S(0,k.length-(arguments.length-1)),!0)};var g=function(){return O(v,B,arguments)};L?L(gt.exports,"apply",{value:g}):gt.exports.apply=g},42152:function(gt){(function(_,v){gt.exports=v()})(this,function(){return function(){var Y={686:function(R,w,b){"use strict";b.d(w,{default:function(){return ot}});var B=b(279),V=b.n(B),O=b(370),L=b.n(O),S=b(817),g=b.n(S);function T(xt){try{return document.execCommand(xt)}catch(ut){return!1}}var k=function(ut){var $t=g()(ut);return T("cut"),$t},K=k;function he(xt){var ut=document.documentElement.getAttribute("dir")==="rtl",$t=document.createElement("textarea");$t.style.fontSize="12pt",$t.style.border="0",$t.style.padding="0",$t.style.margin="0",$t.style.position="absolute",$t.style[ut?"right":"left"]="-9999px";var _t=window.pageYOffset||document.documentElement.scrollTop;return $t.style.top="".concat(_t,"px"),$t.setAttribute("readonly",""),$t.value=xt,$t}var ae=function(ut,$t){var _t=he(ut);$t.container.appendChild(_t);var bn=g()(_t);return T("copy"),_t.remove(),bn},fe=function(ut){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},_t="";return typeof ut=="string"?_t=ae(ut,$t):ut instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ut==null?void 0:ut.type)?_t=ae(ut.value,$t):(_t=g()(ut),T("copy")),_t},_e=fe;function be(xt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?be=function($t){return typeof $t}:be=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},be(xt)}var xe=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=ut.action,_t=$t===void 0?"copy":$t,bn=ut.container,Wn=ut.target,$r=ut.text;if(_t!=="copy"&&_t!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Wn!==void 0)if(Wn&&be(Wn)==="object"&&Wn.nodeType===1){if(_t==="copy"&&Wn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(_t==="cut"&&(Wn.hasAttribute("readonly")||Wn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if($r)return _e($r,{container:bn});if(Wn)return _t==="cut"?K(Wn):_e(Wn,{container:bn})},Xe=xe;function We(xt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?We=function($t){return typeof $t}:We=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},We(xt)}function dt(xt,ut){if(!(xt instanceof ut))throw new TypeError("Cannot call a class as a function")}function Me(xt,ut){for(var $t=0;$t0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof bn.action=="function"?bn.action:this.defaultAction,this.target=typeof bn.target=="function"?bn.target:this.defaultTarget,this.text=typeof bn.text=="function"?bn.text:this.defaultText,this.container=We(bn.container)==="object"?bn.container:document.body}},{key:"listenClick",value:function(bn){var Wn=this;this.listener=L()(bn,"click",function($r){return Wn.onClick($r)})}},{key:"onClick",value:function(bn){var Wn=bn.delegateTarget||bn.currentTarget,$r=this.action(Wn)||"copy",wi=Xe({action:$r,container:this.container,target:this.target(Wn),text:this.text(Wn)});this.emit(wi?"success":"error",{action:$r,text:wi,trigger:Wn,clearSelection:function(){Wn&&Wn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(bn){return Xt("action",bn)}},{key:"defaultTarget",value:function(bn){var Wn=Xt("target",bn);if(Wn)return document.querySelector(Wn)}},{key:"defaultText",value:function(bn){return Xt("text",bn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(bn){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _e(bn,Wn)}},{key:"cut",value:function(bn){return K(bn)}},{key:"isSupported",value:function(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Wn=typeof bn=="string"?[bn]:bn,$r=!!document.queryCommandSupported;return Wn.forEach(function(wi){$r=$r&&!!document.queryCommandSupported(wi)}),$r}}]),$t}(V()),ot=Ft},828:function(R){var w=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var b=Element.prototype;b.matches=b.matchesSelector||b.mozMatchesSelector||b.msMatchesSelector||b.oMatchesSelector||b.webkitMatchesSelector}function B(V,O){for(;V&&V.nodeType!==w;){if(typeof V.matches=="function"&&V.matches(O))return V;V=V.parentNode}}R.exports=B},438:function(R,w,b){var B=b(828);function V(S,g,T,k,K){var he=L.apply(this,arguments);return S.addEventListener(T,he,K),{destroy:function(){S.removeEventListener(T,he,K)}}}function O(S,g,T,k,K){return typeof S.addEventListener=="function"?V.apply(null,arguments):typeof T=="function"?V.bind(null,document).apply(null,arguments):(typeof S=="string"&&(S=document.querySelectorAll(S)),Array.prototype.map.call(S,function(he){return V(he,g,T,k,K)}))}function L(S,g,T,k){return function(K){K.delegateTarget=B(K.target,g),K.delegateTarget&&k.call(S,K)}}R.exports=O},879:function(R,w){w.node=function(b){return b!==void 0&&b instanceof HTMLElement&&b.nodeType===1},w.nodeList=function(b){var B=Object.prototype.toString.call(b);return b!==void 0&&(B==="[object NodeList]"||B==="[object HTMLCollection]")&&"length"in b&&(b.length===0||w.node(b[0]))},w.string=function(b){return typeof b=="string"||b instanceof String},w.fn=function(b){var B=Object.prototype.toString.call(b);return B==="[object Function]"}},370:function(R,w,b){var B=b(879),V=b(438);function O(T,k,K){if(!T&&!k&&!K)throw new Error("Missing required arguments");if(!B.string(k))throw new TypeError("Second argument must be a String");if(!B.fn(K))throw new TypeError("Third argument must be a Function");if(B.node(T))return L(T,k,K);if(B.nodeList(T))return S(T,k,K);if(B.string(T))return g(T,k,K);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function L(T,k,K){return T.addEventListener(k,K),{destroy:function(){T.removeEventListener(k,K)}}}function S(T,k,K){return Array.prototype.forEach.call(T,function(he){he.addEventListener(k,K)}),{destroy:function(){Array.prototype.forEach.call(T,function(he){he.removeEventListener(k,K)})}}}function g(T,k,K){return V(document.body,T,k,K)}R.exports=O},817:function(R){function w(b){var B;if(b.nodeName==="SELECT")b.focus(),B=b.value;else if(b.nodeName==="INPUT"||b.nodeName==="TEXTAREA"){var V=b.hasAttribute("readonly");V||b.setAttribute("readonly",""),b.select(),b.setSelectionRange(0,b.value.length),V||b.removeAttribute("readonly"),B=b.value}else{b.hasAttribute("contenteditable")&&b.focus();var O=window.getSelection(),L=document.createRange();L.selectNodeContents(b),O.removeAllRanges(),O.addRange(L),B=O.toString()}return B}R.exports=w},279:function(R){function w(){}w.prototype={on:function(b,B,V){var O=this.e||(this.e={});return(O[b]||(O[b]=[])).push({fn:B,ctx:V}),this},once:function(b,B,V){var O=this;function L(){O.off(b,L),B.apply(V,arguments)}return L._=B,this.on(b,L,V)},emit:function(b){var B=[].slice.call(arguments,1),V=((this.e||(this.e={}))[b]||[]).slice(),O=0,L=V.length;for(O;O=4&&S[3]!==1&&(g=", "+S[3]),"hwb("+S[0]+", "+S[1]+"%, "+S[2]+"%"+g+")"},V.to.keyword=function(S){return b[S.slice(0,3)]};function O(S,g,T){return Math.min(Math.max(g,S),T)}function L(S){var g=Math.round(S).toString(16).toUpperCase();return g.length<2?"0"+g:g}},6767:function(gt,Y,_){const v=_(19818),R=_(80978),w=["keyword","gray","hex"],b={};for(const K of Object.keys(R))b[[...R[K].labels].sort().join("")]=K;const B={};function V(K,he){if(!(this instanceof V))return new V(K,he);if(he&&he in w&&(he=null),he&&!(he in R))throw new Error("Unknown model: "+he);let ae,fe;if(K==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(K instanceof V)this.model=K.model,this.color=[...K.color],this.valpha=K.valpha;else if(typeof K=="string"){const _e=v.get(K);if(_e===null)throw new Error("Unable to parse color from string: "+K);this.model=_e.model,fe=R[this.model].channels,this.color=_e.value.slice(0,fe),this.valpha=typeof _e.value[fe]=="number"?_e.value[fe]:1}else if(K.length>0){this.model=he||"rgb",fe=R[this.model].channels;const _e=Array.prototype.slice.call(K,0,fe);this.color=k(_e,fe),this.valpha=typeof K[fe]=="number"?K[fe]:1}else if(typeof K=="number")this.model="rgb",this.color=[K>>16&255,K>>8&255,K&255],this.valpha=1;else{this.valpha=1;const _e=Object.keys(K);"alpha"in K&&(_e.splice(_e.indexOf("alpha"),1),this.valpha=typeof K.alpha=="number"?K.alpha:0);const be=_e.sort().join("");if(!(be in b))throw new Error("Unable to parse color from object: "+JSON.stringify(K));this.model=b[be];const{labels:xe}=R[this.model],Xe=[];for(ae=0;ae(K%360+360)%360),saturationl:S("hsl",1,g(100)),lightness:S("hsl",2,g(100)),saturationv:S("hsv",1,g(100)),value:S("hsv",2,g(100)),chroma:S("hcg",1,g(100)),gray:S("hcg",2,g(100)),white:S("hwb",1,g(100)),wblack:S("hwb",2,g(100)),cyan:S("cmyk",0,g(100)),magenta:S("cmyk",1,g(100)),yellow:S("cmyk",2,g(100)),black:S("cmyk",3,g(100)),x:S("xyz",0,g(95.047)),y:S("xyz",1,g(100)),z:S("xyz",2,g(108.833)),l:S("lab",0,g(100)),a:S("lab",1),b:S("lab",2),keyword(K){return K!==void 0?new V(K):R[this.model].keyword(this.color)},hex(K){return K!==void 0?new V(K):v.to.hex(this.rgb().round().color)},hexa(K){if(K!==void 0)return new V(K);const he=this.rgb().round().color;let ae=Math.round(this.valpha*255).toString(16).toUpperCase();return ae.length===1&&(ae="0"+ae),v.to.hex(he)+ae},rgbNumber(){const K=this.rgb().color;return(K[0]&255)<<16|(K[1]&255)<<8|K[2]&255},luminosity(){const K=this.rgb().color,he=[];for(const[ae,fe]of K.entries()){const _e=fe/255;he[ae]=_e<=.04045?_e/12.92:Q1((_e+.055)/1.055,2.4)}return .2126*he[0]+.7152*he[1]+.0722*he[2]},contrast(K){const he=this.luminosity(),ae=K.luminosity();return he>ae?(he+.05)/(ae+.05):(ae+.05)/(he+.05)},level(K){const he=this.contrast(K);return he>=7?"AAA":he>=4.5?"AA":""},isDark(){const K=this.rgb().color;return(K[0]*2126+K[1]*7152+K[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const K=this.rgb();for(let he=0;he<3;he++)K.color[he]=255-K.color[he];return K},lighten(K){const he=this.hsl();return he.color[2]+=he.color[2]*K,he},darken(K){const he=this.hsl();return he.color[2]-=he.color[2]*K,he},saturate(K){const he=this.hsl();return he.color[1]+=he.color[1]*K,he},desaturate(K){const he=this.hsl();return he.color[1]-=he.color[1]*K,he},whiten(K){const he=this.hwb();return he.color[1]+=he.color[1]*K,he},blacken(K){const he=this.hwb();return he.color[2]+=he.color[2]*K,he},grayscale(){const K=this.rgb().color,he=K[0]*.3+K[1]*.59+K[2]*.11;return V.rgb(he,he,he)},fade(K){return this.alpha(this.valpha-this.valpha*K)},opaquer(K){return this.alpha(this.valpha+this.valpha*K)},rotate(K){const he=this.hsl();let ae=he.color[0];return ae=(ae+K)%360,ae=ae<0?360+ae:ae,he.color[0]=ae,he},mix(K,he){if(!K||!K.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof K);const ae=K.rgb(),fe=this.rgb(),_e=he===void 0?.5:he,be=2*_e-1,xe=ae.alpha()-fe.alpha(),Xe=((be*xe===-1?be:(be+xe)/(1+be*xe))+1)/2,We=1-Xe;return V.rgb(Xe*ae.red()+We*fe.red(),Xe*ae.green()+We*fe.green(),Xe*ae.blue()+We*fe.blue(),ae.alpha()*_e+fe.alpha()*(1-_e))}};for(const K of Object.keys(R)){if(w.includes(K))continue;const{channels:he}=R[K];V.prototype[K]=function(...ae){return this.model===K?new V(this):ae.length>0?new V(ae,K):new V([...T(R[this.model][K].raw(this.color)),this.valpha],K)},V[K]=function(...ae){let fe=ae[0];return typeof fe=="number"&&(fe=k(ae,he)),new V(fe,K)}}function O(K,he){return Number(K.toFixed(he))}function L(K){return function(he){return O(he,K)}}function S(K,he,ae){K=Array.isArray(K)?K:[K];for(const fe of K)(B[fe]||(B[fe]=[]))[he]=ae;return K=K[0],function(fe){let _e;return fe!==void 0?(ae&&(fe=ae(fe)),_e=this[K](),_e.color[he]=fe,_e):(_e=this[K]().color[he],ae&&(_e=ae(_e)),_e)}}function g(K){return function(he){return Math.max(0,Math.min(K,he))}}function T(K){return Array.isArray(K)?K:[K]}function k(K,he){for(let ae=0;ae1&&(S-=1)),[S*360,g*100,he*100]},w.rgb.hwb=function(B){const V=B[0],O=B[1];let L=B[2];const S=w.rgb.hsl(B)[0],g=1/255*Math.min(V,Math.min(O,L));return L=1-1/255*Math.max(V,Math.max(O,L)),[S,g*100,L*100]},w.rgb.cmyk=function(B){const V=B[0]/255,O=B[1]/255,L=B[2]/255,S=Math.min(1-V,1-O,1-L),g=(1-V-S)/(1-S)||0,T=(1-O-S)/(1-S)||0,k=(1-L-S)/(1-S)||0;return[g*100,T*100,k*100,S*100]};function b(B,V){return Q1(B[0]-V[0],2)+Q1(B[1]-V[1],2)+Q1(B[2]-V[2],2)}w.rgb.keyword=function(B){const V=R[B];if(V)return V;let O=1/0,L;for(const S of Object.keys(v)){const g=v[S],T=b(B,g);T.04045?Q1((V+.055)/1.055,2.4):V/12.92,O=O>.04045?Q1((O+.055)/1.055,2.4):O/12.92,L=L>.04045?Q1((L+.055)/1.055,2.4):L/12.92;const S=V*.4124+O*.3576+L*.1805,g=V*.2126+O*.7152+L*.0722,T=V*.0193+O*.1192+L*.9505;return[S*100,g*100,T*100]},w.rgb.lab=function(B){const V=w.rgb.xyz(B);let O=V[0],L=V[1],S=V[2];O/=95.047,L/=100,S/=108.883,O=O>.008856?Q1(O,1/3):7.787*O+16/116,L=L>.008856?Q1(L,1/3):7.787*L+16/116,S=S>.008856?Q1(S,1/3):7.787*S+16/116;const g=116*L-16,T=500*(O-L),k=200*(L-S);return[g,T,k]},w.hsl.rgb=function(B){const V=B[0]/360,O=B[1]/100,L=B[2]/100;let S,g,T;if(O===0)return T=L*255,[T,T,T];L<.5?S=L*(1+O):S=L+O-L*O;const k=2*L-S,K=[0,0,0];for(let he=0;he<3;he++)g=V+1/3*-(he-1),g<0&&g++,g>1&&g--,6*g<1?T=k+(S-k)*6*g:2*g<1?T=S:3*g<2?T=k+(S-k)*(2/3-g)*6:T=k,K[he]=T*255;return K},w.hsl.hsv=function(B){const V=B[0];let O=B[1]/100,L=B[2]/100,S=O;const g=Math.max(L,.01);L*=2,O*=L<=1?L:2-L,S*=g<=1?g:2-g;const T=(L+O)/2,k=L===0?2*S/(g+S):2*O/(L+O);return[V,k*100,T*100]},w.hsv.rgb=function(B){const V=B[0]/60,O=B[1]/100;let L=B[2]/100;const S=Math.floor(V)%6,g=V-Math.floor(V),T=255*L*(1-O),k=255*L*(1-O*g),K=255*L*(1-O*(1-g));switch(L*=255,S){case 0:return[L,K,T];case 1:return[k,L,T];case 2:return[T,L,K];case 3:return[T,k,L];case 4:return[K,T,L];case 5:return[L,T,k]}},w.hsv.hsl=function(B){const V=B[0],O=B[1]/100,L=B[2]/100,S=Math.max(L,.01);let g,T;T=(2-O)*L;const k=(2-O)*S;return g=O*S,g/=k<=1?k:2-k,g=g||0,T/=2,[V,g*100,T*100]},w.hwb.rgb=function(B){const V=B[0]/360;let O=B[1]/100,L=B[2]/100;const S=O+L;let g;S>1&&(O/=S,L/=S);const T=Math.floor(6*V),k=1-L;g=6*V-T,T&1&&(g=1-g);const K=O+g*(k-O);let he,ae,fe;switch(T){default:case 6:case 0:he=k,ae=K,fe=O;break;case 1:he=K,ae=k,fe=O;break;case 2:he=O,ae=k,fe=K;break;case 3:he=O,ae=K,fe=k;break;case 4:he=K,ae=O,fe=k;break;case 5:he=k,ae=O,fe=K;break}return[he*255,ae*255,fe*255]},w.cmyk.rgb=function(B){const V=B[0]/100,O=B[1]/100,L=B[2]/100,S=B[3]/100,g=1-Math.min(1,V*(1-S)+S),T=1-Math.min(1,O*(1-S)+S),k=1-Math.min(1,L*(1-S)+S);return[g*255,T*255,k*255]},w.xyz.rgb=function(B){const V=B[0]/100,O=B[1]/100,L=B[2]/100;let S,g,T;return S=V*3.2406+O*-1.5372+L*-.4986,g=V*-.9689+O*1.8758+L*.0415,T=V*.0557+O*-.204+L*1.057,S=S>.0031308?1.055*Q1(S,1/2.4)-.055:S*12.92,g=g>.0031308?1.055*Q1(g,1/2.4)-.055:g*12.92,T=T>.0031308?1.055*Q1(T,1/2.4)-.055:T*12.92,S=Math.min(Math.max(0,S),1),g=Math.min(Math.max(0,g),1),T=Math.min(Math.max(0,T),1),[S*255,g*255,T*255]},w.xyz.lab=function(B){let V=B[0],O=B[1],L=B[2];V/=95.047,O/=100,L/=108.883,V=V>.008856?Q1(V,1/3):7.787*V+16/116,O=O>.008856?Q1(O,1/3):7.787*O+16/116,L=L>.008856?Q1(L,1/3):7.787*L+16/116;const S=116*O-16,g=500*(V-O),T=200*(O-L);return[S,g,T]},w.lab.xyz=function(B){const V=B[0],O=B[1],L=B[2];let S,g,T;g=(V+16)/116,S=O/500+g,T=g-L/200;const k=Q1(g,3),K=Q1(S,3),he=Q1(T,3);return g=k>.008856?k:(g-16/116)/7.787,S=K>.008856?K:(S-16/116)/7.787,T=he>.008856?he:(T-16/116)/7.787,S*=95.047,g*=100,T*=108.883,[S,g,T]},w.lab.lch=function(B){const V=B[0],O=B[1],L=B[2];let S;S=Math.atan2(L,O)*360/2/Math.PI,S<0&&(S+=360);const T=Math.sqrt(O*O+L*L);return[V,T,S]},w.lch.lab=function(B){const V=B[0],O=B[1],S=B[2]/360*2*Math.PI,g=O*Math.cos(S),T=O*Math.sin(S);return[V,g,T]},w.rgb.ansi16=function(B,V=null){const[O,L,S]=B;let g=V===null?w.rgb.hsv(B)[2]:V;if(g=Math.round(g/50),g===0)return 30;let T=30+(Math.round(S/255)<<2|Math.round(L/255)<<1|Math.round(O/255));return g===2&&(T+=60),T},w.hsv.ansi16=function(B){return w.rgb.ansi16(w.hsv.rgb(B),B[2])},w.rgb.ansi256=function(B){const V=B[0],O=B[1],L=B[2];return V===O&&O===L?V<8?16:V>248?231:Math.round((V-8)/247*24)+232:16+36*Math.round(V/255*5)+6*Math.round(O/255*5)+Math.round(L/255*5)},w.ansi16.rgb=function(B){let V=B%10;if(V===0||V===7)return B>50&&(V+=3.5),V=V/10.5*255,[V,V,V];const O=(~~(B>50)+1)*.5,L=(V&1)*O*255,S=(V>>1&1)*O*255,g=(V>>2&1)*O*255;return[L,S,g]},w.ansi256.rgb=function(B){if(B>=232){const g=(B-232)*10+8;return[g,g,g]}B-=16;let V;const O=Math.floor(B/36)/5*255,L=Math.floor((V=B%36)/6)/5*255,S=V%6/5*255;return[O,L,S]},w.rgb.hex=function(B){const O=(((Math.round(B[0])&255)<<16)+((Math.round(B[1])&255)<<8)+(Math.round(B[2])&255)).toString(16).toUpperCase();return"000000".substring(O.length)+O},w.hex.rgb=function(B){const V=B.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!V)return[0,0,0];let O=V[0];V[0].length===3&&(O=O.split("").map(k=>k+k).join(""));const L=parseInt(O,16),S=L>>16&255,g=L>>8&255,T=L&255;return[S,g,T]},w.rgb.hcg=function(B){const V=B[0]/255,O=B[1]/255,L=B[2]/255,S=Math.max(Math.max(V,O),L),g=Math.min(Math.min(V,O),L),T=S-g;let k,K;return T<1?k=g/(1-T):k=0,T<=0?K=0:S===V?K=(O-L)/T%6:S===O?K=2+(L-V)/T:K=4+(V-O)/T,K/=6,K%=1,[K*360,T*100,k*100]},w.hsl.hcg=function(B){const V=B[1]/100,O=B[2]/100,L=O<.5?2*V*O:2*V*(1-O);let S=0;return L<1&&(S=(O-.5*L)/(1-L)),[B[0],L*100,S*100]},w.hsv.hcg=function(B){const V=B[1]/100,O=B[2]/100,L=V*O;let S=0;return L<1&&(S=(O-L)/(1-L)),[B[0],L*100,S*100]},w.hcg.rgb=function(B){const V=B[0]/360,O=B[1]/100,L=B[2]/100;if(O===0)return[L*255,L*255,L*255];const S=[0,0,0],g=V%1*6,T=g%1,k=1-T;let K=0;switch(Math.floor(g)){case 0:S[0]=1,S[1]=T,S[2]=0;break;case 1:S[0]=k,S[1]=1,S[2]=0;break;case 2:S[0]=0,S[1]=1,S[2]=T;break;case 3:S[0]=0,S[1]=k,S[2]=1;break;case 4:S[0]=T,S[1]=0,S[2]=1;break;default:S[0]=1,S[1]=0,S[2]=k}return K=(1-O)*L,[(O*S[0]+K)*255,(O*S[1]+K)*255,(O*S[2]+K)*255]},w.hcg.hsv=function(B){const V=B[1]/100,O=B[2]/100,L=V+O*(1-V);let S=0;return L>0&&(S=V/L),[B[0],S*100,L*100]},w.hcg.hsl=function(B){const V=B[1]/100,L=B[2]/100*(1-V)+.5*V;let S=0;return L>0&&L<.5?S=V/(2*L):L>=.5&&L<1&&(S=V/(2*(1-L))),[B[0],S*100,L*100]},w.hcg.hwb=function(B){const V=B[1]/100,O=B[2]/100,L=V+O*(1-V);return[B[0],(L-V)*100,(1-L)*100]},w.hwb.hcg=function(B){const V=B[1]/100,L=1-B[2]/100,S=L-V;let g=0;return S<1&&(g=(L-S)/(1-S)),[B[0],S*100,g*100]},w.apple.rgb=function(B){return[B[0]/65535*255,B[1]/65535*255,B[2]/65535*255]},w.rgb.apple=function(B){return[B[0]/255*65535,B[1]/255*65535,B[2]/255*65535]},w.gray.rgb=function(B){return[B[0]/100*255,B[0]/100*255,B[0]/100*255]},w.gray.hsl=function(B){return[0,0,B[0]]},w.gray.hsv=w.gray.hsl,w.gray.hwb=function(B){return[0,100,B[0]]},w.gray.cmyk=function(B){return[0,0,0,B[0]]},w.gray.lab=function(B){return[B[0],0,0]},w.gray.hex=function(B){const V=Math.round(B[0]/100*255)&255,L=((V<<16)+(V<<8)+V).toString(16).toUpperCase();return"000000".substring(L.length)+L},w.rgb.gray=function(B){return[(B[0]+B[1]+B[2])/3/255*100]}},80978:function(gt,Y,_){const v=_(12956),R=_(87774),w={},b=Object.keys(v);function B(O){const L=function(...S){const g=S[0];return g==null?g:(g.length>1&&(S=g),O(S))};return"conversion"in O&&(L.conversion=O.conversion),L}function V(O){const L=function(...S){const g=S[0];if(g==null)return g;g.length>1&&(S=g);const T=O(S);if(typeof T=="object")for(let k=T.length,K=0;K{w[O]={},Object.defineProperty(w[O],"channels",{value:v[O].channels}),Object.defineProperty(w[O],"labels",{value:v[O].labels});const L=R(O);Object.keys(L).forEach(g=>{const T=L[g];w[O][g]=V(T),w[O][g].raw=B(T)})}),gt.exports=w},87774:function(gt,Y,_){const v=_(12956);function R(){const V={},O=Object.keys(v);for(let L=O.length,S=0;SDe||$e.push({node:Oe,dist:Xt})}for(;$e.length&&!$e.peek().node.children;){var Ft=$e.pop(),ot=Ft.node,xt=_e(ot,dt,Me),ut=_e(ot,Se,ze);if(Ft.dist=dt.minX&&We[0]<=dt.maxX&&We[1]>=dt.minY&&We[1]<=dt.maxY}function g(We,dt,Me){for(var Se=Math.min(We[0],dt[0]),ze=Math.min(We[1],dt[1]),De=Math.max(We[0],dt[0]),ke=Math.max(We[1],dt[1]),$e=Me.search({minX:Se,minY:ze,maxX:De,maxY:ke}),Te=0;Te<$e.length;Te++)if(k($e[Te].p,$e[Te].next.p,We,dt))return!1;return!0}function T(We,dt,Me){return b(We[0],We[1],dt[0],dt[1],Me[0],Me[1])}function k(We,dt,Me,Se){return We!==Se&&dt!==Me&&T(We,dt,Me)>0!=T(We,dt,Se)>0&&T(Me,Se,We)>0!=T(Me,Se,dt)>0}function K(We){var dt=We.p,Me=We.next.p;return We.minX=Math.min(dt[0],Me[0]),We.minY=Math.min(dt[1],Me[1]),We.maxX=Math.max(dt[0],Me[0]),We.maxY=Math.max(dt[1],Me[1]),We}function he(We){for(var dt=We[0],Me=We[0],Se=We[0],ze=We[0],De=0;DeSe[0]&&(Se=ke),ke[1]ze[1]&&(ze=ke)}var $e=[dt,Me,Se,ze],Te=$e.slice();for(De=0;De1?(Se=Me[0],ze=Me[1]):$e>0&&(Se+=De*$e,ze+=ke*$e)}return De=We[0]-Se,ke=We[1]-ze,De*De+ke*ke}function be(We,dt,Me,Se,ze,De,ke,$e){var Te=Me-We,tt=Se-dt,Oe=ke-ze,Xt=$e-De,Ft=We-ze,ot=dt-De,xt=Te*Te+tt*tt,ut=Te*Oe+tt*Xt,$t=Oe*Oe+Xt*Xt,_t=Te*Ft+tt*ot,bn=Oe*Ft+Xt*ot,Wn=xt*$t-ut*ut,$r,wi,oo,Mo,Ti=Wn,Hr=Wn;Wn===0?(wi=0,Ti=1,Mo=bn,Hr=$t):(wi=ut*bn-$t*_t,Mo=xt*bn-ut*_t,wi<0?(wi=0,Mo=bn,Hr=$t):wi>Ti&&(wi=Ti,Mo=bn+ut,Hr=$t)),Mo<0?(Mo=0,-_t<0?wi=0:-_t>xt?wi=Ti:(wi=-_t,Ti=xt)):Mo>Hr&&(Mo=Hr,-_t+ut<0?wi=0:-_t+ut>xt?wi=Ti:(wi=-_t+ut,Ti=xt)),$r=wi===0?0:wi/Ti,oo=Mo===0?0:Mo/Hr;var Ho=(1-$r)*We+$r*Me,Ss=(1-$r)*dt+$r*Se,Pe=(1-oo)*ze+oo*ke,qo=(1-oo)*De+oo*$e,Ki=Pe-Ho,Do=qo-Ss;return Ki*Ki+Do*Do}function xe(We,dt){return We[0]===dt[0]?We[1]-dt[1]:We[0]-dt[0]}function Xe(We){We.sort(xe);for(var dt=[],Me=0;Me=2&&T(dt[dt.length-2],dt[dt.length-1],We[Me])<=0;)dt.pop();dt.push(We[Me])}for(var Se=[],ze=We.length-1;ze>=0;ze--){for(;Se.length>=2&&T(Se[Se.length-2],Se[Se.length-1],We[ze])<=0;)Se.pop();Se.push(We[ze])}return Se.pop(),dt.pop(),dt.concat(Se)}},81662:function(gt){(function(Y,_){gt.exports=_()})(this,function(){"use strict";function Y(ae,fe,_e,be,xe){(function Xe(We,dt,Me,Se,ze){for(;Se>Me;){if(Se-Me>600){var De=Se-Me+1,ke=dt-Me+1,$e=Math.log(De),Te=.5*Math.exp(2*$e/3),tt=.5*Math.sqrt($e*Te*(De-Te)/De)*(ke-De/2<0?-1:1),Oe=Math.max(Me,Math.floor(dt-ke*Te/De+tt)),Xt=Math.min(Se,Math.floor(dt+(De-ke)*Te/De+tt));Xe(We,dt,Oe,Xt,ze)}var Ft=We[dt],ot=Me,xt=Se;for(_(We,Me,dt),ze(We[Se],Ft)>0&&_(We,Me,Se);ot0;)xt--}ze(We[Me],Ft)===0?_(We,Me,xt):_(We,++xt,Se),xt<=dt&&(Me=xt+1),dt<=xt&&(Se=xt-1)}})(ae,fe,_e||0,be||ae.length-1,xe||v)}function _(ae,fe,_e){var be=ae[fe];ae[fe]=ae[_e],ae[_e]=be}function v(ae,fe){return aefe?1:0}var R=function(ae){ae===void 0&&(ae=9),this._maxEntries=Math.max(4,ae),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ae,fe,_e){if(!_e)return fe.indexOf(ae);for(var be=0;be=ae.minX&&fe.maxY>=ae.minY}function K(ae){return{children:ae,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function he(ae,fe,_e,be,xe){for(var Xe=[fe,_e];Xe.length;)if(!((_e=Xe.pop())-(fe=Xe.pop())<=be)){var We=fe+Math.ceil((_e-fe)/be/2)*be;Y(ae,We,fe,_e,xe),Xe.push(fe,We,We,_e)}}return R.prototype.all=function(){return this._all(this.data,[])},R.prototype.search=function(ae){var fe=this.data,_e=[];if(!k(ae,fe))return _e;for(var be=this.toBBox,xe=[];fe;){for(var Xe=0;Xe=0&&xe[fe].children.length>this._maxEntries;)this._split(xe,fe),fe--;this._adjustParentBBoxes(be,xe,fe)},R.prototype._split=function(ae,fe){var _e=ae[fe],be=_e.children.length,xe=this._minEntries;this._chooseSplitAxis(_e,xe,be);var Xe=this._chooseSplitIndex(_e,xe,be),We=K(_e.children.splice(Xe,_e.children.length-Xe));We.height=_e.height,We.leaf=_e.leaf,b(_e,this.toBBox),b(We,this.toBBox),fe?ae[fe-1].children.push(We):this._splitRoot(_e,We)},R.prototype._splitRoot=function(ae,fe){this.data=K([ae,fe]),this.data.height=ae.height+1,this.data.leaf=!1,b(this.data,this.toBBox)},R.prototype._chooseSplitIndex=function(ae,fe,_e){for(var be,xe,Xe,We,dt,Me,Se,ze=1/0,De=1/0,ke=fe;ke<=_e-fe;ke++){var $e=B(ae,0,ke,this.toBBox),Te=B(ae,ke,_e,this.toBBox),tt=(xe=$e,Xe=Te,We=void 0,dt=void 0,Me=void 0,Se=void 0,We=Math.max(xe.minX,Xe.minX),dt=Math.max(xe.minY,Xe.minY),Me=Math.min(xe.maxX,Xe.maxX),Se=Math.min(xe.maxY,Xe.maxY),Math.max(0,Me-We)*Math.max(0,Se-dt)),Oe=S($e)+S(Te);tt=fe;ze--){var De=ae.children[ze];V(We,ae.leaf?xe(De):De),dt+=g(We)}return dt},R.prototype._adjustParentBBoxes=function(ae,fe,_e){for(var be=_e;be>=0;be--)V(fe[be],ae)},R.prototype._condense=function(ae){for(var fe=ae.length-1,_e=void 0;fe>=0;fe--)ae[fe].children.length===0?fe>0?(_e=ae[fe-1].children).splice(_e.indexOf(ae[fe]),1):this.clear():b(ae[fe],this.toBBox)},R})},54098:function(gt,Y){var _=typeof self!="undefined"?self:this,v=function(){function w(){this.fetch=!1,this.DOMException=_.DOMException}return w.prototype=_,new w}();(function(w){var b=function(B){var V={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Te){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function O(Te){return Te&&DataView.prototype.isPrototypeOf(Te)}if(V.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(Te){return Te&&L.indexOf(Object.prototype.toString.call(Te))>-1};function g(Te){if(typeof Te!="string"&&(Te=String(Te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Te))throw new TypeError("Invalid character in header field name");return Te.toLowerCase()}function T(Te){return typeof Te!="string"&&(Te=String(Te)),Te}function k(Te){var tt={next:function(){var Oe=Te.shift();return{done:Oe===void 0,value:Oe}}};return V.iterable&&(tt[Symbol.iterator]=function(){return tt}),tt}function K(Te){this.map={},Te instanceof K?Te.forEach(function(tt,Oe){this.append(Oe,tt)},this):Array.isArray(Te)?Te.forEach(function(tt){this.append(tt[0],tt[1])},this):Te&&Object.getOwnPropertyNames(Te).forEach(function(tt){this.append(tt,Te[tt])},this)}K.prototype.append=function(Te,tt){Te=g(Te),tt=T(tt);var Oe=this.map[Te];this.map[Te]=Oe?Oe+", "+tt:tt},K.prototype.delete=function(Te){delete this.map[g(Te)]},K.prototype.get=function(Te){return Te=g(Te),this.has(Te)?this.map[Te]:null},K.prototype.has=function(Te){return this.map.hasOwnProperty(g(Te))},K.prototype.set=function(Te,tt){this.map[g(Te)]=T(tt)},K.prototype.forEach=function(Te,tt){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&Te.call(tt,this.map[Oe],Oe,this)},K.prototype.keys=function(){var Te=[];return this.forEach(function(tt,Oe){Te.push(Oe)}),k(Te)},K.prototype.values=function(){var Te=[];return this.forEach(function(tt){Te.push(tt)}),k(Te)},K.prototype.entries=function(){var Te=[];return this.forEach(function(tt,Oe){Te.push([Oe,tt])}),k(Te)},V.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function he(Te){if(Te.bodyUsed)return Promise.reject(new TypeError("Already read"));Te.bodyUsed=!0}function ae(Te){return new Promise(function(tt,Oe){Te.onload=function(){tt(Te.result)},Te.onerror=function(){Oe(Te.error)}})}function fe(Te){var tt=new FileReader,Oe=ae(tt);return tt.readAsArrayBuffer(Te),Oe}function _e(Te){var tt=new FileReader,Oe=ae(tt);return tt.readAsText(Te),Oe}function be(Te){for(var tt=new Uint8Array(Te),Oe=new Array(tt.length),Xt=0;Xt-1?tt:Te}function Me(Te,tt){tt=tt||{};var Oe=tt.body;if(Te instanceof Me){if(Te.bodyUsed)throw new TypeError("Already read");this.url=Te.url,this.credentials=Te.credentials,tt.headers||(this.headers=new K(Te.headers)),this.method=Te.method,this.mode=Te.mode,this.signal=Te.signal,!Oe&&Te._bodyInit!=null&&(Oe=Te._bodyInit,Te.bodyUsed=!0)}else this.url=String(Te);if(this.credentials=tt.credentials||this.credentials||"same-origin",(tt.headers||!this.headers)&&(this.headers=new K(tt.headers)),this.method=dt(tt.method||this.method||"GET"),this.mode=tt.mode||this.mode||null,this.signal=tt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Oe)}Me.prototype.clone=function(){return new Me(this,{body:this._bodyInit})};function Se(Te){var tt=new FormData;return Te.trim().split("&").forEach(function(Oe){if(Oe){var Xt=Oe.split("="),Ft=Xt.shift().replace(/\+/g," "),ot=Xt.join("=").replace(/\+/g," ");tt.append(decodeURIComponent(Ft),decodeURIComponent(ot))}}),tt}function ze(Te){var tt=new K,Oe=Te.replace(/\r?\n[\t ]+/g," ");return Oe.split(/\r?\n/).forEach(function(Xt){var Ft=Xt.split(":"),ot=Ft.shift().trim();if(ot){var xt=Ft.join(":").trim();tt.append(ot,xt)}}),tt}Xe.call(Me.prototype);function De(Te,tt){tt||(tt={}),this.type="default",this.status=tt.status===void 0?200:tt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in tt?tt.statusText:"OK",this.headers=new K(tt.headers),this.url=tt.url||"",this._initBody(Te)}Xe.call(De.prototype),De.prototype.clone=function(){return new De(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},De.error=function(){var Te=new De(null,{status:0,statusText:""});return Te.type="error",Te};var ke=[301,302,303,307,308];De.redirect=function(Te,tt){if(ke.indexOf(tt)===-1)throw new RangeError("Invalid status code");return new De(null,{status:tt,headers:{location:Te}})},B.DOMException=w.DOMException;try{new B.DOMException}catch(Te){B.DOMException=function(tt,Oe){this.message=tt,this.name=Oe;var Xt=Error(tt);this.stack=Xt.stack},B.DOMException.prototype=Object.create(Error.prototype),B.DOMException.prototype.constructor=B.DOMException}function $e(Te,tt){return new Promise(function(Oe,Xt){var Ft=new Me(Te,tt);if(Ft.signal&&Ft.signal.aborted)return Xt(new B.DOMException("Aborted","AbortError"));var ot=new XMLHttpRequest;function xt(){ot.abort()}ot.onload=function(){var ut={status:ot.status,statusText:ot.statusText,headers:ze(ot.getAllResponseHeaders()||"")};ut.url="responseURL"in ot?ot.responseURL:ut.headers.get("X-Request-URL");var $t="response"in ot?ot.response:ot.responseText;Oe(new De($t,ut))},ot.onerror=function(){Xt(new TypeError("Network request failed"))},ot.ontimeout=function(){Xt(new TypeError("Network request failed"))},ot.onabort=function(){Xt(new B.DOMException("Aborted","AbortError"))},ot.open(Ft.method,Ft.url,!0),Ft.credentials==="include"?ot.withCredentials=!0:Ft.credentials==="omit"&&(ot.withCredentials=!1),"responseType"in ot&&V.blob&&(ot.responseType="blob"),Ft.headers.forEach(function(ut,$t){ot.setRequestHeader($t,ut)}),Ft.signal&&(Ft.signal.addEventListener("abort",xt),ot.onreadystatechange=function(){ot.readyState===4&&Ft.signal.removeEventListener("abort",xt)}),ot.send(typeof Ft._bodyInit=="undefined"?null:Ft._bodyInit)})}return $e.polyfill=!0,w.fetch||(w.fetch=$e,w.Headers=K,w.Request=Me,w.Response=De),B.Headers=K,B.Request=Me,B.Response=De,B.fetch=$e,Object.defineProperty(B,"__esModule",{value:!0}),B}({})})(v),v.fetch.ponyfill=!0,delete v.fetch.polyfill;var R=v;Y=R.fetch,Y.default=R.fetch,Y.fetch=R.fetch,Y.Headers=R.Headers,Y.Request=R.Request,Y.Response=R.Response,gt.exports=Y},61272:function(gt,Y,_){"use strict";_.d(Y,{j2:function(){return v},b4:function(){return O},YF:function(){return R},We:function(){return L},TS:function(){return Xe},VR:function(){return dt},G9:function(){return fe},ly:function(){return _e},sd:function(){return ae}});function v(Me,Se){return MeSe?1:Me>=Se?0:NaN}function R(Me){return Me.length===1&&(Me=w(Me)),{left:function(Se,ze,De,ke){for(De==null&&(De=0),ke==null&&(ke=Se.length);De>>1;Me(Se[$e],ze)<0?De=$e+1:ke=$e}return De},right:function(Se,ze,De,ke){for(De==null&&(De=0),ke==null&&(ke=Se.length);De>>1;Me(Se[$e],ze)>0?ke=$e:De=$e+1}return De}}}function w(Me){return function(Se,ze){return v(Me(Se),ze)}}var b=R(v),B=b.right,V=b.left,O=B;function L(Me,Se){var ze=Me.length,De=-1,ke,$e,Te;if(Se==null){for(;++De=ke)for($e=Te=ke;++Deke&&($e=ke),Te=ke)for($e=Te=ke;++Deke&&($e=ke),Te0)return[Me];if((De=Se0)for(Me=Math.ceil(Me/tt),Se=Math.floor(Se/tt),Te=new Array($e=Math.ceil(Se-Me+1));++ke<$e;)Te[ke]=(Me+ke)*tt;else for(Me=Math.floor(Me*tt),Se=Math.ceil(Se*tt),Te=new Array($e=Math.ceil(Me-Se+1));++ke<$e;)Te[ke]=(Me-ke)/tt;return De&&Te.reverse(),Te}function fe(Me,Se,ze){var De=(Se-Me)/Math.max(0,ze),ke=Math.floor(Math.log(De)/Math.LN10),$e=De/Math.pow(10,ke);return ke>=0?($e>=k?10:$e>=K?5:$e>=he?2:1)*Math.pow(10,ke):-Math.pow(10,-ke)/($e>=k?10:$e>=K?5:$e>=he?2:1)}function _e(Me,Se,ze){var De=Math.abs(Se-Me)/Math.max(0,ze),ke=Math.pow(10,Math.floor(Math.log(De)/Math.LN10)),$e=De/ke;return $e>=k?ke*=10:$e>=K?ke*=5:$e>=he&&(ke*=2),Seot;)xt.pop(),--ut;var $t=new Array(ut+1),_t;for($e=0;$e<=ut;++$e)_t=$t[$e]=[],_t.x0=$e>0?xt[$e-1]:Ft,_t.x1=$e=0;)for(Te=Me[Se],ze=Te.length;--ze>=0;)$e[--ke]=Te[ze];return $e}function We(Me){return Me===null?NaN:+Me}function dt(Me,Se,ze){if(ze==null&&(ze=We),!!(De=Me.length)){if((Se=+Se)<=0||De<2)return+ze(Me[0],0,Me);if(Se>=1)return+ze(Me[De-1],De-1,Me);var De,ke=(De-1)*Se,$e=Math.floor(ke),Te=+ze(Me[$e],$e,Me),tt=+ze(Me[$e+1],$e+1,Me);return Te+(tt-Te)*(ke-$e)}}},27484:function(gt){(function(Y,_){gt.exports=_()})(this,function(){"use strict";var Y=1e3,_=6e4,v=36e5,R="millisecond",w="second",b="minute",B="hour",V="day",O="week",L="month",S="quarter",g="year",T="date",k="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,he=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ke){var $e=["th","st","nd","rd"],Te=ke%100;return"["+ke+($e[(Te-20)%10]||$e[Te]||$e[0])+"]"}},fe=function(ke,$e,Te){var tt=String(ke);return!tt||tt.length>=$e?ke:""+Array($e+1-tt.length).join(Te)+ke},_e={s:fe,z:function(ke){var $e=-ke.utcOffset(),Te=Math.abs($e),tt=Math.floor(Te/60),Oe=Te%60;return($e<=0?"+":"-")+fe(tt,2,"0")+":"+fe(Oe,2,"0")},m:function ke($e,Te){if($e.date()1)return ke(Ft[0])}else{var ot=$e.name;xe[ot]=$e,Oe=ot}return!tt&&Oe&&(be=Oe),Oe||!tt&&be},Me=function(ke,$e){if(We(ke))return ke.clone();var Te=typeof $e=="object"?$e:{};return Te.date=ke,Te.args=arguments,new ze(Te)},Se=_e;Se.l=dt,Se.i=We,Se.w=function(ke,$e){return Me(ke,{locale:$e.$L,utc:$e.$u,x:$e.$x,$offset:$e.$offset})};var ze=function(){function ke(Te){this.$L=dt(Te.locale,null,!0),this.parse(Te),this.$x=this.$x||Te.x||{},this[Xe]=!0}var $e=ke.prototype;return $e.parse=function(Te){this.$d=function(tt){var Oe=tt.date,Xt=tt.utc;if(Oe===null)return new Date(NaN);if(Se.u(Oe))return new Date;if(Oe instanceof Date)return new Date(Oe);if(typeof Oe=="string"&&!/Z$/i.test(Oe)){var Ft=Oe.match(K);if(Ft){var ot=Ft[2]-1||0,xt=(Ft[7]||"0").substring(0,3);return Xt?new Date(Date.UTC(Ft[1],ot,Ft[3]||1,Ft[4]||0,Ft[5]||0,Ft[6]||0,xt)):new Date(Ft[1],ot,Ft[3]||1,Ft[4]||0,Ft[5]||0,Ft[6]||0,xt)}}return new Date(Oe)}(Te),this.init()},$e.init=function(){var Te=this.$d;this.$y=Te.getFullYear(),this.$M=Te.getMonth(),this.$D=Te.getDate(),this.$W=Te.getDay(),this.$H=Te.getHours(),this.$m=Te.getMinutes(),this.$s=Te.getSeconds(),this.$ms=Te.getMilliseconds()},$e.$utils=function(){return Se},$e.isValid=function(){return this.$d.toString()!==k},$e.isSame=function(Te,tt){var Oe=Me(Te);return this.startOf(tt)<=Oe&&Oe<=this.endOf(tt)},$e.isAfter=function(Te,tt){return Me(Te)0&&typeof k[0]!="number")}function T(k,K,he){var ae,fe;if(typeof k!=typeof K||S(k)||S(K)||k.prototype!==K.prototype||R(k)!==R(K))return!1;var _e=b(k),be=b(K);if(_e!==be)return!1;if(_e||be)return k.source===K.source&&B(k)===B(K);if(V(k)&&V(K))return O.call(k)===O.call(K);var xe=g(k),Xe=g(K);if(xe!==Xe)return!1;if(xe||Xe){if(k.length!==K.length)return!1;for(ae=0;ae=0;ae--)if(We[ae]!=dt[ae])return!1;for(ae=We.length-1;ae>=0;ae--)if(fe=We[ae],!L(k[fe],K[fe],he))return!1;return!0}gt.exports=L},12296:function(gt,Y,_){"use strict";var v=_(31044)(),R=_(40210),w=v&&R("%Object.defineProperty%",!0);if(w)try{w({},"a",{value:1})}catch(O){w=!1}var b=R("%SyntaxError%"),B=R("%TypeError%"),V=_(25275);gt.exports=function(L,S,g){if(!L||typeof L!="object"&&typeof L!="function")throw new B("`obj` must be an object or a function`");if(typeof S!="string"&&typeof S!="symbol")throw new B("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new B("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new B("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new B("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new B("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,k=arguments.length>4?arguments[4]:null,K=arguments.length>5?arguments[5]:null,he=arguments.length>6?arguments[6]:!1,ae=!!V&&V(L,S);if(w)w(L,S,{configurable:K===null&&ae?ae.configurable:!K,enumerable:T===null&&ae?ae.enumerable:!T,value:g,writable:k===null&&ae?ae.writable:!k});else if(he||!T&&!k&&!K)L[S]=g;else throw new b("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4289:function(gt,Y,_){"use strict";var v=_(82215),R=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",w=Object.prototype.toString,b=Array.prototype.concat,B=_(12296),V=function(g){return typeof g=="function"&&w.call(g)==="[object Function]"},O=_(31044)(),L=function(g,T,k,K){if(T in g){if(K===!0){if(g[T]===k)return}else if(!V(K)||!K())return}O?B(g,T,k,!0):B(g,T,k)},S=function(g,T){var k=arguments.length>2?arguments[2]:{},K=v(T);R&&(K=b.call(K,Object.getOwnPropertySymbols(T)));for(var he=0;he=this.minPts&&(v=this._mergeArrays(v,b))}this._assigned[w]!==1&&this._addToCluster(w,_)}},Y.prototype._addToCluster=function(_,v){this.clusters[v].push(_),this._assigned[_]=1},Y.prototype._regionQuery=function(_){for(var v=[],R=0;R0){for(var L=0;L=0);return v},Y.prototype.assign=function(){for(var _=!1,v=this.dataset.length,R,w=0;w=this.minPts)return B}},R.prototype._regionQuery=function(w,b){b=b||this.epsilon;for(var B=[],V=0,O=this.dataset.length;Vb&&(R=w):v80*Ft){_t=Wn=Oe[0],bn=$r=Oe[1];for(var Ti=Ft;TiWn&&(Wn=wi),oo>$r&&($r=oo);Mo=Math.max(Wn-_t,$r-bn),Mo=Mo!==0?32767/Mo:0}return R(ut,$t,Ft,_t,bn,Mo,0),$t}function _(Oe,Xt,Ft,ot,xt){var ut,$t;if(xt===tt(Oe,Xt,Ft,ot)>0)for(ut=Xt;ut=Xt;ut-=ot)$t=ke(ut,Oe[ut],Oe[ut+1],$t);return $t&&xe($t,$t.next)&&($e($t),$t=$t.next),$t}function v(Oe,Xt){if(!Oe)return Oe;Xt||(Xt=Oe);var Ft=Oe,ot;do if(ot=!1,!Ft.steiner&&(xe(Ft,Ft.next)||be(Ft.prev,Ft,Ft.next)===0)){if($e(Ft),Ft=Xt=Ft.prev,Ft===Ft.next)break;ot=!0}else Ft=Ft.next;while(ot||Ft!==Xt);return Xt}function R(Oe,Xt,Ft,ot,xt,ut,$t){if(Oe){!$t&&ut&&k(Oe,ot,xt,ut);for(var _t=Oe,bn,Wn;Oe.prev!==Oe.next;){if(bn=Oe.prev,Wn=Oe.next,ut?b(Oe,ot,xt,ut):w(Oe)){Xt.push(bn.i/Ft|0),Xt.push(Oe.i/Ft|0),Xt.push(Wn.i/Ft|0),$e(Oe),Oe=Wn.next,_t=Wn.next;continue}if(Oe=Wn,Oe===_t){$t?$t===1?(Oe=B(v(Oe),Xt,Ft),R(Oe,Xt,Ft,ot,xt,ut,2)):$t===2&&V(Oe,Xt,Ft,ot,xt,ut):R(v(Oe),Xt,Ft,ot,xt,ut,1);break}}}}function w(Oe){var Xt=Oe.prev,Ft=Oe,ot=Oe.next;if(be(Xt,Ft,ot)>=0)return!1;for(var xt=Xt.x,ut=Ft.x,$t=ot.x,_t=Xt.y,bn=Ft.y,Wn=ot.y,$r=xtut?xt>$t?xt:$t:ut>$t?ut:$t,Mo=_t>bn?_t>Wn?_t:Wn:bn>Wn?bn:Wn,Ti=ot.next;Ti!==Xt;){if(Ti.x>=$r&&Ti.x<=oo&&Ti.y>=wi&&Ti.y<=Mo&&fe(xt,_t,ut,bn,$t,Wn,Ti.x,Ti.y)&&be(Ti.prev,Ti,Ti.next)>=0)return!1;Ti=Ti.next}return!0}function b(Oe,Xt,Ft,ot){var xt=Oe.prev,ut=Oe,$t=Oe.next;if(be(xt,ut,$t)>=0)return!1;for(var _t=xt.x,bn=ut.x,Wn=$t.x,$r=xt.y,wi=ut.y,oo=$t.y,Mo=_tbn?_t>Wn?_t:Wn:bn>Wn?bn:Wn,Ho=$r>wi?$r>oo?$r:oo:wi>oo?wi:oo,Ss=he(Mo,Ti,Xt,Ft,ot),Pe=he(Hr,Ho,Xt,Ft,ot),qo=Oe.prevZ,Ki=Oe.nextZ;qo&&qo.z>=Ss&&Ki&&Ki.z<=Pe;){if(qo.x>=Mo&&qo.x<=Hr&&qo.y>=Ti&&qo.y<=Ho&&qo!==xt&&qo!==$t&&fe(_t,$r,bn,wi,Wn,oo,qo.x,qo.y)&&be(qo.prev,qo,qo.next)>=0||(qo=qo.prevZ,Ki.x>=Mo&&Ki.x<=Hr&&Ki.y>=Ti&&Ki.y<=Ho&&Ki!==xt&&Ki!==$t&&fe(_t,$r,bn,wi,Wn,oo,Ki.x,Ki.y)&&be(Ki.prev,Ki,Ki.next)>=0))return!1;Ki=Ki.nextZ}for(;qo&&qo.z>=Ss;){if(qo.x>=Mo&&qo.x<=Hr&&qo.y>=Ti&&qo.y<=Ho&&qo!==xt&&qo!==$t&&fe(_t,$r,bn,wi,Wn,oo,qo.x,qo.y)&&be(qo.prev,qo,qo.next)>=0)return!1;qo=qo.prevZ}for(;Ki&&Ki.z<=Pe;){if(Ki.x>=Mo&&Ki.x<=Hr&&Ki.y>=Ti&&Ki.y<=Ho&&Ki!==xt&&Ki!==$t&&fe(_t,$r,bn,wi,Wn,oo,Ki.x,Ki.y)&&be(Ki.prev,Ki,Ki.next)>=0)return!1;Ki=Ki.nextZ}return!0}function B(Oe,Xt,Ft){var ot=Oe;do{var xt=ot.prev,ut=ot.next.next;!xe(xt,ut)&&Xe(xt,ot,ot.next,ut)&&Se(xt,ut)&&Se(ut,xt)&&(Xt.push(xt.i/Ft|0),Xt.push(ot.i/Ft|0),Xt.push(ut.i/Ft|0),$e(ot),$e(ot.next),ot=Oe=ut),ot=ot.next}while(ot!==Oe);return v(ot)}function V(Oe,Xt,Ft,ot,xt,ut){var $t=Oe;do{for(var _t=$t.next.next;_t!==$t.prev;){if($t.i!==_t.i&&_e($t,_t)){var bn=De($t,_t);$t=v($t,$t.next),bn=v(bn,bn.next),R($t,Xt,Ft,ot,xt,ut,0),R(bn,Xt,Ft,ot,xt,ut,0);return}_t=_t.next}$t=$t.next}while($t!==Oe)}function O(Oe,Xt,Ft,ot){var xt=[],ut,$t,_t,bn,Wn;for(ut=0,$t=Xt.length;ut<$t;ut++)_t=Xt[ut]*ot,bn=ut<$t-1?Xt[ut+1]*ot:Oe.length,Wn=_(Oe,_t,bn,ot,!1),Wn===Wn.next&&(Wn.steiner=!0),xt.push(ae(Wn));for(xt.sort(L),ut=0;ut=Ft.next.y&&Ft.next.y!==Ft.y){var _t=Ft.x+(xt-Ft.y)*(Ft.next.x-Ft.x)/(Ft.next.y-Ft.y);if(_t<=ot&&_t>ut&&(ut=_t,$t=Ft.x=Ft.x&&Ft.x>=Wn&&ot!==Ft.x&&fe(xt<$r?ot:ut,xt,Wn,$r,xt<$r?ut:ot,xt,Ft.x,Ft.y)&&(oo=Math.abs(xt-Ft.y)/(ot-Ft.x),Se(Ft,Oe)&&(oo$t.x||Ft.x===$t.x&&T($t,Ft)))&&($t=Ft,wi=oo)),Ft=Ft.next;while(Ft!==bn);return $t}function T(Oe,Xt){return be(Oe.prev,Oe,Xt.prev)<0&&be(Xt.next,Oe,Oe.next)<0}function k(Oe,Xt,Ft,ot){var xt=Oe;do xt.z===0&&(xt.z=he(xt.x,xt.y,Xt,Ft,ot)),xt.prevZ=xt.prev,xt.nextZ=xt.next,xt=xt.next;while(xt!==Oe);xt.prevZ.nextZ=null,xt.prevZ=null,K(xt)}function K(Oe){var Xt,Ft,ot,xt,ut,$t,_t,bn,Wn=1;do{for(Ft=Oe,Oe=null,ut=null,$t=0;Ft;){for($t++,ot=Ft,_t=0,Xt=0;Xt0||bn>0&&ot;)_t!==0&&(bn===0||!ot||Ft.z<=ot.z)?(xt=Ft,Ft=Ft.nextZ,_t--):(xt=ot,ot=ot.nextZ,bn--),ut?ut.nextZ=xt:Oe=xt,xt.prevZ=ut,ut=xt;Ft=ot}ut.nextZ=null,Wn*=2}while($t>1);return Oe}function he(Oe,Xt,Ft,ot,xt){return Oe=(Oe-Ft)*xt|0,Xt=(Xt-ot)*xt|0,Oe=(Oe|Oe<<8)&16711935,Oe=(Oe|Oe<<4)&252645135,Oe=(Oe|Oe<<2)&858993459,Oe=(Oe|Oe<<1)&1431655765,Xt=(Xt|Xt<<8)&16711935,Xt=(Xt|Xt<<4)&252645135,Xt=(Xt|Xt<<2)&858993459,Xt=(Xt|Xt<<1)&1431655765,Oe|Xt<<1}function ae(Oe){var Xt=Oe,Ft=Oe;do(Xt.x=(Oe-$t)*(ut-_t)&&(Oe-$t)*(ot-_t)>=(Ft-$t)*(Xt-_t)&&(Ft-$t)*(ut-_t)>=(xt-$t)*(ot-_t)}function _e(Oe,Xt){return Oe.next.i!==Xt.i&&Oe.prev.i!==Xt.i&&!Me(Oe,Xt)&&(Se(Oe,Xt)&&Se(Xt,Oe)&&ze(Oe,Xt)&&(be(Oe.prev,Oe,Xt.prev)||be(Oe,Xt.prev,Xt))||xe(Oe,Xt)&&be(Oe.prev,Oe,Oe.next)>0&&be(Xt.prev,Xt,Xt.next)>0)}function be(Oe,Xt,Ft){return(Xt.y-Oe.y)*(Ft.x-Xt.x)-(Xt.x-Oe.x)*(Ft.y-Xt.y)}function xe(Oe,Xt){return Oe.x===Xt.x&&Oe.y===Xt.y}function Xe(Oe,Xt,Ft,ot){var xt=dt(be(Oe,Xt,Ft)),ut=dt(be(Oe,Xt,ot)),$t=dt(be(Ft,ot,Oe)),_t=dt(be(Ft,ot,Xt));return!!(xt!==ut&&$t!==_t||xt===0&&We(Oe,Ft,Xt)||ut===0&&We(Oe,ot,Xt)||$t===0&&We(Ft,Oe,ot)||_t===0&&We(Ft,Xt,ot))}function We(Oe,Xt,Ft){return Xt.x<=Math.max(Oe.x,Ft.x)&&Xt.x>=Math.min(Oe.x,Ft.x)&&Xt.y<=Math.max(Oe.y,Ft.y)&&Xt.y>=Math.min(Oe.y,Ft.y)}function dt(Oe){return Oe>0?1:Oe<0?-1:0}function Me(Oe,Xt){var Ft=Oe;do{if(Ft.i!==Oe.i&&Ft.next.i!==Oe.i&&Ft.i!==Xt.i&&Ft.next.i!==Xt.i&&Xe(Ft,Ft.next,Oe,Xt))return!0;Ft=Ft.next}while(Ft!==Oe);return!1}function Se(Oe,Xt){return be(Oe.prev,Oe,Oe.next)<0?be(Oe,Xt,Oe.next)>=0&&be(Oe,Oe.prev,Xt)>=0:be(Oe,Xt,Oe.prev)<0||be(Oe,Oe.next,Xt)<0}function ze(Oe,Xt){var Ft=Oe,ot=!1,xt=(Oe.x+Xt.x)/2,ut=(Oe.y+Xt.y)/2;do Ft.y>ut!=Ft.next.y>ut&&Ft.next.y!==Ft.y&&xt<(Ft.next.x-Ft.x)*(ut-Ft.y)/(Ft.next.y-Ft.y)+Ft.x&&(ot=!ot),Ft=Ft.next;while(Ft!==Oe);return ot}function De(Oe,Xt){var Ft=new Te(Oe.i,Oe.x,Oe.y),ot=new Te(Xt.i,Xt.x,Xt.y),xt=Oe.next,ut=Xt.prev;return Oe.next=Xt,Xt.prev=Oe,Ft.next=xt,xt.prev=Ft,ot.next=Ft,Ft.prev=ot,ut.next=ot,ot.prev=ut,ot}function ke(Oe,Xt,Ft,ot){var xt=new Te(Oe,Xt,Ft);return ot?(xt.next=ot.next,xt.prev=ot,ot.next.prev=xt,ot.next=xt):(xt.prev=xt,xt.next=xt),xt}function $e(Oe){Oe.next.prev=Oe.prev,Oe.prev.next=Oe.next,Oe.prevZ&&(Oe.prevZ.nextZ=Oe.nextZ),Oe.nextZ&&(Oe.nextZ.prevZ=Oe.prevZ)}function Te(Oe,Xt,Ft){this.i=Oe,this.x=Xt,this.y=Ft,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Y.deviation=function(Oe,Xt,Ft,ot){var xt=Xt&&Xt.length,ut=xt?Xt[0]*Ft:Oe.length,$t=Math.abs(tt(Oe,0,ut,Ft));if(xt)for(var _t=0,bn=Xt.length;_t0&&(ot+=Oe[xt-1].length,Ft.holes.push(ot))}return Ft}},67709:function(gt){function Y(v){var R=v.target||v.srcElement;R.__resizeRAF__&&cancelAnimationFrame(R.__resizeRAF__),R.__resizeRAF__=requestAnimationFrame(function(){var w=R.__resizeTrigger__,b=w&&w.__resizeListeners__;b&&b.forEach(function(B){B.call(w,v)})})}var _=function(R,w){var b=this,B=b.document,V,O=B.attachEvent;typeof navigator!="undefined"&&(V=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function L(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",Y)}if(!R.__resizeListeners__)if(R.__resizeListeners__=[],O)R.__resizeTrigger__=R,R.attachEvent("onresize",Y);else{getComputedStyle(R).position==="static"&&(R.style.position="relative");var S=R.__resizeTrigger__=B.createElement("object");S.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),S.setAttribute("class","resize-sensor"),S.setAttribute("tabindex","-1"),S.setAttribute("title",""),S.__resizeElement__=R,S.onload=L,S.type="text/html",V&&R.appendChild(S),S.data="about:blank",V||R.appendChild(S)}R.__resizeListeners__.push(w)};gt.exports=typeof window=="undefined"?_:_.bind(window),gt.exports.unbind=function(v,R){var w=document.attachEvent,b=v.__resizeListeners__||[];if(R){var B=b.indexOf(R);B!==-1&&b.splice(B,1)}else b=v.__resizeListeners__=[];if(!b.length){if(w)v.detachEvent("onresize",Y);else if(v.__resizeTrigger__){var V=v.__resizeTrigger__.contentDocument,O=V&&V.defaultView;O&&(O.removeEventListener("resize",Y),delete O.__resizeTrigger__),v.__resizeTrigger__=!v.removeChild(v.__resizeTrigger__)}delete v.__resizeListeners__}}},26729:function(gt){"use strict";var Y=Object.prototype.hasOwnProperty,_="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(_=!1));function R(V,O,L){this.fn=V,this.context=O,this.once=L||!1}function w(V,O,L,S,g){if(typeof L!="function")throw new TypeError("The listener must be a function");var T=new R(L,S||V,g),k=_?_+O:O;return V._events[k]?V._events[k].fn?V._events[k]=[V._events[k],T]:V._events[k].push(T):(V._events[k]=T,V._eventsCount++),V}function b(V,O){--V._eventsCount===0?V._events=new v:delete V._events[O]}function B(){this._events=new v,this._eventsCount=0}B.prototype.eventNames=function(){var O=[],L,S;if(this._eventsCount===0)return O;for(S in L=this._events)Y.call(L,S)&&O.push(_?S.slice(1):S);return Object.getOwnPropertySymbols?O.concat(Object.getOwnPropertySymbols(L)):O},B.prototype.listeners=function(O){var L=_?_+O:O,S=this._events[L];if(!S)return[];if(S.fn)return[S.fn];for(var g=0,T=S.length,k=new Array(T);g=72.004&&Ki<=137.8347&&Do>=.8293&&Do<=55.8271}function S(Ki,Do){let ai=-100+2*Ki+3*Do+.2*Do*Do+.1*Ki*Do+.2*w(b(Ki));return ai+=(20*v(6*Ki*B)+20*v(2*Ki*B))*2/3,ai+=(20*v(Do*B)+40*v(Do/3*B))*2/3,ai+=(160*v(Do/12*B)+320*v(Do*B/30))*2/3,ai}function g(Ki,Do){let ai=300+Ki+2*Do+.1*Ki*Ki+.1*Ki*Do+.1*w(b(Ki));return ai+=(20*v(6*Ki*B)+20*v(2*Ki*B))*2/3,ai+=(20*v(Ki*B)+40*v(Ki/3*B))*2/3,ai+=(150*v(Ki/12*B)+300*v(Ki/30*B))*2/3,ai}function T(Ki,Do){let ai=g(Ki-105,Do-35),$o=S(Ki-105,Do-35);const Mn=Do/180*B;let nt=v(Mn);nt=1-O*nt*nt;const Dt=w(nt);return ai=ai*180/(V/Dt*R(Mn)*B),$o=$o*180/(V*(1-O)/(nt*Dt)*B),[ai,$o]}function k(Ki){const[Do,ai]=Ki;if(!L(Do,ai))return[Do,ai];const $o=T(Do,ai);return[Do+$o[0],ai+$o[1]]}function K(Ki){const[Do,ai]=Ki;if(!L(Do,ai))return[Do,ai];let[$o,Mn]=[Do,ai],nt=k([$o,Mn]),Dt=nt[0]-Do,Kt=nt[1]-ai;for(;b(Dt)>1e-6||b(Kt)>1e-6;)$o-=Dt,Mn-=Kt,nt=k([$o,Mn]),Dt=nt[0]-Do,Kt=nt[1]-ai;return[$o,Mn]}const{sin:he,cos:ae,atan2:fe,sqrt:_e,PI:be}=Math,xe=be*3e3/180;function Xe(Ki){const[Do,ai]=Ki,$o=Do-.0065,Mn=ai-.006,nt=_e($o*$o+Mn*Mn)-2e-5*he(Mn*xe),Dt=fe(Mn,$o)-3e-6*ae($o*xe),Kt=nt*ae(Dt),mn=nt*he(Dt);return[Kt,mn]}function We(Ki){const[Do,ai]=Ki,$o=Do,Mn=ai,nt=_e($o*$o+Mn*Mn)+2e-5*he(Mn*xe),Dt=fe(Mn,$o)+3e-6*ae($o*xe),Kt=nt*ae(Dt)+.0065,mn=nt*he(Dt)+.006;return[Kt,mn]}const dt=180/Math.PI,Me=Math.PI/180,Se=6378137,ze=20037508342789244e-9;function De(Ki){return[Ki[0]*dt/Se,(Math.PI*.5-2*Math.atan(Math.exp(-Ki[1]/Se)))*dt]}function ke(Ki){const Do=Math.abs(Ki[0])<=180?Ki[0]:Ki[0]-(Ki[0]<0?-1:1)*360,ai=[Se*Do*Me,Se*Math.log(Math.tan(Math.PI*.25+.5*Ki[1]*Me))];return ai[0]>ze&&(ai[0]=ze),ai[0]<-ze&&(ai[0]=-ze),ai[1]>ze&&(ai[1]=ze),ai[1]<-ze&&(ai[1]=-ze),ai}const{abs:$e}=Math,Te=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],tt=[75,60,45,30,15,0],Oe=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Xt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function Ft(Ki,Do,ai){const $o=$e(Do)/ai[9];let Mn=ai[0]+ai[1]*$e(Ki),nt=ai[2]+ai[3]*$o+ai[4]*Math.pow($o,2)+ai[5]*Math.pow($o,3)+ai[6]*Math.pow($o,4)+ai[7]*Math.pow($o,5)+ai[8]*Math.pow($o,6);return Mn*=Ki<0?-1:1,nt*=Do<0?-1:1,[Mn,nt]}function ot(Ki){const[Do,ai]=Ki;let $o=[];for(let Mn=0;Mntt[Mn]){$o=Xt[Mn];break}return Ft(Do,ai,$o)}function xt(Ki){const[Do,ai]=Ki;let $o=[];for(let Mn=0;Mn=Te[Mn]){$o=Oe[Mn];break}return Ft(Do,ai,$o)}function ut(Ki,Do){if(!Ki)throw new Error(Do)}function $t(Ki){return!!Ki&&Object.prototype.toString.call(Ki)==="[object Array]"}function _t(Ki){return!isNaN(Number(Ki))&&Ki!==null&&!$t(Ki)}function bn(...Ki){const Do=Ki.length-1;return function(...ai){let $o=Do,Mn=Ki[Do].apply(null,ai);for(;$o--;)Mn=Ki[$o].call(null,Mn);return Mn}}function Wn(Ki,Do,ai=!1){if(Ki===null)return;let $o,Mn,nt,Dt,Kt,mn,kn=0,an=0,tn,kt;const{type:en}=Ki,Vn=en==="FeatureCollection",on=en==="Feature",Dr=Vn?Ki.features.length:1;for(let oi=0;oi=2,`Invalid input coordinate: ${Ki}`),ut(_t(Ki[0])&&_t(Ki[1]),`Invalid input coordinate: ${Ki}`),Ki=Ki.map(Number),Dt=!0);const Kt=Mn;return Dt?Kt(Ki):(Wn(Ki,mn=>{[mn[0],mn[1]]=Kt(mn)}),Ki)}const qo=Object.assign(Object.assign({},$r),{CRSTypes:$r,transform:Pe})},29657:function(gt,Y,_){var v=_(10251),R=function(V){this.precision=V&&V.precision?V.precision:17,this.direction=V&&V.direction?V.direction:!1,this.pseudoNode=V&&V.pseudoNode?V.pseudoNode:!1,this.objectComparator=V&&V.objectComparator?V.objectComparator:B};R.prototype.compare=function(V,O){if(V.type!==O.type||!b(V,O))return!1;switch(V.type){case"Point":return this.compareCoord(V.coordinates,O.coordinates);case"LineString":return this.compareLine(V.coordinates,O.coordinates,0,!1);case"Polygon":return this.comparePolygon(V,O);case"Feature":return this.compareFeature(V,O);default:if(V.type.indexOf("Multi")===0){var L=this,S=w(V),g=w(O);return S.every(function(T){return this.some(function(k){return L.compare(T,k)})},g)}}return!1};function w(V){return V.coordinates.map(function(O){return{type:V.type.replace("Multi",""),coordinates:O}})}function b(V,O){return V.hasOwnProperty("coordinates")?V.coordinates.length===O.coordinates.length:V.length===O.length}R.prototype.compareCoord=function(V,O){if(V.length!==O.length)return!1;for(var L=0;L=0&&(L=[].concat(V.slice(S,V.length),V.slice(1,S+1))),L},R.prototype.comparePath=function(V,O){var L=this;return V.every(function(S,g){return L.compareCoord(S,this[g])},O)},R.prototype.comparePolygon=function(V,O){if(this.compareLine(V.coordinates[0],O.coordinates[0],1,!0)){var L=V.coordinates.slice(1,V.coordinates.length),S=O.coordinates.slice(1,O.coordinates.length),g=this;return L.every(function(T){return this.some(function(k){return g.compareLine(T,k,1,!0)})},S)}else return!1},R.prototype.compareFeature=function(V,O){return V.id!==O.id||!this.objectComparator(V.properties,O.properties)||!this.compareBBox(V,O)?!1:this.compare(V.geometry,O.geometry)},R.prototype.compareBBox=function(V,O){return!!(!V.bbox&&!O.bbox||V.bbox&&O.bbox&&this.compareCoord(V.bbox,O.bbox))},R.prototype.removePseudo=function(V){return V};function B(V,O){return v(V,O,{strict:!0})}gt.exports=R},51787:function(gt,Y,_){var v=_(24056),R=_(84102),w=_(31540),b=_(9705).Z,B=w.featureEach,V=w.coordEach,O=R.polygon,L=R.featureCollection;function S(g){var T=new v(g);return T.insert=function(k){if(k.type!=="Feature")throw new Error("invalid feature");return k.bbox=k.bbox?k.bbox:b(k),v.prototype.insert.call(this,k)},T.load=function(k){var K=[];return Array.isArray(k)?k.forEach(function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:b(he),K.push(he)}):B(k,function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:b(he),K.push(he)}),v.prototype.load.call(this,K)},T.remove=function(k,K){if(k.type!=="Feature")throw new Error("invalid feature");return k.bbox=k.bbox?k.bbox:b(k),v.prototype.remove.call(this,k,K)},T.clear=function(){return v.prototype.clear.call(this)},T.search=function(k){var K=v.prototype.search.call(this,this.toBBox(k));return L(K)},T.collides=function(k){return v.prototype.collides.call(this,this.toBBox(k))},T.all=function(){var k=v.prototype.all.call(this);return L(k)},T.toJSON=function(){return v.prototype.toJSON.call(this)},T.fromJSON=function(k){return v.prototype.fromJSON.call(this,k)},T.toBBox=function(k){var K;if(k.bbox)K=k.bbox;else if(Array.isArray(k)&&k.length===4)K=k;else if(Array.isArray(k)&&k.length===6)K=[k[0],k[1],k[3],k[4]];else if(k.type==="Feature")K=b(k);else if(k.type==="FeatureCollection")K=b(k);else throw new Error("invalid geojson");return{minX:K[0],minY:K[1],maxX:K[2],maxY:K[3]}},T}gt.exports=S,gt.exports.default=S},24056:function(gt){(function(Y,_){gt.exports=_()})(this,function(){"use strict";function Y(ae,fe,_e,be,xe){(function Xe(We,dt,Me,Se,ze){for(;Se>Me;){if(Se-Me>600){var De=Se-Me+1,ke=dt-Me+1,$e=Math.log(De),Te=.5*Math.exp(2*$e/3),tt=.5*Math.sqrt($e*Te*(De-Te)/De)*(ke-De/2<0?-1:1),Oe=Math.max(Me,Math.floor(dt-ke*Te/De+tt)),Xt=Math.min(Se,Math.floor(dt+(De-ke)*Te/De+tt));Xe(We,dt,Oe,Xt,ze)}var Ft=We[dt],ot=Me,xt=Se;for(_(We,Me,dt),ze(We[Se],Ft)>0&&_(We,Me,Se);ot0;)xt--}ze(We[Me],Ft)===0?_(We,Me,xt):_(We,++xt,Se),xt<=dt&&(Me=xt+1),dt<=xt&&(Se=xt-1)}})(ae,fe,_e||0,be||ae.length-1,xe||v)}function _(ae,fe,_e){var be=ae[fe];ae[fe]=ae[_e],ae[_e]=be}function v(ae,fe){return aefe?1:0}var R=function(ae){ae===void 0&&(ae=9),this._maxEntries=Math.max(4,ae),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ae,fe,_e){if(!_e)return fe.indexOf(ae);for(var be=0;be=ae.minX&&fe.maxY>=ae.minY}function K(ae){return{children:ae,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function he(ae,fe,_e,be,xe){for(var Xe=[fe,_e];Xe.length;)if(!((_e=Xe.pop())-(fe=Xe.pop())<=be)){var We=fe+Math.ceil((_e-fe)/be/2)*be;Y(ae,We,fe,_e,xe),Xe.push(fe,We,We,_e)}}return R.prototype.all=function(){return this._all(this.data,[])},R.prototype.search=function(ae){var fe=this.data,_e=[];if(!k(ae,fe))return _e;for(var be=this.toBBox,xe=[];fe;){for(var Xe=0;Xe=0&&xe[fe].children.length>this._maxEntries;)this._split(xe,fe),fe--;this._adjustParentBBoxes(be,xe,fe)},R.prototype._split=function(ae,fe){var _e=ae[fe],be=_e.children.length,xe=this._minEntries;this._chooseSplitAxis(_e,xe,be);var Xe=this._chooseSplitIndex(_e,xe,be),We=K(_e.children.splice(Xe,_e.children.length-Xe));We.height=_e.height,We.leaf=_e.leaf,b(_e,this.toBBox),b(We,this.toBBox),fe?ae[fe-1].children.push(We):this._splitRoot(_e,We)},R.prototype._splitRoot=function(ae,fe){this.data=K([ae,fe]),this.data.height=ae.height+1,this.data.leaf=!1,b(this.data,this.toBBox)},R.prototype._chooseSplitIndex=function(ae,fe,_e){for(var be,xe,Xe,We,dt,Me,Se,ze=1/0,De=1/0,ke=fe;ke<=_e-fe;ke++){var $e=B(ae,0,ke,this.toBBox),Te=B(ae,ke,_e,this.toBBox),tt=(xe=$e,Xe=Te,We=void 0,dt=void 0,Me=void 0,Se=void 0,We=Math.max(xe.minX,Xe.minX),dt=Math.max(xe.minY,Xe.minY),Me=Math.min(xe.maxX,Xe.maxX),Se=Math.min(xe.maxY,Xe.maxY),Math.max(0,Me-We)*Math.max(0,Se-dt)),Oe=S($e)+S(Te);tt=fe;ze--){var De=ae.children[ze];V(We,ae.leaf?xe(De):De),dt+=g(We)}return dt},R.prototype._adjustParentBBoxes=function(ae,fe,_e){for(var be=_e;be>=0;be--)V(fe[be],ae)},R.prototype._condense=function(ae){for(var fe=ae.length-1,_e=void 0;fe>=0;fe--)ae[fe].children.length===0?fe>0?(_e=ae[fe-1].children).splice(_e.indexOf(ae[fe]),1):this.clear():b(ae[fe],this.toBBox)},R})},40210:function(gt,Y,_){"use strict";var v,R=SyntaxError,w=Function,b=TypeError,B=function(Te){try{return w('"use strict"; return ('+Te+").constructor;")()}catch(tt){}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch(Te){V=null}var O=function(){throw new b},L=V?function(){try{return arguments.callee,O}catch(Te){try{return V(arguments,"callee").get}catch(tt){return O}}}():O,S=_(41405)(),g=_(28185)(),T=Object.getPrototypeOf||(g?function(Te){return Te.__proto__}:null),k={},K=typeof Uint8Array=="undefined"||!T?v:T(Uint8Array),he={"%AggregateError%":typeof AggregateError=="undefined"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?v:ArrayBuffer,"%ArrayIteratorPrototype%":S&&T?T([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics=="undefined"?v:Atomics,"%BigInt%":typeof BigInt=="undefined"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?v:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?v:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array=="undefined"?v:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?v:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&T?T(T([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map=="undefined"?v:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!S||!T?v:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?v:Promise,"%Proxy%":typeof Proxy=="undefined"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?v:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!S||!T?v:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&T?T(""[Symbol.iterator]()):v,"%Symbol%":S?Symbol:v,"%SyntaxError%":R,"%ThrowTypeError%":L,"%TypedArray%":K,"%TypeError%":b,"%Uint8Array%":typeof Uint8Array=="undefined"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?v:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?v:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?v:WeakSet};if(T)try{null.error}catch(Te){var ae=T(T(Te));he["%Error.prototype%"]=ae}var fe=function Te(tt){var Oe;if(tt==="%AsyncFunction%")Oe=B("async function () {}");else if(tt==="%GeneratorFunction%")Oe=B("function* () {}");else if(tt==="%AsyncGeneratorFunction%")Oe=B("async function* () {}");else if(tt==="%AsyncGenerator%"){var Xt=Te("%AsyncGeneratorFunction%");Xt&&(Oe=Xt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var Ft=Te("%AsyncGenerator%");Ft&&T&&(Oe=T(Ft.prototype))}return he[tt]=Oe,Oe},_e={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},be=_(58612),xe=_(78001),Xe=be.call(Function.call,Array.prototype.concat),We=be.call(Function.apply,Array.prototype.splice),dt=be.call(Function.call,String.prototype.replace),Me=be.call(Function.call,String.prototype.slice),Se=be.call(Function.call,RegExp.prototype.exec),ze=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,De=/\\(\\)?/g,ke=function(tt){var Oe=Me(tt,0,1),Xt=Me(tt,-1);if(Oe==="%"&&Xt!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");if(Xt==="%"&&Oe!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var Ft=[];return dt(tt,ze,function(ot,xt,ut,$t){Ft[Ft.length]=ut?dt($t,De,"$1"):xt||ot}),Ft},$e=function(tt,Oe){var Xt=tt,Ft;if(xe(_e,Xt)&&(Ft=_e[Xt],Xt="%"+Ft[0]+"%"),xe(he,Xt)){var ot=he[Xt];if(ot===k&&(ot=fe(Xt)),typeof ot=="undefined"&&!Oe)throw new b("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:Ft,name:Xt,value:ot}}throw new R("intrinsic "+tt+" does not exist!")};gt.exports=function(tt,Oe){if(typeof tt!="string"||tt.length===0)throw new b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Oe!="boolean")throw new b('"allowMissing" argument must be a boolean');if(Se(/^%?[^%]*%?$/,tt)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Xt=ke(tt),Ft=Xt.length>0?Xt[0]:"",ot=$e("%"+Ft+"%",Oe),xt=ot.name,ut=ot.value,$t=!1,_t=ot.alias;_t&&(Ft=_t[0],We(Xt,Xe([0,1],_t)));for(var bn=1,Wn=!0;bn=Xt.length){var Mo=V(ut,$r);Wn=!!Mo,Wn&&"get"in Mo&&!("originalValue"in Mo.get)?ut=Mo.get:ut=ut[$r]}else Wn=xe(ut,$r),ut=ut[$r];Wn&&!$t&&(he[xt]=ut)}}return ut}},25275:function(gt,Y,_){"use strict";var v=_(40210),R=v("%Object.getOwnPropertyDescriptor%",!0);if(R)try{R([],"length")}catch(w){R=null}gt.exports=R},50840:function(gt,Y,_){var v;(function(R,w,b,B){"use strict";var V=["","webkit","Moz","MS","ms","o"],O=w.createElement("div"),L="function",S=Math.round,g=Math.abs,T=Date.now;function k(ft,wt,At){return setTimeout(Xe(ft,At),wt)}function K(ft,wt,At){return Array.isArray(ft)?(he(ft,At[wt],At),!0):!1}function he(ft,wt,At){var Ye;if(ft)if(ft.forEach)ft.forEach(wt,At);else if(ft.length!==B)for(Ye=0;Ye\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",vn=R.console&&(R.console.warn||R.console.log);return vn&&vn.call(R.console,Ye,Wt),ft.apply(this,arguments)}}var fe;typeof Object.assign!="function"?fe=function(wt){if(wt===B||wt===null)throw new TypeError("Cannot convert undefined or null to object");for(var At=Object(wt),Ye=1;Ye-1}function ke(ft){return ft.trim().split(/\s+/g)}function $e(ft,wt,At){if(ft.indexOf&&!At)return ft.indexOf(wt);for(var Ye=0;YeGi[wt]}):Ye=Ye.sort()),Ye}function Oe(ft,wt){for(var At,Ye,Et=wt[0].toUpperCase()+wt.slice(1),Wt=0;Wt1&&!At.firstMultiple?At.firstMultiple=en(wt):Et===1&&(At.firstMultiple=!1);var Wt=At.firstInput,vn=At.firstMultiple,Er=vn?vn.center:Wt.center,Gr=wt.center=Vn(Ye);wt.timeStamp=T(),wt.deltaTime=wt.timeStamp-Wt.timeStamp,wt.angle=Ii(Er,Gr),wt.distance=oi(Er,Gr),tn(At,wt),wt.offsetDirection=Dr(wt.deltaX,wt.deltaY);var Gi=on(wt.deltaTime,wt.deltaX,wt.deltaY);wt.overallVelocityX=Gi.x,wt.overallVelocityY=Gi.y,wt.overallVelocity=g(Gi.x)>g(Gi.y)?Gi.x:Gi.y,wt.scale=vn?eo(vn.pointers,Ye):1,wt.rotation=vn?jr(vn.pointers,Ye):0,wt.maxPointers=At.prevInput?wt.pointers.length>At.prevInput.maxPointers?wt.pointers.length:At.prevInput.maxPointers:wt.pointers.length,kt(At,wt);var ko=ft.element;ze(wt.srcEvent.target,ko)&&(ko=wt.srcEvent.target),wt.target=ko}function tn(ft,wt){var At=wt.center,Ye=ft.offsetDelta||{},Et=ft.prevDelta||{},Wt=ft.prevInput||{};(wt.eventType===Mo||Wt.eventType===Hr)&&(Et=ft.prevDelta={x:Wt.deltaX||0,y:Wt.deltaY||0},Ye=ft.offsetDelta={x:At.x,y:At.y}),wt.deltaX=Et.x+(At.x-Ye.x),wt.deltaY=Et.y+(At.y-Ye.y)}function kt(ft,wt){var At=ft.lastInterval||wt,Ye=wt.timeStamp-At.timeStamp,Et,Wt,vn,Er;if(wt.eventType!=Ho&&(Ye>oo||At.velocity===B)){var Gr=wt.deltaX-At.deltaX,Gi=wt.deltaY-At.deltaY,ko=on(Ye,Gr,Gi);Wt=ko.x,vn=ko.y,Et=g(ko.x)>g(ko.y)?ko.x:ko.y,Er=Dr(Gr,Gi),ft.lastInterval=wt}else Et=At.velocity,Wt=At.velocityX,vn=At.velocityY,Er=At.direction;wt.velocity=Et,wt.velocityX=Wt,wt.velocityY=vn,wt.direction=Er}function en(ft){for(var wt=[],At=0;At=g(wt)?ft<0?Pe:qo:wt<0?Ki:Do}function oi(ft,wt,At){At||(At=nt);var Ye=wt[At[0]]-ft[At[0]],Et=wt[At[1]]-ft[At[1]];return Math.sqrt(Ye*Ye+Et*Et)}function Ii(ft,wt,At){At||(At=nt);var Ye=wt[At[0]]-ft[At[0]],Et=wt[At[1]]-ft[At[1]];return Math.atan2(Et,Ye)*180/Math.PI}function jr(ft,wt){return Ii(wt[1],wt[0],Dt)+Ii(ft[1],ft[0],Dt)}function eo(ft,wt){return oi(wt[0],wt[1],Dt)/oi(ft[0],ft[1],Dt)}var Uo={mousedown:Mo,mousemove:Ti,mouseup:Hr},Fn="mousedown",Qr="mousemove mouseup";function ci(){this.evEl=Fn,this.evWin=Qr,this.pressed=!1,Kt.apply(this,arguments)}xe(ci,Kt,{handler:function(wt){var At=Uo[wt.type];At&Mo&&wt.button===0&&(this.pressed=!0),At&Ti&&wt.which!==1&&(At=Hr),this.pressed&&(At&Hr&&(this.pressed=!1),this.callback(this.manager,At,{pointers:[wt],changedPointers:[wt],pointerType:$r,srcEvent:wt}))}});var ji={pointerdown:Mo,pointermove:Ti,pointerup:Hr,pointercancel:Ho,pointerout:Ho},cr={2:bn,3:Wn,4:$r,5:wi},Qn="pointerdown",Vt="pointermove pointerup pointercancel";R.MSPointerEvent&&!R.PointerEvent&&(Qn="MSPointerDown",Vt="MSPointerMove MSPointerUp MSPointerCancel");function Yt(){this.evEl=Qn,this.evWin=Vt,Kt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}xe(Yt,Kt,{handler:function(wt){var At=this.store,Ye=!1,Et=wt.type.toLowerCase().replace("ms",""),Wt=ji[Et],vn=cr[wt.pointerType]||wt.pointerType,Er=vn==bn,Gr=$e(At,wt.pointerId,"pointerId");Wt&Mo&&(wt.button===0||Er)?Gr<0&&(At.push(wt),Gr=At.length-1):Wt&(Hr|Ho)&&(Ye=!0),!(Gr<0)&&(At[Gr]=wt,this.callback(this.manager,Wt,{pointers:At,changedPointers:[wt],pointerType:vn,srcEvent:wt}),Ye&&At.splice(Gr,1))}});var En={touchstart:Mo,touchmove:Ti,touchend:Hr,touchcancel:Ho},er="touchstart",Tr="touchstart touchmove touchend touchcancel";function Nr(){this.evTarget=er,this.evWin=Tr,this.started=!1,Kt.apply(this,arguments)}xe(Nr,Kt,{handler:function(wt){var At=En[wt.type];if(At===Mo&&(this.started=!0),!!this.started){var Ye=Zn.call(this,wt,At);At&(Hr|Ho)&&Ye[0].length-Ye[1].length===0&&(this.started=!1),this.callback(this.manager,At,{pointers:Ye[0],changedPointers:Ye[1],pointerType:bn,srcEvent:wt})}}});function Zn(ft,wt){var At=Te(ft.touches),Ye=Te(ft.changedTouches);return wt&(Hr|Ho)&&(At=tt(At.concat(Ye),"identifier",!0)),[At,Ye]}var Ut={touchstart:Mo,touchmove:Ti,touchend:Hr,touchcancel:Ho},$n="touchstart touchmove touchend touchcancel";function xr(){this.evTarget=$n,this.targetIds={},Kt.apply(this,arguments)}xe(xr,Kt,{handler:function(wt){var At=Ut[wt.type],Ye=Br.call(this,wt,At);Ye&&this.callback(this.manager,At,{pointers:Ye[0],changedPointers:Ye[1],pointerType:bn,srcEvent:wt})}});function Br(ft,wt){var At=Te(ft.touches),Ye=this.targetIds;if(wt&(Mo|Ti)&&At.length===1)return Ye[At[0].identifier]=!0,[At,At];var Et,Wt,vn=Te(ft.changedTouches),Er=[],Gr=this.target;if(Wt=At.filter(function(Gi){return ze(Gi.target,Gr)}),wt===Mo)for(Et=0;Et-1&&Ye.splice(Wt,1)};setTimeout(Et,_o)}}function Mi(ft){for(var wt=ft.srcEvent.clientX,At=ft.srcEvent.clientY,Ye=0;Ye-1&&this.requireFail.splice(wt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ft){return!!this.simultaneous[ft.id]},emit:function(ft){var wt=this,At=this.state;function Ye(Et){wt.manager.emit(Et,ft)}At=Pn&&Ye(wt.options.event+al(At))},tryEmit:function(ft){if(this.canEmit())return this.emit(ft);this.state=Zs},canEmit:function(){for(var ft=0;ftwt.threshold&&Et&wt.direction},attrTest:function(ft){return fl.prototype.attrTest.call(this,ft)&&(this.state&no||!(this.state&no)&&this.directionTest(ft))},emit:function(ft){this.pX=ft.deltaX,this.pY=ft.deltaY;var wt=co(ft.direction);wt&&(ft.additionalEvent=this.options.event+wt),this._super.emit.call(this,ft)}});function Xi(){fl.apply(this,arguments)}xe(Xi,fl,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Vr]},attrTest:function(ft){return this._super.attrTest.call(this,ft)&&(Math.abs(ft.scale-1)>this.options.threshold||this.state&no)},emit:function(ft){if(ft.scale!==1){var wt=ft.scale<1?"in":"out";ft.additionalEvent=this.options.event+wt}this._super.emit.call(this,ft)}});function Fi(){qs.apply(this,arguments),this._timer=null,this._input=null}xe(Fi,qs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ni]},process:function(ft){var wt=this.options,At=ft.pointers.length===wt.pointers,Ye=ft.distancewt.time;if(this._input=ft,!Ye||!At||ft.eventType&(Hr|Ho)&&!Et)this.reset();else if(ft.eventType&Mo)this.reset(),this._timer=k(function(){this.state=mi,this.tryEmit()},wt.time,this);else if(ft.eventType&Hr)return mi;return Zs},reset:function(){clearTimeout(this._timer)},emit:function(ft){this.state===mi&&(ft&&ft.eventType&Hr?this.manager.emit(this.options.event+"up",ft):(this._input.timeStamp=T(),this.manager.emit(this.options.event,this._input)))}});function No(){fl.apply(this,arguments)}xe(No,fl,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Vr]},attrTest:function(ft){return this._super.attrTest.call(this,ft)&&(Math.abs(ft.rotation)>this.options.threshold||this.state&no)}});function yr(){fl.apply(this,arguments)}xe(yr,fl,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ai|$o,pointers:1},getTouchAction:function(){return Ai.prototype.getTouchAction.call(this)},attrTest:function(ft){var wt=this.options.direction,At;return wt&(ai|$o)?At=ft.overallVelocity:wt&ai?At=ft.overallVelocityX:wt&$o&&(At=ft.overallVelocityY),this._super.attrTest.call(this,ft)&&wt&ft.offsetDirection&&ft.distance>this.options.threshold&&ft.maxPointers==this.options.pointers&&g(At)>this.options.velocity&&ft.eventType&Hr},emit:function(ft){var wt=co(ft.offsetDirection);wt&&this.manager.emit(this.options.event+wt,ft),this.manager.emit(this.options.event,ft)}});function ui(){qs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}xe(ui,qs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qi]},process:function(ft){var wt=this.options,At=ft.pointers.length===wt.pointers,Ye=ft.distance>1,g=-7,T=R?b-1:0,k=R?-1:1,K=_[v+T];for(T+=k,B=K&(1<<-g)-1,K>>=-g,g+=O;g>0;B=B*256+_[v+T],T+=k,g-=8);for(V=B&(1<<-g)-1,B>>=-g,g+=w;g>0;V=V*256+_[v+T],T+=k,g-=8);if(B===0)B=1-S;else{if(B===L)return V?NaN:(K?-1:1)*(1/0);V=V+Math.pow(2,w),B=B-S}return(K?-1:1)*V*Math.pow(2,B-w)},Y.write=function(_,v,R,w,b,B){var V,O,L,S=B*8-b-1,g=(1<>1,k=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=w?0:B-1,he=w?1:-1,ae=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(O=isNaN(v)?1:0,V=g):(V=Math.floor(Math.log(v)/Math.LN2),v*(L=Math.pow(2,-V))<1&&(V--,L*=2),V+T>=1?v+=k/L:v+=k*Math.pow(2,1-T),v*L>=2&&(V++,L/=2),V+T>=g?(O=0,V=g):V+T>=1?(O=(v*L-1)*Math.pow(2,b),V=V+T):(O=v*Math.pow(2,T-1)*Math.pow(2,b),V=0));b>=8;_[R+K]=O&255,K+=he,O/=256,b-=8);for(V=V<0;_[R+K]=V&255,K+=he,V/=256,S-=8);_[R+K-he]|=ae*128}},7375:function(gt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var _=Symbol.for("INJECTION");function v(V,O,L,S){function g(){return S&&!Reflect.hasMetadata(_,this,O)&&Reflect.defineMetadata(_,L(),this,O),Reflect.hasMetadata(_,this,O)?Reflect.getMetadata(_,this,O):L()}function T(k){Reflect.defineMetadata(_,k,this,O)}Object.defineProperty(V,O,{configurable:!0,enumerable:!0,get:g,set:T})}function R(V,O){return function(L){return function(S,g){var T=function(){return V.get(L)};v(S,g,T,O)}}}Y.makePropertyInjectDecorator=R;function w(V,O){return function(L,S){return function(g,T){var k=function(){return V.getNamed(L,S)};v(g,T,k,O)}}}Y.makePropertyInjectNamedDecorator=w;function b(V,O){return function(L,S,g){return function(T,k){var K=function(){return V.getTagged(L,S,g)};v(T,k,K,O)}}}Y.makePropertyInjectTaggedDecorator=b;function B(V,O){return function(L){return function(S,g){var T=function(){return V.getAll(L)};v(S,g,T,O)}}}Y.makePropertyMultiInjectDecorator=B},84879:function(gt,Y,_){"use strict";var v;v={value:!0};var R=_(7375);function w(b,B){B===void 0&&(B=!0);var V=R.makePropertyInjectDecorator(b,B),O=R.makePropertyInjectNamedDecorator(b,B),L=R.makePropertyInjectTaggedDecorator(b,B),S=R.makePropertyMultiInjectDecorator(b,B);return{lazyInject:V,lazyInjectNamed:O,lazyInjectTagged:L,lazyMultiInject:S}}Y.Z=w},99934:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.tagProperty=Y.tagParameter=Y.decorate=void 0;var v=_(16674),R=_(6867);function w(S,g,T,k){var K=R.TAGGED;B(K,S,g,k,T)}Y.tagParameter=w;function b(S,g,T){var k=R.TAGGED_PROP;B(k,S.constructor,g,T)}Y.tagProperty=b;function B(S,g,T,k,K){var he={},ae=typeof K=="number",fe=K!==void 0&&ae?K.toString():T;if(ae&&T!==void 0)throw new Error(v.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(S,g)&&(he=Reflect.getMetadata(S,g));var _e=he[fe];if(!Array.isArray(_e))_e=[];else for(var be=0,xe=_e;be= than the number of constructor arguments of its base class.")};Y.ARGUMENTS_LENGTH_MISMATCH=v,Y.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",Y.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",Y.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",Y.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",Y.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var R=function(){for(var b=[],B=0;B0&&dt[dt.length-1])&&(De[0]===6||De[0]===2)){xe=0;continue}if(De[0]===3&&(!dt||De[1]>dt[0]&&De[1]0?B._map.set(O,L):B._map.delete(O)})},w.prototype.hasKey=function(b){if(b==null)throw new Error(v.NULL_ARGUMENT);return this._map.has(b)},w.prototype.clone=function(){var b=new w;return this._map.forEach(function(B,V){B.forEach(function(O){return b.add(V,O.clone())})}),b},w.prototype.traverse=function(b){this._map.forEach(function(B,V){b(V,B)})},w}();Y.Lookup=R},86700:function(gt,Y,_){"use strict";var v;v={value:!0},v=v=v=v=v=v=Y.GW=v=v=Y.zY=v=v=v=v=v=Y.f3=v=v=Y.b2=v=v=v=v=v=Y.W2=v=void 0;var R=_(6867);v=R;var w=_(51389);Object.defineProperty(Y,"W2",{enumerable:!0,get:function(){return w.Container}});var b=_(28421);v={enumerable:!0,get:function(){return b.BindingScopeEnum}},v={enumerable:!0,get:function(){return b.BindingTypeEnum}},v={enumerable:!0,get:function(){return b.TargetTypeEnum}};var B=_(33244);v={enumerable:!0,get:function(){return B.AsyncContainerModule}},v={enumerable:!0,get:function(){return B.ContainerModule}};var V=_(64315);Object.defineProperty(Y,"b2",{enumerable:!0,get:function(){return V.injectable}});var O=_(32052);v={enumerable:!0,get:function(){return O.tagged}};var L=_(38085);v={enumerable:!0,get:function(){return L.named}};var S=_(5744);Object.defineProperty(Y,"f3",{enumerable:!0,get:function(){return S.inject}}),v={enumerable:!0,get:function(){return S.LazyServiceIdentifer}};var g=_(6515);v={enumerable:!0,get:function(){return g.optional}};var T=_(86757);v={enumerable:!0,get:function(){return T.unmanaged}};var k=_(71693);v={enumerable:!0,get:function(){return k.multiInject}};var K=_(55638);v={enumerable:!0,get:function(){return K.targetName}};var he=_(7014);Object.defineProperty(Y,"zY",{enumerable:!0,get:function(){return he.postConstruct}});var ae=_(51377);v={enumerable:!0,get:function(){return ae.MetadataReader}};var fe=_(37791);v={enumerable:!0,get:function(){return fe.id}};var _e=_(99934);Object.defineProperty(Y,"GW",{enumerable:!0,get:function(){return _e.decorate}});var be=_(80758);v={enumerable:!0,get:function(){return be.traverseAncerstors}},v={enumerable:!0,get:function(){return be.taggedConstraint}},v={enumerable:!0,get:function(){return be.namedConstraint}},v={enumerable:!0,get:function(){return be.typeConstraint}};var xe=_(55800);v={enumerable:!0,get:function(){return xe.getServiceIdentifierAsString}};var Xe=_(70600);v={enumerable:!0,get:function(){return Xe.multiBindToService}}},95228:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Context=void 0;var v=_(37791),R=function(){function w(b){this.id=v.id(),this.container=b}return w.prototype.addPlan=function(b){this.plan=b},w.prototype.setCurrentRequest=function(b){this.currentRequest=b},w}();Y.Context=R},47738:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Metadata=void 0;var v=_(6867),R=function(){function w(b,B){this.key=b,this.value=B}return w.prototype.toString=function(){return this.key===v.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},w}();Y.Metadata=R},51377:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.MetadataReader=void 0;var v=_(6867),R=function(){function w(){}return w.prototype.getConstructorMetadata=function(b){var B=Reflect.getMetadata(v.PARAM_TYPES,b),V=Reflect.getMetadata(v.TAGGED,b);return{compilerGeneratedMetadata:B,userGeneratedMetadata:V||{}}},w.prototype.getPropertiesMetadata=function(b){var B=Reflect.getMetadata(v.TAGGED_PROP,b)||[];return B},w}();Y.MetadataReader=R},55314:function(gt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Plan=void 0;var _=function(){function v(R,w){this.parentContext=R,this.rootRequest=w}return v}();Y.Plan=_},86311:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.getBindingDictionary=Y.createMockRequest=Y.plan=void 0;var v=_(23184),R=_(16674),w=_(28421),b=_(6867),B=_(85265),V=_(55800),O=_(95228),L=_(47738),S=_(55314),g=_(6e3),T=_(6748),k=_(18924);function K(We){return We._bindingDictionary}Y.getBindingDictionary=K;function he(We,dt,Me,Se,ze,De){var ke=We?b.MULTI_INJECT_TAG:b.INJECT_TAG,$e=new L.Metadata(ke,Me),Te=new k.Target(dt,Se,Me,$e);if(ze!==void 0){var tt=new L.Metadata(ze,De);Te.metadata.push(tt)}return Te}function ae(We,dt,Me,Se,ze){var De=be(Me.container,ze.serviceIdentifier),ke=[];return De.length===v.BindingCount.NoBindingsAvailable&&Me.container.options.autoBindInjectable&&typeof ze.serviceIdentifier=="function"&&We.getConstructorMetadata(ze.serviceIdentifier).compilerGeneratedMetadata&&(Me.container.bind(ze.serviceIdentifier).toSelf(),De=be(Me.container,ze.serviceIdentifier)),dt?ke=De:ke=De.filter(function($e){var Te=new T.Request($e.serviceIdentifier,Me,Se,$e,ze);return $e.constraint(Te)}),fe(ze.serviceIdentifier,ke,ze,Me.container),ke}function fe(We,dt,Me,Se){switch(dt.length){case v.BindingCount.NoBindingsAvailable:if(Me.isOptional())return dt;var ze=V.getServiceIdentifierAsString(We),De=R.NOT_REGISTERED;throw De+=V.listMetadataForTarget(ze,Me),De+=V.listRegisteredBindingsForServiceIdentifier(Se,ze,be),new Error(De);case v.BindingCount.OnlyOneBindingAvailable:if(!Me.isArray())return dt;case v.BindingCount.MultipleBindingsAvailable:default:if(Me.isArray())return dt;var ze=V.getServiceIdentifierAsString(We),De=R.AMBIGUOUS_MATCH+" "+ze;throw De+=V.listRegisteredBindingsForServiceIdentifier(Se,ze,be),new Error(De)}}function _e(We,dt,Me,Se,ze,De){var ke,$e;if(ze===null){ke=ae(We,dt,Se,null,De),$e=new T.Request(Me,Se,null,ke,De);var Te=new S.Plan(Se,$e);Se.addPlan(Te)}else ke=ae(We,dt,Se,ze,De),$e=ze.addChildRequest(De.serviceIdentifier,ke,De);ke.forEach(function(tt){var Oe=null;if(De.isArray())Oe=$e.addChildRequest(tt.serviceIdentifier,tt,De);else{if(tt.cache)return;Oe=$e}if(tt.type===w.BindingTypeEnum.Instance&&tt.implementationType!==null){var Xt=g.getDependencies(We,tt.implementationType);if(!Se.container.options.skipBaseClassChecks){var Ft=g.getBaseClassDependencyCount(We,tt.implementationType);if(Xt.length0,ze=Me.length>_e.length,De=Se||ze?Me.length:_e.length,ke=T(be,fe,Xe,dt,De),$e=k(ae,_e),Te=v(v([],ke),$e);return Te}function g(ae,fe,_e,be,xe){var Xe=xe[ae.toString()]||[],We=he(Xe),dt=We.unmanaged!==!0,Me=be[ae],Se=We.inject||We.multiInject;if(Me=Se||Me,Me instanceof R.LazyServiceIdentifer&&(Me=Me.unwrap()),dt){var ze=Me===Object,De=Me===Function,ke=Me===void 0,$e=ze||De||ke;if(!fe&&$e){var Te=w.MISSING_INJECT_ANNOTATION+" argument "+ae+" in class "+_e+".";throw new Error(Te)}var tt=new O.Target(b.TargetTypeEnum.ConstructorArgument,We.targetName,Me);return tt.metadata=Xe,tt}return null}function T(ae,fe,_e,be,xe){for(var Xe=[],We=0;We0?dt:K(ae,_e)}else return 0}Y.getBaseClassDependencyCount=K;function he(ae){var fe={};return ae.forEach(function(_e){fe[_e.key.toString()]=_e.value}),{inject:fe[B.INJECT_TAG],multiInject:fe[B.MULTI_INJECT_TAG],targetName:fe[B.NAME_TAG],unmanaged:fe[B.UNMANAGED_TAG]}}},6748:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Request=void 0;var v=_(37791),R=function(){function w(b,B,V,O,L){this.id=v.id(),this.serviceIdentifier=b,this.parentContext=B,this.parentRequest=V,this.target=L,this.childRequests=[],this.bindings=Array.isArray(O)?O:[O],this.requestScope=V===null?new Map:null}return w.prototype.addChildRequest=function(b,B,V){var O=new w(b,this.parentContext,this,B,V);return this.childRequests.push(O),O},w}();Y.Request=R},18924:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.Target=void 0;var v=_(6867),R=_(37791),w=_(47738),b=_(88460),B=function(){function V(O,L,S,g){this.id=R.id(),this.type=O,this.serviceIdentifier=S,this.name=new b.QueryableString(L||""),this.metadata=new Array;var T=null;typeof g=="string"?T=new w.Metadata(v.NAMED_TAG,g):g instanceof w.Metadata&&(T=g),T!==null&&this.metadata.push(T)}return V.prototype.hasTag=function(O){for(var L=0,S=this.metadata;L0){var K=g.filter(function(ae){return ae.target!==null&&ae.target.type===w.TargetTypeEnum.ConstructorArgument}),he=K.map(T);k=V(S,he),k=B(k,g,T)}else k=new S;return O(S,k),k}Y.resolveInstance=L},31927:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.resolve=void 0;var v=_(16674),R=_(28421),w=_(85265),b=_(55800),B=_(52279),V=function(S,g,T){try{return T()}catch(k){throw w.isStackOverflowExeption(k)?new Error(v.CIRCULAR_DEPENDENCY_IN_FACTORY(S,g.toString())):k}},O=function(S){return function(g){g.parentContext.setCurrentRequest(g);var T=g.bindings,k=g.childRequests,K=g.target&&g.target.isArray(),he=!g.parentRequest||!g.parentRequest.target||!g.target||!g.parentRequest.target.matchesArray(g.target.serviceIdentifier);if(K&&he)return k.map(function(Xe){var We=O(S);return We(Xe)});var ae=null;if(g.target.isOptional()&&T.length===0)return;var fe=T[0],_e=fe.scope===R.BindingScopeEnum.Singleton,be=fe.scope===R.BindingScopeEnum.Request;if(_e&&fe.activated)return fe.cache;if(be&&S!==null&&S.has(fe.id))return S.get(fe.id);if(fe.type===R.BindingTypeEnum.ConstantValue)ae=fe.cache,fe.activated=!0;else if(fe.type===R.BindingTypeEnum.Function)ae=fe.cache,fe.activated=!0;else if(fe.type===R.BindingTypeEnum.Constructor)ae=fe.implementationType;else if(fe.type===R.BindingTypeEnum.DynamicValue&&fe.dynamicValue!==null)ae=V("toDynamicValue",fe.serviceIdentifier,function(){return fe.dynamicValue(g.parentContext)});else if(fe.type===R.BindingTypeEnum.Factory&&fe.factory!==null)ae=V("toFactory",fe.serviceIdentifier,function(){return fe.factory(g.parentContext)});else if(fe.type===R.BindingTypeEnum.Provider&&fe.provider!==null)ae=V("toProvider",fe.serviceIdentifier,function(){return fe.provider(g.parentContext)});else if(fe.type===R.BindingTypeEnum.Instance&&fe.implementationType!==null)ae=B.resolveInstance(fe.implementationType,k,O(S));else{var xe=b.getServiceIdentifierAsString(g.serviceIdentifier);throw new Error(v.INVALID_BINDING_TYPE+" "+xe)}return typeof fe.onActivation=="function"&&(ae=fe.onActivation(g.parentContext,ae)),_e&&(fe.cache=ae,fe.activated=!0),be&&S!==null&&!S.has(fe.id)&&S.set(fe.id,ae),ae}};function L(S){var g=O(S.plan.rootRequest.requestScope);return g(S.plan.rootRequest)}Y.resolve=L},83366:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInSyntax=void 0;var v=_(28421),R=_(71325),w=function(){function b(B){this._binding=B}return b.prototype.inRequestScope=function(){return this._binding.scope=v.BindingScopeEnum.Request,new R.BindingWhenOnSyntax(this._binding)},b.prototype.inSingletonScope=function(){return this._binding.scope=v.BindingScopeEnum.Singleton,new R.BindingWhenOnSyntax(this._binding)},b.prototype.inTransientScope=function(){return this._binding.scope=v.BindingScopeEnum.Transient,new R.BindingWhenOnSyntax(this._binding)},b}();Y.BindingInSyntax=w},99812:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingInWhenOnSyntax=void 0;var v=_(83366),R=_(51811),w=_(98370),b=function(){function B(V){this._binding=V,this._bindingWhenSyntax=new w.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new R.BindingOnSyntax(this._binding),this._bindingInSyntax=new v.BindingInSyntax(V)}return B.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},B.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},B.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},B.prototype.when=function(V){return this._bindingWhenSyntax.when(V)},B.prototype.whenTargetNamed=function(V){return this._bindingWhenSyntax.whenTargetNamed(V)},B.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},B.prototype.whenTargetTagged=function(V,O){return this._bindingWhenSyntax.whenTargetTagged(V,O)},B.prototype.whenInjectedInto=function(V){return this._bindingWhenSyntax.whenInjectedInto(V)},B.prototype.whenParentNamed=function(V){return this._bindingWhenSyntax.whenParentNamed(V)},B.prototype.whenParentTagged=function(V,O){return this._bindingWhenSyntax.whenParentTagged(V,O)},B.prototype.whenAnyAncestorIs=function(V){return this._bindingWhenSyntax.whenAnyAncestorIs(V)},B.prototype.whenNoAncestorIs=function(V){return this._bindingWhenSyntax.whenNoAncestorIs(V)},B.prototype.whenAnyAncestorNamed=function(V){return this._bindingWhenSyntax.whenAnyAncestorNamed(V)},B.prototype.whenAnyAncestorTagged=function(V,O){return this._bindingWhenSyntax.whenAnyAncestorTagged(V,O)},B.prototype.whenNoAncestorNamed=function(V){return this._bindingWhenSyntax.whenNoAncestorNamed(V)},B.prototype.whenNoAncestorTagged=function(V,O){return this._bindingWhenSyntax.whenNoAncestorTagged(V,O)},B.prototype.whenAnyAncestorMatches=function(V){return this._bindingWhenSyntax.whenAnyAncestorMatches(V)},B.prototype.whenNoAncestorMatches=function(V){return this._bindingWhenSyntax.whenNoAncestorMatches(V)},B.prototype.onActivation=function(V){return this._bindingOnSyntax.onActivation(V)},B}();Y.BindingInWhenOnSyntax=b},51811:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingOnSyntax=void 0;var v=_(98370),R=function(){function w(b){this._binding=b}return w.prototype.onActivation=function(b){return this._binding.onActivation=b,new v.BindingWhenSyntax(this._binding)},w}();Y.BindingOnSyntax=R},51860:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingToSyntax=void 0;var v=_(16674),R=_(28421),w=_(99812),b=_(71325),B=function(){function V(O){this._binding=O}return V.prototype.to=function(O){return this._binding.type=R.BindingTypeEnum.Instance,this._binding.implementationType=O,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+v.INVALID_TO_SELF_VALUE);var O=this._binding.serviceIdentifier;return this.to(O)},V.prototype.toConstantValue=function(O){return this._binding.type=R.BindingTypeEnum.ConstantValue,this._binding.cache=O,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toDynamicValue=function(O){return this._binding.type=R.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=O,this._binding.implementationType=null,new w.BindingInWhenOnSyntax(this._binding)},V.prototype.toConstructor=function(O){return this._binding.type=R.BindingTypeEnum.Constructor,this._binding.implementationType=O,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFactory=function(O){return this._binding.type=R.BindingTypeEnum.Factory,this._binding.factory=O,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toFunction=function(O){if(typeof O!="function")throw new Error(v.INVALID_FUNCTION_BINDING);var L=this.toConstantValue(O);return this._binding.type=R.BindingTypeEnum.Function,this._binding.scope=R.BindingScopeEnum.Singleton,L},V.prototype.toAutoFactory=function(O){return this._binding.type=R.BindingTypeEnum.Factory,this._binding.factory=function(L){var S=function(){return L.container.get(O)};return S},this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toProvider=function(O){return this._binding.type=R.BindingTypeEnum.Provider,this._binding.provider=O,this._binding.scope=R.BindingScopeEnum.Singleton,new b.BindingWhenOnSyntax(this._binding)},V.prototype.toService=function(O){this.toDynamicValue(function(L){return L.container.get(O)})},V}();Y.BindingToSyntax=B},71325:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenOnSyntax=void 0;var v=_(51811),R=_(98370),w=function(){function b(B){this._binding=B,this._bindingWhenSyntax=new R.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new v.BindingOnSyntax(this._binding)}return b.prototype.when=function(B){return this._bindingWhenSyntax.when(B)},b.prototype.whenTargetNamed=function(B){return this._bindingWhenSyntax.whenTargetNamed(B)},b.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},b.prototype.whenTargetTagged=function(B,V){return this._bindingWhenSyntax.whenTargetTagged(B,V)},b.prototype.whenInjectedInto=function(B){return this._bindingWhenSyntax.whenInjectedInto(B)},b.prototype.whenParentNamed=function(B){return this._bindingWhenSyntax.whenParentNamed(B)},b.prototype.whenParentTagged=function(B,V){return this._bindingWhenSyntax.whenParentTagged(B,V)},b.prototype.whenAnyAncestorIs=function(B){return this._bindingWhenSyntax.whenAnyAncestorIs(B)},b.prototype.whenNoAncestorIs=function(B){return this._bindingWhenSyntax.whenNoAncestorIs(B)},b.prototype.whenAnyAncestorNamed=function(B){return this._bindingWhenSyntax.whenAnyAncestorNamed(B)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenAnyAncestorTagged(B,V)},b.prototype.whenNoAncestorNamed=function(B){return this._bindingWhenSyntax.whenNoAncestorNamed(B)},b.prototype.whenNoAncestorTagged=function(B,V){return this._bindingWhenSyntax.whenNoAncestorTagged(B,V)},b.prototype.whenAnyAncestorMatches=function(B){return this._bindingWhenSyntax.whenAnyAncestorMatches(B)},b.prototype.whenNoAncestorMatches=function(B){return this._bindingWhenSyntax.whenNoAncestorMatches(B)},b.prototype.onActivation=function(B){return this._bindingOnSyntax.onActivation(B)},b}();Y.BindingWhenOnSyntax=w},98370:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.BindingWhenSyntax=void 0;var v=_(51811),R=_(80758),w=function(){function b(B){this._binding=B}return b.prototype.when=function(B){return this._binding.constraint=B,new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetNamed=function(B){return this._binding.constraint=R.namedConstraint(B),new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(B){var V=B.target!==null&&!B.target.isNamed()&&!B.target.isTagged();return V},new v.BindingOnSyntax(this._binding)},b.prototype.whenTargetTagged=function(B,V){return this._binding.constraint=R.taggedConstraint(B)(V),new v.BindingOnSyntax(this._binding)},b.prototype.whenInjectedInto=function(B){return this._binding.constraint=function(V){return R.typeConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentNamed=function(B){return this._binding.constraint=function(V){return R.namedConstraint(B)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenParentTagged=function(B,V){return this._binding.constraint=function(O){return R.taggedConstraint(B)(V)(O.parentRequest)},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorIs=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,R.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorIs=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,R.typeConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorNamed=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,R.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorNamed=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,R.namedConstraint(B))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorTagged=function(B,V){return this._binding.constraint=function(O){return R.traverseAncerstors(O,R.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorTagged=function(B,V){return this._binding.constraint=function(O){return!R.traverseAncerstors(O,R.taggedConstraint(B)(V))},new v.BindingOnSyntax(this._binding)},b.prototype.whenAnyAncestorMatches=function(B){return this._binding.constraint=function(V){return R.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b.prototype.whenNoAncestorMatches=function(B){return this._binding.constraint=function(V){return!R.traverseAncerstors(V,B)},new v.BindingOnSyntax(this._binding)},b}();Y.BindingWhenSyntax=w},80758:function(gt,Y,_){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.typeConstraint=Y.namedConstraint=Y.taggedConstraint=Y.traverseAncerstors=void 0;var v=_(6867),R=_(47738),w=function(O,L){var S=O.parentRequest;return S!==null?L(S)?!0:w(S,L):!1};Y.traverseAncerstors=w;var b=function(O){return function(L){var S=function(g){return g!==null&&g.target!==null&&g.target.matchesTag(O)(L)};return S.metaData=new R.Metadata(O,L),S}};Y.taggedConstraint=b;var B=b(v.NAMED_TAG);Y.namedConstraint=B;var V=function(O){return function(L){var S=null;if(L!==null)if(S=L.bindings[0],typeof O=="string"){var g=S.serviceIdentifier;return g===O}else{var T=L.bindings[0].implementationType;return O===T}return!1}};Y.typeConstraint=V},70600:function(gt,Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.multiBindToService=void 0;var _=function(v){return function(R){return function(){for(var w=[],b=0;b ")}function V(S){S.childRequests.forEach(function(g){if(b(g,g.serviceIdentifier)){var T=B(g);throw new Error(v.CIRCULAR_DEPENDENCY+" "+T)}else V(g)})}Y.circularDependencyToException=V;function O(S,g){if(g.isTagged()||g.isNamed()){var T="",k=g.getNamedTag(),K=g.getCustomTags();return k!==null&&(T+=k.toString()+` +`),K!==null&&K.forEach(function(he){T+=he.toString()+` +`})," "+S+` + `+S+" - "+T}else return" "+S}Y.listMetadataForTarget=O;function L(S){if(S.name)return S.name;var g=S.toString(),T=g.match(/^function\s*([^\s(]+)/);return T?T[1]:"Anonymous function: "+g}Y.getFunctionName=L},82584:function(gt,Y,_){"use strict";var v=_(96410)(),R=_(21924),w=R("Object.prototype.toString"),b=function(L){return v&&L&&typeof L=="object"&&Symbol.toStringTag in L?!1:w(L)==="[object Arguments]"},B=function(L){return b(L)?!0:L!==null&&typeof L=="object"&&typeof L.length=="number"&&L.length>=0&&w(L)!=="[object Array]"&&w(L.callee)==="[object Function]"},V=function(){return b(arguments)}();b.isLegacyArguments=B,gt.exports=V?b:B},18923:function(gt,Y,_){"use strict";var v=Date.prototype.getDay,R=function(O){try{return v.call(O),!0}catch(L){return!1}},w=Object.prototype.toString,b="[object Date]",B=_(96410)();gt.exports=function(O){return typeof O!="object"||O===null?!1:B?R(O):w.call(O)===b}},98420:function(gt,Y,_){"use strict";var v=_(21924),R=_(96410)(),w,b,B,V;if(R){w=v("Object.prototype.hasOwnProperty"),b=v("RegExp.prototype.exec"),B={};var O=function(){throw B};V={toString:O,valueOf:O},typeof Symbol.toPrimitive=="symbol"&&(V[Symbol.toPrimitive]=O)}var L=v("Object.prototype.toString"),S=Object.getOwnPropertyDescriptor,g="[object RegExp]";gt.exports=R?function(k){if(!k||typeof k!="object")return!1;var K=S(k,"lastIndex"),he=K&&w(K,"value");if(!he)return!1;try{b(k,V)}catch(ae){return ae===B}}:function(k){return!k||typeof k!="object"&&typeof k!="function"?!1:L(k)===g}},5826:function(gt){var Y={}.toString;gt.exports=Array.isArray||function(_){return Y.call(_)=="[object Array]"}},69483:function(gt,Y,_){(function(v){if(!0)gt.exports=v();else var R})(function(){var v,R,w;return function b(B,V,O){function L(T,k){if(!V[T]){if(!B[T]){var K=void 0;if(!k&&K)return require(T,!0);if(S)return S(T,!0);var he=new Error("Cannot find module '"+T+"'");throw he.code="MODULE_NOT_FOUND",he}var ae=V[T]={exports:{}};B[T][0].call(ae.exports,function(fe){var _e=B[T][1][fe];return L(_e||fe)},ae,ae.exports,b,B,V,O)}return V[T].exports}for(var S=void 0,g=0;g=43)}}).catch(function(){return!1})}function De(Ai){return typeof xe=="boolean"?K.resolve(xe):ze(Ai).then(function(Xi){return xe=Xi,xe})}function ke(Ai){var Xi=Xe[Ai.name],Fi={};Fi.promise=new K(function(No,yr){Fi.resolve=No,Fi.reject=yr}),Xi.deferredOperations.push(Fi),Xi.dbReady?Xi.dbReady=Xi.dbReady.then(function(){return Fi.promise}):Xi.dbReady=Fi.promise}function $e(Ai){var Xi=Xe[Ai.name],Fi=Xi.deferredOperations.pop();if(Fi)return Fi.resolve(),Fi.promise}function Te(Ai,Xi){var Fi=Xe[Ai.name],No=Fi.deferredOperations.pop();if(No)return No.reject(Xi),No.promise}function tt(Ai,Xi){return new K(function(Fi,No){if(Xe[Ai.name]=Xe[Ai.name]||Wn(),Ai.db)if(Xi)ke(Ai),Ai.db.close();else return Fi(Ai.db);var yr=[Ai.name];Xi&&yr.push(Ai.version);var ui=g.open.apply(g,yr);Xi&&(ui.onupgradeneeded=function(Zo){var ns=ui.result;try{ns.createObjectStore(Ai.storeName),Zo.oldVersion<=1&&ns.createObjectStore(be)}catch(Lr){if(Lr.name==="ConstraintError")console.warn('The database "'+Ai.name+'" has been upgraded from version '+Zo.oldVersion+" to version "+Zo.newVersion+', but the storage "'+Ai.storeName+'" already exists.');else throw Lr}}),ui.onerror=function(Zo){Zo.preventDefault(),No(ui.error)},ui.onsuccess=function(){var Zo=ui.result;Zo.onversionchange=function(ns){ns.target.close()},Fi(Zo),$e(Ai)}})}function Oe(Ai){return tt(Ai,!1)}function Xt(Ai){return tt(Ai,!0)}function Ft(Ai,Xi){if(!Ai.db)return!0;var Fi=!Ai.db.objectStoreNames.contains(Ai.storeName),No=Ai.versionAi.db.version;if(No&&(Ai.version!==Xi&&console.warn('The database "'+Ai.name+`" can't be downgraded from version `+Ai.db.version+" to version "+Ai.version+"."),Ai.version=Ai.db.version),yr||Fi){if(Fi){var ui=Ai.db.version+1;ui>Ai.version&&(Ai.version=ui)}return!0}return!1}function ot(Ai){return new K(function(Xi,Fi){var No=new FileReader;No.onerror=Fi,No.onloadend=function(yr){var ui=btoa(yr.target.result||"");Xi({__local_forage_encoded_blob:!0,data:ui,type:Ai.type})},No.readAsBinaryString(Ai)})}function xt(Ai){var Xi=Se(atob(Ai.data));return k([Xi],{type:Ai.type})}function ut(Ai){return Ai&&Ai.__local_forage_encoded_blob}function $t(Ai){var Xi=this,Fi=Xi._initReady().then(function(){var No=Xe[Xi._dbInfo.name];if(No&&No.dbReady)return No.dbReady});return ae(Fi,Ai,Ai),Fi}function _t(Ai){ke(Ai);for(var Xi=Xe[Ai.name],Fi=Xi.forages,No=0;No0&&(!Ai.db||ui.name==="InvalidStateError"||ui.name==="NotFoundError"))return K.resolve().then(function(){if(!Ai.db||ui.name==="NotFoundError"&&!Ai.db.objectStoreNames.contains(Ai.storeName)&&Ai.version<=Ai.db.version)return Ai.db&&(Ai.version=Ai.db.version+1),Xt(Ai)}).then(function(){return _t(Ai).then(function(){bn(Ai,Xi,Fi,No-1)})}).catch(Fi);Fi(ui)}}function Wn(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function $r(Ai){var Xi=this,Fi={db:null};if(Ai)for(var No in Ai)Fi[No]=Ai[No];var yr=Xe[Fi.name];yr||(yr=Wn(),Xe[Fi.name]=yr),yr.forages.push(Xi),Xi._initReady||(Xi._initReady=Xi.ready,Xi.ready=$t);var ui=[];function Zo(){return K.resolve()}for(var ns=0;ns>4,hn[yr++]=(Zo&15)<<4|ns>>2,hn[yr++]=(ns&3)<<6|Lr&63;return Ei}function Uo(Ai){var Xi=new Uint8Array(Ai),Fi="",No;for(No=0;No>2],Fi+=ai[(Xi[No]&3)<<4|Xi[No+1]>>4],Fi+=ai[(Xi[No+1]&15)<<2|Xi[No+2]>>6],Fi+=ai[Xi[No+2]&63];return Xi.length%3===2?Fi=Fi.substring(0,Fi.length-1)+"=":Xi.length%3===1&&(Fi=Fi.substring(0,Fi.length-2)+"=="),Fi}function Fn(Ai,Xi){var Fi="";if(Ai&&(Fi=jr.call(Ai)),Ai&&(Fi==="[object ArrayBuffer]"||Ai.buffer&&jr.call(Ai.buffer)==="[object ArrayBuffer]")){var No,yr=nt;Ai instanceof ArrayBuffer?(No=Ai,yr+=Kt):(No=Ai.buffer,Fi==="[object Int8Array]"?yr+=kn:Fi==="[object Uint8Array]"?yr+=an:Fi==="[object Uint8ClampedArray]"?yr+=tn:Fi==="[object Int16Array]"?yr+=kt:Fi==="[object Uint16Array]"?yr+=Vn:Fi==="[object Int32Array]"?yr+=en:Fi==="[object Uint32Array]"?yr+=on:Fi==="[object Float32Array]"?yr+=Dr:Fi==="[object Float64Array]"?yr+=oi:Xi(new Error("Failed to get type for BinaryArray"))),Xi(yr+Uo(No))}else if(Fi==="[object Blob]"){var ui=new FileReader;ui.onload=function(){var Zo=$o+Ai.type+"~"+Uo(this.result);Xi(nt+mn+Zo)},ui.readAsArrayBuffer(Ai)}else try{Xi(JSON.stringify(Ai))}catch(Zo){console.error("Couldn't convert value into a JSON string: ",Ai),Xi(null,Zo)}}function Qr(Ai){if(Ai.substring(0,Dt)!==nt)return JSON.parse(Ai);var Xi=Ai.substring(Ii),Fi=Ai.substring(Dt,Ii),No;if(Fi===mn&&Mn.test(Xi)){var yr=Xi.match(Mn);No=yr[1],Xi=Xi.substring(yr[0].length)}var ui=eo(Xi);switch(Fi){case Kt:return ui;case mn:return k([ui],{type:No});case kn:return new Int8Array(ui);case an:return new Uint8Array(ui);case tn:return new Uint8ClampedArray(ui);case kt:return new Int16Array(ui);case Vn:return new Uint16Array(ui);case en:return new Int32Array(ui);case on:return new Uint32Array(ui);case Dr:return new Float32Array(ui);case oi:return new Float64Array(ui);default:throw new Error("Unkown type: "+Fi)}}var ci={serialize:Fn,deserialize:Qr,stringToBuffer:eo,bufferToString:Uo};function ji(Ai,Xi,Fi,No){Ai.executeSql("CREATE TABLE IF NOT EXISTS "+Xi.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Fi,No)}function cr(Ai){var Xi=this,Fi={db:null};if(Ai)for(var No in Ai)Fi[No]=typeof Ai[No]!="string"?Ai[No].toString():Ai[No];var yr=new K(function(ui,Zo){try{Fi.db=openDatabase(Fi.name,String(Fi.version),Fi.description,Fi.size)}catch(ns){return Zo(ns)}Fi.db.transaction(function(ns){ji(ns,Fi,function(){Xi._dbInfo=Fi,ui()},function(Lr,Ei){Zo(Ei)})},Zo)});return Fi.serializer=ci,yr}function Qn(Ai,Xi,Fi,No,yr,ui){Ai.executeSql(Fi,No,yr,function(Zo,ns){ns.code===ns.SYNTAX_ERR?Zo.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Xi.storeName],function(Lr,Ei){Ei.rows.length?ui(Lr,ns):ji(Lr,Xi,function(){Lr.executeSql(Fi,No,yr,ui)},ui)},ui):ui(Zo,ns)},ui)}function Vt(Ai,Xi){var Fi=this;Ai=fe(Ai);var No=new K(function(yr,ui){Fi.ready().then(function(){var Zo=Fi._dbInfo;Zo.db.transaction(function(ns){Qn(ns,Zo,"SELECT * FROM "+Zo.storeName+" WHERE key = ? LIMIT 1",[Ai],function(Lr,Ei){var hn=Ei.rows.length?Ei.rows.item(0).value:null;hn&&(hn=Zo.serializer.deserialize(hn)),yr(hn)},function(Lr,Ei){ui(Ei)})})}).catch(ui)});return he(No,Xi),No}function Yt(Ai,Xi){var Fi=this,No=new K(function(yr,ui){Fi.ready().then(function(){var Zo=Fi._dbInfo;Zo.db.transaction(function(ns){Qn(ns,Zo,"SELECT * FROM "+Zo.storeName,[],function(Lr,Ei){for(var hn=Ei.rows,Tn=hn.length,ar=0;ar0){Zo(En.apply(yr,[Ai,Lr,Fi,No-1]));return}ns(ar)}})})}).catch(ns)});return he(ui,Fi),ui}function er(Ai,Xi,Fi){return En.apply(this,[Ai,Xi,Fi,1])}function Tr(Ai,Xi){var Fi=this;Ai=fe(Ai);var No=new K(function(yr,ui){Fi.ready().then(function(){var Zo=Fi._dbInfo;Zo.db.transaction(function(ns){Qn(ns,Zo,"DELETE FROM "+Zo.storeName+" WHERE key = ?",[Ai],function(){yr()},function(Lr,Ei){ui(Ei)})})}).catch(ui)});return he(No,Xi),No}function Nr(Ai){var Xi=this,Fi=new K(function(No,yr){Xi.ready().then(function(){var ui=Xi._dbInfo;ui.db.transaction(function(Zo){Qn(Zo,ui,"DELETE FROM "+ui.storeName,[],function(){No()},function(ns,Lr){yr(Lr)})})}).catch(yr)});return he(Fi,Ai),Fi}function Zn(Ai){var Xi=this,Fi=new K(function(No,yr){Xi.ready().then(function(){var ui=Xi._dbInfo;ui.db.transaction(function(Zo){Qn(Zo,ui,"SELECT COUNT(key) as c FROM "+ui.storeName,[],function(ns,Lr){var Ei=Lr.rows.item(0).c;No(Ei)},function(ns,Lr){yr(Lr)})})}).catch(yr)});return he(Fi,Ai),Fi}function Ut(Ai,Xi){var Fi=this,No=new K(function(yr,ui){Fi.ready().then(function(){var Zo=Fi._dbInfo;Zo.db.transaction(function(ns){Qn(ns,Zo,"SELECT key FROM "+Zo.storeName+" WHERE id = ? LIMIT 1",[Ai+1],function(Lr,Ei){var hn=Ei.rows.length?Ei.rows.item(0).key:null;yr(hn)},function(Lr,Ei){ui(Ei)})})}).catch(ui)});return he(No,Xi),No}function $n(Ai){var Xi=this,Fi=new K(function(No,yr){Xi.ready().then(function(){var ui=Xi._dbInfo;ui.db.transaction(function(Zo){Qn(Zo,ui,"SELECT key FROM "+ui.storeName,[],function(ns,Lr){for(var Ei=[],hn=0;hn '__WebKitDatabaseInfoTable__'",[],function(yr,ui){for(var Zo=[],ns=0;ns0}function Mi(Ai){var Xi=this,Fi={};if(Ai)for(var No in Ai)Fi[No]=Ai[No];return Fi.keyPrefix=xn(Ai,Xi._defaultConfig),qr()?(Xi._dbInfo=Fi,Fi.serializer=ci,K.resolve()):K.reject()}function zi(Ai){var Xi=this,Fi=Xi.ready().then(function(){for(var No=Xi._dbInfo.keyPrefix,yr=localStorage.length-1;yr>=0;yr--){var ui=localStorage.key(yr);ui.indexOf(No)===0&&localStorage.removeItem(ui)}});return he(Fi,Ai),Fi}function Yi(Ai,Xi){var Fi=this;Ai=fe(Ai);var No=Fi.ready().then(function(){var yr=Fi._dbInfo,ui=localStorage.getItem(yr.keyPrefix+Ai);return ui&&(ui=yr.serializer.deserialize(ui)),ui});return he(No,Xi),No}function Si(Ai,Xi){var Fi=this,No=Fi.ready().then(function(){for(var yr=Fi._dbInfo,ui=yr.keyPrefix,Zo=ui.length,ns=localStorage.length,Lr=1,Ei=0;Ei=0;Zo--){var ns=localStorage.key(Zo);ns.indexOf(ui)===0&&localStorage.removeItem(ns)}}):yr=K.reject("Invalid arguments"),he(yr,Xi),yr}var rr={_driver:"localStorageWrapper",_initStorage:Mi,_support:Qt(),iterate:Si,getItem:Yi,setItem:nr,removeItem:ii,clear:zi,length:Vr,key:ni,keys:qi,dropInstance:Mr},to=function(Xi,Fi){return Xi===Fi||typeof Xi=="number"&&typeof Fi=="number"&&isNaN(Xi)&&isNaN(Fi)},ts=function(Xi,Fi){for(var No=Xi.length,yr=0;yr-1}gt.exports=R},1196:function(gt){function Y(_,v,R){for(var w=-1,b=_==null?0:_.length;++w=v?_:v)),_}gt.exports=Y},85990:function(gt,Y,_){var v=_(46384),R=_(77412),w=_(34865),b=_(44037),B=_(63886),V=_(64626),O=_(278),L=_(18805),S=_(1911),g=_(58234),T=_(46904),k=_(64160),K=_(43824),he=_(29148),ae=_(38517),fe=_(1469),_e=_(44144),be=_(56688),xe=_(13218),Xe=_(72928),We=_(3674),dt=_(81704),Me=1,Se=2,ze=4,De="[object Arguments]",ke="[object Array]",$e="[object Boolean]",Te="[object Date]",tt="[object Error]",Oe="[object Function]",Xt="[object GeneratorFunction]",Ft="[object Map]",ot="[object Number]",xt="[object Object]",ut="[object RegExp]",$t="[object Set]",_t="[object String]",bn="[object Symbol]",Wn="[object WeakMap]",$r="[object ArrayBuffer]",wi="[object DataView]",oo="[object Float32Array]",Mo="[object Float64Array]",Ti="[object Int8Array]",Hr="[object Int16Array]",Ho="[object Int32Array]",Ss="[object Uint8Array]",Pe="[object Uint8ClampedArray]",qo="[object Uint16Array]",Ki="[object Uint32Array]",Do={};Do[De]=Do[ke]=Do[$r]=Do[wi]=Do[$e]=Do[Te]=Do[oo]=Do[Mo]=Do[Ti]=Do[Hr]=Do[Ho]=Do[Ft]=Do[ot]=Do[xt]=Do[ut]=Do[$t]=Do[_t]=Do[bn]=Do[Ss]=Do[Pe]=Do[qo]=Do[Ki]=!0,Do[tt]=Do[Oe]=Do[Wn]=!1;function ai($o,Mn,nt,Dt,Kt,mn){var kn,an=Mn&Me,tn=Mn&Se,kt=Mn&ze;if(nt&&(kn=Kt?nt($o,Dt,Kt,mn):nt($o)),kn!==void 0)return kn;if(!xe($o))return $o;var en=fe($o);if(en){if(kn=K($o),!an)return O($o,kn)}else{var Vn=k($o),on=Vn==Oe||Vn==Xt;if(_e($o))return V($o,an);if(Vn==xt||Vn==De||on&&!Kt){if(kn=tn||on?{}:ae($o),!an)return tn?S($o,B(kn,$o)):L($o,b(kn,$o))}else{if(!Do[Vn])return Kt?$o:{};kn=he($o,Vn,an)}}mn||(mn=new v);var Dr=mn.get($o);if(Dr)return Dr;mn.set($o,kn),Xe($o)?$o.forEach(function(jr){kn.add(ai(jr,Mn,nt,jr,$o,mn))}):be($o)&&$o.forEach(function(jr,eo){kn.set(eo,ai(jr,Mn,nt,eo,$o,mn))});var oi=kt?tn?T:g:tn?dt:We,Ii=en?void 0:oi($o);return R(Ii||$o,function(jr,eo){Ii&&(eo=jr,jr=$o[eo]),w(kn,eo,ai(jr,Mn,nt,eo,$o,mn))}),kn}gt.exports=ai},3118:function(gt,Y,_){var v=_(13218),R=Object.create,w=function(){function b(){}return function(B){if(!v(B))return{};if(R)return R(B);b.prototype=B;var V=new b;return b.prototype=void 0,V}}();gt.exports=w},41848:function(gt){function Y(_,v,R,w){for(var b=_.length,B=R+(w?1:-1);w?B--:++B-1;)fe!==S&&O.call(fe,_e,1),O.call(S,_e,1);return S}gt.exports=L},5976:function(gt,Y,_){var v=_(6557),R=_(45357),w=_(30061);function b(B,V){return w(R(B,V,v),B+"")}gt.exports=b},56560:function(gt,Y,_){var v=_(75703),R=_(38777),w=_(6557),b=R?function(B,V){return R(B,"toString",{configurable:!0,enumerable:!1,value:v(V),writable:!0})}:w;gt.exports=b},14259:function(gt){function Y(_,v,R){var w=-1,b=_.length;v<0&&(v=-v>b?0:b+v),R=R>b?b:R,R<0&&(R+=b),b=v>R?0:R-v>>>0,v>>>=0;for(var B=Array(b);++w=O){var be=g?null:B(S);if(be)return V(be);ae=!1,K=b,_e=new v}else _e=g?[]:fe;e:for(;++k=V?w:v(w,b,B)}gt.exports=R},74318:function(gt,Y,_){var v=_(11149);function R(w){var b=new w.constructor(w.byteLength);return new v(b).set(new v(w)),b}gt.exports=R},64626:function(gt,Y,_){gt=_.nmd(gt);var v=_(55639),R=Y&&!Y.nodeType&&Y,w=R&&!0&>&&!gt.nodeType&>,b=w&&w.exports===R,B=b?v.Buffer:void 0,V=B?B.allocUnsafe:void 0;function O(L,S){if(S)return L.slice();var g=L.length,T=V?V(g):new L.constructor(g);return L.copy(T),T}gt.exports=O},57157:function(gt,Y,_){var v=_(74318);function R(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.byteLength)}gt.exports=R},93147:function(gt){var Y=/\w*$/;function _(v){var R=new v.constructor(v.source,Y.exec(v));return R.lastIndex=v.lastIndex,R}gt.exports=_},40419:function(gt,Y,_){var v=_(62705),R=v?v.prototype:void 0,w=R?R.valueOf:void 0;function b(B){return w?Object(w.call(B)):{}}gt.exports=b},77133:function(gt,Y,_){var v=_(74318);function R(w,b){var B=b?v(w.buffer):w.buffer;return new w.constructor(B,w.byteOffset,w.length)}gt.exports=R},278:function(gt){function Y(_,v){var R=-1,w=_.length;for(v||(v=Array(w));++R1?V[L-1]:void 0,g=L>2?V[2]:void 0;for(S=b.length>3&&typeof S=="function"?(L--,S):void 0,g&&R(V[0],V[1],g)&&(S=L<3?void 0:S,L=1),B=Object(B);++Ohe))return!1;var fe=k.get(O),_e=k.get(L);if(fe&&_e)return fe==L&&_e==O;var be=-1,xe=!0,Xe=S&B?new v:void 0;for(k.set(O,L),k.set(L,O);++be-1&&R%1==0&&R-1}gt.exports=R},44264:function(gt,Y,_){var v=_(18470);function R(w,b){var B=this.__data__,V=v(B,w);return V<0?(++this.size,B.push([w,b])):B[V][1]=b,this}gt.exports=R},24785:function(gt,Y,_){var v=_(1989),R=_(38407),w=_(57071);function b(){this.size=0,this.__data__={hash:new v,map:new(w||R),string:new v}}gt.exports=b},11285:function(gt,Y,_){var v=_(45050);function R(w){var b=v(this,w).delete(w);return this.size-=b?1:0,b}gt.exports=R},96e3:function(gt,Y,_){var v=_(45050);function R(w){return v(this,w).get(w)}gt.exports=R},49916:function(gt,Y,_){var v=_(45050);function R(w){return v(this,w).has(w)}gt.exports=R},95265:function(gt,Y,_){var v=_(45050);function R(w,b){var B=v(this,w),V=B.size;return B.set(w,b),this.size+=B.size==V?0:1,this}gt.exports=R},68776:function(gt){function Y(_){var v=-1,R=Array(_.size);return _.forEach(function(w,b){R[++v]=[b,w]}),R}gt.exports=Y},24523:function(gt,Y,_){var v=_(88306),R=500;function w(b){var B=v(b,function(O){return V.size===R&&V.clear(),O}),V=B.cache;return B}gt.exports=w},94536:function(gt,Y,_){var v=_(10852),R=v(Object,"create");gt.exports=R},86916:function(gt,Y,_){var v=_(5569),R=v(Object.keys,Object);gt.exports=R},33498:function(gt){function Y(_){var v=[];if(_!=null)for(var R in Object(_))v.push(R);return v}gt.exports=Y},31167:function(gt,Y,_){gt=_.nmd(gt);var v=_(31957),R=Y&&!Y.nodeType&&Y,w=R&&!0&>&&!gt.nodeType&>,b=w&&w.exports===R,B=b&&v.process,V=function(){try{var O=w&&w.require&&w.require("util").types;return O||B&&B.binding&&B.binding("util")}catch(L){}}();gt.exports=V},2333:function(gt){var Y=Object.prototype,_=Y.toString;function v(R){return _.call(R)}gt.exports=v},5569:function(gt){function Y(_,v){return function(R){return _(v(R))}}gt.exports=Y},45357:function(gt,Y,_){var v=_(96874),R=Math.max;function w(b,B,V){return B=R(B===void 0?b.length-1:B,0),function(){for(var O=arguments,L=-1,S=R(O.length-B,0),g=Array(S);++L0){if(++b>=Y)return arguments[0]}else b=0;return w.apply(void 0,arguments)}}gt.exports=R},37465:function(gt,Y,_){var v=_(38407);function R(){this.__data__=new v,this.size=0}gt.exports=R},63779:function(gt){function Y(_){var v=this.__data__,R=v.delete(_);return this.size=v.size,R}gt.exports=Y},67599:function(gt){function Y(_){return this.__data__.get(_)}gt.exports=Y},44758:function(gt){function Y(_){return this.__data__.has(_)}gt.exports=Y},34309:function(gt,Y,_){var v=_(38407),R=_(57071),w=_(83369),b=200;function B(V,O){var L=this.__data__;if(L instanceof v){var S=L.__data__;if(!R||S.length=S||Oe<0||xe&&Xt>=K}function ze(){var tt=R();if(Se(tt))return De(tt);ae=setTimeout(ze,Me(tt))}function De(tt){return ae=void 0,Xe&&T?We(tt):(T=k=void 0,he)}function ke(){ae!==void 0&&clearTimeout(ae),_e=0,T=fe=k=ae=void 0}function $e(){return ae===void 0?he:De(R())}function Te(){var tt=R(),Oe=Se(tt);if(T=arguments,k=this,fe=tt,Oe){if(ae===void 0)return dt(fe);if(xe)return clearTimeout(ae),ae=setTimeout(ze,S),We(fe)}return ae===void 0&&(ae=setTimeout(ze,S)),he}return Te.cancel=ke,Te.flush=$e,Te}gt.exports=O},53816:function(gt,Y,_){var v=_(69389),R=_(79833),w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b="\\u0300-\\u036f",B="\\ufe20-\\ufe2f",V="\\u20d0-\\u20ff",O=b+B+V,L="["+O+"]",S=RegExp(L,"g");function g(T){return T=R(T),T&&T.replace(w,v).replace(S,"")}gt.exports=g},77813:function(gt){function Y(_,v){return _===v||_!==_&&v!==v}gt.exports=Y},27361:function(gt,Y,_){var v=_(97786);function R(w,b,B){var V=w==null?void 0:v(w,b);return V===void 0?B:V}gt.exports=R},6557:function(gt){function Y(_){return _}gt.exports=Y},35694:function(gt,Y,_){var v=_(9454),R=_(37005),w=Object.prototype,b=w.hasOwnProperty,B=w.propertyIsEnumerable,V=v(function(){return arguments}())?v:function(O){return R(O)&&b.call(O,"callee")&&!B.call(O,"callee")};gt.exports=V},1469:function(gt){var Y=Array.isArray;gt.exports=Y},98612:function(gt,Y,_){var v=_(23560),R=_(41780);function w(b){return b!=null&&R(b.length)&&!v(b)}gt.exports=w},29246:function(gt,Y,_){var v=_(98612),R=_(37005);function w(b){return R(b)&&v(b)}gt.exports=w},51584:function(gt,Y,_){var v=_(44239),R=_(37005),w="[object Boolean]";function b(B){return B===!0||B===!1||R(B)&&v(B)==w}gt.exports=b},44144:function(gt,Y,_){gt=_.nmd(gt);var v=_(55639),R=_(95062),w=Y&&!Y.nodeType&&Y,b=w&&!0&>&&!gt.nodeType&>,B=b&&b.exports===w,V=B?v.Buffer:void 0,O=V?V.isBuffer:void 0,L=O||R;gt.exports=L},18446:function(gt,Y,_){var v=_(90939);function R(w,b){return v(w,b)}gt.exports=R},23560:function(gt,Y,_){var v=_(44239),R=_(13218),w="[object AsyncFunction]",b="[object Function]",B="[object GeneratorFunction]",V="[object Proxy]";function O(L){if(!R(L))return!1;var S=v(L);return S==b||S==B||S==w||S==V}gt.exports=O},41780:function(gt){var Y=9007199254740991;function _(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=Y}gt.exports=_},56688:function(gt,Y,_){var v=_(25588),R=_(7518),w=_(31167),b=w&&w.isMap,B=b?R(b):v;gt.exports=B},14293:function(gt){function Y(_){return _==null}gt.exports=Y},81763:function(gt,Y,_){var v=_(44239),R=_(37005),w="[object Number]";function b(B){return typeof B=="number"||R(B)&&v(B)==w}gt.exports=b},13218:function(gt){function Y(_){var v=typeof _;return _!=null&&(v=="object"||v=="function")}gt.exports=Y},37005:function(gt){function Y(_){return _!=null&&typeof _=="object"}gt.exports=Y},68630:function(gt,Y,_){var v=_(44239),R=_(85924),w=_(37005),b="[object Object]",B=Function.prototype,V=Object.prototype,O=B.toString,L=V.hasOwnProperty,S=O.call(Object);function g(T){if(!w(T)||v(T)!=b)return!1;var k=R(T);if(k===null)return!0;var K=L.call(k,"constructor")&&k.constructor;return typeof K=="function"&&K instanceof K&&O.call(K)==S}gt.exports=g},72928:function(gt,Y,_){var v=_(29221),R=_(7518),w=_(31167),b=w&&w.isSet,B=b?R(b):v;gt.exports=B},47037:function(gt,Y,_){var v=_(44239),R=_(1469),w=_(37005),b="[object String]";function B(V){return typeof V=="string"||!R(V)&&w(V)&&v(V)==b}gt.exports=B},33448:function(gt,Y,_){var v=_(44239),R=_(37005),w="[object Symbol]";function b(B){return typeof B=="symbol"||R(B)&&v(B)==w}gt.exports=b},36719:function(gt,Y,_){var v=_(38749),R=_(7518),w=_(31167),b=w&&w.isTypedArray,B=b?R(b):v;gt.exports=B},52353:function(gt){function Y(_){return _===void 0}gt.exports=Y},3674:function(gt,Y,_){var v=_(14636),R=_(280),w=_(98612);function b(B){return w(B)?v(B):R(B)}gt.exports=b},81704:function(gt,Y,_){var v=_(14636),R=_(35014),w=_(98612);function b(B){return w(B)?v(B,!0):R(B)}gt.exports=b},96486:function(gt,Y,_){gt=_.nmd(gt);var v;(function(){var R,w="4.17.21",b=200,B="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",V="Expected a function",O="Invalid `variable` option passed into `_.template`",L="__lodash_hash_undefined__",S=500,g="__lodash_placeholder__",T=1,k=2,K=4,he=1,ae=2,fe=1,_e=2,be=4,xe=8,Xe=16,We=32,dt=64,Me=128,Se=256,ze=512,De=30,ke="...",$e=800,Te=16,tt=1,Oe=2,Xt=3,Ft=1/0,ot=9007199254740991,xt=17976931348623157e292,ut=0/0,$t=4294967295,_t=$t-1,bn=$t>>>1,Wn=[["ary",Me],["bind",fe],["bindKey",_e],["curry",xe],["curryRight",Xe],["flip",ze],["partial",We],["partialRight",dt],["rearg",Se]],$r="[object Arguments]",wi="[object Array]",oo="[object AsyncFunction]",Mo="[object Boolean]",Ti="[object Date]",Hr="[object DOMException]",Ho="[object Error]",Ss="[object Function]",Pe="[object GeneratorFunction]",qo="[object Map]",Ki="[object Number]",Do="[object Null]",ai="[object Object]",$o="[object Promise]",Mn="[object Proxy]",nt="[object RegExp]",Dt="[object Set]",Kt="[object String]",mn="[object Symbol]",kn="[object Undefined]",an="[object WeakMap]",tn="[object WeakSet]",kt="[object ArrayBuffer]",en="[object DataView]",Vn="[object Float32Array]",on="[object Float64Array]",Dr="[object Int8Array]",oi="[object Int16Array]",Ii="[object Int32Array]",jr="[object Uint8Array]",eo="[object Uint8ClampedArray]",Uo="[object Uint16Array]",Fn="[object Uint32Array]",Qr=/\b__p \+= '';/g,ci=/\b(__p \+=) '' \+/g,ji=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cr=/&(?:amp|lt|gt|quot|#39);/g,Qn=/[&<>"']/g,Vt=RegExp(cr.source),Yt=RegExp(Qn.source),En=/<%-([\s\S]+?)%>/g,er=/<%([\s\S]+?)%>/g,Tr=/<%=([\s\S]+?)%>/g,Nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zn=/^\w*$/,Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$n=/[\\^$.*+?()[\]{}|]/g,xr=RegExp($n.source),Br=/^\s+/,_o=/\s/,Qt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xn=/\{\n\/\* \[wrapped with (.+)\] \*/,Sr=/,? & /,qr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mi=/[()=,{}\[\]\/\s]/,zi=/\\(\\)?/g,Yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Si=/\w*$/,ni=/^[-+]0x[0-9a-f]+$/i,qi=/^0b[01]+$/i,Vr=/^\[object .+?Constructor\]$/,ii=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,Mr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rr=/($^)/,to=/['\n\r\u2028\u2029\\]/g,ts="\\ud800-\\udfff",Wr="\\u0300-\\u036f",no="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",Pn=Wr+no+Vi,mi="\\u2700-\\u27bf",ya="a-z\\xdf-\\xf6\\xf8-\\xff",Zs="\\xac\\xb1\\xd7\\xf7",qs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",al="\\u2000-\\u206f",co=" \\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",tl="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",Ai=Zs+qs+al+co,Xi="['\u2019]",Fi="["+ts+"]",No="["+Ai+"]",yr="["+Pn+"]",ui="\\d+",Zo="["+mi+"]",ns="["+ya+"]",Lr="[^"+ts+Ai+ui+mi+ya+tl+"]",Ei="\\ud83c[\\udffb-\\udfff]",hn="(?:"+yr+"|"+Ei+")",Tn="[^"+ts+"]",ar="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+tl+"]",At="\\u200d",Ye="(?:"+ns+"|"+Lr+")",Et="(?:"+wt+"|"+Lr+")",Wt="(?:"+Xi+"(?:d|ll|m|re|s|t|ve))?",vn="(?:"+Xi+"(?:D|LL|M|RE|S|T|VE))?",Er=hn+"?",Gr="["+fl+"]?",Gi="(?:"+At+"(?:"+[Tn,ar,ft].join("|")+")"+Gr+Er+")*",ko="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ms=Gr+Er+Gi,ps="(?:"+[Zo,ar,ft].join("|")+")"+ms,Js="(?:"+[Tn+yr+"?",yr,ar,ft,Fi].join("|")+")",Hs=RegExp(Xi,"g"),Po=RegExp(yr,"g"),zs=RegExp(Ei+"(?="+Ei+")|"+Js+ms,"g"),ma=RegExp([wt+"?"+ns+"+"+Wt+"(?="+[No,wt,"$"].join("|")+")",Et+"+"+vn+"(?="+[No,wt+Ye,"$"].join("|")+")",wt+"?"+Ye+"+"+Wt,wt+"+"+vn,Bi,ko,ui,ps].join("|"),"g"),va=RegExp("["+At+ts+Pn+fl+"]"),El=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ns=-1,Ca={};Ca[Vn]=Ca[on]=Ca[Dr]=Ca[oi]=Ca[Ii]=Ca[jr]=Ca[eo]=Ca[Uo]=Ca[Fn]=!0,Ca[$r]=Ca[wi]=Ca[kt]=Ca[Mo]=Ca[en]=Ca[Ti]=Ca[Ho]=Ca[Ss]=Ca[qo]=Ca[Ki]=Ca[ai]=Ca[nt]=Ca[Dt]=Ca[Kt]=Ca[an]=!1;var vl={};vl[$r]=vl[wi]=vl[kt]=vl[en]=vl[Mo]=vl[Ti]=vl[Vn]=vl[on]=vl[Dr]=vl[oi]=vl[Ii]=vl[qo]=vl[Ki]=vl[ai]=vl[nt]=vl[Dt]=vl[Kt]=vl[mn]=vl[jr]=vl[eo]=vl[Uo]=vl[Fn]=!0,vl[Ho]=vl[Ss]=vl[an]=!1;var ds={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},io={"&":"&","<":"<",">":">",'"':""","'":"'"},Ko={"&":"&","<":"<",">":">",""":'"',"'":"'"},As={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ks=parseFloat,Ga=parseInt,zu=typeof _.g=="object"&&_.g&&_.g.Object===Object&&_.g,Ac=typeof self=="object"&&self&&self.Object===Object&&self,vc=zu||Ac||Function("return this")(),ec=Y&&!Y.nodeType&&Y,qu=ec&&!0&>&&!gt.nodeType&>,Uu=qu&&qu.exports===ec,zn=Uu&&zu.process,ur=function(){try{var Ba=qu&&qu.require&&qu.require("util").types;return Ba||zn&&zn.binding&&zn.binding("util")}catch(Mu){}}(),Zr=ur&&ur.isArrayBuffer,Jr=ur&&ur.isDate,_i=ur&&ur.isMap,so=ur&&ur.isRegExp,Ui=ur&&ur.isSet,hs=ur&&ur.isTypedArray;function ra(Ba,Mu,Zl){switch(Zl.length){case 0:return Ba.call(Mu);case 1:return Ba.call(Mu,Zl[0]);case 2:return Ba.call(Mu,Zl[0],Zl[1]);case 3:return Ba.call(Mu,Zl[0],Zl[1],Zl[2])}return Ba.apply(Mu,Zl)}function Ka(Ba,Mu,Zl,Au){for(var Wu=-1,Qh=Ba==null?0:Ba.length;++Wu-1}function Na(Ba,Mu,Zl){for(var Au=-1,Wu=Ba==null?0:Ba.length;++Au-1;);return Zl}function xh(Ba,Mu){for(var Zl=Ba.length;Zl--&&Qs(Mu,Ba[Zl],0)>-1;);return Zl}function Cd(Ba,Mu){for(var Zl=Ba.length,Au=0;Zl--;)Ba[Zl]===Mu&&++Au;return Au}var md=Tu(ds),Bd=Tu(io);function zd(Ba){return"\\"+As[Ba]}function Dh(Ba,Mu){return Ba==null?R:Ba[Mu]}function gh(Ba){return va.test(Ba)}function ap(Ba){return El.test(Ba)}function pd(Ba){for(var Mu,Zl=[];!(Mu=Ba.next()).done;)Zl.push(Mu.value);return Zl}function Nu(Ba){var Mu=-1,Zl=Array(Ba.size);return Ba.forEach(function(Au,Wu){Zl[++Mu]=[Wu,Au]}),Zl}function oh(Ba,Mu){return function(Zl){return Ba(Mu(Zl))}}function Ud(Ba,Mu){for(var Zl=-1,Au=Ba.length,Wu=0,Qh=[];++Zl-1}function J(ye,Qe){var dn=this.__data__,si=Ru(dn,ye);return si<0?(++this.size,dn.push([ye,Qe])):dn[si][1]=Qe,this}Gt.prototype.clear=rn,Gt.prototype.delete=Un,Gt.prototype.get=Ir,Gt.prototype.has=G,Gt.prototype.set=J;function Q(ye){var Qe=-1,dn=ye==null?0:ye.length;for(this.clear();++Qe=Qe?ye:Qe)),ye}function kd(ye,Qe,dn,si,ls,xa){var ql,du=Qe&T,rc=Qe&k,Fh=Qe&K;if(dn&&(ql=ls?dn(ye,si,ls,xa):dn(ye)),ql!==R)return ql;if(!ml(ye))return ye;var $h=ve(ye);if($h){if(ql=yo(ye),!du)return Rt(ye,ql)}else{var cd=Ps(ye),Mf=cd==Ss||cd==Pe;if(wn(ye))return ln(ye,du);if(cd==ai||cd==$r||Mf&&!ls){if(ql=rc||Mf?{}:Ws(ye),!du)return rc?pr(ye,Qc(ql,ye)):dr(ye,Ju(ql,ye))}else{if(!vl[cd])return ls?ye:{};ql=_s(ye,cd,du)}}xa||(xa=new Oi);var wp=xa.get(ye);if(wp)return wp;xa.set(ye,ql),cf(ye)?ye.forEach(function(wg){ql.add(kd(wg,Qe,dn,wg,ye,xa))}):Zu(ye)&&ye.forEach(function(wg,fm){ql.set(fm,kd(wg,Qe,dn,fm,ye,xa))});var og=Fh?rc?vs:fs:rc?av:km,sg=$h?R:og(ye);return ul(sg||ye,function(wg,fm){sg&&(fm=wg,wg=ye[fm]),mu(ql,fm,kd(wg,Qe,dn,fm,ye,xa))}),ql}function Hc(ye){var Qe=km(ye);return function(dn){return Sc(dn,ye,Qe)}}function Sc(ye,Qe,dn){var si=dn.length;if(ye==null)return!si;for(ye=Bh(ye);si--;){var ls=dn[si],xa=Qe[ls],ql=ye[ls];if(ql===R&&!(ls in ye)||!xa(ql))return!1}return!0}function Gd(ye,Qe,dn){if(typeof ye!="function")throw new Yd(V);return $l(function(){ye.apply(R,dn)},Qe)}function Od(ye,Qe,dn,si){var ls=-1,xa=Xu,ql=!0,du=ye.length,rc=[],Fh=Qe.length;if(!du)return rc;dn&&(Qe=Aa(Qe,ph(dn))),si?(xa=Na,ql=!1):Qe.length>=b&&(xa=xc,ql=!1,Qe=new _r(Qe));e:for(;++lsls?0:ls+dn),si=si===R||si>ls?ls:cc(si),si<0&&(si+=ls),si=dn>si?0:Kh(si);dn0&&dn(du)?Qe>1?fp(du,Qe-1,dn,si,ls):ll(ls,du):si||(ls[ls.length]=du)}return ls}var Uc=kr(),yc=kr(!0);function rh(ye,Qe){return ye&&Uc(ye,Qe,km)}function uh(ye,Qe){return ye&&yc(ye,Qe,km)}function Gh(ye,Qe){return Va(Qe,function(dn){return Ma(ye[dn])})}function wc(ye,Qe){Qe=yt(Qe,ye);for(var dn=0,si=Qe.length;ye!=null&&dnQe}function Fo(ye,Qe){return ye!=null&&Tf.call(ye,Qe)}function Pg(ye,Qe){return ye!=null&&Qe in Bh(ye)}function Np(ye,Qe,dn){return ye>=up(Qe,dn)&&ye=120&&$h.length>=120)?new _r(ql&&$h):R}$h=ye[0];var cd=-1,Mf=du[0];e:for(;++cd-1;)du!==ye&&Ng.call(du,rc,1),Ng.call(ye,rc,1);return ye}function Lg(ye,Qe){for(var dn=ye?Qe.length:0,si=dn-1;dn--;){var ls=Qe[dn];if(dn==si||ls!==xa){var xa=ls;xl(ls)?Ng.call(ye,ls,1):Fm(ye,ls)}}return ye}function sv(ye,Qe){return ye+Ip(Pp()*(Qe-ye+1))}function Zf(ye,Qe,dn,si){for(var ls=-1,xa=wf(Ph((Qe-ye)/(dn||1)),0),ql=Zl(xa);xa--;)ql[si?xa:++ls]=ye,ye+=dn;return ql}function Ep(ye,Qe){var dn="";if(!ye||Qe<1||Qe>ot)return dn;do Qe%2&&(dn+=ye),Qe=Ip(Qe/2),Qe&&(ye+=ye);while(Qe);return dn}function pf(ye,Qe){return ed(hu(ye,Qe,p1),ye+"")}function O0(ye){return Ja(M0(ye))}function N0(ye,Qe){var dn=M0(ye);return mt(dn,Rh(Qe,0,dn.length))}function hm(ye,Qe,dn,si){if(!ml(ye))return ye;Qe=yt(Qe,ye);for(var ls=-1,xa=Qe.length,ql=xa-1,du=ye;du!=null&&++lsls?0:ls+Qe),dn=dn>ls?ls:dn,dn<0&&(dn+=ls),ls=Qe>dn?0:dn-Qe>>>0,Qe>>>=0;for(var xa=Zl(ls);++si>>1,ql=ye[xa];ql!==null&&!bg(ql)&&(dn?ql<=Qe:ql=b){var Fh=Qe?null:Pi(ye);if(Fh)return uf(Fh);ql=!1,ls=xc,rc=new _r}else rc=Qe?[]:du;e:for(;++si=si?ye:Md(ye,Qe,dn)}var cn=Eg||function(ye){return vc.clearTimeout(ye)};function ln(ye,Qe){if(Qe)return ye.slice();var dn=ye.length,si=uc?uc(dn):new ye.constructor(dn);return ye.copy(si),si}function gn(ye){var Qe=new ye.constructor(ye.byteLength);return new fg(Qe).set(new fg(ye)),Qe}function Dn(ye,Qe){var dn=Qe?gn(ye.buffer):ye.buffer;return new ye.constructor(dn,ye.byteOffset,ye.byteLength)}function Gn(ye){var Qe=new ye.constructor(ye.source,Si.exec(ye));return Qe.lastIndex=ye.lastIndex,Qe}function fr(ye){return Xh?Bh(Xh.call(ye)):{}}function Fr(ye,Qe){var dn=Qe?gn(ye.buffer):ye.buffer;return new ye.constructor(dn,ye.byteOffset,ye.length)}function Ke(ye,Qe){if(ye!==Qe){var dn=ye!==R,si=ye===null,ls=ye===ye,xa=bg(ye),ql=Qe!==R,du=Qe===null,rc=Qe===Qe,Fh=bg(Qe);if(!du&&!Fh&&!xa&&ye>Qe||xa&&ql&&rc&&!du&&!Fh||si&&ql&&rc||!dn&&rc||!ls)return 1;if(!si&&!xa&&!Fh&&ye=du)return rc;var Fh=dn[si];return rc*(Fh=="desc"?-1:1)}}return ye.index-Qe.index}function jt(ye,Qe,dn,si){for(var ls=-1,xa=ye.length,ql=dn.length,du=-1,rc=Qe.length,Fh=wf(xa-ql,0),$h=Zl(rc+Fh),cd=!si;++du1?dn[ls-1]:R,ql=ls>2?dn[2]:R;for(xa=ye.length>3&&typeof xa=="function"?(ls--,xa):R,ql&&Qa(dn[0],dn[1],ql)&&(xa=ls<3?R:xa,ls=1),Qe=Bh(Qe);++si-1?ls[xa?Qe[ql]:ql]:R}}function Nn(ye){return hi(function(Qe){var dn=Qe.length,si=dn,ls=le.prototype.thru;for(ye&&Qe.reverse();si--;){var xa=Qe[si];if(typeof xa!="function")throw new Yd(V);if(ls&&!ql&&Qi(xa)=="wrapper")var ql=new le([],!0)}for(si=ql?si:dn;++si1&&Om.reverse(),$h&&rcdu))return!1;var Fh=xa.get(ye),$h=xa.get(Qe);if(Fh&&$h)return Fh==Qe&&$h==ye;var cd=-1,Mf=!0,wp=dn&ae?new _r:R;for(xa.set(ye,Qe),xa.set(Qe,ye);++cd1?"& ":"")+Qe[si],Qe=Qe.join(dn>2?", ":" "),ye.replace(Qt,`{ +/* [wrapped with `+Qe+`] */ +`)}function Xa(ye){return ve(ye)||te(ye)||!!(df&&ye&&ye[df])}function xl(ye,Qe){var dn=typeof ye;return Qe=Qe==null?ot:Qe,!!Qe&&(dn=="number"||dn!="symbol"&&nr.test(ye))&&ye>-1&&ye%1==0&&ye0){if(++Qe>=$e)return arguments[0]}else Qe=0;return ye.apply(R,arguments)}}function mt(ye,Qe){var dn=-1,si=ye.length,ls=si-1;for(Qe=Qe===R?si:Qe;++dn1?ye[Qe-1]:R;return dn=typeof dn=="function"?(ye.pop(),dn):R,fc(ye,dn)});function mm(ye){var Qe=Vo(ye);return Qe.__chain__=!0,Qe}function u0(ye,Qe){return Qe(ye),ye}function c0(ye,Qe){return Qe(ye)}var Vs=hi(function(ye){var Qe=ye.length,dn=Qe?ye[0]:0,si=this.__wrapped__,ls=function(xa){return zh(xa,ye)};return Qe>1||this.__actions__.length||!(si instanceof ge)||!xl(dn)?this.thru(ls):(si=si.slice(dn,+dn+(Qe?1:0)),si.__actions__.push({func:c0,args:[ls],thisArg:R}),new le(si,this.__chain__).thru(function(xa){return Qe&&!xa.length&&xa.push(R),xa}))});function Xy(){return mm(this)}function vg(){return new le(this.value(),this.__chain__)}function ev(){this.__values__===R&&(this.__values__=yu(this.value()));var ye=this.__index__>=this.__values__.length,Qe=ye?R:this.__values__[this.__index__++];return{done:ye,value:Qe}}function Le(){return this}function f(ye){for(var Qe,dn=this;dn instanceof W;){var si=Co(dn);si.__index__=0,si.__values__=R,Qe?ls.__wrapped__=si:Qe=si;var ls=si;dn=dn.__wrapped__}return ls.__wrapped__=ye,Qe}function y(){var ye=this.__wrapped__;if(ye instanceof ge){var Qe=ye;return this.__actions__.length&&(Qe=new ge(this)),Qe=Qe.reverse(),Qe.__actions__.push({func:c0,args:[Lp],thisArg:R}),new le(Qe,this.__chain__)}return this.thru(Lp)}function A(){return we(this.__wrapped__,this.__actions__)}var j=Hn(function(ye,Qe,dn){Tf.call(ye,dn)?++ye[dn]:lh(ye,dn,1)});function re(ye,Qe,dn){var si=ve(ye)?kl:Id;return dn&&Qa(ye,Qe,dn)&&(Qe=R),si(ye,Bo(Qe,3))}function de(ye,Qe){var dn=ve(ye)?Va:ip;return dn(ye,Bo(Qe,3))}var Ie=Or(Rs),Je=Or(Vl);function zt(ye,Qe){return fp(Ro(ye,Qe),1)}function un(ye,Qe){return fp(Ro(ye,Qe),Ft)}function tr(ye,Qe,dn){return dn=dn===R?1:cc(dn),fp(Ro(ye,Qe),dn)}function Cr(ye,Qe){var dn=ve(ye)?ul:Yh;return dn(ye,Bo(Qe,3))}function xi(ye,Qe){var dn=ve(ye)?hl:Vd;return dn(ye,Bo(Qe,3))}var Li=Hn(function(ye,Qe,dn){Tf.call(ye,dn)?ye[dn].push(Qe):lh(ye,dn,[Qe])});function Io(ye,Qe,dn,si){ye=vt(ye)?ye:M0(ye),dn=dn&&!si?cc(dn):0;var ls=ye.length;return dn<0&&(dn=wf(ls+dn,0)),jp(ye)?dn<=ls&&ye.indexOf(Qe,dn)>-1:!!ls&&Qs(ye,Qe,dn)>-1}var Ao=pf(function(ye,Qe,dn){var si=-1,ls=typeof Qe=="function",xa=vt(ye)?Zl(ye.length):[];return Yh(ye,function(ql){xa[++si]=ls?ra(Qe,ql,dn):jf(ql,Qe,dn)}),xa}),Xo=Hn(function(ye,Qe,dn){lh(ye,dn,Qe)});function Ro(ye,Qe){var dn=ve(ye)?Aa:qg;return dn(ye,Bo(Qe,3))}function po(ye,Qe,dn,si){return ye==null?[]:(ve(Qe)||(Qe=Qe==null?[]:[Qe]),dn=si?R:dn,ve(dn)||(dn=dn==null?[]:[dn]),k0(ye,Qe,dn))}var Gs=Hn(function(ye,Qe,dn){ye[dn?0:1].push(Qe)},function(){return[[],[]]});function Oa(ye,Qe,dn){var si=ve(ye)?Pu:tc,ls=arguments.length<3;return si(ye,Bo(Qe,4),dn,ls,Yh)}function yl(ye,Qe,dn){var si=ve(ye)?Gl:tc,ls=arguments.length<3;return si(ye,Bo(Qe,4),dn,ls,Vd)}function cu(ye,Qe){var dn=ve(ye)?Va:ip;return dn(ye,fh(Bo(Qe,3)))}function Fu(ye){var Qe=ve(ye)?Ja:O0;return Qe(ye)}function Eu(ye,Qe,dn){(dn?Qa(ye,Qe,dn):Qe===R)?Qe=1:Qe=cc(Qe);var si=ve(ye)?Ha:N0;return si(ye,Qe)}function qc(ye){var Qe=ve(ye)?Xl:q0;return Qe(ye)}function vu(ye){if(ye==null)return 0;if(vt(ye))return jp(ye)?tp(ye):ye.length;var Qe=Ps(ye);return Qe==qo||Qe==Dt?ye.size:i0(ye).length}function kc(ye,Qe,dn){var si=ve(ye)?fu:s0;return dn&&Qa(ye,Qe,dn)&&(Qe=R),si(ye,Bo(Qe,3))}var On=pf(function(ye,Qe){if(ye==null)return[];var dn=Qe.length;return dn>1&&Qa(ye,Qe[0],Qe[1])?Qe=[]:dn>2&&Qa(Qe[0],Qe[1],Qe[2])&&(Qe=[Qe[0]]),k0(ye,fp(Qe,1),[])}),lr=np||function(){return vc.Date.now()};function Ur(ye,Qe){if(typeof Qe!="function")throw new Yd(V);return ye=cc(ye),function(){if(--ye<1)return Qe.apply(this,arguments)}}function di(ye,Qe,dn){return Qe=dn?R:Qe,Qe=ye&&Qe==null?ye.length:Qe,rs(ye,Me,R,R,R,R,Qe)}function uo(ye,Qe){var dn;if(typeof Qe!="function")throw new Yd(V);return ye=cc(ye),function(){return--ye>0&&(dn=Qe.apply(this,arguments)),ye<=1&&(Qe=R),dn}}var Ys=pf(function(ye,Qe,dn){var si=fe;if(dn.length){var ls=Ud(dn,vo(Ys));si|=We}return rs(ye,si,Qe,dn,ls)}),qa=pf(function(ye,Qe,dn){var si=fe|_e;if(dn.length){var ls=Ud(dn,vo(qa));si|=We}return rs(Qe,si,ye,dn,ls)});function Fs(ye,Qe,dn){Qe=dn?R:Qe;var si=rs(ye,xe,R,R,R,R,R,Qe);return si.placeholder=Fs.placeholder,si}function il(ye,Qe,dn){Qe=dn?R:Qe;var si=rs(ye,Xe,R,R,R,R,R,Qe);return si.placeholder=il.placeholder,si}function iu(ye,Qe,dn){var si,ls,xa,ql,du,rc,Fh=0,$h=!1,cd=!1,Mf=!0;if(typeof ye!="function")throw new Yd(V);Qe=Oh(Qe)||0,ml(dn)&&($h=!!dn.leading,cd="maxWait"in dn,xa=cd?wf(Oh(dn.maxWait)||0,Qe):xa,Mf="trailing"in dn?!!dn.trailing:Mf);function wp(mv){var W1=si,Fy=ls;return si=ls=R,Fh=mv,ql=ye.apply(Fy,W1),ql}function og(mv){return Fh=mv,du=$l(fm,Qe),$h?wp(mv):ql}function sg(mv){var W1=mv-rc,Fy=mv-Fh,b2=Qe-W1;return cd?up(b2,xa-Fy):b2}function wg(mv){var W1=mv-rc,Fy=mv-Fh;return rc===R||W1>=Qe||W1<0||cd&&Fy>=xa}function fm(){var mv=lr();if(wg(mv))return Om(mv);du=$l(fm,sg(mv))}function Om(mv){return du=R,Mf&&si?wp(mv):(si=ls=R,ql)}function T1(){du!==R&&cn(du),Fh=0,si=rc=ls=du=R}function Gv(){return du===R?ql:Om(lr())}function A1(){var mv=lr(),W1=wg(mv);if(si=arguments,ls=this,rc=mv,W1){if(du===R)return og(rc);if(cd)return cn(du),du=$l(fm,Qe),wp(rc)}return du===R&&(du=$l(fm,Qe)),ql}return A1.cancel=T1,A1.flush=Gv,A1}var Ls=pf(function(ye,Qe){return Gd(ye,1,Qe)}),Cc=pf(function(ye,Qe,dn){return Gd(ye,Oh(Qe)||0,dn)});function qh(ye){return rs(ye,ze)}function Ch(ye,Qe){if(typeof ye!="function"||Qe!=null&&typeof Qe!="function")throw new Yd(V);var dn=function(){var si=arguments,ls=Qe?Qe.apply(this,si):si[0],xa=dn.cache;if(xa.has(ls))return xa.get(ls);var ql=ye.apply(this,si);return dn.cache=xa.set(ls,ql)||xa,ql};return dn.cache=new(Ch.Cache||Q),dn}Ch.Cache=Q;function fh(ye){if(typeof ye!="function")throw new Yd(V);return function(){var Qe=arguments;switch(Qe.length){case 0:return!ye.call(this);case 1:return!ye.call(this,Qe[0]);case 2:return!ye.call(this,Qe[0],Qe[1]);case 3:return!ye.call(this,Qe[0],Qe[1],Qe[2])}return!ye.apply(this,Qe)}}function Jh(ye){return uo(2,ye)}var rp=ct(function(ye,Qe){Qe=Qe.length==1&&ve(Qe[0])?Aa(Qe[0],ph(Bo())):Aa(fp(Qe,1),ph(Bo()));var dn=Qe.length;return pf(function(si){for(var ls=-1,xa=up(si.length,dn);++ls=Qe}),te=Nd(function(){return arguments}())?Nd:function(ye){return Yl(ye)&&Tf.call(ye,"callee")&&!qp.call(ye,"callee")},ve=Zl.isArray,je=Zr?ph(Zr):Nf;function vt(ye){return ye!=null&&Wl(ye.length)&&!Ma(ye)}function ht(ye){return Yl(ye)&&vt(ye)}function nn(ye){return ye===!0||ye===!1||Yl(ye)&&td(ye)==Mo}var wn=Wp||v_,Ar=Jr?ph(Jr):Fp;function li(ye){return Yl(ye)&&ye.nodeType===1&&!rd(ye)}function ki(ye){if(ye==null)return!0;if(vt(ye)&&(ve(ye)||typeof ye=="string"||typeof ye.splice=="function"||wn(ye)||om(ye)||te(ye)))return!ye.length;var Qe=Ps(ye);if(Qe==qo||Qe==Dt)return!ye.size;if(wu(ye))return!i0(ye).length;for(var dn in ye)if(Tf.call(ye,dn))return!1;return!0}function xo(ye,Qe){return Hp(ye,Qe)}function Yo(ye,Qe,dn){dn=typeof dn=="function"?dn:R;var si=dn?dn(ye,Qe):R;return si===R?Hp(ye,Qe,R,dn):!!si}function bs(ye){if(!Yl(ye))return!1;var Qe=td(ye);return Qe==Ho||Qe==Hr||typeof ye.message=="string"&&typeof ye.name=="string"&&!rd(ye)}function pa(ye){return typeof ye=="number"&&ud(ye)}function Ma(ye){if(!ml(ye))return!1;var Qe=td(ye);return Qe==Ss||Qe==Pe||Qe==oo||Qe==Mn}function rl(ye){return typeof ye=="number"&&ye==cc(ye)}function Wl(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=ot}function ml(ye){var Qe=typeof ye;return ye!=null&&(Qe=="object"||Qe=="function")}function Yl(ye){return ye!=null&&typeof ye=="object"}var Zu=_i?ph(_i):Uf;function Jc(ye,Qe){return ye===Qe||qd(ye,Qe,_a(Qe))}function fd(ye,Qe,dn){return dn=typeof dn=="function"?dn:R,qd(ye,Qe,_a(Qe),dn)}function Lf(ye){return sf(ye)&&ye!=+ye}function _d(ye){if(Ql(ye))throw new Wu(B);return yf(ye)}function xd(ye){return ye===null}function Vh(ye){return ye==null}function sf(ye){return typeof ye=="number"||Yl(ye)&&td(ye)==Ki}function rd(ye){if(!Yl(ye)||td(ye)!=ai)return!1;var Qe=nh(ye);if(Qe===null)return!0;var dn=Tf.call(Qe,"constructor")&&Qe.constructor;return typeof dn=="function"&&dn instanceof dn&&wh.call(dn)==vd}var bh=so?ph(so):Tg;function Hf(ye){return rl(ye)&&ye>=-ot&&ye<=ot}var cf=Ui?ph(Ui):Yg;function jp(ye){return typeof ye=="string"||!ve(ye)&&Yl(ye)&&td(ye)==Kt}function bg(ye){return typeof ye=="symbol"||Yl(ye)&&td(ye)==mn}var om=hs?ph(hs):qf;function p0(ye){return ye===R}function fv(ye){return Yl(ye)&&Ps(ye)==an}function g0(ye){return Yl(ye)&&td(ye)==tn}var Rm=zo(o0),$u=zo(function(ye,Qe){return ye<=Qe});function yu(ye){if(!ye)return[];if(vt(ye))return jp(ye)?Ad(ye):Rt(ye);if(mp&&ye[mp])return pd(ye[mp]());var Qe=Ps(ye),dn=Qe==qo?Nu:Qe==Dt?uf:M0;return dn(ye)}function Yc(ye){if(!ye)return ye===0?ye:0;if(ye=Oh(ye),ye===Ft||ye===-Ft){var Qe=ye<0?-1:1;return Qe*xt}return ye===ye?ye:0}function cc(ye){var Qe=Yc(ye),dn=Qe%1;return Qe===Qe?dn?Qe-dn:Qe:0}function Kh(ye){return ye?Rh(cc(ye),0,$t):0}function Oh(ye){if(typeof ye=="number")return ye;if(bg(ye))return ut;if(ml(ye)){var Qe=typeof ye.valueOf=="function"?ye.valueOf():ye;ye=ml(Qe)?Qe+"":Qe}if(typeof ye!="string")return ye===0?ye:+ye;ye=ld(ye);var dn=qi.test(ye);return dn||ii.test(ye)?Ga(ye.slice(2),dn?2:8):ni.test(ye)?ut:+ye}function Wd(ye){return Jt(ye,av(ye))}function Gf(ye){return ye?Rh(cc(ye),-ot,ot):ye===0?ye:0}function bd(ye){return ye==null?"":Gp(ye)}var Ff=wr(function(ye,Qe){if(wu(Qe)||vt(Qe)){Jt(Qe,km(Qe),ye);return}for(var dn in Qe)Tf.call(Qe,dn)&&mu(ye,dn,Qe[dn])}),Vf=wr(function(ye,Qe){Jt(Qe,av(Qe),ye)}),Mg=wr(function(ye,Qe,dn,si){Jt(Qe,av(Qe),ye,si)}),vf=wr(function(ye,Qe,dn,si){Jt(Qe,km(Qe),ye,si)}),Ug=hi(zh);function _m(ye,Qe){var dn=P(ye);return Qe==null?dn:Ju(dn,Qe)}var Im=pf(function(ye,Qe){ye=Bh(ye);var dn=-1,si=Qe.length,ls=si>2?Qe[2]:R;for(ls&&Qa(Qe[0],Qe[1],ls)&&(si=1);++dn1),xa}),Jt(ye,vs(ye),dn),si&&(dn=kd(dn,T|k|K,Ea));for(var ls=Qe.length;ls--;)Fm(dn,Qe[ls]);return dn});function by(ye,Qe){return E0(ye,fh(Bo(Qe)))}var gv=hi(function(ye,Qe){return ye==null?{}:Fg(ye,Qe)});function E0(ye,Qe){if(ye==null)return{};var dn=Aa(vs(ye),function(si){return[si]});return Qe=Bo(Qe),ym(ye,dn,function(si,ls){return Qe(si,ls[0])})}function p_(ye,Qe,dn){Qe=yt(Qe,ye);var si=-1,ls=Qe.length;for(ls||(ls=1,ye=R);++siQe){var si=ye;ye=Qe,Qe=si}if(dn||ye%1||Qe%1){var ls=Pp();return up(ye+ls*(Qe-ye+ks("1e-"+((ls+"").length-1))),Qe)}return sv(ye,Qe)}var Qv=Jn(function(ye,Qe,dn){return Qe=Qe.toLowerCase(),ye+(dn?C1(Qe):Qe)});function C1(ye){return Oy(bd(ye).toLowerCase())}function S1(ye){return ye=bd(ye),ye&&ye.replace(Mr,md).replace(Po,"")}function xy(ye,Qe,dn){ye=bd(ye),Qe=Gp(Qe);var si=ye.length;dn=dn===R?si:Rh(cc(dn),0,si);var ls=dn;return dn-=Qe.length,dn>=0&&ye.slice(dn,ls)==Qe}function $_(ye){return ye=bd(ye),ye&&Yt.test(ye)?ye.replace(Qn,Bd):ye}function Nv(ye){return ye=bd(ye),ye&&xr.test(ye)?ye.replace($n,"\\$&"):ye}var db=Jn(function(ye,Qe,dn){return ye+(dn?"-":"")+Qe.toLowerCase()}),fb=Jn(function(ye,Qe,dn){return ye+(dn?" ":"")+Qe.toLowerCase()}),z1=Ni("toLowerCase");function g_(ye,Qe,dn){ye=bd(ye),Qe=cc(Qe);var si=Qe?tp(ye):0;if(!Qe||si>=Qe)return ye;var ls=(Qe-si)/2;return Ri(Ip(ls),dn)+ye+Ri(Ph(ls),dn)}function Lx(ye,Qe,dn){ye=bd(ye),Qe=cc(Qe);var si=Qe?tp(ye):0;return Qe&&si>>0,dn?(ye=bd(ye),ye&&(typeof Qe=="string"||Qe!=null&&!bh(Qe))&&(Qe=Gp(Qe),!Qe&&gh(ye))?Zt(Ad(ye),0,dn):ye.split(Qe,dn)):[]}var f2=Jn(function(ye,Qe,dn){return ye+(dn?" ":"")+Oy(Qe)});function gb(ye,Qe,dn){return ye=bd(ye),dn=dn==null?0:Rh(cc(dn),0,ye.length),Qe=Gp(Qe),ye.slice(dn,dn+Qe.length)==Qe}function mb(ye,Qe,dn){var si=Vo.templateSettings;dn&&Qa(ye,Qe,dn)&&(Qe=R),ye=bd(ye),Qe=Mg({},Qe,si,ao);var ls=Mg({},Qe.imports,si.imports,ao),xa=km(ls),ql=lc(ls,xa),du,rc,Fh=0,$h=Qe.interpolate||rr,cd="__p += '",Mf=hf((Qe.escape||rr).source+"|"+$h.source+"|"+($h===Tr?Yi:rr).source+"|"+(Qe.evaluate||rr).source+"|$","g"),wp="//# sourceURL="+(Tf.call(Qe,"sourceURL")?(Qe.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ns+"]")+` +`;ye.replace(Mf,function(wg,fm,Om,T1,Gv,A1){return Om||(Om=T1),cd+=ye.slice(Fh,A1).replace(to,zd),fm&&(du=!0,cd+=`' + +__e(`+fm+`) + +'`),Gv&&(rc=!0,cd+=`'; +`+Gv+`; +__p += '`),Om&&(cd+=`' + +((__t = (`+Om+`)) == null ? '' : __t) + +'`),Fh=A1+wg.length,wg}),cd+=`'; +`;var og=Tf.call(Qe,"variable")&&Qe.variable;if(!og)cd=`with (obj) { +`+cd+` +} +`;else if(Mi.test(og))throw new Wu(O);cd=(rc?cd.replace(Qr,""):cd).replace(ci,"$1").replace(ji,"$1;"),cd="function("+(og||"obj")+`) { +`+(og?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(du?", __e = _.escape":"")+(rc?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Dd+`return __p -}`;var gp=k1(function(){return Vd(ia,If+"return "+Dd).apply(A,Tl)});if(gp.source=Dd,Em(gp))throw gp;return gp}function I_(ce){return Ph(ce).toLowerCase()}function qx(ce){return Ph(ce).toUpperCase()}function ux(ce,ze,Zt){if(ce=Ph(ce),ce&&(Zt||ze===A))return Xd(ce);if(!ce||!(ze=yp(ze)))return ce;var kr=ch(ce),Vo=ch(ze),ia=hd(kr,Vo),Tl=vd(kr,Vo)+1;return It(kr,ia,Tl).join("")}function yS(ce,ze,Zt){if(ce=Ph(ce),ce&&(Zt||ze===A))return ce.slice(0,Th(ce)+1);if(!ce||!(ze=yp(ze)))return ce;var kr=ch(ce),Vo=vd(kr,ch(ze))+1;return It(kr,0,Vo).join("")}function oy(ce,ze,Zt){if(ce=Ph(ce),ce&&(Zt||ze===A))return ce.replace(ao,"");if(!ce||!(ze=yp(ze)))return ce;var kr=ch(ce),Vo=hd(kr,ch(ze));return It(kr,Vo).join("")}function Vv(ce,ze){var Zt=_e,kr=Ce;if(hg(ze)){var Vo="separator"in ze?ze.separator:Vo;Zt="length"in ze?vc(ze.length):Zt,kr="omission"in ze?yp(ze.omission):kr}ce=Ph(ce);var ia=ce.length;if(nd(ce)){var Tl=ch(ce);ia=Tl.length}if(Zt>=ia)return ce;var Ul=Zt-Nf(kr);if(Ul<1)return kr;var Ou=Tl?It(Tl,0,Ul).join(""):ce.slice(0,Ul);if(Vo===A)return Ou+kr;if(Tl&&(Ul+=Ou.length-Ul),gv(Vo)){if(ce.slice(Ul).search(Vo)){var rd,od=Ou;for(Vo.global||(Vo=Vf(Vo.source,Ph(Qr.exec(Vo))+"g")),Vo.lastIndex=0;rd=Vo.exec(od);)var Dd=rd.index;Ou=Ou.slice(0,Dd===A?Ul:Dd)}}else if(ce.indexOf(yp(Vo),Ul)!=Ul){var Yh=Ou.lastIndexOf(Vo);Yh>-1&&(Ou=Ou.slice(0,Yh))}return Ou+kr}function Gy(ce){return ce=Ph(ce),ce&&zn.test(ce)?ce.replace(xo,yu):ce}var Dv=Pr(function(ce,ze,Zt){return ce+(Zt?" ":"")+ze.toUpperCase()}),Ky=zs("toUpperCase");function L_(ce,ze,Zt){return ce=Ph(ce),ze=Zt?A:ze,ze===A?Pf(ce)?Bu(ce):Eu(ce):ce.match(ze)||[]}var k1=Zh(function(ce,ze){try{return pa(ce,A,ze)}catch(Zt){return Em(Zt)?Zt:new Uu(Zt)}}),Xy=wr(function(ce,ze){return hl(ze,function(Zt){Zt=Rr(Zt),Td(ce,Zt,aa(ce[Zt],ce))}),ce});function xy(ce){var ze=ce==null?0:ce.length,Zt=dr();return ce=ze?Qa(ce,function(kr){if(typeof kr[1]!="function")throw new Uh(N);return[Zt(kr[0]),kr[1]]}):[],Zh(function(kr){for(var Vo=-1;++VoHe)return[];var Zt=$t,kr=Ff(ce,$t);ze=dr(ze),ce-=$t;for(var Vo=zd(kr,ze);++Zt0||ze<0)?new ae(Zt):(ce<0?Zt=Zt.takeRight(-ce):ce&&(Zt=Zt.drop(ce)),ze!==A&&(ze=vc(ze),Zt=ze<0?Zt.dropRight(-ze):Zt.take(ze-ce)),Zt)},ae.prototype.takeRightWhile=function(ce){return this.reverse().takeWhile(ce).reverse()},ae.prototype.toArray=function(){return this.take($t)},ad(ae.prototype,function(ce,ze){var Zt=/^(?:filter|find|map|reject)|While$/.test(ze),kr=/^(?:head|last)$/.test(ze),Vo=Io[kr?"take"+(ze=="last"?"Right":""):ze],ia=kr||/^find/.test(ze);Vo&&(Io.prototype[ze]=function(){var Tl=this.__wrapped__,Ul=kr?[1]:arguments,Ou=Tl instanceof ae,rd=Ul[0],od=Ou||gf(Tl),Dd=function(kg){var tm=Vo.apply(Io,el([kg],Ul));return kr&&Yh?tm[0]:tm};od&&Zt&&typeof rd=="function"&&rd.length!=1&&(Ou=od=!1);var Yh=this.__chain__,If=!!this.__actions__.length,pp=ia&&!Yh,gp=Ou&&!If;if(!ia&&od){Tl=gp?Tl:new ae(this);var zp=ce.apply(Tl,Ul);return zp.__actions__.push({func:cd,args:[Dd],thisArg:A}),new J(zp,Yh)}return pp&&gp?ce.apply(this,Ul):(zp=this.thru(Dd),pp?kr?zp.value()[0]:zp.value():zp)})}),hl(["pop","push","shift","sort","splice","unshift"],function(ce){var ze=kf[ce],Zt=/^(?:push|sort|unshift)$/.test(ce)?"tap":"thru",kr=/^(?:pop|shift)$/.test(ce);Io.prototype[ce]=function(){var Vo=arguments;if(kr&&!this.__chain__){var ia=this.value();return ze.apply(gf(ia)?ia:[],Vo)}return this[Zt](function(Tl){return ze.apply(gf(Tl)?Tl:[],Vo)})}}),ad(ae.prototype,function(ce,ze){var Zt=Io[ze];if(Zt){var kr=Zt.name+"";Vh.call(Cd,kr)||(Cd[kr]=[]),Cd[kr].push({name:ze,func:Zt})}}),Cd[Zr(A,he).name]=[{name:"wrapper",func:A}],ae.prototype.clone=Ue,ae.prototype.reverse=Jt,ae.prototype.value=$n,Io.prototype.at=Oo,Io.prototype.chain=Jh,Io.prototype.commit=xc,Io.prototype.next=fh,Io.prototype.plant=_,Io.prototype.reverse=R,Io.prototype.toJSON=Io.prototype.valueOf=Io.prototype.value=Z,Io.prototype.first=Io.prototype.head,ap&&(Io.prototype[ap]=Gd),Io},qd=wd();Pc._=qd,y=function(){return qd}.call(V,m,V,nt),y!==A&&(nt.exports=y)}).call(this)},15644:function(nt,V,m){var y=m(83369),A="Expected a function";function b(z,k){if(typeof z!="function"||k!=null&&typeof k!="function")throw new TypeError(A);var N=function(){var w=arguments,I=k?k.apply(this,w):w[0],C=N.cache;if(C.has(I))return C.get(I);var f=z.apply(this,w);return N.cache=C.set(I,f)||C,f};return N.cache=new(b.Cache||y),N}b.Cache=y,nt.exports=b},82492:function(nt,V,m){var y=m(42980),A=m(21463),b=A(function(z,k,N){y(z,k,N)});nt.exports=b},30236:function(nt,V,m){var y=m(42980),A=m(21463),b=A(function(z,k,N,w){y(z,k,N,w)});nt.exports=b},50308:function(nt){function V(){}nt.exports=V},7771:function(nt,V,m){var y=m(55639),A=function(){return y.Date.now()};nt.exports=A},97019:function(nt,V,m){var y=m(5976),A=m(45604),b=y(A);nt.exports=b},45604:function(nt,V,m){var y=m(65464);function A(b,z){return b&&b.length&&z&&z.length?y(b,z):b}nt.exports=A},70479:function(nt){function V(){return[]}nt.exports=V},95062:function(nt){function V(){return!1}nt.exports=V},23493:function(nt,V,m){var y=m(23279),A=m(13218),b="Expected a function";function z(k,N,w){var I=!0,C=!0;if(typeof k!="function")throw new TypeError(b);return A(w)&&(I="leading"in w?!!w.leading:I,C="trailing"in w?!!w.trailing:C),y(k,N,{leading:I,maxWait:N,trailing:C})}nt.exports=z},14841:function(nt,V,m){var y=m(4107),A=m(13218),b=m(33448),z=0/0,k=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,w=/^0o[0-7]+$/i,I=parseInt;function C(f){if(typeof f=="number")return f;if(b(f))return z;if(A(f)){var S=typeof f.valueOf=="function"?f.valueOf():f;f=A(S)?S+"":S}if(typeof f!="string")return f===0?f:+f;f=y(f);var P=N.test(f);return P||w.test(f)?I(f.slice(2),P?2:8):k.test(f)?z:+f}nt.exports=C},59881:function(nt,V,m){var y=m(98363),A=m(81704);function b(z){return y(z,A(z))}nt.exports=b},79833:function(nt,V,m){var y=m(80531);function A(b){return b==null?"":y(b)}nt.exports=A},44908:function(nt,V,m){var y=m(45652);function A(b){return b&&b.length?y(b):[]}nt.exports=A},11700:function(nt,V,m){var y=m(98805),A=y("toUpperCase");nt.exports=A},58748:function(nt,V,m){var y=m(49029),A=m(93157),b=m(79833),z=m(2757);function k(N,w,I){return N=b(N),w=I?void 0:w,w===void 0?A(N)?z(N):y(N):N.match(w)||[]}nt.exports=k},6158:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V,m,y;function A(b,z){if(!V)V=z;else if(!m)m=z;else{var k="var sharedChunk = {}; ("+V+")(sharedChunk); ("+m+")(sharedChunk);",N={};V(N),y=z(N),typeof window!="undefined"&&(y.workerUrl=window.URL.createObjectURL(new Blob([k],{type:"text/javascript"})))}}return A(["exports"],function(b){"use strict";function z(_,R){return _(R={exports:{}},R.exports),R.exports}var k=N;function N(_,R,Z,ue){this.cx=3*_,this.bx=3*(Z-_)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*R,this.by=3*(ue-R)-this.cy,this.ay=1-this.cy-this.by,this.p1x=_,this.p1y=ue,this.p2x=Z,this.p2y=ue}N.prototype.sampleCurveX=function(_){return((this.ax*_+this.bx)*_+this.cx)*_},N.prototype.sampleCurveY=function(_){return((this.ay*_+this.by)*_+this.cy)*_},N.prototype.sampleCurveDerivativeX=function(_){return(3*this.ax*_+2*this.bx)*_+this.cx},N.prototype.solveCurveX=function(_,R){var Z,ue,Pe,Qe,wt;for(R===void 0&&(R=1e-6),Pe=_,wt=0;wt<8;wt++){if(Qe=this.sampleCurveX(Pe)-_,Math.abs(Qe)(ue=1))return ue;for(;ZQe?Z=Pe:ue=Pe,Pe=.5*(ue-Z)+Z}return Pe},N.prototype.solve=function(_,R){return this.sampleCurveY(this.solveCurveX(_,R))};var w=I;function I(_,R){this.x=_,this.y=R}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,R){return this.clone()._rotateAround(_,R)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var R=_.x-this.x,Z=_.y-this.y;return R*R+Z*Z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,R){return Math.atan2(this.x*R-this.y*_,this.x*_+this.y*R)},_matMult:function(_){var R=_[2]*this.x+_[3]*this.y;return this.x=_[0]*this.x+_[1]*this.y,this.y=R,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var R=Math.cos(_),Z=Math.sin(_),ue=Z*this.x+R*this.y;return this.x=R*this.x-Z*this.y,this.y=ue,this},_rotateAround:function(_,R){var Z=Math.cos(_),ue=Math.sin(_),Pe=R.y+ue*(this.x-R.x)+Z*(this.y-R.y);return this.x=R.x+Z*(this.x-R.x)-ue*(this.y-R.y),this.y=Pe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},I.convert=function(_){return _ instanceof I?_:Array.isArray(_)?new I(_[0],_[1]):_};var C=typeof self!="undefined"?self:{},f=Math.pow(2,53)-1;function S(_,R,Z,ue){var Pe=new k(_,R,Z,ue);return function(Qe){return Pe.solve(Qe)}}var P=S(.25,.1,.25,1);function W(_,R,Z){return Math.min(Z,Math.max(R,_))}function te(_,R,Z){var ue=Z-R,Pe=((_-R)%ue+ue)%ue+R;return Pe===R?Z:Pe}function q(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];for(var ue=0,Pe=R;ue>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}()}function fe(_){return!!_&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_)}function ke(_,R){_.forEach(function(Z){R[Z]&&(R[Z]=R[Z].bind(R))})}function Ie(_,R){return _.indexOf(R,_.length-R.length)!==-1}function Be(_,R,Z){var ue={};for(var Pe in _)ue[Pe]=R.call(Z||this,_[Pe],Pe,_);return ue}function be(_,R,Z){var ue={};for(var Pe in _)R.call(Z||this,_[Pe],Pe,_)&&(ue[Pe]=_[Pe]);return ue}function me(_){return Array.isArray(_)?_.map(me):typeof _=="object"&&_?Be(_,me):_}var ye={};function _e(_){ye[_]||(typeof console!="undefined"&&console.warn(_),ye[_]=!0)}function Ce(_,R,Z){return(Z.y-_.y)*(R.x-_.x)>(R.y-_.y)*(Z.x-_.x)}function De(_){for(var R=0,Z=0,ue=_.length,Pe=ue-1,Qe=void 0,wt=void 0;Z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(ue,Pe,Qe,wt){var jt=Qe||wt;return R[Pe]=!jt||jt.toLowerCase(),""}),R["max-age"]){var Z=parseInt(R["max-age"],10);isNaN(Z)?delete R["max-age"]:R["max-age"]=Z}return R}var we=null;function Pt(_){if(we==null){var R=_.navigator?_.navigator.userAgent:null;we=!!_.safari||!(!R||!(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return we}function dt(_){try{var R=C[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch(Z){return!1}}var He,bt,ft,$t,vt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),yn=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,Bn=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Lr={now:vt,frame:function(_){var R=yn(_);return{cancel:function(){return Bn(R)}}},getImageData:function(_,R){R===void 0&&(R=0);var Z=C.document.createElement("canvas"),ue=Z.getContext("2d");if(!ue)throw new Error("failed to create canvas 2d context");return Z.width=_.width,Z.height=_.height,ue.drawImage(_,0,0,_.width,_.height),ue.getImageData(-R,-R,_.width+2*R,_.height+2*R)},resolveURL:function(_){return He||(He=C.document.createElement("a")),He.href=_,He.href},hardwareConcurrency:C.navigator&&C.navigator.hardwareConcurrency||4,get devicePixelRatio(){return C.devicePixelRatio},get prefersReducedMotion(){return!!C.matchMedia&&(bt==null&&(bt=C.matchMedia("(prefers-reduced-motion: reduce)")),bt.matches)}},ii={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},gi={supported:!1,testSupport:function(_){!no&&$t&&(To?_r(_):ft=_)}},no=!1,To=!1;function _r(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,$t),_.isContextLost())return;gi.supported=!0}catch(Z){}_.deleteTexture(R),no=!0}C.document&&(($t=C.document.createElement("img")).onload=function(){ft&&_r(ft),ft=null,To=!0},$t.onerror=function(){no=!0,ft=null},$t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Bo="01",hs=function(_,R){this._transformRequestFn=_,this._customAccessToken=R,this._createSkuToken()};function ve(_){return _.indexOf("mapbox:")===0}hs.prototype._createSkuToken=function(){var _=function(){for(var R="",Z=0;Z<10;Z++)R+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Bo,R].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},hs.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},hs.prototype.transformRequest=function(_,R){return this._transformRequestFn&&this._transformRequestFn(_,R)||{url:_}},hs.prototype.normalizeStyleURL=function(_,R){if(!ve(_))return _;var Z=ji(_);return Z.path="/styles/v1"+Z.path,this._makeAPIURL(Z,this._customAccessToken||R)},hs.prototype.normalizeGlyphsURL=function(_,R){if(!ve(_))return _;var Z=ji(_);return Z.path="/fonts/v1"+Z.path,this._makeAPIURL(Z,this._customAccessToken||R)},hs.prototype.normalizeSourceURL=function(_,R){if(!ve(_))return _;var Z=ji(_);return Z.path="/v4/"+Z.authority+".json",Z.params.push("secure"),this._makeAPIURL(Z,this._customAccessToken||R)},hs.prototype.normalizeSpriteURL=function(_,R,Z,ue){var Pe=ji(_);return ve(_)?(Pe.path="/styles/v1"+Pe.path+"/sprite"+R+Z,this._makeAPIURL(Pe,this._customAccessToken||ue)):(Pe.path+=""+R+Z,No(Pe))},hs.prototype.normalizeTileURL=function(_,R){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!ve(_))return _;var Z=ji(_);Z.path=Z.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Lr.devicePixelRatio>=2||R===512?"@2x":"")+(gi.supported?".webp":"$1")),Z.path=Z.path.replace(/^.+\/v4\//,"/"),Z.path="/v4"+Z.path;var ue=this._customAccessToken||function(Pe){for(var Qe=0,wt=Pe;Qe=0&&_.params.splice(Pe,1)}if(ue.path!=="/"&&(_.path=""+ue.path+_.path),!ii.REQUIRE_ACCESS_TOKEN)return No(_);if(!(R=R||ii.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+Z);if(R[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+Z);return _.params=_.params.filter(function(Qe){return Qe.indexOf("access_token")===-1}),_.params.push("access_token="+R),No(_)};var So=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ho(_){return So.test(_)}var go=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ji(_){var R=_.match(go);if(!R)throw new Error("Unable to parse URL object");return{protocol:R[1],authority:R[2],path:R[3]||"/",params:R[4]?R[4].split("&"):[]}}function No(_){var R=_.params.length?"?"+_.params.join("&"):"";return _.protocol+"://"+_.authority+_.path+R}function dn(_){if(!_)return null;var R=_.split(".");if(!R||R.length!==3)return null;try{return JSON.parse(decodeURIComponent(C.atob(R[1]).split("").map(function(Z){return"%"+("00"+Z.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(Z){return null}}var Ve=function(_){this.type=_,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Ve.prototype.getStorageKey=function(_){var R,Z=dn(ii.ACCESS_TOKEN);return R=Z&&Z.u?C.btoa(encodeURIComponent(Z.u).replace(/%([0-9A-F]{2})/g,function(ue,Pe){return String.fromCharCode(+("0x"+Pe))})):ii.ACCESS_TOKEN||"",_?"mapbox.eventData."+_+":"+R:"mapbox.eventData:"+R},Ve.prototype.fetchEventData=function(){var _=dt("localStorage"),R=this.getStorageKey(),Z=this.getStorageKey("uuid");if(_)try{var ue=C.localStorage.getItem(R);ue&&(this.eventData=JSON.parse(ue));var Pe=C.localStorage.getItem(Z);Pe&&(this.anonId=Pe)}catch(Qe){_e("Unable to read from LocalStorage")}},Ve.prototype.saveEventData=function(){var _=dt("localStorage"),R=this.getStorageKey(),Z=this.getStorageKey("uuid");if(_)try{C.localStorage.setItem(Z,this.anonId),Object.keys(this.eventData).length>=1&&C.localStorage.setItem(R,JSON.stringify(this.eventData))}catch(ue){_e("Unable to write to LocalStorage")}},Ve.prototype.processRequests=function(_){},Ve.prototype.postEvent=function(_,R,Z,ue){var Pe=this;if(ii.EVENTS_URL){var Qe=ji(ii.EVENTS_URL);Qe.params.push("access_token="+(ue||ii.ACCESS_TOKEN||""));var wt={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Bo,userId:this.anonId},jt=R?q(wt,R):wt,Nn={url:No(Qe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([jt])};this.pendingRequest=Us(Nn,function(cr){Pe.pendingRequest=null,Z(cr),Pe.saveEventData(),Pe.processRequests(ue)})}},Ve.prototype.queueRequest=function(_,R){this.queue.push(_),this.processRequests(R)};var yt,Ct,Wt=function(_){function R(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postMapLoadEvent=function(Z,ue,Pe,Qe){this.skuToken=Pe;var wt=!(!Qe&&!ii.ACCESS_TOKEN),jt=Array.isArray(Z)&&Z.some(function(Nn){return ve(Nn)||ho(Nn)});ii.EVENTS_URL&&wt&&jt&&this.queueRequest({id:ue,timestamp:Date.now()},Qe)},R.prototype.processRequests=function(Z){var ue=this;if(!this.pendingRequest&&this.queue.length!==0){var Pe=this.queue.shift(),Qe=Pe.id,wt=Pe.timestamp;Qe&&this.success[Qe]||(this.anonId||this.fetchEventData(),fe(this.anonId)||(this.anonId=de()),this.postEvent(wt,{skuToken:this.skuToken},function(jt){jt||Qe&&(ue.success[Qe]=!0)},Z))}},R}(Ve),sn=new(function(_){function R(Z){_.call(this,"appUserTurnstile"),this._customAccessToken=Z}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postTurnstileEvent=function(Z,ue){ii.EVENTS_URL&&ii.ACCESS_TOKEN&&Array.isArray(Z)&&Z.some(function(Pe){return ve(Pe)||ho(Pe)})&&this.queueRequest(Date.now(),ue)},R.prototype.processRequests=function(Z){var ue=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Pe=dn(ii.ACCESS_TOKEN),Qe=Pe?Pe.u:ii.ACCESS_TOKEN,wt=Qe!==this.eventData.tokenU;fe(this.anonId)||(this.anonId=de(),wt=!0);var jt=this.queue.shift();if(this.eventData.lastSuccess){var Nn=new Date(this.eventData.lastSuccess),cr=new Date(jt),Ur=(jt-this.eventData.lastSuccess)/864e5;wt=wt||Ur>=1||Ur<-1||Nn.getDate()!==cr.getDate()}else wt=!0;if(!wt)return this.processRequests();this.postEvent(jt,{"enabled.telemetry":!1},function(bi){bi||(ue.eventData.lastSuccess=jt,ue.eventData.tokenU=Qe)},Z)}},R}(Ve)),Mt=sn.postTurnstileEvent.bind(sn),Tt=new Wt,xt=Tt.postMapLoadEvent.bind(Tt),Ht=500,Vn=50;function en(){C.caches&&!yt&&(yt=C.caches.open("mapbox-tiles"))}function fr(_){var R=_.indexOf("?");return R<0?_:_.slice(0,R)}var Kr,ri=1/0;function si(){return Kr==null&&(Kr=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),Kr}var uo={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(uo);var Qo=function(_){function R(Z,ue,Pe){ue===401&&ho(Pe)&&(Z+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),_.call(this,Z),this.status=ue,this.url=Pe,this.name=this.constructor.name,this.message=Z}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},R}(Error),_n=ge()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},Vr,qr,Ui=function(_,R){if(!(/^file:/.test(Z=_.url)||/^file:/.test(_n())&&!/^\w+:/.test(Z))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(ue,Pe){var Qe,wt=new C.AbortController,jt=new C.Request(ue.url,{method:ue.method||"GET",body:ue.body,credentials:ue.credentials,headers:ue.headers,referrer:_n(),signal:wt.signal}),Nn=!1,cr=!1,Ur=(Qe=jt.url).indexOf("sku=")>0&&ho(Qe);ue.type==="json"&&jt.headers.set("Accept","application/json");var bi=function(zo,qs,ra){if(!cr){if(zo&&zo.message!=="SecurityError"&&_e(zo),qs&&ra)return _o(qs);var al=Date.now();C.fetch(jt).then(function(Pa){if(Pa.ok){var Ol=Ur?Pa.clone():null;return _o(Pa,Ol,al)}return Pe(new Qo(Pa.statusText,Pa.status,ue.url))}).catch(function(Pa){Pa.code!==20&&Pe(new Error(Pa.message))})}},_o=function(zo,qs,ra){(ue.type==="arrayBuffer"?zo.arrayBuffer():ue.type==="json"?zo.json():zo.text()).then(function(al){cr||(qs&&ra&&function(Pa,Ol,Vl){if(en(),yt){var cu={status:Ol.status,statusText:Ol.statusText,headers:new C.Headers};Ol.headers.forEach(function(Hu,kc){return cu.headers.set(kc,Hu)});var lu=je(Ol.headers.get("Cache-Control")||"");lu["no-store"]||(lu["max-age"]&&cu.headers.set("Expires",new Date(Vl+1e3*lu["max-age"]).toUTCString()),new Date(cu.headers.get("Expires")).getTime()-Vl<42e4||function(Hu,kc){if(Ct===void 0)try{new Response(new ReadableStream),Ct=!0}catch(ac){Ct=!1}Ct?kc(Hu.body):Hu.blob().then(kc)}(Ol,function(Hu){var kc=new C.Response(Hu,cu);en(),yt&&yt.then(function(ac){return ac.put(fr(Pa.url),kc)}).catch(function(ac){return _e(ac.message)})}))}}(jt,qs,ra),Nn=!0,Pe(null,al,zo.headers.get("Cache-Control"),zo.headers.get("Expires")))}).catch(function(al){cr||Pe(new Error(al.message))})};return Ur?function(zo,qs){if(en(),!yt)return qs(null);var ra=fr(zo.url);yt.then(function(al){al.match(ra).then(function(Pa){var Ol=function(Vl){if(!Vl)return!1;var cu=new Date(Vl.headers.get("Expires")||0),lu=je(Vl.headers.get("Cache-Control")||"");return cu>Date.now()&&!lu["no-cache"]}(Pa);al.delete(ra),Ol&&al.put(ra,Pa.clone()),qs(null,Pa,Ol)}).catch(qs)}).catch(qs)}(jt,bi):bi(null,null),{cancel:function(){cr=!0,Nn||wt.abort()}}}(_,R);if(ge()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",_,R,void 0,!0)}var Z;return function(ue,Pe){var Qe=new C.XMLHttpRequest;for(var wt in Qe.open(ue.method||"GET",ue.url,!0),ue.type==="arrayBuffer"&&(Qe.responseType="arraybuffer"),ue.headers)Qe.setRequestHeader(wt,ue.headers[wt]);return ue.type==="json"&&(Qe.responseType="text",Qe.setRequestHeader("Accept","application/json")),Qe.withCredentials=ue.credentials==="include",Qe.onerror=function(){Pe(new Error(Qe.statusText))},Qe.onload=function(){if((Qe.status>=200&&Qe.status<300||Qe.status===0)&&Qe.response!==null){var jt=Qe.response;if(ue.type==="json")try{jt=JSON.parse(Qe.response)}catch(Nn){return Pe(Nn)}Pe(null,jt,Qe.getResponseHeader("Cache-Control"),Qe.getResponseHeader("Expires"))}else Pe(new Qo(Qe.statusText,Qe.status,ue.url))},Qe.send(ue.body),{cancel:function(){return Qe.abort()}}}(_,R)},xo=function(_,R){return Ui(q(_,{type:"arrayBuffer"}),R)},Us=function(_,R){return Ui(q(_,{method:"POST"}),R)},zn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Vr=[],qr=0;var Kn=function(_,R){if(gi.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),qr>=ii.MAX_PARALLEL_IMAGE_REQUESTS){var Z={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vr.push(Z),Z}qr++;var ue=!1,Pe=function(){if(!ue)for(ue=!0,qr--;Vr.length&&qr0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},di.prototype.setEventedParent=function(_,R){return this._eventedParent=_,this._eventedParentData=R,this};var rn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Qn=function(_,R,Z,ue){this.message=(_?_+": ":"")+Z,ue&&(this.identifier=ue),R!=null&&R.__line__&&(this.line=R.__line__)};function Xr(_){var R=_.value;return R?[new Qn(_.key,R,"constants have been deprecated as of v8")]:[]}function ao(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];for(var ue=0,Pe=R;ue":_.itemType.kind==="value"?"array":"array<"+R+">"}return _.kind}var Li=[Jr,vi,Di,co,Qr,tn,oi,Ei(Zi),Gn];function nr(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!nr(_.itemType,R.itemType))&&(typeof _.N!="number"||_.N===R.N))return null}else{if(_.kind===R.kind)return null;if(_.kind==="value"){for(var Z=0,ue=Li;Z255?255:jt}function Pe(jt){return ue(jt[jt.length-1]==="%"?parseFloat(jt)/100*255:parseInt(jt))}function Qe(jt){return(Nn=jt[jt.length-1]==="%"?parseFloat(jt)/100:parseFloat(jt))<0?0:Nn>1?1:Nn;var Nn}function wt(jt,Nn,cr){return cr<0?cr+=1:cr>1&&(cr-=1),6*cr<1?jt+(Nn-jt)*cr*6:2*cr<1?Nn:3*cr<2?jt+(Nn-jt)*(2/3-cr)*6:jt}try{R.parseCSSColor=function(jt){var Nn,cr=jt.replace(/ /g,"").toLowerCase();if(cr in Z)return Z[cr].slice();if(cr[0]==="#")return cr.length===4?(Nn=parseInt(cr.substr(1),16))>=0&&Nn<=4095?[(3840&Nn)>>4|(3840&Nn)>>8,240&Nn|(240&Nn)>>4,15&Nn|(15&Nn)<<4,1]:null:cr.length===7&&(Nn=parseInt(cr.substr(1),16))>=0&&Nn<=16777215?[(16711680&Nn)>>16,(65280&Nn)>>8,255&Nn,1]:null;var Ur=cr.indexOf("("),bi=cr.indexOf(")");if(Ur!==-1&&bi+1===cr.length){var _o=cr.substr(0,Ur),zo=cr.substr(Ur+1,bi-(Ur+1)).split(","),qs=1;switch(_o){case"rgba":if(zo.length!==4)return null;qs=Qe(zo.pop());case"rgb":return zo.length!==3?null:[Pe(zo[0]),Pe(zo[1]),Pe(zo[2]),qs];case"hsla":if(zo.length!==4)return null;qs=Qe(zo.pop());case"hsl":if(zo.length!==3)return null;var ra=(parseFloat(zo[0])%360+360)%360/360,al=Qe(zo[1]),Pa=Qe(zo[2]),Ol=Pa<=.5?Pa*(al+1):Pa+al-Pa*al,Vl=2*Pa-Ol;return[ue(255*wt(Vl,Ol,ra+1/3)),ue(255*wt(Vl,Ol,ra)),ue(255*wt(Vl,Ol,ra-1/3)),qs];default:return null}}return null}}catch(jt){}}).parseCSSColor,qn=function(_,R,Z,ue){ue===void 0&&(ue=1),this.r=_,this.g=R,this.b=Z,this.a=ue};qn.parse=function(_){if(_){if(_ instanceof qn)return _;if(typeof _=="string"){var R=Fr(_);if(R)return new qn(R[0]/255*R[3],R[1]/255*R[3],R[2]/255*R[3],R[3])}}},qn.prototype.toString=function(){var _=this.toArray(),R=_[1],Z=_[2],ue=_[3];return"rgba("+Math.round(_[0])+","+Math.round(R)+","+Math.round(Z)+","+ue+")"},qn.prototype.toArray=function(){var _=this.a;return _===0?[0,0,0,0]:[255*this.r/_,255*this.g/_,255*this.b/_,_]},qn.black=new qn(0,0,0,1),qn.white=new qn(1,1,1,1),qn.transparent=new qn(0,0,0,0),qn.red=new qn(1,0,0,1);var ms=function(_,R,Z){this.sensitivity=_?R?"variant":"case":R?"accent":"base",this.locale=Z,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ms.prototype.compare=function(_,R){return this.collator.compare(_,R)},ms.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ya=function(_,R,Z,ue,Pe){this.text=_,this.image=R,this.scale=Z,this.fontStack=ue,this.textColor=Pe},ha=function(_){this.sections=_};ha.fromString=function(_){return new ha([new ya(_,null,null,null,null)])},ha.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},ha.factory=function(_){return _ instanceof ha?_:ha.fromString(_)},ha.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},ha.prototype.serialize=function(){for(var _=["format"],R=0,Z=this.sections;R=0&&_<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof Z=="number"&&Z>=0&&Z<=255?ue===void 0||typeof ue=="number"&&ue>=0&&ue<=1?null:"Invalid rgba value ["+[_,R,Z,ue].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof ue=="number"?[_,R,Z,ue]:[_,R,Z]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Ao(_){if(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number"||_ instanceof qn||_ instanceof ms||_ instanceof ha||_ instanceof Ws)return!0;if(Array.isArray(_)){for(var R=0,Z=_;R2){var jt=_[1];if(typeof jt!="string"||!(jt in pr)||jt==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Qe=pr[jt],ue++}else Qe=Zi;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return R.error('The length argument to "array" must be a positive integer literal',2);wt=_[2],ue++}Z=Ei(Qe,wt)}else Z=pr[Pe];for(var Nn=[];ue<_.length;ue++){var cr=R.parse(_[ue],ue,Zi);if(!cr)return null;Nn.push(cr)}return new ci(Z,Nn)},ci.prototype.evaluate=function(_){for(var R=0;R1)&&R.push(ue)}}return R.concat(this.args.map(function(Pe){return Pe.serialize()}))};var Eo=function(_){this.type=tn,this.sections=_};Eo.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var Z=_[1];if(!Array.isArray(Z)&&typeof Z=="object")return R.error("First argument must be an image or text section.");for(var ue=[],Pe=!1,Qe=1;Qe<=_.length-1;++Qe){var wt=_[Qe];if(Pe&&typeof wt=="object"&&!Array.isArray(wt)){Pe=!1;var jt=null;if(wt["font-scale"]&&!(jt=R.parse(wt["font-scale"],1,vi)))return null;var Nn=null;if(wt["text-font"]&&!(Nn=R.parse(wt["text-font"],1,Ei(Di))))return null;var cr=null;if(wt["text-color"]&&!(cr=R.parse(wt["text-color"],1,Qr)))return null;var Ur=ue[ue.length-1];Ur.scale=jt,Ur.font=Nn,Ur.textColor=cr}else{var bi=R.parse(_[Qe],1,Zi);if(!bi)return null;var _o=bi.type.kind;if(_o!=="string"&&_o!=="value"&&_o!=="null"&&_o!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Pe=!0,ue.push({content:bi,scale:null,font:null,textColor:null})}}return new Eo(ue)},Eo.prototype.evaluate=function(_){return new ha(this.sections.map(function(R){var Z=R.content.evaluate(_);return dl(Z)===Gn?new ya("",Z,null,null,null):new ya($r(Z),null,R.scale?R.scale.evaluate(_):null,R.font?R.font.evaluate(_).join(","):null,R.textColor?R.textColor.evaluate(_):null)}))},Eo.prototype.eachChild=function(_){for(var R=0,Z=this.sections;R-1),Z},mo.prototype.eachChild=function(_){_(this.input)},mo.prototype.outputDefined=function(){return!1},mo.prototype.serialize=function(){return["image",this.input.serialize()]};var Ts={"to-boolean":co,"to-color":Qr,"to-number":vi,"to-string":Di},xs=function(_,R){this.type=_,this.args=R};xs.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var Z=_[0];if((Z==="to-boolean"||Z==="to-string")&&_.length!==2)return R.error("Expected one argument.");for(var ue=Ts[Z],Pe=[],Qe=1;Qe<_.length;Qe++){var wt=R.parse(_[Qe],Qe,Zi);if(!wt)return null;Pe.push(wt)}return new xs(ue,Pe)},xs.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var R,Z,ue=0,Pe=this.args;ue4?"Invalid rbga value "+JSON.stringify(R)+": expected an array containing either three or four numeric values.":Ua(R[0],R[1],R[2],R[3])))return new qn(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new Tr(Z||"Could not parse color from value '"+(typeof R=="string"?R:String(JSON.stringify(R)))+"'")}if(this.type.kind==="number"){for(var wt=null,jt=0,Nn=this.args;jt=R[2]||_[1]<=R[1]||_[3]>=R[3])}function at(_,R){var Z=(180+_[0])/360,ue=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_[1]*Math.PI/360)))/360,Pe=Math.pow(2,R.z);return[Math.round(Z*Pe*8192),Math.round(ue*Pe*8192)]}function gt(_,R,Z){return R[1]>_[1]!=Z[1]>_[1]&&_[0]<(Z[0]-R[0])*(_[1]-R[1])/(Z[1]-R[1])+R[0]}function Ne(_,R){for(var Z,ue,Pe,Qe,wt,jt,Nn,cr=!1,Ur=0,bi=R.length;Ur0&&jt<0||wt<0&&jt>0}function ln(_,R,Z){for(var ue=0,Pe=Z;ueZ[2]){var Pe=.5*ue,Qe=_[0]-Z[0]>Pe?-ue:Z[0]-_[0]>Pe?ue:0;Qe===0&&(Qe=_[0]-Z[2]>Pe?-ue:Z[2]-_[0]>Pe?ue:0),_[0]+=Qe}En(R,_)}function fs(_,R,Z,ue){for(var Pe=8192*Math.pow(2,ue.z),Qe=[8192*ue.x,8192*ue.y],wt=[],jt=0,Nn=_;jt=0)return!1;var Z=!0;return _.eachChild(function(ue){Z&&!Ds(ue,R)&&(Z=!1)}),Z}Bs.parse=function(_,R){if(_.length!==2)return R.error("'within' expression requires exactly one argument, but found "+(_.length-1)+" instead.");if(Ao(_[1])){var Z=_[1];if(Z.type==="FeatureCollection")for(var ue=0;ueR))throw new Tr("Input is not a number.");Qe=wt-1}return 0}va.prototype.parse=function(_,R,Z,ue,Pe){return Pe===void 0&&(Pe={}),R?this.concat(R,Z,ue)._parse(_,Pe):this._parse(_,Pe)},va.prototype._parse=function(_,R){function Z(cr,Ur,bi){return bi==="assert"?new ci(Ur,[cr]):bi==="coerce"?new xs(Ur,[cr]):cr}if(_!==null&&typeof _!="string"&&typeof _!="boolean"&&typeof _!="number"||(_=["literal",_]),Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ue=_[0];if(typeof ue!="string")return this.error("Expression name must be a string, but found "+typeof ue+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Pe=this.registry[ue];if(Pe){var Qe=Pe.parse(_,this);if(!Qe)return null;if(this.expectedType){var wt=this.expectedType,jt=Qe.type;if(wt.kind!=="string"&&wt.kind!=="number"&&wt.kind!=="boolean"&&wt.kind!=="object"&&wt.kind!=="array"||jt.kind!=="value")if(wt.kind!=="color"&&wt.kind!=="formatted"&&wt.kind!=="resolvedImage"||jt.kind!=="value"&&jt.kind!=="string"){if(this.checkSubtype(wt,jt))return null}else Qe=Z(Qe,wt,R.typeAnnotation||"coerce");else Qe=Z(Qe,wt,R.typeAnnotation||"assert")}if(!(Qe instanceof er)&&Qe.type.kind!=="resolvedImage"&&function cr(Ur){if(Ur instanceof oa)return cr(Ur.boundExpression);if(Ur instanceof Xt&&Ur.name==="error"||Ur instanceof gn||Ur instanceof Bs)return!1;var bi=Ur instanceof xs||Ur instanceof ci,_o=!0;return Ur.eachChild(function(zo){_o=bi?_o&&cr(zo):_o&&zo instanceof er}),!!_o&&_a(Ur)&&Ds(Ur,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(Qe)){var Nn=new ui;try{Qe=new er(Qe.type,Qe.evaluate(Nn))}catch(cr){return this.error(cr.message),null}}return Qe}return this.error('Unknown expression "'+ue+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(_===void 0?"'undefined' value invalid. Use null instead.":typeof _=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof _+" instead.")},va.prototype.concat=function(_,R,Z){var ue=typeof _=="number"?this.path.concat(_):this.path,Pe=Z?this.scope.concat(Z):this.scope;return new va(this.registry,ue,R||null,Pe,this.errors)},va.prototype.error=function(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];var ue=""+this.key+R.map(function(Pe){return"["+Pe+"]"}).join("");this.errors.push(new pn(ue,_))},va.prototype.checkSubtype=function(_,R){var Z=nr(_,R);return Z&&this.error(Z),Z};var Fa=function(_,R,Z){this.type=_,this.input=R,this.labels=[],this.outputs=[];for(var ue=0,Pe=Z;ue=wt)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Nn);var Ur=R.parse(jt,cr,Pe);if(!Ur)return null;Pe=Pe||Ur.type,ue.push([wt,Ur])}return new Fa(Pe,Z,ue)},Fa.prototype.evaluate=function(_){var R=this.labels,Z=this.outputs;if(R.length===1)return Z[0].evaluate(_);var ue=this.input.evaluate(_);if(ue<=R[0])return Z[0].evaluate(_);var Pe=R.length;return ue>=R[Pe-1]?Z[Pe-1].evaluate(_):Z[Bl(R,ue)].evaluate(_)},Fa.prototype.eachChild=function(_){_(this.input);for(var R=0,Z=this.outputs;R0&&_.push(this.labels[R]),_.push(this.outputs[R].serialize());return _};var la=Object.freeze({__proto__:null,number:ml,color:function(_,R,Z){return new qn(ml(_.r,R.r,Z),ml(_.g,R.g,Z),ml(_.b,R.b,Z),ml(_.a,R.a,Z))},array:function(_,R,Z){return _.map(function(ue,Pe){return ml(ue,R[Pe],Z)})}}),Nl=6/29*3*(6/29),vs=Math.PI/180,Hi=180/Math.PI;function to(_){return _>.008856451679035631?Math.pow(_,1/3):_/Nl+4/29}function sa(_){return _>6/29?_*_*_:Nl*(_-4/29)}function Cs(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,1/2.4)-.055)}function Ka(_){return(_/=255)<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function Wu(_){var R=Ka(_.r),Z=Ka(_.g),ue=Ka(_.b),Pe=to((.4124564*R+.3575761*Z+.1804375*ue)/.95047),Qe=to((.2126729*R+.7151522*Z+.072175*ue)/1);return{l:116*Qe-16,a:500*(Pe-Qe),b:200*(Qe-to((.0193339*R+.119192*Z+.9503041*ue)/1.08883)),alpha:_.a}}function rc(_){var R=(_.l+16)/116,Z=isNaN(_.a)?R:R+_.a/500,ue=isNaN(_.b)?R:R-_.b/200;return R=1*sa(R),Z=.95047*sa(Z),ue=1.08883*sa(ue),new qn(Cs(3.2404542*Z-1.5371385*R-.4985314*ue),Cs(-.969266*Z+1.8760108*R+.041556*ue),Cs(.0556434*Z-.2040259*R+1.0572252*ue),_.alpha)}function Pc(_,R,Z){var ue=R-_;return _+Z*(ue>180||ue<-180?ue-360*Math.round(ue/360):ue)}var vo={forward:Wu,reverse:rc,interpolate:function(_,R,Z){return{l:ml(_.l,R.l,Z),a:ml(_.a,R.a,Z),b:ml(_.b,R.b,Z),alpha:ml(_.alpha,R.alpha,Z)}}},eo={forward:function(_){var R=Wu(_),Z=R.l,ue=R.a,Pe=R.b,Qe=Math.atan2(Pe,ue)*Hi;return{h:Qe<0?Qe+360:Qe,c:Math.sqrt(ue*ue+Pe*Pe),l:Z,alpha:_.a}},reverse:function(_){var R=_.h*vs,Z=_.c;return rc({l:_.l,a:Math.cos(R)*Z,b:Math.sin(R)*Z,alpha:_.alpha})},interpolate:function(_,R,Z){return{h:Pc(_.h,R.h,Z),c:ml(_.c,R.c,Z),l:ml(_.l,R.l,Z),alpha:ml(_.alpha,R.alpha,Z)}}},ds=Object.freeze({__proto__:null,lab:vo,hcl:eo}),Wn=function(_,R,Z,ue,Pe){this.type=_,this.operator=R,this.interpolation=Z,this.input=ue,this.labels=[],this.outputs=[];for(var Qe=0,wt=Pe;Qe1}))return R.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ue={name:"cubic-bezier",controlPoints:jt}}if(_.length-1<4)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!=0)return R.error("Expected an even number of arguments.");if(!(Pe=R.parse(Pe,2,vi)))return null;var Nn=[],cr=null;Z==="interpolate-hcl"||Z==="interpolate-lab"?cr=Qr:R.expectedType&&R.expectedType.kind!=="value"&&(cr=R.expectedType);for(var Ur=0;Ur=bi)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',zo);var ra=R.parse(_o,qs,cr);if(!ra)return null;cr=cr||ra.type,Nn.push([bi,ra])}return cr.kind==="number"||cr.kind==="color"||cr.kind==="array"&&cr.itemType.kind==="number"&&typeof cr.N=="number"?new Wn(cr,Z,ue,Pe,Nn):R.error("Type "+In(cr)+" is not interpolatable.")},Wn.prototype.evaluate=function(_){var R=this.labels,Z=this.outputs;if(R.length===1)return Z[0].evaluate(_);var ue=this.input.evaluate(_);if(ue<=R[0])return Z[0].evaluate(_);var Pe=R.length;if(ue>=R[Pe-1])return Z[Pe-1].evaluate(_);var Qe=Bl(R,ue),wt=Wn.interpolationFactor(this.interpolation,ue,R[Qe],R[Qe+1]),jt=Z[Qe].evaluate(_),Nn=Z[Qe+1].evaluate(_);return this.operator==="interpolate"?la[this.type.kind.toLowerCase()](jt,Nn,wt):this.operator==="interpolate-hcl"?eo.reverse(eo.interpolate(eo.forward(jt),eo.forward(Nn),wt)):vo.reverse(vo.interpolate(vo.forward(jt),vo.forward(Nn),wt))},Wn.prototype.eachChild=function(_){_(this.input);for(var R=0,Z=this.outputs;R=Z.length)throw new Tr("Array index out of bounds: "+R+" > "+(Z.length-1)+".");if(R!==Math.floor(R))throw new Tr("Array index must be an integer, but found "+R+" instead.");return Z[R]},Ji.prototype.eachChild=function(_){_(this.index),_(this.input)},Ji.prototype.outputDefined=function(){return!1},Ji.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var so=function(_,R){this.type=co,this.needle=_,this.haystack=R};so.parse=function(_,R){if(_.length!==3)return R.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Zi),ue=R.parse(_[2],2,Zi);return Z&&ue?wi(Z.type,[co,Di,vi,Jr,Zi])?new so(Z,ue):R.error("Expected first argument to be of type boolean, string, number or null, but found "+In(Z.type)+" instead"):null},so.prototype.evaluate=function(_){var R=this.needle.evaluate(_),Z=this.haystack.evaluate(_);if(!Z)return!1;if(!Mi(R,["boolean","string","number","null"]))throw new Tr("Expected first argument to be of type boolean, string, number or null, but found "+In(dl(R))+" instead.");if(!Mi(Z,["string","array"]))throw new Tr("Expected second argument to be of type array or string, but found "+In(dl(Z))+" instead.");return Z.indexOf(R)>=0},so.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},so.prototype.outputDefined=function(){return!0},so.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Pi=function(_,R,Z){this.type=vi,this.needle=_,this.haystack=R,this.fromIndex=Z};Pi.parse=function(_,R){if(_.length<=2||_.length>=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Zi),ue=R.parse(_[2],2,Zi);if(!Z||!ue)return null;if(!wi(Z.type,[co,Di,vi,Jr,Zi]))return R.error("Expected first argument to be of type boolean, string, number or null, but found "+In(Z.type)+" instead");if(_.length===4){var Pe=R.parse(_[3],3,vi);return Pe?new Pi(Z,ue,Pe):null}return new Pi(Z,ue)},Pi.prototype.evaluate=function(_){var R=this.needle.evaluate(_),Z=this.haystack.evaluate(_);if(!Mi(R,["boolean","string","number","null"]))throw new Tr("Expected first argument to be of type boolean, string, number or null, but found "+In(dl(R))+" instead.");if(!Mi(Z,["string","array"]))throw new Tr("Expected second argument to be of type array or string, but found "+In(dl(Z))+" instead.");if(this.fromIndex){var ue=this.fromIndex.evaluate(_);return Z.indexOf(R,ue)}return Z.indexOf(R)},Pi.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Pi.prototype.outputDefined=function(){return!1},Pi.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var us=function(_,R,Z,ue,Pe,Qe){this.inputType=_,this.type=R,this.input=Z,this.cases=ue,this.outputs=Pe,this.otherwise=Qe};us.parse=function(_,R){if(_.length<5)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!=1)return R.error("Expected an even number of arguments.");var Z,ue;R.expectedType&&R.expectedType.kind!=="value"&&(ue=R.expectedType);for(var Pe={},Qe=[],wt=2;wt<_.length-1;wt+=2){var jt=_[wt],Nn=_[wt+1];Array.isArray(jt)||(jt=[jt]);var cr=R.concat(wt);if(jt.length===0)return cr.error("Expected at least one branch label.");for(var Ur=0,bi=jt;UrNumber.MAX_SAFE_INTEGER)return cr.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof _o=="number"&&Math.floor(_o)!==_o)return cr.error("Numeric branch labels must be integer values.");if(Z){if(cr.checkSubtype(Z,dl(_o)))return null}else Z=dl(_o);if(Pe[String(_o)]!==void 0)return cr.error("Branch labels must be unique.");Pe[String(_o)]=Qe.length}var zo=R.parse(Nn,wt,ue);if(!zo)return null;ue=ue||zo.type,Qe.push(zo)}var qs=R.parse(_[1],1,Zi);if(!qs)return null;var ra=R.parse(_[_.length-1],_.length-1,ue);return ra?qs.type.kind!=="value"&&R.concat(1).checkSubtype(Z,qs.type)?null:new us(Z,ue,qs,Pe,Qe,ra):null},us.prototype.evaluate=function(_){var R=this.input.evaluate(_);return(dl(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(_)},us.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},us.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},us.prototype.serialize=function(){for(var _=this,R=["match",this.input.serialize()],Z=[],ue={},Pe=0,Qe=Object.keys(this.cases).sort();Pe=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Zi),ue=R.parse(_[2],2,vi);if(!Z||!ue)return null;if(!wi(Z.type,[Ei(Zi),Di,Zi]))return R.error("Expected first argument to be of type array or string, but found "+In(Z.type)+" instead");if(_.length===4){var Pe=R.parse(_[3],3,vi);return Pe?new $a(Z.type,Z,ue,Pe):null}return new $a(Z.type,Z,ue)},$a.prototype.evaluate=function(_){var R=this.input.evaluate(_),Z=this.beginIndex.evaluate(_);if(!Mi(R,["string","array"]))throw new Tr("Expected first argument to be of type array or string, but found "+In(dl(R))+" instead.");if(this.endIndex){var ue=this.endIndex.evaluate(_);return R.slice(Z,ue)}return R.slice(Z)},$a.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},$a.prototype.outputDefined=function(){return!1},$a.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Za=Ml("==",function(_,R,Z){return R===Z},Zl),ku=Ml("!=",function(_,R,Z){return R!==Z},function(_,R,Z,ue){return!Zl(0,R,Z,ue)}),ea=Ml("<",function(_,R,Z){return R",function(_,R,Z){return R>Z},function(_,R,Z,ue){return ue.compare(R,Z)>0}),el=Ml("<=",function(_,R,Z){return R<=Z},function(_,R,Z,ue){return ue.compare(R,Z)<=0}),Hl=Ml(">=",function(_,R,Z){return R>=Z},function(_,R,Z,ue){return ue.compare(R,Z)>=0}),Jl=function(_,R,Z,ue,Pe){this.type=Di,this.number=_,this.locale=R,this.currency=Z,this.minFractionDigits=ue,this.maxFractionDigits=Pe};Jl.parse=function(_,R){if(_.length!==3)return R.error("Expected two arguments.");var Z=R.parse(_[1],1,vi);if(!Z)return null;var ue=_[2];if(typeof ue!="object"||Array.isArray(ue))return R.error("NumberFormat options argument must be an object.");var Pe=null;if(ue.locale&&!(Pe=R.parse(ue.locale,1,Di)))return null;var Qe=null;if(ue.currency&&!(Qe=R.parse(ue.currency,1,Di)))return null;var wt=null;if(ue["min-fraction-digits"]&&!(wt=R.parse(ue["min-fraction-digits"],1,vi)))return null;var jt=null;return ue["max-fraction-digits"]&&!(jt=R.parse(ue["max-fraction-digits"],1,vi))?null:new Jl(Z,Pe,Qe,wt,jt)},Jl.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},Jl.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var vu=function(_){this.type=vi,this.input=_};vu.parse=function(_,R){if(_.length!==2)return R.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1);return Z?Z.type.kind!=="array"&&Z.type.kind!=="string"&&Z.type.kind!=="value"?R.error("Expected argument of type string or array, but found "+In(Z.type)+" instead."):new vu(Z):null},vu.prototype.evaluate=function(_){var R=this.input.evaluate(_);if(typeof R=="string"||Array.isArray(R))return R.length;throw new Tr("Expected value to be of type string or array, but found "+In(dl(R))+" instead.")},vu.prototype.eachChild=function(_){_(this.input)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){var _=["length"];return this.eachChild(function(R){_.push(R.serialize())}),_};var au={"==":Za,"!=":ku,">":Qa,"<":ea,">=":Hl,"<=":el,array:ci,at:Ji,boolean:ci,case:pa,coalesce:ai,collator:gn,format:Eo,image:mo,in:so,"index-of":Pi,interpolate:Wn,"interpolate-hcl":Wn,"interpolate-lab":Wn,length:vu,let:hi,literal:er,match:us,number:ci,"number-format":Jl,object:ci,slice:$a,step:Fa,string:ci,"to-boolean":xs,"to-color":xs,"to-number":xs,"to-string":xs,var:oa,within:Bs};function Cn(_,R){var Z=R[0],ue=R[1],Pe=R[2],Qe=R[3];Z=Z.evaluate(_),ue=ue.evaluate(_),Pe=Pe.evaluate(_);var wt=Qe?Qe.evaluate(_):1,jt=Ua(Z,ue,Pe,wt);if(jt)throw new Tr(jt);return new qn(Z/255*wt,ue/255*wt,Pe/255*wt,wt)}function Eu(_,R){return _ in R}function ls(_,R){var Z=R[_];return Z===void 0?null:Z}function Ks(_){return{type:_}}function xa(_){return{result:"success",value:_}}function Il(_){return{result:"error",value:_}}function El(_){return _["property-type"]==="data-driven"||_["property-type"]==="cross-faded-data-driven"}function vl(_){return!!_.expression&&_.expression.parameters.indexOf("zoom")>-1}function fu(_){return!!_.expression&&_.expression.interpolated}function Fu(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function lc(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Ic(_){return _}function Uc(_,R,Z){return _!==void 0?_:R!==void 0?R:Z!==void 0?Z:void 0}function zd(_,R,Z,ue,Pe){return Uc(typeof Z===Pe?ue[Z]:void 0,_.default,R.default)}function th(_,R,Z){if(Fu(Z)!=="number")return Uc(_.default,R.default);var ue=_.stops.length;if(ue===1||Z<=_.stops[0][0])return _.stops[0][1];if(Z>=_.stops[ue-1][0])return _.stops[ue-1][1];var Pe=Bl(_.stops.map(function(Qe){return Qe[0]}),Z);return _.stops[Pe][1]}function Xd(_,R,Z){var ue=_.base!==void 0?_.base:1;if(Fu(Z)!=="number")return Uc(_.default,R.default);var Pe=_.stops.length;if(Pe===1||Z<=_.stops[0][0])return _.stops[0][1];if(Z>=_.stops[Pe-1][0])return _.stops[Pe-1][1];var Qe=Bl(_.stops.map(function(bi){return bi[0]}),Z),wt=function(bi,_o,zo,qs){var ra=qs-zo,al=bi-zo;return ra===0?0:_o===1?al/ra:(Math.pow(_o,al)-1)/(Math.pow(_o,ra)-1)}(Z,ue,_.stops[Qe][0],_.stops[Qe+1][0]),jt=_.stops[Qe][1],Nn=_.stops[Qe+1][1],cr=la[R.type]||Ic;if(_.colorSpace&&_.colorSpace!=="rgb"){var Ur=ds[_.colorSpace];cr=function(bi,_o){return Ur.reverse(Ur.interpolate(Ur.forward(bi),Ur.forward(_o),wt))}}return typeof jt.evaluate=="function"?{evaluate:function(){for(var bi=[],_o=arguments.length;_o--;)bi[_o]=arguments[_o];var zo=jt.evaluate.apply(void 0,bi),qs=Nn.evaluate.apply(void 0,bi);if(zo!==void 0&&qs!==void 0)return cr(zo,qs,wt)}}:cr(jt,Nn,wt)}function sd(_,R,Z){return R.type==="color"?Z=qn.parse(Z):R.type==="formatted"?Z=ha.fromString(Z.toString()):R.type==="resolvedImage"?Z=Ws.fromString(Z.toString()):Fu(Z)===R.type||R.type==="enum"&&R.values[Z]||(Z=void 0),Uc(Z,_.default,R.default)}Xt.register(au,{error:[{kind:"error"},[Di],function(_,R){throw new Tr(R[0].evaluate(_))}],typeof:[Di,[Zi],function(_,R){return In(dl(R[0].evaluate(_)))}],"to-rgba":[Ei(vi,4),[Qr],function(_,R){return R[0].evaluate(_).toArray()}],rgb:[Qr,[vi,vi,vi],Cn],rgba:[Qr,[vi,vi,vi,vi],Cn],has:{type:co,overloads:[[[Di],function(_,R){return Eu(R[0].evaluate(_),_.properties())}],[[Di,oi],function(_,R){var Z=R[1];return Eu(R[0].evaluate(_),Z.evaluate(_))}]]},get:{type:Zi,overloads:[[[Di],function(_,R){return ls(R[0].evaluate(_),_.properties())}],[[Di,oi],function(_,R){var Z=R[1];return ls(R[0].evaluate(_),Z.evaluate(_))}]]},"feature-state":[Zi,[Di],function(_,R){return ls(R[0].evaluate(_),_.featureState||{})}],properties:[oi,[],function(_){return _.properties()}],"geometry-type":[Di,[],function(_){return _.geometryType()}],id:[Zi,[],function(_){return _.id()}],zoom:[vi,[],function(_){return _.globals.zoom}],"heatmap-density":[vi,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[vi,[],function(_){return _.globals.lineProgress||0}],accumulated:[Zi,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[vi,Ks(vi),function(_,R){for(var Z=0,ue=0,Pe=R;ue":[co,[Di,Zi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe>Qe}],"filter-id->":[co,[Zi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue>Pe}],"filter-<=":[co,[Di,Zi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe<=Qe}],"filter-id-<=":[co,[Zi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue<=Pe}],"filter->=":[co,[Di,Zi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe>=Qe}],"filter-id->=":[co,[Zi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue>=Pe}],"filter-has":[co,[Zi],function(_,R){return R[0].value in _.properties()}],"filter-has-id":[co,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[co,[Ei(Di)],function(_,R){return R[0].value.indexOf(_.geometryType())>=0}],"filter-id-in":[co,[Ei(Zi)],function(_,R){return R[0].value.indexOf(_.id())>=0}],"filter-in-small":[co,[Di,Ei(Zi)],function(_,R){var Z=R[0];return R[1].value.indexOf(_.properties()[Z.value])>=0}],"filter-in-large":[co,[Di,Ei(Zi)],function(_,R){var Z=R[0],ue=R[1];return function(Pe,Qe,wt,jt){for(;wt<=jt;){var Nn=wt+jt>>1;if(Qe[Nn]===Pe)return!0;Qe[Nn]>Pe?jt=Nn-1:wt=Nn+1}return!1}(_.properties()[Z.value],ue.value,0,ue.value.length-1)}],all:{type:co,overloads:[[[co,co],function(_,R){var Z=R[1];return R[0].evaluate(_)&&Z.evaluate(_)}],[Ks(co),function(_,R){for(var Z=0,ue=R;Z0&&typeof _[0]=="string"&&_[0]in au}function hd(_,R){var Z=new va(au,[],R?function(Pe){var Qe={color:Qr,string:Di,number:vi,enum:Di,boolean:co,formatted:tn,resolvedImage:Gn};return Pe.type==="array"?Ei(Qe[Pe.value]||Zi,Pe.length):Qe[Pe.type]}(R):void 0),ue=Z.parse(_,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return ue?xa(new Mu(ue,R)):Il(Z.errors)}Mu.prototype.evaluateWithoutErrorHandling=function(_,R,Z,ue,Pe,Qe){return this._evaluator.globals=_,this._evaluator.feature=R,this._evaluator.featureState=Z,this._evaluator.canonical=ue,this._evaluator.availableImages=Pe||null,this._evaluator.formattedSection=Qe,this.expression.evaluate(this._evaluator)},Mu.prototype.evaluate=function(_,R,Z,ue,Pe,Qe){this._evaluator.globals=_,this._evaluator.feature=R||null,this._evaluator.featureState=Z||null,this._evaluator.canonical=ue,this._evaluator.availableImages=Pe||null,this._evaluator.formattedSection=Qe||null;try{var wt=this.expression.evaluate(this._evaluator);if(wt==null||typeof wt=="number"&&wt!=wt)return this._defaultValue;if(this._enumValues&&!(wt in this._enumValues))throw new Tr("Expected value to be one of "+Object.keys(this._enumValues).map(function(jt){return JSON.stringify(jt)}).join(", ")+", but found "+JSON.stringify(wt)+" instead.");return wt}catch(jt){return this._warningHistory[jt.message]||(this._warningHistory[jt.message]=!0,typeof console!="undefined"&&console.warn(jt.message)),this._defaultValue}};var vd=function(_,R){this.kind=_,this._styleExpression=R,this.isStateDependent=_!=="constant"&&!oo(R.expression)};vd.prototype.evaluateWithoutErrorHandling=function(_,R,Z,ue,Pe,Qe){return this._styleExpression.evaluateWithoutErrorHandling(_,R,Z,ue,Pe,Qe)},vd.prototype.evaluate=function(_,R,Z,ue,Pe,Qe){return this._styleExpression.evaluate(_,R,Z,ue,Pe,Qe)};var Yd=function(_,R,Z,ue){this.kind=_,this.zoomStops=Z,this._styleExpression=R,this.isStateDependent=_!=="camera"&&!oo(R.expression),this.interpolationType=ue};function nh(_,R){if((_=hd(_,R)).result==="error")return _;var Z=_.value.expression,ue=_a(Z);if(!ue&&!El(R))return Il([new pn("","data expressions not supported")]);var Pe=Ds(Z,["zoom"]);if(!Pe&&!vl(R))return Il([new pn("","zoom expressions not supported")]);var Qe=function wt(jt){var Nn=null;if(jt instanceof hi)Nn=wt(jt.result);else if(jt instanceof ai)for(var cr=0,Ur=jt.args;crue.maximum?[new Qn(R,Z,Z+" is greater than the maximum value "+ue.maximum)]:[]}function Pf(_){var R,Z,ue,Pe=_.valueSpec,Qe=as(_.value.type),wt={},jt=Qe!=="categorical"&&_.value.property===void 0,Nn=!jt,cr=Fu(_.value.stops)==="array"&&Fu(_.value.stops[0])==="array"&&Fu(_.value.stops[0][0])==="object",Ur=yh({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:function(zo){if(Qe==="identity")return[new Qn(zo.key,zo.value,'identity function may not have a "stops" property')];var qs=[],ra=zo.value;return qs=qs.concat(id({key:zo.key,value:ra,valueSpec:zo.valueSpec,style:zo.style,styleSpec:zo.styleSpec,arrayElementValidator:bi})),Fu(ra)==="array"&&ra.length===0&&qs.push(new Qn(zo.key,ra,"array must have at least one stop")),qs},default:function(zo){return Uu({key:zo.key,value:zo.value,valueSpec:Pe,style:zo.style,styleSpec:zo.styleSpec})}}});return Qe==="identity"&&jt&&Ur.push(new Qn(_.key,_.value,'missing required property "property"')),Qe==="identity"||_.value.stops||Ur.push(new Qn(_.key,_.value,'missing required property "stops"')),Qe==="exponential"&&_.valueSpec.expression&&!fu(_.valueSpec)&&Ur.push(new Qn(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(Nn&&!El(_.valueSpec)?Ur.push(new Qn(_.key,_.value,"property functions not supported")):jt&&!vl(_.valueSpec)&&Ur.push(new Qn(_.key,_.value,"zoom functions not supported"))),Qe!=="categorical"&&!cr||_.value.property!==void 0||Ur.push(new Qn(_.key,_.value,'"property" property is required')),Ur;function bi(zo){var qs=[],ra=zo.value,al=zo.key;if(Fu(ra)!=="array")return[new Qn(al,ra,"array expected, "+Fu(ra)+" found")];if(ra.length!==2)return[new Qn(al,ra,"array length 2 expected, length "+ra.length+" found")];if(cr){if(Fu(ra[0])!=="object")return[new Qn(al,ra,"object expected, "+Fu(ra[0])+" found")];if(ra[0].zoom===void 0)return[new Qn(al,ra,"object stop key must have zoom")];if(ra[0].value===void 0)return[new Qn(al,ra,"object stop key must have value")];if(ue&&ue>as(ra[0].zoom))return[new Qn(al,ra[0].zoom,"stop zoom values must appear in ascending order")];as(ra[0].zoom)!==ue&&(ue=as(ra[0].zoom),Z=void 0,wt={}),qs=qs.concat(yh({key:al+"[0]",value:ra[0],valueSpec:{zoom:{}},style:zo.style,styleSpec:zo.styleSpec,objectElementValidators:{zoom:nd,value:_o}}))}else qs=qs.concat(_o({key:al+"[0]",value:ra[0],valueSpec:{},style:zo.style,styleSpec:zo.styleSpec},ra));return Fc(Bt(ra[1]))?qs.concat([new Qn(al+"[1]",ra[1],"expressions are not allowed in function stops.")]):qs.concat(Uu({key:al+"[1]",value:ra[1],valueSpec:Pe,style:zo.style,styleSpec:zo.styleSpec}))}function _o(zo,qs){var ra=Fu(zo.value),al=as(zo.value),Pa=zo.value!==null?zo.value:qs;if(R){if(ra!==R)return[new Qn(zo.key,Pa,ra+" stop domain type must match previous stop domain type "+R)]}else R=ra;if(ra!=="number"&&ra!=="string"&&ra!=="boolean")return[new Qn(zo.key,Pa,"stop domain value must be a number, string, or boolean")];if(ra!=="number"&&Qe!=="categorical"){var Ol="number expected, "+ra+" found";return El(Pe)&&Qe===void 0&&(Ol+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Qn(zo.key,Pa,Ol)]}return Qe!=="categorical"||ra!=="number"||isFinite(al)&&Math.floor(al)===al?Qe!=="categorical"&&ra==="number"&&Z!==void 0&&al=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var R=0,Z=_.slice(1);RR?1:0}function Sf(_){if(!_)return!0;var R,Z=_[0];return _.length<=1?Z!=="any":Z==="=="?xp(_[1],_[2],"=="):Z==="!="?Th(xp(_[1],_[2],"==")):Z==="<"||Z===">"||Z==="<="||Z===">="?xp(_[1],_[2],Z):Z==="any"?(R=_.slice(1),["any"].concat(R.map(Sf))):Z==="all"?["all"].concat(_.slice(1).map(Sf)):Z==="none"?["all"].concat(_.slice(1).map(Sf).map(Th)):Z==="in"?Nf(_[1],_.slice(2)):Z==="!in"?Th(Nf(_[1],_.slice(2))):Z==="has"?ch(_[1]):Z==="!has"?Th(ch(_[1])):Z!=="within"||_}function xp(_,R,Z){switch(_){case"$type":return["filter-type-"+Z,R];case"$id":return["filter-id-"+Z,R];default:return["filter-"+Z,_,R]}}function Nf(_,R){if(R.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(Z){return typeof Z!=typeof R[0]})?["filter-in-large",_,["literal",R.sort(Lh)]]:["filter-in-small",_,["literal",R]]}}function ch(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function Th(_){return["!",_]}function yu(_){return Yc(Bt(_.value))?Jd(ao({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function R(Z){var ue=Z.value,Pe=Z.key;if(Fu(ue)!=="array")return[new Qn(Pe,ue,"array expected, "+Fu(ue)+" found")];var Qe,wt=Z.styleSpec,jt=[];if(ue.length<1)return[new Qn(Pe,ue,"filter array must have at least 1 element")];switch(jt=jt.concat(cc({key:Pe+"[0]",value:ue[0],valueSpec:wt.filter_operator,style:Z.style,styleSpec:Z.styleSpec})),as(ue[0])){case"<":case"<=":case">":case">=":ue.length>=2&&as(ue[1])==="$type"&&jt.push(new Qn(Pe,ue,'"$type" cannot be use with operator "'+ue[0]+'"'));case"==":case"!=":ue.length!==3&&jt.push(new Qn(Pe,ue,'filter array for operator "'+ue[0]+'" must have 3 elements'));case"in":case"!in":ue.length>=2&&(Qe=Fu(ue[1]))!=="string"&&jt.push(new Qn(Pe+"[1]",ue[1],"string expected, "+Qe+" found"));for(var Nn=2;Nn=Ur[zo+0]&&ue>=Ur[zo+1])?(wt[_o]=!0,Qe.push(cr[_o])):wt[_o]=!1}}},ed.prototype._forEachCell=function(_,R,Z,ue,Pe,Qe,wt,jt){for(var Nn=this._convertToCellCoord(_),cr=this._convertToCellCoord(R),Ur=this._convertToCellCoord(Z),bi=this._convertToCellCoord(ue),_o=Nn;_o<=Ur;_o++)for(var zo=cr;zo<=bi;zo++){var qs=this.d*zo+_o;if((!jt||jt(this._convertFromCellCoord(_o),this._convertFromCellCoord(zo),this._convertFromCellCoord(_o+1),this._convertFromCellCoord(zo+1)))&&Pe.call(this,_,R,Z,ue,qs,Qe,wt,jt))return}},ed.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},ed.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},ed.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,R=3+this.cells.length+1+1,Z=0,ue=0;ue=0)){var Ur=_[cr];Nn[cr]=cf[jt].shallow.indexOf(cr)>=0?Ur:ro(Ur,R)}_ instanceof Error&&(Nn.message=_.message)}if(Nn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(Nn.$name=jt),Nn}throw new Error("can't serialize object of type "+typeof _)}function bc(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||ps(_)||Op(_)||ArrayBuffer.isView(_)||_ instanceof Vh)return _;if(Array.isArray(_))return _.map(bc);if(typeof _=="object"){var R=_.$name||"Object",Z=cf[R].klass;if(!Z)throw new Error("can't deserialize unregistered class "+R);if(Z.deserialize)return Z.deserialize(_);for(var ue=Object.create(Z.prototype),Pe=0,Qe=Object.keys(_);Pe=0?jt:bc(jt)}}return ue}throw new Error("can't deserialize object of type "+typeof _)}var yf=function(){this.first=!0};yf.prototype.update=function(_,R){var Z=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=Z,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=Z,!0):(this.lastFloorZoom>Z?(this.lastIntegerZoom=Z+1,this.lastIntegerZoomTime=R):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function Bc(_){for(var R=0,Z=_;R=65097&&_<=65103)||Qu["CJK Compatibility Ideographs"](_)||Qu["CJK Compatibility"](_)||Qu["CJK Radicals Supplement"](_)||Qu["CJK Strokes"](_)||!(!Qu["CJK Symbols and Punctuation"](_)||_>=12296&&_<=12305||_>=12308&&_<=12319||_===12336)||Qu["CJK Unified Ideographs Extension A"](_)||Qu["CJK Unified Ideographs"](_)||Qu["Enclosed CJK Letters and Months"](_)||Qu["Hangul Compatibility Jamo"](_)||Qu["Hangul Jamo Extended-A"](_)||Qu["Hangul Jamo Extended-B"](_)||Qu["Hangul Jamo"](_)||Qu["Hangul Syllables"](_)||Qu.Hiragana(_)||Qu["Ideographic Description Characters"](_)||Qu.Kanbun(_)||Qu["Kangxi Radicals"](_)||Qu["Katakana Phonetic Extensions"](_)||Qu.Katakana(_)&&_!==12540||!(!Qu["Halfwidth and Fullwidth Forms"](_)||_===65288||_===65289||_===65293||_>=65306&&_<=65310||_===65339||_===65341||_===65343||_>=65371&&_<=65503||_===65507||_>=65512&&_<=65519)||!(!Qu["Small Form Variants"](_)||_>=65112&&_<=65118||_>=65123&&_<=65126)||Qu["Unified Canadian Aboriginal Syllabics"](_)||Qu["Unified Canadian Aboriginal Syllabics Extended"](_)||Qu["Vertical Forms"](_)||Qu["Yijing Hexagram Symbols"](_)||Qu["Yi Syllables"](_)||Qu["Yi Radicals"](_))))}function Jp(_){return!(Df(_)||function(R){return!!(Qu["Latin-1 Supplement"](R)&&(R===167||R===169||R===174||R===177||R===188||R===189||R===190||R===215||R===247)||Qu["General Punctuation"](R)&&(R===8214||R===8224||R===8225||R===8240||R===8241||R===8251||R===8252||R===8258||R===8263||R===8264||R===8265||R===8273)||Qu["Letterlike Symbols"](R)||Qu["Number Forms"](R)||Qu["Miscellaneous Technical"](R)&&(R>=8960&&R<=8967||R>=8972&&R<=8991||R>=8996&&R<=9e3||R===9003||R>=9085&&R<=9114||R>=9150&&R<=9165||R===9167||R>=9169&&R<=9179||R>=9186&&R<=9215)||Qu["Control Pictures"](R)&&R!==9251||Qu["Optical Character Recognition"](R)||Qu["Enclosed Alphanumerics"](R)||Qu["Geometric Shapes"](R)||Qu["Miscellaneous Symbols"](R)&&!(R>=9754&&R<=9759)||Qu["Miscellaneous Symbols and Arrows"](R)&&(R>=11026&&R<=11055||R>=11088&&R<=11097||R>=11192&&R<=11243)||Qu["CJK Symbols and Punctuation"](R)||Qu.Katakana(R)||Qu["Private Use Area"](R)||Qu["CJK Compatibility Forms"](R)||Qu["Small Form Variants"](R)||Qu["Halfwidth and Fullwidth Forms"](R)||R===8734||R===8756||R===8757||R>=9984&&R<=10087||R>=10102&&R<=10131||R===65532||R===65533)}(_))}function sg(_){return _>=1424&&_<=2303||Qu["Arabic Presentation Forms-A"](_)||Qu["Arabic Presentation Forms-B"](_)}function Ah(_,R){return!(!R&&sg(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Qu.Khmer(_))}function ap(_){for(var R=0,Z=_;R-1&&(tp="error"),Rp&&Rp(_)};function Uf(){Pd.fire(new Er("pluginStateChange",{pluginStatus:tp,pluginURL:pg}))}var Pd=new di,Np=function(){return tp},$p=function(){if(tp!=="deferred"||!pg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");tp="loading",Uf(),pg&&xo({url:pg},function(_){_?Cp(_):(tp="loaded",Uf())})},ag={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return tp==="loaded"||ag.applyArabicShaping!=null},isLoading:function(){return tp==="loading"},setState:function(_){tp=_.pluginStatus,pg=_.pluginURL},isParsed:function(){return ag.applyArabicShaping!=null&&ag.processBidirectionalText!=null&&ag.processStyledBidirectionalText!=null},getPluginURL:function(){return pg}},Md=function(_,R){this.zoom=_,R?(this.now=R.now,this.fadeDuration=R.fadeDuration,this.zoomHistory=R.zoomHistory,this.transition=R.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new yf,this.transition={})};Md.prototype.isSupportedScript=function(_){return function(R,Z){for(var ue=0,Pe=R;uethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:R+(1-R)*Z}:{fromScale:.5,toScale:1,t:1-(1-Z)*R}};var Wp=function(_,R){this.property=_,this.value=R,this.expression=function(Z,ue){if(lc(Z))return new jd(Z,ue);if(Fc(Z)){var Pe=nh(Z,ue);if(Pe.result==="error")throw new Error(Pe.value.map(function(wt){return wt.key+": "+wt.message}).join(", "));return Pe.value}var Qe=Z;return typeof Z=="string"&&ue.type==="color"&&(Qe=qn.parse(Z)),{kind:"constant",evaluate:function(){return Qe}}}(R===void 0?_.specification.default:R,_.specification)};Wp.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wp.prototype.possiblyEvaluate=function(_,R,Z){return this.property.possiblyEvaluate(this,_,R,Z)};var Ih=function(_){this.property=_,this.value=new Wp(_,void 0)};Ih.prototype.transitioned=function(_,R){return new Ff(this.property,this.value,R,q({},_.transition,this.transition),_.now)},Ih.prototype.untransitioned=function(){return new Ff(this.property,this.value,null,{},0)};var of=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};of.prototype.getValue=function(_){return me(this._values[_].value.value)},of.prototype.setValue=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].value=new Wp(this._values[_].property,R===null?void 0:me(R))},of.prototype.getTransition=function(_){return me(this._values[_].transition)},of.prototype.setTransition=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].transition=me(R)||void 0},of.prototype.serialize=function(){for(var _={},R=0,Z=Object.keys(this._values);Rthis.end)return this.prior=null,Pe;if(this.value.isDataDriven())return this.prior=null,Pe;if(ue=1)return 1;var Nn=jt*jt,cr=Nn*jt;return 4*(jt<.5?cr:3*(jt-Nn)+cr-.75)}(wt))}return Pe};var iu=function(_){this._properties=_,this._values=Object.create(_.defaultTransitioningPropertyValues)};iu.prototype.possiblyEvaluate=function(_,R,Z){for(var ue=new np(this._properties),Pe=0,Qe=Object.keys(this._values);PeQe.zoomHistory.lastIntegerZoom?{from:Z,to:ue}:{from:Pe,to:ue}},R.prototype.interpolate=function(Z){return Z},R}(td),_f=function(_){this.specification=_};_f.prototype.possiblyEvaluate=function(_,R,Z,ue){if(_.value!==void 0){if(_.expression.kind==="constant"){var Pe=_.expression.evaluate(R,null,{},Z,ue);return this._calculate(Pe,Pe,Pe,R)}return this._calculate(_.expression.evaluate(new Md(Math.floor(R.zoom-1),R)),_.expression.evaluate(new Md(Math.floor(R.zoom),R)),_.expression.evaluate(new Md(Math.floor(R.zoom+1),R)),R)}},_f.prototype._calculate=function(_,R,Z,ue){return ue.zoom>ue.zoomHistory.lastIntegerZoom?{from:_,to:R}:{from:Z,to:R}},_f.prototype.interpolate=function(_){return _};var Hh=function(_){this.specification=_};Hh.prototype.possiblyEvaluate=function(_,R,Z,ue){return!!_.expression.evaluate(R,null,{},Z,ue)},Hh.prototype.interpolate=function(){return!1};var Dp=function(_){for(var R in this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],_){var Z=_[R];Z.specification.overridable&&this.overridableProperties.push(R);var ue=this.defaultPropertyValues[R]=new Wp(Z,void 0),Pe=this.defaultTransitionablePropertyValues[R]=new Ih(Z);this.defaultTransitioningPropertyValues[R]=Pe.untransitioned(),this.defaultPossiblyEvaluatedValues[R]=ue.possiblyEvaluate({})}};Qc("DataDrivenProperty",td),Qc("DataConstantProperty",Od),Qc("CrossFadedDataDrivenProperty",Tp),Qc("CrossFadedProperty",_f),Qc("ColorRampProperty",Hh);var Vp=function(_){function R(Z,ue){if(_.call(this),this.id=Z.id,this.type=Z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},Z.type!=="custom"&&(this.metadata=(Z=Z).metadata,this.minzoom=Z.minzoom,this.maxzoom=Z.maxzoom,Z.type!=="background"&&(this.source=Z.source,this.sourceLayer=Z["source-layer"],this.filter=Z.filter),ue.layout&&(this._unevaluatedLayout=new mp(ue.layout)),ue.paint)){for(var Pe in this._transitionablePaint=new of(ue.paint),Z.paint)this.setPaintProperty(Pe,Z.paint[Pe],{validate:!1});for(var Qe in Z.layout)this.setLayoutProperty(Qe,Z.layout[Qe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new np(ue.paint)}}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(Z){return Z==="visibility"?this.visibility:this._unevaluatedLayout.getValue(Z)},R.prototype.setLayoutProperty=function(Z,ue,Pe){Pe===void 0&&(Pe={}),ue!=null&&this._validate(Bh,"layers."+this.id+".layout."+Z,Z,ue,Pe)||(Z!=="visibility"?this._unevaluatedLayout.setValue(Z,ue):this.visibility=ue)},R.prototype.getPaintProperty=function(Z){return Ie(Z,"-transition")?this._transitionablePaint.getTransition(Z.slice(0,-11)):this._transitionablePaint.getValue(Z)},R.prototype.setPaintProperty=function(Z,ue,Pe){if(Pe===void 0&&(Pe={}),ue!=null&&this._validate(kf,"layers."+this.id+".paint."+Z,Z,ue,Pe))return!1;if(Ie(Z,"-transition"))return this._transitionablePaint.setTransition(Z.slice(0,-11),ue||void 0),!1;var Qe=this._transitionablePaint._values[Z],wt=Qe.property.specification["property-type"]==="cross-faded-data-driven",jt=Qe.value.isDataDriven(),Nn=Qe.value;this._transitionablePaint.setValue(Z,ue),this._handleSpecialPaintPropertyUpdate(Z);var cr=this._transitionablePaint._values[Z].value;return cr.isDataDriven()||jt||wt||this._handleOverridablePaintPropertyUpdate(Z,Nn,cr)},R.prototype._handleSpecialPaintPropertyUpdate=function(Z){},R.prototype._handleOverridablePaintPropertyUpdate=function(Z,ue,Pe){return!1},R.prototype.isHidden=function(Z){return!!(this.minzoom&&Z=this.maxzoom)||this.visibility==="none"},R.prototype.updateTransitions=function(Z){this._transitioningPaint=this._transitionablePaint.transitioned(Z,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(Z,ue){Z.getCrossfadeParameters&&(this._crossfadeParameters=Z.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(Z,void 0,ue)),this.paint=this._transitioningPaint.possiblyEvaluate(Z,void 0,ue)},R.prototype.serialize=function(){var Z={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(Z.layout=Z.layout||{},Z.layout.visibility=this.visibility),be(Z,function(ue,Pe){return!(ue===void 0||Pe==="layout"&&!Object.keys(ue).length||Pe==="paint"&&!Object.keys(ue).length)})},R.prototype._validate=function(Z,ue,Pe,Qe,wt){return wt===void 0&&(wt={}),(!wt||wt.validate!==!1)&&Kf(this,Z.call(vf,{key:ue,layerType:this.type,objectKey:Pe,value:Qe,styleSpec:rn,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var Z in this.paint._values){var ue=this.paint.get(Z);if(ue instanceof Af&&El(ue.property.specification)&&(ue.value.kind==="source"||ue.value.kind==="composite")&&ue.value.isStateDependent)return!0}return!1},R}(di),Cd={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qh=function(_,R){this._structArray=_,this._pos1=R*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},kh=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function _h(_,R){R===void 0&&(R=1);var Z=0,ue=0;return{members:_.map(function(Pe){var Qe=Cd[Pe.type].BYTES_PER_ELEMENT,wt=Z=Bf(Z,Math.max(R,Qe)),jt=Pe.components||1;return ue=Math.max(ue,Qe),Z+=Qe*jt,{name:Pe.name,type:Pe.type,components:jt,offset:wt}}),size:Bf(Z,Math.max(ue,R)),alignment:R}}function Bf(_,R){return Math.ceil(_/R)*R}kh.serialize=function(_,R){return _._trim(),R&&(_.isTransferred=!0,R.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},kh.deserialize=function(_){var R=Object.create(this.prototype);return R.arrayBuffer=_.arrayBuffer,R.length=_.length,R.capacity=_.arrayBuffer.byteLength/R.bytesPerElement,R._refreshViews(),R},kh.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},kh.prototype.clear=function(){this.length=0},kh.prototype.resize=function(_){this.reserve(_),this.length=_},kh.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var R=this.uint8;this._refreshViews(),R&&this.uint8.set(R)}},kh.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var bd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.int16[Qe+0]=ue,this.int16[Qe+1]=Pe,Z},R}(kh);bd.prototype.bytesPerElement=4,Qc("StructArrayLayout2i4",bd);var $c=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var jt=4*Z;return this.int16[jt+0]=ue,this.int16[jt+1]=Pe,this.int16[jt+2]=Qe,this.int16[jt+3]=wt,Z},R}(kh);$c.prototype.bytesPerElement=8,Qc("StructArrayLayout4i8",$c);var Hd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,Z,ue,Pe,Qe,wt,jt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn){var cr=6*Z;return this.int16[cr+0]=ue,this.int16[cr+1]=Pe,this.int16[cr+2]=Qe,this.int16[cr+3]=wt,this.int16[cr+4]=jt,this.int16[cr+5]=Nn,Z},R}(kh);Hd.prototype.bytesPerElement=12,Qc("StructArrayLayout2i4i12",Hd);var vh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,Z,ue,Pe,Qe,wt,jt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn){var cr=4*Z,Ur=8*Z;return this.int16[cr+0]=ue,this.int16[cr+1]=Pe,this.uint8[Ur+4]=Qe,this.uint8[Ur+5]=wt,this.uint8[Ur+6]=jt,this.uint8[Ur+7]=Nn,Z},R}(kh);vh.prototype.bytesPerElement=8,Qc("StructArrayLayout2i4ub8",vh);var Io=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.float32[Qe+0]=ue,this.float32[Qe+1]=Pe,Z},R}(kh);Io.prototype.bytesPerElement=8,Qc("StructArrayLayout2f8",Io);var D=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi){var _o=this.length;return this.resize(_o+1),this.emplace(_o,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o){var zo=10*Z;return this.uint16[zo+0]=ue,this.uint16[zo+1]=Pe,this.uint16[zo+2]=Qe,this.uint16[zo+3]=wt,this.uint16[zo+4]=jt,this.uint16[zo+5]=Nn,this.uint16[zo+6]=cr,this.uint16[zo+7]=Ur,this.uint16[zo+8]=bi,this.uint16[zo+9]=_o,Z},R}(kh);D.prototype.bytesPerElement=20,Qc("StructArrayLayout10ui20",D);var F=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo){var qs=this.length;return this.resize(qs+1),this.emplace(qs,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs){var ra=12*Z;return this.int16[ra+0]=ue,this.int16[ra+1]=Pe,this.int16[ra+2]=Qe,this.int16[ra+3]=wt,this.uint16[ra+4]=jt,this.uint16[ra+5]=Nn,this.uint16[ra+6]=cr,this.uint16[ra+7]=Ur,this.int16[ra+8]=bi,this.int16[ra+9]=_o,this.int16[ra+10]=zo,this.int16[ra+11]=qs,Z},R}(kh);F.prototype.bytesPerElement=24,Qc("StructArrayLayout4i4ui4i24",F);var J=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.float32[wt+0]=ue,this.float32[wt+1]=Pe,this.float32[wt+2]=Qe,Z},R}(kh);J.prototype.bytesPerElement=12,Qc("StructArrayLayout3f12",J);var ae=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.uint32[1*Z+0]=ue,Z},R}(kh);ae.prototype.bytesPerElement=4,Qc("StructArrayLayout1ul4",ae);var Ue=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur){var bi=this.length;return this.resize(bi+1),this.emplace(bi,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi){var _o=10*Z,zo=5*Z;return this.int16[_o+0]=ue,this.int16[_o+1]=Pe,this.int16[_o+2]=Qe,this.int16[_o+3]=wt,this.int16[_o+4]=jt,this.int16[_o+5]=Nn,this.uint32[zo+3]=cr,this.uint16[_o+8]=Ur,this.uint16[_o+9]=bi,Z},R}(kh);Ue.prototype.bytesPerElement=20,Qc("StructArrayLayout6i1ul2ui20",Ue);var Jt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,Z,ue,Pe,Qe,wt,jt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn){var cr=6*Z;return this.int16[cr+0]=ue,this.int16[cr+1]=Pe,this.int16[cr+2]=Qe,this.int16[cr+3]=wt,this.int16[cr+4]=jt,this.int16[cr+5]=Nn,Z},R}(kh);Jt.prototype.bytesPerElement=12,Qc("StructArrayLayout2i2i2i12",Jt);var $n=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,Z,ue,Pe,Qe,wt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt){var Nn=4*Z,cr=8*Z;return this.float32[Nn+0]=ue,this.float32[Nn+1]=Pe,this.float32[Nn+2]=Qe,this.int16[cr+6]=wt,this.int16[cr+7]=jt,Z},R}(kh);$n.prototype.bytesPerElement=16,Qc("StructArrayLayout2f1f2i16",$n);var _i=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var jt=12*Z,Nn=3*Z;return this.uint8[jt+0]=ue,this.uint8[jt+1]=Pe,this.float32[Nn+1]=Qe,this.float32[Nn+2]=wt,Z},R}(kh);_i.prototype.bytesPerElement=12,Qc("StructArrayLayout2ub2f12",_i);var Xo=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.uint16[wt+0]=ue,this.uint16[wt+1]=Pe,this.uint16[wt+2]=Qe,Z},R}(kh);Xo.prototype.bytesPerElement=6,Qc("StructArrayLayout3ui6",Xo);var fa=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol){var Vl=this.length;return this.resize(Vl+1),this.emplace(Vl,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,Vl){var cu=24*Z,lu=12*Z,Hu=48*Z;return this.int16[cu+0]=ue,this.int16[cu+1]=Pe,this.uint16[cu+2]=Qe,this.uint16[cu+3]=wt,this.uint32[lu+2]=jt,this.uint32[lu+3]=Nn,this.uint32[lu+4]=cr,this.uint16[cu+10]=Ur,this.uint16[cu+11]=bi,this.uint16[cu+12]=_o,this.float32[lu+7]=zo,this.float32[lu+8]=qs,this.uint8[Hu+36]=ra,this.uint8[Hu+37]=al,this.uint8[Hu+38]=Pa,this.uint32[lu+10]=Ol,this.int16[cu+22]=Vl,Z},R}(kh);fa.prototype.bytesPerElement=48,Qc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fa);var Cl=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,qt,On){var hr=this.length;return this.resize(hr+1),this.emplace(hr,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,qt,On)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,qt,On,hr){var Gr=34*Z,bo=17*Z;return this.int16[Gr+0]=ue,this.int16[Gr+1]=Pe,this.int16[Gr+2]=Qe,this.int16[Gr+3]=wt,this.int16[Gr+4]=jt,this.int16[Gr+5]=Nn,this.int16[Gr+6]=cr,this.int16[Gr+7]=Ur,this.uint16[Gr+8]=bi,this.uint16[Gr+9]=_o,this.uint16[Gr+10]=zo,this.uint16[Gr+11]=qs,this.uint16[Gr+12]=ra,this.uint16[Gr+13]=al,this.uint16[Gr+14]=Pa,this.uint16[Gr+15]=Ol,this.uint16[Gr+16]=Vl,this.uint16[Gr+17]=cu,this.uint16[Gr+18]=lu,this.uint16[Gr+19]=Hu,this.uint16[Gr+20]=kc,this.uint16[Gr+21]=ac,this.uint16[Gr+22]=_d,this.uint32[bo+12]=Xu,this.float32[bo+13]=Nd,this.float32[bo+14]=qt,this.float32[bo+15]=On,this.float32[bo+16]=hr,Z},R}(kh);Cl.prototype.bytesPerElement=68,Qc("StructArrayLayout8i15ui1ul4f68",Cl);var Ll=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.float32[1*Z+0]=ue,Z},R}(kh);Ll.prototype.bytesPerElement=4,Qc("StructArrayLayout1f4",Ll);var zu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.int16[wt+0]=ue,this.int16[wt+1]=Pe,this.int16[wt+2]=Qe,Z},R}(kh);zu.prototype.bytesPerElement=6,Qc("StructArrayLayout3i6",zu);var Iu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=4*Z;return this.uint32[2*Z+0]=ue,this.uint16[wt+2]=Pe,this.uint16[wt+3]=Qe,Z},R}(kh);Iu.prototype.bytesPerElement=8,Qc("StructArrayLayout1ul2ui8",Iu);var pc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.uint16[Qe+0]=ue,this.uint16[Qe+1]=Pe,Z},R}(kh);pc.prototype.bytesPerElement=4,Qc("StructArrayLayout2ui4",pc);var zc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.uint16[1*Z+0]=ue,Z},R}(kh);zc.prototype.bytesPerElement=2,Qc("StructArrayLayout1ui2",zc);var Rd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var jt=4*Z;return this.float32[jt+0]=ue,this.float32[jt+1]=Pe,this.float32[jt+2]=Qe,this.float32[jt+3]=wt,Z},R}(kh);Rd.prototype.bytesPerElement=16,Qc("StructArrayLayout4f16",Rd);var X=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return Z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},Z.x1.get=function(){return this._structArray.int16[this._pos2+2]},Z.y1.get=function(){return this._structArray.int16[this._pos2+3]},Z.x2.get=function(){return this._structArray.int16[this._pos2+4]},Z.y2.get=function(){return this._structArray.int16[this._pos2+5]},Z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},Z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Z.anchorPoint.get=function(){return new w(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,Z),R}(qh);X.prototype.size=20;var re=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new X(this,Z)},R}(Ue);Qc("CollisionBoxArray",re);var Q=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return Z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},Z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},Z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},Z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},Z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},Z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},Z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},Z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},Z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},Z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},Z.placedOrientation.set=function(ue){this._structArray.uint8[this._pos1+37]=ue},Z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},Z.hidden.set=function(ue){this._structArray.uint8[this._pos1+38]=ue},Z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},Z.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+10]=ue},Z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,Z),R}(qh);Q.prototype.size=48;var le=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new Q(this,Z)},R}(fa);Qc("PlacedSymbolArray",le);var it=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return Z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},Z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},Z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},Z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},Z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},Z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},Z.key.get=function(){return this._structArray.uint16[this._pos2+8]},Z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},Z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},Z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},Z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},Z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},Z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},Z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},Z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},Z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},Z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},Z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},Z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},Z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},Z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},Z.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+12]=ue},Z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},Z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},Z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},Z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,Z),R}(qh);it.prototype.size=68;var Rt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new it(this,Z)},R}(Cl);Qc("SymbolInstanceArray",Rt);var nn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getoffsetX=function(Z){return this.float32[1*Z+0]},R}(Ll);Qc("GlyphOffsetArray",nn);var Yn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getx=function(Z){return this.int16[3*Z+0]},R.prototype.gety=function(Z){return this.int16[3*Z+1]},R.prototype.gettileUnitDistanceFromAnchor=function(Z){return this.int16[3*Z+2]},R}(zu);Qc("SymbolLineVertexArray",Yn);var ei=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return Z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},Z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,Z),R}(qh);ei.prototype.size=8;var gr=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new ei(this,Z)},R}(Iu);Qc("FeatureIndexArray",gr);var ss=_h([{name:"a_pos",components:2,type:"Int16"}],4).members,ts=function(_){_===void 0&&(_=[]),this.segments=_};function Is(_,R){return 256*(_=W(Math.floor(_),0,255))+W(Math.floor(R),0,255)}ts.prototype.prepareSegment=function(_,R,Z,ue){var Pe=this.segments[this.segments.length-1];return _>ts.MAX_VERTEX_ARRAY_LENGTH&&_e("Max vertices per segment is "+ts.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!Pe||Pe.vertexLength+_>ts.MAX_VERTEX_ARRAY_LENGTH||Pe.sortKey!==ue)&&(Pe={vertexOffset:R.length,primitiveOffset:Z.length,vertexLength:0,primitiveLength:0},ue!==void 0&&(Pe.sortKey=ue),this.segments.push(Pe)),Pe},ts.prototype.get=function(){return this.segments},ts.prototype.destroy=function(){for(var _=0,R=this.segments;_>>16)*jt&65535)<<16)&4294967295)<<15|cr>>>17))*Nn+(((cr>>>16)*Nn&65535)<<16)&4294967295)<<13|Qe>>>19))+((5*(Qe>>>16)&65535)<<16)&4294967295))+((58964+(wt>>>16)&65535)<<16);switch(cr=0,ue){case 3:cr^=(255&R.charCodeAt(Ur+2))<<16;case 2:cr^=(255&R.charCodeAt(Ur+1))<<8;case 1:Qe^=cr=(65535&(cr=(cr=(65535&(cr^=255&R.charCodeAt(Ur)))*jt+(((cr>>>16)*jt&65535)<<16)&4294967295)<<15|cr>>>17))*Nn+(((cr>>>16)*Nn&65535)<<16)&4294967295}return Qe^=R.length,Qe=2246822507*(65535&(Qe^=Qe>>>16))+((2246822507*(Qe>>>16)&65535)<<16)&4294967295,Qe=3266489909*(65535&(Qe^=Qe>>>13))+((3266489909*(Qe>>>16)&65535)<<16)&4294967295,(Qe^=Qe>>>16)>>>0}}),Go=z(function(_){_.exports=function(R,Z){for(var ue,Pe=R.length,Qe=Z^Pe,wt=0;Pe>=4;)ue=1540483477*(65535&(ue=255&R.charCodeAt(wt)|(255&R.charCodeAt(++wt))<<8|(255&R.charCodeAt(++wt))<<16|(255&R.charCodeAt(++wt))<<24))+((1540483477*(ue>>>16)&65535)<<16),Qe=1540483477*(65535&Qe)+((1540483477*(Qe>>>16)&65535)<<16)^(ue=1540483477*(65535&(ue^=ue>>>24))+((1540483477*(ue>>>16)&65535)<<16)),Pe-=4,++wt;switch(Pe){case 3:Qe^=(255&R.charCodeAt(wt+2))<<16;case 2:Qe^=(255&R.charCodeAt(wt+1))<<8;case 1:Qe=1540483477*(65535&(Qe^=255&R.charCodeAt(wt)))+((1540483477*(Qe>>>16)&65535)<<16)}return Qe=1540483477*(65535&(Qe^=Qe>>>13))+((1540483477*(Qe>>>16)&65535)<<16),(Qe^=Qe>>>15)>>>0}}),Gs=na,Va=Go;Gs.murmur3=na,Gs.murmur2=Va;var _l=function(){this.ids=[],this.positions=[],this.indexed=!1};_l.prototype.add=function(_,R,Z,ue){this.ids.push(xu(_)),this.positions.push(R,Z,ue)},_l.prototype.getPositions=function(_){for(var R=xu(_),Z=0,ue=this.ids.length-1;Z>1;this.ids[Pe]>=R?ue=Pe:Z=Pe+1}for(var Qe=[];this.ids[Z]===R;)Qe.push({index:this.positions[3*Z],start:this.positions[3*Z+1],end:this.positions[3*Z+2]}),Z++;return Qe},_l.serialize=function(_,R){var Z=new Float64Array(_.ids),ue=new Uint32Array(_.positions);return function Pe(Qe,wt,jt,Nn){for(;jt>1],Ur=jt-1,bi=Nn+1;;){do Ur++;while(Qe[Ur]cr);if(Ur>=bi)break;Tu(Qe,Ur,bi),Tu(wt,3*Ur,3*bi),Tu(wt,3*Ur+1,3*bi+1),Tu(wt,3*Ur+2,3*bi+2)}bi-jtwt.x+1||Nnwt.y+1)&&_e("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return Z}function ad(_,R){return{type:_.type,id:_.id,properties:_.properties,geometry:R?Oc(_):[]}}function yd(_,R,Z,ue,Pe){_.emplaceBack(2*R+(ue+1)/2,2*Z+(Pe+1)/2)}var Bd=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new bd,this.indexArray=new Xo,this.segments=new ts,this.programConfigurations=new Mh(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Dc(_,R){for(var Z=0;Z<_.length;Z++)if(Zd(R,_[Z]))return!0;for(var ue=0;ue1){if(Ro(_,R))return!0;for(var ue=0;ue1?Z:Z.sub(R)._mult(Pe)._add(R))}function Fm(_,R){for(var Z,ue,Pe,Qe=!1,wt=0;wt<_.length;wt++)for(var jt=0,Nn=(Z=_[wt]).length-1;jtR.y!=(Pe=Z[Nn]).y>R.y&&R.x<(Pe.x-ue.x)*(R.y-ue.y)/(Pe.y-ue.y)+ue.x&&(Qe=!Qe);return Qe}function Zd(_,R){for(var Z=!1,ue=0,Pe=_.length-1;ue<_.length;Pe=ue++){var Qe=_[ue],wt=_[Pe];Qe.y>R.y!=wt.y>R.y&&R.x<(wt.x-Qe.x)*(R.y-Qe.y)/(wt.y-Qe.y)+Qe.x&&(Z=!Z)}return Z}function Fp(_,R,Z){var ue=Z[0],Pe=Z[2];if(_.xPe.x&&R.x>Pe.x||_.yPe.y&&R.y>Pe.y)return!1;var Qe=Ce(_,R,Z[0]);return Qe!==Ce(_,R,Z[1])||Qe!==Ce(_,R,Z[2])||Qe!==Ce(_,R,Z[3])}function zf(_,R,Z){var ue=R.paint.get(_).value;return ue.kind==="constant"?ue.value:Z.programConfigurations.get(R.id).getMaxValue(_)}function bf(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function Qp(_,R,Z,ue,Pe){if(!R[0]&&!R[1])return _;var Qe=w.convert(R)._mult(Pe);Z==="viewport"&&Qe._rotate(-ue);for(var wt=[],jt=0;jt<_.length;jt++)wt.push(_[jt].sub(Qe));return wt}Bd.prototype.populate=function(_,R,Z){var ue=this.layers[0],Pe=[],Qe=null;ue.type==="circle"&&(Qe=ue.layout.get("circle-sort-key"));for(var wt=0,jt=_;wt=8192||Ur<0||Ur>=8192)){var bi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),_o=bi.vertexLength;yd(this.layoutVertexArray,cr,Ur,-1,-1),yd(this.layoutVertexArray,cr,Ur,1,-1),yd(this.layoutVertexArray,cr,Ur,1,1),yd(this.layoutVertexArray,cr,Ur,-1,1),this.indexArray.emplaceBack(_o,_o+1,_o+2),this.indexArray.emplaceBack(_o,_o+3,_o+2),bi.vertexLength+=4,bi.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,Z,{},ue)},Qc("CircleBucket",Bd,{omit:["layers"]});var Bp=new Dp({"circle-sort-key":new td(rn.layout_circle["circle-sort-key"])}),Hf={paint:new Dp({"circle-radius":new td(rn.paint_circle["circle-radius"]),"circle-color":new td(rn.paint_circle["circle-color"]),"circle-blur":new td(rn.paint_circle["circle-blur"]),"circle-opacity":new td(rn.paint_circle["circle-opacity"]),"circle-translate":new Od(rn.paint_circle["circle-translate"]),"circle-translate-anchor":new Od(rn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Od(rn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Od(rn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new td(rn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new td(rn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new td(rn.paint_circle["circle-stroke-opacity"])}),layout:Bp},df=typeof Float32Array!="undefined"?Float32Array:Array;function af(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function Wg(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=R[3],jt=R[4],Nn=R[5],cr=R[6],Ur=R[7],bi=R[8],_o=R[9],zo=R[10],qs=R[11],ra=R[12],al=R[13],Pa=R[14],Ol=R[15],Vl=Z[0],cu=Z[1],lu=Z[2],Hu=Z[3];return _[0]=Vl*ue+cu*jt+lu*bi+Hu*ra,_[1]=Vl*Pe+cu*Nn+lu*_o+Hu*al,_[2]=Vl*Qe+cu*cr+lu*zo+Hu*Pa,_[3]=Vl*wt+cu*Ur+lu*qs+Hu*Ol,_[4]=(Vl=Z[4])*ue+(cu=Z[5])*jt+(lu=Z[6])*bi+(Hu=Z[7])*ra,_[5]=Vl*Pe+cu*Nn+lu*_o+Hu*al,_[6]=Vl*Qe+cu*cr+lu*zo+Hu*Pa,_[7]=Vl*wt+cu*Ur+lu*qs+Hu*Ol,_[8]=(Vl=Z[8])*ue+(cu=Z[9])*jt+(lu=Z[10])*bi+(Hu=Z[11])*ra,_[9]=Vl*Pe+cu*Nn+lu*_o+Hu*al,_[10]=Vl*Qe+cu*cr+lu*zo+Hu*Pa,_[11]=Vl*wt+cu*Ur+lu*qs+Hu*Ol,_[12]=(Vl=Z[12])*ue+(cu=Z[13])*jt+(lu=Z[14])*bi+(Hu=Z[15])*ra,_[13]=Vl*Pe+cu*Nn+lu*_o+Hu*al,_[14]=Vl*Qe+cu*cr+lu*zo+Hu*Pa,_[15]=Vl*wt+cu*Ur+lu*qs+Hu*Ol,_}Math.hypot||(Math.hypot=function(){for(var _=arguments,R=0,Z=arguments.length;Z--;)R+=_[Z]*_[Z];return Math.sqrt(R)});var lp,lg=Wg;function Id(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=R[3];return _[0]=Z[0]*ue+Z[4]*Pe+Z[8]*Qe+Z[12]*wt,_[1]=Z[1]*ue+Z[5]*Pe+Z[9]*Qe+Z[13]*wt,_[2]=Z[2]*ue+Z[6]*Pe+Z[10]*Qe+Z[14]*wt,_[3]=Z[3]*ue+Z[7]*Pe+Z[11]*Qe+Z[15]*wt,_}lp=new df(3),df!=Float32Array&&(lp[0]=0,lp[1]=0,lp[2]=0),function(){var _=new df(4);df!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0,_[3]=0)}();var rm=(function(){var _=new df(2);df!=Float32Array&&(_[0]=0,_[1]=0)}(),function(_){function R(Z){_.call(this,Z,Hf)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.createBucket=function(Z){return new Bd(Z)},R.prototype.queryRadius=function(Z){var ue=Z;return zf("circle-radius",this,ue)+zf("circle-stroke-width",this,ue)+bf(this.paint.get("circle-translate"))},R.prototype.queryIntersectsFeature=function(Z,ue,Pe,Qe,wt,jt,Nn,cr){for(var Ur=Qp(Z,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),jt.angle,Nn),bi=this.paint.get("circle-radius").evaluate(ue,Pe)+this.paint.get("circle-stroke-width").evaluate(ue,Pe),_o=this.paint.get("circle-pitch-alignment")==="map",zo=_o?Ur:function(kc,ac){return kc.map(function(_d){return Im(_d,ac)})}(Ur,cr),qs=_o?bi*Nn:bi,ra=0,al=Qe;ra_.width||Pe.height>_.height||Z.x>_.width-Pe.width||Z.y>_.height-Pe.height)throw new RangeError("out of range source coordinates for image copy");if(Pe.width>R.width||Pe.height>R.height||ue.x>R.width-Pe.width||ue.y>R.height-Pe.height)throw new RangeError("out of range destination coordinates for image copy");for(var wt=_.data,jt=R.data,Nn=0;Nn80*Z){ue=Qe=_[0],Pe=wt=_[1];for(var qs=Z;qsQe&&(Qe=jt),Nn>wt&&(wt=Nn);cr=(cr=Math.max(Qe-ue,wt-Pe))!==0?1/cr:0}return a0(_o,zo,Z,ue,Pe,cr),zo}function Xf(_,R,Z,ue,Pe){var Qe,wt;if(Pe===rt(_,R,Z,ue)>0)for(Qe=R;Qe=R;Qe-=ue)wt=xe(Qe,_[Qe],_[Qe+1],wt);return wt&&sm(wt,wt.next)&&(ut(wt),wt=wt.next),wt}function Zh(_,R){if(!_)return _;R||(R=_);var Z,ue=_;do if(Z=!1,ue.steiner||!sm(ue,ue.next)&&yp(ue.prev,ue,ue.next)!==0)ue=ue.next;else{if(ut(ue),(ue=R=ue.prev)===ue.next)break;Z=!0}while(Z||ue!==R);return R}function a0(_,R,Z,ue,Pe,Qe,wt){if(_){!wt&&Qe&&function(Ur,bi,_o,zo){var qs=Ur;do qs.z===null&&(qs.z=jg(qs.x,qs.y,bi,_o,zo)),qs.prevZ=qs.prev,qs.nextZ=qs.next,qs=qs.next;while(qs!==Ur);qs.prevZ.nextZ=null,qs.prevZ=null,function(ra){var al,Pa,Ol,Vl,cu,lu,Hu,kc,ac=1;do{for(Pa=ra,ra=null,cu=null,lu=0;Pa;){for(lu++,Ol=Pa,Hu=0,al=0;al0||kc>0&&Ol;)Hu!==0&&(kc===0||!Ol||Pa.z<=Ol.z)?(Vl=Pa,Pa=Pa.nextZ,Hu--):(Vl=Ol,Ol=Ol.nextZ,kc--),cu?cu.nextZ=Vl:ra=Vl,Vl.prevZ=cu,cu=Vl;Pa=Ol}cu.nextZ=null,ac*=2}while(lu>1)}(qs)}(_,ue,Pe,Qe);for(var jt,Nn,cr=_;_.prev!==_.next;)if(jt=_.prev,Nn=_.next,Qe?Zg(_,ue,Pe,Qe):k0(_))R.push(jt.i/Z),R.push(_.i/Z),R.push(Nn.i/Z),ut(_),_=Nn.next,cr=Nn.next;else if((_=Nn)===cr){wt?wt===1?a0(_=Vm(Zh(_),R,Z),R,Z,ue,Pe,Qe,2):wt===2&&m0(_,R,Z,ue,Pe,Qe):a0(Zh(_),R,Z,ue,Pe,Qe,1);break}}}function k0(_){var R=_.prev,Z=_,ue=_.next;if(yp(R,Z,ue)>=0)return!1;for(var Pe=_.next.next;Pe!==_.prev;){if(_m(R.x,R.y,Z.x,Z.y,ue.x,ue.y,Pe.x,Pe.y)&&yp(Pe.prev,Pe,Pe.next)>=0)return!1;Pe=Pe.next}return!0}function Zg(_,R,Z,ue){var Pe=_.prev,Qe=_,wt=_.next;if(yp(Pe,Qe,wt)>=0)return!1;for(var jt=Pe.x>Qe.x?Pe.x>wt.x?Pe.x:wt.x:Qe.x>wt.x?Qe.x:wt.x,Nn=Pe.y>Qe.y?Pe.y>wt.y?Pe.y:wt.y:Qe.y>wt.y?Qe.y:wt.y,cr=jg(Pe.x=cr&&_o&&_o.z<=Ur;){if(bi!==_.prev&&bi!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,bi.x,bi.y)&&yp(bi.prev,bi,bi.next)>=0||(bi=bi.prevZ,_o!==_.prev&&_o!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,_o.x,_o.y)&&yp(_o.prev,_o,_o.next)>=0))return!1;_o=_o.nextZ}for(;bi&&bi.z>=cr;){if(bi!==_.prev&&bi!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,bi.x,bi.y)&&yp(bi.prev,bi,bi.next)>=0)return!1;bi=bi.prevZ}for(;_o&&_o.z<=Ur;){if(_o!==_.prev&&_o!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,_o.x,_o.y)&&yp(_o.prev,_o,_o.next)>=0)return!1;_o=_o.nextZ}return!0}function Vm(_,R,Z){var ue=_;do{var Pe=ue.prev,Qe=ue.next.next;!sm(Pe,Qe)&&Km(Pe,ue,ue.next,Qe)&&pe(Pe,Qe)&&pe(Qe,Pe)&&(R.push(Pe.i/Z),R.push(ue.i/Z),R.push(Qe.i/Z),ut(ue),ut(ue.next),ue=_=Qe),ue=ue.next}while(ue!==_);return Zh(ue)}function m0(_,R,Z,ue,Pe,Qe){var wt=_;do{for(var jt=wt.next.next;jt!==wt.prev;){if(wt.i!==jt.i&&Um(wt,jt)){var Nn=H(wt,jt);return wt=Zh(wt,wt.next),Nn=Zh(Nn,Nn.next),a0(wt,R,Z,ue,Pe,Qe),void a0(Nn,R,Z,ue,Pe,Qe)}jt=jt.next}wt=wt.next}while(wt!==_)}function Gm(_,R){return _.x-R.x}function $d(_,R){if(R=function(ue,Pe){var Qe,wt=Pe,jt=ue.x,Nn=ue.y,cr=-1/0;do{if(Nn<=wt.y&&Nn>=wt.next.y&&wt.next.y!==wt.y){var Ur=wt.x+(Nn-wt.y)*(wt.next.x-wt.x)/(wt.next.y-wt.y);if(Ur<=jt&&Ur>cr){if(cr=Ur,Ur===jt){if(Nn===wt.y)return wt;if(Nn===wt.next.y)return wt.next}Qe=wt.x=wt.x&&wt.x>=zo&&jt!==wt.x&&_m(NnQe.x||wt.x===Qe.x&&Y0(Qe,wt)))&&(Qe=wt,ra=bi)),wt=wt.next;while(wt!==_o);return Qe}(_,R)){var Z=H(R,_);Zh(R,R.next),Zh(Z,Z.next)}}function Y0(_,R){return yp(_.prev,_,R.prev)<0&&yp(R.next,_,_.next)<0}function jg(_,R,Z,ue,Pe){return(_=1431655765&((_=858993459&((_=252645135&((_=16711935&((_=32767*(_-Z)*Pe)|_<<8))|_<<4))|_<<2))|_<<1))|(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=32767*(R-ue)*Pe)|R<<8))|R<<4))|R<<2))|R<<1))<<1}function e0(_){var R=_,Z=_;do(R.x=0&&(_-wt)*(ue-jt)-(Z-wt)*(R-jt)>=0&&(Z-wt)*(Qe-jt)-(Pe-wt)*(ue-jt)>=0}function Um(_,R){return _.next.i!==R.i&&_.prev.i!==R.i&&!function(Z,ue){var Pe=Z;do{if(Pe.i!==Z.i&&Pe.next.i!==Z.i&&Pe.i!==ue.i&&Pe.next.i!==ue.i&&Km(Pe,Pe.next,Z,ue))return!0;Pe=Pe.next}while(Pe!==Z);return!1}(_,R)&&(pe(_,R)&&pe(R,_)&&function(Z,ue){var Pe=Z,Qe=!1,wt=(Z.x+ue.x)/2,jt=(Z.y+ue.y)/2;do Pe.y>jt!=Pe.next.y>jt&&Pe.next.y!==Pe.y&&wt<(Pe.next.x-Pe.x)*(jt-Pe.y)/(Pe.next.y-Pe.y)+Pe.x&&(Qe=!Qe),Pe=Pe.next;while(Pe!==Z);return Qe}(_,R)&&(yp(_.prev,_,R.prev)||yp(_,R.prev,R))||sm(_,R)&&yp(_.prev,_,_.next)>0&&yp(R.prev,R,R.next)>0)}function yp(_,R,Z){return(R.y-_.y)*(Z.x-R.x)-(R.x-_.x)*(Z.y-R.y)}function sm(_,R){return _.x===R.x&&_.y===R.y}function Km(_,R,Z,ue){var Pe=Pg(yp(_,R,Z)),Qe=Pg(yp(_,R,ue)),wt=Pg(yp(Z,ue,_)),jt=Pg(yp(Z,ue,R));return Pe!==Qe&&wt!==jt||!(Pe!==0||!Ap(_,Z,R))||!(Qe!==0||!Ap(_,ue,R))||!(wt!==0||!Ap(Z,_,ue))||!(jt!==0||!Ap(Z,R,ue))}function Ap(_,R,Z){return R.x<=Math.max(_.x,Z.x)&&R.x>=Math.min(_.x,Z.x)&&R.y<=Math.max(_.y,Z.y)&&R.y>=Math.min(_.y,Z.y)}function Pg(_){return _>0?1:_<0?-1:0}function pe(_,R){return yp(_.prev,_,_.next)<0?yp(_,R,_.next)>=0&&yp(_,_.prev,R)>=0:yp(_,R,_.prev)<0||yp(_,_.next,R)<0}function H(_,R){var Z=new mn(_.i,_.x,_.y),ue=new mn(R.i,R.x,R.y),Pe=_.next,Qe=R.prev;return _.next=R,R.prev=_,Z.next=Pe,Pe.prev=Z,ue.next=Z,Z.prev=ue,Qe.next=ue,ue.prev=Qe,ue}function xe(_,R,Z,ue){var Pe=new mn(_,R,Z);return ue?(Pe.next=ue.next,Pe.prev=ue,ue.next.prev=Pe,ue.next=Pe):(Pe.prev=Pe,Pe.next=Pe),Pe}function ut(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function mn(_,R,Z){this.i=_,this.x=R,this.y=Z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function rt(_,R,Z,ue){for(var Pe=0,Qe=R,wt=Z-ue;QeNn;){if(cr-Nn>600){var bi=cr-Nn+1,_o=jt-Nn+1,zo=Math.log(bi),qs=.5*Math.exp(2*zo/3),ra=.5*Math.sqrt(zo*qs*(bi-qs)/bi)*(_o-bi/2<0?-1:1);Qe(wt,jt,Math.max(Nn,Math.floor(jt-_o*qs/bi+ra)),Math.min(cr,Math.floor(jt+(bi-_o)*qs/bi+ra)),Ur)}var al=wt[jt],Pa=Nn,Ol=cr;for(It(wt,Nn,jt),Ur(wt[cr],al)>0&&It(wt,Nn,cr);Pa0;)Ol--}Ur(wt[Nn],al)===0?It(wt,Nn,Ol):It(wt,++Ol,cr),Ol<=jt&&(Nn=Ol+1),jt<=Ol&&(cr=Ol-1)}})(_,R,Z||0,ue||_.length-1,Pe||Ut)}function It(_,R,Z){var ue=_[R];_[R]=_[Z],_[Z]=ue}function Ut(_,R){return _R?1:0}function Vt(_,R){var Z=_.length;if(Z<=1)return[_];for(var ue,Pe,Qe=[],wt=0;wt1)for(var Nn=0;Nn0&&Z.holes.push(ue+=_[Pe-1].length)}return Z},Gp.default=P0;var Rn=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bd,this.indexArray=new Xo,this.indexArray2=new pc,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new ts,this.segments2=new ts,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};Rn.prototype.populate=function(_,R,Z){this.hasPattern=an("fill",this.layers,R);for(var ue=this.layers[0].layout.get("fill-sort-key"),Pe=[],Qe=0,wt=_;Qe>3}if(Pe--,ue===1||ue===2)Qe+=_.readSVarint(),wt+=_.readSVarint(),ue===1&&(R&&jt.push(R),R=[]),R.push(new w(Qe,wt));else{if(ue!==7)throw new Error("unknown command "+ue);R&&R.push(R[0].clone())}}return R&&jt.push(R),jt},mr.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,Z=1,ue=0,Pe=0,Qe=0,wt=1/0,jt=-1/0,Nn=1/0,cr=-1/0;_.pos>3}if(ue--,Z===1||Z===2)(Pe+=_.readSVarint())jt&&(jt=Pe),(Qe+=_.readSVarint())cr&&(cr=Qe);else if(Z!==7)throw new Error("unknown command "+Z)}return[wt,Nn,jt,cr]},mr.prototype.toGeoJSON=function(_,R,Z){var ue,Pe,Qe=this.extent*Math.pow(2,Z),wt=this.extent*_,jt=this.extent*R,Nn=this.loadGeometry(),cr=mr.types[this.type];function Ur(zo){for(var qs=0;qs>3;Pe=wt===1?ue.readString():wt===2?ue.readFloat():wt===3?ue.readDouble():wt===4?ue.readVarint64():wt===5?ue.readVarint():wt===6?ue.readSVarint():wt===7?ue.readBoolean():null}return Pe}(Z))}function Wi(_,R,Z){if(_===3){var ue=new Co(Z,Z.readVarint()+Z.pos);ue.length&&(R[ue.name]=ue)}}xi.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var R=this._pbf.readVarint()+this._pbf.pos;return new rr(this._pbf,R,this.extent,this._keys,this._values)};var Po={VectorTile:function(_,R){this.layers=_.readFields(Wi,{},R)},VectorTileFeature:rr,VectorTileLayer:Co},wo=Po.VectorTileFeature.types,zs=Math.pow(2,13);function Pr(_,R,Z,ue,Pe,Qe,wt,jt){_.emplaceBack(R,Z,2*Math.floor(ue*zs)+wt,Pe*zs*2,Qe*zs*2,Math.round(jt))}var Ni=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Hd,this.indexArray=new Xo,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new ts,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Mr(_,R){return _.x===R.x&&(_.x<0||_.x>8192)||_.y===R.y&&(_.y<0||_.y>8192)}Ni.prototype.populate=function(_,R,Z){this.features=[],this.hasPattern=an("fill-extrusion",this.layers,R);for(var ue=0,Pe=_;ue8192})||bo.every(function(aa){return aa.y<0})||bo.every(function(aa){return aa.y>8192})))for(var ra=0,al=0;al=1){var Ol=qs[al-1];if(!Mr(Pa,Ol)){bi.vertexLength+4>ts.MAX_VERTEX_ARRAY_LENGTH&&(bi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Vl=Pa.sub(Ol)._perp()._unit(),cu=Ol.dist(Pa);ra+cu>32768&&(ra=0),Pr(this.layoutVertexArray,Pa.x,Pa.y,Vl.x,Vl.y,0,0,ra),Pr(this.layoutVertexArray,Pa.x,Pa.y,Vl.x,Vl.y,0,1,ra),Pr(this.layoutVertexArray,Ol.x,Ol.y,Vl.x,Vl.y,0,0,ra+=cu),Pr(this.layoutVertexArray,Ol.x,Ol.y,Vl.x,Vl.y,0,1,ra);var lu=bi.vertexLength;this.indexArray.emplaceBack(lu,lu+2,lu+1),this.indexArray.emplaceBack(lu+1,lu+2,lu+3),bi.vertexLength+=4,bi.primitiveLength+=2}}}}if(bi.vertexLength+Nn>ts.MAX_VERTEX_ARRAY_LENGTH&&(bi=this.segments.prepareSegment(Nn,this.layoutVertexArray,this.indexArray)),wo[_.type]==="Polygon"){for(var Hu=[],kc=[],ac=bi.vertexLength,_d=0,Xu=jt;_d=2&&_[Nn-1].equals(_[Nn-2]);)Nn--;for(var cr=0;cr0;if(kc&&Pa>cr){var _d=Ur.dist(zo);if(_d>2*bi){var Xu=Ur.sub(Ur.sub(zo)._mult(bi/_d)._round());this.updateDistance(zo,Xu),this.addCurrentVertex(Xu,ra,0,0,_o),zo=Xu}}var Nd=zo&&qs,qt=Nd?Z:jt?"butt":ue;if(Nd&&qt==="round"&&(luPe&&(qt="bevel"),qt==="bevel"&&(lu>2&&(qt="flipbevel"),lu100)Ol=al.mult(-1);else{var On=lu*ra.add(al).mag()/ra.sub(al).mag();Ol._perp()._mult(On*(ac?-1:1))}this.addCurrentVertex(Ur,Ol,0,0,_o),this.addCurrentVertex(Ur,Ol.mult(-1),0,0,_o)}else if(qt==="bevel"||qt==="fakeround"){var hr=-Math.sqrt(lu*lu-1),Gr=ac?hr:0,bo=ac?0:hr;if(zo&&this.addCurrentVertex(Ur,ra,Gr,bo,_o),qt==="fakeround")for(var aa=Math.round(180*Hu/Math.PI/20),Ya=1;Ya2*bi){var ph=Ur.add(qs.sub(Ur)._mult(bi/Xc)._round());this.updateDistance(Ur,ph),this.addCurrentVertex(ph,al,0,0,_o),Ur=ph}}}}},Os.prototype.addCurrentVertex=function(_,R,Z,ue,Pe,Qe){Qe===void 0&&(Qe=!1);var wt=R.y*ue-R.x,jt=-R.y-R.x*ue;this.addHalfVertex(_,R.x+R.y*Z,R.y-R.x*Z,Qe,!1,Z,Pe),this.addHalfVertex(_,wt,jt,Qe,!0,-ue,Pe),this.distance>ys/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,R,Z,ue,Pe,Qe))},Os.prototype.addHalfVertex=function(_,R,Z,ue,Pe,Qe,wt){var jt=.5*(this.lineClips?this.scaledDistance*(ys-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((_.x<<1)+(ue?1:0),(_.y<<1)+(Pe?1:0),Math.round(63*R)+128,Math.round(63*Z)+128,1+(Qe===0?0:Qe<0?-1:1)|(63&jt)<<2,jt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var Nn=wt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Nn),wt.primitiveLength++),Pe?this.e2=Nn:this.e1=Nn},Os.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Os.prototype.updateDistance=function(_,R){this.distance+=_.dist(R),this.updateScaledDistance()},Qc("LineBucket",Os,{omit:["layers","patternFeatures"]});var Ye=new Dp({"line-cap":new Od(rn.layout_line["line-cap"]),"line-join":new td(rn.layout_line["line-join"]),"line-miter-limit":new Od(rn.layout_line["line-miter-limit"]),"line-round-limit":new Od(rn.layout_line["line-round-limit"]),"line-sort-key":new td(rn.layout_line["line-sort-key"])}),mt={paint:new Dp({"line-opacity":new td(rn.paint_line["line-opacity"]),"line-color":new td(rn.paint_line["line-color"]),"line-translate":new Od(rn.paint_line["line-translate"]),"line-translate-anchor":new Od(rn.paint_line["line-translate-anchor"]),"line-width":new td(rn.paint_line["line-width"]),"line-gap-width":new td(rn.paint_line["line-gap-width"]),"line-offset":new td(rn.paint_line["line-offset"]),"line-blur":new td(rn.paint_line["line-blur"]),"line-dasharray":new _f(rn.paint_line["line-dasharray"]),"line-pattern":new Tp(rn.paint_line["line-pattern"]),"line-gradient":new Hh(rn.paint_line["line-gradient"])}),layout:Ye},Ft=new(function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.possiblyEvaluate=function(Z,ue){return ue=new Md(Math.floor(ue.zoom),{now:ue.now,fadeDuration:ue.fadeDuration,zoomHistory:ue.zoomHistory,transition:ue.transition}),_.prototype.possiblyEvaluate.call(this,Z,ue)},R.prototype.evaluate=function(Z,ue,Pe,Qe){return ue=q({},ue,{zoom:Math.floor(ue.zoom)}),_.prototype.evaluate.call(this,Z,ue,Pe,Qe)},R}(td))(mt.paint.properties["line-width"].specification);Ft.useIntegerZoom=!0;var Dt=function(_){function R(Z){_.call(this,Z,mt),this.gradientVersion=0}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(Z){Z==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Fa,this.gradientVersion=(this.gradientVersion+1)%f)},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(Z,ue){_.prototype.recalculate.call(this,Z,ue),this.paint._values["line-floorwidth"]=Ft.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,Z)},R.prototype.createBucket=function(Z){return new Os(Z)},R.prototype.queryRadius=function(Z){var ue=Z,Pe=zt(zf("line-width",this,ue),zf("line-gap-width",this,ue)),Qe=zf("line-offset",this,ue);return Pe/2+Math.abs(Qe)+bf(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(Z,ue,Pe,Qe,wt,jt,Nn){var cr=Qp(Z,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),jt.angle,Nn),Ur=Nn/2*zt(this.paint.get("line-width").evaluate(ue,Pe),this.paint.get("line-gap-width").evaluate(ue,Pe)),bi=this.paint.get("line-offset").evaluate(ue,Pe);return bi&&(Qe=function(_o,zo){for(var qs=[],ra=new w(0,0),al=0;al<_o.length;al++){for(var Pa=_o[al],Ol=[],Vl=0;Vl=3){for(var Pa=0;Pa0?R+2*_:_}var Gt=_h([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Nr=_h([{name:"a_projected_pos",components:3,type:"Float32"}],4),An=(_h([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),_h([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Tn=(_h([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),_h([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),cn=_h([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Jn(_,R,Z){return _.sections.forEach(function(ue){ue.text=function(Pe,Qe,wt){var jt=Qe.layout.get("text-transform").evaluate(wt,{});return jt==="uppercase"?Pe=Pe.toLocaleUpperCase():jt==="lowercase"&&(Pe=Pe.toLocaleLowerCase()),ag.applyArabicShaping&&(Pe=ag.applyArabicShaping(Pe)),Pe}(ue.text,R,Z)}),_}_h([{name:"triangle",components:3,type:"Uint16"}]),_h([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),_h([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),_h([{type:"Float32",name:"offsetX"}]),_h([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var wr={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},Lo=function(_,R,Z,ue,Pe){var Qe,wt,jt=8*Pe-ue-1,Nn=(1<>1,Ur=-7,bi=Z?Pe-1:0,_o=Z?-1:1,zo=_[R+bi];for(bi+=_o,Qe=zo&(1<<-Ur)-1,zo>>=-Ur,Ur+=jt;Ur>0;Qe=256*Qe+_[R+bi],bi+=_o,Ur-=8);for(wt=Qe&(1<<-Ur)-1,Qe>>=-Ur,Ur+=ue;Ur>0;wt=256*wt+_[R+bi],bi+=_o,Ur-=8);if(Qe===0)Qe=1-cr;else{if(Qe===Nn)return wt?NaN:1/0*(zo?-1:1);wt+=Math.pow(2,ue),Qe-=cr}return(zo?-1:1)*wt*Math.pow(2,Qe-ue)},kt=function(_,R,Z,ue,Pe,Qe){var wt,jt,Nn,cr=8*Qe-Pe-1,Ur=(1<>1,_o=Pe===23?Math.pow(2,-24)-Math.pow(2,-77):0,zo=ue?0:Qe-1,qs=ue?1:-1,ra=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(jt=isNaN(R)?1:0,wt=Ur):(wt=Math.floor(Math.log(R)/Math.LN2),R*(Nn=Math.pow(2,-wt))<1&&(wt--,Nn*=2),(R+=wt+bi>=1?_o/Nn:_o*Math.pow(2,1-bi))*Nn>=2&&(wt++,Nn/=2),wt+bi>=Ur?(jt=0,wt=Ur):wt+bi>=1?(jt=(R*Nn-1)*Math.pow(2,Pe),wt+=bi):(jt=R*Math.pow(2,bi-1)*Math.pow(2,Pe),wt=0));Pe>=8;_[Z+zo]=255&jt,zo+=qs,jt/=256,Pe-=8);for(wt=wt<0;_[Z+zo]=255&wt,zo+=qs,wt/=256,cr-=8);_[Z+zo-qs]|=128*ra},tr=Ln;function Ln(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}Ln.Varint=0,Ln.Fixed64=1,Ln.Bytes=2,Ln.Fixed32=5;var ir=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function dr(_){return _.type===Ln.Bytes?_.readVarint()+_.pos:_.pos+1}function jr(_,R,Z){return Z?4294967296*R+(_>>>0):4294967296*(R>>>0)+(_>>>0)}function Ri(_,R,Z){var ue=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(7*Math.LN2));Z.realloc(ue);for(var Pe=Z.pos-1;Pe>=_;Pe--)Z.buf[Pe+ue]=Z.buf[Pe]}function Te(_,R){for(var Z=0;Z<_.length;Z++)R.writeVarint(_[Z])}function qo(_,R){for(var Z=0;Z<_.length;Z++)R.writeSVarint(_[Z])}function Zs(_,R){for(var Z=0;Z<_.length;Z++)R.writeFloat(_[Z])}function Sa(_,R){for(var Z=0;Z<_.length;Z++)R.writeDouble(_[Z])}function ca(_,R){for(var Z=0;Z<_.length;Z++)R.writeBoolean(_[Z])}function Rs(_,R){for(var Z=0;Z<_.length;Z++)R.writeFixed32(_[Z])}function ma(_,R){for(var Z=0;Z<_.length;Z++)R.writeSFixed32(_[Z])}function ko(_,R){for(var Z=0;Z<_.length;Z++)R.writeFixed64(_[Z])}function or(_,R){for(var Z=0;Z<_.length;Z++)R.writeSFixed64(_[Z])}function Ii(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+16777216*_[R+3]}function Gi(_,R,Z){_[Z]=R,_[Z+1]=R>>>8,_[Z+2]=R>>>16,_[Z+3]=R>>>24}function cs(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function Ps(_,R,Z){_===1&&Z.readMessage(da,R)}function da(_,R,Z){if(_===3){var ue=Z.readMessage(Yo,{}),Pe=ue.width,Qe=ue.height,wt=ue.left,jt=ue.top,Nn=ue.advance;R.push({id:ue.id,bitmap:new Lg({width:Pe+6,height:Qe+6},ue.bitmap),metrics:{width:Pe,height:Qe,left:wt,top:jt,advance:Nn}})}}function Yo(_,R,Z){_===1?R.id=Z.readVarint():_===2?R.bitmap=Z.readBytes():_===3?R.width=Z.readVarint():_===4?R.height=Z.readVarint():_===5?R.left=Z.readSVarint():_===6?R.top=Z.readSVarint():_===7&&(R.advance=Z.readVarint())}function sr(_){for(var R=0,Z=0,ue=0,Pe=_;ue=0;_o--){var zo=wt[_o];if(!(bi.w>zo.w||bi.h>zo.h)){if(bi.x=zo.x,bi.y=zo.y,Nn=Math.max(Nn,bi.y+bi.h),jt=Math.max(jt,bi.x+bi.w),bi.w===zo.w&&bi.h===zo.h){var qs=wt.pop();_o>3,Qe=this.pos;this.type=7&ue,_(Pe,R,this),this.pos===Qe&&this.skip(ue)}return R},readMessage:function(_,R){return this.readFields(_,R,this.readVarint()+this.pos)},readFixed32:function(){var _=Ii(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=cs(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=Ii(this.buf,this.pos)+4294967296*Ii(this.buf,this.pos+4);return this.pos+=8,_},readSFixed64:function(){var _=Ii(this.buf,this.pos)+4294967296*cs(this.buf,this.pos+4);return this.pos+=8,_},readFloat:function(){var _=Lo(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=Lo(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var R,Z,ue=this.buf;return R=127&(Z=ue[this.pos++]),Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<7,Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<14,Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<21,Z<128?R:function(Pe,Qe,wt){var jt,Nn,cr=wt.buf;if(jt=(112&(Nn=cr[wt.pos++]))>>4,Nn<128||(jt|=(127&(Nn=cr[wt.pos++]))<<3,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<10,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<17,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<24,Nn<128)||(jt|=(1&(Nn=cr[wt.pos++]))<<31,Nn<128))return jr(Pe,jt,Qe);throw new Error("Expected varint not more than 10 bytes")}(R|=(15&(Z=ue[this.pos]))<<28,_,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2==1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,R=this.pos;return this.pos=_,_-R>=12&&ir?function(Z,ue,Pe){return ir.decode(Z.subarray(ue,Pe))}(this.buf,R,_):function(Z,ue,Pe){for(var Qe="",wt=ue;wt239?4:Ur>223?3:Ur>191?2:1;if(wt+_o>Pe)break;_o===1?Ur<128&&(bi=Ur):_o===2?(192&(jt=Z[wt+1]))==128&&(bi=(31&Ur)<<6|63&jt)<=127&&(bi=null):_o===3?(Nn=Z[wt+2],(192&(jt=Z[wt+1]))==128&&(192&Nn)==128&&((bi=(15&Ur)<<12|(63&jt)<<6|63&Nn)<=2047||bi>=55296&&bi<=57343)&&(bi=null)):_o===4&&(Nn=Z[wt+2],cr=Z[wt+3],(192&(jt=Z[wt+1]))==128&&(192&Nn)==128&&(192&cr)==128&&((bi=(15&Ur)<<18|(63&jt)<<12|(63&Nn)<<6|63&cr)<=65535||bi>=1114112)&&(bi=null)),bi===null?(bi=65533,_o=1):bi>65535&&(bi-=65536,Qe+=String.fromCharCode(bi>>>10&1023|55296),bi=56320|1023&bi),Qe+=String.fromCharCode(bi),wt+=_o}return Qe}(this.buf,R,_)},readBytes:function(){var _=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,_);return this.pos=_,R},readPackedVarint:function(_,R){if(this.type!==Ln.Bytes)return _.push(this.readVarint(R));var Z=dr(this);for(_=_||[];this.pos127;);else if(R===Ln.Bytes)this.pos=this.readVarint()+this.pos;else if(R===Ln.Fixed32)this.pos+=4;else{if(R!==Ln.Fixed64)throw new Error("Unimplemented type: "+R);this.pos+=8}},writeTag:function(_,R){this.writeVarint(_<<3|R)},realloc:function(_){for(var R=this.length||16;R268435455||_<0?function(R,Z){var ue,Pe;if(R>=0?(ue=R%4294967296|0,Pe=R/4294967296|0):(Pe=~(-R/4294967296),4294967295^(ue=~(-R%4294967296))?ue=ue+1|0:(ue=0,Pe=Pe+1|0)),R>=18446744073709552e3||R<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");Z.realloc(10),function(Qe,wt,jt){jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,jt.buf[jt.pos]=127&(Qe>>>=7)}(ue,0,Z),function(Qe,wt){var jt=(7&Qe)<<4;wt.buf[wt.pos++]|=jt|((Qe>>>=3)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe)))))}(Pe,Z)}(_,this):(this.realloc(4),this.buf[this.pos++]=127&_|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=_>>>7&127))))},writeSVarint:function(_){this.writeVarint(_<0?2*-_-1:2*_)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(4*_.length),this.pos++;var R=this.pos;this.pos=function(ue,Pe,Qe){for(var wt,jt,Nn=0;Nn55295&&wt<57344){if(!jt){wt>56319||Nn+1===Pe.length?(ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189):jt=wt;continue}if(wt<56320){ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189,jt=wt;continue}wt=jt-55296<<10|wt-56320|65536,jt=null}else jt&&(ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189,jt=null);wt<128?ue[Qe++]=wt:(wt<2048?ue[Qe++]=wt>>6|192:(wt<65536?ue[Qe++]=wt>>12|224:(ue[Qe++]=wt>>18|240,ue[Qe++]=wt>>12&63|128),ue[Qe++]=wt>>6&63|128),ue[Qe++]=63&wt|128)}return Qe}(this.buf,_,this.pos);var Z=this.pos-R;Z>=128&&Ri(R,Z,this),this.pos=R-1,this.writeVarint(Z),this.pos+=Z},writeFloat:function(_){this.realloc(4),kt(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),kt(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var R=_.length;this.writeVarint(R),this.realloc(R);for(var Z=0;Z=128&&Ri(Z,ue,this),this.pos=Z-1,this.writeVarint(ue),this.pos+=ue},writeMessage:function(_,R,Z){this.writeTag(_,Ln.Bytes),this.writeRawMessage(R,Z)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,Te,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,qo,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,ca,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,Zs,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,Sa,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,Rs,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,ma,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,ko,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,or,R)},writeBytesField:function(_,R){this.writeTag(_,Ln.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,Ln.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,Ln.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,Ln.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,Ln.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,Ln.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,Ln.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,Ln.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,Ln.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,Ln.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};var io=function(_,R){var Z=R.pixelRatio,ue=R.version,Pe=R.stretchX,Qe=R.stretchY,wt=R.content;this.paddedRect=_,this.pixelRatio=Z,this.stretchX=Pe,this.stretchY=Qe,this.content=wt,this.version=ue},ws={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ws.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ws.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ws.tlbr.get=function(){return this.tl.concat(this.br)},ws.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(io.prototype,ws);var cl=function(_,R){var Z={},ue={};this.haveRenderCallbacks=[];var Pe=[];this.addImages(_,Z,Pe),this.addImages(R,ue,Pe);var Qe=sr(Pe),wt=new ug({width:Qe.w||1,height:Qe.h||1});for(var jt in _){var Nn=_[jt],cr=Z[jt].paddedRect;ug.copy(Nn.data,wt,{x:0,y:0},{x:cr.x+1,y:cr.y+1},Nn.data)}for(var Ur in R){var bi=R[Ur],_o=ue[Ur].paddedRect,zo=_o.x+1,qs=_o.y+1,ra=bi.data.width,al=bi.data.height;ug.copy(bi.data,wt,{x:0,y:0},{x:zo,y:qs},bi.data),ug.copy(bi.data,wt,{x:0,y:al-1},{x:zo,y:qs-1},{width:ra,height:1}),ug.copy(bi.data,wt,{x:0,y:0},{x:zo,y:qs+al},{width:ra,height:1}),ug.copy(bi.data,wt,{x:ra-1,y:0},{x:zo-1,y:qs},{width:1,height:al}),ug.copy(bi.data,wt,{x:0,y:0},{x:zo+ra,y:qs},{width:1,height:al})}this.image=wt,this.iconPositions=Z,this.patternPositions=ue};cl.prototype.addImages=function(_,R,Z){for(var ue in _){var Pe=_[ue],Qe={x:0,y:0,w:Pe.data.width+2,h:Pe.data.height+2};Z.push(Qe),R[ue]=new io(Qe,Pe),Pe.hasRenderCallback&&this.haveRenderCallbacks.push(ue)}},cl.prototype.patchUpdatedImages=function(_,R){for(var Z in _.dispatchRenderCallbacks(this.haveRenderCallbacks),_.updatedImages)this.patchUpdatedImage(this.iconPositions[Z],_.getImage(Z),R),this.patchUpdatedImage(this.patternPositions[Z],_.getImage(Z),R)},cl.prototype.patchUpdatedImage=function(_,R,Z){if(_&&R&&_.version!==R.version){_.version=R.version;var ue=_.tl;Z.update(R.data,void 0,{x:ue[0],y:ue[1]})}},Qc("ImagePosition",io),Qc("ImageAtlas",cl);var Dl={horizontal:1,vertical:2,horizontalOnly:3},Ba=function(){this.scale=1,this.fontStack="",this.imageName=null};Ba.forText=function(_,R){var Z=new Ba;return Z.scale=_||1,Z.fontStack=R,Z},Ba.forImage=function(_){var R=new Ba;return R.imageName=_,R};var Ss=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function wl(_,R,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra){var al,Pa=Ss.fromFeature(_,Pe);bi===Dl.vertical&&Pa.verticalizePunctuation();var Ol=ag.processBidirectionalText,Vl=ag.processStyledBidirectionalText;if(Ol&&Pa.sections.length===1){al=[];for(var cu=0,lu=Ol(Pa.toString(),$l(Pa,cr,Qe,R,ue,zo,qs));cu0&&Ip>Ef&&(Ef=Ip)}else{var qf=aa[Fd.fontStack],kp=qf&&qf[Tg];if(kp&&kp.rect)gf=kp.rect,Sp=kp.metrics;else{var Xp=bo[Fd.fontStack],rp=Xp&&Xp[Tg];if(!rp)continue;Sp=rp.metrics}cm=24*(Yf-Fd.scale)}Nu?(Gr.verticalizable=!0,kd.push({glyph:Tg,imageName:Kp,x:wh,y:cg+cm,vertical:Nu,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Sp,rect:gf}),wh+=Of*Fd.scale+ph):(kd.push({glyph:Tg,imageName:Kp,x:wh,y:cg+cm,vertical:Nu,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Sp,rect:gf}),wh+=Sp.advance*Fd.scale+ph)}kd.length!==0&&(yg=Math.max(wh-ph,yg),tu(kd,0,kd.length-1,nf,Ef)),wh=0;var Em=Xl*Yf+Ef;Mf.lineOffset=Math.max(Ef,em),cg+=Em,Fh=Math.max(Em,Fh),++es}else cg+=Xl,++es}var Kg,dg=cg- -17,Xg=su(wu),og=Xg.horizontalAlign,hg=Xg.verticalAlign;(function(Yp,z0,gy,H0,q_,lv,vy,q0,Uy){var Cv,gv=(z0-gy)*q_;Cv=lv!==vy?-q0*H0- -17:(-H0*Uy+.5)*vy;for(var c1=0,wv=Yp;c1=0&&ue>=_&&rl[this.text.charCodeAt(ue)];ue--)Z--;this.text=this.text.substring(_,Z),this.sectionIndex=this.sectionIndex.slice(_,Z)},Ss.prototype.substring=function(_,R){var Z=new Ss;return Z.text=this.text.substring(_,R),Z.sectionIndex=this.sectionIndex.slice(_,R),Z.sections=this.sections,Z},Ss.prototype.toString=function(){return this.text},Ss.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(R,Z){return Math.max(R,_.sections[Z].scale)},0)},Ss.prototype.addTextSection=function(_,R){this.text+=_.text,this.sections.push(Ba.forText(_.scale,_.fontStack||R));for(var Z=this.sections.length-1,ue=0;ue<_.text.length;++ue)this.sectionIndex.push(Z)},Ss.prototype.addImageSection=function(_){var R=_.image?_.image.name:"";if(R.length!==0){var Z=this.getNextImageSectionCharCode();Z?(this.text+=String.fromCharCode(Z),this.sections.push(Ba.forImage(R)),this.sectionIndex.push(this.sections.length-1)):_e("Reached maximum number of images 6401")}else _e("Can't add FormattedSection with an empty image.")},Ss.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var rl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},mc={};function gl(_,R,Z,ue,Pe,Qe){if(R.imageName){var wt=ue[R.imageName];return wt?wt.displaySize[0]*R.scale*24/Qe+Pe:0}var jt=Z[R.fontStack],Nn=jt&&jt[_];return Nn?Nn.metrics.advance*R.scale+Pe:0}function ic(_,R,Z,ue){var Pe=Math.pow(_-R,2);return ue?_=0,bi=0,_o=0;_o<_.length();_o++){var zo=_.getSection(_o),qs=_.getCharCode(_o);if(rl[qs]||(bi+=gl(qs,zo,ue,Pe,R,wt)),_o<_.length()-1){var ra=!((jt=qs)<11904||!(Qu["Bopomofo Extended"](jt)||Qu.Bopomofo(jt)||Qu["CJK Compatibility Forms"](jt)||Qu["CJK Compatibility Ideographs"](jt)||Qu["CJK Compatibility"](jt)||Qu["CJK Radicals Supplement"](jt)||Qu["CJK Strokes"](jt)||Qu["CJK Symbols and Punctuation"](jt)||Qu["CJK Unified Ideographs Extension A"](jt)||Qu["CJK Unified Ideographs"](jt)||Qu["Enclosed CJK Letters and Months"](jt)||Qu["Halfwidth and Fullwidth Forms"](jt)||Qu.Hiragana(jt)||Qu["Ideographic Description Characters"](jt)||Qu["Kangxi Radicals"](jt)||Qu["Katakana Phonetic Extensions"](jt)||Qu.Katakana(jt)||Qu["Vertical Forms"](jt)||Qu["Yi Radicals"](jt)||Qu["Yi Syllables"](jt)));(mc[qs]||ra||zo.imageName)&&Nn.push(qu(_o+1,bi,cr,Nn,Ca(qs,_.getCharCode(_o+1),ra&&Ur),!1))}}return function al(Pa){return Pa?al(Pa.priorBreak).concat(Pa.index):[]}(qu(_.length(),bi,cr,Nn,0,!0))}function su(_){var R=.5,Z=.5;switch(_){case"right":case"top-right":case"bottom-right":R=1;break;case"left":case"top-left":case"bottom-left":R=0}switch(_){case"bottom":case"bottom-right":case"bottom-left":Z=1;break;case"top":case"top-right":case"top-left":Z=0}return{horizontalAlign:R,verticalAlign:Z}}function tu(_,R,Z,ue,Pe){if(ue||Pe)for(var Qe=_[Z],wt=(_[Z].x+Qe.metrics.advance*Qe.scale)*ue,jt=R;jt<=Z;jt++)_[jt].x-=wt,_[jt].y+=Pe}function Js(_,R,Z,ue,Pe,Qe){var wt,jt=_.image;if(jt.content){var Nn=jt.content,cr=jt.pixelRatio||1;wt=[Nn[0]/cr,Nn[1]/cr,jt.displaySize[0]-Nn[2]/cr,jt.displaySize[1]-Nn[3]/cr]}var Ur,bi,_o,zo,qs=R.left*Qe,ra=R.right*Qe;Z==="width"||Z==="both"?(zo=Pe[0]+qs-ue[3],bi=Pe[0]+ra+ue[1]):bi=(zo=Pe[0]+(qs+ra-jt.displaySize[0])/2)+jt.displaySize[0];var al=R.top*Qe,Pa=R.bottom*Qe;return Z==="height"||Z==="both"?(Ur=Pe[1]+al-ue[0],_o=Pe[1]+Pa+ue[2]):_o=(Ur=Pe[1]+(al+Pa-jt.displaySize[1])/2)+jt.displaySize[1],{image:jt,top:Ur,right:bi,bottom:_o,left:zo,collisionPadding:wt}}mc[10]=!0,mc[32]=!0,mc[38]=!0,mc[40]=!0,mc[41]=!0,mc[43]=!0,mc[45]=!0,mc[47]=!0,mc[173]=!0,mc[183]=!0,mc[8203]=!0,mc[8208]=!0,mc[8211]=!0,mc[8231]=!0;var Kc=function(_){function R(Z,ue,Pe,Qe){_.call(this,Z,ue),this.angle=Pe,Qe!==void 0&&(this.segment=Qe)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.clone=function(){return new R(this.x,this.y,this.angle,this.segment)},R}(w);function Le(_,R){var Z=R.expression;if(Z.kind==="constant")return{kind:"constant",layoutSize:Z.evaluate(new Md(_+1))};if(Z.kind==="source")return{kind:"source"};for(var ue=Z.zoomStops,Pe=Z.interpolationType,Qe=0;Qe-Z/2;){if(--wt<0)return!1;jt-=_[wt].dist(Qe),Qe=_[wt]}jt+=_[wt].dist(_[wt+1]),wt++;for(var Nn=[],cr=0;jtue;)cr-=Nn.shift().angleDelta;if(cr>Pe)return!1;wt++,jt+=Ur.dist(bi)}return!0}function wn(_){for(var R=0,Z=0;Z<_.length-1;Z++)R+=_[Z].dist(_[Z+1]);return R}function li(_,R,Z){return _?.6*R*Z:0}function Fi(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function _s(_,R,Z,ue,Pe,Qe){for(var wt=li(Z,Pe,Qe),jt=Fi(Z,ue)*Qe,Nn=0,cr=wn(_)/2,Ur=0;Ur<_.length-1;Ur++){var bi=_[Ur],_o=_[Ur+1],zo=bi.dist(_o);if(Nn+zo>cr){var qs=(cr-Nn)/zo,ra=ml(bi.x,_o.x,qs),al=ml(bi.y,_o.y,qs),Pa=new Kc(ra,al,_o.angleTo(bi),Ur);return Pa._round(),!wt||Rr(_,Pa,jt,wt,R)?Pa:void 0}Nn+=zo}}function Ea(_,R,Z,ue,Pe,Qe,wt,jt,Nn){var cr=li(ue,Qe,wt),Ur=Fi(ue,Pe),bi=Ur*wt,_o=_[0].x===0||_[0].x===Nn||_[0].y===0||_[0].y===Nn;return R-bi=0&&Ya=0&&ka=0&&Xu+kc<=ac){var Xl=new Kc(Ya,ka,bo,qt);Xl._round(),Pa&&!Rr(qs,Xl,Vl,Pa,Ol)||Nd.push(Xl)}}_d+=Gr}return lu||Nd.length||cu||(Nd=zo(qs,_d/2,al,Pa,Ol,Vl,cu,!0,Hu)),Nd}(_,_o?R/2*jt%R:(Ur/2+2*Qe)*wt*jt%R,R,cr,Z,bi,_o,!1,Nn)}function Aa(_,R,Z,ue,Pe){for(var Qe=[],wt=0;wt<_.length;wt++)for(var jt=_[wt],Nn=void 0,cr=0;cr=ue&&bi.x>=ue||(Ur.x>=ue?Ur=new w(ue,Ur.y+(ue-Ur.x)/(bi.x-Ur.x)*(bi.y-Ur.y))._round():bi.x>=ue&&(bi=new w(ue,Ur.y+(ue-Ur.x)/(bi.x-Ur.x)*(bi.y-Ur.y))._round()),Ur.y>=Pe&&bi.y>=Pe||(Ur.y>=Pe?Ur=new w(Ur.x+(Pe-Ur.y)/(bi.y-Ur.y)*(bi.x-Ur.x),Pe)._round():bi.y>=Pe&&(bi=new w(Ur.x+(Pe-Ur.y)/(bi.y-Ur.y)*(bi.x-Ur.x),Pe)._round()),Nn&&Ur.equals(Nn[Nn.length-1])||Qe.push(Nn=[Ur]),Nn.push(bi)))))}return Qe}function bl(_,R,Z,ue){var Pe=[],Qe=_.image,wt=Qe.pixelRatio,jt=Qe.paddedRect.w-2,Nn=Qe.paddedRect.h-2,cr=_.right-_.left,Ur=_.bottom-_.top,bi=Qe.stretchX||[[0,jt]],_o=Qe.stretchY||[[0,Nn]],zo=function(Ya,ka){return Ya+ka[1]-ka[0]},qs=bi.reduce(zo,0),ra=_o.reduce(zo,0),al=jt-qs,Pa=Nn-ra,Ol=0,Vl=qs,cu=0,lu=ra,Hu=0,kc=al,ac=0,_d=Pa;if(Qe.content&&ue){var Xu=Qe.content;Ol=Ql(bi,0,Xu[0]),cu=Ql(_o,0,Xu[1]),Vl=Ql(bi,Xu[0],Xu[2]),lu=Ql(_o,Xu[1],Xu[3]),Hu=Xu[0]-Ol,ac=Xu[1]-cu,kc=Xu[2]-Xu[0]-Vl,_d=Xu[3]-Xu[1]-lu}var Nd=function(Ya,ka,Xl,wu){var Ls=As(Ya.stretch-Ol,Vl,cr,_.left),Xc=Xa(Ya.fixed-Hu,kc,Ya.stretch,qs),ph=As(ka.stretch-cu,lu,Ur,_.top),gh=Xa(ka.fixed-ac,_d,ka.stretch,ra),ih=As(Xl.stretch-Ol,Vl,cr,_.left),wh=Xa(Xl.fixed-Hu,kc,Xl.stretch,qs),cg=As(wu.stretch-cu,lu,Ur,_.top),yg=Xa(wu.fixed-ac,_d,wu.stretch,ra),Fh=new w(Ls,ph),nf=new w(ih,ph),es=new w(ih,cg),Rl=new w(Ls,cg),Zf=new w(Xc/wt,gh/wt),$f=new w(wh/wt,yg/wt),Yf=R*Math.PI/180;if(Yf){var em=Math.sin(Yf),Mf=Math.cos(Yf),kd=[Mf,-em,em,Mf];Fh._matMult(kd),nf._matMult(kd),Rl._matMult(kd),es._matMult(kd)}var Ef=Ya.stretch+Ya.fixed,Rg=ka.stretch+ka.fixed;return{tl:Fh,tr:nf,bl:Rl,br:es,tex:{x:Qe.paddedRect.x+1+Ef,y:Qe.paddedRect.y+1+Rg,w:Xl.stretch+Xl.fixed-Ef,h:wu.stretch+wu.fixed-Rg},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Zf,pixelOffsetBR:$f,minFontScaleX:kc/wt/cr,minFontScaleY:_d/wt/Ur,isSDF:Z}};if(ue&&(Qe.stretchX||Qe.stretchY))for(var qt=Ju(bi,al,qs),On=Ju(_o,Pa,ra),hr=0;hr0&&(zo=Math.max(10,zo),this.circleDiameter=zo)}else{var qs=Qe.top*wt-jt,ra=Qe.bottom*wt+jt,al=Qe.left*wt-jt,Pa=Qe.right*wt+jt,Ol=Qe.collisionPadding;if(Ol&&(al-=Ol[0]*wt,qs-=Ol[1]*wt,Pa+=Ol[2]*wt,ra+=Ol[3]*wt),cr){var Vl=new w(al,qs),cu=new w(Pa,qs),lu=new w(al,ra),Hu=new w(Pa,ra),kc=cr*Math.PI/180;Vl._rotate(kc),cu._rotate(kc),lu._rotate(kc),Hu._rotate(kc),al=Math.min(Vl.x,cu.x,lu.x,Hu.x),Pa=Math.max(Vl.x,cu.x,lu.x,Hu.x),qs=Math.min(Vl.y,cu.y,lu.y,Hu.y),ra=Math.max(Vl.y,cu.y,lu.y,Hu.y)}_.emplaceBack(R.x,R.y,al,qs,Pa,ra,Z,ue,Pe)}this.boxEndIndex=_.length},qa=function(_,R){if(_===void 0&&(_=[]),R===void 0&&(R=Ta),this.data=_,this.length=this.data.length,this.compare=R,this.length>0)for(var Z=(this.length>>1)-1;Z>=0;Z--)this._down(Z)};function Ta(_,R){return _R?1:0}function Du(_,R,Z){R===void 0&&(R=1),Z===void 0&&(Z=!1);for(var ue=1/0,Pe=1/0,Qe=-1/0,wt=-1/0,jt=_[0],Nn=0;NnQe)&&(Qe=cr.x),(!Nn||cr.y>wt)&&(wt=cr.y)}var Ur=Math.min(Qe-ue,wt-Pe),bi=Ur/2,_o=new qa([],Wc);if(Ur===0)return new w(ue,Pe);for(var zo=ue;zora.d||!ra.d)&&(ra=Pa,Z&&console.log("found best %d after %d probes",Math.round(1e4*Pa.d)/1e4,al)),Pa.max-ra.d<=R||(_o.push(new os(Pa.p.x-(bi=Pa.h/2),Pa.p.y-bi,bi,_)),_o.push(new os(Pa.p.x+bi,Pa.p.y-bi,bi,_)),_o.push(new os(Pa.p.x-bi,Pa.p.y+bi,bi,_)),_o.push(new os(Pa.p.x+bi,Pa.p.y+bi,bi,_)),al+=4)}return Z&&(console.log("num probes: "+al),console.log("best distance: "+ra.d)),ra.p}function Wc(_,R){return R.max-_.max}function os(_,R,Z,ue){this.p=new w(_,R),this.h=Z,this.d=function(Pe,Qe){for(var wt=!1,jt=1/0,Nn=0;NnPe.y!=qs.y>Pe.y&&Pe.x<(qs.x-zo.x)*(Pe.y-zo.y)/(qs.y-zo.y)+zo.x&&(wt=!wt),jt=Math.min(jt,vm(Pe,zo,qs))}return(wt?1:-1)*Math.sqrt(jt)}(this.p,ue),this.max=this.d+this.h*Math.SQRT2}qa.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},qa.prototype.pop=function(){if(this.length!==0){var _=this.data[0],R=this.data.pop();return this.length--,this.length>0&&(this.data[0]=R,this._down(0)),_}},qa.prototype.peek=function(){return this.data[0]},qa.prototype._up=function(_){for(var R=this.data,Z=this.compare,ue=R[_];_>0;){var Pe=_-1>>1,Qe=R[Pe];if(Z(ue,Qe)>=0)break;R[_]=Qe,_=Pe}R[_]=ue},qa.prototype._down=function(_){for(var R=this.data,Z=this.compare,ue=this.length>>1,Pe=R[_];_=0)break;R[_]=wt,_=Qe}R[_]=Pe};var Mo=Number.POSITIVE_INFINITY;function ks(_,R){return R[1]!==Mo?function(Z,ue,Pe){var Qe=0,wt=0;switch(ue=Math.abs(ue),Pe=Math.abs(Pe),Z){case"top-right":case"top-left":case"top":wt=Pe-7;break;case"bottom-right":case"bottom-left":case"bottom":wt=7-Pe}switch(Z){case"top-right":case"bottom-right":case"right":Qe=-ue;break;case"top-left":case"bottom-left":case"left":Qe=ue}return[Qe,wt]}(_,R[0],R[1]):function(Z,ue){var Pe=0,Qe=0;ue<0&&(ue=0);var wt=ue/Math.sqrt(2);switch(Z){case"top-right":case"top-left":Qe=wt-7;break;case"bottom-right":case"bottom-left":Qe=7-wt;break;case"bottom":Qe=7-ue;break;case"top":Qe=ue-7}switch(Z){case"top-right":case"bottom-right":Pe=-wt;break;case"top-left":case"bottom-left":Pe=wt;break;case"left":Pe=ue;break;case"right":Pe=-ue}return[Pe,Qe]}(_,R[0])}function Da(_){switch(_){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ra(_,R,Z,ue,Pe,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs){var ra=function(cu,lu,Hu,kc,ac,_d,Xu,Nd){for(var qt=kc.layout.get("text-rotate").evaluate(_d,{})*Math.PI/180,On=[],hr=0,Gr=lu.positionedLines;hr32640&&_e(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):al.kind==="composite"&&((Pa=[128*zo.compositeTextSizes[0].evaluate(wt,{},qs),128*zo.compositeTextSizes[1].evaluate(wt,{},qs)])[0]>32640||Pa[1]>32640)&&_e(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),_.addSymbols(_.text,ra,Pa,jt,Qe,wt,cr,R,Nn.lineStartIndex,Nn.lineLength,_o,qs);for(var Ol=0,Vl=Ur;Ol=0;wt--)if(ue.dist(Qe[wt])0)&&(Qe.value.kind!=="constant"||Qe.value.value.length>0),cr=jt.value.kind!=="constant"||!!jt.value.value||Object.keys(jt.parameters).length>0,Ur=Pe.get("symbol-sort-key");if(this.features=[],Nn||cr){for(var bi=R.iconDependencies,_o=R.glyphDependencies,zo=R.availableImages,qs=new Md(this.zoom),ra=0,al=_;ra=0;for(var bo=0,aa=ac.sections;bo=0;jt--)Qe[jt]={x:R[jt].x,y:R[jt].y,tileUnitDistanceFromAnchor:Pe},jt>0&&(Pe+=R[jt-1].dist(R[jt]));for(var Nn=0;Nn0},ta.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ta.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ta.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ta.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ta.prototype.addIndicesForPlacedSymbol=function(_,R){for(var Z=_.placedSymbolArray.get(R),ue=Z.vertexStartIndex+4*Z.numGlyphs,Pe=Z.vertexStartIndex;Pe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var Z=0,ue=this.symbolInstanceIndexes;Z=0&&jt.indexOf(Qe)===wt&&R.addIndicesForPlacedSymbol(R.text,Qe)}),Pe.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Pe.verticalPlacedTextSymbolIndex),Pe.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.placedIconSymbolIndex),Pe.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Qc("SymbolBucket",ta,{omit:["layers","collisionBoxArray","features","compareText"]}),ta.MAX_GLYPHS=65535,ta.addDynamicAttributes=Ci;var yl=new Dp({"symbol-placement":new Od(rn.layout_symbol["symbol-placement"]),"symbol-spacing":new Od(rn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Od(rn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new td(rn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Od(rn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Od(rn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Od(rn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Od(rn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Od(rn.layout_symbol["icon-rotation-alignment"]),"icon-size":new td(rn.layout_symbol["icon-size"]),"icon-text-fit":new Od(rn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Od(rn.layout_symbol["icon-text-fit-padding"]),"icon-image":new td(rn.layout_symbol["icon-image"]),"icon-rotate":new td(rn.layout_symbol["icon-rotate"]),"icon-padding":new Od(rn.layout_symbol["icon-padding"]),"icon-keep-upright":new Od(rn.layout_symbol["icon-keep-upright"]),"icon-offset":new td(rn.layout_symbol["icon-offset"]),"icon-anchor":new td(rn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Od(rn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Od(rn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Od(rn.layout_symbol["text-rotation-alignment"]),"text-field":new td(rn.layout_symbol["text-field"]),"text-font":new td(rn.layout_symbol["text-font"]),"text-size":new td(rn.layout_symbol["text-size"]),"text-max-width":new td(rn.layout_symbol["text-max-width"]),"text-line-height":new Od(rn.layout_symbol["text-line-height"]),"text-letter-spacing":new td(rn.layout_symbol["text-letter-spacing"]),"text-justify":new td(rn.layout_symbol["text-justify"]),"text-radial-offset":new td(rn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Od(rn.layout_symbol["text-variable-anchor"]),"text-anchor":new td(rn.layout_symbol["text-anchor"]),"text-max-angle":new Od(rn.layout_symbol["text-max-angle"]),"text-writing-mode":new Od(rn.layout_symbol["text-writing-mode"]),"text-rotate":new td(rn.layout_symbol["text-rotate"]),"text-padding":new Od(rn.layout_symbol["text-padding"]),"text-keep-upright":new Od(rn.layout_symbol["text-keep-upright"]),"text-transform":new td(rn.layout_symbol["text-transform"]),"text-offset":new td(rn.layout_symbol["text-offset"]),"text-allow-overlap":new Od(rn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Od(rn.layout_symbol["text-ignore-placement"]),"text-optional":new Od(rn.layout_symbol["text-optional"])}),mu={paint:new Dp({"icon-opacity":new td(rn.paint_symbol["icon-opacity"]),"icon-color":new td(rn.paint_symbol["icon-color"]),"icon-halo-color":new td(rn.paint_symbol["icon-halo-color"]),"icon-halo-width":new td(rn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new td(rn.paint_symbol["icon-halo-blur"]),"icon-translate":new Od(rn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Od(rn.paint_symbol["icon-translate-anchor"]),"text-opacity":new td(rn.paint_symbol["text-opacity"]),"text-color":new td(rn.paint_symbol["text-color"],{runtimeType:Qr,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new td(rn.paint_symbol["text-halo-color"]),"text-halo-width":new td(rn.paint_symbol["text-halo-width"]),"text-halo-blur":new td(rn.paint_symbol["text-halo-blur"]),"text-translate":new Od(rn.paint_symbol["text-translate"]),"text-translate-anchor":new Od(rn.paint_symbol["text-translate-anchor"])}),layout:yl},hc=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:Jr,this.defaultValue=_};hc.prototype.evaluate=function(_){if(_.formattedSection){var R=this.defaultValue.property.overrides;if(R&&R.hasOverride(_.formattedSection))return R.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},hc.prototype.eachChild=function(_){this.defaultValue.isConstant()||_(this.defaultValue.value._styleExpression.expression)},hc.prototype.outputDefined=function(){return!1},hc.prototype.serialize=function(){return null},Qc("FormatSectionOverride",hc,{omit:["defaultValue"]});var ud=function(_){function R(Z){_.call(this,Z,mu)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.recalculate=function(Z,ue){if(_.prototype.recalculate.call(this,Z,ue),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Pe=this.layout.get("text-writing-mode");if(Pe){for(var Qe=[],wt=0,jt=Pe;wt",targetMapId:ue,sourceMapId:Qe.mapId})}}},$e.prototype.receive=function(_){var R=_.data,Z=R.id;if(Z&&(!R.targetMapId||this.mapId===R.targetMapId))if(R.type===""){delete this.tasks[Z];var ue=this.cancelCallbacks[Z];delete this.cancelCallbacks[Z],ue&&ue()}else ge()||R.mustQueue?(this.tasks[Z]=R,this.taskQueue.push(Z),this.invoker.trigger()):this.processTask(Z,R)},$e.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),R=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),R&&this.processTask(_,R)}},$e.prototype.processTask=function(_,R){var Z=this;if(R.type===""){var ue=this.callbacks[_];delete this.callbacks[_],ue&&(R.error?ue(bc(R.error)):ue(null,bc(R.data)))}else{var Pe=!1,Qe=Pt(this.globalScope)?void 0:[],wt=R.hasCallback?function(Ur,bi){Pe=!0,delete Z.cancelCallbacks[_],Z.target.postMessage({id:_,type:"",sourceMapId:Z.mapId,error:Ur?ro(Ur):null,data:ro(bi,Qe)},Qe)}:function(Ur){Pe=!0},jt=null,Nn=bc(R.data);if(this.parent[R.type])jt=this.parent[R.type](R.sourceMapId,Nn,wt);else if(this.parent.getWorkerSource){var cr=R.type.split(".");jt=this.parent.getWorkerSource(R.sourceMapId,cr[0],Nn.source)[cr[1]](Nn,wt)}else wt(new Error("Could not find function "+R.type));!Pe&&jt&&jt.cancel&&(this.cancelCallbacks[_]=jt.cancel)}},$e.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Re=function(_,R){_&&(R?this.setSouthWest(_).setNorthEast(R):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};Re.prototype.setNorthEast=function(_){return this._ne=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Re.prototype.setSouthWest=function(_){return this._sw=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Re.prototype.extend=function(_){var R,Z,ue=this._sw,Pe=this._ne;if(_ instanceof ot)R=_,Z=_;else{if(!(_ instanceof Re))return Array.isArray(_)?_.length===4||_.every(Array.isArray)?this.extend(Re.convert(_)):this.extend(ot.convert(_)):this;if(Z=_._ne,!(R=_._sw)||!Z)return this}return ue||Pe?(ue.lng=Math.min(R.lng,ue.lng),ue.lat=Math.min(R.lat,ue.lat),Pe.lng=Math.max(Z.lng,Pe.lng),Pe.lat=Math.max(Z.lat,Pe.lat)):(this._sw=new ot(R.lng,R.lat),this._ne=new ot(Z.lng,Z.lat)),this},Re.prototype.getCenter=function(){return new ot((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Re.prototype.getSouthWest=function(){return this._sw},Re.prototype.getNorthEast=function(){return this._ne},Re.prototype.getNorthWest=function(){return new ot(this.getWest(),this.getNorth())},Re.prototype.getSouthEast=function(){return new ot(this.getEast(),this.getSouth())},Re.prototype.getWest=function(){return this._sw.lng},Re.prototype.getSouth=function(){return this._sw.lat},Re.prototype.getEast=function(){return this._ne.lng},Re.prototype.getNorth=function(){return this._ne.lat},Re.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Re.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Re.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Re.prototype.contains=function(_){var R=ot.convert(_),Z=R.lng,ue=R.lat,Pe=this._sw.lng<=Z&&Z<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Pe=this._sw.lng>=Z&&Z>=this._ne.lng),this._sw.lat<=ue&&ue<=this._ne.lat&&Pe},Re.convert=function(_){return!_||_ instanceof Re?_:new Re(_)};var ot=function(_,R){if(isNaN(_)||isNaN(R))throw new Error("Invalid LngLat object: ("+_+", "+R+")");if(this.lng=+_,this.lat=+R,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};ot.prototype.wrap=function(){return new ot(te(this.lng,-180,180),this.lat)},ot.prototype.toArray=function(){return[this.lng,this.lat]},ot.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},ot.prototype.distanceTo=function(_){var R=Math.PI/180,Z=this.lat*R,ue=_.lat*R,Pe=Math.sin(Z)*Math.sin(ue)+Math.cos(Z)*Math.cos(ue)*Math.cos((_.lng-this.lng)*R);return 63710088e-1*Math.acos(Math.min(Pe,1))},ot.prototype.toBounds=function(_){_===void 0&&(_=0);var R=360*_/40075017,Z=R/Math.cos(Math.PI/180*this.lat);return new Re(new ot(this.lng-Z,this.lat-R),new ot(this.lng+Z,this.lat+R))},ot.convert=function(_){if(_ instanceof ot)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new ot(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new ot(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Lt=2*Math.PI*63710088e-1;function on(_){return Lt*Math.cos(_*Math.PI/180)}function Fn(_){return(180+_)/360}function Xn(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function zi(_,R){return _/on(R)}function ns(_){return 360/Math.PI*Math.atan(Math.exp((180-360*_)*Math.PI/180))-90}var Fo=function(_,R,Z){Z===void 0&&(Z=0),this.x=+_,this.y=+R,this.z=+Z};Fo.fromLngLat=function(_,R){R===void 0&&(R=0);var Z=ot.convert(_);return new Fo(Fn(Z.lng),Xn(Z.lat),zi(R,Z.lat))},Fo.prototype.toLngLat=function(){return new ot(360*this.x-180,ns(this.y))},Fo.prototype.toAltitude=function(){return this.z*on(ns(this.y))},Fo.prototype.meterInMercatorCoordinateUnits=function(){return 1/Lt*(_=ns(this.y),1/Math.cos(_*Math.PI/180));var _};var Ho=function(_,R,Z){this.z=_,this.x=R,this.y=Z,this.key=Kl(0,_,_,R,Z)};Ho.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},Ho.prototype.url=function(_,R){var Z,ue,Pe,Qe,wt,jt=(ue=this.y,Pe=this.z,Qe=Je(256*(Z=this.x),256*(ue=Math.pow(2,Pe)-ue-1),Pe),wt=Je(256*(Z+1),256*(ue+1),Pe),Qe[0]+","+Qe[1]+","+wt[0]+","+wt[1]),Nn=function(cr,Ur,bi){for(var _o,zo="",qs=cr;qs>0;qs--)zo+=(Ur&(_o=1<this.canonical.z?new gu(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gu(_,this.wrap,_,this.canonical.x>>R,this.canonical.y>>R)},gu.prototype.calculateScaledKey=function(_,R){var Z=this.canonical.z-_;return _>this.canonical.z?Kl(this.wrap*+R,_,this.canonical.z,this.canonical.x,this.canonical.y):Kl(this.wrap*+R,_,_,this.canonical.x>>Z,this.canonical.y>>Z)},gu.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var R=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>R&&_.canonical.y===this.canonical.y>>R},gu.prototype.children=function(_){if(this.overscaledZ>=_)return[new gu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var R=this.canonical.z+1,Z=2*this.canonical.x,ue=2*this.canonical.y;return[new gu(R,this.wrap,R,Z,ue),new gu(R,this.wrap,R,Z+1,ue),new gu(R,this.wrap,R,Z,ue+1),new gu(R,this.wrap,R,Z+1,ue+1)]},gu.prototype.isLessThan=function(_){return this.wrap<_.wrap||!(this.wrap>_.wrap)&&(this.overscaledZ<_.overscaledZ||!(this.overscaledZ>_.overscaledZ)&&(this.canonical.x<_.canonical.x||!(this.canonical.x>_.canonical.x)&&this.canonical.y<_.canonical.y))},gu.prototype.wrapped=function(){return new gu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.unwrapTo=function(_){return new gu(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},gu.prototype.toUnwrapped=function(){return new $u(this.wrap,this.canonical)},gu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},gu.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new Fo(_.x-this.wrap,_.y))},Qc("CanonicalTileID",Ho),Qc("OverscaledTileID",gu,{omit:["posMatrix"]});var Sl=function(_,R,Z){if(this.uid=_,R.height!==R.width)throw new RangeError("DEM tiles must be square");if(Z&&Z!=="mapbox"&&Z!=="terrarium")return _e('"'+Z+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=R.height;var ue=this.dim=R.height-2;this.data=new Uint32Array(R.data.buffer),this.encoding=Z||"mapbox";for(var Pe=0;Pe=this.dim+1||R<-1||R>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(R+1)*this.stride+(_+1)},Sl.prototype._unpackMapbox=function(_,R,Z){return(256*_*256+256*R+Z)/10-1e4},Sl.prototype._unpackTerrarium=function(_,R,Z){return 256*_+R+Z/256-32768},Sl.prototype.getPixels=function(){return new ug({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Sl.prototype.backfillBorder=function(_,R,Z){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var ue=R*this.dim,Pe=R*this.dim+this.dim,Qe=Z*this.dim,wt=Z*this.dim+this.dim;switch(R){case-1:ue=Pe-1;break;case 1:Pe=ue+1}switch(Z){case-1:Qe=wt-1;break;case 1:wt=Qe+1}for(var jt=-R*this.dim,Nn=-Z*this.dim,cr=Qe;cr=0&&Ur[3]>=0&&jt.insert(wt,Ur[0],Ur[1],Ur[2],Ur[3])}},oc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Po.VectorTile(new tr(this.rawTileData)).layers,this.sourceLayerCoder=new ql(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},oc.prototype.query=function(_,R,Z,ue){var Pe=this;this.loadVTLayers();for(var Qe=_.params||{},wt=8192/_.tileSize/_.scale,jt=uf(Qe.filter),Nn=_.queryGeometry,cr=_.queryPadding*wt,Ur=Oo(Nn),bi=this.grid.query(Ur.minX-cr,Ur.minY-cr,Ur.maxX+cr,Ur.maxY+cr),_o=Oo(_.cameraQueryGeometry),zo=this.grid3D.query(_o.minX-cr,_o.minY-cr,_o.maxX+cr,_o.maxY+cr,function(cu,lu,Hu,kc){return function(ac,_d,Xu,Nd,qt){for(var On=0,hr=ac;On=Gr.x&&qt>=Gr.y)return!0}var bo=[new w(_d,Xu),new w(_d,qt),new w(Nd,qt),new w(Nd,Xu)];if(ac.length>2){for(var aa=0,Ya=bo;aa=0)return!0;return!1}(Qe,bi)){var _o=this.sourceLayerCoder.decode(Z),zo=this.vtLayers[_o].feature(ue);if(Pe.needGeometry){var qs=ad(zo,!0);if(!Pe.filter(new Md(this.tileID.overscaledZ),qs,this.tileID.canonical))return}else if(!Pe.filter(new Md(this.tileID.overscaledZ),zo))return;for(var ra=this.getId(zo,_o),al=0;alue)Pe=!1;else if(R)if(this.expirationTimeVn&&(_.getActor().send("enforceCacheSizeLimit",Ht),ri=0)},b.clamp=W,b.clearTileCache=function(_){var R=C.caches.delete("mapbox-tiles");_&&R.catch(_).then(function(){return _()})},b.clipLine=Aa,b.clone=function(_){var R=new df(16);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R[3]=_[3],R[4]=_[4],R[5]=_[5],R[6]=_[6],R[7]=_[7],R[8]=_[8],R[9]=_[9],R[10]=_[10],R[11]=_[11],R[12]=_[12],R[13]=_[13],R[14]=_[14],R[15]=_[15],R},b.clone$1=me,b.clone$2=function(_){var R=new df(3);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R},b.collisionCircleLayout=cn,b.config=ii,b.create=function(){var _=new df(16);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_},b.create$1=function(){var _=new df(9);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_},b.create$2=function(){var _=new df(4);return df!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_},b.createCommonjsModule=z,b.createExpression=hd,b.createLayout=_h,b.createStyleLayer=function(_){return _.type==="custom"?new eg(_):new Gg[_.type](_)},b.cross=function(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=Z[0],jt=Z[1],Nn=Z[2];return _[0]=Pe*Nn-Qe*jt,_[1]=Qe*wt-ue*Nn,_[2]=ue*jt-Pe*wt,_},b.deepEqual=function _(R,Z){if(Array.isArray(R)){if(!Array.isArray(Z)||R.length!==Z.length)return!1;for(var ue=0;ue0&&(Qe=1/Math.sqrt(Qe)),_[0]=R[0]*Qe,_[1]=R[1]*Qe,_[2]=R[2]*Qe,_},b.number=ml,b.offscreenCanvasSupported=si,b.ortho=function(_,R,Z,ue,Pe,Qe,wt){var jt=1/(R-Z),Nn=1/(ue-Pe),cr=1/(Qe-wt);return _[0]=-2*jt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*Nn,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*cr,_[11]=0,_[12]=(R+Z)*jt,_[13]=(Pe+ue)*Nn,_[14]=(wt+Qe)*cr,_[15]=1,_},b.parseGlyphPBF=function(_){return new tr(_).readFields(Ps,[])},b.pbf=tr,b.performSymbolLayout=function(_,R,Z,ue,Pe,Qe,wt){_.createArrays(),_.tilePixelRatio=8192/(512*_.overscaling),_.compareText={},_.iconsNeedLinear=!1;var jt=_.layers[0].layout,Nn=_.layers[0]._unevaluatedLayout._values,cr={};if(_.textSizeData.kind==="composite"){var Ur=_.textSizeData,bi=Ur.maxZoom;cr.compositeTextSizes=[Nn["text-size"].possiblyEvaluate(new Md(Ur.minZoom),wt),Nn["text-size"].possiblyEvaluate(new Md(bi),wt)]}if(_.iconSizeData.kind==="composite"){var _o=_.iconSizeData,zo=_o.maxZoom;cr.compositeIconSizes=[Nn["icon-size"].possiblyEvaluate(new Md(_o.minZoom),wt),Nn["icon-size"].possiblyEvaluate(new Md(zo),wt)]}cr.layoutTextSize=Nn["text-size"].possiblyEvaluate(new Md(_.zoom+1),wt),cr.layoutIconSize=Nn["icon-size"].possiblyEvaluate(new Md(_.zoom+1),wt),cr.textMaxSize=Nn["text-size"].possiblyEvaluate(new Md(18));for(var qs=24*jt.get("text-line-height"),ra=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",al=jt.get("text-keep-upright"),Pa=jt.get("text-size"),Ol=function(){var lu=cu[Vl],Hu=jt.get("text-font").evaluate(lu,{},wt).join(","),kc=Pa.evaluate(lu,{},wt),ac=cr.layoutTextSize.evaluate(lu,{},wt),_d=cr.layoutIconSize.evaluate(lu,{},wt),Xu={horizontal:{},vertical:void 0},Nd=lu.text,qt=[0,0];if(Nd){var On=Nd.toString(),hr=24*jt.get("text-letter-spacing").evaluate(lu,{},wt),Gr=function(Rl){for(var Zf=0,$f=Rl;Zf<$f.length;Zf+=1)if(Yf=$f[Zf].charCodeAt(0),Qu.Arabic(Yf)||Qu["Arabic Supplement"](Yf)||Qu["Arabic Extended-A"](Yf)||Qu["Arabic Presentation Forms-A"](Yf)||Qu["Arabic Presentation Forms-B"](Yf))return!1;var Yf;return!0}(On)?hr:0,bo=jt.get("text-anchor").evaluate(lu,{},wt),aa=jt.get("text-variable-anchor");if(!aa){var Ya=jt.get("text-radial-offset").evaluate(lu,{},wt);qt=Ya?ks(bo,[24*Ya,Mo]):jt.get("text-offset").evaluate(lu,{},wt).map(function(Rl){return 24*Rl})}var ka=ra?"center":jt.get("text-justify").evaluate(lu,{},wt),Xl=jt.get("symbol-placement"),wu=Xl==="point"?24*jt.get("text-max-width").evaluate(lu,{},wt):0,Ls=function(){_.allowVerticalPlacement&&Bc(On)&&(Xu.vertical=wl(Nd,R,Z,Pe,Hu,wu,qs,bo,"left",Gr,qt,Dl.vertical,!0,Xl,ac,kc))};if(!ra&&aa){for(var Xc=ka==="auto"?aa.map(function(Rl){return Da(Rl)}):[ka],ph=!1,gh=0;gh=8192||qc.y<0||qc.y>=8192||function(vc,xh,eh,rf,Ep,Ph,cp,fp,t0,Dg,Xm,Z0,Sv,vv,Ng,dm,Yx,h1,fg,Ev,v0,Bm,Gf,Tv,x_){var C_,l0,yy,hm,$0,D1=vc.addToLineVertexArray(xh,eh),qi=0,w_=0,J1=0,_y=0,f1=-1,Hy=-1,y0={},J_=Gs(""),by=0,ty=0;if(fp._unevaluatedLayout.getValue("text-radial-offset")===void 0?(by=(C_=fp.layout.get("text-offset").evaluate(v0,{},Tv).map(function(Vg){return 24*Vg}))[0],ty=C_[1]):(by=24*fp.layout.get("text-radial-offset").evaluate(v0,{},Tv),ty=Mo),vc.allowVerticalPlacement&&rf.vertical){var A1=fp.layout.get("text-rotate").evaluate(v0,{},Tv)+90;hm=new vr(t0,xh,Dg,Xm,Z0,rf.vertical,Sv,vv,Ng,A1),cp&&($0=new vr(t0,xh,Dg,Xm,Z0,cp,Yx,h1,Ng,A1))}if(Ep){var I1=fp.layout.get("icon-rotate").evaluate(v0,{}),Zy=fp.layout.get("icon-text-fit")!=="none",L1=bl(Ep,I1,Gf,Zy),$v=cp?bl(cp,I1,Gf,Zy):void 0;yy=new vr(t0,xh,Dg,Xm,Z0,Ep,Yx,h1,!1,I1),qi=4*L1.length;var ny=vc.iconSizeData,uv=null;ny.kind==="source"?(uv=[128*fp.layout.get("icon-size").evaluate(v0,{})])[0]>32640&&_e(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):ny.kind==="composite"&&((uv=[128*Bm.compositeIconSizes[0].evaluate(v0,{},Tv),128*Bm.compositeIconSizes[1].evaluate(v0,{},Tv)])[0]>32640||uv[1]>32640)&&_e(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),vc.addSymbols(vc.icon,L1,uv,Ev,fg,v0,!1,xh,D1.lineStartIndex,D1.lineLength,-1,Tv),f1=vc.icon.placedSymbolArray.length-1,$v&&(w_=4*$v.length,vc.addSymbols(vc.icon,$v,uv,Ev,fg,v0,Dl.vertical,xh,D1.lineStartIndex,D1.lineLength,-1,Tv),Hy=vc.icon.placedSymbolArray.length-1)}for(var Q1 in rf.horizontal){var ry=rf.horizontal[Q1];if(!l0){J_=Gs(ry.text);var cv=fp.layout.get("text-rotate").evaluate(v0,{},Tv);l0=new vr(t0,xh,Dg,Xm,Z0,ry,Sv,vv,Ng,cv)}var rv=ry.positionedLines.length===1;if(J1+=Ra(vc,xh,ry,Ph,fp,Ng,v0,dm,D1,rf.vertical?Dl.horizontal:Dl.horizontalOnly,rv?Object.keys(rf.horizontal):[Q1],y0,f1,Bm,Tv),rv)break}rf.vertical&&(_y+=Ra(vc,xh,rf.vertical,Ph,fp,Ng,v0,dm,D1,Dl.vertical,["vertical"],y0,Hy,Bm,Tv));var yv=l0?l0.boxStartIndex:vc.collisionBoxArray.length,Wv=l0?l0.boxEndIndex:vc.collisionBoxArray.length,jv=hm?hm.boxStartIndex:vc.collisionBoxArray.length,Ny=hm?hm.boxEndIndex:vc.collisionBoxArray.length,e_=yy?yy.boxStartIndex:vc.collisionBoxArray.length,iv=yy?yy.boxEndIndex:vc.collisionBoxArray.length,S_=$0?$0.boxStartIndex:vc.collisionBoxArray.length,E_=$0?$0.boxEndIndex:vc.collisionBoxArray.length,iy=-1,P1=function(Vg,Q_){return Vg&&Vg.circleDiameter?Math.max(Vg.circleDiameter,Q_):Q_};iy=P1(l0,iy),iy=P1(hm,iy),iy=P1(yy,iy);var Db=(iy=P1($0,iy))>-1?1:0;Db&&(iy*=x_/24),vc.glyphOffsetArray.length>=ta.MAX_GLYPHS&&_e("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),v0.sortKey!==void 0&&vc.addToSortKeyRanges(vc.symbolInstances.length,v0.sortKey),vc.symbolInstances.emplaceBack(xh.x,xh.y,y0.right>=0?y0.right:-1,y0.center>=0?y0.center:-1,y0.left>=0?y0.left:-1,y0.vertical||-1,f1,Hy,J_,yv,Wv,jv,Ny,e_,iv,S_,E_,Dg,J1,_y,qi,w_,Db,0,Sv,by,ty,iy)}(Rl,qc,hu,$f,Yf,em,cm,Rl.layers[0],Rl.collisionBoxArray,Zf.index,Zf.sourceLayerIndex,Rl.index,Nu,qf,rp,Rg,oh,kp,Em,gf,Zf,Mf,Fd,$h,kd)};if(Kg==="line")for(var hg=0,Yp=Aa(Zf.geometry,0,0,8192,8192);hg1){var Uy=_s(q0,Xp,$f.vertical||Kp,Yf,24,lh);Uy&&og(q0,Uy)}}else if(Zf.type==="Polygon")for(var Cv=0,gv=Vt(Zf.geometry,0);Cv=Ei.maxzoom||Ei.visibility!=="none"&&(C(Gn,this.zoom,Or),(Bt[Ei.id]=Ei.createBucket({index:rn.bucketLayerIDs.length,layers:Gn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Di,sourceID:this.source})).populate(co,pn,this.tileID.canonical),rn.bucketLayerIDs.push(Gn.map(function(Mi){return Mi.id})))}}}var In=b.mapObject(pn.glyphDependencies,function(Mi){return Object.keys(Mi).map(Number)});Object.keys(In).length?mi.send("getGlyphs",{uid:this.uid,stacks:In},function(Mi,Fr){Qn||(Qn=Mi,Xr=Fr,wi.call(ti))}):Xr={};var Li=Object.keys(pn.iconDependencies);Li.length?mi.send("getImages",{icons:Li,source:this.source,tileID:this.tileID,type:"icons"},function(Mi,Fr){Qn||(Qn=Mi,ao=Fr,wi.call(ti))}):ao={};var nr=Object.keys(pn.patternDependencies);function wi(){if(Qn)return Er(Qn);if(Xr&&ao&&as){var Mi=new w(Xr),Fr=new b.ImageAtlas(ao,as);for(var qn in Bt){var ms=Bt[qn];ms instanceof b.SymbolBucket?(C(ms.layers,this.zoom,Or),b.performSymbolLayout(ms,Xr,Mi.positions,ao,Fr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ms.hasPattern&&(ms instanceof b.LineBucket||ms instanceof b.FillBucket||ms instanceof b.FillExtrusionBucket)&&(C(ms.layers,this.zoom,Or),ms.addFeatures(pn,this.tileID.canonical,Fr.patternPositions))}this.status="done",Er(null,{buckets:b.values(Bt).filter(function(ya){return!ya.isEmpty()}),featureIndex:rn,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Mi.image,imageAtlas:Fr,glyphMap:this.returnDependencies?Xr:null,iconMap:this.returnDependencies?ao:null,glyphPositions:this.returnDependencies?Mi.positions:null})}}nr.length?mi.send("getImages",{icons:nr,source:this.source,tileID:this.tileID,type:"patterns"},function(Mi,Fr){Qn||(Qn=Mi,as=Fr,wi.call(ti))}):as={},wi.call(this)};var S=function(zn,Kn,Or,mi){this.actor=zn,this.layerIndex=Kn,this.availableImages=Or,this.loadVectorData=mi||f,this.loading={},this.loaded={}};S.prototype.loadTile=function(zn,Kn){var Or=this,mi=zn.uid;this.loading||(this.loading={});var Er=!!(zn&&zn.request&&zn.request.collectResourceTiming)&&new b.RequestPerformance(zn.request),ti=this.loading[mi]=new I(zn);ti.abort=this.loadVectorData(zn,function(di,rn){if(delete Or.loading[mi],di||!rn)return ti.status="done",Or.loaded[mi]=ti,Kn(di);var Qn=rn.rawData,Xr={};rn.expires&&(Xr.expires=rn.expires),rn.cacheControl&&(Xr.cacheControl=rn.cacheControl);var ao={};if(Er){var as=Er.finish();as&&(ao.resourceTiming=JSON.parse(JSON.stringify(as)))}ti.vectorTile=rn.vectorTile,ti.parse(rn.vectorTile,Or.layerIndex,Or.availableImages,Or.actor,function(Bt,pn){if(Bt||!pn)return Kn(Bt);Kn(null,b.extend({rawTileData:Qn.slice(0)},pn,Xr,ao))}),Or.loaded=Or.loaded||{},Or.loaded[mi]=ti})},S.prototype.reloadTile=function(zn,Kn){var Or=this,mi=this.loaded,Er=zn.uid,ti=this;if(mi&&mi[Er]){var di=mi[Er];di.showCollisionBoxes=zn.showCollisionBoxes;var rn=function(Qn,Xr){var ao=di.reloadCallback;ao&&(delete di.reloadCallback,di.parse(di.vectorTile,ti.layerIndex,Or.availableImages,ti.actor,ao)),Kn(Qn,Xr)};di.status==="parsing"?di.reloadCallback=rn:di.status==="done"&&(di.vectorTile?di.parse(di.vectorTile,this.layerIndex,this.availableImages,this.actor,rn):rn())}},S.prototype.abortTile=function(zn,Kn){var Or=this.loading,mi=zn.uid;Or&&Or[mi]&&Or[mi].abort&&(Or[mi].abort(),delete Or[mi]),Kn()},S.prototype.removeTile=function(zn,Kn){var Or=this.loaded,mi=zn.uid;Or&&Or[mi]&&delete Or[mi],Kn()};var P=b.window.ImageBitmap,W=function(){this.loaded={}};function te(zn,Kn){if(zn.length!==0){q(zn[0],Kn);for(var Or=1;Or=Math.abs(rn)?Or-Qn+rn:rn-Qn+Or,Or=Qn}Or+mi>=0!=!!Kn&&zn.reverse()}W.prototype.loadTile=function(zn,Kn){var Or=zn.uid,mi=zn.encoding,Er=zn.rawImageData,ti=P&&Er instanceof P?this.getImageData(Er):Er,di=new b.DEMData(Or,ti,mi);this.loaded=this.loaded||{},this.loaded[Or]=di,Kn(null,di)},W.prototype.getImageData=function(zn){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(zn.width,zn.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=zn.width,this.offscreenCanvas.height=zn.height,this.offscreenCanvasContext.drawImage(zn,0,0,zn.width,zn.height);var Kn=this.offscreenCanvasContext.getImageData(-1,-1,zn.width+2,zn.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new b.RGBAImage({width:Kn.width,height:Kn.height},Kn.data)},W.prototype.removeTile=function(zn){var Kn=this.loaded,Or=zn.uid;Kn&&Kn[Or]&&delete Kn[Or]};var ie=b.vectorTile.VectorTileFeature.prototype.toGeoJSON,he=function(zn){this._feature=zn,this.extent=b.EXTENT,this.type=zn.type,this.properties=zn.tags,"id"in zn&&!isNaN(zn.id)&&(this.id=parseInt(zn.id,10))};he.prototype.loadGeometry=function(){if(this._feature.type===1){for(var zn=[],Kn=0,Or=this._feature.geometry;Kn>31}function we(zn,Kn){for(var Or=zn.loadGeometry(),mi=zn.type,Er=0,ti=0,di=Or.length,rn=0;rn>1;(function Di(co,Qr,oi,Zi,Ar,tn){for(;Ar>Zi;){if(Ar-Zi>600){var Gn=Ar-Zi+1,Ei=oi-Zi+1,In=Math.log(Gn),Li=.5*Math.exp(2*In/3),nr=.5*Math.sqrt(In*Li*(Gn-Li)/Gn)*(Ei-Gn/2<0?-1:1);Di(co,Qr,oi,Math.max(Zi,Math.floor(oi-Ei*Li/Gn+nr)),Math.min(Ar,Math.floor(oi+(Gn-Ei)*Li/Gn+nr)),tn)}var wi=Qr[2*oi+tn],Mi=Zi,Fr=Ar;for(dt(co,Qr,Zi,oi),Qr[2*Ar+tn]>wi&&dt(co,Qr,Zi,Ar);Miwi;)Fr--}Qr[2*Zi+tn]===wi?dt(co,Qr,Zi,Fr):dt(co,Qr,++Fr,Ar),Fr<=oi&&(Zi=Fr+1),oi<=Fr&&(Ar=Fr-1)}})(ao,as,vi,pn,br,Jr%2),Xr(ao,as,Bt,pn,vi-1,Jr+1),Xr(ao,as,Bt,vi+1,br,Jr+1)}})(di,rn,mi,0,di.length-1,0)};vt.prototype.range=function(zn,Kn,Or,mi){return function(Er,ti,di,rn,Qn,Xr,ao){for(var as,Bt,pn=[0,Er.length-1,0],br=[];pn.length;){var Jr=pn.pop(),vi=pn.pop(),Di=pn.pop();if(vi-Di<=ao)for(var co=Di;co<=vi;co++)Bt=ti[2*co+1],(as=ti[2*co])>=di&&as<=Qn&&Bt>=rn&&Bt<=Xr&&br.push(Er[co]);else{var Qr=Math.floor((Di+vi)/2);Bt=ti[2*Qr+1],(as=ti[2*Qr])>=di&&as<=Qn&&Bt>=rn&&Bt<=Xr&&br.push(Er[Qr]);var oi=(Jr+1)%2;(Jr===0?di<=as:rn<=Bt)&&(pn.push(Di),pn.push(Qr-1),pn.push(oi)),(Jr===0?Qn>=as:Xr>=Bt)&&(pn.push(Qr+1),pn.push(vi),pn.push(oi))}}return br}(this.ids,this.coords,zn,Kn,Or,mi,this.nodeSize)},vt.prototype.within=function(zn,Kn,Or){return function(mi,Er,ti,di,rn,Qn){for(var Xr=[0,mi.length-1,0],ao=[],as=rn*rn;Xr.length;){var Bt=Xr.pop(),pn=Xr.pop(),br=Xr.pop();if(pn-br<=Qn)for(var Jr=br;Jr<=pn;Jr++)bt(Er[2*Jr],Er[2*Jr+1],ti,di)<=as&&ao.push(mi[Jr]);else{var vi=Math.floor((br+pn)/2),Di=Er[2*vi],co=Er[2*vi+1];bt(Di,co,ti,di)<=as&&ao.push(mi[vi]);var Qr=(Bt+1)%2;(Bt===0?ti-rn<=Di:di-rn<=co)&&(Xr.push(br),Xr.push(vi-1),Xr.push(Qr)),(Bt===0?ti+rn>=Di:di+rn>=co)&&(Xr.push(vi+1),Xr.push(pn),Xr.push(Qr))}}return ao}(this.ids,this.coords,zn,Kn,Or,this.nodeSize)};var yn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(zn){return zn}},Bn=function(zn){this.options=Bo(Object.create(yn),zn),this.trees=new Array(this.options.maxZoom+1)};function Lr(zn,Kn,Or,mi,Er){return{x:zn,y:Kn,zoom:1/0,id:Or,parentId:-1,numPoints:mi,properties:Er}}function ii(zn,Kn){var Or=zn.geometry.coordinates,mi=Or[1];return{x:To(Or[0]),y:_r(mi),zoom:1/0,index:Kn,parentId:-1}}function gi(zn){return{type:"Feature",id:zn.id,properties:no(zn),geometry:{type:"Point",coordinates:[(mi=zn.x,360*(mi-.5)),(Kn=zn.y,Or=(180-360*Kn)*Math.PI/180,360*Math.atan(Math.exp(Or))/Math.PI-90)]}};var Kn,Or,mi}function no(zn){var Kn=zn.numPoints,Or=Kn>=1e4?Math.round(Kn/1e3)+"k":Kn>=1e3?Math.round(Kn/100)/10+"k":Kn;return Bo(Bo({},zn.properties),{cluster:!0,cluster_id:zn.id,point_count:Kn,point_count_abbreviated:Or})}function To(zn){return zn/360+.5}function _r(zn){var Kn=Math.sin(zn*Math.PI/180),Or=.5-.25*Math.log((1+Kn)/(1-Kn))/Math.PI;return Or<0?0:Or>1?1:Or}function Bo(zn,Kn){for(var Or in Kn)zn[Or]=Kn[Or];return zn}function hs(zn){return zn.x}function ve(zn){return zn.y}function So(zn,Kn,Or,mi,Er,ti){var di=Er-Or,rn=ti-mi;if(di!==0||rn!==0){var Qn=((zn-Or)*di+(Kn-mi)*rn)/(di*di+rn*rn);Qn>1?(Or=Er,mi=ti):Qn>0&&(Or+=di*Qn,mi+=rn*Qn)}return(di=zn-Or)*di+(rn=Kn-mi)*rn}function ho(zn,Kn,Or,mi){var Er={id:zn===void 0?null:zn,type:Kn,geometry:Or,tags:mi,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(ti){var di=ti.geometry,rn=ti.type;if(rn==="Point"||rn==="MultiPoint"||rn==="LineString")go(ti,di);else if(rn==="Polygon"||rn==="MultiLineString")for(var Qn=0;Qn0&&(di+=mi?(Er*Xr-Qn*ti)/2:Math.sqrt(Math.pow(Qn-Er,2)+Math.pow(Xr-ti,2))),Er=Qn,ti=Xr}var ao=Kn.length-3;Kn[2]=1,function as(Bt,pn,br,Jr){for(var vi,Di=Jr,co=br-pn>>1,Qr=br-pn,oi=Bt[pn],Zi=Bt[pn+1],Ar=Bt[br],tn=Bt[br+1],Gn=pn+3;GnDi)vi=Gn,Di=Ei;else if(Ei===Di){var In=Math.abs(Gn-co);InJr&&(vi-pn>3&&as(Bt,pn,vi,Jr),Bt[vi+2]=Di,br-vi>3&&as(Bt,vi,br,Jr))}(Kn,0,ao,Or),Kn[ao+2]=1,Kn.size=Math.abs(di),Kn.start=0,Kn.end=Kn.size}function Ve(zn,Kn,Or,mi){for(var Er=0;Er1?1:Or}function Wt(zn,Kn,Or,mi,Er,ti,di,rn){if(mi/=Kn,ti>=(Or/=Kn)&&di=mi)return null;for(var Qn=[],Xr=0;Xr=Or&&br=mi)){var Jr=[];if(Bt==="Point"||Bt==="MultiPoint")sn(as,Jr,Or,mi,Er);else if(Bt==="LineString")Mt(as,Jr,Or,mi,Er,!1,rn.lineMetrics);else if(Bt==="MultiLineString")xt(as,Jr,Or,mi,Er,!1);else if(Bt==="Polygon")xt(as,Jr,Or,mi,Er,!0);else if(Bt==="MultiPolygon")for(var vi=0;vi=Or&&di<=mi&&(Kn.push(zn[ti]),Kn.push(zn[ti+1]),Kn.push(zn[ti+2]))}}function Mt(zn,Kn,Or,mi,Er,ti,di){for(var rn,Qn,Xr=Tt(zn),ao=Er===0?Vn:en,as=zn.start,Bt=0;BtOr&&(Qn=ao(Xr,pn,br,vi,Di,Or),di&&(Xr.start=as+rn*Qn)):co>mi?Qr=Or&&(Qn=ao(Xr,pn,br,vi,Di,Or),oi=!0),Qr>mi&&co<=mi&&(Qn=ao(Xr,pn,br,vi,Di,mi),oi=!0),!ti&&oi&&(di&&(Xr.end=as+rn*Qn),Kn.push(Xr),Xr=Tt(zn)),di&&(as+=rn)}var Zi=zn.length-3;pn=zn[Zi],br=zn[Zi+1],Jr=zn[Zi+2],(co=Er===0?pn:br)>=Or&&co<=mi&&Ht(Xr,pn,br,Jr),Zi=Xr.length-3,ti&&Zi>=3&&(Xr[Zi]!==Xr[0]||Xr[Zi+1]!==Xr[1])&&Ht(Xr,Xr[0],Xr[1],Xr[2]),Xr.length&&Kn.push(Xr)}function Tt(zn){var Kn=[];return Kn.size=zn.size,Kn.start=zn.start,Kn.end=zn.end,Kn}function xt(zn,Kn,Or,mi,Er,ti){for(var di=0;didi.maxX&&(di.maxX=ao),as>di.maxY&&(di.maxY=as)}return di}function Qo(zn,Kn,Or,mi){var Er=Kn.geometry,ti=Kn.type,di=[];if(ti==="Point"||ti==="MultiPoint")for(var rn=0;rn0&&Kn.size<(Er?di:mi))Or.numPoints+=Kn.length/3;else{for(var rn=[],Qn=0;Qndi)&&(Or.numSimplified++,rn.push(Kn[Qn]),rn.push(Kn[Qn+1])),Or.numPoints++;Er&&function(Xr,ao){for(var as=0,Bt=0,pn=Xr.length,br=pn-2;Bt0===ao)for(Bt=0,pn=Xr.length;Bt24)throw new Error("maxZoom should be in the 0-24 range");if(Kn.promoteId&&Kn.generateId)throw new Error("promoteId and generateId cannot be used together.");var mi=function(Er,ti){var di=[];if(Er.type==="FeatureCollection")for(var rn=0;rn=mi;Xr--){var ao=+Date.now();rn=this._cluster(rn,Xr),this.trees[Xr]=new vt(rn,hs,ve,ti,Float32Array),Or&&console.log("z%d: %d clusters in %dms",Xr,rn.length,+Date.now()-ao)}return Or&&console.timeEnd("total time"),this},Bn.prototype.getClusters=function(zn,Kn){var Or=((zn[0]+180)%360+360)%360-180,mi=Math.max(-90,Math.min(90,zn[1])),Er=zn[2]===180?180:((zn[2]+180)%360+360)%360-180,ti=Math.max(-90,Math.min(90,zn[3]));if(zn[2]-zn[0]>=360)Or=-180,Er=180;else if(Or>Er){var di=this.getClusters([Or,mi,180,ti],Kn),rn=this.getClusters([-180,mi,Er,ti],Kn);return di.concat(rn)}for(var Qn=this.trees[this._limitZoom(Kn)],Xr=[],ao=0,as=Qn.range(To(Or),_r(ti),To(Er),_r(mi));aoKn&&(Bt+=Jr.numPoints||1)}if(Bt>=ti){for(var vi=Qn.x*as,Di=Qn.y*as,co=Er&&as>1?this._map(Qn,!0):null,Qr=(rn<<5)+(Kn+1)+this.points.length,oi=0,Zi=ao;oi1)for(var Gn=0,Ei=ao;Gn>5},Bn.prototype._getOriginZoom=function(zn){return(zn-this.points.length)%32},Bn.prototype._map=function(zn,Kn){if(zn.numPoints)return Kn?Bo({},zn.properties):zn.properties;var Or=this.points[zn.index].properties,mi=this.options.map(Or);return Kn&&mi===Or?Bo({},mi):mi},Vr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Vr.prototype.splitTile=function(zn,Kn,Or,mi,Er,ti,di){for(var rn=[zn,Kn,Or,mi],Qn=this.options,Xr=Qn.debug;rn.length;){mi=rn.pop(),Or=rn.pop(),Kn=rn.pop(),zn=rn.pop();var ao=1<1&&console.time("creation"),Bt=this.tiles[as]=uo(zn,Kn,Or,mi,Qn),this.tileCoords.push({z:Kn,x:Or,y:mi}),Xr)){Xr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Kn,Or,mi,Bt.numFeatures,Bt.numPoints,Bt.numSimplified),console.timeEnd("creation"));var pn="z"+Kn;this.stats[pn]=(this.stats[pn]||0)+1,this.total++}if(Bt.source=zn,Er){if(Kn===Qn.maxZoom||Kn===Er)continue;var br=1<1&&console.time("clipping");var Jr,vi,Di,co,Qr,oi,Zi=.5*Qn.buffer/Qn.extent,Ar=.5-Zi,tn=.5+Zi,Gn=1+Zi;Jr=vi=Di=co=null,Qr=Wt(zn,ao,Or-Zi,Or+tn,0,Bt.minX,Bt.maxX,Qn),oi=Wt(zn,ao,Or+Ar,Or+Gn,0,Bt.minX,Bt.maxX,Qn),zn=null,Qr&&(Jr=Wt(Qr,ao,mi-Zi,mi+tn,1,Bt.minY,Bt.maxY,Qn),vi=Wt(Qr,ao,mi+Ar,mi+Gn,1,Bt.minY,Bt.maxY,Qn),Qr=null),oi&&(Di=Wt(oi,ao,mi-Zi,mi+tn,1,Bt.minY,Bt.maxY,Qn),co=Wt(oi,ao,mi+Ar,mi+Gn,1,Bt.minY,Bt.maxY,Qn),oi=null),Xr>1&&console.timeEnd("clipping"),rn.push(Jr||[],Kn+1,2*Or,2*mi),rn.push(vi||[],Kn+1,2*Or,2*mi+1),rn.push(Di||[],Kn+1,2*Or+1,2*mi),rn.push(co||[],Kn+1,2*Or+1,2*mi+1)}}},Vr.prototype.getTile=function(zn,Kn,Or){var mi=this.options,Er=mi.extent,ti=mi.debug;if(zn<0||zn>24)return null;var di=1<1&&console.log("drilling down to z%d-%d-%d",zn,Kn,Or);for(var Qn,Xr=zn,ao=Kn,as=Or;!Qn&&Xr>0;)Xr--,ao=Math.floor(ao/2),as=Math.floor(as/2),Qn=this.tiles[qr(Xr,ao,as)];return Qn&&Qn.source?(ti>1&&console.log("found parent tile z%d-%d-%d",Xr,ao,as),ti>1&&console.time("drilling down"),this.splitTile(Qn.source,Xr,ao,as,zn,Kn,Or),ti>1&&console.timeEnd("drilling down"),this.tiles[rn]?ri(this.tiles[rn],Er):null):null};var xo=function(zn){function Kn(Or,mi,Er,ti){zn.call(this,Or,mi,Er,Ui),ti&&(this.loadGeoJSON=ti)}return zn&&(Kn.__proto__=zn),(Kn.prototype=Object.create(zn&&zn.prototype)).constructor=Kn,Kn.prototype.loadData=function(Or,mi){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=mi,this._pendingLoadDataParams=Or,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Kn.prototype._loadData=function(){var Or=this;if(this._pendingCallback&&this._pendingLoadDataParams){var mi=this._pendingCallback,Er=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var ti=!!(Er&&Er.request&&Er.request.collectResourceTiming)&&new b.RequestPerformance(Er.request);this.loadGeoJSON(Er,function(di,rn){if(di||!rn)return mi(di);if(typeof rn!="object")return mi(new Error("Input data given to '"+Er.source+"' is not a valid GeoJSON object."));(function Bt(pn,br){var Jr,vi=pn&&pn.type;if(vi==="FeatureCollection")for(Jr=0;Jr=0?0:X.button},k.remove=function(X){X.parentNode&&X.parentNode.removeChild(X)};var q=function(X){function re(){X.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new b.RGBAImage({width:1,height:1}),this.dirty=!0}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.isLoaded=function(){return this.loaded},re.prototype.setLoaded=function(Q){if(this.loaded!==Q&&(this.loaded=Q,Q)){for(var le=0,it=this.requestors;le=0?1.2:1))}function ke(X,re,Q,le,it,Rt,nn){for(var Yn=0;Yn65535)ei(new Error("glyphs > 65535 not supported"));else if(ts.ranges[ua])ei(null,{stack:gr,id:ss,glyph:Is});else{var na=ts.requests[ua];na||(na=ts.requests[ua]=[],Be.loadGlyphRange(gr,ua,Q.url,Q.requestManager,function(Go,Gs){if(Gs){for(var Va in Gs)Q._doesCharSupportLocalGlyph(+Va)||(ts.glyphs[+Va]=Gs[+Va]);ts.ranges[ua]=!0}for(var _l=0,nu=na;_l1&&(Yn=X[++nn]);var gr=Math.abs(ei-Yn.left),ss=Math.abs(ei-Yn.right),ts=Math.min(gr,ss),Is=void 0,ua=it/Q*(le+1);if(Yn.isDash){var na=le-Math.abs(ua);Is=Math.sqrt(ts*ts+na*na)}else Is=le-Math.sqrt(ts*ts+ua*ua);this.data[Rt+ei]=Math.max(0,Math.min(255,Is+128))}},_e.prototype.addRegularDash=function(X){for(var re=X.length-1;re>=0;--re){var Q=X[re],le=X[re+1];Q.zeroLength?X.splice(re,1):le&&le.isDash===Q.isDash&&(le.left=Q.left,X.splice(re,1))}var it=X[0],Rt=X[X.length-1];it.isDash===Rt.isDash&&(it.left=Rt.left-this.width,Rt.right=it.right+this.width);for(var nn=this.width*this.nextRow,Yn=0,ei=X[Yn],gr=0;gr1&&(ei=X[++Yn]);var ss=Math.abs(gr-ei.left),ts=Math.abs(gr-ei.right),Is=Math.min(ss,ts);this.data[nn+gr]=Math.max(0,Math.min(255,(ei.isDash?Is:-Is)+128))}},_e.prototype.addDash=function(X,re){var Q=re?7:0,le=2*Q+1;if(this.nextRow+le>this.height)return b.warnOnce("LineAtlas out of space"),null;for(var it=0,Rt=0;Rt=Q&&X.x=le&&X.y0&&(gr[new b.OverscaledTileID(Q.overscaledZ,nn,le.z,Rt,le.y-1).key]={backfilled:!1},gr[new b.OverscaledTileID(Q.overscaledZ,Q.wrap,le.z,le.x,le.y-1).key]={backfilled:!1},gr[new b.OverscaledTileID(Q.overscaledZ,ei,le.z,Yn,le.y-1).key]={backfilled:!1}),le.y+10&&(it.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new b.Event("data",it))}})},re.prototype.onAdd=function(Q){this.map=Q,this.load()},re.prototype.setData=function(Q){var le=this;return this._data=Q,this.fire(new b.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(it){if(it)le.fire(new b.ErrorEvent(it));else{var Rt={dataType:"source",sourceDataType:"content"};le._collectResourceTiming&&le._resourceTiming&&le._resourceTiming.length>0&&(Rt.resourceTiming=le._resourceTiming,le._resourceTiming=[]),le.fire(new b.Event("data",Rt))}}),this},re.prototype.getClusterExpansionZoom=function(Q,le){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Q,source:this.id},le),this},re.prototype.getClusterChildren=function(Q,le){return this.actor.send("geojson.getClusterChildren",{clusterId:Q,source:this.id},le),this},re.prototype.getClusterLeaves=function(Q,le,it,Rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Q,limit:le,offset:it},Rt),this},re.prototype._updateWorkerData=function(Q){var le=this;this._loaded=!1;var it=b.extend({},this.workerOptions),Rt=this._data;typeof Rt=="string"?(it.request=this.map._requestManager.transformRequest(b.browser.resolveURL(Rt),b.ResourceType.Source),it.request.collectResourceTiming=this._collectResourceTiming):it.data=JSON.stringify(Rt),this.actor.send(this.type+".loadData",it,function(nn,Yn){le._removed||Yn&&Yn.abandoned||(le._loaded=!0,Yn&&Yn.resourceTiming&&Yn.resourceTiming[le.id]&&(le._resourceTiming=Yn.resourceTiming[le.id].slice(0)),le.actor.send(le.type+".coalesce",{source:it.source},null),Q(nn))})},re.prototype.loaded=function(){return this._loaded},re.prototype.loadTile=function(Q,le){var it=this,Rt=Q.actor?"reloadTile":"loadTile";Q.actor=this.actor,Q.request=this.actor.send(Rt,{type:this.type,uid:Q.uid,tileID:Q.tileID,zoom:Q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:b.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(nn,Yn){return delete Q.request,Q.unloadVectorData(),Q.aborted?le(null):nn?le(nn):(Q.loadVectorData(Yn,it.map.painter,Rt==="reloadTile"),le(null))})},re.prototype.abortTile=function(Q){Q.request&&(Q.request.cancel(),delete Q.request),Q.aborted=!0},re.prototype.unloadTile=function(Q){Q.unloadVectorData(),this.actor.send("removeTile",{uid:Q.uid,type:this.type,source:this.id})},re.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},re.prototype.serialize=function(){return b.extend({},this._options,{type:this.type,data:this._data})},re.prototype.hasTransition=function(){return!1},re}(b.Evented),He=b.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),bt=function(X){function re(Q,le,it,Rt){X.call(this),this.id=Q,this.dispatcher=it,this.coordinates=le.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Rt),this.options=le}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.load=function(Q,le){var it=this;this._loaded=!1,this.fire(new b.Event("dataloading",{dataType:"source"})),this.url=this.options.url,b.getImage(this.map._requestManager.transformRequest(this.url,b.ResourceType.Image),function(Rt,nn){it._loaded=!0,Rt?it.fire(new b.ErrorEvent(Rt)):nn&&(it.image=nn,Q&&(it.coordinates=Q),le&&le(),it._finishLoading())})},re.prototype.loaded=function(){return this._loaded},re.prototype.updateImage=function(Q){var le=this;return this.image&&Q.url?(this.options.url=Q.url,this.load(Q.coordinates,function(){le.texture=null}),this):this},re.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new b.Event("data",{dataType:"source",sourceDataType:"metadata"})))},re.prototype.onAdd=function(Q){this.map=Q,this.load()},re.prototype.setCoordinates=function(Q){var le=this;this.coordinates=Q;var it=Q.map(b.MercatorCoordinate.fromLngLat);this.tileID=function(nn){for(var Yn=1/0,ei=1/0,gr=-1/0,ss=-1/0,ts=0,Is=nn;tsle.end(0)?this.fire(new b.ErrorEvent(new b.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+le.start(0)+" and "+le.end(0)+"-second mark."))):this.video.currentTime=Q}},re.prototype.getVideo=function(){return this.video},re.prototype.onAdd=function(Q){this.map||(this.map=Q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},re.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var Q=this.map.painter.context,le=Q.gl;for(var it in this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,He.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE),le.texSubImage2D(le.TEXTURE_2D,0,0,0,le.RGBA,le.UNSIGNED_BYTE,this.video)):(this.texture=new b.Texture(Q,this.video,le.RGBA),this.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE)),this.tiles){var Rt=this.tiles[it];Rt.state!=="loaded"&&(Rt.state="loaded",Rt.texture=this.texture)}}},re.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},re.prototype.hasTransition=function(){return this.video&&!this.video.paused},re}(bt),$t=function(X){function re(Q,le,it,Rt){X.call(this,Q,le,it,Rt),le.coordinates?Array.isArray(le.coordinates)&&le.coordinates.length===4&&!le.coordinates.some(function(nn){return!Array.isArray(nn)||nn.length!==2||nn.some(function(Yn){return typeof Yn!="number"})})||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'missing required property "coordinates"'))),le.animate&&typeof le.animate!="boolean"&&this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'optional "animate" property must be a boolean value'))),le.canvas?typeof le.canvas=="string"||le.canvas instanceof b.window.HTMLCanvasElement||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'missing required property "canvas"'))),this.options=le,this.animate=le.animate===void 0||le.animate}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof b.window.HTMLCanvasElement?this.options.canvas:b.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new b.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},re.prototype.getCanvas=function(){return this.canvas},re.prototype.onAdd=function(Q){this.map=Q,this.load(),this.canvas&&this.animate&&this.play()},re.prototype.onRemove=function(){this.pause()},re.prototype.prepare=function(){var Q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,Q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,Q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var le=this.map.painter.context,it=le.gl;for(var Rt in this.boundsBuffer||(this.boundsBuffer=le.createVertexBuffer(this._boundsArray,He.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new b.Texture(le,this.canvas,it.RGBA,{premultiply:!0}),this.tiles){var nn=this.tiles[Rt];nn.state!=="loaded"&&(nn.state="loaded",nn.texture=this.texture)}}},re.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},re.prototype.hasTransition=function(){return this._playing},re.prototype._hasInvalidDimensions=function(){for(var Q=0,le=[this.canvas.width,this.canvas.height];Qthis.max){var nn=this._getAndRemoveByKey(this.order[0]);nn&&this.onRemove(nn)}return this},ii.prototype.has=function(X){return X.wrapped().key in this.data},ii.prototype.getAndRemove=function(X){return this.has(X)?this._getAndRemoveByKey(X.wrapped().key):null},ii.prototype._getAndRemoveByKey=function(X){var re=this.data[X].shift();return re.timeout&&clearTimeout(re.timeout),this.data[X].length===0&&delete this.data[X],this.order.splice(this.order.indexOf(X),1),re.value},ii.prototype.getByKey=function(X){var re=this.data[X];return re?re[0].value:null},ii.prototype.get=function(X){return this.has(X)?this.data[X.wrapped().key][0].value:null},ii.prototype.remove=function(X,re){if(!this.has(X))return this;var Q=X.wrapped().key,le=re===void 0?0:this.data[Q].indexOf(re),it=this.data[Q][le];return this.data[Q].splice(le,1),it.timeout&&clearTimeout(it.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(it.value),this.order.splice(this.order.indexOf(Q),1),this},ii.prototype.setMaxSize=function(X){for(this.max=X;this.order.length>this.max;){var re=this._getAndRemoveByKey(this.order[0]);re&&this.onRemove(re)}return this},ii.prototype.filter=function(X){var re=[];for(var Q in this.data)for(var le=0,it=this.data[Q];le1||(Math.abs(ss)>1&&(Math.abs(ss+Is)===1?ss+=Is:Math.abs(ss-Is)===1&&(ss-=Is)),gr.dem&&ei.dem&&(ei.dem.backfillBorder(gr.dem,ss,ts),ei.neighboringTiles&&ei.neighboringTiles[ua]&&(ei.neighboringTiles[ua].backfilled=!0)))}},re.prototype.getTile=function(Q){return this.getTileByID(Q.key)},re.prototype.getTileByID=function(Q){return this._tiles[Q]},re.prototype._retainLoadedChildren=function(Q,le,it,Rt){for(var nn in this._tiles){var Yn=this._tiles[nn];if(!(Rt[nn]||!Yn.hasData()||Yn.tileID.overscaledZ<=le||Yn.tileID.overscaledZ>it)){for(var ei=Yn.tileID;Yn&&Yn.tileID.overscaledZ>le+1;){var gr=Yn.tileID.scaledTo(Yn.tileID.overscaledZ-1);(Yn=this._tiles[gr.key])&&Yn.hasData()&&(ei=gr)}for(var ss=ei;ss.overscaledZ>le;)if(Q[(ss=ss.scaledTo(ss.overscaledZ-1)).key]){Rt[ei.key]=ei;break}}}},re.prototype.findLoadedParent=function(Q,le){if(Q.key in this._loadedParentTiles){var it=this._loadedParentTiles[Q.key];return it&&it.tileID.overscaledZ>=le?it:null}for(var Rt=Q.overscaledZ-1;Rt>=le;Rt--){var nn=Q.scaledTo(Rt),Yn=this._getLoadedTile(nn);if(Yn)return Yn}},re.prototype._getLoadedTile=function(Q){var le=this._tiles[Q.key];return le&&le.hasData()?le:this._cache.getByKey(Q.wrapped().key)},re.prototype.updateCacheSize=function(Q){var le=Math.ceil(Q.width/this._source.tileSize)+1,it=Math.ceil(Q.height/this._source.tileSize)+1,Rt=Math.floor(le*it*5),nn=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Rt):Rt;this._cache.setMaxSize(nn)},re.prototype.handleWrapJump=function(Q){var le=Math.round((Q-(this._prevLng===void 0?Q:this._prevLng))/360);if(this._prevLng=Q,le){var it={};for(var Rt in this._tiles){var nn=this._tiles[Rt];nn.tileID=nn.tileID.unwrapTo(nn.tileID.wrap+le),it[nn.tileID.key]=nn}for(var Yn in this._tiles=it,this._timers)clearTimeout(this._timers[Yn]),delete this._timers[Yn];for(var ei in this._tiles)this._setTileReloadTimer(ei,this._tiles[ei])}},re.prototype.update=function(Q){var le=this;if(this.transform=Q,this._sourceLoaded&&!this._paused){var it;this.updateCacheSize(Q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?it=Q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(dc){return new b.OverscaledTileID(dc.canonical.z,dc.wrap,dc.canonical.z,dc.canonical.x,dc.canonical.y)}):(it=Q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(it=it.filter(function(dc){return le._source.hasTile(dc)}))):it=[];var Rt=Q.coveringZoomLevel(this._source),nn=Math.max(Rt-re.maxOverzooming,this._source.minzoom),Yn=Math.max(Rt+re.maxUnderzooming,this._source.minzoom),ei=this._updateRetainedTiles(it,Rt);if(ao(this._source.type)){for(var gr={},ss={},ts=0,Is=Object.keys(ei);tsthis._source.maxzoom){var Va=Go.children(this._source.maxzoom)[0],_l=this.getTile(Va);if(_l&&_l.hasData()){it[Va.key]=Va;continue}}else{var nu=Go.children(this._source.maxzoom);if(it[nu[0].key]&&it[nu[1].key]&&it[nu[2].key]&&it[nu[3].key])continue}for(var xu=Gs.wasRequested(),Tu=Go.overscaledZ-1;Tu>=nn;--Tu){var Cu=Go.scaledTo(Tu);if(Rt[Cu.key]||(Rt[Cu.key]=!0,!(Gs=this.getTile(Cu))&&xu&&(Gs=this._addTile(Cu)),Gs&&(it[Cu.key]=Cu,xu=Gs.wasRequested(),Gs.hasData())))break}}}return it},re.prototype._updateLoadedParentTileCache=function(){for(var Q in this._loadedParentTiles={},this._tiles){for(var le=[],it=void 0,Rt=this._tiles[Q].tileID;Rt.overscaledZ>0;){if(Rt.key in this._loadedParentTiles){it=this._loadedParentTiles[Rt.key];break}le.push(Rt.key);var nn=Rt.scaledTo(Rt.overscaledZ-1);if(it=this._getLoadedTile(nn))break;Rt=nn}for(var Yn=0,ei=le;Yn0||(le.hasData()&&le.state!=="reloading"?this._cache.add(le.tileID,le,le.getExpiryTimeout()):(le.aborted=!0,this._abortTile(le),this._unloadTile(le))))},re.prototype.clearTiles=function(){for(var Q in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Q);this._cache.reset()},re.prototype.tilesIn=function(Q,le,it){var Rt=this,nn=[],Yn=this.transform;if(!Yn)return nn;for(var ei=it?Yn.getCameraQueryGeometry(Q):Q,gr=Q.map(function(Tu){return Yn.pointCoordinate(Tu)}),ss=ei.map(function(Tu){return Yn.pointCoordinate(Tu)}),ts=this.getIds(),Is=1/0,ua=1/0,na=-1/0,Go=-1/0,Gs=0,Va=ss;Gs=0&&fd[1].y+wc>=0){var Td=gr.map(function(Qd){return dc.getTilePoint(Qd)}),dh=ss.map(function(Qd){return dc.getTilePoint(Qd)});nn.push({tile:Cu,tileID:dc,queryGeometry:Td,cameraQueryGeometry:dh,scale:Zc})}}},xu=0;xu=b.browser.now())return!0}return!1},re.prototype.setFeatureState=function(Q,le,it){this._state.updateState(Q=Q||"_geojsonTileLayer",le,it)},re.prototype.removeFeatureState=function(Q,le,it){this._state.removeFeatureState(Q=Q||"_geojsonTileLayer",le,it)},re.prototype.getFeatureState=function(Q,le){return this._state.getState(Q=Q||"_geojsonTileLayer",le)},re.prototype.setDependencies=function(Q,le,it){var Rt=this._tiles[Q];Rt&&Rt.setDependencies(le,it)},re.prototype.reloadTilesForDependencies=function(Q,le){for(var it in this._tiles)this._tiles[it].hasDependency(Q,le)&&this._reloadTile(it,"reloading");this._cache.filter(function(Rt){return!Rt.hasDependency(Q,le)})},re}(b.Evented);function Xr(X,re){var Q=Math.abs(2*X.wrap)-+(X.wrap<0),le=Math.abs(2*re.wrap)-+(re.wrap<0);return X.overscaledZ-re.overscaledZ||le-Q||re.canonical.y-X.canonical.y||re.canonical.x-X.canonical.x}function ao(X){return X==="raster"||X==="image"||X==="video"}function as(){return new b.window.Worker(Rd.workerUrl)}Qn.maxOverzooming=10,Qn.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",pn=function(){this.active={}};pn.prototype.acquire=function(X){if(!this.workers)for(this.workers=[];this.workers.length0?(le-Rt)/nn:0;return this.points[it].mult(1-Yn).add(this.points[re].mult(Yn))};var nr=function(X,re,Q){var le=this.boxCells=[],it=this.circleCells=[];this.xCellCount=Math.ceil(X/Q),this.yCellCount=Math.ceil(re/Q);for(var Rt=0;Rt=-re[0]&&Q<=re[0]&&le>=-re[1]&&le<=re[1]}function ya(X,re,Q,le,it,Rt,nn,Yn){var ei=le?X.textSizeData:X.iconSizeData,gr=b.evaluateSizeForZoom(ei,Q.transform.zoom),ss=[256/Q.width*2+1,256/Q.height*2+1],ts=le?X.text.dynamicLayoutVertexArray:X.icon.dynamicLayoutVertexArray;ts.clear();for(var Is=X.lineVertexArray,ua=le?X.text.placedSymbolArray:X.icon.placedSymbolArray,na=Q.transform.width/Q.transform.height,Go=!1,Gs=0;GsMath.abs(Q.x-re.x)*le?{useVertical:!0}:(X===b.WritingMode.vertical?re.yQ.x)?{needsFlipping:!0}:null}function Ua(X,re,Q,le,it,Rt,nn,Yn,ei,gr,ss,ts,Is,ua){var na,Go=re/24,Gs=X.lineOffsetX*Go,Va=X.lineOffsetY*Go;if(X.numGlyphs>1){var _l=X.glyphStartIndex+X.numGlyphs,nu=X.lineStartIndex,xu=X.lineStartIndex+X.lineLength,Tu=ha(Go,Yn,Gs,Va,Q,ss,ts,X,ei,Rt,Is);if(!Tu)return{notEnoughRoom:!0};var Cu=Fr(Tu.first.point,nn).point,dc=Fr(Tu.last.point,nn).point;if(le&&!Q){var Zc=Ws(X.writingMode,Cu,dc,ua);if(Zc)return Zc}na=[Tu.first];for(var wc=X.glyphStartIndex+1;wc<_l-1;wc++)na.push(dl(Go*Yn.getoffsetX(wc),Gs,Va,Q,ss,ts,X.segment,nu,xu,ei,Rt,Is));na.push(Tu.last)}else{if(le&&!Q){var fd=Fr(ts,it).point,Td=X.lineStartIndex+X.segment+1,dh=new b.Point(ei.getx(Td),ei.gety(Td)),Qd=Fr(dh,it),Xh=Qd.signedDistanceFromCamera>0?Qd.point:Ao(ts,dh,fd,1,it),Nc=Ws(X.writingMode,fd,Xh,ua);if(Nc)return Nc}var Hc=dl(Go*Yn.getoffsetX(X.glyphStartIndex),Gs,Va,Q,ss,ts,X.segment,X.lineStartIndex,X.lineStartIndex+X.lineLength,ei,Rt,Is);if(!Hc)return{notEnoughRoom:!0};na=[Hc]}for(var tf=0,hh=na;tf0?1:-1,na=0;le&&(ua*=-1,na=Math.PI),ua<0&&(na+=Math.PI);for(var Go=ua>0?Yn+nn:Yn+nn+1,Gs=it,Va=it,_l=0,nu=0,xu=Math.abs(Is),Tu=[];_l+nu<=xu;){if((Go+=ua)=ei)return null;if(Va=Gs,Tu.push(Gs),(Gs=ts[Go])===void 0){var Cu=new b.Point(gr.getx(Go),gr.gety(Go)),dc=Fr(Cu,ss);if(dc.signedDistanceFromCamera>0)Gs=ts[Go]=dc.point;else{var Zc=Go-ua;Gs=Ao(_l===0?Rt:new b.Point(gr.getx(Zc),gr.gety(Zc)),Cu,Va,xu-_l+1,ss)}}_l+=nu,nu=Va.dist(Gs)}var wc=(xu-_l)/nu,fd=Gs.sub(Va),Td=fd.mult(wc)._add(Va);Td._add(fd._unit()._perp()._mult(Q*ua));var dh=na+Math.atan2(Gs.y-Va.y,Gs.x-Va.x);return Tu.push(Td),{point:Td,angle:dh,path:Tu}}nr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},nr.prototype.insert=function(X,re,Q,le,it){this._forEachCell(re,Q,le,it,this._insertBoxCell,this.boxUid++),this.boxKeys.push(X),this.bboxes.push(re),this.bboxes.push(Q),this.bboxes.push(le),this.bboxes.push(it)},nr.prototype.insertCircle=function(X,re,Q,le){this._forEachCell(re-le,Q-le,re+le,Q+le,this._insertCircleCell,this.circleUid++),this.circleKeys.push(X),this.circles.push(re),this.circles.push(Q),this.circles.push(le)},nr.prototype._insertBoxCell=function(X,re,Q,le,it,Rt){this.boxCells[it].push(Rt)},nr.prototype._insertCircleCell=function(X,re,Q,le,it,Rt){this.circleCells[it].push(Rt)},nr.prototype._query=function(X,re,Q,le,it,Rt){if(Q<0||X>this.width||le<0||re>this.height)return!it&&[];var nn=[];if(X<=0&&re<=0&&this.width<=Q&&this.height<=le){if(it)return!0;for(var Yn=0;Yn0:nn},nr.prototype._queryCircle=function(X,re,Q,le,it){var Rt=X-Q,nn=X+Q,Yn=re-Q,ei=re+Q;if(nn<0||Rt>this.width||ei<0||Yn>this.height)return!le&&[];var gr=[];return this._forEachCell(Rt,Yn,nn,ei,this._queryCellCircle,gr,{hitTest:le,circle:{x:X,y:re,radius:Q},seenUids:{box:{},circle:{}}},it),le?gr.length>0:gr},nr.prototype.query=function(X,re,Q,le,it){return this._query(X,re,Q,le,!1,it)},nr.prototype.hitTest=function(X,re,Q,le,it){return this._query(X,re,Q,le,!0,it)},nr.prototype.hitTestCircle=function(X,re,Q,le){return this._queryCircle(X,re,Q,!0,le)},nr.prototype._queryCell=function(X,re,Q,le,it,Rt,nn,Yn){var ei=nn.seenUids,gr=this.boxCells[it];if(gr!==null)for(var ss=this.bboxes,ts=0,Is=gr;ts=ss[na+0]&&le>=ss[na+1]&&(!Yn||Yn(this.boxKeys[ua]))){if(nn.hitTest)return Rt.push(!0),!0;Rt.push({key:this.boxKeys[ua],x1:ss[na],y1:ss[na+1],x2:ss[na+2],y2:ss[na+3]})}}}var Go=this.circleCells[it];if(Go!==null)for(var Gs=this.circles,Va=0,_l=Go;Va<_l.length;Va+=1){var nu=_l[Va];if(!ei.circle[nu]){ei.circle[nu]=!0;var xu=3*nu;if(this._circleAndRectCollide(Gs[xu],Gs[xu+1],Gs[xu+2],X,re,Q,le)&&(!Yn||Yn(this.circleKeys[nu]))){if(nn.hitTest)return Rt.push(!0),!0;var Tu=Gs[xu],Cu=Gs[xu+1],dc=Gs[xu+2];Rt.push({key:this.circleKeys[nu],x1:Tu-dc,y1:Cu-dc,x2:Tu+dc,y2:Cu+dc})}}}},nr.prototype._queryCellCircle=function(X,re,Q,le,it,Rt,nn,Yn){var ei=nn.circle,gr=nn.seenUids,ss=this.boxCells[it];if(ss!==null)for(var ts=this.bboxes,Is=0,ua=ss;Isnn*nn+Yn*Yn},nr.prototype._circleAndRectCollide=function(X,re,Q,le,it,Rt,nn){var Yn=(Rt-le)/2,ei=Math.abs(X-(le+Yn));if(ei>Yn+Q)return!1;var gr=(nn-it)/2,ss=Math.abs(re-(it+gr));if(ss>gr+Q)return!1;if(ei<=Yn||ss<=gr)return!0;var ts=ei-Yn,Is=ss-gr;return ts*ts+Is*Is<=Q*Q};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function er(X,re){for(var Q=0;Q=1;Xh--)Qd.push(Td.path[Xh]);for(var Nc=1;Nc0){for(var rh=Qd[0].clone(),zh=Qd[0].clone(),bh=1;bh=Zc.x&&zh.x<=wc.x&&rh.y>=Zc.y&&zh.y<=wc.y?[Qd]:zh.xwc.x||zh.ywc.y?[]:b.clipLine([Qd],Zc.x,Zc.y,wc.x,wc.y)}for(var Mh=0,Cg=hh;Mh=this.screenRightBoundary||le<100||re>this.screenBottomBoundary},pr.prototype.isInsideGrid=function(X,re,Q,le){return Q>=0&&X=0&&re0?(this.prevPlacement&&this.prevPlacement.variableOffsets[ts.crossTileID]&&this.prevPlacement.placements[ts.crossTileID]&&this.prevPlacement.placements[ts.crossTileID].text&&(Go=this.prevPlacement.variableOffsets[ts.crossTileID].anchor),this.variableOffsets[ts.crossTileID]={textOffset:Gs,width:Q,height:le,anchor:X,textBoxScale:it,prevAnchor:Go},this.markUsedJustification(Is,X,ts,ua),Is.allowVerticalPlacement&&(this.markUsedOrientation(Is,ua,ts),this.placedOrientations[ts.crossTileID]=ua),{shift:Va,placedGlyphBoxes:_l}):void 0},En.prototype.placeLayerBucketPart=function(X,re,Q){var le=this,it=X.parameters,Rt=it.bucket,nn=it.layout,Yn=it.posMatrix,ei=it.textLabelPlaneMatrix,gr=it.labelToScreenMatrix,ss=it.textPixelRatio,ts=it.holdingForFade,Is=it.collisionBoxArray,ua=it.partiallyEvaluatedTextSize,na=it.collisionGroup,Go=nn.get("text-optional"),Gs=nn.get("icon-optional"),Va=nn.get("text-allow-overlap"),_l=nn.get("icon-allow-overlap"),nu=nn.get("text-rotation-alignment")==="map",xu=nn.get("text-pitch-alignment")==="map",Tu=nn.get("icon-text-fit")!=="none",Cu=nn.get("symbol-z-order")==="viewport-y",dc=Va&&(_l||!Rt.hasIconData()||Gs),Zc=_l&&(Va||!Rt.hasTextData()||Go);!Rt.collisionArrays&&Is&&Rt.deserializeCollisionBoxes(Is);var wc=function(Nc,Hc){if(!re[Nc.crossTileID])if(ts)le.placements[Nc.crossTileID]=new Ts(!1,!1,!1);else{var tf,hh=!1,rh=!1,zh=!0,bh=null,Mh={box:null,offscreen:null},Cg={box:null,offscreen:null},jp=null,vp=null,Gc=0,Oc=0,ad=0;Hc.textFeatureIndex?Gc=Hc.textFeatureIndex:Nc.useRuntimeCollisionCircles&&(Gc=Nc.featureIndex),Hc.verticalTextFeatureIndex&&(Oc=Hc.verticalTextFeatureIndex);var yd=Hc.textBox;if(yd){var Bd=function(df){var af=b.WritingMode.horizontal;if(Rt.allowVerticalPlacement&&!df&&le.prevPlacement){var Wg=le.prevPlacement.placedOrientations[Nc.crossTileID];Wg&&(le.placedOrientations[Nc.crossTileID]=Wg,le.markUsedOrientation(Rt,af=Wg,Nc))}return af},Dc=function(df,af){if(Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&Hc.verticalTextBox)for(var Wg=0,lp=Rt.writingModes;Wg0&&(xd=xd.filter(function(df){return df!==ld.anchor})).unshift(ld.anchor)}var Sc=function(df,af,Wg){for(var lp=df.x2-df.x1,lg=df.y2-df.y1,Id=Nc.textBoxScale,rm=Tu&&!_l?af:null,Im={box:[],offscreen:!1},Wm=Va?2*xd.length:xd.length,im=0;im=xd.length,Nc,Rt,Wg,rm);if(wm&&(Im=wm.placedGlyphBoxes)&&Im.box&&Im.box.length){hh=!0,bh=wm.shift;break}}return Im};Dc(function(){return Sc(yd,Hc.iconBox,b.WritingMode.horizontal)},function(){var df=Hc.verticalTextBox;return Rt.allowVerticalPlacement&&!(Mh&&Mh.box&&Mh.box.length)&&Nc.numVerticalGlyphVertices>0&&df?Sc(df,Hc.verticalIconBox,b.WritingMode.vertical):{box:null,offscreen:null}}),Mh&&(hh=Mh.box,zh=Mh.offscreen);var Ro=Bd(Mh&&Mh.box);if(!hh&&le.prevPlacement){var Hg=le.prevPlacement.variableOffsets[Nc.crossTileID];Hg&&(le.variableOffsets[Nc.crossTileID]=Hg,le.markUsedJustification(Rt,Hg.anchor,Nc,Ro))}}else{var Zp=function(df,af){var Wg=le.collisionIndex.placeCollisionBox(df,Va,ss,Yn,na.predicate);return Wg&&Wg.box&&Wg.box.length&&(le.markUsedOrientation(Rt,af,Nc),le.placedOrientations[Nc.crossTileID]=af),Wg};Dc(function(){return Zp(yd,b.WritingMode.horizontal)},function(){var df=Hc.verticalTextBox;return Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&df?Zp(df,b.WritingMode.vertical):{box:null,offscreen:null}}),Bd(Mh&&Mh.box&&Mh.box.length)}}if(hh=(tf=Mh)&&tf.box&&tf.box.length>0,zh=tf&&tf.offscreen,Nc.useRuntimeCollisionCircles){var vm=Rt.text.placedSymbolArray.get(Nc.centerJustifiedTextSymbolIndex),Fm=b.evaluateSizeForFeature(Rt.textSizeData,ua,vm),Zd=nn.get("text-padding");jp=le.collisionIndex.placeCollisionCircles(Va,vm,Rt.lineVertexArray,Rt.glyphOffsetArray,Fm,Yn,ei,gr,Q,xu,na.predicate,Nc.collisionCircleDiameter,Zd),hh=Va||jp.circles.length>0&&!jp.collisionDetected,zh=zh&&jp.offscreen}if(Hc.iconFeatureIndex&&(ad=Hc.iconFeatureIndex),Hc.iconBox){var Fp=function(df){var af=Tu&&bh?gn(df,bh.x,bh.y,nu,xu,le.transform.angle):df;return le.collisionIndex.placeCollisionBox(af,_l,ss,Yn,na.predicate)};rh=Cg&&Cg.box&&Cg.box.length&&Hc.verticalIconBox?(vp=Fp(Hc.verticalIconBox)).box.length>0:(vp=Fp(Hc.iconBox)).box.length>0,zh=zh&&vp.offscreen}var zf=Go||Nc.numHorizontalGlyphVertices===0&&Nc.numVerticalGlyphVertices===0,bf=Gs||Nc.numIconVertices===0;if(zf||bf?bf?zf||(rh=rh&&hh):hh=rh&&hh:rh=hh=rh&&hh,hh&&tf&&tf.box&&le.collisionIndex.insertCollisionBox(tf.box,nn.get("text-ignore-placement"),Rt.bucketInstanceId,Cg&&Cg.box&&Oc?Oc:Gc,na.ID),rh&&vp&&le.collisionIndex.insertCollisionBox(vp.box,nn.get("icon-ignore-placement"),Rt.bucketInstanceId,ad,na.ID),jp&&(hh&&le.collisionIndex.insertCollisionCircles(jp.circles,nn.get("text-ignore-placement"),Rt.bucketInstanceId,Gc,na.ID),Q)){var Qp=Rt.bucketInstanceId,Bp=le.collisionCircleArrays[Qp];Bp===void 0&&(Bp=le.collisionCircleArrays[Qp]=new xs);for(var Hf=0;Hf=0;--Td){var dh=fd[Td];wc(Rt.symbolInstances.get(dh),Rt.collisionArrays[dh])}else for(var Qd=X.symbolInstanceStart;Qd=0&&(X.text.placedSymbolArray.get(Yn).crossTileID=it>=0&&Yn!==it?0:Q.crossTileID)}},En.prototype.markUsedOrientation=function(X,re,Q){for(var le=re===b.WritingMode.horizontal||re===b.WritingMode.horizontalOnly?re:0,it=re===b.WritingMode.vertical?re:0,Rt=0,nn=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];Rt0,Zc=le.placedOrientations[_l.crossTileID],wc=Zc===b.WritingMode.vertical,fd=Zc===b.WritingMode.horizontal||Zc===b.WritingMode.horizontalOnly;if(nu>0||xu>0){var Td=Cr(Cu.text);ua(X.text,nu,wc?ki:Td),ua(X.text,xu,fd?ki:Td);var dh=Cu.text.isHidden();[_l.rightJustifiedTextSymbolIndex,_l.centerJustifiedTextSymbolIndex,_l.leftJustifiedTextSymbolIndex].forEach(function(Mh){Mh>=0&&(X.text.placedSymbolArray.get(Mh).hidden=dh||wc?1:0)}),_l.verticalPlacedTextSymbolIndex>=0&&(X.text.placedSymbolArray.get(_l.verticalPlacedTextSymbolIndex).hidden=dh||fd?1:0);var Qd=le.variableOffsets[_l.crossTileID];Qd&&le.markUsedJustification(X,Qd.anchor,_l,Zc);var Xh=le.placedOrientations[_l.crossTileID];Xh&&(le.markUsedJustification(X,"left",_l,Xh),le.markUsedOrientation(X,Xh,_l))}if(dc){var Nc=Cr(Cu.icon),Hc=!(ts&&_l.verticalPlacedIconSymbolIndex&&wc);_l.placedIconSymbolIndex>=0&&(ua(X.icon,_l.numIconVertices,Hc?Nc:ki),X.icon.placedSymbolArray.get(_l.placedIconSymbolIndex).hidden=Cu.icon.isHidden()),_l.verticalPlacedIconSymbolIndex>=0&&(ua(X.icon,_l.numVerticalIconVertices,Hc?ki:Nc),X.icon.placedSymbolArray.get(_l.verticalPlacedIconSymbolIndex).hidden=Cu.icon.isHidden())}if(X.hasIconCollisionBoxData()||X.hasTextCollisionBoxData()){var tf=X.collisionArrays[Va];if(tf){var hh=new b.Point(0,0);if(tf.textBox||tf.verticalTextBox){var rh=!0;if(ei){var zh=le.variableOffsets[Tu];zh?(hh=Xt(zh.anchor,zh.width,zh.height,zh.textOffset,zh.textBoxScale),gr&&hh._rotate(ss?le.transform.angle:-le.transform.angle)):rh=!1}tf.textBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!rh||wc,hh.x,hh.y),tf.verticalTextBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!rh||fd,hh.x,hh.y)}var bh=!!(!fd&&tf.verticalIconBox);tf.iconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,bh,ts?hh.x:0,ts?hh.y:0),tf.verticalIconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,!bh,ts?hh.x:0,ts?hh.y:0)}}},Go=0;GoX},En.prototype.setStale=function(){this.stale=!0};var at=Math.pow(2,25),gt=Math.pow(2,24),Ne=Math.pow(2,17),lt=Math.pow(2,16),St=Math.pow(2,9),ln=Math.pow(2,8),jn=Math.pow(2,1);function Cr(X){if(X.opacity===0&&!X.placed)return 0;if(X.opacity===1&&X.placed)return 4294967295;var re=X.placed?1:0,Q=Math.floor(127*X.opacity);return Q*at+re*gt+Q*Ne+re*lt+Q*St+re*ln+Q*jn+re}var ki=0,Vi=function(X){this._sortAcrossTiles=X.layout.get("symbol-z-order")!=="viewport-y"&&X.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Vi.prototype.continuePlacement=function(X,re,Q,le,it){for(var Rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var nn=re[X[this._currentPlacementIndex]],Yn=this.placement.collisionIndex.transform.zoom;if(nn.type==="symbol"&&(!nn.minzoom||nn.minzoom<=Yn)&&(!nn.maxzoom||nn.maxzoom>Yn)){if(this._inProgressLayer||(this._inProgressLayer=new Vi(nn)),this._inProgressLayer.continuePlacement(Q[nn.source],this.placement,this._showCollisionBoxes,nn,Rt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ki.prototype.commit=function(X){return this.placement.commit(X),this.placement};var fs=512/b.EXTENT/2,Ns=function(X,re,Q){this.tileID=X,this.indexedSymbolInstances={},this.bucketInstanceId=Q;for(var le=0;leX.overscaledZ)for(var Yn in nn){var ei=nn[Yn];ei.tileID.isChildOf(X)&&ei.findMatches(re.symbolInstances,X,it)}else{var gr=nn[X.scaledTo(Number(Rt)).key];gr&&gr.findMatches(re.symbolInstances,X,it)}}for(var ss=0;ss1?"@2x":"",ts=b.getJSON(Rt.transformRequest(Rt.normalizeSpriteURL(it,ss,".json"),b.ResourceType.SpriteJSON),function(na,Go){ts=null,gr||(gr=na,Yn=Go,ua())}),Is=b.getImage(Rt.transformRequest(Rt.normalizeSpriteURL(it,ss,".png"),b.ResourceType.SpriteImage),function(na,Go){Is=null,gr||(gr=na,ei=Go,ua())});function ua(){if(gr)nn(gr);else if(Yn&&ei){var na=b.browser.getImageData(ei),Go={};for(var Gs in Yn){var Va=Yn[Gs],_l=Va.width,nu=Va.height,xu=Va.x,Tu=Va.y,Cu=Va.sdf,dc=Va.pixelRatio,Zc=Va.stretchX,wc=Va.stretchY,fd=Va.content,Td=new b.RGBAImage({width:_l,height:nu});b.RGBAImage.copy(na,Td,{x:xu,y:Tu},{x:0,y:0},{width:_l,height:nu}),Go[Gs]={data:Td,pixelRatio:dc,sdf:Cu,stretchX:Zc,stretchY:wc,content:fd}}nn(null,Go)}}return{cancel:function(){ts&&(ts.cancel(),ts=null),Is&&(Is.cancel(),Is=null)}}}(Q,this.map._requestManager,function(it,Rt){if(le._spriteRequest=null,it)le.fire(new b.ErrorEvent(it));else if(Rt)for(var nn in Rt)le.imageManager.addImage(nn,Rt[nn]);le.imageManager.setLoaded(!0),le._availableImages=le.imageManager.listImages(),le.dispatcher.broadcast("setImages",le._availableImages),le.fire(new b.Event("data",{dataType:"style"}))})},re.prototype._validateLayer=function(Q){var le=this.sourceCaches[Q.source];if(le){var it=Q.sourceLayer;if(it){var Rt=le.getSource();(Rt.type==="geojson"||Rt.vectorLayerIds&&Rt.vectorLayerIds.indexOf(it)===-1)&&this.fire(new b.ErrorEvent(new Error('Source layer "'+it+'" does not exist on source "'+Rt.id+'" as specified by style layer "'+Q.id+'"')))}}},re.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var Q in this.sourceCaches)if(!this.sourceCaches[Q].loaded())return!1;return!!this.imageManager.isLoaded()},re.prototype._serializeLayers=function(Q){for(var le=[],it=0,Rt=Q;it0)throw new Error("Unimplemented: "+Rt.map(function(nn){return nn.command}).join(", ")+".");return it.forEach(function(nn){nn.command!=="setTransition"&&le[nn.command].apply(le,nn.args)}),this.stylesheet=Q,!0},re.prototype.addImage=function(Q,le){if(this.getImage(Q))return this.fire(new b.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(Q,le),this._afterImageUpdated(Q)},re.prototype.updateImage=function(Q,le){this.imageManager.updateImage(Q,le)},re.prototype.getImage=function(Q){return this.imageManager.getImage(Q)},re.prototype.removeImage=function(Q){if(!this.getImage(Q))return this.fire(new b.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(Q),this._afterImageUpdated(Q)},re.prototype._afterImageUpdated=function(Q){this._availableImages=this.imageManager.listImages(),this._changedImages[Q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new b.Event("data",{dataType:"style"}))},re.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},re.prototype.addSource=function(Q,le,it){var Rt=this;if(it===void 0&&(it={}),this._checkLoaded(),this.sourceCaches[Q]!==void 0)throw new Error("There is already a source with this ID");if(!le.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(le).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(le.type)>=0&&this._validate(b.validateStyle.source,"sources."+Q,le,null,it))){this.map&&this.map._collectResourceTiming&&(le.collectResourceTiming=!0);var nn=this.sourceCaches[Q]=new Qn(Q,le,this.dispatcher);nn.style=this,nn.setEventedParent(this,function(){return{isSourceLoaded:Rt.loaded(),source:nn.serialize(),sourceId:Q}}),nn.onAdd(this.map),this._changed=!0}},re.prototype.removeSource=function(Q){if(this._checkLoaded(),this.sourceCaches[Q]===void 0)throw new Error("There is no source with this ID");for(var le in this._layers)if(this._layers[le].source===Q)return this.fire(new b.ErrorEvent(new Error('Source "'+Q+'" cannot be removed while layer "'+le+'" is using it.')));var it=this.sourceCaches[Q];delete this.sourceCaches[Q],delete this._updatedSources[Q],it.fire(new b.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:Q})),it.setEventedParent(null),it.clearTiles(),it.onRemove&&it.onRemove(this.map),this._changed=!0},re.prototype.setGeoJSONSourceData=function(Q,le){this._checkLoaded(),this.sourceCaches[Q].getSource().setData(le),this._changed=!0},re.prototype.getSource=function(Q){return this.sourceCaches[Q]&&this.sourceCaches[Q].getSource()},re.prototype.addLayer=function(Q,le,it){it===void 0&&(it={}),this._checkLoaded();var Rt=Q.id;if(this.getLayer(Rt))this.fire(new b.ErrorEvent(new Error('Layer with id "'+Rt+'" already exists on this map')));else{var nn;if(Q.type==="custom"){if(Ds(this,b.validateCustomStyleLayer(Q)))return;nn=b.createStyleLayer(Q)}else{if(typeof Q.source=="object"&&(this.addSource(Rt,Q.source),Q=b.clone$1(Q),Q=b.extend(Q,{source:Rt})),this._validate(b.validateStyle.layer,"layers."+Rt,Q,{arrayIndex:-1},it))return;nn=b.createStyleLayer(Q),this._validateLayer(nn),nn.setEventedParent(this,{layer:{id:Rt}}),this._serializedLayers[nn.id]=nn.serialize()}var Yn=le?this._order.indexOf(le):this._order.length;if(le&&Yn===-1)this.fire(new b.ErrorEvent(new Error('Layer with id "'+le+'" does not exist on this map.')));else{if(this._order.splice(Yn,0,Rt),this._layerOrderChanged=!0,this._layers[Rt]=nn,this._removedLayers[Rt]&&nn.source&&nn.type!=="custom"){var ei=this._removedLayers[Rt];delete this._removedLayers[Rt],ei.type!==nn.type?this._updatedSources[nn.source]="clear":(this._updatedSources[nn.source]="reload",this.sourceCaches[nn.source].pause())}this._updateLayer(nn),nn.onAdd&&nn.onAdd(this.map)}}},re.prototype.moveLayer=function(Q,le){if(this._checkLoaded(),this._changed=!0,this._layers[Q]){if(Q!==le){var it=this._order.indexOf(Q);this._order.splice(it,1);var Rt=le?this._order.indexOf(le):this._order.length;le&&Rt===-1?this.fire(new b.ErrorEvent(new Error('Layer with id "'+le+'" does not exist on this map.'))):(this._order.splice(Rt,0,Q),this._layerOrderChanged=!0)}}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be moved.")))},re.prototype.removeLayer=function(Q){this._checkLoaded();var le=this._layers[Q];if(le){le.setEventedParent(null);var it=this._order.indexOf(Q);this._order.splice(it,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Q]=le,delete this._layers[Q],delete this._serializedLayers[Q],delete this._updatedLayers[Q],delete this._updatedPaintProps[Q],le.onRemove&&le.onRemove(this.map)}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be removed.")))},re.prototype.getLayer=function(Q){return this._layers[Q]},re.prototype.hasLayer=function(Q){return Q in this._layers},re.prototype.setLayerZoomRange=function(Q,le,it){this._checkLoaded();var Rt=this.getLayer(Q);Rt?Rt.minzoom===le&&Rt.maxzoom===it||(le!=null&&(Rt.minzoom=le),it!=null&&(Rt.maxzoom=it),this._updateLayer(Rt)):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot have zoom extent.")))},re.prototype.setFilter=function(Q,le,it){it===void 0&&(it={}),this._checkLoaded();var Rt=this.getLayer(Q);if(Rt){if(!b.deepEqual(Rt.filter,le))return le==null?(Rt.filter=void 0,void this._updateLayer(Rt)):void(this._validate(b.validateStyle.filter,"layers."+Rt.id+".filter",le,null,it)||(Rt.filter=b.clone$1(le),this._updateLayer(Rt)))}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be filtered.")))},re.prototype.getFilter=function(Q){return b.clone$1(this.getLayer(Q).filter)},re.prototype.setLayoutProperty=function(Q,le,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var nn=this.getLayer(Q);nn?b.deepEqual(nn.getLayoutProperty(le),it)||(nn.setLayoutProperty(le,it,Rt),this._updateLayer(nn)):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},re.prototype.getLayoutProperty=function(Q,le){var it=this.getLayer(Q);if(it)return it.getLayoutProperty(le);this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style.")))},re.prototype.setPaintProperty=function(Q,le,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var nn=this.getLayer(Q);nn?b.deepEqual(nn.getPaintProperty(le),it)||(nn.setPaintProperty(le,it,Rt)&&this._updateLayer(nn),this._changed=!0,this._updatedPaintProps[Q]=!0):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},re.prototype.getPaintProperty=function(Q,le){return this.getLayer(Q).getPaintProperty(le)},re.prototype.setFeatureState=function(Q,le){this._checkLoaded();var it=Q.source,Rt=Q.sourceLayer,nn=this.sourceCaches[it];if(nn!==void 0){var Yn=nn.getSource().type;Yn==="geojson"&&Rt?this.fire(new b.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Yn!=="vector"||Rt?(Q.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),nn.setFeatureState(Rt,Q.id,le)):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},re.prototype.removeFeatureState=function(Q,le){this._checkLoaded();var it=Q.source,Rt=this.sourceCaches[it];if(Rt!==void 0){var nn=Rt.getSource().type,Yn=nn==="vector"?Q.sourceLayer:void 0;nn!=="vector"||Yn?le&&typeof Q.id!="string"&&typeof Q.id!="number"?this.fire(new b.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Rt.removeFeatureState(Yn,Q.id,le):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},re.prototype.getFeatureState=function(Q){this._checkLoaded();var le=Q.source,it=Q.sourceLayer,Rt=this.sourceCaches[le];if(Rt!==void 0){if(Rt.getSource().type!=="vector"||it)return Q.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),Rt.getFeatureState(it,Q.id);this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+le+"' does not exist in the map's style.")))},re.prototype.getTransition=function(){return b.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},re.prototype.serialize=function(){return b.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:b.mapObject(this.sourceCaches,function(Q){return Q.serialize()}),layers:this._serializeLayers(this._order)},function(Q){return Q!==void 0})},re.prototype._updateLayer=function(Q){this._updatedLayers[Q.id]=!0,Q.source&&!this._updatedSources[Q.source]&&this.sourceCaches[Q.source].getSource().type!=="raster"&&(this._updatedSources[Q.source]="reload",this.sourceCaches[Q.source].pause()),this._changed=!0},re.prototype._flattenAndSortRenderedFeatures=function(Q){for(var le=this,it=function(Zc){return le._layers[Zc].type==="fill-extrusion"},Rt={},nn=[],Yn=this._order.length-1;Yn>=0;Yn--){var ei=this._order[Yn];if(it(ei)){Rt[ei]=Yn;for(var gr=0,ss=Q;gr=0;Go--){var Gs=this._order[Go];if(it(Gs))for(var Va=nn.length-1;Va>=0;Va--){var _l=nn[Va].feature;if(Rt[_l.layer.id]=xa)return ye;var du=dn-tp(si);if(du<1)return si;var rc=ql?Zt(ql,0,du).join(""):ye.slice(0,du);if(ls===R)return rc+si;if(ql&&(du+=rc.length-du),bh(ls)){if(ye.slice(du).search(ls)){var Fh,$h=rc;for(ls.global||(ls=hf(ls.source,bd(Si.exec(ls))+"g")),ls.lastIndex=0;Fh=ls.exec($h);)var cd=Fh.index;rc=rc.slice(0,cd===R?du:cd)}}else if(ye.indexOf(Gp(ls),du)!=du){var Mf=rc.lastIndexOf(ls);Mf>-1&&(rc=rc.slice(0,Mf))}return rc+si}function ky(ye){return ye=bd(ye),ye&&Vt.test(ye)?ye.replace(cr,Su):ye}var h1=Jn(function(ye,Qe,dn){return ye+(dn?" ":"")+Qe.toUpperCase()}),Oy=Ni("toUpperCase");function yb(ye,Qe,dn){return ye=bd(ye),Qe=dn?R:Qe,Qe===R?ap(ye)?Lu(ye):Ln(ye):ye.match(Qe)||[]}var m_=pf(function(ye,Qe){try{return ra(ye,R,Qe)}catch(dn){return bs(dn)?dn:new Wu(dn)}}),Ny=hi(function(ye,Qe){return ul(Qe,function(dn){dn=bi(dn),lh(ye,dn,Ys(ye[dn],ye))}),ye});function ty(ye){var Qe=ye==null?0:ye.length,dn=Bo();return ye=Qe?Aa(ye,function(si){if(typeof si[1]!="function")throw new Yd(V);return[dn(si[0]),si[1]]}):[],pf(function(si){for(var ls=-1;++lsot)return[];var dn=$t,si=up(ye,$t);Qe=Bo(Qe),ye-=$t;for(var ls=Ah(si,Qe);++dn0||Qe<0)?new ge(dn):(ye<0?dn=dn.takeRight(-ye):ye&&(dn=dn.drop(ye)),Qe!==R&&(Qe=cc(Qe),dn=Qe<0?dn.dropRight(-Qe):dn.take(Qe-ye)),dn)},ge.prototype.takeRightWhile=function(ye){return this.reverse().takeWhile(ye).reverse()},ge.prototype.toArray=function(){return this.take($t)},rh(ge.prototype,function(ye,Qe){var dn=/^(?:filter|find|map|reject)|While$/.test(Qe),si=/^(?:head|last)$/.test(Qe),ls=Vo[si?"take"+(Qe=="last"?"Right":""):Qe],xa=si||/^find/.test(Qe);ls&&(Vo.prototype[Qe]=function(){var ql=this.__wrapped__,du=si?[1]:arguments,rc=ql instanceof ge,Fh=du[0],$h=rc||ve(ql),cd=function(fm){var Om=ls.apply(Vo,ll([fm],du));return si&&Mf?Om[0]:Om};$h&&dn&&typeof Fh=="function"&&Fh.length!=1&&(rc=$h=!1);var Mf=this.__chain__,wp=!!this.__actions__.length,og=xa&&!Mf,sg=rc&&!wp;if(!xa&&$h){ql=sg?ql:new ge(this);var wg=ye.apply(ql,du);return wg.__actions__.push({func:c0,args:[cd],thisArg:R}),new le(wg,Mf)}return og&&sg?ye.apply(this,du):(wg=this.thru(cd),og?si?wg.value()[0]:wg.value():wg)})}),ul(["pop","push","shift","sort","splice","unshift"],function(ye){var Qe=If[ye],dn=/^(?:push|sort|unshift)$/.test(ye)?"tap":"thru",si=/^(?:pop|shift)$/.test(ye);Vo.prototype[ye]=function(){var ls=arguments;if(si&&!this.__chain__){var xa=this.value();return Qe.apply(ve(xa)?xa:[],ls)}return this[dn](function(ql){return Qe.apply(ve(ql)?ql:[],ls)})}}),rh(ge.prototype,function(ye,Qe){var dn=Vo[Qe];if(dn){var si=dn.name+"";Tf.call(mh,si)||(mh[si]=[]),mh[si].push({name:Qe,func:dn})}}),mh[Rr(R,_e).name]=[{name:"wrapper",func:R}],ge.prototype.clone=rt,ge.prototype.reverse=pn,ge.prototype.value=sr,Vo.prototype.at=Vs,Vo.prototype.chain=Xy,Vo.prototype.commit=vg,Vo.prototype.next=ev,Vo.prototype.plant=f,Vo.prototype.reverse=y,Vo.prototype.toJSON=Vo.prototype.valueOf=Vo.prototype.value=A,Vo.prototype.first=Vo.prototype.head,mp&&(Vo.prototype[mp]=Le),Vo},Nh=xf();vc._=Nh,v=function(){return Nh}.call(Y,_,Y,gt),v!==R&&(gt.exports=v)}).call(this)},88306:function(gt,Y,_){var v=_(83369),R="Expected a function";function w(b,B){if(typeof b!="function"||B!=null&&typeof B!="function")throw new TypeError(R);var V=function(){var O=arguments,L=B?B.apply(this,O):O[0],S=V.cache;if(S.has(L))return S.get(L);var g=b.apply(this,O);return V.cache=S.set(L,g)||S,g};return V.cache=new(w.Cache||v),V}w.Cache=v,gt.exports=w},82492:function(gt,Y,_){var v=_(42980),R=_(21463),w=R(function(b,B,V){v(b,B,V)});gt.exports=w},30236:function(gt,Y,_){var v=_(42980),R=_(21463),w=R(function(b,B,V,O){v(b,B,V,O)});gt.exports=w},50308:function(gt){function Y(){}gt.exports=Y},7771:function(gt,Y,_){var v=_(55639),R=function(){return v.Date.now()};gt.exports=R},97019:function(gt,Y,_){var v=_(5976),R=_(45604),w=v(R);gt.exports=w},45604:function(gt,Y,_){var v=_(65464);function R(w,b){return w&&w.length&&b&&b.length?v(w,b):w}gt.exports=R},70479:function(gt){function Y(){return[]}gt.exports=Y},95062:function(gt){function Y(){return!1}gt.exports=Y},23493:function(gt,Y,_){var v=_(23279),R=_(13218),w="Expected a function";function b(B,V,O){var L=!0,S=!0;if(typeof B!="function")throw new TypeError(w);return R(O)&&(L="leading"in O?!!O.leading:L,S="trailing"in O?!!O.trailing:S),v(B,V,{leading:L,maxWait:V,trailing:S})}gt.exports=b},14841:function(gt,Y,_){var v=_(4107),R=_(13218),w=_(33448),b=0/0,B=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,O=/^0o[0-7]+$/i,L=parseInt;function S(g){if(typeof g=="number")return g;if(w(g))return b;if(R(g)){var T=typeof g.valueOf=="function"?g.valueOf():g;g=R(T)?T+"":T}if(typeof g!="string")return g===0?g:+g;g=v(g);var k=V.test(g);return k||O.test(g)?L(g.slice(2),k?2:8):B.test(g)?b:+g}gt.exports=S},59881:function(gt,Y,_){var v=_(98363),R=_(81704);function w(b){return v(b,R(b))}gt.exports=w},79833:function(gt,Y,_){var v=_(80531);function R(w){return w==null?"":v(w)}gt.exports=R},44908:function(gt,Y,_){var v=_(45652);function R(w){return w&&w.length?v(w):[]}gt.exports=R},11700:function(gt,Y,_){var v=_(98805),R=v("toUpperCase");gt.exports=R},58748:function(gt,Y,_){var v=_(49029),R=_(93157),w=_(79833),b=_(2757);function B(V,O,L){return V=w(V),O=L?void 0:O,O===void 0?R(V)?b(V):v(V):V.match(O)||[]}gt.exports=B},6158:function(gt){(function(Y,_){gt.exports=_()})(this,function(){"use strict";var Y,_,v;function R(w,b){if(!Y)Y=b;else if(!_)_=b;else{var B="var sharedChunk = {}; ("+Y+")(sharedChunk); ("+_+")(sharedChunk);",V={};Y(V),v=b(V),typeof window!="undefined"&&(v.workerUrl=window.URL.createObjectURL(new Blob([B],{type:"text/javascript"})))}}return R(["exports"],function(w){"use strict";function b(f,y){return f(y={exports:{}},y.exports),y.exports}var B=V;function V(f,y,A,j){this.cx=3*f,this.bx=3*(A-f)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(j-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=f,this.p1y=j,this.p2x=A,this.p2y=j}V.prototype.sampleCurveX=function(f){return((this.ax*f+this.bx)*f+this.cx)*f},V.prototype.sampleCurveY=function(f){return((this.ay*f+this.by)*f+this.cy)*f},V.prototype.sampleCurveDerivativeX=function(f){return(3*this.ax*f+2*this.bx)*f+this.cx},V.prototype.solveCurveX=function(f,y){var A,j,re,de,Ie;for(y===void 0&&(y=1e-6),re=f,Ie=0;Ie<8;Ie++){if(de=this.sampleCurveX(re)-f,Math.abs(de)(j=1))return j;for(;Ade?A=re:j=re,re=.5*(j-A)+A}return re},V.prototype.solve=function(f,y){return this.sampleCurveY(this.solveCurveX(f,y))};var O=L;function L(f,y){this.x=f,this.y=y}L.prototype={clone:function(){return new L(this.x,this.y)},add:function(f){return this.clone()._add(f)},sub:function(f){return this.clone()._sub(f)},multByPoint:function(f){return this.clone()._multByPoint(f)},divByPoint:function(f){return this.clone()._divByPoint(f)},mult:function(f){return this.clone()._mult(f)},div:function(f){return this.clone()._div(f)},rotate:function(f){return this.clone()._rotate(f)},rotateAround:function(f,y){return this.clone()._rotateAround(f,y)},matMult:function(f){return this.clone()._matMult(f)},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(f){return this.x===f.x&&this.y===f.y},dist:function(f){return Math.sqrt(this.distSqr(f))},distSqr:function(f){var y=f.x-this.x,A=f.y-this.y;return y*y+A*A},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith:function(f){return this.angleWithSep(f.x,f.y)},angleWithSep:function(f,y){return Math.atan2(this.x*y-this.y*f,this.x*f+this.y*y)},_matMult:function(f){var y=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=y,this},_add:function(f){return this.x+=f.x,this.y+=f.y,this},_sub:function(f){return this.x-=f.x,this.y-=f.y,this},_mult:function(f){return this.x*=f,this.y*=f,this},_div:function(f){return this.x/=f,this.y/=f,this},_multByPoint:function(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint:function(f){return this.x/=f.x,this.y/=f.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var f=this.y;return this.y=this.x,this.x=-f,this},_rotate:function(f){var y=Math.cos(f),A=Math.sin(f),j=A*this.x+y*this.y;return this.x=y*this.x-A*this.y,this.y=j,this},_rotateAround:function(f,y){var A=Math.cos(f),j=Math.sin(f),re=y.y+j*(this.x-y.x)+A*(this.y-y.y);return this.x=y.x+A*(this.x-y.x)-j*(this.y-y.y),this.y=re,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},L.convert=function(f){return f instanceof L?f:Array.isArray(f)?new L(f[0],f[1]):f};var S=typeof self!="undefined"?self:{},g=Math.pow(2,53)-1;function T(f,y,A,j){var re=new B(f,y,A,j);return function(de){return re.solve(de)}}var k=T(.25,.1,.25,1);function K(f,y,A){return Math.min(A,Math.max(y,f))}function he(f,y,A){var j=A-y,re=((f-y)%j+j)%j+y;return re===y?A:re}function ae(f){for(var y=[],A=arguments.length-1;A-- >0;)y[A]=arguments[A+1];for(var j=0,re=y;j>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,f)}()}function xe(f){return!!f&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(f)}function Xe(f,y){f.forEach(function(A){y[A]&&(y[A]=y[A].bind(y))})}function We(f,y){return f.indexOf(y,f.length-y.length)!==-1}function dt(f,y,A){var j={};for(var re in f)j[re]=y.call(A||this,f[re],re,f);return j}function Me(f,y,A){var j={};for(var re in f)y.call(A||this,f[re],re,f)&&(j[re]=f[re]);return j}function Se(f){return Array.isArray(f)?f.map(Se):typeof f=="object"&&f?dt(f,Se):f}var ze={};function De(f){ze[f]||(typeof console!="undefined"&&console.warn(f),ze[f]=!0)}function ke(f,y,A){return(A.y-f.y)*(y.x-f.x)>(y.y-f.y)*(A.x-f.x)}function $e(f){for(var y=0,A=0,j=f.length,re=j-1,de=void 0,Ie=void 0;A@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(j,re,de,Ie){var Je=de||Ie;return y[re]=!Je||Je.toLowerCase(),""}),y["max-age"]){var A=parseInt(y["max-age"],10);isNaN(A)?delete y["max-age"]:y["max-age"]=A}return y}var Oe=null;function Xt(f){if(Oe==null){var y=f.navigator?f.navigator.userAgent:null;Oe=!!f.safari||!(!y||!(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return Oe}function Ft(f){try{var y=S[f];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(A){return!1}}var ot,xt,ut,$t,_t=S.performance&&S.performance.now?S.performance.now.bind(S.performance):Date.now.bind(Date),bn=S.requestAnimationFrame||S.mozRequestAnimationFrame||S.webkitRequestAnimationFrame||S.msRequestAnimationFrame,Wn=S.cancelAnimationFrame||S.mozCancelAnimationFrame||S.webkitCancelAnimationFrame||S.msCancelAnimationFrame,$r={now:_t,frame:function(f){var y=bn(f);return{cancel:function(){return Wn(y)}}},getImageData:function(f,y){y===void 0&&(y=0);var A=S.document.createElement("canvas"),j=A.getContext("2d");if(!j)throw new Error("failed to create canvas 2d context");return A.width=f.width,A.height=f.height,j.drawImage(f,0,0,f.width,f.height),j.getImageData(-y,-y,f.width+2*y,f.height+2*y)},resolveURL:function(f){return ot||(ot=S.document.createElement("a")),ot.href=f,ot.href},hardwareConcurrency:S.navigator&&S.navigator.hardwareConcurrency||4,get devicePixelRatio(){return S.devicePixelRatio},get prefersReducedMotion(){return!!S.matchMedia&&(xt==null&&(xt=S.matchMedia("(prefers-reduced-motion: reduce)")),xt.matches)}},wi={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},oo={supported:!1,testSupport:function(f){!Mo&&$t&&(Ti?Hr(f):ut=f)}},Mo=!1,Ti=!1;function Hr(f){var y=f.createTexture();f.bindTexture(f.TEXTURE_2D,y);try{if(f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,$t),f.isContextLost())return;oo.supported=!0}catch(A){}f.deleteTexture(y),Mo=!0}S.document&&(($t=S.document.createElement("img")).onload=function(){ut&&Hr(ut),ut=null,Ti=!0},$t.onerror=function(){Mo=!0,ut=null},$t.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Ho="01",Ss=function(f,y){this._transformRequestFn=f,this._customAccessToken=y,this._createSkuToken()};function Pe(f){return f.indexOf("mapbox:")===0}Ss.prototype._createSkuToken=function(){var f=function(){for(var y="",A=0;A<10;A++)y+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Ho,y].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=f.token,this._skuTokenExpiresAt=f.tokenExpiresAt},Ss.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ss.prototype.transformRequest=function(f,y){return this._transformRequestFn&&this._transformRequestFn(f,y)||{url:f}},Ss.prototype.normalizeStyleURL=function(f,y){if(!Pe(f))return f;var A=ai(f);return A.path="/styles/v1"+A.path,this._makeAPIURL(A,this._customAccessToken||y)},Ss.prototype.normalizeGlyphsURL=function(f,y){if(!Pe(f))return f;var A=ai(f);return A.path="/fonts/v1"+A.path,this._makeAPIURL(A,this._customAccessToken||y)},Ss.prototype.normalizeSourceURL=function(f,y){if(!Pe(f))return f;var A=ai(f);return A.path="/v4/"+A.authority+".json",A.params.push("secure"),this._makeAPIURL(A,this._customAccessToken||y)},Ss.prototype.normalizeSpriteURL=function(f,y,A,j){var re=ai(f);return Pe(f)?(re.path="/styles/v1"+re.path+"/sprite"+y+A,this._makeAPIURL(re,this._customAccessToken||j)):(re.path+=""+y+A,$o(re))},Ss.prototype.normalizeTileURL=function(f,y){if(this._isSkuTokenExpired()&&this._createSkuToken(),f&&!Pe(f))return f;var A=ai(f);A.path=A.path.replace(/(\.(png|jpg)\d*)(?=$)/,($r.devicePixelRatio>=2||y===512?"@2x":"")+(oo.supported?".webp":"$1")),A.path=A.path.replace(/^.+\/v4\//,"/"),A.path="/v4"+A.path;var j=this._customAccessToken||function(re){for(var de=0,Ie=re;de=0&&f.params.splice(re,1)}if(j.path!=="/"&&(f.path=""+j.path+f.path),!wi.REQUIRE_ACCESS_TOKEN)return $o(f);if(!(y=y||wi.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+A);if(y[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+A);return f.params=f.params.filter(function(de){return de.indexOf("access_token")===-1}),f.params.push("access_token="+y),$o(f)};var qo=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ki(f){return qo.test(f)}var Do=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ai(f){var y=f.match(Do);if(!y)throw new Error("Unable to parse URL object");return{protocol:y[1],authority:y[2],path:y[3]||"/",params:y[4]?y[4].split("&"):[]}}function $o(f){var y=f.params.length?"?"+f.params.join("&"):"";return f.protocol+"://"+f.authority+f.path+y}function Mn(f){if(!f)return null;var y=f.split(".");if(!y||y.length!==3)return null;try{return JSON.parse(decodeURIComponent(S.atob(y[1]).split("").map(function(A){return"%"+("00"+A.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(A){return null}}var nt=function(f){this.type=f,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};nt.prototype.getStorageKey=function(f){var y,A=Mn(wi.ACCESS_TOKEN);return y=A&&A.u?S.btoa(encodeURIComponent(A.u).replace(/%([0-9A-F]{2})/g,function(j,re){return String.fromCharCode(+("0x"+re))})):wi.ACCESS_TOKEN||"",f?"mapbox.eventData."+f+":"+y:"mapbox.eventData:"+y},nt.prototype.fetchEventData=function(){var f=Ft("localStorage"),y=this.getStorageKey(),A=this.getStorageKey("uuid");if(f)try{var j=S.localStorage.getItem(y);j&&(this.eventData=JSON.parse(j));var re=S.localStorage.getItem(A);re&&(this.anonId=re)}catch(de){De("Unable to read from LocalStorage")}},nt.prototype.saveEventData=function(){var f=Ft("localStorage"),y=this.getStorageKey(),A=this.getStorageKey("uuid");if(f)try{S.localStorage.setItem(A,this.anonId),Object.keys(this.eventData).length>=1&&S.localStorage.setItem(y,JSON.stringify(this.eventData))}catch(j){De("Unable to write to LocalStorage")}},nt.prototype.processRequests=function(f){},nt.prototype.postEvent=function(f,y,A,j){var re=this;if(wi.EVENTS_URL){var de=ai(wi.EVENTS_URL);de.params.push("access_token="+(j||wi.ACCESS_TOKEN||""));var Ie={event:this.type,created:new Date(f).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Ho,userId:this.anonId},Je=y?ae(Ie,y):Ie,zt={url:$o(de),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Je])};this.pendingRequest=Qn(zt,function(un){re.pendingRequest=null,A(un),re.saveEventData(),re.processRequests(j)})}},nt.prototype.queueRequest=function(f,y){this.queue.push(f),this.processRequests(y)};var Dt,Kt,mn=function(f){function y(){f.call(this,"map.load"),this.success={},this.skuToken=""}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.postMapLoadEvent=function(A,j,re,de){this.skuToken=re;var Ie=!(!de&&!wi.ACCESS_TOKEN),Je=Array.isArray(A)&&A.some(function(zt){return Pe(zt)||Ki(zt)});wi.EVENTS_URL&&Ie&&Je&&this.queueRequest({id:j,timestamp:Date.now()},de)},y.prototype.processRequests=function(A){var j=this;if(!this.pendingRequest&&this.queue.length!==0){var re=this.queue.shift(),de=re.id,Ie=re.timestamp;de&&this.success[de]||(this.anonId||this.fetchEventData(),xe(this.anonId)||(this.anonId=be()),this.postEvent(Ie,{skuToken:this.skuToken},function(Je){Je||de&&(j.success[de]=!0)},A))}},y}(nt),kn=new(function(f){function y(A){f.call(this,"appUserTurnstile"),this._customAccessToken=A}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.postTurnstileEvent=function(A,j){wi.EVENTS_URL&&wi.ACCESS_TOKEN&&Array.isArray(A)&&A.some(function(re){return Pe(re)||Ki(re)})&&this.queueRequest(Date.now(),j)},y.prototype.processRequests=function(A){var j=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var re=Mn(wi.ACCESS_TOKEN),de=re?re.u:wi.ACCESS_TOKEN,Ie=de!==this.eventData.tokenU;xe(this.anonId)||(this.anonId=be(),Ie=!0);var Je=this.queue.shift();if(this.eventData.lastSuccess){var zt=new Date(this.eventData.lastSuccess),un=new Date(Je),tr=(Je-this.eventData.lastSuccess)/864e5;Ie=Ie||tr>=1||tr<-1||zt.getDate()!==un.getDate()}else Ie=!0;if(!Ie)return this.processRequests();this.postEvent(Je,{"enabled.telemetry":!1},function(Cr){Cr||(j.eventData.lastSuccess=Je,j.eventData.tokenU=de)},A)}},y}(nt)),an=kn.postTurnstileEvent.bind(kn),tn=new mn,kt=tn.postMapLoadEvent.bind(tn),en=500,Vn=50;function on(){S.caches&&!Dt&&(Dt=S.caches.open("mapbox-tiles"))}function Dr(f){var y=f.indexOf("?");return y<0?f:f.slice(0,y)}var oi,Ii=1/0;function jr(){return oi==null&&(oi=S.OffscreenCanvas&&new S.OffscreenCanvas(1,1).getContext("2d")&&typeof S.createImageBitmap=="function"),oi}var eo={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(eo);var Uo=function(f){function y(A,j,re){j===401&&Ki(re)&&(A+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),f.call(this,A),this.status=j,this.url=re,this.name=this.constructor.name,this.message=A}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},y}(Error),Fn=Te()?function(){return self.worker&&self.worker.referrer}:function(){return(S.location.protocol==="blob:"?S.parent:S).location.href},Qr,ci,ji=function(f,y){if(!(/^file:/.test(A=f.url)||/^file:/.test(Fn())&&!/^\w+:/.test(A))){if(S.fetch&&S.Request&&S.AbortController&&S.Request.prototype.hasOwnProperty("signal"))return function(j,re){var de,Ie=new S.AbortController,Je=new S.Request(j.url,{method:j.method||"GET",body:j.body,credentials:j.credentials,headers:j.headers,referrer:Fn(),signal:Ie.signal}),zt=!1,un=!1,tr=(de=Je.url).indexOf("sku=")>0&&Ki(de);j.type==="json"&&Je.headers.set("Accept","application/json");var Cr=function(Li,Io,Ao){if(!un){if(Li&&Li.message!=="SecurityError"&&De(Li),Io&&Ao)return xi(Io);var Xo=Date.now();S.fetch(Je).then(function(Ro){if(Ro.ok){var po=tr?Ro.clone():null;return xi(Ro,po,Xo)}return re(new Uo(Ro.statusText,Ro.status,j.url))}).catch(function(Ro){Ro.code!==20&&re(new Error(Ro.message))})}},xi=function(Li,Io,Ao){(j.type==="arrayBuffer"?Li.arrayBuffer():j.type==="json"?Li.json():Li.text()).then(function(Xo){un||(Io&&Ao&&function(Ro,po,Gs){if(on(),Dt){var Oa={status:po.status,statusText:po.statusText,headers:new S.Headers};po.headers.forEach(function(cu,Fu){return Oa.headers.set(Fu,cu)});var yl=tt(po.headers.get("Cache-Control")||"");yl["no-store"]||(yl["max-age"]&&Oa.headers.set("Expires",new Date(Gs+1e3*yl["max-age"]).toUTCString()),new Date(Oa.headers.get("Expires")).getTime()-Gs<42e4||function(cu,Fu){if(Kt===void 0)try{new Response(new ReadableStream),Kt=!0}catch(Eu){Kt=!1}Kt?Fu(cu.body):cu.blob().then(Fu)}(po,function(cu){var Fu=new S.Response(cu,Oa);on(),Dt&&Dt.then(function(Eu){return Eu.put(Dr(Ro.url),Fu)}).catch(function(Eu){return De(Eu.message)})}))}}(Je,Io,Ao),zt=!0,re(null,Xo,Li.headers.get("Cache-Control"),Li.headers.get("Expires")))}).catch(function(Xo){un||re(new Error(Xo.message))})};return tr?function(Li,Io){if(on(),!Dt)return Io(null);var Ao=Dr(Li.url);Dt.then(function(Xo){Xo.match(Ao).then(function(Ro){var po=function(Gs){if(!Gs)return!1;var Oa=new Date(Gs.headers.get("Expires")||0),yl=tt(Gs.headers.get("Cache-Control")||"");return Oa>Date.now()&&!yl["no-cache"]}(Ro);Xo.delete(Ao),po&&Xo.put(Ao,Ro.clone()),Io(null,Ro,po)}).catch(Io)}).catch(Io)}(Je,Cr):Cr(null,null),{cancel:function(){un=!0,zt||Ie.abort()}}}(f,y);if(Te()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",f,y,void 0,!0)}var A;return function(j,re){var de=new S.XMLHttpRequest;for(var Ie in de.open(j.method||"GET",j.url,!0),j.type==="arrayBuffer"&&(de.responseType="arraybuffer"),j.headers)de.setRequestHeader(Ie,j.headers[Ie]);return j.type==="json"&&(de.responseType="text",de.setRequestHeader("Accept","application/json")),de.withCredentials=j.credentials==="include",de.onerror=function(){re(new Error(de.statusText))},de.onload=function(){if((de.status>=200&&de.status<300||de.status===0)&&de.response!==null){var Je=de.response;if(j.type==="json")try{Je=JSON.parse(de.response)}catch(zt){return re(zt)}re(null,Je,de.getResponseHeader("Cache-Control"),de.getResponseHeader("Expires"))}else re(new Uo(de.statusText,de.status,j.url))},de.send(j.body),{cancel:function(){return de.abort()}}}(f,y)},cr=function(f,y){return ji(ae(f,{type:"arrayBuffer"}),y)},Qn=function(f,y){return ji(ae(f,{method:"POST"}),y)},Vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Qr=[],ci=0;var Yt=function(f,y){if(oo.supported&&(f.headers||(f.headers={}),f.headers.accept="image/webp,*/*"),ci>=wi.MAX_PARALLEL_IMAGE_REQUESTS){var A={requestParameters:f,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return Qr.push(A),A}ci++;var j=!1,re=function(){if(!j)for(j=!0,ci--;Qr.length&&ci0||this._oneTimeListeners&&this._oneTimeListeners[f]&&this._oneTimeListeners[f].length>0||this._eventedParent&&this._eventedParent.listens(f)},Zn.prototype.setEventedParent=function(f,y){return this._eventedParent=f,this._eventedParentData=y,this};var Ut={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},$n=function(f,y,A,j){this.message=(f?f+": ":"")+A,j&&(this.identifier=j),y!=null&&y.__line__&&(this.line=y.__line__)};function xr(f){var y=f.value;return y?[new $n(f.key,y,"constants have been deprecated as of v8")]:[]}function Br(f){for(var y=[],A=arguments.length-1;A-- >0;)y[A]=arguments[A+1];for(var j=0,re=y;j":f.itemType.kind==="value"?"array":"array<"+y+">"}return f.kind}var to=[qr,Mi,zi,Yi,Si,ii,ni,Mr(qi),nr];function ts(f,y){if(y.kind==="error")return null;if(f.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!ts(f.itemType,y.itemType))&&(typeof f.N!="number"||f.N===y.N))return null}else{if(f.kind===y.kind)return null;if(f.kind==="value"){for(var A=0,j=to;A255?255:Je}function re(Je){return j(Je[Je.length-1]==="%"?parseFloat(Je)/100*255:parseInt(Je))}function de(Je){return(zt=Je[Je.length-1]==="%"?parseFloat(Je)/100:parseFloat(Je))<0?0:zt>1?1:zt;var zt}function Ie(Je,zt,un){return un<0?un+=1:un>1&&(un-=1),6*un<1?Je+(zt-Je)*un*6:2*un<1?zt:3*un<2?Je+(zt-Je)*(2/3-un)*6:Je}try{y.parseCSSColor=function(Je){var zt,un=Je.replace(/ /g,"").toLowerCase();if(un in A)return A[un].slice();if(un[0]==="#")return un.length===4?(zt=parseInt(un.substr(1),16))>=0&&zt<=4095?[(3840&zt)>>4|(3840&zt)>>8,240&zt|(240&zt)>>4,15&zt|(15&zt)<<4,1]:null:un.length===7&&(zt=parseInt(un.substr(1),16))>=0&&zt<=16777215?[(16711680&zt)>>16,(65280&zt)>>8,255&zt,1]:null;var tr=un.indexOf("("),Cr=un.indexOf(")");if(tr!==-1&&Cr+1===un.length){var xi=un.substr(0,tr),Li=un.substr(tr+1,Cr-(tr+1)).split(","),Io=1;switch(xi){case"rgba":if(Li.length!==4)return null;Io=de(Li.pop());case"rgb":return Li.length!==3?null:[re(Li[0]),re(Li[1]),re(Li[2]),Io];case"hsla":if(Li.length!==4)return null;Io=de(Li.pop());case"hsl":if(Li.length!==3)return null;var Ao=(parseFloat(Li[0])%360+360)%360/360,Xo=de(Li[1]),Ro=de(Li[2]),po=Ro<=.5?Ro*(Xo+1):Ro+Xo-Ro*Xo,Gs=2*Ro-po;return[j(255*Ie(Gs,po,Ao+1/3)),j(255*Ie(Gs,po,Ao)),j(255*Ie(Gs,po,Ao-1/3)),Io];default:return null}}return null}}catch(Je){}}).parseCSSColor,Pn=function(f,y,A,j){j===void 0&&(j=1),this.r=f,this.g=y,this.b=A,this.a=j};Pn.parse=function(f){if(f){if(f instanceof Pn)return f;if(typeof f=="string"){var y=Vi(f);if(y)return new Pn(y[0]/255*y[3],y[1]/255*y[3],y[2]/255*y[3],y[3])}}},Pn.prototype.toString=function(){var f=this.toArray(),y=f[1],A=f[2],j=f[3];return"rgba("+Math.round(f[0])+","+Math.round(y)+","+Math.round(A)+","+j+")"},Pn.prototype.toArray=function(){var f=this.a;return f===0?[0,0,0,0]:[255*this.r/f,255*this.g/f,255*this.b/f,f]},Pn.black=new Pn(0,0,0,1),Pn.white=new Pn(1,1,1,1),Pn.transparent=new Pn(0,0,0,0),Pn.red=new Pn(1,0,0,1);var mi=function(f,y,A){this.sensitivity=f?y?"variant":"case":y?"accent":"base",this.locale=A,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};mi.prototype.compare=function(f,y){return this.collator.compare(f,y)},mi.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ya=function(f,y,A,j,re){this.text=f,this.image=y,this.scale=A,this.fontStack=j,this.textColor=re},Zs=function(f){this.sections=f};Zs.fromString=function(f){return new Zs([new ya(f,null,null,null,null)])},Zs.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(f){return f.text.length!==0||f.image&&f.image.name.length!==0})},Zs.factory=function(f){return f instanceof Zs?f:Zs.fromString(f)},Zs.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(f){return f.text}).join("")},Zs.prototype.serialize=function(){for(var f=["format"],y=0,A=this.sections;y=0&&f<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof A=="number"&&A>=0&&A<=255?j===void 0||typeof j=="number"&&j>=0&&j<=1?null:"Invalid rgba value ["+[f,y,A,j].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof j=="number"?[f,y,A,j]:[f,y,A]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function co(f){if(f===null||typeof f=="string"||typeof f=="boolean"||typeof f=="number"||f instanceof Pn||f instanceof mi||f instanceof Zs||f instanceof qs)return!0;if(Array.isArray(f)){for(var y=0,A=f;y2){var Je=f[1];if(typeof Je!="string"||!(Je in Fi)||Je==="object")return y.error('The item type argument of "array" must be one of string, number, boolean',1);de=Fi[Je],j++}else de=qi;if(f.length>3){if(f[2]!==null&&(typeof f[2]!="number"||f[2]<0||f[2]!==Math.floor(f[2])))return y.error('The length argument to "array" must be a positive integer literal',2);Ie=f[2],j++}A=Mr(de,Ie)}else A=Fi[re];for(var zt=[];j1)&&y.push(j)}}return y.concat(this.args.map(function(re){return re.serialize()}))};var yr=function(f){this.type=ii,this.sections=f};yr.parse=function(f,y){if(f.length<2)return y.error("Expected at least one argument.");var A=f[1];if(!Array.isArray(A)&&typeof A=="object")return y.error("First argument must be an image or text section.");for(var j=[],re=!1,de=1;de<=f.length-1;++de){var Ie=f[de];if(re&&typeof Ie=="object"&&!Array.isArray(Ie)){re=!1;var Je=null;if(Ie["font-scale"]&&!(Je=y.parse(Ie["font-scale"],1,Mi)))return null;var zt=null;if(Ie["text-font"]&&!(zt=y.parse(Ie["text-font"],1,Mr(zi))))return null;var un=null;if(Ie["text-color"]&&!(un=y.parse(Ie["text-color"],1,Si)))return null;var tr=j[j.length-1];tr.scale=Je,tr.font=zt,tr.textColor=un}else{var Cr=y.parse(f[de],1,qi);if(!Cr)return null;var xi=Cr.type.kind;if(xi!=="string"&&xi!=="value"&&xi!=="null"&&xi!=="resolvedImage")return y.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");re=!0,j.push({content:Cr,scale:null,font:null,textColor:null})}}return new yr(j)},yr.prototype.evaluate=function(f){return new Zs(this.sections.map(function(y){var A=y.content.evaluate(f);return tl(A)===nr?new ya("",A,null,null,null):new ya(fl(A),null,y.scale?y.scale.evaluate(f):null,y.font?y.font.evaluate(f).join(","):null,y.textColor?y.textColor.evaluate(f):null)}))},yr.prototype.eachChild=function(f){for(var y=0,A=this.sections;y-1),A},ui.prototype.eachChild=function(f){f(this.input)},ui.prototype.outputDefined=function(){return!1},ui.prototype.serialize=function(){return["image",this.input.serialize()]};var Zo={"to-boolean":Yi,"to-color":Si,"to-number":Mi,"to-string":zi},ns=function(f,y){this.type=f,this.args=y};ns.parse=function(f,y){if(f.length<2)return y.error("Expected at least one argument.");var A=f[0];if((A==="to-boolean"||A==="to-string")&&f.length!==2)return y.error("Expected one argument.");for(var j=Zo[A],re=[],de=1;de4?"Invalid rbga value "+JSON.stringify(y)+": expected an array containing either three or four numeric values.":al(y[0],y[1],y[2],y[3])))return new Pn(y[0]/255,y[1]/255,y[2]/255,y[3])}throw new Xi(A||"Could not parse color from value '"+(typeof y=="string"?y:String(JSON.stringify(y)))+"'")}if(this.type.kind==="number"){for(var Ie=null,Je=0,zt=this.args;Je=y[2]||f[1]<=y[1]||f[3]>=y[3])}function wt(f,y){var A=(180+f[0])/360,j=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f[1]*Math.PI/360)))/360,re=Math.pow(2,y.z);return[Math.round(A*re*8192),Math.round(j*re*8192)]}function At(f,y,A){return y[1]>f[1]!=A[1]>f[1]&&f[0]<(A[0]-y[0])*(f[1]-y[1])/(A[1]-y[1])+y[0]}function Ye(f,y){for(var A,j,re,de,Ie,Je,zt,un=!1,tr=0,Cr=y.length;tr0&&Je<0||Ie<0&&Je>0}function vn(f,y,A){for(var j=0,re=A;jA[2]){var re=.5*j,de=f[0]-A[0]>re?-j:A[0]-f[0]>re?j:0;de===0&&(de=f[0]-A[2]>re?-j:A[2]-f[0]>re?j:0),f[0]+=de}ar(y,f)}function ms(f,y,A,j){for(var re=8192*Math.pow(2,j.z),de=[8192*j.x,8192*j.y],Ie=[],Je=0,zt=f;Je=0)return!1;var A=!0;return f.eachChild(function(j){A&&!zs(j,y)&&(A=!1)}),A}Js.parse=function(f,y){if(f.length!==2)return y.error("'within' expression requires exactly one argument, but found "+(f.length-1)+" instead.");if(co(f[1])){var A=f[1];if(A.type==="FeatureCollection")for(var j=0;jy))throw new Xi("Input is not a number.");de=Ie-1}return 0}va.prototype.parse=function(f,y,A,j,re){return re===void 0&&(re={}),y?this.concat(y,A,j)._parse(f,re):this._parse(f,re)},va.prototype._parse=function(f,y){function A(un,tr,Cr){return Cr==="assert"?new No(tr,[un]):Cr==="coerce"?new ns(tr,[un]):un}if(f!==null&&typeof f!="string"&&typeof f!="boolean"&&typeof f!="number"||(f=["literal",f]),Array.isArray(f)){if(f.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var j=f[0];if(typeof j!="string")return this.error("Expression name must be a string, but found "+typeof j+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var re=this.registry[j];if(re){var de=re.parse(f,this);if(!de)return null;if(this.expectedType){var Ie=this.expectedType,Je=de.type;if(Ie.kind!=="string"&&Ie.kind!=="number"&&Ie.kind!=="boolean"&&Ie.kind!=="object"&&Ie.kind!=="array"||Je.kind!=="value")if(Ie.kind!=="color"&&Ie.kind!=="formatted"&&Ie.kind!=="resolvedImage"||Je.kind!=="value"&&Je.kind!=="string"){if(this.checkSubtype(Ie,Je))return null}else de=A(de,Ie,y.typeAnnotation||"coerce");else de=A(de,Ie,y.typeAnnotation||"assert")}if(!(de instanceof Ai)&&de.type.kind!=="resolvedImage"&&function un(tr){if(tr instanceof ma)return un(tr.boundExpression);if(tr instanceof hn&&tr.name==="error"||tr instanceof Tn||tr instanceof Js)return!1;var Cr=tr instanceof ns||tr instanceof No,xi=!0;return tr.eachChild(function(Li){xi=Cr?xi&&un(Li):xi&&Li instanceof Ai}),!!xi&&Hs(tr)&&zs(tr,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(de)){var zt=new Ei;try{de=new Ai(de.type,de.evaluate(zt))}catch(un){return this.error(un.message),null}}return de}return this.error('Unknown expression "'+j+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(f===void 0?"'undefined' value invalid. Use null instead.":typeof f=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof f+" instead.")},va.prototype.concat=function(f,y,A){var j=typeof f=="number"?this.path.concat(f):this.path,re=A?this.scope.concat(A):this.scope;return new va(this.registry,j,y||null,re,this.errors)},va.prototype.error=function(f){for(var y=[],A=arguments.length-1;A-- >0;)y[A]=arguments[A+1];var j=""+this.key+y.map(function(re){return"["+re+"]"}).join("");this.errors.push(new xn(j,f))},va.prototype.checkSubtype=function(f,y){var A=ts(f,y);return A&&this.error(A),A};var Dl=function(f,y,A){this.type=f,this.input=y,this.labels=[],this.outputs=[];for(var j=0,re=A;j=Ie)return y.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',zt);var tr=y.parse(Je,un,re);if(!tr)return null;re=re||tr.type,j.push([Ie,tr])}return new Dl(re,A,j)},Dl.prototype.evaluate=function(f){var y=this.labels,A=this.outputs;if(y.length===1)return A[0].evaluate(f);var j=this.input.evaluate(f);if(j<=y[0])return A[0].evaluate(f);var re=y.length;return j>=y[re-1]?A[re-1].evaluate(f):A[El(y,j)].evaluate(f)},Dl.prototype.eachChild=function(f){f(this.input);for(var y=0,A=this.outputs;y0&&f.push(this.labels[y]),f.push(this.outputs[y].serialize());return f};var Ca=Object.freeze({__proto__:null,number:Ns,color:function(f,y,A){return new Pn(Ns(f.r,y.r,A),Ns(f.g,y.g,A),Ns(f.b,y.b,A),Ns(f.a,y.a,A))},array:function(f,y,A){return f.map(function(j,re){return Ns(j,y[re],A)})}}),vl=6/29*3*(6/29),ds=Math.PI/180,io=180/Math.PI;function Ko(f){return f>.008856451679035631?Math.pow(f,1/3):f/vl+4/29}function As(f){return f>6/29?f*f*f:vl*(f-4/29)}function ks(f){return 255*(f<=.0031308?12.92*f:1.055*Math.pow(f,1/2.4)-.055)}function Ga(f){return(f/=255)<=.04045?f/12.92:Math.pow((f+.055)/1.055,2.4)}function zu(f){var y=Ga(f.r),A=Ga(f.g),j=Ga(f.b),re=Ko((.4124564*y+.3575761*A+.1804375*j)/.95047),de=Ko((.2126729*y+.7151522*A+.072175*j)/1);return{l:116*de-16,a:500*(re-de),b:200*(de-Ko((.0193339*y+.119192*A+.9503041*j)/1.08883)),alpha:f.a}}function Ac(f){var y=(f.l+16)/116,A=isNaN(f.a)?y:y+f.a/500,j=isNaN(f.b)?y:y-f.b/200;return y=1*As(y),A=.95047*As(A),j=1.08883*As(j),new Pn(ks(3.2404542*A-1.5371385*y-.4985314*j),ks(-.969266*A+1.8760108*y+.041556*j),ks(.0556434*A-.2040259*y+1.0572252*j),f.alpha)}function vc(f,y,A){var j=y-f;return f+A*(j>180||j<-180?j-360*Math.round(j/360):j)}var ec={forward:zu,reverse:Ac,interpolate:function(f,y,A){return{l:Ns(f.l,y.l,A),a:Ns(f.a,y.a,A),b:Ns(f.b,y.b,A),alpha:Ns(f.alpha,y.alpha,A)}}},qu={forward:function(f){var y=zu(f),A=y.l,j=y.a,re=y.b,de=Math.atan2(re,j)*io;return{h:de<0?de+360:de,c:Math.sqrt(j*j+re*re),l:A,alpha:f.a}},reverse:function(f){var y=f.h*ds,A=f.c;return Ac({l:f.l,a:Math.cos(y)*A,b:Math.sin(y)*A,alpha:f.alpha})},interpolate:function(f,y,A){return{h:vc(f.h,y.h,A),c:Ns(f.c,y.c,A),l:Ns(f.l,y.l,A),alpha:Ns(f.alpha,y.alpha,A)}}},Uu=Object.freeze({__proto__:null,lab:ec,hcl:qu}),zn=function(f,y,A,j,re){this.type=f,this.operator=y,this.interpolation=A,this.input=j,this.labels=[],this.outputs=[];for(var de=0,Ie=re;de1}))return y.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);j={name:"cubic-bezier",controlPoints:Je}}if(f.length-1<4)return y.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if((f.length-1)%2!=0)return y.error("Expected an even number of arguments.");if(!(re=y.parse(re,2,Mi)))return null;var zt=[],un=null;A==="interpolate-hcl"||A==="interpolate-lab"?un=Si:y.expectedType&&y.expectedType.kind!=="value"&&(un=y.expectedType);for(var tr=0;tr=Cr)return y.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Li);var Ao=y.parse(xi,Io,un);if(!Ao)return null;un=un||Ao.type,zt.push([Cr,Ao])}return un.kind==="number"||un.kind==="color"||un.kind==="array"&&un.itemType.kind==="number"&&typeof un.N=="number"?new zn(un,A,j,re,zt):y.error("Type "+rr(un)+" is not interpolatable.")},zn.prototype.evaluate=function(f){var y=this.labels,A=this.outputs;if(y.length===1)return A[0].evaluate(f);var j=this.input.evaluate(f);if(j<=y[0])return A[0].evaluate(f);var re=y.length;if(j>=y[re-1])return A[re-1].evaluate(f);var de=El(y,j),Ie=zn.interpolationFactor(this.interpolation,j,y[de],y[de+1]),Je=A[de].evaluate(f),zt=A[de+1].evaluate(f);return this.operator==="interpolate"?Ca[this.type.kind.toLowerCase()](Je,zt,Ie):this.operator==="interpolate-hcl"?qu.reverse(qu.interpolate(qu.forward(Je),qu.forward(zt),Ie)):ec.reverse(ec.interpolate(ec.forward(Je),ec.forward(zt),Ie))},zn.prototype.eachChild=function(f){f(this.input);for(var y=0,A=this.outputs;y=A.length)throw new Xi("Array index out of bounds: "+y+" > "+(A.length-1)+".");if(y!==Math.floor(y))throw new Xi("Array index must be an integer, but found "+y+" instead.");return A[y]},_i.prototype.eachChild=function(f){f(this.index),f(this.input)},_i.prototype.outputDefined=function(){return!1},_i.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var so=function(f,y){this.type=Yi,this.needle=f,this.haystack=y};so.parse=function(f,y){if(f.length!==3)return y.error("Expected 2 arguments, but found "+(f.length-1)+" instead.");var A=y.parse(f[1],1,qi),j=y.parse(f[2],2,qi);return A&&j?Wr(A.type,[Yi,zi,Mi,qr,qi])?new so(A,j):y.error("Expected first argument to be of type boolean, string, number or null, but found "+rr(A.type)+" instead"):null},so.prototype.evaluate=function(f){var y=this.needle.evaluate(f),A=this.haystack.evaluate(f);if(!A)return!1;if(!no(y,["boolean","string","number","null"]))throw new Xi("Expected first argument to be of type boolean, string, number or null, but found "+rr(tl(y))+" instead.");if(!no(A,["string","array"]))throw new Xi("Expected second argument to be of type array or string, but found "+rr(tl(A))+" instead.");return A.indexOf(y)>=0},so.prototype.eachChild=function(f){f(this.needle),f(this.haystack)},so.prototype.outputDefined=function(){return!0},so.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ui=function(f,y,A){this.type=Mi,this.needle=f,this.haystack=y,this.fromIndex=A};Ui.parse=function(f,y){if(f.length<=2||f.length>=5)return y.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var A=y.parse(f[1],1,qi),j=y.parse(f[2],2,qi);if(!A||!j)return null;if(!Wr(A.type,[Yi,zi,Mi,qr,qi]))return y.error("Expected first argument to be of type boolean, string, number or null, but found "+rr(A.type)+" instead");if(f.length===4){var re=y.parse(f[3],3,Mi);return re?new Ui(A,j,re):null}return new Ui(A,j)},Ui.prototype.evaluate=function(f){var y=this.needle.evaluate(f),A=this.haystack.evaluate(f);if(!no(y,["boolean","string","number","null"]))throw new Xi("Expected first argument to be of type boolean, string, number or null, but found "+rr(tl(y))+" instead.");if(!no(A,["string","array"]))throw new Xi("Expected second argument to be of type array or string, but found "+rr(tl(A))+" instead.");if(this.fromIndex){var j=this.fromIndex.evaluate(f);return A.indexOf(y,j)}return A.indexOf(y)},Ui.prototype.eachChild=function(f){f(this.needle),f(this.haystack),this.fromIndex&&f(this.fromIndex)},Ui.prototype.outputDefined=function(){return!1},Ui.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var f=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),f]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var hs=function(f,y,A,j,re,de){this.inputType=f,this.type=y,this.input=A,this.cases=j,this.outputs=re,this.otherwise=de};hs.parse=function(f,y){if(f.length<5)return y.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if(f.length%2!=1)return y.error("Expected an even number of arguments.");var A,j;y.expectedType&&y.expectedType.kind!=="value"&&(j=y.expectedType);for(var re={},de=[],Ie=2;IeNumber.MAX_SAFE_INTEGER)return un.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof xi=="number"&&Math.floor(xi)!==xi)return un.error("Numeric branch labels must be integer values.");if(A){if(un.checkSubtype(A,tl(xi)))return null}else A=tl(xi);if(re[String(xi)]!==void 0)return un.error("Branch labels must be unique.");re[String(xi)]=de.length}var Li=y.parse(zt,Ie,j);if(!Li)return null;j=j||Li.type,de.push(Li)}var Io=y.parse(f[1],1,qi);if(!Io)return null;var Ao=y.parse(f[f.length-1],f.length-1,j);return Ao?Io.type.kind!=="value"&&y.concat(1).checkSubtype(A,Io.type)?null:new hs(A,j,Io,re,de,Ao):null},hs.prototype.evaluate=function(f){var y=this.input.evaluate(f);return(tl(y)===this.inputType&&this.outputs[this.cases[y]]||this.otherwise).evaluate(f)},hs.prototype.eachChild=function(f){f(this.input),this.outputs.forEach(f),f(this.otherwise)},hs.prototype.outputDefined=function(){return this.outputs.every(function(f){return f.outputDefined()})&&this.otherwise.outputDefined()},hs.prototype.serialize=function(){for(var f=this,y=["match",this.input.serialize()],A=[],j={},re=0,de=Object.keys(this.cases).sort();re=5)return y.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var A=y.parse(f[1],1,qi),j=y.parse(f[2],2,Mi);if(!A||!j)return null;if(!Wr(A.type,[Mr(qi),zi,qi]))return y.error("Expected first argument to be of type array or string, but found "+rr(A.type)+" instead");if(f.length===4){var re=y.parse(f[3],3,Mi);return re?new Ka(A.type,A,j,re):null}return new Ka(A.type,A,j)},Ka.prototype.evaluate=function(f){var y=this.input.evaluate(f),A=this.beginIndex.evaluate(f);if(!no(y,["string","array"]))throw new Xi("Expected first argument to be of type array or string, but found "+rr(tl(y))+" instead.");if(this.endIndex){var j=this.endIndex.evaluate(f);return y.slice(A,j)}return y.slice(A)},Ka.prototype.eachChild=function(f){f(this.input),f(this.beginIndex),this.endIndex&&f(this.endIndex)},Ka.prototype.outputDefined=function(){return!1},Ka.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var f=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),f]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Va=kl("==",function(f,y,A){return y===A},hl),Xu=kl("!=",function(f,y,A){return y!==A},function(f,y,A,j){return!hl(0,y,A,j)}),Na=kl("<",function(f,y,A){return y",function(f,y,A){return y>A},function(f,y,A,j){return j.compare(y,A)>0}),ll=kl("<=",function(f,y,A){return y<=A},function(f,y,A,j){return j.compare(y,A)<=0}),Pu=kl(">=",function(f,y,A){return y>=A},function(f,y,A,j){return j.compare(y,A)>=0}),Gl=function(f,y,A,j,re){this.type=zi,this.number=f,this.locale=y,this.currency=A,this.minFractionDigits=j,this.maxFractionDigits=re};Gl.parse=function(f,y){if(f.length!==3)return y.error("Expected two arguments.");var A=y.parse(f[1],1,Mi);if(!A)return null;var j=f[2];if(typeof j!="object"||Array.isArray(j))return y.error("NumberFormat options argument must be an object.");var re=null;if(j.locale&&!(re=y.parse(j.locale,1,zi)))return null;var de=null;if(j.currency&&!(de=y.parse(j.currency,1,zi)))return null;var Ie=null;if(j["min-fraction-digits"]&&!(Ie=y.parse(j["min-fraction-digits"],1,Mi)))return null;var Je=null;return j["max-fraction-digits"]&&!(Je=y.parse(j["max-fraction-digits"],1,Mi))?null:new Gl(A,re,de,Ie,Je)},Gl.prototype.evaluate=function(f){return new Intl.NumberFormat(this.locale?this.locale.evaluate(f):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(f):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(f):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(f):void 0}).format(this.number.evaluate(f))},Gl.prototype.eachChild=function(f){f(this.number),this.locale&&f(this.locale),this.currency&&f(this.currency),this.minFractionDigits&&f(this.minFractionDigits),this.maxFractionDigits&&f(this.maxFractionDigits)},Gl.prototype.outputDefined=function(){return!1},Gl.prototype.serialize=function(){var f={};return this.locale&&(f.locale=this.locale.serialize()),this.currency&&(f.currency=this.currency.serialize()),this.minFractionDigits&&(f["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(f["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),f]};var fu=function(f){this.type=Mi,this.input=f};fu.parse=function(f,y){if(f.length!==2)return y.error("Expected 1 argument, but found "+(f.length-1)+" instead.");var A=y.parse(f[1],1);return A?A.type.kind!=="array"&&A.type.kind!=="string"&&A.type.kind!=="value"?y.error("Expected argument of type string or array, but found "+rr(A.type)+" instead."):new fu(A):null},fu.prototype.evaluate=function(f){var y=this.input.evaluate(f);if(typeof y=="string"||Array.isArray(y))return y.length;throw new Xi("Expected value to be of type string or array, but found "+rr(tl(y))+" instead.")},fu.prototype.eachChild=function(f){f(this.input)},fu.prototype.outputDefined=function(){return!1},fu.prototype.serialize=function(){var f=["length"];return this.eachChild(function(y){f.push(y.serialize())}),f};var Bl={"==":Va,"!=":Xu,">":Aa,"<":Na,">=":Pu,"<=":ll,array:No,at:_i,boolean:No,case:ra,coalesce:Zr,collator:Tn,format:yr,image:ui,in:so,"index-of":Ui,interpolate:zn,"interpolate-hcl":zn,"interpolate-lab":zn,length:fu,let:Jr,literal:Ai,match:hs,number:No,"number-format":Gl,object:No,slice:Ka,step:Dl,string:No,"to-boolean":ns,"to-color":ns,"to-number":ns,"to-string":ns,var:ma,within:Js};function lu(f,y){var A=y[0],j=y[1],re=y[2],de=y[3];A=A.evaluate(f),j=j.evaluate(f),re=re.evaluate(f);var Ie=de?de.evaluate(f):1,Je=al(A,j,re,Ie);if(Je)throw new Xi(Je);return new Pn(A/255*Ie,j/255*Ie,re/255*Ie,Ie)}function Ln(f,y){return f in y}function es(f,y){var A=y[f];return A===void 0?null:A}function Is(f){return{type:f}}function Qs(f){return{result:"success",value:f}}function dl(f){return{result:"error",value:f}}function uu(f){return f["property-type"]==="data-driven"||f["property-type"]==="cross-faded-data-driven"}function Jl(f){return!!f.expression&&f.expression.parameters.indexOf("zoom")>-1}function xu(f){return!!f.expression&&f.expression.interpolated}function Tu(f){return f instanceof Number?"number":f instanceof String?"string":f instanceof Boolean?"boolean":Array.isArray(f)?"array":f===null?"null":typeof f}function tc(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)}function zc(f){return f}function Rc(f,y,A){return f!==void 0?f:y!==void 0?y:A!==void 0?A:void 0}function Ah(f,y,A,j,re){return Rc(typeof A===re?j[A]:void 0,f.default,y.default)}function Td(f,y,A){if(Tu(A)!=="number")return Rc(f.default,y.default);var j=f.stops.length;if(j===1||A<=f.stops[0][0])return f.stops[0][1];if(A>=f.stops[j-1][0])return f.stops[j-1][1];var re=El(f.stops.map(function(de){return de[0]}),A);return f.stops[re][1]}function ld(f,y,A){var j=f.base!==void 0?f.base:1;if(Tu(A)!=="number")return Rc(f.default,y.default);var re=f.stops.length;if(re===1||A<=f.stops[0][0])return f.stops[0][1];if(A>=f.stops[re-1][0])return f.stops[re-1][1];var de=El(f.stops.map(function(Cr){return Cr[0]}),A),Ie=function(Cr,xi,Li,Io){var Ao=Io-Li,Xo=Cr-Li;return Ao===0?0:xi===1?Xo/Ao:(Math.pow(xi,Xo)-1)/(Math.pow(xi,Ao)-1)}(A,j,f.stops[de][0],f.stops[de+1][0]),Je=f.stops[de][1],zt=f.stops[de+1][1],un=Ca[y.type]||zc;if(f.colorSpace&&f.colorSpace!=="rgb"){var tr=Uu[f.colorSpace];un=function(Cr,xi){return tr.reverse(tr.interpolate(tr.forward(Cr),tr.forward(xi),Ie))}}return typeof Je.evaluate=="function"?{evaluate:function(){for(var Cr=[],xi=arguments.length;xi--;)Cr[xi]=arguments[xi];var Li=Je.evaluate.apply(void 0,Cr),Io=zt.evaluate.apply(void 0,Cr);if(Li!==void 0&&Io!==void 0)return un(Li,Io,Ie)}}:un(Je,zt,Ie)}function ph(f,y,A){return y.type==="color"?A=Pn.parse(A):y.type==="formatted"?A=Zs.fromString(A.toString()):y.type==="resolvedImage"?A=qs.fromString(A.toString()):Tu(A)===y.type||y.type==="enum"&&y.values[A]||(A=void 0),Rc(A,f.default,y.default)}hn.register(Bl,{error:[{kind:"error"},[zi],function(f,y){throw new Xi(y[0].evaluate(f))}],typeof:[zi,[qi],function(f,y){return rr(tl(y[0].evaluate(f)))}],"to-rgba":[Mr(Mi,4),[Si],function(f,y){return y[0].evaluate(f).toArray()}],rgb:[Si,[Mi,Mi,Mi],lu],rgba:[Si,[Mi,Mi,Mi,Mi],lu],has:{type:Yi,overloads:[[[zi],function(f,y){return Ln(y[0].evaluate(f),f.properties())}],[[zi,ni],function(f,y){var A=y[1];return Ln(y[0].evaluate(f),A.evaluate(f))}]]},get:{type:qi,overloads:[[[zi],function(f,y){return es(y[0].evaluate(f),f.properties())}],[[zi,ni],function(f,y){var A=y[1];return es(y[0].evaluate(f),A.evaluate(f))}]]},"feature-state":[qi,[zi],function(f,y){return es(y[0].evaluate(f),f.featureState||{})}],properties:[ni,[],function(f){return f.properties()}],"geometry-type":[zi,[],function(f){return f.geometryType()}],id:[qi,[],function(f){return f.id()}],zoom:[Mi,[],function(f){return f.globals.zoom}],"heatmap-density":[Mi,[],function(f){return f.globals.heatmapDensity||0}],"line-progress":[Mi,[],function(f){return f.globals.lineProgress||0}],accumulated:[qi,[],function(f){return f.globals.accumulated===void 0?null:f.globals.accumulated}],"+":[Mi,Is(Mi),function(f,y){for(var A=0,j=0,re=y;j":[Yi,[zi,qi],function(f,y){var A=y[0],j=y[1],re=f.properties()[A.value],de=j.value;return typeof re==typeof de&&re>de}],"filter-id->":[Yi,[qi],function(f,y){var A=y[0],j=f.id(),re=A.value;return typeof j==typeof re&&j>re}],"filter-<=":[Yi,[zi,qi],function(f,y){var A=y[0],j=y[1],re=f.properties()[A.value],de=j.value;return typeof re==typeof de&&re<=de}],"filter-id-<=":[Yi,[qi],function(f,y){var A=y[0],j=f.id(),re=A.value;return typeof j==typeof re&&j<=re}],"filter->=":[Yi,[zi,qi],function(f,y){var A=y[0],j=y[1],re=f.properties()[A.value],de=j.value;return typeof re==typeof de&&re>=de}],"filter-id->=":[Yi,[qi],function(f,y){var A=y[0],j=f.id(),re=A.value;return typeof j==typeof re&&j>=re}],"filter-has":[Yi,[qi],function(f,y){return y[0].value in f.properties()}],"filter-has-id":[Yi,[],function(f){return f.id()!==null&&f.id()!==void 0}],"filter-type-in":[Yi,[Mr(zi)],function(f,y){return y[0].value.indexOf(f.geometryType())>=0}],"filter-id-in":[Yi,[Mr(qi)],function(f,y){return y[0].value.indexOf(f.id())>=0}],"filter-in-small":[Yi,[zi,Mr(qi)],function(f,y){var A=y[0];return y[1].value.indexOf(f.properties()[A.value])>=0}],"filter-in-large":[Yi,[zi,Mr(qi)],function(f,y){var A=y[0],j=y[1];return function(re,de,Ie,Je){for(;Ie<=Je;){var zt=Ie+Je>>1;if(de[zt]===re)return!0;de[zt]>re?Je=zt-1:Ie=zt+1}return!1}(f.properties()[A.value],j.value,0,j.value.length-1)}],all:{type:Yi,overloads:[[[Yi,Yi],function(f,y){var A=y[1];return y[0].evaluate(f)&&A.evaluate(f)}],[Is(Yi),function(f,y){for(var A=0,j=y;A0&&typeof f[0]=="string"&&f[0]in Bl}function Hh(f,y){var A=new va(Bl,[],y?function(re){var de={color:Si,string:zi,number:Mi,enum:zi,boolean:Yi,formatted:ii,resolvedImage:nr};return re.type==="array"?Mr(de[re.value]||qi,re.length):de[re.type]}(y):void 0),j=A.parse(f,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return j?Qs(new lc(j,y)):dl(A.errors)}lc.prototype.evaluateWithoutErrorHandling=function(f,y,A,j,re,de){return this._evaluator.globals=f,this._evaluator.feature=y,this._evaluator.featureState=A,this._evaluator.canonical=j,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=de,this.expression.evaluate(this._evaluator)},lc.prototype.evaluate=function(f,y,A,j,re,de){this._evaluator.globals=f,this._evaluator.feature=y||null,this._evaluator.featureState=A||null,this._evaluator.canonical=j,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=de||null;try{var Ie=this.expression.evaluate(this._evaluator);if(Ie==null||typeof Ie=="number"&&Ie!=Ie)return this._defaultValue;if(this._enumValues&&!(Ie in this._enumValues))throw new Xi("Expected value to be one of "+Object.keys(this._enumValues).map(function(Je){return JSON.stringify(Je)}).join(", ")+", but found "+JSON.stringify(Ie)+" instead.");return Ie}catch(Je){return this._warningHistory[Je.message]||(this._warningHistory[Je.message]=!0,typeof console!="undefined"&&console.warn(Je.message)),this._defaultValue}};var xh=function(f,y){this.kind=f,this._styleExpression=y,this.isStateDependent=f!=="constant"&&!Po(y.expression)};xh.prototype.evaluateWithoutErrorHandling=function(f,y,A,j,re,de){return this._styleExpression.evaluateWithoutErrorHandling(f,y,A,j,re,de)},xh.prototype.evaluate=function(f,y,A,j,re,de){return this._styleExpression.evaluate(f,y,A,j,re,de)};var Cd=function(f,y,A,j){this.kind=f,this.zoomStops=A,this._styleExpression=y,this.isStateDependent=f!=="camera"&&!Po(y.expression),this.interpolationType=j};function md(f,y){if((f=Hh(f,y)).result==="error")return f;var A=f.value.expression,j=Hs(A);if(!j&&!uu(y))return dl([new xn("","data expressions not supported")]);var re=zs(A,["zoom"]);if(!re&&!Jl(y))return dl([new xn("","zoom expressions not supported")]);var de=function Ie(Je){var zt=null;if(Je instanceof Jr)zt=Ie(Je.result);else if(Je instanceof Zr)for(var un=0,tr=Je.args;unj.maximum?[new $n(y,A,A+" is greater than the maximum value "+j.maximum)]:[]}function ap(f){var y,A,j,re=f.valueSpec,de=_o(f.value.type),Ie={},Je=de!=="categorical"&&f.value.property===void 0,zt=!Je,un=Tu(f.value.stops)==="array"&&Tu(f.value.stops[0])==="array"&&Tu(f.value.stops[0][0])==="object",tr=zd({key:f.key,value:f.value,valueSpec:f.styleSpec.function,style:f.style,styleSpec:f.styleSpec,objectElementValidators:{stops:function(Li){if(de==="identity")return[new $n(Li.key,Li.value,'identity function may not have a "stops" property')];var Io=[],Ao=Li.value;return Io=Io.concat(Dh({key:Li.key,value:Ao,valueSpec:Li.valueSpec,style:Li.style,styleSpec:Li.styleSpec,arrayElementValidator:Cr})),Tu(Ao)==="array"&&Ao.length===0&&Io.push(new $n(Li.key,Ao,"array must have at least one stop")),Io},default:function(Li){return Wu({key:Li.key,value:Li.value,valueSpec:re,style:Li.style,styleSpec:Li.styleSpec})}}});return de==="identity"&&Je&&tr.push(new $n(f.key,f.value,'missing required property "property"')),de==="identity"||f.value.stops||tr.push(new $n(f.key,f.value,'missing required property "stops"')),de==="exponential"&&f.valueSpec.expression&&!xu(f.valueSpec)&&tr.push(new $n(f.key,f.value,"exponential functions not supported")),f.styleSpec.$version>=8&&(zt&&!uu(f.valueSpec)?tr.push(new $n(f.key,f.value,"property functions not supported")):Je&&!Jl(f.valueSpec)&&tr.push(new $n(f.key,f.value,"zoom functions not supported"))),de!=="categorical"&&!un||f.value.property!==void 0||tr.push(new $n(f.key,f.value,'"property" property is required')),tr;function Cr(Li){var Io=[],Ao=Li.value,Xo=Li.key;if(Tu(Ao)!=="array")return[new $n(Xo,Ao,"array expected, "+Tu(Ao)+" found")];if(Ao.length!==2)return[new $n(Xo,Ao,"array length 2 expected, length "+Ao.length+" found")];if(un){if(Tu(Ao[0])!=="object")return[new $n(Xo,Ao,"object expected, "+Tu(Ao[0])+" found")];if(Ao[0].zoom===void 0)return[new $n(Xo,Ao,"object stop key must have zoom")];if(Ao[0].value===void 0)return[new $n(Xo,Ao,"object stop key must have value")];if(j&&j>_o(Ao[0].zoom))return[new $n(Xo,Ao[0].zoom,"stop zoom values must appear in ascending order")];_o(Ao[0].zoom)!==j&&(j=_o(Ao[0].zoom),A=void 0,Ie={}),Io=Io.concat(zd({key:Xo+"[0]",value:Ao[0],valueSpec:{zoom:{}},style:Li.style,styleSpec:Li.styleSpec,objectElementValidators:{zoom:gh,value:xi}}))}else Io=Io.concat(xi({key:Xo+"[0]",value:Ao[0],valueSpec:{},style:Li.style,styleSpec:Li.styleSpec},Ao));return xc(Qt(Ao[1]))?Io.concat([new $n(Xo+"[1]",Ao[1],"expressions are not allowed in function stops.")]):Io.concat(Wu({key:Xo+"[1]",value:Ao[1],valueSpec:re,style:Li.style,styleSpec:Li.styleSpec}))}function xi(Li,Io){var Ao=Tu(Li.value),Xo=_o(Li.value),Ro=Li.value!==null?Li.value:Io;if(y){if(Ao!==y)return[new $n(Li.key,Ro,Ao+" stop domain type must match previous stop domain type "+y)]}else y=Ao;if(Ao!=="number"&&Ao!=="string"&&Ao!=="boolean")return[new $n(Li.key,Ro,"stop domain value must be a number, string, or boolean")];if(Ao!=="number"&&de!=="categorical"){var po="number expected, "+Ao+" found";return uu(re)&&de===void 0&&(po+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new $n(Li.key,Ro,po)]}return de!=="categorical"||Ao!=="number"||isFinite(Xo)&&Math.floor(Xo)===Xo?de!=="categorical"&&Ao==="number"&&A!==void 0&&Xo=2&&f[1]!=="$id"&&f[1]!=="$type";case"in":return f.length>=3&&(typeof f[1]!="string"||Array.isArray(f[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return f.length!==3||Array.isArray(f[1])||Array.isArray(f[2]);case"any":case"all":for(var y=0,A=f.slice(1);yy?1:0}function Qf(f){if(!f)return!0;var y,A=f[0];return f.length<=1?A!=="any":A==="=="?ep(f[1],f[2],"=="):A==="!="?jd(ep(f[1],f[2],"==")):A==="<"||A===">"||A==="<="||A===">="?ep(f[1],f[2],A):A==="any"?(y=f.slice(1),["any"].concat(y.map(Qf))):A==="all"?["all"].concat(f.slice(1).map(Qf)):A==="none"?["all"].concat(f.slice(1).map(Qf).map(jd)):A==="in"?tp(f[1],f.slice(2)):A==="!in"?jd(tp(f[1],f.slice(2))):A==="has"?Ad(f[1]):A==="!has"?jd(Ad(f[1])):A!=="within"||f}function ep(f,y,A){switch(f){case"$type":return["filter-type-"+A,y];case"$id":return["filter-id-"+A,y];default:return["filter-"+A,f,y]}}function tp(f,y){if(y.length===0)return!1;switch(f){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(A){return typeof A!=typeof y[0]})?["filter-in-large",f,["literal",y.sort(Of)]]:["filter-in-small",f,["literal",y]]}}function Ad(f){switch(f){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",f]}}function jd(f){return["!",f]}function Su(f){return oh(Qt(f.value))?pd(Br({},f,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function y(A){var j=A.value,re=A.key;if(Tu(j)!=="array")return[new $n(re,j,"array expected, "+Tu(j)+" found")];var de,Ie=A.styleSpec,Je=[];if(j.length<1)return[new $n(re,j,"filter array must have at least 1 element")];switch(Je=Je.concat(Nu({key:re+"[0]",value:j[0],valueSpec:Ie.filter_operator,style:A.style,styleSpec:A.styleSpec})),_o(j[0])){case"<":case"<=":case">":case">=":j.length>=2&&_o(j[1])==="$type"&&Je.push(new $n(re,j,'"$type" cannot be use with operator "'+j[0]+'"'));case"==":case"!=":j.length!==3&&Je.push(new $n(re,j,'filter array for operator "'+j[0]+'" must have 3 elements'));case"in":case"!in":j.length>=2&&(de=Tu(j[1]))!=="string"&&Je.push(new $n(re+"[1]",j[1],"string expected, "+de+" found"));for(var zt=2;zt=tr[Li+0]&&j>=tr[Li+1])?(Ie[xi]=!0,de.push(un[xi])):Ie[xi]=!1}}},wh.prototype._forEachCell=function(f,y,A,j,re,de,Ie,Je){for(var zt=this._convertToCellCoord(f),un=this._convertToCellCoord(y),tr=this._convertToCellCoord(A),Cr=this._convertToCellCoord(j),xi=zt;xi<=tr;xi++)for(var Li=un;Li<=Cr;Li++){var Io=this.d*Li+xi;if((!Je||Je(this._convertFromCellCoord(xi),this._convertFromCellCoord(Li),this._convertFromCellCoord(xi+1),this._convertFromCellCoord(Li+1)))&&re.call(this,f,y,A,j,Io,de,Ie,Je))return}},wh.prototype._convertFromCellCoord=function(f){return(f-this.padding)/this.scale},wh.prototype._convertToCellCoord=function(f){return Math.max(0,Math.min(this.d-1,Math.floor(f*this.scale)+this.padding))},wh.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var f=this.cells,y=3+this.cells.length+1+1,A=0,j=0;j=0)){var tr=f[un];zt[un]=Wc[Je].shallow.indexOf(un)>=0?tr:_c(tr,y)}f instanceof Error&&(zt.message=f.message)}if(zt.$name)throw new Error("$name property is reserved for worker serialization logic.");return Je!=="Object"&&(zt.$name=Je),zt}throw new Error("can't serialize object of type "+typeof f)}function Wi(f){if(f==null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||f instanceof Boolean||f instanceof Number||f instanceof String||f instanceof Date||f instanceof RegExp||Il(f)||gs(f)||ArrayBuffer.isView(f)||f instanceof Tf)return f;if(Array.isArray(f))return f.map(Wi);if(typeof f=="object"){var y=f.$name||"Object",A=Wc[y].klass;if(!A)throw new Error("can't deserialize unregistered class "+y);if(A.deserialize)return A.deserialize(f);for(var j=Object.create(A.prototype),re=0,de=Object.keys(f);re=0?Je:Wi(Je)}}return j}throw new Error("can't deserialize object of type "+typeof f)}var fg=function(){this.first=!0};fg.prototype.update=function(f,y){var A=Math.floor(f);return this.first?(this.first=!1,this.lastIntegerZoom=A,this.lastIntegerZoomTime=0,this.lastZoom=f,this.lastFloorZoom=A,!0):(this.lastFloorZoom>A?(this.lastIntegerZoom=A+1,this.lastIntegerZoomTime=y):this.lastFloorZoom=128&&f<=255},Arabic:function(f){return f>=1536&&f<=1791},"Arabic Supplement":function(f){return f>=1872&&f<=1919},"Arabic Extended-A":function(f){return f>=2208&&f<=2303},"Hangul Jamo":function(f){return f>=4352&&f<=4607},"Unified Canadian Aboriginal Syllabics":function(f){return f>=5120&&f<=5759},Khmer:function(f){return f>=6016&&f<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(f){return f>=6320&&f<=6399},"General Punctuation":function(f){return f>=8192&&f<=8303},"Letterlike Symbols":function(f){return f>=8448&&f<=8527},"Number Forms":function(f){return f>=8528&&f<=8591},"Miscellaneous Technical":function(f){return f>=8960&&f<=9215},"Control Pictures":function(f){return f>=9216&&f<=9279},"Optical Character Recognition":function(f){return f>=9280&&f<=9311},"Enclosed Alphanumerics":function(f){return f>=9312&&f<=9471},"Geometric Shapes":function(f){return f>=9632&&f<=9727},"Miscellaneous Symbols":function(f){return f>=9728&&f<=9983},"Miscellaneous Symbols and Arrows":function(f){return f>=11008&&f<=11263},"CJK Radicals Supplement":function(f){return f>=11904&&f<=12031},"Kangxi Radicals":function(f){return f>=12032&&f<=12255},"Ideographic Description Characters":function(f){return f>=12272&&f<=12287},"CJK Symbols and Punctuation":function(f){return f>=12288&&f<=12351},Hiragana:function(f){return f>=12352&&f<=12447},Katakana:function(f){return f>=12448&&f<=12543},Bopomofo:function(f){return f>=12544&&f<=12591},"Hangul Compatibility Jamo":function(f){return f>=12592&&f<=12687},Kanbun:function(f){return f>=12688&&f<=12703},"Bopomofo Extended":function(f){return f>=12704&&f<=12735},"CJK Strokes":function(f){return f>=12736&&f<=12783},"Katakana Phonetic Extensions":function(f){return f>=12784&&f<=12799},"Enclosed CJK Letters and Months":function(f){return f>=12800&&f<=13055},"CJK Compatibility":function(f){return f>=13056&&f<=13311},"CJK Unified Ideographs Extension A":function(f){return f>=13312&&f<=19903},"Yijing Hexagram Symbols":function(f){return f>=19904&&f<=19967},"CJK Unified Ideographs":function(f){return f>=19968&&f<=40959},"Yi Syllables":function(f){return f>=40960&&f<=42127},"Yi Radicals":function(f){return f>=42128&&f<=42191},"Hangul Jamo Extended-A":function(f){return f>=43360&&f<=43391},"Hangul Syllables":function(f){return f>=44032&&f<=55215},"Hangul Jamo Extended-B":function(f){return f>=55216&&f<=55295},"Private Use Area":function(f){return f>=57344&&f<=63743},"CJK Compatibility Ideographs":function(f){return f>=63744&&f<=64255},"Arabic Presentation Forms-A":function(f){return f>=64336&&f<=65023},"Vertical Forms":function(f){return f>=65040&&f<=65055},"CJK Compatibility Forms":function(f){return f>=65072&&f<=65103},"Small Form Variants":function(f){return f>=65104&&f<=65135},"Arabic Presentation Forms-B":function(f){return f>=65136&&f<=65279},"Halfwidth and Fullwidth Forms":function(f){return f>=65280&&f<=65519}};function nh(f){for(var y=0,A=f;y=65097&&f<=65103)||uc["CJK Compatibility Ideographs"](f)||uc["CJK Compatibility"](f)||uc["CJK Radicals Supplement"](f)||uc["CJK Strokes"](f)||!(!uc["CJK Symbols and Punctuation"](f)||f>=12296&&f<=12305||f>=12308&&f<=12319||f===12336)||uc["CJK Unified Ideographs Extension A"](f)||uc["CJK Unified Ideographs"](f)||uc["Enclosed CJK Letters and Months"](f)||uc["Hangul Compatibility Jamo"](f)||uc["Hangul Jamo Extended-A"](f)||uc["Hangul Jamo Extended-B"](f)||uc["Hangul Jamo"](f)||uc["Hangul Syllables"](f)||uc.Hiragana(f)||uc["Ideographic Description Characters"](f)||uc.Kanbun(f)||uc["Kangxi Radicals"](f)||uc["Katakana Phonetic Extensions"](f)||uc.Katakana(f)&&f!==12540||!(!uc["Halfwidth and Fullwidth Forms"](f)||f===65288||f===65289||f===65293||f>=65306&&f<=65310||f===65339||f===65341||f===65343||f>=65371&&f<=65503||f===65507||f>=65512&&f<=65519)||!(!uc["Small Form Variants"](f)||f>=65112&&f<=65118||f>=65123&&f<=65126)||uc["Unified Canadian Aboriginal Syllabics"](f)||uc["Unified Canadian Aboriginal Syllabics Extended"](f)||uc["Vertical Forms"](f)||uc["Yijing Hexagram Symbols"](f)||uc["Yi Syllables"](f)||uc["Yi Radicals"](f))))}function qp(f){return!(Dp(f)||function(y){return!!(uc["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||uc["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||uc["Letterlike Symbols"](y)||uc["Number Forms"](y)||uc["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||uc["Control Pictures"](y)&&y!==9251||uc["Optical Character Recognition"](y)||uc["Enclosed Alphanumerics"](y)||uc["Geometric Shapes"](y)||uc["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||uc["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||uc["CJK Symbols and Punctuation"](y)||uc.Katakana(y)||uc["Private Use Area"](y)||uc["CJK Compatibility Forms"](y)||uc["Small Form Variants"](y)||uc["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}(f))}function Ng(f){return f>=1424&&f<=2303||uc["Arabic Presentation Forms-A"](f)||uc["Arabic Presentation Forms-B"](f)}function df(f,y){return!(!y&&Ng(f)||f>=2304&&f<=3583||f>=3840&&f<=4255||uc.Khmer(f))}function mp(f){for(var y=0,A=f;y-1&&(dp="error"),Jp&&Jp(f)};function lp(){Ph.fire(new Tr("pluginStateChange",{pluginStatus:dp,pluginURL:Eg}))}var Ph=new Zn,Ip=function(){return dp},pg=function(){if(dp!=="deferred"||!Eg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");dp="loading",lp(),Eg&&cr({url:Eg},function(f){f?np(f):(dp="loaded",lp())})},Wp={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return dp==="loaded"||Wp.applyArabicShaping!=null},isLoading:function(){return dp==="loading"},setState:function(f){dp=f.pluginStatus,Eg=f.pluginURL},isParsed:function(){return Wp.applyArabicShaping!=null&&Wp.processBidirectionalText!=null&&Wp.processStyledBidirectionalText!=null},getPluginURL:function(){return Eg}},ud=function(f,y){this.zoom=f,y?(this.now=y.now,this.fadeDuration=y.fadeDuration,this.zoomHistory=y.zoomHistory,this.transition=y.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new fg,this.transition={})};ud.prototype.isSupportedScript=function(f){return function(y,A){for(var j=0,re=y;jthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:y+(1-y)*A}:{fromScale:.5,toScale:1,t:1-(1-A)*y}};var rg=function(f,y){this.property=f,this.value=y,this.expression=function(A,j){if(tc(A))return new Bd(A,j);if(xc(A)){var re=md(A,j);if(re.result==="error")throw new Error(re.value.map(function(Ie){return Ie.key+": "+Ie.message}).join(", "));return re.value}var de=A;return typeof A=="string"&&j.type==="color"&&(de=Pn.parse(A)),{kind:"constant",evaluate:function(){return de}}}(y===void 0?f.specification.default:y,f.specification)};rg.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},rg.prototype.possiblyEvaluate=function(f,y,A){return this.property.possiblyEvaluate(this,f,y,A)};var Wh=function(f){this.property=f,this.value=new rg(f,void 0)};Wh.prototype.transitioned=function(f,y){return new up(this.property,this.value,y,ae({},f.transition,this.transition),f.now)},Wh.prototype.untransitioned=function(){return new up(this.property,this.value,null,{},0)};var wf=function(f){this._properties=f,this._values=Object.create(f.defaultTransitionablePropertyValues)};wf.prototype.getValue=function(f){return Se(this._values[f].value.value)},wf.prototype.setValue=function(f,y){this._values.hasOwnProperty(f)||(this._values[f]=new Wh(this._values[f].property)),this._values[f].value=new rg(this._values[f].property,y===null?void 0:Se(y))},wf.prototype.getTransition=function(f){return Se(this._values[f].transition)},wf.prototype.setTransition=function(f,y){this._values.hasOwnProperty(f)||(this._values[f]=new Wh(this._values[f].property)),this._values[f].transition=Se(y)||void 0},wf.prototype.serialize=function(){for(var f={},y=0,A=Object.keys(this._values);ythis.end)return this.prior=null,re;if(this.value.isDataDriven())return this.prior=null,re;if(j=1)return 1;var zt=Je*Je,un=zt*Je;return 4*(Je<.5?un:3*(Je-zt)+un-.75)}(Ie))}return re};var Cu=function(f){this._properties=f,this._values=Object.create(f.defaultTransitioningPropertyValues)};Cu.prototype.possiblyEvaluate=function(f,y,A){for(var j=new zf(this._properties),re=0,de=Object.keys(this._values);rede.zoomHistory.lastIntegerZoom?{from:A,to:j}:{from:re,to:j}},y.prototype.interpolate=function(A){return A},y}(Mh),_h=function(f){this.specification=f};_h.prototype.possiblyEvaluate=function(f,y,A,j){if(f.value!==void 0){if(f.expression.kind==="constant"){var re=f.expression.evaluate(y,null,{},A,j);return this._calculate(re,re,re,y)}return this._calculate(f.expression.evaluate(new ud(Math.floor(y.zoom-1),y)),f.expression.evaluate(new ud(Math.floor(y.zoom),y)),f.expression.evaluate(new ud(Math.floor(y.zoom+1),y)),y)}},_h.prototype._calculate=function(f,y,A,j){return j.zoom>j.zoomHistory.lastIntegerZoom?{from:f,to:y}:{from:A,to:y}},_h.prototype.interpolate=function(f){return f};var ff=function(f){this.specification=f};ff.prototype.possiblyEvaluate=function(f,y,A,j){return!!f.expression.evaluate(y,null,{},A,j)},ff.prototype.interpolate=function(){return!1};var vp=function(f){for(var y in this.properties=f,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],f){var A=f[y];A.specification.overridable&&this.overridableProperties.push(y);var j=this.defaultPropertyValues[y]=new rg(A,void 0),re=this.defaultTransitionablePropertyValues[y]=new Wh(A);this.defaultTransitioningPropertyValues[y]=re.untransitioned(),this.defaultPossiblyEvaluatedValues[y]=j.possiblyEvaluate({})}};Gc("DataDrivenProperty",Mh),Gc("DataConstantProperty",Th),Gc("CrossFadedDataDrivenProperty",Lh),Gc("CrossFadedProperty",_h),Gc("ColorRampProperty",ff);var ig=function(f){function y(A,j){if(f.call(this),this.id=A.id,this.type=A.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},A.type!=="custom"&&(this.metadata=(A=A).metadata,this.minzoom=A.minzoom,this.maxzoom=A.maxzoom,A.type!=="background"&&(this.source=A.source,this.sourceLayer=A["source-layer"],this.filter=A.filter),j.layout&&(this._unevaluatedLayout=new kp(j.layout)),j.paint)){for(var re in this._transitionablePaint=new wf(j.paint),A.paint)this.setPaintProperty(re,A.paint[re],{validate:!1});for(var de in A.layout)this.setLayoutProperty(de,A.layout[de],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new zf(j.paint)}}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(A){return A==="visibility"?this.visibility:this._unevaluatedLayout.getValue(A)},y.prototype.setLayoutProperty=function(A,j,re){re===void 0&&(re={}),j!=null&&this._validate(tf,"layers."+this.id+".layout."+A,A,j,re)||(A!=="visibility"?this._unevaluatedLayout.setValue(A,j):this.visibility=j)},y.prototype.getPaintProperty=function(A){return We(A,"-transition")?this._transitionablePaint.getTransition(A.slice(0,-11)):this._transitionablePaint.getValue(A)},y.prototype.setPaintProperty=function(A,j,re){if(re===void 0&&(re={}),j!=null&&this._validate(If,"layers."+this.id+".paint."+A,A,j,re))return!1;if(We(A,"-transition"))return this._transitionablePaint.setTransition(A.slice(0,-11),j||void 0),!1;var de=this._transitionablePaint._values[A],Ie=de.property.specification["property-type"]==="cross-faded-data-driven",Je=de.value.isDataDriven(),zt=de.value;this._transitionablePaint.setValue(A,j),this._handleSpecialPaintPropertyUpdate(A);var un=this._transitionablePaint._values[A].value;return un.isDataDriven()||Je||Ie||this._handleOverridablePaintPropertyUpdate(A,zt,un)},y.prototype._handleSpecialPaintPropertyUpdate=function(A){},y.prototype._handleOverridablePaintPropertyUpdate=function(A,j,re){return!1},y.prototype.isHidden=function(A){return!!(this.minzoom&&A=this.maxzoom)||this.visibility==="none"},y.prototype.updateTransitions=function(A){this._transitioningPaint=this._transitionablePaint.transitioned(A,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(A,j){A.getCrossfadeParameters&&(this._crossfadeParameters=A.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(A,void 0,j)),this.paint=this._transitioningPaint.possiblyEvaluate(A,void 0,j)},y.prototype.serialize=function(){var A={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(A.layout=A.layout||{},A.layout.visibility=this.visibility),Me(A,function(j,re){return!(j===void 0||re==="layout"&&!Object.keys(j).length||re==="paint"&&!Object.keys(j).length)})},y.prototype._validate=function(A,j,re,de,Ie){return Ie===void 0&&(Ie={}),(!Ie||Ie.validate!==!1)&&hp(this,A.call(Rf,{key:j,layerType:this.type,objectKey:re,value:de,styleSpec:Ut,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var A in this.paint._values){var j=this.paint.get(A);if(j instanceof Pp&&uu(j.property.specification)&&(j.value.kind==="source"||j.value.kind==="composite")&&j.value.isStateDependent)return!0}return!1},y}(Zn),mh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sf=function(f,y){this._structArray=f,this._pos1=y*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ld=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Dd(f,y){y===void 0&&(y=1);var A=0,j=0;return{members:f.map(function(re){var de=mh[re.type].BYTES_PER_ELEMENT,Ie=A=Wf(A,Math.max(y,de)),Je=re.components||1;return j=Math.max(j,de),A+=de*Je,{name:re.name,type:re.type,components:Je,offset:Ie}}),size:Wf(A,Math.max(j,y)),alignment:y}}function Wf(f,y){return Math.ceil(f/y)*y}Ld.serialize=function(f,y){return f._trim(),y&&(f.isTransferred=!0,y.push(f.arrayBuffer)),{length:f.length,arrayBuffer:f.arrayBuffer}},Ld.deserialize=function(f){var y=Object.create(this.prototype);return y.arrayBuffer=f.arrayBuffer,y.length=f.length,y.capacity=f.arrayBuffer.byteLength/y.bytesPerElement,y._refreshViews(),y},Ld.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ld.prototype.clear=function(){this.length=0},Ld.prototype.resize=function(f){this.reserve(f),this.length=f},Ld.prototype.reserve=function(f){if(f>this.capacity){this.capacity=Math.max(f,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var y=this.uint8;this._refreshViews(),y&&this.uint8.set(y)}},Ld.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ah=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j){var re=this.length;return this.resize(re+1),this.emplace(re,A,j)},y.prototype.emplace=function(A,j,re){var de=2*A;return this.int16[de+0]=j,this.int16[de+1]=re,A},y}(Ld);ah.prototype.bytesPerElement=4,Gc("StructArrayLayout2i4",ah);var Nc=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,A,j,re,de)},y.prototype.emplace=function(A,j,re,de,Ie){var Je=4*A;return this.int16[Je+0]=j,this.int16[Je+1]=re,this.int16[Je+2]=de,this.int16[Je+3]=Ie,A},y}(Ld);Nc.prototype.bytesPerElement=8,Gc("StructArrayLayout4i8",Nc);var Xh=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,A,j,re,de,Ie,Je)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt){var un=6*A;return this.int16[un+0]=j,this.int16[un+1]=re,this.int16[un+2]=de,this.int16[un+3]=Ie,this.int16[un+4]=Je,this.int16[un+5]=zt,A},y}(Ld);Xh.prototype.bytesPerElement=12,Gc("StructArrayLayout2i4i12",Xh);var $d=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,A,j,re,de,Ie,Je)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt){var un=4*A,tr=8*A;return this.int16[un+0]=j,this.int16[un+1]=re,this.uint8[tr+4]=de,this.uint8[tr+5]=Ie,this.uint8[tr+6]=Je,this.uint8[tr+7]=zt,A},y}(Ld);$d.prototype.bytesPerElement=8,Gc("StructArrayLayout2i4ub8",$d);var Vo=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j){var re=this.length;return this.resize(re+1),this.emplace(re,A,j)},y.prototype.emplace=function(A,j,re){var de=2*A;return this.float32[de+0]=j,this.float32[de+1]=re,A},y}(Ld);Vo.prototype.bytesPerElement=8,Gc("StructArrayLayout2f8",Vo);var P=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je,zt,un,tr,Cr){var xi=this.length;return this.resize(xi+1),this.emplace(xi,A,j,re,de,Ie,Je,zt,un,tr,Cr)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi){var Li=10*A;return this.uint16[Li+0]=j,this.uint16[Li+1]=re,this.uint16[Li+2]=de,this.uint16[Li+3]=Ie,this.uint16[Li+4]=Je,this.uint16[Li+5]=zt,this.uint16[Li+6]=un,this.uint16[Li+7]=tr,this.uint16[Li+8]=Cr,this.uint16[Li+9]=xi,A},y}(Ld);P.prototype.bytesPerElement=20,Gc("StructArrayLayout10ui20",P);var W=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li){var Io=this.length;return this.resize(Io+1),this.emplace(Io,A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io){var Ao=12*A;return this.int16[Ao+0]=j,this.int16[Ao+1]=re,this.int16[Ao+2]=de,this.int16[Ao+3]=Ie,this.uint16[Ao+4]=Je,this.uint16[Ao+5]=zt,this.uint16[Ao+6]=un,this.uint16[Ao+7]=tr,this.int16[Ao+8]=Cr,this.int16[Ao+9]=xi,this.int16[Ao+10]=Li,this.int16[Ao+11]=Io,A},y}(Ld);W.prototype.bytesPerElement=24,Gc("StructArrayLayout4i4ui4i24",W);var le=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re){var de=this.length;return this.resize(de+1),this.emplace(de,A,j,re)},y.prototype.emplace=function(A,j,re,de){var Ie=3*A;return this.float32[Ie+0]=j,this.float32[Ie+1]=re,this.float32[Ie+2]=de,A},y}(Ld);le.prototype.bytesPerElement=12,Gc("StructArrayLayout3f12",le);var ge=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A){var j=this.length;return this.resize(j+1),this.emplace(j,A)},y.prototype.emplace=function(A,j){return this.uint32[1*A+0]=j,A},y}(Ld);ge.prototype.bytesPerElement=4,Gc("StructArrayLayout1ul4",ge);var rt=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je,zt,un,tr){var Cr=this.length;return this.resize(Cr+1),this.emplace(Cr,A,j,re,de,Ie,Je,zt,un,tr)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt,un,tr,Cr){var xi=10*A,Li=5*A;return this.int16[xi+0]=j,this.int16[xi+1]=re,this.int16[xi+2]=de,this.int16[xi+3]=Ie,this.int16[xi+4]=Je,this.int16[xi+5]=zt,this.uint32[Li+3]=un,this.uint16[xi+8]=tr,this.uint16[xi+9]=Cr,A},y}(Ld);rt.prototype.bytesPerElement=20,Gc("StructArrayLayout6i1ul2ui20",rt);var pn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,A,j,re,de,Ie,Je)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt){var un=6*A;return this.int16[un+0]=j,this.int16[un+1]=re,this.int16[un+2]=de,this.int16[un+3]=Ie,this.int16[un+4]=Je,this.int16[un+5]=zt,A},y}(Ld);pn.prototype.bytesPerElement=12,Gc("StructArrayLayout2i2i2i12",pn);var sr=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie){var Je=this.length;return this.resize(Je+1),this.emplace(Je,A,j,re,de,Ie)},y.prototype.emplace=function(A,j,re,de,Ie,Je){var zt=4*A,un=8*A;return this.float32[zt+0]=j,this.float32[zt+1]=re,this.float32[zt+2]=de,this.int16[un+6]=Ie,this.int16[un+7]=Je,A},y}(Ld);sr.prototype.bytesPerElement=16,Gc("StructArrayLayout2f1f2i16",sr);var Ae=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,A,j,re,de)},y.prototype.emplace=function(A,j,re,de,Ie){var Je=12*A,zt=3*A;return this.uint8[Je+0]=j,this.uint8[Je+1]=re,this.float32[zt+1]=de,this.float32[zt+2]=Ie,A},y}(Ld);Ae.prototype.bytesPerElement=12,Gc("StructArrayLayout2ub2f12",Ae);var D=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re){var de=this.length;return this.resize(de+1),this.emplace(de,A,j,re)},y.prototype.emplace=function(A,j,re,de){var Ie=3*A;return this.uint16[Ie+0]=j,this.uint16[Ie+1]=re,this.uint16[Ie+2]=de,A},y}(Ld);D.prototype.bytesPerElement=6,Gc("StructArrayLayout3ui6",D);var ie=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po){var Gs=this.length;return this.resize(Gs+1),this.emplace(Gs,A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po,Gs){var Oa=24*A,yl=12*A,cu=48*A;return this.int16[Oa+0]=j,this.int16[Oa+1]=re,this.uint16[Oa+2]=de,this.uint16[Oa+3]=Ie,this.uint32[yl+2]=Je,this.uint32[yl+3]=zt,this.uint32[yl+4]=un,this.uint16[Oa+10]=tr,this.uint16[Oa+11]=Cr,this.uint16[Oa+12]=xi,this.float32[yl+7]=Li,this.float32[yl+8]=Io,this.uint8[cu+36]=Ao,this.uint8[cu+37]=Xo,this.uint8[cu+38]=Ro,this.uint32[yl+10]=po,this.int16[Oa+22]=Gs,A},y}(Ld);ie.prototype.bytesPerElement=48,Gc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ie);var Ee=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po,Gs,Oa,yl,cu,Fu,Eu,qc,vu,kc,On,lr){var Ur=this.length;return this.resize(Ur+1),this.emplace(Ur,A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po,Gs,Oa,yl,cu,Fu,Eu,qc,vu,kc,On,lr)},y.prototype.emplace=function(A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao,Xo,Ro,po,Gs,Oa,yl,cu,Fu,Eu,qc,vu,kc,On,lr,Ur){var di=34*A,uo=17*A;return this.int16[di+0]=j,this.int16[di+1]=re,this.int16[di+2]=de,this.int16[di+3]=Ie,this.int16[di+4]=Je,this.int16[di+5]=zt,this.int16[di+6]=un,this.int16[di+7]=tr,this.uint16[di+8]=Cr,this.uint16[di+9]=xi,this.uint16[di+10]=Li,this.uint16[di+11]=Io,this.uint16[di+12]=Ao,this.uint16[di+13]=Xo,this.uint16[di+14]=Ro,this.uint16[di+15]=po,this.uint16[di+16]=Gs,this.uint16[di+17]=Oa,this.uint16[di+18]=yl,this.uint16[di+19]=cu,this.uint16[di+20]=Fu,this.uint16[di+21]=Eu,this.uint16[di+22]=qc,this.uint32[uo+12]=vu,this.float32[uo+13]=kc,this.float32[uo+14]=On,this.float32[uo+15]=lr,this.float32[uo+16]=Ur,A},y}(Ld);Ee.prototype.bytesPerElement=68,Gc("StructArrayLayout8i15ui1ul4f68",Ee);var Ne=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A){var j=this.length;return this.resize(j+1),this.emplace(j,A)},y.prototype.emplace=function(A,j){return this.float32[1*A+0]=j,A},y}(Ld);Ne.prototype.bytesPerElement=4,Gc("StructArrayLayout1f4",Ne);var at=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re){var de=this.length;return this.resize(de+1),this.emplace(de,A,j,re)},y.prototype.emplace=function(A,j,re,de){var Ie=3*A;return this.int16[Ie+0]=j,this.int16[Ie+1]=re,this.int16[Ie+2]=de,A},y}(Ld);at.prototype.bytesPerElement=6,Gc("StructArrayLayout3i6",at);var Gt=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re){var de=this.length;return this.resize(de+1),this.emplace(de,A,j,re)},y.prototype.emplace=function(A,j,re,de){var Ie=4*A;return this.uint32[2*A+0]=j,this.uint16[Ie+2]=re,this.uint16[Ie+3]=de,A},y}(Ld);Gt.prototype.bytesPerElement=8,Gc("StructArrayLayout1ul2ui8",Gt);var rn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j){var re=this.length;return this.resize(re+1),this.emplace(re,A,j)},y.prototype.emplace=function(A,j,re){var de=2*A;return this.uint16[de+0]=j,this.uint16[de+1]=re,A},y}(Ld);rn.prototype.bytesPerElement=4,Gc("StructArrayLayout2ui4",rn);var Un=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A){var j=this.length;return this.resize(j+1),this.emplace(j,A)},y.prototype.emplace=function(A,j){return this.uint16[1*A+0]=j,A},y}(Ld);Un.prototype.bytesPerElement=2,Gc("StructArrayLayout1ui2",Un);var Ir=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(A,j,re,de){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,A,j,re,de)},y.prototype.emplace=function(A,j,re,de,Ie){var Je=4*A;return this.float32[Je+0]=j,this.float32[Je+1]=re,this.float32[Je+2]=de,this.float32[Je+3]=Ie,A},y}(Ld);Ir.prototype.bytesPerElement=16,Gc("StructArrayLayout4f16",Ir);var G=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var A={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return A.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},A.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},A.x1.get=function(){return this._structArray.int16[this._pos2+2]},A.y1.get=function(){return this._structArray.int16[this._pos2+3]},A.x2.get=function(){return this._structArray.int16[this._pos2+4]},A.y2.get=function(){return this._structArray.int16[this._pos2+5]},A.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},A.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},A.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},A.anchorPoint.get=function(){return new O(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,A),y}(Sf);G.prototype.size=20;var J=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(A){return new G(this,A)},y}(rt);Gc("CollisionBoxArray",J);var Q=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var A={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return A.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},A.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},A.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},A.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},A.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},A.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},A.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},A.segment.get=function(){return this._structArray.uint16[this._pos2+10]},A.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},A.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},A.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},A.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},A.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},A.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},A.placedOrientation.set=function(j){this._structArray.uint8[this._pos1+37]=j},A.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},A.hidden.set=function(j){this._structArray.uint8[this._pos1+38]=j},A.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},A.crossTileID.set=function(j){this._structArray.uint32[this._pos4+10]=j},A.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,A),y}(Sf);Q.prototype.size=48;var ce=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(A){return new Q(this,A)},y}(ie);Gc("PlacedSymbolArray",ce);var Ze=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var A={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return A.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},A.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},A.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},A.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},A.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},A.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},A.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},A.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},A.key.get=function(){return this._structArray.uint16[this._pos2+8]},A.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},A.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},A.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},A.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},A.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},A.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},A.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},A.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},A.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},A.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},A.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},A.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},A.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},A.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},A.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},A.crossTileID.set=function(j){this._structArray.uint32[this._pos4+12]=j},A.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},A.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},A.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},A.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,A),y}(Sf);Ze.prototype.size=68;var Ct=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(A){return new Ze(this,A)},y}(Ee);Gc("SymbolInstanceArray",Ct);var Mt=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getoffsetX=function(A){return this.float32[1*A+0]},y}(Ne);Gc("GlyphOffsetArray",Mt);var yn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.getx=function(A){return this.int16[3*A+0]},y.prototype.gety=function(A){return this.int16[3*A+1]},y.prototype.gettileUnitDistanceFromAnchor=function(A){return this.int16[3*A+2]},y}(at);Gc("SymbolLineVertexArray",yn);var _r=function(f){function y(){f.apply(this,arguments)}f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y;var A={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return A.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},A.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},A.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,A),y}(Sf);_r.prototype.size=8;var Sn=function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.get=function(A){return new _r(this,A)},y}(Gt);Gc("FeatureIndexArray",Sn);var yi=Dd([{name:"a_pos",components:2,type:"Int16"}],4).members,Oi=function(f){f===void 0&&(f=[]),this.segments=f};function Ji(f,y){return 256*(f=K(Math.floor(f),0,255))+K(Math.floor(y),0,255)}Oi.prototype.prepareSegment=function(f,y,A,j){var re=this.segments[this.segments.length-1];return f>Oi.MAX_VERTEX_ARRAY_LENGTH&&De("Max vertices per segment is "+Oi.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+f),(!re||re.vertexLength+f>Oi.MAX_VERTEX_ARRAY_LENGTH||re.sortKey!==j)&&(re={vertexOffset:y.length,primitiveOffset:A.length,vertexLength:0,primitiveLength:0},j!==void 0&&(re.sortKey=j),this.segments.push(re)),re},Oi.prototype.get=function(){return this.segments},Oi.prototype.destroy=function(){for(var f=0,y=this.segments;f>>16)*Je&65535)<<16)&4294967295)<<15|un>>>17))*zt+(((un>>>16)*zt&65535)<<16)&4294967295)<<13|de>>>19))+((5*(de>>>16)&65535)<<16)&4294967295))+((58964+(Ie>>>16)&65535)<<16);switch(un=0,j){case 3:un^=(255&y.charCodeAt(tr+2))<<16;case 2:un^=(255&y.charCodeAt(tr+1))<<8;case 1:de^=un=(65535&(un=(un=(65535&(un^=255&y.charCodeAt(tr)))*Je+(((un>>>16)*Je&65535)<<16)&4294967295)<<15|un>>>17))*zt+(((un>>>16)*zt&65535)<<16)&4294967295}return de^=y.length,de=2246822507*(65535&(de^=de>>>16))+((2246822507*(de>>>16)&65535)<<16)&4294967295,de=3266489909*(65535&(de^=de>>>13))+((3266489909*(de>>>16)&65535)<<16)&4294967295,(de^=de>>>16)>>>0}}),Zi=b(function(f){f.exports=function(y,A){for(var j,re=y.length,de=A^re,Ie=0;re>=4;)j=1540483477*(65535&(j=255&y.charCodeAt(Ie)|(255&y.charCodeAt(++Ie))<<8|(255&y.charCodeAt(++Ie))<<16|(255&y.charCodeAt(++Ie))<<24))+((1540483477*(j>>>16)&65535)<<16),de=1540483477*(65535&de)+((1540483477*(de>>>16)&65535)<<16)^(j=1540483477*(65535&(j^=j>>>24))+((1540483477*(j>>>16)&65535)<<16)),re-=4,++Ie;switch(re){case 3:de^=(255&y.charCodeAt(Ie+2))<<16;case 2:de^=(255&y.charCodeAt(Ie+1))<<8;case 1:de=1540483477*(65535&(de^=255&y.charCodeAt(Ie)))+((1540483477*(de>>>16)&65535)<<16)}return de=1540483477*(65535&(de^=de>>>13))+((1540483477*(de>>>16)&65535)<<16),(de^=de>>>15)>>>0}}),Wo=Qo,js=Zi;Wo.murmur3=Qo,Wo.murmur2=js;var Ja=function(){this.ids=[],this.positions=[],this.indexed=!1};Ja.prototype.add=function(f,y,A,j){this.ids.push(Xl(f)),this.positions.push(y,A,j)},Ja.prototype.getPositions=function(f){for(var y=Xl(f),A=0,j=this.ids.length-1;A>1;this.ids[re]>=y?j=re:A=re+1}for(var de=[];this.ids[A]===y;)de.push({index:this.positions[3*A],start:this.positions[3*A+1],end:this.positions[3*A+2]}),A++;return de},Ja.serialize=function(f,y){var A=new Float64Array(f.ids),j=new Uint32Array(f.positions);return function re(de,Ie,Je,zt){for(;Je>1],tr=Je-1,Cr=zt+1;;){do tr++;while(de[tr]un);if(tr>=Cr)break;bl(de,tr,Cr),bl(Ie,3*tr,3*Cr),bl(Ie,3*tr+1,3*Cr+1),bl(Ie,3*tr+2,3*Cr+2)}Cr-JeIe.x+1||ztIe.y+1)&&De("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return A}function rh(f,y){return{type:f.type,id:f.id,properties:f.properties,geometry:y?yc(f):[]}}function uh(f,y,A,j,re){f.emplaceBack(2*y+(j+1)/2,2*A+(re+1)/2)}var Gh=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new ah,this.indexArray=new D,this.segments=new Oi,this.programConfigurations=new dd(f.layers,f.zoom),this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function wc(f,y){for(var A=0;A1){if(Fo(f,y))return!0;for(var j=0;j1?A:A.sub(y)._mult(re)._add(y))}function Og(f,y){for(var A,j,re,de=!1,Ie=0;Iey.y!=(re=A[zt]).y>y.y&&y.x<(re.x-j.x)*(y.y-j.y)/(re.y-j.y)+j.x&&(de=!de);return de}function jf(f,y){for(var A=!1,j=0,re=f.length-1;jy.y!=Ie.y>y.y&&y.x<(Ie.x-de.x)*(y.y-de.y)/(Ie.y-de.y)+de.x&&(A=!A)}return A}function Nd(f,y,A){var j=A[0],re=A[2];if(f.xre.x&&y.x>re.x||f.yre.y&&y.y>re.y)return!1;var de=ke(f,y,A[0]);return de!==ke(f,y,A[1])||de!==ke(f,y,A[2])||de!==ke(f,y,A[3])}function Nf(f,y,A){var j=y.paint.get(f).value;return j.kind==="constant"?j.value:A.programConfigurations.get(y.id).getMaxValue(f)}function Fp(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function Hp(f,y,A,j,re){if(!y[0]&&!y[1])return f;var de=O.convert(y)._mult(re);A==="viewport"&&de._rotate(-j);for(var Ie=[],Je=0;Je=8192||tr<0||tr>=8192)){var Cr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,f.sortKey),xi=Cr.vertexLength;uh(this.layoutVertexArray,un,tr,-1,-1),uh(this.layoutVertexArray,un,tr,1,-1),uh(this.layoutVertexArray,un,tr,1,1),uh(this.layoutVertexArray,un,tr,-1,1),this.indexArray.emplaceBack(xi,xi+1,xi+2),this.indexArray.emplaceBack(xi,xi+3,xi+2),Cr.vertexLength+=4,Cr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,f,A,{},j)},Gc("CircleBucket",Gh,{omit:["layers"]});var Sp=new vp({"circle-sort-key":new Mh(Ut.layout_circle["circle-sort-key"])}),Uf={paint:new vp({"circle-radius":new Mh(Ut.paint_circle["circle-radius"]),"circle-color":new Mh(Ut.paint_circle["circle-color"]),"circle-blur":new Mh(Ut.paint_circle["circle-blur"]),"circle-opacity":new Mh(Ut.paint_circle["circle-opacity"]),"circle-translate":new Th(Ut.paint_circle["circle-translate"]),"circle-translate-anchor":new Th(Ut.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Th(Ut.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Th(Ut.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Mh(Ut.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Mh(Ut.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Mh(Ut.paint_circle["circle-stroke-opacity"])}),layout:Sp},qd=typeof Float32Array!="undefined"?Float32Array:Array;function yf(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Tg(f,y,A){var j=y[0],re=y[1],de=y[2],Ie=y[3],Je=y[4],zt=y[5],un=y[6],tr=y[7],Cr=y[8],xi=y[9],Li=y[10],Io=y[11],Ao=y[12],Xo=y[13],Ro=y[14],po=y[15],Gs=A[0],Oa=A[1],yl=A[2],cu=A[3];return f[0]=Gs*j+Oa*Je+yl*Cr+cu*Ao,f[1]=Gs*re+Oa*zt+yl*xi+cu*Xo,f[2]=Gs*de+Oa*un+yl*Li+cu*Ro,f[3]=Gs*Ie+Oa*tr+yl*Io+cu*po,f[4]=(Gs=A[4])*j+(Oa=A[5])*Je+(yl=A[6])*Cr+(cu=A[7])*Ao,f[5]=Gs*re+Oa*zt+yl*xi+cu*Xo,f[6]=Gs*de+Oa*un+yl*Li+cu*Ro,f[7]=Gs*Ie+Oa*tr+yl*Io+cu*po,f[8]=(Gs=A[8])*j+(Oa=A[9])*Je+(yl=A[10])*Cr+(cu=A[11])*Ao,f[9]=Gs*re+Oa*zt+yl*xi+cu*Xo,f[10]=Gs*de+Oa*un+yl*Li+cu*Ro,f[11]=Gs*Ie+Oa*tr+yl*Io+cu*po,f[12]=(Gs=A[12])*j+(Oa=A[13])*Je+(yl=A[14])*Cr+(cu=A[15])*Ao,f[13]=Gs*re+Oa*zt+yl*xi+cu*Xo,f[14]=Gs*de+Oa*un+yl*Li+cu*Ro,f[15]=Gs*Ie+Oa*tr+yl*Io+cu*po,f}Math.hypot||(Math.hypot=function(){for(var f=arguments,y=0,A=arguments.length;A--;)y+=f[A]*f[A];return Math.sqrt(y)});var Yg,qf=Tg;function yd(f,y,A){var j=y[0],re=y[1],de=y[2],Ie=y[3];return f[0]=A[0]*j+A[4]*re+A[8]*de+A[12]*Ie,f[1]=A[1]*j+A[5]*re+A[9]*de+A[13]*Ie,f[2]=A[2]*j+A[6]*re+A[10]*de+A[14]*Ie,f[3]=A[3]*j+A[7]*re+A[11]*de+A[15]*Ie,f}Yg=new qd(3),qd!=Float32Array&&(Yg[0]=0,Yg[1]=0,Yg[2]=0),function(){var f=new qd(4);qd!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0,f[3]=0)}();var i0=(function(){var f=new qd(2);qd!=Float32Array&&(f[0]=0,f[1]=0)}(),function(f){function y(A){f.call(this,A,Uf)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.createBucket=function(A){return new Gh(A)},y.prototype.queryRadius=function(A){var j=A;return Nf("circle-radius",this,j)+Nf("circle-stroke-width",this,j)+Fp(this.paint.get("circle-translate"))},y.prototype.queryIntersectsFeature=function(A,j,re,de,Ie,Je,zt,un){for(var tr=Hp(A,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Je.angle,zt),Cr=this.paint.get("circle-radius").evaluate(j,re)+this.paint.get("circle-stroke-width").evaluate(j,re),xi=this.paint.get("circle-pitch-alignment")==="map",Li=xi?tr:function(Fu,Eu){return Fu.map(function(qc){return Cm(qc,Eu)})}(tr,un),Io=xi?Cr*zt:Cr,Ao=0,Xo=de;Aof.width||re.height>f.height||A.x>f.width-re.width||A.y>f.height-re.height)throw new RangeError("out of range source coordinates for image copy");if(re.width>y.width||re.height>y.height||j.x>y.width-re.width||j.y>y.height-re.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ie=f.data,Je=y.data,zt=0;zt80*A){j=de=f[0],re=Ie=f[1];for(var Io=A;Iode&&(de=Je),zt>Ie&&(Ie=zt);un=(un=Math.max(de-j,Ie-re))!==0?1/un:0}return O0(xi,Li,A,j,re,un),Li}function Ep(f,y,A,j,re){var de,Ie;if(re===yt(f,y,A,j)>0)for(de=y;de=y;de-=j)Ie=Re(de,f[de],f[de+1],Ie);return Ie&&em(Ie,Ie.next)&&(Tt(Ie),Ie=Ie.next),Ie}function pf(f,y){if(!f)return f;y||(y=f);var A,j=f;do if(A=!1,j.steiner||!em(j,j.next)&&Gp(j.prev,j,j.next)!==0)j=j.next;else{if(Tt(j),(j=y=j.prev)===j.next)break;A=!0}while(A||j!==y);return y}function O0(f,y,A,j,re,de,Ie){if(f){!Ie&&de&&function(tr,Cr,xi,Li){var Io=tr;do Io.z===null&&(Io.z=gm(Io.x,Io.y,Cr,xi,Li)),Io.prevZ=Io.prev,Io.nextZ=Io.next,Io=Io.next;while(Io!==tr);Io.prevZ.nextZ=null,Io.prevZ=null,function(Ao){var Xo,Ro,po,Gs,Oa,yl,cu,Fu,Eu=1;do{for(Ro=Ao,Ao=null,Oa=null,yl=0;Ro;){for(yl++,po=Ro,cu=0,Xo=0;Xo0||Fu>0&&po;)cu!==0&&(Fu===0||!po||Ro.z<=po.z)?(Gs=Ro,Ro=Ro.nextZ,cu--):(Gs=po,po=po.nextZ,Fu--),Oa?Oa.nextZ=Gs:Ao=Gs,Gs.prevZ=Oa,Oa=Gs;Ro=po}Oa.nextZ=null,Eu*=2}while(yl>1)}(Io)}(f,j,re,de);for(var Je,zt,un=f;f.prev!==f.next;)if(Je=f.prev,zt=f.next,de?hm(f,j,re,de):N0(f))y.push(Je.i/A),y.push(f.i/A),y.push(zt.i/A),Tt(f),f=zt.next,un=zt.next;else if((f=zt)===un){Ie?Ie===1?O0(f=I0(pf(f),y,A),y,A,j,re,de,2):Ie===2&&Y0(f,y,A,j,re,de):O0(pf(f),y,A,j,re,de,1);break}}}function N0(f){var y=f.prev,A=f,j=f.next;if(Gp(y,A,j)>=0)return!1;for(var re=f.next.next;re!==f.prev;){if(Mm(y.x,y.y,A.x,A.y,j.x,j.y,re.x,re.y)&&Gp(re.prev,re,re.next)>=0)return!1;re=re.next}return!0}function hm(f,y,A,j){var re=f.prev,de=f,Ie=f.next;if(Gp(re,de,Ie)>=0)return!1;for(var Je=re.x>de.x?re.x>Ie.x?re.x:Ie.x:de.x>Ie.x?de.x:Ie.x,zt=re.y>de.y?re.y>Ie.y?re.y:Ie.y:de.y>Ie.y?de.y:Ie.y,un=gm(re.x=un&&xi&&xi.z<=tr;){if(Cr!==f.prev&&Cr!==f.next&&Mm(re.x,re.y,de.x,de.y,Ie.x,Ie.y,Cr.x,Cr.y)&&Gp(Cr.prev,Cr,Cr.next)>=0||(Cr=Cr.prevZ,xi!==f.prev&&xi!==f.next&&Mm(re.x,re.y,de.x,de.y,Ie.x,Ie.y,xi.x,xi.y)&&Gp(xi.prev,xi,xi.next)>=0))return!1;xi=xi.nextZ}for(;Cr&&Cr.z>=un;){if(Cr!==f.prev&&Cr!==f.next&&Mm(re.x,re.y,de.x,de.y,Ie.x,Ie.y,Cr.x,Cr.y)&&Gp(Cr.prev,Cr,Cr.next)>=0)return!1;Cr=Cr.prevZ}for(;xi&&xi.z<=tr;){if(xi!==f.prev&&xi!==f.next&&Mm(re.x,re.y,de.x,de.y,Ie.x,Ie.y,xi.x,xi.y)&&Gp(xi.prev,xi,xi.next)>=0)return!1;xi=xi.nextZ}return!0}function I0(f,y,A){var j=f;do{var re=j.prev,de=j.next.next;!em(re,de)&&Fm(re,j,j.next,de)&&we(re,de)&&we(de,re)&&(y.push(re.i/A),y.push(j.i/A),y.push(de.i/A),Tt(j),Tt(j.next),j=f=de),j=j.next}while(j!==f);return pf(j)}function Y0(f,y,A,j,re,de){var Ie=f;do{for(var Je=Ie.next.next;Je!==Ie.prev;){if(Ie.i!==Je.i&&f0(Ie,Je)){var zt=ee(Ie,Je);return Ie=pf(Ie,Ie.next),zt=pf(zt,zt.next),O0(Ie,y,A,j,re,de),void O0(zt,y,A,j,re,de)}Je=Je.next}Ie=Ie.next}while(Ie!==f)}function q0(f,y){return f.x-y.x}function Md(f,y){if(y=function(j,re){var de,Ie=re,Je=j.x,zt=j.y,un=-1/0;do{if(zt<=Ie.y&&zt>=Ie.next.y&&Ie.next.y!==Ie.y){var tr=Ie.x+(zt-Ie.y)*(Ie.next.x-Ie.x)/(Ie.next.y-Ie.y);if(tr<=Je&&tr>un){if(un=tr,tr===Je){if(zt===Ie.y)return Ie;if(zt===Ie.next.y)return Ie.next}de=Ie.x=Ie.x&&Ie.x>=Li&&Je!==Ie.x&&Mm(ztde.x||Ie.x===de.x&&s0(de,Ie)))&&(de=Ie,Ao=Cr)),Ie=Ie.next;while(Ie!==xi);return de}(f,y)){var A=ee(y,f);pf(y,y.next),pf(A,A.next)}}function s0(f,y){return Gp(f.prev,f,y.prev)<0&&Gp(y.next,f,f.next)<0}function gm(f,y,A,j,re){return(f=1431655765&((f=858993459&((f=252645135&((f=16711935&((f=32767*(f-A)*re)|f<<8))|f<<4))|f<<2))|f<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=32767*(y-j)*re)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function d0(f){var y=f,A=f;do(y.x=0&&(f-Ie)*(j-Je)-(A-Ie)*(y-Je)>=0&&(A-Ie)*(de-Je)-(re-Ie)*(j-Je)>=0}function f0(f,y){return f.next.i!==y.i&&f.prev.i!==y.i&&!function(A,j){var re=A;do{if(re.i!==A.i&&re.next.i!==A.i&&re.i!==j.i&&re.next.i!==j.i&&Fm(re,re.next,A,j))return!0;re=re.next}while(re!==A);return!1}(f,y)&&(we(f,y)&&we(y,f)&&function(A,j){var re=A,de=!1,Ie=(A.x+j.x)/2,Je=(A.y+j.y)/2;do re.y>Je!=re.next.y>Je&&re.next.y!==re.y&&Ie<(re.next.x-re.x)*(Je-re.y)/(re.next.y-re.y)+re.x&&(de=!de),re=re.next;while(re!==A);return de}(f,y)&&(Gp(f.prev,f,y.prev)||Gp(f,y.prev,y))||em(f,y)&&Gp(f.prev,f,f.next)>0&&Gp(y.prev,y,y.next)>0)}function Gp(f,y,A){return(y.y-f.y)*(A.x-y.x)-(y.x-f.x)*(A.y-y.y)}function em(f,y){return f.x===y.x&&f.y===y.y}function Fm(f,y,A,j){var re=hg(Gp(f,y,A)),de=hg(Gp(f,y,j)),Ie=hg(Gp(A,j,f)),Je=hg(Gp(A,j,y));return re!==de&&Ie!==Je||!(re!==0||!Bm(f,A,y))||!(de!==0||!Bm(f,j,y))||!(Ie!==0||!Bm(A,f,j))||!(Je!==0||!Bm(A,y,j))}function Bm(f,y,A){return y.x<=Math.max(f.x,A.x)&&y.x>=Math.min(f.x,A.x)&&y.y<=Math.max(f.y,A.y)&&y.y>=Math.min(f.y,A.y)}function hg(f){return f>0?1:f<0?-1:0}function we(f,y){return Gp(f.prev,f,f.next)<0?Gp(f,y,f.next)>=0&&Gp(f,f.prev,y)>=0:Gp(f,y,f.prev)<0||Gp(f,f.next,y)<0}function ee(f,y){var A=new jn(f.i,f.x,f.y),j=new jn(y.i,y.x,y.y),re=f.next,de=y.prev;return f.next=y,y.prev=f,A.next=re,re.prev=A,j.next=A,A.prev=j,de.next=j,j.prev=de,j}function Re(f,y,A,j){var re=new jn(f,y,A);return j?(re.next=j.next,re.prev=j,j.next.prev=re,j.next=re):(re.prev=re,re.next=re),re}function Tt(f){f.next.prev=f.prev,f.prev.next=f.next,f.prevZ&&(f.prevZ.nextZ=f.nextZ),f.nextZ&&(f.nextZ.prevZ=f.prevZ)}function jn(f,y,A){this.i=f,this.x=y,this.y=A,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function yt(f,y,A,j){for(var re=0,de=y,Ie=A-j;dezt;){if(un-zt>600){var Cr=un-zt+1,xi=Je-zt+1,Li=Math.log(Cr),Io=.5*Math.exp(2*Li/3),Ao=.5*Math.sqrt(Li*Io*(Cr-Io)/Cr)*(xi-Cr/2<0?-1:1);de(Ie,Je,Math.max(zt,Math.floor(Je-xi*Io/Cr+Ao)),Math.min(un,Math.floor(Je+(Cr-xi)*Io/Cr+Ao)),tr)}var Xo=Ie[Je],Ro=zt,po=un;for(Zt(Ie,zt,Je),tr(Ie[un],Xo)>0&&Zt(Ie,zt,un);Ro0;)po--}tr(Ie[zt],Xo)===0?Zt(Ie,zt,po):Zt(Ie,++po,un),po<=Je&&(zt=po+1),Je<=po&&(un=po-1)}})(f,y,A||0,j||f.length-1,re||cn)}function Zt(f,y,A){var j=f[y];f[y]=f[A],f[A]=j}function cn(f,y){return fy?1:0}function ln(f,y){var A=f.length;if(A<=1)return[f];for(var j,re,de=[],Ie=0;Ie1)for(var zt=0;zt0&&A.holes.push(j+=f[re-1].length)}return A},Lg.default=sv;var fr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ah,this.indexArray=new D,this.indexArray2=new rn,this.programConfigurations=new dd(f.layers,f.zoom),this.segments=new Oi,this.segments2=new Oi,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};fr.prototype.populate=function(f,y,A){this.hasPattern=Dn("fill",this.layers,y);for(var j=this.layers[0].layout.get("fill-sort-key"),re=[],de=0,Ie=f;de>3}if(re--,j===1||j===2)de+=f.readSVarint(),Ie+=f.readSVarint(),j===1&&(y&&Je.push(y),y=[]),y.push(new O(de,Ie));else{if(j!==7)throw new Error("unknown command "+j);y&&y.push(y[0].clone())}}return y&&Je.push(y),Je},Rt.prototype.bbox=function(){var f=this._pbf;f.pos=this._geometry;for(var y=f.readVarint()+f.pos,A=1,j=0,re=0,de=0,Ie=1/0,Je=-1/0,zt=1/0,un=-1/0;f.pos>3}if(j--,A===1||A===2)(re+=f.readSVarint())Je&&(Je=re),(de+=f.readSVarint())un&&(un=de);else if(A!==7)throw new Error("unknown command "+A)}return[Ie,zt,Je,un]},Rt.prototype.toGeoJSON=function(f,y,A){var j,re,de=this.extent*Math.pow(2,A),Ie=this.extent*f,Je=this.extent*y,zt=this.loadGeometry(),un=Rt.types[this.type];function tr(Li){for(var Io=0;Io>3;re=Ie===1?j.readString():Ie===2?j.readFloat():Ie===3?j.readDouble():Ie===4?j.readVarint64():Ie===5?j.readVarint():Ie===6?j.readSVarint():Ie===7?j.readBoolean():null}return re}(A))}function vr(f,y,A){if(f===3){var j=new pr(A,A.readVarint()+A.pos);j.length&&(y[j.name]=j)}}Hn.prototype.feature=function(f){if(f<0||f>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[f];var y=this._pbf.readVarint()+this._pbf.pos;return new Nt(this._pbf,y,this.extent,this._keys,this._values)};var kr={VectorTile:function(f,y){this.layers=f.readFields(vr,{},y)},VectorTileFeature:Nt,VectorTileLayer:pr},Yr=kr.VectorTileFeature.types,Ni=Math.pow(2,13);function Jn(f,y,A,j,re,de,Ie,Je){f.emplaceBack(y,A,2*Math.floor(j*Ni)+Ie,re*Ni*2,de*Ni*2,Math.round(Je))}var Kr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new Xh,this.indexArray=new D,this.programConfigurations=new dd(f.layers,f.zoom),this.segments=new Oi,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function ir(f,y){return f.x===y.x&&(f.x<0||f.x>8192)||f.y===y.y&&(f.y<0||f.y>8192)}Kr.prototype.populate=function(f,y,A){this.features=[],this.hasPattern=Dn("fill-extrusion",this.layers,y);for(var j=0,re=f;j8192})||uo.every(function(Ys){return Ys.y<0})||uo.every(function(Ys){return Ys.y>8192})))for(var Ao=0,Xo=0;Xo=1){var po=Io[Xo-1];if(!ir(Ro,po)){Cr.vertexLength+4>Oi.MAX_VERTEX_ARRAY_LENGTH&&(Cr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Gs=Ro.sub(po)._perp()._unit(),Oa=po.dist(Ro);Ao+Oa>32768&&(Ao=0),Jn(this.layoutVertexArray,Ro.x,Ro.y,Gs.x,Gs.y,0,0,Ao),Jn(this.layoutVertexArray,Ro.x,Ro.y,Gs.x,Gs.y,0,1,Ao),Jn(this.layoutVertexArray,po.x,po.y,Gs.x,Gs.y,0,0,Ao+=Oa),Jn(this.layoutVertexArray,po.x,po.y,Gs.x,Gs.y,0,1,Ao);var yl=Cr.vertexLength;this.indexArray.emplaceBack(yl,yl+2,yl+1),this.indexArray.emplaceBack(yl+1,yl+2,yl+3),Cr.vertexLength+=4,Cr.primitiveLength+=2}}}}if(Cr.vertexLength+zt>Oi.MAX_VERTEX_ARRAY_LENGTH&&(Cr=this.segments.prepareSegment(zt,this.layoutVertexArray,this.indexArray)),Yr[f.type]==="Polygon"){for(var cu=[],Fu=[],Eu=Cr.vertexLength,qc=0,vu=Je;qc=2&&f[zt-1].equals(f[zt-2]);)zt--;for(var un=0;un0;if(Fu&&Ro>un){var qc=tr.dist(Li);if(qc>2*Cr){var vu=tr.sub(tr.sub(Li)._mult(Cr/qc)._round());this.updateDistance(Li,vu),this.addCurrentVertex(vu,Ao,0,0,xi),Li=vu}}var kc=Li&&Io,On=kc?A:Je?"butt":j;if(kc&&On==="round"&&(ylre&&(On="bevel"),On==="bevel"&&(yl>2&&(On="flipbevel"),yl100)po=Xo.mult(-1);else{var lr=yl*Ao.add(Xo).mag()/Ao.sub(Xo).mag();po._perp()._mult(lr*(Eu?-1:1))}this.addCurrentVertex(tr,po,0,0,xi),this.addCurrentVertex(tr,po.mult(-1),0,0,xi)}else if(On==="bevel"||On==="fakeround"){var Ur=-Math.sqrt(yl*yl-1),di=Eu?Ur:0,uo=Eu?0:Ur;if(Li&&this.addCurrentVertex(tr,Ao,di,uo,xi),On==="fakeround")for(var Ys=Math.round(180*cu/Math.PI/20),qa=1;qa2*Cr){var qh=tr.add(Io.sub(tr)._mult(Cr/Cc)._round());this.updateDistance(tr,qh),this.addCurrentVertex(qh,Xo,0,0,xi),tr=qh}}}}},zo.prototype.addCurrentVertex=function(f,y,A,j,re,de){de===void 0&&(de=!1);var Ie=y.y*j-y.x,Je=-y.y-y.x*j;this.addHalfVertex(f,y.x+y.y*A,y.y-y.x*A,de,!1,A,re),this.addHalfVertex(f,Ie,Je,de,!0,-j,re),this.distance>fo/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(f,y,A,j,re,de))},zo.prototype.addHalfVertex=function(f,y,A,j,re,de,Ie){var Je=.5*(this.lineClips?this.scaledDistance*(fo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((f.x<<1)+(j?1:0),(f.y<<1)+(re?1:0),Math.round(63*y)+128,Math.round(63*A)+128,1+(de===0?0:de<0?-1:1)|(63&Je)<<2,Je>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var zt=Ie.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,zt),Ie.primitiveLength++),re?this.e2=zt:this.e1=zt},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(f,y){this.distance+=f.dist(y),this.updateScaledDistance()},Gc("LineBucket",zo,{omit:["layers","patternFeatures"]});var Oo=new vp({"line-cap":new Th(Ut.layout_line["line-cap"]),"line-join":new Mh(Ut.layout_line["line-join"]),"line-miter-limit":new Th(Ut.layout_line["line-miter-limit"]),"line-round-limit":new Th(Ut.layout_line["line-round-limit"]),"line-sort-key":new Mh(Ut.layout_line["line-sort-key"])}),cs={paint:new vp({"line-opacity":new Mh(Ut.paint_line["line-opacity"]),"line-color":new Mh(Ut.paint_line["line-color"]),"line-translate":new Th(Ut.paint_line["line-translate"]),"line-translate-anchor":new Th(Ut.paint_line["line-translate-anchor"]),"line-width":new Mh(Ut.paint_line["line-width"]),"line-gap-width":new Mh(Ut.paint_line["line-gap-width"]),"line-offset":new Mh(Ut.paint_line["line-offset"]),"line-blur":new Mh(Ut.paint_line["line-blur"]),"line-dasharray":new _h(Ut.paint_line["line-dasharray"]),"line-pattern":new Lh(Ut.paint_line["line-pattern"]),"line-gradient":new ff(Ut.paint_line["line-gradient"])}),layout:Oo},Pi=new(function(f){function y(){f.apply(this,arguments)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.possiblyEvaluate=function(A,j){return j=new ud(Math.floor(j.zoom),{now:j.now,fadeDuration:j.fadeDuration,zoomHistory:j.zoomHistory,transition:j.transition}),f.prototype.possiblyEvaluate.call(this,A,j)},y.prototype.evaluate=function(A,j,re,de){return j=ae({},j,{zoom:Math.floor(j.zoom)}),f.prototype.evaluate.call(this,A,j,re,de)},y}(Mh))(cs.paint.properties["line-width"].specification);Pi.useIntegerZoom=!0;var Us=function(f){function y(A){f.call(this,A,cs),this.gradientVersion=0}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(A){A==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Dl,this.gradientVersion=(this.gradientVersion+1)%g)},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(A,j){f.prototype.recalculate.call(this,A,j),this.paint._values["line-floorwidth"]=Pi.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,A)},y.prototype.createBucket=function(A){return new zo(A)},y.prototype.queryRadius=function(A){var j=A,re=rs(Nf("line-width",this,j),Nf("line-gap-width",this,j)),de=Nf("line-offset",this,j);return re/2+Math.abs(de)+Fp(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(A,j,re,de,Ie,Je,zt){var un=Hp(A,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Je.angle,zt),tr=zt/2*rs(this.paint.get("line-width").evaluate(j,re),this.paint.get("line-gap-width").evaluate(j,re)),Cr=this.paint.get("line-offset").evaluate(j,re);return Cr&&(de=function(xi,Li){for(var Io=[],Ao=new O(0,0),Xo=0;Xo=3){for(var Ro=0;Ro0?y+2*f:f}var ao=Dd([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),ca=Dd([{name:"a_projected_pos",components:3,type:"Float32"}],4),Ea=(Dd([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Dd([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),ia=(Dd([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Dd([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qt=Dd([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function gr(f,y,A){return f.sections.forEach(function(j){j.text=function(re,de,Ie){var Je=de.layout.get("text-transform").evaluate(Ie,{});return Je==="uppercase"?re=re.toLocaleUpperCase():Je==="lowercase"&&(re=re.toLocaleLowerCase()),Wp.applyArabicShaping&&(re=Wp.applyArabicShaping(re)),re}(j.text,y,A)}),f}Dd([{name:"triangle",components:3,type:"Uint16"}]),Dd([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Dd([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Dd([{type:"Float32",name:"offsetX"}]),Dd([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var hi={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},fs=function(f,y,A,j,re){var de,Ie,Je=8*re-j-1,zt=(1<>1,tr=-7,Cr=A?re-1:0,xi=A?-1:1,Li=f[y+Cr];for(Cr+=xi,de=Li&(1<<-tr)-1,Li>>=-tr,tr+=Je;tr>0;de=256*de+f[y+Cr],Cr+=xi,tr-=8);for(Ie=de&(1<<-tr)-1,de>>=-tr,tr+=j;tr>0;Ie=256*Ie+f[y+Cr],Cr+=xi,tr-=8);if(de===0)de=1-un;else{if(de===zt)return Ie?NaN:1/0*(Li?-1:1);Ie+=Math.pow(2,j),de-=un}return(Li?-1:1)*Ie*Math.pow(2,de-j)},vs=function(f,y,A,j,re,de){var Ie,Je,zt,un=8*de-re-1,tr=(1<>1,xi=re===23?Math.pow(2,-24)-Math.pow(2,-77):0,Li=j?0:de-1,Io=j?1:-1,Ao=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Je=isNaN(y)?1:0,Ie=tr):(Ie=Math.floor(Math.log(y)/Math.LN2),y*(zt=Math.pow(2,-Ie))<1&&(Ie--,zt*=2),(y+=Ie+Cr>=1?xi/zt:xi*Math.pow(2,1-Cr))*zt>=2&&(Ie++,zt/=2),Ie+Cr>=tr?(Je=0,Ie=tr):Ie+Cr>=1?(Je=(y*zt-1)*Math.pow(2,re),Ie+=Cr):(Je=y*Math.pow(2,Cr-1)*Math.pow(2,re),Ie=0));re>=8;f[A+Li]=255&Je,Li+=Io,Je/=256,re-=8);for(Ie=Ie<0;f[A+Li]=255&Ie,Li+=Io,Ie/=256,un-=8);f[A+Li-Io]|=128*Ao},ga=Qi;function Qi(f){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(f)?f:new Uint8Array(f||0),this.pos=0,this.type=0,this.length=this.buf.length}Qi.Varint=0,Qi.Fixed64=1,Qi.Bytes=2,Qi.Fixed32=5;var vo=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Bo(f){return f.type===Qi.Bytes?f.readVarint()+f.pos:f.pos+1}function Os(f,y,A){return A?4294967296*y+(f>>>0):4294967296*(y>>>0)+(f>>>0)}function _a(f,y,A){var j=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(7*Math.LN2));A.realloc(j);for(var re=A.pos-1;re>=f;re--)A.buf[re+j]=A.buf[re]}function Ve(f,y){for(var A=0;A>>8,f[A+2]=y>>>16,f[A+3]=y>>>24}function ba(f,y){return(f[y]|f[y+1]<<8|f[y+2]<<16)+(f[y+3]<<24)}function Xa(f,y,A){f===1&&A.readMessage(xl,y)}function xl(f,y,A){if(f===3){var j=A.readMessage(Qa,{}),re=j.width,de=j.height,Ie=j.left,Je=j.top,zt=j.advance;y.push({id:j.id,bitmap:new Am({width:re+6,height:de+6},j.bitmap),metrics:{width:re,height:de,left:Ie,top:Je,advance:zt}})}}function Qa(f,y,A){f===1?y.id=A.readVarint():f===2?y.bitmap=A.readBytes():f===3?y.width=A.readVarint():f===4?y.height=A.readVarint():f===5?y.left=A.readSVarint():f===6?y.top=A.readSVarint():f===7&&(y.advance=A.readVarint())}function gi(f){for(var y=0,A=0,j=0,re=f;j=0;xi--){var Li=Ie[xi];if(!(Cr.w>Li.w||Cr.h>Li.h)){if(Cr.x=Li.x,Cr.y=Li.y,zt=Math.max(zt,Cr.y+Cr.h),Je=Math.max(Je,Cr.x+Cr.w),Cr.w===Li.w&&Cr.h===Li.h){var Io=Ie.pop();xi>3,de=this.pos;this.type=7&j,f(re,y,this),this.pos===de&&this.skip(j)}return y},readMessage:function(f,y){return this.readFields(f,y,this.readVarint()+this.pos)},readFixed32:function(){var f=Ws(this.buf,this.pos);return this.pos+=4,f},readSFixed32:function(){var f=ba(this.buf,this.pos);return this.pos+=4,f},readFixed64:function(){var f=Ws(this.buf,this.pos)+4294967296*Ws(this.buf,this.pos+4);return this.pos+=8,f},readSFixed64:function(){var f=Ws(this.buf,this.pos)+4294967296*ba(this.buf,this.pos+4);return this.pos+=8,f},readFloat:function(){var f=fs(this.buf,this.pos,!0,23,4);return this.pos+=4,f},readDouble:function(){var f=fs(this.buf,this.pos,!0,52,8);return this.pos+=8,f},readVarint:function(f){var y,A,j=this.buf;return y=127&(A=j[this.pos++]),A<128?y:(y|=(127&(A=j[this.pos++]))<<7,A<128?y:(y|=(127&(A=j[this.pos++]))<<14,A<128?y:(y|=(127&(A=j[this.pos++]))<<21,A<128?y:function(re,de,Ie){var Je,zt,un=Ie.buf;if(Je=(112&(zt=un[Ie.pos++]))>>4,zt<128||(Je|=(127&(zt=un[Ie.pos++]))<<3,zt<128)||(Je|=(127&(zt=un[Ie.pos++]))<<10,zt<128)||(Je|=(127&(zt=un[Ie.pos++]))<<17,zt<128)||(Je|=(127&(zt=un[Ie.pos++]))<<24,zt<128)||(Je|=(1&(zt=un[Ie.pos++]))<<31,zt<128))return Os(re,Je,de);throw new Error("Expected varint not more than 10 bytes")}(y|=(15&(A=j[this.pos]))<<28,f,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var f=this.readVarint();return f%2==1?(f+1)/-2:f/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var f=this.readVarint()+this.pos,y=this.pos;return this.pos=f,f-y>=12&&vo?function(A,j,re){return vo.decode(A.subarray(j,re))}(this.buf,y,f):function(A,j,re){for(var de="",Ie=j;Ie239?4:tr>223?3:tr>191?2:1;if(Ie+xi>re)break;xi===1?tr<128&&(Cr=tr):xi===2?(192&(Je=A[Ie+1]))==128&&(Cr=(31&tr)<<6|63&Je)<=127&&(Cr=null):xi===3?(zt=A[Ie+2],(192&(Je=A[Ie+1]))==128&&(192&zt)==128&&((Cr=(15&tr)<<12|(63&Je)<<6|63&zt)<=2047||Cr>=55296&&Cr<=57343)&&(Cr=null)):xi===4&&(zt=A[Ie+2],un=A[Ie+3],(192&(Je=A[Ie+1]))==128&&(192&zt)==128&&(192&un)==128&&((Cr=(15&tr)<<18|(63&Je)<<12|(63&zt)<<6|63&un)<=65535||Cr>=1114112)&&(Cr=null)),Cr===null?(Cr=65533,xi=1):Cr>65535&&(Cr-=65536,de+=String.fromCharCode(Cr>>>10&1023|55296),Cr=56320|1023&Cr),de+=String.fromCharCode(Cr),Ie+=xi}return de}(this.buf,y,f)},readBytes:function(){var f=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,f);return this.pos=f,y},readPackedVarint:function(f,y){if(this.type!==Qi.Bytes)return f.push(this.readVarint(y));var A=Bo(this);for(f=f||[];this.pos127;);else if(y===Qi.Bytes)this.pos=this.readVarint()+this.pos;else if(y===Qi.Fixed32)this.pos+=4;else{if(y!==Qi.Fixed64)throw new Error("Unimplemented type: "+y);this.pos+=8}},writeTag:function(f,y){this.writeVarint(f<<3|y)},realloc:function(f){for(var y=this.length||16;y268435455||f<0?function(y,A){var j,re;if(y>=0?(j=y%4294967296|0,re=y/4294967296|0):(re=~(-y/4294967296),4294967295^(j=~(-y%4294967296))?j=j+1|0:(j=0,re=re+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");A.realloc(10),function(de,Ie,Je){Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,de>>>=7,Je.buf[Je.pos++]=127&de|128,Je.buf[Je.pos]=127&(de>>>=7)}(j,0,A),function(de,Ie){var Je=(7&de)<<4;Ie.buf[Ie.pos++]|=Je|((de>>>=3)?128:0),de&&(Ie.buf[Ie.pos++]=127&de|((de>>>=7)?128:0),de&&(Ie.buf[Ie.pos++]=127&de|((de>>>=7)?128:0),de&&(Ie.buf[Ie.pos++]=127&de|((de>>>=7)?128:0),de&&(Ie.buf[Ie.pos++]=127&de|((de>>>=7)?128:0),de&&(Ie.buf[Ie.pos++]=127&de)))))}(re,A)}(f,this):(this.realloc(4),this.buf[this.pos++]=127&f|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=f>>>7&127))))},writeSVarint:function(f){this.writeVarint(f<0?2*-f-1:2*f)},writeBoolean:function(f){this.writeVarint(!!f)},writeString:function(f){f=String(f),this.realloc(4*f.length),this.pos++;var y=this.pos;this.pos=function(j,re,de){for(var Ie,Je,zt=0;zt55295&&Ie<57344){if(!Je){Ie>56319||zt+1===re.length?(j[de++]=239,j[de++]=191,j[de++]=189):Je=Ie;continue}if(Ie<56320){j[de++]=239,j[de++]=191,j[de++]=189,Je=Ie;continue}Ie=Je-55296<<10|Ie-56320|65536,Je=null}else Je&&(j[de++]=239,j[de++]=191,j[de++]=189,Je=null);Ie<128?j[de++]=Ie:(Ie<2048?j[de++]=Ie>>6|192:(Ie<65536?j[de++]=Ie>>12|224:(j[de++]=Ie>>18|240,j[de++]=Ie>>12&63|128),j[de++]=Ie>>6&63|128),j[de++]=63&Ie|128)}return de}(this.buf,f,this.pos);var A=this.pos-y;A>=128&&_a(y,A,this),this.pos=y-1,this.writeVarint(A),this.pos+=A},writeFloat:function(f){this.realloc(4),vs(this.buf,f,this.pos,!0,23,4),this.pos+=4},writeDouble:function(f){this.realloc(8),vs(this.buf,f,this.pos,!0,52,8),this.pos+=8},writeBytes:function(f){var y=f.length;this.writeVarint(y),this.realloc(y);for(var A=0;A=128&&_a(A,j,this),this.pos=A-1,this.writeVarint(j),this.pos+=j},writeMessage:function(f,y,A){this.writeTag(f,Qi.Bytes),this.writeRawMessage(y,A)},writePackedVarint:function(f,y){y.length&&this.writeMessage(f,Ve,y)},writePackedSVarint:function(f,y){y.length&&this.writeMessage(f,Da,y)},writePackedBoolean:function(f,y){y.length&&this.writeMessage(f,Ps,y)},writePackedFloat:function(f,y){y.length&&this.writeMessage(f,sl,y)},writePackedDouble:function(f,y){y.length&&this.writeMessage(f,Ol,y)},writePackedFixed32:function(f,y){y.length&&this.writeMessage(f,La,y)},writePackedSFixed32:function(f,y){y.length&&this.writeMessage(f,zl,y)},writePackedFixed64:function(f,y){y.length&&this.writeMessage(f,la,y)},writePackedSFixed64:function(f,y){y.length&&this.writeMessage(f,yo,y)},writeBytesField:function(f,y){this.writeTag(f,Qi.Bytes),this.writeBytes(y)},writeFixed32Field:function(f,y){this.writeTag(f,Qi.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(f,y){this.writeTag(f,Qi.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(f,y){this.writeTag(f,Qi.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(f,y){this.writeTag(f,Qi.Fixed64),this.writeSFixed64(y)},writeVarintField:function(f,y){this.writeTag(f,Qi.Varint),this.writeVarint(y)},writeSVarintField:function(f,y){this.writeTag(f,Qi.Varint),this.writeSVarint(y)},writeStringField:function(f,y){this.writeTag(f,Qi.Bytes),this.writeString(y)},writeFloatField:function(f,y){this.writeTag(f,Qi.Fixed32),this.writeFloat(y)},writeDoubleField:function(f,y){this.writeTag(f,Qi.Fixed64),this.writeDouble(y)},writeBooleanField:function(f,y){this.writeVarintField(f,!!y)}};var ws=function(f,y){var A=y.pixelRatio,j=y.version,re=y.stretchX,de=y.stretchY,Ie=y.content;this.paddedRect=f,this.pixelRatio=A,this.stretchX=re,this.stretchY=de,this.content=Ie,this.version=j},ha={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ha.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ha.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ha.tlbr.get=function(){return this.tl.concat(this.br)},ha.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ws.prototype,ha);var nl=function(f,y){var A={},j={};this.haveRenderCallbacks=[];var re=[];this.addImages(f,A,re),this.addImages(y,j,re);var de=gi(re),Ie=new Jg({width:de.w||1,height:de.h||1});for(var Je in f){var zt=f[Je],un=A[Je].paddedRect;Jg.copy(zt.data,Ie,{x:0,y:0},{x:un.x+1,y:un.y+1},zt.data)}for(var tr in y){var Cr=y[tr],xi=j[tr].paddedRect,Li=xi.x+1,Io=xi.y+1,Ao=Cr.data.width,Xo=Cr.data.height;Jg.copy(Cr.data,Ie,{x:0,y:0},{x:Li,y:Io},Cr.data),Jg.copy(Cr.data,Ie,{x:0,y:Xo-1},{x:Li,y:Io-1},{width:Ao,height:1}),Jg.copy(Cr.data,Ie,{x:0,y:0},{x:Li,y:Io+Xo},{width:Ao,height:1}),Jg.copy(Cr.data,Ie,{x:Ao-1,y:0},{x:Li-1,y:Io},{width:1,height:Xo}),Jg.copy(Cr.data,Ie,{x:0,y:0},{x:Li+Ao,y:Io},{width:1,height:Xo})}this.image=Ie,this.iconPositions=A,this.patternPositions=j};nl.prototype.addImages=function(f,y,A){for(var j in f){var re=f[j],de={x:0,y:0,w:re.data.width+2,h:re.data.height+2};A.push(de),y[j]=new ws(de,re),re.hasRenderCallback&&this.haveRenderCallbacks.push(j)}},nl.prototype.patchUpdatedImages=function(f,y){for(var A in f.dispatchRenderCallbacks(this.haveRenderCallbacks),f.updatedImages)this.patchUpdatedImage(this.iconPositions[A],f.getImage(A),y),this.patchUpdatedImage(this.patternPositions[A],f.getImage(A),y)},nl.prototype.patchUpdatedImage=function(f,y,A){if(f&&y&&f.version!==y.version){f.version=y.version;var j=f.tl;A.update(y.data,void 0,{x:j[0],y:j[1]})}},Gc("ImagePosition",ws),Gc("ImageAtlas",nl);var Ql={horizontal:1,vertical:2,horizontalOnly:3},wu=function(){this.scale=1,this.fontStack="",this.imageName=null};wu.forText=function(f,y){var A=new wu;return A.scale=f||1,A.fontStack=y,A},wu.forImage=function(f){var y=new wu;return y.imageName=f,y};var wa=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function eh(f,y,A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io,Ao){var Xo,Ro=wa.fromFeature(f,re);Cr===Ql.vertical&&Ro.verticalizePunctuation();var po=Wp.processBidirectionalText,Gs=Wp.processStyledBidirectionalText;if(po&&Ro.sections.length===1){Xo=[];for(var Oa=0,yl=po(Ro.toString(),Pc(Ro,un,de,y,j,Li,Io));Oa0&&Ar>vh&&(vh=Ar)}else{var li=Ys[Fc.fontStack],ki=li&&li[H];if(ki&&ki.rect)ve=ki.rect,te=ki.metrics;else{var xo=uo[Fc.fontStack],Yo=xo&&xo[H];if(!Yo)continue;te=Yo.metrics}F=24*(gf-Fc.scale)}ht?(di.verticalizable=!0,au.push({glyph:H,imageName:je,x:Jh,y:rp+F,vertical:ht,scale:Fc.scale,fontStack:Fc.fontStack,sectionIndex:kh,metrics:te,rect:ve}),Jh+=vt*Fc.scale+qh):(au.push({glyph:H,imageName:je,x:Jh,y:rp+F,vertical:ht,scale:Fc.scale,fontStack:Fc.fontStack,sectionIndex:kh,metrics:te,rect:ve}),Jh+=te.advance*Fc.scale+qh)}au.length!==0&&(Tp=Math.max(Jh-qh,Tp),Lc(au,0,au.length-1,Pd,vh)),Jh=0;var bs=il*gf+vh;mf.lineOffset=Math.max(vh,gg),rp+=bs,gd=Math.max(bs,gd),++ss}else rp+=il,++ss}var pa,Ma=rp- -17,rl=dh(iu),Wl=rl.horizontalAlign,ml=rl.verticalAlign;(function(Yl,Zu,Jc,fd,Lf,_d,xd,Vh,sf){var rd,bh=(Zu-Jc)*Lf;rd=_d!==xd?-Vh*fd- -17:(-fd*sf+.5)*xd;for(var Hf=0,cf=Yl;Hf=0&&j>=f&&Kl[this.text.charCodeAt(j)];j--)A--;this.text=this.text.substring(f,A),this.sectionIndex=this.sectionIndex.slice(f,A)},wa.prototype.substring=function(f,y){var A=new wa;return A.text=this.text.substring(f,y),A.sectionIndex=this.sectionIndex.slice(f,y),A.sections=this.sections,A},wa.prototype.toString=function(){return this.text},wa.prototype.getMaxScale=function(){var f=this;return this.sectionIndex.reduce(function(y,A){return Math.max(y,f.sections[A].scale)},0)},wa.prototype.addTextSection=function(f,y){this.text+=f.text,this.sections.push(wu.forText(f.scale,f.fontStack||y));for(var A=this.sections.length-1,j=0;j=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Kl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},$c={};function bu(f,y,A,j,re,de){if(y.imageName){var Ie=j[y.imageName];return Ie?Ie.displaySize[0]*y.scale*24/de+re:0}var Je=A[y.fontStack],zt=Je&&Je[f];return zt?zt.metrics.advance*y.scale+re:0}function hh(f,y,A,j){var re=Math.pow(f-y,2);return j?f=0,Cr=0,xi=0;xi-A/2;){if(--Ie<0)return!1;Je-=f[Ie].dist(de),de=f[Ie]}Je+=f[Ie].dist(f[Ie+1]),Ie++;for(var zt=[],un=0;Jej;)un-=zt.shift().angleDelta;if(un>re)return!1;Ie++,Je+=tr.dist(Cr)}return!0}function Kn(f){for(var y=0,A=0;Aun){var Io=(un-zt)/Li,Ao=Ns(Cr.x,xi.x,Io),Xo=Ns(Cr.y,xi.y,Io),Ro=new ed(Ao,Xo,xi.angleTo(Cr),tr);return Ro._round(),!Ie||bi(f,Ro,Je,Ie,y)?Ro:void 0}zt+=Li}}function za(f,y,A,j,re,de,Ie,Je,zt){var un=vi(j,de,Ie),tr=Co(j,re),Cr=tr*Ie,xi=f[0].x===0||f[0].x===zt||f[0].y===0||f[0].y===zt;return y-Cr=0&&qa=0&&Fs=0&&vu+Fu<=Eu){var il=new ed(qa,Fs,uo,On);il._round(),Ro&&!bi(Io,il,Gs,Ro,po)||kc.push(il)}}qc+=di}return yl||kc.length||Oa||(kc=Li(Io,qc/2,Xo,Ro,po,Gs,Oa,!0,cu)),kc}(f,xi?y/2*Je%y:(tr/2+2*de)*Ie*Je%y,y,un,A,Cr,xi,!1,zt)}function Hl(f,y,A,j,re){for(var de=[],Ie=0;Ie=j&&Cr.x>=j||(tr.x>=j?tr=new O(j,tr.y+(j-tr.x)/(Cr.x-tr.x)*(Cr.y-tr.y))._round():Cr.x>=j&&(Cr=new O(j,tr.y+(j-tr.x)/(Cr.x-tr.x)*(Cr.y-tr.y))._round()),tr.y>=re&&Cr.y>=re||(tr.y>=re?tr=new O(tr.x+(re-tr.y)/(Cr.y-tr.y)*(Cr.x-tr.x),re)._round():Cr.y>=re&&(Cr=new O(tr.x+(re-tr.y)/(Cr.y-tr.y)*(Cr.x-tr.x),re)._round()),zt&&tr.equals(zt[zt.length-1])||de.push(zt=[tr]),zt.push(Cr)))))}return de}function Eo(f,y,A,j){var re=[],de=f.image,Ie=de.pixelRatio,Je=de.paddedRect.w-2,zt=de.paddedRect.h-2,un=f.right-f.left,tr=f.bottom-f.top,Cr=de.stretchX||[[0,Je]],xi=de.stretchY||[[0,zt]],Li=function(qa,Fs){return qa+Fs[1]-Fs[0]},Io=Cr.reduce(Li,0),Ao=xi.reduce(Li,0),Xo=Je-Io,Ro=zt-Ao,po=0,Gs=Io,Oa=0,yl=Ao,cu=0,Fu=Xo,Eu=0,qc=Ro;if(de.content&&j){var vu=de.content;po=Fa(Cr,0,vu[0]),Oa=Fa(xi,0,vu[1]),Gs=Fa(Cr,vu[0],vu[2]),yl=Fa(xi,vu[1],vu[3]),cu=vu[0]-po,Eu=vu[1]-Oa,Fu=vu[2]-vu[0]-Gs,qc=vu[3]-vu[1]-yl}var kc=function(qa,Fs,il,iu){var Ls=os(qa.stretch-po,Gs,un,f.left),Cc=ka(qa.fixed-cu,Fu,qa.stretch,Io),qh=os(Fs.stretch-Oa,yl,tr,f.top),Ch=ka(Fs.fixed-Eu,qc,Fs.stretch,Ao),fh=os(il.stretch-po,Gs,un,f.left),Jh=ka(il.fixed-cu,Fu,il.stretch,Io),rp=os(iu.stretch-Oa,yl,tr,f.top),Tp=ka(iu.fixed-Eu,qc,iu.stretch,Ao),gd=new O(Ls,qh),Pd=new O(fh,qh),ss=new O(fh,rp),Ll=new O(Ls,rp),rf=new O(Cc/Ie,Ch/Ie),of=new O(Jh/Ie,Tp/Ie),gf=y*Math.PI/180;if(gf){var gg=Math.sin(gf),mf=Math.cos(gf),au=[mf,-gg,gg,mf];gd._matMult(au),Pd._matMult(au),Ll._matMult(au),ss._matMult(au)}var vh=qa.stretch+qa.fixed,Kd=Fs.stretch+Fs.fixed;return{tl:gd,tr:Pd,bl:Ll,br:ss,tex:{x:de.paddedRect.x+1+vh,y:de.paddedRect.y+1+Kd,w:il.stretch+il.fixed-vh,h:iu.stretch+iu.fixed-Kd},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:rf,pixelOffsetBR:of,minFontScaleX:Fu/Ie/un,minFontScaleY:qc/Ie/tr,isSDF:A}};if(j&&(de.stretchX||de.stretchY))for(var On=Ia(Cr,Xo,Io),lr=Ia(xi,Ro,Ao),Ur=0;Ur0&&(Li=Math.max(10,Li),this.circleDiameter=Li)}else{var Io=de.top*Ie-Je,Ao=de.bottom*Ie+Je,Xo=de.left*Ie-Je,Ro=de.right*Ie+Je,po=de.collisionPadding;if(po&&(Xo-=po[0]*Ie,Io-=po[1]*Ie,Ro+=po[2]*Ie,Ao+=po[3]*Ie),un){var Gs=new O(Xo,Io),Oa=new O(Ro,Io),yl=new O(Xo,Ao),cu=new O(Ro,Ao),Fu=un*Math.PI/180;Gs._rotate(Fu),Oa._rotate(Fu),yl._rotate(Fu),cu._rotate(Fu),Xo=Math.min(Gs.x,Oa.x,yl.x,cu.x),Ro=Math.max(Gs.x,Oa.x,yl.x,cu.x),Io=Math.min(Gs.y,Oa.y,yl.y,cu.y),Ao=Math.max(Gs.y,Oa.y,yl.y,cu.y)}f.emplaceBack(y.x,y.y,Xo,Io,Ro,Ao,A,j,re)}this.boxEndIndex=f.length},wo=function(f,y){if(f===void 0&&(f=[]),y===void 0&&(y=is),this.data=f,this.length=this.data.length,this.compare=y,this.length>0)for(var A=(this.length>>1)-1;A>=0;A--)this._down(A)};function is(f,y){return fy?1:0}function Rs(f,y,A){y===void 0&&(y=1),A===void 0&&(A=!1);for(var j=1/0,re=1/0,de=-1/0,Ie=-1/0,Je=f[0],zt=0;ztde)&&(de=un.x),(!zt||un.y>Ie)&&(Ie=un.y)}var tr=Math.min(de-j,Ie-re),Cr=tr/2,xi=new wo([],Vl);if(tr===0)return new O(j,re);for(var Li=j;LiAo.d||!Ao.d)&&(Ao=Ro,A&&console.log("found best %d after %d probes",Math.round(1e4*Ro.d)/1e4,Xo)),Ro.max-Ao.d<=y||(xi.push(new wl(Ro.p.x-(Cr=Ro.h/2),Ro.p.y-Cr,Cr,f)),xi.push(new wl(Ro.p.x+Cr,Ro.p.y-Cr,Cr,f)),xi.push(new wl(Ro.p.x-Cr,Ro.p.y+Cr,Cr,f)),xi.push(new wl(Ro.p.x+Cr,Ro.p.y+Cr,Cr,f)),Xo+=4)}return A&&(console.log("num probes: "+Xo),console.log("best distance: "+Ao.d)),Ao.p}function Vl(f,y){return y.max-f.max}function wl(f,y,A,j){this.p=new O(f,y),this.h=A,this.d=function(re,de){for(var Ie=!1,Je=1/0,zt=0;ztre.y!=Io.y>re.y&&re.x<(Io.x-Li.x)*(re.y-Li.y)/(Io.y-Li.y)+Li.x&&(Ie=!Ie),Je=Math.min(Je,Hg(re,Li,Io))}return(Ie?1:-1)*Math.sqrt(Je)}(this.p,j),this.max=this.d+this.h*Math.SQRT2}wo.prototype.push=function(f){this.data.push(f),this.length++,this._up(this.length-1)},wo.prototype.pop=function(){if(this.length!==0){var f=this.data[0],y=this.data.pop();return this.length--,this.length>0&&(this.data[0]=y,this._down(0)),f}},wo.prototype.peek=function(){return this.data[0]},wo.prototype._up=function(f){for(var y=this.data,A=this.compare,j=y[f];f>0;){var re=f-1>>1,de=y[re];if(A(j,de)>=0)break;y[f]=de,f=re}y[f]=j},wo.prototype._down=function(f){for(var y=this.data,A=this.compare,j=this.length>>1,re=y[f];f=0)break;y[f]=Ie,f=de}y[f]=re};var Sa=Number.POSITIVE_INFINITY;function ea(f,y){return y[1]!==Sa?function(A,j,re){var de=0,Ie=0;switch(j=Math.abs(j),re=Math.abs(re),A){case"top-right":case"top-left":case"top":Ie=re-7;break;case"bottom-right":case"bottom-left":case"bottom":Ie=7-re}switch(A){case"top-right":case"bottom-right":case"right":de=-j;break;case"top-left":case"bottom-left":case"left":de=j}return[de,Ie]}(f,y[0],y[1]):function(A,j){var re=0,de=0;j<0&&(j=0);var Ie=j/Math.sqrt(2);switch(A){case"top-right":case"top-left":de=Ie-7;break;case"bottom-right":case"bottom-left":de=7-Ie;break;case"bottom":de=7-j;break;case"top":de=j-7}switch(A){case"top-right":case"bottom-right":re=-Ie;break;case"top-left":case"bottom-left":re=Ie;break;case"left":re=j;break;case"right":re=-j}return[re,de]}(f,y[0])}function ja(f){switch(f){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Bs(f,y,A,j,re,de,Ie,Je,zt,un,tr,Cr,xi,Li,Io){var Ao=function(Oa,yl,cu,Fu,Eu,qc,vu,kc){for(var On=Fu.layout.get("text-rotate").evaluate(qc,{})*Math.PI/180,lr=[],Ur=0,di=yl.positionedLines;Ur32640&&De(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Xo.kind==="composite"&&((Ro=[128*Li.compositeTextSizes[0].evaluate(Ie,{},Io),128*Li.compositeTextSizes[1].evaluate(Ie,{},Io)])[0]>32640||Ro[1]>32640)&&De(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),f.addSymbols(f.text,Ao,Ro,Je,de,Ie,un,y,zt.lineStartIndex,zt.lineLength,xi,Io);for(var po=0,Gs=tr;po=0;Ie--)if(j.dist(de[Ie])0)&&(de.value.kind!=="constant"||de.value.value.length>0),un=Je.value.kind!=="constant"||!!Je.value.value||Object.keys(Je.parameters).length>0,tr=re.get("symbol-sort-key");if(this.features=[],zt||un){for(var Cr=y.iconDependencies,xi=y.glyphDependencies,Li=y.availableImages,Io=new ud(this.zoom),Ao=0,Xo=f;Ao=0;for(var uo=0,Ys=Eu.sections;uo=0;Je--)de[Je]={x:y[Je].x,y:y[Je].y,tileUnitDistanceFromAnchor:re},Je>0&&(re+=y[Je-1].dist(y[Je]));for(var zt=0;zt0},Wa.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Wa.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Wa.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Wa.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Wa.prototype.addIndicesForPlacedSymbol=function(f,y){for(var A=f.placedSymbolArray.get(y),j=A.vertexStartIndex+4*A.numGlyphs,re=A.vertexStartIndex;re1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(f),this.sortedAngle=f,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var A=0,j=this.symbolInstanceIndexes;A=0&&Je.indexOf(de)===Ie&&y.addIndicesForPlacedSymbol(y.text,de)}),re.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,re.verticalPlacedTextSymbolIndex),re.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.placedIconSymbolIndex),re.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Gc("SymbolBucket",Wa,{omit:["layers","collisionBoxArray","features","compareText"]}),Wa.MAX_GLYPHS=65535,Wa.addDynamicAttributes=Bu;var nu=new vp({"symbol-placement":new Th(Ut.layout_symbol["symbol-placement"]),"symbol-spacing":new Th(Ut.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Th(Ut.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Mh(Ut.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Th(Ut.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Th(Ut.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Th(Ut.layout_symbol["icon-ignore-placement"]),"icon-optional":new Th(Ut.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Th(Ut.layout_symbol["icon-rotation-alignment"]),"icon-size":new Mh(Ut.layout_symbol["icon-size"]),"icon-text-fit":new Th(Ut.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Th(Ut.layout_symbol["icon-text-fit-padding"]),"icon-image":new Mh(Ut.layout_symbol["icon-image"]),"icon-rotate":new Mh(Ut.layout_symbol["icon-rotate"]),"icon-padding":new Th(Ut.layout_symbol["icon-padding"]),"icon-keep-upright":new Th(Ut.layout_symbol["icon-keep-upright"]),"icon-offset":new Mh(Ut.layout_symbol["icon-offset"]),"icon-anchor":new Mh(Ut.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Th(Ut.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Th(Ut.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Th(Ut.layout_symbol["text-rotation-alignment"]),"text-field":new Mh(Ut.layout_symbol["text-field"]),"text-font":new Mh(Ut.layout_symbol["text-font"]),"text-size":new Mh(Ut.layout_symbol["text-size"]),"text-max-width":new Mh(Ut.layout_symbol["text-max-width"]),"text-line-height":new Th(Ut.layout_symbol["text-line-height"]),"text-letter-spacing":new Mh(Ut.layout_symbol["text-letter-spacing"]),"text-justify":new Mh(Ut.layout_symbol["text-justify"]),"text-radial-offset":new Mh(Ut.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Th(Ut.layout_symbol["text-variable-anchor"]),"text-anchor":new Mh(Ut.layout_symbol["text-anchor"]),"text-max-angle":new Th(Ut.layout_symbol["text-max-angle"]),"text-writing-mode":new Th(Ut.layout_symbol["text-writing-mode"]),"text-rotate":new Mh(Ut.layout_symbol["text-rotate"]),"text-padding":new Th(Ut.layout_symbol["text-padding"]),"text-keep-upright":new Th(Ut.layout_symbol["text-keep-upright"]),"text-transform":new Mh(Ut.layout_symbol["text-transform"]),"text-offset":new Mh(Ut.layout_symbol["text-offset"]),"text-allow-overlap":new Th(Ut.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Th(Ut.layout_symbol["text-ignore-placement"]),"text-optional":new Th(Ut.layout_symbol["text-optional"])}),su={paint:new vp({"icon-opacity":new Mh(Ut.paint_symbol["icon-opacity"]),"icon-color":new Mh(Ut.paint_symbol["icon-color"]),"icon-halo-color":new Mh(Ut.paint_symbol["icon-halo-color"]),"icon-halo-width":new Mh(Ut.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Mh(Ut.paint_symbol["icon-halo-blur"]),"icon-translate":new Th(Ut.paint_symbol["icon-translate"]),"icon-translate-anchor":new Th(Ut.paint_symbol["icon-translate-anchor"]),"text-opacity":new Mh(Ut.paint_symbol["text-opacity"]),"text-color":new Mh(Ut.paint_symbol["text-color"],{runtimeType:Si,getOverride:function(f){return f.textColor},hasOverride:function(f){return!!f.textColor}}),"text-halo-color":new Mh(Ut.paint_symbol["text-halo-color"]),"text-halo-width":new Mh(Ut.paint_symbol["text-halo-width"]),"text-halo-blur":new Mh(Ut.paint_symbol["text-halo-blur"]),"text-translate":new Th(Ut.paint_symbol["text-translate"]),"text-translate-anchor":new Th(Ut.paint_symbol["text-translate-anchor"])}),layout:nu},bc=function(f){this.type=f.property.overrides?f.property.overrides.runtimeType:qr,this.defaultValue=f};bc.prototype.evaluate=function(f){if(f.formattedSection){var y=this.defaultValue.property.overrides;if(y&&y.hasOverride(f.formattedSection))return y.getOverride(f.formattedSection)}return f.feature&&f.featureState?this.defaultValue.evaluate(f.feature,f.featureState):this.defaultValue.property.specification.default},bc.prototype.eachChild=function(f){this.defaultValue.isConstant()||f(this.defaultValue.value._styleExpression.expression)},bc.prototype.outputDefined=function(){return!1},bc.prototype.serialize=function(){return null},Gc("FormatSectionOverride",bc,{omit:["defaultValue"]});var Uh=function(f){function y(A){f.call(this,A,su)}return f&&(y.__proto__=f),(y.prototype=Object.create(f&&f.prototype)).constructor=y,y.prototype.recalculate=function(A,j){if(f.prototype.recalculate.call(this,A,j),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var re=this.layout.get("text-writing-mode");if(re){for(var de=[],Ie=0,Je=re;Ie",targetMapId:j,sourceMapId:de.mapId})}}},Kp.prototype.receive=function(f){var y=f.data,A=y.id;if(A&&(!y.targetMapId||this.mapId===y.targetMapId))if(y.type===""){delete this.tasks[A];var j=this.cancelCallbacks[A];delete this.cancelCallbacks[A],j&&j()}else Te()||y.mustQueue?(this.tasks[A]=y,this.taskQueue.push(A),this.invoker.trigger()):this.processTask(A,y)},Kp.prototype.process=function(){if(this.taskQueue.length){var f=this.taskQueue.shift(),y=this.tasks[f];delete this.tasks[f],this.taskQueue.length&&this.invoker.trigger(),y&&this.processTask(f,y)}},Kp.prototype.processTask=function(f,y){var A=this;if(y.type===""){var j=this.callbacks[f];delete this.callbacks[f],j&&(y.error?j(Wi(y.error)):j(null,Wi(y.data)))}else{var re=!1,de=Xt(this.globalScope)?void 0:[],Ie=y.hasCallback?function(tr,Cr){re=!0,delete A.cancelCallbacks[f],A.target.postMessage({id:f,type:"",sourceMapId:A.mapId,error:tr?_c(tr):null,data:_c(Cr,de)},de)}:function(tr){re=!0},Je=null,zt=Wi(y.data);if(this.parent[y.type])Je=this.parent[y.type](y.sourceMapId,zt,Ie);else if(this.parent.getWorkerSource){var un=y.type.split(".");Je=this.parent.getWorkerSource(y.sourceMapId,un[0],zt.source)[un[1]](zt,Ie)}else Ie(new Error("Could not find function "+y.type));!re&&Je&&Je.cancel&&(this.cancelCallbacks[f]=Je.cancel)}},Kp.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Pf=function(f,y){f&&(y?this.setSouthWest(f).setNorthEast(y):f.length===4?this.setSouthWest([f[0],f[1]]).setNorthEast([f[2],f[3]]):this.setSouthWest(f[0]).setNorthEast(f[1]))};Pf.prototype.setNorthEast=function(f){return this._ne=f instanceof bp?new bp(f.lng,f.lat):bp.convert(f),this},Pf.prototype.setSouthWest=function(f){return this._sw=f instanceof bp?new bp(f.lng,f.lat):bp.convert(f),this},Pf.prototype.extend=function(f){var y,A,j=this._sw,re=this._ne;if(f instanceof bp)y=f,A=f;else{if(!(f instanceof Pf))return Array.isArray(f)?f.length===4||f.every(Array.isArray)?this.extend(Pf.convert(f)):this.extend(bp.convert(f)):this;if(A=f._ne,!(y=f._sw)||!A)return this}return j||re?(j.lng=Math.min(y.lng,j.lng),j.lat=Math.min(y.lat,j.lat),re.lng=Math.max(A.lng,re.lng),re.lat=Math.max(A.lat,re.lat)):(this._sw=new bp(y.lng,y.lat),this._ne=new bp(A.lng,A.lat)),this},Pf.prototype.getCenter=function(){return new bp((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Pf.prototype.getSouthWest=function(){return this._sw},Pf.prototype.getNorthEast=function(){return this._ne},Pf.prototype.getNorthWest=function(){return new bp(this.getWest(),this.getNorth())},Pf.prototype.getSouthEast=function(){return new bp(this.getEast(),this.getSouth())},Pf.prototype.getWest=function(){return this._sw.lng},Pf.prototype.getSouth=function(){return this._sw.lat},Pf.prototype.getEast=function(){return this._ne.lng},Pf.prototype.getNorth=function(){return this._ne.lat},Pf.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Pf.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Pf.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Pf.prototype.contains=function(f){var y=bp.convert(f),A=y.lng,j=y.lat,re=this._sw.lng<=A&&A<=this._ne.lng;return this._sw.lng>this._ne.lng&&(re=this._sw.lng>=A&&A>=this._ne.lng),this._sw.lat<=j&&j<=this._ne.lat&&re},Pf.convert=function(f){return!f||f instanceof Pf?f:new Pf(f)};var bp=function(f,y){if(isNaN(f)||isNaN(y))throw new Error("Invalid LngLat object: ("+f+", "+y+")");if(this.lng=+f,this.lat=+y,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};bp.prototype.wrap=function(){return new bp(he(this.lng,-180,180),this.lat)},bp.prototype.toArray=function(){return[this.lng,this.lat]},bp.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},bp.prototype.distanceTo=function(f){var y=Math.PI/180,A=this.lat*y,j=f.lat*y,re=Math.sin(A)*Math.sin(j)+Math.cos(A)*Math.cos(j)*Math.cos((f.lng-this.lng)*y);return 63710088e-1*Math.acos(Math.min(re,1))},bp.prototype.toBounds=function(f){f===void 0&&(f=0);var y=360*f/40075017,A=y/Math.cos(Math.PI/180*this.lat);return new Pf(new bp(this.lng-A,this.lat-y),new bp(this.lng+A,this.lat+y))},bp.convert=function(f){if(f instanceof bp)return f;if(Array.isArray(f)&&(f.length===2||f.length===3))return new bp(Number(f[0]),Number(f[1]));if(!Array.isArray(f)&&typeof f=="object"&&f!==null)return new bp(Number("lng"in f?f.lng:f.lon),Number(f.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Hm=2*Math.PI*63710088e-1;function yp(f){return Hm*Math.cos(f*Math.PI/180)}function Qp(f){return(180+f)/360}function Ic(f){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360}function Dm(f,y){return f/yp(y)}function w0(f){return 360/Math.PI*Math.atan(Math.exp((180-360*f)*Math.PI/180))-90}var fc=function(f,y,A){A===void 0&&(A=0),this.x=+f,this.y=+y,this.z=+A};fc.fromLngLat=function(f,y){y===void 0&&(y=0);var A=bp.convert(f);return new fc(Qp(A.lng),Ic(A.lat),Dm(y,A.lat))},fc.prototype.toLngLat=function(){return new bp(360*this.x-180,w0(this.y))},fc.prototype.toAltitude=function(){return this.z*yp(w0(this.y))},fc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Hm*(f=w0(this.y),1/Math.cos(f*Math.PI/180));var f};var ku=function(f,y,A){this.z=f,this.x=y,this.y=A,this.key=lg(0,f,f,y,A)};ku.prototype.equals=function(f){return this.z===f.z&&this.x===f.x&&this.y===f.y},ku.prototype.url=function(f,y){var A,j,re,de,Ie,Je=(j=this.y,re=this.z,de=Ag(256*(A=this.x),256*(j=Math.pow(2,re)-j-1),re),Ie=Ag(256*(A+1),256*(j+1),re),de[0]+","+de[1]+","+Ie[0]+","+Ie[1]),zt=function(un,tr,Cr){for(var xi,Li="",Io=un;Io>0;Io--)Li+=(tr&(xi=1<this.canonical.z?new Gm(f,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Gm(f,this.wrap,f,this.canonical.x>>y,this.canonical.y>>y)},Gm.prototype.calculateScaledKey=function(f,y){var A=this.canonical.z-f;return f>this.canonical.z?lg(this.wrap*+y,f,this.canonical.z,this.canonical.x,this.canonical.y):lg(this.wrap*+y,f,f,this.canonical.x>>A,this.canonical.y>>A)},Gm.prototype.isChildOf=function(f){if(f.wrap!==this.wrap)return!1;var y=this.canonical.z-f.canonical.z;return f.overscaledZ===0||f.overscaledZ>y&&f.canonical.y===this.canonical.y>>y},Gm.prototype.children=function(f){if(this.overscaledZ>=f)return[new Gm(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var y=this.canonical.z+1,A=2*this.canonical.x,j=2*this.canonical.y;return[new Gm(y,this.wrap,y,A,j),new Gm(y,this.wrap,y,A+1,j),new Gm(y,this.wrap,y,A,j+1),new Gm(y,this.wrap,y,A+1,j+1)]},Gm.prototype.isLessThan=function(f){return this.wrapf.wrap)&&(this.overscaledZf.overscaledZ)&&(this.canonical.xf.canonical.x)&&this.canonical.y=this.dim+1||y<-1||y>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(y+1)*this.stride+(f+1)},Af.prototype._unpackMapbox=function(f,y,A){return(256*f*256+256*y+A)/10-1e4},Af.prototype._unpackTerrarium=function(f,y,A){return 256*f+y+A/256-32768},Af.prototype.getPixels=function(){return new Jg({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Af.prototype.backfillBorder=function(f,y,A){if(this.dim!==f.dim)throw new Error("dem dimension mismatch");var j=y*this.dim,re=y*this.dim+this.dim,de=A*this.dim,Ie=A*this.dim+this.dim;switch(y){case-1:j=re-1;break;case 1:re=j+1}switch(A){case-1:de=Ie-1;break;case 1:Ie=de+1}for(var Je=-y*this.dim,zt=-A*this.dim,un=de;un=0&&tr[3]>=0&&Je.insert(Ie,tr[0],tr[1],tr[2],tr[3])}},u0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new kr.VectorTile(new ga(this.rawTileData)).layers,this.sourceLayerCoder=new C0(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},u0.prototype.query=function(f,y,A,j){var re=this;this.loadVTLayers();for(var de=f.params||{},Ie=8192/f.tileSize/f.scale,Je=uf(de.filter),zt=f.queryGeometry,un=f.queryPadding*Ie,tr=Vs(zt),Cr=this.grid.query(tr.minX-un,tr.minY-un,tr.maxX+un,tr.maxY+un),xi=Vs(f.cameraQueryGeometry),Li=this.grid3D.query(xi.minX-un,xi.minY-un,xi.maxX+un,xi.maxY+un,function(Oa,yl,cu,Fu){return function(Eu,qc,vu,kc,On){for(var lr=0,Ur=Eu;lr=di.x&&On>=di.y)return!0}var uo=[new O(qc,vu),new O(qc,On),new O(kc,On),new O(kc,vu)];if(Eu.length>2){for(var Ys=0,qa=uo;Ys=0)return!0;return!1}(de,Cr)){var xi=this.sourceLayerCoder.decode(A),Li=this.vtLayers[xi].feature(j);if(re.needGeometry){var Io=rh(Li,!0);if(!re.filter(new ud(this.tileID.overscaledZ),Io,this.tileID.canonical))return}else if(!re.filter(new ud(this.tileID.overscaledZ),Li))return;for(var Ao=this.getId(Li,xi),Xo=0;Xoj)re=!1;else if(y)if(this.expirationTimeVn&&(f.getActor().send("enforceCacheSizeLimit",en),Ii=0)},w.clamp=K,w.clearTileCache=function(f){var y=S.caches.delete("mapbox-tiles");f&&y.catch(f).then(function(){return f()})},w.clipLine=Hl,w.clone=function(f){var y=new qd(16);return y[0]=f[0],y[1]=f[1],y[2]=f[2],y[3]=f[3],y[4]=f[4],y[5]=f[5],y[6]=f[6],y[7]=f[7],y[8]=f[8],y[9]=f[9],y[10]=f[10],y[11]=f[11],y[12]=f[12],y[13]=f[13],y[14]=f[14],y[15]=f[15],y},w.clone$1=Se,w.clone$2=function(f){var y=new qd(3);return y[0]=f[0],y[1]=f[1],y[2]=f[2],y},w.collisionCircleLayout=qt,w.config=wi,w.create=function(){var f=new qd(16);return qd!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[11]=0,f[12]=0,f[13]=0,f[14]=0),f[0]=1,f[5]=1,f[10]=1,f[15]=1,f},w.create$1=function(){var f=new qd(9);return qd!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},w.create$2=function(){var f=new qd(4);return qd!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},w.createCommonjsModule=b,w.createExpression=Hh,w.createLayout=Dd,w.createStyleLayer=function(f){return f.type==="custom"?new P0(f):new zm[f.type](f)},w.cross=function(f,y,A){var j=y[0],re=y[1],de=y[2],Ie=A[0],Je=A[1],zt=A[2];return f[0]=re*zt-de*Je,f[1]=de*Ie-j*zt,f[2]=j*Je-re*Ie,f},w.deepEqual=function f(y,A){if(Array.isArray(y)){if(!Array.isArray(A)||y.length!==A.length)return!1;for(var j=0;j0&&(de=1/Math.sqrt(de)),f[0]=y[0]*de,f[1]=y[1]*de,f[2]=y[2]*de,f},w.number=Ns,w.offscreenCanvasSupported=jr,w.ortho=function(f,y,A,j,re,de,Ie){var Je=1/(y-A),zt=1/(j-re),un=1/(de-Ie);return f[0]=-2*Je,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=-2*zt,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=2*un,f[11]=0,f[12]=(y+A)*Je,f[13]=(re+j)*zt,f[14]=(Ie+de)*un,f[15]=1,f},w.parseGlyphPBF=function(f){return new ga(f).readFields(Xa,[])},w.pbf=ga,w.performSymbolLayout=function(f,y,A,j,re,de,Ie){f.createArrays(),f.tilePixelRatio=8192/(512*f.overscaling),f.compareText={},f.iconsNeedLinear=!1;var Je=f.layers[0].layout,zt=f.layers[0]._unevaluatedLayout._values,un={};if(f.textSizeData.kind==="composite"){var tr=f.textSizeData,Cr=tr.maxZoom;un.compositeTextSizes=[zt["text-size"].possiblyEvaluate(new ud(tr.minZoom),Ie),zt["text-size"].possiblyEvaluate(new ud(Cr),Ie)]}if(f.iconSizeData.kind==="composite"){var xi=f.iconSizeData,Li=xi.maxZoom;un.compositeIconSizes=[zt["icon-size"].possiblyEvaluate(new ud(xi.minZoom),Ie),zt["icon-size"].possiblyEvaluate(new ud(Li),Ie)]}un.layoutTextSize=zt["text-size"].possiblyEvaluate(new ud(f.zoom+1),Ie),un.layoutIconSize=zt["icon-size"].possiblyEvaluate(new ud(f.zoom+1),Ie),un.textMaxSize=zt["text-size"].possiblyEvaluate(new ud(18));for(var Io=24*Je.get("text-line-height"),Ao=Je.get("text-rotation-alignment")==="map"&&Je.get("symbol-placement")!=="point",Xo=Je.get("text-keep-upright"),Ro=Je.get("text-size"),po=function(){var yl=Oa[Gs],cu=Je.get("text-font").evaluate(yl,{},Ie).join(","),Fu=Ro.evaluate(yl,{},Ie),Eu=un.layoutTextSize.evaluate(yl,{},Ie),qc=un.layoutIconSize.evaluate(yl,{},Ie),vu={horizontal:{},vertical:void 0},kc=yl.text,On=[0,0];if(kc){var lr=kc.toString(),Ur=24*Je.get("text-letter-spacing").evaluate(yl,{},Ie),di=function(Ll){for(var rf=0,of=Ll;rf=8192||Yc.y<0||Yc.y>=8192||function(cc,Kh,Oh,Wd,Gf,bd,Ff,Vf,Mg,vf,Ug,_m,Im,S0,xg,Bg,ey,pv,Xp,m0,Km,Um,xp,Pv,Ly){var qv,L0,u1,km,av,My=cc.addToLineVertexArray(Kh,Oh),Di=0,f_=0,Yy=0,x1=0,by=-1,gv=-1,E0={},p_=Wo(""),w1=0,c1=0;if(Vf._unevaluatedLayout.getValue("text-radial-offset")===void 0?(w1=(qv=Vf.layout.get("text-offset").evaluate(Km,{},Pv).map(function(dm){return 24*dm}))[0],c1=qv[1]):(w1=24*Vf.layout.get("text-radial-offset").evaluate(Km,{},Pv),c1=Sa),cc.allowVerticalPlacement&&Wd.vertical){var Ry=Vf.layout.get("text-rotate").evaluate(Km,{},Pv)+90;km=new Ms(Mg,Kh,vf,Ug,_m,Wd.vertical,Im,S0,xg,Ry),Ff&&(av=new Ms(Mg,Kh,vf,Ug,_m,Ff,ey,pv,xg,Ry))}if(Gf){var U0=Vf.layout.get("icon-rotate").evaluate(Km,{}),tv=Vf.layout.get("icon-text-fit")!=="none",Jv=Eo(Gf,U0,xp,tv),$0=Ff?Eo(Ff,U0,xp,tv):void 0;u1=new Ms(Mg,Kh,vf,Ug,_m,Gf,ey,pv,!1,U0),Di=4*Jv.length;var xv=cc.iconSizeData,M0=null;xv.kind==="source"?(M0=[128*Vf.layout.get("icon-size").evaluate(Km,{})])[0]>32640&&De(cc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):xv.kind==="composite"&&((M0=[128*Um.compositeIconSizes[0].evaluate(Km,{},Pv),128*Um.compositeIconSizes[1].evaluate(Km,{},Pv)])[0]>32640||M0[1]>32640)&&De(cc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),cc.addSymbols(cc.icon,Jv,M0,m0,Xp,Km,!1,Kh,My.lineStartIndex,My.lineLength,-1,Pv),by=cc.icon.placedSymbolArray.length-1,$0&&(f_=4*$0.length,cc.addSymbols(cc.icon,$0,M0,m0,Xp,Km,Ql.vertical,Kh,My.lineStartIndex,My.lineLength,-1,Pv),gv=cc.icon.placedSymbolArray.length-1)}for(var U_ in Wd.horizontal){var B1=Wd.horizontal[U_];if(!L0){p_=Wo(B1.text);var Hv=Vf.layout.get("text-rotate").evaluate(Km,{},Pv);L0=new Ms(Mg,Kh,vf,Ug,_m,B1,Im,S0,xg,Hv)}var Ov=B1.positionedLines.length===1;if(Yy+=Bs(cc,Kh,B1,bd,Vf,xg,Km,Bg,My,Wd.vertical?Ql.horizontal:Ql.horizontalOnly,Ov?Object.keys(Wd.horizontal):[U_],E0,by,Um,Pv),Ov)break}Wd.vertical&&(x1+=Bs(cc,Kh,Wd.vertical,bd,Vf,xg,Km,Bg,My,Ql.vertical,["vertical"],E0,gv,Um,Pv));var Qv=L0?L0.boxStartIndex:cc.collisionBoxArray.length,C1=L0?L0.boxEndIndex:cc.collisionBoxArray.length,S1=km?km.boxStartIndex:cc.collisionBoxArray.length,xy=km?km.boxEndIndex:cc.collisionBoxArray.length,$_=u1?u1.boxStartIndex:cc.collisionBoxArray.length,Nv=u1?u1.boxEndIndex:cc.collisionBoxArray.length,db=av?av.boxStartIndex:cc.collisionBoxArray.length,fb=av?av.boxEndIndex:cc.collisionBoxArray.length,z1=-1,g_=function(dm,Gb){return dm&&dm.circleDiameter?Math.max(dm.circleDiameter,Gb):Gb};z1=g_(L0,z1),z1=g_(km,z1),z1=g_(u1,z1);var Lx=(z1=g_(av,z1))>-1?1:0;Lx&&(z1*=Ly/24),cc.glyphOffsetArray.length>=Wa.MAX_GLYPHS&&De("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Km.sortKey!==void 0&&cc.addToSortKeyRanges(cc.symbolInstances.length,Km.sortKey),cc.symbolInstances.emplaceBack(Kh.x,Kh.y,E0.right>=0?E0.right:-1,E0.center>=0?E0.center:-1,E0.left>=0?E0.left:-1,E0.vertical||-1,by,gv,p_,Qv,C1,S1,xy,$_,Nv,db,fb,vf,Yy,x1,Di,f_,Lx,0,Im,w1,c1,z1)}(Ll,Yc,yu,of,gf,gg,F,Ll.layers[0],Ll.collisionBoxArray,rf.index,rf.sourceLayerIndex,Ll.index,ht,li,Yo,Kd,wn,ki,bs,ve,rf,mf,Fc,kh,au)};if(pa==="line")for(var ml=0,Yl=Hl(rf.geometry,0,0,8192,8192);ml1){var sf=$s(Vh,xo,of.vertical||je,gf,24,nn);sf&&Wl(Vh,sf)}}else if(rf.type==="Polygon")for(var rd=0,bh=ln(rf.geometry,0);rd=Mr.maxzoom||Mr.visibility!=="none"&&(S(nr,this.zoom,En),(Qt[Mr.id]=Mr.createBucket({index:Ut.bucketLayerIDs.length,layers:nr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:zi,sourceID:this.source})).populate(Yi,xn,this.tileID.canonical),Ut.bucketLayerIDs.push(nr.map(function(no){return no.id})))}}}var rr=w.mapObject(xn.glyphDependencies,function(no){return Object.keys(no).map(Number)});Object.keys(rr).length?er.send("getGlyphs",{uid:this.uid,stacks:rr},function(no,Vi){$n||($n=no,xr=Vi,Wr.call(Nr))}):xr={};var to=Object.keys(xn.iconDependencies);to.length?er.send("getImages",{icons:to,source:this.source,tileID:this.tileID,type:"icons"},function(no,Vi){$n||($n=no,Br=Vi,Wr.call(Nr))}):Br={};var ts=Object.keys(xn.patternDependencies);function Wr(){if($n)return Tr($n);if(xr&&Br&&_o){var no=new O(xr),Vi=new w.ImageAtlas(Br,_o);for(var Pn in Qt){var mi=Qt[Pn];mi instanceof w.SymbolBucket?(S(mi.layers,this.zoom,En),w.performSymbolLayout(mi,xr,no.positions,Br,Vi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):mi.hasPattern&&(mi instanceof w.LineBucket||mi instanceof w.FillBucket||mi instanceof w.FillExtrusionBucket)&&(S(mi.layers,this.zoom,En),mi.addFeatures(xn,this.tileID.canonical,Vi.patternPositions))}this.status="done",Tr(null,{buckets:w.values(Qt).filter(function(ya){return!ya.isEmpty()}),featureIndex:Ut,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:no.image,imageAtlas:Vi,glyphMap:this.returnDependencies?xr:null,iconMap:this.returnDependencies?Br:null,glyphPositions:this.returnDependencies?no.positions:null})}}ts.length?er.send("getImages",{icons:ts,source:this.source,tileID:this.tileID,type:"patterns"},function(no,Vi){$n||($n=no,_o=Vi,Wr.call(Nr))}):_o={},Wr.call(this)};var T=function(Vt,Yt,En,er){this.actor=Vt,this.layerIndex=Yt,this.availableImages=En,this.loadVectorData=er||g,this.loading={},this.loaded={}};T.prototype.loadTile=function(Vt,Yt){var En=this,er=Vt.uid;this.loading||(this.loading={});var Tr=!!(Vt&&Vt.request&&Vt.request.collectResourceTiming)&&new w.RequestPerformance(Vt.request),Nr=this.loading[er]=new L(Vt);Nr.abort=this.loadVectorData(Vt,function(Zn,Ut){if(delete En.loading[er],Zn||!Ut)return Nr.status="done",En.loaded[er]=Nr,Yt(Zn);var $n=Ut.rawData,xr={};Ut.expires&&(xr.expires=Ut.expires),Ut.cacheControl&&(xr.cacheControl=Ut.cacheControl);var Br={};if(Tr){var _o=Tr.finish();_o&&(Br.resourceTiming=JSON.parse(JSON.stringify(_o)))}Nr.vectorTile=Ut.vectorTile,Nr.parse(Ut.vectorTile,En.layerIndex,En.availableImages,En.actor,function(Qt,xn){if(Qt||!xn)return Yt(Qt);Yt(null,w.extend({rawTileData:$n.slice(0)},xn,xr,Br))}),En.loaded=En.loaded||{},En.loaded[er]=Nr})},T.prototype.reloadTile=function(Vt,Yt){var En=this,er=this.loaded,Tr=Vt.uid,Nr=this;if(er&&er[Tr]){var Zn=er[Tr];Zn.showCollisionBoxes=Vt.showCollisionBoxes;var Ut=function($n,xr){var Br=Zn.reloadCallback;Br&&(delete Zn.reloadCallback,Zn.parse(Zn.vectorTile,Nr.layerIndex,En.availableImages,Nr.actor,Br)),Yt($n,xr)};Zn.status==="parsing"?Zn.reloadCallback=Ut:Zn.status==="done"&&(Zn.vectorTile?Zn.parse(Zn.vectorTile,this.layerIndex,this.availableImages,this.actor,Ut):Ut())}},T.prototype.abortTile=function(Vt,Yt){var En=this.loading,er=Vt.uid;En&&En[er]&&En[er].abort&&(En[er].abort(),delete En[er]),Yt()},T.prototype.removeTile=function(Vt,Yt){var En=this.loaded,er=Vt.uid;En&&En[er]&&delete En[er],Yt()};var k=w.window.ImageBitmap,K=function(){this.loaded={}};function he(Vt,Yt){if(Vt.length!==0){ae(Vt[0],Yt);for(var En=1;En=Math.abs(Ut)?En-$n+Ut:Ut-$n+En,En=$n}En+er>=0!=!!Yt&&Vt.reverse()}K.prototype.loadTile=function(Vt,Yt){var En=Vt.uid,er=Vt.encoding,Tr=Vt.rawImageData,Nr=k&&Tr instanceof k?this.getImageData(Tr):Tr,Zn=new w.DEMData(En,Nr,er);this.loaded=this.loaded||{},this.loaded[En]=Zn,Yt(null,Zn)},K.prototype.getImageData=function(Vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(Vt.width,Vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=Vt.width,this.offscreenCanvas.height=Vt.height,this.offscreenCanvasContext.drawImage(Vt,0,0,Vt.width,Vt.height);var Yt=this.offscreenCanvasContext.getImageData(-1,-1,Vt.width+2,Vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new w.RGBAImage({width:Yt.width,height:Yt.height},Yt.data)},K.prototype.removeTile=function(Vt){var Yt=this.loaded,En=Vt.uid;Yt&&Yt[En]&&delete Yt[En]};var fe=w.vectorTile.VectorTileFeature.prototype.toGeoJSON,_e=function(Vt){this._feature=Vt,this.extent=w.EXTENT,this.type=Vt.type,this.properties=Vt.tags,"id"in Vt&&!isNaN(Vt.id)&&(this.id=parseInt(Vt.id,10))};_e.prototype.loadGeometry=function(){if(this._feature.type===1){for(var Vt=[],Yt=0,En=this._feature.geometry;Yt>31}function Oe(Vt,Yt){for(var En=Vt.loadGeometry(),er=Vt.type,Tr=0,Nr=0,Zn=En.length,Ut=0;Ut>1;(function zi(Yi,Si,ni,qi,Vr,ii){for(;Vr>qi;){if(Vr-qi>600){var nr=Vr-qi+1,Mr=ni-qi+1,rr=Math.log(nr),to=.5*Math.exp(2*rr/3),ts=.5*Math.sqrt(rr*to*(nr-to)/nr)*(Mr-nr/2<0?-1:1);zi(Yi,Si,ni,Math.max(qi,Math.floor(ni-Mr*to/nr+ts)),Math.min(Vr,Math.floor(ni+(nr-Mr)*to/nr+ts)),ii)}var Wr=Si[2*ni+ii],no=qi,Vi=Vr;for(Ft(Yi,Si,qi,ni),Si[2*Vr+ii]>Wr&&Ft(Yi,Si,qi,Vr);noWr;)Vi--}Si[2*qi+ii]===Wr?Ft(Yi,Si,qi,Vi):Ft(Yi,Si,++Vi,Vr),Vi<=ni&&(qi=Vi+1),ni<=Vi&&(Vr=Vi-1)}})(Br,_o,Mi,xn,Sr,qr%2),xr(Br,_o,Qt,xn,Mi-1,qr+1),xr(Br,_o,Qt,Mi+1,Sr,qr+1)}})(Zn,Ut,er,0,Zn.length-1,0)};_t.prototype.range=function(Vt,Yt,En,er){return function(Tr,Nr,Zn,Ut,$n,xr,Br){for(var _o,Qt,xn=[0,Tr.length-1,0],Sr=[];xn.length;){var qr=xn.pop(),Mi=xn.pop(),zi=xn.pop();if(Mi-zi<=Br)for(var Yi=zi;Yi<=Mi;Yi++)Qt=Nr[2*Yi+1],(_o=Nr[2*Yi])>=Zn&&_o<=$n&&Qt>=Ut&&Qt<=xr&&Sr.push(Tr[Yi]);else{var Si=Math.floor((zi+Mi)/2);Qt=Nr[2*Si+1],(_o=Nr[2*Si])>=Zn&&_o<=$n&&Qt>=Ut&&Qt<=xr&&Sr.push(Tr[Si]);var ni=(qr+1)%2;(qr===0?Zn<=_o:Ut<=Qt)&&(xn.push(zi),xn.push(Si-1),xn.push(ni)),(qr===0?$n>=_o:xr>=Qt)&&(xn.push(Si+1),xn.push(Mi),xn.push(ni))}}return Sr}(this.ids,this.coords,Vt,Yt,En,er,this.nodeSize)},_t.prototype.within=function(Vt,Yt,En){return function(er,Tr,Nr,Zn,Ut,$n){for(var xr=[0,er.length-1,0],Br=[],_o=Ut*Ut;xr.length;){var Qt=xr.pop(),xn=xr.pop(),Sr=xr.pop();if(xn-Sr<=$n)for(var qr=Sr;qr<=xn;qr++)xt(Tr[2*qr],Tr[2*qr+1],Nr,Zn)<=_o&&Br.push(er[qr]);else{var Mi=Math.floor((Sr+xn)/2),zi=Tr[2*Mi],Yi=Tr[2*Mi+1];xt(zi,Yi,Nr,Zn)<=_o&&Br.push(er[Mi]);var Si=(Qt+1)%2;(Qt===0?Nr-Ut<=zi:Zn-Ut<=Yi)&&(xr.push(Sr),xr.push(Mi-1),xr.push(Si)),(Qt===0?Nr+Ut>=zi:Zn+Ut>=Yi)&&(xr.push(Mi+1),xr.push(xn),xr.push(Si))}}return Br}(this.ids,this.coords,Vt,Yt,En,this.nodeSize)};var bn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vt){return Vt}},Wn=function(Vt){this.options=Ho(Object.create(bn),Vt),this.trees=new Array(this.options.maxZoom+1)};function $r(Vt,Yt,En,er,Tr){return{x:Vt,y:Yt,zoom:1/0,id:En,parentId:-1,numPoints:er,properties:Tr}}function wi(Vt,Yt){var En=Vt.geometry.coordinates,er=En[1];return{x:Ti(En[0]),y:Hr(er),zoom:1/0,index:Yt,parentId:-1}}function oo(Vt){return{type:"Feature",id:Vt.id,properties:Mo(Vt),geometry:{type:"Point",coordinates:[(er=Vt.x,360*(er-.5)),(Yt=Vt.y,En=(180-360*Yt)*Math.PI/180,360*Math.atan(Math.exp(En))/Math.PI-90)]}};var Yt,En,er}function Mo(Vt){var Yt=Vt.numPoints,En=Yt>=1e4?Math.round(Yt/1e3)+"k":Yt>=1e3?Math.round(Yt/100)/10+"k":Yt;return Ho(Ho({},Vt.properties),{cluster:!0,cluster_id:Vt.id,point_count:Yt,point_count_abbreviated:En})}function Ti(Vt){return Vt/360+.5}function Hr(Vt){var Yt=Math.sin(Vt*Math.PI/180),En=.5-.25*Math.log((1+Yt)/(1-Yt))/Math.PI;return En<0?0:En>1?1:En}function Ho(Vt,Yt){for(var En in Yt)Vt[En]=Yt[En];return Vt}function Ss(Vt){return Vt.x}function Pe(Vt){return Vt.y}function qo(Vt,Yt,En,er,Tr,Nr){var Zn=Tr-En,Ut=Nr-er;if(Zn!==0||Ut!==0){var $n=((Vt-En)*Zn+(Yt-er)*Ut)/(Zn*Zn+Ut*Ut);$n>1?(En=Tr,er=Nr):$n>0&&(En+=Zn*$n,er+=Ut*$n)}return(Zn=Vt-En)*Zn+(Ut=Yt-er)*Ut}function Ki(Vt,Yt,En,er){var Tr={id:Vt===void 0?null:Vt,type:Yt,geometry:En,tags:er,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Nr){var Zn=Nr.geometry,Ut=Nr.type;if(Ut==="Point"||Ut==="MultiPoint"||Ut==="LineString")Do(Nr,Zn);else if(Ut==="Polygon"||Ut==="MultiLineString")for(var $n=0;$n0&&(Zn+=er?(Tr*xr-$n*Nr)/2:Math.sqrt(Math.pow($n-Tr,2)+Math.pow(xr-Nr,2))),Tr=$n,Nr=xr}var Br=Yt.length-3;Yt[2]=1,function _o(Qt,xn,Sr,qr){for(var Mi,zi=qr,Yi=Sr-xn>>1,Si=Sr-xn,ni=Qt[xn],qi=Qt[xn+1],Vr=Qt[Sr],ii=Qt[Sr+1],nr=xn+3;nrzi)Mi=nr,zi=Mr;else if(Mr===zi){var rr=Math.abs(nr-Yi);rrqr&&(Mi-xn>3&&_o(Qt,xn,Mi,qr),Qt[Mi+2]=zi,Sr-Mi>3&&_o(Qt,Mi,Sr,qr))}(Yt,0,Br,En),Yt[Br+2]=1,Yt.size=Math.abs(Zn),Yt.start=0,Yt.end=Yt.size}function nt(Vt,Yt,En,er){for(var Tr=0;Tr1?1:En}function mn(Vt,Yt,En,er,Tr,Nr,Zn,Ut){if(er/=Yt,Nr>=(En/=Yt)&&Zn=er)return null;for(var $n=[],xr=0;xr=En&&Sr=er)){var qr=[];if(Qt==="Point"||Qt==="MultiPoint")kn(_o,qr,En,er,Tr);else if(Qt==="LineString")an(_o,qr,En,er,Tr,!1,Ut.lineMetrics);else if(Qt==="MultiLineString")kt(_o,qr,En,er,Tr,!1);else if(Qt==="Polygon")kt(_o,qr,En,er,Tr,!0);else if(Qt==="MultiPolygon")for(var Mi=0;Mi<_o.length;Mi++){var zi=[];kt(_o[Mi],zi,En,er,Tr,!0),zi.length&&qr.push(zi)}if(qr.length){if(Ut.lineMetrics&&Qt==="LineString"){for(Mi=0;Mi=En&&Zn<=er&&(Yt.push(Vt[Nr]),Yt.push(Vt[Nr+1]),Yt.push(Vt[Nr+2]))}}function an(Vt,Yt,En,er,Tr,Nr,Zn){for(var Ut,$n,xr=tn(Vt),Br=Tr===0?Vn:on,_o=Vt.start,Qt=0;QtEn&&($n=Br(xr,xn,Sr,Mi,zi,En),Zn&&(xr.start=_o+Ut*$n)):Yi>er?Si=En&&($n=Br(xr,xn,Sr,Mi,zi,En),ni=!0),Si>er&&Yi<=er&&($n=Br(xr,xn,Sr,Mi,zi,er),ni=!0),!Nr&&ni&&(Zn&&(xr.end=_o+Ut*$n),Yt.push(xr),xr=tn(Vt)),Zn&&(_o+=Ut)}var qi=Vt.length-3;xn=Vt[qi],Sr=Vt[qi+1],qr=Vt[qi+2],(Yi=Tr===0?xn:Sr)>=En&&Yi<=er&&en(xr,xn,Sr,qr),qi=xr.length-3,Nr&&qi>=3&&(xr[qi]!==xr[0]||xr[qi+1]!==xr[1])&&en(xr,xr[0],xr[1],xr[2]),xr.length&&Yt.push(xr)}function tn(Vt){var Yt=[];return Yt.size=Vt.size,Yt.start=Vt.start,Yt.end=Vt.end,Yt}function kt(Vt,Yt,En,er,Tr,Nr){for(var Zn=0;ZnZn.maxX&&(Zn.maxX=Br),_o>Zn.maxY&&(Zn.maxY=_o)}return Zn}function Uo(Vt,Yt,En,er){var Tr=Yt.geometry,Nr=Yt.type,Zn=[];if(Nr==="Point"||Nr==="MultiPoint")for(var Ut=0;Ut0&&Yt.size<(Tr?Zn:er))En.numPoints+=Yt.length/3;else{for(var Ut=[],$n=0;$nZn)&&(En.numSimplified++,Ut.push(Yt[$n]),Ut.push(Yt[$n+1])),En.numPoints++;Tr&&function(xr,Br){for(var _o=0,Qt=0,xn=xr.length,Sr=xn-2;Qt0===Br)for(Qt=0,xn=xr.length;Qt24)throw new Error("maxZoom should be in the 0-24 range");if(Yt.promoteId&&Yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var er=function(Tr,Nr){var Zn=[];if(Tr.type==="FeatureCollection")for(var Ut=0;Ut=er;xr--){var Br=+Date.now();Ut=this._cluster(Ut,xr),this.trees[xr]=new _t(Ut,Ss,Pe,Nr,Float32Array),En&&console.log("z%d: %d clusters in %dms",xr,Ut.length,+Date.now()-Br)}return En&&console.timeEnd("total time"),this},Wn.prototype.getClusters=function(Vt,Yt){var En=((Vt[0]+180)%360+360)%360-180,er=Math.max(-90,Math.min(90,Vt[1])),Tr=Vt[2]===180?180:((Vt[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,Vt[3]));if(Vt[2]-Vt[0]>=360)En=-180,Tr=180;else if(En>Tr){var Zn=this.getClusters([En,er,180,Nr],Yt),Ut=this.getClusters([-180,er,Tr,Nr],Yt);return Zn.concat(Ut)}for(var $n=this.trees[this._limitZoom(Yt)],xr=[],Br=0,_o=$n.range(Ti(En),Hr(Nr),Ti(Tr),Hr(er));Br<_o.length;Br+=1){var Qt=$n.points[_o[Br]];xr.push(Qt.numPoints?oo(Qt):this.points[Qt.index])}return xr},Wn.prototype.getChildren=function(Vt){var Yt=this._getOriginId(Vt),En=this._getOriginZoom(Vt),er="No cluster with the specified id.",Tr=this.trees[En];if(!Tr)throw new Error(er);var Nr=Tr.points[Yt];if(!Nr)throw new Error(er);for(var Zn=this.options.radius/(this.options.extent*Math.pow(2,En-1)),Ut=[],$n=0,xr=Tr.within(Nr.x,Nr.y,Zn);$nYt&&(Qt+=qr.numPoints||1)}if(Qt>=Nr){for(var Mi=$n.x*_o,zi=$n.y*_o,Yi=Tr&&_o>1?this._map($n,!0):null,Si=(Ut<<5)+(Yt+1)+this.points.length,ni=0,qi=Br;ni1)for(var nr=0,Mr=Br;nr>5},Wn.prototype._getOriginZoom=function(Vt){return(Vt-this.points.length)%32},Wn.prototype._map=function(Vt,Yt){if(Vt.numPoints)return Yt?Ho({},Vt.properties):Vt.properties;var En=this.points[Vt.index].properties,er=this.options.map(En);return Yt&&er===En?Ho({},er):er},Qr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Qr.prototype.splitTile=function(Vt,Yt,En,er,Tr,Nr,Zn){for(var Ut=[Vt,Yt,En,er],$n=this.options,xr=$n.debug;Ut.length;){er=Ut.pop(),En=Ut.pop(),Yt=Ut.pop(),Vt=Ut.pop();var Br=1<1&&console.time("creation"),Qt=this.tiles[_o]=eo(Vt,Yt,En,er,$n),this.tileCoords.push({z:Yt,x:En,y:er}),xr)){xr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Yt,En,er,Qt.numFeatures,Qt.numPoints,Qt.numSimplified),console.timeEnd("creation"));var xn="z"+Yt;this.stats[xn]=(this.stats[xn]||0)+1,this.total++}if(Qt.source=Vt,Tr){if(Yt===$n.maxZoom||Yt===Tr)continue;var Sr=1<1&&console.time("clipping");var qr,Mi,zi,Yi,Si,ni,qi=.5*$n.buffer/$n.extent,Vr=.5-qi,ii=.5+qi,nr=1+qi;qr=Mi=zi=Yi=null,Si=mn(Vt,Br,En-qi,En+ii,0,Qt.minX,Qt.maxX,$n),ni=mn(Vt,Br,En+Vr,En+nr,0,Qt.minX,Qt.maxX,$n),Vt=null,Si&&(qr=mn(Si,Br,er-qi,er+ii,1,Qt.minY,Qt.maxY,$n),Mi=mn(Si,Br,er+Vr,er+nr,1,Qt.minY,Qt.maxY,$n),Si=null),ni&&(zi=mn(ni,Br,er-qi,er+ii,1,Qt.minY,Qt.maxY,$n),Yi=mn(ni,Br,er+Vr,er+nr,1,Qt.minY,Qt.maxY,$n),ni=null),xr>1&&console.timeEnd("clipping"),Ut.push(qr||[],Yt+1,2*En,2*er),Ut.push(Mi||[],Yt+1,2*En,2*er+1),Ut.push(zi||[],Yt+1,2*En+1,2*er),Ut.push(Yi||[],Yt+1,2*En+1,2*er+1)}}},Qr.prototype.getTile=function(Vt,Yt,En){var er=this.options,Tr=er.extent,Nr=er.debug;if(Vt<0||Vt>24)return null;var Zn=1<1&&console.log("drilling down to z%d-%d-%d",Vt,Yt,En);for(var $n,xr=Vt,Br=Yt,_o=En;!$n&&xr>0;)xr--,Br=Math.floor(Br/2),_o=Math.floor(_o/2),$n=this.tiles[ci(xr,Br,_o)];return $n&&$n.source?(Nr>1&&console.log("found parent tile z%d-%d-%d",xr,Br,_o),Nr>1&&console.time("drilling down"),this.splitTile($n.source,xr,Br,_o,Vt,Yt,En),Nr>1&&console.timeEnd("drilling down"),this.tiles[Ut]?Ii(this.tiles[Ut],Tr):null):null};var cr=function(Vt){function Yt(En,er,Tr,Nr){Vt.call(this,En,er,Tr,ji),Nr&&(this.loadGeoJSON=Nr)}return Vt&&(Yt.__proto__=Vt),(Yt.prototype=Object.create(Vt&&Vt.prototype)).constructor=Yt,Yt.prototype.loadData=function(En,er){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=er,this._pendingLoadDataParams=En,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Yt.prototype._loadData=function(){var En=this;if(this._pendingCallback&&this._pendingLoadDataParams){var er=this._pendingCallback,Tr=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Nr=!!(Tr&&Tr.request&&Tr.request.collectResourceTiming)&&new w.RequestPerformance(Tr.request);this.loadGeoJSON(Tr,function(Zn,Ut){if(Zn||!Ut)return er(Zn);if(typeof Ut!="object")return er(new Error("Input data given to '"+Tr.source+"' is not a valid GeoJSON object."));(function Qt(xn,Sr){var qr,Mi=xn&&xn.type;if(Mi==="FeatureCollection")for(qr=0;qr=0?0:G.button},B.remove=function(G){G.parentNode&&G.parentNode.removeChild(G)};var ae=function(G){function J(){G.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new w.RGBAImage({width:1,height:1}),this.dirty=!0}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.isLoaded=function(){return this.loaded},J.prototype.setLoaded=function(Q){if(this.loaded!==Q&&(this.loaded=Q,Q)){for(var ce=0,Ze=this.requestors;ce=0?1.2:1))}function Xe(G,J,Q,ce,Ze,Ct,Mt){for(var yn=0;yn65535)_r(new Error("glyphs > 65535 not supported"));else if(Oi.ranges[Lo])_r(null,{stack:Sn,id:yi,glyph:Ji});else{var Qo=Oi.requests[Lo];Qo||(Qo=Oi.requests[Lo]=[],dt.loadGlyphRange(Sn,Lo,Q.url,Q.requestManager,function(Zi,Wo){if(Wo){for(var js in Wo)Q._doesCharSupportLocalGlyph(+js)||(Oi.glyphs[+js]=Wo[+js]);Oi.ranges[Lo]=!0}for(var Ja=0,Ha=Qo;Ja1&&(yn=G[++Mt]);var Sn=Math.abs(_r-yn.left),yi=Math.abs(_r-yn.right),Oi=Math.min(Sn,yi),Ji=void 0,Lo=Ze/Q*(ce+1);if(yn.isDash){var Qo=ce-Math.abs(Lo);Ji=Math.sqrt(Oi*Oi+Qo*Qo)}else Ji=ce-Math.sqrt(Oi*Oi+Lo*Lo);this.data[Ct+_r]=Math.max(0,Math.min(255,Ji+128))}},De.prototype.addRegularDash=function(G){for(var J=G.length-1;J>=0;--J){var Q=G[J],ce=G[J+1];Q.zeroLength?G.splice(J,1):ce&&ce.isDash===Q.isDash&&(ce.left=Q.left,G.splice(J,1))}var Ze=G[0],Ct=G[G.length-1];Ze.isDash===Ct.isDash&&(Ze.left=Ct.left-this.width,Ct.right=Ze.right+this.width);for(var Mt=this.width*this.nextRow,yn=0,_r=G[yn],Sn=0;Sn1&&(_r=G[++yn]);var yi=Math.abs(Sn-_r.left),Oi=Math.abs(Sn-_r.right),Ji=Math.min(yi,Oi);this.data[Mt+Sn]=Math.max(0,Math.min(255,(_r.isDash?Ji:-Ji)+128))}},De.prototype.addDash=function(G,J){var Q=J?7:0,ce=2*Q+1;if(this.nextRow+ce>this.height)return w.warnOnce("LineAtlas out of space"),null;for(var Ze=0,Ct=0;Ct=Q&&G.x=ce&&G.y0&&(Sn[new w.OverscaledTileID(Q.overscaledZ,Mt,ce.z,Ct,ce.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,Q.wrap,ce.z,ce.x,ce.y-1).key]={backfilled:!1},Sn[new w.OverscaledTileID(Q.overscaledZ,_r,ce.z,yn,ce.y-1).key]={backfilled:!1}),ce.y+10&&(Ze.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new w.Event("data",Ze))}})},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setData=function(Q){var ce=this;return this._data=Q,this.fire(new w.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Ze){if(Ze)ce.fire(new w.ErrorEvent(Ze));else{var Ct={dataType:"source",sourceDataType:"content"};ce._collectResourceTiming&&ce._resourceTiming&&ce._resourceTiming.length>0&&(Ct.resourceTiming=ce._resourceTiming,ce._resourceTiming=[]),ce.fire(new w.Event("data",Ct))}}),this},J.prototype.getClusterExpansionZoom=function(Q,ce){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Q,source:this.id},ce),this},J.prototype.getClusterChildren=function(Q,ce){return this.actor.send("geojson.getClusterChildren",{clusterId:Q,source:this.id},ce),this},J.prototype.getClusterLeaves=function(Q,ce,Ze,Ct){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Q,limit:ce,offset:Ze},Ct),this},J.prototype._updateWorkerData=function(Q){var ce=this;this._loaded=!1;var Ze=w.extend({},this.workerOptions),Ct=this._data;typeof Ct=="string"?(Ze.request=this.map._requestManager.transformRequest(w.browser.resolveURL(Ct),w.ResourceType.Source),Ze.request.collectResourceTiming=this._collectResourceTiming):Ze.data=JSON.stringify(Ct),this.actor.send(this.type+".loadData",Ze,function(Mt,yn){ce._removed||yn&&yn.abandoned||(ce._loaded=!0,yn&&yn.resourceTiming&&yn.resourceTiming[ce.id]&&(ce._resourceTiming=yn.resourceTiming[ce.id].slice(0)),ce.actor.send(ce.type+".coalesce",{source:Ze.source},null),Q(Mt))})},J.prototype.loaded=function(){return this._loaded},J.prototype.loadTile=function(Q,ce){var Ze=this,Ct=Q.actor?"reloadTile":"loadTile";Q.actor=this.actor,Q.request=this.actor.send(Ct,{type:this.type,uid:Q.uid,tileID:Q.tileID,zoom:Q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:w.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Mt,yn){return delete Q.request,Q.unloadVectorData(),Q.aborted?ce(null):Mt?ce(Mt):(Q.loadVectorData(yn,Ze.map.painter,Ct==="reloadTile"),ce(null))})},J.prototype.abortTile=function(Q){Q.request&&(Q.request.cancel(),delete Q.request),Q.aborted=!0},J.prototype.unloadTile=function(Q){Q.unloadVectorData(),this.actor.send("removeTile",{uid:Q.uid,type:this.type,source:this.id})},J.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},J.prototype.serialize=function(){return w.extend({},this._options,{type:this.type,data:this._data})},J.prototype.hasTransition=function(){return!1},J}(w.Evented),ot=w.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),xt=function(G){function J(Q,ce,Ze,Ct){G.call(this),this.id=Q,this.dispatcher=Ze,this.coordinates=ce.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Ct),this.options=ce}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(Q,ce){var Ze=this;this._loaded=!1,this.fire(new w.Event("dataloading",{dataType:"source"})),this.url=this.options.url,w.getImage(this.map._requestManager.transformRequest(this.url,w.ResourceType.Image),function(Ct,Mt){Ze._loaded=!0,Ct?Ze.fire(new w.ErrorEvent(Ct)):Mt&&(Ze.image=Mt,Q&&(Ze.coordinates=Q),ce&&ce(),Ze._finishLoading())})},J.prototype.loaded=function(){return this._loaded},J.prototype.updateImage=function(Q){var ce=this;return this.image&&Q.url?(this.options.url=Q.url,this.load(Q.coordinates,function(){ce.texture=null}),this):this},J.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new w.Event("data",{dataType:"source",sourceDataType:"metadata"})))},J.prototype.onAdd=function(Q){this.map=Q,this.load()},J.prototype.setCoordinates=function(Q){var ce=this;this.coordinates=Q;var Ze=Q.map(w.MercatorCoordinate.fromLngLat);this.tileID=function(Mt){for(var yn=1/0,_r=1/0,Sn=-1/0,yi=-1/0,Oi=0,Ji=Mt;Oice.end(0)?this.fire(new w.ErrorEvent(new w.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ce.start(0)+" and "+ce.end(0)+"-second mark."))):this.video.currentTime=Q}},J.prototype.getVideo=function(){return this.video},J.prototype.onAdd=function(Q){this.map||(this.map=Q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},J.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var Q=this.map.painter.context,ce=Q.gl;for(var Ze in this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE),ce.texSubImage2D(ce.TEXTURE_2D,0,0,0,ce.RGBA,ce.UNSIGNED_BYTE,this.video)):(this.texture=new w.Texture(Q,this.video,ce.RGBA),this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE)),this.tiles){var Ct=this.tiles[Ze];Ct.state!=="loaded"&&(Ct.state="loaded",Ct.texture=this.texture)}}},J.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},J.prototype.hasTransition=function(){return this.video&&!this.video.paused},J}(xt),$t=function(G){function J(Q,ce,Ze,Ct){G.call(this,Q,ce,Ze,Ct),ce.coordinates?Array.isArray(ce.coordinates)&&ce.coordinates.length===4&&!ce.coordinates.some(function(Mt){return!Array.isArray(Mt)||Mt.length!==2||Mt.some(function(yn){return typeof yn!="number"})})||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "coordinates"'))),ce.animate&&typeof ce.animate!="boolean"&&this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'optional "animate" property must be a boolean value'))),ce.canvas?typeof ce.canvas=="string"||ce.canvas instanceof w.window.HTMLCanvasElement||this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new w.ErrorEvent(new w.ValidationError("sources."+Q,null,'missing required property "canvas"'))),this.options=ce,this.animate=ce.animate===void 0||ce.animate}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof w.window.HTMLCanvasElement?this.options.canvas:w.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new w.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},J.prototype.getCanvas=function(){return this.canvas},J.prototype.onAdd=function(Q){this.map=Q,this.load(),this.canvas&&this.animate&&this.play()},J.prototype.onRemove=function(){this.pause()},J.prototype.prepare=function(){var Q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,Q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,Q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ce=this.map.painter.context,Ze=ce.gl;for(var Ct in this.boundsBuffer||(this.boundsBuffer=ce.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=w.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new w.Texture(ce,this.canvas,Ze.RGBA,{premultiply:!0}),this.tiles){var Mt=this.tiles[Ct];Mt.state!=="loaded"&&(Mt.state="loaded",Mt.texture=this.texture)}}},J.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},J.prototype.hasTransition=function(){return this._playing},J.prototype._hasInvalidDimensions=function(){for(var Q=0,ce=[this.canvas.width,this.canvas.height];Qthis.max){var Mt=this._getAndRemoveByKey(this.order[0]);Mt&&this.onRemove(Mt)}return this},wi.prototype.has=function(G){return G.wrapped().key in this.data},wi.prototype.getAndRemove=function(G){return this.has(G)?this._getAndRemoveByKey(G.wrapped().key):null},wi.prototype._getAndRemoveByKey=function(G){var J=this.data[G].shift();return J.timeout&&clearTimeout(J.timeout),this.data[G].length===0&&delete this.data[G],this.order.splice(this.order.indexOf(G),1),J.value},wi.prototype.getByKey=function(G){var J=this.data[G];return J?J[0].value:null},wi.prototype.get=function(G){return this.has(G)?this.data[G.wrapped().key][0].value:null},wi.prototype.remove=function(G,J){if(!this.has(G))return this;var Q=G.wrapped().key,ce=J===void 0?0:this.data[Q].indexOf(J),Ze=this.data[Q][ce];return this.data[Q].splice(ce,1),Ze.timeout&&clearTimeout(Ze.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(Ze.value),this.order.splice(this.order.indexOf(Q),1),this},wi.prototype.setMaxSize=function(G){for(this.max=G;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},wi.prototype.filter=function(G){var J=[];for(var Q in this.data)for(var ce=0,Ze=this.data[Q];ce1||(Math.abs(yi)>1&&(Math.abs(yi+Ji)===1?yi+=Ji:Math.abs(yi-Ji)===1&&(yi-=Ji)),Sn.dem&&_r.dem&&(_r.dem.backfillBorder(Sn.dem,yi,Oi),_r.neighboringTiles&&_r.neighboringTiles[Lo]&&(_r.neighboringTiles[Lo].backfilled=!0)))}},J.prototype.getTile=function(Q){return this.getTileByID(Q.key)},J.prototype.getTileByID=function(Q){return this._tiles[Q]},J.prototype._retainLoadedChildren=function(Q,ce,Ze,Ct){for(var Mt in this._tiles){var yn=this._tiles[Mt];if(!(Ct[Mt]||!yn.hasData()||yn.tileID.overscaledZ<=ce||yn.tileID.overscaledZ>Ze)){for(var _r=yn.tileID;yn&&yn.tileID.overscaledZ>ce+1;){var Sn=yn.tileID.scaledTo(yn.tileID.overscaledZ-1);(yn=this._tiles[Sn.key])&&yn.hasData()&&(_r=Sn)}for(var yi=_r;yi.overscaledZ>ce;)if(Q[(yi=yi.scaledTo(yi.overscaledZ-1)).key]){Ct[_r.key]=_r;break}}}},J.prototype.findLoadedParent=function(Q,ce){if(Q.key in this._loadedParentTiles){var Ze=this._loadedParentTiles[Q.key];return Ze&&Ze.tileID.overscaledZ>=ce?Ze:null}for(var Ct=Q.overscaledZ-1;Ct>=ce;Ct--){var Mt=Q.scaledTo(Ct),yn=this._getLoadedTile(Mt);if(yn)return yn}},J.prototype._getLoadedTile=function(Q){var ce=this._tiles[Q.key];return ce&&ce.hasData()?ce:this._cache.getByKey(Q.wrapped().key)},J.prototype.updateCacheSize=function(Q){var ce=Math.ceil(Q.width/this._source.tileSize)+1,Ze=Math.ceil(Q.height/this._source.tileSize)+1,Ct=Math.floor(ce*Ze*5),Mt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ct):Ct;this._cache.setMaxSize(Mt)},J.prototype.handleWrapJump=function(Q){var ce=Math.round((Q-(this._prevLng===void 0?Q:this._prevLng))/360);if(this._prevLng=Q,ce){var Ze={};for(var Ct in this._tiles){var Mt=this._tiles[Ct];Mt.tileID=Mt.tileID.unwrapTo(Mt.tileID.wrap+ce),Ze[Mt.tileID.key]=Mt}for(var yn in this._tiles=Ze,this._timers)clearTimeout(this._timers[yn]),delete this._timers[yn];for(var _r in this._tiles)this._setTileReloadTimer(_r,this._tiles[_r])}},J.prototype.update=function(Q){var ce=this;if(this.transform=Q,this._sourceLoaded&&!this._paused){var Ze;this.updateCacheSize(Q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Ze=Q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ru){return new w.OverscaledTileID(Ru.canonical.z,Ru.wrap,Ru.canonical.z,Ru.canonical.x,Ru.canonical.y)}):(Ze=Q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Ze=Ze.filter(function(Ru){return ce._source.hasTile(Ru)}))):Ze=[];var Ct=Q.coveringZoomLevel(this._source),Mt=Math.max(Ct-J.maxOverzooming,this._source.minzoom),yn=Math.max(Ct+J.maxUnderzooming,this._source.minzoom),_r=this._updateRetainedTiles(Ze,Ct);if(Br(this._source.type)){for(var Sn={},yi={},Oi=0,Ji=Object.keys(_r);Oithis._source.maxzoom){var js=Zi.children(this._source.maxzoom)[0],Ja=this.getTile(js);if(Ja&&Ja.hasData()){Ze[js.key]=js;continue}}else{var Ha=Zi.children(this._source.maxzoom);if(Ze[Ha[0].key]&&Ze[Ha[1].key]&&Ze[Ha[2].key]&&Ze[Ha[3].key])continue}for(var Xl=Wo.wasRequested(),bl=Zi.overscaledZ-1;bl>=Mt;--bl){var mu=Zi.scaledTo(bl);if(Ct[mu.key]||(Ct[mu.key]=!0,!(Wo=this.getTile(mu))&&Xl&&(Wo=this._addTile(mu)),Wo&&(Ze[mu.key]=mu,Xl=Wo.wasRequested(),Wo.hasData())))break}}}return Ze},J.prototype._updateLoadedParentTileCache=function(){for(var Q in this._loadedParentTiles={},this._tiles){for(var ce=[],Ze=void 0,Ct=this._tiles[Q].tileID;Ct.overscaledZ>0;){if(Ct.key in this._loadedParentTiles){Ze=this._loadedParentTiles[Ct.key];break}ce.push(Ct.key);var Mt=Ct.scaledTo(Ct.overscaledZ-1);if(Ze=this._getLoadedTile(Mt))break;Ct=Mt}for(var yn=0,_r=ce;yn<_r.length;yn+=1)this._loadedParentTiles[_r[yn]]=Ze}},J.prototype._addTile=function(Q){var ce=this._tiles[Q.key];if(ce)return ce;(ce=this._cache.getAndRemove(Q))&&(this._setTileReloadTimer(Q.key,ce),ce.tileID=Q,this._state.initializeTileState(ce,this.map?this.map.painter:null),this._cacheTimers[Q.key]&&(clearTimeout(this._cacheTimers[Q.key]),delete this._cacheTimers[Q.key],this._setTileReloadTimer(Q.key,ce)));var Ze=!!ce;return Ze||(ce=new w.Tile(Q,this._source.tileSize*Q.overscaleFactor()),this._loadTile(ce,this._tileLoaded.bind(this,ce,Q.key,ce.state))),ce?(ce.uses++,this._tiles[Q.key]=ce,Ze||this._source.fire(new w.Event("dataloading",{tile:ce,coord:ce.tileID,dataType:"source"})),ce):null},J.prototype._setTileReloadTimer=function(Q,ce){var Ze=this;Q in this._timers&&(clearTimeout(this._timers[Q]),delete this._timers[Q]);var Ct=ce.getExpiryTimeout();Ct&&(this._timers[Q]=setTimeout(function(){Ze._reloadTile(Q,"expired"),delete Ze._timers[Q]},Ct))},J.prototype._removeTile=function(Q){var ce=this._tiles[Q];ce&&(ce.uses--,delete this._tiles[Q],this._timers[Q]&&(clearTimeout(this._timers[Q]),delete this._timers[Q]),ce.uses>0||(ce.hasData()&&ce.state!=="reloading"?this._cache.add(ce.tileID,ce,ce.getExpiryTimeout()):(ce.aborted=!0,this._abortTile(ce),this._unloadTile(ce))))},J.prototype.clearTiles=function(){for(var Q in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Q);this._cache.reset()},J.prototype.tilesIn=function(Q,ce,Ze){var Ct=this,Mt=[],yn=this.transform;if(!yn)return Mt;for(var _r=Ze?yn.getCameraQueryGeometry(Q):Q,Sn=Q.map(function(bl){return yn.pointCoordinate(bl)}),yi=_r.map(function(bl){return yn.pointCoordinate(bl)}),Oi=this.getIds(),Ji=1/0,Lo=1/0,Qo=-1/0,Zi=-1/0,Wo=0,js=yi;Wo=0&&Qc[1].y+Ju>=0){var lh=Sn.map(function(Rh){return Ru.getTilePoint(Rh)}),zh=yi.map(function(Rh){return Ru.getTilePoint(Rh)});Mt.push({tile:mu,tileID:Ru,queryGeometry:lh,cameraQueryGeometry:zh,scale:ic})}}},Xl=0;Xl=w.browser.now())return!0}return!1},J.prototype.setFeatureState=function(Q,ce,Ze){this._state.updateState(Q=Q||"_geojsonTileLayer",ce,Ze)},J.prototype.removeFeatureState=function(Q,ce,Ze){this._state.removeFeatureState(Q=Q||"_geojsonTileLayer",ce,Ze)},J.prototype.getFeatureState=function(Q,ce){return this._state.getState(Q=Q||"_geojsonTileLayer",ce)},J.prototype.setDependencies=function(Q,ce,Ze){var Ct=this._tiles[Q];Ct&&Ct.setDependencies(ce,Ze)},J.prototype.reloadTilesForDependencies=function(Q,ce){for(var Ze in this._tiles)this._tiles[Ze].hasDependency(Q,ce)&&this._reloadTile(Ze,"reloading");this._cache.filter(function(Ct){return!Ct.hasDependency(Q,ce)})},J}(w.Evented);function xr(G,J){var Q=Math.abs(2*G.wrap)-+(G.wrap<0),ce=Math.abs(2*J.wrap)-+(J.wrap<0);return G.overscaledZ-J.overscaledZ||ce-Q||J.canonical.y-G.canonical.y||J.canonical.x-G.canonical.x}function Br(G){return G==="raster"||G==="image"||G==="video"}function _o(){return new w.window.Worker(Ir.workerUrl)}$n.maxOverzooming=10,$n.maxUnderzooming=3;var Qt="mapboxgl_preloaded_worker_pool",xn=function(){this.active={}};xn.prototype.acquire=function(G){if(!this.workers)for(this.workers=[];this.workers.length0?(ce-Ct)/Mt:0;return this.points[Ze].mult(1-yn).add(this.points[J].mult(yn))};var ts=function(G,J,Q){var ce=this.boxCells=[],Ze=this.circleCells=[];this.xCellCount=Math.ceil(G/Q),this.yCellCount=Math.ceil(J/Q);for(var Ct=0;Ct=-J[0]&&Q<=J[0]&&ce>=-J[1]&&ce<=J[1]}function ya(G,J,Q,ce,Ze,Ct,Mt,yn){var _r=ce?G.textSizeData:G.iconSizeData,Sn=w.evaluateSizeForZoom(_r,Q.transform.zoom),yi=[256/Q.width*2+1,256/Q.height*2+1],Oi=ce?G.text.dynamicLayoutVertexArray:G.icon.dynamicLayoutVertexArray;Oi.clear();for(var Ji=G.lineVertexArray,Lo=ce?G.text.placedSymbolArray:G.icon.placedSymbolArray,Qo=Q.transform.width/Q.transform.height,Zi=!1,Wo=0;WoMath.abs(Q.x-J.x)*ce?{useVertical:!0}:(G===w.WritingMode.vertical?J.yQ.x)?{needsFlipping:!0}:null}function al(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn,yi,Oi,Ji,Lo){var Qo,Zi=J/24,Wo=G.lineOffsetX*Zi,js=G.lineOffsetY*Zi;if(G.numGlyphs>1){var Ja=G.glyphStartIndex+G.numGlyphs,Ha=G.lineStartIndex,Xl=G.lineStartIndex+G.lineLength,bl=Zs(Zi,yn,Wo,js,Q,yi,Oi,G,_r,Ct,Ji);if(!bl)return{notEnoughRoom:!0};var mu=Vi(bl.first.point,Mt).point,Ru=Vi(bl.last.point,Mt).point;if(ce&&!Q){var ic=qs(G.writingMode,mu,Ru,Lo);if(ic)return ic}Qo=[bl.first];for(var Ju=G.glyphStartIndex+1;Ju0?Rh.point:co(Oi,zh,Qc,1,Ze),Hc=qs(G.writingMode,Qc,kd,Lo);if(Hc)return Hc}var Sc=tl(Zi*yn.getoffsetX(G.glyphStartIndex),Wo,js,Q,yi,Oi,G.segment,G.lineStartIndex,G.lineStartIndex+G.lineLength,_r,Ct,Ji);if(!Sc)return{notEnoughRoom:!0};Qo=[Sc]}for(var Gd=0,Od=Qo;Gd0?1:-1,Qo=0;ce&&(Lo*=-1,Qo=Math.PI),Lo<0&&(Qo+=Math.PI);for(var Zi=Lo>0?yn+Mt:yn+Mt+1,Wo=Ze,js=Ze,Ja=0,Ha=0,Xl=Math.abs(Ji),bl=[];Ja+Ha<=Xl;){if((Zi+=Lo)=_r)return null;if(js=Wo,bl.push(Wo),(Wo=Oi[Zi])===void 0){var mu=new w.Point(Sn.getx(Zi),Sn.gety(Zi)),Ru=Vi(mu,yi);if(Ru.signedDistanceFromCamera>0)Wo=Oi[Zi]=Ru.point;else{var ic=Zi-Lo;Wo=co(Ja===0?Ct:new w.Point(Sn.getx(ic),Sn.gety(ic)),mu,js,Xl-Ja+1,yi)}}Ja+=Ha,Ha=js.dist(Wo)}var Ju=(Xl-Ja)/Ha,Qc=Wo.sub(js),lh=Qc.mult(Ju)._add(js);lh._add(Qc._unit()._perp()._mult(Q*Lo));var zh=Qo+Math.atan2(Wo.y-js.y,Wo.x-js.x);return bl.push(lh),{point:lh,angle:zh,path:bl}}ts.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},ts.prototype.insert=function(G,J,Q,ce,Ze){this._forEachCell(J,Q,ce,Ze,this._insertBoxCell,this.boxUid++),this.boxKeys.push(G),this.bboxes.push(J),this.bboxes.push(Q),this.bboxes.push(ce),this.bboxes.push(Ze)},ts.prototype.insertCircle=function(G,J,Q,ce){this._forEachCell(J-ce,Q-ce,J+ce,Q+ce,this._insertCircleCell,this.circleUid++),this.circleKeys.push(G),this.circles.push(J),this.circles.push(Q),this.circles.push(ce)},ts.prototype._insertBoxCell=function(G,J,Q,ce,Ze,Ct){this.boxCells[Ze].push(Ct)},ts.prototype._insertCircleCell=function(G,J,Q,ce,Ze,Ct){this.circleCells[Ze].push(Ct)},ts.prototype._query=function(G,J,Q,ce,Ze,Ct){if(Q<0||G>this.width||ce<0||J>this.height)return!Ze&&[];var Mt=[];if(G<=0&&J<=0&&this.width<=Q&&this.height<=ce){if(Ze)return!0;for(var yn=0;yn0:Mt},ts.prototype._queryCircle=function(G,J,Q,ce,Ze){var Ct=G-Q,Mt=G+Q,yn=J-Q,_r=J+Q;if(Mt<0||Ct>this.width||_r<0||yn>this.height)return!ce&&[];var Sn=[];return this._forEachCell(Ct,yn,Mt,_r,this._queryCellCircle,Sn,{hitTest:ce,circle:{x:G,y:J,radius:Q},seenUids:{box:{},circle:{}}},Ze),ce?Sn.length>0:Sn},ts.prototype.query=function(G,J,Q,ce,Ze){return this._query(G,J,Q,ce,!1,Ze)},ts.prototype.hitTest=function(G,J,Q,ce,Ze){return this._query(G,J,Q,ce,!0,Ze)},ts.prototype.hitTestCircle=function(G,J,Q,ce){return this._queryCircle(G,J,Q,!0,ce)},ts.prototype._queryCell=function(G,J,Q,ce,Ze,Ct,Mt,yn){var _r=Mt.seenUids,Sn=this.boxCells[Ze];if(Sn!==null)for(var yi=this.bboxes,Oi=0,Ji=Sn;Oi=yi[Qo+0]&&ce>=yi[Qo+1]&&(!yn||yn(this.boxKeys[Lo]))){if(Mt.hitTest)return Ct.push(!0),!0;Ct.push({key:this.boxKeys[Lo],x1:yi[Qo],y1:yi[Qo+1],x2:yi[Qo+2],y2:yi[Qo+3]})}}}var Zi=this.circleCells[Ze];if(Zi!==null)for(var Wo=this.circles,js=0,Ja=Zi;jsMt*Mt+yn*yn},ts.prototype._circleAndRectCollide=function(G,J,Q,ce,Ze,Ct,Mt){var yn=(Ct-ce)/2,_r=Math.abs(G-(ce+yn));if(_r>yn+Q)return!1;var Sn=(Mt-Ze)/2,yi=Math.abs(J-(Ze+Sn));if(yi>Sn+Q)return!1;if(_r<=yn||yi<=Sn)return!0;var Oi=_r-yn,Ji=yi-Sn;return Oi*Oi+Ji*Ji<=Q*Q};var fl=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ai(G,J){for(var Q=0;Q=1;kd--)Rh.push(lh.path[kd]);for(var Hc=1;Hc0){for(var Yh=Rh[0].clone(),Vd=Rh[0].clone(),Id=1;Id=ic.x&&Vd.x<=Ju.x&&Yh.y>=ic.y&&Vd.y<=Ju.y?[Rh]:Vd.xJu.x||Vd.yJu.y?[]:w.clipLine([Rh],ic.x,ic.y,Ju.x,Ju.y)}for(var dd=0,Op=Od;dd=this.screenRightBoundary||ce<100||J>this.screenBottomBoundary},Fi.prototype.isInsideGrid=function(G,J,Q,ce){return Q>=0&&G=0&&J0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Oi.crossTileID]&&this.prevPlacement.placements[Oi.crossTileID]&&this.prevPlacement.placements[Oi.crossTileID].text&&(Zi=this.prevPlacement.variableOffsets[Oi.crossTileID].anchor),this.variableOffsets[Oi.crossTileID]={textOffset:Wo,width:Q,height:ce,anchor:G,textBoxScale:Ze,prevAnchor:Zi},this.markUsedJustification(Ji,G,Oi,Lo),Ji.allowVerticalPlacement&&(this.markUsedOrientation(Ji,Lo,Oi),this.placedOrientations[Oi.crossTileID]=Lo),{shift:js,placedGlyphBoxes:Ja}):void 0},ar.prototype.placeLayerBucketPart=function(G,J,Q){var ce=this,Ze=G.parameters,Ct=Ze.bucket,Mt=Ze.layout,yn=Ze.posMatrix,_r=Ze.textLabelPlaneMatrix,Sn=Ze.labelToScreenMatrix,yi=Ze.textPixelRatio,Oi=Ze.holdingForFade,Ji=Ze.collisionBoxArray,Lo=Ze.partiallyEvaluatedTextSize,Qo=Ze.collisionGroup,Zi=Mt.get("text-optional"),Wo=Mt.get("icon-optional"),js=Mt.get("text-allow-overlap"),Ja=Mt.get("icon-allow-overlap"),Ha=Mt.get("text-rotation-alignment")==="map",Xl=Mt.get("text-pitch-alignment")==="map",bl=Mt.get("icon-text-fit")!=="none",mu=Mt.get("symbol-z-order")==="viewport-y",Ru=js&&(Ja||!Ct.hasIconData()||Wo),ic=Ja&&(js||!Ct.hasTextData()||Zi);!Ct.collisionArrays&&Ji&&Ct.deserializeCollisionBoxes(Ji);var Ju=function(Hc,Sc){if(!J[Hc.crossTileID])if(Oi)ce.placements[Hc.crossTileID]=new Zo(!1,!1,!1);else{var Gd,Od=!1,Yh=!1,Vd=!0,Id=null,dd={box:null,offscreen:null},Op={box:null,offscreen:null},ip=null,fp=null,Uc=0,yc=0,rh=0;Sc.textFeatureIndex?Uc=Sc.textFeatureIndex:Hc.useRuntimeCollisionCircles&&(Uc=Hc.featureIndex),Sc.verticalTextFeatureIndex&&(yc=Sc.verticalTextFeatureIndex);var uh=Sc.textBox;if(uh){var Gh=function(qd){var yf=w.WritingMode.horizontal;if(Ct.allowVerticalPlacement&&!qd&&ce.prevPlacement){var Tg=ce.prevPlacement.placedOrientations[Hc.crossTileID];Tg&&(ce.placedOrientations[Hc.crossTileID]=Tg,ce.markUsedOrientation(Ct,yf=Tg,Hc))}return yf},wc=function(qd,yf){if(Ct.allowVerticalPlacement&&Hc.numVerticalGlyphVertices>0&&Sc.verticalTextBox)for(var Tg=0,Yg=Ct.writingModes;Tg0&&(Sd=Sd.filter(function(qd){return qd!==td.anchor})).unshift(td.anchor)}var Dc=function(qd,yf,Tg){for(var Yg=qd.x2-qd.x1,qf=qd.y2-qd.y1,yd=Hc.textBoxScale,i0=bl&&!Ja?yf:null,Cm={box:[],offscreen:!1},o0=js?2*Sd.length:Sd.length,qg=0;qg=Sd.length,Hc,Ct,Tg,i0);if(Qm&&(Cm=Qm.placedGlyphBoxes)&&Cm.box&&Cm.box.length){Od=!0,Id=Qm.shift;break}}return Cm};wc(function(){return Dc(uh,Sc.iconBox,w.WritingMode.horizontal)},function(){var qd=Sc.verticalTextBox;return Ct.allowVerticalPlacement&&!(dd&&dd.box&&dd.box.length)&&Hc.numVerticalGlyphVertices>0&&qd?Dc(qd,Sc.verticalIconBox,w.WritingMode.vertical):{box:null,offscreen:null}}),dd&&(Od=dd.box,Vd=dd.offscreen);var Fo=Gh(dd&&dd.box);if(!Od&&ce.prevPlacement){var Pg=ce.prevPlacement.variableOffsets[Hc.crossTileID];Pg&&(ce.variableOffsets[Hc.crossTileID]=Pg,ce.markUsedJustification(Ct,Pg.anchor,Hc,Fo))}}else{var Np=function(qd,yf){var Tg=ce.collisionIndex.placeCollisionBox(qd,js,yi,yn,Qo.predicate);return Tg&&Tg.box&&Tg.box.length&&(ce.markUsedOrientation(Ct,yf,Hc),ce.placedOrientations[Hc.crossTileID]=yf),Tg};wc(function(){return Np(uh,w.WritingMode.horizontal)},function(){var qd=Sc.verticalTextBox;return Ct.allowVerticalPlacement&&Hc.numVerticalGlyphVertices>0&&qd?Np(qd,w.WritingMode.vertical):{box:null,offscreen:null}}),Gh(dd&&dd.box&&dd.box.length)}}if(Od=(Gd=dd)&&Gd.box&&Gd.box.length>0,Vd=Gd&&Gd.offscreen,Hc.useRuntimeCollisionCircles){var Hg=Ct.text.placedSymbolArray.get(Hc.centerJustifiedTextSymbolIndex),Og=w.evaluateSizeForFeature(Ct.textSizeData,Lo,Hg),jf=Mt.get("text-padding");ip=ce.collisionIndex.placeCollisionCircles(js,Hg,Ct.lineVertexArray,Ct.glyphOffsetArray,Og,yn,_r,Sn,Q,Xl,Qo.predicate,Hc.collisionCircleDiameter,jf),Od=js||ip.circles.length>0&&!ip.collisionDetected,Vd=Vd&&ip.offscreen}if(Sc.iconFeatureIndex&&(rh=Sc.iconFeatureIndex),Sc.iconBox){var Nd=function(qd){var yf=bl&&Id?Tn(qd,Id.x,Id.y,Ha,Xl,ce.transform.angle):qd;return ce.collisionIndex.placeCollisionBox(yf,Ja,yi,yn,Qo.predicate)};Yh=Op&&Op.box&&Op.box.length&&Sc.verticalIconBox?(fp=Nd(Sc.verticalIconBox)).box.length>0:(fp=Nd(Sc.iconBox)).box.length>0,Vd=Vd&&fp.offscreen}var Nf=Zi||Hc.numHorizontalGlyphVertices===0&&Hc.numVerticalGlyphVertices===0,Fp=Wo||Hc.numIconVertices===0;if(Nf||Fp?Fp?Nf||(Yh=Yh&&Od):Od=Yh&&Od:Yh=Od=Yh&&Od,Od&&Gd&&Gd.box&&ce.collisionIndex.insertCollisionBox(Gd.box,Mt.get("text-ignore-placement"),Ct.bucketInstanceId,Op&&Op.box&&yc?yc:Uc,Qo.ID),Yh&&fp&&ce.collisionIndex.insertCollisionBox(fp.box,Mt.get("icon-ignore-placement"),Ct.bucketInstanceId,rh,Qo.ID),ip&&(Od&&ce.collisionIndex.insertCollisionCircles(ip.circles,Mt.get("text-ignore-placement"),Ct.bucketInstanceId,Uc,Qo.ID),Q)){var Hp=Ct.bucketInstanceId,Sp=ce.collisionCircleArrays[Hp];Sp===void 0&&(Sp=ce.collisionCircleArrays[Hp]=new ns);for(var Uf=0;Uf=0;--lh){var zh=Qc[lh];Ju(Ct.symbolInstances.get(zh),Ct.collisionArrays[zh])}else for(var Rh=G.symbolInstanceStart;Rh=0&&(G.text.placedSymbolArray.get(yn).crossTileID=Ze>=0&&yn!==Ze?0:Q.crossTileID)}},ar.prototype.markUsedOrientation=function(G,J,Q){for(var ce=J===w.WritingMode.horizontal||J===w.WritingMode.horizontalOnly?J:0,Ze=J===w.WritingMode.vertical?J:0,Ct=0,Mt=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];Ct0,ic=ce.placedOrientations[Ja.crossTileID],Ju=ic===w.WritingMode.vertical,Qc=ic===w.WritingMode.horizontal||ic===w.WritingMode.horizontalOnly;if(Ha>0||Xl>0){var lh=Gr(mu.text);Lo(G.text,Ha,Ju?Gi:lh),Lo(G.text,Xl,Qc?Gi:lh);var zh=mu.text.isHidden();[Ja.rightJustifiedTextSymbolIndex,Ja.centerJustifiedTextSymbolIndex,Ja.leftJustifiedTextSymbolIndex].forEach(function(dd){dd>=0&&(G.text.placedSymbolArray.get(dd).hidden=zh||Ju?1:0)}),Ja.verticalPlacedTextSymbolIndex>=0&&(G.text.placedSymbolArray.get(Ja.verticalPlacedTextSymbolIndex).hidden=zh||Qc?1:0);var Rh=ce.variableOffsets[Ja.crossTileID];Rh&&ce.markUsedJustification(G,Rh.anchor,Ja,ic);var kd=ce.placedOrientations[Ja.crossTileID];kd&&(ce.markUsedJustification(G,"left",Ja,kd),ce.markUsedOrientation(G,kd,Ja))}if(Ru){var Hc=Gr(mu.icon),Sc=!(Oi&&Ja.verticalPlacedIconSymbolIndex&&Ju);Ja.placedIconSymbolIndex>=0&&(Lo(G.icon,Ja.numIconVertices,Sc?Hc:Gi),G.icon.placedSymbolArray.get(Ja.placedIconSymbolIndex).hidden=mu.icon.isHidden()),Ja.verticalPlacedIconSymbolIndex>=0&&(Lo(G.icon,Ja.numVerticalIconVertices,Sc?Gi:Hc),G.icon.placedSymbolArray.get(Ja.verticalPlacedIconSymbolIndex).hidden=mu.icon.isHidden())}if(G.hasIconCollisionBoxData()||G.hasTextCollisionBoxData()){var Gd=G.collisionArrays[js];if(Gd){var Od=new w.Point(0,0);if(Gd.textBox||Gd.verticalTextBox){var Yh=!0;if(_r){var Vd=ce.variableOffsets[bl];Vd?(Od=hn(Vd.anchor,Vd.width,Vd.height,Vd.textOffset,Vd.textBoxScale),Sn&&Od._rotate(yi?ce.transform.angle:-ce.transform.angle)):Yh=!1}Gd.textBox&&ft(G.textCollisionBox.collisionVertexArray,mu.text.placed,!Yh||Ju,Od.x,Od.y),Gd.verticalTextBox&&ft(G.textCollisionBox.collisionVertexArray,mu.text.placed,!Yh||Qc,Od.x,Od.y)}var Id=!!(!Qc&&Gd.verticalIconBox);Gd.iconBox&&ft(G.iconCollisionBox.collisionVertexArray,mu.icon.placed,Id,Oi?Od.x:0,Oi?Od.y:0),Gd.verticalIconBox&&ft(G.iconCollisionBox.collisionVertexArray,mu.icon.placed,!Id,Oi?Od.x:0,Oi?Od.y:0)}}},Zi=0;ZiG},ar.prototype.setStale=function(){this.stale=!0};var wt=Math.pow(2,25),At=Math.pow(2,24),Ye=Math.pow(2,17),Et=Math.pow(2,16),Wt=Math.pow(2,9),vn=Math.pow(2,8),Er=Math.pow(2,1);function Gr(G){if(G.opacity===0&&!G.placed)return 0;if(G.opacity===1&&G.placed)return 4294967295;var J=G.placed?1:0,Q=Math.floor(127*G.opacity);return Q*wt+J*At+Q*Ye+J*Et+Q*Wt+J*vn+Q*Er+J}var Gi=0,ko=function(G){this._sortAcrossTiles=G.layout.get("symbol-z-order")!=="viewport-y"&&G.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ko.prototype.continuePlacement=function(G,J,Q,ce,Ze){for(var Ct=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Mt=J[G[this._currentPlacementIndex]],yn=this.placement.collisionIndex.transform.zoom;if(Mt.type==="symbol"&&(!Mt.minzoom||Mt.minzoom<=yn)&&(!Mt.maxzoom||Mt.maxzoom>yn)){if(this._inProgressLayer||(this._inProgressLayer=new ko(Mt)),this._inProgressLayer.continuePlacement(Q[Mt.source],this.placement,this._showCollisionBoxes,Mt,Ct))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Bi.prototype.commit=function(G){return this.placement.commit(G),this.placement};var ms=512/w.EXTENT/2,ps=function(G,J,Q){this.tileID=G,this.indexedSymbolInstances={},this.bucketInstanceId=Q;for(var ce=0;ceG.overscaledZ)for(var yn in Mt){var _r=Mt[yn];_r.tileID.isChildOf(G)&&_r.findMatches(J.symbolInstances,G,Ze)}else{var Sn=Mt[G.scaledTo(Number(Ct)).key];Sn&&Sn.findMatches(J.symbolInstances,G,Ze)}}for(var yi=0;yi1?"@2x":"",Oi=w.getJSON(Ct.transformRequest(Ct.normalizeSpriteURL(Ze,yi,".json"),w.ResourceType.SpriteJSON),function(Qo,Zi){Oi=null,Sn||(Sn=Qo,yn=Zi,Lo())}),Ji=w.getImage(Ct.transformRequest(Ct.normalizeSpriteURL(Ze,yi,".png"),w.ResourceType.SpriteImage),function(Qo,Zi){Ji=null,Sn||(Sn=Qo,_r=Zi,Lo())});function Lo(){if(Sn)Mt(Sn);else if(yn&&_r){var Qo=w.browser.getImageData(_r),Zi={};for(var Wo in yn){var js=yn[Wo],Ja=js.width,Ha=js.height,Xl=js.x,bl=js.y,mu=js.sdf,Ru=js.pixelRatio,ic=js.stretchX,Ju=js.stretchY,Qc=js.content,lh=new w.RGBAImage({width:Ja,height:Ha});w.RGBAImage.copy(Qo,lh,{x:Xl,y:bl},{x:0,y:0},{width:Ja,height:Ha}),Zi[Wo]={data:lh,pixelRatio:Ru,sdf:mu,stretchX:ic,stretchY:Ju,content:Qc}}Mt(null,Zi)}}return{cancel:function(){Oi&&(Oi.cancel(),Oi=null),Ji&&(Ji.cancel(),Ji=null)}}}(Q,this.map._requestManager,function(Ze,Ct){if(ce._spriteRequest=null,Ze)ce.fire(new w.ErrorEvent(Ze));else if(Ct)for(var Mt in Ct)ce.imageManager.addImage(Mt,Ct[Mt]);ce.imageManager.setLoaded(!0),ce._availableImages=ce.imageManager.listImages(),ce.dispatcher.broadcast("setImages",ce._availableImages),ce.fire(new w.Event("data",{dataType:"style"}))})},J.prototype._validateLayer=function(Q){var ce=this.sourceCaches[Q.source];if(ce){var Ze=Q.sourceLayer;if(Ze){var Ct=ce.getSource();(Ct.type==="geojson"||Ct.vectorLayerIds&&Ct.vectorLayerIds.indexOf(Ze)===-1)&&this.fire(new w.ErrorEvent(new Error('Source layer "'+Ze+'" does not exist on source "'+Ct.id+'" as specified by style layer "'+Q.id+'"')))}}},J.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var Q in this.sourceCaches)if(!this.sourceCaches[Q].loaded())return!1;return!!this.imageManager.isLoaded()},J.prototype._serializeLayers=function(Q){for(var ce=[],Ze=0,Ct=Q;Ze0)throw new Error("Unimplemented: "+Ct.map(function(Mt){return Mt.command}).join(", ")+".");return Ze.forEach(function(Mt){Mt.command!=="setTransition"&&ce[Mt.command].apply(ce,Mt.args)}),this.stylesheet=Q,!0},J.prototype.addImage=function(Q,ce){if(this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(Q,ce),this._afterImageUpdated(Q)},J.prototype.updateImage=function(Q,ce){this.imageManager.updateImage(Q,ce)},J.prototype.getImage=function(Q){return this.imageManager.getImage(Q)},J.prototype.removeImage=function(Q){if(!this.getImage(Q))return this.fire(new w.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(Q),this._afterImageUpdated(Q)},J.prototype._afterImageUpdated=function(Q){this._availableImages=this.imageManager.listImages(),this._changedImages[Q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new w.Event("data",{dataType:"style"}))},J.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},J.prototype.addSource=function(Q,ce,Ze){var Ct=this;if(Ze===void 0&&(Ze={}),this._checkLoaded(),this.sourceCaches[Q]!==void 0)throw new Error("There is already a source with this ID");if(!ce.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ce).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(ce.type)>=0&&this._validate(w.validateStyle.source,"sources."+Q,ce,null,Ze))){this.map&&this.map._collectResourceTiming&&(ce.collectResourceTiming=!0);var Mt=this.sourceCaches[Q]=new $n(Q,ce,this.dispatcher);Mt.style=this,Mt.setEventedParent(this,function(){return{isSourceLoaded:Ct.loaded(),source:Mt.serialize(),sourceId:Q}}),Mt.onAdd(this.map),this._changed=!0}},J.prototype.removeSource=function(Q){if(this._checkLoaded(),this.sourceCaches[Q]===void 0)throw new Error("There is no source with this ID");for(var ce in this._layers)if(this._layers[ce].source===Q)return this.fire(new w.ErrorEvent(new Error('Source "'+Q+'" cannot be removed while layer "'+ce+'" is using it.')));var Ze=this.sourceCaches[Q];delete this.sourceCaches[Q],delete this._updatedSources[Q],Ze.fire(new w.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:Q})),Ze.setEventedParent(null),Ze.clearTiles(),Ze.onRemove&&Ze.onRemove(this.map),this._changed=!0},J.prototype.setGeoJSONSourceData=function(Q,ce){this._checkLoaded(),this.sourceCaches[Q].getSource().setData(ce),this._changed=!0},J.prototype.getSource=function(Q){return this.sourceCaches[Q]&&this.sourceCaches[Q].getSource()},J.prototype.addLayer=function(Q,ce,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var Ct=Q.id;if(this.getLayer(Ct))this.fire(new w.ErrorEvent(new Error('Layer with id "'+Ct+'" already exists on this map')));else{var Mt;if(Q.type==="custom"){if(zs(this,w.validateCustomStyleLayer(Q)))return;Mt=w.createStyleLayer(Q)}else{if(typeof Q.source=="object"&&(this.addSource(Ct,Q.source),Q=w.clone$1(Q),Q=w.extend(Q,{source:Ct})),this._validate(w.validateStyle.layer,"layers."+Ct,Q,{arrayIndex:-1},Ze))return;Mt=w.createStyleLayer(Q),this._validateLayer(Mt),Mt.setEventedParent(this,{layer:{id:Ct}}),this._serializedLayers[Mt.id]=Mt.serialize()}var yn=ce?this._order.indexOf(ce):this._order.length;if(ce&&yn===-1)this.fire(new w.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.')));else{if(this._order.splice(yn,0,Ct),this._layerOrderChanged=!0,this._layers[Ct]=Mt,this._removedLayers[Ct]&&Mt.source&&Mt.type!=="custom"){var _r=this._removedLayers[Ct];delete this._removedLayers[Ct],_r.type!==Mt.type?this._updatedSources[Mt.source]="clear":(this._updatedSources[Mt.source]="reload",this.sourceCaches[Mt.source].pause())}this._updateLayer(Mt),Mt.onAdd&&Mt.onAdd(this.map)}}},J.prototype.moveLayer=function(Q,ce){if(this._checkLoaded(),this._changed=!0,this._layers[Q]){if(Q!==ce){var Ze=this._order.indexOf(Q);this._order.splice(Ze,1);var Ct=ce?this._order.indexOf(ce):this._order.length;ce&&Ct===-1?this.fire(new w.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.'))):(this._order.splice(Ct,0,Q),this._layerOrderChanged=!0)}}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be moved.")))},J.prototype.removeLayer=function(Q){this._checkLoaded();var ce=this._layers[Q];if(ce){ce.setEventedParent(null);var Ze=this._order.indexOf(Q);this._order.splice(Ze,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Q]=ce,delete this._layers[Q],delete this._serializedLayers[Q],delete this._updatedLayers[Q],delete this._updatedPaintProps[Q],ce.onRemove&&ce.onRemove(this.map)}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be removed.")))},J.prototype.getLayer=function(Q){return this._layers[Q]},J.prototype.hasLayer=function(Q){return Q in this._layers},J.prototype.setLayerZoomRange=function(Q,ce,Ze){this._checkLoaded();var Ct=this.getLayer(Q);Ct?Ct.minzoom===ce&&Ct.maxzoom===Ze||(ce!=null&&(Ct.minzoom=ce),Ze!=null&&(Ct.maxzoom=Ze),this._updateLayer(Ct)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot have zoom extent.")))},J.prototype.setFilter=function(Q,ce,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var Ct=this.getLayer(Q);if(Ct){if(!w.deepEqual(Ct.filter,ce))return ce==null?(Ct.filter=void 0,void this._updateLayer(Ct)):void(this._validate(w.validateStyle.filter,"layers."+Ct.id+".filter",ce,null,Ze)||(Ct.filter=w.clone$1(ce),this._updateLayer(Ct)))}else this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be filtered.")))},J.prototype.getFilter=function(Q){return w.clone$1(this.getLayer(Q).filter)},J.prototype.setLayoutProperty=function(Q,ce,Ze,Ct){Ct===void 0&&(Ct={}),this._checkLoaded();var Mt=this.getLayer(Q);Mt?w.deepEqual(Mt.getLayoutProperty(ce),Ze)||(Mt.setLayoutProperty(ce,Ze,Ct),this._updateLayer(Mt)):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getLayoutProperty=function(Q,ce){var Ze=this.getLayer(Q);if(Ze)return Ze.getLayoutProperty(ce);this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style.")))},J.prototype.setPaintProperty=function(Q,ce,Ze,Ct){Ct===void 0&&(Ct={}),this._checkLoaded();var Mt=this.getLayer(Q);Mt?w.deepEqual(Mt.getPaintProperty(ce),Ze)||(Mt.setPaintProperty(ce,Ze,Ct)&&this._updateLayer(Mt),this._changed=!0,this._updatedPaintProps[Q]=!0):this.fire(new w.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},J.prototype.getPaintProperty=function(Q,ce){return this.getLayer(Q).getPaintProperty(ce)},J.prototype.setFeatureState=function(Q,ce){this._checkLoaded();var Ze=Q.source,Ct=Q.sourceLayer,Mt=this.sourceCaches[Ze];if(Mt!==void 0){var yn=Mt.getSource().type;yn==="geojson"&&Ct?this.fire(new w.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):yn!=="vector"||Ct?(Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Mt.setFeatureState(Ct,Q.id,ce)):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},J.prototype.removeFeatureState=function(Q,ce){this._checkLoaded();var Ze=Q.source,Ct=this.sourceCaches[Ze];if(Ct!==void 0){var Mt=Ct.getSource().type,yn=Mt==="vector"?Q.sourceLayer:void 0;Mt!=="vector"||yn?ce&&typeof Q.id!="string"&&typeof Q.id!="number"?this.fire(new w.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Ct.removeFeatureState(yn,Q.id,ce):this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},J.prototype.getFeatureState=function(Q){this._checkLoaded();var ce=Q.source,Ze=Q.sourceLayer,Ct=this.sourceCaches[ce];if(Ct!==void 0){if(Ct.getSource().type!=="vector"||Ze)return Q.id===void 0&&this.fire(new w.ErrorEvent(new Error("The feature id parameter must be provided."))),Ct.getFeatureState(Ze,Q.id);this.fire(new w.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new w.ErrorEvent(new Error("The source '"+ce+"' does not exist in the map's style.")))},J.prototype.getTransition=function(){return w.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},J.prototype.serialize=function(){return w.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:w.mapObject(this.sourceCaches,function(Q){return Q.serialize()}),layers:this._serializeLayers(this._order)},function(Q){return Q!==void 0})},J.prototype._updateLayer=function(Q){this._updatedLayers[Q.id]=!0,Q.source&&!this._updatedSources[Q.source]&&this.sourceCaches[Q.source].getSource().type!=="raster"&&(this._updatedSources[Q.source]="reload",this.sourceCaches[Q.source].pause()),this._changed=!0},J.prototype._flattenAndSortRenderedFeatures=function(Q){for(var ce=this,Ze=function(ic){return ce._layers[ic].type==="fill-extrusion"},Ct={},Mt=[],yn=this._order.length-1;yn>=0;yn--){var _r=this._order[yn];if(Ze(_r)){Ct[_r]=yn;for(var Sn=0,yi=Q;Sn=0;Zi--){var Wo=this._order[Zi];if(Ze(Wo))for(var js=Mt.length-1;js>=0;js--){var Ja=Mt[js].feature;if(Ct[Ja.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Wu=Ml("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),rc=Ml("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Pc=Ml(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Ga=kl("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),zu=kl("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Ac=kl("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),vc=kl(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -8244,7 +8355,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),vo=Ml(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),ec=kl(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -8260,7 +8371,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),eo=Ml(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),qu=kl(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -8284,7 +8395,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ds=Ml(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Uu=kl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -8308,7 +8419,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Wn=Ml(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),zn=kl(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -8320,7 +8431,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),yr=Ml(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),ur=kl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -8354,20 +8465,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),ai=Ml(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Zr=kl(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hi=Ml(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Jr=kl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ji=Ml(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),_i=kl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -8395,7 +8506,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),so=Ml(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),so=kl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -8419,7 +8530,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Pi=Ml(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Ui=kl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -8462,7 +8573,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),us=Ml(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),hs=kl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -8497,11 +8608,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),pa=Ml(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),ra=kl(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),$a=Ml(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Ka=kl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -8515,7 +8626,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),hl=Ml(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),ul=kl(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -8546,7 +8657,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Zl=Ml(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),hl=kl(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -8583,118 +8694,118 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ml(X,re){var Q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,le=re.match(/attribute ([\w]+) ([\w]+)/g),it=X.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Rt=re.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),nn=Rt?Rt.concat(it):it,Yn={};return{fragmentSource:X=X.replace(Q,function(ei,gr,ss,ts,Is){return Yn[Is]=!0,gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -varying `+ss+" "+ts+" "+Is+`; +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function kl(G,J){var Q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ce=J.match(/attribute ([\w]+) ([\w]+)/g),Ze=G.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ct=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Mt=Ct?Ct.concat(Ze):Ze,yn={};return{fragmentSource:G=G.replace(Q,function(_r,Sn,yi,Oi,Ji){return yn[Ji]=!0,Sn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +varying `+yi+" "+Oi+" "+Ji+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+yi+" "+Oi+" u_"+Ji+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = u_"+Is+`; +#ifdef HAS_UNIFORM_u_`+Ji+` + `+yi+" "+Oi+" "+Ji+" = u_"+Ji+`; #endif -`}),vertexSource:re=re.replace(Q,function(ei,gr,ss,ts,Is){var ua=ts==="float"?"vec2":"vec4",na=Is.match(/color/)?"color":ua;return Yn[Is]?gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -uniform lowp float u_`+Is+`_t; -attribute `+ss+" "+ua+" a_"+Is+`; -varying `+ss+" "+ts+" "+Is+`; +`}),vertexSource:J=J.replace(Q,function(_r,Sn,yi,Oi,Ji){var Lo=Oi==="float"?"vec2":"vec4",Qo=Ji.match(/color/)?"color":Lo;return yn[Ji]?Sn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +uniform lowp float u_`+Ji+`_t; +attribute `+yi+" "+Lo+" a_"+Ji+`; +varying `+yi+" "+Oi+" "+Ji+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+yi+" "+Oi+" u_"+Ji+`; #endif -`:na==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Is+` - `+Is+" = a_"+Is+`; +`:Qo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ji+` + `+Ji+" = a_"+Ji+`; #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+yi+" "+Oi+" "+Ji+" = u_"+Ji+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Is+` - `+Is+" = unpack_mix_"+na+"(a_"+Is+", u_"+Is+`_t); +#ifndef HAS_UNIFORM_u_`+Ji+` + `+Ji+" = unpack_mix_"+Qo+"(a_"+Ji+", u_"+Ji+`_t); #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+yi+" "+Oi+" "+Ji+" = u_"+Ji+`; #endif -`:gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -uniform lowp float u_`+Is+`_t; -attribute `+ss+" "+ua+" a_"+Is+`; +`:Sn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +uniform lowp float u_`+Ji+`_t; +attribute `+yi+" "+Lo+" a_"+Ji+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+yi+" "+Oi+" u_"+Ji+`; #endif -`:na==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = a_"+Is+`; +`:Qo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ji+` + `+yi+" "+Oi+" "+Ji+" = a_"+Ji+`; #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+yi+" "+Oi+" "+Ji+" = u_"+Ji+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = unpack_mix_"+na+"(a_"+Is+", u_"+Is+`_t); +#ifndef HAS_UNIFORM_u_`+Ji+` + `+yi+" "+Oi+" "+Ji+" = unpack_mix_"+Qo+"(a_"+Ji+", u_"+Ji+`_t); #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+yi+" "+Oi+" "+Ji+" = u_"+Ji+`; #endif -`}),staticAttributes:le,staticUniforms:nn}}var Za=Object.freeze({__proto__:null,prelude:la,background:Nl,backgroundPattern:vs,circle:Hi,clippingMask:to,heatmap:sa,heatmapTexture:Cs,collisionBox:Ka,collisionCircle:Wu,debug:rc,fill:Pc,fillOutline:vo,fillOutlinePattern:eo,fillPattern:ds,fillExtrusion:Wn,fillExtrusionPattern:yr,hillshadePrepare:ai,hillshade:hi,line:Ji,lineGradient:so,linePattern:Pi,lineSDF:us,raster:pa,symbolIcon:$a,symbolSDF:hl,symbolTextAndIcon:Zl}),ku=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function ea(X){for(var re=[],Q=0;Q>16,Yn>>16],u_pixel_coord_lower:[65535&nn,65535&Yn]}}Qa.prototype.draw=function(X,re,Q,le,it,Rt,nn,Yn,ei,gr,ss,ts,Is,ua,na,Go){var Gs,Va=X.gl;if(!this.failedToCreate){for(var _l in X.program.set(this.program),X.setDepthMode(Q),X.setStencilMode(le),X.setColorMode(it),X.setCullFace(Rt),this.fixedUniforms)this.fixedUniforms[_l].set(nn[_l]);ua&&ua.setUniforms(X,this.binderUniforms,ts,{zoom:Is});for(var nu=(Gs={},Gs[Va.LINES]=2,Gs[Va.TRIANGLES]=3,Gs[Va.LINE_STRIP]=1,Gs)[re],xu=0,Tu=ss.get();xu0?1-1/(1.001-nn):-nn),u_contrast_factor:(Rt=it.paint.get("raster-contrast"),Rt>0?1/(1-Rt):1+Rt),u_spin_weights:Xd(it.paint.get("raster-hue-rotate"))};var Rt,nn};function Xd(X){X*=Math.PI/180;var re=Math.sin(X),Q=Math.cos(X);return[(2*Q+1)/3,(-Math.sqrt(3)*re-Q+1)/3,(Math.sqrt(3)*re-Q+1)/3]}var sd,Mu=function(X,re,Q,le,it,Rt,nn,Yn,ei,gr){var ss=it.transform;return{u_is_size_zoom_constant:+(X==="constant"||X==="source"),u_is_size_feature_constant:+(X==="constant"||X==="camera"),u_size_t:re?re.uSizeT:0,u_size:re?re.uSize:0,u_camera_to_center_distance:ss.cameraToCenterDistance,u_pitch:ss.pitch/360*2*Math.PI,u_rotate_symbol:+Q,u_aspect_ratio:ss.width/ss.height,u_fade_change:it.options.fadeDuration?it.symbolFadeChange:1,u_matrix:Rt,u_label_plane_matrix:nn,u_coord_matrix:Yn,u_is_text:+ei,u_pitch_with_map:+le,u_texsize:gr,u_texture:0}},Fc=function(X,re,Q,le,it,Rt,nn,Yn,ei,gr,ss){var ts=it.transform;return b.extend(Mu(X,re,Q,le,it,Rt,nn,Yn,ei,gr),{u_gamma_scale:le?Math.cos(ts._pitch)*ts.cameraToCenterDistance:1,u_device_pixel_ratio:b.browser.devicePixelRatio,u_is_halo:+ss})},hd=function(X,re,Q,le,it,Rt,nn,Yn,ei,gr){return b.extend(Fc(X,re,Q,le,it,Rt,nn,Yn,!0,ei,!0),{u_texsize_icon:gr,u_texture_icon:1})},vd=function(X,re,Q){return{u_matrix:X,u_opacity:re,u_color:Q}},Yd=function(X,re,Q,le,it,Rt){return b.extend(function(nn,Yn,ei,gr){var ss=ei.imageManager.getPattern(nn.from.toString()),ts=ei.imageManager.getPattern(nn.to.toString()),Is=ei.imageManager.getPixelSize(),ua=Is.width,na=Is.height,Go=Math.pow(2,gr.tileID.overscaledZ),Gs=gr.tileSize*Math.pow(2,ei.transform.tileZoom)/Go,Va=Gs*(gr.tileID.canonical.x+gr.tileID.wrap*Go),_l=Gs*gr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ss.tl,u_pattern_br_a:ss.br,u_pattern_tl_b:ts.tl,u_pattern_br_b:ts.br,u_texsize:[ua,na],u_mix:Yn.t,u_pattern_size_a:ss.displaySize,u_pattern_size_b:ts.displaySize,u_scale_a:Yn.fromScale,u_scale_b:Yn.toScale,u_tile_units_to_pixels:1/ci(gr,1,ei.transform.tileZoom),u_pixel_coord_upper:[Va>>16,_l>>16],u_pixel_coord_lower:[65535&Va,65535&_l]}}(le,Rt,Q,it),{u_matrix:X,u_opacity:re})},nh={fillExtrusion:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_lightpos:new b.Uniform3f(X,re.u_lightpos),u_lightintensity:new b.Uniform1f(X,re.u_lightintensity),u_lightcolor:new b.Uniform3f(X,re.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,re.u_vertical_gradient),u_opacity:new b.Uniform1f(X,re.u_opacity)}},fillExtrusionPattern:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_lightpos:new b.Uniform3f(X,re.u_lightpos),u_lightintensity:new b.Uniform1f(X,re.u_lightintensity),u_lightcolor:new b.Uniform3f(X,re.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,re.u_vertical_gradient),u_height_factor:new b.Uniform1f(X,re.u_height_factor),u_image:new b.Uniform1i(X,re.u_image),u_texsize:new b.Uniform2f(X,re.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,re.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,re.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,re.u_scale),u_fade:new b.Uniform1f(X,re.u_fade),u_opacity:new b.Uniform1f(X,re.u_opacity)}},fill:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix)}},fillPattern:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_image:new b.Uniform1i(X,re.u_image),u_texsize:new b.Uniform2f(X,re.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,re.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,re.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,re.u_scale),u_fade:new b.Uniform1f(X,re.u_fade)}},fillOutline:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_world:new b.Uniform2f(X,re.u_world)}},fillOutlinePattern:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_world:new b.Uniform2f(X,re.u_world),u_image:new b.Uniform1i(X,re.u_image),u_texsize:new b.Uniform2f(X,re.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,re.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,re.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,re.u_scale),u_fade:new b.Uniform1f(X,re.u_fade)}},circle:function(X,re){return{u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_scale_with_map:new b.Uniform1i(X,re.u_scale_with_map),u_pitch_with_map:new b.Uniform1i(X,re.u_pitch_with_map),u_extrude_scale:new b.Uniform2f(X,re.u_extrude_scale),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_matrix:new b.UniformMatrix4f(X,re.u_matrix)}},collisionBox:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_pixels_to_tile_units:new b.Uniform1f(X,re.u_pixels_to_tile_units),u_extrude_scale:new b.Uniform2f(X,re.u_extrude_scale),u_overscale_factor:new b.Uniform1f(X,re.u_overscale_factor)}},collisionCircle:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_inv_matrix:new b.UniformMatrix4f(X,re.u_inv_matrix),u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_viewport_size:new b.Uniform2f(X,re.u_viewport_size)}},debug:function(X,re){return{u_color:new b.UniformColor(X,re.u_color),u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_overlay:new b.Uniform1i(X,re.u_overlay),u_overlay_scale:new b.Uniform1f(X,re.u_overlay_scale)}},clippingMask:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix)}},heatmap:function(X,re){return{u_extrude_scale:new b.Uniform1f(X,re.u_extrude_scale),u_intensity:new b.Uniform1f(X,re.u_intensity),u_matrix:new b.UniformMatrix4f(X,re.u_matrix)}},heatmapTexture:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_world:new b.Uniform2f(X,re.u_world),u_image:new b.Uniform1i(X,re.u_image),u_color_ramp:new b.Uniform1i(X,re.u_color_ramp),u_opacity:new b.Uniform1f(X,re.u_opacity)}},hillshade:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_image:new b.Uniform1i(X,re.u_image),u_latrange:new b.Uniform2f(X,re.u_latrange),u_light:new b.Uniform2f(X,re.u_light),u_shadow:new b.UniformColor(X,re.u_shadow),u_highlight:new b.UniformColor(X,re.u_highlight),u_accent:new b.UniformColor(X,re.u_accent)}},hillshadePrepare:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_image:new b.Uniform1i(X,re.u_image),u_dimension:new b.Uniform2f(X,re.u_dimension),u_zoom:new b.Uniform1f(X,re.u_zoom),u_unpack:new b.Uniform4f(X,re.u_unpack)}},line:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_ratio:new b.Uniform1f(X,re.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,re.u_units_to_pixels)}},lineGradient:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_ratio:new b.Uniform1f(X,re.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,re.u_units_to_pixels),u_image:new b.Uniform1i(X,re.u_image),u_image_height:new b.Uniform1f(X,re.u_image_height)}},linePattern:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_texsize:new b.Uniform2f(X,re.u_texsize),u_ratio:new b.Uniform1f(X,re.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_image:new b.Uniform1i(X,re.u_image),u_units_to_pixels:new b.Uniform2f(X,re.u_units_to_pixels),u_scale:new b.Uniform3f(X,re.u_scale),u_fade:new b.Uniform1f(X,re.u_fade)}},lineSDF:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_ratio:new b.Uniform1f(X,re.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,re.u_units_to_pixels),u_patternscale_a:new b.Uniform2f(X,re.u_patternscale_a),u_patternscale_b:new b.Uniform2f(X,re.u_patternscale_b),u_sdfgamma:new b.Uniform1f(X,re.u_sdfgamma),u_image:new b.Uniform1i(X,re.u_image),u_tex_y_a:new b.Uniform1f(X,re.u_tex_y_a),u_tex_y_b:new b.Uniform1f(X,re.u_tex_y_b),u_mix:new b.Uniform1f(X,re.u_mix)}},raster:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_tl_parent:new b.Uniform2f(X,re.u_tl_parent),u_scale_parent:new b.Uniform1f(X,re.u_scale_parent),u_buffer_scale:new b.Uniform1f(X,re.u_buffer_scale),u_fade_t:new b.Uniform1f(X,re.u_fade_t),u_opacity:new b.Uniform1f(X,re.u_opacity),u_image0:new b.Uniform1i(X,re.u_image0),u_image1:new b.Uniform1i(X,re.u_image1),u_brightness_low:new b.Uniform1f(X,re.u_brightness_low),u_brightness_high:new b.Uniform1f(X,re.u_brightness_high),u_saturation_factor:new b.Uniform1f(X,re.u_saturation_factor),u_contrast_factor:new b.Uniform1f(X,re.u_contrast_factor),u_spin_weights:new b.Uniform3f(X,re.u_spin_weights)}},symbolIcon:function(X,re){return{u_is_size_zoom_constant:new b.Uniform1i(X,re.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,re.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,re.u_size_t),u_size:new b.Uniform1f(X,re.u_size),u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,re.u_pitch),u_rotate_symbol:new b.Uniform1i(X,re.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,re.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,re.u_fade_change),u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,re.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,re.u_coord_matrix),u_is_text:new b.Uniform1i(X,re.u_is_text),u_pitch_with_map:new b.Uniform1i(X,re.u_pitch_with_map),u_texsize:new b.Uniform2f(X,re.u_texsize),u_texture:new b.Uniform1i(X,re.u_texture)}},symbolSDF:function(X,re){return{u_is_size_zoom_constant:new b.Uniform1i(X,re.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,re.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,re.u_size_t),u_size:new b.Uniform1f(X,re.u_size),u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,re.u_pitch),u_rotate_symbol:new b.Uniform1i(X,re.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,re.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,re.u_fade_change),u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,re.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,re.u_coord_matrix),u_is_text:new b.Uniform1i(X,re.u_is_text),u_pitch_with_map:new b.Uniform1i(X,re.u_pitch_with_map),u_texsize:new b.Uniform2f(X,re.u_texsize),u_texture:new b.Uniform1i(X,re.u_texture),u_gamma_scale:new b.Uniform1f(X,re.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,re.u_is_halo)}},symbolTextAndIcon:function(X,re){return{u_is_size_zoom_constant:new b.Uniform1i(X,re.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,re.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,re.u_size_t),u_size:new b.Uniform1f(X,re.u_size),u_camera_to_center_distance:new b.Uniform1f(X,re.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,re.u_pitch),u_rotate_symbol:new b.Uniform1i(X,re.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,re.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,re.u_fade_change),u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,re.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,re.u_coord_matrix),u_is_text:new b.Uniform1i(X,re.u_is_text),u_pitch_with_map:new b.Uniform1i(X,re.u_pitch_with_map),u_texsize:new b.Uniform2f(X,re.u_texsize),u_texsize_icon:new b.Uniform2f(X,re.u_texsize_icon),u_texture:new b.Uniform1i(X,re.u_texture),u_texture_icon:new b.Uniform1i(X,re.u_texture_icon),u_gamma_scale:new b.Uniform1f(X,re.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,re.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,re.u_is_halo)}},background:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_opacity:new b.Uniform1f(X,re.u_opacity),u_color:new b.UniformColor(X,re.u_color)}},backgroundPattern:function(X,re){return{u_matrix:new b.UniformMatrix4f(X,re.u_matrix),u_opacity:new b.Uniform1f(X,re.u_opacity),u_image:new b.Uniform1i(X,re.u_image),u_pattern_tl_a:new b.Uniform2f(X,re.u_pattern_tl_a),u_pattern_br_a:new b.Uniform2f(X,re.u_pattern_br_a),u_pattern_tl_b:new b.Uniform2f(X,re.u_pattern_tl_b),u_pattern_br_b:new b.Uniform2f(X,re.u_pattern_br_b),u_texsize:new b.Uniform2f(X,re.u_texsize),u_mix:new b.Uniform1f(X,re.u_mix),u_pattern_size_a:new b.Uniform2f(X,re.u_pattern_size_a),u_pattern_size_b:new b.Uniform2f(X,re.u_pattern_size_b),u_scale_a:new b.Uniform1f(X,re.u_scale_a),u_scale_b:new b.Uniform1f(X,re.u_scale_b),u_pixel_coord_upper:new b.Uniform2f(X,re.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,re.u_pixel_coord_lower),u_tile_units_to_pixels:new b.Uniform1f(X,re.u_tile_units_to_pixels)}}};function jd(X,re,Q,le,it,Rt,nn){for(var Yn=X.context,ei=Yn.gl,gr=X.useProgram("collisionBox"),ss=[],ts=0,Is=0,ua=0;ua0){var xu=b.create(),Tu=Va;b.mul(xu,Gs.placementInvProjMatrix,X.transform.glCoordMatrix),b.mul(xu,xu,Gs.placementViewportMatrix),ss.push({circleArray:nu,circleOffset:Is,transform:Tu,invTransform:xu}),Is=ts+=nu.length/4}_l&&gr.draw(Yn,ei.LINES,mi.disabled,Er.disabled,X.colorModeForRenderPass(),di.disabled,Ks(Va,X.transform,Go),Q.id,_l.layoutVertexBuffer,_l.indexBuffer,_l.segments,null,X.transform.zoom,null,null,_l.collisionVertexBuffer)}}if(nn&&ss.length){var Cu=X.useProgram("collisionCircle"),dc=new b.StructArrayLayout2f1f2i16;dc.resize(4*ts),dc._trim();for(var Zc=0,wc=0,fd=ss;wc=0&&(na[Gs.associatedIconIndex]={shiftedAnchor:dc,angle:Zc})}else er(Gs.numGlyphs,Is)}if(ss){ua.clear();for(var fd=X.icon.placedSymbolArray,Td=0;Td0){var nn=b.browser.now(),Yn=(nn-X.timeAdded)/Rt,ei=re?(nn-re.timeAdded)/Rt:-1,gr=Q.getSource(),ss=it.coveringZoomLevel({tileSize:gr.tileSize,roundZoom:gr.roundZoom}),ts=!re||Math.abs(re.tileID.overscaledZ-ss)>Math.abs(X.tileID.overscaledZ-ss),Is=ts&&X.refreshedUponExpiration?1:b.clamp(ts?Yn:1-ei,0,1);return X.refreshedUponExpiration&&Yn>=1&&(X.refreshedUponExpiration=!1),re?{opacity:1,mix:1-Is}:{opacity:Is,mix:0}}return{opacity:1,mix:0}}var xp=new b.Color(1,0,0,1),Nf=new b.Color(0,1,0,1),ch=new b.Color(0,0,1,1),Th=new b.Color(1,0,1,1),yu=new b.Color(0,1,1,1);function ff(X,re,Q,le){Bu(X,0,re+Q/2,X.transform.width,Q,le)}function tl(X,re,Q,le){Bu(X,re-Q/2,0,Q,X.transform.height,le)}function Bu(X,re,Q,le,it,Rt){var nn=X.context,Yn=nn.gl;Yn.enable(Yn.SCISSOR_TEST),Yn.scissor(re*b.browser.devicePixelRatio,Q*b.browser.devicePixelRatio,le*b.browser.devicePixelRatio,it*b.browser.devicePixelRatio),nn.clear({color:Rt}),Yn.disable(Yn.SCISSOR_TEST)}function wd(X,re,Q){var le=X.context,it=le.gl,Rt=Q.posMatrix,nn=X.useProgram("debug"),Yn=mi.disabled,ei=Er.disabled,gr=X.colorModeForRenderPass();le.activeTexture.set(it.TEXTURE0),X.emptyTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE),nn.draw(le,it.LINE_STRIP,Yn,ei,gr,di.disabled,Il(Rt,b.Color.red),"$debug",X.debugBuffer,X.tileBorderIndexBuffer,X.debugSegments);var ss=re.getTileByID(Q.key).latestRawTileData,ts=Math.floor((ss&&ss.byteLength||0)/1024),Is=re.getTile(Q).tileSize,ua=512/Math.min(Is,512)*(Q.overscaledZ/X.transform.zoom)*.5,na=Q.canonical.toString();Q.overscaledZ!==Q.canonical.z&&(na+=" => "+Q.overscaledZ),function(Go,Gs){Go.initDebugOverlayCanvas();var Va=Go.debugOverlayCanvas,_l=Go.context.gl,nu=Go.debugOverlayCanvas.getContext("2d");nu.clearRect(0,0,Va.width,Va.height),nu.shadowColor="white",nu.shadowBlur=2,nu.lineWidth=1.5,nu.strokeStyle="white",nu.textBaseline="top",nu.font="bold 36px Open Sans, sans-serif",nu.fillText(Gs,5,5),nu.strokeText(Gs,5,5),Go.debugOverlayTexture.update(Va),Go.debugOverlayTexture.bind(_l.LINEAR,_l.CLAMP_TO_EDGE)}(X,na+" "+ts+"kb"),nn.draw(le,it.TRIANGLES,Yn,ei,ti.alphaBlended,di.disabled,Il(Rt,b.Color.transparent,ua),"$debug",X.debugBuffer,X.quadTriangleIndexBuffer,X.debugSegments)}var qd={symbol:function(X,re,Q,le,it){if(X.renderPass==="translucent"){var Rt=Er.disabled,nn=X.colorModeForRenderPass();Q.layout.get("text-variable-anchor")&&function(Yn,ei,gr,ss,ts,Is,ua){for(var na=ei.transform,Go=ts==="map",Gs=Is==="map",Va=0,_l=Yn;Va<_l.length;Va+=1){var nu=_l[Va],xu=ss.getTile(nu),Tu=xu.getBucket(gr);if(Tu&&Tu.text&&Tu.text.segments.get().length){var Cu=b.evaluateSizeForZoom(Tu.textSizeData,na.zoom),dc=ci(xu,1,ei.transform.zoom),Zc=wi(nu.posMatrix,Gs,Go,ei.transform,dc),wc=gr.layout.get("icon-text-fit")!=="none"&&Tu.hasIconData();if(Cu){var fd=Math.pow(2,na.zoom-xu.tileID.overscaledZ);nd(Tu,Go,Gs,ua,b.symbolSize,na,Zc,nu.posMatrix,fd,Cu,wc)}}}}(le,X,Q,re,Q.layout.get("text-rotation-alignment"),Q.layout.get("text-pitch-alignment"),it),Q.paint.get("icon-opacity").constantOr(1)!==0&&Jd(X,re,Q,le,!1,Q.paint.get("icon-translate"),Q.paint.get("icon-translate-anchor"),Q.layout.get("icon-rotation-alignment"),Q.layout.get("icon-pitch-alignment"),Q.layout.get("icon-keep-upright"),Rt,nn),Q.paint.get("text-opacity").constantOr(1)!==0&&Jd(X,re,Q,le,!0,Q.paint.get("text-translate"),Q.paint.get("text-translate-anchor"),Q.layout.get("text-rotation-alignment"),Q.layout.get("text-pitch-alignment"),Q.layout.get("text-keep-upright"),Rt,nn),re.map.showCollisionBoxes&&(jd(X,re,Q,le,Q.paint.get("text-translate"),Q.paint.get("text-translate-anchor"),!0),jd(X,re,Q,le,Q.paint.get("icon-translate"),Q.paint.get("icon-translate-anchor"),!1))}},circle:function(X,re,Q,le){if(X.renderPass==="translucent"){var it=Q.paint.get("circle-opacity"),Rt=Q.paint.get("circle-stroke-width"),nn=Q.paint.get("circle-stroke-opacity"),Yn=Q.layout.get("circle-sort-key").constantOr(1)!==void 0;if(it.constantOr(1)!==0||Rt.constantOr(1)!==0&&nn.constantOr(1)!==0){for(var ei=X.context,gr=ei.gl,ss=X.depthModeForSublayer(0,mi.ReadOnly),ts=Er.disabled,Is=X.colorModeForRenderPass(),ua=[],na=0;na256&&this.clearStencil(),Q.setColorMode(ti.disabled),Q.setDepthMode(mi.disabled);var it=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Rt=0,nn=re;Rt256&&this.clearStencil();var X=this.nextStencilID++,re=this.context.gl;return new Er({func:re.NOTEQUAL,mask:255},X,255,re.KEEP,re.KEEP,re.REPLACE)},ja.prototype.stencilModeForClipping=function(X){var re=this.context.gl;return new Er({func:re.EQUAL,mask:255},this._tileClippingMaskIDs[X.key],0,re.KEEP,re.KEEP,re.REPLACE)},ja.prototype.stencilConfigForOverlap=function(X){var re,Q=this.context.gl,le=X.sort(function(ei,gr){return gr.overscaledZ-ei.overscaledZ}),it=le[le.length-1].overscaledZ,Rt=le[0].overscaledZ-it+1;if(Rt>1){this.currentStencilSource=void 0,this.nextStencilID+Rt>256&&this.clearStencil();for(var nn={},Yn=0;Yn=0;this.currentLayer--){var nu=this.style._layers[le[this.currentLayer]],xu=it[nu.source],Tu=gr[nu.source];this._renderTileClippingMasks(nu,Tu),this.renderLayer(this,xu,nu,Tu)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?re.pop():null},ja.prototype.isPatternMissing=function(X){if(!X)return!1;if(!X.from||!X.to)return!0;var re=this.imageManager.getPattern(X.from.toString()),Q=this.imageManager.getPattern(X.to.toString());return!re||!Q},ja.prototype.useProgram=function(X,re){this.cache=this.cache||{};var Q=""+X+(re?re.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Q]||(this.cache[Q]=new Qa(this.context,X,Za[X],re,nh[X],this._showOverdrawInspector)),this.cache[Q]},ja.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},ja.prototype.setBaseState=function(){var X=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(X.FUNC_ADD)},ja.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=b.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new b.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},ja.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ru=function(X,re){this.points=X,this.planes=re};ru.fromInvProjectionMatrix=function(X,re,Q){var le=Math.pow(2,Q),it=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(nn){return b.transformMat4([],nn,X)}).map(function(nn){return b.scale$1([],nn,1/nn[3]/re*le)}),Rt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(nn){var Yn=b.sub([],it[nn[0]],it[nn[1]]),ei=b.sub([],it[nn[2]],it[nn[1]]),gr=b.normalize([],b.cross([],Yn,ei)),ss=-b.dot(gr,it[nn[1]]);return gr.concat(ss)});return new ru(it,Rt)};var zl=function(X,re){this.min=X,this.max=re,this.center=b.scale$2([],b.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(X){for(var re=[X%2==0,X<2],Q=b.clone$2(this.min),le=b.clone$2(this.max),it=0;it=0;if(Rt===0)return 0;Rt!==re.length&&(Q=!1)}if(Q)return 2;for(var Yn=0;Yn<3;Yn++){for(var ei=Number.MAX_VALUE,gr=-Number.MAX_VALUE,ss=0;ssthis.max[Yn]-this.min[Yn])return 0}return 1};var Au=function(X,re,Q,le){if(X===void 0&&(X=0),re===void 0&&(re=0),Q===void 0&&(Q=0),le===void 0&&(le=0),isNaN(X)||X<0||isNaN(re)||re<0||isNaN(Q)||Q<0||isNaN(le)||le<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=X,this.bottom=re,this.left=Q,this.right=le};Au.prototype.interpolate=function(X,re,Q){return re.top!=null&&X.top!=null&&(this.top=b.number(X.top,re.top,Q)),re.bottom!=null&&X.bottom!=null&&(this.bottom=b.number(X.bottom,re.bottom,Q)),re.left!=null&&X.left!=null&&(this.left=b.number(X.left,re.left,Q)),re.right!=null&&X.right!=null&&(this.right=b.number(X.right,re.right,Q)),this},Au.prototype.getCenter=function(X,re){var Q=b.clamp((this.left+X-this.right)/2,0,X),le=b.clamp((this.top+re-this.bottom)/2,0,re);return new b.Point(Q,le)},Au.prototype.equals=function(X){return this.top===X.top&&this.bottom===X.bottom&&this.left===X.left&&this.right===X.right},Au.prototype.clone=function(){return new Au(this.top,this.bottom,this.left,this.right)},Au.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Uu=function(X,re,Q,le,it){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=it===void 0||it,this._minZoom=X||0,this._maxZoom=re||22,this._minPitch=Q==null?0:Q,this._maxPitch=le==null?60:le,this.setMaxBounds(),this.width=0,this.height=0,this._center=new b.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Au,this._posMatrixCache={},this._alignedPosMatrixCache={}},Vd={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Uu.prototype.clone=function(){var X=new Uu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return X.tileSize=this.tileSize,X.latRange=this.latRange,X.width=this.width,X.height=this.height,X._center=this._center,X.zoom=this.zoom,X.angle=this.angle,X._fov=this._fov,X._pitch=this._pitch,X._unmodified=this._unmodified,X._edgeInsets=this._edgeInsets.clone(),X._calcMatrices(),X},Vd.minZoom.get=function(){return this._minZoom},Vd.minZoom.set=function(X){this._minZoom!==X&&(this._minZoom=X,this.zoom=Math.max(this.zoom,X))},Vd.maxZoom.get=function(){return this._maxZoom},Vd.maxZoom.set=function(X){this._maxZoom!==X&&(this._maxZoom=X,this.zoom=Math.min(this.zoom,X))},Vd.minPitch.get=function(){return this._minPitch},Vd.minPitch.set=function(X){this._minPitch!==X&&(this._minPitch=X,this.pitch=Math.max(this.pitch,X))},Vd.maxPitch.get=function(){return this._maxPitch},Vd.maxPitch.set=function(X){this._maxPitch!==X&&(this._maxPitch=X,this.pitch=Math.min(this.pitch,X))},Vd.renderWorldCopies.get=function(){return this._renderWorldCopies},Vd.renderWorldCopies.set=function(X){X===void 0?X=!0:X===null&&(X=!1),this._renderWorldCopies=X},Vd.worldSize.get=function(){return this.tileSize*this.scale},Vd.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Vd.size.get=function(){return new b.Point(this.width,this.height)},Vd.bearing.get=function(){return-this.angle/Math.PI*180},Vd.bearing.set=function(X){var re=-b.wrap(X,-180,180)*Math.PI/180;this.angle!==re&&(this._unmodified=!1,this.angle=re,this._calcMatrices(),this.rotationMatrix=b.create$2(),b.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Vd.pitch.get=function(){return this._pitch/Math.PI*180},Vd.pitch.set=function(X){var re=b.clamp(X,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==re&&(this._unmodified=!1,this._pitch=re,this._calcMatrices())},Vd.fov.get=function(){return this._fov/Math.PI*180},Vd.fov.set=function(X){X=Math.max(.01,Math.min(60,X)),this._fov!==X&&(this._unmodified=!1,this._fov=X/180*Math.PI,this._calcMatrices())},Vd.zoom.get=function(){return this._zoom},Vd.zoom.set=function(X){var re=Math.min(Math.max(X,this.minZoom),this.maxZoom);this._zoom!==re&&(this._unmodified=!1,this._zoom=re,this.scale=this.zoomScale(re),this.tileZoom=Math.floor(re),this.zoomFraction=re-this.tileZoom,this._constrain(),this._calcMatrices())},Vd.center.get=function(){return this._center},Vd.center.set=function(X){X.lat===this._center.lat&&X.lng===this._center.lng||(this._unmodified=!1,this._center=X,this._constrain(),this._calcMatrices())},Vd.padding.get=function(){return this._edgeInsets.toJSON()},Vd.padding.set=function(X){this._edgeInsets.equals(X)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,X,1),this._calcMatrices())},Vd.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Uu.prototype.isPaddingEqual=function(X){return this._edgeInsets.equals(X)},Uu.prototype.interpolatePadding=function(X,re,Q){this._unmodified=!1,this._edgeInsets.interpolate(X,re,Q),this._constrain(),this._calcMatrices()},Uu.prototype.coveringZoomLevel=function(X){var re=(X.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/X.tileSize));return Math.max(0,re)},Uu.prototype.getVisibleUnwrappedCoordinates=function(X){var re=[new b.UnwrappedTileID(0,X)];if(this._renderWorldCopies)for(var Q=this.pointCoordinate(new b.Point(0,0)),le=this.pointCoordinate(new b.Point(this.width,0)),it=this.pointCoordinate(new b.Point(this.width,this.height)),Rt=this.pointCoordinate(new b.Point(0,this.height)),nn=Math.floor(Math.min(Q.x,le.x,it.x,Rt.x)),Yn=Math.floor(Math.max(Q.x,le.x,it.x,Rt.x)),ei=nn-1;ei<=Yn+1;ei++)ei!==0&&re.push(new b.UnwrappedTileID(ei,X));return re},Uu.prototype.coveringTiles=function(X){var re=this.coveringZoomLevel(X),Q=re;if(X.minzoom!==void 0&&reX.maxzoom&&(re=X.maxzoom);var le=b.MercatorCoordinate.fromLngLat(this.center),it=Math.pow(2,re),Rt=[it*le.x,it*le.y,0],nn=ru.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,re),Yn=X.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Yn=re);var ei=function(wc){return{aabb:new zl([wc*it,0,0],[(wc+1)*it,it,0]),zoom:0,x:0,y:0,wrap:wc,fullyVisible:!1}},gr=[],ss=[],ts=re,Is=X.reparseOverscaled?Q:re;if(this._renderWorldCopies)for(var ua=1;ua<=3;ua++)gr.push(ei(-ua)),gr.push(ei(ua));for(gr.push(ei(0));gr.length>0;){var na=gr.pop(),Go=na.x,Gs=na.y,Va=na.fullyVisible;if(!Va){var _l=na.aabb.intersects(nn);if(_l===0)continue;Va=_l===2}var nu=na.aabb.distanceX(Rt),xu=na.aabb.distanceY(Rt),Tu=Math.max(Math.abs(nu),Math.abs(xu));if(na.zoom===ts||Tu>3+(1<=Yn)ss.push({tileID:new b.OverscaledTileID(na.zoom===ts?Is:na.zoom,na.wrap,na.zoom,Go,Gs),distanceSq:b.sqrLen([Rt[0]-.5-Go,Rt[1]-.5-Gs])});else for(var Cu=0;Cu<4;Cu++){var dc=(Go<<1)+Cu%2,Zc=(Gs<<1)+(Cu>>1);gr.push({aabb:na.aabb.quadrant(Cu),zoom:na.zoom+1,x:dc,y:Zc,wrap:na.wrap,fullyVisible:Va})}}return ss.sort(function(wc,fd){return wc.distanceSq-fd.distanceSq}).map(function(wc){return wc.tileID})},Uu.prototype.resize=function(X,re){this.width=X,this.height=re,this.pixelsToGLUnits=[2/X,-2/re],this._constrain(),this._calcMatrices()},Vd.unmodified.get=function(){return this._unmodified},Uu.prototype.zoomScale=function(X){return Math.pow(2,X)},Uu.prototype.scaleZoom=function(X){return Math.log(X)/Math.LN2},Uu.prototype.project=function(X){var re=b.clamp(X.lat,-this.maxValidLatitude,this.maxValidLatitude);return new b.Point(b.mercatorXfromLng(X.lng)*this.worldSize,b.mercatorYfromLat(re)*this.worldSize)},Uu.prototype.unproject=function(X){return new b.MercatorCoordinate(X.x/this.worldSize,X.y/this.worldSize).toLngLat()},Vd.point.get=function(){return this.project(this.center)},Uu.prototype.setLocationAtPoint=function(X,re){var Q=this.pointCoordinate(re),le=this.pointCoordinate(this.centerPoint),it=this.locationCoordinate(X),Rt=new b.MercatorCoordinate(it.x-(Q.x-le.x),it.y-(Q.y-le.y));this.center=this.coordinateLocation(Rt),this._renderWorldCopies&&(this.center=this.center.wrap())},Uu.prototype.locationPoint=function(X){return this.coordinatePoint(this.locationCoordinate(X))},Uu.prototype.pointLocation=function(X){return this.coordinateLocation(this.pointCoordinate(X))},Uu.prototype.locationCoordinate=function(X){return b.MercatorCoordinate.fromLngLat(X)},Uu.prototype.coordinateLocation=function(X){return X.toLngLat()},Uu.prototype.pointCoordinate=function(X){var re=[X.x,X.y,0,1],Q=[X.x,X.y,1,1];b.transformMat4(re,re,this.pixelMatrixInverse),b.transformMat4(Q,Q,this.pixelMatrixInverse);var le=re[3],it=Q[3],Rt=re[1]/le,nn=Q[1]/it,Yn=re[2]/le,ei=Q[2]/it,gr=Yn===ei?0:(0-Yn)/(ei-Yn);return new b.MercatorCoordinate(b.number(re[0]/le,Q[0]/it,gr)/this.worldSize,b.number(Rt,nn,gr)/this.worldSize)},Uu.prototype.coordinatePoint=function(X){var re=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(re,re,this.pixelMatrix),new b.Point(re[0]/re[3],re[1]/re[3])},Uu.prototype.getBounds=function(){return new b.LngLatBounds().extend(this.pointLocation(new b.Point(0,0))).extend(this.pointLocation(new b.Point(this.width,0))).extend(this.pointLocation(new b.Point(this.width,this.height))).extend(this.pointLocation(new b.Point(0,this.height)))},Uu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new b.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Uu.prototype.setMaxBounds=function(X){X?(this.lngRange=[X.getWest(),X.getEast()],this.latRange=[X.getSouth(),X.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Uu.prototype.calculatePosMatrix=function(X,re){re===void 0&&(re=!1);var Q=X.key,le=re?this._alignedPosMatrixCache:this._posMatrixCache;if(le[Q])return le[Q];var it=X.canonical,Rt=this.worldSize/this.zoomScale(it.z),nn=it.x+Math.pow(2,it.z)*X.wrap,Yn=b.identity(new Float64Array(16));return b.translate(Yn,Yn,[nn*Rt,it.y*Rt,0]),b.scale(Yn,Yn,[Rt/b.EXTENT,Rt/b.EXTENT,1]),b.multiply(Yn,re?this.alignedProjMatrix:this.projMatrix,Yn),le[Q]=new Float32Array(Yn),le[Q]},Uu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Uu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var X,re,Q,le,it=-90,Rt=90,nn=-180,Yn=180,ei=this.size,gr=this._unmodified;if(this.latRange){var ss=this.latRange;it=b.mercatorYfromLat(ss[1])*this.worldSize,X=(Rt=b.mercatorYfromLat(ss[0])*this.worldSize)-itRt&&(le=Rt-Go)}if(this.lngRange){var Gs=Is.x,Va=ei.x/2;Gs-VaYn&&(Q=Yn-Va)}Q===void 0&&le===void 0||(this.center=this.unproject(new b.Point(Q!==void 0?Q:Is.x,le!==void 0?le:Is.y))),this._unmodified=gr,this._constraining=!1}},Uu.prototype._calcMatrices=function(){if(this.height){var X=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var re=Math.PI/2+this._pitch,Q=this._fov*(.5+X.y/this.height),le=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(b.clamp(Math.PI-re-Q,.01,Math.PI-.01)),it=this.point,Rt=it.x,nn=it.y,Yn=1.01*(Math.cos(Math.PI/2-this._pitch)*le+this.cameraToCenterDistance),ei=this.height/50,gr=new Float64Array(16);b.perspective(gr,this._fov,this.width/this.height,ei,Yn),gr[8]=2*-X.x/this.width,gr[9]=2*X.y/this.height,b.scale(gr,gr,[1,-1,1]),b.translate(gr,gr,[0,0,-this.cameraToCenterDistance]),b.rotateX(gr,gr,this._pitch),b.rotateZ(gr,gr,this.angle),b.translate(gr,gr,[-Rt,-nn,0]),this.mercatorMatrix=b.scale([],gr,[this.worldSize,this.worldSize,this.worldSize]),b.scale(gr,gr,[1,1,b.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=gr,this.invProjMatrix=b.invert([],this.projMatrix);var ss=this.width%2/2,ts=this.height%2/2,Is=Math.cos(this.angle),ua=Math.sin(this.angle),na=Rt-Math.round(Rt)+Is*ss+ua*ts,Go=nn-Math.round(nn)+Is*ts+ua*ss,Gs=new Float64Array(gr);if(b.translate(Gs,Gs,[na>.5?na-1:na,Go>.5?Go-1:Go,0]),this.alignedProjMatrix=Gs,gr=b.create(),b.scale(gr,gr,[this.width/2,-this.height/2,1]),b.translate(gr,gr,[1,-1,0]),this.labelPlaneMatrix=gr,gr=b.create(),b.scale(gr,gr,[1,-1,1]),b.translate(gr,gr,[-1,-1,0]),b.scale(gr,gr,[2/this.width,2/this.height,1]),this.glCoordMatrix=gr,this.pixelMatrix=b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(gr=b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=gr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Uu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var X=this.pointCoordinate(new b.Point(0,0)),re=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(re,re,this.pixelMatrix)[3]/this.cameraToCenterDistance},Uu.prototype.getCameraPoint=function(){var X=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new b.Point(0,X))},Uu.prototype.getCameraQueryGeometry=function(X){var re=this.getCameraPoint();if(X.length===1)return[X[0],re];for(var Q=re.x,le=re.y,it=re.x,Rt=re.y,nn=0,Yn=X;nn=3&&!X.some(function(Q){return isNaN(Q)})){var re=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(X[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+X[2],+X[1]],zoom:+X[0],bearing:re,pitch:+(X[4]||0)}),!0}return!1},Ud.prototype._updateHashUnthrottled=function(){var X=b.window.location.href.replace(/(#.+)?$/,this.getHashString());try{b.window.history.replaceState(b.window.history.state,null,X)}catch(re){}};var sh={linearity:.3,easing:b.bezier(0,0,.3,1)},Vf=b.extend({deceleration:2500,maxSpeed:1400},sh),vf=b.extend({deceleration:20,maxSpeed:1400},sh),Uh=b.extend({deceleration:1e3,maxSpeed:360},sh),kf=b.extend({deceleration:1e3,maxSpeed:90},sh),Bh=function(X){this._map=X,this.clear()};function Kf(X,re){(!X.duration||X.duration0&&re-X[0].time>160;)X.shift()},Bh.prototype._onMoveEnd=function(X){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var re={zoom:0,bearing:0,pitch:0,pan:new b.Point(0,0),pinchAround:void 0,around:void 0},Q=0,le=this._inertiaBuffer;Q=this._clickTolerance||this._map.fire(new ed(X.type,this._map,X))},cf.prototype.dblclick=function(X){return this._firePreventable(new ed(X.type,this._map,X))},cf.prototype.mouseover=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.mouseout=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.touchstart=function(X){return this._firePreventable(new Vh(X.type,this._map,X))},cf.prototype.touchmove=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchend=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchcancel=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype._firePreventable=function(X){if(this._map.fire(X),X.defaultPrevented)return{}},cf.prototype.isEnabled=function(){return!0},cf.prototype.isActive=function(){return!1},cf.prototype.enable=function(){},cf.prototype.disable=function(){};var Qc=function(X){this._map=X};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(X){this._map.fire(new ed(X.type,this._map,X))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ed("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(X){this._delayContextMenu?this._contextMenuEvent=X:this._map.fire(new ed(X.type,this._map,X)),this._map.listens("contextmenu")&&X.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var Na=function(X,re){this._map=X,this._el=X.getCanvasContainer(),this._container=X.getContainer(),this._clickTolerance=re.clickTolerance||1};function ps(X,re){for(var Q={},le=0;lethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=X.timeStamp),Q.length===this.numTouches&&(this.centroid=function(le){for(var it=new b.Point(0,0),Rt=0,nn=le;Rt30)&&(this.aborted=!0)}}},Op.prototype.touchend=function(X,re,Q){if((!this.centroid||X.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){var le=!this.aborted&&this.centroid;if(this.reset(),le)return le}};var ro=function(X){this.singleTap=new Op(X),this.numTaps=X.numTaps,this.reset()};ro.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},ro.prototype.touchstart=function(X,re,Q){this.singleTap.touchstart(X,re,Q)},ro.prototype.touchmove=function(X,re,Q){this.singleTap.touchmove(X,re,Q)},ro.prototype.touchend=function(X,re,Q){var le=this.singleTap.touchend(X,re,Q);if(le){var it=X.timeStamp-this.lastTime<500,Rt=!this.lastTap||this.lastTap.dist(le)<30;if(it&&Rt||this.reset(),this.count++,this.lastTime=X.timeStamp,this.lastTap=le,this.count===this.numTaps)return this.reset(),le}};var bc=function(){this._zoomIn=new ro({numTouches:1,numTaps:2}),this._zoomOut=new ro({numTouches:2,numTaps:1}),this.reset()};bc.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},bc.prototype.touchstart=function(X,re,Q){this._zoomIn.touchstart(X,re,Q),this._zoomOut.touchstart(X,re,Q)},bc.prototype.touchmove=function(X,re,Q){this._zoomIn.touchmove(X,re,Q),this._zoomOut.touchmove(X,re,Q)},bc.prototype.touchend=function(X,re,Q){var le=this,it=this._zoomIn.touchend(X,re,Q),Rt=this._zoomOut.touchend(X,re,Q);return it?(this._active=!0,X.preventDefault(),setTimeout(function(){return le.reset()},0),{cameraAnimation:function(nn){return nn.easeTo({duration:300,zoom:nn.getZoom()+1,around:nn.unproject(it)},{originalEvent:X})}}):Rt?(this._active=!0,X.preventDefault(),setTimeout(function(){return le.reset()},0),{cameraAnimation:function(nn){return nn.easeTo({duration:300,zoom:nn.getZoom()-1,around:nn.unproject(Rt)},{originalEvent:X})}}):void 0},bc.prototype.touchcancel=function(){this.reset()},bc.prototype.enable=function(){this._enabled=!0},bc.prototype.disable=function(){this._enabled=!1,this.reset()},bc.prototype.isEnabled=function(){return this._enabled},bc.prototype.isActive=function(){return this._active};var yf={0:1,2:2},Qu=function(X){this.reset(),this._clickTolerance=X.clickTolerance||1};Qu.prototype.blur=function(){this.reset()},Qu.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Qu.prototype._correctButton=function(X,re){return!1},Qu.prototype._move=function(X,re){return{}},Qu.prototype.mousedown=function(X,re){if(!this._lastPoint){var Q=k.mouseButton(X);this._correctButton(X,Q)&&(this._lastPoint=re,this._eventButton=Q)}},Qu.prototype.mousemoveWindow=function(X,re){var Q=this._lastPoint;if(Q){if(X.preventDefault(),function(le,it){var Rt=yf[it];return le.buttons===void 0||(le.buttons&Rt)!==Rt}(X,this._eventButton))this.reset();else if(this._moved||!(re.dist(Q)0&&(this._active=!0);var le=ps(Q,re),it=new b.Point(0,0),Rt=new b.Point(0,0),nn=0;for(var Yn in le){var ei=le[Yn],gr=this._touches[Yn];gr&&(it._add(ei),Rt._add(ei.sub(gr)),nn++,le[Yn]=ei)}if(this._touches=le,!(nnMath.abs(X.x)}var Pd=function(X){function re(){X.apply(this,arguments)}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.reset=function(){X.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},re.prototype._start=function(Q){this._lastPoints=Q,Uf(Q[0].sub(Q[1]))&&(this._valid=!1)},re.prototype._move=function(Q,le,it){var Rt=Q[0].sub(this._lastPoints[0]),nn=Q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Rt,nn,it.timeStamp),this._valid)return this._lastPoints=Q,this._active=!0,{pitchDelta:(Rt.y+nn.y)/2*-.5}},re.prototype.gestureBeginsVertically=function(Q,le,it){if(this._valid!==void 0)return this._valid;var Rt=Q.mag()>=2,nn=le.mag()>=2;if(Rt||nn){if(!Rt||!nn)return this._firstMove===void 0&&(this._firstMove=it),it-this._firstMove<100&&void 0;var Yn=Q.y>0==le.y>0;return Uf(Q)&&Uf(le)&&Yn}},re}(Ah),Np={panStep:100,bearingStep:15,pitchStep:10},$p=function(){var X=Np;this._panStep=X.panStep,this._bearingStep=X.bearingStep,this._pitchStep=X.pitchStep,this._rotationDisabled=!1};function ag(X){return X*(2-X)}$p.prototype.blur=function(){this.reset()},$p.prototype.reset=function(){this._active=!1},$p.prototype.keydown=function(X){var re=this;if(!(X.altKey||X.ctrlKey||X.metaKey)){var Q=0,le=0,it=0,Rt=0,nn=0;switch(X.keyCode){case 61:case 107:case 171:case 187:Q=1;break;case 189:case 109:case 173:Q=-1;break;case 37:X.shiftKey?le=-1:(X.preventDefault(),Rt=-1);break;case 39:X.shiftKey?le=1:(X.preventDefault(),Rt=1);break;case 38:X.shiftKey?it=1:(X.preventDefault(),nn=-1);break;case 40:X.shiftKey?it=-1:(X.preventDefault(),nn=1);break;default:return}return this._rotationDisabled&&(le=0,it=0),{cameraAnimation:function(Yn){var ei=Yn.getZoom();Yn.easeTo({duration:300,easeId:"keyboardHandler",easing:ag,zoom:Q?Math.round(ei)+Q*(X.shiftKey?2:1):ei,bearing:Yn.getBearing()+le*re._bearingStep,pitch:Yn.getPitch()+it*re._pitchStep,offset:[-Rt*re._panStep,-nn*re._panStep],center:Yn.getCenter()},{originalEvent:X})}}}},$p.prototype.enable=function(){this._enabled=!0},$p.prototype.disable=function(){this._enabled=!1,this.reset()},$p.prototype.isEnabled=function(){return this._enabled},$p.prototype.isActive=function(){return this._active},$p.prototype.disableRotation=function(){this._rotationDisabled=!0},$p.prototype.enableRotation=function(){this._rotationDisabled=!1};var Md=function(X,re){this._map=X,this._el=X.getCanvasContainer(),this._handler=re,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,b.bindAll(["_onTimeout"],this)};Md.prototype.setZoomRate=function(X){this._defaultZoomRate=X},Md.prototype.setWheelZoomRate=function(X){this._wheelZoomRate=X},Md.prototype.isEnabled=function(){return!!this._enabled},Md.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Md.prototype.isZooming=function(){return!!this._zooming},Md.prototype.enable=function(X){this.isEnabled()||(this._enabled=!0,this._aroundCenter=X&&X.around==="center")},Md.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Md.prototype.wheel=function(X){if(this.isEnabled()){var re=X.deltaMode===b.window.WheelEvent.DOM_DELTA_LINE?40*X.deltaY:X.deltaY,Q=b.browser.now(),le=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,re!==0&&re%4.000244140625==0?this._type="wheel":re!==0&&Math.abs(re)<4?this._type="trackpad":le>400?(this._type=null,this._lastValue=re,this._timeout=setTimeout(this._onTimeout,40,X)):this._type||(this._type=Math.abs(le*re)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,re+=this._lastValue)),X.shiftKey&&re&&(re/=4),this._type&&(this._lastWheelEvent=X,this._delta-=re,this._active||this._start(X)),X.preventDefault()}},Md.prototype._onTimeout=function(X){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(X)},Md.prototype._start=function(X){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 re=k.mousePos(this._el,X);this._around=b.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(re)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Md.prototype.renderFrame=function(){var X=this;if(this._frameId&&(this._frameId=null,this.isActive())){var re=this._map.transform;if(this._delta!==0){var Q=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,le=2/(1+Math.exp(-Math.abs(this._delta*Q)));this._delta<0&&le!==0&&(le=1/le);var it=typeof this._targetZoom=="number"?re.zoomScale(this._targetZoom):re.scale;this._targetZoom=Math.min(re.maxZoom,Math.max(re.minZoom,re.scaleZoom(it*le))),this._type==="wheel"&&(this._startZoom=re.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Rt,nn=typeof this._targetZoom=="number"?this._targetZoom:re.zoom,Yn=this._startZoom,ei=this._easing,gr=!1;if(this._type==="wheel"&&Yn&&ei){var ss=Math.min((b.browser.now()-this._lastWheelEventTime)/200,1),ts=ei(ss);Rt=b.number(Yn,nn,ts),ss<1?this._frameId||(this._frameId=!0):gr=!0}else Rt=nn,gr=!0;return this._active=!0,gr&&(this._active=!1,this._finishTimeout=setTimeout(function(){X._zooming=!1,X._handler._triggerRenderFrame(),delete X._targetZoom,delete X._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!gr,zoomDelta:Rt-re.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Md.prototype._smoothOutEasing=function(X){var re=b.ease;if(this._prevEase){var Q=this._prevEase,le=(b.browser.now()-Q.start)/Q.duration,it=Q.easing(le+.01)-Q.easing(le),Rt=.27/Math.sqrt(it*it+1e-4)*.01,nn=Math.sqrt(.0729-Rt*Rt);re=b.bezier(Rt,nn,.25,1)}return this._prevEase={start:b.browser.now(),duration:X,easing:re},re},Md.prototype.blur=function(){this.reset()},Md.prototype.reset=function(){this._active=!1};var Wp=function(X,re){this._clickZoom=X,this._tapZoom=re};Wp.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Wp.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Wp.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Wp.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ih=function(){this.reset()};Ih.prototype.reset=function(){this._active=!1},Ih.prototype.blur=function(){this.reset()},Ih.prototype.dblclick=function(X,re){return X.preventDefault(),{cameraAnimation:function(Q){Q.easeTo({duration:300,zoom:Q.getZoom()+(X.shiftKey?-1:1),around:Q.unproject(re)},{originalEvent:X})}}},Ih.prototype.enable=function(){this._enabled=!0},Ih.prototype.disable=function(){this._enabled=!1,this.reset()},Ih.prototype.isEnabled=function(){return this._enabled},Ih.prototype.isActive=function(){return this._active};var of=function(){this._tap=new ro({numTouches:1,numTaps:1}),this.reset()};of.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},of.prototype.touchstart=function(X,re,Q){this._swipePoint||(this._tapTime&&X.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Q.length>0&&(this._swipePoint=re[0],this._swipeTouch=Q[0].identifier):this._tap.touchstart(X,re,Q))},of.prototype.touchmove=function(X,re,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;var le=re[0],it=le.y-this._swipePoint.y;return this._swipePoint=le,X.preventDefault(),this._active=!0,{zoomDelta:it/128}}}else this._tap.touchmove(X,re,Q)},of.prototype.touchend=function(X,re,Q){this._tapTime?this._swipePoint&&Q.length===0&&this.reset():this._tap.touchend(X,re,Q)&&(this._tapTime=X.timeStamp)},of.prototype.touchcancel=function(){this.reset()},of.prototype.enable=function(){this._enabled=!0},of.prototype.disable=function(){this._enabled=!1,this.reset()},of.prototype.isEnabled=function(){return this._enabled},of.prototype.isActive=function(){return this._active};var Ff=function(X,re,Q){this._el=X,this._mousePan=re,this._touchPan=Q};Ff.prototype.enable=function(X){this._inertiaOptions=X||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Ff.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Ff.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Ff.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var iu=function(X,re,Q){this._pitchWithRotate=X.pitchWithRotate,this._mouseRotate=re,this._mousePitch=Q};iu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},iu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},iu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},iu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var mp=function(X,re,Q,le){this._el=X,this._touchZoom=re,this._touchRotate=Q,this._tapDragZoom=le,this._rotationDisabled=!1,this._enabled=!0};mp.prototype.enable=function(X){this._touchZoom.enable(X),this._rotationDisabled||this._touchRotate.enable(X),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},mp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},mp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},mp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},mp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},mp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Af=function(X){return X.zoom||X.drag||X.pitch||X.rotate},np=function(X){function re(){X.apply(this,arguments)}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re}(b.Event);function Od(X){return X.panDelta&&X.panDelta.mag()||X.zoomDelta||X.bearingDelta||X.pitchDelta}var td=function(X,re){this._map=X,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Bh(X),this._bearingSnap=re.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(re),b.bindAll(["handleEvent","handleWindowEvent"],this);var Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[b.window.document,"mousemove",{capture:!0}],[b.window.document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[b.window,"blur",void 0]];for(var le=0,it=this._listeners;lenn?Math.min(2,Cu):Math.max(.5,Cu),Td=Math.pow(fd,1-Zc),dh=Rt.unproject(xu.add(Tu.mult(Zc*Td)).mult(wc));Rt.setLocationAtPoint(Rt.renderWorldCopies?dh.wrap():dh,Go)}it._fireMoveEvents(le)},function(Zc){it._afterEase(le,Zc)},Q),this},re.prototype._prepareEase=function(Q,le,it){it===void 0&&(it={}),this._moving=!0,le||it.moving||this.fire(new b.Event("movestart",Q)),this._zooming&&!it.zooming&&this.fire(new b.Event("zoomstart",Q)),this._rotating&&!it.rotating&&this.fire(new b.Event("rotatestart",Q)),this._pitching&&!it.pitching&&this.fire(new b.Event("pitchstart",Q))},re.prototype._fireMoveEvents=function(Q){this.fire(new b.Event("move",Q)),this._zooming&&this.fire(new b.Event("zoom",Q)),this._rotating&&this.fire(new b.Event("rotate",Q)),this._pitching&&this.fire(new b.Event("pitch",Q))},re.prototype._afterEase=function(Q,le){if(!this._easeId||!le||this._easeId!==le){delete this._easeId;var it=this._zooming,Rt=this._rotating,nn=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,it&&this.fire(new b.Event("zoomend",Q)),Rt&&this.fire(new b.Event("rotateend",Q)),nn&&this.fire(new b.Event("pitchend",Q)),this.fire(new b.Event("moveend",Q))}},re.prototype.flyTo=function(Q,le){var it=this;if(!Q.essential&&b.browser.prefersReducedMotion){var Rt=b.pick(Q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Rt,le)}this.stop(),Q=b.extend({offset:[0,0],speed:1.2,curve:1.42,easing:b.ease},Q);var nn=this.transform,Yn=this.getZoom(),ei=this.getBearing(),gr=this.getPitch(),ss=this.getPadding(),ts="zoom"in Q?b.clamp(+Q.zoom,nn.minZoom,nn.maxZoom):Yn,Is="bearing"in Q?this._normalizeBearing(Q.bearing,ei):ei,ua="pitch"in Q?+Q.pitch:gr,na="padding"in Q?Q.padding:nn.padding,Go=nn.zoomScale(ts-Yn),Gs=b.Point.convert(Q.offset),Va=nn.centerPoint.add(Gs),_l=nn.pointLocation(Va),nu=b.LngLat.convert(Q.center||_l);this._normalizeCenter(nu);var xu=nn.project(_l),Tu=nn.project(nu).sub(xu),Cu=Q.curve,dc=Math.max(nn.width,nn.height),Zc=dc/Go,wc=Tu.mag();if("minZoom"in Q){var fd=b.clamp(Math.min(Q.minZoom,Yn,ts),nn.minZoom,nn.maxZoom),Td=dc/nn.zoomScale(fd-Yn);Cu=Math.sqrt(Td/wc*2)}var dh=Cu*Cu;function Qd(bh){var Mh=(Zc*Zc-dc*dc+(bh?-1:1)*dh*dh*wc*wc)/(2*(bh?Zc:dc)*dh*wc);return Math.log(Math.sqrt(Mh*Mh+1)-Mh)}function Xh(bh){return(Math.exp(bh)-Math.exp(-bh))/2}function Nc(bh){return(Math.exp(bh)+Math.exp(-bh))/2}var Hc=Qd(0),tf=function(bh){return Nc(Hc)/Nc(Hc+Cu*bh)},hh=function(bh){return dc*((Nc(Hc)*(Xh(Mh=Hc+Cu*bh)/Nc(Mh))-Xh(Hc))/dh)/wc;var Mh},rh=(Qd(1)-Hc)/Cu;if(Math.abs(wc)<1e-6||!isFinite(rh)){if(Math.abs(dc-Zc)<1e-6)return this.easeTo(Q,le);var zh=ZcQ.maxDuration&&(Q.duration=0),this._zooming=!0,this._rotating=ei!==Is,this._pitching=ua!==gr,this._padding=!nn.isPaddingEqual(na),this._prepareEase(le,!1),this._ease(function(bh){var Mh=bh*rh,Cg=1/tf(Mh);nn.zoom=bh===1?ts:Yn+nn.scaleZoom(Cg),it._rotating&&(nn.bearing=b.number(ei,Is,bh)),it._pitching&&(nn.pitch=b.number(gr,ua,bh)),it._padding&&(nn.interpolatePadding(ss,na,bh),Va=nn.centerPoint.add(Gs));var jp=bh===1?nu:nn.unproject(xu.add(Tu.mult(hh(Mh))).mult(Cg));nn.setLocationAtPoint(nn.renderWorldCopies?jp.wrap():jp,Va),it._fireMoveEvents(le)},function(){return it._afterEase(le)},Q),this},re.prototype.isEasing=function(){return!!this._easeFrameId},re.prototype.stop=function(){return this._stop()},re.prototype._stop=function(Q,le){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var it=this._onEaseEnd;delete this._onEaseEnd,it.call(this,le)}if(!Q){var Rt=this.handlers;Rt&&Rt.stop(!1)}return this},re.prototype._ease=function(Q,le,it){it.animate===!1||it.duration===0?(Q(1),le()):(this._easeStart=b.browser.now(),this._easeOptions=it,this._onEaseFrame=Q,this._onEaseEnd=le,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},re.prototype._renderFrameCallback=function(){var Q=Math.min((b.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},re.prototype._normalizeBearing=function(Q,le){Q=b.wrap(Q,-180,180);var it=Math.abs(Q-le);return Math.abs(Q-360-le)180?-360:it<-180?360:0}},re}(b.Evented),_f=function(X){X===void 0&&(X={}),this.options=X,b.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_f.prototype.getDefaultPosition=function(){return"bottom-right"},_f.prototype.onAdd=function(X){var re=this.options&&this.options.compact;return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=k.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=k.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),re&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),re===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_f.prototype.onRemove=function(){k.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_f.prototype._setElementTitle=function(X,re){var Q=this._map._getUIString("AttributionControl."+re);X.title=Q,X.setAttribute("aria-label",Q)},_f.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_f.prototype._updateEditLink=function(){var X=this._editLink;X||(X=this._editLink=this._container.querySelector(".mapbox-improve-map"));var re=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||b.config.ACCESS_TOKEN}];if(X){var Q=re.reduce(function(le,it,Rt){return it.value&&(le+=it.key+"="+it.value+(Rt=0)return!1;return!0})).join(" | ");nn!==this._attribHTML&&(this._attribHTML=nn,X.length?(this._innerContainer.innerHTML=nn,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_f.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hh=function(){b.bindAll(["_updateLogo"],this),b.bindAll(["_updateCompact"],this)};Hh.prototype.onAdd=function(X){this._map=X,this._container=k.create("div","mapboxgl-ctrl");var re=k.create("a","mapboxgl-ctrl-logo");return re.target="_blank",re.rel="noopener nofollow",re.href="https://www.mapbox.com/",re.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),re.setAttribute("rel","noopener nofollow"),this._container.appendChild(re),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hh.prototype.onRemove=function(){k.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hh.prototype.getDefaultPosition=function(){return"bottom-left"},Hh.prototype._updateLogo=function(X){X&&X.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Hh.prototype._logoRequired=function(){if(this._map.style){var X=this._map.style.sourceCaches;for(var re in X)if(X[re].getSource().mapbox_logo)return!0;return!1}},Hh.prototype._updateCompact=function(){var X=this._container.children;if(X.length){var re=X[0];this._map.getCanvasContainer().offsetWidth<250?re.classList.add("mapboxgl-compact"):re.classList.remove("mapboxgl-compact")}};var Dp=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Dp.prototype.add=function(X){var re=++this._id;return this._queue.push({callback:X,id:re,cancelled:!1}),re},Dp.prototype.remove=function(X){for(var re=this._currentlyRunning,Q=0,le=re?this._queue.concat(re):this._queue;Qle.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(le.minPitch!=null&&le.maxPitch!=null&&le.minPitch>le.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(le.minPitch!=null&&le.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(le.maxPitch!=null&&le.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Rt=new Uu(le.minZoom,le.maxZoom,le.minPitch,le.maxPitch,le.renderWorldCopies);if(X.call(this,Rt,le),this._interactive=le.interactive,this._maxTileCacheSize=le.maxTileCacheSize,this._failIfMajorPerformanceCaveat=le.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=le.preserveDrawingBuffer,this._antialias=le.antialias,this._trackResize=le.trackResize,this._bearingSnap=le.bearingSnap,this._refreshExpiredTiles=le.refreshExpiredTiles,this._fadeDuration=le.fadeDuration,this._crossSourceCollisions=le.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=le.collectResourceTiming,this._renderTaskQueue=new Dp,this._controls=[],this._mapId=b.uniqueId(),this._locale=b.extend({},Vp,le.locale),this._clickTolerance=le.clickTolerance,this._requestManager=new b.RequestManager(le.transformRequest,le.accessToken),typeof le.container=="string"){if(this._container=b.window.document.getElementById(le.container),!this._container)throw new Error("Container '"+le.container+"' not found.")}else{if(!(le.container instanceof qh))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=le.container}if(le.maxBounds&&this.setMaxBounds(le.maxBounds),b.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return it._update(!1)}),this.on("moveend",function(){return it._update(!1)}),this.on("zoom",function(){return it._update(!0)}),b.window!==void 0&&(b.window.addEventListener("online",this._onWindowOnline,!1),b.window.addEventListener("resize",this._onWindowResize,!1),b.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new td(this,le),this._hash=le.hash&&new Ud(typeof le.hash=="string"&&le.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:le.center,zoom:le.zoom,bearing:le.bearing,pitch:le.pitch}),le.bounds&&(this.resize(),this.fitBounds(le.bounds,b.extend({},le.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=le.localIdeographFontFamily,le.style&&this.setStyle(le.style,{localIdeographFontFamily:le.localIdeographFontFamily}),le.attributionControl&&this.addControl(new _f({customAttribution:le.customAttribution})),this.addControl(new Hh,le.logoPosition),this.on("style.load",function(){it.transform.unmodified&&it.jumpTo(it.style.stylesheet)}),this.on("data",function(nn){it._update(nn.dataType==="style"),it.fire(new b.Event(nn.dataType+"data",nn))}),this.on("dataloading",function(nn){it.fire(new b.Event(nn.dataType+"dataloading",nn))})}X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re;var Q={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return re.prototype._getMapId=function(){return this._mapId},re.prototype.addControl=function(le,it){if(it===void 0&&(it=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Rt=le.onAdd(this);this._controls.push(le);var nn=this._controlPositions[it];return it.indexOf("bottom")!==-1?nn.insertBefore(Rt,nn.firstChild):nn.appendChild(Rt),this},re.prototype.removeControl=function(le){if(!le||!le.onRemove)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var it=this._controls.indexOf(le);return it>-1&&this._controls.splice(it,1),le.onRemove(this),this},re.prototype.hasControl=function(le){return this._controls.indexOf(le)>-1},re.prototype.resize=function(le){var it=this._containerDimensions(),Rt=it[0],nn=it[1];if(Rt===this.transform.width&&nn===this.transform.height)return this;this._resizeCanvas(Rt,nn),this.transform.resize(Rt,nn),this.painter.resize(Rt,nn);var Yn=!this._moving;return Yn&&this.fire(new b.Event("movestart",le)).fire(new b.Event("move",le)),this.fire(new b.Event("resize",le)),Yn&&this.fire(new b.Event("moveend",le)),this},re.prototype.getBounds=function(){return this.transform.getBounds()},re.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},re.prototype.setMaxBounds=function(le){return this.transform.setMaxBounds(b.LngLatBounds.convert(le)),this._update()},re.prototype.setMinZoom=function(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")},re.prototype.getMaxZoom=function(){return this.transform.maxZoom},re.prototype.setMinPitch=function(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")},re.prototype.getMaxPitch=function(){return this.transform.maxPitch},re.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},re.prototype.setRenderWorldCopies=function(le){return this.transform.renderWorldCopies=le,this._update()},re.prototype.project=function(le){return this.transform.locationPoint(b.LngLat.convert(le))},re.prototype.unproject=function(le){return this.transform.pointLocation(b.Point.convert(le))},re.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},re.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},re.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},re.prototype._createDelegatedListener=function(le,it,Rt){var nn,Yn=this;if(le==="mouseenter"||le==="mouseover"){var ei=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(ss){var ts=Yn.getLayer(it)?Yn.queryRenderedFeatures(ss.point,{layers:[it]}):[];ts.length?ei||(ei=!0,Rt.call(Yn,new ed(le,Yn,ss.originalEvent,{features:ts}))):ei=!1},mouseout:function(){ei=!1}}}}if(le==="mouseleave"||le==="mouseout"){var gr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(ss){(Yn.getLayer(it)?Yn.queryRenderedFeatures(ss.point,{layers:[it]}):[]).length?gr=!0:gr&&(gr=!1,Rt.call(Yn,new ed(le,Yn,ss.originalEvent)))},mouseout:function(ss){gr&&(gr=!1,Rt.call(Yn,new ed(le,Yn,ss.originalEvent)))}}}}return{layer:it,listener:Rt,delegates:(nn={},nn[le]=function(ss){var ts=Yn.getLayer(it)?Yn.queryRenderedFeatures(ss.point,{layers:[it]}):[];ts.length&&(ss.features=ts,Rt.call(Yn,ss),delete ss.features)},nn)}},re.prototype.on=function(le,it,Rt){if(Rt===void 0)return X.prototype.on.call(this,le,it);var nn=this._createDelegatedListener(le,it,Rt);for(var Yn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(nn),nn.delegates)this.on(Yn,nn.delegates[Yn]);return this},re.prototype.once=function(le,it,Rt){if(Rt===void 0)return X.prototype.once.call(this,le,it);var nn=this._createDelegatedListener(le,it,Rt);for(var Yn in nn.delegates)this.once(Yn,nn.delegates[Yn]);return this},re.prototype.off=function(le,it,Rt){var nn=this;return Rt===void 0?X.prototype.off.call(this,le,it):(this._delegatedListeners&&this._delegatedListeners[le]&&function(Yn){for(var ei=Yn[le],gr=0;gr180;){var nn=Q.locationPoint(X);if(nn.x>=0&&nn.y>=0&&nn.x<=Q.width&&nn.y<=Q.height)break;X.lng>Q.center.lng?X.lng-=360:X.lng+=360}return X}vh.prototype.down=function(X,re){this.mouseRotate.mousedown(X,re),this.mousePitch&&this.mousePitch.mousedown(X,re),k.disableDrag()},vh.prototype.move=function(X,re){var Q=this.map,le=this.mouseRotate.mousemoveWindow(X,re);if(le&&le.bearingDelta&&Q.setBearing(Q.getBearing()+le.bearingDelta),this.mousePitch){var it=this.mousePitch.mousemoveWindow(X,re);it&&it.pitchDelta&&Q.setPitch(Q.getPitch()+it.pitchDelta)}},vh.prototype.off=function(){var X=this.element;k.removeEventListener(X,"mousedown",this.mousedown),k.removeEventListener(X,"touchstart",this.touchstart,{passive:!1}),k.removeEventListener(X,"touchmove",this.touchmove),k.removeEventListener(X,"touchend",this.touchend),k.removeEventListener(X,"touchcancel",this.reset),this.offTemp()},vh.prototype.offTemp=function(){k.enableDrag(),k.removeEventListener(b.window,"mousemove",this.mousemove),k.removeEventListener(b.window,"mouseup",this.mouseup)},vh.prototype.mousedown=function(X){this.down(b.extend({},X,{ctrlKey:!0,preventDefault:function(){return X.preventDefault()}}),k.mousePos(this.element,X)),k.addEventListener(b.window,"mousemove",this.mousemove),k.addEventListener(b.window,"mouseup",this.mouseup)},vh.prototype.mousemove=function(X){this.move(X,k.mousePos(this.element,X))},vh.prototype.mouseup=function(X){this.mouseRotate.mouseupWindow(X),this.mousePitch&&this.mousePitch.mouseupWindow(X),this.offTemp()},vh.prototype.touchstart=function(X){X.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return X.preventDefault()}},this._startPos))},vh.prototype.touchmove=function(X){X.targetTouches.length!==1?this.reset():(this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.move({preventDefault:function(){return X.preventDefault()}},this._lastPos))},vh.prototype.touchend=function(X){X.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=le}this._isDragging&&(this._pos=Q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new b.Event("dragstart"))),this.fire(new b.Event("drag")))},re.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new b.Event("dragend")),this._state="inactive"},re.prototype._addDragHandler=function(Q){this._element.contains(Q.originalEvent.target)&&(Q.preventDefault(),this._positionDelta=Q.point.sub(this._pos).add(this._offset),this._pointerdownPos=Q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},re.prototype.setDraggable=function(Q){return this._draggable=!!Q,this._map&&(Q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},re.prototype.isDraggable=function(){return this._draggable},re.prototype.setRotation=function(Q){return this._rotation=Q||0,this._update(),this},re.prototype.getRotation=function(){return this._rotation},re.prototype.setRotationAlignment=function(Q){return this._rotationAlignment=Q||"auto",this._update(),this},re.prototype.getRotationAlignment=function(){return this._rotationAlignment},re.prototype.setPitchAlignment=function(Q){return this._pitchAlignment=Q&&Q!=="auto"?Q:this._rotationAlignment,this._update(),this},re.prototype.getPitchAlignment=function(){return this._pitchAlignment},re}(b.Evented),Ue={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jt=0,$n=!1,_i=function(X){function re(Q){X.call(this),this.options=b.extend({},Ue,Q),b.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.onAdd=function(Q){var le;return this._map=Q,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),le=this._setupUI,J!==void 0?le(J):b.window.navigator.permissions!==void 0?b.window.navigator.permissions.query({name:"geolocation"}).then(function(it){le(J=it.state!=="denied")}):le(J=!!b.window.navigator.geolocation),this._container},re.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),k.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jt=0,$n=!1},re.prototype._isOutOfMapMaxBounds=function(Q){var le=this._map.getMaxBounds(),it=Q.coords;return le&&(it.longitudele.getEast()||it.latitudele.getNorth())},re.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},re.prototype._onSuccess=function(Q){if(this._map){if(this._isOutOfMapMaxBounds(Q))return this._setErrorState(),this.fire(new b.Event("outofmaxbounds",Q)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=Q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(Q),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(Q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("geolocate",Q)),this._finish()}},re.prototype._updateCamera=function(Q){var le=new b.LngLat(Q.coords.longitude,Q.coords.latitude),it=Q.coords.accuracy,Rt=this._map.getBearing(),nn=b.extend({bearing:Rt},this.options.fitBoundsOptions);this._map.fitBounds(le.toBounds(it),nn,{geolocateSource:!0})},re.prototype._updateMarker=function(Q){if(Q){var le=new b.LngLat(Q.coords.longitude,Q.coords.latitude);this._accuracyCircleMarker.setLngLat(le).addTo(this._map),this._userLocationDotMarker.setLngLat(le).addTo(this._map),this._accuracy=Q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},re.prototype._updateCircleRadius=function(){var Q=this._map._container.clientHeight/2,le=this._map.unproject([0,Q]),it=this._map.unproject([1,Q]),Rt=le.distanceTo(it),nn=Math.ceil(2*this._accuracy/Rt);this._circleElement.style.width=nn+"px",this._circleElement.style.height=nn+"px"},re.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},re.prototype._onError=function(Q){if(this._map){if(this.options.trackUserLocation)if(Q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var le=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=le,this._geolocateButton.setAttribute("aria-label",le),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Q.code===3&&$n)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("error",Q)),this._finish()}},re.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},re.prototype._setupUI=function(Q){var le=this;if(this._container.addEventListener("contextmenu",function(nn){return nn.preventDefault()}),this._geolocateButton=k.create("button","mapboxgl-ctrl-geolocate",this._container),k.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",Q===!1){b.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var it=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=it,this._geolocateButton.setAttribute("aria-label",it)}else{var Rt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Rt,this._geolocateButton.setAttribute("aria-label",Rt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=k.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ae(this._dotElement),this._circleElement=k.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ae({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(nn){nn.geolocateSource||le._watchState!=="ACTIVE_LOCK"||nn.originalEvent&&nn.originalEvent.type==="resize"||(le._watchState="BACKGROUND",le._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),le._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),le.fire(new b.Event("trackuserlocationend")))})},re.prototype.trigger=function(){if(!this._setup)return b.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new b.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jt--,$n=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new b.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new b.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var Q;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jt>1?(Q={maximumAge:6e5,timeout:0},$n=!0):(Q=this.options.positionOptions,$n=!1),this._geolocationWatchID=b.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,Q)}}else b.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},re.prototype._clearWatch=function(){b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},re}(b.Evented),Xo={maxWidth:100,unit:"metric"},fa=function(X){this.options=b.extend({},Xo,X),b.bindAll(["_onMove","setUnit"],this)};function Cl(X,re,Q){var le=Q&&Q.maxWidth||100,it=X._container.clientHeight/2,Rt=X.unproject([0,it]),nn=X.unproject([le,it]),Yn=Rt.distanceTo(nn);if(Q&&Q.unit==="imperial"){var ei=3.2808*Yn;ei>5280?Ll(re,le,ei/5280,X._getUIString("ScaleControl.Miles")):Ll(re,le,ei,X._getUIString("ScaleControl.Feet"))}else Q&&Q.unit==="nautical"?Ll(re,le,Yn/1852,X._getUIString("ScaleControl.NauticalMiles")):Yn>=1e3?Ll(re,le,Yn/1e3,X._getUIString("ScaleControl.Kilometers")):Ll(re,le,Yn,X._getUIString("ScaleControl.Meters"))}function Ll(X,re,Q,le){var it,Rt,nn,Yn=(it=Q,(Rt=Math.pow(10,(""+Math.floor(it)).length-1))*(nn=(nn=it/Rt)>=10?10:nn>=5?5:nn>=3?3:nn>=2?2:nn>=1?1:function(ei){var gr=Math.pow(10,Math.ceil(-Math.log(ei)/Math.LN10));return Math.round(ei*gr)/gr}(nn)));X.style.width=re*(Yn/Q)+"px",X.innerHTML=Yn+" "+le}fa.prototype.getDefaultPosition=function(){return"bottom-left"},fa.prototype._onMove=function(){Cl(this._map,this._container,this.options)},fa.prototype.onAdd=function(X){return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",X.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},fa.prototype.onRemove=function(){k.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},fa.prototype.setUnit=function(X){this.options.unit=X,Cl(this._map,this._container,this.options)};var zu=function(X){this._fullscreen=!1,X&&X.container&&(X.container instanceof b.window.HTMLElement?this._container=X.container:b.warnOnce("Full screen control 'container' must be a DOM element.")),b.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in b.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in b.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in b.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in b.window.document&&(this._fullscreenchange="MSFullscreenChange")};zu.prototype.onAdd=function(X){return this._map=X,this._container||(this._container=this._map.getContainer()),this._controlContainer=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",b.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},zu.prototype.onRemove=function(){k.remove(this._controlContainer),this._map=null,b.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},zu.prototype._checkFullscreenSupport=function(){return!!(b.window.document.fullscreenEnabled||b.window.document.mozFullScreenEnabled||b.window.document.msFullscreenEnabled||b.window.document.webkitFullscreenEnabled)},zu.prototype._setupUI=function(){var X=this._fullscreenButton=k.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);k.create("span","mapboxgl-ctrl-icon",X).setAttribute("aria-hidden",!0),X.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),b.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},zu.prototype._updateTitle=function(){var X=this._getTitle();this._fullscreenButton.setAttribute("aria-label",X),this._fullscreenButton.title=X},zu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},zu.prototype._isFullscreen=function(){return this._fullscreen},zu.prototype._changeIcon=function(){(b.window.document.fullscreenElement||b.window.document.mozFullScreenElement||b.window.document.webkitFullscreenElement||b.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},zu.prototype._onClickFullscreen=function(){this._isFullscreen()?b.window.document.exitFullscreen?b.window.document.exitFullscreen():b.window.document.mozCancelFullScreen?b.window.document.mozCancelFullScreen():b.window.document.msExitFullscreen?b.window.document.msExitFullscreen():b.window.document.webkitCancelFullScreen&&b.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Iu={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},pc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),zc=function(X){function re(Q){X.call(this),this.options=b.extend(Object.create(Iu),Q),b.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return X&&(re.__proto__=X),(re.prototype=Object.create(X&&X.prototype)).constructor=re,re.prototype.addTo=function(Q){return this._map&&this.remove(),this._map=Q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new b.Event("open")),this},re.prototype.isOpen=function(){return!!this._map},re.prototype.remove=function(){return this._content&&k.remove(this._content),this._container&&(k.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new b.Event("close")),this},re.prototype.getLngLat=function(){return this._lngLat},re.prototype.setLngLat=function(Q){return this._lngLat=b.LngLat.convert(Q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},re.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},re.prototype.getElement=function(){return this._container},re.prototype.setText=function(Q){return this.setDOMContent(b.window.document.createTextNode(Q))},re.prototype.setHTML=function(Q){var le,it=b.window.document.createDocumentFragment(),Rt=b.window.document.createElement("body");for(Rt.innerHTML=Q;le=Rt.firstChild;)it.appendChild(le);return this.setDOMContent(it)},re.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},re.prototype.setMaxWidth=function(Q){return this.options.maxWidth=Q,this._update(),this},re.prototype.setDOMContent=function(Q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=k.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(Q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},re.prototype.addClassName=function(Q){this._container&&this._container.classList.add(Q)},re.prototype.removeClassName=function(Q){this._container&&this._container.classList.remove(Q)},re.prototype.setOffset=function(Q){return this.options.offset=Q,this._update(),this},re.prototype.toggleClassName=function(Q){if(this._container)return this._container.classList.toggle(Q)},re.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=k.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},re.prototype._onMouseUp=function(Q){this._update(Q.point)},re.prototype._onMouseMove=function(Q){this._update(Q.point)},re.prototype._onDrag=function(Q){this._update(Q.point)},re.prototype._update=function(Q){var le=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=k.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=k.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(ts){return le._container.classList.add(ts)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Io(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||Q)){var it=this._pos=this._trackPointer&&Q?Q:this._map.project(this._lngLat),Rt=this.options.anchor,nn=function ts(Is){if(Is){if(typeof Is=="number"){var ua=Math.round(Math.sqrt(.5*Math.pow(Is,2)));return{center:new b.Point(0,0),top:new b.Point(0,Is),"top-left":new b.Point(ua,ua),"top-right":new b.Point(-ua,ua),bottom:new b.Point(0,-Is),"bottom-left":new b.Point(ua,-ua),"bottom-right":new b.Point(-ua,-ua),left:new b.Point(Is,0),right:new b.Point(-Is,0)}}if(Is instanceof b.Point||Array.isArray(Is)){var na=b.Point.convert(Is);return{center:na,top:na,"top-left":na,"top-right":na,bottom:na,"bottom-left":na,"bottom-right":na,left:na,right:na}}return{center:b.Point.convert(Is.center||[0,0]),top:b.Point.convert(Is.top||[0,0]),"top-left":b.Point.convert(Is["top-left"]||[0,0]),"top-right":b.Point.convert(Is["top-right"]||[0,0]),bottom:b.Point.convert(Is.bottom||[0,0]),"bottom-left":b.Point.convert(Is["bottom-left"]||[0,0]),"bottom-right":b.Point.convert(Is["bottom-right"]||[0,0]),left:b.Point.convert(Is.left||[0,0]),right:b.Point.convert(Is.right||[0,0])}}return ts(new b.Point(0,0))}(this.options.offset);if(!Rt){var Yn,ei=this._container.offsetWidth,gr=this._container.offsetHeight;Yn=it.y+nn.bottom.ythis._map.transform.height-gr?["bottom"]:[],it.xthis._map.transform.width-ei/2&&Yn.push("right"),Rt=Yn.length===0?"bottom":Yn.join("-")}var ss=it.add(nn[Rt]).round();k.setTransform(this._container,D[Rt]+" translate("+ss.x+"px,"+ss.y+"px)"),F(this._container,Rt,"popup")}},re.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var Q=this._container.querySelector(pc);Q&&Q.focus()}},re.prototype._onClose=function(){this.remove()},re}(b.Evented),Rd={version:b.version,supported:z,setRTLTextPlugin:b.setRTLTextPlugin,getRTLTextPluginStatus:b.getRTLTextPluginStatus,Map:Bf,NavigationControl:Hd,GeolocateControl:_i,AttributionControl:_f,ScaleControl:fa,FullscreenControl:zu,Popup:zc,Marker:ae,Style:Fa,LngLat:b.LngLat,LngLatBounds:b.LngLatBounds,Point:b.Point,MercatorCoordinate:b.MercatorCoordinate,Evented:b.Evented,config:b.config,prewarm:function(){vi().acquire(Bt)},clearPrewarmedResources:function(){var X=br;X&&(X.isPreloaded()&&X.numActive()===1?(X.release(Bt),br=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return b.config.ACCESS_TOKEN},set accessToken(X){b.config.ACCESS_TOKEN=X},get baseApiUrl(){return b.config.API_URL},set baseApiUrl(X){b.config.API_URL=X},get workerCount(){return pn.workerCount},set workerCount(X){pn.workerCount=X},get maxParallelImageRequests(){return b.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(X){b.config.MAX_PARALLEL_IMAGE_REQUESTS=X},clearStorage:function(X){b.clearTileCache(X)},workerUrl:""};return Rd}),y})},23978:function(nt,V,m){"use strict";m.r(V),m.d(V,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},default:function(){return Bee},editor:function(){return zK},languages:function(){return $K}});var y={};m.r(y),m.d(y,{PixelRatio:function(){return dl},addMatchMediaChangeListener:function(){return Ao},getZoomFactor:function(){return $r},isAndroid:function(){return xs},isChrome:function(){return ci},isElectron:function(){return Ts},isFirefox:function(){return Tr},isSafari:function(){return Eo},isStandalone:function(){return ui},isWebKit:function(){return pr},isWebkitWebView:function(){return mo}});var A={};m.r(A),m.d(A,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},editor:function(){return zK},languages:function(){return $K}});var b={};m.r(b),m.d(b,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},default:function(){return Bee},editor:function(){return zK},languages:function(){return $K}});class z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ie.isErrorNoTelemetry(e)?new ie(e.message+` +`}),staticAttributes:ce,staticUniforms:Mt}}var Va=Object.freeze({__proto__:null,prelude:Ca,background:vl,backgroundPattern:ds,circle:io,clippingMask:Ko,heatmap:As,heatmapTexture:ks,collisionBox:Ga,collisionCircle:zu,debug:Ac,fill:vc,fillOutline:ec,fillOutlinePattern:qu,fillPattern:Uu,fillExtrusion:zn,fillExtrusionPattern:ur,hillshadePrepare:Zr,hillshade:Jr,line:_i,lineGradient:so,linePattern:Ui,lineSDF:hs,raster:ra,symbolIcon:Ka,symbolSDF:ul,symbolTextAndIcon:hl}),Xu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Na(G){for(var J=[],Q=0;Q>16,yn>>16],u_pixel_coord_lower:[65535&Mt,65535&yn]}}Aa.prototype.draw=function(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn,yi,Oi,Ji,Lo,Qo,Zi){var Wo,js=G.gl;if(!this.failedToCreate){for(var Ja in G.program.set(this.program),G.setDepthMode(Q),G.setStencilMode(ce),G.setColorMode(Ze),G.setCullFace(Ct),this.fixedUniforms)this.fixedUniforms[Ja].set(Mt[Ja]);Lo&&Lo.setUniforms(G,this.binderUniforms,Oi,{zoom:Ji});for(var Ha=(Wo={},Wo[js.LINES]=2,Wo[js.TRIANGLES]=3,Wo[js.LINE_STRIP]=1,Wo)[J],Xl=0,bl=yi.get();Xl0?1-1/(1.001-Mt):-Mt),u_contrast_factor:(Ct=Ze.paint.get("raster-contrast"),Ct>0?1/(1-Ct):1+Ct),u_spin_weights:ld(Ze.paint.get("raster-hue-rotate"))};var Ct,Mt};function ld(G){G*=Math.PI/180;var J=Math.sin(G),Q=Math.cos(G);return[(2*Q+1)/3,(-Math.sqrt(3)*J-Q+1)/3,(Math.sqrt(3)*J-Q+1)/3]}var ph,lc=function(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn){var yi=Ze.transform;return{u_is_size_zoom_constant:+(G==="constant"||G==="source"),u_is_size_feature_constant:+(G==="constant"||G==="camera"),u_size_t:J?J.uSizeT:0,u_size:J?J.uSize:0,u_camera_to_center_distance:yi.cameraToCenterDistance,u_pitch:yi.pitch/360*2*Math.PI,u_rotate_symbol:+Q,u_aspect_ratio:yi.width/yi.height,u_fade_change:Ze.options.fadeDuration?Ze.symbolFadeChange:1,u_matrix:Ct,u_label_plane_matrix:Mt,u_coord_matrix:yn,u_is_text:+_r,u_pitch_with_map:+ce,u_texsize:Sn,u_texture:0}},xc=function(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn,yi){var Oi=Ze.transform;return w.extend(lc(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn),{u_gamma_scale:ce?Math.cos(Oi._pitch)*Oi.cameraToCenterDistance:1,u_device_pixel_ratio:w.browser.devicePixelRatio,u_is_halo:+yi})},Hh=function(G,J,Q,ce,Ze,Ct,Mt,yn,_r,Sn){return w.extend(xc(G,J,Q,ce,Ze,Ct,Mt,yn,!0,_r,!0),{u_texsize_icon:Sn,u_texture_icon:1})},xh=function(G,J,Q){return{u_matrix:G,u_opacity:J,u_color:Q}},Cd=function(G,J,Q,ce,Ze,Ct){return w.extend(function(Mt,yn,_r,Sn){var yi=_r.imageManager.getPattern(Mt.from.toString()),Oi=_r.imageManager.getPattern(Mt.to.toString()),Ji=_r.imageManager.getPixelSize(),Lo=Ji.width,Qo=Ji.height,Zi=Math.pow(2,Sn.tileID.overscaledZ),Wo=Sn.tileSize*Math.pow(2,_r.transform.tileZoom)/Zi,js=Wo*(Sn.tileID.canonical.x+Sn.tileID.wrap*Zi),Ja=Wo*Sn.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:yi.tl,u_pattern_br_a:yi.br,u_pattern_tl_b:Oi.tl,u_pattern_br_b:Oi.br,u_texsize:[Lo,Qo],u_mix:yn.t,u_pattern_size_a:yi.displaySize,u_pattern_size_b:Oi.displaySize,u_scale_a:yn.fromScale,u_scale_b:yn.toScale,u_tile_units_to_pixels:1/No(Sn,1,_r.transform.tileZoom),u_pixel_coord_upper:[js>>16,Ja>>16],u_pixel_coord_lower:[65535&js,65535&Ja]}}(ce,Ct,Q,Ze),{u_matrix:G,u_opacity:J})},md={fillExtrusion:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fillExtrusionPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_lightpos:new w.Uniform3f(G,J.u_lightpos),u_lightintensity:new w.Uniform1f(G,J.u_lightintensity),u_lightcolor:new w.Uniform3f(G,J.u_lightcolor),u_vertical_gradient:new w.Uniform1f(G,J.u_vertical_gradient),u_height_factor:new w.Uniform1f(G,J.u_height_factor),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade),u_opacity:new w.Uniform1f(G,J.u_opacity)}},fill:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},fillPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},fillOutline:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world)}},fillOutlinePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_texsize:new w.Uniform2f(G,J.u_texsize),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},circle:function(G,J){return{u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_scale_with_map:new w.Uniform1i(G,J.u_scale_with_map),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},collisionBox:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pixels_to_tile_units:new w.Uniform1f(G,J.u_pixels_to_tile_units),u_extrude_scale:new w.Uniform2f(G,J.u_extrude_scale),u_overscale_factor:new w.Uniform1f(G,J.u_overscale_factor)}},collisionCircle:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_inv_matrix:new w.UniformMatrix4f(G,J.u_inv_matrix),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_viewport_size:new w.Uniform2f(G,J.u_viewport_size)}},debug:function(G,J){return{u_color:new w.UniformColor(G,J.u_color),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_overlay:new w.Uniform1i(G,J.u_overlay),u_overlay_scale:new w.Uniform1f(G,J.u_overlay_scale)}},clippingMask:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmap:function(G,J){return{u_extrude_scale:new w.Uniform1f(G,J.u_extrude_scale),u_intensity:new w.Uniform1f(G,J.u_intensity),u_matrix:new w.UniformMatrix4f(G,J.u_matrix)}},heatmapTexture:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_world:new w.Uniform2f(G,J.u_world),u_image:new w.Uniform1i(G,J.u_image),u_color_ramp:new w.Uniform1i(G,J.u_color_ramp),u_opacity:new w.Uniform1f(G,J.u_opacity)}},hillshade:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_latrange:new w.Uniform2f(G,J.u_latrange),u_light:new w.Uniform2f(G,J.u_light),u_shadow:new w.UniformColor(G,J.u_shadow),u_highlight:new w.UniformColor(G,J.u_highlight),u_accent:new w.UniformColor(G,J.u_accent)}},hillshadePrepare:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_image:new w.Uniform1i(G,J.u_image),u_dimension:new w.Uniform2f(G,J.u_dimension),u_zoom:new w.Uniform1f(G,J.u_zoom),u_unpack:new w.Uniform4f(G,J.u_unpack)}},line:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels)}},lineGradient:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_image:new w.Uniform1i(G,J.u_image),u_image_height:new w.Uniform1f(G,J.u_image_height)}},linePattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_texsize:new w.Uniform2f(G,J.u_texsize),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_image:new w.Uniform1i(G,J.u_image),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_scale:new w.Uniform3f(G,J.u_scale),u_fade:new w.Uniform1f(G,J.u_fade)}},lineSDF:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_ratio:new w.Uniform1f(G,J.u_ratio),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_units_to_pixels:new w.Uniform2f(G,J.u_units_to_pixels),u_patternscale_a:new w.Uniform2f(G,J.u_patternscale_a),u_patternscale_b:new w.Uniform2f(G,J.u_patternscale_b),u_sdfgamma:new w.Uniform1f(G,J.u_sdfgamma),u_image:new w.Uniform1i(G,J.u_image),u_tex_y_a:new w.Uniform1f(G,J.u_tex_y_a),u_tex_y_b:new w.Uniform1f(G,J.u_tex_y_b),u_mix:new w.Uniform1f(G,J.u_mix)}},raster:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_tl_parent:new w.Uniform2f(G,J.u_tl_parent),u_scale_parent:new w.Uniform1f(G,J.u_scale_parent),u_buffer_scale:new w.Uniform1f(G,J.u_buffer_scale),u_fade_t:new w.Uniform1f(G,J.u_fade_t),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image0:new w.Uniform1i(G,J.u_image0),u_image1:new w.Uniform1i(G,J.u_image1),u_brightness_low:new w.Uniform1f(G,J.u_brightness_low),u_brightness_high:new w.Uniform1f(G,J.u_brightness_high),u_saturation_factor:new w.Uniform1f(G,J.u_saturation_factor),u_contrast_factor:new w.Uniform1f(G,J.u_contrast_factor),u_spin_weights:new w.Uniform3f(G,J.u_spin_weights)}},symbolIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture)}},symbolSDF:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texture:new w.Uniform1i(G,J.u_texture),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},symbolTextAndIcon:function(G,J){return{u_is_size_zoom_constant:new w.Uniform1i(G,J.u_is_size_zoom_constant),u_is_size_feature_constant:new w.Uniform1i(G,J.u_is_size_feature_constant),u_size_t:new w.Uniform1f(G,J.u_size_t),u_size:new w.Uniform1f(G,J.u_size),u_camera_to_center_distance:new w.Uniform1f(G,J.u_camera_to_center_distance),u_pitch:new w.Uniform1f(G,J.u_pitch),u_rotate_symbol:new w.Uniform1i(G,J.u_rotate_symbol),u_aspect_ratio:new w.Uniform1f(G,J.u_aspect_ratio),u_fade_change:new w.Uniform1f(G,J.u_fade_change),u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_label_plane_matrix:new w.UniformMatrix4f(G,J.u_label_plane_matrix),u_coord_matrix:new w.UniformMatrix4f(G,J.u_coord_matrix),u_is_text:new w.Uniform1i(G,J.u_is_text),u_pitch_with_map:new w.Uniform1i(G,J.u_pitch_with_map),u_texsize:new w.Uniform2f(G,J.u_texsize),u_texsize_icon:new w.Uniform2f(G,J.u_texsize_icon),u_texture:new w.Uniform1i(G,J.u_texture),u_texture_icon:new w.Uniform1i(G,J.u_texture_icon),u_gamma_scale:new w.Uniform1f(G,J.u_gamma_scale),u_device_pixel_ratio:new w.Uniform1f(G,J.u_device_pixel_ratio),u_is_halo:new w.Uniform1i(G,J.u_is_halo)}},background:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_color:new w.UniformColor(G,J.u_color)}},backgroundPattern:function(G,J){return{u_matrix:new w.UniformMatrix4f(G,J.u_matrix),u_opacity:new w.Uniform1f(G,J.u_opacity),u_image:new w.Uniform1i(G,J.u_image),u_pattern_tl_a:new w.Uniform2f(G,J.u_pattern_tl_a),u_pattern_br_a:new w.Uniform2f(G,J.u_pattern_br_a),u_pattern_tl_b:new w.Uniform2f(G,J.u_pattern_tl_b),u_pattern_br_b:new w.Uniform2f(G,J.u_pattern_br_b),u_texsize:new w.Uniform2f(G,J.u_texsize),u_mix:new w.Uniform1f(G,J.u_mix),u_pattern_size_a:new w.Uniform2f(G,J.u_pattern_size_a),u_pattern_size_b:new w.Uniform2f(G,J.u_pattern_size_b),u_scale_a:new w.Uniform1f(G,J.u_scale_a),u_scale_b:new w.Uniform1f(G,J.u_scale_b),u_pixel_coord_upper:new w.Uniform2f(G,J.u_pixel_coord_upper),u_pixel_coord_lower:new w.Uniform2f(G,J.u_pixel_coord_lower),u_tile_units_to_pixels:new w.Uniform1f(G,J.u_tile_units_to_pixels)}}};function Bd(G,J,Q,ce,Ze,Ct,Mt){for(var yn=G.context,_r=yn.gl,Sn=G.useProgram("collisionBox"),yi=[],Oi=0,Ji=0,Lo=0;Lo0){var Xl=w.create(),bl=js;w.mul(Xl,Wo.placementInvProjMatrix,G.transform.glCoordMatrix),w.mul(Xl,Xl,Wo.placementViewportMatrix),yi.push({circleArray:Ha,circleOffset:Ji,transform:bl,invTransform:Xl}),Ji=Oi+=Ha.length/4}Ja&&Sn.draw(yn,_r.LINES,er.disabled,Tr.disabled,G.colorModeForRenderPass(),Zn.disabled,Is(js,G.transform,Zi),Q.id,Ja.layoutVertexBuffer,Ja.indexBuffer,Ja.segments,null,G.transform.zoom,null,null,Ja.collisionVertexBuffer)}}if(Mt&&yi.length){var mu=G.useProgram("collisionCircle"),Ru=new w.StructArrayLayout2f1f2i16;Ru.resize(4*Oi),Ru._trim();for(var ic=0,Ju=0,Qc=yi;Ju=0&&(Qo[Wo.associatedIconIndex]={shiftedAnchor:Ru,angle:ic})}else Ai(Wo.numGlyphs,Ji)}if(yi){Lo.clear();for(var Qc=G.icon.placedSymbolArray,lh=0;lh0){var Mt=w.browser.now(),yn=(Mt-G.timeAdded)/Ct,_r=J?(Mt-J.timeAdded)/Ct:-1,Sn=Q.getSource(),yi=Ze.coveringZoomLevel({tileSize:Sn.tileSize,roundZoom:Sn.roundZoom}),Oi=!J||Math.abs(J.tileID.overscaledZ-yi)>Math.abs(G.tileID.overscaledZ-yi),Ji=Oi&&G.refreshedUponExpiration?1:w.clamp(Oi?yn:1-_r,0,1);return G.refreshedUponExpiration&&yn>=1&&(G.refreshedUponExpiration=!1),J?{opacity:1,mix:1-Ji}:{opacity:Ji,mix:0}}return{opacity:1,mix:0}}var ep=new w.Color(1,0,0,1),tp=new w.Color(0,1,0,1),Ad=new w.Color(0,0,1,1),jd=new w.Color(1,0,1,1),Su=new w.Color(0,1,1,1);function Ih(G,J,Q,ce){Lu(G,0,J+Q/2,G.transform.width,Q,ce)}function gl(G,J,Q,ce){Lu(G,J-Q/2,0,Q,G.transform.height,ce)}function Lu(G,J,Q,ce,Ze,Ct){var Mt=G.context,yn=Mt.gl;yn.enable(yn.SCISSOR_TEST),yn.scissor(J*w.browser.devicePixelRatio,Q*w.browser.devicePixelRatio,ce*w.browser.devicePixelRatio,Ze*w.browser.devicePixelRatio),Mt.clear({color:Ct}),yn.disable(yn.SCISSOR_TEST)}function xf(G,J,Q){var ce=G.context,Ze=ce.gl,Ct=Q.posMatrix,Mt=G.useProgram("debug"),yn=er.disabled,_r=Tr.disabled,Sn=G.colorModeForRenderPass();ce.activeTexture.set(Ze.TEXTURE0),G.emptyTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),Mt.draw(ce,Ze.LINE_STRIP,yn,_r,Sn,Zn.disabled,dl(Ct,w.Color.red),"$debug",G.debugBuffer,G.tileBorderIndexBuffer,G.debugSegments);var yi=J.getTileByID(Q.key).latestRawTileData,Oi=Math.floor((yi&&yi.byteLength||0)/1024),Ji=J.getTile(Q).tileSize,Lo=512/Math.min(Ji,512)*(Q.overscaledZ/G.transform.zoom)*.5,Qo=Q.canonical.toString();Q.overscaledZ!==Q.canonical.z&&(Qo+=" => "+Q.overscaledZ),function(Zi,Wo){Zi.initDebugOverlayCanvas();var js=Zi.debugOverlayCanvas,Ja=Zi.context.gl,Ha=Zi.debugOverlayCanvas.getContext("2d");Ha.clearRect(0,0,js.width,js.height),Ha.shadowColor="white",Ha.shadowBlur=2,Ha.lineWidth=1.5,Ha.strokeStyle="white",Ha.textBaseline="top",Ha.font="bold 36px Open Sans, sans-serif",Ha.fillText(Wo,5,5),Ha.strokeText(Wo,5,5),Zi.debugOverlayTexture.update(js),Zi.debugOverlayTexture.bind(Ja.LINEAR,Ja.CLAMP_TO_EDGE)}(G,Qo+" "+Oi+"kb"),Mt.draw(ce,Ze.TRIANGLES,yn,_r,Nr.alphaBlended,Zn.disabled,dl(Ct,w.Color.transparent,Lo),"$debug",G.debugBuffer,G.quadTriangleIndexBuffer,G.debugSegments)}var Nh={symbol:function(G,J,Q,ce,Ze){if(G.renderPass==="translucent"){var Ct=Tr.disabled,Mt=G.colorModeForRenderPass();Q.layout.get("text-variable-anchor")&&function(yn,_r,Sn,yi,Oi,Ji,Lo){for(var Qo=_r.transform,Zi=Oi==="map",Wo=Ji==="map",js=0,Ja=yn;js256&&this.clearStencil(),Q.setColorMode(Nr.disabled),Q.setDepthMode(er.disabled);var Ze=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Ct=0,Mt=J;Ct256&&this.clearStencil();var G=this.nextStencilID++,J=this.context.gl;return new Tr({func:J.NOTEQUAL,mask:255},G,255,J.KEEP,J.KEEP,J.REPLACE)},Ba.prototype.stencilModeForClipping=function(G){var J=this.context.gl;return new Tr({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[G.key],0,J.KEEP,J.KEEP,J.REPLACE)},Ba.prototype.stencilConfigForOverlap=function(G){var J,Q=this.context.gl,ce=G.sort(function(_r,Sn){return Sn.overscaledZ-_r.overscaledZ}),Ze=ce[ce.length-1].overscaledZ,Ct=ce[0].overscaledZ-Ze+1;if(Ct>1){this.currentStencilSource=void 0,this.nextStencilID+Ct>256&&this.clearStencil();for(var Mt={},yn=0;yn=0;this.currentLayer--){var Ha=this.style._layers[ce[this.currentLayer]],Xl=Ze[Ha.source],bl=Sn[Ha.source];this._renderTileClippingMasks(Ha,bl),this.renderLayer(this,Xl,Ha,bl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Ba.prototype.isPatternMissing=function(G){if(!G)return!1;if(!G.from||!G.to)return!0;var J=this.imageManager.getPattern(G.from.toString()),Q=this.imageManager.getPattern(G.to.toString());return!J||!Q},Ba.prototype.useProgram=function(G,J){this.cache=this.cache||{};var Q=""+G+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Q]||(this.cache[Q]=new Aa(this.context,G,Va[G],J,md[G],this._showOverdrawInspector)),this.cache[Q]},Ba.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ba.prototype.setBaseState=function(){var G=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(G.FUNC_ADD)},Ba.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=w.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new w.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Ba.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Mu=function(G,J){this.points=G,this.planes=J};Mu.fromInvProjectionMatrix=function(G,J,Q){var ce=Math.pow(2,Q),Ze=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(Mt){return w.transformMat4([],Mt,G)}).map(function(Mt){return w.scale$1([],Mt,1/Mt[3]/J*ce)}),Ct=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Mt){var yn=w.sub([],Ze[Mt[0]],Ze[Mt[1]]),_r=w.sub([],Ze[Mt[2]],Ze[Mt[1]]),Sn=w.normalize([],w.cross([],yn,_r)),yi=-w.dot(Sn,Ze[Mt[1]]);return Sn.concat(yi)});return new Mu(Ze,Ct)};var Zl=function(G,J){this.min=G,this.max=J,this.center=w.scale$2([],w.add([],this.min,this.max),.5)};Zl.prototype.quadrant=function(G){for(var J=[G%2==0,G<2],Q=w.clone$2(this.min),ce=w.clone$2(this.max),Ze=0;Ze=0;if(Ct===0)return 0;Ct!==J.length&&(Q=!1)}if(Q)return 2;for(var yn=0;yn<3;yn++){for(var _r=Number.MAX_VALUE,Sn=-Number.MAX_VALUE,yi=0;yithis.max[yn]-this.min[yn])return 0}return 1};var Au=function(G,J,Q,ce){if(G===void 0&&(G=0),J===void 0&&(J=0),Q===void 0&&(Q=0),ce===void 0&&(ce=0),isNaN(G)||G<0||isNaN(J)||J<0||isNaN(Q)||Q<0||isNaN(ce)||ce<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=G,this.bottom=J,this.left=Q,this.right=ce};Au.prototype.interpolate=function(G,J,Q){return J.top!=null&&G.top!=null&&(this.top=w.number(G.top,J.top,Q)),J.bottom!=null&&G.bottom!=null&&(this.bottom=w.number(G.bottom,J.bottom,Q)),J.left!=null&&G.left!=null&&(this.left=w.number(G.left,J.left,Q)),J.right!=null&&G.right!=null&&(this.right=w.number(G.right,J.right,Q)),this},Au.prototype.getCenter=function(G,J){var Q=w.clamp((this.left+G-this.right)/2,0,G),ce=w.clamp((this.top+J-this.bottom)/2,0,J);return new w.Point(Q,ce)},Au.prototype.equals=function(G){return this.top===G.top&&this.bottom===G.bottom&&this.left===G.left&&this.right===G.right},Au.prototype.clone=function(){return new Au(this.top,this.bottom,this.left,this.right)},Au.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Wu=function(G,J,Q,ce,Ze){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Ze===void 0||Ze,this._minZoom=G||0,this._maxZoom=J||22,this._minPitch=Q==null?0:Q,this._maxPitch=ce==null?60:ce,this.setMaxBounds(),this.width=0,this.height=0,this._center=new w.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Au,this._posMatrixCache={},this._alignedPosMatrixCache={}},Qh={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Wu.prototype.clone=function(){var G=new Wu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return G.tileSize=this.tileSize,G.latRange=this.latRange,G.width=this.width,G.height=this.height,G._center=this._center,G.zoom=this.zoom,G.angle=this.angle,G._fov=this._fov,G._pitch=this._pitch,G._unmodified=this._unmodified,G._edgeInsets=this._edgeInsets.clone(),G._calcMatrices(),G},Qh.minZoom.get=function(){return this._minZoom},Qh.minZoom.set=function(G){this._minZoom!==G&&(this._minZoom=G,this.zoom=Math.max(this.zoom,G))},Qh.maxZoom.get=function(){return this._maxZoom},Qh.maxZoom.set=function(G){this._maxZoom!==G&&(this._maxZoom=G,this.zoom=Math.min(this.zoom,G))},Qh.minPitch.get=function(){return this._minPitch},Qh.minPitch.set=function(G){this._minPitch!==G&&(this._minPitch=G,this.pitch=Math.max(this.pitch,G))},Qh.maxPitch.get=function(){return this._maxPitch},Qh.maxPitch.set=function(G){this._maxPitch!==G&&(this._maxPitch=G,this.pitch=Math.min(this.pitch,G))},Qh.renderWorldCopies.get=function(){return this._renderWorldCopies},Qh.renderWorldCopies.set=function(G){G===void 0?G=!0:G===null&&(G=!1),this._renderWorldCopies=G},Qh.worldSize.get=function(){return this.tileSize*this.scale},Qh.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Qh.size.get=function(){return new w.Point(this.width,this.height)},Qh.bearing.get=function(){return-this.angle/Math.PI*180},Qh.bearing.set=function(G){var J=-w.wrap(G,-180,180)*Math.PI/180;this.angle!==J&&(this._unmodified=!1,this.angle=J,this._calcMatrices(),this.rotationMatrix=w.create$2(),w.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Qh.pitch.get=function(){return this._pitch/Math.PI*180},Qh.pitch.set=function(G){var J=w.clamp(G,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==J&&(this._unmodified=!1,this._pitch=J,this._calcMatrices())},Qh.fov.get=function(){return this._fov/Math.PI*180},Qh.fov.set=function(G){G=Math.max(.01,Math.min(60,G)),this._fov!==G&&(this._unmodified=!1,this._fov=G/180*Math.PI,this._calcMatrices())},Qh.zoom.get=function(){return this._zoom},Qh.zoom.set=function(G){var J=Math.min(Math.max(G,this.minZoom),this.maxZoom);this._zoom!==J&&(this._unmodified=!1,this._zoom=J,this.scale=this.zoomScale(J),this.tileZoom=Math.floor(J),this.zoomFraction=J-this.tileZoom,this._constrain(),this._calcMatrices())},Qh.center.get=function(){return this._center},Qh.center.set=function(G){G.lat===this._center.lat&&G.lng===this._center.lng||(this._unmodified=!1,this._center=G,this._constrain(),this._calcMatrices())},Qh.padding.get=function(){return this._edgeInsets.toJSON()},Qh.padding.set=function(G){this._edgeInsets.equals(G)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,G,1),this._calcMatrices())},Qh.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Wu.prototype.isPaddingEqual=function(G){return this._edgeInsets.equals(G)},Wu.prototype.interpolatePadding=function(G,J,Q){this._unmodified=!1,this._edgeInsets.interpolate(G,J,Q),this._constrain(),this._calcMatrices()},Wu.prototype.coveringZoomLevel=function(G){var J=(G.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/G.tileSize));return Math.max(0,J)},Wu.prototype.getVisibleUnwrappedCoordinates=function(G){var J=[new w.UnwrappedTileID(0,G)];if(this._renderWorldCopies)for(var Q=this.pointCoordinate(new w.Point(0,0)),ce=this.pointCoordinate(new w.Point(this.width,0)),Ze=this.pointCoordinate(new w.Point(this.width,this.height)),Ct=this.pointCoordinate(new w.Point(0,this.height)),Mt=Math.floor(Math.min(Q.x,ce.x,Ze.x,Ct.x)),yn=Math.floor(Math.max(Q.x,ce.x,Ze.x,Ct.x)),_r=Mt-1;_r<=yn+1;_r++)_r!==0&&J.push(new w.UnwrappedTileID(_r,G));return J},Wu.prototype.coveringTiles=function(G){var J=this.coveringZoomLevel(G),Q=J;if(G.minzoom!==void 0&&JG.maxzoom&&(J=G.maxzoom);var ce=w.MercatorCoordinate.fromLngLat(this.center),Ze=Math.pow(2,J),Ct=[Ze*ce.x,Ze*ce.y,0],Mt=Mu.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),yn=G.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(yn=J);var _r=function(Ju){return{aabb:new Zl([Ju*Ze,0,0],[(Ju+1)*Ze,Ze,0]),zoom:0,x:0,y:0,wrap:Ju,fullyVisible:!1}},Sn=[],yi=[],Oi=J,Ji=G.reparseOverscaled?Q:J;if(this._renderWorldCopies)for(var Lo=1;Lo<=3;Lo++)Sn.push(_r(-Lo)),Sn.push(_r(Lo));for(Sn.push(_r(0));Sn.length>0;){var Qo=Sn.pop(),Zi=Qo.x,Wo=Qo.y,js=Qo.fullyVisible;if(!js){var Ja=Qo.aabb.intersects(Mt);if(Ja===0)continue;js=Ja===2}var Ha=Qo.aabb.distanceX(Ct),Xl=Qo.aabb.distanceY(Ct),bl=Math.max(Math.abs(Ha),Math.abs(Xl));if(Qo.zoom===Oi||bl>3+(1<=yn)yi.push({tileID:new w.OverscaledTileID(Qo.zoom===Oi?Ji:Qo.zoom,Qo.wrap,Qo.zoom,Zi,Wo),distanceSq:w.sqrLen([Ct[0]-.5-Zi,Ct[1]-.5-Wo])});else for(var mu=0;mu<4;mu++){var Ru=(Zi<<1)+mu%2,ic=(Wo<<1)+(mu>>1);Sn.push({aabb:Qo.aabb.quadrant(mu),zoom:Qo.zoom+1,x:Ru,y:ic,wrap:Qo.wrap,fullyVisible:js})}}return yi.sort(function(Ju,Qc){return Ju.distanceSq-Qc.distanceSq}).map(function(Ju){return Ju.tileID})},Wu.prototype.resize=function(G,J){this.width=G,this.height=J,this.pixelsToGLUnits=[2/G,-2/J],this._constrain(),this._calcMatrices()},Qh.unmodified.get=function(){return this._unmodified},Wu.prototype.zoomScale=function(G){return Math.pow(2,G)},Wu.prototype.scaleZoom=function(G){return Math.log(G)/Math.LN2},Wu.prototype.project=function(G){var J=w.clamp(G.lat,-this.maxValidLatitude,this.maxValidLatitude);return new w.Point(w.mercatorXfromLng(G.lng)*this.worldSize,w.mercatorYfromLat(J)*this.worldSize)},Wu.prototype.unproject=function(G){return new w.MercatorCoordinate(G.x/this.worldSize,G.y/this.worldSize).toLngLat()},Qh.point.get=function(){return this.project(this.center)},Wu.prototype.setLocationAtPoint=function(G,J){var Q=this.pointCoordinate(J),ce=this.pointCoordinate(this.centerPoint),Ze=this.locationCoordinate(G),Ct=new w.MercatorCoordinate(Ze.x-(Q.x-ce.x),Ze.y-(Q.y-ce.y));this.center=this.coordinateLocation(Ct),this._renderWorldCopies&&(this.center=this.center.wrap())},Wu.prototype.locationPoint=function(G){return this.coordinatePoint(this.locationCoordinate(G))},Wu.prototype.pointLocation=function(G){return this.coordinateLocation(this.pointCoordinate(G))},Wu.prototype.locationCoordinate=function(G){return w.MercatorCoordinate.fromLngLat(G)},Wu.prototype.coordinateLocation=function(G){return G.toLngLat()},Wu.prototype.pointCoordinate=function(G){var J=[G.x,G.y,0,1],Q=[G.x,G.y,1,1];w.transformMat4(J,J,this.pixelMatrixInverse),w.transformMat4(Q,Q,this.pixelMatrixInverse);var ce=J[3],Ze=Q[3],Ct=J[1]/ce,Mt=Q[1]/Ze,yn=J[2]/ce,_r=Q[2]/Ze,Sn=yn===_r?0:(0-yn)/(_r-yn);return new w.MercatorCoordinate(w.number(J[0]/ce,Q[0]/Ze,Sn)/this.worldSize,w.number(Ct,Mt,Sn)/this.worldSize)},Wu.prototype.coordinatePoint=function(G){var J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix),new w.Point(J[0]/J[3],J[1]/J[3])},Wu.prototype.getBounds=function(){return new w.LngLatBounds().extend(this.pointLocation(new w.Point(0,0))).extend(this.pointLocation(new w.Point(this.width,0))).extend(this.pointLocation(new w.Point(this.width,this.height))).extend(this.pointLocation(new w.Point(0,this.height)))},Wu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new w.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Wu.prototype.setMaxBounds=function(G){G?(this.lngRange=[G.getWest(),G.getEast()],this.latRange=[G.getSouth(),G.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Wu.prototype.calculatePosMatrix=function(G,J){J===void 0&&(J=!1);var Q=G.key,ce=J?this._alignedPosMatrixCache:this._posMatrixCache;if(ce[Q])return ce[Q];var Ze=G.canonical,Ct=this.worldSize/this.zoomScale(Ze.z),Mt=Ze.x+Math.pow(2,Ze.z)*G.wrap,yn=w.identity(new Float64Array(16));return w.translate(yn,yn,[Mt*Ct,Ze.y*Ct,0]),w.scale(yn,yn,[Ct/w.EXTENT,Ct/w.EXTENT,1]),w.multiply(yn,J?this.alignedProjMatrix:this.projMatrix,yn),ce[Q]=new Float32Array(yn),ce[Q]},Wu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Wu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var G,J,Q,ce,Ze=-90,Ct=90,Mt=-180,yn=180,_r=this.size,Sn=this._unmodified;if(this.latRange){var yi=this.latRange;Ze=w.mercatorYfromLat(yi[1])*this.worldSize,G=(Ct=w.mercatorYfromLat(yi[0])*this.worldSize)-Ze<_r.y?_r.y/(Ct-Ze):0}if(this.lngRange){var Oi=this.lngRange;Mt=w.mercatorXfromLng(Oi[0])*this.worldSize,J=(yn=w.mercatorXfromLng(Oi[1])*this.worldSize)-Mt<_r.x?_r.x/(yn-Mt):0}var Ji=this.point,Lo=Math.max(J||0,G||0);if(Lo)return this.center=this.unproject(new w.Point(J?(yn+Mt)/2:Ji.x,G?(Ct+Ze)/2:Ji.y)),this.zoom+=this.scaleZoom(Lo),this._unmodified=Sn,void(this._constraining=!1);if(this.latRange){var Qo=Ji.y,Zi=_r.y/2;Qo-ZiCt&&(ce=Ct-Zi)}if(this.lngRange){var Wo=Ji.x,js=_r.x/2;Wo-jsyn&&(Q=yn-js)}Q===void 0&&ce===void 0||(this.center=this.unproject(new w.Point(Q!==void 0?Q:Ji.x,ce!==void 0?ce:Ji.y))),this._unmodified=Sn,this._constraining=!1}},Wu.prototype._calcMatrices=function(){if(this.height){var G=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var J=Math.PI/2+this._pitch,Q=this._fov*(.5+G.y/this.height),ce=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(w.clamp(Math.PI-J-Q,.01,Math.PI-.01)),Ze=this.point,Ct=Ze.x,Mt=Ze.y,yn=1.01*(Math.cos(Math.PI/2-this._pitch)*ce+this.cameraToCenterDistance),_r=this.height/50,Sn=new Float64Array(16);w.perspective(Sn,this._fov,this.width/this.height,_r,yn),Sn[8]=2*-G.x/this.width,Sn[9]=2*G.y/this.height,w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[0,0,-this.cameraToCenterDistance]),w.rotateX(Sn,Sn,this._pitch),w.rotateZ(Sn,Sn,this.angle),w.translate(Sn,Sn,[-Ct,-Mt,0]),this.mercatorMatrix=w.scale([],Sn,[this.worldSize,this.worldSize,this.worldSize]),w.scale(Sn,Sn,[1,1,w.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Sn,this.invProjMatrix=w.invert([],this.projMatrix);var yi=this.width%2/2,Oi=this.height%2/2,Ji=Math.cos(this.angle),Lo=Math.sin(this.angle),Qo=Ct-Math.round(Ct)+Ji*yi+Lo*Oi,Zi=Mt-Math.round(Mt)+Ji*Oi+Lo*yi,Wo=new Float64Array(Sn);if(w.translate(Wo,Wo,[Qo>.5?Qo-1:Qo,Zi>.5?Zi-1:Zi,0]),this.alignedProjMatrix=Wo,Sn=w.create(),w.scale(Sn,Sn,[this.width/2,-this.height/2,1]),w.translate(Sn,Sn,[1,-1,0]),this.labelPlaneMatrix=Sn,Sn=w.create(),w.scale(Sn,Sn,[1,-1,1]),w.translate(Sn,Sn,[-1,-1,0]),w.scale(Sn,Sn,[2/this.width,2/this.height,1]),this.glCoordMatrix=Sn,this.pixelMatrix=w.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Sn=w.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Sn,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Wu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var G=this.pointCoordinate(new w.Point(0,0)),J=[G.x*this.worldSize,G.y*this.worldSize,0,1];return w.transformMat4(J,J,this.pixelMatrix)[3]/this.cameraToCenterDistance},Wu.prototype.getCameraPoint=function(){var G=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new w.Point(0,G))},Wu.prototype.getCameraQueryGeometry=function(G){var J=this.getCameraPoint();if(G.length===1)return[G[0],J];for(var Q=J.x,ce=J.y,Ze=J.x,Ct=J.y,Mt=0,yn=G;Mt=3&&!G.some(function(Q){return isNaN(Q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(G[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+G[2],+G[1]],zoom:+G[0],bearing:J,pitch:+(G[4]||0)}),!0}return!1},hd.prototype._updateHashUnthrottled=function(){var G=w.window.location.href.replace(/(#.+)?$/,this.getHashString());try{w.window.history.replaceState(w.window.history.state,null,G)}catch(J){}};var Bh={linearity:.3,easing:w.bezier(0,0,.3,1)},hf=w.extend({deceleration:2500,maxSpeed:1400},Bh),Rf=w.extend({deceleration:20,maxSpeed:1400},Bh),Yd=w.extend({deceleration:1e3,maxSpeed:360},Bh),If=w.extend({deceleration:1e3,maxSpeed:90},Bh),tf=function(G){this._map=G,this.clear()};function hp(G,J){(!G.duration||G.duration0&&J-G[0].time>160;)G.shift()},tf.prototype._onMoveEnd=function(G){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new w.Point(0,0),pinchAround:void 0,around:void 0},Q=0,ce=this._inertiaBuffer;Q=this._clickTolerance||this._map.fire(new wh(G.type,this._map,G))},Wc.prototype.dblclick=function(G){return this._firePreventable(new wh(G.type,this._map,G))},Wc.prototype.mouseover=function(G){this._map.fire(new wh(G.type,this._map,G))},Wc.prototype.mouseout=function(G){this._map.fire(new wh(G.type,this._map,G))},Wc.prototype.touchstart=function(G){return this._firePreventable(new Tf(G.type,this._map,G))},Wc.prototype.touchmove=function(G){this._map.fire(new Tf(G.type,this._map,G))},Wc.prototype.touchend=function(G){this._map.fire(new Tf(G.type,this._map,G))},Wc.prototype.touchcancel=function(G){this._map.fire(new Tf(G.type,this._map,G))},Wc.prototype._firePreventable=function(G){if(this._map.fire(G),G.defaultPrevented)return{}},Wc.prototype.isEnabled=function(){return!0},Wc.prototype.isActive=function(){return!1},Wc.prototype.enable=function(){},Wc.prototype.disable=function(){};var Gc=function(G){this._map=G};Gc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Gc.prototype.mousemove=function(G){this._map.fire(new wh(G.type,this._map,G))},Gc.prototype.mousedown=function(){this._delayContextMenu=!0},Gc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new wh("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Gc.prototype.contextmenu=function(G){this._delayContextMenu?this._contextMenuEvent=G:this._map.fire(new wh(G.type,this._map,G)),this._map.listens("contextmenu")&&G.preventDefault()},Gc.prototype.isEnabled=function(){return!0},Gc.prototype.isActive=function(){return!1},Gc.prototype.enable=function(){},Gc.prototype.disable=function(){};var vd=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._container=G.getContainer(),this._clickTolerance=J.clickTolerance||1};function Il(G,J){for(var Q={},ce=0;cethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=G.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ce){for(var Ze=new w.Point(0,0),Ct=0,Mt=ce;Ct30)&&(this.aborted=!0)}}},gs.prototype.touchend=function(G,J,Q){if((!this.centroid||G.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){var ce=!this.aborted&&this.centroid;if(this.reset(),ce)return ce}};var _c=function(G){this.singleTap=new gs(G),this.numTaps=G.numTaps,this.reset()};_c.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_c.prototype.touchstart=function(G,J,Q){this.singleTap.touchstart(G,J,Q)},_c.prototype.touchmove=function(G,J,Q){this.singleTap.touchmove(G,J,Q)},_c.prototype.touchend=function(G,J,Q){var ce=this.singleTap.touchend(G,J,Q);if(ce){var Ze=G.timeStamp-this.lastTime<500,Ct=!this.lastTap||this.lastTap.dist(ce)<30;if(Ze&&Ct||this.reset(),this.count++,this.lastTime=G.timeStamp,this.lastTap=ce,this.count===this.numTaps)return this.reset(),ce}};var Wi=function(){this._zoomIn=new _c({numTouches:1,numTaps:2}),this._zoomOut=new _c({numTouches:2,numTaps:1}),this.reset()};Wi.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Wi.prototype.touchstart=function(G,J,Q){this._zoomIn.touchstart(G,J,Q),this._zoomOut.touchstart(G,J,Q)},Wi.prototype.touchmove=function(G,J,Q){this._zoomIn.touchmove(G,J,Q),this._zoomOut.touchmove(G,J,Q)},Wi.prototype.touchend=function(G,J,Q){var ce=this,Ze=this._zoomIn.touchend(G,J,Q),Ct=this._zoomOut.touchend(G,J,Q);return Ze?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Mt){return Mt.easeTo({duration:300,zoom:Mt.getZoom()+1,around:Mt.unproject(Ze)},{originalEvent:G})}}):Ct?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Mt){return Mt.easeTo({duration:300,zoom:Mt.getZoom()-1,around:Mt.unproject(Ct)},{originalEvent:G})}}):void 0},Wi.prototype.touchcancel=function(){this.reset()},Wi.prototype.enable=function(){this._enabled=!0},Wi.prototype.disable=function(){this._enabled=!1,this.reset()},Wi.prototype.isEnabled=function(){return this._enabled},Wi.prototype.isActive=function(){return this._active};var fg={0:1,2:2},uc=function(G){this.reset(),this._clickTolerance=G.clickTolerance||1};uc.prototype.blur=function(){this.reset()},uc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},uc.prototype._correctButton=function(G,J){return!1},uc.prototype._move=function(G,J){return{}},uc.prototype.mousedown=function(G,J){if(!this._lastPoint){var Q=B.mouseButton(G);this._correctButton(G,Q)&&(this._lastPoint=J,this._eventButton=Q)}},uc.prototype.mousemoveWindow=function(G,J){var Q=this._lastPoint;if(Q){if(G.preventDefault(),function(ce,Ze){var Ct=fg[Ze];return ce.buttons===void 0||(ce.buttons&Ct)!==Ct}(G,this._eventButton))this.reset();else if(this._moved||!(J.dist(Q)0&&(this._active=!0);var ce=Il(Q,J),Ze=new w.Point(0,0),Ct=new w.Point(0,0),Mt=0;for(var yn in ce){var _r=ce[yn],Sn=this._touches[yn];Sn&&(Ze._add(_r),Ct._add(_r.sub(Sn)),Mt++,ce[yn]=_r)}if(this._touches=ce,!(MtMath.abs(G.x)}var Ph=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.reset=function(){G.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},J.prototype._start=function(Q){this._lastPoints=Q,lp(Q[0].sub(Q[1]))&&(this._valid=!1)},J.prototype._move=function(Q,ce,Ze){var Ct=Q[0].sub(this._lastPoints[0]),Mt=Q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Ct,Mt,Ze.timeStamp),this._valid)return this._lastPoints=Q,this._active=!0,{pitchDelta:(Ct.y+Mt.y)/2*-.5}},J.prototype.gestureBeginsVertically=function(Q,ce,Ze){if(this._valid!==void 0)return this._valid;var Ct=Q.mag()>=2,Mt=ce.mag()>=2;if(Ct||Mt){if(!Ct||!Mt)return this._firstMove===void 0&&(this._firstMove=Ze),Ze-this._firstMove<100&&void 0;var yn=Q.y>0==ce.y>0;return lp(Q)&&lp(ce)&&yn}},J}(df),Ip={panStep:100,bearingStep:15,pitchStep:10},pg=function(){var G=Ip;this._panStep=G.panStep,this._bearingStep=G.bearingStep,this._pitchStep=G.pitchStep,this._rotationDisabled=!1};function Wp(G){return G*(2-G)}pg.prototype.blur=function(){this.reset()},pg.prototype.reset=function(){this._active=!1},pg.prototype.keydown=function(G){var J=this;if(!(G.altKey||G.ctrlKey||G.metaKey)){var Q=0,ce=0,Ze=0,Ct=0,Mt=0;switch(G.keyCode){case 61:case 107:case 171:case 187:Q=1;break;case 189:case 109:case 173:Q=-1;break;case 37:G.shiftKey?ce=-1:(G.preventDefault(),Ct=-1);break;case 39:G.shiftKey?ce=1:(G.preventDefault(),Ct=1);break;case 38:G.shiftKey?Ze=1:(G.preventDefault(),Mt=-1);break;case 40:G.shiftKey?Ze=-1:(G.preventDefault(),Mt=1);break;default:return}return this._rotationDisabled&&(ce=0,Ze=0),{cameraAnimation:function(yn){var _r=yn.getZoom();yn.easeTo({duration:300,easeId:"keyboardHandler",easing:Wp,zoom:Q?Math.round(_r)+Q*(G.shiftKey?2:1):_r,bearing:yn.getBearing()+ce*J._bearingStep,pitch:yn.getPitch()+Ze*J._pitchStep,offset:[-Ct*J._panStep,-Mt*J._panStep],center:yn.getCenter()},{originalEvent:G})}}}},pg.prototype.enable=function(){this._enabled=!0},pg.prototype.disable=function(){this._enabled=!1,this.reset()},pg.prototype.isEnabled=function(){return this._enabled},pg.prototype.isActive=function(){return this._active},pg.prototype.disableRotation=function(){this._rotationDisabled=!0},pg.prototype.enableRotation=function(){this._rotationDisabled=!1};var ud=function(G,J){this._map=G,this._el=G.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,w.bindAll(["_onTimeout"],this)};ud.prototype.setZoomRate=function(G){this._defaultZoomRate=G},ud.prototype.setWheelZoomRate=function(G){this._wheelZoomRate=G},ud.prototype.isEnabled=function(){return!!this._enabled},ud.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},ud.prototype.isZooming=function(){return!!this._zooming},ud.prototype.enable=function(G){this.isEnabled()||(this._enabled=!0,this._aroundCenter=G&&G.around==="center")},ud.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},ud.prototype.wheel=function(G){if(this.isEnabled()){var J=G.deltaMode===w.window.WheelEvent.DOM_DELTA_LINE?40*G.deltaY:G.deltaY,Q=w.browser.now(),ce=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,J!==0&&J%4.000244140625==0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":ce>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,G)):this._type||(this._type=Math.abs(ce*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),G.shiftKey&&J&&(J/=4),this._type&&(this._lastWheelEvent=G,this._delta-=J,this._active||this._start(G)),G.preventDefault()}},ud.prototype._onTimeout=function(G){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(G)},ud.prototype._start=function(G){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 J=B.mousePos(this._el,G);this._around=w.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ud.prototype.renderFrame=function(){var G=this;if(this._frameId&&(this._frameId=null,this.isActive())){var J=this._map.transform;if(this._delta!==0){var Q=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,ce=2/(1+Math.exp(-Math.abs(this._delta*Q)));this._delta<0&&ce!==0&&(ce=1/ce);var Ze=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(Ze*ce))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Ct,Mt=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,yn=this._startZoom,_r=this._easing,Sn=!1;if(this._type==="wheel"&&yn&&_r){var yi=Math.min((w.browser.now()-this._lastWheelEventTime)/200,1),Oi=_r(yi);Ct=w.number(yn,Mt,Oi),yi<1?this._frameId||(this._frameId=!0):Sn=!0}else Ct=Mt,Sn=!0;return this._active=!0,Sn&&(this._active=!1,this._finishTimeout=setTimeout(function(){G._zooming=!1,G._handler._triggerRenderFrame(),delete G._targetZoom,delete G._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Sn,zoomDelta:Ct-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ud.prototype._smoothOutEasing=function(G){var J=w.ease;if(this._prevEase){var Q=this._prevEase,ce=(w.browser.now()-Q.start)/Q.duration,Ze=Q.easing(ce+.01)-Q.easing(ce),Ct=.27/Math.sqrt(Ze*Ze+1e-4)*.01,Mt=Math.sqrt(.0729-Ct*Ct);J=w.bezier(Ct,Mt,.25,1)}return this._prevEase={start:w.browser.now(),duration:G,easing:J},J},ud.prototype.blur=function(){this.reset()},ud.prototype.reset=function(){this._active=!1};var rg=function(G,J){this._clickZoom=G,this._tapZoom=J};rg.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},rg.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},rg.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},rg.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Wh=function(){this.reset()};Wh.prototype.reset=function(){this._active=!1},Wh.prototype.blur=function(){this.reset()},Wh.prototype.dblclick=function(G,J){return G.preventDefault(),{cameraAnimation:function(Q){Q.easeTo({duration:300,zoom:Q.getZoom()+(G.shiftKey?-1:1),around:Q.unproject(J)},{originalEvent:G})}}},Wh.prototype.enable=function(){this._enabled=!0},Wh.prototype.disable=function(){this._enabled=!1,this.reset()},Wh.prototype.isEnabled=function(){return this._enabled},Wh.prototype.isActive=function(){return this._active};var wf=function(){this._tap=new _c({numTouches:1,numTaps:1}),this.reset()};wf.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},wf.prototype.touchstart=function(G,J,Q){this._swipePoint||(this._tapTime&&G.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Q.length>0&&(this._swipePoint=J[0],this._swipeTouch=Q[0].identifier):this._tap.touchstart(G,J,Q))},wf.prototype.touchmove=function(G,J,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;var ce=J[0],Ze=ce.y-this._swipePoint.y;return this._swipePoint=ce,G.preventDefault(),this._active=!0,{zoomDelta:Ze/128}}}else this._tap.touchmove(G,J,Q)},wf.prototype.touchend=function(G,J,Q){this._tapTime?this._swipePoint&&Q.length===0&&this.reset():this._tap.touchend(G,J,Q)&&(this._tapTime=G.timeStamp)},wf.prototype.touchcancel=function(){this.reset()},wf.prototype.enable=function(){this._enabled=!0},wf.prototype.disable=function(){this._enabled=!1,this.reset()},wf.prototype.isEnabled=function(){return this._enabled},wf.prototype.isActive=function(){return this._active};var up=function(G,J,Q){this._el=G,this._mousePan=J,this._touchPan=Q};up.prototype.enable=function(G){this._inertiaOptions=G||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},up.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},up.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},up.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Cu=function(G,J,Q){this._pitchWithRotate=G.pitchWithRotate,this._mouseRotate=J,this._mousePitch=Q};Cu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Cu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Cu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Cu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var kp=function(G,J,Q,ce){this._el=G,this._touchZoom=J,this._touchRotate=Q,this._tapDragZoom=ce,this._rotationDisabled=!1,this._enabled=!0};kp.prototype.enable=function(G){this._touchZoom.enable(G),this._rotationDisabled||this._touchRotate.enable(G),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},kp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},kp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},kp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},kp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},kp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Pp=function(G){return G.zoom||G.drag||G.pitch||G.rotate},zf=function(G){function J(){G.apply(this,arguments)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J}(w.Event);function Th(G){return G.panDelta&&G.panDelta.mag()||G.zoomDelta||G.bearingDelta||G.pitchDelta}var Mh=function(G,J){this._map=G,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new tf(G),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),w.bindAll(["handleEvent","handleWindowEvent"],this);var Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[w.window.document,"mousemove",{capture:!0}],[w.window.document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[w.window,"blur",void 0]];for(var ce=0,Ze=this._listeners;ceMt?Math.min(2,mu):Math.max(.5,mu),lh=Math.pow(Qc,1-ic),zh=Ct.unproject(Xl.add(bl.mult(ic*lh)).mult(Ju));Ct.setLocationAtPoint(Ct.renderWorldCopies?zh.wrap():zh,Zi)}Ze._fireMoveEvents(ce)},function(ic){Ze._afterEase(ce,ic)},Q),this},J.prototype._prepareEase=function(Q,ce,Ze){Ze===void 0&&(Ze={}),this._moving=!0,ce||Ze.moving||this.fire(new w.Event("movestart",Q)),this._zooming&&!Ze.zooming&&this.fire(new w.Event("zoomstart",Q)),this._rotating&&!Ze.rotating&&this.fire(new w.Event("rotatestart",Q)),this._pitching&&!Ze.pitching&&this.fire(new w.Event("pitchstart",Q))},J.prototype._fireMoveEvents=function(Q){this.fire(new w.Event("move",Q)),this._zooming&&this.fire(new w.Event("zoom",Q)),this._rotating&&this.fire(new w.Event("rotate",Q)),this._pitching&&this.fire(new w.Event("pitch",Q))},J.prototype._afterEase=function(Q,ce){if(!this._easeId||!ce||this._easeId!==ce){delete this._easeId;var Ze=this._zooming,Ct=this._rotating,Mt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Ze&&this.fire(new w.Event("zoomend",Q)),Ct&&this.fire(new w.Event("rotateend",Q)),Mt&&this.fire(new w.Event("pitchend",Q)),this.fire(new w.Event("moveend",Q))}},J.prototype.flyTo=function(Q,ce){var Ze=this;if(!Q.essential&&w.browser.prefersReducedMotion){var Ct=w.pick(Q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ct,ce)}this.stop(),Q=w.extend({offset:[0,0],speed:1.2,curve:1.42,easing:w.ease},Q);var Mt=this.transform,yn=this.getZoom(),_r=this.getBearing(),Sn=this.getPitch(),yi=this.getPadding(),Oi="zoom"in Q?w.clamp(+Q.zoom,Mt.minZoom,Mt.maxZoom):yn,Ji="bearing"in Q?this._normalizeBearing(Q.bearing,_r):_r,Lo="pitch"in Q?+Q.pitch:Sn,Qo="padding"in Q?Q.padding:Mt.padding,Zi=Mt.zoomScale(Oi-yn),Wo=w.Point.convert(Q.offset),js=Mt.centerPoint.add(Wo),Ja=Mt.pointLocation(js),Ha=w.LngLat.convert(Q.center||Ja);this._normalizeCenter(Ha);var Xl=Mt.project(Ja),bl=Mt.project(Ha).sub(Xl),mu=Q.curve,Ru=Math.max(Mt.width,Mt.height),ic=Ru/Zi,Ju=bl.mag();if("minZoom"in Q){var Qc=w.clamp(Math.min(Q.minZoom,yn,Oi),Mt.minZoom,Mt.maxZoom),lh=Ru/Mt.zoomScale(Qc-yn);mu=Math.sqrt(lh/Ju*2)}var zh=mu*mu;function Rh(Id){var dd=(ic*ic-Ru*Ru+(Id?-1:1)*zh*zh*Ju*Ju)/(2*(Id?ic:Ru)*zh*Ju);return Math.log(Math.sqrt(dd*dd+1)-dd)}function kd(Id){return(Math.exp(Id)-Math.exp(-Id))/2}function Hc(Id){return(Math.exp(Id)+Math.exp(-Id))/2}var Sc=Rh(0),Gd=function(Id){return Hc(Sc)/Hc(Sc+mu*Id)},Od=function(Id){return Ru*((Hc(Sc)*(kd(dd=Sc+mu*Id)/Hc(dd))-kd(Sc))/zh)/Ju;var dd},Yh=(Rh(1)-Sc)/mu;if(Math.abs(Ju)<1e-6||!isFinite(Yh)){if(Math.abs(Ru-ic)<1e-6)return this.easeTo(Q,ce);var Vd=icQ.maxDuration&&(Q.duration=0),this._zooming=!0,this._rotating=_r!==Ji,this._pitching=Lo!==Sn,this._padding=!Mt.isPaddingEqual(Qo),this._prepareEase(ce,!1),this._ease(function(Id){var dd=Id*Yh,Op=1/Gd(dd);Mt.zoom=Id===1?Oi:yn+Mt.scaleZoom(Op),Ze._rotating&&(Mt.bearing=w.number(_r,Ji,Id)),Ze._pitching&&(Mt.pitch=w.number(Sn,Lo,Id)),Ze._padding&&(Mt.interpolatePadding(yi,Qo,Id),js=Mt.centerPoint.add(Wo));var ip=Id===1?Ha:Mt.unproject(Xl.add(bl.mult(Od(dd))).mult(Op));Mt.setLocationAtPoint(Mt.renderWorldCopies?ip.wrap():ip,js),Ze._fireMoveEvents(ce)},function(){return Ze._afterEase(ce)},Q),this},J.prototype.isEasing=function(){return!!this._easeFrameId},J.prototype.stop=function(){return this._stop()},J.prototype._stop=function(Q,ce){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ze=this._onEaseEnd;delete this._onEaseEnd,Ze.call(this,ce)}if(!Q){var Ct=this.handlers;Ct&&Ct.stop(!1)}return this},J.prototype._ease=function(Q,ce,Ze){Ze.animate===!1||Ze.duration===0?(Q(1),ce()):(this._easeStart=w.browser.now(),this._easeOptions=Ze,this._onEaseFrame=Q,this._onEaseEnd=ce,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},J.prototype._renderFrameCallback=function(){var Q=Math.min((w.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},J.prototype._normalizeBearing=function(Q,ce){Q=w.wrap(Q,-180,180);var Ze=Math.abs(Q-ce);return Math.abs(Q-360-ce)180?-360:Ze<-180?360:0}},J}(w.Evented),_h=function(G){G===void 0&&(G={}),this.options=G,w.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_h.prototype.getDefaultPosition=function(){return"bottom-right"},_h.prototype.onAdd=function(G){var J=this.options&&this.options.compact;return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=B.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=B.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_h.prototype.onRemove=function(){B.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_h.prototype._setElementTitle=function(G,J){var Q=this._map._getUIString("AttributionControl."+J);G.title=Q,G.setAttribute("aria-label",Q)},_h.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_h.prototype._updateEditLink=function(){var G=this._editLink;G||(G=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||w.config.ACCESS_TOKEN}];if(G){var Q=J.reduce(function(ce,Ze,Ct){return Ze.value&&(ce+=Ze.key+"="+Ze.value+(Ct=0)return!1;return!0})).join(" | ");Mt!==this._attribHTML&&(this._attribHTML=Mt,G.length?(this._innerContainer.innerHTML=Mt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_h.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ff=function(){w.bindAll(["_updateLogo"],this),w.bindAll(["_updateCompact"],this)};ff.prototype.onAdd=function(G){this._map=G,this._container=B.create("div","mapboxgl-ctrl");var J=B.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ff.prototype.onRemove=function(){B.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ff.prototype.getDefaultPosition=function(){return"bottom-left"},ff.prototype._updateLogo=function(G){G&&G.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},ff.prototype._logoRequired=function(){if(this._map.style){var G=this._map.style.sourceCaches;for(var J in G)if(G[J].getSource().mapbox_logo)return!0;return!1}},ff.prototype._updateCompact=function(){var G=this._container.children;if(G.length){var J=G[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var vp=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};vp.prototype.add=function(G){var J=++this._id;return this._queue.push({callback:G,id:J,cancelled:!1}),J},vp.prototype.remove=function(G){for(var J=this._currentlyRunning,Q=0,ce=J?this._queue.concat(J):this._queue;Qce.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ce.minPitch!=null&&ce.maxPitch!=null&&ce.minPitch>ce.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ce.minPitch!=null&&ce.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(ce.maxPitch!=null&&ce.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Ct=new Wu(ce.minZoom,ce.maxZoom,ce.minPitch,ce.maxPitch,ce.renderWorldCopies);if(G.call(this,Ct,ce),this._interactive=ce.interactive,this._maxTileCacheSize=ce.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ce.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ce.preserveDrawingBuffer,this._antialias=ce.antialias,this._trackResize=ce.trackResize,this._bearingSnap=ce.bearingSnap,this._refreshExpiredTiles=ce.refreshExpiredTiles,this._fadeDuration=ce.fadeDuration,this._crossSourceCollisions=ce.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ce.collectResourceTiming,this._renderTaskQueue=new vp,this._controls=[],this._mapId=w.uniqueId(),this._locale=w.extend({},ig,ce.locale),this._clickTolerance=ce.clickTolerance,this._requestManager=new w.RequestManager(ce.transformRequest,ce.accessToken),typeof ce.container=="string"){if(this._container=w.window.document.getElementById(ce.container),!this._container)throw new Error("Container '"+ce.container+"' not found.")}else{if(!(ce.container instanceof Sf))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ce.container}if(ce.maxBounds&&this.setMaxBounds(ce.maxBounds),w.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return Ze._update(!1)}),this.on("moveend",function(){return Ze._update(!1)}),this.on("zoom",function(){return Ze._update(!0)}),w.window!==void 0&&(w.window.addEventListener("online",this._onWindowOnline,!1),w.window.addEventListener("resize",this._onWindowResize,!1),w.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mh(this,ce),this._hash=ce.hash&&new hd(typeof ce.hash=="string"&&ce.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:ce.center,zoom:ce.zoom,bearing:ce.bearing,pitch:ce.pitch}),ce.bounds&&(this.resize(),this.fitBounds(ce.bounds,w.extend({},ce.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ce.localIdeographFontFamily,ce.style&&this.setStyle(ce.style,{localIdeographFontFamily:ce.localIdeographFontFamily}),ce.attributionControl&&this.addControl(new _h({customAttribution:ce.customAttribution})),this.addControl(new ff,ce.logoPosition),this.on("style.load",function(){Ze.transform.unmodified&&Ze.jumpTo(Ze.style.stylesheet)}),this.on("data",function(Mt){Ze._update(Mt.dataType==="style"),Ze.fire(new w.Event(Mt.dataType+"data",Mt))}),this.on("dataloading",function(Mt){Ze.fire(new w.Event(Mt.dataType+"dataloading",Mt))})}G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J;var Q={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return J.prototype._getMapId=function(){return this._mapId},J.prototype.addControl=function(ce,Ze){if(Ze===void 0&&(Ze=ce.getDefaultPosition?ce.getDefaultPosition():"top-right"),!ce||!ce.onAdd)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Ct=ce.onAdd(this);this._controls.push(ce);var Mt=this._controlPositions[Ze];return Ze.indexOf("bottom")!==-1?Mt.insertBefore(Ct,Mt.firstChild):Mt.appendChild(Ct),this},J.prototype.removeControl=function(ce){if(!ce||!ce.onRemove)return this.fire(new w.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Ze=this._controls.indexOf(ce);return Ze>-1&&this._controls.splice(Ze,1),ce.onRemove(this),this},J.prototype.hasControl=function(ce){return this._controls.indexOf(ce)>-1},J.prototype.resize=function(ce){var Ze=this._containerDimensions(),Ct=Ze[0],Mt=Ze[1];if(Ct===this.transform.width&&Mt===this.transform.height)return this;this._resizeCanvas(Ct,Mt),this.transform.resize(Ct,Mt),this.painter.resize(Ct,Mt);var yn=!this._moving;return yn&&this.fire(new w.Event("movestart",ce)).fire(new w.Event("move",ce)),this.fire(new w.Event("resize",ce)),yn&&this.fire(new w.Event("moveend",ce)),this},J.prototype.getBounds=function(){return this.transform.getBounds()},J.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},J.prototype.setMaxBounds=function(ce){return this.transform.setMaxBounds(w.LngLatBounds.convert(ce)),this._update()},J.prototype.setMinZoom=function(ce){if((ce=ce==null?-2:ce)>=-2&&ce<=this.transform.maxZoom)return this.transform.minZoom=ce,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ce,this._update(),this.getZoom()>ce&&this.setZoom(ce),this;throw new Error("maxZoom must be greater than the current minZoom")},J.prototype.getMaxZoom=function(){return this.transform.maxZoom},J.prototype.setMinPitch=function(ce){if((ce=ce==null?0:ce)<0)throw new Error("minPitch must be greater than or equal to 0");if(ce>=0&&ce<=this.transform.maxPitch)return this.transform.minPitch=ce,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(ce>=this.transform.minPitch)return this.transform.maxPitch=ce,this._update(),this.getPitch()>ce&&this.setPitch(ce),this;throw new Error("maxPitch must be greater than the current minPitch")},J.prototype.getMaxPitch=function(){return this.transform.maxPitch},J.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},J.prototype.setRenderWorldCopies=function(ce){return this.transform.renderWorldCopies=ce,this._update()},J.prototype.project=function(ce){return this.transform.locationPoint(w.LngLat.convert(ce))},J.prototype.unproject=function(ce){return this.transform.pointLocation(w.Point.convert(ce))},J.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},J.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},J.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},J.prototype._createDelegatedListener=function(ce,Ze,Ct){var Mt,yn=this;if(ce==="mouseenter"||ce==="mouseover"){var _r=!1;return{layer:Ze,listener:Ct,delegates:{mousemove:function(yi){var Oi=yn.getLayer(Ze)?yn.queryRenderedFeatures(yi.point,{layers:[Ze]}):[];Oi.length?_r||(_r=!0,Ct.call(yn,new wh(ce,yn,yi.originalEvent,{features:Oi}))):_r=!1},mouseout:function(){_r=!1}}}}if(ce==="mouseleave"||ce==="mouseout"){var Sn=!1;return{layer:Ze,listener:Ct,delegates:{mousemove:function(yi){(yn.getLayer(Ze)?yn.queryRenderedFeatures(yi.point,{layers:[Ze]}):[]).length?Sn=!0:Sn&&(Sn=!1,Ct.call(yn,new wh(ce,yn,yi.originalEvent)))},mouseout:function(yi){Sn&&(Sn=!1,Ct.call(yn,new wh(ce,yn,yi.originalEvent)))}}}}return{layer:Ze,listener:Ct,delegates:(Mt={},Mt[ce]=function(yi){var Oi=yn.getLayer(Ze)?yn.queryRenderedFeatures(yi.point,{layers:[Ze]}):[];Oi.length&&(yi.features=Oi,Ct.call(yn,yi),delete yi.features)},Mt)}},J.prototype.on=function(ce,Ze,Ct){if(Ct===void 0)return G.prototype.on.call(this,ce,Ze);var Mt=this._createDelegatedListener(ce,Ze,Ct);for(var yn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ce]=this._delegatedListeners[ce]||[],this._delegatedListeners[ce].push(Mt),Mt.delegates)this.on(yn,Mt.delegates[yn]);return this},J.prototype.once=function(ce,Ze,Ct){if(Ct===void 0)return G.prototype.once.call(this,ce,Ze);var Mt=this._createDelegatedListener(ce,Ze,Ct);for(var yn in Mt.delegates)this.once(yn,Mt.delegates[yn]);return this},J.prototype.off=function(ce,Ze,Ct){var Mt=this;return Ct===void 0?G.prototype.off.call(this,ce,Ze):(this._delegatedListeners&&this._delegatedListeners[ce]&&function(yn){for(var _r=yn[ce],Sn=0;Sn<_r.length;Sn++){var yi=_r[Sn];if(yi.layer===Ze&&yi.listener===Ct){for(var Oi in yi.delegates)Mt.off(Oi,yi.delegates[Oi]);return _r.splice(Sn,1),Mt}}}(this._delegatedListeners),this)},J.prototype.queryRenderedFeatures=function(ce,Ze){if(!this.style)return[];var Ct;if(Ze!==void 0||ce===void 0||ce instanceof w.Point||Array.isArray(ce)||(Ze=ce,ce=void 0),Ze=Ze||{},(ce=ce||[[0,0],[this.transform.width,this.transform.height]])instanceof w.Point||typeof ce[0]=="number")Ct=[w.Point.convert(ce)];else{var Mt=w.Point.convert(ce[0]),yn=w.Point.convert(ce[1]);Ct=[Mt,new w.Point(yn.x,Mt.y),yn,new w.Point(Mt.x,yn.y),Mt]}return this.style.queryRenderedFeatures(Ct,Ze,this.transform)},J.prototype.querySourceFeatures=function(ce,Ze){return this.style.querySourceFeatures(ce,Ze)},J.prototype.setStyle=function(ce,Ze){return(Ze=w.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},Ze)).diff!==!1&&Ze.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ce?(this._diffStyle(ce,Ze),this):(this._localIdeographFontFamily=Ze.localIdeographFontFamily,this._updateStyle(ce,Ze))},J.prototype._getUIString=function(ce){var Ze=this._locale[ce];if(Ze==null)throw new Error("Missing UI string '"+ce+"'");return Ze},J.prototype._updateStyle=function(ce,Ze){return this.style&&(this.style.setEventedParent(null),this.style._remove()),ce?(this.style=new Dl(this,Ze||{}),this.style.setEventedParent(this,{style:this.style}),typeof ce=="string"?this.style.loadURL(ce):this.style.loadJSON(ce),this):(delete this.style,this)},J.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Dl(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},J.prototype._diffStyle=function(ce,Ze){var Ct=this;if(typeof ce=="string"){var Mt=this._requestManager.normalizeStyleURL(ce),yn=this._requestManager.transformRequest(Mt,w.ResourceType.Style);w.getJSON(yn,function(_r,Sn){_r?Ct.fire(new w.ErrorEvent(_r)):Sn&&Ct._updateDiff(Sn,Ze)})}else typeof ce=="object"&&this._updateDiff(ce,Ze)},J.prototype._updateDiff=function(ce,Ze){try{this.style.setState(ce)&&this._update(!0)}catch(Ct){w.warnOnce("Unable to perform style diff: "+(Ct.message||Ct.error||Ct)+". Rebuilding the style from scratch."),this._updateStyle(ce,Ze)}},J.prototype.getStyle=function(){if(this.style)return this.style.serialize()},J.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():w.warnOnce("There is no style added to the map.")},J.prototype.addSource=function(ce,Ze){return this._lazyInitEmptyStyle(),this.style.addSource(ce,Ze),this._update(!0)},J.prototype.isSourceLoaded=function(ce){var Ze=this.style&&this.style.sourceCaches[ce];if(Ze!==void 0)return Ze.loaded();this.fire(new w.ErrorEvent(new Error("There is no source with ID '"+ce+"'")))},J.prototype.areTilesLoaded=function(){var ce=this.style&&this.style.sourceCaches;for(var Ze in ce){var Ct=ce[Ze]._tiles;for(var Mt in Ct){var yn=Ct[Mt];if(yn.state!=="loaded"&&yn.state!=="errored")return!1}}return!0},J.prototype.addSourceType=function(ce,Ze,Ct){return this._lazyInitEmptyStyle(),this.style.addSourceType(ce,Ze,Ct)},J.prototype.removeSource=function(ce){return this.style.removeSource(ce),this._update(!0)},J.prototype.getSource=function(ce){return this.style.getSource(ce)},J.prototype.addImage=function(ce,Ze,Ct){Ct===void 0&&(Ct={});var Mt=Ct.pixelRatio;Mt===void 0&&(Mt=1);var yn=Ct.sdf;yn===void 0&&(yn=!1);var _r=Ct.stretchX,Sn=Ct.stretchY,yi=Ct.content;if(this._lazyInitEmptyStyle(),Ze instanceof mh||Ld&&Ze instanceof Ld){var Oi=w.browser.getImageData(Ze);this.style.addImage(ce,{data:new w.RGBAImage({width:Oi.width,height:Oi.height},Oi.data),pixelRatio:Mt,stretchX:_r,stretchY:Sn,content:yi,sdf:yn,version:0})}else{if(Ze.width===void 0||Ze.height===void 0)return this.fire(new w.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var Ji=Ze;this.style.addImage(ce,{data:new w.RGBAImage({width:Ze.width,height:Ze.height},new Uint8Array(Ze.data)),pixelRatio:Mt,stretchX:_r,stretchY:Sn,content:yi,sdf:yn,version:0,userImage:Ji}),Ji.onAdd&&Ji.onAdd(this,ce)}},J.prototype.updateImage=function(ce,Ze){var Ct=this.style.getImage(ce);if(!Ct)return this.fire(new w.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var Mt=Ze instanceof mh||Ld&&Ze instanceof Ld?w.browser.getImageData(Ze):Ze,yn=Mt.width,_r=Mt.height,Sn=Mt.data;return yn===void 0||_r===void 0?this.fire(new w.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):yn!==Ct.data.width||_r!==Ct.data.height?this.fire(new w.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(Ct.data.replace(Sn,!(Ze instanceof mh||Ld&&Ze instanceof Ld)),void this.style.updateImage(ce,Ct))},J.prototype.hasImage=function(ce){return ce?!!this.style.getImage(ce):(this.fire(new w.ErrorEvent(new Error("Missing required image id"))),!1)},J.prototype.removeImage=function(ce){this.style.removeImage(ce)},J.prototype.loadImage=function(ce,Ze){w.getImage(this._requestManager.transformRequest(ce,w.ResourceType.Image),Ze)},J.prototype.listImages=function(){return this.style.listImages()},J.prototype.addLayer=function(ce,Ze){return this._lazyInitEmptyStyle(),this.style.addLayer(ce,Ze),this._update(!0)},J.prototype.moveLayer=function(ce,Ze){return this.style.moveLayer(ce,Ze),this._update(!0)},J.prototype.removeLayer=function(ce){return this.style.removeLayer(ce),this._update(!0)},J.prototype.getLayer=function(ce){return this.style.getLayer(ce)},J.prototype.setLayerZoomRange=function(ce,Ze,Ct){return this.style.setLayerZoomRange(ce,Ze,Ct),this._update(!0)},J.prototype.setFilter=function(ce,Ze,Ct){return Ct===void 0&&(Ct={}),this.style.setFilter(ce,Ze,Ct),this._update(!0)},J.prototype.getFilter=function(ce){return this.style.getFilter(ce)},J.prototype.setPaintProperty=function(ce,Ze,Ct,Mt){return Mt===void 0&&(Mt={}),this.style.setPaintProperty(ce,Ze,Ct,Mt),this._update(!0)},J.prototype.getPaintProperty=function(ce,Ze){return this.style.getPaintProperty(ce,Ze)},J.prototype.setLayoutProperty=function(ce,Ze,Ct,Mt){return Mt===void 0&&(Mt={}),this.style.setLayoutProperty(ce,Ze,Ct,Mt),this._update(!0)},J.prototype.getLayoutProperty=function(ce,Ze){return this.style.getLayoutProperty(ce,Ze)},J.prototype.setLight=function(ce,Ze){return Ze===void 0&&(Ze={}),this._lazyInitEmptyStyle(),this.style.setLight(ce,Ze),this._update(!0)},J.prototype.getLight=function(){return this.style.getLight()},J.prototype.setFeatureState=function(ce,Ze){return this.style.setFeatureState(ce,Ze),this._update()},J.prototype.removeFeatureState=function(ce,Ze){return this.style.removeFeatureState(ce,Ze),this._update()},J.prototype.getFeatureState=function(ce){return this.style.getFeatureState(ce)},J.prototype.getContainer=function(){return this._container},J.prototype.getCanvasContainer=function(){return this._canvasContainer},J.prototype.getCanvas=function(){return this._canvas},J.prototype._containerDimensions=function(){var ce=0,Ze=0;return this._container&&(ce=this._container.clientWidth||400,Ze=this._container.clientHeight||300),[ce,Ze]},J.prototype._detectMissingCSS=function(){w.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&w.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},J.prototype._setupContainer=function(){var ce=this._container;ce.classList.add("mapboxgl-map"),(this._missingCSSCanary=B.create("div","mapboxgl-canary",ce)).style.visibility="hidden",this._detectMissingCSS();var Ze=this._canvasContainer=B.create("div","mapboxgl-canvas-container",ce);this._interactive&&Ze.classList.add("mapboxgl-interactive"),this._canvas=B.create("canvas","mapboxgl-canvas",Ze),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var Ct=this._containerDimensions();this._resizeCanvas(Ct[0],Ct[1]);var Mt=this._controlContainer=B.create("div","mapboxgl-control-container",ce),yn=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(_r){yn[_r]=B.create("div","mapboxgl-ctrl-"+_r,Mt)}),this._container.addEventListener("scroll",this._onMapScroll,!1)},J.prototype._resizeCanvas=function(ce,Ze){var Ct=w.browser.devicePixelRatio||1;this._canvas.width=Ct*ce,this._canvas.height=Ct*Ze,this._canvas.style.width=ce+"px",this._canvas.style.height=Ze+"px"},J.prototype._setupPainter=function(){var ce=w.extend({},b.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),Ze=this._canvas.getContext("webgl",ce)||this._canvas.getContext("experimental-webgl",ce);Ze?(this.painter=new Ba(Ze,this.transform),w.webpSupported.testSupport(Ze)):this.fire(new w.ErrorEvent(new Error("Failed to initialize WebGL")))},J.prototype._contextLost=function(ce){ce.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new w.Event("webglcontextlost",{originalEvent:ce}))},J.prototype._contextRestored=function(ce){this._setupPainter(),this.resize(),this._update(),this.fire(new w.Event("webglcontextrestored",{originalEvent:ce}))},J.prototype._onMapScroll=function(ce){if(ce.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},J.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},J.prototype._update=function(ce){return this.style?(this._styleDirty=this._styleDirty||ce,this._sourcesDirty=!0,this.triggerRepaint(),this):this},J.prototype._requestRenderFrame=function(ce){return this._update(),this._renderTaskQueue.add(ce)},J.prototype._cancelRenderFrame=function(ce){this._renderTaskQueue.remove(ce)},J.prototype._render=function(ce){var Ze,Ct=this,Mt=0,yn=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(Ze=yn.createQueryEXT(),yn.beginQueryEXT(yn.TIME_ELAPSED_EXT,Ze),Mt=w.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ce),!this._removed){var _r=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var Sn=this.transform.zoom,yi=w.browser.now();this.style.zoomHistory.update(Sn,yi);var Oi=new w.EvaluationParameters(Sn,{now:yi,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ji=Oi.crossFadingFactor();Ji===1&&Ji===this._crossFadingFactor||(_r=!0,this._crossFadingFactor=Ji),this.style.update(Oi)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new w.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new w.Event("load"))),this.style&&(this.style.hasTransitions()||_r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var Lo=w.browser.now()-Mt;yn.endQueryEXT(yn.TIME_ELAPSED_EXT,Ze),setTimeout(function(){var Wo=yn.getQueryObjectEXT(Ze,yn.QUERY_RESULT_EXT)/1e6;yn.deleteQueryEXT(Ze),Ct.fire(new w.Event("gpu-timing-frame",{cpuTime:Lo,gpuTime:Wo}))},50)}if(this.listens("gpu-timing-layer")){var Qo=this.painter.collectGpuTimers();setTimeout(function(){var Wo=Ct.painter.queryGpuTimers(Qo);Ct.fire(new w.Event("gpu-timing-layer",{layerTimes:Wo}))},50)}var Zi=this._sourcesDirty||this._styleDirty||this._placementDirty;return Zi||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new w.Event("idle")),!this._loaded||this._fullyLoaded||Zi||(this._fullyLoaded=!0),this}},J.prototype.remove=function(){this._hash&&this._hash.remove();for(var ce=0,Ze=this._controls;ce180;){var Mt=Q.locationPoint(G);if(Mt.x>=0&&Mt.y>=0&&Mt.x<=Q.width&&Mt.y<=Q.height)break;G.lng>Q.center.lng?G.lng-=360:G.lng+=360}return G}$d.prototype.down=function(G,J){this.mouseRotate.mousedown(G,J),this.mousePitch&&this.mousePitch.mousedown(G,J),B.disableDrag()},$d.prototype.move=function(G,J){var Q=this.map,ce=this.mouseRotate.mousemoveWindow(G,J);if(ce&&ce.bearingDelta&&Q.setBearing(Q.getBearing()+ce.bearingDelta),this.mousePitch){var Ze=this.mousePitch.mousemoveWindow(G,J);Ze&&Ze.pitchDelta&&Q.setPitch(Q.getPitch()+Ze.pitchDelta)}},$d.prototype.off=function(){var G=this.element;B.removeEventListener(G,"mousedown",this.mousedown),B.removeEventListener(G,"touchstart",this.touchstart,{passive:!1}),B.removeEventListener(G,"touchmove",this.touchmove),B.removeEventListener(G,"touchend",this.touchend),B.removeEventListener(G,"touchcancel",this.reset),this.offTemp()},$d.prototype.offTemp=function(){B.enableDrag(),B.removeEventListener(w.window,"mousemove",this.mousemove),B.removeEventListener(w.window,"mouseup",this.mouseup)},$d.prototype.mousedown=function(G){this.down(w.extend({},G,{ctrlKey:!0,preventDefault:function(){return G.preventDefault()}}),B.mousePos(this.element,G)),B.addEventListener(w.window,"mousemove",this.mousemove),B.addEventListener(w.window,"mouseup",this.mouseup)},$d.prototype.mousemove=function(G){this.move(G,B.mousePos(this.element,G))},$d.prototype.mouseup=function(G){this.mouseRotate.mouseupWindow(G),this.mousePitch&&this.mousePitch.mouseupWindow(G),this.offTemp()},$d.prototype.touchstart=function(G){G.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return G.preventDefault()}},this._startPos))},$d.prototype.touchmove=function(G){G.targetTouches.length!==1?this.reset():(this._lastPos=B.touchPos(this.element,G.targetTouches)[0],this.move({preventDefault:function(){return G.preventDefault()}},this._lastPos))},$d.prototype.touchend=function(G){G.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=ce}this._isDragging&&(this._pos=Q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new w.Event("dragstart"))),this.fire(new w.Event("drag")))},J.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new w.Event("dragend")),this._state="inactive"},J.prototype._addDragHandler=function(Q){this._element.contains(Q.originalEvent.target)&&(Q.preventDefault(),this._positionDelta=Q.point.sub(this._pos).add(this._offset),this._pointerdownPos=Q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},J.prototype.setDraggable=function(Q){return this._draggable=!!Q,this._map&&(Q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},J.prototype.isDraggable=function(){return this._draggable},J.prototype.setRotation=function(Q){return this._rotation=Q||0,this._update(),this},J.prototype.getRotation=function(){return this._rotation},J.prototype.setRotationAlignment=function(Q){return this._rotationAlignment=Q||"auto",this._update(),this},J.prototype.getRotationAlignment=function(){return this._rotationAlignment},J.prototype.setPitchAlignment=function(Q){return this._pitchAlignment=Q&&Q!=="auto"?Q:this._rotationAlignment,this._update(),this},J.prototype.getPitchAlignment=function(){return this._pitchAlignment},J}(w.Evented),rt={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},pn=0,sr=!1,Ae=function(G){function J(Q){G.call(this),this.options=w.extend({},rt,Q),w.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.onAdd=function(Q){var ce;return this._map=Q,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ce=this._setupUI,le!==void 0?ce(le):w.window.navigator.permissions!==void 0?w.window.navigator.permissions.query({name:"geolocation"}).then(function(Ze){ce(le=Ze.state!=="denied")}):ce(le=!!w.window.navigator.geolocation),this._container},J.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(w.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),B.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,pn=0,sr=!1},J.prototype._isOutOfMapMaxBounds=function(Q){var ce=this._map.getMaxBounds(),Ze=Q.coords;return ce&&(Ze.longitudece.getEast()||Ze.latitudece.getNorth())},J.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},J.prototype._onSuccess=function(Q){if(this._map){if(this._isOutOfMapMaxBounds(Q))return this._setErrorState(),this.fire(new w.Event("outofmaxbounds",Q)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=Q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(Q),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(Q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new w.Event("geolocate",Q)),this._finish()}},J.prototype._updateCamera=function(Q){var ce=new w.LngLat(Q.coords.longitude,Q.coords.latitude),Ze=Q.coords.accuracy,Ct=this._map.getBearing(),Mt=w.extend({bearing:Ct},this.options.fitBoundsOptions);this._map.fitBounds(ce.toBounds(Ze),Mt,{geolocateSource:!0})},J.prototype._updateMarker=function(Q){if(Q){var ce=new w.LngLat(Q.coords.longitude,Q.coords.latitude);this._accuracyCircleMarker.setLngLat(ce).addTo(this._map),this._userLocationDotMarker.setLngLat(ce).addTo(this._map),this._accuracy=Q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},J.prototype._updateCircleRadius=function(){var Q=this._map._container.clientHeight/2,ce=this._map.unproject([0,Q]),Ze=this._map.unproject([1,Q]),Ct=ce.distanceTo(Ze),Mt=Math.ceil(2*this._accuracy/Ct);this._circleElement.style.width=Mt+"px",this._circleElement.style.height=Mt+"px"},J.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},J.prototype._onError=function(Q){if(this._map){if(this.options.trackUserLocation)if(Q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ce=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ce,this._geolocateButton.setAttribute("aria-label",ce),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Q.code===3&&sr)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new w.Event("error",Q)),this._finish()}},J.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},J.prototype._setupUI=function(Q){var ce=this;if(this._container.addEventListener("contextmenu",function(Mt){return Mt.preventDefault()}),this._geolocateButton=B.create("button","mapboxgl-ctrl-geolocate",this._container),B.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",Q===!1){w.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Ze=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Ze,this._geolocateButton.setAttribute("aria-label",Ze)}else{var Ct=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Ct,this._geolocateButton.setAttribute("aria-label",Ct)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=B.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ge(this._dotElement),this._circleElement=B.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ge({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Mt){Mt.geolocateSource||ce._watchState!=="ACTIVE_LOCK"||Mt.originalEvent&&Mt.originalEvent.type==="resize"||(ce._watchState="BACKGROUND",ce._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ce._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ce.fire(new w.Event("trackuserlocationend")))})},J.prototype.trigger=function(){if(!this._setup)return w.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new w.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":pn--,sr=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new w.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new w.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var Q;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++pn>1?(Q={maximumAge:6e5,timeout:0},sr=!0):(Q=this.options.positionOptions,sr=!1),this._geolocationWatchID=w.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,Q)}}else w.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},J.prototype._clearWatch=function(){w.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},J}(w.Evented),D={maxWidth:100,unit:"metric"},ie=function(G){this.options=w.extend({},D,G),w.bindAll(["_onMove","setUnit"],this)};function Ee(G,J,Q){var ce=Q&&Q.maxWidth||100,Ze=G._container.clientHeight/2,Ct=G.unproject([0,Ze]),Mt=G.unproject([ce,Ze]),yn=Ct.distanceTo(Mt);if(Q&&Q.unit==="imperial"){var _r=3.2808*yn;_r>5280?Ne(J,ce,_r/5280,G._getUIString("ScaleControl.Miles")):Ne(J,ce,_r,G._getUIString("ScaleControl.Feet"))}else Q&&Q.unit==="nautical"?Ne(J,ce,yn/1852,G._getUIString("ScaleControl.NauticalMiles")):yn>=1e3?Ne(J,ce,yn/1e3,G._getUIString("ScaleControl.Kilometers")):Ne(J,ce,yn,G._getUIString("ScaleControl.Meters"))}function Ne(G,J,Q,ce){var Ze,Ct,Mt,yn=(Ze=Q,(Ct=Math.pow(10,(""+Math.floor(Ze)).length-1))*(Mt=(Mt=Ze/Ct)>=10?10:Mt>=5?5:Mt>=3?3:Mt>=2?2:Mt>=1?1:function(_r){var Sn=Math.pow(10,Math.ceil(-Math.log(_r)/Math.LN10));return Math.round(_r*Sn)/Sn}(Mt)));G.style.width=J*(yn/Q)+"px",G.innerHTML=yn+" "+ce}ie.prototype.getDefaultPosition=function(){return"bottom-left"},ie.prototype._onMove=function(){Ee(this._map,this._container,this.options)},ie.prototype.onAdd=function(G){return this._map=G,this._container=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",G.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ie.prototype.onRemove=function(){B.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ie.prototype.setUnit=function(G){this.options.unit=G,Ee(this._map,this._container,this.options)};var at=function(G){this._fullscreen=!1,G&&G.container&&(G.container instanceof w.window.HTMLElement?this._container=G.container:w.warnOnce("Full screen control 'container' must be a DOM element.")),w.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in w.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in w.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in w.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in w.window.document&&(this._fullscreenchange="MSFullscreenChange")};at.prototype.onAdd=function(G){return this._map=G,this._container||(this._container=this._map.getContainer()),this._controlContainer=B.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",w.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},at.prototype.onRemove=function(){B.remove(this._controlContainer),this._map=null,w.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},at.prototype._checkFullscreenSupport=function(){return!!(w.window.document.fullscreenEnabled||w.window.document.mozFullScreenEnabled||w.window.document.msFullscreenEnabled||w.window.document.webkitFullscreenEnabled)},at.prototype._setupUI=function(){var G=this._fullscreenButton=B.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);B.create("span","mapboxgl-ctrl-icon",G).setAttribute("aria-hidden",!0),G.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),w.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},at.prototype._updateTitle=function(){var G=this._getTitle();this._fullscreenButton.setAttribute("aria-label",G),this._fullscreenButton.title=G},at.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},at.prototype._isFullscreen=function(){return this._fullscreen},at.prototype._changeIcon=function(){(w.window.document.fullscreenElement||w.window.document.mozFullScreenElement||w.window.document.webkitFullscreenElement||w.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},at.prototype._onClickFullscreen=function(){this._isFullscreen()?w.window.document.exitFullscreen?w.window.document.exitFullscreen():w.window.document.mozCancelFullScreen?w.window.document.mozCancelFullScreen():w.window.document.msExitFullscreen?w.window.document.msExitFullscreen():w.window.document.webkitCancelFullScreen&&w.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gt={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},rn=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Un=function(G){function J(Q){G.call(this),this.options=w.extend(Object.create(Gt),Q),w.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return G&&(J.__proto__=G),(J.prototype=Object.create(G&&G.prototype)).constructor=J,J.prototype.addTo=function(Q){return this._map&&this.remove(),this._map=Q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new w.Event("open")),this},J.prototype.isOpen=function(){return!!this._map},J.prototype.remove=function(){return this._content&&B.remove(this._content),this._container&&(B.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new w.Event("close")),this},J.prototype.getLngLat=function(){return this._lngLat},J.prototype.setLngLat=function(Q){return this._lngLat=w.LngLat.convert(Q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},J.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},J.prototype.getElement=function(){return this._container},J.prototype.setText=function(Q){return this.setDOMContent(w.window.document.createTextNode(Q))},J.prototype.setHTML=function(Q){var ce,Ze=w.window.document.createDocumentFragment(),Ct=w.window.document.createElement("body");for(Ct.innerHTML=Q;ce=Ct.firstChild;)Ze.appendChild(ce);return this.setDOMContent(Ze)},J.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},J.prototype.setMaxWidth=function(Q){return this.options.maxWidth=Q,this._update(),this},J.prototype.setDOMContent=function(Q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=B.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(Q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},J.prototype.addClassName=function(Q){this._container&&this._container.classList.add(Q)},J.prototype.removeClassName=function(Q){this._container&&this._container.classList.remove(Q)},J.prototype.setOffset=function(Q){return this.options.offset=Q,this._update(),this},J.prototype.toggleClassName=function(Q){if(this._container)return this._container.classList.toggle(Q)},J.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=B.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},J.prototype._onMouseUp=function(Q){this._update(Q.point)},J.prototype._onMouseMove=function(Q){this._update(Q.point)},J.prototype._onDrag=function(Q){this._update(Q.point)},J.prototype._update=function(Q){var ce=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=B.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=B.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Oi){return ce._container.classList.add(Oi)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Vo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||Q)){var Ze=this._pos=this._trackPointer&&Q?Q:this._map.project(this._lngLat),Ct=this.options.anchor,Mt=function Oi(Ji){if(Ji){if(typeof Ji=="number"){var Lo=Math.round(Math.sqrt(.5*Math.pow(Ji,2)));return{center:new w.Point(0,0),top:new w.Point(0,Ji),"top-left":new w.Point(Lo,Lo),"top-right":new w.Point(-Lo,Lo),bottom:new w.Point(0,-Ji),"bottom-left":new w.Point(Lo,-Lo),"bottom-right":new w.Point(-Lo,-Lo),left:new w.Point(Ji,0),right:new w.Point(-Ji,0)}}if(Ji instanceof w.Point||Array.isArray(Ji)){var Qo=w.Point.convert(Ji);return{center:Qo,top:Qo,"top-left":Qo,"top-right":Qo,bottom:Qo,"bottom-left":Qo,"bottom-right":Qo,left:Qo,right:Qo}}return{center:w.Point.convert(Ji.center||[0,0]),top:w.Point.convert(Ji.top||[0,0]),"top-left":w.Point.convert(Ji["top-left"]||[0,0]),"top-right":w.Point.convert(Ji["top-right"]||[0,0]),bottom:w.Point.convert(Ji.bottom||[0,0]),"bottom-left":w.Point.convert(Ji["bottom-left"]||[0,0]),"bottom-right":w.Point.convert(Ji["bottom-right"]||[0,0]),left:w.Point.convert(Ji.left||[0,0]),right:w.Point.convert(Ji.right||[0,0])}}return Oi(new w.Point(0,0))}(this.options.offset);if(!Ct){var yn,_r=this._container.offsetWidth,Sn=this._container.offsetHeight;yn=Ze.y+Mt.bottom.ythis._map.transform.height-Sn?["bottom"]:[],Ze.x<_r/2?yn.push("left"):Ze.x>this._map.transform.width-_r/2&&yn.push("right"),Ct=yn.length===0?"bottom":yn.join("-")}var yi=Ze.add(Mt[Ct]).round();B.setTransform(this._container,P[Ct]+" translate("+yi.x+"px,"+yi.y+"px)"),W(this._container,Ct,"popup")}},J.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var Q=this._container.querySelector(rn);Q&&Q.focus()}},J.prototype._onClose=function(){this.remove()},J}(w.Evented),Ir={version:w.version,supported:b,setRTLTextPlugin:w.setRTLTextPlugin,getRTLTextPluginStatus:w.getRTLTextPluginStatus,Map:Wf,NavigationControl:Xh,GeolocateControl:Ae,AttributionControl:_h,ScaleControl:ie,FullscreenControl:at,Popup:Un,Marker:ge,Style:Dl,LngLat:w.LngLat,LngLatBounds:w.LngLatBounds,Point:w.Point,MercatorCoordinate:w.MercatorCoordinate,Evented:w.Evented,config:w.config,prewarm:function(){Mi().acquire(Qt)},clearPrewarmedResources:function(){var G=Sr;G&&(G.isPreloaded()&&G.numActive()===1?(G.release(Qt),Sr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return w.config.ACCESS_TOKEN},set accessToken(G){w.config.ACCESS_TOKEN=G},get baseApiUrl(){return w.config.API_URL},set baseApiUrl(G){w.config.API_URL=G},get workerCount(){return xn.workerCount},set workerCount(G){xn.workerCount=G},get maxParallelImageRequests(){return w.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(G){w.config.MAX_PARALLEL_IMAGE_REQUESTS=G},clearStorage:function(G){w.clearTileCache(G)},workerUrl:""};return Ir}),v})},23978:function(gt,Y,_){"use strict";_.r(Y),_.d(Y,{CancellationTokenSource:function(){return yJ},Emitter:function(){return _J},KeyCode:function(){return bJ},KeyMod:function(){return xJ},MarkerSeverity:function(){return TJ},MarkerTag:function(){return AJ},Position:function(){return wJ},Range:function(){return CJ},Selection:function(){return SJ},SelectionDirection:function(){return EJ},Token:function(){return IJ},Uri:function(){return DJ},default:function(){return Dre},editor:function(){return PJ},languages:function(){return LJ}});var v={};_.r(v),_.d(v,{PixelRatio:function(){return tl},addMatchMediaChangeListener:function(){return co},getZoomFactor:function(){return fl},isAndroid:function(){return ns},isChrome:function(){return No},isElectron:function(){return Zo},isFirefox:function(){return Xi},isSafari:function(){return yr},isStandalone:function(){return Ei},isWebKit:function(){return Fi},isWebkitWebView:function(){return ui}});var R={};_.r(R),_.d(R,{CancellationTokenSource:function(){return yJ},Emitter:function(){return _J},KeyCode:function(){return bJ},KeyMod:function(){return xJ},MarkerSeverity:function(){return TJ},MarkerTag:function(){return AJ},Position:function(){return wJ},Range:function(){return CJ},Selection:function(){return SJ},SelectionDirection:function(){return EJ},Token:function(){return IJ},Uri:function(){return DJ},editor:function(){return PJ},languages:function(){return LJ}});var w={};_.r(w),_.d(w,{CancellationTokenSource:function(){return yJ},Emitter:function(){return _J},KeyCode:function(){return bJ},KeyMod:function(){return xJ},MarkerSeverity:function(){return TJ},MarkerTag:function(){return AJ},Position:function(){return wJ},Range:function(){return CJ},Selection:function(){return SJ},SelectionDirection:function(){return EJ},Token:function(){return IJ},Uri:function(){return DJ},default:function(){return Dre},editor:function(){return PJ},languages:function(){return LJ}});class b{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?fe.isErrorNoTelemetry(e)?new fe(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const k=new z;function N(o){f(o)||k.onUnexpectedError(o)}function w(o){f(o)||k.onUnexpectedExternalError(o)}function I(o){if(o instanceof Error){const{name:e,message:t}=o,n=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:ie.isErrorNoTelemetry(o)}}return o}const C="Canceled";function f(o){return o instanceof S?!0:o instanceof Error&&o.name===C&&o.message===C}class S extends Error{constructor(){super(C),this.name=this.message}}function P(){const o=new Error(C);return o.name=o.message,o}function W(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function te(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class q extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ie extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof ie)return e;const t=new ie;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class he extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,he.prototype);debugger}}function de(o){const e=this;let t=!1,n;return function(){return t||(t=!0,n=o.apply(e,arguments)),n}}var fe;(function(o){function e($i){return $i&&typeof $i=="object"&&typeof $i[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*r($i){yield $i}o.single=r;function i($i){return $i||t}o.from=i;function s($i){return!$i||$i[Symbol.iterator]().next().done===!0}o.isEmpty=s;function d($i){return $i[Symbol.iterator]().next().value}o.first=d;function x($i,is){for(const Ys of $i)if(is(Ys))return!0;return!1}o.some=x;function E($i,is){for(const Ys of $i)if(is(Ys))return Ys}o.find=E;function*O($i,is){for(const Ys of $i)is(Ys)&&(yield Ys)}o.filter=O;function*j($i,is){let Ys=0;for(const fo of $i)yield is(fo,Ys++)}o.map=j;function*oe(...$i){for(const is of $i)for(const Ys of is)yield Ys}o.concat=oe;function*Ee($i){for(const is of $i)for(const Ys of is)yield Ys}o.concatNested=Ee;function Ze($i,is,Ys){let fo=Ys;for(const lo of $i)fo=is(fo,lo);return fo}o.reduce=Ze;function ct($i,is){let Ys=0;for(const fo of $i)is(fo,Ys++)}o.forEach=ct;function*Nt($i,is,Ys=$i.length){for(is<0&&(is+=$i.length),Ys<0?Ys+=$i.length:Ys>$i.length&&(Ys=$i.length);isfo===lo){const fo=$i[Symbol.iterator](),lo=is[Symbol.iterator]();for(;;){const $s=fo.next(),ul=lo.next();if($s.done!==ul.done)return!1;if($s.done)return!0;if(!Ys($s.value,ul.value))return!1}}o.equals=xr})(fe||(fe={}));const ke=!1;let Ie=null;function Be(o){Ie=o}if(ke){const o="__is_disposable_tracked__";Be(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[o]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==He.None)try{e[o]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==He.None)try{e[o]=!0}catch(t){}}markAsSingleton(e){}})}function be(o){return Ie==null||Ie.trackDisposable(o),o}function me(o){Ie==null||Ie.markAsDisposed(o)}function ye(o,e){Ie==null||Ie.setParent(o,e)}function _e(o,e){if(Ie)for(const t of o)Ie.setParent(t,e)}function Ce(o){return Ie==null||Ie.markAsSingleton(o),o}class De extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function ge(o){return typeof o.dispose=="function"&&o.dispose.length===0}function je(o){if(fe.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new De(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function we(...o){const e=Pt(()=>je(o));return _e(o,e),e}function Pt(o){const e=be({dispose:de(()=>{me(e),o()})});return e}class dt{constructor(){this._toDispose=new Set,this._isDisposed=!1,be(this)}dispose(){this._isDisposed||(me(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{je(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return ye(e,this),this._isDisposed?dt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}dt.DISABLE_DISPOSED_WARNING=!1;class He{constructor(){this._store=new dt,be(this),ye(this._store,this)}dispose(){me(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}He.None=Object.freeze({dispose(){}});class bt{constructor(){this._isDisposed=!1,be(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&ye(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,me(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&ye(e,null),e}}class ft{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class $t{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,be(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,me(this))},this}}class vt{constructor(e){this.object=e}dispose(){}}class yn{constructor(e){this.element=e,this.next=yn.Undefined,this.prev=yn.Undefined}}yn.Undefined=new yn(void 0);class Bn{constructor(){this._first=yn.Undefined,this._last=yn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===yn.Undefined}clear(){let e=this._first;for(;e!==yn.Undefined;){const t=e.next;e.prev=yn.Undefined,e.next=yn.Undefined,e=t}this._first=yn.Undefined,this._last=yn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new yn(e);if(this._first===yn.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==yn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==yn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==yn.Undefined&&e.next!==yn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===yn.Undefined&&e.next===yn.Undefined?(this._first=yn.Undefined,this._last=yn.Undefined):e.next===yn.Undefined?(this._last=this._last.prev,this._last.next=yn.Undefined):e.prev===yn.Undefined&&(this._first=this._first.next,this._first.prev=yn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==yn.Undefined;)yield e.element,e=e.next}}var Lr=function(o,e,t,n){function r(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function d(O){try{E(n.next(O))}catch(j){s(j)}}function x(O){try{E(n.throw(O))}catch(j){s(j)}}function E(O){O.done?i(O.value):r(O.value).then(d,x)}E((n=n.apply(o,e||[])).next())})};let ii=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const gi="i-default";function no(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],s=e[i];let d=n;return typeof s=="string"?d=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(d=String(s)),d}),ii&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function To(o,e){let t=o[e];return t||(t=o["*"],t)?t:null}function _r(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function Bo(o,e,t){return Lr(this,void 0,void 0,function*(){const n=_r(o)+_r(e)+"vscode/"+_r(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function hs(o){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return no(o[e],n)}}function ve(o,e,...t){return no(e,t)}function So(o){}function ho(o){ii=o}function go(o,e){var t;return{localize:hs(e[o]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function ji(o,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!o||o.length===0)return t({localize:ve,getConfiguredDefaultLocale:()=>{var O;return(O=i.availableLanguages)===null||O===void 0?void 0:O["*"]}});const s=i.availableLanguages?To(i.availableLanguages,o):null,d=s===null||s===gi;let x=".nls";d||(x=x+"."+s);const E=O=>{Array.isArray(O)?O.localize=hs(O):O.localize=hs(O[o]),O.getConfiguredDefaultLocale=()=>{var j;return(j=i.availableLanguages)===null||j===void 0?void 0:j["*"]},t(O)};typeof i.loadBundle=="function"?i.loadBundle(o,s,(O,j)=>{O?e([o+".nls"],E):E(j)}):i.translationServiceUrl&&!d?Lr(this,void 0,void 0,function*(){var O;try{const j=yield Bo(i.translationServiceUrl,s,o);return E(j)}catch(j){if(!s.includes("-"))return console.error(j),e([o+".nls"],E);try{const oe=s.split("-")[0],Ee=yield Bo(i.translationServiceUrl,oe,o);return(O=i.availableLanguages)!==null&&O!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=oe,E(Ee)}catch(oe){return console.error(oe),e([o+".nls"],E)}}}):e([o+x],E,O=>{if(x===".nls"){console.error("Failed trying to load default language strings",O);return}console.error(`Failed to load message bundle for language ${s}. Falling back to the default language:`,O),e([o+".nls"],E)})}var No=m(34155),dn;const Ve="en";let yt=!1,Ct=!1,Wt=!1,sn=!1,Mt=!1,Tt=!1,xt=!1,Ht=!1,Vn=!1,en,fr=Ve,Kr=null,ri;const si=typeof self=="object"?self:typeof m.g=="object"?m.g:{};let uo;typeof si.vscode!="undefined"&&typeof si.vscode.process!="undefined"?uo=si.vscode.process:typeof No!="undefined"&&(uo=No);const Qo=typeof((dn=uo==null?void 0:uo.versions)===null||dn===void 0?void 0:dn.electron)=="string",_n=Qo&&(uo==null?void 0:uo.type)==="renderer";if(typeof navigator=="object"&&!_n)ri=navigator.userAgent,yt=ri.indexOf("Windows")>=0,Ct=ri.indexOf("Macintosh")>=0,Ht=(ri.indexOf("Macintosh")>=0||ri.indexOf("iPad")>=0||ri.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wt=ri.indexOf("Linux")>=0,Tt=!0,en=(ve({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ve,fr=en;else if(typeof uo=="object"){yt=uo.platform==="win32",Ct=uo.platform==="darwin",Wt=uo.platform==="linux",sn=Wt&&!!uo.env.SNAP&&!!uo.env.SNAP_REVISION,xt=Qo,Vn=!!uo.env.CI||!!uo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,en=Ve,fr=Ve;const o=uo.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];en=e.locale,fr=t||Ve,Kr=e._translationsConfigFile}catch(e){}Mt=!0}else console.error("Unable to resolve platform.");let Vr=0;Ct?Vr=1:yt?Vr=3:Wt&&(Vr=2);const qr=yt,Ui=Ct,xo=Wt,Us=Mt,zn=Tt,Kn=Tt&&typeof si.importScripts=="function",Or=Ht,mi=ri,Er=fr,ti=typeof si.postMessage=="function"&&!si.importScripts,di=(()=>{if(ti){const o=[];si.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=o.length;n{const n=++e;o.push({id:n,callback:t}),si.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),rn=Ct||Ht?2:yt?1:3;let Qn=!0,Xr=!1;function ao(){if(!Xr){Xr=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,Qn=new Uint16Array(o.buffer)[0]===512+1}return Qn}const as=!!(mi&&mi.indexOf("Chrome")>=0),Bt=!!(mi&&mi.indexOf("Firefox")>=0),pn=!!(!as&&mi&&mi.indexOf("Safari")>=0),br=!!(mi&&mi.indexOf("Edg/")>=0),Jr=!!(mi&&mi.indexOf("Android")>=0),vi=si.performance&&typeof si.performance.now=="function";class Di{constructor(e){this._highResolution=vi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Di(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?si.performance.now():Date.now()}}const co=!1,Qr=!1;var oi;(function(o){o.None=()=>He.None;function e(fo){if(Qr){const{onListenerDidAdd:lo}=fo,$s=Gn.create();let ul=0;fo.onListenerDidAdd=()=>{++ul===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),$s.print()),lo==null||lo()}}}function t(fo){return(lo,$s=null,ul)=>{let kl=!1,bu;return bu=fo(nc=>{if(!kl)return bu?bu.dispose():kl=!0,lo.call($s,nc)},null,ul),kl&&bu.dispose(),bu}}o.once=t;function n(fo,lo,$s){return E((ul,kl=null,bu)=>fo(nc=>ul.call(kl,lo(nc)),null,bu),$s)}o.map=n;function r(fo,lo,$s){return E((ul,kl=null,bu)=>fo(nc=>{lo(nc),ul.call(kl,nc)},null,bu),$s)}o.forEach=r;function i(fo,lo,$s){return E((ul,kl=null,bu)=>fo(nc=>lo(nc)&&ul.call(kl,nc),null,bu),$s)}o.filter=i;function s(fo){return fo}o.signal=s;function d(...fo){return(lo,$s=null,ul)=>we(...fo.map(kl=>kl(bu=>lo.call($s,bu),null,ul)))}o.any=d;function x(fo,lo,$s,ul){let kl=$s;return n(fo,bu=>(kl=lo(kl,bu),kl),ul)}o.reduce=x;function E(fo,lo){let $s;const ul={onFirstListenerAdd(){$s=fo(kl.fire,kl)},onLastListenerRemove(){$s==null||$s.dispose()}};lo||e(ul);const kl=new In(ul);return lo==null||lo.add(kl),kl.event}function O(fo,lo,$s=100,ul=!1,kl,bu){let nc,Sd,Nh,Cf=0;const ep={leakWarningThreshold:kl,onFirstListenerAdd(){nc=fo(wg=>{Cf++,Sd=lo(Sd,wg),ul&&!Nh&&(hp.fire(Sd),Sd=void 0),clearTimeout(Nh),Nh=setTimeout(()=>{const w0=Sd;Sd=void 0,Nh=void 0,(!ul||Cf>1)&&hp.fire(w0),Cf=0},$s)})},onLastListenerRemove(){nc.dispose()}};bu||e(ep);const hp=new In(ep);return bu==null||bu.add(hp),hp.event}o.debounce=O;function j(fo,lo=(ul,kl)=>ul===kl,$s){let ul=!0,kl;return i(fo,bu=>{const nc=ul||!lo(bu,kl);return ul=!1,kl=bu,nc},$s)}o.latch=j;function oe(fo,lo,$s){return[o.filter(fo,lo,$s),o.filter(fo,ul=>!lo(ul),$s)]}o.split=oe;function Ee(fo,lo=!1,$s=[]){let ul=$s.slice(),kl=fo(Sd=>{ul?ul.push(Sd):nc.fire(Sd)});const bu=()=>{ul==null||ul.forEach(Sd=>nc.fire(Sd)),ul=null},nc=new In({onFirstListenerAdd(){kl||(kl=fo(Sd=>nc.fire(Sd)))},onFirstListenerDidAdd(){ul&&(lo?setTimeout(bu):bu())},onLastListenerRemove(){kl&&kl.dispose(),kl=null}});return nc.event}o.buffer=Ee;class Ze{constructor(lo){this.event=lo,this.disposables=new dt}map(lo){return new Ze(n(this.event,lo,this.disposables))}forEach(lo){return new Ze(r(this.event,lo,this.disposables))}filter(lo){return new Ze(i(this.event,lo,this.disposables))}reduce(lo,$s){return new Ze(x(this.event,lo,$s,this.disposables))}latch(){return new Ze(j(this.event,void 0,this.disposables))}debounce(lo,$s=100,ul=!1,kl){return new Ze(O(this.event,lo,$s,ul,kl,this.disposables))}on(lo,$s,ul){return this.event(lo,$s,ul)}once(lo,$s,ul){return t(this.event)(lo,$s,ul)}dispose(){this.disposables.dispose()}}function ct(fo){return new Ze(fo)}o.chain=ct;function Nt(fo,lo,$s=ul=>ul){const ul=(...Sd)=>nc.fire($s(...Sd)),kl=()=>fo.on(lo,ul),bu=()=>fo.removeListener(lo,ul),nc=new In({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromNodeEventEmitter=Nt;function Sn(fo,lo,$s=ul=>ul){const ul=(...Sd)=>nc.fire($s(...Sd)),kl=()=>fo.addEventListener(lo,ul),bu=()=>fo.removeEventListener(lo,ul),nc=new In({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromDOMEventEmitter=Sn;function Dn(fo){return new Promise(lo=>t(fo)(lo))}o.toPromise=Dn;function xr(fo,lo){return lo(void 0),fo($s=>lo($s))}o.runAndSubscribe=xr;function $i(fo,lo){let $s=null;function ul(bu){$s==null||$s.dispose(),$s=new dt,lo(bu,$s)}ul(void 0);const kl=fo(bu=>ul(bu));return Pt(()=>{kl.dispose(),$s==null||$s.dispose()})}o.runAndSubscribeWithStore=$i;class is{constructor(lo,$s){this.obs=lo,this._counter=0,this._hasChanged=!1;const ul={onFirstListenerAdd:()=>{lo.addObserver(this)},onLastListenerRemove:()=>{lo.removeObserver(this)}};$s||e(ul),this.emitter=new In(ul),$s&&$s.add(this.emitter)}beginUpdate(lo){this._counter++}handleChange(lo,$s){this._hasChanged=!0}endUpdate(lo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Ys(fo,lo){return new is(fo,lo).emitter.event}o.fromObservable=Ys})(oi||(oi={}));class Zi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Zi._idPool++}`}start(e){this._stopWatch=new Di(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Zi._idPool=0;let Ar=-1;class tn{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Ar;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class Gn{constructor(e){this.value=e}static create(){var e;return new Gn((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const B=new b;function V(s){g(s)||B.onUnexpectedError(s)}function O(s){g(s)||B.onUnexpectedExternalError(s)}function L(s){if(s instanceof Error){const{name:e,message:t}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:fe.isErrorNoTelemetry(s)}}return s}const S="Canceled";function g(s){return s instanceof T?!0:s instanceof Error&&s.name===S&&s.message===S}class T extends Error{constructor(){super(S),this.name=this.message}}function k(){const s=new Error(S);return s.name=s.message,s}function K(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function he(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class ae extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class fe extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof fe)return e;const t=new fe;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class _e extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,_e.prototype);debugger}}function be(s){const e=this;let t=!1,n;return function(){return t||(t=!0,n=s.apply(e,arguments)),n}}var xe;(function(s){function e(lo){return lo&&typeof lo=="object"&&typeof lo[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function n(){return t}s.empty=n;function*r(lo){yield lo}s.single=r;function i(lo){return lo||t}s.from=i;function a(lo){return!lo||lo[Symbol.iterator]().next().done===!0}s.isEmpty=a;function p(lo){return lo[Symbol.iterator]().next().value}s.first=p;function C(lo,Ts){for(const fa of lo)if(Ts(fa))return!0;return!1}s.some=C;function I(lo,Ts){for(const fa of lo)if(Ts(fa))return fa}s.find=I;function*U(lo,Ts){for(const fa of lo)Ts(fa)&&(yield fa)}s.filter=U;function*X(lo,Ts){let fa=0;for(const To of lo)yield Ts(To,fa++)}s.map=X;function*pe(...lo){for(const Ts of lo)for(const fa of Ts)yield fa}s.concat=pe;function*Be(lo){for(const Ts of lo)for(const fa of Ts)yield fa}s.concatNested=Be;function it(lo,Ts,fa){let To=fa;for(const So of lo)To=Ts(To,So);return To}s.reduce=it;function It(lo,Ts){let fa=0;for(const To of lo)Ts(To,fa++)}s.forEach=It;function*sn(lo,Ts,fa=lo.length){for(Ts<0&&(Ts+=lo.length),fa<0?fa+=lo.length:fa>lo.length&&(fa=lo.length);TsTo===So){const To=lo[Symbol.iterator](),So=Ts[Symbol.iterator]();for(;;){const na=To.next(),Tl=So.next();if(na.done!==Tl.done)return!1;if(na.done)return!0;if(!fa(na.value,Tl.value))return!1}}s.equals=ei})(xe||(xe={}));const Xe=!1;let We=null;function dt(s){We=s}if(Xe){const s="__is_disposable_tracked__";dt(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[s]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==ot.None)try{e[s]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==ot.None)try{e[s]=!0}catch(t){}}markAsSingleton(e){}})}function Me(s){return We==null||We.trackDisposable(s),s}function Se(s){We==null||We.markAsDisposed(s)}function ze(s,e){We==null||We.setParent(s,e)}function De(s,e){if(We)for(const t of s)We.setParent(t,e)}function ke(s){return We==null||We.markAsSingleton(s),s}class $e extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function Te(s){return typeof s.dispose=="function"&&s.dispose.length===0}function tt(s){if(xe.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new $e(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function Oe(...s){const e=Xt(()=>tt(s));return De(s,e),e}function Xt(s){const e=Me({dispose:be(()=>{Se(e),s()})});return e}class Ft{constructor(){this._toDispose=new Set,this._isDisposed=!1,Me(this)}dispose(){this._isDisposed||(Se(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{tt(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return ze(e,this),this._isDisposed?Ft.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}Ft.DISABLE_DISPOSED_WARNING=!1;class ot{constructor(){this._store=new Ft,Me(this),ze(this._store,this)}dispose(){Se(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ot.None=Object.freeze({dispose(){}});class xt{constructor(){this._isDisposed=!1,Me(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&ze(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Se(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&ze(e,null),e}}class ut{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class $t{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,Me(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Se(this))},this}}class _t{constructor(e){this.object=e}dispose(){}}class bn{constructor(e){this.element=e,this.next=bn.Undefined,this.prev=bn.Undefined}}bn.Undefined=new bn(void 0);class Wn{constructor(){this._first=bn.Undefined,this._last=bn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===bn.Undefined}clear(){let e=this._first;for(;e!==bn.Undefined;){const t=e.next;e.prev=bn.Undefined,e.next=bn.Undefined,e=t}this._first=bn.Undefined,this._last=bn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new bn(e);if(this._first===bn.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==bn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bn.Undefined&&e.next!==bn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bn.Undefined&&e.next===bn.Undefined?(this._first=bn.Undefined,this._last=bn.Undefined):e.next===bn.Undefined?(this._last=this._last.prev,this._last.next=bn.Undefined):e.prev===bn.Undefined&&(this._first=this._first.next,this._first.prev=bn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bn.Undefined;)yield e.element,e=e.next}}var $r=function(s,e,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function p(U){try{I(n.next(U))}catch(X){a(X)}}function C(U){try{I(n.throw(U))}catch(X){a(X)}}function I(U){U.done?i(U.value):r(U.value).then(p,C)}I((n=n.apply(s,e||[])).next())})};let wi=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const oo="i-default";function Mo(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],a=e[i];let p=n;return typeof a=="string"?p=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(p=String(a)),p}),wi&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function Ti(s,e){let t=s[e];return t||(t=s["*"],t)?t:null}function Hr(s){return s.charAt(s.length-1)==="/"?s:s+"/"}function Ho(s,e,t){return $r(this,void 0,void 0,function*(){const n=Hr(s)+Hr(e)+"vscode/"+Hr(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function Ss(s){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return Mo(s[e],n)}}function Pe(s,e,...t){return Mo(e,t)}function qo(s){}function Ki(s){wi=s}function Do(s,e){var t;return{localize:Ss(e[s]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function ai(s,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!s||s.length===0)return t({localize:Pe,getConfiguredDefaultLocale:()=>{var U;return(U=i.availableLanguages)===null||U===void 0?void 0:U["*"]}});const a=i.availableLanguages?Ti(i.availableLanguages,s):null,p=a===null||a===oo;let C=".nls";p||(C=C+"."+a);const I=U=>{Array.isArray(U)?U.localize=Ss(U):U.localize=Ss(U[s]),U.getConfiguredDefaultLocale=()=>{var X;return(X=i.availableLanguages)===null||X===void 0?void 0:X["*"]},t(U)};typeof i.loadBundle=="function"?i.loadBundle(s,a,(U,X)=>{U?e([s+".nls"],I):I(X)}):i.translationServiceUrl&&!p?$r(this,void 0,void 0,function*(){var U;try{const X=yield Ho(i.translationServiceUrl,a,s);return I(X)}catch(X){if(!a.includes("-"))return console.error(X),e([s+".nls"],I);try{const pe=a.split("-")[0],Be=yield Ho(i.translationServiceUrl,pe,s);return(U=i.availableLanguages)!==null&&U!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=pe,I(Be)}catch(pe){return console.error(pe),e([s+".nls"],I)}}}):e([s+C],I,U=>{if(C===".nls"){console.error("Failed trying to load default language strings",U);return}console.error(`Failed to load message bundle for language ${a}. Falling back to the default language:`,U),e([s+".nls"],I)})}var $o=_(34155),Mn;const nt="en";let Dt=!1,Kt=!1,mn=!1,kn=!1,an=!1,tn=!1,kt=!1,en=!1,Vn=!1,on,Dr=nt,oi=null,Ii;const jr=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let eo;typeof jr.vscode!="undefined"&&typeof jr.vscode.process!="undefined"?eo=jr.vscode.process:typeof $o!="undefined"&&(eo=$o);const Uo=typeof((Mn=eo==null?void 0:eo.versions)===null||Mn===void 0?void 0:Mn.electron)=="string",Fn=Uo&&(eo==null?void 0:eo.type)==="renderer";if(typeof navigator=="object"&&!Fn)Ii=navigator.userAgent,Dt=Ii.indexOf("Windows")>=0,Kt=Ii.indexOf("Macintosh")>=0,en=(Ii.indexOf("Macintosh")>=0||Ii.indexOf("iPad")>=0||Ii.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,mn=Ii.indexOf("Linux")>=0,tn=!0,on=(Pe({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||nt,Dr=on;else if(typeof eo=="object"){Dt=eo.platform==="win32",Kt=eo.platform==="darwin",mn=eo.platform==="linux",kn=mn&&!!eo.env.SNAP&&!!eo.env.SNAP_REVISION,kt=Uo,Vn=!!eo.env.CI||!!eo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,on=nt,Dr=nt;const s=eo.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];on=e.locale,Dr=t||nt,oi=e._translationsConfigFile}catch(e){}an=!0}else console.error("Unable to resolve platform.");let Qr=0;Kt?Qr=1:Dt?Qr=3:mn&&(Qr=2);const ci=Dt,ji=Kt,cr=mn,Qn=an,Vt=tn,Yt=tn&&typeof jr.importScripts=="function",En=en,er=Ii,Tr=Dr,Nr=typeof jr.postMessage=="function"&&!jr.importScripts,Zn=(()=>{if(Nr){const s=[];jr.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=s.length;n{const n=++e;s.push({id:n,callback:t}),jr.postMessage({vscodeScheduleAsyncWork:n},"*")}}return s=>setTimeout(s)})(),Ut=Kt||en?2:Dt?1:3;let $n=!0,xr=!1;function Br(){if(!xr){xr=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,$n=new Uint16Array(s.buffer)[0]===512+1}return $n}const _o=!!(er&&er.indexOf("Chrome")>=0),Qt=!!(er&&er.indexOf("Firefox")>=0),xn=!!(!_o&&er&&er.indexOf("Safari")>=0),Sr=!!(er&&er.indexOf("Edg/")>=0),qr=!!(er&&er.indexOf("Android")>=0),Mi=jr.performance&&typeof jr.performance.now=="function";class zi{constructor(e){this._highResolution=Mi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new zi(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?jr.performance.now():Date.now()}}const Yi=!1,Si=!1;var ni;(function(s){s.None=()=>ot.None;function e(To){if(Si){const{onListenerDidAdd:So}=To,na=nr.create();let Tl=0;To.onListenerDidAdd=()=>{++Tl===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),na.print()),So==null||So()}}}function t(To){return(So,na=null,Tl)=>{let tu=!1,ju;return ju=To(mc=>{if(!tu)return ju?ju.dispose():tu=!0,So.call(na,mc)},null,Tl),tu&&ju.dispose(),ju}}s.once=t;function n(To,So,na){return I((Tl,tu=null,ju)=>To(mc=>Tl.call(tu,So(mc)),null,ju),na)}s.map=n;function r(To,So,na){return I((Tl,tu=null,ju)=>To(mc=>{So(mc),Tl.call(tu,mc)},null,ju),na)}s.forEach=r;function i(To,So,na){return I((Tl,tu=null,ju)=>To(mc=>So(mc)&&Tl.call(tu,mc),null,ju),na)}s.filter=i;function a(To){return To}s.signal=a;function p(...To){return(So,na=null,Tl)=>Oe(...To.map(tu=>tu(ju=>So.call(na,ju),null,Tl)))}s.any=p;function C(To,So,na,Tl){let tu=na;return n(To,ju=>(tu=So(tu,ju),tu),Tl)}s.reduce=C;function I(To,So){let na;const Tl={onFirstListenerAdd(){na=To(tu.fire,tu)},onLastListenerRemove(){na==null||na.dispose()}};So||e(Tl);const tu=new rr(Tl);return So==null||So.add(tu),tu.event}function U(To,So,na=100,Tl=!1,tu,ju){let mc,id,bf,pp=0;const Zp={leakWarningThreshold:tu,onFirstListenerAdd(){mc=To(im=>{pp++,id=So(id,im),Tl&&!bf&&(ng.fire(id),id=void 0),clearTimeout(bf),bf=setTimeout(()=>{const iv=id;id=void 0,bf=void 0,(!Tl||pp>1)&&ng.fire(iv),pp=0},na)})},onLastListenerRemove(){mc.dispose()}};ju||e(Zp);const ng=new rr(Zp);return ju==null||ju.add(ng),ng.event}s.debounce=U;function X(To,So=(Tl,tu)=>Tl===tu,na){let Tl=!0,tu;return i(To,ju=>{const mc=Tl||!So(ju,tu);return Tl=!1,tu=ju,mc},na)}s.latch=X;function pe(To,So,na){return[s.filter(To,So,na),s.filter(To,Tl=>!So(Tl),na)]}s.split=pe;function Be(To,So=!1,na=[]){let Tl=na.slice(),tu=To(id=>{Tl?Tl.push(id):mc.fire(id)});const ju=()=>{Tl==null||Tl.forEach(id=>mc.fire(id)),Tl=null},mc=new rr({onFirstListenerAdd(){tu||(tu=To(id=>mc.fire(id)))},onFirstListenerDidAdd(){Tl&&(So?setTimeout(ju):ju())},onLastListenerRemove(){tu&&tu.dispose(),tu=null}});return mc.event}s.buffer=Be;class it{constructor(So){this.event=So,this.disposables=new Ft}map(So){return new it(n(this.event,So,this.disposables))}forEach(So){return new it(r(this.event,So,this.disposables))}filter(So){return new it(i(this.event,So,this.disposables))}reduce(So,na){return new it(C(this.event,So,na,this.disposables))}latch(){return new it(X(this.event,void 0,this.disposables))}debounce(So,na=100,Tl=!1,tu){return new it(U(this.event,So,na,Tl,tu,this.disposables))}on(So,na,Tl){return this.event(So,na,Tl)}once(So,na,Tl){return t(this.event)(So,na,Tl)}dispose(){this.disposables.dispose()}}function It(To){return new it(To)}s.chain=It;function sn(To,So,na=Tl=>Tl){const Tl=(...id)=>mc.fire(na(...id)),tu=()=>To.on(So,Tl),ju=()=>To.removeListener(So,Tl),mc=new rr({onFirstListenerAdd:tu,onLastListenerRemove:ju});return mc.event}s.fromNodeEventEmitter=sn;function qn(To,So,na=Tl=>Tl){const Tl=(...id)=>mc.fire(na(...id)),tu=()=>To.addEventListener(So,Tl),ju=()=>To.removeEventListener(So,Tl),mc=new rr({onFirstListenerAdd:tu,onLastListenerRemove:ju});return mc.event}s.fromDOMEventEmitter=qn;function or(To){return new Promise(So=>t(To)(So))}s.toPromise=or;function ei(To,So){return So(void 0),To(na=>So(na))}s.runAndSubscribe=ei;function lo(To,So){let na=null;function Tl(ju){na==null||na.dispose(),na=new Ft,So(ju,na)}Tl(void 0);const tu=To(ju=>Tl(ju));return Xt(()=>{tu.dispose(),na==null||na.dispose()})}s.runAndSubscribeWithStore=lo;class Ts{constructor(So,na){this.obs=So,this._counter=0,this._hasChanged=!1;const Tl={onFirstListenerAdd:()=>{So.addObserver(this)},onLastListenerRemove:()=>{So.removeObserver(this)}};na||e(Tl),this.emitter=new rr(Tl),na&&na.add(this.emitter)}beginUpdate(So){this._counter++}handleChange(So,na){this._hasChanged=!0}endUpdate(So){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function fa(To,So){return new Ts(To,So).emitter.event}s.fromObservable=fa})(ni||(ni={}));class qi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${qi._idPool++}`}start(e){this._stopWatch=new zi(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}qi._idPool=0;let Vr=-1;class ii{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Vr;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class nr{constructor(e){this.value=e}static create(){var e;return new nr((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class Ei{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new $t}invoke(e){this.callback.call(this.callbackThis,e)}}class In{constructor(e){var t,n;this._disposed=!1,this._options=e,this._leakageMon=Ar>0?new tn(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Zi(this._options._profName):void 0,this._deliveryQueue=(n=this._options)===null||n===void 0?void 0:n.deliveryQueue}dispose(){var e,t,n,r;if(!this._disposed){if(this._disposed=!0,this._listeners){if(co){const i=Array.from(this._listeners);queueMicrotask(()=>{var s;for(const d of i)d.subscription.isset()&&(d.subscription.unset(),(s=d.stack)===null||s===void 0||s.print())})}this._listeners.clear()}(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||n===void 0||n.call(t),(r=this._leakageMon)===null||r===void 0||r.dispose()}}get event(){return this._event||(this._event=(e,t,n)=>{var r,i,s;this._listeners||(this._listeners=new Bn);const d=this._listeners.isEmpty();d&&(!((r=this._options)===null||r===void 0)&&r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let x,E;this._leakageMon&&this._listeners.size>=30&&(E=Gn.create(),x=this._leakageMon.check(E,this._listeners.size+1)),co&&(E=E!=null?E:Gn.create());const O=new Ei(e,t,E),j=this._listeners.push(O);d&&(!((i=this._options)===null||i===void 0)&&i.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((s=this._options)===null||s===void 0)&&s.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const oe=O.subscription.set(()=>{x==null||x(),this._disposed||(j(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof dt?n.add(oe):Array.isArray(n)&&n.push(oe),oe}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new nr);for(const r of this._listeners)this._deliveryQueue.push(this,r,e);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(n=this._perfMon)===null||n===void 0||n.stop()}}}class Li{constructor(){this._queue=new Bn}get size(){return this._queue.size}push(e,t,n){this._queue.push(new wi(e,t,n))}clear(e){const t=new Bn;for(const n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){N(t)}}}}class nr extends Li{clear(e){this._queue.clear()}}class wi{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}class Mi extends In{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Bn,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class Fr extends Mi{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class qn{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(i=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>t.call(n,i)):t.call(n,i)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class ms{constructor(){this.listening=!1,this.inputEvent=oi.None,this.inputEventListener=He.None,this.emitter=new In({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}class ya{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ya.INSTANCE=new ya;class ha extends He{constructor(){super(),this._onDidChange=this._register(new In),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class Ws extends He{constructor(){super(),this._onDidChange=this._register(new In),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new ha);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class Ua{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=Ce(new Ws)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function Ao(o,e){typeof o=="string"&&(o=window.matchMedia(o)),o.addEventListener("change",e)}const dl=new Ua;function $r(){return ya.INSTANCE.getZoomFactor()}const er=navigator.userAgent,Tr=er.indexOf("Firefox")>=0,pr=er.indexOf("AppleWebKit")>=0,ci=er.indexOf("Chrome")>=0,Eo=!ci&&er.indexOf("Safari")>=0,mo=!ci&&!Eo&&pr,Ts=er.indexOf("Electron/")>=0,xs=er.indexOf("Android")>=0;let Sr=!1;if(window.matchMedia){const o=window.matchMedia("(display-mode: standalone)");Sr=o.matches,Ao(o,({matches:e})=>{Sr=e})}function ui(){return Sr}const Xt={clipboard:{writeText:Us||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Us||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>Us||ui()?0:navigator.keyboard||Eo?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class gn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const En=new gn,tt=new gn,at=new gn,gt=new Array(230),Ne={},lt=[],St=Object.create(null),ln=Object.create(null),jn=[],Cr=[];for(let o=0;o<=193;o++)jn[o]=-1;for(let o=0;o<=127;o++)Cr[o]=-1;(function(){const o="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",o,o],[0,1,1,"Hyper",0,o,0,o,o,o],[0,1,2,"Super",0,o,0,o,o,o],[0,1,3,"Fn",0,o,0,o,o,o],[0,1,4,"FnLock",0,o,0,o,o,o],[0,1,5,"Suspend",0,o,0,o,o,o],[0,1,6,"Resume",0,o,0,o,o,o],[0,1,7,"Turbo",0,o,0,o,o,o],[0,1,8,"Sleep",0,o,0,"VK_SLEEP",o,o],[0,1,9,"WakeUp",0,o,0,o,o,o],[31,0,10,"KeyA",31,"A",65,"VK_A",o,o],[32,0,11,"KeyB",32,"B",66,"VK_B",o,o],[33,0,12,"KeyC",33,"C",67,"VK_C",o,o],[34,0,13,"KeyD",34,"D",68,"VK_D",o,o],[35,0,14,"KeyE",35,"E",69,"VK_E",o,o],[36,0,15,"KeyF",36,"F",70,"VK_F",o,o],[37,0,16,"KeyG",37,"G",71,"VK_G",o,o],[38,0,17,"KeyH",38,"H",72,"VK_H",o,o],[39,0,18,"KeyI",39,"I",73,"VK_I",o,o],[40,0,19,"KeyJ",40,"J",74,"VK_J",o,o],[41,0,20,"KeyK",41,"K",75,"VK_K",o,o],[42,0,21,"KeyL",42,"L",76,"VK_L",o,o],[43,0,22,"KeyM",43,"M",77,"VK_M",o,o],[44,0,23,"KeyN",44,"N",78,"VK_N",o,o],[45,0,24,"KeyO",45,"O",79,"VK_O",o,o],[46,0,25,"KeyP",46,"P",80,"VK_P",o,o],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",o,o],[48,0,27,"KeyR",48,"R",82,"VK_R",o,o],[49,0,28,"KeyS",49,"S",83,"VK_S",o,o],[50,0,29,"KeyT",50,"T",84,"VK_T",o,o],[51,0,30,"KeyU",51,"U",85,"VK_U",o,o],[52,0,31,"KeyV",52,"V",86,"VK_V",o,o],[53,0,32,"KeyW",53,"W",87,"VK_W",o,o],[54,0,33,"KeyX",54,"X",88,"VK_X",o,o],[55,0,34,"KeyY",55,"Y",89,"VK_Y",o,o],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",o,o],[22,0,36,"Digit1",22,"1",49,"VK_1",o,o],[23,0,37,"Digit2",23,"2",50,"VK_2",o,o],[24,0,38,"Digit3",24,"3",51,"VK_3",o,o],[25,0,39,"Digit4",25,"4",52,"VK_4",o,o],[26,0,40,"Digit5",26,"5",53,"VK_5",o,o],[27,0,41,"Digit6",27,"6",54,"VK_6",o,o],[28,0,42,"Digit7",28,"7",55,"VK_7",o,o],[29,0,43,"Digit8",29,"8",56,"VK_8",o,o],[30,0,44,"Digit9",30,"9",57,"VK_9",o,o],[21,0,45,"Digit0",21,"0",48,"VK_0",o,o],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",o,o],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",o,o],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",o,o],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",o,o],[10,1,50,"Space",10,"Space",32,"VK_SPACE",o,o],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,o,0,o,o,o],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",o,o],[59,1,64,"F1",59,"F1",112,"VK_F1",o,o],[60,1,65,"F2",60,"F2",113,"VK_F2",o,o],[61,1,66,"F3",61,"F3",114,"VK_F3",o,o],[62,1,67,"F4",62,"F4",115,"VK_F4",o,o],[63,1,68,"F5",63,"F5",116,"VK_F5",o,o],[64,1,69,"F6",64,"F6",117,"VK_F6",o,o],[65,1,70,"F7",65,"F7",118,"VK_F7",o,o],[66,1,71,"F8",66,"F8",119,"VK_F8",o,o],[67,1,72,"F9",67,"F9",120,"VK_F9",o,o],[68,1,73,"F10",68,"F10",121,"VK_F10",o,o],[69,1,74,"F11",69,"F11",122,"VK_F11",o,o],[70,1,75,"F12",70,"F12",123,"VK_F12",o,o],[0,1,76,"PrintScreen",0,o,0,o,o,o],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",o,o],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",o,o],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",o,o],[14,1,80,"Home",14,"Home",36,"VK_HOME",o,o],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",o,o],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",o,o],[13,1,83,"End",13,"End",35,"VK_END",o,o],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",o,o],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",o],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",o],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",o],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",o],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",o,o],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",o,o],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",o,o],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",o,o],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",o,o],[3,1,94,"NumpadEnter",3,o,0,o,o,o],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",o,o],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",o,o],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",o,o],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",o,o],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",o,o],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",o,o],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",o,o],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",o,o],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",o,o],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",o,o],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",o,o],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",o,o],[58,1,107,"ContextMenu",58,"ContextMenu",93,o,o,o],[0,1,108,"Power",0,o,0,o,o,o],[0,1,109,"NumpadEqual",0,o,0,o,o,o],[71,1,110,"F13",71,"F13",124,"VK_F13",o,o],[72,1,111,"F14",72,"F14",125,"VK_F14",o,o],[73,1,112,"F15",73,"F15",126,"VK_F15",o,o],[74,1,113,"F16",74,"F16",127,"VK_F16",o,o],[75,1,114,"F17",75,"F17",128,"VK_F17",o,o],[76,1,115,"F18",76,"F18",129,"VK_F18",o,o],[77,1,116,"F19",77,"F19",130,"VK_F19",o,o],[0,1,117,"F20",0,o,0,"VK_F20",o,o],[0,1,118,"F21",0,o,0,"VK_F21",o,o],[0,1,119,"F22",0,o,0,"VK_F22",o,o],[0,1,120,"F23",0,o,0,"VK_F23",o,o],[0,1,121,"F24",0,o,0,"VK_F24",o,o],[0,1,122,"Open",0,o,0,o,o,o],[0,1,123,"Help",0,o,0,o,o,o],[0,1,124,"Select",0,o,0,o,o,o],[0,1,125,"Again",0,o,0,o,o,o],[0,1,126,"Undo",0,o,0,o,o,o],[0,1,127,"Cut",0,o,0,o,o,o],[0,1,128,"Copy",0,o,0,o,o,o],[0,1,129,"Paste",0,o,0,o,o,o],[0,1,130,"Find",0,o,0,o,o,o],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",o,o],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",o,o],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",o,o],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",o,o],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",o,o],[0,1,136,"KanaMode",0,o,0,o,o,o],[0,0,137,"IntlYen",0,o,0,o,o,o],[0,1,138,"Convert",0,o,0,o,o,o],[0,1,139,"NonConvert",0,o,0,o,o,o],[0,1,140,"Lang1",0,o,0,o,o,o],[0,1,141,"Lang2",0,o,0,o,o,o],[0,1,142,"Lang3",0,o,0,o,o,o],[0,1,143,"Lang4",0,o,0,o,o,o],[0,1,144,"Lang5",0,o,0,o,o,o],[0,1,145,"Abort",0,o,0,o,o,o],[0,1,146,"Props",0,o,0,o,o,o],[0,1,147,"NumpadParenLeft",0,o,0,o,o,o],[0,1,148,"NumpadParenRight",0,o,0,o,o,o],[0,1,149,"NumpadBackspace",0,o,0,o,o,o],[0,1,150,"NumpadMemoryStore",0,o,0,o,o,o],[0,1,151,"NumpadMemoryRecall",0,o,0,o,o,o],[0,1,152,"NumpadMemoryClear",0,o,0,o,o,o],[0,1,153,"NumpadMemoryAdd",0,o,0,o,o,o],[0,1,154,"NumpadMemorySubtract",0,o,0,o,o,o],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",o,o],[0,1,156,"NumpadClearEntry",0,o,0,o,o,o],[5,1,0,o,5,"Ctrl",17,"VK_CONTROL",o,o],[4,1,0,o,4,"Shift",16,"VK_SHIFT",o,o],[6,1,0,o,6,"Alt",18,"VK_MENU",o,o],[57,1,0,o,57,"Meta",0,"VK_COMMAND",o,o],[5,1,157,"ControlLeft",5,o,0,"VK_LCONTROL",o,o],[4,1,158,"ShiftLeft",4,o,0,"VK_LSHIFT",o,o],[6,1,159,"AltLeft",6,o,0,"VK_LMENU",o,o],[57,1,160,"MetaLeft",57,o,0,"VK_LWIN",o,o],[5,1,161,"ControlRight",5,o,0,"VK_RCONTROL",o,o],[4,1,162,"ShiftRight",4,o,0,"VK_RSHIFT",o,o],[6,1,163,"AltRight",6,o,0,"VK_RMENU",o,o],[57,1,164,"MetaRight",57,o,0,"VK_RWIN",o,o],[0,1,165,"BrightnessUp",0,o,0,o,o,o],[0,1,166,"BrightnessDown",0,o,0,o,o,o],[0,1,167,"MediaPlay",0,o,0,o,o,o],[0,1,168,"MediaRecord",0,o,0,o,o,o],[0,1,169,"MediaFastForward",0,o,0,o,o,o],[0,1,170,"MediaRewind",0,o,0,o,o,o],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",o,o],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",o,o],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",o,o],[0,1,174,"Eject",0,o,0,o,o,o],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",o,o],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",o,o],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",o,o],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",o,o],[0,1,179,"LaunchApp1",0,o,0,"VK_MEDIA_LAUNCH_APP1",o,o],[0,1,180,"SelectTask",0,o,0,o,o,o],[0,1,181,"LaunchScreenSaver",0,o,0,o,o,o],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",o,o],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",o,o],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",o,o],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",o,o],[0,1,186,"BrowserStop",0,o,0,"VK_BROWSER_STOP",o,o],[0,1,187,"BrowserRefresh",0,o,0,"VK_BROWSER_REFRESH",o,o],[0,1,188,"BrowserFavorites",0,o,0,"VK_BROWSER_FAVORITES",o,o],[0,1,189,"ZoomToggle",0,o,0,o,o,o],[0,1,190,"MailReply",0,o,0,o,o,o],[0,1,191,"MailForward",0,o,0,o,o,o],[0,1,192,"MailSend",0,o,0,o,o,o],[109,1,0,o,109,"KeyInComposition",229,o,o,o],[111,1,0,o,111,"ABNT_C2",194,"VK_ABNT_C2",o,o],[91,1,0,o,91,"OEM_8",223,"VK_OEM_8",o,o],[0,1,0,o,0,o,0,"VK_KANA",o,o],[0,1,0,o,0,o,0,"VK_HANGUL",o,o],[0,1,0,o,0,o,0,"VK_JUNJA",o,o],[0,1,0,o,0,o,0,"VK_FINAL",o,o],[0,1,0,o,0,o,0,"VK_HANJA",o,o],[0,1,0,o,0,o,0,"VK_KANJI",o,o],[0,1,0,o,0,o,0,"VK_CONVERT",o,o],[0,1,0,o,0,o,0,"VK_NONCONVERT",o,o],[0,1,0,o,0,o,0,"VK_ACCEPT",o,o],[0,1,0,o,0,o,0,"VK_MODECHANGE",o,o],[0,1,0,o,0,o,0,"VK_SELECT",o,o],[0,1,0,o,0,o,0,"VK_PRINT",o,o],[0,1,0,o,0,o,0,"VK_EXECUTE",o,o],[0,1,0,o,0,o,0,"VK_SNAPSHOT",o,o],[0,1,0,o,0,o,0,"VK_HELP",o,o],[0,1,0,o,0,o,0,"VK_APPS",o,o],[0,1,0,o,0,o,0,"VK_PROCESSKEY",o,o],[0,1,0,o,0,o,0,"VK_PACKET",o,o],[0,1,0,o,0,o,0,"VK_DBE_SBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_DBE_DBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_ATTN",o,o],[0,1,0,o,0,o,0,"VK_CRSEL",o,o],[0,1,0,o,0,o,0,"VK_EXSEL",o,o],[0,1,0,o,0,o,0,"VK_EREOF",o,o],[0,1,0,o,0,o,0,"VK_PLAY",o,o],[0,1,0,o,0,o,0,"VK_ZOOM",o,o],[0,1,0,o,0,o,0,"VK_NONAME",o,o],[0,1,0,o,0,o,0,"VK_PA1",o,o],[0,1,0,o,0,o,0,"VK_OEM_CLEAR",o,o]],t=[],n=[];for(const r of e){const[i,s,d,x,E,O,j,oe,Ee,Ze]=r;if(n[d]||(n[d]=!0,lt[d]=x,St[x]=d,ln[x.toLowerCase()]=d,s&&(jn[d]=E,E!==0&&E!==3&&E!==5&&E!==4&&E!==6&&E!==57&&(Cr[E]=d))),!t[E]){if(t[E]=!0,!O)throw new Error(`String representation missing for key code ${E} around scan code ${x}`);En.define(E,O),tt.define(E,Ee||O),at.define(E,Ze||Ee||O)}j&&(gt[j]=E),oe&&(Ne[oe]=E)}Cr[3]=46})();var ki;(function(o){function e(d){return En.keyCodeToStr(d)}o.toString=e;function t(d){return En.strToKeyCode(d)}o.fromString=t;function n(d){return tt.keyCodeToStr(d)}o.toUserSettingsUS=n;function r(d){return at.keyCodeToStr(d)}o.toUserSettingsGeneral=r;function i(d){return tt.strToKeyCode(d)||at.strToKeyCode(d)}o.fromUserSettings=i;function s(d){if(d>=93&&d<=108)return null;switch(d){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return En.keyCodeToStr(d)}o.toElectronAccelerator=s})(ki||(ki={}));function Vi(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}function Ki(o,e){if(o===0)return null;const t=(o&65535)>>>0,n=(o&4294901760)>>>16;return n!==0?new Bs([fs(t,e),fs(n,e)]):new Bs([fs(t,e)])}function fs(o,e){const t=!!(o&2048),n=!!(o&256),r=e===2?n:t,i=!!(o&1024),s=!!(o&512),d=e===2?t:n,x=o&255;return new Ns(r,i,s,d,x)}class Ns{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new Bs([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class Bs{constructor(e){if(e.length===0)throw W("parts");this.parts=e}}class _a{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.scanCode=i}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}class oo{constructor(e,t,n,r,i,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=s}}class Ds{}function oa(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return ki.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(Tr){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(Ui&&e===224)return 57}else if(pr){if(e===91)return 57;if(Ui&&e===93)return 57;if(!Ui&&e===92)return 57}return gt[e]||0}const va=Ui?256:2048,Bl=512,Fa=1024,ml=Ui?2048:256;class la{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=oa(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=va),this.altKey&&(t|=Bl),this.shiftKey&&(t|=Fa),this.metaKey&&(t|=ml),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Ns(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let Nl=!1,vs=null;function Hi(o){if(!o.parent||o.parent===o)return null;try{const e=o.location,t=o.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return Nl=!0,null}catch(e){return Nl=!0,null}return o.parent}class to{static getSameOriginWindowChain(){if(!vs){vs=[];let e=window,t;do t=Hi(e),t?vs.push({window:e,iframeElement:e.frameElement||null}):vs.push({window:e,iframeElement:null}),e=t;while(e)}return vs.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0;const i=this.getSameOriginWindowChain();for(const s of i){if(n+=s.window.scrollY,r+=s.window.scrollX,s.window===t||!s.iframeElement)break;const d=s.iframeElement.getBoundingClientRect();n+=d.top,r+=d.left}return{top:n,left:r}}}class sa{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=to.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class Cs{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){const r=e,i=e;if(typeof r.wheelDeltaY!="undefined")this.deltaY=r.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS!="undefined"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(e.type==="wheel"){const s=e;s.deltaMode===s.DOM_DELTA_LINE?Tr&&!Ui?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")Eo&&qr?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS!="undefined"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const s=e;s.deltaMode===s.DOM_DELTA_LINE?Tr&&!Ui?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}function Ka(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e1?t-1:0),r=1;r/gm),Ic=Wn(/^data-[\-\w.\u00B7-\uFFFF]/),Uc=Wn(/^aria-[\-\w]+$/),zd=Wn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),th=Wn(/^(?:\w+script|data):/i),Xd=Wn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function Mu(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e0&&arguments[0]!==void 0?arguments[0]:Fc(),e=function(yc){return vd(yc)};if(e.version="2.3.1",e.removed=[],!o||!o.document||o.document.nodeType!==9)return e.isSupported=!1,e;var t=o.document,n=o.document,r=o.DocumentFragment,i=o.HTMLTemplateElement,s=o.Node,d=o.Element,x=o.NodeFilter,E=o.NamedNodeMap,O=E===void 0?o.NamedNodeMap||o.MozNamedAttrMap:E,j=o.Text,oe=o.Comment,Ee=o.DOMParser,Ze=o.trustedTypes,ct=d.prototype,Nt=Jl(ct,"cloneNode"),Sn=Jl(ct,"nextSibling"),Dn=Jl(ct,"childNodes"),xr=Jl(ct,"parentNode");if(typeof i=="function"){var $i=n.createElement("template");$i.content&&$i.content.ownerDocument&&(n=$i.content.ownerDocument)}var is=hd(Ze,t),Ys=is&&pM?is.createHTML(""):"",fo=n,lo=fo.implementation,$s=fo.createNodeIterator,ul=fo.createDocumentFragment,kl=fo.getElementsByTagName,bu=t.importNode,nc={};try{nc=Hl(n).documentMode?n.documentMode:{}}catch(Ig){}var Sd={};e.isSupported=typeof xr=="function"&&lo&&typeof lo.createHTMLDocument!="undefined"&&nc!==9;var Nh=Fu,Cf=lc,ep=Ic,hp=Uc,wg=th,w0=Xd,S0=zd,wf=null,hf=el({},[].concat(Mu(vu),Mu(au),Mu(Cn),Mu(ls),Mu(xa))),L0=null,jy=el({},[].concat(Mu(Il),Mu(El),Mu(vl),Mu(fu))),G_=null,Kw=null,bT=!0,Xw=!0,pS=!1,mg=!1,s3=!1,UN=!1,HN=!1,a3=!1,fM=!1,WB=!0,pM=!1,jB=!0,Lc=!0,Gu=!1,ec={},Hs=null,wa=el({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Yl=null,Al=el({},["audio","video","img","source","image","track"]),Rc=null,md=el({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sp="http://www.w3.org/1998/Math/MathML",Tf="http://www.w3.org/2000/svg",xg="http://www.w3.org/1999/xhtml",vg=xg,g0=!1,Om=null,bp=n.createElement("form"),Qv=function(yc){Om&&Om===yc||((!yc||(typeof yc=="undefined"?"undefined":sd(yc))!=="object")&&(yc={}),yc=Hl(yc),wf="ALLOWED_TAGS"in yc?el({},yc.ALLOWED_TAGS):hf,L0="ALLOWED_ATTR"in yc?el({},yc.ALLOWED_ATTR):jy,Rc="ADD_URI_SAFE_ATTR"in yc?el(Hl(md),yc.ADD_URI_SAFE_ATTR):md,Yl="ADD_DATA_URI_TAGS"in yc?el(Hl(Al),yc.ADD_DATA_URI_TAGS):Al,Hs="FORBID_CONTENTS"in yc?el({},yc.FORBID_CONTENTS):wa,G_="FORBID_TAGS"in yc?el({},yc.FORBID_TAGS):{},Kw="FORBID_ATTR"in yc?el({},yc.FORBID_ATTR):{},ec="USE_PROFILES"in yc?yc.USE_PROFILES:!1,bT=yc.ALLOW_ARIA_ATTR!==!1,Xw=yc.ALLOW_DATA_ATTR!==!1,pS=yc.ALLOW_UNKNOWN_PROTOCOLS||!1,mg=yc.SAFE_FOR_TEMPLATES||!1,s3=yc.WHOLE_DOCUMENT||!1,a3=yc.RETURN_DOM||!1,fM=yc.RETURN_DOM_FRAGMENT||!1,WB=yc.RETURN_DOM_IMPORT!==!1,pM=yc.RETURN_TRUSTED_TYPE||!1,HN=yc.FORCE_BODY||!1,jB=yc.SANITIZE_DOM!==!1,Lc=yc.KEEP_CONTENT!==!1,Gu=yc.IN_PLACE||!1,S0=yc.ALLOWED_URI_REGEXP||S0,vg=yc.NAMESPACE||xg,mg&&(Xw=!1),fM&&(a3=!0),ec&&(wf=el({},[].concat(Mu(xa))),L0=[],ec.html===!0&&(el(wf,vu),el(L0,Il)),ec.svg===!0&&(el(wf,au),el(L0,El),el(L0,fu)),ec.svgFilters===!0&&(el(wf,Cn),el(L0,El),el(L0,fu)),ec.mathMl===!0&&(el(wf,ls),el(L0,vl),el(L0,fu))),yc.ADD_TAGS&&(wf===hf&&(wf=Hl(wf)),el(wf,yc.ADD_TAGS)),yc.ADD_ATTR&&(L0===jy&&(L0=Hl(L0)),el(L0,yc.ADD_ATTR)),yc.ADD_URI_SAFE_ATTR&&el(Rc,yc.ADD_URI_SAFE_ATTR),yc.FORBID_CONTENTS&&(Hs===wa&&(Hs=Hl(Hs)),el(Hs,yc.FORBID_CONTENTS)),Lc&&(wf["#text"]=!0),s3&&el(wf,["html","head","body"]),wf.table&&(el(wf,["tbody"]),delete G_.tbody),ds&&ds(yc),Om=yc)},pv=el({},["mi","mo","mn","ms","mtext"]),Xx=el({},["foreignobject","desc","title","annotation-xml"]),sv=el({},au);el(sv,Cn),el(sv,Eu);var Vy=el({},ls);el(Vy,Ks);var XL=function(yc){var mf=xr(yc);(!mf||!mf.tagName)&&(mf={namespaceURI:xg,tagName:"template"});var rg=pa(yc.tagName),av=pa(mf.tagName);if(yc.namespaceURI===Tf)return mf.namespaceURI===xg?rg==="svg":mf.namespaceURI===sp?rg==="svg"&&(av==="annotation-xml"||pv[av]):!!sv[rg];if(yc.namespaceURI===sp)return mf.namespaceURI===xg?rg==="math":mf.namespaceURI===Tf?rg==="math"&&Xx[av]:!!Vy[rg];if(yc.namespaceURI===xg){if(mf.namespaceURI===Tf&&!Xx[av]||mf.namespaceURI===sp&&!pv[av])return!1;var K_=el({},["title","style","font","a","script"]);return!Vy[rg]&&(K_[rg]||!sv[rg])}return!1},sx=function(yc){us(e.removed,{element:yc});try{yc.parentNode.removeChild(yc)}catch(mf){try{yc.outerHTML=Ys}catch(rg){yc.remove()}}},gS=function(yc,mf){try{us(e.removed,{attribute:mf.getAttributeNode(yc),from:mf})}catch(rg){us(e.removed,{attribute:null,from:mf})}if(mf.removeAttribute(yc),yc==="is"&&!L0[yc])if(a3||fM)try{sx(mf)}catch(rg){}else try{mf.setAttribute(yc,"")}catch(rg){}},xT=function(yc){var mf=void 0,rg=void 0;if(HN)yc=""+yc;else{var av=$a(yc,/^[\r\n\t ]+/);rg=av&&av[0]}var K_=is?is.createHTML(yc):yc;if(vg===xg)try{mf=new Ee().parseFromString(K_,"text/html")}catch(Y_){}if(!mf||!mf.documentElement){mf=lo.createDocument(vg,"template",null);try{mf.documentElement.innerHTML=g0?"":K_}catch(Y_){}}var X_=mf.body||mf.documentElement;return yc&&rg&&X_.insertBefore(n.createTextNode(rg),X_.childNodes[0]||null),vg===xg?kl.call(mf,s3?"html":"body")[0]:s3?mf.documentElement:X_},YL=function(yc){return $s.call(yc.ownerDocument||yc,yc,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT,null,!1)},l3=function(yc){return yc instanceof j||yc instanceof oe?!1:typeof yc.nodeName!="string"||typeof yc.textContent!="string"||typeof yc.removeChild!="function"||!(yc.attributes instanceof O)||typeof yc.removeAttribute!="function"||typeof yc.setAttribute!="function"||typeof yc.namespaceURI!="string"||typeof yc.insertBefore!="function"},qL=function(yc){return(typeof s=="undefined"?"undefined":sd(s))==="object"?yc instanceof s:yc&&(typeof yc=="undefined"?"undefined":sd(yc))==="object"&&typeof yc.nodeType=="number"&&typeof yc.nodeName=="string"},HC=function(yc,mf,rg){Sd[yc]&&so(Sd[yc],function(av){av.call(e,mf,rg,Om)})},VB=function(yc){var mf=void 0;if(HC("beforeSanitizeElements",yc,null),l3(yc)||$a(yc.nodeName,/[\u0080-\uFFFF]/))return sx(yc),!0;var rg=pa(yc.nodeName);if(HC("uponSanitizeElement",yc,{tagName:rg,allowedTags:wf}),!qL(yc.firstElementChild)&&(!qL(yc.content)||!qL(yc.content.firstElementChild))&&Za(/<[/\w]/g,yc.innerHTML)&&Za(/<[/\w]/g,yc.textContent)||rg==="select"&&Za(/