diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29b..00000000 diff --git a/1014.483df344.async.js b/1014.483df344.async.js deleted file mode 100644 index cdbfd22d..00000000 --- a/1014.483df344.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1014],{86504:function(ke,fe,o){"use strict";o.d(fe,{Z:function(){return q}});var j=o(28991),b=o(67294),P={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"},re=P,he=o(27029),ge=function(Q,R){return b.createElement(he.Z,(0,j.Z)((0,j.Z)({},Q),{},{ref:R,icon:re}))};ge.displayName="FileOutlined";var q=b.forwardRef(ge)},64752:function(){},44943:function(){},9676:function(ke,fe,o){"use strict";o.d(fe,{Z:function(){return m}});var j=o(96156),b=o(22122),P=o(67294),re=o(94184),he=o.n(re),ge=o(50132),q=o(65223),se=o(85061),Q=o(28481),R=o(98423),D=o(53124),_=function(c,g){var C={};for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&g.indexOf(p)<0&&(C[p]=c[p]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,p=Object.getOwnPropertySymbols(c);O0&&(O=ie().map(function($){return P.createElement(x,{prefixCls:U,key:$.value.toString(),disabled:"disabled"in $?$.disabled:l.disabled,value:$.value,checked:te.indexOf($.value)!==-1,onChange:$.onChange,className:"".concat(A,"-item"),style:$.style},$.label)}));var K={toggleOption:E,value:te,disabled:l.disabled,name:l.name,registerValue:xe,cancelValue:me},ne=he()(A,(0,j.Z)({},"".concat(A,"-rtl"),H==="rtl"),v);return P.createElement("div",(0,b.Z)({className:ne,style:a},e,{ref:C}),P.createElement(J.Provider,{value:K},O))},T=P.forwardRef(I),F=P.memo(T),L=function(c,g){var C={};for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&g.indexOf(p)<0&&(C[p]=c[p]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,p=Object.getOwnPropertySymbols(c);O0&&(Z=xe.map(function(S){return typeof S=="string"||typeof S=="number"?P.createElement(d,{key:S.toString(),prefixCls:r,disabled:A,value:S,checked:B===S},S):P.createElement(d,{key:"radio-group-value-options-".concat(S.value),prefixCls:r,disabled:S.disabled||A,value:S.value,checked:B===S.value,style:S.style},S.label)}));var W=K||G,w=ge()(y,"".concat(y,"-").concat(U),(ue={},(0,j.Z)(ue,"".concat(y,"-").concat(W),W),(0,j.Z)(ue,"".concat(y,"-rtl"),f==="rtl"),ue),me);return P.createElement("div",(0,b.Z)({},(0,c.Z)(v),{className:w,style:ne,onMouseEnter:n,onMouseLeave:s,id:$,ref:a}),Z)};return P.createElement(D,{value:{onChange:Y,value:B,disabled:v.disabled,name:v.name,optionType:v.optionType}},ve())}),C=P.memo(g),p=function(v,a){var i={};for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&a.indexOf(l)<0&&(i[l]=v[l]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,l=Object.getOwnPropertySymbols(v);f0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=E.length,e=U.length;if(Math.abs(A-e)!==1)return{add:!1,key:null};function K(ne,$){var n=new Map;ne.forEach(function(r){n.set(r,!0)});var s=$.filter(function(r){return!n.has(r)});return s.length===1?s[0]:null}return A ").concat(U);return U}var Y=D.forwardRef(function(E,U){var A=E.prefixCls,e=E.data,K=E.selectable,ne=E.checkable,$=E.expandedKeys,n=E.selectedKeys,s=E.checkedKeys,r=E.loadedKeys,y=E.loadingKeys,Z=E.halfCheckedKeys,W=E.keyEntities,w=E.disabled,S=E.dragging,V=E.dragOverNodeKey,ee=E.dropPosition,N=E.motion,oe=E.height,ae=E.itemHeight,z=E.virtual,de=E.focusable,le=E.activeItem,Ce=E.focused,Ee=E.tabIndex,pe=E.onKeyDown,Pe=E.onFocus,Ne=E.onBlur,De=E.onActiveChange,be=E.onListChangeStart,Oe=E.onListChangeEnd,Me=(0,u.Z)(E,v),Ze=D.useRef(null),Se=D.useRef(null);D.useImperativeHandle(U,function(){return{scrollTo:function(Te){Ze.current.scrollTo(Te)},getIndentWidth:function(){return Se.current.offsetWidth}}});var $e=D.useState($),He=(0,x.Z)($e,2),_e=He[0],Xe=He[1],Ye=D.useState(e),je=(0,x.Z)(Ye,2),Le=je[0],Ge=je[1],Qe=D.useState(e),Ve=(0,x.Z)(Qe,2),Je=Ve[0],Fe=Ve[1],qe=D.useState([]),Re=(0,x.Z)(qe,2),it=Re[0],et=Re[1],dt=D.useState(null),at=(0,x.Z)(dt,2),st=at[0],tt=at[1],rt=D.useRef(e);rt.current=e;function nt(){var Ke=rt.current;Ge(Ke),Fe(Ke),et([]),tt(null),Oe()}D.useEffect(function(){Xe($);var Ke=k(_e,$);if(Ke.key!==null)if(Ke.add){var Te=Le.findIndex(function(Ue){var We=Ue.key;return We===Ke.key}),Ie=X(M(Le,e,Ke.key),z,oe,ae),Be=Le.slice();Be.splice(Te+1,0,H),Fe(Be),et(Ie),tt("show")}else{var Ae=e.findIndex(function(Ue){var We=Ue.key;return We===Ke.key}),we=X(M(e,Le,Ke.key),z,oe,ae),ze=e.slice();ze.splice(Ae+1,0,H),Fe(ze),et(we),tt("hide")}else Le!==e&&(Ge(e),Fe(e))},[$,e]),D.useEffect(function(){S||nt()},[S]);var lt=N?Je:e,ot={expandedKeys:$,selectedKeys:n,loadedKeys:r,loadingKeys:y,checkedKeys:s,halfCheckedKeys:Z,dragOverNodeKey:V,dropPosition:ee,keyEntities:W};return D.createElement(D.Fragment,null,Ce&&le&&D.createElement("span",{style:a,"aria-live":"assertive"},te(le)),D.createElement("div",null,D.createElement("input",{style:a,disabled:de===!1||w,tabIndex:de!==!1?Ee:null,onKeyDown:pe,onFocus:Pe,onBlur:Ne,value:"",onChange:i,"aria-label":"for screen reader"})),D.createElement("div",{className:"".concat(A,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},D.createElement("div",{className:"".concat(A,"-indent")},D.createElement("div",{ref:Se,className:"".concat(A,"-indent-unit")}))),D.createElement(m.Z,(0,j.Z)({},Me,{data:lt,itemKey:B,height:oe,fullHeight:!1,virtual:z,itemHeight:ae,prefixCls:"".concat(A,"-list"),ref:Ze,onVisibleChange:function(Te,Ie){var Be=new Set(Te),Ae=Ie.filter(function(we){return!Be.has(we)});Ae.some(function(we){return B(we)===l})&&nt()}}),function(Ke){var Te=Ke.pos,Ie=(0,j.Z)({},Ke.data),Be=Ke.title,Ae=Ke.key,we=Ke.isStart,ze=Ke.isEnd,Ue=(0,d.km)(Ae,Te);delete Ie.key,delete Ie.children;var We=(0,d.H8)(Ue,ot);return D.createElement(t,(0,j.Z)({},Ie,We,{title:Be,active:!!le&&Ae===le.key,pos:Te,data:Ke.data,isStart:we,isEnd:ze,motion:N,motionNodes:Ae===l?it:null,motionType:st,onMotionStart:be,onMotionEnd:nt,treeNodeRequiredProps:ot,onMouseMove:function(){De(null)}}))}))});Y.displayName="NodeList";var ve=Y,ye=o(17341);function ue(E){var U=E.dropPosition,A=E.dropLevelOffset,e=E.indent,K={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(U){case-1:K.top=0,K.left=-A*e;break;case 1:K.bottom=0,K.left=-A*e;break;case 0:K.bottom=0,K.left=e;break}return D.createElement("div",{style:K})}var ce=10,ie=function(E){(0,Q.Z)(A,E);var U=(0,R.Z)(A);function A(){var e;(0,ge.Z)(this,A);for(var K=arguments.length,ne=new Array(K),$=0;$2&&arguments[2]!==void 0?arguments[2]:!1,Z=e.state,W=Z.dragChildrenKeys,w=Z.dropPosition,S=Z.dropTargetKey,V=Z.dropTargetPos,ee=Z.dropAllowed;if(!!ee){var N=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),S!==null){var oe=(0,re.Z)((0,re.Z)({},(0,d.H8)(S,e.getTreeNodeRequiredProps())),{},{active:((r=e.getActiveItem())===null||r===void 0?void 0:r.key)===S,data:e.state.keyEntities[S].node}),ae=W.indexOf(S)!==-1;(0,J.ZP)(!ae,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var z=(0,h.yx)(V),de={event:n,node:(0,d.F)(oe),dragNode:e.dragNode?(0,d.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(W),dropToGap:w!==0,dropPosition:w+Number(z[z.length-1])};y||N==null||N(de),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==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(n,s){var r=e.state,y=r.expandedKeys,Z=r.flattenNodes,W=s.expanded,w=s.key,S=s.isLeaf;if(!(S||n.shiftKey||n.metaKey||n.ctrlKey)){var V=Z.filter(function(N){return N.key===w})[0],ee=(0,d.F)((0,re.Z)((0,re.Z)({},(0,d.H8)(w,e.getTreeNodeRequiredProps())),{},{data:V.data}));e.setExpandedKeys(W?(0,h._5)(y,w):(0,h.L0)(y,w)),e.onNodeExpand(n,ee)}},e.onNodeClick=function(n,s){var r=e.props,y=r.onClick,Z=r.expandAction;Z==="click"&&e.triggerExpandActionExpand(n,s),y==null||y(n,s)},e.onNodeDoubleClick=function(n,s){var r=e.props,y=r.onDoubleClick,Z=r.expandAction;Z==="doubleClick"&&e.triggerExpandActionExpand(n,s),y==null||y(n,s)},e.onNodeSelect=function(n,s){var r=e.state.selectedKeys,y=e.state,Z=y.keyEntities,W=y.fieldNames,w=e.props,S=w.onSelect,V=w.multiple,ee=s.selected,N=s[W.key],oe=!ee;oe?V?r=(0,h.L0)(r,N):r=[N]:r=(0,h._5)(r,N);var ae=r.map(function(z){var de=Z[z];return de?de.node:null}).filter(function(z){return z});e.setUncontrolledState({selectedKeys:r}),S==null||S(r,{event:"select",selected:oe,node:s,selectedNodes:ae,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,s,r){var y=e.state,Z=y.keyEntities,W=y.checkedKeys,w=y.halfCheckedKeys,S=e.props,V=S.checkStrictly,ee=S.onCheck,N=s.key,oe,ae={event:"check",node:s,checked:r,nativeEvent:n.nativeEvent};if(V){var z=r?(0,h.L0)(W,N):(0,h._5)(W,N),de=(0,h._5)(w,N);oe={checked:z,halfChecked:de},ae.checkedNodes=z.map(function(Ne){return Z[Ne]}).filter(function(Ne){return Ne}).map(function(Ne){return Ne.node}),e.setUncontrolledState({checkedKeys:z})}else{var le=(0,ye.S)([].concat((0,he.Z)(W),[N]),!0,Z),Ce=le.checkedKeys,Ee=le.halfCheckedKeys;if(!r){var pe=new Set(Ce);pe.delete(N);var Pe=(0,ye.S)(Array.from(pe),{checked:!1,halfCheckedKeys:Ee},Z);Ce=Pe.checkedKeys,Ee=Pe.halfCheckedKeys}oe=Ce,ae.checkedNodes=[],ae.checkedNodesPositions=[],ae.halfCheckedKeys=Ee,Ce.forEach(function(Ne){var De=Z[Ne];if(!!De){var be=De.node,Oe=De.pos;ae.checkedNodes.push(be),ae.checkedNodesPositions.push({node:be,pos:Oe})}}),e.setUncontrolledState({checkedKeys:Ce},!1,{halfCheckedKeys:Ee})}ee==null||ee(oe,ae)},e.onNodeLoad=function(n){var s=n.key,r=new Promise(function(y,Z){e.setState(function(W){var w=W.loadedKeys,S=w===void 0?[]:w,V=W.loadingKeys,ee=V===void 0?[]:V,N=e.props,oe=N.loadData,ae=N.onLoad;if(!oe||S.indexOf(s)!==-1||ee.indexOf(s)!==-1)return null;var z=oe(n);return z.then(function(){var de=e.state.loadedKeys,le=(0,h.L0)(de,s);ae==null||ae(le,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:le}),e.setState(function(Ce){return{loadingKeys:(0,h._5)(Ce.loadingKeys,s)}}),y()}).catch(function(de){if(e.setState(function(Ce){return{loadingKeys:(0,h._5)(Ce.loadingKeys,s)}}),e.loadingRetryTimes[s]=(e.loadingRetryTimes[s]||0)+1,e.loadingRetryTimes[s]>=ce){var le=e.state.loadedKeys;(0,J.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,h.L0)(le,s)}),y()}Z(de)}),{loadingKeys:(0,h.L0)(ee,s)}})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,s){var r=e.props.onMouseEnter;r==null||r({event:n,node:s})},e.onNodeMouseLeave=function(n,s){var r=e.props.onMouseLeave;r==null||r({event:n,node:s})},e.onNodeContextMenu=function(n,s){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:s}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var s=arguments.length,r=new Array(s),y=0;y1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var y=!1,Z=!0,W={};Object.keys(n).forEach(function(w){if(w in e.props){Z=!1;return}y=!0,W[w]=n[w]}),y&&(!s||Z)&&e.setState((0,re.Z)((0,re.Z)({},W),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,q.Z)(A,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var K=this.props.activeKey;K!==void 0&&K!==this.state.activeKey&&(this.setState({activeKey:K}),K!==null&&this.scrollTo({key:K}))}},{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 K,ne=this.state,$=ne.focused,n=ne.flattenNodes,s=ne.keyEntities,r=ne.draggingNodeKey,y=ne.activeKey,Z=ne.dropLevelOffset,W=ne.dropContainerKey,w=ne.dropTargetKey,S=ne.dropPosition,V=ne.dragOverNodeKey,ee=ne.indent,N=this.props,oe=N.prefixCls,ae=N.className,z=N.style,de=N.showLine,le=N.focusable,Ce=N.tabIndex,Ee=Ce===void 0?0:Ce,pe=N.selectable,Pe=N.showIcon,Ne=N.icon,De=N.switcherIcon,be=N.draggable,Oe=N.checkable,Me=N.checkStrictly,Ze=N.disabled,Se=N.motion,$e=N.loadData,He=N.filterTreeNode,_e=N.height,Xe=N.itemHeight,Ye=N.virtual,je=N.titleRender,Le=N.dropIndicatorRender,Ge=N.onContextMenu,Qe=N.onScroll,Ve=N.direction,Je=N.rootClassName,Fe=N.rootStyle,qe=(0,I.Z)(this.props,{aria:!0,data:!0}),Re;return be&&((0,P.Z)(be)==="object"?Re=be:typeof be=="function"?Re={nodeDraggable:be}:Re={}),D.createElement(L.k.Provider,{value:{prefixCls:oe,selectable:pe,showIcon:Pe,icon:Ne,switcherIcon:De,draggable:Re,draggingNodeKey:r,checkable:Oe,checkStrictly:Me,disabled:Ze,keyEntities:s,dropLevelOffset:Z,dropContainerKey:W,dropTargetKey:w,dropPosition:S,dragOverNodeKey:V,indent:ee,direction:Ve,dropIndicatorRender:Le,loadData:$e,filterTreeNode:He,titleRender:je,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}},D.createElement("div",{role:"tree",className:F()(oe,ae,Je,(K={},(0,b.Z)(K,"".concat(oe,"-show-line"),de),(0,b.Z)(K,"".concat(oe,"-focused"),$),(0,b.Z)(K,"".concat(oe,"-active-focused"),y!==null),K)),style:Fe},D.createElement(ve,(0,j.Z)({ref:this.listRef,prefixCls:oe,style:z,data:n,disabled:Ze,selectable:pe,checkable:!!Oe,motion:Se,dragging:r!==null,height:_e,itemHeight:Xe,virtual:Ye,focusable:le,focused:$,tabIndex:Ee,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge,onScroll:Qe},this.getTreeNodeRequiredProps(),qe))))}}],[{key:"getDerivedStateFromProps",value:function(K,ne){var $=ne.prevProps,n={prevProps:K};function s(le){return!$&&le in K||$&&$[le]!==K[le]}var r,y=ne.fieldNames;if(s("fieldNames")&&(y=(0,d.w$)(K.fieldNames),n.fieldNames=y),s("treeData")?r=K.treeData:s("children")&&((0,J.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),r=(0,d.zn)(K.children)),r){n.treeData=r;var Z=(0,d.I8)(r,{fieldNames:y});n.keyEntities=(0,re.Z)((0,b.Z)({},l,G),Z.keyEntities)}var W=n.keyEntities||ne.keyEntities;if(s("expandedKeys")||$&&s("autoExpandParent"))n.expandedKeys=K.autoExpandParent||!$&&K.defaultExpandParent?(0,h.r7)(K.expandedKeys,W):K.expandedKeys;else if(!$&&K.defaultExpandAll){var w=(0,re.Z)({},W);delete w[l],n.expandedKeys=Object.keys(w).map(function(le){return w[le].key})}else!$&&K.defaultExpandedKeys&&(n.expandedKeys=K.autoExpandParent||K.defaultExpandParent?(0,h.r7)(K.defaultExpandedKeys,W):K.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,r||n.expandedKeys){var S=(0,d.oH)(r||ne.treeData,n.expandedKeys||ne.expandedKeys,y);n.flattenNodes=S}if(K.selectable&&(s("selectedKeys")?n.selectedKeys=(0,h.BT)(K.selectedKeys,K):!$&&K.defaultSelectedKeys&&(n.selectedKeys=(0,h.BT)(K.defaultSelectedKeys,K))),K.checkable){var V;if(s("checkedKeys")?V=(0,h.E6)(K.checkedKeys)||{}:!$&&K.defaultCheckedKeys?V=(0,h.E6)(K.defaultCheckedKeys)||{}:r&&(V=(0,h.E6)(K.checkedKeys)||{checkedKeys:ne.checkedKeys,halfCheckedKeys:ne.halfCheckedKeys}),V){var ee=V,N=ee.checkedKeys,oe=N===void 0?[]:N,ae=ee.halfCheckedKeys,z=ae===void 0?[]:ae;if(!K.checkStrictly){var de=(0,ye.S)(oe,!0,W);oe=de.checkedKeys,z=de.halfCheckedKeys}n.checkedKeys=oe,n.halfCheckedKeys=z}}return s("loadedKeys")&&(n.loadedKeys=K.loadedKeys),n}}]),A}(D.Component);ie.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:ue,allowDrop:function(){return!0},expandAction:!1},ie.TreeNode=g.Z;var me=ie,xe=me},10225:function(ke,fe,o){"use strict";o.d(fe,{_5:function(){return q},L0:function(){return se},yx:function(){return Q},bt:function(){return R},Ds:function(){return D},wA:function(){return _},OM:function(){return T},BT:function(){return F},E6:function(){return d},r7:function(){return x}});var j=o(85061),b=o(90484),P=o(67294),re=o(80334),he=o(4258),ge=null;function q(u,m){if(!u)return[];var c=u.slice(),g=c.indexOf(m);return g>=0&&c.splice(g,1),c}function se(u,m){var c=(u||[]).slice();return c.indexOf(m)===-1&&c.push(m),c}function Q(u){return u.split("-")}function R(u,m){return"".concat(u,"-").concat(m)}function D(u){return u&&u.type&&u.type.isTreeNode}function _(u,m){var c=[],g=m[u];function C(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(O){var t=O.key,k=O.children;c.push(t),C(k)})}return C(g.children),c}function J(u){if(u.parent){var m=Q(u.pos);return Number(m[m.length-1])===u.parent.children.length-1}return!1}function I(u){var m=Q(u.pos);return Number(m[m.length-1])===0}function T(u,m,c,g,C,p,O,t,k,M){var v,a=u.clientX,i=u.clientY,l=u.target.getBoundingClientRect(),f=l.top,G=l.height,H=(M==="rtl"?-1:1)*(((C==null?void 0:C.x)||0)-a),X=(H-12)/g,B=t[c.props.eventKey];if(i-1.5?p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1:p({dragNode:E,dropNode:U,dropPosition:0})?ie=0:p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1:p({dragNode:E,dropNode:U,dropPosition:1})?ie=1:A=!1,{dropPosition:ie,dropLevelOffset:me,dropTargetKey:B.key,dropTargetPos:B.pos,dragOverNodeKey:ce,dropContainerKey:ie===0?null:((v=B.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:A}}function F(u,m){if(!!u){var c=m.multiple;return c?u.slice():u.length?[u[0]]:u}}var L=function(m){return m};function h(u,m){if(!u)return[];var c=m||{},g=c.processProps,C=g===void 0?L:g,p=Array.isArray(u)?u:[u];return p.map(function(O){var t=O.children,k=_objectWithoutProperties(O,ge),M=h(t,m);return React.createElement(TreeNode,_extends({key:k.key},C(k)),M)})}function d(u){if(!u)return null;var m;if(Array.isArray(u))m={checkedKeys:u,halfCheckedKeys:void 0};else if((0,b.Z)(u)==="object")m={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return m}function x(u,m){var c=new Set;function g(C){if(!c.has(C)){var p=m[C];if(!!p){c.add(C);var O=p.parent,t=p.node;t.disabled||O&&g(O.key)}}}return(u||[]).forEach(function(C){g(C)}),(0,j.Z)(c)}},17341:function(ke,fe,o){"use strict";o.d(fe,{S:function(){return ge}});var j=o(80334);function b(q,se){var Q=new Set;return q.forEach(function(R){se.has(R)||Q.add(R)}),Q}function P(q){var se=q||{},Q=se.disabled,R=se.disableCheckbox,D=se.checkable;return!!(Q||R)||D===!1}function re(q,se,Q,R){for(var D=new Set(q),_=new Set,J=0;J<=Q;J+=1){var I=se.get(J)||new Set;I.forEach(function(h){var d=h.key,x=h.node,u=h.children,m=u===void 0?[]:u;D.has(d)&&!R(x)&&m.filter(function(c){return!R(c.node)}).forEach(function(c){D.add(c.key)})})}for(var T=new Set,F=Q;F>=0;F-=1){var L=se.get(F)||new Set;L.forEach(function(h){var d=h.parent,x=h.node;if(!(R(x)||!h.parent||T.has(h.parent.key))){if(R(h.parent.node)){T.add(d.key);return}var u=!0,m=!1;(d.children||[]).filter(function(c){return!R(c.node)}).forEach(function(c){var g=c.key,C=D.has(g);u&&!C&&(u=!1),!m&&(C||_.has(g))&&(m=!0)}),u&&D.add(d.key),m&&_.add(d.key),T.add(d.key)}})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(b(_,D))}}function he(q,se,Q,R,D){for(var _=new Set(q),J=new Set(se),I=0;I<=R;I+=1){var T=Q.get(I)||new Set;T.forEach(function(d){var x=d.key,u=d.node,m=d.children,c=m===void 0?[]:m;!_.has(x)&&!J.has(x)&&!D(u)&&c.filter(function(g){return!D(g.node)}).forEach(function(g){_.delete(g.key)})})}J=new Set;for(var F=new Set,L=R;L>=0;L-=1){var h=Q.get(L)||new Set;h.forEach(function(d){var x=d.parent,u=d.node;if(!(D(u)||!d.parent||F.has(d.parent.key))){if(D(d.parent.node)){F.add(x.key);return}var m=!0,c=!1;(x.children||[]).filter(function(g){return!D(g.node)}).forEach(function(g){var C=g.key,p=_.has(C);m&&!p&&(m=!1),!c&&(p||J.has(C))&&(c=!0)}),m||_.delete(x.key),c&&J.add(x.key),F.add(x.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(b(J,_))}}function ge(q,se,Q,R){var D=[],_;R?_=R:_=P;var J=new Set(q.filter(function(L){var h=!!Q[L];return h||D.push(L),h})),I=new Map,T=0;Object.keys(Q).forEach(function(L){var h=Q[L],d=h.level,x=I.get(d);x||(x=new Set,I.set(d,x)),x.add(h),T=Math.max(T,d)}),(0,j.ZP)(!D.length,"Tree missing follow keys: ".concat(D.slice(0,100).map(function(L){return"'".concat(L,"'")}).join(", ")));var F;return se===!0?F=re(J,I,T,_):F=he(J,se.halfCheckedKeys,I,T,_),F}},1089:function(ke,fe,o){"use strict";o.d(fe,{km:function(){return R},w$:function(){return D},zn:function(){return J},oH:function(){return I},I8:function(){return F},H8:function(){return L},F:function(){return h}});var j=o(90484),b=o(85061),P=o(28991),re=o(81253),he=o(98423),ge=o(50344),q=o(80334),se=o(10225),Q=["children"];function R(d,x){return d!=null?d:x}function D(d){var x=d||{},u=x.title,m=x._title,c=x.key,g=x.children,C=u||"title";return{title:C,_title:m||[C],key:c||"key",children:g||"children"}}function _(d,x){var u=new Map;function m(c){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(c||[]).forEach(function(C){var p=C[x.key],O=C[x.children];warning(p!=null,"Tree node must have a certain key: [".concat(g).concat(p,"]"));var t=String(p);warning(!u.has(t)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(t)),u.set(t,!0),m(O,"".concat(g).concat(t," > "))})}m(d)}function J(d){function x(u){var m=(0,ge.Z)(u);return m.map(function(c){if(!(0,se.Ds)(c))return(0,q.ZP)(!c,"Tree/TreeNode can only accept TreeNode as children."),null;var g=c.key,C=c.props,p=C.children,O=(0,re.Z)(C,Q),t=(0,P.Z)({key:g},O),k=x(p);return k.length&&(t.children=k),t}).filter(function(c){return c})}return x(d)}function I(d,x,u){var m=D(u),c=m._title,g=m.key,C=m.children,p=new Set(x===!0?[]:x),O=[];function t(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(v,a){for(var i=(0,se.bt)(M?M.pos:"0",a),l=R(v[g],i),f,G=0;G1&&arguments[1]!==void 0?arguments[1]:{},u=x.initWrapper,m=x.processEntity,c=x.onProcessFinished,g=x.externalGetKey,C=x.childrenPropName,p=x.fieldNames,O=arguments.length>2?arguments[2]:void 0,t=g||O,k={},M={},v={posEntities:k,keyEntities:M};return u&&(v=u(v)||v),T(d,function(a){var i=a.node,l=a.index,f=a.pos,G=a.key,H=a.parentPos,X=a.level,B=a.nodes,te={node:i,nodes:B,index:l,key:G,pos:f,level:X},Y=R(G,f);k[f]=te,M[Y]=te,te.parent=k[H],te.parent&&(te.parent.children=te.parent.children||[],te.parent.children.push(te)),m&&m(te,v)},{externalGetKey:t,childrenPropName:C,fieldNames:p}),c&&c(v),v}function L(d,x){var u=x.expandedKeys,m=x.selectedKeys,c=x.loadedKeys,g=x.loadingKeys,C=x.checkedKeys,p=x.halfCheckedKeys,O=x.dragOverNodeKey,t=x.dropPosition,k=x.keyEntities,M=k[d],v={eventKey:d,expanded:u.indexOf(d)!==-1,selected:m.indexOf(d)!==-1,loaded:c.indexOf(d)!==-1,loading:g.indexOf(d)!==-1,checked:C.indexOf(d)!==-1,halfChecked:p.indexOf(d)!==-1,pos:String(M?M.pos:""),dragOver:O===d&&t===0,dragOverGapTop:O===d&&t===-1,dragOverGapBottom:O===d&&t===1};return v}function h(d){var x=d.data,u=d.expanded,m=d.selected,c=d.checked,g=d.loaded,C=d.loading,p=d.halfChecked,O=d.dragOver,t=d.dragOverGapTop,k=d.dragOverGapBottom,M=d.pos,v=d.active,a=d.eventKey,i=(0,P.Z)((0,P.Z)({},x),{},{expanded:u,selected:m,checked:c,loaded:g,loading:C,halfChecked:p,dragOver:O,dragOverGapTop:t,dragOverGapBottom:k,pos:M,active:v,key:a});return"props"in i||Object.defineProperty(i,"props",{get:function(){return(0,q.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),d}}),i}},27678:function(ke,fe,o){"use strict";o.d(fe,{g1:function(){return D},os:function(){return J}});var j=/margin|padding|width|height|max|min|offset/,b={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function re(I){return I.nodeType===1?I.ownerDocument.defaultView.getComputedStyle(I,null):{}}function he(I,T,F){if(T=T.toLowerCase(),F==="auto"){if(T==="height")return I.offsetHeight;if(T==="width")return I.offsetWidth}return T in b||(b[T]=j.test(T)),b[T]?parseFloat(F)||0:F}function ge(I,T){var F=arguments.length,L=re(I);return T=P[T]?"cssFloat"in I.style?"cssFloat":"styleFloat":T,F===1?L:he(I,T,L[T]||I.style[T])}function q(I,T,F){var L=arguments.length;if(T=P[T]?"cssFloat"in I.style?"cssFloat":"styleFloat":T,L===3)return typeof F=="number"&&j.test(T)&&(F="".concat(F,"px")),I.style[T]=F,F;for(var h in T)T.hasOwnProperty(h)&&q(I,h,T[h]);return re(I)}function se(I){return I===document.body?document.documentElement.clientWidth:I.offsetWidth}function Q(I){return I===document.body?window.innerHeight||document.documentElement.clientHeight:I.offsetHeight}function R(){var I=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:I,height:T}}function D(){var I=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:I,height:T}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function J(I){var T=I.getBoundingClientRect(),F=document.documentElement;return{left:T.left+(window.pageXOffset||F.scrollLeft)-(F.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||F.scrollTop)-(F.clientTop||document.body.clientTop||0)}}}}]); diff --git a/1151.d05792ff.async.js b/1151.d05792ff.async.js deleted file mode 100644 index 3f6f8dbb..00000000 --- a/1151.d05792ff.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1151],{58380:function(r){function f(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}r.exports=f},29932:function(r){function f(n,t){for(var e=-1,o=n==null?0:n.length,s=Array(o);++e1?u[a-1]:void 0,c=a>2?u[2]:void 0;for(p=s.length>3&&typeof p=="function"?(a--,p):void 0,c&&e(u[0],u[1],c)&&(p=a<3?void 0:p,a=1),i=Object(i);++l0){if(++s>=f)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}r.exports=e},75703:function(r){function f(n){return function(){return n}}r.exports=f},6557:function(r){function f(n){return n}r.exports=f},29246:function(r,f,n){var t=n(98612),e=n(37005);function o(s){return e(s)&&t(s)}r.exports=o},68630:function(r,f,n){var t=n(44239),e=n(85924),o=n(37005),s="[object Object]",i=Function.prototype,u=Object.prototype,l=i.toString,a=u.hasOwnProperty,p=l.call(Object);function c(d){if(!o(d)||t(d)!=s)return!1;var v=e(d);if(v===null)return!0;var y=a.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==p}r.exports=c},81704:function(r,f,n){var t=n(14636),e=n(10313),o=n(98612);function s(i){return o(i)?t(i,!0):e(i)}r.exports=s},82492:function(r,f,n){var t=n(42980),e=n(21463),o=e(function(s,i,u){t(s,i,u)});r.exports=o},59881:function(r,f,n){var t=n(98363),e=n(81704);function o(s){return t(s,e(s))}r.exports=o},79833:function(r,f,n){var t=n(80531);function e(o){return o==null?"":t(o)}r.exports=e}}]); diff --git a/1656.87a6507c.async.js b/1656.87a6507c.async.js new file mode 100644 index 00000000..cfced931 --- /dev/null +++ b/1656.87a6507c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1656],{71656:function(Lt,ct,y){y.d(ct,{Z:function(){return Tt}});var i=y(50959),dt=y(84875),E=y.n(dt),ut=y(10091),G=y(74364),J=y(94914),Z=y(31594),$=y(60076),K=y(6301),Q=y(78163),mt=y(90467),k=y(81501);const bt=new $.E4("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gt=new $.E4("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ft=new $.E4("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),pt=new $.E4("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),vt=new $.E4("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ct=new $.E4("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$t=t=>{const{componentCls:e,iconCls:s,antCls:n,badgeShadowSize:o,motionDurationSlow:c,textFontSize:l,textFontSizeSM:S,statusSize:h,dotSize:f,textFontWeight:m,indicatorHeight:a,indicatorHeightSM:d,marginXS:g,calc:v}=t,u=`${n}-scroll-number`,C=(0,Q.Z)(t,(b,N)=>{let{darkColor:j}=N;return{[`&${e} ${e}-color-${b}`]:{background:j,[`&:not(${e}-count)`]:{color:j}}}});return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.indicatorZIndex,minWidth:a,height:a,color:t.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:(0,$.bf)(a),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:v(a).div(2).equal(),boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:S,lineHeight:(0,$.bf)(d),borderRadius:v(d).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${(0,$.bf)(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:f,minWidth:f,height:f,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`},[`${e}-dot${u}`]:{transition:`background ${c}`},[`${e}-count, ${e}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${s}-spin`]:{animationName:Ct,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:h,height:h,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:bt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:g,color:t.colorText,fontSize:t.fontSize}}}),C),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:gt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:ft,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:vt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${e}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${u}`]:{overflow:"hidden",[`${u}-only`]:{position:"relative",display:"inline-block",height:a,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:a,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},q=t=>{const{fontHeight:e,lineWidth:s,marginXS:n,colorBorderBg:o}=t,c=e,l=s,S=t.colorBgContainer,h=t.colorError,f=t.colorErrorHover;return(0,mt.TS)(t,{badgeFontHeight:c,badgeShadowSize:l,badgeTextColor:S,badgeColor:h,badgeColorHover:f,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},_=t=>{const{fontSize:e,lineHeight:s,fontSizeSM:n,lineWidth:o}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*s)-2*o,indicatorHeightSM:e,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}};var ht=(0,k.I$)("Badge",t=>{const e=q(t);return $t(e)},_);const yt=t=>{const{antCls:e,badgeFontHeight:s,marginXS:n,badgeRibbonOffset:o,calc:c}=t,l=`${e}-ribbon`,S=`${e}-ribbon-wrapper`,h=(0,Q.Z)(t,(f,m)=>{let{darkColor:a}=m;return{[`&${l}-color-${f}`]:{background:a,color:a}}});return{[`${S}`]:{position:"relative"},[`${l}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"absolute",top:n,padding:`0 ${(0,$.bf)(t.paddingXS)}`,color:t.colorPrimary,lineHeight:(0,$.bf)(s),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${l}-text`]:{color:t.colorTextLightSolid},[`${l}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${(0,$.bf)(c(o).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),h),{[`&${l}-placement-end`]:{insetInlineEnd:c(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:c(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var St=(0,k.ZP)(["Badge","Ribbon"],t=>{const e=q(t);return yt(e)},_),Nt=t=>{const{className:e,prefixCls:s,style:n,color:o,children:c,text:l,placement:S="end",rootClassName:h}=t,{getPrefixCls:f,direction:m}=i.useContext(Z.E_),a=f("ribbon",s),[d,g]=St(a),v=(0,G.o2)(o,!1),u=E()(a,`${a}-placement-${S}`,{[`${a}-rtl`]:m==="rtl",[`${a}-color-${o}`]:v},e),C={},b={};return o&&!v&&(C.background=o,b.color=o),d(i.createElement("div",{className:E()(`${a}-wrapper`,h,g)},c,i.createElement("div",{className:E()(u,g),style:Object.assign(Object.assign({},C),n)},i.createElement("span",{className:`${a}-text`},l),i.createElement("div",{className:`${a}-corner`,style:b}))))};function tt(t){let{prefixCls:e,value:s,current:n,offset:o=0}=t,c;return o&&(c={position:"absolute",top:`${o}00%`,left:0}),i.createElement("span",{style:c,className:E()(`${e}-only-unit`,{current:n})},s)}function Ot(t,e,s){let n=t,o=0;for(;(n+10)%10!==e;)n+=s,o+=s;return o}function xt(t){const{prefixCls:e,count:s,value:n}=t,o=Number(n),c=Math.abs(s),[l,S]=i.useState(o),[h,f]=i.useState(c),m=()=>{S(o),f(c)};i.useEffect(()=>{const g=setTimeout(()=>{m()},1e3);return()=>{clearTimeout(g)}},[o]);let a,d;if(l===o||Number.isNaN(o)||Number.isNaN(l))a=[i.createElement(tt,Object.assign({},t,{key:o,current:!0}))],d={transition:"none"};else{a=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const u=v.findIndex(b=>b%10===l);a=v.map((b,N)=>{const j=b%10;return i.createElement(tt,Object.assign({},t,{key:b,value:j,offset:N-u,current:N===u}))});const C=h{const{prefixCls:s,count:n,className:o,motionClassName:c,style:l,title:S,show:h,component:f="sup",children:m}=t,a=Et(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=i.useContext(Z.E_),g=d("scroll-number",s),v=Object.assign(Object.assign({},a),{"data-show":h,style:l,className:E()(g,o,c),title:S});let u=n;if(n&&Number(n)%1===0){const C=String(n).split("");u=i.createElement("bdi",null,C.map((b,N)=>i.createElement(xt,{prefixCls:g,count:Number(n),value:b,key:C.length-N})))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),m?(0,J.Tm)(m,C=>({className:E()(`${g}-custom-component`,C==null?void 0:C.className,c)})):i.createElement(f,Object.assign({},v,{ref:e}),u)}),jt=function(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var s,n,o,c,l;const{prefixCls:S,scrollNumberPrefixCls:h,children:f,status:m,text:a,color:d,count:g=null,overflowCount:v=99,dot:u=!1,size:C="default",title:b,offset:N,style:j,className:It,rootClassName:zt,classNames:w,styles:O,showZero:F=!1}=t,ot=jt(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:nt,direction:H,badge:r}=i.useContext(Z.E_),p=nt("badge",S),[rt,Rt]=ht(p),M=g>v?`${v}+`:g,R=M==="0"||M===0,Bt=g===null||R&&!F,A=(m!=null||d!=null)&&Bt,z=u&&!R,P=z?"":M,T=(0,i.useMemo)(()=>(P==null||P===""||R&&!F)&&!z,[P,R,F,z]),it=(0,i.useRef)(g);T||(it.current=g);const I=it.current,st=(0,i.useRef)(P);T||(st.current=P);const V=st.current,at=(0,i.useRef)(z);T||(at.current=z);const B=(0,i.useMemo)(()=>{if(!N)return Object.assign(Object.assign({},r==null?void 0:r.style),j);const x={marginTop:N[1]};return H==="rtl"?x.left=parseInt(N[0],10):x.right=-parseInt(N[0],10),Object.assign(Object.assign(Object.assign({},x),r==null?void 0:r.style),j)},[H,N,j,r==null?void 0:r.style]),Wt=b!=null?b:typeof I=="string"||typeof I=="number"?I:void 0,Dt=T||!a?null:i.createElement("span",{className:`${p}-status-text`},a),Zt=!I||typeof I!="object"?void 0:(0,J.Tm)(I,x=>({style:Object.assign(Object.assign({},B),x.style)})),W=(0,G.o2)(d,!1),Ft=E()(w==null?void 0:w.indicator,(s=r==null?void 0:r.classNames)===null||s===void 0?void 0:s.indicator,{[`${p}-status-dot`]:A,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W}),L={};d&&!W&&(L.color=d,L.background=d);const lt=E()(p,{[`${p}-status`]:A,[`${p}-not-a-wrapper`]:!f,[`${p}-rtl`]:H==="rtl"},It,zt,r==null?void 0:r.className,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root,Rt);if(!f&&A){const x=B.color;return rt(i.createElement("span",Object.assign({},ot,{className:lt,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.root),(o=r==null?void 0:r.styles)===null||o===void 0?void 0:o.root),B)}),i.createElement("span",{className:Ft,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(c=r==null?void 0:r.styles)===null||c===void 0?void 0:c.indicator),L)}),a&&i.createElement("span",{style:{color:x},className:`${p}-status-text`},a)))}return rt(i.createElement("span",Object.assign({ref:e},ot,{className:lt,style:Object.assign(Object.assign({},(l=r==null?void 0:r.styles)===null||l===void 0?void 0:l.root),O==null?void 0:O.root)}),f,i.createElement(ut.ZP,{visible:!T,motionName:`${p}-zoom`,motionAppear:!1,motionDeadline:1e3},x=>{let{className:Ht,ref:Mt}=x;var X,U;const At=nt("scroll-number",h),Y=at.current,Vt=E()(w==null?void 0:w.indicator,(X=r==null?void 0:r.classNames)===null||X===void 0?void 0:X.indicator,{[`${p}-dot`]:Y,[`${p}-count`]:!Y,[`${p}-count-sm`]:C==="small",[`${p}-multiple-words`]:!Y&&V&&V.toString().length>1,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W});let D=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(U=r==null?void 0:r.styles)===null||U===void 0?void 0:U.indicator),B);return d&&!W&&(D=D||{},D.background=d),i.createElement(wt,{prefixCls:At,show:!T,motionClassName:Ht,className:Vt,count:V,title:Wt,style:D,key:"scrollNumber",ref:Mt},Zt)}),Dt))},et=i.forwardRef(Pt);et.Ribbon=Nt;var Tt=et}}]); diff --git a/1757.ee30cc3d.async.js b/1757.ee30cc3d.async.js new file mode 100644 index 00000000..c7cfa0f0 --- /dev/null +++ b/1757.ee30cc3d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1757],{99513:function(oe,M,e){e.d(M,{Z:function(){return t}});const t=h=>h?typeof h=="function"?h():h:null},21757:function(oe,M,e){e.d(M,{C:function(){return fe}});var t=e(50959),h=e(84875),$=e.n(h),f=e(12682),H=e(12602),A=e(51408),L=e(31594),F=e(17436),V=e(70836),d=t.createContext({}),n=e(60076),a=e(6301),o=e(81501),l=e(90467);const r=s=>{const{antCls:g,componentCls:c,iconCls:i,avatarBg:p,avatarColor:J,containerSize:T,containerSizeLG:C,containerSizeSM:W,textFontSize:y,textFontSizeLG:U,textFontSizeSM:ne,borderRadius:B,borderRadiusLG:z,borderRadiusSM:K,lineWidth:Z,lineType:q,calc:k}=s,j=(O,G,S)=>({width:O,height:O,lineHeight:(0,n.bf)(k(O).sub(k(Z).mul(2)).equal()),borderRadius:"50%",[`&${c}-square`]:{borderRadius:S},[`${c}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${c}-icon`]:{fontSize:G,[`> ${i}`]:{margin:0}}});return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.Wf)(s)),{position:"relative",display:"inline-block",overflow:"hidden",color:J,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:p,border:`${(0,n.bf)(Z)} ${q} transparent`,["&-image"]:{background:"transparent"},[`${g}-image-img`]:{display:"block"}}),j(T,y,B)),{["&-lg"]:Object.assign({},j(C,U,z)),["&-sm"]:Object.assign({},j(W,ne,K)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},u=s=>{const{componentCls:g,groupBorderColor:c,groupOverlapping:i,groupSpace:p}=s;return{[`${g}-group`]:{display:"inline-flex",[`${g}`]:{borderColor:c},["> *:not(:first-child)"]:{marginInlineStart:i}},[`${g}-group-popover`]:{[`${g} + ${g}`]:{marginInlineStart:p}}}},P=s=>{const{controlHeight:g,controlHeightLG:c,controlHeightSM:i,fontSize:p,fontSizeLG:J,fontSizeXL:T,fontSizeHeading3:C,marginXS:W,marginXXS:y,colorBorderBg:U}=s;return{containerSize:g,containerSizeLG:c,containerSizeSM:i,textFontSize:Math.round((J+T)/2),textFontSizeLG:C,textFontSizeSM:p,groupSpace:y,groupOverlapping:-W,groupBorderColor:U}};var b=(0,o.I$)("Avatar",s=>{const{colorTextLightSolid:g,colorTextPlaceholder:c}=s,i=(0,l.TS)(s,{avatarBg:c,avatarColor:g});return[r(i),u(i)]},P),D=e(10254),X=function(s,g){var c={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&g.indexOf(i)<0&&(c[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,i=Object.getOwnPropertySymbols(s);p{const[c,i]=t.useState(1),[p,J]=t.useState(!1),[T,C]=t.useState(!0),W=t.useRef(null),y=t.useRef(null),U=(0,H.sQ)(g,W),{getPrefixCls:ne,avatar:B}=t.useContext(L.E_),z=t.useContext(d),K=()=>{if(!y.current||!W.current)return;const v=y.current.offsetWidth,m=W.current.offsetWidth;if(v!==0&&m!==0){const{gap:x=4}=s;x*2{J(!0)},[]),t.useEffect(()=>{C(!0),i(1)},[s.src]),t.useEffect(K,[s.gap]);const Z=()=>{const{onError:v}=s;(v==null?void 0:v())!==!1&&C(!1)},{prefixCls:q,shape:k,size:j,src:O,srcSet:G,icon:S,className:ee,rootClassName:re,alt:pe,draggable:Ee,children:ce,crossOrigin:he}=s,se=X(s,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),E=(0,F.Z)(v=>{var m,x;return(x=(m=j!=null?j:z==null?void 0:z.size)!==null&&m!==void 0?m:v)!==null&&x!==void 0?x:"default"}),Ce=Object.keys(typeof E=="object"?E||{}:{}).some(v=>["xs","sm","md","lg","xl","xxl"].includes(v)),ue=(0,V.Z)(Ce),Oe=t.useMemo(()=>{if(typeof E!="object")return{};const v=A.c4.find(x=>ue[x]),m=E[v];return m?{width:m,height:m,lineHeight:`${m}px`,fontSize:m&&(S||ce)?m/2:18}:{}},[ue,E]),I=ne("avatar",q),me=(0,D.Z)(I),[Pe,ye]=b(I,me),Se=$()({[`${I}-lg`]:E==="large",[`${I}-sm`]:E==="small"}),ve=t.isValidElement(O),xe=k||(z==null?void 0:z.shape)||"circle",Me=$()(I,Se,B==null?void 0:B.className,`${I}-${xe}`,{[`${I}-image`]:ve||O&&T,[`${I}-icon`]:!!S},me,ee,re,ye),$e=typeof E=="number"?{width:E,height:E,lineHeight:`${E}px`,fontSize:S?E/2:18}:{};let te;if(typeof O=="string"&&T)te=t.createElement("img",{src:O,draggable:Ee,srcSet:G,onError:Z,alt:pe,crossOrigin:he});else if(ve)te=O;else if(S)te=S;else if(p||c!==1){const v=`scale(${c}) translateX(-50%)`,m={msTransform:v,WebkitTransform:v,transform:v},x=typeof E=="number"?{lineHeight:`${E}px`}:{};te=t.createElement(f.Z,{onResize:K},t.createElement("span",{className:`${I}-string`,ref:y,style:Object.assign(Object.assign({},x),m)},ce))}else te=t.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:y},ce);return delete se.onError,delete se.gap,Pe(t.createElement("span",Object.assign({},se,{style:Object.assign(Object.assign(Object.assign(Object.assign({},$e),Oe),B==null?void 0:B.style),se.style),className:Me,ref:U}),te))};var R=t.forwardRef(Q),N=e(13763),_=e(82757),le=e(94914);const ae=s=>{const{size:g,shape:c}=t.useContext(d),i=t.useMemo(()=>({size:s.size||g,shape:s.shape||c}),[s.size,s.shape,g,c]);return t.createElement(d.Provider,{value:i},s.children)};var ie=s=>{const{getPrefixCls:g,direction:c}=t.useContext(L.E_),{prefixCls:i,className:p,rootClassName:J,style:T,maxCount:C,maxStyle:W,size:y,shape:U,maxPopoverPlacement:ne="top",maxPopoverTrigger:B="hover",children:z}=s,K=g("avatar",i),Z=`${K}-group`,q=(0,D.Z)(K),[k,j]=b(K,q),O=$()(Z,{[`${Z}-rtl`]:c==="rtl"},q,p,J,j),G=(0,N.Z)(z).map((ee,re)=>(0,le.Tm)(ee,{key:`avatar-key-${re}`})),S=G.length;if(C&&C{if(!(!a&&!o))return f.createElement(f.Fragment,null,a&&f.createElement("div",{className:`${n}-title`},(0,A.Z)(a)),f.createElement("div",{className:`${n}-inner-content`},(0,A.Z)(o)))},w=n=>{const{hashId:a,prefixCls:o,className:l,style:r,placement:u="top",title:P,content:b,children:D}=n;return f.createElement("div",{className:h()(a,o,`${o}-pure`,`${o}-placement-${u}`,l),style:r},f.createElement("div",{className:`${o}-arrow`}),f.createElement($.G,Object.assign({},n,{className:a,prefixCls:o}),D||V(o,P,b)))},d=n=>{const{prefixCls:a}=n,o=F(n,["prefixCls"]),{getPrefixCls:l}=f.useContext(H.E_),r=l("popover",a),[u,P]=(0,L.Z)(r);return u(f.createElement(w,Object.assign({},o,{prefixCls:r,hashId:P})))};M.ZP=d},82757:function(oe,M,e){var t=e(50959),h=e(84875),$=e.n(h),f=e(99513),H=e(58351),A=e(31594),L=e(32618),F=e(58889),V=e(10153),w=function(a,o){var l={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&o.indexOf(r)<0&&(l[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(a);u{let{title:o,content:l,prefixCls:r}=a;return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:`${r}-title`},(0,f.Z)(o)),t.createElement("div",{className:`${r}-inner-content`},(0,f.Z)(l)))},n=t.forwardRef((a,o)=>{const{prefixCls:l,title:r,content:u,overlayClassName:P,placement:b="top",trigger:D="hover",mouseEnterDelay:X=.1,mouseLeaveDelay:Q=.1,overlayStyle:Y={}}=a,R=w(a,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:N}=t.useContext(A.E_),_=N("popover",l),[le,ae]=(0,V.Z)(_),de=N(),ie=$()(P,ae);return le(t.createElement(L.Z,Object.assign({placement:b,trigger:D,mouseEnterDelay:X,mouseLeaveDelay:Q,overlayStyle:Y},R,{prefixCls:_,overlayClassName:ie,ref:o,overlay:r||u?t.createElement(d,{prefixCls:_,title:r,content:u}):null,transitionName:(0,H.m)(de,"zoom-big",R.transitionName),"data-popover-inject":!0})))});n._InternalPanelDoNotUseOrYouWillBeFired=F.ZP,M.Z=n},10153:function(oe,M,e){var t=e(6301),h=e(37747),$=e(42268),f=e(72270),H=e(81501),A=e(90467),L=e(22297);const F=d=>{const{componentCls:n,popoverColor:a,titleMinWidth:o,fontWeightStrong:l,innerPadding:r,boxShadowSecondary:u,colorTextHeading:P,borderRadiusLG:b,zIndexPopup:D,titleMarginBottom:X,colorBgElevated:Q,popoverBg:Y,titleBorderBottom:R,innerContentPadding:N,titlePadding:_}=d;return[{[n]:Object.assign(Object.assign({},(0,t.Wf)(d)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:D,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Q,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:Y,backgroundClip:"padding-box",borderRadius:b,boxShadow:u,padding:r},[`${n}-title`]:{minWidth:o,marginBottom:X,color:P,fontWeight:l,borderBottom:R,padding:_},[`${n}-inner-content`]:{color:a,padding:N}})},(0,$.ZP)(d,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:d.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},V=d=>{const{componentCls:n}=d;return{[n]:f.i.map(a=>{const o=d[`${a}6`];return{[`&${n}-${a}`]:{"--antd-arrow-background-color":o,[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{background:"transparent"}}}})}},w=d=>{const{lineWidth:n,controlHeight:a,fontHeight:o,padding:l,wireframe:r,zIndexPopupBase:u,borderRadiusLG:P,marginXS:b,lineType:D,colorSplit:X,paddingSM:Q}=d,Y=a-o,R=Y/2,N=Y/2-n,_=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:u+30},(0,L.w)(d)),(0,$.wZ)({contentRadius:P,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:b,titlePadding:r?`${R}px ${_}px ${N}px`:0,titleBorderBottom:r?`${n}px ${D} ${X}`:"none",innerContentPadding:r?`${Q}px ${_}px`:0})};M.Z=(0,H.I$)("Popover",d=>{const{colorBgElevated:n,colorText:a}=d,o=(0,A.TS)(d,{popoverBg:n,popoverColor:a});return[F(o),V(o),(0,h._y)(o,"zoom-big")]},w,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/1796.96895f8f.async.js b/1796.96895f8f.async.js new file mode 100644 index 00000000..cb14de2f --- /dev/null +++ b/1796.96895f8f.async.js @@ -0,0 +1,88 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1796],{7819:function($t,Ie){var a={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"};Ie.Z=a},71506:function($t,Ie){var a={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"};Ie.Z=a},57249:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},96527:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={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"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},38223:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={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"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},59005:function($t,Ie,a){a.d(Ie,{F:function(){return n},Z:function(){return T}});function n(P){return P!=null&&P===P.window}function T(P,V){var xe,Ke;if(typeof window=="undefined")return 0;const R=V?"scrollTop":"scrollLeft";let j=0;return n(P)?j=P[V?"pageYOffset":"pageXOffset"]:P instanceof Document?j=P.documentElement[R]:(P instanceof HTMLElement||P)&&(j=P[R]),P&&!n(P)&&typeof j!="number"&&(j=(Ke=((xe=P.ownerDocument)!==null&&xe!==void 0?xe:P).documentElement)===null||Ke===void 0?void 0:Ke[R]),j}},85556:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(50959);function T(P){const[V,xe]=(0,n.useState)(null);return[(0,n.useCallback)((j,M,I)=>{const W=V!=null?V:j,X=Math.min(W||0,j),A=Math.max(W||0,j),ae=M.slice(X,A+1).map(K=>P(K)),k=ae.some(K=>!I.has(K)),m=[];return ae.forEach(K=>{k?(I.has(K)||m.push(K),I.add(K)):(I.delete(K),m.push(K))}),xe(k?A:null),m},[V]),j=>{xe(j)}]}},68617:function($t,Ie,a){a.d(Ie,{Z:function(){return V}});var n=a(28449);function T(xe,Ke,R,j){const M=R-Ke;return xe/=j/2,xe<1?M/2*xe*xe*xe+Ke:M/2*((xe-=2)*xe*xe+2)+Ke}var P=a(59005);function V(xe){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:R=()=>window,callback:j,duration:M=450}=Ke,I=R(),W=(0,P.Z)(I,!0),X=Date.now(),A=()=>{const k=Date.now()-X,m=T(k>M?M:k,W,xe,M);(0,P.F)(I)?I.scrollTo(window.pageXOffset,m):I instanceof Document||I.constructor.name==="HTMLDocument"?I.documentElement.scrollTop=m:I.scrollTop=m,k{var O;const{prefixCls:d,className:q,rootClassName:h,children:we,indeterminate:y=!1,style:g,onMouseEnter:Z,onMouseLeave:B,skipGroup:Se=!1,disabled:Ue}=ee,me=ae(ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Me,direction:ct,checkbox:fe}=n.useContext(R.E_),le=n.useContext(X),{isFormItemInput:je}=n.useContext(I.aM),We=n.useContext(j.Z),re=(O=(le==null?void 0:le.disabled)||Ue)!==null&&O!==void 0?O:We,Te=n.useRef(me.value);n.useEffect(()=>{le==null||le.registerValue(me.value)},[]),n.useEffect(()=>{if(!Se)return me.value!==Te.current&&(le==null||le.cancelValue(Te.current),le==null||le.registerValue(me.value),Te.current=me.value),()=>le==null?void 0:le.cancelValue(me.value)},[me.value]);const Ce=Me("checkbox",d),at=(0,M.Z)(Ce),[Ye,pt]=(0,A.ZP)(Ce,at),lt=Object.assign({},me);le&&!Se&&(lt.onChange=function(){me.onChange&&me.onChange.apply(me,arguments),le.toggleOption&&le.toggleOption({label:we,value:me.value})},lt.name=le.name,lt.checked=le.value.includes(me.value));const te=P()(`${Ce}-wrapper`,{[`${Ce}-rtl`]:ct==="rtl",[`${Ce}-wrapper-checked`]:lt.checked,[`${Ce}-wrapper-disabled`]:re,[`${Ce}-wrapper-in-form-item`]:je},fe==null?void 0:fe.className,q,h,at,pt),Ze=P()({[`${Ce}-indeterminate`]:y},Ke.A,pt),Ve=y?"mixed":void 0;return Ye(n.createElement(xe.Z,{component:"Checkbox",disabled:re},n.createElement("label",{className:te,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),g),onMouseEnter:Z,onMouseLeave:B},n.createElement(V.Z,Object.assign({"aria-checked":Ve},lt,{prefixCls:Ce,className:Ze,disabled:re,ref:D})),we!==void 0&&n.createElement("span",null,we))))};var K=n.forwardRef(k),ye=a(1788),Pe=a(87017),H=function(ee,D){var O={};for(var d in ee)Object.prototype.hasOwnProperty.call(ee,d)&&D.indexOf(d)<0&&(O[d]=ee[d]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,d=Object.getOwnPropertySymbols(ee);q{const{defaultValue:O,children:d,options:q=[],prefixCls:h,className:we,rootClassName:y,style:g,onChange:Z}=ee,B=H(ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Se,direction:Ue}=n.useContext(R.E_),[me,Me]=n.useState(B.value||O||[]),[ct,fe]=n.useState([]);n.useEffect(()=>{"value"in B&&Me(B.value||[])},[B.value]);const le=n.useMemo(()=>q.map(s=>typeof s=="string"||typeof s=="number"?{label:s,value:s}:s),[q]),je=s=>{fe(ie=>ie.filter(Ne=>Ne!==s))},We=s=>{fe(ie=>[].concat((0,ye.Z)(ie),[s]))},re=s=>{const ie=me.indexOf(s.value),Ne=(0,ye.Z)(me);ie===-1?Ne.push(s.value):Ne.splice(ie,1),"value"in B||Me(Ne),Z==null||Z(Ne.filter(Fe=>ct.includes(Fe)).sort((Fe,S)=>{const N=le.findIndex(ne=>ne.value===Fe),w=le.findIndex(ne=>ne.value===S);return N-w}))},Te=Se("checkbox",h),Ce=`${Te}-group`,at=(0,M.Z)(Te),[Ye,pt]=(0,A.ZP)(Te,at),lt=(0,Pe.Z)(B,["value","disabled"]),te=q.length?le.map(s=>n.createElement(K,{prefixCls:Te,key:s.value.toString(),disabled:"disabled"in s?s.disabled:B.disabled,value:s.value,checked:me.includes(s.value),onChange:s.onChange,className:`${Ce}-item`,style:s.style,title:s.title,id:s.id,required:s.required},s.label)):d,Ze={toggleOption:re,value:me,disabled:B.disabled,name:B.name,registerValue:We,cancelValue:je},Ve=P()(Ce,{[`${Ce}-rtl`]:Ue==="rtl"},we,y,at,pt);return Ye(n.createElement("div",Object.assign({className:Ve,style:g},lt,{ref:D}),n.createElement(X.Provider,{value:Ze},te)))},L=n.forwardRef(C);var G=n.memo(L);const _=K;_.Group=G,_.__ANT_CHECKBOX=!0;var Q=_},49508:function($t,Ie,a){a.d(Ie,{C2:function(){return Ke}});var n=a(60076),T=a(6301),P=a(90467),V=a(81501);const xe=R=>{const{checkboxCls:j}=R,M=`${j}-wrapper`;return[{[`${j}-group`]:Object.assign(Object.assign({},(0,T.Wf)(R)),{display:"inline-flex",flexWrap:"wrap",columnGap:R.marginXS,[`> ${R.antCls}-row`]:{flex:1}}),[M]:Object.assign(Object.assign({},(0,T.Wf)(R)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${M}`]:{marginInlineStart:0},[`&${M}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[j]:Object.assign(Object.assign({},(0,T.Wf)(R)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:R.borderRadiusSM,alignSelf:"center",[`${j}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${j}-inner`]:Object.assign({},(0,T.oN)(R))},[`${j}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:R.checkboxSize,height:R.checkboxSize,direction:"ltr",backgroundColor:R.colorBgContainer,border:`${(0,n.bf)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadiusSM,borderCollapse:"separate",transition:`all ${R.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:R.calc(R.checkboxSize).div(14).mul(5).equal(),height:R.calc(R.checkboxSize).div(14).mul(8).equal(),border:`${(0,n.bf)(R.lineWidthBold)} solid ${R.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${R.motionDurationFast} ${R.motionEaseInBack}, opacity ${R.motionDurationFast}`}},"& + span":{paddingInlineStart:R.paddingXS,paddingInlineEnd:R.paddingXS}})},{[` + ${M}:not(${M}-disabled), + ${j}:not(${j}-disabled) + `]:{[`&:hover ${j}-inner`]:{borderColor:R.colorPrimary}},[`${M}:not(${M}-disabled)`]:{[`&:hover ${j}-checked:not(${j}-disabled) ${j}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${j}-checked:not(${j}-disabled):after`]:{borderColor:R.colorPrimaryHover}}},{[`${j}-checked`]:{[`${j}-inner`]:{backgroundColor:R.colorPrimary,borderColor:R.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${R.motionDurationMid} ${R.motionEaseOutBack} ${R.motionDurationFast}`}}},[` + ${M}-checked:not(${M}-disabled), + ${j}-checked:not(${j}-disabled) + `]:{[`&:hover ${j}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"}}},{[j]:{"&-indeterminate":{[`${j}-inner`]:{backgroundColor:R.colorBgContainer,borderColor:R.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:R.calc(R.fontSizeLG).div(2).equal(),height:R.calc(R.fontSizeLG).div(2).equal(),backgroundColor:R.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${M}-disabled`]:{cursor:"not-allowed"},[`${j}-disabled`]:{[`&, ${j}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${j}-inner`]:{background:R.colorBgContainerDisabled,borderColor:R.colorBorder,"&:after":{borderColor:R.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:R.colorTextDisabled},[`&${j}-indeterminate ${j}-inner::after`]:{background:R.colorTextDisabled}}}]};function Ke(R,j){const M=(0,P.TS)(j,{checkboxCls:`.${R}`,checkboxSize:j.controlInteractiveSize});return[xe(M)]}Ie.ZP=(0,V.I$)("Checkbox",(R,j)=>{let{prefixCls:M}=j;return[Ke(M,R)]})},33952:function($t,Ie,a){a.d(Ie,{Z:function(){return q}});var n=a(50959),T=a(84875),P=a.n(T),V=a(31594),xe=a(1415),Ke=a(55904),j=h=>{const{getPrefixCls:we,direction:y}=(0,n.useContext)(V.E_),{prefixCls:g,className:Z}=h,B=we("input-group",g),Se=we("input"),[Ue,me]=(0,Ke.ZP)(Se),Me=P()(B,{[`${B}-lg`]:h.size==="large",[`${B}-sm`]:h.size==="small",[`${B}-compact`]:h.compact,[`${B}-rtl`]:y==="rtl"},me,Z),ct=(0,n.useContext)(xe.aM),fe=(0,n.useMemo)(()=>Object.assign(Object.assign({},ct),{isFormItemInput:!1}),[ct]);return Ue(n.createElement("span",{className:Me,style:h.style,onMouseEnter:h.onMouseEnter,onMouseLeave:h.onMouseLeave,onFocus:h.onFocus,onBlur:h.onBlur},n.createElement(xe.aM.Provider,{value:fe},h.children)))},M=a(21626),I=a(57249),W=a(96527),X=a(87017),A=a(12602),ae=a(59647),k=function(h,we){var y={};for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&we.indexOf(g)<0&&(y[g]=h[g]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(h);Zh?n.createElement(W.Z,null):n.createElement(I.Z,null),K={click:"onClick",hover:"onMouseOver"};var Pe=n.forwardRef((h,we)=>{const{visibilityToggle:y=!0}=h,g=typeof y=="object"&&y.visible!==void 0,[Z,B]=(0,n.useState)(()=>g?y.visible:!1),Se=(0,n.useRef)(null);n.useEffect(()=>{g&&B(y.visible)},[g,y]);const Ue=(0,ae.Z)(Se),me=()=>{const{disabled:lt}=h;lt||(Z&&Ue(),B(te=>{var Ze;const Ve=!te;return typeof y=="object"&&((Ze=y.onVisibleChange)===null||Ze===void 0||Ze.call(y,Ve)),Ve}))},Me=lt=>{const{action:te="click",iconRender:Ze=m}=h,Ve=K[te]||"",s=Ze(Z),ie={[Ve]:me,className:`${lt}-icon`,key:"passwordIcon",onMouseDown:Ne=>{Ne.preventDefault()},onMouseUp:Ne=>{Ne.preventDefault()}};return n.cloneElement(n.isValidElement(s)?s:n.createElement("span",null,s),ie)},{className:ct,prefixCls:fe,inputPrefixCls:le,size:je}=h,We=k(h,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:re}=n.useContext(V.E_),Te=re("input",le),Ce=re("input-password",fe),at=y&&Me(Ce),Ye=P()(Ce,ct,{[`${Ce}-${je}`]:!!je}),pt=Object.assign(Object.assign({},(0,X.Z)(We,["suffix","iconRender","visibilityToggle"])),{type:Z?"text":"password",className:Ye,prefixCls:Te,suffix:at});return je&&(pt.size=je),n.createElement(M.Z,Object.assign({ref:(0,A.sQ)(we,Se)},pt))}),H=a(61020),C=a(94914),L=a(47100),G=a(17436),_=a(21130),Q=function(h,we){var y={};for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&we.indexOf(g)<0&&(y[g]=h[g]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(h);Z{const{prefixCls:y,inputPrefixCls:g,className:Z,size:B,suffix:Se,enterButton:Ue=!1,addonAfter:me,loading:Me,disabled:ct,onSearch:fe,onChange:le,onCompositionStart:je,onCompositionEnd:We}=h,re=Q(h,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Te,direction:Ce}=n.useContext(V.E_),at=n.useRef(!1),Ye=Te("input-search",y),pt=Te("input",g),{compactSize:lt}=(0,_.ri)(Ye,Ce),te=(0,G.Z)(pe=>{var Oe;return(Oe=B!=null?B:lt)!==null&&Oe!==void 0?Oe:pe}),Ze=n.useRef(null),Ve=pe=>{pe&&pe.target&&pe.type==="click"&&fe&&fe(pe.target.value,pe,{source:"clear"}),le&&le(pe)},s=pe=>{var Oe;document.activeElement===((Oe=Ze.current)===null||Oe===void 0?void 0:Oe.input)&&pe.preventDefault()},ie=pe=>{var Oe,De;fe&&fe((De=(Oe=Ze.current)===null||Oe===void 0?void 0:Oe.input)===null||De===void 0?void 0:De.value,pe,{source:"input"})},Ne=pe=>{at.current||Me||ie(pe)},Fe=typeof Ue=="boolean"?n.createElement(H.Z,null):null,S=`${Ye}-button`;let N;const w=Ue||{},ne=w.type&&w.type.__ANT_BUTTON===!0;ne||w.type==="button"?N=(0,C.Tm)(w,Object.assign({onMouseDown:s,onClick:pe=>{var Oe,De;(De=(Oe=w==null?void 0:w.props)===null||Oe===void 0?void 0:Oe.onClick)===null||De===void 0||De.call(Oe,pe),ie(pe)},key:"enterButton"},ne?{className:S,size:te}:{})):N=n.createElement(L.ZP,{className:S,type:Ue?"primary":void 0,size:te,disabled:ct,key:"enterButton",onMouseDown:s,onClick:ie,loading:Me,icon:Fe},Ue),me&&(N=[N,(0,C.Tm)(me,{key:"addonAfter"})]);const Ee=P()(Ye,{[`${Ye}-rtl`]:Ce==="rtl",[`${Ye}-${te}`]:!!te,[`${Ye}-with-button`]:!!Ue},Z),Le=pe=>{at.current=!0,je==null||je(pe)},Be=pe=>{at.current=!1,We==null||We(pe)};return n.createElement(M.Z,Object.assign({ref:(0,A.sQ)(Ze,we),onPressEnter:Ne},re,{size:te,onCompositionStart:Le,onCompositionEnd:Be,prefixCls:pt,addonAfter:N,suffix:Se,onChange:Ve,className:Ee,disabled:ct}))}),O=a(15714);const d=M.Z;d.Group=j,d.Search=D,d.TextArea=O.Z,d.Password=Pe;var q=d},81863:function($t,Ie,a){a.d(Ie,{Ag:function(){return V},IH:function(){return xe},w:function(){return P}});var n=a(50959);const T=n.createContext(null),P=T.Provider;Ie.ZP=T;const V=n.createContext(null),xe=V.Provider},16803:function($t,Ie,a){var n=a(50959),T=a(84875),P=a.n(T),V=a(65589),xe=a(68924),Ke=a(31594),R=a(17436),j=a(81863),M=a(16671),I=a(81378),W=a(10254);const X=n.forwardRef((A,ae)=>{const{getPrefixCls:k,direction:m}=n.useContext(Ke.E_),[K,ye]=(0,V.Z)(A.defaultValue,{value:A.value}),Pe=fe=>{const le=K,je=fe.target.value;"value"in A||ye(je);const{onChange:We}=A;We&&je!==le&&We(fe)},{prefixCls:H,className:C,rootClassName:L,options:G,buttonStyle:_="outline",disabled:Q,children:ee,size:D,style:O,id:d,onMouseEnter:q,onMouseLeave:h,onFocus:we,onBlur:y}=A,g=k("radio",H),Z=`${g}-group`,B=(0,W.Z)(g),[Se,Ue]=(0,I.Z)(g,B);let me=ee;G&&G.length>0&&(me=G.map(fe=>typeof fe=="string"||typeof fe=="number"?n.createElement(M.Z,{key:fe.toString(),prefixCls:g,disabled:Q,value:fe,checked:K===fe},fe):n.createElement(M.Z,{key:`radio-group-value-options-${fe.value}`,prefixCls:g,disabled:fe.disabled||Q,value:fe.value,checked:K===fe.value,title:fe.title,style:fe.style,id:fe.id,required:fe.required},fe.label)));const Me=(0,R.Z)(D),ct=P()(Z,`${Z}-${_}`,{[`${Z}-${Me}`]:Me,[`${Z}-rtl`]:m==="rtl"},C,L,Ue,B);return Se(n.createElement("div",Object.assign({},(0,xe.Z)(A,{aria:!0,data:!0}),{className:ct,style:O,onMouseEnter:q,onMouseLeave:h,onFocus:we,onBlur:y,id:d,ref:ae}),n.createElement(j.w,{value:{onChange:Pe,value:K,disabled:A.disabled,name:A.name,optionType:A.optionType}},me)))});Ie.Z=n.memo(X)},22900:function($t,Ie,a){var n=a(16803),T=a(16671),P=a(40896);const V=T.Z;V.Button=P.Z,V.Group=n.Z,V.__ANT_RADIO=!0,Ie.ZP=V},16671:function($t,Ie,a){var n=a(50959),T=a(84875),P=a.n(T),V=a(53314),xe=a(12602),Ke=a(42672),R=a(43312),j=a(31594),M=a(69943),I=a(1415),W=a(81863),X=a(81378),A=a(10254),ae=function(K,ye){var Pe={};for(var H in K)Object.prototype.hasOwnProperty.call(K,H)&&ye.indexOf(H)<0&&(Pe[H]=K[H]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,H=Object.getOwnPropertySymbols(K);C{var Pe,H;const C=n.useContext(W.ZP),L=n.useContext(W.Ag),{getPrefixCls:G,direction:_,radio:Q}=n.useContext(j.E_),ee=n.useRef(null),D=(0,xe.sQ)(ye,ee),{isFormItemInput:O}=n.useContext(I.aM),d=We=>{var re,Te;(re=K.onChange)===null||re===void 0||re.call(K,We),(Te=C==null?void 0:C.onChange)===null||Te===void 0||Te.call(C,We)},{prefixCls:q,className:h,rootClassName:we,children:y,style:g}=K,Z=ae(K,["prefixCls","className","rootClassName","children","style"]),B=G("radio",q),Se=((C==null?void 0:C.optionType)||L)==="button",Ue=Se?`${B}-button`:B,me=(0,A.Z)(B),[Me,ct]=(0,X.Z)(B,me),fe=Object.assign({},Z),le=n.useContext(M.Z);C&&(fe.name=C.name,fe.onChange=d,fe.checked=K.value===C.value,fe.disabled=(Pe=fe.disabled)!==null&&Pe!==void 0?Pe:C.disabled),fe.disabled=(H=fe.disabled)!==null&&H!==void 0?H:le;const je=P()(`${Ue}-wrapper`,{[`${Ue}-wrapper-checked`]:fe.checked,[`${Ue}-wrapper-disabled`]:fe.disabled,[`${Ue}-wrapper-rtl`]:_==="rtl",[`${Ue}-wrapper-in-form-item`]:O},Q==null?void 0:Q.className,h,we,ct,me);return Me(n.createElement(Ke.Z,{component:"Radio",disabled:fe.disabled},n.createElement("label",{className:je,style:Object.assign(Object.assign({},Q==null?void 0:Q.style),g),onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave},n.createElement(V.Z,Object.assign({},fe,{className:P()(fe.className,!Se&&R.A),type:"radio",prefixCls:Ue,ref:D})),y!==void 0?n.createElement("span",null,y):null)))},m=n.forwardRef(k);Ie.Z=m},40896:function($t,Ie,a){var n=a(50959),T=a(31594),P=a(81863),V=a(16671),xe=function(R,j){var M={};for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&j.indexOf(I)<0&&(M[I]=R[I]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,I=Object.getOwnPropertySymbols(R);W{const{getPrefixCls:M}=n.useContext(T.E_),{prefixCls:I}=R,W=xe(R,["prefixCls"]),X=M("radio",I);return n.createElement(P.IH,{value:"button"},n.createElement(V.Z,Object.assign({prefixCls:X},W,{type:"radio",ref:j})))};Ie.Z=n.forwardRef(Ke)},81378:function($t,Ie,a){var n=a(60076),T=a(6301),P=a(81501),V=a(90467);const xe=M=>{const{componentCls:I,antCls:W}=M,X=`${I}-group`;return{[X]:Object.assign(Object.assign({},(0,T.Wf)(M)),{display:"inline-block",fontSize:0,[`&${X}-rtl`]:{direction:"rtl"},[`${W}-badge ${W}-badge-count`]:{zIndex:1},[`> ${W}-badge:not(:first-child) > ${W}-button-wrapper`]:{borderInlineStart:"none"}})}},Ke=M=>{const{componentCls:I,wrapperMarginInlineEnd:W,colorPrimary:X,radioSize:A,motionDurationSlow:ae,motionDurationMid:k,motionEaseInOutCirc:m,colorBgContainer:K,colorBorder:ye,lineWidth:Pe,colorBgContainerDisabled:H,colorTextDisabled:C,paddingXS:L,dotColorDisabled:G,lineType:_,radioColor:Q,radioBgColor:ee,calc:D}=M,O=`${I}-inner`,d=4,q=D(A).sub(D(d).mul(2)),h=D(1).mul(A).equal();return{[`${I}-wrapper`]:Object.assign(Object.assign({},(0,T.Wf)(M)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:W,cursor:"pointer",[`&${I}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:M.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${I}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,n.bf)(Pe)} ${_} ${X}`,borderRadius:"50%",visibility:"hidden",content:'""'},[I]:Object.assign(Object.assign({},(0,T.Wf)(M)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${I}-wrapper:hover &, + &:hover ${O}`]:{borderColor:X},[`${I}-input:focus-visible + ${O}`]:Object.assign({},(0,T.oN)(M)),[`${I}:hover::after, ${I}-wrapper:hover &::after`]:{visibility:"visible"},[`${I}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:h,height:h,marginBlockStart:D(1).mul(A).div(-2).equal(),marginInlineStart:D(1).mul(A).div(-2).equal(),backgroundColor:Q,borderBlockStart:0,borderInlineStart:0,borderRadius:h,transform:"scale(0)",opacity:0,transition:`all ${ae} ${m}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:h,height:h,backgroundColor:K,borderColor:ye,borderStyle:"solid",borderWidth:Pe,borderRadius:"50%",transition:`all ${k}`},[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${I}-checked`]:{[O]:{borderColor:X,backgroundColor:ee,"&::after":{transform:`scale(${M.calc(M.dotSize).div(A).equal()})`,opacity:1,transition:`all ${ae} ${m}`}}},[`${I}-disabled`]:{cursor:"not-allowed",[O]:{backgroundColor:H,borderColor:ye,cursor:"not-allowed","&::after":{backgroundColor:G}},[`${I}-input`]:{cursor:"not-allowed"},[`${I}-disabled + span`]:{color:C,cursor:"not-allowed"},[`&${I}-checked`]:{[O]:{"&::after":{transform:`scale(${D(q).div(A).equal({unit:!1})})`}}}},[`span${I} + *`]:{paddingInlineStart:L,paddingInlineEnd:L}})}},R=M=>{const{buttonColor:I,controlHeight:W,componentCls:X,lineWidth:A,lineType:ae,colorBorder:k,motionDurationSlow:m,motionDurationMid:K,buttonPaddingInline:ye,fontSize:Pe,buttonBg:H,fontSizeLG:C,controlHeightLG:L,controlHeightSM:G,paddingXS:_,borderRadius:Q,borderRadiusSM:ee,borderRadiusLG:D,buttonCheckedBg:O,buttonSolidCheckedColor:d,colorTextDisabled:q,colorBgContainerDisabled:h,buttonCheckedBgDisabled:we,buttonCheckedColorDisabled:y,colorPrimary:g,colorPrimaryHover:Z,colorPrimaryActive:B,buttonSolidCheckedBg:Se,buttonSolidCheckedHoverBg:Ue,buttonSolidCheckedActiveBg:me,calc:Me}=M;return{[`${X}-button-wrapper`]:{position:"relative",display:"inline-block",height:W,margin:0,paddingInline:ye,paddingBlock:0,color:I,fontSize:Pe,lineHeight:(0,n.bf)(Me(W).sub(Me(A).mul(2)).equal()),background:H,border:`${(0,n.bf)(A)} ${ae} ${k}`,borderBlockStartWidth:Me(A).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:A,cursor:"pointer",transition:[`color ${K}`,`background ${K}`,`box-shadow ${K}`].join(","),a:{color:I},[`> ${X}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Me(A).mul(-1).equal(),insetInlineStart:Me(A).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:A,paddingInline:0,backgroundColor:k,transition:`background-color ${m}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,n.bf)(A)} ${ae} ${k}`,borderStartStartRadius:Q,borderEndStartRadius:Q},"&:last-child":{borderStartEndRadius:Q,borderEndEndRadius:Q},"&:first-child:last-child":{borderRadius:Q},[`${X}-group-large &`]:{height:L,fontSize:C,lineHeight:(0,n.bf)(Me(L).sub(Me(A).mul(2)).equal()),"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${X}-group-small &`]:{height:G,paddingInline:Me(_).sub(A).equal(),paddingBlock:0,lineHeight:(0,n.bf)(Me(G).sub(Me(A).mul(2)).equal()),"&:first-child":{borderStartStartRadius:ee,borderEndStartRadius:ee},"&:last-child":{borderStartEndRadius:ee,borderEndEndRadius:ee}},"&:hover":{position:"relative",color:g},"&:has(:focus-visible)":Object.assign({},(0,T.oN)(M)),[`${X}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${X}-button-wrapper-disabled)`]:{zIndex:1,color:g,background:O,borderColor:g,"&::before":{backgroundColor:g},"&:first-child":{borderColor:g},"&:hover":{color:Z,borderColor:Z,"&::before":{backgroundColor:Z}},"&:active":{color:B,borderColor:B,"&::before":{backgroundColor:B}}},[`${X}-group-solid &-checked:not(${X}-button-wrapper-disabled)`]:{color:d,background:Se,borderColor:Se,"&:hover":{color:d,background:Ue,borderColor:Ue},"&:active":{color:d,background:me,borderColor:me}},"&-disabled":{color:q,backgroundColor:h,borderColor:k,cursor:"not-allowed","&:first-child, &:hover":{color:q,backgroundColor:h,borderColor:k}},[`&-disabled${X}-button-wrapper-checked`]:{color:y,backgroundColor:we,borderColor:k,boxShadow:"none"}}}},j=M=>{const{wireframe:I,padding:W,marginXS:X,lineWidth:A,fontSizeLG:ae,colorText:k,colorBgContainer:m,colorTextDisabled:K,controlItemBgActiveDisabled:ye,colorTextLightSolid:Pe,colorPrimary:H,colorPrimaryHover:C,colorPrimaryActive:L,colorWhite:G}=M,_=4,Q=ae,ee=I?Q-_*2:Q-(_+A)*2;return{radioSize:Q,dotSize:ee,dotColorDisabled:K,buttonSolidCheckedColor:Pe,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:C,buttonSolidCheckedActiveBg:L,buttonBg:m,buttonCheckedBg:m,buttonColor:k,buttonCheckedBgDisabled:ye,buttonCheckedColorDisabled:K,buttonPaddingInline:W-A,wrapperMarginInlineEnd:X,radioColor:I?H:G,radioBgColor:I?m:H}};Ie.Z=(0,P.I$)("Radio",M=>{const{controlOutline:I,controlOutlineWidth:W}=M,X=`0 0 0 ${(0,n.bf)(W)} ${I}`,A=X,ae=(0,V.TS)(M,{radioFocusShadow:X,radioButtonFocusShadow:A});return[xe(ae),Ke(ae),R(ae)]},j,{unitless:{radioSize:!0,dotSize:!0}})},56815:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(50959);function T(P,V,xe){const Ke=n.useRef({});function R(j){if(!Ke.current||Ke.current.data!==P||Ke.current.childrenColumnName!==V||Ke.current.getRowKey!==xe){let I=function(W){W.forEach((X,A)=>{const ae=xe(X,A);M.set(ae,X),X&&typeof X=="object"&&V in X&&I(X[V]||[])})};const M=new Map;I(P),Ke.current={data:P,childrenColumnName:V,kvMap:M,getRowKey:xe}}return Ke.current.kvMap.get(j)}return[R]}},31796:function($t,Ie,a){a.d(Ie,{Z:function(){return Ul}});var n=a(50959),T={},P="rc-table-internal-hook",V=a(32682),xe=a(7748),Ke=a(77189),R=a(18342),j=a(10422);function M(e){var t=n.createContext(void 0),r=function(l){var i=l.value,u=l.children,f=n.useRef(i);f.current=i;var c=n.useState(function(){return{getValue:function(){return f.current},listeners:new Set}}),p=(0,V.Z)(c,1),b=p[0];return(0,Ke.Z)(function(){(0,j.unstable_batchedUpdates)(function(){b.listeners.forEach(function(v){v(i)})})},[i]),n.createElement(t.Provider,{value:b},u)};return{Context:t,Provider:r,defaultValue:e}}function I(e,t){var r=(0,xe.Z)(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var E={};return t.forEach(function(x){E[x]=v[x]}),E}),o=n.useContext(e==null?void 0:e.Context),l=o||{},i=l.listeners,u=l.getValue,f=n.useRef();f.current=r(o?u():e==null?void 0:e.defaultValue);var c=n.useState({}),p=(0,V.Z)(c,2),b=p[1];return(0,Ke.Z)(function(){if(!o)return;function v(E){var x=r(E);(0,R.Z)(f.current,x,!0)||b({})}return i.add(v),function(){i.delete(v)}},[o]),f.current}var W=a(38126),X=a(12602);function A(){var e=n.createContext(null);function t(){return n.useContext(e)}function r(l,i){var u=(0,X.Yr)(l),f=function(p,b){var v=u?{ref:b}:{},E=n.useRef(0),x=n.useRef(p),$=t();return $!==null?n.createElement(l,(0,W.Z)({},p,v)):((!i||i(x.current,p))&&(E.current+=1),x.current=p,n.createElement(e.Provider,{value:E.current},n.createElement(l,(0,W.Z)({},p,v))))};return u?n.forwardRef(f):f}function o(l,i){var u=(0,X.Yr)(l),f=function(p,b){var v=u?{ref:b}:{};return t(),n.createElement(l,(0,W.Z)({},p,v))};return u?n.memo(n.forwardRef(f),i):n.memo(f,i)}return{makeImmutable:r,responseImmutable:o,useImmutableMark:t}}var ae=A(),k=ae.makeImmutable,m=ae.responseImmutable,K=ae.useImmutableMark,ye=A(),Pe=ye.makeImmutable,H=ye.responseImmutable,C=ye.useImmutableMark,L=M(),G=L;function _(e,t){var r=n.useRef(0);r.current+=1;var o=n.useRef(e),l=[];Object.keys(e||{}).map(function(u){var f;(e==null?void 0:e[u])!==((f=o.current)===null||f===void 0?void 0:f[u])&&l.push(u)}),o.current=e;var i=n.useRef([]);return l.length&&(i.current=l),n.useDebugValue(r.current),n.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),r.current,i.current),r.current}var Q=null,ee=n.memo(function(){var e=_();return n.createElement("h1",null,"Render Times: ",e)});ee.displayName="RenderBlock";var D=a(40727),O=a(33346),d=a(73273),q=a(84875),h=a.n(q),we=a(12554),y=a(85108),g=a(12868),Z=n.createContext({renderWithProps:!1}),B=Z,Se="RC_TABLE_KEY";function Ue(e){return e==null?[]:Array.isArray(e)?e:[e]}function me(e){var t=[],r={};return e.forEach(function(o){for(var l=o||{},i=l.key,u=l.dataIndex,f=i||Ue(u).join("-")||Se;r[f];)f="".concat(f,"_next");r[f]=!0,t.push(f)}),t}function Me(e){return e!=null}function ct(e){return e&&(0,D.Z)(e)==="object"&&!Array.isArray(e)&&!n.isValidElement(e)}function fe(e,t,r,o,l,i){var u=n.useContext(B),f=C(),c=(0,we.Z)(function(){if(Me(o))return[o];var p=t==null||t===""?[]:Array.isArray(t)?t:[t],b=(0,y.Z)(e,p),v=b,E=void 0;if(l){var x=l(b,e,r);ct(x)?(v=x.children,E=x.props,u.renderWithProps=!0):v=x}return[v,E]},[f,e,o,t,l,r],function(p,b){if(i){var v=(0,V.Z)(p,2),E=v[1],x=(0,V.Z)(b,2),$=x[1];return i($,E)}return u.renderWithProps?!0:!(0,R.Z)(p,b,!0)});return c}function le(e,t,r,o){var l=e+t-1;return e<=o&&l>=r}function je(e,t){return I(G,function(r){var o=le(e,t||1,r.hoverStartRow,r.hoverEndRow);return[o,r.onHover]})}var We=function(t){var r=t.ellipsis,o=t.rowType,l=t.children,i,u=r===!0?{showTitle:!0}:r;return u&&(u.showTitle||o==="header")&&(typeof l=="string"||typeof l=="number"?i=l.toString():n.isValidElement(l)&&typeof l.props.children=="string"&&(i=l.props.children)),i};function re(e){var t,r,o,l,i,u,f,c,p=e.component,b=e.children,v=e.ellipsis,E=e.scope,x=e.prefixCls,$=e.className,U=e.align,F=e.record,oe=e.render,Y=e.dataIndex,J=e.renderIndex,$e=e.shouldCellUpdate,ge=e.index,be=e.rowType,He=e.colSpan,Qe=e.rowSpan,ve=e.fixLeft,nt=e.fixRight,ue=e.firstFixLeft,se=e.lastFixLeft,z=e.firstFixRight,he=e.lastFixRight,_e=e.appendNode,Je=e.additionalProps,ke=Je===void 0?{}:Je,rt=e.isSticky,mt="".concat(x,"-cell"),qe=I(G,["supportSticky","allColumnsFixedLeft"]),gt=qe.supportSticky,Mt=qe.allColumnsFixedLeft,jt=fe(F,Y,J,b,oe,$e),Qt=(0,V.Z)(jt,2),Dt=Qt[0],it=Qt[1],Rt={},Ft=typeof ve=="number"&>,ft=typeof nt=="number"&>Ft&&(Rt.position="sticky",Rt.left=ve),ft&&(Rt.position="sticky",Rt.right=nt);var Bt=(t=(r=(o=it==null?void 0:it.colSpan)!==null&&o!==void 0?o:ke.colSpan)!==null&&r!==void 0?r:He)!==null&&t!==void 0?t:1,Re=(l=(i=(u=it==null?void 0:it.rowSpan)!==null&&u!==void 0?u:ke.rowSpan)!==null&&i!==void 0?i:Qe)!==null&&l!==void 0?l:1,ot=je(ge,Re),Ae=(0,V.Z)(ot,2),ze=Ae[0],de=Ae[1],et=function(Ht){var _t;F&&de(ge,ge+Re-1),ke==null||(_t=ke.onMouseEnter)===null||_t===void 0||_t.call(ke,Ht)},ht=function(Ht){var _t;F&&de(-1,-1),ke==null||(_t=ke.onMouseLeave)===null||_t===void 0||_t.call(ke,Ht)};if(Bt===0||Re===0)return null;var Tt=(f=ke.title)!==null&&f!==void 0?f:We({rowType:be,ellipsis:v,children:Dt}),nn=h()(mt,$,(c={},(0,d.Z)(c,"".concat(mt,"-fix-left"),Ft&>),(0,d.Z)(c,"".concat(mt,"-fix-left-first"),ue&>),(0,d.Z)(c,"".concat(mt,"-fix-left-last"),se&>),(0,d.Z)(c,"".concat(mt,"-fix-left-all"),se&&Mt&>),(0,d.Z)(c,"".concat(mt,"-fix-right"),ft&>),(0,d.Z)(c,"".concat(mt,"-fix-right-first"),z&>),(0,d.Z)(c,"".concat(mt,"-fix-right-last"),he&>),(0,d.Z)(c,"".concat(mt,"-ellipsis"),v),(0,d.Z)(c,"".concat(mt,"-with-append"),_e),(0,d.Z)(c,"".concat(mt,"-fix-sticky"),(Ft||ft)&&rt&>),(0,d.Z)(c,"".concat(mt,"-row-hover"),!it&&ze),c),ke.className,it==null?void 0:it.className),dt={};U&&(dt.textAlign=U);var un=(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},Rt),ke.style),dt),it==null?void 0:it.style),Jt=Dt;return(0,D.Z)(Jt)==="object"&&!Array.isArray(Jt)&&!n.isValidElement(Jt)&&(Jt=null),v&&(se||z)&&(Jt=n.createElement("span",{className:"".concat(mt,"-content")},Jt)),n.createElement(p,(0,W.Z)({},it,ke,{className:nn,style:un,title:Tt,scope:E,onMouseEnter:et,onMouseLeave:ht,colSpan:Bt!==1?Bt:null,rowSpan:Re!==1?Re:null}),_e,Jt)}var Te=n.memo(re);function Ce(e,t,r,o,l,i){var u=r[e]||{},f=r[t]||{},c,p;u.fixed==="left"?c=o.left[l==="rtl"?t:e]:f.fixed==="right"&&(p=o.right[l==="rtl"?e:t]);var b=!1,v=!1,E=!1,x=!1,$=r[t+1],U=r[e-1],F=!(i!=null&&i.children);if(l==="rtl"){if(c!==void 0){var oe=U&&U.fixed==="left";x=!oe&&F}else if(p!==void 0){var Y=$&&$.fixed==="right";E=!Y&&F}}else if(c!==void 0){var J=$&&$.fixed==="left";b=!J&&F}else if(p!==void 0){var $e=U&&U.fixed==="right";v=!$e&&F}return{fixLeft:c,fixRight:p,lastFixLeft:b,firstFixRight:v,lastFixRight:E,firstFixLeft:x,isSticky:o.isSticky}}var at=n.createContext({}),Ye=at;function pt(e){var t=e.className,r=e.index,o=e.children,l=e.colSpan,i=l===void 0?1:l,u=e.rowSpan,f=e.align,c=I(G,["prefixCls","direction"]),p=c.prefixCls,b=c.direction,v=n.useContext(Ye),E=v.scrollColumnIndex,x=v.stickyOffsets,$=v.flattenColumns,U=v.columns,F=r+i-1,oe=F+1===E?i+1:i,Y=Ce(r,r+oe-1,$,x,b,U==null?void 0:U[r]);return n.createElement(Te,(0,W.Z)({className:t,index:r,component:"td",prefixCls:p,record:null,dataIndex:null,align:f,colSpan:oe,rowSpan:u,render:function(){return o}},Y))}var lt=a(10570),te=["children"];function Ze(e){var t=e.children,r=(0,lt.Z)(e,te);return n.createElement("tr",r,t)}function Ve(e){var t=e.children;return t}Ve.Row=Ze,Ve.Cell=pt;var s=Ve;function ie(e){var t=e.children,r=e.stickyOffsets,o=e.flattenColumns,l=e.columns,i=I(G,"prefixCls"),u=o.length-1,f=o[u],c=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:f!=null&&f.scrollbar?u:null,columns:l}},[f,o,u,r,l]);return n.createElement(Ye.Provider,{value:c},n.createElement("tfoot",{className:"".concat(i,"-summary")},t))}var Ne=H(ie),Fe=s,S=a(12682),N=a(95992),w=a(5449),ne=a(22692),Ee=a(68924);function Le(e,t,r,o,l,i,u){e.push({record:t,indent:r,index:u});var f=i(t),c=l==null?void 0:l.has(f);if(t&&Array.isArray(t[o])&&c)for(var p=0;p1?ue-1:0),z=1;z=0;f-=1){var c=t[f],p=r&&r[f],b=p&&p[Pt];if(c||b||u){var v=b||{},E=v.columnType,x=(0,lt.Z)(v,At);l.unshift(n.createElement("col",(0,W.Z)({key:f,style:{width:c}},x))),u=!0}}return n.createElement("colgroup",null,l)}var cn=tn,Ct=a(1788),mn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sn(e,t){return(0,n.useMemo)(function(){for(var r=[],o=0;o1?"colgroup":"col":null,ellipsis:F.ellipsis,align:F.align,component:F.title?i:u,prefixCls:b,key:x[U]},oe,{additionalProps:Y,rowType:"header"}))}))}Wn.displayName="HeaderRow";var rr=Wn;function or(e){var t=[];function r(u,f){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var p=f,b=u.filter(Boolean).map(function(v){var E={key:v.key,className:v.className||"",children:v.title,column:v,colStart:p},x=1,$=v.children;return $&&$.length>0&&(x=r($,p,c+1).reduce(function(U,F){return U+F},0),E.hasSubColumns=!0),"colSpan"in v&&(x=v.colSpan),"rowSpan"in v&&(E.rowSpan=v.rowSpan),E.colSpan=x,E.colEnd=E.colStart+x-1,t[c].push(E),p+=x,x});return b}r(e,0);for(var o=t.length,l=function(f){t[f].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=o-f)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Xn(e,t,r){return n.useMemo(function(){if(t&&t>0){var o=0,l=0;e.forEach(function(E){var x=Gn(t,E.width);x?o+=x:l+=1});var i=Math.max(t,r),u=Math.max(i-o,l),f=l,c=u/l,p=0,b=e.map(function(E){var x=(0,O.Z)({},E),$=Gn(t,x.width);if($)x.width=$;else{var U=Math.floor(c);x.width=f===1?u:U,u-=U,f-=1}return p+=x.width,x});if(p1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&(0,D.Z)(r)==="object"}).reduce(function(r,o,l){var i=o.fixed,u=i===!0?"left":i,f="".concat(t,"-").concat(l),c=o.children;return c&&c.length>0?[].concat((0,Ct.Z)(r),(0,Ct.Z)(hn(c,f).map(function(p){return(0,O.Z)({fixed:u},p)}))):[].concat((0,Ct.Z)(r),[(0,O.Z)((0,O.Z)({key:f},o),{},{fixed:u})])},[])}function Yr(e){for(var t=!0,r=0;r=0;i-=1){var u=e[i];if(l&&u.fixed!=="right")l=!1;else if(!l&&u.fixed==="right"){warning(!1,"Index ".concat(i+1," of `columns` missing `fixed='right'` prop."));break}}}function lr(e){return e.map(function(t){var r=t.fixed,o=(0,lt.Z)(t,Kn),l=r;return r==="left"?l="right":r==="right"&&(l="left"),(0,O.Z)({fixed:l},o)})}function $r(e,t){var r=e.prefixCls,o=e.columns,l=e.children,i=e.expandable,u=e.expandedKeys,f=e.columnTitle,c=e.getRowKey,p=e.onTriggerExpand,b=e.expandIcon,v=e.rowExpandable,E=e.expandIconColumnIndex,x=e.direction,$=e.expandRowByClick,U=e.columnWidth,F=e.fixed,oe=e.scrollWidth,Y=e.clientWidth,J=n.useMemo(function(){return o||Ln(l)},[o,l]),$e=n.useMemo(function(){if(i){var ue,se=J.slice();if(!se.includes(T)){var z=E||0;z>=0&&se.splice(z,0,T)}var he=se.indexOf(T);se=se.filter(function(rt,mt){return rt!==T||mt===he});var _e=J[he],Je;(F==="left"||F)&&!E?Je="left":(F==="right"||F)&&E===J.length?Je="right":Je=_e?_e.fixed:null;var ke=(ue={},(0,d.Z)(ue,Pt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,d.Z)(ue,"title",f),(0,d.Z)(ue,"fixed",Je),(0,d.Z)(ue,"className","".concat(r,"-row-expand-icon-cell")),(0,d.Z)(ue,"width",U),(0,d.Z)(ue,"render",function(mt,qe,gt){var Mt=c(qe,gt),jt=u.has(Mt),Qt=v?v(qe):!0,Dt=b({prefixCls:r,expanded:jt,expandable:Qt,record:qe,onExpand:p});return $?n.createElement("span",{onClick:function(Rt){return Rt.stopPropagation()}},Dt):Dt}),ue);return se.map(function(rt){return rt===T?ke:rt})}return J.filter(function(rt){return rt!==T})},[i,J,c,u,b,x]),ge=n.useMemo(function(){var ue=$e;return t&&(ue=t(ue)),ue.length||(ue=[{render:function(){return null}}]),ue},[t,$e,x]),be=n.useMemo(function(){return x==="rtl"?lr(hn(ge)):hn(ge)},[ge,x,oe]),He=Xn(be,oe,Y),Qe=(0,V.Z)(He,2),ve=Qe[0],nt=Qe[1];return[ge,ve,nt]}var vr=$r;function Pr(e){var t,r=e.prefixCls,o=e.record,l=e.onExpand,i=e.expanded,u=e.expandable,f="".concat(r,"-row-expand-icon");if(!u)return n.createElement("span",{className:h()(f,"".concat(r,"-row-spaced"))});var c=function(b){l(o,b),b.stopPropagation()};return n.createElement("span",{className:h()(f,(t={},(0,d.Z)(t,"".concat(r,"-row-expanded"),i),(0,d.Z)(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:c})}function ir(e,t,r){var o=[];function l(i){(i||[]).forEach(function(u,f){o.push(t(u,f)),l(u[r])})}return l(e),o}function pr(e,t,r){var o=Vt(e),l=o.expandIcon,i=o.expandedRowKeys,u=o.defaultExpandedRowKeys,f=o.defaultExpandAllRows,c=o.expandedRowRender,p=o.onExpand,b=o.onExpandedRowsChange,v=o.childrenColumnName,E=l||Pr,x=v||"children",$=n.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===P&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(ge){return ge&&(0,D.Z)(ge)==="object"&&ge[x]})?"nest":!1},[!!c,t]),U=n.useState(function(){return u||(f?ir(t,r,x):[])}),F=(0,V.Z)(U,2),oe=F[0],Y=F[1],J=n.useMemo(function(){return new Set(i||oe||[])},[i,oe]),$e=n.useCallback(function(ge){var be=r(ge,t.indexOf(ge)),He,Qe=J.has(be);Qe?(J.delete(be),He=(0,Ct.Z)(J)):He=[].concat((0,Ct.Z)(J),[be]),Y(He),p&&p(!Qe,ge),b&&b(He)},[r,J,t,p,b]);return[o,$,J,E,x,$e]}function sr(e,t,r,o){var l=e.map(function(i,u){return Ce(u,u,e,t,r,o==null?void 0:o[u])});return(0,we.Z)(function(){return l},[l],function(i,u){return!(0,R.Z)(i,u)})}function mr(e){var t=(0,n.useRef)(e),r=(0,n.useState)({}),o=(0,V.Z)(r,2),l=o[1],i=(0,n.useRef)(null),u=(0,n.useRef)([]);function f(c){u.current.push(c);var p=Promise.resolve();i.current=p,p.then(function(){if(i.current===p){var b=u.current,v=t.current;u.current=[],b.forEach(function(E){t.current=E(t.current)}),i.current=null,v!==t.current&&l({})}})}return(0,n.useEffect)(function(){return function(){i.current=null}},[]),[t.current,f]}function gr(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function o(){window.clearTimeout(r.current)}function l(u){t.current=u,o(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return(0,n.useEffect)(function(){return o},[]),[l,i]}function zt(){var e=n.useState(-1),t=(0,V.Z)(e,2),r=t[0],o=t[1],l=n.useState(-1),i=(0,V.Z)(l,2),u=i[0],f=i[1],c=n.useCallback(function(p,b){o(p),f(b)},[]);return[r,u,c]}var En=a(63490),On=(0,En.Z)()?window:null;function Dn(e,t){var r=(0,D.Z)(e)==="object"?e:{},o=r.offsetHeader,l=o===void 0?0:o,i=r.offsetSummary,u=i===void 0?0:i,f=r.offsetScroll,c=f===void 0?0:f,p=r.getContainer,b=p===void 0?function(){return On}:p,v=b()||On;return n.useMemo(function(){var E=!!e;return{isSticky:E,stickyClassName:E?"".concat(t,"-sticky-holder"):"",offsetHeader:l,offsetSummary:u,offsetScroll:c,container:v}},[c,l,u,t,v])}function Nn(e,t,r){var o=(0,n.useMemo)(function(){for(var l=[],i=[],u=0,f=0,c=0;c=v&&(ke=v-E),u({scrollLeft:ke/v*(b+2)}),Y.current.x=z.pageX},nt=function(){if(i.current){var z=(0,Nr.os)(i.current).top,he=z+i.current.offsetHeight,_e=c===window?document.documentElement.scrollTop+window.innerHeight:(0,Nr.os)(c).top+c.clientHeight;he-(0,ne.Z)()<=_e||z>=_e-f?oe(function(Je){return(0,O.Z)((0,O.Z)({},Je),{},{isHiddenScrollBar:!0})}):oe(function(Je){return(0,O.Z)((0,O.Z)({},Je),{},{isHiddenScrollBar:!1})})}},ue=function(z){oe(function(he){return(0,O.Z)((0,O.Z)({},he),{},{scrollLeft:z/b*v||0})})};return n.useImperativeHandle(r,function(){return{setScrollLeft:ue}}),n.useEffect(function(){var se=(0,wn.Z)(document.body,"mouseup",He,!1),z=(0,wn.Z)(document.body,"mousemove",ve,!1);return nt(),function(){se.remove(),z.remove()}},[E,ge]),n.useEffect(function(){var se=(0,wn.Z)(c,"scroll",nt,!1),z=(0,wn.Z)(window,"resize",nt,!1);return function(){se.remove(),z.remove()}},[c]),n.useEffect(function(){F.isHiddenScrollBar||oe(function(se){var z=i.current;return z?(0,O.Z)((0,O.Z)({},se),{},{scrollLeft:z.scrollLeft/z.scrollWidth*z.clientWidth}):se})},[F.isHiddenScrollBar]),b<=v||!E||F.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,ne.Z)(),width:v,bottom:f},className:"".concat(p,"-sticky-scroll")},n.createElement("div",{onMouseDown:Qe,ref:x,className:h()("".concat(p,"-sticky-scroll-bar"),(0,d.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ge)),style:{width:"".concat(E,"px"),transform:"translate3d(".concat(F.scrollLeft,"px, 0, 0)")}}))},zo=n.forwardRef(Ho);function jo(e){return null}var Wo=jo;function Uo(e){return null}var Vo=Uo,Qr="rc-table",Go=[],Xo={};function Yo(){return"No Data"}function Qo(e,t){var r,o=(0,O.Z)({rowKey:"key",prefixCls:Qr,emptyText:Yo},e),l=o.prefixCls,i=o.className,u=o.rowClassName,f=o.style,c=o.data,p=o.rowKey,b=o.scroll,v=o.tableLayout,E=o.direction,x=o.title,$=o.footer,U=o.summary,F=o.caption,oe=o.id,Y=o.showHeader,J=o.components,$e=o.emptyText,ge=o.onRow,be=o.onHeaderRow,He=o.internalHooks,Qe=o.transformColumns,ve=o.internalRefs,nt=o.tailor,ue=o.getContainerWidth,se=o.sticky,z=c||Go,he=!!z.length,_e=He===P,Je=n.useCallback(function(xt,wt){return(0,y.Z)(J,xt)||wt},[J]),ke=n.useMemo(function(){return typeof p=="function"?p:function(xt){var wt=xt&&xt[p];return wt}},[p]),rt=Je(["body"]),mt=zt(),qe=(0,V.Z)(mt,3),gt=qe[0],Mt=qe[1],jt=qe[2],Qt=pr(o,z,ke),Dt=(0,V.Z)(Qt,6),it=Dt[0],Rt=Dt[1],Ft=Dt[2],ft=Dt[3],Bt=Dt[4],Re=Dt[5],ot=b==null?void 0:b.x,Ae=n.useState(0),ze=(0,V.Z)(Ae,2),de=ze[0],et=ze[1],ht=vr((0,O.Z)((0,O.Z)((0,O.Z)({},o),it),{},{expandable:!!it.expandedRowRender,columnTitle:it.columnTitle,expandedKeys:Ft,getRowKey:ke,onTriggerExpand:Re,expandIcon:ft,expandIconColumnIndex:it.expandIconColumnIndex,direction:E,scrollWidth:_e&&nt&&typeof ot=="number"?ot:null,clientWidth:de}),_e?Qe:null),Tt=(0,V.Z)(ht,3),nn=Tt[0],dt=Tt[1],un=Tt[2],Jt=un!=null?un:ot,yn=n.useMemo(function(){return{columns:nn,flattenColumns:dt}},[nn,dt]),Ht=n.useRef(),_t=n.useRef(),Zt=n.useRef(),_n=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:Ht.current,scrollTo:function(wt){var ln;if(Zt.current instanceof HTMLElement){var rn=wt.index,xn=wt.top,nr=wt.key;if(xn){var zn;(zn=Zt.current)===null||zn===void 0||zn.scrollTo({top:xn})}else{var jn,fr=nr!=null?nr:ke(z[rn]);(jn=Zt.current.querySelector('[data-row-key="'.concat(fr,'"]')))===null||jn===void 0||jn.scrollIntoView()}}else(ln=Zt.current)!==null&&ln!==void 0&&ln.scrollTo&&Zt.current.scrollTo(wt)}}});var qn=n.useRef(),er=n.useState(!1),Et=(0,V.Z)(er,2),It=Et[0],bt=Et[1],qt=n.useState(!1),Wt=(0,V.Z)(qt,2),Lt=Wt[0],St=Wt[1],fn=mr(new Map),on=(0,V.Z)(fn,2),$n=on[0],bn=on[1],ur=me(dt),An=ur.map(function(xt){return $n.get(xt)}),Fn=n.useMemo(function(){return An},[An.join("_")]),en=Rn(Fn,dt.length,E),Ut=b&&Me(b.y),Gt=b&&Me(Jt)||!!it.fixed,Cn=Gt&&dt.some(function(xt){var wt=xt.fixed;return wt}),Hn=n.useRef(),vn=Dn(se,l),Pn=vn.isSticky,Fr=vn.offsetHeader,Hr=vn.offsetSummary,zr=vn.offsetScroll,Sr=vn.stickyClassName,jr=vn.container,tt=n.useMemo(function(){return U==null?void 0:U(z)},[U,z]),Ot=(Ut||Pn)&&n.isValidElement(tt)&&tt.type===s&&tt.props.fixed,Xt,Yt,an;Ut&&(Yt={overflowY:"scroll",maxHeight:b.y}),Gt&&(Xt={overflowX:"auto"},Ut||(Yt={overflowY:"hidden"}),an={width:Jt===!0?"auto":Jt,minWidth:"100%"});var dn=n.useCallback(function(xt,wt){(0,N.Z)(Ht.current)&&bn(function(ln){if(ln.get(xt)!==wt){var rn=new Map(ln);return rn.set(xt,wt),rn}return ln})},[]),pn=gr(null),Mn=(0,V.Z)(pn,2),Vl=Mn[0],$o=Mn[1];function Er(xt,wt){wt&&(typeof wt=="function"?wt(xt):wt.scrollLeft!==xt&&(wt.scrollLeft=xt,wt.scrollLeft!==xt&&setTimeout(function(){wt.scrollLeft=xt},0)))}var tr=(0,xe.Z)(function(xt){var wt=xt.currentTarget,ln=xt.scrollLeft,rn=E==="rtl",xn=typeof ln=="number"?ln:wt.scrollLeft,nr=wt||Xo;if(!$o()||$o()===nr){var zn;Vl(nr),Er(xn,_t.current),Er(xn,Zt.current),Er(xn,qn.current),Er(xn,(zn=Hn.current)===null||zn===void 0?void 0:zn.setScrollLeft)}var jn=wt||_t.current;if(jn){var fr=jn.scrollWidth,Xr=jn.clientWidth;if(fr===Xr){bt(!1),St(!1);return}rn?(bt(-xn0)):(bt(xn>0),St(xn1?U-z:0,_e=(0,O.Z)((0,O.Z)((0,O.Z)({},He),c),{},{flex:"0 0 ".concat(z,"px"),width:"".concat(z,"px"),marginRight:he,pointerEvents:"auto"}),Je=n.useMemo(function(){return b?ue<=1:ve===0||ue===0||ue>1},[ue,ve,b]);Je?_e.visibility="hidden":b&&(_e.height=v==null?void 0:v(ue));var ke=Je?function(){return null}:E,rt={};return(ue===0||ve===0)&&(rt.rowSpan=1,rt.colSpan=1),n.createElement(Te,(0,W.Z)({className:h()($,p),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:"div",prefixCls:t.prefixCls,key:J,record:f,index:i,renderIndex:u,dataIndex:x,render:ke,shouldCellUpdate:r.shouldCellUpdate},$e,{appendNode:ge,additionalProps:(0,O.Z)((0,O.Z)({},be),{},{style:_e},rt)}))}var na=ta,ra=["data","index","className","rowKey","style","extra","getHeight"],oa=n.forwardRef(function(e,t){var r=e.data,o=e.index,l=e.className,i=e.rowKey,u=e.style,f=e.extra,c=e.getHeight,p=(0,lt.Z)(e,ra),b=r.record,v=r.indent,E=r.index,x=I(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),$=x.scrollX,U=x.flattenColumns,F=x.prefixCls,oe=x.fixColumn,Y=x.componentWidth,J=Oe(b,i,o,v),$e=J.rowSupportExpand,ge=J.expanded,be=J.rowProps,He=J.expandedRowRender,Qe=J.expandedRowClassName,ve;if($e&&ge){var nt=He(b,o,v+1,ge),ue=Qe==null?void 0:Qe(b,o,v),se={};oe&&(se={style:(0,d.Z)({},"--virtual-width","".concat(Y,"px"))});var z="".concat(F,"-expanded-row-cell");ve=n.createElement("div",{className:h()("".concat(F,"-expanded-row"),"".concat(F,"-expanded-row-level-").concat(v+1),ue)},n.createElement(Te,{component:"div",prefixCls:F,className:h()(z,(0,d.Z)({},"".concat(z,"-fixed"),oe)),additionalProps:se},nt))}var he=(0,O.Z)((0,O.Z)({},u),{},{width:$});f&&(he.position="absolute",he.pointerEvents="none");var _e=n.createElement("div",(0,W.Z)({},be,p,{ref:$e?null:t,className:h()(l,"".concat(F,"-row"),be==null?void 0:be.className,(0,d.Z)({},"".concat(F,"-row-extra"),f)),style:(0,O.Z)((0,O.Z)({},he),be==null?void 0:be.style)}),U.map(function(Je,ke){return n.createElement(na,{key:ke,rowInfo:J,column:Je,colIndex:ke,indent:v,index:o,renderIndex:E,record:b,inverse:f,getHeight:c})}));return $e?n.createElement("div",{ref:t},_e,ve):_e}),aa=H(oa),eo=aa,la=n.forwardRef(function(e,t){var r=e.data,o=e.onScroll,l=I(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=l.flattenColumns,u=l.onColumnResize,f=l.getRowKey,c=l.expandedKeys,p=l.prefixCls,b=l.childrenColumnName,v=l.emptyNode,E=l.scrollX,x=I(_r),$=x.sticky,U=x.scrollY,F=x.listItemHeight,oe=n.useRef(),Y=Be(r,b,c,f),J=n.useMemo(function(){var ue=0;return i.map(function(se){var z=se.width,he=se.key;return ue+=z,[he,z,ue]})},[i]),$e=n.useMemo(function(){return J.map(function(ue){return ue[2]})},[J]);n.useEffect(function(){J.forEach(function(ue){var se=(0,V.Z)(ue,2),z=se[0],he=se[1];u(z,he)})},[J]),n.useImperativeHandle(t,function(){var ue={scrollTo:function(z){var he;(he=oe.current)===null||he===void 0||he.scrollTo(z)}};return Object.defineProperty(ue,"scrollLeft",{get:function(){var z;return((z=oe.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var he;(he=oe.current)===null||he===void 0||he.scrollTo({left:z})}}),ue});var ge=function(se,z){var he,_e=(he=Y[z])===null||he===void 0?void 0:he.record,Je=se.onCell;if(Je){var ke,rt=Je(_e,z);return(ke=rt==null?void 0:rt.rowSpan)!==null&&ke!==void 0?ke:1}return 1},be=function(se){var z=se.start,he=se.end,_e=se.getSize,Je=se.offsetY;if(he<0)return null;for(var ke=i.filter(function(ft){return ge(ft,z)===0}),rt=z,mt=function(Bt){if(ke=ke.filter(function(Re){return ge(Re,Bt)===0}),!ke.length)return rt=Bt,1},qe=z;qe>=0&&!mt(qe);qe-=1);for(var gt=i.filter(function(ft){return ge(ft,he)!==1}),Mt=he,jt=function(Bt){if(gt=gt.filter(function(Re){return ge(Re,Bt)!==1}),!gt.length)return Mt=Math.max(Bt-1,he),1},Qt=he;Qt1})&&Dt.push(Bt)},Rt=rt;Rt<=Mt;Rt+=1)it(Rt);var Ft=Dt.map(function(ft){var Bt=Y[ft],Re=f(Bt.record,ft),ot=function(de){var et=ft+de-1,ht=f(Y[et].record,et),Tt=_e(Re,ht);return Tt.bottom-Tt.top},Ae=_e(Re);return n.createElement(eo,{key:ft,data:Bt,rowKey:Re,index:ft,style:{top:-Je+Ae.top},extra:!0,getHeight:ot})});return Ft},He=n.useMemo(function(){return{columnsOffset:$e}},[$e]),Qe="".concat(p,"-tbody"),ve;if(Y.length){var nt={};$&&(nt.position="sticky",nt.bottom=0,(0,D.Z)($)==="object"&&$.offsetScroll&&(nt.bottom=$.offsetScroll)),ve=n.createElement(qo.Z,{fullHeight:!1,ref:oe,styles:{horizontalScrollBar:nt},className:h()(Qe,"".concat(Qe,"-virtual")),height:U,itemHeight:F||24,data:Y,itemKey:function(se){return f(se.record)},scrollWidth:E,onVirtualScroll:function(se){var z=se.x;o({scrollLeft:z})},extraRender:be},function(ue,se,z){var he=f(ue.record,se);return n.createElement(eo,(0,W.Z)({data:ue,rowKey:he,index:se},z))})}else ve=n.createElement("div",{className:h()("".concat(p,"-placeholder"))},n.createElement(Te,{component:"div",prefixCls:p},v));return n.createElement(qr.Provider,{value:He},ve)}),ia=H(la),sa=ia,da=function(t,r){var o=r.ref,l=r.onScroll;return n.createElement(sa,{ref:o,data:t,onScroll:l})};function ca(e,t){var r=e.columns,o=e.scroll,l=e.sticky,i=e.prefixCls,u=i===void 0?Qr:i,f=e.className,c=e.listItemHeight,p=e.components,b=o||{},v=b.x,E=b.y;typeof v!="number"&&(v=1),typeof E!="number"&&(E=500);var x=n.useMemo(function(){return{sticky:l,scrollY:E,listItemHeight:c}},[l,E,c]);return n.createElement(_r.Provider,{value:x},n.createElement(_o,(0,W.Z)({},e,{className:h()(f,"".concat(u,"-virtual")),scroll:(0,O.Z)((0,O.Z)({},o),{},{x:v}),components:(0,O.Z)((0,O.Z)({},p),{},{body:da}),columns:r,internalHooks:P,tailor:!0,ref:t})))}var ua=n.forwardRef(ca);function to(e){return Pe(ua,e)}var ti=to(),ni=null;function fa(e){return null}var va=fa;function pa(e){return null}var ma=pa,ga=a(85824),no=a(31087),Rr=a(27545),ha=a(25237),ya=a(65589),ba=a(85556),Ir=a(27970),hr=a(87894),ro=a(10591),oo=a(22900);const kn={},Kr="SELECT_ALL",Dr="SELECT_INVERT",Tr="SELECT_NONE",ao=[],lo=(e,t)=>{let r=[];return(t||[]).forEach(o=>{r.push(o),o&&typeof o=="object"&&e in o&&(r=[].concat((0,Ct.Z)(r),(0,Ct.Z)(lo(e,o[e]))))}),r};var Ca=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:o,defaultSelectedRowKeys:l,getCheckboxProps:i,onChange:u,onSelect:f,onSelectAll:c,onSelectInvert:p,onSelectNone:b,onSelectMultiple:v,columnWidth:E,type:x,selections:$,fixed:U,renderCell:F,hideSelectAll:oe,checkStrictly:Y=!0}=t||{},{prefixCls:J,data:$e,pageData:ge,getRecordByKey:be,getRowKey:He,expandType:Qe,childrenColumnName:ve,locale:nt,getPopupContainer:ue}=e,se=(0,Ir.ln)("Table"),[z,he]=(0,ba.Z)(Re=>Re),[_e,Je]=(0,ya.Z)(o||l||ao,{value:o}),ke=n.useRef(new Map),rt=(0,n.useCallback)(Re=>{if(r){const ot=new Map;Re.forEach(Ae=>{let ze=be(Ae);!ze&&ke.current.has(Ae)&&(ze=ke.current.get(Ae)),ot.set(Ae,ze)}),ke.current=ot}},[be,r]);n.useEffect(()=>{rt(_e)},[_e]);const{keyEntities:mt}=(0,n.useMemo)(()=>{if(Y)return{keyEntities:null};let Re=$e;if(r){const ot=new Set($e.map((ze,de)=>He(ze,de))),Ae=Array.from(ke.current).reduce((ze,de)=>{let[et,ht]=de;return ot.has(et)?ze:ze.concat(ht)},[]);Re=[].concat((0,Ct.Z)(Re),(0,Ct.Z)(Ae))}return(0,ha.I8)(Re,{externalGetKey:He,childrenPropName:ve})},[$e,He,Y,ve,r]),qe=(0,n.useMemo)(()=>lo(ve,ge),[ve,ge]),gt=(0,n.useMemo)(()=>{const Re=new Map;return qe.forEach((ot,Ae)=>{const ze=He(ot,Ae),de=(i?i(ot):null)||{};Re.set(ze,de)}),Re},[qe,He,i]),Mt=(0,n.useCallback)(Re=>{var ot;return!!(!((ot=gt.get(He(Re)))===null||ot===void 0)&&ot.disabled)},[gt,He]),[jt,Qt]=(0,n.useMemo)(()=>{if(Y)return[_e||[],[]];const{checkedKeys:Re,halfCheckedKeys:ot}=(0,Rr.S)(_e,!0,mt,Mt);return[Re||[],ot]},[_e,Y,mt,Mt]),Dt=(0,n.useMemo)(()=>{const Re=x==="radio"?jt.slice(0,1):jt;return new Set(Re)},[jt,x]),it=(0,n.useMemo)(()=>x==="radio"?new Set:new Set(Qt),[Qt,x]);n.useEffect(()=>{t||Je(ao)},[!!t]);const Rt=(0,n.useCallback)((Re,ot)=>{let Ae,ze;rt(Re),r?(Ae=Re,ze=Re.map(de=>ke.current.get(de))):(Ae=[],ze=[],Re.forEach(de=>{const et=be(de);et!==void 0&&(Ae.push(de),ze.push(et))})),Je(Ae),u==null||u(Ae,ze,{type:ot})},[Je,be,u,r]),Ft=(0,n.useCallback)((Re,ot,Ae,ze)=>{if(f){const de=Ae.map(et=>be(et));f(be(Re),ot,de,ze)}Rt(Ae,"single")},[f,be,Rt]),ft=(0,n.useMemo)(()=>!$||oe?null:($===!0?[Kr,Dr,Tr]:$).map(ot=>ot===Kr?{key:"all",text:nt.selectionAll,onSelect(){Rt($e.map((Ae,ze)=>He(Ae,ze)).filter(Ae=>{const ze=gt.get(Ae);return!(ze!=null&&ze.disabled)||Dt.has(Ae)}),"all")}}:ot===Dr?{key:"invert",text:nt.selectInvert,onSelect(){const Ae=new Set(Dt);ge.forEach((de,et)=>{const ht=He(de,et),Tt=gt.get(ht);Tt!=null&&Tt.disabled||(Ae.has(ht)?Ae.delete(ht):Ae.add(ht))});const ze=Array.from(Ae);p&&(se.deprecated(!1,"onSelectInvert","onChange"),p(ze)),Rt(ze,"invert")}}:ot===Tr?{key:"none",text:nt.selectNone,onSelect(){b==null||b(),Rt(Array.from(Dt).filter(Ae=>{const ze=gt.get(Ae);return ze==null?void 0:ze.disabled}),"none")}}:ot).map(ot=>Object.assign(Object.assign({},ot),{onSelect:function(){for(var Ae,ze,de=arguments.length,et=new Array(de),ht=0;ht{var ot;if(!t)return Re.filter(Et=>Et!==kn);let Ae=(0,Ct.Z)(Re);const ze=new Set(Dt),de=qe.map(He).filter(Et=>!gt.get(Et).disabled),et=de.every(Et=>ze.has(Et)),ht=de.some(Et=>ze.has(Et)),Tt=()=>{const Et=[];et?de.forEach(bt=>{ze.delete(bt),Et.push(bt)}):de.forEach(bt=>{ze.has(bt)||(ze.add(bt),Et.push(bt))});const It=Array.from(ze);c==null||c(!et,It.map(bt=>be(bt)),Et.map(bt=>be(bt))),Rt(It,"all"),he(null)};let nn,dt;if(x!=="radio"){let Et;if(ft){const Lt={getPopupContainer:ue,items:ft.map((St,fn)=>{const{key:on,text:$n,onSelect:bn}=St;return{key:on!=null?on:fn,onClick:()=>{bn==null||bn(de)},label:$n}})};Et=n.createElement("div",{className:`${J}-selection-extra`},n.createElement(ro.Z,{menu:Lt,getPopupContainer:ue},n.createElement("span",null,n.createElement(ga.Z,null))))}const It=qe.map((Lt,St)=>{const fn=He(Lt,St),on=gt.get(fn)||{};return Object.assign({checked:ze.has(fn)},on)}).filter(Lt=>{let{disabled:St}=Lt;return St}),bt=!!It.length&&It.length===qe.length,qt=bt&&It.every(Lt=>{let{checked:St}=Lt;return St}),Wt=bt&&It.some(Lt=>{let{checked:St}=Lt;return St});dt=n.createElement(hr.Z,{checked:bt?qt:!!qe.length&&et,indeterminate:bt?!qt&&Wt:!et&&ht,onChange:Tt,disabled:qe.length===0||bt,"aria-label":Et?"Custom selection":"Select all",skipGroup:!0}),nn=!oe&&n.createElement("div",{className:`${J}-selection`},dt,Et)}let un;x==="radio"?un=(Et,It,bt)=>{const qt=He(It,bt),Wt=ze.has(qt);return{node:n.createElement(oo.ZP,Object.assign({},gt.get(qt),{checked:Wt,onClick:Lt=>Lt.stopPropagation(),onChange:Lt=>{ze.has(qt)||Ft(qt,!0,[qt],Lt.nativeEvent)}})),checked:Wt}}:un=(Et,It,bt)=>{var qt;const Wt=He(It,bt),Lt=ze.has(Wt),St=it.has(Wt),fn=gt.get(Wt);let on;return Qe==="nest"?on=St:on=(qt=fn==null?void 0:fn.indeterminate)!==null&&qt!==void 0?qt:St,{node:n.createElement(hr.Z,Object.assign({},fn,{indeterminate:on,checked:Lt,skipGroup:!0,onClick:$n=>$n.stopPropagation(),onChange:$n=>{let{nativeEvent:bn}=$n;const{shiftKey:ur}=bn,An=de.findIndex(en=>en===Wt),Fn=jt.some(en=>de.includes(en));if(ur&&Y&&Fn){const en=z(An,de,ze),Ut=Array.from(ze);v==null||v(!Lt,Ut.map(Gt=>be(Gt)),en.map(Gt=>be(Gt))),Rt(Ut,"multiple")}else{const en=jt;if(Y){const Ut=Lt?(0,no._5)(en,Wt):(0,no.L0)(en,Wt);Ft(Wt,!Lt,Ut,bn)}else{const Ut=(0,Rr.S)([].concat((0,Ct.Z)(en),[Wt]),!0,mt,Mt),{checkedKeys:Gt,halfCheckedKeys:Cn}=Ut;let Hn=Gt;if(Lt){const vn=new Set(Gt);vn.delete(Wt),Hn=(0,Rr.S)(Array.from(vn),{checked:!1,halfCheckedKeys:Cn},mt,Mt).checkedKeys}Ft(Wt,!Lt,Hn,bn)}}he(Lt?null:An)}})),checked:Lt}};const Jt=(Et,It,bt)=>{const{node:qt,checked:Wt}=un(Et,It,bt);return F?F(Wt,It,bt,qt):qt};if(!Ae.includes(kn))if(Ae.findIndex(Et=>{var It;return((It=Et[Pt])===null||It===void 0?void 0:It.columnType)==="EXPAND_COLUMN"})===0){const[Et,...It]=Ae;Ae=[Et,kn].concat((0,Ct.Z)(It))}else Ae=[kn].concat((0,Ct.Z)(Ae));const yn=Ae.indexOf(kn);Ae=Ae.filter((Et,It)=>Et!==kn||It===yn);const Ht=Ae[yn-1],_t=Ae[yn+1];let Zt=U;Zt===void 0&&((_t==null?void 0:_t.fixed)!==void 0?Zt=_t.fixed:(Ht==null?void 0:Ht.fixed)!==void 0&&(Zt=Ht.fixed)),Zt&&Ht&&((ot=Ht[Pt])===null||ot===void 0?void 0:ot.columnType)==="EXPAND_COLUMN"&&Ht.fixed===void 0&&(Ht.fixed=Zt);const _n=h()(`${J}-selection-col`,{[`${J}-selection-col-with-dropdown`]:$&&x==="checkbox"}),qn=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(dt):t.columnTitle:nn,er={fixed:Zt,width:E,className:`${J}-selection-column`,title:qn(),render:Jt,onCell:t.onCell,[Pt]:{className:_n}};return Ae.map(Et=>Et===kn?er:Et)},[He,qe,t,jt,Dt,it,E,ft,Qe,gt,v,Ft,Mt]),Dt]},xa=a(87017);function Sa(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const o=e[r];e._antProxy[r]=o,e[r]=t[r]}}),e}function Ea(e,t){return(0,n.useImperativeHandle)(e,()=>{const r=t(),{nativeElement:o}=r;return typeof Proxy!="undefined"?new Proxy(o,{get(l,i){return r[i]?r[i]:Reflect.get(l,i)}}):Sa(o,r)})}var Oa=a(68617),io=a(31594),wa=a(7717),$a=a(10254),Pa=a(17436),Na=a(70836),Ra=a(59848),Ia=a(98162),Ka=a(38705),Da=a(99455);function Ta(e){return function(r){let{prefixCls:o,onExpand:l,record:i,expanded:u,expandable:f}=r;const c=`${o}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:p=>{l(i,p),p.stopPropagation()},className:h()(c,{[`${c}-spaced`]:!f,[`${c}-expanded`]:f&&u,[`${c}-collapsed`]:f&&!u}),"aria-label":u?e.collapse:e.expand,"aria-expanded":u})}}var ka=Ta;function Ma(e){return(r,o)=>{const l=r.querySelector(`.${e}-container`);let i=o;if(l){const u=getComputedStyle(l),f=parseInt(u.borderLeftWidth,10),c=parseInt(u.borderRightWidth,10);i=o-f-c}return i}}function Bn(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function dr(e,t){return t?`${t}-${e}`:`${e}`}function yr(e,t){return typeof e=="function"?e(t):e}function Za(e,t){const r=yr(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var La={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"},Ba=La,kr=a(38782),Aa=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:Ba}))},Fa=n.forwardRef(Aa),Ha=a(2116);function za(e){const t=n.useRef(e),r=(0,Ha.Z)();return[()=>t.current,o=>{t.current=o,r()}]}var so=a(47100),co=a(55877),ja=a(62737),Wa=a(52022),Ua=a(57976),Va=a(61020),Ga=a(33952);function Xa(e){let{value:t,onChange:r,filterSearch:o,tablePrefixCls:l,locale:i}=e;return o?n.createElement("div",{className:`${l}-filter-dropdown-search`},n.createElement(Ga.Z,{prefix:n.createElement(Va.Z,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null}var uo=Xa,fo=a(57);const Ya=e=>{const{keyCode:t}=e;t===fo.Z.ENTER&&e.stopPropagation()};var Qa=n.forwardRef((e,t)=>n.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:Ya,ref:t},e.children));function Jn(e){let t=[];return(e||[]).forEach(r=>{let{value:o,children:l}=r;t.push(o),l&&(t=[].concat((0,Ct.Z)(t),(0,Ct.Z)(Jn(l))))}),t}function Ja(e){return e.some(t=>{let{children:r}=t;return r})}function vo(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function po(e){let{filters:t,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:u}=e;return t.map((f,c)=>{const p=String(f.value);if(f.children)return{key:p||c,label:f.text,popupClassName:`${r}-dropdown-submenu`,children:po({filters:f.children,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:u})};const b=l?hr.Z:oo.ZP,v={key:f.value!==void 0?p:c,label:n.createElement(n.Fragment,null,n.createElement(b,{checked:o.includes(p)}),n.createElement("span",null,f.text))};return i.trim()?typeof u=="function"?u(i,f)?v:null:vo(i,f.text)?v:null:v})}function Mr(e){return e||[]}function _a(e){var t,r;const{tablePrefixCls:o,prefixCls:l,column:i,dropdownPrefixCls:u,columnKey:f,filterMultiple:c,filterMode:p="menu",filterSearch:b=!1,filterState:v,triggerFilter:E,locale:x,children:$,getPopupContainer:U}=e,{filterDropdownOpen:F,onFilterDropdownOpenChange:oe,filterResetToDefaultFilteredValue:Y,defaultFilteredValue:J,filterDropdownVisible:$e,onFilterDropdownVisibleChange:ge}=i,[be,He]=n.useState(!1),Qe=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),ve=de=>{He(de),oe==null||oe(de),ge==null||ge(de)},nt=(r=F!=null?F:$e)!==null&&r!==void 0?r:be,ue=v==null?void 0:v.filteredKeys,[se,z]=za(Mr(ue)),he=de=>{let{selectedKeys:et}=de;z(et)},_e=(de,et)=>{let{node:ht,checked:Tt}=et;he(c?{selectedKeys:de}:{selectedKeys:Tt&&ht.key?[ht.key]:[]})};n.useEffect(()=>{be&&he({selectedKeys:Mr(ue)})},[ue]);const[Je,ke]=n.useState([]),rt=de=>{ke(de)},[mt,qe]=n.useState(""),gt=de=>{const{value:et}=de.target;qe(et)};n.useEffect(()=>{be||qe("")},[be]);const Mt=de=>{const et=de&&de.length?de:null;if(et===null&&(!v||!v.filteredKeys)||(0,R.Z)(et,v==null?void 0:v.filteredKeys,!0))return null;E({column:i,key:f,filteredKeys:et})},jt=()=>{ve(!1),Mt(se())},Qt=function(){let{confirm:de,closeDropdown:et}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&Mt([]),et&&ve(!1),qe(""),z(Y?(J||[]).map(ht=>String(ht)):[])},Dt=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&ve(!1),Mt(se())},it=(de,et)=>{et.source==="trigger"&&(de&&ue!==void 0&&z(Mr(ue)),ve(de),!de&&!i.filterDropdown&&jt())},Rt=h()({[`${u}-menu-without-submenu`]:!Ja(i.filters||[])}),Ft=de=>{if(de.target.checked){const et=Jn(i==null?void 0:i.filters).map(ht=>String(ht));z(et)}else z([])},ft=de=>{let{filters:et}=de;return(et||[]).map((ht,Tt)=>{const nn=String(ht.value),dt={title:ht.text,key:ht.value!==void 0?nn:String(Tt)};return ht.children&&(dt.children=ft({filters:ht.children})),dt})},Bt=de=>{var et;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((et=de.children)===null||et===void 0?void 0:et.map(ht=>Bt(ht)))||[]})};let Re;if(typeof i.filterDropdown=="function")Re=i.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:de=>he({selectedKeys:de}),selectedKeys:se(),confirm:Dt,clearFilters:Qt,filters:i.filters,visible:nt,close:()=>{ve(!1)}});else if(i.filterDropdown)Re=i.filterDropdown;else{const de=se()||[],et=()=>(i.filters||[]).length===0?n.createElement(co.Z,{image:co.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):p==="tree"?n.createElement(n.Fragment,null,n.createElement(uo,{filterSearch:b,value:mt,onChange:gt,tablePrefixCls:o,locale:x}),n.createElement("div",{className:`${o}-filter-dropdown-tree`},c?n.createElement(hr.Z,{checked:de.length===Jn(i.filters).length,indeterminate:de.length>0&&de.lengthtypeof b=="function"?b(mt,Bt(Tt)):vo(mt,Tt.title):void 0}))):n.createElement(n.Fragment,null,n.createElement(uo,{filterSearch:b,value:mt,onChange:gt,tablePrefixCls:o,locale:x}),n.createElement(ja.Z,{selectable:!0,multiple:c,prefixCls:`${u}-menu`,className:Rt,onSelect:he,onDeselect:he,selectedKeys:de,getPopupContainer:U,openKeys:Je,onOpenChange:rt,items:po({filters:i.filters||[],filterSearch:b,prefixCls:l,filteredKeys:se(),filterMultiple:c,searchValue:mt})})),ht=()=>Y?(0,R.Z)((J||[]).map(Tt=>String(Tt)),de,!0):de.length===0;Re=n.createElement(n.Fragment,null,et(),n.createElement("div",{className:`${l}-dropdown-btns`},n.createElement(so.ZP,{type:"link",size:"small",disabled:ht(),onClick:()=>Qt()},x.filterReset),n.createElement(so.ZP,{type:"primary",size:"small",onClick:jt},x.filterConfirm)))}i.filterDropdown&&(Re=n.createElement(Wa.J,{selectable:void 0},Re));const ot=()=>n.createElement(Qa,{className:`${l}-dropdown`},Re);let Ae;typeof i.filterIcon=="function"?Ae=i.filterIcon(Qe):i.filterIcon?Ae=i.filterIcon:Ae=n.createElement(Fa,null);const{direction:ze}=n.useContext(io.E_);return n.createElement("div",{className:`${l}-column`},n.createElement("span",{className:`${o}-column-title`},$),n.createElement(ro.Z,{dropdownRender:ot,trigger:["click"],open:nt,onOpenChange:it,getPopupContainer:U,placement:ze==="rtl"?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:h()(`${l}-trigger`,{active:Qe}),onClick:de=>{de.stopPropagation()}},Ae)))}var qa=_a;function Zr(e,t,r){let o=[];return(e||[]).forEach((l,i)=>{var u;const f=dr(i,r);if(l.filters||"filterDropdown"in l||"onFilter"in l)if("filteredValue"in l){let c=l.filteredValue;"filterDropdown"in l||(c=(u=c==null?void 0:c.map(String))!==null&&u!==void 0?u:c),o.push({column:l,key:Bn(l,f),filteredKeys:c,forceFiltered:l.filtered})}else o.push({column:l,key:Bn(l,f),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(o=[].concat((0,Ct.Z)(o),(0,Ct.Z)(Zr(l.children,t,f))))}),o}function mo(e,t,r,o,l,i,u,f){return r.map((c,p)=>{const b=dr(p,f),{filterMultiple:v=!0,filterMode:E,filterSearch:x}=c;let $=c;if($.filters||$.filterDropdown){const U=Bn($,b),F=o.find(oe=>{let{key:Y}=oe;return U===Y});$=Object.assign(Object.assign({},$),{title:oe=>n.createElement(qa,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:$,columnKey:U,filterState:F,filterMultiple:v,filterMode:E,filterSearch:x,triggerFilter:i,locale:l,getPopupContainer:u},yr(c.title,oe))})}return"children"in $&&($=Object.assign(Object.assign({},$),{children:mo(e,t,$.children,o,l,i,u,b)})),$})}function go(e){const t={};return e.forEach(r=>{let{key:o,filteredKeys:l,column:i}=r;const u=o,{filters:f,filterDropdown:c}=i;if(c)t[u]=l||null;else if(Array.isArray(l)){const p=Jn(f);t[u]=p.filter(b=>l.includes(String(b)))}else t[u]=null}),t}function ho(e,t){return t.reduce((r,o)=>{const{column:{onFilter:l,filters:i},filteredKeys:u}=o;return l&&u&&u.length?r.filter(f=>u.some(c=>{const p=Jn(i),b=p.findIndex(E=>String(E)===String(c)),v=b!==-1?p[b]:c;return l(v,f)})):r},e)}const yo=e=>e.flatMap(t=>"children"in t?[t].concat((0,Ct.Z)(yo(t.children||[]))):[t]);function el(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:l,getPopupContainer:i,locale:u}=e;const f=(0,Ir.ln)("Table"),c=n.useMemo(()=>yo(o||[]),[o]),[p,b]=n.useState(()=>Zr(c,!0)),v=n.useMemo(()=>{const U=Zr(c,!1);if(U.length===0)return U;let F=!0,oe=!0;if(U.forEach(Y=>{let{filteredKeys:J}=Y;J!==void 0?F=!1:oe=!1}),F){const Y=(c||[]).map((J,$e)=>Bn(J,dr($e)));return p.filter(J=>{let{key:$e}=J;return Y.includes($e)}).map(J=>{const $e=c[Y.findIndex(ge=>ge===J.key)];return Object.assign(Object.assign({},J),{column:Object.assign(Object.assign({},J.column),$e),forceFiltered:$e.filtered})})}return U},[c,p]),E=n.useMemo(()=>go(v),[v]),x=U=>{const F=v.filter(oe=>{let{key:Y}=oe;return Y!==U.key});F.push(U),b(F),l(go(F),F)};return[U=>mo(t,r,U,v,u,x,i),v,E]}var tl=el,nl=a(56815),rl=a(41616),ol=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{const i=e[l];typeof i!="function"&&(r[l]=i)}),r}function ll(e,t,r){const o=r&&typeof r=="object"?r:{},{total:l=0}=o,i=ol(o,["total"]),[u,f]=(0,n.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:bo})),c=(0,rl.Z)(u,i,{total:l>0?l:e}),p=Math.ceil((l||e)/c.pageSize);c.current>p&&(c.current=p||1);const b=(E,x)=>{f({current:E!=null?E:1,pageSize:x||c.pageSize})},v=(E,x)=>{var $;r&&(($=r.onChange)===null||$===void 0||$.call(r,E,x)),b(E,x),t(E,x||(c==null?void 0:c.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:v}),b]}var il=ll,sl=a(7819),dl=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:sl.Z}))},cl=n.forwardRef(dl),ul=a(71506),fl=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:ul.Z}))},vl=n.forwardRef(fl),pl=a(32618);const br="ascend",Lr="descend";function Cr(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Co(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ml(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Br(e,t,r){let o=[];function l(i,u){o.push({column:i,key:Bn(i,u),multiplePriority:Cr(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,u)=>{const f=dr(u,r);i.children?("sortOrder"in i&&l(i,f),o=[].concat((0,Ct.Z)(o),(0,Ct.Z)(Br(i.children,t,f)))):i.sorter&&("sortOrder"in i?l(i,f):t&&i.defaultSortOrder&&o.push({column:i,key:Bn(i,f),multiplePriority:Cr(i),sortOrder:i.defaultSortOrder}))}),o}function xo(e,t,r,o,l,i,u,f){return(t||[]).map((c,p)=>{const b=dr(p,f);let v=c;if(v.sorter){const E=v.sortDirections||l,x=v.showSorterTooltip===void 0?u:v.showSorterTooltip,$=Bn(v,b),U=r.find(Qe=>{let{key:ve}=Qe;return ve===$}),F=U?U.sortOrder:null,oe=ml(E,F);let Y;if(c.sortIcon)Y=c.sortIcon({sortOrder:F});else{const Qe=E.includes(br)&&n.createElement(vl,{className:h()(`${e}-column-sorter-up`,{active:F===br})}),ve=E.includes(Lr)&&n.createElement(cl,{className:h()(`${e}-column-sorter-down`,{active:F===Lr})});Y=n.createElement("span",{className:h()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(Qe&&ve)})},n.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},Qe,ve))}const{cancelSort:J,triggerAsc:$e,triggerDesc:ge}=i||{};let be=J;oe===Lr?be=ge:oe===br&&(be=$e);const He=typeof x=="object"?Object.assign({title:be},x):{title:be};v=Object.assign(Object.assign({},v),{className:h()(v.className,{[`${e}-column-sort`]:F}),title:Qe=>{const ve=n.createElement("div",{className:`${e}-column-sorters`},n.createElement("span",{className:`${e}-column-title`},yr(c.title,Qe)),Y);return x?n.createElement(pl.Z,Object.assign({},He),ve):ve},onHeaderCell:Qe=>{const ve=c.onHeaderCell&&c.onHeaderCell(Qe)||{},nt=ve.onClick,ue=ve.onKeyDown;ve.onClick=he=>{o({column:c,key:$,sortOrder:oe,multiplePriority:Cr(c)}),nt==null||nt(he)},ve.onKeyDown=he=>{he.keyCode===fo.Z.ENTER&&(o({column:c,key:$,sortOrder:oe,multiplePriority:Cr(c)}),ue==null||ue(he))};const se=Za(c.title,{}),z=se==null?void 0:se.toString();return F?ve["aria-sort"]=F==="ascend"?"ascending":"descending":ve["aria-label"]=z||"",ve.className=h()(ve.className,`${e}-column-has-sorters`),ve.tabIndex=0,c.ellipsis&&(ve.title=(se!=null?se:"").toString()),ve}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:xo(e,v.children,r,o,l,i,u,b)})),v})}function So(e){const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function Eo(e){const t=e.filter(r=>{let{sortOrder:o}=r;return o}).map(So);return t.length===0&&e.length?Object.assign(Object.assign({},So(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Ar(e,t,r){const o=t.slice().sort((u,f)=>f.multiplePriority-u.multiplePriority),l=e.slice(),i=o.filter(u=>{let{column:{sorter:f},sortOrder:c}=u;return Co(f)&&c});return i.length?l.sort((u,f)=>{for(let c=0;c{const f=u[r];return f?Object.assign(Object.assign({},u),{[r]:Ar(f,t,r)}):u}):l}function gl(e){let{prefixCls:t,mergedColumns:r,onSorterChange:o,sortDirections:l,tableLocale:i,showSorterTooltip:u}=e;const[f,c]=n.useState(Br(r,!0)),p=n.useMemo(()=>{let $=!0;const U=Br(r,!1);if(!U.length)return f;const F=[];function oe(J){$?F.push(J):F.push(Object.assign(Object.assign({},J),{sortOrder:null}))}let Y=null;return U.forEach(J=>{Y===null?(oe(J),J.sortOrder&&(J.multiplePriority===!1?$=!1:Y=!0)):(Y&&J.multiplePriority!==!1||($=!1),oe(J))}),F},[r,f]),b=n.useMemo(()=>{const $=p.map(U=>{let{column:F,sortOrder:oe}=U;return{column:F,order:oe}});return{sortColumns:$,sortColumn:$[0]&&$[0].column,sortOrder:$[0]&&$[0].order}},[p]);function v($){let U;$.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?U=[$]:U=[].concat((0,Ct.Z)(p.filter(F=>{let{key:oe}=F;return oe!==$.key})),[$]),c(U),o(Eo(U),U)}return[$=>xo(t,$,p,v,l,i,u),p,b,()=>Eo(p)]}function Oo(e,t){return e.map(r=>{const o=Object.assign({},r);return o.title=yr(r.title,t),"children"in o&&(o.children=Oo(o.children,t)),o})}function hl(e){return[n.useCallback(r=>Oo(r,e),[e])]}var yl=Jr((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:o}=t;return r!==o}),bl=to((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:o}=t;return r!==o}),Ge=a(60076),cr=a(99978),xr=a(6301),Cl=a(81501),xl=a(90467),Sl=e=>{const{componentCls:t,lineWidth:r,lineType:o,tableBorderColor:l,tableHeaderBg:i,tablePaddingVertical:u,tablePaddingHorizontal:f,calc:c}=e,p=`${(0,Ge.bf)(r)} ${o} ${l}`,b=(v,E,x)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(c(E).mul(-1).equal())} + ${(0,Ge.bf)(c(c(x).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:p,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:p,borderTop:p,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:p},"> thead":{"> tr:not(:last-child) > th":{borderBottom:p},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:p}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(c(u).mul(-1).equal())} ${(0,Ge.bf)(c(c(f).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:p,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},b("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),b("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:p,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Ge.bf)(r)} 0 ${(0,Ge.bf)(r)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:p}}}},El=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},xr.vS),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ol=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}},wl=a(3970),$l=e=>{const{componentCls:t,antCls:r,motionDurationSlow:o,lineWidth:l,paddingXS:i,lineType:u,tableBorderColor:f,tableExpandIconBg:c,tableExpandColumnWidth:p,borderRadius:b,tablePaddingVertical:v,tablePaddingHorizontal:E,tableExpandedRowBg:x,paddingXXS:$,expandIconMarginTop:U,expandIconSize:F,expandIconHalfInner:oe,expandIconScale:Y,calc:J}=e,$e=`${(0,Ge.bf)(l)} ${u} ${f}`,ge=J($).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:p},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,wl.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:F,height:F,padding:0,color:"inherit",lineHeight:(0,Ge.bf)(F),background:c,border:$e,borderRadius:b,transform:`scale(${Y})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:oe,insetInlineEnd:ge,insetInlineStart:ge,height:l},"&::after":{top:ge,bottom:ge,insetInlineStart:oe,width:l,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"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:U,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:x}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Ge.bf)(J(v).mul(-1).equal())} ${(0,Ge.bf)(J(E).mul(-1).equal())}`,padding:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(E)}`}}}},Pl=e=>{const{componentCls:t,antCls:r,iconCls:o,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:i,paddingXXS:u,paddingXS:f,colorText:c,lineWidth:p,lineType:b,tableBorderColor:v,headerIconColor:E,fontSizeSM:x,tablePaddingHorizontal:$,borderRadius:U,motionDurationSlow:F,colorTextDescription:oe,colorPrimary:Y,tableHeaderFilterActiveBg:J,colorTextDisabled:$e,tableFilterDropdownBg:ge,tableFilterDropdownHeight:be,controlItemBgHover:He,controlItemBgActive:Qe,boxShadowSecondary:ve,filterDropdownMenuBg:nt,calc:ue}=e,se=`${r}-dropdown`,z=`${t}-filter-dropdown`,he=`${r}-tree`,_e=`${(0,Ge.bf)(p)} ${b} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ue(u).mul(-1).equal(),marginInline:`${(0,Ge.bf)(u)} ${(0,Ge.bf)(ue($).div(2).mul(-1).equal())}`,padding:`0 ${(0,Ge.bf)(u)}`,color:E,fontSize:x,borderRadius:U,cursor:"pointer",transition:`all ${F}`,"&:hover":{color:oe,background:J},"&.active":{color:Y}}}},{[`${r}-dropdown`]:{[z]:Object.assign(Object.assign({},(0,xr.Wf)(e)),{minWidth:l,backgroundColor:ge,borderRadius:U,boxShadow:ve,overflow:"hidden",[`${se}-menu`]:{maxHeight:be,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:nt,"&:empty::after":{display:"block",padding:`${(0,Ge.bf)(f)} 0`,color:$e,fontSize:x,textAlign:"center",content:'"Not Found"'}},[`${z}-tree`]:{paddingBlock:`${(0,Ge.bf)(f)} 0`,paddingInline:f,[he]:{padding:0},[`${he}-treenode ${he}-node-content-wrapper:hover`]:{backgroundColor:He},[`${he}-treenode-checkbox-checked ${he}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Qe}}},[`${z}-search`]:{padding:f,borderBottom:_e,"&-input":{input:{minWidth:i},[o]:{color:$e}}},[`${z}-checkall`]:{width:"100%",marginBottom:u,marginInlineStart:u},[`${z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Ge.bf)(ue(f).sub(p).equal())} ${(0,Ge.bf)(f)}`,overflow:"hidden",borderTop:_e}})}},{[`${r}-dropdown ${z}, ${z}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:f,color:c},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Nl=e=>{const{componentCls:t,lineWidth:r,colorSplit:o,motionDurationSlow:l,zIndexTableFixed:i,tableBg:u,zIndexTableSticky:f,calc:c}=e,p=o;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:i,background:u},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:c(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(f).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${p}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${p}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${p}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${p}`}}}}},Rl=e=>{const{componentCls:t,antCls:r,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${(0,Ge.bf)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Il=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,Ge.bf)(r)} ${(0,Ge.bf)(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-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:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${(0,Ge.bf)(r)} ${(0,Ge.bf)(r)}`}}}}},Kl=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Dl=e=>{const{componentCls:t,antCls:r,iconCls:o,fontSizeIcon:l,padding:i,paddingXS:u,headerIconColor:f,headerIconHoverColor:c,tableSelectionColumnWidth:p,tableSelectedRowBg:b,tableSelectedRowHoverBg:v,tableRowHoverBg:E,tablePaddingHorizontal:x,calc:$}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:p,[`&${t}-selection-col-with-dropdown`]:{width:$(p).add(l).add($(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:$(p).add($(u).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:$(p).add(l).add($(i).div(4)).add($(u).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Ge.bf)($(x).div(4).equal()),[o]:{color:f,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:b,"&-row-hover":{background:v}}},[`> ${t}-cell-row-hover`]:{background:E}}}}}},Tl=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:o}=e,l=(i,u,f,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${(0,Ge.bf)(u)} ${(0,Ge.bf)(f)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,Ge.bf)(o(f).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(o(u).mul(-1).equal())} ${(0,Ge.bf)(o(f).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,Ge.bf)(o(u).mul(-1).equal()),marginInline:`${(0,Ge.bf)(o(r).sub(f).equal())} ${(0,Ge.bf)(o(f).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,Ge.bf)(o(f).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},kl=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:o,headerIconColor:l,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:r,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Ml=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:o,tableScrollThumbBgHover:l,tableScrollThumbSize:i,tableScrollBg:u,zIndexTableSticky:f,stickyScrollBarBorderRadius:c,lineWidth:p,lineType:b,tableBorderColor:v}=e,E=`${(0,Ge.bf)(p)} ${b} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:f,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Ge.bf)(i)} !important`,zIndex:f,display:"flex",alignItems:"center",background:u,borderTop:E,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},wo=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:o,calc:l}=e,i=`${(0,Ge.bf)(r)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,Ge.bf)(l(r).mul(-1).equal())} 0 ${o}`}}}},Zl=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:o,lineType:l,tableBorderColor:i,calc:u}=e,f=`${(0,Ge.bf)(o)} ${l} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:f,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Ge.bf)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:f,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:f,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:u(o).mul(-1).equal(),borderInlineStart:f}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:f,borderBottom:f}}}}}};const Ll=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:o,tablePaddingHorizontal:l,tableExpandColumnWidth:i,lineWidth:u,lineType:f,tableBorderColor:c,tableFontSize:p,tableBg:b,tableRadius:v,tableHeaderTextColor:E,motionDurationMid:x,tableHeaderBg:$,tableHeaderCellSplitColor:U,tableFooterTextColor:F,tableFooterBg:oe,calc:Y}=e,J=`${(0,Ge.bf)(u)} ${f} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,xr.dF)()),{[t]:Object.assign(Object.assign({},(0,xr.Wf)(e)),{fontSize:p,background:b,borderRadius:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(v)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(v)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:E,fontWeight:r,textAlign:"start",background:$,borderBottom:J,transition:`background ${x} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:U,transform:"translateY(-50%)",transition:`background-color ${x}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${x}, border-color ${x}`,borderBottom:J,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:(0,Ge.bf)(Y(o).mul(-1).equal()),marginInline:`${(0,Ge.bf)(Y(i).sub(l).equal())} + ${(0,Ge.bf)(Y(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:E,fontWeight:r,textAlign:"start",background:$,borderBottom:J,transition:`background ${x} ease`}}},[`${t}-footer`]:{padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`,color:F,background:oe}})}},Bl=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:o,colorFillSecondary:l,colorFillContent:i,controlItemBgActive:u,controlItemBgActiveHover:f,padding:c,paddingSM:p,paddingXS:b,colorBorderSecondary:v,borderRadiusLG:E,controlHeight:x,colorTextPlaceholder:$,fontSize:U,fontSizeSM:F,lineHeight:oe,lineWidth:Y,colorIcon:J,colorIconHover:$e,opacityLoading:ge,controlInteractiveSize:be}=e,He=new cr.C(l).onBackground(r).toHexShortString(),Qe=new cr.C(i).onBackground(r).toHexShortString(),ve=new cr.C(t).onBackground(r).toHexShortString(),nt=new cr.C(J),ue=new cr.C($e),se=be/2-Y,z=se*2+Y*3;return{headerBg:ve,headerColor:o,headerSortActiveBg:He,headerSortHoverBg:Qe,bodySortBg:ve,rowHoverBg:ve,rowSelectedBg:u,rowSelectedHoverBg:f,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:p,cellPaddingInlineMD:b,cellPaddingBlockSM:b,cellPaddingInlineSM:b,borderColor:v,headerBorderRadius:E,footerBg:ve,footerColor:o,cellFontSize:U,cellFontSizeMD:U,cellFontSizeSM:U,headerSplitColor:v,fixedHeaderSortActiveBg:He,headerFilterHoverBg:i,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:x,stickyScrollBarBg:$,stickyScrollBarBorderRadius:100,expandIconMarginTop:(U*oe-Y*3)/2-Math.ceil((F*1.4-Y*3)/2),headerIconColor:nt.clone().setAlpha(nt.getAlpha()*ge).toRgbString(),headerIconHoverColor:ue.clone().setAlpha(ue.getAlpha()*ge).toRgbString(),expandIconHalfInner:se,expandIconSize:z,expandIconScale:be/z}};var Al=(0,Cl.I$)("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:o,controlInteractiveSize:l,headerBg:i,headerColor:u,headerSortActiveBg:f,headerSortHoverBg:c,bodySortBg:p,rowHoverBg:b,rowSelectedBg:v,rowSelectedHoverBg:E,rowExpandedBg:x,cellPaddingBlock:$,cellPaddingInline:U,cellPaddingBlockMD:F,cellPaddingInlineMD:oe,cellPaddingBlockSM:Y,cellPaddingInlineSM:J,borderColor:$e,footerBg:ge,footerColor:be,headerBorderRadius:He,cellFontSize:Qe,cellFontSizeMD:ve,cellFontSizeSM:nt,headerSplitColor:ue,fixedHeaderSortActiveBg:se,headerFilterHoverBg:z,filterDropdownBg:he,expandIconBg:_e,selectionColumnWidth:Je,stickyScrollBarBg:ke,calc:rt}=e,mt=2,qe=(0,xl.TS)(e,{tableFontSize:Qe,tableBg:o,tableRadius:He,tablePaddingVertical:$,tablePaddingHorizontal:U,tablePaddingVerticalMiddle:F,tablePaddingHorizontalMiddle:oe,tablePaddingVerticalSmall:Y,tablePaddingHorizontalSmall:J,tableBorderColor:$e,tableHeaderTextColor:u,tableHeaderBg:i,tableFooterTextColor:be,tableFooterBg:ge,tableHeaderCellSplitColor:ue,tableHeaderSortBg:f,tableHeaderSortHoverBg:c,tableBodySortBg:p,tableFixedHeaderSortActiveBg:se,tableHeaderFilterActiveBg:z,tableFilterDropdownBg:he,tableRowHoverBg:b,tableSelectedRowBg:v,tableSelectedRowHoverBg:E,zIndexTableFixed:mt,zIndexTableSticky:mt+1,tableFontSizeMiddle:ve,tableFontSizeSmall:nt,tableSelectionColumnWidth:Je,tableExpandIconBg:_e,tableExpandColumnWidth:rt(l).add(rt(e.padding).mul(2)).equal(),tableExpandedRowBg:x,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ke,tableScrollThumbBgHover:t,tableScrollBg:r});return[Ll(qe),Rl(qe),wo(qe),kl(qe),Pl(qe),Sl(qe),Il(qe),$l(qe),wo(qe),Ol(qe),Dl(qe),Nl(qe),Ml(qe),El(qe),Tl(qe),Kl(qe),Zl(qe)]},Bl,{unitless:{expandIconScale:!0}});const Fl=[],Hl=(e,t)=>{const{prefixCls:r,className:o,rootClassName:l,style:i,size:u,bordered:f,dropdownPrefixCls:c,dataSource:p,pagination:b,rowSelection:v,rowKey:E="key",rowClassName:x,columns:$,children:U,childrenColumnName:F,onChange:oe,getPopupContainer:Y,loading:J,expandIcon:$e,expandable:ge,expandedRowRender:be,expandIconColumnIndex:He,indentSize:Qe,scroll:ve,sortDirections:nt,locale:ue,showSorterTooltip:se=!0,virtual:z}=e,he=(0,Ir.ln)("Table"),_e=n.useMemo(()=>$||Ln(U),[$,U]),Je=n.useMemo(()=>_e.some(tt=>tt.responsive),[_e]),ke=(0,Na.Z)(Je),rt=n.useMemo(()=>{const tt=new Set(Object.keys(ke).filter(Ot=>ke[Ot]));return _e.filter(Ot=>!Ot.responsive||Ot.responsive.some(Xt=>tt.has(Xt)))},[_e,ke]),mt=(0,xa.Z)(e,["className","style","columns"]),{locale:qe=Ra.Z,direction:gt,table:Mt,renderEmpty:jt,getPrefixCls:Qt,getPopupContainer:Dt}=n.useContext(io.E_),it=(0,Pa.Z)(u),Rt=Object.assign(Object.assign({},qe.Table),ue),Ft=p||Fl,ft=Qt("table",r),Bt=Qt("dropdown",c),Re=Object.assign({childrenColumnName:F,expandIconColumnIndex:He},ge),{childrenColumnName:ot="children"}=Re,Ae=n.useMemo(()=>Ft.some(tt=>tt==null?void 0:tt[ot])?"nest":be||ge&&ge.expandedRowRender?"row":null,[Ft]),ze={body:n.useRef()},de=Ma(ft),et=n.useRef(null),ht=n.useRef(null);Ea(t,()=>Object.assign(Object.assign({},ht.current),{nativeElement:et.current}));const Tt=n.useMemo(()=>typeof E=="function"?E:tt=>tt==null?void 0:tt[E],[E]),[nn]=(0,nl.Z)(Ft,ot,Tt),dt={},un=function(tt,Ot){let Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Yt,an,dn;const pn=Object.assign(Object.assign({},dt),tt);Xt&&((Yt=dt.resetPagination)===null||Yt===void 0||Yt.call(dt),!((an=pn.pagination)===null||an===void 0)&&an.current&&(pn.pagination.current=1),b&&b.onChange&&b.onChange(1,(dn=pn.pagination)===null||dn===void 0?void 0:dn.pageSize)),ve&&ve.scrollToFirstRowOnChange!==!1&&ze.body.current&&(0,Oa.Z)(0,{getContainer:()=>ze.body.current}),oe==null||oe(pn.pagination,pn.filters,pn.sorter,{currentDataSource:ho(Ar(Ft,pn.sorterStates,ot),pn.filterStates),action:Ot})},Jt=(tt,Ot)=>{un({sorter:tt,sorterStates:Ot},"sort",!1)},[yn,Ht,_t,Zt]=gl({prefixCls:ft,mergedColumns:rt,onSorterChange:Jt,sortDirections:nt||["ascend","descend"],tableLocale:Rt,showSorterTooltip:se}),_n=n.useMemo(()=>Ar(Ft,Ht,ot),[Ft,Ht]);dt.sorter=Zt(),dt.sorterStates=Ht;const qn=(tt,Ot)=>{un({filters:tt,filterStates:Ot},"filter",!0)},[er,Et,It]=tl({prefixCls:ft,locale:Rt,dropdownPrefixCls:Bt,mergedColumns:rt,onFilterChange:qn,getPopupContainer:Y||Dt}),bt=ho(_n,Et);dt.filters=It,dt.filterStates=Et;const qt=n.useMemo(()=>{const tt={};return Object.keys(It).forEach(Ot=>{It[Ot]!==null&&(tt[Ot]=It[Ot])}),Object.assign(Object.assign({},_t),{filters:tt})},[_t,It]),[Wt]=hl(qt),Lt=(tt,Ot)=>{un({pagination:Object.assign(Object.assign({},dt.pagination),{current:tt,pageSize:Ot})},"paginate")},[St,fn]=il(bt.length,Lt,b);dt.pagination=b===!1?{}:al(St,b),dt.resetPagination=fn;const on=n.useMemo(()=>{if(b===!1||!St.pageSize)return bt;const{current:tt=1,total:Ot,pageSize:Xt=bo}=St;return bt.lengthXt?bt.slice((tt-1)*Xt,tt*Xt):bt:bt.slice((tt-1)*Xt,tt*Xt)},[!!b,bt,St&&St.current,St&&St.pageSize,St&&St.total]),[$n,bn]=Ca({prefixCls:ft,data:bt,pageData:on,getRowKey:Tt,getRecordByKey:nn,expandType:Ae,childrenColumnName:ot,locale:Rt,getPopupContainer:Y||Dt},v),ur=(tt,Ot,Xt)=>{let Yt;return typeof x=="function"?Yt=h()(x(tt,Ot,Xt)):Yt=h()(x),h()({[`${ft}-row-selected`]:bn.has(Tt(tt,Ot))},Yt)};Re.__PARENT_RENDER_ICON__=Re.expandIcon,Re.expandIcon=Re.expandIcon||$e||ka(Rt),Ae==="nest"&&Re.expandIconColumnIndex===void 0?Re.expandIconColumnIndex=v?1:0:Re.expandIconColumnIndex>0&&v&&(Re.expandIconColumnIndex-=1),typeof Re.indentSize!="number"&&(Re.indentSize=typeof Qe=="number"?Qe:15);const An=n.useCallback(tt=>Wt($n(er(yn(tt)))),[yn,er,$n]);let Fn,en;if(b!==!1&&(St!=null&&St.total)){let tt;St.size?tt=St.size:tt=it==="small"||it==="middle"?"small":void 0;const Ot=an=>n.createElement(Ia.Z,Object.assign({},St,{className:h()(`${ft}-pagination ${ft}-pagination-${an}`,St.className),size:tt})),Xt=gt==="rtl"?"left":"right",{position:Yt}=St;if(Yt!==null&&Array.isArray(Yt)){const an=Yt.find(Mn=>Mn.includes("top")),dn=Yt.find(Mn=>Mn.includes("bottom")),pn=Yt.every(Mn=>`${Mn}`=="none");!an&&!dn&&!pn&&(en=Ot(Xt)),an&&(Fn=Ot(an.toLowerCase().replace("top",""))),dn&&(en=Ot(dn.toLowerCase().replace("bottom","")))}else en=Ot(Xt)}let Ut;typeof J=="boolean"?Ut={spinning:J}:typeof J=="object"&&(Ut=Object.assign({spinning:!0},J));const[,Gt]=(0,Da.ZP)(),Cn=(0,$a.Z)(ft),[Hn,vn]=Al(ft,Cn),Pn=h()(Cn,`${ft}-wrapper`,Mt==null?void 0:Mt.className,{[`${ft}-wrapper-rtl`]:gt==="rtl"},o,l,vn),Fr=Object.assign(Object.assign({},Mt==null?void 0:Mt.style),i),Hr=ue&&ue.emptyText||(jt==null?void 0:jt("Table"))||n.createElement(wa.Z,{componentName:"Table"}),zr=z?bl:yl,Sr={},jr=n.useMemo(()=>{const{fontSize:tt,lineHeight:Ot,padding:Xt,paddingXS:Yt,paddingSM:an}=Gt,dn=Math.floor(tt*Ot);switch(it){case"large":return Xt*2+dn;case"small":return Yt*2+dn;default:return an*2+dn}},[Gt,it]);return z&&(Sr.listItemHeight=jr),Hn(n.createElement("div",{ref:et,className:Pn,style:Fr},n.createElement(Ka.Z,Object.assign({spinning:!1},Ut),Fn,n.createElement(zr,Object.assign({},Sr,mt,{ref:ht,columns:rt,direction:gt,expandable:Re,prefixCls:ft,className:h()({[`${ft}-middle`]:it==="middle",[`${ft}-small`]:it==="small",[`${ft}-bordered`]:f,[`${ft}-empty`]:Ft.length===0},Cn,vn),data:on,rowKey:Tt,rowClassName:ur,emptyText:Hr,internalHooks:P,internalRefs:ze,transformColumns:An,getContainerWidth:de})),en)))};var zl=n.forwardRef(Hl);const jl=(e,t)=>{const r=n.useRef(0);return r.current+=1,n.createElement(zl,Object.assign({},e,{ref:t,_renderTimes:r.current}))},In=n.forwardRef(jl);In.SELECTION_COLUMN=kn,In.EXPAND_COLUMN=T,In.SELECTION_ALL=Kr,In.SELECTION_INVERT=Dr,In.SELECTION_NONE=Tr,In.Column=va,In.ColumnGroup=ma,In.Summary=Fe;var Wl=In,Ul=Wl},57976:function($t,Ie,a){a.d(Ie,{Z:function(){return fe}});var n=a(82635),T=a(1788),P=a(50959),V=a(38223),xe=a(38126),Ke={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"},R=Ke,j=a(38782),M=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:R}))},I=P.forwardRef(M),W={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"},X=W,A=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:X}))},ae=P.forwardRef(A),k=a(84875),m=a.n(k),K=a(31087),ye=a(25237),Pe=a(31594),H={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"},C=H,L=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:C}))},G=P.forwardRef(L),_=a(58351),Q=a(52816);const ee=4;function D(le){const{dropPosition:je,dropLevelOffset:We,prefixCls:re,indent:Te,direction:Ce="ltr"}=le,at=Ce==="ltr"?"left":"right",Ye=Ce==="ltr"?"right":"left",pt={[at]:-We*Te+ee,[Ye]:0};switch(je){case-1:pt.top=-3;break;case 1:pt.bottom=-3;break;default:pt.bottom=-3,pt[at]=Te+ee;break}return P.createElement("div",{style:pt,className:`${re}-drop-indicator`})}var O=a(74176),q=P.forwardRef((le,je)=>{const{getPrefixCls:We,direction:re,virtual:Te,tree:Ce}=P.useContext(Pe.E_),{prefixCls:at,className:Ye,showIcon:pt=!1,showLine:lt,switcherIcon:te,blockNode:Ze=!1,children:Ve,checkable:s=!1,selectable:ie=!0,draggable:Ne,motion:Fe,style:S}=le,N=We("tree",at),w=We(),ne=Fe!=null?Fe:Object.assign(Object.assign({},(0,_.Z)(w)),{motionAppear:!1}),Ee=Object.assign(Object.assign({},le),{checkable:s,selectable:ie,showIcon:pt,motion:ne,blockNode:Ze,showLine:!!lt,dropIndicatorRender:D}),[Le,Be]=(0,Q.ZP)(N),pe=P.useMemo(()=>{if(!Ne)return!1;let De={};switch(typeof Ne){case"function":De.nodeDraggable=Ne;break;case"object":De=Object.assign({},Ne);break;default:break}return De.icon!==!1&&(De.icon=De.icon||P.createElement(G,null)),De},[Ne]),Oe=De=>P.createElement(O.Z,{prefixCls:N,switcherIcon:te,treeNodeProps:De,showLine:lt});return Le(P.createElement(n.Z,Object.assign({itemHeight:20,ref:je,virtual:Te},Ee,{style:Object.assign(Object.assign({},Ce==null?void 0:Ce.style),S),prefixCls:N,className:m()({[`${N}-icon-hide`]:!pt,[`${N}-block-node`]:Ze,[`${N}-unselectable`]:!ie,[`${N}-rtl`]:re==="rtl"},Ce==null?void 0:Ce.className,Ye,Be),direction:re,checkable:s&&P.createElement("span",{className:`${N}-checkbox-inner`}),selectable:ie,switcherIcon:Oe,draggable:pe}),Ve))}),h;(function(le){le[le.None=0]="None",le[le.Start=1]="Start",le[le.End=2]="End"})(h||(h={}));function we(le,je,We){const{key:re,children:Te}=We;function Ce(at){const Ye=at[re],pt=at[Te];je(Ye,at)!==!1&&we(pt||[],je,We)}le.forEach(Ce)}function y(le){let{treeData:je,expandedKeys:We,startKey:re,endKey:Te,fieldNames:Ce}=le;const at=[];let Ye=h.None;if(re&&re===Te)return[re];if(!re||!Te)return[];function pt(lt){return lt===re||lt===Te}return we(je,lt=>{if(Ye===h.End)return!1;if(pt(lt)){if(at.push(lt),Ye===h.None)Ye=h.Start;else if(Ye===h.Start)return Ye=h.End,!1}else Ye===h.Start&&at.push(lt);return We.includes(lt)},(0,ye.w$)(Ce)),at}function g(le,je,We){const re=(0,T.Z)(je),Te=[];return we(le,(Ce,at)=>{const Ye=re.indexOf(Ce);return Ye!==-1&&(Te.push(at),re.splice(Ye,1)),!!re.length},(0,ye.w$)(We)),Te}var Z=function(le,je){var We={};for(var re in le)Object.prototype.hasOwnProperty.call(le,re)&&je.indexOf(re)<0&&(We[re]=le[re]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,re=Object.getOwnPropertySymbols(le);Te{var{defaultExpandAll:We,defaultExpandParent:re,defaultExpandedKeys:Te}=le,Ce=Z(le,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const at=P.useRef(),Ye=P.useRef(),pt=()=>{const{keyEntities:pe}=(0,ye.I8)(Se(Ce));let Oe;return We?Oe=Object.keys(pe):re?Oe=(0,K.r7)(Ce.expandedKeys||Te||[],pe):Oe=Ce.expandedKeys||Te,Oe},[lt,te]=P.useState(Ce.selectedKeys||Ce.defaultSelectedKeys||[]),[Ze,Ve]=P.useState(()=>pt());P.useEffect(()=>{"selectedKeys"in Ce&&te(Ce.selectedKeys)},[Ce.selectedKeys]),P.useEffect(()=>{"expandedKeys"in Ce&&Ve(Ce.expandedKeys)},[Ce.expandedKeys]);const s=(pe,Oe)=>{var De;return"expandedKeys"in Ce||Ve(pe),(De=Ce.onExpand)===null||De===void 0?void 0:De.call(Ce,pe,Oe)},ie=(pe,Oe)=>{var De;const{multiple:ce,fieldNames:st}=Ce,{node:ut,nativeEvent:Xe}=Oe,{key:vt=""}=ut,yt=Se(Ce),Nt=Object.assign(Object.assign({},Oe),{selected:!0}),Kt=(Xe==null?void 0:Xe.ctrlKey)||(Xe==null?void 0:Xe.metaKey),kt=Xe==null?void 0:Xe.shiftKey;let Pt;ce&&Kt?(Pt=pe,at.current=vt,Ye.current=Pt,Nt.selectedNodes=g(yt,Pt,st)):ce&&kt?(Pt=Array.from(new Set([].concat((0,T.Z)(Ye.current||[]),(0,T.Z)(y({treeData:yt,expandedKeys:Ze,startKey:vt,endKey:at.current,fieldNames:st}))))),Nt.selectedNodes=g(yt,Pt,st)):(Pt=[vt],at.current=vt,Ye.current=Pt,Nt.selectedNodes=g(yt,Pt,st)),(De=Ce.onSelect)===null||De===void 0||De.call(Ce,Pt,Nt),"selectedKeys"in Ce||te(Pt)},{getPrefixCls:Ne,direction:Fe}=P.useContext(Pe.E_),{prefixCls:S,className:N,showIcon:w=!0,expandAction:ne="click"}=Ce,Ee=Z(Ce,["prefixCls","className","showIcon","expandAction"]),Le=Ne("tree",S),Be=m()(`${Le}-directory`,{[`${Le}-directory-rtl`]:Fe==="rtl"},N);return P.createElement(q,Object.assign({icon:B,ref:je,blockNode:!0},Ee,{showIcon:w,expandAction:ne,prefixCls:Le,className:Be,expandedKeys:Ze,selectedKeys:lt,onSelect:ie,onExpand:s}))};var Me=P.forwardRef(Ue);const ct=q;ct.DirectoryTree=Me,ct.TreeNode=n.O;var fe=ct},52816:function($t,Ie,a){a.d(Ie,{TM:function(){return A},Yk:function(){return X}});var n=a(60076),T=a(49508),P=a(6301),V=a(23148),xe=a(90467),Ke=a(81501);const R=new n.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),j=(k,m)=>({[`.${k}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${m.motionDurationSlow}`}}}),M=(k,m)=>({[`.${k}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:m.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,n.bf)(m.lineWidthBold)} solid ${m.colorPrimary}`,borderRadius:"50%",content:'""'}}}),I=(k,m)=>{const{treeCls:K,treeNodeCls:ye,treeNodePadding:Pe,titleHeight:H,nodeSelectedBg:C,nodeHoverBg:L}=m,G=m.paddingXS;return{[K]:Object.assign(Object.assign({},(0,P.Wf)(m)),{background:m.colorBgContainer,borderRadius:m.borderRadius,transition:`background-color ${m.motionDurationSlow}`,[`&${K}-rtl`]:{[`${K}-switcher`]:{"&_close":{[`${K}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${K}-active-focused)`]:Object.assign({},(0,P.oN)(m)),[`${K}-list-holder-inner`]:{alignItems:"flex-start"},[`&${K}-block-node`]:{[`${K}-list-holder-inner`]:{alignItems:"stretch",[`${K}-node-content-wrapper`]:{flex:"auto"},[`${ye}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Pe,insetInlineStart:0,border:`1px solid ${m.colorPrimary}`,opacity:0,animationName:R,animationDuration:m.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ye}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,n.bf)(Pe)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${K}-node-content-wrapper`]:{color:m.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${K}-node-content-wrapper`]:Object.assign({},(0,P.oN)(m)),[`&:not(${ye}-disabled).filter-node ${K}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${K}-draggable-icon`]:{flexShrink:0,width:H,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${m.motionDurationSlow}`,[`${ye}:hover &`]:{opacity:.45}},[`&${ye}-disabled`]:{[`${K}-draggable-icon`]:{visibility:"hidden"}}}},[`${K}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${K}-draggable-icon`]:{visibility:"hidden"},[`${K}-switcher`]:Object.assign(Object.assign({},j(k,m)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,margin:0,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${K}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:m.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:m.calc(H).div(2).equal(),bottom:m.calc(Pe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:m.calc(m.calc(H).div(2).equal()).mul(.8).equal(),height:m.calc(H).div(2).equal(),borderBottom:`1px solid ${m.colorBorder}`,content:'""'}}}),[`${K}-checkbox`]:{top:"initial",marginInlineEnd:G,alignSelf:"flex-start",marginTop:m.marginXXS},[`${K}-node-content-wrapper, ${K}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:H,margin:0,padding:`0 ${(0,n.bf)(m.calc(m.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,n.bf)(H)}`,background:"transparent",borderRadius:m.borderRadius,cursor:"pointer",transition:`all ${m.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:L},[`&${K}-node-selected`]:{backgroundColor:C},[`${K}-iconEle`]:{display:"inline-block",width:H,height:H,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${K}-unselectable ${K}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${K}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,n.bf)(H)}`,userSelect:"none"},M(k,m)),[`${ye}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${m.colorPrimary}`}},"&-show-line":{[`${K}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:m.calc(H).div(2).equal(),bottom:m.calc(Pe).mul(-1).equal(),borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${K}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ye}-leaf-last`]:{[`${K}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,n.bf)(m.calc(H).div(2).equal())} !important`}}}}})}},W=k=>{const{treeCls:m,treeNodeCls:K,treeNodePadding:ye,directoryNodeSelectedBg:Pe,directoryNodeSelectedColor:H}=k;return{[`${m}${m}-directory`]:{[K]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ye,insetInlineStart:0,transition:`background-color ${k.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:k.controlItemBgHover}},"> *":{zIndex:1},[`${m}-switcher`]:{transition:`color ${k.motionDurationMid}`},[`${m}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${m}-node-selected`]:{color:H,background:"transparent"}},"&-selected":{[` + &:hover::before, + &::before + `]:{background:Pe},[`${m}-switcher`]:{color:H},[`${m}-node-content-wrapper`]:{color:H,background:"transparent"}}}}}},X=(k,m)=>{const K=`.${k}`,ye=`${K}-treenode`,Pe=m.calc(m.paddingXS).div(2).equal(),H=(0,xe.TS)(m,{treeCls:K,treeNodeCls:ye,treeNodePadding:Pe});return[I(k,H),W(H)]},A=k=>{const{controlHeightSM:m}=k;return{titleHeight:m,nodeHoverBg:k.controlItemBgHover,nodeSelectedBg:k.controlItemBgActive}},ae=k=>{const{colorTextLightSolid:m,colorPrimary:K}=k;return Object.assign(Object.assign({},A(k)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:K})};Ie.ZP=(0,Ke.I$)("Tree",(k,m)=>{let{prefixCls:K}=m;return[{[k.componentCls]:(0,T.C2)(`${K}-checkbox`,k)},X(K,k),(0,V.Z)(k)]},ae)},74176:function($t,Ie,a){a.d(Ie,{Z:function(){return L}});var n=a(38126),T=a(50959),P={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"},V=P,xe=a(38782),Ke=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:V}))},R=T.forwardRef(Ke),j=a(38223),M=a(58516),I={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"},W=I,X=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:W}))},A=T.forwardRef(X),ae={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"},k=ae,m=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:k}))},K=T.forwardRef(m),ye=a(84875),Pe=a.n(ye),H=a(94914),L=G=>{const{prefixCls:_,switcherIcon:Q,treeNodeProps:ee,showLine:D}=G,{isLeaf:O,expanded:d,loading:q}=ee;if(q)return T.createElement(M.Z,{className:`${_}-switcher-loading-icon`});let h;if(D&&typeof D=="object"&&(h=D.showLeafIcon),O){if(!D)return null;if(typeof h!="boolean"&&h){const g=typeof h=="function"?h(ee):h,Z=`${_}-switcher-line-custom-icon`;return(0,H.l$)(g)?(0,H.Tm)(g,{className:Pe()(g.props.className||"",Z)}):g}return h?T.createElement(j.Z,{className:`${_}-switcher-line-icon`}):T.createElement("span",{className:`${_}-switcher-leaf-line`})}const we=`${_}-switcher-icon`,y=typeof Q=="function"?Q(ee):Q;return(0,H.l$)(y)?(0,H.Tm)(y,{className:Pe()(y.props.className||"",we)}):y!==void 0?y:D?d?T.createElement(A,{className:`${_}-switcher-line-icon`}):T.createElement(K,{className:`${_}-switcher-line-icon`}):T.createElement(R,{className:we})}},53314:function($t,Ie,a){var n=a(38126),T=a(33346),P=a(73273),V=a(32682),xe=a(10570),Ke=a(84875),R=a.n(Ke),j=a(65589),M=a(50959),I=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],W=(0,M.forwardRef)(function(X,A){var ae,k=X.prefixCls,m=k===void 0?"rc-checkbox":k,K=X.className,ye=X.style,Pe=X.checked,H=X.disabled,C=X.defaultChecked,L=C===void 0?!1:C,G=X.type,_=G===void 0?"checkbox":G,Q=X.title,ee=X.onChange,D=(0,xe.Z)(X,I),O=(0,M.useRef)(null),d=(0,j.Z)(L,{value:Pe}),q=(0,V.Z)(d,2),h=q[0],we=q[1];(0,M.useImperativeHandle)(A,function(){return{focus:function(){var B;(B=O.current)===null||B===void 0||B.focus()},blur:function(){var B;(B=O.current)===null||B===void 0||B.blur()},input:O.current}});var y=R()(m,K,(ae={},(0,P.Z)(ae,"".concat(m,"-checked"),h),(0,P.Z)(ae,"".concat(m,"-disabled"),H),ae)),g=function(B){H||("checked"in X||we(B.target.checked),ee==null||ee({target:(0,T.Z)((0,T.Z)({},X),{},{type:_,checked:B.target.checked}),stopPropagation:function(){B.stopPropagation()},preventDefault:function(){B.preventDefault()},nativeEvent:B.nativeEvent}))};return M.createElement("span",{className:y,title:Q,style:ye},M.createElement("input",(0,n.Z)({},D,{className:"".concat(m,"-input"),ref:O,onChange:g,disabled:H,checked:!!h,type:_})),M.createElement("span",{className:"".concat(m,"-inner")}))});Ie.Z=W},36289:function($t,Ie,a){a.d(Ie,{Z:function(){return Q}});var n=a(38126),T=a(73273),P=a(10570),V=a(33346),xe=a(47920),Ke=a(77254),R=a(95325),j=a(44906),M=a(41399),I=a(84875),W=a.n(I),X=a(68924),A=a(50959),ae=a(32866),k=function(D){for(var O=D.prefixCls,d=D.level,q=D.isStart,h=D.isEnd,we="".concat(O,"-indent-unit"),y=[],g=0;g0&&arguments[0]!==void 0?arguments[0]:[],Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ve=te.length,s=Ze.length;if(Math.abs(Ve-s)!==1)return{add:!1,key:null};function ie(Ne,Fe){var S=new Map;Ne.forEach(function(w){S.set(w,!0)});var N=Fe.filter(function(w){return!S.has(w)});return N.length===1?N[0]:null}return Ve ").concat(Ze);return Ze}var je=m.forwardRef(function(te,Ze){var Ve=te.prefixCls,s=te.data,ie=te.selectable,Ne=te.checkable,Fe=te.expandedKeys,S=te.selectedKeys,N=te.checkedKeys,w=te.loadedKeys,ne=te.loadingKeys,Ee=te.halfCheckedKeys,Le=te.keyEntities,Be=te.disabled,pe=te.dragging,Oe=te.dragOverNodeKey,De=te.dropPosition,ce=te.motion,st=te.height,ut=te.itemHeight,Xe=te.virtual,vt=te.focusable,yt=te.activeItem,Nt=te.focused,Kt=te.tabIndex,kt=te.onKeyDown,Pt=te.onFocus,Vt=te.onBlur,At=te.onActiveChange,tn=te.onListChangeStart,cn=te.onListChangeEnd,Ct=(0,C.Z)(te,g),mn=m.useRef(null),sn=m.useRef(null);m.useImperativeHandle(Ze,function(){return{scrollTo:function(En){mn.current.scrollTo(En)},getIndentWidth:function(){return sn.current.offsetWidth}}});var gn=m.useState(Fe),Zn=(0,H.Z)(gn,2),Wn=Zn[0],rr=Zn[1],or=m.useState(s),Un=(0,H.Z)(or,2),Sn=Un[0],Vn=Un[1],Gn=m.useState(s),Xn=(0,H.Z)(Gn,2),ar=Xn[0],Kn=Xn[1],Ln=m.useState([]),hn=(0,H.Z)(Ln,2),Yr=hn[0],lr=hn[1],$r=m.useState(null),vr=(0,H.Z)($r,2),Pr=vr[0],ir=vr[1],pr=m.useRef(s);pr.current=s;function sr(){var zt=pr.current;Vn(zt),Kn(zt),lr([]),ir(null),cn()}(0,L.Z)(function(){rr(Fe);var zt=we(Wn,Fe);if(zt.key!==null)if(zt.add){var En=Sn.findIndex(function(Tn){var wn=Tn.key;return wn===zt.key}),On=ct(y(Sn,s,zt.key),Xe,st,ut),Dn=Sn.slice();Dn.splice(En+1,0,Me),Kn(Dn),lr(On),ir("show")}else{var Nn=s.findIndex(function(Tn){var wn=Tn.key;return wn===zt.key}),Rn=ct(y(s,Sn,zt.key),Xe,st,ut),Yn=s.slice();Yn.splice(Nn+1,0,Me),Kn(Yn),lr(Rn),ir("hide")}else Sn!==s&&(Vn(s),Kn(s))},[Fe,s]),m.useEffect(function(){pe||sr()},[pe]);var mr=ce?ar:s,gr={expandedKeys:Fe,selectedKeys:S,loadedKeys:w,loadingKeys:ne,checkedKeys:N,halfCheckedKeys:Ee,dragOverNodeKey:Oe,dropPosition:De,keyEntities:Le};return m.createElement(m.Fragment,null,Nt&&yt&&m.createElement("span",{style:Z,"aria-live":"assertive"},le(yt)),m.createElement("div",null,m.createElement("input",{style:Z,disabled:vt===!1||Be,tabIndex:vt!==!1?Kt:null,onKeyDown:kt,onFocus:Pt,onBlur:Vt,value:"",onChange:B,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(Ve,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(Ve,"-indent")},m.createElement("div",{ref:sn,className:"".concat(Ve,"-indent-unit")}))),m.createElement(G.Z,(0,n.Z)({},Ct,{data:mr,itemKey:fe,height:st,fullHeight:!1,virtual:Xe,itemHeight:ut,prefixCls:"".concat(Ve,"-list"),ref:mn,onVisibleChange:function(En,On){var Dn=new Set(En),Nn=On.filter(function(Rn){return!Dn.has(Rn)});Nn.some(function(Rn){return fe(Rn)===Se})&&sr()}}),function(zt){var En=zt.pos,On=(0,n.Z)({},(Pe(zt.data),zt.data)),Dn=zt.title,Nn=zt.key,Rn=zt.isStart,Yn=zt.isEnd,Tn=(0,D.km)(Nn,En);delete On.key,delete On.children;var wn=(0,D.H8)(Tn,gr);return m.createElement(h,(0,n.Z)({},On,wn,{title:Dn,active:!!yt&&Nn===yt.key,pos:En,data:zt.data,isStart:Rn,isEnd:Yn,motion:ce,motionNodes:Nn===Se?Yr:null,motionType:Pr,onMotionStart:tn,onMotionEnd:sr,treeNodeRequiredProps:gr,onMouseMove:function(){At(null)}}))}))});je.displayName="NodeList";var We=je,re=a(31087),Te=a(27545),Ce=a(55369),at=10,Ye=function(te){(0,M.Z)(Ve,te);var Ze=(0,I.Z)(Ve);function Ve(){var s;(0,Ke.Z)(this,Ve);for(var ie=arguments.length,Ne=new Array(ie),Fe=0;Fe2&&arguments[2]!==void 0?arguments[2]:!1,Ee=s.state,Le=Ee.dragChildrenKeys,Be=Ee.dropPosition,pe=Ee.dropTargetKey,Oe=Ee.dropTargetPos,De=Ee.dropAllowed;if(De){var ce=s.props.onDrop;if(s.setState({dragOverNodeKey:null}),s.cleanDragState(),pe!==null){var st=(0,V.Z)((0,V.Z)({},(0,D.H8)(pe,s.getTreeNodeRequiredProps())),{},{active:((w=s.getActiveItem())===null||w===void 0?void 0:w.key)===pe,data:(0,Ce.Z)(s.state.keyEntities,pe).node}),ut=Le.indexOf(pe)!==-1;(0,k.ZP)(!ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Xe=(0,re.yx)(Oe),vt={event:S,node:(0,D.F)(st),dragNode:s.dragNode?(0,D.F)(s.dragNode.props):null,dragNodesKeys:[s.dragNode.props.eventKey].concat(Le),dropToGap:Be!==0,dropPosition:Be+Number(Xe[Xe.length-1])};ne||ce==null||ce(vt),s.dragNode=null}}},s.cleanDragState=function(){var S=s.state.draggingNodeKey;S!==null&&s.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),s.dragStartMousePosition=null,s.currentMouseOverDroppableNodeKey=null},s.triggerExpandActionExpand=function(S,N){var w=s.state,ne=w.expandedKeys,Ee=w.flattenNodes,Le=N.expanded,Be=N.key,pe=N.isLeaf;if(!(pe||S.shiftKey||S.metaKey||S.ctrlKey)){var Oe=Ee.filter(function(ce){return ce.key===Be})[0],De=(0,D.F)((0,V.Z)((0,V.Z)({},(0,D.H8)(Be,s.getTreeNodeRequiredProps())),{},{data:Oe.data}));s.setExpandedKeys(Le?(0,re._5)(ne,Be):(0,re.L0)(ne,Be)),s.onNodeExpand(S,De)}},s.onNodeClick=function(S,N){var w=s.props,ne=w.onClick,Ee=w.expandAction;Ee==="click"&&s.triggerExpandActionExpand(S,N),ne==null||ne(S,N)},s.onNodeDoubleClick=function(S,N){var w=s.props,ne=w.onDoubleClick,Ee=w.expandAction;Ee==="doubleClick"&&s.triggerExpandActionExpand(S,N),ne==null||ne(S,N)},s.onNodeSelect=function(S,N){var w=s.state.selectedKeys,ne=s.state,Ee=ne.keyEntities,Le=ne.fieldNames,Be=s.props,pe=Be.onSelect,Oe=Be.multiple,De=N.selected,ce=N[Le.key],st=!De;st?Oe?w=(0,re.L0)(w,ce):w=[ce]:w=(0,re._5)(w,ce);var ut=w.map(function(Xe){var vt=(0,Ce.Z)(Ee,Xe);return vt?vt.node:null}).filter(function(Xe){return Xe});s.setUncontrolledState({selectedKeys:w}),pe==null||pe(w,{event:"select",selected:st,node:N,selectedNodes:ut,nativeEvent:S.nativeEvent})},s.onNodeCheck=function(S,N,w){var ne=s.state,Ee=ne.keyEntities,Le=ne.checkedKeys,Be=ne.halfCheckedKeys,pe=s.props,Oe=pe.checkStrictly,De=pe.onCheck,ce=N.key,st,ut={event:"check",node:N,checked:w,nativeEvent:S.nativeEvent};if(Oe){var Xe=w?(0,re.L0)(Le,ce):(0,re._5)(Le,ce),vt=(0,re._5)(Be,ce);st={checked:Xe,halfChecked:vt},ut.checkedNodes=Xe.map(function(Vt){return(0,Ce.Z)(Ee,Vt)}).filter(function(Vt){return Vt}).map(function(Vt){return Vt.node}),s.setUncontrolledState({checkedKeys:Xe})}else{var yt=(0,Te.S)([].concat((0,xe.Z)(Le),[ce]),!0,Ee),Nt=yt.checkedKeys,Kt=yt.halfCheckedKeys;if(!w){var kt=new Set(Nt);kt.delete(ce);var Pt=(0,Te.S)(Array.from(kt),{checked:!1,halfCheckedKeys:Kt},Ee);Nt=Pt.checkedKeys,Kt=Pt.halfCheckedKeys}st=Nt,ut.checkedNodes=[],ut.checkedNodesPositions=[],ut.halfCheckedKeys=Kt,Nt.forEach(function(Vt){var At=(0,Ce.Z)(Ee,Vt);if(At){var tn=At.node,cn=At.pos;ut.checkedNodes.push(tn),ut.checkedNodesPositions.push({node:tn,pos:cn})}}),s.setUncontrolledState({checkedKeys:Nt},!1,{halfCheckedKeys:Kt})}De==null||De(st,ut)},s.onNodeLoad=function(S){var N=S.key,w=new Promise(function(ne,Ee){s.setState(function(Le){var Be=Le.loadedKeys,pe=Be===void 0?[]:Be,Oe=Le.loadingKeys,De=Oe===void 0?[]:Oe,ce=s.props,st=ce.loadData,ut=ce.onLoad;if(!st||pe.indexOf(N)!==-1||De.indexOf(N)!==-1)return null;var Xe=st(S);return Xe.then(function(){var vt=s.state.loadedKeys,yt=(0,re.L0)(vt,N);ut==null||ut(yt,{event:"load",node:S}),s.setUncontrolledState({loadedKeys:yt}),s.setState(function(Nt){return{loadingKeys:(0,re._5)(Nt.loadingKeys,N)}}),ne()}).catch(function(vt){if(s.setState(function(Nt){return{loadingKeys:(0,re._5)(Nt.loadingKeys,N)}}),s.loadingRetryTimes[N]=(s.loadingRetryTimes[N]||0)+1,s.loadingRetryTimes[N]>=at){var yt=s.state.loadedKeys;(0,k.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),s.setUncontrolledState({loadedKeys:(0,re.L0)(yt,N)}),ne()}Ee(vt)}),{loadingKeys:(0,re.L0)(De,N)}})});return w.catch(function(){}),w},s.onNodeMouseEnter=function(S,N){var w=s.props.onMouseEnter;w==null||w({event:S,node:N})},s.onNodeMouseLeave=function(S,N){var w=s.props.onMouseLeave;w==null||w({event:S,node:N})},s.onNodeContextMenu=function(S,N){var w=s.props.onRightClick;w&&(S.preventDefault(),w({event:S,node:N}))},s.onFocus=function(){var S=s.props.onFocus;s.setState({focused:!0});for(var N=arguments.length,w=new Array(N),ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!s.destroyed){var ne=!1,Ee=!0,Le={};Object.keys(S).forEach(function(Be){if(Be in s.props){Ee=!1;return}ne=!0,Le[Be]=S[Be]}),ne&&(!N||Ee)&&s.setState((0,V.Z)((0,V.Z)({},Le),w))}},s.scrollTo=function(S){s.listRef.current.scrollTo(S)},s}return(0,R.Z)(Ve,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ie=this.props,Ne=ie.activeKey,Fe=ie.itemScrollOffset,S=Fe===void 0?0:Fe;Ne!==void 0&&Ne!==this.state.activeKey&&(this.setState({activeKey:Ne}),Ne!==null&&this.scrollTo({key:Ne,offset:S}))}},{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 ie,Ne=this.state,Fe=Ne.focused,S=Ne.flattenNodes,N=Ne.keyEntities,w=Ne.draggingNodeKey,ne=Ne.activeKey,Ee=Ne.dropLevelOffset,Le=Ne.dropContainerKey,Be=Ne.dropTargetKey,pe=Ne.dropPosition,Oe=Ne.dragOverNodeKey,De=Ne.indent,ce=this.props,st=ce.prefixCls,ut=ce.className,Xe=ce.style,vt=ce.showLine,yt=ce.focusable,Nt=ce.tabIndex,Kt=Nt===void 0?0:Nt,kt=ce.selectable,Pt=ce.showIcon,Vt=ce.icon,At=ce.switcherIcon,tn=ce.draggable,cn=ce.checkable,Ct=ce.checkStrictly,mn=ce.disabled,sn=ce.motion,gn=ce.loadData,Zn=ce.filterTreeNode,Wn=ce.height,rr=ce.itemHeight,or=ce.virtual,Un=ce.titleRender,Sn=ce.dropIndicatorRender,Vn=ce.onContextMenu,Gn=ce.onScroll,Xn=ce.direction,ar=ce.rootClassName,Kn=ce.rootStyle,Ln=(0,ae.Z)(this.props,{aria:!0,data:!0}),hn;return tn&&((0,P.Z)(tn)==="object"?hn=tn:typeof tn=="function"?hn={nodeDraggable:tn}:hn={}),m.createElement(K.k.Provider,{value:{prefixCls:st,selectable:kt,showIcon:Pt,icon:Vt,switcherIcon:At,draggable:hn,draggingNodeKey:w,checkable:cn,checkStrictly:Ct,disabled:mn,keyEntities:N,dropLevelOffset:Ee,dropContainerKey:Le,dropTargetKey:Be,dropPosition:pe,dragOverNodeKey:Oe,indent:De,direction:Xn,dropIndicatorRender:Sn,loadData:gn,filterTreeNode:Zn,titleRender:Un,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}},m.createElement("div",{role:"tree",className:X()(st,ut,ar,(ie={},(0,T.Z)(ie,"".concat(st,"-show-line"),vt),(0,T.Z)(ie,"".concat(st,"-focused"),Fe),(0,T.Z)(ie,"".concat(st,"-active-focused"),ne!==null),ie)),style:Kn},m.createElement(We,(0,n.Z)({ref:this.listRef,prefixCls:st,style:Xe,data:S,disabled:mn,selectable:kt,checkable:!!cn,motion:sn,dragging:w!==null,height:Wn,itemHeight:rr,virtual:or,focusable:yt,focused:Fe,tabIndex:Kt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Vn,onScroll:Gn},this.getTreeNodeRequiredProps(),Ln))))}}],[{key:"getDerivedStateFromProps",value:function(ie,Ne){var Fe=Ne.prevProps,S={prevProps:ie};function N(yt){return!Fe&&yt in ie||Fe&&Fe[yt]!==ie[yt]}var w,ne=Ne.fieldNames;if(N("fieldNames")&&(ne=(0,D.w$)(ie.fieldNames),S.fieldNames=ne),N("treeData")?w=ie.treeData:N("children")&&((0,k.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),w=(0,D.zn)(ie.children)),w){S.treeData=w;var Ee=(0,D.I8)(w,{fieldNames:ne});S.keyEntities=(0,V.Z)((0,T.Z)({},Se,me),Ee.keyEntities)}var Le=S.keyEntities||Ne.keyEntities;if(N("expandedKeys")||Fe&&N("autoExpandParent"))S.expandedKeys=ie.autoExpandParent||!Fe&&ie.defaultExpandParent?(0,re.r7)(ie.expandedKeys,Le):ie.expandedKeys;else if(!Fe&&ie.defaultExpandAll){var Be=(0,V.Z)({},Le);delete Be[Se],S.expandedKeys=Object.keys(Be).map(function(yt){return Be[yt].key})}else!Fe&&ie.defaultExpandedKeys&&(S.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?(0,re.r7)(ie.defaultExpandedKeys,Le):ie.defaultExpandedKeys);if(S.expandedKeys||delete S.expandedKeys,w||S.expandedKeys){var pe=(0,D.oH)(w||Ne.treeData,S.expandedKeys||Ne.expandedKeys,ne);S.flattenNodes=pe}if(ie.selectable&&(N("selectedKeys")?S.selectedKeys=(0,re.BT)(ie.selectedKeys,ie):!Fe&&ie.defaultSelectedKeys&&(S.selectedKeys=(0,re.BT)(ie.defaultSelectedKeys,ie))),ie.checkable){var Oe;if(N("checkedKeys")?Oe=(0,re.E6)(ie.checkedKeys)||{}:!Fe&&ie.defaultCheckedKeys?Oe=(0,re.E6)(ie.defaultCheckedKeys)||{}:w&&(Oe=(0,re.E6)(ie.checkedKeys)||{checkedKeys:Ne.checkedKeys,halfCheckedKeys:Ne.halfCheckedKeys}),Oe){var De=Oe,ce=De.checkedKeys,st=ce===void 0?[]:ce,ut=De.halfCheckedKeys,Xe=ut===void 0?[]:ut;if(!ie.checkStrictly){var vt=(0,Te.S)(st,!0,Le);st=vt.checkedKeys,Xe=vt.halfCheckedKeys}S.checkedKeys=st,S.halfCheckedKeys=Xe}}return N("loadedKeys")&&(S.loadedKeys=ie.loadedKeys),S}}]),Ve}(m.Component);Ye.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:ye,allowDrop:function(){return!0},expandAction:!1},Ye.TreeNode=Q.Z;var pt=Ye,lt=pt},31087:function($t,Ie,a){a.d(Ie,{BT:function(){return m},E6:function(){return Pe},L0:function(){return I},OM:function(){return k},_5:function(){return M},r7:function(){return H},wA:function(){return X},yx:function(){return W}});var n=a(1788),T=a(40727),P=a(12868),V=a(50959),xe=a(36289),Ke=a(55369),R=a(25237),j=null;function M(C,L){if(!C)return[];var G=C.slice(),_=G.indexOf(L);return _>=0&&G.splice(_,1),G}function I(C,L){var G=(C||[]).slice();return G.indexOf(L)===-1&&G.push(L),G}function W(C){return C.split("-")}function X(C,L){var G=[],_=(0,Ke.Z)(L,C);function Q(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ee.forEach(function(D){var O=D.key,d=D.children;G.push(O),Q(d)})}return Q(_.children),G}function A(C){if(C.parent){var L=W(C.pos);return Number(L[L.length-1])===C.parent.children.length-1}return!1}function ae(C){var L=W(C.pos);return Number(L[L.length-1])===0}function k(C,L,G,_,Q,ee,D,O,d,q){var h,we=C.clientX,y=C.clientY,g=C.target.getBoundingClientRect(),Z=g.top,B=g.height,Se=(q==="rtl"?-1:1)*(((Q==null?void 0:Q.x)||0)-we),Ue=(Se-12)/_,me=(0,Ke.Z)(O,G.props.eventKey);if(y-1.5?ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1:ee({dragNode:at,dropNode:Ye,dropPosition:0})?re=0:ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1:ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1,{dropPosition:re,dropLevelOffset:Te,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:We,dropContainerKey:re===0?null:((h=me.parent)===null||h===void 0?void 0:h.key)||null,dropAllowed:pt}}function m(C,L){if(C){var G=L.multiple;return G?C.slice():C.length?[C[0]]:C}}var K=function(L){return L};function ye(C,L){if(!C)return[];var G=L||{},_=G.processProps,Q=_===void 0?K:_,ee=Array.isArray(C)?C:[C];return ee.map(function(D){var O=D.children,d=_objectWithoutProperties(D,j),q=ye(O,L);return React.createElement(TreeNode,_extends({key:d.key},Q(d)),q)})}function Pe(C){if(!C)return null;var L;if(Array.isArray(C))L={checkedKeys:C,halfCheckedKeys:void 0};else if((0,T.Z)(C)==="object")L={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function H(C,L){var G=new Set;function _(Q){if(!G.has(Q)){var ee=(0,Ke.Z)(L,Q);if(ee){G.add(Q);var D=ee.parent,O=ee.node;O.disabled||D&&_(D.key)}}}return(C||[]).forEach(function(Q){_(Q)}),(0,n.Z)(G)}},27545:function($t,Ie,a){a.d(Ie,{S:function(){return R}});var n=a(12868),T=a(55369);function P(j,M){var I=new Set;return j.forEach(function(W){M.has(W)||I.add(W)}),I}function V(j){var M=j||{},I=M.disabled,W=M.disableCheckbox,X=M.checkable;return!!(I||W)||X===!1}function xe(j,M,I,W){for(var X=new Set(j),A=new Set,ae=0;ae<=I;ae+=1){var k=M.get(ae)||new Set;k.forEach(function(Pe){var H=Pe.key,C=Pe.node,L=Pe.children,G=L===void 0?[]:L;X.has(H)&&!W(C)&&G.filter(function(_){return!W(_.node)}).forEach(function(_){X.add(_.key)})})}for(var m=new Set,K=I;K>=0;K-=1){var ye=M.get(K)||new Set;ye.forEach(function(Pe){var H=Pe.parent,C=Pe.node;if(!(W(C)||!Pe.parent||m.has(Pe.parent.key))){if(W(Pe.parent.node)){m.add(H.key);return}var L=!0,G=!1;(H.children||[]).filter(function(_){return!W(_.node)}).forEach(function(_){var Q=_.key,ee=X.has(Q);L&&!ee&&(L=!1),!G&&(ee||A.has(Q))&&(G=!0)}),L&&X.add(H.key),G&&A.add(H.key),m.add(H.key)}})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(P(A,X))}}function Ke(j,M,I,W,X){for(var A=new Set(j),ae=new Set(M),k=0;k<=W;k+=1){var m=I.get(k)||new Set;m.forEach(function(H){var C=H.key,L=H.node,G=H.children,_=G===void 0?[]:G;!A.has(C)&&!ae.has(C)&&!X(L)&&_.filter(function(Q){return!X(Q.node)}).forEach(function(Q){A.delete(Q.key)})})}ae=new Set;for(var K=new Set,ye=W;ye>=0;ye-=1){var Pe=I.get(ye)||new Set;Pe.forEach(function(H){var C=H.parent,L=H.node;if(!(X(L)||!H.parent||K.has(H.parent.key))){if(X(H.parent.node)){K.add(C.key);return}var G=!0,_=!1;(C.children||[]).filter(function(Q){return!X(Q.node)}).forEach(function(Q){var ee=Q.key,D=A.has(ee);G&&!D&&(G=!1),!_&&(D||ae.has(ee))&&(_=!0)}),G||A.delete(C.key),_&&ae.add(C.key),K.add(C.key)}})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(P(ae,A))}}function R(j,M,I,W){var X=[],A;W?A=W:A=V;var ae=new Set(j.filter(function(ye){var Pe=!!(0,T.Z)(I,ye);return Pe||X.push(ye),Pe})),k=new Map,m=0;Object.keys(I).forEach(function(ye){var Pe=I[ye],H=Pe.level,C=k.get(H);C||(C=new Set,k.set(H,C)),C.add(Pe),m=Math.max(m,H)}),(0,n.ZP)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ye){return"'".concat(ye,"'")}).join(", ")));var K;return M===!0?K=xe(ae,k,m,A):K=Ke(ae,M.halfCheckedKeys,k,m,A),K}},55369:function($t,Ie,a){a.d(Ie,{Z:function(){return n}});function n(T,P){return T[P]}},25237:function($t,Ie,a){a.d(Ie,{F:function(){return H},H8:function(){return Pe},I8:function(){return ye},km:function(){return X},oH:function(){return m},w$:function(){return A},zn:function(){return k}});var n=a(40727),T=a(1788),P=a(33346),V=a(10570),xe=a(13763),Ke=a(87017),R=a(12868),j=a(55369),M=["children"];function I(C,L){return"".concat(C,"-").concat(L)}function W(C){return C&&C.type&&C.type.isTreeNode}function X(C,L){return C!=null?C:L}function A(C){var L=C||{},G=L.title,_=L._title,Q=L.key,ee=L.children,D=G||"title";return{title:D,_title:_||[D],key:Q||"key",children:ee||"children"}}function ae(C,L){var G=new Map;function _(Q){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Q||[]).forEach(function(D){var O=D[L.key],d=D[L.children];warning(O!=null,"Tree node must have a certain key: [".concat(ee).concat(O,"]"));var q=String(O);warning(!G.has(q)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(q)),G.set(q,!0),_(d,"".concat(ee).concat(q," > "))})}_(C)}function k(C){function L(G){var _=(0,xe.Z)(G);return _.map(function(Q){if(!W(Q))return(0,R.ZP)(!Q,"Tree/TreeNode can only accept TreeNode as children."),null;var ee=Q.key,D=Q.props,O=D.children,d=(0,V.Z)(D,M),q=(0,P.Z)({key:ee},d),h=L(O);return h.length&&(q.children=h),q}).filter(function(Q){return Q})}return L(C)}function m(C,L,G){var _=A(G),Q=_._title,ee=_.key,D=_.children,O=new Set(L===!0?[]:L),d=[];function q(h){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(y,g){for(var Z=I(we?we.pos:"0",g),B=X(y[ee],Z),Se,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:{},G=L.initWrapper,_=L.processEntity,Q=L.onProcessFinished,ee=L.externalGetKey,D=L.childrenPropName,O=L.fieldNames,d=arguments.length>2?arguments[2]:void 0,q=ee||d,h={},we={},y={posEntities:h,keyEntities:we};return G&&(y=G(y)||y),K(C,function(g){var Z=g.node,B=g.index,Se=g.pos,Ue=g.key,me=g.parentPos,Me=g.level,ct=g.nodes,fe={node:Z,nodes:ct,index:B,key:Ue,pos:Se,level:Me},le=X(Ue,Se);h[Se]=fe,we[le]=fe,fe.parent=h[me],fe.parent&&(fe.parent.children=fe.parent.children||[],fe.parent.children.push(fe)),_&&_(fe,y)},{externalGetKey:q,childrenPropName:D,fieldNames:O}),Q&&Q(y),y}function Pe(C,L){var G=L.expandedKeys,_=L.selectedKeys,Q=L.loadedKeys,ee=L.loadingKeys,D=L.checkedKeys,O=L.halfCheckedKeys,d=L.dragOverNodeKey,q=L.dropPosition,h=L.keyEntities,we=(0,j.Z)(h,C),y={eventKey:C,expanded:G.indexOf(C)!==-1,selected:_.indexOf(C)!==-1,loaded:Q.indexOf(C)!==-1,loading:ee.indexOf(C)!==-1,checked:D.indexOf(C)!==-1,halfChecked:O.indexOf(C)!==-1,pos:String(we?we.pos:""),dragOver:d===C&&q===0,dragOverGapTop:d===C&&q===-1,dragOverGapBottom:d===C&&q===1};return y}function H(C){var L=C.data,G=C.expanded,_=C.selected,Q=C.checked,ee=C.loaded,D=C.loading,O=C.halfChecked,d=C.dragOver,q=C.dragOverGapTop,h=C.dragOverGapBottom,we=C.pos,y=C.active,g=C.eventKey,Z=(0,P.Z)((0,P.Z)({},L),{},{expanded:G,selected:_,checked:Q,loaded:ee,loading:D,halfChecked:O,dragOver:d,dragOverGapTop:q,dragOverGapBottom:h,pos:we,active:y,key:g});return"props"in Z||Object.defineProperty(Z,"props",{get:function(){return(0,R.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),C}}),Z}},52802:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(10422);function T(P,V,xe,Ke){var R=n.unstable_batchedUpdates?function(M){n.unstable_batchedUpdates(xe,M)}:xe;return P!=null&&P.addEventListener&&P.addEventListener(V,R,Ke),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(V,R,Ke)}}}},74253:function($t,Ie,a){a.d(Ie,{g1:function(){return W},os:function(){return A}});var n=/margin|padding|width|height|max|min|offset/,T={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function V(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function xe(ae,k,m){if(k=k.toLowerCase(),m==="auto"){if(k==="height")return ae.offsetHeight;if(k==="width")return ae.offsetWidth}return k in T||(T[k]=n.test(k)),T[k]?parseFloat(m)||0:m}function Ke(ae,k){var m=arguments.length,K=V(ae);return k=P[k]?"cssFloat"in ae.style?"cssFloat":"styleFloat":k,m===1?K:xe(ae,k,K[k]||ae.style[k])}function R(ae,k,m){var K=arguments.length;if(k=P[k]?"cssFloat"in ae.style?"cssFloat":"styleFloat":k,K===3)return typeof m=="number"&&n.test(k)&&(m="".concat(m,"px")),ae.style[k]=m,m;for(var ye in k)k.hasOwnProperty(ye)&&R(ae,ye,k[ye]);return V(ae)}function j(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function M(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function I(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),k=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:k}}function W(){var ae=document.documentElement.clientWidth,k=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:k}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function A(ae){var k=ae.getBoundingClientRect(),m=document.documentElement;return{left:k.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:k.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); diff --git a/1946.3b263e70.chunk.css b/1946.3b263e70.chunk.css deleted file mode 100644 index 5a3b4474..00000000 --- a/1946.3b263e70.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ant-affix{position:fixed;z-index:10}.ant-page-header{box-sizing:border-box;margin:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;padding:16px 24px;background-color:#fff}.ant-page-header-ghost{background-color:inherit}.ant-page-header.has-breadcrumb{padding-top:12px}.ant-page-header.has-footer{padding-bottom:0}.ant-page-header-back{margin-right:16px;font-size:16px;line-height:1}.ant-page-header-back-button{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;outline:none;transition:color .3s;color:#000;cursor:pointer}.ant-page-header-back-button:focus,.ant-page-header-back-button:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-page-header-back-button:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-page-header .ant-divider-vertical{height:14px;margin:0 12px;vertical-align:middle}.ant-breadcrumb+.ant-page-header-heading{margin-top:8px}.ant-page-header-heading{display:flex;justify-content:space-between}.ant-page-header-heading-left{display:flex;align-items:center;margin:4px 0;overflow:hidden}.ant-page-header-heading-title{margin-right:12px;margin-bottom:0;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:32px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading .ant-avatar{margin-right:12px}.ant-page-header-heading-sub-title{margin-right:12px;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading-extra{margin:4px 0;white-space:nowrap}.ant-page-header-heading-extra>*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}.ant-pro-field-date-picker-light .ant-calendar-picker,.ant-pro-field-date-picker-light .ant-picker{position:absolute;width:80px;height:28px;overflow:hidden;visibility:hidden}.ant-pro-core-field-label{display:inline-flex;grid-gap:4px;gap:4px;align-items:center;height:30px;padding:0 4px;font-size:14px;line-height:30px;border-radius:2px;cursor:pointer}.ant-pro-core-field-label:hover{background-color:rgba(0,0,0,.1)}.ant-pro-core-field-label-active{padding:0 12px;background-color:rgba(0,0,0,.04)}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-arrow{display:none}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-close{display:inline-block}.ant-pro-core-field-label-icon{height:12px;padding:1px;color:rgba(0,0,0,.45);font-size:12px;vertical-align:middle}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close{display:none;height:14px;padding:3px;color:#fff;font-size:8px;background-color:rgba(0,0,0,.25);border-radius:50%}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close:hover{background-color:rgba(0,0,0,.45)}.ant-pro-core-field-label-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-pro-core-field-label-disabled .ant-pro-core-field-label-icon{color:rgba(0,0,0,.25)}.ant-pro-core-field-label-small{height:24px;padding:0 4px;font-size:12px;line-height:24px}.ant-pro-core-field-label-small.ant-pro-core-field-label-active{padding:0 8px}.ant-pro-core-field-label-small .ant-pro-core-field-label-icon{padding:0}.ant-pro-core-field-label-small .ant-pro-core-field-label-close{margin-top:-2px;padding:3px;font-size:6px}.ant-pro-core-field-label-bordered{height:32px;padding:0 12px;border:1px solid #d9d9d9;border-radius:2px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-small{height:24px;padding:0 8px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-active{background-color:#fff}.ant-pro-field-index-column{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.ant-pro-field-index-column-border{color:#fff;font-size:12px;line-height:12px;background-color:#314659;border-radius:9px}.ant-pro-field-index-column-border.top-three{background-color:#979797}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-field-dropdown{width:auto}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field{max-width:100%}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xs{width:104px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-s{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-sm{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-m{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-md{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-l{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-lg{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xl{width:552px}.ant-pro-field-select-light-select .ant-select{position:absolute;width:153px;height:28px;visibility:hidden}.ant-pro-field-select-light-select .ant-select-selector{height:28px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select{width:200px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select-selector{height:28px}.ant-pro-form-group-title{margin-bottom:16px;font-weight:700}.ant-pro-form-group-container{flex-wrap:wrap;max-width:100%}.ant-pro-form-group-container>div.ant-space-item{max-width:100%}.ant-pro-form-group-twoLine{display:block;width:100%}.ant-pro-form-group-twoLine .ant-pro-form-group-title{width:100%;margin:8px 0}.ant-pro-form-group-twoLine .ant-pro-form-group-container{padding-left:16px}.ant-pro-form-group-twoLine .ant-form-item,.ant-pro-form-group-twoLine .ant-space-item{width:100%}.ant-pro-form-group-twoLine .ant-form-item-control{display:flex;align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input{align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input-content{flex:none}.ant-pro-field-checkbox-vertical .ant-checkbox-group-item{display:flex;margin-right:0}.ant-pro-core-label-tip{display:inline-flex;align-items:center;max-width:100%}.ant-pro-core-label-tip-icon{display:block;margin-left:4px;cursor:pointer}.ant-pro-core-label-tip-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-core-label-tip-title{display:inline-flex;flex:1 1}.ant-pro-core-label-tip-subtitle{margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;white-space:nowrap}.ant-pro-core-label-tip-title-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-form:not(.ant-form-horizontal) .ant-pro-form-list-item:not(.ant-pro-form-list-item-show-label) .ant-form-item-label{display:none}.ant-pro-form-list{max-width:100%}.ant-pro-form-list-item.ant-pro-form-list-item-show-label .ant-form-item-label{display:inline-block}.ant-pro-form-list-item:first-of-type div:first-of-type .ant-form-item .ant-form-item-label{display:inline-block}.ant-pro-form-list-action{display:flex;height:32px;margin-bottom:24px;line-height:32px}.ant-pro-form-list .ant-pro-card .ant-pro-card-extra .ant-pro-form-list-action{margin-bottom:0}.ant-pro-form-list-action-icon{margin-left:8px;cursor:pointer;transition:color .3s ease-in-out}.ant-pro-form-list-action-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-form-list-creator-button-top{margin-bottom:24px}.ant-pro-field-light-wrapper-collapse-label{padding:1}.ant-pro-field-light-wrapper-container .ant-form-item{margin-bottom:0}.ant-pro-core-field-dropdown-label{cursor:pointer}.ant-pro-core-field-dropdown-overlay{min-width:200px;margin-top:4px;background-color:#fff;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-core-field-dropdown-content{padding:16px}.ant-pro-core-dropdown-footer{display:flex;justify-content:space-between;padding:16px 16px 16px 8px;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-field-radio-vertical .ant-radio-wrapper{display:block;margin-right:0} \ No newline at end of file diff --git a/1958.c805c442.async.js b/1958.c805c442.async.js new file mode 100644 index 00000000..2c020d50 --- /dev/null +++ b/1958.c805c442.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1958],{82574:function(b,h,e){var t=e(33346),i=e(50959),_=e(5590),c=e(69164),f=function(C,T){return i.createElement(c.Z,(0,t.Z)((0,t.Z)({},C),{},{ref:T,icon:_.Z}))};f.displayName="DownOutlined",h.Z=i.forwardRef(f)},1442:function(b,h,e){var t=e(33346),i=e(50959),_=e(63374),c=e(69164),f=function(C,T){return i.createElement(c.Z,(0,t.Z)((0,t.Z)({},C),{},{ref:T,icon:_.Z}))};f.displayName="PlusOutlined",h.Z=i.forwardRef(f)},98150:function(b,h,e){var t=e(33346),i=e(10570),_=e(50959),c=e(54970),f=e(82578),x=e(11527),C=["fieldProps","proFieldProps"],T="dateTime",g=_.forwardRef(function(p,L){var U=p.fieldProps,a=p.proFieldProps,K=(0,i.Z)(p,C),O=(0,_.useContext)(c.Z);return(0,x.jsx)(f.Z,(0,t.Z)({ref:L,fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},U),valueType:T,proFieldProps:a,filedConfig:{valueType:T,customLightMode:!0}},K))});h.Z=g},79712:function(b,h,e){var t=e(33346),i=e(10570),_=e(44559),c=e(50959),f=e(54970),x=e(82578),C=e(11527),T=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(u,S){var j=u.fieldProps,n=u.children,o=u.params,E=u.proFieldProps,M=u.mode,R=u.valueEnum,I=u.request,W=u.showSearch,r=u.options,F=(0,i.Z)(u,T),Z=(0,c.useContext)(f.Z);return(0,C.jsx)(x.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,_.h)(R),request:I,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:r,mode:M,showSearch:W,getPopupContainer:Z.getPopupContainer},j),ref:S,proFieldProps:E},F),{},{children:n}))},L=c.forwardRef(function(O,u){var S=O.fieldProps,j=O.children,n=O.params,o=O.proFieldProps,E=O.mode,M=O.valueEnum,R=O.request,I=O.options,W=(0,i.Z)(O,g),r=(0,t.Z)({options:I,mode:E||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},S),F=(0,c.useContext)(f.Z);return(0,C.jsx)(x.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,_.h)(M),request:R,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:F.getPopupContainer},r),ref:u,proFieldProps:o},W),{},{children:j}))}),U=c.forwardRef(p),a=L,K=U;K.SearchSelect=a,K.displayName="ProFormComponent",h.Z=K},59224:function(b,h,e){var t=e(33346),i=e(10570),_=e(50959),c=e(82578),f=e(11527),x=["fieldProps","proFieldProps"],C=function(g,p){var L=g.fieldProps,U=g.proFieldProps,a=(0,i.Z)(g,x);return(0,f.jsx)(c.Z,(0,t.Z)({ref:p,valueType:"textarea",fieldProps:L,proFieldProps:U},a))};h.Z=_.forwardRef(C)},60010:function(b,h,e){var t=e(32682),i=e(33346),_=e(10570),c=e(65589),f=e(67190),x=e(82757),C=e(71770),T=e(50959),g=e(82578),p=e(11527),L=["fieldProps","proFieldProps"],U=["fieldProps","proFieldProps"],a="text",K=function(n){var o=n.fieldProps,E=n.proFieldProps,M=(0,_.Z)(n,L);return(0,p.jsx)(g.Z,(0,i.Z)({valueType:a,fieldProps:o,filedConfig:{valueType:a},proFieldProps:E},M))},O=function(n){var o=(0,c.Z)(n.open||!1,{value:n.open,onChange:n.onOpenChange}),E=(0,t.Z)(o,2),M=E[0],R=E[1];return(0,p.jsx)(f.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(W){var r,F=W.getFieldValue(n.name||[]);return(0,p.jsx)(x.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:R,content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[(r=n.statusRender)===null||r===void 0?void 0:r.call(n,F),n.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:n.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},n.popoverProps),{},{open:M,children:n.children}))}})},u=function(n){var o=n.fieldProps,E=n.proFieldProps,M=(0,_.Z)(n,U),R=(0,T.useState)(!1),I=(0,t.Z)(R,2),W=I[0],r=I[1];return o!=null&&o.statusRender&&M.name?(0,p.jsx)(O,{name:M.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:W,onOpenChange:r,children:(0,p.jsx)(g.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,C.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(Z){var D;o==null||(D=o.onBlur)===null||D===void 0||D.call(o,Z),r(!1)},onClick:function(Z){var D;o==null||(D=o.onClick)===null||D===void 0||D.call(o,Z),r(!0)}}),proFieldProps:E,filedConfig:{valueType:a}},M))}):(0,p.jsx)(g.Z,(0,i.Z)({valueType:"password",fieldProps:o,proFieldProps:E,filedConfig:{valueType:a}},M))},S=K;S.Password=u,S.displayName="ProFormComponent",h.Z=S},76022:function(b,h,e){e.d(h,{Y:function(){return j}});var t=e(3224),i=e(47801),_=e(33346),c=e(32682),f=e(10570),x=e(87322),C=e(56197),T=e(45319),g=e(72266),p=e.n(g),L=e(65589),U=e(12868),a=e(50959),K=e(10422),O=e(1704),u=e(11527),S=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function j(n){var o,E,M=n.children,R=n.trigger,I=n.onVisibleChange,W=n.onOpenChange,r=n.modalProps,F=n.onFinish,Z=n.submitTimeout,D=n.title,q=n.width,N=n.visible,X=n.open,m=(0,f.Z)(n,S);(0,U.ET)(!m.footer||!(r!=null&&r.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var H=(0,a.useContext)(C.ZP.ConfigContext),ee=(0,a.useState)([]),re=(0,c.Z)(ee,2),oe=re[1],ne=(0,a.useState)(!1),Q=(0,c.Z)(ne,2),Y=Q[0],z=Q[1],te=(0,L.Z)(!!N,{value:X||N,onChange:W||I}),w=(0,c.Z)(te,2),$=w[0],y=w[1],G=(0,a.useRef)(null),le=(0,a.useCallback)(function(d){G.current===null&&d&&oe([]),G.current=d},[]),V=(0,a.useRef)(),ae=(0,a.useCallback)(function(){var d,l,s,P=(d=(l=m.form)!==null&&l!==void 0?l:(s=m.formRef)===null||s===void 0?void 0:s.current)!==null&&d!==void 0?d:V.current;P&&r!==null&&r!==void 0&&r.destroyOnClose&&P.resetFields()},[r==null?void 0:r.destroyOnClose,m.form,m.formRef]);(0,a.useImperativeHandle)(m.formRef,function(){return V.current},[V.current]),(0,a.useEffect)(function(){$&&(X||N)&&(W==null||W(!0),I==null||I(!0))},[N,X,$]);var se=(0,a.useMemo)(function(){return R?a.cloneElement(R,(0,_.Z)((0,_.Z)({key:"trigger"},R.props),{},{onClick:function(){var d=(0,i.Z)((0,t.Z)().mark(function s(P){var A,v;return(0,t.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y(!$),(A=R.props)===null||A===void 0||(v=A.onClick)===null||v===void 0||v.call(A,P);case 2:case"end":return B.stop()}},s)}));function l(s){return d.apply(this,arguments)}return l}()})):null},[y,R,$]),ie=(0,a.useMemo)(function(){var d,l,s,P,A,v;return m.submitter===!1?!1:p()({searchConfig:{submitText:(d=(l=r==null?void 0:r.okText)!==null&&l!==void 0?l:(s=H.locale)===null||s===void 0||(s=s.Modal)===null||s===void 0?void 0:s.okText)!==null&&d!==void 0?d:"\u786E\u8BA4",resetText:(P=(A=r==null?void 0:r.cancelText)!==null&&A!==void 0?A:(v=H.locale)===null||v===void 0||(v=v.Modal)===null||v===void 0?void 0:v.cancelText)!==null&&P!==void 0?P:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:Z?Y:void 0,onClick:function(B){var J;y(!1),r==null||(J=r.onCancel)===null||J===void 0||J.call(r,B)}}},m.submitter)},[(o=H.locale)===null||o===void 0||(o=o.Modal)===null||o===void 0?void 0:o.cancelText,(E=H.locale)===null||E===void 0||(E=E.Modal)===null||E===void 0?void 0:E.okText,r,m.submitter,y,Y,Z]),ue=(0,a.useCallback)(function(d,l){return(0,u.jsxs)(u.Fragment,{children:[d,G.current&&l?(0,u.jsx)(a.Fragment,{children:(0,K.createPortal)(l,G.current)},"submitter"):l]})},[]),_e=(0,a.useCallback)(function(){var d=(0,i.Z)((0,t.Z)().mark(function l(s){var P,A,v;return(0,t.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return P=F==null?void 0:F(s),Z&&P instanceof Promise&&(z(!0),A=setTimeout(function(){return z(!1)},Z),P.finally(function(){clearTimeout(A),z(!1)})),B.next=4,P;case 4:return v=B.sent,v&&y(!1),B.abrupt("return",v);case 7:case"end":return B.stop()}},l)}));return function(l){return d.apply(this,arguments)}}(),[F,y,Z]),de=(0,x.X)($);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.Z,(0,_.Z)((0,_.Z)((0,_.Z)({title:D,width:q||800},r),de),{},{onCancel:function(l){var s;Z&&Y||(y(!1),r==null||(s=r.onCancel)===null||s===void 0||s.call(r,l))},afterClose:function(){var l;ae(),y(!1),r==null||(l=r.afterClose)===null||l===void 0||l.call(r)},footer:m.submitter!==!1?(0,u.jsx)("div",{ref:le,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,u.jsx)(O.I,(0,_.Z)((0,_.Z)({formComponentType:"ModalForm",layout:"vertical"},m),{},{onInit:function(l,s){var P;m.formRef&&(m.formRef.current=s),m==null||(P=m.onInit)===null||P===void 0||P.call(m,l,s),V.current=s},formRef:V,submitter:ie,onFinish:function(){var d=(0,i.Z)((0,t.Z)().mark(function l(s){var P;return(0,t.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,_e(s);case 2:return P=v.sent,v.abrupt("return",P);case 4:case"end":return v.stop()}},l)}));return function(l){return d.apply(this,arguments)}}(),contentRender:ue,children:M}))})),se]})}}}]); diff --git a/2058.c054cb8c.async.js b/2058.c054cb8c.async.js new file mode 100644 index 00000000..e7387bc0 --- /dev/null +++ b/2058.c054cb8c.async.js @@ -0,0 +1,40 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2058],{8941:function(ee,E){"use strict";var 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"};E.Z=s},39669:function(ee,E,s){"use strict";var n=s(57),x=s(50959),Q=function(c,u){var m={};for(var y in c)Object.prototype.hasOwnProperty.call(c,y)&&u.indexOf(y)<0&&(m[y]=c[y]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,y=Object.getOwnPropertySymbols(c);j{const m=U=>{const{keyCode:I}=U;I===n.Z.ENTER&&U.preventDefault()},y=U=>{const{keyCode:I}=U,{onClick:Y}=c;I===n.Z.ENTER&&Y&&Y()},{style:j,noStyle:ne,disabled:G}=c,v=Q(c,["style","noStyle","disabled"]);let Z={};return ne||(Z=Object.assign({},te)),G&&(Z.pointerEvents="none"),Z=Object.assign(Object.assign({},Z),j),x.createElement("div",Object.assign({role:"button",tabIndex:0,ref:u},v,{onKeyDown:m,onKeyUp:y,style:Z}))});E.Z=K},3970:function(ee,E,s){"use strict";s.d(E,{N:function(){return n}});const n=x=>({color:x.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${x.motionDurationSlow}`,"&:focus, &:hover":{color:x.colorLinkHover},"&:active":{color:x.colorLinkActive}})},52058:function(ee,E,s){"use strict";s.d(E,{Z:function(){return Rt}});var n=s(50959),x=s(87132),Q=s(8221),te=s(38126),K=s(8941),c=s(38782),u=function(o,r){return n.createElement(c.Z,(0,te.Z)({},o,{ref:r,icon:K.Z}))},m=n.forwardRef(u),y=s(84875),j=s.n(y),ne=s(874),G=s.n(ne),v=s(12682),Z=s(13763),U=s(77189),I=s(65589),Y=s(87017),Te=s(12602),je=s(5449),Le=s(39669),Re=s(31594),Fe=s(45449),Ee=s(32618),Ve={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"},Xe=Ve,Ge=function(o,r){return n.createElement(c.Z,(0,te.Z)({},o,{ref:r,icon:Xe}))},Je=n.forwardRef(Ge),Ie=s(57),Qe=s(94914),Ye=s(15714),Pe=s(3970),qe=s(81501),_e=s(81548),et=s(60076);const tt=(e,o,r,t)=>{const{titleMarginBottom:i,fontWeightStrong:p}=t;return{marginBottom:i,color:r,fontWeight:p,fontSize:e,lineHeight:o}},nt=e=>{const o=[1,2,3,4,5],r={};return o.forEach(t=>{r[` + h${t}&, + div&-h${t}, + div&-h${t} > textarea, + h${t} + `]=tt(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},ot=e=>{const{componentCls:o}=e;return{"a&, a":Object.assign(Object.assign({},(0,Pe.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},rt=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.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:e.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:_e.gold[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:e.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}}),it=e=>{const{componentCls:o,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,et.bf)(t)})`},[`${o}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},lt=e=>({"&-copy-success":{[` + &, + &:hover, + &:focus`]:{color:e.colorSuccess}}}),st=()=>({[` + a&-ellipsis, + span&-ellipsis + `]:{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"}}),at=e=>{const{componentCls:o,titleMarginTop:r}=e;return{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${o}-secondary`]:{color:e.colorTextDescription},[`&${o}-success`]:{color:e.colorSuccess},[`&${o}-warning`]:{color:e.colorWarning},[`&${o}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + div&, + p + `]:{marginBottom:"1em"}},nt(e)),{[` + & + h1${o}, + & + h2${o}, + & + h3${o}, + & + h4${o}, + & + h5${o} + `]:{marginTop:r},[` + div, + ul, + li, + p, + h1, + h2, + h3, + h4, + h5`]:{[` + + h1, + + h2, + + h3, + + h4, + + h5 + `]:{marginTop:r}}}),rt(e)),ot(e)),{[` + ${o}-expand, + ${o}-edit, + ${o}-copy + `]:Object.assign(Object.assign({},(0,Pe.N)(e)),{marginInlineStart:e.marginXXS})}),it(e)),lt(e)),st()),{"&-rtl":{direction:"rtl"}})}},ct=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var De=(0,qe.I$)("Typography",e=>[at(e)],ct),dt=e=>{const{prefixCls:o,"aria-label":r,className:t,style:i,direction:p,maxLength:P,autoSize:N=!0,value:b,onSave:S,onCancel:f,onEnd:z,component:A,enterIcon:M=n.createElement(Je,null)}=e,h=n.useRef(null),O=n.useRef(!1),B=n.useRef(),[oe,J]=n.useState(b);n.useEffect(()=>{J(b)},[b]),n.useEffect(()=>{if(h.current&&h.current.resizableTextArea){const{textArea:R}=h.current.resizableTextArea;R.focus();const{length:w}=R.value;R.setSelectionRange(w,w)}},[]);const d=R=>{let{target:w}=R;J(w.value.replace(/[\n\r]/g,""))},L=()=>{O.current=!0},H=()=>{O.current=!1},D=R=>{let{keyCode:w}=R;O.current||(B.current=w)},se=()=>{S(oe.trim())},q=R=>{let{keyCode:w,ctrlKey:ue,altKey:fe,metaKey:re,shiftKey:ae}=R;B.current===w&&!O.current&&!ue&&!fe&&!re&&!ae&&(w===Ie.Z.ENTER?(se(),z==null||z()):w===Ie.Z.ESC&&f())},g=()=>{se()},C=A?`${o}-${A}`:"",[F,k]=De(o),_=j()(o,`${o}-edit-content`,{[`${o}-rtl`]:p==="rtl"},t,C,k);return F(n.createElement("div",{className:_,style:i},n.createElement(Ye.Z,{ref:h,maxLength:P,value:oe,onChange:d,onKeyDown:D,onKeyUp:q,onCompositionStart:L,onCompositionEnd:H,onBlur:g,"aria-label":r,rows:1,autoSize:N}),M!==null?(0,Qe.Tm)(M,{className:`${o}-edit-content-confirm`}):null))},ut=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{prefixCls:r,component:t="article",className:i,rootClassName:p,setContentRef:P,children:N,direction:b,style:S}=e,f=ut(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:z,direction:A,typography:M}=n.useContext(Re.E_),h=b!=null?b:A;let O=o;P&&(O=(0,Te.sQ)(o,P));const B=z("typography",r),[oe,J]=De(B),d=j()(B,M==null?void 0:M.className,{[`${B}-rtl`]:h==="rtl"},i,p,J),L=Object.assign(Object.assign({},M==null?void 0:M.style),S);return oe(n.createElement(t,Object.assign({className:d,style:L,ref:O},f),N))});function xe(e,o){return n.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},o),r&&typeof e=="object"?e:null)]},[e])}var ft=(e,o)=>{const r=n.useRef(!1);n.useEffect(()=>{r.current?e():r.current=!0},o)};function Ne(e){const o=typeof e;return o==="string"||o==="number"}function pt(e){let o=0;return e.forEach(r=>{Ne(r)?o+=String(r).length:o+=1}),o}function Se(e,o){let r=0;const t=[];for(let i=0;io){const S=o-r;return t.push(String(p).slice(0,S)),t}t.push(p),r=b}return e}const gt=0,pe=1,Me=2,Oe=3,Ce=4;var mt=e=>{let{enabledMeasure:o,children:r,text:t,width:i,fontSize:p,rows:P,onEllipsis:N}=e;const[[b,S,f],z]=n.useState([0,0,0]),[A,M]=n.useState(0),[h,O]=n.useState(gt),[B,oe]=n.useState(0),J=n.useRef(null),d=n.useRef(null),L=n.useMemo(()=>(0,Z.Z)(t),[t]),H=n.useMemo(()=>pt(L),[L]),D=n.useMemo(()=>!o||h!==Oe?A&&h!==Ce&&o?r(Se(L,A),A{o&&i&&p&&H&&(O(pe),z([0,Math.ceil(H/2),H]))},[o,i,p,t,H,P]),(0,U.Z)(()=>{var C;h===pe&&oe(((C=J.current)===null||C===void 0?void 0:C.offsetHeight)||0)},[h]),(0,U.Z)(()=>{var C,F;if(B){if(h===pe){const k=((C=d.current)===null||C===void 0?void 0:C.offsetHeight)||0,_=P*B;k<=_?(O(Ce),N(!1)):O(Me)}else if(h===Me)if(b!==f){const k=((F=d.current)===null||F===void 0?void 0:F.offsetHeight)||0,_=P*B;let R=b,w=f;b===f-1?w=b:k<=_?R=S:w=S;const ue=Math.ceil((R+w)/2);z([R,ue,w])}else O(Oe),M(S),N(!0)}},[h,b,f,P,B]);const se={width:i,whiteSpace:"normal",margin:0,padding:0},q=(C,F,k)=>n.createElement("span",{"aria-hidden":!0,ref:F,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(p/2)*2},k)},C),g=(C,F)=>{const k=Se(L,C);return q(r(k,!0),F,se)};return n.createElement(n.Fragment,null,D,o&&h!==Oe&&h!==Ce&&n.createElement(n.Fragment,null,q("lg",J,{wordBreak:"keep-all",whiteSpace:"nowrap"}),h===pe?q(r(L,!1),d,se):g(S,d)))},yt=e=>{let{enabledEllipsis:o,isEllipsis:r,children:t,tooltipProps:i}=e;return!(i!=null&&i.title)||!o?t:n.createElement(Ee.Z,Object.assign({open:r?void 0:!1},i),t)},vt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var r,t,i;const{prefixCls:p,className:P,style:N,type:b,disabled:S,children:f,ellipsis:z,editable:A,copyable:M,component:h,title:O}=e,B=vt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:oe,direction:J}=n.useContext(Re.E_),[d]=(0,Fe.Z)("Text"),L=n.useRef(null),H=n.useRef(null),D=oe("typography",p),se=(0,Y.Z)(B,["mark","code","delete","underline","strong","keyboard","italic"]),[q,g]=xe(A),[C,F]=(0,I.Z)(!1,{value:g.editing}),{triggerType:k=["icon"]}=g,_=l=>{var a;l&&((a=g.onStart)===null||a===void 0||a.call(g)),F(l)};ft(()=>{var l;C||(l=H.current)===null||l===void 0||l.focus()},[C]);const R=l=>{l==null||l.preventDefault(),_(!0)},w=l=>{var a;(a=g.onChange)===null||a===void 0||a.call(g,l),_(!1)},ue=()=>{var l;(l=g.onCancel)===null||l===void 0||l.call(g),_(!1)},[fe,re]=xe(M),[ae,Ze]=n.useState(!1),we=n.useRef(null),ze={};re.format&&(ze.format=re.format);const Ae=()=>{we.current&&clearTimeout(we.current)},It=l=>{var a;l==null||l.preventDefault(),l==null||l.stopPropagation(),G()(re.text||String(f)||"",ze),Ze(!0),Ae(),we.current=setTimeout(()=>{Ze(!1)},3e3),(a=re.onCopy)===null||a===void 0||a.call(re,l)};n.useEffect(()=>Ae,[]);const[He,Pt]=n.useState(!1),[ke,Dt]=n.useState(!1),[$t,Nt]=n.useState(!1),[We,Mt]=n.useState(!1),[Ke,Bt]=n.useState(!1),[Zt,zt]=n.useState(!0),[ie,T]=xe(z,{expandable:!1}),V=ie&&!$t,{rows:ce=1}=T,ye=n.useMemo(()=>!V||T.suffix!==void 0||T.onEllipsis||T.expandable||q||fe,[V,T,q,fe]);(0,U.Z)(()=>{ie&&!ye&&(Pt((0,je.G)("webkitLineClamp")),Dt((0,je.G)("textOverflow")))},[ye,ie]);const X=n.useMemo(()=>ye?!1:ce===1?ke:He,[ye,ke,He]),Ue=V&&(X?Ke:We),At=V&&ce===1&&X,ve=V&&ce>1&&X,Ht=l=>{var a;Nt(!0),(a=T.onExpand)===null||a===void 0||a.call(T,l)},[kt,Wt]=n.useState(0),[Kt,Ut]=n.useState(0),Ft=(l,a)=>{let{offsetWidth:$}=l;var W;Wt($),Ut(parseInt((W=window.getComputedStyle)===null||W===void 0?void 0:W.call(window,a).fontSize,10)||0)},Vt=l=>{var a;Mt(l),We!==l&&((a=T.onEllipsis)===null||a===void 0||a.call(T,l))};n.useEffect(()=>{const l=L.current;if(ie&&X&&l){const a=ve?l.offsetHeight{const l=L.current;if(typeof IntersectionObserver=="undefined"||!l||!X||!V)return;const a=new IntersectionObserver(()=>{zt(!!l.offsetParent)});return a.observe(l),()=>{a.disconnect()}},[X,V]);let le={};T.tooltip===!0?le={title:(r=g.text)!==null&&r!==void 0?r:f}:n.isValidElement(T.tooltip)?le={title:T.tooltip}:typeof T.tooltip=="object"?le=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:f},T.tooltip):le={title:T.tooltip};const be=n.useMemo(()=>{const l=a=>["string","number"].includes(typeof a);if(!(!ie||X)){if(l(g.text))return g.text;if(l(f))return f;if(l(O))return O;if(l(le.title))return le.title}},[ie,X,O,le.title,Ue]);if(C)return n.createElement(dt,{value:(i=g.text)!==null&&i!==void 0?i:typeof f=="string"?f:"",onSave:w,onCancel:ue,onEnd:g.onEnd,prefixCls:D,className:P,style:N,direction:J,component:h,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Xt=()=>{const{expandable:l,symbol:a}=T;if(!l)return null;let $;return a?$=a:$=d==null?void 0:d.expand,n.createElement("a",{key:"expand",className:`${D}-expand`,onClick:Ht,"aria-label":d==null?void 0:d.expand},$)},Gt=()=>{if(!q)return;const{icon:l,tooltip:a}=g,$=(0,Z.Z)(a)[0]||(d==null?void 0:d.edit),W=typeof $=="string"?$:"";return k.includes("icon")?n.createElement(Ee.Z,{key:"edit",title:a===!1?"":$},n.createElement(Le.Z,{ref:H,className:`${D}-edit`,onClick:R,"aria-label":W},l||n.createElement(m,{role:"button"}))):null},Jt=()=>{if(!fe)return;const{tooltips:l,icon:a}=re,$=Be(l),W=Be(a),he=ae?ge($[1],d==null?void 0:d.copied):ge($[0],d==null?void 0:d.copy),qt=ae?d==null?void 0:d.copied:d==null?void 0:d.copy,_t=typeof he=="string"?he:qt;return n.createElement(Ee.Z,{key:"copy",title:he},n.createElement(Le.Z,{className:j()(`${D}-copy`,ae&&`${D}-copy-success`),onClick:It,"aria-label":_t},ae?ge(W[1],n.createElement(x.Z,null),!0):ge(W[0],n.createElement(Q.Z,null),!0)))},Qt=l=>[l&&Xt(),Gt(),Jt()],Yt=l=>[l&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ht),T.suffix,Qt(l)];return n.createElement(v.Z,{onResize:Ft,disabled:!V||X},l=>n.createElement(yt,{tooltipProps:le,enabledEllipsis:V,isEllipsis:Ue},n.createElement($e,Object.assign({className:j()({[`${D}-${b}`]:b,[`${D}-disabled`]:S,[`${D}-ellipsis`]:ie,[`${D}-single-line`]:V&&ce===1,[`${D}-ellipsis-single-line`]:At,[`${D}-ellipsis-multiple-line`]:ve},P),prefixCls:p,style:Object.assign(Object.assign({},N),{WebkitLineClamp:ve?ce:void 0}),component:h,ref:(0,Te.sQ)(l,L,o),direction:J,onClick:k.includes("text")?R:void 0,"aria-label":be==null?void 0:be.toString(),title:O},se),n.createElement(mt,{enabledMeasure:V&&!X,text:f,rows:ce,width:kt,fontSize:Kt,onEllipsis:Vt},(a,$)=>{let W=a;return a.length&&$&&be&&(W=n.createElement("span",{key:"show-content","aria-hidden":!0},W)),bt(e,n.createElement(n.Fragment,null,W,Yt($)))}))))}),Et=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r,rel:t}=e,i=Et(e,["ellipsis","rel"]);const p=Object.assign(Object.assign({},i),{rel:t===void 0&&i.target==="_blank"?"noopener noreferrer":t});return delete p.navigate,n.createElement(me,Object.assign({},p,{ref:o,ellipsis:!!r,component:"a"}))}),St=n.forwardRef((e,o)=>n.createElement(me,Object.assign({ref:o},e,{component:"div"}))),Ot=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r}=e,t=Ot(e,["ellipsis"]);const i=n.useMemo(()=>r&&typeof r=="object"?(0,Y.Z)(r,["expandable","rows"]):r,[r]);return n.createElement(me,Object.assign({ref:o},t,{ellipsis:i,component:"span"}))};var wt=n.forwardRef(Ct),Tt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{level:r=1}=e,t=Tt(e,["level"]);let i;return jt.includes(r)?i=`h${r}`:i="h1",n.createElement(me,Object.assign({ref:o},t,{component:i}))});const de=$e;de.Text=wt,de.Link=xt,de.Title=Lt,de.Paragraph=St;var Rt=de},874:function(ee,E,s){"use strict";var n=s(16935),x={"text/plain":"Text","text/html":"Url",default:"Text"},Q="Copy to clipboard: #{key}, Enter";function te(c){var u=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return c.replace(/#{\s*key\s*}/g,u)}function K(c,u){var m,y,j,ne,G,v,Z=!1;u||(u={}),m=u.debug||!1;try{j=n(),ne=document.createRange(),G=document.getSelection(),v=document.createElement("span"),v.textContent=c,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(I){if(I.stopPropagation(),u.format)if(I.preventDefault(),typeof I.clipboardData=="undefined"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=x[u.format]||x.default;window.clipboardData.setData(Y,c)}else I.clipboardData.clearData(),I.clipboardData.setData(u.format,c);u.onCopy&&(I.preventDefault(),u.onCopy(I.clipboardData))}),document.body.appendChild(v),ne.selectNodeContents(v),G.addRange(ne);var U=document.execCommand("copy");if(!U)throw new Error("copy command was unsuccessful");Z=!0}catch(I){m&&console.error("unable to copy using execCommand: ",I),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",c),u.onCopy&&u.onCopy(window.clipboardData),Z=!0}catch(Y){m&&console.error("unable to copy using clipboardData: ",Y),m&&console.error("falling back to prompt"),y=te("message"in u?u.message:Q),window.prompt(y,c)}}finally{G&&(typeof G.removeRange=="function"?G.removeRange(ne):G.removeAllRanges()),v&&document.body.removeChild(v),j()}return Z}ee.exports=K},5449:function(ee,E,s){"use strict";s.d(E,{G:function(){return te}});var n=s(63490),x=function(c){if((0,n.Z)()&&window.document.documentElement){var u=Array.isArray(c)?c:[c],m=window.document.documentElement;return u.some(function(y){return y in m.style})}return!1},Q=function(c,u){if(!x(c))return!1;var m=document.createElement("div"),y=m.style[c];return m.style[c]=u,m.style[c]!==y};function te(K,c){return!Array.isArray(K)&&c!==void 0?Q(K,c):x(K)}},16935:function(ee){ee.exports=function(){var E=document.getSelection();if(!E.rangeCount)return function(){};for(var s=document.activeElement,n=[],x=0;x=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x=h&&!p||p==="m"?(u+=i.abbreviations.million,e=e/h):(x=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],_=r.split(".")[1],S=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(n._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),d=n._.toFixed(e,_[0].length+_[1].length,l,_[1].length)):d=n._.toFixed(e,_.length,l),b=d.split(".")[0],n._.includes(d,".")?d=i.delimiters.decimal+d.split(".")[1]:d="",o&&Number(d.slice(1))===0&&(d="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),B=!0),b.length0;$--)b="0"+b;return S>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+d+(u||""),t?F=(t&&B?"(":"")+F+(t&&B?")":""):k>=0?F=k===0?(B?"-":"+")+F:F+(B?"-":"+"):B&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a,u;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(u=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(u)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;ti?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=g,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch(h){f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=E.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in g)if(i.match(g[t].regexps.format)){a=g[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)==1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",h,w,d;for(o=o.replace(/\s?i?b/,""),h=0;h<=f.suffixes.length;h++)if(w=Math.pow(f.base,h),d=Math.pow(f.base,h+1),t===null||t===0||t>=w&&t0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),h=o*s*(a*s)/(s*s);return h}return n._.reduce([l,Math.pow(10,i)],t,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})}(),n})}}]); diff --git a/3233.26a62287.chunk.css b/3233.26a62287.chunk.css deleted file mode 100644 index 498aa723..00000000 --- a/3233.26a62287.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ant-card{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;background:#fff;border-radius:2px}.ant-card-rtl{direction:rtl}.ant-card-hoverable{cursor:pointer;transition:box-shadow .3s,border-color .3s}.ant-card-hoverable:hover{border-color:transparent;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-bordered{border:1px solid rgba(0,0,0,.06)}.ant-card-head{min-height:48px;margin-bottom:-1px;padding:0 24px;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;background:transparent;border-bottom:1px solid rgba(0,0,0,.06);border-radius:2px 2px 0 0}.ant-card-head:before{display:table;content:""}.ant-card-head:after{display:table;clear:both;content:""}.ant-card-head-wrapper{display:flex;align-items:center}.ant-card-head-title{display:inline-block;flex:1 1;padding:16px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-card-head-title>.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-statistic{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-statistic-title{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.ant-statistic-skeleton{padding-top:16px}.ant-statistic-content{color:rgba(0,0,0,.85);font-size:24px;font-family:-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"}.ant-statistic-content-value{display:inline-block;direction:ltr}.ant-statistic-content-prefix,.ant-statistic-content-suffix{display:inline-block}.ant-statistic-content-prefix{margin-right:4px}.ant-statistic-content-suffix{margin-left:4px}.ant-statistic-rtl{direction:rtl}.ant-statistic-rtl .ant-statistic-content-prefix{margin-right:0;margin-left:4px}.ant-statistic-rtl .ant-statistic-content-suffix{margin-right:4px;margin-left:0} \ No newline at end of file diff --git a/3233.57c816f6.async.js b/3233.57c816f6.async.js deleted file mode 100644 index 4f4daf32..00000000 --- a/3233.57c816f6.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3233],{81903:function(){},7277:function(u,d,t){"use strict";t.d(d,{Z:function(){return Y}});var o=t(96156),a=t(22122),e=t(67294),r=t(94184),n=t.n(r),i=t(53124),c=t(33860),E=t(11726),m=t.n(E),p=function(f){var l=f.value,s=f.formatter,v=f.precision,x=f.decimalSeparator,S=f.groupSeparator,R=S===void 0?"":S,g=f.prefixCls,A;if(typeof s=="function")A=s(l);else{var D=String(l),y=D.match(/^(-?)(\d*)(\.(\d+))?$/);if(!y||D==="-")A=D;else{var O=y[1],I=y[2]||"0",C=y[4]||"";I=I.replace(/\B(?=(\d{3})+(?!\d))/g,R),typeof v=="number"&&(C=m()(C,v,"0").slice(0,v>0?v:0)),C&&(C="".concat(x).concat(C)),A=[e.createElement("span",{key:"int",className:"".concat(g,"-content-value-int")},O,I),C&&e.createElement("span",{key:"decimal",className:"".concat(g,"-content-value-decimal")},C)]}}return e.createElement("span",{className:"".concat(g,"-content-value")},A)},M=p,T=function(f){var l=f.prefixCls,s=f.className,v=f.style,x=f.valueStyle,S=f.value,R=S===void 0?0:S,g=f.title,A=f.valueRender,D=f.prefix,y=f.suffix,O=f.loading,I=f.direction,C=f.onMouseEnter,B=f.onMouseLeave,$=e.createElement(M,(0,a.Z)({},f,{value:R})),Q=n()(l,(0,o.Z)({},"".concat(l,"-rtl"),I==="rtl"),s);return e.createElement("div",{className:Q,style:v,onMouseEnter:C,onMouseLeave:B},g&&e.createElement("div",{className:"".concat(l,"-title")},g),e.createElement(c.Z,{paragraph:!1,loading:O,className:"".concat(l,"-skeleton")},e.createElement("div",{style:x,className:"".concat(l,"-content")},D&&e.createElement("span",{className:"".concat(l,"-content-prefix")},D),A?A($):$,y&&e.createElement("span",{className:"".concat(l,"-content-suffix")},y))))};T.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var P=(0,i.PG)({prefixCls:"statistic"})(T),h=P,Z=t(6610),b=t(5991),L=t(10379),U=t(60446),W=t(28481),z=t(32475),F=t.n(z),j=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function J(N,f){var l=N,s=/\[[^\]]*]/g,v=(f.match(s)||[]).map(function(g){return g.slice(1,-1)}),x=f.replace(s,"[]"),S=j.reduce(function(g,A){var D=(0,W.Z)(A,2),y=D[0],O=D[1];if(g.indexOf(y)!==-1){var I=Math.floor(l/O);return l-=I*O,g.replace(new RegExp("".concat(y,"+"),"g"),function(C){var B=C.length;return F()(I.toString(),B,"0")})}return g},x),R=0;return S.replace(s,function(){var g=v[R];return R+=1,g})}function K(N,f){var l=f.format,s=l===void 0?"":l,v=new Date(N).getTime(),x=Date.now(),S=Math.max(v-x,0);return J(S,s)}var w=t(96159),G=1e3/30;function H(N){return new Date(N).getTime()}var V=function(N){(0,L.Z)(l,N);var f=(0,U.Z)(l);function l(){var s;return(0,Z.Z)(this,l),s=f.apply(this,arguments),s.syncTimer=function(){var v=s.props.value,x=H(v);x>=Date.now()?s.startTimer():s.stopTimer()},s.startTimer=function(){if(!s.countdownId){var v=s.props,x=v.onChange,S=v.value,R=H(S);s.countdownId=window.setInterval(function(){s.forceUpdate(),x&&R>Date.now()&&x(R-Date.now())},G)}},s.stopTimer=function(){var v=s.props,x=v.onFinish,S=v.value;if(s.countdownId){clearInterval(s.countdownId),s.countdownId=void 0;var R=H(S);x&&Rd)return r;do e%2&&(r+=a),e=t(e/2),e&&(a+=a);while(e);return r}u.exports=o},14259:function(u){function d(t,o,a){var e=-1,r=t.length;o<0&&(o=-o>r?0:r+o),a=a>r?r:a,a<0&&(a+=r),r=o>a?0:a-o>>>0,o>>>=0;for(var n=Array(r);++e=i?e:o(e,r,n)}u.exports=a},78302:function(u,d,t){var o=t(18190),a=t(80531),e=t(40180),r=t(62689),n=t(88016),i=t(83140),c=Math.ceil;function E(m,p){p=p===void 0?" ":a(p);var M=p.length;if(M<2)return M?o(p,m):p;var T=o(p,c(m/n(p)));return r(p)?e(i(T),0,m).join(""):T.slice(0,m)}u.exports=E},62689:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="\\u200d",i=RegExp("["+n+d+e+r+"]");function c(E){return i.test(E)}u.exports=c},88016:function(u,d,t){var o=t(48983),a=t(62689),e=t(21903);function r(n){return a(n)?e(n):o(n)}u.exports=r},83140:function(u,d,t){var o=t(44286),a=t(62689),e=t(676);function r(n){return a(n)?e(n):o(n)}u.exports=r},21903:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="["+d+"]",i="["+e+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+i+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",T="\\u200d",P=E+"?",h="["+r+"]?",Z="(?:"+T+"(?:"+[m,p,M].join("|")+")"+h+P+")*",b=h+P+Z,L="(?:"+[m+i+"?",i,p,M,n].join("|")+")",U=RegExp(c+"(?="+c+")|"+L+b,"g");function W(z){for(var F=U.lastIndex=0;U.test(z);)++F;return F}u.exports=W},676:function(u){var d="\\ud800-\\udfff",t="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",e=t+o+a,r="\\ufe0e\\ufe0f",n="["+d+"]",i="["+e+"]",c="\\ud83c[\\udffb-\\udfff]",E="(?:"+i+"|"+c+")",m="[^"+d+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",T="\\u200d",P=E+"?",h="["+r+"]?",Z="(?:"+T+"(?:"+[m,p,M].join("|")+")"+h+P+")*",b=h+P+Z,L="(?:"+[m+i+"?",i,p,M,n].join("|")+")",U=RegExp(c+"(?="+c+")|"+L+b,"g");function W(z){return z.match(U)||[]}u.exports=W},11726:function(u,d,t){var o=t(78302),a=t(88016),e=t(40554),r=t(79833);function n(i,c,E){i=r(i),c=e(c);var m=c?a(i):0;return c&&m div".concat(l.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(v={display:"block",width:"100%"},(0,d.Z)(v,"".concat(l.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,d.Z)(v,"".concat(l.componentCls,"-container"),{paddingInlineStart:16}),(0,d.Z)(v,"".concat(l.antCls,"-space-item,").concat(l.antCls,"-form-item"),{width:"100%"}),(0,d.Z)(v,"".concat(l.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),v)})};function o(s){return(0,j.Xj)("ProFormGroup",function(l){var v=(0,t.Z)((0,t.Z)({},l),{},{componentCls:".".concat(s)});return[D(v)]})}var n=e(11527),O=i.forwardRef(function(s,l){var v=i.useContext(E.Z),y=v.groupProps,a=(0,t.Z)((0,t.Z)({},y),s),H=a.children,z=a.collapsible,K=a.defaultCollapsed,re=a.style,_=a.labelLayout,b=a.title,$=b===void 0?s.label:b,X=a.tooltip,k=a.align,q=k===void 0?"start":k,J=a.direction,ee=a.size,M=ee===void 0?32:ee,B=a.titleStyle,L=a.titleRender,R=a.spaceProps,A=a.extra,Q=a.autoFocus,ae=(0,f.Z)(function(){return K||!1},{value:s.collapsed,onChange:s.onCollapse}),ne=(0,C.Z)(ae,2),V=ne[0],Y=ne[1],te=(0,i.useContext)(I.ZP.ConfigContext),he=te.getPrefixCls,se=(0,c.zx)(s),Pe=se.ColWrapper,ie=se.RowWrapper,G=he("pro-form-group"),de=o(G),fe=de.wrapSSR,oe=de.hashId,ue=z&&(0,n.jsx)(S.Z,{style:{marginInlineEnd:8},rotate:V?void 0:90}),ce=(0,n.jsx)(u.G,{label:ue?(0,n.jsxs)("div",{children:[ue,$]}):$,tooltip:X}),ve=(0,i.useCallback)(function(N){var w=N.children;return(0,n.jsx)(F.Z,(0,t.Z)((0,t.Z)({},R),{},{className:Z()("".concat(G,"-container ").concat(oe),R==null?void 0:R.className),size:M,align:q,direction:J,style:(0,t.Z)({rowGap:0},R==null?void 0:R.style),children:w}))},[q,G,J,oe,M,R]),pe=L?L(ce,s):ce,Ce=(0,i.useMemo)(function(){var N=[],w=i.Children.toArray(H).map(function(U,xe){var le;return i.isValidElement(U)&&U!==null&&U!==void 0&&(le=U.props)!==null&&le!==void 0&&le.hidden?(N.push(U),null):xe===0&&i.isValidElement(U)&&Q?i.cloneElement(U,(0,t.Z)((0,t.Z)({},U.props),{},{autoFocus:Q})):U});return[(0,n.jsx)(ie,{Wrapper:ve,children:w},"children"),N.length>0?(0,n.jsx)("div",{style:{display:"none"},children:N}):null]},[H,ie,ve,Q]),me=(0,C.Z)(Ce,2),ge=me[0],Ee=me[1];return fe((0,n.jsx)(Pe,{children:(0,n.jsxs)("div",{className:Z()(G,oe,(0,d.Z)({},"".concat(G,"-twoLine"),_==="twoLine")),style:re,ref:l,children:[Ee,($||X||A)&&(0,n.jsx)("div",{className:"".concat(G,"-title ").concat(oe).trim(),style:B,onClick:function(){Y(!V)},children:A?(0,n.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[pe,(0,n.jsx)("span",{onClick:function(w){return w.stopPropagation()},children:A})]}):pe}),(0,n.jsx)("div",{style:{display:z&&V?"none":void 0},children:ge})]})}))});O.displayName="ProForm-Group";var h=O,x=e(75693);function m(s){return(0,n.jsx)(p.I,(0,t.Z)({layout:"vertical",submitter:{render:function(v,y){return y.reverse()}},contentRender:function(v,y){return(0,n.jsxs)(n.Fragment,{children:[v,y]})}},s))}m.Group=h,m.useForm=r.Z.useForm,m.Item=x.Z,m.useWatch=r.Z.useWatch,m.ErrorList=r.Z.ErrorList,m.Provider=r.Z.Provider,m.useFormInstance=r.Z.useFormInstance,m.EditOrReadOnlyContext=g.A},19494:function(W,P,e){e.d(P,{f:function(){return F}});var t=e(73273),r=e(56197),i=e(84875),p=e.n(i),g=e(50959),d=e(169),C=e(33346),S=e(26488),f=function(Z){return(0,t.Z)({},Z.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function u(T){return(0,S.Xj)("ProLayoutGridContent",function(Z){var E=(0,C.Z)((0,C.Z)({},Z),{},{componentCls:".".concat(T)});return[f(E)]})}var I=e(11527),F=function(Z){var E=(0,g.useContext)(d.X),c=Z.children,j=Z.contentWidth,D=Z.className,o=Z.style,n=(0,g.useContext)(r.ZP.ConfigContext),O=n.getPrefixCls,h=Z.prefixCls||O("pro"),x=j||E.contentWidth,m="".concat(h,"-grid-content"),s=u(m),l=s.wrapSSR,v=s.hashId,y=x==="Fixed"&&E.layout==="top";return l((0,I.jsx)("div",{className:p()(m,v,D,(0,t.Z)({},"".concat(m,"-wide"),y)),style:o,children:(0,I.jsx)("div",{className:"".concat(h,"-grid-content-children ").concat(v).trim(),children:c})}))}},169:function(W,P,e){e.d(P,{X:function(){return r}});var t=e(50959),r=(0,t.createContext)({})},21804:function(W,P,e){e.d(P,{G:function(){return j}});var t=e(33346),r=e(73273),i=e(38126),p=e(50959),g=e(9455),d=e(38782),C=function(o,n){return p.createElement(d.Z,(0,i.Z)({},o,{ref:n,icon:g.Z}))},S=p.forwardRef(C),f=e(56197),u=e(32618),I=e(84875),F=e.n(I),T=e(26488),Z=function(o){return(0,r.Z)({},o.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:o.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:o.colorTextSecondary,fontWeight:"normal",fontSize:o.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function E(D){return(0,T.Xj)("LabelIconTip",function(o){var n=(0,t.Z)((0,t.Z)({},o),{},{componentCls:".".concat(D)});return[Z(n)]})}var c=e(11527),j=p.memo(function(D){var o=D.label,n=D.tooltip,O=D.ellipsis,h=D.subTitle,x=(0,p.useContext)(f.ZP.ConfigContext),m=x.getPrefixCls,s=m("pro-core-label-tip"),l=E(s),v=l.wrapSSR,y=l.hashId;if(!n&&!h)return(0,c.jsx)(c.Fragment,{children:o});var a=typeof n=="string"||p.isValidElement(n)?{title:n}:n,H=(a==null?void 0:a.icon)||(0,c.jsx)(S,{});return v((0,c.jsxs)("div",{className:F()(s,y),onMouseDown:function(K){return K.stopPropagation()},onMouseLeave:function(K){return K.stopPropagation()},onMouseMove:function(K){return K.stopPropagation()},children:[(0,c.jsx)("div",{className:F()("".concat(s,"-title"),y,(0,r.Z)({},"".concat(s,"-title-ellipsis"),O)),children:o}),h&&(0,c.jsx)("div",{className:"".concat(s,"-subtitle ").concat(y).trim(),children:h}),n&&(0,c.jsx)(u.Z,(0,t.Z)((0,t.Z)({},a),{},{children:(0,c.jsx)("span",{className:"".concat(s,"-icon ").concat(y).trim(),children:H})}))]}))})}}]); diff --git a/339.995382d7.async.js b/339.995382d7.async.js new file mode 100644 index 00000000..561f35f9 --- /dev/null +++ b/339.995382d7.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[339],{53295:function(e,u,t){"use strict";t.d(u,{Z:function(){return P}});var n=t(50959),r=t(2116),a=t(94914),o=t(84875),s=t.n(o),i=t(31594),f=t(25670),p=y=>{const{value:x,formatter:v,precision:j,decimalSeparator:m,groupSeparator:D="",prefixCls:F}=y;let B;if(typeof v=="function")B=v(x);else{const G=String(x),H=G.match(/^(-?)(\d*)(\.(\d+))?$/);if(!H||G==="-")B=G;else{const z=H[1];let U=H[2]||"0",$=H[4]||"";U=U.replace(/\B(?=(\d{3})+(?!\d))/g,D),typeof j=="number"&&($=$.padEnd(j,"0").slice(0,j>0?j:0)),$&&($=`${m}${$}`),B=[n.createElement("span",{key:"int",className:`${F}-content-value-int`},z,U),$&&n.createElement("span",{key:"decimal",className:`${F}-content-value-decimal`},$)]}}return n.createElement("span",{className:`${F}-content-value`},B)},l=t(6301),d=t(81501),g=t(90467);const b=y=>{const{componentCls:x,marginXXS:v,padding:j,colorTextDescription:m,titleFontSize:D,colorTextHeading:F,contentFontSize:B,fontFamily:G}=y;return{[`${x}`]:Object.assign(Object.assign({},(0,l.Wf)(y)),{[`${x}-title`]:{marginBottom:v,color:m,fontSize:D},[`${x}-skeleton`]:{paddingTop:j},[`${x}-content`]:{color:F,fontSize:B,fontFamily:G,[`${x}-content-value`]:{display:"inline-block",direction:"ltr"},[`${x}-content-prefix, ${x}-content-suffix`]:{display:"inline-block"},[`${x}-content-prefix`]:{marginInlineEnd:v},[`${x}-content-suffix`]:{marginInlineStart:v}}})}},I=y=>{const{fontSizeHeading3:x,fontSize:v}=y;return{titleFontSize:v,contentFontSize:x}};var E=(0,d.I$)("Statistic",y=>{const x=(0,g.TS)(y,{});return[b(x)]},I),A=y=>{const{prefixCls:x,className:v,rootClassName:j,style:m,valueStyle:D,value:F=0,title:B,valueRender:G,prefix:H,suffix:z,loading:U=!1,onMouseEnter:$,onMouseLeave:q,decimalSeparator:_=".",groupSeparator:ot=","}=y,{getPrefixCls:st,direction:it,statistic:X}=n.useContext(i.E_),W=st("statistic",x),[ut,ft]=E(W),tt=n.createElement(p,Object.assign({decimalSeparator:_,groupSeparator:ot,prefixCls:W},y,{value:F})),ct=s()(W,{[`${W}-rtl`]:it==="rtl"},X==null?void 0:X.className,v,j,ft);return ut(n.createElement("div",{className:ct,style:Object.assign(Object.assign({},X==null?void 0:X.style),m),onMouseEnter:$,onMouseLeave:q},B&&n.createElement("div",{className:`${W}-title`},B),n.createElement(f.Z,{paragraph:!1,loading:U,className:`${W}-skeleton`},n.createElement("div",{style:D,className:`${W}-content`},H&&n.createElement("span",{className:`${W}-content-prefix`},H),G?G(tt):tt,z&&n.createElement("span",{className:`${W}-content-suffix`},z)))))};const M=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function h(y,x){let v=y;const j=/\[[^\]]*]/g,m=(x.match(j)||[]).map(G=>G.slice(1,-1)),D=x.replace(j,"[]"),F=M.reduce((G,H)=>{let[z,U]=H;if(G.includes(z)){const $=Math.floor(v/U);return v-=$*U,G.replace(new RegExp(`${z}+`,"g"),q=>{const _=q.length;return $.toString().padStart(_,"0")})}return G},D);let B=0;return F.replace(j,()=>{const G=m[B];return B+=1,G})}function L(y,x){const{format:v=""}=x,j=new Date(y).getTime(),m=Date.now(),D=Math.max(j-m,0);return h(D,v)}const C=1e3/30;function N(y){return new Date(y).getTime()}const O=y=>{const{value:x,format:v="HH:mm:ss",onChange:j,onFinish:m}=y,D=(0,r.Z)(),F=n.useRef(null),B=()=>{m==null||m(),F.current&&(clearInterval(F.current),F.current=null)},G=()=>{const U=N(x);U>=Date.now()&&(F.current=setInterval(()=>{D(),j==null||j(U-Date.now()),U(G(),()=>{F.current&&(clearInterval(F.current),F.current=null)}),[x]);const H=(U,$)=>L(U,Object.assign(Object.assign({},$),{format:v})),z=U=>(0,a.Tm)(U,{title:void 0});return n.createElement(A,Object.assign({},y,{valueRender:z,formatter:H}))};var T=n.memo(O);A.Countdown=T;var P=A},87269:function(e,u,t){var n=t(47758),r=t(29165),a=n(r,"DataView");e.exports=a},88987:function(e,u,t){var n=t(71519),r=t(82999),a=t(76111),o=t(50506),s=t(80845);function i(f){var c=-1,p=f==null?0:f.length;for(this.clear();++c1?i[c-1]:void 0,l=c>2?i[2]:void 0;for(p=o.length>3&&typeof p=="function"?(c--,p):void 0,l&&r(i[0],i[1],l)&&(p=c<3?void 0:p,c=1),s=Object(s);++fI))return!1;var S=g.get(f),A=g.get(c);if(S&&A)return S==c&&A==f;var M=-1,h=!0,L=p&s?new n:void 0;for(g.set(f,c),g.set(c,f);++M-1&&r%1==0&&r-1}e.exports=r},3564:function(e,u,t){var n=t(62718);function r(a,o){var s=this.__data__,i=n(s,a);return i<0?(++this.size,s.push([a,o])):s[i][1]=o,this}e.exports=r},7140:function(e,u,t){var n=t(88987),r=t(175),a=t(35922);function o(){this.size=0,this.__data__={hash:new n,map:new(a||r),string:new n}}e.exports=o},56504:function(e,u,t){var n=t(67707);function r(a){var o=n(this,a).delete(a);return this.size-=o?1:0,o}e.exports=r},88833:function(e,u,t){var n=t(67707);function r(a){return n(this,a).get(a)}e.exports=r},80953:function(e,u,t){var n=t(67707);function r(a){return n(this,a).has(a)}e.exports=r},70724:function(e,u,t){var n=t(67707);function r(a,o){var s=n(this,a),i=s.size;return s.set(a,o),this.size+=s.size==i?0:1,this}e.exports=r},7523:function(e){function u(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}e.exports=u},45171:function(e,u,t){var n=t(34736),r=500;function a(o){var s=n(o,function(f){return i.size===r&&i.clear(),f}),i=s.cache;return s}e.exports=a},37722:function(e,u,t){var n=t(47758),r=n(Object,"create");e.exports=r},14457:function(e,u,t){var n=t(75542),r=n(Object.keys,Object);e.exports=r},10814:function(e){function u(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}e.exports=u},8478:function(e,u,t){e=t.nmd(e);var n=t(96476),r=u&&!u.nodeType&&u,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,s=o&&n.process,i=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch(c){}}();e.exports=i},75542:function(e){function u(t,n){return function(r){return t(n(r))}}e.exports=u},20323:function(e,u,t){var n=t(93501),r=Math.max;function a(o,s,i){return s=r(s===void 0?o.length-1:s,0),function(){for(var f=arguments,c=-1,p=r(f.length-s,0),l=Array(p);++c0){if(++o>=u)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}e.exports=r},40551:function(e,u,t){var n=t(175);function r(){this.__data__=new n,this.size=0}e.exports=r},4090:function(e){function u(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}e.exports=u},47694:function(e){function u(t){return this.__data__.get(t)}e.exports=u},86220:function(e){function u(t){return this.__data__.has(t)}e.exports=u},68958:function(e,u,t){var n=t(175),r=t(35922),a=t(9440),o=200;function s(i,f){var c=this.__data__;if(c instanceof n){var p=c.__data__;if(!r||p.length=p||D<0||h&&F>=b}function P(){var m=r();if(T(m))return y(m);E=setTimeout(P,O(m))}function y(m){return E=void 0,L&&d?C(m):(d=g=void 0,I)}function x(){E!==void 0&&clearTimeout(E),A=0,d=S=g=E=void 0}function v(){return E===void 0?I:y(r())}function j(){var m=r(),D=T(m);if(d=arguments,g=this,S=m,D){if(E===void 0)return N(S);if(h)return clearTimeout(E),E=setTimeout(P,p),C(S)}return E===void 0&&(E=setTimeout(P,p)),I}return j.cancel=x,j.flush=v,j}e.exports=f},42448:function(e){function u(t,n){return t===n||t!==t&&n!==n}e.exports=u},65439:function(e,u,t){var n=t(97499);function r(a,o,s){var i=a==null?void 0:n(a,o);return i===void 0?s:i}e.exports=r},48148:function(e){function u(t){return t}e.exports=u},30353:function(e,u,t){var n=t(84742),r=t(55073),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,i=n(function(){return arguments}())?n:function(f){return r(f)&&o.call(f,"callee")&&!s.call(f,"callee")};e.exports=i},47428:function(e,u,t){var n=t(92042),r=t(17216);function a(o){return o!=null&&r(o.length)&&!n(o)}e.exports=a},57348:function(e,u,t){var n=t(47428),r=t(55073);function a(o){return r(o)&&n(o)}e.exports=a},61563:function(e,u,t){e=t.nmd(e);var n=t(29165),r=t(84193),a=u&&!u.nodeType&&u,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,i=s?n.Buffer:void 0,f=i?i.isBuffer:void 0,c=f||r;e.exports=c},92042:function(e,u,t){var n=t(80732),r=t(36838),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function f(c){if(!r(c))return!1;var p=n(c);return p==o||p==s||p==a||p==i}e.exports=f},17216:function(e){var u=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=u}e.exports=t},32924:function(e,u,t){var n=t(64033),r=t(58792),a=t(8478),o=a&&a.isMap,s=o?r(o):n;e.exports=s},36838:function(e){function u(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}e.exports=u},69143:function(e,u,t){var n=t(80732),r=t(11389),a=t(55073),o="[object Object]",s=Function.prototype,i=Object.prototype,f=s.toString,c=i.hasOwnProperty,p=f.call(Object);function l(d){if(!a(d)||n(d)!=o)return!1;var g=r(d);if(g===null)return!0;var b=c.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&f.call(b)==p}e.exports=l},45380:function(e,u,t){var n=t(28264),r=t(58792),a=t(8478),o=a&&a.isSet,s=o?r(o):n;e.exports=s},56549:function(e,u,t){var n=t(80732),r=t(24669),a=t(55073),o="[object String]";function s(i){return typeof i=="string"||!r(i)&&a(i)&&n(i)==o}e.exports=s},73806:function(e,u,t){var n=t(22882),r=t(58792),a=t(8478),o=a&&a.isTypedArray,s=o?r(o):n;e.exports=s},50579:function(e,u,t){var n=t(79809),r=t(87473),a=t(47428);function o(s){return a(s)?n(s):r(s)}e.exports=o},37390:function(e,u,t){var n=t(79809),r=t(52506),a=t(47428);function o(s){return a(s)?n(s,!0):r(s)}e.exports=o},34736:function(e,u,t){var n=t(9440),r="Expected a function";function a(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new TypeError(r);var i=function(){var f=arguments,c=s?s.apply(this,f):f[0],p=i.cache;if(p.has(c))return p.get(c);var l=o.apply(this,f);return i.cache=p.set(c,l)||p,l};return i.cache=new(a.Cache||n),i}a.Cache=n,e.exports=a},67929:function(e,u,t){var n=t(97254),r=t(77991),a=r(function(o,s,i){n(o,s,i)});e.exports=a},76668:function(e,u,t){var n=t(29165),r=function(){return n.Date.now()};e.exports=r},68036:function(e){function u(){return[]}e.exports=u},84193:function(e){function u(){return!1}e.exports=u},38209:function(e,u,t){var n=t(66292),r=t(36838),a="Expected a function";function o(s,i,f){var c=!0,p=!0;if(typeof s!="function")throw new TypeError(a);return r(f)&&(c="leading"in f?!!f.leading:c,p="trailing"in f?!!f.trailing:p),n(s,i,{leading:c,maxWait:i,trailing:p})}e.exports=o},12448:function(e,u,t){var n=t(33124),r=t(36838),a=t(16764),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;function p(l){if(typeof l=="number")return l;if(a(l))return o;if(r(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=r(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=n(l);var g=i.test(l);return g||f.test(l)?c(l.slice(2),g?2:8):s.test(l)?o:+l}e.exports=p},85111:function(e,u,t){var n=t(92434),r=t(37390);function a(o){return n(o,r(o))}e.exports=a}}]); diff --git a/3794.092283b9.async.js b/3794.092283b9.async.js deleted file mode 100644 index b772a512..00000000 --- a/3794.092283b9.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3794],{19675:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return X}});var le=d(28991),O=d(67294),T={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"},h=T,n=d(27029),Xe=function(w,ne){return O.createElement(n.Z,(0,le.Z)((0,le.Z)({},w),{},{ref:ne,icon:h}))};Xe.displayName="CaretDownOutlined";var X=O.forwardRef(Xe)},28612:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return X}});var le=d(28991),O=d(67294),T={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"},h=T,n=d(27029),Xe=function(w,ne){return O.createElement(n.Z,(0,le.Z)((0,le.Z)({},w),{},{ref:ne,icon:h}))};Xe.displayName="CaretUpOutlined";var X=O.forwardRef(Xe)},31242:function(){},16695:function(){},84164:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return T}});var le=d(90484),O=d(67294);function T(h,n,Xe){var X=O.useRef({});function Cn(w){if(!X.current||X.current.data!==h||X.current.childrenColumnName!==n||X.current.getRowKey!==Xe){let Nn=function(jn){jn.forEach(function(nn,Pn){var An=Xe(nn,Pn);ne.set(An,nn),nn&&(0,le.Z)(nn)==="object"&&n in nn&&Nn(nn[n]||[])})};var ne=new Map;Nn(h),X.current={data:h,childrenColumnName:n,kvMap:ne,getRowKey:Xe}}return X.current.kvMap.get(w)}return[Cn]}},34424:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return Ko}});var le=d(90484),O=d(96156),T=d(28481),h=d(22122),n=d(67294),Xe=d(94184),X=d.n(Xe),Cn=d(98423),w=d(28991),ne=d(85061),Nn=d(5110),jn=d(64217),nn=d(25295),Pn=d(96774),An=d.n(Pn),At=d(80334),it=d(48717),ct=d(74204);function Rt(e){return null}var zt=Rt;function Ht(e){return null}var Bt=Ht,hn=d(81253),st=d(42550),$t="RC_TABLE_KEY";function ut(e){return e==null?[]:Array.isArray(e)?e:[e]}function dt(e,t){if(!t&&typeof t!="number")return e;for(var r=ut(t),o=e,a=0;a=r}function Gt(e){return e&&(0,le.Z)(e)==="object"&&!Array.isArray(e)&&!n.isValidElement(e)}function Zt(e){return typeof e=="string"?!0:(0,st.Yr)(e)}var Xt=function(t){var r=t.ellipsis,o=t.rowType,a=t.children,l,s=r===!0?{showTitle:!0}:r;return s&&(s.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():n.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Xn(e,t){var r,o,a,l=e.prefixCls,s=e.className,i=e.record,c=e.index,v=e.renderIndex,m=e.dataIndex,u=e.render,f=e.children,p=e.component,g=p===void 0?"td":p,x=e.colSpan,C=e.rowSpan,y=e.fixLeft,S=e.fixRight,I=e.firstFixLeft,K=e.lastFixLeft,A=e.firstFixRight,q=e.lastFixRight,_=e.appendNode,D=e.additionalProps,F=D===void 0?{}:D,ie=e.ellipsis,B=e.align,z=e.rowType,M=e.isSticky,L=e.hovering,V=e.onHover,N="".concat(l,"-cell"),$=n.useContext(Gn),k=n.useContext(pt),we=n.useMemo(function(){if(vt(f))return[f];var H=dt(i,m),P=H,E=void 0;if(u){var Z=u(H,i,v);Gt(Z)?(P=Z.children,E=Z.props,$.renderWithProps=!0):P=Z}return[P,E]},[$.renderWithProps?Math.random():0,f,m,$,i,u,v]),ye=(0,T.Z)(we,2),Le=ye[0],Ee=ye[1],te=Le;(0,le.Z)(te)==="object"&&!Array.isArray(te)&&!n.isValidElement(te)&&(te=null),ie&&(K||A)&&(te=n.createElement("span",{className:"".concat(N,"-content")},te));var ve=Ee||{},Ve=ve.colSpan,Fe=ve.rowSpan,xe=ve.style,Ae=ve.className,Ne=(0,hn.Z)(ve,Vt),me=(r=Ve!==void 0?Ve:x)!==null&&r!==void 0?r:1,He=(o=Fe!==void 0?Fe:C)!==null&&o!==void 0?o:1;if(me===0||He===0)return null;var Y={},be=typeof y=="number"&&k,de=typeof S=="number"&&k;be&&(Y.position="sticky",Y.left=y),de&&(Y.position="sticky",Y.right=S);var pe={};B&&(pe.textAlign=B);var Ke=function(P){var E;i&&V(c,c+He-1),F==null||(E=F.onMouseEnter)===null||E===void 0||E.call(F,P)},ke=function(P){var E;i&&V(-1,-1),F==null||(E=F.onMouseLeave)===null||E===void 0||E.call(F,P)},ze=Xt({rowType:z,ellipsis:ie,children:Le}),j=(0,w.Z)((0,w.Z)((0,w.Z)({title:ze},Ne),F),{},{colSpan:me!==1?me:null,rowSpan:He!==1?He:null,className:X()(N,s,(a={},(0,O.Z)(a,"".concat(N,"-fix-left"),be&&k),(0,O.Z)(a,"".concat(N,"-fix-left-first"),I&&k),(0,O.Z)(a,"".concat(N,"-fix-left-last"),K&&k),(0,O.Z)(a,"".concat(N,"-fix-right"),de&&k),(0,O.Z)(a,"".concat(N,"-fix-right-first"),A&&k),(0,O.Z)(a,"".concat(N,"-fix-right-last"),q&&k),(0,O.Z)(a,"".concat(N,"-ellipsis"),ie),(0,O.Z)(a,"".concat(N,"-with-append"),_),(0,O.Z)(a,"".concat(N,"-fix-sticky"),(be||de)&&M&&k),(0,O.Z)(a,"".concat(N,"-row-hover"),!Ee&&L),a),F.className,Ae),style:(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},F.style),pe),Y),xe),onMouseEnter:Ke,onMouseLeave:ke,ref:Zt(g)?t:null});return n.createElement(g,j,_,te)}var ht=n.forwardRef(Xn);ht.displayName="Cell";var Yt=["expanded","className","hovering"],b=n.memo(ht,function(e,t){return t.shouldCellUpdate?Yt.every(function(r){return e[r]===t[r]})&&!t.shouldCellUpdate(t.record,e.record):An()(e,t)}),ae=n.forwardRef(function(e,t){var r=n.useContext(Ct),o=r.onHover,a=r.startRow,l=r.endRow,s=e.index,i=e.additionalProps,c=i===void 0?{}:i,v=e.colSpan,m=e.rowSpan,u=c.colSpan,f=c.rowSpan,p=v!=null?v:u,g=m!=null?m:f,x=jt(s,g||1,a,l);return n.createElement(b,(0,h.Z)({},e,{colSpan:p,rowSpan:g,hovering:x,ref:t,onHover:o}))});ae.displayName="WrappedCell";var Q=ae,oe=n.createContext(null),se=oe;function Me(e,t,r,o,a){var l=r[e]||{},s=r[t]||{},i,c;l.fixed==="left"?i=o.left[e]:s.fixed==="right"&&(c=o.right[t]);var v=!1,m=!1,u=!1,f=!1,p=r[t+1],g=r[e-1];if(a==="rtl"){if(i!==void 0){var x=g&&g.fixed==="left";f=!x}else if(c!==void 0){var C=p&&p.fixed==="right";u=!C}}else if(i!==void 0){var y=p&&p.fixed==="left";v=!y}else if(c!==void 0){var S=g&&g.fixed==="right";m=!S}return{fixLeft:i,fixRight:c,lastFixLeft:v,firstFixRight:m,lastFixRight:u,firstFixLeft:f,isSticky:o.isSticky}}function U(e){var t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,s=e.onHeaderRow,i=e.index,c=n.useContext(se),v=c.prefixCls,m=c.direction,u;s&&(u=s(t.map(function(p){return p.column}),i));var f=Ye(t.map(function(p){return p.column}));return n.createElement(a,u,t.map(function(p,g){var x=p.column,C=Me(p.colStart,p.colEnd,o,r,m),y;return x&&x.onHeaderCell&&(y=p.column.onHeaderCell(x)),n.createElement(Q,(0,h.Z)({},p,{ellipsis:x.ellipsis,align:x.align,component:l,prefixCls:v,key:f[g]},C,{additionalProps:y,rowType:"header"}))}))}U.displayName="HeaderRow";var tn=U;function De(e){var t=[];function r(s,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var v=i,m=s.filter(Boolean).map(function(u){var f={key:u.key,className:u.className||"",children:u.title,column:u,colStart:v},p=1,g=u.children;return g&&g.length>0&&(p=r(g,v,c+1).reduce(function(x,C){return x+C},0),f.hasSubColumns=!0),"colSpan"in u&&(p=u.colSpan),"rowSpan"in u&&(f.rowSpan=u.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,t[c].push(f),v+=p,p});return m}r(e,0);for(var o=t.length,a=function(i){t[i].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=o-i)})},l=0;l1?Ke-1:0),ze=1;ze0?[].concat((0,ne.Z)(t),(0,ne.Z)(Qn(l).map(function(s){return(0,w.Z)({fixed:a},s)}))):[].concat((0,ne.Z)(t),[(0,w.Z)((0,w.Z)({},r),{},{fixed:a})])},[])}function St(e){for(var t=!0,r=0;r=0;l-=1){var s=e[l];if(a&&s.fixed!=="right")a=!1;else if(!a&&s.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function qn(e){return e.map(function(t){var r=t.fixed,o=(0,hn.Z)(t,nr),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,w.Z)({fixed:a},o)})}function _n(e,t){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,s=e.expandedKeys,i=e.getRowKey,c=e.onTriggerExpand,v=e.expandIcon,m=e.rowExpandable,u=e.expandIconColumnIndex,f=e.direction,p=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=n.useMemo(function(){return o||_e(a)},[o,a]),y=n.useMemo(function(){if(l){var K,A=C.slice();if(!A.includes(Te)){var q=u||0;q>=0&&A.splice(q,0,Te)}var _=A.indexOf(Te);A=A.filter(function(B,z){return B!==Te||z===_});var D=C[_],F;(x==="left"||x)&&!u?F="left":(x==="right"||x)&&u===C.length?F="right":F=D?D.fixed:null;var ie=(K={},(0,O.Z)(K,an,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,O.Z)(K,"title",""),(0,O.Z)(K,"fixed",F),(0,O.Z)(K,"className","".concat(r,"-row-expand-icon-cell")),(0,O.Z)(K,"width",g),(0,O.Z)(K,"render",function(z,M,L){var V=i(M,L),N=s.has(V),$=m?m(M):!0,k=v({prefixCls:r,expanded:N,expandable:$,record:M,onExpand:c});return p?n.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},k):k}),K);return A.map(function(B){return B===Te?ie:B})}return C.filter(function(B){return B!==Te})},[l,C,i,s,v,f]),S=n.useMemo(function(){var K=y;return t&&(K=t(K)),K.length||(K=[{render:function(){return null}}]),K},[t,y,f]),I=n.useMemo(function(){return f==="rtl"?qn(Qn(S)):Qn(S)},[S,f]);return[S,I]}var tr=_n;function Ot(e){var t=(0,n.useRef)(e),r=(0,n.useState)({}),o=(0,T.Z)(r,2),a=o[1],l=(0,n.useRef)(null),s=(0,n.useRef)([]);function i(c){s.current.push(c);var v=Promise.resolve();l.current=v,v.then(function(){if(l.current===v){var m=s.current,u=t.current;s.current=[],m.forEach(function(f){t.current=f(t.current)}),l.current=null,u!==t.current&&a({})}})}return(0,n.useEffect)(function(){return function(){l.current=null}},[]),[t.current,i]}function on(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function o(){window.clearTimeout(r.current)}function a(s){t.current=s,o(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function l(){return t.current}return(0,n.useEffect)(function(){return o},[]),[a,l]}function ca(e,t,r){var o=(0,n.useMemo)(function(){for(var a=[],l=[],s=0,i=0,c=0;c=0;i-=1){var c=t[i],v=r&&r[i],m=v&&v[an];if(c||m||s){var u=m||{},f=u.columnType,p=(0,hn.Z)(u,ua);a.unshift(n.createElement("col",(0,h.Z)({key:i,style:{width:c}},p))),s=!0}}return n.createElement("colgroup",null,a)}var Er=da;function fa(e){var t=e.className,r=e.children;return n.createElement("div",{className:t},r)}var Rr=fa,va=n.createContext({}),Zr=va;function ma(e){var t=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,s=e.rowSpan,i=e.align,c=n.useContext(se),v=c.prefixCls,m=c.direction,u=n.useContext(Zr),f=u.scrollColumnIndex,p=u.stickyOffsets,g=u.flattenColumns,x=r+l-1,C=x+1===f?l+1:l,y=Me(r,r+C-1,g,p,m);return n.createElement(Q,(0,h.Z)({className:t,index:r,component:"td",prefixCls:v,record:null,dataIndex:null,align:i,colSpan:C,rowSpan:s,render:function(){return o}},y))}var pa=["children"];function Ca(e){var t=e.children,r=(0,hn.Z)(e,pa);return n.createElement("tr",r,t)}function rr(e){var t=e.children;return t}rr.Row=Ca,rr.Cell=ma;var wr=rr;function ha(e){var t=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=n.useContext(se),l=a.prefixCls,s=o.length-1,i=o[s],c=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(i==null?void 0:i.scrollbar)?s:null}},[i,o,s,r]);return n.createElement(Zr.Provider,{value:c},n.createElement("tfoot",{className:"".concat(l,"-summary")},t))}var bt=ha,Nr=wr;function ya(e){var t,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,s=e.expandable,i="".concat(r,"-row-expand-icon");if(!s)return n.createElement("span",{className:X()(i,"".concat(r,"-row-spaced"))});var c=function(m){a(o,m),m.stopPropagation()};return n.createElement("span",{className:X()(i,(t={},(0,O.Z)(t,"".concat(r,"-row-expanded"),l),(0,O.Z)(t,"".concat(r,"-row-collapsed"),!l),t)),onClick:c})}function xa(e,t,r){var o=[];function a(l){(l||[]).forEach(function(s,i){o.push(t(s,i)),a(s[r])})}return a(e),o}var Mt=d(64019),Pr=d(27678),ga=function(t,r){var o,a,l=t.scrollBodyRef,s=t.onScroll,i=t.offsetScroll,c=t.container,v=n.useContext(se),m=v.prefixCls,u=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,f=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,p=u&&f*(f/u),g=n.useRef(),x=Ot({scrollLeft:0,isHiddenScrollBar:!1}),C=(0,T.Z)(x,2),y=C[0],S=C[1],I=n.useRef({delta:0,x:0}),K=n.useState(!1),A=(0,T.Z)(K,2),q=A[0],_=A[1],D=function(){_(!1)},F=function(L){L.persist(),I.current.delta=L.pageX-y.scrollLeft,I.current.x=0,_(!0),L.preventDefault()},ie=function(L){var V,N=L||((V=window)===null||V===void 0?void 0:V.event),$=N.buttons;if(!q||$===0){q&&_(!1);return}var k=I.current.x+L.pageX-I.current.x-I.current.delta;k<=0&&(k=0),k+p>=f&&(k=f-p),s({scrollLeft:k/f*(u+2)}),I.current.x=L.pageX},B=function(){if(!!l.current){var L=(0,Pr.os)(l.current).top,V=L+l.current.offsetHeight,N=c===window?document.documentElement.scrollTop+window.innerHeight:(0,Pr.os)(c).top+c.clientHeight;V-(0,ct.Z)()<=N||L>=N-i?S(function($){return(0,w.Z)((0,w.Z)({},$),{},{isHiddenScrollBar:!0})}):S(function($){return(0,w.Z)((0,w.Z)({},$),{},{isHiddenScrollBar:!1})})}},z=function(L){S(function(V){return(0,w.Z)((0,w.Z)({},V),{},{scrollLeft:L/u*f||0})})};return n.useImperativeHandle(r,function(){return{setScrollLeft:z}}),n.useEffect(function(){var M=(0,Mt.Z)(document.body,"mouseup",D,!1),L=(0,Mt.Z)(document.body,"mousemove",ie,!1);return B(),function(){M.remove(),L.remove()}},[p,q]),n.useEffect(function(){var M=(0,Mt.Z)(c,"scroll",B,!1),L=(0,Mt.Z)(window,"resize",B,!1);return function(){M.remove(),L.remove()}},[c]),n.useEffect(function(){y.isHiddenScrollBar||S(function(M){var L=l.current;return L?(0,w.Z)((0,w.Z)({},M),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):M})},[y.isHiddenScrollBar]),u<=f||!p||y.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,ct.Z)(),width:f,bottom:i},className:"".concat(m,"-sticky-scroll")},n.createElement("div",{onMouseDown:F,ref:g,className:X()("".concat(m,"-sticky-scroll-bar"),(0,O.Z)({},"".concat(m,"-sticky-scroll-bar-active"),q)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))},Sa=n.forwardRef(ga),Ea=d(98924),Or=(0,Ea.Z)()?window:null;function Ra(e,t){var r=(0,le.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,s=l===void 0?0:l,i=r.offsetScroll,c=i===void 0?0:i,v=r.getContainer,m=v===void 0?function(){return Or}:v,u=m()||Or;return n.useMemo(function(){var f=!!e;return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:s,offsetScroll:c,container:u}},[c,a,s,t,u])}var Za=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function wa(e,t){return(0,n.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ie=l[l.length-1],B={fixed:ie?ie.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},z=(0,n.useMemo)(function(){return q?[].concat((0,ne.Z)(a),[B]):a},[q,a]),M=(0,n.useMemo)(function(){return q?[].concat((0,ne.Z)(l),[B]):l},[q,l]),L=(0,n.useMemo)(function(){var N=c.right,$=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:v==="rtl"?[].concat((0,ne.Z)($.map(function(k){return k+q})),[0]):$,right:v==="rtl"?N:[].concat((0,ne.Z)(N.map(function(k){return k+q})),[0]),isSticky:A})},[q,c,A]),V=wa(s,i);return n.createElement("div",{style:(0,w.Z)({overflow:"hidden"},A?{top:u,bottom:f}:{}),ref:D,className:X()(r,(0,O.Z)({},p,!!p))},n.createElement("table",{style:{tableLayout:"fixed",visibility:o||V?null:"hidden"}},(!o||!x||F)&&n.createElement(Er,{colWidths:V?[].concat((0,ne.Z)(V),[q]):[],columCount:i+1,columns:M}),C((0,w.Z)((0,w.Z)({},y),{},{stickyOffsets:L,columns:z,flattenColumns:M}))))});br.displayName="FixedHolder";var Mr=br,Na=[],Pa={},Tt="rc-table-internal-hook",Oa=n.memo(function(e){var t=e.children;return t},function(e,t){return An()(e.props,t.props)?e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight:!1});function et(e){var t,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,s=e.data,i=e.rowKey,c=e.scroll,v=e.tableLayout,m=e.direction,u=e.title,f=e.footer,p=e.summary,g=e.id,x=e.showHeader,C=e.components,y=e.emptyText,S=e.onRow,I=e.onHeaderRow,K=e.internalHooks,A=e.transformColumns,q=e.internalRefs,_=e.sticky,D=s||Na,F=!!D.length,ie=n.useMemo(function(){return ft(C,{})},[C]),B=n.useCallback(function(J,ce){return dt(ie,J)||ce},[ie]),z=n.useMemo(function(){return typeof i=="function"?i:function(J){var ce=J&&J[i];return ce}},[i]),M=yn(e),L=M.expandIcon,V=M.expandedRowKeys,N=M.defaultExpandedRowKeys,$=M.defaultExpandAllRows,k=M.expandedRowRender,we=M.onExpand,ye=M.onExpandedRowsChange,Le=M.expandRowByClick,Ee=M.rowExpandable,te=M.expandIconColumnIndex,ve=M.expandedRowClassName,Ve=M.childrenColumnName,Fe=M.indentSize,xe=L||ya,Ae=Ve||"children",Ne=n.useMemo(function(){return k?"row":e.expandable&&K===Tt&&e.expandable.__PARENT_RENDER_ICON__||D.some(function(J){return J&&(0,le.Z)(J)==="object"&&J[Ae]})?"nest":!1},[!!k,D]),me=n.useState(function(){return N||($?xa(D,z,Ae):[])}),He=(0,T.Z)(me,2),Y=He[0],be=He[1],de=n.useMemo(function(){return new Set(V||Y||[])},[V,Y]),pe=n.useCallback(function(J){var ce=z(J,D.indexOf(J)),Ie,un=de.has(ce);un?(de.delete(ce),Ie=(0,ne.Z)(de)):Ie=[].concat((0,ne.Z)(de),[ce]),be(Ie),we&&we(!un,J),ye&&ye(Ie)},[z,de,D,we,ye]),Ke=n.useState(0),ke=(0,T.Z)(Ke,2),ze=ke[0],j=ke[1],H=tr((0,w.Z)((0,w.Z)((0,w.Z)({},e),M),{},{expandable:!!k,expandedKeys:de,getRowKey:z,onTriggerExpand:pe,expandIcon:xe,expandIconColumnIndex:te,direction:m}),K===Tt?A:null),P=(0,T.Z)(H,2),E=P[0],Z=P[1],Re=n.useMemo(function(){return{columns:E,flattenColumns:Z}},[E,Z]),je=n.useRef(),Je=n.useRef(),G=n.useRef(),W=n.useRef(),ge=n.useState(!1),Pe=(0,T.Z)(ge,2),$e=Pe[0],gn=Pe[1],Sn=n.useState(!1),Zn=(0,T.Z)(Sn,2),Bn=Zn[0],$n=Zn[1],Qe=Ot(new Map),rt=(0,T.Z)(Qe,2),Et=rt[0],Wn=rt[1],ln=Ye(Z),wn=ln.map(function(J){return Et.get(J)}),mn=n.useMemo(function(){return wn},[wn.join("_")]),pn=sa(mn,Z.length,m),R=c&&vt(c.y),ee=c&&vt(c.x)||Boolean(M.fixed),Ze=ee&&Z.some(function(J){var ce=J.fixed;return ce}),Ce=n.useRef(),he=Ra(_,r),ue=he.isSticky,We=he.offsetHeader,En=he.offsetSummary,Kn=he.offsetScroll,kn=he.stickyClassName,In=he.container,Be=p==null?void 0:p(D),en=(R||ue)&&n.isValidElement(Be)&&Be.type===wr&&Be.props.fixed,Ln,Ge,cn;R&&(Ge={overflowY:"scroll",maxHeight:c.y}),ee&&(Ln={overflowX:"auto"},R||(Ge={overflowY:"hidden"}),cn={width:(c==null?void 0:c.x)===!0?"auto":c==null?void 0:c.x,minWidth:"100%"});var Fn=n.useCallback(function(J,ce){(0,Nn.Z)(je.current)&&Wn(function(Ie){if(Ie.get(J)!==ce){var un=new Map(Ie);return un.set(J,ce),un}return Ie})},[]),at=on(null),Rn=(0,T.Z)(at,2),ot=Rn[0],re=Rn[1];function fe(J,ce){!ce||(typeof ce=="function"?ce(J):ce.scrollLeft!==J&&(ce.scrollLeft=J))}var Se=function(ce){var Ie=ce.currentTarget,un=ce.scrollLeft,Wo=m==="rtl",Dn=typeof un=="number"?un:Ie.scrollLeft,ia=Ie||Pa;if(!re()||re()===ia){var xr;ot(ia),fe(Dn,Je.current),fe(Dn,G.current),fe(Dn,W.current),fe(Dn,(xr=Ce.current)===null||xr===void 0?void 0:xr.setScrollLeft)}if(Ie){var gr=Ie.scrollWidth,Sr=Ie.clientWidth;if(gr===Sr)return;Wo?(gn(-Dn0)):(gn(Dn>0),$n(Dn0?l:e}),f=Math.ceil((l||e)/u.pageSize);u.current>f&&(u.current=f||1);var p=function(C,y){m({current:C!=null?C:1,pageSize:y||u.pageSize})},g=function(C,y){var S;t&&((S=t.onChange)===null||S===void 0||S.call(t,C,y)),p(C,y),r(C,y||(u==null?void 0:u.pageSize))};return t===!1?[{},function(){}]:[(0,h.Z)((0,h.Z)({},u),{onChange:g}),p]}var Fa=d(84164),Da=d(99809),Aa=d(57254),za=d(1089),or=d(17341),kr=d(10225),Ha=d(76632),Kt=d(9676),Ir=d(13013),Lr=d(28682),Fr=d(47933),Tn={},lr="SELECT_ALL",ir="SELECT_INVERT",cr="SELECT_NONE",Dr=[];function Ar(e,t){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,le.Z)(o)==="object"&&t in o&&(r=[].concat((0,ne.Z)(r),(0,ne.Z)(Ar(o[t],t))))}),r}function Ba(e,t){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,s=r.getCheckboxProps,i=r.onChange,c=r.onSelect,v=r.onSelectAll,m=r.onSelectInvert,u=r.onSelectNone,f=r.onSelectMultiple,p=r.columnWidth,g=r.type,x=r.selections,C=r.fixed,y=r.renderCell,S=r.hideSelectAll,I=r.checkStrictly,K=I===void 0?!0:I,A=t.prefixCls,q=t.data,_=t.pageData,D=t.getRecordByKey,F=t.getRowKey,ie=t.expandType,B=t.childrenColumnName,z=t.locale,M=t.getPopupContainer,L=(0,Ha.Z)(a||l||Dr,{value:a}),V=(0,T.Z)(L,2),N=V[0],$=V[1],k=n.useRef(new Map),we=(0,n.useCallback)(function(j){if(o){var H=new Map;j.forEach(function(P){var E=D(P);!E&&k.current.has(P)&&(E=k.current.get(P)),H.set(P,E)}),k.current=H}},[D,o]);n.useEffect(function(){we(N)},[N]);var ye=(0,n.useMemo)(function(){return K?{keyEntities:null}:(0,za.I8)(q,{externalGetKey:F,childrenPropName:B})},[q,F,K,B]),Le=ye.keyEntities,Ee=(0,n.useMemo)(function(){return Ar(_,B)},[_,B]),te=(0,n.useMemo)(function(){var j=new Map;return Ee.forEach(function(H,P){var E=F(H,P),Z=(s?s(H):null)||{};j.set(E,Z)}),j},[Ee,F,s]),ve=(0,n.useCallback)(function(j){var H;return!!((H=te.get(F(j)))===null||H===void 0?void 0:H.disabled)},[te,F]),Ve=(0,n.useMemo)(function(){if(K)return[N||[],[]];var j=(0,or.S)(N,!0,Le,ve),H=j.checkedKeys,P=j.halfCheckedKeys;return[H||[],P]},[N,K,Le,ve]),Fe=(0,T.Z)(Ve,2),xe=Fe[0],Ae=Fe[1],Ne=(0,n.useMemo)(function(){var j=g==="radio"?xe.slice(0,1):xe;return new Set(j)},[xe,g]),me=(0,n.useMemo)(function(){return g==="radio"?new Set:new Set(Ae)},[Ae,g]),He=(0,n.useState)(null),Y=(0,T.Z)(He,2),be=Y[0],de=Y[1];n.useEffect(function(){e||$(Dr)},[!!e]);var pe=(0,n.useCallback)(function(j,H){var P,E;we(j),o?(P=j,E=j.map(function(Z){return k.current.get(Z)})):(P=[],E=[],j.forEach(function(Z){var Re=D(Z);Re!==void 0&&(P.push(Z),E.push(Re))})),$(P),i==null||i(P,E,{type:H})},[$,D,i,o]),Ke=(0,n.useCallback)(function(j,H,P,E){if(c){var Z=P.map(function(Re){return D(Re)});c(D(j),H,Z,E)}pe(P,"single")},[c,D,pe]),ke=(0,n.useMemo)(function(){if(!x||S)return null;var j=x===!0?[lr,ir,cr]:x;return j.map(function(H){return H===lr?{key:"all",text:z.selectionAll,onSelect:function(){pe(q.map(function(E,Z){return F(E,Z)}).filter(function(E){var Z=te.get(E);return!(Z==null?void 0:Z.disabled)||Ne.has(E)}),"all")}}:H===ir?{key:"invert",text:z.selectInvert,onSelect:function(){var E=new Set(Ne);_.forEach(function(Re,je){var Je=F(Re,je),G=te.get(Je);(G==null?void 0:G.disabled)||(E.has(Je)?E.delete(Je):E.add(Je))});var Z=Array.from(E);m&&m(Z),pe(Z,"invert")}}:H===cr?{key:"none",text:z.selectNone,onSelect:function(){u==null||u(),pe(Array.from(Ne).filter(function(E){var Z=te.get(E);return Z==null?void 0:Z.disabled}),"none")}}:H})},[x,Ne,_,F,m,pe]),ze=(0,n.useCallback)(function(j){var H;if(!e)return j.filter(function(R){return R!==Tn});var P=(0,ne.Z)(j),E=new Set(Ne),Z=Ee.map(F).filter(function(R){return!te.get(R).disabled}),Re=Z.every(function(R){return E.has(R)}),je=Z.some(function(R){return E.has(R)}),Je=function(){var ee=[];Re?Z.forEach(function(Ce){E.delete(Ce),ee.push(Ce)}):Z.forEach(function(Ce){E.has(Ce)||(E.add(Ce),ee.push(Ce))});var Ze=Array.from(E);v==null||v(!Re,Ze.map(function(Ce){return D(Ce)}),ee.map(function(Ce){return D(Ce)})),pe(Ze,"all")},G;if(g!=="radio"){var W;if(ke){var ge=n.createElement(Lr.Z,{getPopupContainer:M,items:ke.map(function(R,ee){var Ze=R.key,Ce=R.text,he=R.onSelect;return{key:Ze||ee,onClick:function(){he==null||he(Z)},label:Ce}})});W=n.createElement("div",{className:"".concat(A,"-selection-extra")},n.createElement(Ir.Z,{overlay:ge,getPopupContainer:M},n.createElement("span",null,n.createElement(Aa.Z,null))))}var Pe=Ee.map(function(R,ee){var Ze=F(R,ee),Ce=te.get(Ze)||{};return(0,h.Z)({checked:E.has(Ze)},Ce)}).filter(function(R){var ee=R.disabled;return ee}),$e=!!Pe.length&&Pe.length===Ee.length,gn=$e&&Pe.every(function(R){var ee=R.checked;return ee}),Sn=$e&&Pe.some(function(R){var ee=R.checked;return ee});G=!S&&n.createElement("div",{className:"".concat(A,"-selection")},n.createElement(Kt.Z,{checked:$e?gn:!!Ee.length&&Re,indeterminate:$e?!gn&&Sn:!Re&&je,onChange:Je,disabled:Ee.length===0||$e,skipGroup:!0}),W)}var Zn;g==="radio"?Zn=function(ee,Ze,Ce){var he=F(Ze,Ce),ue=E.has(he);return{node:n.createElement(Fr.ZP,(0,h.Z)({},te.get(he),{checked:ue,onClick:function(En){return En.stopPropagation()},onChange:function(En){E.has(he)||Ke(he,!0,[he],En.nativeEvent)}})),checked:ue}}:Zn=function(ee,Ze,Ce){var he,ue=F(Ze,Ce),We=E.has(ue),En=me.has(ue),Kn=te.get(ue),kn;return ie==="nest"?kn=En:kn=(he=Kn==null?void 0:Kn.indeterminate)!==null&&he!==void 0?he:En,{node:n.createElement(Kt.Z,(0,h.Z)({},Kn,{indeterminate:kn,checked:We,skipGroup:!0,onClick:function(Be){return Be.stopPropagation()},onChange:function(Be){var en=Be.nativeEvent,Ln=en.shiftKey,Ge=-1,cn=-1;if(Ln&&K){var Fn=new Set([be,ue]);Z.some(function(Ue,Un){if(Fn.has(Ue))if(Ge===-1)Ge=Un;else return cn=Un,!0;return!1})}if(cn!==-1&&Ge!==cn&&K){var at=Z.slice(Ge,cn+1),Rn=[];We?at.forEach(function(Ue){E.has(Ue)&&(Rn.push(Ue),E.delete(Ue))}):at.forEach(function(Ue){E.has(Ue)||(Rn.push(Ue),E.add(Ue))});var ot=Array.from(E);f==null||f(!We,ot.map(function(Ue){return D(Ue)}),Rn.map(function(Ue){return D(Ue)})),pe(ot,"multiple")}else{var re=xe;if(K){var fe=We?(0,kr._5)(re,ue):(0,kr.L0)(re,ue);Ke(ue,!We,fe,en)}else{var Se=(0,or.S)([].concat((0,ne.Z)(re),[ue]),!0,Le,ve),sn=Se.checkedKeys,Oe=Se.halfCheckedKeys,lt=sn;if(We){var Ft=new Set(sn);Ft.delete(ue),lt=(0,or.S)(Array.from(Ft),{checked:!1,halfCheckedKeys:Oe},Le,ve).checkedKeys}Ke(ue,!We,lt,en)}}de(ue)}})),checked:We}};var Bn=function(ee,Ze,Ce){var he=Zn(ee,Ze,Ce),ue=he.node,We=he.checked;return y?y(We,Ze,Ce,ue):ue};if(!P.includes(Tn))if(P.findIndex(function(R){var ee;return((ee=R[an])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"})===0){var $n=P,Qe=(0,Da.Z)($n),rt=Qe[0],Et=Qe.slice(1);P=[rt,Tn].concat((0,ne.Z)(Et))}else P=[Tn].concat((0,ne.Z)(P));var Wn=P.indexOf(Tn);P=P.filter(function(R,ee){return R!==Tn||ee===Wn});var ln=P[Wn-1],wn=P[Wn+1],mn=C;mn===void 0&&((wn==null?void 0:wn.fixed)!==void 0?mn=wn.fixed:(ln==null?void 0:ln.fixed)!==void 0&&(mn=ln.fixed)),mn&&ln&&((H=ln[an])===null||H===void 0?void 0:H.columnType)==="EXPAND_COLUMN"&&ln.fixed===void 0&&(ln.fixed=mn);var pn=(0,O.Z)({fixed:mn,width:p,className:"".concat(A,"-selection-column"),title:e.columnTitle||G,render:Bn},an,{className:"".concat(A,"-selection-col")});return P.map(function(R){return R===Tn?pn:R})},[F,Ee,e,xe,Ne,me,p,ke,ie,be,te,f,Ke,ve]);return[ze,Ne]}var $a=d(19675),Wa=d(28612),Ua=d(15105),Va=d(61580);function nt(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function kt(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function sr(e,t){return typeof e=="function"?e(t):e}var It="ascend",ur="descend";function Lt(e){return(0,le.Z)(e.sorter)==="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function zr(e){return typeof e=="function"?e:e&&(0,le.Z)(e)==="object"&&e.compare?e.compare:!1}function ja(e,t){return t?e[e.indexOf(t)+1]:e[0]}function dr(e,t,r){var o=[];function a(l,s){o.push({column:l,key:nt(l,s),multiplePriority:Lt(l),sortOrder:l.sortOrder})}return(e||[]).forEach(function(l,s){var i=kt(s,r);l.children?("sortOrder"in l&&a(l,i),o=[].concat((0,ne.Z)(o),(0,ne.Z)(dr(l.children,t,i)))):l.sorter&&("sortOrder"in l?a(l,i):t&&l.defaultSortOrder&&o.push({column:l,key:nt(l,i),multiplePriority:Lt(l),sortOrder:l.defaultSortOrder}))}),o}function Hr(e,t,r,o,a,l,s,i){return(t||[]).map(function(c,v){var m=kt(v,i),u=c;if(u.sorter){var f=u.sortDirections||a,p=u.showSorterTooltip===void 0?s:u.showSorterTooltip,g=nt(u,m),x=r.find(function(ie){var B=ie.key;return B===g}),C=x?x.sortOrder:null,y=ja(f,C),S=f.includes(It)&&n.createElement(Wa.Z,{className:X()("".concat(e,"-column-sorter-up"),{active:C===It})}),I=f.includes(ur)&&n.createElement($a.Z,{className:X()("".concat(e,"-column-sorter-down"),{active:C===ur})}),K=l||{},A=K.cancelSort,q=K.triggerAsc,_=K.triggerDesc,D=A;y===ur?D=_:y===It&&(D=q);var F=(0,le.Z)(p)==="object"?p:{title:D};u=(0,h.Z)((0,h.Z)({},u),{className:X()(u.className,(0,O.Z)({},"".concat(e,"-column-sort"),C)),title:function(B){var z=n.createElement("div",{className:"".concat(e,"-column-sorters")},n.createElement("span",{className:"".concat(e,"-column-title")},sr(c.title,B)),n.createElement("span",{className:X()("".concat(e,"-column-sorter"),(0,O.Z)({},"".concat(e,"-column-sorter-full"),!!(S&&I)))},n.createElement("span",{className:"".concat(e,"-column-sorter-inner")},S,I)));return p?n.createElement(Va.Z,(0,h.Z)({},F),z):z},onHeaderCell:function(B){var z=c.onHeaderCell&&c.onHeaderCell(B)||{},M=z.onClick,L=z.onKeyDown;return z.onClick=function(V){o({column:c,key:g,sortOrder:y,multiplePriority:Lt(c)}),M==null||M(V)},z.onKeyDown=function(V){V.keyCode===Ua.Z.ENTER&&(o({column:c,key:g,sortOrder:y,multiplePriority:Lt(c)}),L==null||L(V))},C&&(C==="ascend"?z["aria-sort"]="ascending":z["aria-sort"]="descending"),z.className=X()(z.className,"".concat(e,"-column-has-sorters")),z.tabIndex=0,z}})}return"children"in u&&(u=(0,h.Z)((0,h.Z)({},u),{children:Hr(e,u.children,r,o,a,l,s,m)})),u})}function Br(e){var t=e.column,r=e.sortOrder;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function $r(e){var t=e.filter(function(r){var o=r.sortOrder;return o}).map(Br);return t.length===0&&e.length?(0,h.Z)((0,h.Z)({},Br(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function fr(e,t,r){var o=t.slice().sort(function(s,i){return i.multiplePriority-s.multiplePriority}),a=e.slice(),l=o.filter(function(s){var i=s.column.sorter,c=s.sortOrder;return zr(i)&&c});return l.length?a.sort(function(s,i){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},ge=W.confirm,Pe=W.closeDropdown;ge&&He([]),Pe&&ie(!1),Ne(""),N(I?(K||[]).map(function($e){return String($e)}):[])},de=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},ge=W.closeDropdown;ge&&ie(!1),He(V())},pe=function(W){W&&z!==void 0&&N(z||[]),ie(W),!W&&!a.filterDropdown&&Y()},Ke=X()((0,O.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),ke=function(W){if(W.target.checked){var ge=tt(a==null?void 0:a.filters).map(function(Pe){return String(Pe)});N(ge)}else N([])},ze=function G(W){var ge=W.filters;return(ge||[]).map(function(Pe,$e){var gn=String(Pe.value),Sn={title:Pe.text,key:Pe.value!==void 0?gn:$e};return Pe.children&&(Sn.children=G({filters:Pe.children})),Sn})},j;if(typeof a.filterDropdown=="function")j=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(W){return $({selectedKeys:W})},selectedKeys:V(),confirm:de,clearFilters:be,filters:a.filters,visible:B});else if(a.filterDropdown)j=a.filterDropdown;else{var H=V()||[],P=function(){return(a.filters||[]).length===0?n.createElement(jr.Z,{image:jr.Z.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):v==="tree"?n.createElement(n.Fragment,null,n.createElement(Gr,{filterSearch:u,value:Ae,onChange:me,tablePrefixCls:r,locale:g}),n.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},i?n.createElement(Kt.Z,{checked:H.length===tt(a.filters).length,indeterminate:H.length>0&&H.length1&&arguments[1]!==void 0?arguments[1]:{},r=t.getContainer,o=r===void 0?function(){return window}:r,a=t.callback,l=t.duration,s=l===void 0?450:l,i=o(),c=ho(i,!0),v=Date.now(),m=function u(){var f=Date.now(),p=f-v,g=yo(p>s?s:p,c,e,s);mr(i)?i.scrollTo(window.pageXOffset,g):i instanceof HTMLDocument||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p2&&arguments[2]!==void 0?arguments[2]:!1,Oe=(0,h.Z)((0,h.Z)({},P),fe);sn&&(P.resetPagination(),Oe.pagination.current&&(Oe.pagination.current=1),m&&m.onChange&&m.onChange(1,Oe.pagination.pageSize)),F&&F.scrollToFirstRowOnChange!==!1&&Ke.body.current&&xo(0,{getContainer:function(){return Ke.body.current}}),y==null||y(Oe.pagination,Oe.filters,Oe.sorter,{currentDataSource:qr(fr(xe,Oe.sorterStates,de),Oe.filterStates),action:Se})},Z=function(fe,Se){E({sorter:fe,sorterStates:Se},"sort",!1)},Re=Ga({prefixCls:me,mergedColumns:$,onSorterChange:Z,sortDirections:ie||["ascend","descend"],tableLocale:Fe,showSorterTooltip:M}),je=(0,T.Z)(Re,4),Je=je[0],G=je[1],W=je[2],ge=je[3],Pe=n.useMemo(function(){return fr(xe,G,de)},[xe,G]);P.sorter=ge(),P.sorterStates=G;var $e=function(fe,Se){E({filters:fe,filterStates:Se},"filter",!0)},gn=vo({prefixCls:me,locale:Fe,dropdownPrefixCls:He,mergedColumns:$,onFilterChange:$e,getPopupContainer:S}),Sn=(0,T.Z)(gn,3),Zn=Sn[0],Bn=Sn[1],$n=Sn[2],Qe=qr(Pe,Bn);P.filters=$n(),P.filterStates=Bn;var rt=n.useMemo(function(){return(0,h.Z)({},W)},[W]),Et=mo(rt),Wn=(0,T.Z)(Et,1),ln=Wn[0],wn=function(fe,Se){E({pagination:(0,h.Z)((0,h.Z)({},P.pagination),{current:fe,pageSize:Se})},"paginate")},mn=La(Qe.length,m,wn),pn=(0,T.Z)(mn,2),R=pn[0],ee=pn[1];P.pagination=m===!1?{}:ka(m,R),P.resetPagination=ee;var Ze=n.useMemo(function(){if(m===!1||!R.pageSize)return Qe;var re=R.current,fe=re===void 0?1:re,Se=R.total,sn=R.pageSize,Oe=sn===void 0?Kr:sn;return Qe.lengthOe?Qe.slice((fe-1)*Oe,fe*Oe):Qe:Qe.slice((fe-1)*Oe,fe*Oe)},[!!m,Qe,R&&R.current,R&&R.pageSize,R&&R.total]),Ce=Ba(u,{prefixCls:me,data:Qe,pageData:Ze,getRowKey:ke,getRecordByKey:H,expandType:pe,childrenColumnName:de,locale:Fe,getPopupContainer:S}),he=(0,T.Z)(Ce,2),ue=he[0],We=he[1],En=function(fe,Se,sn){var Oe;return typeof p=="function"?Oe=X()(p(fe,Se,sn)):Oe=X()(p),X()((0,O.Z)({},"".concat(me,"-row-selected"),We.has(ke(fe,Se))),Oe)};Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||K||Co(Fe),pe==="nest"&&Y.expandIconColumnIndex===void 0?Y.expandIconColumnIndex=u?1:0:Y.expandIconColumnIndex>0&&u&&(Y.expandIconColumnIndex-=1),typeof Y.indentSize!="number"&&(Y.indentSize=typeof D=="number"?D:15);var Kn=n.useCallback(function(re){return ln(ue(Zn(Je(re))))},[Je,Zn,ue]),kn,In;if(m!==!1&&(R==null?void 0:R.total)){var Be;R.size?Be=R.size:Be=Ve==="small"||Ve==="middle"?"small":void 0;var en=function(fe){return n.createElement(Ta.Z,(0,h.Z)({},R,{className:X()("".concat(me,"-pagination ").concat(me,"-pagination-").concat(fe),R.className),size:Be}))},Ln=ve==="rtl"?"left":"right",Ge=R.position;if(Ge!==null&&Array.isArray(Ge)){var cn=Ge.find(function(re){return re.indexOf("top")!==-1}),Fn=Ge.find(function(re){return re.indexOf("bottom")!==-1}),at=Ge.every(function(re){return"".concat(re)==="none"});!cn&&!Fn&&!at&&(In=en(Ln)),cn&&(kn=en(cn.toLowerCase().replace("top",""))),Fn&&(In=en(Fn.toLowerCase().replace("bottom","")))}else In=en(Ln)}var Rn;typeof I=="boolean"?Rn={spinning:I}:(0,le.Z)(I)==="object"&&(Rn=(0,h.Z)({spinning:!0},I));var ot=X()("".concat(me,"-wrapper"),(0,O.Z)({},"".concat(me,"-wrapper-rtl"),ve==="rtl"),a);return n.createElement("div",{ref:t,className:ot,style:l},n.createElement(Ma.Z,(0,h.Z)({spinning:!1},Rn),kn,n.createElement(Tr,(0,h.Z)({},k,{columns:$,direction:ve,expandable:Y,prefixCls:me,className:X()((r={},(0,O.Z)(r,"".concat(me,"-middle"),Ve==="middle"),(0,O.Z)(r,"".concat(me,"-small"),Ve==="small"),(0,O.Z)(r,"".concat(me,"-bordered"),i),(0,O.Z)(r,"".concat(me,"-empty"),xe.length===0),r)),data:Ze,rowKey:ke,rowClassName:En,emptyText:B&&B.emptyText||(te||Po.Z)("Table"),internalHooks:Tt,internalRefs:Ke,transformColumns:Kn})),In))}var Mo=n.forwardRef(bo),xn=Mo;xn.defaultProps={rowKey:"key"},xn.SELECTION_COLUMN=Tn,xn.EXPAND_COLUMN=Tr.EXPAND_COLUMN,xn.SELECTION_ALL=lr,xn.SELECTION_INVERT=ir,xn.SELECTION_NONE=cr,xn.Column=Ro,xn.ColumnGroup=wo,xn.Summary=Nr;var To=xn,Ko=To},66456:function(Vn,dn,d){"use strict";var le=d(38663),O=d.n(le),T=d(31242),h=d.n(T),n=d(57663),Xe=d(13254),X=d(88983),Cn=d(63185),w=d(59250),ne=d(20228),Nn=d(14781),jn=d(22385),nn=d(47673),Pn=d(32157)},82363:function(Vn,dn,d){"use strict";d.d(dn,{Z:function(){return Yt}});var le=d(96156),O=d(90484),T=d(22122),h=d(67294),n=d(28991),Xe={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"},X=Xe,Cn=d(27029),w=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:X}))};w.displayName="HolderOutlined";var ne=h.forwardRef(w),Nn=d(76513),jn=d(94184),nn=d.n(jn),Pn=d(85061),An=d(28481),At=d(86504),it={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"},ct=it,Rt=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:ct}))};Rt.displayName="FolderOpenOutlined";var zt=h.forwardRef(Rt),Ht={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"},Bt=Ht,hn=function(ae,Q){return h.createElement(Cn.Z,(0,n.Z)((0,n.Z)({},ae),{},{ref:Q,icon:Bt}))};hn.displayName="FolderOutlined";var st=h.forwardRef(hn),$t=d(10225),ut=d(1089),dt=d(53124),Ye;(function(b){b[b.None=0]="None",b[b.Start=1]="Start",b[b.End=2]="End"})(Ye||(Ye={}));function ft(b,ae){function Q(oe){var se=oe.key,Me=oe.children;ae(se,oe)!==!1&&ft(Me||[],ae)}b.forEach(Q)}function vt(b){var ae=b.treeData,Q=b.expandedKeys,oe=b.startKey,se=b.endKey,Me=[],U=Ye.None;if(oe&&oe===se)return[oe];if(!oe||!se)return[];function tn(De){return De===oe||De===se}return ft(ae,function(De){if(U===Ye.End)return!1;if(tn(De)){if(Me.push(De),U===Ye.None)U=Ye.Start;else if(U===Ye.Start)return U=Ye.End,!1}else U===Ye.Start&&Me.push(De);return Q.indexOf(De)!==-1}),Me}function mt(b,ae){var Q=(0,Pn.Z)(ae),oe=[];return ft(b,function(se,Me){var U=Q.indexOf(se);return U!==-1&&(oe.push(Me),Q.splice(U,1)),!!Q.length}),oe}var pt=function(b,ae){var Q={};for(var oe in b)Object.prototype.hasOwnProperty.call(b,oe)&&ae.indexOf(oe)<0&&(Q[oe]=b[oe]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,oe=Object.getOwnPropertySymbols(b);setr>td,.ant-table.ant-table-middle .ant-table-thead>tr>th,.ant-table.ant-table-middle .ant-table-title,.ant-table.ant-table-middle tfoot>tr>td,.ant-table.ant-table-middle tfoot>tr>th{padding:12px 8px}.ant-table.ant-table-middle .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-middle .ant-table-expanded-row-fixed{margin:-12px -8px}.ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-12px -8px -12px 25px}.ant-table.ant-table-middle .ant-table-selection-column{-webkit-padding-start:2px;padding-inline-start:2px}.ant-table.ant-table-small{font-size:14px}.ant-table.ant-table-small .ant-table-footer,.ant-table.ant-table-small .ant-table-tbody>tr>td,.ant-table.ant-table-small .ant-table-thead>tr>th,.ant-table.ant-table-small .ant-table-title,.ant-table.ant-table-small tfoot>tr>td,.ant-table.ant-table-small tfoot>tr>th{padding:8px}.ant-table.ant-table-small .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-small .ant-table-expanded-row-fixed{margin:-8px}.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-8px -8px -8px 25px}.ant-table.ant-table-small .ant-table-selection-column{-webkit-padding-start:2px;padding-inline-start:2px}.ant-table.ant-table-bordered>.ant-table-title{border:1px solid rgba(0,0,0,.06);border-bottom:0}.ant-table.ant-table-bordered>.ant-table-container{border-left:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th{border-right:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr:not(:last-child)>th{border-bottom:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th:before{background-color:transparent!important}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>.ant-table-cell-fix-right-first:after{border-right:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-16px -17px}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed:after{position:absolute;top:0;right:1px;bottom:0;border-right:1px solid rgba(0,0,0,.06);content:""}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{border-top:1px solid rgba(0,0,0,.06)}.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-expanded-row>td,.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-placeholder>td{border-right:0}.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-12px -9px}.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-8px -9px}.ant-table.ant-table-bordered>.ant-table-footer{border:1px solid rgba(0,0,0,.06);border-top:0}.ant-table-cell .ant-table-container:first-child{border-top:0}.ant-table-cell-scrollbar:not([rowspan]){box-shadow:0 1px 0 1px #fafafa}.ant-table-wrapper{clear:both;max-width:100%}.ant-table-wrapper:before{display:table;content:""}.ant-table-wrapper:after{display:table;clear:both;content:""}.ant-table{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;font-size:14px;background:#fff;border-radius:2px}.ant-table table{width:100%;text-align:left;border-radius:2px 2px 0 0;border-collapse:separate;border-spacing:0}.ant-table-tbody>tr>td,.ant-table-thead>tr>th,.ant-table tfoot>tr>td,.ant-table tfoot>tr>th{position:relative;padding:16px;overflow-wrap:break-word}.ant-table-cell-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first{overflow:visible}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content{display:block;overflow:hidden;text-overflow:ellipsis}.ant-table-cell-ellipsis .ant-table-column-title{overflow:hidden;text-overflow:ellipsis;word-break:keep-all}.ant-table-title{padding:16px}.ant-table-footer{padding:16px;color:rgba(0,0,0,.85);background:#fafafa}.ant-table-thead>tr>th{position:relative;color:rgba(0,0,0,.85);font-weight:500;text-align:left;background:#fafafa;border-bottom:1px solid rgba(0,0,0,.06);transition:background .3s ease}.ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{position:absolute;top:50%;right:0;width:1px;height:1.6em;background-color:rgba(0,0,0,.06);transform:translateY(-50%);transition:background-color .3s;content:""}.ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:0}.ant-table-tbody>tr>td{border-bottom:1px solid rgba(0,0,0,.06);transition:background .3s}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table{margin:-16px -16px -16px 33px}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td{border-bottom:0}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child{border-radius:0}.ant-table-tbody>tr.ant-table-row:hover>td,.ant-table-tbody>tr>td.ant-table-cell-row-hover{background:#fafafa}.ant-table-tbody>tr.ant-table-row-selected>td{background:#e6f7ff;background:var(--ant-primary-1);border-color:rgba(0,0,0,.03)}.ant-table-tbody>tr.ant-table-row-selected:hover>td{background:#dcf4ff;background:var(--ant-primary-color-active-deprecated-d-02)}.ant-table-summary{position:relative;z-index:2;background:#fff}div.ant-table-summary{box-shadow:0 -1px 0 rgba(0,0,0,.06)}.ant-table-summary>tr>td,.ant-table-summary>tr>th{border-bottom:1px solid rgba(0,0,0,.06)}.ant-table-pagination.ant-pagination{margin:16px 0}.ant-table-pagination{display:flex;flex-wrap:wrap;grid-row-gap:8px;row-gap:8px}.ant-table-pagination>*{flex:none}.ant-table-pagination-left{justify-content:flex-start}.ant-table-pagination-center{justify-content:center}.ant-table-pagination-right{justify-content:flex-end}.ant-table-thead th.ant-table-column-has-sorters{outline:none;cursor:pointer;transition:all .3s}.ant-table-thead th.ant-table-column-has-sorters:hover{background:rgba(0,0,0,.04)}.ant-table-thead th.ant-table-column-has-sorters:hover:before{background-color:transparent!important}.ant-table-thead th.ant-table-column-has-sorters:focus-visible{color:#1890ff;color:var(--ant-primary-color)}.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-left:hover,.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-right:hover{background:#f5f5f5}.ant-table-thead th.ant-table-column-sort{background:#f5f5f5}.ant-table-thead th.ant-table-column-sort:before{background-color:transparent!important}td.ant-table-column-sort{background:#fafafa}.ant-table-column-title{position:relative;z-index:1;flex:1 1}.ant-table-column-sorters{display:flex;flex:auto;align-items:center;justify-content:space-between}.ant-table-column-sorters:after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;content:""}.ant-table-column-sorter{margin-left:4px;color:#bfbfbf;font-size:0;transition:color .3s}.ant-table-column-sorter-inner{display:inline-flex;flex-direction:column;align-items:center}.ant-table-column-sorter-down,.ant-table-column-sorter-up{font-size:11px}.ant-table-column-sorter-down.active,.ant-table-column-sorter-up.active{color:#1890ff;color:var(--ant-primary-color)}.ant-table-column-sorter-up+.ant-table-column-sorter-down{margin-top:-.3em}.ant-table-column-sorters:hover .ant-table-column-sorter{color:#a6a6a6}.ant-table-filter-column{display:flex;justify-content:space-between}.ant-table-filter-trigger{position:relative;display:flex;align-items:center;margin:-4px -8px -4px 4px;padding:0 4px;color:#bfbfbf;font-size:12px;border-radius:2px;cursor:pointer;transition:all .3s}.ant-table-filter-trigger:hover{color:rgba(0,0,0,.45);background:rgba(0,0,0,.04)}.ant-table-filter-trigger.active{color:#1890ff;color:var(--ant-primary-color)}.ant-table-filter-dropdown{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";min-width:120px;background-color:#fff;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05)}.ant-table-filter-dropdown .ant-dropdown-menu{max-height:264px;overflow-x:hidden;border:0;box-shadow:none}.ant-table-filter-dropdown .ant-dropdown-menu:empty:after{display:block;padding:8px 0;color:rgba(0,0,0,.25);font-size:12px;text-align:center;content:"Not Found"}.ant-table-filter-dropdown-tree{padding:8px 8px 0}.ant-table-filter-dropdown-tree .ant-tree-treenode .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper,.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper:hover{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-table-filter-dropdown-search{padding:8px;border-bottom:1px solid rgba(0,0,0,.06)}.ant-table-filter-dropdown-search-input input{min-width:140px}.ant-table-filter-dropdown-search-input .anticon{color:rgba(0,0,0,.25)}.ant-table-filter-dropdown-checkall{width:100%;margin-bottom:4px;margin-left:4px}.ant-table-filter-dropdown-submenu>ul{max-height:calc(100vh - 130px);overflow-x:hidden;overflow-y:auto}.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-table-filter-dropdown .ant-checkbox-wrapper+span{padding-left:8px}.ant-table-filter-dropdown-btns{display:flex;justify-content:space-between;padding:7px 8px;overflow:hidden;background-color:inherit;border-top:1px solid rgba(0,0,0,.06)}.ant-table-selection-col{width:32px}.ant-table-bordered .ant-table-selection-col{width:50px}table tr td.ant-table-selection-column,table tr th.ant-table-selection-column{padding-right:8px;padding-left:8px;text-align:center}table tr td.ant-table-selection-column .ant-radio-wrapper,table tr th.ant-table-selection-column .ant-radio-wrapper{margin-right:0}table tr th.ant-table-selection-column.ant-table-cell-fix-left{z-index:3}table tr th.ant-table-selection-column:after{background-color:transparent!important}.ant-table-selection{position:relative;display:inline-flex;flex-direction:column}.ant-table-selection-extra{position:absolute;top:0;z-index:1;cursor:pointer;transition:all .3s;-webkit-margin-start:100%;margin-inline-start:100%;-webkit-padding-start:4px;padding-inline-start:4px}.ant-table-selection-extra .anticon{color:#bfbfbf;font-size:10px}.ant-table-selection-extra .anticon:hover{color:#a6a6a6}.ant-table-expand-icon-col{width:48px}.ant-table-row-expand-icon-cell{text-align:center}.ant-table-row-indent{float:left;height:1px}.ant-table-row-expand-icon{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;cursor:pointer;transition:color .3s;position:relative;display:inline-flex;float:left;box-sizing:border-box;width:17px;height:17px;padding:0;color:inherit;line-height:17px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:2px;outline:none;transform:scale(.94117647);transition:all .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-table-row-expand-icon:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-table-row-expand-icon:active,.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{border-color:currentcolor}.ant-table-row-expand-icon:after,.ant-table-row-expand-icon:before{position:absolute;background:currentcolor;transition:transform .3s ease-out;content:""}.ant-table-row-expand-icon:before{top:7px;right:3px;left:3px;height:1px}.ant-table-row-expand-icon:after{top:3px;bottom:3px;left:7px;width:1px;transform:rotate(90deg)}.ant-table-row-expand-icon-collapsed:before{transform:rotate(-180deg)}.ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}.ant-table-row-expand-icon-spaced{background:transparent;border:0;visibility:hidden}.ant-table-row-expand-icon-spaced:after,.ant-table-row-expand-icon-spaced:before{display:none;content:none}.ant-table-row-indent+.ant-table-row-expand-icon{margin-top:2.5005px;margin-right:8px}tr.ant-table-expanded-row:hover>td,tr.ant-table-expanded-row>td{background:#fbfbfb}tr.ant-table-expanded-row .ant-descriptions-view{display:flex}tr.ant-table-expanded-row .ant-descriptions-view table{flex:auto;width:auto}.ant-table .ant-table-expanded-row-fixed{position:relative;margin:-16px;padding:16px}.ant-table-tbody>tr.ant-table-placeholder{text-align:center}.ant-table-empty .ant-table-tbody>tr.ant-table-placeholder{color:rgba(0,0,0,.25)}.ant-table-tbody>tr.ant-table-placeholder:hover>td{background:#fff}.ant-table-cell-fix-left,.ant-table-cell-fix-right{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:#fff}.ant-table-cell-fix-left-first:after,.ant-table-cell-fix-left-last:after{position:absolute;top:0;right:0;bottom:-1px;width:30px;transform:translateX(100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table-cell-fix-right-first:after,.ant-table-cell-fix-right-last:after{position:absolute;top:0;bottom:-1px;left:0;width:30px;transform:translateX(-100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:after,.ant-table .ant-table-container:before{position:absolute;top:0;bottom:0;z-index:1;width:30px;transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:before{left:0}.ant-table .ant-table-container:after{right:0}.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container{position:relative}.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container:before{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-left .ant-table-cell-fix-left-first:after,.ant-table-ping-left .ant-table-cell-fix-left-last:after{box-shadow:inset 10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-left .ant-table-cell-fix-left-last:before{background-color:transparent!important}.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container{position:relative}.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container:after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-ping-right .ant-table-cell-fix-right-first:after,.ant-table-ping-right .ant-table-cell-fix-right-last:after{box-shadow:inset -10px 0 8px -8px rgba(0,0,0,.15)}.ant-table-sticky-holder{position:-webkit-sticky;position:sticky;z-index:3;background:#fff}.ant-table-sticky-scroll{position:-webkit-sticky;position:sticky;bottom:0;z-index:3;display:flex;align-items:center;background:hsla(0,0%,80%,.06);border-top:1px solid rgba(0,0,0,.06);opacity:.6}.ant-table-sticky-scroll:hover{transform-origin:center bottom}.ant-table-sticky-scroll-bar{height:8px;background-color:rgba(0,0,0,.35);border-radius:4px}.ant-table-sticky-scroll-bar:hover{background-color:rgba(0,0,0,.8)}.ant-table-sticky-scroll-bar-active{background-color:rgba(0,0,0,.8)}@media (-ms-high-contrast:none){.ant-table-ping-left .ant-table-cell-fix-left-last:after{box-shadow:none!important}.ant-table-ping-right .ant-table-cell-fix-right-first:after{box-shadow:none!important}}.ant-table-title{border-radius:2px 2px 0 0}.ant-table-title+.ant-table-container{border-top-left-radius:0;border-top-right-radius:0}.ant-table-title+.ant-table-container table>thead>tr:first-child th:first-child{border-radius:0}.ant-table-title+.ant-table-container table>thead>tr:first-child th:last-child{border-radius:0}.ant-table-container{border-top-left-radius:2px;border-top-right-radius:2px}.ant-table-container table>thead>tr:first-child th:first-child{border-top-left-radius:2px}.ant-table-container table>thead>tr:first-child th:last-child{border-top-right-radius:2px}.ant-table-footer{border-radius:0 0 2px 2px}.ant-table-wrapper-rtl{direction:rtl}.ant-table-rtl{direction:rtl}.ant-table-wrapper-rtl .ant-table table{text-align:right}.ant-table-wrapper-rtl .ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-wrapper-rtl .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{right:auto;left:0}.ant-table-wrapper-rtl .ant-table-thead>tr>th{text-align:right}.ant-table-tbody>tr .ant-table-wrapper:only-child .ant-table.ant-table-rtl{margin:-16px 33px -16px -16px}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-left{justify-content:flex-end}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-right{justify-content:flex-start}.ant-table-wrapper-rtl .ant-table-column-sorter{margin-right:4px;margin-left:0}.ant-table-wrapper-rtl .ant-table-filter-column-title{padding:16px 16px 16px 2.3em}.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title{padding:0 0 0 2.3em}.ant-table-wrapper-rtl .ant-table-filter-trigger{margin:-4px 4px -4px -8px}.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper+span{padding-right:8px;padding-left:0}.ant-table-wrapper-rtl .ant-table-selection{text-align:center}.ant-table-wrapper-rtl .ant-table-row-indent{float:right}.ant-table-wrapper-rtl .ant-table-row-expand-icon{float:right}.ant-table-wrapper-rtl .ant-table-row-indent+.ant-table-row-expand-icon{margin-right:0;margin-left:8px}.ant-table-wrapper-rtl .ant-table-row-expand-icon:after{transform:rotate(-90deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:before{transform:rotate(180deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}.ant-tree.ant-tree-directory .ant-tree-treenode{position:relative}.ant-tree.ant-tree-directory .ant-tree-treenode:before{position:absolute;top:0;right:0;bottom:4px;left:0;transition:background-color .3s;content:"";pointer-events:none}.ant-tree.ant-tree-directory .ant-tree-treenode:hover:before{background:#f5f5f5}.ant-tree.ant-tree-directory .ant-tree-treenode>*{z-index:1}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher{transition:color .3s}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper{border-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover{background:transparent}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected{color:#fff;background:transparent}.ant-tree.ant-tree-directory .ant-tree-treenode-selected:before,.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover:before{background:#1890ff;background:var(--ant-primary-color)}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher{color:#fff}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper{color:#fff;background:transparent}.ant-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-tree-checkbox-input:focus+.ant-tree-checkbox-inner,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,.ant-tree-checkbox:hover .ant-tree-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after,.ant-tree-checkbox:hover:after{visibility:visible}.ant-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-tree-checkbox-checked .ant-tree-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-tree-checkbox-disabled{cursor:not-allowed}.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-tree-checkbox-disabled .ant-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-tree-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-tree-checkbox-disabled:hover:after,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled:after{visibility:hidden}.ant-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-tree-checkbox-wrapper+.ant-tree-checkbox-wrapper{margin-left:8px}.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-tree-checkbox-group-item{margin-right:8px}.ant-tree-checkbox-group-item:last-child{margin-right:0}.ant-tree-checkbox-group-item+.ant-tree-checkbox-group-item{margin-left:0}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-tree{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-tree-focused:not(:hover):not(.ant-tree-active-focused){background:#e6f7ff;background:var(--ant-primary-1)}.ant-tree-list-holder-inner{align-items:flex-start}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner{align-items:stretch}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper{flex:auto}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging{position:relative}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);opacity:0;animation:ant-tree-node-fx-do-not-use .3s;animation-play-state:running;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-tree .ant-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover{background:transparent}.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper{background:#f5f5f5}.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title{color:inherit;font-weight:500}.ant-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-indent-unit{display:inline-block;width:24px}.ant-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-tree-treenode:hover .ant-tree-draggable-icon{opacity:.45}.ant-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-switcher .ant-select-tree-switcher-icon,.ant-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-tree-switcher .ant-select-tree-switcher-icon svg,.ant-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-tree-switcher-noop{cursor:default}.ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-tree-switcher-loading-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-tree .ant-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-tree .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty{display:none}.ant-tree-unselectable .ant-tree-node-content-wrapper:hover{background-color:transparent}.ant-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:1px;pointer-events:none}.ant-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #1890ff;border:2px solid var(--ant-primary-color);border-radius:50%;content:""}.ant-tree .ant-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff;box-shadow:0 0 0 2px var(--ant-primary-color)}.ant-tree-show-line .ant-tree-indent-unit{position:relative;height:100%}.ant-tree-show-line .ant-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-tree-show-line .ant-tree-indent-unit-end:before{display:none}.ant-tree-show-line .ant-tree-switcher{background:#fff}.ant-tree-show-line .ant-tree-switcher-line-icon{vertical-align:-.15em}.ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-rtl{direction:rtl}.ant-tree-rtl .ant-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator:after{right:-6px;left:unset}.ant-tree .ant-tree-treenode-rtl{direction:rtl}.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit:before{right:auto;left:-13px;border-right:none;border-left:1px solid #d9d9d9}.ant-tree-rtl .ant-tree-checkbox{margin:4px 0 0 8px}.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox{margin:4px 0 0 8px} \ No newline at end of file diff --git a/404.html b/404.html deleted file mode 100644 index 4656f8c4..00000000 --- a/404.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - - Ant Design Pro - - - - - - - -
- -
- logo -
-
- -
-
-
- - Ant Design -
-
-
- - - - - diff --git a/4205.234addc2.async.js b/4205.234addc2.async.js deleted file mode 100644 index b5c4ba33..00000000 --- a/4205.234addc2.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4205],{37476:function(Re,ie,n){"use strict";n.d(ie,{Y:function(){return ue}});var N=n(71194),s=n(50146),A=n(22122),I=n(55507),F=n(92137),ce=n(28991),r=n(28481),me=n(84305),p=n(75901),x=n(81253),S=n(82492),q=n.n(S),H=n(76632),se=n(80334),d=n(67294),ee=n(73935),te=n(24214),Ce=["children","trigger","onVisibleChange","modalProps","onFinish","submitTimeout","title","width","visible"];function ue(_){var V,ne,k,R,D=_.children,T=_.trigger,h=_.onVisibleChange,C=_.modalProps,oe=_.onFinish,G=_.submitTimeout,Q=_.title,De=_.width,re=_.visible,K=(0,x.Z)(_,Ce);(0,se.ET)(!K.footer||!(C==null?void 0:C.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var $=(0,d.useContext)(p.ZP.ConfigContext),ge=(0,d.useState)([]),xe=(0,r.Z)(ge,2),_e=xe[1],Te=(0,d.useState)(!1),Ee=(0,r.Z)(Te,2),Pe=Ee[0],Y=Ee[1],ae=(0,H.Z)(!!re,{value:re,onChange:h}),Oe=(0,r.Z)(ae,2),le=Oe[0],U=Oe[1],fe=(0,d.useRef)(null),he=(0,d.useCallback)(function(t){fe.current===null&&t&&_e([]),fe.current=t},[]),Me=(0,d.useRef)();(0,d.useEffect)(function(){le&&re&&(h==null||h(!0))},[re,le]);var be=(0,d.useMemo)(function(){return T?d.cloneElement(T,(0,ce.Z)((0,ce.Z)({key:"trigger"},T.props),{},{onClick:function(){var t=(0,F.Z)((0,I.Z)().mark(function a(o){var l,c;return(0,I.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:U(!le),(l=T.props)===null||l===void 0||(c=l.onClick)===null||c===void 0||c.call(l,o);case 2:case"end":return i.stop()}},a)}));function e(a){return t.apply(this,arguments)}return e}()})):null},[U,T,le]),ye=(0,d.useMemo)(function(){var t,e,a,o,l,c,v,i;return K.submitter===!1?!1:q()({searchConfig:{submitText:(t=(e=C==null?void 0:C.okText)!==null&&e!==void 0?e:(a=$.locale)===null||a===void 0||(o=a.Modal)===null||o===void 0?void 0:o.okText)!==null&&t!==void 0?t:"\u786E\u8BA4",resetText:(l=(c=C==null?void 0:C.cancelText)!==null&&c!==void 0?c:(v=$.locale)===null||v===void 0||(i=v.Modal)===null||i===void 0?void 0:i.cancelText)!==null&&l!==void 0?l:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:G?Pe:void 0,onClick:function(E){var m;U(!1),C==null||(m=C.onCancel)===null||m===void 0||m.call(C,E)}}},K.submitter)},[(V=$.locale)===null||V===void 0||(ne=V.Modal)===null||ne===void 0?void 0:ne.cancelText,(k=$.locale)===null||k===void 0||(R=k.Modal)===null||R===void 0?void 0:R.okText,C,K.submitter,U,Pe,G]),b=(0,d.useCallback)(function(t,e){return d.createElement(d.Fragment,null,t,fe.current&&e?(0,ee.createPortal)(e,fe.current):e)},[]),Ae=(0,d.useCallback)(function(){var t=(0,F.Z)((0,I.Z)().mark(function e(a){var o,l,c;return(0,I.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=oe==null?void 0:oe(a),G&&o instanceof Promise&&(Y(!0),l=setTimeout(function(){return Y(!1)},G),o.finally(function(){clearTimeout(l),Y(!1)})),i.next=4,o;case 4:return c=i.sent,c&&U(!1),i.abrupt("return",c);case 7:case"end":return i.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),[oe,U,G]);return d.createElement(d.Fragment,null,d.createElement(s.Z,(0,A.Z)({title:Q,width:De||800},C,{visible:le,onCancel:function(e){var a;G&&Pe||(U(!1),C==null||(a=C.onCancel)===null||a===void 0||a.call(C,e))},footer:K.submitter!==!1&&d.createElement("div",{ref:he,style:{display:"flex",justifyContent:"flex-end"}})}),d.createElement(te.I,(0,A.Z)({formComponentType:"ModalForm",layout:"vertical",formRef:Me},K,{submitter:ye,onFinish:function(){var t=(0,F.Z)((0,I.Z)().mark(function e(a){var o,l,c,v;return(0,I.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Ae(a);case 2:return c=f.sent,v=(o=(l=K.formRef)===null||l===void 0?void 0:l.current)!==null&&o!==void 0?o:Me.current,c&&v&&v.resetFields(),f.abrupt("return",c);case 6:case"end":return f.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),contentRender:b}),D)),be)}},41412:function(){},86743:function(Re,ie,n){"use strict";var N=n(22122),s=n(28481),A=n(67294),I=n(30470),F=n(71577),ce=n(73839);function r(p){return!!(p&&!!p.then)}var me=function(x){var S=A.useRef(!1),q=A.useRef(),H=(0,I.Z)(!1),se=(0,s.Z)(H,2),d=se[0],ee=se[1];A.useEffect(function(){var k;if(x.autoFocus){var R=q.current;k=setTimeout(function(){return R.focus()})}return function(){k&&clearTimeout(k)}},[]);var te=function(R){var D=x.close;!r(R)||(ee(!0),R.then(function(){ee(!1,!0),D.apply(void 0,arguments),S.current=!1},function(T){console.error(T),ee(!1,!0),S.current=!1}))},Ce=function(R){var D=x.actionFn,T=x.close;if(!S.current){if(S.current=!0,!D){T();return}var h;if(x.emitEvent){if(h=D(R),x.quitOnNullishReturnValue&&!r(h)){S.current=!1,T(R);return}}else if(D.length)h=D(T),S.current=!1;else if(h=D(),!h){T();return}te(h)}},ue=x.type,_=x.children,V=x.prefixCls,ne=x.buttonProps;return A.createElement(F.Z,(0,N.Z)({},(0,ce.n)(ue),{onClick:Ce,loading:d,prefixCls:V},ne,{ref:q}),_)};ie.Z=me},50146:function(Re,ie,n){"use strict";n.d(ie,{Z:function(){return Ae}});var N=n(96156),s=n(22122),A=n(54549),I=n(94184),F=n.n(I),ce=n(57315),r=n(67294),me=n(71577),p=n(73839),x=n(53124),S=n(65223),q=n(42051),H=n(33603),se=n(31808),d=n(83008),ee=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}.ant-pro-core-field-dropdown-label{cursor:pointer}.ant-pro-core-field-dropdown-overlay{min-width:200px;margin-top:4px;background-color:#fff;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-core-field-dropdown-content{padding:16px}.ant-modal{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";pointer-events:none;position:relative;top:100px;width:auto;max-width:calc(100vw - 32px);margin:0 auto;padding:0 0 24px}.ant-modal.ant-zoom-appear,.ant-modal.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:rgba(0,0,0,.45)}.ant-modal-mask-hidden{display:none}.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-modal-wrap{z-index:1000}.ant-modal-title{margin:0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:22px;word-wrap:break-word}.ant-modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:0;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);pointer-events:auto}.ant-modal-close{position:absolute;top:0;right:0;z-index:10;padding:0;color:rgba(0,0,0,.45);font-weight:700;line-height:1;text-decoration:none;background:transparent;border:0;outline:0;cursor:pointer;transition:color .3s}.ant-modal-close-x{display:block;width:56px;height:56px;font-size:16px;font-style:normal;line-height:56px;text-align:center;text-transform:none;text-rendering:auto}.ant-modal-close:focus,.ant-modal-close:hover{color:rgba(0,0,0,.75);text-decoration:none}.ant-modal-header{padding:16px 24px;color:rgba(0,0,0,.85);background:#fff;border-bottom:1px solid rgba(0,0,0,.06);border-radius:2px 2px 0 0}.ant-modal-body{padding:24px;font-size:14px;line-height:1.5715;word-wrap:break-word}.ant-modal-footer{padding:10px 16px;text-align:right;background:transparent;border-top:1px solid rgba(0,0,0,.06);border-radius:0 0 2px 2px}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-bottom:0;margin-left:8px}.ant-modal-open{overflow:hidden}.ant-modal-centered{text-align:center}.ant-modal-centered:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.ant-modal-centered .ant-modal{top:0;display:inline-block;padding-bottom:0;text-align:left;vertical-align:middle}@media (max-width:767px){.ant-modal{max-width:calc(100vw - 16px);margin:8px auto}.ant-modal-centered .ant-modal{flex:1 1}}.ant-modal-confirm .ant-modal-header{display:none}.ant-modal-confirm .ant-modal-body{padding:32px 32px 24px}.ant-modal-confirm-body-wrapper:before{display:table;content:""}.ant-modal-confirm-body-wrapper:after{display:table;clear:both;content:""}.ant-modal-confirm-body .ant-modal-confirm-title{display:block;overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:1.4}.ant-modal-confirm-body .ant-modal-confirm-content{margin-top:8px;color:rgba(0,0,0,.85);font-size:14px}.ant-modal-confirm-body>.anticon{float:left;margin-right:16px;font-size:22px}.ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:38px}.ant-modal-confirm .ant-modal-confirm-btns{margin-top:24px;text-align:right}.ant-modal-confirm .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-bottom:0;margin-left:8px}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#ff4d4f;color:var(--ant-error-color)}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#faad14;color:var(--ant-warning-color)}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#1890ff;color:var(--ant-info-color)}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#52c41a;color:var(--ant-success-color)}.ant-modal-wrap-rtl{direction:rtl}.ant-modal-wrap-rtl .ant-modal-close{right:auto;left:0}.ant-modal-wrap-rtl .ant-modal-footer{text-align:left}.ant-modal-wrap-rtl .ant-modal-footer .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-body{direction:rtl}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon{float:right;margin-right:0;margin-left:16px}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-right:38px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-btns{text-align:left}.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl.ant-modal-centered .ant-modal{text-align:right}.ant-pro-field-date-picker-light .ant-calendar-picker,.ant-pro-field-date-picker-light .ant-picker{position:absolute;width:80px;height:28px;overflow:hidden;visibility:hidden}.ant-pro-core-field-label{display:inline-flex;grid-gap:4px;gap:4px;align-items:center;height:30px;padding:0 4px;font-size:14px;line-height:30px;border-radius:2px;cursor:pointer}.ant-pro-core-field-label:hover{background-color:rgba(0,0,0,.1)}.ant-pro-core-field-label-active{padding:0 12px;background-color:rgba(0,0,0,.04)}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-arrow{display:none}.ant-pro-core-field-label-active.ant-pro-core-field-label-allow-clear:hover:not(.ant-pro-core-field-label-disabled) .ant-pro-core-field-label-close{display:inline-block}.ant-pro-core-field-label-icon{height:12px;padding:1px;color:rgba(0,0,0,.45);font-size:12px;vertical-align:middle}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close{display:none;height:14px;padding:3px;color:#fff;font-size:8px;background-color:rgba(0,0,0,.25);border-radius:50%}.ant-pro-core-field-label-icon.ant-pro-core-field-label-close:hover{background-color:rgba(0,0,0,.45)}.ant-pro-core-field-label-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-pro-core-field-label-disabled .ant-pro-core-field-label-icon{color:rgba(0,0,0,.25)}.ant-pro-core-field-label-small{height:24px;padding:0 4px;font-size:12px;line-height:24px}.ant-pro-core-field-label-small.ant-pro-core-field-label-active{padding:0 8px}.ant-pro-core-field-label-small .ant-pro-core-field-label-icon{padding:0}.ant-pro-core-field-label-small .ant-pro-core-field-label-close{margin-top:-2px;padding:3px;font-size:6px}.ant-pro-core-field-label-bordered{height:32px;padding:0 12px;border:1px solid #d9d9d9;border-radius:2px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-small{height:24px;padding:0 8px}.ant-pro-core-field-label-bordered.ant-pro-core-field-label-active{background-color:#fff}.ant-pro-field-index-column{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.ant-pro-field-index-column-border{color:#fff;font-size:12px;line-height:12px;background-color:#314659;border-radius:9px}.ant-pro-field-index-column-border.top-three{background-color:#979797}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-field-dropdown{width:auto}.ant-pro-field-select-light-select .ant-select{position:absolute;width:153px;height:28px;visibility:hidden}.ant-pro-field-select-light-select .ant-select-selector{height:28px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select{width:200px}.ant-pro-field-select-light-select.ant-pro-field-select-light-select-searchable .ant-select-selector{height:28px}.ant-pro-field-checkbox-vertical .ant-checkbox-group-item{display:flex;margin-right:0}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-core-dropdown-footer{display:flex;justify-content:space-between;padding:16px 16px 16px 8px;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-field-radio-vertical .ant-radio-wrapper{display:block;margin-right:0}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#52c41a;color:var(--ant-success-color)}.ant-result-error .ant-result-icon>.anticon{color:#ff4d4f;color:var(--ant-error-color)}.ant-result-info .ant-result-icon>.anticon{color:#1890ff;color:var(--ant-info-color)}.ant-result-warning .ant-result-icon>.anticon{color:#faad14;color:var(--ant-warning-color)}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:rgba(0,0,0,.85);font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:rgba(0,0,0,.45);font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>:last-child{margin-left:0} \ No newline at end of file diff --git a/4553.14f699c6.async.js b/4553.14f699c6.async.js deleted file mode 100644 index 8e883c46..00000000 --- a/4553.14f699c6.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4553],{94506:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 01-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z"}}]},name:"alipay",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="AlipayOutlined";var T=r.forwardRef(P)},73566:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="DingdingOutlined";var T=r.forwardRef(P)},90631:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={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"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="DownloadOutlined";var T=r.forwardRef(P)},98522:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="TaobaoOutlined";var T=r.forwardRef(P)},84391:function(ee,M,e){"use strict";e.d(M,{Z:function(){return T}});var c=e(28991),r=e(67294),v={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"},p=v,E=e(27029),P=function(C,A){return r.createElement(E.Z,(0,c.Z)((0,c.Z)({},C),{},{ref:A,icon:p}))};P.displayName="UploadOutlined";var T=r.forwardRef(P)},61768:function(ee,M,e){"use strict";var c=e(22122),r=e(28991),v=e(85061),p=e(81253),E=e(47673),P=e(4107),T=e(49111),N=e(19650),C=e(31194),A=e(50344),L=e(67294),S=e(71436),de=e(2514),$=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],O=["children","space","valuePropName"],X={space:N.Z,group:P.Z.Group};function W(K){var R=arguments.length<=1?void 0:arguments[1];return R&&R.target&&K in R.target?R.target[K]:R}var oe=function(R){var he=R.children,_=R.value,F=_===void 0?[]:_,te=R.valuePropName,ve=R.onChange,ye=R.fieldProps,H=R.space,_e=R.type,Se=_e===void 0?"space":_e,yt=R.transform,et=R.convertValue,tt=(0,p.Z)(R,$),ze=(0,C.J)(function(j,Ee){var Y,ge=(0,v.Z)(F);ge[Ee]=W(te||"value",j),ve==null||ve(ge),ye==null||(Y=ye.onChange)===null||Y===void 0||Y.call(ye,ge)}),Ue=-1,nt=(0,A.Z)(he).map(function(j){if(L.isValidElement(j)){var Ee,Y,ge;Ue+=1;var De=Ue,at=(j==null||(Ee=j.type)===null||Ee===void 0?void 0:Ee.displayName)==="ProFormComponent"||(j==null||(Y=j.props)===null||Y===void 0?void 0:Y.readonly),ot=at?(0,r.Z)((0,r.Z)({key:De,ignoreFormItem:!0},j.props||{}),{},{fieldProps:(0,r.Z)((0,r.Z)({},j==null||(ge=j.props)===null||ge===void 0?void 0:ge.fieldProps),{},{onChange:function(){ze(arguments.length<=0?void 0:arguments[0],De)}}),value:F==null?void 0:F[De],onChange:void 0}):(0,r.Z)((0,r.Z)({key:De},j.props||{}),{},{value:F==null?void 0:F[De],onChange:function(lt){var We,it;ze(lt,De),(We=(it=j.props).onChange)===null||We===void 0||We.call(it,lt)}});return L.cloneElement(j,ot)}return j}),xe=X[Se],Ve=(0,de.zx)(tt),Oe=Ve.RowWrapper,$e=(0,L.useMemo)(function(){return(0,r.Z)({},Se==="group"?{compact:!0}:{})},[Se]),rt=(0,L.useCallback)(function(j){var Ee=j.children;return L.createElement(xe,(0,c.Z)({},$e,H,{align:"start"}),Ee)},[xe,H,$e]);return L.createElement(Oe,{Wrapper:rt},nt)},ue=L.forwardRef(function(K,R){var he=K.children,_=K.space,F=K.valuePropName,te=(0,p.Z)(K,O);return(0,L.useImperativeHandle)(R,function(){return{}}),L.createElement(oe,(0,c.Z)({space:_,valuePropName:F},te.fieldProps,{onChange:void 0},te),he)}),me=(0,S.G)(ue);M.Z=me},64317:function(ee,M,e){"use strict";var c=e(22122),r=e(28991),v=e(81253),p=e(96202),E=e(67294),P=e(66758),T=e(97519),N=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],C=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],A=E.forwardRef(function(O,X){var W=O.fieldProps,oe=O.children,ue=O.params,me=O.proFieldProps,K=O.mode,R=O.valueEnum,he=O.request,_=O.showSearch,F=O.options,te=(0,v.Z)(O,N),ve=(0,E.useContext)(P.Z);return E.createElement(T.Z,(0,c.Z)({mode:"edit",valueEnum:(0,p.h)(R),request:he,params:ue,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:F,mode:K,showSearch:_,getPopupContainer:ve.getPopupContainer},W),ref:X,proFieldProps:me},te),oe)}),L=E.forwardRef(function(O,X){var W=O.fieldProps,oe=O.children,ue=O.params,me=O.proFieldProps,K=O.mode,R=O.valueEnum,he=O.request,_=O.options,F=(0,v.Z)(O,C),te=(0,r.Z)({options:_,mode:K||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},W),ve=(0,E.useContext)(P.Z);return E.createElement(T.Z,(0,c.Z)({mode:"edit",valueEnum:(0,p.h)(R),request:he,params:ue,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:ve.getPopupContainer},te),ref:X,proFieldProps:me},F),oe)}),S=A,de=L,$=S;$.SearchSelect=de,$.displayName="ProFormComponent",M.Z=$},5966:function(ee,M,e){"use strict";var c=e(22122),r=e(81253),v=e(67294),p=e(97519),E=["fieldProps","proFieldProps"],P=["fieldProps","proFieldProps"],T="text",N=function(S){var de=S.fieldProps,$=S.proFieldProps,O=(0,r.Z)(S,E);return v.createElement(p.Z,(0,c.Z)({mode:"edit",valueType:T,fieldProps:de,filedConfig:{valueType:T},proFieldProps:$},O))},C=function(S){var de=S.fieldProps,$=S.proFieldProps,O=(0,r.Z)(S,P);return v.createElement(p.Z,(0,c.Z)({mode:"edit",valueType:"password",fieldProps:de,proFieldProps:$,filedConfig:{valueType:T}},O))},A=N;A.Password=C,A.displayName="ProFormComponent",M.Z=A},90672:function(ee,M,e){"use strict";var c=e(22122),r=e(81253),v=e(67294),p=e(97519),E=["fieldProps","proFieldProps"],P=function(N,C){var A=N.fieldProps,L=N.proFieldProps,S=(0,r.Z)(N,E);return v.createElement(p.Z,(0,c.Z)({ref:C,mode:"edit",valueType:"textarea",fieldProps:A,proFieldProps:L},S))};M.Z=v.forwardRef(P)},952:function(ee,M,e){"use strict";var c=e(56640),r=e.n(c),v=e(5894);M.ZP=v.A},5894:function(ee,M,e){"use strict";e.d(M,{A:function(){return _}});var c=e(9715),r=e(86835),v=e(22122),p=e(67294),E=e(24214),P=e(96156),T=e(49111),N=e(19650),C=e(84305),A=e(75901),L=e(28481),S=e(28991),de=e(8812),$=e(28664),O=e(58927),X=e(94184),W=e.n(X),oe=e(66758),ue=e(2514),me=e(96138),K=p.forwardRef(function(F,te){var ve=p.useContext(oe.Z),ye=ve.groupProps,H=(0,S.Z)((0,S.Z)({},ye),F),_e=H.children,Se=H.collapsible,yt=H.defaultCollapsed,et=H.style,tt=H.labelLayout,ze=H.title,Ue=ze===void 0?F.label:ze,nt=H.tooltip,xe=H.align,Ve=xe===void 0?"start":xe,Oe=H.direction,$e=H.size,rt=$e===void 0?32:$e,j=H.titleStyle,Ee=H.titleRender,Y=H.spaceProps,ge=H.extra,De=H.autoFocus,at=(0,$.Z)(function(){return yt||!1},{value:F.collapsed,onChange:F.onCollapse}),ot=(0,L.Z)(at,2),He=ot[0],lt=ot[1],We=(0,p.useContext)(A.ZP.ConfigContext),it=We.getPrefixCls,Ge=(0,ue.zx)(F),st=Ge.ColWrapper,Je=Ge.RowWrapper,Ae=it("pro-form-group"),Dt=Se&&p.createElement(de.Z,{style:{marginRight:8},rotate:He?void 0:90}),Ot=p.createElement(O.Z,{label:Dt?p.createElement("div",null,Dt,Ue):Ue,tooltip:nt}),pt=(0,p.useCallback)(function(Fe){var Xe=Fe.children;return p.createElement(N.Z,(0,v.Z)({},Y,{className:W()("".concat(Ae,"-container"),Y==null?void 0:Y.className),size:rt,align:Ve,direction:Oe,style:(0,S.Z)({rowGap:0},Y==null?void 0:Y.style)}),Xe)},[Ve,Ae,Oe,rt,Y]),Zt=Ee?Ee(Ot,F):Ot,we=(0,p.useMemo)(function(){var Fe=[],Xe=p.Children.toArray(_e).map(function(Ze,Ft){var mt;return p.isValidElement(Ze)&&(Ze==null||(mt=Ze.props)===null||mt===void 0?void 0:mt.hidden)?(Fe.push(Ze),null):Ft===0&&p.isValidElement(Ze)&&De?p.cloneElement(Ze,(0,S.Z)((0,S.Z)({},Ze.props),{},{autoFocus:De})):Ze});return[p.createElement(Je,{key:"children",Wrapper:pt},Xe),Fe.length>0?p.createElement("div",{style:{display:"none"}},Fe):null]},[_e,Je,pt,De]),It=(0,L.Z)(we,2),wt=It[0],ft=It[1];return p.createElement(st,null,p.createElement("div",{className:W()(Ae,(0,P.Z)({},"".concat(Ae,"-twoLine"),tt==="twoLine")),style:et,ref:te},ft,(Ue||nt||ge)&&p.createElement("div",{className:"".concat(Ae,"-title"),style:j,onClick:function(){lt(!He)}},ge?p.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},Zt,p.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ge)):Zt),Se&&He?null:wt))});K.displayName="ProForm-Group";var R=K,he=e(87808);function _(F){return p.createElement(E.I,(0,v.Z)({layout:"vertical",submitter:{render:function(ve,ye){return ye.reverse()}},contentRender:function(ve,ye){return p.createElement(p.Fragment,null,ve,ye)}},F))}_.Group=R,_.useForm=r.Z.useForm,_.Item=he.Z,_.useWatch=r.Z.useWatch,_.useWatch=r.Z.useWatch,_.ErrorList=r.Z.ErrorList,_.Provider=r.Z.Provider},58927:function(ee,M,e){"use strict";var c=e(22385),r=e(61580),v=e(96156),p=e(84305),E=e(75901),P=e(68628),T=e(94184),N=e.n(T),C=e(67294),A=e(11445),L=e.n(A),S=function($){var O=$.label,X=$.tooltip,W=$.ellipsis,oe=$.subTitle,ue=(0,C.useContext)(E.ZP.ConfigContext),me=ue.getPrefixCls;if(!X&&!oe)return C.createElement(C.Fragment,null,O);var K=me("pro-core-label-tip"),R=typeof X=="string"||C.isValidElement(X)?{title:X}:X,he=(R==null?void 0:R.icon)||C.createElement(P.Z,null);return C.createElement("div",{className:K,onMouseDown:function(F){return F.stopPropagation()},onMouseLeave:function(F){return F.stopPropagation()},onMouseMove:function(F){return F.stopPropagation()}},C.createElement("div",{className:N()("".concat(K,"-title"),(0,v.Z)({},"".concat(K,"-title-ellipsis"),W))},O),oe&&C.createElement("div",{className:"".concat(K,"-subtitle")},oe),X&&C.createElement(r.Z,R,C.createElement("span",{className:"".concat(K,"-icon")},he)))};M.Z=C.memo(S)},31194:function(ee,M,e){"use strict";e.d(M,{J:function(){return r}});var c=e(67294),r=function(p){var E=(0,c.useRef)(null);return E.current=p,(0,c.useCallback)(function(){for(var P,T=arguments.length,N=new Array(T),C=0;C0&&(s.percent=s.loaded/s.total*100),a.onProgress(s)});var l=new FormData;a.data&&Object.keys(a.data).forEach(function(i){var s=a.data[i];if(Array.isArray(s)){s.forEach(function(u){l.append("".concat(i,"[]"),u)});return}l.append(i,s)}),a.file instanceof Blob?l.append(a.filename,a.file,a.file.name):l.append(a.filename,a.file),t.onerror=function(s){a.onError(s)},t.onload=function(){return t.status<200||t.status>=300?a.onError(ue(a,t),me(t)):a.onSuccess(me(t),t)},t.open(a.method,a.action,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=a.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(i){n[i]!==null&&t.setRequestHeader(i,n[i])}),t.send(l),{abort:function(){t.abort()}}}var R=+new Date,he=0;function _(){return"rc-upload-".concat(R,"-").concat(++he)}var F=e(80334),te=function(a,t){if(a&&t){var l=Array.isArray(t)?t:t.split(","),n=a.name||"",i=a.type||"",s=i.replace(/\/.*$/,"");return l.some(function(u){var d=u.trim();if(/^\*(\/\*)?$/.test(u))return!0;if(d.charAt(0)==="."){var o=n.toLowerCase(),f=d.toLowerCase(),h=[f];return(f===".jpg"||f===".jpeg")&&(h=[".jpg",".jpeg"]),h.some(function(Z){return o.endsWith(Z)})}return/\/\*$/.test(d)?s===d.replace(/\/.*$/,""):i===d?!0:/^\w+$/.test(d)?((0,F.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(d,"'.Skip for check.")),!0):!1})}return!0};function ve(a,t){var l=a.createReader(),n=[];function i(){l.readEntries(function(s){var u=Array.prototype.slice.apply(s);n=n.concat(u);var d=!u.length;d?t(n):i()})}i()}var ye=function(t,l,n){var i=function s(u,d){u.path=d||"",u.isFile?u.file(function(o){n(o)&&(u.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=u.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),l([o]))}):u.isDirectory&&ve(u,function(o){o.forEach(function(f){s(f,"".concat(d).concat(u.name,"/"))})})};t.forEach(function(s){i(s.webkitGetAsEntry())})},H=ye,_e=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Se=function(a){(0,L.Z)(l,a);var t=(0,S.Z)(l);function l(){var n;(0,C.Z)(this,l);for(var i=arguments.length,s=new Array(i),u=0;u0&&arguments[0]!==void 0?arguments[0]:"",l=t.split("/"),n=l[l.length-1],i=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},pt=function(t){return t.indexOf("image/")===0},Zt=function(t){if(t.type&&!t.thumbUrl)return pt(t.type);var l=t.thumbUrl||t.url||"",n=Ot(l);return/^data:image\//.test(l)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(l)||n)},we=200;function It(a){return new Promise(function(t){if(!a.type||!pt(a.type)){t("");return}var l=document.createElement("canvas");l.width=we,l.height=we,l.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(we,"px; height: ").concat(we,"px; z-index: 9999; display: none;"),document.body.appendChild(l);var n=l.getContext("2d"),i=new Image;i.onload=function(){var s=i.width,u=i.height,d=we,o=we,f=0,h=0;s>u?(o=u*(we/s),h=-(o-d)/2):(d=s*(we/u),f=-(d-o)/2),n.drawImage(i,f,h,d,o);var Z=l.toDataURL();document.body.removeChild(l),t(Z)},i.src=window.URL.createObjectURL(a)})}var wt=e(33603),ft=e(53124),Fe=e(71577),Xe=e(57838),Ze=e(95357),Ft=e(73171),mt=e(90631),St=e(61580),Wt=e(54458),Bt=r.forwardRef(function(a,t){var l,n=a.prefixCls,i=a.className,s=a.style,u=a.locale,d=a.listType,o=a.file,f=a.items,h=a.progress,Z=a.iconRender,I=a.actionIconRender,G=a.itemRender,B=a.isImgUrl,pe=a.showPreviewIcon,Pe=a.showRemoveIcon,q=a.showDownloadIcon,le=a.previewIcon,ie=a.removeIcon,se=a.downloadIcon,y=a.onPreview,J=a.onDownload,ne=a.onClose,Be,Ie,Et=r.useState(!1),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1],Ye=r.useRef();r.useEffect(function(){return Ye.current=setTimeout(function(){gt(!0)},300),function(){window.clearTimeout(Ye.current)}},[]);var Qe="".concat(n,"-span"),ke=Z(o),qe=r.createElement("div",{className:"".concat(n,"-text-icon")},ke);if(d==="picture"||d==="picture-card")if(o.status==="uploading"||!o.thumbUrl&&!o.url){var Me,Te=W()((Me={},(0,v.Z)(Me,"".concat(n,"-list-item-thumbnail"),!0),(0,v.Z)(Me,"".concat(n,"-list-item-file"),o.status!=="uploading"),Me));qe=r.createElement("div",{className:Te},ke)}else{var Ke,ct=(B==null?void 0:B(o))?r.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:"".concat(n,"-list-item-image"),crossOrigin:o.crossOrigin}):ke,Le=W()((Ke={},(0,v.Z)(Ke,"".concat(n,"-list-item-thumbnail"),!0),(0,v.Z)(Ke,"".concat(n,"-list-item-file"),B&&!B(o)),Ke));qe=r.createElement("a",{className:Le,onClick:function(D){return y(o,D)},href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ct)}var dt=W()((l={},(0,v.Z)(l,"".concat(n,"-list-item"),!0),(0,v.Z)(l,"".concat(n,"-list-item-").concat(o.status),!0),(0,v.Z)(l,"".concat(n,"-list-item-list-type-").concat(d),!0),l)),ut=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,vt=Pe?I((typeof ie=="function"?ie(o):ie)||r.createElement(Ft.Z,null),function(){return ne(o)},n,u.removeFile):null,Re=q&&o.status==="done"?I((typeof se=="function"?se(o):se)||r.createElement(mt.Z,null),function(){return J(o)},n,u.downloadFile):null,U=d!=="picture-card"&&r.createElement("span",{key:"download-delete",className:W()("".concat(n,"-list-item-card-actions"),{picture:d==="picture"})},Re,vt),w=W()("".concat(n,"-list-item-name")),k=o.url?[r.createElement("a",(0,c.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:w,title:o.name},ut,{href:o.url,onClick:function(D){return y(o,D)}}),o.name),U]:[r.createElement("span",{key:"view",className:w,onClick:function(D){return y(o,D)},title:o.name},o.name),U],x={pointerEvents:"none",opacity:.5},ce=pe?r.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:o.url||o.thumbUrl?void 0:x,onClick:function(D){return y(o,D)},title:u.previewFile},typeof le=="function"?le(o):le||r.createElement(Ze.Z,null)):null,je=d==="picture-card"&&o.status!=="uploading"&&r.createElement("span",{className:"".concat(n,"-list-item-actions")},ce,o.status==="done"&&Re,vt),Ce;o.response&&typeof o.response=="string"?Ce=o.response:Ce=((Be=o.error)===null||Be===void 0?void 0:Be.statusText)||((Ie=o.error)===null||Ie===void 0?void 0:Ie.message)||u.uploadError;var Pt=r.createElement("span",{className:Qe},qe,k),Ct=r.useContext(ft.E_),Rt=Ct.getPrefixCls,re=Rt(),g=r.createElement("div",{className:dt},r.createElement("div",{className:"".concat(n,"-list-item-info")},Pt),je,Q&&r.createElement(xe.Z,{motionName:"".concat(re,"-fade"),visible:o.status==="uploading",motionDeadline:2e3},function(m){var D=m.className,ae="percent"in o?r.createElement(Wt.Z,(0,c.Z)({},h,{type:"line",percent:o.percent})):null;return r.createElement("div",{className:W()("".concat(n,"-list-item-progress"),D)},ae)})),b=W()("".concat(n,"-list-").concat(d,"-container"),i),z=o.status==="error"?r.createElement(St.Z,{title:Ce,getPopupContainer:function(D){return D.parentNode}},g):g;return r.createElement("div",{className:b,style:s,ref:t},G?G(z,o,f,{download:J.bind(null,o),preview:y.bind(null,o),remove:ne.bind(null,o)}):z)}),Nt=Bt,Mt=(0,c.Z)({},wt.ZP);delete Mt.onAppearEnd,delete Mt.onEnterEnd,delete Mt.onLeaveEnd;var Kt=function(t,l){var n,i=t.listType,s=t.previewFile,u=t.onPreview,d=t.onDownload,o=t.onRemove,f=t.locale,h=t.iconRender,Z=t.isImageUrl,I=t.prefixCls,G=t.items,B=G===void 0?[]:G,pe=t.showPreviewIcon,Pe=t.showRemoveIcon,q=t.showDownloadIcon,le=t.removeIcon,ie=t.previewIcon,se=t.downloadIcon,y=t.progress,J=t.appendAction,ne=t.appendActionVisible,Be=t.itemRender,Ie=(0,Xe.Z)(),Et=r.useState(!1),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1];r.useEffect(function(){i!=="picture"&&i!=="picture-card"||(B||[]).forEach(function(U){typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",s&&s(U.originFileObj).then(function(w){U.thumbUrl=w||"",Ie()}))})},[i,B,s]),r.useEffect(function(){gt(!0)},[]);var Ye=function(w,k){if(!!u)return k==null||k.preventDefault(),u(w)},Qe=function(w){typeof d=="function"?d(w):w.url&&window.open(w.url)},ke=function(w){o==null||o(w)},qe=function(w){if(h)return h(w,i);var k=w.status==="uploading",x=Z&&Z(w)?r.createElement(ot,null):r.createElement(it,null),ce=k?r.createElement(Ve.Z,null):r.createElement(Y,null);return i==="picture"?ce=k?r.createElement(Ve.Z,null):x:i==="picture-card"&&(ce=k?f.uploading:x),ce},Me=function(w,k,x,ce){var je={type:"text",size:"small",title:ce,onClick:function(Ct){k(),(0,Ge.l$)(w)&&w.props.onClick&&w.props.onClick(Ct)},className:"".concat(x,"-list-item-card-actions-btn")};if((0,Ge.l$)(w)){var Ce=(0,Ge.Tm)(w,(0,c.Z)((0,c.Z)({},w.props),{onClick:function(){}}));return r.createElement(Fe.Z,(0,c.Z)({},je,{icon:Ce}))}return r.createElement(Fe.Z,(0,c.Z)({},je),r.createElement("span",null,w))};r.useImperativeHandle(l,function(){return{handlePreview:Ye,handleDownload:Qe}});var Te=r.useContext(ft.E_),Ke=Te.getPrefixCls,ct=Te.direction,Le=Ke("upload",I),dt=W()((n={},(0,v.Z)(n,"".concat(Le,"-list"),!0),(0,v.Z)(n,"".concat(Le,"-list-").concat(i),!0),(0,v.Z)(n,"".concat(Le,"-list-rtl"),ct==="rtl"),n)),ut=(0,E.Z)(B.map(function(U){return{key:U.uid,file:U}})),vt=i==="picture-card"?"animate-inline":"animate",Re={motionDeadline:2e3,motionName:"".concat(Le,"-").concat(vt),keys:ut,motionAppear:Q};return i!=="picture-card"&&(Re=(0,c.Z)((0,c.Z)({},Mt),Re)),r.createElement("div",{className:dt},r.createElement(xe.V,(0,c.Z)({},Re,{component:!1}),function(U){var w=U.key,k=U.file,x=U.className,ce=U.style;return r.createElement(Nt,{key:w,locale:f,prefixCls:Le,className:x,style:ce,file:k,items:B,progress:y,listType:i,isImgUrl:Z,showPreviewIcon:pe,showRemoveIcon:Pe,showDownloadIcon:q,removeIcon:le,previewIcon:ie,downloadIcon:se,iconRender:qe,actionIconRender:Me,itemRender:Be,onPreview:Ye,onDownload:Qe,onClose:ke})}),J&&r.createElement(xe.Z,(0,c.Z)({},Re,{visible:ne,forceRender:!0}),function(U){var w=U.className,k=U.style;return(0,Ge.Tm)(J,function(x){return{className:W()(x.className,w),style:(0,c.Z)((0,c.Z)((0,c.Z)({},k),{pointerEvents:w?"none":void 0}),x.style)}})}))},Tt=r.forwardRef(Kt);Tt.displayName="UploadList",Tt.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,appendActionVisible:!0,previewFile:It,isImageUrl:Zt};var jt=Tt,_t=e(42051),zt=e(85636),Vt=function(a,t,l,n){function i(s){return s instanceof l?s:new l(function(u){u(s)})}return new(l||(l=Promise))(function(s,u){function d(h){try{f(n.next(h))}catch(Z){u(Z)}}function o(h){try{f(n.throw(h))}catch(Z){u(Z)}}function f(h){h.done?s(h.value):i(h.value).then(d,o)}f((n=n.apply(a,t||[])).next())})},ht="__LIST_IGNORE_".concat(Date.now(),"__"),$t=function(t,l){var n,i=t.fileList,s=t.defaultFileList,u=t.onRemove,d=t.showUploadList,o=t.listType,f=t.onPreview,h=t.onDownload,Z=t.onChange,I=t.onDrop,G=t.previewFile,B=t.disabled,pe=t.locale,Pe=t.iconRender,q=t.isImageUrl,le=t.progress,ie=t.prefixCls,se=t.className,y=t.type,J=t.children,ne=t.style,Be=t.itemRender,Ie=t.maxCount,Et=(0,nt.Z)(s||[],{value:i,postState:function(g){return g!=null?g:[]}}),Ne=(0,P.Z)(Et,2),Q=Ne[0],gt=Ne[1],Ye=r.useState("drop"),Qe=(0,P.Z)(Ye,2),ke=Qe[0],qe=Qe[1],Me=r.useRef();r.useMemo(function(){var re=Date.now();(i||[]).forEach(function(g,b){!g.uid&&!Object.isFrozen(g)&&(g.uid="__AUTO__".concat(re,"_").concat(b,"__"))})},[i]);var Te=function(g,b,z){var m=(0,E.Z)(b);Ie===1?m=m.slice(-1):Ie&&(m=m.slice(0,Ie)),gt(m);var D={file:g,fileList:m};z&&(D.event=z),Z==null||Z(D)},Ke=function(g,b){return Vt(void 0,void 0,void 0,N().mark(function z(){var m,D,ae,fe;return N().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(m=t.beforeUpload,D=t.transformFile,ae=g,!m){V.next=13;break}return V.next=5,m(g,b);case 5:if(fe=V.sent,fe!==!1){V.next=8;break}return V.abrupt("return",!1);case 8:if(delete g[ht],fe!==ht){V.next=12;break}return Object.defineProperty(g,ht,{value:!0,configurable:!0}),V.abrupt("return",!1);case 12:(0,p.Z)(fe)==="object"&&fe&&(ae=fe);case 13:if(!D){V.next=17;break}return V.next=16,D(ae);case 16:ae=V.sent;case 17:return V.abrupt("return",ae);case 18:case"end":return V.stop()}},z)}))},ct=function(g){var b=g.filter(function(D){return!D.file[ht]});if(!!b.length){var z=b.map(function(D){return st(D.file)}),m=(0,E.Z)(Q);z.forEach(function(D){m=Je(D,m)}),z.forEach(function(D,ae){var fe=D;if(b[ae].parsedFile)D.status="uploading";else{var be=D.originFileObj,V;try{V=new File([be],be.name,{type:be.type})}catch(bt){V=new Blob([be],{type:be.type}),V.name=be.name,V.lastModifiedDate=new Date,V.lastModified=new Date().getTime()}V.uid=D.uid,fe=V}Te(fe,m)})}},Le=function(g,b,z){try{typeof g=="string"&&(g=JSON.parse(g))}catch(ae){}if(!!Ae(b,Q)){var m=st(b);m.status="done",m.percent=100,m.response=g,m.xhr=z;var D=Je(m,Q);Te(m,D)}},dt=function(g,b){if(!!Ae(b,Q)){var z=st(b);z.status="uploading",z.percent=g.percent;var m=Je(z,Q);Te(z,m,g)}},ut=function(g,b,z){if(!!Ae(z,Q)){var m=st(z);m.error=g,m.response=b,m.status="error";var D=Je(m,Q);Te(m,D)}},vt=function(g){var b;Promise.resolve(typeof u=="function"?u(g):u).then(function(z){var m;if(z!==!1){var D=Dt(g,Q);D&&(b=(0,c.Z)((0,c.Z)({},g),{status:"removed"}),Q==null||Q.forEach(function(ae){var fe=b.uid!==void 0?"uid":"name";ae[fe]===b[fe]&&!Object.isFrozen(ae)&&(ae.status="removed")}),(m=Me.current)===null||m===void 0||m.abort(b),Te(b,D))}})},Re=function(g){qe(g.type),g.type==="drop"&&(I==null||I(g))};r.useImperativeHandle(l,function(){return{onBatchStart:ct,onSuccess:Le,onProgress:dt,onError:ut,fileList:Q,upload:Me.current}});var U=r.useContext(ft.E_),w=U.getPrefixCls,k=U.direction,x=w("upload",ie),ce=(0,c.Z)((0,c.Z)({onBatchStart:ct,onError:ut,onProgress:dt,onSuccess:Le},t),{prefixCls:x,beforeUpload:Ke,onChange:void 0});delete ce.className,delete ce.style,(!J||B)&&delete ce.id;var je=function(g,b){return d?r.createElement(_t.Z,{componentName:"Upload",defaultLocale:zt.Z.Upload},function(z){var m=typeof d=="boolean"?{}:d,D=m.showRemoveIcon,ae=m.showPreviewIcon,fe=m.showDownloadIcon,be=m.removeIcon,V=m.previewIcon,bt=m.downloadIcon;return r.createElement(jt,{prefixCls:x,listType:o,items:Q,previewFile:G,onPreview:f,onDownload:h,onRemove:vt,showRemoveIcon:!B&&D,showPreviewIcon:ae,showDownloadIcon:fe,removeIcon:be,previewIcon:V,downloadIcon:bt,iconRender:Pe,locale:(0,c.Z)((0,c.Z)({},z),pe),isImageUrl:q,progress:le,appendAction:g,appendActionVisible:b,itemRender:Be})}):g};if(y==="drag"){var Ce,Pt=W()(x,(Ce={},(0,v.Z)(Ce,"".concat(x,"-drag"),!0),(0,v.Z)(Ce,"".concat(x,"-drag-uploading"),Q.some(function(re){return re.status==="uploading"})),(0,v.Z)(Ce,"".concat(x,"-drag-hover"),ke==="dragover"),(0,v.Z)(Ce,"".concat(x,"-disabled"),B),(0,v.Z)(Ce,"".concat(x,"-rtl"),k==="rtl"),Ce),se);return r.createElement("span",null,r.createElement("div",{className:Pt,onDrop:Re,onDragOver:Re,onDragLeave:Re,style:ne},r.createElement(Ue,(0,c.Z)({},ce,{ref:Me,className:"".concat(x,"-btn")}),r.createElement("div",{className:"".concat(x,"-drag-container")},J))),je())}var Ct=W()(x,(n={},(0,v.Z)(n,"".concat(x,"-select"),!0),(0,v.Z)(n,"".concat(x,"-select-").concat(o),!0),(0,v.Z)(n,"".concat(x,"-disabled"),B),(0,v.Z)(n,"".concat(x,"-rtl"),k==="rtl"),n)),Rt=function(g){return r.createElement("div",{className:Ct,style:g},r.createElement(Ue,(0,c.Z)({},ce,{ref:Me})))};return o==="picture-card"?r.createElement("span",{className:W()("".concat(x,"-picture-card-wrapper"),se)},je(Rt(),!!J)):r.createElement("span",{className:se},Rt(J?void 0:{display:"none"}),je())},Lt=r.forwardRef($t);Lt.displayName="Upload",Lt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var xt=Lt,Ht=function(a,t){var l={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&t.indexOf(n)<0&&(l[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(a);i=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x=h&&!p||p==="m"?(u+=i.abbreviations.million,e=e/h):(x=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],_=r.split(".")[1],S=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(n._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),d=n._.toFixed(e,_[0].length+_[1].length,l,_[1].length)):d=n._.toFixed(e,_.length,l),b=d.split(".")[0],n._.includes(d,".")?d=i.delimiters.decimal+d.split(".")[1]:d="",o&&Number(d.slice(1))===0&&(d="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),B=!0),b.length0;$--)b="0"+b;return S>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+d+(u||""),t?F=(t&&B?"(":"")+F+(t&&B?")":""):k>=0?F=k===0?(B?"-":"+")+F:F+(B?"-":"+"):B&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a,u;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(u=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(u)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;ti?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=g,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch(h){f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=E.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in g)if(i.match(g[t].regexps.format)){a=g[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",h,w,d;for(o=o.replace(/\s?i?b/,""),h=0;h<=f.suffixes.length;h++)if(w=Math.pow(f.base,h),d=Math.pow(f.base,h+1),t===null||t===0||t>=w&&t0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),h=o*s*(a*s)/(s*s);return h}return n._.reduce([l,Math.pow(10,i)],t,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})}(),n})}}]); diff --git a/4691.946dc368.async.js b/4691.946dc368.async.js deleted file mode 100644 index d5faacae..00000000 --- a/4691.946dc368.async.js +++ /dev/null @@ -1,7910 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4691],{35099:function(It,$,U){"use strict";var ae=U(67294),re=U(83280),m=U(23185),ve=U(4322),Z=U(24770),le=U(89182),fe=function(J,Xe){var et={};for(var Ue in J)Object.prototype.hasOwnProperty.call(J,Ue)&&Xe.indexOf(Ue)<0&&(et[Ue]=J[Ue]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ue=Object.getOwnPropertySymbols(J);gt9999?"+"+it(e,6):it(e,4)}function Y(e){var i=e.getUTCHours(),r=e.getUTCMinutes(),n=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":Zt(e.getUTCFullYear(),4)+"-"+it(e.getUTCMonth()+1,2)+"-"+it(e.getUTCDate(),2)+(a?"T"+it(i,2)+":"+it(r,2)+":"+it(n,2)+"."+it(a,3)+"Z":n?"T"+it(i,2)+":"+it(r,2)+":"+it(n,2)+"Z":r||i?"T"+it(i,2)+":"+it(r,2)+"Z":"")}function $t(e){var i=new RegExp('["'+e+` -\r]`),r=e.charCodeAt(0);function n(T,O){var k,j,X=a(T,function(te,be){if(k)return k(te,be-1);j=te,k=O?Et(te,O):Yt(te)});return X.columns=j||[],X}function a(T,O){var k=[],j=T.length,X=0,te=0,be,Ne=j<=0,$e=!1;T.charCodeAt(j-1)===rr&&--j,T.charCodeAt(j-1)===xt&&--j;function ot(){if(Ne)return Ue;if($e)return $e=!1,et;var _t,qt=X,ar;if(T.charCodeAt(qt)===gt){for(;X++=j?Ne=!0:(ar=T.charCodeAt(X++))===rr?$e=!0:ar===xt&&($e=!0,T.charCodeAt(X)===rr&&++X),T.slice(qt+1,_t-1).replace(/""/g,'"')}for(;X=0))throw new Error("precision must be a positive number");var r=Math.pow(10,i||0);return Math.round(e*r)/r}function me(e,i){i===void 0&&(i="kilometers");var r=Wn[i];if(!r)throw new Error(i+" units is invalid");return e*r}function Dn(e,i){i===void 0&&(i="kilometers");var r=Wn[i];if(!r)throw new Error(i+" units is invalid");return e/r}function Za(e,i){return Nt(Dn(e,i))}function hs(e){var i=e%360;return i<0&&(i+=360),i}function Nt(e){var i=e%(2*Math.PI);return i*180/Math.PI}function nr(e){var i=e%360;return i*Math.PI/180}function Ar(e,i,r){if(i===void 0&&(i="kilometers"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return me(Dn(e,i),r)}function rn(e,i,r){if(i===void 0&&(i="meters"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=vi[i];if(!n)throw new Error("invalid original units");var a=vi[r];if(!a)throw new Error("invalid final units");return e/n*a}function wn(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Fn(e){return!!e&&e.constructor===Object}function gi(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(i){if(!wn(i))throw new Error("bbox must only contain numbers")})}function ti(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")}function fn(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Di(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ri(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return Ri(e[0]);throw new Error("coordinates must only contain numbers")}function to(e,i,r){if(!i||!r)throw new Error("type and name required");if(!e||e.type!==i)throw new Error("Invalid input to "+r+": must be a "+i+", given "+e.type)}function Es(e,i,r){if(!e)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!e||e.type!=="Feature"||!e.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!e.geometry||e.geometry.type!==i)throw new Error("Invalid input to "+r+": must be a "+i+", given "+e.geometry.type)}function Ko(e,i,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||e.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0,a=e.features;ng||j>x||X>C){v=T,g=n,x=j,C=X,s=0;return}var te=lineString([v,T],r.properties);if(i(te,n,a,X,s)===!1)return!1;s++,v=T})===!1)return!1}}})}function zt(e,i,r){var n=r,a=!1;return Ft(e,function(s,f,v,g,x){a===!1&&r===void 0?n=s:n=i(n,s,f,v,g,x),a=!0}),n}function vr(e,i){if(!e)throw new Error("geojson is required");vt(e,function(r,n,a){if(r.geometry!==null){var s=r.geometry.type,f=r.geometry.coordinates;switch(s){case"LineString":if(i(r,n,a,0,0)===!1)return!1;break;case"Polygon":for(var v=0;v0}),wt()(e,!0),e.features.length===0)return{dataArray:[],featureKeys:n};var a=0;return vt(e,function(s,f){var v=Di(s),g=f,x=Zr(Zr({},s.properties),{},{coordinates:v,_id:g});r.push(x)}),{dataArray:r,featureKeys:n}}function _i(e){var i=131,r=137,n=0;e+="x";for(var a=Math.floor(9007199254740991/r),s=0;sa&&(n=Math.floor(n/r)),n=n*i+e.charCodeAt(s);return n}function an(e){e=e.toString();for(var i=5381,r=e.length;r;)i=i*33^e.charCodeAt(--r);return i>>>0}var on=U(28481),Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yi(e){this.message=e}yi.prototype=new Error,yi.prototype.name="InvalidCharacterError";function Pi(e){var i=String(e).replace(/=+$/,"");if(i.length%4==1)throw new yi("'atob' failed: The string to be decoded is not correctly encoded.");for(var r="",n=0,a,s,f=0;s=i.charAt(f++);~s&&(a=n%4?a*64+s:s,n++%4)?r+=String.fromCharCode(255&a>>(-2*n&6)):0)s=Xi.indexOf(s);return r}function bi(e){e=String(e);for(var i,r,n,a,s="",f=0,v=e.length%3;f255||(n=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");i=r<<16|n<<8|a,s+=Xi.charAt(i>>18&63)+Xi.charAt(i>>12&63)+Xi.charAt(i>>6&63)+Xi.charAt(i&63)}return v?s.slice(0,v-3)+"===".substring(v):s}var ht=U(6610),Pt=U(5991),Aa=function(){function e(i,r){(0,ht.Z)(this,e),this.buffers=i,this.type=r}return(0,Pt.Z)(e,[{key:"arraybuffer",value:function(){return Promise.resolve(this.buffers[0])}},{key:"stream",value:function(){throw new Error("not implemented")}},{key:"text",value:function(){throw new Error("not implemented")}},{key:"slice",value:function(r,n,a){throw new Error("not implemented")}}]),e}(),qi,Ii=function(){return qi||(qi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof U.g!="undefined"?U.g:{})};qi=Ii();var pi;typeof window=="undefined"?pi={devicePixelRatio:1,navigator:{userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",browserLanguage:"zh-CN",language:"zh-CN",platform:""},location:"",document:{documentElement:{style:{}},createEvent:function(){return!0},getElementById:function(i){return!0},createElement:function(){return{className:"",classList:{add:function(){return""}}}},createElementNS:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},querySelector:function(){return!1}},performance:{mark:function(i){return null},clearMeasures:function(i){return null},clearMarks:function(i){return null},measure:function(i,r,n){return{duration:0}},now:function(){return new Date().getTime()}},Blob:"",dispatchEvent:function(i){return!0},Event:function(i,r){return!0},createElement:function(){return!0},createElementNS:function(){return!0},XMLHttpRequest:function(){return!0},addEventListener:function(){return!0},removeEventListener:function(){return!0},requestAnimationFrame:function(){return!0},cancelAnimationFrame:function(){return!0},clearTimeout:function(){return!0}}:pi=window;var wa=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,$s=wa?my.getSystemInfoSync().pixelRatio:pi.devicePixelRatio,Ir=U(10379),wr=U(46070),Mt=U(77608),bo=(0,Pt.Z)(function e(i,r){(0,ht.Z)(this,e),(0,A.Z)(this,"cancelBubble",void 0),(0,A.Z)(this,"cancelable",void 0),(0,A.Z)(this,"target",void 0),(0,A.Z)(this,"currentTarget",void 0),(0,A.Z)(this,"preventDefault",void 0),(0,A.Z)(this,"stopPropagation",void 0),(0,A.Z)(this,"type",void 0),(0,A.Z)(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=i,this.timeStamp=Date.now()}),ne=U(63349);function Fu(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oo(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function oo(e,i){if(!!e){if(typeof e=="string")return Ra(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ra(e,i)}}function Ra(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r2&&arguments[2]!==void 0?arguments[2]:{},s=Ta.get(this);s||(s={}),s[r]||(s[r]=[]),s[r].push(n),Ta.set(this,s),a.capture,a.once,a.passive}},{key:"removeEventListener",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=Ta.get(this);if(s){var f=s[r];if(f&&f.length>0){for(var v=f.length;v--;v>0)if(f[v]===n){f.splice(v,1);break}}}}},{key:"dispatchEvent",value:function(r){var n=Ta.get(this)[r.type];if(n){var a=Fu(n),s;try{for(a.s();!(s=a.n()).done;){var f=s.value;f(r)}}catch(v){a.e(v)}finally{a.f()}}}}]),e}();function Uo(e){var i=$o();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function $o(){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(e){return!1}}var xu=function(e){(0,Ir.Z)(r,e);var i=Uo(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"childNodes",void 0),n.childNodes=[],n}return(0,Pt.Z)(r,[{key:"appendChild",value:function(a){this.childNodes.push(a)}},{key:"cloneNode",value:function(){var a=Object.create(this);return Object.assign(a,this),a}},{key:"removeChild",value:function(a){var s=this.childNodes.findIndex(function(f){return f===a});return s>-1?this.childNodes.splice(s,1):null}}]),r}(Qi);function Eo(e){var i=Zo();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Zo(){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(e){return!1}}var sa=function(e){(0,Ir.Z)(r,e);var i=Eo(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"className",void 0),(0,A.Z)((0,ne.Z)(n),"children",void 0),n.className="",n.children=[],n}return(0,Pt.Z)(r,[{key:"setAttribute",value:function(a,s){this[a]=s}},{key:"getAttribute",value:function(a){return this[a]}},{key:"setAttributeNS",value:function(a,s){this[a]=s}},{key:"getAttributeNS",value:function(a){return this[a]}}]),r}(xu),so=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,jo,Ya,Gs,ll;if(so){var os=my.getSystemInfoSync();jo=os.screenWidth,Ya=os.screenHeight,Gs=os.windowWidth,ll=os.windowHeight}else{var ie=pi.innerWidth,Ee=pi.innerHeight;jo=ie,Ya=Ee,Gs=ie,ll=Ee}var qe={width:jo,height:Ya,availWidth:Gs,availHeight:ll,availLeft:0,availTop:0},Rt=qe.availWidth,Or=qe.availHeight,Tn={style:[]};function Ti(e,i){if(!("parentNode"in e)){var r;i===0?r=function(){return null}:i===1?r=function(){return Tn}:r=function(){return null},Object.defineProperty(e,"parentNode",{enumerable:!0,get:r})}if(!("parentElement"in e)){var n;i===0?n=function(){return null}:i===1?n=function(){return Tn}:n=function(){return null},Object.defineProperty(e,"parentElement",{enumerable:!0,get:n})}}function ro(e){e.style=e.style||{},Object.assign(e.style,{top:"0px",left:"0px",width:Rt+"px",height:Or+"px",margin:"0px",padding:"0px"})}function La(e){"clientLeft"in e||(e.clientLeft=0,e.clientTop=0),"clientWidth"in e||(e.clientWidth=Rt,e.clientHeight=Or),"getBoundingClientRect"in e||(e.getBoundingClientRect=function(){var i={x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight};return i})}function ja(e){"offsetLeft"in e||(e.offsetLeft=0,e.offsetTop=0),"offsetWidth"in e||(e.offsetWidth=Rt,e.offsetHeight=Or)}function Qo(e){"scrollLeft"in e||(e.scrollLeft=0,e.scrollTop=0),"scrollWidth"in e||(e.scrollWidth=Rt,e.scrollHeight=Or)}function ps(e){var i=function(){return!0};e.classList=[],e.classList.add=i,e.classList.remove=i,e.classList.contains=i,e.classList.toggle=i}function Jo(e){var i=Ss();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Ss(){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(e){return!1}}function Lo(){}var Vo=function(e){(0,Ir.Z)(r,e);var i=Jo(r);function r(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"className",void 0),(0,A.Z)((0,ne.Z)(n),"children",void 0),(0,A.Z)((0,ne.Z)(n),"focus",void 0),(0,A.Z)((0,ne.Z)(n),"blur",void 0),(0,A.Z)((0,ne.Z)(n),"insertBefore",void 0),(0,A.Z)((0,ne.Z)(n),"appendChild",void 0),(0,A.Z)((0,ne.Z)(n),"removeChild",void 0),(0,A.Z)((0,ne.Z)(n),"remove",void 0),(0,A.Z)((0,ne.Z)(n),"innerHTML",void 0),(0,A.Z)((0,ne.Z)(n),"tagName",void 0),n.className="",n.children=[],n.focus=Lo,n.blur=Lo,n.insertBefore=Lo,n.appendChild=Lo,n.removeChild=Lo,n.remove=Lo,n.innerHTML="",n.tagName=a.toUpperCase(),Ti((0,ne.Z)(n),s),ro((0,ne.Z)(n)),ps((0,ne.Z)(n)),La((0,ne.Z)(n)),ja((0,ne.Z)(n)),Qo((0,ne.Z)(n)),n}return(0,Pt.Z)(r)}(sa);function Qs(e){var i=ou();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}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(e){return!1}}var ds=function(e){(0,Ir.Z)(r,e);var i=Qs(r);function r(n){return(0,ht.Z)(this,r),i.call(this,n)}return(0,Pt.Z)(r,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),r}(Vo);function ga(e){var i=ko();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ko(){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(e){return!1}}var Il=function(e){(0,Ir.Z)(r,e);var i=ga(r);function r(){return(0,ht.Z)(this,r),i.call(this,"video")}return(0,Pt.Z)(r)}(ds),vs={},es={};function of(e,i){vs=e,vs.id=i,"tagName"in vs||(vs.tagName="CANVAS"),vs.type="canvas",Mixin.parentNode(vs),Mixin.style(vs),Mixin.classList(vs),Mixin.clientRegion(vs),Mixin.offsetRegion(vs),vs.focus=function(){},vs.blur=function(){}}function rc(e,i){var r=1024,n=1024;es={width:r,height:n,clientWidth:r/devicePixelRatio,clientHeight:n/devicePixelRatio,id:i,type:"canvas"},"tagName"in es||(es.tagName="CANVAS"),Mixin.parentNode(es),Mixin.style(es),Mixin.classList(es),Mixin.clientRegion(es),Mixin.offsetRegion(es),es.getContext=function(a){if(a==="2d")return e},es.focus=function(){},es.blur=function(){}}function Cs(){return vs}function bu(){return es}var cl=(0,Pt.Z)(function e(){(0,ht.Z)(this,e);var i=Cs(),r=i.createImage&&i.createImage()||{};return"tagName"in r||(r.tagName="IMG",r.__proto__=e.prototype),Ti(r),ps(r),Object.assign(r,{addEventListener:function(a,s){r["on".concat(a)]=s.bind(r)},removeEventListener:function(a){r["on".concat(a)]=null}}),r}),_={href:"",protocol:"",host:""};function M(e){var i=F();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function F(){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(e){return!1}}var R=function(e){(0,Ir.Z)(r,e);var i=M(r);function r(){return(0,ht.Z)(this,r),i.call(this,"body",0)}return(0,Pt.Z)(r,[{key:"addEventListener",value:function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}}},{key:"removeEventListener",value:function(a,s,f){}},{key:"dispatchEvent",value:function(a){}}]),r}(Vo),K=function(e){(0,Ir.Z)(r,e);var i=M(r);function r(){return(0,ht.Z)(this,r),i.call(this,"html",0)}return(0,Pt.Z)(r,[{key:"addEventListener",value:function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}}},{key:"removeEventListener",value:function(a,s){}},{key:"dispatchEvent",value:function(a){}}]),r}(Vo),_e={},je={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:_,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(i){return i=i.toLowerCase(),i==="canvas"?my.createOffscreenCanvas(1024,128,"2d"):i==="img"?new cl:i==="video"?new Il:new Vo(i)},createElementNS:function(i,r){return this.createElement(r)},createTextNode:function(i){return i},getElementById:function(i){return null},getElementsByTagName:function(i){return i=i.toLowerCase(),[]},getElementsByTagNameNS:function(i,r){return this.getElementsByTagName(r)},getElementsByName:function(i){return[]},querySelector:function(i){return null},querySelectorAll:function(i){return[]},addEventListener:function(i,r,n){_e[i]||(_e[i]=[]),_e[i].push(r)},removeEventListener:function(i,r){var n=_e[i];if(n&&n.length>0){for(var a=n.length;a--;a>0)if(n[a]===r){n.splice(a,1);break}}},dispatchEvent:function(i){var r=i.type,n=_e[r];if(n)for(var a=0;a-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")===-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")===-1,weixin:e.indexOf("MicroMessenger")>-1,qq:e.match(/\sQQ/i)===" qq"}}(),language:(pi.navigator.browserLanguage||pi.navigator.language).toLowerCase()};Li.versions.android?Bn="android":Li.versions.trident?Bn="IE":Li.versions.presto?Bn="Opera":Li.versions.webKit?Bn="webKit":Li.versions.gecko?Bn="Firefox":Li.versions.mobile?Bn="mobile":Li.versions.ios?Bn="ios":Li.versions.iPhone?Bn="iPhone":Li.versions.iPad?Bn="ipad":Li.versions.webApp?Bn="webApp":Li.versions.weixin?Bn="weixin":Li.versions.qq&&(Bn="qq"),In=pi.navigator.userAgent,Qn=Li.language}var ba=In.toLowerCase().indexOf("android")!==-1,Gi=ba?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",As="Mozilla/5.0 (".concat(Gi,") AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/").concat(Qn),Eu={platform:Bn,language:Qn,appVersion:"5.0 (".concat(Gi,") AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"),userAgent:As},fl={mark:function(i){return null},clearMeasures:function(i){return null},clearMarks:function(i){return null},measure:function(i,r,n){return{duration:0}},now:function(){}},Rc=0,tl=0;function Lc(e){var i=Date.now(),r=Math.max(Rc+23,i);return tl=setTimeout(function(){e(Rc=r)},r-i),tl}function Bu(e){var i=Cs();return i.requestAnimationFrame?i.requestAnimationFrame(e):Lc(e)}function Nu(e){var i=Cs();return i.cancelAnimationFrame?i.cancelAnimationFrame(e):clearTimeout(e)}var zu=function(){function e(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,ht.Z)(this,e),(0,A.Z)(this,"href",void 0),i.indexOf("http://")==0||i.indexOf("https://")==0){this.href=i;return}this.href=r+i}return(0,Pt.Z)(e,null,[{key:"createObjectURL",value:function(r){var n=r.buffers[0],a=r.type,s=uo(n),f="data:".concat(a,";base64, ");return f+s}}]),e}();function uo(e){for(var i="",r=new Uint8Array(e),n=r.byteLength,a=0;a1&&arguments[1]!==void 0?arguments[1]:{target:this};typeof this["on".concat(e)]=="function"&&this["on".concat(e)].call(this,i)}function nc(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{readyState:e};this.readyState=e,ya.call(this,"readystatechange",i)}var Js=function(e){(0,Ir.Z)(r,e);var i=ws(r);function r(){var n;return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"onabort",void 0),(0,A.Z)((0,ne.Z)(n),"onerror",void 0),(0,A.Z)((0,ne.Z)(n),"onload",void 0),(0,A.Z)((0,ne.Z)(n),"onloadstart",void 0),(0,A.Z)((0,ne.Z)(n),"onprogress",void 0),(0,A.Z)((0,ne.Z)(n),"ontimeout",void 0),(0,A.Z)((0,ne.Z)(n),"onloadend",void 0),(0,A.Z)((0,ne.Z)(n),"onreadystatechange",void 0),(0,A.Z)((0,ne.Z)(n),"readyState",void 0),(0,A.Z)((0,ne.Z)(n),"response",void 0),(0,A.Z)((0,ne.Z)(n),"responseText",void 0),(0,A.Z)((0,ne.Z)(n),"_responseType",void 0),(0,A.Z)((0,ne.Z)(n),"responseXML",void 0),(0,A.Z)((0,ne.Z)(n),"status",void 0),(0,A.Z)((0,ne.Z)(n),"statusText",void 0),(0,A.Z)((0,ne.Z)(n),"upload",void 0),(0,A.Z)((0,ne.Z)(n),"withCredentials",void 0),(0,A.Z)((0,ne.Z)(n),"timeout",void 0),(0,A.Z)((0,ne.Z)(n),"_url",void 0),(0,A.Z)((0,ne.Z)(n),"_method",void 0),n.onabort=null,n.onerror=null,n.onload=null,n.onloadstart=null,n.onprogress=null,n.ontimeout=null,n.onloadend=null,n.onreadystatechange=null,n.readyState=0,n.response=null,n.responseText=null,n._responseType="text",n.responseXML=null,n.status=0,n.statusText="",n.upload={},n.withCredentials=!1,su.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),n}return(0,Pt.Z)(r,[{key:"responseType",set:function(a){this._responseType=a}},{key:"abort",value:function(){var a=uf.get("requestTask");a&&a.abort()}},{key:"getAllResponseHeaders",value:function(){var a=Hs.get("responseHeader");return Object.keys(a).map(function(s){return"".concat(s,": ").concat(a[s])}).join(` -`)}},{key:"getResponseHeader",value:function(a){return Hs.get("responseHeader")[a]}},{key:"open",value:function(a,s,f){this._method=a,this._url=s}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:""}},{key:"setRequestHeader",value:function(a,s){var f=su.get("requestHeader");f[a]=s,su.set("requestHeader",f)}},{key:"addEventListener",value:function(a,s){var f=this;typeof s=="function"&&(this["on"+a]=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v.target=v.target||f,s.call(f,v)})}},{key:"removeEventListener",value:function(a,s){this["on"+a]===s&&(this["on"+a]=null)}}]),r}(Qi);(0,A.Z)(Js,"UNSEND",void 0),(0,A.Z)(Js,"OPENED",void 0),(0,A.Z)(Js,"HEADERS_RECEIVED",void 0),(0,A.Z)(Js,"LOADING",void 0),(0,A.Z)(Js,"DONE",void 0),Js.UNSEND=0,Js.OPENED=1,Js.HEADERS_RECEIVED=2,Js.LOADING=3,Js.DONE=4;function hl(e){var i=zf();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function zf(){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(e){return!1}}var ep=function(e){(0,Ir.Z)(r,e);var i=hl(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"touches",void 0),(0,A.Z)((0,ne.Z)(a),"targetTouches",void 0),(0,A.Z)((0,ne.Z)(a),"changedTouches",void 0),a.touches=[],a.targetTouches=[],a.changedTouches=[],a.target=Cs(),a.currentTarget=Cs(),a}return(0,Pt.Z)(r)}(bo);function lf(e){var i=e||{},r=i.x,n=r===void 0?0:r,a=i.y,s=a===void 0?0:a,f=i.clientX,v=f===void 0?0:f,g=i.clientY,x=g===void 0?0:g;Object.keys(e).indexOf("x")!==-1?(e.pageX=e.clientX=n,e.pageY=e.clientY=s):(e.x=v,e.y=x)}function ic(e){return function(i){var r=new ep(e);r.changedTouches=i.changedTouches,r.touches=i.touches,r.targetTouches=Array.prototype.slice.call(i.touches),r.timeStamp=i.timeStamp,r.changedTouches.forEach(function(n){return lf(n)}),r.touches.forEach(function(n){return lf(n)}),r.targetTouches.forEach(function(n){return lf(n)}),je.dispatchEvent(r)}}function ac(e){return function(i){i.type=e,je.dispatchEvent(i)}}var oc=ic("touchstart"),sc=ic("touchmove"),uc=ic("touchend"),Rl=ac("mapCameaParams");function Ll(e){var i=pl();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function pl(){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(e){return!1}}var eu=function(e){(0,Ir.Z)(r,e);var i=Ll(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"buttons",void 0),(0,A.Z)((0,ne.Z)(a),"which",void 0),(0,A.Z)((0,ne.Z)(a),"pointerId",void 0),(0,A.Z)((0,ne.Z)(a),"bubbles",void 0),(0,A.Z)((0,ne.Z)(a),"button",void 0),(0,A.Z)((0,ne.Z)(a),"width",void 0),(0,A.Z)((0,ne.Z)(a),"height",void 0),(0,A.Z)((0,ne.Z)(a),"pressure",void 0),(0,A.Z)((0,ne.Z)(a),"isPrimary",void 0),(0,A.Z)((0,ne.Z)(a),"pointerType",void 0),(0,A.Z)((0,ne.Z)(a),"altKey",void 0),(0,A.Z)((0,ne.Z)(a),"ctrlKey",void 0),(0,A.Z)((0,ne.Z)(a),"metaKey",void 0),(0,A.Z)((0,ne.Z)(a),"shiftKey",void 0),a.target=Cs(),a.currentTarget=Cs(),a}return(0,Pt.Z)(r)}(bo),kc=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],cf=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0],Uf="touch";function dl(e,i,r){for(var n=new eu(e),a=0;a2&&arguments[2]!==void 0?arguments[2]:{};je.addEventListener(i,r,n)},removeEventListener:function(i,r,n){je.removeEventListener(i,r)},dispatchEvent:function(i){je.dispatchEvent(i)},innerWidth:qe.availWidth,innerHeight:qe.availHeight,setTimeout,clearTimeout,setInterval,clearInterval},kn=ts?Uu:pi,Ma=ts?Js:pi.XMLHttpRequest,Ws=ts?_:pi.location;function Bc(e){var i=e;return typeof e=="string"&&(i=kn.document.getElementById(e)),i}function Zu(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nc(e){return Zu(e).split(/\s+/)}function rp(e){var i,r,n=kn==null||(i=kn.document)===null||i===void 0||(r=i.documentElement)===null||r===void 0?void 0:r.style;if(!n)return e[0];for(var a in e)if(e[a]&&e[a]in n)return e[a];return e[0]}function lo(e,i,r){var n=kn.document.createElement(e);return n.className=i||"",r&&r.appendChild(n),n}function ju(e){var i=e.parentNode;i&&i.removeChild(e)}function Su(e,i){if(e.classList!==void 0)for(var r=Nc(i),n=0,a=r.length;n0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(r)}function Fl(e,i){e instanceof HTMLElement?e.className=i:e.className.baseVal=i}function ml(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function ho(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var yn=rp(["transform","WebkitTransform"]);function qa(e,i){e.style[yn]=i}function nl(){if(typeof Event=="function")kn.dispatchEvent(new Event("resize"));else{var e=kn.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,kn,0),kn.dispatchEvent(e)}}function pc(e){var i=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log(`%c -`,i.join(""))}function uu(){var e,i=kn.document.querySelector('meta[name="viewport"]');if(!i)return 1;var r=(e=i.content)===null||e===void 0?void 0:e.split(","),n=r.find(function(a){var s=a.split("="),f=(0,on.Z)(s,2),v=f[0],g=f[1];return v==="initial-scale"});return n?n.split("=")[1]*1:1}var na=uu()<1?1:kn.devicePixelRatio;function hf(e){if(e.length===0)throw new Error("max requires at least one data point");for(var i=e[0],r=1;ri&&(i=e[r]);return i*1}function Kr(e){if(e.length===0)throw new Error("min requires at least one data point");for(var i=e[0],r=1;rn&&(n=a,r=i),a=1,i=e[s]):a++;return r*1}var Ea={min:Kr,max:hf,mean:pf,sum:zc,mode:gl};function ms(e,i){return e.map(function(r){return r[i]})}function Uc(e,i){return Ea[e](i)}var Cu=U(14665);function ks(e){return Function.toString.call(e).indexOf("[native code]")!==-1}var Vu=U(51814);function Zc(e,i,r){return(0,Vu.Z)()?Zc=Reflect.construct.bind():Zc=function(a,s,f){var v=[null];v.push.apply(v,s);var g=Function.bind.apply(a,v),x=new g;return f&&(0,Cu.Z)(x,f.prototype),x},Zc.apply(null,arguments)}function Bl(e){var i=typeof Map=="function"?new Map:void 0;return Bl=function(n){if(n===null||!ks(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(n))return i.get(n);i.set(n,a)}function a(){return Zc(n,arguments,(0,Mt.Z)(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),(0,Cu.Z)(a,n)},Bl(e)}function Gf(e){var i=Hf();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Hf(){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(e){return!1}}var Ds=function(e){(0,Ir.Z)(r,e);var i=Gf(r);function r(n,a,s){var f;return(0,ht.Z)(this,r),f=i.call(this,n),(0,A.Z)((0,ne.Z)(f),"status",void 0),(0,A.Z)((0,ne.Z)(f),"url",void 0),f.status=a,f.url=s,f.name=f.constructor.name,f.message=n,f}return(0,Pt.Z)(r,[{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.message," (").concat(this.status,"): ").concat(this.url)}}]),r}(Bl(Error));function Fs(e){var i=new Ma;i.open("GET",e.url,!0);for(var r in e.headers)e.headers.hasOwnProperty(r)&&i.setRequestHeader(r,e.headers[r]);return i.withCredentials=e.credentials==="include",i}var Fi=function(i,r){var n=Fs(i);return n.setRequestHeader("Accept","application/json"),n.onerror=function(){r(new Error(n.statusText))},n.onload=function(){if(n.status>=200&&n.status<300&&n.response){var a;try{a=JSON.parse(n.response)}catch(s){return r(s)}r(null,a)}else n.status===401?r(new Ds("".concat(n.statusText),n.status,i.url)):r(new Ds(n.statusText,n.status,i.url))},n.send(),n},Au=function(i,r){var n=Fs(i);return n.responseType="arraybuffer",n.onerror=function(){r(new Error(n.statusText))},n.onload=function(){var a=n.response;if(a.byteLength===0&&n.status===200)return r(new Error("http status 200 returned without content."));n.status>=200&&n.status<300&&n.response?r(null,{data:a,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")}):r(new Ds(n.statusText,n.status,i.url))},n.send(),n};function wu(e){var i=$window.document.createElement("a");return i.href=e,i.protocol===$window.document.location.protocol&&i.host===$window.document.location.host}var rs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",Gu=function(i,r){return Au(i,function(n,a){if(n)r(n);else if(a){var s=new kn.Image;s.crossOrigin="anonymous";var f=kn.URL||kn.webkitURL;s.onload=function(){r(null,s),f.revokeObjectURL(s.src),s.onload=null},s.onerror=function(){return r(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 v=new kn.Blob([new Uint8Array(a.data)],{type:"image/png"});s.src=a.data.byteLength?f.createObjectURL(v):rs}})},Tu=2*Math.PI*6378137/2;function Xs(e){var i=[Infinity,Infinity,-Infinity,-Infinity];return e.forEach(function(r){var n=r.coordinates;gs(i,n)}),i}function gs(e,i){return Array.isArray(i[0])?i.forEach(function(r){gs(e,r)}):(e[0]>i[0]&&(e[0]=i[0]),e[1]>i[1]&&(e[1]=i[1]),e[2]1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};e=ns(e,i);var n=e[0],a=e[1],s=n*Tu/180,f=Math.log(Math.tan((90+a)*Math.PI/360))/(Math.PI/180);return f=f*Tu/180,r.enable&&(s=Number(s.toFixed(r.decimal)),f=Number(f.toFixed(r.decimal))),e.length===3?[s,f,e[2]]:[s,f]}function df(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,r=e[0],n=e[1],a=r/Tu*180,s=n/Tu*180;return s=180/Math.PI*(2*Math.atan(Math.exp(s*Math.PI/180))-Math.PI/2),i!=null&&(a=Number(a.toFixed(i)),s=Number(s.toFixed(i))),e.length===3?[a,s,e[2]]:[a,s]}function ys(e){if(e==null)throw new Error("lng is required");return(e>180||e<-180)&&(e=e%360,e>180&&(e=-360+e),e<-180&&(e=360+e),e===0&&(e=0)),e}function lu(e){if(e==null)throw new Error("lat is required");return(e>90||e<-90)&&(e=e%180,e>90&&(e=-180+e),e<-90&&(e=180+e),e===0&&(e=0)),e}function ns(e,i){if(i===!1)return e;var r=ys(e[0]),n=lu(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[r,n,e[2]]:[r,n]}function Go(e){var i=85.0511287798,r=Math.max(Math.min(i,e[1]),-i),n=256<<20,a=Math.PI/180,s=e[0]*a,f=r*a;f=Math.log(Math.tan(Math.PI/4+f/2));var v=.5/Math.PI,g=.5,x=-.5/Math.PI;return a=.5,s=n*(v*s+g),f=n*(x*f+a),[Math.floor(s),Math.floor(f)]}function Wf(e){var i=.5/Math.PI,r=.5,n=-.5/Math.PI,a=.5,s=256<<20,f=_slicedToArray(e,2),v=f[0],g=f[1];v=(v/s-r)/i,g=(g/s-a)/n,g=(Math.atan(Math.pow(Math.E,g))-Math.PI/4)*2,a=Math.PI/180;var x=g/a,C=v/a;return[C,x]}function vf(e,i){var r=85.0511287798,n=Math.PI/180,a=6378137;return i=Math.max(Math.min(r,i),-r),e*=n,i*=n,i=Math.log(Math.tan(Math.PI/4+i/2)),[e*a,i*a]}function ha(e,i,r){var n=nr(i[1]-e[1]),a=nr(i[0]-e[0]),s=nr(e[1]),f=nr(i[1]),v=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(f);return me(2*Math.atan2(Math.sqrt(v),Math.sqrt(1-v)),r="meters")}function Na(e){var i=Math.PI/180,r=85.0511287798,n=6378137,a=Math.max(Math.min(r,e[1]),-r),s=Math.sin(a*i),f=n*e[0]*i,v=n*Math.log((1+s)/(1-s))/2;return[f,v]}function dc(e,i){var r=Math.abs(e[1][1]-e[0][1])*i,n=Math.abs(e[1][0]-e[0][0])*i;return[[e[0][0]-n,e[0][1]-r],[e[1][0]+n,e[1][1]+r]]}function yl(e,i){return e[0][0]<=i[0][0]&&e[0][1]<=i[0][1]&&e[1][0]>=i[1][0]&&e[1][1]>=i[1][1]}function Pu(e){return[[e[0],e[1]],[e[2],e[3]]]}function cu(e){var i=Fo(e,[0,0]);return[e[0]/i,e[1]/i]}function Fo(e,i){return Math.sqrt(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2))}function il(e,i){return e[0]*i[0]+e[1]*i[1]}function fu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function mf(e,i){return Math.acos(il(e,i)/(fu(e)*fu(i)))*180/Math.PI}function Nl(e,i){return i[0]>0?i[1]>0?90-Math.atan(i[1]/i[0])*180/Math.PI:90+Math.atan(-i[1]/i[0])*180/Math.PI:i[1]<0?180+(90-Math.atan(i[1]/i[0])*180/Math.PI):270+Math.atan(i[1]/-i[0])*180/Math.PI}function jc(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!e||e.length<2)){for(var r=[0,1],n=0,a=[],s=0;s0){var T=a[s-1].rotation;T-C>360-T+C&&(C=C+360)}a.push({start:f,end:v,dis:g,rotation:C,duration:0})}return a.map(function(O){O.duration=i*(O.dis/n)}),a}}var gf=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,r=arguments.length>1?arguments[1]:void 0;(0,ht.Z)(this,e),(0,A.Z)(this,"limit",void 0),(0,A.Z)(this,"cache",void 0),(0,A.Z)(this,"destroy",void 0),(0,A.Z)(this,"order",void 0),this.limit=i,this.destroy=r||this.defaultDestroy,this.order=[],this.clear()}return(0,Pt.Z)(e,[{key:"clear",value:function(){var r=this;this.order.forEach(function(n){r.delete(n)}),this.cache={},this.order=[]}},{key:"get",value:function(r){var n=this.cache[r];return n&&(this.deleteOrder(r),this.appendOrder(r)),n}},{key:"set",value:function(r,n){this.cache[r]?(this.delete(r),this.cache[r]=n,this.appendOrder(r)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[r]=n,this.appendOrder(r))}},{key:"delete",value:function(r){var n=this.cache[r];n&&(this.deleteCache(r),this.deleteOrder(r),this.destroy(n,r))}},{key:"deleteCache",value:function(r){delete this.cache[r]}},{key:"deleteOrder",value:function(r){var n=this.order.findIndex(function(a){return a===r});n>=0&&this.order.splice(n,1)}},{key:"appendOrder",value:function(r){this.order.push(r)}},{key:"defaultDestroy",value:function(r,n){return null}}]),e}();function Iu(e,i){e.forEach(function(r){!i[r]||(i[r]=i[r].bind(i))})}var vc=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,ht.Z)(this,e),(0,A.Z)(this,"duration",16),(0,A.Z)(this,"timestamp",new Date().getTime()),this.duration=i}return(0,Pt.Z)(e,[{key:"run",value:function(r){var n=new Date().getTime(),a=n-this.timestamp;this.timestamp=n,a>=this.duration&&r()}}]),e}(),Vc=U(2650);function al(e){return typeof e=="string"?!!Vc.ZP(e):!1}function Ji(e){var i=Vc.ZP(e),r=[0,0,0,0];return i!=null&&(r[0]=i.r/255,r[1]=i.g/255,r[2]=i.b/255,r[3]=i.opacity),r}function ol(e){var i=e&&e[0],r=e&&e[1],n=e&&e[2],a=i+r*256+n*65536-1;return a}function hu(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function Ts(e){var i=kn.document.createElement("canvas"),r=i.getContext("2d");i.width=256,i.height=1;for(var n=r.createLinearGradient(0,0,256,1),a=null,s=e.positions[0],f=e.positions[e.positions.length-1],v=0;va&&(T=a);for(var O=(0,on.Z)(r,4),k=O[0],j=O[1],X=O[2],te=O[3],be=[Math.max(k,C[0]),Math.max(j,C[1]),Math.min(X,C[2]),Math.min(te,C[3])],Ne=[],$e=dr(be[0],be[1],T),ot=(0,on.Z)($e,2),bt=ot[0],_t=ot[1],qt=dr(be[2],be[3],T),ar=(0,on.Z)(qt,2),Pr=ar[0],qr=ar[1],gr=bt;gr<=Pr;gr++)for(var un=qr;un<=_t;un++)Ne.push({x:gr,y:un,z:T});return Ne}var Nn=function(i,r,n){var a=Math.pow(2,n),s=a-1,f=a,v=i,g=r;return v<0?v=v+f:v>s&&(v=v%f),{warpX:v,warpY:g}},zn=function(){function e(i){(0,ht.Z)(this,e),(0,A.Z)(this,"x",void 0),(0,A.Z)(this,"y",void 0),(0,A.Z)(this,"z",void 0),(0,A.Z)(this,"tileSize",256),(0,A.Z)(this,"isVisible",!1),(0,A.Z)(this,"isCurrent",!1),(0,A.Z)(this,"layer",null),(0,A.Z)(this,"layers",[]),(0,A.Z)(this,"parent",null),(0,A.Z)(this,"children",[]),(0,A.Z)(this,"data",null),(0,A.Z)(this,"properties",{}),(0,A.Z)(this,"loadStatus",void 0),(0,A.Z)(this,"abortController",void 0),(0,A.Z)(this,"loadDataId",0);var r=i.x,n=i.y,a=i.z,s=i.tileSize;this.x=r,this.y=n,this.z=a,this.tileSize=s}return(0,Pt.Z)(e,[{key:"isLoading",get:function(){return this.loadStatus===w.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===w.Loaded}},{key:"isCancelled",get:function(){return this.loadStatus===w.Cancelled}},{key:"isDone",get:function(){return[w.Loaded,w.Cancelled,w.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return kr(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var r=(0,on.Z)(this.bounds,4),n=r[0],a=r[1],s=r[2],f=r[3],v=[(s-n)/2,(f-a)/2],g=q(this.bounds,{properties:{key:this.key,bbox:this.bounds,center:v,meta:` - `.concat(this.key,` - `)}});return g}},{key:"key",get:function(){var r="".concat(this.x,",").concat(this.y,",").concat(this.z);return r}},{key:"loadData",value:function(){var i=(0,P.Z)(N().mark(function n(a){var s,f,v,g,x,C,T,O,k,j,X,te,be,Ne,$e,ot;return N().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return s=a.getData,f=a.onLoad,v=a.onError,this.loadDataId++,g=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=w.Loading,x=null,_t.prev=7,T=this.x,O=this.y,k=this.z,j=this.bounds,X=this.tileSize,te=Nn(T,O,k),be=te.warpX,Ne=te.warpY,$e=this.abortController.signal,ot={x:be,y:Ne,z:k,bounds:j,tileSize:X,signal:$e},_t.next=14,s(ot);case 14:x=_t.sent,_t.next=20;break;case 17:_t.prev=17,_t.t0=_t.catch(7),C=_t.t0;case 20:if(g===this.loadDataId){_t.next=22;break}return _t.abrupt("return");case 22:if(!(this.isCancelled&&!x)){_t.next=24;break}return _t.abrupt("return");case 24:if(!(C||!x)){_t.next=28;break}return this.loadStatus=w.Failure,v(C,this),_t.abrupt("return");case 28:this.loadStatus=w.Loaded,this.data=x,f(this);case 31:case"end":return _t.stop()}},n,this,[[7,17]])}));function r(n){return i.apply(this,arguments)}return r}()},{key:"reloadData",value:function(r){this.isLoading&&this.abortLoad(),this.loadData(r)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=w.Cancelled,this.abortController.abort())}}]),e}(),Mn=U(26729),Bi=U.n(Mn);function Qr(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=li(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function li(e,i){if(!!e){if(typeof e=="string")return fi(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fi(e,i)}}function fi(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);ra;if(s){var f=Qr(this.cacheTiles),v;try{for(f.s();!(v=f.n()).done;){var g=(0,on.Z)(v.value,2),x=g[0],C=g[1];if(!C.isVisible&&!this.currentTiles.includes(C)&&(this.cacheTiles.delete(x),this.onTileUnload(C)),this.cacheTiles.size<=a)break}}catch(T){f.e(T)}finally{f.f()}}}},{key:"rebuildTileTree",value:function(){var a=Qr(this.cacheTiles.values()),s;try{for(a.s();!(s=a.n()).done;){var f=s.value;f.parent=null,f.children.length=0}}catch(T){a.e(T)}finally{a.f()}var v=Qr(this.cacheTiles.values()),g;try{for(v.s();!(g=v.n()).done;){var x=g.value,C=this.getNearestAncestor(x.x,x.y,x.z);x.parent=C,C!=null&&C.children&&C.children.push(x)}}catch(T){v.e(T)}finally{v.f()}}},{key:"getNearestAncestor",value:function(a,s,f){for(;f>this.options.minZoom;){a=Math.floor(a/2),s=Math.floor(s/2),f=f-1;var v=this.getTile(a,s,f);if(v)return v}return null}}]),r}(Bi());function po(e,i){var r=i.extent,n=r===void 0?[121.168,30.2828,121.384,30.4219]:r,a=new Promise(function(f){e instanceof HTMLImageElement?f([e]):Ka(e,function(v){f(v)})}),s={originData:e,images:a,_id:1,dataArray:[{_id:0,coordinates:[[n[0],n[1]],[n[2],n[3]]]}]};return s}function Ka(e,i){var r=e,n=[];if(typeof r=="string")Gu({url:r},function(f,v){n.push(v),i(n)});else{var a=r.length,s=0;r.forEach(function(f){Gu({url:f},function(v,g){s++,n.push(g),s===a&&i(n)})})}return po}function Ho(e,i){var r=i.extent,n=i.width,a=i.height,s=i.min,f=i.max,v={_id:1,dataArray:[{_id:1,data:Array.from(e),width:n,height:a,min:s,max:f,coordinates:[[r[0],r[1]],[r[2],r[3]]]}]};return v}function Bo(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var i=1;i0&&s[s.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!s||x[1]>s[0]&&x[1]0)&&!(a=n.next()).done;)s.push(a.value)}catch(v){f={error:v}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(f)throw f.error}}return s}function So(){for(var e=[],i=0;i=0&&n.length%1==0}e.exports=i.default});ka(mu);var ta=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(r){return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var s=n.pop();return r.call(this,n,s)}},e.exports=i.default});ka(ta);var is=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.fallback=a,i.wrap=s;var r=i.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,n=i.hasNextTick=typeof xl=="object"&&typeof xl.nextTick=="function";function a(v){setTimeout(v,0)}function s(v){return function(g){for(var x=[],C=arguments.length-1;C-- >0;)x[C]=arguments[C+1];return v(function(){return g.apply(void 0,x)})}}var f;r?f=setImmediate:n?f=xl.nextTick:f=a,i.default=s(f)});ka(is);var Ms=is.fallback,bl=is.wrap,_f=is.hasSetImmediate,xf=is.hasNextTick,Gc=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=s;var r=a(ta),n=a(is);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return(0,mo.isAsync)(g)?function(){for(var x=[],C=arguments.length;C--;)x[C]=arguments[C];var T=x.pop(),O=g.apply(this,x);return f(O,T)}:(0,r.default)(function(x,C){var T;try{T=g.apply(this,x)}catch(O){return C(O)}if(T&&typeof T.then=="function")return f(T,C);C(null,T)})}function f(g,x){return g.then(function(C){v(x,null,C)},function(C){v(x,C&&C.message?C:new Error(C))})}function v(g,x,C){try{g(x,C)}catch(T){(0,n.default)(function(O){throw O},T)}}e.exports=i.default});ka(Gc);var mo=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isAsyncIterable=i.isAsyncGenerator=i.isAsync=void 0;var r=n(Gc);function n(g){return g&&g.__esModule?g:{default:g}}function a(g){return g[Symbol.toStringTag]==="AsyncFunction"}function s(g){return g[Symbol.toStringTag]==="AsyncGenerator"}function f(g){return typeof g[Symbol.asyncIterator]=="function"}function v(g){if(typeof g!="function")throw new Error("expected a function");return a(g)?(0,r.default)(g):g}i.default=v,i.isAsync=a,i.isAsyncGenerator=s,i.isAsyncIterable=f});ka(mo);var Hc=mo.isAsyncIterable,Ru=mo.isAsyncGenerator,Zl=mo.isAsync,Xu=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;function r(n,a){if(a===void 0&&(a=n.length),!a)throw new Error("arity is undefined");function s(){for(var f=this,v=[],g=arguments.length;g--;)v[g]=arguments[g];return typeof v[a-1]=="function"?n.apply(this,v):new Promise(function(x,C){v[a-1]=function(T){for(var O=[],k=arguments.length-1;k-- >0;)O[k]=arguments[k+1];if(T)return C(T);x(O.length>1?O:O[0])},n.apply(f,v)})}return Object.defineProperty(s,"name",{configurable:!0,value:"awaitable("+n.name+")"}),s}e.exports=i.default});ka(Xu);var nu=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=s(mu),n=s(mo),a=s(Xu);function s(f){return f&&f.__esModule?f:{default:f}}i.default=(0,a.default)(function(f,v,g){var x=(0,r.default)(v)?[]:{};f(v,function(C,T,O){(0,n.default)(C)(function(k){for(var j,X=[],te=arguments.length-1;te-- >0;)X[te]=arguments[te+1];X.length<2&&(j=X,X=j[0]),x[T]=X,O(k)})},function(C){return g(C,x)})},3),e.exports=i.default});ka(nu);var go=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;function r(n){function a(){for(var s=[],f=arguments.length;f--;)s[f]=arguments[f];if(n!==null){var v=n;n=null,v.apply(this,s)}}return Object.assign(a,n),a}e.exports=i.default});ka(go);var gc=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},e.exports=i.default});ka(gc);var bf=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=g;var r=a(mu),n=a(gc);function a(x){return x&&x.__esModule?x:{default:x}}function s(x){var C=-1,T=x.length;return function(){return++C=f||T||x||(T=!0,s.next().then(function(be){var Ne=be.value,$e=be.done;if(!(C||x)){if(T=!1,$e){x=!0,O<=0&&g(null);return}O++,v(Ne,k,X),k++,j()}}).catch(te))}function X(be,Ne){if(O-=1,!C){if(be)return te(be);if(be===!1){x=!0,C=!0;return}if(Ne===r.default||x&&O<=0)return x=!0,g(null);j()}}function te(be){C||(T=!1,x=!0,g(be))}j()}e.exports=i.default});ka(Sh);var Ch=Ua(function(e,i){Object.defineProperty(i,"__esModule",{value:!0});var r=v(go),n=v(bf),a=v(Wc),s=v(Sh),f=v(yc);function v(g){return g&&g.__esModule?g:{default:g}}i.default=function(g){return function(x,C,T){if(T=(0,r.default)(T),g<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!x)return T(null);if((0,mo.isAsyncGenerator)(x))return(0,s.default)(x,g,C,T);if((0,mo.isAsyncIterable)(x))return(0,s.default)(x[Symbol.asyncIterator](),g,C,T);var O=(0,n.default)(x),k=!1,j=!1,X=0,te=!1;function be($e,ot){if(!j)if(X-=1,$e)k=!0,T($e);else if($e===!1)k=!0,j=!0;else{if(ot===f.default||k&&X<=0)return k=!0,T(null);te||Ne()}}function Ne(){for(te=!0;X0;)j[X]=arguments[X+1];if(k!==!1){if(k||C===g.length)return x.apply(void 0,[k].concat(j));T(j)}}T([])}i.default=(0,s.default)(v),e.exports=i.default}),Md=ka(ip),Pd=function(){function e(){for(var i=arguments,r=[],n=0;ni&&(i=e[r]);return i}function Mh(e){if(e.length===0)throw new Error("min requires at least one data point");for(var i=e[0],r=1;r=Math.abs(e[a])?r+=i-n+e[a]:r+=e[a]-n+i,i=n;return i+r*1}function Yf(e){if(e.length===0)throw new Error("mean requires at least one data point");return Xf(e)/e.length}var Ph={min:Mh,max:jp,mean:Yf,sum:Xf};function qf(e,i){return e.map(function(r){return r[i]*1})}function jl(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sl(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function Sf(e,i){if(!!e){if(typeof e=="string")return Kc(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kc(e,i)}}function Kc(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rn?a:n)}}catch($e){s.e($e)}finally{s.f()}var g=(r+n)/2,x=th(i,g);if(x.xOffset<=0||x.yOffset<=0)return{gridHash:{},gridOffset:x};var C={},T=Qf(e),O;try{for(T.s();!(O=T.n()).done;){var k=O.value,j=k.coordinates[1],X=k.coordinates[0];if(Number.isFinite(j)&&Number.isFinite(X)){var te=Math.floor((j+90)/x.yOffset),be=Math.floor((X+180)/x.xOffset),Ne="".concat(te,"-").concat(be);C[Ne]=C[Ne]||{count:0,points:[]},C[Ne].count+=1,C[Ne].points.push(k)}}}catch($e){T.e($e)}finally{T.f()}return{gridHash:C,gridOffset:x}}function th(e,i){var r=rh(e),n=Rh(i,e);return{yOffset:r,xOffset:n}}function rh(e){return e/Ns*(180/Math.PI)}function Rh(e,i){return i/Ns*(180/Math.PI)/Math.cos(e*Math.PI/180)}function Cl(e,i,r){return Object.keys(e).reduce(function(n,a,s){var f=a.split("-"),v=parseInt(f[0],10),g=parseInt(f[1],10),x={};if(r.field&&r.method){var C=ms(e[a].points,r.field);x[r.method]=Ea[r.method](C)}return Object.assign(x,{_id:s,coordinates:Go([-180+i.xOffset*(g+.5),-90+i.yOffset*(v+.5)]),rawData:e[a].points,count:e[a].count}),n.push(x),n},[])}var Yu=Math.PI/3,Vp=[0,Yu,2*Yu,3*Yu,4*Yu,5*Yu];function Lh(e){return e[0]}function Gp(e){return e[1]}function Id(){var e=0,i=0,r=1,n=1,a=Lh,s=Gp,f,v,g;function x(T){var O={},k=[],j,X=T.length;for(j=0;j1){var _t=be-ot,qt=ot+(bePr*Pr+qr*qr&&(ot=qt+($e&1?1:-1)/2,$e=ar)}var gr=ot+"-"+$e,un=O[gr];un?un.push(te):(k.push(un=O[gr]=[te]),un.x=(ot+($e&1)/2)*v,un.y=$e*g)}return k}function C(T){var O=0,k=0;return Vp.map(function(j){var X=Math.sin(j)*T,te=-Math.cos(j)*T,be=X-O,Ne=te-k;return O=X,k=te,[be,Ne]})}return x.hexagon=function(T){return"m"+C(T==null?f:+T).join("l")+"z"},x.centers=function(){for(var T=[],O=Math.round(i/g),k=Math.round(e/v),j=O*g;j"),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")},sp=U(31745),va=U.n(sp);function Gl(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ao(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function Yp(e,i){if(!!e){if(typeof e=="string")return up(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return up(e,i)}}function up(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rs&&(k=0,O++),v[X]={x:k,y:T+O*nh,width:nh,height:nh,advance:be},k+=nh}});var j=n+a*2;return{mapping:v,xOffset:k,yOffset:T+O*j,canvasHeight:qp(T+(O+1)*j)}}function Ld(e,i,r){var n=0,a=0,s=0,f=[],v={},g=Ys(e),x;try{for(g.s();!(x=g.n()).done;){var C=x.value;if(!v[C.id]){var T=C.size;n+T+i>r&&(Dh(v,f,a),n=0,a=s+a+i,s=0,f=[]),f.push({icon:C,xOffset:n}),n=n+T+i,s=Math.max(s,T)}}}catch(k){g.e(k)}finally{g.f()}f.length>0&&Dh(v,f,a);var O=qp(s+a+i);return{mapping:v,canvasHeight:O}}function Dh(e,i,r){var n=Ys(i),a;try{for(n.s();!(a=n.n()).done;){var s=a.value,f=s.icon,v=s.xOffset;e[f.id]=Ao(Ao({},f),{},{x:v,y:r,image:f.image,width:f.width,height:f.height})}}catch(g){n.e(g)}finally{n.f()}}function qp(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Kp,Af;function lp(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=$p(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function $p(e,i){if(!!e){if(typeof e=="string")return wf(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wf(e,i)}}function wf(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0?(r[0]=(v*f+C*n+g*s-x*a)*2/T,r[1]=(g*f+C*a+x*n-v*s)*2/T,r[2]=(x*f+C*s+v*a-g*n)*2/T):(r[0]=(v*f+C*n+g*s-x*a)*2,r[1]=(g*f+C*a+x*n-v*s)*2,r[2]=(x*f+C*s+v*a-g*n)*2),Wo(e,i,r),e}function bs(e,i){return e[0]=i[12],e[1]=i[13],e[2]=i[14],e}function io(e,i){var r=i[0],n=i[1],a=i[2],s=i[4],f=i[5],v=i[6],g=i[8],x=i[9],C=i[10];return e[0]=Math.hypot(r,n,a),e[1]=Math.hypot(s,f,v),e[2]=Math.hypot(g,x,C),e}function Si(e,i){var r=new or.WT(3);io(r,i);var n=1/r[0],a=1/r[1],s=1/r[2],f=i[0]*n,v=i[1]*a,g=i[2]*s,x=i[4]*n,C=i[5]*a,T=i[6]*s,O=i[8]*n,k=i[9]*a,j=i[10]*s,X=f+C+j,te=0;return X>0?(te=Math.sqrt(X+1)*2,e[3]=.25*te,e[0]=(T-k)/te,e[1]=(O-g)/te,e[2]=(v-x)/te):f>C&&f>j?(te=Math.sqrt(1+f-C-j)*2,e[3]=(T-k)/te,e[0]=.25*te,e[1]=(v+x)/te,e[2]=(O+g)/te):C>j?(te=Math.sqrt(1+C-f-j)*2,e[3]=(O-g)/te,e[0]=(v+x)/te,e[1]=.25*te,e[2]=(T+k)/te):(te=Math.sqrt(1+j-f-C)*2,e[3]=(v-x)/te,e[0]=(O+g)/te,e[1]=(T+k)/te,e[2]=.25*te),e}function Yo(e,i,r,n){var a=i[0],s=i[1],f=i[2],v=i[3],g=a+a,x=s+s,C=f+f,T=a*g,O=a*x,k=a*C,j=s*x,X=s*C,te=f*C,be=v*g,Ne=v*x,$e=v*C,ot=n[0],bt=n[1],_t=n[2];return e[0]=(1-(j+te))*ot,e[1]=(O+$e)*ot,e[2]=(k-Ne)*ot,e[3]=0,e[4]=(O-$e)*bt,e[5]=(1-(T+te))*bt,e[6]=(X+be)*bt,e[7]=0,e[8]=(k+Ne)*_t,e[9]=(X-be)*_t,e[10]=(1-(T+j))*_t,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function ra(e,i,r,n,a){var s=i[0],f=i[1],v=i[2],g=i[3],x=s+s,C=f+f,T=v+v,O=s*x,k=s*C,j=s*T,X=f*C,te=f*T,be=v*T,Ne=g*x,$e=g*C,ot=g*T,bt=n[0],_t=n[1],qt=n[2],ar=a[0],Pr=a[1],qr=a[2],gr=(1-(X+be))*bt,un=(k+ot)*bt,Ln=(j-$e)*bt,Vn=(k-ot)*_t,Fa=(1-(O+be))*_t,Ro=(te+Ne)*_t,Ls=(j+$e)*qt,au=(te-Ne)*qt,Vs=(1-(O+X))*qt;return e[0]=gr,e[1]=un,e[2]=Ln,e[3]=0,e[4]=Vn,e[5]=Fa,e[6]=Ro,e[7]=0,e[8]=Ls,e[9]=au,e[10]=Vs,e[11]=0,e[12]=r[0]+ar-(gr*ar+Vn*Pr+Ls*qr),e[13]=r[1]+Pr-(un*ar+Fa*Pr+au*qr),e[14]=r[2]+qr-(Ln*ar+Ro*Pr+Vs*qr),e[15]=1,e}function us(e,i){var r=i[0],n=i[1],a=i[2],s=i[3],f=r+r,v=n+n,g=a+a,x=r*f,C=n*f,T=n*v,O=a*f,k=a*v,j=a*g,X=s*f,te=s*v,be=s*g;return e[0]=1-T-j,e[1]=C+be,e[2]=O-te,e[3]=0,e[4]=C-be,e[5]=1-x-j,e[6]=k+X,e[7]=0,e[8]=O+te,e[9]=k-X,e[10]=1-x-T,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function oi(e,i,r,n,a,s,f){var v=1/(r-i),g=1/(a-n),x=1/(s-f);return e[0]=s*2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*g,e[6]=0,e[7]=0,e[8]=(r+i)*v,e[9]=(a+n)*g,e[10]=(f+s)*x,e[11]=-1,e[12]=0,e[13]=0,e[14]=f*s*2*x,e[15]=0,e}function zi(e,i,r,n,a){var s=1/Math.tan(i/2),f;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==Infinity?(f=1/(n-a),e[10]=(a+n)*f,e[14]=2*a*n*f):(e[10]=-1,e[14]=-2*n),e}var ua=zi;function To(e,i,r,n,a){var s=1/Math.tan(i/2),f;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==Infinity?(f=1/(n-a),e[10]=a*f,e[14]=a*n*f):(e[10]=-1,e[14]=-n),e}function wl(e,i,r,n){var a=Math.tan(i.upDegrees*Math.PI/180),s=Math.tan(i.downDegrees*Math.PI/180),f=Math.tan(i.leftDegrees*Math.PI/180),v=Math.tan(i.rightDegrees*Math.PI/180),g=2/(f+v),x=2/(a+s);return e[0]=g,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=x,e[6]=0,e[7]=0,e[8]=-((f-v)*g*.5),e[9]=(a-s)*x*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}function Te(e,i,r,n,a,s,f){var v=1/(i-r),g=1/(n-a),x=1/(s-f);return e[0]=-2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*g,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*x,e[11]=0,e[12]=(i+r)*v,e[13]=(a+n)*g,e[14]=(f+s)*x,e[15]=1,e}var Ut=Te;function St(e,i,r,n,a,s,f){var v=1/(i-r),g=1/(n-a),x=1/(s-f);return e[0]=-2*v,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*g,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=x,e[11]=0,e[12]=(i+r)*v,e[13]=(a+n)*g,e[14]=s*x,e[15]=1,e}function mn(e,i,r,n){var a,s,f,v,g,x,C,T,O,k,j=i[0],X=i[1],te=i[2],be=n[0],Ne=n[1],$e=n[2],ot=r[0],bt=r[1],_t=r[2];return Math.abs(j-ot)0&&(k=1/Math.sqrt(k),C*=k,T*=k,O*=k);var j=g*O-x*T,X=x*C-v*O,te=v*T-g*C;return k=j*j+X*X+te*te,k>0&&(k=1/Math.sqrt(k),j*=k,X*=k,te*=k),e[0]=j,e[1]=X,e[2]=te,e[3]=0,e[4]=T*te-O*X,e[5]=O*j-C*te,e[6]=C*X-T*j,e[7]=0,e[8]=C,e[9]=T,e[10]=O,e[11]=0,e[12]=a,e[13]=s,e[14]=f,e[15]=1,e}function Se(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function ue(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Ge(e,i,r){return e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e[3]=i[3]+r[3],e[4]=i[4]+r[4],e[5]=i[5]+r[5],e[6]=i[6]+r[6],e[7]=i[7]+r[7],e[8]=i[8]+r[8],e[9]=i[9]+r[9],e[10]=i[10]+r[10],e[11]=i[11]+r[11],e[12]=i[12]+r[12],e[13]=i[13]+r[13],e[14]=i[14]+r[14],e[15]=i[15]+r[15],e}function lt(e,i,r){return e[0]=i[0]-r[0],e[1]=i[1]-r[1],e[2]=i[2]-r[2],e[3]=i[3]-r[3],e[4]=i[4]-r[4],e[5]=i[5]-r[5],e[6]=i[6]-r[6],e[7]=i[7]-r[7],e[8]=i[8]-r[8],e[9]=i[9]-r[9],e[10]=i[10]-r[10],e[11]=i[11]-r[11],e[12]=i[12]-r[12],e[13]=i[13]-r[13],e[14]=i[14]-r[14],e[15]=i[15]-r[15],e}function Lt(e,i,r){return e[0]=i[0]*r,e[1]=i[1]*r,e[2]=i[2]*r,e[3]=i[3]*r,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=i[7]*r,e[8]=i[8]*r,e[9]=i[9]*r,e[10]=i[10]*r,e[11]=i[11]*r,e[12]=i[12]*r,e[13]=i[13]*r,e[14]=i[14]*r,e[15]=i[15]*r,e}function Ke(e,i,r,n){return e[0]=i[0]+r[0]*n,e[1]=i[1]+r[1]*n,e[2]=i[2]+r[2]*n,e[3]=i[3]+r[3]*n,e[4]=i[4]+r[4]*n,e[5]=i[5]+r[5]*n,e[6]=i[6]+r[6]*n,e[7]=i[7]+r[7]*n,e[8]=i[8]+r[8]*n,e[9]=i[9]+r[9]*n,e[10]=i[10]+r[10]*n,e[11]=i[11]+r[11]*n,e[12]=i[12]+r[12]*n,e[13]=i[13]+r[13]*n,e[14]=i[14]+r[14]*n,e[15]=i[15]+r[15]*n,e}function Fe(e,i){return e[0]===i[0]&&e[1]===i[1]&&e[2]===i[2]&&e[3]===i[3]&&e[4]===i[4]&&e[5]===i[5]&&e[6]===i[6]&&e[7]===i[7]&&e[8]===i[8]&&e[9]===i[9]&&e[10]===i[10]&&e[11]===i[11]&&e[12]===i[12]&&e[13]===i[13]&&e[14]===i[14]&&e[15]===i[15]}function nt(e,i){var r=e[0],n=e[1],a=e[2],s=e[3],f=e[4],v=e[5],g=e[6],x=e[7],C=e[8],T=e[9],O=e[10],k=e[11],j=e[12],X=e[13],te=e[14],be=e[15],Ne=i[0],$e=i[1],ot=i[2],bt=i[3],_t=i[4],qt=i[5],ar=i[6],Pr=i[7],qr=i[8],gr=i[9],un=i[10],Ln=i[11],Vn=i[12],Fa=i[13],Ro=i[14],Ls=i[15];return Math.abs(r-Ne)<=or.Ib*Math.max(1,Math.abs(r),Math.abs(Ne))&&Math.abs(n-$e)<=or.Ib*Math.max(1,Math.abs(n),Math.abs($e))&&Math.abs(a-ot)<=or.Ib*Math.max(1,Math.abs(a),Math.abs(ot))&&Math.abs(s-bt)<=or.Ib*Math.max(1,Math.abs(s),Math.abs(bt))&&Math.abs(f-_t)<=or.Ib*Math.max(1,Math.abs(f),Math.abs(_t))&&Math.abs(v-qt)<=or.Ib*Math.max(1,Math.abs(v),Math.abs(qt))&&Math.abs(g-ar)<=or.Ib*Math.max(1,Math.abs(g),Math.abs(ar))&&Math.abs(x-Pr)<=or.Ib*Math.max(1,Math.abs(x),Math.abs(Pr))&&Math.abs(C-qr)<=or.Ib*Math.max(1,Math.abs(C),Math.abs(qr))&&Math.abs(T-gr)<=or.Ib*Math.max(1,Math.abs(T),Math.abs(gr))&&Math.abs(O-un)<=or.Ib*Math.max(1,Math.abs(O),Math.abs(un))&&Math.abs(k-Ln)<=or.Ib*Math.max(1,Math.abs(k),Math.abs(Ln))&&Math.abs(j-Vn)<=or.Ib*Math.max(1,Math.abs(j),Math.abs(Vn))&&Math.abs(X-Fa)<=or.Ib*Math.max(1,Math.abs(X),Math.abs(Fa))&&Math.abs(te-Ro)<=or.Ib*Math.max(1,Math.abs(te),Math.abs(Ro))&&Math.abs(be-Ls)<=or.Ib*Math.max(1,Math.abs(be),Math.abs(Ls))}var xe=Gn,Ze=lt,Ae,ct,Ct=(Ae=(0,Wr.b2)(),Ae(ct=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"viewport",void 0),(0,A.Z)(this,"overridedViewProjectionMatrix",void 0),(0,A.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,A.Z)(this,"jitteredProjectionMatrix",void 0),(0,A.Z)(this,"viewMatrixInverse",void 0),(0,A.Z)(this,"cameraPosition",void 0)}return(0,Pt.Z)(e,[{key:"init",value:function(){}},{key:"update",value:function(r){this.viewport=r,this.viewMatrixInverse=zr(),Hr(this.viewMatrixInverse,r.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 r=this.viewport.getCenter(),n=(0,on.Z)(r,2),a=n[0],s=n[1];return[a,s]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(r,n){return this.viewport.projectFlat(r,n)}},{key:"setViewProjectionMatrix",value:function(r){this.overridedViewProjectionMatrix=r}},{key:"jitterProjectionMatrix",value:function(r,n){var a=no(zr(),[r,n,0]);this.jitteredProjectionMatrix=Gn(zr(),a,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Gn(zr(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),e}())||ct),fr,Ur;function Vr(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sn(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function sn(e,i){if(!!e){if(typeof e=="string")return Dr(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(e,i)}}function Dr(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r-1&&this.controls.splice(n,1),r.remove(),this}},{key:"addControls",value:function(){var r=this;this.unAddControls.forEach(function(n){n.addTo(r.scene),r.controls.push(n)}),this.unAddControls=[]}},{key:"destroy",value:function(){var r=Vr(this.controls),n;try{for(r.s();!(n=r.n()).done;){var a=n.value;a.remove()}}catch(s){r.e(s)}finally{r.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var r=this.controlCorners={},n="l7-",a=this.controlContainer=lo("div",n+"control-container",this.container);function s(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=f.map(function(g){return n+g}).join(" ");r[f.join("")]=lo("div",v,a)}s(["top","left"]),s(["top","right"]),s(["bottom","left"]),s(["bottom","right"]),s(["top","center"]),s(["right","center"]),s(["left","center"]),s(["bottom","center"])}},{key:"clearControlPos",value:function(){for(var r in this.controlCorners)this.controlCorners[r]&&ju(this.controlCorners[r]);this.controlContainer&&ju(this.controlContainer),delete this.controlCorners,delete this.controlContainer}}]),e}())||Ur),cn,xn,bn=(cn=(0,Wr.b2)(),cn(xn=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"container",void 0),(0,A.Z)(this,"scene",void 0),(0,A.Z)(this,"mapsService",void 0),(0,A.Z)(this,"markers",[]),(0,A.Z)(this,"markerLayers",[]),(0,A.Z)(this,"unAddMarkers",[]),(0,A.Z)(this,"unAddMarkerLayers",[])}return(0,Pt.Z)(e,[{key:"addMarkerLayer",value:function(r){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(r),r.addTo(this.scene)):this.unAddMarkerLayers.push(r)}},{key:"removeMarkerLayer",value:function(r){r.destroy(),this.markerLayers.indexOf(r);var n=this.markerLayers.indexOf(r);n>-1&&this.markerLayers.splice(n,1)}},{key:"addMarker",value:function(r){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(r),r.addTo(this.scene)):this.unAddMarkers.push(r)}},{key:"addMarkers",value:function(){var r=this;this.unAddMarkers.forEach(function(n){n.addTo(r.scene),r.markers.push(n)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var r=this;this.unAddMarkerLayers.forEach(function(n){r.markerLayers.push(n),n.addTo(r.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(r){r.remove(),this.markers.indexOf(r);var n=this.markers.indexOf(r);n>-1&&this.markers.splice(n,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(r){this.scene=r,this.mapsService=r.get(Ht.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(r){r.remove()}),this.markers=[],this.markerLayers.forEach(function(r){r.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(r){r.destroy()}}]),e}())||xn),dn,Jn,_a=(dn=(0,Wr.b2)(),dn(Jn=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"scene",void 0),(0,A.Z)(this,"popup",void 0),(0,A.Z)(this,"mapsService",void 0),(0,A.Z)(this,"unAddPopup",void 0)}return(0,Pt.Z)(e,[{key:"removePopup",value:function(r){r.remove()}},{key:"destroy",value:function(){this.popup.remove()}},{key:"addPopup",value:function(r){this.popup&&this.popup.remove(),this.mapsService.map&&this.mapsService.getMarkerContainer()?(r.addTo(this.scene),this.popup=r):this.unAddPopup=r}},{key:"initPopup",value:function(){this.unAddPopup&&(this.addPopup(this.unAddPopup),this.unAddPopup=null)}},{key:"init",value:function(r){this.scene=r,this.mapsService=r.get(Ht.IMapService)}}]),e}())||Jn),ls=U(82492),Ia=U.n(ls),pa={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo\u6D4B\u8BD5\u5730\u56FEtoken\uFF0C\u5982\u679C\u751F\u4EA7\u73AF\u5883\u4E2D\u4F7F\u7528\u53BB\u5BF9\u5E94\u5730\u56FE\u8BF7\u6CE8\u518CToken",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},Tl=pa,Is,Ku;function yu(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var i=1;i0&&(f=1/Math.sqrt(f)),e[0]=r*f,e[1]=n*f,e[2]=a*f,e[3]=s*f,e}function V(e,i){return e[0]*i[0]+e[1]*i[1]+e[2]*i[2]+e[3]*i[3]}function W(e,i,r,n){var a=r[0]*n[1]-r[1]*n[0],s=r[0]*n[2]-r[2]*n[0],f=r[0]*n[3]-r[3]*n[0],v=r[1]*n[2]-r[2]*n[1],g=r[1]*n[3]-r[3]*n[1],x=r[2]*n[3]-r[3]*n[2],C=i[0],T=i[1],O=i[2],k=i[3];return e[0]=T*x-O*g+k*v,e[1]=-(C*x)+O*f-k*s,e[2]=C*g-T*f+k*a,e[3]=-(C*v)+T*s-O*a,e}function ee(e,i,r,n){var a=i[0],s=i[1],f=i[2],v=i[3];return e[0]=a+n*(r[0]-a),e[1]=s+n*(r[1]-s),e[2]=f+n*(r[2]-f),e[3]=v+n*(r[3]-v),e}function se(e,i){i=i||1;var r,n,a,s,f,v;do r=glMatrix.RANDOM()*2-1,n=glMatrix.RANDOM()*2-1,f=r*r+n*n;while(f>=1);do a=glMatrix.RANDOM()*2-1,s=glMatrix.RANDOM()*2-1,v=a*a+s*s;while(v>=1);var g=Math.sqrt((1-f)/v);return e[0]=i*r,e[1]=i*n,e[2]=i*a*g,e[3]=i*s*g,e}function Me(e,i,r){var n=i[0],a=i[1],s=i[2],f=i[3];return e[0]=r[0]*n+r[4]*a+r[8]*s+r[12]*f,e[1]=r[1]*n+r[5]*a+r[9]*s+r[13]*f,e[2]=r[2]*n+r[6]*a+r[10]*s+r[14]*f,e[3]=r[3]*n+r[7]*a+r[11]*s+r[15]*f,e}function Oe(e,i,r){var n=i[0],a=i[1],s=i[2],f=r[0],v=r[1],g=r[2],x=r[3],C=x*n+v*s-g*a,T=x*a+g*n-f*s,O=x*s+f*a-v*n,k=-f*n-v*a-g*s;return e[0]=C*x+k*-f+T*-g-O*-v,e[1]=T*x+k*-v+O*-f-C*-g,e[2]=O*x+k*-g+C*-v-T*-f,e[3]=i[3],e}function Ye(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}function ze(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function st(e,i){return e[0]===i[0]&&e[1]===i[1]&&e[2]===i[2]&&e[3]===i[3]}function Tt(e,i){var r=e[0],n=e[1],a=e[2],s=e[3],f=i[0],v=i[1],g=i[2],x=i[3];return Math.abs(r-f)<=glMatrix.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(n-v)<=glMatrix.EPSILON*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-g)<=glMatrix.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-x)<=glMatrix.EPSILON*Math.max(1,Math.abs(s),Math.abs(x))}var Vt=null,Xt=null,lr=null,Lr=null,$r=null,Zn=null,gn=null,Yn=function(){var e=Fh();return function(i,r,n,a,s,f){var v,g;for(r||(r=4),n||(n=0),a?g=Math.min(a*r+n,i.length):g=i.length,v=n;vte-1*na||bt<0||_t>be-1*na||_t<0)return!1;var qt;if(qt=k({x:Math.floor(bt/i.pickBufferScale),y:Math.floor((be-(f+1)*na)/i.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:i.pickingFBO}),qt[0]!==0||qt[1]!==0||qt[2]!==0){var ar=ol(qt),Pr=r.getSource().getFeatureById(ar);ar!==r.getCurrentPickId()&&g==="mousemove"&&(g="mouseenter");var qr={x:s,y:f,type:g,lngLat:v,featureId:ar,feature:Pr,target:x};Pr&&(C=!0,r.setCurrentPickId(ar),i.pickedLayers=[r],i.triggerHoverOnLayer(r,qr))}else{var gr={x:s,y:f,lngLat:v,type:r.getCurrentPickId()!==null&&g==="mousemove"?"mouseout":"un"+g,featureId:null,target:x,feature:null};i.triggerHoverOnLayer(r,Jc(Jc({},gr),{},{type:"unpick"})),i.triggerHoverOnLayer(r,gr),r.setCurrentPickId(null),i.pickedLayers=[]}if($e&&i.highlightPickedFeature(r,qt),ot&&g==="click"&&((a=qt)===null||a===void 0?void 0:a.toString())!==[0,0,0,0].toString()){var un=ol(qt);r.getCurrentSelectedId()===null||un!==r.getCurrentSelectedId()?(i.selectFeature(r,qt),r.setCurrentSelectedId(un)):(i.selectFeature(r,new Uint8Array([0,0,0,0])),r.setCurrentSelectedId(null))}return C})}return(0,Pt.Z)(e,[{key:"init",value:function(r){var n=this.rendererService,a=n.createTexture2D,s=n.createFramebuffer,f=n.getViewportSize,v=n.getContainer,g=this.getContainerSize(v()),x=g.width,C=g.height;x*=na,C*=na,this.pickBufferScale=this.configService.getSceneConfig(r).pickBufferScale||1,this.pickingFBO=s({color:a({width:Math.round(x/this.pickBufferScale),height:Math.round(C/this.pickBufferScale),wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE})}),this.interactionService.on(ma.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var i=(0,P.Z)(N().mark(function n(a,s,f){var v=this,g,x,C,T;return N().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:g=this.rendererService,x=g.useFramebuffer,C=g.clear,T=g.getContainer,this.resizePickingFBO(),x(this.pickingFBO,function(){C({framebuffer:v.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),a.hooks.beforePickingEncode.call(),a.renderModels(),a.hooks.afterPickingEncode.call();var j=v.pickBox(a,s);f(j)});case 3:case"end":return k.stop()}},n,this)}));function r(n,a,s){return i.apply(this,arguments)}return r}()},{key:"pickBox",value:function(r,n){var a=this,s=n.map(function(gr){var un=gr<0?0:gr;return Math.floor(un*na/a.pickBufferScale)}),f=(0,on.Z)(s,4),v=f[0],g=f[1],x=f[2],C=f[3],T=this.rendererService,O=T.getViewportSize,k=T.readPixels,j=T.getContainer,X=this.getContainerSize(j()),te=X.width,be=X.height;if(te*=na,be*=na,v>(te-1)*na/this.pickBufferScale||x<0||g>(be-1)*na/this.pickBufferScale||C<0)return[];var Ne,$e=Math.min(te/this.pickBufferScale,x)-v,ot=Math.min(be/this.pickBufferScale,C)-g;Ne=k({x:v,y:Math.floor(be/this.pickBufferScale-(C+1)),width:$e,height:ot,data:new Uint8Array($e*ot*4),framebuffer:this.pickingFBO});for(var bt=[],_t={},qt=0;qt0&&j.masks.map(function(te){te.hooks.beforeRenderData.call(),te.hooks.beforeRender.call(),te.render(),te.hooks.afterRender.call()}),j.renderModels(!0),j.hooks.afterPickingEncode.call(),s.pickedLayers.map(function(te){s.selectFeature(te,new Uint8Array([0,0,0,0]))});var X=s.pickFromPickingFBO(j,a);return s.layerService.pickedLayerId=X?+j.id:-1,X&&!j.getLayerConfig().enablePropagation})});case 3:case"end":return O.stop()}},n,this)}));function r(n){return i.apply(this,arguments)}return r}()},{key:"triggerHoverOnLayer",value:function(r,n){$a(n)&&(this.handleCursor(r,n.type),r.emit(n.type,n))}},{key:"highlightPickedFeature",value:function(r,n){var a=(0,on.Z)(n,3),s=a[0],f=a[1],v=a[2];r.hooks.beforeHighlight.call([s,f,v])}},{key:"selectFeature",value:function(r,n){var a=(0,on.Z)(n,3),s=a[0],f=a[1],v=a[2];r.hooks.beforeSelect.call([s,f,v])}}]),e}(),uh=jn(qs.prototype,"mapService",[ca],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),If=jn(qs.prototype,"rendererService",[Wl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lh=jn(qs.prototype,"configService",[ku],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bc=jn(qs.prototype,"interactionService",[Xl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ch=jn(qs.prototype,"layerService",[Io],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qs))||Yl),Jp=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(0,ht.Z)(this,e),(0,A.Z)(this,"autoStart",void 0),(0,A.Z)(this,"startTime",0),(0,A.Z)(this,"oldTime",0),(0,A.Z)(this,"running",!1),(0,A.Z)(this,"elapsedTime",0),this.autoStart=i}return(0,Pt.Z)(e,[{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 r=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var n=(typeof performance=="undefined"?Date:performance).now();r=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=r}return r}}]),e}(),dp,Ec,Bh,fh,ef,Sc,vp,mp,Nh;function gp(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ed(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function ed(e,i){if(!!e){if(typeof e=="string")return zh(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zh(e,i)}}function zh(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r-1&&n.layerChildren.splice(a,1)}else{var s=this.layers.indexOf(r);s>-1&&this.layers.splice(s,1)}this.updateLayerRenderList(),this.renderLayers()}},{key:"remove",value:function(r,n){if(n){var a=n.layerChildren.indexOf(r);a>-1&&n.layerChildren.splice(a,1)}else{var s=this.layers.indexOf(r);s>-1&&this.layers.splice(s,1)}this.updateLayerRenderList(),r.destroy(),this.renderLayers()}},{key:"removeAllLayers",value:function(){this.destroy()}},{key:"setEnableRender",value:function(r){this.enableRender=r}},{key:"renderLayers",value:function(){var i=(0,P.Z)(N().mark(function n(){var a,s,f;return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){g.next=2;break}return g.abrupt("return");case 2:this.alreadyInRendering=!0,this.clear(),a=gp(this.layerList),g.prev=5,a.s();case 7:if((s=a.n()).done){g.next=21;break}if(f=s.value,f.hooks.beforeRenderData.call(),f.hooks.beforeRender.call(),!f.isLayerGroup&&f.masks.length>0&&(this.renderService.clear({stencil:0,depth:1,framebuffer:null}),f.masks.map(function(x){x.hooks.beforeRenderData.call(),x.hooks.beforeRender.call(),x.render(),x.hooks.afterRender.call()})),!f.getLayerConfig().enableMultiPassRenderer){g.next=17;break}return g.next=15,f.renderMultiPass();case 15:g.next=18;break;case 17:f.render();case 18:f.hooks.afterRender.call();case 19:g.next=7;break;case 21:g.next=26;break;case 23:g.prev=23,g.t0=g.catch(5),a.e(g.t0);case 26:return g.prev=26,a.f(),g.finish(26);case 29:this.alreadyInRendering=!1;case 30:case"end":return g.stop()}},n,this,[[5,23,26,29]])}));function r(){return i.apply(this,arguments)}return r}()},{key:"updateLayerRenderList",value:function(){var r=this;this.layerList=[],this.layers.filter(function(n){return n.inited}).filter(function(n){return n.isVisible()}).sort(function(n,a){return n.zIndex-a.zIndex}).forEach(function(n){n.isLayerGroup?n.layerChildren.filter(function(a){return a.inited}).filter(function(a){return a.isVisible()}).sort(function(a,s){return a.zIndex-s.zIndex}).forEach(function(a){r.layerList.push(a)}):r.layerList.push(n)})}},{key:"destroy",value:function(){this.layers.forEach(function(r){r.destroy()}),this.layers=[],this.layerList=[],this.renderLayers()}},{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 r=Ji(this.mapService.bgColor);this.renderService.clear({color:r,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=kn.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){kn.cancelAnimationFrame(this.layerRenderID)}}]),e}(),vp=jn(Sc.prototype,"renderService",[Ec],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mp=jn(Sc.prototype,"mapService",[Bh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nh=jn(Sc.prototype,"configService",[fh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sc))||ef),Cc=U(81253),td=U(14293),$u=U.n(td),rd=function(){function e(i){var r=this;(0,ht.Z)(this,e),(0,A.Z)(this,"name",void 0),(0,A.Z)(this,"type",void 0),(0,A.Z)(this,"scale",void 0),(0,A.Z)(this,"descriptor",void 0),(0,A.Z)(this,"featureBufferLayout",[]),(0,A.Z)(this,"needRescale",!1),(0,A.Z)(this,"needRemapping",!1),(0,A.Z)(this,"needRegenerateVertices",!1),(0,A.Z)(this,"featureRange",{startIndex:0,endIndex:Infinity}),(0,A.Z)(this,"vertexAttribute",void 0),(0,A.Z)(this,"defaultCallback",function(n){if(n.length===0){var a;return((a=r.scale)===null||a===void 0?void 0:a.defaultValues)||[]}return n.map(function(s,f){var v,g=(v=r.scale)===null||v===void 0?void 0:v.scalers[f].func,x=g(s);return x})}),this.setProps(i)}return(0,Pt.Z)(e,[{key:"setProps",value:function(r){Object.assign(this,r)}},{key:"mapping",value:function(r){var n;if((n=this.scale)!==null&&n!==void 0&&n.callback){var a,s=(a=this.scale)===null||a===void 0?void 0:a.callback.apply(a,(0,Ce.Z)(r));if(!$u()(s))return[s]}return this.defaultCallback(r)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),Uh=["buffer","update","name"],_p=["buffer","update","name"],ql,Zh,hh,nd,id,ad;function Fd(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jh(e){for(var i=1;i2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0,f=this.attributes.find(function(ot){return ot.name===r});if(f&&f.descriptor){var v=f.descriptor,g=v.update,x=v.buffer,C=v.size,T=C===void 0?0:C,O=xp[x.type||G.FLOAT];if(g){var k=this.featureLayout,j=k.elements,X=k.sizePerElement,te=j.slice(a,s);if(!te.length)return;var be=te[0].offset,Ne=be*T*O,$e=te.map(function(ot,bt){for(var _t=ot.featureIdx,qt=ot.vertices,ar=ot.normals,Pr=qt.length/X,qr=[],gr=0;gr1&&(v=s[1].trim()),n){case"bool":v=v==="true";break;case"float":case"int":v=Number(v);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":v?v=v.replace("[","").replace("]","").split(",").reduce(function(g,x){return g.push(Number(x.trim())),g},[]):v=new Array(Pv(n)).fill(0);break;default:}return i[f]=v,"uniform ".concat(n," ").concat(f,`; -`)}),{content:e,uniforms:i}}var ev,cd;function tv(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var i=1;i spotCosCutoff) { -// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent); -// } else { -// spotEffect = 0.0; -// } - -// return ambient + attenuation * (spotEffect * diffuse + specular); -// } - -vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { - vec3 weight = vec3(0.0); - for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) { - if (i >= u_NumOfDirectionalLights) { - break; - } - weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); - } - // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) { - // if (i >= u_NumOfSpotLights) { - // break; - // } - // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir); - // } - return weight; -} -`,S0=`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; - -uniform float u_activeMix: 0; - -#define PICKING_NONE 0.0 -#define PICKING_ENCODE 1.0 -#define PICKING_HIGHLIGHT 2.0 -#define COLOR_SCALE 1. / 255. - -#define HIGHLIGHT 1.0 -#define SELECT 2.0 - -/* - * Returns highlight color if this item is selected. - */ -vec4 filterHighlightColor(vec4 color, float weight) { - // float selected = v_PickingResult.a; - bool selected = bool(v_PickingResult.a); - - // if (selected == SELECT) { - if (selected) { - // // \u70B9\u51FB\u9009\u4E2D\u72B6\u6001 - // vec4 selectColor = u_SelectColor * COLOR_SCALE; - // return selectColor; - // } else if (selected == HIGHLIGHT) { - // // hover \u9AD8\u4EAE\u72B6\u6001 - vec4 highLightColor = u_HighlightColor * COLOR_SCALE; - - float highLightAlpha = highLightColor.a; - float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha)); - - vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio); - return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a); - } else { - return color; - } -} - -/* - * Returns picking color if picking enabled else unmodified argument. - */ -vec4 filterPickingColor(vec4 color) { - vec3 pickingColor = v_PickingResult.rgb; - if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) { - discard; - } - return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color; -} - -/* - * Returns picking color if picking is enabled if not - * highlight color if this item is selected, otherwise unmodified argument. - */ -vec4 filterColor(vec4 color) { - // TODO: \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 - // return color; - if(u_shaderPick < 0.5) { - return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 - } else { - return filterPickingColor(filterHighlightColor(color, 1.0)); - } - -} - -vec4 filterColorAlpha(vec4 color, float alpha) { - // TODO: \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 - // return color; - if(u_shaderPick < 0.5) { - return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 - } else { - return filterPickingColor(filterHighlightColor(color, alpha)); - } -} - -`,C0=`attribute vec3 a_PickingColor; -varying 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; - -#define PICKING_NONE 0.0 -#define PICKING_ENCODE 1.0 -#define PICKING_HIGHLIGHT 2.0 -#define COLOR_SCALE 1. / 255. - -#define NORMAL 0.0 -#define HIGHLIGHT 1.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; -} - -// \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; -} - -void setPickingColor(vec3 pickingColor) { - if(u_shaderPick < 0.5) { - return; - } - // compares only in highlight stage - - 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; -} - -float setPickingSize(float x) { - return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x; -} - -float setPickingOrder(float z) { - bool selected = bool(v_PickingResult.a); - return selected ? z + 1. : 0.; -} -`,A0=` -#define E 2.718281828459045 -vec2 ProjectFlat(vec2 lnglat){ - float maxs=85.0511287798; - float lat=max(min(maxs,lnglat.y),-maxs); - float scale= 268435456.; - float d=PI/180.; - float x=lnglat.x*d; - float y=lat*d; - y=log(tan((PI/4.)+(y/2.))); - - float a=.5/PI, - b=.5, - c=-.5/PI; - d=.5; - x=scale*(a*x+b); - y=scale*(c*y+d); - return vec2(x,y); -} - -vec2 unProjectFlat(vec2 px){ - float a=.5/PI; - float b=.5; - float c=-.5/PI; - float d=.5; - float scale = 268435456.; - float x=(px.x/scale-b)/a; - float y=(px.y/scale-d)/c; - y=(atan(pow(E,y))-(PI/4.))*2.; - d=PI/180.; - float lat=y/d; - float lng=x/d; - return vec2(lng,lat); -} - -float pixelDistance(vec2 from, vec2 to) { - vec2 a1 = ProjectFlat(from); - vec2 b1 = ProjectFlat(to); - return distance(a1, b1); -} - -// gaode2.0 -vec2 customProject(vec2 lnglat) { // \u7ECF\u7EAC\u5EA6 => \u5E73\u9762\u5750\u6807 - float t = lnglat.x; - float e = lnglat.y; - float Sm = 180.0 / PI; - float Tm = 6378137.0; - float Rm = PI / 180.0; - float r = 85.0511287798; - e = max(min(r, e), -r); - t *= Rm; - e *= Rm; - e = log(tan(PI / 4.0 + e / 2.0)); - return vec2(t * Tm, e * Tm); -} - -vec2 unProjCustomCoord(vec2 point) { // \u5E73\u9762\u5750\u6807 => \u7ECF\u7EAC\u5EA6 - float Sm = 57.29577951308232; //180 / Math.PI - float Tm = 6378137.0; - float t = point.x; - float e = point.y; - return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm); -} - - -float customPixelDistance(vec2 from, vec2 to) { - vec2 a1 = ProjectFlat(from); - vec2 b1 = ProjectFlat(to); - return distance(a1, b1); -}`,w0=`#define TILE_SIZE 512.0 -#define PI 3.1415926536 -#define WORLD_SCALE TILE_SIZE / (PI * 2.0) - -#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox -#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset -#define COORDINATE_SYSTEM_VECTOR_TILE 3.0 -#define COORDINATE_SYSTEM_IDENTITY 4.0 -#define COORDINATE_SYSTEM_P20 5.0 // amap -#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset -#define COORDINATE_SYSTEM_METER_OFFSET 7.0 - -#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 - -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) { - float x = lnglat.x; - return vec2( - radians(x) + PI, - PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) - ); -} - -float project_scale(float meters) { - return meters * u_PixelsPerMeter.z; -} - - -// offset coords -> world coords -vec4 project_offset(vec4 offset) { - float dy = offset.y; - dy = clamp(dy, -1., 1.); - vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy; - return vec4(offset.xyz * pixels_per_unit, offset.w); -} - -vec3 project_normal(vec3 normal) { - vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0); - return normalize(normal_modelspace.xyz * u_PixelsPerMeter); -} - -vec3 project_offset_normal(vec3 vector) { - if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01 - || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // normals generated by the polygon tesselator are in lnglat offsets instead of meters - return normalize(vector * u_PixelsPerDegree); - } - return project_normal(vector); -} -// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01 -// reverse Y -vec3 reverse_offset_normal(vec3 vector) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) { - return vector * vec3(1.0, -1.0, 1.0); - } - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 - return vector; - } - return vector; -} - -vec4 project_position(vec4 position) { - float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; - float b = COORDINATE_SYSTEM_P20_OFFSET; - float c = COORDINATE_SYSTEM_LNGLAT; - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET - || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - float X = position.x - u_ViewportCenter.x; - float Y = position.y - u_ViewportCenter.y; - return project_offset(vec4(X, Y, position.z, position.w)); - } - if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { - return vec4( - project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, - project_scale(position.z), - position.w - ); - } - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { - return vec4( - (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.), - project_scale(position.z), - position.w - ); - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // return vec4( - // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), - // 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 -} -vec2 project_pixel_size_to_clipspace(vec2 pixels) { - vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0; - return offset * u_FocalDistance; -} - -float project_pixel_allmap(float pixel) { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { - return pixel * pow(2.0, u_Zoom); - } - return pixel; -} - -// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F -float project_pixel_texture(float pixel) { - // mapbox zoom > 12 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - return pixel * pow(0.5, u_Zoom); - } - - // amap2 zoom > 12 - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - - // amap zoom > 12 - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - return pixel * pow(0.5, u_Zoom); - } - - // amap zoom < 12 - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { - return pixel * pow(2.0, (20.0 - u_Zoom)); - } - return pixel * 2.0; -} - -// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528 -float project_float_pixel(float pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - 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 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - return pixel; -} - -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 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - return pixel; -} -vec2 project_pixel(vec2 pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - return pixel * -1.; -} -vec3 project_pixel(vec3 pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - return pixel * -1.; -} - -vec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || - u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // Needs to be divided with project_uCommonUnitsPerMeter - position.w *= u_PixelsPerMeter.z; - } - - return viewProjectionMatrix * position + center; -} - -// Projects from common space coordinates to clip space -vec4 project_common_position_to_clipspace(vec4 position) { - return project_common_position_to_clipspace( - position, - u_ViewProjectionMatrix, - u_ViewportCenterProjection - ); -} - -vec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) { - vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection); - - if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || - u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // Needs to be divided with project_uCommonUnitsPerMeter - pos.w = pos.w / u_PixelsPerMeter.z; - } - return pos; -} - - -bool isEqual( float a, float b) { - return a< b + 0.001 && a > b - 0.001; -}`,T0=`/** - * 2D signed distance field functions - * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm - */ - -float ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; } - -float sdCircle(vec2 p, float r) { - return length(p) - r; -} - -float sdEquilateralTriangle(vec2 p) { - float k = sqrt(3.0); - p.x = abs(p.x) - 1.0; - p.y = p.y + 1.0/k; - if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0; - p.x -= clamp( p.x, -2.0, 0.0 ); - return -length(p)*sign(p.y); -} - -float sdBox(vec2 p, vec2 b) { - vec2 d = abs(p)-b; - return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0); -} - -float sdPentagon(vec2 p, float r) { - vec3 k = vec3(0.809016994,0.587785252,0.726542528); - p.x = abs(p.x); - p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); - p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); - p -= vec2(clamp(p.x,-r*k.z,r*k.z),r); - return length(p)*sign(p.y); -} - -float sdHexagon(vec2 p, float r) { - vec3 k = vec3(-0.866025404,0.5,0.577350269); - p = abs(p); - p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; - p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); - return length(p)*sign(p.y); -} - -float sdOctogon(vec2 p, float r) { - vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 ); - p = abs(p); - p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); - p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); - p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); - return length(p)*sign(p.y); -} - -float sdHexagram(vec2 p, float r) { - vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076); - p = abs(p); - p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; - p -= 2.0*min(dot(k.yx,p),0.0)*k.yx; - p -= vec2(clamp(p.x,r*k.z,r*k.w),r); - return length(p)*sign(p.y); -} - -float sdRhombus(vec2 p, vec2 b) { - vec2 q = abs(p); - float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0); - float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) ); - return d * sign( q.x*b.y + q.y*b.x - b.x*b.y ); -} - -float sdVesica(vec2 p, float r, float d) { - p = abs(p); - float b = sqrt(r*r-d*d); // can delay this sqrt - return ((p.y-b)*d>p.x*b) - ? length(p-vec2(0.0,b)) - : length(p-vec2(-d,0.0))-r; -} -`,M0=`attribute float a_vertexId; - -uniform mat4 u_cellTypeLayout; // \u63CF\u8FF0\u6570\u636E\u7EB9\u7406 cell \u7ED3\u6784\u7684\u77E9\u9635 -uniform sampler2D u_dataTexture; // \u6570\u636E\u7EB9\u7406 - -bool hasOpacity() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 opacity \u7684\u6570\u636E - return u_cellTypeLayout[1][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -bool hasStrokeOpacity() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 strokeOpacity \u7684\u6570\u636E - return u_cellTypeLayout[1][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -bool hasStrokeWidth() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 strokeWidth \u7684\u6570\u636E - return u_cellTypeLayout[1][2] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -bool hasStroke() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 stroke \u7684\u6570\u636E - return u_cellTypeLayout[1][3] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -bool hasOffsets() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 offsets \u7684\u6570\u636E - return u_cellTypeLayout[2][0] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -bool hasThetaOffset() { // \u5224\u65AD cell \u4E2D\u662F\u5426\u5B58\u5728 thetaOffset \u7684\u6570\u636E - return u_cellTypeLayout[2][1] > 0.0 && u_cellTypeLayout[3][3] > 0.0; -} - -// \u6839\u636E\u5750\u6807\u4F4D\u7F6E\u5148\u662F\u8BA1\u7B97 uv \uFF0C\u7136\u540E\u6839\u636E uv \u4ECE\u6570\u636E\u7EB9\u7406\u4E2D\u53D6\u503C -float pos2value(vec2 pos, float columnWidth, float rowHeight) { - float u = (pos.r - 1.0) * columnWidth + columnWidth/2.0; - float v = 1.0 - ((pos.g - 1.0) * rowHeight + rowHeight/2.0); - return texture2D(u_dataTexture, vec2(u, v)).r; -} - -/* - currentRow \u5F53\u524D\u884C - currentColumn \u5F53\u524D\u5217 - columnCount \u6709\u591A\u5C11\u5217 - nextStep \u9700\u8981\u8BA1\u7B97\u5F53\u524D cell \u540E\u7684\u7B2C\u51E0\u4E2A cell \uFF08\u5F53\u524D cell \u5219 nextStep = 0\uFF09 -*/ -vec2 nextPos(float currentRow, float currentColumn, float columnCount, float nextStep) { - float nextColumn = currentColumn; - float nextRow = currentRow; - if(currentColumn + nextStep <= columnCount){ - nextColumn = currentColumn + nextStep; - } else { - nextColumn = mod(currentColumn + nextStep, columnCount); // \u4E0D\u4F1A\u51FA\u73B0\u8DE8\u4E24\u884C - nextRow = currentRow + 1.0; - } - return vec2(nextColumn, nextRow); -} - -// \u8BA1\u7B97\u5F53\u524D\u5355\u4E2A cell \u7684\u5927\u5C0F -float calCellCount() { - // u_cellTypeLayout - // cal_height, WIDTH, 0.0, 0.0, // rowCount columnCount - \u51E0\u884C\u51E0\u5217 - // 1.0, 1.0, 1.0, 0.0, // opacity strokeOpacity strokeWidth stroke - 1.0 \u8868\u793A\u6709\u6570\u636E\u6620\u5C04\u30010.0 \u8868\u793A\u6CA1\u6709 - // 1.0, 1.0, 0.0, 0.0, // offsets thetaOffset - // 0.0, 0.0, 0.0, 0.0 - - return u_cellTypeLayout[1][0] + // opacity - u_cellTypeLayout[1][1] + // strokeOpacity - u_cellTypeLayout[1][2] + // strokeWidth - u_cellTypeLayout[1][3] * 4.0 + // stroke - u_cellTypeLayout[2][0] * 2.0 + // offsets - u_cellTypeLayout[2][1]; // thetaOffset -}`,P0=` -// \u8BA1\u7B97 opacity \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset -vec2 calOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { - if(!hasOpacity()) { // \u6570\u636E\u7EB9\u7406\u4E2D\u4E0D\u5B58\u5728 opacity \u7684\u65F6\u5019\u53D6\u9ED8\u8BA4\u503C\uFF08\u7528\u6237\u5728 style \u4E2D\u4F20\u5165\u7684\u662F\u5E38\u91CF\uFF09 - return vec2(u_opacity, textureOffset); - } else { - vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - float textureOpacity = pos2value(valuePos, columnWidth, rowHeight); - return vec2(textureOpacity, textureOffset + 1.0); - } -} -`,I0=` -// \u8BA1\u7B97 strokeOpaicty \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset -vec2 calStrokeOpacityAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { - if(!hasStrokeOpacity()) { - return vec2(u_stroke_opacity, textureOffset); - } else { - vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - float textureStrokeOpacity = pos2value(valuePos, columnWidth, rowHeight); - return vec2(textureStrokeOpacity, textureOffset + 1.0); - } -} -`,Ac=` -// \u8BA1\u7B97 strokeWidth \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset -vec2 calStrokeWidthAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { - if(!hasStrokeWidth()) { - return vec2(u_stroke_width, textureOffset); - } else { - vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - float textureStrokeWidth = pos2value(valuePos, columnWidth, rowHeight); - return vec2(textureStrokeWidth, textureOffset + 1.0); - } -} -`,hd=` -// \u8BA1\u7B97 thetaOffset \u548C\u6807\u793A\u5728 cell \u4E2D\u53D6\u503C\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF textureOffset -vec2 calThetaOffsetAndOffset(float cellCurrentRow, float cellCurrentColumn, float columnCount, float textureOffset, float columnWidth, float rowHeight) { - if(!hasThetaOffset()) { // \u6570\u636E\u7EB9\u7406\u4E2D\u4E0D\u5B58\u5728 thetaOffset \u7684\u65F6\u5019\u53D6\u9ED8\u8BA4\u503C\uFF08\u7528\u6237\u5728 style \u4E2D\u4F20\u5165\u7684\u662F\u5E38\u91CF\uFF09 - return vec2(u_thetaOffset, textureOffset); - } else { - vec2 valuePos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - float textureThetaOffset = pos2value(valuePos, columnWidth, rowHeight); - return vec2(textureThetaOffset, textureOffset + 1.0); - } -} -`,Ov=/precision\s+(high|low|medium)p\s+float/,wp=`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - #else - precision mediump float; -#endif -`,Rv=/#pragma include (["^+"]?["\ "[a-zA-Z_0-9](.*)"]*?)/g,pb=(ev=(0,Wr.b2)(),ev(cd=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"moduleCache",{}),(0,A.Z)(this,"rawContentCache",{})}return(0,Pt.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:rv,fs:rv}),this.registerModule("decode",{vs:fd,fs:""}),this.registerModule("projection",{vs:w0,fs:""}),this.registerModule("project",{vs:A0,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:T0}),this.registerModule("lighting",{vs:Iv,fs:""}),this.registerModule("light",{vs:E0,fs:""}),this.registerModule("picking",{vs:C0,fs:S0}),this.registerModule("styleMapping",{vs:M0,fs:""}),this.registerModule("styleMappingCalThetaOffset",{vs:hd,fs:""}),this.registerModule("styleMappingCalOpacity",{vs:P0,fs:""}),this.registerModule("styleMappingCalStrokeOpacity",{vs:I0,fs:""}),this.registerModule("styleMappingCalStrokeWidth",{vs:Ac,fs:""})}},{key:"registerModule",value:function(r,n){if(!this.rawContentCache[r]){var a=n.vs,s=n.fs,f=n.uniforms,v=Jd(a),g=v.content,x=v.uniforms,C=Jd(s),T=C.content,O=C.uniforms;this.rawContentCache[r]={fs:T,uniforms:nf(nf(nf({},x),O),f),vs:g}}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(r){var n=this;if(this.moduleCache[r])return this.moduleCache[r];var a=this.rawContentCache[r].vs,s=this.rawContentCache[r].fs,f=this.processModule(a,[],"vs"),v=f.content,g=f.includeList,x=this.processModule(s,[],"fs"),C=x.content,T=x.includeList,O=C,k=ld()(g.concat(T).concat(r)).reduce(function(j,X){return nf(nf({},j),n.rawContentCache[X].uniforms)},{});return Ov.test(C)||(O=wp+C),this.moduleCache[r]={fs:O.trim(),uniforms:k,vs:v.trim()},this.moduleCache[r]}},{key:"processModule",value:function(r,n,a){var s=this,f=r.replace(Rv,function(v,g){var x=g.split(" "),C=x[0].replace(/"/g,"");if(n.indexOf(C)>-1)return"";var T=s.rawContentCache[C][a];n.push(C);var O=s.processModule(T,n,a),k=O.content;return k});return{content:f,includeList:n}}}]),e}())||cd),Lv=U(66213),Hh;(function(e){e.Normal="normal",e.PostProcessing="post-processing"})(Hh||(Hh={}));var xm,bm,kv=(xm=(0,Wr.b2)(),xm(bm=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"shaderModuleService",void 0),(0,A.Z)(this,"rendererService",void 0),(0,A.Z)(this,"cameraService",void 0),(0,A.Z)(this,"mapService",void 0),(0,A.Z)(this,"interactionService",void 0),(0,A.Z)(this,"layerService",void 0),(0,A.Z)(this,"config",void 0)}return(0,Pt.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Hh.Normal}},{key:"init",value:function(r,n){this.config=n,this.rendererService=r.getContainer().get(Ht.IRendererService),this.cameraService=r.getContainer().get(Ht.ICameraService),this.mapService=r.getContainer().get(Ht.IMapService),this.interactionService=r.getContainer().get(Ht.IInteractionService),this.layerService=r.getContainer().get(Ht.ILayerService),this.shaderModuleService=r.getContainer().get(Ht.IShaderModuleService)}},{key:"render",value:function(r){}}]),e}())||bm),Em,Sm;function db(e){var i=vb();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function vb(){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(e){return!1}}var mb=(Em=(0,Wr.b2)(),Em(Sm=function(e){(0,Ir.Z)(r,e);var i=db(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(a,s){(0,Lv.Z)((0,Mt.Z)(r.prototype),"init",this).call(this,a,s)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),r}(kv))||Sm),Cm,Am,wm,O0,Tm;function gb(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yb(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function yb(e,i){if(!!e){if(typeof e=="string")return Mm(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(e,i)}}function Mm(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rbe||_t<0||qt>Ne||qt<0)){var ar;X(n.pickingFBO,function(){var Pr;if(ar=j({x:Math.round(_t),y:Math.round(Ne-(x+1)*na),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),ar[0]!==0||ar[1]!==0||ar[2]!==0){var qr=ol(ar),gr=n.layer.getSource().getFeatureById(qr),un={x:g,y:x,type:T,lngLat:C,featureId:qr,feature:gr};gr&&(n.layer.setCurrentPickId(qr),n.triggerHoverOnLayer(un))}else{var Ln={x:g,y:x,lngLat:C,type:n.layer.getCurrentPickId()===null?"un"+T:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer(Rm(Rm({},Ln),{},{type:"unpick"})),n.triggerHoverOnLayer(Ln),n.layer.setCurrentPickId(null)}ot&&n.highlightPickedFeature(ar),bt&&T==="click"&&((Pr=ar)===null||Pr===void 0?void 0:Pr.toString())!==[0,0,0,0].toString()&&n.selectFeature(ar)})}}}),n}return(0,Pt.Z)(r,[{key:"getType",value:function(){return Hh.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(a,s){(0,Lv.Z)((0,Mt.Z)(r.prototype),"init",this).call(this,a,s),this.layer=a;var f=this.rendererService,v=f.createTexture2D,g=f.createFramebuffer,x=f.getViewportSize,C=x(),T=C.width,O=C.height;this.pickingFBO=g({color:v({width:T,height:O,wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE})}),this.interactionService.on(ma.Hover,this.pickFromPickingFBO),this.interactionService.on(ma.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(ma.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(a){var s=this;if(!this.alreadyInRendering){var f=this.rendererService,v=f.getViewportSize,g=f.useFramebuffer,x=f.clear,C=v(),T=C.width,O=C.height;this.alreadyInRendering=!0,(this.width!==T||this.height!==O)&&(this.pickingFBO.resize({width:T,height:O}),this.width=T,this.height=O),g(this.pickingFBO,function(){x({framebuffer:s.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var k=s.layer.multiPassRenderer.getRenderFlag();s.layer.multiPassRenderer.setRenderFlag(!1),a.hooks.beforePickingEncode.call(),a.render(),a.hooks.afterPickingEncode.call(),s.layer.multiPassRenderer.setRenderFlag(k),s.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(a){this.layer.emit(a.type,a)}},{key:"highlightPickedFeature",value:function(a){var s=(0,on.Z)(a,3),f=s[0],v=s[1],g=s[2];this.layer.hooks.beforeHighlight.call([f,v,g]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(a){var s=(0,on.Z)(a,3),f=s[0],v=s[1],g=s[2];this.layer.hooks.beforeSelect.call([f,v,g]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(a){var s=a.featureId,f=hu(s);this.selectFeature(new Uint8Array(f))}},{key:"highlightFeatureHandle",value:function(a){var s=a.featureId,f=hu(s);this.highlightPickedFeature(new Uint8Array(f))}}]),r}(kv))||Im),Sb=U(11700),Cb=U.n(Sb),Ab=U(68929),wb=U.n(Ab),Lm,km,Dm,R0,Fm;function Bm(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nv(e){for(var i=1;i 0.0) { - vec4 baseColor = texture2D(u_Texture2, v_UV); - float baselum = luminance(baseColor); - gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio); - if(baselum <= 0.2) { - gl_FragColor = inbloomColor * u_intensity; - } - } else { - gl_FragColor = inbloomColor; - } -}`,Ob=`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.); -}`,Rb=(Nm=(0,Wr.b2)(),Nm(zm=function(e){(0,Ir.Z)(r,e);var i=Mb(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:Ob,fs:Ib});var a=this.shaderModuleService.getModule("blur-pass"),s=a.vs,f=a.fs,v=a.uniforms,g=this.rendererService.getViewportSize(),x=g.width,C=g.height;return{vs:s,fs:f,uniforms:Zm(Zm({},v),{},{u_ViewportSize:[x,C]})}}},{key:"convertOptionsToUniforms",value:function(a){var s={};return $u()(a.bloomRadius)||(s.u_radius=a.bloomRadius),$u()(a.bloomIntensity)||(s.u_intensity=a.bloomIntensity),$u()(a.bloomBaseRadio)||(s.u_baseRadio=a.bloomBaseRadio),s}}]),r}(gh))||zm),jm,Vm;function Gm(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Hm(e){for(var i=1;i0;)r=r+n*(a%i),a=Math.floor(a/i),n=n/i;return r}var T2=1,M2=(bg=(0,Wr.b2)(),Eg=(0,Wr.f3)(Ht.IShaderModuleService),bg(Sg=(L0=function(e){(0,Ir.Z)(r,e);var i=S2(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f=1&&(x(this.copyRenderTarget,function(){s.outputModel.draw({uniforms:{u_Texture:s.outputRenderTarget}})}),x(a.multiPassRenderer.getPostProcessor().getReadFBO(),function(){s.copyModel.draw({uniforms:{u_Texture:s.copyRenderTarget}})}),a.multiPassRenderer.getPostProcessor().render(a));var Ne=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=Ne,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,kn.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(a,s,f){this.shaderModuleService.registerModule(a,{vs:w2,fs:s});var v=this.shaderModuleService.getModule(a),g=v.vs,x=v.fs,C=v.uniforms,T=this.rendererService,O=T.createAttribute,k=T.createBuffer,j=T.createModel;return j(wg({vs:g,fs:x,attributes:{a_Position:O({buffer:k({data:[-4,-4,4,-4,0,4],type:G.FLOAT}),size:2})},uniforms:wg({},C),depth:{enable:!1},count:3},f))}}]),r}(kv),Cg=jn(L0.prototype,"shaderModuleService",[Eg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L0))||Sg),iv=new Wr.W2;iv.bind(Ht.IGlobalConfigService).to(oh).inSingletonScope(),(0,Wr.GW)((0,Wr.b2)(),Mn.EventEmitter),iv.bind(Ht.IEventEmitter).to(Mn.EventEmitter);var Pg=(0,op.Z)(iv,!1),k0=function(i){var r=Pg.lazyInject(i);return function(n,a,s){r.call(this,n,a),s&&(s.initializer=function(){return n[a]})}},TP=function(i){var r=Pg.lazyMultiInject(i);return function(n,a,s){r.call(this,n,a),s&&(s.initializer=function(){return n[a]})}},Ql=iv,P2=0;function I2(){var e=new Wr.W2;return e.parent=iv,e.bind(Ht.SceneID).toConstantValue("".concat(P2++)),e.bind(Ht.IShaderModuleService).to(pb).inSingletonScope(),e.bind(Ht.ILayerService).to(yp).inSingletonScope(),e.bind(Ht.ISceneService).to(Mv).inSingletonScope(),e.bind(Ht.ICameraService).to(Ct).inSingletonScope(),e.bind(Ht.ICoordinateSystemService).to(ao).inSingletonScope(),e.bind(Ht.IInteractionService).to(ia).inSingletonScope(),e.bind(Ht.IPickingService).to(pp).inSingletonScope(),e.bind(Ht.IControlService).to(An).inSingletonScope(),e.bind(Ht.IMarkerService).to(bn).inSingletonScope(),e.bind(Ht.IIconService).to(cr).inSingletonScope(),e.bind(Ht.IFontService).to(Rr).inSingletonScope(),e.bind(Ht.IPopupService).to(_a).inSingletonScope(),e.bind(Ht.INormalPass).to(mb).whenTargetNamed("clear"),e.bind(Ht.INormalPass).to(Eb).whenTargetNamed("pixelPicking"),e.bind(Ht.INormalPass).to(E2).whenTargetNamed("render"),e.bind(Ht.INormalPass).to(M2).whenTargetNamed("taa"),e.bind(Ht.IFactoryNormalPass).toFactory(function(i){return function(r){return i.container.getNamed(Ht.INormalPass,r)}}),e.bind(Ht.IPostProcessingPass).to(Qb).whenTargetNamed("copy"),e.bind(Ht.IPostProcessingPass).to(Rb).whenTargetNamed("bloom"),e.bind(Ht.IPostProcessingPass).to(Bb).whenTargetNamed("blurH"),e.bind(Ht.IPostProcessingPass).to(jb).whenTargetNamed("blurV"),e.bind(Ht.IPostProcessingPass).to(p2).whenTargetNamed("noise"),e.bind(Ht.IPostProcessingPass).to(y2).whenTargetNamed("sepia"),e.bind(Ht.IPostProcessingPass).to(Xb).whenTargetNamed("colorHalftone"),e.bind(Ht.IPostProcessingPass).to(n2).whenTargetNamed("hexagonalPixelate"),e.bind(Ht.IPostProcessingPass).to(u2).whenTargetNamed("ink"),e.bind(Ht.IFactoryPostProcessingPass).toFactory(function(i){return function(r){var n=i.container.getNamed(Ht.IPostProcessingPass,r);return n.setName(r),n}}),e}function av(e){var i=new Wr.W2;return i.parent=e,i.bind(Ht.IStyleAttributeService).to(No).inSingletonScope(),i.bind(Ht.IMultiPassRenderer).to(_b).inSingletonScope(),i.bind(Ht.IPostProcessor).to(_2).inSingletonScope(),i}var MP=U(74691),O2=null;function PP(e){return O2.indexOf(e)}var R2=2,IP=4,L2=64,OP=128,k2=256,D2=512,RP=8192,LP=16384,kP=32768,F2=null,Ig=131072,DP=262144,B2=524288,FP=1048576,N2=2097152,BP=4194304,z2=8388608,U2=16777216,Z2=null;function Dv(e,i){return e=_clamp(Math.floor(e),0,255),i=_clamp(Math.floor(i),0,255),256*e+i}function NP(e){var i=e.color,r=e.radius,n=e.tileX,a=e.tileY,s=e.shape,f=e.opacity,v=e.stroke,g=e.strokeWidth,x=e.strokeOpacity,C=[],T=[],O=[],k=[Dv(i[0],i[1]),Dv(i[2],i[3])],j=[Dv(v[0],v[1]),Dv(v[2],v[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(X){var te=_slicedToArray(X,2),be=te[0],Ne=te[1];C.push([].concat(k,[(be+1)*z2+(Ne+1)*N2+getShapeIndex(s)*Ig+r,(n+512)*B2+(a+512)*L2])),T.push([].concat(j,[g,x])),O.push([f,0,0,0])}),{packedBuffer:C,packedBuffer2:T,packedBuffer3:O}}function zP(e,i){if(e===0&&!i)return 0;if(e===1&&i)return 4294967295;var r=i?1:0,n=Math.floor(e*127);return n*Z2+r*U2+n*Ig+r*F2+n*D2+r*k2+n*R2+r}var wc;(function(e){e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none"})(wc||(wc={}));var Oo;(function(e){e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging"})(Oo||(Oo={}));var Wh;(function(e){e.CONSTANT="constant",e.VARIABLE="variable"})(Wh||(Wh={}));var On;(function(e){e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform"})(On||(On={}));var j2=["mapload","mapchange","mapAfterFrameChange"],Tp={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},D0=["loaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Xh;(function(e){e.TOPRIGHT="topright",e.TOPLEFT="topleft",e.BOTTOMRIGHT="bottomright",e.BOTTOMLEFT="bottomleft",e.TOPCENTER="topcenter",e.BOTTOMCENTER="bottomcenter",e.LEFTCENTER="leftcenter",e.RIGHTCENTER="rightcenter"})(Xh||(Xh={}));function Og(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rg(e){for(var i=1;i0&&arguments[0]!==void 0?arguments[0]:Xh.BOTTOMRIGHT,s=this.controlService;return s&&s.removeControl(this),this.controlOption.position=a,s&&s.addControl(this,this.sceneContainer),this}},{key:"addTo",value:function(a){this.mapsService=a.get(Ht.IMapService),this.renderService=a.get(Ht.IRendererService),this.layerService=a.get(Ht.ILayerService),this.controlService=a.get(Ht.IControlService),this.sceneContainer=a,this.isShow=!0,this.container=this.onAdd();var s=this.container,f=this.controlOption.position,v=this.controlService.controlCorners[f];return Su(s,"l7-control"),f.indexOf("bottom")!==-1?v.insertBefore(s,v.firstChild):v.appendChild(s),this}},{key:"onAdd",value:function(){throw new Error("Method not implemented.")}},{key:"onRemove",value:function(){throw new Error("Method not implemented.")}},{key:"hide",value:function(){var a=this.container;Su(a,"l7-control-hide"),this.isShow=!1}},{key:"show",value:function(){var a=this.container;tu(a,"l7-control-hide"),this.isShow=!0}},{key:"remove",value:function(){if(!this.mapsService)return this;ju(this.container),this.onRemove()}},{key:"_refocusOnMap",value:function(a){if(this.mapsService&&a&&a.screenX>0&&a.screenY>0){var s=this.mapsService.getContainer();s!==null&&s.focus()}}}]),r}(Mn.EventEmitter);function W2(e){var i=X2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function X2(){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(e){return!1}}var UP=function(e){(0,Ir.Z)(r,e);var i=W2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"layerControlInputs",void 0),(0,A.Z)((0,ne.Z)(a),"layers",void 0),(0,A.Z)((0,ne.Z)(a),"lastZIndex",void 0),(0,A.Z)((0,ne.Z)(a),"handlingClick",void 0),(0,A.Z)((0,ne.Z)(a),"layersLink",void 0),(0,A.Z)((0,ne.Z)(a),"baseLayersList",void 0),(0,A.Z)((0,ne.Z)(a),"separator",void 0),(0,A.Z)((0,ne.Z)(a),"overlaysList",void 0),(0,A.Z)((0,ne.Z)(a),"form",void 0),a.layerControlInputs=[],a.layers=[],a.lastZIndex=0,a.handlingClick=!1,a.initLayers(),Iu(["checkDisabledLayers","onLayerChange","collapse","extend","expand","onInputClick"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{collapsed:!0,position:Xh.TOPRIGHT,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,name:"layers"}}},{key:"onAdd",value:function(){var a=this;return this.initLayout(),this.update(),this.mapsService.on("zoomend",this.checkDisabledLayers),this.layers.forEach(function(s){s.layer.on("remove",a.onLayerChange),s.layer.on("add",a.onLayerChange)}),this.container}},{key:"addVisualLayer",value:function(a,s){return this.addLayer(a,s,!0),this.mapsService?this.update():this}},{key:"expand",value:function(){var a=this.renderService.getViewportSize(),s=a.height;Su(this.container,"l7-control-layers-expanded"),this.form.style.height="null";var f=s-(this.container.offsetTop+50);return f1,this.baseLayersList.style.display=a?"":"none"),this.separator.style.display=s&&a?"":"none",this}},{key:"checkDisabledLayers",value:function(){for(var a=this.layerControlInputs,s,f,v=this.mapsService.getZoom(),g=a.length-1;g>=0;g--)if(s=a[g],f=this.layerService.getLayer(s.layerId),f&&f.inited){var x=f.getMinZoom(),C=f.getMaxZoom();s.disabled=vC}}},{key:"addLayer",value:function(a,s,f){this.mapsService&&(a.on("add",this.onLayerChange),a.on("remove",this.onLayerChange)),this.layers.push({layer:a,name:s,overlay:f});var v=this.controlOption,g=v.sortLayers,x=v.sortFunction,C=v.autoZIndex;g&&this.layers.sort(function(T,O){return x(T.layer,O.layer,T.name,O.name)}),C&&a.setZIndex&&(this.lastZIndex++,a.setZIndex(this.lastZIndex)),this.expandIfNotCollapsed()}},{key:"expandIfNotCollapsed",value:function(){return this.mapsService&&!this.controlOption.collapsed&&this.expand(),this}},{key:"onLayerChange",value:function(a){this.handlingClick||this.update();var s=this.layerService.getLayer(a.target.layerId),f=s!=null&&s.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;f&&this.emit(f,s)}},{key:"createRadioElement",value:function(a,s){var f='",v=document.createElement("div");return v.innerHTML=f,v.firstChild}},{key:"addItem",value:function(a){var s=document.createElement("label"),f=this.layerService.getLayer(a.layer.id),v=f&&f.inited&&a.layer.isVisible(),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="l7-control-layers-selector",g.defaultChecked=v):g=this.createRadioElement("l7-base-layers",v),this.layerControlInputs.push(g),g.layerId=a.layer.id,g.addEventListener("click",this.onInputClick);var x=document.createElement("span");x.innerHTML=" "+a.name;var C=document.createElement("div");s.appendChild(C),C.appendChild(g),C.appendChild(x);var T=a.overlay?this.overlaysList:this.baseLayersList;return T.appendChild(s),this.checkDisabledLayers(),s}},{key:"onInputClick",value:function(){var a=this.layerControlInputs,s,f,v=[],g=[];this.handlingClick=!0;for(var x=a.length-1;x>=0;x--)s=a[x],f=this.layerService.getLayer(s.layerId),s.checked?v.push(f):s.checked||g.push(f);g.forEach(function(C){C.hide()}),v.forEach(function(C){C.show()}),this.handlingClick=!1}}]),r}(Fv);function Y2(e){var i=q2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function q2(){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(e){return!1}}var K2=function(e){(0,Ir.Z)(r,e);var i=Y2(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.BOTTOMLEFT,name:"logo"}}},{key:"onAdd",value:function(){var a="l7-control-logo",s=lo("div",a),f=lo("a","l7-ctrl-logo");return f.target="_blank",f.rel="noopener nofollow",f.href="https://antv.alipay.com/l7",f.setAttribute("aria-label","AntV logo"),f.setAttribute("rel","noopener nofollow"),s.appendChild(f),s}},{key:"onRemove",value:function(){return null}}]),r}(Fv);function $2(e){var i=Q2();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function Q2(){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(e){return!1}}var ZP=function(e){(0,Ir.Z)(r,e);var i=$2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"mScale",void 0),(0,A.Z)((0,ne.Z)(a),"iScale",void 0),Iu(["update"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.BOTTOMLEFT,maxWidth:100,metric:!0,updateWhenIdle:!1,imperial:!1,name:"scale"}}},{key:"onAdd",value:function(){var a="l7-control-scale",s=lo("div",a);this.addScales(a+"-line",s);var f=this.controlOption.updateWhenIdle;return this.mapsService.on(f?"moveend":"mapmove",this.update),this.mapsService.on(f?"zoomend":"zoomchange",this.update),this.update(),s}},{key:"onRemove",value:function(){var a=this.controlOption.updateWhenIdle;this.mapsService.off(a?"zoomend":"zoomchange",this.update),this.mapsService.off(a?"moveend":"mapmove",this.update)}},{key:"update",value:function(){var a=this.mapsService,s=this.controlOption.maxWidth,f=a.getSize()[1]/2,v=a.containerToLngLat([0,f]),g=a.containerToLngLat([s,f]),x=ha([v.lng,v.lat],[g.lng,g.lat]);this.updateScales(x)}},{key:"updateScales",value:function(a){var s=this.controlOption,f=s.metric,v=s.imperial;f&&a&&this.updateMetric(a),v&&a&&this.updateImperial(a)}},{key:"updateMetric",value:function(a){var s=this.getRoundNum(a),f=s<1e3?s+" m":s/1e3+" km";this.updateScale(this.mScale,f,s/a)}},{key:"updateImperial",value:function(a){var s=a*3.2808399,f,v,g;s>5280?(f=s/5280,v=this.getRoundNum(f),this.updateScale(this.iScale,v+" mi",v/f)):(g=this.getRoundNum(s),this.updateScale(this.iScale,g+" ft",g/s))}},{key:"updateScale",value:function(a,s,f){var v=this.controlOption.maxWidth;a.style.width=Math.round(v*f)+"px",a.innerHTML=s}},{key:"getRoundNum",value:function(a){var s=Math.pow(10,(Math.floor(a)+"").length-1),f=a/s;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,s*f}},{key:"addScales",value:function(a,s){var f=this.controlOption,v=f.metric,g=f.imperial;v&&(this.mScale=lo("div",a,s)),g&&(this.iScale=lo("div",a,s))}}]),r}(Fv);function J2(e){var i=eE();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function eE(){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(e){return!1}}var jP=function(e){(0,Ir.Z)(r,e);var i=J2(r);function r(n){var a;return(0,ht.Z)(this,r),a=i.call(this,n),(0,A.Z)((0,ne.Z)(a),"disabled",void 0),(0,A.Z)((0,ne.Z)(a),"zoomInButton",void 0),(0,A.Z)((0,ne.Z)(a),"zoomOutButton",void 0),Iu(["updateDisabled","zoomIn","zoomOut"],(0,ne.Z)(a)),a}return(0,Pt.Z)(r,[{key:"getDefault",value:function(){return{position:Xh.TOPLEFT,zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out",name:"zoom"}}},{key:"onAdd",value:function(){var a="l7-control-zoom",s=lo("div",a+" l7-bar");return this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,a+"-in",s,this.zoomIn),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,a+"-out",s,this.zoomOut),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),this.updateDisabled(),s}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"zoomIn",value:function(){!this.disabled&&this.mapsService.getZoom()this.mapsService.getMinZoom()&&this.mapsService.zoomOut()}},{key:"createButton",value:function(a,s,f,v,g){var x=lo("a",f,v);return x.innerHTML=a,x.title=s,x.href="javascript:void(0)",x.addEventListener("click",g),x}},{key:"updateDisabled",value:function(){var a=this.mapsService,s="l7-disabled";tu(this.zoomInButton,s),tu(this.zoomOutButton,s),(this.disabled||a.getZoom()<=a.getMinZoom())&&Su(this.zoomOutButton,s),(this.disabled||a.getZoom()>=a.getMaxZoom())&&Su(this.zoomInButton,s)}}]),r}(Fv);function Lg(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kg(e){for(var i=1;i180||Math.abs(C[1][0])>180){if(T.x>k){var X=this.mapsService.lngLatToContainer([g-360,x]);T.x=X.x}if(T.x<0){var te=this.mapsService.lngLatToContainer([g+360,x]);T.x=te.x}}(T.x>k||T.x<0||T.y>j||T.y<0)&&(s.style.display="none"),s.style.left=T.x+f[0]+"px",s.style.top=T.y-f[1]+"px"}}}},{key:"init",value:function(){var a=this,s=this.markerOption.element,f=this.markerOption,v=f.color,g=f.anchor;if(!s){this.defaultMarker=!0,s=lo("div"),this.markerOption.element=s;var x=document.createElementNS("http://www.w3.org/2000/svg","svg");x.setAttributeNS(null,"display","block"),x.setAttributeNS(null,"height","48px"),x.setAttributeNS(null,"width","48px"),x.setAttributeNS(null,"viewBox","0 0 1024 1024");var C=document.createElementNS("http://www.w3.org/2000/svg","path");C.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),C.setAttributeNS(null,"fill",v),x.appendChild(C),s.appendChild(x)}Su(s,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(T){var O,k,j=((O=a.markerOption)===null||O===void 0?void 0:O.style)&&((k=a.markerOption)===null||k===void 0?void 0:k.style[T]);s&&(s.style[T]=j)}),s.addEventListener("click",function(T){a.onMapClick(T)}),s.addEventListener("click",this.eventHandle),yf(s,g,"marker")}},{key:"registerMarkerEvent",value:function(a){a.addEventListener("mousemove",this.eventHandle),a.addEventListener("click",this.eventHandle),a.addEventListener("mousedown",this.eventHandle),a.addEventListener("mouseup",this.eventHandle),a.addEventListener("dblclick",this.eventHandle),a.addEventListener("contextmenu",this.eventHandle),a.addEventListener("mouseover",this.eventHandle),a.addEventListener("mouseout",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var a=this.getElement();a.removeEventListener("mousemove",this.eventHandle),a.removeEventListener("click",this.eventHandle),a.removeEventListener("mousedown",this.eventHandle),a.removeEventListener("mouseup",this.eventHandle),a.removeEventListener("dblclick",this.eventHandle),a.removeEventListener("contextmenu",this.eventHandle),a.removeEventListener("mouseover",this.eventHandle),a.removeEventListener("mouseout",this.eventHandle)}},{key:"addDragHandler",value:function(a){throw new Error("Method not implemented.")}},{key:"onUp",value:function(a){throw new Error("Method not implemented.")}}]),r}(Mn.EventEmitter);function Fg(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bg(e){for(var i=1;i-1&&this.markers.splice(s,1)}},{key:"hide",value:function(){this.markers.map(function(a){a.getElement().style.opacity="0"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(a){a.getElement().style.opacity="1"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var a=this.markerLayerOption.cluster;return a?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var a=this;this.getMarkers().forEach(function(s){s.addTo(a.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(a){a.remove()}),this.clusterMarkers.forEach(function(a){a.remove()}),this.mapsService.off("camerachange",this.update),this.markers=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"addPoint",value:function(a,s){var f=a.getLnglat(),v=f.lng,g=f.lat,x={geometry:{type:"Point",coordinates:[v,g]},properties:Bg(Bg({},a.getExtData()),{},{marker_id:s})};this.points.push(x),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(!!this.markerLayerOption.cluster){var a=this.markerLayerOption.clusterOption,s=a.radius,f=a.minZoom,v=f===void 0?0:f,g=a.maxZoom;this.clusterIndex=new(Up())({radius:s,minZoom:v,maxZoom:g}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(a,s){var f=this,v=a[0].concat(a[1]),g=this.clusterIndex.getClusters(v,s);this.clusterMarkers.forEach(function(x){x.remove()}),this.clusterMarkers=[],g.forEach(function(x){var C,T=f.markerLayerOption.clusterOption,O=T.field,k=T.method;if(x.properties&&(C=x.properties)!==null&&C!==void 0&&C.cluster_id){var j,X=f.getLeaves((j=x.properties)===null||j===void 0?void 0:j.cluster_id);if(x.properties.clusterData=X,O&&k){var te=X==null?void 0:X.map(function(bt){var _t=(0,A.Z)({},O,bt.properties[O]);return _t}),be=ms(te,O),Ne=Uc(k,be),$e="point_"+k;x.properties[$e]=Ne.toFixed(2)}}var ot=f.clusterMarker(x);f.clusterMarkers.push(ot),ot.addTo(f.scene)})}},{key:"getLeaves",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return a?this.clusterIndex.getLeaves(a,s,f):null}},{key:"clusterMarker",value:function(a){var s=this.markerLayerOption.clusterOption,f=s,v=f.element,g=v===void 0?this.generateElement.bind(this):v,x=new Dg({element:g(a)}).setLnglat({lng:a.geometry.coordinates[0],lat:a.geometry.coordinates[1]});return x}},{key:"normalMarker",value:function(a){var s=a.properties.marker_id;return this.markers[s]}},{key:"update",value:function(){if(!!this.mapsService){var a=this.mapsService.getZoom(),s=this.mapsService.getBounds();(!this.bbox||Math.abs(a-this.zoom)>=1||!yl(this.bbox,s))&&(this.bbox=dc(s,.5),this.zoom=Math.floor(a),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(a){var s=lo("div","l7-marker-cluster"),f=lo("div","",s),v=lo("span","",f),g=this.markerLayerOption.clusterOption,x=g.field,C=g.method;a.properties.point_count=a.properties.point_count||1;var T=x&&C?a.properties["point_"+C]||a.properties[x]:a.properties.point_count;return v.textContent=T,s}}]),r}(Mn.EventEmitter);function Ng(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zg(e){for(var i=1;i0)?sl(e,i,r[0],r[1]):sl(e,i,"#fff",void 0)}var js;(function(e){e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.L7MAP="L7MAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL"})(js||(js={}));function dE(e,i){var r=[i[0]-e[0],i[1]-e[1]],n=cu(r),a=[e[0]+n[0]*1e-4,e[1]+n[1]*1e-4];return a}function vE(e,i){var r=this;e.length>0&&i.version===js["GAODE2.x"]&&(typeof e[0].coordinates[0]=="number"?e.filter(function(n){return!n.originCoordinates}).map(function(n){n.version=js["GAODE2.x"],n.originCoordinates=cloneDeep(n.coordinates),n.coordinates=r.mapService.lngLatToCoord(n.coordinates)}):e.filter(function(n){return!n.originCoordinates}).map(function(n){n.version=js["GAODE2.x"],n.originCoordinates=cloneDeep(n.coordinates),n.coordinates=r.mapService.lngLatToCoords(n.coordinates)}))}function mE(e,i){e.length>0&&i.version===js.SIMPLE&&e.map(function(r){r.simpleCoordinate||(r.coordinates=gE(r.coordinates,i),r.simpleCoordinate=!0)})}function gE(e,i){if(typeof e[0]=="number")return i.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){var r=[];return e.map(function(a){var s=[];a.map(function(f){s.push(i.simpleMapCoord.unproject(f))}),r.push(s)}),r}else{var n=[];return e.map(function(a){n.push(i.simpleMapCoord.unproject(a))}),n}}function yE(e,i,r){var n;if(!e.scale)return[];var a=(e==null||(n=e.scale)===null||n===void 0?void 0:n.scalers)||[],s=[];a.forEach(function(v){var g,x=v.field;(i.hasOwnProperty(x)||((g=e.scale)===null||g===void 0?void 0:g.type)==="variable")&&s.push(i[x])});var f=e.mapping?e.mapping(s):[];return e.name==="color"&&!al(f[0])?[r]:f}function _E(e,i,r,n,a,s){var f=s==null?void 0:s.getLayerConfig(),v=f.arrow,g=v===void 0?{enable:!1}:v,x=i.map(function(C){var T={id:C._id,coordinates:C.coordinates};if(e.filter(function(j){return j.scale!==void 0}).forEach(function(j){var X=yE(j,C,a);j.needRemapping=!1,j.name==="color"&&(X=X.map(function(te){return Ji(te)})),T[j.name]=Array.isArray(X)&&X.length===1?X[0]:X,j.name==="shape"&&(T.shape=r.getIconFontKey(T[j.name]))}),T.shape==="line"&&g.enable){var O=T.coordinates,k=dE(O[0],O[1]);T.coordinates.splice(1,0,k,k)}return T});return vE(x,n),mE(x,n),x}function xE(e,i,r,n,a,s){var f=new Vl(a,s),v=e.getBottomColor(),g=n.getLayerStyleAttributes()||[],x=f.data.dataArray,C=x,T=_E(g,C,i,r,v,e);return f.destroy(),T}function Vg(e){return e.map(function(i){return typeof i=="string"&&(i=[i,{}]),i})}function Gg(e,i,r,n){var a=e.multiPassRenderer,s=e.getLayerConfig(),f=s.enablePicking,v=s.enableTAA;return v?a.add(n("taa")):a.add(n("render")),Vg(i).forEach(function(g){var x=(0,on.Z)(g,2),C=x[0],T=x[1];a.add(r(C),T)}),a.add(r("copy")),a}var bE=[["circle","cylinder"],["square","cylinder"],["triangle","cylinder"],["pentagon","cylinder"],["hexagon","cylinder"],["octogon","cylinder"],["hexagram","cylinder"],["rhombus","cylinder"],["vesica","cylinder"]];function EE(e,i,r){if(typeof i=="string"&&typeof r=="string"&&i!==r){if(e.type==="PointLayer"){e.dataState.dataSourceNeedUpdate=!0;return}bE.map(function(n){if(n.includes(i)&&n.includes(r)){e.dataState.dataSourceNeedUpdate=!0;return}})}}var SE=["passes"],CE=["moduleName","vertexShader","fragmentShader","triangulation","segmentNumber"],Hg,F0,Wg;function AE(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=wE(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function wE(e,i){if(!!e){if(typeof e=="string")return Xg(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xg(e,i)}}function Xg(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0&&arguments[0]!==void 0?arguments[0]:{};return(0,ht.Z)(this,r),n=i.call(this),(0,A.Z)((0,ne.Z)(n),"id","".concat(qg++)),(0,A.Z)((0,ne.Z)(n),"name","".concat(qg)),(0,A.Z)((0,ne.Z)(n),"type",void 0),(0,A.Z)((0,ne.Z)(n),"visible",!0),(0,A.Z)((0,ne.Z)(n),"zIndex",0),(0,A.Z)((0,ne.Z)(n),"minZoom",void 0),(0,A.Z)((0,ne.Z)(n),"maxZoom",void 0),(0,A.Z)((0,ne.Z)(n),"inited",!1),(0,A.Z)((0,ne.Z)(n),"layerModelNeedUpdate",!1),(0,A.Z)((0,ne.Z)(n),"pickedFeatureID",null),(0,A.Z)((0,ne.Z)(n),"selectedFeatureID",null),(0,A.Z)((0,ne.Z)(n),"styleNeedUpdate",!1),(0,A.Z)((0,ne.Z)(n),"rendering",void 0),(0,A.Z)((0,ne.Z)(n),"clusterZoom",0),(0,A.Z)((0,ne.Z)(n),"layerType",void 0),(0,A.Z)((0,ne.Z)(n),"isLayerGroup",!1),(0,A.Z)((0,ne.Z)(n),"triangulation",void 0),(0,A.Z)((0,ne.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,A.Z)((0,ne.Z)(n),"hooks",{init:new wh,afterInit:new wh,beforeRender:new wh,beforeRenderData:new Pd,afterRender:new Ps,beforePickingEncode:new Ps,afterPickingEncode:new Ps,beforeHighlight:new Ps(["pickedColor"]),afterHighlight:new Ps,beforeSelect:new Ps(["pickedColor"]),afterSelect:new Ps,beforeDestroy:new Ps,afterDestroy:new Ps}),(0,A.Z)((0,ne.Z)(n),"models",[]),(0,A.Z)((0,ne.Z)(n),"multiPassRenderer",void 0),(0,A.Z)((0,ne.Z)(n),"plugins",void 0),(0,A.Z)((0,ne.Z)(n),"sourceOption",void 0),(0,A.Z)((0,ne.Z)(n),"layerModel",void 0),(0,A.Z)((0,ne.Z)(n),"shapeOption",void 0),(0,A.Z)((0,ne.Z)(n),"sceneContainer",void 0),(0,A.Z)((0,ne.Z)(n),"layerChildren",[]),(0,A.Z)((0,ne.Z)(n),"masks",[]),Ui((0,ne.Z)(n),"configService",Wg,(0,ne.Z)(n)),(0,A.Z)((0,ne.Z)(n),"shaderModuleService",void 0),(0,A.Z)((0,ne.Z)(n),"cameraService",void 0),(0,A.Z)((0,ne.Z)(n),"coordinateService",void 0),(0,A.Z)((0,ne.Z)(n),"iconService",void 0),(0,A.Z)((0,ne.Z)(n),"fontService",void 0),(0,A.Z)((0,ne.Z)(n),"pickingService",void 0),(0,A.Z)((0,ne.Z)(n),"rendererService",void 0),(0,A.Z)((0,ne.Z)(n),"layerService",void 0),(0,A.Z)((0,ne.Z)(n),"interactionService",void 0),(0,A.Z)((0,ne.Z)(n),"mapService",void 0),(0,A.Z)((0,ne.Z)(n),"styleAttributeService",void 0),(0,A.Z)((0,ne.Z)(n),"layerSource",void 0),(0,A.Z)((0,ne.Z)(n),"postProcessingPassFactory",void 0),(0,A.Z)((0,ne.Z)(n),"normalPassFactory",void 0),(0,A.Z)((0,ne.Z)(n),"animateOptions",{enable:!1}),(0,A.Z)((0,ne.Z)(n),"container",void 0),(0,A.Z)((0,ne.Z)(n),"encodedData",void 0),(0,A.Z)((0,ne.Z)(n),"configSchema",void 0),(0,A.Z)((0,ne.Z)(n),"currentPickId",null),(0,A.Z)((0,ne.Z)(n),"rawConfig",void 0),(0,A.Z)((0,ne.Z)(n),"needUpdateConfig",void 0),(0,A.Z)((0,ne.Z)(n),"pendingStyleAttributes",[]),(0,A.Z)((0,ne.Z)(n),"scaleOptions",{}),(0,A.Z)((0,ne.Z)(n),"animateStartTime",void 0),(0,A.Z)((0,ne.Z)(n),"aniamateStatus",!1),(0,A.Z)((0,ne.Z)(n),"bottomColor","rgba(0, 0, 0, 0)"),(0,A.Z)((0,ne.Z)(n),"isDestroied",!1),(0,A.Z)((0,ne.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var s=n.getLayerConfig(),f=s.autoFit,v=s.fitBoundsOptions;f&&n.fitBounds(v),n.reRender()}),n.name=a.name||n.id,n.zIndex=a.zIndex||0,n.rawConfig=a,n}return(0,Pt.Z)(r,[{key:"addMaskLayer",value:function(a){this.masks.push(a)}},{key:"removeMaskLayer",value:function(a){var s=this.masks.indexOf(a);s>-1&&this.masks.splice(s,1),a.destroy()}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(a){if(!this.inited)this.needUpdateConfig=Ju(Ju({},this.needUpdateConfig),a);else{var s=this.container.get(Ht.SceneID);hE(a,this),this.configService.setLayerConfig(s,this.id,Ju(Ju(Ju({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),a)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(a,s){this.container=a,this.sceneContainer=s}},{key:"getContainer",value:function(){return this.container}},{key:"setBottomColor",value:function(a){this.bottomColor=a}},{key:"getBottomColor",value:function(){return this.bottomColor}},{key:"addPlugin",value:function(a){return this.plugins.push(a),this}},{key:"init",value:function(){var a=this,s=this.container.get(Ht.SceneID);this.configService.setLayerConfig(s,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Ht.IIconService),this.fontService=this.container.get(Ht.IFontService),this.rendererService=this.container.get(Ht.IRendererService),this.layerService=this.container.get(Ht.ILayerService),this.interactionService=this.container.get(Ht.IInteractionService),this.pickingService=this.container.get(Ht.IPickingService),this.mapService=this.container.get(Ht.IMapService);var f=this.getLayerConfig(),v=f.enableMultiPassRenderer,g=f.passes;v&&g!==null&&g!==void 0&&g.length&&g.length>0&&this.mapService.on("mapAfterFrameChange",function(){a.renderLayers()}),this.cameraService=this.container.get(Ht.ICameraService),this.coordinateService=this.container.get(Ht.ICoordinateSystemService),this.shaderModuleService=this.container.get(Ht.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Ht.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Ht.IFactoryNormalPass),this.styleAttributeService=this.container.get(Ht.IStyleAttributeService),this.multiPassRenderer=this.container.get(Ht.IMultiPassRenderer),this.multiPassRenderer.setLayer(this),this.pendingStyleAttributes.forEach(function(O){var k=O.attributeName,j=O.attributeField,X=O.attributeValues,te=O.updateOptions;a.styleAttributeService.updateStyleAttribute(k,{scale:Ju({field:j},a.splitValuesAndCallbackInAttribute(X,a.getLayerConfig()[k]))},te)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Ht.ILayerPlugin);var x=AE(this.plugins),C;try{for(x.s();!(C=x.n()).done;){var T=C.value;T.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}}catch(O){x.e(O)}finally{x.f()}return this.hooks.init.call(),this.hooks.afterInit.call(),this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this}},{key:"updateModelData",value:function(a){a.attributes&&a.elements?this.models.map(function(s){s.updateAttributesAndElements(a.attributes,a.elements)}):console.warn("data error")}},{key:"createModelData",value:function(a,s){if(this.layerModel.createModelData)return this.layerModel.createModelData(s);var f=this.calculateEncodeData(a,s),v=this.triangulation;return f&&v?this.styleAttributeService.createAttributesAndIndices(f,v):{attributes:void 0,elements:void 0}}},{key:"calculateEncodeData",value:function(a,s){return this.inited?xE(this,this.fontService,this.mapService,this.styleAttributeService,a,s):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){this.inited=!0,this.updateLayerConfig(Ju(Ju({},this.getDefaultConfig()),this.rawConfig));var a=this.getLayerConfig(),s=a.animateOption;s!=null&&s.enable&&(this.layerService.startAnimate(),this.aniamateStatus=!0)}},{key:"color",value:function(a,s,f){return this.updateStyleAttribute("color",a,s,f),this}},{key:"texture",value:function(a,s,f){return this.updateStyleAttribute("texture",a,s,f),this}},{key:"rotate",value:function(a,s,f){return this.updateStyleAttribute("rotate",a,s,f),this}},{key:"size",value:function(a,s,f){return this.updateStyleAttribute("size",a,s,f),this}},{key:"filter",value:function(a,s,f){return this.updateStyleAttribute("filter",a,s,f),this}},{key:"shape",value:function(a,s,f){var v,g,x,C=(v=this.styleAttributeService)===null||v===void 0||(g=v.getLayerStyleAttribute("shape"))===null||g===void 0||(x=g.scale)===null||x===void 0?void 0:x.field,T=a;return this.shapeOption={field:a,values:s},this.updateStyleAttribute("shape",a,s,f),EE(this,C,T),this}},{key:"label",value:function(a,s,f){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:a,attributeValues:s,updateOptions:f}),this}},{key:"animate",value:function(a){var s={};return Qu()(a)?(s.enable=!0,s=Ju(Ju({},s),a)):s.enable=a,this.updateLayerConfig({animateOption:s}),this}},{key:"source",value:function(a,s){return a!=null&&a.data?(this.setSource(a),this):(this.sourceOption={data:a,options:s},this.clusterZoom=0,this)}},{key:"setData",value:function(a,s){var f=this;return this.inited?this.layerSource.setData(a,s):this.on("inited",function(){var v=f.getSource();v?f.layerSource.setData(a,s):(f.source(new Vl(a,s)),f.sourceEvent())}),this}},{key:"style",value:function(a){var s=this,f=this.getLayerConfig(),v=a.passes,g=(0,Cc.Z)(a,SE);return v&&Vg(v).forEach(function(x){var C=s.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(x[0]);C&&C.updateOptions(x[1])}),this.rawConfig=Ju(Ju({},this.rawConfig),g),this.container&&(this.updateLayerConfig(this.rawConfig),this.styleNeedUpdate=!0),f&&f.mask===!0&&a.mask===!1&&(this.clearModels(),this.models=this.layerModel.buildModels()),this}},{key:"scale",value:function(a,s){return Qu()(a)?this.scaleOptions=Ju(Ju({},this.scaleOptions),a):this.scaleOptions[a]=s,this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.renderLayers(),this.rendering=!1}},{key:"render",value:function(){return this.getEncodedData().length!==0&&this.renderModels(),this}},{key:"renderMultiPass",value:function(){var n=(0,P.Z)(N().mark(function s(){return N().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.getEncodedData().length===0){v.next=7;break}if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){v.next=6;break}return v.next=4,this.multiPassRenderer.render();case 4:v.next=7;break;case 6:this.multiPassRenderer?this.renderModels():this.renderModels();case 7:case"end":return v.stop()}},s,this)}));function a(){return n.apply(this,arguments)}return a}()},{key:"active",value:function(a){var s={};return s.enableHighlight=Qu()(a)?!0:a,Qu()(a)?(s.enableHighlight=!0,a.color&&(s.highlightColor=a.color),a.mix&&(s.activeMix=a.mix)):s.enableHighlight=!!a,this.updateLayerConfig(s),this}},{key:"setActive",value:function(a,s){var f=this;if(Qu()(a)){var v=a.x,g=v===void 0?0:v,x=a.y,C=x===void 0?0:x;this.updateLayerConfig({highlightColor:Qu()(s)?s.color:this.getLayerConfig().highlightColor,activeMix:Qu()(s)?s.mix:this.getLayerConfig().activeMix}),this.pick({x:g,y:C})}else this.updateLayerConfig({pickedFeatureID:a,highlightColor:Qu()(s)?s.color:this.getLayerConfig().highlightColor,activeMix:Qu()(s)?s.mix:this.getLayerConfig().activeMix}),this.hooks.beforeSelect.call(hu(a)).then(function(){setTimeout(function(){f.reRender()},1)})}},{key:"select",value:function(a){var s={};return s.enableSelect=Qu()(a)?!0:a,Qu()(a)?(s.enableSelect=!0,a.color&&(s.selectColor=a.color),a.mix&&(s.selectMix=a.mix)):s.enableSelect=!!a,this.updateLayerConfig(s),this}},{key:"setSelect",value:function(a,s){var f=this;if(Qu()(a)){var v=a.x,g=v===void 0?0:v,x=a.y,C=x===void 0?0:x;this.updateLayerConfig({selectColor:Qu()(s)?s.color:this.getLayerConfig().selectColor,selectMix:Qu()(s)?s.mix:this.getLayerConfig().selectMix}),this.pick({x:g,y:C})}else this.updateLayerConfig({pickedFeatureID:a,selectColor:Qu()(s)?s.color:this.getLayerConfig().selectColor,selectMix:Qu()(s)?s.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(hu(a)).then(function(){setTimeout(function(){f.reRender()},1)})}},{key:"setBlend",value:function(a){return this.updateLayerConfig({blend:a}),this.layerModelNeedUpdate=!0,this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this}},{key:"hide",value:function(){return this.type==="CanvasLayer"&&this.layerModel.clearCanvas&&this.layerModel.clearCanvas(),this.updateLayerConfig({visible:!1}),this.reRender(),this}},{key:"setIndex",value:function(a){return this.zIndex=a,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(a){this.currentPickId=a}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(a){this.selectedFeatureID=a}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var a=this.mapService.getZoom(),s=this.getLayerConfig(),f=s.visible,v=s.minZoom,g=v===void 0?-Infinity:v,x=s.maxZoom,C=x===void 0?Infinity:x;return!!f&&a>=g&&a<=C}},{key:"setMultiPass",value:function(a,s){if(this.updateLayerConfig({enableMultiPassRenderer:a}),s&&this.updateLayerConfig({passes:s}),a){var f=this.getLayerConfig(),v=f.passes,g=v===void 0?[]:v;this.multiPassRenderer=Gg(this,g,this.postProcessingPassFactory,this.normalPassFactory),this.multiPassRenderer.setRenderFlag(!0);var x=this.rendererService.getViewportSize(),C=x.width,T=x.height;this.multiPassRenderer.resize(C,T)}return this}},{key:"setMinZoom",value:function(a){return this.updateLayerConfig({minZoom:a}),this}},{key:"getMinZoom",value:function(){var a=this.getLayerConfig(),s=a.minZoom;return s}},{key:"getMaxZoom",value:function(){var a=this.getLayerConfig(),s=a.maxZoom;return s}},{key:"get",value:function(a){var s=this.getLayerConfig();return s[a]}},{key:"setMaxZoom",value:function(a){return this.updateLayerConfig({maxZoom:a}),this}},{key:"setAutoFit",value:function(a){return this.updateLayerConfig({autoFit:a}),this}},{key:"fitBounds",value:function(a){if(!this.inited)return this.updateLayerConfig({autoFit:!0}),this;var s=this.getSource(),f=s.extent,v=f.some(function(g){return Math.abs(g)===Infinity});return v?this:(this.mapService.fitBounds([[f[0],f[1]],[f[2],f[3]]],a),this)}},{key:"destroy",value:function(){var a;this.isDestroied||(this.layerChildren.map(function(s){return s.destroy()}),this.layerChildren=[],this.masks.map(function(s){return s.destroy()}),this.masks=[],this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),this.multiPassRenderer.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(a=this.layerModel)===null||a===void 0||a.clearModels(),this.models=[],this.layerService.cleanRemove(this),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroied=!0)}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){this.models.forEach(function(a){return a.destroy()}),this.layerModel.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(a){return a.needRescale||a.needRemapping||a.needRegenerateVertices}).length}},{key:"setSource",value:function(a){if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=a,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var s=this.mapService.getZoom();this.layerSource.updateClusterData(s)}this.layerSource.on("update",this.sourceEvent)}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(a){this.encodedData=a}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(a){return this.styleAttributeService.getLayerAttributeScale(a)}},{key:"getLegendItems",value:function(a){var s=this.styleAttributeService.getLayerAttributeScale(a);if(!s)return[];if(s.invertExtent){var f=s.range().map(function(x){return(0,A.Z)({value:s.invertExtent(x)},a,x)});return f}else if(s.ticks){var v=s.ticks().map(function(x){return(0,A.Z)({value:x},a,s(x))});return v}else if(s!=null&&s.domain){var g=s.domain().filter(function(x){return!lE()(x)}).map(function(x){return(0,A.Z)({value:x},a,s(x))});return g}return[]}},{key:"pick",value:function(a){var s=a.x,f=a.y;this.interactionService.triggerHover({x:s,y:f})}},{key:"boxSelect",value:function(a,s){this.pickingService.boxPickLayer(this,a,s)}},{key:"buildLayerModel",value:function(a){var s=a.moduleName,f=a.vertexShader,v=a.fragmentShader,g=a.triangulation,x=a.segmentNumber,C=(0,Cc.Z)(a,CE);this.shaderModuleService.registerModule(s,{vs:f,fs:v});var T=this.shaderModuleService.getModule(s),O=T.vs,k=T.fs,j=T.uniforms,X=this.rendererService.createModel,te=this.styleAttributeService.createAttributesAndIndices(this.encodedData,g,x),be=te.attributes,Ne=te.elements;return X(Ju({attributes:be,uniforms:j,fs:k,vs:O,elements:Ne,blend:Zg[wc.normal]},C))}},{key:"createAttrubutes",value:function(a){var s=a.triangulation,f=this.styleAttributeService.createAttributes(this.encodedData,s),v=f.attributes;return v}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.aniamateStatus&&(this.layerService.stopAnimate(),this.aniamateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(a){var s=this.getLayerConfig(),f=s.enableHighlight,v=f===void 0?!0:f,g=s.enableSelect,x=g===void 0?!0:g,C=this.eventNames().indexOf(a)!==-1||this.eventNames().indexOf("un"+a)!==-1;return(a==="click"||a==="dblclick")&&x&&(C=!0),a==="mousemove"&&(v||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(C=!0),this.isVisible()&&C}},{key:"buildModels",value:function(){throw new Error("Method not implemented.")}},{key:"rebuildModels",value:function(){throw new Error("Method not implemented.")}},{key:"renderMulPass",value:function(){var n=(0,P.Z)(N().mark(function s(f){return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,f.render();case 2:case"end":return g.stop()}},s)}));function a(s){return n.apply(this,arguments)}return a}()},{key:"renderModels",value:function(a){var s=this;return this.getEncodedData().length>0&&(this.layerModelNeedUpdate&&this.layerModel&&(this.models=this.layerModel.buildModels(),this.hooks.beforeRender.call(),this.layerModelNeedUpdate=!1),this.layerModel.renderUpdate&&this.layerModel.renderUpdate(),this.models.forEach(function(f){f.draw({uniforms:s.layerModel.getUninforms()},a)})),this}},{key:"updateStyleAttribute",value:function(a,s,f,v){this.inited?this.styleAttributeService.updateStyleAttribute(a,{scale:Ju({field:s},this.splitValuesAndCallbackInAttribute(f,this.getLayerConfig()[s]))},v):this.pendingStyleAttributes.push({attributeName:a,attributeField:s,attributeValues:f,updateOptions:v})}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(a){console.warn("empty fn")}},{key:"getConfigSchema",value:function(){throw new Error("Method not implemented.")}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"reRender",value:function(){this.inited&&(this.layerService.updateLayerRenderList(),this.layerService.renderLayers())}},{key:"splitValuesAndCallbackInAttribute",value:function(a,s){return{values:ru()(a)?void 0:a||s,callback:ru()(a)?a:void 0}}}]),r}(Mn.EventEmitter),Wg=jn(F0.prototype,"configService",[Hg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F0),PE=U(18446),dd=U.n(PE),Kg,B0,$g;function IE(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=OE(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function OE(e,i){if(!!e){if(typeof e=="string")return Qg(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,i)}}function Qg(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0)for(var bt=T.length,_t=bt-2*(g+1);_t+g+20&&arguments[0]!==void 0?arguments[0]:{};(0,ht.Z)(this,e),(0,A.Z)(this,"complex",void 0),(0,A.Z)(this,"join",void 0),(0,A.Z)(this,"cap",void 0),(0,A.Z)(this,"miterLimit",void 0),(0,A.Z)(this,"thickness",void 0),(0,A.Z)(this,"normal",void 0),(0,A.Z)(this,"lastFlip",-1),(0,A.Z)(this,"miter",Ci.al(0,0)),(0,A.Z)(this,"started",!1),(0,A.Z)(this,"dash",!1),(0,A.Z)(this,"totalDistance",0),(0,A.Z)(this,"currentIndex",0),this.join=i.join||"miter",this.cap=i.cap||"butt",this.miterLimit=i.miterLimit||10,this.thickness=i.thickness||1,this.dash=i.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Pt.Z)(e,[{key:"extrude_gaode2",value:function(r,n){var a=this.complex;if(r.length<=1)return a;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var s=r.length,f=a.startIndex,v=1;vthis.miterLimit&&(un=!0)}un?(k.push(this.normal[0],this.normal[1],0),k.push(qr[0],qr[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,T.push.apply(T,(0,Ce.Z)(this.lastFlip!==-gr?[n,n+2,n+3]:[n+2,n+1,n+3])),T.push(n+2,n+3,n+4),$h(Nv,Kh),Ci.JG(this.normal,Nv),k.push(this.normal[0],this.normal[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*gr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,C+=3):(this.extrusions(O,k,s,qr,Pr,this.totalDistance),T.push.apply(T,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),gr=-1,Ci.JG(this.normal,qr),C+=2),this.lastFlip=gr}else{if($h(this.normal,Ks),j){var bt=Ci.Ue(),_t=Ci.Ue();Ci.lu(_t,Ks,this.normal),Ci.IH(bt,Ks,this.normal),k.push(_t[0],_t[1],0),k.push(bt[0],bt[1],0),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),O.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(O,k,s,this.normal,this.thickness,this.totalDistance);T.push.apply(T,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),C+=2}return C}},{key:"simpleSegment",value:function(r,n,a,s,f){var v=0,g=r.indices,x=r.positions,C=r.normals,T=Go([s[0],s[1]]),O=Go([a[0],a[1]]);md(Ks,T,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(T,O),this.totalDistance+=k),this.normal||(this.normal=Ci.Ue(),$h(this.normal,Ks)),this.started||(this.started=!0,this.extrusions(x,C,a,this.normal,this.thickness,this.totalDistance-k)),g.push(n+0,n+1,n+2),!f)$h(this.normal,Ks),this.extrusions(x,C,s,this.normal,this.thickness,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),v+=2;else{var j=Go([f[0],f[1]]);z0(T,j)&&Ci.IH(j,T,Ci.Fv(j,Ci.$X(j,T,O))),md(Kh,j,T);var X=N0(vd,Ci.Ue(),Ks,Kh,this.thickness),te=(0,on.Z)(X,2),be=te[0],Ne=te[1],$e=Ci.AK(vd,this.normal)<0?-1:1;this.extrusions(x,C,s,Ne,be,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),$e=-1,Ci.JG(this.normal,Ne),v+=2,this.lastFlip=$e}return v}},{key:"segment",value:function(r,n,a,s,f){var v=0,g=r.indices,x=r.positions,C=r.normals,T=this.cap==="square",O=this.join==="bevel",k=Go([s[0],s[1]]),j=Go([a[0],a[1]]);md(Ks,k,j);var X=0;if(this.dash&&(X=this.lineSegmentDistance(k,j),this.totalDistance+=X),this.normal||(this.normal=Ci.Ue(),$h(this.normal,Ks)),!this.started)if(this.started=!0,T){var te=Ci.Ue(),be=Ci.Ue();Ci.IH(te,this.normal,Ks),Ci.IH(be,this.normal,Ks),C.push(be[0],be[1],0),C.push(te[0],te[1],0),x.push(a[0],a[1],a[2]|0,this.totalDistance-X,-this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),x.push(a[0],a[1],a[2]|0,this.totalDistance-X,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(x,C,a,this.normal,this.thickness,this.totalDistance-X);if(g.push(n+0,n+1,n+2),f){var ot=Go([f[0],f[1]]);z0(k,ot)&&Ci.IH(ot,k,Ci.Fv(ot,Ci.$X(ot,k,j))),md(Kh,ot,k);var bt=N0(vd,Ci.Ue(),Ks,Kh,this.thickness),_t=(0,on.Z)(bt,2),qt=_t[0],ar=_t[1],Pr=Ci.AK(vd,this.normal)<0?-1:1,qr=O;if(!qr&&this.join==="miter"){var gr=qt;gr>this.miterLimit&&(qr=!0)}qr?(C.push(this.normal[0],this.normal[1],0),C.push(ar[0],ar[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,g.push.apply(g,(0,Ce.Z)(this.lastFlip!==-Pr?[n,n+2,n+3]:[n+2,n+1,n+3])),g.push(n+2,n+3,n+4),$h(Nv,Kh),Ci.JG(this.normal,Nv),C.push(this.normal[0],this.normal[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,-this.thickness*Pr,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,v+=3):(this.extrusions(x,C,s,ar,qt,this.totalDistance),g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Pr=-1,Ci.JG(this.normal,ar),v+=2),this.lastFlip=Pr}else{if($h(this.normal,Ks),T){var Ne=Ci.Ue(),$e=Ci.Ue();Ci.lu($e,Ks,this.normal),Ci.IH(Ne,Ks,this.normal),C.push($e[0],$e[1],0),C.push(Ne[0],Ne[1],0),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),x.push(s[0],s[1],s[2]|0,this.totalDistance,this.thickness,s[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(x,C,s,this.normal,this.thickness,this.totalDistance);g.push.apply(g,(0,Ce.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),v+=2}return v}},{key:"extrusions",value:function(r,n,a,s,f,v){n.push(s[0],s[1],0),n.push(s[0],s[1],0),r.push(a[0],a[1],a[2]|0,v,-f,a[2]|0),this.complex.indexes.push(this.currentIndex),r.push(a[0],a[1],a[2]|0,v,f,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(r,n){var a=n[0]-r[0],s=n[1]-r[1];return Math.sqrt(a*a+s*s)}}]),e}();function Mp(e){if(fa()(e[0]))return e;if(fa()(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(fa()(e[0][0][0])){var i=e,r=0,n=0,a=0;return i.forEach(function(s){s.forEach(function(f){r+=f[0],n+=f[1],a++})}),[r/a,n/a,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function LE(e){for(var i=e[0],r=e[1],n=e[0],a=e[1],s=0,f=0,v=0,g=0;g1&&arguments[1]!==void 0?arguments[1]:!1,r=e[0][0],n=e[0][e[0].length-1];r[0]===n[0]&&r[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var a=e[0].length,s=Rf().flatten(e),f=s.vertices,v=s.dimensions,g=[],x=[],C=[],T=0;T3&&arguments[3]!==void 0?arguments[3]:!1,a=Xa.create(),s=Xa.create(),f=Xa.create();n&&(e=Cn(e),i=Cn(i),r=Cn(r));var v=Xa.fromValues.apply(Xa,(0,Ce.Z)(e)),g=Xa.fromValues.apply(Xa,(0,Ce.Z)(i)),x=Xa.fromValues.apply(Xa,(0,Ce.Z)(r));Xa.sub(a,x,g),Xa.sub(s,v,g),Xa.cross(f,a,s);var C=Xa.create();return Xa.normalize(C,f),C}var Tc,Pp;(function(e){e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn"})(Pp||(Pp={}));var Ip;(function(e){e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon"})(Ip||(Ip={}));function ov(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Math.PI*2/e,n=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:!1;if(zv&&zv[e])return zv[e];var r=gd[e]?gd[e]():gd.cylinder(),n=ny([r],i);return zv[e]=n,n}function KP(e,i){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=new Float32Array(e.length/r*3),s,f,v,g=vec3.create(),x=vec3.create(),C=vec3.create(),T=0,O=i.length;T 0.0 && v_worldDis < u_cityMinSize) { - float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); - gl_FragColor.rgb += r * r * u_circleSweepColor; - } - - gl_FragColor.a *= u_opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,WE=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -attribute vec2 a_Uv; -varying vec2 v_texCoord; - -varying vec4 v_Color; -uniform mat4 u_Mvp; - -uniform float u_circleSweep; -uniform vec2 u_cityCenter; - -varying float v_worldDis; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - - -void main() { - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - v_texCoord = a_Uv; - - if(u_circleSweep > 0.0) { - vec2 lnglatscale = vec2(0.0); - if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { - lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); - } - v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - float lightWeight = calc_lighting(pos); - // v_Color = a_Color; - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - setPickingColor(a_PickingColor); -} -`,XE=function(e){(0,Ir.Z)(r,e);var i=VE(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 - - vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 - vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 - - vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 - vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; - - inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 - inverseP2 = inverseP2 / inverseP2.w; - - float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? - vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); - - vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); - float fh; - - v_intensity = texture2D(u_texture, v_texCoord).r; - fh = toBezier(v_intensity, b).y; - gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); - -} -`,hS=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE -uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 -uniform float u_opacity; -varying vec2 v_texCoord; - -uniform vec2 u_ViewportSize; - -float getBlurIndusty() { - float vW = 2.0/u_ViewportSize.x; - float vH = 2.0/u_ViewportSize.y; - vec2 vUv = v_texCoord; - float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; - float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; - float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; - - float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r; - float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r; - float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r; - - float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; - float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; - float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; - - return( - i11 + - i12 + - i13 + - i21 + - i21 + - i22 + - i23 + - i31 + - i32 + - i33 - )/9.0; -} - - -void main(){ - // float intensity = texture2D(u_texture, v_texCoord).r; - float intensity = getBlurIndusty(); - vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0)); - - gl_FragColor =color; - gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; - -} -`,pS=`precision highp float; -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; - -void main() { - v_texCoord = a_Uv; - - gl_Position = vec4(a_Position.xy, 0, 1.); -} -`,dS=`precision highp float; -uniform float u_intensity; -varying float v_weight; -varying vec2 v_extrude; -#define GAUSS_COEF 0.3989422804014327 -void main(){ - float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); - float val = v_weight * u_intensity * GAUSS_COEF * exp(d); - gl_FragColor = vec4(val, 1., 1., 1.); -} -`,vS=`precision highp float; -attribute vec3 a_Position; -attribute float a_Size; -attribute vec2 a_Dir; -uniform float u_intensity; -uniform float u_radius; -varying vec2 v_extrude; -varying float v_weight; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -#define GAUSS_COEF 0.3989422804014327 - -#pragma include "projection" - -void main(){ - v_weight = a_Size; - float ZERO = 1.0 / 255.0 / 16.0; - float extrude_x = a_Dir.x * 2.0 -1.0; - float extrude_y = a_Dir.y * 2.0 -1.0; - vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); - float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; - v_extrude = extrude_dir * S; - - vec2 offset = project_pixel(v_extrude * u_radius); - vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - } -} -`,by=(gy=(0,Wr.b2)(),gy(yy=function(e){(0,Ir.Z)(r,e);var i=uS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - - gl_FragColor = filterColor(gl_FragColor); -}`,NS=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -varying vec4 v_color; - - -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_lineDir: 1.0; -varying vec4 v_dash_array; - -uniform float u_thetaOffset: 0.314; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" -#pragma include "styleMappingCalThetaOffset" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][1] = thetaOffsetAndOffset.r; - textureOffset = thetaOffsetAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - - - styleMappingMat[3].b = segmentIndex / segmentNumber; - - // styleMappingMat[0][1] - arcThetaOffset - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - } - setPickingColor(a_PickingColor); -} -`,zS=` -#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; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying vec4 v_color; - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; - -uniform float segmentNumber; -varying vec2 v_iconMapUV; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_segmentIndex = styleMappingMat[3].r; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - float d_distance_ratio = styleMappingMat[3].b; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u6BD4\u4F8B - - gl_FragColor = v_color; - - gl_FragColor.a *= opacity; - - if(u_aimate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - } - - // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE - if(u_line_texture == LineTexture) { // while load texture - float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / segmentNumber)); - // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); - - float count = styleMappingMat[3].g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float time = 0.0; - if(u_aimate.x == Animate) { - time = u_time / u_aimate.y; - } - float redioCount = arcRadio * count; - - float u = fract(redioCount - time); - float v = styleMappingMat[3].a; // \u6A2A\u5411 v - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - - vec4 pattern = texture2D(u_texture, uv); - - if(u_aimate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_aimate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= opacity; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - - } else { - gl_FragColor = filterColor(gl_FragColor); - } - // gl_FragColor = filterColor(gl_FragColor); -}`,US=`#define Animate 0.0 -#define LineTexture 1.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -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; -varying vec2 v_iconMapUV; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" -#pragma include "styleMappingCalThetaOffset" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][1] = thetaOffsetAndOffset.r; - textureOffset = thetaOffsetAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - - if(u_aimate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - if(u_lineDir != 1.0) { - d_distance_ratio = 1.0 - d_distance_ratio; - } - } - - styleMappingMat[3].b = d_distance_ratio; - - // styleMappingMat[0][1] - arcThetaOffset - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - styleMappingMat[3].r = d_segmentIndex; - - if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap - arcDistrance *= 1000000.0; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox - // arcDistrance *= 8.0; - arcDistrance = project_pixel_allmap(arcDistrance); - } - v_iconMapUV = a_iconMapUV; - - float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 - float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - styleMappingMat[3].g = texCount; - - float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB - styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - } - - - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - } - setPickingColor(a_PickingColor); -} -`,ZS=`#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; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying vec4 v_color; - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; - -uniform float segmentNumber; -varying vec2 v_iconMapUV; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float d_segmentIndex = styleMappingMat[3].r; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); -}`,jS=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -varying vec4 v_color; - -uniform float u_lineDir: 1.0; - -uniform float u_thetaOffset: 0.314; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" -#pragma include "styleMappingCalThetaOffset" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke -> thetaOffset... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 thetaOffsetAndOffset = calThetaOffsetAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][1] = thetaOffsetAndOffset.r; - textureOffset = thetaOffsetAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - - styleMappingMat[3].b = d_distance_ratio; - - // styleMappingMat[0][1] - arcThetaOffset - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, styleMappingMat[0][1]), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - styleMappingMat[3].r = d_segmentIndex; - - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - } - setPickingColor(a_PickingColor); -} -`,VS={solid:0,dash:1},GS=function(e){(0,Ir.Z)(r,e);var i=DS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&gr.length>0?this.createTexture2D({flipY:!0,data:gr,format:G.LUMINANCE,type:G.FLOAT,width:un,height:Ln}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}j.length===2&&j.push(0,0);var Vn=0,Fa=[0,0,0,0],Ro=[0,0,0,0];return v&&g&&(Fa=Ji(v),Ro=Ji(g),Vn=1),this.rendererService.getDirty()&&this.texture.bind(),{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_thetaOffset:fa()(ar)?ar:0,u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:_t,u_line_type:VS[O||"solid"],u_dash_array:j,u_blur:.9,u_lineDir:te?1:-1,u_texture:this.texture,u_line_texture:Ne?1:0,u_icon_step:ot,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:Vn,u_sourceColor:Fa,u_targetColor:Ro}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor,v=a.lineType;return v==="dash"?{frag:BS,vert:NS,type:"dash"}:s&&f?{frag:ZS,vert:jS,type:"linear"}:{frag:zS,vert:US,type:"normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s,v=a.mask,g=v===void 0?!1:v,x=a.maskInside,C=x===void 0?!0:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return[this.layer.buildLayerModel({moduleName:"arc2dline"+j,vertexShader:k,fragmentShader:O,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),segmentNumber:f,stencil:Pa(g,C)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function HS(e){var i=WS();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function WS(){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(e){return!1}}var XS=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#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; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying vec4 v_color; - -uniform float u_line_texture: 0.0; -uniform sampler2D u_texture; -uniform vec2 u_textSize; -varying float v_segmentIndex; -uniform float segmentNumber; - -varying vec2 v_iconMapUV; - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -varying mat4 styleMappingMat; - -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = styleMappingMat[3].g; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - gl_FragColor = v_color; - - gl_FragColor.a *= opacity; - if(u_line_type == LineTypeDash) { - float flag = 0.; - float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - } - - if(u_aimate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); - - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_aimate - // x enable - // y duration - // z interval - // w trailLength - } - - if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture - // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); - float arcRadio = v_segmentIndex / (segmentNumber - 1.0); - float count = styleMappingMat[3].b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float time = 0.0; - if(u_aimate.x == Animate) { - time = u_time / u_aimate.y; - } - float redioCount = arcRadio * count; - - float u = fract(redioCount - time); - - float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - if(u_aimate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_aimate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= opacity; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - discard; - } else { - gl_FragColor = filterColor(pattern); - } - } - - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,YS=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -varying vec4 v_color; -// varying vec2 v_normal; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // TODO: + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // TODO: \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_aimate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - } - styleMappingMat[3].g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - - - v_segmentIndex = a_Position.x; - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); - float pixelLen = project_pixel_texture(u_icon_step); - styleMappingMat[3].b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - vec2 projectOffset = project_pixel(offset); - float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - } - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,qS=` -#define Animate 0.0 - -uniform float u_opacity; -uniform float u_blur : 0.9; -varying float v_segmentIndex; -uniform float segmentNumber; - - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -varying mat4 styleMappingMat; - -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = styleMappingMat[3].g; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - gl_FragColor = mix(u_sourceColor, u_targetColor, v_segmentIndex/segmentNumber); - - gl_FragColor.a *= opacity; - - if(u_aimate.x == Animate) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); - - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_aimate - // x enable - // y duration - // z interval - // w trailLength - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,KS=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -varying vec4 v_color; -// varying vec2 v_normal; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // TODO: + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // TODO: \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_aimate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - } - styleMappingMat[3].g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - - - v_segmentIndex = a_Position.x; - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); - float pixelLen = project_pixel_texture(u_icon_step); - styleMappingMat[3].b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - vec2 projectOffset = project_pixel(offset); - float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - } - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,$S={solid:0,dash:1},QS=function(e){(0,Ir.Z)(r,e);var i=HS(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&un.length>0?this.createTexture2D({flipY:!0,data:un,format:G.LUMINANCE,type:G.FLOAT,width:Ln,height:Vn}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_globel:this.mapService.version==="GLOBEL"?1:0,u_globel_radius:Jg,u_global_height:_t,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:ot,u_line_type:$S[O]||0,u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:qt,u_sourceColor:ar,u_targetColor:Pr}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor;return s&&f?{frag:qS,vert:KS,type:"linear"}:{frag:XS,vert:YS,type:"normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s,v=a.mask,g=v===void 0?!1:v,x=a.maskInside,C=x===void 0?!0:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return[this.layer.buildLayerModel({moduleName:"arc3Dline"+j,vertexShader:k,fragmentShader:O,triangulation:Zv,blend:this.getBlend(),segmentNumber:f,stencil:Pa(g,C)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function JS(e){var i=eC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}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(e){return!1}}var tC=`#define Animate 0.0 - -uniform float u_opacity; -uniform float u_blur : 0.9; -// varying vec2 v_normal; -varying vec4 v_color; - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -uniform float segmentNumber; -varying float v_distance_ratio; - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" - -void main() { - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, v_distance_ratio); - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - - gl_FragColor.a *= u_opacity; - - if(u_aimate.x == Animate) { - float animateSpeed = u_time / u_aimate.y; // \u8FD0\u52A8\u901F\u5EA6 - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - } -}`,rC=`#define Animate 0.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -varying vec4 v_color; - -uniform float u_lineDir: 1.0; - -// \u504F\u79FB\u91CF -uniform float u_thetaOffset: 0.314; - -uniform float u_opacity: 1.0; -varying float v_distance_ratio; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = u_thetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - - v_distance_ratio = segmentIndex / segmentNumber; - - if(u_aimate.x == Animate && u_lineDir != 1.0) { - v_distance_ratio = 1.0 - v_distance_ratio; - } - - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(curr.xy + offset, 0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, 0, 1.0)); - } -} -`,nC=function(e){(0,Ir.Z)(r,e);var i=JS(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.sourceColor,g=a.targetColor,x=a.forward,C=x===void 0?!0:x,T=a.segmentNumber,O=T===void 0?30:T,k=a.thetaOffset,j=k===void 0?.314:k,X=0,te=[0,0,0,0],be=[0,0,0,0];return v&&g&&(te=Ji(v),be=Ji(g),X=1),{u_thetaOffset:j,u_opacity:fa()(f)?f:1,segmentNumber:O,u_blur:.9,u_lineDir:C?1:-1,u_linearColor:X,u_sourceColor:te,u_targetColor:be}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.segmentNumber,f=s===void 0?30:s;return[this.layer.buildLayerModel({moduleName:"arc2dminiline",vertexShader:rC,fragmentShader:tC,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),segmentNumber:f})]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(s,f,v,g){return[v[3],v[4],v[5],v[6]]}}})}}]),r}(fo);function iC(e){var i=aC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function aC(){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(e){return!1}}var oC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#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; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying float v_distance_ratio; -varying vec4 v_color; - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -uniform float u_line_texture: 0.0; -uniform sampler2D u_texture; -uniform vec2 u_textSize; -uniform float segmentNumber; - -varying vec2 v_iconMapUV; - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -varying mat4 styleMappingMat; - -#pragma include "picking" -#pragma include "project" -#pragma include "projection" - -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; - float d_segmentIndex = styleMappingMat[3].g; - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - // float blur = 1.- smoothstep(u_blur, 1., length(v_normal.xy)); - // float blur = smoothstep(1.0, u_blur, length(v_normal.xy)); - gl_FragColor.a *= opacity; - if(u_line_type == LineTypeDash) { - float flag = 0.; - float dashLength = mod(v_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - } - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F - if(u_aimate.x == Animate) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- smoothstep(0.0, 1.0, v_distance_ratio), u_aimate.z)* (1.0/ u_aimate.z) + u_time / u_aimate.y); - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { - float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); - // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); - float count = styleMappingMat[3].b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - float u = fract(arcRadio * count - animateSpeed * count); - // float u = fract(arcRadio * count - animateSpeed); - if(u_aimate.x == Animate) { - u = gl_FragColor.a/opacity; - } - - float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= opacity; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } else { - gl_FragColor = filterColor(gl_FragColor); - } - - // gl_FragColor = filterColor(gl_FragColor); -}`,sC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float segmentNumber; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -varying vec4 v_color; -// varying vec2 v_normal; - -varying float v_distance_ratio; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} -float getAngularDist (vec2 source, vec2 target) { - vec2 delta = source - target; - vec2 sin_half_delta = sin(delta / 2.0); - float a = - sin_half_delta.y * sin_half_delta.y + - cos(source.y) * cos(target.y) * - sin_half_delta.x * sin_half_delta.x; - return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); -} - -vec2 midPoint(vec2 source, vec2 target) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = 0.314; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - return mid; -} -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} - -vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - vec2 mid = midPoint(source, target); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); - }else { - if(abs(angularDist - PI) < 0.001) { - return (1.0 - t) * source + t * target; - } - float a = sin((1.0 - t) * angularDist) / sin(angularDist); - float b = sin(t * angularDist) / sin(angularDist); - vec2 sin_source = sin(source); - vec2 cos_source = cos(source); - vec2 sin_target = sin(target); - vec2 cos_target = cos(target); - float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; - float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; - float z = a * sin_source.y + b * sin_target.y; - return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); - } -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // dataset \u6570\u636E\u96C6 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - vec2 source = radians(a_Instance.rg); - vec2 target = radians(a_Instance.ba); - float angularDist = getAngularDist(source, target); - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - if(u_line_type == LineTypeDash) { - v_distance_ratio = segmentIndex / segmentNumber; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - total_Distance = total_Distance*8.0; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba); - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_aimate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; - } - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - v_distance_ratio = segmentIndex / segmentNumber; - vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); - vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); - - styleMappingMat[3].g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F - if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; - float d_arcDistrance = length(source - target); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap - d_arcDistrance = d_arcDistrance * 1000000.0; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox - d_arcDistrance = project_pixel_allmap(d_arcDistrance); - } - float d_pixelLen = project_pixel(u_icon_step)/8.0; - styleMappingMat[3].b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - styleMappingMat[3].a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(curr.xy + offset, curr.z, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); - } - setPickingColor(a_PickingColor); -} - -`,uC={solid:0,dash:1},lC=function(e){(0,Ir.Z)(r,e);var i=iC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&qr.length>0?this.createTexture2D({flipY:!0,data:qr,format:G.LUMINANCE,type:G.FLOAT,width:gr,height:un}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,segmentNumber:ot,u_line_type:uC[O]||0,u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:bt,u_sourceColor:_t,u_targetColor:qt}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"greatcircleline",vertexShader:sC,fragmentShader:oC,triangulation:Zv,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:On.Attribute,descriptor:{name:"a_Instance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:4,update:function(f,v,g,x){return[g[3],g[4],g[5],g[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function cC(e){var i=fC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}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(e){return!1}}var hC=`#define LineTypeSolid 0.0 -uniform float u_opacity : 1.0; - -varying vec4 v_color; - -// dash -varying vec4 v_dash_array; - -#pragma include "picking" - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 - -varying mat4 styleMappingMat; -// [animate, duration, interval, trailLength], -void main() { - float opacity = styleMappingMat[0][0]; - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - gl_FragColor = v_color; - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 - // dash line - - float flag = 0.; - float dashLength = mod(d_distance_ratio, v_dash_array.x + v_dash_array.y + v_dash_array.z + v_dash_array.w); - if(dashLength < v_dash_array.x || (dashLength > (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - - gl_FragColor = filterColor(gl_FragColor); -} -`,pC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -attribute vec2 a_iconMapUV; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; - -uniform float u_vertexScale: 1.0; - -#pragma include "projection" -#pragma include "picking" - -varying vec4 v_color; -varying vec4 v_dash_array; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; - v_color = a_Color; - - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - vec2 offset = project_pixel(size.xy); - - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - styleMappingMat[3][0] = a_DistanceAndIndex.x / a_Total_Distance; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - styleMappingMat[3][1] = a_DistanceAndIndex.x; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - - 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)); - - 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)); - } 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) { - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,dC=`#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_blur : 0.99; -uniform float u_opacity : 1.0; -uniform float u_textureBlend; - -uniform float u_borderWidth: 0.0; -uniform vec4 u_borderColor; -varying vec4 v_color; - -// line texture -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; - -varying vec2 v_iconMapUV; - -#pragma include "picking" - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 - -varying mat4 styleMappingMat; -// [animate, duration, interval, trailLength], -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - gl_FragColor = v_color; - // anti-alias - // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 - if(u_aimate.x == Animate) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + animateSpeed); - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } - - if(u_line_texture == LineTexture) { // while load texture - float aDistance = styleMappingMat[3].g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - float d_texPixelLen = styleMappingMat[3].b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); - float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - // v = max(smoothstep(0.95, 1.0, v), v); - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - - // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, vec2(u, v))); - // gl_FragColor = filterColor(gl_FragColor + texture2D(u_texture, uv)); - vec4 pattern = texture2D(u_texture, uv); - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor += pattern; - } else { // replace - pattern.a *= opacity; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = pattern; - } - } - - float v = styleMappingMat[3].a; - float borderWidth = min(0.5, u_borderWidth); - // \u7ED8\u5236 border - if(borderWidth > 0.01) { - float borderOuterWidth = borderWidth/2.0; - - if(v >= 1.0 - borderWidth || v <= borderWidth) { - if(v > borderWidth) { - float linear = smoothstep(0.0, 1.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); - } - } - - if(v < borderOuterWidth) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth); - } else if(v > 1.0 - borderOuterWidth) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); - } - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,Sy=` -#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -attribute vec2 a_iconMapUV; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; - -uniform float u_heightfixed: 0.0; -uniform float u_vertexScale: 1.0; -uniform float u_raisingHeight: 0.0; - -#pragma include "projection" -#pragma include "picking" - -varying vec4 v_color; - -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; - - -uniform float u_linearColor: 0; -uniform float u_arrow: 0.0; -uniform float u_arrowHeight: 3.0; -uniform float u_arrowWidth: 2.0; -uniform float u_tailWidth: 1.0; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -vec2 calculateArrow(vec2 offset) { - /* - * \u5728\u652F\u6301\u7BAD\u5934\u7684\u65F6\u5019\uFF0C\u7B2C\u4E8C\u3001\u7B2C\u4E09\u7EC4\u9876\u70B9\u662F\u989D\u5916\u63D2\u5165\u7528\u4E8E\u6784\u5EFA\u9876\u70B9\u7684 - */ - float arrowFlag = -1.0; - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // \u9AD8\u5FB7 2.0 \u7684\u65CB\u8F6C\u89D2\u5EA6\u4E0D\u540C - arrowFlag = 1.0; - } - float pi = arrowFlag * 3.1415926/2.; - if(a_Miter < 0.) { - // \u6839\u636E\u7EBF\u7684\u4E24\u4FA7\u504F\u79FB\u4E0D\u540C\u3001\u65CB\u8F6C\u7684\u65B9\u5411\u76F8\u53CD - pi = -pi; - } - highp float angle_sin = sin(pi); - highp float angle_cos = cos(pi); - // \u8BA1\u7B97\u5782\u76F4\u4E0E\u7EBF\u65B9\u5411\u7684\u65CB\u8F6C\u77E9\u9635 - mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); - float arrowWidth = u_arrowWidth; - float arrowHeight = u_arrowHeight; - - vec2 arrowOffset = vec2(0.0); - /* - * a_DistanceAndIndex.y \u7528\u4E8E\u6807\u8BB0\u5F53\u524D\u9876\u70B9\u5C5E\u4E8E\u54EA\u4E00\u7EC4\uFF08\u4E24\u4E2A\u9876\u70B9\u4E00\u7EC4\uFF0C\u6784\u6210\u7EBF\u7684\u5176\u5B9E\u662F\u77E9\u5F62\uFF0C\u6700\u7B80\u9700\u8981\u56DB\u4E2A\u9876\u70B9\u3001\u4E24\u7EC4\u9876\u70B9\u6784\u6210\uFF09 - */ - if(a_DistanceAndIndex.y == 0.0) { - // \u7BAD\u5934\u5C16\u90E8 - offset = vec2(0.0); - } else if(a_DistanceAndIndex.y == 1.0) { - // \u7BAD\u5934\u4E24\u4FA7 - arrowOffset = rotation_matrix*(offset * arrowHeight); - offset += arrowOffset; // \u6CBF\u7EBF\u504F\u79FB - offset = offset * arrowWidth; // \u5782\u76F4\u7EBF\u5411\u5916\u504F\u79FB\uFF08\u662F\u6784\u5EFA\u7BAD\u5934\u4E24\u4FA7\u7684\u9876\u70B9\uFF09 - } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) { - // \u504F\u79FB\u5176\u4F59\u7684\u70B9\u4F4D\uFF08\u5C06\u957F\u5EA6\u8BA9\u4F4D\u7ED9\u7BAD\u5934\uFF09 - arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth; - offset += arrowOffset;// \u6CBF\u7EBF\u504F\u79FB - } - - return offset; -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - - v_iconMapUV = a_iconMapUV; - d_texPixelLen = project_float_pixel(u_icon_step); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - d_texPixelLen *= 10.0; - } - - v_color = a_Color; - - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - - vec2 offset = project_pixel(size.xy); - - float lineDistance = a_DistanceAndIndex.x; - float currentLinePointRatio = lineDistance / a_Total_Distance; - - if(u_arrow > 0.0) { - // \u8BA1\u7B97\u7BAD\u5934 - offset = calculateArrow(offset); - - if(a_DistanceAndIndex.y > 4.0) { - offset *= mix(1.0, u_tailWidth, currentLinePointRatio); - } - } - - float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 - float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 - float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - styleMappingMat[3][0] = currentLinePointRatio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - styleMappingMat[3][1] = lineDistance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - styleMappingMat[3][2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - styleMappingMat[3][3] = texV; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - 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 - 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 { - // 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 - 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 + h, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,vC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_blur : 0.99; -uniform float u_line_type: 0.0; -uniform float u_opacity : 1.0; - -varying vec4 v_color; - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" - - -varying mat4 styleMappingMat; -// [animate, duration, interval, trailLength], -void main() { - float opacity = styleMappingMat[0][0]; - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 - gl_FragColor = filterColor(gl_FragColor); -} -`,mC={solid:0,dash:1},Cy=function(e){(0,Ir.Z)(r,e);var i=cC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&Oc.length>0?this.createTexture2D({flipY:!0,data:Oc,format:G.LUMINANCE,type:G.FLOAT,width:gm,height:g0}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,u_line_type:mC[O],u_dash_array:j,u_texture:this.texture,u_line_texture:te?1:0,u_icon_step:Ne,u_textSize:[1024,this.iconService.canvasHeight||128],u_borderWidth:_t,u_borderColor:Ji(ar),u_linearColor:Fa,u_sourceColor:Ro,u_targetColor:Ls,u_heightfixed:Number(un),u_vertexScale:ot,u_raisingHeight:Number(qr),u_arrow:Number(Vn.enable),u_arrowHeight:Vn.arrowHeight||3,u_arrowWidth:Vn.arrowWidth||2,u_tailWidth:Vn.tailWidth===void 0?1:Vn.tailWidth}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.depth,C=x===void 0?!1:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return this.layer.triangulation=sv,[this.layer.buildLayerModel({moduleName:"line_"+j,vertexShader:k,fragmentShader:O,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:C},stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor,v=a.lineType;return v==="dash"?{frag:hC,vert:pC,type:"dash"}:s&&f?{frag:vC,vert:Sy,type:"linear"}:{frag:dC,vert:Sy,type:"normal"}}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:On.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x,C,T){return T===void 0?[g[3],10]:[g[3],T]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0],T[1]]:[T,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function gC(e){var i=yC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function yC(){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(e){return!1}}var _C=`uniform float u_opacity : 1.0; -uniform sampler2D u_texture; - -#pragma include "picking" - -varying mat4 styleMappingMat; - -void main() { - float opacity = styleMappingMat[0][0]; - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - gl_FragColor = texture2D(u_texture, vec2(d_distance_ratio, 0.5)); - - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 - gl_FragColor = filterColor(gl_FragColor); -} -`,xC=` -attribute float a_Miter; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -uniform float u_heightfixed: 0.0; -uniform float u_vertexScale: 1.0; -uniform float u_raisingHeight: 0.0; - -uniform float u_opacity: 1.0; - -#pragma include "projection" -#pragma include "picking" - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - - vec2 offset = project_pixel(size.xy); - - float lineDistance = a_DistanceAndIndex.x; - float currentLinePointRatio = lineDistance / a_Total_Distance; - - - float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 - float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 - float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - styleMappingMat[3][0] = currentLinePointRatio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - 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 - 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 { - // 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 - 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 + h, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,bC=function(e){(0,Ir.Z)(r,e);var i=gC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&X.length>0?this.createTexture2D({flipY:!0,data:X,format:G.LUMINANCE,type:G.FLOAT,width:te,height:be}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_texture:this.colorTexture,u_heightfixed:Number(O),u_vertexScale:g,u_raisingHeight:Number(C)}}},{key:"initModels",value:function(){return this.updateTexture(),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.colorTexture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.depth,C=x===void 0?!1:x,T=this.getShaders(),O=T.frag,k=T.vert,j=T.type;return this.layer.triangulation=sv,[this.layer.buildLayerModel({moduleName:"line_"+j,vertexShader:k,fragmentShader:O,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:C},stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){return{frag:_C,vert:xC,type:"linear_rampColors"}}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:On.Attribute,descriptor:{name:"a_DistanceAndIndex",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g,x,C){return C===void 0?[v[3],10]:[v[3],C]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0],C[1]]:[C,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(s,f,v,g,x){return x}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[4]]}}})}}]),r}(fo);function EC(e){var i=SC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function SC(){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(e){return!1}}var CC=`uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -varying mat4 styleMappingMat; -void main() { - float opacity = styleMappingMat[0][0]; - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - gl_FragColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 -} -`,AC=` -varying vec4 v_color; -varying mat4 styleMappingMat; -void main() { - float opacity = styleMappingMat[0][0]; - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - gl_FragColor = v_color; - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 -} -`,Ay=`attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Position; - -attribute float a_Total_Distance; -attribute float a_Distance; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -uniform float u_opacity: 1.0; -uniform float u_vertexScale: 1.0; - -#pragma include "projection" - -varying vec4 v_color; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - v_color = a_Color; - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 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 - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy, project_pixel(a_Size.y) + h * 0.2, 1.0)); - } else { - float lineHeight = a_Size.y; - // \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) { - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - h *= 2.0/pow(2.0, 20.0 - u_Zoom); - } - - // #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) { - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, lineHeight + h, 1.0)); - } -} -`,wC=function(e){(0,Ir.Z)(r,e);var i=EC(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.sourceColor,g=a.targetColor,x=a.vertexHeightScale,C=x===void 0?20:x,T=0,O=[0,0,0,0],k=[0,0,0,0];if(v&&g&&(O=Ji(v),k=Ji(g),T=1),this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f})){this.judgeStyleAttributes({opacity:f});var j=this.layer.getEncodedData(),X=this.calDataFrame(this.cellLength,j,this.cellProperties),te=X.data,be=X.width,Ne=X.height;this.rowCount=Ne,this.dataTexture=this.cellLength>0&&te.length>0?this.createTexture2D({flipY:!0,data:te,format:G.LUMINANCE,type:G.FLOAT,width:be,height:Ne}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_linearColor:T,u_sourceColor:O,u_targetColor:k,u_vertexScale:C}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.sourceColor,f=a.targetColor;return s&&f?{frag:CC,vert:Ay,type:"simple_linear"}:{frag:AC,vert:Ay,type:"simple_normal"}}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:BE,primitive:G.LINES,blend:this.getBlend(),depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"distance",type:On.Attribute,descriptor:{name:"a_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0],C[1]]:[C,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(s,f,v,g,x){return x}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){return[v[4]]}}})}}]),r}(fo);function TC(e){var i=MC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function MC(){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(e){return!1}}var PC=`#define Animate 0.0 -#define LineTexture 1.0 - -uniform float u_opacity : 1.0; -uniform float u_textureBlend; -uniform float u_iconStepCount; - -varying vec4 v_color; - -// line texture -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; - -varying vec2 v_iconMapUV; -varying float v_blur; - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" - -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 - -varying mat4 styleMappingMat; -// [animate, duration, interval, trailLength], -void main() { - float opacity = styleMappingMat[0][0]; - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = styleMappingMat[3].r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - float v = styleMappingMat[3].a; - - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, v); - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - gl_FragColor.a *= opacity; // \u5168\u5C40\u900F\u660E\u5EA6 - if(u_aimate.x == Animate) { - animateSpeed = u_time / u_aimate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_aimate.z)* (1.0/ u_aimate.z) + animateSpeed); - alpha = (alpha + u_aimate.w -1.0) / u_aimate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } - - if(u_line_texture == LineTexture) { // while load texture - float aDistance = styleMappingMat[3].g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - float d_texPixelLen = styleMappingMat[3].b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); - float v = styleMappingMat[3].a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 start - float flag = 0.0; - if(u > 1.0/u_iconStepCount) { - flag = 1.0; - } - u = fract(u*u_iconStepCount); - // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end - - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 - if(flag > 0.0) { - pattern = vec4(0.0); - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= opacity; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } - - - // blur - AA - if(v < v_blur) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur); - } else if(v > 1.0 - v_blur) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,IC=`#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; -attribute vec2 a_iconMapUV; - -attribute float a_Total_Distance; -attribute float a_Distance; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; -uniform float u_heightfixed; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -varying vec4 v_color; -varying float v_blur; - -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; - -uniform float u_linearColor: 0; - -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "light" -#pragma include "styleMappingCalOpacity" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // distance_ratio/distance/pixelLen/texV - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - - v_iconMapUV = a_iconMapUV; - if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - d_texPixelLen = project_pixel(u_icon_step); - } else { - d_texPixelLen = u_icon_step; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - d_texPixelLen *= 10.0; - } - - if(u_aimate.x == Animate || u_linearColor == 1.0) { - d_distance_ratio = a_Distance / a_Total_Distance; - } - - float miter = (a_Miter + 1.0)/2.0; - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - styleMappingMat[3][0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - styleMappingMat[3][1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - styleMappingMat[3][2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - styleMappingMat[3][3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - originSize = project_float_pixel(a_Size.x); - } - - float wallHeight = originSize * miter; - float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); - - v_blur = min(project_float_pixel(2.0) / originSize, 0.05); - - v_color = vec4(a_Color.rgb * lightWeight, a_Color.w); - // v_color = a_Color; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,OC=function(e){(0,Ir.Z)(r,e);var i=TC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&ar.length>0?this.createTexture2D({flipY:!0,data:ar,format:G.LUMINANCE,type:G.FLOAT,width:Pr,height:qr}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_heightfixed:Number(O),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_textureBlend:C==="normal"?0:1,u_texture:this.texture,u_line_texture:j?1:0,u_iconStepCount:Ne,u_icon_step:te,u_textSize:[1024,this.iconService.canvasHeight||128],u_linearColor:$e,u_sourceColor:ot,u_targetColor:bt}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption;return{u_aimate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){return[this.layer.buildLayerModel({moduleName:"linewall",vertexShader:IC,fragmentShader:PC,triangulation:sv,primitive:G.TRIANGLES,blend:this.getBlend(),depth:{enable:!1}})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"distance",type:On.Attribute,descriptor:{name:"a_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[3]]}}}),this.styleAttributeService.registerStyleAttribute({name:"total_distance",type:On.Attribute,descriptor:{name:"a_Total_Distance",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[5]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=f.size,T=C===void 0?1:C;return Array.isArray(T)?[T[0],T[1]]:[T,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"miter",type:On.Attribute,descriptor:{name:"a_Miter",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){return[g[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_iconMapUV",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.texture,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo),RC={arc:GS,arcmini:nC,arc3d:QS,greatcircle:lC,wall:OC,line:Cy,simple:wC,linearline:bC},LC=RC;function kC(e){var i=DC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function DC(){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(e){return!1}}var wy=function(e){(0,Ir.Z)(r,e);var i=kC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f 0.0) { - gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - barLinearZ): barLinearZ; - } - - // picking - if(u_pickLight > 0.0) { - gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,zC=`precision highp float; - -#define pi 3.1415926535 -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec3 a_Position; -attribute vec3 a_Pos; -attribute vec4 a_Color; -attribute vec3 a_Size; -attribute vec3 a_Normal; - -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_globel; -uniform float u_r; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform float u_lightEnable: 1; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -float getYRadian(float x, float z) { - if(x > 0.0 && z > 0.0) { - return atan(x/z); - } else if(x > 0.0 && z <= 0.0){ - return atan(-z/x) + pi/2.0; - } else if(x <= 0.0 && z <= 0.0) { - return pi + atan(x/z); //atan(x/z) + - } else { - return atan(z/-x) + pi*3.0/2.0; - } -} - -float getXRadian(float y, float r) { - return atan(y/r); -} - -void main() { - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - lightWeight - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - linearZ(\u5782\u76F4\u65B9\u5411 0 - 1 \u7684\u503C) - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - vec3 size = a_Size * a_Position; - - // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C - styleMappingMat[2][3] = a_Position.z; - - vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB - if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - offset = offset * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - offset *= 4.0/pow(2.0, 21.0 - u_Zoom); - } - } - - - vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); - - // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F - vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); - - // \u5706\u67F1\u5149\u7167\u6548\u679C - float lightWeight = 1.0; - if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 - lightWeight = calc_lighting(pos); - } - styleMappingMat[1][3] = lightWeight; - - v_color =vec4(a_Color.rgb * lightWeight, a_Color.w); - - // gl_Position = project_common_position_to_clipspace(pos); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * pos; - } else { - gl_Position = project_common_position_to_clipspace(pos); - } - - if(u_globel > 0.0) { - // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 - //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 - float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); - float xRadian = getXRadian(a_Pos.y, r); - float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 mx = mat4( - 1,0,0,0, - 0,xcos,-xsin,0, - 0,xsin,xcos,0, - 0,0,0,1); - - //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 - float yRadian = getYRadian(a_Pos.x, a_Pos.z); - float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 my = mat4( - ycos,0,-ysin,0, - 0,1,0,0, - ysin,0,ycos,0, - 0,0,0,1); - - gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); - } - - setPickingColor(a_PickingColor); -} -`,Ty=function(e){(0,Ir.Z)(r,e);var i=FC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&bt.length>0?this.createTexture2D({flipY:!0,data:bt,format:G.LUMINANCE,type:G.FLOAT,width:_t,height:qt}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}var ar=0,Pr=[0,0,0,0],qr=[0,0,0,0];if(x&&C&&(Pr=Ji(x),qr=Ji(C),ar=1),this.raiseCount<1&&this.raiserepeat>0&&f.enable){var gr=f.speed,un=gr===void 0?.01:gr,Ln=f.repeat,Vn=Ln===void 0?!1:Ln;this.raiseCount+=un,this.raiseCount>=1&&(this.raiserepeat>1?(this.raiseCount=0,this.raiserepeat--):this.raiseCount=1)}return{u_pickLight:Number(O),u_heightfixed:Number(j),u_r:f.enable&&this.raiserepeat>0?this.raiseCount:1,u_globel:this.mapService.version==="GLOBEL"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(g)?g:1,u_linearColor:ar,u_sourceColor:Pr,u_targetColor:qr,u_opacitylinear:Number(te.enable),u_opacitylinear_dir:te.dir==="up"?1:0,u_lightEnable:Number(Ne)}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.depth,f=s===void 0?!0:s,v=a.animateOption.repeat,g=v===void 0?1:v;return this.raiserepeat=g,[this.layer.buildLayerModel({moduleName:"pointExtrude2",vertexShader:zC,fragmentShader:NC,triangulation:cy,blend:this.getBlend(),cull:{enable:!0,face:h(this.mapService.version)},depth:{enable:f}})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.mapService.version==="GLOBEL";this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C=f.size;if(C){var T=[];return Array.isArray(C)&&(T=C.length===2?[C[0],C[0],C[1]]:C),Array.isArray(C)||(T=[C,C,C]),T}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x,C){return C}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:On.Attribute,descriptor:{name:"a_Pos",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v){var g=Mp(f.coordinates);return a?ty([g[0],g[1]]):[g[0],g[1],0]}}})}}]),r}(fo);function UC(e){var i=ZC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ZC(){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(e){return!1}}var My=` -uniform float u_additive; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -uniform float u_time; -uniform vec4 u_aimate: [ 0, 2., 1.0, 0.2 ]; - -#pragma include "sdf_2d" -#pragma include "picking" - -void main() { - - vec4 textrueStroke = vec4( - styleMappingMat[1][0], - styleMappingMat[1][1], - styleMappingMat[1][2], - styleMappingMat[1][3] - ); - - float opacity = styleMappingMat[0][0]; - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = smoothstep( - antialiasblur, - 0.0, - inner_df - ); - float PI = 3.14159; - float N_RINGS = 3.0; - float FREQ = 1.0; - - gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); - - float d = length(v_data.xy); - if(d > 0.5) { - discard; - } - float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_aimate.z - u_aimate.y * u_time)), 0.0, 1.0); - - // TODO: \u6839\u636E\u53E0\u52A0\u6A21\u5F0F\u9009\u62E9\u6548\u679C - if(u_additive > 0.0) { - gl_FragColor *= intensity; - // TODO: \u4F18\u5316\u6C34\u6CE2\u70B9 blend additive \u6A21\u5F0F\u4E0B\u6709\u7684\u62FE\u53D6\u6548\u679C - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity); - gl_FragColor = filterColor(gl_FragColor); - } -} -`,jC=` -uniform float u_globel; -uniform float u_additive; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -#pragma include "sdf_2d" -#pragma include "picking" - - -void main() { - int shape = int(floor(v_data.w + 0.5)); - - vec4 textrueStroke = vec4( - styleMappingMat[1][0], - styleMappingMat[1][1], - styleMappingMat[1][2], - styleMappingMat[1][3] - ); - - float opacity = styleMappingMat[0][0]; - float stroke_opacity = styleMappingMat[0][1]; - float strokeWidth = styleMappingMat[0][2]; - vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke; - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius + strokeWidth); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - if (shape == 0) { - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - } else if (shape == 1) { - outer_df = sdEquilateralTriangle(1.1 * v_data.xy); - inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); - } else if (shape == 2) { - outer_df = sdBox(v_data.xy, vec2(1.)); - inner_df = sdBox(v_data.xy, vec2(r)); - } else if (shape == 3) { - outer_df = sdPentagon(v_data.xy, 0.8); - inner_df = sdPentagon(v_data.xy, r * 0.8); - } else if (shape == 4) { - outer_df = sdHexagon(v_data.xy, 0.8); - inner_df = sdHexagon(v_data.xy, r * 0.8); - } else if (shape == 5) { - outer_df = sdOctogon(v_data.xy, 1.0); - inner_df = sdOctogon(v_data.xy, r); - } else if (shape == 6) { - outer_df = sdHexagram(v_data.xy, 0.52); - inner_df = sdHexagram(v_data.xy, r * 0.52); - } else if (shape == 7) { - outer_df = sdRhombus(v_data.xy, vec2(1.0)); - inner_df = sdRhombus(v_data.xy, vec2(r)); - } else if (shape == 8) { - outer_df = sdVesica(v_data.xy, 1.1, 0.8); - inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); - } - - if(u_globel > 0.0) { - // TODO: \u5730\u7403\u6A21\u5F0F\u4E0B\u907F\u514D\u591A\u4F59\u7247\u5143\u7ED8\u5236\uFF0C\u540C\u65F6\u4E5F\u80FD\u907F\u514D\u6709\u7528\u7247\u5143\u5728\u900F\u660E\u4E14\u91CD\u53E0\u7684\u60C5\u51B5\u4E0B\u65E0\u6CD5\u5199\u5165 - // \u4ED8\u51FA\u7684\u4EE3\u4EF7\u662F\u8FB9\u7F18\u4F1A\u6709\u4E00\u4E9B\u952F\u9F7F - if(outer_df > antialiasblur + 0.018) discard; - } - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep( - antialiasblur, - 0.0, - inner_df - ); - - if(strokeWidth < 0.01) { - gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); - } else { - gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t); - } - - if(u_additive > 0.0) { - gl_FragColor *= opacity_t; - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor.a *= opacity_t; - gl_FragColor = filterColor(gl_FragColor); - } -} -`,U0=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute float a_Shape; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -uniform float u_globel; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float u_isMeter; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -uniform float u_opacity : 1; -uniform float u_stroke_opacity : 1; -uniform float u_stroke_width : 2; -uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; -uniform vec2 u_offsets; - -uniform float u_blur : 0.0; -uniform float u_raisingHeight: 0.0; - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" -#pragma include "styleMappingCalStrokeOpacity" -#pragma include "styleMappingCalStrokeWidth" - -#pragma include "projection" -#pragma include "picking" - - -void main() { - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - float newSize = setPickingSize(a_Size); - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 strokeOpacityAndOffset = calStrokeOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][1] = strokeOpacityAndOffset.r; - textureOffset = strokeOpacityAndOffset.g; - - vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][2] = strokeWidthAndOffset.r; - textureOffset = strokeWidthAndOffset.g; - - vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0); - if(hasStroke()) { - vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R - textureOffset += 1.0; - - vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G - textureOffset += 1.0; - - vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B - textureOffset += 1.0; - - vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A - textureOffset += 1.0; - } else { - if(u_stroke_color == vec4(0.0)) { - styleMappingMat[1][0] = v_color.r; - styleMappingMat[1][1] = v_color.g; - styleMappingMat[1][2] = v_color.b; - styleMappingMat[1][3] = v_color.a; - } else { - styleMappingMat[1][0] = u_stroke_color.r; - styleMappingMat[1][1] = u_stroke_color.g; - styleMappingMat[1][2] = u_stroke_color.b; - styleMappingMat[1][3] = u_stroke_color.a; - } - } - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - - // unpack color(vec2) - v_color = a_Color; - - // radius(16-bit) - v_radius = newSize; - - // TODO: billboard - // anti-alias - // float antialiased_blur = -max(u_blur, antialiasblur); - float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, u_blur); - - vec2 offset = (extrude.xy * (newSize + u_stroke_width) + textrueOffsets); - vec3 aPosition = a_Position; - if(u_isMeter < 1.0) { - // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - offset = project_pixel(offset); - } else { - // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - antialiasblur *= pow(19.0 - u_Zoom, 2.0); - antialiasblur = max(antialiasblur, -0.01); - // offset *= 0.5; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - aPosition.xy += offset; - offset.x = 0.0; - offset.y = 0.0; - } - } - - // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F - v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - - - // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - float raiseHeight = u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raiseHeight = u_raisingHeight * mapboxZoomScale; - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(project_pos.xy + offset, raiseHeight, 1.0); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, u_raisingHeight, 1.0)); - } - - if(u_globel > 0.0) { - gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1, 1.0); - } - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - - setPickingColor(a_PickingColor); -} -`,Py=function(e){(0,Ir.Z)(r,e);var i=UC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&_t.length>0?this.createTexture2D({flipY:!0,data:_t,format:G.LUMINANCE,type:G.FLOAT,width:qt,height:ar}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_raisingHeight:Number($e),u_isMeter:Number(this.isMeter),u_blur:be,u_additive:X==="additive"?1:0,u_globel:this.mapService.version===js.GLOBEL?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_stroke_opacity:fa()(g)?g:1,u_stroke_width:fa()(C)?C:1,u_stroke_color:this.getStrokeColor(O),u_offsets:this.isOffsetStatic(j)?j:[0,0]}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption,f=s===void 0?{enable:!1}:s;return{u_aimate:this.animateOption2Array(f),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=a.animateOption,C=x===void 0?{enable:!1}:x,T=this.getShaders(C),O=T.frag,k=T.vert,j=T.type,X=this.mapService.version==="GLOBEL";return this.layer.triangulation=X?ly:Op,[this.layer.buildLayerModel({moduleName:"pointfill_"+j,vertexShader:k,fragmentShader:O,triangulation:X?ly:Op,depth:{enable:X},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(a){if(a.enable)switch(a.type){case"wave":return{frag:My,vert:U0,type:"wave"};default:return{frag:My,vert:U0,type:"wave"}}else return{frag:jC,vert:U0,type:"normal"}}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this,s=this.mapService.version==="GLOBEL";this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(v,g,x,C){var T;if(s){var O=(0,on.Z)(x,3),k=O[0],j=O[1],X=O[2],te=Xa.fromValues(0,0,1),be=Xa.fromValues(k,0,X),Ne=k>=0?Xa.angle(te,be):Math.PI*2-Xa.angle(te,be),$e=Math.PI*2-Math.asin(j/100),ot=zr();Ni(ot,ot,Ne),ui(ot,ot,$e);var bt=Xa.fromValues(1,1,0);Xa.transformMat4(bt,bt,ot),Xa.normalize(bt,bt);var _t=Xa.fromValues(-1,1,0);Xa.transformMat4(_t,_t,ot),Xa.normalize(_t,_t);var qt=Xa.fromValues(-1,-1,0);Xa.transformMat4(qt,qt,ot),Xa.normalize(qt,qt);var ar=Xa.fromValues(1,-1,0);Xa.transformMat4(ar,ar,ot),Xa.normalize(ar,ar),T=[].concat((0,Ce.Z)(bt),(0,Ce.Z)(_t),(0,Ce.Z)(qt),(0,Ce.Z)(ar))}else T=[1,1,0,-1,1,0,-1,-1,0,1,-1,0];var Pr=C%4*3;return[T[Pr],T[Pr+1],T[Pr+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(v,g,x,C){var T=v.size,O=T===void 0?5:T;return Array.isArray(O)?[O[0]*a.meter2coord]:[O*a.meter2coord]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:On.Attribute,descriptor:{name:"a_Shape",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(v,g,x,C){var T=v.shape,O=T===void 0?2:T,k=a.layer.getLayerConfig().shape2d,j=k.indexOf(O);return[j]}}})}}]),r}(fo);function VC(e){var i=GC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function GC(){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(e){return!1}}var HC=`uniform sampler2D u_texture; -uniform vec2 u_textSize; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "sdf_2d" -#pragma include "picking" -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; - -void main() { - - float opacity = styleMappingMat[0][0]; - - vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; - gl_FragColor = texture2D(u_texture, pos); - gl_FragColor.a *= opacity; - - gl_FragColor = filterColor(gl_FragColor); -} -`,WC=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute vec2 a_Uv; -attribute float a_Rotate; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform mat2 u_RotateMatrix; -uniform float u_isMeter; - -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; // icon \u8D34\u56FE\u7684 uv \u5750\u6807 - -uniform float u_opacity : 1; -uniform vec2 u_offsets; - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -void main() { - vec3 extrude = a_Extrude; - - v_uv = (a_Extrude.xy + 1.0)/2.0; - v_uv.y = 1.0 - v_uv.y; - v_Iconuv = a_Uv; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - empty - empty - empty - 0.0, 0.0, 0.0, 0.0, // empty - empty - empty - empty - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - - highp float angle_sin = sin(a_Rotate); - highp float angle_cos = cos(a_Rotate); - mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); - - // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); - vec2 offset = (rotation_matrix * u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); - vec3 aPosition = a_Position; - if(u_isMeter < 1.0) { - // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - offset = project_pixel(offset); - } else { - // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - aPosition.xy += offset; - offset.x = 0.0; - offset.y = 0.0; - } - } - - - // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - } - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - - setPickingColor(a_PickingColor); -} -`,XC=function(e){(0,Ir.Z)(r,e);var i=VC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_isMeter:Number(this.isMeter),u_RotateMatrix:new Float32Array([Math.cos(this.radian),Math.sin(this.radian),-Math.sin(this.radian),Math.cos(this.radian)]),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture);var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:Op,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(){return{frag:HC,vert:WC,type:"point_fillImage"}}},{key:"clearModels",value:function(){var a,s;this.iconService.off("imageUpdate",this.updateTexture),(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"rotate",type:On.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.rotate,T=C===void 0?0:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_Uv",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.shape,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],T=x%4*3;return[C[T],C[T+1],C[T+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]*a.meter2coord]:[T*a.meter2coord]}}})}}]),r}(fo);function YC(e){var i=qC();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function qC(){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(e){return!1}}var KC=` -uniform sampler2D u_texture; -varying vec4 v_color; -varying vec2 v_uv; -uniform vec2 u_textSize; -uniform float u_opacity : 1; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "picking" - -void main(){ - float opacity = styleMappingMat[0][0]; - float size = styleMappingMat[1][0]; - vec2 pos = v_uv / u_textSize + gl_PointCoord / u_textSize * 64.; - vec4 textureColor; - - // Y = 0.299R + 0.587G + 0.114B // \u4EAE\u5EA6\u63D0\u53D6 - - textureColor = texture2D(u_texture, pos); - - // Tip: \u53BB\u9664\u8FB9\u7F18\u90E8\u5206 mipmap \u5BFC\u81F4\u7684\u6DF7\u5408\u53D8\u6697 - float fragmengTocenter = distance(vec2(0.5), gl_PointCoord); - if(fragmengTocenter >= 0.5) { - float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; - textureColor.a *= luma; - } - - - - if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ - gl_FragColor= textureColor; - }else { - gl_FragColor= step(0.01, textureColor.z) * v_color; - } - - gl_FragColor.a = gl_FragColor.a * opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,$C=`precision highp float; -attribute vec3 a_Position; -attribute vec4 a_Color; -attribute vec2 a_Uv; -attribute float a_Size; -varying vec4 v_color; -varying vec2 v_uv; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform vec2 u_offsets; - -uniform float u_opacity : 1; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - styleMappingMat[1][0] = a_Size; - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - v_color = a_Color; - v_uv = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - // vec2 offset = project_pixel(u_offsets); - vec2 offset = project_pixel(textrueOffsets); - - // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0); - } else { - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); - } - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - - setPickingColor(a_PickingColor); -} -`,QC=function(e){(0,Ir.Z)(r,e);var i=YC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f= 0.5) { - float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; - textureColor.a *= luma; - } - - - - if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ - gl_FragColor= textureColor; - }else { - gl_FragColor= step(0.01, textureColor.z) * v_color; - } - - gl_FragColor.a = gl_FragColor.a * opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,rA=`precision highp float; -attribute vec3 a_Position; -attribute vec4 a_Color; -attribute vec2 a_Uv; -attribute float a_Size; -varying vec4 v_color; -varying vec2 v_uv; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform vec2 u_offsets; - -uniform float u_opacity : 1; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - styleMappingMat[1][0] = a_Size; - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - v_color = a_Color; - v_uv = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - // vec2 offset = project_pixel(u_offsets); - vec2 offset = project_pixel(textrueOffsets); - - // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0); - } else { - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy + offset),project_pos.z, 1.0)); - } - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - - setPickingColor(a_PickingColor); -} -`,Iy=function(e){(0,Ir.Z)(r,e);var i=JC(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_texture:this.texture,u_textSize:[1024,this.iconService.canvasHeight||128],u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"initModels",value:function(){return this.registerBuiltinAttributes(),this.updateTexture(),this.iconService.on("imageUpdate",this.updateTexture),this.buildModels()}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"pointImage",vertexShader:rA,fragmentShader:tA,triangulation:fy,primitive:G.POINTS,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]]:[T]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:On.Attribute,descriptor:{name:"a_Uv",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(f,v,g,x){var C=a.iconService.getIconMap(),T=f.shape,O=C[T]||{x:0,y:0},k=O.x,j=O.y;return[k,j]}}})}}]),r}(fo);function nA(e){var i=iA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function iA(){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(e){return!1}}var aA=` -uniform float u_opacity : 1; -uniform vec2 u_offsets; -varying vec4 v_color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "picking" -void main() { - float opacity = styleMappingMat[0][0]; - - gl_FragColor = v_color; - // gl_FragColor.a =gl_FragColor.a * u_opacity; - gl_FragColor.a =gl_FragColor.a * opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,oA=` -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -attribute float a_Size; -attribute vec4 a_Color; -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform vec2 u_offsets; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" -#pragma include "project" -void main() { - v_color = a_Color; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - - // vec2 offset = project_pixel(u_offsets); - vec2 offset = project_pixel(textrueOffsets); - // vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); - // gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w));\\ - // - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // vec2 offset = project_pixel((u_offsets)); - gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); - } else { // else - // vec2 offset = project_pixel(u_offsets); - vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); - } - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); -} -`;function Oy(e){var i=e.coordinates;return{vertices:(0,Ce.Z)(i),indices:[0],size:i.length}}var Ry=function(e){(0,Ir.Z)(r,e);var i=nA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.offsets,g=v===void 0?[0,0]:v;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f,offsets:g})){this.judgeStyleAttributes({opacity:f,offsets:g});var x=this.layer.getEncodedData(),C=this.calDataFrame(this.cellLength,x,this.cellProperties),T=C.data,O=C.width,k=C.height;this.rowCount=k,this.dataTexture=this.cellLength>0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return this.layer.triangulation=Oy,[this.layer.buildLayerModel({moduleName:"normalpoint",vertexShader:oA,fragmentShader:aA,triangulation:Oy,depth:{enable:!1},primitive:G.POINTS,blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}})}},{key:"defaultStyleOptions",value:function(){return{blend:wc.additive}}}]),r}(fo);function sA(e){var i=uA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function uA(){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(e){return!1}}var lA=` -uniform float u_additive; - -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -#pragma include "sdf_2d" -#pragma include "picking" - -void main() { - int shape = int(floor(v_data.w + 0.5)); - - vec4 textrueStroke = vec4( - styleMappingMat[1][0], - styleMappingMat[1][1], - styleMappingMat[1][2], - styleMappingMat[1][3] - ); - - float opacity = styleMappingMat[0][0]; - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius); - - float outer_df = sdCircle(v_data.xy, 1.0); - float inner_df = sdCircle(v_data.xy, r); - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - gl_FragColor = vec4(v_color.rgb, v_color.a * opacity); - - if(u_additive > 0.0) { - gl_FragColor *= opacity_t; - } else { - gl_FragColor.a *= opacity_t; - } - - if(gl_FragColor.a > 0.0) { - gl_FragColor = filterColor(gl_FragColor); - } - - vec2 extrude = styleMappingMat[2].ba; - vec2 dir = normalize(extrude); - vec2 baseDir = vec2(1.0, 0.0); - float pi = 3.14159265359; - // full circle - // float rades = dot(dir, baseDir); - // float flag = sign(dir.y); - // float radar_v = (flag - 1.0) * -0.5 + flag * acos(rades)/pi/2.0; - - // half circle - float flag = sign(dir.y); - float rades = dot(dir, baseDir); - float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; - // simple AA - if(radar_v > 0.99) { - radar_v = 1.0 - (radar_v - 0.99)/0.01; - } - - gl_FragColor.a *= radar_v; -} -`,cA=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute float a_Shape; -uniform float u_speed: 1.0; -uniform float u_time; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float u_isMeter; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -uniform float u_opacity : 1; -uniform vec2 u_offsets; - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -void main() { - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - float newSize = setPickingSize(a_Size); - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - empty - empty - empty - 0.0, 0.0, 0.0, 0.0, // empty - empty - empty - empty - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - a_Extrude.x - a_Extrude.y - 0.0, 0.0, 0.0, 0.0 // - ); - - float time = u_time * u_speed; - mat2 rotateMatrix = mat2( - cos(time), sin(time), - -sin(time), cos(time) - ); - styleMappingMat[2].ba = rotateMatrix * a_Extrude.xy; - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> empty -> empty ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - - // unpack color(vec2) - v_color = a_Color; - - // radius(16-bit) - v_radius = newSize; - - // anti-alias - float blur = 0.0; - float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); - - vec2 offset = (extrude.xy * (newSize) + textrueOffsets); - vec3 aPosition = a_Position; - if(u_isMeter < 1.0) { - // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - offset = project_pixel(offset); - } else { - // \u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - antialiasblur *= pow(19.0 - u_Zoom, 2.0); - antialiasblur = max(antialiasblur, -0.01); - // offset *= 0.5; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - aPosition.xy += offset; - offset.x = 0.0; - offset.y = 0.0; - } - } - - v_data = vec4(extrude.x, extrude.y, antialiasblur,shape_type); - - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(project_pos.xy + offset, 0.0, 1.0); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,fA=function(e){(0,Ir.Z)(r,e);var i=sA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&j.length>0?this.createTexture2D({flipY:!0,data:j,format:G.LUMINANCE,type:G.FLOAT,width:X,height:te}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_isMeter:Number(this.isMeter),u_speed:T,u_additive:x==="additive"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0]}}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),s=a.animateOption,f=s===void 0?{enable:!1}:s;return{u_aimate:this.animateOption2Array(f),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Op)}},{key:"initModels",value:function(){var a=this.layer.getLayerConfig(),s=a.unit,f=s===void 0?"l7size":s,v=this.mapService.version;return f==="meter"&&v!==js.L7MAP&&v!==js.GLOBEL&&(this.isMeter=!0,this.calMeter2Coord()),this.buildModels()}},{key:"calMeter2Coord",value:function(){var a=(0,on.Z)(this.layer.getSource().extent,4),s=a[0],f=a[1],v=a[2],g=a[3],x=[(s+v)/2,(f+g)/2],C=this.mapService.version;if(C===js.MAPBOX&&window.mapboxgl.MercatorCoordinate){var T=window.mapboxgl.MercatorCoordinate.fromLngLat({lng:x[0],lat:x[1]},0),O=1,k=O*T.meterInMercatorCoordinateUnits(),j=new window.mapboxgl.MercatorCoordinate(T.x-k,T.y,T.z),X=j.toLngLat();this.meter2coord=x[0]-X.lng;return}var te=this.mapService.meterToCoord(x,[s,f]),be=this.mapService.meterToCoord(x,[v===s?v+.1:v,g===f?f+.1:g]);this.meter2coord=(te+be)/2,Boolean(this.meter2coord)||(this.meter2coord=7.70681090738883)}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:Op,depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g),cull:{enable:!0,face:h(this.mapService.version)}})]}},{key:"getShaders",value:function(){return{frag:lA,vert:cA,type:"point_radar"}}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:On.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(f,v,g,x){var C;C=[1,1,0,-1,1,0,-1,-1,0,1,-1,0];var T=x%4*3;return[C[T],C[T+1],C[T+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.size,T=C===void 0?5:C;return Array.isArray(T)?[T[0]*a.meter2coord]:[T*a.meter2coord]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:On.Attribute,descriptor:{name:"a_Shape",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(f,v,g,x){var C=f.shape,T=C===void 0?2:C,O=a.layer.getLayerConfig().shape2d,k=O.indexOf(T);return[k]}}})}}]),r}(fo);function hA(e){var i=pA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function pA(){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(e){return!1}}var dA=` -uniform float u_opacity : 1; -uniform vec2 u_offsets; -uniform float u_additive; - -uniform float u_stroke_opacity : 1; - -uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; - -varying vec4 v_color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E -varying float v_blur; -varying float v_innerRadius; - -#pragma include "picking" -void main() { - vec2 center = vec2(0.5); - - float opacity = styleMappingMat[0][0]; - // Tip: \u7247\u5143\u5230\u4E2D\u5FC3\u70B9\u7684\u8DDD\u79BB 0 - 1 - float fragmengTocenter = distance(center, gl_PointCoord) * 2.0; - // Tip: \u7247\u5143\u7684\u526A\u5207\u6210\u5706\u5F62 - float circleClipOpacity = 1.0 - smoothstep(v_blur, 1.0, fragmengTocenter); - - - if(v_innerRadius < 0.99) { - // \u5F53\u5B58\u5728 stroke \u4E14 stroke > 0.01 - float blurWidth = (1.0 - v_blur)/2.0; - vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); - if(fragmengTocenter > v_innerRadius + blurWidth) { - gl_FragColor = stroke; - } else if(fragmengTocenter > v_innerRadius - blurWidth){ - float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); - gl_FragColor = mix(v_color, stroke, mixR); - } else { - gl_FragColor = v_color; - } - } else { - // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 - gl_FragColor = v_color; - } - - gl_FragColor.a *= opacity; - - gl_FragColor = filterColor(gl_FragColor); - - if(u_additive > 0.0) { - gl_FragColor *= circleClipOpacity; - } else { - gl_FragColor.a *= circleClipOpacity; - } - -} -`,vA=` -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -attribute float a_Size; -attribute vec4 a_Color; -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform vec2 u_offsets; -uniform float u_stroke_width; - -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 -varying float v_blur; -varying float v_innerRadius; - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" -#pragma include "project" -void main() { - v_color = a_Color; - v_blur = 1.0 - max(2.0/a_Size, 0.05); - v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 textrueOffsets = vec2(0.0, 0.0); - if(hasOffsets()) { - vec2 valueXPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.r = pos2value(valueXPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - - vec2 valueYPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - textrueOffsets.g = pos2value(valueYPos, columnWidth, rowHeight); // x - textureOffset += 1.0; - } else { - textrueOffsets = u_offsets; - } - - // cal style mapping - - vec2 offset = project_pixel(textrueOffsets); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); - } else { // else - vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); - } - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); -} -`;function Ly(e){var i=e.coordinates;return{vertices:(0,Ce.Z)(i),indices:[0],size:i.length}}var mA=function(e){(0,Ir.Z)(r,e);var i=hA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.opacity,f=s===void 0?1:s,v=a.offsets,g=v===void 0?[0,0]:v,x=a.blend,C=a.strokeOpacity,T=C===void 0?1:C,O=a.strokeWidth,k=O===void 0?0:O,j=a.stroke,X=j===void 0?"#fff":j;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:f,offsets:g})){this.judgeStyleAttributes({opacity:f,offsets:g});var te=this.layer.getEncodedData(),be=this.calDataFrame(this.cellLength,te,this.cellProperties),Ne=be.data,$e=be.width,ot=be.height;this.rowCount=ot,this.dataTexture=this.cellLength>0&&Ne.length>0?this.createTexture2D({flipY:!0,data:Ne,format:G.LUMINANCE,type:G.FLOAT,width:$e,height:ot}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_additive:x==="additive"?1:0,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1,u_offsets:this.isOffsetStatic(g)?g:[0,0],u_stroke_opacity:fa()(T)?T:1,u_stroke_width:fa()(k)?k:1,u_stroke_color:this.getStrokeColor(X)}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return this.layer.triangulation=Ly,[this.layer.buildLayerModel({moduleName:"simplepoint",vertexShader:vA,fragmentShader:dA,triangulation:Ly,depth:{enable:!1},primitive:G.POINTS,blend:this.getBlend(),stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?1:x;return Array.isArray(C)?[C[0]]:[C]}}})}},{key:"defaultStyleOptions",value:function(){return{blend:wc.additive}}}]),r}(fo);function gA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function yA(e,i){if(!!e){if(typeof e=="string")return ky(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ky(e,i)}}function ky(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);rthis.width||s<0||n>this.height)return f?!1:[];var g=[];if(r<=0&&n<=0&&this.width<=a&&this.height<=s){if(f)return!0;for(var x=0;x0:g}},{key:"queryCell",value:function(r,n,a,s,f,v,g,x){var C=g.seenUids,T=this.boxCells[f];if(T!==null){var O=this.bboxes,k=gA(T),j;try{for(k.s();!(j=k.n()).done;){var X=j.value;if(!C.box[X]){C.box[X]=!0;var te=X*4;if(r<=O[te+2]&&n<=O[te+3]&&a>=O[te+0]&&s>=O[te+1]&&(!x||x(this.boxKeys[X]))){if(g.hitTest)return v.push(!0),!0;v.push({key:this.boxKeys[X],x1:O[te],y1:O[te+1],x2:O[te+2],y2:O[te+3]})}}}}catch(be){k.e(be)}finally{k.f()}}return!1}},{key:"forEachCell",value:function(r,n,a,s,f,v,g,x){for(var C=this.convertToXCellCoord(r),T=this.convertToYCellCoord(n),O=this.convertToXCellCoord(a),k=this.convertToYCellCoord(s),j=C;j<=O;j++)for(var X=T;X<=k;X++){var te=this.xCellCount*X+j;if(f.call(this,r,n,a,s,te,v,g,x))return}}},{key:"convertToXCellCoord",value:function(r){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(r*this.xScale)))}},{key:"convertToYCellCoord",value:function(r){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(r*this.yScale)))}}]),e}(),xA=_A,bA=function(){function e(i,r){(0,ht.Z)(this,e),(0,A.Z)(this,"width",void 0),(0,A.Z)(this,"height",void 0),(0,A.Z)(this,"grid",void 0),(0,A.Z)(this,"viewportPadding",100),(0,A.Z)(this,"screenRightBoundary",void 0),(0,A.Z)(this,"screenBottomBoundary",void 0),(0,A.Z)(this,"gridRightBoundary",void 0),(0,A.Z)(this,"gridBottomBoundary",void 0),this.width=i,this.height=r,this.viewportPadding=Math.max(i,r),this.grid=new xA(i+this.viewportPadding,r+this.viewportPadding,25),this.screenRightBoundary=i+this.viewportPadding,this.screenBottomBoundary=r+this.viewportPadding,this.gridRightBoundary=i+2*this.viewportPadding,this.gridBottomBoundary=r+2*this.viewportPadding}return(0,Pt.Z)(e,[{key:"placeCollisionBox",value:function(r){var n=r.x1+r.anchorPointX+this.viewportPadding,a=r.y1+r.anchorPointY+this.viewportPadding,s=r.x2+r.anchorPointX+this.viewportPadding,f=r.y2+r.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,a,s,f)||this.grid.hitTest(n,a,s,f)?{box:[]}:{box:[n,a,s,f]}}},{key:"insertCollisionBox",value:function(r,n){var a={featureIndex:n};this.grid.insert(a,r[0],r[1],r[2],r[3])}},{key:"project",value:function(r,n,a){var s=Qp(n,a,0,1),f=Fh(),v=ir.apply(ae,(0,Ce.Z)(r));return Me(f,s,v),{x:(f[0]/f[3]+1)/2*this.width+this.viewportPadding,y:(-f[1]/f[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(r,n,a,s){return a>=0&&r=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function EA(e,i){if(!!e){if(typeof e=="string")return Fy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fy(e,i)}}function Fy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r6&&arguments[6]!==void 0?arguments[6]:[0,0],v=arguments.length>7?arguments[7]:void 0,g=e.split(` -`),x=[],C={positionedGlyphs:x,top:f[1],bottom:f[1],left:f[0],right:f[0],lineCount:g.length,text:e};return v?CA(C,i,g,r,n,a,s):SA(C,i,g,r,n,a,s),x.length?C:!1}function wA(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],r=arguments.length>2?arguments[2]:void 0,n=e.positionedGlyphs,a=n===void 0?[]:n,s=[],f=Dy(a),v;try{for(f.s();!(v=f.n()).done;){var g=v.value,x=g.metrics,C=4,T=x.advance*g.scale/2,O=r?[g.x+T,g.y]:[0,0],k=r?[0,0]:[g.x+T+i[0],g.y+i[1]],j=(0-C)*g.scale-T+k[0],X=(0-C)*g.scale+k[1],te=j+x.width*g.scale,be=X+x.height*g.scale,Ne={x:j,y:X},$e={x:te,y:X},ot={x:j,y:be},bt={x:te,y:be};s.push({tl:Ne,tr:$e,bl:ot,br:bt,tex:x,glyphOffset:O})}}catch(_t){f.e(_t)}finally{f.f()}return s}function TA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=MA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function MA(e,i){if(!!e){if(typeof e=="string")return Uy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uy(e,i)}}function Uy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - - vec2 strokeWidthAndOffset = calStrokeWidthAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][2] = strokeWidthAndOffset.r; - textureOffset = strokeWidthAndOffset.g; - - vec4 textrueStroke = vec4(-1.0, -1.0, -1.0, -1.0); - if(hasStroke()) { - vec2 valueRPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][0] = pos2value(valueRPos, columnWidth, rowHeight); // R - textureOffset += 1.0; - - vec2 valueGPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][1] = pos2value(valueGPos, columnWidth, rowHeight); // G - textureOffset += 1.0; - - vec2 valueBPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][2] = pos2value(valueBPos, columnWidth, rowHeight); // B - textureOffset += 1.0; - - vec2 valueAPos = nextPos(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset); - styleMappingMat[1][3] = pos2value(valueAPos, columnWidth, rowHeight); // A - textureOffset += 1.0; - } else { - if(u_stroke_color == vec4(0.0)) { - styleMappingMat[1][0] = v_color.r; - styleMappingMat[1][1] = v_color.g; - styleMappingMat[1][2] = v_color.b; - styleMappingMat[1][3] = v_color.a; - } else { - styleMappingMat[1][0] = u_stroke_color.r; - styleMappingMat[1][1] = u_stroke_color.g; - styleMappingMat[1][2] = u_stroke_color.b; - styleMappingMat[1][3] = u_stroke_color.a; - } - } - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - v_uv = a_tex / u_sdf_map_size; - - // \u6587\u672C\u7F29\u653E\u6BD4\u4F8B - float fontScale = a_Size / FONT_SIZE; - v_fontScale = fontScale; - - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // vec4 projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - highp float angle_sin = sin(a_Rotate); - highp float angle_cos = cos(a_Rotate); - mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); - - // gl_Position = vec4(projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); - - float raiseHeight = u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raiseHeight = u_raisingHeight * mapboxZoomScale; - } - - vec4 projected_position; - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - projected_position = u_Mvp * (vec4(a_Position.xyz + vec3(0.0, 0.0, raiseHeight), 1.0)); - } else { // else - projected_position = project_common_position_to_clipspace(vec4(project_pos.xyz + vec3(0.0, 0.0, raiseHeight), 1.0)); - } - - gl_Position = vec4( - projected_position.xy / projected_position.w + rotation_matrix * a_textOffsets * fontScale / u_ViewportSize * 2.0 * u_DevicePixelRatio, 0.0, 1.0); - v_gamma_scale = gl_Position.w; - setPickingColor(a_PickingColor); - -} -`;function Vy(e){var i=this,r=e.id,n=[],a=[];if(!i.glyphInfoMap||!i.glyphInfoMap[r])return{vertices:[],indices:[],size:7};var s=i.glyphInfoMap[r].centroid,f=s.length===2?[s[0],s[1],0]:s;return i.glyphInfoMap[r].glyphQuads.forEach(function(v,g){n.push.apply(n,(0,Ce.Z)(f).concat([v.tex.x,v.tex.y+v.tex.height,v.tl.x,v.tl.y],(0,Ce.Z)(f),[v.tex.x+v.tex.width,v.tex.y+v.tex.height,v.tr.x,v.tr.y],(0,Ce.Z)(f),[v.tex.x+v.tex.width,v.tex.y,v.br.x,v.br.y],(0,Ce.Z)(f),[v.tex.x,v.tex.y,v.bl.x,v.bl.y])),a.push(0+g*4,1+g*4,2+g*4,2+g*4,3+g*4,0+g*4)}),{vertices:n,indices:a,size:7}}var Gy=function(e){(0,Ir.Z)(r,e);var i=PA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&qr.length>0?this.createTexture2D({flipY:!0,data:qr,format:G.LUMINANCE,type:G.FLOAT,width:gr,height:un}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(ot),u_opacity:fa()(f)?f:1,u_stroke_width:fa()(C)?C:1,u_stroke_color:this.getStrokeColor(g),u_sdf_map:this.texture,u_halo_blur:te,u_gamma_scale:Ne,u_sdf_map_size:[_t.width,_t.height]}}},{key:"initModels",value:function(){this.layer.on("remapping",this.buildModels),this.extent=this.textExtent();var a=this.layer.getLayerConfig(),s=a.textAnchor,f=s===void 0?"center":s,v=a.textAllowOverlap,g=v===void 0?!0:v;return this.preTextStyle={textAnchor:f,textAllowOverlap:g},this.buildModels()}},{key:"needUpdate",value:function(){var a=this.layer.getLayerConfig(),s=a.textAllowOverlap,f=s===void 0?!1:s,v=this.mapService.getZoom(),g=this.mapService.getBounds(),x=yl(this.extent,g);return!f&&(Math.abs(this.currentZoom-v)>1||!x)||f!==this.preTextStyle.textAllowOverlap?(this.reBuildModel(),!0):!1}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy(),this.layer.off("remapping",this.buildModels)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"rotate",type:On.Attribute,descriptor:{name:"a_Rotate",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.rotate,C=x===void 0?0:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:On.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){return[v[5],v[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(s,f,v,g){var x=s.size,C=x===void 0?12:x;return Array.isArray(C)?[C[0]]:[C]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:On.Attribute,descriptor:{name:"a_tex",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(s,f,v,g){return[v[3],v[4]]}}})}},{key:"textExtent",value:function(){var a=this.mapService.getBounds();return dc(a,.5)}},{key:"initTextFont",value:function(){var a=this.layer.getLayerConfig(),s=a.fontWeight,f=s===void 0?"400":s,v=a.fontFamily,g=v===void 0?"sans-serif":v,x=this.layer.getEncodedData(),C=[];x.forEach(function(T){var O=T.shape,k=O===void 0?"":O;k=k.toString();var j=TA(k),X;try{for(j.s();!(X=j.n()).done;){var te=X.value;C.indexOf(te)===-1&&C.push(te)}}catch(be){j.e(be)}finally{j.f()}}),this.fontService.setFontOptions({characterSet:C,fontWeight:f,fontFamily:g,iconfont:!1})}},{key:"initIconFontTex",value:function(){var a=this.layer.getLayerConfig(),s=a.fontWeight,f=s===void 0?"400":s,v=a.fontFamily,g=v===void 0?"sans-serif":v,x=this.layer.getEncodedData(),C=[];x.forEach(function(T){var O=T.shape,k=O===void 0?"":O;k="".concat(k),C.indexOf(k)===-1&&C.push(k)}),this.fontService.setFontOptions({characterSet:C,fontWeight:f,fontFamily:g,iconfont:!0})}},{key:"generateGlyphLayout",value:function(a){var s=this,f=this.fontService.mapping,v=this.layer.getLayerConfig(),g=v.spacing,x=g===void 0?2:g,C=v.textAnchor,T=C===void 0?"center":C,O=this.layer.getEncodedData();this.glyphInfo=O.map(function(k){var j=k.shape,X=j===void 0?"":j,te=k.id,be=k.size,Ne=be===void 0?1:be,$e=k.textOffset,ot=$e===void 0?[0,0]:$e,bt=AA(X.toString(),f,Ne,T,"left",x,ot,a),_t=wA(bt,ot,!1);return k.shaping=bt,k.glyphQuads=_t,k.centroid=Mp(k.coordinates),k.originCentroid=k.version==="GAODE2.x"?Mp(k.originCoordinates):k.originCentroid=k.centroid,s.glyphInfoMap[te]={shaping:bt,glyphQuads:_t,centroid:Mp(k.coordinates)},k})}},{key:"filterGlyphs",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.padding,v=f===void 0?[4,4]:f,g=s.textAllowOverlap,x=g===void 0?!1:g;if(!x){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var C=this.rendererService.getViewportSize(),T=C.width,O=C.height,k=new bA(T,O),j=this.glyphInfo.filter(function(X){var te=X.shaping,be=X.id,Ne=be===void 0?0:be,$e=X.version==="GAODE2.x"?X.originCentroid:X.centroid,ot=X.size,bt=ot/24,_t=a.mapService.lngLatToContainer($e),qt=k.placeCollisionBox({x1:te.left*bt-v[0],x2:te.right*bt+v[0],y1:te.top*bt-v[1],y2:te.bottom*bt+v[1],anchorPointX:_t.x,anchorPointY:_t.y}),ar=qt.box;return ar&&ar.length?(k.insertCollisionBox(ar,Ne),!0):!1});j.forEach(function(X){a.glyphInfoMap[X.id]=X})}}},{key:"initGlyph",value:function(){var a=this.layer.getLayerConfig(),s=a.iconfont,f=s===void 0?!1:s;f?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(f)}},{key:"updateTexture",value:function(){var a=this.rendererService.createTexture2D,s=this.fontService.canvas;this.textureHeight=s.height,this.texture&&this.texture.destroy(),this.texture=a({data:s,mag:G.LINEAR,min:G.LINEAR,width:s.width,height:s.height})}},{key:"reBuildModel",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;this.filterGlyphs(),this.layer.models=[this.layer.buildLayerModel({moduleName:"pointText",vertexShader:jy,fragmentShader:Zy,triangulation:Vy.bind(this),depth:{enable:!1},blend:this.getBlend(),stencil:Pa(f,g)})]}}]),r}(fo),OA={fillImage:XC,fill:Py,radar:fA,image:Iy,normal:Ry,simplePoint:mA,extrude:Ty,text:Gy,icon:QC},RA=OA;function LA(e,i){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=kA(e))||i&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(x){throw x},f:a}}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 s=!0,f=!1,v;return{s:function(){r=r.call(e)},n:function(){var x=r.next();return s=x.done,x},e:function(x){f=!0,v=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw v}}}}function kA(e,i){if(!!e){if(typeof e=="string")return Hy(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hy(e,i)}}function Hy(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - // project_pos.z += 500000.0; // amap1 - - // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - float lightWeight = calc_lighting(pos); - // v_Color = a_Color; - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - styleMappingMat[3][1] = lightWeight; - - setPickingColor(a_PickingColor); -} -`,ZA=`uniform sampler2D u_texture; -uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float isSide = styleMappingMat[0][3]; - float lightWeight = styleMappingMat[3][1]; - float topU = styleMappingMat[2][2]; - float topV = styleMappingMat[2][3]; - - float sidey = styleMappingMat[3][0]; - if(isSide < 1.0) { - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if(u_linearColor == 1.0) { - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - gl_FragColor = v_Color; - } - } else { - - // top face - if(u_topsurface < 1.0) { - discard; - } - - gl_FragColor = texture2D(u_texture, vec2(topU, topV)); - } - - - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,jA=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -varying vec4 v_Color; -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - v_Color = a_Color; - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - a_Position.z(judge side by a_Position.z) - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - u - v - 0.0, 0.0, 0.0, 0.0 // sidey - ); - - styleMappingMat[0][3] = a_Position.z; - styleMappingMat[2][2] = a_uvs[0]; - styleMappingMat[2][3] = 1.0 - a_uvs[1]; - styleMappingMat[3][0] = a_uvs[2]; - - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - // project_pos.z += 500000.0; // amap1 - - // project_pos.z += (500000.0 * 4.0)/pow(2.0, 21.0 - u_Zoom); // mapbox - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - float lightWeight = calc_lighting(pos); - styleMappingMat[3][1] = lightWeight; - - setPickingColor(a_PickingColor); -} -`,VA=`uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - float isSide = styleMappingMat[0][3]; - float sidey = styleMappingMat[3][0]; - float lightWeight = styleMappingMat[3][1]; - - if(isSide < 1.0) { - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if( u_linearColor == 1.0) { - // side use linear - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - // side notuse linear - gl_FragColor = v_Color; - } - } else { - // top face - if(u_topsurface < 1.0) { - discard; - } - gl_FragColor = v_Color; - } - - gl_FragColor.a *= opacity; - gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); -} -`,GA=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -varying vec4 v_Color; -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - isSide - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 // sidey - ); - styleMappingMat[0][3] = a_Position.z; - styleMappingMat[3][0] = a_uvs[2]; - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(project_pos.xyz * vec3(1.0, 1.0, -1.0), 1.0)); - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - float lightWeight = calc_lighting(pos); - // v_Color = a_Color; - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - styleMappingMat[3][1] = lightWeight; - - setPickingColor(a_PickingColor); -} -`,HA=function(e){(0,Ir.Z)(r,e);var i=BA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&$e.length>0?this.createTexture2D({flipY:!0,data:$e,format:G.LUMINANCE,type:G.FLOAT,width:ot,height:bt}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}var _t=0,qt=[1,1,1,1],ar=[1,1,1,1];return X&&te&&(qt=Ji(X),ar=Ji(te),_t=1),{u_topsurface:Number(O),u_sidesurface:Number(j),u_heightfixed:Number(g),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(C),u_opacity:fa()(f)?f:1,u_linearColor:_t,u_sourceColor:qt,u_targetColor:ar,u_texture:this.texture}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v,x=this.getShaders(),C=x.frag,T=x.vert,O=x.type;return[this.layer.buildLayerModel({moduleName:O,vertexShader:T,fragmentShader:C,triangulation:hy,stencil:Pa(f,g)})]}},{key:"getShaders",value:function(){var a=this.layer.getLayerConfig(),s=a.pickLight,f=a.mapTexture;return f?{frag:ZA,vert:jA,type:"polygonExtrudeTexture"}:s?{frag:VA,vert:GA,type:"polygonExtrudePickLight"}:{frag:zA,vert:UA,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var a,s;(a=this.dataTexture)===null||a===void 0||a.destroy(),(s=this.texture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"uvs",type:On.Attribute,descriptor:{name:"a_uvs",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(k,j,X,te,be){var Ne=X[0],$e=X[1];return[(Ne-f)/C,($e-v)/T,X[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:On.Attribute,descriptor:{name:"a_Normal",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(k,j,X,te,be){return be}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:On.Attribute,descriptor:{name:"a_Size",buffer:{usage:G.DYNAMIC_DRAW,data:[],type:G.FLOAT},size:1,update:function(k,j,X,te){var be=k.size,Ne=be===void 0?10:be;return Array.isArray(Ne)?[Ne[0]]:[Ne]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.mapTexture,v=this.rendererService.createTexture2D;if(this.texture=v({height:0,width:0}),f){var g=new Image;g.crossOrigin="",g.src=f,g.onload=function(){a.texture=v({data:g,width:g.width,height:g.height,wrapS:G.CLAMP_TO_EDGE,wrapT:G.CLAMP_TO_EDGE,min:G.LINEAR,mag:G.LINEAR}),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()}}}}]),r}(fo);function WA(e){var i=XA();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function XA(){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(e){return!1}}var YA=`uniform float u_opacity: 1.0; -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "picking" - -void main() { - float opacity = styleMappingMat[0][0]; - gl_FragColor = v_Color; - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,qA=`uniform float u_opacity: 1.0; -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -#pragma include "picking" -uniform float u_opacitylinear: 0.0; -uniform float u_dir: 1.0; -varying vec3 v_linear; -varying vec2 v_pos; - - -void main() { - float opacity = styleMappingMat[0][0]; - gl_FragColor = v_Color; - - if(u_opacitylinear > 0.0) { - gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; - } - - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,KA=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -uniform float u_opacity: 1.0; -uniform float u_raisingHeight: 0.0; - -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -uniform float u_opacitylinear: 0.0; - -attribute vec3 a_linear; -varying vec3 v_linear; -varying vec2 v_pos; - -void main() { - if(u_opacitylinear > 0.0) { - v_linear = a_linear; - v_pos = a_Position.xy; - } - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_Color = a_Color; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - setPickingColor(a_PickingColor); -}`,$A=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -uniform float u_opacity: 1.0; -uniform float u_raisingHeight: 0.0; - -varying vec4 v_Color; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_Color = a_Color; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - setPickingColor(a_PickingColor); -} - -`,QA=function(e){(0,Ir.Z)(r,e);var i=WA(r);function r(){return(0,ht.Z)(this,r),i.apply(this,arguments)}return(0,Pt.Z)(r,[{key:"getUninforms",value:function(){var a=this.layer.getLayerConfig(),s=a.raisingHeight,f=s===void 0?0:s,v=a.opacity,g=v===void 0?1:v,x=a.opacityLinear,C=x===void 0?{enable:!1,dir:"in"}:x;if(this.dataTextureTest&&this.dataTextureNeedUpdate({opacity:g})){this.judgeStyleAttributes({opacity:g});var T=this.layer.getEncodedData(),O=this.calDataFrame(this.cellLength,T,this.cellProperties),k=O.data,j=O.width,X=O.height;this.rowCount=X,this.dataTexture=this.cellLength>0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_raisingHeight:Number(f),u_opacity:fa()(g)?g:1,u_opacitylinear:Number(C.enable),u_dir:C.dir==="in"?1:0}}},{key:"initModels",value:function(){return this.buildModels()}},{key:"buildModels",value:function(){var a=this.getModelParams(),s=a.frag,f=a.vert,v=a.triangulation,g=a.type,x=this.layer.getLayerConfig(),C=x.mask,T=C===void 0?!1:C,O=x.maskInside,k=O===void 0?!0:O;return this.layer.triangulation=v,[this.layer.buildLayerModel({moduleName:g,vertexShader:f,fragmentShader:s,triangulation:v,blend:this.getBlend(),depth:{enable:!1},stencil:Pa(T,k)})]}},{key:"clearModels",value:function(){var a;(a=this.dataTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getLayerConfig(),s=a.opacityLinear,f=s===void 0?{enable:!1,dir:"in"}:s;f.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:On.Attribute,descriptor:{name:"a_linear",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:3,update:function(g,x,C,T,O){return[C[3],C[4],C[5]]}}})}},{key:"getModelParams",value:function(){var a=this.layer.getLayerConfig(),s=a.opacityLinear,f=s===void 0?{enable:!1}:s;return f.enable?{frag:qA,vert:KA,type:"polygon_linear",triangulation:NE}:{frag:YA,vert:$A,type:"polygon_fill",triangulation:Uv}}}]),r}(fo);function JA(e){var i=ew();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function ew(){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(e){return!1}}var tw=` -uniform float u_time: 0.0; -uniform float u_opacity: 1.0; - -varying vec2 v_uv; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - -float coast2water_fadedepth = 0.10; -float large_waveheight = .750; // change to adjust the "heavy" waves -float large_wavesize = 3.4; // factor to adjust the large wave size -float small_waveheight = 0.6; // change to adjust the small random waves -float small_wavesize = 0.5; // factor to ajust the small wave size -float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) -float water_glossylight_fact= 120.; // range [1..200] -float particle_amount = 70.; -// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB) -// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color) -uniform vec4 u_watercolor; -uniform vec4 u_watercolor2; -vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights -#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun - -uniform sampler2D u_texture1; -uniform sampler2D u_texture2; -uniform sampler2D u_texture3; - - - -float hash( float n ) { - return fract(sin(n)*43758.5453123); -} - -// 2d noise function -float noise1( in vec2 x ) { - vec2 p = floor(x); - vec2 f = smoothstep(0.0, 1.0, fract(x)); - float n = p.x + p.y*57.0; - return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), - mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); -} - -float noise(vec2 p) { - return texture2D(u_texture2,p*vec2(1./256.)).x; -} - -vec4 highness(vec2 p) { - vec4 t = texture2D(u_texture1,fract(p)); - float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; - return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); -} - -float height_map( vec2 p ) { - vec4 height=highness(p); - /* - height = -0.5+ - 0.5*smoothstep(-100.,0.,-height)+ - 2.75*smoothstep(0.,2.,height)+ - 1.75*smoothstep(2.,4.,height)+ - 2.75*smoothstep(4.,16.,height)+ - 1.5*smoothstep(16.,1000.,height); - */ - - mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); - //p = p*6.; - float f = 0.6000*noise1( p ); p = m*p*1.1*6.; - f += 0.2500*noise( p ); p = m*p*1.32; - f += 0.1666*noise( p ); p = m*p*1.11; - f += 0.0834*noise( p ); p = m*p*1.12; - f += 0.0634*noise( p ); p = m*p*1.13; - f += 0.0444*noise( p ); p = m*p*1.14; - f += 0.0274*noise( p ); p = m*p*1.15; - f += 0.0134*noise( p ); p = m*p*1.16; - f += 0.0104*noise( p ); p = m*p*1.17; - f += 0.0084*noise( p ); - f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; - const float FLAT_LEVEL = 0.92525; - //f = f*0.25+height*0.75; - if (f level) - { - col = CalcTerrain(uv, height); - } - if (height <= level) - { - vec2 dif = vec2(.0, .01); - vec2 pos = uv*15. + vec2(u_time*.01); - float h1 = water_map(pos-dif,waveheight); - float h2 = water_map(pos+dif,waveheight); - float h3 = water_map(pos-dif.yx,waveheight); - float h4 = water_map(pos+dif.yx,waveheight); - vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane - uv += normwater.xy*.002*(level-height); - - col = CalcTerrain(uv, height); - - float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); - float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); - float intensity = col.r*.2126+col.g*.7152+col.b*.0722; - watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); - - vec3 r0 = vec3(uv, WATER_LEVEL); - vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position - float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction - float specular = pow(grad, water_softlight_fact); // used for soft highlights - float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights - float gradpos = dot(vec3(0., 0., 1.), rd); - float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) - float watershade = test_shadow( uv, level ); - watercolor *= 2.2+watershade; - watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; - watercolor /= (1.+specular1*1.25); - watercolor += watershade*specular2*water_specularcolor; - watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); - - col = mix(col, watercolor, coastfade); - } - - - float opacity = styleMappingMat[0][0]; - gl_FragColor = vec4(col, opacity); -} -`,rw=`attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -varying vec2 v_uv; -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" - -void main() { - v_uv = a_uv; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } -} - -`,nw=function(e){(0,Ir.Z)(r,e);var i=JA(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&k.length>0?this.createTexture2D({flipY:!0,data:k,format:G.LUMINANCE,type:G.FLOAT,width:j,height:X}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:Ji(g),u_watercolor2:Ji(C),u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_opacity:fa()(f)?f:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"polygon_ocean",vertexShader:rw,fragmentShader:tw,triangulation:Uv,depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a,s,f,v;(a=this.texture1)===null||a===void 0||a.destroy(),(s=this.texture2)===null||s===void 0||s.destroy(),(f=this.texture3)===null||f===void 0||f.destroy(),(v=this.dataTexture)===null||v===void 0||v.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:On.Attribute,descriptor:{name:"a_uv",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(k,j,X,te,be){var Ne=(0,on.Z)(X,2),$e=Ne[0],ot=Ne[1];return[($e-f)/C,(ot-v)/T]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.rendererService.createTexture2D,f={height:0,width:0};this.texture1=s(f),this.texture2=s(f),this.texture3=s(f),v(function(x){a.texture1=g(x[0]),a.texture2=g(x[1]),a.texture3=g(x[2]),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()});function v(x){var C=0,T=[],O=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];O.map(function(k){var j=new Image;j.crossOrigin="",j.src=k,T.push(j),j.onload=function(){C++,C===3&&x(T)}})}function g(x){return s({data:x,width:x.width,height:x.height,wrapS:G.MIRRORED_REPEAT,wrapT:G.MIRRORED_REPEAT,min:G.LINEAR,mag:G.LINEAR})}}}]),r}(fo);function iw(e){var i=aw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}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(e){return!1}}var ow=`uniform sampler2D u_texture; -uniform float u_time: 0.0; -uniform float u_speed: 1.0; -uniform float u_opacity: 1.0; - -varying vec4 v_Color; -varying vec2 v_uv; -varying mat4 styleMappingMat; // \u4F20\u9012\u4ECE\u7247\u5143\u4E2D\u4F20\u9012\u7684\u6620\u5C04\u6570\u636E - - -float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } - -float water(vec3 p) { - float t = u_time * u_speed; - p.z += t * 2.; p.x += t * 2.; - vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 3.; p.x += t * 0.52; - vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 4.; p.x += t * 0.8; - vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz; - c1 += c2 - c3; - float z = (c1.x + c1.y + c1.z) / 3.; - return p.y + z / 4.; -} - -float map(vec3 p) { - float d = 100.0; - d = water(p); - return d; -} - -float intersect(vec3 ro, vec3 rd) { - float d = 0.0; - for (int i = 0; i <= 100; i++) { - float h = map(ro + rd * d); - if (h < 0.1) return d; - d += h; - } - return 0.0; -} - -vec3 norm(vec3 p) { - float eps = .1; - return normalize(vec3( - map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), - map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), - map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) - )); -} - -float calSpc() { - vec3 l1 = normalize(vec3(1, 1, 1)); - vec3 ro = vec3(-3, 20, -8); - vec3 rc = vec3(0, 0, 0); - vec3 ww = normalize(rc - ro); - vec3 uu = normalize(cross(vec3(0,1,0), ww)); - vec3 vv = normalize(cross(rc - ro, uu)); - vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); - float d = intersect(ro, rd); - vec3 p = ro + rd * d; - vec3 n = norm(p); - float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); - return spc; -} - -void main() { - float opacity = styleMappingMat[0][0]; - gl_FragColor = v_Color; - gl_FragColor.a *= opacity; - - float spc = calSpc(); - gl_FragColor += spc * 0.4; -} -`,sw=`attribute vec4 a_Color; -attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; - -varying vec4 v_Color; -varying vec2 v_uv; -uniform float u_opacity: 1.0; -varying mat4 styleMappingMat; // \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - -#pragma include "styleMapping" -#pragma include "styleMappingCalOpacity" - -#pragma include "projection" - -void main() { - v_uv = a_uv; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 -styleMappingMat = mat4( - 0.0, 0.0, 0.0, 0.0, // opacity - strokeOpacity - strokeWidth - empty - 0.0, 0.0, 0.0, 0.0, // strokeR - strokeG - strokeB - strokeA - 0.0, 0.0, 0.0, 0.0, // offsets[0] - offsets[1] - 0.0, 0.0, 0.0, 0.0 - ); - - float rowCount = u_cellTypeLayout[0][0]; // \u5F53\u524D\u7684\u6570\u636E\u7EB9\u7406\u6709\u51E0\u884C - float columnCount = u_cellTypeLayout[0][1]; // \u5F53\u770B\u5230\u6570\u636E\u7EB9\u7406\u6709\u51E0\u5217 - float columnWidth = 1.0/columnCount; // \u5217\u5BBD - float rowHeight = 1.0/rowCount; // \u884C\u9AD8 - float cellCount = calCellCount(); // opacity - strokeOpacity - strokeWidth - stroke - offsets - float id = a_vertexId; // \u7B2Cn\u4E2A\u9876\u70B9 - float cellCurrentRow = floor(id * cellCount / columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u884C - float cellCurrentColumn = mod(id * cellCount, columnCount) + 1.0; // \u8D77\u59CB\u70B9\u5728\u7B2C\u51E0\u5217 - - // cell \u56FA\u5B9A\u987A\u5E8F opacity -> strokeOpacity -> strokeWidth -> stroke ... - // \u6309\u987A\u5E8F\u4ECE cell \u4E2D\u53D6\u503C\u3001\u82E5\u6CA1\u6709\u5219\u81EA\u52A8\u5F80\u4E0B\u53D6\u503C - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - vec2 opacityAndOffset = calOpacityAndOffset(cellCurrentRow, cellCurrentColumn, columnCount, textureOffset, columnWidth, rowHeight); - styleMappingMat[0][0] = opacityAndOffset.r; - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_Color = a_Color; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } -} - -`,uw=function(e){(0,Ir.Z)(r,e);var i=iw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&T.length>0?this.createTexture2D({flipY:!0,data:T,format:G.LUMINANCE,type:G.FLOAT,width:O,height:k}):this.createTexture2D({flipY:!0,data:[1],format:G.LUMINANCE,type:G.FLOAT,width:1,height:1})}return{u_texture:this.texture,u_dataTexture:this.dataTexture,u_cellTypeLayout:this.getCellTypeLayout(),u_speed:g,u_opacity:fa()(f)?f:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){return this.loadTexture(),this.buildModels()}},{key:"buildModels",value:function(){var a=this.layer.getLayerConfig(),s=a.mask,f=s===void 0?!1:s,v=a.maskInside,g=v===void 0?!0:v;return[this.layer.buildLayerModel({moduleName:"polygon_water",vertexShader:sw,fragmentShader:ow,triangulation:Uv,depth:{enable:!1},stencil:Pa(f,g)})]}},{key:"clearModels",value:function(){var a,s;(a=this.texture)===null||a===void 0||a.destroy(),(s=this.dataTexture)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getSource().extent,s=(0,on.Z)(a,4),f=s[0],v=s[1],g=s[2],x=s[3],C=g-f,T=x-v;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:On.Attribute,descriptor:{name:"a_uv",buffer:{usage:G.STATIC_DRAW,data:[],type:G.FLOAT},size:2,update:function(k,j,X,te,be){var Ne=(0,on.Z)(X,2),$e=Ne[0],ot=Ne[1];return[($e-f)/C,(ot-v)/T]}}})}},{key:"loadTexture",value:function(){var a=this,s=this.layer.getLayerConfig(),f=s.waterTexture,v=this.rendererService.createTexture2D;this.texture=v({height:0,width:0});var g=new Image;g.crossOrigin="",f?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),g.src=f):g.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",g.onload=function(){a.texture=v({data:g,width:g.width,height:g.height,wrapS:G.MIRRORED_REPEAT,wrapT:G.MIRRORED_REPEAT,min:G.LINEAR,mag:G.LINEAR}),a.layerService.updateLayerRenderList(),a.layerService.renderLayers()}}}]),r}(fo),lw={fill:QA,line:Cy,extrude:HA,text:Gy,point_fill:Py,point_image:Iy,point_normal:Ry,point_extrude:Ty,water:uw,ocean:nw},cw=lw;function fw(e){var i=hw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function hw(){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(e){return!1}}var Xy=function(e){(0,Ir.Z)(r,e);var i=fw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f-1&&this.layerChildren.splice(s,1),a.destroy()}},{key:"clearChild",value:function(){this.layerChildren.forEach(function(a){a.destroy()}),this.layerChildren=[]}},{key:"hasChild",value:function(a){return this.layerChildren.includes(a)}}]),r}(qh);function mw(e){var i=gw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function gw(){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(e){return!1}}var yw=function(e){(0,Ir.Z)(r,e);var i=mw(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f=3&&!C&&(a.layer.updateLayerConfig({visible:!0}),a.layerService.updateLayerRenderList())}a.lastViewStates&&a.lastViewStates.zoom===g&&a.lastViewStates.latLonBounds.toString()===v.toString()||(a.lastViewStates={zoom:g,latLonBounds:v},a.timer&&(clearTimeout(a.timer),a.timer=null),a.timer=setTimeout(function(){var T;(T=a.tilesetManager)===null||T===void 0||T.update(g,v),a.showGrid&&a.renderSubGridLayer()},250))}))}},{key:"creatSubLayer",value:function(a){var s=this.layer.getLayerConfig(),f=s.opacity,v=f===void 0?1:f,g=s.zIndex,x=g===void 0?0:g,C=new Ey({visible:a.isVisible,zIndex:x}).source(a.data,{parser:{type:"image",extent:a.bounds}}).style({opacity:v}),T=av(this.layer.sceneContainer);return C.setContainer(T,this.layer.sceneContainer),C.init(),C}},{key:"destroySubLayer",value:function(a){if(a.layer){var s=this.layer;s.removeChild(a.layer)}}},{key:"getCurrentView",value:function(){var a=this.mapService.getBounds(),s=[a[0][0],a[0][1],a[1][0],a[1][1]],f=this.mapService.getZoom();return{latLonBounds:s,zoom:f}}}]),r}(fo);function _w(e){var i=xw();return function(){var n=(0,Mt.Z)(e),a;if(i){var s=(0,Mt.Z)(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return(0,wr.Z)(this,a)}}function xw(){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(e){return!1}}var bw=`precision mediump float; -uniform float u_opacity: 1.0; -uniform sampler2D u_texture; -uniform sampler2D u_colorTexture; -uniform float u_min; -uniform float u_max; -uniform vec2 u_domain; -uniform float u_noDataValue; -uniform bool u_clampLow: true; -uniform bool u_clampHigh: true; -varying vec2 v_texCoord; - -void main() { - - float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r; - if (value == u_noDataValue) - gl_FragColor = vec4(0.0, 0, 0, 0.0); - else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) - gl_FragColor = vec4(0, 0, 0, 0); - else { - float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]); - vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0)); - gl_FragColor = color; - gl_FragColor.a = gl_FragColor.a * u_opacity ; - } - - -} -`,Ew=`precision highp float; -uniform mat4 u_ModelMatrix; -uniform mat4 u_Mvp; -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0)); - } -} -`,Yy=function(e){(0,Ir.Z)(r,e);var i=_w(r);function r(){var n;(0,ht.Z)(this,r);for(var a=arguments.length,s=new Array(a),f=0;f0&&this.mapService.version===js["GAODE2.x"]){var s=this.getLayerCenter(n);typeof r[0].coordinates[0]=="number"?r.filter(function(f){return!f.originCoordinates}).map(function(f){f.version=js["GAODE2.x"],f.originCoordinates=du()(f.coordinates),f.coordinates=a.mapService.lngLatToCoordByLayer(f.coordinates,s)}):r.filter(function(f){return!f.originCoordinates}).map(function(f){f.version=js["GAODE2.x"],f.originCoordinates=du()(f.coordinates),f.coordinates=a.mapService.lngLatToCoordsByLayer(f.coordinates,s)})}}},{key:"getLayerCenter",value:function(r){var n=r.getSource();return n.center}},{key:"adjustData2SimpleCoordinates",value:function(r){var n=this;r.length>0&&this.mapService.version===js.SIMPLE&&r.map(function(a){a.simpleCoordinate||(a.coordinates=n.unProjectCoordinates(a.coordinates),a.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(r){var n=this;if(typeof r[0]=="number")return this.mapService.simpleMapCoord.unproject(r);if(r[0]&&r[0][0]instanceof Array){var a=[];return r.map(function(f){var v=[];f.map(function(g){v.push(n.mapService.simpleMapCoord.unproject(g))}),a.push(v)}),a}else{var s=[];return r.map(function(f){s.push(n.mapService.simpleMapCoord.unproject(f))}),s}}},{key:"applyAttributeMapping",value:function(r,n,a){var s;if(!r.scale)return[];var f=(r==null||(s=r.scale)===null||s===void 0?void 0:s.scalers)||[],v=[];f.forEach(function(x){var C,T=x.field;(n.hasOwnProperty(T)||((C=r.scale)===null||C===void 0?void 0:C.type)==="variable")&&v.push(n[T])});var g=r.mapping?r.mapping(v):[];return r.name==="color"&&!al(g[0])?[a]:g}}]),e}(),e_=jn(uv.prototype,"configService",[Ky],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t_=jn(uv.prototype,"mapService",[$y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r_=jn(uv.prototype,"fontService",[Qy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),uv))||Jy),i_,a_,Uw=(i_=(0,Wr.b2)(),i_(a_=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"mapService",void 0)}return(0,Pt.Z)(e,[{key:"apply",value:function(r){var n=this;this.mapService=r.getContainer().get(Ht.IMapService),r.hooks.init.tap("DataSourcePlugin",function(){var a=r.getSource();if(!a){var s=r.sourceOption||{data:Al,options:Cf},f=s.data,v=s.options;r.setSource(new Vl(f,v))}n.updateClusterData(r)}),r.hooks.beforeRenderData.tap("DataSourcePlugin",function(){var a=n.updateClusterData(r),s=r.dataState.dataSourceNeedUpdate;return r.dataState.dataSourceNeedUpdate=!1,a||s})}},{key:"updateClusterData",value:function(r){var n=r.getSource(),a=n.cluster,s=n.clusterOptions,f=s.zoom,v=f===void 0?0:f,g=s.maxZoom,x=g===void 0?16:g,C=this.mapService.getZoom()-1,T=r.dataState.dataSourceNeedUpdate;return a&&(T||Math.abs(r.clusterZoom-C)>=1)?(v!==Math.floor(C)&&n.updateClusterData(Math.floor(C)),r.clusterZoom=C,!0):!1}}]),e}())||a_);function Z0(e,i){return ei?1:e>=i?0:NaN}function o_(e){return e.length===1&&(e=Zw(e)),{left:function(i,r,n,a){for(n==null&&(n=0),a==null&&(a=i.length);n>>1;e(i[s],r)<0?n=s+1:a=s}return n},right:function(i,r,n,a){for(n==null&&(n=0),a==null&&(a=i.length);n>>1;e(i[s],r)>0?a=s:n=s+1}return n}}}function Zw(e){return function(i,r){return Z0(e(i),r)}}var s_=o_(Z0),jw=s_.right,eI=s_.left,Vv=jw;function u_(e,i){var r=e.length,n=-1,a,s,f;if(i==null){for(;++n=a)for(s=f=a;++na&&(s=a),f=a)for(s=f=a;++na&&(s=a),f0)return[e];if((n=i0)for(e=Math.ceil(e/v),i=Math.floor(i/v),f=new Array(s=Math.ceil(i-e+1));++a=0?(s>=j0?10:s>=V0?5:s>=G0?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=j0?10:s>=V0?5:s>=G0?2:1)}function H0(e,i,r){var n=Math.abs(i-e)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/a;return s>=j0?a*=10:s>=V0?a*=5:s>=G0&&(a*=2),iT;)O.pop(),--k;var j=new Array(k+1),X;for(s=0;s<=k;++s)X=j[s]=[],X.x0=s>0?O[s-1]:C,X.x1=s=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*i,s=Math.floor(a),f=+r(e[s],s,e),v=+r(e[s+1],s+1,e);return f+(v-f)*(a-s)}}var Hw=U(87765),Mc="$";function Hv(){}Hv.prototype=f_.prototype={constructor:Hv,has:function(e){return Mc+e in this},get:function(e){return this[Mc+e]},set:function(e,i){return this[Mc+e]=i,this},remove:function(e){var i=Mc+e;return i in this&&delete this[i]},clear:function(){for(var e in this)e[0]===Mc&&delete this[e]},keys:function(){var e=[];for(var i in this)i[0]===Mc&&e.push(i.slice(1));return e},values:function(){var e=[];for(var i in this)i[0]===Mc&&e.push(this[i]);return e},entries:function(){var e=[];for(var i in this)i[0]===Mc&&e.push({key:i.slice(1),value:this[i]});return e},size:function(){var e=0;for(var i in this)i[0]===Mc&&++e;return e},empty:function(){for(var e in this)if(e[0]===Mc)return!1;return!0},each:function(e){for(var i in this)i[0]===Mc&&e(this[i],i.slice(1),this)}};function f_(e,i){var r=new Hv;if(e instanceof Hv)e.each(function(v,g){r.set(g,v)});else if(Array.isArray(e)){var n=-1,a=e.length,s;if(i==null)for(;++n=e.length)return r!=null&&v.sort(r),n!=null?n(v):v;for(var T=-1,O=v.length,k=e[g++],j,X,te=map(),be,Ne=x();++Te.length)return v;var x,C=i[g-1];return n!=null&&g>=e.length?x=v.entries():(x=[],v.each(function(T,O){x.push({key:O,values:f(T,g)})})),C!=null?x.sort(function(T,O){return C(T.key,O.key)}):x}return a={object:function(v){return s(v,0,Ww,Xw)},map:function(v){return s(v,0,h_,p_)},entries:function(v){return f(s(v,0,h_,p_),0)},key:function(v){return e.push(v),a},sortKeys:function(v){return i[e.length-1]=v,a},sortValues:function(v){return r=v,a},rollup:function(v){return n=v,a}}}function Ww(){return{}}function Xw(e,i,r){e[i]=r}function h_(){return map()}function p_(e,i,r){e.set(i,r)}function Wv(){}var Rp=W0.prototype;Wv.prototype=Yw.prototype={constructor:Wv,has:Rp.has,add:function(e){return e+="",this[Mc+e]=e,this},remove:Rp.remove,clear:Rp.clear,values:Rp.keys,size:Rp.size,empty:Rp.empty,each:Rp.each};function Yw(e,i){var r=new Wv;if(e instanceof Wv)e.each(function(s){r.add(s)});else if(e){var n=-1,a=e.length;if(i==null)for(;++nr&&(n=i,i=r,r=n),function(a){return Math.max(i,Math.min(r,a))}}function Jw(e,i,r){var n=e[0],a=e[1],s=i[0],f=i[1];return a2?eT:Jw,g=x=null,T}function T(O){return isNaN(O=+O)?s:(g||(g=v(e.map(n),i,r)))(n(f(O)))}return T.invert=function(O){return f(a((x||(x=v(i,e.map(n),Kw.Z)))(O)))},T.domain=function(O){return arguments.length?(e=Xv.call(O,X0),f===el||(f=x_(e)),C()):e.slice()},T.range=function(O){return arguments.length?(i=Lp.call(O),C()):i.slice()},T.rangeRound=function(O){return i=Lp.call(O),r=$w,C()},T.clamp=function(O){return arguments.length?(f=O?x_(e):el,T):f!==el},T.interpolate=function(O){return arguments.length?(r=O,C()):r},T.unknown=function(O){return arguments.length?(s=O,T):s},function(O,k){return n=O,a=k,C()}}function b_(e,i){return q0()(e,i)}var tT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kv(e){if(!(i=tT.exec(e)))throw new Error("invalid format: "+e);var i;return new K0({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}Kv.prototype=K0.prototype;function K0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}K0.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 rT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $v(e,i){if((r=(e=i?e.toExponential(i-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function yd(e){return e=$v(Math.abs(e)),e?e[1]:NaN}function nT(e,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yd(i)/3)))*3-yd(Math.abs(e)))}function iT(e,i){return function(r,n){for(var a=r.length,s=[],f=0,v=e[0],g=0;a>0&&v>0&&(g+v+1>n&&(v=Math.max(1,n-g)),s.push(r.substring(a-=v,a+v)),!((g+=v+1)>n));)v=e[f=(f+1)%e.length];return s.reverse().join(i)}}function aT(e){return function(i){return i.replace(/[0-9]/g,function(r){return e[+r]})}}function oT(e){e:for(var i=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var E_;function sT(e,i){var r=$v(e,i);if(!r)return e+"";var n=r[0],a=r[1],s=a-(E_=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,f=n.length;return s===f?n:s>f?n+new Array(s-f+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+$v(e,Math.max(0,i+s-1))[0]}function S_(e,i){var r=$v(e,i);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var C_={"%":function(e,i){return(e*100).toFixed(i)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:rT,e:function(e,i){return e.toExponential(i)},f:function(e,i){return e.toFixed(i)},g:function(e,i){return e.toPrecision(i)},o:function(e){return Math.round(e).toString(8)},p:function(e,i){return S_(e*100,i)},r:S_,s:sT,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function A_(e){return e}var w_=Array.prototype.map,T_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function uT(e){var i=e.grouping===void 0||e.thousands===void 0?A_:iT(w_.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?A_:aT(w_.call(e.numerals,String)),f=e.percent===void 0?"%":e.percent+"",v=e.minus===void 0?"-":e.minus+"",g=e.nan===void 0?"NaN":e.nan+"";function x(T){T=Kv(T);var O=T.fill,k=T.align,j=T.sign,X=T.symbol,te=T.zero,be=T.width,Ne=T.comma,$e=T.precision,ot=T.trim,bt=T.type;bt==="n"?(Ne=!0,bt="g"):C_[bt]||($e===void 0&&($e=12),ot=!0,bt="g"),(te||O==="0"&&k==="=")&&(te=!0,O="0",k="=");var _t=X==="$"?r:X==="#"&&/[boxX]/.test(bt)?"0"+bt.toLowerCase():"",qt=X==="$"?n:/[%p]/.test(bt)?f:"",ar=C_[bt],Pr=/[defgprs%]/.test(bt);$e=$e===void 0?6:/[gprs]/.test(bt)?Math.max(1,Math.min(21,$e)):Math.max(0,Math.min(20,$e));function qr(gr){var un=_t,Ln=qt,Vn,Fa,Ro;if(bt==="c")Ln=ar(gr)+Ln,gr="";else{gr=+gr;var Ls=gr<0||1/gr<0;if(gr=isNaN(gr)?g:ar(Math.abs(gr),$e),ot&&(gr=oT(gr)),Ls&&+gr==0&&j!=="+"&&(Ls=!1),un=(Ls?j==="("?j:v:j==="-"||j==="("?"":j)+un,Ln=(bt==="s"?T_[8+E_/3]:"")+Ln+(Ls&&j==="("?")":""),Pr){for(Vn=-1,Fa=gr.length;++VnRo||Ro>57){Ln=(Ro===46?a+gr.slice(Vn+1):gr.slice(Vn))+Ln,gr=gr.slice(0,Vn);break}}}Ne&&!te&&(gr=i(gr,Infinity));var au=un.length+gr.length+Ln.length,Vs=au>1)+un+gr+Ln+Vs.slice(au);break;default:gr=Vs+un+gr+Ln;break}return s(gr)}return qr.toString=function(){return T+""},qr}function C(T,O){var k=x((T=Kv(T),T.type="f",T)),j=Math.max(-8,Math.min(8,Math.floor(yd(O)/3)))*3,X=Math.pow(10,-j),te=T_[8+j/3];return function(be){return k(X*be)+te}}return{format:x,formatPrefix:C}}var Qv,$0,M_;lT({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function lT(e){return Qv=uT(e),$0=Qv.format,M_=Qv.formatPrefix,Qv}function cT(e,i){return e=Math.abs(e),i=Math.abs(i)-e,Math.max(0,yd(i)-yd(e))+1}function fT(e){return Math.max(0,-yd(Math.abs(e)))}function hT(e,i,r,n){var a=H0(e,i,r),s;switch(n=Kv(n==null?",f":n),n.type){case"s":{var f=Math.max(Math.abs(e),Math.abs(i));return n.precision==null&&!isNaN(s=nT(a,f))&&(n.precision=s),M_(n,f)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=cT(a,Math.max(Math.abs(e),Math.abs(i))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=fT(a))&&(n.precision=s-(n.type==="%")*2);break}}return $0(n)}function _d(e){var i=e.domain;return e.ticks=function(r){var n=i();return c_(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var a=i();return hT(a[0],a[a.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=i(),a=0,s=n.length-1,f=n[a],v=n[s],g;return v0?(f=Math.floor(f/g)*g,v=Math.ceil(v/g)*g,g=Gv(f,v,r)):g<0&&(f=Math.ceil(f*g)/g,v=Math.floor(v*g)/g,g=Gv(f,v,r)),g>0?(n[a]=Math.floor(f/g)*g,n[s]=Math.ceil(v/g)*g,i(n)):g<0&&(n[a]=Math.ceil(f*g)/g,n[s]=Math.floor(v*g)/g,i(n)),e},e}function P_(){var e=b_(el,el);return e.copy=function(){return qv(e,P_())},Qh.apply(e,arguments),_d(e)}function I_(e){var i;function r(n){return isNaN(n=+n)?i:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Xv.call(n,X0),r):e.slice()},r.unknown=function(n){return arguments.length?(i=n,r):i},r.copy=function(){return I_(e).unknown(i)},e=arguments.length?Xv.call(e,X0):[0,1],_d(r)}function O_(e,i){e=e.slice();var r=0,n=e.length-1,a=e[r],s=e[n],f;return s0){for(;OC)break;Ne.push(te)}}else for(;O=1;--X)if(te=j*X,!(teC)break;Ne.push(te)}}else Ne=c_(O,k,Math.min(k-O,be)).map(s);return T?Ne.reverse():Ne},i.tickFormat=function(v,g){if(g==null&&(g=n===10?".0e":","),typeof g!="function"&&(g=$0(g)),v===Infinity)return g;v==null&&(v=10);var x=Math.max(1,n*v/i.ticks().length);return function(C){var T=C/s(Math.round(a(C)));return T*n0?r[v-1]:e[0],v=r?[n[r-1],i]:[n[x-1],n[x]]},f.unknown=function(g){return arguments.length&&(s=g),f},f.thresholds=function(){return n.slice()},f.copy=function(){return U_().domain([e,i]).range(a).unknown(s)},Qh.apply(_d(f),arguments)}function Z_(){var e=[.5],i=[0,1],r,n=1;function a(s){return s<=s?i[Vv(e,s,0,n)]:r}return a.domain=function(s){return arguments.length?(e=Lp.call(s),n=Math.min(e.length,i.length-1),a):e.slice()},a.range=function(s){return arguments.length?(i=Lp.call(s),n=Math.min(e.length,i.length-1),a):i.slice()},a.invertExtent=function(s){var f=i.indexOf(s);return[e[f-1],e[f]]},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return Z_().domain(e).range(i).unknown(r)},Qh.apply(a,arguments)}var J0=new Date,em=new Date;function ul(e,i,r,n){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=function(s){return e(s=new Date(+s)),s},a.ceil=function(s){return e(s=new Date(s-1)),i(s,1),e(s),s},a.round=function(s){var f=a(s),v=a.ceil(s);return s-f0))return g;do g.push(x=new Date(+s)),i(s,v),e(s);while(x=f)for(;e(f),!s(f);)f.setTime(f-1)},function(f,v){if(f>=f)if(v<0)for(;++v<=0;)for(;i(f,-1),!s(f););else for(;--v>=0;)for(;i(f,1),!s(f););})},r&&(a.count=function(s,f){return J0.setTime(+s),em.setTime(+f),e(J0),e(em),Math.floor(r(J0,em))},a.every=function(s){return s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(n?function(f){return n(f)%s==0}:function(f){return a.count(0,f)%s==0}):a}),a}var tm=ul(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i)},function(e,i){return i.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});tm.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ul(function(i){i.setFullYear(Math.floor(i.getFullYear()/e)*e),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,r){i.setFullYear(i.getFullYear()+r*e)})};var xd=tm,lI=tm.range,j_=ul(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,i){e.setMonth(e.getMonth()+i)},function(e,i){return i.getMonth()-e.getMonth()+(i.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),CT=j_,cI=j_.range,Jv=1e3,lv=6e4,V_=36e5,G_=864e5,H_=6048e5;function kp(e){return ul(function(i){i.setDate(i.getDate()-(i.getDay()+7-e)%7),i.setHours(0,0,0,0)},function(i,r){i.setDate(i.getDate()+r*7)},function(i,r){return(r-i-(r.getTimezoneOffset()-i.getTimezoneOffset())*lv)/H_})}var rm=kp(0),e0=kp(1),AT=kp(2),wT=kp(3),bd=kp(4),TT=kp(5),MT=kp(6),fI=rm.range,hI=e0.range,pI=AT.range,dI=wT.range,vI=bd.range,mI=TT.range,gI=MT.range,W_=ul(function(e){e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+i)},function(e,i){return(i-e-(i.getTimezoneOffset()-e.getTimezoneOffset())*lv)/G_},function(e){return e.getDate()-1}),nm=W_,yI=W_.range,X_=ul(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jv-e.getMinutes()*lv)},function(e,i){e.setTime(+e+i*V_)},function(e,i){return(i-e)/V_},function(e){return e.getHours()}),PT=X_,_I=X_.range,Y_=ul(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jv)},function(e,i){e.setTime(+e+i*lv)},function(e,i){return(i-e)/lv},function(e){return e.getMinutes()}),IT=Y_,xI=Y_.range,q_=ul(function(e){e.setTime(e-e.getMilliseconds())},function(e,i){e.setTime(+e+i*Jv)},function(e,i){return(i-e)/Jv},function(e){return e.getUTCSeconds()}),OT=q_,bI=q_.range,t0=ul(function(){},function(e,i){e.setTime(+e+i)},function(e,i){return i-e});t0.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ul(function(i){i.setTime(Math.floor(i/e)*e)},function(i,r){i.setTime(+i+r*e)},function(i,r){return(r-i)/e}):t0};var RT=t0,EI=t0.range;function Dp(e){return ul(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-e)%7),i.setUTCHours(0,0,0,0)},function(i,r){i.setUTCDate(i.getUTCDate()+r*7)},function(i,r){return(r-i)/H_})}var K_=Dp(0),r0=Dp(1),LT=Dp(2),kT=Dp(3),Ed=Dp(4),DT=Dp(5),FT=Dp(6),SI=K_.range,CI=r0.range,AI=LT.range,wI=kT.range,TI=Ed.range,MI=DT.range,PI=FT.range,$_=ul(function(e){e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+i)},function(e,i){return(i-e)/G_},function(e){return e.getUTCDate()-1}),Q_=$_,II=$_.range,im=ul(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i)},function(e,i){return i.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});im.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ul(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/e)*e),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,r){i.setUTCFullYear(i.getUTCFullYear()+r*e)})};var cv=im,OI=im.range;function am(e){if(0<=e.y&&e.y<100){var i=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return i.setFullYear(e.y),i}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function om(e){if(0<=e.y&&e.y<100){var i=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return i.setUTCFullYear(e.y),i}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fv(e,i,r){return{y:e,m:i,d:r,H:0,M:0,S:0,L:0}}function BT(e){var i=e.dateTime,r=e.date,n=e.time,a=e.periods,s=e.days,f=e.shortDays,v=e.months,g=e.shortMonths,x=hv(a),C=pv(a),T=hv(s),O=pv(s),k=hv(f),j=pv(f),X=hv(v),te=pv(v),be=hv(g),Ne=pv(g),$e={a:Ls,A:au,b:Vs,B:Oc,c:null,d:i1,e:i1,f:oM,g:mM,G:yM,H:nM,I:iM,j:aM,L:a1,m:sM,M:uM,p:gm,q:g0,Q:f1,s:h1,S:lM,u:cM,U:fM,V:hM,w:pM,W:dM,x:null,X:null,y:vM,Y:gM,Z:_M,"%":c1},ot={a:bP,A:EP,b:SP,B:CP,c:null,d:s1,e:s1,f:SM,g:LM,G:DM,H:xM,I:bM,j:EM,L:u1,m:CM,M:AM,p:AP,q:wP,Q:f1,s:h1,S:wM,u:TM,U:MM,V:PM,w:IM,W:OM,x:null,X:null,y:RM,Y:kM,Z:FM,"%":c1},bt={a:qr,A:gr,b:un,B:Ln,c:Vn,d:r1,e:r1,f:JT,g:t1,G:e1,H:n1,I:n1,j:qT,L:QT,m:YT,M:KT,p:Pr,q:XT,Q:tM,s:rM,S:$T,u:jT,U:VT,V:GT,w:ZT,W:HT,x:Fa,X:Ro,y:t1,Y:e1,Z:WT,"%":eM};$e.x=_t(r,$e),$e.X=_t(n,$e),$e.c=_t(i,$e),ot.x=_t(r,ot),ot.X=_t(n,ot),ot.c=_t(i,ot);function _t(ci,Oa){return function(eo){var _n=[],Pl=-1,qo=0,ec=ci.length,tc,Np,hb;for(eo instanceof Date||(eo=new Date(+eo));++Pl53)return null;"w"in _n||(_n.w=1),"Z"in _n?(qo=om(fv(_n.y,0,1)),ec=qo.getUTCDay(),qo=ec>4||ec===0?r0.ceil(qo):r0(qo),qo=Q_.offset(qo,(_n.V-1)*7),_n.y=qo.getUTCFullYear(),_n.m=qo.getUTCMonth(),_n.d=qo.getUTCDate()+(_n.w+6)%7):(qo=am(fv(_n.y,0,1)),ec=qo.getDay(),qo=ec>4||ec===0?e0.ceil(qo):e0(qo),qo=nm.offset(qo,(_n.V-1)*7),_n.y=qo.getFullYear(),_n.m=qo.getMonth(),_n.d=qo.getDate()+(_n.w+6)%7)}else("W"in _n||"U"in _n)&&("w"in _n||(_n.w="u"in _n?_n.u%7:"W"in _n?1:0),ec="Z"in _n?om(fv(_n.y,0,1)).getUTCDay():am(fv(_n.y,0,1)).getDay(),_n.m=0,_n.d="W"in _n?(_n.w+6)%7+_n.W*7-(ec+5)%7:_n.w+_n.U*7-(ec+6)%7);return"Z"in _n?(_n.H+=_n.Z/100|0,_n.M+=_n.Z%100,om(_n)):am(_n)}}function ar(ci,Oa,eo,_n){for(var Pl=0,qo=Oa.length,ec=eo.length,tc,Np;Pl=ec)return-1;if(tc=Oa.charCodeAt(Pl++),tc===37){if(tc=Oa.charAt(Pl++),Np=bt[tc in J_?Oa.charAt(Pl++):tc],!Np||(_n=Np(ci,eo,_n))<0)return-1}else if(tc!=eo.charCodeAt(_n++))return-1}return _n}function Pr(ci,Oa,eo){var _n=x.exec(Oa.slice(eo));return _n?(ci.p=C[_n[0].toLowerCase()],eo+_n[0].length):-1}function qr(ci,Oa,eo){var _n=k.exec(Oa.slice(eo));return _n?(ci.w=j[_n[0].toLowerCase()],eo+_n[0].length):-1}function gr(ci,Oa,eo){var _n=T.exec(Oa.slice(eo));return _n?(ci.w=O[_n[0].toLowerCase()],eo+_n[0].length):-1}function un(ci,Oa,eo){var _n=be.exec(Oa.slice(eo));return _n?(ci.m=Ne[_n[0].toLowerCase()],eo+_n[0].length):-1}function Ln(ci,Oa,eo){var _n=X.exec(Oa.slice(eo));return _n?(ci.m=te[_n[0].toLowerCase()],eo+_n[0].length):-1}function Vn(ci,Oa,eo){return ar(ci,i,Oa,eo)}function Fa(ci,Oa,eo){return ar(ci,r,Oa,eo)}function Ro(ci,Oa,eo){return ar(ci,n,Oa,eo)}function Ls(ci){return f[ci.getDay()]}function au(ci){return s[ci.getDay()]}function Vs(ci){return g[ci.getMonth()]}function Oc(ci){return v[ci.getMonth()]}function gm(ci){return a[+(ci.getHours()>=12)]}function g0(ci){return 1+~~(ci.getMonth()/3)}function bP(ci){return f[ci.getUTCDay()]}function EP(ci){return s[ci.getUTCDay()]}function SP(ci){return g[ci.getUTCMonth()]}function CP(ci){return v[ci.getUTCMonth()]}function AP(ci){return a[+(ci.getUTCHours()>=12)]}function wP(ci){return 1+~~(ci.getUTCMonth()/3)}return{format:function(ci){var Oa=_t(ci+="",$e);return Oa.toString=function(){return ci},Oa},parse:function(ci){var Oa=qt(ci+="",!1);return Oa.toString=function(){return ci},Oa},utcFormat:function(ci){var Oa=_t(ci+="",ot);return Oa.toString=function(){return ci},Oa},utcParse:function(ci){var Oa=qt(ci+="",!0);return Oa.toString=function(){return ci},Oa}}}var J_={"-":"",_:" ","0":"0"},_u=/^\s*\d+/,NT=/^%/,zT=/[\\^$*+?|[\]().{}]/g;function Ja(e,i,r){var n=e<0?"-":"",a=(n?-e:e)+"",s=a.length;return n+(s68?1900:2e3),r+n[0].length):-1}function WT(e,i,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function XT(e,i,r){var n=_u.exec(i.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function YT(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function r1(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function qT(e,i,r){var n=_u.exec(i.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function n1(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function KT(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function $T(e,i,r){var n=_u.exec(i.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function QT(e,i,r){var n=_u.exec(i.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function JT(e,i,r){var n=_u.exec(i.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function eM(e,i,r){var n=NT.exec(i.slice(r,r+1));return n?r+n[0].length:-1}function tM(e,i,r){var n=_u.exec(i.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rM(e,i,r){var n=_u.exec(i.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function i1(e,i){return Ja(e.getDate(),i,2)}function nM(e,i){return Ja(e.getHours(),i,2)}function iM(e,i){return Ja(e.getHours()%12||12,i,2)}function aM(e,i){return Ja(1+nm.count(xd(e),e),i,3)}function a1(e,i){return Ja(e.getMilliseconds(),i,3)}function oM(e,i){return a1(e,i)+"000"}function sM(e,i){return Ja(e.getMonth()+1,i,2)}function uM(e,i){return Ja(e.getMinutes(),i,2)}function lM(e,i){return Ja(e.getSeconds(),i,2)}function cM(e){var i=e.getDay();return i===0?7:i}function fM(e,i){return Ja(rm.count(xd(e)-1,e),i,2)}function o1(e){var i=e.getDay();return i>=4||i===0?bd(e):bd.ceil(e)}function hM(e,i){return e=o1(e),Ja(bd.count(xd(e),e)+(xd(e).getDay()===4),i,2)}function pM(e){return e.getDay()}function dM(e,i){return Ja(e0.count(xd(e)-1,e),i,2)}function vM(e,i){return Ja(e.getFullYear()%100,i,2)}function mM(e,i){return e=o1(e),Ja(e.getFullYear()%100,i,2)}function gM(e,i){return Ja(e.getFullYear()%1e4,i,4)}function yM(e,i){var r=e.getDay();return e=r>=4||r===0?bd(e):bd.ceil(e),Ja(e.getFullYear()%1e4,i,4)}function _M(e){var i=e.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Ja(i/60|0,"0",2)+Ja(i%60,"0",2)}function s1(e,i){return Ja(e.getUTCDate(),i,2)}function xM(e,i){return Ja(e.getUTCHours(),i,2)}function bM(e,i){return Ja(e.getUTCHours()%12||12,i,2)}function EM(e,i){return Ja(1+Q_.count(cv(e),e),i,3)}function u1(e,i){return Ja(e.getUTCMilliseconds(),i,3)}function SM(e,i){return u1(e,i)+"000"}function CM(e,i){return Ja(e.getUTCMonth()+1,i,2)}function AM(e,i){return Ja(e.getUTCMinutes(),i,2)}function wM(e,i){return Ja(e.getUTCSeconds(),i,2)}function TM(e){var i=e.getUTCDay();return i===0?7:i}function MM(e,i){return Ja(K_.count(cv(e)-1,e),i,2)}function l1(e){var i=e.getUTCDay();return i>=4||i===0?Ed(e):Ed.ceil(e)}function PM(e,i){return e=l1(e),Ja(Ed.count(cv(e),e)+(cv(e).getUTCDay()===4),i,2)}function IM(e){return e.getUTCDay()}function OM(e,i){return Ja(r0.count(cv(e)-1,e),i,2)}function RM(e,i){return Ja(e.getUTCFullYear()%100,i,2)}function LM(e,i){return e=l1(e),Ja(e.getUTCFullYear()%100,i,2)}function kM(e,i){return Ja(e.getUTCFullYear()%1e4,i,4)}function DM(e,i){var r=e.getUTCDay();return e=r>=4||r===0?Ed(e):Ed.ceil(e),Ja(e.getUTCFullYear()%1e4,i,4)}function FM(){return"+0000"}function c1(){return"%"}function f1(e){return+e}function h1(e){return Math.floor(+e/1e3)}var Sd,p1,BM,NM,zM;UM({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 UM(e){return Sd=BT(e),p1=Sd.format,BM=Sd.parse,NM=Sd.utcFormat,zM=Sd.utcParse,Sd}var dv=1e3,vv=dv*60,mv=vv*60,gv=mv*24,ZM=gv*7,d1=gv*30,sm=gv*365;function jM(e){return new Date(e)}function VM(e){return e instanceof Date?+e:+new Date(+e)}function v1(e,i,r,n,a,s,f,v,g){var x=b_(el,el),C=x.invert,T=x.domain,O=g(".%L"),k=g(":%S"),j=g("%I:%M"),X=g("%I %p"),te=g("%a %d"),be=g("%b %d"),Ne=g("%B"),$e=g("%Y"),ot=[[f,1,dv],[f,5,5*dv],[f,15,15*dv],[f,30,30*dv],[s,1,vv],[s,5,5*vv],[s,15,15*vv],[s,30,30*vv],[a,1,mv],[a,3,3*mv],[a,6,6*mv],[a,12,12*mv],[n,1,gv],[n,2,2*gv],[r,1,ZM],[i,1,d1],[i,3,3*d1],[e,1,sm]];function bt(qt){return(f(qt)0&&arguments[0]!==void 0?arguments[0]:{};this.texture(r)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(r){var n=r.width,a=r.height;this.texture.resize(n,a),this.width=n,this.height=a}},{key:"destroy",value:function(){if(!this.isDistroy){var r;(r=this.texture)===null||r===void 0||r.destroy()}this.isDistroy=!0}}]),e}(),dx,vx,k5=(dx=(0,Wr.b2)(),dx(vx=function(){function e(){var i=this;(0,ht.Z)(this,e),(0,A.Z)(this,"extensionObject",void 0),(0,A.Z)(this,"gl",void 0),(0,A.Z)(this,"$container",void 0),(0,A.Z)(this,"canvas",void 0),(0,A.Z)(this,"width",void 0),(0,A.Z)(this,"height",void 0),(0,A.Z)(this,"isDirty",void 0),(0,A.Z)(this,"createModel",function(r){return new R5(i.gl,r)}),(0,A.Z)(this,"createAttribute",function(r){return new g5(i.gl,r)}),(0,A.Z)(this,"createBuffer",function(r){return new A5(i.gl,r)}),(0,A.Z)(this,"createElements",function(r){return new w5(i.gl,r)}),(0,A.Z)(this,"createTexture2D",function(r){return new L5(i.gl,r)}),(0,A.Z)(this,"createFramebuffer",function(r){return new T5(i.gl,r)}),(0,A.Z)(this,"useFramebuffer",function(r,n){i.gl({framebuffer:r?r.get():null})(n)}),(0,A.Z)(this,"clear",function(r){var n=r.color,a=r.depth,s=r.stencil,f=r.framebuffer,v=f===void 0?null:f,g={color:n,depth:a,stencil:s};g.framebuffer=v===null?v:v.get(),i.gl.clear(g)}),(0,A.Z)(this,"viewport",function(r){var n=r.x,a=r.y,s=r.width,f=r.height;i.gl._gl.viewport(n,a,s,f),i.width=s,i.height=f,i.gl._refresh()}),(0,A.Z)(this,"readPixels",function(r){var n=r.framebuffer,a=r.x,s=r.y,f=r.width,v=r.height,g={x:a,y:s,width:f,height:v};return n&&(g.framebuffer=n.get()),i.gl.read(g)}),(0,A.Z)(this,"getViewportSize",function(){return{width:i.gl._gl.drawingBufferWidth,height:i.gl._gl.drawingBufferHeight}}),(0,A.Z)(this,"getContainer",function(){if(ts)return i.canvas;var r;return(r=i.canvas)===null||r===void 0?void 0:r.parentElement}),(0,A.Z)(this,"getCanvas",function(){return i.canvas}),(0,A.Z)(this,"getGLContext",function(){return i.gl._gl}),(0,A.Z)(this,"destroy",function(){i.canvas=null,i.gl.destroy(),i.gl=null})}return(0,Pt.Z)(e,[{key:"init",value:function(){var i=(0,P.Z)(N().mark(function n(a,s){var f=this;return N().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return this.canvas=a,g.next=3,new Promise(function(x,C){m5()({canvas:f.canvas,attributes:{alpha:!0,antialias:s.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:s.preserveDrawingBuffer,stencil:s.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(O,k){(O||!k)&&C(O),x(k)}})});case 3:this.gl=g.sent,this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 5:case"end":return g.stop()}},n,this)}));function r(n,a){return i.apply(this,arguments)}return r}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(r){return!!this.getGLContext().getExtension(r)}},{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 r=this.getGLContext();r.disable(r.CULL_FACE)}},{key:"setDirty",value:function(r){this.isDirty=r}},{key:"getDirty",value:function(){return this.isDirty}}]),e}())||vx);function mx(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var i=1;ie.length)&&(i=e.length);for(var r=0,n=new Array(i);r=-90&&a<=90,"invalid latitude"),i*=hm;var s=n*xh,f=a*xh,v=i*(s+af)/(2*af),g=i*(af-Math.log(Math.tan(Cx+f*.5)))/(2*af);return[v,g]}function dm(e,i){var r=(0,on.Z)(e,2),n=r[0],a=r[1];i*=hm;var s=n/i*(2*af)-af,f=2*(Math.atan(Math.exp(af-a/i*(2*af)))-Cx);return[s*Ax,f*Ax]}function VI(e){var i=e.latitude;assert(Number.isFinite(i));var r=Math.cos(i*xh);return G5(pm*r)-9}function Mx(e){var i=e.latitude,r=e.longitude,n=e.zoom,a=e.scale,s=e.highPrecision,f=s===void 0?!1:s;a=a!==void 0?a:Tx(n),Bp(Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(a));var v={},g=hm*a,x=Math.cos(i*xh),C=g/360,T=C/x,O=g/pm/x;if(v.pixelsPerMeter=[O,-O,O],v.metersPerPixel=[1/O,-1/O,1/O],v.pixelsPerDegree=[C,-T,O],v.degreesPerPixel=[1/C,-1/T,1/O],f){var k=xh*Math.tan(i*xh)/x,j=C*k/2,X=g/pm*k,te=X/T*O;v.pixelsPerDegree2=[0,-j,X],v.pixelsPerMeter2=[te,0,te]}return v}function GI(e,i){var r=_slicedToArray(e,3),n=r[0],a=r[1],s=r[2],f=_slicedToArray(i,3),v=f[0],g=f[1],x=f[2],C=1,T=Mx({longitude:n,latitude:a,scale:C,highPrecision:!0}),O=T.pixelsPerMeter,k=T.pixelsPerMeter2,j=f0(e,C);j[0]+=v*(O[0]+k[0]*g),j[1]+=g*(O[1]+k[1]*g);var X=dm(j,C),te=(s||0)+(x||0);return Number.isFinite(s)||Number.isFinite(x)?[X[0],X[1],te]:X}function H5(e){var i=e.height,r=e.pitch,n=e.bearing,a=e.altitude,s=e.center,f=s===void 0?null:s,v=e.flipY,g=v===void 0?!1:v,x=Cv();return jr(x,x,[0,0,-a]),en(x,x,[1,1,1/i]),ui(x,x,-r*xh),Ga(x,x,n*xh),g&&en(x,x,[1,-1,1]),f&&jr(x,x,Xa.negate([],f)),x}function W5(e){var i=e.width,r=e.height,n=e.altitude,a=n===void 0?V5:n,s=e.pitch,f=s===void 0?0:s,v=e.nearZMultiplier,g=v===void 0?1:v,x=e.farZMultiplier,C=x===void 0?1:x,T=f*xh,O=Math.atan(.5/a),k=Math.sin(O)*a/Math.sin(Math.PI/2-T-O),j=Math.cos(Math.PI/2-T)*k+a;return{fov:2*Math.atan(r/2/a),aspect:i/r,focalDistance:a,near:g,far:j*C}}function X5(e){var i=e.width,r=e.height,n=e.pitch,a=e.altitude,s=e.nearZMultiplier,f=e.farZMultiplier,v=W5({width:i,height:r,altitude:a,pitch:n,nearZMultiplier:s,farZMultiplier:f}),g=v.fov,x=v.aspect,C=v.near,T=v.far,O=ua([],g,x,C,T);return O}function Y5(e,i){var r=(0,on.Z)(e,3),n=r[0],a=r[1],s=r[2],f=s===void 0?0:s;return Bp(Number.isFinite(n)&&Number.isFinite(a)&&Number.isFinite(f)),c0(i,[n,a,f,1])}function Px(e,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,on.Z)(e,3),a=n[0],s=n[1],f=n[2];if(Bp(Number.isFinite(a)&&Number.isFinite(s),"invalid pixel coordinate"),Number.isFinite(f)){var v=c0(i,[a,s,f,1]);return v}var g=c0(i,[a,s,0,1]),x=c0(i,[a,s,1,1]),C=g[2],T=x[2],O=C===T?0:((r||0)-C)/(T-C);return Ci.t7([],g,x,O)}var Ix=Cv(),q5=function(){function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=i.width,n=i.height,a=i.viewMatrix,s=a===void 0?Ix:a,f=i.projectionMatrix,v=f===void 0?Ix:f;(0,ht.Z)(this,e),this.width=r||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=s,this.projectionMatrix=v;var g=Cv();Gn(g,g,this.projectionMatrix),Gn(g,g,this.viewMatrix),this.viewProjectionMatrix=g;var x=Cv();en(x,x,[this.width/2,-this.height/2,1]),jr(x,x,[1,-1,0]),Gn(x,x,this.viewProjectionMatrix);var C=Hr(Cv(),x);if(!C)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=x,this.pixelUnprojectionMatrix=C,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,Pt.Z)(e,[{key:"equals",value:function(r){return r instanceof e?r.width===this.width&&r.height===this.height&&nt(r.projectionMatrix,this.projectionMatrix)&&nt(r.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,s=a===void 0?!0:a,f=this.projectPosition(r),v=Y5(f,this.pixelProjectionMatrix),g=(0,on.Z)(v,2),x=g[0],C=g[1],T=s?C:this.height-C;return r.length===2?[x,T]:[x,T,v[2]]}},{key:"unproject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,s=a===void 0?!0:a,f=n.targetZ,v=(0,on.Z)(r,3),g=v[0],x=v[1],C=v[2],T=s?x:this.height-x,O=f&&f*this.pixelsPerMeter,k=Px([g,T,C],this.pixelUnprojectionMatrix,O),j=this.unprojectPosition(k),X=(0,on.Z)(j,3),te=X[0],be=X[1],Ne=X[2];return Number.isFinite(C)?[te,be,Ne]:Number.isFinite(f)?[te,be,f]:[te,be]}},{key:"projectPosition",value:function(r){var n=this.projectFlat(r),a=(0,on.Z)(n,2),s=a[0],f=a[1],v=(r[2]||0)*this.pixelsPerMeter;return[s,f,v]}},{key:"unprojectPosition",value:function(r){var n=this.unprojectFlat(r),a=(0,on.Z)(n,2),s=a[0],f=a[1],v=(r[2]||0)/this.pixelsPerMeter;return[s,f,v]}},{key:"projectFlat",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return r}},{key:"unprojectFlat",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return r}}]),e}();function K5(e){var i=e.width,r=e.height,n=e.bounds,a=e.minExtent,s=a===void 0?0:a,f=e.maxZoom,v=f===void 0?24:f,g=e.padding,x=g===void 0?0:g,C=e.offset,T=C===void 0?[0,0]:C,O=(0,on.Z)(n,2),k=(0,on.Z)(O[0],2),j=k[0],X=k[1],te=(0,on.Z)(O[1],2),be=te[0],Ne=te[1];if(Number.isFinite(x)){var $e=x;x={top:$e,bottom:$e,left:$e,right:$e}}else Bp(Number.isFinite(x.top)&&Number.isFinite(x.bottom)&&Number.isFinite(x.left)&&Number.isFinite(x.right));var ot=new Ox({width:i,height:r,longitude:0,latitude:0,zoom:0}),bt=ot.project([j,Ne]),_t=ot.project([be,X]),qt=[Math.max(Math.abs(_t[0]-bt[0]),s),Math.max(Math.abs(_t[1]-bt[1]),s)],ar=[i-x.left-x.right-Math.abs(T[0])*2,r-x.top-x.bottom-Math.abs(T[1])*2];Bp(ar[0]>0&&ar[1]>0);var Pr=ar[0]/qt[0],qr=ar[1]/qt[1],gr=(x.right-x.left)/2/Pr,un=(x.bottom-x.top)/2/qr,Ln=[(_t[0]+bt[0])/2+gr,(_t[1]+bt[1])/2+un],Vn=ot.unproject(Ln),Fa=ot.zoom+Math.log2(Math.abs(Math.min(Pr,qr)));return{longitude:Vn[0],latitude:Vn[1],zoom:Math.min(Fa,v)}}var Ox=function(e){(0,Ir.Z)(i,e);function i(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.width,s=n.height,f=n.latitude,v=f===void 0?0:f,g=n.longitude,x=g===void 0?0:g,C=n.zoom,T=C===void 0?0:C,O=n.pitch,k=O===void 0?0:O,j=n.bearing,X=j===void 0?0:j,te=n.altitude,be=te===void 0?1.5:te,Ne=n.nearZMultiplier,$e=n.farZMultiplier;(0,ht.Z)(this,i),a=a||1,s=s||1;var ot=Tx(T);be=Math.max(.75,be);var bt=f0([x,v],ot);bt[2]=0;var _t=X5({width:a,height:s,pitch:k,bearing:X,altitude:be,nearZMultiplier:Ne||1/s,farZMultiplier:$e||1.01}),qt=H5({height:s,center:bt,pitch:k,bearing:X,altitude:be,flipY:!0});return r=(0,wr.Z)(this,(0,Mt.Z)(i).call(this,{width:a,height:s,viewMatrix:qt,projectionMatrix:_t})),r.latitude=v,r.longitude=x,r.zoom=T,r.pitch=k,r.bearing=X,r.altitude=be,r.scale=ot,r.center=bt,r.pixelsPerMeter=Mx((0,ne.Z)((0,ne.Z)(r))).pixelsPerMeter[2],Object.freeze((0,ne.Z)((0,ne.Z)(r))),r}return(0,Pt.Z)(i,[{key:"projectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f0(n,a)}},{key:"unprojectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return dm(n,a)}},{key:"getMapCenterByLngLatPosition",value:function(n){var a=n.lngLat,s=n.pos,f=Px(s,this.pixelUnprojectionMatrix),v=f0(a,this.scale),g=Ci.IH([],v,Ci.tk([],f)),x=Ci.IH([],this.center,g);return dm(x,this.scale)}},{key:"getLocationAtPoint",value:function(n){var a=n.lngLat,s=n.pos;return this.getMapCenterByLngLatPosition({lngLat:a,pos:s})}},{key:"fitBounds",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.width,f=this.height,v=K5(Object.assign({width:s,height:f,bounds:n},a)),g=v.longitude,x=v.latitude,C=v.zoom;return new i({width:s,height:f,longitude:g,latitude:x,zoom:C})}}]),i}(q5),$5=function(){function e(){(0,ht.Z)(this,e),(0,A.Z)(this,"viewport",void 0)}return(0,Pt.Z)(e,[{key:"syncWithMapCamera",value:function(r){var n=r.center,a=r.zoom,s=r.pitch,f=r.bearing,v=r.viewportHeight,g=r.viewportWidth;this.viewport=new Ox({width:g,height:v,longitude:n&&n[0],latitude:n&&n[1],zoom:a,pitch:s,bearing:f})}},{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(r,n){return this.viewport.projectFlat(r,n)}}]),e}(),Q5=function(){function e(i){(0,ht.Z)(this,e),(0,A.Z)(this,"size",1e4),this.size=i||1e4}return(0,Pt.Z)(e,[{key:"setSize",value:function(r){this.size=r}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(r){return(180+r)/360*this.size}},{key:"mercatorYfromLat",value:function(r){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(r){return r/this.size*360-180}},{key:"latFromMercatorY",value:function(r){var n=180-(1-r/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90}},{key:"project",value:function(r){var n=this.mercatorXfromLng(r[0]),a=this.mercatorYfromLat(r[1]);return[n,a]}},{key:"unproject",value:function(r){var n=this.lngFromMercatorX(r[0]),a=this.latFromMercatorY(r[1]);return[n,a]}}]),e}(),Rx={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"}}]}},J5=["id","attributionControl","style","token","rotation","mapInstance"],Lx,kx,Dx,Fx,Bx,Nx,wd,zx,Ux,Zx,jx;function Vx(e,i){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function e3(e){for(var i=1;i.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=Sv();var Gx={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},r3=0,n3=12,Hx="pk.eyJ1IjoiMTg5Njk5NDg2MTkiLCJhIjoiY2s5OXVzdHlzMDVneDNscDVjdzVmeXl0dyJ9.81SQ5qaJS0xExYLbDZAGpQ",i3=(Lx=(0,Wr.b2)(),kx=(0,Wr.f3)(Ht.MapConfig),Dx=(0,Wr.f3)(Ht.IGlobalConfigService),Fx=(0,Wr.f3)(Ht.ICoordinateSystemService),Bx=(0,Wr.f3)(Ht.IEventEmitter),Lx(Nx=(wd=function(){function e(){var i=this;(0,ht.Z)(this,e),(0,A.Z)(this,"version",js.MAPBOX),(0,A.Z)(this,"map",void 0),(0,A.Z)(this,"simpleMapCoord",new Q5),(0,A.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Ui(this,"config",zx,this),Ui(this,"configService",Ux,this),Ui(this,"coordinateSystemService",Zx,this),Ui(this,"eventEmitter",jx,this),(0,A.Z)(this,"viewport",void 0),(0,A.Z)(this,"markerContainer",void 0),(0,A.Z)(this,"cameraChangedCallback",void 0),(0,A.Z)(this,"$mapContainer",void 0),(0,A.Z)(this,"handleCameraChanged",function(){var r=i.map.getCenter().wrap(),n=r.lat,a=r.lng;i.emit("mapchange"),i.viewport.syncWithMapCamera({bearing:i.map.getBearing(),center:[a,n],viewportHeight:i.map.transform.height,pitch:i.map.getPitch(),viewportWidth:i.map.transform.width,zoom:i.map.getZoom(),cameraHeight:0});var s=i.config.offsetZoom,f=s===void 0?n3:s;i.viewport.getZoom()>f?i.coordinateSystemService.setCoordinateSystem(Ai.LNGLAT_OFFSET):i.coordinateSystemService.setCoordinateSystem(Ai.LNGLAT),i.cameraChangedCallback(i.viewport)})}return(0,Pt.Z)(e,[{key:"setBgColor",value:function(r){this.bgColor=r}},{key:"addMarkerContainer",value:function(){var r=this.map.getCanvasContainer();this.markerContainer=lo("div","l7-marker-container",r),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(r,n){j2.indexOf(r)!==-1?this.eventEmitter.on(r,n):this.map.on(Gx[r]||r,n)}},{key:"off",value:function(r,n){this.map.off(Gx[r]||r,n),this.eventEmitter.off(r,n)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var r=this.map.transform;return[r.width,r.height]}},{key:"getType",value:function(){return"mapbox"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(r){return this.map.setZoom(r)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(r){this.map.setCenter(r)}},{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(r){this.map.setBearing(r)}},{key:"zoomIn",value:function(r,n){this.map.zoomIn(r,n)}},{key:"zoomOut",value:function(r,n){this.map.zoomOut(r,n)}},{key:"setPitch",value:function(r){return this.map.setPitch(r)}},{key:"panTo",value:function(r){this.map.panTo(r)}},{key:"panBy",value:function(r,n){this.panTo([r,n])}},{key:"fitBounds",value:function(r,n){this.map.fitBounds(r,n)}},{key:"setMaxZoom",value:function(r){this.map.setMaxZoom(r)}},{key:"setMinZoom",value:function(r){this.map.setMinZoom(r)}},{key:"setMapStatus",value:function(r){r.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),r.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),r.dragEnable===!1&&this.map.dragPan.disable(),r.dragEnable===!0&&this.map.dragPan.enable(),r.rotateEnable===!1&&this.map.dragRotate.disable(),r.rotateEnable===!0&&this.map.dragRotate.enable(),r.keyboardEnable===!1&&this.map.keyboard.disable(),r.keyboardEnable===!0&&this.map.keyboard.enable(),r.zoomEnable===!1&&this.map.scrollZoom.disable(),r.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(r,n){this.map.flyTo({zoom:r,center:n})}},{key:"setMapStyle",value:function(r){this.map.setStyle(this.getMapStyle(r))}},{key:"pixelToLngLat",value:function(r){return this.map.unproject(r)}},{key:"lngLatToPixel",value:function(r){return this.map.project(r)}},{key:"containerToLngLat",value:function(r){return this.map.unproject(r)}},{key:"lngLatToContainer",value:function(r){return this.map.project(r)}},{key:"lngLatToCoord",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},a=this.lngLatToMercator(r,0),s=a.x,f=a.y;return[s-n.x,f-n.y]}},{key:"lngLatToMercator",value:function(r,n){var a=window.mapboxgl.MercatorCoordinate.fromLngLat(r,n),s=a.x,f=s===void 0?0:s,v=a.y,g=v===void 0?0:v,x=a.z,C=x===void 0?0:x;return{x:f,y:g,z:C}}},{key:"getModelMatrix",value:function(r,n,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},v=window.mapboxgl.MercatorCoordinate.fromLngLat(r,n),g=v.meterInMercatorCoordinateUnits(),x=zr();return jr(x,x,Xa.fromValues(v.x-f.x,v.y-f.y,v.z||0-f.z)),en(x,x,Xa.fromValues(g*s[0],-g*s[1],g*s[2])),ui(x,x,a[0]),Ni(x,x,a[1]),Ga(x,x,a[2]),x}},{key:"init",value:function(){var i=(0,P.Z)(N().mark(function n(){var a,s,f,v,g,x,C,T,O,k,j,X,te;return N().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:a=this.config,s=a.id,f=s===void 0?"map":s,v=a.attributionControl,g=v===void 0?!1:v,x=a.style,C=x===void 0?"light":x,T=a.token,O=T===void 0?Hx:T,k=a.rotation,j=k===void 0?0:k,X=a.mapInstance,te=(0,Cc.Z)(a,J5),this.viewport=new $5,!X&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),O===Hx&&C!=="blank"&&!window.mapboxgl.accessToken&&!X&&console.warn(this.configService.getSceneWarninfo("MapToken")),!X&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=O),X?(this.map=X,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatAmapContainer(f),this.map=new window.mapboxgl.Map(e3({container:this.$mapContainer,style:this.getMapStyle(C),attributionControl:g,bearing:j},te))),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return Ne.stop()}},n,this)}));function r(){return i.apply(this,arguments)}return r}()},{key:"destroy",value:function(){var r,n;(r=this.$mapContainer)===null||r===void 0||(n=r.parentNode)===null||n===void 0||n.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(r){for(var n,a=arguments.length,s=new Array(a>1?a-1:0),f=1;f1?a-1:0),f=1;fe.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);re.length)&&(i=e.length);for(var r=0,n=new Array(i);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function R3(e,i){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s=0)&&(r[a]=e[a]);return r}var iO=null,tb=U(73935);function rb(e,i){return F3(e)||D3(e,i)||k3(e,i)||L3()}function L3(){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 k3(e,i){if(!!e){if(typeof e=="string")return nb(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,i)}}function nb(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function q3(e,i){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s=0)&&(r[a]=e[a]);return r}var K3=re.memo(function(i){var r=i.layer,n=i.source,a=n.data,s=Y3(n,X3);return r.inited?r.setData(a,s):r.source(a,s),s.autoFit&&r.fitBounds(s&&s.fitBoundsOptions),null},Ff.isEqual),fO=re.useEffect,$3=re.memo(function(i){var r=i.layer,n=i.style;return r.style(n),null},Ff.isEqual);function Q3(e,i){return rP(e)||tP(e,i)||eP(e,i)||J3()}function J3(){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 eP(e,i){if(!!e){if(typeof e=="string")return sb(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sb(e,i)}}function sb(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,n=new Array(i);r0){fe+=Math.abs(ve(le[0]));for(var Le=1;Le2){for(gt=0;gt=0}},53645:function(){},9187:function(It){"use strict";It.exports=$,It.exports.default=$;function $(A,Ce,De){De=De||2;var wt=Ce&&Ce.length,mt=wt?Ce[0]*De:A.length,Bt=U(A,0,mt,De,!0),Kt=[];if(!Bt||Bt.next===Bt.prev)return Kt;var Cr,ei,vn,di,Wn,si,vi;if(wt&&(Bt=fe(A,Ce,Bt,De)),A.length>80*De){Cr=vn=A[0],ei=di=A[1];for(var qn=De;qnvn&&(vn=Wn),si>di&&(di=si);vi=Math.max(vn-Cr,di-ei),vi=vi!==0?1/vi:0}return re(Bt,Kt,De,Cr,ei,vi),Kt}function U(A,Ce,De,wt,mt){var Bt,Kt;if(mt===tn(A,Ce,De,wt)>0)for(Bt=Ce;Bt=Ce;Bt-=wt)Kt=Qt(Bt,A[Bt],A[Bt+1],Kt);return Kt&&it(Kt,Kt.next)&&(Er(Kt),Kt=Kt.next),Kt}function ae(A,Ce){if(!A)return A;Ce||(Ce=A);var De=A,wt;do if(wt=!1,!De.steiner&&(it(De,De.next)||at(De.prev,De,De.next)===0)){if(Er(De),De=Ce=De.prev,De===De.next)break;wt=!0}else De=De.next;while(wt||De!==Ce);return Ce}function re(A,Ce,De,wt,mt,Bt,Kt){if(!!A){!Kt&&Bt&&Ue(A,wt,mt,Bt);for(var Cr=A,ei,vn;A.prev!==A.next;){if(ei=A.prev,vn=A.next,Bt?ve(A,wt,mt,Bt):m(A)){Ce.push(ei.i/De),Ce.push(A.i/De),Ce.push(vn.i/De),Er(A),A=vn.next,Cr=vn.next;continue}if(A=vn,A===Cr){Kt?Kt===1?(A=Z(ae(A),Ce,De),re(A,Ce,De,wt,mt,Bt,2)):Kt===2&&le(A,Ce,De,wt,mt,Bt):re(ae(A),Ce,De,wt,mt,Bt,1);break}}}}function m(A){var Ce=A.prev,De=A,wt=A.next;if(at(Ce,De,wt)>=0)return!1;for(var mt=A.next.next;mt!==A.prev;){if(Yt(Ce.x,Ce.y,De.x,De.y,wt.x,wt.y,mt.x,mt.y)&&at(mt.prev,mt,mt.next)>=0)return!1;mt=mt.next}return!0}function ve(A,Ce,De,wt){var mt=A.prev,Bt=A,Kt=A.next;if(at(mt,Bt,Kt)>=0)return!1;for(var Cr=mt.xBt.x?mt.x>Kt.x?mt.x:Kt.x:Bt.x>Kt.x?Bt.x:Kt.x,di=mt.y>Bt.y?mt.y>Kt.y?mt.y:Kt.y:Bt.y>Kt.y?Bt.y:Kt.y,Wn=rr(Cr,ei,Ce,De,wt),si=rr(vn,di,Ce,De,wt),vi=A.prevZ,qn=A.nextZ;vi&&vi.z>=Wn&&qn&&qn.z<=si;){if(vi!==A.prev&&vi!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,vi.x,vi.y)&&at(vi.prev,vi,vi.next)>=0||(vi=vi.prevZ,qn!==A.prev&&qn!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,qn.x,qn.y)&&at(qn.prev,qn,qn.next)>=0))return!1;qn=qn.nextZ}for(;vi&&vi.z>=Wn;){if(vi!==A.prev&&vi!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,vi.x,vi.y)&&at(vi.prev,vi,vi.next)>=0)return!1;vi=vi.prevZ}for(;qn&&qn.z<=si;){if(qn!==A.prev&&qn!==A.next&&Yt(mt.x,mt.y,Bt.x,Bt.y,Kt.x,Kt.y,qn.x,qn.y)&&at(qn.prev,qn,qn.next)>=0)return!1;qn=qn.nextZ}return!0}function Z(A,Ce,De){var wt=A;do{var mt=wt.prev,Bt=wt.next.next;!it(mt,Bt)&&Zt(mt,wt,wt.next,Bt)&&Je(mt,Bt)&&Je(Bt,mt)&&(Ce.push(mt.i/De),Ce.push(wt.i/De),Ce.push(Bt.i/De),Er(wt),Er(wt.next),wt=A=Bt),wt=wt.next}while(wt!==A);return ae(wt)}function le(A,Ce,De,wt,mt,Bt){var Kt=A;do{for(var Cr=Kt.next.next;Cr!==Kt.prev;){if(Kt.i!==Cr.i&&Et(Kt,Cr)){var ei=Qe(Kt,Cr);Kt=ae(Kt,Kt.next),ei=ae(ei,ei.next),re(Kt,Ce,De,wt,mt,Bt),re(ei,Ce,De,wt,mt,Bt);return}Cr=Cr.next}Kt=Kt.next}while(Kt!==A)}function fe(A,Ce,De,wt){var mt=[],Bt,Kt,Cr,ei,vn;for(Bt=0,Kt=Ce.length;Bt=De.next.y&&De.next.y!==De.y){var Cr=De.x+(mt-De.y)*(De.next.x-De.x)/(De.next.y-De.y);if(Cr<=wt&&Cr>Bt){if(Bt=Cr,Cr===wt){if(mt===De.y)return De;if(mt===De.next.y)return De.next}Kt=De.x=De.x&&De.x>=vn&&wt!==De.x&&Yt(mtKt.x||De.x===Kt.x&&et(Kt,De)))&&(Kt=De,Wn=si)),De=De.next;while(De!==ei);return Kt}function et(A,Ce){return at(A.prev,A,Ce.prev)<0&&at(Ce.next,A,A.next)<0}function Ue(A,Ce,De,wt){var mt=A;do mt.z===null&&(mt.z=rr(mt.x,mt.y,Ce,De,wt)),mt.prevZ=mt.prev,mt.nextZ=mt.next,mt=mt.next;while(mt!==A);mt.prevZ.nextZ=null,mt.prevZ=null,gt(mt)}function gt(A){var Ce,De,wt,mt,Bt,Kt,Cr,ei,vn=1;do{for(De=A,A=null,Bt=null,Kt=0;De;){for(Kt++,wt=De,Cr=0,Ce=0;Ce0||ei>0&&wt;)Cr!==0&&(ei===0||!wt||De.z<=wt.z)?(mt=De,De=De.nextZ,Cr--):(mt=wt,wt=wt.nextZ,ei--),Bt?Bt.nextZ=mt:A=mt,mt.prevZ=Bt,Bt=mt;De=wt}Bt.nextZ=null,vn*=2}while(Kt>1);return A}function rr(A,Ce,De,wt,mt){return A=32767*(A-De)*mt,Ce=32767*(Ce-wt)*mt,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,Ce=(Ce|Ce<<8)&16711935,Ce=(Ce|Ce<<4)&252645135,Ce=(Ce|Ce<<2)&858993459,Ce=(Ce|Ce<<1)&1431655765,A|Ce<<1}function xt(A){var Ce=A,De=A;do(Ce.x=0&&(A-Kt)*(wt-Cr)-(De-Kt)*(Ce-Cr)>=0&&(De-Kt)*(Bt-Cr)-(mt-Kt)*(wt-Cr)>=0}function Et(A,Ce){return A.next.i!==Ce.i&&A.prev.i!==Ce.i&&!ft(A,Ce)&&(Je(A,Ce)&&Je(Ce,A)&&At(A,Ce)&&(at(A.prev,A,Ce.prev)||at(A,Ce.prev,Ce))||it(A,Ce)&&at(A.prev,A,A.next)>0&&at(Ce.prev,Ce,Ce.next)>0)}function at(A,Ce,De){return(Ce.y-A.y)*(De.x-Ce.x)-(Ce.x-A.x)*(De.y-Ce.y)}function it(A,Ce){return A.x===Ce.x&&A.y===Ce.y}function Zt(A,Ce,De,wt){var mt=$t(at(A,Ce,De)),Bt=$t(at(A,Ce,wt)),Kt=$t(at(De,wt,A)),Cr=$t(at(De,wt,Ce));return!!(mt!==Bt&&Kt!==Cr||mt===0&&Y(A,De,Ce)||Bt===0&&Y(A,wt,Ce)||Kt===0&&Y(De,A,wt)||Cr===0&&Y(De,Ce,wt))}function Y(A,Ce,De){return Ce.x<=Math.max(A.x,De.x)&&Ce.x>=Math.min(A.x,De.x)&&Ce.y<=Math.max(A.y,De.y)&&Ce.y>=Math.min(A.y,De.y)}function $t(A){return A>0?1:A<0?-1:0}function ft(A,Ce){var De=A;do{if(De.i!==A.i&&De.next.i!==A.i&&De.i!==Ce.i&&De.next.i!==Ce.i&&Zt(De,De.next,A,Ce))return!0;De=De.next}while(De!==A);return!1}function Je(A,Ce){return at(A.prev,A,A.next)<0?at(A,Ce,A.next)>=0&&at(A,A.prev,Ce)>=0:at(A,Ce,A.prev)<0||at(A,A.next,Ce)<0}function At(A,Ce){var De=A,wt=!1,mt=(A.x+Ce.x)/2,Bt=(A.y+Ce.y)/2;do De.y>Bt!=De.next.y>Bt&&De.next.y!==De.y&&mt<(De.next.x-De.x)*(Bt-De.y)/(De.next.y-De.y)+De.x&&(wt=!wt),De=De.next;while(De!==A);return wt}function Qe(A,Ce){var De=new Nr(A.i,A.x,A.y),wt=new Nr(Ce.i,Ce.x,Ce.y),mt=A.next,Bt=Ce.prev;return A.next=Ce,Ce.prev=A,De.next=mt,mt.prev=De,wt.next=De,De.prev=wt,Bt.next=wt,wt.prev=Bt,wt}function Qt(A,Ce,De,wt){var mt=new Nr(A,Ce,De);return wt?(mt.next=wt.next,mt.prev=wt,wt.next.prev=mt,wt.next=mt):(mt.prev=mt,mt.next=mt),mt}function Er(A){A.next.prev=A.prev,A.prev.next=A.next,A.prevZ&&(A.prevZ.nextZ=A.nextZ),A.nextZ&&(A.nextZ.prevZ=A.prevZ)}function Nr(A,Ce,De){this.i=A,this.x=Ce,this.y=De,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}$.deviation=function(A,Ce,De,wt){var mt=Ce&&Ce.length,Bt=mt?Ce[0]*De:A.length,Kt=Math.abs(tn(A,0,Bt,De));if(mt)for(var Cr=0,ei=Ce.length;Cr0&&(wt+=A[mt-1].length,De.holes.push(wt))}return De}},67709:function(It){function $(ae){var re=ae.target||ae.srcElement;re.__resizeRAF__&&cancelAnimationFrame(re.__resizeRAF__),re.__resizeRAF__=requestAnimationFrame(function(){var m=re.__resizeTrigger__,ve=m&&m.__resizeListeners__;ve&&ve.forEach(function(Z){Z.call(m,ae)})})}var U=function(re,m){var ve=this,Z=ve.document,le,fe=Z.attachEvent;typeof navigator!="undefined"&&(le=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function Le(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",$)}if(!re.__resizeListeners__)if(re.__resizeListeners__=[],fe)re.__resizeTrigger__=re,re.attachEvent("onresize",$);else{getComputedStyle(re).position==="static"&&(re.style.position="relative");var J=re.__resizeTrigger__=Z.createElement("object");J.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),J.setAttribute("class","resize-sensor"),J.setAttribute("tabindex","-1"),J.setAttribute("title",""),J.__resizeElement__=re,J.onload=Le,J.type="text/html",le&&re.appendChild(J),J.data="about:blank",le||re.appendChild(J)}re.__resizeListeners__.push(m)};It.exports=typeof window=="undefined"?U:U.bind(window),It.exports.unbind=function(ae,re){var m=document.attachEvent,ve=ae.__resizeListeners__||[];if(re){var Z=ve.indexOf(re);Z!==-1&&ve.splice(Z,1)}else ve=ae.__resizeListeners__=[];if(!ve.length){if(m)ae.detachEvent("onresize",$);else if(ae.__resizeTrigger__){var le=ae.__resizeTrigger__.contentDocument,fe=le&&le.defaultView;fe&&(fe.removeEventListener("resize",$),delete fe.__resizeTrigger__),ae.__resizeTrigger__=!ae.removeChild(ae.__resizeTrigger__)}delete ae.__resizeListeners__}}},26729:function(It){"use strict";var $=Object.prototype.hasOwnProperty,U="~";function ae(){}Object.create&&(ae.prototype=Object.create(null),new ae().__proto__||(U=!1));function re(le,fe,Le){this.fn=le,this.context=fe,this.once=Le||!1}function m(le,fe,Le,J,Xe){if(typeof Le!="function")throw new TypeError("The listener must be a function");var et=new re(Le,J||le,Xe),Ue=U?U+fe:fe;return le._events[Ue]?le._events[Ue].fn?le._events[Ue]=[le._events[Ue],et]:le._events[Ue].push(et):(le._events[Ue]=et,le._eventsCount++),le}function ve(le,fe){--le._eventsCount==0?le._events=new ae:delete le._events[fe]}function Z(){this._events=new ae,this._eventsCount=0}Z.prototype.eventNames=function(){var fe=[],Le,J;if(this._eventsCount===0)return fe;for(J in Le=this._events)$.call(Le,J)&&fe.push(U?J.slice(1):J);return Object.getOwnPropertySymbols?fe.concat(Object.getOwnPropertySymbols(Le)):fe},Z.prototype.listeners=function(fe){var Le=U?U+fe:fe,J=this._events[Le];if(!J)return[];if(J.fn)return[J.fn];for(var Xe=0,et=J.length,Ue=new Array(et);Xe= than the number of constructor arguments of its base class.")};$.ARGUMENTS_LENGTH_MISMATCH=ae,$.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",$.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",$.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",$.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",$.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var re=function(){for(var ve=[],Z=0;Z0&&$t[$t.length-1])&&(Qe[0]===6||Qe[0]===2)){it=0;continue}if(Qe[0]===3&&(!$t||Qe[1]>$t[0]&&Qe[1]<$t[3])){it.label=Qe[1];break}if(Qe[0]===6&&it.label<$t[1]){it.label=$t[1],$t=Qe;break}if($t&&it.label<$t[2]){it.label=$t[2],it.ops.push(Qe);break}$t[2]&&it.ops.pop(),it.trys.pop();continue}Qe=at.call(Et,it)}catch(Qt){Qe=[6,Qt],Y=0}finally{Zt=$t=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},m=this&&this.__spreadArray||function(Et,at){for(var it=0,Zt=at.length,Y=Et.length;it0?Z._map.set(fe,Le):Z._map.delete(fe)})},m.prototype.hasKey=function(ve){if(ve==null)throw new Error(ae.NULL_ARGUMENT);return this._map.has(ve)},m.prototype.clone=function(){var ve=new m;return this._map.forEach(function(Z,le){Z.forEach(function(fe){return ve.add(le,fe.clone())})}),ve},m.prototype.traverse=function(ve){this._map.forEach(function(Z,le){ve(le,Z)})},m}();$.Lookup=re},86700:function(It,$,U){"use strict";var ae;ae={value:!0},ae=ae=ae=ae=ae=ae=$.GW=ae=ae=$.zY=ae=ae=ae=ae=ae=$.f3=ae=ae=$.b2=ae=ae=ae=ae=ae=$.W2=ae=void 0;var re=U(6867);ae=re;var m=U(51389);Object.defineProperty($,"W2",{enumerable:!0,get:function(){return m.Container}});var ve=U(28421);ae={enumerable:!0,get:function(){return ve.BindingScopeEnum}},ae={enumerable:!0,get:function(){return ve.BindingTypeEnum}},ae={enumerable:!0,get:function(){return ve.TargetTypeEnum}};var Z=U(33244);ae={enumerable:!0,get:function(){return Z.AsyncContainerModule}},ae={enumerable:!0,get:function(){return Z.ContainerModule}};var le=U(64315);Object.defineProperty($,"b2",{enumerable:!0,get:function(){return le.injectable}});var fe=U(32052);ae={enumerable:!0,get:function(){return fe.tagged}};var Le=U(38085);ae={enumerable:!0,get:function(){return Le.named}};var J=U(5744);Object.defineProperty($,"f3",{enumerable:!0,get:function(){return J.inject}}),ae={enumerable:!0,get:function(){return J.LazyServiceIdentifer}};var Xe=U(6515);ae={enumerable:!0,get:function(){return Xe.optional}};var et=U(86757);ae={enumerable:!0,get:function(){return et.unmanaged}};var Ue=U(71693);ae={enumerable:!0,get:function(){return Ue.multiInject}};var gt=U(55638);ae={enumerable:!0,get:function(){return gt.targetName}};var rr=U(7014);Object.defineProperty($,"zY",{enumerable:!0,get:function(){return rr.postConstruct}});var xt=U(51377);ae={enumerable:!0,get:function(){return xt.MetadataReader}};var Yt=U(37791);ae={enumerable:!0,get:function(){return Yt.id}};var Et=U(99934);Object.defineProperty($,"GW",{enumerable:!0,get:function(){return Et.decorate}});var at=U(80758);ae={enumerable:!0,get:function(){return at.traverseAncerstors}},ae={enumerable:!0,get:function(){return at.taggedConstraint}},ae={enumerable:!0,get:function(){return at.namedConstraint}},ae={enumerable:!0,get:function(){return at.typeConstraint}};var it=U(55800);ae={enumerable:!0,get:function(){return it.getServiceIdentifierAsString}};var Zt=U(70600);ae={enumerable:!0,get:function(){return Zt.multiBindToService}}},95228:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Context=void 0;var ae=U(37791),re=function(){function m(ve){this.id=ae.id(),this.container=ve}return m.prototype.addPlan=function(ve){this.plan=ve},m.prototype.setCurrentRequest=function(ve){this.currentRequest=ve},m}();$.Context=re},47738:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Metadata=void 0;var ae=U(6867),re=function(){function m(ve,Z){this.key=ve,this.value=Z}return m.prototype.toString=function(){return this.key===ae.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},m}();$.Metadata=re},51377:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.MetadataReader=void 0;var ae=U(6867),re=function(){function m(){}return m.prototype.getConstructorMetadata=function(ve){var Z=Reflect.getMetadata(ae.PARAM_TYPES,ve),le=Reflect.getMetadata(ae.TAGGED,ve);return{compilerGeneratedMetadata:Z,userGeneratedMetadata:le||{}}},m.prototype.getPropertiesMetadata=function(ve){var Z=Reflect.getMetadata(ae.TAGGED_PROP,ve)||[];return Z},m}();$.MetadataReader=re},55314:function(It,$){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Plan=void 0;var U=function(){function ae(re,m){this.parentContext=re,this.rootRequest=m}return ae}();$.Plan=U},86311:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.getBindingDictionary=$.createMockRequest=$.plan=void 0;var ae=U(23184),re=U(16674),m=U(28421),ve=U(6867),Z=U(85265),le=U(55800),fe=U(95228),Le=U(47738),J=U(55314),Xe=U(6e3),et=U(6748),Ue=U(18924);function gt(Y){return Y._bindingDictionary}$.getBindingDictionary=gt;function rr(Y,$t,ft,Je,At,Qe){var Qt=Y?ve.MULTI_INJECT_TAG:ve.INJECT_TAG,Er=new Le.Metadata(Qt,ft),Nr=new Ue.Target($t,Je,ft,Er);if(At!==void 0){var tn=new Le.Metadata(At,Qe);Nr.metadata.push(tn)}return Nr}function xt(Y,$t,ft,Je,At){var Qe=at(ft.container,At.serviceIdentifier),Qt=[];return Qe.length===ae.BindingCount.NoBindingsAvailable&&ft.container.options.autoBindInjectable&&typeof At.serviceIdentifier=="function"&&Y.getConstructorMetadata(At.serviceIdentifier).compilerGeneratedMetadata&&(ft.container.bind(At.serviceIdentifier).toSelf(),Qe=at(ft.container,At.serviceIdentifier)),$t?Qt=Qe:Qt=Qe.filter(function(Er){var Nr=new et.Request(Er.serviceIdentifier,ft,Je,Er,At);return Er.constraint(Nr)}),Yt(At.serviceIdentifier,Qt,At,ft.container),Qt}function Yt(Y,$t,ft,Je){switch($t.length){case ae.BindingCount.NoBindingsAvailable:if(ft.isOptional())return $t;var At=le.getServiceIdentifierAsString(Y),Qe=re.NOT_REGISTERED;throw Qe+=le.listMetadataForTarget(At,ft),Qe+=le.listRegisteredBindingsForServiceIdentifier(Je,At,at),new Error(Qe);case ae.BindingCount.OnlyOneBindingAvailable:if(!ft.isArray())return $t;case ae.BindingCount.MultipleBindingsAvailable:default:if(ft.isArray())return $t;var At=le.getServiceIdentifierAsString(Y),Qe=re.AMBIGUOUS_MATCH+" "+At;throw Qe+=le.listRegisteredBindingsForServiceIdentifier(Je,At,at),new Error(Qe)}}function Et(Y,$t,ft,Je,At,Qe){var Qt,Er;if(At===null){Qt=xt(Y,$t,Je,null,Qe),Er=new et.Request(ft,Je,null,Qt,Qe);var Nr=new J.Plan(Je,Er);Je.addPlan(Nr)}else Qt=xt(Y,$t,Je,At,Qe),Er=At.addChildRequest(Qe.serviceIdentifier,Qt,Qe);Qt.forEach(function(tn){var A=null;if(Qe.isArray())A=Er.addChildRequest(tn.serviceIdentifier,tn,Qe);else{if(tn.cache)return;A=Er}if(tn.type===m.BindingTypeEnum.Instance&&tn.implementationType!==null){var Ce=Xe.getDependencies(Y,tn.implementationType);if(!Je.container.options.skipBaseClassChecks){var De=Xe.getBaseClassDependencyCount(Y,tn.implementationType);if(Ce.length0,At=ft.length>Et.length,Qe=Je||At?ft.length:Et.length,Qt=et(at,Yt,Zt,$t,Qe),Er=Ue(xt,Et),Nr=ae(ae([],Qt),Er);return Nr}function Xe(xt,Yt,Et,at,it){var Zt=it[xt.toString()]||[],Y=rr(Zt),$t=Y.unmanaged!==!0,ft=at[xt],Je=Y.inject||Y.multiInject;if(ft=Je||ft,ft instanceof re.LazyServiceIdentifer&&(ft=ft.unwrap()),$t){var At=ft===Object,Qe=ft===Function,Qt=ft===void 0,Er=At||Qe||Qt;if(!Yt&&Er){var Nr=m.MISSING_INJECT_ANNOTATION+" argument "+xt+" in class "+Et+".";throw new Error(Nr)}var tn=new fe.Target(ve.TargetTypeEnum.ConstructorArgument,Y.targetName,ft);return tn.metadata=Zt,tn}return null}function et(xt,Yt,Et,at,it){for(var Zt=[],Y=0;Y0?$t:gt(xt,Et)}else return 0}$.getBaseClassDependencyCount=gt;function rr(xt){var Yt={};return xt.forEach(function(Et){Yt[Et.key.toString()]=Et.value}),{inject:Yt[Z.INJECT_TAG],multiInject:Yt[Z.MULTI_INJECT_TAG],targetName:Yt[Z.NAME_TAG],unmanaged:Yt[Z.UNMANAGED_TAG]}}},6748:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Request=void 0;var ae=U(37791),re=function(){function m(ve,Z,le,fe,Le){this.id=ae.id(),this.serviceIdentifier=ve,this.parentContext=Z,this.parentRequest=le,this.target=Le,this.childRequests=[],this.bindings=Array.isArray(fe)?fe:[fe],this.requestScope=le===null?new Map:null}return m.prototype.addChildRequest=function(ve,Z,le){var fe=new m(ve,this.parentContext,this,Z,le);return this.childRequests.push(fe),fe},m}();$.Request=re},18924:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.Target=void 0;var ae=U(6867),re=U(37791),m=U(47738),ve=U(88460),Z=function(){function le(fe,Le,J,Xe){this.id=re.id(),this.type=fe,this.serviceIdentifier=J,this.name=new ve.QueryableString(Le||""),this.metadata=new Array;var et=null;typeof Xe=="string"?et=new m.Metadata(ae.NAMED_TAG,Xe):Xe instanceof m.Metadata&&(et=Xe),et!==null&&this.metadata.push(et)}return le.prototype.hasTag=function(fe){for(var Le=0,J=this.metadata;Le0){var gt=Xe.filter(function(xt){return xt.target!==null&&xt.target.type===m.TargetTypeEnum.ConstructorArgument}),rr=gt.map(et);Ue=le(J,rr),Ue=Z(Ue,Xe,et)}else Ue=new J;return fe(J,Ue),Ue}$.resolveInstance=Le},31927:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.resolve=void 0;var ae=U(16674),re=U(28421),m=U(85265),ve=U(55800),Z=U(52279),le=function(J,Xe,et){try{return et()}catch(Ue){throw m.isStackOverflowExeption(Ue)?new Error(ae.CIRCULAR_DEPENDENCY_IN_FACTORY(J,Xe.toString())):Ue}},fe=function(J){return function(Xe){Xe.parentContext.setCurrentRequest(Xe);var et=Xe.bindings,Ue=Xe.childRequests,gt=Xe.target&&Xe.target.isArray(),rr=!Xe.parentRequest||!Xe.parentRequest.target||!Xe.target||!Xe.parentRequest.target.matchesArray(Xe.target.serviceIdentifier);if(gt&&rr)return Ue.map(function(Zt){var Y=fe(J);return Y(Zt)});var xt=null;if(Xe.target.isOptional()&&et.length===0)return;var Yt=et[0],Et=Yt.scope===re.BindingScopeEnum.Singleton,at=Yt.scope===re.BindingScopeEnum.Request;if(Et&&Yt.activated)return Yt.cache;if(at&&J!==null&&J.has(Yt.id))return J.get(Yt.id);if(Yt.type===re.BindingTypeEnum.ConstantValue)xt=Yt.cache,Yt.activated=!0;else if(Yt.type===re.BindingTypeEnum.Function)xt=Yt.cache,Yt.activated=!0;else if(Yt.type===re.BindingTypeEnum.Constructor)xt=Yt.implementationType;else if(Yt.type===re.BindingTypeEnum.DynamicValue&&Yt.dynamicValue!==null)xt=le("toDynamicValue",Yt.serviceIdentifier,function(){return Yt.dynamicValue(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Factory&&Yt.factory!==null)xt=le("toFactory",Yt.serviceIdentifier,function(){return Yt.factory(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Provider&&Yt.provider!==null)xt=le("toProvider",Yt.serviceIdentifier,function(){return Yt.provider(Xe.parentContext)});else if(Yt.type===re.BindingTypeEnum.Instance&&Yt.implementationType!==null)xt=Z.resolveInstance(Yt.implementationType,Ue,fe(J));else{var it=ve.getServiceIdentifierAsString(Xe.serviceIdentifier);throw new Error(ae.INVALID_BINDING_TYPE+" "+it)}return typeof Yt.onActivation=="function"&&(xt=Yt.onActivation(Xe.parentContext,xt)),Et&&(Yt.cache=xt,Yt.activated=!0),at&&J!==null&&!J.has(Yt.id)&&J.set(Yt.id,xt),xt}};function Le(J){var Xe=fe(J.plan.rootRequest.requestScope);return Xe(J.plan.rootRequest)}$.resolve=Le},83366:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingInSyntax=void 0;var ae=U(28421),re=U(71325),m=function(){function ve(Z){this._binding=Z}return ve.prototype.inRequestScope=function(){return this._binding.scope=ae.BindingScopeEnum.Request,new re.BindingWhenOnSyntax(this._binding)},ve.prototype.inSingletonScope=function(){return this._binding.scope=ae.BindingScopeEnum.Singleton,new re.BindingWhenOnSyntax(this._binding)},ve.prototype.inTransientScope=function(){return this._binding.scope=ae.BindingScopeEnum.Transient,new re.BindingWhenOnSyntax(this._binding)},ve}();$.BindingInSyntax=m},74889:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingInWhenOnSyntax=void 0;var ae=U(83366),re=U(51811),m=U(98370),ve=function(){function Z(le){this._binding=le,this._bindingWhenSyntax=new m.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new re.BindingOnSyntax(this._binding),this._bindingInSyntax=new ae.BindingInSyntax(le)}return Z.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},Z.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},Z.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},Z.prototype.when=function(le){return this._bindingWhenSyntax.when(le)},Z.prototype.whenTargetNamed=function(le){return this._bindingWhenSyntax.whenTargetNamed(le)},Z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},Z.prototype.whenTargetTagged=function(le,fe){return this._bindingWhenSyntax.whenTargetTagged(le,fe)},Z.prototype.whenInjectedInto=function(le){return this._bindingWhenSyntax.whenInjectedInto(le)},Z.prototype.whenParentNamed=function(le){return this._bindingWhenSyntax.whenParentNamed(le)},Z.prototype.whenParentTagged=function(le,fe){return this._bindingWhenSyntax.whenParentTagged(le,fe)},Z.prototype.whenAnyAncestorIs=function(le){return this._bindingWhenSyntax.whenAnyAncestorIs(le)},Z.prototype.whenNoAncestorIs=function(le){return this._bindingWhenSyntax.whenNoAncestorIs(le)},Z.prototype.whenAnyAncestorNamed=function(le){return this._bindingWhenSyntax.whenAnyAncestorNamed(le)},Z.prototype.whenAnyAncestorTagged=function(le,fe){return this._bindingWhenSyntax.whenAnyAncestorTagged(le,fe)},Z.prototype.whenNoAncestorNamed=function(le){return this._bindingWhenSyntax.whenNoAncestorNamed(le)},Z.prototype.whenNoAncestorTagged=function(le,fe){return this._bindingWhenSyntax.whenNoAncestorTagged(le,fe)},Z.prototype.whenAnyAncestorMatches=function(le){return this._bindingWhenSyntax.whenAnyAncestorMatches(le)},Z.prototype.whenNoAncestorMatches=function(le){return this._bindingWhenSyntax.whenNoAncestorMatches(le)},Z.prototype.onActivation=function(le){return this._bindingOnSyntax.onActivation(le)},Z}();$.BindingInWhenOnSyntax=ve},51811:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingOnSyntax=void 0;var ae=U(98370),re=function(){function m(ve){this._binding=ve}return m.prototype.onActivation=function(ve){return this._binding.onActivation=ve,new ae.BindingWhenSyntax(this._binding)},m}();$.BindingOnSyntax=re},15451:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingToSyntax=void 0;var ae=U(16674),re=U(28421),m=U(74889),ve=U(71325),Z=function(){function le(fe){this._binding=fe}return le.prototype.to=function(fe){return this._binding.type=re.BindingTypeEnum.Instance,this._binding.implementationType=fe,new m.BindingInWhenOnSyntax(this._binding)},le.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+ae.INVALID_TO_SELF_VALUE);var fe=this._binding.serviceIdentifier;return this.to(fe)},le.prototype.toConstantValue=function(fe){return this._binding.type=re.BindingTypeEnum.ConstantValue,this._binding.cache=fe,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toDynamicValue=function(fe){return this._binding.type=re.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=fe,this._binding.implementationType=null,new m.BindingInWhenOnSyntax(this._binding)},le.prototype.toConstructor=function(fe){return this._binding.type=re.BindingTypeEnum.Constructor,this._binding.implementationType=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toFactory=function(fe){return this._binding.type=re.BindingTypeEnum.Factory,this._binding.factory=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toFunction=function(fe){if(typeof fe!="function")throw new Error(ae.INVALID_FUNCTION_BINDING);var Le=this.toConstantValue(fe);return this._binding.type=re.BindingTypeEnum.Function,this._binding.scope=re.BindingScopeEnum.Singleton,Le},le.prototype.toAutoFactory=function(fe){return this._binding.type=re.BindingTypeEnum.Factory,this._binding.factory=function(Le){var J=function(){return Le.container.get(fe)};return J},this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toProvider=function(fe){return this._binding.type=re.BindingTypeEnum.Provider,this._binding.provider=fe,this._binding.scope=re.BindingScopeEnum.Singleton,new ve.BindingWhenOnSyntax(this._binding)},le.prototype.toService=function(fe){this.toDynamicValue(function(Le){return Le.container.get(fe)})},le}();$.BindingToSyntax=Z},71325:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingWhenOnSyntax=void 0;var ae=U(51811),re=U(98370),m=function(){function ve(Z){this._binding=Z,this._bindingWhenSyntax=new re.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new ae.BindingOnSyntax(this._binding)}return ve.prototype.when=function(Z){return this._bindingWhenSyntax.when(Z)},ve.prototype.whenTargetNamed=function(Z){return this._bindingWhenSyntax.whenTargetNamed(Z)},ve.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},ve.prototype.whenTargetTagged=function(Z,le){return this._bindingWhenSyntax.whenTargetTagged(Z,le)},ve.prototype.whenInjectedInto=function(Z){return this._bindingWhenSyntax.whenInjectedInto(Z)},ve.prototype.whenParentNamed=function(Z){return this._bindingWhenSyntax.whenParentNamed(Z)},ve.prototype.whenParentTagged=function(Z,le){return this._bindingWhenSyntax.whenParentTagged(Z,le)},ve.prototype.whenAnyAncestorIs=function(Z){return this._bindingWhenSyntax.whenAnyAncestorIs(Z)},ve.prototype.whenNoAncestorIs=function(Z){return this._bindingWhenSyntax.whenNoAncestorIs(Z)},ve.prototype.whenAnyAncestorNamed=function(Z){return this._bindingWhenSyntax.whenAnyAncestorNamed(Z)},ve.prototype.whenAnyAncestorTagged=function(Z,le){return this._bindingWhenSyntax.whenAnyAncestorTagged(Z,le)},ve.prototype.whenNoAncestorNamed=function(Z){return this._bindingWhenSyntax.whenNoAncestorNamed(Z)},ve.prototype.whenNoAncestorTagged=function(Z,le){return this._bindingWhenSyntax.whenNoAncestorTagged(Z,le)},ve.prototype.whenAnyAncestorMatches=function(Z){return this._bindingWhenSyntax.whenAnyAncestorMatches(Z)},ve.prototype.whenNoAncestorMatches=function(Z){return this._bindingWhenSyntax.whenNoAncestorMatches(Z)},ve.prototype.onActivation=function(Z){return this._bindingOnSyntax.onActivation(Z)},ve}();$.BindingWhenOnSyntax=m},98370:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.BindingWhenSyntax=void 0;var ae=U(51811),re=U(80758),m=function(){function ve(Z){this._binding=Z}return ve.prototype.when=function(Z){return this._binding.constraint=Z,new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetNamed=function(Z){return this._binding.constraint=re.namedConstraint(Z),new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(Z){var le=Z.target!==null&&!Z.target.isNamed()&&!Z.target.isTagged();return le},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenTargetTagged=function(Z,le){return this._binding.constraint=re.taggedConstraint(Z)(le),new ae.BindingOnSyntax(this._binding)},ve.prototype.whenInjectedInto=function(Z){return this._binding.constraint=function(le){return re.typeConstraint(Z)(le.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenParentNamed=function(Z){return this._binding.constraint=function(le){return re.namedConstraint(Z)(le.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenParentTagged=function(Z,le){return this._binding.constraint=function(fe){return re.taggedConstraint(Z)(le)(fe.parentRequest)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorIs=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,re.typeConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorIs=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,re.typeConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorNamed=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,re.namedConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorNamed=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,re.namedConstraint(Z))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorTagged=function(Z,le){return this._binding.constraint=function(fe){return re.traverseAncerstors(fe,re.taggedConstraint(Z)(le))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorTagged=function(Z,le){return this._binding.constraint=function(fe){return!re.traverseAncerstors(fe,re.taggedConstraint(Z)(le))},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenAnyAncestorMatches=function(Z){return this._binding.constraint=function(le){return re.traverseAncerstors(le,Z)},new ae.BindingOnSyntax(this._binding)},ve.prototype.whenNoAncestorMatches=function(Z){return this._binding.constraint=function(le){return!re.traverseAncerstors(le,Z)},new ae.BindingOnSyntax(this._binding)},ve}();$.BindingWhenSyntax=m},80758:function(It,$,U){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.typeConstraint=$.namedConstraint=$.taggedConstraint=$.traverseAncerstors=void 0;var ae=U(6867),re=U(47738),m=function(fe,Le){var J=fe.parentRequest;return J!==null?Le(J)?!0:m(J,Le):!1};$.traverseAncerstors=m;var ve=function(fe){return function(Le){var J=function(Xe){return Xe!==null&&Xe.target!==null&&Xe.target.matchesTag(fe)(Le)};return J.metaData=new re.Metadata(fe,Le),J}};$.taggedConstraint=ve;var Z=ve(ae.NAMED_TAG);$.namedConstraint=Z;var le=function(fe){return function(Le){var J=null;if(Le!==null)if(J=Le.bindings[0],typeof fe=="string"){var Xe=J.serviceIdentifier;return Xe===fe}else{var et=Le.bindings[0].implementationType;return fe===et}return!1}};$.typeConstraint=le},70600:function(It,$){"use strict";Object.defineProperty($,"__esModule",{value:!0}),$.multiBindToService=void 0;var U=function(ae){return function(re){return function(){for(var m=[],ve=0;ve ")}function le(J){J.childRequests.forEach(function(Xe){if(ve(Xe,Xe.serviceIdentifier)){var et=Z(Xe);throw new Error(ae.CIRCULAR_DEPENDENCY+" "+et)}else le(Xe)})}$.circularDependencyToException=le;function fe(J,Xe){if(Xe.isTagged()||Xe.isNamed()){var et="",Ue=Xe.getNamedTag(),gt=Xe.getCustomTags();return Ue!==null&&(et+=Ue.toString()+` -`),gt!==null&>.forEach(function(rr){et+=rr.toString()+` -`})," "+J+` - `+J+" - "+et}else return" "+J}$.listMetadataForTarget=fe;function Le(J){if(J.name)return J.name;var Xe=J.toString(),et=Xe.match(/^function\s*([^\s(]+)/);return et?et[1]:"Anonymous function: "+Xe}$.getFunctionName=Le},31745:function(It){"use strict";It.exports=U,It.exports.default=U;var $=1e20;function U(Z,le,fe,Le,J,Xe){this.fontSize=Z||24,this.buffer=le===void 0?3:le,this.cutoff=Le||.25,this.fontFamily=J||"sans-serif",this.fontWeight=Xe||"normal",this.radius=fe||8;var et=this.size=this.fontSize+this.buffer*2,Ue=et+this.buffer*2,gt=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;gt?this.canvas=my.createOffscreenCanvas(et,et,"2d"):(this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=et),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(Ue*Ue),this.gridInner=new Float64Array(Ue*Ue),this.f=new Float64Array(Ue),this.z=new Float64Array(Ue+1),this.v=new Uint16Array(Ue),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,gt?this.middle=Math.round(et/2*1):this.middle=Math.round(et/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function ae(Z,le,fe,Le,J,Xe,et){Xe.fill($,0,le*fe),et.fill(0,0,le*fe);for(var Ue=(le-Le)/2,gt=0;gt-1);gt++,Xe[gt]=Ue,et[gt]=rr,et[gt+1]=$}for(Ue=0,gt=0;Ue_)return!1;if(F+=M[R+1],F>=_)return!0}}function gt(_,M){return _<65?_===36:_<91?!0:_<97?_===95:_<123?!0:_<=65535?_>=170&&Le.test(String.fromCharCode(_)):M===!1?!1:Ue(_,Xe)}function rr(_,M){return _<48?_===36:_<58?!0:_<65?!1:_<91?!0:_<97?_===95:_<123?!0:_<=65535?_>=170&&J.test(String.fromCharCode(_)):M===!1?!1:Ue(_,Xe)||Ue(_,et)}var xt=function(M,F){F===void 0&&(F={}),this.label=M,this.keyword=F.keyword,this.beforeExpr=!!F.beforeExpr,this.startsExpr=!!F.startsExpr,this.isLoop=!!F.isLoop,this.isAssign=!!F.isAssign,this.prefix=!!F.prefix,this.postfix=!!F.postfix,this.binop=F.binop||null,this.updateContext=null};function Yt(_,M){return new xt(_,{beforeExpr:!0,binop:M})}var Et={beforeExpr:!0},at={startsExpr:!0},it={};function Zt(_,M){return M===void 0&&(M={}),M.keyword=_,it[_]=new xt(_,M)}var Y={num:new xt("num",at),regexp:new xt("regexp",at),string:new xt("string",at),name:new xt("name",at),eof:new xt("eof"),bracketL:new xt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new xt("]"),braceL:new xt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new xt("}"),parenL:new xt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new xt(")"),comma:new xt(",",Et),semi:new xt(";",Et),colon:new xt(":",Et),dot:new xt("."),question:new xt("?",Et),questionDot:new xt("?."),arrow:new xt("=>",Et),template:new xt("template"),invalidTemplate:new xt("invalidTemplate"),ellipsis:new xt("...",Et),backQuote:new xt("`",at),dollarBraceL:new xt("${",{beforeExpr:!0,startsExpr:!0}),eq:new xt("=",{beforeExpr:!0,isAssign:!0}),assign:new xt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new xt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new xt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Yt("||",1),logicalAND:Yt("&&",2),bitwiseOR:Yt("|",3),bitwiseXOR:Yt("^",4),bitwiseAND:Yt("&",5),equality:Yt("==/!=/===/!==",6),relational:Yt("/<=/>=",7),bitShift:Yt("<>/>>>",8),plusMin:new xt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Yt("%",10),star:Yt("*",10),slash:Yt("/",10),starstar:new xt("**",{beforeExpr:!0}),coalesce:Yt("??",1),_break:Zt("break"),_case:Zt("case",Et),_catch:Zt("catch"),_continue:Zt("continue"),_debugger:Zt("debugger"),_default:Zt("default",Et),_do:Zt("do",{isLoop:!0,beforeExpr:!0}),_else:Zt("else",Et),_finally:Zt("finally"),_for:Zt("for",{isLoop:!0}),_function:Zt("function",at),_if:Zt("if"),_return:Zt("return",Et),_switch:Zt("switch"),_throw:Zt("throw",Et),_try:Zt("try"),_var:Zt("var"),_const:Zt("const"),_while:Zt("while",{isLoop:!0}),_with:Zt("with"),_new:Zt("new",{beforeExpr:!0,startsExpr:!0}),_this:Zt("this",at),_super:Zt("super",at),_class:Zt("class",at),_extends:Zt("extends",Et),_export:Zt("export"),_import:Zt("import",at),_null:Zt("null",at),_true:Zt("true",at),_false:Zt("false",at),_in:Zt("in",{beforeExpr:!0,binop:7}),_instanceof:Zt("instanceof",{beforeExpr:!0,binop:7}),_typeof:Zt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Zt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Zt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},$t=/\r\n?|\n|\u2028|\u2029/,ft=new RegExp($t.source,"g");function Je(_,M){return _===10||_===13||!M&&(_===8232||_===8233)}var At=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Qe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qt=Object.prototype,Er=Qt.hasOwnProperty,Nr=Qt.toString;function tn(_,M){return Er.call(_,M)}var A=Array.isArray||function(_){return Nr.call(_)==="[object Array]"};function Ce(_){return new RegExp("^(?:"+_.replace(/ /g,"|")+")$")}var De=function(M,F){this.line=M,this.column=F};De.prototype.offset=function(M){return new De(this.line,this.column+M)};var wt=function(M,F,R){this.start=F,this.end=R,M.sourceFile!==null&&(this.source=M.sourceFile)};function mt(_,M){for(var F=1,R=0;;){ft.lastIndex=R;var K=ft.exec(_);if(K&&K.index=2015&&(M.ecmaVersion-=2009),M.allowReserved==null&&(M.allowReserved=M.ecmaVersion<5),A(M.onToken)){var R=M.onToken;M.onToken=function(K){return R.push(K)}}return A(M.onComment)&&(M.onComment=Cr(M,M.onComment)),M}function Cr(_,M){return function(F,R,K,_e,je,pt){var dt={type:F?"Block":"Line",value:R,start:K,end:_e};_.locations&&(dt.loc=new wt(this,je,pt)),_.ranges&&(dt.range=[K,_e]),M.push(dt)}}var ei=1,vn=2,di=ei|vn,Wn=4,si=8,vi=16,qn=32,mi=64,aa=128;function Wi(_,M){return vn|(_?Wn:0)|(M?si:0)}var Oi=0,Ki=1,oa=2,Mi=3,da=4,$n=5,wi=function(M,F,R){this.options=M=Kt(M),this.sourceFile=M.sourceFile,this.keywords=Ce(ve[M.ecmaVersion>=6?6:M.sourceType==="module"?"5module":5]);var K="";if(M.allowReserved!==!0){for(var _e=M.ecmaVersion;!(K=re[_e]);_e--);M.sourceType==="module"&&(K+=" await")}this.reservedWords=Ce(K);var je=(K?K+" ":"")+re.strict;this.reservedWordsStrict=Ce(je),this.reservedWordsStrictBind=Ce(je+" "+re.strictBind),this.input=String(F),this.containsEsc=!1,R?(this.pos=R,this.lineStart=this.input.lastIndexOf(` -`,R-1)+1,this.curLine=this.input.slice(0,this.lineStart).split($t).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=M.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&M.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ei),this.regexpState=null},ji={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};wi.prototype.parse=function(){var M=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(M)},ji.inFunction.get=function(){return(this.currentVarScope().flags&vn)>0},ji.inGenerator.get=function(){return(this.currentVarScope().flags&si)>0},ji.inAsync.get=function(){return(this.currentVarScope().flags&Wn)>0},ji.allowSuper.get=function(){return(this.currentThisScope().flags&mi)>0},ji.allowDirectSuper.get=function(){return(this.currentThisScope().flags&aa)>0},ji.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},wi.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&vn)>0},wi.extend=function(){for(var M=[],F=arguments.length;F--;)M[F]=arguments[F];for(var R=this,K=0;K=,?^&]/.test(K)||K==="!"&&this.input.charAt(R+1)==="=")}_+=M[0].length,Qe.lastIndex=_,_+=Qe.exec(this.input)[0].length,this.input[_]===";"&&_++}},$i.eat=function(_){return this.type===_?(this.next(),!0):!1},$i.isContextual=function(_){return this.type===Y.name&&this.value===_&&!this.containsEsc},$i.eatContextual=function(_){return this.isContextual(_)?(this.next(),!0):!1},$i.expectContextual=function(_){this.eatContextual(_)||this.unexpected()},$i.canInsertSemicolon=function(){return this.type===Y.eof||this.type===Y.braceR||$t.test(this.input.slice(this.lastTokEnd,this.start))},$i.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$i.semicolon=function(){!this.eat(Y.semi)&&!this.insertSemicolon()&&this.unexpected()},$i.afterTrailingComma=function(_,M){if(this.type===_)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),M||this.next(),!0},$i.expect=function(_){this.eat(_)||this.unexpected()},$i.unexpected=function(_){this.raise(_!=null?_:this.start,"Unexpected token")};function me(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}$i.checkPatternErrors=function(_,M){if(!!_){_.trailingComma>-1&&this.raiseRecoverable(_.trailingComma,"Comma is not permitted after the rest element");var F=M?_.parenthesizedAssign:_.parenthesizedBind;F>-1&&this.raiseRecoverable(F,"Parenthesized pattern")}},$i.checkExpressionErrors=function(_,M){if(!_)return!1;var F=_.shorthandAssign,R=_.doubleProto;if(!M)return F>=0||R>=0;F>=0&&this.raise(F,"Shorthand property assignments are valid only in destructuring patterns"),R>=0&&this.raiseRecoverable(R,"Redefinition of __proto__ property")},$i.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(K,!1,!_);case Y._class:return _&&this.unexpected(),this.parseClass(K,!0);case Y._if:return this.parseIfStatement(K);case Y._return:return this.parseReturnStatement(K);case Y._switch:return this.parseSwitchStatement(K);case Y._throw:return this.parseThrowStatement(K);case Y._try:return this.parseTryStatement(K);case Y._const:case Y._var:return _e=_e||this.value,_&&_e!=="var"&&this.unexpected(),this.parseVarStatement(K,_e);case Y._while:return this.parseWhileStatement(K);case Y._with:return this.parseWithStatement(K);case Y.braceL:return this.parseBlock(!0,K);case Y.semi:return this.parseEmptyStatement(K);case Y._export:case Y._import:if(this.options.ecmaVersion>10&&R===Y._import){Qe.lastIndex=this.pos;var je=Qe.exec(this.input),pt=this.pos+je[0].length,dt=this.input.charCodeAt(pt);if(dt===40||dt===46)return this.parseExpressionStatement(K,this.parseExpression())}return this.options.allowImportExportEverywhere||(M||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),R===Y._import?this.parseImport(K):this.parseExport(K,F);default:if(this.isAsyncFunction())return _&&this.unexpected(),this.next(),this.parseFunctionStatement(K,!0,!_);var ur=this.value,yr=this.parseExpression();return R===Y.name&&yr.type==="Identifier"&&this.eat(Y.colon)?this.parseLabeledStatement(K,ur,yr,_):this.parseExpressionStatement(K,yr)}},Dn.parseBreakContinueStatement=function(_,M){var F=M==="break";this.next(),this.eat(Y.semi)||this.insertSemicolon()?_.label=null:this.type!==Y.name?this.unexpected():(_.label=this.parseIdent(),this.semicolon());for(var R=0;R=6?this.eat(Y.semi):this.semicolon(),this.finishNode(_,"DoWhileStatement")},Dn.parseForStatement=function(_){this.next();var M=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Za),this.enterScope(0),this.expect(Y.parenL),this.type===Y.semi)return M>-1&&this.unexpected(M),this.parseFor(_,null);var F=this.isLet();if(this.type===Y._var||this.type===Y._const||F){var R=this.startNode(),K=F?"let":this.value;return this.next(),this.parseVar(R,!0,K),this.finishNode(R,"VariableDeclaration"),(this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&R.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===Y._in?M>-1&&this.unexpected(M):_.await=M>-1),this.parseForIn(_,R)):(M>-1&&this.unexpected(M),this.parseFor(_,R))}var _e=new me,je=this.parseExpression(!0,_e);return this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Y._in?M>-1&&this.unexpected(M):_.await=M>-1),this.toAssignable(je,!1,_e),this.checkLVal(je),this.parseForIn(_,je)):(this.checkExpressionErrors(_e,!0),M>-1&&this.unexpected(M),this.parseFor(_,je))},Dn.parseFunctionStatement=function(_,M,F){return this.next(),this.parseFunction(_,nr|(F?0:Ar),!1,M)},Dn.parseIfStatement=function(_){return this.next(),_.test=this.parseParenExpression(),_.consequent=this.parseStatement("if"),_.alternate=this.eat(Y._else)?this.parseStatement("if"):null,this.finishNode(_,"IfStatement")},Dn.parseReturnStatement=function(_){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Y.semi)||this.insertSemicolon()?_.argument=null:(_.argument=this.parseExpression(),this.semicolon()),this.finishNode(_,"ReturnStatement")},Dn.parseSwitchStatement=function(_){this.next(),_.discriminant=this.parseParenExpression(),_.cases=[],this.expect(Y.braceL),this.labels.push(hs),this.enterScope(0);for(var M,F=!1;this.type!==Y.braceR;)if(this.type===Y._case||this.type===Y._default){var R=this.type===Y._case;M&&this.finishNode(M,"SwitchCase"),_.cases.push(M=this.startNode()),M.consequent=[],this.next(),R?M.test=this.parseExpression():(F&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),F=!0,M.test=null),this.expect(Y.colon)}else M||this.unexpected(),M.consequent.push(this.parseStatement(null));return this.exitScope(),M&&this.finishNode(M,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(_,"SwitchStatement")},Dn.parseThrowStatement=function(_){return this.next(),$t.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),_.argument=this.parseExpression(),this.semicolon(),this.finishNode(_,"ThrowStatement")};var Nt=[];Dn.parseTryStatement=function(_){if(this.next(),_.block=this.parseBlock(),_.handler=null,this.type===Y._catch){var M=this.startNode();if(this.next(),this.eat(Y.parenL)){M.param=this.parseBindingAtom();var F=M.param.type==="Identifier";this.enterScope(F?qn:0),this.checkLVal(M.param,F?da:oa),this.expect(Y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),M.param=null,this.enterScope(0);M.body=this.parseBlock(!1),this.exitScope(),_.handler=this.finishNode(M,"CatchClause")}return _.finalizer=this.eat(Y._finally)?this.parseBlock():null,!_.handler&&!_.finalizer&&this.raise(_.start,"Missing catch or finally clause"),this.finishNode(_,"TryStatement")},Dn.parseVarStatement=function(_,M){return this.next(),this.parseVar(_,!1,M),this.semicolon(),this.finishNode(_,"VariableDeclaration")},Dn.parseWhileStatement=function(_){return this.next(),_.test=this.parseParenExpression(),this.labels.push(Za),_.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(_,"WhileStatement")},Dn.parseWithStatement=function(_){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),_.object=this.parseParenExpression(),_.body=this.parseStatement("with"),this.finishNode(_,"WithStatement")},Dn.parseEmptyStatement=function(_){return this.next(),this.finishNode(_,"EmptyStatement")},Dn.parseLabeledStatement=function(_,M,F,R){for(var K=0,_e=this.labels;K<_e.length;K+=1){var je=_e[K];je.name===M&&this.raise(F.start,"Label '"+M+"' is already declared")}for(var pt=this.type.isLoop?"loop":this.type===Y._switch?"switch":null,dt=this.labels.length-1;dt>=0;dt--){var ur=this.labels[dt];if(ur.statementStart===_.start)ur.statementStart=this.start,ur.kind=pt;else break}return this.labels.push({name:M,kind:pt,statementStart:this.start}),_.body=this.parseStatement(R?R.indexOf("label")===-1?R+"label":R:"label"),this.labels.pop(),_.label=F,this.finishNode(_,"LabeledStatement")},Dn.parseExpressionStatement=function(_,M){return _.expression=M,this.semicolon(),this.finishNode(_,"ExpressionStatement")},Dn.parseBlock=function(_,M,F){for(_===void 0&&(_=!0),M===void 0&&(M=this.startNode()),M.body=[],this.expect(Y.braceL),_&&this.enterScope(0);this.type!==Y.braceR;){var R=this.parseStatement(null);M.body.push(R)}return F&&(this.strict=!1),this.next(),_&&this.exitScope(),this.finishNode(M,"BlockStatement")},Dn.parseFor=function(_,M){return _.init=M,this.expect(Y.semi),_.test=this.type===Y.semi?null:this.parseExpression(),this.expect(Y.semi),_.update=this.type===Y.parenR?null:this.parseExpression(),this.expect(Y.parenR),_.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(_,"ForStatement")},Dn.parseForIn=function(_,M){var F=this.type===Y._in;return this.next(),M.type==="VariableDeclaration"&&M.declarations[0].init!=null&&(!F||this.options.ecmaVersion<8||this.strict||M.kind!=="var"||M.declarations[0].id.type!=="Identifier")?this.raise(M.start,(F?"for-in":"for-of")+" loop variable declaration may not have an initializer"):M.type==="AssignmentPattern"&&this.raise(M.start,"Invalid left-hand side in for-loop"),_.left=M,_.right=F?this.parseExpression():this.parseMaybeAssign(),this.expect(Y.parenR),_.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(_,F?"ForInStatement":"ForOfStatement")},Dn.parseVar=function(_,M,F){for(_.declarations=[],_.kind=F;;){var R=this.startNode();if(this.parseVarId(R,F),this.eat(Y.eq)?R.init=this.parseMaybeAssign(M):F==="const"&&!(this.type===Y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():R.id.type!=="Identifier"&&!(M&&(this.type===Y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):R.init=null,_.declarations.push(this.finishNode(R,"VariableDeclarator")),!this.eat(Y.comma))break}return _},Dn.parseVarId=function(_,M){_.id=this.parseBindingAtom(),this.checkLVal(_.id,M==="var"?Ki:oa,!1)};var nr=1,Ar=2,rn=4;Dn.parseFunction=function(_,M,F,R){this.initFunction(_),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!R)&&(this.type===Y.star&&M&Ar&&this.unexpected(),_.generator=this.eat(Y.star)),this.options.ecmaVersion>=8&&(_.async=!!R),M&nr&&(_.id=M&rn&&this.type!==Y.name?null:this.parseIdent(),_.id&&!(M&Ar)&&this.checkLVal(_.id,this.strict||_.generator||_.async?this.treatFunctionsAsVar?Ki:oa:Mi));var K=this.yieldPos,_e=this.awaitPos,je=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wi(_.async,_.generator)),M&nr||(_.id=this.type===Y.name?this.parseIdent():null),this.parseFunctionParams(_),this.parseFunctionBody(_,F,!1),this.yieldPos=K,this.awaitPos=_e,this.awaitIdentPos=je,this.finishNode(_,M&nr?"FunctionDeclaration":"FunctionExpression")},Dn.parseFunctionParams=function(_){this.expect(Y.parenL),_.params=this.parseBindingList(Y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Dn.parseClass=function(_,M){this.next();var F=this.strict;this.strict=!0,this.parseClassId(_,M),this.parseClassSuper(_);var R=this.startNode(),K=!1;for(R.body=[],this.expect(Y.braceL);this.type!==Y.braceR;){var _e=this.parseClassElement(_.superClass!==null);_e&&(R.body.push(_e),_e.type==="MethodDefinition"&&_e.kind==="constructor"&&(K&&this.raise(_e.start,"Duplicate constructor in the same class"),K=!0))}return this.strict=F,this.next(),_.body=this.finishNode(R,"ClassBody"),this.finishNode(_,M?"ClassDeclaration":"ClassExpression")},Dn.parseClassElement=function(_){var M=this;if(this.eat(Y.semi))return null;var F=this.startNode(),R=function(dt,ur){ur===void 0&&(ur=!1);var yr=M.start,In=M.startLoc;return M.eatContextual(dt)?M.type!==Y.parenL&&(!ur||!M.canInsertSemicolon())?!0:(F.key&&M.unexpected(),F.computed=!1,F.key=M.startNodeAt(yr,In),F.key.name=dt,M.finishNode(F.key,"Identifier"),!1):!1};F.kind="method",F.static=R("static");var K=this.eat(Y.star),_e=!1;K||(this.options.ecmaVersion>=8&&R("async",!0)?(_e=!0,K=this.options.ecmaVersion>=9&&this.eat(Y.star)):R("get")?F.kind="get":R("set")&&(F.kind="set")),F.key||this.parsePropertyName(F);var je=F.key,pt=!1;return!F.computed&&!F.static&&(je.type==="Identifier"&&je.name==="constructor"||je.type==="Literal"&&je.value==="constructor")?(F.kind!=="method"&&this.raise(je.start,"Constructor can't have get/set modifier"),K&&this.raise(je.start,"Constructor can't be a generator"),_e&&this.raise(je.start,"Constructor can't be an async method"),F.kind="constructor",pt=_):F.static&&je.type==="Identifier"&&je.name==="prototype"&&this.raise(je.start,"Classes may not have a static property named prototype"),this.parseClassMethod(F,K,_e,pt),F.kind==="get"&&F.value.params.length!==0&&this.raiseRecoverable(F.value.start,"getter should have no params"),F.kind==="set"&&F.value.params.length!==1&&this.raiseRecoverable(F.value.start,"setter should have exactly one param"),F.kind==="set"&&F.value.params[0].type==="RestElement"&&this.raiseRecoverable(F.value.params[0].start,"Setter cannot use rest params"),F},Dn.parseClassMethod=function(_,M,F,R){return _.value=this.parseMethod(M,F,R),this.finishNode(_,"MethodDefinition")},Dn.parseClassId=function(_,M){this.type===Y.name?(_.id=this.parseIdent(),M&&this.checkLVal(_.id,oa,!1)):(M===!0&&this.unexpected(),_.id=null)},Dn.parseClassSuper=function(_){_.superClass=this.eat(Y._extends)?this.parseExprSubscripts():null},Dn.parseExport=function(_,M){if(this.next(),this.eat(Y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(_.exported=this.parseIdent(!0),this.checkExport(M,_.exported.name,this.lastTokStart)):_.exported=null),this.expectContextual("from"),this.type!==Y.string&&this.unexpected(),_.source=this.parseExprAtom(),this.semicolon(),this.finishNode(_,"ExportAllDeclaration");if(this.eat(Y._default)){this.checkExport(M,"default",this.lastTokStart);var F;if(this.type===Y._function||(F=this.isAsyncFunction())){var R=this.startNode();this.next(),F&&this.next(),_.declaration=this.parseFunction(R,nr|rn,!1,F)}else if(this.type===Y._class){var K=this.startNode();_.declaration=this.parseClass(K,"nullableID")}else _.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(_,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())_.declaration=this.parseStatement(null),_.declaration.type==="VariableDeclaration"?this.checkVariableExport(M,_.declaration.declarations):this.checkExport(M,_.declaration.id.name,_.declaration.id.start),_.specifiers=[],_.source=null;else{if(_.declaration=null,_.specifiers=this.parseExportSpecifiers(M),this.eatContextual("from"))this.type!==Y.string&&this.unexpected(),_.source=this.parseExprAtom();else{for(var _e=0,je=_.specifiers;_e=6&&_)switch(_.type){case"Identifier":this.inAsync&&_.name==="await"&&this.raise(_.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":_.type="ObjectPattern",F&&this.checkPatternErrors(F,!0);for(var R=0,K=_.properties;R=8&&!_e&&je.name==="async"&&!this.canInsertSemicolon()&&this.eat(Y._function))return this.parseFunction(this.startNodeAt(R,K),0,!1,!0);if(F&&!this.canInsertSemicolon()){if(this.eat(Y.arrow))return this.parseArrowExpression(this.startNodeAt(R,K),[je],!1);if(this.options.ecmaVersion>=8&&je.name==="async"&&this.type===Y.name&&!_e)return je=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(Y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(R,K),[je],!0)}return je;case Y.regexp:var pt=this.value;return M=this.parseLiteral(pt.value),M.regex={pattern:pt.pattern,flags:pt.flags},M;case Y.num:case Y.string:return this.parseLiteral(this.value);case Y._null:case Y._true:case Y._false:return M=this.startNode(),M.value=this.type===Y._null?null:this.type===Y._true,M.raw=this.type.keyword,this.next(),this.finishNode(M,"Literal");case Y.parenL:var dt=this.start,ur=this.parseParenAndDistinguishExpression(F);return _&&(_.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ur)&&(_.parenthesizedAssign=dt),_.parenthesizedBind<0&&(_.parenthesizedBind=dt)),ur;case Y.bracketL:return M=this.startNode(),this.next(),M.elements=this.parseExprList(Y.bracketR,!0,!0,_),this.finishNode(M,"ArrayExpression");case Y.braceL:return this.parseObj(!1,_);case Y._function:return M=this.startNode(),this.next(),this.parseFunction(M,0);case Y._class:return this.parseClass(this.startNode(),!1);case Y._new:return this.parseNew();case Y.backQuote:return this.parseTemplate();case Y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Fn.parseExprImport=function(){var _=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var M=this.parseIdent(!0);switch(this.type){case Y.parenL:return this.parseDynamicImport(_);case Y.dot:return _.meta=M,this.parseImportMeta(_);default:this.unexpected()}},Fn.parseDynamicImport=function(_){if(this.next(),_.source=this.parseMaybeAssign(),!this.eat(Y.parenR)){var M=this.start;this.eat(Y.comma)&&this.eat(Y.parenR)?this.raiseRecoverable(M,"Trailing comma is not allowed in import()"):this.unexpected(M)}return this.finishNode(_,"ImportExpression")},Fn.parseImportMeta=function(_){this.next();var M=this.containsEsc;return _.property=this.parseIdent(!0),_.property.name!=="meta"&&this.raiseRecoverable(_.property.start,"The only valid meta property for import is 'import.meta'"),M&&this.raiseRecoverable(_.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(_.start,"Cannot use 'import.meta' outside a module"),this.finishNode(_,"MetaProperty")},Fn.parseLiteral=function(_){var M=this.startNode();return M.value=_,M.raw=this.input.slice(this.start,this.end),M.raw.charCodeAt(M.raw.length-1)===110&&(M.bigint=M.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(M,"Literal")},Fn.parseParenExpression=function(){this.expect(Y.parenL);var _=this.parseExpression();return this.expect(Y.parenR),_},Fn.parseParenAndDistinguishExpression=function(_){var M=this.start,F=this.startLoc,R,K=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var _e=this.start,je=this.startLoc,pt=[],dt=!0,ur=!1,yr=new me,In=this.yieldPos,Bn=this.awaitPos,Qn;for(this.yieldPos=0,this.awaitPos=0;this.type!==Y.parenR;)if(dt?dt=!1:this.expect(Y.comma),K&&this.afterTrailingComma(Y.parenR,!0)){ur=!0;break}else if(this.type===Y.ellipsis){Qn=this.start,pt.push(this.parseParenItem(this.parseRestBinding())),this.type===Y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else pt.push(this.parseMaybeAssign(!1,yr,this.parseParenItem));var Vi=this.start,Li=this.startLoc;if(this.expect(Y.parenR),_&&!this.canInsertSemicolon()&&this.eat(Y.arrow))return this.checkPatternErrors(yr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=In,this.awaitPos=Bn,this.parseParenArrowList(M,F,pt);(!pt.length||ur)&&this.unexpected(this.lastTokStart),Qn&&this.unexpected(Qn),this.checkExpressionErrors(yr,!0),this.yieldPos=In||this.yieldPos,this.awaitPos=Bn||this.awaitPos,pt.length>1?(R=this.startNodeAt(_e,je),R.expressions=pt,this.finishNodeAt(R,"SequenceExpression",Vi,Li)):R=pt[0]}else R=this.parseParenExpression();if(this.options.preserveParens){var ba=this.startNodeAt(M,F);return ba.expression=R,this.finishNode(ba,"ParenthesizedExpression")}else return R},Fn.parseParenItem=function(_){return _},Fn.parseParenArrowList=function(_,M,F){return this.parseArrowExpression(this.startNodeAt(_,M),F)};var gi=[];Fn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var _=this.startNode(),M=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Y.dot)){_.meta=M;var F=this.containsEsc;return _.property=this.parseIdent(!0),_.property.name!=="target"&&this.raiseRecoverable(_.property.start,"The only valid meta property for new is 'new.target'"),F&&this.raiseRecoverable(_.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(_.start,"'new.target' can only be used in functions"),this.finishNode(_,"MetaProperty")}var R=this.start,K=this.startLoc,_e=this.type===Y._import;return _.callee=this.parseSubscripts(this.parseExprAtom(),R,K,!0),_e&&_.callee.type==="ImportExpression"&&this.raise(R,"Cannot use new with import()"),this.eat(Y.parenL)?_.arguments=this.parseExprList(Y.parenR,this.options.ecmaVersion>=8,!1):_.arguments=gi,this.finishNode(_,"NewExpression")},Fn.parseTemplateElement=function(_){var M=_.isTagged,F=this.startNode();return this.type===Y.invalidTemplate?(M||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),F.value={raw:this.value,cooked:null}):F.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),F.tail=this.type===Y.backQuote,this.finishNode(F,"TemplateElement")},Fn.parseTemplate=function(_){_===void 0&&(_={});var M=_.isTagged;M===void 0&&(M=!1);var F=this.startNode();this.next(),F.expressions=[];var R=this.parseTemplateElement({isTagged:M});for(F.quasis=[R];!R.tail;)this.type===Y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Y.dollarBraceL),F.expressions.push(this.parseExpression()),this.expect(Y.braceR),F.quasis.push(R=this.parseTemplateElement({isTagged:M}));return this.next(),this.finishNode(F,"TemplateLiteral")},Fn.isAsyncProp=function(_){return!_.computed&&_.key.type==="Identifier"&&_.key.name==="async"&&(this.type===Y.name||this.type===Y.num||this.type===Y.string||this.type===Y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Y.star)&&!$t.test(this.input.slice(this.lastTokEnd,this.start))},Fn.parseObj=function(_,M){var F=this.startNode(),R=!0,K={};for(F.properties=[],this.next();!this.eat(Y.braceR);){if(R)R=!1;else if(this.expect(Y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Y.braceR))break;var _e=this.parseProperty(_,M);_||this.checkPropClash(_e,K,M),F.properties.push(_e)}return this.finishNode(F,_?"ObjectPattern":"ObjectExpression")},Fn.parseProperty=function(_,M){var F=this.startNode(),R,K,_e,je;if(this.options.ecmaVersion>=9&&this.eat(Y.ellipsis))return _?(F.argument=this.parseIdent(!1),this.type===Y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(F,"RestElement")):(this.type===Y.parenL&&M&&(M.parenthesizedAssign<0&&(M.parenthesizedAssign=this.start),M.parenthesizedBind<0&&(M.parenthesizedBind=this.start)),F.argument=this.parseMaybeAssign(!1,M),this.type===Y.comma&&M&&M.trailingComma<0&&(M.trailingComma=this.start),this.finishNode(F,"SpreadElement"));this.options.ecmaVersion>=6&&(F.method=!1,F.shorthand=!1,(_||M)&&(_e=this.start,je=this.startLoc),_||(R=this.eat(Y.star)));var pt=this.containsEsc;return this.parsePropertyName(F),!_&&!pt&&this.options.ecmaVersion>=8&&!R&&this.isAsyncProp(F)?(K=!0,R=this.options.ecmaVersion>=9&&this.eat(Y.star),this.parsePropertyName(F,M)):K=!1,this.parsePropertyValue(F,_,R,K,_e,je,M,pt),this.finishNode(F,"Property")},Fn.parsePropertyValue=function(_,M,F,R,K,_e,je,pt){if((F||R)&&this.type===Y.colon&&this.unexpected(),this.eat(Y.colon))_.value=M?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,je),_.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Y.parenL)M&&this.unexpected(),_.kind="init",_.method=!0,_.value=this.parseMethod(F,R);else if(!M&&!pt&&this.options.ecmaVersion>=5&&!_.computed&&_.key.type==="Identifier"&&(_.key.name==="get"||_.key.name==="set")&&this.type!==Y.comma&&this.type!==Y.braceR&&this.type!==Y.eq){(F||R)&&this.unexpected(),_.kind=_.key.name,this.parsePropertyName(_),_.value=this.parseMethod(!1);var dt=_.kind==="get"?0:1;if(_.value.params.length!==dt){var ur=_.value.start;_.kind==="get"?this.raiseRecoverable(ur,"getter should have no params"):this.raiseRecoverable(ur,"setter should have exactly one param")}else _.kind==="set"&&_.value.params[0].type==="RestElement"&&this.raiseRecoverable(_.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!_.computed&&_.key.type==="Identifier"?((F||R)&&this.unexpected(),this.checkUnreserved(_.key),_.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=K),_.kind="init",M?_.value=this.parseMaybeDefault(K,_e,_.key):this.type===Y.eq&&je?(je.shorthandAssign<0&&(je.shorthandAssign=this.start),_.value=this.parseMaybeDefault(K,_e,_.key)):_.value=_.key,_.shorthand=!0):this.unexpected()},Fn.parsePropertyName=function(_){if(this.options.ecmaVersion>=6){if(this.eat(Y.bracketL))return _.computed=!0,_.key=this.parseMaybeAssign(),this.expect(Y.bracketR),_.key;_.computed=!1}return _.key=this.type===Y.num||this.type===Y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Fn.initFunction=function(_){_.id=null,this.options.ecmaVersion>=6&&(_.generator=_.expression=!1),this.options.ecmaVersion>=8&&(_.async=!1)},Fn.parseMethod=function(_,M,F){var R=this.startNode(),K=this.yieldPos,_e=this.awaitPos,je=this.awaitIdentPos;return this.initFunction(R),this.options.ecmaVersion>=6&&(R.generator=_),this.options.ecmaVersion>=8&&(R.async=!!M),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wi(M,R.generator)|mi|(F?aa:0)),this.expect(Y.parenL),R.params=this.parseBindingList(Y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(R,!1,!0),this.yieldPos=K,this.awaitPos=_e,this.awaitIdentPos=je,this.finishNode(R,"FunctionExpression")},Fn.parseArrowExpression=function(_,M,F){var R=this.yieldPos,K=this.awaitPos,_e=this.awaitIdentPos;return this.enterScope(Wi(F,!1)|vi),this.initFunction(_),this.options.ecmaVersion>=8&&(_.async=!!F),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,_.params=this.toAssignableList(M,!0),this.parseFunctionBody(_,!0,!1),this.yieldPos=R,this.awaitPos=K,this.awaitIdentPos=_e,this.finishNode(_,"ArrowFunctionExpression")},Fn.parseFunctionBody=function(_,M,F){var R=M&&this.type!==Y.braceL,K=this.strict,_e=!1;if(R)_.body=this.parseMaybeAssign(),_.expression=!0,this.checkParams(_,!1);else{var je=this.options.ecmaVersion>=7&&!this.isSimpleParamList(_.params);(!K||je)&&(_e=this.strictDirective(this.end),_e&&je&&this.raiseRecoverable(_.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var pt=this.labels;this.labels=[],_e&&(this.strict=!0),this.checkParams(_,!K&&!_e&&!M&&!F&&this.isSimpleParamList(_.params)),this.strict&&_.id&&this.checkLVal(_.id,$n),_.body=this.parseBlock(!1,void 0,_e&&!K),_.expression=!1,this.adaptDirectivePrologue(_.body.body),this.labels=pt}this.exitScope()},Fn.isSimpleParamList=function(_){for(var M=0,F=_;M-1||K.functions.indexOf(_)>-1||K.var.indexOf(_)>-1,K.lexical.push(_),this.inModule&&K.flags&ei&&delete this.undefinedExports[_]}else if(M===da){var _e=this.currentScope();_e.lexical.push(_)}else if(M===Mi){var je=this.currentScope();this.treatFunctionsAsVar?R=je.lexical.indexOf(_)>-1:R=je.lexical.indexOf(_)>-1||je.var.indexOf(_)>-1,je.functions.push(_)}else for(var pt=this.scopeStack.length-1;pt>=0;--pt){var dt=this.scopeStack[pt];if(dt.lexical.indexOf(_)>-1&&!(dt.flags&qn&&dt.lexical[0]===_)||!this.treatFunctionsAsVarInScope(dt)&&dt.functions.indexOf(_)>-1){R=!0;break}if(dt.var.push(_),this.inModule&&dt.flags&ei&&delete this.undefinedExports[_],dt.flags&di)break}R&&this.raiseRecoverable(F,"Identifier '"+_+"' has already been declared")},fn.checkLocalExport=function(_){this.scopeStack[0].lexical.indexOf(_.name)===-1&&this.scopeStack[0].var.indexOf(_.name)===-1&&(this.undefinedExports[_.name]=_)},fn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},fn.currentVarScope=function(){for(var _=this.scopeStack.length-1;;_--){var M=this.scopeStack[_];if(M.flags&di)return M}},fn.currentThisScope=function(){for(var _=this.scopeStack.length-1;;_--){var M=this.scopeStack[_];if(M.flags&di&&!(M.flags&vi))return M}};var Ri=function(M,F,R){this.type="",this.start=F,this.end=0,M.options.locations&&(this.loc=new wt(M,R)),M.options.directSourceFile&&(this.sourceFile=M.options.directSourceFile),M.options.ranges&&(this.range=[F,0])},to=wi.prototype;to.startNode=function(){return new Ri(this,this.start,this.startLoc)},to.startNodeAt=function(_,M){return new Ri(this,_,M)};function Es(_,M,F,R){return _.type=M,_.end=F,this.options.locations&&(_.loc.end=R),this.options.ranges&&(_.range[1]=F),_}to.finishNode=function(_,M){return Es.call(this,_,M,this.lastTokEnd,this.lastTokEndLoc)},to.finishNodeAt=function(_,M,F,R){return Es.call(this,_,M,F,R)};var Ko=function(M,F,R,K,_e){this.token=M,this.isExpr=!!F,this.preserveSpace=!!R,this.override=K,this.generator=!!_e},Ba={b_stat:new Ko("{",!1),b_expr:new Ko("{",!0),b_tmpl:new Ko("${",!1),p_stat:new Ko("(",!1),p_expr:new Ko("(",!0),q_tmpl:new Ko("`",!0,!0,function(_){return _.tryReadTemplateToken()}),f_stat:new Ko("function",!1),f_expr:new Ko("function",!0),f_expr_gen:new Ko("function",!0,!1,null,!0),f_gen:new Ko("function",!1,!1,null,!0)},xa=wi.prototype;xa.initialContext=function(){return[Ba.b_stat]},xa.braceIsBlock=function(_){var M=this.curContext();return M===Ba.f_expr||M===Ba.f_stat?!0:_===Y.colon&&(M===Ba.b_stat||M===Ba.b_expr)?!M.isExpr:_===Y._return||_===Y.name&&this.exprAllowed?$t.test(this.input.slice(this.lastTokEnd,this.start)):_===Y._else||_===Y.semi||_===Y.eof||_===Y.parenR||_===Y.arrow?!0:_===Y.braceL?M===Ba.b_stat:_===Y._var||_===Y._const||_===Y.name?!1:!this.exprAllowed},xa.inGeneratorContext=function(){for(var _=this.context.length-1;_>=1;_--){var M=this.context[_];if(M.token==="function")return M.generator}return!1},xa.updateContext=function(_){var M,F=this.type;F.keyword&&_===Y.dot?this.exprAllowed=!1:(M=F.updateContext)?M.call(this,_):this.exprAllowed=F.beforeExpr},Y.parenR.updateContext=Y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var _=this.context.pop();_===Ba.b_stat&&this.curContext().token==="function"&&(_=this.context.pop()),this.exprAllowed=!_.isExpr},Y.braceL.updateContext=function(_){this.context.push(this.braceIsBlock(_)?Ba.b_stat:Ba.b_expr),this.exprAllowed=!0},Y.dollarBraceL.updateContext=function(){this.context.push(Ba.b_tmpl),this.exprAllowed=!0},Y.parenL.updateContext=function(_){var M=_===Y._if||_===Y._for||_===Y._with||_===Y._while;this.context.push(M?Ba.p_stat:Ba.p_expr),this.exprAllowed=!0},Y.incDec.updateContext=function(){},Y._function.updateContext=Y._class.updateContext=function(_){_.beforeExpr&&_!==Y.semi&&_!==Y._else&&!(_===Y._return&&$t.test(this.input.slice(this.lastTokEnd,this.start)))&&!((_===Y.colon||_===Y.braceL)&&this.curContext()===Ba.b_stat)?this.context.push(Ba.f_expr):this.context.push(Ba.f_stat),this.exprAllowed=!1},Y.backQuote.updateContext=function(){this.curContext()===Ba.q_tmpl?this.context.pop():this.context.push(Ba.q_tmpl),this.exprAllowed=!1},Y.star.updateContext=function(_){if(_===Y._function){var M=this.context.length-1;this.context[M]===Ba.f_expr?this.context[M]=Ba.f_expr_gen:this.context[M]=Ba.f_gen}this.exprAllowed=!0},Y.name.updateContext=function(_){var M=!1;this.options.ecmaVersion>=6&&_!==Y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(M=!0),this.exprAllowed=M};var H="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Q=H+" Extended_Pictographic",oe=Q,ye={9:H,10:Q,11:oe},Pe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",He="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",rt=He+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",pe=rt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ke={9:He,10:rt,11:pe},vt={};function pr(_){var M=vt[_]={binary:Ce(ye[_]+" "+Pe),nonBinary:{General_Category:Ce(Pe),Script:Ce(ke[_])}};M.nonBinary.Script_Extensions=M.nonBinary.Script,M.nonBinary.gc=M.nonBinary.General_Category,M.nonBinary.sc=M.nonBinary.Script,M.nonBinary.scx=M.nonBinary.Script_Extensions}pr(9),pr(10),pr(11);var Ft=wi.prototype,zt=function(M){this.parser=M,this.validFlags="gim"+(M.options.ecmaVersion>=6?"uy":"")+(M.options.ecmaVersion>=9?"s":""),this.unicodeProperties=vt[M.options.ecmaVersion>=11?11:M.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};zt.prototype.reset=function(M,F,R){var K=R.indexOf("u")!==-1;this.start=M|0,this.source=F+"",this.flags=R,this.switchU=K&&this.parser.options.ecmaVersion>=6,this.switchN=K&&this.parser.options.ecmaVersion>=9},zt.prototype.raise=function(M){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+M)},zt.prototype.at=function(M,F){F===void 0&&(F=!1);var R=this.source,K=R.length;if(M>=K)return-1;var _e=R.charCodeAt(M);if(!(F||this.switchU)||_e<=55295||_e>=57344||M+1>=K)return _e;var je=R.charCodeAt(M+1);return je>=56320&&je<=57343?(_e<<10)+je-56613888:_e},zt.prototype.nextIndex=function(M,F){F===void 0&&(F=!1);var R=this.source,K=R.length;if(M>=K)return K;var _e=R.charCodeAt(M),je;return!(F||this.switchU)||_e<=55295||_e>=57344||M+1>=K||(je=R.charCodeAt(M+1))<56320||je>57343?M+1:M+2},zt.prototype.current=function(M){return M===void 0&&(M=!1),this.at(this.pos,M)},zt.prototype.lookahead=function(M){return M===void 0&&(M=!1),this.at(this.nextIndex(this.pos,M),M)},zt.prototype.advance=function(M){M===void 0&&(M=!1),this.pos=this.nextIndex(this.pos,M)},zt.prototype.eat=function(M,F){return F===void 0&&(F=!1),this.current(F)===M?(this.advance(F),!0):!1};function vr(_){return _<=65535?String.fromCharCode(_):(_-=65536,String.fromCharCode((_>>10)+55296,(_&1023)+56320))}Ft.validateRegExpFlags=function(_){for(var M=_.validFlags,F=_.flags,R=0;R-1&&this.raise(_.start,"Duplicate regular expression flag")}},Ft.validateRegExpPattern=function(_){this.regexp_pattern(_),!_.switchN&&this.options.ecmaVersion>=9&&_.groupNames.length>0&&(_.switchN=!0,this.regexp_pattern(_))},Ft.regexp_pattern=function(_){_.pos=0,_.lastIntValue=0,_.lastStringValue="",_.lastAssertionIsQuantifiable=!1,_.numCapturingParens=0,_.maxBackReference=0,_.groupNames.length=0,_.backReferenceNames.length=0,this.regexp_disjunction(_),_.pos!==_.source.length&&(_.eat(41)&&_.raise("Unmatched ')'"),(_.eat(93)||_.eat(125))&&_.raise("Lone quantifier brackets")),_.maxBackReference>_.numCapturingParens&&_.raise("Invalid escape");for(var M=0,F=_.backReferenceNames;M=9&&(F=_.eat(60)),_.eat(61)||_.eat(33))return this.regexp_disjunction(_),_.eat(41)||_.raise("Unterminated group"),_.lastAssertionIsQuantifiable=!F,!0}return _.pos=M,!1},Ft.regexp_eatQuantifier=function(_,M){return M===void 0&&(M=!1),this.regexp_eatQuantifierPrefix(_,M)?(_.eat(63),!0):!1},Ft.regexp_eatQuantifierPrefix=function(_,M){return _.eat(42)||_.eat(43)||_.eat(63)||this.regexp_eatBracedQuantifier(_,M)},Ft.regexp_eatBracedQuantifier=function(_,M){var F=_.pos;if(_.eat(123)){var R=0,K=-1;if(this.regexp_eatDecimalDigits(_)&&(R=_.lastIntValue,_.eat(44)&&this.regexp_eatDecimalDigits(_)&&(K=_.lastIntValue),_.eat(125)))return K!==-1&&K=9?this.regexp_groupSpecifier(_):_.current()===63&&_.raise("Invalid group"),this.regexp_disjunction(_),_.eat(41))return _.numCapturingParens+=1,!0;_.raise("Unterminated group")}return!1},Ft.regexp_eatExtendedAtom=function(_){return _.eat(46)||this.regexp_eatReverseSolidusAtomEscape(_)||this.regexp_eatCharacterClass(_)||this.regexp_eatUncapturingGroup(_)||this.regexp_eatCapturingGroup(_)||this.regexp_eatInvalidBracedQuantifier(_)||this.regexp_eatExtendedPatternCharacter(_)},Ft.regexp_eatInvalidBracedQuantifier=function(_){return this.regexp_eatBracedQuantifier(_,!0)&&_.raise("Nothing to repeat"),!1},Ft.regexp_eatSyntaxCharacter=function(_){var M=_.current();return En(M)?(_.lastIntValue=M,_.advance(),!0):!1};function En(_){return _===36||_>=40&&_<=43||_===46||_===63||_>=91&&_<=94||_>=123&&_<=125}Ft.regexp_eatPatternCharacters=function(_){for(var M=_.pos,F=0;(F=_.current())!==-1&&!En(F);)_.advance();return _.pos!==M},Ft.regexp_eatExtendedPatternCharacter=function(_){var M=_.current();return M!==-1&&M!==36&&!(M>=40&&M<=43)&&M!==46&&M!==63&&M!==91&&M!==94&&M!==124?(_.advance(),!0):!1},Ft.regexp_groupSpecifier=function(_){if(_.eat(63)){if(this.regexp_eatGroupName(_)){_.groupNames.indexOf(_.lastStringValue)!==-1&&_.raise("Duplicate capture group name"),_.groupNames.push(_.lastStringValue);return}_.raise("Invalid group")}},Ft.regexp_eatGroupName=function(_){if(_.lastStringValue="",_.eat(60)){if(this.regexp_eatRegExpIdentifierName(_)&&_.eat(62))return!0;_.raise("Invalid capture group name")}return!1},Ft.regexp_eatRegExpIdentifierName=function(_){if(_.lastStringValue="",this.regexp_eatRegExpIdentifierStart(_)){for(_.lastStringValue+=vr(_.lastIntValue);this.regexp_eatRegExpIdentifierPart(_);)_.lastStringValue+=vr(_.lastIntValue);return!0}return!1},Ft.regexp_eatRegExpIdentifierStart=function(_){var M=_.pos,F=this.options.ecmaVersion>=11,R=_.current(F);return _.advance(F),R===92&&this.regexp_eatRegExpUnicodeEscapeSequence(_,F)&&(R=_.lastIntValue),pn(R)?(_.lastIntValue=R,!0):(_.pos=M,!1)};function pn(_){return gt(_,!0)||_===36||_===95}Ft.regexp_eatRegExpIdentifierPart=function(_){var M=_.pos,F=this.options.ecmaVersion>=11,R=_.current(F);return _.advance(F),R===92&&this.regexp_eatRegExpUnicodeEscapeSequence(_,F)&&(R=_.lastIntValue),Ot(R)?(_.lastIntValue=R,!0):(_.pos=M,!1)};function Ot(_){return rr(_,!0)||_===36||_===95||_===8204||_===8205}Ft.regexp_eatAtomEscape=function(_){return this.regexp_eatBackReference(_)||this.regexp_eatCharacterClassEscape(_)||this.regexp_eatCharacterEscape(_)||_.switchN&&this.regexp_eatKGroupName(_)?!0:(_.switchU&&(_.current()===99&&_.raise("Invalid unicode escape"),_.raise("Invalid escape")),!1)},Ft.regexp_eatBackReference=function(_){var M=_.pos;if(this.regexp_eatDecimalEscape(_)){var F=_.lastIntValue;if(_.switchU)return F>_.maxBackReference&&(_.maxBackReference=F),!0;if(F<=_.numCapturingParens)return!0;_.pos=M}return!1},Ft.regexp_eatKGroupName=function(_){if(_.eat(107)){if(this.regexp_eatGroupName(_))return _.backReferenceNames.push(_.lastStringValue),!0;_.raise("Invalid named reference")}return!1},Ft.regexp_eatCharacterEscape=function(_){return this.regexp_eatControlEscape(_)||this.regexp_eatCControlLetter(_)||this.regexp_eatZero(_)||this.regexp_eatHexEscapeSequence(_)||this.regexp_eatRegExpUnicodeEscapeSequence(_,!1)||!_.switchU&&this.regexp_eatLegacyOctalEscapeSequence(_)||this.regexp_eatIdentityEscape(_)},Ft.regexp_eatCControlLetter=function(_){var M=_.pos;if(_.eat(99)){if(this.regexp_eatControlLetter(_))return!0;_.pos=M}return!1},Ft.regexp_eatZero=function(_){return _.current()===48&&!on(_.lookahead())?(_.lastIntValue=0,_.advance(),!0):!1},Ft.regexp_eatControlEscape=function(_){var M=_.current();return M===116?(_.lastIntValue=9,_.advance(),!0):M===110?(_.lastIntValue=10,_.advance(),!0):M===118?(_.lastIntValue=11,_.advance(),!0):M===102?(_.lastIntValue=12,_.advance(),!0):M===114?(_.lastIntValue=13,_.advance(),!0):!1},Ft.regexp_eatControlLetter=function(_){var M=_.current();return nn(M)?(_.lastIntValue=M%32,_.advance(),!0):!1};function nn(_){return _>=65&&_<=90||_>=97&&_<=122}Ft.regexp_eatRegExpUnicodeEscapeSequence=function(_,M){M===void 0&&(M=!1);var F=_.pos,R=M||_.switchU;if(_.eat(117)){if(this.regexp_eatFixedHexDigits(_,4)){var K=_.lastIntValue;if(R&&K>=55296&&K<=56319){var _e=_.pos;if(_.eat(92)&&_.eat(117)&&this.regexp_eatFixedHexDigits(_,4)){var je=_.lastIntValue;if(je>=56320&&je<=57343)return _.lastIntValue=(K-55296)*1024+(je-56320)+65536,!0}_.pos=_e,_.lastIntValue=K}return!0}if(R&&_.eat(123)&&this.regexp_eatHexDigits(_)&&_.eat(125)&&Zr(_.lastIntValue))return!0;R&&_.raise("Invalid unicode escape"),_.pos=F}return!1};function Zr(_){return _>=0&&_<=1114111}Ft.regexp_eatIdentityEscape=function(_){if(_.switchU)return this.regexp_eatSyntaxCharacter(_)?!0:_.eat(47)?(_.lastIntValue=47,!0):!1;var M=_.current();return M!==99&&(!_.switchN||M!==107)?(_.lastIntValue=M,_.advance(),!0):!1},Ft.regexp_eatDecimalEscape=function(_){_.lastIntValue=0;var M=_.current();if(M>=49&&M<=57){do _.lastIntValue=10*_.lastIntValue+(M-48),_.advance();while((M=_.current())>=48&&M<=57);return!0}return!1},Ft.regexp_eatCharacterClassEscape=function(_){var M=_.current();if(Yr(M))return _.lastIntValue=-1,_.advance(),!0;if(_.switchU&&this.options.ecmaVersion>=9&&(M===80||M===112)){if(_.lastIntValue=-1,_.advance(),_.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(_)&&_.eat(125))return!0;_.raise("Invalid property name")}return!1};function Yr(_){return _===100||_===68||_===115||_===83||_===119||_===87}Ft.regexp_eatUnicodePropertyValueExpression=function(_){var M=_.pos;if(this.regexp_eatUnicodePropertyName(_)&&_.eat(61)){var F=_.lastStringValue;if(this.regexp_eatUnicodePropertyValue(_)){var R=_.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(_,F,R),!0}}if(_.pos=M,this.regexp_eatLoneUnicodePropertyNameOrValue(_)){var K=_.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(_,K),!0}return!1},Ft.regexp_validateUnicodePropertyNameAndValue=function(_,M,F){tn(_.unicodeProperties.nonBinary,M)||_.raise("Invalid property name"),_.unicodeProperties.nonBinary[M].test(F)||_.raise("Invalid property value")},Ft.regexp_validateUnicodePropertyNameOrValue=function(_,M){_.unicodeProperties.binary.test(M)||_.raise("Invalid property name")},Ft.regexp_eatUnicodePropertyName=function(_){var M=0;for(_.lastStringValue="";_i(M=_.current());)_.lastStringValue+=vr(M),_.advance();return _.lastStringValue!==""};function _i(_){return nn(_)||_===95}Ft.regexp_eatUnicodePropertyValue=function(_){var M=0;for(_.lastStringValue="";an(M=_.current());)_.lastStringValue+=vr(M),_.advance();return _.lastStringValue!==""};function an(_){return _i(_)||on(_)}Ft.regexp_eatLoneUnicodePropertyNameOrValue=function(_){return this.regexp_eatUnicodePropertyValue(_)},Ft.regexp_eatCharacterClass=function(_){if(_.eat(91)){if(_.eat(94),this.regexp_classRanges(_),_.eat(93))return!0;_.raise("Unterminated character class")}return!1},Ft.regexp_classRanges=function(_){for(;this.regexp_eatClassAtom(_);){var M=_.lastIntValue;if(_.eat(45)&&this.regexp_eatClassAtom(_)){var F=_.lastIntValue;_.switchU&&(M===-1||F===-1)&&_.raise("Invalid character class"),M!==-1&&F!==-1&&M>F&&_.raise("Range out of order in character class")}}},Ft.regexp_eatClassAtom=function(_){var M=_.pos;if(_.eat(92)){if(this.regexp_eatClassEscape(_))return!0;if(_.switchU){var F=_.current();(F===99||Pi(F))&&_.raise("Invalid class escape"),_.raise("Invalid escape")}_.pos=M}var R=_.current();return R!==93?(_.lastIntValue=R,_.advance(),!0):!1},Ft.regexp_eatClassEscape=function(_){var M=_.pos;if(_.eat(98))return _.lastIntValue=8,!0;if(_.switchU&&_.eat(45))return _.lastIntValue=45,!0;if(!_.switchU&&_.eat(99)){if(this.regexp_eatClassControlLetter(_))return!0;_.pos=M}return this.regexp_eatCharacterClassEscape(_)||this.regexp_eatCharacterEscape(_)},Ft.regexp_eatClassControlLetter=function(_){var M=_.current();return on(M)||M===95?(_.lastIntValue=M%32,_.advance(),!0):!1},Ft.regexp_eatHexEscapeSequence=function(_){var M=_.pos;if(_.eat(120)){if(this.regexp_eatFixedHexDigits(_,2))return!0;_.switchU&&_.raise("Invalid escape"),_.pos=M}return!1},Ft.regexp_eatDecimalDigits=function(_){var M=_.pos,F=0;for(_.lastIntValue=0;on(F=_.current());)_.lastIntValue=10*_.lastIntValue+(F-48),_.advance();return _.pos!==M};function on(_){return _>=48&&_<=57}Ft.regexp_eatHexDigits=function(_){var M=_.pos,F=0;for(_.lastIntValue=0;Xi(F=_.current());)_.lastIntValue=16*_.lastIntValue+yi(F),_.advance();return _.pos!==M};function Xi(_){return _>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102}function yi(_){return _>=65&&_<=70?10+(_-65):_>=97&&_<=102?10+(_-97):_-48}Ft.regexp_eatLegacyOctalEscapeSequence=function(_){if(this.regexp_eatOctalDigit(_)){var M=_.lastIntValue;if(this.regexp_eatOctalDigit(_)){var F=_.lastIntValue;M<=3&&this.regexp_eatOctalDigit(_)?_.lastIntValue=M*64+F*8+_.lastIntValue:_.lastIntValue=M*8+F}else _.lastIntValue=M;return!0}return!1},Ft.regexp_eatOctalDigit=function(_){var M=_.current();return Pi(M)?(_.lastIntValue=M-48,_.advance(),!0):(_.lastIntValue=0,!1)};function Pi(_){return _>=48&&_<=55}Ft.regexp_eatFixedHexDigits=function(_,M){var F=_.pos;_.lastIntValue=0;for(var R=0;R=this.input.length)return this.finishToken(Y.eof);if(_.override)return _.override(this);this.readToken(this.fullCharCodeAtPos())},ht.readToken=function(_){return gt(_,this.options.ecmaVersion>=6)||_===92?this.readWord():this.getTokenFromCode(_)},ht.fullCharCodeAtPos=function(){var _=this.input.charCodeAt(this.pos);if(_<=55295||_>=57344)return _;var M=this.input.charCodeAt(this.pos+1);return(_<<10)+M-56613888},ht.skipBlockComment=function(){var _=this.options.onComment&&this.curPosition(),M=this.pos,F=this.input.indexOf("*/",this.pos+=2);if(F===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=F+2,this.options.locations){ft.lastIndex=M;for(var R;(R=ft.exec(this.input))&&R.index8&&_<14||_>=5760&&At.test(String.fromCharCode(_)))++this.pos;else break e}}},ht.finishToken=function(_,M){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var F=this.type;this.type=_,this.value=M,this.updateContext(F)},ht.readToken_dot=function(){var _=this.input.charCodeAt(this.pos+1);if(_>=48&&_<=57)return this.readNumber(!0);var M=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&_===46&&M===46?(this.pos+=3,this.finishToken(Y.ellipsis)):(++this.pos,this.finishToken(Y.dot))},ht.readToken_slash=function(){var _=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):_===61?this.finishOp(Y.assign,2):this.finishOp(Y.slash,1)},ht.readToken_mult_modulo_exp=function(_){var M=this.input.charCodeAt(this.pos+1),F=1,R=_===42?Y.star:Y.modulo;return this.options.ecmaVersion>=7&&_===42&&M===42&&(++F,R=Y.starstar,M=this.input.charCodeAt(this.pos+2)),M===61?this.finishOp(Y.assign,F+1):this.finishOp(R,F)},ht.readToken_pipe_amp=function(_){var M=this.input.charCodeAt(this.pos+1);if(M===_){if(this.options.ecmaVersion>=12){var F=this.input.charCodeAt(this.pos+2);if(F===61)return this.finishOp(Y.assign,3)}return this.finishOp(_===124?Y.logicalOR:Y.logicalAND,2)}return M===61?this.finishOp(Y.assign,2):this.finishOp(_===124?Y.bitwiseOR:Y.bitwiseAND,1)},ht.readToken_caret=function(){var _=this.input.charCodeAt(this.pos+1);return _===61?this.finishOp(Y.assign,2):this.finishOp(Y.bitwiseXOR,1)},ht.readToken_plus_min=function(_){var M=this.input.charCodeAt(this.pos+1);return M===_?M===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||$t.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(Y.incDec,2):M===61?this.finishOp(Y.assign,2):this.finishOp(Y.plusMin,1)},ht.readToken_lt_gt=function(_){var M=this.input.charCodeAt(this.pos+1),F=1;return M===_?(F=_===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+F)===61?this.finishOp(Y.assign,F+1):this.finishOp(Y.bitShift,F)):M===33&&_===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(M===61&&(F=2),this.finishOp(Y.relational,F))},ht.readToken_eq_excl=function(_){var M=this.input.charCodeAt(this.pos+1);return M===61?this.finishOp(Y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):_===61&&M===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Y.arrow)):this.finishOp(_===61?Y.eq:Y.prefix,1)},ht.readToken_question=function(){var _=this.options.ecmaVersion;if(_>=11){var M=this.input.charCodeAt(this.pos+1);if(M===46){var F=this.input.charCodeAt(this.pos+2);if(F<48||F>57)return this.finishOp(Y.questionDot,2)}if(M===63){if(_>=12){var R=this.input.charCodeAt(this.pos+2);if(R===61)return this.finishOp(Y.assign,3)}return this.finishOp(Y.coalesce,2)}}return this.finishOp(Y.question,1)},ht.getTokenFromCode=function(_){switch(_){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Y.parenL);case 41:return++this.pos,this.finishToken(Y.parenR);case 59:return++this.pos,this.finishToken(Y.semi);case 44:return++this.pos,this.finishToken(Y.comma);case 91:return++this.pos,this.finishToken(Y.bracketL);case 93:return++this.pos,this.finishToken(Y.bracketR);case 123:return++this.pos,this.finishToken(Y.braceL);case 125:return++this.pos,this.finishToken(Y.braceR);case 58:return++this.pos,this.finishToken(Y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Y.backQuote);case 48:var M=this.input.charCodeAt(this.pos+1);if(M===120||M===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(M===111||M===79)return this.readRadixNumber(8);if(M===98||M===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(_);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(_);case 124:case 38:return this.readToken_pipe_amp(_);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(_);case 60:case 62:return this.readToken_lt_gt(_);case 61:case 33:return this.readToken_eq_excl(_);case 63:return this.readToken_question();case 126:return this.finishOp(Y.prefix,1)}this.raise(this.pos,"Unexpected character '"+qi(_)+"'")},ht.finishOp=function(_,M){var F=this.input.slice(this.pos,this.pos+M);return this.pos+=M,this.finishToken(_,F)},ht.readRegexp=function(){for(var _,M,F=this.pos;;){this.pos>=this.input.length&&this.raise(F,"Unterminated regular expression");var R=this.input.charAt(this.pos);if($t.test(R)&&this.raise(F,"Unterminated regular expression"),_)_=!1;else{if(R==="[")M=!0;else if(R==="]"&&M)M=!1;else if(R==="/"&&!M)break;_=R==="\\"}++this.pos}var K=this.input.slice(F,this.pos);++this.pos;var _e=this.pos,je=this.readWord1();this.containsEsc&&this.unexpected(_e);var pt=this.regexpState||(this.regexpState=new zt(this));pt.reset(F,K,je),this.validateRegExpFlags(pt),this.validateRegExpPattern(pt);var dt=null;try{dt=new RegExp(K,je)}catch(ur){}return this.finishToken(Y.regexp,{pattern:K,flags:je,value:dt})},ht.readInt=function(_,M,F){for(var R=this.options.ecmaVersion>=12&&M===void 0,K=F&&this.input.charCodeAt(this.pos)===48,_e=this.pos,je=0,pt=0,dt=0,ur=M==null?Infinity:M;dt=97?In=yr-97+10:yr>=65?In=yr-65+10:yr>=48&&yr<=57?In=yr-48:In=Infinity,In>=_)break;pt=yr,je=je*_+In}return R&&pt===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===_e||M!=null&&this.pos-_e!==M?null:je};function Pt(_,M){return M?parseInt(_,8):parseFloat(_.replace(/_/g,""))}function Aa(_){return typeof BigInt!="function"?null:BigInt(_.replace(/_/g,""))}ht.readRadixNumber=function(_){var M=this.pos;this.pos+=2;var F=this.readInt(_);return F==null&&this.raise(this.start+2,"Expected number in radix "+_),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(F=Aa(this.input.slice(M,this.pos)),++this.pos):gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Y.num,F)},ht.readNumber=function(_){var M=this.pos;!_&&this.readInt(10,void 0,!0)===null&&this.raise(M,"Invalid number");var F=this.pos-M>=2&&this.input.charCodeAt(M)===48;F&&this.strict&&this.raise(M,"Invalid number");var R=this.input.charCodeAt(this.pos);if(!F&&!_&&this.options.ecmaVersion>=11&&R===110){var K=Aa(this.input.slice(M,this.pos));return++this.pos,gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Y.num,K)}F&&/[89]/.test(this.input.slice(M,this.pos))&&(F=!1),R===46&&!F&&(++this.pos,this.readInt(10),R=this.input.charCodeAt(this.pos)),(R===69||R===101)&&!F&&(R=this.input.charCodeAt(++this.pos),(R===43||R===45)&&++this.pos,this.readInt(10)===null&&this.raise(M,"Invalid number")),gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var _e=Pt(this.input.slice(M,this.pos),F);return this.finishToken(Y.num,_e)},ht.readCodePoint=function(){var _=this.input.charCodeAt(this.pos),M;if(_===123){this.options.ecmaVersion<6&&this.unexpected();var F=++this.pos;M=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,M>1114111&&this.invalidStringToken(F,"Code point out of bounds")}else M=this.readHexChar(4);return M};function qi(_){return _<=65535?String.fromCharCode(_):(_-=65536,String.fromCharCode((_>>10)+55296,(_&1023)+56320))}ht.readString=function(_){for(var M="",F=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var R=this.input.charCodeAt(this.pos);if(R===_)break;R===92?(M+=this.input.slice(F,this.pos),M+=this.readEscapedChar(!1),F=this.pos):(Je(R,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return M+=this.input.slice(F,this.pos++),this.finishToken(Y.string,M)};var Ii={};ht.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(_){if(_===Ii)this.readInvalidTemplateToken();else throw _}this.inTemplateElement=!1},ht.invalidStringToken=function(_,M){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ii;this.raise(_,M)},ht.readTmplToken=function(){for(var _="",M=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var F=this.input.charCodeAt(this.pos);if(F===96||F===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===Y.template||this.type===Y.invalidTemplate)?F===36?(this.pos+=2,this.finishToken(Y.dollarBraceL)):(++this.pos,this.finishToken(Y.backQuote)):(_+=this.input.slice(M,this.pos),this.finishToken(Y.template,_));if(F===92)_+=this.input.slice(M,this.pos),_+=this.readEscapedChar(!0),M=this.pos;else if(Je(F)){switch(_+=this.input.slice(M,this.pos),++this.pos,F){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:_+=` -`;break;default:_+=String.fromCharCode(F);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),M=this.pos}else++this.pos}},ht.readInvalidTemplateToken=function(){for(;this.pos=48&&M<=55){var R=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],K=parseInt(R,8);return K>255&&(R=R.slice(0,-1),K=parseInt(R,8)),this.pos+=R.length-1,M=this.input.charCodeAt(this.pos),(R!=="0"||M===56||M===57)&&(this.strict||_)&&this.invalidStringToken(this.pos-1-R.length,_?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(K)}return Je(M)?"":String.fromCharCode(M)}},ht.readHexChar=function(_){var M=this.pos,F=this.readInt(16,_);return F===null&&this.invalidStringToken(M,"Bad character escape sequence"),F},ht.readWord1=function(){this.containsEsc=!1;for(var _="",M=!0,F=this.pos,R=this.options.ecmaVersion>=6;this.pos1?F-1:0),K=1;KR},M.getNodePosition=function(R){if(R){var K="";return R.loc?" ["+R.loc.start.line+":"+R.loc.start.column+"]"+K:""}return""},M.createClosure=function(R){var K=this,_e;switch(R.type){case"BinaryExpression":_e=this.binaryExpressionHandler(R);break;case"LogicalExpression":_e=this.logicalExpressionHandler(R);break;case"UnaryExpression":_e=this.unaryExpressionHandler(R);break;case"UpdateExpression":_e=this.updateExpressionHandler(R);break;case"ObjectExpression":_e=this.objectExpressionHandler(R);break;case"ArrayExpression":_e=this.arrayExpressionHandler(R);break;case"CallExpression":_e=this.callExpressionHandler(R);break;case"NewExpression":_e=this.newExpressionHandler(R);break;case"MemberExpression":_e=this.memberExpressionHandler(R);break;case"ThisExpression":_e=this.thisExpressionHandler(R);break;case"SequenceExpression":_e=this.sequenceExpressionHandler(R);break;case"Literal":_e=this.literalHandler(R);break;case"Identifier":_e=this.identifierHandler(R);break;case"AssignmentExpression":_e=this.assignmentExpressionHandler(R);break;case"FunctionDeclaration":_e=this.functionDeclarationHandler(R);break;case"VariableDeclaration":_e=this.variableDeclarationHandler(R);break;case"BlockStatement":case"Program":_e=this.programHandler(R);break;case"ExpressionStatement":_e=this.expressionStatementHandler(R);break;case"EmptyStatement":_e=this.emptyStatementHandler(R);break;case"ReturnStatement":_e=this.returnStatementHandler(R);break;case"FunctionExpression":_e=this.functionExpressionHandler(R);break;case"IfStatement":_e=this.ifStatementHandler(R);break;case"ConditionalExpression":_e=this.conditionalExpressionHandler(R);break;case"ForStatement":_e=this.forStatementHandler(R);break;case"WhileStatement":_e=this.whileStatementHandler(R);break;case"DoWhileStatement":_e=this.doWhileStatementHandler(R);break;case"ForInStatement":_e=this.forInStatementHandler(R);break;case"WithStatement":_e=this.withStatementHandler(R);break;case"ThrowStatement":_e=this.throwStatementHandler(R);break;case"TryStatement":_e=this.tryStatementHandler(R);break;case"ContinueStatement":_e=this.continueStatementHandler(R);break;case"BreakStatement":_e=this.breakStatementHandler(R);break;case"SwitchStatement":_e=this.switchStatementHandler(R);break;case"LabeledStatement":_e=this.labeledStatementHandler(R);break;case"DebuggerStatement":_e=this.debuggerStatementHandler(R);break;default:throw this.createInternalThrowError(sa.NodeTypeSyntaxError,R.type,R)}return function(){var je=K.options.timeout;if(je&&je>0&&K.checkTimeout())throw K.createInternalThrowError(sa.ExecutionTimeOutError,je,null);return K.lastExecNode=R,_e.apply(void 0,arguments)}},M.binaryExpressionHandler=function(R){var K=this,_e=this.createClosure(R.left),je=this.createClosure(R.right);return function(){var pt=_e(),dt=je();switch(R.operator){case"==":return pt==dt;case"!=":return pt!=dt;case"===":return pt===dt;case"!==":return pt!==dt;case"<":return pt":return pt>dt;case">=":return pt>=dt;case"<<":return pt<>":return pt>>dt;case">>>":return pt>>>dt;case"+":return pt+dt;case"-":return pt-dt;case"*":return pt*dt;case"**":return Math.pow(pt,dt);case"/":return pt/dt;case"%":return pt%dt;case"|":return pt|dt;case"^":return pt^dt;case"&":return pt&dt;case"in":return pt in dt;case"instanceof":return pt instanceof dt;default:throw K.createInternalThrowError(sa.BinaryOperatorSyntaxError,R.operator,R)}}},M.logicalExpressionHandler=function(R){var K=this,_e=this.createClosure(R.left),je=this.createClosure(R.right);return function(){switch(R.operator){case"||":return _e()||je();case"&&":return _e()&&je();default:throw K.createInternalThrowError(sa.LogicalOperatorSyntaxError,R.operator,R)}}},M.unaryExpressionHandler=function(R){var K=this;switch(R.operator){case"delete":var _e=this.createObjectGetter(R.argument),je=this.createNameGetter(R.argument);return function(){var yr=_e(),In=je();return delete yr[In]};default:var pt;if(R.operator==="typeof"&&R.argument.type==="Identifier"){var dt=this.createObjectGetter(R.argument),ur=this.createNameGetter(R.argument);pt=function(){return dt()[ur()]}}else pt=this.createClosure(R.argument);return function(){var yr=pt();switch(R.operator){case"-":return-yr;case"+":return+yr;case"!":return!yr;case"~":return~yr;case"void":return;case"typeof":return typeof yr;default:throw K.createInternalThrowError(sa.UnaryOperatorSyntaxError,R.operator,R)}}}},M.updateExpressionHandler=function(R){var K=this,_e=this.createObjectGetter(R.argument),je=this.createNameGetter(R.argument);return function(){var pt=_e(),dt=je();switch(K.assertVariable(pt,dt,R),R.operator){case"++":return R.prefix?++pt[dt]:pt[dt]++;case"--":return R.prefix?--pt[dt]:pt[dt]--;default:throw K.createInternalThrowError(sa.UpdateOperatorSyntaxError,R.operator,R)}}},M.objectExpressionHandler=function(R){var K=this,_e=[];function je(dt){return dt.type==="Identifier"?dt.name:dt.type==="Literal"?dt.value:this.throwError(sa.ObjectStructureSyntaxError,dt.type,dt)}var pt=Object.create(null);return R.properties.forEach(function(dt){var ur=dt.kind,yr=je(dt.key);(!pt[yr]||ur==="init")&&(pt[yr]={}),pt[yr][ur]=K.createClosure(dt.value),_e.push({key:yr,property:dt})}),function(){for(var dt={},ur=_e.length,yr=0;yr>=":return dt[ur]>>=yr;case">>>=":return dt[ur]>>>=yr;case"&=":return dt[ur]&=yr;case"^=":return dt[ur]^=yr;case"|=":return dt[ur]|=yr;default:throw K.createInternalThrowError(sa.AssignmentExpressionSyntaxError,R.type,R)}}},M.functionDeclarationHandler=function(R){if(R.id){var K=this.functionExpressionHandler(R);Object.defineProperty(K,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(R.id.name,K)}return function(){return Rt}},M.getVariableName=function(R){if(R.type==="Identifier")return R.name;throw this.createInternalThrowError(sa.VariableTypeSyntaxError,R.type,R)},M.variableDeclarationHandler=function(R){for(var K=this,_e,je=[],pt=0;pt\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ti=re.console&&(re.console.warn||re.console.log);return Ti&&Ti.call(re.console,Rt,Tn),ie.apply(this,arguments)}}var it;typeof Object.assign!="function"?it=function(Ee){if(Ee===Z||Ee===null)throw new TypeError("Cannot convert undefined or null to object");for(var qe=Object(Ee),Rt=1;Rt-1}function tn(ie){return ie.trim().split(/\s+/g)}function A(ie,Ee,qe){if(ie.indexOf&&!qe)return ie.indexOf(Ee);for(var Rt=0;Rtja[Ee]}):Rt=Rt.sort()),Rt}function wt(ie,Ee){for(var qe,Rt,Or=Ee[0].toUpperCase()+Ee.slice(1),Tn=0;Tn1&&!qe.firstMultiple?qe.firstMultiple=wn(Ee):Or===1&&(qe.firstMultiple=!1);var Tn=qe.firstInput,Ti=qe.firstMultiple,ro=Ti?Ti.center:Tn.center,La=Ee.center=Fn(Rt);Ee.timeStamp=rr(),Ee.deltaTime=Ee.timeStamp-Tn.timeStamp,Ee.angle=Di(ro,La),Ee.distance=fn(ro,La),Ar(qe,Ee),Ee.offsetDirection=ti(Ee.deltaX,Ee.deltaY);var ja=gi(Ee.deltaTime,Ee.deltaX,Ee.deltaY);Ee.overallVelocityX=ja.x,Ee.overallVelocityY=ja.y,Ee.overallVelocity=gt(ja.x)>gt(ja.y)?ja.x:ja.y,Ee.scale=Ti?to(Ti.pointers,Rt):1,Ee.rotation=Ti?Ri(Ti.pointers,Rt):0,Ee.maxPointers=qe.prevInput?Ee.pointers.length>qe.prevInput.maxPointers?Ee.pointers.length:qe.prevInput.maxPointers:Ee.pointers.length,rn(qe,Ee);var Qo=ie.element;Er(Ee.srcEvent.target,Qo)&&(Qo=Ee.srcEvent.target),Ee.target=Qo}function Ar(ie,Ee){var qe=Ee.center,Rt=ie.offsetDelta||{},Or=ie.prevDelta||{},Tn=ie.prevInput||{};(Ee.eventType===aa||Tn.eventType===Oi)&&(Or=ie.prevDelta={x:Tn.deltaX||0,y:Tn.deltaY||0},Rt=ie.offsetDelta={x:qe.x,y:qe.y}),Ee.deltaX=Or.x+(qe.x-Rt.x),Ee.deltaY=Or.y+(qe.y-Rt.y)}function rn(ie,Ee){var qe=ie.lastInterval||Ee,Rt=Ee.timeStamp-qe.timeStamp,Or,Tn,Ti,ro;if(Ee.eventType!=Ki&&(Rt>mi||qe.velocity===Z)){var La=Ee.deltaX-qe.deltaX,ja=Ee.deltaY-qe.deltaY,Qo=gi(Rt,La,ja);Tn=Qo.x,Ti=Qo.y,Or=gt(Qo.x)>gt(Qo.y)?Qo.x:Qo.y,ro=ti(La,ja),ie.lastInterval=Ee}else Or=qe.velocity,Tn=qe.velocityX,Ti=qe.velocityY,ro=qe.direction;Ee.velocity=Or,Ee.velocityX=Tn,Ee.velocityY=Ti,Ee.direction=ro}function wn(ie){for(var Ee=[],qe=0;qe=gt(Ee)?ie<0?Mi:da:Ee<0?$n:wi}function fn(ie,Ee,qe){qe||(qe=me);var Rt=Ee[qe[0]]-ie[qe[0]],Or=Ee[qe[1]]-ie[qe[1]];return Math.sqrt(Rt*Rt+Or*Or)}function Di(ie,Ee,qe){qe||(qe=me);var Rt=Ee[qe[0]]-ie[qe[0]],Or=Ee[qe[1]]-ie[qe[1]];return Math.atan2(Or,Rt)*180/Math.PI}function Ri(ie,Ee){return Di(Ee[1],Ee[0],Dn)+Di(ie[1],ie[0],Dn)}function to(ie,Ee){return fn(Ee[0],Ee[1],Dn)/fn(ie[0],ie[1],Dn)}var Es={mousedown:aa,mousemove:Wi,mouseup:Oi},Ko="mousedown",Ba="mousemove mouseup";function xa(){this.evEl=Ko,this.evWin=Ba,this.pressed=!1,Za.apply(this,arguments)}$t(xa,Za,{handler:function(Ee){var qe=Es[Ee.type];qe&aa&&Ee.button===0&&(this.pressed=!0),qe&Wi&&Ee.which!==1&&(qe=Oi),!!this.pressed&&(qe&Oi&&(this.pressed=!1),this.callback(this.manager,qe,{pointers:[Ee],changedPointers:[Ee],pointerType:vi,srcEvent:Ee}))}});var H={pointerdown:aa,pointermove:Wi,pointerup:Oi,pointercancel:Ki,pointerout:Ki},Q={2:Wn,3:si,4:vi,5:qn},oe="pointerdown",ye="pointermove pointerup pointercancel";!Le&&re.MSPointerEvent&&!re.PointerEvent&&(oe="MSPointerDown",ye="MSPointerMove MSPointerUp MSPointerCancel");function Pe(){this.evEl=oe,this.evWin=ye,Za.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$t(Pe,Za,{handler:function(Ee){var qe=this.store,Rt=!1,Or=Ee.type.toLowerCase().replace("ms",""),Tn=H[Or],Ti=Q[Ee.pointerType]||Ee.pointerType,ro=Ti==Wn,La=A(qe,Ee.pointerId,"pointerId");Tn&aa&&(Ee.button===0||ro)?La<0&&(qe.push(Ee),La=qe.length-1):Tn&(Oi|Ki)&&(Rt=!0),!(La<0)&&(qe[La]=Ee,this.callback(this.manager,Tn,{pointers:qe,changedPointers:[Ee],pointerType:Ti,srcEvent:Ee}),Rt&&qe.splice(La,1))}});var He={touchstart:aa,touchmove:Wi,touchend:Oi,touchcancel:Ki},rt="touchstart",pe="touchstart touchmove touchend touchcancel";function ke(){this.evTarget=rt,this.evWin=pe,this.started=!1,Za.apply(this,arguments)}$t(ke,Za,{handler:function(Ee){var qe=He[Ee.type];if(qe===aa&&(this.started=!0),!!this.started){var Rt=vt.call(this,Ee,qe);qe&(Oi|Ki)&&Rt[0].length-Rt[1].length==0&&(this.started=!1),this.callback(this.manager,qe,{pointers:Rt[0],changedPointers:Rt[1],pointerType:Wn,srcEvent:Ee})}}});function vt(ie,Ee){var qe=Ce(ie.touches),Rt=Ce(ie.changedTouches);return Ee&(Oi|Ki)&&(qe=De(qe.concat(Rt),"identifier",!0)),[qe,Rt]}var pr={touchstart:aa,touchmove:Wi,touchend:Oi,touchcancel:Ki},Ft="touchstart touchmove touchend touchcancel";function zt(){this.evTarget=Ft,this.targetIds={},Za.apply(this,arguments)}$t(zt,Za,{handler:function(Ee){var qe=pr[Ee.type],Rt=vr.call(this,Ee,qe);!Rt||this.callback(this.manager,qe,{pointers:Rt[0],changedPointers:Rt[1],pointerType:Wn,srcEvent:Ee})}});function vr(ie,Ee){var qe=Ce(ie.touches),Rt=this.targetIds;if(Ee&(aa|Wi)&&qe.length===1)return Rt[qe[0].identifier]=!0,[qe,qe];var Or,Tn,Ti=Ce(ie.changedTouches),ro=[],La=this.target;if(Tn=qe.filter(function(ja){return Er(ja.target,La)}),Ee===aa)for(Or=0;Or-1&&Rt.splice(Tn,1)};setTimeout(Or,En)}}function Yr(ie){for(var Ee=ie.srcEvent.clientX,qe=ie.srcEvent.clientY,Rt=0;Rt-1&&this.requireFail.splice(Ee,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ie){return!!this.simultaneous[ie.id]},emit:function(ie){var Ee=this,qe=this.state;function Rt(Or){Ee.manager.emit(Or,ie)}qe=Ir&&Rt(Ee.options.event+Fu(qe))},tryEmit:function(ie){if(this.canEmit())return this.emit(ie);this.state=bo},canEmit:function(){for(var ie=0;ieEe.threshold&&Or&Ee.direction},attrTest:function(ie){return Ta.prototype.attrTest.call(this,ie)&&(this.state&wa||!(this.state&wa)&&this.directionTest(ie))},emit:function(ie){this.pX=ie.deltaX,this.pY=ie.deltaY;var Ee=oo(ie.direction);Ee&&(ie.additionalEvent=this.options.event+Ee),this._super.emit.call(this,ie)}});function Uo(){Ta.apply(this,arguments)}$t(Uo,Ta,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pi]},attrTest:function(ie){return this._super.attrTest.call(this,ie)&&(Math.abs(ie.scale-1)>this.options.threshold||this.state&wa)},emit:function(ie){if(ie.scale!==1){var Ee=ie.scale<1?"in":"out";ie.additionalEvent=this.options.event+Ee}this._super.emit.call(this,ie)}});function $o(){ne.apply(this,arguments),this._timer=null,this._input=null}$t($o,ne,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Xi]},process:function(ie){var Ee=this.options,qe=ie.pointers.length===Ee.pointers,Rt=ie.distanceEe.time;if(this._input=ie,!Rt||!qe||ie.eventType&(Oi|Ki)&&!Or)this.reset();else if(ie.eventType&aa)this.reset(),this._timer=xt(function(){this.state=wr,this.tryEmit()},Ee.time,this);else if(ie.eventType&Oi)return wr;return bo},reset:function(){clearTimeout(this._timer)},emit:function(ie){this.state===wr&&(ie&&ie.eventType&Oi?this.manager.emit(this.options.event+"up",ie):(this._input.timeStamp=rr(),this.manager.emit(this.options.event,this._input)))}});function xu(){Ta.apply(this,arguments)}$t(xu,Ta,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pi]},attrTest:function(ie){return this._super.attrTest.call(this,ie)&&(Math.abs(ie.rotation)>this.options.threshold||this.state&wa)}});function Eo(){Ta.apply(this,arguments)}$t(Eo,Ta,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ji|$i,pointers:1},getTouchAction:function(){return Qi.prototype.getTouchAction.call(this)},attrTest:function(ie){var Ee=this.options.direction,qe;return Ee&(ji|$i)?qe=ie.overallVelocity:Ee&ji?qe=ie.overallVelocityX:Ee&$i&&(qe=ie.overallVelocityY),this._super.attrTest.call(this,ie)&&Ee&ie.offsetDirection&&ie.distance>this.options.threshold&&ie.maxPointers==this.options.pointers&>(qe)>this.options.velocity&&ie.eventType&Oi},emit:function(ie){var Ee=oo(ie.offsetDirection);Ee&&this.manager.emit(this.options.event+Ee,ie),this.manager.emit(this.options.event,ie)}});function Zo(){ne.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}$t(Zo,ne,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[yi]},process:function(ie){var Ee=this.options,qe=ie.pointers.length===Ee.pointers,Rt=ie.distance=0&&(B|0)===B||le("invalid parameter type, ("+B+")"+Le(ge)+". must be a nonnegative integer")}function rr(B,ge,Be){ge.indexOf(B)<0&&le("invalid value"+Le(Be)+". must be one of: "+ge)}var xt=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function Yt(B){Object.keys(B).forEach(function(ge){xt.indexOf(ge)<0&&le('invalid regl constructor argument "'+ge+'". must be one of '+xt)})}function Et(B,ge){for(B=B+"";B.length0&&ge.push(new Zt("unknown",0,Be))}}),ge}function At(B,ge){ge.forEach(function(Be){var Dt=B[Be.file];if(Dt){var sr=Dt.index[Be.line];if(sr){sr.errors.push(Be),Dt.hasErrors=!0;return}}B.unknown.hasErrors=!0,B.unknown.lines[0].errors.push(Be)})}function Qe(B,ge,Be,Dt,sr){if(!B.getShaderParameter(ge,B.COMPILE_STATUS)){var kt=B.getShaderInfoLog(ge),er=Dt===B.FRAGMENT_SHADER?"fragment":"vertex";De(Be,"string",er+" shader source must be a string",sr);var hr=ft(Be,sr),mr=Je(kt);At(hr,mr),Object.keys(hr).forEach(function(xr){var Tr=hr[xr];if(!Tr.hasErrors)return;var Rr=[""],Gr=[""];function _r(Mr,ut){Rr.push(Mr),Gr.push(ut||"")}_r("file number "+xr+": "+Tr.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Tr.lines.forEach(function(Mr){if(Mr.errors.length>0){_r(Et(Mr.number,4)+"| ","background-color:yellow; font-weight:bold"),_r(Mr.line+ve,"color:red; background-color:yellow; font-weight:bold");var ut=0;Mr.errors.forEach(function(Gt){var br=Gt.message,Br=/^\s*'(.*)'\s*:\s*(.*)$/.exec(br);if(Br){var cr=Br[1];switch(br=Br[2],cr){case"assign":cr="=";break}ut=Math.max(Mr.line.indexOf(cr,ut),0)}else ut=0;_r(Et("| ",6)),_r(Et("^^^",ut+3)+ve,"font-weight:bold"),_r(Et("| ",6)),_r(br+ve,"font-weight:bold")}),_r(Et("| ",6)+ve)}else _r(Et(Mr.number,4)+"| "),_r(Mr.line+ve,"color:red")}),typeof document!="undefined"&&!window.chrome?(Gr[0]=Rr.join("%c"),console.log.apply(console,Gr)):console.log(Rr.join(""))}),fe.raise("Error compiling "+er+" shader, "+hr[0].name)}}function Qt(B,ge,Be,Dt,sr){if(!B.getProgramParameter(ge,B.LINK_STATUS)){var kt=B.getProgramInfoLog(ge),er=ft(Be,sr),hr=ft(Dt,sr),mr='Error linking program with vertex shader, "'+hr[0].name+'", and fragment shader "'+er[0].name+'"';typeof document!="undefined"?console.log("%c"+mr+ve+"%c"+kt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(mr+ve+kt),fe.raise(mr)}}function Er(B){B._commandRef=Y()}function Nr(B,ge,Be,Dt){Er(B);function sr(mr){return mr?Dt.id(mr):0}B._fragId=sr(B.static.frag),B._vertId=sr(B.static.vert);function kt(mr,xr){Object.keys(xr).forEach(function(Tr){mr[Dt.id(Tr)]=!0})}var er=B._uniformSet={};kt(er,ge.static),kt(er,ge.dynamic);var hr=B._attributeSet={};kt(hr,Be.static),kt(hr,Be.dynamic),B._hasCount="count"in B.static||"count"in B.dynamic||"elements"in B.static||"elements"in B.dynamic}function tn(B,ge){var Be=$t();le(B+" in command "+(ge||Y())+(Be==="unknown"?"":" called from "+Be))}function A(B,ge,Be){B||tn(ge,Be||Y())}function Ce(B,ge,Be,Dt){B in ge||tn("unknown parameter ("+B+")"+Le(Be)+". possible values: "+Object.keys(ge).join(),Dt||Y())}function De(B,ge,Be,Dt){et(B,ge)||tn("invalid parameter type"+Le(Be)+". expected "+ge+", got "+typeof B,Dt||Y())}function wt(B){B()}function mt(B,ge,Be){B.texture?rr(B.texture._texture.internalformat,ge,"unsupported texture format for attachment"):rr(B.renderbuffer._renderbuffer.format,Be,"unsupported renderbuffer format for attachment")}var Bt=33071,Kt=9728,Cr=9984,ei=9985,vn=9986,di=9987,Wn=5120,si=5121,vi=5122,qn=5123,mi=5124,aa=5125,Wi=5126,Oi=32819,Ki=32820,oa=33635,Mi=34042,da=36193,$n={};$n[Wn]=$n[si]=1,$n[vi]=$n[qn]=$n[da]=$n[oa]=$n[Oi]=$n[Ki]=2,$n[mi]=$n[aa]=$n[Wi]=$n[Mi]=4;function wi(B,ge){return B===Ki||B===Oi||B===oa?2:B===Mi?4:$n[B]*ge}function ji(B){return!(B&B-1)&&!!B}function $i(B,ge,Be){var Dt,sr=ge.width,kt=ge.height,er=ge.channels;fe(sr>0&&sr<=Be.maxTextureSize&&kt>0&&kt<=Be.maxTextureSize,"invalid texture shape"),(B.wrapS!==Bt||B.wrapT!==Bt)&&fe(ji(sr)&&ji(kt),"incompatible wrap mode for texture, both width and height must be power of 2"),ge.mipmask===1?sr!==1&&kt!==1&&fe(B.minFilter!==Cr&&B.minFilter!==vn&&B.minFilter!==ei&&B.minFilter!==di,"min filter requires mipmap"):(fe(ji(sr)&&ji(kt),"texture must be a square power of 2 to support mipmapping"),fe(ge.mipmask===(sr<<1)-1,"missing or incomplete mipmap data")),ge.type===Wi&&(Be.extensions.indexOf("oes_texture_float_linear")<0&&fe(B.minFilter===Kt&&B.magFilter===Kt,"filter not supported, must enable oes_texture_float_linear"),fe(!B.genMipmaps,"mipmap generation not supported with float textures"));var hr=ge.images;for(Dt=0;Dt<16;++Dt)if(hr[Dt]){var mr=sr>>Dt,xr=kt>>Dt;fe(ge.mipmask&1<0&&sr<=Dt.maxTextureSize&&kt>0&&kt<=Dt.maxTextureSize,"invalid texture shape"),fe(sr===kt,"cube map must be square"),fe(ge.wrapS===Bt&&ge.wrapT===Bt,"wrap mode not supported by cube map");for(var hr=0;hr>Tr,_r=kt>>Tr;fe(mr.mipmask&1<1&&ge===Be&&(ge==='"'||ge==="'"))return['"'+Ar(B.substr(1,B.length-2))+'"'];var Dt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(B);if(Dt)return rn(B.substr(0,Dt.index)).concat(rn(Dt[1])).concat(rn(B.substr(Dt.index+Dt[0].length)));var sr=B.split(".");if(sr.length===1)return['"'+Ar(B)+'"'];for(var kt=[],er=0;er0,"invalid pixel ratio"))):me.raise("invalid arguments to regl"),Be&&(Be.nodeName.toLowerCase()==="canvas"?sr=Be:Dt=Be),!kt){if(!sr){me(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var _r=Ko(Dt||document.body,Rr,xr);if(!_r)return null;sr=_r.canvas,Gr=_r.onDestroy}er.premultipliedAlpha===void 0&&(er.premultipliedAlpha=!0),kt=Ba(sr,er)}return kt?{gl:kt,canvas:sr,container:Dt,extensions:hr,optionalExtensions:mr,pixelRatio:xr,profile:Tr,onDone:Rr,onDestroy:Gr}:(Gr(),Rr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Pe(B,ge){var Be={};function Dt(hr){me.type(hr,"string","extension name must be string");var mr=hr.toLowerCase(),xr;try{xr=Be[mr]=sr(hr)}catch(Tr){}return!!xr}function sr(hr){return B.getExtension(hr)?B.getExtension(hr):B.getExtension(hr.toLowerCase())?B.getExtension(hr.toLowerCase()):null}for(var kt=0;kt65535)<<4,B>>>=ge,Be=(B>255)<<3,B>>>=Be,ge|=Be,Be=(B>15)<<2,B>>>=Be,ge|=Be,Be=(B>3)<<1,B>>>=Be,ge|=Be,ge|B>>1}function pn(){var B=He(8,function(){return[]});function ge(kt){var er=vr(kt),hr=B[En(er)>>2];return hr.length>0?hr.pop():new ArrayBuffer(er)}function Be(kt){B[En(kt.byteLength)>>2].push(kt)}function Dt(kt,er){var hr=null;switch(kt){case rt:hr=new Int8Array(ge(er),0,er);break;case pe:hr=new Uint8Array(ge(er),0,er);break;case ke:hr=new Int16Array(ge(2*er),0,er);break;case vt:hr=new Uint16Array(ge(2*er),0,er);break;case pr:hr=new Int32Array(ge(4*er),0,er);break;case Ft:hr=new Uint32Array(ge(4*er),0,er);break;case zt:hr=new Float32Array(ge(4*er),0,er);break;default:return null}return hr.length!==er?hr.subarray(0,er):hr}function sr(kt){Be(kt.buffer)}return{alloc:ge,free:Be,allocType:Dt,freeType:sr}}var Ot=pn();Ot.zero=pn();var nn=3408,Zr=3410,Yr=3411,_i=3412,an=3413,on=3414,Xi=3415,yi=33901,Pi=33902,bi=3379,ht=3386,Pt=34921,Aa=36347,qi=36348,Ii=35661,pi=35660,wa=34930,$s=36349,Ir=34076,wr=34024,Mt=7936,bo=7937,ne=7938,Fu=35724,oo=34047,Ra=36063,Ta=34852,Qi=3553,Uo=34067,$o=34069,xu=33984,Eo=6408,Zo=5126,sa=5121,so=36160,jo=36053,Ya=36064,Gs=16384,ll=function(B,ge){var Be=1;ge.ext_texture_filter_anisotropic&&(Be=B.getParameter(oo));var Dt=1,sr=1;ge.webgl_draw_buffers&&(Dt=B.getParameter(Ta),sr=B.getParameter(Ra));var kt=!!ge.oes_texture_float;if(kt){var er=B.createTexture();B.bindTexture(Qi,er),B.texImage2D(Qi,0,Eo,1,1,0,Eo,Zo,null);var hr=B.createFramebuffer();if(B.bindFramebuffer(so,hr),B.framebufferTexture2D(so,Ya,Qi,er,0),B.bindTexture(Qi,null),B.checkFramebufferStatus(so)!==jo)kt=!1;else{B.viewport(0,0,1,1),B.clearColor(1,0,0,1),B.clear(Gs);var mr=Ot.allocType(Zo,4);B.readPixels(0,0,1,1,Eo,Zo,mr),B.getError()?kt=!1:(B.deleteFramebuffer(hr),B.deleteTexture(er),kt=mr[0]===1),Ot.freeType(mr)}}var xr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Tr=!0;if(!xr){var Rr=B.createTexture(),Gr=Ot.allocType(sa,36);B.activeTexture(xu),B.bindTexture(Uo,Rr),B.texImage2D($o,0,Eo,3,3,0,Eo,sa,Gr),Ot.freeType(Gr),B.bindTexture(Uo,null),B.deleteTexture(Rr),Tr=!B.getError()}return{colorBits:[B.getParameter(Zr),B.getParameter(Yr),B.getParameter(_i),B.getParameter(an)],depthBits:B.getParameter(on),stencilBits:B.getParameter(Xi),subpixelBits:B.getParameter(nn),extensions:Object.keys(ge).filter(function(_r){return!!ge[_r]}),maxAnisotropic:Be,maxDrawbuffers:Dt,maxColorAttachments:sr,pointSizeDims:B.getParameter(yi),lineWidthDims:B.getParameter(Pi),maxViewportDims:B.getParameter(ht),maxCombinedTextureUnits:B.getParameter(Ii),maxCubeMapSize:B.getParameter(Ir),maxRenderbufferSize:B.getParameter(wr),maxTextureUnits:B.getParameter(wa),maxTextureSize:B.getParameter(bi),maxAttributes:B.getParameter(Pt),maxVertexUniforms:B.getParameter(Aa),maxVertexTextureUnits:B.getParameter(pi),maxVaryingVectors:B.getParameter(qi),maxFragmentUniforms:B.getParameter($s),glsl:B.getParameter(Fu),renderer:B.getParameter(bo),vendor:B.getParameter(Mt),version:B.getParameter(ne),readFloat:kt,npotTextureCube:Tr}};function os(B){return!!B&&typeof B=="object"&&Array.isArray(B.shape)&&Array.isArray(B.stride)&&typeof B.offset=="number"&&B.shape.length===B.stride.length&&(Array.isArray(B.data)||re(B.data))}var ie=function(B){return Object.keys(B).map(function(ge){return B[ge]})},Ee={shape:ro,flatten:Ti};function qe(B,ge,Be){for(var Dt=0;Dt0){var Un;if(Array.isArray(Gt[0])){zr=vs(Gt);for(var tr=1,ir=1;ir0)if(typeof tr[0]=="number"){var Sr=Ot.allocType(cr.dtype,tr.length);_(Sr,tr),zr(Sr,Sn),Ot.freeType(Sr)}else if(Array.isArray(tr[0])||re(tr[0])){Xr=vs(tr);var Hr=Il(tr,Xr,cr.dtype);zr(Hr,Sn),Ot.freeType(Hr)}else me.raise("invalid buffer data")}else if(os(tr)){Xr=tr.shape;var Jr=tr.stride,Ei=0,Gn=0,jr=0,en=0;Xr.length===1?(Ei=Xr[0],Gn=1,jr=Jr[0],en=0):Xr.length===2?(Ei=Xr[0],Gn=Xr[1],jr=Jr[0],en=Jr[1]):me.raise("invalid shape");var ni=Array.isArray(tr.data)?cr.dtype:cl(tr.data),ui=Ot.allocType(ni,Ei*Gn);M(ui,tr.data,Ei,Gn,jr,en,tr.offset),zr(ui,Sn),Ot.freeType(ui)}else me.raise("invalid data for buffer subdata");return or}return br||or(ut),or._reglType="buffer",or._buffer=cr,or.subdata=Un,Be.profile&&(or.stats=cr.stats),or.destroy=function(){Gr(cr)},or}function Mr(){ie(kt).forEach(function(ut){ut.buffer=B.createBuffer(),B.bindBuffer(ut.type,ut.buffer),B.bufferData(ut.type,ut.persistentData||ut.byteLength,ut.usage)})}return Be.profile&&(ge.getTotalBufferSize=function(){var ut=0;return Object.keys(kt).forEach(function(Gt){ut+=kt[Gt].stats.size}),ut}),{create:_r,createStream:mr,destroyStream:xr,clear:function(){ie(kt).forEach(Gr),hr.forEach(Gr)},getBuffer:function(ut){return ut&&ut._buffer instanceof er?ut._buffer:null},restore:Mr,_initBuffer:Rr}}var R=0,K=0,_e=1,je=1,pt=4,dt=4,ur={points:R,point:K,lines:_e,line:je,triangles:pt,triangle:dt,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},yr=0,In=1,Bn=4,Qn=5120,Vi=5121,Li=5122,ba=5123,Gi=5124,As=5125,Eu=34963,fl=35040,Rc=35044;function tl(B,ge,Be,Dt){var sr={},kt=0,er={uint8:Vi,uint16:ba};ge.oes_element_index_uint&&(er.uint32=As);function hr(Mr){this.id=kt++,sr[this.id]=this,this.buffer=Mr,this.primType=Bn,this.vertCount=0,this.type=0}hr.prototype.bind=function(){this.buffer.bind()};var mr=[];function xr(Mr){var ut=mr.pop();return ut||(ut=new hr(Be.create(null,Eu,!0,!1)._buffer)),Rr(ut,Mr,fl,-1,-1,0,0),ut}function Tr(Mr){mr.push(Mr)}function Rr(Mr,ut,Gt,br,Br,cr,or){Mr.buffer.bind();var zr;if(ut){var Un=or;!or&&(!re(ut)||os(ut)&&!re(ut.data))&&(Un=ge.oes_element_index_uint?As:ba),Be._initBuffer(Mr.buffer,ut,Gt,Un,3)}else B.bufferData(Eu,cr,Gt),Mr.buffer.dtype=zr||Vi,Mr.buffer.usage=Gt,Mr.buffer.dimension=3,Mr.buffer.byteLength=cr;if(zr=or,!or){switch(Mr.buffer.dtype){case Vi:case Qn:zr=Vi;break;case ba:case Li:zr=ba;break;case As:case Gi:zr=As;break;default:me.raise("unsupported type for element array")}Mr.buffer.dtype=zr}Mr.type=zr,me(zr!==As||!!ge.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var tr=Br;tr<0&&(tr=Mr.buffer.byteLength,zr===ba?tr>>=1:zr===As&&(tr>>=2)),Mr.vertCount=tr;var ir=br;if(br<0){ir=Bn;var Sn=Mr.buffer.dimension;Sn===1&&(ir=yr),Sn===2&&(ir=In),Sn===3&&(ir=Bn)}Mr.primType=ir}function Gr(Mr){Dt.elementsCount--,me(Mr.buffer!==null,"must not double destroy elements"),delete sr[Mr.id],Mr.buffer.destroy(),Mr.buffer=null}function _r(Mr,ut){var Gt=Be.create(null,Eu,!0),br=new hr(Gt._buffer);Dt.elementsCount++;function Br(cr){if(!cr)Gt(),br.primType=Bn,br.vertCount=0,br.type=Vi;else if(typeof cr=="number")Gt(cr),br.primType=Bn,br.vertCount=cr|0,br.type=Vi;else{var or=null,zr=Rc,Un=-1,tr=-1,ir=0,Sn=0;Array.isArray(cr)||re(cr)||os(cr)?or=cr:(me.type(cr,"object","invalid arguments for elements"),"data"in cr&&(or=cr.data,me(Array.isArray(or)||re(or)||os(or),"invalid data for element buffer")),"usage"in cr&&(me.parameter(cr.usage,ko,"invalid element buffer usage"),zr=ko[cr.usage]),"primitive"in cr&&(me.parameter(cr.primitive,ur,"invalid element buffer primitive"),Un=ur[cr.primitive]),"count"in cr&&(me(typeof cr.count=="number"&&cr.count>=0,"invalid vertex count for elements"),tr=cr.count|0),"type"in cr&&(me.parameter(cr.type,er,"invalid buffer type"),Sn=er[cr.type]),"length"in cr?ir=cr.length|0:(ir=tr,Sn===ba||Sn===Li?ir*=2:(Sn===As||Sn===Gi)&&(ir*=4))),Rr(br,or,zr,Un,tr,ir,Sn)}return Br}return Br(Mr),Br._reglType="elements",Br._elements=br,Br.subdata=function(cr,or){return Gt.subdata(cr,or),Br},Br.destroy=function(){Gr(br)},Br}return{create:_r,createStream:xr,destroyStream:Tr,getElements:function(Mr){return typeof Mr=="function"&&Mr._elements instanceof hr?Mr._elements:null},clear:function(){ie(sr).forEach(Gr)}}}var Lc=new Float32Array(1),Bu=new Uint32Array(Lc.buffer),Nu=5123;function zu(B){for(var ge=Ot.allocType(Nu,B.length),Be=0;Be>>31<<15,kt=(Dt<<1>>>24)-127,er=Dt>>13&(1<<10)-1;if(kt<-24)ge[Be]=sr;else if(kt<-14){var hr=-14-kt;ge[Be]=sr+(er+(1<<10)>>hr)}else kt>15?ge[Be]=sr+31744:ge[Be]=sr+(kt+15<<10)+er}return ge}function uo(B){return Array.isArray(B)||re(B)}var Bf=function(B){return!(B&B-1)&&!!B},Nf=34467,ws=3553,sf=34067,su=34069,Hs=6408,uf=6406,Ol=6407,ya=6409,nc=6410,Js=32854,hl=32855,zf=36194,ep=32819,lf=32820,ic=33635,ac=34042,oc=6402,sc=34041,uc=35904,Rl=35906,Ll=36193,pl=33776,eu=33777,kc=33778,cf=33779,Uf=35986,dl=35987,lc=34798,rl=35840,ff=35841,Dc=35842,bh=35843,kl=36196,Dl=5121,Zf=5123,jf=5125,vl=5126,Vf=10242,Eh=10243,Fc=10497,cc=33071,tp=33648,fc=10240,Va=10241,hc=9728,ts=9729,Uu=9984,kn=9985,Ma=9986,Ws=9987,Bc=33170,Zu=4352,Nc=4353,rp=4354,lo=34046,ju=3317,Su=37440,tu=37441,Do=37443,Fl=37444,ml=33984,ho=[Uu,Ma,kn,Ws],yn=[0,ya,nc,Ol,Hs],qa={};qa[ya]=qa[uf]=qa[oc]=1,qa[sc]=qa[nc]=2,qa[Ol]=qa[uc]=3,qa[Hs]=qa[Rl]=4;function nl(B){return"[object "+B+"]"}var pc=nl("HTMLCanvasElement"),uu=nl("OffscreenCanvas"),na=nl("CanvasRenderingContext2D"),hf=nl("ImageBitmap"),Kr=nl("HTMLImageElement"),zc=nl("HTMLVideoElement"),pf=Object.keys(La).concat([pc,uu,na,hf,Kr,zc]),gl=[];gl[Dl]=1,gl[vl]=4,gl[Ll]=2,gl[Zf]=2,gl[jf]=4;var Ea=[];Ea[Js]=2,Ea[hl]=2,Ea[zf]=2,Ea[sc]=4,Ea[pl]=.5,Ea[eu]=.5,Ea[kc]=1,Ea[cf]=1,Ea[Uf]=.5,Ea[dl]=1,Ea[lc]=1,Ea[rl]=.5,Ea[ff]=.25,Ea[Dc]=.5,Ea[bh]=.25,Ea[kl]=.5;function ms(B){return Array.isArray(B)&&(B.length===0||typeof B[0]=="number")}function Uc(B){if(!Array.isArray(B))return!1;var ge=B.length;return!(ge===0||!uo(B[0]))}function Cu(B){return Object.prototype.toString.call(B)}function ks(B){return Cu(B)===pc}function Vu(B){return Cu(B)===uu}function Zc(B){return Cu(B)===na}function Bl(B){return Cu(B)===hf}function Gf(B){return Cu(B)===Kr}function Hf(B){return Cu(B)===zc}function Ds(B){var ge=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return!!(ge&&B&&B.getContext)}function Fs(B){var ge=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return!!(ge&&B&&"src"in B&&"crossOrigin"in B)}function Fi(B){if(!B)return!1;if(Ds(B)||Fs(B))return!0;var ge=Cu(B);return pf.indexOf(ge)>=0?!0:ms(B)||Uc(B)||os(B)}function Au(B){return La[Object.prototype.toString.call(B)]|0}function wu(B,ge){var Be=ge.length;switch(B.type){case Dl:case Zf:case jf:case vl:var Dt=Ot.allocType(B.type,Be);Dt.set(ge),B.data=Dt;break;case Ll:B.data=zu(ge);break;default:me.raise("unsupported texture type, must specify a typed array")}}function rs(B,ge){return Ot.allocType(B.type===Ll?vl:B.type,ge)}function Gu(B,ge){B.type===Ll?(B.data=zu(ge),Ot.freeType(ge)):B.data=ge}function Tu(B,ge,Be,Dt,sr,kt){for(var er=B.width,hr=B.height,mr=B.channels,xr=er*hr*mr,Tr=rs(B,xr),Rr=0,Gr=0;Gr=1;)hr+=er*mr*mr,mr/=2;return hr}else return er*Be*Dt}function gs(B,ge,Be,Dt,sr,kt,er){var hr={"don't care":Zu,"dont care":Zu,nice:rp,fast:Nc},mr={repeat:Fc,clamp:cc,mirror:tp},xr={nearest:hc,linear:ts},Tr=m({mipmap:Ws,"nearest mipmap nearest":Uu,"linear mipmap nearest":kn,"nearest mipmap linear":Ma,"linear mipmap linear":Ws},xr),Rr={none:0,browser:Fl},Gr={uint8:Dl,rgba4:ep,rgb565:ic,"rgb5 a1":lf},_r={alpha:uf,luminance:ya,"luminance alpha":nc,rgb:Ol,rgba:Hs,rgba4:Js,"rgb5 a1":hl,rgb565:zf},Mr={};ge.ext_srgb&&(_r.srgb=uc,_r.srgba=Rl),ge.oes_texture_float&&(Gr.float32=Gr.float=vl),ge.oes_texture_half_float&&(Gr.float16=Gr["half float"]=Ll),ge.webgl_depth_texture&&(m(_r,{depth:oc,"depth stencil":sc}),m(Gr,{uint16:Zf,uint32:jf,"depth stencil":ac})),ge.webgl_compressed_texture_s3tc&&m(Mr,{"rgb s3tc dxt1":pl,"rgba s3tc dxt1":eu,"rgba s3tc dxt3":kc,"rgba s3tc dxt5":cf}),ge.webgl_compressed_texture_atc&&m(Mr,{"rgb atc":Uf,"rgba atc explicit alpha":dl,"rgba atc interpolated alpha":lc}),ge.webgl_compressed_texture_pvrtc&&m(Mr,{"rgb pvrtc 4bppv1":rl,"rgb pvrtc 2bppv1":ff,"rgba pvrtc 4bppv1":Dc,"rgba pvrtc 2bppv1":bh}),ge.webgl_compressed_texture_etc1&&(Mr["rgb etc1"]=kl);var ut=Array.prototype.slice.call(B.getParameter(Nf)||new Uint32Array(0));Object.keys(Mr).forEach(function(Te){var Ut=Mr[Te];ut.indexOf(Ut)>=0&&(_r[Te]=Ut)});var Gt=Object.keys(_r);Be.textureFormats=Gt;var br=[];Object.keys(_r).forEach(function(Te){var Ut=_r[Te];br[Ut]=Te});var Br=[];Object.keys(Gr).forEach(function(Te){var Ut=Gr[Te];Br[Ut]=Te});var cr=[];Object.keys(xr).forEach(function(Te){var Ut=xr[Te];cr[Ut]=Te});var or=[];Object.keys(Tr).forEach(function(Te){var Ut=Tr[Te];or[Ut]=Te});var zr=[];Object.keys(mr).forEach(function(Te){var Ut=mr[Te];zr[Ut]=Te});var Un=Gt.reduce(function(Te,Ut){var St=_r[Ut];return St===ya||St===uf||St===ya||St===nc||St===oc||St===sc||ge.ext_srgb&&(St===uc||St===Rl)?Te[St]=St:St===hl||Ut.indexOf("rgba")>=0?Te[St]=Hs:Te[St]=Ol,Te},{});function tr(){this.internalformat=Hs,this.format=Hs,this.type=Dl,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Fl,this.width=0,this.height=0,this.channels=0}function ir(Te,Ut){Te.internalformat=Ut.internalformat,Te.format=Ut.format,Te.type=Ut.type,Te.compressed=Ut.compressed,Te.premultiplyAlpha=Ut.premultiplyAlpha,Te.flipY=Ut.flipY,Te.unpackAlignment=Ut.unpackAlignment,Te.colorSpace=Ut.colorSpace,Te.width=Ut.width,Te.height=Ut.height,Te.channels=Ut.channels}function Sn(Te,Ut){if(!(typeof Ut!="object"||!Ut)){if("premultiplyAlpha"in Ut&&(me.type(Ut.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),Te.premultiplyAlpha=Ut.premultiplyAlpha),"flipY"in Ut&&(me.type(Ut.flipY,"boolean","invalid texture flip"),Te.flipY=Ut.flipY),"alignment"in Ut&&(me.oneOf(Ut.alignment,[1,2,4,8],"invalid texture unpack alignment"),Te.unpackAlignment=Ut.alignment),"colorSpace"in Ut&&(me.parameter(Ut.colorSpace,Rr,"invalid colorSpace"),Te.colorSpace=Rr[Ut.colorSpace]),"type"in Ut){var St=Ut.type;me(ge.oes_texture_float||!(St==="float"||St==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),me(ge.oes_texture_half_float||!(St==="half float"||St==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),me(ge.webgl_depth_texture||!(St==="uint16"||St==="uint32"||St==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),me.parameter(St,Gr,"invalid texture type"),Te.type=Gr[St]}var mn=Te.width,Hi=Te.height,Se=Te.channels,ue=!1;"shape"in Ut?(me(Array.isArray(Ut.shape)&&Ut.shape.length>=2,"shape must be an array"),mn=Ut.shape[0],Hi=Ut.shape[1],Ut.shape.length===3&&(Se=Ut.shape[2],me(Se>0&&Se<=4,"invalid number of channels"),ue=!0),me(mn>=0&&mn<=Be.maxTextureSize,"invalid width"),me(Hi>=0&&Hi<=Be.maxTextureSize,"invalid height")):("radius"in Ut&&(mn=Hi=Ut.radius,me(mn>=0&&mn<=Be.maxTextureSize,"invalid radius")),"width"in Ut&&(mn=Ut.width,me(mn>=0&&mn<=Be.maxTextureSize,"invalid width")),"height"in Ut&&(Hi=Ut.height,me(Hi>=0&&Hi<=Be.maxTextureSize,"invalid height")),"channels"in Ut&&(Se=Ut.channels,me(Se>0&&Se<=4,"invalid number of channels"),ue=!0)),Te.width=mn|0,Te.height=Hi|0,Te.channels=Se|0;var Ge=!1;if("format"in Ut){var lt=Ut.format;me(ge.webgl_depth_texture||!(lt==="depth"||lt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),me.parameter(lt,_r,"invalid texture format");var Lt=Te.internalformat=_r[lt];Te.format=Un[Lt],lt in Gr&&("type"in Ut||(Te.type=Gr[lt])),lt in Mr&&(Te.compressed=!0),Ge=!0}!ue&&Ge?Te.channels=qa[Te.format]:ue&&!Ge?Te.channels!==yn[Te.format]&&(Te.format=Te.internalformat=yn[Te.channels]):Ge&&ue&&me(Te.channels===qa[Te.format],"number of channels inconsistent with specified format")}}function Xr(Te){B.pixelStorei(Su,Te.flipY),B.pixelStorei(tu,Te.premultiplyAlpha),B.pixelStorei(Do,Te.colorSpace),B.pixelStorei(ju,Te.unpackAlignment)}function Sr(){tr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Hr(Te,Ut){var St=null;if(Fi(Ut)?St=Ut:Ut&&(me.type(Ut,"object","invalid pixel data type"),Sn(Te,Ut),"x"in Ut&&(Te.xOffset=Ut.x|0),"y"in Ut&&(Te.yOffset=Ut.y|0),Fi(Ut.data)&&(St=Ut.data)),me(!Te.compressed||St instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Ut.copy){me(!St,"can not specify copy and data field for the same texture");var mn=sr.viewportWidth,Hi=sr.viewportHeight;Te.width=Te.width||mn-Te.xOffset,Te.height=Te.height||Hi-Te.yOffset,Te.needsCopy=!0,me(Te.xOffset>=0&&Te.xOffset=0&&Te.yOffset0&&Te.width<=mn&&Te.height>0&&Te.height<=Hi,"copy texture read out of bounds")}else if(!St)Te.width=Te.width||1,Te.height=Te.height||1,Te.channels=Te.channels||4;else if(re(St))Te.channels=Te.channels||4,Te.data=St,!("type"in Ut)&&Te.type===Dl&&(Te.type=Au(St));else if(ms(St))Te.channels=Te.channels||4,wu(Te,St),Te.alignment=1,Te.needsFree=!0;else if(os(St)){var Se=St.data;!Array.isArray(Se)&&Te.type===Dl&&(Te.type=Au(Se));var ue=St.shape,Ge=St.stride,lt,Lt,Ke,Fe,nt,xe;ue.length===3?(Ke=ue[2],xe=Ge[2]):(me(ue.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ke=1,xe=1),lt=ue[0],Lt=ue[1],Fe=Ge[0],nt=Ge[1],Te.alignment=1,Te.width=lt,Te.height=Lt,Te.channels=Ke,Te.format=Te.internalformat=yn[Ke],Te.needsFree=!0,Tu(Te,Se,Fe,nt,xe,St.offset)}else if(Ds(St)||ks(St)||Vu(St)||Zc(St))Ds(St)||ks(St)||Vu(St)?Te.element=St:Te.element=St.canvas,Te.width=Te.element.width,Te.height=Te.element.height,Te.channels=4;else if(Bl(St))Te.element=St,Te.width=St.width,Te.height=St.height,Te.channels=4;else if(Gf(St))Te.element=St,Te.width=St.naturalWidth,Te.height=St.naturalHeight,Te.channels=4;else if(Fs(St))Te.element=St,Te.width=St.width,Te.height=St.height,Te.channels=4;else if(Hf(St))Te.element=St,Te.width=St.videoWidth,Te.height=St.videoHeight,Te.channels=4;else if(Uc(St)){var Ze=Te.width||St[0].length,Ae=Te.height||St.length,ct=Te.channels;uo(St[0][0])?ct=ct||St[0][0].length:ct=ct||1;for(var Ct=Ee.shape(St),fr=1,Ur=0;Ur=0,"oes_texture_float extension not enabled"):Te.type===Ll&&me(Be.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Jr(Te,Ut,St){var mn=Te.element,Hi=Te.data,Se=Te.internalformat,ue=Te.format,Ge=Te.type,lt=Te.width,Lt=Te.height;Xr(Te),mn?B.texImage2D(Ut,St,ue,ue,Ge,mn):Te.compressed?B.compressedTexImage2D(Ut,St,Se,lt,Lt,0,Hi):Te.needsCopy?(Dt(),B.copyTexImage2D(Ut,St,ue,Te.xOffset,Te.yOffset,lt,Lt,0)):B.texImage2D(Ut,St,ue,lt,Lt,0,ue,Ge,Hi||null)}function Ei(Te,Ut,St,mn,Hi){var Se=Te.element,ue=Te.data,Ge=Te.internalformat,lt=Te.format,Lt=Te.type,Ke=Te.width,Fe=Te.height;Xr(Te),Se?B.texSubImage2D(Ut,Hi,St,mn,lt,Lt,Se):Te.compressed?B.compressedTexSubImage2D(Ut,Hi,St,mn,Ge,Ke,Fe,ue):Te.needsCopy?(Dt(),B.copyTexSubImage2D(Ut,Hi,St,mn,Te.xOffset,Te.yOffset,Ke,Fe)):B.texSubImage2D(Ut,Hi,St,mn,Ke,Fe,lt,Lt,ue)}var Gn=[];function jr(){return Gn.pop()||new Sr}function en(Te){Te.needsFree&&Ot.freeType(Te.data),Sr.call(Te),Gn.push(Te)}function ni(){tr.call(this),this.genMipmaps=!1,this.mipmapHint=Zu,this.mipmask=0,this.images=Array(16)}function ui(Te,Ut,St){var mn=Te.images[0]=jr();Te.mipmask=1,mn.width=Te.width=Ut,mn.height=Te.height=St,mn.channels=Te.channels=4}function Ni(Te,Ut){var St=null;if(Fi(Ut))St=Te.images[0]=jr(),ir(St,Te),Hr(St,Ut),Te.mipmask=1;else if(Sn(Te,Ut),Array.isArray(Ut.mipmap))for(var mn=Ut.mipmap,Hi=0;Hi>=Hi,St.height>>=Hi,Hr(St,mn[Hi]),Te.mipmask|=1<=0&&!("faces"in Ut)&&(Te.genMipmaps=!0)}if("mag"in Ut){var mn=Ut.mag;me.parameter(mn,xr),Te.magFilter=xr[mn]}var Hi=Te.wrapS,Se=Te.wrapT;if("wrap"in Ut){var ue=Ut.wrap;typeof ue=="string"?(me.parameter(ue,mr),Hi=Se=mr[ue]):Array.isArray(ue)&&(me.parameter(ue[0],mr),me.parameter(ue[1],mr),Hi=mr[ue[0]],Se=mr[ue[1]])}else{if("wrapS"in Ut){var Ge=Ut.wrapS;me.parameter(Ge,mr),Hi=mr[Ge]}if("wrapT"in Ut){var lt=Ut.wrapT;me.parameter(lt,mr),Se=mr[lt]}}if(Te.wrapS=Hi,Te.wrapT=Se,"anisotropic"in Ut){var Lt=Ut.anisotropic;me(typeof Lt=="number"&&Lt>=1&&Lt<=Be.maxAnisotropic,"aniso samples must be between 1 and "),Te.anisotropic=Ut.anisotropic}if("mipmap"in Ut){var Ke=!1;switch(typeof Ut.mipmap){case"string":me.parameter(Ut.mipmap,hr,"invalid mipmap hint"),Te.mipmapHint=hr[Ut.mipmap],Te.genMipmaps=!0,Ke=!0;break;case"boolean":Ke=Te.genMipmaps=Ut.mipmap;break;case"object":me(Array.isArray(Ut.mipmap),"invalid mipmap type"),Te.genMipmaps=!1,Ke=!0;break;default:me.raise("invalid mipmap type")}Ke&&!("min"in Ut)&&(Te.minFilter=Uu)}}function wo(Te,Ut){B.texParameteri(Ut,Va,Te.minFilter),B.texParameteri(Ut,fc,Te.magFilter),B.texParameteri(Ut,Vf,Te.wrapS),B.texParameteri(Ut,Eh,Te.wrapT),ge.ext_texture_filter_anisotropic&&B.texParameteri(Ut,lo,Te.anisotropic),Te.genMipmaps&&(B.hint(Bc,Te.mipmapHint),B.generateMipmap(Ut))}var Wo=0,Xo={},bs=Be.maxTextureUnits,io=Array(bs).map(function(){return null});function Si(Te){tr.call(this),this.mipmask=0,this.internalformat=Hs,this.id=Wo++,this.refCount=1,this.target=Te,this.texture=B.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ha,er.profile&&(this.stats={size:0})}function Yo(Te){B.activeTexture(ml),B.bindTexture(Te.target,Te.texture)}function ra(){var Te=io[0];Te?B.bindTexture(Te.target,Te.texture):B.bindTexture(ws,null)}function us(Te){var Ut=Te.texture;me(Ut,"must not double destroy texture");var St=Te.unit,mn=Te.target;St>=0&&(B.activeTexture(ml+St),B.bindTexture(mn,null),io[St]=null),B.deleteTexture(Ut),Te.texture=null,Te.params=null,Te.pixels=null,Te.refCount=0,delete Xo[Te.id],kt.textureCount--}m(Si.prototype,{bind:function(){var Te=this;Te.bindCount+=1;var Ut=Te.unit;if(Ut<0){for(var St=0;St0)continue;mn.unit=-1}io[St]=Te,Ut=St;break}Ut>=bs&&me.raise("insufficient number of texture units"),er.profile&&kt.maxTextureUnits>nt)-Ke,xe.height=xe.height||(St.height>>nt)-Fe,me(St.type===xe.type&&St.format===xe.format&&St.internalformat===xe.internalformat,"incompatible format for texture.subimage"),me(Ke>=0&&Fe>=0&&Ke+xe.width<=St.width&&Fe+xe.height<=St.height,"texture.subimage write out of bounds"),me(St.mipmask&1<>Ke;++Ke){var Fe=lt>>Ke,nt=Lt>>Ke;if(!Fe||!nt)break;B.texImage2D(ws,Ke,St.format,Fe,nt,0,St.format,St.type,null)}return ra(),er.profile&&(St.stats.size=Xs(St.internalformat,St.type,lt,Lt,!1,!1)),mn}return mn(Te,Ut),mn.subimage=Hi,mn.resize=Se,mn._reglType="texture2d",mn._texture=St,er.profile&&(mn.stats=St.stats),mn.destroy=function(){St.decRef()},mn}function zi(Te,Ut,St,mn,Hi,Se){var ue=new Si(sf);Xo[ue.id]=ue,kt.cubeCount++;var Ge=new Array(6);function lt(Fe,nt,xe,Ze,Ae,ct){var Ct,fr=ue.texInfo;for(Ha.call(fr),Ct=0;Ct<6;++Ct)Ge[Ct]=Zi();if(typeof Fe=="number"||!Fe){var Ur=Fe|0||1;for(Ct=0;Ct<6;++Ct)ui(Ge[Ct],Ur,Ur)}else if(typeof Fe=="object")if(nt)Ni(Ge[0],Fe),Ni(Ge[1],nt),Ni(Ge[2],xe),Ni(Ge[3],Ze),Ni(Ge[4],Ae),Ni(Ge[5],ct);else if(as(fr,Fe),Sn(ue,Fe),"faces"in Fe){var Vr=Fe.faces;for(me(Array.isArray(Vr)&&Vr.length===6,"cube faces must be a length 6 array"),Ct=0;Ct<6;++Ct)me(typeof Vr[Ct]=="object"&&!!Vr[Ct],"invalid input for cube map face"),ir(Ge[Ct],ue),Ni(Ge[Ct],Vr[Ct])}else for(Ct=0;Ct<6;++Ct)Ni(Ge[Ct],Fe);else me.raise("invalid arguments to cube map");for(ir(ue,Ge[0]),me.optional(function(){Be.npotTextureCube||me(Bf(ue.width)&&Bf(ue.height),"your browser does not support non power or two texture dimensions")}),fr.genMipmaps?ue.mipmask=(Ge[0].width<<1)-1:ue.mipmask=Ge[0].mipmask,me.textureCube(ue,fr,Ge,Be),ue.internalformat=Ge[0].internalformat,lt.width=Ge[0].width,lt.height=Ge[0].height,Yo(ue),Ct=0;Ct<6;++Ct)Ga(Ge[Ct],su+Ct);for(wo(fr,sf),ra(),er.profile&&(ue.stats.size=Xs(ue.internalformat,ue.type,lt.width,lt.height,fr.genMipmaps,!0)),lt.format=br[ue.internalformat],lt.type=Br[ue.type],lt.mag=cr[fr.magFilter],lt.min=or[fr.minFilter],lt.wrapS=zr[fr.wrapS],lt.wrapT=zr[fr.wrapT],Ct=0;Ct<6;++Ct)ss(Ge[Ct]);return lt}function Lt(Fe,nt,xe,Ze,Ae){me(!!nt,"must specify image data"),me(typeof Fe=="number"&&Fe===(Fe|0)&&Fe>=0&&Fe<6,"invalid face");var ct=xe|0,Ct=Ze|0,fr=Ae|0,Ur=jr();return ir(Ur,ue),Ur.width=0,Ur.height=0,Hr(Ur,nt),Ur.width=Ur.width||(ue.width>>fr)-ct,Ur.height=Ur.height||(ue.height>>fr)-Ct,me(ue.type===Ur.type&&ue.format===Ur.format&&ue.internalformat===Ur.internalformat,"incompatible format for texture.subimage"),me(ct>=0&&Ct>=0&&ct+Ur.width<=ue.width&&Ct+Ur.height<=ue.height,"texture.subimage write out of bounds"),me(ue.mipmask&1<>Ze;++Ze)B.texImage2D(su+xe,Ze,ue.format,nt>>Ze,nt>>Ze,0,ue.format,ue.type,null);return ra(),er.profile&&(ue.stats.size=Xs(ue.internalformat,ue.type,lt.width,lt.height,!1,!0)),lt}}return lt(Te,Ut,St,mn,Hi,Se),lt.subimage=Lt,lt.resize=Ke,lt._reglType="textureCube",lt._texture=ue,er.profile&&(lt.stats=ue.stats),lt.destroy=function(){ue.decRef()},lt}function ua(){for(var Te=0;Te>mn,St.height>>mn,0,St.internalformat,St.type,null);else for(var Hi=0;Hi<6;++Hi)B.texImage2D(su+Hi,mn,St.internalformat,St.width>>mn,St.height>>mn,0,St.internalformat,St.type,null);wo(St.texInfo,St.target)})}function wl(){for(var Te=0;Te=2,"invalid renderbuffer shape"),or=ir[0]|0,zr=ir[1]|0}else"radius"in tr&&(or=zr=tr.radius|0),"width"in tr&&(or=tr.width|0),"height"in tr&&(zr=tr.height|0);"format"in tr&&(me.parameter(tr.format,kt,"invalid renderbuffer format"),Un=kt[tr.format])}else typeof Br=="number"?(or=Br|0,typeof cr=="number"?zr=cr|0:zr=or):Br?me.raise("invalid arguments to renderbuffer constructor"):or=zr=1;if(me(or>0&&zr>0&&or<=Be.maxRenderbufferSize&&zr<=Be.maxRenderbufferSize,"invalid renderbuffer size"),!(or===ut.width&&zr===ut.height&&Un===ut.format))return Gt.width=ut.width=or,Gt.height=ut.height=zr,ut.format=Un,B.bindRenderbuffer(Mu,ut.renderbuffer),B.renderbufferStorage(Mu,Un,or,zr),me(B.getError()===0,"invalid render buffer format"),sr.profile&&(ut.stats.size=dc(ut.format,ut.width,ut.height)),Gt.format=er[ut.format],Gt}function br(Br,cr){var or=Br|0,zr=cr|0||or;return or===ut.width&&zr===ut.height||(me(or>0&&zr>0&&or<=Be.maxRenderbufferSize&&zr<=Be.maxRenderbufferSize,"invalid renderbuffer size"),Gt.width=ut.width=or,Gt.height=ut.height=zr,B.bindRenderbuffer(Mu,ut.renderbuffer),B.renderbufferStorage(Mu,ut.format,or,zr),me(B.getError()===0,"invalid render buffer format"),sr.profile&&(ut.stats.size=dc(ut.format,ut.width,ut.height))),Gt}return Gt(_r,Mr),Gt.resize=br,Gt._reglType="renderbuffer",Gt._renderbuffer=ut,sr.profile&&(Gt.stats=ut.stats),Gt.destroy=function(){ut.decRef()},Gt}sr.profile&&(Dt.getTotalRenderbufferSize=function(){var _r=0;return Object.keys(mr).forEach(function(Mr){_r+=mr[Mr].stats.size}),_r});function Gr(){ie(mr).forEach(function(_r){_r.renderbuffer=B.createRenderbuffer(),B.bindRenderbuffer(Mu,_r.renderbuffer),B.renderbufferStorage(Mu,_r.format,_r.width,_r.height)}),B.bindRenderbuffer(Mu,null)}return{create:Rr,clear:function(){ie(mr).forEach(Tr)},restore:Gr}},Pu=36160,cu=36161,Fo=3553,il=34069,fu=36064,mf=36096,Nl=36128,jc=33306,gf=36053,Iu=36054,vc=36055,Vc=36057,al=36061,Ji=36193,ol=5121,hu=5126,Ts=6407,zl=6408,_l=6402,yf=[Ts,zl],Pa=[];Pa[zl]=4,Pa[Ts]=3;var l=[];l[ol]=1,l[hu]=4,l[Ji]=2;var h=32854,c=32855,d=36194,E=33189,w=36168,P=34041,L=35907,N=34836,q=34842,ce=34843,he=[h,c,d,L,q,ce,N],de={};de[gf]="complete",de[Iu]="incomplete attachment",de[Vc]="incomplete dimensions",de[vc]="incomplete, missing attachment",de[al]="unsupported";function Re(B,ge,Be,Dt,sr,kt){var er={cur:null,next:null,dirty:!1,setFBO:null},hr=["rgba"],mr=["rgba4","rgb565","rgb5 a1"];ge.ext_srgb&&mr.push("srgba"),ge.ext_color_buffer_half_float&&mr.push("rgba16f","rgb16f"),ge.webgl_color_buffer_float&&mr.push("rgba32f");var xr=["uint8"];ge.oes_texture_half_float&&xr.push("half float","float16"),ge.oes_texture_float&&xr.push("float","float32");function Tr(Sr,Hr,Jr){this.target=Sr,this.texture=Hr,this.renderbuffer=Jr;var Ei=0,Gn=0;Hr?(Ei=Hr.width,Gn=Hr.height):Jr&&(Ei=Jr.width,Gn=Jr.height),this.width=Ei,this.height=Gn}function Rr(Sr){Sr&&(Sr.texture&&Sr.texture._texture.decRef(),Sr.renderbuffer&&Sr.renderbuffer._renderbuffer.decRef())}function Gr(Sr,Hr,Jr){if(!!Sr)if(Sr.texture){var Ei=Sr.texture._texture,Gn=Math.max(1,Ei.width),jr=Math.max(1,Ei.height);me(Gn===Hr&&jr===Jr,"inconsistent width/height for supplied texture"),Ei.refCount+=1}else{var en=Sr.renderbuffer._renderbuffer;me(en.width===Hr&&en.height===Jr,"inconsistent width/height for renderbuffer"),en.refCount+=1}}function _r(Sr,Hr){Hr&&(Hr.texture?B.framebufferTexture2D(Pu,Sr,Hr.target,Hr.texture._texture.texture,0):B.framebufferRenderbuffer(Pu,Sr,cu,Hr.renderbuffer._renderbuffer.renderbuffer))}function Mr(Sr){var Hr=Fo,Jr=null,Ei=null,Gn=Sr;typeof Sr=="object"&&(Gn=Sr.data,"target"in Sr&&(Hr=Sr.target|0)),me.type(Gn,"function","invalid attachment data");var jr=Gn._reglType;return jr==="texture2d"?(Jr=Gn,me(Hr===Fo)):jr==="textureCube"?(Jr=Gn,me(Hr>=il&&Hr=2,"invalid shape for framebuffer"),ui=Yo[0],Ni=Yo[1]}else"radius"in Si&&(ui=Ni=Si.radius),"width"in Si&&(ui=Si.width),"height"in Si&&(Ni=Si.height);("color"in Si||"colors"in Si)&&(Zi=Si.color||Si.colors,Array.isArray(Zi)&&me(Zi.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),Zi||("colorCount"in Si&&(wo=Si.colorCount|0,me(wo>0,"invalid color buffer count")),"colorTexture"in Si&&(ss=!!Si.colorTexture,Ha="rgba4"),"colorType"in Si&&(as=Si.colorType,ss?(me(ge.oes_texture_float||!(as==="float"||as==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),me(ge.oes_texture_half_float||!(as==="half float"||as==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):as==="half float"||as==="float16"?(me(ge.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Ha="rgba16f"):(as==="float"||as==="float32")&&(me(ge.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Ha="rgba32f"),me.oneOf(as,xr,"invalid color type")),"colorFormat"in Si&&(Ha=Si.colorFormat,hr.indexOf(Ha)>=0?ss=!0:mr.indexOf(Ha)>=0?ss=!1:me.optional(function(){ss?me.oneOf(Si.colorFormat,hr,"invalid color format for texture"):me.oneOf(Si.colorFormat,mr,"invalid color format for renderbuffer")}))),("depthTexture"in Si||"depthStencilTexture"in Si)&&(io=!!(Si.depthTexture||Si.depthStencilTexture),me(!io||ge.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in Si&&(typeof Si.depth=="boolean"?Ga=Si.depth:(Wo=Si.depth,no=!1)),"stencil"in Si&&(typeof Si.stencil=="boolean"?no=Si.stencil:(Xo=Si.stencil,Ga=!1)),"depthStencil"in Si&&(typeof Si.depthStencil=="boolean"?Ga=no=Si.depthStencil:(bs=Si.depthStencil,Ga=!1,no=!1))}var ra=null,us=null,oi=null,zi=null;if(Array.isArray(Zi))ra=Zi.map(Mr);else if(Zi)ra=[Mr(Zi)];else for(ra=new Array(wo),ni=0;ni=0||ra[ni].renderbuffer&&he.indexOf(ra[ni].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+ni+" is invalid"),ra[ni]&&ra[ni].texture){var To=Pa[ra[ni].texture._texture.format]*l[ra[ni].texture._texture.type];ua===null?ua=To:me(ua===To,"all color attachments much have the same number of bits per pixel.")}return Gr(us,ui,Ni),me(!us||us.texture&&us.texture._texture.format===_l||us.renderbuffer&&us.renderbuffer._renderbuffer.format===E,"invalid depth attachment for framebuffer object"),Gr(oi,ui,Ni),me(!oi||oi.renderbuffer&&oi.renderbuffer._renderbuffer.format===w,"invalid stencil attachment for framebuffer object"),Gr(zi,ui,Ni),me(!zi||zi.texture&&zi.texture._texture.format===P||zi.renderbuffer&&zi.renderbuffer._renderbuffer.format===P,"invalid depth-stencil attachment for framebuffer object"),zr(Jr),Jr.width=ui,Jr.height=Ni,Jr.colorAttachments=ra,Jr.depthAttachment=us,Jr.stencilAttachment=oi,Jr.depthStencilAttachment=zi,Ei.color=ra.map(Gt),Ei.depth=Gt(us),Ei.stencil=Gt(oi),Ei.depthStencil=Gt(zi),Ei.width=Jr.width,Ei.height=Jr.height,tr(Jr),Ei}function Gn(jr,en){me(er.next!==Jr,"can not resize a framebuffer which is currently in use");var ni=Math.max(jr|0,1),ui=Math.max(en|0||ni,1);if(ni===Jr.width&&ui===Jr.height)return Ei;for(var Ni=Jr.colorAttachments,Ga=0;Ga=2,"invalid shape for framebuffer"),me(ss[0]===ss[1],"cube framebuffer must be square"),ni=ss[0]}else"radius"in Zi&&(ni=Zi.radius|0),"width"in Zi?(ni=Zi.width|0,"height"in Zi&&me(Zi.height===ni,"must be square")):"height"in Zi&&(ni=Zi.height|0);("color"in Zi||"colors"in Zi)&&(ui=Zi.color||Zi.colors,Array.isArray(ui)&&me(ui.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),ui||("colorCount"in Zi&&(no=Zi.colorCount|0,me(no>0,"invalid color buffer count")),"colorType"in Zi&&(me.oneOf(Zi.colorType,xr,"invalid color type"),Ga=Zi.colorType),"colorFormat"in Zi&&(Ni=Zi.colorFormat,me.oneOf(Zi.colorFormat,hr,"invalid color format for texture"))),"depth"in Zi&&(en.depth=Zi.depth),"stencil"in Zi&&(en.stencil=Zi.stencil),"depthStencil"in Zi&&(en.depthStencil=Zi.depthStencil)}var Ha;if(ui)if(Array.isArray(ui))for(Ha=[],jr=0;jr0&&(en.depth=Hr[0].depth,en.stencil=Hr[0].stencil,en.depthStencil=Hr[0].depthStencil),Hr[jr]?Hr[jr](en):Hr[jr]=ir(en)}return m(Jr,{width:ni,height:ni,color:Ha})}function Ei(Gn){var jr,en=Gn|0;if(me(en>0&&en<=Be.maxCubeMapSize,"invalid radius for cube fbo"),en===Jr.width)return Jr;var ni=Jr.color;for(jr=0;jr=0,'invalid option for vao: "'+Ga[no]+'" valid options are '+Ve)}),me(Array.isArray(Sr),"attributes must be an array")}me(Sr.length0,"must specify at least one attribute");var Jr={},Ei=ir.attributes;Ei.length=Sr.length;for(var Gn=0;Gn=ni.byteLength?ui.subdata(ni):(ui.destroy(),ir.buffers[Gn]=null)),ir.buffers[Gn]||(ui=ir.buffers[Gn]=sr.create(jr,We,!1,!0)),en.buffer=sr.getBuffer(ui),en.size=en.buffer.dimension|0,en.normalized=!1,en.type=en.buffer.dtype,en.offset=0,en.stride=0,en.divisor=0,en.state=1,Jr[Gn]=1}else sr.getBuffer(jr)?(en.buffer=sr.getBuffer(jr),en.size=en.buffer.dimension|0,en.normalized=!1,en.type=en.buffer.dtype,en.offset=0,en.stride=0,en.divisor=0,en.state=1):sr.getBuffer(jr.buffer)?(en.buffer=sr.getBuffer(jr.buffer),en.size=(+jr.size||en.buffer.dimension)|0,en.normalized=!!jr.normalized||!1,"type"in jr?(me.parameter(jr.type,ou,"invalid buffer type"),en.type=ou[jr.type]):en.type=en.buffer.dtype,en.offset=(jr.offset||0)|0,en.stride=(jr.stride||0)|0,en.divisor=(jr.divisor||0)|0,en.state=1,me(en.size>=1&&en.size<=4,"size must be between 1 and 4"),me(en.offset>=0,"invalid offset"),me(en.stride>=0&&en.stride<=255,"stride must be between 0 and 255"),me(en.divisor>=0,"divisor must be positive"),me(!en.divisor||!!ge.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in jr?(me(Gn>0,"first attribute must not be a constant"),en.x=+jr.x||0,en.y=+jr.y||0,en.z=+jr.z||0,en.w=+jr.w||0,en.state=2):me(!1,"invalid attribute spec for location "+Gn)}for(var Ni=0;Ni1)for(var Xr=0;Xrut&&(ut=Gt.stats.uniformsCount)}),ut},Be.getMaxAttributesCount=function(){var ut=0;return Tr.forEach(function(Gt){Gt.stats.attributesCount>ut&&(ut=Gt.stats.attributesCount)}),ut});function Mr(){sr={},kt={};for(var ut=0;ut=0,"missing vertex shader",br),me.command(Gt>=0,"missing fragment shader",br);var cr=xr[Gt];cr||(cr=xr[Gt]={});var or=cr[ut];if(or&&(or.refCount++,!Br))return or;var zr=new Gr(Gt,ut);return Be.shaderCount++,_r(zr,br,Br),or||(cr[ut]=zr),Tr.push(zr),m(zr,{destroy:function(){if(zr.refCount--,zr.refCount<=0){B.deleteProgram(zr.program);var Un=Tr.indexOf(zr);Tr.splice(Un,1),Be.shaderCount--}cr[zr.vertId].refCount<=0&&(B.deleteShader(kt[zr.vertId]),delete kt[zr.vertId],delete xr[zr.fragId][zr.vertId]),Object.keys(xr[zr.fragId]).length||(B.deleteShader(sr[zr.fragId]),delete sr[zr.fragId],delete xr[zr.fragId])}})},restore:Mr,shader:mr,frag:-1,vert:-1}}var kr=6408,ln=5121,Nn=3333,zn=5126;function Mn(B,ge,Be,Dt,sr,kt,er){function hr(Tr){var Rr;ge.next===null?(me(sr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Rr=ln):(me(ge.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Rr=ge.next.colorAttachments[0].texture._texture.type,me.optional(function(){kt.oes_texture_float?(me(Rr===ln||Rr===zn,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Rr===zn&&me(er.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):me(Rr===ln,"Reading from a framebuffer is only allowed for the type 'uint8'")}));var Gr=0,_r=0,Mr=Dt.framebufferWidth,ut=Dt.framebufferHeight,Gt=null;re(Tr)?Gt=Tr:Tr&&(me.type(Tr,"object","invalid arguments to regl.read()"),Gr=Tr.x|0,_r=Tr.y|0,me(Gr>=0&&Gr=0&&_r0&&Mr+Gr<=Dt.framebufferWidth,"invalid width for read pixels"),me(ut>0&&ut+_r<=Dt.framebufferHeight,"invalid height for read pixels"),Be();var br=Mr*ut*4;return Gt||(Rr===ln?Gt=new Uint8Array(br):Rr===zn&&(Gt=Gt||new Float32Array(br))),me.isTypedArray(Gt,"data buffer for regl.read() must be a typedarray"),me(Gt.byteLength>=br,"data buffer for regl.read() too small"),B.pixelStorei(Nn,4),B.readPixels(Gr,_r,Mr,ut,kr,Rr,Gt),Gt}function mr(Tr){var Rr;return ge.setFBO({framebuffer:Tr.framebuffer},function(){Rr=hr(Tr)}),Rr}function xr(Tr){return!Tr||!("framebuffer"in Tr)?hr(Tr):mr(Tr)}return xr}function Bi(B){return Array.prototype.slice.call(B)}function Qr(B){return Bi(B).join("")}function li(){var B=0,ge=[],Be=[];function Dt(Rr){for(var Gr=0;Gr0&&(Rr.push(ut,"="),Rr.push.apply(Rr,Bi(arguments)),Rr.push(";")),ut}return m(Gr,{def:Mr,toString:function(){return Qr([_r.length>0?"var "+_r.join(",")+";":"",Qr(Rr)])}})}function kt(){var Rr=sr(),Gr=sr(),_r=Rr.toString,Mr=Gr.toString;function ut(Gt,br){Gr(Gt,br,"=",Rr.def(Gt,br),";")}return m(function(){Rr.apply(Rr,Bi(arguments))},{def:Rr.def,entry:Rr,exit:Gr,save:ut,set:function(Gt,br,Br){ut(Gt,br),Rr(Gt,br,"=",Br,";")},toString:function(){return _r()+Mr()}})}function er(){var Rr=Qr(arguments),Gr=kt(),_r=kt(),Mr=Gr.toString,ut=_r.toString;return m(Gr,{then:function(){return Gr.apply(Gr,Bi(arguments)),this},else:function(){return _r.apply(_r,Bi(arguments)),this},toString:function(){var Gt=ut();return Gt&&(Gt="else{"+Gt+"}"),Qr(["if(",Rr,"){",Mr(),"}",Gt])}})}var hr=sr(),mr={};function xr(Rr,Gr){var _r=[];function Mr(){var cr="a"+_r.length;return _r.push(cr),cr}Gr=Gr||0;for(var ut=0;ut":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Qc={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Wr={frag:Md,vert:Pd},op={cw:Vp,ccw:Lh};function Ht(B){return Array.isArray(B)||re(B)||os(B)}function sp(B){return B.sort(function(ge,Be){return ge===mo?-1:Be===mo?1:ge=1,Dt>=2,ge)}else if(Be===Ho){var sr=B.data;return new va(sr.thisDep,sr.contextDep,sr.propDep,ge)}else{if(Be===Bo)return new va(!1,!1,!1,ge);if(Be===za){for(var kt=!1,er=!1,hr=!1,mr=0;mr=1&&(er=!0),Tr>=2&&(hr=!0)}else xr.type===Ho&&(kt=kt||xr.data.thisDep,er=er||xr.data.contextDep,hr=hr||xr.data.propDep)}return new va(kt,er,hr,ge)}else return new va(Be===Ka,Be===po,Be===Kn,ge)}}var Yp=new va(!1,!1,!1,function(){});function up(B,ge,Be,Dt,sr,kt,er,hr,mr,xr,Tr,Rr,Gr,_r,Mr){var ut=xr.Record,Gt={add:32774,subtract:32778,"reverse subtract":32779};Be.ext_blend_minmax&&(Gt.min=Gp,Gt.max=Id);var br=Be.angle_instanced_arrays,Br=Be.webgl_draw_buffers,cr=Be.oes_vertex_array_object,or={dirty:!0,profile:Mr.profile},zr={},Un=[],tr={},ir={};function Sn(Se){return Se.replace(".","_")}function Xr(Se,ue,Ge){var lt=Sn(Se);Un.push(Se),zr[lt]=or[lt]=!!Ge,tr[lt]=ue}function Sr(Se,ue,Ge){var lt=Sn(Se);Un.push(Se),Array.isArray(Ge)?(or[lt]=Ge.slice(),zr[lt]=Ge.slice()):or[lt]=zr[lt]=Ge,ir[lt]=ue}Xr(co,Zp),Xr(Bs,qc),Sr(_s,"blendColor",[0,0,0,0]),Sr(Hu,"blendEquationSeparate",[$c,$c]),Sr(xs,"blendFuncSeparate",[kh,Wp,kh,Wp]),Xr(pu,Th,!0),Sr(vo,"depthFunc",qu),Sr(mc,"depthRange",[0,1]),Sr(ru,"depthMask",!0),Sr(Wu,Wu,[!0,!0,!0,!0]),Xr(du,Up),Sr(xl,"cullFace",Yu),Sr(vu,vu,Lh),Sr(Ul,Ul,1),Xr(Ou,Mh),Sr(So,"polygonOffset",[0,0]),Xr(ka,Xf),Xr(Ua,Yf),Sr(mu,"sampleCoverage",[1,!1]),Xr(ta,Co),Sr(is,"stencilMask",-1),Sr(Ms,"stencilFunc",[Hp,0,-1]),Sr(bl,"stencilOpSeparate",[Cl,gu,gu,gu]),Sr(_f,"stencilOpSeparate",[Yu,gu,gu,gu]),Xr(xf,jp),Sr(Gc,"scissor",[0,0,B.drawingBufferWidth,B.drawingBufferHeight]),Sr(mo,mo,[0,0,B.drawingBufferWidth,B.drawingBufferHeight]);var Hr={gl:B,context:Gr,strings:ge,next:zr,current:or,draw:Rr,elements:kt,buffer:sr,shader:Tr,attributes:xr.state,vao:xr,uniforms:mr,framebuffer:hr,extensions:Be,timer:_r,isBufferArgs:Ht},Jr={primTypes:ur,compareFuncs:Vl,blendFuncs:Al,blendEquations:Gt,stencilOps:Qc,glTypes:ou,orientationType:op};me.optional(function(){Hr.isArrayLike=uo}),Br&&(Jr.backBuffer=[Yu],Jr.drawBuffer=He(Dt.maxDrawbuffers,function(Se){return Se===0?[0]:He(Se,function(ue){return Od+ue})}));var Ei=0;function Gn(){var Se=li(),ue=Se.link,Ge=Se.global;Se.id=Ei++,Se.batchId="0";var lt=ue(Hr),Lt=Se.shared={props:"a0"};Object.keys(Hr).forEach(function(Ze){Lt[Ze]=Ge.def(lt,".",Ze)}),me.optional(function(){Se.CHECK=ue(me),Se.commandStr=me.guessCommand(),Se.command=ue(Se.commandStr),Se.assert=function(Ze,Ae,ct){Ze("if(!(",Ae,"))",this.CHECK,".commandRaise(",ue(ct),",",this.command,");")},Jr.invalidBlendCombinations=Cf});var Ke=Se.next={},Fe=Se.current={};Object.keys(ir).forEach(function(Ze){Array.isArray(or[Ze])&&(Ke[Ze]=Ge.def(Lt.next,".",Ze),Fe[Ze]=Ge.def(Lt.current,".",Ze))});var nt=Se.constants={};Object.keys(Jr).forEach(function(Ze){nt[Ze]=Ge.def(JSON.stringify(Jr[Ze]))}),Se.invoke=function(Ze,Ae){switch(Ae.type){case ri:var ct=["this",Lt.context,Lt.props,Se.batchId];return Ze.def(ue(Ae.data),".call(",ct.slice(0,Math.max(Ae.data.length+1,4)),")");case Kn:return Ze.def(Lt.props,Ae.data);case po:return Ze.def(Lt.context,Ae.data);case Ka:return Ze.def("this",Ae.data);case Ho:return Ae.data.append(Se,Ze),Ae.data.ref;case Bo:return Ae.data.toString();case za:return Ae.data.map(function(Ct){return Se.invoke(Ze,Ct)})}},Se.attribCache={};var xe={};return Se.scopeAttrib=function(Ze){var Ae=ge.id(Ze);if(Ae in xe)return xe[Ae];var ct=xr.scope[Ae];ct||(ct=xr.scope[Ae]=new ut);var Ct=xe[Ae]=ue(ct);return Ct},Se}function jr(Se){var ue=Se.static,Ge=Se.dynamic,lt;if(Hc in ue){var Lt=!!ue[Hc];lt=Ao(function(Fe,nt){return Lt}),lt.enable=Lt}else if(Hc in Ge){var Ke=Ge[Hc];lt=Ys(Ke,function(Fe,nt){return Fe.invoke(nt,Ke)})}return lt}function en(Se,ue){var Ge=Se.static,lt=Se.dynamic;if(Ru in Ge){var Lt=Ge[Ru];return Lt?(Lt=hr.getFramebuffer(Lt),me.command(Lt,"invalid framebuffer object"),Ao(function(Fe,nt){var xe=Fe.link(Lt),Ze=Fe.shared;nt.set(Ze.framebuffer,".next",xe);var Ae=Ze.context;return nt.set(Ae,"."+El,xe+".width"),nt.set(Ae,"."+Xc,xe+".height"),xe})):Ao(function(Fe,nt){var xe=Fe.shared;nt.set(xe.framebuffer,".next","null");var Ze=xe.context;return nt.set(Ze,"."+El,Ze+"."+Yc),nt.set(Ze,"."+Xc,Ze+"."+zp),"null"})}else if(Ru in lt){var Ke=lt[Ru];return Ys(Ke,function(Fe,nt){var xe=Fe.invoke(nt,Ke),Ze=Fe.shared,Ae=Ze.framebuffer,ct=nt.def(Ae,".getFramebuffer(",xe,")");me.optional(function(){Fe.assert(nt,"!"+xe+"||"+ct,"invalid framebuffer object")}),nt.set(Ae,".next",ct);var Ct=Ze.context;return nt.set(Ct,"."+El,ct+"?"+ct+".width:"+Ct+"."+Yc),nt.set(Ct,"."+Xc,ct+"?"+ct+".height:"+Ct+"."+zp),ct})}else return null}function ni(Se,ue,Ge){var lt=Se.static,Lt=Se.dynamic;function Ke(xe){if(xe in lt){var Ze=lt[xe];me.commandType(Ze,"object","invalid "+xe,Ge.commandStr);var Ae=!0,ct=Ze.x|0,Ct=Ze.y|0,fr,Ur;return"width"in Ze?(fr=Ze.width|0,me.command(fr>=0,"invalid "+xe,Ge.commandStr)):Ae=!1,"height"in Ze?(Ur=Ze.height|0,me.command(Ur>=0,"invalid "+xe,Ge.commandStr)):Ae=!1,new va(!Ae&&ue&&ue.thisDep,!Ae&&ue&&ue.contextDep,!Ae&&ue&&ue.propDep,function(Dr,An){var cn=Dr.shared.context,xn=fr;"width"in Ze||(xn=An.def(cn,".",El,"-",ct));var bn=Ur;return"height"in Ze||(bn=An.def(cn,".",Xc,"-",Ct)),[ct,Ct,xn,bn]})}else if(xe in Lt){var Vr=Lt[xe],sn=Ys(Vr,function(Dr,An){var cn=Dr.invoke(An,Vr);me.optional(function(){Dr.assert(An,cn+"&&typeof "+cn+'==="object"',"invalid "+xe)});var xn=Dr.shared.context,bn=An.def(cn,".x|0"),dn=An.def(cn,".y|0"),Jn=An.def('"width" in ',cn,"?",cn,".width|0:","(",xn,".",El,"-",bn,")"),_a=An.def('"height" in ',cn,"?",cn,".height|0:","(",xn,".",Xc,"-",dn,")");return me.optional(function(){Dr.assert(An,Jn+">=0&&"+_a+">=0","invalid "+xe)}),[bn,dn,Jn,_a]});return ue&&(sn.thisDep=sn.thisDep||ue.thisDep,sn.contextDep=sn.contextDep||ue.contextDep,sn.propDep=sn.propDep||ue.propDep),sn}else return ue?new va(ue.thisDep,ue.contextDep,ue.propDep,function(Dr,An){var cn=Dr.shared.context;return[0,0,An.def(cn,".",El),An.def(cn,".",Xc)]}):null}var Fe=Ke(mo);if(Fe){var nt=Fe;Fe=new va(Fe.thisDep,Fe.contextDep,Fe.propDep,function(xe,Ze){var Ae=nt.append(xe,Ze),ct=xe.shared.context;return Ze.set(ct,"."+Ah,Ae[2]),Ze.set(ct,"."+np,Ae[3]),Ae})}return{viewport:Fe,scissor_box:Ke(Gc)}}function ui(Se,ue){var Ge=Se.static,lt=typeof Ge[Xu]=="string"&&typeof Ge[Zl]=="string";if(lt){if(Object.keys(ue.dynamic).length>0)return null;var Lt=ue.static,Ke=Object.keys(Lt);if(Ke.length>0&&typeof Lt[Ke[0]]=="number"){for(var Fe=[],nt=0;nt=0,"invalid "+An,ue.commandStr),Ao(function(dn,Jn){return cn&&(dn.OFFSET=xn),xn})}else if(An in lt){var bn=lt[An];return Ys(bn,function(dn,Jn){var _a=dn.invoke(Jn,bn);return cn&&(dn.OFFSET=_a,me.optional(function(){dn.assert(Jn,_a+">=0","invalid "+An)})),_a})}else if(cn){if(xe)return Ao(function(dn,Jn){return dn.OFFSET=0,0});if(Ke)return new va(nt.thisDep,nt.contextDep,nt.propDep,function(dn,Jn){return Jn.def(dn.shared.vao+".currentVAO?"+dn.shared.vao+".currentVAO.offset:0")})}else if(Ke)return new va(nt.thisDep,nt.contextDep,nt.propDep,function(dn,Jn){return Jn.def(dn.shared.vao+".currentVAO?"+dn.shared.vao+".currentVAO.instances:-1")});return null}var fr=Ct(bf,!0);function Ur(){if(gc in Ge){var An=Ge[gc]|0;return Lt.count=An,me.command(typeof An=="number"&&An>=0,"invalid vertex count",ue.commandStr),Ao(function(){return An})}else if(gc in lt){var cn=lt[gc];return Ys(cn,function(Jn,_a){var ls=Jn.invoke(_a,cn);return me.optional(function(){Jn.assert(_a,"typeof "+ls+'==="number"&&'+ls+">=0&&"+ls+"===("+ls+"|0)","invalid vertex count")}),ls})}else if(xe)if(Gl(Ae)){if(Ae)return fr?new va(fr.thisDep,fr.contextDep,fr.propDep,function(Jn,_a){var ls=_a.def(Jn.ELEMENTS,".vertCount-",Jn.OFFSET);return me.optional(function(){Jn.assert(_a,ls+">=0","invalid vertex offset/element buffer too small")}),ls}):Ao(function(Jn,_a){return _a.def(Jn.ELEMENTS,".vertCount")});var xn=Ao(function(){return-1});return me.optional(function(){xn.MISSING=!0}),xn}else{var bn=new va(Ae.thisDep||fr.thisDep,Ae.contextDep||fr.contextDep,Ae.propDep||fr.propDep,function(Jn,_a){var ls=Jn.ELEMENTS;return Jn.OFFSET?_a.def(ls,"?",ls,".vertCount-",Jn.OFFSET,":-1"):_a.def(ls,"?",ls,".vertCount:-1")});return me.optional(function(){bn.DYNAMIC=!0}),bn}else if(Ke){var dn=new va(nt.thisDep,nt.contextDep,nt.propDep,function(Jn,_a){return _a.def(Jn.shared.vao,".currentVAO?",Jn.shared.vao,".currentVAO.count:-1")});return dn}return null}var Vr=ct(),sn=Ur(),Dr=Ct(Wc,!1);return{elements:Ae,primitive:Vr,count:sn,instances:Dr,offset:fr,vao:nt,vaoActive:Ke,elementsActive:xe,static:Lt}}function no(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Un.forEach(function(Ke){var Fe=Sn(Ke);function nt(xe,Ze){if(Ke in Ge){var Ae=xe(Ge[Ke]);Lt[Fe]=Ao(function(){return Ae})}else if(Ke in lt){var ct=lt[Ke];Lt[Fe]=Ys(ct,function(Ct,fr){return Ze(Ct,fr,Ct.invoke(fr,ct))})}}switch(Ke){case du:case Bs:case co:case ta:case pu:case xf:case Ou:case ka:case Ua:case ru:return nt(function(xe){return me.commandType(xe,"boolean",Ke,ue.commandStr),xe},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="boolean"',"invalid flag "+Ke,xe.commandStr)}),Ae});case vo:return nt(function(xe){return me.commandParameter(xe,Vl,"invalid "+Ke,ue.commandStr),Vl[xe]},function(xe,Ze,Ae){var ct=xe.constants.compareFuncs;return me.optional(function(){xe.assert(Ze,Ae+" in "+ct,"invalid "+Ke+", must be one of "+Object.keys(Vl))}),Ze.def(ct,"[",Ae,"]")});case mc:return nt(function(xe){return me.command(uo(xe)&&xe.length===2&&typeof xe[0]=="number"&&typeof xe[1]=="number"&&xe[0]<=xe[1],"depth range is 2d array",ue.commandStr),xe},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===2&&typeof "+Ae+'[0]==="number"&&typeof '+Ae+'[1]==="number"&&'+Ae+"[0]<="+Ae+"[1]","depth range must be a 2d array")});var ct=Ze.def("+",Ae,"[0]"),Ct=Ze.def("+",Ae,"[1]");return[ct,Ct]});case xs:return nt(function(xe){me.commandType(xe,"object","blend.func",ue.commandStr);var Ze="srcRGB"in xe?xe.srcRGB:xe.src,Ae="srcAlpha"in xe?xe.srcAlpha:xe.src,ct="dstRGB"in xe?xe.dstRGB:xe.dst,Ct="dstAlpha"in xe?xe.dstAlpha:xe.dst;return me.commandParameter(Ze,Al,Fe+".srcRGB",ue.commandStr),me.commandParameter(Ae,Al,Fe+".srcAlpha",ue.commandStr),me.commandParameter(ct,Al,Fe+".dstRGB",ue.commandStr),me.commandParameter(Ct,Al,Fe+".dstAlpha",ue.commandStr),me.command(Cf.indexOf(Ze+", "+ct)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Ze+", "+ct+")",ue.commandStr),[Al[Ze],Al[ct],Al[Ae],Al[Ct]]},function(xe,Ze,Ae){var ct=xe.constants.blendFuncs;me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid blend func, must be an object")});function Ct(cn,xn){var bn=Ze.def('"',cn,xn,'" in ',Ae,"?",Ae,".",cn,xn,":",Ae,".",cn);return me.optional(function(){xe.assert(Ze,bn+" in "+ct,"invalid "+Ke+"."+cn+xn+", must be one of "+Object.keys(Al))}),bn}var fr=Ct("src","RGB"),Ur=Ct("dst","RGB");me.optional(function(){var cn=xe.constants.invalidBlendCombinations;xe.assert(Ze,cn+".indexOf("+fr+'+", "+'+Ur+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var Vr=Ze.def(ct,"[",fr,"]"),sn=Ze.def(ct,"[",Ct("src","Alpha"),"]"),Dr=Ze.def(ct,"[",Ur,"]"),An=Ze.def(ct,"[",Ct("dst","Alpha"),"]");return[Vr,Dr,sn,An]});case Hu:return nt(function(xe){if(typeof xe=="string")return me.commandParameter(xe,Gt,"invalid "+Ke,ue.commandStr),[Gt[xe],Gt[xe]];if(typeof xe=="object")return me.commandParameter(xe.rgb,Gt,Ke+".rgb",ue.commandStr),me.commandParameter(xe.alpha,Gt,Ke+".alpha",ue.commandStr),[Gt[xe.rgb],Gt[xe.alpha]];me.commandRaise("invalid blend.equation",ue.commandStr)},function(xe,Ze,Ae){var ct=xe.constants.blendEquations,Ct=Ze.def(),fr=Ze.def(),Ur=xe.cond("typeof ",Ae,'==="string"');return me.optional(function(){function Vr(sn,Dr,An){xe.assert(sn,An+" in "+ct,"invalid "+Dr+", must be one of "+Object.keys(Gt))}Vr(Ur.then,Ke,Ae),xe.assert(Ur.else,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke),Vr(Ur.else,Ke+".rgb",Ae+".rgb"),Vr(Ur.else,Ke+".alpha",Ae+".alpha")}),Ur.then(Ct,"=",fr,"=",ct,"[",Ae,"];"),Ur.else(Ct,"=",ct,"[",Ae,".rgb];",fr,"=",ct,"[",Ae,".alpha];"),Ze(Ur),[Ct,fr]});case _s:return nt(function(xe){return me.command(uo(xe)&&xe.length===4,"blend.color must be a 4d array",ue.commandStr),He(4,function(Ze){return+xe[Ze]})},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===4","blend.color must be a 4d array")}),He(4,function(ct){return Ze.def("+",Ae,"[",ct,"]")})});case is:return nt(function(xe){return me.commandType(xe,"number",Fe,ue.commandStr),xe|0},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="number"',"invalid stencil.mask")}),Ze.def(Ae,"|0")});case Ms:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.cmp||"keep",Ae=xe.ref||0,ct="mask"in xe?xe.mask:-1;return me.commandParameter(Ze,Vl,Ke+".cmp",ue.commandStr),me.commandType(Ae,"number",Ke+".ref",ue.commandStr),me.commandType(ct,"number",Ke+".mask",ue.commandStr),[Vl[Ze],Ae,ct]},function(xe,Ze,Ae){var ct=xe.constants.compareFuncs;me.optional(function(){function Vr(){xe.assert(Ze,Array.prototype.join.call(arguments,""),"invalid stencil.func")}Vr(Ae+"&&typeof ",Ae,'==="object"'),Vr('!("cmp" in ',Ae,")||(",Ae,".cmp in ",ct,")")});var Ct=Ze.def('"cmp" in ',Ae,"?",ct,"[",Ae,".cmp]",":",gu),fr=Ze.def(Ae,".ref|0"),Ur=Ze.def('"mask" in ',Ae,"?",Ae,".mask|0:-1");return[Ct,fr,Ur]});case bl:case _f:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.fail||"keep",Ae=xe.zfail||"keep",ct=xe.zpass||"keep";return me.commandParameter(Ze,Qc,Ke+".fail",ue.commandStr),me.commandParameter(Ae,Qc,Ke+".zfail",ue.commandStr),me.commandParameter(ct,Qc,Ke+".zpass",ue.commandStr),[Ke===_f?Yu:Cl,Qc[Ze],Qc[Ae],Qc[ct]]},function(xe,Ze,Ae){var ct=xe.constants.stencilOps;me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke)});function Ct(fr){return me.optional(function(){xe.assert(Ze,'!("'+fr+'" in '+Ae+")||("+Ae+"."+fr+" in "+ct+")","invalid "+Ke+"."+fr+", must be one of "+Object.keys(Qc))}),Ze.def('"',fr,'" in ',Ae,"?",ct,"[",Ae,".",fr,"]:",gu)}return[Ke===_f?Yu:Cl,Ct("fail"),Ct("zfail"),Ct("zpass")]});case So:return nt(function(xe){me.commandType(xe,"object",Fe,ue.commandStr);var Ze=xe.factor|0,Ae=xe.units|0;return me.commandType(Ze,"number",Fe+".factor",ue.commandStr),me.commandType(Ae,"number",Fe+".units",ue.commandStr),[Ze,Ae]},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid "+Ke)});var ct=Ze.def(Ae,".factor|0"),Ct=Ze.def(Ae,".units|0");return[ct,Ct]});case xl:return nt(function(xe){var Ze=0;return xe==="front"?Ze=Cl:xe==="back"&&(Ze=Yu),me.command(!!Ze,Fe,ue.commandStr),Ze},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,Ae+'==="front"||'+Ae+'==="back"',"invalid cull.face")}),Ze.def(Ae,'==="front"?',Cl,":",Yu)});case Ul:return nt(function(xe){return me.command(typeof xe=="number"&&xe>=Dt.lineWidthDims[0]&&xe<=Dt.lineWidthDims[1],"invalid line width, must be a positive number between "+Dt.lineWidthDims[0]+" and "+Dt.lineWidthDims[1],ue.commandStr),xe},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,"typeof "+Ae+'==="number"&&'+Ae+">="+Dt.lineWidthDims[0]+"&&"+Ae+"<="+Dt.lineWidthDims[1],"invalid line width")}),Ae});case vu:return nt(function(xe){return me.commandParameter(xe,op,Fe,ue.commandStr),op[xe]},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,Ae+'==="cw"||'+Ae+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Ze.def(Ae+'==="cw"?'+Vp+":"+Lh)});case Wu:return nt(function(xe){return me.command(uo(xe)&&xe.length===4,"color.mask must be length 4 array",ue.commandStr),xe.map(function(Ze){return!!Ze})},function(xe,Ze,Ae){return me.optional(function(){xe.assert(Ze,xe.shared.isArrayLike+"("+Ae+")&&"+Ae+".length===4","invalid color.mask")}),He(4,function(ct){return"!!"+Ae+"["+ct+"]"})});case mu:return nt(function(xe){me.command(typeof xe=="object"&&xe,Fe,ue.commandStr);var Ze="value"in xe?xe.value:1,Ae=!!xe.invert;return me.command(typeof Ze=="number"&&Ze>=0&&Ze<=1,"sample.coverage.value must be a number between 0 and 1",ue.commandStr),[Ze,Ae]},function(xe,Ze,Ae){me.optional(function(){xe.assert(Ze,Ae+"&&typeof "+Ae+'==="object"',"invalid sample.coverage")});var ct=Ze.def('"value" in ',Ae,"?+",Ae,".value:1"),Ct=Ze.def("!!",Ae,".invert");return[ct,Ct]})}}),Lt}function Zi(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Object.keys(Ge).forEach(function(Ke){var Fe=Ge[Ke],nt;if(typeof Fe=="number"||typeof Fe=="boolean")nt=Ao(function(){return Fe});else if(typeof Fe=="function"){var xe=Fe._reglType;xe==="texture2d"||xe==="textureCube"?nt=Ao(function(Ze){return Ze.link(Fe)}):xe==="framebuffer"||xe==="framebufferCube"?(me.command(Fe.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ke+'"',ue.commandStr),nt=Ao(function(Ze){return Ze.link(Fe.color[0])})):me.commandRaise('invalid data for uniform "'+Ke+'"',ue.commandStr)}else uo(Fe)?nt=Ao(function(Ze){var Ae=Ze.global.def("[",He(Fe.length,function(ct){return me.command(typeof Fe[ct]=="number"||typeof Fe[ct]=="boolean","invalid uniform "+Ke,Ze.commandStr),Fe[ct]}),"]");return Ae}):me.commandRaise('invalid or missing data for uniform "'+Ke+'"',ue.commandStr);nt.value=Fe,Lt[Ke]=nt}),Object.keys(lt).forEach(function(Ke){var Fe=lt[Ke];Lt[Ke]=Ys(Fe,function(nt,xe){return nt.invoke(xe,Fe)})}),Lt}function ss(Se,ue){var Ge=Se.static,lt=Se.dynamic,Lt={};return Object.keys(Ge).forEach(function(Ke){var Fe=Ge[Ke],nt=ge.id(Ke),xe=new ut;if(Ht(Fe))xe.state=Xn,xe.buffer=sr.getBuffer(sr.create(Fe,Ef,!1,!0)),xe.type=0;else{var Ze=sr.getBuffer(Fe);if(Ze)xe.state=Xn,xe.buffer=Ze,xe.type=0;else if(me.command(typeof Fe=="object"&&Fe,"invalid data for attribute "+Ke,ue.commandStr),"constant"in Fe){var Ae=Fe.constant;xe.buffer="null",xe.state=xi,typeof Ae=="number"?xe.x=Ae:(me.command(uo(Ae)&&Ae.length>0&&Ae.length<=4,"invalid constant for attribute "+Ke,ue.commandStr),fi.forEach(function(Dr,An){An=0,'invalid offset for attribute "'+Ke+'"',ue.commandStr);var Ct=Fe.stride|0;me.command(Ct>=0&&Ct<256,'invalid stride for attribute "'+Ke+'", must be integer betweeen [0, 255]',ue.commandStr);var fr=Fe.size|0;me.command(!("size"in Fe)||fr>0&&fr<=4,'invalid size for attribute "'+Ke+'", must be 1,2,3,4',ue.commandStr);var Ur=!!Fe.normalized,Vr=0;"type"in Fe&&(me.commandParameter(Fe.type,ou,"invalid type for attribute "+Ke,ue.commandStr),Vr=ou[Fe.type]);var sn=Fe.divisor|0;me.optional(function(){"divisor"in Fe&&(me.command(sn===0||br,'cannot specify divisor for attribute "'+Ke+'", instancing not supported',ue.commandStr),me.command(sn>=0,'invalid divisor for attribute "'+Ke+'"',ue.commandStr));var Dr=ue.commandStr,An=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(Fe).forEach(function(cn){me.command(An.indexOf(cn)>=0,'unknown parameter "'+cn+'" for attribute pointer "'+Ke+'" (valid parameters are '+An+")",Dr)})}),xe.buffer=Ze,xe.state=Xn,xe.size=fr,xe.normalized=Ur,xe.type=Vr||Ze.dtype,xe.offset=ct,xe.stride=Ct,xe.divisor=sn}}Lt[Ke]=Ao(function(Dr,An){var cn=Dr.attribCache;if(nt in cn)return cn[nt];var xn={isStream:!1};return Object.keys(xe).forEach(function(bn){xn[bn]=xe[bn]}),xe.buffer&&(xn.buffer=Dr.link(xe.buffer),xn.type=xn.type||xn.buffer+".dtype"),cn[nt]=xn,xn})}),Object.keys(lt).forEach(function(Ke){var Fe=lt[Ke];function nt(xe,Ze){var Ae=xe.invoke(Ze,Fe),ct=xe.shared,Ct=xe.constants,fr=ct.isBufferArgs,Ur=ct.buffer;me.optional(function(){xe.assert(Ze,Ae+"&&(typeof "+Ae+'==="object"||typeof '+Ae+'==="function")&&('+fr+"("+Ae+")||"+Ur+".getBuffer("+Ae+")||"+Ur+".getBuffer("+Ae+".buffer)||"+fr+"("+Ae+'.buffer)||("constant" in '+Ae+"&&(typeof "+Ae+'.constant==="number"||'+ct.isArrayLike+"("+Ae+".constant))))",'invalid dynamic attribute "'+Ke+'"')});var Vr={isStream:Ze.def(!1)},sn=new ut;sn.state=Xn,Object.keys(sn).forEach(function(xn){Vr[xn]=Ze.def(""+sn[xn])});var Dr=Vr.buffer,An=Vr.type;Ze("if(",fr,"(",Ae,")){",Vr.isStream,"=true;",Dr,"=",Ur,".createStream(",Ef,",",Ae,");",An,"=",Dr,".dtype;","}else{",Dr,"=",Ur,".getBuffer(",Ae,");","if(",Dr,"){",An,"=",Dr,".dtype;",'}else if("constant" in ',Ae,"){",Vr.state,"=",xi,";","if(typeof "+Ae+'.constant === "number"){',Vr[fi[0]],"=",Ae,".constant;",fi.slice(1).map(function(xn){return Vr[xn]}).join("="),"=0;","}else{",fi.map(function(xn,bn){return Vr[xn]+"="+Ae+".constant.length>"+bn+"?"+Ae+".constant["+bn+"]:0;"}).join(""),"}}else{","if(",fr,"(",Ae,".buffer)){",Dr,"=",Ur,".createStream(",Ef,",",Ae,".buffer);","}else{",Dr,"=",Ur,".getBuffer(",Ae,".buffer);","}",An,'="type" in ',Ae,"?",Ct.glTypes,"[",Ae,".type]:",Dr,".dtype;",Vr.normalized,"=!!",Ae,".normalized;");function cn(xn){Ze(Vr[xn],"=",Ae,".",xn,"|0;")}return cn("size"),cn("offset"),cn("stride"),cn("divisor"),Ze("}}"),Ze.exit("if(",Vr.isStream,"){",Ur,".destroyStream(",Dr,");","}"),Vr}Lt[Ke]=Ys(Fe,nt)}),Lt}function Ha(Se){var ue=Se.static,Ge=Se.dynamic,lt={};return Object.keys(ue).forEach(function(Lt){var Ke=ue[Lt];lt[Lt]=Ao(function(Fe,nt){return typeof Ke=="number"||typeof Ke=="boolean"?""+Ke:Fe.link(Ke)})}),Object.keys(Ge).forEach(function(Lt){var Ke=Ge[Lt];lt[Lt]=Ys(Ke,function(Fe,nt){return Fe.invoke(nt,Ke)})}),lt}function as(Se,ue,Ge,lt,Lt){var Ke=Se.static,Fe=Se.dynamic;me.optional(function(){var cn=[Ru,Zl,Xu,nu,go,bf,gc,Wc,Hc,yc].concat(Un);function xn(bn){Object.keys(bn).forEach(function(dn){me.command(cn.indexOf(dn)>=0,'unknown parameter "'+dn+'"',Lt.commandStr)})}xn(Ke),xn(Fe)});var nt=ui(Se,ue),xe=en(Se,Lt),Ze=ni(Se,xe,Lt),Ae=Ga(Se,Lt),ct=no(Se,Lt),Ct=Ni(Se,Lt,nt);function fr(cn){var xn=Ze[cn];xn&&(ct[cn]=xn)}fr(mo),fr(Sn(Gc));var Ur=Object.keys(ct).length>0,Vr={framebuffer:xe,draw:Ae,shader:Ct,state:ct,dirty:Ur,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Vr.profile=jr(Se,Lt),Vr.uniforms=Zi(Ge,Lt),Vr.drawVAO=Vr.scopeVAO=Ae.vao,!Vr.drawVAO&&Ct.program&&!nt&&Be.angle_instanced_arrays&&Ae.static.elements){var sn=!0,Dr=Ct.program.attributes.map(function(cn){var xn=ue.static[cn];return sn=sn&&!!xn,xn});if(sn&&Dr.length>0){var An=xr.getVAO(xr.createVAO({attributes:Dr,elements:Ae.static.elements}));Vr.drawVAO=new va(null,null,null,function(cn,xn){return cn.link(An)}),Vr.useVAO=!0}}return nt?Vr.useVAO=!0:Vr.attributes=ss(ue,Lt),Vr.context=Ha(lt,Lt),Vr}function wo(Se,ue,Ge){var lt=Se.shared,Lt=lt.context,Ke=Se.scope();Object.keys(Ge).forEach(function(Fe){ue.save(Lt,"."+Fe);var nt=Ge[Fe],xe=nt.append(Se,ue);Array.isArray(xe)?Ke(Lt,".",Fe,"=[",xe.join(),"];"):Ke(Lt,".",Fe,"=",xe,";")}),ue(Ke)}function Wo(Se,ue,Ge,lt){var Lt=Se.shared,Ke=Lt.gl,Fe=Lt.framebuffer,nt;Br&&(nt=ue.def(Lt.extensions,".webgl_draw_buffers"));var xe=Se.constants,Ze=xe.drawBuffer,Ae=xe.backBuffer,ct;Ge?ct=Ge.append(Se,ue):ct=ue.def(Fe,".next"),lt||ue("if(",ct,"!==",Fe,".cur){"),ue("if(",ct,"){",Ke,".bindFramebuffer(",Xp,",",ct,".framebuffer);"),Br&&ue(nt,".drawBuffersWEBGL(",Ze,"[",ct,".colorAttachments.length]);"),ue("}else{",Ke,".bindFramebuffer(",Xp,",null);"),Br&&ue(nt,".drawBuffersWEBGL(",Ae,");"),ue("}",Fe,".cur=",ct,";"),lt||ue("}")}function Xo(Se,ue,Ge){var lt=Se.shared,Lt=lt.gl,Ke=Se.current,Fe=Se.next,nt=lt.current,xe=lt.next,Ze=Se.cond(nt,".dirty");Un.forEach(function(Ae){var ct=Sn(Ae);if(!(ct in Ge.state)){var Ct,fr;if(ct in Fe){Ct=Fe[ct],fr=Ke[ct];var Ur=He(or[ct].length,function(sn){return Ze.def(Ct,"[",sn,"]")});Ze(Se.cond(Ur.map(function(sn,Dr){return sn+"!=="+fr+"["+Dr+"]"}).join("||")).then(Lt,".",ir[ct],"(",Ur,");",Ur.map(function(sn,Dr){return fr+"["+Dr+"]="+sn}).join(";"),";"))}else{Ct=Ze.def(xe,".",ct);var Vr=Se.cond(Ct,"!==",nt,".",ct);Ze(Vr),ct in tr?Vr(Se.cond(Ct).then(Lt,".enable(",tr[ct],");").else(Lt,".disable(",tr[ct],");"),nt,".",ct,"=",Ct,";"):Vr(Lt,".",ir[ct],"(",Ct,");",nt,".",ct,"=",Ct,";")}}}),Object.keys(Ge.state).length===0&&Ze(nt,".dirty=false;"),ue(Ze)}function bs(Se,ue,Ge,lt){var Lt=Se.shared,Ke=Se.current,Fe=Lt.current,nt=Lt.gl;sp(Object.keys(Ge)).forEach(function(xe){var Ze=Ge[xe];if(!(lt&&!lt(Ze))){var Ae=Ze.append(Se,ue);if(tr[xe]){var ct=tr[xe];Gl(Ze)?Ae?ue(nt,".enable(",ct,");"):ue(nt,".disable(",ct,");"):ue(Se.cond(Ae).then(nt,".enable(",ct,");").else(nt,".disable(",ct,");")),ue(Fe,".",xe,"=",Ae,";")}else if(uo(Ae)){var Ct=Ke[xe];ue(nt,".",ir[xe],"(",Ae,");",Ae.map(function(fr,Ur){return Ct+"["+Ur+"]="+fr}).join(";"),";")}else ue(nt,".",ir[xe],"(",Ae,");",Fe,".",xe,"=",Ae,";")}})}function io(Se,ue){br&&(Se.instancing=ue.def(Se.shared.extensions,".angle_instanced_arrays"))}function Si(Se,ue,Ge,lt,Lt){var Ke=Se.shared,Fe=Se.stats,nt=Ke.current,xe=Ke.timer,Ze=Ge.profile;function Ae(){var cn=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;return cn||typeof performance=="undefined"?"Date.now()":"performance.now()"}var ct,Ct;function fr(cn){ct=ue.def(),cn(ct,"=",Ae(),";"),typeof Lt=="string"?cn(Fe,".count+=",Lt,";"):cn(Fe,".count++;"),_r&&(lt?(Ct=ue.def(),cn(Ct,"=",xe,".getNumPendingQueries();")):cn(xe,".beginQuery(",Fe,");"))}function Ur(cn){cn(Fe,".cpuTime+=",Ae(),"-",ct,";"),_r&&(lt?cn(xe,".pushScopeStats(",Ct,",",xe,".getNumPendingQueries(),",Fe,");"):cn(xe,".endQuery();"))}function Vr(cn){var xn=ue.def(nt,".profile");ue(nt,".profile=",cn,";"),ue.exit(nt,".profile=",xn,";")}var sn;if(Ze){if(Gl(Ze)){Ze.enable?(fr(ue),Ur(ue.exit),Vr("true")):Vr("false");return}sn=Ze.append(Se,ue),Vr(sn)}else sn=ue.def(nt,".profile");var Dr=Se.block();fr(Dr),ue("if(",sn,"){",Dr,"}");var An=Se.block();Ur(An),ue.exit("if(",sn,"){",An,"}")}function Yo(Se,ue,Ge,lt,Lt){var Ke=Se.shared;function Fe(xe){switch(xe){case qf:case Ih:case Qf:return 2;case jl:case _c:case Sf:return 3;case Sl:case Oh:case Kc:return 4;default:return 1}}function nt(xe,Ze,Ae){var ct=Ke.gl,Ct=ue.def(xe,".location"),fr=ue.def(Ke.attributes,"[",Ct,"]"),Ur=Ae.state,Vr=Ae.buffer,sn=[Ae.x,Ae.y,Ae.z,Ae.w],Dr=["buffer","normalized","offset","stride"];function An(){ue("if(!",fr,".buffer){",ct,".enableVertexAttribArray(",Ct,");}");var xn=Ae.type,bn;if(Ae.size?bn=ue.def(Ae.size,"||",Ze):bn=Ze,ue("if(",fr,".type!==",xn,"||",fr,".size!==",bn,"||",Dr.map(function(Jn){return fr+"."+Jn+"!=="+Ae[Jn]}).join("||"),"){",ct,".bindBuffer(",Ef,",",Vr,".buffer);",ct,".vertexAttribPointer(",[Ct,bn,xn,Ae.normalized,Ae.stride,Ae.offset],");",fr,".type=",xn,";",fr,".size=",bn,";",Dr.map(function(Jn){return fr+"."+Jn+"="+Ae[Jn]+";"}).join(""),"}"),br){var dn=Ae.divisor;ue("if(",fr,".divisor!==",dn,"){",Se.instancing,".vertexAttribDivisorANGLE(",[Ct,dn],");",fr,".divisor=",dn,";}")}}function cn(){ue("if(",fr,".buffer){",ct,".disableVertexAttribArray(",Ct,");",fr,".buffer=null;","}if(",fi.map(function(xn,bn){return fr+"."+xn+"!=="+sn[bn]}).join("||"),"){",ct,".vertexAttrib4f(",Ct,",",sn,");",fi.map(function(xn,bn){return fr+"."+xn+"="+sn[bn]+";"}).join(""),"}")}Ur===Xn?An():Ur===xi?cn():(ue("if(",Ur,"===",Xn,"){"),An(),ue("}else{"),cn(),ue("}"))}lt.forEach(function(xe){var Ze=xe.name,Ae=Ge.attributes[Ze],ct;if(Ae){if(!Lt(Ae))return;ct=Ae.append(Se,ue)}else{if(!Lt(Yp))return;var Ct=Se.scopeAttrib(Ze);me.optional(function(){Se.assert(ue,Ct+".state","missing attribute "+Ze)}),ct={},Object.keys(new ut).forEach(function(fr){ct[fr]=ue.def(Ct,".",fr)})}nt(Se.link(xe),Fe(xe.info.type),ct)})}function ra(Se,ue,Ge,lt,Lt,Ke){for(var Fe=Se.shared,nt=Fe.gl,xe,Ze=0;Ze1){for(var ls=[],Ia=[],pa=0;pa=0","missing vertex count")})):(dn=Jn.def(Fe,".",gc),me.optional(function(){Se.assert(Jn,dn+">=0","missing vertex count")})),dn}var Ae=xe();function ct(bn){var dn=nt[bn];return dn?dn.contextDep&<.contextDynamic||dn.propDep?dn.append(Se,Ge):dn.append(Se,ue):ue.def(Fe,".",bn)}var Ct=ct(go),fr=ct(bf),Ur=Ze();if(typeof Ur=="number"){if(Ur===0)return}else Ge("if(",Ur,"){"),Ge.exit("}");var Vr,sn;br&&(Vr=ct(Wc),sn=Se.instancing);var Dr=Ae+".type",An=nt.elements&&Gl(nt.elements)&&!nt.vaoActive;function cn(){function bn(){Ge(sn,".drawElementsInstancedANGLE(",[Ct,Ur,Dr,fr+"<<(("+Dr+"-"+ii+")>>1)",Vr],");")}function dn(){Ge(sn,".drawArraysInstancedANGLE(",[Ct,fr,Ur,Vr],");")}Ae&&Ae!=="null"?An?bn():(Ge("if(",Ae,"){"),bn(),Ge("}else{"),dn(),Ge("}")):dn()}function xn(){function bn(){Ge(Ke+".drawElements("+[Ct,Ur,Dr,fr+"<<(("+Dr+"-"+ii+")>>1)"]+");")}function dn(){Ge(Ke+".drawArrays("+[Ct,fr,Ur]+");")}Ae&&Ae!=="null"?An?bn():(Ge("if(",Ae,"){"),bn(),Ge("}else{"),dn(),Ge("}")):dn()}br&&(typeof Vr!="number"||Vr>=0)?typeof Vr=="string"?(Ge("if(",Vr,">0){"),cn(),Ge("}else if(",Vr,"<0){"),xn(),Ge("}")):cn():xn()}function oi(Se,ue,Ge,lt,Lt){var Ke=Gn(),Fe=Ke.proc("body",Lt);return me.optional(function(){Ke.commandStr=ue.commandStr,Ke.command=Ke.link(ue.commandStr)}),br&&(Ke.instancing=Fe.def(Ke.shared.extensions,".angle_instanced_arrays")),Se(Ke,Fe,Ge,lt),Ke.compile().body}function zi(Se,ue,Ge,lt){io(Se,ue),Ge.useVAO?Ge.drawVAO?ue(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,ue),");"):ue(Se.shared.vao,".setVAO(",Se.shared.vao,".targetVAO);"):(ue(Se.shared.vao,".setVAO(null);"),Yo(Se,ue,Ge,lt.attributes,function(){return!0})),ra(Se,ue,Ge,lt.uniforms,function(){return!0},!1),us(Se,ue,ue,Ge)}function ua(Se,ue){var Ge=Se.proc("draw",1);io(Se,Ge),wo(Se,Ge,ue.context),Wo(Se,Ge,ue.framebuffer),Xo(Se,Ge,ue),bs(Se,Ge,ue.state),Si(Se,Ge,ue,!1,!0);var lt=ue.shader.progVar.append(Se,Ge);if(Ge(Se.shared.gl,".useProgram(",lt,".program);"),ue.shader.program)zi(Se,Ge,ue,ue.shader.program);else{Ge(Se.shared.vao,".setVAO(null);");var Lt=Se.global.def("{}"),Ke=Ge.def(lt,".id"),Fe=Ge.def(Lt,"[",Ke,"]");Ge(Se.cond(Fe).then(Fe,".call(this,a0);").else(Fe,"=",Lt,"[",Ke,"]=",Se.link(function(nt){return oi(zi,Se,ue,nt,1)}),"(",lt,");",Fe,".call(this,a0);"))}Object.keys(ue.state).length>0&&Ge(Se.shared.current,".dirty=true;"),Se.shared.vao&&Ge(Se.shared.vao,".setVAO(null);")}function To(Se,ue,Ge,lt){Se.batchId="a1",io(Se,ue);function Lt(){return!0}Yo(Se,ue,Ge,lt.attributes,Lt),ra(Se,ue,Ge,lt.uniforms,Lt,!1),us(Se,ue,ue,Ge)}function wl(Se,ue,Ge,lt){io(Se,ue);var Lt=Ge.contextDep,Ke=ue.def(),Fe="a0",nt="a1",xe=ue.def();Se.shared.props=xe,Se.batchId=Ke;var Ze=Se.scope(),Ae=Se.scope();ue(Ze.entry,"for(",Ke,"=0;",Ke,"<",nt,";++",Ke,"){",xe,"=",Fe,"[",Ke,"];",Ae,"}",Ze.exit);function ct(Dr){return Dr.contextDep&&Lt||Dr.propDep}function Ct(Dr){return!ct(Dr)}if(Ge.needsContext&&wo(Se,Ae,Ge.context),Ge.needsFramebuffer&&Wo(Se,Ae,Ge.framebuffer),bs(Se,Ae,Ge.state,ct),Ge.profile&&ct(Ge.profile)&&Si(Se,Ae,Ge,!1,!0),lt)Ge.useVAO?Ge.drawVAO?ct(Ge.drawVAO)?Ae(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,Ae),");"):Ze(Se.shared.vao,".setVAO(",Ge.drawVAO.append(Se,Ze),");"):Ze(Se.shared.vao,".setVAO(",Se.shared.vao,".targetVAO);"):(Ze(Se.shared.vao,".setVAO(null);"),Yo(Se,Ze,Ge,lt.attributes,Ct),Yo(Se,Ae,Ge,lt.attributes,ct)),ra(Se,Ze,Ge,lt.uniforms,Ct,!1),ra(Se,Ae,Ge,lt.uniforms,ct,!0),us(Se,Ze,Ae,Ge);else{var fr=Se.global.def("{}"),Ur=Ge.shader.progVar.append(Se,Ae),Vr=Ae.def(Ur,".id"),sn=Ae.def(fr,"[",Vr,"]");Ae(Se.shared.gl,".useProgram(",Ur,".program);","if(!",sn,"){",sn,"=",fr,"[",Vr,"]=",Se.link(function(Dr){return oi(To,Se,Ge,Dr,2)}),"(",Ur,");}",sn,".call(this,a0[",Ke,"],",Ke,");")}}function Te(Se,ue){var Ge=Se.proc("batch",2);Se.batchId="0",io(Se,Ge);var lt=!1,Lt=!0;Object.keys(ue.context).forEach(function(fr){lt=lt||ue.context[fr].propDep}),lt||(wo(Se,Ge,ue.context),Lt=!1);var Ke=ue.framebuffer,Fe=!1;Ke?(Ke.propDep?lt=Fe=!0:Ke.contextDep&<&&(Fe=!0),Fe||Wo(Se,Ge,Ke)):Wo(Se,Ge,null),ue.state.viewport&&ue.state.viewport.propDep&&(lt=!0);function nt(fr){return fr.contextDep&<||fr.propDep}Xo(Se,Ge,ue),bs(Se,Ge,ue.state,function(fr){return!nt(fr)}),(!ue.profile||!nt(ue.profile))&&Si(Se,Ge,ue,!1,"a1"),ue.contextDep=lt,ue.needsContext=Lt,ue.needsFramebuffer=Fe;var xe=ue.shader.progVar;if(xe.contextDep&<||xe.propDep)wl(Se,Ge,ue,null);else{var Ze=xe.append(Se,Ge);if(Ge(Se.shared.gl,".useProgram(",Ze,".program);"),ue.shader.program)wl(Se,Ge,ue,ue.shader.program);else{Ge(Se.shared.vao,".setVAO(null);");var Ae=Se.global.def("{}"),ct=Ge.def(Ze,".id"),Ct=Ge.def(Ae,"[",ct,"]");Ge(Se.cond(Ct).then(Ct,".call(this,a0,a1);").else(Ct,"=",Ae,"[",ct,"]=",Se.link(function(fr){return oi(wl,Se,ue,fr,2)}),"(",Ze,");",Ct,".call(this,a0,a1);"))}}Object.keys(ue.state).length>0&&Ge(Se.shared.current,".dirty=true;"),Se.shared.vao&&Ge(Se.shared.vao,".setVAO(null);")}function Ut(Se,ue){var Ge=Se.proc("scope",3);Se.batchId="a2";var lt=Se.shared,Lt=lt.current;wo(Se,Ge,ue.context),ue.framebuffer&&ue.framebuffer.append(Se,Ge),sp(Object.keys(ue.state)).forEach(function(Fe){var nt=ue.state[Fe],xe=nt.append(Se,Ge);uo(xe)?xe.forEach(function(Ze,Ae){Ge.set(Se.next[Fe],"["+Ae+"]",Ze)}):Ge.set(lt.next,"."+Fe,xe)}),Si(Se,Ge,ue,!0,!0),[nu,bf,gc,Wc,go].forEach(function(Fe){var nt=ue.draw[Fe];!nt||Ge.set(lt.draw,"."+Fe,""+nt.append(Se,Ge))}),Object.keys(ue.uniforms).forEach(function(Fe){var nt=ue.uniforms[Fe].append(Se,Ge);Array.isArray(nt)&&(nt="["+nt.join()+"]"),Ge.set(lt.uniforms,"["+ge.id(Fe)+"]",nt)}),Object.keys(ue.attributes).forEach(function(Fe){var nt=ue.attributes[Fe].append(Se,Ge),xe=Se.scopeAttrib(Fe);Object.keys(new ut).forEach(function(Ze){Ge.set(xe,"."+Ze,nt[Ze])})}),ue.scopeVAO&&Ge.set(lt.vao,".targetVAO",ue.scopeVAO.append(Se,Ge));function Ke(Fe){var nt=ue.shader[Fe];nt&&Ge.set(lt.shader,"."+Fe,nt.append(Se,Ge))}Ke(Zl),Ke(Xu),Object.keys(ue.state).length>0&&(Ge(Lt,".dirty=true;"),Ge.exit(Lt,".dirty=true;")),Ge("a1(",Se.shared.context,",a0,",Se.batchId,");")}function St(Se){if(!(typeof Se!="object"||uo(Se))){for(var ue=Object.keys(Se),Ge=0;Ge=0;--oi){var zi=Jr[oi];zi&&zi(_r,null,0)}Be.flush(),xr&&xr.update()}function ui(){!en&&Jr.length>0&&(en=Di.next(ni))}function Ni(){en&&(Di.cancel(ni),en=null)}function Ga(oi){oi.preventDefault(),sr=!0,Ni(),Ei.forEach(function(zi){zi()})}function no(oi){Be.getError(),sr=!1,kt.restore(),zr.restore(),br.restore(),Un.restore(),tr.restore(),ir.restore(),cr.restore(),xr&&xr.restore(),Sn.procs.refresh(),ui(),Gn.forEach(function(zi){zi()})}var Zi=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0;!Zi&&Hr&&(Hr.addEventListener(wf,Ga,!1),Hr.addEventListener(Sa,no,!1));function ss(){Jr.length=0,Ni(),!Zi&&Hr&&(Hr.removeEventListener(wf,Ga),Hr.removeEventListener(Sa,no)),zr.clear(),ir.clear(),tr.clear(),cr.clear(),Un.clear(),Br.clear(),br.clear(),xr&&xr.clear(),jr.forEach(function(oi){oi()})}function Ha(oi){me(!!oi,"invalid args to regl({...})"),me.type(oi,"object","invalid args to regl({...})");function zi(Ke){var Fe=m({},Ke);delete Fe.uniforms,delete Fe.attributes,delete Fe.context,delete Fe.vao,"stencil"in Fe&&Fe.stencil.op&&(Fe.stencil.opBack=Fe.stencil.opFront=Fe.stencil.op,delete Fe.stencil.op);function nt(xe){if(xe in Fe){var Ze=Fe[xe];delete Fe[xe],Object.keys(Ze).forEach(function(Ae){Fe[xe+"."+Ae]=Ze[Ae]})}}return nt("blend"),nt("depth"),nt("cull"),nt("stencil"),nt("polygonOffset"),nt("scissor"),nt("sample"),"vao"in Ke&&(Fe.vao=Ke.vao),Fe}function ua(Ke,Fe){var nt={},xe={};return Object.keys(Ke).forEach(function(Ze){var Ae=Ke[Ze];if(fn.isDynamic(Ae)){xe[Ze]=fn.unbox(Ae,Ze);return}else if(Fe&&Array.isArray(Ae)){for(var ct=0;ct0)return Se.call(this,lt(Ke|0),Ke|0)}else if(Array.isArray(Ke)){if(Ke.length)return Se.call(this,Ke,Ke.length)}else return Hi.call(this,Ke)}return m(Lt,{stats:St,destroy:function(){mn.destroy()}})}var as=ir.setFBO=Ha({framebuffer:fn.define.call(null,ih,"framebuffer")});function wo(oi,zi){var ua=0;Sn.procs.poll();var To=zi.color;To&&(Be.clearColor(+To[0]||0,+To[1]||0,+To[2]||0,+To[3]||0),ua|=Kp),"depth"in zi&&(Be.clearDepth(+zi.depth),ua|=Af),"stencil"in zi&&(Be.clearStencil(zi.stencil|0),ua|=lp),me(!!ua,"called regl.clear with no buffer specified"),Be.clear(ua)}function Wo(oi){if(me(typeof oi=="object"&&oi,"regl.clear() takes an object as input"),"framebuffer"in oi)if(oi.framebuffer&&oi.framebuffer_reglType==="framebufferCube")for(var zi=0;zi<6;++zi)as(m({framebuffer:oi.framebuffer.faces[zi]},oi),wo);else as(oi,wo);else wo(null,oi)}function Xo(oi){me.type(oi,"function","regl.frame() callback must be a function"),Jr.push(oi);function zi(){var ua=cp(Jr,oi);me(ua>=0,"cannot cancel a frame twice");function To(){var wl=cp(Jr,To);Jr[wl]=Jr[Jr.length-1],Jr.length-=1,Jr.length<=0&&Ni()}Jr[ua]=To}return ui(),{cancel:zi}}function bs(){var oi=Sr.viewport,zi=Sr.scissor_box;oi[0]=oi[1]=zi[0]=zi[1]=0,_r.viewportWidth=_r.framebufferWidth=_r.drawingBufferWidth=oi[2]=zi[2]=Be.drawingBufferWidth,_r.viewportHeight=_r.framebufferHeight=_r.drawingBufferHeight=oi[3]=zi[3]=Be.drawingBufferHeight}function io(){_r.tick+=1,_r.time=Yo(),bs(),Sn.procs.poll()}function Si(){Un.refresh(),bs(),Sn.procs.refresh(),xr&&xr.update()}function Yo(){return(to()-Tr)/1e3}Si();function ra(oi,zi){me.type(zi,"function","listener callback must be a function");var ua;switch(oi){case"frame":return Xo(zi);case"lost":ua=Ei;break;case"restore":ua=Gn;break;case"destroy":ua=jr;break;default:me.raise("invalid event, must be one of frame,lost,restore,destroy")}return ua.push(zi),{cancel:function(){for(var To=0;To=0},read:Xr,destroy:ss,_gl:Be,_refresh:Si,poll:function(){io(),xr&&xr.update()},now:Yo,stats:hr});return ge.onDone(null,us),us}return kd})},77412:function(It){function $(U,ae){for(var re=-1,m=U==null?0:U.length;++re-1}It.exports=re},1196:function(It){function $(U,ae,re){for(var m=-1,ve=U==null?0:U.length;++m=ae?U:ae)),U}It.exports=$},85990:function(It,$,U){var ae=U(46384),re=U(77412),m=U(34865),ve=U(44037),Z=U(63886),le=U(64626),fe=U(278),Le=U(18805),J=U(1911),Xe=U(58234),et=U(46904),Ue=U(64160),gt=U(43824),rr=U(29148),xt=U(38517),Yt=U(1469),Et=U(44144),at=U(56688),it=U(13218),Zt=U(72928),Y=U(3674),$t=U(81704),ft=1,Je=2,At=4,Qe="[object Arguments]",Qt="[object Array]",Er="[object Boolean]",Nr="[object Date]",tn="[object Error]",A="[object Function]",Ce="[object GeneratorFunction]",De="[object Map]",wt="[object Number]",mt="[object Object]",Bt="[object RegExp]",Kt="[object Set]",Cr="[object String]",ei="[object Symbol]",vn="[object WeakMap]",di="[object ArrayBuffer]",Wn="[object DataView]",si="[object Float32Array]",vi="[object Float64Array]",qn="[object Int8Array]",mi="[object Int16Array]",aa="[object Int32Array]",Wi="[object Uint8Array]",Oi="[object Uint8ClampedArray]",Ki="[object Uint16Array]",oa="[object Uint32Array]",Mi={};Mi[Qe]=Mi[Qt]=Mi[di]=Mi[Wn]=Mi[Er]=Mi[Nr]=Mi[si]=Mi[vi]=Mi[qn]=Mi[mi]=Mi[aa]=Mi[De]=Mi[wt]=Mi[mt]=Mi[Bt]=Mi[Kt]=Mi[Cr]=Mi[ei]=Mi[Wi]=Mi[Oi]=Mi[Ki]=Mi[oa]=!0,Mi[tn]=Mi[A]=Mi[vn]=!1;function da($n,wi,ji,$i,zo,me){var Dn,Za=wi&ft,hs=wi&Je,Nt=wi&At;if(ji&&(Dn=zo?ji($n,$i,zo,me):ji($n)),Dn!==void 0)return Dn;if(!it($n))return $n;var nr=Yt($n);if(nr){if(Dn=gt($n),!Za)return fe($n,Dn)}else{var Ar=Ue($n),rn=Ar==A||Ar==Ce;if(Et($n))return le($n,Za);if(Ar==mt||Ar==Qe||rn&&!zo){if(Dn=hs||rn?{}:xt($n),!Za)return hs?J($n,Z(Dn,$n)):Le($n,ve(Dn,$n))}else{if(!Mi[Ar])return zo?$n:{};Dn=rr($n,Ar,Za)}}me||(me=new ae);var wn=me.get($n);if(wn)return wn;me.set($n,Dn),Zt($n)?$n.forEach(function(ti){Dn.add(da(ti,wi,ji,ti,$n,me))}):at($n)&&$n.forEach(function(ti,fn){Dn.set(fn,da(ti,wi,ji,fn,$n,me))});var Fn=Nt?hs?et:Xe:hs?$t:Y,gi=nr?void 0:Fn($n);return re(gi||$n,function(ti,fn){gi&&(fn=ti,ti=$n[fn]),m(Dn,fn,da(ti,wi,ji,fn,$n,me))}),Dn}It.exports=da},41848:function(It){function $(U,ae,re,m){for(var ve=U.length,Z=re+(m?1:-1);m?Z--:++Z=fe){var at=Xe?null:Z(J);if(at)return le(at);xt=!1,gt=ve,Et=new ae}else Et=Xe?[]:Yt;e:for(;++Ue(p=1))return p;for(;ub?u=y:p=y,y=.5*(p-u)+u}return y},le.prototype.solve=function(t,o){return this.sampleCurveY(this.solveCurveX(t,o))};var fe=Le;function Le(t,o){this.x=t,this.y=o}Le.prototype={clone:function(){return new Le(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,o){return this.clone()._rotateAround(t,o)},matMult:function(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var o=t.x-this.x,u=t.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,o){return Math.atan2(this.x*o-this.y*t,this.x*t+this.y*o)},_matMult:function(t){var o=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=o,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var o=Math.cos(t),u=Math.sin(t),p=u*this.x+o*this.y;return this.x=o*this.x-u*this.y,this.y=p,this},_rotateAround:function(t,o){var u=Math.cos(t),p=Math.sin(t),y=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=o.x+u*(this.x-o.x)-p*(this.y-o.y),this.y=y,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Le.convert=function(t){return t instanceof Le?t:Array.isArray(t)?new Le(t[0],t[1]):t};var J=typeof self!="undefined"?self:{},Xe=Math.pow(2,53)-1;function et(t,o,u,p){var y=new Z(t,o,u,p);return function(b){return y.solve(b)}}var Ue=et(.25,.1,.25,1);function gt(t,o,u){return Math.min(u,Math.max(o,t))}function rr(t,o,u){var p=u-o,y=((t-o)%p+p)%p+o;return y===o?u:y}function xt(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,y=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function it(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function Zt(t,o){t.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function Y(t,o){return t.indexOf(o,t.length-o.length)!==-1}function $t(t,o,u){var p={};for(var y in t)p[y]=o.call(u||this,t[y],y,t);return p}function ft(t,o,u){var p={};for(var y in t)o.call(u||this,t[y],y,t)&&(p[y]=t[y]);return p}function Je(t){return Array.isArray(t)?t.map(Je):typeof t=="object"&&t?$t(t,Je):t}var At={};function Qe(t){At[t]||(typeof console!="undefined"&&console.warn(t),At[t]=!0)}function Qt(t,o,u){return(u.y-t.y)*(o.x-t.x)>(o.y-t.y)*(u.x-t.x)}function Er(t){for(var o=0,u=0,p=t.length,y=p-1,b=void 0,S=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(p,y,b,S){var I=b||S;return o[y]=!I||I.toLowerCase(),""}),o["max-age"]){var u=parseInt(o["max-age"],10);isNaN(u)?delete o["max-age"]:o["max-age"]=u}return o}var A=null;function Ce(t){if(A==null){var o=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!o||!(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return A}function De(t){try{var o=J[t];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}var wt,mt,Bt,Kt,Cr=J.performance&&J.performance.now?J.performance.now.bind(J.performance):Date.now.bind(Date),ei=J.requestAnimationFrame||J.mozRequestAnimationFrame||J.webkitRequestAnimationFrame||J.msRequestAnimationFrame,vn=J.cancelAnimationFrame||J.mozCancelAnimationFrame||J.webkitCancelAnimationFrame||J.msCancelAnimationFrame,di={now:Cr,frame:function(t){var o=ei(t);return{cancel:function(){return vn(o)}}},getImageData:function(t,o){o===void 0&&(o=0);var u=J.document.createElement("canvas"),p=u.getContext("2d");if(!p)throw new Error("failed to create canvas 2d context");return u.width=t.width,u.height=t.height,p.drawImage(t,0,0,t.width,t.height),p.getImageData(-o,-o,t.width+2*o,t.height+2*o)},resolveURL:function(t){return wt||(wt=J.document.createElement("a")),wt.href=t,wt.href},hardwareConcurrency:J.navigator&&J.navigator.hardwareConcurrency||4,get devicePixelRatio(){return J.devicePixelRatio},get prefersReducedMotion(){return!!J.matchMedia&&(mt==null&&(mt=J.matchMedia("(prefers-reduced-motion: reduce)")),mt.matches)}},Wn={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},si={supported:!1,testSupport:function(t){!vi&&Kt&&(qn?mi(t):Bt=t)}},vi=!1,qn=!1;function mi(t){var o=t.createTexture();t.bindTexture(t.TEXTURE_2D,o);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,Kt),t.isContextLost())return;si.supported=!0}catch(u){}t.deleteTexture(o),vi=!0}J.document&&((Kt=J.document.createElement("img")).onload=function(){Bt&&mi(Bt),Bt=null,qn=!0},Kt.onerror=function(){vi=!0,Bt=null},Kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var aa="01",Wi=function(t,o){this._transformRequestFn=t,this._customAccessToken=o,this._createSkuToken()};function Oi(t){return t.indexOf("mapbox:")===0}Wi.prototype._createSkuToken=function(){var t=function(){for(var o="",u=0;u<10;u++)o+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",aa,o].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},Wi.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Wi.prototype.transformRequest=function(t,o){return this._transformRequestFn&&this._transformRequestFn(t,o)||{url:t}},Wi.prototype.normalizeStyleURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/styles/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeGlyphsURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/fonts/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeSourceURL=function(t,o){if(!Oi(t))return t;var u=da(t);return u.path="/v4/"+u.authority+".json",u.params.push("secure"),this._makeAPIURL(u,this._customAccessToken||o)},Wi.prototype.normalizeSpriteURL=function(t,o,u,p){var y=da(t);return Oi(t)?(y.path="/styles/v1"+y.path+"/sprite"+o+u,this._makeAPIURL(y,this._customAccessToken||p)):(y.path+=""+o+u,$n(y))},Wi.prototype.normalizeTileURL=function(t,o){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Oi(t))return t;var u=da(t);u.path=u.path.replace(/(\.(png|jpg)\d*)(?=$)/,(di.devicePixelRatio>=2||o===512?"@2x":"")+(si.supported?".webp":"$1")),u.path=u.path.replace(/^.+\/v4\//,"/"),u.path="/v4"+u.path;var p=this._customAccessToken||function(y){for(var b=0,S=y;b=0&&t.params.splice(y,1)}if(p.path!=="/"&&(t.path=""+p.path+t.path),!Wn.REQUIRE_ACCESS_TOKEN)return $n(t);if(!(o=o||Wn.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+u);if(o[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+u);return t.params=t.params.filter(function(b){return b.indexOf("access_token")===-1}),t.params.push("access_token="+o),$n(t)};var Ki=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function oa(t){return Ki.test(t)}var Mi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function da(t){var o=t.match(Mi);if(!o)throw new Error("Unable to parse URL object");return{protocol:o[1],authority:o[2],path:o[3]||"/",params:o[4]?o[4].split("&"):[]}}function $n(t){var o=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+o}function wi(t){if(!t)return null;var o=t.split(".");if(!o||o.length!==3)return null;try{return JSON.parse(decodeURIComponent(J.atob(o[1]).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(u){return null}}var ji=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ji.prototype.getStorageKey=function(t){var o,u=wi(Wn.ACCESS_TOKEN);return o=u&&u.u?J.btoa(encodeURIComponent(u.u).replace(/%([0-9A-F]{2})/g,function(p,y){return String.fromCharCode(Number("0x"+y))})):Wn.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+o:"mapbox.eventData:"+o},ji.prototype.fetchEventData=function(){var t=De("localStorage"),o=this.getStorageKey(),u=this.getStorageKey("uuid");if(t)try{var p=J.localStorage.getItem(o);p&&(this.eventData=JSON.parse(p));var y=J.localStorage.getItem(u);y&&(this.anonId=y)}catch(b){Qe("Unable to read from LocalStorage")}},ji.prototype.saveEventData=function(){var t=De("localStorage"),o=this.getStorageKey(),u=this.getStorageKey("uuid");if(t)try{J.localStorage.setItem(u,this.anonId),Object.keys(this.eventData).length>=1&&J.localStorage.setItem(o,JSON.stringify(this.eventData))}catch(p){Qe("Unable to write to LocalStorage")}},ji.prototype.processRequests=function(t){},ji.prototype.postEvent=function(t,o,u,p){var y=this;if(Wn.EVENTS_URL){var b=da(Wn.EVENTS_URL);b.params.push("access_token="+(p||Wn.ACCESS_TOKEN||""));var S={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.2",skuId:aa,userId:this.anonId},I=o?xt(S,o):S,D={url:$n(b),headers:{"Content-Type":"text/plain"},body:JSON.stringify([I])};this.pendingRequest=xa(D,function(z){y.pendingRequest=null,u(z),y.saveEventData(),y.processRequests(p)})}},ji.prototype.queueRequest=function(t,o){this.queue.push(t),this.processRequests(o)};var $i,zo,me=function(t){function o(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.postMapLoadEvent=function(u,p,y,b){this.skuToken=y,(Wn.EVENTS_URL&&b||Wn.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(S){return Oi(S)||oa(S)}))&&this.queueRequest({id:p,timestamp:Date.now()},b)},o.prototype.processRequests=function(u){var p=this;if(!this.pendingRequest&&this.queue.length!==0){var y=this.queue.shift(),b=y.id,S=y.timestamp;b&&this.success[b]||(this.anonId||this.fetchEventData(),it(this.anonId)||(this.anonId=at()),this.postEvent(S,{skuToken:this.skuToken},function(I){I||b&&(p.success[b]=!0)},u))}},o}(ji),Dn=new(function(t){function o(u){t.call(this,"appUserTurnstile"),this._customAccessToken=u}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.postTurnstileEvent=function(u,p){Wn.EVENTS_URL&&Wn.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(y){return Oi(y)||oa(y)})&&this.queueRequest(Date.now(),p)},o.prototype.processRequests=function(u){var p=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var y=wi(Wn.ACCESS_TOKEN),b=y?y.u:Wn.ACCESS_TOKEN,S=b!==this.eventData.tokenU;it(this.anonId)||(this.anonId=at(),S=!0);var I=this.queue.shift();if(this.eventData.lastSuccess){var D=new Date(this.eventData.lastSuccess),z=new Date(I),V=(I-this.eventData.lastSuccess)/864e5;S=S||V>=1||V<-1||D.getDate()!==z.getDate()}else S=!0;if(!S)return this.processRequests();this.postEvent(I,{"enabled.telemetry":!1},function(W){W||(p.eventData.lastSuccess=I,p.eventData.tokenU=b)},u)}},o}(ji)),Za=Dn.postTurnstileEvent.bind(Dn),hs=new me,Nt=hs.postMapLoadEvent.bind(hs),nr=500,Ar=50;function rn(){J.caches&&!$i&&($i=J.caches.open("mapbox-tiles"))}function wn(t){var o=t.indexOf("?");return o<0?t:t.slice(0,o)}var Fn,gi=1/0;function ti(){return Fn==null&&(Fn=J.OffscreenCanvas&&new J.OffscreenCanvas(1,1).getContext("2d")&&typeof J.createImageBitmap=="function"),Fn}var fn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(fn);var Di=function(t){function o(u,p,y){p===401&&oa(y)&&(u+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,u),this.status=p,this.url=y,this.name=this.constructor.name,this.message=u}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},o}(Error),Ri=Nr()?function(){return self.worker&&self.worker.referrer}:function(){return(J.location.protocol==="blob:"?J.parent:J).location.href},to,Es,Ko=function(t,o){if(!(/^file:/.test(u=t.url)||/^file:/.test(Ri())&&!/^\w+:/.test(u))){if(J.fetch&&J.Request&&J.AbortController&&J.Request.prototype.hasOwnProperty("signal"))return function(p,y){var b,S=new J.AbortController,I=new J.Request(p.url,{method:p.method||"GET",body:p.body,credentials:p.credentials,headers:p.headers,referrer:Ri(),signal:S.signal}),D=!1,z=!1,V=(b=I.url).indexOf("sku=")>0&&oa(b);p.type==="json"&&I.headers.set("Accept","application/json");var W=function(se,Me,Oe){if(!z){if(se&&se.message!=="SecurityError"&&Qe(se),Me&&Oe)return ee(Me);var Ye=Date.now();J.fetch(I).then(function(ze){if(ze.ok){var st=V?ze.clone():null;return ee(ze,st,Ye)}return y(new Di(ze.statusText,ze.status,p.url))}).catch(function(ze){ze.code!==20&&y(new Error(ze.message))})}},ee=function(se,Me,Oe){(p.type==="arrayBuffer"?se.arrayBuffer():p.type==="json"?se.json():se.text()).then(function(Ye){z||(Me&&Oe&&function(ze,st,Tt){if(rn(),$i){var Vt={status:st.status,statusText:st.statusText,headers:new J.Headers};st.headers.forEach(function(lr,Lr){return Vt.headers.set(Lr,lr)});var Xt=tn(st.headers.get("Cache-Control")||"");Xt["no-store"]||(Xt["max-age"]&&Vt.headers.set("Expires",new Date(Tt+1e3*Xt["max-age"]).toUTCString()),new Date(Vt.headers.get("Expires")).getTime()-Tt<42e4||function(lr,Lr){if(zo===void 0)try{new Response(new ReadableStream),zo=!0}catch($r){zo=!1}zo?Lr(lr.body):lr.blob().then(Lr)}(st,function(lr){var Lr=new J.Response(lr,Vt);rn(),$i&&$i.then(function($r){return $r.put(wn(ze.url),Lr)}).catch(function($r){return Qe($r.message)})}))}}(I,Me,Oe),D=!0,y(null,Ye,se.headers.get("Cache-Control"),se.headers.get("Expires")))}).catch(function(Ye){z||y(new Error(Ye.message))})};return V?function(se,Me){if(rn(),!$i)return Me(null);var Oe=wn(se.url);$i.then(function(Ye){Ye.match(Oe).then(function(ze){var st=function(Tt){if(!Tt)return!1;var Vt=new Date(Tt.headers.get("Expires")||0),Xt=tn(Tt.headers.get("Cache-Control")||"");return Vt>Date.now()&&!Xt["no-cache"]}(ze);Ye.delete(Oe),st&&Ye.put(Oe,ze.clone()),Me(null,ze,st)}).catch(Me)}).catch(Me)}(I,W):W(null,null),{cancel:function(){z=!0,D||S.abort()}}}(t,o);if(Nr()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,o,void 0,!0)}var u;return function(p,y){var b=new J.XMLHttpRequest;for(var S in b.open(p.method||"GET",p.url,!0),p.type==="arrayBuffer"&&(b.responseType="arraybuffer"),p.headers)b.setRequestHeader(S,p.headers[S]);return p.type==="json"&&(b.responseType="text",b.setRequestHeader("Accept","application/json")),b.withCredentials=p.credentials==="include",b.onerror=function(){y(new Error(b.statusText))},b.onload=function(){if((b.status>=200&&b.status<300||b.status===0)&&b.response!==null){var I=b.response;if(p.type==="json")try{I=JSON.parse(b.response)}catch(D){return y(D)}y(null,I,b.getResponseHeader("Cache-Control"),b.getResponseHeader("Expires"))}else y(new Di(b.statusText,b.status,p.url))},b.send(p.body),{cancel:function(){return b.abort()}}}(t,o)},Ba=function(t,o){return Ko(xt(t,{type:"arrayBuffer"}),o)},xa=function(t,o){return Ko(xt(t,{method:"POST"}),o)},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";to=[],Es=0;var Q=function(t,o){if(si.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),Es>=Wn.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:t,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return to.push(u),u}Es++;var p=!1,y=function(){if(!p)for(p=!0,Es--;to.length&&Es0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},rt.prototype.setEventedParent=function(t,o){return this._eventedParent=t,this._eventedParentData=o,this};var pe={$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"}}},ke=function(t,o,u,p){this.message=(t?t+": ":"")+u,p&&(this.identifier=p),o!=null&&o.__line__&&(this.line=o.__line__)};function vt(t){var o=t.value;return o?[new ke(t.key,o,"constants have been deprecated as of v8")]:[]}function pr(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,y=o;p":t.itemType.kind==="value"?"array":"array<"+o+">"}return t.kind}var ht=[pn,Ot,nn,Zr,Yr,Xi,_i,Pi(an),yi];function Pt(t,o){if(o.kind==="error")return null;if(t.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!Pt(t.itemType,o.itemType))&&(typeof t.N!="number"||t.N===o.N))return null}else{if(t.kind===o.kind)return null;if(t.kind==="value"){for(var u=0,p=ht;u255?255:I}function y(I){return p(I[I.length-1]==="%"?parseFloat(I)/100*255:parseInt(I))}function b(I){return(D=I[I.length-1]==="%"?parseFloat(I)/100:parseFloat(I))<0?0:D>1?1:D;var D}function S(I,D,z){return z<0?z+=1:z>1&&(z-=1),6*z<1?I+(D-I)*z*6:2*z<1?D:3*z<2?I+(D-I)*(2/3-z)*6:I}try{o.parseCSSColor=function(I){var D,z=I.replace(/ /g,"").toLowerCase();if(z in u)return u[z].slice();if(z[0]==="#")return z.length===4?(D=parseInt(z.substr(1),16))>=0&&D<=4095?[(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1]:null:z.length===7&&(D=parseInt(z.substr(1),16))>=0&&D<=16777215?[(16711680&D)>>16,(65280&D)>>8,255&D,1]:null;var V=z.indexOf("("),W=z.indexOf(")");if(V!==-1&&W+1===z.length){var ee=z.substr(0,V),se=z.substr(V+1,W-(V+1)).split(","),Me=1;switch(ee){case"rgba":if(se.length!==4)return null;Me=b(se.pop());case"rgb":return se.length!==3?null:[y(se[0]),y(se[1]),y(se[2]),Me];case"hsla":if(se.length!==4)return null;Me=b(se.pop());case"hsl":if(se.length!==3)return null;var Oe=(parseFloat(se[0])%360+360)%360/360,Ye=b(se[1]),ze=b(se[2]),st=ze<=.5?ze*(Ye+1):ze+Ye-ze*Ye,Tt=2*ze-st;return[p(255*S(Tt,st,Oe+1/3)),p(255*S(Tt,st,Oe)),p(255*S(Tt,st,Oe-1/3)),Me];default:return null}}return null}}catch(I){}}).parseCSSColor,pi=function(t,o,u,p){p===void 0&&(p=1),this.r=t,this.g=o,this.b=u,this.a=p};pi.parse=function(t){if(t){if(t instanceof pi)return t;if(typeof t=="string"){var o=Ii(t);if(o)return new pi(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3])}}},pi.prototype.toString=function(){var t=this.toArray(),o=t[1],u=t[2],p=t[3];return"rgba("+Math.round(t[0])+","+Math.round(o)+","+Math.round(u)+","+p+")"},pi.prototype.toArray=function(){var t=this.a;return t===0?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},pi.black=new pi(0,0,0,1),pi.white=new pi(1,1,1,1),pi.transparent=new pi(0,0,0,0),pi.red=new pi(1,0,0,1);var wa=function(t,o,u){this.sensitivity=t?o?"variant":"case":o?"accent":"base",this.locale=u,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};wa.prototype.compare=function(t,o){return this.collator.compare(t,o)},wa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $s=function(t,o,u,p,y){this.text=t,this.image=o,this.scale=u,this.fontStack=p,this.textColor=y},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new $s(t,null,null,null,null)])},Ir.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(t){return t.text.length!==0||t.image&&t.image.name.length!==0})},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(t){return t.text}).join("")},Ir.prototype.serialize=function(){for(var t=["format"],o=0,u=this.sections;o=0&&t<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255?p===void 0||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[t,o,u,p].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof p=="number"?[t,o,u,p]:[t,o,u]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function bo(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof pi||t instanceof wa||t instanceof Ir||t instanceof wr)return!0;if(Array.isArray(t)){for(var o=0,u=t;o2){var I=t[1];if(typeof I!="string"||!(I in Ta)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=Ta[I],p++}else b=an;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return o.error('The length argument to "array" must be a positive integer literal',2);S=t[2],p++}u=Pi(b,S)}else u=Ta[y];for(var D=[];p1)&&o.push(p)}}return o.concat(this.args.map(function(y){return y.serialize()}))};var Uo=function(t){this.type=Xi,this.sections=t};Uo.parse=function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var u=t[1];if(!Array.isArray(u)&&typeof u=="object")return o.error("First argument must be an image or text section.");for(var p=[],y=!1,b=1;b<=t.length-1;++b){var S=t[b];if(y&&typeof S=="object"&&!Array.isArray(S)){y=!1;var I=null;if(S["font-scale"]&&!(I=o.parse(S["font-scale"],1,Ot)))return null;var D=null;if(S["text-font"]&&!(D=o.parse(S["text-font"],1,Pi(nn))))return null;var z=null;if(S["text-color"]&&!(z=o.parse(S["text-color"],1,Yr)))return null;var V=p[p.length-1];V.scale=I,V.font=D,V.textColor=z}else{var W=o.parse(t[b],1,an);if(!W)return null;var ee=W.type.kind;if(ee!=="string"&&ee!=="value"&&ee!=="null"&&ee!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");y=!0,p.push({content:W,scale:null,font:null,textColor:null})}}return new Uo(p)},Uo.prototype.evaluate=function(t){return new Ir(this.sections.map(function(o){var u=o.content.evaluate(t);return ne(u)===yi?new $s("",u,null,null,null):new $s(Fu(u),null,o.scale?o.scale.evaluate(t):null,o.font?o.font.evaluate(t).join(","):null,o.textColor?o.textColor.evaluate(t):null)}))},Uo.prototype.eachChild=function(t){for(var o=0,u=this.sections;o-1),u},$o.prototype.eachChild=function(t){t(this.input)},$o.prototype.outputDefined=function(){return!1},$o.prototype.serialize=function(){return["image",this.input.serialize()]};var xu={"to-boolean":Zr,"to-color":Yr,"to-number":Ot,"to-string":nn},Eo=function(t,o){this.type=t,this.args=o};Eo.parse=function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var u=t[0];if((u==="to-boolean"||u==="to-string")&&t.length!==2)return o.error("Expected one argument.");for(var p=xu[u],y=[],b=1;b4?"Invalid rbga value "+JSON.stringify(o)+": expected an array containing either three or four numeric values.":Mt(o[0],o[1],o[2],o[3])))return new pi(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Ra(u||"Could not parse color from value '"+(typeof o=="string"?o:String(JSON.stringify(o)))+"'")}if(this.type.kind==="number"){for(var S=null,I=0,D=this.args;I=o[2]||t[1]<=o[1]||t[3]>=o[3])}function ll(t,o){var u=(180+t[0])/360,p=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,y=Math.pow(2,o.z);return[Math.round(u*y*8192),Math.round(p*y*8192)]}function os(t,o,u){return o[1]>t[1]!=u[1]>t[1]&&t[0]<(u[0]-o[0])*(t[1]-o[1])/(u[1]-o[1])+o[0]}function ie(t,o){for(var u,p,y,b,S,I,D,z=!1,V=0,W=o.length;V0&&I<0||S<0&&I>0}function Rt(t,o,u){for(var p=0,y=u;pu[2]){var y=.5*p,b=t[0]-u[0]>y?-p:u[0]-t[0]>y?p:0;b===0&&(b=t[0]-u[2]>y?-p:u[2]-t[0]>y?p:0),t[0]+=b}Ya(o,t)}function ja(t,o,u,p){for(var y=8192*Math.pow(2,p.z),b=[8192*p.x,8192*p.y],S=[],I=0,D=t;I=0)return!1;var u=!0;return t.eachChild(function(p){u&&!Lo(p,o)&&(u=!1)}),u}ps.parse=function(t,o){if(t.length!==2)return o.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(bo(t[1])){var u=t[1];if(u.type==="FeatureCollection")for(var p=0;po))throw new Ra("Input is not a number.");b=S-1}return 0}Qs.prototype.parse=function(t,o,u,p,y){return y===void 0&&(y={}),o?this.concat(o,u,p)._parse(t,y):this._parse(t,y)},Qs.prototype._parse=function(t,o){function u(z,V,W){return W==="assert"?new Qi(V,[z]):W==="coerce"?new Eo(V,[z]):z}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var p=t[0];if(typeof p!="string")return this.error("Expression name must be a string, but found "+typeof p+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var y=this.registry[p];if(y){var b=y.parse(t,this);if(!b)return null;if(this.expectedType){var S=this.expectedType,I=b.type;if(S.kind!=="string"&&S.kind!=="number"&&S.kind!=="boolean"&&S.kind!=="object"&&S.kind!=="array"||I.kind!=="value")if(S.kind!=="color"&&S.kind!=="formatted"&&S.kind!=="resolvedImage"||I.kind!=="value"&&I.kind!=="string"){if(this.checkSubtype(S,I))return null}else b=u(b,S,o.typeAnnotation||"coerce");else b=u(b,S,o.typeAnnotation||"assert")}if(!(b instanceof oo)&&b.type.kind!=="resolvedImage"&&function z(V){if(V instanceof Vo)return z(V.boundExpression);if(V instanceof so&&V.name==="error"||V instanceof jo||V instanceof ps)return!1;var W=V instanceof Eo||V instanceof Qi,ee=!0;return V.eachChild(function(se){ee=W?ee&&z(se):ee&&se instanceof oo}),!!ee&&Jo(V)&&Lo(V,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(b)){var D=new sa;try{b=new oo(b.type,b.evaluate(D))}catch(z){return this.error(z.message),null}}return b}return this.error('Unknown expression "'+p+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Qs.prototype.concat=function(t,o,u){var p=typeof t=="number"?this.path.concat(t):this.path,y=u?this.scope.concat(u):this.scope;return new Qs(this.registry,p,o||null,y,this.errors)},Qs.prototype.error=function(t){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];var p=""+this.key+o.map(function(y){return"["+y+"]"}).join("");this.errors.push(new vr(p,t))},Qs.prototype.checkSubtype=function(t,o){var u=Pt(t,o);return u&&this.error(u),u};var ds=function(t,o,u){this.type=t,this.input=o,this.labels=[],this.outputs=[];for(var p=0,y=u;p=S)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);var V=o.parse(I,z,y);if(!V)return null;y=y||V.type,p.push([S,V])}return new ds(y,u,p)},ds.prototype.evaluate=function(t){var o=this.labels,u=this.outputs;if(o.length===1)return u[0].evaluate(t);var p=this.input.evaluate(t);if(p<=o[0])return u[0].evaluate(t);var y=o.length;return p>=o[y-1]?u[y-1].evaluate(t):u[ou(o,p)].evaluate(t)},ds.prototype.eachChild=function(t){t(this.input);for(var o=0,u=this.outputs;o0&&t.push(this.labels[o]),t.push(this.outputs[o].serialize());return t};var ko=Object.freeze({__proto__:null,number:ga,color:function(t,o,u){return new pi(ga(t.r,o.r,u),ga(t.g,o.g,u),ga(t.b,o.b,u),ga(t.a,o.a,u))},array:function(t,o,u){return t.map(function(p,y){return ga(p,o[y],u)})}}),Il=6/29*3*(6/29),vs=Math.PI/180,es=180/Math.PI;function of(t){return t>.008856451679035631?Math.pow(t,1/3):t/Il+4/29}function rc(t){return t>6/29?t*t*t:Il*(t-4/29)}function Cs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function cl(t){var o=bu(t.r),u=bu(t.g),p=bu(t.b),y=of((.4124564*o+.3575761*u+.1804375*p)/.95047),b=of((.2126729*o+.7151522*u+.072175*p)/1);return{l:116*b-16,a:500*(y-b),b:200*(b-of((.0193339*o+.119192*u+.9503041*p)/1.08883)),alpha:t.a}}function _(t){var o=(t.l+16)/116,u=isNaN(t.a)?o:o+t.a/500,p=isNaN(t.b)?o:o-t.b/200;return o=1*rc(o),u=.95047*rc(u),p=1.08883*rc(p),new pi(Cs(3.2404542*u-1.5371385*o-.4985314*p),Cs(-.969266*u+1.8760108*o+.041556*p),Cs(.0556434*u-.2040259*o+1.0572252*p),t.alpha)}function M(t,o,u){var p=o-t;return t+u*(p>180||p<-180?p-360*Math.round(p/360):p)}var F={forward:cl,reverse:_,interpolate:function(t,o,u){return{l:ga(t.l,o.l,u),a:ga(t.a,o.a,u),b:ga(t.b,o.b,u),alpha:ga(t.alpha,o.alpha,u)}}},R={forward:function(t){var o=cl(t),u=o.l,p=o.a,y=o.b,b=Math.atan2(y,p)*es;return{h:b<0?b+360:b,c:Math.sqrt(p*p+y*y),l:u,alpha:t.a}},reverse:function(t){var o=t.h*vs,u=t.c;return _({l:t.l,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:t.alpha})},interpolate:function(t,o,u){return{h:M(t.h,o.h,u),c:ga(t.c,o.c,u),l:ga(t.l,o.l,u),alpha:ga(t.alpha,o.alpha,u)}}},K=Object.freeze({__proto__:null,lab:F,hcl:R}),_e=function(t,o,u,p,y){this.type=t,this.operator=o,this.interpolation=u,this.input=p,this.labels=[],this.outputs=[];for(var b=0,S=y;b1}))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);p={name:"cubic-bezier",controlPoints:I}}if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(!(y=o.parse(y,2,Ot)))return null;var D=[],z=null;u==="interpolate-hcl"||u==="interpolate-lab"?z=Yr:o.expectedType&&o.expectedType.kind!=="value"&&(z=o.expectedType);for(var V=0;V=W)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',se);var Oe=o.parse(ee,Me,z);if(!Oe)return null;z=z||Oe.type,D.push([W,Oe])}return z.kind==="number"||z.kind==="color"||z.kind==="array"&&z.itemType.kind==="number"&&typeof z.N=="number"?new _e(z,u,p,y,D):o.error("Type "+bi(z)+" is not interpolatable.")},_e.prototype.evaluate=function(t){var o=this.labels,u=this.outputs;if(o.length===1)return u[0].evaluate(t);var p=this.input.evaluate(t);if(p<=o[0])return u[0].evaluate(t);var y=o.length;if(p>=o[y-1])return u[y-1].evaluate(t);var b=ou(o,p),S=_e.interpolationFactor(this.interpolation,p,o[b],o[b+1]),I=u[b].evaluate(t),D=u[b+1].evaluate(t);return this.operator==="interpolate"?ko[this.type.kind.toLowerCase()](I,D,S):this.operator==="interpolate-hcl"?R.reverse(R.interpolate(R.forward(I),R.forward(D),S)):F.reverse(F.interpolate(F.forward(I),F.forward(D),S))},_e.prototype.eachChild=function(t){t(this.input);for(var o=0,u=this.outputs;o=u.length)throw new Ra("Array index out of bounds: "+o+" > "+(u.length-1)+".");if(o!==Math.floor(o))throw new Ra("Array index must be an integer, but found "+o+" instead.");return u[o]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var yr=function(t,o){this.type=Zr,this.needle=t,this.haystack=o};yr.parse=function(t,o){if(t.length!==3)return o.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,an);return u&&p?Aa(u.type,[Zr,nn,Ot,pn,an])?new yr(u,p):o.error("Expected first argument to be of type boolean, string, number or null, but found "+bi(u.type)+" instead"):null},yr.prototype.evaluate=function(t){var o=this.needle.evaluate(t),u=this.haystack.evaluate(t);if(!u)return!1;if(!qi(o,["boolean","string","number","null"]))throw new Ra("Expected first argument to be of type boolean, string, number or null, but found "+bi(ne(o))+" instead.");if(!qi(u,["string","array"]))throw new Ra("Expected second argument to be of type array or string, but found "+bi(ne(u))+" instead.");return u.indexOf(o)>=0},yr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},yr.prototype.outputDefined=function(){return!0},yr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var In=function(t,o,u){this.type=Ot,this.needle=t,this.haystack=o,this.fromIndex=u};In.parse=function(t,o){if(t.length<=2||t.length>=5)return o.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,an);if(!u||!p)return null;if(!Aa(u.type,[Zr,nn,Ot,pn,an]))return o.error("Expected first argument to be of type boolean, string, number or null, but found "+bi(u.type)+" instead");if(t.length===4){var y=o.parse(t[3],3,Ot);return y?new In(u,p,y):null}return new In(u,p)},In.prototype.evaluate=function(t){var o=this.needle.evaluate(t),u=this.haystack.evaluate(t);if(!qi(o,["boolean","string","number","null"]))throw new Ra("Expected first argument to be of type boolean, string, number or null, but found "+bi(ne(o))+" instead.");if(!qi(u,["string","array"]))throw new Ra("Expected second argument to be of type array or string, but found "+bi(ne(u))+" instead.");if(this.fromIndex){var p=this.fromIndex.evaluate(t);return u.indexOf(o,p)}return u.indexOf(o)},In.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},In.prototype.outputDefined=function(){return!1},In.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Bn=function(t,o,u,p,y,b){this.inputType=t,this.type=o,this.input=u,this.cases=p,this.outputs=y,this.otherwise=b};Bn.parse=function(t,o){if(t.length<5)return o.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return o.error("Expected an even number of arguments.");var u,p;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(var y={},b=[],S=2;SNumber.MAX_SAFE_INTEGER)return z.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ee=="number"&&Math.floor(ee)!==ee)return z.error("Numeric branch labels must be integer values.");if(u){if(z.checkSubtype(u,ne(ee)))return null}else u=ne(ee);if(y[String(ee)]!==void 0)return z.error("Branch labels must be unique.");y[String(ee)]=b.length}var se=o.parse(D,S,p);if(!se)return null;p=p||se.type,b.push(se)}var Me=o.parse(t[1],1,an);if(!Me)return null;var Oe=o.parse(t[t.length-1],t.length-1,p);return Oe?Me.type.kind!=="value"&&o.concat(1).checkSubtype(u,Me.type)?null:new Bn(u,p,Me,y,b,Oe):null},Bn.prototype.evaluate=function(t){var o=this.input.evaluate(t);return(ne(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(t)},Bn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Bn.prototype.outputDefined=function(){return this.outputs.every(function(t){return t.outputDefined()})&&this.otherwise.outputDefined()},Bn.prototype.serialize=function(){for(var t=this,o=["match",this.input.serialize()],u=[],p={},y=0,b=Object.keys(this.cases).sort();y=5)return o.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1,an),p=o.parse(t[2],2,Ot);if(!u||!p)return null;if(!Aa(u.type,[Pi(an),nn,an]))return o.error("Expected first argument to be of type array or string, but found "+bi(u.type)+" instead");if(t.length===4){var y=o.parse(t[3],3,Ot);return y?new Vi(u.type,u,p,y):null}return new Vi(u.type,u,p)},Vi.prototype.evaluate=function(t){var o=this.input.evaluate(t),u=this.beginIndex.evaluate(t);if(!qi(o,["string","array"]))throw new Ra("Expected first argument to be of type array or string, but found "+bi(ne(o))+" instead.");if(this.endIndex){var p=this.endIndex.evaluate(t);return o.slice(u,p)}return o.slice(u)},Vi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},Vi.prototype.outputDefined=function(){return!1},Vi.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var As=Gi("==",function(t,o,u){return o===u},ba),Eu=Gi("!=",function(t,o,u){return o!==u},function(t,o,u,p){return!ba(0,o,u,p)}),fl=Gi("<",function(t,o,u){return o",function(t,o,u){return o>u},function(t,o,u,p){return p.compare(o,u)>0}),tl=Gi("<=",function(t,o,u){return o<=u},function(t,o,u,p){return p.compare(o,u)<=0}),Lc=Gi(">=",function(t,o,u){return o>=u},function(t,o,u,p){return p.compare(o,u)>=0}),Bu=function(t,o,u,p,y){this.type=nn,this.number=t,this.locale=o,this.currency=u,this.minFractionDigits=p,this.maxFractionDigits=y};Bu.parse=function(t,o){if(t.length!==3)return o.error("Expected two arguments.");var u=o.parse(t[1],1,Ot);if(!u)return null;var p=t[2];if(typeof p!="object"||Array.isArray(p))return o.error("NumberFormat options argument must be an object.");var y=null;if(p.locale&&!(y=o.parse(p.locale,1,nn)))return null;var b=null;if(p.currency&&!(b=o.parse(p.currency,1,nn)))return null;var S=null;if(p["min-fraction-digits"]&&!(S=o.parse(p["min-fraction-digits"],1,Ot)))return null;var I=null;return p["max-fraction-digits"]&&!(I=o.parse(p["max-fraction-digits"],1,Ot))?null:new Bu(u,y,b,S,I)},Bu.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Bu.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Bu.prototype.outputDefined=function(){return!1},Bu.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Nu=function(t){this.type=Ot,this.input=t};Nu.parse=function(t,o){if(t.length!==2)return o.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var u=o.parse(t[1],1);return u?u.type.kind!=="array"&&u.type.kind!=="string"&&u.type.kind!=="value"?o.error("Expected argument of type string or array, but found "+bi(u.type)+" instead."):new Nu(u):null},Nu.prototype.evaluate=function(t){var o=this.input.evaluate(t);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Ra("Expected value to be of type string or array, but found "+bi(ne(o))+" instead.")},Nu.prototype.eachChild=function(t){t(this.input)},Nu.prototype.outputDefined=function(){return!1},Nu.prototype.serialize=function(){var t=["length"];return this.eachChild(function(o){t.push(o.serialize())}),t};var zu={"==":As,"!=":Eu,">":Rc,"<":fl,">=":Lc,"<=":tl,array:Qi,at:ur,boolean:Qi,case:Qn,coalesce:pt,collator:jo,format:Uo,image:$o,in:yr,"index-of":In,interpolate:_e,"interpolate-hcl":_e,"interpolate-lab":_e,length:Nu,let:dt,literal:oo,match:Bn,number:Qi,"number-format":Bu,object:Qi,slice:Vi,step:ds,string:Qi,"to-boolean":Eo,"to-color":Eo,"to-number":Eo,"to-string":Eo,var:Vo,within:ps};function uo(t,o){var u=o[0],p=o[1],y=o[2],b=o[3];u=u.evaluate(t),p=p.evaluate(t),y=y.evaluate(t);var S=b?b.evaluate(t):1,I=Mt(u,p,y,S);if(I)throw new Ra(I);return new pi(u/255*S,p/255*S,y/255*S,S)}function Bf(t,o){return t in o}function Nf(t,o){var u=o[t];return u===void 0?null:u}function ws(t){return{type:t}}function sf(t){return{result:"success",value:t}}function su(t){return{result:"error",value:t}}function Hs(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function uf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Ol(t){return!!t.expression&&t.expression.interpolated}function ya(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function nc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Js(t){return t}function hl(t,o,u){return t!==void 0?t:o!==void 0?o:u!==void 0?u:void 0}function zf(t,o,u,p,y){return hl(typeof u===y?p[u]:void 0,t.default,o.default)}function ep(t,o,u){if(ya(u)!=="number")return hl(t.default,o.default);var p=t.stops.length;if(p===1||u<=t.stops[0][0])return t.stops[0][1];if(u>=t.stops[p-1][0])return t.stops[p-1][1];var y=ou(t.stops.map(function(b){return b[0]}),u);return t.stops[y][1]}function lf(t,o,u){var p=t.base!==void 0?t.base:1;if(ya(u)!=="number")return hl(t.default,o.default);var y=t.stops.length;if(y===1||u<=t.stops[0][0])return t.stops[0][1];if(u>=t.stops[y-1][0])return t.stops[y-1][1];var b=ou(t.stops.map(function(W){return W[0]}),u),S=function(W,ee,se,Me){var Oe=Me-se,Ye=W-se;return Oe===0?0:ee===1?Ye/Oe:(Math.pow(ee,Ye)-1)/(Math.pow(ee,Oe)-1)}(u,p,t.stops[b][0],t.stops[b+1][0]),I=t.stops[b][1],D=t.stops[b+1][1],z=ko[o.type]||Js;if(t.colorSpace&&t.colorSpace!=="rgb"){var V=K[t.colorSpace];z=function(W,ee){return V.reverse(V.interpolate(V.forward(W),V.forward(ee),S))}}return typeof I.evaluate=="function"?{evaluate:function(){for(var W=[],ee=arguments.length;ee--;)W[ee]=arguments[ee];var se=I.evaluate.apply(void 0,W),Me=D.evaluate.apply(void 0,W);if(se!==void 0&&Me!==void 0)return z(se,Me,S)}}:z(I,D,S)}function ic(t,o,u){return o.type==="color"?u=pi.parse(u):o.type==="formatted"?u=Ir.fromString(u.toString()):o.type==="resolvedImage"?u=wr.fromString(u.toString()):ya(u)===o.type||o.type==="enum"&&o.values[u]||(u=void 0),hl(u,t.default,o.default)}so.register(zu,{error:[{kind:"error"},[nn],function(t,o){throw new Ra(o[0].evaluate(t))}],typeof:[nn,[an],function(t,o){return bi(ne(o[0].evaluate(t)))}],"to-rgba":[Pi(Ot,4),[Yr],function(t,o){return o[0].evaluate(t).toArray()}],rgb:[Yr,[Ot,Ot,Ot],uo],rgba:[Yr,[Ot,Ot,Ot,Ot],uo],has:{type:Zr,overloads:[[[nn],function(t,o){return Bf(o[0].evaluate(t),t.properties())}],[[nn,_i],function(t,o){var u=o[1];return Bf(o[0].evaluate(t),u.evaluate(t))}]]},get:{type:an,overloads:[[[nn],function(t,o){return Nf(o[0].evaluate(t),t.properties())}],[[nn,_i],function(t,o){var u=o[1];return Nf(o[0].evaluate(t),u.evaluate(t))}]]},"feature-state":[an,[nn],function(t,o){return Nf(o[0].evaluate(t),t.featureState||{})}],properties:[_i,[],function(t){return t.properties()}],"geometry-type":[nn,[],function(t){return t.geometryType()}],id:[an,[],function(t){return t.id()}],zoom:[Ot,[],function(t){return t.globals.zoom}],"heatmap-density":[Ot,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ot,[],function(t){return t.globals.lineProgress||0}],accumulated:[an,[],function(t){return t.globals.accumulated===void 0?null:t.globals.accumulated}],"+":[Ot,ws(Ot),function(t,o){for(var u=0,p=0,y=o;p":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y>b}],"filter-id->":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p>y}],"filter-<=":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y<=b}],"filter-id-<=":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p<=y}],"filter->=":[Zr,[nn,an],function(t,o){var u=o[0],p=o[1],y=t.properties()[u.value],b=p.value;return typeof y==typeof b&&y>=b}],"filter-id->=":[Zr,[an],function(t,o){var u=o[0],p=t.id(),y=u.value;return typeof p==typeof y&&p>=y}],"filter-has":[Zr,[an],function(t,o){return o[0].value in t.properties()}],"filter-has-id":[Zr,[],function(t){return t.id()!==null&&t.id()!==void 0}],"filter-type-in":[Zr,[Pi(nn)],function(t,o){return o[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Zr,[Pi(an)],function(t,o){return o[0].value.indexOf(t.id())>=0}],"filter-in-small":[Zr,[nn,Pi(an)],function(t,o){var u=o[0];return o[1].value.indexOf(t.properties()[u.value])>=0}],"filter-in-large":[Zr,[nn,Pi(an)],function(t,o){var u=o[0],p=o[1];return function(y,b,S,I){for(;S<=I;){var D=S+I>>1;if(b[D]===y)return!0;b[D]>y?I=D-1:S=D+1}return!1}(t.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Zr,overloads:[[[Zr,Zr],function(t,o){var u=o[1];return o[0].evaluate(t)&&u.evaluate(t)}],[ws(Zr),function(t,o){for(var u=0,p=o;u0&&typeof t[0]=="string"&&t[0]in zu}function sc(t,o){var u=new Qs(zu,[],o?function(y){var b={color:Yr,string:nn,number:Ot,enum:nn,boolean:Zr,formatted:Xi,resolvedImage:yi};return y.type==="array"?Pi(b[y.value]||an,y.length):b[y.type]}(o):void 0),p=u.parse(t,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?sf(new ac(p,o)):su(u.errors)}ac.prototype.evaluateWithoutErrorHandling=function(t,o,u,p,y,b){return this._evaluator.globals=t,this._evaluator.feature=o,this._evaluator.featureState=u,this._evaluator.canonical=p,this._evaluator.availableImages=y||null,this._evaluator.formattedSection=b,this.expression.evaluate(this._evaluator)},ac.prototype.evaluate=function(t,o,u,p,y,b){this._evaluator.globals=t,this._evaluator.feature=o||null,this._evaluator.featureState=u||null,this._evaluator.canonical=p,this._evaluator.availableImages=y||null,this._evaluator.formattedSection=b||null;try{var S=this.expression.evaluate(this._evaluator);if(S==null||typeof S=="number"&&S!=S)return this._defaultValue;if(this._enumValues&&!(S in this._enumValues))throw new Ra("Expected value to be one of "+Object.keys(this._enumValues).map(function(I){return JSON.stringify(I)}).join(", ")+", but found "+JSON.stringify(S)+" instead.");return S}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console!="undefined"&&console.warn(I.message)),this._defaultValue}};var uc=function(t,o){this.kind=t,this._styleExpression=o,this.isStateDependent=t!=="constant"&&!Ss(o.expression)};uc.prototype.evaluateWithoutErrorHandling=function(t,o,u,p,y,b){return this._styleExpression.evaluateWithoutErrorHandling(t,o,u,p,y,b)},uc.prototype.evaluate=function(t,o,u,p,y,b){return this._styleExpression.evaluate(t,o,u,p,y,b)};var Rl=function(t,o,u,p){this.kind=t,this.zoomStops=u,this._styleExpression=o,this.isStateDependent=t!=="camera"&&!Ss(o.expression),this.interpolationType=p};function Ll(t,o){if((t=sc(t,o)).result==="error")return t;var u=t.value.expression,p=Jo(u);if(!p&&!Hs(o))return su([new vr("","data expressions not supported")]);var y=Lo(u,["zoom"]);if(!y&&!uf(o))return su([new vr("","zoom expressions not supported")]);var b=function S(I){var D=null;if(I instanceof dt)D=S(I.result);else if(I instanceof pt)for(var z=0,V=I.args;zp.maximum?[new ke(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Uf(t){var o,u,p,y=t.valueSpec,b=Ft(t.value.type),S={},I=b!=="categorical"&&t.value.property===void 0,D=!I,z=ya(t.value.stops)==="array"&&ya(t.value.stops[0])==="array"&&ya(t.value.stops[0][0])==="object",V=eu({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(se){if(b==="identity")return[new ke(se.key,se.value,'identity function may not have a "stops" property')];var Me=[],Oe=se.value;return Me=Me.concat(kc({key:se.key,value:Oe,valueSpec:se.valueSpec,style:se.style,styleSpec:se.styleSpec,arrayElementValidator:W})),ya(Oe)==="array"&&Oe.length===0&&Me.push(new ke(se.key,Oe,"array must have at least one stop")),Me},default:function(se){return kn({key:se.key,value:se.value,valueSpec:y,style:se.style,styleSpec:se.styleSpec})}}});return b==="identity"&&I&&V.push(new ke(t.key,t.value,'missing required property "property"')),b==="identity"||t.value.stops||V.push(new ke(t.key,t.value,'missing required property "stops"')),b==="exponential"&&t.valueSpec.expression&&!Ol(t.valueSpec)&&V.push(new ke(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(D&&!Hs(t.valueSpec)?V.push(new ke(t.key,t.value,"property functions not supported")):I&&!uf(t.valueSpec)&&V.push(new ke(t.key,t.value,"zoom functions not supported"))),b!=="categorical"&&!z||t.value.property!==void 0||V.push(new ke(t.key,t.value,'"property" property is required')),V;function W(se){var Me=[],Oe=se.value,Ye=se.key;if(ya(Oe)!=="array")return[new ke(Ye,Oe,"array expected, "+ya(Oe)+" found")];if(Oe.length!==2)return[new ke(Ye,Oe,"array length 2 expected, length "+Oe.length+" found")];if(z){if(ya(Oe[0])!=="object")return[new ke(Ye,Oe,"object expected, "+ya(Oe[0])+" found")];if(Oe[0].zoom===void 0)return[new ke(Ye,Oe,"object stop key must have zoom")];if(Oe[0].value===void 0)return[new ke(Ye,Oe,"object stop key must have value")];if(p&&p>Ft(Oe[0].zoom))return[new ke(Ye,Oe[0].zoom,"stop zoom values must appear in ascending order")];Ft(Oe[0].zoom)!==p&&(p=Ft(Oe[0].zoom),u=void 0,S={}),Me=Me.concat(eu({key:Ye+"[0]",value:Oe[0],valueSpec:{zoom:{}},style:se.style,styleSpec:se.styleSpec,objectElementValidators:{zoom:cf,value:ee}}))}else Me=Me.concat(ee({key:Ye+"[0]",value:Oe[0],valueSpec:{},style:se.style,styleSpec:se.styleSpec},Oe));return oc(zt(Oe[1]))?Me.concat([new ke(Ye+"[1]",Oe[1],"expressions are not allowed in function stops.")]):Me.concat(kn({key:Ye+"[1]",value:Oe[1],valueSpec:y,style:se.style,styleSpec:se.styleSpec}))}function ee(se,Me){var Oe=ya(se.value),Ye=Ft(se.value),ze=se.value!==null?se.value:Me;if(o){if(Oe!==o)return[new ke(se.key,ze,Oe+" stop domain type must match previous stop domain type "+o)]}else o=Oe;if(Oe!=="number"&&Oe!=="string"&&Oe!=="boolean")return[new ke(se.key,ze,"stop domain value must be a number, string, or boolean")];if(Oe!=="number"&&b!=="categorical"){var st="number expected, "+Oe+" found";return Hs(y)&&b===void 0&&(st+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ke(se.key,ze,st)]}return b!=="categorical"||Oe!=="number"||isFinite(Ye)&&Math.floor(Ye)===Ye?b!=="categorical"&&Oe==="number"&&u!==void 0&&Ye=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var o=0,u=t.slice(1);oo?1:0}function kl(t){if(!t)return!0;var o,u=t[0];return t.length<=1?u!=="any":u==="=="?Dl(t[1],t[2],"=="):u==="!="?vl(Dl(t[1],t[2],"==")):u==="<"||u===">"||u==="<="||u===">="?Dl(t[1],t[2],u):u==="any"?(o=t.slice(1),["any"].concat(o.map(kl))):u==="all"?["all"].concat(t.slice(1).map(kl)):u==="none"?["all"].concat(t.slice(1).map(kl).map(vl)):u==="in"?Zf(t[1],t.slice(2)):u==="!in"?vl(Zf(t[1],t.slice(2))):u==="has"?jf(t[1]):u==="!has"?vl(jf(t[1])):u!=="within"||t}function Dl(t,o,u){switch(t){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,t,o]}}function Zf(t,o){if(o.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",t,["literal",o.sort(bh)]]:["filter-in-small",t,["literal",o]]}}function jf(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function vl(t){return["!",t]}function Vf(t){return rl(zt(t.value))?dl(pr({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function o(u){var p=u.value,y=u.key;if(ya(p)!=="array")return[new ke(y,p,"array expected, "+ya(p)+" found")];var b,S=u.styleSpec,I=[];if(p.length<1)return[new ke(y,p,"filter array must have at least 1 element")];switch(I=I.concat(lc({key:y+"[0]",value:p[0],valueSpec:S.filter_operator,style:u.style,styleSpec:u.styleSpec})),Ft(p[0])){case"<":case"<=":case">":case">=":p.length>=2&&Ft(p[1])==="$type"&&I.push(new ke(y,p,'"$type" cannot be use with operator "'+p[0]+'"'));case"==":case"!=":p.length!==3&&I.push(new ke(y,p,'filter array for operator "'+p[0]+'" must have 3 elements'));case"in":case"!in":p.length>=2&&(b=ya(p[1]))!=="string"&&I.push(new ke(y+"[1]",p[1],"string expected, "+b+" found"));for(var D=2;D=V[se+0]&&p>=V[se+1])?(S[ee]=!0,b.push(z[ee])):S[ee]=!1}}},Do.prototype._forEachCell=function(t,o,u,p,y,b,S,I){for(var D=this._convertToCellCoord(t),z=this._convertToCellCoord(o),V=this._convertToCellCoord(u),W=this._convertToCellCoord(p),ee=D;ee<=V;ee++)for(var se=z;se<=W;se++){var Me=this.d*se+ee;if((!I||I(this._convertFromCellCoord(ee),this._convertFromCellCoord(se),this._convertFromCellCoord(ee+1),this._convertFromCellCoord(se+1)))&&y.call(this,t,o,u,p,Me,b,S,I))return}},Do.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Do.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Do.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,o=3+this.cells.length+1+1,u=0,p=0;p=0)){var V=t[z];D[z]=ho[I].shallow.indexOf(z)>=0?V:uu(V,o)}t instanceof Error&&(D.message=t.message)}if(D.$name)throw new Error("$name property is reserved for worker serialization logic.");return I!=="Object"&&(D.$name=I),D}throw new Error("can't serialize object of type "+typeof t)}function na(t){if(t==null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||nl(t)||pc(t)||ArrayBuffer.isView(t)||t instanceof Fl)return t;if(Array.isArray(t))return t.map(na);if(typeof t=="object"){var o=t.$name||"Object",u=ho[o].klass;if(!u)throw new Error("can't deserialize unregistered class "+o);if(u.deserialize)return u.deserialize(t);for(var p=Object.create(u.prototype),y=0,b=Object.keys(t);y=0?I:na(I)}}return p}throw new Error("can't deserialize object of type "+typeof t)}var hf=function(){this.first=!0};hf.prototype.update=function(t,o){var u=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=u,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=u,!0):(this.lastFloorZoom>u?(this.lastIntegerZoom=u+1,this.lastIntegerZoomTime=o):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function zc(t){for(var o=0,u=t;o=65097&&t<=65103)||Kr["CJK Compatibility Ideographs"](t)||Kr["CJK Compatibility"](t)||Kr["CJK Radicals Supplement"](t)||Kr["CJK Strokes"](t)||!(!Kr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||t===12336)||Kr["CJK Unified Ideographs Extension A"](t)||Kr["CJK Unified Ideographs"](t)||Kr["Enclosed CJK Letters and Months"](t)||Kr["Hangul Compatibility Jamo"](t)||Kr["Hangul Jamo Extended-A"](t)||Kr["Hangul Jamo Extended-B"](t)||Kr["Hangul Jamo"](t)||Kr["Hangul Syllables"](t)||Kr.Hiragana(t)||Kr["Ideographic Description Characters"](t)||Kr.Kanbun(t)||Kr["Kangxi Radicals"](t)||Kr["Katakana Phonetic Extensions"](t)||Kr.Katakana(t)&&t!==12540||!(!Kr["Halfwidth and Fullwidth Forms"](t)||t===65288||t===65289||t===65293||t>=65306&&t<=65310||t===65339||t===65341||t===65343||t>=65371&&t<=65503||t===65507||t>=65512&&t<=65519)||!(!Kr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Kr["Unified Canadian Aboriginal Syllabics"](t)||Kr["Unified Canadian Aboriginal Syllabics Extended"](t)||Kr["Vertical Forms"](t)||Kr["Yijing Hexagram Symbols"](t)||Kr["Yi Syllables"](t)||Kr["Yi Radicals"](t))))}function gl(t){return!(pf(t)||function(o){return!!(Kr["Latin-1 Supplement"](o)&&(o===167||o===169||o===174||o===177||o===188||o===189||o===190||o===215||o===247)||Kr["General Punctuation"](o)&&(o===8214||o===8224||o===8225||o===8240||o===8241||o===8251||o===8252||o===8258||o===8263||o===8264||o===8265||o===8273)||Kr["Letterlike Symbols"](o)||Kr["Number Forms"](o)||Kr["Miscellaneous Technical"](o)&&(o>=8960&&o<=8967||o>=8972&&o<=8991||o>=8996&&o<=9e3||o===9003||o>=9085&&o<=9114||o>=9150&&o<=9165||o===9167||o>=9169&&o<=9179||o>=9186&&o<=9215)||Kr["Control Pictures"](o)&&o!==9251||Kr["Optical Character Recognition"](o)||Kr["Enclosed Alphanumerics"](o)||Kr["Geometric Shapes"](o)||Kr["Miscellaneous Symbols"](o)&&!(o>=9754&&o<=9759)||Kr["Miscellaneous Symbols and Arrows"](o)&&(o>=11026&&o<=11055||o>=11088&&o<=11097||o>=11192&&o<=11243)||Kr["CJK Symbols and Punctuation"](o)||Kr.Katakana(o)||Kr["Private Use Area"](o)||Kr["CJK Compatibility Forms"](o)||Kr["Small Form Variants"](o)||Kr["Halfwidth and Fullwidth Forms"](o)||o===8734||o===8756||o===8757||o>=9984&&o<=10087||o>=10102&&o<=10131||o===65532||o===65533)}(t))}function Ea(t){return t>=1424&&t<=2303||Kr["Arabic Presentation Forms-A"](t)||Kr["Arabic Presentation Forms-B"](t)}function ms(t,o){return!(!o&&Ea(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Kr.Khmer(t))}function Uc(t){for(var o=0,u=t;o-1&&(ks="error"),Cu&&Cu(t)};function Bl(){Gf.fire(new Pe("pluginStateChange",{pluginStatus:ks,pluginURL:Vu}))}var Gf=new rt,Hf=function(){return ks},Ds=function(){if(ks!=="deferred"||!Vu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ks="loading",Bl(),Vu&&Ba({url:Vu},function(t){t?Zc(t):(ks="loaded",Bl())})},Fs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ks==="loaded"||Fs.applyArabicShaping!=null},isLoading:function(){return ks==="loading"},setState:function(t){ks=t.pluginStatus,Vu=t.pluginURL},isParsed:function(){return Fs.applyArabicShaping!=null&&Fs.processBidirectionalText!=null&&Fs.processStyledBidirectionalText!=null},getPluginURL:function(){return Vu}},Fi=function(t,o){this.zoom=t,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.zoomHistory=o.zoomHistory,this.transition=o.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new hf,this.transition={})};Fi.prototype.isSupportedScript=function(t){return function(o,u){for(var p=0,y=o;pthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:o+(1-o)*u}:{fromScale:.5,toScale:1,t:1-(1-u)*o}};var Au=function(t,o){this.property=t,this.value=o,this.expression=function(u,p){if(nc(u))return new pl(u,p);if(oc(u)){var y=Ll(u,p);if(y.result==="error")throw new Error(y.value.map(function(S){return S.key+": "+S.message}).join(", "));return y.value}var b=u;return typeof u=="string"&&p.type==="color"&&(b=pi.parse(u)),{kind:"constant",evaluate:function(){return b}}}(o===void 0?t.specification.default:o,t.specification)};Au.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Au.prototype.possiblyEvaluate=function(t,o,u){return this.property.possiblyEvaluate(this,t,o,u)};var wu=function(t){this.property=t,this.value=new Au(t,void 0)};wu.prototype.transitioned=function(t,o){return new Gu(this.property,this.value,o,xt({},t.transition,this.transition),t.now)},wu.prototype.untransitioned=function(){return new Gu(this.property,this.value,null,{},0)};var rs=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};rs.prototype.getValue=function(t){return Je(this._values[t].value.value)},rs.prototype.setValue=function(t,o){this._values.hasOwnProperty(t)||(this._values[t]=new wu(this._values[t].property)),this._values[t].value=new Au(this._values[t].property,o===null?void 0:Je(o))},rs.prototype.getTransition=function(t){return Je(this._values[t].transition)},rs.prototype.setTransition=function(t,o){this._values.hasOwnProperty(t)||(this._values[t]=new wu(this._values[t].property)),this._values[t].transition=Je(o)||void 0},rs.prototype.serialize=function(){for(var t={},o=0,u=Object.keys(this._values);othis.end)return this.prior=null,y;if(this.value.isDataDriven())return this.prior=null,y;if(p=1)return 1;var D=I*I,z=D*I;return 4*(I<.5?z:3*(I-D)+z-.75)}(S))}return y};var Tu=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Tu.prototype.possiblyEvaluate=function(t,o,u){for(var p=new Mu(this._properties),y=0,b=Object.keys(this._values);yb.zoomHistory.lastIntegerZoom?{from:u,to:p}:{from:y,to:p}},o.prototype.interpolate=function(u){return u},o}(Cn),ys=function(t){this.specification=t};ys.prototype.possiblyEvaluate=function(t,o,u,p){if(t.value!==void 0){if(t.expression.kind==="constant"){var y=t.expression.evaluate(o,null,{},u,p);return this._calculate(y,y,y,o)}return this._calculate(t.expression.evaluate(new Fi(Math.floor(o.zoom-1),o)),t.expression.evaluate(new Fi(Math.floor(o.zoom),o)),t.expression.evaluate(new Fi(Math.floor(o.zoom+1),o)),o)}},ys.prototype._calculate=function(t,o,u,p){return p.zoom>p.zoomHistory.lastIntegerZoom?{from:t,to:o}:{from:u,to:o}},ys.prototype.interpolate=function(t){return t};var lu=function(t){this.specification=t};lu.prototype.possiblyEvaluate=function(t,o,u,p){return!!t.expression.evaluate(o,null,{},u,p)},lu.prototype.interpolate=function(){return!1};var ns=function(t){for(var o in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var u=t[o];u.specification.overridable&&this.overridableProperties.push(o);var p=this.defaultPropertyValues[o]=new Au(u,void 0),y=this.defaultTransitionablePropertyValues[o]=new wu(u);this.defaultTransitioningPropertyValues[o]=y.untransitioned(),this.defaultPossiblyEvaluatedValues[o]=p.possiblyEvaluate({})}};yn("DataDrivenProperty",Cn),yn("DataConstantProperty",Rn),yn("CrossFadedDataDrivenProperty",df),yn("CrossFadedProperty",ys),yn("ColorRampProperty",lu);var Go=function(t){function o(u,p){if(t.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(this.metadata=(u=u).metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new Xs(p.layout)),p.paint)){for(var y in this._transitionablePaint=new rs(p.paint),u.paint)this.setPaintProperty(y,u.paint[y],{validate:!1});for(var b in u.layout)this.setLayoutProperty(b,u.layout[b],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Mu(p.paint)}}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(u){return u==="visibility"?this.visibility:this._unevaluatedLayout.getValue(u)},o.prototype.setLayoutProperty=function(u,p,y){y===void 0&&(y={}),p!=null&&this._validate(ju,"layers."+this.id+".layout."+u,u,p,y)||(u!=="visibility"?this._unevaluatedLayout.setValue(u,p):this.visibility=p)},o.prototype.getPaintProperty=function(u){return Y(u,"-transition")?this._transitionablePaint.getTransition(u.slice(0,-"-transition".length)):this._transitionablePaint.getValue(u)},o.prototype.setPaintProperty=function(u,p,y){if(y===void 0&&(y={}),p!=null&&this._validate(lo,"layers."+this.id+".paint."+u,u,p,y))return!1;if(Y(u,"-transition"))return this._transitionablePaint.setTransition(u.slice(0,-"-transition".length),p||void 0),!1;var b=this._transitionablePaint._values[u],S=b.property.specification["property-type"]==="cross-faded-data-driven",I=b.value.isDataDriven(),D=b.value;this._transitionablePaint.setValue(u,p),this._handleSpecialPaintPropertyUpdate(u);var z=this._transitionablePaint._values[u].value;return z.isDataDriven()||I||S||this._handleOverridablePaintPropertyUpdate(u,D,z)},o.prototype._handleSpecialPaintPropertyUpdate=function(u){},o.prototype._handleOverridablePaintPropertyUpdate=function(u,p,y){return!1},o.prototype.isHidden=function(u){return!!(this.minzoom&&u=this.maxzoom)||this.visibility==="none"},o.prototype.updateTransitions=function(u){this._transitioningPaint=this._transitionablePaint.transitioned(u,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(u,p){u.getCrossfadeParameters&&(this._crossfadeParameters=u.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(u,void 0,p)),this.paint=this._transitioningPaint.possiblyEvaluate(u,void 0,p)},o.prototype.serialize=function(){var u={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&&(u.layout=u.layout||{},u.layout.visibility=this.visibility),ft(u,function(p,y){return!(p===void 0||y==="layout"&&!Object.keys(p).length||y==="paint"&&!Object.keys(p).length)})},o.prototype._validate=function(u,p,y,b,S){return S===void 0&&(S={}),(!S||S.validate!==!1)&&Su(this,u.call(Nc,{key:p,layerType:this.type,objectKey:y,value:b,styleSpec:pe,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var u in this.paint._values){var p=this.paint.get(u);if(p instanceof gs&&Hs(p.property.specification)&&(p.value.kind==="source"||p.value.kind==="composite")&&p.value.isStateDependent)return!0}return!1},o}(rt),Wf={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},vf=function(t,o){this._structArray=t,this._pos1=o*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ha=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Na(t,o){o===void 0&&(o=1);var u=0,p=0;return{members:t.map(function(y){var b=Wf[y.type].BYTES_PER_ELEMENT,S=u=dc(u,Math.max(o,b)),I=y.components||1;return p=Math.max(p,b),u+=b*I,{name:y.name,type:y.type,components:I,offset:S}}),size:dc(u,Math.max(p,o)),alignment:o}}function dc(t,o){return Math.ceil(t/o)*o}ha.serialize=function(t,o){return t._trim(),o&&(t.isTransferred=!0,o.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},ha.deserialize=function(t){var o=Object.create(this.prototype);return o.arrayBuffer=t.arrayBuffer,o.length=t.length,o.capacity=t.arrayBuffer.byteLength/o.bytesPerElement,o._refreshViews(),o},ha.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ha.prototype.clear=function(){this.length=0},ha.prototype.resize=function(t){this.reserve(t),this.length=t},ha.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var o=this.uint8;this._refreshViews(),o&&this.uint8.set(o)}},ha.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var yl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.int16[b+0]=p,this.int16[b+1]=y,u},o}(ha);yl.prototype.bytesPerElement=4,yn("StructArrayLayout2i4",yl);var Pu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=4*u;return this.int16[I+0]=p,this.int16[I+1]=y,this.int16[I+2]=b,this.int16[I+3]=S,u},o}(ha);Pu.prototype.bytesPerElement=8,yn("StructArrayLayout4i8",Pu);var cu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=6*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.int16[z+2]=b,this.int16[z+3]=S,this.int16[z+4]=I,this.int16[z+5]=D,u},o}(ha);cu.prototype.bytesPerElement=12,yn("StructArrayLayout2i4i12",cu);var Fo=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=4*u,V=8*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.uint8[V+4]=b,this.uint8[V+5]=S,this.uint8[V+6]=I,this.uint8[V+7]=D,u},o}(ha);Fo.prototype.bytesPerElement=8,yn("StructArrayLayout2i4ub8",Fo);var il=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.float32[b+0]=p,this.float32[b+1]=y,u},o}(ha);il.prototype.bytesPerElement=8,yn("StructArrayLayout2f8",il);var fu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W){var ee=this.length;return this.resize(ee+1),this.emplace(ee,u,p,y,b,S,I,D,z,V,W)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee){var se=10*u;return this.uint16[se+0]=p,this.uint16[se+1]=y,this.uint16[se+2]=b,this.uint16[se+3]=S,this.uint16[se+4]=I,this.uint16[se+5]=D,this.uint16[se+6]=z,this.uint16[se+7]=V,this.uint16[se+8]=W,this.uint16[se+9]=ee,u},o}(ha);fu.prototype.bytesPerElement=20,yn("StructArrayLayout10ui20",fu);var mf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se){var Me=this.length;return this.resize(Me+1),this.emplace(Me,u,p,y,b,S,I,D,z,V,W,ee,se)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me){var Oe=12*u;return this.int16[Oe+0]=p,this.int16[Oe+1]=y,this.int16[Oe+2]=b,this.int16[Oe+3]=S,this.uint16[Oe+4]=I,this.uint16[Oe+5]=D,this.uint16[Oe+6]=z,this.uint16[Oe+7]=V,this.int16[Oe+8]=W,this.int16[Oe+9]=ee,this.int16[Oe+10]=se,this.int16[Oe+11]=Me,u},o}(ha);mf.prototype.bytesPerElement=24,yn("StructArrayLayout4i4ui4i24",mf);var Nl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.float32[S+0]=p,this.float32[S+1]=y,this.float32[S+2]=b,u},o}(ha);Nl.prototype.bytesPerElement=12,yn("StructArrayLayout3f12",Nl);var jc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.uint32[1*u+0]=p,u},o}(ha);jc.prototype.bytesPerElement=4,yn("StructArrayLayout1ul4",jc);var gf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.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)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V){var W=this.length;return this.resize(W+1),this.emplace(W,u,p,y,b,S,I,D,z,V)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W){var ee=10*u,se=5*u;return this.int16[ee+0]=p,this.int16[ee+1]=y,this.int16[ee+2]=b,this.int16[ee+3]=S,this.int16[ee+4]=I,this.int16[ee+5]=D,this.uint32[se+3]=z,this.uint16[ee+8]=V,this.uint16[ee+9]=W,u},o}(ha);gf.prototype.bytesPerElement=20,yn("StructArrayLayout6i1ul2ui20",gf);var Iu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S,I){var D=this.length;return this.resize(D+1),this.emplace(D,u,p,y,b,S,I)},o.prototype.emplace=function(u,p,y,b,S,I,D){var z=6*u;return this.int16[z+0]=p,this.int16[z+1]=y,this.int16[z+2]=b,this.int16[z+3]=S,this.int16[z+4]=I,this.int16[z+5]=D,u},o}(ha);Iu.prototype.bytesPerElement=12,yn("StructArrayLayout2i2i2i12",Iu);var vc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b,S){var I=this.length;return this.resize(I+1),this.emplace(I,u,p,y,b,S)},o.prototype.emplace=function(u,p,y,b,S,I){var D=4*u,z=8*u;return this.float32[D+0]=p,this.float32[D+1]=y,this.float32[D+2]=b,this.int16[z+6]=S,this.int16[z+7]=I,u},o}(ha);vc.prototype.bytesPerElement=16,yn("StructArrayLayout2f1f2i16",vc);var Vc=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=12*u,D=3*u;return this.uint8[I+0]=p,this.uint8[I+1]=y,this.float32[D+1]=b,this.float32[D+2]=S,u},o}(ha);Vc.prototype.bytesPerElement=12,yn("StructArrayLayout2ub2f12",Vc);var al=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.uint16[S+0]=p,this.uint16[S+1]=y,this.uint16[S+2]=b,u},o}(ha);al.prototype.bytesPerElement=6,yn("StructArrayLayout3ui6",al);var Ji=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.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)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt){var Vt=24*u,Xt=12*u,lr=48*u;return this.int16[Vt+0]=p,this.int16[Vt+1]=y,this.uint16[Vt+2]=b,this.uint16[Vt+3]=S,this.uint32[Xt+2]=I,this.uint32[Xt+3]=D,this.uint32[Xt+4]=z,this.uint16[Vt+10]=V,this.uint16[Vt+11]=W,this.uint16[Vt+12]=ee,this.float32[Xt+7]=se,this.float32[Xt+8]=Me,this.uint8[lr+36]=Oe,this.uint8[lr+37]=Ye,this.uint8[lr+38]=ze,this.uint32[Xt+10]=st,this.int16[Vt+22]=Tt,u},o}(ha);Ji.prototype.bytesPerElement=48,yn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ji);var ol=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.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)},o.prototype.emplaceBack=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki){var ai=this.length;return this.resize(ai+1),this.emplace(ai,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki)},o.prototype.emplace=function(u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe,Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r,Zn,gn,Yn,hn,ki,ai){var Pn=34*u,Ai=17*u;return this.int16[Pn+0]=p,this.int16[Pn+1]=y,this.int16[Pn+2]=b,this.int16[Pn+3]=S,this.int16[Pn+4]=I,this.int16[Pn+5]=D,this.int16[Pn+6]=z,this.int16[Pn+7]=V,this.uint16[Pn+8]=W,this.uint16[Pn+9]=ee,this.uint16[Pn+10]=se,this.uint16[Pn+11]=Me,this.uint16[Pn+12]=Oe,this.uint16[Pn+13]=Ye,this.uint16[Pn+14]=ze,this.uint16[Pn+15]=st,this.uint16[Pn+16]=Tt,this.uint16[Pn+17]=Vt,this.uint16[Pn+18]=Xt,this.uint16[Pn+19]=lr,this.uint16[Pn+20]=Lr,this.uint16[Pn+21]=$r,this.uint16[Pn+22]=Zn,this.uint32[Ai+12]=gn,this.float32[Ai+13]=Yn,this.float32[Ai+14]=hn,this.float32[Ai+15]=ki,this.float32[Ai+16]=ai,u},o}(ha);ol.prototype.bytesPerElement=68,yn("StructArrayLayout8i15ui1ul4f68",ol);var hu=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.float32[1*u+0]=p,u},o}(ha);hu.prototype.bytesPerElement=4,yn("StructArrayLayout1f4",hu);var Ts=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=3*u;return this.int16[S+0]=p,this.int16[S+1]=y,this.int16[S+2]=b,u},o}(ha);Ts.prototype.bytesPerElement=6,yn("StructArrayLayout3i6",Ts);var zl=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y){var b=this.length;return this.resize(b+1),this.emplace(b,u,p,y)},o.prototype.emplace=function(u,p,y,b){var S=4*u;return this.uint32[2*u+0]=p,this.uint16[S+2]=y,this.uint16[S+3]=b,u},o}(ha);zl.prototype.bytesPerElement=8,yn("StructArrayLayout1ul2ui8",zl);var _l=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p){var y=this.length;return this.resize(y+1),this.emplace(y,u,p)},o.prototype.emplace=function(u,p,y){var b=2*u;return this.uint16[b+0]=p,this.uint16[b+1]=y,u},o}(ha);_l.prototype.bytesPerElement=4,yn("StructArrayLayout2ui4",_l);var yf=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u){var p=this.length;return this.resize(p+1),this.emplace(p,u)},o.prototype.emplace=function(u,p){return this.uint16[1*u+0]=p,u},o}(ha);yf.prototype.bytesPerElement=2,yn("StructArrayLayout1ui2",yf);var Pa=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(u,p,y,b){var S=this.length;return this.resize(S+1),this.emplace(S,u,p,y,b)},o.prototype.emplace=function(u,p,y,b,S){var I=4*u;return this.float32[I+0]=p,this.float32[I+1]=y,this.float32[I+2]=b,this.float32[I+3]=S,u},o}(ha);Pa.prototype.bytesPerElement=16,yn("StructArrayLayout4f16",Pa);var l=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={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 u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new fe(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(vf);l.prototype.size=20;var h=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new l(this,u)},o}(gf);yn("CollisionBoxArray",h);var c=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(vf);c.prototype.size=48;var d=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new c(this,u)},o}(Ji);yn("PlacedSymbolArray",d);var E=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(vf);E.prototype.size=68;var w=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new E(this,u)},o}(ol);yn("SymbolInstanceArray",w);var P=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getoffsetX=function(u){return this.float32[1*u+0]},o}(hu);yn("GlyphOffsetArray",P);var L=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.getx=function(u){return this.int16[3*u+0]},o.prototype.gety=function(u){return this.int16[3*u+1]},o.prototype.gettileUnitDistanceFromAnchor=function(u){return this.int16[3*u+2]},o}(Ts);yn("SymbolLineVertexArray",L);var N=function(t){function o(){t.apply(this,arguments)}t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(vf);N.prototype.size=8;var q=function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.get=function(u){return new N(this,u)},o}(zl);yn("FeatureIndexArray",q);var ce=Na([{name:"a_pos",components:2,type:"Int16"}],4).members,he=function(t){t===void 0&&(t=[]),this.segments=t};function de(t,o){return 256*(t=gt(Math.floor(t),0,255))+gt(Math.floor(o),0,255)}he.prototype.prepareSegment=function(t,o,u,p){var y=this.segments[this.segments.length-1];return t>he.MAX_VERTEX_ARRAY_LENGTH&&Qe("Max vertices per segment is "+he.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!y||y.vertexLength+t>he.MAX_VERTEX_ARRAY_LENGTH||y.sortKey!==p)&&(y={vertexOffset:o.length,primitiveOffset:u.length,vertexLength:0,primitiveLength:0},p!==void 0&&(y.sortKey=p),this.segments.push(y)),y},he.prototype.get=function(){return this.segments},he.prototype.destroy=function(){for(var t=0,o=this.segments;t>>16)*I&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295)<<13|b>>>19))+((5*(b>>>16)&65535)<<16)&4294967295))+((58964+(S>>>16)&65535)<<16);switch(z=0,p){case 3:z^=(255&o.charCodeAt(V+2))<<16;case 2:z^=(255&o.charCodeAt(V+1))<<8;case 1:b^=z=(65535&(z=(z=(65535&(z^=255&o.charCodeAt(V)))*I+(((z>>>16)*I&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295}return b^=o.length,b=2246822507*(65535&(b^=b>>>16))+((2246822507*(b>>>16)&65535)<<16)&4294967295,b=3266489909*(65535&(b^=b>>>13))+((3266489909*(b>>>16)&65535)<<16)&4294967295,(b^=b>>>16)>>>0}}),We=ve(function(t){t.exports=function(o,u){for(var p,y=o.length,b=u^y,S=0;y>=4;)p=1540483477*(65535&(p=255&o.charCodeAt(S)|(255&o.charCodeAt(++S))<<8|(255&o.charCodeAt(++S))<<16|(255&o.charCodeAt(++S))<<24))+((1540483477*(p>>>16)&65535)<<16),b=1540483477*(65535&b)+((1540483477*(b>>>16)&65535)<<16)^(p=1540483477*(65535&(p^=p>>>24))+((1540483477*(p>>>16)&65535)<<16)),y-=4,++S;switch(y){case 3:b^=(255&o.charCodeAt(S+2))<<16;case 2:b^=(255&o.charCodeAt(S+1))<<8;case 1:b=1540483477*(65535&(b^=255&o.charCodeAt(S)))+((1540483477*(b>>>16)&65535)<<16)}return b=1540483477*(65535&(b^=b>>>13))+((1540483477*(b>>>16)&65535)<<16),(b^=b>>>15)>>>0}}),we=Ie,Ve=We;we.murmur3=Ie,we.murmur2=Ve;var tt=function(){this.ids=[],this.positions=[],this.indexed=!1};tt.prototype.add=function(t,o,u,p){this.ids.push(Wt(t)),this.positions.push(o,u,p)},tt.prototype.getPositions=function(t){for(var o=Wt(t),u=0,p=this.ids.length-1;u>1;this.ids[y]>=o?p=y:u=y+1}for(var b=[];this.ids[u]===o;)b.push({index:this.positions[3*u],start:this.positions[3*u+1],end:this.positions[3*u+2]}),u++;return b},tt.serialize=function(t,o){var u=new Float64Array(t.ids),p=new Uint32Array(t.positions);return function y(b,S,I,D){for(;I>1],V=I-1,W=D+1;;){do V++;while(b[V]z);if(V>=W)break;jt(b,V,W),jt(S,3*V,3*W),jt(S,3*V+1,3*W+1),jt(S,3*V+2,3*W+2)}W-IS.x+1||DS.y+1)&&Qe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function co(t,o){return{type:t.type,id:t.id,properties:t.properties,geometry:o?za(t):[]}}function Bs(t,o,u,p,y){t.emplaceBack(2*o+(p+1)/2,2*u+(y+1)/2)}var _s=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new yl,this.indexArray=new al,this.segments=new he,this.programConfigurations=new Kn(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};function Hu(t,o){for(var u=0;u1){if(mc(t,o))return!0;for(var p=0;p1?u:u.sub(o)._mult(y)._add(o))}function xl(t,o){for(var u,p,y,b=!1,S=0;So.y!=(y=u[D]).y>o.y&&o.x<(y.x-p.x)*(o.y-p.y)/(y.y-p.y)+p.x&&(b=!b);return b}function vu(t,o){for(var u=!1,p=0,y=t.length-1;po.y!=S.y>o.y&&o.x<(S.x-b.x)*(o.y-b.y)/(S.y-b.y)+b.x&&(u=!u)}return u}function Ul(t,o,u){var p=u[0],y=u[2];if(t.xy.x&&o.x>y.x||t.yy.y&&o.y>y.y)return!1;var b=Qt(t,o,u[0]);return b!==Qt(t,o,u[1])||b!==Qt(t,o,u[2])||b!==Qt(t,o,u[3])}function Ou(t,o,u){var p=o.paint.get(t).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(t)}function So(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ka(t,o,u,p,y){if(!o[0]&&!o[1])return t;var b=fe.convert(o)._mult(y);u==="viewport"&&b._rotate(-p);for(var S=[],I=0;I=8192||V<0||V>=8192)){var W=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),ee=W.vertexLength;Bs(this.layoutVertexArray,z,V,-1,-1),Bs(this.layoutVertexArray,z,V,1,-1),Bs(this.layoutVertexArray,z,V,1,1),Bs(this.layoutVertexArray,z,V,-1,1),this.indexArray.emplaceBack(ee,ee+1,ee+2),this.indexArray.emplaceBack(ee,ee+3,ee+2),W.vertexLength+=4,W.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,u,{},p)},yn("CircleBucket",_s,{omit:["layers"]});var Ua=new ns({"circle-sort-key":new Cn(pe.layout_circle["circle-sort-key"])}),mu={paint:new ns({"circle-radius":new Cn(pe.paint_circle["circle-radius"]),"circle-color":new Cn(pe.paint_circle["circle-color"]),"circle-blur":new Cn(pe.paint_circle["circle-blur"]),"circle-opacity":new Cn(pe.paint_circle["circle-opacity"]),"circle-translate":new Rn(pe.paint_circle["circle-translate"]),"circle-translate-anchor":new Rn(pe.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Rn(pe.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Rn(pe.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Cn(pe.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Cn(pe.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Cn(pe.paint_circle["circle-stroke-opacity"])}),layout:Ua},ta=typeof Float32Array!="undefined"?Float32Array:Array;function is(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Ms(t,o,u){var p=o[0],y=o[1],b=o[2],S=o[3],I=o[4],D=o[5],z=o[6],V=o[7],W=o[8],ee=o[9],se=o[10],Me=o[11],Oe=o[12],Ye=o[13],ze=o[14],st=o[15],Tt=u[0],Vt=u[1],Xt=u[2],lr=u[3];return t[0]=Tt*p+Vt*I+Xt*W+lr*Oe,t[1]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[2]=Tt*b+Vt*z+Xt*se+lr*ze,t[3]=Tt*S+Vt*V+Xt*Me+lr*st,t[4]=(Tt=u[4])*p+(Vt=u[5])*I+(Xt=u[6])*W+(lr=u[7])*Oe,t[5]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[6]=Tt*b+Vt*z+Xt*se+lr*ze,t[7]=Tt*S+Vt*V+Xt*Me+lr*st,t[8]=(Tt=u[8])*p+(Vt=u[9])*I+(Xt=u[10])*W+(lr=u[11])*Oe,t[9]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[10]=Tt*b+Vt*z+Xt*se+lr*ze,t[11]=Tt*S+Vt*V+Xt*Me+lr*st,t[12]=(Tt=u[12])*p+(Vt=u[13])*I+(Xt=u[14])*W+(lr=u[15])*Oe,t[13]=Tt*y+Vt*D+Xt*ee+lr*Ye,t[14]=Tt*b+Vt*z+Xt*se+lr*ze,t[15]=Tt*S+Vt*V+Xt*Me+lr*st,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,o=0,u=arguments.length;u--;)o+=t[u]*t[u];return Math.sqrt(o)});var bl,_f=Ms;function xf(t,o,u){var p=o[0],y=o[1],b=o[2],S=o[3];return t[0]=u[0]*p+u[4]*y+u[8]*b+u[12]*S,t[1]=u[1]*p+u[5]*y+u[9]*b+u[13]*S,t[2]=u[2]*p+u[6]*y+u[10]*b+u[14]*S,t[3]=u[3]*p+u[7]*y+u[11]*b+u[15]*S,t}bl=new ta(3),ta!=Float32Array&&(bl[0]=0,bl[1]=0,bl[2]=0),function(){var t=new ta(4);ta!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var Gc=(function(){var t=new ta(2);ta!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function o(u){t.call(this,u,mu)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.createBucket=function(u){return new _s(u)},o.prototype.queryRadius=function(u){var p=u;return Ou("circle-radius",this,p)+Ou("circle-stroke-width",this,p)+So(this.paint.get("circle-translate"))},o.prototype.queryIntersectsFeature=function(u,p,y,b,S,I,D,z){for(var V=ka(u,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),I.angle,D),W=this.paint.get("circle-radius").evaluate(p,y)+this.paint.get("circle-stroke-width").evaluate(p,y),ee=this.paint.get("circle-pitch-alignment")==="map",se=ee?V:function(Lr,$r){return Lr.map(function(Zn){return mo(Zn,$r)})}(V,z),Me=ee?W*D:W,Oe=0,Ye=b;Oet.width||y.height>t.height||u.x>t.width-y.width||u.y>t.height-y.height)throw new RangeError("out of range source coordinates for image copy");if(y.width>o.width||y.height>o.height||p.x>o.width-y.width||p.y>o.height-y.height)throw new RangeError("out of range destination coordinates for image copy");for(var S=t.data,I=o.data,D=0;D80*u){p=b=t[0],y=S=t[1];for(var Me=u;Meb&&(b=I),D>S&&(S=D);z=(z=Math.max(b-p,S-y))!==0?1/z:0}return Yc(ee,se,u,p,y,z),se}function np(t,o,u,p,y){var b,S;if(y===Kf(t,o,u,p)>0)for(b=o;b=o;b-=p)S=qf(b,t[b],t[b+1],S);return S&&Th(S,S.next)&&(jl(S),S=S.next),S}function Ps(t,o){if(!t)return t;o||(o=t);var u,p=t;do if(u=!1,p.steiner||!Th(p,p.next)&&Co(p.prev,p,p.next)!==0)p=p.next;else{if(jl(p),(p=o=p.prev)===p.next)break;u=!0}while(u||p!==o);return o}function Yc(t,o,u,p,y,b,S){if(t){!S&&b&&function(V,W,ee,se){var Me=V;do Me.z===null&&(Me.z=ap(Me.x,Me.y,W,ee,se)),Me.prevZ=Me.prev,Me.nextZ=Me.next,Me=Me.next;while(Me!==V);Me.prevZ.nextZ=null,Me.prevZ=null,function(Oe){var Ye,ze,st,Tt,Vt,Xt,lr,Lr,$r=1;do{for(ze=Oe,Oe=null,Vt=null,Xt=0;ze;){for(Xt++,st=ze,lr=0,Ye=0;Ye<$r&&(lr++,st=st.nextZ);Ye++);for(Lr=$r;lr>0||Lr>0&&st;)lr!==0&&(Lr===0||!st||ze.z<=st.z)?(Tt=ze,ze=ze.nextZ,lr--):(Tt=st,st=st.nextZ,Lr--),Vt?Vt.nextZ=Tt:Oe=Tt,Tt.prevZ=Vt,Vt=Tt;ze=st}Vt.nextZ=null,$r*=2}while(Xt>1)}(Me)}(t,p,y,b);for(var I,D,z=t;t.prev!==t.next;)if(I=t.prev,D=t.next,b?Td(t,p,y,b):zp(t))o.push(I.i/u),o.push(t.i/u),o.push(D.i/u),jl(t),t=D.next,z=D.next;else if((t=D)===z){S?S===1?Yc(t=Ef(Ps(t),o,u),o,u,p,y,b,2):S===2&&ip(t,o,u,p,y,b):Yc(Ps(t),o,u,p,y,b,1);break}}}function zp(t){var o=t.prev,u=t,p=t.next;if(Co(o,u,p)>=0)return!1;for(var y=t.next.next;y!==t.prev;){if(qc(o.x,o.y,u.x,u.y,p.x,p.y,y.x,y.y)&&Co(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function Td(t,o,u,p){var y=t.prev,b=t,S=t.next;if(Co(y,b,S)>=0)return!1;for(var I=y.x>b.x?y.x>S.x?y.x:S.x:b.x>S.x?b.x:S.x,D=y.y>b.y?y.y>S.y?y.y:S.y:b.y>S.y?b.y:S.y,z=ap(y.x=z&&ee&&ee.z<=V;){if(W!==t.prev&&W!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,W.x,W.y)&&Co(W.prev,W,W.next)>=0||(W=W.prevZ,ee!==t.prev&&ee!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,ee.x,ee.y)&&Co(ee.prev,ee,ee.next)>=0))return!1;ee=ee.nextZ}for(;W&&W.z>=z;){if(W!==t.prev&&W!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,W.x,W.y)&&Co(W.prev,W,W.next)>=0)return!1;W=W.prevZ}for(;ee&&ee.z<=V;){if(ee!==t.prev&&ee!==t.next&&qc(y.x,y.y,b.x,b.y,S.x,S.y,ee.x,ee.y)&&Co(ee.prev,ee,ee.next)>=0)return!1;ee=ee.nextZ}return!0}function Ef(t,o,u){var p=t;do{var y=p.prev,b=p.next.next;!Th(y,b)&&jp(y,p,p.next,b)&&Yf(y,b)&&Yf(b,y)&&(o.push(y.i/u),o.push(p.i/u),o.push(b.i/u),jl(p),jl(p.next),p=t=b),p=p.next}while(p!==t);return Ps(p)}function ip(t,o,u,p,y,b){var S=t;do{for(var I=S.next.next;I!==S.prev;){if(S.i!==I.i&&Zp(S,I)){var D=Ph(S,I);return S=Ps(S,S.next),D=Ps(D,D.next),Yc(S,o,u,p,y,b),void Yc(D,o,u,p,y,b)}I=I.next}S=S.next}while(S!==t)}function Md(t,o){return t.x-o.x}function Pd(t,o){if(o=function(p,y){var b,S=y,I=p.x,D=p.y,z=-1/0;do{if(D<=S.y&&D>=S.next.y&&S.next.y!==S.y){var V=S.x+(D-S.y)*(S.next.x-S.x)/(S.next.y-S.y);if(V<=I&&V>z){if(z=V,V===I){if(D===S.y)return S;if(D===S.next.y)return S.next}b=S.x=S.x&&S.x>=se&&I!==S.x&&qc(Db.x||S.x===b.x&&wh(b,S)))&&(b=S,Oe=W)),S=S.next;while(S!==ee);return b}(t,o)){var u=Ph(o,t);Ps(o,o.next),Ps(u,u.next)}}function wh(t,o){return Co(t.prev,t,o.prev)<0&&Co(o.next,t,t.next)<0}function ap(t,o,u,p,y){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-u)*y)|t<<8))|t<<4))|t<<2))|t<<1))|(o=1431655765&((o=858993459&((o=252645135&((o=16711935&((o=32767*(o-p)*y)|o<<8))|o<<4))|o<<2))|o<<1))<<1}function Up(t){var o=t,u=t;do(o.x=0&&(t-S)*(p-I)-(u-S)*(o-I)>=0&&(u-S)*(b-I)-(y-S)*(p-I)>=0}function Zp(t,o){return t.next.i!==o.i&&t.prev.i!==o.i&&!function(u,p){var y=u;do{if(y.i!==u.i&&y.next.i!==u.i&&y.i!==p.i&&y.next.i!==p.i&&jp(y,y.next,u,p))return!0;y=y.next}while(y!==u);return!1}(t,o)&&(Yf(t,o)&&Yf(o,t)&&function(u,p){var y=u,b=!1,S=(u.x+p.x)/2,I=(u.y+p.y)/2;do y.y>I!=y.next.y>I&&y.next.y!==y.y&&S<(y.next.x-y.x)*(I-y.y)/(y.next.y-y.y)+y.x&&(b=!b),y=y.next;while(y!==u);return b}(t,o)&&(Co(t.prev,t,o.prev)||Co(t,o.prev,o))||Th(t,o)&&Co(t.prev,t,t.next)>0&&Co(o.prev,o,o.next)>0)}function Co(t,o,u){return(o.y-t.y)*(u.x-o.x)-(o.x-t.x)*(u.y-o.y)}function Th(t,o){return t.x===o.x&&t.y===o.y}function jp(t,o,u,p){var y=Xf(Co(t,o,u)),b=Xf(Co(t,o,p)),S=Xf(Co(u,p,t)),I=Xf(Co(u,p,o));return y!==b&&S!==I||!(y!==0||!Mh(t,u,o))||!(b!==0||!Mh(t,p,o))||!(S!==0||!Mh(u,t,p))||!(I!==0||!Mh(u,o,p))}function Mh(t,o,u){return o.x<=Math.max(t.x,u.x)&&o.x>=Math.min(t.x,u.x)&&o.y<=Math.max(t.y,u.y)&&o.y>=Math.min(t.y,u.y)}function Xf(t){return t>0?1:t<0?-1:0}function Yf(t,o){return Co(t.prev,t,t.next)<0?Co(t,o,t.next)>=0&&Co(t,t.prev,o)>=0:Co(t,o,t.prev)<0||Co(t,t.next,o)<0}function Ph(t,o){var u=new Sl(t.i,t.x,t.y),p=new Sl(o.i,o.x,o.y),y=t.next,b=o.prev;return t.next=o,o.prev=t,u.next=y,y.prev=u,p.next=u,u.prev=p,b.next=p,p.prev=b,p}function qf(t,o,u,p){var y=new Sl(t,o,u);return p?(y.next=p.next,y.prev=p,p.next.prev=y,p.next=y):(y.prev=y,y.next=y),y}function jl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Sl(t,o,u){this.i=t,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Kf(t,o,u,p){for(var y=0,b=o,S=u-p;bD;){if(z-D>600){var W=z-D+1,ee=I-D+1,se=Math.log(W),Me=.5*Math.exp(2*se/3),Oe=.5*Math.sqrt(se*Me*(W-Me)/W)*(ee-W/2<0?-1:1);b(S,I,Math.max(D,Math.floor(I-ee*Me/W+Oe)),Math.min(z,Math.floor(I+(W-ee)*Me/W+Oe)),V)}var Ye=S[I],ze=D,st=z;for(_c(S,D,I),V(S[z],Ye)>0&&_c(S,D,z);ze0;)st--}V(S[D],Ye)===0?_c(S,D,st):_c(S,++st,z),st<=I&&(D=st+1),I<=st&&(z=st-1)}})(t,o,u||0,p||t.length-1,y||Oh)}function _c(t,o,u){var p=t[o];t[o]=t[u],t[u]=p}function Oh(t,o){return to?1:0}function $f(t,o){var u=t.length;if(u<=1)return[t];for(var p,y,b=[],S=0;S1)for(var D=0;D0&&u.holes.push(p+=t[y-1].length)}return u},El.default=Xc;var Ns=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new yl,this.indexArray=new al,this.indexArray2=new _l,this.programConfigurations=new Kn(t.layers,t.zoom),this.segments=new he,this.segments2=new he,this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};Ns.prototype.populate=function(t,o,u){this.hasPattern=Sf("fill",this.layers,o);for(var p=this.layers[0].layout.get("fill-sort-key"),y=[],b=0,S=t;b>3}if(y--,p===1||p===2)b+=t.readSVarint(),S+=t.readSVarint(),p===1&&(o&&I.push(o),o=[]),o.push(new fe(b,S));else{if(p!==7)throw new Error("unknown command "+p);o&&o.push(o[0].clone())}}return o&&I.push(o),I},Cl.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var o=t.readVarint()+t.pos,u=1,p=0,y=0,b=0,S=1/0,I=-1/0,D=1/0,z=-1/0;t.pos>3}if(p--,u===1||u===2)(y+=t.readSVarint())I&&(I=y),(b+=t.readSVarint())z&&(z=b);else if(u!==7)throw new Error("unknown command "+u)}return[S,D,I,z]},Cl.prototype.toGeoJSON=function(t,o,u){var p,y,b=this.extent*Math.pow(2,u),S=this.extent*t,I=this.extent*o,D=this.loadGeometry(),z=Cl.types[this.type];function V(se){for(var Me=0;Me>3;y=S===1?p.readString():S===2?p.readFloat():S===3?p.readDouble():S===4?p.readVarint64():S===5?p.readVarint():S===6?p.readSVarint():S===7?p.readBoolean():null}return y}(u))}function Hp(t,o,u){if(t===3){var p=new Lh(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}Gp.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var o=this._pbf.readVarint()+this._pbf.pos;return new Rh(this._pbf,o,this.extent,this._keys,this._values)};var gu={VectorTile:function(t,o){this.layers=t.readFields(Hp,{},o)},VectorTileFeature:Rh,VectorTileLayer:Lh},Wp=gu.VectorTileFeature.types,kh=Math.pow(2,13);function $c(t,o,u,p,y,b,S,I){t.emplaceBack(o,u,2*Math.floor(p*kh)+S,y*kh*2,b*kh*2,Math.round(I))}var qu=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(o){return o.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new cu,this.indexArray=new al,this.programConfigurations=new Kn(t.layers,t.zoom),this.segments=new he,this.stateDependentLayerIds=this.layers.filter(function(o){return o.isStateDependent()}).map(function(o){return o.id})};function Xp(t,o){return t.x===o.x&&(t.x<0||t.x>8192)||t.y===o.y&&(t.y<0||t.y>8192)}qu.prototype.populate=function(t,o,u){this.features=[],this.hasPattern=Sf("fill-extrusion",this.layers,o);for(var p=0,y=t;p8192})||Ai.every(function(hi){return hi.y<0})||Ai.every(function(hi){return hi.y>8192})))for(var Oe=0,Ye=0;Ye=1){var st=Me[Ye-1];if(!Xp(ze,st)){W.vertexLength+4>he.MAX_VERTEX_ARRAY_LENGTH&&(W=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Tt=ze.sub(st)._perp()._unit(),Vt=st.dist(ze);Oe+Vt>32768&&(Oe=0),$c(this.layoutVertexArray,ze.x,ze.y,Tt.x,Tt.y,0,0,Oe),$c(this.layoutVertexArray,ze.x,ze.y,Tt.x,Tt.y,0,1,Oe),$c(this.layoutVertexArray,st.x,st.y,Tt.x,Tt.y,0,0,Oe+=Vt),$c(this.layoutVertexArray,st.x,st.y,Tt.x,Tt.y,0,1,Oe);var Xt=W.vertexLength;this.indexArray.emplaceBack(Xt,Xt+2,Xt+1),this.indexArray.emplaceBack(Xt+1,Xt+2,Xt+3),W.vertexLength+=4,W.primitiveLength+=2}}}}if(W.vertexLength+D>he.MAX_VERTEX_ARRAY_LENGTH&&(W=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray)),Wp[t.type]==="Polygon"){for(var lr=[],Lr=[],$r=W.vertexLength,Zn=0,gn=I;Zn=2&&t[D-1].equals(t[D-2]);)D--;for(var z=0;z0;if(Lr&&ze>z){var Zn=V.dist(se);if(Zn>2*W){var gn=V.sub(V.sub(se)._mult(W/Zn)._round());this.updateDistance(se,gn),this.addCurrentVertex(gn,Oe,0,0,ee),se=gn}}var Yn=se&&Me,hn=Yn?u:I?"butt":p;if(Yn&&hn==="round"&&(Xty&&(hn="bevel"),hn==="bevel"&&(Xt>2&&(hn="flipbevel"),Xt100)st=Ye.mult(-1);else{var ki=Xt*Oe.add(Ye).mag()/Oe.sub(Ye).mag();st._perp()._mult(ki*($r?-1:1))}this.addCurrentVertex(V,st,0,0,ee),this.addCurrentVertex(V,st.mult(-1),0,0,ee)}else if(hn==="bevel"||hn==="fakeround"){var ai=-Math.sqrt(Xt*Xt-1),Pn=$r?ai:0,Ai=$r?0:ai;if(se&&this.addCurrentVertex(V,Oe,Pn,Ai,ee),hn==="fakeround")for(var hi=Math.round(180*lr/Math.PI/20),ea=1;ea2*W){var ao=V.add(Me.sub(V)._mult(W/_o)._round());this.updateDistance(V,ao),this.addCurrentVertex(ao,Ye,0,0,ee),V=ao}}}}},va.prototype.addCurrentVertex=function(t,o,u,p,y,b){b===void 0&&(b=!1);var S=o.y*p-o.x,I=-o.y-o.x*p;this.addHalfVertex(t,o.x+o.y*u,o.y-o.x*u,b,!1,u,y),this.addHalfVertex(t,S,I,b,!0,-p,y),this.distance>sp/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(t,o,u,p,y,b))},va.prototype.addHalfVertex=function(t,o,u,p,y,b,S){var I=.5*(this.lineClips?this.scaledDistance*(sp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(p?1:0),(t.y<<1)+(y?1:0),Math.round(63*o)+128,Math.round(63*u)+128,1+(b===0?0:b<0?-1:1)|(63&I)<<2,I>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var D=S.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),S.primitiveLength++),y?this.e2=D:this.e1=D},va.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},va.prototype.updateDistance=function(t,o){this.distance+=t.dist(o),this.updateScaledDistance()},yn("LineBucket",va,{omit:["layers","patternFeatures"]});var Gl=new ns({"line-cap":new Rn(pe.layout_line["line-cap"]),"line-join":new Cn(pe.layout_line["line-join"]),"line-miter-limit":new Rn(pe.layout_line["line-miter-limit"]),"line-round-limit":new Rn(pe.layout_line["line-round-limit"]),"line-sort-key":new Cn(pe.layout_line["line-sort-key"])}),Ao={paint:new ns({"line-opacity":new Cn(pe.paint_line["line-opacity"]),"line-color":new Cn(pe.paint_line["line-color"]),"line-translate":new Rn(pe.paint_line["line-translate"]),"line-translate-anchor":new Rn(pe.paint_line["line-translate-anchor"]),"line-width":new Cn(pe.paint_line["line-width"]),"line-gap-width":new Cn(pe.paint_line["line-gap-width"]),"line-offset":new Cn(pe.paint_line["line-offset"]),"line-blur":new Cn(pe.paint_line["line-blur"]),"line-dasharray":new ys(pe.paint_line["line-dasharray"]),"line-pattern":new df(pe.paint_line["line-pattern"]),"line-gradient":new lu(pe.paint_line["line-gradient"])}),layout:Gl},Ys=new(function(t){function o(){t.apply(this,arguments)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.possiblyEvaluate=function(u,p){return p=new Fi(Math.floor(p.zoom),{now:p.now,fadeDuration:p.fadeDuration,zoomHistory:p.zoomHistory,transition:p.transition}),t.prototype.possiblyEvaluate.call(this,u,p)},o.prototype.evaluate=function(u,p,y,b){return p=xt({},p,{zoom:Math.floor(p.zoom)}),t.prototype.evaluate.call(this,u,p,y,b)},o}(Cn))(Ao.paint.properties["line-width"].specification);Ys.useIntegerZoom=!0;var Yp=function(t){function o(u){t.call(this,u,Ao),this.gradientVersion=0}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(u){u==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof ds,this.gradientVersion=(this.gradientVersion+1)%Xe)},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(u,p){t.prototype.recalculate.call(this,u,p),this.paint._values["line-floorwidth"]=Ys.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,u)},o.prototype.createBucket=function(u){return new va(u)},o.prototype.queryRadius=function(u){var p=u,y=up(Ou("line-width",this,p),Ou("line-gap-width",this,p)),b=Ou("line-offset",this,p);return y/2+Math.abs(b)+So(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(u,p,y,b,S,I,D){var z=ka(u,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),I.angle,D),V=D/2*up(this.paint.get("line-width").evaluate(p,y),this.paint.get("line-gap-width").evaluate(p,y)),W=this.paint.get("line-offset").evaluate(p,y);return W&&(b=function(ee,se){for(var Me=[],Oe=new fe(0,0),Ye=0;Ye=3){for(var ze=0;ze0?o+2*t:t}var nh=Na([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Rd=Na([{name:"a_projected_pos",components:3,type:"Float32"}],4),Ld=(Na([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Na([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Dh=(Na([{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"}]),Na([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qp=Na([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Kp(t,o,u){return t.sections.forEach(function(p){p.text=function(y,b,S){var I=b.layout.get("text-transform").evaluate(S,{});return I==="uppercase"?y=y.toLocaleUpperCase():I==="lowercase"&&(y=y.toLocaleLowerCase()),Fs.applyArabicShaping&&(y=Fs.applyArabicShaping(y)),y}(p.text,o,u)}),t}Na([{name:"triangle",components:3,type:"Uint16"}]),Na([{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"}]),Na([{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"}]),Na([{type:"Float32",name:"offsetX"}]),Na([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Af={"!":"\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"},lp=function(t,o,u,p,y){var b,S,I=8*y-p-1,D=(1<>1,V=-7,W=u?y-1:0,ee=u?-1:1,se=t[o+W];for(W+=ee,b=se&(1<<-V)-1,se>>=-V,V+=I;V>0;b=256*b+t[o+W],W+=ee,V-=8);for(S=b&(1<<-V)-1,b>>=-V,V+=p;V>0;S=256*S+t[o+W],W+=ee,V-=8);if(b===0)b=1-z;else{if(b===D)return S?NaN:1/0*(se?-1:1);S+=Math.pow(2,p),b-=z}return(se?-1:1)*S*Math.pow(2,b-p)},$p=function(t,o,u,p,y,b){var S,I,D,z=8*b-y-1,V=(1<>1,ee=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,se=p?0:b-1,Me=p?1:-1,Oe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(I=isNaN(o)?1:0,S=V):(S=Math.floor(Math.log(o)/Math.LN2),o*(D=Math.pow(2,-S))<1&&(S--,D*=2),(o+=S+W>=1?ee/D:ee*Math.pow(2,1-W))*D>=2&&(S++,D/=2),S+W>=V?(I=0,S=V):S+W>=1?(I=(o*D-1)*Math.pow(2,y),S+=W):(I=o*Math.pow(2,W-1)*Math.pow(2,y),S=0));y>=8;t[u+se]=255&I,se+=Me,I/=256,y-=8);for(S=S<0;t[u+se]=255&S,se+=Me,S/=256,z-=8);t[u+se-Me]|=128*Oe},wf=Sa;function Sa(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Sa.Varint=0,Sa.Fixed64=1,Sa.Bytes=2,Sa.Fixed32=5;var ih=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Hl(t){return t.type===Sa.Bytes?t.readVarint()+t.pos:t.pos+1}function Tf(t,o,u){return u?4294967296*o+(t>>>0):4294967296*(o>>>0)+(t>>>0)}function cp(t,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(7*Math.LN2));u.realloc(p);for(var y=u.pos-1;y>=t;y--)u.buf[y+p]=u.buf[y]}function kd(t,o){for(var u=0;u>>8,t[u+2]=o>>>16,t[u+3]=o>>>24}function Tr(t,o){return(t[o]|t[o+1]<<8|t[o+2]<<16)+(t[o+3]<<24)}function Rr(t,o,u){t===1&&u.readMessage(Gr,o)}function Gr(t,o,u){if(t===3){var p=u.readMessage(_r,{}),y=p.width,b=p.height,S=p.left,I=p.top,D=p.advance;o.push({id:p.id,bitmap:new nu({width:y+6,height:b+6},p.bitmap),metrics:{width:y,height:b,left:S,top:I,advance:D}})}}function _r(t,o,u){t===1?o.id=u.readVarint():t===2?o.bitmap=u.readBytes():t===3?o.width=u.readVarint():t===4?o.height=u.readVarint():t===5?o.left=u.readSVarint():t===6?o.top=u.readSVarint():t===7&&(o.advance=u.readVarint())}function Mr(t){for(var o=0,u=0,p=0,y=t;p=0;ee--){var se=S[ee];if(!(W.w>se.w||W.h>se.h)){if(W.x=se.x,W.y=se.y,D=Math.max(D,W.y+W.h),I=Math.max(I,W.x+W.w),W.w===se.w&&W.h===se.h){var Me=S.pop();ee>3,b=this.pos;this.type=7&p,t(y,o,this),this.pos===b&&this.skip(p)}return o},readMessage:function(t,o){return this.readFields(t,o,this.readVarint()+this.pos)},readFixed32:function(){var t=mr(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Tr(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=mr(this.buf,this.pos)+4294967296*mr(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=mr(this.buf,this.pos)+4294967296*Tr(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=lp(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=lp(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var o,u,p=this.buf;return o=127&(u=p[this.pos++]),u<128?o:(o|=(127&(u=p[this.pos++]))<<7,u<128?o:(o|=(127&(u=p[this.pos++]))<<14,u<128?o:(o|=(127&(u=p[this.pos++]))<<21,u<128?o:function(y,b,S){var I,D,z=S.buf;if(I=(112&(D=z[S.pos++]))>>4,D<128||(I|=(127&(D=z[S.pos++]))<<3,D<128)||(I|=(127&(D=z[S.pos++]))<<10,D<128)||(I|=(127&(D=z[S.pos++]))<<17,D<128)||(I|=(127&(D=z[S.pos++]))<<24,D<128)||(I|=(1&(D=z[S.pos++]))<<31,D<128))return Tf(y,I,b);throw new Error("Expected varint not more than 10 bytes")}(o|=(15&(u=p[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,o=this.pos;return this.pos=t,t-o>=12&&ih?function(u,p,y){return ih.decode(u.subarray(p,y))}(this.buf,o,t):function(u,p,y){for(var b="",S=p;S239?4:V>223?3:V>191?2:1;if(S+ee>y)break;ee===1?V<128&&(W=V):ee===2?(192&(I=u[S+1]))==128&&(W=(31&V)<<6|63&I)<=127&&(W=null):ee===3?(D=u[S+2],(192&(I=u[S+1]))==128&&(192&D)==128&&((W=(15&V)<<12|(63&I)<<6|63&D)<=2047||W>=55296&&W<=57343)&&(W=null)):ee===4&&(D=u[S+2],z=u[S+3],(192&(I=u[S+1]))==128&&(192&D)==128&&(192&z)==128&&((W=(15&V)<<18|(63&I)<<12|(63&D)<<6|63&z)<=65535||W>=1114112)&&(W=null)),W===null?(W=65533,ee=1):W>65535&&(W-=65536,b+=String.fromCharCode(W>>>10&1023|55296),W=56320|1023&W),b+=String.fromCharCode(W),S+=ee}return b}(this.buf,o,t)},readBytes:function(){var t=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,t);return this.pos=t,o},readPackedVarint:function(t,o){if(this.type!==Sa.Bytes)return t.push(this.readVarint(o));var u=Hl(this);for(t=t||[];this.pos127;);else if(o===Sa.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Sa.Fixed32)this.pos+=4;else{if(o!==Sa.Fixed64)throw new Error("Unimplemented type: "+o);this.pos+=8}},writeTag:function(t,o){this.writeVarint(t<<3|o)},realloc:function(t){for(var o=this.length||16;o268435455||t<0?function(o,u){var p,y;if(o>=0?(p=o%4294967296|0,y=o/4294967296|0):(y=~(-o/4294967296),4294967295^(p=~(-o%4294967296))?p=p+1|0:(p=0,y=y+1|0)),o>=18446744073709552e3||o<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");u.realloc(10),function(b,S,I){I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,b>>>=7,I.buf[I.pos++]=127&b|128,I.buf[I.pos]=127&(b>>>=7)}(p,0,u),function(b,S){var I=(7&b)<<4;S.buf[S.pos++]|=I|((b>>>=3)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b|((b>>>=7)?128:0),b&&(S.buf[S.pos++]=127&b)))))}(y,u)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var o=this.pos;this.pos=function(p,y,b){for(var S,I,D=0;D55295&&S<57344){if(!I){S>56319||D+1===y.length?(p[b++]=239,p[b++]=191,p[b++]=189):I=S;continue}if(S<56320){p[b++]=239,p[b++]=191,p[b++]=189,I=S;continue}S=I-55296<<10|S-56320|65536,I=null}else I&&(p[b++]=239,p[b++]=191,p[b++]=189,I=null);S<128?p[b++]=S:(S<2048?p[b++]=S>>6|192:(S<65536?p[b++]=S>>12|224:(p[b++]=S>>18|240,p[b++]=S>>12&63|128),p[b++]=S>>6&63|128),p[b++]=63&S|128)}return b}(this.buf,t,this.pos);var u=this.pos-o;u>=128&&cp(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(t){this.realloc(4),$p(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),$p(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var o=t.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&cp(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(t,o,u){this.writeTag(t,Sa.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(t,o){o.length&&this.writeMessage(t,kd,o)},writePackedSVarint:function(t,o){o.length&&this.writeMessage(t,B,o)},writePackedBoolean:function(t,o){o.length&&this.writeMessage(t,Dt,o)},writePackedFloat:function(t,o){o.length&&this.writeMessage(t,ge,o)},writePackedDouble:function(t,o){o.length&&this.writeMessage(t,Be,o)},writePackedFixed32:function(t,o){o.length&&this.writeMessage(t,sr,o)},writePackedSFixed32:function(t,o){o.length&&this.writeMessage(t,kt,o)},writePackedFixed64:function(t,o){o.length&&this.writeMessage(t,er,o)},writePackedSFixed64:function(t,o){o.length&&this.writeMessage(t,hr,o)},writeBytesField:function(t,o){this.writeTag(t,Sa.Bytes),this.writeBytes(o)},writeFixed32Field:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeSFixed64(o)},writeVarintField:function(t,o){this.writeTag(t,Sa.Varint),this.writeVarint(o)},writeSVarintField:function(t,o){this.writeTag(t,Sa.Varint),this.writeSVarint(o)},writeStringField:function(t,o){this.writeTag(t,Sa.Bytes),this.writeString(o)},writeFloatField:function(t,o){this.writeTag(t,Sa.Fixed32),this.writeFloat(o)},writeDoubleField:function(t,o){this.writeTag(t,Sa.Fixed64),this.writeDouble(o)},writeBooleanField:function(t,o){this.writeVarintField(t,Boolean(o))}};var ut=function(t,o){var u=o.pixelRatio,p=o.version,y=o.stretchX,b=o.stretchY,S=o.content;this.paddedRect=t,this.pixelRatio=u,this.stretchX=y,this.stretchY=b,this.content=S,this.version=p},Gt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Gt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Gt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Gt.tlbr.get=function(){return this.tl.concat(this.br)},Gt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ut.prototype,Gt);var br=function(t,o){var u={},p={};this.haveRenderCallbacks=[];var y=[];this.addImages(t,u,y),this.addImages(o,p,y);var b=Mr(y),S=new go({width:b.w||1,height:b.h||1});for(var I in t){var D=t[I],z=u[I].paddedRect;go.copy(D.data,S,{x:0,y:0},{x:z.x+1,y:z.y+1},D.data)}for(var V in o){var W=o[V],ee=p[V].paddedRect,se=ee.x+1,Me=ee.y+1,Oe=W.data.width,Ye=W.data.height;go.copy(W.data,S,{x:0,y:0},{x:se,y:Me},W.data),go.copy(W.data,S,{x:0,y:Ye-1},{x:se,y:Me-1},{width:Oe,height:1}),go.copy(W.data,S,{x:0,y:0},{x:se,y:Me+Ye},{width:Oe,height:1}),go.copy(W.data,S,{x:Oe-1,y:0},{x:se-1,y:Me},{width:1,height:Ye}),go.copy(W.data,S,{x:0,y:0},{x:se+Oe,y:Me},{width:1,height:Ye})}this.image=S,this.iconPositions=u,this.patternPositions=p};br.prototype.addImages=function(t,o,u){for(var p in t){var y=t[p],b={x:0,y:0,w:y.data.width+2,h:y.data.height+2};u.push(b),o[p]=new ut(b,y),y.hasRenderCallback&&this.haveRenderCallbacks.push(p)}},br.prototype.patchUpdatedImages=function(t,o){for(var u in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[u],t.getImage(u),o),this.patchUpdatedImage(this.patternPositions[u],t.getImage(u),o)},br.prototype.patchUpdatedImage=function(t,o,u){if(t&&o&&t.version!==o.version){t.version=o.version;var p=t.tl;u.update(o.data,void 0,{x:p[0],y:p[1]})}},yn("ImagePosition",ut),yn("ImageAtlas",br);var Br={horizontal:1,vertical:2,horizontalOnly:3},cr=function(){this.scale=1,this.fontStack="",this.imageName=null};cr.forText=function(t,o){var u=new cr;return u.scale=t||1,u.fontStack=o,u},cr.forImage=function(t){var o=new cr;return o.imageName=t,o};var or=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function zr(t,o,u,p,y,b,S,I,D,z,V,W,ee,se,Me,Oe){var Ye,ze=or.fromFeature(t,y);W===Br.vertical&&ze.verticalizePunctuation();var st=Fs.processBidirectionalText,Tt=Fs.processStyledBidirectionalText;if(st&&ze.sections.length===1){Ye=[];for(var Vt=0,Xt=st(ze.toString(),Hr(ze,z,b,o,p,se,Me));Vt0&&ch>G&&(G=ch)}else{var hp=hi[ca.fontStack],Jc=hp&&hp[ku];if(Jc&&Jc.rect)Yl=Jc.rect,Io=Jc.metrics;else{var pp=Ai[ca.fontStack],Jp=pp&&pp[ku];if(!Jp)continue;Io=Jp.metrics}Xl=24*(ia-ca.scale)}If?(Pn.verticalizable=!0,$a.push({glyph:ku,imageName:qs,x:ma,y:zs+Xl,vertical:If,scale:ca.scale,fontStack:ca.fontStack,sectionIndex:Wl,metrics:Io,rect:Yl}),ma+=uh*ca.scale+ao):($a.push({glyph:ku,imageName:qs,x:ma,y:zs+Xl,vertical:If,scale:ca.scale,fontStack:ca.fontStack,sectionIndex:Wl,metrics:Io,rect:Yl}),ma+=Io.advance*ca.scale+ao)}$a.length!==0&&(cs=Math.max(ma-ao,cs),Ei($a,0,$a.length-1,xo,G)),ma=0;var dp=la*ia+G;Zs.lineOffset=Math.max(G,iu),zs+=dp,Us=Math.max(dp,Us),++fs}else zs+=la,++fs}var Ec,Bh=zs- -17,fh=Jr(Wa),ef=fh.horizontalAlign,Sc=fh.verticalAlign;(function(vp,mp,Nh,gp,ed,zh,yp,Cc,td){var $u,rd=(mp-Nh)*ed;$u=zh!==yp?-Cc*gp- -17:(-gp*td+.5)*yp;for(var Uh=0,_p=vp;Uh<_p.length;Uh+=1)for(var ql=0,Zh=_p[Uh].positionedGlyphs;ql=0&&p>=t&&Un[this.text.charCodeAt(p)];p--)u--;this.text=this.text.substring(t,u),this.sectionIndex=this.sectionIndex.slice(t,u)},or.prototype.substring=function(t,o){var u=new or;return u.text=this.text.substring(t,o),u.sectionIndex=this.sectionIndex.slice(t,o),u.sections=this.sections,u},or.prototype.toString=function(){return this.text},or.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce(function(o,u){return Math.max(o,t.sections[u].scale)},0)},or.prototype.addTextSection=function(t,o){this.text+=t.text,this.sections.push(cr.forText(t.scale,t.fontStack||o));for(var u=this.sections.length-1,p=0;p=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Un={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},tr={};function ir(t,o,u,p,y,b){if(o.imageName){var S=p[o.imageName];return S?S.displaySize[0]*o.scale*24/b+y:0}var I=u[o.fontStack],D=I&&I[t];return D?D.metrics.advance*o.scale+y:0}function Sn(t,o,u,p){var y=Math.pow(t-o,2);return p?t=0,W=0,ee=0;ee-u/2;){if(--S<0)return!1;I-=t[S].dist(b),b=t[S]}I+=t[S].dist(t[S+1]),S++;for(var D=[],z=0;Ip;)z-=D.shift().angleDelta;if(z>y)return!1;S++,I+=V.dist(W)}return!0}function no(t){for(var o=0,u=0;uz){var Me=(z-D)/se,Oe=ga(W.x,ee.x,Me),Ye=ga(W.y,ee.y,Me),ze=new jr(Oe,Ye,ee.angleTo(W),V);return ze._round(),!S||Ga(t,ze,I,S,o)?ze:void 0}D+=se}}function as(t,o,u,p,y,b,S,I,D){var z=Zi(p,b,S),V=ss(p,y),W=V*S,ee=t[0].x===0||t[0].x===D||t[0].y===0||t[0].y===D;return o-W=0&&ea=0&&Hn=0&&gn+Lr<=$r){var la=new jr(ea,Hn,Ai,hn);la._round(),ze&&!Ga(Me,la,Tt,ze,st)||Yn.push(la)}}Zn+=Pn}return Xt||Yn.length||Vt||(Yn=se(Me,Zn/2,Ye,ze,st,Tt,Vt,!0,lr)),Yn}(t,ee?o/2*I%o:(V/2+2*b)*S*I%o,o,z,u,W,ee,!1,D)}function wo(t,o,u,p,y){for(var b=[],S=0;S=p&&W.x>=p||(V.x>=p?V=new fe(p,V.y+(p-V.x)/(W.x-V.x)*(W.y-V.y))._round():W.x>=p&&(W=new fe(p,V.y+(p-V.x)/(W.x-V.x)*(W.y-V.y))._round()),V.y>=y&&W.y>=y||(V.y>=y?V=new fe(V.x+(y-V.y)/(W.y-V.y)*(W.x-V.x),y)._round():W.y>=y&&(W=new fe(V.x+(y-V.y)/(W.y-V.y)*(W.x-V.x),y)._round()),D&&V.equals(D[D.length-1])||b.push(D=[V]),D.push(W)))))}return b}function Wo(t,o,u,p){var y=[],b=t.image,S=b.pixelRatio,I=b.paddedRect.w-2,D=b.paddedRect.h-2,z=t.right-t.left,V=t.bottom-t.top,W=b.stretchX||[[0,I]],ee=b.stretchY||[[0,D]],se=function(ea,Hn){return ea+Hn[1]-Hn[0]},Me=W.reduce(se,0),Oe=ee.reduce(se,0),Ye=I-Me,ze=D-Oe,st=0,Tt=Me,Vt=0,Xt=Oe,lr=0,Lr=Ye,$r=0,Zn=ze;if(b.content&&p){var gn=b.content;st=Xo(W,0,gn[0]),Vt=Xo(ee,0,gn[1]),Tt=Xo(W,gn[0],gn[2]),Xt=Xo(ee,gn[1],gn[3]),lr=gn[0]-st,$r=gn[1]-Vt,Lr=gn[2]-gn[0]-Tt,Zn=gn[3]-gn[1]-Xt}var Yn=function(ea,Hn,la,Wa){var yo=io(ea.stretch-st,Tt,z,t.left),_o=Si(ea.fixed-lr,Lr,ea.stretch,Me),ao=io(Hn.stretch-Vt,Xt,V,t.top),Mo=Si(Hn.fixed-$r,Zn,Hn.stretch,Oe),Po=io(la.stretch-st,Tt,z,t.left),ma=Si(la.fixed-lr,Lr,la.stretch,Me),zs=io(Wa.stretch-Vt,Xt,V,t.top),cs=Si(Wa.fixed-$r,Zn,Wa.stretch,Oe),Us=new fe(yo,ao),xo=new fe(Po,ao),fs=new fe(Po,zs),Yi=new fe(yo,zs),Da=new fe(_o/S,Mo/S),Ca=new fe(ma/S,cs/S),ia=o*Math.PI/180;if(ia){var iu=Math.sin(ia),Zs=Math.cos(ia),$a=[Zs,-iu,iu,Zs];Us._matMult($a),xo._matMult($a),Yi._matMult($a),fs._matMult($a)}var G=ea.stretch+ea.fixed,Rs=Hn.stretch+Hn.fixed;return{tl:Us,tr:xo,bl:Yi,br:fs,tex:{x:b.paddedRect.x+1+G,y:b.paddedRect.y+1+Rs,w:la.stretch+la.fixed-G,h:Wa.stretch+Wa.fixed-Rs},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Da,pixelOffsetBR:Ca,minFontScaleX:Lr/S/z,minFontScaleY:Zn/S/V,isSDF:u}};if(p&&(b.stretchX||b.stretchY))for(var hn=bs(W,Ye,Me),ki=bs(ee,ze,Oe),ai=0;ai0&&(se=Math.max(10,se),this.circleDiameter=se)}else{var Me=b.top*S-I,Oe=b.bottom*S+I,Ye=b.left*S-I,ze=b.right*S+I,st=b.collisionPadding;if(st&&(Ye-=st[0]*S,Me-=st[1]*S,ze+=st[2]*S,Oe+=st[3]*S),z){var Tt=new fe(Ye,Me),Vt=new fe(ze,Me),Xt=new fe(Ye,Oe),lr=new fe(ze,Oe),Lr=z*Math.PI/180;Tt._rotate(Lr),Vt._rotate(Lr),Xt._rotate(Lr),lr._rotate(Lr),Ye=Math.min(Tt.x,Vt.x,Xt.x,lr.x),ze=Math.max(Tt.x,Vt.x,Xt.x,lr.x),Me=Math.min(Tt.y,Vt.y,Xt.y,lr.y),Oe=Math.max(Tt.y,Vt.y,Xt.y,lr.y)}t.emplaceBack(o.x,o.y,Ye,Me,ze,Oe,u,p,y)}this.boxEndIndex=t.length},ra=function(t,o){if(t===void 0&&(t=[]),o===void 0&&(o=us),this.data=t,this.length=this.data.length,this.compare=o,this.length>0)for(var u=(this.length>>1)-1;u>=0;u--)this._down(u)};function us(t,o){return to?1:0}function oi(t,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,y=1/0,b=-1/0,S=-1/0,I=t[0],D=0;Db)&&(b=z.x),(!D||z.y>S)&&(S=z.y)}var V=Math.min(b-p,S-y),W=V/2,ee=new ra([],zi);if(V===0)return new fe(p,y);for(var se=p;seOe.d||!Oe.d)&&(Oe=ze,u&&console.log("found best %d after %d probes",Math.round(1e4*ze.d)/1e4,Ye)),ze.max-Oe.d<=o||(ee.push(new ua(ze.p.x-(W=ze.h/2),ze.p.y-W,W,t)),ee.push(new ua(ze.p.x+W,ze.p.y-W,W,t)),ee.push(new ua(ze.p.x-W,ze.p.y+W,W,t)),ee.push(new ua(ze.p.x+W,ze.p.y+W,W,t)),Ye+=4)}return u&&(console.log("num probes: "+Ye),console.log("best distance: "+Oe.d)),Oe.p}function zi(t,o){return o.max-t.max}function ua(t,o,u,p){this.p=new fe(t,o),this.h=u,this.d=function(y,b){for(var S=!1,I=1/0,D=0;Dy.y!=Me.y>y.y&&y.x<(Me.x-se.x)*(y.y-se.y)/(Me.y-se.y)+se.x&&(S=!S),I=Math.min(I,du(y,se,Me))}return(S?1:-1)*Math.sqrt(I)}(this.p,p),this.max=this.d+this.h*Math.SQRT2}ra.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},ra.prototype.pop=function(){if(this.length!==0){var t=this.data[0],o=this.data.pop();return this.length--,this.length>0&&(this.data[0]=o,this._down(0)),t}},ra.prototype.peek=function(){return this.data[0]},ra.prototype._up=function(t){for(var o=this.data,u=this.compare,p=o[t];t>0;){var y=t-1>>1,b=o[y];if(u(p,b)>=0)break;o[t]=b,t=y}o[t]=p},ra.prototype._down=function(t){for(var o=this.data,u=this.compare,p=this.length>>1,y=o[t];t=0)break;o[t]=S,t=b}o[t]=y};var To=Number.POSITIVE_INFINITY;function wl(t,o){return o[1]!==To?function(u,p,y){var b=0,S=0;switch(p=Math.abs(p),y=Math.abs(y),u){case"top-right":case"top-left":case"top":S=y-7;break;case"bottom-right":case"bottom-left":case"bottom":S=7-y}switch(u){case"top-right":case"bottom-right":case"right":b=-p;break;case"top-left":case"bottom-left":case"left":b=p}return[b,S]}(t,o[0],o[1]):function(u,p){var y=0,b=0;p<0&&(p=0);var S=p/Math.sqrt(2);switch(u){case"top-right":case"top-left":b=S-7;break;case"bottom-right":case"bottom-left":b=7-S;break;case"bottom":b=7-p;break;case"top":b=p-7}switch(u){case"top-right":case"bottom-right":y=-S;break;case"top-left":case"bottom-left":y=S;break;case"left":y=p;break;case"right":y=-p}return[y,b]}(t,o[0])}function Te(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ut(t,o,u,p,y,b,S,I,D,z,V,W,ee,se,Me){var Oe=function(Vt,Xt,lr,Lr,$r,Zn,gn,Yn){for(var hn=Lr.layout.get("text-rotate").evaluate(Zn,{})*Math.PI/180,ki=[],ai=0,Pn=Xt.positionedLines;ai32640&&Qe(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Ye.kind==="composite"&&((ze=[128*se.compositeTextSizes[0].evaluate(S,{},Me),128*se.compositeTextSizes[1].evaluate(S,{},Me)])[0]>32640||ze[1]>32640)&&Qe(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,Oe,ze,I,b,S,z,o,D.lineStartIndex,D.lineLength,ee,Me);for(var st=0,Tt=V;st=0;S--)if(p.dist(b[S])0)&&(b.value.kind!=="constant"||b.value.value.length>0),z=I.value.kind!=="constant"||!!I.value.value||Object.keys(I.parameters).length>0,V=y.get("symbol-sort-key");if(this.features=[],D||z){for(var W=o.iconDependencies,ee=o.glyphDependencies,se=o.availableImages,Me=new Fi(this.zoom),Oe=0,Ye=t;Oe=0;for(var Ai=0,hi=$r.sections;Ai=0;I--)b[I]={x:o[I].x,y:o[I].y,tileUnitDistanceFromAnchor:y},I>0&&(y+=o[I-1].dist(o[I]));for(var D=0;D0},Fe.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Fe.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Fe.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Fe.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Fe.prototype.addIndicesForPlacedSymbol=function(t,o){for(var u=t.placedSymbolArray.get(o),p=u.vertexStartIndex+4*u.numGlyphs,y=u.vertexStartIndex;y1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var u=0,p=this.symbolInstanceIndexes;u=0&&I.indexOf(b)===S&&o.addIndicesForPlacedSymbol(o.text,b)}),y.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,y.verticalPlacedTextSymbolIndex),y.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.placedIconSymbolIndex),y.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},yn("SymbolBucket",Fe,{omit:["layers","collisionBoxArray","features","compareText"]}),Fe.MAX_GLYPHS=65535,Fe.addDynamicAttributes=Ge;var nt=new ns({"symbol-placement":new Rn(pe.layout_symbol["symbol-placement"]),"symbol-spacing":new Rn(pe.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Rn(pe.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Cn(pe.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Rn(pe.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Rn(pe.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Rn(pe.layout_symbol["icon-ignore-placement"]),"icon-optional":new Rn(pe.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Rn(pe.layout_symbol["icon-rotation-alignment"]),"icon-size":new Cn(pe.layout_symbol["icon-size"]),"icon-text-fit":new Rn(pe.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Rn(pe.layout_symbol["icon-text-fit-padding"]),"icon-image":new Cn(pe.layout_symbol["icon-image"]),"icon-rotate":new Cn(pe.layout_symbol["icon-rotate"]),"icon-padding":new Rn(pe.layout_symbol["icon-padding"]),"icon-keep-upright":new Rn(pe.layout_symbol["icon-keep-upright"]),"icon-offset":new Cn(pe.layout_symbol["icon-offset"]),"icon-anchor":new Cn(pe.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Rn(pe.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Rn(pe.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Rn(pe.layout_symbol["text-rotation-alignment"]),"text-field":new Cn(pe.layout_symbol["text-field"]),"text-font":new Cn(pe.layout_symbol["text-font"]),"text-size":new Cn(pe.layout_symbol["text-size"]),"text-max-width":new Cn(pe.layout_symbol["text-max-width"]),"text-line-height":new Rn(pe.layout_symbol["text-line-height"]),"text-letter-spacing":new Cn(pe.layout_symbol["text-letter-spacing"]),"text-justify":new Cn(pe.layout_symbol["text-justify"]),"text-radial-offset":new Cn(pe.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Rn(pe.layout_symbol["text-variable-anchor"]),"text-anchor":new Cn(pe.layout_symbol["text-anchor"]),"text-max-angle":new Rn(pe.layout_symbol["text-max-angle"]),"text-writing-mode":new Rn(pe.layout_symbol["text-writing-mode"]),"text-rotate":new Cn(pe.layout_symbol["text-rotate"]),"text-padding":new Rn(pe.layout_symbol["text-padding"]),"text-keep-upright":new Rn(pe.layout_symbol["text-keep-upright"]),"text-transform":new Cn(pe.layout_symbol["text-transform"]),"text-offset":new Cn(pe.layout_symbol["text-offset"]),"text-allow-overlap":new Rn(pe.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Rn(pe.layout_symbol["text-ignore-placement"]),"text-optional":new Rn(pe.layout_symbol["text-optional"])}),xe={paint:new ns({"icon-opacity":new Cn(pe.paint_symbol["icon-opacity"]),"icon-color":new Cn(pe.paint_symbol["icon-color"]),"icon-halo-color":new Cn(pe.paint_symbol["icon-halo-color"]),"icon-halo-width":new Cn(pe.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Cn(pe.paint_symbol["icon-halo-blur"]),"icon-translate":new Rn(pe.paint_symbol["icon-translate"]),"icon-translate-anchor":new Rn(pe.paint_symbol["icon-translate-anchor"]),"text-opacity":new Cn(pe.paint_symbol["text-opacity"]),"text-color":new Cn(pe.paint_symbol["text-color"],{runtimeType:Yr,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new Cn(pe.paint_symbol["text-halo-color"]),"text-halo-width":new Cn(pe.paint_symbol["text-halo-width"]),"text-halo-blur":new Cn(pe.paint_symbol["text-halo-blur"]),"text-translate":new Rn(pe.paint_symbol["text-translate"]),"text-translate-anchor":new Rn(pe.paint_symbol["text-translate-anchor"])}),layout:nt},Ze=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:pn,this.defaultValue=t};Ze.prototype.evaluate=function(t){if(t.formattedSection){var o=this.defaultValue.property.overrides;if(o&&o.hasOverride(t.formattedSection))return o.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Ze.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Ze.prototype.outputDefined=function(){return!1},Ze.prototype.serialize=function(){return null},yn("FormatSectionOverride",Ze,{omit:["defaultValue"]});var Ae=function(t){function o(u){t.call(this,u,xe)}return t&&(o.__proto__=t),(o.prototype=Object.create(t&&t.prototype)).constructor=o,o.prototype.recalculate=function(u,p){if(t.prototype.recalculate.call(this,u,p),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 y=this.layout.get("text-writing-mode");if(y){for(var b=[],S=0,I=y;S",targetMapId:p,sourceMapId:b.mapId})}}},_a.prototype.receive=function(t){var o=t.data,u=o.id;if(u&&(!o.targetMapId||this.mapId===o.targetMapId))if(o.type===""){delete this.tasks[u];var p=this.cancelCallbacks[u];delete this.cancelCallbacks[u],p&&p()}else Nr()||o.mustQueue?(this.tasks[u]=o,this.taskQueue.push(u),this.invoker.trigger()):this.processTask(u,o)},_a.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),o=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),o&&this.processTask(t,o)}},_a.prototype.processTask=function(t,o){var u=this;if(o.type===""){var p=this.callbacks[t];delete this.callbacks[t],p&&(o.error?p(na(o.error)):p(null,na(o.data)))}else{var y=!1,b=Ce(this.globalScope)?void 0:[],S=o.hasCallback?function(V,W){y=!0,delete u.cancelCallbacks[t],u.target.postMessage({id:t,type:"",sourceMapId:u.mapId,error:V?uu(V):null,data:uu(W,b)},b)}:function(V){y=!0},I=null,D=na(o.data);if(this.parent[o.type])I=this.parent[o.type](o.sourceMapId,D,S);else if(this.parent.getWorkerSource){var z=o.type.split(".");I=this.parent.getWorkerSource(o.sourceMapId,z[0],D.source)[z[1]](D,S)}else S(new Error("Could not find function "+o.type));!y&&I&&I.cancel&&(this.cancelCallbacks[t]=I.cancel)}},_a.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Ia=function(t,o){t&&(o?this.setSouthWest(t).setNorthEast(o):t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ia.prototype.setNorthEast=function(t){return this._ne=t instanceof pa?new pa(t.lng,t.lat):pa.convert(t),this},Ia.prototype.setSouthWest=function(t){return this._sw=t instanceof pa?new pa(t.lng,t.lat):pa.convert(t),this},Ia.prototype.extend=function(t){var o,u,p=this._sw,y=this._ne;if(t instanceof pa)o=t,u=t;else{if(!(t instanceof Ia))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(Ia.convert(t)):this.extend(pa.convert(t)):this;if(u=t._ne,!(o=t._sw)||!u)return this}return p||y?(p.lng=Math.min(o.lng,p.lng),p.lat=Math.min(o.lat,p.lat),y.lng=Math.max(u.lng,y.lng),y.lat=Math.max(u.lat,y.lat)):(this._sw=new pa(o.lng,o.lat),this._ne=new pa(u.lng,u.lat)),this},Ia.prototype.getCenter=function(){return new pa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ia.prototype.getSouthWest=function(){return this._sw},Ia.prototype.getNorthEast=function(){return this._ne},Ia.prototype.getNorthWest=function(){return new pa(this.getWest(),this.getNorth())},Ia.prototype.getSouthEast=function(){return new pa(this.getEast(),this.getSouth())},Ia.prototype.getWest=function(){return this._sw.lng},Ia.prototype.getSouth=function(){return this._sw.lat},Ia.prototype.getEast=function(){return this._ne.lng},Ia.prototype.getNorth=function(){return this._ne.lat},Ia.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ia.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Ia.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Ia.prototype.contains=function(t){var o=pa.convert(t),u=o.lng,p=o.lat,y=this._sw.lng<=u&&u<=this._ne.lng;return this._sw.lng>this._ne.lng&&(y=this._sw.lng>=u&&u>=this._ne.lng),this._sw.lat<=p&&p<=this._ne.lat&&y},Ia.convert=function(t){return!t||t instanceof Ia?t:new Ia(t)};var pa=function(t,o){if(isNaN(t)||isNaN(o))throw new Error("Invalid LngLat object: ("+t+", "+o+")");if(this.lng=+t,this.lat=+o,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};pa.prototype.wrap=function(){return new pa(rr(this.lng,-180,180),this.lat)},pa.prototype.toArray=function(){return[this.lng,this.lat]},pa.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},pa.prototype.distanceTo=function(t){var o=Math.PI/180,u=this.lat*o,p=t.lat*o,y=Math.sin(u)*Math.sin(p)+Math.cos(u)*Math.cos(p)*Math.cos((t.lng-this.lng)*o);return 63710088e-1*Math.acos(Math.min(y,1))},pa.prototype.toBounds=function(t){t===void 0&&(t=0);var o=360*t/40075017,u=o/Math.cos(Math.PI/180*this.lat);return new Ia(new pa(this.lng-u,this.lat-o),new pa(this.lng+u,this.lat+o))},pa.convert=function(t){if(t instanceof pa)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new pa(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t!==null)return new pa(Number("lng"in t?t.lng:t.lon),Number(t.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 Tl=2*Math.PI*63710088e-1;function Is(t){return Tl*Math.cos(t*Math.PI/180)}function Ku(t){return(180+t)/360}function yu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function ah(t,o){return t/Is(o)}function Lu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var xc=function(t,o,u){u===void 0&&(u=0),this.x=+t,this.y=+o,this.z=+u};xc.fromLngLat=function(t,o){o===void 0&&(o=0);var u=pa.convert(t);return new xc(Ku(u.lng),yu(u.lat),ah(o,u.lat))},xc.prototype.toLngLat=function(){return new pa(360*this.x-180,Lu(this.y))},xc.prototype.toAltitude=function(){return this.z*Is(Lu(this.y))},xc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Tl*(t=Lu(this.y),1/Math.cos(t*Math.PI/180));var t};var oh=function(t,o,u){this.z=t,this.x=o,this.y=u,this.key=Fh(0,t,t,o,u)};oh.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},oh.prototype.url=function(t,o){var u,p,y,b,S,I=(p=this.y,y=this.z,b=ls(256*(u=this.x),256*(p=Math.pow(2,y)-p-1),y),S=ls(256*(u+1),256*(p+1),y),b[0]+","+b[1]+","+S[0]+","+S[1]),D=function(z,V,W){for(var ee,se="",Me=z;Me>0;Me--)se+=(V&(ee=1<this.canonical.z?new jn(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new jn(t,this.wrap,t,this.canonical.x>>o,this.canonical.y>>o)},jn.prototype.calculateScaledKey=function(t,o){var u=this.canonical.z-t;return t>this.canonical.z?Fh(this.wrap*+o,t,this.canonical.z,this.canonical.x,this.canonical.y):Fh(this.wrap*+o,t,t,this.canonical.x>>u,this.canonical.y>>u)},jn.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var o=this.canonical.z-t.canonical.z;return t.overscaledZ===0||t.overscaledZ>o&&t.canonical.y===this.canonical.y>>o},jn.prototype.children=function(t){if(this.overscaledZ>=t)return[new jn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var o=this.canonical.z+1,u=2*this.canonical.x,p=2*this.canonical.y;return[new jn(o,this.wrap,o,u,p),new jn(o,this.wrap,o,u+1,p),new jn(o,this.wrap,o,u,p+1),new jn(o,this.wrap,o,u+1,p+1)]},jn.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||o<-1||o>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(o+1)*this.stride+(t+1)},Mf.prototype._unpackMapbox=function(t,o,u){return(256*t*256+256*o+u)/10-1e4},Mf.prototype._unpackTerrarium=function(t,o,u){return 256*t+o+u/256-32768},Mf.prototype.getPixels=function(){return new go({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Mf.prototype.backfillBorder=function(t,o,u){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var p=o*this.dim,y=o*this.dim+this.dim,b=u*this.dim,S=u*this.dim+this.dim;switch(o){case-1:p=y-1;break;case 1:y=p+1}switch(u){case-1:b=S-1;break;case 1:S=b+1}for(var I=-o*this.dim,D=-u*this.dim,z=b;z=0&&V[3]>=0&&I.insert(S,V[0],V[1],V[2],V[3])}},Pf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gu.VectorTile(new wf(this.rawTileData)).layers,this.sourceLayerCoder=new Qp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Pf.prototype.query=function(t,o,u,p){var y=this;this.loadVTLayers();for(var b=t.params||{},S=8192/t.tileSize/t.scale,I=Dc(b.filter),D=t.queryGeometry,z=t.queryPadding*S,V=_0(D),W=this.grid.query(V.minX-z,V.minY-z,V.maxX+z,V.maxY+z),ee=_0(t.cameraQueryGeometry),se=this.grid3D.query(ee.minX-z,ee.minY-z,ee.maxX+z,ee.maxY+z,function(Vt,Xt,lr,Lr){return function($r,Zn,gn,Yn,hn){for(var ki=0,ai=$r;ki=Pn.x&&hn>=Pn.y)return!0}var Ai=[new fe(Zn,gn),new fe(Zn,hn),new fe(Yn,hn),new fe(Yn,gn)];if($r.length>2){for(var hi=0,ea=Ai;hi=0)return!0;return!1}(b,W)){var ee=this.sourceLayerCoder.decode(u),se=this.vtLayers[ee].feature(p);if(y.needGeometry){var Me=co(se,!0);if(!y.filter(new Fi(this.tileID.overscaledZ),Me,this.tileID.canonical))return}else if(!y.filter(new Fi(this.tileID.overscaledZ),se))return;for(var Oe=this.getId(se,ee),Ye=0;Yep)y=!1;else if(o)if(this.expirationTimeAr&&(t.getActor().send("enforceCacheSizeLimit",nr),gi=0)},m.clamp=gt,m.clearTileCache=function(t){var o=J.caches.delete("mapbox-tiles");t&&o.catch(t).then(function(){return t()})},m.clipLine=wo,m.clone=function(t){var o=new ta(16);return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4],o[5]=t[5],o[6]=t[6],o[7]=t[7],o[8]=t[8],o[9]=t[9],o[10]=t[10],o[11]=t[11],o[12]=t[12],o[13]=t[13],o[14]=t[14],o[15]=t[15],o},m.clone$1=Je,m.clone$2=function(t){var o=new ta(3);return o[0]=t[0],o[1]=t[1],o[2]=t[2],o},m.collisionCircleLayout=qp,m.config=Wn,m.create=function(){var t=new ta(16);return ta!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},m.create$1=function(){var t=new ta(9);return ta!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},m.create$2=function(){var t=new ta(4);return ta!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},m.createCommonjsModule=ve,m.createExpression=sc,m.createLayout=Na,m.createStyleLayer=function(t){return t.type==="custom"?new Vr(t):new sn[t.type](t)},m.cross=function(t,o,u){var p=o[0],y=o[1],b=o[2],S=u[0],I=u[1],D=u[2];return t[0]=y*D-b*I,t[1]=b*S-p*D,t[2]=p*I-y*S,t},m.deepEqual=function t(o,u){if(Array.isArray(o)){if(!Array.isArray(u)||o.length!==u.length)return!1;for(var p=0;p0&&(b=1/Math.sqrt(b)),t[0]=o[0]*b,t[1]=o[1]*b,t[2]=o[2]*b,t},m.number=ga,m.offscreenCanvasSupported=ti,m.ortho=function(t,o,u,p,y,b,S){var I=1/(o-u),D=1/(p-y),z=1/(b-S);return t[0]=-2*I,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*D,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*z,t[11]=0,t[12]=(o+u)*I,t[13]=(y+p)*D,t[14]=(S+b)*z,t[15]=1,t},m.parseGlyphPBF=function(t){return new wf(t).readFields(Rr,[])},m.pbf=wf,m.performSymbolLayout=function(t,o,u,p,y,b,S){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var I=t.layers[0].layout,D=t.layers[0]._unevaluatedLayout._values,z={};if(t.textSizeData.kind==="composite"){var V=t.textSizeData,W=V.maxZoom;z.compositeTextSizes=[D["text-size"].possiblyEvaluate(new Fi(V.minZoom),S),D["text-size"].possiblyEvaluate(new Fi(W),S)]}if(t.iconSizeData.kind==="composite"){var ee=t.iconSizeData,se=ee.maxZoom;z.compositeIconSizes=[D["icon-size"].possiblyEvaluate(new Fi(ee.minZoom),S),D["icon-size"].possiblyEvaluate(new Fi(se),S)]}z.layoutTextSize=D["text-size"].possiblyEvaluate(new Fi(t.zoom+1),S),z.layoutIconSize=D["icon-size"].possiblyEvaluate(new Fi(t.zoom+1),S),z.textMaxSize=D["text-size"].possiblyEvaluate(new Fi(18));for(var Me=24*I.get("text-line-height"),Oe=I.get("text-rotation-alignment")==="map"&&I.get("symbol-placement")!=="point",Ye=I.get("text-keep-upright"),ze=I.get("text-size"),st=function(){var Xt=Vt[Tt],lr=I.get("text-font").evaluate(Xt,{},S).join(","),Lr=ze.evaluate(Xt,{},S),$r=z.layoutTextSize.evaluate(Xt,{},S),Zn=z.layoutIconSize.evaluate(Xt,{},S),gn={horizontal:{},vertical:void 0},Yn=Xt.text,hn=[0,0];if(Yn){var ki=Yn.toString(),ai=24*I.get("text-letter-spacing").evaluate(Xt,{},S),Pn=function(Yi){for(var Da=0,Ca=Yi;Da=8192||xp.y<0||xp.y>=8192||function(No,Ml,b0,tf,od,Bd,bp,Kl,Ep,Vh,Sp,Cp,sd,Nd,Gh,zd,Ud,Zd,jd,Vd,Qa,Ap,Gd,$l,Tv){var Hd,Of,ph,dh,vh,mh=No.addToLineVertexArray(Ml,b0),Wd=0,Xd=0,Yd=0,qd=0,ud=-1,Kd=-1,rf={},Mv=we(""),$d=0,ld=0;if(Kl._unevaluatedLayout.getValue("text-radial-offset")===void 0?($d=(Hd=Kl.layout.get("text-offset").evaluate(Qa,{},$l).map(function(wp){return 24*wp}))[0],ld=Hd[1]):($d=24*Kl.layout.get("text-radial-offset").evaluate(Qa,{},$l),ld=To),No.allowVerticalPlacement&&tf.vertical){var Pv=Kl.layout.get("text-rotate").evaluate(Qa,{},$l)+90;dh=new Yo(Ep,Ml,Vh,Sp,Cp,tf.vertical,sd,Nd,Gh,Pv),bp&&(vh=new Yo(Ep,Ml,Vh,Sp,Cp,bp,Ud,Zd,Gh,Pv))}if(od){var Qd=Kl.layout.get("icon-rotate").evaluate(Qa,{}),Jd=Kl.layout.get("icon-text-fit")!=="none",ev=Wo(od,Qd,Gd,Jd),cd=bp?Wo(bp,Qd,Gd,Jd):void 0;ph=new Yo(Ep,Ml,Vh,Sp,Cp,od,Ud,Zd,!1,Qd),Wd=4*ev.length;var tv=No.iconSizeData,nf=null;tv.kind==="source"?(nf=[128*Kl.layout.get("icon-size").evaluate(Qa,{})])[0]>32640&&Qe(No.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):tv.kind==="composite"&&((nf=[128*Ap.compositeIconSizes[0].evaluate(Qa,{},$l),128*Ap.compositeIconSizes[1].evaluate(Qa,{},$l)])[0]>32640||nf[1]>32640)&&Qe(No.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),No.addSymbols(No.icon,ev,nf,Vd,jd,Qa,!1,Ml,mh.lineStartIndex,mh.lineLength,-1,$l),ud=No.icon.placedSymbolArray.length-1,cd&&(Xd=4*cd.length,No.addSymbols(No.icon,cd,nf,Vd,jd,Qa,Br.vertical,Ml,mh.lineStartIndex,mh.lineLength,-1,$l),Kd=No.icon.placedSymbolArray.length-1)}for(var rv in tf.horizontal){var fd=tf.horizontal[rv];if(!Of){Mv=we(fd.text);var E0=Kl.layout.get("text-rotate").evaluate(Qa,{},$l);Of=new Yo(Ep,Ml,Vh,Sp,Cp,fd,sd,Nd,Gh,E0)}var Iv=fd.positionedLines.length===1;if(Yd+=Ut(No,Ml,fd,Bd,Kl,Gh,Qa,zd,mh,tf.vertical?Br.horizontal:Br.horizontalOnly,Iv?Object.keys(tf.horizontal):[rv],rf,ud,Ap,$l),Iv)break}tf.vertical&&(qd+=Ut(No,Ml,tf.vertical,Bd,Kl,Gh,Qa,zd,mh,Br.vertical,["vertical"],rf,Kd,Ap,$l));var S0=Of?Of.boxStartIndex:No.collisionBoxArray.length,C0=Of?Of.boxEndIndex:No.collisionBoxArray.length,A0=dh?dh.boxStartIndex:No.collisionBoxArray.length,w0=dh?dh.boxEndIndex:No.collisionBoxArray.length,T0=ph?ph.boxStartIndex:No.collisionBoxArray.length,M0=ph?ph.boxEndIndex:No.collisionBoxArray.length,P0=vh?vh.boxStartIndex:No.collisionBoxArray.length,I0=vh?vh.boxEndIndex:No.collisionBoxArray.length,Ac=-1,hd=function(wp,Rv){return wp&&wp.circleDiameter?Math.max(wp.circleDiameter,Rv):Rv};Ac=hd(Of,Ac),Ac=hd(dh,Ac),Ac=hd(ph,Ac);var Ov=(Ac=hd(vh,Ac))>-1?1:0;Ov&&(Ac*=Tv/24),No.glyphOffsetArray.length>=Fe.MAX_GLYPHS&&Qe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Qa.sortKey!==void 0&&No.addToSortKeyRanges(No.symbolInstances.length,Qa.sortKey),No.symbolInstances.emplaceBack(Ml.x,Ml.y,rf.right>=0?rf.right:-1,rf.center>=0?rf.center:-1,rf.left>=0?rf.left:-1,rf.vertical||-1,ud,Kd,Mv,S0,C0,A0,w0,T0,M0,P0,I0,Vh,Yd,qd,Wd,Xd,Ov,0,sd,$d,ld,Ac)}(Yi,xp,_m,Ca,ia,iu,Xl,Yi.layers[0],Yi.collisionBoxArray,Da.index,Da.sourceLayerIndex,Yi.index,If,hp,Jp,Rs,bc,Jc,dp,Yl,Da,Zs,ca,Wl,$a)};if(Ec==="line")for(var Sc=0,vp=wo(Da.geometry,0,0,8192,8192);Sc1){var td=Ha(Cc,pp,Ca.vertical||qs,ia,24,lh);td&&ef(Cc,td)}}else if(Da.type==="Polygon")for(var $u=0,rd=$f(Da.geometry,0);$u=Pi.maxzoom||Pi.visibility!=="none"&&(J(yi,this.zoom,oe),(zt[Pi.id]=Pi.createBucket({index:pe.bucketLayerIDs.length,layers:yi,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:nn,sourceID:this.source})).populate(Zr,vr,this.tileID.canonical),pe.bucketLayerIDs.push(yi.map(function(qi){return qi.id})))}}}var bi=m.mapObject(vr.glyphDependencies,function(qi){return Object.keys(qi).map(Number)});Object.keys(bi).length?ye.send("getGlyphs",{uid:this.uid,stacks:bi},function(qi,Ii){ke||(ke=qi,vt=Ii,Aa.call(He))}):vt={};var ht=Object.keys(vr.iconDependencies);ht.length?ye.send("getImages",{icons:ht,source:this.source,tileID:this.tileID,type:"icons"},function(qi,Ii){ke||(ke=qi,pr=Ii,Aa.call(He))}):pr={};var Pt=Object.keys(vr.patternDependencies);function Aa(){if(ke)return Pe(ke);if(vt&&pr&&Ft){var qi=new fe(vt),Ii=new m.ImageAtlas(pr,Ft);for(var pi in zt){var wa=zt[pi];wa instanceof m.SymbolBucket?(J(wa.layers,this.zoom,oe),m.performSymbolLayout(wa,vt,qi.positions,pr,Ii.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):wa.hasPattern&&(wa instanceof m.LineBucket||wa instanceof m.FillBucket||wa instanceof m.FillExtrusionBucket)&&(J(wa.layers,this.zoom,oe),wa.addFeatures(vr,this.tileID.canonical,Ii.patternPositions))}this.status="done",Pe(null,{buckets:m.values(zt).filter(function($s){return!$s.isEmpty()}),featureIndex:pe,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:qi.image,imageAtlas:Ii,glyphMap:this.returnDependencies?vt:null,iconMap:this.returnDependencies?pr:null,glyphPositions:this.returnDependencies?qi.positions:null})}}Pt.length?ye.send("getImages",{icons:Pt,source:this.source,tileID:this.tileID,type:"patterns"},function(qi,Ii){ke||(ke=qi,Ft=Ii,Aa.call(He))}):Ft={},Aa.call(this)};var et=function(H,Q,oe,ye){this.actor=H,this.layerIndex=Q,this.availableImages=oe,this.loadVectorData=ye||Xe,this.loading={},this.loaded={}};et.prototype.loadTile=function(H,Q){var oe=this,ye=H.uid;this.loading||(this.loading={});var Pe=!!(H&&H.request&&H.request.collectResourceTiming)&&new m.RequestPerformance(H.request),He=this.loading[ye]=new Le(H);He.abort=this.loadVectorData(H,function(rt,pe){if(delete oe.loading[ye],rt||!pe)return He.status="done",oe.loaded[ye]=He,Q(rt);var ke=pe.rawData,vt={};pe.expires&&(vt.expires=pe.expires),pe.cacheControl&&(vt.cacheControl=pe.cacheControl);var pr={};if(Pe){var Ft=Pe.finish();Ft&&(pr.resourceTiming=JSON.parse(JSON.stringify(Ft)))}He.vectorTile=pe.vectorTile,He.parse(pe.vectorTile,oe.layerIndex,oe.availableImages,oe.actor,function(zt,vr){if(zt||!vr)return Q(zt);Q(null,m.extend({rawTileData:ke.slice(0)},vr,vt,pr))}),oe.loaded=oe.loaded||{},oe.loaded[ye]=He})},et.prototype.reloadTile=function(H,Q){var oe=this,ye=this.loaded,Pe=H.uid,He=this;if(ye&&ye[Pe]){var rt=ye[Pe];rt.showCollisionBoxes=H.showCollisionBoxes;var pe=function(ke,vt){var pr=rt.reloadCallback;pr&&(delete rt.reloadCallback,rt.parse(rt.vectorTile,He.layerIndex,oe.availableImages,He.actor,pr)),Q(ke,vt)};rt.status==="parsing"?rt.reloadCallback=pe:rt.status==="done"&&(rt.vectorTile?rt.parse(rt.vectorTile,this.layerIndex,this.availableImages,this.actor,pe):pe())}},et.prototype.abortTile=function(H,Q){var oe=this.loading,ye=H.uid;oe&&oe[ye]&&oe[ye].abort&&(oe[ye].abort(),delete oe[ye]),Q()},et.prototype.removeTile=function(H,Q){var oe=this.loaded,ye=H.uid;oe&&oe[ye]&&delete oe[ye],Q()};var Ue=m.window.ImageBitmap,gt=function(){this.loaded={}};function rr(H,Q){if(H.length!==0){xt(H[0],Q);for(var oe=1;oe=0!=!!Q&&H.reverse()}gt.prototype.loadTile=function(H,Q){var oe=H.uid,ye=H.encoding,Pe=H.rawImageData,He=Ue&&Pe instanceof Ue?this.getImageData(Pe):Pe,rt=new m.DEMData(oe,He,ye);this.loaded=this.loaded||{},this.loaded[oe]=rt,Q(null,rt)},gt.prototype.getImageData=function(H){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(H.width,H.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=H.width,this.offscreenCanvas.height=H.height,this.offscreenCanvasContext.drawImage(H,0,0,H.width,H.height);var Q=this.offscreenCanvasContext.getImageData(-1,-1,H.width+2,H.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new m.RGBAImage({width:Q.width,height:Q.height},Q.data)},gt.prototype.removeTile=function(H){var Q=this.loaded,oe=H.uid;Q&&Q[oe]&&delete Q[oe]};var Yt=m.vectorTile.VectorTileFeature.prototype.toGeoJSON,Et=function(H){this._feature=H,this.extent=m.EXTENT,this.type=H.type,this.properties=H.tags,"id"in H&&!isNaN(H.id)&&(this.id=parseInt(H.id,10))};Et.prototype.loadGeometry=function(){if(this._feature.type===1){for(var H=[],Q=0,oe=this._feature.geometry;Q>31}function A(H,Q){for(var oe=H.loadGeometry(),ye=H.type,Pe=0,He=0,rt=oe.length,pe=0;pe>1;(function nn(Zr,Yr,_i,an,on,Xi){for(;on>an;){if(on-an>600){var yi=on-an+1,Pi=_i-an+1,bi=Math.log(yi),ht=.5*Math.exp(2*bi/3),Pt=.5*Math.sqrt(bi*ht*(yi-ht)/yi)*(Pi-yi/2<0?-1:1);nn(Zr,Yr,_i,Math.max(an,Math.floor(_i-Pi*ht/yi+Pt)),Math.min(on,Math.floor(_i+(yi-Pi)*ht/yi+Pt)),Xi)}var Aa=Yr[2*_i+Xi],qi=an,Ii=on;for(De(Zr,Yr,an,_i),Yr[2*on+Xi]>Aa&&De(Zr,Yr,an,on);qiAa;)Ii--}Yr[2*an+Xi]===Aa?De(Zr,Yr,an,Ii):De(Zr,Yr,++Ii,on),Ii<=_i&&(an=Ii+1),_i<=Ii&&(on=Ii-1)}})(pr,Ft,Ot,vr,En,pn%2),vt(pr,Ft,zt,vr,Ot-1,pn+1),vt(pr,Ft,zt,Ot+1,En,pn+1)}})(rt,pe,ye,0,rt.length-1,0)};Cr.prototype.range=function(H,Q,oe,ye){return function(Pe,He,rt,pe,ke,vt,pr){for(var Ft,zt,vr=[0,Pe.length-1,0],En=[];vr.length;){var pn=vr.pop(),Ot=vr.pop(),nn=vr.pop();if(Ot-nn<=pr)for(var Zr=nn;Zr<=Ot;Zr++)zt=He[2*Zr+1],(Ft=He[2*Zr])>=rt&&Ft<=ke&&zt>=pe&&zt<=vt&&En.push(Pe[Zr]);else{var Yr=Math.floor((nn+Ot)/2);zt=He[2*Yr+1],(Ft=He[2*Yr])>=rt&&Ft<=ke&&zt>=pe&&zt<=vt&&En.push(Pe[Yr]);var _i=(pn+1)%2;(pn===0?rt<=Ft:pe<=zt)&&(vr.push(nn),vr.push(Yr-1),vr.push(_i)),(pn===0?ke>=Ft:vt>=zt)&&(vr.push(Yr+1),vr.push(Ot),vr.push(_i))}}return En}(this.ids,this.coords,H,Q,oe,ye,this.nodeSize)},Cr.prototype.within=function(H,Q,oe){return function(ye,Pe,He,rt,pe,ke){for(var vt=[0,ye.length-1,0],pr=[],Ft=pe*pe;vt.length;){var zt=vt.pop(),vr=vt.pop(),En=vt.pop();if(vr-En<=ke)for(var pn=En;pn<=vr;pn++)mt(Pe[2*pn],Pe[2*pn+1],He,rt)<=Ft&&pr.push(ye[pn]);else{var Ot=Math.floor((En+vr)/2),nn=Pe[2*Ot],Zr=Pe[2*Ot+1];mt(nn,Zr,He,rt)<=Ft&&pr.push(ye[Ot]);var Yr=(zt+1)%2;(zt===0?He-pe<=nn:rt-pe<=Zr)&&(vt.push(En),vt.push(Ot-1),vt.push(Yr)),(zt===0?He+pe>=nn:rt+pe>=Zr)&&(vt.push(Ot+1),vt.push(vr),vt.push(Yr))}}return pr}(this.ids,this.coords,H,Q,oe,this.nodeSize)};var ei={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(H){return H}},vn=function(H){this.options=aa(Object.create(ei),H),this.trees=new Array(this.options.maxZoom+1)};function di(H,Q,oe,ye,Pe){return{x:H,y:Q,zoom:1/0,id:oe,parentId:-1,numPoints:ye,properties:Pe}}function Wn(H,Q){var oe=H.geometry.coordinates,ye=oe[1];return{x:qn(oe[0]),y:mi(ye),zoom:1/0,index:Q,parentId:-1}}function si(H){return{type:"Feature",id:H.id,properties:vi(H),geometry:{type:"Point",coordinates:[(ye=H.x,360*(ye-.5)),(Q=H.y,oe=(180-360*Q)*Math.PI/180,360*Math.atan(Math.exp(oe))/Math.PI-90)]}};var Q,oe,ye}function vi(H){var Q=H.numPoints,oe=Q>=1e4?Math.round(Q/1e3)+"k":Q>=1e3?Math.round(Q/100)/10+"k":Q;return aa(aa({},H.properties),{cluster:!0,cluster_id:H.id,point_count:Q,point_count_abbreviated:oe})}function qn(H){return H/360+.5}function mi(H){var Q=Math.sin(H*Math.PI/180),oe=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return oe<0?0:oe>1?1:oe}function aa(H,Q){for(var oe in Q)H[oe]=Q[oe];return H}function Wi(H){return H.x}function Oi(H){return H.y}function Ki(H,Q,oe,ye,Pe,He){var rt=Pe-oe,pe=He-ye;if(rt!==0||pe!==0){var ke=((H-oe)*rt+(Q-ye)*pe)/(rt*rt+pe*pe);ke>1?(oe=Pe,ye=He):ke>0&&(oe+=rt*ke,ye+=pe*ke)}return(rt=H-oe)*rt+(pe=Q-ye)*pe}function oa(H,Q,oe,ye){var Pe={id:H===void 0?null:H,type:Q,geometry:oe,tags:ye,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(He){var rt=He.geometry,pe=He.type;if(pe==="Point"||pe==="MultiPoint"||pe==="LineString")Mi(He,rt);else if(pe==="Polygon"||pe==="MultiLineString")for(var ke=0;ke0&&(rt+=ye?(Pe*vt-ke*He)/2:Math.sqrt(Math.pow(ke-Pe,2)+Math.pow(vt-He,2))),Pe=ke,He=vt}var pr=Q.length-3;Q[2]=1,function Ft(zt,vr,En,pn){for(var Ot,nn=pn,Zr=En-vr>>1,Yr=En-vr,_i=zt[vr],an=zt[vr+1],on=zt[En],Xi=zt[En+1],yi=vr+3;yinn)Ot=yi,nn=Pi;else if(Pi===nn){var bi=Math.abs(yi-Zr);bipn&&(Ot-vr>3&&Ft(zt,vr,Ot,pn),zt[Ot+2]=nn,En-Ot>3&&Ft(zt,Ot,En,pn))}(Q,0,pr,oe),Q[pr+2]=1,Q.size=Math.abs(rt),Q.start=0,Q.end=Q.size}function ji(H,Q,oe,ye){for(var Pe=0;Pe1?1:oe}function me(H,Q,oe,ye,Pe,He,rt,pe){if(ye/=Q,He>=(oe/=Q)&&rt=ye)return null;for(var ke=[],vt=0;vt=oe&&En=ye)){var pn=[];if(zt==="Point"||zt==="MultiPoint")Dn(Ft,pn,oe,ye,Pe);else if(zt==="LineString")Za(Ft,pn,oe,ye,Pe,!1,pe.lineMetrics);else if(zt==="MultiLineString")Nt(Ft,pn,oe,ye,Pe,!1);else if(zt==="Polygon")Nt(Ft,pn,oe,ye,Pe,!0);else if(zt==="MultiPolygon")for(var Ot=0;Ot=oe&&rt<=ye&&(Q.push(H[He]),Q.push(H[He+1]),Q.push(H[He+2]))}}function Za(H,Q,oe,ye,Pe,He,rt){for(var pe,ke,vt=hs(H),pr=Pe===0?Ar:rn,Ft=H.start,zt=0;ztoe&&(ke=pr(vt,vr,En,Ot,nn,oe),rt&&(vt.start=Ft+pe*ke)):Zr>ye?Yr=oe&&(ke=pr(vt,vr,En,Ot,nn,oe),_i=!0),Yr>ye&&Zr<=ye&&(ke=pr(vt,vr,En,Ot,nn,ye),_i=!0),!He&&_i&&(rt&&(vt.end=Ft+pe*ke),Q.push(vt),vt=hs(H)),rt&&(Ft+=pe)}var an=H.length-3;vr=H[an],En=H[an+1],pn=H[an+2],(Zr=Pe===0?vr:En)>=oe&&Zr<=ye&&nr(vt,vr,En,pn),an=vt.length-3,He&&an>=3&&(vt[an]!==vt[0]||vt[an+1]!==vt[1])&&nr(vt,vt[0],vt[1],vt[2]),vt.length&&Q.push(vt)}function hs(H){var Q=[];return Q.size=H.size,Q.start=H.start,Q.end=H.end,Q}function Nt(H,Q,oe,ye,Pe,He){for(var rt=0;rtrt.maxX&&(rt.maxX=pr),Ft>rt.maxY&&(rt.maxY=Ft)}return rt}function Di(H,Q,oe,ye){var Pe=Q.geometry,He=Q.type,rt=[];if(He==="Point"||He==="MultiPoint")for(var pe=0;pe0&&Q.size<(Pe?rt:ye))oe.numPoints+=Q.length/3;else{for(var pe=[],ke=0;kert)&&(oe.numSimplified++,pe.push(Q[ke]),pe.push(Q[ke+1])),oe.numPoints++;Pe&&function(vt,pr){for(var Ft=0,zt=0,vr=vt.length,En=vr-2;zt0===pr)for(zt=0,vr=vt.length;zt24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var ye=function(Pe,He){var rt=[];if(Pe.type==="FeatureCollection")for(var pe=0;pe=ye;vt--){var pr=+Date.now();pe=this._cluster(pe,vt),this.trees[vt]=new Cr(pe,Wi,Oi,He,Float32Array),oe&&console.log("z%d: %d clusters in %dms",vt,pe.length,+Date.now()-pr)}return oe&&console.timeEnd("total time"),this},vn.prototype.getClusters=function(H,Q){var oe=((H[0]+180)%360+360)%360-180,ye=Math.max(-90,Math.min(90,H[1])),Pe=H[2]===180?180:((H[2]+180)%360+360)%360-180,He=Math.max(-90,Math.min(90,H[3]));if(H[2]-H[0]>=360)oe=-180,Pe=180;else if(oe>Pe){var rt=this.getClusters([oe,ye,180,He],Q),pe=this.getClusters([-180,ye,Pe,He],Q);return rt.concat(pe)}for(var ke=this.trees[this._limitZoom(Q)],vt=[],pr=0,Ft=ke.range(qn(oe),mi(He),qn(Pe),mi(ye));prQ&&(zt+=pn.numPoints||1)}if(zt>=He){for(var Ot=ke.x*Ft,nn=ke.y*Ft,Zr=Pe&&Ft>1?this._map(ke,!0):null,Yr=(pe<<5)+(Q+1)+this.points.length,_i=0,an=pr;_i1)for(var yi=0,Pi=pr;yi>5},vn.prototype._getOriginZoom=function(H){return(H-this.points.length)%32},vn.prototype._map=function(H,Q){if(H.numPoints)return Q?aa({},H.properties):H.properties;var oe=this.points[H.index].properties,ye=this.options.map(oe);return Q&&ye===oe?aa({},ye):ye},to.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},to.prototype.splitTile=function(H,Q,oe,ye,Pe,He,rt){for(var pe=[H,Q,oe,ye],ke=this.options,vt=ke.debug;pe.length;){ye=pe.pop(),oe=pe.pop(),Q=pe.pop(),H=pe.pop();var pr=1<1&&console.time("creation"),zt=this.tiles[Ft]=fn(H,Q,oe,ye,ke),this.tileCoords.push({z:Q,x:oe,y:ye}),vt)){vt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,oe,ye,zt.numFeatures,zt.numPoints,zt.numSimplified),console.timeEnd("creation"));var vr="z"+Q;this.stats[vr]=(this.stats[vr]||0)+1,this.total++}if(zt.source=H,Pe){if(Q===ke.maxZoom||Q===Pe)continue;var En=1<1&&console.time("clipping");var pn,Ot,nn,Zr,Yr,_i,an=.5*ke.buffer/ke.extent,on=.5-an,Xi=.5+an,yi=1+an;pn=Ot=nn=Zr=null,Yr=me(H,pr,oe-an,oe+Xi,0,zt.minX,zt.maxX,ke),_i=me(H,pr,oe+on,oe+yi,0,zt.minX,zt.maxX,ke),H=null,Yr&&(pn=me(Yr,pr,ye-an,ye+Xi,1,zt.minY,zt.maxY,ke),Ot=me(Yr,pr,ye+on,ye+yi,1,zt.minY,zt.maxY,ke),Yr=null),_i&&(nn=me(_i,pr,ye-an,ye+Xi,1,zt.minY,zt.maxY,ke),Zr=me(_i,pr,ye+on,ye+yi,1,zt.minY,zt.maxY,ke),_i=null),vt>1&&console.timeEnd("clipping"),pe.push(pn||[],Q+1,2*oe,2*ye),pe.push(Ot||[],Q+1,2*oe,2*ye+1),pe.push(nn||[],Q+1,2*oe+1,2*ye),pe.push(Zr||[],Q+1,2*oe+1,2*ye+1)}}},to.prototype.getTile=function(H,Q,oe){var ye=this.options,Pe=ye.extent,He=ye.debug;if(H<0||H>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",H,Q,oe);for(var ke,vt=H,pr=Q,Ft=oe;!ke&&vt>0;)vt--,pr=Math.floor(pr/2),Ft=Math.floor(Ft/2),ke=this.tiles[Es(vt,pr,Ft)];return ke&&ke.source?(He>1&&console.log("found parent tile z%d-%d-%d",vt,pr,Ft),He>1&&console.time("drilling down"),this.splitTile(ke.source,vt,pr,Ft,H,Q,oe),He>1&&console.timeEnd("drilling down"),this.tiles[pe]?gi(this.tiles[pe],Pe):null):null};var Ba=function(H){function Q(oe,ye,Pe,He){H.call(this,oe,ye,Pe,Ko),He&&(this.loadGeoJSON=He)}return H&&(Q.__proto__=H),(Q.prototype=Object.create(H&&H.prototype)).constructor=Q,Q.prototype.loadData=function(oe,ye){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ye,this._pendingLoadDataParams=oe,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Q.prototype._loadData=function(){var oe=this;if(this._pendingCallback&&this._pendingLoadDataParams){var ye=this._pendingCallback,Pe=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var He=!!(Pe&&Pe.request&&Pe.request.collectResourceTiming)&&new m.RequestPerformance(Pe.request);this.loadGeoJSON(Pe,function(rt,pe){if(rt||!pe)return ye(rt);if(typeof pe!="object")return ye(new Error("Input data given to '"+Pe.source+"' is not a valid GeoJSON object."));(function zt(vr,En){var pn,Ot=vr&&vr.type;if(Ot==="FeatureCollection")for(pn=0;pn=0?0:l.button},Z.remove=function(l){l.parentNode&&l.parentNode.removeChild(l)};var xt=function(l){function h(){l.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new m.RGBAImage({width:1,height:1}),this.dirty=!0}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.isLoaded=function(){return this.loaded},h.prototype.setLoaded=function(c){if(this.loaded!==c&&(this.loaded=c,c)){for(var d=0,E=this.requestors;d=0?1.2:1))}function Zt(l,h,c,d,E,w,P){for(var L=0;L65535)N(new Error("glyphs > 65535 not supported"));else if(he.ranges[Re])N(null,{stack:q,id:ce,glyph:de});else{var Ie=he.requests[Re];Ie||(Ie=he.requests[Re]=[],$t.loadGlyphRange(q,Re,c.url,c.requestManager,function(We,we){if(we){for(var Ve in we)c._doesCharSupportLocalGlyph(+Ve)||(he.glyphs[+Ve]=we[+Ve]);he.ranges[Re]=!0}for(var tt=0,yt=Ie;tt1&&(L=l[++P]);var q=Math.abs(N-L.left),ce=Math.abs(N-L.right),he=Math.min(q,ce),de=void 0,Re=E/c*(d+1);if(L.isDash){var Ie=d-Math.abs(Re);de=Math.sqrt(he*he+Ie*Ie)}else de=d-Math.sqrt(he*he+Re*Re);this.data[w+N]=Math.max(0,Math.min(255,de+128))}},Qe.prototype.addRegularDash=function(l){for(var h=l.length-1;h>=0;--h){var c=l[h],d=l[h+1];c.zeroLength?l.splice(h,1):d&&d.isDash===c.isDash&&(d.left=c.left,l.splice(h,1))}var E=l[0],w=l[l.length-1];E.isDash===w.isDash&&(E.left=w.left-this.width,w.right=E.right+this.width);for(var P=this.width*this.nextRow,L=0,N=l[L],q=0;q1&&(N=l[++L]);var ce=Math.abs(q-N.left),he=Math.abs(q-N.right),de=Math.min(ce,he);this.data[P+q]=Math.max(0,Math.min(255,(N.isDash?de:-de)+128))}},Qe.prototype.addDash=function(l,h){var c=h?7:0,d=2*c+1;if(this.nextRow+d>this.height)return m.warnOnce("LineAtlas out of space"),null;for(var E=0,w=0;w=c&&l.x=d&&l.y0&&(q[new m.OverscaledTileID(c.overscaledZ,P,d.z,w,d.y-1).key]={backfilled:!1},q[new m.OverscaledTileID(c.overscaledZ,c.wrap,d.z,d.x,d.y-1).key]={backfilled:!1},q[new m.OverscaledTileID(c.overscaledZ,N,d.z,L,d.y-1).key]={backfilled:!1}),d.y+10&&(E.resourceTiming=c._resourceTiming,c._resourceTiming=[]),c.fire(new m.Event("data",E))}})},h.prototype.onAdd=function(c){this.map=c,this.load()},h.prototype.setData=function(c){var d=this;return this._data=c,this.fire(new m.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(E){if(E)d.fire(new m.ErrorEvent(E));else{var w={dataType:"source",sourceDataType:"content"};d._collectResourceTiming&&d._resourceTiming&&d._resourceTiming.length>0&&(w.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new m.Event("data",w))}}),this},h.prototype.getClusterExpansionZoom=function(c,d){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:c,source:this.id},d),this},h.prototype.getClusterChildren=function(c,d){return this.actor.send("geojson.getClusterChildren",{clusterId:c,source:this.id},d),this},h.prototype.getClusterLeaves=function(c,d,E,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:c,limit:d,offset:E},w),this},h.prototype._updateWorkerData=function(c){var d=this;this._loaded=!1;var E=m.extend({},this.workerOptions),w=this._data;typeof w=="string"?(E.request=this.map._requestManager.transformRequest(m.browser.resolveURL(w),m.ResourceType.Source),E.request.collectResourceTiming=this._collectResourceTiming):E.data=JSON.stringify(w),this.actor.send(this.type+".loadData",E,function(P,L){d._removed||L&&L.abandoned||(d._loaded=!0,L&&L.resourceTiming&&L.resourceTiming[d.id]&&(d._resourceTiming=L.resourceTiming[d.id].slice(0)),d.actor.send(d.type+".coalesce",{source:E.source},null),c(P))})},h.prototype.loaded=function(){return this._loaded},h.prototype.loadTile=function(c,d){var E=this,w=c.actor?"reloadTile":"loadTile";c.actor=this.actor,c.request=this.actor.send(w,{type:this.type,uid:c.uid,tileID:c.tileID,zoom:c.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:m.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(P,L){return delete c.request,c.unloadVectorData(),c.aborted?d(null):P?d(P):(c.loadVectorData(L,E.map.painter,w==="reloadTile"),d(null))})},h.prototype.abortTile=function(c){c.request&&(c.request.cancel(),delete c.request),c.aborted=!0},h.prototype.unloadTile=function(c){c.unloadVectorData(),this.actor.send("removeTile",{uid:c.uid,type:this.type,source:this.id})},h.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},h.prototype.serialize=function(){return m.extend({},this._options,{type:this.type,data:this._data})},h.prototype.hasTransition=function(){return!1},h}(m.Evented),wt=m.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),mt=function(l){function h(c,d,E,w){l.call(this),this.id=c,this.dispatcher=E,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(w),this.options=d}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.load=function(c,d){var E=this;this._loaded=!1,this.fire(new m.Event("dataloading",{dataType:"source"})),this.url=this.options.url,m.getImage(this.map._requestManager.transformRequest(this.url,m.ResourceType.Image),function(w,P){E._loaded=!0,w?E.fire(new m.ErrorEvent(w)):P&&(E.image=P,c&&(E.coordinates=c),d&&d(),E._finishLoading())})},h.prototype.loaded=function(){return this._loaded},h.prototype.updateImage=function(c){var d=this;return this.image&&c.url?(this.options.url=c.url,this.load(c.coordinates,function(){d.texture=null}),this):this},h.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new m.Event("data",{dataType:"source",sourceDataType:"metadata"})))},h.prototype.onAdd=function(c){this.map=c,this.load()},h.prototype.setCoordinates=function(c){var d=this;this.coordinates=c;var E=c.map(m.MercatorCoordinate.fromLngLat);this.tileID=function(P){for(var L=1/0,N=1/0,q=-1/0,ce=-1/0,he=0,de=P;hed.end(0)?this.fire(new m.ErrorEvent(new m.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+d.start(0)+" and "+d.end(0)+"-second mark."))):this.video.currentTime=c}},h.prototype.getVideo=function(){return this.video},h.prototype.onAdd=function(c){this.map||(this.map=c,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},h.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var c=this.map.painter.context,d=c.gl;for(var E in this.boundsBuffer||(this.boundsBuffer=c.createVertexBuffer(this._boundsArray,wt.members)),this.boundsSegments||(this.boundsSegments=m.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE),d.texSubImage2D(d.TEXTURE_2D,0,0,0,d.RGBA,d.UNSIGNED_BYTE,this.video)):(this.texture=new m.Texture(c,this.video,d.RGBA),this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[E];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},h.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},h.prototype.hasTransition=function(){return this.video&&!this.video.paused},h}(mt),Kt=function(l){function h(c,d,E,w){l.call(this,c,d,E,w),d.coordinates?Array.isArray(d.coordinates)&&d.coordinates.length===4&&!d.coordinates.some(function(P){return!Array.isArray(P)||P.length!==2||P.some(function(L){return typeof L!="number"})})||this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas=="string"||d.canvas instanceof m.window.HTMLCanvasElement||this.fire(new m.ErrorEvent(new m.ValidationError("sources."+c,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 m.ErrorEvent(new m.ValidationError("sources."+c,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate===void 0||d.animate}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof m.window.HTMLCanvasElement?this.options.canvas:m.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new m.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())},h.prototype.getCanvas=function(){return this.canvas},h.prototype.onAdd=function(c){this.map=c,this.load(),this.canvas&&this.animate&&this.play()},h.prototype.onRemove=function(){this.pause()},h.prototype.prepare=function(){var c=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,c=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,c=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var d=this.map.painter.context,E=d.gl;for(var w in this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,wt.members)),this.boundsSegments||(this.boundsSegments=m.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(c||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m.Texture(d,this.canvas,E.RGBA,{premultiply:!0}),this.tiles){var P=this.tiles[w];P.state!=="loaded"&&(P.state="loaded",P.texture=this.texture)}}},h.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},h.prototype.hasTransition=function(){return this._playing},h.prototype._hasInvalidDimensions=function(){for(var c=0,d=[this.canvas.width,this.canvas.height];cthis.max){var P=this._getAndRemoveByKey(this.order[0]);P&&this.onRemove(P)}return this},Wn.prototype.has=function(l){return l.wrapped().key in this.data},Wn.prototype.getAndRemove=function(l){return this.has(l)?this._getAndRemoveByKey(l.wrapped().key):null},Wn.prototype._getAndRemoveByKey=function(l){var h=this.data[l].shift();return h.timeout&&clearTimeout(h.timeout),this.data[l].length===0&&delete this.data[l],this.order.splice(this.order.indexOf(l),1),h.value},Wn.prototype.getByKey=function(l){var h=this.data[l];return h?h[0].value:null},Wn.prototype.get=function(l){return this.has(l)?this.data[l.wrapped().key][0].value:null},Wn.prototype.remove=function(l,h){if(!this.has(l))return this;var c=l.wrapped().key,d=h===void 0?0:this.data[c].indexOf(h),E=this.data[c][d];return this.data[c].splice(d,1),E.timeout&&clearTimeout(E.timeout),this.data[c].length===0&&delete this.data[c],this.onRemove(E.value),this.order.splice(this.order.indexOf(c),1),this},Wn.prototype.setMaxSize=function(l){for(this.max=l;this.order.length>this.max;){var h=this._getAndRemoveByKey(this.order[0]);h&&this.onRemove(h)}return this},Wn.prototype.filter=function(l){var h=[];for(var c in this.data)for(var d=0,E=this.data[c];d1||(Math.abs(ce)>1&&(Math.abs(ce+de)===1?ce+=de:Math.abs(ce-de)===1&&(ce-=de)),q.dem&&N.dem&&(N.dem.backfillBorder(q.dem,ce,he),N.neighboringTiles&&N.neighboringTiles[Re]&&(N.neighboringTiles[Re].backfilled=!0)))}},h.prototype.getTile=function(c){return this.getTileByID(c.key)},h.prototype.getTileByID=function(c){return this._tiles[c]},h.prototype._retainLoadedChildren=function(c,d,E,w){for(var P in this._tiles){var L=this._tiles[P];if(!(w[P]||!L.hasData()||L.tileID.overscaledZ<=d||L.tileID.overscaledZ>E)){for(var N=L.tileID;L&&L.tileID.overscaledZ>d+1;){var q=L.tileID.scaledTo(L.tileID.overscaledZ-1);(L=this._tiles[q.key])&&L.hasData()&&(N=q)}for(var ce=N;ce.overscaledZ>d;)if(c[(ce=ce.scaledTo(ce.overscaledZ-1)).key]){w[N.key]=N;break}}}},h.prototype.findLoadedParent=function(c,d){if(c.key in this._loadedParentTiles){var E=this._loadedParentTiles[c.key];return E&&E.tileID.overscaledZ>=d?E:null}for(var w=c.overscaledZ-1;w>=d;w--){var P=c.scaledTo(w),L=this._getLoadedTile(P);if(L)return L}},h.prototype._getLoadedTile=function(c){var d=this._tiles[c.key];return d&&d.hasData()?d:this._cache.getByKey(c.wrapped().key)},h.prototype.updateCacheSize=function(c){var d=Math.ceil(c.width/this._source.tileSize)+1,E=Math.ceil(c.height/this._source.tileSize)+1,w=Math.floor(d*E*5),P=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,w):w;this._cache.setMaxSize(P)},h.prototype.handleWrapJump=function(c){var d=Math.round((c-(this._prevLng===void 0?c:this._prevLng))/360);if(this._prevLng=c,d){var E={};for(var w in this._tiles){var P=this._tiles[w];P.tileID=P.tileID.unwrapTo(P.tileID.wrap+d),E[P.tileID.key]=P}for(var L in this._tiles=E,this._timers)clearTimeout(this._timers[L]),delete this._timers[L];for(var N in this._tiles)this._setTileReloadTimer(N,this._tiles[N])}},h.prototype.update=function(c){var d=this;if(this.transform=c,this._sourceLoaded&&!this._paused){var E;this.updateCacheSize(c),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?E=c.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(dr){return new m.OverscaledTileID(dr.canonical.z,dr.wrap,dr.canonical.z,dr.canonical.x,dr.canonical.y)}):(E=c.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(E=E.filter(function(dr){return d._source.hasTile(dr)}))):E=[];var w=c.coveringZoomLevel(this._source),P=Math.max(w-h.maxOverzooming,this._source.minzoom),L=Math.max(w+h.maxUnderzooming,this._source.minzoom),N=this._updateRetainedTiles(E,w);if(pr(this._source.type)){for(var q={},ce={},he=0,de=Object.keys(N);hethis._source.maxzoom){var Ve=We.children(this._source.maxzoom)[0],tt=this.getTile(Ve);if(tt&&tt.hasData()){E[Ve.key]=Ve;continue}}else{var yt=We.children(this._source.maxzoom);if(E[yt[0].key]&&E[yt[1].key]&&E[yt[2].key]&&E[yt[3].key])continue}for(var Wt=we.wasRequested(),jt=We.overscaledZ-1;jt>=P;--jt){var Jt=We.scaledTo(jt);if(w[Jt.key]||(w[Jt.key]=!0,!(we=this.getTile(Jt))&&Wt&&(we=this._addTile(Jt)),we&&(E[Jt.key]=Jt,Wt=we.wasRequested(),we.hasData())))break}}}return E},h.prototype._updateLoadedParentTileCache=function(){for(var c in this._loadedParentTiles={},this._tiles){for(var d=[],E=void 0,w=this._tiles[c].tileID;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){E=this._loadedParentTiles[w.key];break}d.push(w.key);var P=w.scaledTo(w.overscaledZ-1);if(E=this._getLoadedTile(P))break;w=P}for(var L=0,N=d;L0||(d.hasData()&&d.state!=="reloading"?this._cache.add(d.tileID,d,d.getExpiryTimeout()):(d.aborted=!0,this._abortTile(d),this._unloadTile(d))))},h.prototype.clearTiles=function(){for(var c in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(c);this._cache.reset()},h.prototype.tilesIn=function(c,d,E){var w=this,P=[],L=this.transform;if(!L)return P;for(var N=E?L.getCameraQueryGeometry(c):c,q=c.map(function(jt){return L.pointCoordinate(jt)}),ce=N.map(function(jt){return L.pointCoordinate(jt)}),he=this.getIds(),de=1/0,Re=1/0,Ie=-1/0,We=-1/0,we=0,Ve=ce;we=0&&ln[1].y+kr>=0){var Nn=q.map(function(Mn){return dr.getTilePoint(Mn)}),zn=ce.map(function(Mn){return dr.getTilePoint(Mn)});P.push({tile:Jt,tileID:dr,queryGeometry:Nn,cameraQueryGeometry:zn,scale:Fr})}}},Wt=0;Wt=m.browser.now())return!0}return!1},h.prototype.setFeatureState=function(c,d,E){this._state.updateState(c=c||"_geojsonTileLayer",d,E)},h.prototype.removeFeatureState=function(c,d,E){this._state.removeFeatureState(c=c||"_geojsonTileLayer",d,E)},h.prototype.getFeatureState=function(c,d){return this._state.getState(c=c||"_geojsonTileLayer",d)},h.prototype.setDependencies=function(c,d,E){var w=this._tiles[c];w&&w.setDependencies(d,E)},h.prototype.reloadTilesForDependencies=function(c,d){for(var E in this._tiles)this._tiles[E].hasDependency(c,d)&&this._reloadTile(E,"reloading");this._cache.filter(function(w){return!w.hasDependency(c,d)})},h}(m.Evented);function vt(l,h){var c=Math.abs(2*l.wrap)-+(l.wrap<0),d=Math.abs(2*h.wrap)-+(h.wrap<0);return l.overscaledZ-h.overscaledZ||d-c||h.canonical.y-l.canonical.y||h.canonical.x-l.canonical.x}function pr(l){return l==="raster"||l==="image"||l==="video"}function Ft(){return new m.window.Worker(Pa.workerUrl)}ke.maxOverzooming=10,ke.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",vr=function(){this.active={}};vr.prototype.acquire=function(l){if(!this.workers)for(this.workers=[];this.workers.length0?(d-w)/P:0;return this.points[E].mult(1-L).add(this.points[h].mult(L))};var Pt=function(l,h,c){var d=this.boxCells=[],E=this.circleCells=[];this.xCellCount=Math.ceil(l/c),this.yCellCount=Math.ceil(h/c);for(var w=0;w=-h[0]&&c<=h[0]&&d>=-h[1]&&d<=h[1]}function $s(l,h,c,d,E,w,P,L){var N=d?l.textSizeData:l.iconSizeData,q=m.evaluateSizeForZoom(N,c.transform.zoom),ce=[256/c.width*2+1,256/c.height*2+1],he=d?l.text.dynamicLayoutVertexArray:l.icon.dynamicLayoutVertexArray;he.clear();for(var de=l.lineVertexArray,Re=d?l.text.placedSymbolArray:l.icon.placedSymbolArray,Ie=c.transform.width/c.transform.height,We=!1,we=0;weMath.abs(c.x-h.x)*d?{useVertical:!0}:(l===m.WritingMode.vertical?h.yc.x)?{needsFlipping:!0}:null}function Mt(l,h,c,d,E,w,P,L,N,q,ce,he,de,Re){var Ie,We=h/24,we=l.lineOffsetX*We,Ve=l.lineOffsetY*We;if(l.numGlyphs>1){var tt=l.glyphStartIndex+l.numGlyphs,yt=l.lineStartIndex,Wt=l.lineStartIndex+l.lineLength,jt=Ir(We,L,we,Ve,c,ce,he,l,N,w,de);if(!jt)return{notEnoughRoom:!0};var Jt=Ii(jt.first.point,P).point,dr=Ii(jt.last.point,P).point;if(d&&!c){var Fr=wr(l.writingMode,Jt,dr,Re);if(Fr)return Fr}Ie=[jt.first];for(var kr=l.glyphStartIndex+1;kr0?Mn.point:bo(he,zn,ln,1,E),Qr=wr(l.writingMode,ln,Bi,Re);if(Qr)return Qr}var li=ne(We*L.getoffsetX(l.glyphStartIndex),we,Ve,c,ce,he,l.segment,l.lineStartIndex,l.lineStartIndex+l.lineLength,N,w,de);if(!li)return{notEnoughRoom:!0};Ie=[li]}for(var fi=0,ii=Ie;fi0?1:-1,Ie=0;d&&(Re*=-1,Ie=Math.PI),Re<0&&(Ie+=Math.PI);for(var We=Re>0?L+P:L+P+1,we=E,Ve=E,tt=0,yt=0,Wt=Math.abs(de),jt=[];tt+yt<=Wt;){if((We+=Re)=N)return null;if(Ve=we,jt.push(we),(we=he[We])===void 0){var Jt=new m.Point(q.getx(We),q.gety(We)),dr=Ii(Jt,ce);if(dr.signedDistanceFromCamera>0)we=he[We]=dr.point;else{var Fr=We-Re;we=bo(tt===0?w:new m.Point(q.getx(Fr),q.gety(Fr)),Jt,Ve,Wt-tt+1,ce)}}tt+=yt,yt=Ve.dist(we)}var kr=(Wt-tt)/yt,ln=we.sub(Ve),Nn=ln.mult(kr)._add(Ve);Nn._add(ln._unit()._perp()._mult(c*Re));var zn=Ie+Math.atan2(we.y-Ve.y,we.x-Ve.x);return jt.push(Nn),{point:Nn,angle:zn,path:jt}}Pt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Pt.prototype.insert=function(l,h,c,d,E){this._forEachCell(h,c,d,E,this._insertBoxCell,this.boxUid++),this.boxKeys.push(l),this.bboxes.push(h),this.bboxes.push(c),this.bboxes.push(d),this.bboxes.push(E)},Pt.prototype.insertCircle=function(l,h,c,d){this._forEachCell(h-d,c-d,h+d,c+d,this._insertCircleCell,this.circleUid++),this.circleKeys.push(l),this.circles.push(h),this.circles.push(c),this.circles.push(d)},Pt.prototype._insertBoxCell=function(l,h,c,d,E,w){this.boxCells[E].push(w)},Pt.prototype._insertCircleCell=function(l,h,c,d,E,w){this.circleCells[E].push(w)},Pt.prototype._query=function(l,h,c,d,E,w){if(c<0||l>this.width||d<0||h>this.height)return!E&&[];var P=[];if(l<=0&&h<=0&&this.width<=c&&this.height<=d){if(E)return!0;for(var L=0;L0:P},Pt.prototype._queryCircle=function(l,h,c,d,E){var w=l-c,P=l+c,L=h-c,N=h+c;if(P<0||w>this.width||N<0||L>this.height)return!d&&[];var q=[];return this._forEachCell(w,L,P,N,this._queryCellCircle,q,{hitTest:d,circle:{x:l,y:h,radius:c},seenUids:{box:{},circle:{}}},E),d?q.length>0:q},Pt.prototype.query=function(l,h,c,d,E){return this._query(l,h,c,d,!1,E)},Pt.prototype.hitTest=function(l,h,c,d,E){return this._query(l,h,c,d,!0,E)},Pt.prototype.hitTestCircle=function(l,h,c,d){return this._queryCircle(l,h,c,!0,d)},Pt.prototype._queryCell=function(l,h,c,d,E,w,P,L){var N=P.seenUids,q=this.boxCells[E];if(q!==null)for(var ce=this.bboxes,he=0,de=q;he=ce[Ie+0]&&d>=ce[Ie+1]&&(!L||L(this.boxKeys[Re]))){if(P.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[Re],x1:ce[Ie],y1:ce[Ie+1],x2:ce[Ie+2],y2:ce[Ie+3]})}}}var We=this.circleCells[E];if(We!==null)for(var we=this.circles,Ve=0,tt=We;VeP*P+L*L},Pt.prototype._circleAndRectCollide=function(l,h,c,d,E,w,P){var L=(w-d)/2,N=Math.abs(l-(d+L));if(N>L+c)return!1;var q=(P-E)/2,ce=Math.abs(h-(E+q));if(ce>q+c)return!1;if(N<=L||ce<=q)return!0;var he=N-L,de=ce-q;return he*he+de*de<=c*c};var Fu=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function oo(l,h){for(var c=0;c=1;Bi--)Mn.push(Nn.path[Bi]);for(var Qr=1;Qr0){for(var Xn=Mn[0].clone(),xi=Mn[0].clone(),ri=1;ri=Fr.x&&xi.x<=kr.x&&Xn.y>=Fr.y&&xi.y<=kr.y?[Mn]:xi.xkr.x||xi.ykr.y?[]:m.clipLine([Mn],Fr.x,Fr.y,kr.x,kr.y)}for(var Kn=0,po=ii;Kn=this.screenRightBoundary||d<100||h>this.screenBottomBoundary},Ta.prototype.isInsideGrid=function(l,h,c,d){return c>=0&&l=0&&h0?(this.prevPlacement&&this.prevPlacement.variableOffsets[he.crossTileID]&&this.prevPlacement.placements[he.crossTileID]&&this.prevPlacement.placements[he.crossTileID].text&&(We=this.prevPlacement.variableOffsets[he.crossTileID].anchor),this.variableOffsets[he.crossTileID]={textOffset:we,width:c,height:d,anchor:l,textBoxScale:E,prevAnchor:We},this.markUsedJustification(de,l,he,Re),de.allowVerticalPlacement&&(this.markUsedOrientation(de,Re,he),this.placedOrientations[he.crossTileID]=Re),{shift:Ve,placedGlyphBoxes:tt}):void 0},Ya.prototype.placeLayerBucketPart=function(l,h,c){var d=this,E=l.parameters,w=E.bucket,P=E.layout,L=E.posMatrix,N=E.textLabelPlaneMatrix,q=E.labelToScreenMatrix,ce=E.textPixelRatio,he=E.holdingForFade,de=E.collisionBoxArray,Re=E.partiallyEvaluatedTextSize,Ie=E.collisionGroup,We=P.get("text-optional"),we=P.get("icon-optional"),Ve=P.get("text-allow-overlap"),tt=P.get("icon-allow-overlap"),yt=P.get("text-rotation-alignment")==="map",Wt=P.get("text-pitch-alignment")==="map",jt=P.get("icon-text-fit")!=="none",Jt=P.get("symbol-z-order")==="viewport-y",dr=Ve&&(tt||!w.hasIconData()||we),Fr=tt&&(Ve||!w.hasTextData()||We);!w.collisionArrays&&de&&w.deserializeCollisionBoxes(de);var kr=function(Qr,li){if(!h[Qr.crossTileID])if(he)d.placements[Qr.crossTileID]=new xu(!1,!1,!1);else{var fi,ii=!1,Xn=!1,xi=!0,ri=null,Kn={box:null,offscreen:null},po={box:null,offscreen:null},Ka=null,Ho=null,Bo=0,za=0,co=0;li.textFeatureIndex?Bo=li.textFeatureIndex:Qr.useRuntimeCollisionCircles&&(Bo=Qr.featureIndex),li.verticalTextFeatureIndex&&(za=li.verticalTextFeatureIndex);var Bs=li.textBox;if(Bs){var _s=function(ta){var is=m.WritingMode.horizontal;if(w.allowVerticalPlacement&&!ta&&d.prevPlacement){var Ms=d.prevPlacement.placedOrientations[Qr.crossTileID];Ms&&(d.placedOrientations[Qr.crossTileID]=Ms,d.markUsedOrientation(w,is=Ms,Qr))}return is},Hu=function(ta,is){if(w.allowVerticalPlacement&&Qr.numVerticalGlyphVertices>0&&li.verticalTextBox)for(var Ms=0,bl=w.writingModes;Ms0&&(xs=xs.filter(function(ta){return ta!==pu.anchor})).unshift(pu.anchor)}var vo=function(ta,is,Ms){for(var bl=ta.x2-ta.x1,_f=ta.y2-ta.y1,xf=Qr.textBoxScale,Gc=jt&&!tt?is:null,mo={box:[],offscreen:!1},Hc=Ve?2*xs.length:xs.length,Ru=0;Ru=xs.length,Qr,w,Ms,Gc);if(Zl&&(mo=Zl.placedGlyphBoxes)&&mo.box&&mo.box.length){ii=!0,ri=Zl.shift;break}}return mo};Hu(function(){return vo(Bs,li.iconBox,m.WritingMode.horizontal)},function(){var ta=li.verticalTextBox;return w.allowVerticalPlacement&&!(Kn&&Kn.box&&Kn.box.length)&&Qr.numVerticalGlyphVertices>0&&ta?vo(ta,li.verticalIconBox,m.WritingMode.vertical):{box:null,offscreen:null}}),Kn&&(ii=Kn.box,xi=Kn.offscreen);var mc=_s(Kn&&Kn.box);if(!ii&&d.prevPlacement){var ru=d.prevPlacement.variableOffsets[Qr.crossTileID];ru&&(d.variableOffsets[Qr.crossTileID]=ru,d.markUsedJustification(w,ru.anchor,Qr,mc))}}else{var Wu=function(ta,is){var Ms=d.collisionIndex.placeCollisionBox(ta,Ve,ce,L,Ie.predicate);return Ms&&Ms.box&&Ms.box.length&&(d.markUsedOrientation(w,is,Qr),d.placedOrientations[Qr.crossTileID]=is),Ms};Hu(function(){return Wu(Bs,m.WritingMode.horizontal)},function(){var ta=li.verticalTextBox;return w.allowVerticalPlacement&&Qr.numVerticalGlyphVertices>0&&ta?Wu(ta,m.WritingMode.vertical):{box:null,offscreen:null}}),_s(Kn&&Kn.box&&Kn.box.length)}}if(ii=(fi=Kn)&&fi.box&&fi.box.length>0,xi=fi&&fi.offscreen,Qr.useRuntimeCollisionCircles){var du=w.text.placedSymbolArray.get(Qr.centerJustifiedTextSymbolIndex),xl=m.evaluateSizeForFeature(w.textSizeData,Re,du),vu=P.get("text-padding");Ka=d.collisionIndex.placeCollisionCircles(Ve,du,w.lineVertexArray,w.glyphOffsetArray,xl,L,N,q,c,Wt,Ie.predicate,Qr.collisionCircleDiameter,vu),ii=Ve||Ka.circles.length>0&&!Ka.collisionDetected,xi=xi&&Ka.offscreen}if(li.iconFeatureIndex&&(co=li.iconFeatureIndex),li.iconBox){var Ul=function(ta){var is=jt&&ri?jo(ta,ri.x,ri.y,yt,Wt,d.transform.angle):ta;return d.collisionIndex.placeCollisionBox(is,tt,ce,L,Ie.predicate)};Xn=po&&po.box&&po.box.length&&li.verticalIconBox?(Ho=Ul(li.verticalIconBox)).box.length>0:(Ho=Ul(li.iconBox)).box.length>0,xi=xi&&Ho.offscreen}var Ou=We||Qr.numHorizontalGlyphVertices===0&&Qr.numVerticalGlyphVertices===0,So=we||Qr.numIconVertices===0;if(Ou||So?So?Ou||(Xn=Xn&&ii):ii=Xn&&ii:Xn=ii=Xn&&ii,ii&&fi&&fi.box&&d.collisionIndex.insertCollisionBox(fi.box,P.get("text-ignore-placement"),w.bucketInstanceId,po&&po.box&&za?za:Bo,Ie.ID),Xn&&Ho&&d.collisionIndex.insertCollisionBox(Ho.box,P.get("icon-ignore-placement"),w.bucketInstanceId,co,Ie.ID),Ka&&(ii&&d.collisionIndex.insertCollisionCircles(Ka.circles,P.get("text-ignore-placement"),w.bucketInstanceId,Bo,Ie.ID),c)){var ka=w.bucketInstanceId,Ua=d.collisionCircleArrays[ka];Ua===void 0&&(Ua=d.collisionCircleArrays[ka]=new Eo);for(var mu=0;mu=0;--Nn){var zn=ln[Nn];kr(w.symbolInstances.get(zn),w.collisionArrays[zn])}else for(var Mn=l.symbolInstanceStart;Mn=0&&(l.text.placedSymbolArray.get(L).crossTileID=E>=0&&L!==E?0:c.crossTileID)}},Ya.prototype.markUsedOrientation=function(l,h,c){for(var d=h===m.WritingMode.horizontal||h===m.WritingMode.horizontalOnly?h:0,E=h===m.WritingMode.vertical?h:0,w=0,P=[c.leftJustifiedTextSymbolIndex,c.centerJustifiedTextSymbolIndex,c.rightJustifiedTextSymbolIndex];w0,Fr=d.placedOrientations[tt.crossTileID],kr=Fr===m.WritingMode.vertical,ln=Fr===m.WritingMode.horizontal||Fr===m.WritingMode.horizontalOnly;if(yt>0||Wt>0){var Nn=Tn(Jt.text);Re(l.text,yt,kr?Ti:Nn),Re(l.text,Wt,ln?Ti:Nn);var zn=Jt.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(function(Kn){Kn>=0&&(l.text.placedSymbolArray.get(Kn).hidden=zn||kr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(l.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=zn||ln?1:0);var Mn=d.variableOffsets[tt.crossTileID];Mn&&d.markUsedJustification(l,Mn.anchor,tt,Fr);var Bi=d.placedOrientations[tt.crossTileID];Bi&&(d.markUsedJustification(l,"left",tt,Bi),d.markUsedOrientation(l,Bi,tt))}if(dr){var Qr=Tn(Jt.icon),li=!(he&&tt.verticalPlacedIconSymbolIndex&&kr);tt.placedIconSymbolIndex>=0&&(Re(l.icon,tt.numIconVertices,li?Qr:Ti),l.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Jt.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(Re(l.icon,tt.numVerticalIconVertices,li?Ti:Qr),l.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Jt.icon.isHidden())}if(l.hasIconCollisionBoxData()||l.hasTextCollisionBoxData()){var fi=l.collisionArrays[Ve];if(fi){var ii=new m.Point(0,0);if(fi.textBox||fi.verticalTextBox){var Xn=!0;if(N){var xi=d.variableOffsets[jt];xi?(ii=so(xi.anchor,xi.width,xi.height,xi.textOffset,xi.textBoxScale),q&&ii._rotate(ce?d.transform.angle:-d.transform.angle)):Xn=!1}fi.textBox&&Gs(l.textCollisionBox.collisionVertexArray,Jt.text.placed,!Xn||kr,ii.x,ii.y),fi.verticalTextBox&&Gs(l.textCollisionBox.collisionVertexArray,Jt.text.placed,!Xn||ln,ii.x,ii.y)}var ri=Boolean(!ln&&fi.verticalIconBox);fi.iconBox&&Gs(l.iconCollisionBox.collisionVertexArray,Jt.icon.placed,ri,he?ii.x:0,he?ii.y:0),fi.verticalIconBox&&Gs(l.iconCollisionBox.collisionVertexArray,Jt.icon.placed,!ri,he?ii.x:0,he?ii.y:0)}}},We=0;Wel},Ya.prototype.setStale=function(){this.stale=!0};var ll=Math.pow(2,25),os=Math.pow(2,24),ie=Math.pow(2,17),Ee=Math.pow(2,16),qe=Math.pow(2,9),Rt=Math.pow(2,8),Or=Math.pow(2,1);function Tn(l){if(l.opacity===0&&!l.placed)return 0;if(l.opacity===1&&l.placed)return 4294967295;var h=l.placed?1:0,c=Math.floor(127*l.opacity);return c*ll+h*os+c*ie+h*Ee+c*qe+h*Rt+c*Or+h}var Ti=0,ro=function(l){this._sortAcrossTiles=l.layout.get("symbol-z-order")!=="viewport-y"&&l.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ro.prototype.continuePlacement=function(l,h,c,d,E){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var P=h[l[this._currentPlacementIndex]],L=this.placement.collisionIndex.transform.zoom;if(P.type==="symbol"&&(!P.minzoom||P.minzoom<=L)&&(!P.maxzoom||P.maxzoom>L)){if(this._inProgressLayer||(this._inProgressLayer=new ro(P)),this._inProgressLayer.continuePlacement(c[P.source],this.placement,this._showCollisionBoxes,P,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},La.prototype.commit=function(l){return this.placement.commit(l),this.placement};var ja=512/m.EXTENT/2,Qo=function(l,h,c){this.tileID=l,this.indexedSymbolInstances={},this.bucketInstanceId=c;for(var d=0;dl.overscaledZ)for(var L in P){var N=P[L];N.tileID.isChildOf(l)&&N.findMatches(h.symbolInstances,l,E)}else{var q=P[l.scaledTo(Number(w)).key];q&&q.findMatches(h.symbolInstances,l,E)}}for(var ce=0;ce1?"@2x":"",he=m.getJSON(w.transformRequest(w.normalizeSpriteURL(E,ce,".json"),m.ResourceType.SpriteJSON),function(Ie,We){he=null,q||(q=Ie,L=We,Re())}),de=m.getImage(w.transformRequest(w.normalizeSpriteURL(E,ce,".png"),m.ResourceType.SpriteImage),function(Ie,We){de=null,q||(q=Ie,N=We,Re())});function Re(){if(q)P(q);else if(L&&N){var Ie=m.browser.getImageData(N),We={};for(var we in L){var Ve=L[we],tt=Ve.width,yt=Ve.height,Wt=Ve.x,jt=Ve.y,Jt=Ve.sdf,dr=Ve.pixelRatio,Fr=Ve.stretchX,kr=Ve.stretchY,ln=Ve.content,Nn=new m.RGBAImage({width:tt,height:yt});m.RGBAImage.copy(Ie,Nn,{x:Wt,y:jt},{x:0,y:0},{width:tt,height:yt}),We[we]={data:Nn,pixelRatio:dr,sdf:Jt,stretchX:Fr,stretchY:kr,content:ln}}P(null,We)}}return{cancel:function(){he&&(he.cancel(),he=null),de&&(de.cancel(),de=null)}}}(c,this.map._requestManager,function(E,w){if(d._spriteRequest=null,E)d.fire(new m.ErrorEvent(E));else if(w)for(var P in w)d.imageManager.addImage(P,w[P]);d.imageManager.setLoaded(!0),d._availableImages=d.imageManager.listImages(),d.dispatcher.broadcast("setImages",d._availableImages),d.fire(new m.Event("data",{dataType:"style"}))})},h.prototype._validateLayer=function(c){var d=this.sourceCaches[c.source];if(d){var E=c.sourceLayer;if(E){var w=d.getSource();(w.type==="geojson"||w.vectorLayerIds&&w.vectorLayerIds.indexOf(E)===-1)&&this.fire(new m.ErrorEvent(new Error('Source layer "'+E+'" does not exist on source "'+w.id+'" as specified by style layer "'+c.id+'"')))}}},h.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var c in this.sourceCaches)if(!this.sourceCaches[c].loaded())return!1;return!!this.imageManager.isLoaded()},h.prototype._serializeLayers=function(c){for(var d=[],E=0,w=c;E0)throw new Error("Unimplemented: "+w.map(function(P){return P.command}).join(", ")+".");return E.forEach(function(P){P.command!=="setTransition"&&d[P.command].apply(d,P.args)}),this.stylesheet=c,!0},h.prototype.addImage=function(c,d){if(this.getImage(c))return this.fire(new m.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(c,d),this._afterImageUpdated(c)},h.prototype.updateImage=function(c,d){this.imageManager.updateImage(c,d)},h.prototype.getImage=function(c){return this.imageManager.getImage(c)},h.prototype.removeImage=function(c){if(!this.getImage(c))return this.fire(new m.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(c),this._afterImageUpdated(c)},h.prototype._afterImageUpdated=function(c){this._availableImages=this.imageManager.listImages(),this._changedImages[c]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new m.Event("data",{dataType:"style"}))},h.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},h.prototype.addSource=function(c,d,E){var w=this;if(E===void 0&&(E={}),this._checkLoaded(),this.sourceCaches[c]!==void 0)throw new Error("There is already a source with this ID");if(!d.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(d).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(d.type)>=0&&this._validate(m.validateStyle.source,"sources."+c,d,null,E))){this.map&&this.map._collectResourceTiming&&(d.collectResourceTiming=!0);var P=this.sourceCaches[c]=new ke(c,d,this.dispatcher);P.style=this,P.setEventedParent(this,function(){return{isSourceLoaded:w.loaded(),source:P.serialize(),sourceId:c}}),P.onAdd(this.map),this._changed=!0}},h.prototype.removeSource=function(c){if(this._checkLoaded(),this.sourceCaches[c]===void 0)throw new Error("There is no source with this ID");for(var d in this._layers)if(this._layers[d].source===c)return this.fire(new m.ErrorEvent(new Error('Source "'+c+'" cannot be removed while layer "'+d+'" is using it.')));var E=this.sourceCaches[c];delete this.sourceCaches[c],delete this._updatedSources[c],E.fire(new m.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:c})),E.setEventedParent(null),E.clearTiles(),E.onRemove&&E.onRemove(this.map),this._changed=!0},h.prototype.setGeoJSONSourceData=function(c,d){this._checkLoaded(),this.sourceCaches[c].getSource().setData(d),this._changed=!0},h.prototype.getSource=function(c){return this.sourceCaches[c]&&this.sourceCaches[c].getSource()},h.prototype.addLayer=function(c,d,E){E===void 0&&(E={}),this._checkLoaded();var w=c.id;if(this.getLayer(w))this.fire(new m.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var P;if(c.type==="custom"){if(Lo(this,m.validateCustomStyleLayer(c)))return;P=m.createStyleLayer(c)}else{if(typeof c.source=="object"&&(this.addSource(w,c.source),c=m.clone$1(c),c=m.extend(c,{source:w})),this._validate(m.validateStyle.layer,"layers."+w,c,{arrayIndex:-1},E))return;P=m.createStyleLayer(c),this._validateLayer(P),P.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[P.id]=P.serialize()}var L=d?this._order.indexOf(d):this._order.length;if(d&&L===-1)this.fire(new m.ErrorEvent(new Error('Layer with id "'+d+'" does not exist on this map.')));else{if(this._order.splice(L,0,w),this._layerOrderChanged=!0,this._layers[w]=P,this._removedLayers[w]&&P.source&&P.type!=="custom"){var N=this._removedLayers[w];delete this._removedLayers[w],N.type!==P.type?this._updatedSources[P.source]="clear":(this._updatedSources[P.source]="reload",this.sourceCaches[P.source].pause())}this._updateLayer(P),P.onAdd&&P.onAdd(this.map)}}},h.prototype.moveLayer=function(c,d){if(this._checkLoaded(),this._changed=!0,this._layers[c]){if(c!==d){var E=this._order.indexOf(c);this._order.splice(E,1);var w=d?this._order.indexOf(d):this._order.length;d&&w===-1?this.fire(new m.ErrorEvent(new Error('Layer with id "'+d+'" does not exist on this map.'))):(this._order.splice(w,0,c),this._layerOrderChanged=!0)}}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be moved.")))},h.prototype.removeLayer=function(c){this._checkLoaded();var d=this._layers[c];if(d){d.setEventedParent(null);var E=this._order.indexOf(c);this._order.splice(E,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[c]=d,delete this._layers[c],delete this._serializedLayers[c],delete this._updatedLayers[c],delete this._updatedPaintProps[c],d.onRemove&&d.onRemove(this.map)}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be removed.")))},h.prototype.getLayer=function(c){return this._layers[c]},h.prototype.hasLayer=function(c){return c in this._layers},h.prototype.setLayerZoomRange=function(c,d,E){this._checkLoaded();var w=this.getLayer(c);w?w.minzoom===d&&w.maxzoom===E||(d!=null&&(w.minzoom=d),E!=null&&(w.maxzoom=E),this._updateLayer(w)):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot have zoom extent.")))},h.prototype.setFilter=function(c,d,E){E===void 0&&(E={}),this._checkLoaded();var w=this.getLayer(c);if(w){if(!m.deepEqual(w.filter,d))return d==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(m.validateStyle.filter,"layers."+w.id+".filter",d,null,E)||(w.filter=m.clone$1(d),this._updateLayer(w)))}else this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be filtered.")))},h.prototype.getFilter=function(c){return m.clone$1(this.getLayer(c).filter)},h.prototype.setLayoutProperty=function(c,d,E,w){w===void 0&&(w={}),this._checkLoaded();var P=this.getLayer(c);P?m.deepEqual(P.getLayoutProperty(d),E)||(P.setLayoutProperty(d,E,w),this._updateLayer(P)):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be styled.")))},h.prototype.getLayoutProperty=function(c,d){var E=this.getLayer(c);if(E)return E.getLayoutProperty(d);this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style.")))},h.prototype.setPaintProperty=function(c,d,E,w){w===void 0&&(w={}),this._checkLoaded();var P=this.getLayer(c);P?m.deepEqual(P.getPaintProperty(d),E)||(P.setPaintProperty(d,E,w)&&this._updateLayer(P),this._changed=!0,this._updatedPaintProps[c]=!0):this.fire(new m.ErrorEvent(new Error("The layer '"+c+"' does not exist in the map's style and cannot be styled.")))},h.prototype.getPaintProperty=function(c,d){return this.getLayer(c).getPaintProperty(d)},h.prototype.setFeatureState=function(c,d){this._checkLoaded();var E=c.source,w=c.sourceLayer,P=this.sourceCaches[E];if(P!==void 0){var L=P.getSource().type;L==="geojson"&&w?this.fire(new m.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):L!=="vector"||w?(c.id===void 0&&this.fire(new m.ErrorEvent(new Error("The feature id parameter must be provided."))),P.setFeatureState(w,c.id,d)):this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+E+"' does not exist in the map's style.")))},h.prototype.removeFeatureState=function(c,d){this._checkLoaded();var E=c.source,w=this.sourceCaches[E];if(w!==void 0){var P=w.getSource().type,L=P==="vector"?c.sourceLayer:void 0;P!=="vector"||L?d&&typeof c.id!="string"&&typeof c.id!="number"?this.fire(new m.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(L,c.id,d):this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+E+"' does not exist in the map's style.")))},h.prototype.getFeatureState=function(c){this._checkLoaded();var d=c.source,E=c.sourceLayer,w=this.sourceCaches[d];if(w!==void 0){if(w.getSource().type!=="vector"||E)return c.id===void 0&&this.fire(new m.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(E,c.id);this.fire(new m.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new m.ErrorEvent(new Error("The source '"+d+"' does not exist in the map's style.")))},h.prototype.getTransition=function(){return m.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},h.prototype.serialize=function(){return m.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:m.mapObject(this.sourceCaches,function(c){return c.serialize()}),layers:this._serializeLayers(this._order)},function(c){return c!==void 0})},h.prototype._updateLayer=function(c){this._updatedLayers[c.id]=!0,c.source&&!this._updatedSources[c.source]&&this.sourceCaches[c.source].getSource().type!=="raster"&&(this._updatedSources[c.source]="reload",this.sourceCaches[c.source].pause()),this._changed=!0},h.prototype._flattenAndSortRenderedFeatures=function(c){for(var d=this,E=function(Fr){return d._layers[Fr].type==="fill-extrusion"},w={},P=[],L=this._order.length-1;L>=0;L--){var N=this._order[L];if(E(N)){w[N]=L;for(var q=0,ce=c;q=0;We--){var we=this._order[We];if(E(we))for(var Ve=P.length-1;Ve>=0;Ve--){var tt=P[Ve].feature;if(w[tt.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;}"),cl=Gi("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);}"),_=Gi("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);}"),M=Gi(`#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_FragColor=color*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),F=Gi(`varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -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;}`),R=Gi(`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 -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;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 -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#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;}`),K=Gi(`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 -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;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 -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#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);}`),_e=Gi(`varying vec4 v_color;void main() {gl_FragColor=v_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; -#pragma mapbox: define highp float base -#pragma mapbox: define highp float height -#pragma mapbox: define highp vec4 color -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;}`),je=Gi(`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 -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;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 -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#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;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;}`),pt=Gi(`#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;}"),dt=Gi(`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;}"),ur=Gi(`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 -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#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);}`),yr=Gi(`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() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#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);}`),In=Gi(`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 -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -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;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;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 float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#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;}`),Bn=Gi(`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 -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;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 -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#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);}`),Qn=Gi(`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;}"),Vi=Gi(`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 -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -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));}`),Li=Gi(`#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 -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#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);}`),ba=Gi(`#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; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#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 Gi(l,h){var c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=h.match(/attribute ([\w]+) ([\w]+)/g),E=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),P=w?w.concat(E):E,L={};return{fragmentSource:l=l.replace(c,function(N,q,ce,he,de){return L[de]=!0,q==="define"?` -#ifndef HAS_UNIFORM_u_`+de+` -varying `+ce+" "+he+" "+de+`; -#else -uniform `+ce+" "+he+" u_"+de+`; -#endif -`:` -#ifdef HAS_UNIFORM_u_`+de+` - `+ce+" "+he+" "+de+" = u_"+de+`; -#endif -`}),vertexSource:h=h.replace(c,function(N,q,ce,he,de){var Re=he==="float"?"vec2":"vec4",Ie=de.match(/color/)?"color":Re;return L[de]?q==="define"?` -#ifndef HAS_UNIFORM_u_`+de+` -uniform lowp float u_`+de+`_t; -attribute `+ce+" "+Re+" a_"+de+`; -varying `+ce+" "+he+" "+de+`; -#else -uniform `+ce+" "+he+" u_"+de+`; -#endif -`:Ie==="vec4"?` -#ifndef HAS_UNIFORM_u_`+de+` - `+de+" = a_"+de+`; -#else - `+ce+" "+he+" "+de+" = u_"+de+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+de+` - `+de+" = unpack_mix_"+Ie+"(a_"+de+", u_"+de+`_t); -#else - `+ce+" "+he+" "+de+" = u_"+de+`; -#endif -`:q==="define"?` -#ifndef HAS_UNIFORM_u_`+de+` -uniform lowp float u_`+de+`_t; -attribute `+ce+" "+Re+" a_"+de+`; -#else -uniform `+ce+" "+he+" u_"+de+`; -#endif -`:Ie==="vec4"?` -#ifndef HAS_UNIFORM_u_`+de+` - `+ce+" "+he+" "+de+" = a_"+de+`; -#else - `+ce+" "+he+" "+de+" = u_"+de+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+de+` - `+ce+" "+he+" "+de+" = unpack_mix_"+Ie+"(a_"+de+", u_"+de+`_t); -#else - `+ce+" "+he+" "+de+" = u_"+de+`; -#endif -`}),staticAttributes:d,staticUniforms:P}}var As=Object.freeze({__proto__:null,prelude:ko,background:Il,backgroundPattern:vs,circle:es,clippingMask:of,heatmap:rc,heatmapTexture:Cs,collisionBox:bu,collisionCircle:cl,debug:_,fill:M,fillOutline:F,fillOutlinePattern:R,fillPattern:K,fillExtrusion:_e,fillExtrusionPattern:je,hillshadePrepare:pt,hillshade:dt,line:ur,lineGradient:yr,linePattern:In,lineSDF:Bn,raster:Qn,symbolIcon:Vi,symbolSDF:Li,symbolTextAndIcon:ba}),Eu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function fl(l){for(var h=[],c=0;c>16,L>>16],u_pixel_coord_lower:[65535&P,65535&L]}}Rc.prototype.draw=function(l,h,c,d,E,w,P,L,N,q,ce,he,de,Re,Ie,We){var we,Ve=l.gl;if(!this.failedToCreate){for(var tt in l.program.set(this.program),l.setDepthMode(c),l.setStencilMode(d),l.setColorMode(E),l.setCullFace(w),this.fixedUniforms)this.fixedUniforms[tt].set(P[tt]);Re&&Re.setUniforms(l,this.binderUniforms,he,{zoom:de});for(var yt=(we={},we[Ve.LINES]=2,we[Ve.TRIANGLES]=3,we[Ve.LINE_STRIP]=1,we)[h],Wt=0,jt=ce.get();Wt0?1-1/(1.001-P):-P),u_contrast_factor:(w=E.paint.get("raster-contrast"),w>0?1/(1-w):1+w),u_spin_weights:lf(E.paint.get("raster-hue-rotate"))};var w,P};function lf(l){l*=Math.PI/180;var h=Math.sin(l),c=Math.cos(l);return[(2*c+1)/3,(-Math.sqrt(3)*h-c+1)/3,(Math.sqrt(3)*h-c+1)/3]}var ic,ac=function(l,h,c,d,E,w,P,L,N,q){var ce=E.transform;return{u_is_size_zoom_constant:+(l==="constant"||l==="source"),u_is_size_feature_constant:+(l==="constant"||l==="camera"),u_size_t:h?h.uSizeT:0,u_size:h?h.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+c,u_aspect_ratio:ce.width/ce.height,u_fade_change:E.options.fadeDuration?E.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:P,u_coord_matrix:L,u_is_text:+N,u_pitch_with_map:+d,u_texsize:q,u_texture:0}},oc=function(l,h,c,d,E,w,P,L,N,q,ce){var he=E.transform;return m.extend(ac(l,h,c,d,E,w,P,L,N,q),{u_gamma_scale:d?Math.cos(he._pitch)*he.cameraToCenterDistance:1,u_device_pixel_ratio:m.browser.devicePixelRatio,u_is_halo:+ce})},sc=function(l,h,c,d,E,w,P,L,N,q){return m.extend(oc(l,h,c,d,E,w,P,L,!0,N,!0),{u_texsize_icon:q,u_texture_icon:1})},uc=function(l,h,c){return{u_matrix:l,u_opacity:h,u_color:c}},Rl=function(l,h,c,d,E,w){return m.extend(function(P,L,N,q){var ce=N.imageManager.getPattern(P.from.toString()),he=N.imageManager.getPattern(P.to.toString()),de=N.imageManager.getPixelSize(),Re=de.width,Ie=de.height,We=Math.pow(2,q.tileID.overscaledZ),we=q.tileSize*Math.pow(2,N.transform.tileZoom)/We,Ve=we*(q.tileID.canonical.x+q.tileID.wrap*We),tt=we*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ce.tl,u_pattern_br_a:ce.br,u_pattern_tl_b:he.tl,u_pattern_br_b:he.br,u_texsize:[Re,Ie],u_mix:L.t,u_pattern_size_a:ce.displaySize,u_pattern_size_b:he.displaySize,u_scale_a:L.fromScale,u_scale_b:L.toScale,u_tile_units_to_pixels:1/Qi(q,1,N.transform.tileZoom),u_pixel_coord_upper:[Ve>>16,tt>>16],u_pixel_coord_lower:[65535&Ve,65535&tt]}}(d,w,c,E),{u_matrix:l,u_opacity:h})},Ll={fillExtrusion:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_lightpos:new m.Uniform3f(l,h.u_lightpos),u_lightintensity:new m.Uniform1f(l,h.u_lightintensity),u_lightcolor:new m.Uniform3f(l,h.u_lightcolor),u_vertical_gradient:new m.Uniform1f(l,h.u_vertical_gradient),u_opacity:new m.Uniform1f(l,h.u_opacity)}},fillExtrusionPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_lightpos:new m.Uniform3f(l,h.u_lightpos),u_lightintensity:new m.Uniform1f(l,h.u_lightintensity),u_lightcolor:new m.Uniform3f(l,h.u_lightcolor),u_vertical_gradient:new m.Uniform1f(l,h.u_vertical_gradient),u_height_factor:new m.Uniform1f(l,h.u_height_factor),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade),u_opacity:new m.Uniform1f(l,h.u_opacity)}},fill:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},fillPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},fillOutline:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world)}},fillOutlinePattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world),u_image:new m.Uniform1i(l,h.u_image),u_texsize:new m.Uniform2f(l,h.u_texsize),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},circle:function(l,h){return{u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_scale_with_map:new m.Uniform1i(l,h.u_scale_with_map),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_extrude_scale:new m.Uniform2f(l,h.u_extrude_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},collisionBox:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pixels_to_tile_units:new m.Uniform1f(l,h.u_pixels_to_tile_units),u_extrude_scale:new m.Uniform2f(l,h.u_extrude_scale),u_overscale_factor:new m.Uniform1f(l,h.u_overscale_factor)}},collisionCircle:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_inv_matrix:new m.UniformMatrix4f(l,h.u_inv_matrix),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_viewport_size:new m.Uniform2f(l,h.u_viewport_size)}},debug:function(l,h){return{u_color:new m.UniformColor(l,h.u_color),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_overlay:new m.Uniform1i(l,h.u_overlay),u_overlay_scale:new m.Uniform1f(l,h.u_overlay_scale)}},clippingMask:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},heatmap:function(l,h){return{u_extrude_scale:new m.Uniform1f(l,h.u_extrude_scale),u_intensity:new m.Uniform1f(l,h.u_intensity),u_matrix:new m.UniformMatrix4f(l,h.u_matrix)}},heatmapTexture:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_world:new m.Uniform2f(l,h.u_world),u_image:new m.Uniform1i(l,h.u_image),u_color_ramp:new m.Uniform1i(l,h.u_color_ramp),u_opacity:new m.Uniform1f(l,h.u_opacity)}},hillshade:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_latrange:new m.Uniform2f(l,h.u_latrange),u_light:new m.Uniform2f(l,h.u_light),u_shadow:new m.UniformColor(l,h.u_shadow),u_highlight:new m.UniformColor(l,h.u_highlight),u_accent:new m.UniformColor(l,h.u_accent)}},hillshadePrepare:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_image:new m.Uniform1i(l,h.u_image),u_dimension:new m.Uniform2f(l,h.u_dimension),u_zoom:new m.Uniform1f(l,h.u_zoom),u_unpack:new m.Uniform4f(l,h.u_unpack)}},line:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels)}},lineGradient:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_image:new m.Uniform1i(l,h.u_image),u_image_height:new m.Uniform1f(l,h.u_image_height)}},linePattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_texsize:new m.Uniform2f(l,h.u_texsize),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_image:new m.Uniform1i(l,h.u_image),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_scale:new m.Uniform3f(l,h.u_scale),u_fade:new m.Uniform1f(l,h.u_fade)}},lineSDF:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_ratio:new m.Uniform1f(l,h.u_ratio),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_units_to_pixels:new m.Uniform2f(l,h.u_units_to_pixels),u_patternscale_a:new m.Uniform2f(l,h.u_patternscale_a),u_patternscale_b:new m.Uniform2f(l,h.u_patternscale_b),u_sdfgamma:new m.Uniform1f(l,h.u_sdfgamma),u_image:new m.Uniform1i(l,h.u_image),u_tex_y_a:new m.Uniform1f(l,h.u_tex_y_a),u_tex_y_b:new m.Uniform1f(l,h.u_tex_y_b),u_mix:new m.Uniform1f(l,h.u_mix)}},raster:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_tl_parent:new m.Uniform2f(l,h.u_tl_parent),u_scale_parent:new m.Uniform1f(l,h.u_scale_parent),u_buffer_scale:new m.Uniform1f(l,h.u_buffer_scale),u_fade_t:new m.Uniform1f(l,h.u_fade_t),u_opacity:new m.Uniform1f(l,h.u_opacity),u_image0:new m.Uniform1i(l,h.u_image0),u_image1:new m.Uniform1i(l,h.u_image1),u_brightness_low:new m.Uniform1f(l,h.u_brightness_low),u_brightness_high:new m.Uniform1f(l,h.u_brightness_high),u_saturation_factor:new m.Uniform1f(l,h.u_saturation_factor),u_contrast_factor:new m.Uniform1f(l,h.u_contrast_factor),u_spin_weights:new m.Uniform3f(l,h.u_spin_weights)}},symbolIcon:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texture:new m.Uniform1i(l,h.u_texture)}},symbolSDF:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texture:new m.Uniform1i(l,h.u_texture),u_gamma_scale:new m.Uniform1f(l,h.u_gamma_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_is_halo:new m.Uniform1i(l,h.u_is_halo)}},symbolTextAndIcon:function(l,h){return{u_is_size_zoom_constant:new m.Uniform1i(l,h.u_is_size_zoom_constant),u_is_size_feature_constant:new m.Uniform1i(l,h.u_is_size_feature_constant),u_size_t:new m.Uniform1f(l,h.u_size_t),u_size:new m.Uniform1f(l,h.u_size),u_camera_to_center_distance:new m.Uniform1f(l,h.u_camera_to_center_distance),u_pitch:new m.Uniform1f(l,h.u_pitch),u_rotate_symbol:new m.Uniform1i(l,h.u_rotate_symbol),u_aspect_ratio:new m.Uniform1f(l,h.u_aspect_ratio),u_fade_change:new m.Uniform1f(l,h.u_fade_change),u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_label_plane_matrix:new m.UniformMatrix4f(l,h.u_label_plane_matrix),u_coord_matrix:new m.UniformMatrix4f(l,h.u_coord_matrix),u_is_text:new m.Uniform1i(l,h.u_is_text),u_pitch_with_map:new m.Uniform1i(l,h.u_pitch_with_map),u_texsize:new m.Uniform2f(l,h.u_texsize),u_texsize_icon:new m.Uniform2f(l,h.u_texsize_icon),u_texture:new m.Uniform1i(l,h.u_texture),u_texture_icon:new m.Uniform1i(l,h.u_texture_icon),u_gamma_scale:new m.Uniform1f(l,h.u_gamma_scale),u_device_pixel_ratio:new m.Uniform1f(l,h.u_device_pixel_ratio),u_is_halo:new m.Uniform1i(l,h.u_is_halo)}},background:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_opacity:new m.Uniform1f(l,h.u_opacity),u_color:new m.UniformColor(l,h.u_color)}},backgroundPattern:function(l,h){return{u_matrix:new m.UniformMatrix4f(l,h.u_matrix),u_opacity:new m.Uniform1f(l,h.u_opacity),u_image:new m.Uniform1i(l,h.u_image),u_pattern_tl_a:new m.Uniform2f(l,h.u_pattern_tl_a),u_pattern_br_a:new m.Uniform2f(l,h.u_pattern_br_a),u_pattern_tl_b:new m.Uniform2f(l,h.u_pattern_tl_b),u_pattern_br_b:new m.Uniform2f(l,h.u_pattern_br_b),u_texsize:new m.Uniform2f(l,h.u_texsize),u_mix:new m.Uniform1f(l,h.u_mix),u_pattern_size_a:new m.Uniform2f(l,h.u_pattern_size_a),u_pattern_size_b:new m.Uniform2f(l,h.u_pattern_size_b),u_scale_a:new m.Uniform1f(l,h.u_scale_a),u_scale_b:new m.Uniform1f(l,h.u_scale_b),u_pixel_coord_upper:new m.Uniform2f(l,h.u_pixel_coord_upper),u_pixel_coord_lower:new m.Uniform2f(l,h.u_pixel_coord_lower),u_tile_units_to_pixels:new m.Uniform1f(l,h.u_tile_units_to_pixels)}}};function pl(l,h,c,d,E,w,P){for(var L=l.context,N=L.gl,q=l.useProgram("collisionBox"),ce=[],he=0,de=0,Re=0;Re0){var Wt=m.create(),jt=Ve;m.mul(Wt,we.placementInvProjMatrix,l.transform.glCoordMatrix),m.mul(Wt,Wt,we.placementViewportMatrix),ce.push({circleArray:yt,circleOffset:de,transform:jt,invTransform:Wt}),de=he+=yt.length/4}tt&&q.draw(L,N.LINES,ye.disabled,Pe.disabled,l.colorModeForRenderPass(),rt.disabled,ws(Ve,l.transform,We),c.id,tt.layoutVertexBuffer,tt.indexBuffer,tt.segments,null,l.transform.zoom,null,null,tt.collisionVertexBuffer)}}if(P&&ce.length){var Jt=l.useProgram("collisionCircle"),dr=new m.StructArrayLayout2f1f2i16;dr.resize(4*he),dr._trim();for(var Fr=0,kr=0,ln=ce;kr=0&&(Ie[we.associatedIconIndex]={shiftedAnchor:dr,angle:Fr})}else oo(we.numGlyphs,de)}if(ce){Re.clear();for(var ln=l.icon.placedSymbolArray,Nn=0;Nn0){var P=m.browser.now(),L=(P-l.timeAdded)/w,N=h?(P-h.timeAdded)/w:-1,q=c.getSource(),ce=E.coveringZoomLevel({tileSize:q.tileSize,roundZoom:q.roundZoom}),he=!h||Math.abs(h.tileID.overscaledZ-ce)>Math.abs(l.tileID.overscaledZ-ce),de=he&&l.refreshedUponExpiration?1:m.clamp(he?L:1-N,0,1);return l.refreshedUponExpiration&&L>=1&&(l.refreshedUponExpiration=!1),h?{opacity:1,mix:1-de}:{opacity:de,mix:0}}return{opacity:1,mix:0}}var Dl=new m.Color(1,0,0,1),Zf=new m.Color(0,1,0,1),jf=new m.Color(0,0,1,1),vl=new m.Color(1,0,1,1),Vf=new m.Color(0,1,1,1);function Eh(l,h,c,d){cc(l,0,h+c/2,l.transform.width,c,d)}function Fc(l,h,c,d){cc(l,h-c/2,0,c,l.transform.height,d)}function cc(l,h,c,d,E,w){var P=l.context,L=P.gl;L.enable(L.SCISSOR_TEST),L.scissor(h*m.browser.devicePixelRatio,c*m.browser.devicePixelRatio,d*m.browser.devicePixelRatio,E*m.browser.devicePixelRatio),P.clear({color:w}),L.disable(L.SCISSOR_TEST)}function tp(l,h,c){var d=l.context,E=d.gl,w=c.posMatrix,P=l.useProgram("debug"),L=ye.disabled,N=Pe.disabled,q=l.colorModeForRenderPass();d.activeTexture.set(E.TEXTURE0),l.emptyTexture.bind(E.LINEAR,E.CLAMP_TO_EDGE),P.draw(d,E.LINE_STRIP,L,N,q,rt.disabled,su(w,m.Color.red),"$debug",l.debugBuffer,l.tileBorderIndexBuffer,l.debugSegments);var ce=h.getTileByID(c.key).latestRawTileData,he=Math.floor((ce&&ce.byteLength||0)/1024),de=h.getTile(c).tileSize,Re=512/Math.min(de,512)*(c.overscaledZ/l.transform.zoom)*.5,Ie=c.canonical.toString();c.overscaledZ!==c.canonical.z&&(Ie+=" => "+c.overscaledZ),function(We,we){We.initDebugOverlayCanvas();var Ve=We.debugOverlayCanvas,tt=We.context.gl,yt=We.debugOverlayCanvas.getContext("2d");yt.clearRect(0,0,Ve.width,Ve.height),yt.shadowColor="white",yt.shadowBlur=2,yt.lineWidth=1.5,yt.strokeStyle="white",yt.textBaseline="top",yt.font="bold 36px Open Sans, sans-serif",yt.fillText(we,5,5),yt.strokeText(we,5,5),We.debugOverlayTexture.update(Ve),We.debugOverlayTexture.bind(tt.LINEAR,tt.CLAMP_TO_EDGE)}(l,Ie+" "+he+"kb"),P.draw(d,E.TRIANGLES,L,N,He.alphaBlended,rt.disabled,su(w,m.Color.transparent,Re),"$debug",l.debugBuffer,l.quadTriangleIndexBuffer,l.debugSegments)}var fc={symbol:function(l,h,c,d,E){if(l.renderPass==="translucent"){var w=Pe.disabled,P=l.colorModeForRenderPass();c.layout.get("text-variable-anchor")&&function(L,N,q,ce,he,de,Re){for(var Ie=N.transform,We=he==="map",we=de==="map",Ve=0,tt=L;Ve256&&this.clearStencil(),c.setColorMode(He.disabled),c.setDepthMode(ye.disabled);var E=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,P=h;w256&&this.clearStencil();var l=this.nextStencilID++,h=this.context.gl;return new Pe({func:h.NOTEQUAL,mask:255},l,255,h.KEEP,h.KEEP,h.REPLACE)},Va.prototype.stencilModeForClipping=function(l){var h=this.context.gl;return new Pe({func:h.EQUAL,mask:255},this._tileClippingMaskIDs[l.key],0,h.KEEP,h.KEEP,h.REPLACE)},Va.prototype.stencilConfigForOverlap=function(l){var h,c=this.context.gl,d=l.sort(function(N,q){return q.overscaledZ-N.overscaledZ}),E=d[d.length-1].overscaledZ,w=d[0].overscaledZ-E+1;if(w>1){this.currentStencilSource=void 0,this.nextStencilID+w>256&&this.clearStencil();for(var P={},L=0;L=0;this.currentLayer--){var yt=this.style._layers[d[this.currentLayer]],Wt=E[yt.source],jt=q[yt.source];this._renderTileClippingMasks(yt,jt),this.renderLayer(this,Wt,yt,jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?h.pop():null},Va.prototype.isPatternMissing=function(l){if(!l)return!1;if(!l.from||!l.to)return!0;var h=this.imageManager.getPattern(l.from.toString()),c=this.imageManager.getPattern(l.to.toString());return!h||!c},Va.prototype.useProgram=function(l,h){this.cache=this.cache||{};var c=""+l+(h?h.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[c]||(this.cache[c]=new Rc(this.context,l,As[l],h,Ll[l],this._showOverdrawInspector)),this.cache[c]},Va.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()},Va.prototype.setBaseState=function(){var l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)},Va.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=m.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Va.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var hc=function(l,h){this.points=l,this.planes=h};hc.fromInvProjectionMatrix=function(l,h,c){var d=Math.pow(2,c),E=[[-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(P){return m.transformMat4([],P,l)}).map(function(P){return m.scale$1([],P,1/P[3]/h*d)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(P){var L=m.sub([],E[P[0]],E[P[1]]),N=m.sub([],E[P[2]],E[P[1]]),q=m.normalize([],m.cross([],L,N)),ce=-m.dot(q,E[P[1]]);return q.concat(ce)});return new hc(E,w)};var ts=function(l,h){this.min=l,this.max=h,this.center=m.scale$2([],m.add([],this.min,this.max),.5)};ts.prototype.quadrant=function(l){for(var h=[l%2==0,l<2],c=m.clone$2(this.min),d=m.clone$2(this.max),E=0;E=0;if(w===0)return 0;w!==h.length&&(c=!1)}if(c)return 2;for(var L=0;L<3;L++){for(var N=Number.MAX_VALUE,q=-Number.MAX_VALUE,ce=0;cethis.max[L]-this.min[L])return 0}return 1};var Uu=function(l,h,c,d){if(l===void 0&&(l=0),h===void 0&&(h=0),c===void 0&&(c=0),d===void 0&&(d=0),isNaN(l)||l<0||isNaN(h)||h<0||isNaN(c)||c<0||isNaN(d)||d<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=h,this.left=c,this.right=d};Uu.prototype.interpolate=function(l,h,c){return h.top!=null&&l.top!=null&&(this.top=m.number(l.top,h.top,c)),h.bottom!=null&&l.bottom!=null&&(this.bottom=m.number(l.bottom,h.bottom,c)),h.left!=null&&l.left!=null&&(this.left=m.number(l.left,h.left,c)),h.right!=null&&l.right!=null&&(this.right=m.number(l.right,h.right,c)),this},Uu.prototype.getCenter=function(l,h){var c=m.clamp((this.left+l-this.right)/2,0,l),d=m.clamp((this.top+h-this.bottom)/2,0,h);return new m.Point(c,d)},Uu.prototype.equals=function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right},Uu.prototype.clone=function(){return new Uu(this.top,this.bottom,this.left,this.right)},Uu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var kn=function(l,h,c,d,E){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=E===void 0||E,this._minZoom=l||0,this._maxZoom=h||22,this._minPitch=c==null?0:c,this._maxPitch=d==null?60:d,this.setMaxBounds(),this.width=0,this.height=0,this._center=new m.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Uu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ma={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}};kn.prototype.clone=function(){var l=new kn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return l.tileSize=this.tileSize,l.latRange=this.latRange,l.width=this.width,l.height=this.height,l._center=this._center,l.zoom=this.zoom,l.angle=this.angle,l._fov=this._fov,l._pitch=this._pitch,l._unmodified=this._unmodified,l._edgeInsets=this._edgeInsets.clone(),l._calcMatrices(),l},Ma.minZoom.get=function(){return this._minZoom},Ma.minZoom.set=function(l){this._minZoom!==l&&(this._minZoom=l,this.zoom=Math.max(this.zoom,l))},Ma.maxZoom.get=function(){return this._maxZoom},Ma.maxZoom.set=function(l){this._maxZoom!==l&&(this._maxZoom=l,this.zoom=Math.min(this.zoom,l))},Ma.minPitch.get=function(){return this._minPitch},Ma.minPitch.set=function(l){this._minPitch!==l&&(this._minPitch=l,this.pitch=Math.max(this.pitch,l))},Ma.maxPitch.get=function(){return this._maxPitch},Ma.maxPitch.set=function(l){this._maxPitch!==l&&(this._maxPitch=l,this.pitch=Math.min(this.pitch,l))},Ma.renderWorldCopies.get=function(){return this._renderWorldCopies},Ma.renderWorldCopies.set=function(l){l===void 0?l=!0:l===null&&(l=!1),this._renderWorldCopies=l},Ma.worldSize.get=function(){return this.tileSize*this.scale},Ma.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ma.size.get=function(){return new m.Point(this.width,this.height)},Ma.bearing.get=function(){return-this.angle/Math.PI*180},Ma.bearing.set=function(l){var h=-m.wrap(l,-180,180)*Math.PI/180;this.angle!==h&&(this._unmodified=!1,this.angle=h,this._calcMatrices(),this.rotationMatrix=m.create$2(),m.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ma.pitch.get=function(){return this._pitch/Math.PI*180},Ma.pitch.set=function(l){var h=m.clamp(l,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==h&&(this._unmodified=!1,this._pitch=h,this._calcMatrices())},Ma.fov.get=function(){return this._fov/Math.PI*180},Ma.fov.set=function(l){l=Math.max(.01,Math.min(60,l)),this._fov!==l&&(this._unmodified=!1,this._fov=l/180*Math.PI,this._calcMatrices())},Ma.zoom.get=function(){return this._zoom},Ma.zoom.set=function(l){var h=Math.min(Math.max(l,this.minZoom),this.maxZoom);this._zoom!==h&&(this._unmodified=!1,this._zoom=h,this.scale=this.zoomScale(h),this.tileZoom=Math.floor(h),this.zoomFraction=h-this.tileZoom,this._constrain(),this._calcMatrices())},Ma.center.get=function(){return this._center},Ma.center.set=function(l){l.lat===this._center.lat&&l.lng===this._center.lng||(this._unmodified=!1,this._center=l,this._constrain(),this._calcMatrices())},Ma.padding.get=function(){return this._edgeInsets.toJSON()},Ma.padding.set=function(l){this._edgeInsets.equals(l)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,l,1),this._calcMatrices())},Ma.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},kn.prototype.isPaddingEqual=function(l){return this._edgeInsets.equals(l)},kn.prototype.interpolatePadding=function(l,h,c){this._unmodified=!1,this._edgeInsets.interpolate(l,h,c),this._constrain(),this._calcMatrices()},kn.prototype.coveringZoomLevel=function(l){var h=(l.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/l.tileSize));return Math.max(0,h)},kn.prototype.getVisibleUnwrappedCoordinates=function(l){var h=[new m.UnwrappedTileID(0,l)];if(this._renderWorldCopies)for(var c=this.pointCoordinate(new m.Point(0,0)),d=this.pointCoordinate(new m.Point(this.width,0)),E=this.pointCoordinate(new m.Point(this.width,this.height)),w=this.pointCoordinate(new m.Point(0,this.height)),P=Math.floor(Math.min(c.x,d.x,E.x,w.x)),L=Math.floor(Math.max(c.x,d.x,E.x,w.x)),N=P-1;N<=L+1;N++)N!==0&&h.push(new m.UnwrappedTileID(N,l));return h},kn.prototype.coveringTiles=function(l){var h=this.coveringZoomLevel(l),c=h;if(l.minzoom!==void 0&&hl.maxzoom&&(h=l.maxzoom);var d=m.MercatorCoordinate.fromLngLat(this.center),E=Math.pow(2,h),w=[E*d.x,E*d.y,0],P=hc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,h),L=l.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(L=h);var N=function(kr){return{aabb:new ts([kr*E,0,0],[(kr+1)*E,E,0]),zoom:0,x:0,y:0,wrap:kr,fullyVisible:!1}},q=[],ce=[],he=h,de=l.reparseOverscaled?c:h;if(this._renderWorldCopies)for(var Re=1;Re<=3;Re++)q.push(N(-Re)),q.push(N(Re));for(q.push(N(0));q.length>0;){var Ie=q.pop(),We=Ie.x,we=Ie.y,Ve=Ie.fullyVisible;if(!Ve){var tt=Ie.aabb.intersects(P);if(tt===0)continue;Ve=tt===2}var yt=Ie.aabb.distanceX(w),Wt=Ie.aabb.distanceY(w),jt=Math.max(Math.abs(yt),Math.abs(Wt));if(Ie.zoom===he||jt>3+(1<=L)ce.push({tileID:new m.OverscaledTileID(Ie.zoom===he?de:Ie.zoom,Ie.wrap,Ie.zoom,We,we),distanceSq:m.sqrLen([w[0]-.5-We,w[1]-.5-we])});else for(var Jt=0;Jt<4;Jt++){var dr=(We<<1)+Jt%2,Fr=(we<<1)+(Jt>>1);q.push({aabb:Ie.aabb.quadrant(Jt),zoom:Ie.zoom+1,x:dr,y:Fr,wrap:Ie.wrap,fullyVisible:Ve})}}return ce.sort(function(kr,ln){return kr.distanceSq-ln.distanceSq}).map(function(kr){return kr.tileID})},kn.prototype.resize=function(l,h){this.width=l,this.height=h,this.pixelsToGLUnits=[2/l,-2/h],this._constrain(),this._calcMatrices()},Ma.unmodified.get=function(){return this._unmodified},kn.prototype.zoomScale=function(l){return Math.pow(2,l)},kn.prototype.scaleZoom=function(l){return Math.log(l)/Math.LN2},kn.prototype.project=function(l){var h=m.clamp(l.lat,-this.maxValidLatitude,this.maxValidLatitude);return new m.Point(m.mercatorXfromLng(l.lng)*this.worldSize,m.mercatorYfromLat(h)*this.worldSize)},kn.prototype.unproject=function(l){return new m.MercatorCoordinate(l.x/this.worldSize,l.y/this.worldSize).toLngLat()},Ma.point.get=function(){return this.project(this.center)},kn.prototype.setLocationAtPoint=function(l,h){var c=this.pointCoordinate(h),d=this.pointCoordinate(this.centerPoint),E=this.locationCoordinate(l),w=new m.MercatorCoordinate(E.x-(c.x-d.x),E.y-(c.y-d.y));this.center=this.coordinateLocation(w),this._renderWorldCopies&&(this.center=this.center.wrap())},kn.prototype.locationPoint=function(l){return this.coordinatePoint(this.locationCoordinate(l))},kn.prototype.pointLocation=function(l){return this.coordinateLocation(this.pointCoordinate(l))},kn.prototype.locationCoordinate=function(l){return m.MercatorCoordinate.fromLngLat(l)},kn.prototype.coordinateLocation=function(l){return l.toLngLat()},kn.prototype.pointCoordinate=function(l){var h=[l.x,l.y,0,1],c=[l.x,l.y,1,1];m.transformMat4(h,h,this.pixelMatrixInverse),m.transformMat4(c,c,this.pixelMatrixInverse);var d=h[3],E=c[3],w=h[1]/d,P=c[1]/E,L=h[2]/d,N=c[2]/E,q=L===N?0:(0-L)/(N-L);return new m.MercatorCoordinate(m.number(h[0]/d,c[0]/E,q)/this.worldSize,m.number(w,P,q)/this.worldSize)},kn.prototype.coordinatePoint=function(l){var h=[l.x*this.worldSize,l.y*this.worldSize,0,1];return m.transformMat4(h,h,this.pixelMatrix),new m.Point(h[0]/h[3],h[1]/h[3])},kn.prototype.getBounds=function(){return new m.LngLatBounds().extend(this.pointLocation(new m.Point(0,0))).extend(this.pointLocation(new m.Point(this.width,0))).extend(this.pointLocation(new m.Point(this.width,this.height))).extend(this.pointLocation(new m.Point(0,this.height)))},kn.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new m.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},kn.prototype.setMaxBounds=function(l){l?(this.lngRange=[l.getWest(),l.getEast()],this.latRange=[l.getSouth(),l.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},kn.prototype.calculatePosMatrix=function(l,h){h===void 0&&(h=!1);var c=l.key,d=h?this._alignedPosMatrixCache:this._posMatrixCache;if(d[c])return d[c];var E=l.canonical,w=this.worldSize/this.zoomScale(E.z),P=E.x+Math.pow(2,E.z)*l.wrap,L=m.identity(new Float64Array(16));return m.translate(L,L,[P*w,E.y*w,0]),m.scale(L,L,[w/m.EXTENT,w/m.EXTENT,1]),m.multiply(L,h?this.alignedProjMatrix:this.projMatrix,L),d[c]=new Float32Array(L),d[c]},kn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},kn.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var l,h,c,d,E=-90,w=90,P=-180,L=180,N=this.size,q=this._unmodified;if(this.latRange){var ce=this.latRange;E=m.mercatorYfromLat(ce[1])*this.worldSize,l=(w=m.mercatorYfromLat(ce[0])*this.worldSize)-Ew&&(d=w-We)}if(this.lngRange){var we=de.x,Ve=N.x/2;we-VeL&&(c=L-Ve)}c===void 0&&d===void 0||(this.center=this.unproject(new m.Point(c!==void 0?c:de.x,d!==void 0?d:de.y))),this._unmodified=q,this._constraining=!1}},kn.prototype._calcMatrices=function(){if(this.height){var l=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var h=Math.PI/2+this._pitch,c=this._fov*(.5+l.y/this.height),d=Math.sin(c)*this.cameraToCenterDistance/Math.sin(m.clamp(Math.PI-h-c,.01,Math.PI-.01)),E=this.point,w=E.x,P=E.y,L=1.01*(Math.cos(Math.PI/2-this._pitch)*d+this.cameraToCenterDistance),N=this.height/50,q=new Float64Array(16);m.perspective(q,this._fov,this.width/this.height,N,L),q[8]=2*-l.x/this.width,q[9]=2*l.y/this.height,m.scale(q,q,[1,-1,1]),m.translate(q,q,[0,0,-this.cameraToCenterDistance]),m.rotateX(q,q,this._pitch),m.rotateZ(q,q,this.angle),m.translate(q,q,[-w,-P,0]),this.mercatorMatrix=m.scale([],q,[this.worldSize,this.worldSize,this.worldSize]),m.scale(q,q,[1,1,m.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=q,this.invProjMatrix=m.invert([],this.projMatrix);var ce=this.width%2/2,he=this.height%2/2,de=Math.cos(this.angle),Re=Math.sin(this.angle),Ie=w-Math.round(w)+de*ce+Re*he,We=P-Math.round(P)+de*he+Re*ce,we=new Float64Array(q);if(m.translate(we,we,[Ie>.5?Ie-1:Ie,We>.5?We-1:We,0]),this.alignedProjMatrix=we,q=m.create(),m.scale(q,q,[this.width/2,-this.height/2,1]),m.translate(q,q,[1,-1,0]),this.labelPlaneMatrix=q,q=m.create(),m.scale(q,q,[1,-1,1]),m.translate(q,q,[-1,-1,0]),m.scale(q,q,[2/this.width,2/this.height,1]),this.glCoordMatrix=q,this.pixelMatrix=m.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(q=m.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=q,this._posMatrixCache={},this._alignedPosMatrixCache={}}},kn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var l=this.pointCoordinate(new m.Point(0,0)),h=[l.x*this.worldSize,l.y*this.worldSize,0,1];return m.transformMat4(h,h,this.pixelMatrix)[3]/this.cameraToCenterDistance},kn.prototype.getCameraPoint=function(){var l=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new m.Point(0,l))},kn.prototype.getCameraQueryGeometry=function(l){var h=this.getCameraPoint();if(l.length===1)return[l[0],h];for(var c=h.x,d=h.y,E=h.x,w=h.y,P=0,L=l;P=3&&!l.some(function(c){return isNaN(c)})){var h=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(l[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+l[2],+l[1]],zoom:+l[0],bearing:h,pitch:+(l[4]||0)}),!0}return!1},Ws.prototype._updateHashUnthrottled=function(){var l=m.window.location.href.replace(/(#.+)?$/,this.getHashString());try{m.window.history.replaceState(m.window.history.state,null,l)}catch(h){}};var Bc={linearity:.3,easing:m.bezier(0,0,.3,1)},Zu=m.extend({deceleration:2500,maxSpeed:1400},Bc),Nc=m.extend({deceleration:20,maxSpeed:1400},Bc),rp=m.extend({deceleration:1e3,maxSpeed:360},Bc),lo=m.extend({deceleration:1e3,maxSpeed:90},Bc),ju=function(l){this._map=l,this.clear()};function Su(l,h){(!l.duration||l.duration0&&h-l[0].time>160;)l.shift()},ju.prototype._onMoveEnd=function(l){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var h={zoom:0,bearing:0,pitch:0,pan:new m.Point(0,0),pinchAround:void 0,around:void 0},c=0,d=this._inertiaBuffer;c=this._clickTolerance||this._map.fire(new Do(l.type,this._map,l))},ho.prototype.dblclick=function(l){return this._firePreventable(new Do(l.type,this._map,l))},ho.prototype.mouseover=function(l){this._map.fire(new Do(l.type,this._map,l))},ho.prototype.mouseout=function(l){this._map.fire(new Do(l.type,this._map,l))},ho.prototype.touchstart=function(l){return this._firePreventable(new Fl(l.type,this._map,l))},ho.prototype.touchmove=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype.touchend=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype.touchcancel=function(l){this._map.fire(new Fl(l.type,this._map,l))},ho.prototype._firePreventable=function(l){if(this._map.fire(l),l.defaultPrevented)return{}},ho.prototype.isEnabled=function(){return!0},ho.prototype.isActive=function(){return!1},ho.prototype.enable=function(){},ho.prototype.disable=function(){};var yn=function(l){this._map=l};yn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},yn.prototype.mousemove=function(l){this._map.fire(new Do(l.type,this._map,l))},yn.prototype.mousedown=function(){this._delayContextMenu=!0},yn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Do("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},yn.prototype.contextmenu=function(l){this._delayContextMenu?this._contextMenuEvent=l:this._map.fire(new Do(l.type,this._map,l)),this._map.listens("contextmenu")&&l.preventDefault()},yn.prototype.isEnabled=function(){return!0},yn.prototype.isActive=function(){return!1},yn.prototype.enable=function(){},yn.prototype.disable=function(){};var qa=function(l,h){this._map=l,this._el=l.getCanvasContainer(),this._container=l.getContainer(),this._clickTolerance=h.clickTolerance||1};function nl(l,h){for(var c={},d=0;dthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=l.timeStamp),c.length===this.numTouches&&(this.centroid=function(d){for(var E=new m.Point(0,0),w=0,P=d;w30)&&(this.aborted=!0)}}},pc.prototype.touchend=function(l,h,c){if((!this.centroid||l.timeStamp-this.startTime>500)&&(this.aborted=!0),c.length===0){var d=!this.aborted&&this.centroid;if(this.reset(),d)return d}};var uu=function(l){this.singleTap=new pc(l),this.numTaps=l.numTaps,this.reset()};uu.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},uu.prototype.touchstart=function(l,h,c){this.singleTap.touchstart(l,h,c)},uu.prototype.touchmove=function(l,h,c){this.singleTap.touchmove(l,h,c)},uu.prototype.touchend=function(l,h,c){var d=this.singleTap.touchend(l,h,c);if(d){var E=l.timeStamp-this.lastTime<500,w=!this.lastTap||this.lastTap.dist(d)<30;if(E&&w||this.reset(),this.count++,this.lastTime=l.timeStamp,this.lastTap=d,this.count===this.numTaps)return this.reset(),d}};var na=function(){this._zoomIn=new uu({numTouches:1,numTaps:2}),this._zoomOut=new uu({numTouches:2,numTaps:1}),this.reset()};na.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},na.prototype.touchstart=function(l,h,c){this._zoomIn.touchstart(l,h,c),this._zoomOut.touchstart(l,h,c)},na.prototype.touchmove=function(l,h,c){this._zoomIn.touchmove(l,h,c),this._zoomOut.touchmove(l,h,c)},na.prototype.touchend=function(l,h,c){var d=this,E=this._zoomIn.touchend(l,h,c),w=this._zoomOut.touchend(l,h,c);return E?(this._active=!0,l.preventDefault(),setTimeout(function(){return d.reset()},0),{cameraAnimation:function(P){return P.easeTo({duration:300,zoom:P.getZoom()+1,around:P.unproject(E)},{originalEvent:l})}}):w?(this._active=!0,l.preventDefault(),setTimeout(function(){return d.reset()},0),{cameraAnimation:function(P){return P.easeTo({duration:300,zoom:P.getZoom()-1,around:P.unproject(w)},{originalEvent:l})}}):void 0},na.prototype.touchcancel=function(){this.reset()},na.prototype.enable=function(){this._enabled=!0},na.prototype.disable=function(){this._enabled=!1,this.reset()},na.prototype.isEnabled=function(){return this._enabled},na.prototype.isActive=function(){return this._active};var hf={0:1,2:2},Kr=function(l){this.reset(),this._clickTolerance=l.clickTolerance||1};Kr.prototype.blur=function(){this.reset()},Kr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Kr.prototype._correctButton=function(l,h){return!1},Kr.prototype._move=function(l,h){return{}},Kr.prototype.mousedown=function(l,h){if(!this._lastPoint){var c=Z.mouseButton(l);this._correctButton(l,c)&&(this._lastPoint=h,this._eventButton=c)}},Kr.prototype.mousemoveWindow=function(l,h){var c=this._lastPoint;if(c){if(l.preventDefault(),function(d,E){var w=hf[E];return d.buttons===void 0||(d.buttons&w)!==w}(l,this._eventButton))this.reset();else if(this._moved||!(h.dist(c)0&&(this._active=!0);var d=nl(c,h),E=new m.Point(0,0),w=new m.Point(0,0),P=0;for(var L in d){var N=d[L],q=this._touches[L];q&&(E._add(N),w._add(N.sub(q)),P++,d[L]=N)}if(this._touches=d,!(PMath.abs(l.x)}var Gf=function(l){function h(){l.apply(this,arguments)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.reset=function(){l.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},h.prototype._start=function(c){this._lastPoints=c,Bl(c[0].sub(c[1]))&&(this._valid=!1)},h.prototype._move=function(c,d,E){var w=c[0].sub(this._lastPoints[0]),P=c[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(w,P,E.timeStamp),this._valid)return this._lastPoints=c,this._active=!0,{pitchDelta:(w.y+P.y)/2*-.5}},h.prototype.gestureBeginsVertically=function(c,d,E){if(this._valid!==void 0)return this._valid;var w=c.mag()>=2,P=d.mag()>=2;if(w||P){if(!w||!P)return this._firstMove===void 0&&(this._firstMove=E),E-this._firstMove<100&&void 0;var L=c.y>0==d.y>0;return Bl(c)&&Bl(d)&&L}},h}(ms),Hf={panStep:100,bearingStep:15,pitchStep:10},Ds=function(){var l=Hf;this._panStep=l.panStep,this._bearingStep=l.bearingStep,this._pitchStep=l.pitchStep,this._rotationDisabled=!1};function Fs(l){return l*(2-l)}Ds.prototype.blur=function(){this.reset()},Ds.prototype.reset=function(){this._active=!1},Ds.prototype.keydown=function(l){var h=this;if(!(l.altKey||l.ctrlKey||l.metaKey)){var c=0,d=0,E=0,w=0,P=0;switch(l.keyCode){case 61:case 107:case 171:case 187:c=1;break;case 189:case 109:case 173:c=-1;break;case 37:l.shiftKey?d=-1:(l.preventDefault(),w=-1);break;case 39:l.shiftKey?d=1:(l.preventDefault(),w=1);break;case 38:l.shiftKey?E=1:(l.preventDefault(),P=-1);break;case 40:l.shiftKey?E=-1:(l.preventDefault(),P=1);break;default:return}return this._rotationDisabled&&(d=0,E=0),{cameraAnimation:function(L){var N=L.getZoom();L.easeTo({duration:300,easeId:"keyboardHandler",easing:Fs,zoom:c?Math.round(N)+c*(l.shiftKey?2:1):N,bearing:L.getBearing()+d*h._bearingStep,pitch:L.getPitch()+E*h._pitchStep,offset:[-w*h._panStep,-P*h._panStep],center:L.getCenter()},{originalEvent:l})}}}},Ds.prototype.enable=function(){this._enabled=!0},Ds.prototype.disable=function(){this._enabled=!1,this.reset()},Ds.prototype.isEnabled=function(){return this._enabled},Ds.prototype.isActive=function(){return this._active},Ds.prototype.disableRotation=function(){this._rotationDisabled=!0},Ds.prototype.enableRotation=function(){this._rotationDisabled=!1};var Fi=function(l,h){this._map=l,this._el=l.getCanvasContainer(),this._handler=h,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,m.bindAll(["_onTimeout"],this)};Fi.prototype.setZoomRate=function(l){this._defaultZoomRate=l},Fi.prototype.setWheelZoomRate=function(l){this._wheelZoomRate=l},Fi.prototype.isEnabled=function(){return!!this._enabled},Fi.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Fi.prototype.isZooming=function(){return!!this._zooming},Fi.prototype.enable=function(l){this.isEnabled()||(this._enabled=!0,this._aroundCenter=l&&l.around==="center")},Fi.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fi.prototype.wheel=function(l){if(this.isEnabled()){var h=l.deltaMode===m.window.WheelEvent.DOM_DELTA_LINE?40*l.deltaY:l.deltaY,c=m.browser.now(),d=c-(this._lastWheelEventTime||0);this._lastWheelEventTime=c,h!==0&&h%4.000244140625==0?this._type="wheel":h!==0&&Math.abs(h)<4?this._type="trackpad":d>400?(this._type=null,this._lastValue=h,this._timeout=setTimeout(this._onTimeout,40,l)):this._type||(this._type=Math.abs(d*h)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,h+=this._lastValue)),l.shiftKey&&h&&(h/=4),this._type&&(this._lastWheelEvent=l,this._delta-=h,this._active||this._start(l)),l.preventDefault()}},Fi.prototype._onTimeout=function(l){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(l)},Fi.prototype._start=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 h=Z.mousePos(this._el,l);this._around=m.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(h)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Fi.prototype.renderFrame=function(){var l=this;if(this._frameId&&(this._frameId=null,this.isActive())){var h=this._map.transform;if(this._delta!==0){var c=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,d=2/(1+Math.exp(-Math.abs(this._delta*c)));this._delta<0&&d!==0&&(d=1/d);var E=typeof this._targetZoom=="number"?h.zoomScale(this._targetZoom):h.scale;this._targetZoom=Math.min(h.maxZoom,Math.max(h.minZoom,h.scaleZoom(E*d))),this._type==="wheel"&&(this._startZoom=h.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,P=typeof this._targetZoom=="number"?this._targetZoom:h.zoom,L=this._startZoom,N=this._easing,q=!1;if(this._type==="wheel"&&L&&N){var ce=Math.min((m.browser.now()-this._lastWheelEventTime)/200,1),he=N(ce);w=m.number(L,P,he),ce<1?this._frameId||(this._frameId=!0):q=!0}else w=P,q=!0;return this._active=!0,q&&(this._active=!1,this._finishTimeout=setTimeout(function(){l._zooming=!1,l._handler._triggerRenderFrame(),delete l._targetZoom,delete l._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!q,zoomDelta:w-h.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Fi.prototype._smoothOutEasing=function(l){var h=m.ease;if(this._prevEase){var c=this._prevEase,d=(m.browser.now()-c.start)/c.duration,E=c.easing(d+.01)-c.easing(d),w=.27/Math.sqrt(E*E+1e-4)*.01,P=Math.sqrt(.0729-w*w);h=m.bezier(w,P,.25,1)}return this._prevEase={start:m.browser.now(),duration:l,easing:h},h},Fi.prototype.blur=function(){this.reset()},Fi.prototype.reset=function(){this._active=!1};var Au=function(l,h){this._clickZoom=l,this._tapZoom=h};Au.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Au.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Au.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Au.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var wu=function(){this.reset()};wu.prototype.reset=function(){this._active=!1},wu.prototype.blur=function(){this.reset()},wu.prototype.dblclick=function(l,h){return l.preventDefault(),{cameraAnimation:function(c){c.easeTo({duration:300,zoom:c.getZoom()+(l.shiftKey?-1:1),around:c.unproject(h)},{originalEvent:l})}}},wu.prototype.enable=function(){this._enabled=!0},wu.prototype.disable=function(){this._enabled=!1,this.reset()},wu.prototype.isEnabled=function(){return this._enabled},wu.prototype.isActive=function(){return this._active};var rs=function(){this._tap=new uu({numTouches:1,numTaps:1}),this.reset()};rs.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},rs.prototype.touchstart=function(l,h,c){this._swipePoint||(this._tapTime&&l.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?c.length>0&&(this._swipePoint=h[0],this._swipeTouch=c[0].identifier):this._tap.touchstart(l,h,c))},rs.prototype.touchmove=function(l,h,c){if(this._tapTime){if(this._swipePoint){if(c[0].identifier!==this._swipeTouch)return;var d=h[0],E=d.y-this._swipePoint.y;return this._swipePoint=d,l.preventDefault(),this._active=!0,{zoomDelta:E/128}}}else this._tap.touchmove(l,h,c)},rs.prototype.touchend=function(l,h,c){this._tapTime?this._swipePoint&&c.length===0&&this.reset():this._tap.touchend(l,h,c)&&(this._tapTime=l.timeStamp)},rs.prototype.touchcancel=function(){this.reset()},rs.prototype.enable=function(){this._enabled=!0},rs.prototype.disable=function(){this._enabled=!1,this.reset()},rs.prototype.isEnabled=function(){return this._enabled},rs.prototype.isActive=function(){return this._active};var Gu=function(l,h,c){this._el=l,this._mousePan=h,this._touchPan=c};Gu.prototype.enable=function(l){this._inertiaOptions=l||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Gu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Gu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Gu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Tu=function(l,h,c){this._pitchWithRotate=l.pitchWithRotate,this._mouseRotate=h,this._mousePitch=c};Tu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Tu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Tu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Tu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Xs=function(l,h,c,d){this._el=l,this._touchZoom=h,this._touchRotate=c,this._tapDragZoom=d,this._rotationDisabled=!1,this._enabled=!0};Xs.prototype.enable=function(l){this._touchZoom.enable(l),this._rotationDisabled||this._touchRotate.enable(l),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Xs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Xs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Xs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Xs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Xs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var gs=function(l){return l.zoom||l.drag||l.pitch||l.rotate},Mu=function(l){function h(){l.apply(this,arguments)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h}(m.Event);function Rn(l){return l.panDelta&&l.panDelta.mag()||l.zoomDelta||l.bearingDelta||l.pitchDelta}var Cn=function(l,h){this._map=l,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ju(l),this._bearingSnap=h.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(h),m.bindAll(["handleEvent","handleWindowEvent"],this);var c=this._el;this._listeners=[[c,"touchstart",{passive:!0}],[c,"touchmove",{passive:!1}],[c,"touchend",void 0],[c,"touchcancel",void 0],[c,"mousedown",void 0],[c,"mousemove",void 0],[c,"mouseup",void 0],[m.window.document,"mousemove",{capture:!0}],[m.window.document,"mouseup",void 0],[c,"mouseover",void 0],[c,"mouseout",void 0],[c,"dblclick",void 0],[c,"click",void 0],[c,"keydown",{capture:!1}],[c,"keyup",void 0],[c,"wheel",{passive:!1}],[c,"contextmenu",void 0],[m.window,"blur",void 0]];for(var d=0,E=this._listeners;dP?Math.min(2,Jt):Math.max(.5,Jt),Nn=Math.pow(ln,1-Fr),zn=w.unproject(Wt.add(jt.mult(Fr*Nn)).mult(kr));w.setLocationAtPoint(w.renderWorldCopies?zn.wrap():zn,We)}E._fireMoveEvents(d)},function(Fr){E._afterEase(d,Fr)},c),this},h.prototype._prepareEase=function(c,d,E){E===void 0&&(E={}),this._moving=!0,d||E.moving||this.fire(new m.Event("movestart",c)),this._zooming&&!E.zooming&&this.fire(new m.Event("zoomstart",c)),this._rotating&&!E.rotating&&this.fire(new m.Event("rotatestart",c)),this._pitching&&!E.pitching&&this.fire(new m.Event("pitchstart",c))},h.prototype._fireMoveEvents=function(c){this.fire(new m.Event("move",c)),this._zooming&&this.fire(new m.Event("zoom",c)),this._rotating&&this.fire(new m.Event("rotate",c)),this._pitching&&this.fire(new m.Event("pitch",c))},h.prototype._afterEase=function(c,d){if(!this._easeId||!d||this._easeId!==d){delete this._easeId;var E=this._zooming,w=this._rotating,P=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,E&&this.fire(new m.Event("zoomend",c)),w&&this.fire(new m.Event("rotateend",c)),P&&this.fire(new m.Event("pitchend",c)),this.fire(new m.Event("moveend",c))}},h.prototype.flyTo=function(c,d){var E=this;if(!c.essential&&m.browser.prefersReducedMotion){var w=m.pick(c,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,d)}this.stop(),c=m.extend({offset:[0,0],speed:1.2,curve:1.42,easing:m.ease},c);var P=this.transform,L=this.getZoom(),N=this.getBearing(),q=this.getPitch(),ce=this.getPadding(),he="zoom"in c?m.clamp(+c.zoom,P.minZoom,P.maxZoom):L,de="bearing"in c?this._normalizeBearing(c.bearing,N):N,Re="pitch"in c?+c.pitch:q,Ie="padding"in c?c.padding:P.padding,We=P.zoomScale(he-L),we=m.Point.convert(c.offset),Ve=P.centerPoint.add(we),tt=P.pointLocation(Ve),yt=m.LngLat.convert(c.center||tt);this._normalizeCenter(yt);var Wt=P.project(tt),jt=P.project(yt).sub(Wt),Jt=c.curve,dr=Math.max(P.width,P.height),Fr=dr/We,kr=jt.mag();if("minZoom"in c){var ln=m.clamp(Math.min(c.minZoom,L,he),P.minZoom,P.maxZoom),Nn=dr/P.zoomScale(ln-L);Jt=Math.sqrt(Nn/kr*2)}var zn=Jt*Jt;function Mn(ri){var Kn=(Fr*Fr-dr*dr+(ri?-1:1)*zn*zn*kr*kr)/(2*(ri?Fr:dr)*zn*kr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Bi(ri){return(Math.exp(ri)-Math.exp(-ri))/2}function Qr(ri){return(Math.exp(ri)+Math.exp(-ri))/2}var li=Mn(0),fi=function(ri){return Qr(li)/Qr(li+Jt*ri)},ii=function(ri){return dr*((Qr(li)*(Bi(Kn=li+Jt*ri)/Qr(Kn))-Bi(li))/zn)/kr;var Kn},Xn=(Mn(1)-li)/Jt;if(Math.abs(kr)<1e-6||!isFinite(Xn)){if(Math.abs(dr-Fr)<1e-6)return this.easeTo(c,d);var xi=Frc.maxDuration&&(c.duration=0),this._zooming=!0,this._rotating=N!==de,this._pitching=Re!==q,this._padding=!P.isPaddingEqual(Ie),this._prepareEase(d,!1),this._ease(function(ri){var Kn=ri*Xn,po=1/fi(Kn);P.zoom=ri===1?he:L+P.scaleZoom(po),E._rotating&&(P.bearing=m.number(N,de,ri)),E._pitching&&(P.pitch=m.number(q,Re,ri)),E._padding&&(P.interpolatePadding(ce,Ie,ri),Ve=P.centerPoint.add(we));var Ka=ri===1?yt:P.unproject(Wt.add(jt.mult(ii(Kn))).mult(po));P.setLocationAtPoint(P.renderWorldCopies?Ka.wrap():Ka,Ve),E._fireMoveEvents(d)},function(){return E._afterEase(d)},c),this},h.prototype.isEasing=function(){return!!this._easeFrameId},h.prototype.stop=function(){return this._stop()},h.prototype._stop=function(c,d){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,d)}if(!c){var w=this.handlers;w&&w.stop(!1)}return this},h.prototype._ease=function(c,d,E){E.animate===!1||E.duration===0?(c(1),d()):(this._easeStart=m.browser.now(),this._easeOptions=E,this._onEaseFrame=c,this._onEaseEnd=d,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},h.prototype._renderFrameCallback=function(){var c=Math.min((m.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(c)),c<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},h.prototype._normalizeBearing=function(c,d){c=m.wrap(c,-180,180);var E=Math.abs(c-d);return Math.abs(c-360-d)180?-360:E<-180?360:0}},h}(m.Evented),ys=function(l){l===void 0&&(l={}),this.options=l,m.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ys.prototype.getDefaultPosition=function(){return"bottom-right"},ys.prototype.onAdd=function(l){var h=this.options&&this.options.compact;return this._map=l,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=Z.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Z.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),h&&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),h===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ys.prototype.onRemove=function(){Z.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},ys.prototype._setElementTitle=function(l,h){var c=this._map._getUIString("AttributionControl."+h);l.title=c,l.setAttribute("aria-label",c)},ys.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"))},ys.prototype._updateEditLink=function(){var l=this._editLink;l||(l=this._editLink=this._container.querySelector(".mapbox-improve-map"));var h=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||m.config.ACCESS_TOKEN}];if(l){var c=h.reduce(function(d,E,w){return E.value&&(d+=E.key+"="+E.value+(w=0)return!1;return!0})).join(" | ");P!==this._attribHTML&&(this._attribHTML=P,l.length?(this._innerContainer.innerHTML=P,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ys.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var lu=function(){m.bindAll(["_updateLogo"],this),m.bindAll(["_updateCompact"],this)};lu.prototype.onAdd=function(l){this._map=l,this._container=Z.create("div","mapboxgl-ctrl");var h=Z.create("a","mapboxgl-ctrl-logo");return h.target="_blank",h.rel="noopener nofollow",h.href="https://www.mapbox.com/",h.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),h.setAttribute("rel","noopener nofollow"),this._container.appendChild(h),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},lu.prototype.onRemove=function(){Z.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},lu.prototype.getDefaultPosition=function(){return"bottom-left"},lu.prototype._updateLogo=function(l){l&&l.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},lu.prototype._logoRequired=function(){if(this._map.style){var l=this._map.style.sourceCaches;for(var h in l)if(l[h].getSource().mapbox_logo)return!0;return!1}},lu.prototype._updateCompact=function(){var l=this._container.children;if(l.length){var h=l[0];this._map.getCanvasContainer().offsetWidth<250?h.classList.add("mapboxgl-compact"):h.classList.remove("mapboxgl-compact")}};var ns=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};ns.prototype.add=function(l){var h=++this._id;return this._queue.push({callback:l,id:h,cancelled:!1}),h},ns.prototype.remove=function(l){for(var h=this._currentlyRunning,c=0,d=h?this._queue.concat(h):this._queue;cd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(d.maxPitch!=null&&d.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var w=new kn(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(l.call(this,w,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new ns,this._controls=[],this._mapId=m.uniqueId(),this._locale=m.extend({},Go,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new m.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=m.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else{if(!(d.container instanceof vf))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=d.container}if(d.maxBounds&&this.setMaxBounds(d.maxBounds),m.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 E._update(!1)}),this.on("moveend",function(){return E._update(!1)}),this.on("zoom",function(){return E._update(!0)}),m.window!==void 0&&(m.window.addEventListener("online",this._onWindowOnline,!1),m.window.addEventListener("resize",this._onWindowResize,!1),m.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Cn(this,d),this._hash=d.hash&&new Ws(typeof d.hash=="string"&&d.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,m.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new ys({customAttribution:d.customAttribution})),this.addControl(new lu,d.logoPosition),this.on("style.load",function(){E.transform.unmodified&&E.jumpTo(E.style.stylesheet)}),this.on("data",function(P){E._update(P.dataType==="style"),E.fire(new m.Event(P.dataType+"data",P))}),this.on("dataloading",function(P){E.fire(new m.Event(P.dataType+"dataloading",P))})}l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h;var c={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return h.prototype._getMapId=function(){return this._mapId},h.prototype.addControl=function(d,E){if(E===void 0&&(E=d.getDefaultPosition?d.getDefaultPosition():"top-right"),!d||!d.onAdd)return this.fire(new m.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var w=d.onAdd(this);this._controls.push(d);var P=this._controlPositions[E];return E.indexOf("bottom")!==-1?P.insertBefore(w,P.firstChild):P.appendChild(w),this},h.prototype.removeControl=function(d){if(!d||!d.onRemove)return this.fire(new m.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var E=this._controls.indexOf(d);return E>-1&&this._controls.splice(E,1),d.onRemove(this),this},h.prototype.hasControl=function(d){return this._controls.indexOf(d)>-1},h.prototype.resize=function(d){var E=this._containerDimensions(),w=E[0],P=E[1];if(w===this.transform.width&&P===this.transform.height)return this;this._resizeCanvas(w,P),this.transform.resize(w,P),this.painter.resize(w,P);var L=!this._moving;return L&&this.fire(new m.Event("movestart",d)).fire(new m.Event("move",d)),this.fire(new m.Event("resize",d)),L&&this.fire(new m.Event("moveend",d)),this},h.prototype.getBounds=function(){return this.transform.getBounds()},h.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},h.prototype.setMaxBounds=function(d){return this.transform.setMaxBounds(m.LngLatBounds.convert(d)),this._update()},h.prototype.setMinZoom=function(d){if((d=d==null?-2:d)>=-2&&d<=this.transform.maxZoom)return this.transform.minZoom=d,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=d,this._update(),this.getZoom()>d&&this.setZoom(d),this;throw new Error("maxZoom must be greater than the current minZoom")},h.prototype.getMaxZoom=function(){return this.transform.maxZoom},h.prototype.setMinPitch=function(d){if((d=d==null?0:d)<0)throw new Error("minPitch must be greater than or equal to 0");if(d>=0&&d<=this.transform.maxPitch)return this.transform.minPitch=d,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(d>=this.transform.minPitch)return this.transform.maxPitch=d,this._update(),this.getPitch()>d&&this.setPitch(d),this;throw new Error("maxPitch must be greater than the current minPitch")},h.prototype.getMaxPitch=function(){return this.transform.maxPitch},h.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},h.prototype.setRenderWorldCopies=function(d){return this.transform.renderWorldCopies=d,this._update()},h.prototype.project=function(d){return this.transform.locationPoint(m.LngLat.convert(d))},h.prototype.unproject=function(d){return this.transform.pointLocation(m.Point.convert(d))},h.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},h.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},h.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},h.prototype._createDelegatedListener=function(d,E,w){var P,L=this;if(d==="mouseenter"||d==="mouseover"){var N=!1;return{layer:E,listener:w,delegates:{mousemove:function(ce){var he=L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[];he.length?N||(N=!0,w.call(L,new Do(d,L,ce.originalEvent,{features:he}))):N=!1},mouseout:function(){N=!1}}}}if(d==="mouseleave"||d==="mouseout"){var q=!1;return{layer:E,listener:w,delegates:{mousemove:function(ce){(L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[]).length?q=!0:q&&(q=!1,w.call(L,new Do(d,L,ce.originalEvent)))},mouseout:function(ce){q&&(q=!1,w.call(L,new Do(d,L,ce.originalEvent)))}}}}return{layer:E,listener:w,delegates:(P={},P[d]=function(ce){var he=L.getLayer(E)?L.queryRenderedFeatures(ce.point,{layers:[E]}):[];he.length&&(ce.features=he,w.call(L,ce),delete ce.features)},P)}},h.prototype.on=function(d,E,w){if(w===void 0)return l.prototype.on.call(this,d,E);var P=this._createDelegatedListener(d,E,w);for(var L in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[d]=this._delegatedListeners[d]||[],this._delegatedListeners[d].push(P),P.delegates)this.on(L,P.delegates[L]);return this},h.prototype.once=function(d,E,w){if(w===void 0)return l.prototype.once.call(this,d,E);var P=this._createDelegatedListener(d,E,w);for(var L in P.delegates)this.once(L,P.delegates[L]);return this},h.prototype.off=function(d,E,w){var P=this;return w===void 0?l.prototype.off.call(this,d,E):(this._delegatedListeners&&this._delegatedListeners[d]&&function(L){for(var N=L[d],q=0;q180;){var P=c.locationPoint(l);if(P.x>=0&&P.y>=0&&P.x<=c.width&&P.y<=c.height)break;l.lng>c.center.lng?l.lng-=360:l.lng+=360}return l}Fo.prototype.down=function(l,h){this.mouseRotate.mousedown(l,h),this.mousePitch&&this.mousePitch.mousedown(l,h),Z.disableDrag()},Fo.prototype.move=function(l,h){var c=this.map,d=this.mouseRotate.mousemoveWindow(l,h);if(d&&d.bearingDelta&&c.setBearing(c.getBearing()+d.bearingDelta),this.mousePitch){var E=this.mousePitch.mousemoveWindow(l,h);E&&E.pitchDelta&&c.setPitch(c.getPitch()+E.pitchDelta)}},Fo.prototype.off=function(){var l=this.element;Z.removeEventListener(l,"mousedown",this.mousedown),Z.removeEventListener(l,"touchstart",this.touchstart,{passive:!1}),Z.removeEventListener(l,"touchmove",this.touchmove),Z.removeEventListener(l,"touchend",this.touchend),Z.removeEventListener(l,"touchcancel",this.reset),this.offTemp()},Fo.prototype.offTemp=function(){Z.enableDrag(),Z.removeEventListener(m.window,"mousemove",this.mousemove),Z.removeEventListener(m.window,"mouseup",this.mouseup)},Fo.prototype.mousedown=function(l){this.down(m.extend({},l,{ctrlKey:!0,preventDefault:function(){return l.preventDefault()}}),Z.mousePos(this.element,l)),Z.addEventListener(m.window,"mousemove",this.mousemove),Z.addEventListener(m.window,"mouseup",this.mouseup)},Fo.prototype.mousemove=function(l){this.move(l,Z.mousePos(this.element,l))},Fo.prototype.mouseup=function(l){this.mouseRotate.mouseupWindow(l),this.mousePitch&&this.mousePitch.mouseupWindow(l),this.offTemp()},Fo.prototype.touchstart=function(l){l.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=Z.touchPos(this.element,l.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return l.preventDefault()}},this._startPos))},Fo.prototype.touchmove=function(l){l.targetTouches.length!==1?this.reset():(this._lastPos=Z.touchPos(this.element,l.targetTouches)[0],this.move({preventDefault:function(){return l.preventDefault()}},this._lastPos))},Fo.prototype.touchend=function(l){l.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=d}this._isDragging&&(this._pos=c.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 m.Event("dragstart"))),this.fire(new m.Event("drag")))},h.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 m.Event("dragend")),this._state="inactive"},h.prototype._addDragHandler=function(c){this._element.contains(c.originalEvent.target)&&(c.preventDefault(),this._positionDelta=c.point.sub(this._pos).add(this._offset),this._pointerdownPos=c.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))},h.prototype.setDraggable=function(c){return this._draggable=!!c,this._map&&(c?(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},h.prototype.isDraggable=function(){return this._draggable},h.prototype.setRotation=function(c){return this._rotation=c||0,this._update(),this},h.prototype.getRotation=function(){return this._rotation},h.prototype.setRotationAlignment=function(c){return this._rotationAlignment=c||"auto",this._update(),this},h.prototype.getRotationAlignment=function(){return this._rotationAlignment},h.prototype.setPitchAlignment=function(c){return this._pitchAlignment=c&&c!=="auto"?c:this._rotationAlignment,this._update(),this},h.prototype.getPitchAlignment=function(){return this._pitchAlignment},h}(m.Evented),gf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Iu=0,vc=!1,Vc=function(l){function h(c){l.call(this),this.options=m.extend({},gf,c),m.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.onAdd=function(c){var d;return this._map=c,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),d=this._setupUI,Nl!==void 0?d(Nl):m.window.navigator.permissions!==void 0?m.window.navigator.permissions.query({name:"geolocation"}).then(function(E){d(Nl=E.state!=="denied")}):d(Nl=!!m.window.navigator.geolocation),this._container},h.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(m.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(),Z.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Iu=0,vc=!1},h.prototype._isOutOfMapMaxBounds=function(c){var d=this._map.getMaxBounds(),E=c.coords;return d&&(E.longituded.getEast()||E.latituded.getNorth())},h.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")}},h.prototype._onSuccess=function(c){if(this._map){if(this._isOutOfMapMaxBounds(c))return this._setErrorState(),this.fire(new m.Event("outofmaxbounds",c)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=c,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(c),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(c),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new m.Event("geolocate",c)),this._finish()}},h.prototype._updateCamera=function(c){var d=new m.LngLat(c.coords.longitude,c.coords.latitude),E=c.coords.accuracy,w=this._map.getBearing(),P=m.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(d.toBounds(E),P,{geolocateSource:!0})},h.prototype._updateMarker=function(c){if(c){var d=new m.LngLat(c.coords.longitude,c.coords.latitude);this._accuracyCircleMarker.setLngLat(d).addTo(this._map),this._userLocationDotMarker.setLngLat(d).addTo(this._map),this._accuracy=c.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},h.prototype._updateCircleRadius=function(){var c=this._map._container.clientHeight/2,d=this._map.unproject([0,c]),E=this._map.unproject([1,c]),w=d.distanceTo(E),P=Math.ceil(2*this._accuracy/w);this._circleElement.style.width=P+"px",this._circleElement.style.height=P+"px"},h.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},h.prototype._onError=function(c){if(this._map){if(this.options.trackUserLocation)if(c.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 d=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=d,this._geolocateButton.setAttribute("aria-label",d),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(c.code===3&&vc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new m.Event("error",c)),this._finish()}},h.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},h.prototype._setupUI=function(c){var d=this;if(this._container.addEventListener("contextmenu",function(P){return P.preventDefault()}),this._geolocateButton=Z.create("button","mapboxgl-ctrl-geolocate",this._container),Z.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",c===!1){m.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var E=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=E,this._geolocateButton.setAttribute("aria-label",E)}else{var w=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Z.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new jc(this._dotElement),this._circleElement=Z.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new jc({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(P){P.geolocateSource||d._watchState!=="ACTIVE_LOCK"||P.originalEvent&&P.originalEvent.type==="resize"||(d._watchState="BACKGROUND",d._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),d._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),d.fire(new m.Event("trackuserlocationend")))})},h.prototype.trigger=function(){if(!this._setup)return m.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 m.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Iu--,vc=!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 m.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 m.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 c;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Iu>1?(c={maximumAge:6e5,timeout:0},vc=!0):(c=this.options.positionOptions,vc=!1),this._geolocationWatchID=m.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,c)}}else m.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},h.prototype._clearWatch=function(){m.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)},h}(m.Evented),al={maxWidth:100,unit:"metric"},Ji=function(l){this.options=m.extend({},al,l),m.bindAll(["_onMove","setUnit"],this)};function ol(l,h,c){var d=c&&c.maxWidth||100,E=l._container.clientHeight/2,w=l.unproject([0,E]),P=l.unproject([d,E]),L=w.distanceTo(P);if(c&&c.unit==="imperial"){var N=3.2808*L;N>5280?hu(h,d,N/5280,l._getUIString("ScaleControl.Miles")):hu(h,d,N,l._getUIString("ScaleControl.Feet"))}else c&&c.unit==="nautical"?hu(h,d,L/1852,l._getUIString("ScaleControl.NauticalMiles")):L>=1e3?hu(h,d,L/1e3,l._getUIString("ScaleControl.Kilometers")):hu(h,d,L,l._getUIString("ScaleControl.Meters"))}function hu(l,h,c,d){var E,w,P,L=(E=c,(w=Math.pow(10,(""+Math.floor(E)).length-1))*(P=(P=E/w)>=10?10:P>=5?5:P>=3?3:P>=2?2:P>=1?1:function(N){var q=Math.pow(10,Math.ceil(-Math.log(N)/Math.LN10));return Math.round(N*q)/q}(P)));l.style.width=h*(L/c)+"px",l.innerHTML=L+" "+d}Ji.prototype.getDefaultPosition=function(){return"bottom-left"},Ji.prototype._onMove=function(){ol(this._map,this._container,this.options)},Ji.prototype.onAdd=function(l){return this._map=l,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",l.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ji.prototype.onRemove=function(){Z.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ji.prototype.setUnit=function(l){this.options.unit=l,ol(this._map,this._container,this.options)};var Ts=function(l){this._fullscreen=!1,l&&l.container&&(l.container instanceof m.window.HTMLElement?this._container=l.container:m.warnOnce("Full screen control 'container' must be a DOM element.")),m.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in m.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in m.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in m.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in m.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ts.prototype.onAdd=function(l){return this._map=l,this._container||(this._container=this._map.getContainer()),this._controlContainer=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",m.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ts.prototype.onRemove=function(){Z.remove(this._controlContainer),this._map=null,m.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ts.prototype._checkFullscreenSupport=function(){return!!(m.window.document.fullscreenEnabled||m.window.document.mozFullScreenEnabled||m.window.document.msFullscreenEnabled||m.window.document.webkitFullscreenEnabled)},Ts.prototype._setupUI=function(){var l=this._fullscreenButton=Z.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Z.create("span","mapboxgl-ctrl-icon",l).setAttribute("aria-hidden",!0),l.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),m.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ts.prototype._updateTitle=function(){var l=this._getTitle();this._fullscreenButton.setAttribute("aria-label",l),this._fullscreenButton.title=l},Ts.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ts.prototype._isFullscreen=function(){return this._fullscreen},Ts.prototype._changeIcon=function(){(m.window.document.fullscreenElement||m.window.document.mozFullScreenElement||m.window.document.webkitFullscreenElement||m.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())},Ts.prototype._onClickFullscreen=function(){this._isFullscreen()?m.window.document.exitFullscreen?m.window.document.exitFullscreen():m.window.document.mozCancelFullScreen?m.window.document.mozCancelFullScreen():m.window.document.msExitFullscreen?m.window.document.msExitFullscreen():m.window.document.webkitCancelFullScreen&&m.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 zl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},_l=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),yf=function(l){function h(c){l.call(this),this.options=m.extend(Object.create(zl),c),m.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return l&&(h.__proto__=l),(h.prototype=Object.create(l&&l.prototype)).constructor=h,h.prototype.addTo=function(c){return this._map&&this.remove(),this._map=c,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 m.Event("open")),this},h.prototype.isOpen=function(){return!!this._map},h.prototype.remove=function(){return this._content&&Z.remove(this._content),this._container&&(Z.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 m.Event("close")),this},h.prototype.getLngLat=function(){return this._lngLat},h.prototype.setLngLat=function(c){return this._lngLat=m.LngLat.convert(c),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},h.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},h.prototype.getElement=function(){return this._container},h.prototype.setText=function(c){return this.setDOMContent(m.window.document.createTextNode(c))},h.prototype.setHTML=function(c){var d,E=m.window.document.createDocumentFragment(),w=m.window.document.createElement("body");for(w.innerHTML=c;d=w.firstChild;)E.appendChild(d);return this.setDOMContent(E)},h.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},h.prototype.setMaxWidth=function(c){return this.options.maxWidth=c,this._update(),this},h.prototype.setDOMContent=function(c){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Z.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(c),this._createCloseButton(),this._update(),this._focusFirstElement(),this},h.prototype.addClassName=function(c){this._container&&this._container.classList.add(c)},h.prototype.removeClassName=function(c){this._container&&this._container.classList.remove(c)},h.prototype.setOffset=function(c){return this.options.offset=c,this._update(),this},h.prototype.toggleClassName=function(c){if(this._container)return this._container.classList.toggle(c)},h.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=Z.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))},h.prototype._onMouseUp=function(c){this._update(c.point)},h.prototype._onMouseMove=function(c){this._update(c.point)},h.prototype._onDrag=function(c){this._update(c.point)},h.prototype._update=function(c){var d=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=Z.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=Z.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(he){return d._container.classList.add(he)}),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=il(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||c)){var E=this._pos=this._trackPointer&&c?c:this._map.project(this._lngLat),w=this.options.anchor,P=function he(de){if(de){if(typeof de=="number"){var Re=Math.round(Math.sqrt(.5*Math.pow(de,2)));return{center:new m.Point(0,0),top:new m.Point(0,de),"top-left":new m.Point(Re,Re),"top-right":new m.Point(-Re,Re),bottom:new m.Point(0,-de),"bottom-left":new m.Point(Re,-Re),"bottom-right":new m.Point(-Re,-Re),left:new m.Point(de,0),right:new m.Point(-de,0)}}if(de instanceof m.Point||Array.isArray(de)){var Ie=m.Point.convert(de);return{center:Ie,top:Ie,"top-left":Ie,"top-right":Ie,bottom:Ie,"bottom-left":Ie,"bottom-right":Ie,left:Ie,right:Ie}}return{center:m.Point.convert(de.center||[0,0]),top:m.Point.convert(de.top||[0,0]),"top-left":m.Point.convert(de["top-left"]||[0,0]),"top-right":m.Point.convert(de["top-right"]||[0,0]),bottom:m.Point.convert(de.bottom||[0,0]),"bottom-left":m.Point.convert(de["bottom-left"]||[0,0]),"bottom-right":m.Point.convert(de["bottom-right"]||[0,0]),left:m.Point.convert(de.left||[0,0]),right:m.Point.convert(de.right||[0,0])}}return he(new m.Point(0,0))}(this.options.offset);if(!w){var L,N=this._container.offsetWidth,q=this._container.offsetHeight;L=E.y+P.bottom.ythis._map.transform.height-q?["bottom"]:[],E.xthis._map.transform.width-N/2&&L.push("right"),w=L.length===0?"bottom":L.join("-")}var ce=E.add(P[w]).round();Z.setTransform(this._container,fu[w]+" translate("+ce.x+"px,"+ce.y+"px)"),mf(this._container,w,"popup")}},h.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var c=this._container.querySelector(_l);c&&c.focus()}},h.prototype._onClose=function(){this.remove()},h}(m.Evented),Pa={version:m.version,supported:ve,setRTLTextPlugin:m.setRTLTextPlugin,getRTLTextPluginStatus:m.getRTLTextPluginStatus,Map:dc,NavigationControl:cu,GeolocateControl:Vc,AttributionControl:ys,ScaleControl:Ji,FullscreenControl:Ts,Popup:yf,Marker:jc,Style:ds,LngLat:m.LngLat,LngLatBounds:m.LngLatBounds,Point:m.Point,MercatorCoordinate:m.MercatorCoordinate,Evented:m.Evented,config:m.config,prewarm:function(){Ot().acquire(zt)},clearPrewarmedResources:function(){var l=En;l&&(l.isPreloaded()&&l.numActive()===1?(l.release(zt),En=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 m.config.ACCESS_TOKEN},set accessToken(l){m.config.ACCESS_TOKEN=l},get baseApiUrl(){return m.config.API_URL},set baseApiUrl(l){m.config.API_URL=l},get workerCount(){return vr.workerCount},set workerCount(l){vr.workerCount=l},get maxParallelImageRequests(){return m.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(l){m.config.MAX_PARALLEL_IMAGE_REQUESTS=l},clearStorage:function(l){m.clearTileCache(l)},workerUrl:""};return Pa}),ae})},28660:function(It,$,U){var ae=U(34155);/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var re;(function(m){(function(ve){var Z=typeof U.g=="object"?U.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),le=fe(m);typeof Z.Reflect=="undefined"?Z.Reflect=m:le=fe(Z.Reflect,le),ve(le);function fe(Le,J){return function(Xe,et){typeof Le[Xe]!="function"&&Object.defineProperty(Le,Xe,{configurable:!0,writable:!0,value:et}),J&&J(Xe,et)}}})(function(ve){var Z=Object.prototype.hasOwnProperty,le=typeof Symbol=="function",fe=le&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",Le=le&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",J=typeof Object.create=="function",Xe={__proto__:[]}instanceof Array,et=!J&&!Xe,Ue={create:J?function(){return hs(Object.create(null))}:Xe?function(){return hs({__proto__:null})}:function(){return hs({})},has:et?function(Nt,nr){return Z.call(Nt,nr)}:function(Nt,nr){return nr in Nt},get:et?function(Nt,nr){return Z.call(Nt,nr)?Nt[nr]:void 0}:function(Nt,nr){return Nt[nr]}},gt=Object.getPrototypeOf(Function),rr=typeof ae=="object"&&{NODE_ENV:"production"}&&{NODE_ENV:"production"}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",xt=!rr&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:me(),Yt=!rr&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Dn(),Et=!rr&&typeof WeakMap=="function"?WeakMap:Za(),at=new Et;function it(Nt,nr,Ar,rn){if(vn(Ar)){if(!Oi(Nt))throw new TypeError;if(!oa(nr))throw new TypeError;return Nr(Nt,nr)}else{if(!Oi(Nt))throw new TypeError;if(!si(nr))throw new TypeError;if(!si(rn)&&!vn(rn)&&!di(rn))throw new TypeError;return di(rn)&&(rn=void 0),Ar=Wi(Ar),tn(Nt,nr,Ar,rn)}}ve("decorate",it);function Zt(Nt,nr){function Ar(rn,wn){if(!si(rn))throw new TypeError;if(!vn(wn)&&!Mi(wn))throw new TypeError;Bt(Nt,nr,rn,wn)}return Ar}ve("metadata",Zt);function Y(Nt,nr,Ar,rn){if(!si(Ar))throw new TypeError;return vn(rn)||(rn=Wi(rn)),Bt(Nt,nr,Ar,rn)}ve("defineMetadata",Y);function $t(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),Ce(Nt,nr,Ar)}ve("hasMetadata",$t);function ft(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),De(Nt,nr,Ar)}ve("hasOwnMetadata",ft);function Je(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),wt(Nt,nr,Ar)}ve("getMetadata",Je);function At(Nt,nr,Ar){if(!si(nr))throw new TypeError;return vn(Ar)||(Ar=Wi(Ar)),mt(Nt,nr,Ar)}ve("getOwnMetadata",At);function Qe(Nt,nr){if(!si(Nt))throw new TypeError;return vn(nr)||(nr=Wi(nr)),Kt(Nt,nr)}ve("getMetadataKeys",Qe);function Qt(Nt,nr){if(!si(Nt))throw new TypeError;return vn(nr)||(nr=Wi(nr)),Cr(Nt,nr)}ve("getOwnMetadataKeys",Qt);function Er(Nt,nr,Ar){if(!si(nr))throw new TypeError;vn(Ar)||(Ar=Wi(Ar));var rn=A(nr,Ar,!1);if(vn(rn)||!rn.delete(Nt))return!1;if(rn.size>0)return!0;var wn=at.get(nr);return wn.delete(Ar),wn.size>0||at.delete(nr),!0}ve("deleteMetadata",Er);function Nr(Nt,nr){for(var Ar=Nt.length-1;Ar>=0;--Ar){var rn=Nt[Ar],wn=rn(nr);if(!vn(wn)&&!di(wn)){if(!oa(wn))throw new TypeError;nr=wn}}return nr}function tn(Nt,nr,Ar,rn){for(var wn=Nt.length-1;wn>=0;--wn){var Fn=Nt[wn],gi=Fn(nr,Ar,rn);if(!vn(gi)&&!di(gi)){if(!si(gi))throw new TypeError;rn=gi}}return rn}function A(Nt,nr,Ar){var rn=at.get(Nt);if(vn(rn)){if(!Ar)return;rn=new xt,at.set(Nt,rn)}var wn=rn.get(nr);if(vn(wn)){if(!Ar)return;wn=new xt,rn.set(nr,wn)}return wn}function Ce(Nt,nr,Ar){var rn=De(Nt,nr,Ar);if(rn)return!0;var wn=zo(nr);return di(wn)?!1:Ce(Nt,wn,Ar)}function De(Nt,nr,Ar){var rn=A(nr,Ar,!1);return vn(rn)?!1:mi(rn.has(Nt))}function wt(Nt,nr,Ar){var rn=De(Nt,nr,Ar);if(rn)return mt(Nt,nr,Ar);var wn=zo(nr);if(!di(wn))return wt(Nt,wn,Ar)}function mt(Nt,nr,Ar){var rn=A(nr,Ar,!1);if(!vn(rn))return rn.get(Nt)}function Bt(Nt,nr,Ar,rn){var wn=A(Ar,rn,!0);wn.set(Nt,nr)}function Kt(Nt,nr){var Ar=Cr(Nt,nr),rn=zo(Nt);if(rn===null)return Ar;var wn=Kt(rn,nr);if(wn.length<=0)return Ar;if(Ar.length<=0)return wn;for(var Fn=new Yt,gi=[],ti=0,fn=Ar;ti=0&&ti=this._keys.length?(this._index=-1,this._keys=nr,this._values=nr):this._index++,{value:fn,done:!1}}return{value:void 0,done:!0}},gi.prototype.throw=function(ti){throw this._index>=0&&(this._index=-1,this._keys=nr,this._values=nr),ti},gi.prototype.return=function(ti){return this._index>=0&&(this._index=-1,this._keys=nr,this._values=nr),{value:ti,done:!0}},gi}();return function(){function gi(){this._keys=[],this._values=[],this._cacheKey=Nt,this._cacheIndex=-2}return Object.defineProperty(gi.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),gi.prototype.has=function(ti){return this._find(ti,!1)>=0},gi.prototype.get=function(ti){var fn=this._find(ti,!1);return fn>=0?this._values[fn]:void 0},gi.prototype.set=function(ti,fn){var Di=this._find(ti,!0);return this._values[Di]=fn,this},gi.prototype.delete=function(ti){var fn=this._find(ti,!1);if(fn>=0){for(var Di=this._keys.length,Ri=fn+1;Ri>1;U(ft,Je,Nr,Qe,Qt,Er%2),$(ft,Je,At,Qe,Nr-1,Er+1),$(ft,Je,At,Nr+1,Qt,Er+1)}}function U(ft,Je,At,Qe,Qt,Er){for(;Qt>Qe;){if(Qt-Qe>600){var Nr=Qt-Qe+1,tn=At-Qe+1,A=Math.log(Nr),Ce=.5*Math.exp(2*A/3),De=.5*Math.sqrt(A*Ce*(Nr-Ce)/Nr)*(tn-Nr/2<0?-1:1),wt=Math.max(Qe,Math.floor(At-tn*Ce/Nr+De)),mt=Math.min(Qt,Math.floor(At+(Nr-tn)*Ce/Nr+De));U(ft,Je,At,wt,mt,Er)}var Bt=Je[2*At+Er],Kt=Qe,Cr=Qt;for(ae(ft,Je,Qe,At),Je[2*Qt+Er]>Bt&&ae(ft,Je,Qe,Qt);KtBt;)Cr--}Je[2*Qe+Er]===Bt?ae(ft,Je,Qe,Cr):(Cr++,ae(ft,Je,Cr,Qt)),Cr<=At&&(Qe=Cr+1),At<=Cr&&(Qt=Cr-1)}}function ae(ft,Je,At,Qe){re(ft,At,Qe),re(Je,2*At,2*Qe),re(Je,2*At+1,2*Qe+1)}function re(ft,Je,At){var Qe=ft[Je];ft[Je]=ft[At],ft[At]=Qe}function m(ft,Je,At,Qe,Qt,Er,Nr){for(var tn=[0,ft.length-1,0],A=[],Ce,De;tn.length;){var wt=tn.pop(),mt=tn.pop(),Bt=tn.pop();if(mt-Bt<=Nr){for(var Kt=Bt;Kt<=mt;Kt++)Ce=Je[2*Kt],De=Je[2*Kt+1],Ce>=At&&Ce<=Qt&&De>=Qe&&De<=Er&&A.push(ft[Kt]);continue}var Cr=Math.floor((Bt+mt)/2);Ce=Je[2*Cr],De=Je[2*Cr+1],Ce>=At&&Ce<=Qt&&De>=Qe&&De<=Er&&A.push(ft[Cr]);var ei=(wt+1)%2;(wt===0?At<=Ce:Qe<=De)&&(tn.push(Bt),tn.push(Cr-1),tn.push(ei)),(wt===0?Qt>=Ce:Er>=De)&&(tn.push(Cr+1),tn.push(mt),tn.push(ei))}return A}function ve(ft,Je,At,Qe,Qt,Er){for(var Nr=[0,ft.length-1,0],tn=[],A=Qt*Qt;Nr.length;){var Ce=Nr.pop(),De=Nr.pop(),wt=Nr.pop();if(De-wt<=Er){for(var mt=wt;mt<=De;mt++)Z(Je[2*mt],Je[2*mt+1],At,Qe)<=A&&tn.push(ft[mt]);continue}var Bt=Math.floor((wt+De)/2),Kt=Je[2*Bt],Cr=Je[2*Bt+1];Z(Kt,Cr,At,Qe)<=A&&tn.push(ft[Bt]);var ei=(Ce+1)%2;(Ce===0?At-Qt<=Kt:Qe-Qt<=Cr)&&(Nr.push(wt),Nr.push(Bt-1),Nr.push(ei)),(Ce===0?At+Qt>=Kt:Qe+Qt>=Cr)&&(Nr.push(Bt+1),Nr.push(De),Nr.push(ei))}return tn}function Z(ft,Je,At,Qe){var Qt=ft-At,Er=Je-Qe;return Qt*Qt+Er*Er}var le=function(ft){return ft[0]},fe=function(ft){return ft[1]},Le=function(Je,At,Qe,Qt,Er){At===void 0&&(At=le),Qe===void 0&&(Qe=fe),Qt===void 0&&(Qt=64),Er===void 0&&(Er=Float64Array),this.nodeSize=Qt,this.points=Je;for(var Nr=Je.length<65536?Uint16Array:Uint32Array,tn=this.ids=new Nr(Je.length),A=this.coords=new Er(Je.length*2),Ce=0;Ce=Qt;De--){var wt=+Date.now();A=this._cluster(A,De),this.trees[De]=new Le(A,Y,$t,Nr,Float32Array),Qe&&console.log("z%d: %d clusters in %dms",De,A.length,+Date.now()-wt)}return Qe&&console.timeEnd("total time"),this},et.prototype.getClusters=function(Je,At){var Qe=((Je[0]+180)%360+360)%360-180,Qt=Math.max(-90,Math.min(90,Je[1])),Er=Je[2]===180?180:((Je[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,Je[3]));if(Je[2]-Je[0]>=360)Qe=-180,Er=180;else if(Qe>Er){var tn=this.getClusters([Qe,Qt,180,Nr],At),A=this.getClusters([-180,Qt,Er,Nr],At);return tn.concat(A)}for(var Ce=this.trees[this._limitZoom(At)],De=Ce.range(Yt(Qe),Et(Nr),Yt(Er),Et(Qt)),wt=[],mt=0,Bt=De;mtAt&&(Cr+=Wn.numPoints||1)}if(Cr>Kt&&Cr>=A){for(var si=wt.x*Kt,vi=wt.y*Kt,qn=tn&&Kt>1?this._map(wt,!0):null,mi=(De<<5)+(At+1)+this.points.length,aa=0,Wi=Bt;aa1)for(var Mi=0,da=Bt;Mi>5},et.prototype._getOriginZoom=function(Je){return(Je-this.points.length)%32},et.prototype._map=function(Je,At){if(Je.numPoints)return At?Zt({},Je.properties):Je.properties;var Qe=this.points[Je.index].properties,Qt=this.options.map(Qe);return At&&Qt===Qe?Zt({},Qt):Qt};function Ue(ft,Je,At,Qe,Qt){return{x:Xe(ft),y:Xe(Je),zoom:Infinity,id:At,parentId:-1,numPoints:Qe,properties:Qt}}function gt(ft,Je){var At=ft.geometry.coordinates,Qe=At[0],Qt=At[1];return{x:Xe(Yt(Qe)),y:Xe(Et(Qt)),zoom:Infinity,index:Je,parentId:-1}}function rr(ft){return{type:"Feature",id:ft.id,properties:xt(ft),geometry:{type:"Point",coordinates:[at(ft.x),it(ft.y)]}}}function xt(ft){var Je=ft.numPoints,At=Je>=1e4?Math.round(Je/1e3)+"k":Je>=1e3?Math.round(Je/100)/10+"k":Je;return Zt(Zt({},ft.properties),{cluster:!0,cluster_id:ft.id,point_count:Je,point_count_abbreviated:At})}function Yt(ft){return ft/360+.5}function Et(ft){var Je=Math.sin(ft*Math.PI/180),At=.5-.25*Math.log((1+Je)/(1-Je))/Math.PI;return At<0?0:At>1?1:At}function at(ft){return(ft-.5)*360}function it(ft){var Je=(180-ft*360)*Math.PI/180;return 360*Math.atan(Math.exp(Je))/Math.PI-90}function Zt(ft,Je){for(var At in Je)ft[At]=Je[At];return ft}function Y(ft){return ft.x}function $t(ft){return ft.y}return et})},75752:function(It){It.exports.RADIUS=6378137,It.exports.FLATTENING=1/298.257223563,It.exports.POLAR_RADIUS=63567523142e-4}}]); diff --git a/4738.15d70875.async.js b/4738.15d70875.async.js deleted file mode 100644 index df12ea62..00000000 --- a/4738.15d70875.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4738],{34442:function(){},15746:function(fe,ae,o){"use strict";var d=o(21584);ae.Z=d.Z},89032:function(fe,ae,o){"use strict";var d=o(38663),se=o.n(d),$=o(6999)},86835:function(fe,ae,o){"use strict";o.d(ae,{Z:function(){return $t}});var d=o(22122),se=o(90484),$=o(28481),M=o(96156),n=o(67294),Ie=o(94184),le=o.n(Ie),ue=o(48526),Ce=o(53124),D=o(65223);function Ne(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Se(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function pe(e,t){if(e.clientHeightt||i>e&&s=t&&f>=a?i-e-r:s>t&&fa?s-t+l:0}function we(e,t){var a=window,r=t.scrollMode,l=t.block,i=t.inline,s=t.boundary,f=t.skipOverflowHiddenElements,v=typeof s=="function"?s:function(Ze){return Ze!==s};if(!Ne(e))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,b=[],u=e;Ne(u)&&v(u);){if((u=u.parentElement)===m){b.push(u);break}u!=null&&u===document.body&&pe(u)&&!pe(document.documentElement)||u!=null&&pe(u,f)&&b.push(u)}for(var c=a.visualViewport?a.visualViewport.width:innerWidth,p=a.visualViewport?a.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),N=h.height,y=h.width,I=h.top,B=h.right,L=h.bottom,W=h.left,F=l==="start"||l==="nearest"?I:l==="end"?L:I+N/2,_=i==="center"?W+y/2:i==="end"?B:W,H=[],P=0;P=0&&W>=0&&L<=p&&B<=c&&I>=S&&L<=A&&W>=Q&&B<=O)return H;var oe=getComputedStyle(C),ee=parseInt(oe.borderLeftWidth,10),V=parseInt(oe.borderTopWidth,10),te=parseInt(oe.borderRightWidth,10),ie=parseInt(oe.borderBottomWidth,10),U=0,R=0,J="offsetWidth"in C?C.offsetWidth-C.clientWidth-ee-te:0,re="offsetHeight"in C?C.offsetHeight-C.clientHeight-V-ie:0;if(m===C)U=l==="start"?F:l==="end"?F-p:l==="nearest"?Ee(g,g+p,p,V,ie,g+F,g+F+N,N):F-p/2,R=i==="start"?_:i==="center"?_-c/2:i==="end"?_-c:Ee(E,E+c,c,ee,te,E+_,E+_+y,y),U=Math.max(0,U+g),R=Math.max(0,R+E);else{U=l==="start"?F-S-V:l==="end"?F-A+ie+re:l==="nearest"?Ee(S,A,T,V,ie+re,F,F+N,N):F-(S+T/2)+re/2,R=i==="start"?_-Q-ee:i==="center"?_-(Q+Y/2)+J/2:i==="end"?_-O+te+J:Ee(Q,O,Y,ee,te+J,_,_+y,y);var ye=C.scrollLeft,be=C.scrollTop;F+=be-(U=Math.max(0,Math.min(be+U,C.scrollHeight-T+re))),_+=ye-(R=Math.max(0,Math.min(ye+R,C.scrollWidth-Y+J)))}H.push({el:C,top:U,left:R})}return H}function Le(e){return e===Object(e)&&Object.keys(e).length!==0}function et(e,t){t===void 0&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach(function(r){var l=r.el,i=r.top,s=r.left;l.scroll&&a?l.scroll({top:i,left:s,behavior:t}):(l.scrollTop=i,l.scrollLeft=s)})}function tt(e){return e===!1?{block:"end",inline:"nearest"}:Le(e)?e:{block:"start",inline:"nearest"}}function rt(e,t){var a=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Le(t)&&typeof t.behavior=="function")return t.behavior(a?we(e,t):[]);if(!!a){var r=tt(t);return et(we(e,r),r.behavior)}}var nt=rt,at=["parentNode"],lt="form_item";function de(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Te(e,t){if(!!e.length){var a=e.join("_");if(t)return"".concat(t,"_").concat(a);var r=at.indexOf(a)>=0;return r?"".concat(lt,"_").concat(a):a}}function Ae(e){var t=de(e);return t.join("_")}function De(e){var t=(0,ue.cI)(),a=(0,$.Z)(t,1),r=a[0],l=n.useRef({}),i=n.useMemo(function(){return e!=null?e:(0,d.Z)((0,d.Z)({},r),{__INTERNAL__:{itemRef:function(f){return function(v){var m=Ae(f);v?l.current[m]=v:delete l.current[m]}}},scrollToField:function(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=de(f),b=Te(m,i.__INTERNAL__.name),u=b?document.getElementById(b):null;u&&nt(u,(0,d.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(f){var v=Ae(f);return l.current[v]}})},[e,r]);return[i]}var We=o(97647),je=o(98866),ot=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(a,"-").concat(r),error:e,errorStatus:t}}function ke(e){var t=e.help,a=e.helpStatus,r=e.errors,l=r===void 0?ze:r,i=e.warnings,s=i===void 0?ze:i,f=e.className,v=n.useContext(D.Rk),m=v.prefixCls,b=n.useContext(Ce.E_),u=b.getPrefixCls,c="".concat(m,"-item-explain"),p=u(),E=n.useMemo(function(){return t!=null?[Fe(t,a,"help")]:[].concat((0,k.Z)(l.map(function(g,h){return Fe(g,"error","error",h)})),(0,k.Z)(s.map(function(g,h){return Fe(g,"warning","warning",h)})))},[t,a,l,s]);return n.createElement(Ke.Z,(0,d.Z)({},Ue.ZP,{motionName:"".concat(p,"-show-help"),motionAppear:!1,motionEnter:!1,visible:!!E.length,onLeaveStart:function(h){return h.style.height="auto",{height:h.offsetHeight}}}),function(g){var h=g.className,N=g.style;return n.createElement("div",{className:le()(c,h,f),style:N},n.createElement(Ke.V,(0,d.Z)({keys:E},Ue.ZP,{motionName:"".concat(p,"-show-help-item"),component:!1}),function(y){var I=y.key,B=y.error,L=y.errorStatus,W=y.className,F=y.style;return n.createElement("div",{key:I,role:"alert",className:le()(W,(0,M.Z)({},"".concat(c,"-").concat(L),L)),style:F},B)}))})}var Et=function(t){var a=t.prefixCls,r=t.status,l=t.wrapperCol,i=t.children,s=t.errors,f=t.warnings,v=t._internalItemRender,m=t.extra,b=t.help,u="".concat(a,"-item"),c=n.useContext(D.q3),p=l||c.wrapperCol||{},E=le()("".concat(u,"-control"),p.className),g=n.useMemo(function(){return(0,d.Z)({},c)},[c]);delete g.labelCol,delete g.wrapperCol;var h=n.createElement("div",{className:"".concat(u,"-control-input")},n.createElement("div",{className:"".concat(u,"-control-input-content")},i)),N=n.useMemo(function(){return{prefixCls:a,status:r}},[a,r]),y=n.createElement(D.Rk.Provider,{value:N},n.createElement(ke,{errors:s,warnings:f,help:b,helpStatus:r,className:"".concat(u,"-explain-connected")})),I=m?n.createElement("div",{className:"".concat(u,"-extra")},m):null,B=v&&v.mark==="pro_table_render"&&v.render?v.render(t,{input:h,errorList:y,extra:I}):n.createElement(n.Fragment,null,h,y,I);return n.createElement(D.q3.Provider,{value:g},n.createElement(Be.Z,(0,d.Z)({},p,{className:E}),B))},yt=Et,bt=o(1870),Zt=o(42051),xt=o(85636),pt=o(61580),Ft=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after,.ant-steps-item:last-child>.ant-steps-item-container>.ant-steps-item-tail{display:none}.ant-steps-item-content,.ant-steps-item-icon{display:inline-block;vertical-align:top}.ant-steps-item-icon{width:32px;height:32px;margin:0 8px 0 0;font-size:16px;font-family:-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";line-height:32px;text-align:center;border:1px solid rgba(0,0,0,.25);border-radius:32px;transition:background-color .3s,border-color .3s}.ant-steps-item-icon .ant-steps-icon{position:relative;top:-.5px;color:#1890ff;color:var(--ant-primary-color);line-height:1}.ant-steps-item-tail{position:absolute;top:12px;left:0;width:100%;padding:0 10px}.ant-steps-item-tail:after{display:inline-block;width:100%;height:1px;background:rgba(0,0,0,.06);border-radius:1px;transition:background .3s;content:""}.ant-steps-item-title{position:relative;display:inline-block;padding-right:16px;color:rgba(0,0,0,.85);font-size:16px;line-height:32px}.ant-steps-item-title:after{position:absolute;top:16px;left:100%;display:block;width:9999px;height:1px;background:rgba(0,0,0,.06);content:""}.ant-steps-item-subtitle{display:inline;margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px}.ant-steps-item-description{color:rgba(0,0,0,.45);font-size:14px}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff;border-color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:rgba(0,0,0,.25)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process .ant-steps-item-icon{background-color:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.85)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.85)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon .ant-steps-icon{color:#fff}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-title{font-weight:500}.ant-steps-item-finish .ant-steps-item-icon{background-color:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff;background:var(--ant-primary-color)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.85)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-steps-item-error .ant-steps-item-icon{background-color:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#ff4d4f;background:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:rgba(0,0,0,.06)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#ff4d4f;color:var(--ant-error-color)}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:rgba(0,0,0,.06)}.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after{background:#ff4d4f;background:var(--ant-error-color)}.ant-steps-item-disabled{cursor:not-allowed}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]{cursor:pointer}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-icon .ant-steps-icon,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-title{transition:color .3s}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-title{color:#1890ff;color:var(--ant-primary-color)}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon .ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:16px;white-space:nowrap}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-right:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail{display:none}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description{max-width:140px;white-space:normal}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon{height:auto;background:none;border:0}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon>.ant-steps-icon{top:0;left:.5px;width:32px;height:32px;font-size:24px;line-height:32px}.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon{width:auto;background:none}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:12px}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-small .ant-steps-item-icon{width:24px;height:24px;margin:0 8px 0 0;font-size:12px;line-height:24px;text-align:center;border-radius:24px}.ant-steps-small .ant-steps-item-title{padding-right:12px;font-size:14px;line-height:24px}.ant-steps-small .ant-steps-item-title:after{top:12px}.ant-steps-small .ant-steps-item-description{color:rgba(0,0,0,.45);font-size:14px}.ant-steps-small .ant-steps-item-tail{top:8px}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon{width:inherit;height:inherit;line-height:inherit;background:none;border:0;border-radius:0}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{font-size:24px;line-height:24px;transform:none}.ant-steps-vertical{display:flex;flex-direction:column}.ant-steps-vertical>.ant-steps-item{display:block;flex:1 0 auto;padding-left:0;overflow:visible}.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:left;margin-right:16px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-content{display:block;min-height:48px;overflow:hidden}.ant-steps-vertical>.ant-steps-item .ant-steps-item-title{line-height:32px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-description{padding-bottom:12px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{position:absolute;top:0;left:16px;width:1px;height:100%;padding:38px 0 6px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail:after{width:1px;height:100%}.ant-steps-vertical>.ant-steps-item:not(:last-child)>.ant-steps-item-container>.ant-steps-item-tail{display:block}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{display:none}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{position:absolute;top:0;left:12px;padding:30px 0 6px}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-title{line-height:24px}.ant-steps-label-vertical .ant-steps-item{overflow:visible}.ant-steps-label-vertical .ant-steps-item-tail{margin-left:58px;padding:3.5px 24px}.ant-steps-label-vertical .ant-steps-item-content{display:block;width:116px;margin-top:8px;text-align:center}.ant-steps-label-vertical .ant-steps-item-icon{display:inline-block;margin-left:42px}.ant-steps-label-vertical .ant-steps-item-title{padding-right:0;padding-left:0}.ant-steps-label-vertical .ant-steps-item-title:after{display:none}.ant-steps-label-vertical .ant-steps-item-subtitle{display:block;margin-bottom:4px;margin-left:0;line-height:1.5715}.ant-steps-label-vertical.ant-steps-small:not(.ant-steps-dot) .ant-steps-item-icon{margin-left:46px}.ant-steps-dot .ant-steps-item-title,.ant-steps-dot.ant-steps-small .ant-steps-item-title{line-height:1.5715}.ant-steps-dot .ant-steps-item-tail,.ant-steps-dot.ant-steps-small .ant-steps-item-tail{top:2px;width:100%;margin:0 0 0 70px;padding:0}.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{width:calc(100% - 20px);height:3px;margin-left:12px}.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{left:2px}.ant-steps-dot .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-icon{width:8px;height:8px;margin-left:67px;padding-right:0;line-height:8px;background:transparent;border:0}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{position:relative;float:left;width:100%;height:100%;border-radius:100px;transition:all .3s}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{position:absolute;top:-12px;left:-26px;width:60px;height:32px;background:rgba(0,0,0,.001);content:""}.ant-steps-dot .ant-steps-item-content,.ant-steps-dot.ant-steps-small .ant-steps-item-content{width:140px}.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon{position:relative;top:-1px;width:10px;height:10px;line-height:10px;background:none}.ant-steps-dot .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-top:13px;margin-left:0;background:none}.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{top:6.5px;left:-9px;margin:0;padding:22px 0 4px}.ant-steps-vertical.ant-steps-dot.ant-steps-small .ant-steps-item-icon{margin-top:10px}.ant-steps-vertical.ant-steps-dot.ant-steps-small .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{top:3.5px}.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-content{width:inherit}.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon-dot{top:-1px;left:-1px}.ant-steps-navigation{padding-top:12px}.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-left:-12px}.ant-steps-navigation .ant-steps-item{overflow:visible;text-align:center}.ant-steps-navigation .ant-steps-item-container{display:inline-block;height:100%;margin-left:-16px;padding-bottom:12px;text-align:left;transition:opacity .3s}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-content{max-width:auto}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{max-width:100%;padding-right:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title:after{display:none}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]{cursor:pointer}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]:hover{opacity:.85}.ant-steps-navigation .ant-steps-item:last-child{flex:1 1}.ant-steps-navigation .ant-steps-item:last-child:after{display:none}.ant-steps-navigation .ant-steps-item:after{position:absolute;top:50%;left:100%;display:inline-block;width:12px;height:12px;margin-top:-14px;margin-left:-2px;border:1px solid rgba(0,0,0,.25);border-bottom:none;border-left:none;transform:rotate(45deg);content:""}.ant-steps-navigation .ant-steps-item:before{position:absolute;bottom:0;left:50%;display:inline-block;width:0;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);transition:width .3s,left .3s;transition-timing-function:ease-out;content:""}.ant-steps-navigation .ant-steps-item.ant-steps-item-active:before{left:0;width:100%}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item{margin-right:0!important}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:before{display:none}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item.ant-steps-item-active:before{top:0;right:0;left:unset;display:block;width:3px;height:calc(100% - 24px)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:after{position:relative;top:-2px;left:50%;display:block;width:8px;height:8px;margin-bottom:8px;text-align:center;transform:rotate(135deg)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{visibility:hidden}.ant-steps-navigation.ant-steps-horizontal>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{visibility:hidden}.ant-steps-rtl{direction:rtl}.ant-steps.ant-steps-rtl .ant-steps-item-icon{margin-right:0;margin-left:8px}.ant-steps-rtl .ant-steps-item-tail{right:0;left:auto}.ant-steps-rtl .ant-steps-item-title{padding-right:0;padding-left:16px}.ant-steps-rtl .ant-steps-item-title .ant-steps-item-subtitle{float:left;margin-right:8px;margin-left:0}.ant-steps-rtl .ant-steps-item-title:after{right:100%;left:auto}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:16px;padding-left:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-left:0}.ant-steps-rtl .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{right:.5px;left:auto}.ant-steps-rtl.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-right:-12px;margin-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container{margin-right:-16px;margin-left:0;text-align:right}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item:after{right:100%;left:auto;margin-right:-2px;margin-left:0;transform:rotate(225deg)}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:12px;padding-left:0}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-small .ant-steps-item-title{padding-right:0;padding-left:12px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:right;margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:16px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{right:12px;left:auto}.ant-steps-rtl.ant-steps-label-vertical .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail{margin:0 70px 0 0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{margin-right:12px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{right:2px;left:auto}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon{margin-right:67px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{float:right}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{right:-26px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:-9px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{right:0;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot{right:-2px;left:auto}.ant-steps-rtl.ant-steps-with-progress.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child{padding-right:4px;padding-left:0}.ant-steps-rtl.ant-steps-with-progress.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child.ant-steps-item-active{padding-right:4px}.ant-steps-with-progress .ant-steps-item{padding-top:4px}.ant-steps-with-progress .ant-steps-item .ant-steps-item-tail{top:4px!important}.ant-steps-with-progress.ant-steps-horizontal .ant-steps-item:first-child{padding-bottom:4px;padding-left:4px}.ant-steps-with-progress .ant-steps-item-icon{position:relative}.ant-steps-with-progress .ant-steps-item-icon .ant-progress{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px} \ No newline at end of file diff --git a/5279.cbec36a0.async.js b/5279.cbec36a0.async.js new file mode 100644 index 00000000..421cc473 --- /dev/null +++ b/5279.cbec36a0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5279],{8303:function(Ue,Ie,g){g.d(Ie,{Z:function(){return Fe}});var p=g(50959),xe=g(84875),U=g.n(xe),Y=g(51408),le=g(31594),fe=g(17436),z=g(70836),u={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},be=p.createContext({}),Se=g(13763),ze=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s(0,Se.Z)(n).map(o=>Object.assign(Object.assign({},o==null?void 0:o.props),{key:o.key}));function Ne(n,o,d){const a=p.useMemo(()=>o||he(d),[o,d]);return p.useMemo(()=>a.map(S=>{var{span:$}=S,y=ze(S,["span"]);return Object.assign(Object.assign({},y),{span:typeof $=="number"?$:(0,Y.m9)(n,$)})}),[a,n])}function me(n,o,d){let a=n,s=!1;return(d===void 0||d>o)&&(a=Object.assign(Object.assign({},n),{span:o}),s=d!==void 0),[a,s]}function Ee(n,o){const d=[];let a=[],s=o,S=!1;return n.filter($=>$).forEach(($,y)=>{const N=$==null?void 0:$.span,I=N||1;if(y===n.length-1){const[C,T]=me($,s,N);S=S||T,a.push(C),d.push(a);return}if(I{const[d,a]=(0,p.useMemo)(()=>Ee(o,n),[o,n]);return d},Pe=n=>{let{children:o}=n;return o};function oe(n){return n!=null}var m=n=>{const{itemPrefixCls:o,component:d,span:a,className:s,style:S,labelStyle:$,contentStyle:y,bordered:N,label:I,content:C,colon:T}=n,A=d;return N?p.createElement(A,{className:U()({[`${o}-item-label`]:oe(I),[`${o}-item-content`]:oe(C)},s),style:S,colSpan:a},oe(I)&&p.createElement("span",{style:$},I),oe(C)&&p.createElement("span",{style:y},C)):p.createElement(A,{className:U()(`${o}-item`,s),style:S,colSpan:a},p.createElement("div",{className:`${o}-item-container`},(I||I===0)&&p.createElement("span",{className:U()(`${o}-item-label`,{[`${o}-item-no-colon`]:!T}),style:$},I),(C||C===0)&&p.createElement("span",{className:U()(`${o}-item-content`),style:y},C)))};function Q(n,o,d){let{colon:a,prefixCls:s,bordered:S}=o,{component:$,type:y,showLabel:N,showContent:I,labelStyle:C,contentStyle:T}=d;return n.map((A,G)=>{let{label:J,children:re,prefixCls:_=s,className:k,style:F,labelStyle:M,contentStyle:e,span:t=1,key:i}=A;return typeof $=="string"?p.createElement(m,{key:`${y}-${i||G}`,className:k,style:F,labelStyle:Object.assign(Object.assign({},C),M),contentStyle:Object.assign(Object.assign({},T),e),span:t,colon:a,component:$,itemPrefixCls:_,bordered:S,label:N?J:null,content:I?re:null}):[p.createElement(m,{key:`label-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},C),F),M),span:1,colon:a,component:$[0],itemPrefixCls:_,bordered:S,label:J}),p.createElement(m,{key:`content-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},T),F),e),span:t*2-1,component:$[1],itemPrefixCls:_,bordered:S,content:re})]})}var He=n=>{const o=p.useContext(be),{prefixCls:d,vertical:a,row:s,index:S,bordered:$}=n;return a?p.createElement(p.Fragment,null,p.createElement("tr",{key:`label-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"th",type:"label",showLabel:!0},o))),p.createElement("tr",{key:`content-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"td",type:"content",showContent:!0},o)))):p.createElement("tr",{key:S,className:`${d}-row`},Q(s,n,Object.assign({component:$?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},o)))},E=g(60076),ve=g(6301),Re=g(81501),Me=g(90467);const qe=n=>{const{componentCls:o,labelBg:d}=n;return{[`&${o}-bordered`]:{[`> ${o}-view`]:{border:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${o}-row`]:{borderBottom:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.padding)} ${(0,E.bf)(n.paddingLG)}`,borderInlineEnd:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${o}-item-label`]:{color:n.colorTextSecondary,backgroundColor:d,"&::after":{display:"none"}}}},[`&${o}-middle`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingSM)} ${(0,E.bf)(n.paddingLG)}`}}},[`&${o}-small`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingXS)} ${(0,E.bf)(n.padding)}`}}}}}},De=n=>{const{componentCls:o,extraColor:d,itemPaddingBottom:a,colonMarginRight:s,colonMarginLeft:S,titleMarginBottom:$}=n;return{[o]:Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(n)),qe(n)),{["&-rtl"]:{direction:"rtl"},[`${o}-header`]:{display:"flex",alignItems:"center",marginBottom:$},[`${o}-title`]:Object.assign(Object.assign({},ve.vS),{flex:"auto",color:n.titleColor,fontWeight:n.fontWeightStrong,fontSize:n.fontSizeLG,lineHeight:n.lineHeightLG}),[`${o}-extra`]:{marginInlineStart:"auto",color:d,fontSize:n.fontSize},[`${o}-view`]:{width:"100%",borderRadius:n.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${o}-row`]:{"> th, > td":{paddingBottom:a},"&:last-child":{borderBottom:"none"}},[`${o}-item-label`]:{color:n.colorTextTertiary,fontWeight:"normal",fontSize:n.fontSize,lineHeight:n.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,E.bf)(S)} ${(0,E.bf)(s)}`},[`&${o}-item-no-colon::after`]:{content:'""'}},[`${o}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${o}-item-content`]:{display:"table-cell",flex:1,color:n.contentColor,fontSize:n.fontSize,lineHeight:n.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${o}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${o}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${o}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingSM}}},"&-small":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingXS}}}})}},Ae=n=>({labelBg:n.colorFillAlter,titleColor:n.colorText,titleMarginBottom:n.fontSizeSM*n.lineHeightSM,itemPaddingBottom:n.padding,colonMarginRight:n.marginXS,colonMarginLeft:n.marginXXS/2,contentColor:n.colorText,extraColor:n.colorText});var We=(0,Re.I$)("Descriptions",n=>{const o=(0,Me.TS)(n,{});return De(o)},Ae),Ge=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s{const{prefixCls:o,title:d,extra:a,column:s,colon:S=!0,bordered:$,layout:y,children:N,className:I,rootClassName:C,style:T,size:A,labelStyle:G,contentStyle:J,items:re}=n,_=Ge(n,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:k,direction:F,descriptions:M}=p.useContext(le.E_),e=k("descriptions",o),t=(0,z.Z)(),i=p.useMemo(()=>{var x;return typeof s=="number"?s:(x=(0,Y.m9)(t,Object.assign(Object.assign({},u),s)))!==null&&x!==void 0?x:3},[t,s]),l=Ne(t,re,N),r=(0,fe.Z)(A),c=je(i,l),[f,w]=We(e),b=p.useMemo(()=>({labelStyle:G,contentStyle:J}),[G,J]);return f(p.createElement(be.Provider,{value:b},p.createElement("div",Object.assign({className:U()(e,M==null?void 0:M.className,{[`${e}-${r}`]:r&&r!=="default",[`${e}-bordered`]:!!$,[`${e}-rtl`]:F==="rtl"},I,C,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),T)},_),(d||a)&&p.createElement("div",{className:`${e}-header`},d&&p.createElement("div",{className:`${e}-title`},d),a&&p.createElement("div",{className:`${e}-extra`},a)),p.createElement("div",{className:`${e}-view`},p.createElement("table",null,p.createElement("tbody",null,c.map((x,O)=>p.createElement(He,{key:O,index:O,colon:S,prefixCls:e,vertical:y==="vertical",bordered:$,row:x}))))))))};ye.Item=Pe;var Fe=ye},27575:function(Ue,Ie,g){g.d(Ie,{Z:function(){return M}});var p=g(87132),xe=g(22410),U=g(84875),Y=g.n(U),le=g(38126),fe=g(33346),z=g(73273),Oe=g(10570),u=g(50959),we=g(57),be=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Se(e){return typeof e=="string"}function ze(e){var t,i=e.className,l=e.prefixCls,r=e.style,c=e.active,f=e.status,w=e.iconPrefix,b=e.icon,x=e.wrapperStyle,O=e.stepNumber,Z=e.disabled,X=e.description,K=e.title,R=e.subTitle,j=e.progressDot,ee=e.stepIcon,te=e.tailContent,h=e.icons,ie=e.stepIndex,D=e.onStepClick,B=e.onClick,ae=e.render,ge=(0,Oe.Z)(e,be),V=!!D&&!Z,q={};V&&(q.role="button",q.tabIndex=0,q.onClick=function(P){B==null||B(P),D(ie)},q.onKeyDown=function(P){var H=P.which;(H===we.Z.ENTER||H===we.Z.SPACE)&&D(ie)});var pe=function(){var H,v,ue=Y()("".concat(l,"-icon"),"".concat(w,"icon"),(H={},(0,z.Z)(H,"".concat(w,"icon-").concat(b),b&&Se(b)),(0,z.Z)(H,"".concat(w,"icon-check"),!b&&f==="finish"&&(h&&!h.finish||!h)),(0,z.Z)(H,"".concat(w,"icon-cross"),!b&&f==="error"&&(h&&!h.error||!h)),H)),$e=u.createElement("span",{className:"".concat(l,"-icon-dot")});return j?typeof j=="function"?v=u.createElement("span",{className:"".concat(l,"-icon")},j($e,{index:O-1,status:f,title:K,description:X})):v=u.createElement("span",{className:"".concat(l,"-icon")},$e):b&&!Se(b)?v=u.createElement("span",{className:"".concat(l,"-icon")},b):h&&h.finish&&f==="finish"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.finish):h&&h.error&&f==="error"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.error):b||f==="finish"||f==="error"?v=u.createElement("span",{className:ue}):v=u.createElement("span",{className:"".concat(l,"-icon")},O),ee&&(v=ee({index:O-1,status:f,title:K,description:X,node:v})),v},ne=f||"wait",ce=Y()("".concat(l,"-item"),"".concat(l,"-item-").concat(ne),i,(t={},(0,z.Z)(t,"".concat(l,"-item-custom"),b),(0,z.Z)(t,"".concat(l,"-item-active"),c),(0,z.Z)(t,"".concat(l,"-item-disabled"),Z===!0),t)),se=(0,fe.Z)({},r),L=u.createElement("div",(0,le.Z)({},ge,{className:ce,style:se}),u.createElement("div",(0,le.Z)({onClick:B},q,{className:"".concat(l,"-item-container")}),u.createElement("div",{className:"".concat(l,"-item-tail")},te),u.createElement("div",{className:"".concat(l,"-item-icon")},pe()),u.createElement("div",{className:"".concat(l,"-item-content")},u.createElement("div",{className:"".concat(l,"-item-title")},K,R&&u.createElement("div",{title:typeof R=="string"?R:void 0,className:"".concat(l,"-item-subtitle")},R)),X&&u.createElement("div",{className:"".concat(l,"-item-description")},X))));return ae&&(L=ae(L)||null),L}var he=ze,Ne=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function me(e){var t,i=e.prefixCls,l=i===void 0?"rc-steps":i,r=e.style,c=r===void 0?{}:r,f=e.className,w=e.children,b=e.direction,x=b===void 0?"horizontal":b,O=e.type,Z=O===void 0?"default":O,X=e.labelPlacement,K=X===void 0?"horizontal":X,R=e.iconPrefix,j=R===void 0?"rc":R,ee=e.status,te=ee===void 0?"process":ee,h=e.size,ie=e.current,D=ie===void 0?0:ie,B=e.progressDot,ae=B===void 0?!1:B,ge=e.stepIcon,V=e.initial,q=V===void 0?0:V,pe=e.icons,ne=e.onChange,ce=e.itemRender,se=e.items,L=se===void 0?[]:se,P=(0,Oe.Z)(e,Ne),H=Z==="navigation",v=Z==="inline",ue=v||ae,$e=v?"horizontal":x,Ke=v?void 0:h,Ye=ue?"vertical":K,Qe=Y()(l,"".concat(l,"-").concat($e),f,(t={},(0,z.Z)(t,"".concat(l,"-").concat(Ke),Ke),(0,z.Z)(t,"".concat(l,"-label-").concat(Ye),$e==="horizontal"),(0,z.Z)(t,"".concat(l,"-dot"),!!ue),(0,z.Z)(t,"".concat(l,"-navigation"),H),(0,z.Z)(t,"".concat(l,"-inline"),v),t)),Je=function(Ce){ne&&D!==Ce&&ne(Ce)},_e=function(Ce,Ve){var W=(0,fe.Z)({},Ce),de=q+Ve;return te==="error"&&Ve===D-1&&(W.className="".concat(l,"-next-error")),W.status||(de===D?W.status=te:de{const{componentCls:t,customIconTop:i,customIconSize:l,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:i,width:l,height:l,fontSize:r,lineHeight:`${(0,m.bf)(r)}`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Me=e=>{const{componentCls:t,inlineDotSize:i,inlineTitleColor:l,inlineTailColor:r}=e,c=e.calc(e.paddingXS).add(e.lineWidth).equal(),f={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:l}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,m.bf)(c)} ${(0,m.bf)(e.paddingXXS)} 0`,margin:`0 ${(0,m.bf)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal()}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:l,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(i).div(2).add(c).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-error":f,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,top:0}},f),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:l}}}}}},De=e=>{const{componentCls:t,iconSize:i,lineHeight:l,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(i).div(2).add(e.controlHeightLG).equal(),padding:`${(0,m.bf)(e.paddingXXS)} ${(0,m.bf)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(i).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:l}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(i).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},We=e=>{const{componentCls:t,navContentMaxWidth:i,navArrowColor:l,stepsNavActiveColor:r,motionDurationSlow:c}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${c}`,[`${t}-item-content`]:{maxWidth:i},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Q.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,m.bf)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${c}, inset-inline-start ${c}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,m.bf)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},ye=e=>{const{antCls:t,componentCls:i}=e;return{[`&${i}-with-progress`]:{[`${i}-item`]:{paddingTop:e.paddingXXS,[`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]:{color:e.processIconColor}},[`&${i}-vertical > ${i}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${i}-item-container > ${i}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.calc(e.iconSize).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()}},[`&, &${i}-small`]:{[`&${i}-horizontal ${i}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]:{insetInlineStart:e.calc(e.iconSizeSM).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()},[`&${i}-label-vertical`]:{[`${i}-item ${i}-item-tail`]:{top:e.calc(e.margin).sub(e.calc(e.lineWidth).mul(2).equal()).equal()}},[`${i}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},n=e=>{const{componentCls:t,descriptionMaxWidth:i,lineHeight:l,dotCurrentSize:r,dotSize:c,motionDurationSlow:f}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:l},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,m.bf)(e.calc(i).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,m.bf)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:c,height:c,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(c).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,m.bf)(c)}`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${f}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(c).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:i},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(c).sub(r).div(2).equal(),width:r,height:r,lineHeight:`${(0,m.bf)(r)}`,background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(c).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(c).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(c).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,m.bf)(e.calc(c).add(e.paddingXS).equal())} 0 ${(0,m.bf)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(c).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(c).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(c).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},d=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},s=e=>{const{componentCls:t,iconSizeSM:i,fontSizeSM:l,fontSize:r,colorTextDescription:c}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:i,height:i,marginTop:0,marginBottom:0,marginInline:`0 ${(0,m.bf)(e.marginXS)}`,fontSize:l,lineHeight:`${(0,m.bf)(i)}`,textAlign:"center",borderRadius:i},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${(0,m.bf)(i)}`,"&::after":{top:e.calc(i).div(2).equal()}},[`${t}-item-description`]:{color:c,fontSize:r},[`${t}-item-tail`]:{top:e.calc(i).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:i,lineHeight:`${(0,m.bf)(i)}`,transform:"none"}}}}},$=e=>{const{componentCls:t,iconSizeSM:i,iconSize:l}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(l)}`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(l).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(l).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(i).div(2).sub(e.lineWidth).equal(),padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(i).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(i)}`}}}}},y;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(y||(y={}));const N=(e,t)=>{const i=`${t.componentCls}-item`,l=`${e}IconColor`,r=`${e}TitleColor`,c=`${e}DescriptionColor`,f=`${e}TailColor`,w=`${e}IconBgColor`,b=`${e}IconBorderColor`,x=`${e}DotColor`;return{[`${i}-${e} ${i}-icon`]:{backgroundColor:t[w],borderColor:t[b],[`> ${t.componentCls}-icon`]:{color:t[l],[`${t.componentCls}-icon-dot`]:{background:t[x]}}},[`${i}-${e}${i}-custom ${i}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[x]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-title`]:{color:t[r],"&::after":{backgroundColor:t[f]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-description`]:{color:t[c]},[`${i}-${e} > ${i}-container > ${i}-tail::after`]:{backgroundColor:t[f]}}},I=e=>{const{componentCls:t,motionDurationSlow:i}=e,l=`${t}-item`,r=`${l}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[l]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${l}-container > ${l}-tail, > ${l}-container > ${l}-content > ${l}-title::after`]:{display:"none"}}},[`${l}-container`]:{outline:"none",["&:focus-visible"]:{[r]:Object.assign({},(0,Q.oN)(e))}},[`${r}, ${l}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${(0,m.bf)(e.iconSize)}`,textAlign:"center",borderRadius:e.iconSize,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${i}, border-color ${i}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${l}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).sub(e.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${i}`,content:'""'}},[`${l}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${(0,m.bf)(e.titleLineHeight)}`,"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${l}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${l}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},N(y.wait,e)),N(y.process,e)),{[`${l}-process > ${l}-container > ${l}-title`]:{fontWeight:e.fontWeightStrong}}),N(y.finish,e)),N(y.error,e)),{[`${l}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${l}-disabled`]:{cursor:"not-allowed"}})},C=e=>{const{componentCls:t,motionDurationSlow:i}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${i}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},T=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Q.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),I(e)),C(e)),ve(e)),s(e)),$(e)),De(e)),n(e)),We(e)),d(e)),ye(e)),Me(e))}},A=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});var G=(0,Ze.I$)("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:i,colorTextLightSolid:l,colorText:r,colorPrimary:c,colorTextDescription:f,colorTextQuaternary:w,colorError:b,colorBorderSecondary:x,colorSplit:O}=e,Z=(0,He.TS)(e,{processIconColor:l,processTitleColor:r,processDescriptionColor:r,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,processTailColor:O,waitTitleColor:f,waitDescriptionColor:f,waitTailColor:O,waitDotColor:t,finishIconColor:c,finishTitleColor:r,finishDescriptionColor:f,finishTailColor:c,finishDotColor:c,errorIconColor:l,errorTitleColor:b,errorDescriptionColor:b,errorTailColor:O,errorIconBgColor:b,errorIconBorderColor:b,errorDotColor:b,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:w,inlineTailColor:x});return[T(Z)]},A),J=g(13763);function re(e){return e.filter(t=>t)}function _(e,t){if(e)return e;const i=(0,J.Z)(t).map(l=>{if(u.isValidElement(l)){const{props:r}=l;return Object.assign({},r)}return null});return re(i)}var k=function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(e);r{const{percent:t,size:i,className:l,rootClassName:r,direction:c,items:f,responsive:w=!0,current:b=0,children:x,style:O}=e,Z=k(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:X}=(0,Pe.Z)(w),{getPrefixCls:K,direction:R,steps:j}=u.useContext(je.E_),ee=u.useMemo(()=>w&&X?"vertical":c,[X,c]),te=(0,Be.Z)(i),h=K("steps",e.prefixCls),[ie,D]=G(h),B=e.type==="inline",ae=K("",e.iconPrefix),ge=_(f,x),V=B?void 0:t,q=Object.assign(Object.assign({},j==null?void 0:j.style),O),pe=Y()(j==null?void 0:j.className,{[`${h}-rtl`]:R==="rtl",[`${h}-with-progress`]:V!==void 0},l,r,D),ne={finish:u.createElement(p.Z,{className:`${h}-finish-icon`}),error:u.createElement(xe.Z,{className:`${h}-error-icon`})},ce=L=>{let{node:P,status:H}=L;if(H==="process"&&V!==void 0){const v=te==="small"?32:40;return u.createElement("div",{className:`${h}-progress-icon`},u.createElement(oe.Z,{type:"circle",percent:V,size:v,strokeWidth:4,format:()=>null}),P)}return P},se=(L,P)=>L.description?u.createElement(Le.Z,{title:L.description},P):P;return ie(u.createElement(Te,Object.assign({icons:ne},Z,{style:q,current:b,size:te,items:ge,itemRender:B?se:void 0,stepIcon:ce,direction:ee,prefixCls:h,iconPrefix:ae,className:pe})))};F.Step=Te.Step;var M=F}}]); diff --git a/5362.be0836e3.async.js b/5362.be0836e3.async.js deleted file mode 100644 index a91c5d04..00000000 --- a/5362.be0836e3.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5362],{64335:function(ce,$,i){"use strict";var K=i(67294),S=(0,K.createContext)({});$.Z=S},85224:function(ce,$,i){"use strict";var K=i(22122),S=i(28991),b=i(84305),A=i(75901),w=i(81253),k=i(94184),p=i.n(k),j=i(97435),y=i(67294),a=i(64335),O=i(56264),W=i.n(O),_=["children","className","extra","style","renderContent"],G=function(B){var F=B.children,X=B.className,z=B.extra,ne=B.style,Y=B.renderContent,de=(0,w.Z)(B,_),fe=(0,y.useContext)(A.ZP.ConfigContext),ue=fe.getPrefixCls,V=B.prefixCls||ue("pro"),ve="".concat(V,"-footer-bar"),E=(0,y.useContext)(a.Z),oe=(0,y.useMemo)(function(){var q=E.hasSiderMenu,J=E.isMobile,ee=E.siderWidth;if(!!q)return ee?J?"100%":"calc(100% - ".concat(ee,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),ie=y.createElement(y.Fragment,null,y.createElement("div",{className:"".concat(ve,"-left")},z),y.createElement("div",{className:"".concat(ve,"-right")},F));return(0,y.useEffect)(function(){return!E||!(E==null?void 0:E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var q;E==null||(q=E.setHasFooterToolbar)===null||q===void 0||q.call(E,!1)})},[]),y.createElement("div",(0,K.Z)({className:p()(X,"".concat(ve)),style:(0,S.Z)({width:oe},ne)},(0,j.Z)(de,["prefixCls"])),Y?Y((0,S.Z)((0,S.Z)((0,S.Z)({},B),E),{},{leftWidth:oe}),ie):ie)};$.Z=G},21349:function(ce,$,i){"use strict";var K=i(84305),S=i(75901),b=i(94184),A=i.n(b),w=i(67294),k=i(64335),p=i(53645),j=i.n(p),y=function(O){var W=(0,w.useContext)(k.Z),_=O.children,G=O.contentWidth,M=O.className,B=O.style,F=(0,w.useContext)(S.ZP.ConfigContext),X=F.getPrefixCls,z=O.prefixCls||X("pro"),ne=G||W.contentWidth,Y="".concat(z,"-grid-content");return w.createElement("div",{className:A()(Y,M,{wide:ne==="Fixed"}),style:B},w.createElement("div",{className:"".concat(z,"-grid-content-children")},_))};$.Z=y},75362:function(ce,$,i){"use strict";i.d($,{ZP:function(){return Mt}});var K=i(38663),S=i(70883),b=i(22122),A=i(96156),w=i(6610),k=i(5991),p=i(10379),j=i(60446),y=i(90484),a=i(67294),O=i(94184),W=i.n(O),_=i(98423),G=i(48717),M=i(53124),B=i(85061),F=i(75164);function X(o){var e,r=function(l){return function(){e=null,o.apply(void 0,(0,B.Z)(l))}},t=function(){if(e==null){for(var l=arguments.length,s=new Array(l),c=0;co.top-r)return r+e.top}function fe(o,e,r){if(r!==void 0&&e.bottom=0;c--)(s=o[c])&&(l=(n<3?s(l):n>3?s(e,r,l):s(e,r))||l);return n>3&&l&&Object.defineProperty(e,r,l),l};function q(){return typeof window!="undefined"?window:null}var J;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(J||(J={}));var ee=function(o){(0,p.Z)(r,o);var e=(0,j.Z)(r);function r(){var t;return(0,w.Z)(this,r),t=e.apply(this,arguments),t.state={status:J.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var n=t.props,l=n.offsetBottom,s=n.offsetTop;return l===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(n){t.placeholderNode=n},t.saveFixedNode=function(n){t.fixedNode=n},t.measure=function(){var n=t.state,l=n.status,s=n.lastAffix,c=t.props.onChange,d=t.getTargetFunc();if(!(l!==J.Prepare||!t.fixedNode||!t.placeholderNode||!d)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),h=d();if(!!h){var f={status:J.None},g=Y(h),u=Y(t.placeholderNode),C=de(u,g,v),R=fe(u,g,m);C!==void 0?(f.affixStyle={position:"fixed",top:C,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}):R!==void 0&&(f.affixStyle={position:"fixed",bottom:R,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}),f.lastAffix=!!f.affixStyle,c&&s!==f.lastAffix&&c(f.lastAffix),t.setState(f)}}},t.prepareMeasure=function(){if(t.setState({status:J.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var n},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var n=this.context.getTargetContainer,l=this.props.target;return l!==void 0?l:n||q}},{key:"componentDidMount",value:function(){var n=this,l=this.getTargetFunc();l&&(this.timeout=setTimeout(function(){E(l(),n),n.updatePosition()}))}},{key:"componentDidUpdate",value:function(n){var l=this.state.prevTarget,s=this.getTargetFunc(),c=(s==null?void 0:s())||null;l!==c&&(oe(this),c&&(E(c,this),this.updatePosition()),this.setState({prevTarget:c})),(n.offsetTop!==this.props.offsetTop||n.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),oe(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var n=this.getTargetFunc(),l=this.state.affixStyle;if(n&&l){var s=this.getOffsetTop(),c=this.getOffsetBottom(),d=n();if(d&&this.placeholderNode){var v=Y(d),m=Y(this.placeholderNode),h=de(m,v,s),f=fe(m,v,c);if(h!==void 0&&l.top===h||f!==void 0&&l.bottom===f)return}}this.prepareMeasure()}},{key:"render",value:function(){var n=this,l=this.state,s=l.affixStyle,c=l.placeholderStyle,d=this.props,v=d.affixPrefixCls,m=d.children,h=W()((0,A.Z)({},v,!!s)),f=(0,_.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return a.createElement(G.Z,{onResize:function(){n.updatePosition()}},a.createElement("div",(0,b.Z)({},f,{ref:this.savePlaceholderNode}),s&&a.createElement("div",{style:c,"aria-hidden":"true"}),a.createElement("div",{className:h,ref:this.saveFixedNode,style:s},a.createElement(G.Z,{onResize:function(){n.updatePosition()}},m))))}}]),r}(a.Component);ee.contextType=M.E_,ie([z()],ee.prototype,"updatePosition",null),ie([z()],ee.prototype,"lazyUpdatePosition",null);var Ue=a.forwardRef(function(o,e){var r=o.prefixCls,t=a.useContext(M.E_),n=t.getPrefixCls,l=n("affix",r),s=(0,b.Z)((0,b.Z)({},o),{affixPrefixCls:l});return a.createElement(ee,(0,b.Z)({},s,{ref:e}))}),We=Ue,$t=i(84305),ge=i(75901),jt=i(59903),Gt=i(81262),Xt=i(30887),Yt=i(59250),Vt=i(94233),Jt=i(49111),Ce=i(28481),Fe=i(30470),Z=i(28991),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ke=He,xe=i(27029),Pe=function(e,r){return a.createElement(xe.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:r,icon:Ke}))};Pe.displayName="ArrowLeftOutlined";var we=a.forwardRef(Pe),ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},$e=ze,Ee=function(e,r){return a.createElement(xe.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:r,icon:$e}))};Ee.displayName="ArrowRightOutlined";var je=a.forwardRef(Ee),Ge=i(50344),Xe=i(57254),Ye=i(81555),Ve=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(o);n0){var T=[];x=c.map(function(P){var L=Oe(P.path,f);L&&T.push(L);var I;return P.children&&P.children.length&&(I=a.createElement(Qe.Z,{items:P.children.map(function(U){return{key:U.path||U.breadcrumbName,label:m(U,f,c,tt(T,U.path,f))}})})),a.createElement(ye,{overlay:I,separator:n,key:L||P.breadcrumbName},m(P,f,c,T))})}else d&&(x=(0,Ge.Z)(d).map(function(P,L){return P&&(0,ke.Tm)(P,{separator:n,key:L})}));var H=W()(N,(0,A.Z)({},"".concat(N,"-rtl"),R==="rtl"),s);return a.createElement("nav",(0,b.Z)({className:H,style:l},g),a.createElement("ol",null,x))};me.Item=ye,me.Separator=Je;var rt=me,at=rt,nt=i(51890),ot=i(19650),it=i(34952),lt=i(42051),st=function(e,r,t){return!r||!t?null:a.createElement(lt.Z,{componentName:"PageHeader"},function(n){var l=n.back;return a.createElement("div",{className:"".concat(e,"-back")},a.createElement(it.Z,{onClick:function(c){t==null||t(c)},className:"".concat(e,"-back-button"),"aria-label":l},r))})},ct=function(e){return a.createElement(at,(0,b.Z)({},e))},dt=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?a.createElement(je,null):a.createElement(we,null)},ft=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",n=r.title,l=r.avatar,s=r.subTitle,c=r.tags,d=r.extra,v=r.onBack,m="".concat(e,"-heading"),h=n||s||c||d;if(!h)return null;var f=dt(r,t),g=st(e,f,v),u=g||l||h;return a.createElement("div",{className:m},u&&a.createElement("div",{className:"".concat(m,"-left")},g,l&&a.createElement(nt.C,(0,b.Z)({},l)),n&&a.createElement("span",{className:"".concat(m,"-title"),title:typeof n=="string"?n:void 0},n),s&&a.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),c&&a.createElement("span",{className:"".concat(m,"-tags")},c)),d&&a.createElement("span",{className:"".concat(m,"-extra")},a.createElement(ot.Z,null,d)))},ut=function(e,r){return r?a.createElement("div",{className:"".concat(e,"-footer")},r):null},vt=function(e,r){return a.createElement("div",{className:"".concat(e,"-content")},r)},mt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),n=t[0],l=t[1],s=function(d){var v=d.width;l(v<768,!0)};return a.createElement(M.C,null,function(c){var d,v=c.getPrefixCls,m=c.pageHeader,h=c.direction,f,g=e.prefixCls,u=e.style,C=e.footer,R=e.children,x=e.breadcrumb,N=e.breadcrumbRender,T=e.className,H=!0;"ghost"in e?H=e.ghost:m&&"ghost"in m&&(H=m.ghost);var P=v("page-header",g),L=function(){return(x==null?void 0:x.routes)?ct(x):null},I=L(),U=x&&"props"in x,te=(f=N==null?void 0:N(e,I))!==null&&f!==void 0?f:I,D=U?x:te,ae=W()(P,T,(d={"has-breadcrumb":!!D,"has-footer":!!C},(0,A.Z)(d,"".concat(P,"-ghost"),H),(0,A.Z)(d,"".concat(P,"-rtl"),h==="rtl"),(0,A.Z)(d,"".concat(P,"-compact"),n),d));return a.createElement(G.Z,{onResize:s},a.createElement("div",{className:ae,style:u},D,ft(P,e,h),R&&vt(P,R),ut(P,C)))})},ht=mt,Re=i(81253),Qt=i(18106),Ze=i(51752),Ne=i(64335),gt=i(85224),Ct=i(21349),xt=i(83832),Pt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},Et=function(e){var r=e.children,t=e.style,n=e.className,l=e.markStyle,s=e.markClassName,c=e.zIndex,d=c===void 0?9:c,v=e.gapX,m=v===void 0?212:v,h=e.gapY,f=h===void 0?222:h,g=e.width,u=g===void 0?120:g,C=e.height,R=C===void 0?64:C,x=e.rotate,N=x===void 0?-22:x,T=e.image,H=e.content,P=e.offsetLeft,L=e.offsetTop,I=e.fontStyle,U=I===void 0?"normal":I,te=e.fontWeight,D=te===void 0?"normal":te,ae=e.fontColor,he=ae===void 0?"rgba(0,0,0,.15)":ae,Te=e.fontSize,Me=Te===void 0?16:Te,Be=e.fontFamily,De=Be===void 0?"sans-serif":Be,Bt=e.prefixCls,Dt=(0,a.useContext)(ge.ZP.ConfigContext),At=Dt.getPrefixCls,Ae=At("pro-layout-watermark",Bt),St=W()("".concat(Ae,"-wrapper"),n),Lt=W()(Ae,s),It=(0,a.useState)(""),Se=(0,Ce.Z)(It,2),Ut=Se[0],Le=Se[1];return(0,a.useEffect)(function(){var le=document.createElement("canvas"),Q=le.getContext("2d"),re=Pt(Q),Wt="".concat((m+u)*re,"px"),Ft="".concat((f+R)*re,"px"),Ht=P||m/2,Kt=L||f/2;if(le.setAttribute("width",Wt),le.setAttribute("height",Ft),Q){Q.translate(Ht*re,Kt*re),Q.rotate(Math.PI/180*Number(N));var wt=u*re,Ie=R*re;if(T){var se=new Image;se.crossOrigin="anonymous",se.referrerPolicy="no-referrer",se.src=T,se.onload=function(){Q.drawImage(se,0,0,wt,Ie),Le(le.toDataURL())}}else if(H){var zt=Number(Me)*re;Q.font="".concat(U," normal ").concat(D," ").concat(zt,"px/").concat(Ie,"px ").concat(De),Q.fillStyle=he,Q.fillText(H,0,0),Le(le.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,f,P,L,N,U,D,u,R,De,he,T,H,Me]),a.createElement("div",{style:(0,Z.Z)({position:"relative"},t),className:St},r,a.createElement("div",{className:Lt,style:(0,Z.Z)({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+u,"px"),pointerEvents:"none",backgroundRepeat:"repeat",backgroundImage:"url('".concat(Ut,"')")},l)}))},bt=Et,kt=i(12395),yt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],pt=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Ot(o){return(0,y.Z)(o)==="object"?o:{spinning:o}}var Rt=function(e){var r=e.tabList,t=e.tabActiveKey,n=e.onTabChange,l=e.tabBarExtraContent,s=e.tabProps,c=e.prefixedClassName;return Array.isArray(r)||l?a.createElement(Ze.Z,(0,b.Z)({className:"".concat(c,"-tabs"),activeKey:t,onChange:function(v){n&&n(v)},tabBarExtraContent:l},s),r==null?void 0:r.map(function(d,v){return a.createElement(Ze.Z.TabPane,(0,b.Z)({},d,{tab:d.tab,key:d.key||v}))})):null},Zt=function(e,r,t){return!e&&!r?null:a.createElement("div",{className:"".concat(t,"-detail")},a.createElement("div",{className:"".concat(t,"-main")},a.createElement("div",{className:"".concat(t,"-row")},e&&a.createElement("div",{className:"".concat(t,"-content")},e),r&&a.createElement("div",{className:"".concat(t,"-extraContent")},r))))},_t=function(e){var r=useContext(RouteContext);return React.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center"}},React.createElement(_Breadcrumb,_extends({},r==null?void 0:r.breadcrumb,r==null?void 0:r.breadcrumbProps,e)))},Nt=function(e){var r,t=(0,a.useContext)(Ne.Z),n=e.title,l=e.content,s=e.pageHeaderRender,c=e.header,d=e.prefixedClassName,v=e.extraContent,m=e.style,h=e.prefixCls,f=e.breadcrumbRender,g=(0,Re.Z)(e,yt),u=(0,a.useMemo)(function(){if(!!f)return f},[f]);if(s===!1)return null;if(s)return a.createElement(a.Fragment,null," ",s((0,Z.Z)((0,Z.Z)({},e),t)));var C=n;!n&&n!==!1&&(C=t.title);var R=(0,Z.Z)((0,Z.Z)((0,Z.Z)({},t),{},{title:C},g),{},{footer:Rt((0,Z.Z)((0,Z.Z)({},g),{},{breadcrumbRender:f,prefixedClassName:d}))},c),x=R.breadcrumb,N=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!f;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(T){return!R[T]})&&N&&!l&&!v?null:a.createElement("div",{className:"".concat(d,"-warp")},a.createElement(ht,(0,b.Z)({},R,{breadcrumb:f===!1?void 0:(0,Z.Z)((0,Z.Z)({},R.breadcrumb),t.breadcrumbProps),breadcrumbRender:u,prefixCls:h}),(c==null?void 0:c.children)||Zt(l,v,d)))},Tt=function(e){var r,t,n=e.children,l=e.loading,s=l===void 0?!1:l,c=e.className,d=e.style,v=e.footer,m=e.affixProps,h=e.ghost,f=e.fixedHeader,g=e.breadcrumbRender,u=(0,Re.Z)(e,pt),C=(0,a.useContext)(Ne.Z),R=(0,a.useContext)(ge.ZP.ConfigContext),x=R.getPrefixCls,N=e.prefixCls||x("pro"),T="".concat(N,"-page-container"),H=W()(T,c,(r={},(0,A.Z)(r,"".concat(N,"-page-container-ghost"),h),(0,A.Z)(r,"".concat(N,"-page-container-with-footer"),v),r)),P=(0,a.useMemo)(function(){return n?a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(T,"-children-content")},n),C.hasFooterToolbar&&a.createElement("div",{style:{height:48,marginTop:24}})):null},[n,T,C.hasFooterToolbar]),L=(0,a.useMemo)(function(){var D;return g==!1?!1:g||(u==null||(D=u.header)===null||D===void 0?void 0:D.breadcrumbRender)},[g,u==null||(t=u.header)===null||t===void 0?void 0:t.breadcrumbRender]),I=a.createElement(Nt,(0,b.Z)({},u,{breadcrumbRender:L,ghost:h,prefixCls:void 0,prefixedClassName:T})),U=(0,a.useMemo)(function(){if(a.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var D=Ot(s);return a.createElement(xt.Z,D)},[s]),te=(0,a.useMemo)(function(){var D=U||P;if(e.waterMarkProps||C.waterMarkProps){var ae=(0,Z.Z)((0,Z.Z)({},C.waterMarkProps),e.waterMarkProps);return a.createElement(bt,ae,D)}return D},[e.waterMarkProps,C.waterMarkProps,U,P]);return a.createElement("div",{style:d,className:H},f&&I?a.createElement(We,(0,b.Z)({offsetTop:C.hasHeader&&C.fixedHeader?C.headerHeight:0},m),I):I,te&&a.createElement(Ct.Z,null,te),v&&a.createElement(gt.Z,{prefixCls:N},v))},Mt=Tt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(ce,$,i){"use strict";var K=i(22122),S=i(67294),b=i(15105),A=function(p,j){var y={};for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&j.indexOf(a)<0&&(y[a]=p[a]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,a=Object.getOwnPropertySymbols(p);O2&&arguments[2]!==void 0?arguments[2]:!0,Re=Object.keys($).reduce(function(j,ee){var K=$[ee];return(0,Fe.Z)(K)||(j[ee]=K),j},{});if(Object.keys(Re).length<1||typeof window=="undefined"||(0,A.Z)(U)!=="object"||(0,Fe.Z)(U)||U instanceof Blob)return U;var ce=Array.isArray(U)?[]:{},me=function j(ee,K){var Le=Array.isArray(ee),re=Le?[]:{};return ee==null||ee===void 0?re:(Object.keys(ee).forEach(function(Ce){var qe=K?[K,Ce].flat(1):[Ce].flat(1),Q=ee[Ce],q=(0,N.Z)(Re,qe),Ae=function(){var I=typeof q=="function"?q==null?void 0:q(Q,Ce,ee):Ce;if(Array.isArray(I)){re=(0,M.Z)(re,I,Q);return}(0,A.Z)(I)==="object"&&!Array.isArray(ce)?ce=(0,g.Z)((0,g.Z)({},ce),I):(0,A.Z)(I)==="object"&&Array.isArray(ce)?re=(0,g.Z)((0,g.Z)({},re),I):I&&(re=(0,M.Z)(re,[I],Q))};if(q&&typeof q=="function"&&Ae(),typeof window!="undefined"){if(pe(Q)){var Ze=j(Q,qe);if(Object.keys(Ze).length<1)return;re=(0,M.Z)(re,[Ce],Ze);return}Ae()}}),se?re:ee)};return ce=Array.isArray(U)&&Array.isArray(ce)?(0,ue.Z)(me(U)):(0,He.T)({},me(U),ce),ce},je=Qe,Be=t(29405),Ge=0;function nr(C){var U=(0,E.useState)(function(){return C.proFieldKey?C.proFieldKey.toString():(Ge+=1,Ge.toString())}),$=(0,_.Z)(U,1),se=$[0],Re=(0,E.useRef)(se),ce=function(){var K=(0,L.Z)((0,S.Z)().mark(function Le(){var re,Ce;return(0,S.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,(re=C.request)===null||re===void 0?void 0:re.call(C,C.params,C);case 2:return Ce=Q.sent,Q.abrupt("return",Ce);case 4:case"end":return Q.stop()}},Le)}));return function(){return K.apply(this,arguments)}}();(0,E.useEffect)(function(){return function(){Ge+=1}},[]);var me=(0,Be.ZP)([Re.current,C.params],ce,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),j=me.data,ee=me.error;return[j||ee]}var Xe=nr,ar=t(96202),Sr=t(78822),mr=t(28664),de=t(91285),fr=t(1914),or=t(60222),b=t(45095),T=t(80334),ke=t(49111),ie=t(19650),J=t(57663),X=t(71577),ye=t(97435),ae=function(U){var $=(0,Pe.YB)();if(U.render===!1)return null;var se=U.form,Re=U.onSubmit,ce=U.render,me=U.onReset,j=U.searchConfig,ee=j===void 0?{}:j,K=U.submitButtonProps,Le=U.resetButtonProps,re=Le===void 0?{}:Le,Ce=function(){se.submit(),Re==null||Re()},qe=function(){se.resetFields(),me==null||me()},Q=ee.submitText,q=Q===void 0?$.getMessage("tableForm.submit","\u63D0\u4EA4"):Q,Ae=ee.resetText,Ze=Ae===void 0?$.getMessage("tableForm.reset","\u91CD\u7F6E"):Ae,Ee=[];re!==!1&&Ee.push(E.createElement(X.Z,(0,R.Z)({},(0,ye.Z)(re,["preventDefault"]),{key:"rest",onClick:function(br){var Je;(re==null?void 0:re.preventDefault)||qe(),re==null||(Je=re.onClick)===null||Je===void 0||Je.call(re,br)}}),Ze)),K!==!1&&Ee.push(E.createElement(X.Z,(0,R.Z)({type:"primary"},(0,ye.Z)(K||{},["preventDefault"]),{key:"submit",onClick:function(br){var Je;(K==null?void 0:K.preventDefault)||Ce(),K==null||(Je=K.onClick)===null||Je===void 0||Je.call(K,br)}}),q));var I=ce?ce((0,g.Z)((0,g.Z)({},U),{},{submit:Ce,reset:qe}),Ee):Ee;return I?Array.isArray(I)?(I==null?void 0:I.length)<1?null:(I==null?void 0:I.length)===1?I[0]:E.createElement(ie.Z,{wrap:!0},I):I:null},We=ae,Ve=t(66758),Ue=t(2514),oe=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","extraUrlParams","syncToUrl","syncToInitialValues","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Y=["request","params","initialValues","formKey"],xe=function(U,$,se){return U===!0?$:(0,ar.h)(U,$,se)},ve=function(U){return!U||Array.isArray(U)?U:[U]};function Ie(C){var U=C.children,$=C.contentRender,se=C.submitter,Re=C.fieldProps,ce=C.formItemProps,me=C.groupProps,j=C.dateFormatter,ee=j===void 0?"string":j,K=C.formRef,Le=C.onInit,re=C.form,Ce=C.formComponentType,qe=C.extraUrlParams,Q=qe===void 0?{}:qe,q=C.syncToUrl,Ae=C.syncToInitialValues,Ze=Ae===void 0?!0:Ae,Ee=C.onReset,I=C.omitNil,we=I===void 0?!0:I,br=C.isKeyPressSubmit,Je=C.autoFocusFirstInput,Or=Je===void 0?!0:Je,Ir=C.grid,Ur=C.rowProps,Kr=C.colProps,xr=(0,r.Z)(C,oe),Yr=(0,E.useContext)(p.ZP.SizeContext),at=D.Z.useForm(re),qr=(0,_.Z)(at,1),Hr=qr[0],$r=(0,b.l)({},{disabled:!q}),De=(0,_.Z)($r,2),Ar=De[0],gr=De[1],k=(0,E.useRef)(Hr||{}),Rr=(0,Ue.zx)({grid:Ir,rowProps:Ur}),ur=Rr.RowWrapper,Lr=(0,E.useRef)({}),dt=(0,E.useRef)({}),Br=(0,E.useCallback)(function(ze,Ne,Ke){return je((0,Sr.ZP)(ze,ee,Lr.current,Ne,Ke),dt.current,Ne)},[ee]),Xr=(0,E.useMemo)(function(){return{getFieldsFormatValue:function(Ne){var Ke;return Br((Ke=k.current)===null||Ke===void 0?void 0:Ke.getFieldsValue(Ne),we)},getFieldFormatValue:function(){var Ne,Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rr=ve(Ke);if(!rr)throw new Error("nameList is require");var hr=(Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldValue(rr),Wr=rr?(0,M.Z)({},rr,hr):hr;return(0,N.Z)(Br(Wr,we,rr),rr)},getFieldFormatValueObject:function(Ne){var Ke,rr=ve(Ne),hr=(Ke=k.current)===null||Ke===void 0?void 0:Ke.getFieldValue(rr),Wr=rr?(0,M.Z)({},rr,hr):hr;return Br(Wr,we,rr)},validateFieldsReturnFormatValue:function(){var ze=(0,L.Z)((0,S.Z)().mark(function Ke(rr){var hr,Wr,pr;return(0,S.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:if(!(!Array.isArray(rr)&&rr)){zr.next=2;break}throw new Error("nameList must be array");case 2:return zr.next=4,(hr=k.current)===null||hr===void 0?void 0:hr.validateFields(rr);case 4:return Wr=zr.sent,pr=Br(Wr,we),zr.abrupt("return",pr||{});case 7:case"end":return zr.stop()}},Ke)}));function Ne(Ke){return ze.apply(this,arguments)}return Ne}(),formRef:k}},[we,Br]),ot=(0,E.useMemo)(function(){var ze=(0,g.Z)({},k.current);return Object.keys(k.current||{}).forEach(function(Ne){Object.defineProperty(ze,Ne,{get:function(){return k.current[Ne]}})}),Object.keys(Xr).forEach(function(Ne){Object.defineProperty(ze,Ne,{get:function(){return Xr[Ne]}})}),ze},[]),Dr=(0,mr.Z)(!1),vt=(0,_.Z)(Dr,2),st=vt[0],_r=vt[1],mt=(0,E.useMemo)(function(){return E.Children.toArray(U).map(function(ze,Ne){return Ne===0&&E.isValidElement(ze)&&Or?E.cloneElement(ze,(0,g.Z)((0,g.Z)({},ze.props),{},{autoFocus:Or})):ze})},[Or,U]),et=(0,E.useMemo)(function(){return typeof se=="boolean"||!se?{}:se},[se]);(0,E.useImperativeHandle)(K,function(){return ot});var rt=(0,E.useMemo)(function(){if(se!==!1)return E.createElement(We,(0,R.Z)({key:"submitter"},et,{onReset:function(){var Ne,Ke,rr=Br((Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldsValue(),we);if(et==null||(Ke=et.onReset)===null||Ke===void 0||Ke.call(et,rr),Ee==null||Ee(rr),q){var hr,Wr=Object.keys(Br((hr=k.current)===null||hr===void 0?void 0:hr.getFieldsValue(),!1)).reduce(function(pr,Gr){return(0,g.Z)((0,g.Z)({},pr),{},(0,h.Z)({},Gr,rr[Gr]||void 0))},Q);gr(xe(q,Wr,"set"))}},form:ot,submitButtonProps:(0,g.Z)({loading:st},et.submitButtonProps)}))},[se,et,ot,st,Br,we,Ee,q,Q,gr]),Et=(0,E.useMemo)(function(){var ze=Ir?E.createElement(ur,null,mt):mt;return $?$(ze,rt,k.current):ze},[Ir,ur,mt,$,rt]),tt=(0,E.useMemo)(function(){if(typeof window!="undefined"&&Ce&&["DrawerForm"].includes(Ce))return function(ze){return ze.parentNode||document.body}},[Ce]);(0,E.useEffect)(function(){var ze,Ne=Br((ze=k.current)===null||ze===void 0?void 0:ze.getFieldsValue(!0),we);Le==null||Le(Ne,ot)},[]);var ht=(0,E.useState)(function(){return q?xe(q,Ar,"get"):{}}),ft=(0,_.Z)(ht,2),pt=ft[0],Pt=ft[1];(0,E.useEffect)(function(){Ze||Pt({})},[Ze]);var yt=(0,de.Z)(C.initialValues);return(0,E.useEffect)(function(){if(!(q||!C.initialValues||!yt||xr.request)){var ze=(0,fr.Z)(C.initialValues,yt);(0,T.ET)(ze,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ?
: null "),(0,T.ET)(ze,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[C.initialValues]),(0,E.useEffect)(function(){!q||gr((0,g.Z)((0,g.Z)({},Ar),Q))},[Q,q]),E.createElement(Ve.Z.Provider,{value:{formRef:k,fieldProps:Re,formItemProps:ce,groupProps:me,formComponentType:Ce,getPopupContainer:tt,setFieldValueType:function(Ne,Ke){var rr=Ke.valueType,hr=rr===void 0?"text":rr,Wr=Ke.dateFormat,pr=Ke.transform;!Array.isArray(Ne)||(dt.current=(0,M.Z)(dt.current,Ne,pr),Lr.current=(0,M.Z)(Lr.current,Ne,{valueType:hr,dateFormat:Wr}))}}},E.createElement(or.Z.Provider,{value:Xr},E.createElement(p.ZP.SizeContext.Provider,{value:xr.size||Yr},E.createElement(Ue._p.Provider,{value:{grid:Ir,colProps:Kr}},E.createElement(D.Z,(0,R.Z)({onKeyPress:function(Ne){if(!!br&&Ne.key==="Enter"){var Ke;(Ke=k.current)===null||Ke===void 0||Ke.submit()}},form:Hr},xr,{initialValues:(0,g.Z)((0,g.Z)({},pt),xr.initialValues),onValuesChange:function(Ne,Ke){var rr;xr==null||(rr=xr.onValuesChange)===null||rr===void 0||rr.call(xr,Br(Ne,we),Br(Ke,we))},onFinish:(0,L.Z)((0,S.Z)().mark(function ze(){var Ne,Ke,rr,hr;return(0,S.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(xr.onFinish){pr.next=2;break}return pr.abrupt("return");case 2:if(!st){pr.next=4;break}return pr.abrupt("return");case 4:return _r(!0),pr.prev=5,Ke=Br((Ne=k.current)===null||Ne===void 0?void 0:Ne.getFieldsValue(),we),pr.next=9,xr.onFinish(Ke);case 9:q&&(hr=Object.keys(Br((rr=k.current)===null||rr===void 0?void 0:rr.getFieldsValue(),!1)).reduce(function(Gr,zr){var ut;return(0,g.Z)((0,g.Z)({},Gr),{},(0,h.Z)({},zr,(ut=Ke[zr])!==null&&ut!==void 0?ut:void 0))},Q),Object.keys(Ar).forEach(function(Gr){hr[Gr]!==!1&&hr[Gr]!==0&&!hr[Gr]&&(hr[Gr]=void 0)}),gr(xe(q,hr,"set"))),_r(!1),pr.next=16;break;case 13:pr.prev=13,pr.t0=pr.catch(5),_r(!1);case 16:case"end":return pr.stop()}},ze,null,[[5,13]])}))}),xr.component!==!1&&E.createElement("input",{type:"text",style:{display:"none"}}),E.createElement(D.Z.Item,{noStyle:!0,shouldUpdate:!0},function(ze){return K&&(K.current=(0,g.Z)((0,g.Z)({},ze),Xr)),k.current=ze,null}),Et)))))}var Oe=0;function er(C){var U=C.request,$=C.params,se=C.initialValues,Re=C.formKey,ce=Re===void 0?Oe:Re,me=(0,r.Z)(C,Y);(0,E.useEffect)(function(){Oe+=0},[]);var j=Xe({request:U,params:$,proFieldKey:ce}),ee=(0,_.Z)(j,1),K=ee[0];return!K&&C.request?E.createElement("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"}},E.createElement(i.Z,null)):E.createElement(Pe.oK,null,E.createElement(Ie,(0,R.Z)({autoComplete:"off"},me,{initialValues:(0,g.Z)((0,g.Z)({},se),K)})))}},71436:function(Pr,ge,t){"use strict";t.d(ge,{G:function(){return Ge}});var v=t(22122),i=t(96156),R=t(28481),h=t(28991),g=t(81253),S=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function L(nr){var Xe={};return S.forEach(function(ar){nr[ar]!==void 0&&(Xe[ar]=nr[ar])}),Xe}var B=t(37004),D=t(91285),_=t(1914),he=t(94184),p=t.n(he),r=t(48526),Pe=t(80334),ue=t(67294),A=t(30939),N=t(87808),M=t(97462),E=t(66758),Fe=t(2514),He=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],pe=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],Qe=Symbol("ProFormComponent"),je={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Be=["switch","radioButton","radio","rate"];function Ge(nr,Xe){nr.displayName="ProFormComponent";var ar=function(de){var fr=(0,h.Z)((0,h.Z)({},de==null?void 0:de.filedConfig),Xe)||{},or=fr.valueType,b=fr.customLightMode,T=fr.lightFilterLabelFormatter,ke=fr.valuePropName,ie=ke===void 0?"value":ke,J=fr.ignoreWidth,X=fr.defaultProps,ye=(0,g.Z)(fr,He),ae=(0,h.Z)((0,h.Z)({},X),de),We=ae.label,Ve=ae.tooltip,Ue=ae.placeholder,oe=ae.width,Y=ae.bordered,xe=ae.messageVariables,ve=ae.ignoreFormItem,Ie=ae.transform,Oe=ae.convertValue,er=ae.readonly,C=ae.allowClear,U=ae.colSize,$=ae.getFormItemProps,se=ae.getFieldProps,Re=ae.filedConfig,ce=ae.cacheForSwr,me=ae.proFieldProps,j=(0,g.Z)(ae,pe),ee=or||j.valueType,K=(0,ue.useMemo)(function(){return J||Be.includes(ee)},[J,ee]),Le=(0,ue.useState)(),re=(0,R.Z)(Le,2),Ce=re[1],qe=(0,ue.useState)(),Q=(0,R.Z)(qe,2),q=Q[0],Ae=Q[1],Ze=ue.useContext(E.Z),Ee=(0,ue.useMemo)(function(){return{formItemProps:$==null?void 0:$(),fieldProps:se==null?void 0:se()}},[se,$,j.dependenciesValues,q]),I=(0,ue.useMemo)(function(){var k=(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},ve?(0,B.Z)({value:j.value}):{}),{},{placeholder:Ue,disabled:de.disabled},Ze.fieldProps),Ee.fieldProps),j.fieldProps);return k.style=(0,B.Z)(k==null?void 0:k.style),k},[ve,j.value,j.fieldProps,Ue,de.disabled,Ze.fieldProps,Ee.fieldProps]),we=L(j),br=(0,ue.useMemo)(function(){return(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},Ze.formItemProps),we),Ee.formItemProps),j.formItemProps)},[Ee.formItemProps,Ze.formItemProps,j.formItemProps,we]),Je=(0,ue.useMemo)(function(){return(0,h.Z)((0,h.Z)({messageVariables:xe},ye),br)},[ye,br,xe]);(0,Pe.ET)(!j.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Or=(0,ue.useContext)(r.zb),Ir=Or.prefixName,Ur=(0,ue.useMemo)(function(){var k=Je==null?void 0:Je.name;return Array.isArray(k)&&(k=k.join("_")),Array.isArray(Ir)&&k&&(k="".concat(Ir.join("."),".").concat(k)),k&&"form-field-".concat(k)},[(0,A.P)(Je==null?void 0:Je.name),Ir]),Kr=(0,D.Z)(j),xr=(0,ue.useCallback)(function(){var k;$||se?Ae([]):j.renderFormItem&&Ce([]);for(var Rr=arguments.length,ur=new Array(Rr),Lr=0;Lr1&&arguments[1]!==void 0?arguments[1]:100,a=arguments.length>2?arguments[2]:void 0,n=(0,r.useState)(f),l=(0,A.Z)(n,2),u=l[0],s=l[1],o=(0,T.Z)(f);return(0,r.useEffect)(function(){var d=setTimeout(function(){s(o.current)},e);return function(){return clearTimeout(d)}},a?[e].concat((0,Be.Z)(a)):void 0),u}var ie=t(29405),J=t(54029),X=t(79166),ye=t(52436),ae={Success:function(e){var a=e.children;return r.createElement(X.Z,{status:"success",text:a})},Error:function(e){var a=e.children;return r.createElement(X.Z,{status:"error",text:a})},Default:function(e){var a=e.children;return r.createElement(X.Z,{status:"default",text:a})},Processing:function(e){var a=e.children;return r.createElement(X.Z,{status:"processing",text:a})},Warning:function(e){var a=e.children;return r.createElement(X.Z,{status:"warning",text:a})},success:function(e){var a=e.children;return r.createElement(X.Z,{status:"success",text:a})},error:function(e){var a=e.children;return r.createElement(X.Z,{status:"error",text:a})},default:function(e){var a=e.children;return r.createElement(X.Z,{status:"default",text:a})},processing:function(e){var a=e.children;return r.createElement(X.Z,{status:"processing",text:a})},warning:function(e){var a=e.children;return r.createElement(X.Z,{status:"warning",text:a})}},We=function(e){var a=e.color,n=e.children;return r.createElement(X.Z,{color:a,text:n})},Ve=ae,Ue=t(78848),oe=t(43358),Y=t(34041),xe=t(47673),ve=t(4107),Ie=t(96156),Oe=t(76570),er=t(59949),C=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],U=function(e,a){return(0,S.Z)(a)!=="object"?e[a]||a:e[a==null?void 0:a.value]||a.label},$=function(e,a){var n=e.label,l=e.prefixCls,u=e.onChange,s=e.value,o=e.mode,d=e.children,c=e.defaultValue,m=e.size,y=e.showSearch,P=e.disabled,Z=e.style,w=e.className,F=e.bordered,O=e.options,te=e.onSearch,H=e.allowClear,W=e.labelInValue,le=e.fieldNames,ne=e.lightLabel,z=e.labelTrigger,be=(0,R.Z)(e,C),Se=e.placeholder,Me=Se===void 0?n:Se,Ye=le||{},x=Ye.label,fe=x===void 0?"label":x,V=Ye.value,G=V===void 0?"value":V,sr=(0,r.useContext)(M.ZP.ConfigContext),Zr=sr.getPrefixCls,vr=Zr("pro-field-select-light-select"),cr=(0,r.useState)(!1),lr=(0,A.Z)(cr,2),dr=lr[0],_e=lr[1],Mr=(0,r.useState)(""),wr=(0,A.Z)(Mr,2),Fr=wr[0],Tr=wr[1],Nr=(0,r.useMemo)(function(){var Cr={};return O==null||O.forEach(function(tr){var Er=tr[fe],$e=tr[G];Cr[$e]=Er||$e}),Cr},[fe,O,G]),jr=Array.isArray(s)?s.map(function(Cr){return U(Nr,Cr)}):U(Nr,s);return r.createElement("div",{className:pe()(vr,(0,Ie.Z)({},"".concat(vr,"-searchable"),y),w),style:Z,onClick:function(tr){var Er,$e,Te;if(!P){var yr=ne==null||(Er=ne.current)===null||Er===void 0||($e=Er.labelRef)===null||$e===void 0||(Te=$e.current)===null||Te===void 0?void 0:Te.contains(tr.target);_e(yr?!dr:!0)}}},r.createElement(Y.Z,(0,v.Z)({},be,{allowClear:H,value:s,mode:o,labelInValue:W,size:m,disabled:P,onChange:function(tr,Er){u==null||u(tr,Er),o!=="multiple"&&setTimeout(function(){_e(!1)},0)},bordered:F,showSearch:y,onSearch:te,style:Z,dropdownRender:function(tr){return r.createElement("div",{ref:a},y&&r.createElement("div",{style:{margin:"4px 8px"}},r.createElement(ve.Z,{value:Fr,allowClear:H,onChange:function($e){Tr($e.target.value.toLowerCase()),te==null||te($e.target.value)},onKeyDown:function($e){$e.stopPropagation()},style:{width:"100%"},prefix:r.createElement(Oe.Z,null)})),tr)},open:dr,onDropdownVisibleChange:function(tr){tr||setTimeout(function(){Tr("")},0),z||_e(tr)},prefixCls:l,options:Fr?O==null?void 0:O.filter(function(Cr){var tr,Er,$e,Te,yr;return((tr=String(Cr[fe]))===null||tr===void 0||(Er=tr.toLowerCase())===null||Er===void 0?void 0:Er.includes(Fr))||(($e=Cr[G])===null||$e===void 0||(Te=$e.toString())===null||Te===void 0||(yr=Te.toLowerCase())===null||yr===void 0?void 0:yr.includes(Fr))}):O})),r.createElement(Fe.Z,{ellipsis:!0,size:m,label:n,placeholder:Me,disabled:P,expanded:dr,bordered:F,allowClear:H,value:jr||(s==null?void 0:s.label)||s,onClear:function(){u==null||u(void 0,void 0)},ref:ne}))},se=r.forwardRef($),Re=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],ce=Y.Z.Option,me=Y.Z.OptGroup,j=function(e,a){var n=e.optionItemRender,l=e.mode,u=e.onSearch,s=e.onFocus,o=e.onChange,d=e.autoClearSearchValue,c=e.searchOnFocus,m=c===void 0?!1:c,y=e.resetAfterSelect,P=y===void 0?!1:y,Z=e.fetchDataOnSearch,w=Z===void 0?!0:Z,F=e.optionFilterProp,O=F===void 0?"label":F,te=e.optionLabelProp,H=te===void 0?"label":te,W=e.className,le=e.disabled,ne=e.options,z=e.fetchData,be=e.resetData,Se=e.prefixCls,Me=e.onClear,Ye=e.searchValue,x=e.showSearch,fe=e.fieldNames,V=(0,R.Z)(e,Re),G=fe||{},sr=G.label,Zr=sr===void 0?"label":sr,vr=G.value,cr=vr===void 0?"value":vr,lr=G.options,dr=lr===void 0?"options":lr,_e=(0,r.useState)(Ye),Mr=(0,A.Z)(_e,2),wr=Mr[0],Fr=Mr[1],Tr=(0,r.useRef)();(0,r.useImperativeHandle)(a,function(){return Tr.current}),(0,r.useEffect)(function(){if(V.autoFocus){var Te;Tr==null||(Te=Tr.current)===null||Te===void 0||Te.focus()}},[V.autoFocus]),(0,r.useEffect)(function(){Fr(Ye)},[Ye]);var Nr=(0,r.useContext)(M.ZP.ConfigContext),jr=Nr.getPrefixCls,Cr=jr("pro-filed-search-select",Se),tr=pe()(Cr,W,(0,Ie.Z)({},"".concat(Cr,"-disabled"),le)),Er=function(yr,ir){return Array.isArray(yr)&&yr.length>0?yr.map(function(Jr,Qr){var Vr=ir==null?void 0:ir[Qr],nt=(Vr==null?void 0:Vr["data-item"])||{};return(0,i.Z)((0,i.Z)({},nt),Jr)}):[]},$e=function Te(yr){return yr.map(function(ir){var Jr,Qr=ir.disabled,Vr=ir.className,nt=ir.optionType,kr=ir[Zr],ct=ir[cr],it=(Jr=ir[dr])!==null&&Jr!==void 0?Jr:[];return nt==="optGroup"||ir.options?r.createElement(me,{key:ct,label:kr},Te(it)):r.createElement(ce,(0,v.Z)({},ir,{value:ct,key:ct||(kr==null?void 0:kr.toString()),disabled:Qr,"data-item":ir,className:"".concat(Cr,"-option ").concat(Vr||""),label:kr}),(n==null?void 0:n(ir))||kr)})};return r.createElement(Y.Z,(0,v.Z)({ref:Tr,className:tr,allowClear:!0,autoClearSearchValue:d,disabled:le,mode:l,showSearch:x,searchValue:wr,optionFilterProp:O,optionLabelProp:H,onClear:function(){Me==null||Me(),z(""),x&&Fr("")}},V,{onSearch:x?function(Te){w&&z(Te),u==null||u(Te),Fr(Te)}:void 0,onChange:function(yr,ir){x&&d&&(z(""),u==null||u(""),Fr(""));for(var Jr=arguments.length,Qr=new Array(Jr>2?Jr-2:0),Vr=2;VrG?le([G,V]):V===void 0&&G===void 0&&le(void 0)}},Se=function(fe,V){var G=(0,Be.Z)(W||[]);G[fe]=V===null?void 0:V,le(G)},Me=(d==null?void 0:d.placeholder)||s,Ye=r.createElement(ve.Z.Group,{compact:!0,onBlur:be},r.createElement(tt.Z,(0,v.Z)({},d,{placeholder:Array.isArray(Me)?Me[0]:Me,id:O!=null?O:"".concat(O,"-0"),style:{width:"calc((100% - ".concat(P,"px) / 2)")},value:W==null?void 0:W[0],defaultValue:w==null?void 0:w[0],onChange:function(fe){return Se(0,fe)}})),r.createElement(ve.Z,{style:{width:P,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:m,disabled:!0}),r.createElement(tt.Z,(0,v.Z)({},d,{placeholder:Array.isArray(Me)?Me[1]:Me,id:O!=null?O:"".concat(O,"-1"),style:{width:"calc((100% - ".concat(P,"px) / 2)"),borderLeft:0},value:W==null?void 0:W[1],defaultValue:w==null?void 0:w[1],onChange:function(fe){return Se(1,fe)}})));return o?o(n,(0,i.Z)({mode:l},d),Ye):Ye}return null},Pt=r.forwardRef(pt),yt=t(22385),ze=t(61580),Ne=function(e){var a=e.text,n=e.mode,l=e.render,u=e.renderFormItem,s=e.format,o=e.fieldProps,d=(0,L.YB)();if(n==="read"){var c=r.createElement(ze.Z,{title:Dr()(a).format((o==null?void 0:o.format)||s||"YYYY-MM-DD HH:mm:ss")},Dr()(a).fromNow());return l?l(a,(0,i.Z)({mode:n},o),r.createElement(r.Fragment,null,c)):r.createElement(r.Fragment,null,c)}if(n==="edit"||n==="update"){var m=d.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),y=_r(o.value),P=r.createElement(Xr.Z,(0,v.Z)({placeholder:m,showTime:!0},o,{value:y}));return u?u(a,(0,i.Z)({mode:n},o),P):P}return null},Ke=Ne,rr=t(12968),hr=t(62462),Wr=r.forwardRef(function(f,e){var a=f.text,n=f.mode,l=f.render,u=f.renderFormItem,s=f.fieldProps,o=f.placeholder,d=f.width;if(n==="read"){var c=r.createElement(hr.Z,(0,v.Z)({ref:e,width:d||32,src:a},s));return l?l(a,(0,i.Z)({mode:n},s),c):c}if(n==="edit"||n==="update"){var m=r.createElement(ve.Z,(0,v.Z)({ref:e,placeholder:o},s));return u?u(a,(0,i.Z)({mode:n},s),m):m}return null}),pr=Wr,Gr=t(98849),zr=function(e,a){var n,l=e.border,u=l===void 0?!1:l,s=e.children,o=(0,r.useContext)(M.ZP.ConfigContext),d=o.getPrefixCls,c=d("pro-field-index-column");return r.createElement("div",{ref:a,className:pe()(c,(n={},(0,Ie.Z)(n,"".concat(c,"-border"),u),(0,Ie.Z)(n,"top-three",s>3),n))},s)},ut=r.forwardRef(zr),bt=t(97435),wt=["content","numberFormatOptions","numberPopoverRender"],$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Wt=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),zt={style:"currency",currency:"USD"},jt={style:"currency",currency:"RUB"},Vt={style:"currency",currency:"RSD"},Ut={style:"currency",currency:"MYR"},Kt={style:"currency",currency:"BRL"},St={default:Wt,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":zt,"ru-RU":jt,"ms-MY":Ut,"sr-RS":Vt,"pt-BR":Kt},Rt=function(e,a,n,l){var u=a;return typeof u=="string"&&(u=Number(u)),!u&&u!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},St[e||"zh-Hans-CN"]||St["zh-Hans-CN"]),{},{maximumFractionDigits:n},l)).format(u)},Ft=2,Yt=r.forwardRef(function(f,e){var a=f.content,n=f.numberFormatOptions,l=f.numberPopoverRender,u=(0,R.Z)(f,wt),s=(0,gr.Z)(function(){return u.defaultValue},{value:u.value,onChange:u.onChange}),o=(0,A.Z)(s,2),d=o[0],c=o[1],m=a==null?void 0:a((0,i.Z)((0,i.Z)({},u),{},{value:d})),y={visible:m?u.visible:!1};return r.createElement(De.Z,(0,v.Z)({placement:"topLeft"},y,{trigger:["focus","click"],content:m,getPopupContainer:function(Z){return(Z==null?void 0:Z.parentElement)||document.body}}),r.createElement(tt.Z,(0,v.Z)({ref:e},u,{value:d,onChange:c})))}),Ht=function(e,a){var n,l,u=e.text,s=e.mode,o=e.render,d=e.renderFormItem,c=e.fieldProps,m=e.proFieldKey,y=e.plain,P=e.valueEnum,Z=e.placeholder,w=e.locale,F=w===void 0?(n=c.customSymbol)!==null&&n!==void 0?n:"zh-Hans-CN":w,O=e.customSymbol,te=O===void 0?c.customSymbol:O,H=e.numberFormatOptions,W=H===void 0?c==null?void 0:c.numberFormatOptions:H,le=e.numberPopoverRender,ne=le===void 0?(c==null?void 0:c.numberPopoverRender)||!1:le,z=(0,R.Z)(e,$t),be=(l=c==null?void 0:c.precision)!==null&&l!==void 0?l:Ft,Se=(0,L.YB)();F&&L.Go[F]&&(Se=L.Go[F]);var Me=(0,r.useMemo)(function(){if(te)return te;var fe=Se.getMessage("moneySymbol","\uFFE5");if(!(z.moneySymbol===!1||c.moneySymbol===!1))return fe},[te,c.moneySymbol,Se,z.moneySymbol]);if(s==="read"){var Ye=r.createElement("span",{ref:a},Rt(Me?F:!1,u,be,W!=null?W:c.numberFormatOptions));return o?o(u,(0,i.Z)({mode:s},c),Ye):Ye}if(s==="edit"||s==="update"){var x=r.createElement(Yt,(0,v.Z)({content:function(V){var G,sr;if(ne!==!1&&!!V.value){var Zr=new RegExp("/B(?=(d{".concat(3+(be-Ft),"})+(?!d))/g")),vr=Rt(Me?F:!1,(G=V.value)===null||G===void 0||(sr=G.toString())===null||sr===void 0?void 0:sr.replace(Zr,","),be,(0,i.Z)((0,i.Z)({},W),{},{notation:"compact"}));return typeof ne=="function"?ne==null?void 0:ne(V,vr):vr}},ref:a,precision:be,formatter:function(V){if(V&&Me){var G=new RegExp("/B(?=(d{".concat(3+(be-Ft),"})+(?!d))/g"));return"".concat(Me," ").concat(V).replace(G,",")}return V==null?void 0:V.toString()},parser:function(V){return Me&&V?V.replace(new RegExp("\\".concat(Me,"\\s?|(,*)"),"g"),""):V},placeholder:Z},(0,bt.Z)(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol"])));return d?d(u,(0,i.Z)({mode:s},c),x):x}return null},Dt=r.forwardRef(Ht),Mt=function(e){return e.map(function(a,n){return r.isValidElement(a)?r.cloneElement(a,(0,i.Z)({key:n},a==null?void 0:a.props)):r.createElement(r.Fragment,{key:n},a)})},Gt=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.fieldProps,o=(0,r.useContext)(M.ZP.ConfigContext),d=o.getPrefixCls,c=d("pro-field-option");if((0,r.useImperativeHandle)(a,function(){return{}}),u){var m=u(n,(0,i.Z)({mode:l},s),r.createElement(r.Fragment,null));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:r.createElement(nr.Z,{size:16,className:c},Mt(m))}return!n||!Array.isArray(n)?r.isValidElement(n)?n:null:r.createElement(nr.Z,{size:16,className:c},Mt(n))},Jt=r.forwardRef(Gt),Qt=t(95357),Xt=t(88633),kt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],qt=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.proFieldKey,c=(0,R.Z)(e,kt),m=(0,L.YB)(),y=(0,gr.Z)(function(){return c.visible||!1},{value:c.visible,onChange:c.onVisible}),P=(0,A.Z)(y,2),Z=P[0],w=P[1];if(l==="read"){var F=r.createElement(r.Fragment,null,"-");return n&&(F=r.createElement(nr.Z,null,r.createElement("span",{ref:a},Z?n:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"),r.createElement("a",{onClick:function(){return w(!Z)}},Z?r.createElement(Qt.Z,null):r.createElement(Xt.Z,null)))),u?u(n,(0,i.Z)({mode:l},o),F):F}if(l==="edit"||l==="update"){var O=r.createElement(ve.Z.Password,(0,v.Z)({placeholder:m.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},o));return s?s(n,(0,i.Z)({mode:l},o),O):O}return null},_t=r.forwardRef(qt),en=t(49323),gt=t.n(en);function rn(f){return f===0?null:f>0?"+":"-"}function tn(f){return f===0?"#595959":f>0?"#ff4d4f":"#52c41a"}function nn(f){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?f.toFixed(e):f}var an=function(e,a){var n=e.text,l=e.prefix,u=e.precision,s=e.suffix,o=s===void 0?"%":s,d=e.mode,c=e.showColor,m=c===void 0?!1:c,y=e.render,P=e.renderFormItem,Z=e.fieldProps,w=e.placeholder,F=e.showSymbol,O=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?gt()(n.replace("%","")):gt()(n)},[n]),te=(0,r.useMemo)(function(){return typeof F=="function"?F==null?void 0:F(n):F},[F,n]);if(d==="read"){var H=m?{color:tn(O)}:{},W=r.createElement("span",{style:H,ref:a},l&&r.createElement("span",null,l),te&&r.createElement(r.Fragment,null,rn(O)," "),nn(Math.abs(O),u),o&&o);return y?y(n,(0,i.Z)((0,i.Z)({mode:d},Z),{},{prefix:l,precision:u,showSymbol:te,suffix:o}),W):W}if(d==="edit"||d==="update"){var le=r.createElement(tt.Z,(0,v.Z)({ref:a,formatter:function(z){return z&&l?"".concat(l," ").concat(z).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):z},parser:function(z){return z?z.replace(/.*\s|,/g,""):""},placeholder:w},Z));return P?P(n,(0,i.Z)({mode:d},Z),le):le}return null},Tt=r.forwardRef(an),Yn=t(34669),ln=t(54458);function on(f){return f===100?"success":f<0?"exception":f<100?"active":"normal"}var un=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.plain,o=e.renderFormItem,d=e.fieldProps,c=e.placeholder,m=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?gt()(n.replace("%","")):gt()(n)},[n]);if(l==="read"){var y=r.createElement(ln.Z,(0,v.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:s?10:void 0,status:on(m)},d));return u?u(m,(0,i.Z)({mode:l},d),y):y}if(l==="edit"||l==="update"){var P=r.createElement(tt.Z,(0,v.Z)({ref:a,placeholder:c},d));return o?o(n,(0,i.Z)({mode:l},d),P):P}return null},It=r.forwardRef(un),Hn=t(88983),Ct=t(47933),Gn=t(877),dn=["radioType","renderFormItem","mode","render"],sn=function(e,a){var n=e.radioType,l=e.renderFormItem,u=e.mode,s=e.render,o=(0,R.Z)(e,dn),d=(0,r.useContext)(M.ZP.ConfigContext),c=d.getPrefixCls,m=c("pro-field-radio"),y=Ze(o),P=(0,A.Z)(y,3),Z=P[0],w=P[1],F=P[2],O=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},O.current||{}),{},{fetchData:function(){return F()}})}),Z)return r.createElement(je.Z,{size:"small"});if(u==="read"){var te=(w==null?void 0:w.length)?w==null?void 0:w.reduce(function(z,be){var Se;return(0,i.Z)((0,i.Z)({},z),{},(0,Ie.Z)({},(Se=be.value)!==null&&Se!==void 0?Se:"",be.label))},{}):void 0,H=r.createElement(r.Fragment,null,Ce(o.text,re(o.valueEnum||te)));return s?s(o.text,(0,i.Z)({mode:u},o.fieldProps),H)||null:H}if(u==="edit"){var W,le=n==="button"?Ct.ZP.Button:Ct.ZP,ne=r.createElement(Ct.ZP.Group,(0,v.Z)({ref:O},o.fieldProps,{className:pe()((W=o.fieldProps)===null||W===void 0?void 0:W.className,"".concat(m,"-").concat(o.fieldProps.layout||"horizontal")),options:void 0}),w==null?void 0:w.map(function(z){return r.createElement(le,(0,v.Z)({key:z.value},z),z.label)}));return l?l(o.text,(0,i.Z)({mode:u},o.fieldProps),ne)||null:ne}return null},Ot=r.forwardRef(sn),cn=function(e,a){var n=e.text,l=e.mode,u=e.format,s=e.render,o=e.renderFormItem,d=e.plain,c=e.showTime,m=e.fieldProps,y=(0,L.YB)(),P=Array.isArray(n)?n:[],Z=(0,A.Z)(P,2),w=Z[0],F=Z[1],O=(0,r.useCallback)(function(z){if(typeof(m==null?void 0:m.format)=="function"){var be;return m==null||(be=m.format)===null||be===void 0?void 0:be.call(m,z)}return(m==null?void 0:m.format)||u||"YYYY-MM-DD"},[m,u]),te=w?Dr()(w).format(O(Dr()(w))):"",H=F?Dr()(F).format(O(Dr()(F))):"";if(l==="read"){var W=r.createElement("div",{ref:a},r.createElement("div",null,te||"-"),r.createElement("div",null,H||"-"));return s?s(n,(0,i.Z)({mode:l},m),r.createElement("span",null,W)):W}if(l==="edit"||l==="update"){var le=_r(m.value),ne=r.createElement(Xr.Z.RangePicker,(0,v.Z)({ref:a,format:u,showTime:c,placeholder:[y.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),y.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:d===void 0?!0:!d},m,{value:le}));return o?o(n,(0,i.Z)({mode:l},m),ne):ne}return null},Lt=r.forwardRef(cn),Jn=t(96433),At=t(2864),vn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps;if(l==="read"){var d=r.createElement(At.Z,(0,v.Z)({allowHalf:!0,disabled:!0,ref:a},o,{value:n}));return u?u(n,(0,i.Z)({mode:l},o),r.createElement(r.Fragment,null,d)):d}if(l==="edit"||l==="update"){var c=r.createElement(At.Z,(0,v.Z)({allowHalf:!0,ref:a},o));return s?s(n,(0,i.Z)({mode:l},o),c):c}return null},mn=r.forwardRef(vn);function fn(f){var e="",a=Math.floor(f/(3600*24)),n=Math.floor(f/3600),l=Math.floor(f/60%60),u=Math.floor(f%60);return e="".concat(u,"\u79D2"),l>0&&(e="".concat(l,"\u5206\u949F").concat(e)),n>0&&(e="".concat(n,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var gn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.placeholder;if(l==="read"){var c=fn(Number(n)),m=r.createElement("span",{ref:a},c);return u?u(n,(0,i.Z)({mode:l},o),m):m}if(l==="edit"||l==="update"){var y=r.createElement(tt.Z,(0,v.Z)({ref:a,min:0,style:{width:"100%"},placeholder:d},o));return s?s(n,(0,i.Z)({mode:l},o),y):y}return null},hn=r.forwardRef(gn),Qn=t(77576),pn=t(12028),Pn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=(0,L.YB)(),c=(0,r.useMemo)(function(){var P,Z;return n==null||"".concat(n).length<1?"-":n?(P=o==null?void 0:o.checkedChildren)!==null&&P!==void 0?P:d.getMessage("switch.open","\u6253\u5F00"):(Z=o==null?void 0:o.unCheckedChildren)!==null&&Z!==void 0?Z:d.getMessage("switch.close","\u5173\u95ED")},[o==null?void 0:o.checkedChildren,o==null?void 0:o.unCheckedChildren,n]);if(l==="read")return u?u(n,(0,i.Z)({mode:l},o),r.createElement(r.Fragment,null,c)):c!=null?c:"-";if(l==="edit"||l==="update"){var m,y=r.createElement(pn.Z,(0,v.Z)({ref:a},(0,bt.Z)(o,["value"]),{checked:(m=o==null?void 0:o.checked)!==null&&m!==void 0?m:o==null?void 0:o.value}));return s?s(n,(0,i.Z)({mode:l},o),y):y}return null},yn=r.forwardRef(Pn),Fn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=e.emptyText,c=d===void 0?"-":d,m=o||{},y=m.autoFocus,P=m.prefix,Z=P===void 0?"":P,w=m.suffix,F=w===void 0?"":w,O=(0,L.YB)(),te=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return te.current}),(0,r.useEffect)(function(){if(y){var z;(z=te.current)===null||z===void 0||z.focus()}},[y]),l==="read"){var H=r.createElement(r.Fragment,null,Z,n!=null?n:c,F);if(u){var W;return(W=u(n,(0,i.Z)({mode:l},o),H))!==null&&W!==void 0?W:c}return H}if(l==="edit"||l==="update"){var le=O.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ne=r.createElement(ve.Z,(0,v.Z)({ref:te,placeholder:le,allowClear:!0},o));return s?s(n,(0,i.Z)({mode:l},o),ne):ne}return null},Cn=r.forwardRef(Fn),xn=function(e,a){var n=e.text,l=e.mode,u=e.render,s=e.renderFormItem,o=e.fieldProps,d=(0,L.YB)();if(l==="read"){var c=r.createElement("span",{ref:a},n!=null?n:"-");return u?u(n,(0,i.Z)({mode:l},o),c):c}if(l==="edit"||l==="update"){var m=r.createElement(ve.Z.TextArea,(0,v.Z)({ref:a,rows:3,onKeyPress:function(P){P.key==="Enter"&&P.stopPropagation()},placeholder:d.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},o));return s?s(n,(0,i.Z)({mode:l},o),m):m}return null},Zn=r.forwardRef(xn),Xn=t(39002),Nt=t(68351),En=function(e,a){var n=e.text,l=e.mode,u=e.light,s=e.label,o=e.format,d=e.render,c=e.renderFormItem,m=e.plain,y=e.fieldProps,P=e.lightLabel,Z=e.labelTrigger,w=(0,r.useState)(!1),F=(0,A.Z)(w,2),O=F[0],te=F[1],H=(0,r.useContext)(M.ZP.SizeContext),W=(0,r.useContext)(M.ZP.ConfigContext),le=W.getPrefixCls,ne=le("pro-field-date-picker"),z=(y==null?void 0:y.format)||o||"HH:mm:ss",be=Dr().isMoment(n)||typeof n=="number";if(l==="read"){var Se=r.createElement("span",{ref:a},n?Dr()(n,be?void 0:z).format(z):"-");return d?d(n,(0,i.Z)({mode:l},y),r.createElement("span",null,Se)):Se}if(l==="edit"||l==="update"){var Me,Ye=y.disabled,x=y.onChange,fe=y.placeholder,V=y.allowClear,G=y.value,sr=_r(G,z);if(u){var Zr=sr&&sr.format(z)||"";Me=r.createElement("div",{className:"".concat(ne,"-light"),onClick:function(cr){var lr,dr,_e,Mr=P==null||(lr=P.current)===null||lr===void 0||(dr=lr.labelRef)===null||dr===void 0||(_e=dr.current)===null||_e===void 0?void 0:_e.contains(cr.target);te(Mr?!O:!0)}},r.createElement(Nt.Z,(0,v.Z)({value:sr,format:o,ref:a},y,{onChange:function(cr){x==null||x(cr),setTimeout(function(){te(!1)},0)},onOpenChange:function(cr){Z||te(cr)},open:O})),r.createElement(Fe.Z,{label:s,disabled:Ye,placeholder:fe,size:H,value:Zr,allowClear:V,onClear:function(){return x==null?void 0:x(null)},expanded:O,ref:P}))}else Me=r.createElement(Xr.Z.TimePicker,(0,v.Z)({ref:a,format:o,bordered:m===void 0?!0:!m},y,{value:sr}));return c?c(n,(0,i.Z)({mode:l},y),Me):Me}return null},bn=function(e){var a=e.text,n=e.mode,l=e.format,u=e.render,s=e.renderFormItem,o=e.plain,d=e.fieldProps,c=(d==null?void 0:d.format)||l||"HH:mm:ss",m=Array.isArray(a)?a:[],y=(0,A.Z)(m,2),P=y[0],Z=y[1],w=Dr().isMoment(P)||typeof P=="number",F=Dr().isMoment(Z)||typeof Z=="number",O=P?Dr()(P,w?void 0:c).format(c):"",te=Z?Dr()(Z,F?void 0:c).format(c):"";if(n==="read"){var H=r.createElement("div",null,r.createElement("div",null,O||"-"),r.createElement("div",null,te||"-"));return u?u(a,(0,i.Z)({mode:n},d),r.createElement("span",null,H)):H}if(n==="edit"||n==="update"){var W=d.value,le=_r(W,c),ne=r.createElement(Nt.Z.RangePicker,(0,v.Z)({format:l,bordered:o===void 0?!0:!o},d,{value:le}));return s?s(a,(0,i.Z)({mode:n},d),ne):ne}return null},Sn=r.forwardRef(En),kn=t(62999),Rn=t(54680),Dn=["radioType","renderFormItem","mode","light","label","render"],Mn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","searchValue"],Tn=function(e,a){var n=e.radioType,l=e.renderFormItem,u=e.mode,s=e.light,o=e.label,d=e.render,c=(0,R.Z)(e,Dn),m=(0,r.useContext)(M.ZP.ConfigContext),y=m.getPrefixCls,P=y("pro-field-tree-select"),Z=(0,r.useRef)(null),w=(0,r.useState)(!1),F=(0,A.Z)(w,2),O=F[0],te=F[1],H=c.fieldProps||{},W=H.onSearch,le=H.onClear,ne=H.onChange,z=H.onBlur,be=H.showSearch,Se=H.autoClearSearchValue,Me=H.treeData,Ye=H.searchValue,x=(0,R.Z)(H,Mn),fe=(0,r.useContext)(M.ZP.SizeContext),V=Ze((0,i.Z)((0,i.Z)({},c),{},{defaultKeyWords:Ye})),G=(0,A.Z)(V,3),sr=G[0],Zr=G[1],vr=G[2],cr=(0,gr.Z)("",{onChange:W,value:Ye}),lr=(0,A.Z)(cr,2),dr=lr[0],_e=lr[1];(0,r.useImperativeHandle)(a,function(){return(0,i.Z)((0,i.Z)({},Z.current||{}),{},{fetchData:function(){return vr()}})});var Mr=(0,r.useMemo)(function(){if(u==="read"){var $e=(x==null?void 0:x.fieldNames)||{},Te=$e.value,yr=Te===void 0?"value":Te,ir=$e.label,Jr=ir===void 0?"label":ir,Qr=$e.children,Vr=Qr===void 0?"children":Qr,nt=new Map,kr=function ct(it){if(!(it==null?void 0:it.length))return nt;for(var Kn=it.length,Bt=0;Bt0?r.createElement("div",{className:"".concat(Y,"-action")},Kr):null,Yr={name:K.name,field:$,index:se,record:Re==null||(X=Re.getFieldValue)===null||X===void 0?void 0:X.call(Re,[Le.listName,K.name,$.name].filter(function(De){return De!==void 0}).flat(1)),fields:C,operation:ve,meta:U},at=(0,Pe.zx)(),qr=at.grid,Hr=(Ve==null?void 0:Ve(Je,Yr))||Je,$r=(Ue==null?void 0:Ue({listDom:r.createElement("div",{className:"".concat(Y,"-container"),style:{width:qr?"100%":void 0}},Hr),action:xr},Yr))||r.createElement("div",{className:"".concat(Y,"-item ").concat(oe?"".concat(Y,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"}},r.createElement("div",{className:"".concat(Y,"-container"),style:{width:qr?"100%":void 0}},Hr),xr);return r.createElement(T.Provider,{key:$.name,value:(0,g.Z)((0,g.Z)({},$),{},{listName:[Le.listName,ce,$.name].filter(function(De){return De!==void 0}).flat(1)})},$r)},or=function(J){var X=J.creatorButtonProps,ye=J.prefixCls,ae=J.children,We=J.creatorRecord,Ve=J.action,Ue=J.fields,oe=J.actionGuard,Y=J.max,xe=J.fieldExtraRender,ve=J.meta,Ie=(0,r.useRef)(new Map),Oe=(0,r.useState)(!1),er=(0,Fe.Z)(Oe,2),C=er[0],U=er[1],$=(0,r.useMemo)(function(){return Ue.map(function(ce){var me,j;if(!((me=Ie.current)===null||me===void 0?void 0:me.has(ce.key.toString()))){var ee;(ee=Ie.current)===null||ee===void 0||ee.set(ce.key.toString(),(0,pe.x)())}var K=(j=Ie.current)===null||j===void 0?void 0:j.get(ce.key.toString());return(0,g.Z)((0,g.Z)({},ce),{},{uuid:K})})},[Ue]),se=(0,r.useMemo)(function(){var ce=(0,g.Z)({},Ve),me=$.length;return(oe==null?void 0:oe.beforeAddRow)&&(ce.add=(0,E.Z)((0,M.Z)().mark(function j(){var ee,K,Le,re,Ce=arguments;return(0,M.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:for(ee=Ce.length,K=new Array(ee),Le=0;Le0&&arguments[0]!==void 0?arguments[0]:{},pe=He.children,Qe=He.Wrapper,je=(0,B.Z)(He,_);return N?D.createElement(S.Z,(0,L.Z)({gutter:8},M,je),pe):Qe?D.createElement(Qe,null,pe):pe},ColWrapper:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=He.children,Qe=He.Wrapper,je=(0,B.Z)(He,he),Be=(0,D.useMemo)(function(){var Ge=(0,h.Z)((0,h.Z)({},E),je);return typeof Ge.span=="undefined"&&typeof Ge.xs=="undefined"&&(Ge.xs=24),Ge},[je]);return N?D.createElement(R.Z,Be,pe):Qe?D.createElement(Qe,null,pe):pe}}},Pe=function(A){var N=(0,D.useMemo)(function(){return(0,v.Z)(A)==="object"?A:{grid:A}},[A]),M=(0,D.useContext)(p),E=M.grid,Fe=M.colProps;return(0,D.useMemo)(function(){return r({grid:!!(E||N.grid),rowProps:N==null?void 0:N.rowProps,colProps:(N==null?void 0:N.colProps)||Fe,Wrapper:N==null?void 0:N.Wrapper})},[N==null?void 0:N.Wrapper,N.grid,E,JSON.stringify([Fe,N==null?void 0:N.colProps,N==null?void 0:N.rowProps])])}},57863:function(Pr,ge,t){"use strict";t.d(ge,{oK:function(){return Le},ZP:function(){return qe},Go:function(){return se},YB:function(){return re}});var v=t(84305),i=t(75901),R=t(28991),h=t(11965),g=t(84378),S=t(67294),L=t(29405),B={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},D={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},_={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},he={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},r={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},Pe={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},ue={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},A={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},N={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},M={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},E={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},Fe={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},He={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},pe={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},Qe={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},je={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},Be={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},Ge={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},nr={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},Xe={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},ar={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Sr={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function mr(Q,q,Ae){var Ze=q.replace(/\[(\d+)\]/g,".$1").split("."),Ee=Q,I=Ae,we=(0,h.Z)(Ze),br;try{for(we.s();!(br=we.n()).done;){var Je=br.value;if(I=Object(Ee)[Je],Ee=Object(Ee)[Je],I===void 0)return Ae}}catch(Or){we.e(Or)}finally{we.f()}return I}var de=function(q,Ae){return{getMessage:function(Ee,I){return mr(Ae,Ee,I)||I},locale:q}},fr=de("mn_MN",He),or=de("ar_EG",B),b=de("zh_CN",ar),T=de("en_US",p),ke=de("en_GB",he),ie=de("vi_VN",Xe),J=de("it_IT",M),X=de("ja_JP",E),ye=de("es_ES",r),ae=de("ca_ES",D),We=de("ru_RU",Be),Ve=de("sr_RS",Ge),Ue=de("ms_MY",pe),oe=de("zh_TW",Sr),Y=de("fr_FR",ue),xe=de("pt_BR",je),ve=de("ko_KR",Fe),Ie=de("id_ID",N),Oe=de("de_DE",_),er=de("fa_IR",Pe),C=de("tr_TR",nr),U=de("pl_PL",Qe),$=de("hr_",A),se={"mn-MN":fr,"ar-EG":or,"zh-CN":b,"en-US":T,"en-GB":ke,"vi-VN":ie,"it-IT":J,"ja-JP":X,"es-ES":ye,"ca-ES":ae,"ru-RU":We,"sr-RS":Ve,"ms-MY":Ue,"zh-TW":oe,"fr-FR":Y,"pt-BR":xe,"ko-KR":ve,"id-ID":Ie,"de-DE":Oe,"fa-IR":er,"tr-TR":C,"pl-PL":U,"hr-HR":$},Re=Object.keys(se),ce=S.createContext({intl:(0,R.Z)((0,R.Z)({},b),{},{locale:"default"}),valueTypeMap:{}}),me=ce.Consumer,j=ce.Provider,ee=function(q){if(!q)return"zh-CN";var Ae=q.toLocaleLowerCase();return Re.find(function(Ze){var Ee=Ze.toLocaleLowerCase();return Ee.includes(Ae)})},K=function(){var q=(0,L.kY)(),Ae=q.cache;return(0,S.useEffect)(function(){return function(){Ae.clear()}},[]),null},Le=function(q){var Ae=q.children,Ze=q.autoClearCache,Ee=Ze===void 0?!1:Ze,I=(0,S.useContext)(i.ZP.ConfigContext),we=I.locale,br=we===void 0?i.ZP:S.Fragment,Je=S.createElement(me,null,function(Or){var Ir,Ur=we==null?void 0:we.locale,Kr=ee(Ur),xr=Ur&&((Ir=Or.intl)===null||Ir===void 0?void 0:Ir.locale)==="default"?se[Kr]:Or.intl||se[Kr],Yr=we===void 0?{locale:g.Z}:{};return S.createElement(br,Yr,S.createElement(j,{value:(0,R.Z)((0,R.Z)({},Or),{},{intl:xr||b})},S.createElement(S.Fragment,null,Ee&&S.createElement(K,null),Ae)))});return Ee?S.createElement(L.J$,{value:{provider:function(){return new Map}}},Je):Je};function re(){var Q=(0,S.useContext)(i.ZP.ConfigContext),q=Q.locale,Ae=(0,S.useContext)(ce),Ze=Ae.intl;return Ze&&Ze.locale!=="default"?Ze:(q==null?void 0:q.locale)?se[ee(q.locale)]:b}var Ce=null,qe=ce},70724:function(Pr,ge,t){"use strict";var v=t(96156),i=t(84305),R=t(75901),h=t(54549),g=t(57254),S=t(57863),L=t(94184),B=t.n(L),D=t(67294),_=t(42327),he=t.n(_),p=function(Pe,ue){var A,N=Pe.label,M=Pe.onClear,E=Pe.value,Fe=Pe.size,He=Fe===void 0?"middle":Fe,pe=Pe.disabled,Qe=Pe.onLabelClick,je=Pe.ellipsis,Be=Pe.placeholder,Ge=Pe.className,nr=Pe.style,Xe=Pe.formatter,ar=Pe.bordered,Sr=Pe.allowClear,mr=Sr===void 0?!0:Sr,de=(0,D.useContext)(R.ZP.ConfigContext),fr=de.getPrefixCls,or=fr("pro-core-field-label"),b=(0,S.YB)(),T=(0,D.useRef)(null),ke=(0,D.useRef)(null);(0,D.useImperativeHandle)(ue,function(){return{labelRef:ke,clearRef:T}});var ie=function(ye){return Xe?Xe(ye):Array.isArray(ye)?ye.join(","):ye},J=function(ye,ae){if(ae!=null&&ae!==""&&(!Array.isArray(ae)||ae.length)){var We,Ve,Ue=ye?D.createElement("span",{onClick:Qe,className:"".concat(or,"-text")},ye,": "):"",oe=ie(ae);if(!je)return D.createElement("span",{style:{display:"inline-flex",alignItems:"center"}},Ue,ie(ae));var Y=function(){var Ie=Array.isArray(ae)&&ae.length>1,Oe=b.getMessage("form.lightFilter.itemUnit","\u9879");return typeof oe=="string"&&oe.length>32&&Ie?"...".concat(ae.length).concat(Oe):""},xe=Y();return D.createElement("span",{title:typeof oe=="string"?oe:void 0,style:{display:"inline-flex",alignItems:"center"}},Ue,D.createElement("span",{style:{paddingLeft:4}},typeof oe=="string"?oe==null||(We=oe.toString())===null||We===void 0||(Ve=We.substr)===null||Ve===void 0?void 0:Ve.call(We,0,32):oe),xe)}return ye||Be};return D.createElement("span",{className:B()(or,"".concat(or,"-").concat(He),(A={},(0,v.Z)(A,"".concat(or,"-active"),!!E||E===0),(0,v.Z)(A,"".concat(or,"-disabled"),pe),(0,v.Z)(A,"".concat(or,"-bordered"),ar),(0,v.Z)(A,"".concat(or,"-allow-clear"),mr),A),Ge),style:nr,ref:ke},J(N,E),(E||E===0)&&mr&&D.createElement(h.Z,{role:"button",title:"\u6E05\u9664",className:B()("".concat(or,"-icon"),"".concat(or,"-close")),onClick:function(ye){M&&!pe&&M(),ye.stopPropagation()},ref:T}),D.createElement(g.Z,{className:B()("".concat(or,"-icon"),"".concat(or,"-arrow"))}))};ge.Z=D.forwardRef(p)},66737:function(Pr,ge,t){"use strict";t.d(ge,{Z:function(){return ue}});var v=t(59250),i=t(13013),R=t(22122),h=t(84305),g=t(75901),S=t(67294),L=t(57663),B=t(71577),D=t(57863),_=t(36466),he=function(N){var M=(0,D.YB)(),E=N.onClear,Fe=N.onConfirm,He=N.disabled,pe=N.footerRender,Qe=(0,S.useContext)(g.ZP.ConfigContext),je=Qe.getPrefixCls,Be=je("pro-core-dropdown-footer"),Ge=[S.createElement(B.Z,{key:"clear",style:{visibility:E?"visible":"hidden"},type:"link",size:"small",disabled:He,onClick:function(ar){E&&E(ar),ar.stopPropagation()}},M.getMessage("form.lightFilter.clear","\u6E05\u9664")),S.createElement(B.Z,{key:"confirm","data-type":"confirm",type:"primary",size:"small",onClick:Fe,disabled:He},M.getMessage("form.lightFilter.confirm","\u786E\u8BA4"))];if(pe===!1||(pe==null?void 0:pe(Fe,E))===!1)return null;var nr=(pe==null?void 0:pe(Fe,E))||Ge;return S.createElement("div",{className:Be,onClick:function(ar){return ar.target.getAttribute("data-type")!=="confirm"&&ar.stopPropagation()}},nr)},p=he,r=t(69903),Pe=function(N){var M=N.children,E=N.label,Fe=N.footer,He=N.disabled,pe=N.onVisibleChange,Qe=N.visible,je=N.footerRender,Be=N.placement,Ge=(0,S.useContext)(g.ZP.ConfigContext),nr=Ge.getPrefixCls,Xe=nr("pro-core-field-dropdown");return S.createElement(i.Z,{disabled:He,placement:Be,trigger:["click"],visible:Qe,onVisibleChange:pe,overlay:S.createElement("div",{className:"".concat(Xe,"-overlay")},S.createElement("div",{className:"".concat(Xe,"-content")},M),Fe&&S.createElement(p,(0,R.Z)({disabled:He,footerRender:je},Fe)))},S.createElement("span",{className:"".concat(Xe,"-label")},E))},ue=Pe},60222:function(Pr,ge,t){"use strict";var v=t(67294),i=v.createContext({});ge.Z=i},78822:function(Pr,ge,t){"use strict";t.d(ge,{Cl:function(){return S}});var v=t(90484),i=t(30381),R=t.n(i),h=t(88306),g=t(53808),S={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function L(he){return Object.prototype.toString.call(he)==="[object Object]"}function B(he){if(L(he)===!1)return!1;var p=he.constructor;if(p===void 0)return!0;var r=p.prototype;return!(L(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var D=function(p,r,Pe){if(!r)return p;if(R().isMoment(p)){if(r==="number")return p.valueOf();if(r==="string")return p.format(S[Pe]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return p.format(r);if(typeof r=="function")return r(p,Pe)}return p},_=function he(p,r,Pe,ue,A){var N={};return typeof window=="undefined"||(0,v.Z)(p)!=="object"||(0,g.Z)(p)||p instanceof Blob||Array.isArray(p)?p:(Object.keys(p).forEach(function(M){var E=A?[A,M].flat(1):[M],Fe=(0,h.Z)(Pe,E)||"text",He="text",pe;typeof Fe=="string"?He=Fe:Fe&&(He=Fe.valueType,pe=Fe.dateFormat);var Qe=p[M];if(!((0,g.Z)(Qe)&&ue)){if(B(Qe)&&!Array.isArray(Qe)&&!R().isMoment(Qe)){N[M]=he(Qe,r,Pe,ue,[M]);return}if(Array.isArray(Qe)){N[M]=Qe.map(function(je,Be){return R().isMoment(je)?D(je,pe||r,He):he(je,r,Pe,ue,[M,"".concat(Be)])});return}N[M]=D(Qe,pe||r,He)}}),N)};ge.ZP=_},51617:function(Pr,ge,t){"use strict";var v=t(28481),i=t(30381),R=t.n(i),h=function(L,B){return typeof B=="function"?B(R()(L)):R()(L).format(B)},g=function(L,B){var D=Array.isArray(L)?L:[],_=(0,v.Z)(D,2),he=_[0],p=_[1],r,Pe;Array.isArray(B)?(r=B[0],Pe=B[1]):(r=B,Pe=B);var ue=he?h(he,r):"",A=p?h(p,Pe):"",N=ue&&A?"".concat(ue," ~ ").concat(A):"";return N};ge.Z=g},86402:function(Pr,ge,t){"use strict";var v=t(67294),i=function(h){var g=(0,v.useRef)(h);return g.current=h,g};ge.Z=i},91285:function(Pr,ge,t){"use strict";var v=t(67294),i=function(h){var g=(0,v.useRef)();return(0,v.useEffect)(function(){g.current=h}),g.current};ge.Z=i},1914:function(Pr,ge,t){"use strict";var v=t(11965),i=t(90484);function R(h,g,S,L){if(h===g)return!0;if(h&&g&&(0,i.Z)(h)==="object"&&(0,i.Z)(g)==="object"){if(h.constructor!==g.constructor)return!1;var B,D,_;if(Array.isArray(h)){if(B=h.length,B!=g.length)return!1;for(D=B;D--!=0;)if(!R(h[D],g[D],S,L))return!1;return!0}if(h instanceof Map&&g instanceof Map){if(h.size!==g.size)return!1;var he=(0,v.Z)(h.entries()),p;try{for(he.s();!(p=he.n()).done;)if(D=p.value,!g.has(D[0]))return!1}catch(M){he.e(M)}finally{he.f()}var r=(0,v.Z)(h.entries()),Pe;try{for(r.s();!(Pe=r.n()).done;)if(D=Pe.value,!R(D[1],g.get(D[0]),S,L))return!1}catch(M){r.e(M)}finally{r.f()}return!0}if(h instanceof Set&&g instanceof Set){if(h.size!==g.size)return!1;var ue=(0,v.Z)(h.entries()),A;try{for(ue.s();!(A=ue.n()).done;)if(D=A.value,!g.has(D[0]))return!1}catch(M){ue.e(M)}finally{ue.f()}return!0}if(ArrayBuffer.isView(h)&&ArrayBuffer.isView(g)){if(B=h.length,B!=g.length)return!1;for(D=B;D--!=0;)if(h[D]!==g[D])return!1;return!0}if(h.constructor===RegExp)return h.source===g.source&&h.flags===g.flags;if(h.valueOf!==Object.prototype.valueOf&&h.valueOf)return h.valueOf()===g.valueOf();if(h.toString!==Object.prototype.toString&&h.toString)return h.toString()===g.toString();if(_=Object.keys(h),B=_.length,B!==Object.keys(g).length)return!1;for(D=B;D--!=0;)if(!Object.prototype.hasOwnProperty.call(g,_[D]))return!1;for(D=B;D--!=0;){var N=_[D];if(!(S==null?void 0:S.includes(N))&&!(N==="_owner"&&h.$$typeof)&&!R(h[N],g[N],S,L))return L&&console.log(N),!1}return!0}return h!==h&&g!==g}ge.Z=R},53808:function(Pr,ge){"use strict";var t=function(i){return i==null};ge.Z=t},48531:function(Pr,ge,t){"use strict";t.d(ge,{T:function(){return R}});var v=t(28991),i=t(90484),R=function(){for(var g={},S=arguments.length,L=new Array(S),B=0;B0&&arguments[0]!==void 0?arguments[0]:21;if(!window.crypto)return(v+=1).toFixed(0);for(var S="",L=crypto.getRandomValues(new Uint8Array(g));g--;){var B=63&L[g];S+=B<36?B.toString(36):B<62?(B-26).toString(36).toUpperCase():B<63?"_":"-"}return S},R=function(){return typeof window=="undefined"?i():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():i()}},37004:function(Pr,ge){"use strict";var t=function(i){var R={};if(Object.keys(i||{}).forEach(function(h){i[h]!==void 0&&(R[h]=i[h])}),!(Object.keys(R).length<1))return R};ge.Z=t},96202:function(Pr,ge,t){"use strict";t.d(ge,{h:function(){return v}});function v(i){if(typeof i=="function"){for(var R=arguments.length,h=new Array(R>1?R-1:0),g=1;g{const{prefixCls:t,className:n,style:s,size:a,shape:r}=e,c=u()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),o=u()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),l=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:u()(t,c,o,n),style:Object.assign(Object.assign({},l),s)})},R=p(60076),V=p(81501),Z=p(90467);const W=new R.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,R.bf)(e)}),v=e=>Object.assign({width:e},x(e)),X=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:W,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),P=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),J=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},v(s)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},v(a)),[`${t}${t}-sm`]:Object.assign({},v(r))}},K=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return{[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},P(t,o)),[`${s}-lg`]:Object.assign({},P(a,o)),[`${s}-sm`]:Object.assign({},P(r,o))}},T=e=>Object.assign({width:e},x(e)),Q=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:s,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:s,borderRadius:a},T(r(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},T(n)),{maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},I=(e,t,n)=>{const{skeletonButtonCls:s}=e;return{[`${n}${s}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${s}-round`]:{borderRadius:t}}},z=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),U=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:o(s).mul(2).equal(),minWidth:o(s).mul(2).equal()},z(s,o))},I(e,s,n)),{[`${n}-lg`]:Object.assign({},z(a,o))}),I(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},z(r,o))}),I(e,r,`${n}-sm`))},Y=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:s,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:o,controlHeight:l,controlHeightLG:g,controlHeightSM:d,gradientFromColor:m,padding:C,marginSM:H,borderRadius:$,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:S,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},v(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},v(g)),[`${n}-sm`]:Object.assign({},v(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${s}`]:{width:"100%",height:h,background:m,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:m,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${s}, ${a} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-content`]:{[`${s}`]:{marginBlockStart:H,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},U(e)),J(e)),K(e)),Q(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${s}, + ${a} > li, + ${n}, + ${r}, + ${c}, + ${o} + `]:Object.assign({},X(e))}}},_=e=>{const{colorFillContent:t,colorFill:n}=e,s=t,a=n;return{color:s,colorGradientEnd:a,gradientFromColor:s,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var f=(0,V.I$)("Skeleton",e=>{const{componentCls:t,calc:n}=e,s=(0,Z.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Y(s)]},_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,shape:r="circle",size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls","className"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:c},m))))},te=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r=!1,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-button`,size:c},m))))};const ne="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var se=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r}=e,{getPrefixCls:c}=i.useContext(b.E_),o=c("skeleton",t),[l,g]=f(o),d=u()(o,`${o}-element`,{[`${o}-active`]:r},n,s,g);return l(i.createElement("div",{className:d},i.createElement("div",{className:u()(`${o}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},i.createElement("path",{d:ne,className:`${o}-image-path`})))))},ae=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-input`,size:c},m))))},le=p(38126),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ie=oe,re=p(38782),ce=function(t,n){return i.createElement(re.Z,(0,le.Z)({},t,{ref:n,icon:ie}))},ge=i.forwardRef(ce),de=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r,children:c}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=u()(l,`${l}-element`,{[`${l}-active`]:r},d,n,s),C=c!=null?c:i.createElement(ge,null);return g(i.createElement("div",{className:m},i.createElement("div",{className:u()(`${l}-image`,n),style:a},C)))},ue=p(1788),me=e=>{const t=o=>{const{width:l,rows:g=2}=e;if(Array.isArray(l))return l[o];if(g-1===o)return l},{prefixCls:n,className:s,style:a,rows:r}=e,c=(0,ue.Z)(Array(r)).map((o,l)=>i.createElement("li",{key:l,style:{width:t(l)}}));return i.createElement("ul",{className:u()(n,s),style:a},c)},he=e=>{let{prefixCls:t,className:n,width:s,style:a}=e;return i.createElement("h3",{className:u()(t,n),style:Object.assign({width:s},a)})};function B(e){return e&&typeof e=="object"?e:{}}function pe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ce(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $e(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const k=e=>{const{prefixCls:t,loading:n,className:s,rootClassName:a,style:r,children:c,avatar:o=!1,title:l=!0,paragraph:g=!0,active:d,round:m}=e,{getPrefixCls:C,direction:H,skeleton:$}=i.useContext(b.E_),h=C("skeleton",t),[E,A]=f(h);if(n||!("loading"in e)){const S=!!o,O=!!l,N=!!g;let L;if(S){const y=Object.assign(Object.assign({prefixCls:`${h}-avatar`},pe(O,N)),B(o));L=i.createElement("div",{className:`${h}-header`},i.createElement(j,Object.assign({},y)))}let F;if(O||N){let y;if(O){const M=Object.assign(Object.assign({prefixCls:`${h}-title`},Ce(S,N)),B(l));y=i.createElement(he,Object.assign({},M))}let q;if(N){const M=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},$e(S,O)),B(g));q=i.createElement(me,Object.assign({},M))}F=i.createElement("div",{className:`${h}-content`},y,q)}const fe=u()(h,{[`${h}-with-avatar`]:S,[`${h}-active`]:d,[`${h}-rtl`]:H==="rtl",[`${h}-round`]:m},$==null?void 0:$.className,s,a,A);return E(i.createElement("div",{className:fe,style:Object.assign(Object.assign({},$==null?void 0:$.style),r)},L,F))}return typeof c!="undefined"?c:null};k.Button=te,k.Avatar=ee,k.Input=ae,k.Image=se,k.Node=de;var be=k,ve=be}}]); diff --git a/5714.2c64f0e9.async.js b/5714.2c64f0e9.async.js new file mode 100644 index 00000000..7822fa2d --- /dev/null +++ b/5714.2c64f0e9.async.js @@ -0,0 +1,12 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5714],{21626:function(Oe,le,e){e.d(le,{Z:function(){return H},n:function(){return ie}});var d=e(50959),z=e(67536),A=e(84875),B=e.n(A),u=e(41549),p=e(12602),a=e(55580),f=e(31594),C=e(69943),N=e(17436),se=e(1415),G=e(21130),h=e(59647),be=e(55904);function Pe(t){return!!(t.prefix||t.suffix||t.allowClear)}var F=e(10254),he=function(t,r){var T={};for(var S in t)Object.prototype.hasOwnProperty.call(t,S)&&r.indexOf(S)<0&&(T[S]=t[S]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,S=Object.getOwnPropertySymbols(t);y{var T;const{prefixCls:S,bordered:y=!0,status:$,size:te,disabled:Q,onBlur:ue,onFocus:X,suffix:L,allowClear:k,addonAfter:Ce,addonBefore:l,className:j,style:m,styles:v,rootClassName:P,onChange:g,classNames:R}=t,s=he(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:E,input:o}=d.useContext(f.E_),n=x("input",S),b=(0,d.useRef)(null),J=(0,F.Z)(n),[re,D]=(0,be.ZP)(n,J),{compactSize:ne,compactItemClassnames:w}=(0,G.ri)(n,E),_=(0,N.Z)(oe=>{var pe;return(pe=te!=null?te:ne)!==null&&pe!==void 0?pe:oe}),Se=d.useContext(C.Z),I=Q!=null?Q:Se,{status:W,hasFeedback:ae,feedbackIcon:Y}=(0,d.useContext)(se.aM),K=(0,a.F)(W,$),q=Pe(t)||!!ae,ce=(0,d.useRef)(q),Ee=(0,h.Z)(b,!0),M=oe=>{Ee(),ue==null||ue(oe)},O=oe=>{Ee(),X==null||X(oe)},U=oe=>{Ee(),g==null||g(oe)},de=(ae||L)&&d.createElement(d.Fragment,null,L,ae&&Y);let fe;return typeof k=="object"&&(k!=null&&k.clearIcon)?fe=k:k&&(fe={clearIcon:d.createElement(z.Z,null)}),re(d.createElement(u.Z,Object.assign({ref:(0,p.sQ)(r,b),prefixCls:n,autoComplete:o==null?void 0:o.autoComplete},s,{disabled:I,onBlur:M,onFocus:O,style:Object.assign(Object.assign({},o==null?void 0:o.style),m),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),v),suffix:de,allowClear:fe,className:B()(j,P,J,D,w,o==null?void 0:o.className),onChange:U,addonAfter:Ce&&d.createElement(G.BR,null,d.createElement(se.Ux,{override:!0,status:!0},Ce)),addonBefore:l&&d.createElement(G.BR,null,d.createElement(se.Ux,{override:!0,status:!0},l)),classNames:Object.assign(Object.assign(Object.assign({},R),o==null?void 0:o.classNames),{input:B()({[`${n}-sm`]:_==="small",[`${n}-lg`]:_==="large",[`${n}-rtl`]:E==="rtl",[`${n}-borderless`]:!y},!q&&(0,a.Z)(n,K),R==null?void 0:R.input,(T=o==null?void 0:o.classNames)===null||T===void 0?void 0:T.input,D)}),classes:{affixWrapper:B()({[`${n}-affix-wrapper-sm`]:_==="small",[`${n}-affix-wrapper-lg`]:_==="large",[`${n}-affix-wrapper-rtl`]:E==="rtl",[`${n}-affix-wrapper-borderless`]:!y},(0,a.Z)(`${n}-affix-wrapper`,K,ae),D),wrapper:B()({[`${n}-group-rtl`]:E==="rtl"},D),group:B()({[`${n}-group-wrapper-sm`]:_==="small",[`${n}-group-wrapper-lg`]:_==="large",[`${n}-group-wrapper-rtl`]:E==="rtl",[`${n}-group-wrapper-disabled`]:I},(0,a.Z)(`${n}-group-wrapper`,K,ae),D)}})))})},15714:function(Oe,le,e){var d=e(50959),z=e(67536),A=e(84875),B=e.n(A),u=e(2276),p=e(55580),a=e(31594),f=e(69943),C=e(17436),N=e(1415),se=e(21626),G=e(55904),h=e(10254),be=function(F,he){var ie={};for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&he.indexOf(V)<0&&(ie[V]=F[V]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,V=Object.getOwnPropertySymbols(F);H{var ie;const{prefixCls:V,bordered:H=!0,size:t,disabled:r,status:T,allowClear:S,classNames:y,rootClassName:$,className:te}=F,Q=be(F,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:ue,direction:X}=d.useContext(a.E_),L=(0,C.Z)(t),k=d.useContext(f.Z),Ce=r!=null?r:k,{status:l,hasFeedback:j,feedbackIcon:m}=d.useContext(N.aM),v=(0,p.F)(l,T),P=d.useRef(null);d.useImperativeHandle(he,()=>{var o;return{resizableTextArea:(o=P.current)===null||o===void 0?void 0:o.resizableTextArea,focus:n=>{var b,J;(0,se.n)((J=(b=P.current)===null||b===void 0?void 0:b.resizableTextArea)===null||J===void 0?void 0:J.textArea,n)},blur:()=>{var n;return(n=P.current)===null||n===void 0?void 0:n.blur()}}});const g=ue("input",V);let R;typeof S=="object"&&(S!=null&&S.clearIcon)?R=S:S&&(R={clearIcon:d.createElement(z.Z,null)});const s=(0,h.Z)(g),[x,E]=(0,G.ZP)(g,s);return x(d.createElement(u.Z,Object.assign({},Q,{disabled:Ce,allowClear:R,className:B()(s,te,$),classes:{affixWrapper:B()(`${g}-textarea-affix-wrapper`,{[`${g}-affix-wrapper-rtl`]:X==="rtl",[`${g}-affix-wrapper-borderless`]:!H,[`${g}-affix-wrapper-sm`]:L==="small",[`${g}-affix-wrapper-lg`]:L==="large",[`${g}-textarea-show-count`]:F.showCount||((ie=F.count)===null||ie===void 0?void 0:ie.show)},(0,p.Z)(`${g}-affix-wrapper`,v),E)},classNames:Object.assign(Object.assign({},y),{textarea:B()({[`${g}-borderless`]:!H,[`${g}-sm`]:L==="small",[`${g}-lg`]:L==="large"},(0,p.Z)(g,v),E,y==null?void 0:y.textarea)}),prefixCls:g,suffix:j&&d.createElement("span",{className:`${g}-textarea-suffix`},m),ref:P})))});le.Z=Pe},59647:function(Oe,le,e){e.d(le,{Z:function(){return z}});var d=e(50959);function z(A,B){const u=(0,d.useRef)([]),p=()=>{u.current.push(setTimeout(()=>{var a,f,C,N;!((a=A.current)===null||a===void 0)&&a.input&&((f=A.current)===null||f===void 0?void 0:f.input.getAttribute("type"))==="password"&&(!((C=A.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((N=A.current)===null||N===void 0||N.input.removeAttribute("value"))}))};return(0,d.useEffect)(()=>(B&&p(),()=>u.current.forEach(a=>{a&&clearTimeout(a)})),[]),p}},76263:function(Oe,le,e){e.d(le,{Z:function(){return a}});var d=e(10570),z=e(33346),A=e(40727),B=e(50959),u=["show"];function p(f,C){if(!C.max)return!0;var N=C.strategy(f);return N<=C.max}function a(f,C){return B.useMemo(function(){var N={};C&&(N.show=(0,A.Z)(C)==="object"&&C.formatter?C.formatter:!!C),N=(0,z.Z)((0,z.Z)({},N),f);var se=N,G=se.show,h=(0,d.Z)(se,u);return(0,z.Z)((0,z.Z)({},h),{},{show:!!G,showFormatter:typeof G=="function"?G:void 0,strategy:h.strategy||function(be){return be.length}})},[f,C])}},41549:function(Oe,le,e){e.d(le,{Q:function(){return N},Z:function(){return H}});var d=e(38126),z=e(33346),A=e(73273),B=e(40727),u=e(84875),p=e.n(u),a=e(50959),f=e(66420),C=function(r){var T,S,y=r.inputElement,$=r.prefixCls,te=r.prefix,Q=r.suffix,ue=r.addonBefore,X=r.addonAfter,L=r.className,k=r.style,Ce=r.disabled,l=r.readOnly,j=r.focused,m=r.triggerFocus,v=r.allowClear,P=r.value,g=r.handleReset,R=r.hidden,s=r.classes,x=r.classNames,E=r.dataAttrs,o=r.styles,n=r.components,b=(n==null?void 0:n.affixWrapper)||"span",J=(n==null?void 0:n.groupWrapper)||"span",re=(n==null?void 0:n.wrapper)||"span",D=(n==null?void 0:n.groupAddon)||"span",ne=(0,a.useRef)(null),w=function(O){var U;(U=ne.current)!==null&&U!==void 0&&U.contains(O.target)&&(m==null||m())},_=function(){var O;if(!v)return null;var U=!Ce&&!l&&P,de="".concat($,"-clear-icon"),fe=(0,B.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return a.createElement("span",{onClick:g,onMouseDown:function(pe){return pe.preventDefault()},className:p()(de,(O={},(0,A.Z)(O,"".concat(de,"-hidden"),!U),(0,A.Z)(O,"".concat(de,"-has-suffix"),!!Q),O)),role:"button",tabIndex:-1},fe)},Se=(0,a.cloneElement)(y,{value:P,hidden:R,className:p()((T=y.props)===null||T===void 0?void 0:T.className,!(0,f.X3)(r)&&!(0,f.He)(r)&&L)||null,style:(0,z.Z)((0,z.Z)({},(S=y.props)===null||S===void 0?void 0:S.style),!(0,f.X3)(r)&&!(0,f.He)(r)?k:{})});if((0,f.X3)(r)){var I,W="".concat($,"-affix-wrapper"),ae=p()(W,(I={},(0,A.Z)(I,"".concat(W,"-disabled"),Ce),(0,A.Z)(I,"".concat(W,"-focused"),j),(0,A.Z)(I,"".concat(W,"-readonly"),l),(0,A.Z)(I,"".concat(W,"-input-with-clear-btn"),Q&&v&&P),I),!(0,f.He)(r)&&L,s==null?void 0:s.affixWrapper,x==null?void 0:x.affixWrapper),Y=(Q||v)&&a.createElement("span",{className:p()("".concat($,"-suffix"),x==null?void 0:x.suffix),style:o==null?void 0:o.suffix},_(),Q);Se=a.createElement(b,(0,d.Z)({className:ae,style:(0,z.Z)((0,z.Z)({},(0,f.He)(r)?void 0:k),o==null?void 0:o.affixWrapper),hidden:!(0,f.He)(r)&&R,onClick:w},E==null?void 0:E.affixWrapper,{ref:ne}),te&&a.createElement("span",{className:p()("".concat($,"-prefix"),x==null?void 0:x.prefix),style:o==null?void 0:o.prefix},te),(0,a.cloneElement)(y,{value:P,hidden:null}),Y)}if((0,f.He)(r)){var K="".concat($,"-group"),q="".concat(K,"-addon"),ce=p()("".concat($,"-wrapper"),K,s==null?void 0:s.wrapper),Ee=p()("".concat($,"-group-wrapper"),L,s==null?void 0:s.group);return a.createElement(J,{className:Ee,style:k,hidden:R},a.createElement(re,{className:ce},ue&&a.createElement(D,{className:q},ue),(0,a.cloneElement)(Se,{hidden:null}),X&&a.createElement(D,{className:q},X)))}return Se},N=C,se=e(1788),G=e(32682),h=e(10570),be=e(65589),Pe=e(87017),F=e(76263),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ie=(0,a.forwardRef)(function(t,r){var T=t.autoComplete,S=t.onChange,y=t.onFocus,$=t.onBlur,te=t.onPressEnter,Q=t.onKeyDown,ue=t.prefixCls,X=ue===void 0?"rc-input":ue,L=t.disabled,k=t.htmlSize,Ce=t.className,l=t.maxLength,j=t.suffix,m=t.showCount,v=t.count,P=t.type,g=P===void 0?"text":P,R=t.classes,s=t.classNames,x=t.styles,E=t.onCompositionStart,o=t.onCompositionEnd,n=(0,h.Z)(t,he),b=(0,a.useState)(!1),J=(0,G.Z)(b,2),re=J[0],D=J[1],ne=a.useRef(!1),w=(0,a.useRef)(null),_=function(c){w.current&&(0,f.nH)(w.current,c)},Se=(0,be.Z)(t.defaultValue,{value:t.value}),I=(0,G.Z)(Se,2),W=I[0],ae=I[1],Y=W==null?"":String(W),K=a.useState(null),q=(0,G.Z)(K,2),ce=q[0],Ee=q[1],M=(0,F.Z)(v,m),O=M.max||l,U=M.strategy(Y),de=!!O&&U>O;(0,a.useImperativeHandle)(r,function(){return{focus:_,blur:function(){var c;(c=w.current)===null||c===void 0||c.blur()},setSelectionRange:function(c,me,ge){var xe;(xe=w.current)===null||xe===void 0||xe.setSelectionRange(c,me,ge)},select:function(){var c;(c=w.current)===null||c===void 0||c.select()},input:w.current}}),(0,a.useEffect)(function(){D(function(i){return i&&L?!1:i})},[L]);var fe=function(c,me){var ge=me;if(!ne.current&&M.exceedFormatter&&M.max&&M.strategy(me)>M.max&&(ge=M.exceedFormatter(me,{max:M.max}),me!==ge)){var xe,De;Ee([((xe=w.current)===null||xe===void 0?void 0:xe.selectionStart)||0,((De=w.current)===null||De===void 0?void 0:De.selectionEnd)||0])}ae(ge),w.current&&(0,f.rJ)(w.current,c,S,ge)};a.useEffect(function(){if(ce){var i;(i=w.current)===null||i===void 0||i.setSelectionRange.apply(i,(0,se.Z)(ce))}},[ce]);var oe=function(c){fe(c,c.target.value)},pe=function(c){ne.current=!1,fe(c,c.currentTarget.value),o==null||o(c)},Ze=function(c){te&&c.key==="Enter"&&te(c),Q==null||Q(c)},ze=function(c){D(!0),y==null||y(c)},we=function(c){D(!1),$==null||$(c)},Ne=function(c){ae(""),_(),w.current&&(0,f.rJ)(w.current,c,S)},Me=de&&"".concat(X,"-out-of-range"),Ie=function(){var c=(0,Pe.Z)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return a.createElement("input",(0,d.Z)({autoComplete:T},c,{onChange:oe,onFocus:ze,onBlur:we,onKeyDown:Ze,className:p()(X,(0,A.Z)({},"".concat(X,"-disabled"),L),s==null?void 0:s.input),style:x==null?void 0:x.input,ref:w,size:k,type:g,onCompositionStart:function(ge){ne.current=!0,E==null||E(ge)},onCompositionEnd:pe}))},ve=function(){var c=Number(O)>0;if(j||M.show){var me=M.showFormatter?M.showFormatter({value:Y,count:U,maxLength:O}):"".concat(U).concat(c?" / ".concat(O):"");return a.createElement(a.Fragment,null,M.show&&a.createElement("span",{className:p()("".concat(X,"-show-count-suffix"),(0,A.Z)({},"".concat(X,"-show-count-has-suffix"),!!j),s==null?void 0:s.count),style:(0,z.Z)({},x==null?void 0:x.count)},me),j)}return null};return a.createElement(N,(0,d.Z)({},n,{prefixCls:X,className:p()(Ce,Me),inputElement:Ie(),handleReset:Ne,value:Y,focused:re,triggerFocus:_,suffix:ve(),disabled:L,classes:R,classNames:s,styles:x}))}),V=ie,H=V},66420:function(Oe,le,e){e.d(le,{He:function(){return d},X3:function(){return z},nH:function(){return B},rJ:function(){return A}});function d(u){return!!(u.addonBefore||u.addonAfter)}function z(u){return!!(u.prefix||u.suffix||u.allowClear)}function A(u,p,a,f){if(a){var C=p;if(p.type==="click"){var N=u.cloneNode(!0);C=Object.create(p,{target:{value:N},currentTarget:{value:N}}),N.value="",a(C);return}if(f!==void 0){C=Object.create(p,{target:{value:u},currentTarget:{value:u}}),u.type!=="file"&&(u.value=f),a(C);return}a(C)}}function B(u,p){if(u){u.focus(p);var a=p||{},f=a.cursor;if(f){var C=u.value.length;switch(f){case"start":u.setSelectionRange(0,0);break;case"end":u.setSelectionRange(C,C);break;default:u.setSelectionRange(0,C)}}}}},2276:function(Oe,le,e){e.d(le,{Z:function(){return Ce}});var d=e(38126),z=e(33346),A=e(73273),B=e(1788),u=e(32682),p=e(10570),a=e(84875),f=e.n(a),C=e(41549),N=e(76263),se=e(66420),G=e(65589),h=e(50959),be=e(40727),Pe=e(12682),F=e(77189),he=e(28449),ie=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,V=["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"],H={},t;function r(l){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=l.getAttribute("id")||l.getAttribute("data-reactid")||l.getAttribute("name");if(j&&H[m])return H[m];var v=window.getComputedStyle(l),P=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),g=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),R=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),s=V.map(function(E){return"".concat(E,":").concat(v.getPropertyValue(E))}).join(";"),x={sizingStyle:s,paddingSize:g,borderSize:R,boxSizing:P};return j&&m&&(H[m]=x),x}function T(l){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;t||(t=document.createElement("textarea"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),l.getAttribute("wrap")?t.setAttribute("wrap",l.getAttribute("wrap")):t.removeAttribute("wrap");var P=r(l,j),g=P.paddingSize,R=P.borderSize,s=P.boxSizing,x=P.sizingStyle;t.setAttribute("style","".concat(x,";").concat(ie)),t.value=l.value||l.placeholder||"";var E=void 0,o=void 0,n,b=t.scrollHeight;if(s==="border-box"?b+=R:s==="content-box"&&(b-=g),m!==null||v!==null){t.value=" ";var J=t.scrollHeight-g;m!==null&&(E=J*m,s==="border-box"&&(E=E+g+R),b=Math.max(E,b)),v!==null&&(o=J*v,s==="border-box"&&(o=o+g+R),n=b>o?"":"hidden",b=Math.min(o,b))}var re={height:b,overflowY:n,resize:"none"};return E&&(re.minHeight=E),o&&(re.maxHeight=o),re}var S=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],y=0,$=1,te=2,Q=h.forwardRef(function(l,j){var m=l,v=m.prefixCls,P=m.onPressEnter,g=m.defaultValue,R=m.value,s=m.autoSize,x=m.onResize,E=m.className,o=m.style,n=m.disabled,b=m.onChange,J=m.onInternalAutoSize,re=(0,p.Z)(m,S),D=(0,G.Z)(g,{value:R,postState:function(i){return i!=null?i:""}}),ne=(0,u.Z)(D,2),w=ne[0],_=ne[1],Se=function(i){_(i.target.value),b==null||b(i)},I=h.useRef();h.useImperativeHandle(j,function(){return{textArea:I.current}});var W=h.useMemo(function(){return s&&(0,be.Z)(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),ae=(0,u.Z)(W,2),Y=ae[0],K=ae[1],q=!!s,ce=function(){try{if(document.activeElement===I.current){var i=I.current,c=i.selectionStart,me=i.selectionEnd,ge=i.scrollTop;I.current.setSelectionRange(c,me),I.current.scrollTop=ge}}catch(xe){}},Ee=h.useState(te),M=(0,u.Z)(Ee,2),O=M[0],U=M[1],de=h.useState(),fe=(0,u.Z)(de,2),oe=fe[0],pe=fe[1],Ze=function(){U(y)};(0,F.Z)(function(){q&&Ze()},[R,Y,K,q]),(0,F.Z)(function(){if(O===y)U($);else if(O===$){var ve=T(I.current,!1,Y,K);U(te),pe(ve)}else ce()},[O]);var ze=h.useRef(),we=function(){he.Z.cancel(ze.current)},Ne=function(i){O===te&&(x==null||x(i),s&&(we(),ze.current=(0,he.Z)(function(){Ze()})))};h.useEffect(function(){return we},[]);var Me=q?oe:null,Ie=(0,z.Z)((0,z.Z)({},o),Me);return(O===y||O===$)&&(Ie.overflowY="hidden",Ie.overflowX="hidden"),h.createElement(Pe.Z,{onResize:Ne,disabled:!(s||x)},h.createElement("textarea",(0,d.Z)({},re,{ref:I,style:Ie,className:f()(v,E,(0,A.Z)({},"".concat(v,"-disabled"),n)),disabled:n,value:w,onChange:Se})))}),ue=Q,X=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],L=h.forwardRef(function(l,j){var m,v,P=l.defaultValue,g=l.value,R=l.onFocus,s=l.onBlur,x=l.onChange,E=l.allowClear,o=l.maxLength,n=l.onCompositionStart,b=l.onCompositionEnd,J=l.suffix,re=l.prefixCls,D=re===void 0?"rc-textarea":re,ne=l.classes,w=l.showCount,_=l.count,Se=l.className,I=l.style,W=l.disabled,ae=l.hidden,Y=l.classNames,K=l.styles,q=l.onResize,ce=(0,p.Z)(l,X),Ee=(0,G.Z)(P,{value:g,defaultValue:P}),M=(0,u.Z)(Ee,2),O=M[0],U=M[1],de=O==null?"":String(O),fe=h.useState(!1),oe=(0,u.Z)(fe,2),pe=oe[0],Ze=oe[1],ze=h.useRef(!1),we=h.useState(null),Ne=(0,u.Z)(we,2),Me=Ne[0],Ie=Ne[1],ve=(0,h.useRef)(null),i=function(){var Z;return(Z=ve.current)===null||Z===void 0?void 0:Z.textArea},c=function(){i().focus()};(0,h.useImperativeHandle)(j,function(){return{resizableTextArea:ve.current,focus:c,blur:function(){i().blur()}}}),(0,h.useEffect)(function(){Ze(function(ee){return!W&&ee})},[W]);var me=h.useState(null),ge=(0,u.Z)(me,2),xe=ge[0],De=ge[1];h.useEffect(function(){if(xe){var ee;(ee=i()).setSelectionRange.apply(ee,(0,B.Z)(xe))}},[xe]);var ye=(0,N.Z)(_,w),Te=(m=ye.max)!==null&&m!==void 0?m:o,je=Number(Te)>0,Fe=ye.strategy(de),We=!!Te&&Fe>Te,Le=function(Z,Re){var Ae=Re;!ze.current&&ye.exceedFormatter&&ye.max&&ye.strategy(Re)>ye.max&&(Ae=ye.exceedFormatter(Re,{max:ye.max}),Re!==Ae&&De([i().selectionStart||0,i().selectionEnd||0])),U(Ae),(0,se.rJ)(Z.currentTarget,Z,x,Ae)},Ke=function(Z){ze.current=!0,n==null||n(Z)},Ue=function(Z){ze.current=!1,Le(Z,Z.currentTarget.value),b==null||b(Z)},Ve=function(Z){Le(Z,Z.target.value)},He=function(Z){var Re=ce.onPressEnter,Ae=ce.onKeyDown;Z.key==="Enter"&&Re&&Re(Z),Ae==null||Ae(Z)},Xe=function(Z){Ze(!0),R==null||R(Z)},Je=function(Z){Ze(!1),s==null||s(Z)},Ye=function(Z){U(""),c(),(0,se.rJ)(i(),Z,x)},$e=J,Be;ye.show&&(ye.showFormatter?Be=ye.showFormatter({value:de,count:Fe,maxLength:Te}):Be="".concat(Fe).concat(je?" / ".concat(Te):""),$e=h.createElement(h.Fragment,null,$e,h.createElement("span",{className:f()("".concat(D,"-data-count"),Y==null?void 0:Y.count),style:K==null?void 0:K.count},Be)));var Ge=function(Z){var Re;q==null||q(Z),(Re=i())!==null&&Re!==void 0&&Re.style.height&&Ie(!0)},Qe=!ce.autoSize&&!w&&!E,ke=h.createElement(C.Q,{value:de,allowClear:E,handleReset:Ye,suffix:$e,prefixCls:D,classes:{affixWrapper:f()(ne==null?void 0:ne.affixWrapper,(v={},(0,A.Z)(v,"".concat(D,"-show-count"),w),(0,A.Z)(v,"".concat(D,"-textarea-allow-clear"),E),v))},disabled:W,focused:pe,className:f()(Se,We&&"".concat(D,"-out-of-range")),style:(0,z.Z)((0,z.Z)({},I),Me&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:ae,inputElement:h.createElement(ue,(0,d.Z)({},ce,{maxLength:o,onKeyDown:He,onChange:Ve,onFocus:Xe,onBlur:Je,onCompositionStart:Ke,onCompositionEnd:Ue,className:f()(Y==null?void 0:Y.textarea),style:(0,z.Z)((0,z.Z)({},K==null?void 0:K.textarea),{},{resize:I==null?void 0:I.resize}),disabled:W,prefixCls:D,onResize:Ge,ref:ve}))});return ke}),k=L,Ce=k}}]); diff --git a/5883.0f7d82e2.async.js b/5883.0f7d82e2.async.js deleted file mode 100644 index 3bfc0b2a..00000000 --- a/5883.0f7d82e2.async.js +++ /dev/null @@ -1,27 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5883],{58491:function(Z,V,e){"use strict";e.d(V,{Z:function(){return P}});var c=e(28991),v=e(67294),s={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=s,h=e(27029),g=function(O,f){return v.createElement(h.Z,(0,c.Z)((0,c.Z)({},O),{},{ref:f,icon:b}))};g.displayName="UpOutlined";var P=v.forwardRef(g)},33492:function(Z,V,e){"use strict";e.d(V,{x:function(){return lt}});var c=e(67294),v=e(79941),s=e(82492),b=e.n(s),h=function(t,u,o,C,w){var D=w.clientWidth,L=w.clientHeight,oe=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,ye=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,ge=oe-(w.getBoundingClientRect().left+window.pageXOffset),Xe=ye-(w.getBoundingClientRect().top+window.pageYOffset);if(o==="vertical"){var Ut;if(Xe<0?Ut=0:Xe>L?Ut=1:Ut=Math.round(Xe*100/L)/100,u.a!==Ut)return{h:u.h,s:u.s,l:u.l,a:Ut,source:"rgb"}}else{var Vt;if(ge<0?Vt=0:ge>D?Vt=1:Vt=Math.round(ge*100/D)/100,C!==Vt)return{h:u.h,s:u.s,l:u.l,a:Vt,source:"rgb"}}return null},g={},P=function(t,u,o,C){if(typeof document=="undefined"&&!C)return null;var w=C?new C:document.createElement("canvas");w.width=o*2,w.height=o*2;var D=w.getContext("2d");return D?(D.fillStyle=t,D.fillRect(0,0,w.width,w.height),D.fillStyle=u,D.fillRect(0,0,o,o),D.translate(o,o),D.fillRect(0,0,o,o),w.toDataURL()):null},p=function(t,u,o,C){var w="".concat(t,"-").concat(u,"-").concat(o).concat(C?"-server":"");if(g[w])return g[w];var D=P(t,u,o,C);return g[w]=D,D};function O(r,t){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(C){return Object.getOwnPropertyDescriptor(r,C).enumerable})),u.push.apply(u,o)}return u}function f(r){for(var t=1;tD)Xe=0;else{var Ut=-(ge*100/D)+100;Xe=360*Ut/100}if(o.h!==Xe)return{h:Xe,s:o.s,l:o.l,a:o.a,source:"hsl"}}else{var Vt;if(ye<0)Vt=0;else if(ye>w)Vt=359;else{var ln=ye*100/w;Vt=360*ln/100}if(o.h!==Vt)return{h:Vt,s:o.s,l:o.l,a:o.a,source:"hsl"}}return null};function A(r){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(r)}function J(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function U(r,t){for(var u=0;uw&&(ye=w),ge<0?ge=0:ge>D&&(ge=D);var Xe=ye/w,Ut=1-ge/D;return{h:u.h,s:Xe,v:Ut,a:u.a,source:"hsv"}};function nt(r){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(r)}function Bt(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(r,t){for(var u=0;u=128?"#000":"#fff"},Dt={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},he=function(t,u){var o=t.replace("\xB0","");return tinycolor("".concat(u," (").concat(o,")"))._ok};function d(r){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(r)}function R(){return R=Object.assign||function(r){for(var t=1;t-1},ft=function(t){return Number(String(t).replace(/%/g,""))},dt=1,_e=function(r){ue(u,r);var t=le(u);function u(o){var C;return Y(this,u),C=t.call(this),C.handleBlur=function(){C.state.blurValue&&C.setState({value:C.state.blurValue,blurValue:null})},C.handleChange=function(w){C.setUpdatedValue(w.target.value,w)},C.handleKeyDown=function(w){var D=ft(w.target.value);if(!isNaN(D)&&Fe(w.keyCode)){var L=C.getArrowOffset(),oe=w.keyCode===pe?D+L:D-L;C.setUpdatedValue(oe,w)}},C.handleDrag=function(w){if(C.props.dragLabel){var D=Math.round(C.props.value+w.movementX);D>=0&&D<=C.props.dragMax&&C.props.onChange&&C.props.onChange(C.getValueObjectWithLabel(D),w)}},C.handleMouseDown=function(w){C.props.dragLabel&&(w.preventDefault(),C.handleDrag(w),window.addEventListener("mousemove",C.handleDrag),window.addEventListener("mouseup",C.handleMouseUp))},C.handleMouseUp=function(){C.unbindEventListeners()},C.unbindEventListeners=function(){window.removeEventListener("mousemove",C.handleDrag),window.removeEventListener("mouseup",C.handleMouseUp)},C.state={value:String(o.value).toUpperCase(),blurValue:String(o.value).toUpperCase()},C.inputId="rc-editable-input-".concat(dt++),C}return ve(u,[{key:"componentDidUpdate",value:function(C,w){this.props.value!==this.state.value&&(C.value!==this.props.value||w.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(C){return je({},this.props.label,C)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Ze}},{key:"setUpdatedValue",value:function(C,w){var D=this.props.label?this.getValueObjectWithLabel(C):C;this.props.onChange&&this.props.onChange(D,w),this.setState({value:C})}},{key:"render",value:function(){var C=this,w=(0,v.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:w.wrap},c.createElement("input",{id:this.inputId,style:w.input,ref:function(L){return C.input=L},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:w.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),u}(c.PureComponent||c.Component),vt=_e;function rt(r){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(r)}function ot(){return ot=Object.assign||function(r){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){Te(w,o);var C=Ke(w);function w(){var D;yt(this,w);for(var L=arguments.length,oe=new Array(L),ye=0;ye100&&(ge.a=100),ge.a/=100,u==null||u({h:C==null?void 0:C.h,s:C==null?void 0:C.s,l:C==null?void 0:C.l,a:ge.a,source:"rgb"},Xe))};return c.createElement("div",{style:L.fields,className:"flexbox-fix"},c.createElement("div",{style:L.double},c.createElement(vt,{style:{input:L.input,label:L.label},label:"hex",value:w==null?void 0:w.replace("#",""),onChange:oe})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"r",value:o==null?void 0:o.r,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"g",value:o==null?void 0:o.g,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.single},c.createElement(vt,{style:{input:L.input,label:L.label},label:"b",value:o==null?void 0:o.b,onChange:oe,dragLabel:"true",dragMax:"255"})),c.createElement("div",{style:L.alpha},c.createElement(vt,{style:{input:L.input,label:L.label},label:"a",value:Math.round(((o==null?void 0:o.a)||0)*100),onChange:oe,dragLabel:"true",dragMax:"100"})))},Gt=Qe;function At(r,t){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(C){return Object.getOwnPropertyDescriptor(r,C).enumerable})),u.push.apply(u,o)}return u}function tn(r){for(var t=1;tR.offsetHeight&&R.scrollTo({top:i+d.offsetHeight-R.offsetHeight})}}function It(d,R,i){var y=new Set(d),x=R();return d.filter(function(E){var N=x[E],k=N?N.parent:null,j=N?N.children:null;return i===ut?!(j&&j.some(function(T){return T.key&&y.has(T.key)})):!(k&&!k.node.disabled&&y.has(k.key))})}function gt(d,R,i){for(var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,x=R,E=[],N=function(T){var W,G,q,me=d[T],ae=(W=x)===null||W===void 0?void 0:W.findIndex(function(fe){var Pe=fe[i.value];return y?String(Pe)===String(me):Pe===me}),_=ae!==-1?(G=x)===null||G===void 0?void 0:G[ae]:null;E.push({value:(q=_==null?void 0:_[i.value])!==null&&q!==void 0?q:me,index:ae,option:_}),x=_==null?void 0:_[i.children]},k=0;k0&&me.length>=G)){var je=[].concat((0,b.Z)(fe),[Pe]),Y=Pe[i.children];if((!Y||Y.length===0||E)&&k(d,je,{label:i.label})){var Ue;me.push((0,Q.Z)((0,Q.Z)({},Pe),{},(Ue={},(0,v.Z)(Ue,i.label,T(d,je,y,i)),(0,v.Z)(Ue,Nt,je),Ue)))}Y&&ae(Pe[i.children],je)}})}return ae(R,[]),q&&me.sort(function(_,fe){return q(_[Nt],fe[Nt],d,i)}),G>0?me.slice(0,G):me},[d,R,i,y,T,E,k,q,G])},U="__cascader_fix_label__";function B(d){var R=d.prefixCls,i=d.multiple,y=d.options,x=d.activeValue,E=d.prevValuePath,N=d.onToggleOpen,k=d.onSelect,j=d.onActive,T=d.checkedSet,W=d.halfCheckedSet,G=d.loadingKeys,q=d.isSelectable,me="".concat(R,"-menu"),ae="".concat(R,"-menu-item"),_=h.useContext(ie),fe=_.fieldNames,Pe=_.changeOnSelect,je=_.expandTrigger,Y=_.expandIcon,Ue=_.loadingIcon,ve=_.dropdownMenuColumnStyle,ue=je==="hover",Ee=h.useMemo(function(){return y.map(function(le){var Re,De=le.disabled,Ae=le[Nt],Ge=(Re=le[U])!==null&&Re!==void 0?Re:le[fe.label],Ze=le[fe.value],pe=Mt(le,fe),qe=Ae?Ae.map(function(_e){return _e[fe.value]}):[].concat((0,b.Z)(E),[Ze]),ke=Be(qe),Fe=G.includes(ke),ft=T.has(ke),dt=W.has(ke);return{disabled:De,label:Ge,value:Ze,isLeaf:pe,isLoading:Fe,checked:ft,halfChecked:dt,option:le,fullPath:qe,fullPathKey:ke}})},[y,T,fe,W,G,E]);return h.createElement("ul",{className:me,role:"menu"},Ee.map(function(le){var Re,De=le.disabled,Ae=le.label,Ge=le.value,Ze=le.isLeaf,pe=le.isLoading,qe=le.checked,ke=le.halfChecked,Fe=le.option,ft=le.fullPath,dt=le.fullPathKey,_e=function(){!De&&(!ue||!Ze)&&j(ft)},vt=function(){q(Fe)&&k(ft,Ze)},rt;return typeof Fe.title=="string"?rt=Fe.title:typeof Ae=="string"&&(rt=Ae),h.createElement("li",{key:dt,className:P()(ae,(Re={},(0,v.Z)(Re,"".concat(ae,"-expand"),!Ze),(0,v.Z)(Re,"".concat(ae,"-active"),x===Ge),(0,v.Z)(Re,"".concat(ae,"-disabled"),De),(0,v.Z)(Re,"".concat(ae,"-loading"),pe),Re)),style:ve,role:"menuitemcheckbox",title:rt,"aria-checked":qe,"data-path-key":dt,onClick:function(){_e(),(!i||Ze)&&vt()},onDoubleClick:function(){Pe&&N(!1)},onMouseEnter:function(){ue&&_e()},onMouseDown:function(yt){yt.preventDefault()}},i&&h.createElement(Kt,{prefixCls:"".concat(R,"-checkbox"),checked:qe,halfChecked:ke,disabled:De,onClick:function(yt){yt.stopPropagation(),vt()}}),h.createElement("div",{className:"".concat(ae,"-content")},Ae),!pe&&Y&&!Ze&&h.createElement("div",{className:"".concat(ae,"-expand-icon")},Y),pe&&Ue&&h.createElement("div",{className:"".concat(ae,"-loading-icon")},Ue))}))}var M=function(){var d=(0,K.lk)(),R=d.multiple,i=d.open,y=h.useContext(ie),x=y.values,E=h.useState([]),N=(0,p.Z)(E,2),k=N[0],j=N[1];return h.useEffect(function(){if(i&&!R){var T=x[0];j(T||[])}},[i]),[k,j]},$=e(15105),F=function(d,R,i,y,x,E){var N=(0,K.lk)(),k=N.direction,j=N.searchValue,T=N.toggleOpen,W=N.open,G=k==="rtl",q=h.useMemo(function(){for(var ve=-1,ue=R,Ee=[],le=[],Re=y.length,De=function(ke){var Fe=ue.findIndex(function(ft){return ft[i.value]===y[ke]});if(Fe===-1)return"break";ve=Fe,Ee.push(ve),le.push(y[ke]),ue=ue[ve][i.children]},Ae=0;Ae1){var ue=ae.slice(0,-1);Pe(ue)}else T(!1)},Ue=function(){var ue,Ee=((ue=fe[_])===null||ue===void 0?void 0:ue[i.children])||[],le=Ee.find(function(De){return!De.disabled});if(le){var Re=[].concat((0,b.Z)(ae),[le[i.value]]);Pe(Re)}};h.useImperativeHandle(d,function(){return{onKeyDown:function(ue){var Ee=ue.which;switch(Ee){case $.Z.UP:case $.Z.DOWN:{var le=0;Ee===$.Z.UP?le=-1:Ee===$.Z.DOWN&&(le=1),le!==0&&je(le);break}case $.Z.LEFT:{G?Ue():Y();break}case $.Z.RIGHT:{G?Y():Ue();break}case $.Z.BACKSPACE:{j||Y();break}case $.Z.ENTER:{if(ae.length){var Re=fe[_],De=(Re==null?void 0:Re[Nt])||[];De.length?E(De.map(function(Ae){return Ae[i.value]}),De[De.length-1]):E(ae,fe[_])}break}case $.Z.ESC:T(!1),W&&ue.stopPropagation()}},onKeyUp:function(){}}})},ne=h.forwardRef(function(d,R){var i,y,x,E,N=(0,K.lk)(),k=N.prefixCls,j=N.multiple,T=N.searchValue,W=N.toggleOpen,G=N.notFoundContent,q=N.direction,me=h.useRef(),ae=q==="rtl",_=h.useContext(ie),fe=_.options,Pe=_.values,je=_.halfValues,Y=_.fieldNames,Ue=_.changeOnSelect,ve=_.onSelect,ue=_.searchOptions,Ee=_.dropdownPrefixCls,le=_.loadData,Re=_.expandTrigger,De=Ee||k,Ae=h.useState([]),Ge=(0,p.Z)(Ae,2),Ze=Ge[0],pe=Ge[1],qe=function(Me){if(!(!le||T)){var Je=gt(Me,fe,Y),ee=Je.map(function(we){var st=we.option;return st}),te=ee[ee.length-1];if(te&&!Mt(te,Y)){var Oe=Be(Me);pe(function(we){return[].concat((0,b.Z)(we),[Oe])}),le(ee)}}};h.useEffect(function(){Ze.length&&Ze.forEach(function(Le){var Me=Ot(Le),Je=gt(Me,fe,Y,!0).map(function(te){var Oe=te.option;return Oe}),ee=Je[Je.length-1];(!ee||ee[Y.children]||Mt(ee,Y))&&pe(function(te){return te.filter(function(Oe){return Oe!==Le})})})},[fe,Ze,Y]);var ke=h.useMemo(function(){return new Set(Zt(Pe))},[Pe]),Fe=h.useMemo(function(){return new Set(Zt(je))},[je]),ft=M(),dt=(0,p.Z)(ft,2),_e=dt[0],vt=dt[1],rt=function(Me){vt(Me),qe(Me)},ot=function(Me){var Je=Me.disabled,ee=Mt(Me,Y);return!Je&&(ee||Ue||j)},yt=function(Me,Je){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ve(Me),!j&&(Je||Ue&&(Re==="hover"||ee))&&W(!1)},We=h.useMemo(function(){return T?ue:fe},[T,ue,fe]),Ve=h.useMemo(function(){for(var Le=[{options:We}],Me=We,Je=function(we){var st=_e[we],it=Me.find(function(Gt){return Gt[Y.value]===st}),Qe=it==null?void 0:it[Y.children];if(!(Qe==null?void 0:Qe.length))return"break";Me=Qe,Le.push({options:Qe})},ee=0;ee<_e.length;ee+=1){var te=Je(ee);if(te==="break")break}return Le},[We,_e,Y]),Te=function(Me,Je){ot(Je)&&yt(Me,Mt(Je,Y),!0)};F(R,We,Y,_e,rt,Te),h.useEffect(function(){for(var Le=0;Le<_e.length;Le+=1){var Me,Je=_e.slice(0,Le+1),ee=Be(Je),te=(Me=me.current)===null||Me===void 0?void 0:Me.querySelector('li[data-path-key="'.concat(ee.replace(/\\{0,2}"/g,'\\"'),'"]'));te&&_t(te)}},[_e]);var et=!((i=Ve[0])===null||i===void 0||(y=i.options)===null||y===void 0?void 0:y.length),Ke=[(x={},(0,v.Z)(x,Y.value,"__EMPTY__"),(0,v.Z)(x,U,G),(0,v.Z)(x,"disabled",!0),x)],bt=(0,Q.Z)((0,Q.Z)({},d),{},{multiple:!et&&j,onSelect:yt,onActive:rt,onToggleOpen:W,checkedSet:ke,halfCheckedSet:Fe,loadingKeys:Ze,isSelectable:ot}),mt=et?[{options:Ke}]:Ve,kt=mt.map(function(Le,Me){var Je=_e.slice(0,Me),ee=_e[Me];return h.createElement(B,(0,c.Z)({key:Me},bt,{prefixCls:De,options:Le.options,prevValuePath:Je,activeValue:ee}))});return h.createElement("div",{className:P()("".concat(De,"-menus"),(E={},(0,v.Z)(E,"".concat(De,"-menu-empty"),et),(0,v.Z)(E,"".concat(De,"-rtl"),ae),E)),ref:me},kt)}),re=ne,Ce=function(d,R,i,y,x){return h.useMemo(function(){var E=x||function(N){var k=y?N.slice(-1):N,j=" / ";return k.every(function(T){return["string","number"].includes((0,s.Z)(T))})?k.join(j):k.reduce(function(T,W,G){var q=h.isValidElement(W)?h.cloneElement(W,{key:G}):W;return G===0?[q]:[].concat((0,b.Z)(T),[j,q])},[])};return d.map(function(N){var k=gt(N,R,i),j=E(k.map(function(W){var G,q=W.option,me=W.value;return(G=q==null?void 0:q[i.label])!==null&&G!==void 0?G:me}),k.map(function(W){var G=W.option;return G})),T=Be(N);return{label:j,value:T,key:T,valueCells:N}})},[d,R,i,x,y])};function de(d){var R=h.useRef();R.current=d;var i=h.useCallback(function(){return R.current.apply(R,arguments)},[]);return i}var xe=e(1089),$e=function(d,R){var i=h.useRef({options:null,info:null}),y=h.useCallback(function(){return i.current.options!==d&&(i.current.options=d,i.current.info=(0,xe.I8)(d,{fieldNames:R,initWrapper:function(E){return(0,Q.Z)((0,Q.Z)({},E),{},{pathKeyEntities:{}})},processEntity:function(E,N){var k=E.nodes.map(function(j){return j[R.value]}).join(tt);N.pathKeyEntities[k]=E,E.key=k}})),i.current.info.pathKeyEntities},[R,d]);return y},ct=e(80334);function He(d){return h.useMemo(function(){if(!d)return[!1,{}];var R={matchInputWidth:!0,limit:50};return d&&(0,s.Z)(d)==="object"&&(R=(0,Q.Z)((0,Q.Z)({},R),d)),R.limit<=0&&delete R.limit,[!0,R]},[d])}var ze=function(d,R){return h.useCallback(function(i){var y=[],x=[];return i.forEach(function(E){var N=gt(E,d,R);N.every(function(k){return k.option})?x.push(E):y.push(E)}),[x,y]},[d,R])},nt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Bt(d){return Array.isArray(d)&&Array.isArray(d[0])}function Ht(d){return d?Bt(d)?d:(d.length===0?[]:[d]).map(function(R){return Array.isArray(R)?R:[R]}):[]}var l=h.forwardRef(function(d,R){var i=d.id,y=d.prefixCls,x=y===void 0?"rc-cascader":y,E=d.fieldNames,N=d.defaultValue,k=d.value,j=d.changeOnSelect,T=d.onChange,W=d.displayRender,G=d.checkable,q=d.searchValue,me=d.onSearch,ae=d.showSearch,_=d.expandTrigger,fe=d.options,Pe=d.dropdownPrefixCls,je=d.loadData,Y=d.popupVisible,Ue=d.open,ve=d.popupClassName,ue=d.dropdownClassName,Ee=d.dropdownMenuColumnStyle,le=d.popupPlacement,Re=d.placement,De=d.onDropdownVisibleChange,Ae=d.onPopupVisibleChange,Ge=d.expandIcon,Ze=Ge===void 0?">":Ge,pe=d.loadingIcon,qe=d.children,ke=d.dropdownMatchSelectWidth,Fe=ke===void 0?!1:ke,ft=d.showCheckedStrategy,dt=ft===void 0?at:ft,_e=(0,O.Z)(d,nt),vt=(0,f.ZP)(i),rt=!!G,ot=(0,H.Z)(N,{value:k,postState:Ht}),yt=(0,p.Z)(ot,2),We=yt[0],Ve=yt[1],Te=h.useMemo(function(){return Pt(E)},[JSON.stringify(E)]),et=h.useMemo(function(){return fe||[]},[fe]),Ke=$e(et,Te),bt=h.useCallback(function(w){var D=Ke();return w.map(function(L){var oe=D[L].nodes;return oe.map(function(ye){return ye[Te.value]})})},[Ke,Te]),mt=(0,H.Z)("",{value:q,postState:function(D){return D||""}}),kt=(0,p.Z)(mt,2),Le=kt[0],Me=kt[1],Je=function(D,L){Me(D),L.source!=="blur"&&me&&me(D)},ee=He(ae),te=(0,p.Z)(ee,2),Oe=te[0],we=te[1],st=J(Le,et,Te,Pe||x,we,j),it=ze(et,Te),Qe=h.useMemo(function(){var w=it(We),D=(0,p.Z)(w,2),L=D[0],oe=D[1];if(!rt||!We.length)return[L,[],oe];var ye=Zt(L),ge=Ke(),Xe=(0,z.S)(ye,!0,ge),Ut=Xe.checkedKeys,Vt=Xe.halfCheckedKeys;return[bt(Ut),bt(Vt),oe]},[rt,We,Ke,bt,it]),Gt=(0,p.Z)(Qe,3),At=Gt[0],tn=Gt[1],Ct=Gt[2],Tt=h.useMemo(function(){var w=Zt(At),D=It(w,Ke,dt);return[].concat((0,b.Z)(Ct),(0,b.Z)(bt(D)))},[At,Ke,bt,Ct,dt]),Qt=Ce(Tt,et,Te,rt,W),Lt=de(function(w){if(Ve(w),T){var D=Ht(w),L=D.map(function(ge){return gt(ge,et,Te).map(function(Xe){return Xe.option})}),oe=rt?D:D[0],ye=rt?L:L[0];T(oe,ye)}}),wt=de(function(w){if(Me(""),!rt)Lt(w);else{var D=Be(w),L=Zt(At),oe=Zt(tn),ye=L.includes(D),ge=Ct.some(function(un){return Be(un)===D}),Xe=At,Ut=Ct;if(ge&&!ye)Ut=Ct.filter(function(un){return Be(un)!==D});else{var Vt=ye?L.filter(function(un){return un!==D}):[].concat((0,b.Z)(L),[D]),ln=Ke(),on;if(ye){var qt=(0,z.S)(Vt,{checked:!1,halfCheckedKeys:oe},ln);on=qt.checkedKeys}else{var gn=(0,z.S)(Vt,!0,ln);on=gn.checkedKeys}var pn=It(on,Ke,dt);Xe=bt(pn)}Lt([].concat((0,b.Z)(Ut),(0,b.Z)(Xe)))}}),Yt=function(D,L){if(L.type==="clear"){Lt([]);return}var oe=L.values[0].valueCells;wt(oe)},an=Ue!==void 0?Ue:Y,lt=ue||ve,r=Re||le,t=function(D){De==null||De(D),Ae==null||Ae(D)},u=h.useMemo(function(){return{options:et,fieldNames:Te,values:At,halfValues:tn,changeOnSelect:j,onSelect:wt,checkable:G,searchOptions:st,dropdownPrefixCls:Pe,loadData:je,expandTrigger:_,expandIcon:Ze,loadingIcon:pe,dropdownMenuColumnStyle:Ee}},[et,Te,At,tn,j,wt,G,st,Pe,je,_,Ze,pe,Ee]),o=!(Le?st:et).length,C=Le&&we.matchInputWidth||o?{}:{minWidth:"auto"};return h.createElement(ie.Provider,{value:u},h.createElement(K.Ac,(0,c.Z)({},_e,{ref:R,id:vt,prefixCls:x,dropdownMatchSelectWidth:Fe,dropdownStyle:C,displayValues:Qt,onDisplayValuesChange:Yt,mode:rt?"multiple":void 0,searchValue:Le,onSearch:Je,showSearch:Oe,OptionList:re,emptyOptions:o,open:an,dropdownClassName:lt,placement:r,onDropdownVisibleChange:t,getRawInputElement:function(){return qe}})))});l.SHOW_PARENT=at,l.SHOW_CHILD=ut;var a=l,n=a,m=e(98423),S=e(8812),I=e(7085),X=e(67724),se=e(53124),ce=e(88258),Se=e(97647),Ie=e(98866),be=e(46163),Ye=e(33603),pt=e(65223),jt=e(9708),ht=function(d,R){var i={};for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&R.indexOf(y)<0&&(i[y]=d[y]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(d);xi){if(d>0)return(0,h.Z)({},he,x);if(d<0&&yi)return(0,h.Z)({},he,d<0?x:-x);return{}}function Be(he,d,R,i){var y=(0,z.g1)(),x=y.width,E=y.height,N=null;return he<=x&&d<=E?N={x:0,y:0}:(he>x||d>E)&&(N=(0,b.Z)((0,b.Z)({},ut("x",R,he,x)),ut("y",i,d,E))),N}var Zt=["visible","onVisibleChange","getContainer","current","countRender"],Ot=p.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),Pt=Ot.Provider,Mt=function(d){var R=d.previewPrefixCls,i=R===void 0?"rc-image-preview":R,y=d.children,x=d.icons,E=x===void 0?{}:x,N=d.preview,k=(0,v.Z)(N)==="object"?N:{},j=k.visible,T=j===void 0?void 0:j,W=k.onVisibleChange,G=W===void 0?void 0:W,q=k.getContainer,me=q===void 0?void 0:q,ae=k.current,_=ae===void 0?0:ae,fe=k.countRender,Pe=fe===void 0?void 0:fe,je=(0,P.Z)(k,Zt),Y=(0,p.useState)(new Map),Ue=(0,g.Z)(Y,2),ve=Ue[0],ue=Ue[1],Ee=(0,p.useState)(),le=(0,g.Z)(Ee,2),Re=le[0],De=le[1],Ae=(0,H.Z)(!!T,{value:T,onChange:G}),Ge=(0,g.Z)(Ae,2),Ze=Ge[0],pe=Ge[1],qe=(0,p.useState)(null),ke=(0,g.Z)(qe,2),Fe=ke[0],ft=ke[1],dt=T!==void 0,_e=Array.from(ve.keys()),vt=_e[_],rt=new Map(Array.from(ve).filter(function(We){var Ve=(0,g.Z)(We,2),Te=Ve[1].canPreview;return!!Te}).map(function(We){var Ve=(0,g.Z)(We,2),Te=Ve[0],et=Ve[1].url;return[Te,et]})),ot=function(Ve,Te){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ke=function(){ue(function(mt){var kt=new Map(mt),Le=kt.delete(Ve);return Le?kt:mt})};return ue(function(bt){return new Map(bt).set(Ve,{url:Te,canPreview:et})}),Ke},yt=function(Ve){Ve.stopPropagation(),pe(!1),ft(null)};return p.useEffect(function(){De(vt)},[vt]),p.useEffect(function(){!Ze&&dt&&De(vt)},[vt,dt,Ze]),p.createElement(Pt,{value:{isPreviewGroup:!0,previewUrls:rt,setPreviewUrls:ue,current:Re,setCurrent:De,setShowPreview:pe,setMousePosition:ft,registerImage:ot}},y,p.createElement(B,(0,c.Z)({"aria-hidden":!Ze,visible:Ze,prefixCls:i,onClose:yt,mousePosition:Fe,src:rt.get(Re),icons:E,getContainer:me,countRender:Pe},je)))},_t=Mt,It=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],gt=p.useState,Kt=p.useEffect,Nt=p.useCallback,Jt=p.useRef,A=p.useContext,J={x:0,y:0},U=function(d){var R,i=d.prefixCls,y=d.src,x=d.alt,E=d.onClose,N=d.afterClose,k=d.visible,j=d.icons,T=j===void 0?{}:j,W=d.rootClassName,G=d.countRender,q=(0,P.Z)(d,It),me=T.rotateLeft,ae=T.rotateRight,_=T.zoomIn,fe=T.zoomOut,Pe=T.close,je=T.left,Y=T.right,Ue=gt(1),ve=(0,g.Z)(Ue,2),ue=ve[0],Ee=ve[1],le=gt(0),Re=(0,g.Z)(le,2),De=Re[0],Ae=Re[1],Ge=at(J),Ze=(0,g.Z)(Ge,2),pe=Ze[0],qe=Ze[1],ke=Jt(),Fe=Jt({originX:0,originY:0,deltaX:0,deltaY:0}),ft=gt(!1),dt=(0,g.Z)(ft,2),_e=dt[0],vt=dt[1],rt=A(Ot),ot=rt.previewUrls,yt=rt.current,We=rt.isPreviewGroup,Ve=rt.setCurrent,Te=ot.size,et=Array.from(ot.keys()),Ke=et.indexOf(yt),bt=We?ot.get(yt):y,mt=We&&Te>1,kt=gt({wheelDirection:0}),Le=(0,g.Z)(kt,2),Me=Le[0],Je=Le[1],ee=function(){Ee(1),Ae(0),qe(J)},te=function(){Ee(function(r){return r+1}),qe(J)},Oe=function(){ue>1&&Ee(function(r){return r-1}),qe(J)},we=function(){Ae(function(r){return r+90})},st=function(){Ae(function(r){return r-90})},it=function(r){r.preventDefault(),r.stopPropagation(),Ke>0&&Ve(et[Ke-1])},Qe=function(r){r.preventDefault(),r.stopPropagation(),Ke0&&Ve(et[Ke-1]):lt.keyCode===Ne.Z.RIGHT&&Ke0?Oe():lt<0&&te()},[Me]),Kt(function(){var lt,r,t=(0,Q.Z)(window,"mouseup",Tt,!1),u=(0,Q.Z)(window,"mousemove",Lt,!1),o=(0,Q.Z)(window,"wheel",wt,{passive:!1}),C=(0,Q.Z)(window,"keydown",Yt,!1);try{window.top!==window.self&&(lt=(0,Q.Z)(window.top,"mouseup",Tt,!1),r=(0,Q.Z)(window.top,"mousemove",Lt,!1))}catch(w){(0,ie.Kp)(!1,"[rc-image] ".concat(w))}return function(){t.remove(),u.remove(),o.remove(),C.remove(),lt&<.remove(),r&&r.remove()}},[k,_e,Yt]),p.createElement(K.Z,(0,c.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:i,onClose:E,afterClose:ee,visible:k,wrapClassName:Gt,rootClassName:W},q),p.createElement("ul",{className:"".concat(i,"-operations")},mt&&p.createElement("li",{className:"".concat(i,"-operations-progress")},(R=G==null?void 0:G(Ke+1,Te))!==null&&R!==void 0?R:"".concat(Ke+1," / ").concat(Te)),Ct.map(function(lt){var r=lt.icon,t=lt.onClick,u=lt.type,o=lt.disabled;return p.createElement("li",{className:f()(At,(0,h.Z)({},"".concat(i,"-operations-operation-disabled"),!!o)),onClick:t,key:u},p.isValidElement(r)?p.cloneElement(r,{className:tn}):r)})),p.createElement("div",{className:"".concat(i,"-img-wrapper"),style:{transform:"translate3d(".concat(pe.x,"px, ").concat(pe.y,"px, 0)")}},p.createElement("img",{onMouseDown:Qt,onDoubleClick:an,ref:ke,className:"".concat(i,"-img"),src:bt,alt:x,style:{transform:"scale3d(".concat(ue,", ").concat(ue,", 1) rotate(").concat(De,"deg)")}})),mt&&p.createElement("div",{className:f()("".concat(i,"-switch-left"),(0,h.Z)({},"".concat(i,"-switch-left-disabled"),Ke===0)),onClick:it},je),mt&&p.createElement("div",{className:f()("".concat(i,"-switch-right"),(0,h.Z)({},"".concat(i,"-switch-right-disabled"),Ke===Te-1)),onClick:Qe},Y))},B=U,M=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"],$=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"],F=0,ne=function(d){var R=d.src,i=d.alt,y=d.onPreviewClose,x=d.prefixCls,E=x===void 0?"rc-image":x,N=d.previewPrefixCls,k=N===void 0?"".concat(E,"-preview"):N,j=d.placeholder,T=d.fallback,W=d.width,G=d.height,q=d.style,me=d.preview,ae=me===void 0?!0:me,_=d.className,fe=d.onClick,Pe=d.onError,je=d.wrapperClassName,Y=d.wrapperStyle,Ue=d.rootClassName,ve=d.crossOrigin,ue=d.decoding,Ee=d.loading,le=d.referrerPolicy,Re=d.sizes,De=d.srcSet,Ae=d.useMap,Ge=(0,P.Z)(d,M),Ze=j&&j!==!0,pe=(0,v.Z)(ae)==="object"?ae:{},qe=pe.src,ke=pe.visible,Fe=ke===void 0?void 0:ke,ft=pe.onVisibleChange,dt=ft===void 0?y:ft,_e=pe.getContainer,vt=_e===void 0?void 0:_e,rt=pe.mask,ot=pe.maskClassName,yt=pe.icons,We=(0,P.Z)(pe,$),Ve=qe!=null?qe:R,Te=Fe!==void 0,et=(0,H.Z)(!!Fe,{value:Fe,onChange:dt}),Ke=(0,g.Z)(et,2),bt=Ke[0],mt=Ke[1],kt=(0,p.useState)(Ze?"loading":"normal"),Le=(0,g.Z)(kt,2),Me=Le[0],Je=Le[1],ee=(0,p.useState)(null),te=(0,g.Z)(ee,2),Oe=te[0],we=te[1],st=Me==="error",it=p.useContext(Ot),Qe=it.isPreviewGroup,Gt=it.setCurrent,At=it.setShowPreview,tn=it.setMousePosition,Ct=it.registerImage,Tt=p.useState(function(){return F+=1,F}),Qt=(0,g.Z)(Tt,1),Lt=Qt[0],wt=ae&&!st,Yt=p.useRef(!1),an=function(){Je("normal")},lt=function(L){Pe&&Pe(L),Je("error")},r=function(L){if(!Te){var oe=(0,z.os)(L.target),ye=oe.left,ge=oe.top;Qe?(Gt(Lt),tn({x:ye,y:ge})):we({x:ye,y:ge})}Qe?At(!0):mt(!0),fe&&fe(L)},t=function(L){L.stopPropagation(),mt(!1),Te||we(null)},u=function(L){Yt.current=!1,Me==="loading"&&(L==null?void 0:L.complete)&&(L.naturalWidth||L.naturalHeight)&&(Yt.current=!0,an())};p.useEffect(function(){var D=Ct(Lt,Ve);return D},[]),p.useEffect(function(){Ct(Lt,Ve,wt)},[Ve,wt]),p.useEffect(function(){st&&Je("normal"),Ze&&!Yt.current&&Je("loading")},[R]);var o=f()(E,je,Ue,(0,h.Z)({},"".concat(E,"-error"),st)),C=st&&T?T:Ve,w={crossOrigin:ve,decoding:ue,loading:Ee,referrerPolicy:le,sizes:Re,srcSet:De,useMap:Ae,alt:i,className:f()("".concat(E,"-img"),(0,h.Z)({},"".concat(E,"-img-placeholder"),j===!0),_),style:(0,b.Z)({height:G},q)};return p.createElement(p.Fragment,null,p.createElement("div",(0,c.Z)({},Ge,{className:o,onClick:wt?r:fe,style:(0,b.Z)({width:W,height:G},Y)}),p.createElement("img",(0,c.Z)({},w,{ref:u},st&&T?{src:T}:{onLoad:an,onError:lt,src:R})),Me==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(E,"-placeholder")},j),rt&&wt&&p.createElement("div",{className:f()("".concat(E,"-mask"),ot)},rt)),!Qe&&wt&&p.createElement(B,(0,c.Z)({"aria-hidden":!bt,visible:bt,prefixCls:k,onClose:t,mousePosition:Oe,src:C,alt:i,getContainer:vt,icons:yt,rootClassName:Ue},We)))};ne.PreviewGroup=_t,ne.displayName="Image";var re=ne,Ce=re,de=e(53124),xe=e(40378),$e=e(33603),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},He=ct,ze=e(27029),nt=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:He}))};nt.displayName="RotateLeftOutlined";var Bt=p.forwardRef(nt),Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},l=Ht,a=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:l}))};a.displayName="RotateRightOutlined";var n=p.forwardRef(a),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},S=m,I=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:S}))};I.displayName="ZoomInOutlined";var X=p.forwardRef(I),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ce=se,Se=function(d,R){return p.createElement(ze.Z,(0,b.Z)((0,b.Z)({},d),{},{ref:R,icon:ce}))};Se.displayName="ZoomOutOutlined";var Ie=p.forwardRef(Se),be=e(54549),Ye=e(67724),pt=e(8812),jt=function(he,d){var R={};for(var i in he)Object.prototype.hasOwnProperty.call(he,i)&&d.indexOf(i)<0&&(R[i]=he[i]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,i=Object.getOwnPropertySymbols(he);yNumber.MAX_SAFE_INTEGER)return String(Ne()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(I0&&arguments[0]!==void 0?arguments[0]:!0;return m?this.isInvalidate()?"":ut(this.number):this.origin}}]),a}(),Ot=function(){function a(n){if((0,K.Z)(this,a),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!n&&n!==0||!String(n).trim()){this.empty=!0;return}if(this.origin=String(n),n==="-"){this.nan=!0;return}var m=n;if(tt(m)&&(m=Number(m)),m=typeof m=="string"?m:ut(m),Be(m)){var S=ie(m);this.negative=S.negative;var I=S.trimStr.split(".");this.integer=BigInt(I[0]);var X=I[1]||"0";this.decimal=BigInt(X),this.decimalLen=X.length}else this.nan=!0}return(0,Q.Z)(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(m){var S="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(m,"0"));return BigInt(S)}},{key:"negate",value:function(){var m=new a(this.toString());return m.negative=!m.negative,m}},{key:"add",value:function(m){if(this.isInvalidate())return new a(m);var S=new a(m);if(S.isInvalidate())return this;var I=Math.max(this.getDecimalStr().length,S.getDecimalStr().length),X=this.alignDecimal(I),se=S.alignDecimal(I),ce=(X+se).toString(),Se=ie(ce),Ie=Se.negativeStr,be=Se.trimStr,Ye="".concat(Ie).concat(be.padStart(I+1,"0"));return new a("".concat(Ye.slice(0,-I),".").concat(Ye.slice(-I)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(m){return this.toString()===(m==null?void 0:m.toString())}},{key:"lessEquals",value:function(m){return this.add(m.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return m?this.isInvalidate()?"":ie("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function Pt(a){return Ne()?new Ot(a):new Zt(a)}function Mt(a,n,m){if(a==="")return"";var S=ie(a),I=S.negativeStr,X=S.integerStr,se=S.decimalStr,ce="".concat(n).concat(se),Se="".concat(I).concat(X);if(m>=0){var Ie=Number(se[m]);if(Ie>=5){var be=Pt(a).add("".concat(I,"0.").concat("0".repeat(m)).concat(10-Ie));return Mt(be.toString(),n,m)}return m===0?Se:"".concat(Se).concat(n).concat(se.padEnd(m,"0").slice(0,m))}return ce===".0"?Se:"".concat(Se).concat(ce)}var _t=e(31131),It=200,gt=600;function Kt(a){var n=a.prefixCls,m=a.upNode,S=a.downNode,I=a.upDisabled,X=a.downDisabled,se=a.onStep,ce=f.useRef(),Se=f.useRef();Se.current=se;var Ie=function(St,zt){St.preventDefault(),Se.current(zt);function Ft(){Se.current(zt),ce.current=setTimeout(Ft,It)}ce.current=setTimeout(Ft,gt)},be=function(){clearTimeout(ce.current)};if(f.useEffect(function(){return be},[]),(0,_t.Z)())return null;var Ye="".concat(n,"-handler"),pt=p()(Ye,"".concat(Ye,"-up"),(0,v.Z)({},"".concat(Ye,"-up-disabled"),I)),jt=p()(Ye,"".concat(Ye,"-down"),(0,v.Z)({},"".concat(Ye,"-down-disabled"),X)),ht={unselectable:"on",role:"button",onMouseUp:be,onMouseLeave:be};return f.createElement("div",{className:"".concat(Ye,"-wrap")},f.createElement("span",(0,c.Z)({},ht,{onMouseDown:function(St){Ie(St,!0)},"aria-label":"Increase Value","aria-disabled":I,className:pt}),m||f.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),f.createElement("span",(0,c.Z)({},ht,{onMouseDown:function(St){Ie(St,!1)},"aria-label":"Decrease Value","aria-disabled":X,className:jt}),S||f.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}var Nt=e(80334);function Jt(a,n){var m=(0,f.useRef)(null);function S(){try{var X=a.selectionStart,se=a.selectionEnd,ce=a.value,Se=ce.substring(0,X),Ie=ce.substring(se);m.current={start:X,end:se,value:ce,beforeTxt:Se,afterTxt:Ie}}catch(be){}}function I(){if(a&&m.current&&n)try{var X=a.value,se=m.current,ce=se.beforeTxt,Se=se.afterTxt,Ie=se.start,be=X.length;if(X.endsWith(Se))be=X.length-m.current.afterTxt.length;else if(X.startsWith(ce))be=ce.length;else{var Ye=ce[Ie-1],pt=X.indexOf(Ye,Ie-1);pt!==-1&&(be=pt+1)}a.setSelectionRange(be,be)}catch(jt){(0,Nt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(jt.message))}}return[S,I]}var A=e(98924),J=(0,A.Z)()?f.useLayoutEffect:f.useEffect;function U(a,n){var m=f.useRef(!1);J(function(){if(!m.current){m.current=!0;return}return a()},n)}var B=e(75164),M=function(){var a=(0,f.useRef)(0),n=function(){B.Z.cancel(a.current)};return(0,f.useEffect)(function(){return n},[]),function(m){n(),a.current=(0,B.Z)(function(){m()})}},$=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],F=function(n,m){return n||m.isEmpty()?m.toString():m.toNumber()},ne=function(n){var m=Pt(n);return m.isInvalidate()?null:m},re=f.forwardRef(function(a,n){var m,S=a.prefixCls,I=S===void 0?"rc-input-number":S,X=a.className,se=a.style,ce=a.min,Se=a.max,Ie=a.step,be=Ie===void 0?1:Ie,Ye=a.defaultValue,pt=a.value,jt=a.disabled,ht=a.readOnly,$t=a.upHandler,St=a.downHandler,zt=a.keyboard,Ft=a.controls,Dt=Ft===void 0?!0:Ft,he=a.stringMode,d=a.parser,R=a.formatter,i=a.precision,y=a.decimalSeparator,x=a.onChange,E=a.onInput,N=a.onPressEnter,k=a.onStep,j=(0,O.Z)(a,$),T="".concat(I,"-input"),W=f.useRef(null),G=f.useState(!1),q=(0,b.Z)(G,2),me=q[0],ae=q[1],_=f.useRef(!1),fe=f.useRef(!1),Pe=f.useState(function(){return Pt(pt!=null?pt:Ye)}),je=(0,b.Z)(Pe,2),Y=je[0],Ue=je[1];function ve(ee){pt===void 0&&Ue(ee)}var ue=f.useCallback(function(ee,te){if(!te)return i>=0?i:Math.max(at(ee),at(be))},[i,be]),Ee=f.useCallback(function(ee){var te=String(ee);if(d)return d(te);var Oe=te;return y&&(Oe=Oe.replace(y,".")),Oe.replace(/[^\w.-]+/g,"")},[d,y]),le=f.useRef(""),Re=f.useCallback(function(ee,te){if(R)return R(ee,{userTyping:te,input:String(le.current)});var Oe=typeof ee=="number"?ut(ee):ee;if(!te){var we=ue(Oe,te);if(Be(Oe)&&(y||we>=0)){var st=y||".";Oe=Mt(Oe,st,we)}}return Oe},[R,ue,y]),De=f.useState(function(){var ee=Ye!=null?Ye:pt;return Y.isInvalidate()&&["string","number"].includes((0,s.Z)(ee))?Number.isNaN(ee)?"":ee:Re(Y.toString(),!1)}),Ae=(0,b.Z)(De,2),Ge=Ae[0],Ze=Ae[1];le.current=Ge;function pe(ee,te){Ze(Re(ee.isInvalidate()?ee.toString(!1):ee.toString(!te),te))}var qe=f.useMemo(function(){return ne(Se)},[Se]),ke=f.useMemo(function(){return ne(ce)},[ce]),Fe=f.useMemo(function(){return!qe||!Y||Y.isInvalidate()?!1:qe.lessEquals(Y)},[qe,Y]),ft=f.useMemo(function(){return!ke||!Y||Y.isInvalidate()?!1:Y.lessEquals(ke)},[ke,Y]),dt=Jt(W.current,me),_e=(0,b.Z)(dt,2),vt=_e[0],rt=_e[1],ot=function(te){return qe&&!te.lessEquals(qe)?qe:ke&&!ke.lessEquals(te)?ke:null},yt=function(te){return!ot(te)},We=function(te,Oe){var we=te,st=yt(we)||we.isEmpty();if(!we.isEmpty()&&!Oe&&(we=ot(we)||we,st=!0),!ht&&!jt&&st){var it=we.toString(),Qe=ue(it,Oe);return Qe>=0&&(we=Pt(Mt(it,".",Qe))),we.equals(Y)||(ve(we),x==null||x(we.isEmpty()?null:F(he,we)),pt===void 0&&pe(we,Oe)),we}return Y},Ve=M(),Te=function ee(te){if(vt(),Ze(te),!fe.current){var Oe=Ee(te),we=Pt(Oe);we.isNaN()||We(we,!0)}E==null||E(te),Ve(function(){var st=te;d||(st=te.replace(/。/g,".")),st!==te&&ee(st)})},et=function(){fe.current=!0},Ke=function(){fe.current=!1,Te(W.current.value)},bt=function(te){Te(te.target.value)},mt=function(te){var Oe;if(!(te&&Fe||!te&&ft)){_.current=!1;var we=Pt(be);te||(we=we.negate());var st=(Y||Pt(0)).add(we.toString()),it=We(st,!1);k==null||k(F(he,it),{offset:be,type:te?"up":"down"}),(Oe=W.current)===null||Oe===void 0||Oe.focus()}},kt=function(te){var Oe=Pt(Ee(Ge)),we=Oe;Oe.isNaN()?we=Y:we=We(Oe,te),pt!==void 0?pe(Y,!1):we.isNaN()||pe(we,!1)},Le=function(te){var Oe=te.which;_.current=!0,Oe===z.Z.ENTER&&(fe.current||(_.current=!1),kt(!1),N==null||N(te)),zt!==!1&&!fe.current&&[z.Z.UP,z.Z.DOWN].includes(Oe)&&(mt(z.Z.UP===Oe),te.preventDefault())},Me=function(){_.current=!1},Je=function(){kt(!1),ae(!1),_.current=!1};return U(function(){Y.isInvalidate()||pe(Y,!1)},[i]),U(function(){var ee=Pt(pt);Ue(ee);var te=Pt(Ee(Ge));(!ee.equals(te)||!_.current||R)&&pe(ee,_.current)},[pt]),U(function(){R&&rt()},[Ge]),f.createElement("div",{className:p()(I,X,(m={},(0,v.Z)(m,"".concat(I,"-focused"),me),(0,v.Z)(m,"".concat(I,"-disabled"),jt),(0,v.Z)(m,"".concat(I,"-readonly"),ht),(0,v.Z)(m,"".concat(I,"-not-a-number"),Y.isNaN()),(0,v.Z)(m,"".concat(I,"-out-of-range"),!Y.isInvalidate()&&!yt(Y)),m)),style:se,onFocus:function(){ae(!0)},onBlur:Je,onKeyDown:Le,onKeyUp:Me,onCompositionStart:et,onCompositionEnd:Ke},Dt&&f.createElement(Kt,{prefixCls:I,upNode:$t,downNode:St,upDisabled:Fe,downDisabled:ft,onStep:mt}),f.createElement("div",{className:"".concat(T,"-wrap")},f.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":ce,"aria-valuemax":Se,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:be},j,{ref:(0,H.sQ)(W,n),className:T,value:Ge,onChange:bt,disabled:jt,readOnly:ht}))))});re.displayName="InputNumber";var Ce=re,de=Ce,xe=e(53124),$e=e(98866),ct=e(97647),He=e(65223),ze=e(96159),nt=e(9708),Bt=function(a,n){var m={};for(var S in a)Object.prototype.hasOwnProperty.call(a,S)&&n.indexOf(S)<0&&(m[S]=a[S]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,S=Object.getOwnPropertySymbols(a);I=de&&ne$e?"true":"false","aria-posinset":$e+1,"aria-setsize":ct,tabIndex:re?-1:0},s.createElement("div",{className:"".concat(Ce,"-first")},ze),s.createElement("div",{className:"".concat(Ce,"-second")},ze)));return xe&&(nt=xe(nt,this.props)),nt}}]),U}(s.Component);function Ot(){}var Pt=function(A){(0,H.Z)(U,A);var J=(0,K.Z)(U);function U(B){var M;(0,f.Z)(this,U),M=J.call(this,B),M.stars=void 0,M.rate=void 0,M.onHover=function(F,ne){var re=M.props.onHoverChange,Ce=M.getStarValue(ne,F.pageX),de=M.state.cleanedValue;Ce!==de&&M.setState({hoverValue:Ce,cleanedValue:null}),re(Ce)},M.onMouseLeave=function(){var F=M.props.onHoverChange;M.setState({hoverValue:void 0,cleanedValue:null}),F(void 0)},M.onClick=function(F,ne){var re=M.props.allowClear,Ce=M.state.value,de=M.getStarValue(ne,F.pageX),xe=!1;re&&(xe=de===Ce),M.onMouseLeave(),M.changeValue(xe?0:de),M.setState({cleanedValue:xe?de:null})},M.onFocus=function(){var F=M.props.onFocus;M.setState({focused:!0}),F&&F()},M.onBlur=function(){var F=M.props.onBlur;M.setState({focused:!1}),F&&F()},M.onKeyDown=function(F){var ne=F.keyCode,re=M.props,Ce=re.count,de=re.allowHalf,xe=re.onKeyDown,$e=re.direction,ct=$e==="rtl",He=M.state.value;ne===tt.Z.RIGHT&&He0&&!ct||ne===tt.Z.RIGHT&&He>0&&ct?(de?He-=.5:He-=1,M.changeValue(He),F.preventDefault()):ne===tt.Z.LEFT&&Hect/2||!Ce&&$-$e1&&arguments[1]!==void 0?arguments[1]:"0",ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return q.map(function(_,fe){var Pe="".concat(me,"-").concat(fe),je=_[k.value],Y=x.includes(je),Ue=G(_[k.children]||[],Pe,Y),ve=s.createElement(Jt,_,Ue.map(function(Ee){return Ee.node}));if(y===je&&(j=ve),Y){var ue={pos:Pe,node:ve,children:Ue};return ae||T.push(ue),ue}return null}).filter(function(_){return _})}T||(T=[],G(E),T.sort(function(q,me){var ae=q.node.props.value,_=me.node.props.value,fe=x.indexOf(ae),Pe=x.indexOf(_);return fe-Pe}))}Object.defineProperty(i,"triggerNode",{get:function(){return(0,$.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),W(),j}}),Object.defineProperty(i,"allCheckedNodes",{get:function(){return(0,$.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),W(),N?T:T.map(function(q){var me=q.node;return me})}})}function de(i,y){var x=y.id,E=y.pId,N=y.rootPId,k={},j=[],T=i.map(function(W){var G=(0,h.Z)({},W),q=G[x];return k[q]=G,G.key=G.key||q,G});return T.forEach(function(W){var G=W[E],q=k[G];q&&(q.children=q.children||[],q.children.push(W)),(G===N||!q&&N===null)&&j.push(W)}),j}function xe(i,y,x){return s.useMemo(function(){return i?x?de(i,(0,h.Z)({id:"id",pId:"pId",rootPId:null},x!==!0?x:{})):i:ne(y)},[y,x,i])}var $e=function(i){var y=s.useRef({valueLabels:new Map});return s.useMemo(function(){var x=y.current.valueLabels,E=new Map,N=i.map(function(k){var j,T=k.value,W=(j=k.label)!==null&&j!==void 0?j:x.get(T);return E.set(T,W),(0,h.Z)((0,h.Z)({},k),{},{label:W})});return y.current.valueLabels=E,[N]},[i])};function ct(i){var y=s.useRef();y.current=i;var x=s.useCallback(function(){return y.current.apply(y,arguments)},[]);return x}var He=e(1089),ze=function(i,y){return s.useMemo(function(){var x=(0,He.I8)(i,{fieldNames:y,initWrapper:function(N){return(0,h.Z)((0,h.Z)({},N),{},{valueEntities:new Map})},processEntity:function(N,k){var j=N.node[y.value];if(!1)var T;k.valueEntities.set(j,N)}});return x},[i,y])},nt=function(i,y,x,E){return s.useMemo(function(){var N=i.map(function(W){var G=W.value;return G}),k=y.map(function(W){var G=W.value;return G}),j=N.filter(function(W){return!E[W]});if(x){var T=(0,f.S)(N,!0,E);N=T.checkedKeys,k=T.halfCheckedKeys}return[Array.from(new Set([].concat((0,b.Z)(j),(0,b.Z)(N)))),k]},[i,y,x,E])},Bt=function(i,y,x){var E=x.treeNodeFilterProp,N=x.filterTreeNode,k=x.fieldNames,j=k.children;return s.useMemo(function(){if(!y||N===!1)return i;var T;if(typeof N=="function")T=N;else{var W=y.toUpperCase();T=function(me,ae){var _=ae[E];return String(_).toUpperCase().includes(W)}}function G(q){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q.map(function(ae){var _=ae[j],fe=me||T(y,re(ae)),Pe=G(_||[],fe);return fe||Pe.length?(0,h.Z)((0,h.Z)({},ae),{},(0,v.Z)({},j,Pe)):null}).filter(function(ae){return ae})}return G(i)},[i,y,j,E,N])};function Ht(i){var y=i.searchPlaceholder,x=i.treeCheckStrictly,E=i.treeCheckable,N=i.labelInValue,k=i.value,j=i.multiple;warning(!y,"`searchPlaceholder` has been removed."),x&&N===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(N||x)&&warning(toArray(k).every(function(T){return T&&_typeof(T)==="object"&&"value"in T}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),x||j||E?warning(!k||Array.isArray(k),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(k),"`value` should not be array when `TreeSelect` is single mode.")}var l=null,a=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function n(i){return!i||(0,p.Z)(i)!=="object"}var m=s.forwardRef(function(i,y){var x=i.id,E=i.prefixCls,N=E===void 0?"rc-tree-select":E,k=i.value,j=i.defaultValue,T=i.onChange,W=i.onSelect,G=i.onDeselect,q=i.searchValue,me=i.inputValue,ae=i.onSearch,_=i.autoClearSearchValue,fe=_===void 0?!0:_,Pe=i.filterTreeNode,je=i.treeNodeFilterProp,Y=je===void 0?"value":je,Ue=i.showCheckedStrategy,ve=Ue===void 0?U:Ue,ue=i.treeNodeLabelProp,Ee=i.multiple,le=i.treeCheckable,Re=i.treeCheckStrictly,De=i.labelInValue,Ae=i.fieldNames,Ge=i.treeDataSimpleMode,Ze=i.treeData,pe=i.children,qe=i.loadData,ke=i.treeLoadedKeys,Fe=i.onTreeLoad,ft=i.treeDefaultExpandAll,dt=i.treeExpandedKeys,_e=i.treeDefaultExpandedKeys,vt=i.onTreeExpand,rt=i.treeExpandAction,ot=i.virtual,yt=i.listHeight,We=yt===void 0?200:yt,Ve=i.listItemHeight,Te=Ve===void 0?20:Ve,et=i.onDropdownVisibleChange,Ke=i.dropdownMatchSelectWidth,bt=Ke===void 0?!0:Ke,mt=i.treeLine,kt=i.treeIcon,Le=i.showTreeIcon,Me=i.switcherIcon,Je=i.treeMotion,ee=(0,P.Z)(i,a),te=(0,z.ZP)(x),Oe=le&&!Re,we=le||Re,st=Re||De,it=we||Ee,Qe=s.useMemo(function(){return Zt(Ae)},[JSON.stringify(Ae)]),Gt=(0,H.Z)("",{value:q!==void 0?q:me,postState:function(xt){return xt||""}}),At=(0,g.Z)(Gt,2),tn=At[0],Ct=At[1],Tt=function(xt){Ct(xt),ae==null||ae(xt)},Qt=xe(Ze,pe,Ge),Lt=ze(Qt,Qe),wt=Lt.keyEntities,Yt=Lt.valueEntities,an=s.useCallback(function(Et){var xt=[],Rt=[];return Et.forEach(function(Xt){Yt.has(Xt)?Rt.push(Xt):xt.push(Xt)}),{missingRawValues:xt,existRawValues:Rt}},[Yt]),lt=Bt(Qt,tn,{fieldNames:Qe,treeNodeFilterProp:Y,filterTreeNode:Pe}),r=s.useCallback(function(Et){if(Et){if(ue)return Et[ue];for(var xt=Qe._title,Rt=0;Rt1&&arguments[1]!==void 0?arguments[1]:"span";return function(H){P(K,H);function K(){var Q,Ne,ie,tt;h(this,K);for(var at=arguments.length,ut=Array(at),Be=0;Be1&&arguments[1]!==void 0?arguments[1]:"span";return function(H){P(K,H);function K(){var Q,Ne,ie,tt;h(this,K);for(var at=arguments.length,ut=Array(at),Be=0;Be0&&arguments[0]!==void 0?arguments[0]:[],K=[];return(0,p.default)(H,function(Q){Array.isArray(Q)?z(Q).map(function(Ne){return K.push(Ne)}):(0,g.default)(Q)?(0,b.default)(Q,function(Ne,ie){Ne===!0&&K.push(ie),K.push(ie+"-"+Ne)}):(0,v.default)(Q)&&K.push(Q)}),K};V.default=f},79941:function(Z,V,e){"use strict";var c;c={value:!0},c=c=c=c=c=void 0;var v=e(14147),s=Q(v),b=e(18556),h=Q(b),g=e(24754),P=Q(g),p=e(91765),O=Q(p),f=e(36002),z=Q(f),H=e(57742),K=Q(H);function Q(ie){return ie&&ie.__esModule?ie:{default:ie}}c=O.default,c=O.default,c=z.default,c=K.default;var Ne=c=function(tt){for(var at=arguments.length,ut=Array(at>1?at-1:0),Be=1;Be1&&arguments[1]!==void 0?arguments[1]:!0;b[P]=p};return v===0&&h("first-child"),v===s-1&&h("last-child"),(v===0||v%2==0)&&h("even"),Math.abs(v%2)===1&&h("odd"),h("nth-child",v),b};V.default=e},18556:function(Z,V,e){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.mergeClasses=void 0;var c=e(2525),v=g(c),s=e(50361),b=g(s),h=Object.assign||function(p){for(var O=1;O1&&arguments[1]!==void 0?arguments[1]:[],z=O.default&&(0,b.default)(O.default)||{};return f.map(function(H){var K=O[H];return K&&(0,v.default)(K,function(Q,Ne){z[Ne]||(z[Ne]={}),z[Ne]=h({},z[Ne],K[Ne])}),H}),z};V.default=P},17621:function(Z,V,e){var c;(function(v){var s=/^\s+/,b=/\s+$/,h=0,g=v.round,P=v.min,p=v.max,O=v.random;function f(l,a){if(l=l||"",a=a||{},l instanceof f)return l;if(!(this instanceof f))return new f(l,a);var n=z(l);this._originalInput=l,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=g(100*this._a)/100,this._format=a.format||n.format,this._gradientType=a.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=n.ok,this._tc_id=h++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var l=this.toRgb();return(l.r*299+l.g*587+l.b*114)/1e3},getLuminance:function(){var l=this.toRgb(),a,n,m,S,I,X;return a=l.r/255,n=l.g/255,m=l.b/255,a<=.03928?S=a/12.92:S=v.pow((a+.055)/1.055,2.4),n<=.03928?I=n/12.92:I=v.pow((n+.055)/1.055,2.4),m<=.03928?X=m/12.92:X=v.pow((m+.055)/1.055,2.4),.2126*S+.7152*I+.0722*X},setAlpha:function(l){return this._a=$(l),this._roundA=g(100*this._a)/100,this},toHsv:function(){var l=Ne(this._r,this._g,this._b);return{h:l.h*360,s:l.s,v:l.v,a:this._a}},toHsvString:function(){var l=Ne(this._r,this._g,this._b),a=g(l.h*360),n=g(l.s*100),m=g(l.v*100);return this._a==1?"hsv("+a+", "+n+"%, "+m+"%)":"hsva("+a+", "+n+"%, "+m+"%, "+this._roundA+")"},toHsl:function(){var l=K(this._r,this._g,this._b);return{h:l.h*360,s:l.s,l:l.l,a:this._a}},toHslString:function(){var l=K(this._r,this._g,this._b),a=g(l.h*360),n=g(l.s*100),m=g(l.l*100);return this._a==1?"hsl("+a+", "+n+"%, "+m+"%)":"hsla("+a+", "+n+"%, "+m+"%, "+this._roundA+")"},toHex:function(l){return tt(this._r,this._g,this._b,l)},toHexString:function(l){return"#"+this.toHex(l)},toHex8:function(l){return at(this._r,this._g,this._b,this._a,l)},toHex8String:function(l){return"#"+this.toHex8(l)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(F(this._r,255)*100)+"%",g:g(F(this._g,255)*100)+"%",b:g(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(F(this._r,255)*100)+"%, "+g(F(this._g,255)*100)+"%, "+g(F(this._b,255)*100)+"%)":"rgba("+g(F(this._r,255)*100)+"%, "+g(F(this._g,255)*100)+"%, "+g(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[tt(this._r,this._g,this._b,!0)]||!1},toFilter:function(l){var a="#"+ut(this._r,this._g,this._b,this._a),n=a,m=this._gradientType?"GradientType = 1, ":"";if(l){var S=f(l);n="#"+ut(S._r,S._g,S._b,S._a)}return"progid:DXImageTransform.Microsoft.gradient("+m+"startColorstr="+a+",endColorstr="+n+")"},toString:function(l){var a=!!l;l=l||this._format;var n=!1,m=this._a<1&&this._a>=0,S=!a&&m&&(l==="hex"||l==="hex6"||l==="hex3"||l==="hex4"||l==="hex8"||l==="name");return S?l==="name"&&this._a===0?this.toName():this.toRgbString():(l==="rgb"&&(n=this.toRgbString()),l==="prgb"&&(n=this.toPercentageRgbString()),(l==="hex"||l==="hex6")&&(n=this.toHexString()),l==="hex3"&&(n=this.toHexString(!0)),l==="hex4"&&(n=this.toHex8String(!0)),l==="hex8"&&(n=this.toHex8String()),l==="name"&&(n=this.toName()),l==="hsl"&&(n=this.toHslString()),l==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(l,a){var n=l.apply(null,[this].concat([].slice.call(a)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Pt,arguments)},brighten:function(){return this._applyModification(Mt,arguments)},darken:function(){return this._applyModification(_t,arguments)},desaturate:function(){return this._applyModification(Be,arguments)},saturate:function(){return this._applyModification(Zt,arguments)},greyscale:function(){return this._applyModification(Ot,arguments)},spin:function(){return this._applyModification(It,arguments)},_applyCombination:function(l,a){return l.apply(null,[this].concat([].slice.call(a)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(gt,arguments)},monochromatic:function(){return this._applyCombination(J,arguments)},splitcomplement:function(){return this._applyCombination(Jt,arguments)},triad:function(){return this._applyCombination(Kt,arguments)},tetrad:function(){return this._applyCombination(Nt,arguments)}},f.fromRatio=function(l,a){if(typeof l=="object"){var n={};for(var m in l)l.hasOwnProperty(m)&&(m==="a"?n[m]=l[m]:n[m]=$e(l[m]));l=n}return f(l,a)};function z(l){var a={r:0,g:0,b:0},n=1,m=null,S=null,I=null,X=!1,se=!1;return typeof l=="string"&&(l=Bt(l)),typeof l=="object"&&(nt(l.r)&&nt(l.g)&&nt(l.b)?(a=H(l.r,l.g,l.b),X=!0,se=String(l.r).substr(-1)==="%"?"prgb":"rgb"):nt(l.h)&&nt(l.s)&&nt(l.v)?(m=$e(l.s),S=$e(l.v),a=ie(l.h,m,S),X=!0,se="hsv"):nt(l.h)&&nt(l.s)&&nt(l.l)&&(m=$e(l.s),I=$e(l.l),a=Q(l.h,m,I),X=!0,se="hsl"),l.hasOwnProperty("a")&&(n=l.a)),n=$(n),{ok:X,format:l.format||se,r:P(255,p(a.r,0)),g:P(255,p(a.g,0)),b:P(255,p(a.b,0)),a:n}}function H(l,a,n){return{r:F(l,255)*255,g:F(a,255)*255,b:F(n,255)*255}}function K(l,a,n){l=F(l,255),a=F(a,255),n=F(n,255);var m=p(l,a,n),S=P(l,a,n),I,X,se=(m+S)/2;if(m==S)I=X=0;else{var ce=m-S;switch(X=se>.5?ce/(2-m-S):ce/(m+S),m){case l:I=(a-n)/ce+(a1&&(be-=1),be<1/6?Se+(Ie-Se)*6*be:be<1/2?Ie:be<2/3?Se+(Ie-Se)*(2/3-be)*6:Se}if(a===0)m=S=I=n;else{var se=n<.5?n*(1+a):n+a-n*a,ce=2*n-se;m=X(ce,se,l+1/3),S=X(ce,se,l),I=X(ce,se,l-1/3)}return{r:m*255,g:S*255,b:I*255}}function Ne(l,a,n){l=F(l,255),a=F(a,255),n=F(n,255);var m=p(l,a,n),S=P(l,a,n),I,X,se=m,ce=m-S;if(X=m===0?0:ce/m,m==S)I=0;else{switch(m){case l:I=(a-n)/ce+(a>1)+720)%360;--a;)m.h=(m.h+S)%360,I.push(f(m));return I}function J(l,a){a=a||6;for(var n=f(l).toHsv(),m=n.h,S=n.s,I=n.v,X=[],se=1/a;a--;)X.push(f({h:m,s:S,v:I})),I=(I+se)%1;return X}f.mix=function(l,a,n){n=n===0?0:n||50;var m=f(l).toRgb(),S=f(a).toRgb(),I=n/100,X={r:(S.r-m.r)*I+m.r,g:(S.g-m.g)*I+m.g,b:(S.b-m.b)*I+m.b,a:(S.a-m.a)*I+m.a};return f(X)},f.readability=function(l,a){var n=f(l),m=f(a);return(v.max(n.getLuminance(),m.getLuminance())+.05)/(v.min(n.getLuminance(),m.getLuminance())+.05)},f.isReadable=function(l,a,n){var m=f.readability(l,a),S,I;switch(I=!1,S=Ht(n),S.level+S.size){case"AAsmall":case"AAAlarge":I=m>=4.5;break;case"AAlarge":I=m>=3;break;case"AAAsmall":I=m>=7;break}return I},f.mostReadable=function(l,a,n){var m=null,S=0,I,X,se,ce;n=n||{},X=n.includeFallbackColors,se=n.level,ce=n.size;for(var Se=0;SeS&&(S=I,m=f(a[Se]));return f.isReadable(l,m,{level:se,size:ce})||!X?m:(n.includeFallbackColors=!1,f.mostReadable(l,["#fff","#000"],n))};var U=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=f.hexNames=M(U);function M(l){var a={};for(var n in l)l.hasOwnProperty(n)&&(a[l[n]]=n);return a}function $(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function F(l,a){Ce(l)&&(l="100%");var n=de(l);return l=P(a,p(0,parseFloat(l))),n&&(l=parseInt(l*a,10)/100),v.abs(l-a)<1e-6?1:l%a/parseFloat(a)}function ne(l){return P(1,p(0,l))}function re(l){return parseInt(l,16)}function Ce(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function de(l){return typeof l=="string"&&l.indexOf("%")!=-1}function xe(l){return l.length==1?"0"+l:""+l}function $e(l){return l<=1&&(l=l*100+"%"),l}function ct(l){return v.round(parseFloat(l)*255).toString(16)}function He(l){return re(l)/255}var ze=function(){var l="[-\\+]?\\d+%?",a="[-\\+]?\\d*\\.\\d+%?",n="(?:"+a+")|(?:"+l+")",m="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",S="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+S),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+S),hsv:new RegExp("hsv"+m),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 nt(l){return!!ze.CSS_UNIT.exec(l)}function Bt(l){l=l.replace(s,"").replace(b,"").toLowerCase();var a=!1;if(U[l])l=U[l],a=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ze.rgb.exec(l))?{r:n[1],g:n[2],b:n[3]}:(n=ze.rgba.exec(l))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ze.hsl.exec(l))?{h:n[1],s:n[2],l:n[3]}:(n=ze.hsla.exec(l))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ze.hsv.exec(l))?{h:n[1],s:n[2],v:n[3]}:(n=ze.hsva.exec(l))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ze.hex8.exec(l))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),a:He(n[4]),format:a?"name":"hex8"}:(n=ze.hex6.exec(l))?{r:re(n[1]),g:re(n[2]),b:re(n[3]),format:a?"name":"hex"}:(n=ze.hex4.exec(l))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),a:He(n[4]+""+n[4]),format:a?"name":"hex8"}:(n=ze.hex3.exec(l))?{r:re(n[1]+""+n[1]),g:re(n[2]+""+n[2]),b:re(n[3]+""+n[3]),format:a?"name":"hex"}:!1}function Ht(l){var a,n;return l=l||{level:"AA",size:"small"},a=(l.level||"AA").toUpperCase(),n=(l.size||"small").toLowerCase(),a!=="AA"&&a!=="AAA"&&(a="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:a,size:n}}Z.exports?Z.exports=f:(c=function(){return f}.call(V,e,V,Z),c!==void 0&&(Z.exports=c))})(Math)},30939:function(Z,V,e){"use strict";e.d(V,{P:function(){return b}});var c=e(67294);function v(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(f){return typeof f}:v=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},v(O)}var s=function(){var f=new WeakSet;return function(z,H){if(v(H)==="object"&&H!==null){if(f.has(H))return;f.add(H)}return H}},b=function(f){return JSON.stringify(f,s())},h=function(f,z){try{return b(f)===b(z)}catch(H){}return!1};function g(O){var f=useRef("");return h(O,f.current)||(f.current=JSON.stringify(O,s())),f.current}function P(O,f){useEffect(O,[g(f)])}var p=null}}]); diff --git a/5883.a4a421fe.chunk.css b/5883.a4a421fe.chunk.css deleted file mode 100644 index 36ba70ce..00000000 --- a/5883.a4a421fe.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-right:16px;margin-bottom:0}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-inline .ant-form-item .ant-form-item-has-feedback{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-explain-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f;color:var(--ant-error-color)}.ant-form{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-form legend{display:block;width:100%;margin-bottom:20px;padding:0;color:rgba(0,0,0,.45);font-size:16px;line-height:inherit;border:0;border-bottom:1px solid #d9d9d9}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{display:block;padding-top:15px;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";margin:0 0 24px;vertical-align:top;transition:margin-bottom .3s linear 17ms}.ant-form-item-with-help{margin-bottom:0;transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;white-space:nowrap;text-align:right;vertical-align:middle}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{overflow:unset;line-height:1.3215em;white-space:unset}.ant-form-item-label>label{position:relative;display:inline-flex;align-items:center;max-width:100%;height:32px;color:rgba(0,0,0,.85);font-size:14px}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{display:inline-block;margin-left:4px;color:rgba(0,0,0,.45)}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:rgba(0,0,0,.45);cursor:help;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;-webkit-margin-start:4px;margin-inline-start:4px}.ant-form-item-label>label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{position:relative;display:flex;align-items:center;min-height:32px}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1);padding-top:0}.ant-form-item-explain-connected{height:0;min-height:0;opacity:0}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;min-height:24px;opacity:1}.ant-form-item-feedback-icon{font-size:14px;text-align:center;visibility:visible;animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);pointer-events:none}.ant-form-item-feedback-icon-success{color:#52c41a;color:var(--ant-success-color)}.ant-form-item-feedback-icon-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-feedback-icon-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-feedback-icon-validating{color:#1890ff;color:var(--ant-primary-color)}.ant-show-help{transition:height .3s linear,min-height .3s linear,margin-bottom .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-leave{min-height:24px}.ant-show-help-leave-active{min-height:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{transform:translateY(-5px);opacity:0}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{transform:translateY(0);opacity:1}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn2{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn3{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-right:0;margin-left:4px}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-right:4px;margin-left:0}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-right:11px;padding-left:24px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:11px;padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:auto;left:28px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:0;padding-left:42px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:0;margin-left:19px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-right:7px;padding-left:25.2px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{right:auto;left:0}.ant-form-rtl.ant-form-inline .ant-form-item{margin-right:0;margin-left:16px}.ant-input-number-affix-wrapper{display:inline-block;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;position:relative;display:inline-flex;width:90px;padding:0;-webkit-padding-start:11px;padding-inline-start:11px}.ant-input-number-affix-wrapper::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number-affix-wrapper:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-affix-wrapper:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number-affix-wrapper:placeholder-shown{text-overflow:ellipsis}.ant-input-number-affix-wrapper:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-affix-wrapper-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-affix-wrapper[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-affix-wrapper[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-affix-wrapper-borderless,.ant-input-number-affix-wrapper-borderless-disabled,.ant-input-number-affix-wrapper-borderless-focused,.ant-input-number-affix-wrapper-borderless:focus,.ant-input-number-affix-wrapper-borderless:hover,.ant-input-number-affix-wrapper-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-number-affix-wrapper{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-number-affix-wrapper-lg{padding:6.5px 11px;font-size:16px}.ant-input-number-affix-wrapper-sm{padding:0 7px}.ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px;z-index:1}.ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper:focus{z-index:1}.ant-input-number-affix-wrapper-disabled .ant-input-number[disabled]{background:transparent}.ant-input-number-affix-wrapper>div.ant-input-number{width:100%;border:none;outline:none}.ant-input-number-affix-wrapper>div.ant-input-number.ant-input-number-focused{box-shadow:none!important}.ant-input-number-affix-wrapper input.ant-input-number-input{padding:0}.ant-input-number-affix-wrapper:before{width:0;visibility:hidden;content:"\a0"}.ant-input-number-affix-wrapper .ant-input-number-handler-wrap{z-index:2}.ant-input-number-prefix,.ant-input-number-suffix{display:flex;flex:none;align-items:center;pointer-events:none}.ant-input-number-prefix{-webkit-margin-end:4px;margin-inline-end:4px}.ant-input-number-suffix{position:absolute;top:0;right:0;z-index:1;height:100%;margin-right:11px;margin-left:4px}.ant-input-number-group-wrapper .ant-input-number-affix-wrapper{width:100%}.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{background:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused,.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus{border-color:#ff7875;border-color:var(--ant-error-color-hover);box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px var(--ant-error-color-outline);border-right-width:1px;outline:0}.ant-input-number-status-error .ant-input-number-prefix{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number,.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover{background:#fff;border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused,.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus{border-color:#ffc53d;border-color:var(--ant-warning-color-hover);box-shadow:0 0 0 2px rgba(250,173,20,.2);box-shadow:0 0 0 2px var(--ant-warning-color-outline);border-right-width:1px;outline:0}.ant-input-number-status-warning .ant-input-number-prefix{color:#faad14;color:var(--ant-warning-color)}.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper,.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover{background:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus{border-color:#ff7875;border-color:var(--ant-error-color-hover);box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px var(--ant-error-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper,.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover{background:#fff;border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused,.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus{border-color:#ffc53d;border-color:var(--ant-warning-color-hover);box-shadow:0 0 0 2px rgba(250,173,20,.2);box-shadow:0 0 0 2px var(--ant-warning-color-outline);border-right-width:1px;outline:0}.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix{color:#faad14;color:var(--ant-warning-color)}.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon{color:#ff4d4f;color:var(--ant-error-color);border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon{color:#faad14;color:var(--ant-warning-color);border-color:#faad14;border-color:var(--ant-warning-color)}.ant-input-number{box-sizing:border-box;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum","tnum";position:relative;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;transition:all .3s;display:inline-block;width:90px;margin:0;padding:0;border:1px solid #d9d9d9;border-radius:2px}.ant-input-number::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number:placeholder-shown{text-overflow:ellipsis}.ant-input-number-focused,.ant-input-number:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-borderless,.ant-input-number-borderless-disabled,.ant-input-number-borderless-focused,.ant-input-number-borderless:focus,.ant-input-number-borderless:hover,.ant-input-number-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-number-lg{padding:6.5px 11px}.ant-input-number-sm{padding:0 7px}.ant-input-number-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;display:table;width:100%;border-collapse:separate;border-spacing:0}.ant-input-number-group[class*=col-]{float:none;padding-right:0;padding-left:0}.ant-input-number-group>[class*=col-]{padding-right:8px}.ant-input-number-group>[class*=col-]:last-child{padding-right:0}.ant-input-number-group-addon,.ant-input-number-group-wrap,.ant-input-number-group>.ant-input-number{display:table-cell}.ant-input-number-group-addon:not(:first-child):not(:last-child),.ant-input-number-group-wrap:not(:first-child):not(:last-child),.ant-input-number-group>.ant-input-number:not(:first-child):not(:last-child){border-radius:0}.ant-input-number-group-addon,.ant-input-number-group-wrap{width:1px;white-space:nowrap;vertical-align:middle}.ant-input-number-group-wrap>*{display:block!important}.ant-input-number-group .ant-input-number{float:left;width:100%;margin-bottom:0;text-align:inherit}.ant-input-number-group .ant-input-number:focus{z-index:1;border-right-width:1px}.ant-input-number-group .ant-input-number:hover{z-index:1;border-right-width:1px}.ant-input-search-with-button .ant-input-number-group .ant-input-number:hover{z-index:0}.ant-input-number-group-addon{position:relative;padding:0 11px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;text-align:center;background-color:#fafafa;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s}.ant-input-number-group-addon .ant-select{margin:-5px -11px}.ant-input-number-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:1px solid transparent;box-shadow:none}.ant-input-number-group-addon .ant-select-focused .ant-select-selector,.ant-input-number-group-addon .ant-select-open .ant-select-selector{color:#1890ff;color:var(--ant-primary-color)}.ant-input-number-group-addon .ant-cascader-picker{margin:-9px -12px;background-color:transparent}.ant-input-number-group-addon .ant-cascader-picker .ant-cascader-input{text-align:left;border:0;box-shadow:none}.ant-input-number-group-addon:first-child,.ant-input-number-group>.ant-input-number:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group-addon:first-child .ant-select .ant-select-selector,.ant-input-number-group>.ant-input-number:first-child .ant-select .ant-select-selector{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group>.ant-input-number-affix-wrapper:not(:first-child) .ant-input-number{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group>.ant-input-number-affix-wrapper:not(:last-child) .ant-input-number{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-number-group-addon:first-child{border-right:0}.ant-input-number-group-addon:last-child{border-left:0}.ant-input-number-group-addon:last-child,.ant-input-number-group>.ant-input-number:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group-addon:last-child .ant-select .ant-select-selector,.ant-input-number-group>.ant-input-number:last-child .ant-select .ant-select-selector{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group-lg .ant-input-number,.ant-input-number-group-lg>.ant-input-number-group-addon{padding:6.5px 11px;font-size:16px}.ant-input-number-group-sm .ant-input-number,.ant-input-number-group-sm>.ant-input-number-group-addon{padding:0 7px}.ant-input-number-group-lg .ant-select-single .ant-select-selector{height:40px}.ant-input-number-group-sm .ant-select-single .ant-select-selector{height:24px}.ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-search .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child){border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child),.ant-input-search .ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-number-group.ant-input-number-group-compact{display:block}.ant-input-number-group.ant-input-number-group-compact:before{display:table;content:""}.ant-input-number-group.ant-input-number-group-compact:after{display:table;clear:both;content:""}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child),.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child),.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child){border-right-width:1px}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child):hover,.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child):hover,.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child):hover{z-index:1}.ant-input-number-group.ant-input-number-group-compact-addon:not(:first-child):not(:last-child):focus,.ant-input-number-group.ant-input-number-group-compact-wrap:not(:first-child):not(:last-child):focus,.ant-input-number-group.ant-input-number-group-compact>.ant-input-number:not(:first-child):not(:last-child):focus{z-index:1}.ant-input-number-group.ant-input-number-group-compact>*{display:inline-block;float:none;vertical-align:top;border-radius:0}.ant-input-number-group.ant-input-number-group-compact>.ant-input-number-affix-wrapper{display:inline-flex}.ant-input-number-group.ant-input-number-group-compact>.ant-picker-range{display:inline-flex}.ant-input-number-group.ant-input-number-group-compact>:not(:last-child){margin-right:-1px;border-right-width:1px}.ant-input-number-group.ant-input-number-group-compact .ant-input-number{float:none}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector{border-right-width:1px;border-radius:0}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input:hover,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector:hover{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-input-group-wrapper .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input:focus,.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-selector:focus{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-select-focused{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-select>.ant-select-arrow{z-index:1}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-number-group.ant-input-number-group-compact>:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-number-group.ant-input-number-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-number-group.ant-input-number-group-compact>:last-child{border-right-width:1px;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-input-number-group.ant-input-number-group-compact>.ant-select-auto-complete .ant-input{vertical-align:top}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper{margin-left:-1px}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper .ant-input-affix-wrapper{border-radius:0}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input-group-addon>.ant-input-search-button{border-radius:0}.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:2px 0 0 2px}.ant-input-number-group>.ant-input-number-rtl:first-child{border-radius:0 2px 2px 0}.ant-input-number-group>.ant-input-number-rtl:last-child{border-radius:2px 0 0 2px}.ant-input-number-group-rtl .ant-input-number-group-addon:first-child{border-right:1px solid #d9d9d9;border-left:0;border-radius:0 2px 2px 0}.ant-input-number-group-rtl .ant-input-number-group-addon:last-child{border-right:0;border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-input-number-group-wrapper{display:inline-block;text-align:start;vertical-align:top}.ant-input-number-handler{position:relative;display:block;width:100%;height:50%;overflow:hidden;color:rgba(0,0,0,.45);font-weight:700;line-height:0;text-align:center;border-left:1px solid #d9d9d9;transition:all .1s linear}.ant-input-number-handler:active{background:#f4f4f4}.ant-input-number-handler:hover .ant-input-number-handler-down-inner,.ant-input-number-handler:hover .ant-input-number-handler-up-inner{color:#40a9ff;color:var(--ant-primary-5)}.ant-input-number-handler-down-inner,.ant-input-number-handler-up-inner{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;right:4px;width:12px;height:12px;color:rgba(0,0,0,.45);line-height:12px;transition:all .1s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-handler-down-inner>*,.ant-input-number-handler-up-inner>*{line-height:1}.ant-input-number-handler-down-inner svg,.ant-input-number-handler-up-inner svg{display:inline-block}.ant-input-number-handler-down-inner:before,.ant-input-number-handler-up-inner:before{display:none}.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon{display:block}.ant-input-number:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-input-number:hover+.ant-form-item-children-icon{opacity:0;transition:opacity .24s linear .24s}.ant-input-number-focused{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-input-number-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-input-number-disabled .ant-input-number-input{cursor:not-allowed}.ant-input-number-disabled .ant-input-number-handler-wrap{display:none}.ant-input-number-readonly .ant-input-number-handler-wrap{display:none}.ant-input-number-input{width:100%;height:30px;padding:0 11px;text-align:left;background-color:transparent;border:0;border-radius:2px;outline:0;transition:all .3s linear;-webkit-appearance:textfield!important;-moz-appearance:textfield!important;appearance:textfield!important}.ant-input-number-input::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-input-number-input:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-input::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-input-number-input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-input:-ms-input-placeholder{text-overflow:ellipsis}.ant-input-number-input:placeholder-shown{text-overflow:ellipsis}.ant-input-number-input[type=number]::-webkit-inner-spin-button,.ant-input-number-input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.ant-input-number-lg{padding:0;font-size:16px}.ant-input-number-lg input{height:38px}.ant-input-number-sm{padding:0}.ant-input-number-sm input{height:22px;padding:0 7px}.ant-input-number-handler-wrap{position:absolute;top:0;right:0;width:22px;height:100%;background:#fff;border-radius:0 2px 2px 0;opacity:0;transition:opacity .24s linear .1s}.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner,.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner{display:flex;align-items:center;justify-content:center;min-width:auto;margin-right:0;font-size:7px}.ant-input-number-borderless .ant-input-number-handler-wrap{border-left-width:0}.ant-input-number-handler-wrap:hover .ant-input-number-handler{height:40%}.ant-input-number-focused .ant-input-number-handler-wrap,.ant-input-number:hover .ant-input-number-handler-wrap{opacity:1}.ant-input-number-handler-up{border-top-right-radius:2px;cursor:pointer}.ant-input-number-handler-up-inner{top:50%;margin-top:-5px;text-align:center}.ant-input-number-handler-up:hover{height:60%!important}.ant-input-number-handler-down{top:0;border-top:1px solid #d9d9d9;border-bottom-right-radius:2px;cursor:pointer}.ant-input-number-handler-down-inner{top:50%;text-align:center;transform:translateY(-50%)}.ant-input-number-handler-down:hover{height:60%!important}.ant-input-number-borderless .ant-input-number-handler-down{border-top-width:0}.ant-input-number-handler-down-disabled,.ant-input-number-handler-up-disabled{cursor:not-allowed}.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:rgba(0,0,0,.25)}.ant-input-number-borderless{box-shadow:none}.ant-input-number-out-of-range input{color:#ff4d4f;color:var(--ant-error-color)}.ant-input-number-rtl{direction:rtl}.ant-input-number-rtl .ant-input-number-handler{border-right:1px solid #d9d9d9;border-left:0}.ant-input-number-rtl .ant-input-number-handler-wrap{right:auto;left:0}.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap{border-right-width:0}.ant-input-number-rtl .ant-input-number-handler-up{border-top-right-radius:0}.ant-input-number-rtl .ant-input-number-handler-down{border-bottom-right-radius:0}.ant-input-number-rtl .ant-input-number-input{direction:ltr;text-align:right}.ant-progress{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff;background:var(--ant-primary-color)}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:rgba(0,0,0,.04);border-radius:100px}.ant-progress-circle-trail{stroke:rgba(0,0,0,.04)}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff;stroke:var(--ant-primary-color)}.ant-progress-bg,.ant-progress-success-bg{position:relative;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a;background-color:var(--ant-success-color)}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:rgba(0,0,0,.85);font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f;background-color:var(--ant-error-color)}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f;color:var(--ant-error-color)}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f;stroke:var(--ant-error-color)}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a;background-color:var(--ant-success-color)}.ant-progress-status-success .ant-progress-text{color:#52c41a;color:var(--ant-success-color)}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a;stroke:var(--ant-success-color)}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f;color:var(--ant-error-color)}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a;color:var(--ant-success-color)}@keyframes ant-progress-active{0%{transform:translateX(-100%) scaleX(0);opacity:.1}20%{transform:translateX(-100%) scaleX(0);opacity:.5}to{transform:translateX(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-image{position:relative;display:inline-block}.ant-image-img{width:100%;height:auto;vertical-align:middle}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjUgMi41aC0xM0EuNS41IDAgMDAxIDN2MTBhLjUuNSAwIDAwLjUuNWgxM2EuNS41IDAgMDAuNS0uNVYzYS41LjUgMCAwMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwMTAgMiAxIDEgMCAwMTAtMnptOC4wMyA2LjgzYS4xMjcuMTI3IDAgMDEtLjA4MS4wM0gyLjc2OWEuMTI1LjEyNSAwIDAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAxLjE3Ny0uMDE2bC4wMTYuMDE2TDcuMDggMTAuMDlsMi40Ny0yLjkzYS4xMjYuMTI2IDAgMDEuMTc3LS4wMTZsLjAxNS4wMTYgMy41ODggNC4yNDRhLjEyNy4xMjcgMCAwMS0uMDIuMTc1eiIgZmlsbD0iIzhDOEM4QyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-position:50%;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.5);cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info{padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-image-mask-info .anticon{-webkit-margin-end:4px;margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-appear,.ant-image-preview.ant-zoom-enter{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:rgba(0,0,0,.45)}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scaleX(1);cursor:-webkit-grab;cursor:grab;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s}.ant-image-preview-img-wrapper:before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:""}.ant-image-preview-moving .ant-image-preview-img{cursor:-webkit-grabbing;cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum","tnum";position:absolute;top:0;right:0;z-index:1;display:flex;flex-direction:row-reverse;align-items:center;width:100%;color:hsla(0,0%,100%,.85);list-style:none;background:rgba(0,0,0,.1);pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer}.ant-image-preview-operations-operation-disabled{color:hsla(0,0%,100%,.25);pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-progress{position:absolute;left:50%;transform:translateX(-50%)}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:absolute;top:50%;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-22px;color:hsla(0,0%,100%,.85);background:rgba(0,0,0,.1);border-radius:50%;cursor:pointer;pointer-events:auto}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{color:hsla(0,0%,100%,.25);cursor:not-allowed}.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:10px}.ant-image-preview-switch-right{right:10px}.ant-rate{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum","tnum";display:inline-block;margin:0;padding:0;color:#fadb14;font-size:20px;line-height:unset;list-style:none;outline:none}.ant-rate-disabled .ant-rate-star{cursor:default}.ant-rate-disabled .ant-rate-star>div:hover{transform:scale(1)}.ant-rate-star{position:relative;display:inline-block;color:inherit;cursor:pointer}.ant-rate-star:not(:last-child){margin-right:8px}.ant-rate-star>div{transition:all .3s,outline 0s}.ant-rate-star>div:hover{transform:scale(1.1)}.ant-rate-star>div:focus{outline:0}.ant-rate-star>div:focus-visible{outline:1px dashed #fadb14;transform:scale(1.1)}.ant-rate-star-first,.ant-rate-star-second{color:rgba(0,0,0,.06);transition:all .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-rate-star-first .anticon,.ant-rate-star-second .anticon{vertical-align:middle}.ant-rate-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-half .ant-rate-star-second{opacity:1}.ant-rate-star-full .ant-rate-star-second,.ant-rate-star-half .ant-rate-star-first{color:inherit}.ant-rate-text{display:inline-block;margin:0 8px;font-size:14px}.ant-rate-rtl{direction:rtl}.ant-rate-rtl .ant-rate-star:not(:last-child){margin-right:0;margin-left:8px}.ant-rate-rtl .ant-rate-star-first{right:0;left:auto}.ant-cascader-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-cascader-checkbox-input:focus+.ant-cascader-checkbox-inner,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox:hover .ant-cascader-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-cascader-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox:after,.ant-cascader-checkbox:hover:after{visibility:visible}.ant-cascader-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-cascader-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-cascader-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-cascader-checkbox-disabled{cursor:not-allowed}.ant-cascader-checkbox-disabled.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-cascader-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-cascader-checkbox-disabled:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-disabled:after{visibility:hidden}.ant-cascader-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-cascader-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-disabled{cursor:not-allowed}.ant-cascader-checkbox-wrapper+.ant-cascader-checkbox-wrapper{margin-left:8px}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-cascader-checkbox+span{padding-right:8px;padding-left:8px}.ant-cascader-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-cascader-checkbox-group-item{margin-right:8px}.ant-cascader-checkbox-group-item:last-child{margin-right:0}.ant-cascader-checkbox-group-item+.ant-cascader-checkbox-group-item{margin-left:0}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-cascader-checkbox-indeterminate.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-cascader{width:184px}.ant-cascader-checkbox{top:0;margin-right:8px}.ant-cascader-menus{display:flex;flex-wrap:nowrap;align-items:flex-start}.ant-cascader-menus.ant-cascader-menu-empty .ant-cascader-menu{width:100%;height:auto}.ant-cascader-menu{flex-grow:1;min-width:111px;height:180px;margin:-4px 0;padding:4px 0;overflow:auto;vertical-align:top;list-style:none;border-right:1px solid rgba(0,0,0,.06);-ms-overflow-style:-ms-autohiding-scrollbar}.ant-cascader-menu-item{display:flex;flex-wrap:nowrap;align-items:center;padding:5px 12px;overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-cascader-menu-item:hover{background:#f5f5f5}.ant-cascader-menu-item-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-cascader-menu-item-disabled:hover{background:transparent}.ant-cascader-menu-empty .ant-cascader-menu-item{color:rgba(0,0,0,.25);cursor:default;pointer-events:none}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{font-weight:600;background-color:#e6f7ff;background-color:var(--ant-primary-1)}.ant-cascader-menu-item-content{flex:auto}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{margin-left:4px;color:rgba(0,0,0,.45);font-size:10px}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:rgba(0,0,0,.25)}.ant-cascader-menu-item-keyword{color:#ff4d4f}.ant-cascader-rtl .ant-cascader-menu-item-expand-icon,.ant-cascader-rtl .ant-cascader-menu-item-loading-icon{margin-right:4px;margin-left:0}.ant-cascader-rtl .ant-cascader-checkbox{top:0;margin-right:0;margin-left:8px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-select-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-select-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after,.ant-select-tree-checkbox:hover:after{visibility:visible}.ant-select-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-select-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-select-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-select-tree-checkbox-disabled{cursor:not-allowed}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-select-tree-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-select-tree-checkbox-disabled:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled:after{visibility:hidden}.ant-select-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-select-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-select-tree-checkbox-wrapper+.ant-select-tree-checkbox-wrapper{margin-left:8px}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-select-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-select-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-select-tree-checkbox-group-item{margin-right:8px}.ant-select-tree-checkbox-group-item:last-child{margin-right:0}.ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:0}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-tree-select-dropdown{padding:8px 4px}.ant-tree-select-dropdown-rtl{direction:rtl}.ant-tree-select-dropdown .ant-select-tree{border-radius:0}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner{align-items:stretch}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused){background:#e6f7ff;background:var(--ant-primary-1)}.ant-select-tree-list-holder-inner{align-items:flex-start}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner{align-items:stretch}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging{position:relative}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);opacity:0;animation:ant-tree-node-fx-do-not-use .3s;animation-play-state:running;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-select-tree .ant-select-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover{background:transparent}.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background:#f5f5f5}.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title{color:inherit;font-weight:500}.ant-select-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-indent-unit{display:inline-block;width:24px}.ant-select-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-select-tree-treenode:hover .ant-select-tree-draggable-icon{opacity:.45}.ant-select-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-switcher .ant-select-tree-switcher-icon,.ant-select-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-select-tree-switcher .ant-select-tree-switcher-icon svg,.ant-select-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-select-tree-switcher-noop{cursor:default}.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-select-tree-switcher-loading-icon{color:#1890ff;color:var(--ant-primary-color)}.ant-select-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-select-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-select-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-select-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-select-tree .ant-select-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#bae7ff;background-color:var(--ant-primary-2)}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty{display:none}.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover{background-color:transparent}.ant-select-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;background-color:var(--ant-primary-color);border-radius:1px;pointer-events:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #1890ff;border:2px solid var(--ant-primary-color);border-radius:50%;content:""}.ant-select-tree .ant-select-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff;box-shadow:0 0 0 2px var(--ant-primary-color)}.ant-select-tree-show-line .ant-select-tree-indent-unit{position:relative;height:100%}.ant-select-tree-show-line .ant-select-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-select-tree-show-line .ant-select-tree-indent-unit-end:before{display:none}.ant-select-tree-show-line .ant-select-tree-switcher{background:#fff}.ant-select-tree-show-line .ant-select-tree-switcher-line-icon{vertical-align:-.15em}.ant-select-tree .ant-select-tree-treenode-leaf-last .ant-select-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon{transform:scaleY(-1)} \ No newline at end of file diff --git a/5885.633c3925.async.js b/5885.633c3925.async.js new file mode 100644 index 00000000..b6870ff8 --- /dev/null +++ b/5885.633c3925.async.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5885],{78304:function(ve,G,l){var a=l(1788),H=l(28449);function R(z){let x;const X=B=>()=>{x=null,z.apply(void 0,(0,a.Z)(B))},T=function(){if(x==null){for(var B=arguments.length,F=new Array(B),P=0;P{H.Z.cancel(x),x=null},T}G.Z=R},58359:function(ve,G,l){l.d(G,{Z:function(){return ie}});var a=l(50959),H=l(84875),R=l.n(H),z=l(12682),x=l(87017),X=l(78304),T=l(31594),B=l(81501);const F=u=>{const{componentCls:b}=u;return{[b]:{position:"fixed",zIndex:u.zIndexPopup}}},P=u=>({zIndexPopup:u.zIndexBase+10});var Q=(0,B.I$)("Affix",F,P);function U(u){return u!==window?u.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ne(u,b,g){if(g!==void 0&&b.top>u.top-g)return g+b.top}function J(u,b,g){if(g!==void 0&&b.bottom{var g;const{style:k,offsetTop:q,offsetBottom:K,prefixCls:ce,className:ae,rootClassName:ue,children:de,target:Z,onChange:_}=u,{getPrefixCls:ee,getTargetContainer:fe}=a.useContext(T.E_),le=ee("affix",ce),[e,n]=a.useState(!1),[r,t]=a.useState(),[o,f]=a.useState(),d=a.useRef(j.None),m=a.useRef(null),h=a.useRef(),y=a.useRef(null),w=a.useRef(null),C=a.useRef(null),p=(g=Z!=null?Z:fe)!==null&&g!==void 0?g:Y,A=K===void 0&&q===void 0?0:q,O=()=>{if(d.current!==j.Prepare||!w.current||!y.current||!p)return;const c=p();if(c){const i={status:j.None},s=U(y.current);if(s.top===0&&s.left===0&&s.width===0&&s.height===0)return;const N=U(c),M=ne(s,N,A),re=J(s,N,K);M!==void 0?(i.affixStyle={position:"fixed",top:M,width:s.width,height:s.height},i.placeholderStyle={width:s.width,height:s.height}):re!==void 0&&(i.affixStyle={position:"fixed",bottom:re,width:s.width,height:s.height},i.placeholderStyle={width:s.width,height:s.height}),i.lastAffix=!!i.affixStyle,e!==i.lastAffix&&(_==null||_(i.lastAffix)),d.current=i.status,t(i.affixStyle),f(i.placeholderStyle),n(i.lastAffix)}},I=()=>{var c;d.current=j.Prepare,O()},v=(0,X.Z)(()=>{I()}),S=(0,X.Z)(()=>{if(p&&r){const c=p();if(c&&y.current){const i=U(c),s=U(y.current),N=ne(s,i,A),M=J(s,i,K);if(N!==void 0&&r.top===N||M!==void 0&&r.bottom===M)return}}I()}),W=()=>{const c=p==null?void 0:p();c&&(oe.forEach(i=>{var s;h.current&&((s=m.current)===null||s===void 0||s.removeEventListener(i,h.current)),c==null||c.addEventListener(i,S)}),m.current=c,h.current=S)},E=()=>{C.current&&(clearTimeout(C.current),C.current=null);const c=p==null?void 0:p();oe.forEach(i=>{var s;c==null||c.removeEventListener(i,S),h.current&&((s=m.current)===null||s===void 0||s.removeEventListener(i,h.current))}),v.cancel(),S.cancel()};a.useImperativeHandle(b,()=>({updatePosition:v})),a.useEffect(()=>(C.current=setTimeout(W),()=>E()),[]),a.useEffect(()=>{W()},[Z,r]),a.useEffect(()=>{v()},[Z,q,K]);const[V,te]=Q(le),D=R()(ue,te,le),$=R()({[D]:r});let L=(0,x.Z)(u,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return V(a.createElement(z.Z,{onResize:v},a.createElement("div",Object.assign({style:k,className:ae,ref:y},L),r&&a.createElement("div",{style:o,"aria-hidden":"true"}),a.createElement("div",{className:$,ref:w,style:r},a.createElement(z.Z,{onResize:v},de)))))})},683:function(ve,G,l){l.d(G,{Z:function(){return le}});var a=l(50959),H=l(84875),R=l.n(H),z=l(13763),x=l(68924),X=l(94914),T=l(31594),B=l(85824),F=l(75737);const P=e=>{let{children:n}=e;const{getPrefixCls:r}=a.useContext(T.E_),t=r("breadcrumb");return a.createElement("li",{className:`${t}-separator`,"aria-hidden":"true"},n===""?n:n||"/")};P.__ANT_BREADCRUMB_SEPARATOR=!0;var Q=P,U=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);on[o]||t)}function J(e,n,r,t){if(r==null)return null;const{className:o,onClick:f}=n,d=U(n,["className","onClick"]),m=Object.assign(Object.assign({},(0,x.Z)(d,{data:!0,aria:!0})),{onClick:f});return t!==void 0?a.createElement("a",Object.assign({},m,{className:R()(`${e}-link`,o),href:t}),r):a.createElement("span",Object.assign({},m,{className:R()(`${e}-link`,o)}),r)}function oe(e,n){return(t,o,f,d,m)=>{if(n)return n(t,o,f,d);const h=ne(t,o);return J(e,t,h,m)}}var Y=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,separator:r="/",children:t,menu:o,overlay:f,dropdownProps:d,href:m}=e,y=(w=>{if(o||f){const C=Object.assign({},d);if(o){const p=o||{},{items:A}=p,O=Y(p,["items"]);C.menu=Object.assign(Object.assign({},O),{items:A==null?void 0:A.map((I,v)=>{var{key:S,title:W,label:E,path:V}=I,te=Y(I,["key","title","label","path"]);let D=E!=null?E:W;return V&&(D=a.createElement("a",{href:`${m}${V}`},D)),Object.assign(Object.assign({},te),{key:S!=null?S:v,label:D})})})}else f&&(C.overlay=f);return a.createElement(F.Z,Object.assign({placement:"bottom"},C),a.createElement("span",{className:`${n}-overlay-link`},w,a.createElement(B.Z,null)))}return w})(t);return y!=null?a.createElement(a.Fragment,null,a.createElement("li",null,y),r&&a.createElement(Q,null,r)):null},se=e=>{const{prefixCls:n,children:r,href:t}=e,o=Y(e,["prefixCls","children","href"]),{getPrefixCls:f}=a.useContext(T.E_),d=f("breadcrumb",n);return a.createElement(j,Object.assign({},o,{prefixCls:d}),J(d,o,r,t))};se.__ANT_BREADCRUMB_ITEM=!0;var ie=se,u=l(60076),b=l(6301),g=l(81501),k=l(90467);const q=e=>{const{componentCls:n,iconCls:r,calc:t}=e;return{[n]:Object.assign(Object.assign({},(0,b.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${(0,u.bf)(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:t(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,b.Qy)(e)),["li:last-child"]:{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[` + > ${r} + span, + > ${r} + a + `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${(0,u.bf)(e.paddingXXS)}`,marginInline:t(e.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},K=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});var ce=(0,g.I$)("Breadcrumb",e=>{const n=(0,k.TS)(e,{});return q(n)},K),ae=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:d}=f,m=ae(f,["breadcrumbName"]);return Object.assign(Object.assign({},m),{title:d})})}),o}function de(e,n){return(0,a.useMemo)(()=>e||(n?n.map(ue):null),[e,n])}var Z=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{if(n===void 0)return n;let r=(n||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{r=r.replace(`:${t}`,e[t])}),r},ee=e=>{const{prefixCls:n,separator:r="/",style:t,className:o,rootClassName:f,routes:d,items:m,children:h,itemRender:y,params:w={}}=e,C=Z(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:A,breadcrumb:O}=a.useContext(T.E_);let I;const v=p("breadcrumb",n),[S,W]=ce(v),E=de(m,d),V=oe(v,y);if(E&&E.length>0){const $=[],L=m||d;I=E.map((c,i)=>{const{path:s,key:N,type:M,menu:re,overlay:be,onClick:ye,className:xe,separator:Ce,dropdownProps:Oe}=c,me=_(w,s);me!==void 0&&$.push(me);const he=N!=null?N:i;if(M==="separator")return a.createElement(Q,{key:he},Ce);const pe={},Se=i===E.length-1;re?pe.menu=re:be&&(pe.overlay=be);let{href:ge}=c;return $.length&&me!==void 0&&(ge=`#/${$.join("/")}`),a.createElement(j,Object.assign({key:he},pe,(0,x.Z)(c,{data:!0,aria:!0}),{className:xe,dropdownProps:Oe,href:ge,separator:Se?"":r,onClick:ye,prefixCls:v}),V(c,w,L,$,ge))})}else if(h){const $=(0,z.Z)(h).length;I=(0,z.Z)(h).map((L,c)=>{if(!L)return L;const i=c===$-1;return(0,X.Tm)(L,{separator:i?"":r,key:c})})}const te=R()(v,O==null?void 0:O.className,{[`${v}-rtl`]:A==="rtl"},o,f,W),D=Object.assign(Object.assign({},O==null?void 0:O.style),t);return S(a.createElement("nav",Object.assign({className:te,style:D},C),a.createElement("ol",null,I)))};ee.Item=ie,ee.Separator=Q;var fe=ee,le=fe}}]); diff --git a/5943.61a19495.async.js b/5943.61a19495.async.js new file mode 100644 index 00000000..785d7cdb --- /dev/null +++ b/5943.61a19495.async.js @@ -0,0 +1,55 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5943],{71041:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};p.default=r},28842:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};p.default=r},83964:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=S(r(81780));function S(j){return j&&j.__esModule?j:{default:j}}const i=o;p.default=i,X.exports=i},38532:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=S(r(74769));function S(j){return j&&j.__esModule?j:{default:j}}const i=o;p.default=i,X.exports=i},21268:function(X,p,r){"use client";"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return O}});var o=n(r(50959)),S=w(r(84875)),i=r(81548),j=w(r(85196)),B=w(r(73623)),M=r(11488),_=r(96728);function $(t,c){(c==null||c>t.length)&&(c=t.length);for(var g=0,x=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(t,x)&&(g[x]=t[x])}return g}function C(t,c){if(t==null)return{};var g={},x=Object.keys(t),v,H;for(H=0;H=0)&&(g[v]=t[v]);return g}function h(t,c){return N(t)||l(t,c)||I(t,c)||u()}function I(t,c){if(t){if(typeof t=="string")return $(t,c);var g=Object.prototype.toString.call(t).slice(8,-1);if(g==="Object"&&t.constructor&&(g=t.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return $(t,c)}}(0,M.setTwoToneColor)(i.blue.primary);var d=o.forwardRef(function(t,c){var g=t.className,x=t.icon,v=t.spin,H=t.rotate,ae=t.tabIndex,le=t.onClick,Pe=t.twoToneColor,ie=y(t,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),Oe=o.useContext(j.default),Te=Oe.prefixCls,fe=Te===void 0?"anticon":Te,Y=Oe.rootClassName,ve,Ie=(0,S.default)(Y,fe,(ve={},T(ve,"".concat(fe,"-").concat(x.name),!!x.name),T(ve,"".concat(fe,"-spin"),!!v||x.name==="loading"),ve),g),de=ae;de===void 0&&le&&(de=-1);var xe=H?{msTransform:"rotate(".concat(H,"deg)"),transform:"rotate(".concat(H,"deg)")}:void 0,pe=h((0,_.normalizeTwoToneColors)(Pe),2),_e=pe[0],ge=pe[1];return o.createElement("span",s(a({role:"img","aria-label":x.name},ie),{ref:c,tabIndex:de,onClick:le,className:Ie}),o.createElement(B.default,{icon:x,primaryColor:_e,secondaryColor:ge,style:xe}))});d.displayName="AntdIcon",d.getTwoToneColor=M.getTwoToneColor,d.setTwoToneColor=M.setTwoToneColor;var O=d},85196:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return i}});var o=r(50959),S=(0,o.createContext)({}),i=S},73623:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return u}});var o=B(r(50959)),S=r(96728);function i(a,m,s){return m in a?Object.defineProperty(a,m,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[m]=s,a}function j(a){if(typeof WeakMap!="function")return null;var m=new WeakMap,s=new WeakMap;return(j=function(y){return y?s:m})(a)}function B(a,m){if(!m&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var s=j(m);if(s&&s.has(a))return s.get(a);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(h!=="default"&&Object.prototype.hasOwnProperty.call(a,h)){var I=C?Object.getOwnPropertyDescriptor(a,h):null;I&&(I.get||I.set)?Object.defineProperty(y,h,I):y[h]=a[h]}return y.default=a,s&&s.set(a,y),y}function M(a){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(a,y)&&(s[y]=a[y])}return s}function T(a,m){if(a==null)return{};var s={},y=Object.keys(a),C,h;for(h=0;h=0)&&(s[C]=a[C]);return s}var w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Z(a){var m=a.primaryColor,s=a.secondaryColor;w.primaryColor=m,w.secondaryColor=s||(0,S.getSecondaryColor)(m),w.calculated=!!s}function n(){return M({},w)}var l=function(a){var m=a.icon,s=a.className,y=a.onClick,C=a.style,h=a.primaryColor,I=a.secondaryColor,d=N(a,["icon","className","onClick","style","primaryColor","secondaryColor"]),O=o.useRef(),t=w;if(h&&(t={primaryColor:h,secondaryColor:I||(0,S.getSecondaryColor)(h)}),(0,S.useInsertStyles)(O),(0,S.warning)((0,S.isIconDefinition)(m),"icon should be icon definiton, but got ".concat(m)),!(0,S.isIconDefinition)(m))return null;var c=m;return c&&typeof c.icon=="function"&&(c=$(M({},c),{icon:c.icon(t.primaryColor,t.secondaryColor)})),(0,S.generate)(c.icon,"svg-".concat(c.name),$(M({className:s,onClick:y,style:C,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{ref:O}))};l.displayName="IconReact",l.getTwoToneColors=n,l.setTwoToneColors=Z;var u=l},11488:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0});function o(n,l){for(var u in l)Object.defineProperty(n,u,{enumerable:!0,get:l[u]})}o(p,{setTwoToneColor:function(){return w},getTwoToneColor:function(){return Z}});var S=M(r(73623)),i=r(96728);function j(n,l){(l==null||l>n.length)&&(l=n.length);for(var u=0,a=new Array(l);u0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(d).reduce(function(O,t){var c=d[t];switch(t){case"class":O.className=c,delete O.class;break;default:delete O[t],O[n(t)]=c}return O},{})}function m(d,O,t){return t?M.default.createElement(d.tag,Z({key:O},a(d.attrs),t),(d.children||[]).map(function(c,g){return m(c,"".concat(O,"-").concat(d.tag,"-").concat(g))})):M.default.createElement(d.tag,Z({key:O},a(d.attrs)),(d.children||[]).map(function(c,g){return m(c,"".concat(O,"-").concat(d.tag,"-").concat(g))}))}function s(d){return(0,S.generate)(d)[0]}function y(d){return d?Array.isArray(d)?d:[d]:[]}var C={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},h=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,I=function(d){var O=(0,M.useContext)(_.default),t=O.csp,c=O.prefixCls,g=h;c&&(g=g.replace(/anticon/g,c)),(0,M.useEffect)(function(){var x=d.current,v=(0,j.getShadowRoot)(x);(0,i.updateCSS)(g,"@ant-design-icons",{prepend:!0,csp:t,attachTo:v})},[])}},60545:function(X,p,r){"use strict";r.d(p,{S:function(){return y}});var o=r(33346),S=r(73273),i=r(40727),j=r(10570),B=r(87440),M=r(56197),_=r(84875),$=r.n(_),N=r(71770),T=r(50959),w=r(10422),Z=r(169),n=r(26488),l=function(h){return(0,S.Z)({},h.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,n.uK)(h.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(h.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:h.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:h.colorText},"&-right":{color:h.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function u(C){return(0,n.Xj)("ProLayoutFooterToolbar",function(h){var I=(0,o.Z)((0,o.Z)({},h),{},{componentCls:".".concat(C)});return[l(I)]})}function a(C,h){var I=h.stylish;return(0,n.Xj)("ProLayoutFooterToolbarStylish",function(d){var O=(0,o.Z)((0,o.Z)({},d),{},{componentCls:".".concat(C)});return I?[(0,S.Z)({},"".concat(O.componentCls),I==null?void 0:I(O))]:[]})}var m=r(11527),s=["children","className","extra","portalDom","style","renderContent"],y=function(h){var I=h.children,d=h.className,O=h.extra,t=h.portalDom,c=t===void 0?!0:t,g=h.style,x=h.renderContent,v=(0,j.Z)(h,s),H=(0,T.useContext)(M.ZP.ConfigContext),ae=H.getPrefixCls,le=H.getTargetContainer,Pe=h.prefixCls||ae("pro"),ie="".concat(Pe,"-footer-bar"),Oe=u(ie),Te=Oe.wrapSSR,fe=Oe.hashId,Y=(0,T.useContext)(Z.X),ve=(0,T.useMemo)(function(){var ge=Y.hasSiderMenu,Ae=Y.isMobile,Ee=Y.siderWidth;if(ge)return Ee?Ae?"100%":"calc(100% - ".concat(Ee,"px)"):"100%"},[Y.collapsed,Y.hasSiderMenu,Y.isMobile,Y.siderWidth]),Ie=(0,T.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,i.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,i.Z)(document))===void 0?null:(le==null?void 0:le())||document.body},[]),de=a("".concat(ie,".").concat(ie,"-stylish"),{stylish:h.stylish}),xe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"".concat(ie,"-left ").concat(fe).trim(),children:O}),(0,m.jsx)("div",{className:"".concat(ie,"-right ").concat(fe).trim(),children:I})]});(0,T.useEffect)(function(){return!Y||!(Y!=null&&Y.setHasFooterToolbar)?function(){}:(Y==null||Y.setHasFooterToolbar(!0),function(){var ge;Y==null||(ge=Y.setHasFooterToolbar)===null||ge===void 0||ge.call(Y,!1)})},[]);var pe=(0,m.jsx)("div",(0,o.Z)((0,o.Z)({className:$()(d,fe,ie,(0,S.Z)({},"".concat(ie,"-stylish"),!!h.stylish)),style:(0,o.Z)({width:ve},g)},(0,N.Z)(v,["prefixCls"])),{},{children:x?x((0,o.Z)((0,o.Z)((0,o.Z)({},h),Y),{},{leftWidth:ve}),xe):xe})),_e=!(0,B.j)()||!c||!Ie?pe:(0,w.createPortal)(pe,Ie,ie);return de.wrapSSR(Te((0,m.jsx)(T.Fragment,{children:_e},ie)))}},19494:function(X,p,r){"use strict";r.d(p,{f:function(){return Z}});var o=r(73273),S=r(56197),i=r(84875),j=r.n(i),B=r(50959),M=r(169),_=r(33346),$=r(26488),N=function(l){return(0,o.Z)({},l.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function T(n){return(0,$.Xj)("ProLayoutGridContent",function(l){var u=(0,_.Z)((0,_.Z)({},l),{},{componentCls:".".concat(n)});return[N(u)]})}var w=r(11527),Z=function(l){var u=(0,B.useContext)(M.X),a=l.children,m=l.contentWidth,s=l.className,y=l.style,C=(0,B.useContext)(S.ZP.ConfigContext),h=C.getPrefixCls,I=l.prefixCls||h("pro"),d=m||u.contentWidth,O="".concat(I,"-grid-content"),t=T(O),c=t.wrapSSR,g=t.hashId,x=d==="Fixed"&&u.layout==="top";return c((0,w.jsx)("div",{className:j()(O,g,s,(0,o.Z)({},"".concat(O,"-wide"),x)),style:y,children:(0,w.jsx)("div",{className:"".concat(I,"-grid-content-children ").concat(g).trim(),children:a})}))}},95943:function(X,p,r){"use strict";r.d(p,{_z:function(){return tt}});var o=r(73273),S=r(10570),i=r(33346),j=r(40727),B=r(17122),M=r(66146),_=r(63945),$=r(56197),N=r(58359),T=r(84875),w=r.n(T),Z=r(50959),n=r(169),l=r(60545),u=r(19494),a=r(32682),m=r(83964),s=r.n(m),y=r(38532),C=r.n(y),h=r(683),I=r(21757),d=r(75200),O=r(12682),t=r(26488),c=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},g=function(e){var f,b,P;return(0,o.Z)({},e.componentCls,(0,i.Z)((0,i.Z)({},t.Wf===null||t.Wf===void 0?void 0:(0,t.Wf)(e)),{},(P={position:"relative",backgroundColor:e.pageHeaderBgGhost,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&-no-children":{height:(f=e.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingBlockPageContainerContent},"& &-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"& &-has-footer":{paddingBlockEnd:0},"& &-back":(0,o.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(0,i.Z)((0,i.Z)({fontSize:16},t.Nd===null||t.Nd===void 0?void 0:(0,t.Nd)(e)),{},{color:e.pageHeaderColorBack,cursor:"pointer"})},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},(0,o.Z)(P,"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:e.marginSM,verticalAlign:"middle"}),(0,o.Z)(P,"& &-breadcrumb + &-heading",{marginBlockStart:e.marginXS}),(0,o.Z)(P,"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,marginBlockEnd:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderFontSizeHeaderTitle,lineHeight:e.controlHeight+"px"},c()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:e.marginSM})),"&-avatar":(0,o.Z)({marginInlineEnd:e.marginSM},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:e.marginSM}),"&-tags":(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,color:e.colorTextSecondary,fontSize:e.pageHeaderFontSizeHeaderSubTitle,lineHeight:e.lineHeight},c()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":(b={marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":(0,o.Z)({"white-space":"unset"},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:e.marginSM,marginInlineStart:0})},(0,o.Z)(b,"".concat(e.componentCls,"-rlt &"),{float:"left"}),(0,o.Z)(b,"*:first-child",(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0})),b)}),(0,o.Z)(P,"&-content",{paddingBlockStart:e.pageHeaderPaddingContentPadding}),(0,o.Z)(P,"&-footer",{marginBlockStart:e.margin}),(0,o.Z)(P,"&-compact &-heading",{flexWrap:"wrap"}),(0,o.Z)(P,"&-wide",{maxWidth:1152,margin:"0 auto"}),(0,o.Z)(P,"&-rtl",{direction:"rtl"}),P)))};function x(D){return(0,t.Xj)("ProLayoutPageHeader",function(e){var f=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(D),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:e.paddingSM,pageHeaderColorBack:e.colorTextHeading,pageHeaderFontSizeHeaderTitle:e.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:e.paddingSM});return[g(f)]})}var v=r(11527),H=function(e,f,b,P){return!b||!P?null:(0,v.jsx)("div",{className:"".concat(e,"-back ").concat(f).trim(),children:(0,v.jsx)("div",{role:"button",onClick:function(U){P==null||P(U)},className:"".concat(e,"-back-button ").concat(f).trim(),"aria-label":"back",children:b})})},ae=function(e,f){var b;return(b=e.items)!==null&&b!==void 0&&b.length?(0,v.jsx)(h.Z,(0,i.Z)((0,i.Z)({},e),{},{className:w()("".concat(f,"-breadcrumb"),e.className)})):null},le=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:f==="rtl"?(0,v.jsx)(C(),{}):(0,v.jsx)(s(),{})},Pe=function(e,f){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",P=arguments.length>3?arguments[3]:void 0,L=f.title,U=f.avatar,A=f.subTitle,ne=f.tags,z=f.extra,G=f.onBack,F="".concat(e,"-heading"),q=L||A||ne||z;if(!q)return null;var V=le(f,b),K=H(e,P,V,G),ee=K||U||q;return(0,v.jsxs)("div",{className:F+" "+P,children:[ee&&(0,v.jsxs)("div",{className:"".concat(F,"-left ").concat(P).trim(),children:[K,U&&(0,v.jsx)(I.C,(0,i.Z)({className:w()("".concat(F,"-avatar"),P,U.className)},U)),L&&(0,v.jsx)("span",{className:"".concat(F,"-title ").concat(P).trim(),title:typeof L=="string"?L:void 0,children:L}),A&&(0,v.jsx)("span",{className:"".concat(F,"-sub-title ").concat(P).trim(),title:typeof A=="string"?A:void 0,children:A}),ne&&(0,v.jsx)("span",{className:"".concat(F,"-tags ").concat(P).trim(),children:ne})]}),z&&(0,v.jsx)("span",{className:"".concat(F,"-extra ").concat(P).trim(),children:(0,v.jsx)(d.Z,{children:z})})]})},ie=function(e,f,b){return f?(0,v.jsx)("div",{className:"".concat(e,"-footer ").concat(b).trim(),children:f}):null},Oe=function(e,f,b){return(0,v.jsx)("div",{className:"".concat(e,"-content ").concat(b).trim(),children:f})},Te=function(e){var f,b,P=Z.useState(!1),L=(0,a.Z)(P,2),U=L[0],A=L[1],ne=function(re){var ue=re.width;return A(ue<768)},z=Z.useContext($.ZP.ConfigContext),G=z.getPrefixCls,F=z.direction,q=e.prefixCls,V=e.style,K=e.footer,ee=e.children,E=e.breadcrumb,k=e.breadcrumbRender,R=e.className,oe=e.contentWidth,J=e.layout,W=G("page-header",q),te=x(W),Se=te.wrapSSR,Q=te.hashId,we=function(){return E&&!(E!=null&&E.items)&&E!==null&&E!==void 0&&E.routes&&(E.items=E.routes),E!=null&&E.items?ae(E,W):null},Ze=we(),ce=E&&"props"in E,Me=(f=k==null?void 0:k((0,i.Z)((0,i.Z)({},e),{},{prefixCls:W}),Ze))!==null&&f!==void 0?f:Ze,ye=ce?E:Me,se=w()(W,Q,R,(b={},(0,o.Z)(b,"".concat(W,"-has-breadcrumb"),!!ye),(0,o.Z)(b,"".concat(W,"-has-footer"),!!K),(0,o.Z)(b,"".concat(W,"-rtl"),F==="rtl"),(0,o.Z)(b,"".concat(W,"-compact"),U),(0,o.Z)(b,"".concat(W,"-wide"),oe==="Fixed"&&J=="top"),(0,o.Z)(b,"".concat(W,"-ghost"),!0),b)),he=Pe(W,e,F,Q),Ce=ee&&Oe(W,ee,Q),be=ie(W,K,Q);return!ye&&!he&&!be&&!Ce?(0,v.jsx)("div",{className:w()(Q,["".concat(W,"-no-children")])}):Se((0,v.jsx)(O.Z,{onResize:ne,children:(0,v.jsxs)("div",{className:se,style:V,children:[ye,he,Ce,be]})}))},fe=r(27449),Y=function(e){if(!e)return 1;var f=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/f},ve=function(e){var f=(0,t.dQ)(),b=f.token,P=e.children,L=e.style,U=e.className,A=e.markStyle,ne=e.markClassName,z=e.zIndex,G=z===void 0?9:z,F=e.gapX,q=F===void 0?212:F,V=e.gapY,K=V===void 0?222:V,ee=e.width,E=ee===void 0?120:ee,k=e.height,R=k===void 0?64:k,oe=e.rotate,J=oe===void 0?-22:oe,W=e.image,te=e.offsetLeft,Se=e.offsetTop,Q=e.fontStyle,we=Q===void 0?"normal":Q,Ze=e.fontWeight,ce=Ze===void 0?"normal":Ze,Me=e.fontColor,ye=Me===void 0?b.colorFill:Me,se=e.fontSize,he=se===void 0?16:se,Ce=e.fontFamily,be=Ce===void 0?"sans-serif":Ce,Ne=e.prefixCls,re=(0,Z.useContext)($.ZP.ConfigContext),ue=re.getPrefixCls,He=ue("pro-layout-watermark",Ne),nt=w()("".concat(He,"-wrapper"),U),rt=w()(He,ne),at=(0,Z.useState)(""),ze=(0,a.Z)(at,2),Fe=ze[0],Xe=ze[1];return(0,Z.useEffect)(function(){var Be=document.createElement("canvas"),me=Be.getContext("2d"),je=Y(me),ot="".concat((q+E)*je,"px"),it="".concat((K+R)*je,"px"),lt=te||q/2,ct=Se||K/2;if(Be.setAttribute("width",ot),Be.setAttribute("height",it),!me){console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");return}me.translate(lt*je,ct*je),me.rotate(Math.PI/180*Number(J));var ut=E*je,ke=R*je,Ue=function(De){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$e=Number(he)*je;me.font="".concat(we," normal ").concat(ce," ").concat($e,"px/").concat(ke,"px ").concat(be),me.fillStyle=ye,Array.isArray(De)?De==null||De.forEach(function(dt,st){return me.fillText(dt,0,st*$e+We)}):me.fillText(De,0,We?We+$e:0),Xe(Be.toDataURL())};if(W){var Re=new Image;Re.crossOrigin="anonymous",Re.referrerPolicy="no-referrer",Re.src=W,Re.onload=function(){if(me.drawImage(Re,0,0,ut,ke),Xe(Be.toDataURL()),e.content){Ue(e.content,Re.height+8);return}};return}if(e.content){Ue(e.content);return}},[q,K,te,Se,J,we,ce,E,R,be,ye,W,e.content,he]),(0,v.jsxs)("div",{style:(0,i.Z)({position:"relative"},L),className:nt,children:[P,(0,v.jsx)("div",{className:rt,style:(0,i.Z)((0,i.Z)({zIndex:G,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(q+E,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Fe?{backgroundImage:"url('".concat(Fe,"')")}:{}),A)})]})},Ie=[576,768,992,1200].map(function(D){return"@media (max-width: ".concat(D,"px)")}),de=(0,a.Z)(Ie,4),xe=de[0],pe=de[1],_e=de[2],ge=de[3],Ae=function(e){var f,b,P,L,U,A,ne,z,G,F,q,V,K,ee,E,k,R,oe,J,W,te;return(0,o.Z)({},e.componentCls,(te={position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(f=e.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingBlockPageContainerContent,paddingInline:(b=e.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(P=e.layout)===null||P===void 0||(P=P.pageContainer)===null||P===void 0?void 0:P.paddingBlockPageContainerContent},"&-affix":(0,o.Z)({},"".concat(e.antCls,"-affix"),(0,o.Z)({},"".concat(e.componentCls,"-warp"),{backgroundColor:(L=e.layout)===null||L===void 0||(L=L.pageContainer)===null||L===void 0?void 0:L.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},(0,o.Z)(te,"& &-warp-page-header",(J={paddingBlockStart:((U=(A=e.layout)===null||A===void 0||(A=A.pageContainer)===null||A===void 0?void 0:A.paddingBlockPageContainerContent)!==null&&U!==void 0?U:40)/4,paddingBlockEnd:((ne=(z=e.layout)===null||z===void 0||(z=z.pageContainer)===null||z===void 0?void 0:z.paddingBlockPageContainerContent)!==null&&ne!==void 0?ne:40)/2,paddingInlineStart:(G=e.layout)===null||G===void 0||(G=G.pageContainer)===null||G===void 0?void 0:G.paddingInlinePageContainerContent,paddingInlineEnd:(F=e.layout)===null||F===void 0||(F=F.pageContainer)===null||F===void 0?void 0:F.paddingInlinePageContainerContent},(0,o.Z)(J,"& ~ ".concat(e.proComponentsCls,"-grid-content"),(0,o.Z)({},"".concat(e.proComponentsCls,"-page-container-children-content"),{paddingBlock:((q=(V=e.layout)===null||V===void 0||(V=V.pageContainer)===null||V===void 0?void 0:V.paddingBlockPageContainerContent)!==null&&q!==void 0?q:24)/3})),(0,o.Z)(J,"".concat(e.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((K=(ee=e.layout)===null||ee===void 0||(ee=ee.pageContainer)===null||ee===void 0?void 0:ee.paddingBlockPageContainerContent)!==null&&K!==void 0?K:40)/4+10}),(0,o.Z)(J,"".concat(e.antCls,"-page-header-heading"),{paddingBlockStart:((E=(k=e.layout)===null||k===void 0||(k=k.pageContainer)===null||k===void 0?void 0:k.paddingBlockPageContainerContent)!==null&&E!==void 0?E:40)/4}),(0,o.Z)(J,"".concat(e.antCls,"-page-header-footer"),{marginBlockStart:((R=(oe=e.layout)===null||oe===void 0||(oe=oe.pageContainer)===null||oe===void 0?void 0:oe.paddingBlockPageContainerContent)!==null&&R!==void 0?R:40)/4}),J)),(0,o.Z)(te,"&-detail",(0,o.Z)({display:"flex"},xe,{display:"block"})),(0,o.Z)(te,"&-main",{width:"100%"}),(0,o.Z)(te,"&-row",(0,o.Z)({display:"flex",width:"100%"},pe,{display:"block"})),(0,o.Z)(te,"&-content",{flex:"auto",width:"100%"}),(0,o.Z)(te,"&-extraContent",(W={flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},(0,o.Z)(W,ge,{marginInlineStart:44}),(0,o.Z)(W,_e,{marginInlineStart:20}),(0,o.Z)(W,pe,{marginInlineStart:0,textAlign:"start"}),(0,o.Z)(W,xe,{marginInlineStart:0}),W)),te))};function Ee(D,e){return(0,t.Xj)("ProLayoutPageContainer",function(f){var b,P=(0,i.Z)((0,i.Z)({},f),{},{componentCls:".".concat(D),layout:(0,i.Z)((0,i.Z)({},f==null?void 0:f.layout),{},{pageContainer:(0,i.Z)((0,i.Z)({},f==null||(b=f.layout)===null||b===void 0?void 0:b.pageContainer),e)})});return[Ae(P)]})}function Ge(D,e){var f=e.stylish;return(0,t.Xj)("ProLayoutPageContainerStylish",function(b){var P=(0,i.Z)((0,i.Z)({},b),{},{componentCls:".".concat(D)});return f?[(0,o.Z)({},"div".concat(P.componentCls),f==null?void 0:f(P))]:[]})}var Ye=r(11175),Ke=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],Qe=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function Ve(D){return(0,j.Z)(D)==="object"?D:{spinning:D}}var Je=function(e){var f=e.tabList,b=e.tabActiveKey,P=e.onTabChange,L=e.hashId,U=e.tabBarExtraContent,A=e.tabProps,ne=e.prefixedClassName;return Array.isArray(f)||U?(0,v.jsx)(M.Z,(0,i.Z)((0,i.Z)({className:"".concat(ne,"-tabs ").concat(L).trim(),activeKey:b,onChange:function(G){P&&P(G)},tabBarExtraContent:U,items:f==null?void 0:f.map(function(z,G){var F;return(0,i.Z)((0,i.Z)({label:z.tab},z),{},{key:((F=z.key)===null||F===void 0?void 0:F.toString())||(G==null?void 0:G.toString())})})},A),{},{children:(0,Ye.n)(_.Z,"4.23.0")<0?f==null?void 0:f.map(function(z,G){return(0,v.jsx)(M.Z.TabPane,(0,i.Z)({tab:z.tab},z),z.key||G)}):null})):null},qe=function(e,f,b,P){return!e&&!f?null:(0,v.jsx)("div",{className:"".concat(b,"-detail ").concat(P).trim(),children:(0,v.jsx)("div",{className:"".concat(b,"-main ").concat(P).trim(),children:(0,v.jsxs)("div",{className:"".concat(b,"-row ").concat(P).trim(),children:[e&&(0,v.jsx)("div",{className:"".concat(b,"-content ").concat(P).trim(),children:e}),f&&(0,v.jsx)("div",{className:"".concat(b,"-extraContent ").concat(P).trim(),children:f})]})})})},ft=function(e){var f=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},f==null?void 0:f.breadcrumb),f==null?void 0:f.breadcrumbProps),e))})},Le=function(e){var f,b=e.title,P=e.content,L=e.pageHeaderRender,U=e.header,A=e.prefixedClassName,ne=e.extraContent,z=e.childrenContentStyle,G=e.style,F=e.prefixCls,q=e.hashId,V=e.value,K=e.breadcrumbRender,ee=(0,S.Z)(e,Ke),E=function(){if(K)return K};if(L===!1)return null;if(L)return(0,v.jsxs)(v.Fragment,{children:[" ",L((0,i.Z)((0,i.Z)({},e),V))]});var k=b;!b&&b!==!1&&(k=V.title);var R=(0,i.Z)((0,i.Z)((0,i.Z)({},V),{},{title:k},ee),{},{footer:Je((0,i.Z)((0,i.Z)({},ee),{},{hashId:q,breadcrumbRender:K,prefixedClassName:A}))},U),oe=R,J=oe.breadcrumb,W=(!J||!(J!=null&&J.itemRender)&&!(J!=null&&(f=J.items)!==null&&f!==void 0&&f.length))&&!K;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(te){return!R[te]})&&W&&!P&&!ne?null:(0,v.jsx)(Te,(0,i.Z)((0,i.Z)({},R),{},{className:"".concat(A,"-warp-page-header ").concat(q).trim(),breadcrumb:K===!1?void 0:(0,i.Z)((0,i.Z)({},R.breadcrumb),V.breadcrumbProps),breadcrumbRender:E(),prefixCls:F,children:(U==null?void 0:U.children)||qe(P,ne,A,q)}))},et=function(e){var f,b,P,L=e.children,U=e.loading,A=U===void 0?!1:U,ne=e.className,z=e.style,G=e.footer,F=e.affixProps,q=e.token,V=e.fixedHeader,K=e.breadcrumbRender,ee=e.footerToolBarProps,E=e.childrenContentStyle,k=(0,S.Z)(e,Qe),R=(0,Z.useContext)(n.X);(0,Z.useEffect)(function(){var re;return!R||!(R!=null&&R.setHasPageContainer)?function(){}:(R==null||(re=R.setHasPageContainer)===null||re===void 0||re.call(R,function(ue){return ue+1}),function(){var ue;R==null||(ue=R.setHasPageContainer)===null||ue===void 0||ue.call(R,function(He){return He-1})})},[]);var oe=(0,Z.useContext)(B.L_),J=oe.token,W=(0,Z.useContext)($.ZP.ConfigContext),te=W.getPrefixCls,Se=e.prefixCls||te("pro"),Q="".concat(Se,"-page-container"),we=Ee(Q,q),Ze=we.wrapSSR,ce=we.hashId,Me=Ge("".concat(Q,".").concat(Q,"-stylish"),{stylish:e.stylish}),ye=(0,Z.useMemo)(function(){var re;return K==!1?!1:K||(k==null||(re=k.header)===null||re===void 0?void 0:re.breadcrumbRender)},[K,k==null||(f=k.header)===null||f===void 0?void 0:f.breadcrumbRender]),se=Le((0,i.Z)((0,i.Z)({},k),{},{breadcrumbRender:ye,ghost:!0,hashId:ce,prefixCls:void 0,prefixedClassName:Q,value:R})),he=(0,Z.useMemo)(function(){if(Z.isValidElement(A))return A;if(typeof A=="boolean"&&!A)return null;var re=Ve(A);return re.spinning?(0,v.jsx)(fe.S,(0,i.Z)({},re)):null},[A]),Ce=(0,Z.useMemo)(function(){return L?(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:w()(ce,"".concat(Q,"-children-container"),(0,o.Z)({},"".concat(Q,"-children-container-no-header"),!se)),style:E,children:L})}):null},[L,Q,E,ce]),be=(0,Z.useMemo)(function(){var re=he||Ce;if(e.waterMarkProps||R.waterMarkProps){var ue=(0,i.Z)((0,i.Z)({},R.waterMarkProps),e.waterMarkProps);return(0,v.jsx)(ve,(0,i.Z)((0,i.Z)({},ue),{},{children:re}))}return re},[e.waterMarkProps,R.waterMarkProps,he,Ce]),Ne=w()(Q,ce,ne,(b={},(0,o.Z)(b,"".concat(Q,"-with-footer"),G),(0,o.Z)(b,"".concat(Q,"-with-affix"),V&&se),(0,o.Z)(b,"".concat(Q,"-stylish"),!!k.stylish),b));return Ze(Me.wrapSSR((0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{style:z,className:Ne,children:[V&&se?(0,v.jsx)(N.Z,(0,i.Z)((0,i.Z)({offsetTop:R.hasHeader&&R.fixedHeader?(P=J.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.heightLayoutHeader:1},F),{},{className:"".concat(Q,"-affix ").concat(ce).trim(),children:(0,v.jsx)("div",{className:"".concat(Q,"-warp ").concat(ce).trim(),children:se})})):se,be&&(0,v.jsx)(u.f,{children:be})]}),G&&(0,v.jsx)(l.S,(0,i.Z)((0,i.Z)({stylish:k.footerStylish,prefixCls:Se},ee),{},{children:G}))]})))},tt=function(e){return(0,v.jsx)(B._Y,{needDeps:!0,children:(0,v.jsx)(et,(0,i.Z)({},e))})},vt=function(e){var f=useContext(RouteContext);return Le(_objectSpread(_objectSpread({},e),{},{hashId:"",value:f}))}},27449:function(X,p,r){"use strict";r.d(p,{S:function(){return _}});var o=r(33346),S=r(10570),i=r(38705),j=r(50959),B=r(11527),M=["isLoading","pastDelay","timedOut","error","retry"],_=function(N){var T=N.isLoading,w=N.pastDelay,Z=N.timedOut,n=N.error,l=N.retry,u=(0,S.Z)(N,M);return(0,B.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,B.jsx)(i.Z,(0,o.Z)({size:"large"},u))})}},169:function(X,p,r){"use strict";r.d(p,{X:function(){return S}});var o=r(50959),S=(0,o.createContext)({})},19111:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=r;function r(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},89877:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=r;function r(o,S){if(!o)return!1;if(o.contains)return o.contains(S);for(var i=S;i;){if(i===o)return!0;i=i.parentNode}return!1}},4128:function(X,p,r){"use strict";var o=r(75449).default;Object.defineProperty(p,"__esModule",{value:!0}),p.clearContainerCache=a,p.injectCSS=Z,p.removeCSS=l,p.updateCSS=m;var S=o(r(19111)),i=o(r(89877)),j="data-rc-order",B="data-rc-priority",M="rc-util-key",_=new Map;function $(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=s.mark;return y?y.startsWith("data-")?y:"data-".concat(y):M}function N(s){if(s.attachTo)return s.attachTo;var y=document.querySelector("head");return y||document.body}function T(s){return s==="queue"?"prependQueue":s?"prepend":"append"}function w(s){return Array.from((_.get(s)||s).children).filter(function(y){return y.tagName==="STYLE"})}function Z(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,S.default)())return null;var C=y.csp,h=y.prepend,I=y.priority,d=I===void 0?0:I,O=T(h),t=O==="prependQueue",c=document.createElement("style");c.setAttribute(j,O),t&&d&&c.setAttribute(B,"".concat(d)),C!=null&&C.nonce&&(c.nonce=C==null?void 0:C.nonce),c.innerHTML=s;var g=N(y),x=g.firstChild;if(h){if(t){var v=w(g).filter(function(H){if(!["prepend","prependQueue"].includes(H.getAttribute(j)))return!1;var ae=Number(H.getAttribute(B)||0);return d>=ae});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,x)}else g.appendChild(c);return c}function n(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=N(y);return w(C).find(function(h){return h.getAttribute($(y))===s})}function l(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=n(s,y);if(C){var h=N(y);h.removeChild(C)}}function u(s,y){var C=_.get(s);if(!C||!(0,i.default)(document,C)){var h=Z("",y),I=h.parentNode;_.set(s,I),s.removeChild(h)}}function a(){_.clear()}function m(s,y){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=N(C);u(h,C);var I=n(y,C);if(I){var d,O;if((d=C.csp)!==null&&d!==void 0&&d.nonce&&I.nonce!==((O=C.csp)===null||O===void 0?void 0:O.nonce)){var t;I.nonce=(t=C.csp)===null||t===void 0?void 0:t.nonce}return I.innerHTML!==s&&(I.innerHTML=s),I}var c=Z(s,C);return c.setAttribute($(C),y),c}},75958:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getShadowRoot=S,p.inShadow=o;function r(i){var j;return i==null||(j=i.getRootNode)===null||j===void 0?void 0:j.call(i)}function o(i){return r(i)instanceof ShadowRoot}function S(i){return o(i)?r(i):null}},67856:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.call=M,p.default=void 0,p.note=j,p.noteOnce=$,p.preMessage=void 0,p.resetWarned=B,p.warning=i,p.warningOnce=_;var r={},o=[],S=p.preMessage=function(w){o.push(w)};function i(T,w){if(!1)var Z}function j(T,w){if(!1)var Z}function B(){r={}}function M(T,w,Z){!w&&!r[Z]&&(T(!1,Z),r[Z]=!0)}function _(T,w){M(i,T,w)}function $(T,w){M(j,T,w)}_.preMessage=S,_.resetWarned=B,_.noteOnce=$;var N=p.default=_},75449:function(X){function p(r){return r&&r.__esModule?r:{default:r}}X.exports=p,X.exports.__esModule=!0,X.exports.default=X.exports}}]); diff --git a/6053.afa1ccf0.async.js b/6053.afa1ccf0.async.js new file mode 100644 index 00000000..0e02da9d --- /dev/null +++ b/6053.afa1ccf0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{6053:function(_,u,r){r.d(u,{ZP:function(){return X}});var e=r(50959),f=r(71349),L=r(67536),v=r(39388),B=r(38126),C={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"},g=C,D=r(38782),W=function(l,a){return e.createElement(D.Z,(0,B.Z)({},l,{ref:a,icon:g}))},A=e.forwardRef(W),j=r(84875),F=r.n(j),z=r(31594),$=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.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)"})),e.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"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.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"}),e.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"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.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"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),S=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.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)"})),e.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"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.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)"}),e.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)"}),e.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)"}),e.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)"}),e.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)"}),e.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)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.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)"}),e.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)"}),e.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)"}))),E=r(60076),x=r(81501),H=r(90467);const I=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:n,padding:s,paddingXL:o,paddingXS:M,paddingLG:i,marginXS:p,lineHeight:k}=t;return{[l]:{padding:`${(0,E.bf)(t.calc(i).mul(2).equal())} ${(0,E.bf)(o)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${n}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:p,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:k,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:i,padding:`${(0,E.bf)(i)} ${(0,E.bf)(t.calc(s).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:M,"&:last-child":{marginInlineEnd:0}}}}},N=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},V=t=>[I(t),N(t)],y=t=>V(t),R=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`});var T=(0,x.I$)("Result",t=>{const l=t.colorInfo,a=t.colorError,n=t.colorSuccess,s=t.colorWarning,o=(0,H.TS)(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:n,resultWarningIconColor:s,imageWidth:250,imageHeight:295});return[y(o)]},R),b=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.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"}),e.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"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.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"}),e.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"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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 G={success:f.Z,error:L.Z,info:v.Z,warning:A},h={404:$,500:S,403:b},P=Object.keys(h),Z=t=>{let{prefixCls:l,icon:a,status:n}=t;const s=F()(`${l}-icon`);if(P.includes(`${n}`)){const M=h[n];return e.createElement("div",{className:`${s} ${l}-image`},e.createElement(M,null))}const o=e.createElement(G[n]);return a===null||a===!1?null:e.createElement("div",{className:s},a||o)},O=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:n,subTitle:s,title:o,style:M,children:i,status:p="info",icon:k,extra:U}=t;const{getPrefixCls:w,direction:J,result:d}=e.useContext(z.E_),c=w("result",l),[K,Q]=T(c),Y=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:J==="rtl"},Q),q=Object.assign(Object.assign({},d==null?void 0:d.style),M);return K(e.createElement("div",{className:Y,style:q},e.createElement(Z,{prefixCls:c,status:p,icon:k}),e.createElement("div",{className:`${c}-title`},o),s&&e.createElement("div",{className:`${c}-subtitle`},s),e.createElement(O,{prefixCls:c,extra:U}),i&&e.createElement("div",{className:`${c}-content`},i)))};m.PRESENTED_IMAGE_403=h[403],m.PRESENTED_IMAGE_404=h[404],m.PRESENTED_IMAGE_500=h[500];var X=m}}]); diff --git a/609.591239b2.async.js b/609.591239b2.async.js deleted file mode 100644 index 51470363..00000000 --- a/609.591239b2.async.js +++ /dev/null @@ -1,37 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[609],{16165:function(U,P,b){"use strict";var p=b(28991),d=b(96156),v=b(81253),h=b(67294),a=b(94184),o=b.n(a),n=b(63017),t=b(41755),e=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],r=h.forwardRef(function(i,u){var c=i.className,s=i.component,l=i.viewBox,f=i.spin,g=i.rotate,y=i.tabIndex,m=i.onClick,x=i.children,w=(0,v.Z)(i,e);(0,t.Kp)(Boolean(s||x),"Should have `component` prop or `children`."),(0,t.C3)();var M=h.useContext(n.Z),S=M.prefixCls,O=S===void 0?"anticon":S,A=o()(O,c),E=o()((0,d.Z)({},"".concat(O,"-spin"),!!f)),_=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,C=(0,p.Z)((0,p.Z)({},t.vD),{},{className:E,style:_,viewBox:l});l||delete C.viewBox;var k=function(){return s?h.createElement(s,(0,p.Z)({},C),x):x?((0,t.Kp)(Boolean(l)||h.Children.count(x)===1&&h.isValidElement(x)&&h.Children.only(x).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",(0,p.Z)((0,p.Z)({},C),{},{viewBox:l}),x)):null},T=y;return T===void 0&&m&&(T=-1),h.createElement("span",(0,p.Z)((0,p.Z)({role:"img"},w),{},{ref:u,tabIndex:T,onClick:m,className:A}),k())});r.displayName="AntdIcon",P.Z=r},91321:function(U,P,b){"use strict";b.d(P,{Z:function(){return e}});var p=b(28991),d=b(81253),v=b(67294),h=b(16165),a=["type","children"],o=new Set;function n(r){return Boolean(typeof r=="string"&&r.length&&!o.has(r))}function t(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=r[i];if(n(u)){var c=document.createElement("script");c.setAttribute("src",u),c.setAttribute("data-namespace",u),r.length>i+1&&(c.onload=function(){t(r,i+1)},c.onerror=function(){t(r,i+1)}),o.add(u),document.body.appendChild(c)}}function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.scriptUrl,u=r.extraCommonProps,c=u===void 0?{}:u;i&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(i)?t(i.reverse()):t([i]));var s=v.forwardRef(function(l,f){var g=l.type,y=l.children,m=(0,d.Z)(l,a),x=null;return l.type&&(x=v.createElement("use",{xlinkHref:"#".concat(g)})),y&&(x=y),v.createElement(h.Z,(0,p.Z)((0,p.Z)((0,p.Z)({},c),m),{},{ref:f}),x)});return s.displayName="Iconfont",s}},66213:function(U,P,b){"use strict";b.d(P,{Z:function(){return v}});var p=b(77608);function d(h,a){for(;!Object.prototype.hasOwnProperty.call(h,a)&&(h=(0,p.Z)(h),h!==null););return h}function v(){return typeof Reflect!="undefined"&&Reflect.get?v=Reflect.get.bind():v=function(a,o,n){var t=d(a,o);if(!!t){var e=Object.getOwnPropertyDescriptor(t,o);return e.get?e.get.call(arguments.length<3?a:n):e.value}},v.apply(this,arguments)}},20532:function(U){(function(P,b){U.exports=b()})(window,function(){return function(P){var b={};function p(d){if(b[d])return b[d].exports;var v=b[d]={i:d,l:!1,exports:{}};return P[d].call(v.exports,v,v.exports,p),v.l=!0,v.exports}return p.m=P,p.c=b,p.d=function(d,v,h){p.o(d,v)||Object.defineProperty(d,v,{enumerable:!0,get:h})},p.r=function(d){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},p.t=function(d,v){if(1&v&&(d=p(d)),8&v||4&v&&typeof d=="object"&&d&&d.__esModule)return d;var h=Object.create(null);if(p.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:d}),2&v&&typeof d!="string")for(var a in d)p.d(h,a,function(o){return d[o]}.bind(null,a));return h},p.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return p.d(v,"a",v),v},p.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)},p.p="",p(p.s=820)}([,function(P,b,p){"use strict";var d=function(z,lt,rt){z.prototype=lt.prototype=rt,rt.constructor=z};function v(Z,z){var lt=Object.create(Z.prototype);for(var rt in z)lt[rt]=z[rt];return lt}function h(){}var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t=/^#([0-9a-f]{3})$/,e=/^#([0-9a-f]{6})$/,r=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),i=new RegExp("^rgb\\("+[n,n,n]+"\\)$"),u=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),c=new RegExp("^rgba\\("+[n,n,n,o]+"\\)$"),s=new RegExp("^hsl\\("+[o,n,n]+"\\)$"),l=new RegExp("^hsla\\("+[o,n,n,o]+"\\)$"),f={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(Z){var z;return Z=(Z+"").trim().toLowerCase(),(z=t.exec(Z))?new M((z=parseInt(z[1],16))>>8&15|z>>4&240,z>>4&15|240&z,(15&z)<<4|15&z,1):(z=e.exec(Z))?y(parseInt(z[1],16)):(z=r.exec(Z))?new M(z[1],z[2],z[3],1):(z=i.exec(Z))?new M(255*z[1]/100,255*z[2]/100,255*z[3]/100,1):(z=u.exec(Z))?m(z[1],z[2],z[3],z[4]):(z=c.exec(Z))?m(255*z[1]/100,255*z[2]/100,255*z[3]/100,z[4]):(z=s.exec(Z))?O(z[1],z[2]/100,z[3]/100,1):(z=l.exec(Z))?O(z[1],z[2]/100,z[3]/100,z[4]):f.hasOwnProperty(Z)?y(f[Z]):Z==="transparent"?new M(NaN,NaN,NaN,0):null}function y(Z){return new M(Z>>16&255,Z>>8&255,255&Z,1)}function m(Z,z,lt,rt){return rt<=0&&(Z=z=lt=NaN),new M(Z,z,lt,rt)}function x(Z){return Z instanceof h||(Z=g(Z)),Z?new M((Z=Z.rgb()).r,Z.g,Z.b,Z.opacity):new M}function w(Z,z,lt,rt){return arguments.length===1?x(Z):new M(Z,z,lt,rt==null?1:rt)}function M(Z,z,lt,rt){this.r=+Z,this.g=+z,this.b=+lt,this.opacity=+rt}function S(Z){return((Z=Math.max(0,Math.min(255,Math.round(Z)||0)))<16?"0":"")+Z.toString(16)}function O(Z,z,lt,rt){return rt<=0?Z=z=lt=NaN:lt<=0||lt>=1?Z=z=NaN:z<=0&&(Z=NaN),new E(Z,z,lt,rt)}function A(Z,z,lt,rt){return arguments.length===1?function(gt){if(gt instanceof E)return new E(gt.h,gt.s,gt.l,gt.opacity);if(gt instanceof h||(gt=g(gt)),!gt)return new E;if(gt instanceof E)return gt;var mt=(gt=gt.rgb()).r/255,St=gt.g/255,Mt=gt.b/255,Ot=Math.min(mt,St,Mt),yt=Math.max(mt,St,Mt),wt=NaN,Et=yt-Ot,Pt=(yt+Ot)/2;return Et?(wt=mt===yt?(St-Mt)/Et+6*(St0&&Pt<1?0:wt,new E(wt,Et,Pt,gt.opacity)}(Z):new E(Z,z,lt,rt==null?1:rt)}function E(Z,z,lt,rt){this.h=+Z,this.s=+z,this.l=+lt,this.opacity=+rt}function _(Z,z,lt){return 255*(Z<60?z+(lt-z)*Z/60:Z<180?lt:Z<240?z+(lt-z)*(240-Z)/60:z)}d(h,g,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),d(M,w,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new M(this.r*z,this.g*z,this.b*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new M(this.r*z,this.g*z,this.b*z,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var z=this.opacity;return((z=isNaN(z)?1:Math.max(0,Math.min(1,z)))===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))+(z===1?")":", "+z+")")}})),d(E,A,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new E(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new E(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=this.h%360+360*(this.h<0),lt=isNaN(z)||isNaN(this.s)?0:this.s,rt=this.l,gt=rt+(rt<.5?rt:1-rt)*lt,mt=2*rt-gt;return new M(_(z>=240?z-240:z+120,mt,gt),_(z,mt,gt),_(z<120?z+240:z-120,mt,gt),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}}));var C=Math.PI/180,k=180/Math.PI,T=.96422,I=1,D=.82521,R=4/29,j=6/29,B=3*j*j,X=j*j*j;function et(Z){if(Z instanceof J)return new J(Z.l,Z.a,Z.b,Z.opacity);if(Z instanceof N){if(isNaN(Z.h))return new J(Z.l,0,0,Z.opacity);var z=Z.h*C;return new J(Z.l,Math.cos(z)*Z.c,Math.sin(z)*Z.c,Z.opacity)}Z instanceof M||(Z=x(Z));var lt,rt,gt=q(Z.r),mt=q(Z.g),St=q(Z.b),Mt=nt((.2225045*gt+.7168786*mt+.0606169*St)/I);return gt===mt&&mt===St?lt=rt=Mt:(lt=nt((.4360747*gt+.3850649*mt+.1430804*St)/T),rt=nt((.0139322*gt+.0971045*mt+.7141733*St)/D)),new J(116*Mt-16,500*(lt-Mt),200*(Mt-rt),Z.opacity)}function K(Z,z){return new J(Z,0,0,z==null?1:z)}function tt(Z,z,lt,rt){return arguments.length===1?et(Z):new J(Z,z,lt,rt==null?1:rt)}function J(Z,z,lt,rt){this.l=+Z,this.a=+z,this.b=+lt,this.opacity=+rt}function nt(Z){return Z>X?Math.pow(Z,1/3):Z/B+R}function at(Z){return Z>j?Z*Z*Z:B*(Z-R)}function W(Z){return 255*(Z<=.0031308?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055)}function q(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function Q(Z){if(Z instanceof N)return new N(Z.h,Z.c,Z.l,Z.opacity);if(Z instanceof J||(Z=et(Z)),Z.a===0&&Z.b===0)return new N(NaN,0,Z.l,Z.opacity);var z=Math.atan2(Z.b,Z.a)*k;return new N(z<0?z+360:z,Math.sqrt(Z.a*Z.a+Z.b*Z.b),Z.l,Z.opacity)}function it(Z,z,lt,rt){return arguments.length===1?Q(Z):new N(lt,z,Z,rt==null?1:rt)}function Y(Z,z,lt,rt){return arguments.length===1?Q(Z):new N(Z,z,lt,rt==null?1:rt)}function N(Z,z,lt,rt){this.h=+Z,this.c=+z,this.l=+lt,this.opacity=+rt}d(J,tt,v(h,{brighter:function(z){return new J(this.l+18*(z==null?1:z),this.a,this.b,this.opacity)},darker:function(z){return new J(this.l-18*(z==null?1:z),this.a,this.b,this.opacity)},rgb:function(){var z=(this.l+16)/116,lt=isNaN(this.a)?z:z+this.a/500,rt=isNaN(this.b)?z:z-this.b/200;return new M(W(3.1338561*(lt=T*at(lt))-1.6168667*(z=I*at(z))-.4906146*(rt=D*at(rt))),W(-.9787684*lt+1.9161415*z+.033454*rt),W(.0719453*lt-.2289914*z+1.4052427*rt),this.opacity)}})),d(N,Y,v(h,{brighter:function(z){return new N(this.h,this.c,this.l+18*(z==null?1:z),this.opacity)},darker:function(z){return new N(this.h,this.c,this.l-18*(z==null?1:z),this.opacity)},rgb:function(){return et(this).rgb()}}));var L=-.14861,G=1.78277,H=-.29227,F=-.90649,$=1.97294,st=$*F,ot=$*G,ct=G*H-F*L;function ht(Z,z,lt,rt){return arguments.length===1?function(gt){if(gt instanceof pt)return new pt(gt.h,gt.s,gt.l,gt.opacity);gt instanceof M||(gt=x(gt));var mt=gt.r/255,St=gt.g/255,Mt=gt.b/255,Ot=(ct*Mt+st*mt-ot*St)/(ct+st-ot),yt=Mt-Ot,wt=($*(St-Ot)-H*yt)/F,Et=Math.sqrt(wt*wt+yt*yt)/($*Ot*(1-Ot)),Pt=Et?Math.atan2(wt,yt)*k-120:NaN;return new pt(Pt<0?Pt+360:Pt,Et,Ot,gt.opacity)}(Z):new pt(Z,z,lt,rt==null?1:rt)}function pt(Z,z,lt,rt){this.h=+Z,this.s=+z,this.l=+lt,this.opacity=+rt}d(pt,ht,v(h,{brighter:function(z){return z=z==null?1/.7:Math.pow(1/.7,z),new pt(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=z==null?.7:Math.pow(.7,z),new pt(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=isNaN(this.h)?0:(this.h+120)*C,lt=+this.l,rt=isNaN(this.s)?0:this.s*lt*(1-lt),gt=Math.cos(z),mt=Math.sin(z);return new M(255*(lt+rt*(L*gt+G*mt)),255*(lt+rt*(H*gt+F*mt)),255*(lt+rt*($*gt)),this.opacity)}})),p.d(b,"a",function(){return g}),p.d(b,"h",function(){return w}),p.d(b,"e",function(){return A}),p.d(b,"f",function(){return tt}),p.d(b,"d",function(){return Y}),p.d(b,"g",function(){return it}),p.d(b,"c",function(){return K}),p.d(b,"b",function(){return ht})},,,,,,,,,,,,,,,function(P,b){P.exports=function(p){var d=typeof p;return p!=null&&(d=="object"||d=="function")}},function(P,b,p){"use strict";p.r(b);var d,v,h=0,a=0,o=0,n=1e3,t=0,e=0,r=0,i=typeof performance=="object"&&performance.now?performance:Date,u=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};function c(){return e||(u(s),e=i.now()+r)}function s(){e=0}function l(){this._call=this._time=this._next=null}function f(S,O,A){var E=new l;return E.restart(S,O,A),E}function g(){c(),++h;for(var S,O=d;O;)(S=e-O._time)>=0&&O._call.call(null,S),O=O._next;--h}function y(){e=(t=i.now())+r,h=a=0;try{g()}finally{h=0,function(){for(var S,O,A=d,E=1/0;A;)A._call?(E>A._time&&(E=A._time),S=A,A=A._next):(O=A._next,A._next=null,A=S?S._next=O:d=O);v=S,x(E)}(),e=0}}function m(){var S=i.now(),O=S-t;O>n&&(r-=O,t=S)}function x(S){h||(a&&(a=clearTimeout(a)),S-e>24?(S<1/0&&(a=setTimeout(y,S-i.now()-r)),o&&(o=clearInterval(o))):(o||(t=i.now(),o=setInterval(m,n)),h=1,u(y)))}l.prototype=f.prototype={constructor:l,restart:function(O,A,E){if(typeof O!="function")throw new TypeError("callback is not a function");E=(E==null?c():+E)+(A==null?0:+A),this._next||v===this||(v?v._next=this:d=this,v=this),this._call=O,this._time=E,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};var w=function(O,A,E){var _=new l;return A=A==null?0:+A,_.restart(function(C){_.stop(),O(C+A)},A,E),_},M=function(O,A,E){var _=new l,C=A;return A==null?(_.restart(O,A,E),_):(A=+A,E=E==null?c():+E,_.restart(function k(T){T+=C,_.restart(k,C+=A,E),O(T)},A,E),_)};p.d(b,"now",function(){return c}),p.d(b,"timer",function(){return f}),p.d(b,"timerFlush",function(){return g}),p.d(b,"timeout",function(){return w}),p.d(b,"interval",function(){return M})},,function(P,b,p){var d=p(644),v={};d.merge(v,d,{mixin:function(a,o){var n=a.CFG?"CFG":"ATTRS";if(a&&o){a._mixins=o,a[n]=a[n]||{};var t={};v.each(o,function(e){v.augment(a,e);var r=e[n];r&&v.merge(t,r)}),a[n]=v.merge(t,a[n])}}}),P.exports=v},function(P,b,p){var d=p(117),v=typeof self=="object"&&self&&self.Object===Object&&self,h=d||v||Function("return this")();P.exports=h},,,function(P,b){P.exports=function(p){return p!=null&&typeof p=="object"}},,,function(P,b,p){var d={},v=p(682),h=p(748),a=p(257),o=p(727),n=p(726),t=p(725);a.mix(d,a,n,t,o,h,v),P.exports=d},,,,,,,,function(P,b,p){var d=p(38),v=p(250),h=p(249),a="[object Null]",o="[object Undefined]",n=d?d.toStringTag:void 0;P.exports=function(t){return t==null?t===void 0?o:a:n&&n in Object(t)?v(t):h(t)}},,,,function(P,b,p){var d=p(20).Symbol;P.exports=d},function(P,b,p){var d=p(34),v=p(23),h="[object Symbol]";P.exports=function(a){return typeof a=="symbol"||v(a)&&d(a)==h}},,,,,function(P,b,p){"use strict";function d(W){return+W}function v(W){return W*W}function h(W){return W*(2-W)}function a(W){return((W*=2)<=1?W*W:--W*(2-W)+1)/2}function o(W){return W*W*W}function n(W){return--W*W*W+1}function t(W){return((W*=2)<=1?W*W*W:(W-=2)*W*W+2)/2}p.r(b);var e=function W(q){function Q(it){return Math.pow(it,q)}return q=+q,Q.exponent=W,Q}(3),r=function W(q){function Q(it){return 1-Math.pow(1-it,q)}return q=+q,Q.exponent=W,Q}(3),i=function W(q){function Q(it){return((it*=2)<=1?Math.pow(it,q):2-Math.pow(2-it,q))/2}return q=+q,Q.exponent=W,Q}(3),u=Math.PI,c=u/2;function s(W){return 1-Math.cos(W*c)}function l(W){return Math.sin(W*c)}function f(W){return(1-Math.cos(u*W))/2}function g(W){return Math.pow(2,10*W-10)}function y(W){return 1-Math.pow(2,-10*W)}function m(W){return((W*=2)<=1?Math.pow(2,10*W-10):2-Math.pow(2,10-10*W))/2}function x(W){return 1-Math.sqrt(1-W*W)}function w(W){return Math.sqrt(1- --W*W)}function M(W){return((W*=2)<=1?1-Math.sqrt(1-W*W):Math.sqrt(1-(W-=2)*W)+1)/2}var S=4/11,O=6/11,A=8/11,E=.75,_=9/11,C=10/11,k=.9375,T=21/22,I=63/64,D=1/S/S;function R(W){return 1-j(1-W)}function j(W){return(W=+W)0){var c=r.strokeOpacity;d.isNil(c)||c===1||(e.globalAlpha=c),e.stroke()}this.afterPath(e)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(e,r){var i=[e,r,1];if(this.invert(i),this.isHitBox()){var u=this.getBBox();if(u&&!a.box(u.minX,u.maxX,u.minY,u.maxY,i[0],i[1]))return!1}var c=this._attrs.clip;return c?(c.invert(i,this.get("canvas")),!!c.isPointInPath(i[0],i[1])&&this.isPointInPath(i[0],i[1])):this.isPointInPath(i[0],i[1])},calculateBox:function(){return null},getHitLineWidth:function(){var e=this._attrs,r=e.lineAppendWidth||0;return(e.lineWidth||0)+r},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=null,r=this._attrs,i={};return d.each(r,function(u,c){n[c]&&d.isArray(r[c])?i[c]=function(s){for(var l=[],f=0;f=1?(H=1,G-1):Math.floor(H*G),$=L[F],st=L[F+1],ot=F>0?L[F-1]:2*$-st,ct=F180||G<-180?G-360*Math.round(G/360):G):o(isNaN(N)?L:N)}function e(N){return(N=+N)==1?r:function(L,G){return G-L?function(H,F,$){return H=Math.pow(H,$),F=Math.pow(F,$)-H,$=1/$,function(st){return Math.pow(H+st*F,$)}}(L,G,N):o(isNaN(L)?G:L)}}function r(N,L){var G=L-N;return G?n(N,G):o(isNaN(N)?L:N)}var i=function N(L){var G=e(L);function H(F,$){var st=G((F=Object(d.h)(F)).r,($=Object(d.h)($)).r),ot=G(F.g,$.g),ct=G(F.b,$.b),ht=r(F.opacity,$.opacity);return function(pt){return F.r=st(pt),F.g=ot(pt),F.b=ct(pt),F.opacity=ht(pt),F+""}}return H.gamma=N,H}(1);function u(N){return function(L){var G,H,F=L.length,$=new Array(F),st=new Array(F),ot=new Array(F);for(G=0;Gst&&($=G.slice(st,$),ct[ot]?ct[ot]+=$:ct[++ot]=$),(H=H[0])===(F=F[0])?ct[ot]?ct[ot]+=F:ct[++ot]=F:(ct[++ot]=null,ht.push({i:ot,x:g(H,F)})),st=x.lastIndex;return st180?pt+=360:pt-ht>180&&(ht+=360),z.push({i:Z.push(F(Z)+"rotate(",null,H)-2,x:g(ht,pt)})):pt&&Z.push(F(Z)+"rotate("+pt+H)}($.rotate,st.rotate,ot,ct),function(ht,pt,Z,z){ht!==pt?z.push({i:Z.push(F(Z)+"skewX(",null,H)-2,x:g(ht,pt)}):pt&&Z.push(F(Z)+"skewX("+pt+H)}($.skewX,st.skewX,ot,ct),function(ht,pt,Z,z,lt,rt){if(ht!==Z||pt!==z){var gt=lt.push(F(lt)+"scale(",null,",",null,")");rt.push({i:gt-4,x:g(ht,Z)},{i:gt-2,x:g(pt,z)})}else Z===1&&z===1||lt.push(F(lt)+"scale("+Z+","+z+")")}($.scaleX,$.scaleY,st.scaleX,st.scaleY,ot,ct),$=st=null,function(ht){for(var pt,Z=-1,z=ct.length;++Z1?0:y<-1?Math.PI:Math.acos(y)},b.str=function(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"},b.exactEquals=function(s,l){return s[0]===l[0]&&s[1]===l[1]&&s[2]===l[2]},b.equals=function(s,l){var f=s[0],g=s[1],y=s[2],m=l[0],x=l[1],w=l[2];return Math.abs(f-m)<=d.EPSILON*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(g-x)<=d.EPSILON*Math.max(1,Math.abs(g),Math.abs(x))&&Math.abs(y-w)<=d.EPSILON*Math.max(1,Math.abs(y),Math.abs(w))};var d=function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(l[f]=s[f]);return l.default=s,l}(p(59));function v(){var s=new d.ARRAY_TYPE(3);return d.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s}function h(s){var l=s[0],f=s[1],g=s[2];return Math.sqrt(l*l+f*f+g*g)}function a(s,l,f){var g=new d.ARRAY_TYPE(3);return g[0]=s,g[1]=l,g[2]=f,g}function o(s,l,f){return s[0]=l[0]-f[0],s[1]=l[1]-f[1],s[2]=l[2]-f[2],s}function n(s,l,f){return s[0]=l[0]*f[0],s[1]=l[1]*f[1],s[2]=l[2]*f[2],s}function t(s,l,f){return s[0]=l[0]/f[0],s[1]=l[1]/f[1],s[2]=l[2]/f[2],s}function e(s,l){var f=l[0]-s[0],g=l[1]-s[1],y=l[2]-s[2];return Math.sqrt(f*f+g*g+y*y)}function r(s,l){var f=l[0]-s[0],g=l[1]-s[1],y=l[2]-s[2];return f*f+g*g+y*y}function i(s){var l=s[0],f=s[1],g=s[2];return l*l+f*f+g*g}function u(s,l){var f=l[0],g=l[1],y=l[2],m=f*f+g*g+y*y;return m>0&&(m=1/Math.sqrt(m),s[0]=l[0]*m,s[1]=l[1]*m,s[2]=l[2]*m),s}function c(s,l){return s[0]*l[0]+s[1]*l[1]+s[2]*l[2]}b.sub=o,b.mul=n,b.div=t,b.dist=e,b.sqrDist=r,b.len=h,b.sqrLen=i,b.forEach=function(){var s=v();return function(l,f,g,y,m,x){var w=void 0,M=void 0;for(f||(f=3),g||(g=0),M=y?Math.min(y*f+g,l.length):l.length,w=g;w0&&(l=1/Math.sqrt(l),i[0]=u[0]*l,i[1]=u[1]*l),i},b.dot=function(i,u){return i[0]*u[0]+i[1]*u[1]},b.cross=function(i,u,c){var s=u[0]*c[1]-u[1]*c[0];return i[0]=i[1]=0,i[2]=s,i},b.lerp=function(i,u,c,s){var l=u[0],f=u[1];return i[0]=l+s*(c[0]-l),i[1]=f+s*(c[1]-f),i},b.random=function(i,u){u=u||1;var c=2*d.RANDOM()*Math.PI;return i[0]=Math.cos(c)*u,i[1]=Math.sin(c)*u,i},b.transformMat2=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[2]*l,i[1]=c[1]*s+c[3]*l,i},b.transformMat2d=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[2]*l+c[4],i[1]=c[1]*s+c[3]*l+c[5],i},b.transformMat3=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[3]*l+c[6],i[1]=c[1]*s+c[4]*l+c[7],i},b.transformMat4=function(i,u,c){var s=u[0],l=u[1];return i[0]=c[0]*s+c[4]*l+c[12],i[1]=c[1]*s+c[5]*l+c[13],i},b.rotate=function(i,u,c,s){var l=u[0]-c[0],f=u[1]-c[1],g=Math.sin(s),y=Math.cos(s);return i[0]=l*y-f*g+c[0],i[1]=l*g+f*y+c[1],i},b.angle=function(i,u){var c=i[0],s=i[1],l=u[0],f=u[1],g=c*c+s*s;g>0&&(g=1/Math.sqrt(g));var y=l*l+f*f;y>0&&(y=1/Math.sqrt(y));var m=(c*l+s*f)*g*y;return m>1?0:m<-1?Math.PI:Math.acos(m)},b.str=function(i){return"vec2("+i[0]+", "+i[1]+")"},b.exactEquals=function(i,u){return i[0]===u[0]&&i[1]===u[1]},b.equals=function(i,u){var c=i[0],s=i[1],l=u[0],f=u[1];return Math.abs(c-l)<=d.EPSILON*Math.max(1,Math.abs(c),Math.abs(l))&&Math.abs(s-f)<=d.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))};var d=function(i){if(i&&i.__esModule)return i;var u={};if(i!=null)for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(u[c]=i[c]);return u.default=i,u}(p(59));function v(){var i=new d.ARRAY_TYPE(2);return d.ARRAY_TYPE!=Float32Array&&(i[0]=0,i[1]=0),i}function h(i,u,c){return i[0]=u[0]-c[0],i[1]=u[1]-c[1],i}function a(i,u,c){return i[0]=u[0]*c[0],i[1]=u[1]*c[1],i}function o(i,u,c){return i[0]=u[0]/c[0],i[1]=u[1]/c[1],i}function n(i,u){var c=u[0]-i[0],s=u[1]-i[1];return Math.sqrt(c*c+s*s)}function t(i,u){var c=u[0]-i[0],s=u[1]-i[1];return c*c+s*s}function e(i){var u=i[0],c=i[1];return Math.sqrt(u*u+c*c)}function r(i){var u=i[0],c=i[1];return u*u+c*c}b.len=e,b.sub=h,b.mul=a,b.div=o,b.dist=n,b.sqrDist=t,b.sqrLen=r,b.forEach=function(){var i=v();return function(u,c,s,l,f,g){var y=void 0,m=void 0;for(c||(c=2),s||(s=0),m=l?Math.min(l*c+s,u.length):u.length,y=s;y0?1:-1};var a=function(n){for(var t=1;t1){var e=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=e}d.each(n,function(r,i){isNaN(r)||(n[i]=+r)}),o[t]=n}),o):void 0}}},function(P,b,p){var d=p(237);P.exports=function(v){return d(v)?"":v.toString()}},function(P,b,p){var d=p(115);P.exports=function(v){return d(v,"String")}},function(P,b,p){var d=p(619),v=p(115);P.exports=function(h){if(!d(h)||!v(h,"Object"))return!1;if(Object.getPrototypeOf(h)===null)return!0;for(var a=h;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(h)===a}},function(P,b,p){var d=function(v){function h(a){var o;return(o=v.call(this)||this).options=a,o}return function(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}(h,v),h.prototype.execute=function(){var a=this,o=this.options;this.roots.forEach(function(n){a.layout(n,o).eachNode(function(t){t.data.x=t.x+t.data.width/2+t.hgap,t.data.y=t.y+t.data.height/2+t.vgap})})},h}(p(622));P.exports=d},function(P,b,p){(function(d,v){P.exports=v()})(typeof self!="undefined"&&self,function(){return function(d){var v={};function h(a){if(v[a])return v[a].exports;var o=v[a]={i:a,l:!1,exports:{}};return d[a].call(o.exports,o,o.exports,h),o.l=!0,o.exports}return h.m=d,h.c=v,h.d=function(a,o,n){h.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:n})},h.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(o,"a",o),o},h.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},h.p="",h(h.s=5)}([function(d,v,h){var a=h(7);d.exports={assign:a}},function(d,v,h){var a=h(3),o=function(){function n(t,e){e===void 0&&(e={}),this.options=e,this.rootNode=a(t,e)}return n.prototype.execute=function(){throw new Error("please override this method")},n}();d.exports=o},function(d,v,h){var a=h(4),o=["LR","RL","TB","BT","H","V"],n=["LR","RL","H"],t=o[0];d.exports=function(e,r,i){var u=r.direction||t;if(r.isHorizontal=function(g){return n.indexOf(g)>-1}(u),u&&o.indexOf(u)===-1)throw new TypeError("Invalid direction: "+u);if(u===o[0])i(e,r);else if(u===o[1])i(e,r),e.right2left();else if(u===o[2])i(e,r);else if(u===o[3])i(e,r),e.bottom2top();else if(u===o[4]||u===o[5]){var c=a(e,r),s=c.left,l=c.right;i(s,r),i(l,r),r.isHorizontal?s.right2left():s.bottom2top(),l.translate(s.x-l.x,s.y-l.y),e.x=s.x,e.y=l.y;var f=e.getBoundingBox();r.isHorizontal?f.top<0&&e.translate(0,-f.top):f.left<0&&e.translate(-f.left,0)}return e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),e}},function(d,v,h){var a=h(0),o={getId:function(e){return e.id||e.name},getHGap:function(e){return e.hgap||18},getVGap:function(e){return e.vgap||18},getChildren:function(e){return e.children},getHeight:function(e){return e.height||36},getWidth:function(e){var r=e.name||" ";return e.width||18*r.split("").length}};function n(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof n)return t;r.data=t;var i=e.getHGap(t),u=e.getVGap(t);return r.width=e.getWidth(t),r.height=e.getHeight(t),r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(i,u),r}a.assign(n.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){this.hgap+=e,this.vgap+=r,this.width+=2*e,this.height+=2*r},eachNode:function(e){for(var r,i=[this];r=i.pop();)e(r),i=i.concat(r.children)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r,i=[this];r=i.shift();)e(r),i=i.concat(r.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(i){i.x+=e,i.y+=r})},right2left:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.x=r.x-2*(r.x-e.left)-r.width}),this.translate(e.width,0)},bottom2top:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.y=r.y-2*(r.y-e.top)-r.height}),this.translate(0,e.height)}}),d.exports=function(t,e,r){e===void 0&&(e={});var i,u=new n(t,e=a.assign({},o,e)),c=[u];if(!r&&!t.collapsed){for(;i=c.pop();)if(!i.data.collapsed){var s=e.getChildren(i.data),l=s?s.length:0;if(i.children=new Array(l),s&&l)for(var f=0;fm.low&&(m=m.nxt);var O=w+x.prelim+x.w-(S+M.prelim);O>0&&(S+=O,i(g,y,m.index,O));var A=s(x),E=s(M);A<=E&&(x=c(x))!==null&&(w+=x.mod),A>=E&&(M=u(M))!==null&&(S+=M.mod)}!x&&M?function(_,C,k,T){var I=_.c[0].el;I.tl=k;var D=T-k.mod-_.c[0].msel;I.mod+=D,I.prelim-=D,_.c[0].el=_.c[C].el,_.c[0].msel=_.c[C].msel}(g,y,M,S):x&&!M&&function(_,C,k,T){var I=_.c[C].er;I.tr=k;var D=T-k.mod-_.c[C].mser;I.mod+=D,I.prelim-=D,_.c[C].er=_.c[C-1].er,_.c[C].mser=_.c[C-1].mser}(g,y,x,w)}function i(g,y,m,x){g.c[y].mod+=x,g.c[y].msel+=x,g.c[y].mser+=x,function(w,M,S,O){if(S!==M-1){var A=M-S;w.c[S+1].shift+=O/A,w.c[M].shift-=O/A,w.c[M].change-=O-O/A}}(g,y,m,x)}function u(g){return g.cs===0?g.tl:g.c[0]}function c(g){return g.cs===0?g.tr:g.c[g.cs-1]}function s(g){return g.y+g.h}function l(g,y,m){for(;m!==null&&g>=m.low;)m=m.nxt;return{low:g,index:y,nxt:m}}(function g(y,m,x){x===void 0&&(x=0),m?(y.x=x,x+=y.width):(y.y=x,x+=y.height),y.children.forEach(function(w){g(w,m,x)})})(o,t);var f=h.fromNode(o,t);return function g(y){if(y.cs!==0){g(y.c[0]);for(var m=l(s(y.c[0].el),0,null),x=1;xr&&(r=c.depth);var s=c.children,l=s.length,f=new function(g,y){g===void 0&&(g=0),y===void 0&&(y=[]);var m=this;m.x=m.y=0,m.leftChild=m.rightChild=null,m.height=0,m.children=y}(c.height,[]);return s.forEach(function(g,y){var m=u(g);f.children.push(m),y===0&&(f.leftChild=m),y===l-1&&(f.rightChild=m)}),f.originNode=c,f.isLeaf=c.isLeaf(),f}(n);return function u(c){if(c.isLeaf||c.children.length===0)c.drawingDepth=r;else{var s=c.children.map(function(f){return u(f)}),l=Math.min.apply(null,s);c.drawingDepth=l-1}return c.drawingDepth}(i),function u(c){c.x=c.drawingDepth*t.rankSep,c.isLeaf?(c.y=0,e&&(c.y=e.y+e.height+t.nodeSep,c.originNode.parent!==e.originNode.parent&&(c.y+=t.subTreeSep)),e=c):(c.children.forEach(function(s){u(s)}),c.y=(c.leftChild.y+c.rightChild.y)/2)}(i),function u(c,s,l){l?(s.x=c.x,s.y=c.y):(s.x=c.y,s.y=c.x),c.children.forEach(function(f,g){u(f,s.children[g],l)})}(i,n,t.isHorizontal),n}},function(d,v,h){var a=h(1),o=h(12),n=h(4),t=h(0),e=["LR","RL","H"],r=e[0],i=function(c){function s(){return c.apply(this,arguments)||this}return function(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,l.__proto__=f}(s,c),s.prototype.execute=function(){var l=this.options,f=this.rootNode;l.isHorizontal=!0;var g=l.indent,y=l.direction||r;if(y&&e.indexOf(y)===-1)throw new TypeError("Invalid direction: "+y);if(y===e[0])o(f,g);else if(y===e[1])o(f,g),f.right2left();else if(y===e[2]){var m=n(f,l),x=m.left,w=m.right;o(x,g),x.right2left(),o(w,g);var M=x.getBoundingBox();w.translate(M.width,0),f.x=w.x-f.width/2}return f},s}(a),u={};d.exports=function(c,s){return s=t.assign({},u,s),new i(c,s).execute()}},function(d,v){d.exports=function(h,a){a===void 0&&(a=20);var o=null;h.eachNode(function(n){(function(t,e,r){t.x+=r*t.depth,t.y=e?e.y+e.height:0})(n,o,a),o=n})}},function(d,v,h){var a=h(1),o=h(14),n=h(2),t=h(0),e=function(i){function u(){return i.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,i),u.prototype.execute=function(){return n(this.rootNode,this.options,o)},u}(a),r={};d.exports=function(i,u){return u=t.assign({},r,u),new e(i,u).execute()}},function(d,v,h){var a=h(0),o={getSubTreeSep:function(){return 0}};d.exports=function(n,t){t===void 0&&(t={}),t=a.assign({},o,t),n.parent={x:0,width:0,height:0,y:0},n.BFTraverse(function(e){e.x=e.parent.x+e.parent.width}),n.parent=null,function e(r,i){var u=0;return r.children.length?r.children.forEach(function(c){u+=e(c,i)}):u=r.height,r._subTreeSep=i.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,u)+2*r._subTreeSep,r.totalHeight}(n,t),n.startY=0,n.y=n.totalHeight/2-n.height/2,n.eachNode(function(e){var r=e.children,i=r.length;if(i){var u=r[0];if(u.startY=e.startY+e._subTreeSep,i===1)u.y=e.y+e.height/2-u.height/2;else{u.y=u.startY+u.totalHeight/2-u.height/2;for(var c=1;cr.height)r.y=c.y+l/2-r.height/2;else if(i.length!==1||r.height>f){var g=r.y+(r.height-l)/2-c.y;i.forEach(function(y){y.translate(0,g)})}else r.y=(c.y+c.height/2+s.y+s.height/2)/2-r.height/2}}(n)}}])})},function(P,b,p){var d=p(26),v=function(){var h=a.prototype;function a(o){var n=this.getDefaultCfg();d.mix(this,n,o),this._init()}return h.getDefaultCfg=function(){return{}},h._init=function(){},h.destroy=function(){},a}();P.exports=v},function(P,b,p){var d=p(19),v=p(613),h=p(612),a=p(640),o=p(639),n=d.vec3,t=d.mat3,e=["m","l","c","a","q","h","v","t","s","z"];function r(f,g,y){return{x:y.x+f,y:y.y+g}}function i(f,g){return{x:g.x+(g.x-f.x),y:g.y+(g.y-f.y)}}function u(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function c(f,g){return(f[0]*g[0]+f[1]*g[1])/(u(f)*u(g))}function s(f,g){return(f[0]*g[1]=0,A=O?m.toUpperCase():m,E=g,_=y.endPoint,C=E[1],k=E[2];switch(A){default:break;case"M":S=O?r(C,k,_):{x:C,y:k},this.command="M",this.params=[_,S],this.subStart=S,this.endPoint=S;break;case"L":S=O?r(C,k,_):{x:C,y:k},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"H":S=O?r(C,0,_):{x:C,y:_.y},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"V":S=O?r(0,C,_):{x:_.x,y:C},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"Q":O?(x=r(C,k,_),w=r(E[3],E[4],_)):(x={x:C,y:k},w={x:E[3],y:E[4]}),this.command="Q",this.params=[_,x,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-x.x,w.y-x.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]};break;case"T":w=O?r(C,k,_):{x:C,y:k},y.command==="Q"?(x=i(y.params[1],_),this.command="Q",this.params=[_,x,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-x.x,w.y-x.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]}):(this.command="TL",this.params=[_,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-_.x,w.y-_.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"C":O?(x=r(C,k,_),w=r(E[3],E[4],_),M=r(E[5],E[6],_)):(x={x:C,y:k},w={x:E[3],y:E[4]},M={x:E[5],y:E[6]}),this.command="C",this.params=[_,x,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]};break;case"S":O?(w=r(C,k,_),M=r(E[3],E[4],_)):(w={x:C,y:k},M={x:E[3],y:E[4]}),y.command==="C"?(x=i(y.params[2],_),this.command="C",this.params=[_,x,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-x.x,_.y-x.y]}):(this.command="SQ",this.params=[_,w,M],this.subStart=y.subStart,this.endPoint=M,this.endTangent=function(){return[M.x-w.x,M.y-w.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"A":var T=C,I=k,D=E[3],R=E[4],j=E[5];S=O?r(E[6],E[7],_):{x:E[6],y:E[7]},this.command="A";var B=function(J,nt,at,W,q,Q,it){var Y=d.mod(d.toRadian(it),2*Math.PI),N=J.x,L=J.y,G=nt.x,H=nt.y,F=Math.cos(Y)*(N-G)/2+Math.sin(Y)*(L-H)/2,$=-1*Math.sin(Y)*(N-G)/2+Math.cos(Y)*(L-H)/2,st=F*F/(q*q)+$*$/(Q*Q);st>1&&(q*=Math.sqrt(st),Q*=Math.sqrt(st));var ot=q*q*($*$)+Q*Q*(F*F),ct=Math.sqrt((q*q*(Q*Q)-ot)/ot);at===W&&(ct*=-1),isNaN(ct)&&(ct=0);var ht=ct*q*$/Q,pt=ct*-Q*F/q,Z=(N+G)/2+Math.cos(Y)*ht-Math.sin(Y)*pt,z=(L+H)/2+Math.sin(Y)*ht+Math.cos(Y)*pt,lt=s([1,0],[(F-ht)/q,($-pt)/Q]),rt=[(F-ht)/q,($-pt)/Q],gt=[(-1*F-ht)/q,(-1*$-pt)/Q],mt=s(rt,gt);return c(rt,gt)<=-1&&(mt=Math.PI),c(rt,gt)>=1&&(mt=0),W===0&&mt>0&&(mt-=2*Math.PI),W===1&&mt<0&&(mt+=2*Math.PI),[J,Z,z,q,Q,lt,mt,Y,W]}(_,S,R,j,T,I,D);this.params=B;var X=y.subStart;this.subStart=X,this.endPoint=S;var et=B[5]%(2*Math.PI);d.isNumberEqual(et,2*Math.PI)&&(et=0);var K=B[6]%(2*Math.PI);d.isNumberEqual(K,2*Math.PI)&&(K=0);var tt=.001;this.startTangent=function(){j===0&&(tt*=-1);var J=B[3]*Math.cos(et-tt)+B[1],nt=B[4]*Math.sin(et-tt)+B[2];return[J-X.x,nt-X.y]},this.endTangent=function(){var J=B[6];J-2*Math.PI<1e-4&&(J=0);var nt=B[3]*Math.cos(et+J+tt)+B[1],at=B[4]*Math.sin(et+J-tt)+B[2];return[_.x-nt,_.y-at]};break;case"Z":this.command="Z",this.params=[_,y.subStart],this.subStart=y.subStart,this.endPoint=y.subStart}},isInside:function(g,y,m){var x=this.command,w=this.params,M=this.box;if(M&&!v.box(M.minX,M.maxX,M.minY,M.maxY,g,y))return!1;switch(x){default:break;case"M":return!1;case"TL":case"L":case"Z":return v.line(w[0].x,w[0].y,w[1].x,w[1].y,m,g,y);case"SQ":case"Q":return v.quadraticline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,m,g,y);case"C":return v.cubicline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,w[3].x,w[3].y,m,g,y);case"A":var S=w,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],D=E>_?E:_,R=E>_?1:E/_,j=E>_?_/E:1;S=[g,y,1];var B=[1,0,0,0,1,0,0,0,1];return t.translate(B,B,[-O,-A]),t.rotate(B,B,-T),t.scale(B,B,[1/R,1/j]),n.transformMat3(S,S,B),v.arcline(0,0,D,C,C+k,1-I,m,S[0],S[1])}return!1},draw:function(g){var y,m,x,w=this.command,M=this.params;switch(w){default:break;case"M":g.moveTo(M[1].x,M[1].y);break;case"TL":case"L":g.lineTo(M[1].x,M[1].y);break;case"SQ":case"Q":y=M[1],m=M[2],g.quadraticCurveTo(y.x,y.y,m.x,m.y);break;case"C":y=M[1],m=M[2],x=M[3],g.bezierCurveTo(y.x,y.y,m.x,m.y,x.x,x.y);break;case"A":var S=M,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],D=E>_?E:_,R=E>_?1:E/_,j=E>_?_/E:1;g.translate(O,A),g.rotate(T),g.scale(R,j),g.arc(0,0,D,C,C+k,1-I),g.scale(1/R,1/j),g.rotate(-T),g.translate(-O,-A);break;case"Z":g.closePath()}},getBBox:function(g){var y,m,x,w,M=g/2,S=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(S[0].x,S[1].x)-M,maxX:Math.max(S[0].x,S[1].x)+M,minY:Math.min(S[0].y,S[1].y)-M,maxY:Math.max(S[0].y,S[1].y)+M};break;case"SQ":case"Q":for(x=0,w=(m=a.extrema(S[0].x,S[1].x,S[2].x)).length;xet&&(et=J)}var nt=o.yExtrema(I,_,C),at=1/0,W=-1/0,q=[R,j];for(x=2*-Math.PI;x<=2*Math.PI;x+=Math.PI){var Q=nt+x;D===1?RW&&(W=it)}this.box={minX:X-M,maxX:et+M,minY:at-M,maxY:W+M}}}}),P.exports=l},function(P,b,p){var d=p(593),v=p(600),h=Math.PI,a=Math.sin,o=Math.cos,n=Math.atan2,t=10,e=h/3;function r(u,c,s,l,f,g,y){var m,x,w,M,S,O,A;if(!c.fill){var E=c.arrowLength||t,_=c.arrowAngle?c.arrowAngle*h/180:e;A=n(l-g,s-f),S=Math.abs(c.lineWidth*o(A))/2,O=Math.abs(c.lineWidth*a(A))/2,y&&(S=-S,O=-O),m=f+E*o(A+_/2),x=g+E*a(A+_/2),w=f+E*o(A-_/2),M=g+E*a(A-_/2),u.beginPath(),u.moveTo(m-S,x-O),u.lineTo(f-S,g-O),u.lineTo(w-S,M-O),u.moveTo(f-S,g-O),u.lineTo(f+S,g+O),u.moveTo(f,g),u.stroke()}}function i(u,c,s,l,f,g,y){var m=y?c.startArrow:c.endArrow,x=m.d,w=0,M=f-s,S=g-l,O=Math.atan(M/S);S===0&&M<0?w=Math.PI:M>0&&S>0?w=Math.PI/2-O:M<0&&S<0?w=-Math.PI/2-O:M>=0&&S<0?w=-O-Math.PI/2:M<=0&&S>0&&(w=Math.PI/2-O);var A=function(_){var C,k=[],T=d.parsePath(_.path);if(!Array.isArray(T)||T.length===0||T[0][0]!=="M"&&T[0][0]!=="m")return!1;for(var I=T.length,D=0;De&&(i=2*Math.PI-n+t,u=n-e):(i=n-t,u=e-n),i>u?e:t}function a(n,t,e,r){var i=0;return e-t>=2*Math.PI&&(i=2*Math.PI),t=d.mod(t,2*Math.PI),e=d.mod(e,2*Math.PI)+i,n=d.mod(n,2*Math.PI),r?t>=e?n>e&&ne?n:h(n,t,e):t<=e?tt||nS.x&&(m=S.x),xS.y&&(w=S.y),M-1}},function(P,b){function p(d,v){for(var h in v)v.hasOwnProperty(h)&&h!=="constructor"&&v[h]!==void 0&&(d[h]=v[h])}P.exports=function(d,v,h,a){return v&&p(d,v),h&&p(d,h),a&&p(d,a),d}},,function(P,b,p){var d=p(26),v=function(){function h(o){d.mix(this,{id:"",type:null,model:{},group:null,animate:!1,modelCache:{},isItem:!0,visible:!0},o),this._init()}var a=h.prototype;return a._init=function(){this._initGroup(),this.draw()},a._mapping=function(){var o=this.mapper,n=this.model;o.mapping(n)},a._initGroup=function(){var o=this.group,n=this.model,t=this.type;o.isItemContainer=!0,o.id=n.id,o.itemType=t,o.model=n,o.item=this},a._calculateBBox=function(){var o=this.keyShape,n=this.group,t=d.getBBox(o,n);return t.width=t.maxX-t.minX,t.height=t.maxY-t.minY,t.centerX=(t.minX+t.maxX)/2,t.centerY=(t.minY+t.maxY)/2,t},a.getLabel=function(){return this.group.findByClass("label")[0]},a.getGraph=function(){return this.graph},a._setShapeObj=function(){var o=this.graph,n=this.type,t=this.getModel();this.shapeObj=o.getShapeObj(n,t)},a._afterDraw=function(){var o=this.graph;this._setGId(),this._cacheModel(),o.emit("afteritemdraw",{item:this})},a._cacheModel=function(){this.modelCache=d.mix({},this.model)},a._setGId=function(){var o=this.group,n=this.id,t=this.type;o.gid=n,o.deepEach(function(e,r,i){var u=r.gid;if(e.id=n,e.eventPreFix=t,e.gid=u+"-"+i,e.isShape){var c=e.get("type");e.gid+="-"+c}})},a._beforeDraw=function(){var o=this.graph,n=this.group;o.emit("beforeitemdraw",{item:this}),n.resetMatrix(),this.updateCollapsedParent()},a._shouldDraw=function(){return!0},a._getDiff=function(){var o=[],n=this.model,t=this.modelCache;return d.each(n,function(e,r){d.isEqual(e,t[r])||o.push(r)}),o.length!==0&&o},a._drawInner=function(){var o=this.animate;this.group.clear(!o),this._mapping(),this._setShapeObj();var n=this.shapeObj,t=n.draw(this);t&&(t.isKeyShape=!0,this.keyShape=t),n.afterDraw&&n.afterDraw(this)},a.deepEach=function(o,n){d.traverseTree(this,o,n||function(t){return t.getChildren()})},a.getShapeObj=function(){return this.shapeObj},a.updateCollapsedParent=function(){var o=this.dataMap;this.collapsedParent=function n(t,e){var r=e[t.parent];if(!r)return!1;if(r){var i=n(r,e);if(i)return i}return r.collapsed?r:void 0}(this.model,o)},a.isVisible=function(){return this.visible},a.hide=function(){var o=this.group,n=this.graph;n.emit("beforeitemhide",{item:this}),o.hide(),this.visible=!1,n.emit("afteritemhide",{item:this})},a.show=function(){var o=this.group,n=this.graph;n.emit("beforeitemshow",{item:this}),o.show(),this.visible=!0,n.emit("afteritemshow",{item:this})},a.draw=function(){this._beforeDraw(),this._shouldDraw()&&this._drawInner(),this._afterDraw()},a.forceUpdate=function(){this._beforeDraw(),this._drawInner(),this._afterDraw()},a.getCenter=function(){var o=this.getBBox();return{x:o.centerX,y:o.centerY}},a.getBBox=function(){return this.bbox||this._calculateBBox()},a.layoutUpdate=function(){this.isVisible()&&this.draw()},a.update=function(){this.draw()},a.getModel=function(){return this.model},a.getKeyShape=function(){return this.keyShape},a.getGraphicGroup=function(){return this.group},a.getHierarchy=function(){return this.graph.getHierarchy(this)},a.getParent=function(){var o=this.model;return this.itemMap[o.parent]},a.getAllParents=function(){for(var o=this.model,n=this.itemMap,t=[],e=o.parent;e&&n[e];){var r=n[e],i=r.getModel();t.push(r),e=i.parent}return t},a.getAllChildren=function(){var o=[];return this.deepEach(function(n){o.push(n)}),o},a.getChildren=function(){var o=this.id;return this.graph.getItems().filter(function(n){return n.model.parent===o})},a.toFront=function(){this.group.toFront()},a.toBack=function(){this.group.toBack()},a.destroy=function(){if(!this.destroyed){var o=this.animate,n=this.graph;n.emit("beforeitemdestroy",{item:this}),this.group.remove(!o),this.destroyed=!0,n.emit("afteritemdestroy",{item:this})}},h}();P.exports=v},function(P,b){P.exports="2.2.6"},function(P,b,p){var d=p(644),v=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,h=new RegExp("([a-z])["+v+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+v+"]*,?["+v+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+v+"]*,?["+v+"]*","ig"),o=function(I){if(!I)return null;if(typeof I==typeof[])return I;var D={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},R=[];return String(I).replace(h,function(j,B,X){var et=[],K=B.toLowerCase();if(X.replace(a,function(tt,J){J&&et.push(+J)}),K==="m"&&et.length>2&&(R.push([B].concat(et.splice(0,2))),K="l",B=B==="m"?"l":"L"),K==="o"&&et.length===1&&R.push([B,et[0]]),K==="r")R.push([B].concat(et));else for(;et.length>=D[K]&&(R.push([B].concat(et.splice(0,D[K]))),D[K]););}),R},n=function(I,D){for(var R=[],j=0,B=I.length;B-2*!D>j;j+=2){var X=[{x:+I[j-2],y:+I[j-1]},{x:+I[j],y:+I[j+1]},{x:+I[j+2],y:+I[j+3]},{x:+I[j+4],y:+I[j+5]}];D?j?B-4===j?X[3]={x:+I[0],y:+I[1]}:B-2===j&&(X[2]={x:+I[0],y:+I[1]},X[3]={x:+I[2],y:+I[3]}):X[0]={x:+I[B-2],y:+I[B-1]}:B-4===j?X[3]=X[2]:j||(X[0]={x:+I[j],y:+I[j+1]}),R.push(["C",(-X[0].x+6*X[1].x+X[2].x)/6,(-X[0].y+6*X[1].y+X[2].y)/6,(X[1].x+6*X[2].x-X[3].x)/6,(X[1].y+6*X[2].y-X[3].y)/6,X[2].x,X[2].y])}return R},t=function(I,D,R,j,B){var X=[];if(B===null&&j===null&&(j=R),I=+I,D=+D,R=+R,j=+j,B!==null){var et=Math.PI/180,K=I+R*Math.cos(-j*et),tt=I+R*Math.cos(-B*et);X=[["M",K,D+R*Math.sin(-j*et)],["A",R,R,0,+(B-j>180),0,tt,D+R*Math.sin(-B*et)]]}else X=[["M",I,D],["m",0,-j],["a",R,j,0,1,1,0,2*j],["a",R,j,0,1,1,0,-2*j],["z"]];return X},e=function(I){if(!(I=o(I))||!I.length)return[["M",0,0]];var D,R,j=[],B=0,X=0,et=0,K=0,tt=0;I[0][0]==="M"&&(et=B=+I[0][1],K=X=+I[0][2],tt++,j[0]=["M",B,X]);for(var J,nt,at=I.length===3&&I[0][0]==="M"&&I[1][0].toUpperCase()==="R"&&I[2][0].toUpperCase()==="Z",W=tt,q=I.length;W1&&(Z*=Xt=Math.sqrt(Xt),z*=Xt);var Ht=Z*Z,Ut=z*z,Wt=(rt===gt?-1:1)*Math.sqrt(Math.abs((Ht*Ut-Ht*It*It-Ut*kt*kt)/(Ht*It*It+Ut*kt*kt)));Et=Wt*Z*It/z+(ht+mt)/2,Pt=Wt*-z*kt/Z+(pt+St)/2,yt=Math.asin(((pt-Pt)/z).toFixed(9)),wt=Math.asin(((St-Pt)/z).toFixed(9)),yt=htwt&&(yt-=2*Math.PI),!gt&&wt>yt&&(wt-=2*Math.PI)}var Zt=wt-yt;if(Math.abs(Zt)>At){var re=wt,ie=mt,oe=St;wt=yt+At*(gt&&wt>yt?1:-1),Tt=ct(mt=Et+Z*Math.cos(wt),St=Pt+z*Math.sin(wt),Z,z,lt,0,gt,ie,oe,[wt,re,Et,Pt])}Zt=wt-yt;var zt=Math.cos(yt),Gt=Math.sin(yt),ae=Math.cos(wt),se=Math.sin(wt),Vt=Math.tan(Zt/4),Kt=4/3*Z*Vt,$t=4/3*z*Vt,Qt=[ht,pt],Lt=[ht+Kt*Gt,pt-$t*zt],Jt=[mt+Kt*se,St-$t*ae],qt=[mt,St];if(Lt[0]=2*Qt[0]-Lt[0],Lt[1]=2*Qt[1]-Lt[1],Mt)return[Lt,Jt,qt].concat(Tt);for(var te=[],Bt=0,ue=(Tt=[Lt,Jt,qt].concat(Tt).join().split(",")).length;Bt7){H[F].shift();for(var $=H[F];$.length;)K[F]="A",B&&(tt[F]="A"),H.splice(F++,0,["C"].concat($.splice(0,6)));H.splice(F,1),R=Math.max(j.length,B&&B.length||0)}},q=function(H,F,$,st,ot){H&&F&&H[ot][0]==="M"&&F[ot][0]!=="M"&&(F.splice(ot,0,["M",st.x,st.y]),$.bx=0,$.by=0,$.x=H[ot][1],$.y=H[ot][2],R=Math.max(j.length,B&&B.length||0))};R=Math.max(j.length,B&&B.length||0);for(var Q=0;Q1?1:tt<0?0:tt)/2,nt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],at=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],W=0,q=0;q<12;q++){var Q=J*nt[q]+J,it=l(Q,I,R,B,et),Y=l(Q,D,j,X,K),N=it*it+Y*Y;W+=at[q]*Math.sqrt(N)}return J*W},g=function(I,D,R,j,B,X,et,K){if(!(Math.max(I,R)Math.max(B,et)||Math.max(D,j)Math.max(X,K))){var tt=(I-R)*(X-K)-(D-j)*(B-et);if(tt){var J=((I*j-D*R)*(B-et)-(I-R)*(B*K-X*et))/tt,nt=((I*j-D*R)*(X-K)-(D-j)*(B*K-X*et))/tt,at=+J.toFixed(2),W=+nt.toFixed(2);if(!(at<+Math.min(I,R).toFixed(2)||at>+Math.max(I,R).toFixed(2)||at<+Math.min(B,et).toFixed(2)||at>+Math.max(B,et).toFixed(2)||W<+Math.min(D,j).toFixed(2)||W>+Math.max(D,j).toFixed(2)||W<+Math.min(X,K).toFixed(2)||W>+Math.max(X,K).toFixed(2)))return{x:J,y:nt}}}},y=function(I,D,R){return D>=I.x&&D<=I.x+I.width&&R>=I.y&&R<=I.y+I.height},m=function(I,D,R,j,B){if(B)return[["M",+I+ +B,D],["l",R-2*B,0],["a",B,B,0,0,1,B,B],["l",0,j-2*B],["a",B,B,0,0,1,-B,B],["l",2*B-R,0],["a",B,B,0,0,1,-B,-B],["l",0,2*B-j],["a",B,B,0,0,1,B,-B],["z"]];var X=[["M",I,D],["l",R,0],["l",0,j],["l",-R,0],["z"]];return X.parsePathArray=s,X},x=function(I,D,R,j){return I===null&&(I=D=R=j=0),D===null&&(D=I.y,R=I.width,j=I.height,I=I.x),{x:I,y:D,width:R,w:R,height:j,h:j,x2:I+R,y2:D+j,cx:I+R/2,cy:D+j/2,r1:Math.min(R,j)/2,r2:Math.max(R,j)/2,r0:Math.sqrt(R*R+j*j)/2,path:m(I,D,R,j),vb:[I,D,R,j].join(" ")}},w=function(I,D,R,j,B,X,et,K){d.isArray(I)||(I=[I,D,R,j,B,X,et,K]);var tt=function(J,nt,at,W,q,Q,it,Y){for(var N,L,G,H,F=[],$=[[],[]],st=0;st<2;++st)if(st===0?(L=6*J-12*at+6*q,N=-3*J+9*at-9*q+3*it,G=3*at-3*J):(L=6*nt-12*W+6*Q,N=-3*nt+9*W-9*Q+3*Y,G=3*W-3*nt),Math.abs(N)<1e-12){if(Math.abs(L)<1e-12)continue;(H=-G/L)>0&&H<1&&F.push(H)}else{var ot=L*L-4*G*N,ct=Math.sqrt(ot);if(!(ot<0)){var ht=(-L+ct)/(2*N);ht>0&&ht<1&&F.push(ht);var pt=(-L-ct)/(2*N);pt>0&&pt<1&&F.push(pt)}}for(var Z,z=F.length,lt=z;z--;)Z=1-(H=F[z]),$[0][z]=Z*Z*Z*J+3*Z*Z*H*at+3*Z*H*H*q+H*H*H*it,$[1][z]=Z*Z*Z*nt+3*Z*Z*H*W+3*Z*H*H*Q+H*H*H*Y;return $[0][lt]=J,$[1][lt]=nt,$[0][lt+1]=it,$[1][lt+1]=Y,$[0].length=$[1].length=lt+2,{min:{x:Math.min.apply(0,$[0]),y:Math.min.apply(0,$[1])},max:{x:Math.max.apply(0,$[0]),y:Math.max.apply(0,$[1])}}}.apply(null,I);return x(tt.min.x,tt.min.y,tt.max.x-tt.min.x,tt.max.y-tt.min.y)},M=function(I,D,R,j,B,X,et,K,tt){var J=1-tt,nt=Math.pow(J,3),at=Math.pow(J,2),W=tt*tt,q=W*tt,Q=I+2*tt*(R-I)+W*(B-2*R+I),it=D+2*tt*(j-D)+W*(X-2*j+D),Y=R+2*tt*(B-R)+W*(et-2*B+R),N=j+2*tt*(X-j)+W*(K-2*X+j);return{x:nt*I+3*at*tt*R+3*J*tt*tt*B+q*et,y:nt*D+3*at*tt*j+3*J*tt*tt*X+q*K,m:{x:Q,y:it},n:{x:Y,y:N},start:{x:J*I+tt*R,y:J*D+tt*j},end:{x:J*B+tt*et,y:J*X+tt*K},alpha:90-180*Math.atan2(Q-Y,it-N)/Math.PI}},S=function(I,D,R){if(!function(ot,ct){return ot=x(ot),ct=x(ct),y(ct,ot.x,ot.y)||y(ct,ot.x2,ot.y)||y(ct,ot.x,ot.y2)||y(ct,ot.x2,ot.y2)||y(ot,ct.x,ct.y)||y(ot,ct.x2,ct.y)||y(ot,ct.x,ct.y2)||y(ot,ct.x2,ct.y2)||(ot.xct.x||ct.xot.x)&&(ot.yct.y||ct.yot.y)}(w(I),w(D)))return R?0:[];for(var j=~~(f.apply(0,I)/8),B=~~(f.apply(0,D)/8),X=[],et=[],K={},tt=R?0:[],J=0;J=0&&$<=1&&st>=0&&st<=1&&(R?tt++:tt.push({x:F.x,y:F.y,t1:$,t2:st}))}}return tt};function O(T,I){var D=[],R=[];return T.length&&function j(B,X){if(B.length===1)D.push(B[0]),R.push(B[0]);else{for(var et=[],K=0;K=3&&(it.length===3&&Y.push("Q"),Y=Y.concat(it[1])),it.length===2&&Y.push("L"),Y=Y.concat(it[it.length-1])})}(I,D,R));else{var B=[].concat(I);B[0]==="M"&&(B[0]="L");for(var X=0;X<=R-1;X++)j.push(B)}return j},E=function(I,D){if(I.length!==D.length)return!1;var R=!0;return d.each(I,function(j,B){if(j!==D[B])return R=!1,!1}),R};function _(T,I,D){var R=null,j=D;return I=0;at--)et=X[at].index,X[at].type==="add"?I.splice(et,0,[].concat(I[et])):I.splice(et,1)}var W=B-(j=I.length);if(j0)){I[j]=D[j];break}R=C(R,I[j-1],1)}I[j]=["Q"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;case"T":I[j]=["T"].concat(R[0]);break;case"C":if(R.length<3){if(!(j>0)){I[j]=D[j];break}R=C(R,I[j-1],2)}I[j]=["C"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;case"S":if(R.length<2){if(!(j>0)){I[j]=D[j];break}R=C(R,I[j-1],1)}I[j]=["S"].concat(R.reduce(function(B,X){return B.concat(X)},[]));break;default:I[j]=D[j]}return I},intersection:function(I,D){return function(R,j,B){var X,et,K,tt,J,nt,at,W,q,Q;R=u(R),j=u(j);for(var it=B?0:[],Y=0,N=R.length;Y=0&&w<_?(y=O,_=w):(S=[h(n,e,i,c,A),h(t,r,u,s,A)],M=v.squaredDistance(C,S),A<=1&&M<_?(y=A,_=M):E*=.5);return g&&(g.x=h(n,e,i,c,y),g.y=h(t,r,u,s,y)),Math.sqrt(_)}function o(n,t,e,r,i){return n*(n*(-3*t+9*e-9*r+3*i)+6*t-12*e+6*r)-3*t+3*e}P.exports={at:h,derivativeAt:function(t,e,r,i,u){var c=1-u;return 3*(((e-t)*c+2*(r-e)*u)*c+(i-r)*u*u)},projectPoint:function(t,e,r,i,u,c,s,l,f,g){var y={};return a(t,e,r,i,u,c,s,l,f,g,y),y},pointDistance:a,extrema:function(t,e,r,i){var u,c,s,l=3*t-9*e+9*r-3*i,f=6*e-12*r+6*i,g=3*r-3*i,y=[];if(d.isNumberEqual(l,0))d.isNumberEqual(f,0)||(u=-g/f)>=0&&u<=1&&y.push(u);else{var m=f*f-4*l*g;d.isNumberEqual(m,0)?y.push(-f/(2*l)):m>0&&(c=(-f-(s=Math.sqrt(m)))/(2*l),(u=(-f+s)/(2*l))>=0&&u<=1&&y.push(u),c>=0&&c<=1&&y.push(c))}return y},len:function(t,e,r,i,u,c,s,l,f){d.isNil(f)&&(f=1);for(var g=(f=f>1?1:f<0?0:f)/2,y=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],x=0,w=0;w<12;w++){var M=g*y[w]+g,S=o(M,t,r,u,s),O=o(M,e,i,c,l),A=S*S+O*O;x+=m[w]*Math.sqrt(A)}return g*x}}},function(P,b,p){var d=p(603),v=p(640),h=p(612),a=p(602);P.exports={line:function(n,t,e,r,i,u,c){var s=d.box(n,t,e,r,i);if(!this.box(s.minX,s.maxX,s.minY,s.maxY,u,c))return!1;var l=d.pointDistance(n,t,e,r,u,c);return!isNaN(l)&&l<=i/2},polyline:function(n,t,e,r){var i=n.length-1;if(i<1)return!1;for(var u=0;uv?v:p}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};P.exports=function(d){return(d===void 0?"undefined":p(d))==="object"&&d!==null}},function(P,b,p){var d=p(46),v=p(118);P.exports=function(h,a){if(!v(h))return h;var o=[];return d(h,function(n,t){a(n,t)&&o.push(n)}),o}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};P.exports=function(d){var v=d===void 0?"undefined":p(d);return d!==null&&v==="object"||v==="function"}},function(P,b){var p=function(){function d(){}return d.prototype.execute=function(){throw new Error("please override this method")},d}();P.exports=p},function(P,b,p){P.exports={CompactBoxTree:p(688),Dendrogram:p(687),IndentedTree:p(686),Mindmap:p(685),Base:p(622)}},function(P,b,p){var d=p(26),v=function(h){function a(n){var t={type:"node",isNode:!0,zIndex:3,edges:[],linkable:!0};return d.mix(t,n),h.call(this,t)||this}(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(a,h);var o=a.prototype;return o.updatePosition=function(){var n=this.group,t=this.model;n.setMatrix([1,0,0,0,1,0,t.x?t.x:0,t.y?t.y:0,1]),this.bbox=this._calculateBBox()},o._shouldDraw=function(){var n=this._getDiff(),t=h.prototype._shouldDraw.call(this);return n&&!(n.length===2&&n.indexOf("x")!==-1&&n.indexOf("y")!==-1)&&!(n.length===1&&(n[0]==="x"||n[0]==="y"))&&t},o._afterDraw=function(){this.updatePosition(),h.prototype._afterDraw.call(this)},o.layoutUpdate=function(){this._beforeDraw(),this._afterDraw()},o.getEdges=function(){var n=this;return this.graph.getEdges().filter(function(t){var e=t.getModel();return e.source===n.id||e.target===n.id})},o.getInEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.target===n})},o.getOutEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.source===n})},o.getLinkPoints=function(n){var t=this.getAnchorPoints();if(d.isNumber(n)&&t[n])return[t[n]];var e=n.x,r=n.y,i=this.getBBox(),u=i.centerX,c=i.centerY,s=e-u,l=r-c,f=this.shapeObj,g=f.anchor||{},y=this.defaultIntersectBox,m=[];if(d.isEmpty(t)){switch(f.intersectBox||g.intersectBox||g.type||y){case"rect":m=[d.getIntersectPointRect(i,n)];break;case"path":if(this.keyShape&&this.keyShape.get("type")==="path"){var x=d.parsePathArray(["M",e,r,"L",u,c]);m=[d.intersection(x,this.keyShape.get("path"))]}break;default:m=[d.getIntersectPointCircle(e,r,i.centerX,i.centerY,Math.max(i.width,i.height)/2)]}d.isEmpty(m[0])&&(m=[{x:u,y:c}])}else m=t.map(function(w){var M=w.x-u,S=w.y-c,O=d.getArcOfVectors({x:s,y:l},{x:M,y:S});return d.mix({},w,{arc:O})}).sort(function(w,M){return w.arc-M.arc});return m},o.getAnchorPoints=function(n){var t,e=this.shapeObj,r=this.getBBox(),i=[],u=e.anchor||{};return t=d.isArray(u)?u:d.isFunction(u)?u(this):d.isFunction(u.points)?u.points(this):u.points,d.each(t,function(c,s){var l=d.mix({x:r.minX+c[0]*r.width,y:r.minY+c[1]*r.height},c[2],{index:s});i.push(l)}),this._anchorPoints=i,d.isNumber(n)?this._anchorPoints[n]:this._anchorPoints},a}(p(608));P.exports=v},function(P,b,p){function d(x,w,M){return w in x?Object.defineProperty(x,w,{value:M,enumerable:!0,configurable:!0,writable:!0}):x[w]=M,x}p(715),p(714),p(713);var v=p(712),h=p(710),a=p(683),o=p(26),n=p(706),t=p(248),e=p(704),r=p(702),i=p(700),u=p(699),c=p(697),s=p(696),l=p(695),f=p(692),g=p(691),y=[s,r,i,e,l,f,p(690),g,u,c],m=function(x){(function(S,O){S.prototype=Object.create(O.prototype),S.prototype.constructor=S,S.__proto__=O})(M,x);var w=M.prototype;function M(S){var O,A={};return y.forEach(function(E){o.mix(A,o.clone(E.CFG),S)}),(O=x.call(this,A)||this)._pluginInit(),O.emit("beforeinit"),O._init(),O.emit("afterinit"),O}return w.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,plugins:[],fontFamily:'"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\u5FAE\u8F6F\u96C5\u9ED1", SimSun, "sans-serif"',nodeDefaultShape:void 0,edgeDefaultShape:void 0,groupDefaultShape:void 0,defaultIntersectBox:"circle",renderer:"canvas",_type:"graph",_controllers:{},_timers:{},_dataMap:{},_itemMap:{},_freezMap:{},_data:{},_delayRunObj:{}}},w._init=function(){var S=this;this._initData(),this._initContainer(),this._initCanvas(),y.forEach(function(O){O.INIT&&S[O.INIT]()}),this.initEvent()},w.initEvent=function(){},w._executeLayout=function(S,O,A,E){o.isFunction(S)?S(O,A,this):o.isObject(S)&&(S.nodes=O,S.edges=A,S.groups=E,S.graph=this,S.execute())},w._pluginInit=function(){var S=this;this.get("plugins").forEach(function(O){S._initPlugin(O)})},w._initPlugin=function(S){S.graph=this,S.init&&S.init()},w._getTimer=function(S){return this.get("_timers")[S]},w._setTimer=function(S,O){this.get("_timers")[S]=O},w._getController=function(S){return this.get("_controllers")[S]},w._initContainer=function(){var S=this.get("container");S||(S=this.get("id")),S=o.initDOMContainer(S,"graph");var O=o.createDOM('
',{position:"relative"});S.appendChild(O),this.set("_containerDOM",S),this.set("_graphContainer",O)},w._initCanvas=function(){var S=this.get("_graphContainer"),O=this.get("width"),A=this.get("height"),E=this.get("fontFamily"),_=this.get("renderer"),C={width:O,height:A,fontFamily:E,renderer:_,eventEnable:!1,containerDOM:S};_==="svg"&&(C.pixelRatio=1);var k=new t.Canvas(C),T=k.get("el");T.style.top=0,T.style.left=0,T.style.overflow="hidden",this.set("_canvas",k);var I=this.getMouseEventWrapper();I.style.outline="none",I.style["user-select"]="none",I.setAttribute("tabindex",20);var D=k.addGroup(),R=D.addGroup();this.set("_itemGroup",R),this.set("_rootGroup",D)},w._initData=function(){this.set("_dataMap",{}),this.set("_itemMap",{_nodes:[],_edges:[],_groups:[],_guides:[]}),this.set("_data",{})},w._refresh=function(){},w.getKeyboardEventWrapper=function(){var S=this.get("keyboardEventWrapper");return S||this.getMouseEventWrapper()},w.getMouseEventWrapper=function(){return this.get("_canvas").get("el")},w.addPlugin=function(S){var O=this.get("plugins");this._initPlugin(S),O.push(S)},w.getGraphContainer=function(){return this.get("_graphContainer")},w._sortGroup=function(S){var O=this.get("_dataMap"),A={};S.forEach(function(E){var _=E.id,C=E.parent;for(A[_]=1;C&&O[C];)A[_]++,C=O[C].parent}),S.sort(function(E,_){return A[_.id]-A[E.id]})},w._addItems=function(S,O){var A=this;this._addDatas(S,O),S==="group"&&this._sortGroup(O);var E=o.upperFirst(S),_=h[E],C=this.get("_itemMap"),k=this.get("_itemGroup"),T=this.get("_dataMap"),I=this.get("animate"),D=this.get("defaultIntersectBox");if(!_)throw new Error("please set valid item type!");O.forEach(function(R){var j=new _({id:R.id,type:S,model:R,group:k.addGroup(),graph:A,mapper:A._getController(S+"Mapper"),itemMap:C,animate:I,dataMap:T,defaultIntersectBox:D});C[R.id]=j,C["_"+S+"s"].push(j)})},w._removeItems=function(S){var O=this.get("_dataMap"),A=this.get("_itemMap");S.forEach(function(E){delete O[E.id],delete A[E.id],o.Array.remove(A["_"+E.type+"s"],E),E.destroy()})},w._updateItems=function(S,O){S.forEach(function(A,E){var _=O[E];_&&o.mix(A.getModel(),_),A.update()})},w._getShowEdge=function(S){var O=S.getSource(),A=S.getTarget();return(O.linkable&&O.isVisible()||!O.linkable)&&(A.linkable&&A.isVisible()||!A.linkable)&&S},w._addDatas=function(S,O){var A=this.get("_dataMap");O.forEach(function(E){if(o.isNil(E.id)&&(E.id=o.guid()),A[E.id])throw new Error("id:"+E.id+" has already been set, please set new one");A[E.id]=E})},w._drawInner=function(){var S=this.get("_data"),O=this.get("_itemGroup"),A=this.get("_dataMap"),E=this.get("_itemMap");S.nodes&&this._addItems("node",S.nodes),S.groups&&this._addItems("group",S.groups),S.edges&&this._addItems("edge",S.edges),S.guides&&this._addItems("guide",S.guides),O.sortBy(function(_){var C=_.id,k=E[C],T=A[C];return T&&!o.isNil(T.index)?T.index:!k||k.destroyed||o.isNil(k.zIndex)?void 0:k.zIndex})},w._clearInner=function(){this.getItems().forEach(function(S){S&&S.destroy()})},w.preventAnimate=function(S){return this.set("_forcePreventAnimate",!0),S(),this.set("_forcePreventAnimate",!1),this},w.getShapeObj=function(S,O){if(!o.isObject(S)){var A=o.upperFirst(S),E=a[A],_=this.get(S+"DefaultShape");return E.getShape(O.shape,_)}return S.getShapeObj()},w.getSource=function(){return this.get("_sourceData")},w.parseSource=function(S){return S},w.getCanvas=function(){return this.get("_canvas")},w.getRootGroup=function(){return this.get("_rootGroup")},w.getItemGroup=function(){return this.get("_itemGroup")},w.source=function(S){return this.emit("beforesource"),this.set("_data",S),this.set("_sourceData",S),this.emit("aftersource"),this},w.render=function(){return this.emit("beforerender"),this.emit("beforedrawinner"),this._drawInner(),this.emit("afterdrawinner"),this.emit("afterrender"),this},w.reRender=function(){var S=this.get("_sourceData");return this.read(S),this},w.setCapture=function(S){this.get("_rootGroup").set("capture",S)},w.destroy=function(){this.emit("beforedestroy");var S=this.get("_canvas"),O=this.get("_graphContainer"),A=this.get("_controllers"),E=this.get("_timers"),_=this.get("_windowForceResizeEvent"),C=this.get("plugins");return o.each(E,function(k){clearTimeout(k)}),o.each(A,function(k){k.destroy()}),C.forEach(function(k){k.destroy&&k.destroy()}),S&&S.destroy(),O.destroy(),window.removeEventListener("resize",_),this.emit("afterdestroy"),x.prototype.destroy.call(this),this},w.save=function(){var S={nodes:[],edges:[],groups:[],guides:[]};return this.get("_itemGroup").get("children").forEach(function(O,A){var E=O.model;if(E){var _=O.itemType,C=o.clone(E);C.index=A,S[_+"s"].push(C)}}),S.nodes.length===0&&delete S.nodes,S.edges.length===0&&delete S.edges,S.groups.length===0&&delete S.groups,S.guides.length===0&&delete S.guides,S},w.add=function(S,O){var A=[],E={action:"add",model:O,affectedItemIds:A};this.emit("beforechange",E);var _=this.get("_itemMap");this._addItems(S,[O]);var C=_[O.id];return C.getAllParents().forEach(function(k){k.update()}),E.item=C,A.push(O.id),this.emit("afterchange",E),C},w.remove=function(S){if((S=this.getItem(S))&&!S.destroyed){var O=[],A=[],E={action:"remove",item:S,affectedItemIds:A};if(S.isNode){var _=S.getEdges();O=O.concat(_)}if(S.isGroup){var C=S.getEdges(),k=S.getAllChildren(),T=S.getCrossEdges(),I=S.getInnerEdges();O=O.concat(C,k,T,I),O=o.uniq(O)}O.push(S);var D=S.getAllParents();return D.forEach(function(R){A.push(R.id)}),O.forEach(function(R){A.push(R.id)}),this.emit("beforechange",E),this._removeItems(O),D.forEach(function(R){R.update()}),this.emit("afterchange",E),this}},w.simpleUpdate=function(S,O){return this._updateItems([S],[O]),this.draw(),this},w.update=function(S,O){var A=this.get("_itemMap");if((S=this.getItem(S))&&!S.destroyed&&O){var E=this.get("animate"),_=[],C=[],k=[],T=S.getModel(),I=o.mix({},T),D={action:"update",item:S,originModel:I,updateModel:O,affectedItemIds:k},R=A[I.parent];if(_.push(S),C.push(O),k.push(S.id),R&&R!==parent&&o.isGroup(R)&&S.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),O.parent){var j=A[O.parent];if(!j)throw new Error("there is no "+O.parent+" exist, please add a new one!");_.push(j),C.push(null),k.push(j.id),j.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})}return(S.isNode||S.isGroup)&&S.getEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),S.isGroup&&!o.isNil(O.collapsed)&&(E&&S.deepEach(function(B){k.push(B.id)}),S.getCrossEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})),this.emit("beforechange",D),this._updateItems(_,C),this.emit("afterchange",D),this}},w.read=function(S){var O=this;if(!S)throw new Error("please read valid data!");var A={action:"changeData",data:S};return this.emit("beforechange",A),this.preventAnimate(function(){O.clear(),O.source(S),O.render()}),this.emit("afterchange",A),this},w.clear=function(){return this.emit("beforeclear"),this._clearInner(),this._initData(),this.emit("afterclear"),this},w.hide=function(S){var O=[],A=[],E={item:S=this.getItem(S),affectedItemIds:A};return O.push(S),S.isNode&&S.getEdges().forEach(function(_){O.push(_)}),S.isGroup&&(S.getEdges().forEach(function(_){O.push(_)}),S.deepEach(function(_){O.push(_)})),(O=o.uniq(O)).forEach(function(_){A.push(_.id)}),this.emit("beforehide",E),O.forEach(function(_){_.hide()}),this.emit("afterhide",E),this},w.show=function(S){var O=this,A=[],E=[],_={item:S=this.getItem(S),affectedItemIds:E};if(S.visible=!0,S.isEdge){var C=this._getShowEdge(S);C&&A.push(C)}else A.push(S);return S.isNode&&S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.isGroup&&(S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.deepEach(function(k){A.push(k)})),(A=o.uniq(A)).forEach(function(k){E.push(k.id)}),this.emit("beforeshow",_),A.forEach(function(k){k.show()}),this.emit("aftershow",_),this},w.getWidth=function(){return this.get("width")},w.getHeight=function(){return this.get("height")},w.changeSize=function(S,O){if(!(Math.abs(S)>=1/0||Math.abs(O)>=1/0)){var A=this.get("_canvas");return S===this.get("width")&&O===this.get("height")||(this.emit("beforechangesize"),A.changeSize(S,O),this.set("width",S),this.set("height",O),this.emit("afterchangesize"),this.draw()),this}console.warn("size parameter more than the maximum")},w.toFront=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toFront(A,O),this.draw()},w.toBack=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toBack(A,O),this.draw()},w.css=function(S){var O=this.getGraphContainer();o.modifyCSS(O,S)},w.saveImage=function(S){var O=this.getBBox(),A=this.getFitViewPadding();return new n(function(E){for(var _=1;_1?t*n+this._getSpaceingY()*(n-1):t},isHitBox:function(){return!1},calculateBox:function(){var o=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),o.textArr||this._setAttrText();var t=o.x,e=o.y,r=this.measureText();if(!r)return{minX:t,minY:e,maxX:t,maxY:e};var i=this._getTextHeight(),u=o.textAlign,c=o.textBaseline,s=this.getHitLineWidth(),l={x:t,y:e-i};u&&(u==="end"||u==="right"?l.x-=r:u==="center"&&(l.x-=r/2)),c&&(c==="top"?l.y+=i:c==="middle"&&(l.y+=i/2)),this.set("startPoint",l);var f=s/2;return{minX:l.x-f,minY:l.y-f,maxX:l.x+r+f,maxY:l.y+i+f}},_getSpaceingY:function(){var o=this._attrs,n=o.lineHeight,t=1*o.fontSize;return n?n-t:.14*t},drawInner:function(o){var n=this._attrs,t=this._cfg;t.attrs&&!t.hasUpdate||(this._assembleFont(),this._setAttrText()),o.font=n.font;var e=n.text;if(e){var r=n.textArr,i=n.x,u=n.y;if(o.beginPath(),this.hasStroke()){var c=n.strokeOpacity;d.isNil(c)||c===1||(o.globalAlpha=c),r?this._drawTextArr(o,!1):o.strokeText(e,i,u),o.globalAlpha=1}if(this.hasFill()){var s=n.fillOpacity;d.isNil(s)||s===1||(o.globalAlpha=s),r?this._drawTextArr(o,!0):o.fillText(e,i,u)}t.hasUpdate=!1}},_drawTextArr:function(o,n){var t,e=this._attrs.textArr,r=this._attrs.textBaseline,i=1*this._attrs.fontSize,u=this._getSpaceingY(),c=this._attrs.x,s=this._attrs.y,l=this.getBBox(),f=l.maxY-l.minY;d.each(e,function(g,y){t=s+y*(u+i)-f+i,r==="middle"&&(t+=f-i-(f-i)/2),r==="top"&&(t+=f-i),n?o.fillText(g,c,t):o.strokeText(g,c,t)})},measureText:function(){var o,n=this._attrs,t=n.text,e=n.font,r=n.textArr,i=0;if(!d.isNil(t)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=e,r?d.each(r,function(c){o=u.measureText(c).width,ic&&(c=g),ys&&(s=y)});var l=e/2;return{minX:i-l,minY:u-l,maxX:c+l,maxY:s+l}},_setTcache:function(){var t,e,r=this._attrs.points,i=0,u=0,c=[];r&&r.length!==0&&(d.each(r,function(s,l){r[l+1]&&(i+=a.len(s[0],s[1],r[l+1][0],r[l+1][1]))}),i<=0||(d.each(r,function(s,l){r[l+1]&&((t=[])[0]=u/i,e=a.len(s[0],s[1],r[l+1][0],r[l+1][1]),u+=e,t[1]=u/i,c.push(t))}),this.tCache=c))},createPath:function(t){var e,r,i=this._attrs.points;if(!(i.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(i[0][0],i[0][1]),r=1,e=i.length-1;r=c[0]&&t<=c[1]&&(e=(t-c[0])/(c[1]-c[0]),r=s)}),{x:a.at(i[r][0],i[r+1][0],e),y:a.at(i[r][1],i[r+1][1],e)}}}),P.exports=o},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};h.ATTRS={points:null,lineWidth:1},d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs.points,n=this.getHitLineWidth();if(!o||o.length===0)return null;var t=1/0,e=1/0,r=-1/0,i=-1/0;d.each(o,function(c){var s=c[0],l=c[1];sr&&(r=s),li&&(i=l)});var u=n/2;return{minX:t-u,minY:e-u,maxX:r+u,maxY:i+u}},createPath:function(o){var n=this._attrs.points;n.length<2||((o=o||this.get("context")).beginPath(),d.each(n,function(t,e){e===0?o.moveTo(t[0],t[1]):o.lineTo(t[0],t[1])}),o.closePath())}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=p(600),a=p(593),o=p(601),n=p(610),t=p(612),e=function r(i){r.superclass.constructor.call(this,i)};e.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},d.extend(e,v),d.augment(e,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(i){if(d.isNil(i))return this.setSilent("segments",null),void this.setSilent("box",void 0);var u,c=a.parsePath(i),s=[];if(d.isArray(c)&&c.length!==0&&(c[0][0]==="M"||c[0][0]==="m")){for(var l=c.length,f=0;fs&&(s=y.maxX),y.minYf&&(f=y.maxY))}),c===1/0||l===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:c,minY:l,maxX:s,maxY:f}},_setTcache:function(){var i,u,c,s,l=0,f=0,g=[],y=this._cfg.curve;y&&(d.each(y,function(m,x){c=y[x+1],s=m.length,c&&(l+=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]))}),d.each(y,function(m,x){c=y[x+1],s=m.length,c&&((i=[])[0]=f/l,u=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]),f+=u,i[1]=f/l,g.push(i))}),this._cfg.tCache=g)},_calculateCurve:function(){var i=this._attrs.path;this._cfg.curve=n.pathTocurve(i)},getStartTangent:function(){var i,u,c,s,l=this.get("segments");if(l.length>1)if(i=l[0].endPoint,u=l[1].endPoint,c=l[1].startTangent,s=[],d.isFunction(c)){var f=c();s.push([i.x-f[0],i.y-f[1]]),s.push([i.x,i.y])}else s.push([u.x,u.y]),s.push([i.x,i.y]);return s},getEndTangent:function(){var i,u,c,s,l=this.get("segments"),f=l.length;if(f>1)if(i=l[f-2].endPoint,u=l[f-1].endPoint,c=l[f-1].endTangent,s=[],d.isFunction(c)){var g=c();s.push([u.x-g[0],u.y-g[1]]),s.push([u.x,u.y])}else s.push([i.x,i.y]),s.push([u.x,u.y]);return s},getPoint:function(i){var u,c,s=this._cfg.tCache;s||(this._calculateCurve(),this._setTcache(),s=this._cfg.tCache);var l=this._cfg.curve;if(!s)return l?{x:l[0][1],y:l[0][2]}:null;d.each(s,function(m,x){i>=m[0]&&i<=m[1]&&(u=(i-m[0])/(m[1]-m[0]),c=x)});var f=l[c];if(d.isNil(f)||d.isNil(c))return null;var g=f.length,y=l[c+1];return{x:t.at(f[g-2],y[1],y[3],y[5],1-u),y:t.at(f[g-1],y[2],y[4],y[6],1-u)}},createPath:function(i){var u=this.get("segments");if(d.isArray(u)){(i=i||this.get("context")).beginPath();for(var c=u.length,s=0;si?r:i,c=r>i?1:r/i,s=r>i?i/r:1,l=[1,0,0,0,1,0,0,0,1];d.mat3.scale(l,l,[c,s]),d.mat3.translate(l,l,[t,e]),o.beginPath(),o.save(),o.transform(l[0],l[1],l[3],l[4],l[6],l[7]),o.arc(0,0,u,0,2*Math.PI),o.restore(),o.closePath()}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.width,r=o.height,i=this.getHitLineWidth()/2;return{minX:n-i,minY:t-i,maxX:n+e+i,maxY:t+r+i}}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=function a(o){a.superclass.constructor.call(this,o)};h.ATTRS={x:0,y:0,r:0,lineWidth:1},d.extend(h,v),d.augment(h,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.r,r=this.getHitLineWidth()/2+e;return{minX:n-r,minY:t-r,maxX:n+r,maxY:t+r}},createPath:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.r;o.beginPath(),o.arc(t,e,r,0,2*Math.PI,!1),o.closePath()}}),P.exports=h},function(P,b,p){var d=p(19),v=p(58),h=p(602),a=p(601);function o(e,r,i){return e+r*Math.cos(i)}function n(e,r,i){return e+r*Math.sin(i)}var t=function e(r){e.superclass.constructor.call(this,r)};t.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},d.extend(t,v),d.augment(t,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var r=this._attrs,i=r.x,u=r.y,c=r.r,s=r.startAngle,l=r.endAngle,f=r.clockwise,g=this.getHitLineWidth()/2,y=h.box(i,u,c,s,l,f);return y.minX-=g,y.minY-=g,y.maxX+=g,y.maxY+=g,y},getStartTangent:function(){var r=this._attrs,i=r.x,u=r.y,c=r.startAngle,s=r.r,l=r.clockwise,f=Math.PI/180;l&&(f*=-1);var g=[],y=o(i,s,c+f),m=n(u,s,c+f),x=o(i,s,c),w=n(u,s,c);return g.push([y,m]),g.push([x,w]),g},getEndTangent:function(){var r=this._attrs,i=r.x,u=r.y,c=r.endAngle,s=r.r,l=r.clockwise,f=Math.PI/180,g=[];l&&(f*=-1);var y=o(i,s,c+f),m=n(u,s,c+f),x=o(i,s,c),w=n(u,s,c);return g.push([x,w]),g.push([y,m]),g},createPath:function(r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=i.startAngle,f=i.endAngle,g=i.clockwise;(r=r||self.get("context")).beginPath(),r.arc(u,c,s,l,f,g)},afterPath:function(r){var i=this._attrs;if(r=r||this.get("context"),i.startArrow){var u=this.getStartTangent();a.addStartArrow(r,i,u[0][0],u[0][1],u[1][0],u[1][1])}if(i.endArrow){var c=this.getEndTangent();a.addEndArrow(r,i,c[0][0],c[0][1],c[1][0],c[1][1])}}}),P.exports=t},function(P,b){P.exports={xAt:function(d,v,h,a,o){return v*Math.cos(d)*Math.cos(o)-h*Math.sin(d)*Math.sin(o)+a},yAt:function(d,v,h,a,o){return v*Math.sin(d)*Math.cos(o)+h*Math.cos(d)*Math.sin(o)+a},xExtrema:function(d,v,h){return Math.atan(-h/v*Math.tan(d))},yExtrema:function(d,v,h){return Math.atan(h/(v*Math.tan(d)))}}},function(P,b,p){var d=p(19),v=d.vec2;function h(o,n,t,e){var r=1-e;return r*(r*o+2*e*n)+e*e*t}function a(o,n,t,e,r,i,u,c,s){var l,f,g,y,m,x,w,M=.005,S=1/0,O=[u,c];for(m=0;m<1;m+=.05)g=[h(o,t,r,m),h(n,e,i,m)],(f=v.squaredDistance(O,g))=0&&f=0?[i]:[]}}},function(P,b,p){var d=p(19),v=p(746),h=p(745),a=p(744),o=p(116),n=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},d.assign(this._cfg,this.getDefaultCfg(),e),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};n.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},d.augment(n,v,h,o,a,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(e,r){return e==="zIndex"&&this._beforeSetZIndex&&this._beforeSetZIndex(r),e==="loading"&&this._beforeSetLoading&&this._beforeSetLoading(r),this._cfg[e]=r,this},setSilent:function(e,r){this._cfg[e]=r},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,r){var i=this._cfg,u=i.parent,c=i.el;return u&&d.remove(u.get("children"),this),c&&(r?u&&u._cfg.tobeRemoved.push(c):c.parentNode.removeChild(c)),(e||e===void 0)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,r=e.parent;if(r){var i=r._cfg.children,u=e.el,c=i.indexOf(this);i.splice(c,1),i.push(this),u&&(u.parentNode.removeChild(u),e.el=null)}},toBack:function(){var e=this._cfg,r=e.parent;if(r){var i=r._cfg.children,u=e.el,c=i.indexOf(this);if(i.splice(c,1),i.unshift(this),u){var s=u.parentNode;s.removeChild(u),s.insertBefore(u,s.firstChild)}}},_beforeSetZIndex:function(e){var r=this._cfg.parent;this._cfg.zIndex=e,d.isNil(r)||r.sort();var i=this._cfg.el;if(i){var u=r._cfg.children,c=u.indexOf(this),s=i.parentNode;s.removeChild(i),c===u.length-1?s.appendChild(i):s.insertBefore(i,s.childNodes[c])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return d.clone(this)},getBBox:function(){}}),P.exports=n},function(P,b,p){var d=p(19),v=p(641),h=p(743),a={},o="_INDEX";function n(e,r,i){for(var u,c=e.length-1;c>=0;c--){var s=e[c];if(s._cfg.visible&&s._cfg.capture&&(s.isGroup?u=s.getShape(r,i):s.isHit(r,i)&&(u=s)),u)break}return u}var t=function e(r){e.superclass.constructor.call(this,r),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};d.extend(t,v),d.augment(t,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function r(i){if(!i._cfg&&i!==t){var u=i.superclass.constructor;u&&!u._cfg&&r(u),i._cfg={},d.merge(i._cfg,u._cfg),d.merge(i._cfg,i.CFG)}}(this.constructor),d.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(r,i){var u=this.get("canvas");i=i||{};var c=a[r];if(c||(c=d.upperFirst(r),a[r]=c),i.attrs&&u){var s=i.attrs;if(r==="text"){var l=u.get("fontFamily");l&&(s.fontFamily=s.fontFamily?s.fontFamily:l)}}i.canvas=u,i.type=r;var f=new h[c](i);return this.add(f),f},addGroup:function(r,i){var u,c=this.get("canvas");if(i=d.merge({},i),d.isFunction(r))i?(i.canvas=c,i.parent=this,u=new r(i)):u=new r({canvas:c,parent:this}),this.add(u);else if(d.isObject(r))r.canvas=c,u=new t(r),this.add(u);else{if(r!==void 0)return!1;u=new t,this.add(u)}return u},renderBack:function(r,i){var u=this.get("backShape"),c=this.getBBox();return d.merge(i,{x:c.minX-r[3],y:c.minY-r[0],width:c.width+r[1]+r[3],height:c.height+r[0]+r[2]}),u?u.attr(i):u=this.addShape("rect",{zIndex:-1,attrs:i}),this.set("backShape",u),this.sort(),u},removeChild:function(r,i){if(arguments.length>=2)this.contain(r)&&r.remove(i);else{if(arguments.length===1){if(!d.isBoolean(r))return this.contain(r)&&r.remove(!0),this;i=r}arguments.length===0&&(i=!0),t.superclass.remove.call(this,i)}return this},add:function(r){var i=this,u=i.get("children");if(d.isArray(r))d.each(r,function(l){var f=l.get("parent");f&&f.removeChild(l,!1),i._setCfgProperty(l)}),i._cfg.children=u.concat(r);else{var c=r,s=c.get("parent");s&&s.removeChild(c,!1),i._setCfgProperty(c),u.push(c)}return i},_setCfgProperty:function(r){var i=this._cfg;r.set("parent",this),r.set("canvas",i.canvas),i.timeline&&r.set("timeline",i.timeline)},contain:function(r){return this.get("children").indexOf(r)>-1},getChildByIndex:function(r){return this.get("children")[r]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var r=this.get("children").length-1;return this.getChildByIndex(r)},getBBox:function(){var r=1/0,i=-1/0,u=1/0,c=-1/0,s=this.get("children");s.length>0?d.each(s,function(f){if(f.get("visible")){if(f.isGroup&&f.get("children").length===0)return;var g=f.getBBox();if(!g)return!0;var y=[g.minX,g.minY,1],m=[g.minX,g.maxY,1],x=[g.maxX,g.minY,1],w=[g.maxX,g.maxY,1];f.apply(y),f.apply(m),f.apply(x),f.apply(w);var M=Math.min(y[0],m[0],x[0],w[0]),S=Math.max(y[0],m[0],x[0],w[0]),O=Math.min(y[1],m[1],x[1],w[1]),A=Math.max(y[1],m[1],x[1],w[1]);Mi&&(i=S),Oc&&(c=A)}}):(r=0,i=0,u=0,c=0);var l={minX:r,minY:u,maxX:i,maxY:c};return l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l},getCount:function(){return this.get("children").length},sort:function(){var r=this.get("children");return d.each(r,function(i,u){return i[o]=u,i}),r.sort(function(i){return function(u,c){var s=i(u,c);return s===0?u[o]-c[o]:s}}(function(i,u){return i.get("zIndex")-u.get("zIndex")})),this},findById:function(r){return this.find(function(i){return i.get("id")===r})},find:function(r){if(d.isString(r))return this.findById(r);var i=this.get("children"),u=null;return d.each(i,function(c){if(r(c)?u=c:c.find&&(u=c.find(r)),u)return!1}),u},findAll:function(r){var i=this.get("children"),u=[],c=[];return d.each(i,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},findBy:function(r){var i=this.get("children"),u=null;return d.each(i,function(c){if(r(c)?u=c:c.findBy&&(u=c.findBy(r)),u)return!1}),u},findAllBy:function(r){var i=this.get("children"),u=[],c=[];return d.each(i,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},getShape:function(r,i){var u,c=this._attrs.clip,s=this._cfg.children;if(c){var l=[r,i,1];c.invert(l,this.get("canvas")),c.isPointInPath(l[0],l[1])&&(u=n(s,r,i))}else u=n(s,r,i);return u},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var r=this._cfg.children,i=0;i=0;u--)i[u].remove(!0,r);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),t.superclass.destroy.call(this))},clone:function(){var r=this._cfg.children,i=new t;return d.each(r,function(u){i.add(u.clone())}),i}}),P.exports=t},function(P,b,p){var d=p(19),v=function(a,o,n,t){this.type=a,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=t,this.timeStamp=new Date().getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=o};d.augment(v,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return d.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),P.exports=v},function(P,b,p){P.exports={isFunction:p(84),isObject:p(621),isBoolean:p(653),isNil:p(237),isString:p(595),isArray:p(45),isNumber:p(236),isEmpty:p(647),uniqueId:p(646),clone:p(616),deepMix:p(615),assign:p(606),merge:p(615),upperFirst:p(655),each:p(46),isEqual:p(614),toArray:p(604),extend:p(650),augment:p(651),remove:p(676),isNumberEqual:p(673),toRadian:p(669),toDegree:p(671),mod:p(672),clamp:p(618),createDom:p(681),modifyCSS:p(680),requestAnimationFrame:p(679),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:p(617),vec2:p(668),vec3:p(667),transform:p(666)}},function(P,b,p){var d=p(16),v=p(253),h=p(251),a="Expected a function",o=Math.max,n=Math.min;P.exports=function(t,e,r){var i,u,c,s,l,f,g=0,y=!1,m=!1,x=!0;if(typeof t!="function")throw new TypeError(a);function w(E){var _=i,C=u;return i=u=void 0,g=E,s=t.apply(C,_)}function M(E){var _=E-f;return f===void 0||_>=e||_<0||m&&E-g>=c}function S(){var E=v();if(M(E))return O(E);l=setTimeout(S,function(_){var C=e-(_-f);return m?n(C,c-(_-g)):C}(E))}function O(E){return l=void 0,x&&i?w(E):(i=u=void 0,s)}function A(){var E=v(),_=M(E);if(i=arguments,u=this,f=E,_){if(l===void 0)return function(C){return g=C,l=setTimeout(S,e),y?w(C):s}(f);if(m)return l=setTimeout(S,e),w(f)}return l===void 0&&(l=setTimeout(S,e)),s}return e=h(e)||0,d(r)&&(y=!!r.leading,c=(m="maxWait"in r)?o(h(r.maxWait)||0,e):c,x="trailing"in r?!!r.trailing:x),A.cancel=function(){l!==void 0&&clearTimeout(l),g=0,i=f=u=l=void 0},A.flush=function(){return l===void 0?s:O(v())},A}},function(P,b){var p=function(){var d={};return function(v){return d[v=v||"g"]?d[v]+=1:d[v]=1,v+d[v]}}();P.exports=p},function(P,b,p){var d=p(237),v=p(118),h=p(654),a=p(652),o=Object.prototype.hasOwnProperty;P.exports=function(n){if(d(n))return!0;if(v(n))return!n.length;var t=h(n);if(t==="Map"||t==="Set")return!n.size;if(a(n))return!Object.keys(n).length;for(var e in n)if(o.call(n,e))return!1;return!0}},function(P,b,p){var d=p(46),v=p(45),h=Object.prototype.hasOwnProperty;P.exports=function(a,o){if(!o||!v(a))return a;var n={},t=null;return d(a,function(e){t=o(e),h.call(n,t)?n[t].push(e):n[t]=[e]}),n}},function(P,b,p){var d=p(84),v=p(45),h=p(648);P.exports=function(a,o){if(!o)return{0:a};if(!d(o)){var n=v(o)?o:o.replace(/\s+/g,"").split("*");o=function(e){for(var r="_",i=0,u=n.length;ih;h+=2){var o=[{x:+p[h-2],y:+p[h-1]},{x:+p[h],y:+p[h+1]},{x:+p[h+2],y:+p[h+3]},{x:+p[h+4],y:+p[h+5]}];d?h?a-4===h?o[3]={x:+p[0],y:+p[1]}:a-2===h&&(o[2]={x:+p[0],y:+p[1]},o[3]={x:+p[2],y:+p[3]}):o[0]={x:+p[a-2],y:+p[a-1]}:a-4===h?o[3]=o[2]:h||(o[0]={x:+p[h],y:+p[h+1]}),v.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return v}},function(P,b){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},d=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,v=new RegExp("([a-z])["+d+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+d+"]*,?["+d+"]*)+)","ig"),h=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+d+"]*,?["+d+"]*","ig");P.exports=function(a){if(!a)return null;if((a===void 0?"undefined":p(a))===p([]))return a;var o={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(a).replace(v,function(t,e,r){var i=[],u=e.toLowerCase();if(r.replace(h,function(c,s){s&&i.push(+s)}),u==="m"&&i.length>2&&(n.push([e].concat(i.splice(0,2))),u="l",e=e==="m"?"l":"L"),u==="o"&&i.length===1&&n.push([e,i[0]]),u==="r")n.push([e].concat(i));else for(;i.length>=o[u]&&(n.push([e].concat(i.splice(0,o[u]))),o[u]););}),n}},function(P,b,p){var d=p(659),v=p(658);function h(a,o,n,t,e){var r=[];if(e===null&&t===null&&(t=n),a=+a,o=+o,n=+n,t=+t,e!==null){var i=Math.PI/180,u=a+n*Math.cos(-t*i),c=a+n*Math.cos(-e*i);r=[["M",u,o+n*Math.sin(-t*i)],["A",n,n,0,+(e-t>180),0,c,o+n*Math.sin(-e*i)]]}else r=[["M",a,o],["m",0,-t],["a",n,t,0,1,1,0,2*t],["a",n,t,0,1,1,0,-2*t],["z"]];return r}P.exports=function(a){if(!(a=d(a))||!a.length)return[["M",0,0]];var o=[],n=0,t=0,e=0,r=0,i=0,u=void 0,c=void 0;a[0][0]==="M"&&(e=n=+a[0][1],r=t=+a[0][2],i++,o[0]=["M",n,t]);for(var s,l,f=a.length===3&&a[0][0]==="M"&&a[1][0].toUpperCase()==="R"&&a[2][0].toUpperCase()==="Z",g=i,y=a.length;g1&&(R*=F=Math.sqrt(F),j*=F);var $=R*R,st=j*j,ot=(X===et?-1:1)*Math.sqrt(Math.abs(($*st-$*H*H-st*G*G)/($*H*H+st*G*G)));Y=ot*R*H/j+(I+K)/2,N=ot*-j*G/R+(D+tt)/2,Q=Math.asin(((D-N)/j).toFixed(9)),it=Math.asin(((tt-N)/j).toFixed(9)),Q=Iit&&(Q-=2*Math.PI),!et&&it>Q&&(it-=2*Math.PI)}var ct=it-Q;if(Math.abs(ct)>nt){var ht=it,pt=K,Z=tt;it=Q+nt*(et&&it>Q?1:-1),W=T(K=Y+R*Math.cos(it),tt=N+j*Math.sin(it),R,j,B,0,et,pt,Z,[it,ht,Y,N])}ct=it-Q;var z=Math.cos(Q),lt=Math.sin(Q),rt=Math.cos(it),gt=Math.sin(it),mt=Math.tan(ct/4),St=4/3*R*mt,Mt=4/3*j*mt,Ot=[I,D],yt=[I+St*lt,D-Mt*z],wt=[K+St*gt,tt-Mt*rt],Et=[K,tt];if(yt[0]=2*Ot[0]-yt[0],yt[1]=2*Ot[1]-yt[1],J)return[yt,wt,Et].concat(W);for(var Pt=[],At=0,Rt=(W=[yt,wt,Et].concat(W).join().split(",")).length;At7){A[E].shift();for(var _=A[E];_.length;)i[E]="A",t&&(u[E]="A"),A.splice(E++,0,["C"].concat(_.splice(0,6)));A.splice(E,1),l=Math.max(n.length,t&&t.length||0)}},y=function(A,E,_,C,k){A&&E&&A[k][0]==="M"&&E[k][0]!=="M"&&(E.splice(k,0,["M",C.x,C.y]),_.bx=0,_.by=0,_.x=A[k][1],_.y=A[k][2],l=Math.max(n.length,t&&t.length||0))};l=Math.max(n.length,t&&t.length||0);for(var m=0;m=0;return o?t?2*Math.PI-n:n:t?n:2*Math.PI-n},d.vertical=function(h,a,o){return o?(h[0]=a[1],h[1]=-1*a[0]):(h[0]=-1*a[1],h[1]=a[0]),h},P.exports=d},function(P,b){var p=Math.PI/180;P.exports=function(d){return p*d}},function(P,b){P.exports=parseInt},function(P,b){var p=180/Math.PI;P.exports=function(d){return p*d}},function(P,b){P.exports=function(p,d){return(p%d+d)%d}},function(P,b){P.exports=function(p,d){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-5;return Math.abs(p-d)-1;)d.call(a,e,1);return a}},function(P,b,p){var d=p(46),v=p(84),h=Object.keys?function(a){return Object.keys(a)}:function(a){var o=[];return d(a,function(n,t){v(a)&&t==="prototype"||o.push(t)}),o};P.exports=h},function(P,b,p){var d=p(677),v=p(237);P.exports=function(h,a){var o=d(a),n=o.length;if(v(h))return!n;for(var t=0;t]*>/,h={tr:document.createElement("tbody"),tbody:p,thead:p,tfoot:p,td:d,th:d,"*":document.createElement("div")};P.exports=function(a){var o=v.test(a)&&RegExp.$1;o in h||(o="*");var n=h[o];a=a.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+a;var t=n.childNodes[0];return n.removeChild(t),t}},function(P,b,p){var d=p(257),v={isBetween:function(a,o,n){return a>=o&&a<=n},getLineIntersect:function(a,o,n,t){var e=n.x-a.x,r=n.y-a.y,i=o.x-a.x,u=o.y-a.y,c=t.x-n.x,s=t.y-n.y,l=i*s-u*c,f=null;if(l*l>.001*(i*i+u*u)*(c*c+s*s)){var g=(e*s-r*c)/l,y=(e*u-r*i)/l;v.isBetween(g,0,1)&&v.isBetween(y,0,1)&&(f={x:a.x+g*i,y:a.y+g*u})}return f},getIntersectPointRect:function(a,o){var n=a.minX,t=a.minY,e=a.maxX-a.minX,r=a.maxY-a.minY,i=[],u={x:n+e/2,y:t+r/2};i.push({x:n,y:t}),i.push({x:n+e,y:t}),i.push({x:n+e,y:t+r}),i.push({x:n,y:t+r}),i.push({x:n,y:t});for(var c=null,s=1;sg&&(g=t);for(e=0;e0?(n=n.filter(function(t){var e=o[t.id];return!!e&&e.getShapeObj().bboxCalculation!==!1}),d.getChildrenBBox(n)):{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},getFitViewPadding:function(){return d.toAllPadding(this.get("fitViewPadding"))},setFitView:function(a){if(!a)return this;if(a==="autoZoom")return this.autoZoom(),this;var o=this.getFitViewPadding(),n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=e.maxX-e.minX,i=e.maxY-e.minY,u={x:0,y:0,width:n,height:t},c=d.getNineBoxPosition(a,u,r,i,o),s=[1,0,0,0,1,0,0,0,1];d.mat3.translate(s,s,[-e.minX+c.x,-e.minY+c.y]),this.updateMatrix(s)},_getZoomRatio:function(a){var o=this.get("maxZoom"),n=this.get("minZoom");return ao&&(a=o),a},autoZoom:function(a){var o=this;a||(a=this.getFitViewPadding());var n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=d.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:t},e,a,function(i){return o._getZoomRatio(i)});this.updateMatrix(r)},getZoom:function(){return this.getMatrix()[0]},updateMatrix:function(a){var o=this.getMatrix(),n={updateMatrix:a,originMatrix:o},t=o[0]!==a[0];return this.emit("beforeviewportchange",n),t&&this.emit("beforezoom",n),this.setMatrix(a),t&&this.emit("afterzoom",n),this.emit("afterviewportchange",n),this.draw(),this},zoom:function(a,o){if(!d.isNumber(a)){o=this._getZoomRatio(o);var n=this.get("_rootGroup"),t=d.clone(n.getMatrix()),e=t[6]+t[0]*a.x-o*a.x,r=t[7]+t[0]*a.y-o*a.y;return t[6]=0,t[7]=0,t[0]=o,t[4]=o,d.mat3.translate(t,t,[e,r]),this.updateMatrix(t),this}var i=this.get("width"),u=this.get("height");this.zoomByDom({x:i/2,y:u/2},a)},zoomByDom:function(a,o){var n=this.getPoint(a);return this.zoom(n,o),this},translate:function(a,o){var n=this.get("_rootGroup").getMatrix();return d.mat3.translate(n,n,[a,o]),this.updateMatrix(n),this},translateByDom:function(a,o){var n=this.get("_rootGroup").getMatrix()[0];return this.translate(a/n,o/n),this},getMatrix:function(){return this.get("_rootGroup").getMatrix()},setMatrix:function(a){this.get("_rootGroup").setMatrix(a)},getPoint:function(a){return this.getPointByDom(a)},getPointByDom:function(a){var o=this.get("_rootGroup").getMatrix();return d.invertMatrix(a,o)},getPointByCanvas:function(a){var o=this.get("_canvas").get("pixelRatio");return this.getPoint({x:a.x/o,y:a.y/o})},getPointByClient:function(a){var o=this.get("_canvas").getPointByClient(a.x,a.y);return this.getPointByCanvas(o)},getDomPoint:function(a){var o=this.get("_rootGroup").getMatrix();return d.applyMatrix(a,o)},getCanvasPoint:function(a){var o=this.get("_canvas").get("pixelRatio"),n=this.getDomPoint(a);return{x:n.x*o,y:n.y*o}},getClientPoint:function(a){var o=this.getCanvasPoint(a),n=this.get("_canvas").getClientByPoint(o.x,o.y);return{x:n.clientX,y:n.clientY}},focus:function(a){if(d.isString(a)&&(a=this.find(a)),a){var o=a.getCenter();this.focusPoint(o)}return this},focusPoint:function(a){var o=this.get("_rootGroup").getMatrix(),n=this.get("width"),t=this.get("height"),e=-o[6]+n/2-o[0]*a.x,r=-o[7]+t/2-o[0]*a.y;return this.translate(e,r),this},focusPointByDom:function(a){var o=this.getPoint(a);return this.focusPoint(o),this}},P.exports=v},function(P,b){var p={INIT:"_initDraw",AUGMENT:{_initDraw:function(){var v=this,h=this.get("_controllers").animate;["clear","show","hide","change","updatenodeposition"].forEach(function(a){h&&v.on("before"+a,function(o){var n=v.get("_forcePreventAnimate"),t=o?o.affectedItemIds:void 0;n!==!0&&h&&h.cacheGraph("startCache",t)}),v.on("after"+a,function(o){var n=o?o.affectedItemIds:void 0,t=v.get("_forcePreventAnimate");if(o&&o.action==="changeData"){var e=v.get("fitView");e&&v.setFitView(e)}t!==!0&&h?(h.cacheGraph("endCache",n),h.run()):v.draw()})})},draw:function(){this.get("_canvas").draw()},animateDraw:function(){this.get("_controllers").animate.run()}}};P.exports=p},function(P,b,p){var d=p(247);function v(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),i=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.transform([["t",-i,-u],["s",.01/c,.01/c],["t",i,u]]),e.animate({transform:[["t",-i,-u],["s",100*c,100*c],["t",i,u]]},d.enterDuration,d.enterEasing,t)}function h(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),i=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.animate({transform:[["t",-i,-u],["s",.01/c,.01/c],["t",i,u]]},d.leaveDuration,d.leaveEasing,t)}function a(n,t){n.deepEach(function(e){if(e.isShape){var r=e.attr("fillOpacity"),i=e.attr("strokeOpacity");e.attr({fillOpacity:0,strokeOpacity:0}),e.animate({fillOpacity:r,strokeOpacity:i},d.enterDuration,d.enterEasing,t)}})}function o(n,t){n.deepEach(function(e){var r=e.attr("fillOpacity"),i=e.attr("strokeOpacity");e.isShape&&e.animate({fillOpacity:0,strokeOpacity:0},d.leaveDuration,d.leaveEasing,function(){e.attr({fillOpacity:r,strokeOpacity:i}),t()})})}P.exports={enterScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&v(e)},showScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&v(e)},leaveScaleOut:function(t){var e=t.item,r=t.element,i=t.done;r.isItemContainer&&h(e,function(){i()})},hideScaleOut:function(t){var e=t.item,r=t.element,i=t.done;r.isItemContainer&&h(e,function(){i()})},enterFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&a(e)},showFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&a(e)},leaveFadeOut:function(t){var e=t.element,r=t.item,i=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,i)},hideFadeOut:function(t){var e=t.element,r=t.item,i=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,i)}}},function(P,b,p){function d(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var v=p(599),h=p(693),a=p(26),o=p(247),n=["matrix","fillStyle","strokeStyle","endArrow","startArrow"],t=function(e){function r(){return e.apply(this,arguments)||this}(function(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c})(r,e);var i=r.prototype;return i.getDefaultCfg=function(){return{show:"scaleIn",hide:"scaleOut",enter:"scaleIn",leave:"scaleOut",update:function(c){var s=c.element,l=c.endKeyFrame.props;s.animate(function(f){for(var g=1;g0&&t==="changeData"&&!a.destroyed&&a.filter()})},addFilter:function(a){return this.get("filters").push(a),a},removeFilter:function(a){var o=this.get("filters");this.set("filters",d.filter(o,a))},filter:function(){this.emit("beforefilter");var a=this.get("filters"),o=this.getItems(),n=this._getFilterItems();a.forEach(function(t){n=n.filter(t)}),o.forEach(function(t){n.indexOf(t)===-1?t.hide():t.show()}),this.draw(),this.emit("afterfilter")},_getFilterItems:function(){return this.getItems().filter(function(a){return a.getShapeObj().filter!==!1})}},P.exports=v},function(P,b,p){var d=p(26),v=p(626),h={CFG:{modes:{default:[]},mode:"default",_eventCache:{}},INIT:"_initModes"};h.AUGMENT={_initModes:function(){var o=this.get("mode");this.changeMode(o)},changeMode:function(o){var n=this.get("modes");d.isEmpty(n)||d.isEmpty(n[o])||(v.resetMode(n[o],this),this.set("mode",o))},addBehaviour:function(o,n){var t=this.get("modes");n=n||this.get("mode"),d.isEmpty(t[n])&&(t[n]=[]);var e=t[n],r=[].concat(o);return d.each(r,function(i){e.indexOf(i)===-1&&e.push(i)}),v.resetMode(t[n],this),this},removeBehaviour:function(o){var n=this.get("modes"),t=this.get("mode"),e=n[t];if(!d.isEmpty(e)){var r=[].concat(o);return e=e.filter(function(i){return r.indexOf(i)===-1}),n[t]=e,v.resetMode(e,this),this}},behaviourOn:function(o,n){var t=this._eventCache;t[o]||(t[o]=[]),t[o].push(n),this.on(o,n)},_off:function(){var o=this,n=this._eventCache;d.each(n,function(t,e){d.each(t,function(r){o.off(e,r)})}),this._eventCache={}}},P.exports=h},function(P,b,p){var d=p(599),v=p(26),h={MOUSEMOVE:"mousemove",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",CLICK:"click",DBLCLICK:"dblclick",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGLEAVE:"dragleave",DRAGEND:"dragend",DROP:"drop",CONTEXTMENU:"contextmenu",WHEEL:"wheel",KEYDOWN:"keydown",KEYUP:"keyup",KEYPRESS:"keypress",MOUSEWHEEL:"mousewheel"},a=[h.DBLCLICK,h.MOUSEDOWN,h.MOUSEUP,h.MOUSEENTER,h.MOUSELEAVE,h.MOUSEMOVE,h.CONTEXTMENU,h.WHEEL,h.MOUSEWHEEL],o=[h.KEYDOWN,h.KEYUP,h.KEYPRESS],n=function(t){function e(i){var u;return(u=t.call(this,i)||this)._domEvents=[],u._initEventStates(),u._registerEvents(),u}(function(i,u){i.prototype=Object.create(u.prototype),i.prototype.constructor=i,i.__proto__=u})(e,t);var r=e.prototype;return r._initEventStates=function(){this._pressing=!1,this._dragging=!1,this._currentEventObj={},this._dragEventObj={}},r._registerEvents=function(){this._registerMouseEvents(),this._registerKeyboardEvents()},r._registerKeyboardEvents=function(){var i=this.graph,u=i.getKeyboardEventWrapper(),c=this._domEvents,s=i.get("keyboardEnable");v.each(o,function(l){c.push(v.addEventListener(u,l,function(f){var g=!0;v.isFunction(s)&&(g=s()),g&&i.emit(l,{domEvent:f})}))})},r._registerMouseEvents=function(){var i=this,u=this,c=this.graph.getMouseEventWrapper(),s=this._domEvents;v.each(a,function(l){s.push(v.addEventListener(c,l,function(f){if(f.type!==h.MOUSEENTER||!f.fromElement||f.fromElement.parentNode&&!function(m,x){for(var w=m.parentNode;w;){if(w.tagName===x)return!0;w=w.parentNode}return!1}(f.fromElement,"foreignObject")){var g=i._currentEventObj;i._oldEventObj=g,i._processEventObj(f);var y=i._currentEventObj;u._simulateEvents(f,g,y),[h.MOUSELEAVE,h.MOUSEENTER].indexOf(f.type)!==-1&&u._triggerEvent("canvas:"+f.type),u._triggerEvent(f.type),f.type===h.MOUSELEAVE&&(i._dragging&&u._triggerEvent(h.DRAGLEAVE,v.mix({},y,{item:null,shape:null,currentItem:i._dragEventObj.item,currentShape:i._dragEventObj.shape})),u._initEventStates())}}))})},r.destroy=function(){var i=this._domEvents;v.each(i,function(u){u&&u.remove()}),this._domEvents=null},r._triggerEvent=function(i,u){if(u||(u=i==="mouseleave"?this._oldEventObj:this._currentEventObj),i==="mousedown"&&(u.button=this._button),u._type=i,this.emitGraphEvent(i,u),["canvas:"+h.MOUSELEAVE,"canvas:"+h.MOUSEENTER].indexOf(i)===-1){var c=u.shape&&u.shape.eventPreFix;if([h.DRAGSTART,h.DRAG,h.DRAGEND].indexOf(i)!==-1&&(c=u.currentShape&&u.currentShape.eventPreFix),c){var s=c+":"+i;u._type=s,v.isBoolean(u._isItemChange)?u._isItemChange&&this.emitGraphEvent(s,u):this.emitGraphEvent(s,u)}}},r.emitGraphEvent=function(i,u){this.graph.emit(i,u)},r._getDistanceToPress=function(i){return Math.pow(i.clientX-this._pressX,2)+Math.pow(i.clientY-this._pressY,2)},r._simulateEvents=function(i,u,c){u===void 0&&(u={}),c===void 0&&(c={});var s=this._dragEventObj.item,l=this._dragEventObj.shape;switch(i.type){case h.MOUSEDOWN:this._pressing=!0,this._button=i.button,this._pressX=i.clientX,this._pressY=i.clientY;break;case h.MOUSEMOVE:if(this._dragging){if(this._triggerEvent(h.DRAG,v.mix({},c,{button:this._button,currentItem:s,currentShape:l})),u.shape!==c.shape){var f=this._isItemChange(u,c);u.shape&&this._triggerEvent(h.DRAGLEAVE,v.mix({},c,{button:this._button,item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,currentItem:s,currentShape:l,_isItemChange:f})),c.shape&&this._triggerEvent(h.DRAGENTER,v.mix({},c,{button:this._button,currentItem:s,currentShape:l,fromItem:u.item,fromShape:u.shape,_isItemChange:f}))}}else this._pressing&&this._getDistanceToPress(i)>9&&(this._dragging=!0,this._dragEventObj=u,s=this._dragEventObj.item,l=this._dragEventObj.shape,this._triggerEvent(h.DRAGSTART,v.mix({},u,{button:this._button,currentItem:s,currentShape:l})));if(u.shape!==c.shape){var g=this._isItemChange(u,c);u.shape&&this._triggerEvent(h.MOUSELEAVE,v.mix({},c,{item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,_isItemChange:g})),c.shape&&this._triggerEvent(h.MOUSEENTER,v.mix({},c,{fromtItem:u.item,fromShape:u.shape,_isItemChange:g}))}break;case h.MOUSEUP:!this._dragging&&this._pressing?this._triggerEvent(h.CLICK,v.mix({},c,{button:this._button})):(this._triggerEvent(h.DROP,v.mix({},c,{button:this._button,currentItem:s,currentShape:l})),this._triggerEvent(h.DRAGEND,v.mix({},c,{button:this._button,currentItem:s,currentShape:l}))),this._pressing=!1,this._dragging=!1,this._dragEventObj={};break;default:return}},r._isItemChange=function(i,u){var c=i.shape,s=u.shape,l=c&&s&&(c.get("isItemChange")||s.get("isItemChange"));return l?l(s,c):v.isObject(i.item)&&v.isObject(u.item)?i.item.id!==u.item.id:i.item!==u.item},r._processEventObj=function(i){var u=this.graph.get("_canvas"),c=this._getEventObj(i,u);this._currentEventObj=c},r._parsePoint=function(i,u){return this.graph.getPointByCanvas({x:i,y:u})},r._getEventObj=function(i,u){var c=this.graph,s=i.clientX,l=i.clientY,f=u.getPointByClient(s,l),g=this._parsePoint(f.x,f.y),y=u.getShape(f.x,f.y,i),m=c.getItemByShape(y),x=u.get("pixelRatio");return{item:m,shape:y,x:g.x,y:g.y,domX:f.x/x,domY:f.y/x,domEvent:i}},e}(d);P.exports=n},function(P,b,p){var d={},v=p(698);d.INIT="_initEvents",d.CFG={keyboardEnable:!0},d.AUGMENT={_initEvents:function(){this.get("_controllers").events=new v({graph:this})}},P.exports=d},function(P,b,p){var d=p(26),v={};v.AUGMENT={find:function(a){return this.get("_itemMap")[a]},getNodes:function(){return this.get("_itemMap")._nodes},getEdges:function(){return this.get("_itemMap")._edges},getGroups:function(){return this.get("_itemMap")._groups},getGuides:function(){return this.get("_itemMap")._guides},getItems:function(){var a=this.get("_itemMap"),o=[];return d.each(a,function(n){n.type&&o.push(n)}),o},getItemByShape:function(a){return a?this.getItem(a.id):null},getItem:function(a){var o=this.get("_itemMap");return d.isObject(a)?a.destroyed&&(a=o[a.id]):a=o[a],a}},P.exports=v},function(P,b,p){var d=p(599),v=p(26),h=["color","shape","size","label","style"],a=function(o){function n(){return o.apply(this,arguments)||this}(function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r})(n,o);var t=n.prototype;return t._init=function(){var e=this,r={};v.each(h,function(i){r[i]={},e[i]=function(u){return r[i].input=u,e}}),this.channels=r},t.addChannels=function(e){var r=this.channels;v.each(e,function(i,u){r[u]={input:i}})},t.mapping=function(e){var r=this.channels;v.each(r,function(i,u){v.isFunction(i.input)?e[u]=i.input(e):i.input&&(e[u]=i.input)})},n}(d);P.exports=a},function(P,b,p){var d=p(701),v={INIT:"_initMapper"};v.AUGMENT={_initMapper:function(){var a=this.get("_controllers");a.nodeMapper=new d({graph:this}),a.edgeMapper=new d({graph:this}),a.groupMapper=new d({graph:this}),a.guideMapper=new d({graph:this})},node:function(a){var o=this._getController("nodeMapper");return a&&o.addChannels(a),o},edge:function(a){var o=this._getController("edgeMapper");return a&&o.addChannels(a),o},group:function(a){var o=this._getController("groupMapper");return a&&o.addChannels(a),this._getController("groupMapper")},guide:function(a){var o=this._getController("guideMapper");return a&&o.addChannels(a),this._getController("guideMapper")}},P.exports=v},function(P,b,p){var d=function(v){function h(){return v.apply(this,arguments)||this}(function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n})(h,v);var a=h.prototype;return a.getDefaultCfg=function(){return{graph:null,auto:!0,processor:null}},a._init=function(){var o=this,n=this.graph;n.on("afteritemdraw",function(t){var e=t.item,r=e.getKeyShape(),i=e.getModel();if(e.isEdge)i.lineWidth=r.attr("lineWidth");else if(e.isNode||e.isGroup){var u=e.getBBox();i.width=u.width,i.height=u.height}}),n.on("afterchange",function(t){var e=t.action;o.auto==="once"?e==="changeData"&&(n.destroyed||n.preventAnimate(function(){o.layout()})):o.auto&&!n.destroyed&&n.preventAnimate(function(){o.layout()})})},a.changeLayout=function(o){this.processor=o,this.layout()},a.layout=function(){var o=this.graph,n=this.getLayoutProcessor();o.emit("beforelayout");var t=o.getNodes().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()}),e=o.getEdges().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()}),r=o.getGroups().filter(function(i){return i.isVisible()}).map(function(i){return i.getModel()});o._executeLayout(n,t,e,r),o.updateNodePosition(),o.emit("afterlayout")},a.getLayoutProcessor=function(){return this.processor?this.processor:this.processer},h}(p(599));P.exports=d},function(P,b,p){var d=p(26),v=p(703),h={CFG:{layout:void 0},INIT:"_initLayout"};h.AUGMENT={_initLayout:function(){var o=this.get("_controllers"),n=this._getLayoutCfg();n&&(o.layout=new v(d.mix({graph:this},n)))},_getLayoutCfg:function(){var o=this.get("layout");return d.isPlainObject(o)?o:d.isFunction(o)||d.isObject(o)?{processor:o}:null},layout:function(){return this._getController("layout").layout(),this},updateNodePosition:function(o){var n=this.getGuides(),t=[],e=[];return this.emit("beforeupdatenodeposition"),o?(o.forEach(function(r){r.getEdges().forEach(function(u){e.push(u)});var i=r.getParent();i&&t.push(i)}),e=d.uniq(e),t=d.uniq(t)):(o=this.getNodes(),t=this.getGroups(),e=this.getEdges()),o.forEach(function(r){r.layoutUpdate()}),t.forEach(function(r){r.layoutUpdate()}),e.forEach(function(r){r.layoutUpdate()}),n.forEach(function(r){r.layoutUpdate()}),this.emit("afterupdatenodeposition"),this},changeLayout:function(o){return this._getController("layout").changeLayout(o),this},getLayout:function(){return this._getController("layout").getLayoutProcessor()}},P.exports=h},function(P,b,p){(function(d){"use strict";var v=function(){return{escape:function(g){return g.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:s,mimeType:function(g){var y=s(g).toLowerCase();return function(){var m="application/font-woff";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}()[y]||""},dataAsUrl:function(g,y){return"data:"+y+";base64,"+g},isDataUrl:function(g){return g.search(/^(data:)/)!==-1},canvasToBlob:function(g){return g.toBlob?new Promise(function(y){g.toBlob(y)}):function(y){return new Promise(function(m){for(var x=window.atob(y.toDataURL().split(",")[1]),w=x.length,M=new Uint8Array(w),S=0;S'+x+""}).then(function(x){return''+x+""}).then(function(x){return"data:image/svg+xml;charset=utf-8,"+x})}(f,l.width||v.width(s),l.height||v.height(s))})}function r(s,l){return e(s,l).then(v.makeImage).then(v.delay(100)).then(function(f){var g=function(y){var m=document.createElement("canvas");if(m.width=l.width||v.width(y),m.height=l.height||v.height(y),l.bgcolor){var x=m.getContext("2d");x.fillStyle=l.bgcolor,x.fillRect(0,0,m.width,m.height)}return m}(s);return g.getContext("2d").drawImage(f,0,0),g})}function i(s,l,f){if(!f&&l&&!l(s))return Promise.resolve();return Promise.resolve(s).then(g).then(function(x){return y(s,x,l)}).then(function(x){return m(s,x)});function g(x){return x instanceof HTMLCanvasElement?v.makeImage(x.toDataURL()):x.cloneNode(!1)}function y(x,w,M){var S=x.childNodes;return S.length===0?Promise.resolve(w):function(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return i(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}(w,v.asArray(S),M).then(function(){return w});function O(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return i(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}}function m(x,w){return w instanceof Element?Promise.resolve().then(function(){(function(E,_){E.cssText?_.cssText=E.cssText:function(C,k){v.asArray(C).forEach(function(T){k.setProperty(T,C.getPropertyValue(T),C.getPropertyPriority(T))})}(E,_)})(window.getComputedStyle(x),w.style)}).then(function(){[":before",":after"].forEach(function(E){(function(_){var C=window.getComputedStyle(x,_),k=C.getPropertyValue("content");if(!(k===""||k==="none")){var T=v.uid();w.className=w.className+" "+T;var I=document.createElement("style");I.appendChild(function(D,R,j){var B="."+D+":"+R,X=j.cssText?function(et){var K=et.getPropertyValue("content");return et.cssText+" content: "+K+";"}(j):function(et){return v.asArray(et).map(function(K){return K+": "+et.getPropertyValue(K)+(et.getPropertyPriority(K)?" !important":"")}).join("; ")+";"}(j);return document.createTextNode(B+"{"+X+"}")}(T,_,C)),w.appendChild(I)}})(E)})}).then(function(){x instanceof HTMLTextAreaElement&&(w.innerHTML=x.value),x instanceof HTMLInputElement&&w.setAttribute("value",x.value)}).then(function(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);_&&w.style.setProperty(E,_)}))}).then(function(){return w}):w;function M(){function E(_,C){_.cssText?C.cssText=_.cssText:k(_,C);function k(T,I){v.asArray(T).forEach(function(D){I.setProperty(D,T.getPropertyValue(D),T.getPropertyPriority(D))})}}E(window.getComputedStyle(x),w.style)}function S(){function E(_){var C=window.getComputedStyle(x,_),k=C.getPropertyValue("content");if(k===""||k==="none")return;var T=v.uid();w.className=w.className+" "+T;var I=document.createElement("style");function D(R,j,B){var X="."+R+":"+j,et=B.cssText?K(B):tt(B);return document.createTextNode(X+"{"+et+"}");function K(J){var nt=J.getPropertyValue("content");return J.cssText+" content: "+nt+";"}function tt(J){return v.asArray(J).map(nt).join("; ")+";";function nt(at){return at+": "+J.getPropertyValue(at)+(J.getPropertyPriority(at)?" !important":"")}}}I.appendChild(D(T,_,C)),w.appendChild(I)}[":before",":after"].forEach(function(_){E(_)})}function O(){x instanceof HTMLTextAreaElement&&(w.innerHTML=x.value),x instanceof HTMLInputElement&&w.setAttribute("value",x.value)}function A(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);!_||w.style.setProperty(E,_)}))}}}function u(s){return a.resolveAll().then(function(l){var f=document.createElement("style");return s.appendChild(f),f.appendChild(document.createTextNode(l)),s})}function c(s){return o.inlineAll(s).then(function(){return s})}P.exports=t})()},function(P,b,p){function d(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var v=p(26),h=p(248),a=p(705),o=function(){function n(e){this.options=function(r){for(var i=1;i");u=new h.Canvas({containerDOM:c,width:r,height:i})}return u.drawCount||(u.drawCount=0),u},t.drawInner=function(e,r){var i=this.options.graph,u=i.getCanvas(),c=i.get("renderer"),s=e.drawCount;if(c==="svg"){var l=[];u.deepEach(function(f){f.get("type")==="dom"&&l.push(f)}),l.length>0?l.forEach(function(f){var g=f.get("el");if(g){f.domImageOnload=!1;var y=f.attr("width"),m=f.attr("height");a.toPng(g,{width:y,height:m}).then(function(x){var w=new Image;w.src=x,w.onload=function(){if(s===e.drawCount-1){f.domImage=w,f.domImageOnload=!0;for(var M=0;M0&&S>0?E=Math.PI/2-_:M<0&&S<0?E=-Math.PI/2-_:M>=0&&S<0?E=-_-Math.PI/2:M<=0&&S>0&&(E=Math.PI/2-_),w.rotate(E),w.translate(x.x,x.y),e==="end"?(y[y.length-1]=A[1]+x.y,y[y.length-2]=A[0]+x.x):(m[m.length-1]=A[1]+x.y,m[m.length-2]=A[0]+x.x),f.attr("path",g),this[e+"Arrow"]=w}},n._getControlPoints=function(){var t=this.model.controlPoints;return v.isArray(t)?t:[]},n._shouldDraw=function(){return a.prototype._shouldDraw.call(this)&&this.linkedItemVisible()},n._getPoint=function(t){if(t.isItem){var e=t.getBBox();return{x:e.centerX,y:e.centerY}}return{x:t.x,y:t.y}},n.linkedItemVisible=function(){var t=this.source,e=this.target;return v.isPlainObject(t)||v.isPlainObject(e)||t.isVisible()||e.isVisible()||t.collapsedParent!==e.collapsedParent},n.getSource=function(){var t=this.source,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getTarget=function(){var t=this.target,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getPoints=function(){var t=this.getSource(),e=this.getTarget(),r=this.model,i=this._getControlPoints(),u=this._getPoint(t),c=this._getPoint(e),s=[u].concat(i).concat([c]),l=s.length;if(t.isItem){var f=v.isNumber(this.model.sourceAnchor)&&t.id===r.source?this.model.sourceAnchor:s[1],g=t.getLinkPoints(f);s[0]=g[0]}if(e.isItem){var y=v.isNumber(this.model.targetAnchor)&&e.id===r.target?this.model.targetAnchor:s[l-2],m=e.getLinkPoints(y);s[l-1]=m[0]}return s},n.destroy=function(){var t=this.itemMap,e=this.model,r=t[e.source],i=t[e.target];r&&r.isItem&&v.Array.remove(r.edges,this),i&&i.isItem&&v.Array.remove(i.edges,this),a.prototype.destroy.call(this)},o}(p(608));P.exports=h},function(P,b,p){P.exports={Node:p(624),Edge:p(709),Group:p(708),Guide:p(707)}},function(P,b,p){var d;/*! - * EventEmitter v5.2.5 - git.io/ee - * Unlicense - http://unlicense.org/ - * Oliver Caldwell - http://oli.me.uk/ - * @preserve - */(function(v){"use strict";function h(){}var a=h.prototype,o=v.EventEmitter;function n(e,r){for(var i=e.length;i--;)if(e[i].listener===r)return i;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}a.getListeners=function(e){var r,i,u=this._getEvents();if(e instanceof RegExp)for(i in r={},u)u.hasOwnProperty(i)&&e.test(i)&&(r[i]=u[i]);else r=u[e]||(u[e]=[]);return r},a.flattenListeners=function(e){var r,i=[];for(r=0;r=0;t--)n[t].remove(o);return this._cfg.children=[],this}}),v.mixin(d.Group,[h]),P.exports=h},function(P,b,p){p(258).registerGuide("common",{draw:function(){console.warn("do not have this guide, please register one")}})},function(P,b,p){P.exports={common:p(716)}},function(P,b,p){function d(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}var v=p(258),h=p(26),a=p(247);v.registerGroup("common",{draw:function(n){return n.getModel().collapsed?this.drawCollapsed(n):this.drawExpanded(n)},defaultWidth:184,defaultHeight:40,getLabel:function(n){return n.getModel().label},drawLabel:function(n,t,e){var r=this.getLabel(n);if(r){var i=n.getGraphicGroup(),u=[8,8];t+=u[0],e+=u[1];var c=n.getModel(),s=c.labelOffsetX,l=c.labelOffsetY,f=c.labelRotate;t=s?s+t:t,e=l?l+e:e;var g=h.mix(!0,{},a.labelStyle,{x:t,y:e,textAlign:"left",textBaseline:"top"});h.isObject(r)?h.mix(g,r):g.text=r;var y=i.addShape("text",{class:"label",attrs:g});if(f){var m=y.getBBox(),x=(m.maxX+m.minX)/2,w=(m.maxY+m.minY)/2;y.transform([["t",-x,-w],["r",f,f],["t",x,w]])}}},drawKeyShape:function(n,t){var e=t.x,r=t.y,i=t.width,u=t.height,c=n.getModel(),s=n.getGraphicGroup(),l=h.mix({},a.groupStyle,c.style),f=h.getRectPath(e,r,i,u,l.radius);return n.lastChildrenBox=t,s.addShape("path",{attrs:h.mix({},l,{path:f})})},getChildrenBBox:function(n){var t=function(i){for(var u=1;u0){var r=n.getChildrenBBox();t.x=r.minX-a.groupBackgroundPadding[3],t.y=r.minY-a.groupBackgroundPadding[0],t.width=r.maxX-r.minX+a.groupBackgroundPadding[3]+a.groupBackgroundPadding[1],t.height=r.maxY-r.minY+a.groupBackgroundPadding[0]+a.groupBackgroundPadding[2]}else t.width=this.defaultWidth,t.height=this.defaultHeight;return h.isNil(t.x)&&!h.isNil(e.x)&&(t.x=e.x),h.isNil(t.y)&&!h.isNil(e.y)&&(t.y=e.y),t},drawExpanded:function(n){var t=this.getChildrenBBox(n),e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},drawCollapsed:function(n){var t=this.getChildrenBBox(n);t.width=this.defaultWidth,t.height=this.defaultHeight;var e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},anchor:{intersectBox:"rect"}})},function(P,b,p){P.exports={common:p(718)}},function(P,b,p){function d(t){for(var e=1;e3?r:3)/3,u=4*r/3,c=4*r;return[["M",-i,u],["L",0,0],["L",-i,-u],["A",c,c,0,0,1,-i,u],["Z"]]},shorten:function(e){var r=e.getKeyShape().attr("lineWidth");return 3.1*(r>3?r:3)},style:function(e){var r=e.getKeyShape().attr();return{fillOpacity:r.strokeOpacity,fill:r.stroke}}};h.registerEdge("common",{draw:function(e){var r=this.drawKeyShape(e);return this.drawLabel(e,r),r},drawKeyShape:function(e){var r=e.getGraphicGroup(),i=this.getStyle(e),u=this.getPath(e);return r.addShape("path",{attrs:a.mix({},i,{path:u})})},getStyle:function(e){var r=e.getModel();return a.mix(!0,{},{stroke:r.color||"#A3B1BF",strokeOpacity:.92,lineAppendWidth:4,lineWidth:r.size||1},r.style)},getPath:function(e){var r=e.getPoints();return a.pointsToPolygon(r)},getLabel:function(e){return e.getModel().label},getDefaultLabelRectStyle:function(){return{fill:"white"}},getDefaultLabelRectPadding:function(){return a.toAllPadding([4,8])},drawLabel:function(e,r){var i=this.getLabel(e),u=e.getGraphicGroup(),c=e.getModel(),s=c.labelOffsetX,l=c.labelOffsetY,f=c.labelRotate;if(i){var g=r.getPoint(.5);if(!g)return;g.x=s?g.x+s:g.x,g.y=l?g.y+l:g.y;var y=a.mix(!0,{},o.labelStyle,g);a.isObject(i)?a.mix(y,i):y.text=i,i=u.addShape("text",{class:"label",attrs:y});var m=this.getDefaultLabelRectPadding(e),x=this.getDefaultLabelRectStyle(e),w=i.getBBox(),M=c.labelRectStyle?a.mix({},x,c.labelRectStyle):x,S=u.addShape("rect",{attrs:a.mix({},M,{x:w.minX-m[3],y:w.minY-m[0],width:w.maxX-w.minX+m[1]+m[3],height:w.maxY-w.minY+m[0]+m[2]})});if(f){var O=(w.maxX+w.minX)/2,A=(w.maxY+w.minY)/2;i.transform([["t",-O,-A],["r",f,f],["t",O,A]]),S.transform([["t",-O,-A],["r",f,f],["t",O,A]])}a.toFront(i)}},startArrow:d({},n,{tangent:function(e){return e.getKeyShape().getStartTangent()},ratio:function(){return 0}}),endArrow:d({},n,{tangent:function(e){return e.getKeyShape().getEndTangent()},ratio:function(){return 1}})})},function(P,b,p){P.exports={common:p(720)}},function(P,b,p){var d=p(258),v=p(26);d.registerNode("html",{getHtml:function(a){return a.getModel().html},cssSize:!0,draw:function(a){var o=v.createDOM('
'),n=a.getGraphicGroup(),t=a.getGraph();if(t.get("renderer")!=="svg")throw new Error("please use svg renderer draw html element !");var e=t.getGraphContainer(),r=this.getSize(a),i=this.getStyle(a),u=this.cssSize,c=this.getHtml(a);c=v.createDOM(c),o.css({position:"absolute",padding:"0px",margin:"0px"}),o.appendChild(c),e.appendChild(o),u&&(r[0]=o.width(),r[1]=o.height());var s=-r[0]/2,l=-r[1]/2,f=r[0],g=r[1],y=n.addShape("rect",{attrs:v.mix({},i,{x:s,y:l,width:f,height:g})});return n.addShape("dom",{attrs:v.mix({x:s,y:l,width:f,height:g,html:o})}),y}})},function(P,b,p){var d=p(258),v=p(26),h=p(247);d.registerNode("common",{draw:function(o){var n=o.getGraphicGroup(),t=this.drawLabel(o),e=this.drawKeyShape(o);return t&&v.toFront(t,n),e},getSize:function(o){var n=o.getModel().size;return v.isArray(n)?n:v.isNumber(n)?[n,n]:[h.defaultNodeSize,h.defaultNodeSize]},getStyle:function(o){var n=o.getModel();return v.mix(!0,{lineWidth:1,fill:n.color||"#40a9ff",stroke:n.color||"#096dd9",fillOpacity:.92},n.style)},getLabel:function(o){return o.getModel().label},drawKeyShape:function(o){var n=o.getGraphicGroup(),t=this.getStyle(o),e=this.getPath(o);return n.addShape("path",{attrs:v.mix({},t,{path:e})})},drawLabel:function(o){var n=o.getGraphicGroup(),t=this.getLabel(o),e=o.getModel(),r=e.labelOffsetX,i=e.labelOffsetY,u=e.labelRotate;if(!v.isNil(t)){var c=v.mix(!0,{},h.labelStyle,{x:r||0,y:i||0});v.isObject(t)?v.mix(c,t):c.text=t;var s=n.addShape("text",{class:"label",attrs:c});return u&&s.rotate(u),s}},getPath:function(o){var n=this.getSize(o);return v.getEllipsePath(0,0,n[0]/2,n[1]/2)}})},function(P,b,p){P.exports={common:p(723),html:p(722)}},function(P,b,p){var d=p(682),v=p(257),h={getAutoZoomMatrix:function(o,n,t,e){var r=[1,0,0,0,1,0,0,0,1],i=o.maxX-o.minX,u=o.maxY-o.minY,c=(n.maxX+n.minX)/2,s=(n.maxY+n.minY)/2,l=i-t[1]-t[3],f=u-t[0]-t[2],g=n.maxX-n.minX,y=n.maxY-n.minY,m=Math.min(f/y,l/g);return e&&(m=e(m)),d.mat3.translate(r,r,[-c,-s]),d.mat3.scale(r,r,[m,m]),d.mat3.translate(r,r,[i/2,u/2]),r},getNineBoxPosition:function(o,n,t,e,r){var i={};switch(o){case"tl":i.y=n.x+r[0],i.x=n.y+r[3];break;case"lc":i.y=(n.height-e)/2,i.x=r[3];break;case"bl":i.y=n.height-e-r[2],i.x=r[3];break;case"cc":i.y=(n.height-e)/2,i.x=(n.width-t)/2;break;case"tc":i.y=r[0],i.x=(n.width-t)/2;break;case"tr":i.y=r[0],i.x=n.width-t-r[1];break;case"rc":i.y=(n.height-e)/2,i.x=n.width-t-r[1];break;case"br":i.y=n.height-e-r[2],i.x=n.width-t-r[1];break;case"bc":i.y=n.height-e-r[2],i.x=(n.width-t)/2;break;default:i.y=n.x+r[0],i.x=n.y+r[3]}return i.x+=n.x,i.y+=n.y,i},getTotalBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;return o.forEach(function(i){i.minXt&&(t=i.maxX),i.minYr&&(r=i.maxY)}),{minX:n,minY:e,maxX:t,maxY:r,width:t-n,height:r-e}},getChildrenBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;v.each(o,function(u){var c=u.isGroup?h.getChildrenBBox(u.get("children")):u.getBBox();if(!c)return!0;var s=[c.minX,c.minY,1],l=[c.minX,c.maxY,1],f=[c.maxX,c.minY,1],g=[c.maxX,c.maxY,1];u.apply(s),u.apply(l),u.apply(f),u.apply(g);var y=Math.min(s[0],l[0],f[0],g[0]),m=Math.max(s[0],l[0],f[0],g[0]),x=Math.min(s[1],l[1],f[1],g[1]),w=Math.max(s[1],l[1],f[1],g[1]);yt&&(t=m),xr&&(r=w)});var i={minX:n,minY:e,maxX:t,maxY:r};return i.x=i.minX,i.y=i.minY,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i.centerX=(i.minX+i.maxX)/2,i.centerY=(i.minY+i.maxY)/2,i},getBBox:function(o,n){var t,e=o.getBBox(),r={x:e.minX,y:e.minY},i={x:e.maxX,y:e.maxY};if(n.isGroup){for(t=o;t!==n;){var u=t.getMatrix();r=d.applyMatrix(r,u),i=d.applyMatrix(i,u),t=t.getParent()}var c=t.getMatrix();r=d.applyMatrix(r,c),i=d.applyMatrix(i,c)}else r=d.applyMatrix(r,n),i=d.applyMatrix(i,n);return{minX:r.x,minY:r.y,maxX:i.x,maxY:i.y}},toBack:function(o){o.toBack()},toFront:function(o){o.toFront()}};P.exports=h},function(P,b,p){var d=p(257);P.exports={isNode:function(h){return h&&d.isObject(h)&&h.type==="node"},isEdge:function(h){return h&&d.isObject(h)&&h.type==="edge"},isGroup:function(h){return h&&d.isObject(h)&&h.type==="group"}}},function(P,b,p){var d=p(257),v={};d.mix(v,{addEventListener:function(a,o,n){return a.attachEvent?(a.attachEvent("on"+o,n),{remove:function(){a.detachEvent("on"+o,n)}}):a.addEventListener?(a.addEventListener(o,n,!1),{remove:function(){a.removeEventListener(o,n,!1)}}):void 0},createDOM:function(a,o){var n;return(n=d.isString(a)?d.createDom(a):a).bbox=n.getBoundingClientRect(),n.hide=function(){return n.style.visibility="hidden",n},n.show=function(){return n.style.visibility="visible",n},n.css=function(t){return d.modifyCSS(n,t),n},n.width=function(){return d.getWidth(n)},n.height=function(){return d.getHeight(n)},n.destroy=function(){n.parentNode&&n.parentNode.removeChild(n)},n.on=function(t,e){n.addEventListener(t,e)},n.off=function(t,e){n.removeEventListener(t,e)},n.css(o),n},initDOMContainer:function(a,o){if(!a)throw new Error("please set the container for the "+o+" !");return d.isString(a)&&(a=document.getElementById(a)),a}}),P.exports=v},function(P,b){var p={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};P.exports=function(d,v,h){var a=h.target||h.srcElement;if(!p[a.tagName]){for(var o=a.parentNode;o&&!p[o.tagName];)o=o.parentNode;a=o}return this._cfg.el===a?this:this.find(function(n){return n._cfg&&n._cfg.el===a})}},function(P,b,p){var d=p(19),v=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,h=function(){function a(o){var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var t=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(t);var e=d.uniqueId("pattern_");n.id=e,this.el=n,this.id=e,this.cfg=o;var r=v.exec(o)[2];t.setAttribute("href",r);var i=new Image;function u(){console.log(i.width,i.height),n.setAttribute("width",i.width),n.setAttribute("height",i.height)}return r.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=r,i.complete?u():(i.onload=u,i.src=i.src),this}return a.prototype.match=function(o,n){return this.cfg===n},a}();P.exports=h},function(P,b,p){var d=p(19),v=function(){function h(o){this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=n,this.id=d.uniqueId("clip_"),n.id=this.id;var t=o._cfg.el;return n.appendChild(t.cloneNode(!0)),this.cfg=o,this}var a=h.prototype;return a.match=function(){return!1},a.remove=function(){var o=this.el;o.parentNode.removeChild(o)},h}();P.exports=v},function(P,b,p){var d=p(19),v=function(){function h(o,n){var t=document.createElementNS("http://www.w3.org/2000/svg","marker"),e=d.uniqueId("marker_");t.setAttribute("id",e);var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("stroke","none"),r.setAttribute("fill",o.stroke||"#000"),t.appendChild(r),t.setAttribute("overflow","visible"),t.setAttribute("orient","auto-start-reverse"),this.el=t,this.child=r,this.id=e,this.cfg=o[n==="marker-start"?"startArrow":"endArrow"],this.stroke=o.stroke||"#000",this.cfg===!0?this._setDefaultPath(n,r):this._setMarker(o.lineWidth,r),this}var a=h.prototype;return a.match=function(){return!1},a._setDefaultPath=function(o,n){var t=this.el;n.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),t.setAttribute("refX",3),t.setAttribute("refY",3)},a._setMarker=function(o,n){var t=this.el,e=this.cfg.path,r=this.cfg.d;d.isArray(e)&&(e=e.map(function(i){return i.join(" ")}).join("")),n.setAttribute("d",e),t.appendChild(n),r&&t.setAttribute("refX",r/o)},a.update=function(o){var n=this.child;n.attr?n.attr("fill",o):n.setAttribute("fill",o)},h}();P.exports=v},function(P,b,p){var d=p(19),v={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},h={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=function(){function o(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return d.each(h,function(r,i){e.setAttribute(i,r)}),this.el=e,this.id=d.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var n=o.prototype;return n.match=function(t,e){if(this.type!==t)return!1;var r=!0,i=this.cfg;return d.each(Object.keys(i),function(u){if(i[u]!==e[u])return r=!1,!1}),r},n.update=function(t,e){var r=this.cfg;return r[v[t]]=e,this._parseShadow(r,this.el),this},n._parseShadow=function(t,e){var r=``;e.innerHTML=r},o}();P.exports=a},function(P,b,p){var d=p(19),v=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,h=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(t){var e=t.match(a);if(!e)return"";var r="";return e.sort(function(i,u){return i=i.split(":"),u=u.split(":"),Number(i[0])-Number(u[0])}),d.each(e,function(i){i=i.split(":"),r+=''}),r}var n=function(){function t(e){var r=null,i=d.uniqueId("gradient_");return e.toLowerCase()[0]==="l"?function(u,c){var s,l,f=v.exec(u),g=d.mod(d.toRadian(parseFloat(f[1])),2*Math.PI),y=f[2];g>=0&&g<.5*Math.PI?(s={x:0,y:0},l={x:1,y:1}):.5*Math.PI<=g&&g');return c.appendChild(l),this.type="svg",this.canvas=l,this.context=new a(l),this.toDraw=!1,this}var u=i.prototype;return u.draw=function(c){var s=this;s.animateHandler?s.toDraw=!0:function l(){s.animateHandler=d.requestAnimationFrame(function(){s.animateHandler=void 0,s.toDraw&&l()});try{s._drawChildren(c)}catch(f){console.warn("error in draw canvas, detail as:"),console.warn(f),s.toDraw=!1}s.toDraw=!1}()},u.drawSync=function(c){this._drawChildren(c)},u._drawGroup=function(c,s){var l=c._cfg;l.removed||l.destroyed||(l.tobeRemoved&&(d.each(l.tobeRemoved,function(f){f.parentNode&&f.parentNode.removeChild(f)}),l.tobeRemoved=[]),this._drawShape(c,s),l.children&&l.children.length>0&&this._drawChildren(c))},u._drawChildren=function(c){var s,l=c._cfg.children;if(l)for(var f=0;fm?1:0,O=Math.abs(x-m)>Math.PI?1:0,A=l.rs,E=l.re,_=s(m,l.rs,g),C=s(x,l.rs,g);l.rs>0?(y.push("M "+M.x+","+M.y),y.push("L "+C.x+","+C.y),y.push("A "+A+","+A+",0,"+O+","+(S===1?0:1)+","+_.x+","+_.y),y.push("L "+w.x+" "+w.y)):(y.push("M "+g.x+","+g.y),y.push("L "+w.x+","+w.y)),y.push("A "+E+","+E+",0,"+O+","+S+","+M.x+","+M.y),l.rs>0?y.push("L "+C.x+","+C.y):y.push("Z"),f.el.setAttribute("d",y.join(" "))},u._updateText=function(c){var s=c._attrs,l=c._cfg.attrs,f=c._cfg.el;for(var g in this._setFont(c),s)if(s[g]!==l[g]){if(g==="text"){this._setText(c,""+s[g]);continue}if(g==="fillStyle"||g==="strokeStyle"){this._setColor(c,g,s[g]);continue}if(g==="matrix"){this._setTransform(c);continue}n[g]&&f.setAttribute(n[g],s[g])}c._cfg.attrs=Object.assign({},c._attrs),c._cfg.hasUpdate=!1},u._setFont=function(c){var s=c.get("el"),l=c._attrs,f=l.fontSize;s.setAttribute("alignment-baseline",t[l.textBaseline]||"baseline"),s.setAttribute("text-anchor",e[l.textAlign]||"left"),f&&+f<12&&(l.matrix=[1,0,0,0,1,0,0,0,1],c.transform([["t",-l.x,-l.y],["s",+f/12,+f/12],["t",l.x,l.y]]))},u._setText=function(c,s){var l=c._cfg.el,f=c._attrs.textBaseline||"bottom";if(s)if(~s.indexOf(` -`)){var g=c._attrs.x,y=s.split(` -`),m=y.length-1,x="";d.each(y,function(w,M){M===0?f==="alphabetic"?x+=''+w+"":f==="top"?x+=''+w+"":f==="middle"?x+=''+w+"":f==="bottom"?x+=''+w+"":f==="hanging"&&(x+=''+w+""):x+=''+w+""}),l.innerHTML=x}else l.innerHTML=s;else l.innerHTML=""},u._setClip=function(c,s){var l=c._cfg.el;if(s)if(l.hasAttribute("clip-path"))s._cfg.hasUpdate&&this._updateShape(s);else{this._createDom(s),this._updateShape(s);var f=this.context.addClip(s);l.setAttribute("clip-path","url(#"+f+")")}else l.removeAttribute("clip-path")},u._setColor=function(c,s,l){var f=c._cfg.el,g=this.context;if(l)if(l=l.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(l)){var y=g.find("gradient",l);y||(y=g.addGradient(l)),f.setAttribute(n[s],"url(#"+y+")")}else if(/^[p,P]{1}[\s]*\(/.test(l)){var m=g.find("pattern",l);m||(m=g.addPattern(l)),f.setAttribute(n[s],"url(#"+m+")")}else f.setAttribute(n[s],l);else f.setAttribute(n[s],"none")},u._setShadow=function(c){var s=c._cfg.el,l=c._attrs,f={dx:l.shadowOffsetX,dy:l.shadowOffsetY,blur:l.shadowBlur,color:l.shadowColor};if(f.dx||f.dy||f.blur||f.color){var g=this.context.find("filter",f);g||(g=this.context.addShadow(f,this)),s.setAttribute("filter","url(#"+g+")")}else s.removeAttribute("filter")},i}();P.exports=r},function(P,b,p){P.exports={painter:p(735),getShape:p(728)}},function(P,b,p){var d=p(19),v=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,h=/[^\s\,]+/gi,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,t=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function e(r,i){var u=r.match(t);d.each(u,function(c){c=c.split(":"),i.addColorStop(c[0],c[1])})}P.exports={parsePath:function(i){return i=i||[],d.isArray(i)?i:d.isString(i)?(i=i.match(v),d.each(i,function(u,c){if((u=u.match(h))[0].length>1){var s=u[0].charAt(0);u.splice(1,0,u[0].substr(1)),u[0]=s}d.each(u,function(l,f){isNaN(l)||(u[f]=+l)}),i[c]=u}),i):void 0},parseStyle:function(i,u,c){if(d.isString(i)){if(i[1]==="("||i[2]==="("){if(i[0]==="l")return function(s,l,f){var g,y,m=a.exec(s),x=d.mod(d.toRadian(parseFloat(m[1])),2*Math.PI),w=m[2],M=l.getBBox();x>=0&&x<.5*Math.PI?(g={x:M.minX,y:M.minY},y={x:M.maxX,y:M.maxY}):.5*Math.PI<=x&&x');return t.appendChild(r),this.type="canvas",this.canvas=r,this.context=r.getContext("2d"),this.toDraw=!1,this}var n=o.prototype;return n.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},n.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function r(){e.animateHandler=d.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&r()}),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i),e.toDraw=!1}e.toDraw=!1}()},n.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},n._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,r=null;this.setContext(t);for(var i=0;i-1){var u=r[i];i==="fillStyle"&&(u=v.parseStyle(u,t,e)),i==="strokeStyle"&&(u=v.parseStyle(u,t,e)),i==="lineDash"&&e.setLineDash?d.isArray(u)?e.setLineDash(u):d.isString(u)&&e.setLineDash(u.split(" ")):e[i]=u}}},o}();P.exports=a},function(P,b,p){P.exports={painter:p(738)}},function(P,b,p){P.exports={canvas:p(739),svg:p(736)}},function(P,b,p){var d=p(19),v=p(610),h=p(17),a=p(44),o=p(238),n=o.interpolate,t=o.interpolateArray,e=function(u){this._animators=[],this._current=0,this._timer=null,this.canvas=u};function r(i,u,c){var s,l=u.startTime;if(cC.length?(_=v.parsePathString(M[E]),C=v.parsePathString(S[E]),C=v.fillPathByDiff(C,_),C=v.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_):m.pathFormatted||(_=v.parsePathString(M[E]),C=v.parsePathString(S[E]),C=v.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_,m.pathFormatted=!0),w[E]=[];for(var k=0;k<_.length;k++){for(var T=_[k],I=C[k],D=[],R=0;R0){for(var y=l._animators.length-1;y>=0;y--)if((u=l._animators[y]).get("destroyed"))f.removeAnimator(y);else{if(!u.get("pause").isPaused)for(var m=(c=u.get("animators")).length-1;m>=0;m--)s=c[m],r(u,s,g)&&(c.splice(m,1),s.callback&&s.callback());c.length===0&&f.removeAnimator(y)}l.canvas.draw()}})},addAnimator:function(u){this._animators.push(u)},removeAnimator:function(u){this._animators.splice(u,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(u){u.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),P.exports=e},function(P,b,p){var d=p(19),v=p(613),h={arc:p(602),ellipse:p(639),line:p(603)},a=d.createDom('').getContext("2d");function o(t,e,r){return r.createPath(a),a.isPointInPath(t,e)}var n={arc:function(e,r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=i.startAngle,f=i.endAngle,g=i.clockwise,y=this.getHitLineWidth();return!!this.hasStroke()&&v.arcline(u,c,s,l,f,g,y,e,r)},circle:function(e,r){var i=this._attrs,u=i.x,c=i.y,s=i.r,l=this.getHitLineWidth(),f=this.hasFill(),g=this.hasStroke();return f&&g?v.circle(u,c,s,e,r)||v.arcline(u,c,s,0,2*Math.PI,!1,l,e,r):f?v.circle(u,c,s,e,r):!!g&&v.arcline(u,c,s,0,2*Math.PI,!1,l,e,r)},dom:function(e,r){if(!this._cfg.el)return!1;var i=this._cfg.el.getBBox();return v.box(i.x,i.x+i.width,i.y,i.y+i.height,e,r)},ellipse:function(e,r){var i=this._attrs,u=this.hasFill(),c=this.hasStroke(),s=i.x,l=i.y,f=i.rx,g=i.ry,y=this.getHitLineWidth(),m=f>g?f:g,x=f>g?1:f/g,w=f>g?g/f:1,M=[e,r,1],S=[1,0,0,0,1,0,0,0,1];d.mat3.scale(S,S,[x,w]),d.mat3.translate(S,S,[s,l]);var O=d.mat3.invert([],S);return d.vec3.transformMat3(M,M,O),u&&c?v.circle(0,0,m,M[0],M[1])||v.arcline(0,0,m,0,2*Math.PI,!1,y,M[0],M[1]):u?v.circle(0,0,m,M[0],M[1]):!!c&&v.arcline(0,0,m,0,2*Math.PI,!1,y,M[0],M[1])},fan:function(e,r){var i=this,u=i.hasFill(),c=i.hasStroke(),s=i._attrs,l=s.x,f=s.y,g=s.rs,y=s.re,m=s.startAngle,x=s.endAngle,w=s.clockwise,M=[e-l,r-f],S=d.vec2.angleTo([1,0],M);function O(){var E=h.arc.nearAngle(S,m,x,w);if(d.isNumberEqual(S,E)){var _=d.vec2.squaredLength(M);if(g*g<=_&&_<=y*y)return!0}return!1}function A(){var E=i.getHitLineWidth(),_={x:Math.cos(m)*g+l,y:Math.sin(m)*g+f},C={x:Math.cos(m)*y+l,y:Math.sin(m)*y+f},k={x:Math.cos(x)*g+l,y:Math.sin(x)*g+f},T={x:Math.cos(x)*y+l,y:Math.sin(x)*y+f};return!!(v.line(_.x,_.y,C.x,C.y,E,e,r)||v.line(k.x,k.y,T.x,T.y,E,e,r)||v.arcline(l,f,g,m,x,w,E,e,r)||v.arcline(l,f,y,m,x,w,E,e,r))}return u&&c?O()||A():u?O():!!c&&A()},image:function(e,r){var i=this._attrs;if(this.get("toDraw")||!i.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===i.img||this._setAttrImg();var u=i.x,c=i.y,s=i.width,l=i.height;return v.rect(u,c,s,l,e,r)},line:function(e,r){var i=this._attrs,u=i.x1,c=i.y1,s=i.x2,l=i.y2,f=this.getHitLineWidth();return!!this.hasStroke()&&v.line(u,c,s,l,f,e,r)},path:function(e,r){var i=this,u=i.get("segments"),c=i.hasFill(),s=i.hasStroke();function l(){if(!d.isEmpty(u)){for(var f=i.getHitLineWidth(),g=0,y=u.length;g=3&&g.push(l[0]),v.polyline(g,f,e,r)}return u&&c?o(e,r,i)||s():u?o(e,r,i):!!c&&s()},polyline:function(e,r){var i=this._attrs;if(this.hasStroke()){var u=i.points;if(u.length<2)return!1;var c=i.lineWidth;return v.polyline(u,c,e,r)}return!1},rect:function(e,r){var i=this,u=i.hasFill(),c=i.hasStroke();function s(){var l=i._attrs,f=l.x,g=l.y,y=l.width,m=l.height,x=l.radius,w=i.getHitLineWidth();if(x===0){var M=w/2;return v.line(f-M,g,f+y+M,g,w,e,r)||v.line(f+y,g-M,f+y,g+m+M,w,e,r)||v.line(f+y+M,g+m,f-M,g+m,w,e,r)||v.line(f,g+m+M,f,g-M,w,e,r)}return v.line(f+x,g,f+y-x,g,w,e,r)||v.line(f+y,g+x,f+y,g+m-x,w,e,r)||v.line(f+y-x,g+m,f+x,g+m,w,e,r)||v.line(f,g+m-x,f,g+x,w,e,r)||v.arcline(f+y-x,g+x,x,1.5*Math.PI,2*Math.PI,!1,w,e,r)||v.arcline(f+y-x,g+m-x,x,0,.5*Math.PI,!1,w,e,r)||v.arcline(f+x,g+m-x,x,.5*Math.PI,Math.PI,!1,w,e,r)||v.arcline(f+x,g+x,x,Math.PI,1.5*Math.PI,!1,w,e,r)}return u&&c?o(e,r,i)||s():u?o(e,r,i):!!c&&s()},text:function(e,r){var i=this.getBBox();if(this.hasFill()||this.hasStroke())return v.box(i.minX,i.maxX,i.minY,i.maxY,e,r)}};P.exports={isPointInPath:function(e,r){var i=n[this.type];return!!i&&i.call(this,e,r)}}},function(P,b,p){var d=p(58);d.Arc=p(638),d.Circle=p(637),d.Dom=p(636),d.Ellipse=p(635),d.Fan=p(634),d.Image=p(633),d.Line=p(632),d.Marker=p(611),d.Path=p(631),d.Polygon=p(630),d.Polyline=p(629),d.Rect=p(628),d.Text=p(627),P.exports=d},function(P,b,p){var d=p(19),v={delay:"delay",rotate:"rotate"},h={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};P.exports={animate:function(o,n,t,e,r){r===void 0&&(r=0),this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.setSilent("timeline",i));var u=this.get("animators")||[];i._timer||i.initTimer(),d.isNumber(e)&&(r=e,e=null),d.isFunction(t)?(e=t,t="easeLinear"):t=t||"easeLinear";var c=function(l,f){var g={matrix:null,attrs:{}},y=f._attrs;for(var m in l)if(m==="transform")g.matrix=d.transform(f.getMatrix(),l[m]);else if(m==="rotate")g.matrix=d.transform(f.getMatrix(),[["r",l[m]]]);else if(m==="matrix")g.matrix=l[m];else{if(h[m]&&/^[r,R,L,l]{1}[\s]*\(/.test(l[m]))continue;v[m]||y[m]===l[m]||(g.attrs[m]=l[m])}return g}(o,this),s={fromAttrs:function(l,f){var g={},y=f._attrs;for(var m in l.attrs)g[m]=y[m];return g}(c,this),toAttrs:c.attrs,fromMatrix:d.clone(this.getMatrix()),toMatrix:c.matrix,duration:n,easing:t,callback:e,delay:r,startTime:i.getTime(),id:d.uniqueId()};u.length>0?u=function(l,f){var g=f.delay,y=Object.prototype.hasOwnProperty;return d.each(f.toAttrs,function(m,x){d.each(l,function(w){g2*Math.PI&&(n=n/180*Math.PI),this.transform([["t",-t,-e],["r",n],["t",t,e]])},move:function(n,t){var e=this.get("x")||0,r=this.get("y")||0;return this.translate(n-e,t-r),this.set("x",n),this.set("y",t),this},transform:function(n){var t=this,e=this._attrs.matrix;return d.each(n,function(r){switch(r[0]){case"t":t.translate(r[1],r[2]);break;case"s":t.scale(r[1],r[2]);break;case"r":t.rotate(r[1]);break;case"m":t.attr("matrix",d.mat3.multiply([],e,r[1])),t.clearTotalMatrix()}}),t},setTransform:function(n){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(n)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(n){return this.attr("matrix",n),this.clearTotalMatrix(),this},apply:function(n,t){var e;return e=t?this._getMatrixByRoot(t):this.attr("matrix"),d.vec3.transformMat3(n,n,e),this},_getMatrixByRoot:function(n){n=n||this;for(var t=this,e=[];t!==n;)e.unshift(t),t=t.get("parent");e.unshift(t);var r=[1,0,0,0,1,0,0,0,1];return d.each(e,function(i){d.mat3.multiply(r,i.attr("matrix"),r)}),r},getTotalMatrix:function(){var n=this._cfg.totalMatrix;if(!n){n=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&a(n,t.getTotalMatrix()),a(n,this.attr("matrix")),this._cfg.totalMatrix=n}return n},clearTotalMatrix:function(){},invert:function(n){var t=this.getTotalMatrix();if(h(t))n[0]/=t[0],n[1]/=t[4];else{var e=d.mat3.invert([],t);e&&d.vec3.transformMat3(n,n,e)}return this},resetTransform:function(n){var t=this.attr("matrix");v(t)||n.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},function(P,b,p){var d=p(19);P.exports={canFill:!1,canStroke:!1,initAttrs:function(h){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(d.assign(this.getDefaultAttrs(),h)),this},getDefaultAttrs:function(){return{}},attr:function(h,a){if(arguments.length===0)return this._attrs;if(d.isObject(h)){for(var o in h)this._setAttr(o,h[o]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return arguments.length===2?(this._setAttr(h,a),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[h]},_setAttr:function(h,a){var o=this._attrs;o[h]=a,h!=="fill"&&h!=="stroke"?h!=="opacity"?h==="clip"&&a?this._setClip(a):h==="path"&&this._afterSetAttrPath?this._afterSetAttrPath(a):h!=="transform"?h==="rotate"&&this.rotateAtStart(a):this.transform(a):o.globalAlpha=a:o[h+"Style"]=a},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(h){h._cfg.renderer=this._cfg.renderer,h._cfg.canvas=this._cfg.canvas,h._cfg.parent=this._cfg.parent,h.hasFill=function(){return!0}}}},function(P,b,p){var d=p(19),v=p(643),h=p(642),a=p(741),o=p(740),n=function t(e){t.superclass.constructor.call(this,e)};n.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},d.extend(n,h),d.augment(n,{init:function(){n.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(e,r){if(e){if(!d.isEmpty(e._getEvents()))return e;var i=e.get("parent");if(i&&!r.propagationStopped)return this.getEmitter(i,r)}},_getEventObj:function(e,r,i,u){var c=new v(e,r,!0,!0);return c.x=i.x,c.y=i.y,c.clientX=r.clientX,c.clientY=r.clientY,c.currentTarget=u,c.target=u,c},_triggerEvent:function(e,r){var i,u=this.getPointByClient(r.clientX,r.clientY),c=this.getShape(u.x,u.y,r),s=this.get("el");if(e==="mousemove"){var l=this.get("preShape");if(l&&l!==c){var f=this._getEventObj("mouseleave",r,u,l);(i=this.getEmitter(l,r))&&i.emit("mouseleave",f),s.style.cursor="default"}if(c){var g=this._getEventObj("mousemove",r,u,c);if((i=this.getEmitter(c,r))&&i.emit("mousemove",g),l!==c){var y=this._getEventObj("mouseenter",r,u,c);i&&i.emit("mouseenter",y,r)}}else{var m=this._getEventObj("mousemove",r,u,this);this.emit("mousemove",m)}this.set("preShape",c)}else{var x=this._getEventObj(e,r,u,c||this);(i=this.getEmitter(c,r))&&i!==this&&i.emit(e,x),this.emit(e,x)}c&&!c.get("destroyed")&&(s.style.cursor=c.attr("cursor")||"default")},_registEvents:function(){var e=this,r=e.get("el");d.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(i){r.addEventListener(i,function(u){e._triggerEvent(i,u)},!1)}),r.addEventListener("touchstart",function(i){d.isEmpty(i.touches)||e._triggerEvent("touchstart",i.touches[0])},!1),r.addEventListener("touchmove",function(i){d.isEmpty(i.touches)||e._triggerEvent("touchmove",i.touches[0])},!1),r.addEventListener("touchend",function(i){d.isEmpty(i.changedTouches)||e._triggerEvent("touchend",i.changedTouches[0])},!1)},_scale:function(){if(this._cfg.renderType!=="svg"){var e=this.get("pixelRatio");this.scale(e,e)}},_setGlobalParam:function(){var e=this.get("renderer")||"canvas";e==="svg"?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",d.getRatio()),this._cfg.renderType=e;var r=o[e];this._cfg.renderer=r,this._cfg.canvas=this;var i=new a(this);this._cfg.timeline=i},_setContainer:function(){var e=this.get("containerId"),r=this.get("containerDOM");r||(r=document.getElementById(e),this.set("containerDOM",r)),d.modifyCSS(r,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),r=new this._cfg.renderer.painter(e);this._cfg.painter=r,this._cfg.canvasDOM=this._cfg.el=r.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),r=this.get("widthCanvas"),i=this.get("heightCanvas"),u=this.get("widthStyle"),c=this.get("heightStyle");e.style.width=u,e.style.height=c,e.setAttribute("width",r),e.setAttribute("height",i)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,r){var i=this.get("pixelRatio"),u=e*i,c=r*i;this.set("widthCanvas",u),this.set("heightCanvas",c),this.set("widthStyle",e+"px"),this.set("heightStyle",r+"px"),this.set("width",e),this.set("height",r),this._resize()},getPointByClient:function(e,r){var i=this.get("el"),u=this.get("pixelRatio")||1,c=i.getBoundingClientRect();return{x:(e-c.left)*u,y:(r-c.top)*u}},getClientByPoint:function(e,r){var i=this.get("el").getBoundingClientRect(),u=this.get("pixelRatio")||1;return{clientX:e/u+i.left,clientY:r/u+i.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,r,i){return arguments.length===3&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,r,i):n.superclass.getShape.call(this,e,r)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,r=e.containerDOM,i=e.canvasDOM;i&&r&&r.removeChild(i),e.timeline.stop(),n.superclass.destroy.call(this)}}),P.exports=n},function(P,b,p){var d=p(248),v={};p(257).mix(v,d.PathUtil,{getRectPath:d.PathUtil.rectPath,pointsToPolygon:function(a){for(var o=[["M",a[0].x,a[0].y]],n=1;nd?(h&&(clearTimeout(h),h=null),t=u,n=p.apply(a,o),h||(a=o=null)):h||v.trailing===!1||(h=setTimeout(e,c)),n};return r.cancel=function(){clearTimeout(h),t=0,h=a=o=null},r}},function(P,b,p){var d=p(46),v=p(596),h=Object.prototype.hasOwnProperty;P.exports=function(a,o){if(a===null||!v(a))return{};var n={};return d(o,function(t){h.call(a,t)&&(n[t]=a[t])}),n}},function(P,b,p){var d=p(46),v=p(118);P.exports=function(h,a){if(!v(h))return h;var o=[];return d(h,function(n,t){o.push(a(n,t))}),o}},function(P,b,p){var d=p(84),v=p(614);P.exports=function(h,a,o){return d(o)?!!o(h,a):v(h,a)}},function(P,b,p){var d=p(118);P.exports=function(v,h){if(!d(v))return-1;var a=Array.prototype.indexOf;if(a)return a.call(v,h);for(var o=-1,n=0;n0)){v[o]=h[o];break}a=d(a,v[o-1],1)}v[o]=["Q"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;case"T":v[o]=["T"].concat(a[0]);break;case"C":if(a.length<3){if(!(o>0)){v[o]=h[o];break}a=d(a,v[o-1],2)}v[o]=["C"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;case"S":if(a.length<2){if(!(o>0)){v[o]=h[o];break}a=d(a,v[o-1],1)}v[o]=["S"].concat(a.reduce(function(n,t){return n.concat(t)},[]));break;default:v[o]=h[o]}return v}},function(P,b,p){var d=p(46);P.exports=function(v,h){if(v.length!==h.length)return!1;var a=!0;return d(v,function(o,n){if(o!==h[n])return a=!1,!1}),a}},function(P,b,p){var d=p(770);function v(h,a,o){var n=null,t=o;return a=0;l--)r=e[l].index,e[l].type==="add"?h.splice(r,0,[].concat(h[r])):h.splice(r,1)}if((n=h.length)=3&&(y.length===3&&m.push("Q"),m=m.concat(y[1])),y.length===2&&m.push("L"),m=m.concat(y[y.length-1])})}(v,h,a));else{var n=[].concat(v);n[0]==="M"&&(n[0]="L");for(var t=0;t<=a-1;t++)o.push(n)}return o}P.exports=function(v,h){if(v.length===1)return v;var a=v.length-1,o=h.length-1,n=a/o,t=[];if(v.length===1&&v[0][0]==="M"){for(var e=0;e1?1:M<0?0:M)/2,O=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],A=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],E=0,_=0;_<12;_++){var C=S*O[_]+S,k=a(C,s,f,y,x),T=a(C,l,g,m,w),I=k*k+T*T;E+=A[_]*Math.sqrt(I)}return S*E},n=function(s,l,f,g,y,m,x,w){if(!(Math.max(s,f)Math.max(y,x)||Math.max(l,g)Math.max(m,w))){var M=(s-f)*(m-w)-(l-g)*(y-x);if(M){var S=((s*g-l*f)*(y-x)-(s-f)*(y*w-m*x))/M,O=((s*g-l*f)*(m-w)-(l-g)*(y*w-m*x))/M,A=+S.toFixed(2),E=+O.toFixed(2);if(!(A<+Math.min(s,f).toFixed(2)||A>+Math.max(s,f).toFixed(2)||A<+Math.min(y,x).toFixed(2)||A>+Math.max(y,x).toFixed(2)||E<+Math.min(l,g).toFixed(2)||E>+Math.max(l,g).toFixed(2)||E<+Math.min(m,w).toFixed(2)||E>+Math.max(m,w).toFixed(2)))return{x:S,y:O}}}},t=function(s,l,f){return l>=s.x&&l<=s.x+s.width&&f>=s.y&&f<=s.y+s.height},e=function(s,l,f,g){return s===null&&(s=l=f=g=0),l===null&&(l=s.y,f=s.width,g=s.height,s=s.x),{x:s,y:l,width:f,w:f,height:g,h:g,x2:s+f,y2:l+g,cx:s+f/2,cy:l+g/2,r1:Math.min(f,g)/2,r2:Math.max(f,g)/2,r0:Math.sqrt(f*f+g*g)/2,path:v(s,l,f,g),vb:[s,l,f,g].join(" ")}},r=function(s,l,f,g,y,m,x,w){d(s)||(s=[s,l,f,g,y,m,x,w]);var M=function(S,O,A,E,_,C,k,T){for(var I=[],D=[[],[]],R=void 0,j=void 0,B=void 0,X=void 0,et=0;et<2;++et)if(et===0?(j=6*S-12*A+6*_,R=-3*S+9*A-9*_+3*k,B=3*A-3*S):(j=6*O-12*E+6*C,R=-3*O+9*E-9*C+3*T,B=3*E-3*O),Math.abs(R)<1e-12){if(Math.abs(j)<1e-12)continue;(X=-B/j)>0&&X<1&&I.push(X)}else{var K=j*j-4*B*R,tt=Math.sqrt(K);if(!(K<0)){var J=(-j+tt)/(2*R);J>0&&J<1&&I.push(J);var nt=(-j-tt)/(2*R);nt>0&&nt<1&&I.push(nt)}}for(var at=I.length,W=at,q=void 0;at--;)q=1-(X=I[at]),D[0][at]=q*q*q*S+3*q*q*X*A+3*q*X*X*_+X*X*X*k,D[1][at]=q*q*q*O+3*q*q*X*E+3*q*X*X*C+X*X*X*T;return D[0][W]=S,D[1][W]=O,D[0][W+1]=k,D[1][W+1]=T,D[0].length=D[1].length=W+2,{min:{x:Math.min.apply(0,D[0]),y:Math.min.apply(0,D[1])},max:{x:Math.max.apply(0,D[0]),y:Math.max.apply(0,D[1])}}}.apply(null,s);return e(M.min.x,M.min.y,M.max.x-M.min.x,M.max.y-M.min.y)},i=function(s,l,f,g,y,m,x,w,M){var S=1-M,O=Math.pow(S,3),A=Math.pow(S,2),E=M*M,_=E*M,C=s+2*M*(f-s)+E*(y-2*f+s),k=l+2*M*(g-l)+E*(m-2*g+l),T=f+2*M*(y-f)+E*(x-2*y+f),I=g+2*M*(m-g)+E*(w-2*m+g);return{x:O*s+3*A*M*f+3*S*M*M*y+_*x,y:O*l+3*A*M*g+3*S*M*M*m+_*w,m:{x:C,y:k},n:{x:T,y:I},start:{x:S*s+M*f,y:S*l+M*g},end:{x:S*y+M*x,y:S*m+M*w},alpha:90-180*Math.atan2(C-T,k-I)/Math.PI}},u=function(s,l,f){if(!function(K,tt){return K=e(K),tt=e(tt),t(tt,K.x,K.y)||t(tt,K.x2,K.y)||t(tt,K.x,K.y2)||t(tt,K.x2,K.y2)||t(K,tt.x,tt.y)||t(K,tt.x2,tt.y)||t(K,tt.x,tt.y2)||t(K,tt.x2,tt.y2)||(K.xtt.x||tt.xK.x)&&(K.ytt.y||tt.yK.y)}(r(s),r(l)))return f?0:[];for(var g=~~(o.apply(0,s)/8),y=~~(o.apply(0,l)/8),m=[],x=[],w={},M=f?0:[],S=0;S=0&&X<=1&&et>=0&&et<=1&&(f?M++:M.push({x:B.x,y:B.y,t1:X,t2:et}))}}return M};P.exports=function(c,s){return function(l,f,g){l=h(l),f=h(f);for(var y=void 0,m=void 0,x=void 0,w=void 0,M=void 0,S=void 0,O=void 0,A=void 0,E=void 0,_=void 0,C=g?0:[],k=0,T=l.length;kt&&(n=r,t=e)}),n}}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v>0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%2!=0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v<0}},function(P,b,p){var d=p(236),v=Number.isInteger?Number.isInteger:function(h){return d(h)&&h%1==0};P.exports=v},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%2==0}},function(P,b,p){var d=p(236);P.exports=function(v){return d(v)&&v%1!=0}},function(P,b){P.exports=function(p,d){var v=d.toString(),h=v.indexOf(".");if(h===-1)return Math.round(p);var a=v.substr(h+1).length;return a>20&&(a=20),parseFloat(p.toFixed(a))}},function(P,b,p){var d=p(673);P.exports={clamp:p(618),fixedBase:p(788),isDecimal:p(787),isEven:p(786),isInteger:p(785),isNegative:p(784),isNumberEqual:d,isOdd:p(783),isPositive:p(782),maxBy:p(781),minBy:p(780),mod:p(672),snapEqual:d,toDegree:p(671),toInt:p(670),toInteger:p(670),toRadian:p(669)}},function(P,b,p){var d=p(45);P.exports=function(v){var h=0,a=0,o=0,n=0;return d(v)?v.length===1?h=a=o=n=v[0]:v.length===2?(h=o=v[0],a=n=v[1]):v.length===3?(h=v[0],a=n=v[1],o=v[2]):(h=v[0],a=v[1],o=v[2],n=v[3]):h=a=o=n=v,{r1:h,r2:a,r3:o,r4:n}}},function(P,b,p){var d=p(45),v=p(595),h=p(46),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;P.exports=function(n){return d(n=n||[])?n:v(n)?(n=n.match(a),h(n,function(t,e){if((t=t.match(o))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}h(t,function(i,u){isNaN(i)||(t[u]=+i)}),n[e]=t}),n):void 0}},function(P,b){var p={};P.exports=function(d){var v=p[d];if(!v){for(var h=d.toString(16),a=h.length;a<6;a++)h="0"+h;v="#"+h,p[d]=v}return v}},function(P,b,p){var d=p(792);P.exports={number2color:d,numberToColor:d,parsePath:p(791),parseRadius:p(790)}},function(P,b){P.exports=function(p,d){if(p["_wrap_"+d])return p["_wrap_"+d];var v=function(a){p[d](a)};return p["_wrap_"+d]=v,v}},function(P,b){P.exports=function(p,d){return p["_wrap_"+d]}},function(P,b,p){P.exports={getWrapBehavior:p(795),wrapBehavior:p(794)}},function(P,b,p){var d=p(237),v=p(45),h=p(46);P.exports=function(a,o){for(var n=[],t={},e=0;ei[c])return 1;if(r[c]1&&arguments[1]!==void 0?arguments[1]:[];if(d(h))for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:[];return d(h,function(o){return!v(a,o)})}},function(P,b,p){P.exports={contains:p(605),difference:p(808),find:p(807),firstValue:p(806),flatten:p(805),flattenDeep:p(804),getRange:p(803),merge:p(802),pull:p(676),pullAt:p(675),reduce:p(801),remove:p(800),sortBy:p(799),union:p(798),uniq:p(674),valuesOfKey:p(797)}},function(P,b){P.exports=function(p,d){var v=this.getStyle(p,"width",d);return v==="auto"&&(v=p.offsetWidth),parseFloat(v)}},function(P,b,p){var d=p(237);P.exports=function(v,h,a){try{return window.getComputedStyle?window.getComputedStyle(v,null)[h]:v.currentStyle[h]}catch(o){return d(a)?null:a}}},function(P,b){P.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(P,b){P.exports=function(p,d){var v=this.getWidth(p,d),h=parseFloat(this.getStyle(p,"borderLeftWidth"))||0,a=parseFloat(this.getStyle(p,"paddingLeft"))||0,o=parseFloat(this.getStyle(p,"paddingRight"))||0;return v+h+(parseFloat(this.getStyle(p,"borderRightWidth"))||0)+a+o}},function(P,b){P.exports=function(p,d){var v=this.getHeight(p,d),h=parseFloat(this.getStyle(p,"borderTopWidth"))||0,a=parseFloat(this.getStyle(p,"paddingTop"))||0,o=parseFloat(this.getStyle(p,"paddingBottom"))||0;return v+h+(parseFloat(this.getStyle(p,"borderBottomWidth"))||0)+a+o}},function(P,b){P.exports=function(p,d){var v=this.getStyle(p,"height",d);return v==="auto"&&(v=p.offsetHeight),parseFloat(v)}},function(P,b){P.exports=function(p,d){if(p&&p.getBoundingClientRect){var v=p.getBoundingClientRect(),h=document.documentElement.clientTop,a=document.documentElement.clientLeft;return{top:v.top-h,bottom:v.bottom-h,left:v.left-a,right:v.right-a}}return d||null}},function(P,b){P.exports=function(p,d,v){if(p){if(p.addEventListener)return p.addEventListener(d,v,!1),{remove:function(){p.removeEventListener(d,v,!1)}};if(p.attachEvent)return p.attachEvent("on"+d,v),{remove:function(){p.detachEvent("on"+d,v)}}}}},function(P,b,p){P.exports={addEventListener:p(817),createDom:p(681),getBoundingClientRect:p(816),getHeight:p(815),getOuterHeight:p(814),getOuterWidth:p(813),getRatio:p(812),getStyle:p(811),getWidth:p(810),modifyCSS:p(680),requestAnimationFrame:p(679)}},function(P,b,p){var d=p(46),v=p(606),h=p(818),a=p(809),o=p(796),n=p(793),t=p(789),e=p(779),r=p(778),i=p(774),u=p(768),c=p(763),s={DOMUtil:h,DomUtil:h,MatrixUtil:e,PathUtil:i,arrayUtil:a,domUtil:h,eventUtil:o,formatUtil:n,mathUtil:t,matrixUtil:e,objectUtil:r,stringUtil:u,pathUtil:i,typeUtil:c,augment:p(651),clone:p(616),debounce:p(756),deepMix:p(615),each:d,extend:p(650),filter:p(620),group:p(755),groupBy:p(648),groupToMap:p(649),indexOf:p(754),isEmpty:p(647),isEqual:p(614),isEqualWith:p(753),map:p(752),mix:v,pick:p(751),throttle:p(750),toArray:p(604),toString:p(594),uniqueId:p(646)};d([h,a,o,n,t,e,r,i,u,c],function(l){v(s,l)}),P.exports=s},function(P,b,p){var d=p(683),v=p(626),h=p(247),a=p(609),o=p(248),n={Graph:p(625),Tree:p(689),Util:p(26),Layouts:p(623),G:o,Plugins:{},Components:{},Global:h,Shape:d,registerNode:d.registerNode,registerEdge:d.registerEdge,registerGroup:d.registerGroup,registerGuide:d.registerGuide,registerBehaviour:v.registerBehaviour,version:a,track:function(e){h.track=e}};p(684),P.exports=n}])})},26857:function(U,P,b){(function(p,d){U.exports=d(b(20532))})(window,function(p){return function(d){var v={};function h(a){if(v[a])return v[a].exports;var o=v[a]={i:a,l:!1,exports:{}};return d[a].call(o.exports,o,o.exports,h),o.l=!0,o.exports}return h.m=d,h.c=v,h.d=function(a,o,n){h.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:n})},h.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},h.t=function(a,o){if(1&o&&(a=h(a)),8&o||4&o&&typeof a=="object"&&a&&a.__esModule)return a;var n=Object.create(null);if(h.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:a}),2&o&&typeof a!="string")for(var t in a)h.d(n,t,function(e){return a[e]}.bind(null,t));return n},h.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(o,"a",o),o},h.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},h.p="",h(h.s=267)}({266:function(v,h,a){function o(u){for(var c=1;c',g),M=e.createDOM('
',y),S=e.createDOM('
',m),O=e.createDOM('
',x);s.appendChild(w),w.appendChild(O),w.appendChild(S),w.appendChild(M),this.minimapContainer=w,this.background=M,this.viewPort=S,this.controlLayer=O},c.renderViewPort=function(s){if(s||(s=this.getGraph()),s.getItems().length!==0){var l=this.viewportWindow,f=this.viewportCanvas,g=this.viewportBack,y=this.miniMapMatrix,m=s.getWidth(),x=s.getHeight(),w=this.width,M=this.height,S=s.getMatrix();if(y){var O=e.invertMatrix({x:0,y:0},S),A=e.invertMatrix({x:m,y:x},S),E=e.applyMatrix(O,y),_=e.applyMatrix(A,y),C=_.x-E.x,k=_.y-E.y;g.attr({path:[["M",0,0],["L",w,0],["L",w,M],["L",0,M],["L",0,0],["M",E.x,E.y],["L",E.x,_.y],["L",_.x,_.y],["L",_.x,E.y],["L",E.x,E.y]]}),l.attr({x:E.x,y:E.y,width:C,height:k}),f.draw()}}},c.destroy=function(){this.minimapContainer.destroy()},u}();v.exports=i},267:function(v,h,a){function o(r,i,u){return i in r?Object.defineProperty(r,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[i]=u,r}var n=a(3),t=a(266),e=function(){function r(u){this.options=u}var i=r.prototype;return i.init=function(){var u=this.graph,c=new t(function(s){for(var l=1;lT&&(E=T,w=_,M=k,S=C)}}return{verticalPoint:M,index:w,vertical:S}}function l(m,x,w){var M,S,O,A=function(k){if(!k)return{x:void 0,y:void 0};var T=k.getBBox();return{x:T.centerX,y:T.centerY}}(x),E=m.getLinkPoints(A)[0];if(w){var _=t(m.getBBox())[w];M=m.getBBox(),S=_,O={x:x.getBBox().centerX,y:x.getBBox().centerY},((M.centerX-S.x)*(M.centerX-O.x)>0||(M.centerY-S.y)*(M.centerY-O.y)>0)&&(E=_)}E=e(E,m.getBBox());var C=x.getLinkPoints(E.point)[0];return{sourcePoint:E,targetPoint:C=e(C,x.getBBox())}}function f(m,x,w){return u(x,w)?m.minX>x[w].x?1:m.maxXx[w].y?1:m.maxYk-100&&c.mat3.translate(A,A,[0,k-100-T[1]]),T[0]>C-100&&c.mat3.translate(A,A,[C-100-T[0],0]),!0}},{key:"setSignal",value:function(A,E){this.get("_signals")[A]=E}},{key:"getSignal",value:function(A){return this.get("_signals")[A]}},{key:"setController",value:function(A,E){this.get("_controllers")[A]=E}},{key:"getController",value:function(A){return this.get("_controllers")[A]}},{key:"destroy",value:function(){var A=this.get("_graph"),E=this.get("_controllers");c.each(E,function(_){_.destroy()}),A.destroy()}}])&&t(M.prototype,S),O&&t(M,O),w}();c.each(y,function(x){c.mix(m.prototype,x.AUGMENT)}),d.exports=m},function(d,v,h){function a(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var o=h(6),n=h(14),t=o.createDOM("").getContext("2d");d.exports=function(e){for(var r=1;r2&&arguments[2]!==void 0?arguments[2]:320;t.font=r;var u=t.measureText(e).width;if(u>i){u=0;for(var c=1;c=i&&(e=e.substring(0,c)+` -`+e.substring(c,e.length),c+=1,u=0)}return e}})},function(d,v){d.exports={orbitGap:10,nodeDefaultShape:"flow-node",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-group",nodeActivedOutterStyle:{lineWidth:0},groupSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},nodeSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},edgeActivedStyle:{stroke:"#1890FF",strokeOpacity:.92},nodeActivedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupActivedStyle:{stroke:"#1890FF"},edgeSelectedStyle:{lineWidth:2,strokeOpacity:.92,stroke:"#A3B1BF"},nodeSelectedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupSelectedStyle:{stroke:"#1890FF",fillOpacity:.92},nodeStyle:{stroke:"#CED4D9",fill:"#FFFFFF",shadowOffsetX:0,shadowOffsetY:4,shadowBlur:10,shadowColor:"rgba(13, 26, 38, 0.08)",lineWidth:1,radius:4,fillOpacity:.92},edgeStyle:{stroke:"#A3B1BF",strokeOpacity:.92,lineWidth:1,lineAppendWidth:8,endArrow:!0},groupBackgroundPadding:[40,10,10,10],groupLabelOffsetX:10,groupLabelOffsetY:10,edgeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},edgeLabelRectPadding:4,edgeLabelRectStyle:{fill:"white"},nodeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",radius:4},groupLabelStyle:{fill:"#666",textAlign:"left",textBaseline:"top"},multiSelectRectStyle:{fill:"#1890FF",fillOpacity:.08,stroke:"#1890FF",opacity:.1},dragNodeHoverToGroupStyle:{stroke:"#1890FF",lineWidth:2},dragNodeLeaveFromGroupStyle:{stroke:"#BAE7FF",lineWidth:2},anchorPointStyle:{radius:3.5,fill:"#fff",stroke:"#1890FF",lineAppendWidth:12},anchorHotsoptStyle:{radius:12,fill:"#1890FF",fillOpacity:.25},anchorHotsoptActivedStyle:{radius:14},anchorPointHoverStyle:{radius:4,fill:"#1890FF",fillOpacity:1,stroke:"#1890FF"},nodeControlPointStyle:{radius:4,fill:"#fff",shadowBlur:4,shadowColor:"#666"},edgeControlPointStyle:{radius:6,symbol:"square",lineAppendWidth:6,fillOpacity:0,strokeOpacity:0},nodeSelectedBoxStyle:{stroke:"#C2C2C2"},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab",hoverNode:"move",hoverEffectiveAnchor:"crosshair",hoverEdge:"default",hoverGroup:"move",hoverUnEffectiveAnchor:"default",hoverEdgeControllPoint:"crosshair",multiSelect:"crosshair"},zIndex:{anchorPoint:3,anchorHotsopt:2,selectedBox:1,controlPoint:4},polylineEdgeStyle:{offset:10,borderRadius:5},addToGroupDelayTime:400,outFromGroupDelayTime:400}},function(d,v,h){function a(u){for(var c=1;c=0&&l.item(f)!==this;);return f>-1}).call(u,c)},delegateEvent:function(u,c,s,l){return i.addEventListener(u,c,function(f){for(var g=f.target||f.srcElement;g!==u;)i.matches(g,s)&&l.call(g,Array.prototype.slice.call(arguments)),g=g.parentNode})},Palettes:e});d.exports=i},function(d,v){d.exports=p},function(d,v,h){function a(y){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(y)}function o(y){for(var m=1;m0?_.hierarchy<=2?8:2:0},getHGap:function(_){return _.hierarchy===1?8:_.hierarchy===2?24:18},getVGap:function(_){return _.hierarchy===1||_.hierarchy===2?24:2},getSide:function(_){return _.data.side?_.data.side:"right"}}),mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"mind-base",edgeDefaultShape:"mind-edge",minZoom:.2,maxZoom:2},align:{item:!1},rootShape:"mind-root",firstSubShape:"mind-first-sub",secondSubShape:"mind-second-sub",subShape:"mind-base",nodeDefaultShape:"mind-base",graphConstructor:c.Tree,defaultSide:"right"},E={};return l.each(f,function(_){l.mix(E,_.CFG)}),l.mix(!0,A,E,S),(O=e(this,i(m).call(this,A))).isMind=!0,O}var x,w,M;return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&u(S,O)}(m,s),x=m,(w=[{key:"_init",value:function(){var S=this;r(i(m.prototype),"_init",this).call(this),l.each(f,function(D){D.INIT&&S[D.INIT]()});var O=this.getGraph(),A=this.get("defaultData"),E=O.get("mode"),_=O.getRootGroup().addGroup();if(this.set("hotAreaGroup",_),O.edge().shape(function(D){if(O.find(D.target).getModel().isPlaceholder)return"mind-placeholder-edge"}),A&&this.read(A),E==="default"){if(A){var C=this.getRoot(),k=O.find(C.id);this.setSelected(k,!0)}}else if(E==="readOnly"){var T=this.get("shortcut");T.append=!1,T.appendChild=!1,T.selectAll=!1,T.delete=!1}if(A){var I=this.getRoot();this.focus(I.id)}}},{key:"bindEvent",value:function(){var S=this;r(i(m.prototype),"bindEvent",this).call(this);var O=this.get("_graph");O.on("keydown",function(A){A.domEvent.preventDefault()}),O.on("beforechange",function(A){A.action==="add"?S._beforeAdd(A):A.action==="changeData"&&S._beforeChangeData(A)}),O.on("aftersource",function(){S._setHierarchy()}),O.on("afterchange",function(){S._setHotArea()}),O.on("afteritemdraw",function(A){var E=A.item,_=E.getModel();if(E.isEdge){var C=E.getGraphicGroup();l.toBack(C,C.getParent()),C.setSilent("capture",!1)}_.parent||(E.isRoot=!0,E.deleteable=!1,E.collapseExpand=!1,E.appendable=!1,E.dragable=!1)}),this.on("beforedelete",function(A){var E=A.items[0],_=S._getBrothers(E),C=S._getNth(E);_[C-1]?S.setSelected(_[C-1].id,!0):_[C+1]?S.setSelected(_[C+1].id,!0):S.setSelected(E.getParent(),!0)}),this.on("afteritemselected",function(A){S._tryAdjustViewport(A.item)})}},{key:"getRoot",value:function(){return this.getGraph().getSource().roots[0]}},{key:"_setHierarchy",value:function(S){var O=this.getGraph(),A=this.get("firstSubShape"),E=this.get("secondSubShape"),_=this.get("defaultSide");if(S){var C=O.find(S.parent);if(C){var k=C.getModel();S.hierarchy=k.hierarchy+1,S.shape!=="mind-placeholder"&&(S.hierarchy===2&&(S.shape=A,S.side||(S.side=_)),S.hierarchy===3&&(S.shape=E))}}else(S=this.getRoot()).hierarchy=1;l.traverseTree(S,function(T,I){T.hierarchy=I.hierarchy+1,T.side||(T.side=_),I.side&&(T.side=I.side),T.hierarchy===2?T.shape=A:T.hierarchy===3&&(T.shape=E)},function(T){return T.children})}},{key:"getFirstChildrenBySide",value:function(S){var O=this.getRoot(),A=[];return O.children.forEach(function(E){E.side===S&&A.push(E)}),A}},{key:"_getNth",value:function(S){return this.getGraph().getNth(S)}},{key:"_getBrothers",value:function(S){return S.getParent().getModel().children}},{key:"_getMoveChildModel",value:function(S){if(S&&S.length>0){var O=S.length;return S[parseInt(O/2)]}}},{key:"_getVerticalMoveItem",value:function(S,O,A){for(var E,_=this.getGraph().getNodes(),C=S.getBBox(),k=[C.minX,C.maxX],T=[],I=0;I0&&(T.sort(function(X,et){return X.long-et.long}),E=T[0].node),E}},{key:"_arrowTopItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A-1]?O[A-1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY<_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return _.centerY-E.centerY})}},{key:"_arrowBottomItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A+1]?O[A+1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY>_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return E.centerY-_.centerY})}},{key:"_arrowLeftItem",value:function(S){var O=l.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("left");return this._getMoveChildModel(A)}if(O==="left"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_arrowRightItem",value:function(S){var O=l.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("right");return this._getMoveChildModel(A)}if(O==="right"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_moveItemSelection",value:function(S){var O=this.getGraph(),A=this.getSelected()[0];if(A){var E,_=S.domEvent,C=l.getKeyboradKey(_);C!=="ArrowUp"||A.isRoot?C!=="ArrowDown"||A.isRoot?C==="ArrowLeft"?E=this._arrowLeftItem(A):C==="ArrowRight"&&(E=this._arrowRightItem(A)):E=this._arrowBottomItem(A):E=this._arrowTopItem(A),E&&(E=O.find(E.id)).isVisible()&&(this.clearSelected(),this.setSelected(E,!0))}}},{key:"showLabelEditor",value:function(S){var O=S.domEvent,A=this.getSelected()[0],E=l.getKeyboradKey(O);if(A&&E.length===1&&!O.metaKey&&!O.ctrlKey){var _=this.get("labelTextArea");A&&(this.beginEditLabel(A),_.innerHTML=E,l.setEndOfContenteditable(_))}}},{key:"_tryAdjustViewport",value:function(S){var O=this.get("_graph"),A=S.getBBox(),E={x:A.minX,y:A.minY},_={x:A.maxX,y:A.maxY},C=O.getDomPoint(E),k=O.getDomPoint(_),T=O.getWidth(),I=O.getHeight();C.x<0&&O.translate(16-C.x,0),C.y<0&&O.translate(0,16-C.y),k.x>T&&O.translate(T-k.x-16,0),k.y>I&&O.translate(0,I-k.y-16)}},{key:"_beforeChangeData",value:function(S){var O=S.data.roots[0],A=this.get("rootShape");O.shape=A,this._setHierarchy(O)}},{key:"_beforeAdd",value:function(S){var O=this.get("_graph"),A=S.model,E=O.find(A.parent);E.getModel().collapsed&&O.update(E,{collapsed:!1}),this._setHierarchy(A)}},{key:"_drawHotAreaShape",value:function(){var S=this.get("_graph"),O=this.get("hotAreaGroup"),A=this.get("hotAreas");O.clear(),A.forEach(function(E){O.addShape("rect",{attrs:{x:E.minX,y:E.minY,width:E.maxX-E.minX,height:E.maxY-E.minY,fill:E.color,fillOpacity:.4},capture:!1})}),S.draw()}},{key:"_setHotArea",value:function(){var S=[],O=this.get("_graph"),A=this.getRoot(),E="placeholder",_=this.get("showHotArea"),C=O.find(A.id).getBBox();S.push({minX:C.minX-90,minY:C.minY-60,maxX:(C.minX+C.maxX)/2,maxY:C.maxY+60,parent:A,current:A,id:A.id+"left"+E,nth:A.children.length,side:"left",color:"orange"}),S.push({minX:(C.minX+C.maxX)/2,minY:C.minY-60,maxX:C.maxX+90,maxY:C.maxY+60,parent:A,current:A,id:A.id+"right"+E,nth:A.children.length,side:"right",color:"pink"}),l.traverseTree(A,function(k,T,I){var D=O.find(k.id);if(!k.isPlaceholder&&D&&D.isVisible()){var R=function(nt,at,W){var q=W.children,Q=nt;if(!W.parent)for(;q[Q]&&q[Q].side!==at.side;)Q++;for(;q[Q]&&q[Q].isPlaceholder;)Q++;if(q[Q]&&q[Q].side===at.side)return q[Q]}(I+1,k,T),j=function(nt,at,W){var q=W.children,Q=nt;if(!W.parent)for(;q[Q]&&q[Q].side!==at.side;)Q--;for(;q[Q]&&q[Q].isPlaceholder;)Q--;if(q[Q]&&q[Q].side===at.side)return q[Q]}(I-1,k,T),B=O.find(k.id).getBBox(),X=T.children,et=k.hierarchy===2&&k.side==="right",K=k.hierarchy===2&&k.side==="left";if(j||S.push({minX:et?B.minX-90:B.minX,minY:function(){var nt=j?B.minY:B.minY-16;return X[I-1]&&X[I-1].isPlaceholder&&X[I-1].side===k.side&&(nt=O.find(X[I-1].id).getBBox().minY),nt}(),maxX:K?B.maxX+90:B.maxX,maxY:(B.minY+B.maxY)/2,parent:T,id:(j?j.id:void 0)+k.id+T.id+E,side:k.side,color:"yellow",nth:I}),R){var tt=O.find(R.id).getBBox();S.push({minX:k.side==="left"?Math.max(B.minX,tt.minX):et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:k.side==="right"?Math.min(B.maxX,tt.maxX):K?B.maxX+90:B.maxX,maxY:(tt.minY+tt.maxY)/2,parent:T,id:k.id+(R?R.id:void 0)+T.id+E,side:k.side,color:"blue",nth:I+1})}else S.push({minX:et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:K?B.maxX+90:B.maxX,maxY:function(){var nt=B.maxY+16;return X[I+1]&&X[I+1].isPlaceholder&&X[I+1].side===k.side&&(nt=O.find(X[I+1].id).getBBox().maxY),nt}(),parent:T,id:k.id+void 0+T.id+E,color:"red",nth:I+1,addOrder:"push",side:k.side});if(!k.children||k.children.length===0||k.children.length===1&&k.children[0].isPlaceholder){var J;J=k.x>T.x?{minX:B.maxX,minY:B.minY-0,maxX:B.maxX+100,maxY:B.maxY+0}:{minX:B.minX-100,minY:B.minY-0,maxX:B.minX,maxY:B.maxY+0},S.push(o({},J,{parent:k,id:NaN+k.id+E,nth:0,color:"green",side:k.side,addOrder:"push"}))}}},function(k){return k.children}),this.set("hotAreas",S),_&&this._drawHotAreaShape()}},{key:"hideHotArea",value:function(){var S=this.get("_graph");this.get("hotAreaGroup").clear(),S.draw(),this.set("showHotArea",!1)}},{key:"showHotArea",value:function(){this._drawHotAreaShape(),this.set("showHotArea",!0)}},{key:"getHotArea",value:function(S){var O;return this.get("hotAreas").forEach(function(A){if(S.x>A.minX&&S.xA.minY&&S.y
',{visibility:"hidden",width:x+"px",height:w+"px",position:"absolute"});return O.setAttribute("draggable","true"),c.addEventListener(O,"dragstart",function(){var A=O.hoverNode,E={shape:"bpmn-base",source:A.id,anchorIndex:O.getAttribute("anchorIndex")},_=A.getBBox(),C=M.getDelegation([{isEdge:!0}]);M.setSignal("dragEdge",!0),M.beginAdd("edge",E),M.set("addEdgeConfig",{addModel:E,delegation:C,startPoint:{x:_.centerX,y:_.centerY},sourceItem:A}),M.hideArrowController()}),S.push(O),O}},{key:"showArrowController",value:function(x){this.get("arrowController").controllers.forEach(function(w){w.show(),w.hoverNode=x})}},{key:"hideArrowController",value:function(){this.get("arrowController").controllers.forEach(function(x){x.hide()})}},{key:"_initArrowController",value:function(){var x=this.getGraph().getGraphContainer(),w=this.get("arrowController"),M=w.thickness,S=w.long,O=this._createArrowController(M,S),A=this._createArrowController(M,S),E=this._createArrowController(S,M),_=this._createArrowController(S,M);x.appendChild(O),x.appendChild(A),x.appendChild(E),x.appendChild(_),w.topArrow=O,w.bottomArrow=A,w.leftArrow=E,w.rightArrow=_}},{key:"bindEvent",value:function(){var x=this;t(e(f.prototype),"bindEvent",this).call(this);var w=this.getGraph();w.on("beforepanitem",function(){x.hideArrowController()}),w.on("afterviewportchange",function(){x.hideArrowController()})}}])&&o(g.prototype,y),m&&o(g,m),f}();u.setRegister(s,"bpmn","diagram"),d.exports=s},function(d,v,h){function a(x){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(x)}function o(x,w){for(var M=0;M0}function r(f){var g=f.getCurrentPage();this.snapShot=g.save(),this.selectedItems=g.getSelected().map(function(y){return y.id}),this.method&&(n.isString(this.method)?g[this.method]():this.method(f))}function i(f){var g=f.getCurrentPage();g.read(this.snapShot),g.setSelected(this.selectedItems,!0)}function u(f){return f.getCurrentPage().getMode()!==this.toMode}function c(f){var g=f.getCurrentPage();this.fromMode=g.getMode(),g.changeMode(this.toMode)}function s(f){f.getCurrentPage().changeMode(this.fromMode)}function l(f){var g={},y=[];return f.forEach(function(m){var x=m.model,w=n.mix(!0,{},a({},x,{id:n.guid()}));g[x.id]=w.id,y.push(a({},m,{model:w}))}),y.forEach(function(m){var x=m.model;if(x.parent){var w=g[x.parent];w?x.parent=w:delete x.parent}}),y.sort(function(m,x){return m.index-x.index}),y}t.list=[],t.registerCommand=function(f,g,y){if(t[f])n.mix(t[f],g);else{var m=a({enable:function(){return!0},init:function(){},execute:r,back:i,shortcutCodes:void 0,executeTimes:1,name:f,queue:!0},g);y&&t[y]&&(m=n.mix({},t[y],g)),t[f]=m,t.list.push(m)}},t.execute=function(f,g,y){var m=n.mix(!0,{},t[f],y),x=g.get("_command");return m.enable(g)&&(m.init(),m.queue&&(x.queue.splice(x.current,x.queue.length-x.current,m),x.current+=1),g.emit("beforecommandexecute",{command:m}),m.execute(g),g.emit("aftercommandexecute",{command:m}),g.setCommandDOMenable()),m},t.enable=function(f,g){return t[f].enable(g)},t.registerCommand("common",{back:i}),t.registerCommand("copyAdjacent",{enable:function(){return this.copyNode&&this.copyNode.isNode&&this.x&&this.y},execute:function(f){var g=this.copyNode,y=f.getCurrentPage(),m=y.getGraph(),x=g.getModel(),w=n.clone(x);w.id=n.guid(),w.x=this.x,w.y=this.y;var M=m.add("node",w),S=m.add("edge",{source:x.id,target:w.id});this.executeTimes===1&&(this.addIds=[M.id,S.id],this.page=y)},back:function(){var f=this.page.getGraph();this.addIds.forEach(function(g){f.remove(g)})}}),t.registerCommand("add",{enable:function(){return this.type&&this.addModel},execute:function(f){var g=f.getCurrentPage(),y=g.getGraph().add(this.type,this.addModel);this.executeTimes===1&&(this.addId=y.id,this.page=g)},back:function(){this.page.getGraph().remove(this.addId)}}),t.registerCommand("update",{enable:function(){return this.itemId&&this.updateModel},execute:function(f){var g=f.getCurrentPage(),y=g.getGraph(),m=y.find(this.itemId);this.executeTimes===1&&(this.originModel=n.getContrast(m.getModel(),this.updateModel),this.page=g),y.update(m,this.updateModel)},back:function(){var f=this.page.getGraph(),g=f.find(this.itemId);f.update(g,this.originModel)}}),t.registerCommand("redo",{queue:!1,enable:function(f){var g=f.get("_command"),y=g.queue;return g.current0},execute:function(f){var g=f.get("_command"),y=g.queue[g.current-1];y.executeTimes++,y.back(f),g.current-=1},shortcutCodes:[["metaKey","z"],["ctrlKey","z"]]}),t.registerCommand("copy",{queue:!1,enable:e,method:function(f){var g=f.getCurrentPage().getSelected(),y=f.get("_command"),m=g.map(function(w){return w.getGraphicGroup()}),x=n.getChildrenBBox(m);y.clipboard=[],g.forEach(function(w){n.traverseTree(w,function(M){var S=M.getModel(),O=M.getGraphicGroup();y.clipboard.push({type:M.type,index:n.getIndex(O),model:S})},function(M){return M.getChildren&&M.getChildren()},!0)}),f.set("copyCenterBox",a({},x))}}),t.registerCommand("pasteHere",{enable:function(f){return f.get("_command").clipboard.length>0},method:function(f){var g=f.getCurrentPage(),y=f.get("_command"),m=this.pasteData?this.pasteData:l(y.clipboard),x=this.copyCenterBox?this.copyCenterBox:f.get("copyCenterBox"),w=this.contextmenuPoint?this.contextmenuPoint:f.get("contextmenuPoint");g.clearSelected(),this.copyCenterBox=n.clone(x),this.pasteData=n.clone(m),this.contextmenuPoint=n.clone(w),m.forEach(function(M){var S=M.model;S.x&&(S.x+=w.x-x.minX),S.y&&(S.y+=w.y-x.minY),g.add(M.type,S)})},back:i}),t.registerCommand("paste",{enable:function(f){return f.get("_command").clipboard.length>0},method:function(f){var g=f.getCurrentPage(),y=f.get("_command"),m=this.pasteData?this.pasteData:l(y.clipboard);g.clearSelected(),this.pasteData=n.clone(m),m.forEach(function(x){var w=x.model;w.x&&(w.x+=10),w.y&&(w.y+=10),g.add(x.type,w)})},back:i}),t.registerCommand("addGroup",{init:function(){this.addGroupId=n.guid()},enable:function(f){return f.getCurrentPage().getSelected().length>1},method:function(f){f.getCurrentPage().addGroup({id:this.addGroupId})},back:i}),t.registerCommand("unGroup",{enable:function(f){var g=f.getCurrentPage().getSelected();return g.length===1&&g[0].isGroup},method:"unGroup",back:i}),t.registerCommand("delete",{getDeleteItems:function(f){var g=f.getCurrentPage(),y=g.getGraph(),m=this.itemIds?this.itemIds.map(function(x){return y.find(x)}):g.getSelected();return m=m.filter(function(x){return x.deleteable!==!1})},enable:function(f){return this.getDeleteItems(f).length>0},method:function(f){var g=f.getCurrentPage(),y=this.getDeleteItems(f),m=g.getGraph();g.emit("beforedelete",{items:y}),n.each(y,function(x){m.remove(x)}),g.emit("afterdelete",{items:y}),this.itemIds=y.map(function(x){return x.getModel().id})},back:i,shortcutCodes:["Delete","Backspace"]}),t.registerCommand("selectAll",{method:function(f){var g=f.getCurrentPage();g.getGraph().getItems().forEach(function(y){g.setSelected(y,!0)})},back:i,shortcutCodes:[["metaKey","a"]]}),t.registerCommand("toBack",{enable:e,method:"toBack",back:i}),t.registerCommand("toFront",{enable:e,method:"toFront",back:i}),t.registerCommand("clear",{enable:function(f){return f.getCurrentPage().getItems().length>0},method:"clear",back:i}),t.registerCommand("multiSelect",{enable:u,toMode:"multiSelect",execute:c,back:s}),t.registerCommand("move",{enable:u,toMode:"move",execute:c,back:s}),d.exports=t},function(d,v,h){d.exports=h(2)},function(d,v,h){"use strict";h.r(v),h.d(v,"mouseEnterEdge",function(){return o}),h.d(v,"mouseLeaveEdge",function(){return n}),h.d(v,"startMove",function(){return t}),h.d(v,"endMove",function(){return e}),h.d(v,"mouseMoveEdge",function(){return r}),h.d(v,"mergeLine",function(){return i});var a=h(0);function o(u){var c=u.graph,s=u.bpmn,l=u.ev,f=u.backUpCursor,g=l.item,y=g.model.controlPoints,m=Object(a.e)({x:l.x,y:l.y},y),x=m.index,w=m.vertical;x!=null&&(f&&(g._cursor=s.getGraph().getMouseEventWrapper().style.cursor),c.update(g,{hold:{index:x,vertical:w}}),w?s.css({cursor:"col-resize"}):s.css({cursor:"row-resize"}))}function n(u){var c=u.graph,s=u.bpmn,l=u.item;l._cursor&&s.css({cursor:l._cursor}),delete l._cursor,c.update(l,{hold:void 0})}function t(u,c){var s=c.item;u.update(s,{lastMouse:{x:c.x,y:c.y}})}function e(u){var c=u.graph,s=u.item;c.update(s,{lastMouse:void 0,moveDelta:void 0})}function r(u,c,s){var l;l=c.model&&c.model.hold&&c.model.hold.vertical?{x:s.x-c.model.lastMouse.x,y:0}:{x:0,y:s.y-c.model.lastMouse.y},u.update(c,{edgeMoved:l,modifiedByMouse:!0})}function i(u,c,s){var l,f=u.model,g=c||f.hold.index,y=f.controlPoints;s===null&&(s=f.hold.vertical);var m=[];return g>=2&&(s?Math.abs(y[g-2].x-y[g].x)<=3&&(l=[{x:y[g-2].x,y:y[g-2].y},{x:y[g-2].x,y:y[g+1].y}],m.push(g-1,g),f.hold.index=g-2,f.controlPoints[g+1].x=y[g-2].x):Math.abs(y[g-2].y-y[g].y)<=3&&(l=[{x:y[g-2].x,y:y[g-2].y},{x:y[g+1].x,y:y[g-2].y}],m.push(g-1,g),f.hold.index=g-2,f.controlPoints[g+1].y=y[g-2].y)),g<=y.length-4&&(s?Math.abs(y[g].x-y[g+2].x)<=3&&(l?(l[1]={x:y[g-2].x,y:y[g+3].y},f.controlPoints[g+3].x=y[g-2].x):(l=[{x:y[g+3].x,y:y[g].y},{x:y[g+3].x,y:y[g+3].y}],f.controlPoints[g].x=y[g+3].x),m.push(g+1,g+2)):Math.abs(y[g].y-y[g+2].y)<=3&&(l?(l[1]={x:y[g+3].x,y:y[g-2].y},f.controlPoints[g+3].y=y[g-2].y):(l=[{x:y[g].x,y:y[g+3].y},{x:y[g+3].x,y:y[g+3].y}],f.controlPoints[g].y=y[g+3].y),m.push(g+1,g+2))),m&&m.length&&y.splice(m[0],m.length),l}},function(d,v,h){function a(s){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}function o(s,l){return!l||a(l)!=="object"&&typeof l!="function"?function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(s):l}function n(s){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)})(s)}function t(s,l){for(var f=0;f2&&arguments[2]!==void 0&&arguments[2];return n.getEdges().filter(function(r){var i=r.getModel();return i.target===t.id||e&&i.source===t.id})},object2array:function(n){var t=[];return o.each(n,function(e){t.push(e)}),t}})},function(d,v,h){function a(c){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var l=0;lsatellite"},bindEvent:function(){return[]}}}},{key:"_renderDOM",value:function(){var y=i.createDOM(this.render(this.diagram));return this.dom=y,y.isSatellite=!0,y}},{key:"getDOM",value:function(){return this.dom||this._renderDOM()}},{key:"init",value:function(){var y=this.getDOM(),m=this.diagram.getGraph().getGraphContainer();y&&(y.css({position:"absolute",visibility:"hidden"}),m.appendChild(y),y&&this.bindEvent(y,this.diagram))}},{key:"enable",value:function(){return!0}},{key:"show",value:function(){this.getDOM().show()}},{key:"hide",value:function(){this.getDOM().hide()}},{key:"isVisible",value:function(){return this.getDOM().style.visibility!=="hidden"}},{key:"destroy",value:function(){var y=this.events;y&&y.forEach(function(m){m.remove()})}}])&&o(l.prototype,f),g&&o(l,g),s}();d.exports=u},function(d,v,h){d.exports=h(2)},function(d,v,h){var a=h(26),o=h(6),n=h(15);h(7),a.Editor=a,a.Util=o,a.Diagram=h(16),a.Page=h(1),a.Flow=h(95),a.Koni=h(102),a.Mind=h(107),a.Toolbar=h(121),a.Contextmenu=h(122),a.Command=h(15),a.BPMN=h(123),a.registerBehaviour=a.Page.registerBehaviour,a.registerNode=a.Page.registerNode,a.registerEdge=a.Page.registerEdge,a.registerGroup=a.Page.registerGroup,a.registerGuide=a.Page.registerGuide,a.registerCommand=n.registerCommand,d.exports=a},function(d,v,h){function a(s){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}function o(s,l){for(var f=0;f0;w-=1){var M=x.toHsv(),S=(0,n.default)({h:l(M,w,!0),s:f(M,w,!0),v:g(M,w,!0)}).toHexString();m.push(S)}m.push(x.toHexString());for(var O=1;O<=s;O+=1){var A=x.toHsv(),E=(0,n.default)({h:l(A,O),s:f(A,O),v:g(A,O)}).toHexString();m.push(E)}return m};var a,o=h(31),n=(a=o)&&a.__esModule?a:{default:a},t=2,e=16,r=5,i=5,u=15,c=5,s=4;function l(y,m,x){var w=void 0;return(w=Math.round(y.h)>=60&&Math.round(y.h)<=240?x?Math.round(y.h)-t*m:Math.round(y.h)+t*m:x?Math.round(y.h)+t*m:Math.round(y.h)-t*m)<0?w+=360:w>=360&&(w-=360),w}function f(y,m,x){if(y.h===0&&y.s===0)return y.s;var w=void 0;return(w=x?Math.round(100*y.s)-e*m:m===s?Math.round(100*y.s)+e:Math.round(100*y.s)+r*m)>100&&(w=100),x&&m===c&&w>10&&(w=10),w<6&&(w=6),w}function g(y,m,x){return x?Math.round(100*y.v)+i*m:Math.round(100*y.v)-u*m}},function(d,v,h){var a;(function(o){var n=/^\s+/,t=/\s+$/,e=0,r=o.round,i=o.min,u=o.max,c=o.random;function s(Y,N){if(N=N||{},(Y=Y||"")instanceof s)return Y;if(!(this instanceof s))return new s(Y,N);var L=function(G){var H={r:0,g:0,b:0},F=1,$=null,st=null,ot=null,ct=!1,ht=!1;typeof G=="string"&&(G=function(lt){lt=lt.replace(n,"").replace(t,"").toLowerCase();var rt,gt=!1;if(D[lt])lt=D[lt],gt=!0;else if(lt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(rt=Q.rgb.exec(lt))?{r:rt[1],g:rt[2],b:rt[3]}:(rt=Q.rgba.exec(lt))?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=Q.hsl.exec(lt))?{h:rt[1],s:rt[2],l:rt[3]}:(rt=Q.hsla.exec(lt))?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=Q.hsv.exec(lt))?{h:rt[1],s:rt[2],v:rt[3]}:(rt=Q.hsva.exec(lt))?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=Q.hex8.exec(lt))?{r:et(rt[1]),g:et(rt[2]),b:et(rt[3]),a:nt(rt[4]),format:gt?"name":"hex8"}:(rt=Q.hex6.exec(lt))?{r:et(rt[1]),g:et(rt[2]),b:et(rt[3]),format:gt?"name":"hex"}:(rt=Q.hex4.exec(lt))?{r:et(rt[1]+""+rt[1]),g:et(rt[2]+""+rt[2]),b:et(rt[3]+""+rt[3]),a:nt(rt[4]+""+rt[4]),format:gt?"name":"hex8"}:(rt=Q.hex3.exec(lt))?{r:et(rt[1]+""+rt[1]),g:et(rt[2]+""+rt[2]),b:et(rt[3]+""+rt[3]),format:gt?"name":"hex"}:!1}(G)),typeof G=="object"&&(it(G.r)&&it(G.g)&&it(G.b)?(pt=G.r,Z=G.g,z=G.b,H={r:255*B(pt,255),g:255*B(Z,255),b:255*B(z,255)},ct=!0,ht=String(G.r).substr(-1)==="%"?"prgb":"rgb"):it(G.h)&&it(G.s)&&it(G.v)?($=tt(G.s),st=tt(G.v),H=function(lt,rt,gt){lt=6*B(lt,360),rt=B(rt,100),gt=B(gt,100);var mt=o.floor(lt),St=lt-mt,Mt=gt*(1-rt),Ot=gt*(1-St*rt),yt=gt*(1-(1-St)*rt),wt=mt%6;return{r:255*[gt,Ot,Mt,Mt,yt,gt][wt],g:255*[yt,gt,gt,Ot,Mt,Mt][wt],b:255*[Mt,Mt,yt,gt,gt,Ot][wt]}}(G.h,$,st),ct=!0,ht="hsv"):it(G.h)&&it(G.s)&&it(G.l)&&($=tt(G.s),ot=tt(G.l),H=function(lt,rt,gt){var mt,St,Mt;function Ot(Et,Pt,At){return At<0&&(At+=1),At>1&&(At-=1),At<1/6?Et+6*(Pt-Et)*At:At<.5?Pt:At<2/3?Et+(Pt-Et)*(2/3-At)*6:Et}if(lt=B(lt,360),rt=B(rt,100),gt=B(gt,100),rt===0)mt=St=Mt=gt;else{var yt=gt<.5?gt*(1+rt):gt+rt-gt*rt,wt=2*gt-yt;mt=Ot(wt,yt,lt+1/3),St=Ot(wt,yt,lt),Mt=Ot(wt,yt,lt-1/3)}return{r:255*mt,g:255*St,b:255*Mt}}(G.h,$,ot),ct=!0,ht="hsl"),G.hasOwnProperty("a")&&(F=G.a));var pt,Z,z;return F=j(F),{ok:ct,format:G.format||ht,r:i(255,u(H.r,0)),g:i(255,u(H.g,0)),b:i(255,u(H.b,0)),a:F}}(Y);this._originalInput=Y,this._r=L.r,this._g=L.g,this._b=L.b,this._a=L.a,this._roundA=r(100*this._a)/100,this._format=N.format||L.format,this._gradientType=N.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=L.ok,this._tc_id=e++}function l(Y,N,L){Y=B(Y,255),N=B(N,255),L=B(L,255);var G,H,F=u(Y,N,L),$=i(Y,N,L),st=(F+$)/2;if(F==$)G=H=0;else{var ot=F-$;switch(H=st>.5?ot/(2-F-$):ot/(F+$),F){case Y:G=(N-L)/ot+(N>1)+720)%360;--N;)G.h=(G.h+H)%360,F.push(s(G));return F}function I(Y,N){N=N||6;for(var L=s(Y).toHsv(),G=L.h,H=L.s,F=L.v,$=[],st=1/N;N--;)$.push(s({h:G,s:H,v:F})),F=(F+st)%1;return $}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,N,L,G=this.toRgb();return Y=G.r/255,N=G.g/255,L=G.b/255,.2126*(Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4))+.7152*(N<=.03928?N/12.92:o.pow((N+.055)/1.055,2.4))+.0722*(L<=.03928?L/12.92:o.pow((L+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=r(100*this._a)/100,this},toHsv:function(){var Y=f(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=f(this._r,this._g,this._b),N=r(360*Y.h),L=r(100*Y.s),G=r(100*Y.v);return this._a==1?"hsv("+N+", "+L+"%, "+G+"%)":"hsva("+N+", "+L+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var Y=l(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=l(this._r,this._g,this._b),N=r(360*Y.h),L=r(100*Y.s),G=r(100*Y.l);return this._a==1?"hsl("+N+", "+L+"%, "+G+"%)":"hsla("+N+", "+L+"%, "+G+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(N,L,G,H,F){var $=[K(r(N).toString(16)),K(r(L).toString(16)),K(r(G).toString(16)),K(J(H))];return F&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(100*B(this._r,255))+"%",g:r(100*B(this._g,255))+"%",b:r(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%)":"rgba("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(R[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var N="#"+y(this._r,this._g,this._b,this._a),L=N,G=this._gradientType?"GradientType = 1, ":"";if(Y){var H=s(Y);L="#"+y(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+N+",endColorstr="+L+")"},toString:function(Y){var N=!!Y;Y=Y||this._format;var L=!1,G=this._a<1&&this._a>=0;return N||!G||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(L=this.toRgbString()),Y==="prgb"&&(L=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(L=this.toHexString()),Y==="hex3"&&(L=this.toHexString(!0)),Y==="hex4"&&(L=this.toHex8String(!0)),Y==="hex8"&&(L=this.toHex8String()),Y==="name"&&(L=this.toName()),Y==="hsl"&&(L=this.toHslString()),Y==="hsv"&&(L=this.toHsvString()),L||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(Y,N){var L=Y.apply(null,[this].concat([].slice.call(N)));return this._r=L._r,this._g=L._g,this._b=L._b,this.setAlpha(L._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(Y,N){return Y.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},s.fromRatio=function(Y,N){if(typeof Y=="object"){var L={};for(var G in Y)Y.hasOwnProperty(G)&&(L[G]=G==="a"?Y[G]:tt(Y[G]));Y=L}return s(Y,N)},s.equals=function(Y,N){return!(!Y||!N)&&s(Y).toRgbString()==s(N).toRgbString()},s.random=function(){return s.fromRatio({r:c(),g:c(),b:c()})},s.mix=function(Y,N,L){L=L===0?0:L||50;var G=s(Y).toRgb(),H=s(N).toRgb(),F=L/100;return s({r:(H.r-G.r)*F+G.r,g:(H.g-G.g)*F+G.g,b:(H.b-G.b)*F+G.b,a:(H.a-G.a)*F+G.a})},s.readability=function(Y,N){var L=s(Y),G=s(N);return(o.max(L.getLuminance(),G.getLuminance())+.05)/(o.min(L.getLuminance(),G.getLuminance())+.05)},s.isReadable=function(Y,N,L){var G,H,F=s.readability(Y,N);switch(H=!1,(G=function($){var st,ot;return st=(($=$||{level:"AA",size:"small"}).level||"AA").toUpperCase(),ot=($.size||"small").toLowerCase(),st!=="AA"&&st!=="AAA"&&(st="AA"),ot!=="small"&&ot!=="large"&&(ot="small"),{level:st,size:ot}}(L)).level+G.size){case"AAsmall":case"AAAlarge":H=F>=4.5;break;case"AAlarge":H=F>=3;break;case"AAAsmall":H=F>=7}return H},s.mostReadable=function(Y,N,L){var G,H,F,$,st=null,ot=0;H=(L=L||{}).includeFallbackColors,F=L.level,$=L.size;for(var ct=0;ctot&&(ot=G,st=s(N[ct]));return s.isReadable(Y,st,{level:F,size:$})||!H?st:(L.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],L))};var D=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=s.hexNames=function(Y){var N={};for(var L in Y)Y.hasOwnProperty(L)&&(N[Y[L]]=L);return N}(D);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function B(Y,N){(function(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1})(Y)&&(Y="100%");var L=function(G){return typeof G=="string"&&G.indexOf("%")!=-1}(Y);return Y=i(N,u(0,parseFloat(Y))),L&&(Y=parseInt(Y*N,10)/100),o.abs(Y-N)<1e-6?1:Y%N/parseFloat(N)}function X(Y){return i(1,u(0,Y))}function et(Y){return parseInt(Y,16)}function K(Y){return Y.length==1?"0"+Y:""+Y}function tt(Y){return Y<=1&&(Y=100*Y+"%"),Y}function J(Y){return o.round(255*parseFloat(Y)).toString(16)}function nt(Y){return et(Y)/255}var at,W,q,Q=(W="[\\s|\\(]+("+(at="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+at+")[,|\\s]+("+at+")\\s*\\)?",q="[\\s|\\(]+("+at+")[,|\\s]+("+at+")[,|\\s]+("+at+")[,|\\s]+("+at+")\\s*\\)?",{CSS_UNIT:new RegExp(at),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+q),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 it(Y){return!!Q.CSS_UNIT.exec(Y)}d.exports?d.exports=s:(a=function(){return s}.call(v,h,v,d))===void 0||(d.exports=a)})(Math)},function(d,v,h){var a=h(18);function o(t){var e=t.getCurrentPage();this.matrixCache=e.getMatrix().slice(0),this._zoom(t),e.updateStatus()}function n(t){t.getCurrentPage().updateMatrix(this.matrixCache)}a.registerCommand("zoomTo",{_zoom:function(t){t.getCurrentPage().zoom(Number(this.zoom))},queue:!1,execute:o,back:n}),a.registerCommand("zoomIn",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),i=e.getMinZoom(),u=e.getZoom();return u=u&&(c=u),e.zoom(c)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","="],["ctrlKey","="]]}),a.registerCommand("zoomOut",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),i=e.getMinZoom(),u=e.getZoom();return u>i||u===r},_zoom:function(t){var e=t.getCurrentPage(),r=e.getZoom(),i=e.getMinZoom(),u=r-t.get("_command").zoomDelta;u<=i&&(u=i),e.zoom(u)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","-"],["ctrlKey","-"]]}),a.registerCommand("autoZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().autoZoom()},queue:!1,execute:o,back:n}),a.registerCommand("resetZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().resetZoom()},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","0"],["ctrlKey","0"]]})},function(d,v,h){var a=h(18);a.registerCommand("collapseExpand",{getItem:function(o){var n=o.getCurrentPage(),t=n.getGraph();return this.itemId?t.find(this.itemId):n.getSelected()[0]},enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0},execute:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);e.getModel().collapsed?(t.update(e,{collapsed:!1}),e.getInnerEdges&&e.getInnerEdges().forEach(function(r){r.update()}),this.toCollapsed=!1):(t.update(e,{collapsed:!0}),this.toCollapsed=!0),n.clearSelected(),n.setSelected(e,!0),this.executeTimes===1&&(this.itemId=e.id)},back:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);this.toCollapsed?t.update(e,{collapsed:!1}):t.update(e,{collapsed:!0}),n.clearSelected(),n.setSelected(e,!0)},shortcutCodes:[["metaKey","/"],["ctrlKey","/"]]}),a.registerCommand("collapse",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&!n.getModel().collapsed}},"collapseExpand"),a.registerCommand("expand",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&n.getModel().collapsed}},"collapseExpand")},function(d,v,h){function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=h(4),n={INIT:"_initGraph"};n.AUGMENT={_initGraph:function(){var t=this.get("graph"),e=new(this.get("graphConstructor"))(function(r){for(var i=1;i
',{position:"absolute",visibility:"hidden","z-index":"2",padding:"0px 2px 0px 0px",resize:"none",width:"auto",height:"auto",outline:"none",border:"1px solid #1890FF","transform-origin":"left top","max-width":"320px",background:"white","box-sizing":"content-box"});t.getGraphContainer().appendChild(e),e.on("blur",function(r){r.stopPropagation(),!t.destroyed&&n.endEditLabel()}),e.on("keydown",function(r){r.stopPropagation();var i=a.getKeyboradKey(r);(r.metaKey&&i==="s"||r.ctrlKey&&i==="s")&&r.preventDefault(),i!=="Enter"&&i!=="Escape"||n.endEditLabel()}),this.set("labelTextArea",e),t.on("beforeviewportchange",function(){e.focusItem&&n.setLabelEditorBeginPosition(e.focusItem)})}},_getLabelTextAreaBox:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];t&&n.attr("text",t);var r=this.getGraph().getRootGroup(),i=a.getBBox(n,r);return{minX:i.minX-e[1],minY:i.minY-e[0],maxX:i.maxX+e[1],maxY:i.maxY+e[0]}},setLabelEditorBeginPosition:function(n){var t=this.get("labelTextArea"),e=n.getLabel();if(e){var r=this._getLabelTextAreaBox(e),i=e.attr("lineHeight"),u=e.attr("fontSize"),c={x:r.minX,y:r.minY-i/4+u/4-1,width:r.maxX-r.minX,height:r.maxY-r.minY};t.css({top:c.y+"px",left:c.x+"px"}),t.labelPoint=c}else{var s=this.getGraph().getRootGroup(),l=n.getKeyShape(),f=a.getBBox(l,s),g={x:f.minY+(f.maxY-f.minY-t.height())/2,y:(f.minX+f.maxX)/2};t.css({top:g.x+"px",left:g.y+"px"}),t.labelPoint=g}},beginEditLabel:function(n){var t=this.get("labelTextArea"),e=this.getGraph();if(a.isString(n)&&(n=e.find(n)),n&&!n.destroyed&&t){this.setSignal("preventWheelPan",!0);var r=n.getModel(),i=n.getLabel(),u=e.getZoom();if(t.focusItem=n,i){var c=i.attr("lineHeight"),s=this._getLabelTextAreaBox(i),l=(s.maxX-s.minX)/u,f=(s.maxY-s.minY+c/4)/u;t.innerHTML=r.label,t.innerHTML=r.label,t.css({"min-width":l+"px","min-height":f+"px",visibility:"visible","font-family":i.attr("fontFamily"),"line-height":c+"px","font-size":i.attr("fontSize")+"px",transform:"scale("+u+")"})}else t.innerHTML="",t.css({"min-width":"auto","min-height":"auto"});this.setLabelEditorBeginPosition(n),t.css({visibility:"visible"}),t.focus(),document.execCommand("selectAll",!1,null)}},endEditLabel:function(){var n=this.get("labelTextArea");if(this.setSignal("preventWheelPan",!1),n){var t=n.focusItem;if(t){var e=t.getModel(),r=this.editor;e.label!==n.textContent&&r.executeCommand("update",{action:"updateLabel",itemId:t.id,updateModel:{label:n.textContent}}),n.hide(),n.focusItem=void 0,this.focusGraphWrapper()}}}},d.exports=o},function(d,v){var h={AUGMENT:{updateStatus:function(){var a,o=this.getSelected();o.length===0?a="canvas-selected":o.length===1?o[0].isNode?a="node-selected":o[0].isEdge?a="edge-selected":o[0].isGroup&&(a="group-selected"):a="multi-selected",this.emit("statuschange",{status:a})}}};d.exports=h},function(d,v,h){h(45),h(46),h(47),h(48),h(49),h(50),h(51),h(52),h(53),h(54),h(55),h(56),h(57),h(58),h(59),h(60),h(61),h(62)},function(d,v,h){var a=h(3),o=h(4);a.registerBehaviour("panBlank",o.getPanCanvasBehaviour(!0))},function(d,v,h){h(3).registerBehaviour("hoverButton",function(a){a.getGraph().behaviourOn("mouseenter",function(o){a.getSignal("panningItem")||o.shape&&o.shape.isButton&&a.css({cursor:"pointer"})})})},function(d,v,h){var a=h(3),o=h(4);a.registerBehaviour("panCanvas",o.getPanCanvasBehaviour())},function(d,v,h){var a=h(3),o=h(14),n=h(4);a.registerBehaviour("wheelChangeViewport",function(t){var e,r=t.getGraph();r.behaviourOn("wheel",function(i){i.domEvent.preventDefault()}),r.behaviourOn("wheel",n.throttle(function(i){if(!t.getSignal("preventWheelPan")){var u=i.domEvent,c=t.getSignal("wheelZoom");if(e||t.setCapture(!1),c){var s=u.wheelDelta;if(Math.abs(s)>10){var l=r.getMatrix()[0];s>0?r.zoom({x:i.x,y:i.y},1.05*l):r.zoom({x:i.x,y:i.y},l*(1/1.05))}}else{var f=[],g=r.getMatrix();n.mat3.translate(f,g,[u.wheelDeltaX*o.wheelPanRatio,u.wheelDeltaY*o.wheelPanRatio]),t.translateLimt(f)&&r.updateMatrix(f)}e&&clearTimeout(e),e=setTimeout(function(){t.setCapture(!0),e=void 0},50)}},16))})},function(d,v,h){h(3).registerBehaviour("processPanItem",function(a){var o=a.getGraph();o.behaviourOn("mousemove",function(n){var t=a.get("panItemDelegation");if(t){var e=a.get("panItemStartPoint"),r=a.get("panItemStartBox"),i=n.x-e.x,u=n.y-e.y,c=a.align({x:r.minX+i,y:r.minY+u},{width:r.width,height:r.height});t.attr({x:c.x,y:c.y}),o.emit("itempanning",n),o.draw()}})})},function(d,v,h){h(3).registerBehaviour("startPanItem",function(a){var o=a.getGraph(),n=o.getRootGroup();o.behaviourOn("dragstart",function(t){if(t.button!==2&&t.item&&(t.item.isNode||t.item.isGroup)){var e,r=t.item;if((e=(e=r.isSelected?a.getSelected():[r]).filter(function(c){return c.isNode||c.isGroup}))[0]&&e[0].dragable!==!1){o.emit("beforepanitem",{items:e}),o.emit("beforeshowdelegation",{items:e});var i=a.getDelegation(e,n),u=i.getBBox();a.setSignal("panningItem",!0),a.set("panItems",e),a.set("panItemDelegation",i),a.set("panItemStartBox",u),a.set("panItemStartPoint",{x:t.x,y:t.y}),o.draw()}}})})},function(d,v,h){h(3).registerBehaviour("endPanItem",function(a){var o=a.getGraph();o.behaviourOn("panitemend",function(){var n=a.get("panItemDelegation");n&&(n.remove(),o.draw()),a.setSignal("panningItem",!1),a.set("panItemDelegation",void 0),a.set("panItemStartPoint",void 0),a.set("panItemStartBox",void 0),a.set("panItems",void 0)}),o.behaviourOn("canvas:mouseleave",function(){a.get("panItems")&&(a.clearAlignLine(),o.emit("panitemend"))})})},function(d,v,h){h(3).registerBehaviour("dblclickItemEditLabel",function(a){a.getGraph().behaviourOn("node:dblclick",function(o){o.shape&&!o.shape.isButton&&a.beginEditLabel(o.item)})})},function(d,v,h){h(3).registerBehaviour("clickCanvasSelected",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){n.shape||(a.clearSelected(),a.clearActived(),a.updateStatus())}),o.behaviourOn("contextmenu",function(n){n.shape||(a.clearSelected(),a.clearActived(),a.updateStatus())})})},function(d,v,h){h(3).registerBehaviour("clickCollapsedButton",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isCollapsedButton){var r=a.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!0})}})})},function(d,v,h){h(3).registerBehaviour("clickEdgeSelected",function(a){a.getGraph().behaviourOn("edge:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("clickExpandedButton",function(a){var o=a.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isExpandedButton){var r=a.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!1})}})})},function(d,v,h){h(3).registerBehaviour("clickGroupSelected",function(a){a.getGraph().behaviourOn("group:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("clickNodeSelected",function(a){a.getGraph().behaviourOn("node:click",function(o){a.get("multiSelectable")&&a.getSignal("shiftKeyDown")===!0||(a.clearActived(),a.clearSelected()),a.setSelected(o.item.id,!0)})})},function(d,v,h){h(3).registerBehaviour("hoverNodeActived",function(a){var o,n=a.getGraph();n.behaviourOn("node:mouseenter",function(t){t.item.getShapeObj().panAble!==!1&&a.css({cursor:"move"}),a.getSignal("panningItem")||a.getSignal("dragEdge")||t.item&&t.item.isSelected||(o=t.item,a.setActived(o,!0))}),n.behaviourOn("node:mouseleave",function(t){var e=t.toShape;o&&(e&&e.isAnchor&&e.getItem()===o||a.getSignal("dragEdge")||(o.isSelected||a.setActived(o,!1),o=void 0))})})},function(d,v,h){h(3).registerBehaviour("hoverGroupActived",function(a){var o=a.getGraph();o.behaviourOn("mouseenter",function(n){a.getSignal("panningItem")||n.item&&n.item.isSelected||a.getSignal("dragEdge")||n.shape&&n.shape.isGroupKeyShape&&(a.css({cursor:"move"}),a.setActived(n.item,!0))}),o.behaviourOn("group:mouseleave",function(n){n.item.isActived&&!n.item.isSelected&&a.setActived(n.item,!1)})})},function(d,v,h){h(3).registerBehaviour("hoverEdgeActived",function(a){var o=a.getGraph();o.behaviourOn("edge:mouseenter",function(n){a.getSignal("panningItem")||n.item&&n.item.isSelected||a.getSignal("dragEdge")||a.setActived(n.item,!0)}),o.behaviourOn("edge:mouseleave",function(n){a.setActived(n.item,!1)})})},function(d,v,h){h(3).registerBehaviour("keydownCmdWheelZoom",function(a){var o=a.getGraph();o.behaviourOn("keydown",function(n){n.domEvent.keyCode===91&&a.setSignal("wheelZoom",!0)}),o.behaviourOn("keyup",function(n){n.domEvent.keyCode===91&&a.setSignal("wheelZoom",!1)})})},function(d,v,h){var a=h(22);d.exports={dragingEdgeEndPoint:function(o){var n=o.endPointType,t=o.edgeModel,e=o.graph,r=o.delegation,i=o.startPoint,u=o.ev,c=o.source,s=o.target,l=u.item,f=n==="source"?[u,i]:[i,u];l&&(n==="source"?s=l:c=l);var g=e.getShapeObj("edge",t).getPathByPoints({points:f,source:c,target:s});r.attr("path",g),e.draw()},panGroup:function(o,n,t,e){var r=o.getModel();a.traverseTree(o,function(i){if(i.type==="node"){var u=i.getModel();e.update(i,{x:u.x+n,y:u.y+t})}o.getCrossEdges&&o.getCrossEdges().forEach(function(c){c.update()})},function(i){return i.type==="group"?i.getChildren():[]}),e.update(o,{x:r.x+n,y:r.y+t})},dropUpdateEdge:function(o){var n=o.ev,t=o.endPointType,e=o.model,r=o.diagram,i=r.get("noEndEdge"),u=r.get("linkAnchor"),c=r.get("linkNode"),s=n.item,l=n.shape,f=n.x,g=n.y;if(r.getGraph().emit("beforedropedge"),l){if(u&&l.isAnchor&&l.hasHotspot){var y=l,m=y.getItem();return t==="target"?(e.target=m.id,e.targetAnchor=y.getIndex(),!0):(e.source=m.id,e.sourceAnchor=y.getIndex(),!0)}if(c&&s&&s.isNode)return t==="target"?(e.target=s.id,!0):(e.source=s.id,!0)}else if(i)return t==="target"?(e.target={x:f,y:g},!0):(e.source={x:f,y:g},!0);return!1}}},function(d,v){d.exports={rectRectCrossAlgorithm:function(h,a){var o=Math.max(h.minX,a.minX),n=Math.max(h.minY,a.minY),t=Math.min(h.maxX,a.maxX),e=Math.min(h.maxY,a.maxY);return o>t||n>e},euclideanDistance:{pointPoint:function(h,a){var o=Math.pow(h.x-a.x,2)+Math.pow(h.y-a.y,2);return Math.sqrt(o)}}}},function(d,v,h){var a={},o=h(2);a.AUGMENT={changeAddEdgeModel:function(n){this.set("addEdgeModel",n)},cancelAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},beginAdd:function(n,t){this.set("addType",n),this.set("addModel",t),this.changeMode("add")},endAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},delete:function(){var n=this.getSelected(),t=this.get("_graph");o.each(n,function(e){t.remove(e)})},toBack:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var i=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(u)-o.getIndex(i)}),n.forEach(function(e){t.toBack(e)})},toFront:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var i=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(i)-o.getIndex(u)}),n.forEach(function(e){t.toFront(e)})},addGroup:function(n){var t,e=this.get("_graph"),r=this.getSelected(),i=!0;if(r.length!==0){n||(n={label:"\u65B0\u5EFA\u5206\u7EC4"}),o.setId(n),e.add("group",n),e.toFront(n.id);var u=e.find(n.id);if(r.forEach(function(s){var l=s.getParent();l&&(t?t!==l&&(i=!1):t=l)}),i){t&&(n.parent=t.getModel().id),r.forEach(function(s){e.update(s,{parent:n.id})});var c=u.getInnerEdges();u.deepEach(function(s){e.toFront(s)}),c.forEach(function(s){e.toFront(s)})}else console.warn("add group elements must have the same parent")}},unGroup:function(){var n=this.get("_graph"),t=this.getSelected(),e=t[0];t.length===1&&o.isGroup(e)&&(e.getChildren().forEach(function(r){n.update(r,{parent:void 0}),r.collapsedParent||r.show(),r.isGroup&&r.deepEach(function(i){i.collapsedParent||i.show()})}),n.remove(e))},newGroup:function(n){this.addGroup(n)}},d.exports=a},function(d,v,h){function a(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}var o=h(67),n=h(2),t={CFG:{anchor:{}},INIT:"_initAnchor"};t.AUGMENT={_initAnchor:function(){var e=this.get("anchor"),r=this.get("_graph");if(e){var i=new o(function(u){for(var c=1;c - `},bindEvent:function(m,x){var w=this,M=x.getGraph(),S=M.getRootGroup();return m.setAttribute("draggable","true"),[u.addEventListener(m,"dragstart",function(){var O=w.item,A=function(C){for(var k=1;ks.minX&&m.minY>s.minY&&m.maxXl.width/2+o.orbitGap/g&&(t.hideOrbit(),e=void 0),e&&t.layoutOrbit(e,{x:c,y:s})}})})},function(d,v,h){var a=h(11);h(96),d.exports=a},function(d,v,h){h(97),h(98),h(99),h(100),h(101)},function(d,v,h){var a=h(11);a.registerNode("flow-base",{}),a.registerNode("flow-html",{},["html"]),a.registerNode("flow-rect",{},"flow-base"),a.registerNode("flow-capsule",{},"capsule"),a.registerNode("flow-circle",{},"circle"),a.registerNode("flow-rhombus",{},"rhombus")},function(d,v,h){h(11).registerEdge("flow-base",{})},function(d,v,h){var a=h(19),o=h(11);function n(u,c,s,l){var f=l?l/2:30,g=l;if(u<=c&&c<=s||u>=c&&c>=s){var y=(s-c)/2,m=Math.abs(y);if(y===0)return u===c?0:(c-u)/Math.abs(c-u)*f;if(m>g){var x=y/m*g;return Math.abs(x)g&&(w=g),wu?w:-w}function t(u,c,s,l){var f,g,y=u.bbox,m=function(w,M){var S=Math.abs(w.x-M.centerX),O=Math.abs(w.y-M.centerY);return S/M.width>O/M.height}(c,y);f=g=0;var x=Math.min(y.height,y.width);return l&&l.bbox&&(x=Math.min(x,l.bbox.height,l.bbox.width)),m?f=n(y.centerX,c.x,s.x,x):g=n(y.centerY,c.y,s.y,x),{x:c.x+f,y:c.y+g}}var e=.1;function r(u,c){var s=u.x,l=u.y,f=c.x,g=c.y;return{x:s+(f-s)*e,y:l+(g-l)*e}}function i(u,c,s){var l=u[0],f=u[u.length-1],g=["M",l.x,l.y],y=function(w,M,S,O){return[S&&S.bbox?t(S,w,M,O):r(w,M),O&&O.bbox?t(O,M,w,S):r(M,w)]}(l,f,c,s),m=["C"],x=[g];return a.each(y,function(w){m.push(w.x,w.y)}),m.push(f.x,f.y),x.push(m),x}o.registerEdge("flow-smooth",{getPathByPoints:function(u){return i(u.points,u.source,u.target)}},"flow-edge")},function(d,v,h){function a(C){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(C)}function o(C,k){return function(T){if(Array.isArray(T))return T}(C)||function(T,I){var D=[],R=!0,j=!1,B=void 0;try{for(var X,et=T[Symbol.iterator]();!(R=(X=et.next()).done)&&(D.push(X.value),!I||D.length!==I);R=!0);}catch(K){j=!0,B=K}finally{try{R||et.return==null||et.return()}finally{if(j)throw B}}return D}(C,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var n=h(19),t=h(11),e=16,r=5;function i(C,k){var T=Math.min(C.minX,k.minX),I=Math.min(C.minY,k.minY),D=Math.max(C.maxX,k.maxX),R=Math.max(C.maxY,k.maxY);return{centerX:(T+D)/2,centerY:(I+R)/2,minX:T,minY:I,maxX:D,maxY:R,height:R-I,width:D-T}}function u(C,k){return 2*Math.abs(C.centerX-k.centerX)R/I.height}(k,C)?{x:k.x>C.centerX?C.maxX:C.minX,y:k.y}:{x:k.x,y:k.y>C.centerY?C.maxY:C.minY}}function f(C){var k=C.minX,T=C.minY,I=C.maxX,D=C.maxY;return[{x:k,y:T},{x:I,y:T},{x:I,y:D},{x:k,y:D}]}function g(C,k){var T=C.x,I=C.y;return Tk.maxX||Ik.maxY}function y(C,k,T,I){var D=k.x-C.x,R=k.y-C.y,j=I.x-T.x,B=I.y-T.y,X=(-R*(C.x-T.x)+D*(C.y-T.y))/(-j*R+D*B),et=(j*(C.y-T.y)-B*(C.x-T.x))/(-j*R+D*B);return X>=0&&X<=1&&et>=0&&et<=1}function m(C,k,T){if(T.width===T.height===0)return!1;var I=o(f(T),4),D=I[0],R=I[1],j=I[2],B=I[3];return y(C,k,D,R)||y(C,k,D,B)||y(C,k,R,j)||y(C,k,j,B)}function x(C){return C=M(C)}function w(C,k){return[C,{x:C.x,y:k.y},k]}function M(C){var k=[],T={};return C.forEach(function(I){var D=I.id="".concat(I.x,"-").concat(I.y);T[D]=I}),n.each(T,function(I){k.push(I)}),k}function S(C,k){return Math.abs(C.x-k.x)+Math.abs(C.y-k.y)}function O(C,k,T,I,D){return S(C,k)+S(C,T)+function(R,j){var B=0;return j.forEach(function(X){X&&(R.x===X.x&&(B+=-2),R.y===X.y&&(B+=-2))}),B}(C,[k,T,I,D])}function A(C,k,T,I,D,R,j){var B=[],X=[k],et={},K={},tt={};K[k.id]=0,tt[k.id]=O(k,T,k);var J={};C.forEach(function(W){J[W.id]=W});for(var nt=function(){var W,q,Q,it=void 0,Y=1/0;if(X.forEach(function(L){tt[L.id]4&&arguments[4]!==void 0?arguments[4]:0;G.unshift(H[$]),F[$]&&F[$]!==$&&st<=100&&L(G,H,F,F[$],st+1)}(N,J,et,T.id),{v:N}}q=it,(Q=(W=X).indexOf(q))>-1&&W.splice(Q,1),B.push(it),function(L,G,H,F){var $=[];return L.forEach(function(st){st!==G&&(st.x!==G.x&&st.y!==G.y||m(st,G,H)||m(st,G,F)||$.push(st))}),M($)}(C,it,I,D).forEach(function(L){if(B.indexOf(L)===-1){X.indexOf(L)===-1&&X.push(L);var G=tt[it.id]+S(it,L);K[L.id]&&G>=K[L.id]||(et[L.id]=it.id,K[L.id]=G,tt[L.id]=K[L.id]+O(L,T,k,R,j))}})};X.length;){var at=nt();if(a(at)==="object")return at.v}return console.error("cannot find path: ",C,k,T),[k,T]}function E(C,k,T,I,D){var R=T&&T.bbox?T.bbox:c(C),j=I&&I.bbox?I.bbox:c(k);if(u(R,j))return x(w(C,k));var B=s(R,D),X=s(j,D);if(u(B,X))return x(w(C,k));var et=l(B,C),K=l(X,k),tt=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],it=[],Y=[];Q.forEach(function(F){it.push(F.x),Y.push(F.y)});var N=Math.min.apply(Math,it),L=Math.max.apply(Math,it),G=Math.min.apply(Math,Y),H=Math.max.apply(Math,Y);return{centerX:(N+L)/2,centerY:(G+H)/2,maxX:L,maxY:H,minX:N,minY:G,height:H-G,width:L-N}}([et,K]),J=(i(B,X),i(B,tt)),nt=i(X,tt),at=[];at=(at=at.concat(f(J))).concat(f(nt));var W={x:(C.x+k.x)/2,y:(C.y+k.y)/2};[tt,J,nt].forEach(function(Q){at=at.concat(function(it,Y){return function(N,L){return LN.maxX?[]:[{x:L,y:N.minY},{x:L,y:N.maxY}]}(it,Y.x).concat(function(N,L){return LN.maxY?[]:[{x:N.minX,y:L},{x:N.maxX,y:L}]}(it,Y.y))}(Q,W).filter(function(it){return g(it,B)&&g(it,X)}))}),[{x:et.x,y:K.y},{x:K.x,y:et.y}].forEach(function(Q){g(Q,B)&&g(Q,X)&&at.push(Q)}),at.unshift(et),at.push(K);var q=A(at=M(at),et,K,R,j,C,k);return q.unshift(C),q.push(k),x(q)}function _(C,k){var T=[],I=C[0];return T.push("M".concat(I.x," ").concat(I.y)),C.forEach(function(D,R){var j=C[R+1],B=C[R+2];if(j&&B)if(function(tt,J,nt){return!(tt.x===J.x===nt.x||tt.y===J.y===nt.y)}(D,j,B)){var X=o(function(tt,J,nt,at){var W=S(tt,J),q=S(nt,J);return W0&&c.collapsed&&this.drawExpandedButton(u)},debugDrawLayoutPoint:function(u){var c=u.getModel();u.getGraphicGroup().addShape("circle",{attrs:{x:c.x,y:c.y,r:5,fill:"red"}})},drawExpandedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addGroup(),l=s.addShape("path",{attrs:a({path:t.getRectPath(0,0,16,7,3)},r)}),f=l.getBBox(),g=t.getMindNodeSide(u),y=this.getButtonPositon(c,f,g),m={fill:"white",r:1};s.addShape("circle",{attrs:a({},m,{x:4,y:3.5}),capture:!1}),s.addShape("circle",{attrs:a({},m,{x:8,y:3.5}),capture:!1}),s.addShape("circle",{attrs:a({},m,{x:12,y:3.5}),capture:!1}),l.attr("lineAppendWidth",20),s.translate(y.x,y.y),l.isExpandedButton=!0,l.isButton=!0},drawCollapsedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addShape("path",{attrs:a({path:t.getCollapsedButtonPath()},i)}),l=s.getBBox(),f=t.getMindNodeSide(u),g=this.getButtonPositon(c,l,f);s.translate(g.x,g.y),s.isCollapsedButton=!0,s.isButton=!0},getButtonPositon:function(u,c,s){return s==="right"?{x:u.maxX+2,y:u.maxY-(c.maxY-c.minY)/2}:{x:u.minX-(c.maxX-c.minX)-2,y:u.maxY-(c.maxY-c.minY)/2}},getLabel:function(u){return u.getModel().label},getPadding:function(){return[4,8,4,8]},getSize:function(u){var c=u.getModel(),s=u.getGraphicGroup(),l=c.size;if(c.size){if(t.isArray(l))return l;if(t.isNumber(l))return[l,l]}var f=s.findByClass("label")[0],g=this.getPadding(u),y=f.getBBox();return[y.width+g[1]+g[3],y.height+g[0]+g[2]]},getPath:function(u){var c=this.getSize(u),s=this.getStyle(u);return t.getRectPath(-c[0]/2,-c[1]/2+this.dy,c[0],c[1],s.radius)},drawLabel:function(u){var c=u.getGraphicGroup(),s=this.getLabel(u),l=this.getLabelStyle(u);s||(s=" ");var f=t.mix(!0,{},e,l,{x:0,y:0});t.isObject(s)?t.mix(f,s):f.text=s;var g=c.addShape("text",{class:"label",attrs:f});return this.adjustLabelText(g),this.adjustLabelPosition(u,g),g},adjustLabelText:function(u){var c=u.attr("text"),s=u.getBBox();if(s.maxX-s.minX>400){var l=u.attr("font");c=t.getLabelTextByTextLineWidth(c,l),u.attr("text",c)}},adjustLabelPosition:function(u,c){var s=this.getSize(u),l=this.getPadding(),f=s[0],g=c.getBBox();c.attr({x:-f/2+l[3],y:-g.height/2+this.dy})},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",lineHeight:18,fontSize:12}},getStyle:function(){return{fill:"#ccc",fillOpacity:0,radius:4,lineWidth:2}},getActivedStyle:function(){return{stroke:"#44C0FF",lineWidth:2}},getSelectedStyle:function(){return{stroke:"#1AA7EE",lineWidth:2}},anchor:[[0,1],[1,1]]})},function(d,v,h){h(8).registerNode("mind-first-sub",{dy:0,getPadding:function(){return[6,12,8,12]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontWeight:500,fontSize:14,lineHeight:20}}})},function(d,v,h){h(8).registerNode("mind-second-sub",{dy:0,getPadding:function(){return[8,4,8,4]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontSize:12,lineHeight:20}}})},function(d,v,h){var a=h(8),o=h(10);a.registerNode("mind-root",{adjustLabelPosition:function(n,t){var e=t.getBBox();t.attr({x:-e.width/2,y:-e.height/2-1})},getPath:function(n){var t=this.getSize(n),e=this.getStyle(n);return o.getRectPath(-t[0]/2,-t[1]/2,t[0],t[1],e.radius)},getButtonPositon:function(n,t,e){return e==="right"?{x:n.maxX+2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}:{x:n.minX-(t.maxX-t.minX)-2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}},getPadding:function(){return o.toAllPadding([12,24])},getStyle:function(){return{fill:"#587EF7",stroke:"#587EF7",fillOpacity:1,radius:4}},getLabelStyle:function(){return{fontSize:20,fill:"white",lineHeight:28}},drawExpandedButton:function(){},drawCollapsedButton:function(){},panAble:!1,anchor:[[.45,.5],[.55,.5]]},"mind-first-sub")},function(d,v,h){var a=h(8),o=h(10);a.registerNode("mind-placeholder",{afterDraw:function(n){n.getKeyShape().isPlaceholder=!0},getPath:function(n){var t,e=n.getModel().parentModel,r=this.getStyle(n),i=0;return e.hierarchy<=2?t=28:(t=20,i=4),o.getRectPath(-27.5,-t/2+i,55,t,r.radius)},getStyle:function(){return{fill:"#91D5FF",radius:4,lineWidth:3}},drawExpandedButton:function(){},drawCollapsedButton:function(){},anchor:function(){return[[0,1],[1,1]]}})},function(d,v,h){h(8).registerEdge("mind-edge",{getEdetal:function(a){return a.children&&a.children.length>0&&!a.collapsed?a.hierarchy===2?24:18:0},getPath:function(a){var o=a.getPoints(),n=a.getSource(),t=a.getTarget(),e=n.getBBox(),r=t.getBBox(),i=t.getModel(),u=14,c=4;if(i.hierarchy===2&&(u=66,c=30),o[0].y===o[1].y){var s=i.hierarchy===3?24:18,l=this.getEdetal(i);return e.centerX=3){var f=i.hierarchy===3?24:18,g=this.getEdetal(i);if(e.centerX2?"left":"right",nth:s?i.getNth(s):void 0})}a.registerCommand("append",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length===1},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),i=r.getGraph(),u=r.getRoot(),c=this.getItem(t),s=c.getModel(),l=s.hierarchy,f=c.getParent();if(c.isRoot)e=n(r,c,this.addItemId);else{var g=i.getNth(c);e=i.add("node",{id:this.addItemId,parent:f.id,side:l===2&&u.children.length===3?"left":s.side,label:"\u65B0\u5EFA\u8282\u70B9",nth:s.side==="left"&&l===2?g:g+1})}r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=c.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Enter"]}),a.registerCommand("appendChild",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length>0},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),i=r.getGraph(),u=this.getItem(t);e=u.isRoot?n(r,u,this.addItemId):i.add("node",{id:this.addItemId,parent:u.id,label:"\u65B0\u5EFA\u8282\u70B9"}),r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=u.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Tab"]}),a.registerCommand("moveMindNode",{enable:function(t){var e=t.getCurrentPage(),r=e.get("panItems");return e.isMind&&r&&r.length>0},execute:function(t){var e=t.getCurrentPage(),r=e.getGraph(),i=this.newParentId,u=this.newNth,c=this.newSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:i,nth:u,side:c});var l=r.add("node",s);e.clearSelected(),e.setSelected(l,!0)},back:function(t){var e=t.getCurrentPage(),r=e.getGraph(),i=this.originParentId,u=this.originNth,c=this.originSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:i,nth:u,side:c});var l=r.add("node",s);e.clearSelected(),e.setSelected(l,!0)}})},function(d,v,h){function a(c){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var l=0;ly||c>m)&&(a.hideArrowController(),o=void 0)}})})},function(d,v,h){h(128),h(12).registerNode("bpmn-base",{anchor:null})},function(d,v,h){"use strict";h.r(v);var a=h(12),o=h.n(a),n=h(0);function t(r){var i=r.bbox,u=r.shape,c=u===void 0?"ROUNDED_RECT":u,s=r.point,l=r.vertical;l=!!l;var f={true:"x",false:"y"},g={true:"minX",false:"minY"},y={true:"maxX",false:"maxY"};switch(c){case"ROUNDED_RECT":if(s[f[l]]>=i[g[l]]+4&&s[f[l]]<=i[y[l]]-4)return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX:i.minX,y:l?s.y>i.centerY?i.maxY:i.minY:s.y}};if(s[f[l]]>=i[g[l]]&&s[f[l]]i.centerX?i.maxX-4+Math.sqrt(16-Math.pow(i.minY+4-s.y,2)):i.minX+4-Math.sqrt(16-Math.pow(i.minY+4-s.y,2)),y:l?s.y>i.centerY?i.maxY-4+Math.sqrt(16-Math.pow(i.minX+4-s.x,2)):i.minY+4-Math.sqrt(16-Math.pow(i.minX+4-s.x,2)):s.y}};if(s[f[l]]>=i[y[l]]-4&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX-4+Math.sqrt(16-Math.pow(s.y-i.maxY+4,2)):i.minX+4-Math.sqrt(16-Math.pow(s.y-i.maxY+4,2)),y:l?s.y>i.centerY?i.maxY-4+Math.sqrt(16-Math.pow(s.x-i.maxX+4,2)):i.minY+4-Math.sqrt(16-Math.pow(s.x-i.maxX+4,2)):s.y}};break;case"CIRCLE":if(s[f[l]]>=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.centerX+Math.sqrt(16-Math.pow(i.centerY-s.y)):i.centerX-Math.sqrt(16-Math.pow(i.centerY-s.y)),y:l?s.y>i.centerY?i.centerY+Math.sqrt(16-Math.pow(i.centerX-s.x)):i.centerY-Math.sqrt(16-Math.pow(i.centerX-s.x)):s.y}};break;case"RHOMEBUS":if(s[f[l]]>=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?s.yi.centerY?s.x=i[g[l]]&&s[f[l]]<=i[y[l]])return{added:void 0,joint:{x:l?s.x:s.x>i.centerX?i.maxX:i.minX,y:l?s.y>i.centerY?i.maxY:i.minY:s.y}}}return l?s.x=150&&(u.helpLine=void 0,u.helpLineTime=void 0),u.helpLine&&i.addShape("path",{attrs:{path:[["M",u.helpLine[0].x,u.helpLine[0].y],["L",u.helpLine[1].x,u.helpLine[1].y]],lineAppendWidth:8,lineWidth:1,strokeOpacity:.92,stroke:"rgba(255,139,48)"}}),g}})}])})},87626:function(U,P,b){"use strict";b.d(P,{Tr:function(){return Qt},oP:function(){return ve},mY:function(){return Ut},xV:function(){return Lt},JF:function(){return me},ff:function(){return Vt},G8:function(){return de},Zw:function(){return mt},Cc:function(){return Kt},_7:function(){return ge},ck:function(){return Bt},qZ:function(){return le},qU:function(){return wt},CH:function(){return Ot},N5:function(){return oe},eA:function(){return $t},Ko:function(){return pe},Fn:function(){return se},Kk:function(){return fe},o8:function(){return qt},ZP:function(){return Pe},Yn:function(){return ye}});var p=b(21261),d=b(6610),v=b(5991),h=b(46070),a=b(77608),o=b(10379),n=b(42328),t=b.n(n),e=b(7654),r="J_FlowContainer",i="J_MindContainer",u="J_KoniContainer",c="J_ToolbarContainer",s="J_MinimapContainer",l="J_ContextMenuContainer",f="Flow",g="Mind",y="Koni",m="beforeAddPage",x="afterAddPage",w="canvas-selected",M="node-selected",S="edge-selected",O="group-selected",A="multi-selected",E={click:"Click",contextmenu:"ContextMenu",dblclick:"DoubleClick",drag:"Drag",dragend:"DragEnd",dragenter:"DragEnter",dragleave:"DragLeave",dragstart:"DragStart",drop:"Drop",mousedown:"MouseDown",mouseenter:"MouseEnter",mouseleave:"MouseLeave",mousemove:"MouseMove",mouseup:"MouseUp"},_={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},C={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},k={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"},T=Object.keys(E),I=Object.keys(_),D=Object.keys(C),R=Object.keys(k),j=b(58241),B=b(96156);function X(xt){for(var ut=1;ut1?arguments[1]:void 0)}},13765:function(U,P,b){var p=b(67485),d=b(41430),v=b(90411),h=function(a){return function(o,n,t){var e=p(o),r=v(e),i=d(t,r),u;if(a&&n!=n){for(;r>i;)if(u=e[i++],u!=u)return!0}else for(;r>i;i++)if((a||i in e)&&e[i]===n)return a||i||0;return!a&&-1}};U.exports={includes:h(!0),indexOf:h(!1)}},85291:function(U,P,b){var p=b(57945),d=b(90838),v=b(54593),h=b(18080),a=b(90411),o=b(54874),n=d([].push),t=function(e){var r=e==1,i=e==2,u=e==3,c=e==4,s=e==6,l=e==7,f=e==5||s;return function(g,y,m,x){for(var w=h(g),M=v(w),S=p(y,m),O=a(M),A=0,E=x||o,_=r?E(g,O):i||l?E(g,0):void 0,C,k;O>A;A++)if((f||A in M)&&(C=M[A],k=S(C,A,w),e))if(r)_[A]=k;else if(k)switch(e){case 3:return!0;case 5:return C;case 6:return A;case 2:n(_,C)}else switch(e){case 4:return!1;case 7:n(_,C)}return s?-1:u||c?c:_}};U.exports={forEach:t(0),map:t(1),filter:t(2),some:t(3),every:t(4),find:t(5),findIndex:t(6),filterReject:t(7)}},67207:function(U,P,b){var p=b(10978),d=b(23476),v=b(68497),h=d("species");U.exports=function(a){return v>=51||!p(function(){var o=[],n=o.constructor={};return n[h]=function(){return{foo:1}},o[a](Boolean).foo!==1})}},10455:function(U,P,b){"use strict";var p=b(10978);U.exports=function(d,v){var h=[][d];return!!h&&p(function(){h.call(null,v||function(){return 1},1)})}},35109:function(U,P,b){var p=b(90838);U.exports=p([].slice)},11990:function(U,P,b){var p=b(51405),d=b(71478),v=b(63188),h=b(23476),a=h("species"),o=Array;U.exports=function(n){var t;return p(n)&&(t=n.constructor,d(t)&&(t===o||p(t.prototype))?t=void 0:v(t)&&(t=t[a],t===null&&(t=void 0))),t===void 0?o:t}},54874:function(U,P,b){var p=b(11990);U.exports=function(d,v){return new(p(d))(v===0?0:v)}},78298:function(U,P,b){var p=b(90838),d=p({}.toString),v=p("".slice);U.exports=function(h){return v(d(h),8,-1)}},19582:function(U,P,b){var p=b(60054),d=b(61395),v=b(78298),h=b(23476),a=h("toStringTag"),o=Object,n=v(function(){return arguments}())=="Arguments",t=function(e,r){try{return e[r]}catch(i){}};U.exports=p?v:function(e){var r,i,u;return e===void 0?"Undefined":e===null?"Null":typeof(i=t(r=o(e),a))=="string"?i:n?v(r):(u=v(r))=="Object"&&d(r.callee)?"Arguments":u}},91650:function(U,P,b){var p=b(30266),d=b(1615),v=b(65133),h=b(71328);U.exports=function(a,o,n){for(var t=d(o),e=h.f,r=v.f,i=0;ib)throw P("Maximum allowed index exceeded");return p}},88739:function(U){U.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},25517:function(U,P,b){var p=b(54076),d=p("span").classList,v=d&&d.constructor&&d.constructor.prototype;U.exports=v===Object.prototype?void 0:v},62679:function(U,P,b){var p=b(40367);U.exports=p("navigator","userAgent")||""},68497:function(U,P,b){var p=b(24700),d=b(62679),v=p.process,h=p.Deno,a=v&&v.versions||h&&h.version,o=a&&a.v8,n,t;o&&(n=o.split("."),t=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!t&&d&&(n=d.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=d.match(/Chrome\/(\d+)/),n&&(t=+n[1]))),U.exports=t},72414:function(U){U.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},26725:function(U,P,b){var p=b(24700),d=b(65133).f,v=b(61782),h=b(6737),a=b(57496),o=b(91650),n=b(93415);U.exports=function(t,e){var r=t.target,i=t.global,u=t.stat,c,s,l,f,g,y;if(i?s=p:u?s=p[r]||a(r,{}):s=(p[r]||{}).prototype,s)for(l in e){if(g=e[l],t.dontCallGetSet?(y=d(s,l),f=y&&y.value):f=s[l],c=n(i?l:r+(u?".":"#")+l,t.forced),!c&&f!==void 0){if(typeof g==typeof f)continue;o(g,f)}(t.sham||f&&f.sham)&&v(g,"sham",!0),h(s,l,g,t)}}},10978:function(U){U.exports=function(P){try{return!!P()}catch(b){return!0}}},42713:function(U,P,b){var p=b(92094),d=Function.prototype,v=d.apply,h=d.call;U.exports=typeof Reflect=="object"&&Reflect.apply||(p?h.bind(v):function(){return h.apply(v,arguments)})},57945:function(U,P,b){var p=b(90838),d=b(84185),v=b(92094),h=p(p.bind);U.exports=function(a,o){return d(a),o===void 0?a:v?h(a,o):function(){return a.apply(o,arguments)}}},92094:function(U,P,b){var p=b(10978);U.exports=!p(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},85483:function(U,P,b){var p=b(92094),d=Function.prototype.call;U.exports=p?d.bind(d):function(){return d.apply(d,arguments)}},24320:function(U,P,b){var p=b(40632),d=b(30266),v=Function.prototype,h=p&&Object.getOwnPropertyDescriptor,a=d(v,"name"),o=a&&function(){}.name==="something",n=a&&(!p||p&&h(v,"name").configurable);U.exports={EXISTS:a,PROPER:o,CONFIGURABLE:n}},90838:function(U,P,b){var p=b(92094),d=Function.prototype,v=d.bind,h=d.call,a=p&&v.bind(h,h);U.exports=p?function(o){return o&&a(o)}:function(o){return o&&function(){return h.apply(o,arguments)}}},40367:function(U,P,b){var p=b(24700),d=b(61395),v=function(h){return d(h)?h:void 0};U.exports=function(h,a){return arguments.length<2?v(p[h]):p[h]&&p[h][a]}},26242:function(U,P,b){var p=b(84185);U.exports=function(d,v){var h=d[v];return h==null?void 0:p(h)}},24700:function(U,P,b){var p=function(d){return d&&d.Math==Math&&d};U.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof b.g=="object"&&b.g)||function(){return this}()||Function("return this")()},30266:function(U,P,b){var p=b(90838),d=b(18080),v=p({}.hasOwnProperty);U.exports=Object.hasOwn||function(a,o){return v(d(a),o)}},4428:function(U){U.exports={}},79234:function(U,P,b){var p=b(40632),d=b(10978),v=b(54076);U.exports=!p&&!d(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},54593:function(U,P,b){var p=b(90838),d=b(10978),v=b(78298),h=Object,a=p("".split);U.exports=d(function(){return!h("z").propertyIsEnumerable(0)})?function(o){return v(o)=="String"?a(o,""):h(o)}:h},11192:function(U,P,b){var p=b(90838),d=b(61395),v=b(57004),h=p(Function.toString);d(v.inspectSource)||(v.inspectSource=function(a){return h(a)}),U.exports=v.inspectSource},87943:function(U,P,b){var p=b(46733),d=b(24700),v=b(90838),h=b(63188),a=b(61782),o=b(30266),n=b(57004),t=b(1512),e=b(4428),r="Object already initialized",i=d.TypeError,u=d.WeakMap,c,s,l,f=function(S){return l(S)?s(S):c(S,{})},g=function(S){return function(O){var A;if(!h(O)||(A=s(O)).type!==S)throw i("Incompatible receiver, "+S+" required");return A}};if(p||n.state){var y=n.state||(n.state=new u),m=v(y.get),x=v(y.has),w=v(y.set);c=function(S,O){if(x(y,S))throw new i(r);return O.facade=S,w(y,S,O),O},s=function(S){return m(y,S)||{}},l=function(S){return x(y,S)}}else{var M=t("state");e[M]=!0,c=function(S,O){if(o(S,M))throw new i(r);return O.facade=S,a(S,M,O),O},s=function(S){return o(S,M)?S[M]:{}},l=function(S){return o(S,M)}}U.exports={set:c,get:s,has:l,enforce:f,getterFor:g}},51405:function(U,P,b){var p=b(78298);U.exports=Array.isArray||function(v){return p(v)=="Array"}},61395:function(U){U.exports=function(P){return typeof P=="function"}},71478:function(U,P,b){var p=b(90838),d=b(10978),v=b(61395),h=b(19582),a=b(40367),o=b(11192),n=function(){},t=[],e=a("Reflect","construct"),r=/^\s*(?:class|function)\b/,i=p(r.exec),u=!r.exec(n),c=function(f){if(!v(f))return!1;try{return e(n,t,f),!0}catch(g){return!1}},s=function(f){if(!v(f))return!1;switch(h(f)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!i(r,o(f))}catch(g){return!0}};s.sham=!0,U.exports=!e||d(function(){var l;return c(c.call)||!c(Object)||!c(function(){l=!0})||l})?s:c},93415:function(U,P,b){var p=b(10978),d=b(61395),v=/#|\.prototype\./,h=function(e,r){var i=o[a(e)];return i==t?!0:i==n?!1:d(r)?p(r):!!r},a=h.normalize=function(e){return String(e).replace(v,".").toLowerCase()},o=h.data={},n=h.NATIVE="N",t=h.POLYFILL="P";U.exports=h},63188:function(U,P,b){var p=b(61395);U.exports=function(d){return typeof d=="object"?d!==null:p(d)}},44193:function(U){U.exports=!1},1952:function(U,P,b){var p=b(40367),d=b(61395),v=b(36993),h=b(1076),a=Object;U.exports=h?function(o){return typeof o=="symbol"}:function(o){var n=p("Symbol");return d(n)&&v(n.prototype,a(o))}},90411:function(U,P,b){var p=b(86979);U.exports=function(d){return p(d.length)}},69541:function(U,P,b){var p=b(10978),d=b(61395),v=b(30266),h=b(40632),a=b(24320).CONFIGURABLE,o=b(11192),n=b(87943),t=n.enforce,e=n.get,r=Object.defineProperty,i=h&&!p(function(){return r(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),c=U.exports=function(s,l,f){String(l).slice(0,7)==="Symbol("&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(l="get "+l),f&&f.setter&&(l="set "+l),(!v(s,"name")||a&&s.name!==l)&&(h?r(s,"name",{value:l,configurable:!0}):s.name=l),i&&f&&v(f,"arity")&&s.length!==f.arity&&r(s,"length",{value:f.arity});try{f&&v(f,"constructor")&&f.constructor?h&&r(s,"prototype",{writable:!1}):s.prototype&&(s.prototype=void 0)}catch(y){}var g=t(s);return v(g,"source")||(g.source=u.join(typeof l=="string"?l:"")),s};Function.prototype.toString=c(function(){return d(this)&&e(this).source||o(this)},"toString")},47423:function(U){var P=Math.ceil,b=Math.floor;U.exports=Math.trunc||function(d){var v=+d;return(v>0?b:P)(v)}},49982:function(U,P,b){var p=b(68497),d=b(10978);U.exports=!!Object.getOwnPropertySymbols&&!d(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&p&&p<41})},46733:function(U,P,b){var p=b(24700),d=b(61395),v=b(11192),h=p.WeakMap;U.exports=d(h)&&/native code/.test(v(h))},71328:function(U,P,b){var p=b(40632),d=b(79234),v=b(64992),h=b(86444),a=b(59691),o=TypeError,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,e="enumerable",r="configurable",i="writable";P.f=p?v?function(c,s,l){if(h(c),s=a(s),h(l),typeof c=="function"&&s==="prototype"&&"value"in l&&i in l&&!l[i]){var f=t(c,s);f&&f[i]&&(c[s]=l.value,l={configurable:r in l?l[r]:f[r],enumerable:e in l?l[e]:f[e],writable:!1})}return n(c,s,l)}:n:function(c,s,l){if(h(c),s=a(s),h(l),d)try{return n(c,s,l)}catch(f){}if("get"in l||"set"in l)throw o("Accessors not supported");return"value"in l&&(c[s]=l.value),c}},65133:function(U,P,b){var p=b(40632),d=b(85483),v=b(47051),h=b(32590),a=b(67485),o=b(59691),n=b(30266),t=b(79234),e=Object.getOwnPropertyDescriptor;P.f=p?e:function(i,u){if(i=a(i),u=o(u),t)try{return e(i,u)}catch(c){}if(n(i,u))return h(!d(v.f,i,u),i[u])}},42385:function(U,P,b){var p=b(87073),d=b(72414),v=d.concat("length","prototype");P.f=Object.getOwnPropertyNames||function(a){return p(a,v)}},2443:function(U,P){P.f=Object.getOwnPropertySymbols},36993:function(U,P,b){var p=b(90838);U.exports=p({}.isPrototypeOf)},87073:function(U,P,b){var p=b(90838),d=b(30266),v=b(67485),h=b(13765).indexOf,a=b(4428),o=p([].push);U.exports=function(n,t){var e=v(n),r=0,i=[],u;for(u in e)!d(a,u)&&d(e,u)&&o(i,u);for(;t.length>r;)d(e,u=t[r++])&&(~h(i,u)||o(i,u));return i}},16740:function(U,P,b){var p=b(87073),d=b(72414);U.exports=Object.keys||function(h){return p(h,d)}},47051:function(U,P){"use strict";var b={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d=p&&!b.call({1:2},1);P.f=d?function(h){var a=p(this,h);return!!a&&a.enumerable}:b},22319:function(U,P,b){var p=b(85483),d=b(61395),v=b(63188),h=TypeError;U.exports=function(a,o){var n,t;if(o==="string"&&d(n=a.toString)&&!v(t=p(n,a))||d(n=a.valueOf)&&!v(t=p(n,a))||o!=="string"&&d(n=a.toString)&&!v(t=p(n,a)))return t;throw h("Can't convert object to primitive value")}},1615:function(U,P,b){var p=b(40367),d=b(90838),v=b(42385),h=b(2443),a=b(86444),o=d([].concat);U.exports=p("Reflect","ownKeys")||function(t){var e=v.f(a(t)),r=h.f;return r?o(e,r(t)):e}},94920:function(U){var P=TypeError;U.exports=function(b){if(b==null)throw P("Can't call method on "+b);return b}},68387:function(U,P,b){var p=b(24700),d=b(42713),v=b(61395),h=b(62679),a=b(35109),o=b(25465),n=/MSIE .\./.test(h),t=p.Function,e=function(r){return n?function(i,u){var c=o(arguments.length,1)>2,s=v(i)?i:t(i),l=c?a(arguments,2):void 0;return r(c?function(){d(s,this,l)}:s,u)}:r};U.exports={setTimeout:e(p.setTimeout),setInterval:e(p.setInterval)}},1512:function(U,P,b){var p=b(22959),d=b(57641),v=p("keys");U.exports=function(h){return v[h]||(v[h]=d(h))}},57004:function(U,P,b){var p=b(24700),d=b(57496),v="__core-js_shared__",h=p[v]||d(v,{});U.exports=h},22959:function(U,P,b){var p=b(44193),d=b(57004);(U.exports=function(v,h){return d[v]||(d[v]=h!==void 0?h:{})})("versions",[]).push({version:"3.23.3",mode:p?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},41430:function(U,P,b){var p=b(80584),d=Math.max,v=Math.min;U.exports=function(h,a){var o=p(h);return o<0?d(o+a,0):v(o,a)}},67485:function(U,P,b){var p=b(54593),d=b(94920);U.exports=function(v){return p(d(v))}},80584:function(U,P,b){var p=b(47423);U.exports=function(d){var v=+d;return v!==v||v===0?0:p(v)}},86979:function(U,P,b){var p=b(80584),d=Math.min;U.exports=function(v){return v>0?d(p(v),9007199254740991):0}},18080:function(U,P,b){var p=b(94920),d=Object;U.exports=function(v){return d(p(v))}},96035:function(U,P,b){var p=b(85483),d=b(63188),v=b(1952),h=b(26242),a=b(22319),o=b(23476),n=TypeError,t=o("toPrimitive");U.exports=function(e,r){if(!d(e)||v(e))return e;var i=h(e,t),u;if(i){if(r===void 0&&(r="default"),u=p(i,e,r),!d(u)||v(u))return u;throw n("Can't convert object to primitive value")}return r===void 0&&(r="number"),a(e,r)}},59691:function(U,P,b){var p=b(96035),d=b(1952);U.exports=function(v){var h=p(v,"string");return d(h)?h:h+""}},60054:function(U,P,b){var p=b(23476),d=p("toStringTag"),v={};v[d]="z",U.exports=String(v)==="[object z]"},89112:function(U){var P=String;U.exports=function(b){try{return P(b)}catch(p){return"Object"}}},57641:function(U,P,b){var p=b(90838),d=0,v=Math.random(),h=p(1 .toString);U.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+h(++d+v,36)}},1076:function(U,P,b){var p=b(49982);U.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},64992:function(U,P,b){var p=b(40632),d=b(10978);U.exports=p&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},25465:function(U){var P=TypeError;U.exports=function(b,p){if(b=51||!d(function(){var y=[];return y[c]=!1,y.concat()[0]!==y}),l=r("concat"),f=function(y){if(!h(y))return!1;var m=y[c];return m!==void 0?!!m:v(y)},g=!s||!l;p({target:"Array",proto:!0,arity:1,forced:g},{concat:function(m){var x=a(this),w=e(x,0),M=0,S,O,A,E,_;for(S=-1,A=arguments.length;S1?arguments[1]:void 0)}})},16869:function(U,P,b){var p=b(40632),d=b(24320).EXISTS,v=b(90838),h=b(71328).f,a=Function.prototype,o=v(a.toString),n=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,t=v(n.exec),e="name";p&&!d&&h(a,e,{configurable:!0,get:function(){try{return t(n,o(this))[1]}catch(r){return""}}})},7654:function(U,P,b){var p=b(26725),d=b(18080),v=b(16740),h=b(10978),a=h(function(){v(1)});p({target:"Object",stat:!0,forced:a},{keys:function(n){return v(d(n))}})},73257:function(U,P,b){var p=b(24700),d=b(88739),v=b(25517),h=b(51759),a=b(61782),o=function(t){if(t&&t.forEach!==h)try{a(t,"forEach",h)}catch(e){t.forEach=h}};for(var n in d)d[n]&&o(p[n]&&p[n].prototype);o(v)},81557:function(U,P,b){var p=b(26725),d=b(24700),v=b(68387).setInterval;p({global:!0,bind:!0,forced:d.setInterval!==v},{setInterval:v})},72455:function(U,P,b){var p=b(26725),d=b(24700),v=b(68387).setTimeout;p({global:!0,bind:!0,forced:d.setTimeout!==v},{setTimeout:v})},58241:function(U,P,b){b(81557),b(72455)},44286:function(U){function P(b){return b.split("")}U.exports=P},21078:function(U,P,b){var p=b(62488),d=b(37285);function v(h,a,o,n,t){var e=-1,r=h.length;for(o||(o=d),t||(t=[]);++e0&&o(i)?a>1?v(i,a-1,o,n,t):p(t,i):n||(t[t.length]=i)}return t}U.exports=v},97786:function(U,P,b){var p=b(71811),d=b(40327);function v(h,a){a=p(a,h);for(var o=0,n=a.length;h!=null&&oh?0:h+p),d=d>h?h:d,d<0&&(d+=h),h=p>d?0:d-p>>>0,p>>>=0;for(var a=Array(h);++v=o?v:p(v,h,a)}U.exports=d},98805:function(U,P,b){var p=b(40180),d=b(62689),v=b(83140),h=b(79833);function a(o){return function(n){n=h(n);var t=d(n)?v(n):void 0,e=t?t[0]:n.charAt(0),r=t?p(t,1).join(""):n.slice(1);return e[o]()+r}}U.exports=a},99021:function(U,P,b){var p=b(85564),d=b(45357),v=b(30061);function h(a){return v(d(a,void 0,p),a+"")}U.exports=h},222:function(U,P,b){var p=b(71811),d=b(35694),v=b(1469),h=b(65776),a=b(41780),o=b(40327);function n(t,e,r){e=p(e,t);for(var i=-1,u=e.length,c=!1;++i.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-right:16px;margin-bottom:0}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-inline .ant-form-item .ant-form-item-has-feedback{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1;min-width:0}.ant-form-horizontal .ant-form-item-label[class$="-24"]+.ant-form-item-control,.ant-form-horizontal .ant-form-item-label[class*="-24 "]+.ant-form-item-control{min-width:unset}.ant-form-vertical .ant-form-item{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width:575px){.ant-form-item .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width:767px){.ant-col-sm-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width:991px){.ant-col-md-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width:1199px){.ant-col-lg-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width:1599px){.ant-col-xl-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-explain-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-warning .ant-form-item-split{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f;color:var(--ant-error-color)}.ant-form{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum"}.ant-form legend{display:block;width:100%;margin-bottom:20px;padding:0;color:rgba(0,0,0,.45);font-size:16px;line-height:inherit;border:0;border-bottom:1px solid #d9d9d9}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{display:block;padding-top:15px;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";margin:0 0 24px;vertical-align:top;transition:margin-bottom .3s linear 17ms}.ant-form-item-with-help{margin-bottom:0;transition:none}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;white-space:nowrap;text-align:right;vertical-align:middle}.ant-form-item-label-left{text-align:left}.ant-form-item-label-wrap{overflow:unset;line-height:1.3215em;white-space:unset}.ant-form-item-label>label{position:relative;display:inline-flex;align-items:center;max-width:100%;height:32px;color:rgba(0,0,0,.85);font-size:14px}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{display:inline-block;margin-left:4px;color:rgba(0,0,0,.45)}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:rgba(0,0,0,.45);cursor:help;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;-webkit-margin-start:4px;margin-inline-start:4px}.ant-form-item-label>label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{position:relative;display:flex;align-items:center;min-height:32px}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;color:rgba(0,0,0,.45);font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1);padding-top:0}.ant-form-item-explain-connected{height:0;min-height:0;opacity:0}.ant-form-item-extra{min-height:24px}.ant-form-item-with-help .ant-form-item-explain{height:auto;min-height:24px;opacity:1}.ant-form-item-feedback-icon{font-size:14px;text-align:center;visibility:visible;animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);pointer-events:none}.ant-form-item-feedback-icon-success{color:#52c41a;color:var(--ant-success-color)}.ant-form-item-feedback-icon-error{color:#ff4d4f;color:var(--ant-error-color)}.ant-form-item-feedback-icon-warning{color:#faad14;color:var(--ant-warning-color)}.ant-form-item-feedback-icon-validating{color:#1890ff;color:var(--ant-primary-color)}.ant-show-help{transition:height .3s linear,min-height .3s linear,margin-bottom .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1)}.ant-show-help-leave{min-height:24px}.ant-show-help-leave-active{min-height:0}.ant-show-help-item{overflow:hidden;transition:height .3s cubic-bezier(.645,.045,.355,1),opacity .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1)!important}.ant-show-help-item-appear,.ant-show-help-item-enter{transform:translateY(-5px);opacity:0}.ant-show-help-item-appear-active,.ant-show-help-item-enter-active{transform:translateY(0);opacity:1}.ant-show-help-item-leave-active{transform:translateY(-5px)}@keyframes diffZoomIn1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn2{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn3{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-right:0;margin-left:4px}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-right:4px;margin-left:0}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-right:11px;padding-left:24px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:11px;padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number-affix-wrapper .ant-input-number{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:auto;left:28px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-number-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:0;padding-left:42px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:0;margin-left:19px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-right:7px;padding-left:25.2px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{right:auto;left:0}.ant-form-rtl.ant-form-inline .ant-form-item{margin-right:0;margin-left:16px} \ No newline at end of file diff --git a/6146.905b09cf.async.js b/6146.905b09cf.async.js new file mode 100644 index 00000000..cabb1fc3 --- /dev/null +++ b/6146.905b09cf.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6146],{63374:function(Ue,ve){var u={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"};ve.Z=u},48491:function(Ue,ve,u){var n=u(38126),$e=u(50959),Ze=u(63374),Ne=u(38782),_e=function(ee,H){return $e.createElement(Ne.Z,(0,n.Z)({},ee,{ref:H,icon:Ze.Z}))};ve.Z=$e.forwardRef(_e)},66146:function(Ue,ve,u){u.d(ve,{Z:function(){return za}});var n=u(50959),$e=u(22410),Ze=u(40506),Ne=u(48491),_e=u(84875),k=u.n(_e),ee=u(38126),H=u(73273),U=u(33346),R=u(32682),ze=u(40727),Se=u(10570),Fe=u(65589),Lt=u(88473),Qa=u(12868);function wt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,U.Z)({inkBar:!0},(0,ze.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ye=(0,n.createContext)(null),Ye=u(1788),Me=u(12682),Zt=u(7748),Nt=u(12602),Qe=u(28449),_t=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicatorSize,c=(0,n.useState)(),l=(0,R.Z)(c,2),s=l[0],d=l[1],y=(0,n.useRef)(),f=function(I){return typeof o=="function"?o(I):typeof o=="number"?o:I};function $(){Qe.Z.cancel(y.current)}return(0,n.useEffect)(function(){var p={};return a&&(r?(i?(p.right=a.right+a.width/2,p.transform="translateX(50%)"):(p.left=a.left+a.width/2,p.transform="translateX(-50%)"),p.width=f(a.width)):(p.top=a.top+a.height/2,p.transform="translateY(-50%)",p.height=f(a.height))),$(),y.current=(0,Qe.Z)(function(){d(p)}),$},[a,r,i,o]),{style:s}},zt=_t,Je={width:0,height:0,left:0,top:0};function Mt(e,t,a){return(0,n.useMemo)(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Je,c=o.left+o.width,l=0;lP?(m=g,C.current="x"):(m=E,C.current="y"),t(-m,-m)&&b.preventDefault()}var w=(0,n.useRef)(null);w.current={onTouchStart:v,onTouchMove:L,onTouchEnd:A,onWheel:G},n.useEffect(function(){function b(T){w.current.onTouchStart(T)}function g(T){w.current.onTouchMove(T)}function E(T){w.current.onTouchEnd(T)}function m(T){w.current.onWheel(T)}return document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",E,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",m),function(){document.removeEventListener("touchmove",g),document.removeEventListener("touchend",E)}},[])}var At=u(77189);function at(e){var t=(0,n.useState)(0),a=(0,R.Z)(t,2),r=a[0],i=a[1],o=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,At.o)(function(){var l;(l=c.current)===null||l===void 0||l.call(c)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function Dt(e){var t=(0,n.useRef)([]),a=(0,n.useState)({}),r=(0,R.Z)(a,2),i=r[1],o=(0,n.useRef)(typeof e=="function"?e():e),c=at(function(){var s=o.current;t.current.forEach(function(d){s=d(s)}),t.current=[],o.current=s,i({})});function l(s){t.current.push(s),c()}return[o.current,l]}var nt={width:0,height:0,left:0,top:0,right:0};function Wt(e,t,a,r,i,o,c){var l=c.tabs,s=c.tabPosition,d=c.rtl,y,f,$;return["top","bottom"].includes(s)?(y="width",f=d?"right":"left",$=Math.abs(a)):(y="height",f="top",$=-a),(0,n.useMemo)(function(){if(!l.length)return[0,0];for(var p=l.length,I=p,N=0;N$+t){I=N-1;break}}for(var W=0,M=p-1;M>=0;M-=1){var v=e.get(l[M].key)||nt;if(v[f]<$){W=M+1;break}}return W>=I?[0,0]:[W,I]},[e,t,r,i,o,$,s,l.map(function(p){return p.key}).join("_"),d])}function rt(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var Gt="TABS_DQ";function it(e){return String(e).replace(/"/g,Gt)}function ot(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var Ht=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),lt=Ht,jt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,c={};return(0,ze.Z)(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(o=c.right),a==="left"&&(o=c.left),o?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),ct=jt,kt=u(20489),st=u(93442),Q=u(57),Kt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,c=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,d=e.moreTransitionName,y=e.style,f=e.className,$=e.editable,p=e.tabBarGutter,I=e.rtl,N=e.removeAriaLabel,_=e.onTabClick,W=e.getPopupContainer,M=e.popupClassName,v=(0,n.useState)(!1),L=(0,R.Z)(v,2),A=L[0],C=L[1],G=(0,n.useState)(null),w=(0,R.Z)(G,2),b=w[0],g=w[1],E="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),T=b!==null?"".concat(E,"-").concat(b):null,P=o==null?void 0:o.dropdownAriaLabel;function O(x,B){x.preventDefault(),x.stopPropagation(),$.onEdit("remove",{key:B,event:x})}var Y=n.createElement(st.ZP,{onClick:function(B){var K=B.key,F=B.domEvent;_(K,F),C(!1)},prefixCls:"".concat(m,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[b],"aria-label":P!==void 0?P:"expanded dropdown"},i.map(function(x){var B=x.closable,K=x.disabled,F=x.closeIcon,X=x.key,J=x.label,ae=ot(B,F,$,K);return n.createElement(st.sN,{key:X,id:"".concat(E,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},n.createElement("span",null,J),ae&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),O(re,X)}},F||$.removeIcon||"\xD7"))}));function ne(x){for(var B=i.filter(function(ae){return!ae.disabled}),K=B.findIndex(function(ae){return ae.key===b})||0,F=B.length,X=0;XS?"left":"right"})}),P=(0,R.Z)(T,2),O=P[0],Y=P[1],ne=qe(0,function(z,S){!m&&_&&_({direction:z>S?"top":"bottom"})}),te=(0,R.Z)(ne,2),j=te[0],le=te[1],me=(0,n.useState)([0,0]),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)([0,0]),X=(0,R.Z)(F,2),J=X[0],ae=X[1],Te=(0,n.useState)([0,0]),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1],Ae=(0,n.useState)([0,0]),ge=(0,R.Z)(Ae,2),De=ge[0],Z=ge[1],ce=Dt(new Map),fe=(0,R.Z)(ce,2),Ma=fe[0],Oa=fe[1],Pe=Mt(L,Ma,J[0]),We=Ce(B,m),he=Ce(J,m),Ge=Ce(Oe,m),mt=Ce(De,m),gt=Wese?se:z}var je=(0,n.useRef)(null),Aa=(0,n.useState)(),ht=(0,R.Z)(Aa,2),Ee=ht[0],pt=ht[1];function ke(){pt(Date.now())}function Ke(){je.current&&clearTimeout(je.current)}Bt(w,function(z,S){function D(V,de){V(function(oe){var Le=He(oe+de);return Le})}return gt?(m?D(Y,z):D(le,S),Ke(),ke(),!0):!1}),(0,n.useEffect)(function(){return Ke(),Ee&&(je.current=setTimeout(function(){pt(0)},100)),Ke},[Ee]);var Da=Wt(Pe,q,m?O:j,he,Ge,mt,(0,U.Z)((0,U.Z)({},e),{},{tabs:L})),$t=(0,R.Z)(Da,2),Wa=$t[0],Ga=$t[1],St=(0,Zt.Z)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,S=Pe.get(z)||{width:0,height:0,left:0,right:0,top:0};if(m){var D=O;s?S.rightO+q&&(D=S.right+S.width-q):S.left<-O?D=-S.left:S.left+S.width>-O+q&&(D=-(S.left+S.width-q)),le(0),Y(He(D))}else{var V=j;S.top<-j?V=-S.top:S.top+S.height>-j+q&&(V=-(S.top+S.height-q)),Y(0),le(He(V))}}),Re={};$==="top"||$==="bottom"?Re[s?"marginRight":"marginLeft"]=p:Re.marginTop=p;var yt=L.map(function(z,S){var D=z.key;return n.createElement(Ut,{id:o,prefixCls:v,key:D,tab:z,style:S===0?void 0:Re,closable:z.closable,editable:y,active:D===l,renderWrapper:I,removeAriaLabel:f==null?void 0:f.removeAriaLabel,onClick:function(de){N(D,de)},onFocus:function(){St(D),ke(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),xt=function(){return Oa(function(){var S,D=new Map,V=(S=b.current)===null||S===void 0?void 0:S.getBoundingClientRect();return L.forEach(function(de){var oe,Le=de.key,It=(oe=b.current)===null||oe===void 0?void 0:oe.querySelector('[data-node-key="'.concat(it(Le),'"]'));if(It){var Xa=Ft(It,V),we=(0,R.Z)(Xa,4),Va=we[0],Ua=we[1],Fa=we[2],Ya=we[3];D.set(Le,{width:Va,height:Ua,left:Fa,top:Ya})}}),D})};(0,n.useEffect)(function(){xt()},[L.map(function(z){return z.key}).join("_")]);var Ie=at(function(){var z=ue(A),S=ue(C),D=ue(G);K([z[0]-S[0]-D[0],z[1]-S[1]-D[1]]);var V=ue(E);Be(V);var de=ue(g);Z(de);var oe=ue(b);ae([oe[0]-V[0],oe[1]-V[1]]),xt()}),Ha=L.slice(0,Wa),ja=L.slice(Ga+1),Ct=[].concat((0,Ye.Z)(Ha),(0,Ye.Z)(ja)),Tt=Pe.get(l),ka=zt({activeTabOffset:Tt,horizontal:m,rtl:s,indicatorSize:W}),Ka=ka.style;(0,n.useEffect)(function(){St()},[l,ie,se,rt(Tt),rt(Pe),m]),(0,n.useEffect)(function(){Ie()},[s]);var Pt=!!Ct.length,pe="".concat(v,"-nav-wrap"),Xe,Ve,Et,Rt;return m?s?(Ve=O>0,Xe=O!==se):(Xe=O<0,Ve=O!==ie):(Et=j<0,Rt=j!==ie),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:(0,Nt.x1)(t,A),role:"tablist",className:k()("".concat(v,"-nav"),r),style:i,onKeyDown:function(){ke()}},n.createElement(ct,{ref:C,position:"left",extra:d,prefixCls:v}),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{className:k()(pe,(a={},(0,H.Z)(a,"".concat(pe,"-ping-left"),Xe),(0,H.Z)(a,"".concat(pe,"-ping-right"),Ve),(0,H.Z)(a,"".concat(pe,"-ping-top"),Et),(0,H.Z)(a,"".concat(pe,"-ping-bottom"),Rt),a)),ref:w},n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:b,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(j,"px)"),transition:Ee?"none":void 0}},yt,n.createElement(lt,{ref:E,prefixCls:v,locale:f,editable:y,style:(0,U.Z)((0,U.Z)({},yt.length===0?void 0:Re),{},{visibility:Pt?"hidden":null})}),n.createElement("div",{className:k()("".concat(v,"-ink-bar"),(0,H.Z)({},"".concat(v,"-ink-bar-animated"),c.inkBar)),style:Ka}))))),n.createElement(Xt,(0,ee.Z)({},e,{removeAriaLabel:f==null?void 0:f.removeAriaLabel,ref:g,prefixCls:v,tabs:Ct,className:!Pt&&Ba,tabMoving:!!Ee})),n.createElement(ct,{ref:G,position:"right",extra:d,prefixCls:v})))}),dt=Yt,Qt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,o=e.id,c=e.active,l=e.tabKey,s=e.children;return n.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!c,style:i,className:k()(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ut=Qt,Jt=["renderTabBar"],qt=["label","key"],ea=function(t){var a=t.renderTabBar,r=(0,Se.Z)(t,Jt),i=n.useContext(ye),o=i.tabs;if(a){var c=(0,U.Z)((0,U.Z)({},r),{},{panes:o.map(function(l){var s=l.label,d=l.key,y=(0,Se.Z)(l,qt);return n.createElement(ut,(0,ee.Z)({tab:s,key:d,tabKey:d},y))})});return a(c,dt)}return n.createElement(dt,r)},ta=ea,aa=u(10091),na=["key","forceRender","style","className","destroyInactiveTabPane"],ra=function(t){var a=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,c=t.destroyInactiveTabPane,l=n.useContext(ye),s=l.prefixCls,d=l.tabs,y=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:k()("".concat(s,"-content-holder"))},n.createElement("div",{className:k()("".concat(s,"-content"),"".concat(s,"-content-").concat(o),(0,H.Z)({},"".concat(s,"-content-animated"),y))},d.map(function($){var p=$.key,I=$.forceRender,N=$.style,_=$.className,W=$.destroyInactiveTabPane,M=(0,Se.Z)($,na),v=p===r;return n.createElement(aa.ZP,(0,ee.Z)({key:p,visible:v,forceRender:I,removeOnLeave:!!(c||W),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(L,A){var C=L.style,G=L.className;return n.createElement(ut,(0,ee.Z)({},M,{prefixCls:f,id:a,tabKey:p,animated:y,active:v,style:(0,U.Z)((0,U.Z)({},N),C),className:k()(_,G),ref:A}))})})))},ia=ra,oa=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ft=0,la=n.forwardRef(function(e,t){var a,r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,c=e.className,l=e.items,s=e.direction,d=e.activeKey,y=e.defaultActiveKey,f=e.editable,$=e.animated,p=e.tabPosition,I=p===void 0?"top":p,N=e.tabBarGutter,_=e.tabBarStyle,W=e.tabBarExtraContent,M=e.locale,v=e.moreIcon,L=e.moreTransitionName,A=e.destroyInactiveTabPane,C=e.renderTabBar,G=e.onChange,w=e.onTabClick,b=e.onTabScroll,g=e.getPopupContainer,E=e.popupClassName,m=e.indicatorSize,T=(0,Se.Z)(e,oa),P=n.useMemo(function(){return(l||[]).filter(function(Z){return Z&&(0,ze.Z)(Z)==="object"&&"key"in Z})},[l]),O=s==="rtl",Y=wt($),ne=(0,n.useState)(!1),te=(0,R.Z)(ne,2),j=te[0],le=te[1];(0,n.useEffect)(function(){le((0,Lt.Z)())},[]);var me=(0,Fe.Z)(function(){var Z;return(Z=P[0])===null||Z===void 0?void 0:Z.key},{value:d,defaultValue:y}),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)(function(){return P.findIndex(function(Z){return Z.key===B})}),X=(0,R.Z)(F,2),J=X[0],ae=X[1];(0,n.useEffect)(function(){var Z=P.findIndex(function(fe){return fe.key===B});if(Z===-1){var ce;Z=Math.max(0,Math.min(J,P.length-1)),K((ce=P[Z])===null||ce===void 0?void 0:ce.key)}ae(Z)},[P.map(function(Z){return Z.key}).join("_"),B,J]);var Te=(0,Fe.Z)(null,{value:r}),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1];(0,n.useEffect)(function(){r||(Be("rc-tabs-".concat(ft)),ft+=1)},[]);function Ae(Z,ce){w==null||w(Z,ce);var fe=Z!==B;K(Z),fe&&(G==null||G(Z))}var ge={id:Oe,activeKey:B,animated:Y,tabPosition:I,rtl:O,mobile:j},De=(0,U.Z)((0,U.Z)({},ge),{},{editable:f,locale:M,moreIcon:v,moreTransitionName:L,tabBarGutter:N,onTabClick:Ae,onTabScroll:b,extra:W,style:_,panes:null,getPopupContainer:g,popupClassName:E,indicatorSize:m});return n.createElement(ye.Provider,{value:{tabs:P,prefixCls:o}},n.createElement("div",(0,ee.Z)({ref:t,id:r,className:k()(o,"".concat(o,"-").concat(I),(a={},(0,H.Z)(a,"".concat(o,"-mobile"),j),(0,H.Z)(a,"".concat(o,"-editable"),f),(0,H.Z)(a,"".concat(o,"-rtl"),O),a),c)},T),n.createElement(ta,(0,ee.Z)({},De,{renderTabBar:C})),n.createElement(ia,(0,ee.Z)({destroyInactiveTabPane:A},ge,{animated:Y}))))}),ca=la,sa=ca,da=u(31594),ua=u(17436),fa=u(58351);const va={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},va),{motionName:(0,fa.m)(e,"switch")})),a}var ma=u(13763),ga=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function pa(e,t){if(e)return e;const a=(0,ma.Z)(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:o}=r,c=o||{},{tab:l}=c,s=ga(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return ha(a)}var h=u(60076),be=u(6301),$a=u(81501),Sa=u(90467),vt=u(72717),ya=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[(0,vt.oN)(e,"slide-up"),(0,vt.oN)(e,"slide-down")]]};const xa=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,h.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadiusLG)} 0 0 ${(0,h.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ca=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,be.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,h.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},be.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,h.bf)(e.paddingXXS)} ${(0,h.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ta=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:c,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Pa=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadius)} 0 0 ${(0,h.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ea=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:l,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},(0,be.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},Ra=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,h.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,h.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,h.bf)(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ia=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:c,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-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 ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${(0,h.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,be.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ea(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},La=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var wa=(0,$a.I$)("Tabs",e=>{const t=(0,Sa.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`});return[Pa(t),Ra(t),Ta(t),Ca(t),xa(t),Ia(t),ya(t)]},La),Za=u(10254),Na=()=>null,_a=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{type:t,className:a,rootClassName:r,size:i,onEdit:o,hideAdd:c,centered:l,addIcon:s,popupClassName:d,children:y,items:f,animated:$,style:p,indicatorSize:I}=e,N=_a(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:_,moreIcon:W=n.createElement(Ze.Z,null)}=N,{direction:M,tabs:v,getPrefixCls:L,getPopupContainer:A}=n.useContext(da.E_),C=L("tabs",_),G=(0,Za.Z)(C),[w,b]=wa(C,G);let g;t==="editable-card"&&(g={onEdit:(Y,ne)=>{let{key:te,event:j}=ne;o==null||o(Y==="add"?j:te,Y)},removeIcon:n.createElement($e.Z,null),addIcon:s||n.createElement(Ne.Z,null),showAdd:c!==!0});const E=L(),m=pa(f,y),T=ba(C,$),P=(0,ua.Z)(i),O=Object.assign(Object.assign({},v==null?void 0:v.style),p);return w(n.createElement(sa,Object.assign({direction:M,getPopupContainer:A,moreTransitionName:`${E}-slide-up`},N,{items:m,className:k()({[`${C}-${P}`]:P,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:l},v==null?void 0:v.className,a,r,b,G),popupClassName:k()(d,b,G),style:O,editable:g,moreIcon:W,prefixCls:C,animated:T,indicatorSize:I!=null?I:v==null?void 0:v.indicatorSize})))};bt.TabPane=Na;var za=bt}}]); diff --git a/6151.4ec04365.async.js b/6151.4ec04365.async.js new file mode 100644 index 00000000..ec17d2dc --- /dev/null +++ b/6151.4ec04365.async.js @@ -0,0 +1,27 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6151],{45730:function(Re,Ie,g){"use strict";g.d(Ie,{f:function(){return to}});var l=g(73273),he=g(3224),ie=g(47801),ye=g(10570),F=g(32682),v=g(33346),k=g(17122),ce=g(65589),m=g(50959);function de(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(r),u=function(s){return i(s.matches)};return o.addListener(u),function(){return o.removeListener(u)}}},[r]),a}var fe={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Ce=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(fe).find(function(t){var a=fe[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},L=function(){var e=de(fe.md.matchMedia),n=de(fe.lg.matchMedia),t=de(fe.xxl.matchMedia),a=de(fe.xl.matchMedia),i=de(fe.sm.matchMedia),o=de(fe.xs.matchMedia),u=(0,m.useState)(Ce()),d=(0,F.Z)(u,2),s=d[0],f=d[1];return(0,m.useEffect)(function(){if(t){f("xxl");return}if(a){f("xl");return}if(n){f("lg");return}if(e){f("md");return}if(i){f("sm");return}if(o){f("xs");return}f("md")},[e,n,t,a,i,o]),s},U=g(87440);function h(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,U.j)()&&n&&(document.title=n)},[r.title,n])}var I=g(11175),C=g(87322);function E(r){if((0,I.n)((0,C.b)(),"5.6.0")<0)return r;var e={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",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=(0,v.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var ae=g(6866);function D(r,e){return e>>>r|e<<32-r}function w(r,e,n){return r&e^~r&n}function A(r,e,n){return r&e^r&n^e&n}function Q(r){return D(2,r)^D(13,r)^D(22,r)}function q(r){return D(6,r)^D(11,r)^D(25,r)}function K(r){return D(7,r)^D(18,r)^r>>>3}function G(r){return D(17,r)^D(19,r)^r>>>10}function xe(r,e){return r[e&15]+=G(r[e+14&15])+r[e+9&15]+K(r[e+1&15])}var me=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W,le,H,Te="0123456789abcdef";function _e(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Oe(){W=new Array(8),le=new Array(2),H=new Array(64),le[0]=le[1]=0,W[0]=1779033703,W[1]=3144134277,W[2]=1013904242,W[3]=2773480762,W[4]=1359893119,W[5]=2600822924,W[6]=528734635,W[7]=1541459225}function je(){var r,e,n,t,a,i,o,u,d,s,f=new Array(16);r=W[0],e=W[1],n=W[2],t=W[3],a=W[4],i=W[5],o=W[6],u=W[7];for(var p=0;p<16;p++)f[p]=H[(p<<2)+3]|H[(p<<2)+2]<<8|H[(p<<2)+1]<<16|H[p<<2]<<24;for(var y=0;y<64;y++)d=u+q(a)+w(a,i,o)+me[y],y<16?d+=f[y]:d+=xe(f,y),s=Q(r)+A(r,e,n),u=o,o=i,i=a,a=_e(t,d),t=n,n=e,e=r,r=_e(d,s);W[0]+=r,W[1]+=e,W[2]+=n,W[3]+=t,W[4]+=a,W[5]+=i,W[6]+=o,W[7]+=u}function $e(r,e){var n,t,a=0;t=le[0]>>3&63;var i=e&63;for((le[0]+=e<<3)>29,n=0;n+63>3&63;if(H[r++]=128,r<=56)for(var e=r;e<56;e++)H[e]=0;else{for(var n=r;n<64;n++)H[n]=0;je();for(var t=0;t<56;t++)H[t]=0}H[56]=le[1]>>>24&255,H[57]=le[1]>>>16&255,H[58]=le[1]>>>8&255,H[59]=le[1]&255,H[60]=le[0]>>>24&255,H[61]=le[0]>>>16&255,H[62]=le[0]>>>8&255,H[63]=le[0]&255,je()}function We(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=W[n]>>>24&255,e[r++]=W[n]>>>16&255,e[r++]=W[n]>>>8&255,e[r++]=W[n]&255;return e}function Ue(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=Te.charAt(W[e]>>>n&15);return r}function pn(r){return Oe(),$e(r,r.length),De(),Ue()}var Pn=pn;function tn(r){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Lt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function At(r,e){return Dt(r)||Nt(r,e)||jn(r,e)||Ht()}function Ht(){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 Nt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,u;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(d){i=!0,u=d}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw u}}return t}}function Dt(r){if(Array.isArray(r))return r}function Ot(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=jn(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(s){throw s},f:a}}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 i=!0,o=!1,u;return{s:function(){n=n.call(r)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function $t(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(r,e){for(var n=0;nr.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function Jt(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i=0)&&(n[a]=r[a]);return n}function Vn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function be(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||wn(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},nr=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,u=o===void 0?"":o,d=e.children||[],s=a.name,f=s===void 0?e.name:s,p=a.icon,y=p===void 0?e.icon:p,Z=a.hideChildren,j=Z===void 0?e.hideChildren:Z,T=a.flatMenu,M=T===void 0?e.flatMenu:T,O=i&&Object.keys(i).join(",")!=="redirect"?[be({path:u,menu:a},i)].concat(d||[]):d,$=be({},e);if(f&&($.name=f),y&&($.icon=y),O&&O.length){if(j)return delete $.children,$;var z=_n(be(be({},n),{},{data:O}),e);if(M)return z;delete $[we]}return $},Ge=function(e){return Array.isArray(e)&&e.length>0};function _n(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Ge(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,d;return!(o==null||(u=o.menu)===null||u===void 0)&&u.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var u=be(be({},o),{},{path:o.path||o.originPath});return!u.children&&u[we]&&(u.children=u[we],delete u[we]),u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[we]||[],d=Qn(o.path,e?e.path:"/"),s=o.name,f=er(o,a||"menu"),p=f!==!1&&i!==!1&&t&&f?t({id:f,defaultMessage:s}):s,y=e.pro_layout_parentKeys,Z=y===void 0?[]:y,j=e.children,T=e.icon,M=e.flatMenu,O=e.indexRoute,$=e.routes,z=Yt(e,Lt),N=new Set([].concat(Xn(Z),Xn(o.parentKeys||[])));e.key&&N.add(e.key);var R=be(be(be({},z),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||qt(be(be({},o),{},{path:d})),pro_layout_parentKeys:Array.from(N).filter(function(S){return S&&S!=="/"})});if(p?R.name=p:delete R.name,R.menu===void 0&&delete R.menu,Ge(u)){var x=_n(be(be({},r),{},{data:u,parentName:f||""}),R);Ge(x)&&(R.children=x)}return nr(R,r)}).flat(1)}var tr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Ge(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=be({},n),a=t.children||n[we]||[];if(delete t[we],Ge(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return be(be({},t),{},{children:i})}return be({},n)}).filter(function(n){return n})},rr=function(r){zt(n,r);var e=Ft(n);function n(){return $t(this,n),e.apply(this,arguments)}return Wt(n,[{key:"get",value:function(a){var i;try{var o=Ot(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var d=At(u.value,2),s=d[0],f=d[1],p=on(s);if(!wn(s)&&(0,ae.Bo)(p,[]).test(a)){i=f;break}}}catch(y){o.e(y)}finally{o.f()}}catch(y){i=void 0}return i}}]),n}(Bn(Map)),ar=function(e){var n=new rr,t=function a(i,o){i.forEach(function(u){var d=u.children||u[we]||[];Ge(d)&&a(d,u);var s=Qn(u.path,o?o.path:"/");n.set(on(s),u)})};return t(e),n},or=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[we];if(Ge(t)){var a=r(t);if(a.length)return be({},n)}var i=be({},n);return delete i[we],delete i.children,i}).filter(function(n){return n})},ir=function(e,n,t,a){var i=_n({data:e,formatMessage:t,locale:n}),o=a?or(i):tr(i),u=ar(i);return{breadcrumb:u,menuData:o}},lr=ir;function Yn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ln(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=ln({},t);if(!(!a||!a.key)){!a.children&&a[we]&&(a.children=a[we],delete a[we]);var i=a.children||[];n[on(a.path||a.key||"/")]=ln({},a),n[a.key||a.path||"/"]=ln({},a),i&&(n=ln(ln({},n),r(i)))}}),n},dr=cr,sr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!wn(a)){var i=on(a);try{if(t&&(0,ae.Bo)("".concat(i)).test(n)||(0,ae.Bo)("".concat(i),[]).test(n)||(0,ae.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},vr=function(e,n,t,a){var i=dr(n),o=Object.keys(i),u=sr(o,e||"/",a);return!u||u.length<1?[]:(t||(u=[u[u.length-1]]),u.map(function(d){var s=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,p=(s.pro_layout_parentKeys||[]).map(function(y){return f.has(y)?null:(f.set(y,!0),i[y])}).filter(function(y){return y});return s.key&&p.push(s),p}).flat(1))},fr=vr,He=g(56197),Ve=g(42259),mr=g(84875),te=g.n(mr),Jn=g(71770),hr=g(12868),kn=g(84707),gr=g(27542),c=g(11527),pr=function(e){var n,t=(0,m.useContext)(k.L_),a=t.hashId,i=e.style,o=e.prefixCls,u=e.children,d=e.hasPageContainer,s=d===void 0?0:d,f=te()("".concat(o,"-content"),a,(n={},(0,l.Z)(n,"".concat(o,"-has-header"),e.hasHeader),(0,l.Z)(n,"".concat(o,"-content-has-page-container"),s>0),n)),p=e.ErrorBoundary||gr.S;return e.ErrorBoundary===!1?(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u}):(0,c.jsx)(p,{children:(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u})})},yr=function(){return(0,c.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,c.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,c.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,c.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,c.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,c.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,c.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,c.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,c.jsxs)("g",{children:[(0,c.jsxs)("g",{fillRule:"nonzero",children:[(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,c.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,c.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},xr=g(52267),un=g(79954),xn=g(38126),Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},br=Cr,Sr=g(38782),Zr=function(e,n){return m.createElement(Sr.Z,(0,xn.Z)({},e,{ref:n,icon:br}))},Mr=m.forwardRef(Zr),Ir=g(82757),Rr=function(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Tr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[An(o.icon),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:o.title}),o.desc?(0,c.jsx)("span",{children:o.desc}):null]})]})},u)})})})},Ln=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Pr=function(e,n){if(e&&typeof e=="string"&&Ln(e))return(0,c.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,c.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,c.jsx)("div",{id:"avatarLogo",children:t})}return e},Br=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[Pr(o.icon,o.title),(0,c.jsx)("div",{children:(0,c.jsx)("div",{children:o.title})})]})},u)})})})},Ee=g(26488),jr=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Ee.Wf===null||Ee.Wf===void 0?void 0:(0,Ee.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Er=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},wr=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Er(e),"&-default":jr(e)})};function _r(r){return(0,Ee.Xj)("AppsLogoComponents",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wr(n)]})}var An=function(e){return typeof e=="string"?(0,c.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Hn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,u=e.onItemClick,d=m.useRef(null),s=m.useRef(null),f="".concat(o,"-layout-apps"),p=_r(f),y=p.wrapSSR,Z=p.hashId,j=(0,m.useState)(!1),T=(0,F.Z)(j,2),M=T[0],O=T[1],$=function(S){u==null||u(S,s)},z=(0,m.useMemo)(function(){var x=t==null?void 0:t.some(function(S){return!(S!=null&&S.desc)});return x?(0,c.jsx)(Br,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-simple")}):(0,c.jsx)(Tr,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-default")})},[t,f,Z]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var N=a?a(e==null?void 0:e.appList,z):z,R=(0,C.X)(void 0,function(x){return O(x)});return y((0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:d,onClick:function(S){S.stopPropagation(),S.preventDefault()}}),(0,c.jsx)(Ir.Z,(0,v.Z)((0,v.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},R),{},{overlayClassName:"".concat(f,"-popover ").concat(Z).trim(),content:N,getPopupContainer:function(){return d.current||document.body},children:(0,c.jsx)("span",{ref:s,onClick:function(S){S.stopPropagation()},className:te()("".concat(f,"-icon"),Z,(0,l.Z)({},"".concat(f,"-icon-active"),M)),children:(0,c.jsx)(Rr,{})})}))]}))},qn=g(21757),Lr=g(75200),et=g(62737);function Ar(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var Hr=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Nr(r){return(0,Ee.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[Hr(n)]})}var Dr=["isMobile","collapsed"],Or=function(e){var n,t=e.isMobile,a=e.collapsed,i=(0,ye.Z)(e,Dr),o=Nr(e.className),u=o.wrapSSR,d=o.hashId;return t&&a?null:u((0,c.jsx)("div",(0,v.Z)((0,v.Z)({},i),{},{className:te()(e.className,d,(n={},(0,l.Z)(n,"".concat(e.className,"-collapsed"),a),(0,l.Z)(n,"".concat(e.className,"-is-mobile"),t),n)),children:(0,c.jsx)(Ar,{})})))},Cn=g(1788),$r=g(77254),Wr=g(47920),zr=g(12602),Fr=g(41491),bn=g(36484),Kr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],nt=m.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,u=r.tabIndex,d=r.onClick,s=r.children,f=(0,ye.Z)(r,Kr),p=m.useRef(),y=(0,zr.x1)(p,e);(0,bn.Kp)(!!(t||s),"Should have `component` prop or `children`."),(0,bn.C3)(p);var Z=m.useContext(Fr.Z),j=Z.prefixCls,T=j===void 0?"anticon":j,M=Z.rootClassName,O=te()(M,T,n),$=te()((0,l.Z)({},"".concat(T,"-spin"),!!i)),z=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,N=(0,v.Z)((0,v.Z)({},bn.vD),{},{className:$,style:z,viewBox:a});a||delete N.viewBox;var R=function(){return t?m.createElement(t,N,s):s?((0,bn.Kp)(!!a||m.Children.count(s)===1&&m.isValidElement(s)&&m.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,xn.Z)({},N,{viewBox:a}),s)):null},x=u;return x===void 0&&d&&(x=-1),m.createElement("span",(0,xn.Z)({role:"img"},f,{ref:y,tabIndex:x,onClick:d,className:O}),R())});nt.displayName="AntdIcon";var Ur=nt,Gr=["type","children"],tt=new Set;function Xr(r){return!!(typeof r=="string"&&r.length&&!tt.has(r))}function Sn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(Xr(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){Sn(r,e+1)},t.onerror=function(){Sn(r,e+1)}),tt.add(n),document.body.appendChild(t)}}function rt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?Sn(e.reverse()):Sn([e]));var a=m.forwardRef(function(i,o){var u=i.type,d=i.children,s=(0,ye.Z)(i,Gr),f=null;return i.type&&(f=m.createElement("use",{xlinkHref:"#".concat(u)})),d&&(f=d),m.createElement(Ur,(0,xn.Z)({},t,s,{ref:o}),f)});return a.displayName="Iconfont",a}function Vr(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Qr=g(32618),Yr=g(25670),at=g(65140),Jr=function(e,n){var t,a,i,o,u,d,s,f=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,v.Z)((0,v.Z)((0,l.Z)({},"".concat(e.componentCls),(s={background:"transparent",color:f==null?void 0:f.colorTextMenu,border:"none"},(0,l.Z)(s,"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),(0,l.Z)(s,"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),(0,l.Z)(s,"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),(0,l.Z)(s,"&&-collapsed",(i={},(0,l.Z)(i,"".concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),(0,l.Z)(i,"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:f==null?void 0:f.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),(0,l.Z)(i,"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0})),i)),(0,l.Z)(s,"&-item-title",(d={display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},(0,l.Z)(d,"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),(0,l.Z)(d,"&-collapsed",(o={minWidth:40,height:40},(0,l.Z)(o,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),(0,l.Z)(o,"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"}),o)),(0,l.Z)(d,"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),(0,l.Z)(d,"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),(0,l.Z)(d,"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(u={display:"flex"},(0,l.Z)(u,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),(0,l.Z)(u,"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4}),u))),d)),(0,l.Z)(s,"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),(0,l.Z)(s,"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20}),s)),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function kr(r,e){return(0,Ee.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,v.Z)((0,v.Z)({},n),{},{componentCls:".".concat(r)});return[Jr(t,e||"inline")]})}var ot=function(e){var n=(0,m.useState)(e.collapsed),t=(0,F.Z)(n,2),a=t[0],i=t[1],o=(0,m.useState)(!1),u=(0,F.Z)(o,2),d=u[0],s=u[1];return(0,m.useEffect)(function(){s(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,c.jsx)(Qr.Z,{title:e.title,open:a&&e.collapsed?d:!1,placement:"right",onOpenChange:s,children:e.children})},it=rt({scriptUrl:at.h.iconfontUrl}),lt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Ln(e)||Vr(e))return(0,c.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,c.jsx)(it,{type:e})}return e},ut=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},qr=(0,$r.Z)(function r(e){var n=this;(0,Wr.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,u=o.subMenuItemRender,d=o.baseClassName,s=o.prefixCls,f=o.collapsed,p=o.menu,y=o.iconPrefixes,Z=o.layout,j=(p==null?void 0:p.type)==="group"&&Z!=="top",T=n.props.token,M=n.getIntlName(t),O=(t==null?void 0:t.children)||(t==null?void 0:t.routes),$=j&&a===0?"group":void 0;if(Array.isArray(O)&&O.length>0){var z,N,R,x,S,ee,_,P=a===0||j&&a===1,X=lt(t.icon,y,"".concat(d,"-icon ").concat((z=n.props)===null||z===void 0?void 0:z.hashId)),oe=f&&P?ut(M):null,b=(0,c.jsxs)("div",{className:te()("".concat(d,"-item-title"),(N=n.props)===null||N===void 0?void 0:N.hashId,(R={},(0,l.Z)(R,"".concat(d,"-item-title-collapsed"),f),(0,l.Z)(R,"".concat(d,"-item-title-collapsed-level-").concat(i),f),(0,l.Z)(R,"".concat(d,"-group-item-title"),$==="group"),(0,l.Z)(R,"".concat(d,"-item-collapsed-show-title"),(p==null?void 0:p.collapsedShowTitle)&&f),R)),children:[$==="group"&&f?null:P&&X?(0,c.jsx)("span",{className:"".concat(d,"-item-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId).trim(),children:X}):oe,(0,c.jsx)("span",{className:te()("".concat(d,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),$!=="group"&&P&&(X||oe))),children:M})]}),V=u?u((0,v.Z)((0,v.Z)({},t),{},{isUrl:!1}),b,n.props):b;if(j&&a===0&&n.props.collapsed&&!p.collapsedShowGroupTitle)return n.getNavMenuItems(O,a+1,a);var ne=n.getNavMenuItems(O,a+1,j&&a===0&&n.props.collapsed?a:a+1);return[{type:$,key:t.key||t.path,label:V,onClick:j?void 0:t.onTitleClick,children:ne,className:te()((ee={},(0,l.Z)(ee,"".concat(d,"-group"),$==="group"),(0,l.Z)(ee,"".concat(d,"-submenu"),$!=="group"),(0,l.Z)(ee,"".concat(d,"-submenu-has-icon"),$!=="group"&&P&&X),ee))},j&&a===0?{type:"divider",prefixCls:s,className:"".concat(d,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:T==null||(_=T.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,u=o.menu,d=o.formatMessage;return i&&(u==null?void 0:u.locale)!==!1?d==null?void 0:d({id:i,defaultMessage:a}):a}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,u,d,s,f,p=n.conversionPath(t.path||"/"),y=n.props,Z=y.location,j=Z===void 0?{pathname:"/"}:Z,T=y.isMobile,M=y.onCollapse,O=y.menuItemRender,$=y.iconPrefixes,z=n.getIntlName(t),N=n.props,R=N.baseClassName,x=N.menu,S=N.collapsed,ee=(x==null?void 0:x.type)==="group",_=a===0||ee&&a===1,P=_?lt(t.icon,$,"".concat(R,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,X=S&&_?ut(z):null,oe=(0,c.jsxs)("div",{className:te()("".concat(R,"-item-title"),(u=n.props)===null||u===void 0?void 0:u.hashId,(d={},(0,l.Z)(d,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(d,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(d,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),d)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:X===null&&!P?"none":""},children:P||(0,c.jsx)("span",{className:"anticon",children:X})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(f=n.props)===null||f===void 0?void 0:f.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(P||X))),children:z})]},p),b=Ln(p);if(b){var V,ne,B,re;oe=(0,c.jsxs)("span",{onClick:function(){var Y,se;(Y=window)===null||Y===void 0||(se=Y.open)===null||se===void 0||se.call(Y,p,"_blank")},className:te()("".concat(R,"-item-title"),(V=n.props)===null||V===void 0?void 0:V.hashId,(ne={},(0,l.Z)(ne,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(ne,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(ne,"".concat(R,"-item-link"),!0),(0,l.Z)(ne,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),ne)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((B=n.props)===null||B===void 0?void 0:B.hashId).trim(),style:{display:X===null&&!P?"none":""},children:P||(0,c.jsx)("span",{className:"anticon",children:X})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(re=n.props)===null||re===void 0?void 0:re.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(P||X))),children:z})]},p)}if(O){var ue=(0,v.Z)((0,v.Z)({},t),{},{isUrl:b,itemPath:p,isMobile:T,replace:p===j.pathname,onClick:function(){return M&&M(!0)},children:void 0});return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:O(ue,oe,n.props)}):O(ue,oe,n.props)}return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:oe}):oe}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),ea=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},ct=function(e){var n,t=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,u=e.menuData,d=e.prefixCls,s=e.menu,f=e.matchMenuKeys,p=e.iconfontUrl,y=e.selectedKeys,Z=e.onSelect,j=e.menuRenderType,T=e.openKeys,M=(0,m.useContext)(k.L_),O=M.dark,$=M.token,z="".concat(d,"-base-menu-").concat(t),N=(0,m.useRef)([]),R=(0,ce.Z)(s==null?void 0:s.defaultOpenAll),x=(0,F.Z)(R,2),S=x[0],ee=x[1],_=(0,ce.Z)(function(){return s!=null&&s.defaultOpenAll?(0,un.O7)(u)||[]:T===!1?!1:[]},{value:T===!1?void 0:T,onChange:i}),P=(0,F.Z)(_,2),X=P[0],oe=P[1],b=(0,ce.Z)([],{value:y,onChange:Z?function(ge){Z&&ge&&Z(ge)}:void 0}),V=(0,F.Z)(b,2),ne=V[0],B=V[1];(0,m.useEffect)(function(){s!=null&&s.defaultOpenAll||T===!1||f&&(oe(f),B(f))},[f.join("-")]),(0,m.useEffect)(function(){p&&(it=rt({scriptUrl:p}))},[p]),(0,m.useEffect)(function(){if(f.join("-")!==(ne||[]).join("-")&&B(f),!S&&T!==!1&&f.join("-")!==(X||[]).join("-")){var ge=f;(s==null?void 0:s.autoClose)===!1&&(ge=Array.from(new Set([].concat((0,Cn.Z)(f),(0,Cn.Z)(X||[]))))),oe(ge)}else s!=null&&s.ignoreFlatMenu&&S?oe((0,un.O7)(u)):ee(!1)},[f.join("-")]);var re=(0,m.useMemo)(function(){return ea(X,e)},[X&&X.join(","),e.layout,e.collapsed]),ue=kr(z,t),pe=ue.wrapSSR,Y=ue.hashId,se=(0,m.useMemo)(function(){return new qr((0,v.Z)((0,v.Z)({},e),{},{token:$,menuRenderType:j,baseClassName:z,hashId:Y}))},[e,$,j,z,Y]);if(s!=null&&s.loading)return(0,c.jsx)("div",{style:t!=null&&t.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,c.jsx)(Yr.Z,{active:!0,title:!1,paragraph:{rows:t!=null&&t.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(N.current=f);var ve=e.postMenuData?e.postMenuData(u):u;return ve&&(ve==null?void 0:ve.length)<1?null:pe((0,m.createElement)(et.Z,(0,v.Z)((0,v.Z)({},re),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:t,inlineIndent:16,defaultOpenKeys:N.current,theme:O?"dark":"light",selectedKeys:ne,style:(0,v.Z)({backgroundColor:"transparent",border:"none"},o),className:te()(a,Y,z,(n={},(0,l.Z)(n,"".concat(z,"-horizontal"),t==="horizontal"),(0,l.Z)(n,"".concat(z,"-collapsed"),e.collapsed),n)),items:se.getNavMenuItems(ve,0,0),onOpenChange:function(Se){e.collapsed||oe(Se)}},e.menuProps)))};function na(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var ta=["title","render"],ra=m.memo(function(r){return(0,c.jsx)(c.Fragment,{children:r.children})}),aa=Ve.Z.Sider,dt=Ve.Z._InternalSiderContext,oa=dt===void 0?{Provider:ra}:dt,Nn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var u=An(t),d=(0,c.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(u,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,c.jsx)("a",{children:u},"title"):(0,c.jsxs)("a",{children:[u,d]},"title")},st=function(e){var n,t,a=e.collapsed,i=e.originCollapsed,o=e.fixSiderbar,u=e.menuFooterRender,d=e.onCollapse,s=e.theme,f=e.siderWidth,p=e.isMobile,y=e.onMenuHeaderClick,Z=e.breakpoint,j=Z===void 0?"lg":Z,T=e.style,M=e.layout,O=e.menuExtraRender,$=O===void 0?!1:O,z=e.links,N=e.menuContentRender,R=e.collapsedButtonRender,x=e.prefixCls,S=e.avatarProps,ee=e.rightContentRender,_=e.actionsRender,P=e.onOpenChange,X=e.stylish,oe=e.logoStyle,b=(0,m.useContext)(k.L_),V=b.hashId,ne=(0,m.useMemo)(function(){return!(p||M==="mix")},[p,M]),B="".concat(x,"-sider"),re=64,ue=na("".concat(B,".").concat(B,"-stylish"),{stylish:X,proLayoutCollapsedWidth:re}),pe=te()("".concat(B),V,(n={},(0,l.Z)(n,"".concat(B,"-fixed"),o),(0,l.Z)(n,"".concat(B,"-fixed-mix"),M==="mix"&&!p&&o),(0,l.Z)(n,"".concat(B,"-collapsed"),e.collapsed),(0,l.Z)(n,"".concat(B,"-layout-").concat(M),M&&!p),(0,l.Z)(n,"".concat(B,"-light"),s!=="dark"),(0,l.Z)(n,"".concat(B,"-mix"),M==="mix"&&!p),(0,l.Z)(n,"".concat(B,"-stylish"),!!X),n)),Y=Nn(e),se=$&&$(e),ve=(0,m.useMemo)(function(){return N!==!1&&(0,m.createElement)(ct,(0,v.Z)((0,v.Z)({},e),{},{key:"base-menu",mode:a&&!p?"vertical":"inline",handleOpenChange:P,style:{width:"100%"},className:"".concat(B,"-menu ").concat(V).trim()}))},[B,V,N,P,e]),ge=(z||[]).map(function(Be,Le){return{className:"".concat(B,"-link"),label:Be,key:Le}}),Se=(0,m.useMemo)(function(){return N?N(e,ve):ve},[N,ve,e]),Ze=(0,m.useMemo)(function(){if(!S)return null;var Be=S.title,Le=S.render,Ae=(0,ye.Z)(S,ta),Je=(0,c.jsxs)("div",{className:"".concat(B,"-actions-avatar"),children:[Ae!=null&&Ae.src||Ae!=null&&Ae.srcSet||Ae.icon||Ae.children?(0,c.jsx)(qn.C,(0,v.Z)({size:28},Ae)):null,S.title&&!a&&(0,c.jsx)("span",{children:Be})]});return Le?Le(S,Je):Je},[S,B,a]),Me=(0,m.useMemo)(function(){return _?(0,c.jsx)(Lr.Z,{align:"center",size:4,direction:a?"vertical":"horizontal",className:te()(["".concat(B,"-actions-list"),a&&"".concat(B,"-actions-list-collapsed"),V]),children:_==null?void 0:_(e).map(function(Be,Le){return(0,c.jsx)("div",{className:"".concat(B,"-actions-list-item ").concat(V).trim(),children:Be},Le)})}):null},[_,B,a]),ze=(0,m.useMemo)(function(){return(0,c.jsx)(Hn,{onItemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),Fe=(0,m.useMemo)(function(){if(R===!1)return null;var Be=(0,c.jsx)(Or,{isMobile:p,collapsed:i,className:"".concat(B,"-collapsed-button"),onClick:function(){d==null||d(!i)}});return R?R(a,Be):Be},[R,p,i,B,a,d]),cn=(0,m.useMemo)(function(){return!Ze&&!Me?null:(0,c.jsxs)("div",{className:te()("".concat(B,"-actions"),V,a&&"".concat(B,"-actions-collapsed")),children:[Ze,Me]})},[Me,Ze,B,a,V]),Xe=(0,m.useMemo)(function(){var Be;return e!=null&&(Be=e.menu)!==null&&Be!==void 0&&Be.hideMenuWhenCollapsed&&a?"".concat(B,"-hide-menu-collapsed"):null},[B,a,e==null||(t=e.menu)===null||t===void 0?void 0:t.hideMenuWhenCollapsed]),Mn=u&&(u==null?void 0:u(e)),dn=(0,c.jsxs)(c.Fragment,{children:[Y&&(0,c.jsxs)("div",{className:te()([te()("".concat(B,"-logo"),V,(0,l.Z)({},"".concat(B,"-logo-collapsed"),a))]),onClick:ne?y:void 0,id:"logo",style:oe,children:[Y,ze]}),se&&(0,c.jsx)("div",{className:te()(["".concat(B,"-extra"),!Y&&"".concat(B,"-extra-no-logo"),V]),children:se}),(0,c.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Se}),(0,c.jsxs)(oa.Provider,{value:{},children:[z?(0,c.jsx)("div",{className:"".concat(B,"-links ").concat(V).trim(),children:(0,c.jsx)(et.Z,{inlineIndent:16,className:"".concat(B,"-link-menu ").concat(V).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:ge})}):null,ne&&(0,c.jsxs)(c.Fragment,{children:[cn,!Me&&ee?(0,c.jsx)("div",{className:te()("".concat(B,"-actions"),V,(0,l.Z)({},"".concat(B,"-actions-collapsed"),a)),children:ee==null?void 0:ee(e)}):null]}),Mn&&(0,c.jsx)("div",{className:te()(["".concat(B,"-footer"),V,(0,l.Z)({},"".concat(B,"-footer-collapsed"),a)]),children:Mn})]})]});return ue.wrapSSR((0,c.jsxs)(c.Fragment,{children:[o&&!p&&!Xe&&(0,c.jsx)("div",{style:(0,v.Z)({width:a?re:f,overflow:"hidden",flex:"0 0 ".concat(a?re:f,"px"),maxWidth:a?re:f,minWidth:a?re:f,transition:"all 0.2s ease 0s"},T)}),(0,c.jsxs)(aa,{collapsible:!0,trigger:null,collapsed:a,breakpoint:j===!1?void 0:j,onCollapse:function(Le){p||d==null||d(Le)},collapsedWidth:re,style:T,theme:s,width:f,className:te()(pe,V,Xe),children:[Xe?(0,c.jsx)("div",{className:"".concat(B,"-hide-when-collapsed ").concat(V).trim(),style:{height:"100%",width:"100%",opacity:Xe?0:1},children:dn}):dn,Fe]})]}))},ia=g(82250),la=g(12682),ua=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function ca(r){return(0,Ee.Xj)("ProLayoutRightContent",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ua(n)]})}var da=["rightContentRender","avatarProps","actionsRender","headerContentRender"],sa=["title","render"],vt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,ye.Z)(e,da),u=(0,m.useContext)(He.ZP.ConfigContext),d=u.getPrefixCls,s="".concat(d(),"-pro-global-header"),f=ca(s),p=f.wrapSSR,y=f.hashId,Z=(0,m.useState)("auto"),j=(0,F.Z)(Z,2),T=j[0],M=j[1],O=(0,m.useMemo)(function(){if(!t)return null;var R=t.title,x=t.render,S=(0,ye.Z)(t,sa),ee=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?(0,m.createElement)(qn.C,(0,v.Z)((0,v.Z)({},S),{},{size:28,key:"avatar"})):null,R?(0,c.jsx)("span",{style:{marginInlineStart:8},children:R},"name"):void 0];return x?x(t,(0,c.jsx)("div",{children:ee})):(0,c.jsx)("div",{children:ee})},[t]),$=a||O?function(R){var x=a&&(a==null?void 0:a(R));return!x&&!O?null:(Array.isArray(x)||(x=[x]),p((0,c.jsxs)("div",{className:"".concat(s,"-header-actions ").concat(y).trim(),children:[x.filter(Boolean).map(function(S,ee){var _=!1;if(m.isValidElement(S)){var P;_=!!(S!=null&&(P=S.props)!==null&&P!==void 0&&P["aria-hidden"])}return(0,c.jsx)("div",{className:te()("".concat(s,"-header-actions-item ").concat(y),(0,l.Z)({},"".concat(s,"-header-actions-hover"),!_)),children:S},ee)}),O&&(0,c.jsx)("span",{className:"".concat(s,"-header-actions-avatar ").concat(y).trim(),children:O})]})))}:void 0,z=(0,ia.D)(function(){var R=(0,ie.Z)((0,he.Z)().mark(function x(S){return(0,he.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:M(S);case 1:case"end":return _.stop()}},x)}));return function(x){return R.apply(this,arguments)}}(),160),N=$||n;return(0,c.jsx)("div",{className:"".concat(s,"-right-content ").concat(y).trim(),style:{minWidth:T,height:"100%"},children:(0,c.jsx)("div",{style:{height:"100%"},children:(0,c.jsx)(la.Z,{onResize:function(x){var S=x.width;z.run(S)},children:N?(0,c.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:N((0,v.Z)((0,v.Z)({},o),{},{rightContentSize:T}))}):null})})})},va=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function fa(r){return(0,Ee.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[va(n)]})}var ft=function(e){var n,t,a,i,o,u,d,s=(0,m.useRef)(null),f=e.onMenuHeaderClick,p=e.contentWidth,y=e.rightContentRender,Z=e.className,j=e.style,T=e.headerContentRender,M=e.layout,O=e.actionsRender,$=(0,m.useContext)(He.ZP.ConfigContext),z=$.getPrefixCls,N=(0,m.useContext)(k.L_),R=N.dark,x="".concat(e.prefixCls||z("pro"),"-top-nav-header"),S=fa(x),ee=S.wrapSSR,_=S.hashId,P=void 0;e.menuHeaderRender!==void 0?P="menuHeaderRender":(M==="mix"||M==="top")&&(P="headerTitleRender");var X=Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),P),oe=(0,m.useContext)(k.L_),b=oe.token,V=(0,m.useMemo)(function(){var ne,B,re,ue,pe,Y,se,ve,ge,Se,Ze,Me,ze,Fe=(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,v.Z)({},E({colorItemBg:((ne=b.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgHeader)||"transparent",colorSubItemBg:((B=b.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgHeader)||"transparent",radiusItem:b.borderRadius,colorItemBgSelected:((re=b.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorBgMenuItemSelected)||(b==null?void 0:b.colorBgTextHover),itemHoverBg:((ue=b.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.colorBgMenuItemHover)||(b==null?void 0:b.colorBgTextHover),colorItemBgSelectedHorizontal:((pe=b.layout)===null||pe===void 0||(pe=pe.header)===null||pe===void 0?void 0:pe.colorBgMenuItemSelected)||(b==null?void 0:b.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Y=b.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorTextMenu)||(b==null?void 0:b.colorTextSecondary),colorItemTextHoverHorizontal:((se=b.layout)===null||se===void 0||(se=se.header)===null||se===void 0?void 0:se.colorTextMenuActive)||(b==null?void 0:b.colorText),colorItemTextSelectedHorizontal:((ve=b.layout)===null||ve===void 0||(ve=ve.header)===null||ve===void 0?void 0:ve.colorTextMenuSelected)||(b==null?void 0:b.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((ge=b.layout)===null||ge===void 0||(ge=ge.header)===null||ge===void 0?void 0:ge.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Se=b.layout)===null||Se===void 0||(Se=Se.header)===null||Se===void 0?void 0:Se.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Ze=b.layout)===null||Ze===void 0||(Ze=Ze.header)===null||Ze===void 0?void 0:Ze.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:b==null?void 0:b.colorBgElevated,darkPopupBg:b==null?void 0:b.colorBgElevated}))},token:{colorBgElevated:((Me=b.layout)===null||Me===void 0||(Me=Me.header)===null||Me===void 0?void 0:Me.colorBgHeader)||"transparent"}},children:(0,c.jsx)(ct,(0,v.Z)((0,v.Z)((0,v.Z)({theme:R?"dark":"light"},e),{},{className:"".concat(x,"-base-menu ").concat(_).trim()},e.menuProps),{},{style:(0,v.Z)({width:"100%"},(ze=e.menuProps)===null||ze===void 0?void 0:ze.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return T?T(e,Fe):Fe},[(n=b.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=b.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=b.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=b.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=b.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(u=b.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorTextMenuSelected,(d=b.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,b.borderRadius,b==null?void 0:b.colorBgTextHover,b==null?void 0:b.colorTextSecondary,b==null?void 0:b.colorText,b==null?void 0:b.colorTextBase,b.colorBgElevated,R,e,x,_,T]);return ee((0,c.jsx)("div",{className:te()(x,_,Z,(0,l.Z)({},"".concat(x,"-light"),!0)),style:j,children:(0,c.jsxs)("div",{ref:s,className:te()("".concat(x,"-main"),_,(0,l.Z)({},"".concat(x,"-wide"),p==="Fixed"&&M==="top")),children:[X&&(0,c.jsxs)("div",{className:te()("".concat(x,"-main-left ").concat(_)),onClick:f,children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:"".concat(x,"-logo ").concat(_).trim(),id:"logo",children:X},"logo")]}),(0,c.jsx)("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(_).trim(),children:V}),(y||O||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)((0,v.Z)({rightContentRender:y},e),{},{prefixCls:x}))]})}))},ma=function(e){var n,t,a,i;return(0,l.Z)({},e.componentCls,(i={position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},(0,l.Z)(i,"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),(0,l.Z)(i,"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),(0,l.Z)(i,"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),(0,l.Z)(i,"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}),i))};function ha(r){return(0,Ee.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ma(n)]})}var ga=function(e,n){return e===!1?null:e?e(n,null):n},pa=function(e){var n,t=e.isMobile,a=e.logo,i=e.collapsed,o=e.onCollapse,u=e.rightContentRender,d=e.menuHeaderRender,s=e.onMenuHeaderClick,f=e.className,p=e.style,y=e.layout,Z=e.children,j=e.splitMenus,T=e.menuData,M=e.prefixCls,O=(0,m.useContext)(He.ZP.ConfigContext),$=O.getPrefixCls,z=O.direction,N="".concat(M||$("pro"),"-global-header"),R=ha(N),x=R.wrapSSR,S=R.hashId,ee=te()(f,N,S);if(y==="mix"&&!t&&j){var _=(T||[]).map(function(b){return(0,v.Z)((0,v.Z)({},b),{},{children:void 0,routes:void 0})}),P=(0,un.QX)(_);return(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:P}))}var X=te()("".concat(N,"-logo"),S,(n={},(0,l.Z)(n,"".concat(N,"-logo-rtl"),z==="rtl"),(0,l.Z)(n,"".concat(N,"-logo-mix"),y==="mix"),(0,l.Z)(n,"".concat(N,"-logo-mobile"),t),n)),oe=(0,c.jsx)("span",{className:X,children:(0,c.jsx)("a",{children:An(a)})},"logo");return x((0,c.jsxs)("div",{className:ee,style:(0,v.Z)({},p),children:[t&&(0,c.jsx)("span",{className:"".concat(N,"-collapsed-button ").concat(S).trim(),onClick:function(){o==null||o(!i)},children:(0,c.jsx)(Mr,{})}),t&&ga(d,oe),y==="mix"&&!t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:X,onClick:s,children:Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,c.jsx)("div",{style:{flex:1},children:Z}),(u||e.actionsRender||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)({rightContentRender:u},e))]}))},ya=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function xa(r){return(0,Ee.Xj)("ProLayoutHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ya(n)]})}function Ca(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var mt=Ve.Z.Header,ba=function(e){var n,t,a,i,o=e.isMobile,u=e.fixedHeader,d=e.className,s=e.style,f=e.collapsed,p=e.prefixCls,y=e.onCollapse,Z=e.layout,j=e.headerRender,T=e.headerContentRender,M=(0,m.useContext)(k.L_),O=M.token,$=(0,m.useContext)(He.ZP.ConfigContext),z=(0,m.useState)(!1),N=(0,F.Z)(z,2),R=N[0],x=N[1],S=u||Z==="mix",ee=(0,m.useCallback)(function(){var B=Z==="top",re=(0,un.QX)(e.menuData||[]),ue=(0,c.jsx)(pa,(0,v.Z)((0,v.Z)({onCollapse:y},e),{},{menuData:re,children:T&&T(e,null)}));return B&&!o&&(ue=(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal",onCollapse:y},e),{},{menuData:re}))),j&&typeof j=="function"?j(e,ue):ue},[T,j,o,Z,y,e]);(0,m.useEffect)(function(){var B,re=($==null||(B=$.getTargetContainer)===null||B===void 0?void 0:B.call($))||document.body,ue=function(){var Y,se=re.scrollTop;return se>(((Y=O.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.heightLayoutHeader)||56)&&!R?(x(!0),!0):(R&&x(!1),!1)};if(S&&typeof window!="undefined")return re.addEventListener("scroll",ue,{passive:!0}),function(){re.removeEventListener("scroll",ue)}},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,R]);var _=Z==="top",P="".concat(p,"-layout-header"),X=xa(P),oe=X.wrapSSR,b=X.hashId,V=Ca("".concat(P,".").concat(P,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),ne=te()(d,b,P,(t={},(0,l.Z)(t,"".concat(P,"-fixed-header"),S),(0,l.Z)(t,"".concat(P,"-fixed-header-scroll"),R),(0,l.Z)(t,"".concat(P,"-mix"),Z==="mix"),(0,l.Z)(t,"".concat(P,"-fixed-header-action"),!f),(0,l.Z)(t,"".concat(P,"-top-menu"),_),(0,l.Z)(t,"".concat(P,"-header"),!0),(0,l.Z)(t,"".concat(P,"-stylish"),!!e.stylish),t));return Z==="side"&&!o?null:V.wrapSSR(oe((0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&(0,c.jsx)(mt,{style:(0,v.Z)({height:((a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,lineHeight:"".concat(((i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),(0,c.jsx)(mt,{className:ne,style:s,children:ee()})]})})))},Sa=g(27449),Za=g(19465),Ma=g(60076),ht=new Ma.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Ia=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(M={},(0,l.Z)(M,"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),(0,l.Z)(M,e.componentCls,(Z={position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},(0,l.Z)(Z,"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),(0,l.Z)(Z,"".concat(e.antCls,"-menu"),(o={},(0,l.Z)(o,"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item:hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover}),o)),(0,l.Z)(Z,"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),(0,l.Z)(Z,"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(p=e.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),(0,l.Z)(Z,"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),(0,l.Z)(Z,"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),(0,l.Z)(Z,"&-links",{width:"100%",ul:{height:"auto"}}),(0,l.Z)(Z,"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),(0,l.Z)(Z,"&-footer",{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease"}),Z)),(0,l.Z)(M,"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((j=e.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((T=e.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.heightLayoutHeader)||56,"px")}}),M))};function Ra(r,e){var n=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutSiderMenu",function(t){var a=(0,v.Z)((0,v.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[Ia(a)]})}var gt=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,u=e.style,d=e.className,s=e.hide,f=e.prefixCls,p=(0,m.useContext)(k.L_),y=p.token;(0,m.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var Z=(0,Jn.Z)(e,["className","style"]),j=m.useContext(He.ZP.ConfigContext),T=j.direction,M=Ra("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),O=M.wrapSSR,$=M.hashId,z=te()("".concat(f,"-sider"),d,$);if(s)return null;var N=(0,C.X)(!i,function(){return o==null?void 0:o(!0)});return O(t?(0,c.jsx)(Za.Z,(0,v.Z)((0,v.Z)({placement:T==="rtl"?"right":"left",className:te()("".concat(f,"-drawer-sider"),d)},N),{},{style:(0,v.Z)({padding:0,height:"100vh"},u),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=y.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,c.jsx)(st,(0,v.Z)((0,v.Z)({},Z),{},{isMobile:!0,className:z,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,c.jsx)(st,(0,v.Z)((0,v.Z)({className:z,originCollapsed:i},Z),{},{style:u})))},pt=g(169),Ta=g(58809),Dn=g.n(Ta),Pa=function(e,n,t){if(t){var a=(0,Cn.Z)(t.keys()).find(function(o){return Dn()(o).test(e)});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){return Dn()(o).test(e)});if(i)return n[i]}return{path:""}},On=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,d=e.title,s=e.menu,f=s===void 0?{locale:!1}:s,p=n?"":d||"",y=Pa(a,i,o);if(!y)return{title:p,id:"",pageName:p};var Z=y.name;return f.locale!==!1&&y.locale&&u&&(Z=u({id:y.locale||"",defaultMessage:y.name})),Z?n||!d?{title:Z,id:y.locale||"",pageName:Z}:{title:"".concat(Z," - ").concat(d),id:y.locale||"",pageName:Z}:{title:p,id:y.locale||"",pageName:p}},bo=function(e,n){return On(e,n).title},Ba=g(4569),Zn=g(63945),Qe=g(14224),ja=function(){var e;return typeof Qe=="undefined"?Zn.Z:((e=Qe)===null||Qe===void 0||(Qe={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Qe===void 0?void 0:Qe.ANTD_VERSION)||Zn.Z},Ea=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M,O,$,z,N,R,x,S,ee,_,P,X,oe,b,V,ne,B,re,ue,pe,Y,se,ve,ge,Se,Ze,Me;return(n=ja())!==null&&n!==void 0&&n.startsWith("5")?{}:(Me={},(0,l.Z)(Me,e.componentCls,(ue={width:"100%",height:"100%"},(0,l.Z)(ue,"".concat(e.proComponentsCls,"-base-menu"),(_={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)(_,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),(0,l.Z)(_,"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu"),(o={color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},(0,l.Z)(o,"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item a"),{color:"inherit"}),o)),(0,l.Z)(_,"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),(0,l.Z)(_,"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Z={},(0,l.Z)(Z,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected,borderRadius:e.borderRadius}),(0,l.Z)(Z,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((p=e.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive})),Z)),(0,l.Z)(_,"".concat(e.antCls,"-menu-item-selected"),{color:(j=e.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-selected"),{color:(T=e.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(O=e.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected})),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:($=e.layout)===null||$===void 0||($=$.sider)===null||$===void 0?void 0:$.colorTextMenuActive}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-horizontal"),(ee={},(0,l.Z)(ee,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-submenu:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive,backgroundColor:"".concat((N=e.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemHover," !important")}),(0,l.Z)(ee,"".concat(e.antCls,`-menu-item-open, + `).concat(e.antCls,`-menu-submenu-open, + `).concat(e.antCls,`-menu-item-selected, + `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(R=e.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((x=e.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((S=e.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuSelected," !important")})),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"}),ee)),_)),(0,l.Z)(ue,"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(re={},(0,l.Z)(re,"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(P=e.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),(0,l.Z)(re,"&".concat(e.antCls,"-menu-light"),(B={},(0,l.Z)(B,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(X=e.layout)===null||X===void 0||(X=X.header)===null||X===void 0?void 0:X.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(oe=e.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(b=e.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorTextMenuActive})),(0,l.Z)(B,"".concat(e.antCls,"-menu-item-selected"),{color:(V=e.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgMenuItemSelected}),B)),re)),ue)),(0,l.Z)(Me,"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(Me,"".concat(e.antCls,"-menu-submenu-popup"),(Ze={backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},(0,l.Z)(Ze,"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-item-selected"),{color:(pe=e.layout)===null||pe===void 0||(pe=pe.sider)===null||pe===void 0?void 0:pe.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-submenu-selected"),{color:(Y=e.layout)===null||Y===void 0||(Y=Y.sider)===null||Y===void 0?void 0:Y.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Se={},(0,l.Z)(Se,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(se=e.layout)===null||se===void 0||(se=se.sider)===null||se===void 0?void 0:se.colorTextMenuSelected}),(0,l.Z)(Se,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(ve=e.layout)===null||ve===void 0||(ve=ve.sider)===null||ve===void 0?void 0:ve.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(ge=e.layout)===null||ge===void 0||(ge=ge.sider)===null||ge===void 0?void 0:ge.colorTextMenuActive})),Se)),Ze)),Me)},wa=function(e){var n,t,a,i,o,u;return u={},(0,l.Z)(u,"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),(0,l.Z)(u,e.componentCls,(o={},(0,l.Z)(o,"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),(0,l.Z)(o,"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),(0,l.Z)(o,"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),(0,l.Z)(o,"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}),o)),u};function _a(r){return(0,Ee.Xj)("ProLayout",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wa(n),Ea(n)]})}function La(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var Ye=g(14224),Aa=function(){var e;return typeof Ye=="undefined"?Zn.Z:((e=Ye)===null||Ye===void 0||(Ye={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Ye===void 0?void 0:Ye.ANTD_VERSION)||Zn.Z},Ha=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,u=a.path,d=t.findIndex(function(s){return s.linkPath===e.path})===t.length-1;return d?(0,c.jsx)("span",{children:o||i}):(0,c.jsx)("span",{onClick:u?function(){return location.href=u}:void 0,children:o||i})},Na=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},Da=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){return Dn()(o.replace("?","")).test(n)});i&&(t=e.get(i))}return t||{path:""}},Oa=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},$a=function(e,n,t){var a=La(e==null?void 0:e.pathname),i=a.map(function(o){var u=Da(n,o),d=Na(u,t),s=u.hideInBreadcrumb;return d&&!s?{linkPath:o,breadcrumbName:d,title:d,component:u.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Wa=function(e){var n=Oa(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?$a(t,a,e):[]},za=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,u=o===void 0?2:o,d=Wa(e),s=function(y){for(var Z=a||Ha,j=arguments.length,T=new Array(j>1?j-1:0),M=1;M-1?{items:f,itemRender:s}:{routes:f,itemRender:s}};function Fa(r){return(0,Cn.Z)(r).reduce(function(e,n){var t=(0,F.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Ka=function r(e,n,t,a){var i=lr(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,u=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:Fa(u),breadcrumbMap:u,menuData:o}},Ua=g(40727),Ga=g(16168),Xa=function(e){var n=(0,m.useState)({}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useEffect)(function(){i((0,Ga.Y)({layout:(0,Ua.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},Va=["id","defaultMessage"],Qa=["fixSiderbar","navTheme","layout"],yt=0,Ya=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,c.jsx)(ba,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},Ja=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,v.Z)({},e),(0,c.jsx)(xr.q,{})):null},ka=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,u=e.openKeys,d=e.splitMenus,s=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var p=e.menuData;if(d&&(u!==!1||a==="mix")&&!i){var y=o||n,Z=(0,F.Z)(y,1),j=Z[0];if(j){var T;p=((T=e.menuData)===null||T===void 0||(T=T.find(function(z){return z.key===j}))===null||T===void 0?void 0:T.children)||[]}else p=[]}var M=(0,un.QX)(p||[]);if(M&&(M==null?void 0:M.length)<1&&(d||s))return null;if(a==="top"&&!i){var O;return(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(O=e.stylish)===null||O===void 0?void 0:O.sider}))}var $=(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{menuData:M,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return f?f(e,$):$},qa=function(e,n){var t=n.pageTitleRender,a=On(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return On((0,v.Z)((0,v.Z)({},a),{},{title:i}));(0,hr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},eo=function(e,n,t){return e?n?64:t:0},no=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M=e||{},O=M.children,$=M.onCollapse,z=M.location,N=z===void 0?{pathname:"/"}:z,R=M.contentStyle,x=M.route,S=M.defaultCollapsed,ee=M.style,_=M.siderWidth,P=M.menu,X=M.siderMenuType,oe=M.isChildrenLayout,b=M.menuDataRender,V=M.actionRef,ne=M.bgLayoutImgList,B=M.formatMessage,re=M.loading,ue=(0,m.useMemo)(function(){return _||(e.layout==="mix"?215:256)},[e.layout,_]),pe=(0,m.useContext)(He.ZP.ConfigContext),Y=(n=e.prefixCls)!==null&&n!==void 0?n:pe.getPrefixCls("pro"),se=(0,ce.Z)(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),ve=(0,F.Z)(se,2),ge=ve[0],Se=ve[1],Ze=(0,m.useState)(function(){return yt+=1,"pro-layout-".concat(yt)}),Me=(0,F.Z)(Ze,1),ze=Me[0],Fe=(0,m.useCallback)(function(Pe){var Ke=Pe.id,Tn=Pe.defaultMessage,hn=(0,ye.Z)(Pe,Va);if(B)return B((0,v.Z)({id:Ke,defaultMessage:Tn},hn));var gn=(0,Ba.e)();return gn[Ke]?gn[Ke]:Tn},[B]),cn=(0,kn.ZP)([ze,P==null?void 0:P.params],function(){var Pe=(0,ie.Z)((0,he.Z)().mark(function Ke(Tn){var hn,gn,wt,_t;return(0,he.Z)().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return gn=(0,F.Z)(Tn,2),wt=gn[1],Se(!0),nn.next=4,P==null||(hn=P.request)===null||hn===void 0?void 0:hn.call(P,wt||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return _t=nn.sent,Se(!1),nn.abrupt("return",_t);case 7:case"end":return nn.stop()}},Ke)}));return function(Ke){return Pe.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Xe=cn.data,Mn=cn.mutate,dn=cn.isLoading;(0,m.useEffect)(function(){Se(dn)},[dn]);var Be=(0,kn.kY)(),Le=Be.cache;(0,m.useEffect)(function(){return function(){Le instanceof Map&&Le.delete(ze)}},[]);var Ae=(0,m.useMemo)(function(){return Ka(Xe||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,Fe,b)},[Fe,P,b,Xe,x==null?void 0:x.children,x==null?void 0:x.routes]),Je=Ae||{},ro=Je.breadcrumb,xt=Je.breadcrumbMap,Ct=Je.menuData,sn=Ct===void 0?[]:Ct;V&&P!==null&&P!==void 0&&P.request&&(V.current={reload:function(){Mn()}});var vn=(0,m.useMemo)(function(){return fr(N.pathname||"/",sn||[],!0)},[N.pathname,sn]),$n=(0,m.useMemo)(function(){return Array.from(new Set(vn.map(function(Pe){return Pe.key||Pe.path||""})))},[vn]),bt=vn[vn.length-1]||{},St=Xa(bt),In=(0,v.Z)((0,v.Z)({},e),St),ao=In.fixSiderbar,So=In.navTheme,fn=In.layout,oo=(0,ye.Z)(In,Qa),ke=L(),qe=(0,m.useMemo)(function(){return(ke==="sm"||ke==="xs")&&!e.disableMobile},[ke,e.disableMobile]),io=fn!=="top"&&!qe,lo=(0,ce.Z)(function(){return S!==void 0?S:!!(qe||ke==="md")},{value:e.collapsed,onChange:$}),Zt=(0,F.Z)(lo,2),mn=Zt[0],Mt=Zt[1],en=(0,Jn.Z)((0,v.Z)((0,v.Z)((0,v.Z)({prefixCls:Y},e),{},{siderWidth:ue},St),{},{formatMessage:Fe,breadcrumb:ro,menu:(0,v.Z)((0,v.Z)({},P),{},{type:X||(P==null?void 0:P.type),loading:ge}),layout:fn}),["className","style","breadcrumbRender"]),Wn=qa((0,v.Z)((0,v.Z)({pathname:N.pathname},en),{},{breadcrumbMap:xt}),e),uo=za((0,v.Z)((0,v.Z)({},en),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:xt}),e),Rn=ka((0,v.Z)((0,v.Z)({},en),{},{menuData:sn,onCollapse:Mt,isMobile:qe,collapsed:mn}),$n),zn=Ya((0,v.Z)((0,v.Z)({},en),{},{children:null,hasSiderMenu:!!Rn,menuData:sn,isMobile:qe,collapsed:mn,onCollapse:Mt}),$n),It=Ja((0,v.Z)({isMobile:qe,collapsed:mn},en)),co=(0,m.useContext)(pt.X),so=co.isChildrenLayout,Fn=oe!==void 0?oe:so,Ne="".concat(Y,"-layout"),Rt=_a(Ne),vo=Rt.wrapSSR,Kn=Rt.hashId,fo=te()(e.className,Kn,"ant-design-pro",Ne,(t={},(0,l.Z)(t,"screen-".concat(ke),ke),(0,l.Z)(t,"".concat(Ne,"-top-menu"),fn==="top"),(0,l.Z)(t,"".concat(Ne,"-is-children"),Fn),(0,l.Z)(t,"".concat(Ne,"-fix-siderbar"),ao),(0,l.Z)(t,"".concat(Ne,"-").concat(fn),fn),t)),mo=eo(!!io,mn,ue),Tt={position:"relative"};(Fn||R&&R.minHeight)&&(Tt.minHeight=0),(0,m.useEffect)(function(){var Pe;(Pe=e.onPageChange)===null||Pe===void 0||Pe.call(e,e.location)},[N.pathname,(a=N.pathname)===null||a===void 0?void 0:a.search]);var ho=(0,m.useState)(!1),Pt=(0,F.Z)(ho,2),Bt=Pt[0],go=Pt[1],po=(0,m.useState)(0),jt=(0,F.Z)(po,2),Et=jt[0],yo=jt[1];h(Wn,e.title||!1);var xo=(0,m.useMemo)(function(){return ne&&ne.length>0?ne.map(function(Pe,Ke){return(0,c.jsx)("img",{src:Pe.src,style:(0,v.Z)({position:"absolute"},Pe)},Ke)}):null},[ne]),Co=(0,m.useContext)(k.L_),J=Co.token;return vo((0,c.jsx)(pt.X.Provider,{value:(0,v.Z)((0,v.Z)({},en),{},{breadcrumb:uo,menuData:sn,isMobile:qe,collapsed:mn,hasPageContainer:Et,setHasPageContainer:yo,isChildrenLayout:!0,title:Wn.pageName,hasSiderMenu:!!Rn,hasHeader:!!zn,siderWidth:mo,hasFooter:!!It,hasFooterToolbar:Bt,setHasFooterToolbar:go,pageTitleInfo:Wn,matchMenus:vn,matchMenuKeys:$n,currentMenu:bt}),children:e.pure?(0,c.jsx)(c.Fragment,{children:O}):(0,c.jsxs)("div",{className:fo,children:[(0,c.jsx)("div",{className:te()("".concat(Ne,"-bg-list"),Kn),children:xo}),(0,c.jsxs)(Ve.Z,{style:(0,v.Z)({minHeight:"100%",flexDirection:Rn?"row":void 0},ee),children:[(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),token:{controlHeightLG:((i=J.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(J==null?void 0:J.controlHeightLG)},components:{Menu:E({colorItemBg:((o=J.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((u=J.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorMenuBackground)||"transparent",radiusItem:J.borderRadius,colorItemBgSelected:((d=J.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(J==null?void 0:J.colorBgTextHover),colorItemBgHover:((s=J.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemHover)||(J==null?void 0:J.colorBgTextHover),colorItemBgActive:((f=J.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(J==null?void 0:J.colorBgTextActive),colorItemBgSelectedHorizontal:((p=J.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorBgMenuItemSelected)||(J==null?void 0:J.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((y=J.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenu)||(J==null?void 0:J.colorTextSecondary),colorItemTextHover:((Z=J.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((j=J.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:J==null?void 0:J.colorBgElevated,darkPopupBg:J==null?void 0:J.colorBgElevated})}},children:Rn}),(0,c.jsxs)("div",{style:Tt,className:"".concat(Ne,"-container ").concat(Kn).trim(),children:[zn,(0,c.jsx)(pr,(0,v.Z)((0,v.Z)({hasPageContainer:Et,isChildrenLayout:Fn},oo),{},{hasHeader:!!zn,prefixCls:Ne,style:R,children:re?(0,c.jsx)(Sa.S,{}):O})),It,Bt&&(0,c.jsx)("div",{className:"".concat(Ne,"-has-footer"),style:{height:64,marginBlockStart:(T=J.layout)===null||T===void 0||(T=T.pageContainer)===null||T===void 0?void 0:T.paddingBlockPageContainerContent}})]})]})]})}))},to=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,c.jsx)(He.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,c.jsx)(k._Y,(0,v.Z)((0,v.Z)({autoClearCache:!0},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,c.jsx)(no,(0,v.Z)((0,v.Z)({logo:(0,c.jsx)(yr,{})},at.h),{},{location:(0,U.j)()?window.location:void 0},e))}))})}},27449:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return k}});var l=g(33346),he=g(10570),ie=g(38705),ye=g(50959),F=g(11527),v=["isLoading","pastDelay","timedOut","error","retry"],k=function(m){var de=m.isLoading,fe=m.pastDelay,Ce=m.timedOut,L=m.error,U=m.retry,h=(0,he.Z)(m,v);return(0,F.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,F.jsx)(ie.Z,(0,l.Z)({size:"large"},h))})}},169:function(Re,Ie,g){"use strict";g.d(Ie,{X:function(){return he}});var l=g(50959),he=(0,l.createContext)({})},27542:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return de}});var l=g(47920),he=g(77254),ie=g(95325),ye=g(44906),F=g(41399),v=g(73273),k=g(6053),ce=g(50959),m=g(11527),de=function(fe){(0,ye.Z)(L,fe);var Ce=(0,F.Z)(L);function L(){var U;(0,l.Z)(this,L);for(var h=arguments.length,I=new Array(h),C=0;C=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||w===95){ae+=h[D++];continue}break}if(!ae)throw new TypeError("Missing parameter name at "+C);I.push({type:"NAME",index:C,value:ae}),C=D;continue}if(E==="("){var A=1,Q="",D=C+1;if(h[D]==="?")throw new TypeError('Pattern cannot start with "?" at '+D);for(;D-1:je===void 0;ae||(me+="(?:"+xe+"(?="+G+"))?"),$e||(me+="(?="+xe+"|"+G+")")}return new RegExp(me,m(C))}g=L;function U(h,I,C){return h instanceof RegExp?de(h,I):Array.isArray(h)?fe(h,I,C):Ce(h,I,C)}Ie.Bo=U},58809:function(Re){Re.exports=Ce,Re.exports.parse=he,Re.exports.compile=ie,Re.exports.tokensToFunction=ye,Re.exports.tokensToRegExp=fe;var Ie="/",g="./",l=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function he(L,U){for(var h=[],I=0,C=0,E="",ae=U&&U.delimiter||Ie,D=U&&U.delimiters||g,w=!1,A;(A=l.exec(L))!==null;){var Q=A[0],q=A[1],K=A.index;if(E+=L.slice(C,K),C=K+Q.length,q){E+=q[1],w=!0;continue}var G="",xe=L[C],me=A[2],W=A[3],le=A[4],H=A[5];if(!w&&E.length){var Te=E.length-1;D.indexOf(E[Te])>-1&&(G=E[Te],E=E.slice(0,Te))}E&&(h.push(E),E="",w=!1);var _e=G!==""&&xe!==void 0&&xe!==G,Oe=H==="+"||H==="*",je=H==="?"||H==="*",$e=G||ae,De=W||le;h.push({name:me||I++,prefix:G,delimiter:$e,optional:je,repeat:Oe,partial:_e,pattern:De?v(De):"[^"+F($e)+"]+?"})}return(E||C-1;else{var G=K.repeat?"(?:"+K.pattern+")(?:"+F(K.delimiter)+"(?:"+K.pattern+"))*":K.pattern;U&&U.push(K),K.optional?K.partial?A+=F(K.prefix)+"("+G+")?":A+="(?:"+F(K.prefix)+"("+G+"))?":A+=F(K.prefix)+"("+G+")"}}return E?(I||(A+="(?:"+ae+")?"),A+=w==="$"?"$":"(?="+w+")"):(I||(A+="(?:"+ae+"(?="+w+"))?"),Q||(A+="(?="+ae+"|"+w+")")),new RegExp(A,k(h))}function Ce(L,U,h){return L instanceof RegExp?ce(L,U):Array.isArray(L)?m(L,U,h):de(L,U,h)}},38887:function(Re,Ie,g){var l=g(61533);function he(ie,ye){var F=typeof Symbol!="undefined"&&ie[Symbol.iterator]||ie["@@iterator"];if(!F){if(Array.isArray(ie)||(F=l(ie))||ye&&ie&&typeof ie.length=="number"){F&&(ie=F);var v=0,k=function(){};return{s:k,n:function(){return v>=ie.length?{done:!0}:{done:!1,value:ie[v++]}},e:function(Ce){throw Ce},f:k}}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 ce=!0,m=!1,de;return{s:function(){F=F.call(ie)},n:function(){var Ce=F.next();return ce=Ce.done,Ce},e:function(Ce){m=!0,de=Ce},f:function(){try{!ce&&F.return!=null&&F.return()}finally{if(m)throw de}}}}Re.exports=he,Re.exports.__esModule=!0,Re.exports.default=Re.exports}}]); diff --git a/6217.77d97486.async.js b/6217.77d97486.async.js new file mode 100644 index 00000000..f4bde8e9 --- /dev/null +++ b/6217.77d97486.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6217],{19485:function(m,o){"use strict";var t={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"};o.Z=t},8941:function(m,o){"use strict";var t={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"};o.Z=t},64935:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ClusterOutlined";var r=n.forwardRef(a)},93590:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ContactsOutlined";var r=n.forwardRef(a)},94573:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(19485),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="DownloadOutlined",o.Z=n.forwardRef(s)},83011:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(8941),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="EditOutlined",o.Z=n.forwardRef(s)},27174:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(44108),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="EllipsisOutlined",o.Z=n.forwardRef(s)},26252:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="HomeOutlined";var r=n.forwardRef(a)},19791:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="LikeOutlined";var r=n.forwardRef(a)},55842:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="MessageFilled";var r=n.forwardRef(a)},1442:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(63374),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="PlusOutlined",o.Z=n.forwardRef(s)},25468:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ShareAltOutlined";var r=n.forwardRef(a)},50615:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:function(u,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:v}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:u}}]}},name:"star",theme:"twotone"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="StarTwoTone";var r=n.forwardRef(a)},57249:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(38126),n=t(50959),l={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"},c=l,s=t(38782),a=function(u,v){return n.createElement(s.Z,(0,e.Z)({},u,{ref:v,icon:c}))},r=n.forwardRef(a)},96527:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(38126),n=t(50959),l={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"},c=l,s=t(38782),a=function(u,v){return n.createElement(s.Z,(0,e.Z)({},u,{ref:v,icon:c}))},r=n.forwardRef(a)},19494:function(m,o,t){"use strict";t.d(o,{f:function(){return D}});var e=t(73273),n=t(56197),l=t(84875),c=t.n(l),s=t(50959),a=t(169),r=t(33346),f=t(26488),u=function(g){return(0,e.Z)({},g.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function v(P){return(0,f.Xj)("ProLayoutGridContent",function(g){var Z=(0,r.Z)((0,r.Z)({},g),{},{componentCls:".".concat(P)});return[u(Z)]})}var T=t(11527),D=function(g){var Z=(0,s.useContext)(a.X),G=g.children,z=g.contentWidth,y=g.className,x=g.style,N=(0,s.useContext)(n.ZP.ConfigContext),R=N.getPrefixCls,et=g.prefixCls||R("pro"),lt=z||Z.contentWidth,Q="".concat(et,"-grid-content"),nt=v(Q),ut=nt.wrapSSR,at=nt.hashId,ct=lt==="Fixed"&&Z.layout==="top";return ut((0,T.jsx)("div",{className:c()(Q,at,y,(0,e.Z)({},"".concat(Q,"-wide"),ct)),style:x,children:(0,T.jsx)("div",{className:"".concat(et,"-grid-content-children ").concat(at).trim(),children:G})}))}},169:function(m,o,t){"use strict";t.d(o,{X:function(){return n}});var e=t(50959),n=(0,e.createContext)({})},82099:function(m,o,t){"use strict";var e=t(50120);o.Z=e.Z},33952:function(m,o,t){"use strict";t.d(o,{Z:function(){return vt}});var e=t(50959),n=t(84875),l=t.n(n),c=t(31594),s=t(1415),a=t(55904),f=i=>{const{getPrefixCls:M,direction:h}=(0,e.useContext)(c.E_),{prefixCls:d,className:O}=i,p=M("input-group",d),w=M("input"),[S,V]=(0,a.ZP)(w),U=l()(p,{[`${p}-lg`]:i.size==="large",[`${p}-sm`]:i.size==="small",[`${p}-compact`]:i.compact,[`${p}-rtl`]:h==="rtl"},V,O),j=(0,e.useContext)(s.aM),L=(0,e.useMemo)(()=>Object.assign(Object.assign({},j),{isFormItemInput:!1}),[j]);return S(e.createElement("span",{className:U,style:i.style,onMouseEnter:i.onMouseEnter,onMouseLeave:i.onMouseLeave,onFocus:i.onFocus,onBlur:i.onBlur},e.createElement(s.aM.Provider,{value:L},i.children)))},u=t(21626),v=t(57249),T=t(96527),D=t(87017),P=t(12602),g=t(59647),Z=function(i,M){var h={};for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&M.indexOf(d)<0&&(h[d]=i[d]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,d=Object.getOwnPropertySymbols(i);Oi?e.createElement(T.Z,null):e.createElement(v.Z,null),z={click:"onClick",hover:"onMouseOver"};var x=e.forwardRef((i,M)=>{const{visibilityToggle:h=!0}=i,d=typeof h=="object"&&h.visible!==void 0,[O,p]=(0,e.useState)(()=>d?h.visible:!1),w=(0,e.useRef)(null);e.useEffect(()=>{d&&p(h.visible)},[d,h]);const S=(0,g.Z)(w),V=()=>{const{disabled:Y}=i;Y||(O&&S(),p(I=>{var A;const $=!I;return typeof h=="object"&&((A=h.onVisibleChange)===null||A===void 0||A.call(h,$)),$}))},U=Y=>{const{action:I="click",iconRender:A=G}=i,$=z[I]||"",F=A(O),k={[$]:V,className:`${Y}-icon`,key:"passwordIcon",onMouseDown:q=>{q.preventDefault()},onMouseUp:q=>{q.preventDefault()}};return e.cloneElement(e.isValidElement(F)?F:e.createElement("span",null,F),k)},{className:j,prefixCls:L,inputPrefixCls:ot,size:b}=i,_=Z(i,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:st}=e.useContext(c.E_),rt=st("input",ot),K=st("input-password",L),J=h&&U(K),B=l()(K,j,{[`${K}-${b}`]:!!b}),it=Object.assign(Object.assign({},(0,D.Z)(_,["suffix","iconRender","visibilityToggle"])),{type:O?"text":"password",className:B,prefixCls:rt,suffix:J});return b&&(it.size=b),e.createElement(u.Z,Object.assign({ref:(0,P.sQ)(M,w)},it))}),N=t(61020),R=t(94914),et=t(47100),lt=t(17436),Q=t(21130),nt=function(i,M){var h={};for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&M.indexOf(d)<0&&(h[d]=i[d]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,d=Object.getOwnPropertySymbols(i);O{const{prefixCls:h,inputPrefixCls:d,className:O,size:p,suffix:w,enterButton:S=!1,addonAfter:V,loading:U,disabled:j,onSearch:L,onChange:ot,onCompositionStart:b,onCompositionEnd:_}=i,st=nt(i,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:rt,direction:K}=e.useContext(c.E_),J=e.useRef(!1),B=rt("input-search",h),it=rt("input",d),{compactSize:Y}=(0,Q.ri)(B,K),I=(0,lt.Z)(C=>{var E;return(E=p!=null?p:Y)!==null&&E!==void 0?E:C}),A=e.useRef(null),$=C=>{C&&C.target&&C.type==="click"&&L&&L(C.target.value,C,{source:"clear"}),ot&&ot(C)},F=C=>{var E;document.activeElement===((E=A.current)===null||E===void 0?void 0:E.input)&&C.preventDefault()},k=C=>{var E,W;L&&L((W=(E=A.current)===null||E===void 0?void 0:E.input)===null||W===void 0?void 0:W.value,C,{source:"input"})},q=C=>{J.current||U||k(C)},mt=typeof S=="boolean"?e.createElement(N.Z,null):null,dt=`${B}-button`;let tt;const H=S||{},ft=H.type&&H.type.__ANT_BUTTON===!0;ft||H.type==="button"?tt=(0,R.Tm)(H,Object.assign({onMouseDown:F,onClick:C=>{var E,W;(W=(E=H==null?void 0:H.props)===null||E===void 0?void 0:E.onClick)===null||W===void 0||W.call(E,C),k(C)},key:"enterButton"},ft?{className:dt,size:I}:{})):tt=e.createElement(et.ZP,{className:dt,type:S?"primary":void 0,size:I,disabled:j,key:"enterButton",onMouseDown:F,onClick:k,loading:U,icon:mt},S),V&&(tt=[tt,(0,R.Tm)(V,{key:"addonAfter"})]);const ht=l()(B,{[`${B}-rtl`]:K==="rtl",[`${B}-${I}`]:!!I,[`${B}-with-button`]:!!S},O),Ot=C=>{J.current=!0,b==null||b(C)},Ct=C=>{J.current=!1,_==null||_(C)};return e.createElement(u.Z,Object.assign({ref:(0,P.sQ)(A,M),onPressEnter:q},st,{size:I,onCompositionStart:Ot,onCompositionEnd:Ct,prefixCls:it,addonAfter:tt,suffix:w,onChange:$,className:ht,disabled:j}))}),ct=t(15714);const X=u.Z;X.Group=f,X.Search=at,X.TextArea=ct.Z,X.Password=x;var vt=X},23870:function(m,o,t){"use strict";var e=t(72611);o.Z=e.Z},92117:function(m){(function(o,t){m.exports=t()})(this,function(){"use strict";return function(o,t,e){o=o||{};var n=t.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(a,r,f,u){return n.fromToBase(a,r,f,u)}e.en.relativeTime=l,n.fromToBase=function(a,r,f,u,v){for(var T,D,P,g=f.$locale().relativeTime||l,Z=o.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],G=Z.length,z=0;z0,x<=y.r||!y.r){x<=1&&z>0&&(y=Z[z-1]);var N=g[y.l];v&&(x=v(""+x)),D=typeof N=="string"?N.replace("%d",x):N(x,r,y.l,P);break}}if(r)return D;var R=P?g.future:g.past;return typeof R=="function"?R(D):R.replace("%s",D)},n.to=function(a,r){return c(a,r,this,!0)},n.from=function(a,r){return c(a,r,this)};var s=function(a){return a.$u?e.utc():e()};n.toNow=function(a){return this.to(s(this),a)},n.fromNow=function(a){return this.from(s(this),a)}}})}}]); diff --git a/6232.4023aa3d.async.js b/6232.4023aa3d.async.js new file mode 100644 index 00000000..09f56aab --- /dev/null +++ b/6232.4023aa3d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6232],{56232:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(50959),u=t(27533),s=t(11527);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]); diff --git a/6445.7998d4fd.async.js b/6445.7998d4fd.async.js new file mode 100644 index 00000000..4da6aa5c --- /dev/null +++ b/6445.7998d4fd.async.js @@ -0,0 +1,7552 @@ +!(function(){var Z_=(rr,J,L)=>new Promise((re,pe)=>{var _=he=>{try{U(L.next(he))}catch(ae){pe(ae)}},le=he=>{try{U(L.throw(he))}catch(ae){pe(ae)}},U=he=>he.done?re(he.value):Promise.resolve(he.value).then(_,le);U((L=L.apply(rr,J)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6445],{4638:function(rr,J,L){"use strict";var re=L(50959),pe=L(38551),_=function(){return _=Object.assign||function(U){for(var he,ae=1,qe=arguments.length;ae',function(rr){try{let ie=function(){U||(U=!0,_())},Ke=function(){try{le.documentElement.doScroll("left")}catch(ht){return void setTimeout(Ke,50)}ie()};var ae=ie,qe=Ke,L=(L=document.getElementsByTagName("script"))[L.length-1],J=L.getAttribute("data-injectcss"),L=L.getAttribute("data-disable-injectsvg");if(!L){var re,pe,_,le,U,he=function(mt,Dt){Dt.parentNode.insertBefore(mt,Dt)};if(J&&!rr.__iconfont__svg__cssinject__){rr.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(ht){console&&console.log(ht)}}re=function(){var mt,Dt=document.createElement("div");Dt.innerHTML=rr._iconfont_svg_string_3580659,(Dt=Dt.getElementsByTagName("svg")[0])&&(Dt.setAttribute("aria-hidden","true"),Dt.style.position="absolute",Dt.style.width=0,Dt.style.height=0,Dt.style.overflow="hidden",Dt=Dt,(mt=document.body).firstChild?he(Dt,mt.firstChild):mt.appendChild(Dt))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(re,0):(pe=function(){document.removeEventListener("DOMContentLoaded",pe,!1),re()},document.addEventListener("DOMContentLoaded",pe,!1)):document.attachEvent&&(_=re,le=rr.document,U=!1,Ke(),le.onreadystatechange=function(){le.readyState=="complete"&&(le.onreadystatechange=null,ie())})}}catch(ie){}}(window)},91934:function(rr,J,L){"use strict";L.d(J,{zP:function(){return gB},JE:function(){return vF},ns:function(){return mB}});var re=L(50959),pe=(0,re.createContext)({});function _(){return(0,re.useContext)(pe)}var le={},U={},he=function(r){return U[r]},ae=function(r,t){U[r]=t},qe=function(r){return le[r]},ie=function(r,t){le[r]=t},Ke={},ht={},mt=34,Dt=10,Yt=13;function Ht(e){return new Function("d","return {"+e.map(function(r,t){return JSON.stringify(r)+": d["+t+'] || ""'}).join(",")+"}")}function ir(e,r){var t=Ht(e);return function(n,i){return r(t(n),i,e)}}function Xt(e){var r=Object.create(null),t=[];return e.forEach(function(n){for(var i in n)i in r||t.push(r[i]=i)}),t}function yt(e,r){var t=e+"",n=t.length;return n9999?"+"+yt(e,6):yt(e,4)}function Pr(e){var r=e.getUTCHours(),t=e.getUTCMinutes(),n=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":bt(e.getUTCFullYear(),4)+"-"+yt(e.getUTCMonth()+1,2)+"-"+yt(e.getUTCDate(),2)+(i?"T"+yt(r,2)+":"+yt(t,2)+":"+yt(n,2)+"."+yt(i,3)+"Z":n?"T"+yt(r,2)+":"+yt(t,2)+":"+yt(n,2)+"Z":t||r?"T"+yt(r,2)+":"+yt(t,2)+"Z":"")}function hr(e){var r=new RegExp('["'+e+` +\r]`),t=e.charCodeAt(0);function n(b,T){var M,O,k=i(b,function($,G){if(M)return M($,G-1);O=$,M=T?ir($,T):Ht($)});return k.columns=O||[],k}function i(b,T){var M=[],O=b.length,k=0,$=0,G,oe=O<=0,ye=!1;b.charCodeAt(O-1)===Dt&&--O,b.charCodeAt(O-1)===Yt&&--O;function Le(){if(oe)return ht;if(ye)return ye=!1,Ke;var ut,vt=k,Rt;if(b.charCodeAt(vt)===mt){for(;k++=O?oe=!0:(Rt=b.charCodeAt(k++))===Dt?ye=!0:Rt===Yt&&(ye=!0,b.charCodeAt(k)===Dt&&++k),b.slice(vt+1,ut-1).replace(/""/g,'"')}for(;k=0))throw new Error("precision must be a positive number");var t=Math.pow(10,r||0);return Math.round(e*t)/t}function Zi(e,r){r===void 0&&(r="kilometers");var t=Be[r];if(!t)throw new Error(r+" units is invalid");return e*t}function Jn(e,r){r===void 0&&(r="kilometers");var t=Be[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Bn(e,r){return oa(Jn(e,r))}function Do(e){var r=e%360;return r<0&&(r+=360),r}function oa(e){var r=e%(2*Math.PI);return r*180/Math.PI}function $a(e){var r=e%360;return r*Math.PI/180}function Ot(e,r,t){if(r===void 0&&(r="kilometers"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("length must be a positive number");return Zi(Jn(e,r),t)}function F(e,r,t){if(r===void 0&&(r="meters"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=dt[r];if(!n)throw new Error("invalid original units");var i=dt[t];if(!i)throw new Error("invalid final units");return e/n*i}function ne(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function de(e){return!!e&&e.constructor===Object}function Ne(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(r){if(!ne(r))throw new Error("bbox must only contain numbers")})}function _t(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")}function Kt(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ar(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ve(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return Ve(e[0]);throw new Error("coordinates must only contain numbers")}function wt(e,r,t){if(!r||!t)throw new Error("type and name required");if(!e||e.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.type)}function sr(e,r,t){if(!e)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!e||e.type!=="Feature"||!e.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!e.geometry||e.geometry.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.geometry.type)}function dr(e,r,t){if(!e)throw new Error("No featureCollection passed");if(!t)throw new Error(".collectionOf() requires a name");if(!e||e.type!=="FeatureCollection")throw new Error("Invalid input to "+t+", FeatureCollection required");for(var n=0,i=e.features;nf||O>v||k>y){l=b,f=n,v=O,y=k,o=0;return}var $=lineString([l,b],t.properties);if(r($,n,i,k,o)===!1)return!1;o++,l=b})===!1)return!1}}})}function se(e,r,t){var n=t,i=!1;return Q(e,function(o,s,l,f,v){i===!1&&t===void 0?n=o:n=r(n,o,s,l,f,v),i=!0}),n}function xe(e,r){if(!e)throw new Error("geojson is required");di(e,function(t,n,i){if(t.geometry!==null){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(r(t,n,i,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l=200&&t.status<300||t.status===0)&&t.response!==null){var o=t.response;if(e.type==="json")try{o=JSON.parse(t.response)}catch(l){return r(l)}r(null,o,t.getResponseHeader("Cache-Control"),t.getResponseHeader("Expires"),t)}else{var s=new Blob([t.response],{type:t.getResponseHeader("Content-Type")});r(new Qr(t.status,t.statusText,n.toString(),s))}},t.cancel=t.abort,t.send(e.body),t}function Yi(e){return new Promise(function(r,t){vi(e,function(n,i,o,s,l){n?t({err:n,data:null,xhr:l}):r({err:null,data:i,cacheControl:o,expires:s,xhr:l})})})}function ci(e,r){return vi(e,r)}var Li=function(r,t){var n=hi(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"json"}),t)},Si=function(r,t){var n=hi(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"arrayBuffer"}),t)},Xo=function(r,t){return ci(_objectSpread(_objectSpread({},r),{},{method:"POST"}),t)},Ki=function(r,t){return ci((0,H.Z)((0,H.Z)({},r),{},{method:"GET"}),t)};function Ia(e){var r=window.document.createElement("a");return r.href=e,r.protocol===window.document.location.protocol&&r.host===window.document.location.host}var Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function mi(e,r){var t=new window.Image,n=window.URL||window.webkitURL;t.crossOrigin="anonymous",t.onload=function(){r(null,t),n.revokeObjectURL(t.src),t.onload=null,window.requestAnimationFrame(function(){t.src=Ai})},t.onerror=function(){return r(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 i=new Blob([new Uint8Array(e)],{type:"image/png"});t.src=e.byteLength?n.createObjectURL(i):Ai}function Ti(e,r){var t=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(t).then(function(n){r(null,n)}).catch(function(n){r(new Error("Could not load image because of ".concat(n.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Pa=function(r,t,n){var i=function(s,l){if(s)t(s);else if(l){var f=typeof createImageBitmap=="function",v=n?n(l):l;f?Ti(v,t):mi(v,t)}};return r.type==="json"?Li(r,i):Si(r,i)},cu=function(r,t){var n=typeof createImageBitmap=="function";n?Ti(r,t):mi(r,t)},ma=function(e){return e.CENTER="center",e.TOP="top",e["TOP-LEFT"]="top-left",e["TOP-RIGHT"]="top-right",e.BOTTOM="bottom",e["BOTTOM-LEFT"]="bottom-left",e["BOTTOM-RIGHT"]="bottom-right",e.LEFT="left",e.RIGHT="right",e}({}),Aa={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 $l(e,r,t){var n=e.classList;for(var i in Aa)Aa.hasOwnProperty(i)&&n.remove("l7-".concat(t,"-anchor-").concat(i));n.add("l7-".concat(t,"-anchor-").concat(r))}var os=L(52617);function Ta(e){return typeof e=="string"?!!d3.color(e):!1}function fi(e){var r=os.ZP(e),t=[0,0,0,0];return r!=null&&(t[0]=r.r/255,t[1]=r.g/255,t[2]=r.b/255,t[3]=r.opacity),t}function Oa(e){var r=e&&e[0],t=e&&e[1],n=e&&e[2],i=r+t*256+n*65536-1;return i}function ia(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function So(e){var r=window.document.createElement("canvas"),t=r.getContext("2d");r.width=256,r.height=1;for(var n=null,i=t.createLinearGradient(0,0,256,1),o=e.positions[0],s=e.positions[e.positions.length-1],l=0;l0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(t)}function ja(e,r){e instanceof HTMLElement?e.className=r:e.className.baseVal=r}function ef(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function Vp(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var xs=rp(["transform","WebkitTransform"]);function ku(e,r){e.style[xs]=r}function Fu(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}}function ql(e){var r=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log(`%c +`,r.join(""))}function If(){var e,r=window.document.querySelector('meta[name="viewport"]');if(!r)return 1;var t=(e=r.content)===null||e===void 0?void 0:e.split(","),n=t.find(function(i){var o=i.split("="),s=(0,yn.Z)(o,1),l=s[0];return l==="initial-scale"});return n?n.split("=")[1]*1:1}var wa=If()<1?1:window.devicePixelRatio;function Qs(e,r){e.setAttribute("style","".concat(e.style.cssText).concat(r))}function Rc(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r})}function Kl(e,r){var t,n=Rc((t=e.getAttribute("style"))!==null&&t!==void 0?t:""),i=Rc(r),o=el.apply(void 0,[n].concat((0,Wt.Z)(i)));e.setAttribute("style",o.join(";"))}function rl(e){return Object.entries(e).map(function(r){var t=(0,yn.Z)(r,2),n=t[0],i=t[1];return"".concat(n,": ").concat(i)}).join(";")}function gh(e,r){return{left:e.left-r.left,top:e.top-r.top,right:r.left+r.width-e.left-e.width,bottom:r.top+r.height-e.top-e.height}}function Ql(e,r){e.checked=r,r?e.setAttribute("checked","true"):e.removeAttribute("checked")}function ca(e){e.innerHTML=""}function tf(e){e.setAttribute("draggable","false")}function np(e,r){if(typeof r=="string"){var t=document.createElement("div");for(t.innerHTML=r;t.firstChild;)e.append(t.firstChild)}else Array.isArray(r)?e.append.apply(e,(0,Wt.Z)(r)):e.append(r)}function Tl(e,r){for(var t=Array.isArray(r)?r:[r],n=e;n instanceof Element&&n!==window.document.body;){var i,o;if(t.find(function(s){var l;return(l=n)===null||l===void 0?void 0:l.matches(s)}))return n;n=(i=(o=n)===null||o===void 0?void 0:o.parentElement)!==null&&i!==void 0?i:null}}var Jl;function _h(e){return typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap}function Pf(){return typeof importScripts=="function"}var wl=Pf()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},hu=(Jl=navigator)===null||Jl===void 0?void 0:Jl.userAgent,Mc=!!hu.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),rf=hu.indexOf("Android")>-1||hu.indexOf("Adr")>-1;function ec(){for(var e=hu,r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,n=0,i=r;n0){t=!1;break}}return t}function tc(e,r){e.forEach(function(t){r[t]&&(r[t]=r[t].bind(r))})}var ip=null;function nl(e){var r=[1/0,1/0,-1/0,-1/0];return En(e,function(t){r[0]>t[0]&&(r[0]=t[0]),r[1]>t[1]&&(r[1]=t[1]),r[2]n&&e.lng<=o&&e.lat>i&&e.lat<=s}function Cl(e){var r=[1/0,1/0,-1/0,-1/0];return e.forEach(function(t){var n=t.coordinates;pu(r,n)}),r}function pu(e,r){return Array.isArray(r[0])?r.forEach(function(t){pu(e,t)}):(e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};e=Df(e,r);var n=e[0],i=e[1],o=n*Ic/180,s=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return s=s*Ic/180,t.enable&&(o=Number(o.toFixed(t.decimal)),s=Number(s.toFixed(t.decimal))),e.length===3?[o,s,e[2]]:[o,s]}function Md(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,t=e[0],n=e[1],i=t/Ic*180,o=n/Ic*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),r!=null&&(i=Number(i.toFixed(r)),o=Number(o.toFixed(r))),e.length===3?[i,o,e[2]]:[i,o]}function Of(e){if(e==null)throw new Error("lng is required");return(e>180||e<-180)&&(e=e%360,e>180&&(e=-360+e),e<-180&&(e=360+e),e===0&&(e=0)),e}function xh(e){if(e==null)throw new Error("lat is required");return(e>90||e<-90)&&(e=e%180,e>90&&(e=-180+e),e<-90&&(e=180+e),e===0&&(e=0)),e}function Df(e,r){if(r===!1)return e;var t=Of(e[0]),n=xh(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[t,n,e[2]]:[t,n]}function ko(e){var r=85.0511287798,t=Math.max(Math.min(r,e[1]),-r),n=256<<20,i=Math.PI/180,o=e[0]*i,s=t*i;s=Math.log(Math.tan(Math.PI/4+s/2));var l=.5/Math.PI,f=.5,v=-.5/Math.PI;return i=.5,o=n*(l*o+f),s=n*(v*s+i),[Math.floor(o),Math.floor(s)]}function bh(e){var r=.5/Math.PI,t=.5,n=-.5/Math.PI,i=.5,o=256<<20,s=_slicedToArray(e,2),l=s[0],f=s[1];l=(l/o-t)/r,f=(f/o-i)/n,f=(Math.atan(Math.pow(Math.E,f))-Math.PI/4)*2,i=Math.PI/180;var v=f/i,y=l/i;return[y,v]}function ap(e,r){var t=85.0511287798,n=Math.PI/180,i=6378137;return r=Math.max(Math.min(t,r),-t),e*=n,r*=n,r=Math.log(Math.tan(Math.PI/4+r/2)),[e*i,r*i]}function kf(e,r){var t=Math.PI/180,n=6378137,i=e/n/t,o=2*(Math.atan(Math.exp(r/n))-Math.PI/4)/t;return[i,o]}function Eh(e,r,t){var n=$a(r[1]-e[1]),i=$a(r[0]-e[0]),o=$a(e[1]),s=$a(r[1]),l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(o)*Math.cos(s);return Zi(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),t="meters")}function Oc(e){var r=Math.PI/180,t=85.0511287798,n=6378137,i=Math.max(Math.min(t,e[1]),-t),o=Math.sin(i*r),s=n*e[0]*r,l=n*Math.log((1+o)/(1-o))/2;return[s,l]}function of(e,r){var t=Math.abs(e[1][1]-e[0][1])*r,n=Math.abs(e[1][0]-e[0][0])*r;return[[e[0][0]-n,e[0][1]-t],[e[1][0]+n,e[1][1]+t]]}function il(e,r){return e[0][0]<=r[0][0]&&e[0][1]<=r[0][1]&&e[1][0]>=r[1][0]&&e[1][1]>=r[1][1]}function pa(e){return[[e[0],e[1]],[e[2],e[3]]]}function Ff(e){var r=du(e,[0,0]);return[e[0]/r,e[1]/r]}function du(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Rl(e,r){return e[0]*r[0]+e[1]*r[1]}function ki(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ca(e,r){return Math.acos(Rl(e,r)/(ki(e)*ki(r)))*180/Math.PI}function $s(e,r){return r[0]>0?r[1]>0?90-Math.atan(r[1]/r[0])*180/Math.PI:90+Math.atan(-r[1]/r[0])*180/Math.PI:r[1]<0?180+(90-Math.atan(r[1]/r[0])*180/Math.PI):270+Math.atan(r[1]/-r[0])*180/Math.PI}function Bf(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!e||e.length<2)){for(var t=[0,1],n=0,i=[],o=0;o0){var b=i[o-1].rotation;b-y>360-b+y&&(y=y+360)}i.push({start:s,end:l,dis:f,rotation:y,duration:0})}return i.map(function(T){T.duration=r*(T.dis/n)}),i}}function Ds(e){if(nf(e[0]))return e;if(nf(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(nf(e[0][0][0])){var r=e,t=0,n=0,i=0;return r.forEach(function(o){o.forEach(function(s){t+=s[0],n+=s[1],i++})}),[t/i,n/i,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function sf(e){for(var r=e[0],t=e[1],n=e[0],i=e[1],o=0,s=0,l=0,f=0;fi&&(n=Math.floor(n/t)),n=n*r+e.charCodeAt(o);return n}function Lf(e){e=e.toString();for(var r=5381,t=e.length;t;)r=r*33^e.charCodeAt(--t);return r>>>0}function Ml(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=Math.random()*16|0,t=e==="x"?r:r&3|8;return t.toString(16)})}var Fo=function(e){return e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.DEFAULT="DEFAUlTMAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL",e}({});function Ha(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*(o-1))/(o-1)),n?vn(e,r,l,n,i):vn(e,r,l,.314,i)}function al(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function Ah(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function qa(e,r,t){var n=[r[0]-e[0],r[1]-e[1]],i=Ah(n,[0,0]),o=Math.atan2(n[1],n[0]),s=i/2/Math.cos(t),l=o+t,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function vn(e,r,t,n,i){if(i===MapType["GAODE2.x"]){var o=amap2Project(e[0],e[1]),s=amap2Project(r[0],r[1]),l=qa(o,s,n),f=[o[0],l[0],s[0]],v=[o[1],l[1],s[1]];return[].concat(_toConsumableArray(amap2UnProject(al(f,t),al(v,t))),[0])}else{var y=qa(e,r,n),b=[e[0],y[0],r[0]],T=[e[1],y[1],r[1]];return[al(b,t),al(T,t),0]}}function ks(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*29)/29),ga(e,r,l,i)}function uf(e,r){var t=[r[0]-e[0],r[1]-e[1]],n=calDistance(t,[0,0]),i=Math.atan2(t[1],t[0]),o=.314,s=n/2/Math.cos(o),l=i+o,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function rc(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function us(e,r){var t=[e[0]-r[0],e[1]-r[1]],n=[Math.sin(t[0]/2),Math.sin(t[1]/2)],i=n[1]*n[1]+Math.cos(e[1])*Math.cos(r[1])*n[0]*n[0];return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}function ga(e,r,t,n){var i=[degreesToRadians(e[0]),degreesToRadians(e[1])],o=[degreesToRadians(r[0]),degreesToRadians(r[1])];if(n==="GAODE2.x"){var s=uf(i,o),l=[i[0],s[0],o[0]],f=[i[1],s[1],o[1]];return[rc(l,t),rc(f,t),0]}else{var v=us(i,o);if(Math.abs(v-Math.PI)<.001)return[(1-t)*i[0]+t*o[0],(1-t)*i[1]+t*o[1]];var y=Math.sin((1-t)*v)/Math.sin(v),b=Math.sin(t*v)/Math.sin(v),T=[Math.sin(i[0]),Math.sin(i[1])],M=[Math.cos(i[0]),Math.cos(i[1])],O=[Math.sin(o[0]),Math.sin(o[1])],k=[Math.cos(o[0]),Math.cos(o[1])],$=y*M[1]*M[0]+b*k[1]*k[0],G=y*M[1]*T[0]+b*k[1]*O[0],oe=y*T[1]+b*O[1];return[radiansToDegrees(Math.atan2(G,$)),radiansToDegrees(Math.atan2(oe,Math.sqrt($*$+G*G)))]}}function Th(e,r){for(var t=0,n=[],i=0;iv){var $=O.p1,G=O.p2,oe=(v-O.lastTotalDistance)/O.distance,ye=Yr(G,$,oe);y=ye[0],b=ye[1];break}}return{lng:y,lat:b,height:0}}function Yr(e,r,t){return[e[0]*t+r[0]*(1-t),e[1]*t+r[1]*(1-t)]}function ol(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Dc(e,r){var t=r.featureId,n=e.data.dataArray;return typeof t=="number"&&(n=n.filter(function(i){var o=i.id;return o===t})),n.map(function(i){var o=eu(i,r);return _objectSpread(_objectSpread({},i),o)})}function wh(e,r){return new Promise(function(t){e.inited?t(Dc(e,r)):e.once("update",function(){t(Dc(e,r))})})}function eu(e,r){var t=r.offset,n=r.shape,i=r.thetaOffset,o=r.mapVersion,s=r.segmentNumber,l=s===void 0?30:s,f=r.autoFit,v=f===void 0?!0:f,y=e.coordinates;if(n==="line")return pathLineAtOffset(y,t);var b=y[0],T=y[1],M=typeof i=="string"?e[i]||0:i,O;switch(n){case"arc":O=arcLineAtOffset;break;case"greatcircle":O=greatCircleLineAtOffset;break;default:O=arcLineAtOffset}var k=O(b,T,t,M,o,l,v),$=_slicedToArray(k,3),G=$[0],oe=$[1],ye=$[2];return{lng:G,lat:oe,height:ye}}var Fs=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,t=arguments.length>1?arguments[1]:void 0;(0,q.Z)(this,e),this.limit=r,this.destroy=t||this.defaultDestroy,this.order=[],this.clear()}return(0,V.Z)(e,[{key:"clear",value:function(){var t=this;this.order.forEach(function(n){t.delete(n)}),this.cache={},this.order=[]}},{key:"get",value:function(t){var n=this.cache[t];return n&&(this.deleteOrder(t),this.appendOrder(t)),n}},{key:"set",value:function(t,n){this.cache[t]?(this.delete(t),this.cache[t]=n,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=n,this.appendOrder(t))}},{key:"delete",value:function(t){var n=this.cache[t];n&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(n,t))}},{key:"deleteCache",value:function(t){delete this.cache[t]}},{key:"deleteOrder",value:function(t){var n=this.order.findIndex(function(i){return i===t});n>=0&&this.order.splice(n,1)}},{key:"appendOrder",value:function(t){this.order.push(t)}},{key:"defaultDestroy",value:function(t,n){return null}}]),e}();function Nf(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r*1}function Uf(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;tn&&(n=i,t=r),i=1,r=e[o]):i++;return t*1}var Il={min:Uf,max:Nf,mean:Lu,sum:Yo,mode:sp};function lf(e,r){return e.map(function(t){return t[r]})}function up(e,r){return Il[e](r)}var Ct=L(47801),Ie=L(95325),B=L(73273),Ys=L(51726),me=L.n(Ys);function Bo(e,r){r===void 0&&(r={});var t=Number(e[0]),n=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(e.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[t,n],l=[t,o],f=[i,o],v=[i,n];return yr([[s,v,f,l,s]],r.properties,{bbox:e,id:r.id})}var no=L(11312),vu=L.n(no),bs=function(e){return e.Realtime="realtime",e.Overlap="overlap",e.Replace="replace",e}({}),Da=function(e){return e.Loading="Loading",e.Loaded="Loaded",e.Failure="Failure",e.Cancelled="Cancelled",e}({}),nc=0,On=1,gn=2;function Bs(e){e.forEach(function(r){r.isCurrent&&(r.isVisible=r.isLoaded)})}function qo(e){e.forEach(function(r){r.properties.state=nc}),e.forEach(function(r){r.isCurrent&&!ka(r)&&Ls(r)}),e.forEach(function(r){r.isVisible=!!(r.properties.state&gn)})}function mu(e){e.forEach(function(t){t.properties.state=nc}),e.forEach(function(t){t.isCurrent&&ka(t)});var r=e.slice().sort(function(t,n){return t.z-n.z});r.forEach(function(t){t.isVisible=!!(t.properties.state&gn),t.children.length&&(t.isVisible||t.properties.state&On)?t.children.forEach(function(n){n.properties.state=On}):t.isCurrent&&Ls(t)})}function ka(e){for(;e;){if(e.isLoaded)return e.properties.state|=gn,!0;e=e.parent}return!1}function Ls(e){e.children.forEach(function(r){r.isLoaded?r.properties.state|=gn:Ls(r)})}var qs,kc=256,ea=[-1/0,-1/0,1/0,1/0],To=.2,Ch=5,Pl=(qs={},(0,B.Z)(qs,bs.Realtime,Bs),(0,B.Z)(qs,bs.Overlap,qo),(0,B.Z)(qs,bs.Replace,mu),qs),zf=function(){};function gu(e,r,t){var n=Math.floor((e+180)/360*Math.pow(2,t)),i=Math.floor((1-Math.log(Math.tan(r*Math.PI/180)+1/Math.cos(r*Math.PI/180))/Math.PI)/2*Math.pow(2,t));return[n,i]}function Es(e,r,t){var n=e/Math.pow(2,t)*360-180,i=Math.PI-2*Math.PI*r/Math.pow(2,t),o=180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)));return[n,o]}var ic=function(r,t,n){var i=Es(r,t,n),o=(0,yn.Z)(i,2),s=o[0],l=o[1],f=Es(r+1,t+1,n),v=(0,yn.Z)(f,2),y=v[0],b=v[1];return[s,b,y,l]};function Nu(e){var r=e.zoom,t=e.latLonBounds,n=e.maxZoom,i=n===void 0?1/0:n,o=e.minZoom,s=o===void 0?0:o,l=e.zoomOffset,f=l===void 0?0:l,v=e.extent,y=v===void 0?ea:v,b=Math.ceil(r)+f;if(Number.isFinite(s)&&bi&&(b=i);for(var T=(0,yn.Z)(t,4),M=T[0],O=T[1],k=T[2],$=T[3],G=[Math.max(M,y[0]),Math.max(O,y[1]),Math.min(k,y[2]),Math.min($,y[3])],oe=[],ye=gu(G[0],G[1],b),Le=(0,yn.Z)(ye,2),$e=Le[0],ut=Le[1],vt=gu(G[2],G[3],b),Rt=(0,yn.Z)(vt,2),Jt=Rt[0],Mr=Rt[1],br=$e;br<=Jt;br++)for(var pn=Mr;pn<=ut;pn++)oe.push({x:br,y:pn,z:b});var kn=(Jt+$e)/2,Pi=(ut+Mr)/2,xa=function(_s,as){return Math.abs(_s-kn)+Math.abs(as-Pi)};return oe.sort(function(is,_s){return xa(is.x,is.y)-xa(_s.x,_s.y)}),oe}var Zf=function(r,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=Math.pow(2,n),s=o-1,l=o,f=r,v=t;return i&&(f<0?f=f+l:f>s&&(f=f%l)),{warpX:f,warpY:v}};function Fc(e){var r=cf();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function cf(){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(e){return!1}}var Vf=function(e){(0,De.Z)(t,e);var r=Fc(t);function t(n){var i;(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"tileSize",256),(0,B.Z)((0,Ie.Z)(i),"isVisible",!1),(0,B.Z)((0,Ie.Z)(i),"isCurrent",!1),(0,B.Z)((0,Ie.Z)(i),"isVisibleChange",!1),(0,B.Z)((0,Ie.Z)(i),"loadedLayers",0),(0,B.Z)((0,Ie.Z)(i),"isLayerLoaded",!1),(0,B.Z)((0,Ie.Z)(i),"isLoad",!1),(0,B.Z)((0,Ie.Z)(i),"isChildLoad",!1),(0,B.Z)((0,Ie.Z)(i),"parent",null),(0,B.Z)((0,Ie.Z)(i),"children",[]),(0,B.Z)((0,Ie.Z)(i),"data",null),(0,B.Z)((0,Ie.Z)(i),"properties",{}),(0,B.Z)((0,Ie.Z)(i),"loadDataId",0);var o=n.x,s=n.y,l=n.z,f=n.tileSize,v=n.warp,y=v===void 0?!0:v;return i.x=o,i.y=s,i.z=l,i.warp=y||!0,i.tileSize=f,i}return(0,V.Z)(t,[{key:"isLoading",get:function(){return this.loadStatus===Da.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Da.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Da.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Da.Cancelled}},{key:"isDone",get:function(){return[Da.Loaded,Da.Cancelled,Da.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return ic(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var i=(0,yn.Z)(this.bounds,4),o=i[0],s=i[1],l=i[2],f=i[3],v=[(l-o)/2,(f-s)/2],y=Bo(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:v,meta:` + `.concat(this.key,` + `)}});return y}},{key:"key",get:function(){var i="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return i}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l,f,v,y,b,T,M,O,k,$,G,oe,ye,Le,$e,ut,vt;return me().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return l=s.getData,f=s.onLoad,v=s.onError,this.loadDataId++,y=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Da.Loading,b=null,Jt.prev=7,M=this.x,O=this.y,k=this.z,$=this.bounds,G=this.tileSize,oe=this.warp,ye=Zf(M,O,k,oe),Le=ye.warpX,$e=ye.warpY,ut=this.abortController.signal,vt={x:Le,y:$e,z:k,bounds:$,tileSize:G,signal:ut,warp:oe},Jt.next=14,l(vt,this);case 14:b=Jt.sent,Jt.next=20;break;case 17:Jt.prev=17,Jt.t0=Jt.catch(7),T=Jt.t0;case 20:if(y===this.loadDataId){Jt.next=22;break}return Jt.abrupt("return");case 22:if(!(this.isCancelled&&!b)){Jt.next=24;break}return Jt.abrupt("return");case 24:if(!(T||!b)){Jt.next=28;break}return this.loadStatus=Da.Failure,v(T,this),Jt.abrupt("return");case 28:this.loadStatus=Da.Loaded,this.data=b,f(this);case 31:case"end":return Jt.stop()}},o,this,[[7,17]])}));function i(o){return n.apply(this,arguments)}return i}()},{key:"reloadData",value:function(i){this.isLoading&&this.abortLoad(),this.loadData(i)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Da.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),t}(no.EventEmitter),ac=function(r,t){var n=pa(r),i=of(n,t),o=360*3-180,s=85.0511287798065,l=[Math.max(i[0][0],-o),Math.max(i[0][1],-s),Math.min(i[1][0],o),Math.min(i[1][1],s)];return l},oc=function(r,t){var n=pa(r),i=pa(t),o=il(n,i);return o};function Uu(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=zu(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function zu(e,r){if(e){if(typeof e=="string")return tu(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tu(e,r)}}function tu(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0&&b.x0;){var f=i.shift();f.abortLoad()}}},{key:"getTileByLngLat",value:function(i,o,s){var l=this.options.zoomOffset,f=Math.ceil(s)+l,v=gu(i,o,f),y=this.tiles.filter(function(b){return b.key==="".concat(v[0],"_").concat(v[1],"_").concat(f)});return y[0]}},{key:"getTileExtent",value:function(i,o){return this.getTileIndices(o,i)}},{key:"getTileByZXY",value:function(i,o,s){var l=this.tiles.filter(function(f){return f.key==="".concat(o,"_").concat(s,"_").concat(i)});return l[0]}},{key:"clear",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.isLoading?s.abortLoad():this.onTileUnload(s)}}catch(l){i.e(l)}finally{i.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var i=this.options.updateStrategy,o=new Map,s=Uu(this.cacheTiles.values()),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;o.set(f.key,f.isVisible),f.isCurrent=!1,f.isVisible=!1}}catch(O){s.e(O)}finally{s.f()}var v=Uu(this.currentTiles),y;try{for(v.s();!(y=v.n()).done;){var b=y.value;b.isCurrent=!0,b.isVisible=!0}}catch(O){v.e(O)}finally{v.f()}var T=Array.from(this.cacheTiles.values());typeof i=="function"?i(T):Pl[i](T);var M=!1;Array.from(this.cacheTiles.values()).forEach(function(O){O.isVisible!==o.get(O.key)?(O.isVisibleChange=!0,M=!0):O.isVisibleChange=!1}),M&&this.emit(Dl.TileUpdate)}},{key:"getTileIndices",value:function(i,o){var s=this.options,l=s.tileSize,f=s.extent,v=s.zoomOffset,y=Math.floor(this.options.maxZoom),b=Math.ceil(this.options.minZoom),T=Nu({maxZoom:y,minZoom:b,zoomOffset:v,tileSize:l,zoom:i,latLonBounds:o,extent:f});return T}},{key:"getTileId",value:function(i,o,s){var l="".concat(i,",").concat(o,",").concat(s);return l}},{key:"loadFinished",value:function(){var i=!this.currentTiles.some(function(o){return!o.isDone});return i&&this.emit(Dl.TilesLoadFinished),i}},{key:"getTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=this.cacheTiles.get(l);return f}},{key:"createTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=new Vf({x:i,y:o,z:s,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(l,f),f.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),f}},{key:"resizeCacheTiles",value:function(){var i=Ch*this.currentTiles.length,o=this.cacheTiles.size>i;if(o){var s=Uu(this.cacheTiles),l;try{for(s.s();!(l=s.n()).done;){var f=(0,yn.Z)(l.value,2),v=f[0],y=f[1];if(!y.isVisible&&!this.currentTiles.includes(y)&&(this.cacheTiles.delete(v),this.onTileUnload(y)),this.cacheTiles.size<=i)break}}catch(b){s.e(b)}finally{s.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent=null,s.children.length=0}}catch(b){i.e(b)}finally{i.f()}var l=Uu(this.cacheTiles.values()),f;try{for(l.s();!(f=l.n()).done;){var v=f.value,y=this.getNearestAncestor(v.x,v.y,v.z);v.parent=y,y!=null&&y.children&&y.children.push(v)}}catch(b){l.e(b)}finally{l.f()}}},{key:"getNearestAncestor",value:function(i,o,s){for(;s>this.options.minZoom;){i=Math.floor(i/2),o=Math.floor(o/2),s=s-1;var l=this.getTile(i,o,s);if(l)return l}return null}}]),t}(vu());function Rh(e){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(e)}function Hf(e){var r=[],t=/\{([a-z])-([a-z])\}/.exec(e);if(t){var n=t[1].charCodeAt(0),i=t[2].charCodeAt(0),o;for(o=n;o<=i;++o)r.push(e.replace(t[0],String.fromCharCode(o)));return r}if(t=/\{(\d+)-(\d+)\}/.exec(e),t){for(var s=parseInt(t[2],10),l=parseInt(t[1],10);l<=s;l++)r.push(e.replace(t[0],l.toString()));return r}return r.push(e),r}function h(e,r){if(!e||!e.length)throw new Error("url is not allowed to be empty");var t=r.x,n=r.y,i=r.z,o=Hf(e),s=Math.abs(t+n)%o.length,l=hi(o[s])?"".concat(o[s],"/{z}/{x}/{y}"):o[s];return l.replace(/\{x\}/g,t.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,i.toString()).replace(/\{bbox\}/g,ic(t,n,i).join(",")).replace(/\{-y\}/g,(Math.pow(2,i)-n-1).toString())}function d(e,r){var t=r.x,n=r.y,i=r.z,o=r.layer,s=r.version,l=s===void 0?"1.0.0":s,f=r.style,v=f===void 0?"default":f,y=r.format,b=r.service,T=b===void 0?"WMTS":b,M=r.tileMatrixset,O="".concat(e,"&SERVICE=").concat(T,"&REQUEST=GetTile&VERSION=").concat(l,"&LAYER=").concat(o,"&STYLE=").concat(v,"&TILEMATRIXSET=").concat(M,"&FORMAT=").concat(y,"&TILECOL=").concat(t,"&TILEROW=").concat(n,"&TILEMATRIX=").concat(i);return O}function p(e,r){if(!e)throw new Error(r||"web worker helper assertion failed.")}var g={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},S=g.self||g.window||{},w=g.window||g.self||{},C=g.self||g.window||{},P=g.document||{},Z=typeof importScripts=="function",Y=typeof window!="undefined"&&typeof window.orientation!="undefined",ce=function(){function e(r,t){var n=this;this.name=r,this.workerThread=t,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(i,o){n.resolve=i,n.reject=o})}return e.prototype.postMessage=function(r,t){this.workerThread.postMessage({source:"Main thread",type:r,payload:t})},e.prototype.done=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(r)},e.prototype.error=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(r)},e}(),ge=ce,_e=new Map;function Fe(e){p(e.source&&!e.url||!e.source&&e.url);var r=_e.get(e.source||e.url);return r||(e.url&&(r=Pe(e.url),_e.set(e.url,r)),e.source&&(r=Xe(e.source),_e.set(e.source,r))),p(r),r}function Pe(e){if(!e.startsWith("http"))return e;var r=we(e);return Xe(r)}function Xe(e){var r=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(r)}function we(e){return`try { + importScripts('`+e+`'); +} catch (error) { + console.error(error); + throw error; +}`}function Ge(e,r,t){r===void 0&&(r=!0);var n=t||new Set;if(e){if(ct(e))n.add(e);else if(ct(e.buffer))n.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(var i in e)Ge(e[i],r,n)}}return t===void 0?Array.from(n):[]}function ct(e){return e?e instanceof ArrayBuffer||typeof MessagePort!="undefined"&&e instanceof MessagePort||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&e instanceof OffscreenCanvas:!1}var At=function(){},$t=function(){function e(r){this.terminated=!1,this.loadableURL="";var t=r.name,n=r.source,i=r.url;p(n||i),this.name=t,this.source=n,this.url=i,this.onMessage=At,this.onError=function(o){return console.log(o)},this.worker=this.createBrowserWorker()}return e.isSupported=function(){return typeof Worker!="undefined"},e.prototype.destroy=function(){this.onMessage=At,this.onError=At,this.worker.terminate(),this.terminated=!0},Object.defineProperty(e.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(r,t){t=t||Ge(r),this.worker.postMessage(r,t)},e.prototype.getErrorFromErrorEvent=function(r){var t="Failed to load ";return t+="worker "+this.name+" from "+this.url+". ",r.message&&(t+=r.message+" in "),r.lineno&&(t+=":"+r.lineno+":"+r.colno),new Error(t)},e.prototype.createBrowserWorker=function(){var r=this;this.loadableURL=Fe({source:this.source,url:this.url});var t=new Worker(this.loadableURL,{name:this.name});return t.onmessage=function(n){n.data?r.onMessage(n.data):r.onError(new Error("No data received"))},t.onerror=function(n){r.onError(r.getErrorFromErrorEvent(n)),r.terminated=!0},t.onmessageerror=function(n){return console.error("worker "+r.name+", message error: "+n)},t},e}(),Nt=$t,tr=function(){return tr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]this.getMaxConcurrency();t?(r.destroy(),this.count--):this.idleQueue.push(r),this.isDestroyed||this.startQueuedJob()},e.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Un={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},ji=function(){function e(r){this.workerPools=new Map,this.props=In({},Un),this.setProps(r),this.workerPools=new Map}return e.isSupported=function(){return Nt.isSupported()},e.getWorkerFarm=function(r){return r===void 0&&(r={}),e.workerFarm=e.workerFarm||new e({}),e.workerFarm.setProps(r),e.workerFarm},e.prototype.destroy=function(){var r,t;try{for(var n=Nn(this.workerPools.values()),i=n.next();!i.done;i=n.next()){var o=i.value;o.destroy()}}catch(s){r={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}},e.prototype.setProps=function(r){var t,n;this.props=In(In({},this.props),r);try{for(var i=Nn(this.workerPools.values()),o=i.next();!o.done;o=i.next()){var s=o.value;s.setProps(this.getWorkerPoolProps())}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.getWorkerPool=function(r){var t=r.name,n=r.source,i=r.url,o=this.workerPools.get(t);return o||(o=new an({name:t,source:n,url:i}),o.setProps(this.getWorkerPoolProps()),this.workerPools.set(t,o)),o},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},e}(),hn=null,Kn=new Map,_i=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(r){self.onmessage=function(t){if(Xn(t)){var n=t.data,i=n.type,o=n.payload;r(i,o)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(r){var t=Kn.get(r);t||(t=function(n){if(Xn(n)){var i=n.data,o=i.type,s=i.payload;r(o,s)}}),self.addEventListener("message",t)},e.removeEventListener=function(r){var t=Kn.get(r);Kn.delete(r),self.removeEventListener("message",t)},e.postMessage=function(r,t){if(self){var n={source:"Worker thread",type:r,payload:t},i=Ge(t);self.postMessage(n,i)}},e}(),ti=null;function Xn(e){var r=e.type,t=e.data;return r==="message"&&t&&typeof t.source=="string"&&t.source==="Main thread"}function pi(e){return JSON.parse(qn(e))}function qn(e){var r=new Set;return JSON.stringify(e,function(t,n){if(typeof n=="object"&&n!==null){if(r.has(n))try{return JSON.parse(JSON.stringify(n))}catch(i){return}r.add(n)}return n})}function $n(e){return""+e.name}function wo(e,r){r===void 0&&(r={});var t=r[e.id]||{},n=e.name+".worker.js",i=t.workerUrl;return r._workerType==="test"&&(i=e.module+"/dist/"+n),i||(i="https://unpkg.com/"+e.module+"/dist/"+n),assert(i),i}var Na=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},Co=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var t=this._settlers.shift();r instanceof Error?t.reject(r):t.resolve({value:r})}else this._values.push(r)},e.prototype.close=function(){for(;this._settlers.length>0;){var r=this._settlers.shift();r.resolve({done:!0})}this._closed=!0},e.prototype.next=function(){var r=this;if(this._values.length>0){var t=this._values.shift();return t instanceof Error?Promise.reject(t):Promise.resolve({done:!1,value:t})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(n,i){r._settlers.push({resolve:n,reject:i})})},e}(),ls=null,Zu=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},cs=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&arguments[0]!==void 0?arguments[0]:{};(0,q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,V.Z)(e,[{key:"extrude_gaode2",value:function(t,n){var i=this.complex;if(t.length<=1)return i;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var o=t.length,s=i.startIndex,l=1;lthis.miterLimit&&(pn=!0)}pn?(M.push(this.normal[0],this.normal[1],0),M.push(Mr[0],Mr[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Wt.Z)(this.lastFlip!==-br?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Mr,Jt,this.totalDistance),b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),br=-1,Or.JG(this.normal,Mr),y+=2),this.lastFlip=br}else{if(sc(this.normal,ao),O){var $e=Or.Ue(),ut=Or.Ue();Or.lu(ut,ao,this.normal),Or.IH($e,ao,this.normal),M.push(ut[0],ut[1],0),M.push($e[0],$e[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"simpleSegment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=ko([o[0],o[1]]),T=ko([i[0],i[1]]);hf(ao,b,T);var M=0;if(this.dash&&(M=this.lineSegmentDistance(b,T),this.totalDistance+=M),this.normal||(this.normal=Or.Ue(),sc(this.normal,ao)),this.started||(this.started=!0,this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-M)),f.push(n+0,n+1,n+2),!s)sc(this.normal,ao),this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2;else{var O=ko([s[0],s[1]]);Lc(b,O)&&Or.IH(O,b,Or.Fv(O,Or.$X(O,b,T))),hf(Ll,O,b);var k=Qo(_u,Or.Ue(),ao,Ll,this.thickness),$=(0,yn.Z)(k,2),G=$[0],oe=$[1],ye=Or.AK(_u,this.normal)<0?-1:1;this.extrusions(v,y,o,oe,G,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),ye=-1,Or.JG(this.normal,oe),l+=2,this.lastFlip=ye}return l}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ko([o[0],o[1]]),O=ko([i[0],i[1]]);hf(ao,M,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(M,O),this.totalDistance+=k),this.normal||(this.normal=Or.Ue(),sc(this.normal,ao)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,ao),Or.IH(G,this.normal,ao),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-k);if(f.push(n+0,n+1,n+2),s){var Le=ko([s[0],s[1]]);Lc(M,Le)&&Or.IH(Le,M,Or.Fv(Le,Or.$X(Le,M,O))),hf(Ll,Le,M);var $e=Qo(_u,Or.Ue(),ao,Ll,this.thickness),ut=(0,yn.Z)($e,2),vt=ut[0],Rt=ut[1],Jt=Or.AK(_u,this.normal)<0?-1:1,Mr=T;if(!Mr&&this.join==="miter"){var br=vt;br>this.miterLimit&&(Mr=!0)}Mr?(y.push(this.normal[0],this.normal[1],0),y.push(Rt[0],Rt[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Wt.Z)(this.lastFlip!==-Jt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Rt,vt,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Jt=-1,Or.JG(this.normal,Rt),l+=2),this.lastFlip=Jt}else{if(sc(this.normal,ao),b){var oe=Or.Ue(),ye=Or.Ue();Or.lu(ye,ao,this.normal),Or.IH(oe,ao,this.normal),y.push(ye[0],ye[1],0),y.push(oe[0],oe[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}();function jp(e){var r=e.coordinates,t=e.originCoordinates,n=e.version,i=new Bv({dash:!0,join:"bevel"});if(n==="GAODE2.x"){var o=r;Array.isArray(o[0][0])||(o=[r]);var s=t;Array.isArray(s[0][0])||(s=[t]);for(var l=0;l0}).forEach(function(G,oe){var ye=ll(G[l]);di(ye,function(Le){var $e=Ar(Le),ut=(0,H.Z)((0,H.Z)({},G),{},{_id:oe,coordinates:$e});f.push(ut)})}),{dataArray:f};for(var v=0;v>>0}function yf(e,r){return r===void 0?null:(0,cl.Z)(e.properties[r])*1==="number"?e.properties[r]*1:e.properties&&e.properties[r]?lc(e.properties[r]+"")%1000019:null}function pp(e,r){var t=[],n={};return e.features?(e.features=e.features.filter(function(i){var o=i.geometry;return i!=null&&o&&o.type&&o.coordinates&&o.coordinates.length>0}),e=ll(e),e.features.length===0?{dataArray:[],featureKeys:n}:(di(e,function(i,o){var s=yf(i,r==null?void 0:r.featureId);s===null&&(s=o);var l=s,f=Ar(i),v=(0,H.Z)((0,H.Z)({},i.properties),{},{coordinates:f,_id:l});t.push(v)}),{dataArray:t,featureKeys:n})):(e.features=[],{dataArray:[]})}function Ph(e,r,t,n){for(var i=n,o=t-r>>1,s=t-r,l,f=e[r],v=e[r+1],y=e[t],b=e[t+1],T=r+3;Ti)l=T,i=M;else if(M===i){var O=Math.abs(T-o);On&&(l-r>3&&Ph(e,r,l,n),e[l+2]=i,t-l>3&&Ph(e,l,t,n))}function Wp(e,r,t,n,i,o){var s=i-t,l=o-n;if(s!==0||l!==0){var f=((e-t)*s+(r-n)*l)/(s*s+l*l);f>1?(t=i,n=o):f>0&&(t+=s*f,n+=l*f)}return s=e-t,l=r-n,s*s+l*l}function xf(e,r,t,n){var i={id:typeof e=="undefined"?null:e,type:r,geometry:t,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return fl(i),i}function fl(e){var r=e.geometry,t=e.type;if(t==="Point"||t==="MultiPoint"||t==="LineString")Nl(e,r);else if(t==="Polygon"||t==="MultiLineString")for(var n=0;n0&&(n?s+=(i*v-f*o)/2:s+=Math.sqrt(Math.pow(f-i,2)+Math.pow(v-o,2))),i=f,o=v}var y=r.length-3;r[2]=1,Ph(r,0,y,t),r[y+2]=1,r.size=Math.abs(s),r.start=0,r.end=r.size}function cc(e,r,t,n){for(var i=0;i1?1:t}function pl(e,r,t,n,i,o,s,l){if(t/=r,n/=r,o>=t&&s=n)return null;for(var f=[],v=0;v=t&&O=n)continue;var k=[];if(T==="Point"||T==="MultiPoint")bf(b,k,t,n,i);else if(T==="LineString")fc(b,k,t,n,i,!1,l.lineMetrics);else if(T==="MultiLineString")Ul(b,k,t,n,i,!1);else if(T==="Polygon")Ul(b,k,t,n,i,!0);else if(T==="MultiPolygon")for(var $=0;$=t&&s<=n&&(r.push(e[o]),r.push(e[o+1]),r.push(e[o+2]))}}function fc(e,r,t,n,i,o,s){for(var l=Xp(e),f=i===0?vp:Ts,v=e.start,y,b,T=0;Tt&&(b=f(l,M,O,$,G,t),s&&(l.start=v+y*b)):oe>n?ye=t&&(b=f(l,M,O,$,G,t),Le=!0),ye>n&&oe<=n&&(b=f(l,M,O,$,G,n),Le=!0),!o&&Le&&(s&&(l.end=v+y*b),r.push(l),l=Xp(e)),s&&(v+=y)}var $e=e.length-3;M=e[$e],O=e[$e+1],k=e[$e+2],oe=i===0?M:O,oe>=t&&oe<=n&&Gf(l,M,O,k),$e=l.length-3,o&&$e>=3&&(l[$e]!==l[0]||l[$e+1]!==l[1])&&Gf(l,l[0],l[1],l[2]),l.length&&r.push(l)}function Xp(e){var r=[];return r.size=e.size,r.start=e.start,r.end=e.end,r}function Ul(e,r,t,n,i,o){for(var s=0;ss.maxX&&(s.maxX=y),b>s.maxY&&(s.maxY=b)}return s}function Lv(e,r,t,n){var i=r.geometry,o=r.type,s=[];if(o==="Point"||o==="MultiPoint")for(var l=0;l0&&r.size<(i?s:n)){t.numPoints+=r.length/3;return}for(var l=[],f=0;fs)&&(t.numSimplified++,l.push(r[f]),l.push(r[f+1])),t.numPoints++;i&&Nd(l,o),e.push(l)}function Nd(e,r){for(var t=0,n=0,i=e.length,o=i-2;n0===r)for(n=0,i=e.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(r.promoteId&&r.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=Fd(e,r);this.tiles={},this.tileCoords=[],t&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",r.indexMaxZoom,r.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=hs(n,r),n.length&&this.splitTile(n,0,0,0),t&&(n.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)))}Dh.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Dh.prototype.splitTile=function(e,r,t,n,i,o,s){for(var l=[e,r,t,n],f=this.options,v=f.debug;l.length;){n=l.pop(),t=l.pop(),r=l.pop(),e=l.pop();var y=1<1&&console.time("creation"),T=this.tiles[b]=Ld(e,r,t,n,f),this.tileCoords.push({z:r,x:t,y:n}),v)){v>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",r,t,n,T.numFeatures,T.numPoints,T.numSimplified),console.timeEnd("creation"));var M="z"+r;this.stats[M]=(this.stats[M]||0)+1,this.total++}if(T.source=e,i){if(r===f.maxZoom||r===i)continue;var O=1<1&&console.time("clipping");var k=.5*f.buffer/f.extent,$=.5-k,G=.5+k,oe=1+k,ye,Le,$e,ut,vt,Rt;ye=Le=$e=ut=null,vt=pl(e,y,t-k,t+G,0,T.minX,T.maxX,f),Rt=pl(e,y,t+$,t+oe,0,T.minX,T.maxX,f),e=null,vt&&(ye=pl(vt,y,n-k,n+G,1,T.minY,T.maxY,f),Le=pl(vt,y,n+$,n+oe,1,T.minY,T.maxY,f),vt=null),Rt&&($e=pl(Rt,y,n-k,n+G,1,T.minY,T.maxY,f),ut=pl(Rt,y,n+$,n+oe,1,T.minY,T.maxY,f),Rt=null),v>1&&console.timeEnd("clipping"),l.push(ye||[],r+1,t*2,n*2),l.push(Le||[],r+1,t*2,n*2+1),l.push($e||[],r+1,t*2+1,n*2),l.push(ut||[],r+1,t*2+1,n*2+1)}}},Dh.prototype.getTile=function(e,r,t){var n=this.options,i=n.extent,o=n.debug;if(e<0||e>24)return null;var s=1<1&&console.log("drilling down to z%d-%d-%d",e,r,t);for(var f=e,v=r,y=t,b;!b&&f>0;)f--,v=Math.floor(v/2),y=Math.floor(y/2),b=this.tiles[Jo(f,v,y)];return!b||!b.source?null:(o>1&&console.log("found parent tile z%d-%d-%d",f,v,y),o>1&&console.time("drilling down"),this.splitTile(b.source,f,v,y,e,r,t),o>1&&console.timeEnd("drilling down"),this.tiles[l]?$p(this.tiles[l],i):null)};function Jo(e,r,t){return((1<0)switch(n[0]){case"band":try{e[i]=r[n[1]][t]}catch(o){console.warn("Raster Data err!"),e[i]=0}break;default:zr(n,r,t)}})}function St(e){var r=(0,yn.Z)(e,3),t=r[0],n=r[1],i=n===void 0?-1:n,o=r[2],s=o===void 0?-1:o;if(t===void 0)return console.warn("Express err!"),["+",0,0];var l=t.replace(/\s+/g,"");return[l,i,s]}function Qt(e){var r=St(e),t=r[0],n=r[1],i=r[2];return Array.isArray(n)&&(n=Qt(e[1])),Array.isArray(i)&&(i=Qt(e[2])),Wr(t,n,i)}var kr={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Jr}};function Jr(e,r){for(var t=e[0].rasterData,n=e[1].rasterData,i=e[2].rasterData,o=[],s=(r==null?void 0:r.countCut)||[2,98],l=(0,yn.Z)(s,2),f=l[0],v=l[1],y=(r==null?void 0:r.RMinMax)||gr(t,f,v),b=(r==null?void 0:r.GMinMax)||gr(n,f,v),T=(r==null?void 0:r.BMinMax)||gr(i,f,v),M=0;M"),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")},wi=L(25865),on=L.n(wi);function yi(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ai(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function ai(e,r){if(e){if(typeof e=="string")return Yn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yn(e,r)}}function Yn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);to&&(M=0,T++),l[k]={x:M,y:b+T*Ui,width:Ui,height:Ui,advance:G},M+=Ui}});var O=n+i*2;return{mapping:l,xOffset:M,yOffset:b+T*O,canvasHeight:lo(b+(T+1)*O)}}function Wo(e,r,t){var n=0,i=0,o=0,s=[],l={},f=yi(e),v;try{for(f.s();!(v=f.n()).done;){var y=v.value;if(!l[y.id]){var b=y.size;n+b+r>t&&(Ri(l,s,i),n=0,i=o+i+r,o=0,s=[]),s.push({icon:y,xOffset:n}),n=n+b+r,o=Math.max(o,b)}}}catch(M){f.e(M)}finally{f.f()}s.length>0&&Ri(l,s,i);var T=lo(o+i+r);return{mapping:l,canvasHeight:T}}function Ri(e,r,t){var n=yi(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value,s=o.icon,l=o.xOffset;e[s.id]=(0,H.Z)((0,H.Z)({},s),{},{x:l,y:t,image:s.image,width:s.width,height:s.height})}}catch(f){n.e(f)}finally{n.f()}}function lo(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Sa,go;function _o(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Qa(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Qa(e,r){if(e){if(typeof e=="string")return Ro(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ro(e,r)}}function Ro(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function _n(e,r){if(e){if(typeof e=="string")return Sn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Sn(e,r)}}function Sn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&this.controls.splice(n,1),t.remove(),this}},{key:"addControls",value:function(){var t=this;this.unAddControls.forEach(function(n){n.addTo(t.scene),t.controls.push(n)}),this.unAddControls=[]}},{key:"destroy",value:function(){var t=Pn(this.controls),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.remove()}}catch(o){t.e(o)}finally{t.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var t=this.controlCorners={},n="l7-",i=this.controlContainer=Ji("div",n+"control-container",this.container);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=l.map(function(v){return n+v}).join(" ");t[l.filter(function(v){return!["row","column"].includes(v)}).join("")]=Ji("div",f,i)}function s(l){var f=l.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Wt.Z)(f),[Gn[l]])}Object.values(_r).forEach(function(l){o(s(l))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var t in this.controlCorners)this.controlCorners[t]&&Ci(this.controlCorners[t]);this.controlContainer&&Ci(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var t=this,n=window.MutationObserver;if(n)for(var i=function(){var f=s[o],v=f.match(/^(top|bottom)(left|right)$/);if(v){var y=(0,yn.Z)(v,3),b=y[1],T=y[2],M=t.controlCorners["".concat(b).concat(T)],O=new n(function(k){var $=(0,yn.Z)(k,1),G=$[0].target;M&&(M.style[b]=G.clientHeight+"px")});O.observe(t.controlCorners["".concat(T).concat(b)],{childList:!0,attributes:!0})}},o=0,s=Object.keys(this.controlCorners);o-1&&this.markerLayers.splice(n,1)}},{key:"addMarker",value:function(t){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(t),t.addTo(this.scene)):this.unAddMarkers.push(t)}},{key:"addMarkers",value:function(){var t=this;this.unAddMarkers.forEach(function(n){n.addTo(t.scene),t.markers.push(n)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var t=this;this.unAddMarkerLayers.forEach(function(n){t.markerLayers.push(n),n.addTo(t.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(t){t.remove(),this.markers.indexOf(t);var n=this.markers.indexOf(t);n>-1&&this.markers.splice(n,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(tt.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(t){t.remove()}),this.markers=[],this.markerLayers.forEach(function(t){t.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(t){t.destroy()}}]),e}())||xo),mp,yu,Vd=(mp=(0,gt.b2)(),mp(yu=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"scene",void 0),(0,B.Z)(this,"mapsService",void 0),(0,B.Z)(this,"popups",[]),(0,B.Z)(this,"unAddPopups",[])}return(0,V.Z)(e,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(t){t!=null&&t.isOpen()&&t.remove();var n=this.popups.indexOf(t);n>-1&&this.popups.splice(n,1);var i=this.unAddPopups.indexOf(t);i>-1&&this.unAddPopups.splice(i,1)}},{key:"destroy",value:function(){this.popups.forEach(function(t){return t.remove()})}},{key:"addPopup",value:function(t){var n=this;t&&t.getOptions().autoClose&&[].concat((0,Wt.Z)(this.popups),(0,Wt.Z)(this.unAddPopups)).forEach(function(i){i.getOptions().autoClose&&n.removePopup(i)}),this.isMarkerReady?(t.addTo(this.scene),this.popups.push(t)):this.unAddPopups.push(t),t.on("close",function(){n.removePopup(t)})}},{key:"initPopup",value:function(){var t=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(n){t.addPopup(n),t.unAddPopups=[]})}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(tt.IMapService)}}]),e}())||yu),zs=function(e){return e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none",e}({}),hc=function(e){return e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e}({}),Qp=function(e){return e.AND="and",e.OR="or",e}({}),ds=function(e){return e.INIT="init",e.UPDATE="update",e}({}),eg={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"},jd=eg,Yf,Hd,gp=ii.merge,tg={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},No={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:Qp.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},Xa=(Yf=(0,gt.b2)(),Yf(Hd=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"sceneConfigCache",{}),(0,B.Z)(this,"layerConfigCache",{}),(0,B.Z)(this,"layerAttributeConfigCache",{})}return(0,V.Z)(e,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return jd[t]}},{key:"setSceneConfig",value:function(t,n){this.sceneConfigCache[t]=(0,H.Z)((0,H.Z)({},tg),n)}},{key:"getLayerConfig",value:function(t){return this.layerConfigCache[t]}},{key:"setLayerConfig",value:function(t,n,i){this.layerConfigCache[n]=(0,H.Z)({},gp({},this.sceneConfigCache[t],No,i))}},{key:"getAttributeConfig",value:function(t){return this.layerAttributeConfigCache[t]}},{key:"setAttributeConfig",value:function(t,n){this.layerAttributeConfigCache[t]=(0,H.Z)((0,H.Z)({},this.layerAttributeConfigCache[t]),n)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),e}())||Hd);function Fi(e,r,t,n){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function Oi(e,r,t,n,i){var o={};return Object.keys(n).forEach(function(s){o[s]=n[s]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce(function(s,l){return l(e,r,s)||s},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0&&(Object.defineProperty(e,r,o),o=null),o}var kh=L(49953),Wd=Math.PI/180,rg=512,Gd=4003e4;function qf(e){var r=e.latitude,t=r===void 0?0:r,n=e.zoom,i=n===void 0?0:n,o=e.scale,s=e.highPrecision,l=s===void 0?!1:s,f=e.flipY,v=f===void 0?!1:f;o=o!==void 0?o:Math.pow(2,i);var y={},b=rg*o,T=Math.cos(t*Wd),M=b/360,O=M/T,k=b/Gd/T;if(y.pixelsPerMeter=[k,-k,k],y.metersPerPixel=[1/k,-1/k,1/k],y.pixelsPerDegree=[M,-O,k],y.degreesPerPixel=[1/M,-1/O,1/k],l){var $=Wd*Math.tan(t*Wd)/T,G=M*$/2,oe=b/Gd*$,ye=oe/O*k;y.pixelsPerDegree2=[0,-G,oe],y.pixelsPerMeter2=[ye,0,ye],v&&(y.pixelsPerDegree2[1]=-y.pixelsPerDegree2[1],y.pixelsPerMeter2[1]=-y.pixelsPerMeter2[1])}return v&&(y.pixelsPerMeter[1]=-y.pixelsPerMeter[1],y.metersPerPixel[1]=-y.metersPerPixel[1],y.pixelsPerDegree[1]=-y.pixelsPerDegree[1],y.degreesPerPixel[1]=-y.degreesPerPixel[1]),y}var zl=function(e){return e[e.LNGLAT=1]="LNGLAT",e[e.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",e[e.VECTOR_TILE=3]="VECTOR_TILE",e[e.IDENTITY=4]="IDENTITY",e[e.P20=5]="P20",e[e.P20_OFFSET=6]="P20_OFFSET",e[e.METER_OFFSET=7]="METER_OFFSET",e[e.P20_2=8]="P20_2",e}({}),Kf={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"},Io,_p,Vc,yp,Jp,Vv=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],xp=(Io=(0,gt.b2)(),_p=(0,gt.f3)(tt.ICameraService),Io(Vc=(yp=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"needRefresh",!0),Fi(this,"cameraService",Jp,this),(0,B.Z)(this,"coordinateSystem",void 0),(0,B.Z)(this,"viewportCenter",void 0),(0,B.Z)(this,"viewportCenterProjection",void 0),(0,B.Z)(this,"pixelsPerDegree",void 0),(0,B.Z)(this,"pixelsPerDegree2",void 0),(0,B.Z)(this,"pixelsPerMeter",void 0)}return(0,V.Z)(e,[{key:"refresh",value:function(t){var n=this.cameraService.getZoom(),i=this.cameraService.getZoomScale(),o=t||this.cameraService.getCenter(),s=qf({latitude:o[1],zoom:n}),l=s.pixelsPerMeter,f=s.pixelsPerDegree;this.viewportCenter=o,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===zl.LNGLAT||this.coordinateSystem===zl.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===zl.LNGLAT_OFFSET?this.calculateLnglatOffset(o,n):this.coordinateSystem===zl.P20_OFFSET&&this.calculateLnglatOffset(o,n,i,!0),this.needRefresh=!1}},{key:"getCoordinateSystem",value:function(){return this.coordinateSystem}},{key:"setCoordinateSystem",value:function(t){this.coordinateSystem=t}},{key:"getViewportCenter",value:function(){return this.viewportCenter}},{key:"getViewportCenterProjection",value:function(){return this.viewportCenterProjection}},{key:"getPixelsPerDegree",value:function(){return this.pixelsPerDegree}},{key:"getPixelsPerDegree2",value:function(){return this.pixelsPerDegree2}},{key:"getPixelsPerMeter",value:function(){return this.pixelsPerMeter}},{key:"calculateLnglatOffset",value:function(t,n,i,o){var s=qf({latitude:t[1],zoom:n,scale:i,flipY:o,highPrecision:!0}),l=s.pixelsPerMeter,f=s.pixelsPerDegree,v=s.pixelsPerDegree2,y=this.cameraService.getViewMatrix(),b=this.cameraService.getProjectionMatrix(),T=ve.multiply([],b,y),M=this.cameraService.projectFlat([Math.fround(t[0]),Math.fround(t[1])],Math.pow(2,n));this.viewportCenterProjection=kh.fF([],[M[0],M[1],0,1],T),y=this.cameraService.getViewMatrixUncentered()||y,T=ve.multiply([],b,y),T=ve.multiply([],T,Vv),this.cameraService.setViewProjectionMatrix(T),this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=v}}]),e}(),Jp=Oi(yp.prototype,"cameraService",[_p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yp))||Vc),jc,jv;function ng(e){var r=E0();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function E0(){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(e){return!1}}var ts=(jc=(0,gt.b2)(),jc(jv=function(e){(0,De.Z)(t,e);var r=ng(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;sO-1*wa||ye<0||Le>k-1*wa||Le<0)return!1;var $e=b({x:Math.floor(ye/r.pickBufferScale),y:Math.floor((k-(o+1)*wa)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO});if(r.pickedColors=$e,$e[0]!==0||$e[1]!==0||$e[2]!==0){var ut=Oa($e),vt=t.layerPickService.getFeatureById(ut);ut!==t.getCurrentPickId()&&l==="mousemove"&&(l="mouseenter");var Rt={x:i,y:o,type:l,lngLat:s,featureId:ut,feature:vt,target:f};vt&&(v=!0,t.setCurrentPickId(ut),r.triggerHoverOnLayer(t,Rt))}else{var Jt={x:i,y:o,lngLat:s,type:t.getCurrentPickId()!==null&&l==="mousemove"?"mouseout":"un"+l,featureId:null,target:f,feature:null};r.triggerHoverOnLayer(t,(0,H.Z)((0,H.Z)({},Jt),{},{type:"unpick"})),r.triggerHoverOnLayer(t,Jt),t.setCurrentPickId(null)}if(G&&t.layerPickService.highlightPickedFeature($e),oe&&l==="click"&&($e==null?void 0:$e.toString())!==[0,0,0,0].toString()){var Mr=Oa($e);t.getCurrentSelectedId()===null||Mr!==t.getCurrentSelectedId()?(t.layerPickService.selectFeature($e),t.setCurrentSelectedId(Mr)):(t.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null))}return v})}return(0,V.Z)(e,[{key:"init",value:function(t){var n=this.rendererService,i=n.createTexture2D,o=n.createFramebuffer,s=n.getContainer,l=this.getContainerSize(s()),f=l.width,v=l.height;f*=wa,v*=wa,this.pickBufferScale=this.configService.getSceneConfig(t).pickBufferScale||1,this.pickingFBO=o({color:i({width:Math.round(f/this.pickBufferScale),height:Math.round(v/this.pickBufferScale),wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o,s){var l=this,f,v,y;return me().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:f=this.rendererService,v=f.useFramebuffer,y=f.clear,this.resizePickingFBO(),v(this.pickingFBO,function(){y({framebuffer:l.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),i.hooks.beforePickingEncode.call(),i.renderModels({ispick:!0}),i.hooks.afterPickingEncode.call();var M=l.pickBox(i,o);s(M)});case 3:case"end":return T.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"pickBox",value:function(t,n){var i=this,o=n.map(function(Mr){var br=Mr<0?0:Mr;return Math.floor(br*wa/i.pickBufferScale)}),s=(0,yn.Z)(o,4),l=s[0],f=s[1],v=s[2],y=s[3],b=this.rendererService,T=b.readPixels,M=b.getContainer,O=this.getContainerSize(M()),k=O.width,$=O.height;if(k*=wa,$*=wa,l>(k-1)*wa/this.pickBufferScale||v<0||f>($-1)*wa/this.pickBufferScale||y<0)return[];for(var G=Math.min(k/this.pickBufferScale,v)-l,oe=Math.min($/this.pickBufferScale,y)-f,ye=T({x:l,y:Math.floor($/this.pickBufferScale-(y+1)),width:G,height:oe,data:new Uint8Array(G*oe*4),framebuffer:this.pickingFBO}),Le=[],$e={},ut=0;ut0&&arguments[0]!==void 0?arguments[0]:!0;(0,q.Z)(this,e),(0,B.Z)(this,"autoStart",void 0),(0,B.Z)(this,"startTime",0),(0,B.Z)(this,"oldTime",0),(0,B.Z)(this,"running",!1),(0,B.Z)(this,"elapsedTime",0),this.autoStart=r}return(0,V.Z)(e,[{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 t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var n=(typeof performance=="undefined"?Date:performance).now();t=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=t}return t}}]),e}(),Ei,Qn,Tn,Ii,gi,Bi,Zn,ra,Ua;function Ja(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=so(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function so(e,r){if(e){if(typeof e=="string")return za(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return za(e,r)}}function za(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&l.layerChildren.splice(f,1)):(v=this.layers.indexOf(s),v>-1&&this.layers.splice(v,1)),s.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return b.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"removeAllLayers",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.destroy(),this.reRender();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"setEnableRender",value:function(i){this.enableRender=i}},{key:"renderLayers",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){M.next=2;break}return M.abrupt("return");case 2:this.updateLayerRenderList(),s=this.debugService.generateRenderUid(),this.debugService.renderStart(s),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),l=Ja(this.layerList),M.prev=9,l.s();case 11:if((f=l.n()).done){M.next=24;break}if(v=f.value,y=v.getLayerConfig(),b=y.enableMask,v.masks.filter(function(O){return O.inited}).length>0&&b&&this.renderMask(v.masks),!v.getLayerConfig().enableMultiPassRenderer){M.next=20;break}return M.next=18,v.renderMultiPass();case 18:M.next=22;break;case 20:return M.next=22,v.render();case 22:M.next=11;break;case 24:M.next=29;break;case 26:M.prev=26,M.t0=M.catch(9),l.e(M.t0);case 29:return M.prev=29,l.f(),M.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(s),this.alreadyInRendering=!1;case 35:case"end":return M.stop()}},o,this,[[9,26,29,32]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMask",value:function(i){var o=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var s=i.length>1?hc.MULTIPLE:hc.SINGLE,l=Ja(i),f;try{for(l.s();!(f=l.n()).done;){var v=f.value;v.render({isStencil:!0,stencilType:s,stencilIndex:o++})}}catch(y){l.e(y)}finally{l.f()}}},{key:"beforeRenderData",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,s.hooks.beforeRenderData.promise();case 2:l=v.sent,l&&this.renderLayers();case 4:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderTileLayerMask",value:function(i){var o=0,s=i.getLayerConfig(),l=s.enableMask,f=l===void 0?!0:l,v=i.tileMask?1:0,y=i.masks.filter(function(k){return k.inited});v=v+(f?y.length:1);var b=v>1?hc.MULTIPLE:hc.SINGLE;if((i.tileMask||y.length&&f)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),y.length&&f){var T=Ja(y),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;O.render({isStencil:!0,stencilType:b,stencilIndex:o++})}}catch(k){T.e(k)}finally{T.f()}}i.tileMask&&i.tileMask.render({isStencil:!0,stencilType:b,stencilIndex:o++,stencilOperation:Qp.OR})}},{key:"renderTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.renderTileLayerMask(s),!s.getLayerConfig().enableMultiPassRenderer){f.next=6;break}return f.next=4,s.renderMultiPass();case 4:f.next=8;break;case 6:return f.next=8,s.render();case 8:case"end":return f.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateLayerRenderList",value:function(){var i=this;this.layerList=[],this.layers.filter(function(o){return o.inited}).filter(function(o){return o.isVisible()}).sort(function(o,s){return o.zIndex-s.zIndex}).forEach(function(o){i.layerList.push(o)})}},{key:"destroy",value:function(){this.layers.forEach(function(i){i.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 i=fi(this.mapService.bgColor);this.renderService.clear({color:i,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)}}]),t}(no.EventEmitter),Zn=Oi(Bi.prototype,"renderService",[Qn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ra=Oi(Bi.prototype,"mapService",[Tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ua=Oi(Bi.prototype,"debugService",[Ii],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bi))||gi),Fa=L(10570),Vs=ii.isNil,bo=function(){function e(r){var t=this;(0,q.Z)(this,e),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"type",void 0),(0,B.Z)(this,"scale",void 0),(0,B.Z)(this,"descriptor",void 0),(0,B.Z)(this,"featureBufferLayout",[]),(0,B.Z)(this,"needRescale",!1),(0,B.Z)(this,"needRemapping",!1),(0,B.Z)(this,"needRegenerateVertices",!1),(0,B.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,B.Z)(this,"vertexAttribute",void 0),(0,B.Z)(this,"defaultCallback",function(n){if(n.length===0){var i;return((i=t.scale)===null||i===void 0?void 0:i.defaultValues)||[]}return n.map(function(o,s){var l,f=(l=t.scale)===null||l===void 0?void 0:l.scalers[s].func,v=f(o);return v})}),this.setProps(r)}return(0,V.Z)(e,[{key:"setProps",value:function(t){Object.assign(this,t)}},{key:"mapping",value:function(t){var n;if((n=this.scale)!==null&&n!==void 0&&n.callback){var i,o=(i=this.scale)===null||i===void 0?void 0:i.callback.apply(i,(0,Wt.Z)(t));if(!Vs(o))return[o]}return this.defaultCallback(t)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),rs=["buffer","update","name"],zi=["buffer","update","name"],fa,va,Xi,js,ns,Ba,Po=(fa={},(0,B.Z)(fa,R.FLOAT,4),(0,B.Z)(fa,R.UNSIGNED_BYTE,1),(0,B.Z)(fa,R.UNSIGNED_SHORT,2),fa),ws=(va=(0,gt.b2)(),Xi=(0,gt.f3)(tt.IRendererService),va(js=(ns=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"attributesAndIndices",void 0),Fi(this,"rendererService",Ba,this),(0,B.Z)(this,"attributes",[]),(0,B.Z)(this,"triangulation",void 0),(0,B.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,V.Z)(e,[{key:"registerStyleAttribute",value:function(t){var n=this.getLayerStyleAttribute(t.name||"");return n?n.setProps(t):(n=new bo(t),this.attributes.push(n)),n}},{key:"unRegisterStyleAttribute",value:function(t){var n=this.attributes.findIndex(function(i){return i.name===t});n>-1&&this.attributes.splice(n,1)}},{key:"updateScaleAttribute",value:function(t){this.attributes.forEach(function(n){var i,o=n.name,s=(i=n.scale)===null||i===void 0?void 0:i.field;(t[o]||s&&t[s])&&(n.needRescale=!0,n.needRemapping=!0,n.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(t,n,i){var o=this.getLayerStyleAttribute(t);o||(o=this.registerStyleAttribute((0,H.Z)((0,H.Z)({},n),{},{name:t})));var s=n.scale;s&&o&&(o.scale=s,o.needRescale=!0,o.needRemapping=!0,o.needRegenerateVertices=!0,i&&i.featureRange&&(o.featureRange=i.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(t){return this.attributes.find(function(n){return n.name===t})}},{key:"getLayerAttributeScale",value:function(t){var n,i=this.getLayerStyleAttribute(t),o=i==null||(n=i.scale)===null||n===void 0?void 0:n.scalers;return o&&o[0]?o[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=this.attributes.find(function($e){return $e.name===t});if(l&&l.descriptor){var f=l.descriptor,v=f.update,y=f.buffer,b=f.size,T=b===void 0?0:b,M=Po[y.type||R.FLOAT];if(v){var O=this.featureLayout,k=O.elements,$=O.sizePerElement,G=k.slice(i,o);if(!G.length)return;var oe=G[0].offset,ye=oe*T*M,Le=G.map(function($e,ut){for(var vt=$e.featureIdx,Rt=$e.vertices,Jt=$e.normals,Mr=Rt.length/$,br=[],pn=0;pn0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return o}function eo(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n=0&&n.length%1===0}e.exports=r.default})(pc,pc.exports);var Cs={},dc={exports:{}},Jf={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var o=n.pop();return t.call(this,n,o)}},e.exports=r.default})(Jf,Jf.exports);var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.fallback=td,vc.wrap=Hc;var Ep=vc.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,ed=vc.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Xd=vc.hasNextTick=typeof qi=="object"&&typeof qi.nextTick=="function";function td(e){setTimeout(e,0)}function Hc(e){return function(r){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return e(function(){return r.apply(void 0,t)})}}var Sf;Ep?Sf=queueMicrotask:ed?Sf=setImmediate:Xd?Sf=qi.nextTick:Sf=td,vc.default=Hc(Sf),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var t=Jf.exports,n=l(t),i=vc,o=l(i),s=Cs;function l(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,s.isAsync)(b)?function(){for(var T=[],M=arguments.length;M--;)T[M]=arguments[M];var O=T.pop(),k=b.apply(this,T);return v(k,O)}:(0,n.default)(function(T,M){var O;try{O=b.apply(this,T)}catch(k){return M(k)}if(O&&typeof O.then=="function")return v(O,M);M(null,O)})}function v(b,T){return b.then(function(M){y(T,null,M)},function(M){y(T,M&&M.message?M:new Error(M))})}function y(b,T,M){try{b(T,M)}catch(O){(0,o.default)(function(k){throw k},O)}}e.exports=r.default}(dc,dc.exports),Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.isAsyncIterable=Cs.isAsyncGenerator=Cs.isAsync=void 0;var Sp=dc.exports,eh=Ap(Sp);function Ap(e){return e&&e.__esModule?e:{default:e}}function rd(e){return e[Symbol.toStringTag]==="AsyncFunction"}function $d(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function nd(e){return typeof e[Symbol.asyncIterator]=="function"}function id(e){if(typeof e!="function")throw new Error("expected a function");return rd(e)?(0,eh.default)(e):e}Cs.default=id,Cs.isAsync=rd,Cs.isAsyncGenerator=$d,Cs.isAsyncIterable=nd;var Wc={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n,i){if(i===void 0&&(i=n.length),!i)throw new Error("arity is undefined");function o(){for(var s=this,l=[],f=arguments.length;f--;)l[f]=arguments[f];return typeof l[i-1]=="function"?n.apply(this,l):new Promise(function(v,y){l[i-1]=function(b){for(var T=[],M=arguments.length-1;M-- >0;)T[M]=arguments[M+1];if(b)return y(b);v(T.length>1?T:T[0])},n.apply(s,l)})}return o}e.exports=r.default})(Wc,Wc.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=pc.exports,n=f(t),i=Cs,o=f(i),s=Wc.exports,l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}r.default=(0,l.default)(function(v,y,b){var T=(0,n.default)(y)?[]:{};v(y,function(M,O,k){(0,o.default)(M)(function($){for(var G,oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];oe.length<2&&(G=oe,oe=G[0]),T[O]=oe,k($)})},function(M){return b(M,T)})},3),e.exports=r.default}(Ef,Ef.exports);var Fh={exports:{}},th={exports:{}},Bh={exports:{}},rh={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n){function i(){for(var o=[],s=arguments.length;s--;)o[s]=arguments[s];if(n!==null){var l=n;n=null,l.apply(this,o)}}return Object.assign(i,n),i}e.exports=r.default})(rh,rh.exports);var nh={exports:{}},Tp={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()},e.exports=r.default})(Tp,Tp.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var t=pc.exports,n=s(t),i=Tp.exports,o=s(i);function s(b){return b&&b.__esModule?b:{default:b}}function l(b){var T=-1,M=b.length;return function(){return++T=l||T||y||(T=!0,s.next().then(function(oe){var ye=oe.value,Le=oe.done;if(!(b||y)){if(T=!1,Le){y=!0,M<=0&&v(null);return}M++,f(ye,O,$),O++,k()}}).catch(G))}function $(oe,ye){if(M-=1,!b){if(oe)return G(oe);if(oe===!1){y=!0,b=!0;return}if(ye===n.default||y&&M<=0)return y=!0,v(null);k()}}function G(oe){b||(T=!1,y=!0,v(oe))}k()}e.exports=r.default}(Lh,Lh.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=rh.exports,n=M(t),i=nh.exports,o=M(i),s=Gc.exports,l=M(s),f=Cs,v=Lh.exports,y=M(v),b=mc.exports,T=M(b);function M(O){return O&&O.__esModule?O:{default:O}}r.default=function(O){return function(k,$,G){if(G=(0,n.default)(G),O<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!k)return G(null);if((0,f.isAsyncGenerator)(k))return(0,y.default)(k,O,$,G);if((0,f.isAsyncIterable)(k))return(0,y.default)(k[Symbol.asyncIterator](),O,$,G);var oe=(0,o.default)(k),ye=!1,Le=!1,$e=0,ut=!1;function vt(Jt,Mr){if(!Le)if($e-=1,Jt)ye=!0,G(Jt);else if(Jt===!1)ye=!0,Le=!0;else{if(Mr===T.default||ye&&$e<=0)return ye=!0,G(null);ut||Rt()}}function Rt(){for(ut=!0;$e0;)oe[ye]=arguments[ye+1];if(G!==!1){if(G||O===T.length)return M.apply(void 0,[G].concat(oe));k(oe)}}k([])}r.default=(0,v.default)(b),e.exports=r.default})(od,od.exports);var ig=Vl(od.exports),qd=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ig(this.tasks)},e.prototype.tap=function(r,t){this.tasks.length===0?this.tasks.push(function(n){var i=t();n(i?null:!1,i)}):this.tasks.push(function(n,i){var o=t.apply(void 0,eo([],vl(n),!1));i(o?null:!1,r)})},e}(),fo=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ih(this.tasks)},e.prototype.tap=function(r,t){this.tasks.push(function(n){var i=t();n(i,r)})},e}(),gc=function(){function e(){this.args=[],this.tasks=[]}return e.prototype.promise=function(){for(var r=arguments,t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,t={};return e=e.replace(nv,function(n,i,o){var s=o.split(":"),l=s[0].trim(),f="";switch(s.length>1&&(f=s[1].trim()),i){case"bool":f=f==="true";break;case"float":case"int":f=Number(f);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":f?f=f.replace("[","").replace("]","").split(",").reduce(function(v,y){return v.push(Number(y.trim())),v},[]):f=new Array(ug(i)).fill(0);break;default:}return t[l]=f,"".concat(r?"uniform ":"").concat(i," ").concat(l,`; +`)}),{content:e,uniforms:t}}function Vh(e){var r=am(e,!0),t=r.content,n=r.uniforms;return t=t.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(i,o,s){s=s.trim().replace(/^.*$/gm,function(y){return"uniform ".concat(y)});var l=am(s),f=l.content,v=l.uniforms;return Object.assign(n,v),"".concat(o,`{ +`).concat(f,` +};`)}),{content:t,uniforms:n}}function om(e){var r={};return e.replace(nv,function(t,n,i){var o=i.trim();return r[o]?"":(r[o]=!0,"uniform ".concat(n," ").concat(o,`; +`))})}var hd,lg,cg=ii.uniq,fg="#define PI 3.14159265359",T0=`#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 +#define SHIFT_RIGHT21 1.0 / 2097152.0 +#define SHIFT_RIGHT22 1.0 / 4194304.0 +#define SHIFT_RIGHT23 1.0 / 8388608.0 +#define SHIFT_RIGHT24 1.0 / 16777216.0 + +#define SHIFT_LEFT17 131072.0 +#define SHIFT_LEFT18 262144.0 +#define SHIFT_LEFT19 524288.0 +#define SHIFT_LEFT20 1048576.0 +#define SHIFT_LEFT21 2097152.0 +#define SHIFT_LEFT22 4194304.0 +#define SHIFT_LEFT23 8388608.0 +#define SHIFT_LEFT24 16777216.0 + +vec2 unpack_float(float packedValue) { + int packedIntValue = int(packedValue); + int v0 = packedIntValue / 256; + return vec2(v0, packedIntValue - v0 * 256); +} + +vec4 decode_color(vec2 encodedColor) { + return vec4( + unpack_float(encodedColor[0]) / 255.0, + unpack_float(encodedColor[1]) / 255.0 + ); +} +`,hg=`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; +};`,pg=`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; +};`,w0=`#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + + +float calc_lighting(vec4 pos) { + + vec3 worldPos = vec3(pos * u_ModelMatrix); + + vec3 worldNormal = a_Normal; + // //cal light weight + vec3 viewDir = normalize(u_CameraPosition - worldPos); + + vec3 lightDir = normalize(vec3(1, -10.5, 12)); + + vec3 halfDir = normalize(viewDir+lightDir); + // //lambert + float lambert = dot(worldNormal, lightDir); + //specular + float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0); + //sum to light weight + float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular; + + return lightWeight; +} +`,C0=`// 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; +uniform float u_Diffuse : 1.0; +uniform float u_Specular : 1.0; +uniform int u_NumOfDirectionalLights : 1; +uniform int u_NumOfSpotLights : 0; + +#define SHININESS 32.0 +#define MAX_NUM_OF_DIRECTIONAL_LIGHTS 3 +#define MAX_NUM_OF_SPOT_LIGHTS 3 + +struct DirectionalLight { + vec3 direction; + vec3 ambient; + vec3 diffuse; + vec3 specular; +}; + +struct SpotLight { + vec3 position; + vec3 direction; + vec3 ambient; + vec3 diffuse; + vec3 specular; + float constant; + float linear; + float quadratic; + float angle; + float blur; + float exponent; +}; + +uniform DirectionalLight u_DirectionalLights[MAX_NUM_OF_DIRECTIONAL_LIGHTS]; +uniform SpotLight u_SpotLights[MAX_NUM_OF_SPOT_LIGHTS]; + +vec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) { + vec3 lightDir = normalize(light.direction); + // diffuse shading + float diff = max(dot(normal, lightDir), 0.0); + // Blinn-Phong specular shading + vec3 halfwayDir = normalize(lightDir + viewDir); + float spec = pow(max(dot(normal, halfwayDir), 0.0), SHININESS); + + vec3 ambient = light.ambient * u_Ambient; + vec3 diffuse = light.diffuse * diff * u_Diffuse; + vec3 specular = light.specular * spec * u_Specular; + + return ambient + diffuse + specular; +} + +// vec3 calc_spot_light(SpotLight light, vec3 normal, vec3 fragPos, vec3 viewDir) { +// vec3 lightDir = normalize(light.position - fragPos); +// // diffuse shading +// float diff = max(dot(normal, lightDir), 0.0); +// // specular shading +// vec3 reflectDir = reflect(-lightDir, normal); +// float spec = pow(max(dot(viewDir, reflectDir), 0.0), SHININESS); +// // attenuation +// float distance = length(light.position - fragPos); +// float attenuation = 1.0 / (light.constant + light.linear * distance + +// light.quadratic * (distance * distance)); + +// vec3 ambient = light.ambient * u_Ambient; +// vec3 diffuse = light.diffuse * diff * u_Diffuse; +// vec3 specular = light.specular * spec * u_Specular; + +// float spotEffect = dot(normalize(light.direction), -lightDir); +// float spotCosCutoff = cos(light.angle / 180.0 * PI); +// float spotCosOuterCutoff = cos((light.angle + light.blur) / 180.0 * PI); +// float spotCosInnerCutoff = cos((light.angle - light.blur) / 180.0 * PI); +// if (spotEffect > spotCosCutoff) { +// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent); +// } else { +// spotEffect = 0.0; +// } + +// return ambient + attenuation * (spotEffect * diffuse + specular); +// } + +vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { + vec3 weight = vec3(0.0); + for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) { + if (i >= u_NumOfDirectionalLights) { + break; + } + weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); + } + // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) { + // if (i >= u_NumOfSpotLights) { + // break; + // } + // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir); + // } + return weight; +} +`,R0=` +in vec4 v_PickingResult; + +#pragma include "picking_uniforms" + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +/* + * Returns highlight color if this item is selected. + */ +vec4 filterHighlightColor(vec4 color, float weight) { + // float selected = v_PickingResult.a; + bool selected = bool(v_PickingResult.a); + + // if (selected == SELECT) { + if (selected) { + // // \u70B9\u51FB\u9009\u4E2D\u72B6\u6001 + // vec4 selectColor = u_SelectColor * COLOR_SCALE; + // return selectColor; + // } else if (selected == HIGHLIGHT) { + // // hover \u9AD8\u4EAE\u72B6\u6001 + vec4 highLightColor = u_HighlightColor * COLOR_SCALE; + + float highLightAlpha = highLightColor.a; + float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha)); + + vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio); + return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a); + } else { + return color; + } +} + +/* + * Returns picking color if picking enabled else unmodified argument. + */ +vec4 filterPickingColor(vec4 color) { + vec3 pickingColor = v_PickingResult.rgb; + if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) { + discard; + } + return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color; +} + +/* + * Returns picking color if picking is enabled if not + * highlight color if this item is selected, otherwise unmodified argument. + */ +vec4 filterColor(vec4 color) { + // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, 1.0)); + } + +} + +vec4 filterColorAlpha(vec4 color, float alpha) { + // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, alpha)); + } +} + +`,M0=`layout(location = 2) in vec3 a_PickingColor; +out vec4 v_PickingResult; + +#pragma include "picking_uniforms" + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define NORMAL 0.0 +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +bool isVertexPicked(vec3 vertexColor) { + 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 distance(vertexColor,u_CurrentSelectedId.rgb) < 0.01; +} + +void setPickingColor(vec3 pickingColor) { + if(u_shaderPick < 0.5) { + return; + } + // compares only in highlight stage + + v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor)); + + // Stores the picking color so that the fragment shader can render it during picking + v_PickingResult.rgb = pickingColor * COLOR_SCALE; +} + +float setPickingSize(float x) { + return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x; +} + +float setPickingOrder(float z) { + bool selected = bool(v_PickingResult.a); + return selected ? z + 1. : 0.; +} +`,$c=` +#define E 2.718281828459045 +vec2 ProjectFlat(vec2 lnglat){ + float maxs=85.0511287798; + float lat=max(min(maxs,lnglat.y),-maxs); + float scale= 268435456.; + float d=PI/180.; + float x=lnglat.x*d; + float y=lat*d; + y=log(tan((PI/4.)+(y/2.))); + + float a=.5/PI, + b=.5, + c=-.5/PI; + d=.5; + x=scale*(a*x+b); + y=scale*(c*y+d); + return vec2(x,y); +} + +vec2 unProjectFlat(vec2 px){ + float a=.5/PI; + float b=.5; + float c=-.5/PI; + float d=.5; + float scale = 268435456.; + float x=(px.x/scale-b)/a; + float y=(px.y/scale-d)/c; + y=(atan(pow(E,y))-(PI/4.))*2.; + d=PI/180.; + float lat=y/d; + float lng=x/d; + return vec2(lng,lat); +} + +float pixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +} + +// gaode2.0 +vec2 customProject(vec2 lnglat) { // \u7ECF\u7EAC\u5EA6 => \u5E73\u9762\u5750\u6807 + float t = lnglat.x; + float e = lnglat.y; + float Sm = 180.0 / PI; + float Tm = 6378137.0; + float Rm = PI / 180.0; + float r = 85.0511287798; + e = max(min(r, e), -r); + t *= Rm; + e *= Rm; + e = log(tan(PI / 4.0 + e / 2.0)); + return vec2(t * Tm, e * Tm); +} + +vec2 unProjCustomCoord(vec2 point) { // \u5E73\u9762\u5750\u6807 => \u7ECF\u7EAC\u5EA6 + float Sm = 57.29577951308232; //180 / Math.PI + float Tm = 6378137.0; + float t = point.x; + float e = point.y; + return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm); +} + + +float customPixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +}`,pd=`#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 +#define COORDINATE_SYSTEM_VECTOR_TILE 3.0 +#define COORDINATE_SYSTEM_IDENTITY 4.0 +#define COORDINATE_SYSTEM_P20 5.0 // amap +#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset +#define COORDINATE_SYSTEM_METER_OFFSET 7.0 + +#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 +#pragma include "scene_uniforms" + + +// 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, + PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) + ); +} + +float project_scale(float meters) { + return meters * u_PixelsPerMeter.z; +} + + +// offset coords -> world coords +vec4 project_offset(vec4 offset) { + float dy = offset.y; + dy = clamp(dy, -1., 1.); + vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy; + return vec4(offset.xyz * pixels_per_unit, offset.w); +} + +vec3 project_normal(vec3 normal) { + vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0); + return normalize(normal_modelspace.xyz * u_PixelsPerMeter); +} + +vec3 project_offset_normal(vec3 vector) { + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01 + || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // normals generated by the polygon tesselator are in lnglat offsets instead of meters + return normalize(vector * u_PixelsPerDegree); + } + return project_normal(vector); +} +// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01 +// reverse Y +vec3 reverse_offset_normal(vec3 vector) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) { + return vector * vec3(1.0, -1.0, 1.0); + } + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 + return vector; + } + return vector; +} + +vec4 project_mvt_offset_position(vec4 position) { + float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; + float b = COORDINATE_SYSTEM_P20_OFFSET; + float c = COORDINATE_SYSTEM_LNGLAT; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + return project_offset(vec4(0.0, 0.0, position.z, position.w)); + } + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { + return vec4( + project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, + project_scale(position.z), + position.w + ); + } + return position; +} + +vec4 project_position(vec4 position) { + float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; + float b = COORDINATE_SYSTEM_P20_OFFSET; + float c = COORDINATE_SYSTEM_LNGLAT; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET + || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + float X = position.x - u_ViewportCenter.x; + float Y = position.y - u_ViewportCenter.y; + return project_offset(vec4(X, Y, position.z, position.w)); + } + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { + return vec4( + project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, + project_scale(position.z), + position.w + ); + } + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { + return vec4( + (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * 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 position; + + // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB +} +vec2 project_pixel_size_to_clipspace(vec2 pixels) { + vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0; + return offset * u_FocalDistance; +} + + + +float project_pixel_allmap(float pixel) { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { + return pixel * pow(2.0, u_Zoom); + } + return pixel * u_FocalDistance ; +} + +// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F +float project_pixel_texture(float pixel) { + // mapbox zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + return pixel * pow(0.5, u_Zoom) * u_FocalDistance ; + } + + // amap2 zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; + } + + // amap zoom > 12 + 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 ; + } + return pixel * 2.0 * u_FocalDistance;; +} + +// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528 +float project_float_pixel(float pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + 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 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; + } + 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 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * u_FocalDistance; +} +vec2 project_pixel(vec2 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * -1. * u_FocalDistance; +} +vec3 project_pixel(vec3 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * -1. * u_FocalDistance; +} + +vec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + position.w *= u_PixelsPerMeter.z; + } + + return viewProjectionMatrix * position + center; +} + +// Projects from common space coordinates to clip space +vec4 project_common_position_to_clipspace(vec4 position) { + return project_common_position_to_clipspace( + position, + u_ViewProjectionMatrix, + u_ViewportCenterProjection + ); +} + +vec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) { + vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection); + + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + pos.w = pos.w / u_PixelsPerMeter.z; + } + return pos; +} + + +bool isEqual( float a, float b) { + return a< b + 0.001 && a > b - 0.001; +} + +// \u652F\u6301 GaodeV2\u3001Mapbox +vec4 project_common_position_to_clipspace_v2(vec4 position) { + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + return u_Mvp * position; + } else { + return project_common_position_to_clipspace(position); + } +} +`,dg=`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; +}`,dd=`/** + * 2D signed distance field functions + * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm + */ + +float ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; } + +float sdCircle(vec2 p, float r) { + return length(p) - r; +} + +float sdEquilateralTriangle(vec2 p) { + float k = sqrt(3.0); + p.x = abs(p.x) - 1.0; + p.y = p.y + 1.0/k; + if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0; + p.x -= clamp( p.x, -2.0, 0.0 ); + return -length(p)*sign(p.y); +} + +float sdBox(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0); +} + +float sdPentagon(vec2 p, float r) { + vec3 k = vec3(0.809016994,0.587785252,0.726542528); + p.x = abs(p.x); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= vec2(clamp(p.x,-r*k.z,r*k.z),r); + return length(p)*sign(p.y); +} + +float sdHexagon(vec2 p, float r) { + vec3 k = vec3(-0.866025404,0.5,0.577350269); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdOctogon(vec2 p, float r) { + vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 ); + p = abs(p); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdHexagram(vec2 p, float r) { + vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= 2.0*min(dot(k.yx,p),0.0)*k.yx; + p -= vec2(clamp(p.x,r*k.z,r*k.w),r); + return length(p)*sign(p.y); +} + +float sdRhombus(vec2 p, vec2 b) { + vec2 q = abs(p); + float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0); + float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) ); + return d * sign( q.x*b.y + q.y*b.x - b.x*b.y ); +} + +float sdVesica(vec2 p, float r, float d) { + p = abs(p); + float b = sqrt(r*r-d*d); // can delay this sqrt + return ((p.y-b)*d>p.x*b) + ? length(p-vec2(0.0,b)) + : length(p-vec2(-d,0.0))-r; +} +`,sm=/precision\s+(high|low|medium)p\s+float/,V_=`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + #else + precision mediump float; +#endif +`,J2=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,eS=/void\s+main\s*\([^)]*\)\s*\{\n?/,HB=/}\n?[^{}]*$/,tS=(hd=(0,gt.b2)(),hd(lg=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"moduleCache",{}),(0,B.Z)(this,"rawContentCache",{})}return(0,V.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:fg,fs:fg}),this.registerModule("decode",{vs:T0,fs:""}),this.registerModule("scene_uniforms",{vs:hg,fs:hg}),this.registerModule("picking_uniforms",{vs:pg,fs:pg}),this.registerModule("projection",{vs:pd,fs:pd}),this.registerModule("project",{vs:$c,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:dd}),this.registerModule("lighting",{vs:C0,fs:""}),this.registerModule("light",{vs:w0,fs:""}),this.registerModule("picking",{vs:M0,fs:R0}),this.registerModule("rotation_2d",{vs:dg,fs:""})}},{key:"registerModule",value:function(t,n){n.vs=n.vs.replace(/\r\n/g,` +`),n.fs=n.fs.replace(/\r\n/g,` +`);var i=n.vs,o=n.fs,s=n.uniforms,l=n.inject,f=Vh(i),v=f.content,y=f.uniforms,b=Vh(o),T=b.content,M=b.uniforms;this.rawContentCache[t]={fs:T,inject:l,uniforms:(0,H.Z)((0,H.Z)((0,H.Z)({},y),M),s),vs:v}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var n=this,i=this.rawContentCache[t].vs,o=this.rawContentCache[t].fs,s=this.rawContentCache[t].inject,l={};s!=null&&s["vs:#decl"]&&(i=(s==null?void 0:s["vs:#decl"])+i,l=Vh(s==null?void 0:s["vs:#decl"]).uniforms),s!=null&&s["vs:#main-start"]&&(i=i.replace(eS,function(G){return G+(s==null?void 0:s["vs:#main-start"])})),s!=null&&s["fs:#decl"]&&(o=(s==null?void 0:s["fs:#decl"])+o);var f=this.processModule(i,[],"vs"),v=f.content,y=f.includeList,b=this.processModule(o,[],"fs"),T=b.content,M=b.includeList,O="",k=cg(y.concat(M).concat(t)).reduce(function(G,oe){return(0,H.Z)((0,H.Z)({},G),n.rawContentCache[oe].uniforms)},(0,H.Z)({},l));sm.test(T)||(O=O+V_),O=O+T;var $="";return sm.test(v)||($=$+V_),$=$+v,this.moduleCache[t]={fs:O.trim(),uniforms:k,vs:$.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,n,i){var o=this,s=t.replace(J2,function(l,f){var v=f.split(" "),y=v[0].replace(/"/g,"");if(n.indexOf(y)>-1)return"";var b=o.rawContentCache[y][i];n.push(y);var T=o.processModule(b,n,i),M=T.content;return M});return{content:s,includeList:n}}},{key:"injectDefines",value:function(t){var n=Object.keys(t).reduce(function(i,o){return i+"#define ".concat(o.toUpperCase()," ").concat(t[o],`; +`)},` +`);return n}}]),e}())||lg);function rS(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=(0,be.Z)(e),e!==null););return e}function Ra(){return typeof Reflect!="undefined"&&Reflect.get?Ra=Reflect.get.bind():Ra=function(r,t,n){var i=rS(r,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?r:n):o.value}},Ra.apply(this,arguments)}var iv=function(e){return e.Normal="normal",e.PostProcessing="post-processing",e}({}),j_,H_,vg=(j_=(0,gt.b2)(),j_(H_=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"shaderModuleService",void 0),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"cameraService",void 0),(0,B.Z)(this,"mapService",void 0),(0,B.Z)(this,"interactionService",void 0),(0,B.Z)(this,"layerService",void 0),(0,B.Z)(this,"config",void 0)}return(0,V.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return iv.Normal}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(tt.IRendererService),this.cameraService=t.getContainer().get(tt.ICameraService),this.mapService=t.getContainer().get(tt.IMapService),this.interactionService=t.getContainer().get(tt.IInteractionService),this.layerService=t.getContainer().get(tt.ILayerService),this.shaderModuleService=t.getContainer().get(tt.IShaderModuleService)}},{key:"render",value:function(t){}}]),e}())||H_),W_,G_;function nS(e){var r=iS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function iS(){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(e){return!1}}var aS=(W_=(0,gt.b2)(),W_(G_=function(e){(0,De.Z)(t,e);var r=nS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(i,o){Ra((0,be.Z)(t.prototype),"init",this).call(this,i,o)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),t}(vg))||G_),X_,$_,Y_,I0,q_;function oS(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=sS(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function sS(e,r){if(e){if(typeof e=="string")return K_(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K_(e,r)}}function K_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tG||ut<0||vt>oe||vt<0)){var Rt;k(n.pickingFBO,function(){var Jt;if(Rt=O({x:Math.round(ut),y:Math.round(oe-(v+1)*wa),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),Rt[0]!==0||Rt[1]!==0||Rt[2]!==0){var Mr=Oa(Rt),br=n.layer.getSource().getFeatureById(Mr),pn={x:f,y:v,type:b,lngLat:y,featureId:Mr,feature:br};br&&(n.layer.setCurrentPickId(Mr),n.triggerHoverOnLayer(pn))}else{var kn={x:f,y:v,lngLat:y,type:n.layer.getCurrentPickId()===null?"un"+b:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer((0,H.Z)((0,H.Z)({},kn),{},{type:"unpick"})),n.triggerHoverOnLayer(kn),n.layer.setCurrentPickId(null)}Le&&n.highlightPickedFeature(Rt),$e&&b==="click"&&((Jt=Rt)===null||Jt===void 0?void 0:Jt.toString())!==[0,0,0,0].toString()&&n.selectFeature(Rt)})}}}),n}return(0,V.Z)(t,[{key:"getType",value:function(){return iv.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(i,o){Ra((0,be.Z)(t.prototype),"init",this).call(this,i,o),this.layer=i;var s=this.rendererService,l=s.createTexture2D,f=s.createFramebuffer,v=s.getViewportSize,y=v(),b=y.width,T=y.height;this.pickingFBO=f({color:l({width:b,height:T,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickFromPickingFBO),this.interactionService.on(a.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(a.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(i){var o=this;if(!this.alreadyInRendering){var s=this.rendererService,l=s.getViewportSize,f=s.useFramebuffer,v=s.clear,y=l(),b=y.width,T=y.height;this.alreadyInRendering=!0,(this.width!==b||this.height!==T)&&(this.pickingFBO.resize({width:b,height:T}),this.width=b,this.height=T),f(this.pickingFBO,function(){v({framebuffer:o.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var M=o.layer.multiPassRenderer.getRenderFlag();o.layer.multiPassRenderer.setRenderFlag(!1),i.hooks.beforePickingEncode.call(),i.render(),i.hooks.afterPickingEncode.call(),o.layer.multiPassRenderer.setRenderFlag(M),o.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(i){this.layer.emit(i.type,i)}},{key:"highlightPickedFeature",value:function(i){var o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeHighlight.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(i){var o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeSelect.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(i){var o=i.featureId,s=ia(o);this.selectFeature(new Uint8Array(s))}},{key:"highlightFeatureHandle",value:function(i){var o=i.featureId,s=ia(o);this.highlightPickedFeature(new Uint8Array(s))}}]),t}(vg))||J_),ey,ty,ry,P0,ny,hS=ii.camelCase,pS=ii.isNil,dS=ii.upperFirst,vS=`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.); +}`,jh=(ey=(0,gt.b2)(),ty=(0,gt.f3)(tt.IShaderModuleService),ey(ry=(P0=function(){function e(){(0,q.Z)(this,e),Fi(this,"shaderModuleService",ny,this),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"config",void 0),(0,B.Z)(this,"quad",vS),(0,B.Z)(this,"enabled",!0),(0,B.Z)(this,"renderToScreen",!1),(0,B.Z)(this,"model",void 0),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"optionsToUpdate",{})}return(0,V.Z)(e,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(t){this.name=t}},{key:"getType",value:function(){return iv.PostProcessing}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(tt.IRendererService),this.shaderModuleService=t.getContainer().get(tt.IShaderModuleService);var i=this.rendererService,o=i.createAttribute,s=i.createBuffer,l=i.createModel,f=this.setupShaders(),v=f.vs,y=f.fs,b=f.uniforms;this.model=l({vs:v,fs:y,attributes:{a_Position:o({buffer:s({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,H.Z)((0,H.Z)({u_Texture:null},b),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(t,n){var i=this,o=t.multiPassRenderer.getPostProcessor(),s=this.rendererService,l=s.useFramebuffer,f=s.getViewportSize,v=s.clear,y=f(),b=y.width,T=y.height;l(this.renderToScreen?null:o.getWriteFBO(),function(){v({framebuffer:o.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var M=(0,H.Z)({u_BloomFinal:0,u_Texture:o.getReadFBO(),u_ViewportSize:[b,T]},i.convertOptionsToUniforms(i.optionsToUpdate));n&&(M.u_BloomFinal=1,M.u_Texture2=n),i.model.draw({uniforms:M})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(t){this.enabled=t}},{key:"setRenderToScreen",value:function(t){this.renderToScreen=t}},{key:"updateOptions",value:function(t){this.optionsToUpdate=(0,H.Z)((0,H.Z)({},this.optionsToUpdate),t)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(t){var n={};return Object.keys(t).forEach(function(i){pS(t[i])||(n["u_".concat(dS(hS(i)))]=t[i])}),n}}]),e}(),ny=Oi(P0.prototype,"shaderModuleService",[ty],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P0))||ry),iy,ay;function mS(e){var r=gS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function gS(){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(e){return!1}}var _S=`varying vec2 v_UV; + +uniform float u_BloomFinal: 0.0; +uniform sampler2D u_Texture; +uniform sampler2D u_Texture2; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform float u_radius: 5.0; +uniform float u_intensity: 0.3; +uniform float u_baseRadio: 0.5; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +float luminance(vec4 color) { + return 0.2125 * color.r + 0.7154 * color.g + 0.0721 * color.b; +} + +void main() { + // vec4 baseColor = texture2D(u_Texture, v_UV); + + float r = sqrt(u_radius); + + vec4 c1 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(u_radius, 0.0)); + // c1 *= luminance(c1); + vec4 c2 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(0.0, u_radius)); + // c2 *= luminance(c2); + vec4 c3 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, r)); + // c3 *= luminance(c3); + vec4 c4 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, -r)); + // c4 *= luminance(c4); + vec4 inbloomColor = (c1 + c2 + c3 + c4) * 0.25; + + // float lum = luminance(inbloomColor); + // inbloomColor.rgb *= lum; + + if(u_BloomFinal > 0.0) { + vec4 baseColor = texture2D(u_Texture2, v_UV); + float baselum = luminance(baseColor); + gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio); + if(baselum <= 0.2) { + gl_FragColor = inbloomColor * u_intensity; + } + } else { + gl_FragColor = inbloomColor; + } +}`,yS=`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.); +}`,O0=ii.isNil,xS=(iy=(0,gt.b2)(),iy(ay=function(e){(0,De.Z)(t,e);var r=mS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:yS,fs:_S});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return O0(i.bloomRadius)||(o.u_radius=i.bloomRadius),O0(i.bloomIntensity)||(o.u_intensity=i.bloomIntensity),O0(i.bloomBaseRadio)||(o.u_baseRadio=i.bloomBaseRadio),o}}]),t}(jh))||ay),oy,sy;function bS(e){var r=ES();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var SS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_BlurDir: [1.0, 0.0]; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +void main() { + gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); +}`,AS=`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.); +}`,TS=ii.isNil,wS=(oy=(0,gt.b2)(),oy(sy=function(e){(0,De.Z)(t,e);var r=bS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:AS,fs:SS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return TS(i.blurRadius)||(o.u_BlurDir=[i.blurRadius,0]),o}}]),t}(jh))||sy),uy,ly;function CS(e){var r=RS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function RS(){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(e){return!1}}var MS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_BlurDir: [1.0, 0.0]; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +void main() { + gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); +}`,IS=`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.); +}`,PS=ii.isNil,OS=(uy=(0,gt.b2)(),uy(ly=function(e){(0,De.Z)(t,e);var r=CS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:IS,fs:MS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return PS(i.blurRadius)||(o.u_BlurDir=[0,i.blurRadius]),o}}]),t}(jh))||ly),cy,fy;function DS(e){var r=kS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var FS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_Center : [0.5, 0.5]; +uniform float u_Angle : 0; +uniform float u_Size : 8; + +#pragma include "common" + +float scale = PI / u_Size; + +float pattern(float u_Angle, vec2 texSize, vec2 texCoord) { + float s = sin(u_Angle), c = cos(u_Angle); + vec2 tex = texCoord * texSize - u_Center * texSize; + vec2 point = vec2( + c * tex.x - s * tex.y, + s * tex.x + c * tex.y + ) * scale; + return (sin(point.x) * sin(point.y)) * 4.0; +} + +// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/colorhalftone.js +vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { + vec3 cmy = 1.0 - color.rgb; + float k = min(cmy.x, min(cmy.y, cmy.z)); + cmy = (cmy - k) / (1.0 - k); + cmy = clamp( + cmy * 10.0 - 3.0 + vec3( + pattern(u_Angle + 0.26179, texSize, texCoord), + pattern(u_Angle + 1.30899, texSize, texCoord), + pattern(u_Angle, texSize, texCoord) + ), + 0.0, + 1.0 + ); + k = clamp(k * 10.0 - 5.0 + pattern(u_Angle + 0.78539, texSize, texCoord), 0.0, 1.0); + return vec4(1.0 - cmy - k, color.a); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); +}`,BS=`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=(cy=(0,gt.b2)(),cy(fy=function(e){(0,De.Z)(t,e);var r=DS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:BS,fs:FS});var i=this.shaderModuleService.getModule("colorhalftone-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||fy),hy,py;function NS(e){var r=US();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function US(){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(e){return!1}}var zS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); +}`,ZS=`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.); +}`,VS=(hy=(0,gt.b2)(),hy(py=function(e){(0,De.Z)(t,e);var r=NS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:ZS,fs:zS}),this.shaderModuleService.getModule("copy-pass")}}]),t}(jh))||py),dy,vy;function jS(e){var r=HS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function HS(){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(e){return!1}}var WS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_Center : [0.5, 0.5]; +uniform float u_Scale : 10; + +// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/hexagonalpixelate.js +vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { + vec2 tex = (texCoord * texSize - u_Center * texSize) / u_Scale; + tex.y /= 0.866025404; + tex.x -= tex.y * 0.5; + vec2 a; + if (tex.x + tex.y - floor(tex.x) - floor(tex.y) < 1.0) { + a = vec2(floor(tex.x), floor(tex.y)); + } + else a = vec2(ceil(tex.x), ceil(tex.y)); + vec2 b = vec2(ceil(tex.x), floor(tex.y)); + vec2 c = vec2(floor(tex.x), ceil(tex.y)); + vec3 TEX = vec3(tex.x, tex.y, 1.0 - tex.x - tex.y); + vec3 A = vec3(a.x, a.y, 1.0 - a.x - a.y); + vec3 B = vec3(b.x, b.y, 1.0 - b.x - b.y); + vec3 C = vec3(c.x, c.y, 1.0 - c.x - c.y); + float alen = length(TEX - A); + float blen = length(TEX - B); + float clen = length(TEX - C); + vec2 choice; + if (alen < blen) { + if (alen < clen) choice = a; + else choice = c; + } else { + if (blen < clen) choice = b; + else choice = c; + } + choice.x += choice.y * 0.5; + choice.y *= 0.866025404; + choice *= u_Scale / texSize; + return texture2D(texture, choice + u_Center); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); +}`,GS=`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.); +}`,XS=(dy=(0,gt.b2)(),dy(vy=function(e){(0,De.Z)(t,e);var r=jS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:GS,fs:WS});var i=this.shaderModuleService.getModule("hexagonalpixelate-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||vy),gy,_y;function $S(e){var r=YS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function YS(){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(e){return!1}}var qS=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform float u_Strength : 0.6; + +vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { + vec2 dx = vec2(1.0 / texSize.x, 0.0); + vec2 dy = vec2(0.0, 1.0 / texSize.y); + vec4 color = texture2D(texture, texCoord); + float bigTotal = 0.0; + float smallTotal = 0.0; + vec3 bigAverage = vec3(0.0); + vec3 smallAverage = vec3(0.0); + for (float x = -2.0; x <= 2.0; x += 1.0) { + for (float y = -2.0; y <= 2.0; y += 1.0) { + vec3 sample = texture2D(texture, texCoord + dx * x + dy * y).rgb; + bigAverage += sample; + bigTotal += 1.0; + if (abs(x) + abs(y) < 2.0) { + smallAverage += sample; + smallTotal += 1.0; + } + } + } + vec3 edge = max(vec3(0.0), bigAverage / bigTotal - smallAverage / smallTotal); + float power = u_Strength * u_Strength * u_Strength * u_Strength * u_Strength; + return vec4(color.rgb - dot(edge, edge) * power * 100000.0, color.a); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); +}`,KS=`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.); +}`,QS=(gy=(0,gt.b2)(),gy(_y=function(e){(0,De.Z)(t,e);var r=$S(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:KS,fs:qS});var i=this.shaderModuleService.getModule("ink-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||_y),yy,xy;function JS(e){var r=eA();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function eA(){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(e){return!1}}var tA=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform float u_Amount : 0.5; + +float rand(vec2 co) { + return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); +} + +// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js +vec4 noise_filterColor(vec4 color, vec2 texCoord) { + float diff = (rand(texCoord) - 0.5) * u_Amount; + color.r += diff; + color.g += diff; + color.b += diff; + return color; +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = noise_filterColor(gl_FragColor, v_UV); +}`,rA=`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.); +}`,nA=(yy=(0,gt.b2)(),yy(xy=function(e){(0,De.Z)(t,e);var r=JS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:rA,fs:tA}),this.shaderModuleService.getModule("noise-pass")}}]),t}(jh))||xy),by,Ey;function iA(e){var r=aA();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function aA(){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(e){return!1}}var oA=`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.); +}`,sA=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform float u_Amount : 0.5; + +// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js +vec4 sepia_filterColor(vec4 color) { + float r = color.r; + float g = color.g; + float b = color.b; + color.r = + min(1.0, (r * (1.0 - (0.607 * u_Amount))) + (g * (0.769 * u_Amount)) + (b * (0.189 * u_Amount))); + color.g = min(1.0, (r * 0.349 * u_Amount) + (g * (1.0 - (0.314 * u_Amount))) + (b * 0.168 * u_Amount)); + color.b = min(1.0, (r * 0.272 * u_Amount) + (g * 0.534 * u_Amount) + (b * (1.0 - (0.869 * u_Amount)))); + return color; +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = sepia_filterColor(gl_FragColor); +}`,uA=(by=(0,gt.b2)(),by(Ey=function(e){(0,De.Z)(t,e);var r=iA(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:oA,fs:sA}),this.shaderModuleService.getModule("sepia-pass")}}]),t}(jh))||Ey),Sy,Ay,Ty,wy,av,Cy,lA=(Sy=(0,gt.b2)(),Ay=(0,gt.f3)(tt.IRendererService),Ty=(0,gt.zY)(),Sy(wy=(av=function(){function e(){(0,q.Z)(this,e),Fi(this,"rendererService",Cy,this),(0,B.Z)(this,"passes",[]),(0,B.Z)(this,"readFBO",void 0),(0,B.Z)(this,"writeFBO",void 0)}return(0,V.Z)(e,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var t=this.rendererService,n=t.getViewportSize,i=t.createTexture2D,o=n(),s=o.width,l=o.height;return i({x:0,y:0,width:s,height:l,copy:!0})}},{key:"getReadFBOTex",value:function(){var t=this,n=this.rendererService.useFramebuffer;return new Promise(function(i){n(t.readFBO,(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:i(t.getCurrentFBOTex());case 1:case"end":return l.stop()}},o)})))})}},{key:"renderBloomPass",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){var s,l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,this.getReadFBOTex();case 2:s=v.sent,l=0;case 4:if(!(l<4)){v.next=11;break}return v.next=7,o.render(i,s);case 7:this.swap(),l++,v.next=4;break;case 11:case"end":return v.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){var r=(0,Ct.Z)(me().mark(function n(i){var o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o=0;case 1:if(!(o0;)t=t+n*(i%r),i=Math.floor(i/r),n=n/r;return t}var gA=1,_A=(Iy=(0,gt.b2)(),Py=(0,gt.f3)(tt.IShaderModuleService),Iy(Oy=(D0=function(e){(0,De.Z)(t,e);var r=pA(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=1&&(v(this.copyRenderTarget,function(){o.outputModel.draw({uniforms:{u_Texture:o.outputRenderTarget}})}),v(i.multiPassRenderer.getPostProcessor().getReadFBO(),function(){o.copyModel.draw({uniforms:{u_Texture:o.copyRenderTarget}})}),i.multiPassRenderer.getPostProcessor().render(i));var oe=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=oe,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(i,o,s){this.shaderModuleService.registerModule(i,{vs:mA,fs:o});var l=this.shaderModuleService.getModule(i),f=l.vs,v=l.fs,y=l.uniforms,b=this.rendererService,T=b.createAttribute,M=b.createBuffer,O=b.createModel;return O((0,H.Z)({vs:f,fs:v,attributes:{a_Position:T({buffer:M({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,H.Z)({},y),depth:{enable:!1},count:3},s))}}]),t}(vg),Dy=Oi(D0.prototype,"shaderModuleService",[Py],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D0))||Oy),um=new gt.W2;um.bind(tt.IGlobalConfigService).to(Xa).inSingletonScope(),(0,gt.GW)((0,gt.b2)(),no.EventEmitter),um.bind(tt.IEventEmitter).to(no.EventEmitter);var By=(0,pr.Z)(um,!1),k0=function(r){var t=By.lazyInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},WB=function(r){var t=By.lazyMultiInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},jl=um,yA=0;function xA(){var e=new gt.W2;return e.parent=um,e.bind(tt.SceneID).toConstantValue("".concat(yA++)),e.bind(tt.IShaderModuleService).to(tS).inSingletonScope(),e.bind(tt.ILayerService).to(Zs).inSingletonScope(),e.bind(tt.IDebugService).to(ts).inSingletonScope(),e.bind(tt.ISceneService).to(sg).inSingletonScope(),e.bind(tt.ICameraService).to(or).inSingletonScope(),e.bind(tt.ICoordinateSystemService).to(xp).inSingletonScope(),e.bind(tt.IInteractionService).to(N).inSingletonScope(),e.bind(tt.IPickingService).to(zn).inSingletonScope(),e.bind(tt.IControlService).to(ri).inSingletonScope(),e.bind(tt.IMarkerService).to(dl).inSingletonScope(),e.bind(tt.IIconService).to(rt).inSingletonScope(),e.bind(tt.IFontService).to(Se).inSingletonScope(),e.bind(tt.IPopupService).to(Vd).inSingletonScope(),e.bind(tt.INormalPass).to(aS).whenTargetNamed("clear"),e.bind(tt.INormalPass).to(fS).whenTargetNamed("pixelPicking"),e.bind(tt.INormalPass).to(hA).whenTargetNamed("render"),e.bind(tt.INormalPass).to(_A).whenTargetNamed("taa"),e.bind(tt.IFactoryNormalPass).toFactory(function(r){return function(t){return r.container.getNamed(tt.INormalPass,t)}}),e.bind(tt.IPostProcessingPass).to(VS).whenTargetNamed("copy"),e.bind(tt.IPostProcessingPass).to(xS).whenTargetNamed("bloom"),e.bind(tt.IPostProcessingPass).to(wS).whenTargetNamed("blurH"),e.bind(tt.IPostProcessingPass).to(OS).whenTargetNamed("blurV"),e.bind(tt.IPostProcessingPass).to(nA).whenTargetNamed("noise"),e.bind(tt.IPostProcessingPass).to(uA).whenTargetNamed("sepia"),e.bind(tt.IPostProcessingPass).to(LS).whenTargetNamed("colorHalftone"),e.bind(tt.IPostProcessingPass).to(XS).whenTargetNamed("hexagonalPixelate"),e.bind(tt.IPostProcessingPass).to(QS).whenTargetNamed("ink"),e.bind(tt.IFactoryPostProcessingPass).toFactory(function(r){return function(t){var n=r.container.getNamed(tt.IPostProcessingPass,t);return n.setName(t),n}}),e}function lm(e){var r=new gt.W2;return r.parent=e,r.bind(tt.IStyleAttributeService).to(ws).inSingletonScope(),r.bind(tt.IMultiPassRenderer).to(uS).inSingletonScope(),r.bind(tt.IPostProcessor).to(lA).inSingletonScope(),r}var bA=null;function GB(e){return bA.indexOf(e)}var Ly=ii.clamp,EA=2,XB=4,SA=64,$B=128,AA=256,TA=512,YB=8192,qB=16384,KB=32768,wA=null,Ny=131072,QB=262144,CA=524288,JB=1048576,RA=2097152,eL=4194304,MA=8388608,IA=16777216,PA=null;function mg(e,r){return e=Ly(Math.floor(e),0,255),r=Ly(Math.floor(r),0,255),256*e+r}function tL(e){var r=e.color,t=e.radius,n=e.tileX,i=e.tileY,o=e.shape,s=e.opacity,l=e.stroke,f=e.strokeWidth,v=e.strokeOpacity,y=[],b=[],T=[],M=[mg(r[0],r[1]),mg(r[2],r[3])],O=[mg(l[0],l[1]),mg(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(k){var $=_slicedToArray(k,2),G=$[0],oe=$[1];y.push([].concat(M,[(G+1)*MA+(oe+1)*RA+getShapeIndex(o)*Ny+t,(n+512)*CA+(i+512)*SA])),b.push([].concat(O,[f,v])),T.push([s,0,0,0])}),{packedBuffer:y,packedBuffer2:b,packedBuffer3:T}}function rL(e,r){if(e===0&&!r)return 0;if(e===1&&r)return 4294967295;var t=r?1:0,n=Math.floor(e*127);return n*PA+t*IA+n*Ny+t*wA+n*TA+t*AA+n*EA+t}var vd={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Rs={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},to=function(e){return e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging",e}({}),ov=function(e){return e.CONSTANT="constant",e.VARIABLE="variable",e}({}),fn=function(e){return e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform",e}({}),OA=["mapload","mapchange","mapAfterFrameChange"],gg=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Eu=function(e){return e.IMAGE="image",e.CUSTOMIMAGE="customImage",e.ARRAYBUFFER="arraybuffer",e.RGB="rgb",e.TERRAINRGB="terrainRGB",e.CUSTOMRGB="customRGB",e.CUSTOMARRAYBUFFER="customArrayBuffer",e.CUSTOMTERRAINRGB="customTerrainRGB",e}({}),DA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n,i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(f,v){n({x:t.x,y:t.y,z:t.z},function(y,b){if(y||b.length===0){v(y);return}b&&Xr([{data:b,bands:[0]}],i,o,function(T,M){T?v(T):M&&f(M)})})}));case 1:case"end":return l.stop()}},r)}));return function(t,n,i,o){return e.apply(this,arguments)}}(),kA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(function(s,l){n({x:t.x,y:t.y,z:t.z},function(f,v){if(f||!v){l(f);return}v instanceof ArrayBuffer?cu(v,function(y,b){y&&l(y),s(b)}):v instanceof HTMLImageElement?s(v):l(f)})}));case 1:case"end":return o.stop()}},r)}));return function(t,n){return e.apply(this,arguments)}}();function FA(e,r){return Array.isArray(e)?typeof e[0]=="string"?e.map(function(t){return h(t,r)}):e.map(function(t){return{url:h(t.url,r),bands:t.bands||[0]}}):h(e,r)}function BA(e){return typeof e=="string"?[{url:e,bands:[0]}]:typeof e[0]=="string"?e.map(function(r){return{url:r,bands:[0]}}):e}function Uy(e,r){e.xhrCancel=function(){r.map(function(t){t.abort()})}}var LA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n,i,o,s){var l,f,v,y,b,T;return me().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(l=BA(n.url),!(l.length>1)){O.next=15;break}return O.next=4,NA(l,n);case 4:if(f=O.sent,v=f.rasterFiles,y=f.xhrList,b=f.errList,Uy(t,y),!(b.length>0)){O.next=12;break}return i(b,null),O.abrupt("return");case 12:Xr(v,o,s,i),O.next=17;break;case 15:T=Si(n,function(k,$){if(k)i(k);else if($){var G=[{data:$,bands:l[0].bands}];Xr(G,o,s,i)}}),Uy(t,[T]);case 17:case"end":return O.stop()}},r)}));return function(t,n,i,o,s){return e.apply(this,arguments)}}();function NA(e,r){return F0.apply(this,arguments)}function F0(){return F0=(0,Ct.Z)(me().mark(function e(r,t){var n,i,o,s,l,f,v,y,b,T,M;return me().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:n=[],i=[],o=[],s=0;case 4:if(!(s1&&arguments[1]!==void 0?arguments[1]:{};if(ZA(e))throw new Error("tile server url is error");var t=(r==null?void 0:r.dataType)||Eu.IMAGE;t===Eu.RGB&&(t=Eu.ARRAYBUFFER);var n=function(s,l){switch(t){case Eu.IMAGE:return zy(e,s,l,r);case Eu.CUSTOMIMAGE:case Eu.CUSTOMTERRAINRGB:return kA(l,r==null?void 0:r.getCustomData);case Eu.ARRAYBUFFER:return UA(e,s,l,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);case Eu.CUSTOMARRAYBUFFER:case Eu.CUSTOMRGB:return DA(l,r==null?void 0:r.getCustomData,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);default:return zy(e,s,l,r)}},i=(0,H.Z)((0,H.Z)((0,H.Z)({},zA),r),{},{getTileData:n});return{data:e,dataArray:[],tilesetOptions:i,isTile:!0}}var jA=["extent","min","max","width","height","format","operation"];function HA(e,r){var t=r.extent,n=r.min,i=r.max,o=r.width,s=r.height,l=r.format,f=r.operation,v=(0,Fa.Z)(r,jA),y;if(l===void 0||gf(e))y=Array.from(e);else{var b=Array.isArray(e)?e:[e];y=tn(b,l,f)}var T={_id:1,dataArray:[(0,H.Z)((0,H.Z)({_id:1,data:y,width:o,height:s},v),{},{min:n,max:i,coordinates:[[t[0],t[1]],[t[2],t[3]]]})]};return T}var WA={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},GA=function(){var e=(0,Ct.Z)(me().mark(function r(t){return me().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(o){var s=(0,yn.Z)(t.bounds,4),l=s[0],f=s[1],v=s[2],y=s[3],b={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(l+v)/2,y:(f+y)/2},geometry:{type:"LineString",coordinates:[[v,y],[v,f],[l,f],[l,f]]}}]}}};o(b)}));case 1:case"end":return i.stop()}},r)}));return function(t){return e.apply(this,arguments)}}();function XA(e,r){var t=function(o){return GA(o)},n=(0,H.Z)((0,H.Z)((0,H.Z)({},WA),r),{},{getTileData:t});return{data:e,dataArray:[],tilesetOptions:n,isTile:!0}}var $A=L(48096),YA=L.n($A);function Vy(e,r){var t=r.radius,n=t===void 0?40:t,i=r.maxZoom,o=i===void 0?18:i,s=r.minZoom,l=s===void 0?0:s,f=r.zoom,v=f===void 0?2:f;if(e.pointIndex){var y=e.pointIndex.getClusters(e.extent,Math.floor(v));return e.dataArray=qA(y),e}var b=new(YA())({radius:n,minZoom:l,maxZoom:o}),T={type:"FeatureCollection",features:[]};return T.features=e.dataArray.map(function(M){return{type:"Feature",geometry:{type:"Point",coordinates:M.coordinates},properties:(0,H.Z)({},M)}}),b.load(T.features),b}function qA(e){return e.map(function(r,t){return(0,H.Z)({coordinates:r.geometry.coordinates,_id:t+1},r.properties)})}function KA(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r}function QA(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;t=Math.abs(e[i])?t+=r-n+e[i]:t+=e[i]-n+r,r=n;return r+t*1}function JA(e){if(e.length===0)throw new Error("mean requires at least one data point");return jy(e)/e.length}var eT={min:QA,max:KA,mean:JA,sum:jy};function tT(e){var r=rT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function rT(){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(e){return!1}}var nT=ii.cloneDeep,Hy=ii.isFunction,iT=ii.isString,aT=ii.mergeWith;function oT(e,r){if(Array.isArray(r))return r}var sT=function(e){(0,De.Z)(t,e);var r=tT(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"type","source"),(0,B.Z)((0,Ie.Z)(o),"isTile",!1),(0,B.Z)((0,Ie.Z)(o),"inited",!1),(0,B.Z)((0,Ie.Z)(o),"hooks",{init:new xu}),(0,B.Z)((0,Ie.Z)(o),"parser",{type:"geojson"}),(0,B.Z)((0,Ie.Z)(o),"transforms",[]),(0,B.Z)((0,Ie.Z)(o),"cluster",!1),(0,B.Z)((0,Ie.Z)(o),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,B.Z)((0,Ie.Z)(o),"invalidExtent",!1),(0,B.Z)((0,Ie.Z)(o),"dataArrayChanged",!1),(0,B.Z)((0,Ie.Z)(o),"cfg",{autoRender:!0}),o.originData=n,o.initCfg(i),o.init().then(function(){o.inited=!0,o.emit("update",{type:"inited"})}),o}return(0,V.Z)(t,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(i){return this.clusterIndex.getClusters(this.caculClusterExtent(2),i)}},{key:"getClustersLeaves",value:function(i){return this.clusterIndex.getLeaves(i,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(i){var o=this,s=this.clusterOptions,l=s.method,f=l===void 0?"sum":l,v=s.field,y=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(i));this.clusterOptions.zoom=i,y.forEach(function(b){b.id||(b.properties.point_count=1)}),(v||Hy(f))&&(y=y.map(function(b){var T=b.id;if(T){var M=o.clusterIndex.getLeaves(T,1/0),O=M.map(function(G){return G.properties}),k;if(iT(f)&&v){var $=mf(O,v);k=eT[f]($)}Hy(f)&&(k=f(O)),b.properties.stat=k}else b.properties.point_count=1;return b})),this.data=he("geojson")({type:"FeatureCollection",features:y}),this.executeTrans()}},{key:"getFeatureById",value:function(i){var o=this.parser,s=o.type,l=s===void 0?"geojson":s,f=o.geometry;if(l==="geojson"&&!this.cluster){var v=i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lT(e,r){if(e){if(typeof e=="string")return Gy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Gy(e,r)}}function Gy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tn?i:n)}}catch(ye){o.e(ye)}finally{o.f()}var f=(t+n)/2,v=hT(r,f);if(v.xOffset<=0||v.yOffset<=0)return{gridHash:{},gridOffset:v};var y={},b=Wy(e),T;try{for(b.s();!(T=b.n()).done;){var M=T.value,O=M.coordinates[1],k=M.coordinates[0];if(Number.isFinite(O)&&Number.isFinite(k)){var $=Math.floor((O+90)/v.yOffset),G=Math.floor((k+180)/v.xOffset),oe="".concat($,"-").concat(G);y[oe]=y[oe]||{count:0,points:[]},y[oe].count+=1,y[oe].points.push(M)}}}catch(ye){b.e(ye)}finally{b.f()}return{gridHash:y,gridOffset:v}}function hT(e,r){var t=pT(e),n=dT(r,e);return{yOffset:t,xOffset:n}}function pT(e){return e/B0*(180/Math.PI)}function dT(e,r){return r/B0*(180/Math.PI)/Math.cos(e*Math.PI/180)}function vT(e,r,t){return Object.keys(e).reduce(function(n,i,o){var s=i.split("-"),l=parseInt(s[0],10),f=parseInt(s[1],10),v={};if(t.field&&t.method){var y=lf(e[i].points,t.field);v[t.method]=Il[t.method](y)}return Object.assign(v,{_id:o,coordinates:ko([-180+r.xOffset*(f+.5),-90+r.yOffset*(l+.5)]),rawData:e[i].points,count:e[i].count}),n.push(v),n},[])}var sv=Math.PI/3,mT=[0,sv,2*sv,3*sv,4*sv,5*sv];function gT(e){return e[0]}function _T(e){return e[1]}function yT(){var e=0,r=0,t=1,n=1,i=gT,o=_T,s,l,f;function v(b){var T={},M=[],O,k=b.length;for(O=0;O1){var ut=G-Le,vt=Le+(GJt*Jt+Mr*Mr&&(Le=vt+(ye&1?1:-1)/2,ye=Rt)}var br=Le+"-"+ye,pn=T[br];pn?pn.push($):(M.push(pn=T[br]=[$]),pn.x=(Le+(ye&1)/2)*l,pn.y=ye*f)}return M}function y(b){var T=0,M=0;return mT.map(function(O){var k=Math.sin(O)*b,$=-Math.cos(O)*b,G=k-T,oe=$-M;return T=k,M=$,[G,oe]})}return v.hexagon=function(b){return"m"+y(b==null?s:+b).join("l")+"z"},v.centers=function(){for(var b=[],T=Math.round(r/f),M=Math.round(e/l),O=T*f;O180||Math.abs(O[1][0])>180){if(y.x>M){var k=this.mapsService.lngLatToContainer([f-360,v]);y.x=k.x}if(y.x<0){var $=this.mapsService.lngLatToContainer([f+360,v]);y.x=$.x}}(y.x>M||y.x<0||y.y>T||y.y<0)&&(o.style.display="none"),o.style.left=y.x+s[0]+"px",o.style.top=y.y-s[1]+"px"}}}},{key:"init",value:function(){var i=this,o=this.markerOption.element,s=this.markerOption,l=s.color,f=s.anchor;if(!o){this.defaultMarker=!0,o=Ji("div"),this.markerOption.element=o;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttributeNS(null,"display","block"),v.setAttributeNS(null,"height","48px"),v.setAttributeNS(null,"width","48px"),v.setAttributeNS(null,"viewBox","0 0 1024 1024");var y=document.createElementNS("http://www.w3.org/2000/svg","path");y.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"),y.setAttributeNS(null,"fill",l),v.appendChild(y),o.appendChild(v)}fu(o,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(b){var T,M,O=((T=i.markerOption)===null||T===void 0?void 0:T.style)&&((M=i.markerOption)===null||M===void 0?void 0:M.style[b]);o&&(o.style[b]=O)}),$l(o,f,"marker")}},{key:"registerMarkerEvent",value:function(i){i.addEventListener("click",this.onMapClick),i.addEventListener("mousemove",this.eventHandle),i.addEventListener("click",this.eventHandle),i.addEventListener("mousedown",this.eventHandle),i.addEventListener("mouseup",this.eventHandle),i.addEventListener("dblclick",this.eventHandle),i.addEventListener("contextmenu",this.eventHandle),i.addEventListener("mouseover",this.eventHandle),i.addEventListener("mouseout",this.eventHandle),i.addEventListener("touchstart",this.eventHandle),i.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var i=this.getElement();i.removeEventListener("click",this.onMapClick),i.removeEventListener("mousemove",this.eventHandle),i.removeEventListener("click",this.eventHandle),i.removeEventListener("mousedown",this.eventHandle),i.removeEventListener("mouseup",this.eventHandle),i.removeEventListener("dblclick",this.eventHandle),i.removeEventListener("contextmenu",this.eventHandle),i.removeEventListener("mouseover",this.eventHandle),i.removeEventListener("mouseout",this.eventHandle),i.removeEventListener("touchstart",this.eventHandle),i.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(i){!this.mapsService||this.mapsService.version!=="GAODE2.x"||ec()||(i.type==="touchstart"&&(this.touchStartTime=Date.now()),i.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:i,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(i){return null}},{key:"onUp",value:function(i){throw new Error("Method not implemented.")}}]),t}(no.EventEmitter);function iL(e){var r=CT();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function CT(){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(e){return!1}}var aL=ii.merge,oL=null,sL=L(18735);function RT(e){var r=MT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function MT(){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(e){return!1}}var uv=function(e){(0,De.Z)(t,e);var r=RT(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this),t.controlCount++,i.controlOption=(0,H.Z)((0,H.Z)({},i.getDefault(n)),n||{}),i}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(i){var o=this.getDefault(i);Object.entries(i).forEach(function(s){var l=(0,yn.Z)(s,2),f=l[0],v=l[1];v===void 0&&(i[f]=o[f])}),"position"in i&&this.setPosition(i.position),"className"in i&&this.setClassName(i.className),"style"in i&&this.setStyle(i.style),this.controlOption=(0,H.Z)((0,H.Z)({},this.controlOption),i)}},{key:"addTo",value:function(i){this.mapsService=i.get(tt.IMapService),this.renderService=i.get(tt.IRendererService),this.layerService=i.get(tt.ILayerService),this.controlService=i.get(tt.IControlService),this.configService=i.get(tt.IGlobalConfigService),this.scene=i.get(tt.ISceneService),this.sceneContainer=i,this.isShow=!0,this.container=this.onAdd(),fu(this.container,"l7-control");var o=this.controlOption,s=o.className,l=o.style;return s&&this.setClassName(s),l&&this.setStyle(l),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Ci(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Ji("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var i=this.container;Du(i,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var i=this.container;fu(i,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(i){return{position:_r.TOPRIGHT,name:"".concat(t.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(i){if(this.mapsService&&i&&i.screenX>0&&i.screenY>0){var o=this.mapsService.getContainer();o!==null&&o.focus()}}},{key:"setPosition",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r.TOPLEFT,o=this.controlService;return o&&o.removeControl(this),this.controlOption.position=i,o&&o.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(i){var o=this.container,s=this.controlOption.className;s&&Du(o,s),i&&fu(o,i)}},{key:"setStyle",value:function(i){var o=this.container;i?o.setAttribute("style",i):o.removeAttribute("style")}},{key:"insertContainer",value:function(){var i=this.controlOption.position,o=this.container;if(i instanceof Element)i.appendChild(o);else{var s=this.controlService.controlCorners[i];["bottomleft","bottomright","righttop","rightbottom"].includes(i)?s.insertBefore(o,s.firstChild):s.appendChild(o)}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(vu());(0,B.Z)(uv,"controlCount",0);function IT(e){var r=PT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var _g=function(e){(0,De.Z)(t,e);var r=IT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:"";return Ji("button","l7-button-control ".concat(i))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var i=this.controlOption,o=i.title,s=i.btnText,l=i.btnIcon;return this.setBtnTitle(o),this.setBtnText(s),this.setBtnIcon(l),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(i){var o=i.title,s=i.btnText,l=i.btnIcon;this.checkUpdateOption(i,["title"])&&this.setBtnTitle(o),this.checkUpdateOption(i,["btnIcon"])&&this.setBtnIcon(l),this.checkUpdateOption(i,["btnText"])&&this.setBtnText(s),Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"setBtnTitle",value:function(i){var o;(o=this.button)===null||o===void 0||o.setAttribute("title",i!=null?i:"")}},{key:"setBtnIcon",value:function(i){if(this.buttonIcon&&Ci(this.buttonIcon),i){var o,s=(o=this.button)===null||o===void 0?void 0:o.firstChild;if(s){var l;(l=this.button)===null||l===void 0||l.insertBefore(i,s)}else{var f;(f=this.button)===null||f===void 0||f.appendChild(i)}this.buttonIcon=i}}},{key:"setBtnText",value:function(i){if(this.button)if(Du(this.button,"l7-button-control--row"),Du(this.button,"l7-button-control--column"),i){var o=this.buttonText;if(!o){var s;o=Ji("div","l7-button-control__text"),(s=this.button)===null||s===void 0||s.appendChild(o),this.buttonText=o}o.innerText=i,fu(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!i&&this.buttonText&&(Ci(this.buttonText),this.buttonText=void 0)}}]),t}(uv);function OT(e){var r=DT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function DT(){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(e){return!1}}var $y=function(e){(0,De.Z)(t,e);var r=OT(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"isShow",!1),(0,B.Z)((0,Ie.Z)(o),"timeout",null),(0,B.Z)((0,Ie.Z)(o),"show",function(){return o.isShow||!o.contentDOM.innerHTML||(o.resetPopperPosition(),Du(o.popperDOM,"l7-popper-hide"),o.isShow=!0,o.option.unique&&t.conflictPopperList.forEach(function(s){s!==(0,Ie.Z)(o)&&s.isShow&&s.hide()}),o.emit("show"),window.addEventListener("pointerdown",o.onPopperUnClick)),(0,Ie.Z)(o)}),(0,B.Z)((0,Ie.Z)(o),"hide",function(){return o.isShow&&(fu(o.popperDOM,"l7-popper-hide"),o.isShow=!1,o.emit("hide"),window.removeEventListener("pointerdown",o.onPopperUnClick)),(0,Ie.Z)(o)}),(0,B.Z)((0,Ie.Z)(o),"setHideTimeout",function(){o.timeout||(o.timeout=window.setTimeout(function(){o.isShow&&(o.hide(),o.timeout=null)},300))}),(0,B.Z)((0,Ie.Z)(o),"clearHideTimeout",function(){o.timeout&&(window.clearTimeout(o.timeout),o.timeout=null)}),(0,B.Z)((0,Ie.Z)(o),"onBtnClick",function(){o.isShow?o.hide():o.show()}),(0,B.Z)((0,Ie.Z)(o),"onPopperUnClick",function(s){Tl(s.target,[".l7-button-control",".l7-popper-content"])||o.hide()}),(0,B.Z)((0,Ie.Z)(o),"onBtnMouseLeave",function(){o.setHideTimeout()}),(0,B.Z)((0,Ie.Z)(o),"onBtnMouseMove",function(){o.clearHideTimeout(),!o.isShow&&o.show()}),o.button=n,o.option=i,o.init(),i.unique&&t.conflictPopperList.push((0,Ie.Z)(o)),o}return(0,V.Z)(t,[{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(i){typeof i=="string"?this.contentDOM.innerHTML=i:i instanceof HTMLElement&&(ca(this.contentDOM),this.contentDOM.appendChild(i)),this.content=i}},{key:"init",value:function(){var i=this.option.trigger;this.popperDOM=this.createPopper(),i==="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),Ci(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var i={},o=this.option,s=o.container,l=o.offset,f=l===void 0?[0,0]:l,v=o.placement,y=(0,yn.Z)(f,2),b=y[0],T=y[1],M=this.button.getBoundingClientRect(),O=s.getBoundingClientRect(),k=gh(M,O),$=k.left,G=k.right,oe=k.top,ye=k.bottom,Le=!1,$e=!1;/^(left|right)/.test(v)?(v.includes("left")?i.right="".concat(M.width+G,"px"):v.includes("right")&&(i.left="".concat(M.width+$,"px")),v.includes("start")?i.top="".concat(oe,"px"):v.includes("end")?i.bottom="".concat(ye,"px"):(i.top="".concat(oe+M.height/2,"px"),$e=!0,i.transform="translate(".concat(b,"px, calc(").concat(T,"px - 50%))"))):/^(top|bottom)/.test(v)&&(v.includes("top")?i.bottom="".concat(M.height+ye,"px"):v.includes("bottom")&&(i.top="".concat(M.height+oe,"px")),v.includes("start")?i.left="".concat($,"px"):v.includes("end")?i.right="".concat(G,"px"):(i.left="".concat($+M.width/2,"px"),Le=!0,i.transform="translate(calc(".concat(b,"px - 50%), ").concat(T,"px)"))),i.transform="translate(calc(".concat(b,"px - ").concat(Le?"50%":"0%","), calc(").concat(T,"px - ").concat($e?"50%":"0%",")");var ut=v.split("-");ut.length&&fu(this.popperDOM,ut.map(function(vt){return"l7-popper-".concat(vt)}).join(" ")),Qs(this.popperDOM,rl(i))}},{key:"createPopper",value:function(){var i=this.option,o=i.container,s=i.className,l=s===void 0?"":s,f=i.content,v=Ji("div","l7-popper l7-popper-hide ".concat(l)),y=Ji("div","l7-popper-content"),b=Ji("div","l7-popper-arrow");return v.appendChild(y),v.appendChild(b),o.appendChild(v),this.popperDOM=v,this.contentDOM=y,f&&this.setContent(f),v}}]),t}(no.EventEmitter);(0,B.Z)($y,"conflictPopperList",[]);function kT(e){var r=FT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function FT(){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(e){return!1}}var BT={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"},LT=function(e){(0,De.Z)(t,e);var r=kT(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Ra((0,be.Z)(t.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(i){var o,s=Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i),l=(o=i==null?void 0:i.position)!==null&&o!==void 0?o:s.position;return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{popperPlacement:l instanceof Element?"bottom":BT[l],popperTrigger:"click"})}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return this.initPopper(),i}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var i=this,o=this.controlOption,s=o.popperClassName,l=o.popperPlacement,f=o.popperTrigger,v=this.mapsService.getMapContainer();return this.popper=new $y(this.button,{className:s,placement:l,trigger:f,container:v,unique:!0}),this.popper.on("show",function(){i.emit("popperShow",i)}).on("hide",function(){i.emit("popperHide",i)}),this.popper}},{key:"setOptions",value:function(i){if(Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["popperPlacement","popperTrigger","popperClassName"])){var o=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(o)}}}]),t}(_g);function NT(e){var r=UT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function UT(){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(e){return!1}}var Rp=function(e){return e.ActiveOptionClassName="l7-select-control-item-active",e.OptionValueAttrKey="data-option-value",e.OptionIndexAttrKey="data-option-index",e}(Rp||{}),Yy=function(e){(0,De.Z)(t,e);var r=NT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s-1?n.selectValue.splice(f,1):n.selectValue=[].concat((0,Wt.Z)(n.selectValue),[l.value])}else n.selectValue=[l.value];n.setSelectValue(n.selectValue)}),n}return(0,V.Z)(t,[{key:"setOptions",value:function(i){Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i);var o=i.options;o&&this.popper.setContent(this.getPopperContent(o))}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this),o=this.controlOption.defaultValue;return o&&(this.selectValue=this.transSelectValue(o)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),i}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.transSelectValue(i);this.optionDOMList.forEach(function(f){var v=f.getAttribute(Rp.OptionValueAttrKey),y=o.getIsMultiple()?f.querySelector("input[type=checkbox]"):void 0;l.includes(v)?(fu(f,Rp.ActiveOptionClassName),y&&Ql(y,!0)):(Du(f,Rp.ActiveOptionClassName),y&&Ql(y,!1))}),this.selectValue=l,s&&this.emit("selectChange",this.getIsMultiple()?l:l[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(i){var o=this,s=this.isImageOptions(),l=Ji("div",s?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&fu(l,"l7-select-control--multiple");var f=i.map(function(v,y){var b=s?o.createImageOption(v):o.createNormalOption(v);return b.setAttribute(Rp.OptionValueAttrKey,v.value),b.setAttribute(Rp.OptionIndexAttrKey,window.String(y)),b.addEventListener("click",o.onItemClick.bind(o,v)),b});return l.append.apply(l,(0,Wt.Z)(f)),this.optionDOMList=f,l}},{key:"createImageOption",value:function(i){var o=this.selectValue.includes(i.value),s=Ji("div","l7-select-control-item ".concat(o?Rp.ActiveOptionClassName:"")),l=Ji("img");l.setAttribute("src",i.img),tf(l),s.appendChild(l);var f=Ji("div","l7-select-control-item-row");this.getIsMultiple()&&s.appendChild(this.createCheckbox(o));var v=Ji("span");return v.innerText=i.text,f.appendChild(v),s.appendChild(f),s}},{key:"createCheckbox",value:function(i){var o=Ji("input");return o.setAttribute("type","checkbox"),i&&Ql(o,!0),o}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(i){return i.img})}},{key:"transSelectValue",value:function(i){return Array.isArray(i)?i:[i]}}]),t}(LT),Hh=function(r){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.classList.add("l7-iconfont"),t.setAttribute("aria-hidden","true");var n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(r)),t.appendChild(n),t};function zT(e){var r=ZT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ZT(){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(e){return!1}}var VT=function(e){(0,De.Z)(t,e);var r=zT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function HT(e,r){if(e){if(typeof e=="string")return qy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qy(e,r)}}function qy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:document.documentElement,t=arguments.length>1?arguments[1]:void 0;return new Promise(function(n,i){var o=function l(){xc.off("change",l),n()};xc.on("change",o);var s=r[Wh.requestFullscreen](t);s instanceof Promise&&s.then(o).catch(i)})},exit:function(){return new Promise(function(r,t){if(!xc.isFullscreen){r();return}var n=function o(){xc.off("change",o),r()};xc.on("change",n);var i=document[Wh.exitFullscreen]();i instanceof Promise&&i.then(n).catch(t)})},toggle:function(r,t){return xc.isFullscreen?xc.exit():xc.request(r,t)},onchange:function(r){xc.on("change",r)},onerror:function(r){xc.on("error",r)},on:function(r,t){var n=Qy[r];n&&document.addEventListener(n,t,!1)},off:function(r,t){var n=Qy[r];n&&document.removeEventListener(n,t,!1)},raw:Wh};Object.defineProperties(xc,{isFullscreen:{get:function(){return!!document[Wh.fullscreenElement]}},element:{enumerable:!0,get:function(){var r;return(r=document[Wh.fullscreenElement])!==null&&r!==void 0?r:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Wh.fullscreenEnabled]}}}),Wh||(xc={isEnabled:!1});var L0=xc;function WT(e){var r=GT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function GT(){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(e){return!1}}var XT=function(e){(0,De.Z)(t,e);var r=WT(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Ie.Z)(i),"isFullscreen",!1),(0,B.Z)((0,Ie.Z)(i),"toggleFullscreen",(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!L0.isEnabled){l.next=3;break}return l.next=3,L0.toggle(i.mapContainer);case 3:case"end":return l.stop()}},o)}))),(0,B.Z)((0,Ie.Z)(i),"onClick",function(){i.toggleFullscreen()}),(0,B.Z)((0,Ie.Z)(i),"onFullscreenChange",function(){i.isFullscreen=!!document.fullscreenElement;var o=i.controlOption,s=o.btnText,l=o.btnIcon,f=o.title,v=o.exitBtnText,y=o.exitBtnIcon,b=o.exitTitle;i.isFullscreen?(i.setBtnTitle(b),i.setBtnText(v),i.setBtnIcon(y)):(i.setBtnTitle(f),i.setBtnText(s),i.setBtnIcon(l)),i.emit("fullscreenChange",i.isFullscreen)}),L0.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),i}return(0,V.Z)(t,[{key:"setOptions",value:function(i){var o=i.exitBtnText,s=i.exitBtnIcon,l=i.exitTitle;this.isFullscreen&&(this.checkUpdateOption(i,["exitBtnIcon"])&&this.setBtnIcon(s),this.checkUpdateOption(i,["exitBtnText"])&&this.setBtnText(o),this.checkUpdateOption(i,["exitTitle"])&&this.setBtnTitle(l)),Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),this.mapContainer=Os(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),i}},{key:"onRemove",value:function(){Ra((0,be.Z)(t.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5168\u5C4F",btnIcon:Hh("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Hh("l7-icon-exit-fullscreen")})}}]),t}(_g);function $T(e){var r=YT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function YT(){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(e){return!1}}var qT=function(e){(0,De.Z)(t,e);var r=$T(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Ie.Z)(i),"getGeoLocation",function(){return new Promise(function(o,s){window.navigator.geolocation.getCurrentPosition(function(l){var f=l.coords,v=f!=null?f:{},y=v.longitude,b=v.latitude;!isNaN(y)&&!isNaN(b)?o([y,b]):s()},function(l){s(l)})})}),(0,B.Z)((0,Ie.Z)(i),"onClick",(0,Ct.Z)(me().mark(function o(){var s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(window.navigator.geolocation){y.next=2;break}return y.abrupt("return");case 2:return s=i.controlOption.transform,y.next=5,i.getGeoLocation();case 5:if(l=y.sent,f=i.mapsService.getZoom(),y.t0=i.mapsService,y.t1=f>15?f:15,!s){y.next=15;break}return y.next=12,s(l);case 12:y.t2=y.sent,y.next=16;break;case 15:y.t2=l;case 16:y.t3=y.t2,y.t0.setZoomAndCenter.call(y.t0,y.t1,y.t3);case 18:case"end":return y.stop()}},o)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),i}return(0,V.Z)(t,[{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5B9A\u4F4D",btnIcon:Hh("l7-icon-reposition")})}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),i}}]),t}(_g);function KT(e){var r=QT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function QT(){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(e){return!1}}function Jy(e){return Object.keys(e!=null?e:{}).every(function(r){return["layer","name","img"].includes(r)})}var e1=function(e){(0,De.Z)(t,e);var r=KT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=10?10:s>=5?5:s>=3?3:s>=2?2:1,o*s}},{key:"updateMetric",value:function(i){var o=this.getRoundNum(i),s=o<1e3?o+" m":o/1e3+" km";this.updateScale(this.mScale,s,o/i)}},{key:"updateImperial",value:function(i){var o=i*3.2808399,s,l,f;o>5280?(s=o/5280,l=this.getRoundNum(s),this.updateScale(this.iScale,l+" mi",l/s)):(f=this.getRoundNum(o),this.updateScale(this.iScale,f+" ft",f/o))}}]),t}(uv);function hw(e){var r=pw();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function pw(){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(e){return!1}}var dw=function(e){(0,De.Z)(t,e);var r=hw(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;sn.mapsService.getMinZoom()&&n.mapsService.zoomOut()}),(0,B.Z)((0,Ie.Z)(n),"updateDisabled",function(){var l=n.mapsService;n.zoomInButton.removeAttribute("disabled"),n.zoomOutButton.removeAttribute("disabled"),(n.disabled||l.getZoom()<=l.getMinZoom())&&n.zoomOutButton.setAttribute("disabled","true"),n.controlOption.showZoom&&n.zoomNumDiv&&(n.zoomNumDiv.innerText=String(Math.floor(l.getZoom()))),(n.disabled||l.getZoom()>=l.getMaxZoom())&&n.zoomInButton.setAttribute("disabled","true")}),n}return(0,V.Z)(t,[{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{position:_r.BOTTOMRIGHT,name:"zoom",zoomInText:Hh("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Hh("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(i){Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var i=Ji("div","l7-control-zoom");return this.resetButtonGroup(i),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),i}},{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(i){ca(i),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",i,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",i)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",i,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(i,o,s,l,f){var v=Ji("button",s,l);return typeof i=="string"?v.innerHTML=i:v.append(i),v.title=o,f&&v.addEventListener("click",f),v}}]),t}(uv);function vw(e){var r=mw();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function mw(){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(e){return!1}}var r1=function(e){(0,De.Z)(t,e);var r=vw(t);function t(n){var i;(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"isShow",!0),(0,B.Z)((0,Ie.Z)(i),"onMouseMove",function(s){var l,f=i.mapsService.getMapContainer(),v=(l=f==null?void 0:f.getBoundingClientRect())!==null&&l!==void 0?l:{},y=v.left,b=y===void 0?0:y,T=v.top,M=T===void 0?0:T;i.setPopupPosition(s.clientX-b,s.clientY-M)}),(0,B.Z)((0,Ie.Z)(i),"updateLngLatPosition",function(){if(!(!i.mapsService||i.popupOption.followCursor)){var s=i.lngLat,l=s.lng,f=s.lat,v=i.mapsService.lngLatToContainer([l,f]),y=v.x,b=v.y;i.setPopupPosition(y,b)}}),(0,B.Z)((0,Ie.Z)(i),"onKeyDown",function(s){s.keyCode===27&&i.remove()}),(0,B.Z)((0,Ie.Z)(i),"onCloseButtonClick",function(s){s.stopPropagation&&s.stopPropagation(),i.hide()}),(0,B.Z)((0,Ie.Z)(i),"update",function(){var s=!!i.lngLat,l=i.popupOption,f=l.className,v=l.style,y=l.maxWidth,b=l.anchor,T=l.stopPropagation;if(!(!i.mapsService||!s||!i.content)){var M=i.mapsService.getMarkerContainer();if(!i.container&&M&&(i.container=Ji("div","l7-popup ".concat(f!=null?f:""," ").concat(i.isShow?"":"l7-popup-hide"),M),v&&i.container.setAttribute("style",v),i.tip=Ji("div","l7-popup-tip",i.container),i.container.appendChild(i.content),T&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function($){i.container.addEventListener($,function(G){G.stopPropagation()})}),i.container.style.whiteSpace="nowrap"),i.updateLngLatPosition(),ku(i.container,"".concat(Aa[b])),$l(i.container,b,"popup"),y){var O=i.container.getBoundingClientRect(),k=O.width;k>parseFloat(y)&&(i.container.style.width=y)}else i.container.style.removeProperty("width")}}),i.popupOption=(0,H.Z)((0,H.Z)({},i.getDefault(n!=null?n:{})),n);var o=i.popupOption.lngLat;return o&&(i.lngLat=o),i}return(0,V.Z)(t,[{key:"lngLat",get:function(){var i;return(i=this.popupOption.lngLat)!==null&&i!==void 0?i:{lng:0,lat:0}},set:function(i){this.popupOption.lngLat=i}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(i){this.mapsService=i.get(tt.IMapService),this.sceneService=i.get(tt.ISceneService),this.layerService=i.get(tt.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=i,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var o=this.popupOption,s=o.html,l=o.text,f=o.title;return s?this.setHTML(s):l&&this.setText(l),f&&this.setTitle(f),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Ci(this.content),this.container&&(Ci(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(i){return this.show(),this.popupOption=(0,H.Z)((0,H.Z)({},this.popupOption),i),this.checkUpdateOption(i,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Ci(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(i,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(i,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(i,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(i,["html"])&&i.html?this.setHTML(i.html):this.checkUpdateOption(i,["text"])&&i.text&&this.setText(i.text),this.checkUpdateOption(i,["lngLat"])&&i.lngLat&&this.setLnglat(i.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&&Du(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&fu(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(i){return this.popupOption.html=i,this.setDOMContent(i)}},{key:"setText",value:function(i){return this.popupOption.text=i,this.setDOMContent(window.document.createTextNode(i))}},{key:"setTitle",value:function(i){this.show(),this.popupOption.title=i,i?(this.contentTitle||(this.contentTitle=Ji("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ca(this.contentTitle),np(this.contentTitle,i)):this.contentTitle&&(Ci(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var i=this.lngLat,o=i.lng,s=i.lat;return this.popupOption.autoPan&&this.mapsService.panTo([o,s]),this}},{key:"setLngLat",value:function(i){return this.setLnglat(i)}},{key:"setLnglat",value:function(i){var o=this;return this.show(),this.lngLat=i,Array.isArray(i)&&(this.lngLat={lng:i[0],lat:i[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(){o.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(i){return this.popupOption.maxWidth=i,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(i){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:ma.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(i){return this.show(),this.createContent(),np(this.contentPanel,i),this.update(),this}},{key:"updateCloseOnClick",value:function(i){var o=this,s=this.mapsService;s&&(s==null||s.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!i&&requestAnimationFrame(function(){s==null||s.on("click",o.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(i){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!i&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(i){var o,s=(o=this.mapsService)===null||o===void 0?void 0:o.getContainer();s&&(s==null||s.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!i&&(s==null||s.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var i=this;if(this.content&&Ci(this.content),this.contentTitle=void 0,this.content=Ji("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var o=Hh("l7-icon-guanbi");fu(o,"l7-popup-close-button"),this.content.appendChild(o),this.popupOption.closeButtonOffsets&&(o.style.right=this.popupOption.closeButtonOffsets[0]+"px",o.style.top=this.popupOption.closeButtonOffsets[1]+"px"),o.setAttribute("aria-label","Close popup"),o.addEventListener("click",function(){i.hide()}),o.addEventListener("pointerup",function(s){s.stopPropagation()}),o.addEventListener("pointerdown",function(s){s.stopPropagation()}),this.closeButton=o}else this.closeButton=void 0;this.contentPanel=Ji("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(i,o){if(this.container){var s=this.popupOption.offsets;this.container.style.left=i+s[0]+"px",this.container.style.top=o-s[1]+"px"}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(no.EventEmitter);function uL(e){var r=gw();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function gw(){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(e){return!1}}var lL=ii.get,cL=null;function _w(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}_w(`.l7-marker-container { + position: absolute; + width: 100%; + height: 100%; + overflow: hidden; +} +.l7-marker { + position: absolute !important; + top: 0; + left: 0; + z-index: 5; + cursor: pointer; +} +.l7-marker-cluster { + width: 40px; + height: 40px; + background-color: rgba(181, 226, 140, 0.6); + background-clip: padding-box; + border-radius: 20px; +} +.l7-marker-cluster div { + width: 30px; + height: 30px; + margin-top: 5px; + margin-left: 5px; + font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif; + text-align: center; + background-color: rgba(110, 204, 57, 0.6); + border-radius: 15px; +} +.l7-marker-cluster span { + line-height: 30px; +} +.l7-touch .l7-control-attribution, +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + -webkit-box-shadow: none; + box-shadow: none; +} +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + background-clip: padding-box; + border: 2px solid rgba(0, 0, 0, 0.2); +} +.mapboxgl-ctrl-logo, +.amap-logo { + display: none !important; +} +.l7-select-box { + border: 3px dashed gray; + border-radius: 2px; + position: absolute; + z-index: 999; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +.l7-control-container { + font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif; +} +.l7-control-container .l7-control { + position: relative; + z-index: 999; + float: left; + clear: both; + color: #595959; + font-size: 12px; + pointer-events: visiblePainted; + /* IE 9-10 doesn't have auto */ + pointer-events: auto; +} +.l7-control-container .l7-control.l7-control--hide { + display: none; +} +.l7-control-container .l7-top { + top: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-top .l7-control:not(.l7-control--hide) { + margin-top: 8px; +} +.l7-control-container .l7-right { + right: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-right .l7-control:not(.l7-control--hide) { + margin-right: 8px; +} +.l7-control-container .l7-bottom { + bottom: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) { + margin-bottom: 8px; +} +.l7-control-container .l7-left { + left: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-left .l7-control:not(.l7-control--hide) { + margin-left: 8px; +} +.l7-control-container .l7-center { + position: absolute; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} +.l7-control-container .l7-center.l7-top, +.l7-control-container .l7-center.l7-bottom { + width: 100%; +} +.l7-control-container .l7-center.l7-left, +.l7-control-container .l7-center.l7-right { + height: 100%; +} +.l7-control-container .l7-center .l7-control { + margin-right: 8px; + margin-bottom: 8px; +} +.l7-control-container .l7-row { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-control-container .l7-row.l7-top { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-control-container .l7-row.l7-bottom { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-control-container .l7-column { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-control-container .l7-column.l7-left { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-control-container .l7-column.l7-right { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-button-control { + min-width: 28px; + height: 28px; + background-color: #fff; + border-width: 0; + border-radius: 2px; + outline: 0; + cursor: pointer; + -webkit-transition: all 0.2s; + transition: all 0.2s; + 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; + padding: 0 6px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + line-height: 16px; +} +.l7-button-control .l7-iconfont { + fill: #595959; + color: #595959; + width: 16px; + height: 16px; +} +.l7-button-control.l7-button-control--row { + padding: 0 16px 0 13px; +} +.l7-button-control.l7-button-control--row * + .l7-button-control__text { + margin-left: 8px; +} +.l7-button-control.l7-button-control--column { + height: 44px; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-button-control.l7-button-control--column .l7-iconfont { + margin-top: 3px; +} +.l7-button-control.l7-button-control--column .l7-button-control__text { + margin-top: 3px; + font-size: 10px; + -webkit-transform: scale(0.83333); + transform: scale(0.83333); +} +.l7-button-control:not(:disabled):hover { + background-color: #f3f3f3; +} +.l7-button-control:not(:disabled):active { + background-color: #f3f3f3; +} +.l7-button-control:disabled { + background-color: #fafafa; + color: #bdbdbd; + cursor: not-allowed; +} +.l7-button-control:disabled .l7-iconfont { + fill: #bdbdbd; + color: #bdbdbd; +} +.l7-button-control:disabled:hover { + background-color: #fafafa; +} +.l7-button-control:disabled:active { + background-color: #fafafa; +} +.l7-popper { + position: absolute; + 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; + z-index: 5; + color: #595959; +} +.l7-popper.l7-popper-hide { + display: none; +} +.l7-popper .l7-popper-content { + min-height: 28px; + background: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-popper .l7-popper-arrow { + width: 0; + height: 0; + border-width: 4px; + border-style: solid; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-popper.l7-popper-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-popper.l7-popper-left .l7-popper-arrow { + border-left-color: #fff; + margin: 10px 0; +} +.l7-popper.l7-popper-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.l7-popper.l7-popper-right .l7-popper-arrow { + border-right-color: #fff; + margin: 10px 0; +} +.l7-popper.l7-popper-top { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-popper.l7-popper-top .l7-popper-arrow { + border-top-color: #fff; + margin: 0 10px; +} +.l7-popper.l7-popper-bottom { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; +} +.l7-popper.l7-popper-bottom .l7-popper-arrow { + border-bottom-color: #fff; + margin: 0 10px; +} +.l7-popper.l7-popper-start { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-popper.l7-popper-end { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-select-control--normal { + padding: 4px 0; +} +.l7-select-control--normal .l7-select-control-item { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 24px; + padding: 0 16px; + font-size: 12px; + line-height: 24px; +} +.l7-select-control--normal .l7-select-control-item > * + * { + margin-left: 6px; +} +.l7-select-control--normal .l7-select-control-item input[type='checkbox'] { + width: 14px; + height: 14px; +} +.l7-select-control--normal .l7-select-control-item:hover { + background-color: #f3f3f3; +} +.l7-select-control--image { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; + -webkit-box-sizing: content-box; + box-sizing: content-box; + max-width: 460px; + max-height: 400px; + margin: 12px 0 0 12px; + overflow-x: hidden; + overflow-y: auto; +} +.l7-select-control--image .l7-select-control-item { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 0; + -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-sizing: content-box; + box-sizing: content-box; + margin-right: 12px; + margin-bottom: 12px; + overflow: hidden; + font-size: 12px; + border: 1px solid #fff; + border-radius: 2px; +} +.l7-select-control--image .l7-select-control-item img { + width: 100%; + height: 80px; +} +.l7-select-control--image .l7-select-control-item input[type='checkbox'] { + position: absolute; + 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-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 > * + * { + margin-left: 8px; +} +.l7-select-control--image .l7-select-control-item.l7-select-control-item-active { + border-color: #0370fe; +} +.l7-select-control-item { + cursor: pointer; +} +.l7-select-control-item input[type='checkbox'] { + margin: 0; + cursor: pointer; +} +.l7-select-control--multiple .l7-select-control-item:hover { + background-color: transparent; +} +.l7-control-logo { + width: 89px; + height: 16px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.l7-control-logo img { + height: 100%; + width: 100%; +} +.l7-control-logo .l7-control-logo-link { + display: block; + cursor: pointer; +} +.l7-control-logo .l7-control-logo-link img { + cursor: pointer; +} +.l7-control-mouse-location { + background-color: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + padding: 2px 4px; + min-width: 130px; +} +.l7-control-zoom { + overflow: hidden; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-control-zoom .l7-button-control { + font-size: 16px; + border-bottom: 1px solid #f0f0f0; + border-radius: 0; + -webkit-box-shadow: 0 0 0; + box-shadow: 0 0 0; +} +.l7-control-zoom .l7-button-control .l7-iconfont { + width: 14px; + height: 14px; +} +.l7-control-zoom .l7-button-control:last-child { + border-bottom: 0; +} +.l7-control-zoom .l7-control-zoom__number { + color: #595959; + padding: 0; +} +.l7-control-zoom .l7-control-zoom__number:hover { + background-color: #fff; +} +.l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-control-scale .l7-control-scale-line { + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 5px 1px; + overflow: hidden; + color: #595959; + font-size: 10px; + line-height: 1.1; + white-space: nowrap; + background: #fff; + border: 2px solid #000; + border-top: 0; + -webkit-transition: width 0.1s; + transition: width 0.1s; +} +.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line { + margin-top: -2px; + border-top: 2px solid #777; + border-bottom: none; +} +.l7-right .l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-right .l7-control-scale .l7-control-scale-line { + text-align: right; +} +.l7-popup { + position: absolute; + top: 0; + left: 0; + z-index: 5; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + will-change: transform; + pointer-events: none; +} +.l7-popup.l7-popup-hide { + display: none; +} +.l7-popup .l7-popup-content { + position: relative; + padding: 16px; + font-size: 14px; + background: #fff; + border-radius: 3px; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} +.l7-popup .l7-popup-content .l7-popup-content__title { + margin-bottom: 8px; + font-weight: bold; +} +.l7-popup .l7-popup-content .l7-popup-close-button, +.l7-popup .l7-popup-content .l7-popup-content__title, +.l7-popup .l7-popup-content .l7-popup-content__panel { + white-space: normal; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + pointer-events: initial; +} +.l7-popup .l7-popup-content .l7-popup-close-button { + position: absolute; + top: 0; + right: 0; + width: 18px; + height: 18px; + padding: 0; + font-size: 14px; + line-height: 18px; + text-align: center; + background-color: transparent; + border: 0; + border-radius: 0 3px 0 0; + cursor: pointer; +} +.l7-popup .l7-popup-tip { + position: relative; + z-index: 1; + width: 0; + height: 0; + border: 10px solid transparent; +} +.l7-popup.l7-popup-anchor-bottom, +.l7-popup.l7-popup-anchor-bottom-left, +.l7-popup.l7-popup-anchor-bottom-right { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; +} +.l7-popup.l7-popup-anchor-bottom .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip { + bottom: 1px; +} +.l7-popup.l7-popup-anchor-top, +.l7-popup.l7-popup-anchor-top-left, +.l7-popup.l7-popup-anchor-top-right { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-popup.l7-popup-anchor-top .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-right .l7-popup-tip { + top: 1px; +} +.l7-popup.l7-popup-anchor-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-popup.l7-popup-anchor-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.l7-popup-anchor-top .l7-popup-tip { + position: relative; + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-top: none; + border-bottom-color: #fff; +} +.l7-popup-anchor-top-left .l7-popup-tip { + -webkit-align-self: flex-start; + -ms-flex-item-align: start; + align-self: flex-start; + border-top: none; + border-bottom-color: #fff; + border-left: none; +} +.l7-popup-anchor-top-right .l7-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; +} +.l7-popup-anchor-bottom .l7-popup-tip { + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-top-color: #fff; + border-bottom: none; +} +.l7-popup-anchor-bottom-left .l7-popup-tip { + -webkit-align-self: flex-start; + -ms-flex-item-align: start; + align-self: flex-start; + border-top-color: #fff; + border-bottom: none; + border-left: none; +} +.l7-popup-anchor-bottom-right .l7-popup-tip { + -webkit-align-self: flex-end; + -ms-flex-item-align: end; + align-self: flex-end; + border-top-color: #fff; + border-right: none; + border-bottom: none; +} +.l7-popup-anchor-left .l7-popup-tip { + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-right-color: #fff; + border-left: none; +} +.l7-popup-anchor-right .l7-popup-tip { + right: 1px; + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-right: none; + border-left-color: #fff; +} +.l7-popup-anchor-top-left .l7-popup-content { + border-top-left-radius: 0; +} +.l7-popup-anchor-top-right .l7-popup-content { + border-top-right-radius: 0; +} +.l7-popup-anchor-bottom-left .l7-popup-content { + border-bottom-left-radius: 0; +} +.l7-popup-anchor-bottom-right .l7-popup-content { + border-bottom-right-radius: 0; +} +.l7-popup-track-pointer { + display: none; +} +.l7-popup-track-pointer * { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + pointer-events: none; +} +.l7-map:hover .l7-popup-track-pointer { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.l7-map:active .l7-popup-track-pointer { + display: none; +} +.l7-layer-popup__row { + font-size: 12px; +} +.l7-layer-popup__row + .l7-layer-popup__row { + margin-top: 4px; +} +`);var Mp,n1=(Mp={},(0,B.Z)(Mp,zs.additive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,zs.none,{enable:!1}),(0,B.Z)(Mp,zs.normal,{enable:!0,func:{srcRGB:R.SRC_ALPHA,dstRGB:R.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,zs.subtractive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:R.ZERO,dstAlpha:R.ONE_MINUS_SRC_COLOR},equation:{rgb:R.FUNC_SUBTRACT,alpha:R.FUNC_SUBTRACT}}),(0,B.Z)(Mp,zs.max,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MAX_EXT}}),(0,B.Z)(Mp,zs.min,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MIN_EXT}}),Mp);function i1(e){return e.map(function(r){return typeof r=="string"&&(r=[r,{}]),r})}function a1(e,r,t,n){var i=e.multiPassRenderer,o=e.getLayerConfig(),s=o.enableTAA;return s?i.add(n("taa")):i.add(n("render")),i1(r).forEach(function(l){var f=(0,yn.Z)(l,2),v=f[0],y=f[1];i.add(t(v),y)}),i.add(t("copy")),i}var yw=function(){function e(r){(0,q.Z)(this,e),this.layer=r}return(0,V.Z)(e,[{key:"pickRender",value:function(t){var n=this.layer.getContainer(),i=n.get(tt.ILayerService),o=this.layer;if(o.tileLayer)return o.tileLayer.pickRender(t);o.hooks.beforePickingEncode.call(),i.renderTileLayerMask(o),o.renderModels({ispick:!0}),o.hooks.afterPickingEncode.call()}},{key:"pick",value:function(t,n){var i=this.layer.getContainer(),o=i.get(tt.IPickingService);return t.type==="RasterLayer"?this.pickRasterLayer(t,n):(this.pickRender(n),o.pickFromPickingFBO(t,n))}},{key:"pickRasterLayer",value:function(t,n,i){var o=this.layer.getContainer(),s=o.get(tt.IPickingService),l=o.get(tt.IMapService),f=this.layer.getSource().extent,v=yh(n.lngLat,f),y={x:n.x,y:n.y,type:n.type,lngLat:n.lngLat,target:n,rasterValue:null},b=i||t;if(v){var T=this.readRasterValue(t,f,l,n.x,n.y);return y.rasterValue=T,s.triggerHoverOnLayer(b,y),!0}else return y.type=n.type==="mousemove"?"mouseout":"un"+n.type,s.triggerHoverOnLayer(b,(0,H.Z)((0,H.Z)({},y),{},{type:"unpick"})),s.triggerHoverOnLayer(b,y),!1}},{key:"readRasterValue",value:function(t,n,i,o,s){var l=t.getSource().data.dataArray[0],f=(0,yn.Z)(n,4),v=f[0],y=v===void 0?0:v,b=f[1],T=b===void 0?0:b,M=f[2],O=M===void 0?10:M,k=f[3],$=k===void 0?-10:k,G=i.lngLatToContainer([y,T]),oe=i.lngLatToContainer([O,$]),ye=oe.x-G.x,Le=G.y-oe.y,$e=[(o-G.x)/ye,(s-oe.y)/Le],ut=l.width||1,vt=l.height||1,Rt=Math.floor($e[0]*ut),Jt=Math.floor($e[1]*vt),Mr=Math.max(0,Jt-1)*ut+Rt,br=l.data[Mr];return br}},{key:"selectFeature",value:function(t){var n=this.layer,i=(0,yn.Z)(t,3),o=i[0],s=i[1],l=i[2];n.hooks.beforeSelect.call([o,s,l])}},{key:"highlightPickedFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2];this.layer.hooks.beforeHighlight.call([i,o,s])}},{key:"getFeatureById",value:function(t){return this.layer.getSource().getFeatureById(t)}}]),e}(),xw=function(){function e(r){(0,q.Z)(this,e),this.layer=r;var t=this.layer.getContainer();this.rendererService=t.get(tt.IRendererService)}return(0,V.Z)(e,[{key:"getColorTexture",value:function(t,n){var i=this.getTextureKey(t,n);return this.key===i?this.colorTexture:(this.createColorTexture(t,n),this.key=i,this.colorTexture)}},{key:"createColorTexture",value:function(t,n){var i=this.rendererService.createTexture2D,o=this.getColorRampBar(t,n),s=i({data:new Uint8Array(o.data),width:o.width,height:o.height,flipY:!1});return this.colorTexture=s,s}},{key:"setColorTexture",value:function(t,n,i){this.key=this.getTextureKey(n,i),this.colorTexture=t}},{key:"destroy",value:function(){var t;(t=this.colorTexture)===null||t===void 0||t.destroy()}},{key:"getColorRampBar",value:function(t,n){switch(t.type){case"cat":return $o(t);case"quantize":return Vo(t);case"custom":return Ru(t,n);case"linear":return ha(t,n);default:return So(t)}}},{key:"getTextureKey",value:function(t,n){var i;return"".concat(t.colors.join("_"),"_").concat(t==null||(i=t.positions)===null||i===void 0?void 0:i.join("_"),"_").concat(t.type,"_").concat(n==null?void 0:n.join("_"))}}]),e}(),bw=["passes"],Ew=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],o1,N0,s1;function Sw(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Aw(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Aw(e,r){if(e){if(typeof e=="string")return u1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u1(e,r)}}function u1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:{};return(0,q.Z)(this,t),n=r.call(this),(0,B.Z)((0,Ie.Z)(n),"id","".concat(f1++)),(0,B.Z)((0,Ie.Z)(n),"name","".concat(f1)),(0,B.Z)((0,Ie.Z)(n),"visible",!0),(0,B.Z)((0,Ie.Z)(n),"zIndex",0),(0,B.Z)((0,Ie.Z)(n),"inited",!1),(0,B.Z)((0,Ie.Z)(n),"layerModelNeedUpdate",!1),(0,B.Z)((0,Ie.Z)(n),"pickedFeatureID",null),(0,B.Z)((0,Ie.Z)(n),"selectedFeatureID",null),(0,B.Z)((0,Ie.Z)(n),"styleNeedUpdate",!1),(0,B.Z)((0,Ie.Z)(n),"forceRender",!1),(0,B.Z)((0,Ie.Z)(n),"clusterZoom",0),(0,B.Z)((0,Ie.Z)(n),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,B.Z)((0,Ie.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,B.Z)((0,Ie.Z)(n),"hooks",{init:new A0,afterInit:new fo,beforeRender:new fo,beforeRenderData:new ah,afterRender:new xu,beforePickingEncode:new xu,afterPickingEncode:new xu,beforeHighlight:new xu(["pickedColor"]),afterHighlight:new xu,beforeSelect:new xu(["pickedColor"]),afterSelect:new xu,beforeDestroy:new xu,afterDestroy:new xu}),(0,B.Z)((0,Ie.Z)(n),"models",[]),(0,B.Z)((0,Ie.Z)(n),"startInit",!1),(0,B.Z)((0,Ie.Z)(n),"layerChildren",[]),(0,B.Z)((0,Ie.Z)(n),"masks",[]),Fi((0,Ie.Z)(n),"configService",s1,(0,Ie.Z)(n)),(0,B.Z)((0,Ie.Z)(n),"animateOptions",{enable:!1}),(0,B.Z)((0,Ie.Z)(n),"currentPickId",null),(0,B.Z)((0,Ie.Z)(n),"encodeStyleAttribute",{}),(0,B.Z)((0,Ie.Z)(n),"enableShaderEncodeStyles",[]),(0,B.Z)((0,Ie.Z)(n),"enableDataEncodeStyles",[]),(0,B.Z)((0,Ie.Z)(n),"enablg",[]),(0,B.Z)((0,Ie.Z)(n),"pendingStyleAttributes",[]),(0,B.Z)((0,Ie.Z)(n),"scaleOptions",{}),(0,B.Z)((0,Ie.Z)(n),"animateStatus",!1),(0,B.Z)((0,Ie.Z)(n),"isDestroyed",!1),(0,B.Z)((0,Ie.Z)(n),"encodeDataLength",0),(0,B.Z)((0,Ie.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var o=n.getLayerConfig();o&&o.autoFit&&n.fitBounds(o.fitBoundsOptions);var s=n.layerSource.getSourceCfg().autoRender;s&&setTimeout(function(){n.reRender()},10)}),n.name=i.name||n.id,n.zIndex=i.zIndex||0,n.rawConfig=i,n}return(0,V.Z)(t,[{key:"addMask",value:function(i){this.masks.push(i),this.enableMask()}},{key:"removeMask",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(i){this.masks.push(i)}},{key:"removeMaskLayer",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1),i.destroy()}},{key:"getAttribute",value:function(i){return this.styleAttributeService.getLayerStyleAttribute(i)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(i){var o=this;if(Object.keys(i).map(function(l){l in o.rawConfig&&(o.rawConfig[l]=i[l])}),!this.startInit)this.needUpdateConfig=(0,H.Z)((0,H.Z)({},this.needUpdateConfig),i);else{var s=this.container.get(tt.SceneID);this.configService.setLayerConfig(s,this.id,(0,H.Z)((0,H.Z)((0,H.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),i)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(i,o){this.container=i,this.sceneContainer=o}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(i){return this.plugins.push(i),this}},{key:"init",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s=this,l,f,v,y,b,T,M;return me().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:l=this.container.get(tt.SceneID),this.startInit=!0,this.configService.setLayerConfig(l,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(tt.IIconService),this.fontService=this.container.get(tt.IFontService),this.rendererService=this.container.get(tt.IRendererService),this.layerService=this.container.get(tt.ILayerService),this.debugService=this.container.get(tt.IDebugService),this.interactionService=this.container.get(tt.IInteractionService),this.pickingService=this.container.get(tt.IPickingService),this.mapService=this.container.get(tt.IMapService),f=this.getLayerConfig(),v=f.enableMultiPassRenderer,y=f.passes,v&&y!==null&&y!==void 0&&y.length&&y.length>0&&this.mapService.on("mapAfterFrameChange",function(){s.renderLayers()}),this.cameraService=this.container.get(tt.ICameraService),this.coordinateService=this.container.get(tt.ICoordinateSystemService),this.shaderModuleService=this.container.get(tt.IShaderModuleService),this.postProcessingPassFactory=this.container.get(tt.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(tt.IFactoryNormalPass),this.styleAttributeService=this.container.get(tt.IStyleAttributeService),v&&(this.multiPassRenderer=this.container.get(tt.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function($){var G=$.attributeName,oe=$.attributeField,ye=$.attributeValues,Le=$.updateOptions;s.styleAttributeService.updateStyleAttribute(G,{scale:(0,H.Z)({field:oe},s.splitValuesAndCallbackInAttribute(ye,oe?void 0:s.getLayerConfig()[G]))},Le)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(tt.ILayerPlugin),b=Sw(this.plugins);try{for(b.s();!(T=b.n()).done;)M=T.value,M.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch($){b.e($)}finally{b.f()}return this.layerPickService=new yw(this),this.textureService=new xw(this),this.log(Rs.LayerInitStart),k.next=31,this.hooks.init.promise();case 31:this.log(Rs.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 k.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"log",value:function(i){var o,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var l="".concat(this.id,".").concat(s,".").concat(i),f={id:this.id,type:this.type};(o=this.debugService)===null||o===void 0||o.log(l,f)}}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models.map(function(o){o.updateAttributesAndElements(i.attributes,i.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(i){this.layerPickService=i}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var i=this.getLayerConfig(),o=i.animateOption;o!=null&&o.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(i,o,s){return this.updateStyleAttribute("color",i,o,s),this}},{key:"texture",value:function(i,o,s){return this.updateStyleAttribute("texture",i,o,s),this}},{key:"rotate",value:function(i,o,s){return this.updateStyleAttribute("rotate",i,o,s),this}},{key:"size",value:function(i,o,s){return this.updateStyleAttribute("size",i,o,s),this}},{key:"filter",value:function(i,o,s){var l=this.updateStyleAttribute("filter",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"shape",value:function(i,o,s){this.shapeOption={field:i,values:o};var l=this.updateStyleAttribute("shape",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"label",value:function(i,o,s){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:i,attributeValues:o,updateOptions:s}),this}},{key:"animate",value:function(i){var o={};return Su(i)?(o.enable=!0,o=(0,H.Z)((0,H.Z)({},o),i)):o.enable=i,this.updateLayerConfig({animateOption:o}),this}},{key:"source",value:function(i,o){return(i==null?void 0:i.type)==="source"?(this.setSource(i),this):(this.sourceOption={data:i,options:o},this.clusterZoom=0,this)}},{key:"setData",value:function(i,o){var s=this;return this.inited?(this.log(Rs.SourceInitStart,ds.UPDATE),this.layerSource.setData(i,o),this.log(Rs.SourceInitEnd,ds.UPDATE)):this.on("inited",function(){s.log(Rs.SourceInitStart,ds.UPDATE);var l=s.getSource();l?s.layerSource.setData(i,o):s.source(new Xy(i,o)),s.layerSource.once("update",function(){s.log(Rs.SourceInitEnd,ds.UPDATE)})}),this}},{key:"style",value:function(i){var o=this,s=i.passes,l=(0,Fa.Z)(i,bw);s&&i1(s).forEach(function(v){var y=o.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(v[0]);y&&y.updateOptions(v[1])}),l.borderColor&&(l.stroke=l.borderColor),l.borderWidth&&(l.strokeWidth=l.borderWidth);var f=l;return Object.keys(l).forEach(function(v){var y=l[v];Array.isArray(y)&&y.length===2&&!c1(y[0])&&!c1(y[1])&&(f[v]={field:y[0],value:y[1]})}),this.encodeStyle(f),this.updateLayerConfig(f),this}},{key:"encodeStyle",value:function(i){var o=this;Object.keys(i).forEach(function(s){[].concat((0,Wt.Z)(o.enableShaderEncodeStyles),(0,Wt.Z)(o.enableDataEncodeStyles)).includes(s)&&Cw(i[s])&&(i[s].field||i[s].value)&&!U0(o.encodeStyleAttribute[s],i[s])?(o.encodeStyleAttribute[s]=i[s],o.updateStyleAttribute(s,i[s].field,i[s].value),o.inited&&(o.dataState.dataMappingNeedUpdate=!0)):o.encodeStyleAttribute[s]&&(delete o.encodeStyleAttribute[s],o.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(i,o){var s=(0,H.Z)({},this.scaleOptions);if(Su(i)?this.scaleOptions=(0,H.Z)((0,H.Z)({},this.scaleOptions),i):this.scaleOptions[i]=o,this.styleAttributeService&&!U0(s,this.scaleOptions)){var l=Su(i)?i:(0,B.Z)({},i,o);this.styleAttributeService.updateScaleAttribute(l)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var i=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(i),this))}},{key:"renderMultiPass",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){l.next=2;break}return l.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){l.next=7;break}return l.next=5,this.multiPassRenderer.render();case 5:l.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"active",value:function(i){var o={};return o.enableHighlight=Su(i)?!0:i,Su(i)?(o.enableHighlight=!0,i.color&&(o.highlightColor=i.color),i.mix&&(o.activeMix=i.mix)):o.enableHighlight=!!i,this.updateLayerConfig(o),this}},{key:"setActive",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(ia(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"select",value:function(i){var o={};return o.enableSelect=Su(i)?!0:i,Su(i)?(o.enableSelect=!0,i.color&&(o.selectColor=i.color),i.mix&&(o.selectMix=i.mix)):o.enableSelect=!!i,this.updateLayerConfig(o),this}},{key:"setSelect",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(ia(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"setBlend",value:function(i){return this.updateLayerConfig({blend:i}),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(i){return this.zIndex=i,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(i){this.currentPickId=i}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(i){this.selectedFeatureID=i}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var i=this.mapService.getZoom(),o=this.getLayerConfig(),s=o.visible,l=o.minZoom,f=l===void 0?-1/0:l,v=o.maxZoom,y=v===void 0?1/0:v;return!!s&&i>=f&&i0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(i=this.layerModel)===null||i===void 0||i.uniformBuffers.forEach(function(T){T.destroy()}),this.layerChildren.map(function(T){return T.destroy(!1)}),this.layerChildren=[];var y=this.getLayerConfig(),b=y.maskfence;b&&(this.masks.map(function(T){return T.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(o=this.multiPassRenderer)===null||o===void 0||o.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(s=this.layerModel)===null||s===void 0||s.clearModels(v),(l=this.tileLayer)===null||l===void 0||l.destroy(),this.models=[],(f=this.debugService)===null||f===void 0||f.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 i;this.models.forEach(function(o){return o.destroy()}),(i=this.layerModel)===null||i===void 0||i.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(i){return i.needRescale||i.needRemapping||i.needRegenerateVertices}).length}},{key:"setSource",value:function(i){var o=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=i,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var s=this.mapService.getZoom();this.layerSource.updateClusterData(s)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(l){var f=l.type;if(o.coordCenter===void 0){var v,y=o.layerSource.center;o.coordCenter=y,(v=o.mapService)!==null&&v!==void 0&&v.setCoordCenter&&o.mapService.setCoordCenter(y)}if(f==="update"){if(o.tileLayer){o.tileLayer.reload();return}o.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(i){this.encodedData=i,this.encodeDataLength=i.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(i){return this.styleAttributeService.getLayerAttributeScale(i)}},{key:"getLegend",value:function(i){var o,s,l,f=this.styleAttributeService.getLayerStyleAttribute(i),v=(f==null||(o=f.scale)===null||o===void 0?void 0:o.scalers)||[];return{type:(s=v[0].option)===null||s===void 0?void 0:s.type,field:f==null||(l=f.scale)===null||l===void 0?void 0:l.field,items:this.getLegendItems(i)}}},{key:"getLegendItems",value:function(i){var o=this.styleAttributeService.getLayerAttributeScale(i);if(!o)return[];if(o.invertExtent){var s=o.range().map(function(v){return(0,B.Z)({value:o.invertExtent(v)},i,v)});return s}else if(o.ticks){var l=o.ticks().map(function(v){return(0,B.Z)({value:v},i,o(v))});return l}else if(o!=null&&o.domain){var f=o.domain().filter(function(v){return!Rw(v)}).map(function(v){return(0,B.Z)({value:v},i,o(v))});return f}return[]}},{key:"pick",value:function(i){var o=i.x,s=i.y;this.interactionService.triggerHover({x:o,y:s})}},{key:"boxSelect",value:function(i,o){this.pickingService.boxPickLayer(this,i,o)}},{key:"buildLayerModel",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l=this,f,v,y,b,T,M,O,k,$,G,oe,ye;return me().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return f=s.moduleName,v=s.vertexShader,y=s.fragmentShader,b=s.inject,T=s.triangulation,M=s.styleOption,O=(0,Fa.Z)(s,Ew),this.shaderModuleService.registerModule(f,{vs:v,fs:y,inject:b}),k=this.shaderModuleService.getModule(f),$=k.vs,G=k.fs,oe=k.uniforms,ye=this.rendererService.createModel,$e.abrupt("return",new Promise(function(ut){var vt=l.styleAttributeService.createAttributesAndIndices(l.encodedData,T,M),Rt=vt.attributes,Jt=vt.elements,Mr=vt.count,br=(0,H.Z)({attributes:Rt,uniforms:oe,fs:G,vs:$,elements:Jt,blend:n1[zs.normal],uniformBuffers:[].concat((0,Wt.Z)(l.layerModel.uniformBuffers),(0,Wt.Z)(l.rendererService.uniformBuffers)),textures:l.layerModel.textures},O);Mr&&(br.count=Mr);var pn=ye(br);ut(pn)}));case 5:case"end":return $e.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"createAttributes",value:function(i){var o=i.triangulation,s=this.styleAttributeService.createAttributes(this.encodedData,o),l=s.attributes;return l}},{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(i){var o=this.getLayerConfig(),s=o.enableHighlight,l=s===void 0?!0:s,f=o.enableSelect,v=f===void 0?!0:f,y=this.eventNames().indexOf(i)!==-1||this.eventNames().indexOf("un"+i)!==-1;return(i==="click"||i==="dblclick")&&v&&(y=!0),i==="mousemove"&&(l||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(y=!0),this.isVisible()&&y}},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"rebuildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.buildModels();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMulPass",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,s.render();case 2:case"end":return f.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderModels",value:function(){var i=this,o=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(s){s.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)},(o==null?void 0:o.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(i,o,s,l){var f=this.configService.getAttributeConfig(this.id)||{};return U0(f[i],{field:o,values:s})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(i)!==-1&&this.configService.setAttributeConfig(this.id,(0,B.Z)({},i,{field:o,values:s})),this.startInit?this.styleAttributeService.updateStyleAttribute(i,{scale:(0,H.Z)({field:o},this.splitValuesAndCallbackInAttribute(s,this.getLayerConfig()[o]))},l):this.pendingStyleAttributes.push({attributeName:i,attributeField:o,attributeValues:s,updateOptions:l}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(i){console.warn("empty fn")}},{key:"processData",value:function(i){return i}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.models.forEach(function(f){return f.destroy()}),this.models=[],l.next=4,this.layerModel.initModels();case 4:this.models=l.sent;case 5:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(i){return{values:l1(i)?void 0:i,callback:l1(i)?i:void 0}}}]),t}(no.EventEmitter),s1=Oi(N0.prototype,"configService",[o1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N0);function Mw(e,r){return{enable:e,mask:255,func:{cmp:R.EQUAL,ref:r?1:0,mask:1}}}function h1(e){return e.maskOperation===Qp.OR?{enable:!0,mask:255,func:{cmp:R.ALWAYS,ref:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}:{enable:!0,mask:255,func:{cmp:e.stencilType===hc.SINGLE||e.stencilIndex===0?R.ALWAYS:R.LESS,ref:e.stencilType===hc.SINGLE?1:e.stencilIndex===0?2:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}}var Iw={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},yg={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function fL(e){var r="";return Object.keys(e).forEach(function(t){var n=e[t];Array.isArray(n)?r+="vec".concat(n.length," ").concat(t,`; +`):r+="flot ".concat(t,`; +`)}),r}function p1(e){return Math.ceil(e/4)*4}var Ms=function(e){return e[e.POSITION=0]="POSITION",e[e.COLOR=1]="COLOR",e[e.VERTEX_ID=2]="VERTEX_ID",e[e.PICKING_COLOR=3]="PICKING_COLOR",e[e.STROKE=4]="STROKE",e[e.OPACITY=5]="OPACITY",e[e.OFFSETS=6]="OFFSETS",e[e.ROTATION=7]="ROTATION",e[e.EXTRUSION_BASE=8]="EXTRUSION_BASE",e[e.SIZE=9]="SIZE",e[e.SHAPE=10]="SHAPE",e[e.EXTRUDE=11]="EXTRUDE",e[e.MAX=12]="MAX",e[e.NORMAL=13]="NORMAL",e}({});function Pw(e){switch(e){case"rotation":return{name:"Rotation",type:fn.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Ms.ROTATION,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.rotation,i=n===void 0?0:n;return Array.isArray(i)?[i[0]]:[i]}}};case"stroke":return{name:"stroke",type:fn.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Ms.STROKE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:4,update:function(t){var n=t.stroke,i=n===void 0?[1,1,1,1]:n;return i}}};case"opacity":return{name:"opacity",type:fn.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Ms.OPACITY,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.opacity,i=n===void 0?1:n;return[i]}}};case"extrusionBase":return{name:"extrusionBase",type:fn.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:Ms.EXTRUSION_BASE,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.extrusionBase,i=n===void 0?0:n;return[i]}}};case"offsets":return{name:"offsets",type:fn.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Ms.OFFSETS,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(t){var n=t.offsets;return n}}};case"thetaOffset":return{name:"thetaOffset",type:fn.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.thetaOffset,i=n===void 0?1:n;return[i]}}};default:return}}var d1,z0,v1,m1={opacity:Ms.OPACITY,stroke:Ms.STROKE,offsets:Ms.OFFSETS,rotation:Ms.ROTATION,extrusionBase:Ms.EXTRUSION_BASE},Ma=(d1=k0(tt.IGlobalConfigService),z0=function(){function e(r){(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"textures",[]),(0,B.Z)(this,"preStyleAttribute",{}),(0,B.Z)(this,"encodeStyleAttribute",{}),Fi(this,"configService",v1,this),this.layer=r,this.rendererService=r.getContainer().get(tt.IRendererService),this.pickingService=r.getContainer().get(tt.IPickingService),this.shaderModuleService=r.getContainer().get(tt.IShaderModuleService),this.styleAttributeService=r.getContainer().get(tt.IStyleAttributeService),this.mapService=r.getContainer().get(tt.IMapService),this.iconService=r.getContainer().get(tt.IIconService),this.fontService=r.getContainer().get(tt.IFontService),this.cameraService=r.getContainer().get(tt.ICameraService),this.layerService=r.getContainer().get(tt.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var t=this.rendererService.createTexture2D;this.createTexture2D=t}return(0,V.Z)(e,[{key:"getBlend",value:function(){var t=this.layer.getLayerConfig(),n=t.blend,i=n===void 0?"normal":n;return n1[zs[i]]}},{key:"getStencil",value:function(t){var n=this.layer.getLayerConfig(),i=n.mask,o=i===void 0?!1:i,s=n.maskInside,l=s===void 0?!0:s,f=n.enableMask,v=n.maskOperation,y=v===void 0?Qp.AND:v;if(this.layer.type==="MaskLayer")return h1({isStencil:!0,stencilType:hc.SINGLE});if(t.isStencil)return h1((0,H.Z)((0,H.Z)({},t),{},{maskOperation:y}));var b=o||f&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Mw(b,l)}},{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 r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",!1);case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"buildModels",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"initModels",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"clearModels",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(t){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(t){return[t.enable?0:1,t.duration||4,t.interval||.2,t.trailLength||.1]}},{key:"startModelAnimate",value:function(){var t=this.layer.getLayerConfig(),n=t.animateOption;n.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var t=this.layer.encodeStyleAttribute,n="",i=[];this.layer.enableShaderEncodeStyles.forEach(function(l){t[l]?n+="#define USE_ATTRIBUTE_".concat(l.toUpperCase(),` 0.0; + +`):i.push(" ".concat(yg[l]," u_").concat(l,";")),n+=` + #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` + layout(location = `).concat(m1[l],") in ").concat(yg[l]," a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; + #endif + + `)});var o=i.length?` +layout(std140) uniform AttributeUniforms { +`.concat(i.join(` +`),` +}; + `):"";n+=o;var s="";return this.layer.enableShaderEncodeStyles.forEach(function(l){s+=` + + #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` + `).concat(yg[l]," ").concat(l," = a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; + #else + `).concat(yg[l]," ").concat(l," = u_").concat(l,`; + #endif + + `)}),{"vs:#decl":n,"fs:#decl":o,"vs:#main-start":s}}},{key:"getStyleAttribute",value:function(){var t=this,n={};return this.layer.enableShaderEncodeStyles.forEach(function(i){if(!t.layer.encodeStyleAttribute[i]){var o=t.layer.getLayerConfig()[i],s=typeof o=="undefined"?Iw[i]:o;i==="stroke"&&(s=fi(s)),n["u_"+i]=s}}),n}},{key:"registerStyleAttribute",value:function(){var t=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(n){var i=Pw(n);i&&(t.styleAttributeService.registerStyleAttribute(i),i.descriptor&&(i.descriptor.shaderLocation=m1[n]))})}},{key:"updateEncodeAttribute",value:function(t,n){this.encodeStyleAttribute[t]=n}},{key:"initUniformsBuffer",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=this.getCommonUniformsInfo();this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(t.uniformsLength)),isUBO:!0}),this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(n.uniformsLength)),isUBO:!0}),this.uniformBuffers=[this.attributeUnifoms,this.commonUnifoms]}},{key:"getUniformsBufferInfo",value:function(t){var n=0,i=[];return Object.values(t).forEach(function(o){Array.isArray(o)?(i.push.apply(i,(0,Wt.Z)(o)),n+=o.length):(i.push(o),n+=1)}),{uniformsOption:t,uniformsLength:n,uniformsArray:i}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=t.uniformsArray,i=this.getCommonUniformsInfo(),o=i.uniformsArray;this.attributeUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(n).buffer)}),this.commonUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(o).buffer)})}}]),e}(),v1=Oi(z0.prototype,"configService",[d1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z0),Z0=100,hL=36,pL=40;function g1(e){return e/180*Math.acos(-1)}function _1(e){var r=g1(e[0])+Math.PI/2,t=g1(e[1]),n=Z0+Math.random()*.4,i=n*Math.cos(t)*Math.cos(r),o=n*Math.cos(t)*Math.sin(r),s=n*Math.sin(t);return[o,s,i]}function dL(e,r){var t=mat4.create(),n=mat4.create(),i=vec3.fromValues(0,1,0),o=vec3.fromValues(0,0,0);r=r||{},e=typeof e!="undefined"?e:1;for(var s=typeof r.segments!="undefined"?r.segments:32,l=2+s,f=2*l,v=[],y=[],b=[],T=[],M=[],O=[],k=0;k<=l;k++){for(var $=k/l,G=$*Math.PI,oe=0;oe<=f;oe++){var ye=oe/f,Le=ye*Math.PI*2;mat4.identity(n),mat4.rotateZ(n,n,-G),mat4.identity(t),mat4.rotateY(t,t,Le),vec3.transformMat4(o,i,n),vec3.transformMat4(o,o,t),vec3.scale(o,o,-e),b.push(o.slice()),T.push.apply(T,_toConsumableArray(o.slice())),vec3.normalize(o,o),M.push.apply(M,_toConsumableArray(o.slice())),O.push([ye,1-$]),T.push(ye,1-$)}if(k>0)for(var $e=b.length,ut=$e-2*(f+1);ut+f+2<$e;ut++)v.push([ut,ut+1,ut+f+1]),y.push(ut,ut+1,ut+f+1),v.push([ut+f+1,ut+1,ut+f+2]),y.push(ut+f+1,ut+1,ut+f+2)}return{cells:v,positions:b,uvs:O,positionsArr:T,indicesArr:y,normalArr:M}}var xg=Or.Ue(),vL=Or.Ue(),Ws=Or.Ue(),Pp=Or.Ue(),lv=Or.Ue();function V0(e,r,t,n,i){Or.IH(e,t,n),Or.Fv(e,e),r=Or.al(-e[1],e[0]);var o=Or.al(-t[1],t[0]);return[i/Or.AK(r,o),r]}function Op(e,r){return Or.t8(e,-r[1],r[0])}function cv(e,r,t){return Or.lu(e,r,t),Or.Fv(e,e),e}function j0(e,r){return e[0]===r[0]&&e[1]===r[1]}function mL(e){for(var r=new Map,t=0;t0&&arguments[0]!==void 0?arguments[0]:{};(0,q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,V.Z)(e,[{key:"simpleExtrude",value:function(t){var n=this.complex;if(t.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var i=t.length,o=n.startIndex,s=1;sthis.miterLimit&&(pn=!0)}pn?(M.push(this.normal[0],this.normal[1],0),M.push(Mr[0],Mr[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Wt.Z)(this.lastFlip!==-br?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Mr,Jt,this.totalDistance),b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),br=-1,Or.JG(this.normal,Mr),y+=2),this.lastFlip=br}else{if(Op(this.normal,Ws),O){var $e=Or.Ue(),ut=Or.Ue();Or.lu(ut,Ws,this.normal),Or.IH($e,Ws,this.normal),M.push(ut[0],ut[1],0),M.push($e[0],$e[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ko([o[0],o[1]]),O=ko([i[0],i[1]]);cv(Ws,M,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(M,O),this.totalDistance+=k),this.normal||(this.normal=Or.Ue(),Op(this.normal,Ws)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,Ws),Or.IH(G,this.normal,Ws),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-k);if(f.push(n+0,n+1,n+2),s){var Le=ko([s[0],s[1]]);j0(M,Le)&&Or.IH(Le,M,Or.Fv(Le,Or.$X(Le,M,O))),cv(Pp,Le,M);var $e=V0(lv,Or.Ue(),Ws,Pp,this.thickness),ut=(0,yn.Z)($e,2),vt=ut[0],Rt=ut[1],Jt=Or.AK(lv,this.normal)<0?-1:1,Mr=T;if(!Mr&&this.join==="miter"){var br=vt;br>this.miterLimit&&(Mr=!0)}Mr?(y.push(this.normal[0],this.normal[1],0),y.push(Rt[0],Rt[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Wt.Z)(this.lastFlip!==-Jt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Rt,vt,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Jt=-1,Or.JG(this.normal,Rt),l+=2),this.lastFlip=Jt}else{if(Op(this.normal,Ws),b){var oe=Or.Ue(),ye=Or.Ue();Or.lu(ye,Ws,this.normal),Or.IH(oe,Ws,this.normal),y.push(ye[0],ye[1],0),y.push(oe[0],oe[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}(),La=L(54442);function Dw(e){var r=e[0][0],t=e[0][e[0].length-1];r[0]===t[0]&&r[1]===t[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var n=e[0].length,i=fs().flatten(e),o=i.vertices,s=i.dimensions,l=[],f=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,t=e[0][0],n=e[0][e[0].length-1];t[0]===n[0]&&t[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var i=e[0].length,o=fs().flatten(e),s=o.vertices,l=o.dimensions,f=[],v=[],y=[],b=0;b3&&arguments[3]!==void 0?arguments[3]:!1,i=La.create(),o=La.create(),s=La.create();n&&(e=Bu(e),r=Bu(r),t=Bu(t));var l=La.fromValues.apply(La,(0,Wt.Z)(e)),f=La.fromValues.apply(La,(0,Wt.Z)(r)),v=La.fromValues.apply(La,(0,Wt.Z)(t));La.sub(i,v,f),La.sub(o,l,f),La.cross(s,i,o);var y=La.create();return La.normalize(y,s),y}var Yc,cm=function(e){return e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn",e}({}),fm=function(e){return e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon",e}({});function hm(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=Math.PI*2/e,n=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(bg&&bg[e])return bg[e];var t=fv[e]?fv[e]():fv.cylinder(),n=y1([t],r);return bg[e]=n,n}function yL(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=new Float32Array(e.length/t*3),o,s,l,f=vec3.create(),v=vec3.create(),y=vec3.create(),b=0,T=r.length;b 0.0 && v_worldDis < u_cityMinSize) { + float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); + gl_FragColor.rgb += r * r * u_circleSweepColor; + } + + gl_FragColor.a *= u_opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,$w=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +attribute vec2 a_Uv; +varying vec2 v_texCoord; + +varying vec4 v_Color; + +uniform float u_circleSweep; +uniform vec2 u_cityCenter; + +varying float v_worldDis; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + + +void main() { + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + v_texCoord = a_Uv; + + if(u_circleSweep > 0.0) { + vec2 lnglatscale = vec2(0.0); + if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { + lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); + } + v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + setPickingColor(a_PickingColor); +} +`,Yw=function(e){(0,De.Z)(t,e);var r=Ww(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.baseColor,f=l===void 0?"rgb(16,16,16)":l,v=i.brightColor,y=v===void 0?"rgb(255,176,38)":v,b=i.windowColor,T=b===void 0?"rgb(30,60,89)":b,M=i.time,O=M===void 0?0:M,k=i.sweep,$=k===void 0?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:k;return{u_cityCenter:$.sweepCenter||this.cityCenter,u_cityMinSize:this.cityMinSize*$.sweepRadius,u_circleSweep:$.enable?1:0,u_circleSweepColor:fi($.sweepColor).slice(0,3),u_circleSweepSpeed:$.sweepSpeed,u_opacity:s,u_baseColor:fi(f),u_brightColor:fi(y),u_windowColor:fi(T),u_time:this.layer.getLayerAnimateTime()||O}}},{key:"calCityGeo",value:function(){var i=(0,yn.Z)(this.layer.getSource().extent,4),o=i[0],s=i[1],l=i[2],f=i[3];if(this.mapService.version==="GAODE2.x"){this.cityCenter=this.mapService.lngLatToCoord([(l+o)/2,(f+s)/2]);var v=this.mapService.lngLatToCoord([l,f]),y=this.mapService.lngLatToCoord([o,s]);this.cityMinSize=Math.sqrt(Math.pow(v[0]-y[0],2)+Math.pow(v[1]-y[1],2))/4}else{var b=l-o,T=f-s;this.cityCenter=[(l+o)/2,(f+s)/2],this.cityMinSize=Math.sqrt(Math.pow(b,2)+Math.pow(T,2))/4}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.calCityGeo(),this.startModelAnimate(),l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"cityBuilding",vertexShader:$w,fragmentShader:Xw,triangulation:$0,depth:{enable:!0},cull:{enable:!0,face:R.BACK}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?10:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:fn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma);function qw(e){var r=Kw();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Kw(){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(e){return!1}}var Qw=function(e){(0,De.Z)(t,e);var r=qw(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 + + vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 + vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 + + vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 + vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; + + inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 + inverseP2 = inverseP2 / inverseP2.w; + + float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? + vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); + + vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); + float fh; + + v_intensity = texture2D(u_texture, v_texCoord).r; + fh = toBezier(v_intensity, b).y; + gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); + +} +`,dC=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE +uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 +uniform float u_opacity; +varying vec2 v_texCoord; + +uniform vec2 u_ViewportSize; + +float getBlurIndusty() { + float vW = 2.0/u_ViewportSize.x; + float vH = 2.0/u_ViewportSize.y; + vec2 vUv = v_texCoord; + float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; + float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; + float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; + + float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r; + float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r; + float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r; + + float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; + float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; + float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; + + return( + i11 + + i12 + + i13 + + i21 + + i21 + + i22 + + i23 + + i31 + + i32 + + i33 + )/9.0; +} + + +void main(){ + // float intensity = texture2D(u_texture, v_texCoord).r; + float intensity = getBlurIndusty(); + vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0)); + + gl_FragColor =color; + gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; + +} +`,vC=`precision highp float; +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; + +void main() { + v_texCoord = a_Uv; + + gl_Position = vec4(a_Position.xy, 0, 1.); +} +`,mC=`precision highp float; +uniform float u_intensity; +varying float v_weight; +varying vec2 v_extrude; +#define GAUSS_COEF 0.3989422804014327 +void main(){ + float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); + float val = v_weight * u_intensity * GAUSS_COEF * exp(d); + gl_FragColor = vec4(val, 1., 1., 1.); +} +`,gC=`precision highp float; +attribute vec3 a_Position; +attribute float a_Size; +attribute vec2 a_Dir; +uniform float u_intensity; +uniform float u_radius; +varying vec2 v_extrude; +varying float v_weight; +uniform mat4 u_ModelMatrix; + + +#define GAUSS_COEF 0.3989422804014327 + +#pragma include "projection" + +void main(){ + v_weight = a_Size; + float ZERO = 1.0 / 255.0 / 16.0; + float extrude_x = a_Dir.x * 2.0 -1.0; + float extrude_y = a_Dir.y * 2.0 -1.0; + vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); + float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; + v_extrude = extrude_dir * S; + + vec2 offset = project_pixel(v_extrude * u_radius); + vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + } +} +`,_C=ii.isEqual,I1=(R1=(0,gt.b2)(),R1(M1=function(e){(0,De.Z)(t,e);var r=cC(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"render",value:function(i){var o=this,s=this.rendererService,l=s.clear,f=s.useFramebuffer,v=this.layer.getLayerConfig(),y=v.rampColors;f(this.heatmapFramerBuffer,function(){l({color:[0,0,0,0],depth:1,stencil:0,framebuffer:o.heatmapFramerBuffer}),o.drawIntensityMode()}),_C(this.preRampColors,y)||this.updateColorTexture(),this.shapeType==="heatmap"?this.drawColorMode(i):this.draw3DHeatMap(i)}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T,M,O,k;return me().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return l=this.rendererService,f=l.createFramebuffer,v=l.getViewportSize,y=l.createTexture2D,b=this.styleAttributeService.getLayerStyleAttribute("shape"),T=(b==null||(s=b.scale)===null||s===void 0?void 0:s.field)||"heatmap",this.shapeType=T,G.next=6,this.buildHeatMapIntensity();case 6:return this.intensityModel=G.sent,this.colorModel=T==="heatmap"?this.buildHeatmapColor():this.build3dHeatMap(),M=v(),O=M.width,k=M.height,this.heatmapFramerBuffer=f({color:y({width:Math.floor(O/4),height:Math.floor(k/4),wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.LINEAR,mag:R.LINEAR}),depth:!1}),this.updateColorTexture(),G.abrupt("return",[this.intensityModel,this.colorModel]);case 12:case"end":return G.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"dir",type:fn.Attribute,descriptor:{name:"a_Dir",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?1:s;return[l]}}})}},{key:"buildHeatMapIntensity",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=C1,f.next=3,this.layer.buildLayerModel({moduleName:"heatmapIntensity",vertexShader:gC,fragmentShader:mC,triangulation:C1,depth:{enable:!1},cull:{enable:!0,face:Qi(this.mapService.version)}});case 3:return s=f.sent,f.abrupt("return",s);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildHeatmapColor",value:function(){this.shaderModuleService.registerModule("heatmapColor",{vs:vC,fs:dC});var i=this.shaderModuleService.getModule("heatmapColor"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService,v=f.createAttribute,y=f.createElements,b=f.createBuffer,T=f.createModel;return T({vs:o,fs:s,attributes:{a_Position:v({buffer:b({data:[-1,1,0,1,1,0,-1,-1,0,1,-1,0],type:R.FLOAT}),size:3}),a_Uv:v({buffer:b({data:[0,1,1,1,0,0,1,0],type:R.FLOAT}),size:2})},uniforms:(0,H.Z)({},l),depth:{enable:!1},elements:y({data:[0,2,1,2,3,1],type:R.UNSIGNED_INT,count:6})})}},{key:"drawIntensityMode",value:function(){var i,o=this.layer.getLayerConfig(),s=o.opacity,l=o.intensity,f=l===void 0?10:l,v=o.radius,y=v===void 0?5:v;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),(i=this.intensityModel)===null||i===void 0||i.draw({uniforms:{u_opacity:s||1,u_radius:y,u_intensity:f},blend:{enable:!0,func:{srcRGB:R.ONE,srcAlpha:1,dstRGB:R.ONE,dstAlpha:1}},stencil:{enable:!1,mask:255,func:{cmp:514,ref:1,mask:255}}}),this.layer.hooks.afterRender.call()}},{key:"drawColorMode",value:function(i){var o,s=this.layer.getLayerConfig(),l=s.opacity;(o=this.colorModel)===null||o===void 0||o.draw({uniforms:{u_opacity:l||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer},blend:this.getBlend(),stencil:this.getStencil(i)})}},{key:"draw3DHeatMap",value:function(i){var o,s=this.layer.getLayerConfig(),l=s.opacity,f=ve.create();ve.invert(f,this.cameraService.getViewProjectionMatrixUncentered()),(o=this.colorModel)===null||o===void 0||o.draw({uniforms:{u_opacity:l||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer,u_ViewProjectionMatrixUncentered:this.cameraService.getViewProjectionMatrixUncentered(),u_InverseViewProjectionMatrix:(0,Wt.Z)(f)},blend:{enable:!0,func:{srcRGB:R.SRC_ALPHA,srcAlpha:1,dstRGB:R.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},stencil:this.getStencil(i)})}},{key:"build3dHeatMap",value:function(){var i=this.rendererService.getViewportSize,o=i(),s=o.width,l=o.height,f=lC(s/4,l/4);this.shaderModuleService.registerModule("heatmap3dColor",{vs:pC,fs:hC});var v=this.shaderModuleService.getModule("heatmap3dColor"),y=v.vs,b=v.fs,T=v.uniforms,M=this.rendererService,O=M.createAttribute,k=M.createElements,$=M.createBuffer,G=M.createModel;return G({vs:y,fs:b,attributes:{a_Position:O({buffer:$({data:f.vertices,type:R.FLOAT}),size:3}),a_Uv:O({buffer:$({data:f.uvs,type:R.FLOAT}),size:2})},primitive:R.TRIANGLES,uniforms:(0,H.Z)({},T),depth:{enable:!0},blend:{enable:!0,func:{srcRGB:R.SRC_ALPHA,srcAlpha:1,dstRGB:R.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},elements:k({data:f.indices,type:R.UNSIGNED_INT,count:f.indices.length})})}},{key:"updateStyle",value:function(){this.updateColorTexture()}},{key:"updateColorTexture",value:function(){var i=this.rendererService.createTexture2D;this.texture&&this.texture.destroy();var o=this.layer.getLayerConfig(),s=o.rampColors,l=So(s);this.colorTexture=i({data:new Uint8Array(l.data),width:l.width,height:l.height,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.NEAREST,mag:R.NEAREST,flipY:!1}),this.preRampColors=s}}]),t}(Ma))||M1);function yC(e){var r=xC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function xC(){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(e){return!1}}var bC=`precision highp float; +varying vec4 v_color; +uniform float u_opacity: 1; + +#pragma include "picking" + +void main() { + gl_FragColor = v_color; + gl_FragColor.a *= u_opacity; + + gl_FragColor = filterColor(gl_FragColor); +} +`,EC=`precision highp float; +// \u591A\u8FB9\u5F62\u9876\u70B9\u5750\u6807 +attribute vec3 a_Position; +// \u591A\u8FB9\u5F62\u7ECF\u7EAC\u5EA6\u5750\u6807 +attribute vec3 a_Pos; +attribute float a_Size; +attribute vec4 a_Color; +uniform vec2 u_radius; +uniform float u_coverage: 0.9; +uniform float u_angle: 0; +uniform mat4 u_ModelMatrix; + +varying vec4 v_color; + +uniform vec2 u_sceneCenterMercator; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +void main() { + v_color = a_Color; + + mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle)); + vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage)); + vec2 lnglat = unProjectFlat(a_Pos.xy + offset); + + // vec4 project_pos = project_position(vec4(lnglat, 0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0)); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + // gl_Position = u_Mvp * (vec4(project_pos.xy, 0., 1.0)); + // gl_Position = u_Mvp * (vec4(a_Pos.xy + offset, 0., 1.0)); + vec2 customLnglat = customProject(lnglat) - u_sceneCenterMercator; + vec4 project_pos = project_position(vec4(customLnglat, 0, 1.0)); + gl_Position = u_Mvp * vec4(project_pos.xy, 0.0, 1.0); + } else { + vec4 project_pos = project_position(vec4(lnglat, 0, 1.0)); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0)); + } + setPickingColor(a_PickingColor); +} +`,SC=function(e){(0,De.Z)(t,e);var r=yC(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=i.coverage,l=i.angle;return{u_opacity:o||1,u_coverage:s||.9,u_angle:l||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:EC,fragmentShader:bC,triangulation:w1,depth:{enable:!1},primitive:R.TRIANGLES});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:fn.Attribute,descriptor:{name:"a_Pos",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.version==="GAODE2.x"?o.originCoordinates:o.coordinates;return[s[0],s[1],0]}}})}}]),t}(Ma),AC={heatmap:I1,heatmap3d:I1,grid:nC,grid3d:uC,hexagon:SC},TC=AC;function wC(e){var r=CC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function CC(){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(e){return!1}}var RC=function(e){(0,De.Z)(t,e);var r=wC(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},s=this.getModelType();return s==="heatmap"?(this.layerModel&&this.layerModel.render(o),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(l){return l.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models[0].updateAttributesAndElements(i.attributes,i.elements):console.warn("data error")}},{key:"getModelType",value:function(){var i,o=this.styleAttributeService.getLayerStyleAttribute("shape"),s=this.getLayerConfig(),l=s.shape3d,f=this.getSource(),v=f.data.type,y=(o==null||(i=o.scale)===null||i===void 0?void 0:i.field)||"heatmap";return y==="heatmap"||y==="heatmap3d"?"heatmap":v==="hexagon"?(l==null?void 0:l.indexOf(y))===-1?"hexagon":"grid3d":v==="grid"?(l==null?void 0:l.indexOf(y))===-1?"grid":"grid3d":"heatmap"}}]),t}(Ip);function MC(e){var r=IC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function IC(){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(e){return!1}}var PC=`precision mediump float; +uniform float u_opacity: 1.0; +uniform sampler2D u_texture; +varying vec2 v_texCoord; +void main() { + vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)); + gl_FragColor = color; + gl_FragColor.a *= u_opacity; + if(gl_FragColor.a < 0.01) + discard; +} +`,OC=`precision highp float; +uniform mat4 u_ModelMatrix; + +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); + +} +`,DC=function(e){(0,De.Z)(t,e);var r=MC(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity;return{u_opacity:o||1,u_texture:this.texture}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,this.texture=l({height:0,width:0}),b.next=5,s.data.images;case 5:return f=b.sent,this.texture=l({data:f[0],width:f[0].width,height:f[0].height,mag:R.LINEAR,min:R.LINEAR}),b.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:OC,fragmentShader:PC,triangulation:Sg,primitive:R.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return v=b.sent,b.abrupt("return",[v]);case 11:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:fn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),kC={image:DC},FC=kC;function BC(e){var r=LC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var P1=function(e){(0,De.Z)(t,e);var r=BC(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + }; + gl_FragColor.a *=flag; + + gl_FragColor = filterColor(gl_FragColor); +}`,ZC=` +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +varying vec4 v_color; + + +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; +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + // dash: index / (segmentNumber - 1.); + // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + return index / (segmentNumber - 1.); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + 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 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; + + v_distance_ratio = segmentIndex / segmentNumber; + + 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)); + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + + gl_PointSize = 5.0; + setPickingColor(a_PickingColor); +} +`,VC=` +#define Animate 0.0 +#define LineTexture 1.0 +uniform float u_textureBlend; +uniform float u_blur : 0.9; +uniform float u_line_type: 0.0; +// varying vec2 v_normal; +varying vec4 v_dash_array; +varying vec4 v_color; + +uniform float u_time; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; + +uniform float segmentNumber; +varying vec2 v_iconMapUV; +varying vec4 v_lineData; + + +#pragma include "picking" + +void main() { + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + gl_FragColor = v_color; + + + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_lineData.b, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + } + + // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE + if(u_line_texture == LineTexture) { // while load texture + float arcRadio = smoothstep( 0.0, 1.0, (v_lineData.r / segmentNumber)); + // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); + + float count = v_lineData.g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + float v = v_lineData.a; // \u6A2A\u5411 v + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + + vec4 pattern = texture2D(u_texture, uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + + } else { + gl_FragColor = filterColor(gl_FragColor); + } +}`,jC=`#define Animate 0.0 +#define LineTexture 1.0 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_color; + +uniform float u_lineDir: 1.0; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; +varying vec4 v_lineData; +varying vec2 v_distance_ratio; + + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + // dash: index / (segmentNumber - 1.); + // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + // return index / (segmentNumber - 1.); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(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 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + float d_distance_ratio; + + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + if(u_lineDir != 1.0) { + d_distance_ratio = 1.0 - d_distance_ratio; + } + } + + v_lineData.b = d_distance_ratio; + + 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)); + + + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_lineData.r = d_segmentIndex; + + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + arcDistrance *= 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + // arcDistrance *= 8.0; + arcDistrance = project_pixel_allmap(arcDistrance); + } + v_iconMapUV = a_iconMapUV; + + float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 + float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + v_lineData.g = texCount; + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB + v_lineData.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,HC=`varying vec4 v_color; + +#pragma include "picking" + +void main() { +// \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + + gl_FragColor = v_color; + gl_FragColor = filterColor(gl_FragColor); +}`,WC=` +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +varying vec4 v_color; +varying float v_segmentIndex; + +uniform float u_lineDir: 1.0; + +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + + + + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + v_color = a_Color; + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + 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, 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 + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + 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 *= opacity; + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,GC={solid:0,dash:1},SL=ii.isNumber,XC=function(e){(0,De.Z)(t,e);var r=NC(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + } + + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture + // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); + float arcRadio = v_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + discard; + } else { + gl_FragColor = filterColor(pattern); + } + } + + } else { + gl_FragColor = filterColor(gl_FragColor); + } +} +`,KC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_color; + +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_segmentIndex; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; +varying vec4 v_line_data; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + + v_color = a_Color; + v_color.a = v_color.a * opacity; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,QC=` +#define Animate 0.0 +uniform float u_time; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_Color; + +varying float v_distance_ratio; +#pragma include "picking" + +void main() { + + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + gl_FragColor = v_Color; + + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,JC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; +attribute vec2 a_iconMapUV; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_distance_ratio; + +varying vec4 v_dash_array; +varying vec4 v_color; +varying vec2 v_iconMapUV; +varying vec4 v_Color; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; + } + + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); + + v_Color.a *= opacity; + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,e3={solid:0,dash:1},t3=function(e){(0,De.Z)(t,e);var r=$C(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + gl_FragColor.a *=flag; + } + + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture + // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); + float arcRadio = v_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + discard; + } else { + gl_FragColor = filterColor(pattern); + } + } + + } else { + gl_FragColor = filterColor(gl_FragColor); + } +} +`,a3=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_color; + +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_segmentIndex; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; +varying vec4 v_line_data; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + + v_color = a_Color; + v_color.a = v_color.a * opacity; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,o3=` +#define Animate 0.0 +uniform float u_time; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_Color; + +varying float v_distance_ratio; +#pragma include "picking" + +void main() { + + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + gl_FragColor = v_Color; + + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + gl_FragColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,s3=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute vec4 a_Color; +attribute float a_Size; +attribute vec2 a_iconMapUV; + +uniform float u_globel; +uniform float u_globel_radius; +uniform float u_global_height: 10; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; +varying float v_distance_ratio; + +varying vec4 v_dash_array; +varying vec4 v_color; +varying vec2 v_iconMapUV; +varying vec4 v_Color; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = a_Color; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; + } + + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); + + v_Color.a *= opacity; + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,u3={solid:0,dash:1},l3=function(e){(0,De.Z)(t,e);var r=r3(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=(0,cl.Z)(t.source)==="object"?t.source.type:t.source,i=(0,cl.Z)(t.target)==="object"?t.target.type:t.target,o=(0,cl.Z)(t.source)==="object"?t.source:{},s=o.width,l=s===void 0?n?O1[n]:0:s,f=o.height,v=f===void 0?2:f,y=(0,cl.Z)(t.target)==="object"?t.target:{},b=y.width,T=b===void 0?i?O1[i]:0:b,M=y.height,O=M===void 0?2:M;return{vertices:[0,Hl,1*l].concat((0,Wt.Z)(e),[1,Hl,-1*T],(0,Wt.Z)(e),[1,-Hl,-1*T],(0,Wt.Z)(e),[0,-Hl,1*l],(0,Wt.Z)(e),[0,Hl,1*l],(0,Wt.Z)(e),[1,Hl,-1*T],(0,Wt.Z)(e),[1,-Hl,-1*T],(0,Wt.Z)(e),[0,-Hl,1*l],(0,Wt.Z)(e)),outLineIndices:[0,1,2,0,2,3].map(function(k){return k+r}),indices:[4,5,6,4,6,7].map(function(k){return k+r}),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 D1(e,r){var t=(0,cl.Z)(e)==="object"?e.type:e,n=r==="source"?1:-1,i=(0,cl.Z)(e)==="object"?e:{};switch(t){case"circle":return m3(n,i);case"triangle":return f3(n,i);case"diamond":return p3(n,i);case"rect":return h3(n,i);case"classic":return v3(n,i);case"halfTriangle":return c3(n,i);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function _3(e){var r=e.coordinates.flat(),t=1,n=1;return{vertices:[1,0,0].concat((0,Wt.Z)(r),[1,2,-3],(0,Wt.Z)(r),[1,1,-3],(0,Wt.Z)(r),[0,1,0],(0,Wt.Z)(r),[0,0,0],(0,Wt.Z)(r),[1,0,0],(0,Wt.Z)(r),[1,2,-3],(0,Wt.Z)(r),[1,1,-3],(0,Wt.Z)(r),[0,1,0],(0,Wt.Z)(r),[0,0,0],(0,Wt.Z)(r)),normals:[-t,2*n,1,2*n,-n,1,n,-n,1,n,-n,1,-t,-n,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 y3(e,r){return r?x3(e,r):_3(e)}function x3(e,r){var t=e.coordinates.flat(),n=r,i=n.target,o=i===void 0?"classic":i,s=n.source,l=s===void 0?"circle":s,f=k1(D1(l,"source"),t,0,0),v=g3(t,f.vertices.length/7,r),y=k1(D1(o,"target"),t,1,f.vertices.length/7+v.vertices.length/7),b={vertices:[].concat((0,Wt.Z)(f.vertices),(0,Wt.Z)(v.vertices),(0,Wt.Z)(y.vertices)),indices:[].concat((0,Wt.Z)(f.outLineIndices),(0,Wt.Z)(v.outLineIndices),(0,Wt.Z)(y.outLineIndices),(0,Wt.Z)(f.indices),(0,Wt.Z)(v.indices),(0,Wt.Z)(y.indices)),normals:[].concat((0,Wt.Z)(f.normals),(0,Wt.Z)(v.normals),(0,Wt.Z)(y.normals)),size:7};return b}function k1(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=[],o=e.vertices,s=e.indices,l=e.dimensions,f=e.outLineIndices,v=0;v (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 + } else { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + gl_FragColor.a *= alpha; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { + float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); + // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + float u = fract(arcRadio * count - animateSpeed * count); + // float u = fract(arcRadio * count - animateSpeed); + if(u_animate.x == Animate) { + 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 + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + } else { + gl_FragColor = filterColor(gl_FragColor); + } + + // gl_FragColor = filterColor(gl_FragColor); +}`,M3=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec4 a_Instance; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + +uniform float segmentNumber; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +varying vec4 v_color; + +varying float v_distance_ratio; +uniform float u_line_type: 0.0; +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; +varying vec4 v_dash_array; + +uniform float u_icon_step: 100; +uniform float u_line_texture: 0.0; + +attribute vec2 a_iconMapUV; +varying vec2 v_iconMapUV; +varying vec4 v_line_data; + + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return index / (segmentNumber - 1.); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} +float getAngularDist (vec2 source, vec2 target) { + vec2 delta = source - target; + vec2 sin_half_delta = sin(delta / 2.0); + float a = + sin_half_delta.y * sin_half_delta.y + + cos(source.y) * cos(target.y) * + sin_half_delta.x * sin_half_delta.x; + return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); +} + +vec2 midPoint(vec2 source, vec2 target) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = 0.314; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + return mid; +} +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} + +vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + vec2 mid = midPoint(source, target); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); + }else { + if(abs(angularDist - PI) < 0.001) { + return (1.0 - t) * source + t * target; + } + float a = sin((1.0 - t) * angularDist) / sin(angularDist); + float b = sin(t * angularDist) / sin(angularDist); + vec2 sin_source = sin(source); + vec2 cos_source = cos(source); + vec2 sin_target = sin(target); + vec2 cos_target = cos(target); + float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; + float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; + float z = a * sin_source.y + b * sin_target.y; + return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); + } +} + +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); + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + if(u_line_type == LineTypeDash) { + v_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + total_Distance = total_Distance*16.0; // total_Distance*16.0 \u8C03\u6574\u9ED8\u8BA4\u7684\u6548\u679C + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; + } + + if(u_animate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; + } + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + v_distance_ratio = segmentIndex / segmentNumber; + vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); + vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); + +v_line_data.g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; + float d_arcDistrance = length(source - target); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + d_arcDistrance = d_arcDistrance * 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + d_arcDistrance = project_pixel_allmap(d_arcDistrance); + } + float d_pixelLen = project_pixel(u_icon_step)/8.0; +v_line_data.b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB +v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + setPickingColor(a_PickingColor); +} + +`,I3={solid:0,dash:1},P3=function(e){(0,De.Z)(t,e);var r=w3(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (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 + } else { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + + gl_FragColor = filterColor(gl_FragColor); +} +`,B3=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; + +attribute vec2 a_iconMapUV; + +// dash line +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; + +uniform vec4 u_dash_array: [10.0, 5., 0, 0]; + +uniform float u_vertexScale: 1.0; + +#pragma include "projection" +#pragma include "picking" + +varying vec4 v_color; +varying vec4 v_dash_array; +varying float v_d_distance_ratio; + + +void main() { + + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + vec2 offset = project_pixel(size.xy); + v_d_distance_ratio = a_DistanceAndIndex.x / a_Total_Distance; + + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 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 + 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 { + // 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 + 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 + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,L3=`#extension GL_OES_standard_derivatives : enable +#define Animate 0.0 +#define LineTexture 1.0 +uniform float u_textureBlend; + +uniform float u_strokeWidth: 0.0; + +uniform vec3 u_blur; +varying vec4 v_color; +varying vec4 v_stroke; + +// line texture +uniform float u_line_texture; +uniform sampler2D u_texture; +uniform vec2 u_textSize; +varying vec2 v_iconMapUV; +varying vec4 v_texture_data; + + +#pragma include "picking" + +uniform float u_time; +uniform vec4 u_animate: [ 1, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 +// [animate, duration, interval, trailLength], +void main() { + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + gl_FragColor = v_color; + // anti-alias + // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + gl_FragColor.a *= alpha; + } + + if(u_line_texture == LineTexture) { // while load texture + float aDistance = v_texture_data.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = v_texture_data.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = v_texture_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // v = max(smoothstep(0.95, 1.0, v), v); + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor += pattern; + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = pattern; + } + } + + float v = v_texture_data.a; + float strokeWidth = min(0.5, u_strokeWidth); + // \u7ED8\u5236 border + if(strokeWidth > 0.01) { + float borderOuterWidth = strokeWidth / 2.0; + + + 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, 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); + } + } + + if(v < borderOuterWidth) { + gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth); + } else if(v > 1.0 - borderOuterWidth) { + gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); + } + } + + // blur + float blurV = v_texture_data.a; + if(blurV < 0.5) { + gl_FragColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5); + } else { + gl_FragColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5); + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,F1=` +#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; + +attribute vec2 a_iconMapUV; + +// dash line +attribute float a_Total_Distance; +attribute vec2 a_DistanceAndIndex; + +uniform mat4 u_ModelMatrix; + +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +uniform float u_icon_step: 100; + +uniform float u_heightfixed: 0.0; +uniform float u_vertexScale: 1.0; +uniform float u_raisingHeight: 0.0; + +#pragma include "projection" +#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; + + +uniform float u_linearColor: 0; +uniform float u_arrow: 0.0; +uniform float u_arrowHeight: 3.0; +uniform float u_arrowWidth: 2.0; +uniform float u_tailWidth: 1.0; + +varying vec4 v_texture_data; + +vec2 calculateArrow(vec2 offset) { + /* + * \u5728\u652F\u6301\u7BAD\u5934\u7684\u65F6\u5019\uFF0C\u7B2C\u4E8C\u3001\u7B2C\u4E09\u7EC4\u9876\u70B9\u662F\u989D\u5916\u63D2\u5165\u7528\u4E8E\u6784\u5EFA\u9876\u70B9\u7684 + */ + float arrowFlag = -1.0; + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // \u9AD8\u5FB7 2.0 \u7684\u65CB\u8F6C\u89D2\u5EA6\u4E0D\u540C + arrowFlag = 1.0; + } + float pi = arrowFlag * 3.1415926/2.; + if(a_Miter < 0.) { + // \u6839\u636E\u7EBF\u7684\u4E24\u4FA7\u504F\u79FB\u4E0D\u540C\u3001\u65CB\u8F6C\u7684\u65B9\u5411\u76F8\u53CD + pi = -pi; + } + highp float angle_sin = sin(pi); + highp float angle_cos = cos(pi); + // \u8BA1\u7B97\u5782\u76F4\u4E0E\u7EBF\u65B9\u5411\u7684\u65CB\u8F6C\u77E9\u9635 + mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); + float arrowWidth = u_arrowWidth; + float arrowHeight = u_arrowHeight; + + vec2 arrowOffset = vec2(0.0); + /* + * a_DistanceAndIndex.y \u7528\u4E8E\u6807\u8BB0\u5F53\u524D\u9876\u70B9\u5C5E\u4E8E\u54EA\u4E00\u7EC4\uFF08\u4E24\u4E2A\u9876\u70B9\u4E00\u7EC4\uFF0C\u6784\u6210\u7EBF\u7684\u5176\u5B9E\u662F\u77E9\u5F62\uFF0C\u6700\u7B80\u9700\u8981\u56DB\u4E2A\u9876\u70B9\u3001\u4E24\u7EC4\u9876\u70B9\u6784\u6210\uFF09 + */ + if(a_DistanceAndIndex.y == 0.0) { + // \u7BAD\u5934\u5C16\u90E8 + offset = vec2(0.0); + } else if(a_DistanceAndIndex.y == 1.0) { + // \u7BAD\u5934\u4E24\u4FA7 + arrowOffset = rotation_matrix*(offset * arrowHeight); + offset += arrowOffset; // \u6CBF\u7EBF\u504F\u79FB + offset = offset * arrowWidth; // \u5782\u76F4\u7EBF\u5411\u5916\u504F\u79FB\uFF08\u662F\u6784\u5EFA\u7BAD\u5934\u4E24\u4FA7\u7684\u9876\u70B9\uFF09 + } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) { + // \u504F\u79FB\u5176\u4F59\u7684\u70B9\u4F4D\uFF08\u5C06\u957F\u5EA6\u8BA9\u4F4D\u7ED9\u7BAD\u5934\uFF09 + arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth; + offset += arrowOffset;// \u6CBF\u7EBF\u504F\u79FB + } + + return offset; +} + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + + v_iconMapUV = a_iconMapUV; + d_texPixelLen = project_float_pixel(u_icon_step); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + v_color = a_Color; + v_color.a *= opacity; + v_stroke = stroke; + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + + vec2 offset = project_pixel(size.xy); + + float lineDistance = a_DistanceAndIndex.x; + float currentLinePointRatio = lineDistance / a_Total_Distance; + + if(u_arrow > 0.0) { + // \u8BA1\u7B97\u7BAD\u5934 + offset = calculateArrow(offset); + + if(a_DistanceAndIndex.y > 4.0) { + offset *= mix(1.0, u_tailWidth, currentLinePointRatio); + } + } + + float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 + float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 + float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_texture_data = vec4(currentLinePointRatio, lineDistance, d_texPixelLen, texV); + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + + 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 + 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 { + // 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 + 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 + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,N3=`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; + +#pragma include "picking" + + +void main() { + float linearRadio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + if(u_linearDir < 1.0) { + linearRadio = v_texture_data.a; + } + + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + gl_FragColor = mix(u_sourceColor, u_targetColor, linearRadio); + gl_FragColor.a *= v_color.a; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + gl_FragColor = v_color; + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,U3={solid:0,dash:1},B1=function(e){(0,De.Z)(t,e);var r=D3(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 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 + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,wL=ii.isNumber,H3=function(e){(0,De.Z)(t,e);var r=z3(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 1.0/u_iconStepCount) { + flag = 1.0; + } + u = fract(u*u_iconStepCount); + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture2D(u_texture, uv); + + // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 + if(flag > 0.0) { + pattern = vec4(0.0); + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + gl_FragColor = filterColor(gl_FragColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(gl_FragColor.a <= 0.0) { + pattern.a = 0.0; + } + gl_FragColor = filterColor(pattern); + } + } + + + // blur - AA + if(v < v_blur) { + gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur); + } else if(v > 1.0 - v_blur) { + gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); + } + + gl_FragColor = filterColor(gl_FragColor); +} +`,J3=`#define Animate 0.0 + +attribute float a_Miter; +attribute vec4 a_Color; +attribute vec2 a_Size; +attribute vec3 a_Normal; +attribute vec3 a_Position; +attribute vec2 a_iconMapUV; +attribute float a_Total_Distance; +attribute float a_Distance; + +uniform mat4 u_ModelMatrix; + +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; +uniform float u_icon_step: 100; +uniform float u_heightfixed; +uniform float u_linearColor: 0; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +varying vec2 v_iconMapUV; +varying vec4 v_color; +varying float v_blur; +varying float v_radio; +varying vec4 v_dataset; + +void main() { + + + float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + + v_iconMapUV = a_iconMapUV; + if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + d_texPixelLen = project_pixel(u_icon_step); + } else { + d_texPixelLen = u_icon_step; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + if(u_animate.x == Animate || u_linearColor == 1.0) { + d_distance_ratio = a_Distance / a_Total_Distance; + } + + float miter = (a_Miter + 1.0)/2.0; + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + v_dataset[0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + v_dataset[1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + v_dataset[2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + v_dataset[3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + originSize = project_float_meter(a_Size.x); // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + } + + + float wallHeight = originSize * miter; + float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); + + v_blur = min(project_float_pixel(2.0) / originSize, 0.05); + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,eR=function(e){(0,De.Z)(t,e);var r=q3(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.01 + float blurWidth = (1.0 - v_blur)/2.0; + vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); + if(fragmengTocenter > v_innerRadius + blurWidth) { + gl_FragColor = stroke; + } else if(fragmengTocenter > v_innerRadius - blurWidth){ + float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); + gl_FragColor = mix(v_color, stroke, mixR); + } else { + gl_FragColor = v_color; + } + } else { + // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 + gl_FragColor = v_color; + } + + gl_FragColor = filterColor(gl_FragColor); + + if(u_additive > 0.0) { + gl_FragColor *= circleClipOpacity; + } else { + gl_FragColor.a *= circleClipOpacity; + } + +} +`,uR=` +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; + +attribute float a_Size; +attribute vec4 a_Color; +varying vec4 v_color; + +uniform float u_opacity : 1; +uniform vec2 u_offsets; +uniform float u_stroke_width; + +varying float v_blur; +varying float v_innerRadius; + + + +#pragma include "projection" +#pragma include "picking" +#pragma include "project" +void main() { + v_color = vec4(a_Color.xyz, a_Color.w * u_opacity); + v_blur = 1.0 - max(2.0/a_Size, 0.05); + v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); + + vec2 offset = project_pixel(u_offsets); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); + } else { // else + vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); + } + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`;function N1(e){var r=e.coordinates;return{vertices:(0,Wt.Z)(r),indices:[0],size:r.length}}var lR=function(e){(0,De.Z)(t,e);var r=aR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.offsets,f=l===void 0?[0,0]:l,v=i.blend,y=i.strokeOpacity,b=y===void 0?1:y,T=i.strokeWidth,M=T===void 0?0:T,O=i.stroke,k=O===void 0?"#fff":O;return{u_additive:v==="additive"?1:0,u_opacity:s,u_offsets:f,u_stroke_opacity:b,u_stroke_width:M,u_stroke_color:fi(k)}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=N1,f.next=3,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:uR,fragmentShader:sR,triangulation:N1,depth:{enable:!1},primitive:R.POINTS});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?1:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function cR(e){var r=fR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function fR(){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(e){return!1}}var hR=`varying vec4 v_color; +uniform float u_opacity: 1.0; + +uniform float u_pickLight: 0.0; + +#pragma include "picking" + + +uniform float u_linearColor: 0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; + +uniform float u_opacitylinear: 0.0; +uniform float u_opacitylinear_dir: 1.0; +varying float v_lightWeight; +varying float v_barLinearZ; +void main() { + + gl_FragColor = v_color; + + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + if(u_opacitylinear > 0.0) { + gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - v_barLinearZ): v_barLinearZ; + } + + // picking + if(u_pickLight > 0.0) { + gl_FragColor = filterColorAlpha(gl_FragColor, v_lightWeight); + } else { + gl_FragColor = filterColor(gl_FragColor); + } +} +`,pR=`precision highp float; + +#define pi 3.1415926535 +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec3 a_Position; +attribute vec3 a_Pos; +attribute vec4 a_Color; +attribute vec3 a_Size; +attribute vec3 a_Normal; + +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_globel; +uniform float u_r; +uniform mat4 u_ModelMatrix; + +varying vec4 v_color; + +uniform float u_opacity : 1; +uniform float u_lightEnable: 1; +varying float v_lightWeight; +varying float v_barLinearZ; +// \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } +} + +float getXRadian(float y, float r) { + return atan(y/r); +} + +void main() { + + + float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF + + textureOffset = opacityAndOffset.g; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec3 size = a_Size * a_Position; + + // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C + v_barLinearZ = a_Position.z; + + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } + } + + + vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); + + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + v_lightWeight = lightWeight; + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, barLinearZ); + v_color.rgb *= lightWeight; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + v_color = a_Color; + } + v_color.a *= u_opacity; + + + // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 + //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 + float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); + float xRadian = getXRadian(a_Pos.y, r); + float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 mx = mat4( + 1,0,0,0, + 0,xcos,-xsin,0, + 0,xsin,xcos,0, + 0,0,0,1); + + //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 + float yRadian = getYRadian(a_Pos.x, a_Pos.z); + float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 my = mat4( + ycos,0,-ysin,0, + 0,1,0,0, + ysin,0,ycos,0, + 0,0,0,1); + + gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); + + + setPickingColor(a_PickingColor); +} +`,dR=ii.isNumber,vR=function(e){(0,De.Z)(t,e);var r=cR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&s.enable){var ut=s.speed,vt=ut===void 0?.01:ut;this.raiseCount+=vt,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(T),u_heightfixed:Number(O),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:dR(f)?f:1,u_linearColor:ye,u_sourceColor:Le,u_targetColor:$e,u_opacitylinear:Number($.enable),u_opacitylinear_dir:$.dir==="up"?1:0,u_lightEnable:Number(oe)}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption.repeat,f=l===void 0?1:l,this.raiseRepeat=f,b.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:pR,fragmentShader:hR,triangulation:W0,depth:{enable:!0},cull:{enable:!0,face:Qi(this.mapService.version)},blend:this.getBlend()});case 4:return v=b.sent,b.abrupt("return",[v]);case 6:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:fn.Attribute,descriptor:{name:"a_Pos",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Ds(o.coordinates);return _1([s[0],s[1]])}}})}}]),t}(Ma);function mR(e){var r=gR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function gR(){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(e){return!1}}var _R=`uniform float u_additive; +uniform float u_opacity : 1; +uniform float u_stroke_opacity : 1; +uniform float u_stroke_width : 2; + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +#pragma include "sdf_2d" +#pragma include "picking" + + +void main() { + int shape = int(floor(v_data.w + 0.5)); + + vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke; + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + strokeWidth); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } + + if(outer_df > antialiasblur + 0.018) discard; + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + if(strokeWidth < 0.01) { + gl_FragColor = vec4(v_color.rgb, v_color.a * u_opacity); + } else { + gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), u_stroke_color * u_stroke_opacity, color_t); + } + + if(u_additive > 0.0) { + gl_FragColor *= opacity_t; + gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); + } else { + gl_FragColor.a *= opacity_t; + gl_FragColor = filterColor(gl_FragColor); + } +} +`,yR=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +attribute float a_Shape; +uniform mat4 u_ModelMatrix; + + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; + +uniform float u_opacity : 1; +uniform float u_stroke_opacity : 1; +uniform float u_stroke_width : 2; +uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; +uniform vec2 u_offsets; + +uniform float u_blur : 0.0; + +#pragma include "projection" +#pragma include "picking" + + +void main() { + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; + + // unpack color(vec2) + v_color = a_Color; + + // radius(16-bit) + v_radius = newSize; + + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur); + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + + + gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + u_offsets, 1.0); + + setPickingColor(a_PickingColor); +} +`,xR=function(e){(0,De.Z)(t,e);var r=mR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.strokeOpacity,f=l===void 0?1:l,v=i.strokeWidth,y=v===void 0?0:v,b=i.stroke,T=b===void 0?"rgba(0,0,0,0)":b,M=i.blend,O=i.blur,k=O===void 0?0:O;return{u_blur:k,u_additive:M==="additive"?1:0,u_opacity:s,u_stroke_opacity:f,u_stroke_width:y,u_stroke_color:fi(T)}}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=A1,f.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:yR,fragmentShader:_R,triangulation:A1,depth:{enable:!0},blend:this.getBlend()});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=(0,yn.Z)(f,3),b=y[0],T=y[1],M=y[2],O=La.fromValues(0,0,1),k=La.fromValues(b,0,M),$=b>=0?La.angle(O,k):Math.PI*2-La.angle(O,k),G=Math.PI*2-Math.asin(T/100),oe=ve.create();ve.rotateY(oe,oe,$),ve.rotateX(oe,oe,G);var ye=La.fromValues(1,1,0);La.transformMat4(ye,ye,oe),La.normalize(ye,ye);var Le=La.fromValues(-1,1,0);La.transformMat4(Le,Le,oe),La.normalize(Le,Le);var $e=La.fromValues(-1,-1,0);La.transformMat4($e,$e,oe),La.normalize($e,$e);var ut=La.fromValues(1,-1,0);La.transformMat4(ut,ut,oe),La.normalize(ut,ut);var vt=[].concat((0,Wt.Z)(ye),(0,Wt.Z)(Le),(0,Wt.Z)($e),(0,Wt.Z)(ut)),Rt=v%4*3;return[vt[Rt],vt[Rt+1],vt[Rt+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:fn.Attribute,descriptor:{name:"a_Shape",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.layer.getLayerConfig().shape2d,y=v.indexOf(f);return[y]}}})}}]),t}(Ma);function bR(e){var r=ER();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ER(){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(e){return!1}}var SR=`in vec4 v_color; +in float v_lightWeight; +out vec4 outputColor; + + +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; + +#pragma include "picking" + +void main() { + + outputColor = v_color; + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + // picking + if(u_pickLight > 0.0) { + outputColor = filterColorAlpha(outputColor, v_lightWeight); + } else { + outputColor = filterColor(outputColor); + } +} +`,AR=`#define pi 3.1415926535 +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec3 a_Size; +layout(location = 11) in vec3 a_Extrude; +layout(location = 13) in vec3 a_Normal; + +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; +out vec4 v_color; +out float v_lightWeight; +out float v_barLinearZ; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } +} + +float getXRadian(float y, float r) { + return atan(y/r); +} + +void main() { + + + vec3 size = a_Size * a_Position; + + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } + } + + + vec4 project_pos = project_position(vec4(a_Extrude.xy, 0., 1.0)); + + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + + v_lightWeight = lightWeight; + + v_color = a_Color; + + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, a_Position.z); + v_color.a = v_color.a * opacity; + } else { + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + } + + if(u_opacitylinear > 0.0) { + v_color.a *= u_opacitylinear_dir > 0.0 ? (1.0 - a_Position.z): a_Position.z; + } + + + gl_Position = project_common_position_to_clipspace_v2(pos); + + setPickingColor(a_PickingColor); +} +`,U1=function(e){(0,De.Z)(t,e);var r=bR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&s.enable){var Le=s.speed,$e=Le===void 0?.01:Le;this.raiseCount+=$e,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var ut={u_pickLight:Number(y),u_heightfixed:Number(T),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:G,u_sourceColor:oe,u_targetColor:ye,u_opacitylinear:Number(O.enable),u_opacitylinear_dir:O.dir==="up"?1:0,u_lightEnable:Number($)},vt=this.getUniformsBufferInfo(ut);return vt}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=this.layer.getLayerConfig(),l=s.depth,f=l===void 0?!0:l,v=s.animateOption.repeat,y=v===void 0?1:v,this.raiseRepeat=y,this.initUniformsBuffer(),M.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:AR,fragmentShader:SR,triangulation:W0,inject:this.getInject(),cull:{enable:!0,face:Qi(this.mapService.version)},depth:{enable:f}});case 5:return b=M.sent,M.abrupt("return",[b]);case 7:case"end":return M.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",shaderLocation:Ms.NORMAL,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Ds(o.coordinates);return[s[0],s[1],0]}}})}}]),t}(Ma);function TR(e){var r=wR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var z1=` +uniform float u_additive; + + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; +uniform float u_time; +uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + +#pragma include "sdf_2d" +#pragma include "picking" + +void main() { + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = smoothstep( + antialiasblur, + 0.0, + inner_df + ); + float PI = 3.14159; + float N_RINGS = 3.0; + float FREQ = 1.0; + + gl_FragColor = v_color; + + float d = length(v_data.xy); + if(d > 0.5) { + discard; + } + float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0); + + // \u6839\u636E\u53E0\u52A0\u6A21\u5F0F\u9009\u62E9\u6548\u679C + if(u_additive > 0.0) { + gl_FragColor *= intensity; + // \u4F18\u5316\u6C34\u6CE2\u70B9 blend additive \u6A21\u5F0F\u4E0B\u6709\u7684\u62FE\u53D6\u6548\u679C + gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); + } else { + gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity); + gl_FragColor = filterColor(gl_FragColor); + } +} +`,CR=` +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)); + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + u_stroke_width); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + if(u_stroke_width < 0.01) { + outputColor = v_color; + } else { + outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); + } + + if(u_additive > 0.0) { + outputColor *= opacity_t; + outputColor = filterColorAlpha(outputColor, outputColor.a); + } else { + outputColor.a *= opacity_t; + outputColor = filterColor(outputColor); + } + // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 + if(outputColor.a < 0.01) { + discard; + } +} +`,K0=`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; + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + * u_meter2coord \u5728\u7B49\u9762\u79EF\u5927\u5C0F\u7684\u65F6\u5019\u8BBE\u7F6E\u5355\u4F4D + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; + + + + // unpack color(vec2) + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + + if(u_size_unit == 1.0) { + newSize = newSize * u_PixelsPerMeter.z; + } + + v_radius = newSize; + + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur_height_fixed.x); + + vec2 offset = (extrude.xy * (newSize + u_stroke_width) + u_offsets); + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + offset = rotate_matrix(offset,rotation); + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + + + // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + float raisingHeight = u_blur_height_fixed.y; + + if(u_blur_height_fixed.z < 1.0) { // false + raisingHeight = project_pixel(u_blur_height_fixed.y); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_blur_height_fixed.y * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); + + setPickingColor(a_PickingColor); +} +`,Z1=function(e){(0,De.Z)(t,e);var r=TR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.strokeOpacity,s=o===void 0?1:o,l=i.strokeWidth,f=l===void 0?0:l,v=i.blend,y=i.blur,b=y===void 0?0:y,T=i.raisingHeight,M=T===void 0?0:T,O=i.heightfixed,k=O===void 0?!1:O,$=i.unit,G=$===void 0?"pixel":$,oe=(0,H.Z)({u_blur_height_fixed:[b,Number(M),Number(k)],u_additive:v==="additive"?1:0,u_stroke_opacity:s,u_stroke_width:f,u_size_unit:Y0[G]},this.getStyleAttribute()),ye=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Wt.Z)(ye.u_stroke),(0,Wt.Z)(ye.u_offsets),[ye.u_opacity,ye.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Wt.Z)(oe.u_blur_height_fixed),[oe.u_stroke_width,oe.u_stroke_opacity,oe.u_additive,oe.u_size_unit])).buffer)}),oe}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),pf)}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T,M,O,k;return me().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption,f=l===void 0?{enable:!1}:l,v=this.getShaders(f),y=v.frag,b=v.vert,T=v.type,this.layer.triangulation=pf,M=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),O=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(M,O),G.next=8,this.layer.buildLayerModel({moduleName:T,vertexShader:b,fragmentShader:y,inject:this.getInject(),triangulation:pf,depth:{enable:!1}});case 8:return k=G.sent,G.abrupt("return",[k]);case 10:case"end":return G.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(i){if(i.enable)switch(i.type){case"wave":return{frag:z1,vert:K0,type:"pointWave"};default:return{frag:z1,vert:K0,type:"pointWave"}}else return{frag:CR,vert:K0,type:"pointFill"}}},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],b=v%4*3;return[y[b],y[b+1],y[b+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:fn.Attribute,descriptor:{name:"a_Shape",shaderLocation:Ms.SHAPE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.indexOf(f);return[v]}}})}}]),t}(Ma);function RR(e){var r=MR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function MR(){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(e){return!1}}var IR=`uniform sampler2D u_texture; +uniform vec2 u_textSize; +uniform float u_opacity : 1; + +#pragma include "sdf_2d" +#pragma include "picking" +varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 +varying vec2 v_Iconuv; +varying float v_opacity; + +void main() { + + vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; + gl_FragColor = texture2D(u_texture, pos); + gl_FragColor.a *= v_opacity; + + gl_FragColor = filterColor(gl_FragColor); +} +`,PR=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +attribute vec2 a_Uv; + +uniform mat4 u_ModelMatrix; + +uniform mat2 u_RotateMatrix; +uniform int u_size_unit; + +varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 +varying vec2 v_Iconuv; // icon \u8D34\u56FE\u7684 uv \u5750\u6807 + +uniform float u_raisingHeight: 0.0; +uniform float u_heightfixed: 0.0; +varying float v_opacity; +// uniform vec2 u_offsets; // shader \u6CE8\u5165 + + +#pragma include "projection" +#pragma include "picking" +#pragma include "rotation_2d" + +void main() { + vec3 extrude = a_Extrude; + v_uv = (a_Extrude.xy + 1.0)/2.0; + v_uv.y = 1.0 - v_uv.y; + v_Iconuv = a_Uv; + v_opacity = opacity; + float newSize = a_Size; + if(u_size_unit == 1) { + newSize = newSize * u_PixelsPerMeter.z; + } + + // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); + vec2 offset = (extrude.xy * (newSize) + offsets); + + offset = rotate_matrix(offset,rotation); + + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // height fixed + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, 0.0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,OR=function(e){(0,De.Z)(t,e);var r=RR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s= 0.5) { + float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; + textureColor.a *= luma; + } + + + + if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ + gl_FragColor= textureColor; + }else { + gl_FragColor= step(0.01, textureColor.z) * v_color; + } + gl_FragColor.a *= v_opacity; + if (gl_FragColor.a < 0.01) { + discard; + } + gl_FragColor = filterColor(gl_FragColor); +} +`,BR=`precision highp float; +attribute vec3 a_Position; +attribute vec4 a_Color; +attribute vec2 a_Uv; +attribute float a_Size; +varying vec4 v_color; +varying vec2 v_uv; +varying float v_opacity; +uniform mat4 u_ModelMatrix; + + +uniform float u_raisingHeight: 0.0; +uniform float u_heightfixed: 0.0; + +#pragma include "projection" +#pragma include "picking" + +void main() { + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + v_color = a_Color; + v_opacity = opacity; + v_uv = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + vec2 offset = project_pixel(offsets); + + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // false + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`,V1=function(e){(0,De.Z)(t,e);var r=DR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.0) { + gl_FragColor *= opacity_t; + } else { + gl_FragColor.a *= opacity_t; + } + + if(gl_FragColor.a > 0.0) { + gl_FragColor = filterColor(gl_FragColor); + } + + vec2 extrude = v_exteude; + vec2 dir = normalize(extrude); + vec2 baseDir = vec2(1.0, 0.0); + float pi = 3.14159265359; + float flag = sign(dir.y); + float rades = dot(dir, baseDir); + float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; + // simple AA + if(radar_v > 0.99) { + radar_v = 1.0 - (radar_v - 0.99)/0.01; + } + + gl_FragColor.a *= radar_v; +} +`,HR=`attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Extrude; +attribute float a_Size; +uniform float u_speed: 1.0; +uniform float u_time; + +uniform mat4 u_ModelMatrix; + +uniform int u_size_unit; + +varying vec4 v_data; +varying vec4 v_color; +varying float v_radius; +varying vec2 v_exteude; + +#pragma include "projection" +#pragma include "picking" + +void main() { + vec3 extrude = a_Extrude; + float newSize = setPickingSize(a_Size); + + float time = u_time * u_speed; + mat2 rotateMatrix = mat2( + cos(time), sin(time), + -sin(time), cos(time) + ); + v_exteude = rotateMatrix * a_Extrude.xy; + + // unpack color(vec2) + v_color = a_Color; + + // anti-alias + float blur = 0.0; + float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); + + if(u_size_unit == 1) { + newSize = newSize * u_PixelsPerMeter.z; + } + // radius(16-bit) + v_radius = newSize; + + vec2 offset = (extrude.xy * (newSize)); + vec3 aPosition = a_Position; + + // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D + offset = project_pixel(offset); + + v_data = vec4(extrude.x, extrude.y, antialiasblur, -1.0); + + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + setPickingColor(a_PickingColor); +} +`,WR=function(e){(0,De.Z)(t,e);var r=ZR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.blend,f=i.speed,v=f===void 0?1:f,y=i.unit,b=y===void 0?"pixel":y;return{u_size_unit:Y0[b],u_speed:v,u_additive:l==="additive"?1:0,u_opacity:s}}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Eg)}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:HR,fragmentShader:jR,triangulation:Eg,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f){var v=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],y=f%4*3;return[v[y],v[y+1],v[y+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?5:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function GR(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=XR(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function XR(e,r){if(e){if(typeof e=="string")return W1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W1(e,r)}}function W1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tthis.width||o<0||n>this.height)return s?!1:[];var f=[];if(t<=0&&n<=0&&this.width<=i&&this.height<=o){if(s)return!0;for(var v=0;v0:f}},{key:"queryCell",value:function(t,n,i,o,s,l,f,v){var y=f.seenUids,b=this.boxCells[s];if(b!==null){var T=this.bboxes,M=GR(b),O;try{for(M.s();!(O=M.n()).done;){var k=O.value;if(!y.box[k]){y.box[k]=!0;var $=k*4;if(t<=T[$+2]&&n<=T[$+3]&&i>=T[$+0]&&o>=T[$+1]&&(!v||v(this.boxKeys[k]))){if(f.hitTest)return l.push(!0),!0;l.push({key:this.boxKeys[k],x1:T[$],y1:T[$+1],x2:T[$+2],y2:T[$+3]})}}}}catch(G){M.e(G)}finally{M.f()}}return!1}},{key:"forEachCell",value:function(t,n,i,o,s,l,f,v){for(var y=this.convertToXCellCoord(t),b=this.convertToYCellCoord(n),T=this.convertToXCellCoord(i),M=this.convertToYCellCoord(o),O=y;O<=T;O++)for(var k=b;k<=M;k++){var $=this.xCellCount*k+O;if(s.call(this,t,n,i,o,$,l,f,v))return}}},{key:"convertToXCellCoord",value:function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}},{key:"convertToYCellCoord",value:function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}}]),e}(),YR=$R,qR=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"viewportPadding",100),this.width=r,this.height=t,this.viewportPadding=Math.max(r,t),this.grid=new YR(r+this.viewportPadding,t+this.viewportPadding,25),this.screenRightBoundary=r+this.viewportPadding,this.screenBottomBoundary=t+this.viewportPadding,this.gridRightBoundary=r+2*this.viewportPadding,this.gridBottomBoundary=t+2*this.viewportPadding}return(0,V.Z)(e,[{key:"placeCollisionBox",value:function(t){var n=t.x1+t.anchorPointX+this.viewportPadding,i=t.y1+t.anchorPointY+this.viewportPadding,o=t.x2+t.anchorPointX+this.viewportPadding,s=t.y2+t.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,i,o,s)||this.grid.hitTest(n,i,o,s)?{box:[]}:{box:[n,i,o,s]}}},{key:"insertCollisionBox",value:function(t,n){var i={featureIndex:n};this.grid.insert(i,t[0],t[1],t[2],t[3])}},{key:"project",value:function(t,n,i){var o=kh.al(n,i,0,1),s=kh.Ue(),l=ve.fromValues.apply(ve,(0,Wt.Z)(t));return kh.fF(s,o,l),{x:(s[0]/s[3]+1)/2*this.width+this.viewportPadding,y:(-s[1]/s[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(t,n,i,o){return i>=0&&t=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function KR(e,r){if(e){if(typeof e=="string")return X1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X1(e,r)}}function X1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t6&&arguments[6]!==void 0?arguments[6]:[0,0],l=arguments.length>7?arguments[7]:void 0,f=e.split(` +`),v=[],y={positionedGlyphs:v,top:s[1],bottom:s[1],left:s[0],right:s[0],lineCount:f.length,text:e};return l?JR(y,r,f,t,n,i,o):QR(y,r,f,t,n,i,o),v.length?y:!1}function tM(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],t=arguments.length>2?arguments[2]:void 0,n=e.positionedGlyphs,i=n===void 0?[]:n,o=[],s=G1(i),l;try{for(s.s();!(l=s.n()).done;){var f=l.value,v=f.metrics,y=4,b=v.advance*f.scale/2,T=t?[f.x+b,f.y]:[0,0],M=t?[0,0]:[f.x+b+r[0],f.y+r[1]],O=(0-y)*f.scale-b+M[0],k=(0-y)*f.scale+M[1],$=O+v.width*f.scale,G=k+v.height*f.scale,oe={x:O,y:k},ye={x:$,y:k},Le={x:O,y:G},$e={x:$,y:G};o.push({tl:oe,tr:ye,bl:Le,br:$e,tex:v,glyphOffset:T})}}catch(ut){s.e(ut)}finally{s.f()}return o}function rM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=nM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function nM(e,r){if(e){if(typeof e=="string")return K1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K1(e,r)}}function K1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t.5||!G||f!==this.preTextStyle.textAllowOverlap)){ye.next=14;break}return ye.next=13,this.reBuildModel();case 13:return ye.abrupt("return",!0);case 14:return ye.abrupt("return",!1);case 15:case"end":return ye.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:fn.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[5],l[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?12:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:fn.Attribute,descriptor:{name:"a_tex",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var i=this.mapService.getBounds();return of(i,.5)}},{key:"initTextFont",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b=b.toString();var T=rM(b),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;f.indexOf(O)===-1&&f.push(O)}}catch(k){T.e(k)}finally{T.f()}}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!1})}},{key:"initIconFontTex",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b="".concat(b),f.indexOf(b)===-1&&f.push(b)}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!0})}},{key:"getTextStyle",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l,v=i.textAllowOverlap,y=v===void 0?!1:v,b=i.padding,T=b===void 0?[0,0]:b,M=i.textAnchor,O=M===void 0?"center":M,k=i.textOffset,$=k===void 0?[0,0]:k,G=i.opacity,oe=G===void 0?1:G,ye=i.strokeOpacity,Le=ye===void 0?1:ye,$e=i.strokeWidth,ut=$e===void 0?0:$e,vt=i.stroke,Rt=vt===void 0?"#000":vt;return{fontWeight:s,fontFamily:f,textAllowOverlap:y,padding:T,textAnchor:O,textOffset:$,opacity:oe,strokeOpacity:Le,strokeWidth:ut,stroke:Rt}}},{key:"generateGlyphLayout",value:function(i){var o=this,s=this.getFontServiceMapping(),l=this.layer.getLayerConfig(),f=l.spacing,v=f===void 0?2:f,y=l.textAnchor,b=y===void 0?"center":y,T=l.textOffset,M=this.rawEncodeData;this.glyphInfo=M.map(function(O){var k=O.shape,$=k===void 0?"":k,G=O.id,oe=O.size,ye=oe===void 0?1:oe,Le=O.textOffset?O.textOffset:T||[0,0],$e=O.textAnchor?O.textAnchor:b||"center",ut=eM($.toString(),s,ye,$e,"left",v,Le,i),vt=tM(ut,Le,!1);return O.shaping=ut,O.glyphQuads=vt,O.centroid=Ds(O.coordinates),O.originCentroid=O.version==="GAODE2.x"?Ds(O.originCoordinates):O.originCentroid=O.centroid,o.glyphInfoMap[G]={shaping:ut,glyphQuads:vt,centroid:Ds(O.coordinates)},O})}},{key:"getFontServiceMapping",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getMappingByKey("".concat(f,"_").concat(s))}},{key:"getFontServiceCanvas",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getCanvasByKey("".concat(f,"_").concat(s))}},{key:"filterGlyphs",value:function(){var i=this,o=this.layer.getLayerConfig(),s=o.padding,l=s===void 0?[0,0]:s,f=o.textAllowOverlap,v=f===void 0?!1:f;if(!v){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var y=this.rendererService.getViewportSize(),b=y.width,T=y.height,M=new qR(b,T),O=this.glyphInfo.filter(function(k){var $=k.shaping,G=k.id,oe=G===void 0?0:G,ye=k.version==="GAODE2.x"?k.originCentroid:k.centroid,Le=k.size,$e=Le/16,ut=i.mapService.lngLatToContainer(ye),vt=M.placeCollisionBox({x1:$.left*$e-l[0],x2:$.right*$e+l[0],y1:$.top*$e-l[1],y2:$.bottom*$e+l[1],anchorPointX:ut.x,anchorPointY:ut.y}),Rt=vt.box;return Rt&&Rt.length?(M.insertCollisionBox(Rt,oe),!0):!1});O.forEach(function(k){i.glyphInfoMap[k.id]=k})}}},{key:"initGlyph",value:function(){var i=this.layer.getLayerConfig(),o=i.iconfont,s=o===void 0?!1:o;s?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(s)}},{key:"updateTexture",value:function(){var i=this.rendererService.createTexture2D,o=this.getFontServiceCanvas();this.textureHeight=o.height,this.texture&&this.texture.destroy(),this.texture=i({data:o,mag:R.LINEAR,min:R.LINEAR,width:o.width,height:o.height})}},{key:"reBuildModel",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.filterGlyphs(),f.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:J1,fragmentShader:Q1,triangulation:ex.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:s=f.sent,this.layer.models=[s];case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Ma),oM={fillImage:OR,fill:Z1,radar:WR,image:V1,normal:H1,simplePoint:lR,extrude:U1,text:tx,earthFill:xR,earthExtrude:vR},sM=oM;function uM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=lM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}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 o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lM(e,r){if(e){if(typeof e=="string")return rx(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rx(e,r)}}function rx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) { + // side face + // if(u_sidesurface < 1.0) { + // discard; + // } + + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + v_Color = linearColor; + } else { + v_Color = a_Color; + } + + } else { + v_Color = a_Color; + } + + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); + + + setPickingColor(a_PickingColor); +} +`,mM=`uniform sampler2D u_texture; +uniform float u_opacity: 1.0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; +uniform float u_linearColor: 0; + +uniform float u_topsurface: 1.0; +uniform float u_sidesurface: 1.0; + +varying vec4 v_Color; +varying vec3 v_uvs; +varying vec2 v_texture_data; + + +#pragma include "picking" + +void main() { + float opacity = u_opacity; + float isSide = v_texture_data.x; + float lightWeight = v_texture_data.y; + float topU = v_uvs[0]; + float topV = 1.0 - v_uvs[1]; + float sidey = v_uvs[2]; + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) {// \u662F\u5426\u662F\u8FB9\u7F18 + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + gl_FragColor = linearColor; + } else { + gl_FragColor = v_Color; + } + } else { + + // top face + if(u_topsurface < 1.0) { + discard; + } + + gl_FragColor = texture2D(u_texture, vec2(topU, topV)); + // gl_FragColor = vec4(1.0, 0., 0., 1.0); + } + + + gl_FragColor.a *= opacity; + gl_FragColor = filterColor(gl_FragColor); +} +`,gM=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +attribute vec3 a_uvs; +uniform mat4 u_ModelMatrix; + +uniform sampler2D u_texture; + + +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; +uniform float u_topsurface: 1.0; +uniform float u_sidesurface: 1.0; +varying vec4 v_Color; +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_raisingHeight: 0.0; +uniform float u_linearColor: 0.0; + +varying vec2 v_texture_data; +varying vec3 v_uvs; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + float lightWeight = calc_lighting(pos); + vec4 project_pos = project_position(pos); + v_uvs = a_uvs; + + v_texture_data = vec2(a_Position.z, lightWeight); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + + + setPickingColor(a_PickingColor); +} +`,_M=`uniform float u_opacity: 1.0; +uniform vec4 u_sourceColor; +uniform vec4 u_targetColor; +uniform float u_linearColor: 0; + +uniform float u_topsurface: 1.0; +uniform float u_sidesurface: 1.0; + +varying vec4 v_Color; +varying vec3 v_uvs; +varying vec2 v_texture_data; + +#pragma include "picking" + +void main() { + float opacity = u_opacity; + float isSide = v_texture_data.x; + float sidey = v_uvs[2]; + float lightWeight = v_texture_data.y; + + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) { + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if( u_linearColor == 1.0) { + // side use linear + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + gl_FragColor = linearColor; + } else { + // side notuse linear + gl_FragColor = v_Color; + } + } else { + // top face + if(u_topsurface < 1.0) { + discard; + } + gl_FragColor = v_Color; + } + + gl_FragColor.a *= opacity; + gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); +} +`,yM=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +attribute vec3 a_uvs; +uniform mat4 u_ModelMatrix; + + +uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A +uniform float u_raisingHeight: 0.0; + +varying vec2 v_texture_data; +varying vec3 v_uvs; +varying vec4 v_Color; + + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + + v_uvs = a_uvs; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + float lightWeight = calc_lighting(pos); + v_texture_data = vec2(a_Position.z,lightWeight); + + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + setPickingColor(a_PickingColor); +} +`,xM=function(e){(0,De.Z)(t,e);var r=hM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.heightfixed,s=o===void 0?!1:o,l=i.raisingHeight,f=l===void 0?0:l,v=i.topsurface,y=v===void 0?!0:v,b=i.sidesurface,T=b===void 0?!0:b,M=i.sourceColor,O=i.targetColor,k=0,$=[1,1,1,1],G=[1,1,1,1];return M&&O&&($=fi(M),G=fi(O),k=1),(0,H.Z)({u_topsurface:Number(y),u_sidesurface:Number(T),u_heightfixed:Number(s),u_raisingHeight:Number(f),u_linearColor:k,u_sourceColor:$,u_targetColor:G,u_texture:this.texture},this.getStyleAttribute())}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.loadTexture();case 2:return l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y;return me().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,v=s.type,T.next=3,this.layer.buildLayerModel({moduleName:v,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:$0});case 3:return y=T.sent,T.abrupt("return",[y]);case 5:case"end":return T.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){var i=this.layer.getLayerConfig(),o=i.pickLight,s=i.mapTexture;return s?{frag:mM,vert:gM,type:"polygonExtrudeTexture"}:o?{frag:_M,vert:yM,type:"polygonExtrudePickLight"}:{frag:dM,vert:vM,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=i,s=this.layer.coordCenter||this.layer.getSource().center,l=o[2]-o[0],f=o[3]-o[1];if(this.mapService.version==="GAODE2.x"){var v=this.mapService.coordToAMap2RelativeCoordinates([i[0],i[1]],s),y=(0,yn.Z)(v,2),b=y[0],T=y[1],M=this.mapService.coordToAMap2RelativeCoordinates([i[2],i[3]],s),O=(0,yn.Z)(M,2),k=O[0],$=O[1];l=k-b,f=$-T,o=[b,T,k,$]}this.styleAttributeService.registerStyleAttribute({name:"uvs",type:fn.Attribute,descriptor:{name:"a_uvs",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(oe,ye,Le){var $e=Le[0],ut=Le[1];return[($e-o[0])/l,(ut-o[1])/f,Le[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(oe,ye,Le,$e,ut){return ut}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(oe){var ye=oe.size,Le=ye===void 0?10:ye;return Array.isArray(Le)?[Le[0]]:[Le]}}})}},{key:"loadTexture",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s=this,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(l=this.layer.getLayerConfig(),f=l.mapTexture,v=this.rendererService.createTexture2D,this.texture=v({height:0,width:0}),!f){b.next=5;break}return b.abrupt("return",new Promise(function(T,M){var O=new Image;O.crossOrigin="anonymous",O.src=f,O.onload=function(){return s.texture=v({data:O,width:O.width,height:O.height,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.LINEAR,mag:R.LINEAR}),T(null)},O.onerror=function(){M(new Error("image load error"))}}));case 5:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Ma);function bM(e){var r=EM();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function EM(){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(e){return!1}}var SM=` +uniform float u_opacity: 1.0; +varying vec4 v_Color; +varying vec2 v_texture_data; + + +#pragma include "picking" + +void main() { + + gl_FragColor = v_Color; + gl_FragColor = filterColor(gl_FragColor); +} +`,AM=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +attribute vec4 a_Color; +attribute vec3 a_Position; +attribute vec3 a_Normal; +attribute float a_Size; +uniform mat4 u_ModelMatrix; + + + + +varying vec4 v_Color; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size + (1.0 - a_Position.z) * extrusionBase, 1.0); + float lightWeight = calc_lighting(pos); + vec4 project_pos = project_position(pos); + v_Color = a_Color; + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + setPickingColor(a_PickingColor); +} +`,TM=function(e){(0,De.Z)(t,e);var r=bM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){return(0,H.Z)({},this.getStyleAttribute())}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y;return me().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,v=s.type,T.next=3,this.layer.buildLayerModel({moduleName:v,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:$0});case 3:return y=T.sent,T.abrupt("return",[y]);case 5:case"end":return T.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){return{frag:SM,vert:AM,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?10:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function wM(e){var r=CM();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function CM(){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(e){return!1}}var RM=`varying vec4 v_color; +#pragma include "picking" + +void main() { + gl_FragColor = v_color; + gl_FragColor = filterColor(gl_FragColor); +} +`,MM=`#pragma include "picking" +uniform float u_opacitylinear: 0.0; +uniform float u_dir: 1.0; +varying vec3 v_linear; +varying vec2 v_pos; +varying vec4 v_Color; + + +void main() { + gl_FragColor = v_Color; + if(u_opacitylinear > 0.0) { + gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; + } + gl_FragColor = filterColor(gl_FragColor); +} +`,IM=`attribute vec4 a_Color; +attribute vec3 a_Position; + +uniform mat4 u_ModelMatrix; + +uniform float u_raisingHeight: 0.0; + +varying vec4 v_Color; + + +#pragma include "projection" +#pragma include "picking" + +uniform float u_opacitylinear: 0.0; + +attribute vec3 a_linear; +varying vec3 v_linear; +varying vec2 v_pos; + +void main() { + if(u_opacitylinear > 0.0) { + v_linear = a_linear; + v_pos = a_Position.xy; + } + v_Color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + setPickingColor(a_PickingColor); +}`,PM=`attribute vec4 a_Color; +attribute vec3 a_Position; + +uniform mat4 u_ModelMatrix; + + +uniform float u_raisingHeight: 0.0; + +varying vec4 v_color; + + +#pragma include "projection" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + setPickingColor(a_PickingColor); +} + +`,OM=function(e){(0,De.Z)(t,e);var r=wM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.raisingHeight,s=o===void 0?0:o,l=i.opacityLinear,f=l===void 0?{enable:!1,dir:"in"}:l;return(0,H.Z)({u_raisingHeight:Number(s),u_opacitylinear:Number(f.enable),u_dir:f.dir==="in"?1:0},this.getStyleAttribute())}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=this.getModelParams(),l=s.frag,f=s.vert,v=s.triangulation,y=s.type,this.layer.triangulation=v,M.next=4,this.layer.buildLayerModel({moduleName:y,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:v,primitive:R.TRIANGLES,depth:{enable:!1}});case 4:return b=M.sent,M.abrupt("return",[b]);case 6:case"end":return M.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig(),o=i.opacityLinear,s=o===void 0?{enable:!1,dir:"in"}:o;s.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:fn.Attribute,descriptor:{name:"a_linear",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(f,v,y){return[y[3],y[4],y[5]]}}})}},{key:"getModelParams",value:function(){var i=this.layer.getLayerConfig(),o=i.opacityLinear,s=o===void 0?{enable:!1}:o;return s.enable?{frag:MM,vert:IM,type:"polygonLinear",triangulation:zw}:{frag:RM,vert:PM,type:"polygonFill",triangulation:Id}}}]),t}(Ma);function DM(e){var r=kM();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function kM(){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(e){return!1}}var FM=` +uniform float u_time: 0.0; +uniform float u_opacity: 1.0; + +varying vec2 v_uv; + +float coast2water_fadedepth = 0.10; +float large_waveheight = .750; // change to adjust the "heavy" waves +float large_wavesize = 3.4; // factor to adjust the large wave size +float small_waveheight = 0.6; // change to adjust the small random waves +float small_wavesize = 0.5; // factor to ajust the small wave size +float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) +float water_glossylight_fact= 120.; // range [1..200] +float particle_amount = 70.; +// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB) +// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color) +uniform vec4 u_watercolor; +uniform vec4 u_watercolor2; +vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights +#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun + +uniform sampler2D u_texture1; +uniform sampler2D u_texture2; +uniform sampler2D u_texture3; + + + +float hash( float n ) { + return fract(sin(n)*43758.5453123); +} + +// 2d noise function +float noise1( in vec2 x ) { + vec2 p = floor(x); + vec2 f = smoothstep(0.0, 1.0, fract(x)); + float n = p.x + p.y*57.0; + return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), + mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); +} + +float noise(vec2 p) { + return texture2D(u_texture2,p*vec2(1./256.)).x; +} + +vec4 highness(vec2 p) { + vec4 t = texture2D(u_texture1,fract(p)); + float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; + return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); +} + +float height_map( vec2 p ) { + vec4 height=highness(p); + /* + height = -0.5+ + 0.5*smoothstep(-100.,0.,-height)+ + 2.75*smoothstep(0.,2.,height)+ + 1.75*smoothstep(2.,4.,height)+ + 2.75*smoothstep(4.,16.,height)+ + 1.5*smoothstep(16.,1000.,height); + */ + + mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); + //p = p*6.; + float f = 0.6000*noise1( p ); p = m*p*1.1*6.; + f += 0.2500*noise( p ); p = m*p*1.32; + f += 0.1666*noise( p ); p = m*p*1.11; + f += 0.0834*noise( p ); p = m*p*1.12; + f += 0.0634*noise( p ); p = m*p*1.13; + f += 0.0444*noise( p ); p = m*p*1.14; + f += 0.0274*noise( p ); p = m*p*1.15; + f += 0.0134*noise( p ); p = m*p*1.16; + f += 0.0104*noise( p ); p = m*p*1.17; + f += 0.0084*noise( p ); + f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; + const float FLAT_LEVEL = 0.92525; + //f = f*0.25+height*0.75; + if (f level) + { + col = CalcTerrain(uv, height); + } + if (height <= level) + { + vec2 dif = vec2(.0, .01); + vec2 pos = uv*15. + vec2(u_time*.01); + float h1 = water_map(pos-dif,waveheight); + float h2 = water_map(pos+dif,waveheight); + float h3 = water_map(pos-dif.yx,waveheight); + float h4 = water_map(pos+dif.yx,waveheight); + vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane + uv += normwater.xy*.002*(level-height); + + col = CalcTerrain(uv, height); + + float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); + float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); + float intensity = col.r*.2126+col.g*.7152+col.b*.0722; + watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); + + vec3 r0 = vec3(uv, WATER_LEVEL); + vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position + float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction + float specular = pow(grad, water_softlight_fact); // used for soft highlights + float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights + float gradpos = dot(vec3(0., 0., 1.), rd); + float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) + float watershade = test_shadow( uv, level ); + watercolor *= 2.2+watershade; + watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; + watercolor /= (1.+specular1*1.25); + watercolor += watershade*specular2*water_specularcolor; + watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); + + col = mix(col, watercolor, coastfade); + } + + + float opacity = u_opacity; + gl_FragColor = vec4(col, opacity); +} +`,BM=`attribute vec2 a_uv; +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; + + +varying vec2 v_uv; + +#pragma include "projection" + +void main() { + v_uv = a_uv; + + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} + +`,LM=ii.isNumber,NM=function(e){(0,De.Z)(t,e);var r=DM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.watercolor,f=l===void 0?"#6D99A8":l,v=i.watercolor2,y=v===void 0?"#0F121C":v;return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:fi(f),u_watercolor2:fi(y),u_opacity:LM(s)?s:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:BM,fragmentShader:FM,triangulation:X0,primitive:R.TRIANGLES,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,o,s;(i=this.texture1)===null||i===void 0||i.destroy(),(o=this.texture2)===null||o===void 0||o.destroy(),(s=this.texture3)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=(0,yn.Z)(i,4),s=o[0],l=o[1],f=o[2],v=o[3],y=f-s,b=v-l;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:fn.Attribute,descriptor:{name:"a_uv",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(M,O,k,$){var G=M.version==="GAODE2.x"?M.originCoordinates[0][$]:k,oe=(0,yn.Z)(G,2),ye=oe[0],Le=oe[1];return[(ye-s)/y,(Le-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,o=this.rendererService.createTexture2D,s={height:0,width:0};this.texture1=o(s),this.texture2=o(s),this.texture3=o(s),l(function(v){i.texture1=f(v[0]),i.texture2=f(v[1]),i.texture3=f(v[2]),i.layerService.reRender()});function l(v){var y=0,b=[],T=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];T.map(function(M){var O=new Image;O.crossOrigin="",O.src=M,b.push(O),O.onload=function(){y++,y===3&&v(b)}})}function f(v){return o({data:v,width:v.width,height:v.height,wrapS:R.MIRRORED_REPEAT,wrapT:R.MIRRORED_REPEAT,min:R.LINEAR,mag:R.LINEAR})}}}]),t}(Ma);function UM(e){var r=zM();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function zM(){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(e){return!1}}var ZM=`uniform sampler2D u_texture; +uniform float u_time: 0.0; +uniform float u_speed: 1.0; +uniform float u_opacity: 1.0; + +varying vec4 v_Color; +varying vec2 v_uv; + +float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } + +float water(vec3 p) { + float t = u_time * u_speed; + p.z += t * 2.; p.x += t * 2.; + vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz; + p.z += t * 3.; p.x += t * 0.52; + vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz; + p.z += t * 4.; p.x += t * 0.8; + vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz; + c1 += c2 - c3; + float z = (c1.x + c1.y + c1.z) / 3.; + return p.y + z / 4.; +} + +float map(vec3 p) { + float d = 100.0; + d = water(p); + return d; +} + +float intersect(vec3 ro, vec3 rd) { + float d = 0.0; + for (int i = 0; i <= 100; i++) { + float h = map(ro + rd * d); + if (h < 0.1) return d; + d += h; + } + return 0.0; +} + +vec3 norm(vec3 p) { + float eps = .1; + return normalize(vec3( + map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), + map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), + map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) + )); +} + +float calSpc() { + vec3 l1 = normalize(vec3(1, 1, 1)); + vec3 ro = vec3(-3, 20, -8); + vec3 rc = vec3(0, 0, 0); + vec3 ww = normalize(rc - ro); + vec3 uu = normalize(cross(vec3(0,1,0), ww)); + vec3 vv = normalize(cross(rc - ro, uu)); + vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); + float d = intersect(ro, rd); + vec3 p = ro + rd * d; + vec3 n = norm(p); + float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); + return spc; +} + +void main() { + float opacity = u_opacity; + gl_FragColor = v_Color; + gl_FragColor.a *= opacity; + + float spc = calSpc(); + gl_FragColor += spc * 0.4; +} +`,VM=`attribute vec4 a_Color; +attribute vec2 a_uv; +attribute vec3 a_Position; +uniform mat4 u_ModelMatrix; + + +varying vec4 v_Color; +varying vec2 v_uv; +uniform float u_opacity: 1.0; + + +#pragma include "projection" + +void main() { + v_uv = a_uv; + + v_Color = a_Color; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} + +`,jM=ii.isNumber,HM=function(e){(0,De.Z)(t,e);var r=UM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.speed,f=l===void 0?.5:l;return{u_texture:this.texture,u_speed:f,u_opacity:jM(s)?s:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:VM,fragmentShader:ZM,triangulation:X0,primitive:R.TRIANGLES,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=(0,yn.Z)(i,4),s=o[0],l=o[1],f=o[2],v=o[3],y=f-s,b=v-l;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:fn.Attribute,descriptor:{name:"a_uv",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(M,O,k,$){var G=M.version==="GAODE2.x"?M.originCoordinates[0][$]:k,oe=(0,yn.Z)(G,2),ye=oe[0],Le=oe[1];return[(ye-s)/y,(Le-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,o=this.layer.getLayerConfig(),s=o.waterTexture,l=this.rendererService.createTexture2D;this.texture=l({height:0,width:0});var f=new Image;f.crossOrigin="",s?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),f.src=s):f.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",f.onload=function(){i.texture=l({data:f,width:f.width,height:f.height,wrapS:R.MIRRORED_REPEAT,wrapT:R.MIRRORED_REPEAT,min:R.LINEAR,mag:R.LINEAR}),i.layerService.reRender()}}}]),t}(Ma),WM={fill:OM,line:B1,extrude:xM,text:tx,point_fill:Z1,point_image:V1,point_normal:H1,point_extrude:U1,water:HM,ocean:NM,extrusion:TM},GM=WM;function XM(e){var r=$M();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function $M(){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(e){return!1}}var Rg=function(e){(0,De.Z)(t,e);var r=XM(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.0 || x < 0.0) ? x != x : x != 0.0; } + + +void main() { + + float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r; + if (value == u_noDataValue || isnan_emu(value)) + discard; + else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) + discard; + else { + float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]); + vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0)); + + gl_FragColor = color; + gl_FragColor.a = gl_FragColor.a * u_opacity ; + if(gl_FragColor.a < 0.01) + discard; + + } +} +`,QM=`precision highp float; +uniform mat4 u_ModelMatrix; + +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,nx=function(e){(0,De.Z)(t,e);var r=YM(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.clampLow,f=l===void 0?!0:l,v=i.clampHigh,y=v===void 0?!0:v,b=i.noDataValue,T=b===void 0?-9999999:b,M=i.domain,O=i.rampColors,k=M||Cc(O);return this.colorTexture=this.layer.textureService.getColorTexture(O,k),{u_opacity:s||1,u_texture:this.texture,u_domain:k,u_clampLow:f,u_clampHigh:typeof y!="undefined"?y:f,u_noDataValue:T,u_colorTexture:this.colorTexture}}},{key:"getRasterData",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l,f,v,y;return me().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!Array.isArray(s.data)){T.next=4;break}return T.abrupt("return",{data:s.data,width:s.width,height:s.height});case 4:return T.next=6,s.data;case 6:return l=T.sent,f=l.rasterData,v=l.width,y=l.height,T.abrupt("return",{data:Array.from(f),width:v,height:y});case 11:case"end":return T.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T,M;return me().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,f=s.data.dataArray[0],k.next=5,this.getRasterData(f);case 5:return v=k.sent,y=v.data,b=v.width,T=v.height,this.texture=l({data:y,width:b,height:T,format:R.LUMINANCE,type:R.FLOAT}),k.next=12,this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:QM,fragmentShader:KM,triangulation:Sg,primitive:R.TRIANGLES,depth:{enable:!1}});case 12:return M=k.sent,k.abrupt("return",[M]);case 14:case"end":return k.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,o;(i=this.texture)===null||i===void 0||i.destroy(),(o=this.colorTexture)===null||o===void 0||o.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:fn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),JM=["data"],eI=["rasterData"];function tI(e){var r=rI();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function rI(){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(e){return!1}}var nI=`precision highp float; +uniform mat4 u_ModelMatrix; + +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,iI=`precision mediump float; +uniform vec2 u_rminmax: vec2(0,255); +uniform vec2 u_gminmax: vec2(0,255); +uniform vec2 u_bminmax: vec2(0,255); +uniform float u_opacity: 1.0; +uniform sampler2D u_texture; +uniform float u_noDataValue : 0.0; +varying vec2 v_texCoord; + +void main() { + vec3 rgb = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).rgb; + if(rgb == vec3(u_noDataValue)) { + gl_FragColor = vec4(0.0, 0, 0, 0.0); + } else { + gl_FragColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity); + } + if(gl_FragColor.a < 0.01) + discard; + +}`,aI=function(e){(0,De.Z)(t,e);var r=tI(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s u_domain[1])) { + gl_FragColor = vec4(0.0, 0, 0, 0.0); + } else { + + gl_FragColor = getColor(value); + gl_FragColor.a = gl_FragColor.a * u_opacity ; + if(gl_FragColor.a < 0.01) + discard; + } +} +`,lI=`precision highp float; +uniform mat4 u_ModelMatrix; + +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,cI=function(e){(0,De.Z)(t,e);var r=oI(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=i.clampLow,l=s===void 0?!0:s,f=i.clampHigh,v=f===void 0?!0:f,y=i.noDataValue,b=y===void 0?-9999999:y,T=i.domain,M=i.rampColors,O=i.colorTexture,k=i.rScaler,$=k===void 0?6553.6:k,G=i.gScaler,oe=G===void 0?25.6:G,ye=i.bScaler,Le=ye===void 0?.1:ye,$e=i.offset,ut=$e===void 0?1e4:$e,vt=T||Cc(M),Rt=O;return O?this.layer.textureService.setColorTexture(O,M,vt):Rt=this.layer.textureService.getColorTexture(M,vt),{u_opacity:o||1,u_texture:this.texture,u_domain:vt,u_clampLow:l,u_clampHigh:typeof v!="undefined"?v:l,u_noDataValue:b,u_unpack:[$,oe,Le,ut],u_colorTexture:Rt}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,b.next=4,s.data.images;case 4:return f=b.sent,this.texture=l({data:f[0],width:f[0].width,height:f[0].height,min:R.LINEAR,mag:R.LINEAR}),b.next=8,this.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:lI,fragmentShader:uI,triangulation:Sg,primitive:R.TRIANGLES,depth:{enable:!1}});case 8:return v=b.sent,b.abrupt("return",[v]);case 10:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:fn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),fI={raster:nx,rasterRgb:aI,raster3d:nx,rasterTerrainRgb:cI},hI=fI;function pI(e){var r=dI();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function dI(){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(e){return!1}}var Mg=function(e){(0,De.Z)(t,e);var r=pI(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:!0;i&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),t}(Ma),bI={fill:xI},EI=bI;function SI(e){var r=AI();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function AI(){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(e){return!1}}var ix=function(e){(0,De.Z)(t,e);var r=SI(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&this.mapService.version==="GAODE2.x"){var o=n.coordCenter||n.getSource().center;t.filter(function(s){return!s.originCoordinates}).map(function(s){s.version="GAODE2.x",s.originCoordinates=TI(s.coordinates),s.coordinates=i.mapService.coordToAMap2RelativeCoordinates(s.coordinates,o)})}}},{key:"adjustData2SimpleCoordinates",value:function(t){var n=this;t.length>0&&this.mapService.version==="SIMPLE"&&t.map(function(i){i.simpleCoordinate||(i.coordinates=n.unProjectCoordinates(i.coordinates),i.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(t){var n=this;if(typeof t[0]=="number")return this.mapService.simpleMapCoord.unproject(t);if(t[0]&&t[0][0]instanceof Array){var i=[];return t.map(function(s){var l=[];s.map(function(f){l.push(n.mapService.simpleMapCoord.unproject(f))}),i.push(l)}),i}else{var o=[];return t.map(function(s){o.push(n.mapService.simpleMapCoord.unproject(s))}),o}}},{key:"applyAttributeMapping",value:function(t,n){var i;if(!t.scale)return[];var o=(t==null||(i=t.scale)===null||i===void 0?void 0:i.scalers)||[],s=[];o.forEach(function(f){var v,y=f.field;(n.hasOwnProperty(y)||((v=t.scale)===null||v===void 0?void 0:v.type)==="variable")&&s.push(n[y])});var l=t.mapping?t.mapping(s):[];return l}},{key:"getArrowPoints",value:function(t,n){var i=[n[0]-t[0],n[1]-t[1]],o=Ff(i),s=[t[0]+o[0]*1e-4,t[1]+o[1]*1e-4];return s}}]),e}(),lx=Oi(Ig.prototype,"mapService",[ox],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cx=Oi(Ig.prototype,"fontService",[sx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ig))||ux),fx,hx,CI=(fx=(0,gt.b2)(),fx(hx=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){var n=this;this.mapService=t.getContainer().get(tt.IMapService),t.hooks.init.tapPromise("DataSourcePlugin",(0,Ct.Z)(me().mark(function i(){var o,s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(t.log(Rs.SourceInitStart,ds.INIT),o=t.getSource(),o||(s=t.sourceOption||t.defaultSourceConfig,l=s.data,f=s.options,o=new Xy(l,f),t.setSource(o)),!o.inited){y.next=8;break}n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT),y.next=10;break;case 8:return y.next=10,new Promise(function(b){o.on("update",function(T){T.type==="inited"&&(n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT)),b(null)})});case 10:case"end":return y.stop()}},i)}))),t.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Ct.Z)(me().mark(function i(){var o,s,l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=n.updateClusterData(t),s=t.dataState.dataSourceNeedUpdate,t.dataState.dataSourceNeedUpdate=!1,l=o||s,v.abrupt("return",l);case 5:case"end":return v.stop()}},i)})))}},{key:"updateClusterData",value:function(t){if(t.isTileLayer||t.tileLayer||!t.getSource())return!1;var n=t.getSource(),i=n.cluster,o=n.clusterOptions.zoom,s=o===void 0?0:o,l=this.mapService.getZoom()-1,f=t.dataState.dataSourceNeedUpdate;return i&&f&&n.updateClusterData(Math.floor(l)),i&&Math.abs(t.clusterZoom-l)>=1?(s!==Math.floor(l)&&n.updateClusterData(Math.floor(l)),t.clusterZoom=l,!0):!1}}]),e}())||hx);function Q0(e,r){return er?1:e>=r?0:NaN}function px(e){return e.length===1&&(e=RI(e)),{left:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)<0?n=o+1:i=o}return n},right:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)>0?i=o:n=o+1}return n}}}function RI(e){return function(r,t){return Q0(e(r),t)}}var dx=px(Q0),MI=dx.right,RL=dx.left,Pg=MI;function vx(e,r){var t=e.length,n=-1,i,o,s;if(r==null){for(;++n=i)for(o=s=i;++ni&&(o=i),s=i)for(o=s=i;++ni&&(o=i),s0)return[e];if((n=r0)for(e=Math.ceil(e/l),r=Math.floor(r/l),s=new Array(o=Math.ceil(r-e+1));++i=0?(o>=J0?10:o>=e_?5:o>=t_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=J0?10:o>=e_?5:o>=t_?2:1)}function r_(e,r,t){var n=Math.abs(r-e)/Math.max(0,t),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=J0?i*=10:o>=e_?i*=5:o>=t_&&(i*=2),rb;)T.pop(),--M;var O=new Array(M+1),k;for(o=0;o<=M;++o)k=O[o]=[],k.x0=o>0?T[o-1]:y,k.x1=o=1)return+t(e[n-1],n-1,e);var n,i=(n-1)*r,o=Math.floor(i),s=+t(e[o],o,e),l=+t(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function _x(e,r,t,n,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*r+(4-6*o+3*s)*t+(1+3*e+3*o-3*s)*n+s*i)/6}function OI(e){var r=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),i=e[n],o=e[n+1],s=n>0?e[n-1]:2*i-o,l=n180||t<-180?t-360*Math.round(t/360):t):constant(isNaN(e)?r:e)}function FI(e){return(e=+e)==1?xx:function(r,t){return t-r?kI(r,t,e):n_(isNaN(r)?t:r)}}function xx(e,r){var t=r-e;return t?yx(e,t):n_(isNaN(e)?r:e)}var bx=function e(r){var t=FI(r);function n(i,o){var s=t((i=(0,os.B8)(i)).r,(o=(0,os.B8)(o)).r),l=t(i.g,o.g),f=t(i.b,o.b),v=xx(i.opacity,o.opacity);return function(y){return i.r=s(y),i.g=l(y),i.b=f(y),i.opacity=v(y),i+""}}return n.gamma=e,n}(1);function Ex(e){return function(r){var t=r.length,n=new Array(t),i=new Array(t),o=new Array(t),s,l;for(s=0;s=e.length)return t!=null&&l.sort(t),n!=null?n(l):l;for(var b=-1,T=l.length,M=e[f++],O,k,$=map(),G,oe=v();++be.length)return l;var v,y=r[f-1];return n!=null&&f>=e.length?v=l.entries():(v=[],l.each(function(b,T){v.push({key:T,values:s(b,f)})})),y!=null?v.sort(function(b,T){return y(b.key,T.key)}):v}return i={object:function(l){return o(l,0,LI,NI)},map:function(l){return o(l,0,Ax,Tx)},entries:function(l){return s(o(l,0,Ax,Tx),0)},key:function(l){return e.push(l),i},sortKeys:function(l){return r[e.length-1]=l,i},sortValues:function(l){return t=l,i},rollup:function(l){return n=l,i}}}function LI(){return{}}function NI(e,r,t){e[r]=t}function Ax(){return map()}function Tx(e,r,t){e.set(r,t)}function kg(){}var md=i_.prototype;kg.prototype=UI.prototype={constructor:kg,has:md.has,add:function(e){return e+="",this[qc+e]=e,this},remove:md.remove,clear:md.clear,values:md.keys,size:md.size,empty:md.empty,each:md.each};function UI(e,r){var t=new kg;if(e instanceof kg)e.each(function(o){t.add(o)});else if(e){var n=-1,i=e.length;if(r==null)for(;++nt&&(o=r.slice(t,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,f.push({i:s,x:Bg(n,i)})),t=o_.lastIndex;return tt&&(n=r,r=t,t=n),function(i){return Math.max(r,Math.min(t,i))}}function qI(e,r,t){var n=e[0],i=e[1],o=r[0],s=r[1];return i2?KI:qI,f=v=null,b}function b(T){return isNaN(T=+T)?o:(f||(f=l(e.map(n),r,t)))(n(s(T)))}return b.invert=function(T){return s(i((v||(v=l(r,e.map(n),Bg)))(T)))},b.domain=function(T){return arguments.length?(e=Rx.call(T,YI),s===Yu||(s=Fx(e)),y()):e.slice()},b.range=function(T){return arguments.length?(r=gd.call(T),y()):r.slice()},b.rangeRound=function(T){return r=gd.call(T),t=XI,y()},b.clamp=function(T){return arguments.length?(s=T?Fx(e):Yu,b):s!==Yu},b.interpolate=function(T){return arguments.length?(t=T,y()):t},b.unknown=function(T){return arguments.length?(o=T,b):o},function(T,M){return n=T,i=M,y()}}function Bx(e,r){return l_()(e,r)}var QI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ng(e){if(!(r=QI.exec(e)))throw new Error("invalid format: "+e);var r;return new c_({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}Ng.prototype=c_.prototype;function c_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}c_.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 JI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ug(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function pv(e){return e=Ug(Math.abs(e)),e?e[1]:NaN}function eP(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pv(r)/3)))*3-pv(Math.abs(e)))}function tP(e,r){return function(t,n){for(var i=t.length,o=[],s=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),o.push(t.substring(i-=l,i+l)),!((f+=l+1)>n));)l=e[s=(s+1)%e.length];return o.reverse().join(r)}}function rP(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}function nP(e){e:for(var r=e.length,t=1,n=-1,i;t0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Lx;function iP(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1],o=i-(Lx=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ug(e,Math.max(0,r+o-1))[0]}function Nx(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var Ux={"%":function(e,r){return(e*100).toFixed(r)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:JI,e:function(e,r){return e.toExponential(r)},f:function(e,r){return e.toFixed(r)},g:function(e,r){return e.toPrecision(r)},o:function(e){return Math.round(e).toString(8)},p:function(e,r){return Nx(e*100,r)},r:Nx,s:iP,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function zx(e){return e}var Zx=Array.prototype.map,Vx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function aP(e){var r=e.grouping===void 0||e.thousands===void 0?zx:tP(Zx.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?zx:rP(Zx.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function v(b){b=Ng(b);var T=b.fill,M=b.align,O=b.sign,k=b.symbol,$=b.zero,G=b.width,oe=b.comma,ye=b.precision,Le=b.trim,$e=b.type;$e==="n"?(oe=!0,$e="g"):Ux[$e]||(ye===void 0&&(ye=12),Le=!0,$e="g"),($||T==="0"&&M==="=")&&($=!0,T="0",M="=");var ut=k==="$"?t:k==="#"&&/[boxX]/.test($e)?"0"+$e.toLowerCase():"",vt=k==="$"?n:/[%p]/.test($e)?s:"",Rt=Ux[$e],Jt=/[defgprs%]/.test($e);ye=ye===void 0?6:/[gprs]/.test($e)?Math.max(1,Math.min(21,ye)):Math.max(0,Math.min(20,ye));function Mr(br){var pn=ut,kn=vt,Pi,xa,is;if($e==="c")kn=Rt(br)+kn,br="";else{br=+br;var _s=br<0||1/br<0;if(br=isNaN(br)?f:Rt(Math.abs(br),ye),Le&&(br=nP(br)),_s&&+br==0&&O!=="+"&&(_s=!1),pn=(_s?O==="("?O:l:O==="-"||O==="("?"":O)+pn,kn=($e==="s"?Vx[8+Lx/3]:"")+kn+(_s&&O==="("?")":""),Jt){for(Pi=-1,xa=br.length;++Piis||is>57){kn=(is===46?i+br.slice(Pi+1):br.slice(Pi))+kn,br=br.slice(0,Pi);break}}}oe&&!$&&(br=r(br,1/0));var as=pn.length+br.length+kn.length,lu=as>1)+pn+br+kn+lu.slice(as);break;default:br=lu+pn+br+kn;break}return o(br)}return Mr.toString=function(){return b+""},Mr}function y(b,T){var M=v((b=Ng(b),b.type="f",b)),O=Math.max(-8,Math.min(8,Math.floor(pv(T)/3)))*3,k=Math.pow(10,-O),$=Vx[8+O/3];return function(G){return M(k*G)+$}}return{format:v,formatPrefix:y}}var zg,f_,jx;oP({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function oP(e){return zg=aP(e),f_=zg.format,jx=zg.formatPrefix,zg}function sP(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,pv(r)-pv(e))+1}function uP(e){return Math.max(0,-pv(Math.abs(e)))}function lP(e,r,t,n){var i=r_(e,r,t),o;switch(n=Ng(n==null?",f":n),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(o=eP(i,s))&&(n.precision=o),jx(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=sP(i,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=uP(i))&&(n.precision=o-(n.type==="%")*2);break}}return f_(n)}function dm(e){var r=e.domain;return e.ticks=function(t){var n=r();return gx(n[0],n[n.length-1],t==null?10:t)},e.tickFormat=function(t,n){var i=r();return lP(i[0],i[i.length-1],t==null?10:t,n)},e.nice=function(t){t==null&&(t=10);var n=r(),i=0,o=n.length-1,s=n[i],l=n[o],f;return l0?(s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f,f=Og(s,l,t)):f<0&&(s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f,f=Og(s,l,t)),f>0?(n[i]=Math.floor(s/f)*f,n[o]=Math.ceil(l/f)*f,r(n)):f<0&&(n[i]=Math.ceil(s*f)/f,n[o]=Math.floor(l*f)/f,r(n)),e},e}function Hx(){var e=Bx(Yu,Yu);return e.copy=function(){return Lg(e,Hx())},Dp.apply(e,arguments),dm(e)}function cP(e){var r;function t(n){return isNaN(n=+n)?r:n}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=map.call(n,number),t):e.slice()},t.unknown=function(n){return arguments.length?(r=n,t):r},t.copy=function(){return cP(e).unknown(r)},e=arguments.length?map.call(e,number):[0,1],linearish(t)}function Wx(e,r){e=e.slice();var t=0,n=e.length-1,i=e[t],o=e[n],s;return o0){for(;Ty)break;oe.push($)}}else for(;T=1;--k)if($=O*k,!($y)break;oe.push($)}}else oe=gx(T,M,Math.min(M-T,G)).map(o);return b?oe.reverse():oe},r.tickFormat=function(l,f){if(f==null&&(f=n===10?".0e":","),typeof f!="function"&&(f=f_(f)),l===1/0)return f;l==null&&(l=10);var v=Math.max(1,n*l/r.ticks().length);return function(y){var b=y/o(Math.round(i(y)));return b*n0?t[l-1]:e[0],l=t?[n[t-1],r]:[n[v-1],n[v]]},s.unknown=function(f){return arguments.length&&(o=f),s},s.thresholds=function(){return n.slice()},s.copy=function(){return eb().domain([e,r]).range(i).unknown(o)},Dp.apply(dm(s),arguments)}function tb(){var e=[.5],r=[0,1],t,n=1;function i(o){return o<=o?r[Pg(e,o,0,n)]:t}return i.domain=function(o){return arguments.length?(e=gd.call(o),n=Math.min(e.length,r.length-1),i):e.slice()},i.range=function(o){return arguments.length?(r=gd.call(o),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var s=r.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(t=o,i):t},i.copy=function(){return tb().domain(e).range(r).unknown(t)},Dp.apply(i,arguments)}var p_=new Date,d_=new Date;function ml(e,r,t,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),r(o,1),e(o),o},i.round=function(o){var s=i(o),l=i.ceil(o);return o-s0))return f;do f.push(v=new Date(+o)),r(o,l),e(o);while(v=s)for(;e(s),!o(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!o(s););else for(;--l>=0;)for(;r(s,1),!o(s););})},t&&(i.count=function(o,s){return p_.setTime(+o),d_.setTime(+s),e(p_),e(d_),Math.floor(t(p_,d_))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?function(s){return n(s)%o===0}:function(s){return i.count(0,s)%o===0}):i}),i}var v_=ml(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r)},function(e,r){return r.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});v_.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*e)})};var dv=v_,zL=v_.range,rb=ml(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,r){e.setMonth(e.getMonth()+r)},function(e,r){return r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),EP=rb,ZL=rb.range,Zg=1e3,vm=6e4,nb=36e5,ib=864e5,ab=6048e5;function _d(e){return ml(function(r){r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+t*7)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*vm)/ab})}var m_=_d(0),Vg=_d(1),SP=_d(2),AP=_d(3),vv=_d(4),TP=_d(5),wP=_d(6),VL=m_.range,jL=Vg.range,HL=SP.range,WL=AP.range,GL=vv.range,XL=TP.range,$L=wP.range,ob=ml(function(e){e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*vm)/ib},function(e){return e.getDate()-1}),g_=ob,YL=ob.range,sb=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg-e.getMinutes()*vm)},function(e,r){e.setTime(+e+r*nb)},function(e,r){return(r-e)/nb},function(e){return e.getHours()}),CP=sb,qL=sb.range,ub=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg)},function(e,r){e.setTime(+e+r*vm)},function(e,r){return(r-e)/vm},function(e){return e.getMinutes()}),RP=ub,KL=ub.range,lb=ml(function(e){e.setTime(e-e.getMilliseconds())},function(e,r){e.setTime(+e+r*Zg)},function(e,r){return(r-e)/Zg},function(e){return e.getUTCSeconds()}),MP=lb,QL=lb.range,jg=ml(function(){},function(e,r){e.setTime(+e+r)},function(e,r){return r-e});jg.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ml(function(r){r.setTime(Math.floor(r/e)*e)},function(r,t){r.setTime(+r+t*e)},function(r,t){return(t-r)/e}):jg};var IP=jg,JL=jg.range;function yd(e){return ml(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+t*7)},function(r,t){return(t-r)/ab})}var cb=yd(0),Hg=yd(1),PP=yd(2),OP=yd(3),mv=yd(4),DP=yd(5),kP=yd(6),eN=cb.range,tN=Hg.range,rN=PP.range,nN=OP.range,iN=mv.range,aN=DP.range,oN=kP.range,fb=ml(function(e){e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r)},function(e,r){return(r-e)/ib},function(e){return e.getUTCDate()-1}),hb=fb,sN=fb.range,__=ml(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r)},function(e,r){return r.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});__.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*e)})};var mm=__,uN=__.range;function y_(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function x_(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gm(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function FP(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,f=e.shortMonths,v=_m(i),y=ym(i),b=_m(o),T=ym(o),M=_m(s),O=ym(s),k=_m(l),$=ym(l),G=_m(f),oe=ym(f),ye={a:_s,A:as,b:lu,B:Ac,c:null,d:_b,e:_b,f:i5,g:d5,G:m5,H:t5,I:r5,j:n5,L:yb,m:a5,M:o5,p:BB,q:LB,Q:Tb,s:wb,S:s5,u:u5,U:l5,V:c5,w:f5,W:h5,x:null,X:null,y:p5,Y:v5,Z:g5,"%":Ab},Le={a:NB,A:UB,b:zB,B:ZB,c:null,d:bb,e:bb,f:b5,g:P5,G:D5,H:_5,I:y5,j:x5,L:Eb,m:E5,M:S5,p:VB,q:jB,Q:Tb,s:wb,S:A5,u:T5,U:w5,V:C5,w:R5,W:M5,x:null,X:null,y:I5,Y:O5,Z:k5,"%":Ab},$e={a:Mr,A:br,b:pn,B:kn,c:Pi,d:mb,e:mb,f:KP,g:vb,G:db,H:gb,I:gb,j:XP,L:qP,m:GP,M:$P,p:Jt,q:WP,Q:JP,s:e5,S:YP,u:zP,U:ZP,V:VP,w:UP,W:jP,x:xa,X:is,y:vb,Y:db,Z:HP,"%":QP};ye.x=ut(t,ye),ye.X=ut(n,ye),ye.c=ut(r,ye),Le.x=ut(t,Le),Le.X=ut(n,Le),Le.c=ut(r,Le);function ut(ni,ba){return function(Va){var dn=[],Xl=-1,Oo=0,Tc=ni.length,wc,Rd,Q2;for(Va instanceof Date||(Va=new Date(+Va));++Xl53)return null;"w"in dn||(dn.w=1),"Z"in dn?(Oo=x_(gm(dn.y,0,1)),Tc=Oo.getUTCDay(),Oo=Tc>4||Tc===0?Hg.ceil(Oo):Hg(Oo),Oo=hb.offset(Oo,(dn.V-1)*7),dn.y=Oo.getUTCFullYear(),dn.m=Oo.getUTCMonth(),dn.d=Oo.getUTCDate()+(dn.w+6)%7):(Oo=y_(gm(dn.y,0,1)),Tc=Oo.getDay(),Oo=Tc>4||Tc===0?Vg.ceil(Oo):Vg(Oo),Oo=g_.offset(Oo,(dn.V-1)*7),dn.y=Oo.getFullYear(),dn.m=Oo.getMonth(),dn.d=Oo.getDate()+(dn.w+6)%7)}else("W"in dn||"U"in dn)&&("w"in dn||(dn.w="u"in dn?dn.u%7:"W"in dn?1:0),Tc="Z"in dn?x_(gm(dn.y,0,1)).getUTCDay():y_(gm(dn.y,0,1)).getDay(),dn.m=0,dn.d="W"in dn?(dn.w+6)%7+dn.W*7-(Tc+5)%7:dn.w+dn.U*7-(Tc+6)%7);return"Z"in dn?(dn.H+=dn.Z/100|0,dn.M+=dn.Z%100,x_(dn)):y_(dn)}}function Rt(ni,ba,Va,dn){for(var Xl=0,Oo=ba.length,Tc=Va.length,wc,Rd;Xl=Tc)return-1;if(wc=ba.charCodeAt(Xl++),wc===37){if(wc=ba.charAt(Xl++),Rd=$e[wc in pb?ba.charAt(Xl++):wc],!Rd||(dn=Rd(ni,Va,dn))<0)return-1}else if(wc!=Va.charCodeAt(dn++))return-1}return dn}function Jt(ni,ba,Va){var dn=v.exec(ba.slice(Va));return dn?(ni.p=y[dn[0].toLowerCase()],Va+dn[0].length):-1}function Mr(ni,ba,Va){var dn=M.exec(ba.slice(Va));return dn?(ni.w=O[dn[0].toLowerCase()],Va+dn[0].length):-1}function br(ni,ba,Va){var dn=b.exec(ba.slice(Va));return dn?(ni.w=T[dn[0].toLowerCase()],Va+dn[0].length):-1}function pn(ni,ba,Va){var dn=G.exec(ba.slice(Va));return dn?(ni.m=oe[dn[0].toLowerCase()],Va+dn[0].length):-1}function kn(ni,ba,Va){var dn=k.exec(ba.slice(Va));return dn?(ni.m=$[dn[0].toLowerCase()],Va+dn[0].length):-1}function Pi(ni,ba,Va){return Rt(ni,r,ba,Va)}function xa(ni,ba,Va){return Rt(ni,t,ba,Va)}function is(ni,ba,Va){return Rt(ni,n,ba,Va)}function _s(ni){return s[ni.getDay()]}function as(ni){return o[ni.getDay()]}function lu(ni){return f[ni.getMonth()]}function Ac(ni){return l[ni.getMonth()]}function BB(ni){return i[+(ni.getHours()>=12)]}function LB(ni){return 1+~~(ni.getMonth()/3)}function NB(ni){return s[ni.getUTCDay()]}function UB(ni){return o[ni.getUTCDay()]}function zB(ni){return f[ni.getUTCMonth()]}function ZB(ni){return l[ni.getUTCMonth()]}function VB(ni){return i[+(ni.getUTCHours()>=12)]}function jB(ni){return 1+~~(ni.getUTCMonth()/3)}return{format:function(ni){var ba=ut(ni+="",ye);return ba.toString=function(){return ni},ba},parse:function(ni){var ba=vt(ni+="",!1);return ba.toString=function(){return ni},ba},utcFormat:function(ni){var ba=ut(ni+="",Le);return ba.toString=function(){return ni},ba},utcParse:function(ni){var ba=vt(ni+="",!0);return ba.toString=function(){return ni},ba}}}var pb={"-":"",_:" ",0:"0"},uu=/^\s*\d+/,BP=/^%/,LP=/[\\^$*+?|[\]().{}]/g;function Za(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o68?1900:2e3),t+n[0].length):-1}function HP(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function WP(e,r,t){var n=uu.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function GP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function mb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function XP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function gb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function $P(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function YP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function qP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function KP(e,r,t){var n=uu.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function QP(e,r,t){var n=BP.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function JP(e,r,t){var n=uu.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function e5(e,r,t){var n=uu.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function _b(e,r){return Za(e.getDate(),r,2)}function t5(e,r){return Za(e.getHours(),r,2)}function r5(e,r){return Za(e.getHours()%12||12,r,2)}function n5(e,r){return Za(1+g_.count(dv(e),e),r,3)}function yb(e,r){return Za(e.getMilliseconds(),r,3)}function i5(e,r){return yb(e,r)+"000"}function a5(e,r){return Za(e.getMonth()+1,r,2)}function o5(e,r){return Za(e.getMinutes(),r,2)}function s5(e,r){return Za(e.getSeconds(),r,2)}function u5(e){var r=e.getDay();return r===0?7:r}function l5(e,r){return Za(m_.count(dv(e)-1,e),r,2)}function xb(e){var r=e.getDay();return r>=4||r===0?vv(e):vv.ceil(e)}function c5(e,r){return e=xb(e),Za(vv.count(dv(e),e)+(dv(e).getDay()===4),r,2)}function f5(e){return e.getDay()}function h5(e,r){return Za(Vg.count(dv(e)-1,e),r,2)}function p5(e,r){return Za(e.getFullYear()%100,r,2)}function d5(e,r){return e=xb(e),Za(e.getFullYear()%100,r,2)}function v5(e,r){return Za(e.getFullYear()%1e4,r,4)}function m5(e,r){var t=e.getDay();return e=t>=4||t===0?vv(e):vv.ceil(e),Za(e.getFullYear()%1e4,r,4)}function g5(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Za(r/60|0,"0",2)+Za(r%60,"0",2)}function bb(e,r){return Za(e.getUTCDate(),r,2)}function _5(e,r){return Za(e.getUTCHours(),r,2)}function y5(e,r){return Za(e.getUTCHours()%12||12,r,2)}function x5(e,r){return Za(1+hb.count(mm(e),e),r,3)}function Eb(e,r){return Za(e.getUTCMilliseconds(),r,3)}function b5(e,r){return Eb(e,r)+"000"}function E5(e,r){return Za(e.getUTCMonth()+1,r,2)}function S5(e,r){return Za(e.getUTCMinutes(),r,2)}function A5(e,r){return Za(e.getUTCSeconds(),r,2)}function T5(e){var r=e.getUTCDay();return r===0?7:r}function w5(e,r){return Za(cb.count(mm(e)-1,e),r,2)}function Sb(e){var r=e.getUTCDay();return r>=4||r===0?mv(e):mv.ceil(e)}function C5(e,r){return e=Sb(e),Za(mv.count(mm(e),e)+(mm(e).getUTCDay()===4),r,2)}function R5(e){return e.getUTCDay()}function M5(e,r){return Za(Hg.count(mm(e)-1,e),r,2)}function I5(e,r){return Za(e.getUTCFullYear()%100,r,2)}function P5(e,r){return e=Sb(e),Za(e.getUTCFullYear()%100,r,2)}function O5(e,r){return Za(e.getUTCFullYear()%1e4,r,4)}function D5(e,r){var t=e.getUTCDay();return e=t>=4||t===0?mv(e):mv.ceil(e),Za(e.getUTCFullYear()%1e4,r,4)}function k5(){return"+0000"}function Ab(){return"%"}function Tb(e){return+e}function wb(e){return Math.floor(+e/1e3)}var gv,Cb,F5,B5,L5;N5({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 N5(e){return gv=FP(e),Cb=gv.format,F5=gv.parse,B5=gv.utcFormat,L5=gv.utcParse,gv}var xm=1e3,bm=xm*60,Em=bm*60,Sm=Em*24,U5=Sm*7,Rb=Sm*30,b_=Sm*365;function z5(e){return new Date(e)}function Z5(e){return e instanceof Date?+e:+new Date(+e)}function Mb(e,r,t,n,i,o,s,l,f){var v=Bx(Yu,Yu),y=v.invert,b=v.domain,T=f(".%L"),M=f(":%S"),O=f("%I:%M"),k=f("%I %p"),$=f("%a %d"),G=f("%b %d"),oe=f("%B"),ye=f("%Y"),Le=[[s,1,xm],[s,5,5*xm],[s,15,15*xm],[s,30,30*xm],[o,1,bm],[o,5,5*bm],[o,15,15*bm],[o,30,30*bm],[i,1,Em],[i,3,3*Em],[i,6,6*Em],[i,12,12*Em],[n,1,Sm],[n,2,2*Sm],[t,1,U5],[r,1,Rb],[r,3,3*Rb],[e,1,b_]];function $e(vt){return(s(vt)2){var b=v.scale.ticks(s.values.length);v.scale.domain(b)}s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case to.QUANTILE:case to.QUANTIZE:case to.THRESHOLD:v.scale.range(s.values);break;case to.IDENTITY:break;case to.CAT:s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case to.DIVERGING:case to.SEQUENTIAL:v.scale.interpolator(BI(s.values));break}}if(s.values==="text"){var T;v.scale.range((T=v.option)===null||T===void 0?void 0:T.domain)}})):(s.type=ov.CONSTANT,s.defaultValues=f.map(function(v,y){return v.scale(s.names[y])})),s.scalers=f.map(function(v){return{field:v.field,func:v.scale,option:v.option}}),o.needRescale=!1}})}},{key:"parseFields",value:function(t){return Array.isArray(t)?t:$5(t)?t.split("*"):[t]}},{key:"createScale",value:function(t,n,i,o){var s,l,f=this.scaleOptions[n]&&((s=this.scaleOptions[n])===null||s===void 0?void 0:s.field)===t?this.scaleOptions[n]:this.scaleOptions[t],v={field:t,scale:void 0,type:ov.VARIABLE,option:f};if(!o||!o.length)return f&&f.type?v.scale=this.createDefaultScale(f):(v.scale=Fg([t]),v.type=ov.CONSTANT),v;var y=(l=o.find(function(M){return!E_(M[t])}))===null||l===void 0?void 0:l[t];if(this.isNumber(t)||E_(y)&&!f)v.scale=Fg([t]),v.type=ov.CONSTANT;else{var b=f&&f.type||this.getDefaultType(y);i==="text"&&(b=to.CAT),i===void 0&&(b=to.IDENTITY);var T=this.createScaleConfig(b,t,f,o);v.scale=this.createDefaultScale(T),v.option=T}return v}},{key:"getDefaultType",value:function(t){var n=to.LINEAR;return typeof t=="string"&&(n=q5.test(t)?to.TIME:to.CAT),n}},{key:"createScaleConfig",value:function(t,n,i,o){var s={type:t},l=(o==null?void 0:o.map(function(y){return y[n]}))||[];if(i!=null&&i.domain)s.domain=i==null?void 0:i.domain;else if(t===to.CAT||t===to.IDENTITY)s.domain=Y5(l);else if(t===to.QUANTILE)s.domain=l;else if(t===to.DIVERGING){var f=vx(l),v=(i==null?void 0:i.neutral)!==void 0?i==null?void 0:i.neutral:(f[0]+f[1])/2;s.domain=[f[0],v,f[1]]}else s.domain=vx(l);return(0,H.Z)((0,H.Z)({},s),i)}},{key:"createDefaultScale",value:function(t){var n=t.type,i=t.domain,o=t.unknown,s=t.clamp,l=t.nice,f=K5[n]();return i&&f.domain&&f.domain(i),o&&f.unknown(o),s!==void 0&&f.clamp&&f.clamp(s),l!==void 0&&f.nice&&f.nice(l),f}}]),e}())||Bb),Lb,Nb,J5=(Lb=(0,gt.b2)(),Lb(Nb=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){t.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var n=t.animateStatus;n&&t.models.forEach(function(i){i.addUniforms((0,H.Z)({},t.layerModel.getAnimateUniforms()))})})}}]),e}())||Nb),Ub,zb,e4=(Ub=(0,gt.b2)(),Ub(zb=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){t.hooks.afterInit.tap("LayerMaskPlugin",function(){var n=t.getLayerConfig(),i=n.maskLayers,o=n.enableMask;if(!t.tileLayer&&i&&i.length>0){var s;(s=t.masks).push.apply(s,(0,Wt.Z)(i)),t.updateLayerConfig({mask:o})}})}}]),e}())||zb),t4=function(){function e(r){var t=r.rendererService,n=r.layerService,i=r.parent;(0,q.Z)(this,e),(0,B.Z)(this,"tileResource",new Map),(0,B.Z)(this,"layerTiles",[]),this.rendererService=t,this.layerService=n,this.parent=i}return(0,V.Z)(e,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(t){return this.layerTiles.some(function(n){return n.key===t})}},{key:"addTile",value:function(t){this.layerTiles.push(t)}},{key:"getTile",value:function(t){return this.layerTiles.find(function(n){return n.key===t})}},{key:"getVisibleTileBylngLat",value:function(t){return this.layerTiles.find(function(n){return n.isLoaded&&n.visible&&n.lnglatInBounds(t)})}},{key:"removeTile",value:function(t){var n=this.layerTiles.findIndex(function(o){return o.key===t}),i=this.layerTiles.splice(n,1);i[0]&&i[0].destroy()}},{key:"updateTileVisible",value:function(t){var n=this.getTile(t.key);if(t.isVisible)if(t.parent){var i=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(i)}else n==null||n.updateVisible(!0);else if(t.parent){var o=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(!o)}else n==null||n.updateVisible(!1)}},{key:"isParentLoaded",value:function(t){var n=t.parent;if(!n)return!0;var i=this.getTile(n==null?void 0:n.key);return!!(i!=null&&i.isLoaded)}},{key:"isChildrenLoaded",value:function(t){var n=this,i=t==null?void 0:t.children;return i.length===0?!0:i.every(function(o){var s=n.getTile(o==null?void 0:o.key);return s?(s==null?void 0:s.isLoaded)===!0:!0})}},{key:"render",value:function(){var r=(0,Ct.Z)(me().mark(function n(){var i=this,o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=this.getRenderLayers(),s=o.map(function(){var v=(0,Ct.Z)(me().mark(function y(b){return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,i.layerService.renderTileLayer(b);case 2:case"end":return M.stop()}},y)}));return function(y){return v.apply(this,arguments)}}()),f.next=4,Promise.all(s);case 4:case"end":return f.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"getRenderLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.visible&&i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Wt.Z)(i.getLayers()))}),n}},{key:"getLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Wt.Z)(i.getLayers()))}),n}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(t){return t.destroy()}),this.tileResource.clear()}}]),e}(),r4=L(23167);function n4(e,r,t){t===void 0&&(t={});var n=Vr(e),i=Vr(r),o=r4.union(n.coordinates,i.coordinates);return o.length===0?null:o.length===1?yr(o[0],t.properties):rn(o,t.properties)}var i4=n4,a4=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"getCombineFeature",value:function(t){var n=null,i=t[0];return t.map(function(o){var s=yr(o.coordinates);n===null?n=s:n=i4(n,s)}),i&&(n.properties=(0,H.Z)({},i)),n}}]),e}(),Tm="select",wm="active",o4=function(){function e(r){var t=r.layerService,n=r.tileLayerService,i=r.parent;(0,q.Z)(this,e),(0,B.Z)(this,"tilePickID",new Map),this.layerService=t,this.tileLayerService=n,this.parent=i,this.tileSourceService=new a4}return(0,V.Z)(e,[{key:"pickRender",value:function(t){var n=this.tileLayerService.getVisibleTileBylngLat(t.lngLat);if(n){var i=n.getMainLayer();i==null||i.layerPickService.pickRender(t)}}},{key:"pick",value:function(t,n){var i=this.parent.getContainer(),o=i.get(tt.IPickingService);if(t.type==="RasterLayer"){var s=this.tileLayerService.getVisibleTileBylngLat(n.lngLat);if(s&&s.getMainLayer()!==void 0){var l=s.getMainLayer();return l.layerPickService.pickRasterLayer(l,n,this.parent)}return!1}return this.pickRender(n),o.pickFromPickingFBO(t,n)}},{key:"selectFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(Tm,l),this.updateHighLight(i,o,s,Tm)}},{key:"highlightPickedFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(wm,l),this.updateHighLight(i,o,s,wm)}},{key:"updateHighLight",value:function(t,n,i,o){this.tileLayerService.tiles.map(function(s){var l=s.getMainLayer();switch(o){case Tm:l==null||l.hooks.beforeSelect.call([t,n,i]);break;case wm:l==null||l.hooks.beforeHighlight.call([t,n,i]);break}})}},{key:"setPickState",value:function(){var t=this.tilePickID.get(Tm),n=this.tilePickID.get(wm);if(t){var i=this.pickId2Color(t),o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.updateHighLight(s,l,f,Tm);return}if(n){var v=this.pickId2Color(n),y=(0,yn.Z)(v,3),b=y[0],T=y[1],M=y[2];this.updateHighLight(b,T,M,wm);return}}},{key:"color2PickId",value:function(t,n,i){return Oa(new Uint8Array([t,n,i]))}},{key:"pickId2Color",value:function(t){return ia(t)}},{key:"getFeatureById",value:function(t){var n=this.tileLayerService.getTiles().filter(function(o){return o.visible}),i=[];return n.forEach(function(o){i.push.apply(i,(0,Wt.Z)(o.getFeatureById(t)))}),i}},{key:"pickRasterLayer",value:function(t,n,i){return!1}}]),e}();function s4(e){return e==="PolygonLayer"?Rg:e==="LineLayer"?q0:Cg}function u4(e){return["PolygonLayer","LineLayer"].indexOf(e)!==-1}function l4(e){var r=c4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function c4(){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(e){return!1}}var xd=function(e){(0,De.Z)(t,e);var r=l4(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"visible",!0),(0,B.Z)((0,Ie.Z)(o),"layers",[]),(0,B.Z)((0,Ie.Z)(o),"isLoaded",!1),(0,B.Z)((0,Ie.Z)(o),"tileMaskLayers",[]),o.parent=i,o.sourceTile=n,o.x=n.x,o.y=n.y,o.z=n.z,o.key="".concat(o.x,"_").concat(o.y,"_").concat(o.z),o}return(0,V.Z)(t,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(i){var o=(0,yn.Z)(this.sourceTile.bounds,4),s=o[0],l=o[1],f=o[2],v=o[3],y=i.lng,b=i.lat;return y>=s&&y<=f&&b>=l&&b<=v}},{key:"getLayerOptions",value:function(){var i,o=this.parent.getLayerConfig();return(0,H.Z)((0,H.Z)({},o),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:u4(this.parent.type),mask:o.mask||((i=o.maskLayers)===null||i===void 0?void 0:i.length)!==0&&o.enableMask})}},{key:"getMaskLayer",value:function(){var i=this,o=this.parent.getLayerConfig(),s=o.maskLayers,l=[];return s==null||s.forEach(function(f){if(!f.tileLayer)return l.push(f),f;var v=f.tileLayer,y=v.getTile(i.sourceTile.key),b=y==null?void 0:y.getLayers()[0];b&&l.push(b)}),l}},{key:"addTileMask",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=new Rg({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),y.next=5,s.init();case 5:return this.tileMask=s,f=this.getMainLayer(),f!==void 0&&(f.tileMask=s),y.abrupt("return",s);case 9:case"end":return y.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"addMask",value:function(){var n=(0,Ct.Z)(me().mark(function o(s,l){var f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return f=lm(this.parent.sceneContainer),l.setContainer(f,this.parent.sceneContainer),y.next=4,l.init();case 4:s.addMask(l),this.tileMaskLayers.push(l);case 6:case"end":return y.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"addLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s.isTileLayer=!0,l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),this.layers.push(s),v.next=6,s.init();case 6:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateVisible",value:function(i){this.visible=i,this.updateOptions("visible",i)}},{key:"updateOptions",value:function(i,o){this.layers.forEach(function(s){s.updateLayerConfig((0,B.Z)({},i,o))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(i){return[]}},{key:"getFeatureById",value:function(i){return[]}},{key:"destroy",value:function(){var i;(i=this.tileMask)===null||i===void 0||i.destroy(),this.layers.forEach(function(o){return o.destroy()})}}]),t}(no.EventEmitter);function f4(e){var r=h4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function h4(){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(e){return!1}}var p4=function(e){(0,De.Z)(t,e);var r=f4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.getSourceOption(),l=s.data.features[0].properties,f=new q0().source(s.data,s.options).size(1).shape("line").color("red"),v=new Cg({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([l],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),b.next=6,this.addLayer(f);case 6:return b.next=8,this.addLayer(v);case 8:this.isLoaded=!0;case 9:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:o},options:{parser:{type:"geojson"},transforms:i.transforms}}}}]),t}(xd);function d4(e){var r=v4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function v4(){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(e){return!1}}var m4=function(e){(0,De.Z)(t,e);var r=d4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new P1((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd);function g4(e){var r=_4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var y4=function(e){(0,De.Z)(t,e);var r=g4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new ix((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getFeatures",value:function(i){if(!i)return[];var o=this.sourceTile.data;return o.getTileData(i)}},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.parent.getLayerConfig(),s=o.sourceLayer,l=o.featureId,f=this.getFeatures(s);return{data:{type:"FeatureCollection",features:f},options:{parser:{type:"geojson",featureId:l},transforms:i.transforms}}}}]),t}(xd),x4=["rasterData"];function b4(e){var r=E4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}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(e){return!1}}var S4=function(e){(0,De.Z)(t,e);var r=b4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,Fa.Z)(o,x4);return{data:s,options:{parser:(0,H.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}}]),t}(xd);function A4(e){var r=T4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function T4(){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(e){return!1}}var w4=function(e){(0,De.Z)(t,e);var r=A4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd),C4=["rasterData"];function R4(e){var r=M4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function M4(){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(e){return!1}}var I4={positions:[0,1],colors:["#000","#fff"]},P4=function(e){(0,De.Z)(t,e);var r=R4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T;return me().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=this.getLayerOptions(),y=v.rampColors,b=v.domain,this.colorTexture=this.parent.textureService.getColorTexture(y,b),T=new Mg((0,H.Z)((0,H.Z)({},l),{},{colorTexture:this.colorTexture})).source(f.data,f.options),s&&Object.keys(s).forEach(function(k){var $,G,oe=k;T[oe](($=s[oe])===null||$===void 0?void 0:$.field,(G=s[oe])===null||G===void 0?void 0:G.values)}),O.next=9,this.addLayer(T);case 9:this.isLoaded=!0;case 10:case"end":return O.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,Fa.Z)(o,C4);return{data:s,options:{parser:(0,H.Z)({type:"raster",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}},{key:"styleUpdate",value:function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l=2&&!v&&(t.parent.updateLayerConfig({visible:!0}),t.layerService.reRender())}t.lastViewStates&&t.lastViewStates.zoom===l&&t.lastViewStates.latLonBounds.toString()===s.toString()||(t.lastViewStates={zoom:l,latLonBounds:s},(i=t.tilesetManager)===null||i===void 0||i.throttleUpdate(l,s))}}),(0,B.Z)(this,"viewchange",B4(this.mapchange,24)),this.parent=r;var n=this.parent.getContainer();this.rendererService=n.get(tt.IRendererService),this.layerService=n.get(tt.ILayerService),this.mapService=n.get(tt.IMapService),this.pickingService=n.get(tt.IPickingService),this.tileLayerService=new t4({rendererService:this.rendererService,layerService:this.layerService,parent:r}),this.tilePickService=new o4({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:r}),this.parent.setLayerPickService(this.tilePickService),this.proxy(r),this.initTileSetManager()}return(0,V.Z)(e,[{key:"initTileSetManager",value:function(){var t,n=this.parent.getSource();if(this.tilesetManager=n.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var i=this.getCurrentView(),o=i.latLonBounds,s=i.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(s,o)}}},{key:"getCurrentView",value:function(){var t=this.mapService.getBounds(),n=[t[0][0],t[0][1],t[1][0],t[1][1]],i=this.mapService.getZoom();return{latLonBounds:n,zoom:i}}},{key:"bindTilesetEvent",value:function(){var t=this;this.tilesetManager.on("tile-loaded",function(n){}),this.tilesetManager.on("tile-unload",function(n){t.tileUnLoad(n)}),this.tilesetManager.on("tile-error",function(n,i){t.tileError(n)}),this.tilesetManager.on("tile-update",function(){t.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(t){return this.tileLayerService.getTile(t)}},{key:"tileLoaded",value:function(t){}},{key:"tileError",value:function(t){console.warn("error:",t)}},{key:"destroy",value:function(){var t;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(t=this.tilesetManager)===null||t===void 0||t.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var t;this.tilesetManager.clear();var n=this.getCurrentView(),i=n.latLonBounds,o=n.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(o,i)}},{key:"tileUnLoad",value:function(t){this.tileLayerService.removeTile(t.key)}},{key:"tileUpdate",value:function(){var r=(0,Ct.Z)(me().mark(function n(){var i=this,o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.tilesetManager){f.next=2;break}return f.abrupt("return");case 2:return o=this.parent.getMinZoom(),s=this.parent.getMaxZoom(),f.next=6,Promise.all(this.tilesetManager.tiles.filter(function(v){return v.isLoaded}).filter(function(v){return v.isVisibleChange}).filter(function(v){return v.data}).filter(function(v){return v.z>=o&&v.z>>8&255}function ch(e){return e>>>16&255}function Sv(e){return e&255}function SE(e){switch(e){case Cr.F32:case Cr.U32:case Cr.S32:return 4;case Cr.U16:case Cr.S16:case Cr.F16:return 2;case Cr.U8:case Cr.S8:return 1;default:throw new Error("whoops")}}function AE(e){return SE(ch(e))}function vN(e){return Qg(e)}function pO(e){var r=SE(ch(e)),t=Qg(e);return r*t}function mN(e,r){return e&4294967040|r}function gN(e,r){return e&4294902015|r<<8}function TE(e){var r=Sv(e);if(r&An.Depth)return zo.Depth;if(r&An.Normalized)return zo.Float;var t=ch(e);if(t===Cr.F16||t===Cr.F32)return zo.Float;if(t===Cr.U8||t===Cr.U16||t===Cr.U32)return zo.Uint;if(t===Cr.S8||t===Cr.S16||t===Cr.S32)return zo.Sint;throw new Error("whoops")}function Di(e,r){if(r===void 0&&(r=""),!e)throw new Error("Assert fail: ".concat(r))}function Ad(e){if(e!=null)return e;throw new Error("Missing object")}function wE(e,r){return e.r===r.r&&e.g===r.g&&e.b===r.b&&e.a===r.a}function CE(e,r){e.r=r.r,e.g=r.g,e.b=r.b,e.a=r.a}function RE(e){var r=e.r,t=e.g,n=e.b,i=e.a;return{r,g:t,b:n,a:i}}function Jg(e,r,t,n){return n===void 0&&(n=1),{r:e,g:r,b:t,a:n}}var A_=Jg(0,0,0,0),_N=Jg(0,0,0,1),dO=Jg(1,1,1,0),yN=Jg(1,1,1,1),Av=!0;function xN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14])}function bN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14]+1)}function vO(e,r){if(r===void 0&&(r=Av),r)switch(e){case _a.LESS:return _a.GREATER;case _a.LEQUAL:return _a.GEQUAL;case _a.GEQUAL:return _a.LEQUAL;case _a.GREATER:return _a.LESS;default:return e}else return e}function EN(e,r){return r===void 0&&(r=Av),r?1-e:e}function SN(e,r){return r===void 0&&(r=Av),r?-e:e}function AN(e,r,t,n){if(n===void 0&&(n=Av),t=vO(t,n),t===_a.LESS)return er;if(t===_a.GEQUAL)return e>=r;throw new Error("whoops")}function e0(e){return!!(e&&!(e&e-1))}function Tv(e,r){return e!=null?e:r}function mO(e){return e===void 0?null:e}function TN(e,r,t){e.length=r,e.fill(t)}function t0(e,r){var t=r-1;return e+t&~t}function wN(e,r){return((e+r-1)/r|0)*r}function gO(e,r,t){for(var n=0,i=e.length;n>>1),s=t(r,e[o]);s<0?i=o:n=o+1}return n}function CN(e,r,t){var n=gO(e,r,t);e.splice(n,0,r)}function RN(e,r,t){return t?e|=r:e&=~r,e}function _O(e,r){for(var t=new Array(e),n=0;n-1;if(f=f.replace(";","").replace("[","").trim(),!l.startsWith("#")){if(l){var y=t.find(function(M){return l===M.type});if(y)if(v)for(var b=function(M){y.uniforms.forEach(function(O){r.push("".concat(f,"[").concat(M,"].").concat(O.name))})},T=0;T<5;T++)b(T);else y.uniforms.forEach(function(M){r.push("".concat(f,".").concat(M.name))})}f&&r.push(f)}}),""}),r}function NE(e){if(e===void 0)return null;var r=/binding\s*=\s*(\d+)/.exec(e);if(r!==null){var t=parseInt(r[1],10);if(!Number.isNaN(t))return t}return null}function HO(e){var r="",t=e;return[t,r]}function Np(e,r,t,n,i){var o;n===void 0&&(n=null),i===void 0&&(i=!0);var s=e.glslVersion==="#version 100",l=r==="frag"&&((o=t.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||o===void 0?void 0:o.length)>1,f=t.replace(`\r +`,` +`).split(` +`).map(function(ut){return ut.replace(/[/][/].*$/,"")}).filter(function(ut){var vt=!ut||/^\s+$/.test(ut);return!vt}),v="";n!==null&&(v=Object.keys(n).map(function(ut){return Om(ut,n[ut])}).join(` +`));var y=f.find(function(ut){return ut.startsWith("precision")})||"precision mediump float;",b=i?f.filter(function(ut){return!ut.startsWith("precision")}).join(` +`):f.join(` +`),T="";if(e.viewportOrigin===bv.UPPER_LEFT&&(T+="".concat(Om("VIEWPORT_ORIGIN_TL","1"),` +`)),e.clipSpaceNearZ===Ev.ZERO&&(T+="".concat(Om("CLIPSPACE_NEAR_ZERO","1"),` +`)),e.explicitBindingLocations){var M=0,O=0,k=0;b=b.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(ut,vt,Rt,Jt){var Mr=Rt?"".concat(Rt,", "):"";return"layout(".concat(Mr,"set = ").concat(M,", binding = ").concat(O++,") uniform ").concat(Jt)}),M++,O=0,Di(e.separateSamplerTextures),b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ut,vt,Rt,Jt,Mr){var br=NE(Rt);br===null&&(br=O++);var pn=(0,wn.CR)(HO(Jt),2),kn=pn[0],Pi=pn[1];return r==="frag"?` +layout(set = `.concat(M,", binding = ").concat(br*2+0,") uniform texture").concat(kn," T_").concat(Mr,`; +layout(set = `).concat(M,", binding = ").concat(br*2+1,") uniform sampler").concat(Pi," S_").concat(Mr,";").trim():""}),b=b.replace(r==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(ut,vt){return"layout(location = ".concat(k++,") ").concat(vt)}),T+="".concat(Om("gl_VertexID","gl_VertexIndex"),` +`),T+="".concat(Om("gl_InstanceID","gl_InstanceIndex"),` +`),y=y.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var $=0;b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ut,vt,Rt,Jt,Mr){var br=NE(Rt);return br===null&&(br=$++),"uniform sampler".concat(Jt," ").concat(Mr,"; // BINDING=").concat(br)})}if(e.separateSamplerTextures)b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ut,vt,Rt){return"sampler".concat(vt,"(T_").concat(Rt,", S_").concat(Rt,")")}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ut,vt){return"T_".concat(vt)});else{var G=[];b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ut,vt,Rt){return G.push([Rt,vt]),Rt}),s&&G.forEach(function(ut){var vt=(0,wn.CR)(ut,2),Rt=vt[0],Jt=vt[1];b=b.replace(new RegExp("texture\\(".concat(Rt),"g"),function(){return"texture".concat(Jt,"(").concat(Rt)})}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ut,vt){return vt})}var oe="".concat(s?"":e.glslVersion,` +`).concat(s&&l?`#extension GL_EXT_draw_buffers : require +`:"",` +`).concat(s&&r==="frag"?`#extension GL_OES_standard_derivatives : enable +`:"").concat(i?y:"",` +`).concat(T||"").concat(v?v+` +`:"",` +`).concat(b,` +`).trim();if(e.explicitBindingLocations&&r==="frag"&&(oe=oe.replace(/^\b(out)\b/g,function(ut,vt){return"layout(location = 0) ".concat(vt)})),s){if(r==="frag"&&(oe=oe.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"varying ".concat(vt," ").concat(Rt,`; +`)})),r==="vert"&&(oe=oe.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"varying ".concat(vt," ").concat(Rt,`; +`)}),oe=oe.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"attribute ".concat(vt," ").concat(Rt,`; +`)})),oe=oe.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(ut,vt){return vt.trim().replace(/^.*$/gm,function(Rt){var Jt=Rt.trim();return Jt.startsWith("#")?Jt:Rt?"uniform ".concat(Jt):""})}),r==="frag")if(l){var ye=[];oe=oe.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(ut,vt){return ye.push(vt),"vec4 ".concat(vt,`; +`)});var Le=oe.lastIndexOf("}");oe=oe.substring(0,Le)+` + `.concat(ye.map(function(ut,vt){return"gl_FragData[".concat(vt,"] = ").concat(ut,`; + `)}).join(` +`))+oe.substring(Le)}else{var $e;if(oe=oe.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return $e=Rt,"".concat(vt," ").concat(Rt,`; +`)}),$e){var Le=oe.lastIndexOf("}");oe=oe.substring(0,Le)+` + gl_FragColor = vec4(`.concat($e,`); +`)+oe.substring(Le)}}oe=oe.replace(/^\s*layout\((.*)\)/gm,"")}return oe}function zN(e,r,t,n){n===void 0&&(n=null);var i=Np(e,"vert",r,n),o=Np(e,"frag",t,n);return{vert:r,frag:t,preprocessedVert:i,preprocessedFrag:o}}var Tf=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this)||this;return o.id=n,o.device=i,o.device.resourceCreationTracker!==null&&o.device.resourceCreationTracker.trackResourceCreated(o),o}return r.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},r}(bE.Z),WO=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Bindings;var l=o.uniformBufferBindings,f=o.samplerBindings;return s.uniformBufferBindings=l||[],s.samplerBindings=f||[],s.bindingLayouts=s.createBindingLayouts(),s}return r.prototype.createBindingLayouts=function(){var t=0,n=0,i=[],o=this.uniformBufferBindings.length,s=this.samplerBindings.length;return i.push({firstUniformBuffer:t,numUniformBuffers:o,firstSampler:n,numSamplers:s}),t+=o,n+=s,{numUniformBuffers:t,numSamplers:n,bindingLayoutTables:i}},r}(Tf);function Vn(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}function UE(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_UNORM:case Cr.BC4_SNORM:case Cr.BC5_UNORM:case Cr.BC5_SNORM:return!0;default:return!1}}function zE(e){var r=Sv(e);if(r&An.Normalized)return!1;var t=ch(e);return t===Cr.S8||t===Cr.S16||t===Cr.S32||t===Cr.U8||t===Cr.U16||t===Cr.U32}function GO(e){switch(e){case Af.STATIC:return je.STATIC_DRAW;case Af.DYNAMIC:return je.DYNAMIC_DRAW}}function ZE(e){if(e&ro.INDEX)return je.ELEMENT_ARRAY_BUFFER;if(e&ro.VERTEX)return je.ARRAY_BUFFER;if(e&ro.UNIFORM)return je.UNIFORM_BUFFER}function XO(e){switch(e){case ms.TRIANGLES:return je.TRIANGLES;case ms.POINTS:return je.POINTS;case ms.TRIANGLE_STRIP:return je.TRIANGLE_STRIP;case ms.LINES:return je.LINES;case ms.LINE_STRIP:return je.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function $O(e){switch(e){case Cr.U8:return je.UNSIGNED_BYTE;case Cr.U16:return je.UNSIGNED_SHORT;case Cr.U32:return je.UNSIGNED_INT;case Cr.S8:return je.BYTE;case Cr.S16:return je.SHORT;case Cr.S32:return je.INT;case Cr.F16:return je.HALF_FLOAT;case Cr.F32:return je.FLOAT;default:throw new Error("whoops")}}function YO(e){switch(e){case Hn.R:return 1;case Hn.RG:return 2;case Hn.RGB:return 3;case Hn.RGBA:return 4;default:return 1}}function qO(e){var r=ch(e),t=Qg(e),n=Sv(e),i=$O(r),o=YO(t),s=!!(n&An.Normalized);return{size:o,type:i,normalized:s}}function KO(e){switch(e){case Tt.U8_R:return je.UNSIGNED_BYTE;case Tt.U16_R:return je.UNSIGNED_SHORT;case Tt.U32_R:return je.UNSIGNED_INT;default:throw new Error("whoops")}}function Dm(e){switch(e){case gl.CLAMP_TO_EDGE:return je.CLAMP_TO_EDGE;case gl.REPEAT:return je.REPEAT;case gl.MIRRORED_REPEAT:return je.MIRRORED_REPEAT;default:throw new Error("whoops")}}function a0(e,r){if(r===Gs.LINEAR&&e===vs.BILINEAR)return je.LINEAR_MIPMAP_LINEAR;if(r===Gs.LINEAR&&e===vs.POINT)return je.NEAREST_MIPMAP_LINEAR;if(r===Gs.NEAREST&&e===vs.BILINEAR)return je.LINEAR_MIPMAP_NEAREST;if(r===Gs.NEAREST&&e===vs.POINT)return je.NEAREST_MIPMAP_NEAREST;if(r===Gs.NO_MIP&&e===vs.BILINEAR)return je.LINEAR;if(r===Gs.NO_MIP&&e===vs.POINT)return je.NEAREST;throw new Error("Unknown texture filter mode")}function Rv(e,r){r===void 0&&(r=0);var t=e;return t.gl_buffer_pages[r/t.pageByteSize|0]}function Mv(e){var r=e;return r.gl_texture}function C_(e){var r=e;return r.gl_sampler}function km(e,r){e.name=r,e.__SPECTOR_Metadata={name:r}}function VE(e,r){for(var t=[];;){var n=r.exec(e);if(!n)break;t.push(n)}return t}function Up(e){return e.blendMode==Tu.ADD&&e.blendSrcFactor==ua.ONE&&e.blendDstFactor===ua.ZERO}function QO(e){switch(e){case Kg.OcclusionConservative:return je.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function JO(e){if(e===Hi.TEXTURE_2D)return je.TEXTURE_2D;if(e===Hi.TEXTURE_2D_ARRAY)return je.TEXTURE_2D_ARRAY;if(e===Hi.TEXTURE_CUBE_MAP)return je.TEXTURE_CUBE_MAP;if(e===Hi.TEXTURE_3D)return je.TEXTURE_3D;throw new Error("whoops")}function R_(e,r,t,n){return!(e%t!==0||r%n!==0)}var eD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Buffer;var l=o.viewOrSize,f=o.usage,v=o.hint,y=v===void 0?Af.STATIC:v,b=i.uniformBufferMaxPageByteSize,T=i.gl,M=f&ro.UNIFORM;M||(Vn(T)?T.bindVertexArray(null):i.OES_vertex_array_object.bindVertexArrayOES(null));var O=(0,xv.Z)(l)?t0(l,4):t0(l.byteLength,4);s.gl_buffer_pages=[];var k;if(M){for(var $=O;$>0;)s.gl_buffer_pages.push(s.createBufferPage(Math.min($,b),f,y)),$-=b;k=b}else s.gl_buffer_pages.push(s.createBufferPage(O,f,y)),k=O;return s.pageByteSize=k,s.byteSize=O,s.usage=f,s.gl_target=ZE(f),(0,xv.Z)(l)||s.setSubData(0,new Uint8Array(l.buffer)),M||(Vn(T)?T.bindVertexArray(s.device.currentBoundVAO):i.OES_vertex_array_object.bindVertexArrayOES(s.device.currentBoundVAO)),s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=n.byteLength-i);for(var s=this.device.gl,l=this.pageByteSize,f=t+o,v=t,y=t%l;v=1,!s){y=l.device.ensureResourceExists(f.createTexture());var T=l.device.translateTextureType(o.format),M=l.device.translateTextureInternalFormat(o.format);if(l.device.setActiveTexture(f.TEXTURE0),l.device.currentTextures[0]=null,l.preprocessImage(),o.dimension===Hi.TEXTURE_2D){if(v=je.TEXTURE_2D,f.bindTexture(v,y),l.immutable)if(Vn(f))f.texStorage2D(v,b,M,o.width,o.height);else{var O=(M===je.DEPTH_COMPONENT||l.isNPOT(),0);(l.format===Tt.D32F||l.format===Tt.D24_S8)&&!Vn(f)&&!i.WEBGL_depth_texture||(f.texImage2D(v,O,M,o.width,o.height,0,M,T,null),l.mipmaps&&(l.mipmaps=!1,f.texParameteri(je.TEXTURE_2D,je.TEXTURE_MIN_FILTER,je.LINEAR),f.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_S,je.CLAMP_TO_EDGE),f.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_T,je.CLAMP_TO_EDGE)))}Di(o.depthOrArrayLayers===1)}else if(o.dimension===Hi.TEXTURE_2D_ARRAY)v=je.TEXTURE_2D_ARRAY,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Hi.TEXTURE_3D)v=je.TEXTURE_3D,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Hi.TEXTURE_CUBE_MAP)v=je.TEXTURE_CUBE_MAP,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage2D(v,b,M,o.width,o.height),Di(o.depthOrArrayLayers===6);else throw new Error("whoops")}return l.gl_texture=y,l.gl_target=v,l.mipLevelCount=b,l}return r.prototype.setImageData=function(t,n){n===void 0&&(n=0);var i=this.device.gl;UE(this.format);var o=this.gl_target===je.TEXTURE_3D||this.gl_target===je.TEXTURE_2D_ARRAY,s=this.gl_target===je.TEXTURE_CUBE_MAP,l=ZO(t[0]);this.device.setActiveTexture(i.TEXTURE0),this.device.currentTextures[0]=null;var f=t[0],v,y;l?(v=this.width,y=this.height):(v=f.width,y=f.height,this.width=v,this.height=y),i.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),T=this.device.translateTextureType(this.format);this.preprocessImage();for(var M=0;M1){var n=ch(t.format);if(n===Cr.BC1)for(var i=t.width,o=t.height,s=0;s1?l.renderbufferStorageMultisample(je.RENDERBUFFER,T,k,v,y):l.renderbufferStorage(je.RENDERBUFFER,k,v,y)}return s.format=f,s.width=v,s.height=y,s.sampleCount=T,s}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},r}(Tf),Gl;(function(e){e[e.NeedsCompile=0]="NeedsCompile",e[e.Compiling=1]="Compiling",e[e.NeedsBind=2]="NeedsBind",e[e.ReadyToUse=3]="ReadyToUse"})(Gl||(Gl={}));var nD=function(e){(0,wn.ZT)(r,e);function r(t,n){var i=t.id,o=t.device,s=t.descriptor,l=e.call(this,{id:i,device:o})||this;l.rawVertexGLSL=n,l.type=ya.Program,l.uniformSetters={},l.attributes=[];var f=l.device.gl;return l.descriptor=s,l.gl_program=l.device.ensureResourceExists(f.createProgram()),l.gl_shader_vert=null,l.gl_shader_frag=null,l.compileState=Gl.NeedsCompile,l.tryCompileProgram(),l}return r.prototype.destroy=function(){e.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)},r.prototype.tryCompileProgram=function(){var t,n;Di(this.compileState===Gl.NeedsCompile);var i=this.descriptor,o=this.device.gl;!((t=i.vertex)===null||t===void 0)&&t.glsl&&(!((n=i.fragment)===null||n===void 0)&&n.glsl)&&(this.gl_shader_vert=this.compileShader(i.vertex.glsl,o.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(i.fragment.glsl,o.FRAGMENT_SHADER),o.attachShader(this.gl_program,this.gl_shader_vert),o.attachShader(this.gl_program,this.gl_shader_frag),o.linkProgram(this.gl_program),this.compileState=Gl.Compiling,Vn(o)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},r.prototype.readAttributesFromLinkedProgram=function(){for(var t,n=this.device.gl,i=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),o=VO(this.descriptor.vertex.glsl),s=jO(this.rawVertexGLSL,o),l=function(y){var b=n.getActiveAttrib(f.gl_program,y),T=b.name,M=b.type,O=b.size,k=n.getAttribLocation(f.gl_program,T),$=(t=s.find(function(G){return G.name===T}))===null||t===void 0?void 0:t.location;k>=0&&!(0,Bp.Z)($)&&(f.attributes[$]={name:T,location:k,type:M,size:O})},f=this,v=0;v1)for(var f=0;f1&&f.device.EXT_texture_filter_anisotropic!==null&&(Di(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Gs.LINEAR),v.samplerParameterf(y,f.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),f.gl_sampler=y}else f.descriptor=o;return f}return r.prototype.setTextureParameters=function(t,n,i){var o,s=this.device.gl,l=this.descriptor;this.isNPOT(n,i)?s.texParameteri(je.TEXTURE_2D,je.TEXTURE_MIN_FILTER,je.LINEAR):s.texParameteri(t,je.TEXTURE_MIN_FILTER,a0(l.minFilter,l.mipmapFilter)),s.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_S,Dm(l.addressModeU)),s.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_T,Dm(l.addressModeV)),s.texParameteri(t,je.TEXTURE_MAG_FILTER,a0(l.magFilter,Gs.NO_MIP));var f=(o=l.maxAnisotropy)!==null&&o!==void 0?o:1;f>1&&this.device.EXT_texture_filter_anisotropic!==null&&(Di(l.minFilter===vs.BILINEAR&&l.magFilter===vs.BILINEAR&&l.mipmapFilter===Gs.LINEAR),s.texParameteri(t,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,f))},r.prototype.destroy=function(){e.prototype.destroy.call(this),Vn(this.device.gl)&&this.device.gl.deleteSampler(C_(this))},r.prototype.isNPOT=function(t,n){return!e0(t)||!e0(n)},r}(Tf),cD=function(){function e(){}return e.prototype.dispatchWorkgroups=function(r,t,n){},e.prototype.dispatchWorkgroupsIndirect=function(r,t){},e.prototype.setPipeline=function(r){},e.prototype.setBindings=function(r){},e.prototype.pushDebugGroup=function(r){},e.prototype.popDebugGroup=function(){},e.prototype.insertDebugMarker=function(r){},e}(),jE=65536,fD=function(){function e(r,t){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.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=wv(Td),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=bv.LOWER_LEFT,this.clipSpaceNearZ=Ev.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=r,this.contextAttributes=Ad(r.getContextAttributes()),Vn(r)?(this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=r.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=r.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=r.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=r.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=r.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=r.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=r.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=r.getExtension("EXT_color_buffer_half_float"),r.getExtension("EXT_frag_depth"),r.getExtension("OES_element_index_uint"),r.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=r.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=r.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=r.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=r.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=r.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=r.getExtension("KHR_parallel_shader_compile"),Vn(r)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new M_({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Hi.TEXTURE_2D,mipLevelCount:1,usage:Ec.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Tt.U8_RGB_RT:Tt.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=zo.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Hi.TEXTURE_2D,zo.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Hi.TEXTURE_2D,zo.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:ro.VERTEX,hint:Af.STATIC}),Vn(r)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Hi.TEXTURE_2D_ARRAY,zo.Float),this.fallbackTexture3D=this.createFallbackTexture(Hi.TEXTURE_3D,zo.Float),this.fallbackTextureCube=this.createFallbackTexture(Hi.TEXTURE_CUBE_MAP,zo.Float)),this.currentMegaState.depthCompare=_a.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=wu.ALL,r.enable(r.DEPTH_TEST),r.enable(r.STENCIL_TEST),this.checkLimits(),t.shaderDebug&&(this.shaderDebug=!0),t.trackResources&&(this.resourceCreationTracker=new uD)}return e.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()},e.prototype.createFallbackTexture=function(r,t){var n=r===Hi.TEXTURE_CUBE_MAP?6:1,i=t===zo.Depth?Tt.D32F:Tt.U8_RGBA_NORM,o=this.createTexture({dimension:r,format:i,usage:Ec.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return t===zo.Float&&o.setImageData([new Uint8Array(4*n)]),Mv(o)},e.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},e.prototype.checkLimits=function(){var r=this.gl;if(this.maxVertexAttribs=r.getParameter(je.MAX_VERTEX_ATTRIBS),Vn(r)){this.uniformBufferMaxPageByteSize=Math.min(r.getParameter(je.MAX_UNIFORM_BLOCK_SIZE),jE),this.uniformBufferWordAlignment=r.getParameter(r.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var t=r.getInternalformatParameter(r.RENDERBUFFER,r.DEPTH32F_STENCIL8,r.SAMPLES);this.supportedSampleCounts=t?(0,wn.ev)([],(0,wn.CR)(t),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=jE;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(n,i){return n-i})},e.prototype.configureSwapChain=function(r,t,n){var i=this.scTexture;i.width=r,i.height=t,this.scPlatformFramebuffer=mO(n)},e.prototype.getDevice=function(){return this},e.prototype.getCanvas=function(){return this.gl.canvas},e.prototype.getOnscreenTexture=function(){return this.scTexture},e.prototype.beginFrame=function(){},e.prototype.endFrame=function(){},e.prototype.translateTextureInternalFormat=function(r,t){switch(t===void 0&&(t=!1),r){case Tt.ALPHA:return je.ALPHA;case Tt.U8_LUMINANCE:case Tt.F16_LUMINANCE:case Tt.F32_LUMINANCE:return je.LUMINANCE;case Tt.F16_R:return je.R16F;case Tt.F16_RG:return je.RG16F;case Tt.F16_RGB:return je.RGB16F;case Tt.F16_RGBA:return je.RGBA16F;case Tt.F32_R:return je.R32F;case Tt.F32_RG:return je.RG32F;case Tt.F32_RGB:return je.RGB32F;case Tt.F32_RGBA:return Vn(this.gl)?je.RGBA32F:t?this.WEBGL_color_buffer_float.RGBA32F_EXT:je.RGBA;case Tt.U8_R_NORM:return je.R8;case Tt.U8_RG_NORM:return je.RG8;case Tt.U8_RGB_NORM:case Tt.U8_RGB_RT:return je.RGB8;case Tt.U8_RGB_SRGB:return je.SRGB8;case Tt.U8_RGBA_NORM:case Tt.U8_RGBA_RT:return Vn(this.gl)?je.RGBA8:t?je.RGBA4:je.RGBA;case Tt.U8_RGBA:return je.RGBA;case Tt.U8_RGBA_SRGB:case Tt.U8_RGBA_RT_SRGB:return je.SRGB8_ALPHA8;case Tt.U16_R:return je.R16UI;case Tt.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Tt.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Tt.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Tt.U16_RGBA_5551:return je.RGB5_A1;case Tt.U16_RGB_565:return je.RGB565;case Tt.U32_R:return je.R32UI;case Tt.S8_RGBA_NORM:return je.RGBA8_SNORM;case Tt.S8_RG_NORM:return je.RG8_SNORM;case Tt.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Tt.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Tt.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Tt.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Tt.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Tt.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Tt.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Tt.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Tt.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Tt.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Tt.D32F_S8:return Vn(this.gl)?je.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?je.DEPTH_STENCIL:je.DEPTH_COMPONENT16;case Tt.D24_S8:return Vn(this.gl)?je.DEPTH24_STENCIL8:this.WEBGL_depth_texture?je.DEPTH_STENCIL:je.DEPTH_COMPONENT16;case Tt.D32F:return Vn(this.gl)?je.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?je.DEPTH_COMPONENT:je.DEPTH_COMPONENT16;case Tt.D24:return Vn(this.gl)?je.DEPTH_COMPONENT24:this.WEBGL_depth_texture?je.DEPTH_COMPONENT:je.DEPTH_COMPONENT16;default:throw new Error("whoops")}},e.prototype.translateTextureType=function(r){var t=ch(r);switch(t){case Cr.U8:return je.UNSIGNED_BYTE;case Cr.U16:return je.UNSIGNED_SHORT;case Cr.U32:return je.UNSIGNED_INT;case Cr.S8:return je.BYTE;case Cr.F16:return je.HALF_FLOAT;case Cr.F32:return je.FLOAT;case Cr.U16_PACKED_5551:return je.UNSIGNED_SHORT_5_5_5_1;case Cr.D32F:return Vn(this.gl)?je.FLOAT:this.WEBGL_depth_texture?je.UNSIGNED_INT:je.UNSIGNED_BYTE;case Cr.D24:return Vn(this.gl)?je.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?je.UNSIGNED_SHORT:je.UNSIGNED_BYTE;case Cr.D24S8:return Vn(this.gl)?je.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?je.UNSIGNED_INT_24_8_WEBGL:je.UNSIGNED_BYTE;case Cr.D32FS8:return je.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},e.prototype.translateTextureFormat=function(r){if(UE(r)||r===Tt.F32_LUMINANCE||r===Tt.U8_LUMINANCE)return this.translateTextureInternalFormat(r);var t=Vn(this.gl)||!Vn(this.gl)&&!!this.WEBGL_depth_texture;switch(r){case Tt.D24_S8:case Tt.D32F_S8:return t?je.DEPTH_STENCIL:je.RGBA;case Tt.D24:case Tt.D32F:return t?je.DEPTH_COMPONENT:je.RGBA}var n=zE(r),i=Qg(r);switch(i){case Hn.A:return je.ALPHA;case Hn.R:return n?je.RED_INTEGER:je.RED;case Hn.RG:return n?je.RG_INTEGER:je.RG;case Hn.RGB:return n?je.RGB_INTEGER:je.RGB;case Hn.RGBA:return je.RGBA}},e.prototype.setActiveTexture=function(r){this.currentActiveTexture!==r&&(this.gl.activeTexture(r),this.currentActiveTexture=r)},e.prototype.bindVAO=function(r){this.currentBoundVAO!==r&&(Vn(this.gl)?this.gl.bindVertexArray(r):this.OES_vertex_array_object.bindVertexArrayOES(r),this.currentBoundVAO=r)},e.prototype.programCompiled=function(r){Di(r.compileState!==Gl.NeedsCompile),r.compileState===Gl.Compiling&&(r.compileState=Gl.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(r))},e.prototype.useProgram=function(r){this.currentProgram!==r&&(this.programCompiled(r),this.gl.useProgram(r.gl_program),this.currentProgram=r)},e.prototype.ensureResourceExists=function(r){if(r===null){var t=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(t))}else return r},e.prototype.createBuffer=function(r){return new eD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createTexture=function(r){return new M_({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createSampler=function(r){return new lD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTarget=function(r){return new rD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTargetFromTexture=function(r){var t=r,n=t.format,i=t.width,o=t.height,s=t.mipLevelCount;return Di(s===1),this.createRenderTarget({format:n,width:i,height:o,sampleCount:1,texture:r})},e.prototype.createProgram=function(r){var t,n,i,o=(t=r.vertex)===null||t===void 0?void 0:t.glsl;return!((n=r.vertex)===null||n===void 0)&&n.glsl&&(r.vertex.glsl=Np(this.queryVendorInfo(),"vert",r.vertex.glsl)),!((i=r.fragment)===null||i===void 0)&&i.glsl&&(r.fragment.glsl=Np(this.queryVendorInfo(),"frag",r.fragment.glsl)),this.createProgramSimple(r,o)},e.prototype.createProgramSimple=function(r,t){var n=new nD({id:this.getNextUniqueId(),device:this,descriptor:r},t);return n},e.prototype.createBindings=function(r){return new WO({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createInputLayout=function(r){return new tD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderPipeline=function(r){return new oD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createComputePass=function(){return new cD},e.prototype.createComputePipeline=function(r){return new sD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createReadback=function(){return new aD({id:this.getNextUniqueId(),device:this})},e.prototype.createQueryPool=function(r,t){return new iD({id:this.getNextUniqueId(),device:this,descriptor:{type:r,elemCount:t}})},e.prototype.formatRenderPassDescriptor=function(r){var t,n,i,o,s,l,f=r.colorAttachment;r.depthClearValue=(t=r.depthClearValue)!==null&&t!==void 0?t:"load",r.stencilClearValue=(n=r.stencilClearValue)!==null&&n!==void 0?n:"load";for(var v=0;v=0;t--)this.debugGroupStack[t].drawCallCount+=r},e.prototype.debugGroupStatisticsBufferUpload=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].bufferUploadCount+=r},e.prototype.debugGroupStatisticsTextureBind=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].textureBindCount+=r},e.prototype.debugGroupStatisticsTriangles=function(r){for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].triangleCount+=r},e.prototype.reportShaderError=function(r,t){var n=this.gl,i=n.getShaderParameter(r,n.COMPILE_STATUS);if(!i){console.error(yO(t));var o=n.getExtension("WEBGL_debug_shaders");o&&console.error(o.getTranslatedShaderSource(r)),console.error(n.getShaderInfoLog(r))}return i},e.prototype.checkProgramCompilationForErrors=function(r){var t=this.gl,n=r.gl_program;if(!t.getProgramParameter(n,t.LINK_STATUS)){var i=r.descriptor;if(!this.reportShaderError(r.gl_shader_vert,i.vertex.glsl)||!this.reportShaderError(r.gl_shader_frag,i.fragment.glsl))return;console.error(t.getProgramInfoLog(r.gl_program))}},e.prototype.bindFramebufferAttachment=function(r,t,n,i){var o=this.gl;if((0,Bp.Z)(n))o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,null);else if(n.type===ya.RenderTarget)n.gl_renderbuffer!==null?o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&o.framebufferTexture2D(r,t,je.TEXTURE_2D,Mv(n.texture),i);else if(n.type===ya.Texture){var s=Mv(n);n.dimension===Hi.TEXTURE_2D?o.framebufferTexture2D(r,t,je.TEXTURE_2D,s,i):Vn(o)&&(n.dimension,Hi.TEXTURE_2D_ARRAY)}},e.prototype.bindFramebufferDepthStencilAttachment=function(r,t){var n=this.gl,i=(0,Bp.Z)(t)?An.Depth|An.Stencil:Sv(t.format),o=!!(i&An.Depth),s=!!(i&An.Stencil);if(o&&s){var l=Vn(this.gl)||!Vn(this.gl)&&!!this.WEBGL_depth_texture;l?this.bindFramebufferAttachment(r,n.DEPTH_STENCIL_ATTACHMENT,t,0):this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0)}else o?(this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,null,0)):s&&(this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,null,0))},e.prototype.validateCurrentAttachments=function(){for(var r=-1,t=-1,n=-1,i=0;i=f.numUniformBuffers),Di(s.length>=f.numSamplers);for(var v=0;v{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&HE.decode();let Fm=null;function o0(){return(Fm===null||Fm.byteLength===0)&&(Fm=new Uint8Array(gs.memory.buffer)),Fm}function s0(e,r){return e=e>>>0,HE.decode(o0().subarray(e,e+r))}const $h=new Array(128).fill(void 0);$h.push(void 0,null,!0,!1);let Bm=$h.length;function pD(e){Bm===$h.length&&$h.push($h.length+1);const r=Bm;return Bm=$h[r],$h[r]=e,r}function u0(e){return $h[e]}function dD(e){e<132||($h[e]=Bm,Bm=e)}function vD(e){const r=u0(e);return dD(e),r}let Lm=0;const l0=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},mD=typeof l0.encodeInto=="function"?function(e,r){return l0.encodeInto(e,r)}:function(e,r){const t=l0.encode(e);return r.set(t),{read:e.length,written:t.length}};function I_(e,r,t){if(t===void 0){const l=l0.encode(e),f=r(l.length,1)>>>0;return o0().subarray(f,f+l.length).set(l),Lm=l.length,f}let n=e.length,i=r(n,1)>>>0;const o=o0();let s=0;for(;s127)break;o[i+s]=l}if(s!==n){s!==0&&(e=e.slice(s)),i=t(i,n,n=s+e.length*3,1)>>>0;const l=o0().subarray(i+s,i+n),f=mD(e,l);s+=f.written}return Lm=s,i}let Nm=null;function c0(){return(Nm===null||Nm.byteLength===0)&&(Nm=new Int32Array(gs.memory.buffer)),Nm}function gD(e,r,t){let n,i;try{const l=gs.__wbindgen_add_to_stack_pointer(-16),f=I_(e,gs.__wbindgen_malloc,gs.__wbindgen_realloc),v=Lm,y=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),b=Lm;gs.glsl_compile(l,f,v,y,b,t);var o=c0()[l/4+0],s=c0()[l/4+1];return n=o,i=s,s0(o,s)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(n,i,1)}}class Um{static __wrap(r){r=r>>>0;const t=Object.create(Um.prototype);return t.__wbg_ptr=r,t}__destroy_into_raw(){const r=this.__wbg_ptr;return this.__wbg_ptr=0,r}free(){const r=this.__destroy_into_raw();gs.__wbg_wgslcomposer_free(r)}constructor(){const r=gs.wgslcomposer_new();return Um.__wrap(r)}wgsl_compile(r){let t,n;try{const s=gs.__wbindgen_add_to_stack_pointer(-16),l=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),f=Lm;gs.wgslcomposer_wgsl_compile(s,this.__wbg_ptr,l,f);var i=c0()[s/4+0],o=c0()[s/4+1];return t=i,n=o,s0(i,o)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(t,n,1)}}}function _D(e,r){return Z_(this,null,function*(){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(e,r)}catch(n){if(e.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",n);else throw n}const t=yield e.arrayBuffer();return yield WebAssembly.instantiate(t,r)}else{const t=yield WebAssembly.instantiate(e,r);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}})}function yD(){const e={};return e.wbg={},e.wbg.__wbindgen_string_new=function(r,t){const n=s0(r,t);return pD(n)},e.wbg.__wbindgen_object_drop_ref=function(r){vD(r)},e.wbg.__wbg_log_1d3ae0273d8f4f8a=function(r){console.log(u0(r))},e.wbg.__wbg_log_576ca876af0d4a77=function(r,t){console.log(u0(r),u0(t))},e.wbg.__wbindgen_throw=function(r,t){throw new Error(s0(r,t))},e}function xD(e,r){return gs=e.exports,WE.__wbindgen_wasm_module=r,Nm=null,Fm=null,gs}function WE(e){return Z_(this,null,function*(){if(gs!==void 0)return gs;const r=yD();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:n}=yield _D(yield e,r);return xD(t,n)})}var yl;(function(e){e[e.COPY_SRC=1]="COPY_SRC",e[e.COPY_DST=2]="COPY_DST",e[e.TEXTURE_BINDING=4]="TEXTURE_BINDING",e[e.STORAGE_BINDING=8]="STORAGE_BINDING",e[e.STORAGE=8]="STORAGE",e[e.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(yl||(yl={}));var P_;(function(e){e[e.READ=1]="READ",e[e.WRITE=2]="WRITE"})(P_||(P_={}));function bD(e){var r=0;return e&Ec.SAMPLED&&(r|=yl.TEXTURE_BINDING|yl.COPY_DST),e&Ec.RENDER_TARGET&&(r|=yl.RENDER_ATTACHMENT|yl.TEXTURE_BINDING|yl.COPY_SRC|yl.COPY_DST),r}function O_(e){if(e===Tt.U8_R_NORM)return"r8unorm";if(e===Tt.U8_RG_NORM)return"rg8unorm";if(e===Tt.U8_RGBA_RT)return"bgra8unorm";if(e===Tt.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(e===Tt.U8_RGBA_NORM)return"rgba8unorm";if(e===Tt.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(e===Tt.S8_R_NORM)return"r8snorm";if(e===Tt.S8_RG_NORM)return"rg8snorm";if(e===Tt.S8_RGBA_NORM)return"rgba8snorm";if(e===Tt.U32_R)return"r32uint";if(e===Tt.F16_RGBA)return"rgba16float";if(e===Tt.F32_RGBA)return"rgba32float";if(e===Tt.D24)return"depth24plus";if(e===Tt.D24_S8)return"depth24plus-stencil8";if(e===Tt.D32F)return"depth32float";if(e===Tt.D32F_S8)return"depth32float-stencil8";if(e===Tt.BC1)return"bc1-rgba-unorm";if(e===Tt.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(e===Tt.BC2)return"bc2-rgba-unorm";if(e===Tt.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(e===Tt.BC3)return"bc3-rgba-unorm";if(e===Tt.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(e===Tt.BC4_SNORM)return"bc4-r-snorm";if(e===Tt.BC4_UNORM)return"bc4-r-unorm";if(e===Tt.BC5_SNORM)return"bc5-rg-snorm";if(e===Tt.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function ED(e){if(e===Hi.TEXTURE_2D)return"2d";if(e===Hi.TEXTURE_CUBE_MAP)return"2d";if(e===Hi.TEXTURE_2D_ARRAY)return"2d";if(e===Hi.TEXTURE_3D)return"3d";throw new Error("whoops")}function SD(e){if(e===Hi.TEXTURE_2D)return"2d";if(e===Hi.TEXTURE_CUBE_MAP)return"cube";if(e===Hi.TEXTURE_2D_ARRAY)return"2d-array";if(e===Hi.TEXTURE_3D)return"3d";throw new Error("whoops")}function AD(e){var r=0;return e&ro.INDEX&&(r|=GPUBufferUsage.INDEX),e&ro.VERTEX&&(r|=GPUBufferUsage.VERTEX),e&ro.UNIFORM&&(r|=GPUBufferUsage.UNIFORM),e&ro.STORAGE&&(r|=GPUBufferUsage.STORAGE),e&ro.COPY_SRC&&(r|=GPUBufferUsage.COPY_SRC),r|=GPUBufferUsage.COPY_DST,r}function D_(e){if(e===gl.CLAMP_TO_EDGE)return"clamp-to-edge";if(e===gl.REPEAT)return"repeat";if(e===gl.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function GE(e){if(e===vs.BILINEAR)return"linear";if(e===vs.POINT)return"nearest";throw new Error("whoops")}function TD(e){if(e===Gs.LINEAR)return"linear";if(e===Gs.NEAREST)return"nearest";if(e===Gs.NO_MIP)return"nearest";throw new Error("whoops")}function Iv(e){var r=e;return r.gpuBuffer}function wD(e){var r=e;return r.gpuSampler}function CD(e){var r=e;return r.querySet}function RD(e){if(e===Kg.OcclusionConservative)return"occlusion";throw new Error("whoops")}function MD(e){switch(e){case ms.TRIANGLES:return"triangle-list";case ms.POINTS:return"point-list";case ms.TRIANGLE_STRIP:return"triangle-strip";case ms.LINES:return"line-list";case ms.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function ID(e){if(e===Wl.NONE)return"none";if(e===Wl.FRONT)return"front";if(e===Wl.BACK)return"back";throw new Error("whoops")}function PD(e){if(e===Im.CCW)return"ccw";if(e===Im.CW)return"cw";throw new Error("whoops")}function OD(e,r){return{topology:MD(e),cullMode:ID(r.cullMode),frontFace:PD(r.frontFace)}}function XE(e){if(e===ua.ZERO)return"zero";if(e===ua.ONE)return"one";if(e===ua.SRC)return"src";if(e===ua.ONE_MINUS_SRC)return"one-minus-src";if(e===ua.DST)return"dst";if(e===ua.ONE_MINUS_DST)return"one-minus-dst";if(e===ua.SRC_ALPHA)return"src-alpha";if(e===ua.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(e===ua.DST_ALPHA)return"dst-alpha";if(e===ua.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(e===ua.CONST)return"constant";if(e===ua.ONE_MINUS_CONSTANT)return"one-minus-constant";if(e===ua.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function DD(e){if(e===Tu.ADD)return"add";if(e===Tu.SUBSTRACT)return"subtract";if(e===Tu.REVERSE_SUBSTRACT)return"reverse-subtract";if(e===Tu.MIN)return"min";if(e===Tu.MAX)return"max";throw new Error("whoops")}function $E(e){return{operation:DD(e.blendMode),srcFactor:XE(e.blendSrcFactor),dstFactor:XE(e.blendDstFactor)}}function YE(e){return e.blendMode===Tu.ADD&&e.blendSrcFactor===ua.ONE&&e.blendDstFactor===ua.ZERO}function kD(e){if(!(YE(e.rgbBlendState)&&YE(e.alphaBlendState)))return{color:$E(e.rgbBlendState),alpha:$E(e.alphaBlendState)}}function FD(e,r){return{format:O_(r),blend:kD(e),writeMask:e.channelWriteMask}}function BD(e,r){return r.attachmentsState.map(function(t,n){return FD(t,e[n])})}function f0(e){if(e===_a.NEVER)return"never";if(e===_a.LESS)return"less";if(e===_a.EQUAL)return"equal";if(e===_a.LEQUAL)return"less-equal";if(e===_a.GREATER)return"greater";if(e===_a.NOTEQUAL)return"not-equal";if(e===_a.GEQUAL)return"greater-equal";if(e===_a.ALWAYS)return"always";throw new Error("whoops")}function Pv(e){if(e===qu.KEEP)return"keep";if(e===qu.REPLACE)return"replace";if(e===qu.ZERO)return"zero";if(e===qu.DECREMENT_CLAMP)return"decrement-clamp";if(e===qu.DECREMENT_WRAP)return"decrement-wrap";if(e===qu.INCREMENT_CLAMP)return"increment-clamp";if(e===qu.INCREMENT_WRAP)return"increment-wrap";if(e===qu.INVERT)return"invert";throw new Error("whoops")}function LD(e,r){if(!(0,Bp.Z)(e))return{format:O_(e),depthWriteEnabled:!!r.depthWrite,depthCompare:f0(r.depthCompare),depthBias:r.polygonOffset?1:0,depthBiasSlopeScale:r.polygonOffset?1:0,stencilFront:{compare:f0(r.stencilFront.compare),passOp:Pv(r.stencilFront.passOp),failOp:Pv(r.stencilFront.failOp),depthFailOp:Pv(r.stencilFront.depthFailOp)},stencilBack:{compare:f0(r.stencilBack.compare),passOp:Pv(r.stencilBack.passOp),failOp:Pv(r.stencilBack.failOp),depthFailOp:Pv(r.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function ND(e){if(e!==null){if(e===Tt.U16_R)return"uint16";if(e===Tt.U32_R)return"uint32";throw new Error("whoops")}}function UD(e){if(e===Sd.VERTEX)return"vertex";if(e===Sd.INSTANCE)return"instance";throw new Error("whoops")}function zD(e){if(e===Tt.U8_R)return"uint8x2";if(e===Tt.U8_RG)return"uint8x2";if(e===Tt.U8_RGB)return"uint8x4";if(e===Tt.U8_RGBA)return"uint8x4";if(e===Tt.U8_RG_NORM)return"unorm8x2";if(e===Tt.U8_RGBA_NORM)return"unorm8x4";if(e===Tt.S8_RGB_NORM)return"snorm8x4";if(e===Tt.S8_RGBA_NORM)return"snorm8x4";if(e===Tt.U16_RG_NORM)return"unorm16x2";if(e===Tt.U16_RGBA_NORM)return"unorm16x4";if(e===Tt.S16_RG_NORM)return"snorm16x2";if(e===Tt.S16_RGBA_NORM)return"snorm16x4";if(e===Tt.S16_RG)return"uint16x2";if(e===Tt.F16_RG)return"float16x2";if(e===Tt.F16_RGBA)return"float16x4";if(e===Tt.F32_R)return"float32";if(e===Tt.F32_RG)return"float32x2";if(e===Tt.F32_RGB)return"float32x3";if(e===Tt.F32_RGBA)return"float32x4";throw"whoops"}function ZD(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_SNORM:case Cr.BC4_UNORM:case Cr.BC5_SNORM:case Cr.BC5_UNORM:return!0;default:return!1}}function VD(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_SNORM:case Cr.BC4_UNORM:case Cr.BC5_SNORM:case Cr.BC5_UNORM:return 4;default:return 1}}function qE(e,r,t,n){switch(t===void 0&&(t=!1),e){case Tt.S8_R:case Tt.S8_R_NORM:case Tt.S8_RG_NORM:case Tt.S8_RGB_NORM:case Tt.S8_RGBA_NORM:{var i=r instanceof ArrayBuffer?new Int8Array(r):new Int8Array(r);return n&&i.set(new Int8Array(n)),i}case Tt.U8_R:case Tt.U8_R_NORM:case Tt.U8_RG:case Tt.U8_RG_NORM:case Tt.U8_RGB:case Tt.U8_RGB_NORM:case Tt.U8_RGB_SRGB:case Tt.U8_RGBA:case Tt.U8_RGBA_NORM:case Tt.U8_RGBA_SRGB:{var o=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&o.set(new Uint8Array(n)),o}case Tt.S16_R:case Tt.S16_RG:case Tt.S16_RG_NORM:case Tt.S16_RGB_NORM:case Tt.S16_RGBA:case Tt.S16_RGBA_NORM:{var s=r instanceof ArrayBuffer?new Int16Array(r):new Int16Array(t?r/2:r);return n&&s.set(new Int16Array(n)),s}case Tt.U16_R:case Tt.U16_RGB:case Tt.U16_RGBA_5551:case Tt.U16_RGBA_NORM:case Tt.U16_RG_NORM:case Tt.U16_R_NORM:{var l=r instanceof ArrayBuffer?new Uint16Array(r):new Uint16Array(t?r/2:r);return n&&l.set(new Uint16Array(n)),l}case Tt.S32_R:{var f=r instanceof ArrayBuffer?new Int32Array(r):new Int32Array(t?r/4:r);return n&&f.set(new Int32Array(n)),f}case Tt.U32_R:case Tt.U32_RG:{var v=r instanceof ArrayBuffer?new Uint32Array(r):new Uint32Array(t?r/4:r);return n&&v.set(new Uint32Array(n)),v}case Tt.F32_R:case Tt.F32_RG:case Tt.F32_RGB:case Tt.F32_RGBA:{var y=r instanceof ArrayBuffer?new Float32Array(r):new Float32Array(t?r/4:r);return n&&y.set(new Float32Array(n)),y}}var b=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&b.set(new Uint8Array(n)),b}function jD(e){var r=(e&32768)>>15,t=(e&31744)>>10,n=e&1023;return t===0?(r?-1:1)*Math.pow(2,-14)*(n/Math.pow(2,10)):t==31?n?NaN:(r?-1:1)*(1/0):(r?-1:1)*Math.pow(2,t-15)*(1+n/Math.pow(2,10))}var fh=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this)||this;return o.id=n,o.device=i,o}return r.prototype.destroy=function(){},r}(bE.Z),HD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Bindings;var l=o.pipeline;Di(!!l);var f=o.uniformBufferBindings,v=o.storageBufferBindings,y=o.samplerBindings;s.numUniformBuffers=(f==null?void 0:f.length)||0;var b=[[],[]],T=0;if(v&&v.length)for(var M=0;M0}).map(function(Mr,br){return s.device.device.createBindGroup({layout:l.getBindGroupLayout(br),entries:Mr})}),s}return r}(fh),WD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Buffer;var l=o.usage,f=o.viewOrSize,v=!!(l&ro.MAP_READ);s.usage=AD(l),v&&(s.usage=ro.MAP_READ|ro.COPY_DST);var y=!(0,xv.Z)(f);if(s.view=(0,xv.Z)(f)?null:f,s.size=(0,xv.Z)(f)?t0(f,4):t0(f.byteLength,4),(0,xv.Z)(f))s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:v?y:!1});else{s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:!0});var b=f&&f.constructor||Float32Array;new b(s.gpuBuffer.getMappedRange()).set(f),s.gpuBuffer.unmap()}return s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=0);var s=this.gpuBuffer;o=o||n.byteLength,o=Math.min(o,this.size-t);var l=n.byteOffset+i,f=l+o,v=o+3&-4;if(v!==o){var y=new Uint8Array(n.buffer.slice(l,f));n=new Uint8Array(v),n.set(y),i=0,l=0,f=v,o=v}for(var b=1024*1024*15,T=0;f-(l+T)>b;)this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,b),T+=b;this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,o-T)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gpuBuffer.destroy()},r}(fh),GD=function(){function e(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return e.prototype.dispatchWorkgroups=function(r,t,n){this.gpuComputePassEncoder.dispatchWorkgroups(r,t,n)},e.prototype.dispatchWorkgroupsIndirect=function(r,t){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(r.gpuBuffer,t)},e.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},e.prototype.beginComputePass=function(){Di(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},e.prototype.setBindings=function(r){var t=r;this.gpuComputePassEncoder.setBindGroup(0,t.gpuBindGroup[0])},e.prototype.pushDebugGroup=function(r){this.gpuComputePassEncoder.pushDebugGroup(r)},e.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},e.prototype.insertDebugMarker=function(r){this.gpuComputePassEncoder.insertDebugMarker(r)},e}(),XD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.ComputePipeline,s.gpuComputePipeline=null,s.descriptor=o;var l=o.program,f=l.computeStage;if(f===null)return s;var v={layout:"auto",compute:(0,wn.pi)({},f)};return s.gpuComputePipeline=s.device.device.createComputePipeline(v),s.name!==void 0&&(s.gpuComputePipeline.label=s.name),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuComputePipeline.getBindGroupLayout(t)},r}(fh),$D=function(e){(0,wn.ZT)(r,e);function r(t){var n,i,o,s,l=t.id,f=t.device,v=t.descriptor,y=e.call(this,{id:l,device:f})||this;y.type=ya.InputLayout;var b=[];try{for(var T=(0,wn.XA)(v.vertexBufferDescriptors),M=T.next();!M.done;M=T.next()){var O=M.value,k=O.arrayStride,$=O.stepMode,G=O.attributes;b.push({arrayStride:k,stepMode:UD($),attributes:[]});try{for(var oe=(o=void 0,(0,wn.XA)(G)),ye=oe.next();!ye.done;ye=oe.next()){var Le=ye.value,$e=Le.shaderLocation,ut=Le.format,vt=Le.offset;b[b.length-1].attributes.push({shaderLocation:$e,format:zD(ut),offset:vt})}}catch(Rt){o={error:Rt}}finally{try{ye&&!ye.done&&(s=oe.return)&&s.call(oe)}finally{if(o)throw o.error}}}}catch(Rt){n={error:Rt}}finally{try{M&&!M.done&&(i=T.return)&&i.call(T)}finally{if(n)throw n.error}}return y.indexFormat=ND(v.indexBufferFormat),y.buffers=b,y}return r}(fh),KE=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.Program,s.vertexStage=null,s.fragmentStage=null,s.computeStage=null,s.descriptor=o,o.vertex&&(s.vertexStage=s.createShaderStage(o.vertex,"vertex")),o.fragment&&(s.fragmentStage=s.createShaderStage(o.fragment,"fragment")),o.compute&&(s.computeStage=s.createShaderStage(o.compute,"compute")),s}return r.prototype.setUniformsLegacy=function(t){},r.prototype.createShaderStage=function(t,n){var i,o,s=t.glsl,l=t.wgsl,f=t.entryPoint,v=!1,y=l;if(!y)try{y=this.device.glsl_compile(s,n,v)}catch($){throw console.error($,s),new Error("whoops")}var b=function($){if(!y.includes($))return"continue";y=y.replace("var T_".concat($,": texture_2d;"),"var T_".concat($,": texture_depth_2d;")),y=y.replace(new RegExp("textureSample\\(T_".concat($,"(.*)\\);$"),"gm"),function(G,oe){return"vec4(textureSample(T_".concat($).concat(oe,"), 0.0, 0.0, 0.0);")})};try{for(var T=(0,wn.XA)(["u_TextureFramebufferDepth"]),M=T.next();!M.done;M=T.next()){var O=M.value;b(O)}}catch($){i={error:$}}finally{try{M&&!M.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}var k=this.device.device.createShaderModule({code:y});return{module:k,entryPoint:f||"main"}},r}(fh),YD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.QueryPool;var l=o.elemCount,f=o.type;return s.querySet=s.device.device.createQuerySet({type:RD(f),count:l}),s.resolveBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),s.cpuBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),s.results=null,s}return r.prototype.queryResultOcclusion=function(t){return this.results===null?null:this.results[t]!==BigInt(0)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},r}(fh),qD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this,{id:n,device:i})||this;return o.type=ya.Readback,o}return r.prototype.readTexture=function(t,n,i,o,s,l,f,v){return f===void 0&&(f=0),(0,wn.mG)(this,void 0,void 0,function(){var y,b,T,M,O,k,$,G;return(0,wn.Jh)(this,function(oe){return y=t,b=0,T=this.getBlockInformationFromFormat(y.gpuTextureformat),M=Math.ceil(o/T.width)*T.length,O=Math.ceil(M/256)*256,k=O*s,$=this.device.createBuffer({usage:ro.STORAGE|ro.MAP_READ|ro.COPY_DST,hint:Af.STATIC,viewOrSize:k}),G=this.device.device.createCommandEncoder(),G.copyTextureToBuffer({texture:y.gpuTexture,mipLevel:0,origin:{x:n,y:i,z:Math.max(b,0)}},{buffer:$.gpuBuffer,offset:0,bytesPerRow:O},{width:o,height:s,depthOrArrayLayers:1}),this.device.device.queue.submit([G.finish()]),[2,this.readBuffer($,0,l.byteLength===k?l:null,f,k,y.format)]})})},r.prototype.readTextureSync=function(t,n,i,o,s,l,f,v){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},r.prototype.readBuffer=function(t,n,i,o,s,l,f,v){var y=this;n===void 0&&(n=0),i===void 0&&(i=null),s===void 0&&(s=0),l===void 0&&(l=Tt.U8_RGB),f===void 0&&(f=!1);var b=t,T=s||b.size,M=i||b.view,O=M&&M.constructor&&M.constructor.BYTES_PER_ELEMENT||AE(l),k=b;if(!(b.usage&ro.MAP_READ&&b.usage&ro.COPY_DST)){var $=this.device.device.createCommandEncoder();k=this.device.createBuffer({usage:ro.STORAGE|ro.MAP_READ|ro.COPY_DST,hint:Af.STATIC,viewOrSize:T}),$.copyBufferToBuffer(b.gpuBuffer,n,k.gpuBuffer,0,T),this.device.device.queue.submit([$.finish()])}return new Promise(function(G,oe){k.gpuBuffer.mapAsync(P_.READ,n,T).then(function(){var ye=k.gpuBuffer.getMappedRange(n,T),Le=M;if(f)Le===null?Le=qE(l,T,!0,ye):Le=qE(l,Le.buffer,void 0,ye);else if(Le===null)switch(O){case 1:Le=new Uint8Array(T),Le.set(new Uint8Array(ye));break;case 2:Le=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,ye);break;case 4:Le=new Float32Array(T/4),Le.set(new Float32Array(ye));break}else switch(O){case 1:Le=new Uint8Array(Le.buffer),Le.set(new Uint8Array(ye));break;case 2:Le=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,ye,M);break;case 4:var $e=M&&M.constructor||Float32Array;Le=new $e(Le.buffer),Le.set(new $e(ye));break}k.gpuBuffer.unmap(),G(Le)},function(ye){return oe(ye)})})},r.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(t,n,i){i||(i=new Float32Array(t));for(var o=new Uint16Array(n);t--;)i[t]=jD(o[t]);return i},r.prototype.getBlockInformationFromFormat=function(t){switch(t){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}}},r}(fh),KD=function(){function e(r){this.device=r,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 e.prototype.getTextureView=function(r,t){return Di(t1?T.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[v]):T.storeOp="store")}else{this.gpuColorAttachments.length=v,this.gfxColorAttachment.length=v,this.gfxColorResolveTo.length=v;break}}if(this.gfxDepthStencilAttachment=r.depthStencilAttachment,this.gfxDepthStencilResolveTo=r.depthStencilResolveTo,r.depthStencilAttachment){var O=r.depthStencilAttachment,T=this.gpuDepthStencilAttachment;T.view=O.gpuTextureView;var k=!!(Sv(O.format)&An.Depth);k?(r.depthClearValue==="load"?T.depthLoadOp="load":(T.depthLoadOp="clear",T.depthClearValue=r.depthClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.depthStoreOp="store":T.depthStoreOp="discard"):(T.depthLoadOp=void 0,T.depthStoreOp=void 0);var $=!!(Sv(O.format)&An.Stencil);$?(r.stencilClearValue==="load"?T.stencilLoadOp="load":(T.stencilLoadOp="clear",T.stencilClearValue=r.stencilClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.stencilStoreOp="store":T.stencilStoreOp="discard"):(T.stencilLoadOp=void 0,T.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=(0,Bp.Z)(r.occlusionQueryPool)?void 0:CD(r.occlusionQueryPool)},e.prototype.beginRenderPass=function(r){Di(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(r),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},e.prototype.flipY=function(r,t){var n=this.device.swapChainHeight;return n-r-t},e.prototype.setViewport=function(r,t,n,i,o,s){o===void 0&&(o=0),s===void 0&&(s=1),this.gpuRenderPassEncoder.setViewport(r,this.flipY(t,i),n,i,o,s)},e.prototype.setScissorRect=function(r,t,n,i){this.gpuRenderPassEncoder.setScissorRect(r,this.flipY(t,i),n,i)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(n)},e.prototype.setVertexInput=function(r,t,n){if(r!==null){var i=r;n!==null&&this.gpuRenderPassEncoder.setIndexBuffer(Iv(n.buffer),Ad(i.indexFormat),n.offset);for(var o=0;o1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},e.prototype.copyAttachment=function(r,t,n,i){Di(n.sampleCount===1);var o={texture:n.gpuTexture,mipLevel:i},s={texture:r.gpuTexture,mipLevel:t};Di(n.width>>>i===r.width>>>t),Di(n.height>>>i===r.height>>>t),Di(!!(n.usage&yl.COPY_SRC)),Di(!!(r.usage&yl.COPY_DST)),this.commandEncoder.copyTextureToTexture(o,s,[r.width,r.height,1])},e}(),QD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.RenderPipeline,s.isCreatingAsync=!1,s.gpuRenderPipeline=null,s.descriptor=o,s.device.createRenderPipelineInternal(s,!1),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuRenderPipeline.getBindGroupLayout(t)},r}(fh),JD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s,l,f=e.call(this,{id:n,device:i})||this;f.type=ya.Sampler;var v=o.lodMinClamp,y=o.mipmapFilter===Gs.NO_MIP?o.lodMinClamp:o.lodMaxClamp,b=(s=o.maxAnisotropy)!==null&&s!==void 0?s:1;return b>1&&Di(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Gs.LINEAR),f.gpuSampler=f.device.device.createSampler({addressModeU:D_(o.addressModeU),addressModeV:D_(o.addressModeV),addressModeW:D_((l=o.addressModeW)!==null&&l!==void 0?l:o.addressModeU),lodMinClamp:v,lodMaxClamp:y,minFilter:GE(o.minFilter),magFilter:GE(o.magFilter),mipmapFilter:TD(o.mipmapFilter),compare:o.compareFunction!==void 0?f0(o.compareFunction):void 0,maxAnisotropy:b}),f}return r}(fh),h0=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=t.skipCreate,l=t.sampleCount,f=e.call(this,{id:n,device:i})||this;f.type=ya.Texture;var v=o.format,y=o.dimension,b=o.width,T=o.height,M=o.depthOrArrayLayers,O=o.mipLevelCount,k=o.usage;return f.device.createTextureShared({format:v,dimension:y!=null?y:Hi.TEXTURE_2D,width:b,height:T,depthOrArrayLayers:M!=null?M:1,mipLevelCount:O!=null?O:1,usage:k,sampleCount:l!=null?l:1},f,s),f}return r.prototype.textureFromImageBitmapOrCanvas=function(t,n,i){for(var o=n[0].width,s=n[0].height,l={size:{width:o,height:s,depthOrArrayLayers:i},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},f=t.createTexture(l),v=0;v>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},e.prototype.queryTextureFormatSupported=function(r,t,n){if(ZD(r)){if(!this.featureTextureCompressionBC)return!1;var i=VD(r);return t%i!==0||n%i!==0?!1:this.featureTextureCompressionBC}switch(r){case Tt.U16_RGBA_NORM:return!1;case Tt.F32_RGBA:return!1}return!0},e.prototype.queryPlatformAvailable=function(){return!0},e.prototype.queryVendorInfo=function(){return this},e.prototype.queryRenderPass=function(r){var t=r;return t.descriptor},e.prototype.queryRenderTarget=function(r){var t=r;return t},e.prototype.setResourceName=function(r,t){if(r.name=t,r.type===ya.Buffer){var n=r;n.gpuBuffer.label=t}else if(r.type===ya.Texture){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.RenderTarget){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.Sampler){var n=r;n.gpuSampler.label=t}else if(r.type===ya.RenderPipeline){var n=r;n.gpuRenderPipeline!==null&&(n.gpuRenderPipeline.label=t)}},e.prototype.setResourceLeakCheck=function(r,t){},e.prototype.checkForLeaks=function(){},e.prototype.programPatched=function(r){},e.prototype.pipelineQueryReady=function(r){var t=r;return t.gpuRenderPipeline!==null},e.prototype.pipelineForceReady=function(r){var t=r;this.createRenderPipelineInternal(t,!1)},e}(),tk=function(){function e(r){this.pluginOptions=r}return e.prototype.createSwapChain=function(r){return(0,wn.mG)(this,void 0,void 0,function(){var t,n,i,o,s,l,f,v;return(0,wn.Jh)(this,function(y){switch(y.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];t=null,y.label=1;case 1:return y.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return t=y.sent(),[3,4];case 3:return i=y.sent(),console.log(i),[3,4];case 4:return t===null?[2,null]:(o=["depth32float-stencil8","texture-compression-bc"],s=o.filter(function(b){return t.features.has(b)}),[4,t.requestDevice({requiredFeatures:s})]);case 5:if(l=y.sent(),l&&(f=this.pluginOptions.onContextLost,l.lost.then(function(){f&&f()})),l===null)return[2,null];if(v=r.getContext("webgpu"),!v)return[2,null];y.label=6;case 6:return y.trys.push([6,8,,9]),[4,WE(this.pluginOptions.shaderCompilerPath)];case 7:return y.sent(),[3,9];case 8:return y.sent(),[3,9];case 9:return[2,new ek(t,l,r,v,gD,Um&&new Um)]}})})},e}(),rk=ii.isPlainObject,nk=ii.isTypedArray,ik=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),this.reGl=r;var n=t.vs,i=t.fs,o=t.attributes,s=t.uniforms,l=t.primitive,f=t.count,v=t.elements,y=t.depth,b=t.cull,T=t.instances,M={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:bv.LOWER_LEFT,clipSpaceNearZ:Ev.NEGATIVE_ONE,supportMRT:!1},O={};this.options=t,s&&(this.uniforms=this.extractUniforms(s),Object.keys(s).forEach(function(G){O[G]=r.prop(G)}));var k={};Object.keys(o).forEach(function(G){k[G]=o[G].get()});var $={attributes:k,frag:om(Np(M,"frag",i,null,!1)),uniforms:O,vert:om(Np(M,"vert",n,null,!1)),colorMask:r.prop("colorMask"),lineWidth:1,blend:{enable:r.prop("blend.enable"),func:r.prop("blend.func"),equation:r.prop("blend.equation"),color:r.prop("blend.color")},stencil:{enable:r.prop("stencil.enable"),mask:r.prop("stencil.mask"),func:r.prop("stencil.func"),opFront:r.prop("stencil.opFront"),opBack:r.prop("stencil.opBack")},primitive:rO[l===void 0?R.TRIANGLES:l]};T&&($.instances=T),f?$.count=f:v&&($.elements=v.get()),this.initDepthDrawParams({depth:y},$),this.initCullDrawParams({cull:b},$),this.drawCommand=r($),this.drawParams=$}return(0,V.Z)(e,[{key:"updateAttributesAndElements",value:function(t,n){var i={};Object.keys(t).forEach(function(o){i[o]=t[o].get()}),this.drawParams.attributes=i,this.drawParams.elements=n.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(t){var n={};Object.keys(t).forEach(function(i){n[i]=t[i].get()}),this.drawParams.attributes=n,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(t){this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t,n){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var i=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t.uniforms||{})),o={};Object.keys(i).forEach(function(s){var l=(0,cl.Z)(i[s]);l==="boolean"||l==="number"||Array.isArray(i[s])||i[s].BYTES_PER_ELEMENT?o[s]=i[s]:o[s]=i[s].get()}),o.blend=n?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),o.stencil=this.getStencilDrawParams(t),o.colorMask=this.getColorMaskDrawParams(t,n),this.drawCommand(o)}}},{key:"destroy",value:function(){var t;(t=this.drawParams)===null||t===void 0||(t=t.elements)===null||t===void 0||t.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(n){n==null||n.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t,n){var i=t.depth;i&&(n.depth={enable:i.enable===void 0?!0:!!i.enable,mask:i.mask===void 0?!0:!!i.mask,func:oO[i.func||R.LESS],range:i.range||[0,1]})}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:qg[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:qg[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:qg[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:qg[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:xE[l&&l.rgb||R.FUNC_ADD],alpha:xE[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"getStencilDrawParams",value:function(t){var n=t.stencil,i=n||{},o=i.enable,s=i.mask,l=s===void 0?-1:s,f=i.func,v=f===void 0?{cmp:R.ALWAYS,ref:0,mask:-1}:f,y=i.opFront,b=y===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:y,T=i.opBack,M=T===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:T;return{enable:!!o,mask:l,func:(0,H.Z)((0,H.Z)({},v),{},{cmp:sO[v.cmp]}),opFront:{fail:yv[b.fail],zfail:yv[b.zfail],zpass:yv[b.zpass]},opBack:{fail:yv[M.fail],zfail:yv[M.zfail],zpass:yv[M.zpass]}}}},{key:"getColorMaskDrawParams",value:function(t,n){var i=t.stencil,o=i!=null&&i.enable&&i.opFront&&!n?[!1,!1,!1,!1]:[!0,!0,!0,!0];return o}},{key:"initCullDrawParams",value:function(t,n){var i=t.cull;if(i){var o=i.enable,s=i.face,l=s===void 0?R.BACK:s;n.cull={enable:!!o,face:uO[l]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||nk(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}rk(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}(),ak=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.mipmap,M=T===void 0?!1:T,O=t.wrapS,k=O===void 0?R.CLAMP_TO_EDGE:O,$=t.wrapT,G=$===void 0?R.CLAMP_TO_EDGE:$,oe=t.aniso,ye=oe===void 0?0:oe,Le=t.alignment,$e=Le===void 0?1:Le,ut=t.premultiplyAlpha,vt=ut===void 0?!1:ut,Rt=t.mag,Jt=Rt===void 0?R.NEAREST:Rt,Mr=t.min,br=Mr===void 0?R.NEAREST:Mr,pn=t.colorSpace,kn=pn===void 0?R.BROWSER_DEFAULT_WEBGL:pn,Pi=t.x,xa=Pi===void 0?0:Pi,is=t.y,_s=is===void 0?0:is,as=t.copy,lu=as===void 0?!1:as;this.width=s,this.height=l;var Ac={width:s,height:l,type:S_[o],format:nO[b],wrapS:yE[k],wrapT:yE[G],mag:_E[Jt],min:_E[br],alignment:$e,flipY:v,colorSpace:aO[kn],premultiplyAlpha:vt,aniso:ye,x:xa,y:_s,copy:lu};n&&(Ac.data=n),typeof M=="number"?Ac.mipmap=iO[M]:typeof M=="boolean"&&(Ac.mipmap=M),this.texture=r.texture(Ac)}return(0,V.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(t)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.texture.resize(n,i),this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),QE,JE,ok=(QE=(0,gt.b2)(),QE(JE=function(){function e(){var r=this;(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new ik(r.gl,t)}),(0,B.Z)(this,"createAttribute",function(t){return new tO(r.gl,t)}),(0,B.Z)(this,"createBuffer",function(t){return new lO(r.gl,t)}),(0,B.Z)(this,"createElements",function(t){return new cO(r.gl,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new ak(r.gl,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new fO(r.gl,t)}),(0,B.Z)(this,"useFramebuffer",function(t,n){r.gl({framebuffer:t?t.get():null})(n)}),(0,B.Z)(this,"clear",function(t){var n,i=t.color,o=t.depth,s=t.stencil,l=t.framebuffer,f=l===void 0?null:l,v={color:i,depth:o,stencil:s};v.framebuffer=f===null?f:f.get(),(n=r.gl)===null||n===void 0||n.clear(v)}),(0,B.Z)(this,"viewport",function(t){var n=t.x,i=t.y,o=t.width,s=t.height;r.gl._gl.viewport(n,i,o,s),r.width=o,r.height=s,r.gl._refresh()}),(0,B.Z)(this,"readPixels",function(t){var n=t.framebuffer,i=t.x,o=t.y,s=t.width,l=t.height,f={x:i,y:o,width:s,height:l};return n&&(f.framebuffer=n.get()),r.gl.read(f)}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.gl._gl.drawingBufferWidth,height:r.gl._gl.drawingBufferHeight}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.gl._gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.gl)===null||t===void 0||(t=t._gl)===null||t===void 0||(t=t.getExtension("WEBGL_lose_context"))===null||t===void 0||t.loseContext(),r.gl.destroy(),r.gl=null})}return(0,V.Z)(e,[{key:"init",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o,s){var l=this;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.canvas=i,!s){v.next=5;break}this.gl=s,v.next=8;break;case 5:return v.next=7,new Promise(function(y,b){eO()({canvas:l.canvas,attributes:{alpha:!0,antialias:o.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:o.preserveDrawingBuffer,stencil:o.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(M,O){(M||!O)&&b(M),y(O)}})});case 7:this.gl=v.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return v.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{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 t=this.getGLContext();t.disable(t.CULL_FACE)}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),e}())||JE),sk=function(){function e(r,t){(0,q.Z)(this,e);var n=t.buffer,i=t.offset,o=t.stride,s=t.normalized,l=t.size,f=t.divisor,v=t.shaderLocation;this.buffer=n,this.attribute={shaderLocation:v,buffer:n.get(),offset:i||0,stride:o||0,normalized:s||!1,divisor:f||0},l&&(this.attribute.size=l)}return(0,V.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),e}(),zp,Yh,Ov,zm,Zm,hh,p0,wd,Cu,d0=(zp={},(0,B.Z)(zp,R.FLOAT,Float32Array),(0,B.Z)(zp,R.UNSIGNED_BYTE,Uint8Array),(0,B.Z)(zp,R.SHORT,Int16Array),(0,B.Z)(zp,R.UNSIGNED_SHORT,Uint16Array),(0,B.Z)(zp,R.INT,Int32Array),(0,B.Z)(zp,R.UNSIGNED_INT,Uint32Array),zp),uk=(Yh={},(0,B.Z)(Yh,R.POINTS,ms.POINTS),(0,B.Z)(Yh,R.LINES,ms.LINES),(0,B.Z)(Yh,R.LINE_LOOP,ms.LINES),(0,B.Z)(Yh,R.LINE_STRIP,ms.LINE_STRIP),(0,B.Z)(Yh,R.TRIANGLES,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_FAN,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_STRIP,ms.TRIANGLE_STRIP),Yh),lk=(Ov={},(0,B.Z)(Ov,1,Tt.F32_R),(0,B.Z)(Ov,2,Tt.F32_RG),(0,B.Z)(Ov,3,Tt.F32_RGB),(0,B.Z)(Ov,4,Tt.F32_RGBA),Ov),ck=(zm={},(0,B.Z)(zm,R.STATIC_DRAW,Af.STATIC),(0,B.Z)(zm,R.DYNAMIC_DRAW,Af.DYNAMIC),(0,B.Z)(zm,R.STREAM_DRAW,Af.DYNAMIC),zm),e2=(Zm={},(0,B.Z)(Zm,R.REPEAT,gl.REPEAT),(0,B.Z)(Zm,R.CLAMP_TO_EDGE,gl.CLAMP_TO_EDGE),(0,B.Z)(Zm,R.MIRRORED_REPEAT,gl.MIRRORED_REPEAT),Zm),fk=(hh={},(0,B.Z)(hh,R.NEVER,_a.NEVER),(0,B.Z)(hh,R.ALWAYS,_a.ALWAYS),(0,B.Z)(hh,R.LESS,_a.LESS),(0,B.Z)(hh,R.LEQUAL,_a.LEQUAL),(0,B.Z)(hh,R.GREATER,_a.GREATER),(0,B.Z)(hh,R.GEQUAL,_a.GEQUAL),(0,B.Z)(hh,R.EQUAL,_a.EQUAL),(0,B.Z)(hh,R.NOTEQUAL,_a.NOTEQUAL),hh),hk=(p0={},(0,B.Z)(p0,R.FRONT,Wl.FRONT),(0,B.Z)(p0,R.BACK,Wl.BACK),p0),t2=(wd={},(0,B.Z)(wd,R.FUNC_ADD,Tu.ADD),(0,B.Z)(wd,R.MIN_EXT,Tu.MIN),(0,B.Z)(wd,R.MAX_EXT,Tu.MAX),(0,B.Z)(wd,R.FUNC_SUBTRACT,Tu.SUBSTRACT),(0,B.Z)(wd,R.FUNC_REVERSE_SUBTRACT,Tu.REVERSE_SUBSTRACT),wd),v0=(Cu={},(0,B.Z)(Cu,R.ZERO,ua.ZERO),(0,B.Z)(Cu,R.ONE,ua.ONE),(0,B.Z)(Cu,R.SRC_COLOR,ua.SRC),(0,B.Z)(Cu,R.ONE_MINUS_SRC_COLOR,ua.ONE_MINUS_SRC),(0,B.Z)(Cu,R.SRC_ALPHA,ua.SRC_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_SRC_ALPHA,ua.ONE_MINUS_SRC_ALPHA),(0,B.Z)(Cu,R.DST_COLOR,ua.DST),(0,B.Z)(Cu,R.ONE_MINUS_DST_COLOR,ua.ONE_MINUS_DST),(0,B.Z)(Cu,R.DST_ALPHA,ua.DST_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_DST_ALPHA,ua.ONE_MINUS_DST_ALPHA),(0,B.Z)(Cu,R.CONSTANT_COLOR,ua.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_COLOR,ua.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.CONSTANT_ALPHA,ua.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_ALPHA,ua.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.SRC_ALPHA_SATURATE,ua.SRC_ALPHA_SATURATE),Cu),pk={"[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 m0(e){return Object.prototype.toString.call(e)in pk}var dk=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroyed",!1);var n=t.data,i=t.usage,o=t.type,s=t.isUBO,l;m0(n)?l=n:l=new d0[this.type||R.FLOAT](n),this.type=o,this.size=l.byteLength,this.buffer=r.createBuffer({viewOrSize:l,usage:s?ro.UNIFORM:ro.VERTEX,hint:ck[i||R.STATIC_DRAW]})}return(0,V.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(t){var n=t.data,i=t.offset,o;m0(n)?o=n:o=new d0[this.type||R.FLOAT](n),this.buffer.setSubData(i,new Uint8Array(o.buffer))}}]),e}(),vk=function(){function e(r,t){(0,q.Z)(this,e);var n=t.data,i=t.type,o=t.count,s=o===void 0?0:o,l;m0(n)?l=n:l=new d0[this.type||R.UNSIGNED_INT](n),this.type=i,this.count=s,this.indexBuffer=r.createBuffer({viewOrSize:l,usage:ro.INDEX})}return(0,V.Z)(e,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(t){var n=t.data,i;m0(n)?i=n:i=new d0[this.type||R.UNSIGNED_INT](n),this.indexBuffer.setSubData(0,new Uint8Array(i.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),e}();function mk(e){return!1}var gk=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.wrapS,M=T===void 0?R.CLAMP_TO_EDGE:T,O=t.wrapT,k=O===void 0?R.CLAMP_TO_EDGE:O,$=t.alignment,G=$===void 0?1:$;this.width=s,this.height=l;var oe=Tt.U8_RGBA_RT;if(o===R.UNSIGNED_BYTE&&b===R.RGBA)oe=Tt.U8_RGBA_RT;else if(b===R.LUMINANCE&&o===R.FLOAT)oe=Tt.F32_LUMINANCE;else if(b===R.LUMINANCE&&o===R.UNSIGNED_BYTE)oe=Tt.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(o,", format: ").concat(b));this.texture=r.createTexture({format:oe,width:s,height:l,usage:Ec.SAMPLED,pixelStore:{unpackFlipY:v,packAlignment:G}}),n&&this.texture.setImageData([n]),this.sampler=r.createSampler({addressModeU:e2[M],addressModeV:e2[k],minFilter:vs.POINT,magFilter:vs.BILINEAR,mipmapFilter:Gs.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,V.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(t){var n=t.data;this.texture.setImageData([n])}},{key:"bind",value:function(){}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),_k=function(){function e(r,t){(0,q.Z)(this,e),this.device=r;var n=t.width,i=t.height,o=t.color;mk(o)?(this.renderTarget=r.createRenderTargetFromTexture(o.get()),this.width=o.width,this.height=o.height):n&&i&&(this.renderTarget=r.createRenderTarget({format:Tt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}return(0,V.Z)(e,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(t){var n=t.width,i=t.height;(this.width!==n||this.height!==i)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:Tt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}}]),e}(),yk=ii.isPlainObject,xk=ii.isTypedArray,bk=function(){function e(r,t){var n=this;(0,q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),(0,B.Z)(this,"vertexBuffers",[]),this.device=r,this.options=t;var i=t.vs,o=t.fs,s=t.attributes,l=t.uniforms,f=t.count,v=t.elements;this.options=t;var y=r.createProgram({vertex:{glsl:i},fragment:{glsl:o}});this.program=y,l&&(this.uniforms=this.extractUniforms(l));var b=[],T=0;Object.keys(s).forEach(function(O){var k=s[O],$=k.get();n.vertexBuffers.push($.get());var G=k.attribute,oe=G.offset,ye=oe===void 0?0:oe,Le=G.stride,$e=Le===void 0?0:Le,ut=G.size,vt=ut===void 0?1:ut,Rt=G.divisor,Jt=Rt===void 0?0:Rt,Mr=G.shaderLocation,br=Mr===void 0?0:Mr;b.push({arrayStride:$e||vt*4,stepMode:Sd.VERTEX,attributes:[{format:lk[vt],shaderLocation:br,offset:ye,divisor:Jt}]}),T=$.size/vt}),f||(this.options.count=T),v&&(this.indexBuffer=v.get());var M=r.createInputLayout({vertexBufferDescriptors:b,indexBufferFormat:v?Tt.U32_R:null,program:y});this.inputLayout=M,this.pipeline=this.createPipeline(t)}return(0,V.Z)(e,[{key:"createPipeline",value:function(t){var n=t.primitive,i=n===void 0?R.TRIANGLES:n,o=t.depth,s=t.cull,l=t.blend,f=this.initDepthDrawParams({depth:o}),v=!!(f&&f.enable),y=this.initCullDrawParams({cull:s}),b=!!(y&&y.enable),T=this.getBlendDrawParams({blend:l}),M=!!(T&&T.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:uk[i],colorAttachmentFormats:[Tt.U8_RGBA_RT],depthStencilAttachmentFormat:Tt.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:wu.ALL,rgbBlendState:{blendMode:M&&T.equation.rgb||Tu.ADD,blendSrcFactor:M&&T.func.srcRGB||ua.SRC_ALPHA,blendDstFactor:M&&T.func.dstRGB||ua.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:M&&T.equation.alpha||Tu.ADD,blendSrcFactor:M&&T.func.srcAlpha||ua.ONE,blendDstFactor:M&&T.func.dstAlpha||ua.ONE_MINUS_SRC_ALPHA}}],blendConstant:A_,depthWrite:v,depthCompare:v&&f.func||_a.LESS,cullMode:b&&y.face||Wl.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(t){this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t){var n=(0,H.Z)((0,H.Z)({},this.options),t),i=n.count,o=i===void 0?0:i,s=n.instances,l=n.elements,f=n.uniforms,v=f===void 0?{}:f,y=n.uniformBuffers,b=n.textures;this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(v));var T=this.device,M=T.width,O=T.height,k=this.device.renderPass;if(this.pipeline=this.createPipeline(n),k.setPipeline(this.pipeline),k.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(G){return{buffer:G}}),l?{buffer:this.indexBuffer,offset:0}:null),k.setViewport(0,0,M,O),y&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:y.map(function(G,oe){var ye=G;return{binding:oe,buffer:ye.get(),size:ye.size}}),samplerBindings:b==null?void 0:b.map(function(G){return{texture:G.texture,sampler:G.sampler}})})),this.bindings&&(k.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),l){var $=l.count;$===0?k.draw(o,s):k.drawIndexed($,s)}else k.draw(o,s)}},{key:"destroy",value:function(){var t,n,i;this.program.destroy(),(t=this.vertexBuffers)===null||t===void 0||t.forEach(function(o){return o.destroy()}),(n=this.indexBuffer)===null||n===void 0||n.destroy(),(i=this.bindings)===null||i===void 0||i.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t){var n=t.depth;if(n)return{enable:n.enable===void 0?!0:!!n.enable,mask:n.mask===void 0?!0:!!n.mask,func:fk[n.func||R.LESS],range:n.range||[0,1]}}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:v0[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:v0[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:v0[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:v0[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:t2[l&&l.rgb||R.FUNC_ADD],alpha:t2[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"initCullDrawParams",value:function(t){var n=t.cull;if(n){var i=n.enable,o=n.face,s=o===void 0?R.BACK:o;return{enable:!!i,face:hk[s]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||xk(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}yk(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}();function Ek(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}var r2,n2,Sk=(r2=(0,gt.b2)(),r2(n2=function(){function e(){var r=this;(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new bk(r.device,t)}),(0,B.Z)(this,"createAttribute",function(t){return new sk(r.device,t)}),(0,B.Z)(this,"createBuffer",function(t){return new dk(r.device,t)}),(0,B.Z)(this,"createElements",function(t){return new vk(r.device,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new gk(r.device,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new _k(r.device,t)}),(0,B.Z)(this,"useFramebuffer",function(){}),(0,B.Z)(this,"clear",function(){}),(0,B.Z)(this,"viewport",function(t){var n=t.width,i=t.height;r.width=n,r.height=i,r.device.width=n,r.device.height=i}),(0,B.Z)(this,"readPixels",function(){return new Uint8Array}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.device.width,height:r.device.height}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.device.gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.uniformBuffers)===null||t===void 0||t.forEach(function(n){n.destroy()}),r.device.destroy()})}return(0,V.Z)(e,[{key:"init",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=o.enableWebGPU,l=o.shaderCompilerPath,this.canvas=i,f=s?new tk({shaderCompilerPath:l}):new hD({targets:["webgl2","webgl1"],onContextLost:function(k){console.warn("context lost",k)},onContextCreationError:function(k){console.warn("context creation error",k)},onContextRestored:function(k){console.warn("context restored",k)}}),M.next=5,f.createSwapChain(i);case 5:v=M.sent,v.configureSwapChain(i.width,i.height),this.device=v.getDevice(),this.swapChain=v,y=this.device.gl,this.extensionObject={OES_texture_float:!Ek(y)&&this.device.OES_texture_float},b=this.device.createTexture({format:Tt.U8_RGBA_RT,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(b),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:Tt.D24_S8,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}));case 14:case"end":return M.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"beginFrame",value:function(){var t=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[t],colorClearColor:[A_],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var t=this.device.gl;return t.getParameter(t.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}}]),e}())||n2);function Ak(e){var r=Tk();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Tk(){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(e){return!1}}var k_=["selectstart","selecting","selectend"],wk=function(e){(0,De.Z)(t,e);var r=Ak(t);function t(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"isEnable",!1),(0,B.Z)((0,Ie.Z)(i),"onDragStart",function(s){i.box.style.display="block",i.startEvent=i.endEvent=s,i.syncBoxBound(),i.emit("selectstart",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Ie.Z)(i),"onDragging",function(s){i.endEvent=s,i.syncBoxBound(),i.emit("selecting",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Ie.Z)(i),"onDragEnd",function(s){i.endEvent=s,i.box.style.display="none",i.emit("selectend",i.getLngLatBox(),i.startEvent,i.endEvent)}),i.scene=n,i.options=o,i}return(0,V.Z)(t,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var i=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var o=Ji("div",void 0,this.container);o.classList.add("l7-select-box"),i&&o.classList.add(i),o.style.display="none",this.box=o}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 i=this.startEvent,o=i.x,s=i.y,l=this.endEvent,f=l.x,v=l.y,y=Math.min(o,f),b=Math.min(s,v),T=Math.abs(o-f),M=Math.abs(s-v);this.box.style.top="".concat(b,"px"),this.box.style.left="".concat(y,"px"),this.box.style.width="".concat(T,"px"),this.box.style.height="".concat(M,"px")}},{key:"getLngLatBox",value:function(){var i=this.startEvent.lngLat,o=i.lng,s=i.lat,l=this.endEvent.lngLat,f=l.lng,v=l.lat;return op([[o,s],[f,v]])}}]),t}(no.EventEmitter),Ck=function(){function e(r){(0,q.Z)(this,e);var t=r.id,n=r.map,i=r.canvas,o=r.hasBaseMap,s=r.renderer,l=s===void 0?"regl":s,f=xA();this.container=f,n.setContainer(f,t,i,o),f.bind(tt.IRendererService).to(l==="regl"?ok:Sk).inSingletonScope(),this.sceneService=f.get(tt.ISceneService),this.mapService=f.get(tt.IMapService),this.iconService=f.get(tt.IIconService),this.fontService=f.get(tt.IFontService),this.controlService=f.get(tt.IControlService),this.layerService=f.get(tt.ILayerService),this.debugService=f.get(tt.IDebugService),this.debugService.setEnable(r.debug),this.markerService=f.get(tt.IMarkerService),this.interactionService=f.get(tt.IInteractionService),this.popupService=f.get(tt.IPopupService),this.boxSelect=new wk(this,{}),this.initComponent(t),this.sceneService.init(r),this.initControl()}return(0,V.Z)(e,[{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 r=(0,Ct.Z)(me().mark(function n(i){return me().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"exportMap",value:function(){var r=(0,Ct.Z)(me().mark(function n(i){return me().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"registerRenderService",value:function(t){var n=this;if(this.sceneService.loaded){var i=new t(this);i.init()}else this.on("loaded",function(){var o=new t(n);o.init()})}},{key:"setBgColor",value:function(t){this.mapService.setBgColor(t)}},{key:"addLayer",value:function(t){var n=this,i=lm(this.container);if(t.setContainer(i,this.container),this.sceneService.addLayer(t),t.inited){var o=this.initMask(t);this.addMask(o,t.id)}else t.on("inited",function(){var s=n.initMask(t);n.addMask(s,t.id)})}},{key:"initMask",value:function(t){var n=t.getLayerConfig(),i=n.mask,o=n.maskfence,s=n.maskColor,l=s===void 0?"#000":s,f=n.maskOpacity,v=f===void 0?0:f;if(!(!i||!o)){var y=new ix().source(o).shape("fill").style({color:l,opacity:v});return y}}},{key:"addMask",value:function(t,n){if(t){var i=this.getLayer(n);if(i){var o=lm(this.container);t.setContainer(o,this.container),i.addMaskLayer(t),this.sceneService.addMask(t)}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(t){return this.layerService.getLayer(t)}},{key:"getLayerByName",value:function(t){return this.layerService.getLayerByName(t)}},{key:"removeLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.layerService.remove(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"removeAllLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.layerService.removeAllLayers();case 2:case"end":return o.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(t){this.layerService.setEnableRender(t)}},{key:"addIconFont",value:function(t,n){this.fontService.addIconFont(t,n)}},{key:"addIconFonts",value:function(t){var n=this;t.forEach(function(i){var o=(0,yn.Z)(i,2),s=o[0],l=o[1];n.fontService.addIconFont(s,l)})}},{key:"addFontFace",value:function(t,n){var i=this;this.fontService.once("fontloaded",function(o){i.emit("fontloaded",o)}),this.fontService.addFontFace(t,n)}},{key:"addImage",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.iconService.addImage(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"hasImage",value:function(t){return this.iconService.hasImage(t)}},{key:"removeImage",value:function(t){this.iconService.removeImage(t)}},{key:"addIconFontGlyphs",value:function(t,n){this.fontService.addIconGlyphs(n)}},{key:"addControl",value:function(t){this.controlService.addControl(t,this.container)}},{key:"removeControl",value:function(t){this.controlService.removeControl(t)}},{key:"getControlByName",value:function(t){return this.controlService.getControlByName(t)}},{key:"addMarker",value:function(t){this.markerService.addMarker(t)}},{key:"addMarkerLayer",value:function(t){this.markerService.addMarkerLayer(t)}},{key:"removeMarkerLayer",value:function(t){this.markerService.removeMarkerLayer(t)}},{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(t){this.popupService.addPopup(t)}},{key:"removePopup",value:function(t){this.popupService.removePopup(t)}},{key:"on",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.on(t,n)}else gg.includes(t)?this.sceneService.on(t,n):this.mapService.on(t,n)}},{key:"once",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.once(t,n)}else gg.includes(t)?this.sceneService.once(t,n):this.mapService.once(t,n)}},{key:"emit",value:function(t,n){gg.indexOf(t)===-1?this.mapService.on(t,n):this.sceneService.emit(t,n)}},{key:"off",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.off(t,n)}else gg.includes(t)?this.sceneService.off(t,n):this.mapService.off(t,n)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(t){return this.mapService.getCenter(t)}},{key:"setCenter",value:function(t,n){return this.mapService.setCenter(t,n)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(t){return this.mapService.setPitch(t)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(t){this.mapService.setRotation(t)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(t){this.mapService.panTo(t)}},{key:"panBy",value:function(t,n){this.mapService.panBy(t,n)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(t){this.mapService.setZoom(t)}},{key:"fitBounds",value:function(t,n){var i=this.sceneService.getSceneConfig(),o=i.fitBoundsOptions,s=i.animate;this.mapService.fitBounds(t,n||(0,H.Z)((0,H.Z)({},o),{},{animate:s}))}},{key:"setZoomAndCenter",value:function(t,n){this.mapService.setZoomAndCenter(t,n)}},{key:"setMapStyle",value:function(t){this.mapService.setMapStyle(t)}},{key:"setMapStatus",value:function(t){this.mapService.setMapStatus(t)}},{key:"pixelToLngLat",value:function(t){return this.mapService.pixelToLngLat(t)}},{key:"lngLatToPixel",value:function(t){return this.mapService.lngLatToPixel(t)}},{key:"containerToLngLat",value:function(t){return this.mapService.containerToLngLat(t)}},{key:"lngLatToContainer",value:function(t){return this.mapService.lngLatToContainer(t)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(t,n){this.container.bind(tt.IPostProcessingPass).to(t).whenTargetNamed(n)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),n&&this.boxSelect.once("selectend",function(){t.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(t){return Kr.REGISTERED_PROTOCOLS[t]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(t){this.controlService.init({container:Os(t)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var t=this.sceneService.getSceneConfig(),n=t.logoVisible,i=t.logoPosition;n&&this.addControl(new t1({position:i}))}}],[{key:"addProtocol",value:function(t,n){Kr.REGISTERED_PROTOCOLS[t]=n}},{key:"removeProtocol",value:function(t){delete Kr.REGISTERED_PROTOCOLS[t]}}]),e}(),ZN="2.20.5";function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vm(e)}function i2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function VN(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([t,n])}},{key:"fitBounds",value:function(t,n){this.map.fitBounds(t,n)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){t.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),t.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),t.dragEnable===!1&&this.map.dragPan.disable(),t.dragEnable===!0&&this.map.dragPan.enable(),t.rotateEnable===!1&&this.map.dragRotate.disable(),t.dragEnable===!0&&this.map.dragRotate.enable(),t.keyboardEnable===!1&&this.map.keyboard.disable(),t.keyboardEnable===!0&&this.map.keyboard.enable(),t.zoomEnable===!1&&this.map.scrollZoom.disable(),t.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,n){this.map.flyTo({zoom:t,center:n})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyleValue(t))}},{key:"meterToCoord",value:function(t,n){return 1}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"getMapStyle",value:function(){try{var t,n=(t=this.map.getStyle().sprite)!==null&&t!==void 0?t:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(n)?n==null?void 0:n.replace(/\/\w+$/,"").replace(/sprites/,"styles"):n}catch(i){return""}}},{key:"getMapStyleConfig",value:function(){return Nk}},{key:"getMapStyleValue",value:function(t){var n;return(n=this.getMapStyleConfig()[t])!==null&&n!==void 0?n:t}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var n,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?i-1:0),s=1;sUk&&n?this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT)}}]),e}(),d2=Oi(Dv.prototype,"config",[l2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v2=Oi(Dv.prototype,"configService",[c2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m2=Oi(Dv.prototype,"coordinateSystemService",[f2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g2=Oi(Dv.prototype,"eventEmitter",[h2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dv))||p2);function Hm(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function g0(e,r){var t=kh.fF([],r,e);return kh.bA(t,t,1/t[3]),t}function GN(e,r){var t=e%r;return t<0?r+t:t}function XN(e,r,t){return t*r+(1-t)*e}function Cd(e,r){if(!e)throw new Error(r||"viewport-mercator-project: assertion failed.")}var wf=Math.PI,y2=wf/4,qh=wf/180,x2=180/wf,B_=512,L_=4003e4,Zk=1.5;function b2(e){return Math.pow(2,e)}function Vk(e){return Math.log2(e)}function _0(e,r){var t=(0,yn.Z)(e,2),n=t[0],i=t[1];Cd(Number.isFinite(n)&&Number.isFinite(r)),Cd(Number.isFinite(i)&&i>=-90&&i<=90,"invalid latitude"),r*=B_;var o=n*qh,s=i*qh,l=r*(o+wf)/(2*wf),f=r*(wf-Math.log(Math.tan(y2+s*.5)))/(2*wf);return[l,f]}function N_(e,r){var t=(0,yn.Z)(e,2),n=t[0],i=t[1];r*=B_;var o=n/r*(2*wf)-wf,s=2*(Math.atan(Math.exp(wf-i/r*(2*wf)))-y2);return[o*x2,s*x2]}function $N(e){var r=e.latitude;assert(Number.isFinite(r));var t=Math.cos(r*qh);return Vk(L_*t)-9}function E2(e){var r=e.latitude,t=e.longitude,n=e.zoom,i=e.scale,o=e.highPrecision,s=o===void 0?!1:o;i=i!==void 0?i:b2(n),Cd(Number.isFinite(r)&&Number.isFinite(t)&&Number.isFinite(i));var l={},f=B_*i,v=Math.cos(r*qh),y=f/360,b=y/v,T=f/L_/v;if(l.pixelsPerMeter=[T,-T,T],l.metersPerPixel=[1/T,-1/T,1/T],l.pixelsPerDegree=[y,-b,T],l.degreesPerPixel=[1/y,-1/b,1/T],s){var M=qh*Math.tan(r*qh)/v,O=y*M/2,k=f/L_*M,$=k/b*T;l.pixelsPerDegree2=[0,-O,k],l.pixelsPerMeter2=[$,0,$]}return l}function YN(e,r){var t=_slicedToArray(e,3),n=t[0],i=t[1],o=t[2],s=_slicedToArray(r,3),l=s[0],f=s[1],v=s[2],y=1,b=E2({longitude:n,latitude:i,scale:y,highPrecision:!0}),T=b.pixelsPerMeter,M=b.pixelsPerMeter2,O=_0(e,y);O[0]+=l*(T[0]+M[0]*f),O[1]+=f*(T[1]+M[1]*f);var k=N_(O,y),$=(o||0)+(v||0);return Number.isFinite(o)||Number.isFinite(v)?[k[0],k[1],$]:k}function jk(e){var r=e.height,t=e.pitch,n=e.bearing,i=e.altitude,o=e.center,s=o===void 0?null:o,l=e.flipY,f=l===void 0?!1:l,v=Hm();return ve.translate(v,v,[0,0,-i]),ve.scale(v,v,[1,1,1/r]),ve.rotateX(v,v,-t*qh),ve.rotateZ(v,v,n*qh),f&&ve.scale(v,v,[1,-1,1]),s&&ve.translate(v,v,La.negate([],s)),v}function Hk(e){var r=e.width,t=e.height,n=e.altitude,i=n===void 0?Zk:n,o=e.pitch,s=o===void 0?0:o,l=e.nearZMultiplier,f=l===void 0?1:l,v=e.farZMultiplier,y=v===void 0?1:v,b=s*qh,T=Math.atan(.5/i),M=Math.sin(T)*i/Math.sin(Math.PI/2-b-T),O=Math.cos(Math.PI/2-b)*M+i;return{fov:2*Math.atan(t/2/i),aspect:r/t,focalDistance:i,near:f,far:O*y}}function Wk(e){var r=e.width,t=e.height,n=e.pitch,i=e.altitude,o=e.nearZMultiplier,s=e.farZMultiplier,l=Hk({width:r,height:t,altitude:i,pitch:n,nearZMultiplier:o,farZMultiplier:s}),f=l.fov,v=l.aspect,y=l.near,b=l.far,T=ve.perspective([],f,v,y,b);return T}function Gk(e,r){var t=(0,yn.Z)(e,3),n=t[0],i=t[1],o=t[2],s=o===void 0?0:o;return Cd(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(s)),g0(r,[n,i,s,1])}function S2(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,yn.Z)(e,3),i=n[0],o=n[1],s=n[2];if(Cd(Number.isFinite(i)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(s)){var l=g0(r,[i,o,s,1]);return l}var f=g0(r,[i,o,0,1]),v=g0(r,[i,o,1,1]),y=f[2],b=v[2],T=y===b?0:((t||0)-y)/(b-y);return Or.t7([],f,v,T)}var A2=Hm(),Xk=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width,n=r.height,i=r.viewMatrix,o=i===void 0?A2:i,s=r.projectionMatrix,l=s===void 0?A2:s;(0,q.Z)(this,e),this.width=t||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=o,this.projectionMatrix=l;var f=Hm();ve.multiply(f,f,this.projectionMatrix),ve.multiply(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var v=Hm();ve.scale(v,v,[this.width/2,-this.height/2,1]),ve.translate(v,v,[1,-1,0]),ve.multiply(v,v,this.viewProjectionMatrix);var y=ve.invert(Hm(),v);if(!y)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=v,this.pixelUnprojectionMatrix=y,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,V.Z)(e,[{key:"equals",value:function(t){return t instanceof e?t.width===this.width&&t.height===this.height&&ve.equals(t.projectionMatrix,this.projectionMatrix)&&ve.equals(t.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=this.projectPosition(t),l=Gk(s,this.pixelProjectionMatrix),f=(0,yn.Z)(l,2),v=f[0],y=f[1],b=o?y:this.height-y;return t.length===2?[v,b]:[v,b,l[2]]}},{key:"unproject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=n.targetZ,l=(0,yn.Z)(t,3),f=l[0],v=l[1],y=l[2],b=o?v:this.height-v,T=s&&s*this.pixelsPerMeter,M=S2([f,b,y],this.pixelUnprojectionMatrix,T),O=this.unprojectPosition(M),k=(0,yn.Z)(O,3),$=k[0],G=k[1],oe=k[2];return Number.isFinite(y)?[$,G,oe]:Number.isFinite(s)?[$,G,s]:[$,G]}},{key:"projectPosition",value:function(t){var n=this.projectFlat(t),i=(0,yn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)*this.pixelsPerMeter;return[o,s,l]}},{key:"unprojectPosition",value:function(t){var n=this.unprojectFlat(t),i=(0,yn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)/this.pixelsPerMeter;return[o,s,l]}},{key:"projectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}},{key:"unprojectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}}]),e}();function $k(e){var r=e.width,t=e.height,n=e.bounds,i=e.minExtent,o=i===void 0?0:i,s=e.maxZoom,l=s===void 0?24:s,f=e.padding,v=f===void 0?0:f,y=e.offset,b=y===void 0?[0,0]:y,T=(0,yn.Z)(n,2),M=(0,yn.Z)(T[0],2),O=M[0],k=M[1],$=(0,yn.Z)(T[1],2),G=$[0],oe=$[1];if(Number.isFinite(v)){var ye=v;v={top:ye,bottom:ye,left:ye,right:ye}}else Cd(Number.isFinite(v.top)&&Number.isFinite(v.bottom)&&Number.isFinite(v.left)&&Number.isFinite(v.right));var Le=new T2({width:r,height:t,longitude:0,latitude:0,zoom:0}),$e=Le.project([O,oe]),ut=Le.project([G,k]),vt=[Math.max(Math.abs(ut[0]-$e[0]),o),Math.max(Math.abs(ut[1]-$e[1]),o)],Rt=[r-v.left-v.right-Math.abs(b[0])*2,t-v.top-v.bottom-Math.abs(b[1])*2];Cd(Rt[0]>0&&Rt[1]>0);var Jt=Rt[0]/vt[0],Mr=Rt[1]/vt[1],br=(v.right-v.left)/2/Jt,pn=(v.bottom-v.top)/2/Mr,kn=[(ut[0]+$e[0])/2+br,(ut[1]+$e[1])/2+pn],Pi=Le.unproject(kn),xa=Le.zoom+Math.log2(Math.abs(Math.min(Jt,Mr)));return{longitude:Pi[0],latitude:Pi[1],zoom:Math.min(xa,l)}}var T2=function(e){(0,De.Z)(r,e);function r(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width,o=n.height,s=n.latitude,l=s===void 0?0:s,f=n.longitude,v=f===void 0?0:f,y=n.zoom,b=y===void 0?0:y,T=n.pitch,M=T===void 0?0:T,O=n.bearing,k=O===void 0?0:O,$=n.altitude,G=$===void 0?1.5:$,oe=n.nearZMultiplier,ye=n.farZMultiplier;(0,q.Z)(this,r),i=i||1,o=o||1;var Le=b2(b);G=Math.max(.75,G);var $e=_0([v,l],Le);$e[2]=0;var ut=Wk({width:i,height:o,pitch:M,bearing:k,altitude:G,nearZMultiplier:oe||1/o,farZMultiplier:ye||1.01}),vt=jk({height:o,center:$e,pitch:M,bearing:k,altitude:G,flipY:!0});return t=(0,et.Z)(this,(0,be.Z)(r).call(this,{width:i,height:o,viewMatrix:vt,projectionMatrix:ut})),t.latitude=l,t.longitude=v,t.zoom=b,t.pitch=M,t.bearing=k,t.altitude=G,t.scale=Le,t.center=$e,t.pixelsPerMeter=E2((0,Ie.Z)((0,Ie.Z)(t))).pixelsPerMeter[2],Object.freeze((0,Ie.Z)((0,Ie.Z)(t))),t}return(0,V.Z)(r,[{key:"projectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return _0(n,i)}},{key:"unprojectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return N_(n,i)}},{key:"getMapCenterByLngLatPosition",value:function(n){var i=n.lngLat,o=n.pos,s=S2(o,this.pixelUnprojectionMatrix),l=_0(i,this.scale),f=Or.IH([],l,Or.tk([],s)),v=Or.IH([],this.center,f);return N_(v,this.scale)}},{key:"getLocationAtPoint",value:function(n){var i=n.lngLat,o=n.pos;return this.getMapCenterByLngLatPosition({lngLat:i,pos:o})}},{key:"fitBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.width,s=this.height,l=$k(Object.assign({width:o,height:s,bounds:n},i)),f=l.longitude,v=l.latitude,y=l.zoom;return new r({width:o,height:s,longitude:f,latitude:v,zoom:y})}}]),r}(Xk),Yk=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"syncWithMapCamera",value:function(t){var n=t.center,i=t.zoom,o=t.pitch,s=t.bearing,l=t.viewportHeight,f=t.viewportWidth;this.viewport=new T2({width:f,height:l,longitude:n&&n[0],latitude:n&&n[1],zoom:i,pitch:o,bearing:s})}},{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(t,n){return this.viewport.projectFlat(t,n)}}]),e}(),qk=["id","attributionControl","style","token","rotation","mapInstance"],w2,C2;function Kk(e){var r=Qk();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Qk(){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(e){return!1}}function Jk(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}Jk(`.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=jm();var eF=0,R2="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",tF=(w2=(0,gt.b2)(),w2(C2=function(e){(0,De.Z)(t,e);var r=Kk(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},s=this.lngLatToMercator(i,0),l=s.x,f=s.y;return[l-o.x,f-o.y]}},{key:"lngLatToMercator",value:function(i,o){var s=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),l=s.x,f=l===void 0?0:l,v=s.y,y=v===void 0?0:v,b=s.z,T=b===void 0?0:b;return{x:f,y,z:T}}},{key:"getModelMatrix",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},v=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),y=v.meterInMercatorCoordinateUnits(),b=ve.create();return ve.translate(b,b,La.fromValues(v.x-f.x,v.y-f.y,v.z||0-f.z)),ve.scale(b,b,La.fromValues(y*l[0],-y*l[1],y*l[2])),ve.rotateX(b,b,s[0]),ve.rotateY(b,b,s[1]),ve.rotateZ(b,b,s[2]),b}},{key:"init",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s=this,l,f,v,y,b,T,M,O,k,$,G,oe,ye;return me().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:l=this.config,f=l.id,v=f===void 0?"map":f,y=l.attributionControl,b=y===void 0?!1:y,T=l.style,M=T===void 0?"light":T,O=l.token,k=O===void 0?R2:O,$=l.rotation,G=$===void 0?0:$,oe=l.mapInstance,ye=(0,Fa.Z)(l,qk),this.viewport=new Yk,!oe&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),k===R2&&M!=="blank"&&!window.mapboxgl.accessToken&&!oe&&console.warn(this.configService.getSceneWarninfo("MapToken")),!oe&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=k),oe?(this.map=oe,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(v),this.map=new window.mapboxgl.Map((0,H.Z)({container:this.$mapContainer,style:this.getMapStyleValue(M),attributionControl:b,bearing:G},ye))),this.map.on("load",function(){s.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return $e.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"destroy",value:function(){var i;(i=this.$mapContainer)===null||i===void 0||(i=i.parentNode)===null||i===void 0||i.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(i){for(var o,s=arguments.length,l=new Array(s>1?s-1:0),f=1;f1?s-1:0),f=1;fe.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function HF(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var p6={exportImage:VT,fullscreen:XT,geoLocate:qT,layer:e1,layerSwitch:e1,logo:t1,mapTheme:aw,mouseLocation:uw,zoom:dw,scale:fw},d6=null,z2=L(10422);function Z2(e,r){return $F(e)||XF(e,r)||GF(e,r)||WF()}function WF(){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 GF(e,r){if(e){if(typeof e=="string")return V2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return V2(e,r)}}function V2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function sB(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var uB=re.memo(function(r){var t=r.layer,n=r.source,i=n.data,o=oB(n,aB);return t.inited?t.setData(i,o):t.source(i,o),o.autoFit&&t.fitBounds(o&&o.fitBoundsOptions),null},ys()),g6=re.useEffect,lB=re.memo(function(r){var t=r.layer,n=r.style;return t.style(n),null},ys());function cB(e,r){return dB(e)||pB(e,r)||hB(e,r)||fB()}function fB(){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 hB(e,r){if(e){if(typeof e=="string")return G2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G2(e,r)}}function G2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=Math.abs(ie)?le-Ke+ie:ie-Ke+le,le=Ke}le+U>=0!=!!_&&pe.reverse()}},96542:function(rr){"use strict";rr.exports=J;function J(L,re){this.x=L,this.y=re}J.prototype={clone:function(){return new J(this.x,this.y)},add:function(L){return this.clone()._add(L)},sub:function(L){return this.clone()._sub(L)},multByPoint:function(L){return this.clone()._multByPoint(L)},divByPoint:function(L){return this.clone()._divByPoint(L)},mult:function(L){return this.clone()._mult(L)},div:function(L){return this.clone()._div(L)},rotate:function(L){return this.clone()._rotate(L)},rotateAround:function(L,re){return this.clone()._rotateAround(L,re)},matMult:function(L){return this.clone()._matMult(L)},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(L){return this.x===L.x&&this.y===L.y},dist:function(L){return Math.sqrt(this.distSqr(L))},distSqr:function(L){var re=L.x-this.x,pe=L.y-this.y;return re*re+pe*pe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(L){return Math.atan2(this.y-L.y,this.x-L.x)},angleWith:function(L){return this.angleWithSep(L.x,L.y)},angleWithSep:function(L,re){return Math.atan2(this.x*re-this.y*L,this.x*L+this.y*re)},_matMult:function(L){var re=L[0]*this.x+L[1]*this.y,pe=L[2]*this.x+L[3]*this.y;return this.x=re,this.y=pe,this},_add:function(L){return this.x+=L.x,this.y+=L.y,this},_sub:function(L){return this.x-=L.x,this.y-=L.y,this},_mult:function(L){return this.x*=L,this.y*=L,this},_div:function(L){return this.x/=L,this.y/=L,this},_multByPoint:function(L){return this.x*=L.x,this.y*=L.y,this},_divByPoint:function(L){return this.x/=L.x,this.y/=L.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var L=this.y;return this.y=this.x,this.x=-L,this},_rotate:function(L){var re=Math.cos(L),pe=Math.sin(L),_=re*this.x-pe*this.y,le=pe*this.x+re*this.y;return this.x=_,this.y=le,this},_rotateAround:function(L,re){var pe=Math.cos(L),_=Math.sin(L),le=re.x+pe*(this.x-re.x)-_*(this.y-re.y),U=re.y+_*(this.x-re.x)+pe*(this.y-re.y);return this.x=le,this.y=U,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},J.convert=function(L){return L instanceof J?L:Array.isArray(L)?new J(L[0],L[1]):L}},25865:function(rr){"use strict";rr.exports=L,rr.exports.default=L;var J=1e20;function L(U,he,ae,qe,ie,Ke){this.fontSize=U||24,this.buffer=he===void 0?3:he,this.cutoff=qe||.25,this.fontFamily=ie||"sans-serif",this.fontWeight=Ke||"normal",this.radius=ae||8;var ht=this.size=this.fontSize+this.buffer*2,mt=ht+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=ht,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(mt*mt),this.gridInner=new Float64Array(mt*mt),this.f=new Float64Array(mt),this.z=new Float64Array(mt+1),this.v=new Uint16Array(mt),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(ht/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function re(U,he,ae,qe,ie,Ke,ht){Ke.fill(J,0,he*ae),ht.fill(0,0,he*ae);for(var mt=(he-qe)/2,Dt=0;Dt-1);Dt++,Ke[Dt]=mt,ht[Dt]=Yt,ht[Dt+1]=J}for(mt=0,Dt=0;mt>3}if(Ke--,ie===1||ie===2)ht+=ae.readSVarint(),mt+=ae.readSVarint(),ie===1&&(Yt&&Dt.push(Yt),Yt=[]),Yt.push(new re(ht,mt));else if(ie===7)Yt&&Yt.push(Yt[0].clone());else throw new Error("unknown command "+ie)}return Yt&&Dt.push(Yt),Dt},pe.prototype.bbox=function(){var ae=this._pbf;ae.pos=this._geometry;for(var qe=ae.readVarint()+ae.pos,ie=1,Ke=0,ht=0,mt=0,Dt=1/0,Yt=-1/0,Ht=1/0,ir=-1/0;ae.pos>3}if(Ke--,ie===1||ie===2)ht+=ae.readSVarint(),mt+=ae.readSVarint(),htYt&&(Yt=ht),mtir&&(ir=mt);else if(ie!==7)throw new Error("unknown command "+ie)}return[Dt,Ht,Yt,ir]},pe.prototype.toGeoJSON=function(ae,qe,ie){var Ke=this.extent*Math.pow(2,ie),ht=this.extent*ae,mt=this.extent*qe,Dt=this.loadGeometry(),Yt=pe.types[this.type],Ht,ir;function Xt(Pr){for(var hr=0;hr>3;he=qe===1?U.readString():qe===2?U.readFloat():qe===3?U.readDouble():qe===4?U.readVarint64():qe===5?U.readVarint():qe===6?U.readSVarint():qe===7?U.readBoolean():null}return he}pe.prototype.feature=function(U){if(U<0||U>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[U];var he=this._pbf.readVarint()+this._pbf.pos;return new re(this._pbf,he,this.extent,this._keys,this._values)}},75734:function(rr){"use strict";rr.exports=J,rr.exports.default=J;function J(K,Be,Ae){Ae=Ae||2;var dt=Be&&Be.length,Ue=dt?Be[0]*Ae:K.length,We=L(K,0,Ue,Ae,!0),it=[];if(!We||We.next===We.prev)return it;var Mt,yr,lr,Cn,mn,un,oi;if(dt&&(We=ae(K,Be,We,Ae)),K.length>80*Ae){Mt=lr=K[0],yr=Cn=K[1];for(var jn=Ae;jnlr&&(lr=mn),un>Cn&&(Cn=un);oi=Math.max(lr-Mt,Cn-yr),oi=oi!==0?32767/oi:0}return pe(We,it,Ae,Mt,yr,oi,0),it}function L(K,Be,Ae,dt,Ue){var We,it;if(Ue===H(K,Be,Ae,dt)>0)for(We=Be;We=Be;We-=dt)it=qt(We,K[We],K[We+1],it);return it&&bt(it,it.next)&&(Sr(it),it=it.next),it}function re(K,Be){if(!K)return K;Be||(Be=K);var Ae=K,dt;do if(dt=!1,!Ae.steiner&&(bt(Ae,Ae.next)||yt(Ae.prev,Ae,Ae.next)===0)){if(Sr(Ae),Ae=Be=Ae.prev,Ae===Ae.next)break;dt=!0}else Ae=Ae.next;while(dt||Ae!==Be);return Be}function pe(K,Be,Ae,dt,Ue,We,it){if(K){!it&&We&&mt(K,dt,Ue,We);for(var Mt=K,yr,lr;K.prev!==K.next;){if(yr=K.prev,lr=K.next,We?le(K,dt,Ue,We):_(K)){Be.push(yr.i/Ae|0),Be.push(K.i/Ae|0),Be.push(lr.i/Ae|0),Sr(K),K=lr.next,Mt=lr.next;continue}if(K=lr,K===Mt){it?it===1?(K=U(re(K),Be,Ae),pe(K,Be,Ae,dt,Ue,We,2)):it===2&&he(K,Be,Ae,dt,Ue,We):pe(re(K),Be,Ae,dt,Ue,We,1);break}}}}function _(K){var Be=K.prev,Ae=K,dt=K.next;if(yt(Be,Ae,dt)>=0)return!1;for(var Ue=Be.x,We=Ae.x,it=dt.x,Mt=Be.y,yr=Ae.y,lr=dt.y,Cn=UeWe?Ue>it?Ue:it:We>it?We:it,oi=Mt>yr?Mt>lr?Mt:lr:yr>lr?yr:lr,jn=dt.next;jn!==Be;){if(jn.x>=Cn&&jn.x<=un&&jn.y>=mn&&jn.y<=oi&&ir(Ue,Mt,We,yr,it,lr,jn.x,jn.y)&&yt(jn.prev,jn,jn.next)>=0)return!1;jn=jn.next}return!0}function le(K,Be,Ae,dt){var Ue=K.prev,We=K,it=K.next;if(yt(Ue,We,it)>=0)return!1;for(var Mt=Ue.x,yr=We.x,lr=it.x,Cn=Ue.y,mn=We.y,un=it.y,oi=Mtyr?Mt>lr?Mt:lr:yr>lr?yr:lr,$i=Cn>mn?Cn>un?Cn:un:mn>un?mn:un,Wi=Yt(oi,jn,Be,Ae,dt),Zi=Yt(rn,$i,Be,Ae,dt),Jn=K.prevZ,Bn=K.nextZ;Jn&&Jn.z>=Wi&&Bn&&Bn.z<=Zi;){if(Jn.x>=oi&&Jn.x<=rn&&Jn.y>=jn&&Jn.y<=$i&&Jn!==Ue&&Jn!==it&&ir(Mt,Cn,yr,mn,lr,un,Jn.x,Jn.y)&&yt(Jn.prev,Jn,Jn.next)>=0||(Jn=Jn.prevZ,Bn.x>=oi&&Bn.x<=rn&&Bn.y>=jn&&Bn.y<=$i&&Bn!==Ue&&Bn!==it&&ir(Mt,Cn,yr,mn,lr,un,Bn.x,Bn.y)&&yt(Bn.prev,Bn,Bn.next)>=0))return!1;Bn=Bn.nextZ}for(;Jn&&Jn.z>=Wi;){if(Jn.x>=oi&&Jn.x<=rn&&Jn.y>=jn&&Jn.y<=$i&&Jn!==Ue&&Jn!==it&&ir(Mt,Cn,yr,mn,lr,un,Jn.x,Jn.y)&&yt(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.prevZ}for(;Bn&&Bn.z<=Zi;){if(Bn.x>=oi&&Bn.x<=rn&&Bn.y>=jn&&Bn.y<=$i&&Bn!==Ue&&Bn!==it&&ir(Mt,Cn,yr,mn,lr,un,Bn.x,Bn.y)&&yt(Bn.prev,Bn,Bn.next)>=0)return!1;Bn=Bn.nextZ}return!0}function U(K,Be,Ae){var dt=K;do{var Ue=dt.prev,We=dt.next.next;!bt(Ue,We)&&Pr(Ue,dt,dt.next,We)&&nt(Ue,We)&&nt(We,Ue)&&(Be.push(Ue.i/Ae|0),Be.push(dt.i/Ae|0),Be.push(We.i/Ae|0),Sr(dt),Sr(dt.next),dt=K=We),dt=dt.next}while(dt!==K);return re(dt)}function he(K,Be,Ae,dt,Ue,We){var it=K;do{for(var Mt=it.next.next;Mt!==it.prev;){if(it.i!==Mt.i&&Xt(it,Mt)){var yr=ft(it,Mt);it=re(it,it.next),yr=re(yr,yr.next),pe(it,Be,Ae,dt,Ue,We,0),pe(yr,Be,Ae,dt,Ue,We,0);return}Mt=Mt.next}it=it.next}while(it!==K)}function ae(K,Be,Ae,dt){var Ue=[],We,it,Mt,yr,lr;for(We=0,it=Be.length;We=Ae.next.y&&Ae.next.y!==Ae.y){var Mt=Ae.x+(Ue-Ae.y)*(Ae.next.x-Ae.x)/(Ae.next.y-Ae.y);if(Mt<=dt&&Mt>We&&(We=Mt,it=Ae.x=Ae.x&&Ae.x>=lr&&dt!==Ae.x&&ir(Ueit.x||Ae.x===it.x&&ht(it,Ae)))&&(it=Ae,mn=un)),Ae=Ae.next;while(Ae!==yr);return it}function ht(K,Be){return yt(K.prev,K,Be.prev)<0&&yt(Be.next,K,K.next)<0}function mt(K,Be,Ae,dt){var Ue=K;do Ue.z===0&&(Ue.z=Yt(Ue.x,Ue.y,Be,Ae,dt)),Ue.prevZ=Ue.prev,Ue.nextZ=Ue.next,Ue=Ue.next;while(Ue!==K);Ue.prevZ.nextZ=null,Ue.prevZ=null,Dt(Ue)}function Dt(K){var Be,Ae,dt,Ue,We,it,Mt,yr,lr=1;do{for(Ae=K,K=null,We=null,it=0;Ae;){for(it++,dt=Ae,Mt=0,Be=0;Be0||yr>0&&dt;)Mt!==0&&(yr===0||!dt||Ae.z<=dt.z)?(Ue=Ae,Ae=Ae.nextZ,Mt--):(Ue=dt,dt=dt.nextZ,yr--),We?We.nextZ=Ue:K=Ue,Ue.prevZ=We,We=Ue;Ae=dt}We.nextZ=null,lr*=2}while(it>1);return K}function Yt(K,Be,Ae,dt,Ue){return K=(K-Ae)*Ue|0,Be=(Be-dt)*Ue|0,K=(K|K<<8)&16711935,K=(K|K<<4)&252645135,K=(K|K<<2)&858993459,K=(K|K<<1)&1431655765,Be=(Be|Be<<8)&16711935,Be=(Be|Be<<4)&252645135,Be=(Be|Be<<2)&858993459,Be=(Be|Be<<1)&1431655765,K|Be<<1}function Ht(K){var Be=K,Ae=K;do(Be.x=(K-it)*(We-Mt)&&(K-it)*(dt-Mt)>=(Ae-it)*(Be-Mt)&&(Ae-it)*(We-Mt)>=(Ue-it)*(dt-Mt)}function Xt(K,Be){return K.next.i!==Be.i&&K.prev.i!==Be.i&&!Et(K,Be)&&(nt(K,Be)&&nt(Be,K)&&Pt(K,Be)&&(yt(K.prev,K,Be.prev)||yt(K,Be.prev,Be))||bt(K,Be)&&yt(K.prev,K,K.next)>0&&yt(Be.prev,Be,Be.next)>0)}function yt(K,Be,Ae){return(Be.y-K.y)*(Ae.x-Be.x)-(Be.x-K.x)*(Ae.y-Be.y)}function bt(K,Be){return K.x===Be.x&&K.y===Be.y}function Pr(K,Be,Ae,dt){var Ue=ur(yt(K,Be,Ae)),We=ur(yt(K,Be,dt)),it=ur(yt(Ae,dt,K)),Mt=ur(yt(Ae,dt,Be));return!!(Ue!==We&&it!==Mt||Ue===0&&hr(K,Ae,Be)||We===0&&hr(K,dt,Be)||it===0&&hr(Ae,K,dt)||Mt===0&&hr(Ae,Be,dt))}function hr(K,Be,Ae){return Be.x<=Math.max(K.x,Ae.x)&&Be.x>=Math.min(K.x,Ae.x)&&Be.y<=Math.max(K.y,Ae.y)&&Be.y>=Math.min(K.y,Ae.y)}function ur(K){return K>0?1:K<0?-1:0}function Et(K,Be){var Ae=K;do{if(Ae.i!==K.i&&Ae.next.i!==K.i&&Ae.i!==Be.i&&Ae.next.i!==Be.i&&Pr(Ae,Ae.next,K,Be))return!0;Ae=Ae.next}while(Ae!==K);return!1}function nt(K,Be){return yt(K.prev,K,K.next)<0?yt(K,Be,K.next)>=0&&yt(K,K.prev,Be)>=0:yt(K,Be,K.prev)<0||yt(K,K.next,Be)<0}function Pt(K,Be){var Ae=K,dt=!1,Ue=(K.x+Be.x)/2,We=(K.y+Be.y)/2;do Ae.y>We!=Ae.next.y>We&&Ae.next.y!==Ae.y&&Ue<(Ae.next.x-Ae.x)*(We-Ae.y)/(Ae.next.y-Ae.y)+Ae.x&&(dt=!dt),Ae=Ae.next;while(Ae!==K);return dt}function ft(K,Be){var Ae=new te(K.i,K.x,K.y),dt=new te(Be.i,Be.x,Be.y),Ue=K.next,We=Be.prev;return K.next=Be,Be.prev=K,Ae.next=Ue,Ue.prev=Ae,dt.next=Ae,Ae.prev=dt,We.next=dt,dt.prev=We,dt}function qt(K,Be,Ae,dt){var Ue=new te(K,Be,Ae);return dt?(Ue.next=dt.next,Ue.prev=dt,dt.next.prev=Ue,dt.next=Ue):(Ue.prev=Ue,Ue.next=Ue),Ue}function Sr(K){K.next.prev=K.prev,K.prev.next=K.next,K.prevZ&&(K.prevZ.nextZ=K.nextZ),K.nextZ&&(K.nextZ.prevZ=K.prevZ)}function te(K,Be,Ae){this.i=K,this.x=Be,this.y=Ae,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}J.deviation=function(K,Be,Ae,dt){var Ue=Be&&Be.length,We=Ue?Be[0]*Ae:K.length,it=Math.abs(H(K,0,We,Ae));if(Ue)for(var Mt=0,yr=Be.length;Mt0&&(dt+=K[Ue-1].length,Ae.holes.push(dt))}return Ae}},31204:function(rr){function J(re){var pe=re.target||re.srcElement;pe.__resizeRAF__&&cancelAnimationFrame(pe.__resizeRAF__),pe.__resizeRAF__=requestAnimationFrame(function(){var _=pe.__resizeTrigger__,le=_&&_.__resizeListeners__;le&&le.forEach(function(U){U.call(_,re)})})}var L=function(pe,_){var le=this,U=le.document,he,ae=U.attachEvent;typeof navigator!="undefined"&&(he=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function qe(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",J)}if(!pe.__resizeListeners__)if(pe.__resizeListeners__=[],ae)pe.__resizeTrigger__=pe,pe.attachEvent("onresize",J);else{getComputedStyle(pe).position==="static"&&(pe.style.position="relative");var ie=pe.__resizeTrigger__=U.createElement("object");ie.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),ie.setAttribute("class","resize-sensor"),ie.setAttribute("tabindex","-1"),ie.setAttribute("title",""),ie.__resizeElement__=pe,ie.onload=qe,ie.type="text/html",he&&pe.appendChild(ie),ie.data="about:blank",he||pe.appendChild(ie)}pe.__resizeListeners__.push(_)};rr.exports=typeof window=="undefined"?L:L.bind(window),rr.exports.unbind=function(re,pe){var _=document.attachEvent,le=re.__resizeListeners__||[];if(pe){var U=le.indexOf(pe);U!==-1&&le.splice(U,1)}else le=re.__resizeListeners__=[];if(!le.length){if(_)re.detachEvent("onresize",J);else if(re.__resizeTrigger__){var he=re.__resizeTrigger__.contentDocument,ae=he&&he.defaultView;ae&&(ae.removeEventListener("resize",J),delete ae.__resizeTrigger__),re.__resizeTrigger__=!re.removeChild(re.__resizeTrigger__)}delete re.__resizeListeners__}}},11312:function(rr){"use strict";var J=Object.prototype.hasOwnProperty,L="~";function re(){}Object.create&&(re.prototype=Object.create(null),new re().__proto__||(L=!1));function pe(he,ae,qe){this.fn=he,this.context=ae,this.once=qe||!1}function _(he,ae,qe,ie,Ke){if(typeof qe!="function")throw new TypeError("The listener must be a function");var ht=new pe(qe,ie||he,Ke),mt=L?L+ae:ae;return he._events[mt]?he._events[mt].fn?he._events[mt]=[he._events[mt],ht]:he._events[mt].push(ht):(he._events[mt]=ht,he._eventsCount++),he}function le(he,ae){--he._eventsCount===0?he._events=new re:delete he._events[ae]}function U(){this._events=new re,this._eventsCount=0}U.prototype.eventNames=function(){var ae=[],qe,ie;if(this._eventsCount===0)return ae;for(ie in qe=this._events)J.call(qe,ie)&&ae.push(L?ie.slice(1):ie);return Object.getOwnPropertySymbols?ae.concat(Object.getOwnPropertySymbols(qe)):ae},U.prototype.listeners=function(ae){var qe=L?L+ae:ae,ie=this._events[qe];if(!ie)return[];if(ie.fn)return[ie.fn];for(var Ke=0,ht=ie.length,mt=new Array(ht);Ke\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Vi=pe.console&&(pe.console.warn||pe.console.log);return Vi&&Vi.call(pe.console,nr,Mn),fe.apply(this,arguments)}}var ir;typeof Object.assign!="function"?ir=function(Te){if(Te===U||Te===null)throw new TypeError("Cannot convert undefined or null to object");for(var ot=Object(Te),nr=1;nr-1}function qt(fe){return fe.trim().split(/\s+/g)}function Sr(fe,Te,ot){if(fe.indexOf&&!ot)return fe.indexOf(Te);for(var nr=0;nruo[Te]}):nr=nr.sort()),nr}function K(fe,Te){for(var ot,nr,jr=Te[0].toUpperCase()+Te.slice(1),Mn=0;Mn1&&!ot.firstMultiple?ot.firstMultiple=wt(Te):jr===1&&(ot.firstMultiple=!1);var Mn=ot.firstInput,Vi=ot.firstMultiple,ho=Vi?Vi.center:Mn.center,Ao=Te.center=sr(nr);Te.timeStamp=ht(),Te.deltaTime=Te.timeStamp-Mn.timeStamp,Te.angle=En(ho,Ao),Te.distance=Ln(ho,Ao),Ar(ot,Te),Te.offsetDirection=Vr(Te.deltaX,Te.deltaY);var uo=dr(Te.deltaTime,Te.deltaX,Te.deltaY);Te.overallVelocityX=uo.x,Te.overallVelocityY=uo.y,Te.overallVelocity=Ke(uo.x)>Ke(uo.y)?uo.x:uo.y,Te.scale=Vi?xn(Vi.pointers,nr):1,Te.rotation=Vi?Rn(Vi.pointers,nr):0,Te.maxPointers=ot.prevInput?Te.pointers.length>ot.prevInput.maxPointers?Te.pointers.length:ot.prevInput.maxPointers:Te.pointers.length,Ve(ot,Te);var Is=fe.element;Pt(Te.srcEvent.target,Is)&&(Is=Te.srcEvent.target),Te.target=Is}function Ar(fe,Te){var ot=Te.center,nr=fe.offsetDelta||{},jr=fe.prevDelta||{},Mn=fe.prevInput||{};(Te.eventType===oi||Mn.eventType===rn)&&(jr=fe.prevDelta={x:Mn.deltaX||0,y:Mn.deltaY||0},nr=fe.offsetDelta={x:ot.x,y:ot.y}),Te.deltaX=jr.x+(ot.x-nr.x),Te.deltaY=jr.y+(ot.y-nr.y)}function Ve(fe,Te){var ot=fe.lastInterval||Te,nr=Te.timeStamp-ot.timeStamp,jr,Mn,Vi,ho;if(Te.eventType!=$i&&(nr>un||ot.velocity===U)){var Ao=Te.deltaX-ot.deltaX,uo=Te.deltaY-ot.deltaY,Is=dr(nr,Ao,uo);Mn=Is.x,Vi=Is.y,jr=Ke(Is.x)>Ke(Is.y)?Is.x:Is.y,ho=Vr(Ao,uo),fe.lastInterval=Te}else jr=ot.velocity,Mn=ot.velocityX,Vi=ot.velocityY,ho=ot.direction;Te.velocity=jr,Te.velocityX=Mn,Te.velocityY=Vi,Te.direction=ho}function wt(fe){for(var Te=[],ot=0;ot=Ke(Te)?fe<0?Zi:Jn:Te<0?Bn:Do}function Ln(fe,Te,ot){ot||(ot=F);var nr=Te[ot[0]]-fe[ot[0]],jr=Te[ot[1]]-fe[ot[1]];return Math.sqrt(nr*nr+jr*jr)}function En(fe,Te,ot){ot||(ot=F);var nr=Te[ot[0]]-fe[ot[0]],jr=Te[ot[1]]-fe[ot[1]];return Math.atan2(jr,nr)*180/Math.PI}function Rn(fe,Te){return En(Te[1],Te[0],ne)+En(fe[1],fe[0],ne)}function xn(fe,Te){return Ln(Te[0],Te[1],ne)/Ln(fe[0],fe[1],ne)}var si={mousedown:oi,mousemove:jn,mouseup:rn},ei="mousedown",la="mousemove mouseup";function sa(){this.evEl=ei,this.evWin=la,this.pressed=!1,de.apply(this,arguments)}bt(sa,de,{handler:function(Te){var ot=si[Te.type];ot&oi&&Te.button===0&&(this.pressed=!0),ot&jn&&Te.which!==1&&(ot=rn),this.pressed&&(ot&rn&&(this.pressed=!1),this.callback(this.manager,ot,{pointers:[Te],changedPointers:[Te],pointerType:Cn,srcEvent:Te}))}});var Eo={pointerdown:oi,pointermove:jn,pointerup:rn,pointercancel:$i,pointerout:$i},Ks={2:yr,3:lr,4:Cn,5:mn},di="pointerdown",W="pointermove pointerup pointercancel";pe.MSPointerEvent&&!pe.PointerEvent&&(di="MSPointerDown",W="MSPointerMove MSPointerUp MSPointerCancel");function Q(){this.evEl=di,this.evWin=W,de.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}bt(Q,de,{handler:function(Te){var ot=this.store,nr=!1,jr=Te.type.toLowerCase().replace("ms",""),Mn=Eo[jr],Vi=Ks[Te.pointerType]||Te.pointerType,ho=Vi==yr,Ao=Sr(ot,Te.pointerId,"pointerId");Mn&oi&&(Te.button===0||ho)?Ao<0&&(ot.push(Te),Ao=ot.length-1):Mn&(rn|$i)&&(nr=!0),!(Ao<0)&&(ot[Ao]=Te,this.callback(this.manager,Mn,{pointers:ot,changedPointers:[Te],pointerType:Vi,srcEvent:Te}),nr&&ot.splice(Ao,1))}});var se={touchstart:oi,touchmove:jn,touchend:rn,touchcancel:$i},xe="touchstart",Re="touchstart touchmove touchend touchcancel";function Je(){this.evTarget=xe,this.evWin=Re,this.started=!1,de.apply(this,arguments)}bt(Je,de,{handler:function(Te){var ot=se[Te.type];if(ot===oi&&(this.started=!0),!!this.started){var nr=lt.call(this,Te,ot);ot&(rn|$i)&&nr[0].length-nr[1].length===0&&(this.started=!1),this.callback(this.manager,ot,{pointers:nr[0],changedPointers:nr[1],pointerType:yr,srcEvent:Te})}}});function lt(fe,Te){var ot=te(fe.touches),nr=te(fe.changedTouches);return Te&(rn|$i)&&(ot=H(ot.concat(nr),"identifier",!0)),[ot,nr]}var V={touchstart:oi,touchmove:jn,touchend:rn,touchcancel:$i},q="touchstart touchmove touchend touchcancel";function De(){this.evTarget=q,this.targetIds={},de.apply(this,arguments)}bt(De,de,{handler:function(Te){var ot=V[Te.type],nr=et.call(this,Te,ot);nr&&this.callback(this.manager,ot,{pointers:nr[0],changedPointers:nr[1],pointerType:yr,srcEvent:Te})}});function et(fe,Te){var ot=te(fe.touches),nr=this.targetIds;if(Te&(oi|jn)&&ot.length===1)return nr[ot[0].identifier]=!0,[ot,ot];var jr,Mn,Vi=te(fe.changedTouches),ho=[],Ao=this.target;if(Mn=ot.filter(function(uo){return Pt(uo.target,Ao)}),Te===oi)for(jr=0;jr-1&&nr.splice(Mn,1)};setTimeout(jr,be)}}function ar(fe){for(var Te=fe.srcEvent.clientX,ot=fe.srcEvent.clientY,nr=0;nr-1&&this.requireFail.splice(Te,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(fe){return!!this.simultaneous[fe.id]},emit:function(fe){var Te=this,ot=this.state;function nr(jr){Te.manager.emit(jr,fe)}ot=Ti&&nr(Te.options.event+$l(ot))},tryEmit:function(fe){if(this.canEmit())return this.emit(fe);this.state=ma},canEmit:function(){for(var fe=0;feTe.threshold&&jr&Te.direction},attrTest:function(fe){return fi.prototype.attrTest.call(this,fe)&&(this.state&Ai||!(this.state&Ai)&&this.directionTest(fe))},emit:function(fe){this.pX=fe.deltaX,this.pY=fe.deltaY;var Te=os(fe.direction);Te&&(fe.additionalEvent=this.options.event+Te),this._super.emit.call(this,fe)}});function ia(){fi.apply(this,arguments)}bt(ia,fi,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(fe){return this._super.attrTest.call(this,fe)&&(Math.abs(fe.scale-1)>this.options.threshold||this.state&Ai)},emit:function(fe){if(fe.scale!==1){var Te=fe.scale<1?"in":"out";fe.additionalEvent=this.options.event+Te}this._super.emit.call(this,fe)}});function So(){Aa.apply(this,arguments),this._timer=null,this._input=null}bt(So,Aa,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hi]},process:function(fe){var Te=this.options,ot=fe.pointers.length===Te.pointers,nr=fe.distanceTe.time;if(this._input=fe,!nr||!ot||fe.eventType&(rn|$i)&&!jr)this.reset();else if(fe.eventType&oi)this.reset(),this._timer=mt(function(){this.state=Pa,this.tryEmit()},Te.time,this);else if(fe.eventType&rn)return Pa;return ma},reset:function(){clearTimeout(this._timer)},emit:function(fe){this.state===Pa&&(fe&&fe.eventType&rn?this.manager.emit(this.options.event+"up",fe):(this._input.timeStamp=ht(),this.manager.emit(this.options.event,this._input)))}});function ha(){fi.apply(this,arguments)}bt(ha,fi,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(fe){return this._super.attrTest.call(this,fe)&&(Math.abs(fe.rotation)>this.options.threshold||this.state&Ai)}});function $o(){fi.apply(this,arguments)}bt($o,fi,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:oa|$a,pointers:1},getTouchAction:function(){return Oa.prototype.getTouchAction.call(this)},attrTest:function(fe){var Te=this.options.direction,ot;return Te&(oa|$a)?ot=fe.overallVelocity:Te&oa?ot=fe.overallVelocityX:Te&$a&&(ot=fe.overallVelocityY),this._super.attrTest.call(this,fe)&&Te&fe.offsetDirection&&fe.distance>this.options.threshold&&fe.maxPointers==this.options.pointers&&Ke(ot)>this.options.velocity&&fe.eventType&rn},emit:function(fe){var Te=os(fe.offsetDirection);Te&&this.manager.emit(this.options.event+Te,fe),this.manager.emit(this.options.event,fe)}});function Vo(){Aa.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}bt(Vo,Aa,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Qr]},process:function(fe){var Te=this.options,ot=fe.pointers.length===Te.pointers,nr=fe.distance= than the number of constructor arguments of its base class.")};J.ARGUMENTS_LENGTH_MISMATCH=re,J.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",J.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",J.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",J.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",J.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var pe=function(){for(var le=[],U=0;U0&&ur[ur.length-1])&&(ft[0]===6||ft[0]===2)){bt=0;continue}if(ft[0]===3&&(!ur||ft[1]>ur[0]&&ft[1]0?U._map.set(ae,qe):U._map.delete(ae)})},_.prototype.hasKey=function(le){if(le==null)throw new Error(re.NULL_ARGUMENT);return this._map.has(le)},_.prototype.clone=function(){var le=new _;return this._map.forEach(function(U,he){U.forEach(function(ae){return le.add(he,ae.clone())})}),le},_.prototype.traverse=function(le){this._map.forEach(function(U,he){le(he,U)})},_}();J.Lookup=pe},14156:function(rr,J,L){"use strict";var re;re={value:!0},re=re=re=re=re=re=J.GW=re=re=J.zY=re=re=re=re=re=J.f3=re=re=J.b2=re=re=re=re=re=J.W2=re=void 0;var pe=L(17597);re=pe;var _=L(27877);Object.defineProperty(J,"W2",{enumerable:!0,get:function(){return _.Container}});var le=L(71297);re={enumerable:!0,get:function(){return le.BindingScopeEnum}},re={enumerable:!0,get:function(){return le.BindingTypeEnum}},re={enumerable:!0,get:function(){return le.TargetTypeEnum}};var U=L(66440);re={enumerable:!0,get:function(){return U.AsyncContainerModule}},re={enumerable:!0,get:function(){return U.ContainerModule}};var he=L(66733);Object.defineProperty(J,"b2",{enumerable:!0,get:function(){return he.injectable}});var ae=L(76316);re={enumerable:!0,get:function(){return ae.tagged}};var qe=L(23769);re={enumerable:!0,get:function(){return qe.named}};var ie=L(71791);Object.defineProperty(J,"f3",{enumerable:!0,get:function(){return ie.inject}}),re={enumerable:!0,get:function(){return ie.LazyServiceIdentifer}};var Ke=L(57758);re={enumerable:!0,get:function(){return Ke.optional}};var ht=L(39868);re={enumerable:!0,get:function(){return ht.unmanaged}};var mt=L(33406);re={enumerable:!0,get:function(){return mt.multiInject}};var Dt=L(26805);re={enumerable:!0,get:function(){return Dt.targetName}};var Yt=L(82935);Object.defineProperty(J,"zY",{enumerable:!0,get:function(){return Yt.postConstruct}});var Ht=L(51288);re={enumerable:!0,get:function(){return Ht.MetadataReader}};var ir=L(92452);re={enumerable:!0,get:function(){return ir.id}};var Xt=L(38362);Object.defineProperty(J,"GW",{enumerable:!0,get:function(){return Xt.decorate}});var yt=L(95093);re={enumerable:!0,get:function(){return yt.traverseAncerstors}},re={enumerable:!0,get:function(){return yt.taggedConstraint}},re={enumerable:!0,get:function(){return yt.namedConstraint}},re={enumerable:!0,get:function(){return yt.typeConstraint}};var bt=L(96783);re={enumerable:!0,get:function(){return bt.getServiceIdentifierAsString}};var Pr=L(6024);re={enumerable:!0,get:function(){return Pr.multiBindToService}}},68338:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Context=void 0;var re=L(92452),pe=function(){function _(le){this.id=re.id(),this.container=le}return _.prototype.addPlan=function(le){this.plan=le},_.prototype.setCurrentRequest=function(le){this.currentRequest=le},_}();J.Context=pe},4957:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Metadata=void 0;var re=L(17597),pe=function(){function _(le,U){this.key=le,this.value=U}return _.prototype.toString=function(){return this.key===re.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},_}();J.Metadata=pe},51288:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.MetadataReader=void 0;var re=L(17597),pe=function(){function _(){}return _.prototype.getConstructorMetadata=function(le){var U=Reflect.getMetadata(re.PARAM_TYPES,le),he=Reflect.getMetadata(re.TAGGED,le);return{compilerGeneratedMetadata:U,userGeneratedMetadata:he||{}}},_.prototype.getPropertiesMetadata=function(le){var U=Reflect.getMetadata(re.TAGGED_PROP,le)||[];return U},_}();J.MetadataReader=pe},30515:function(rr,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Plan=void 0;var L=function(){function re(pe,_){this.parentContext=pe,this.rootRequest=_}return re}();J.Plan=L},14346:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getBindingDictionary=J.createMockRequest=J.plan=void 0;var re=L(53837),pe=L(81463),_=L(71297),le=L(17597),U=L(99438),he=L(96783),ae=L(68338),qe=L(4957),ie=L(30515),Ke=L(4793),ht=L(39373),mt=L(90700);function Dt(hr){return hr._bindingDictionary}J.getBindingDictionary=Dt;function Yt(hr,ur,Et,nt,Pt,ft){var qt=hr?le.MULTI_INJECT_TAG:le.INJECT_TAG,Sr=new qe.Metadata(qt,Et),te=new mt.Target(ur,nt,Et,Sr);if(Pt!==void 0){var H=new qe.Metadata(Pt,ft);te.metadata.push(H)}return te}function Ht(hr,ur,Et,nt,Pt){var ft=yt(Et.container,Pt.serviceIdentifier),qt=[];return ft.length===re.BindingCount.NoBindingsAvailable&&Et.container.options.autoBindInjectable&&typeof Pt.serviceIdentifier=="function"&&hr.getConstructorMetadata(Pt.serviceIdentifier).compilerGeneratedMetadata&&(Et.container.bind(Pt.serviceIdentifier).toSelf(),ft=yt(Et.container,Pt.serviceIdentifier)),ur?qt=ft:qt=ft.filter(function(Sr){var te=new ht.Request(Sr.serviceIdentifier,Et,nt,Sr,Pt);return Sr.constraint(te)}),ir(Pt.serviceIdentifier,qt,Pt,Et.container),qt}function ir(hr,ur,Et,nt){switch(ur.length){case re.BindingCount.NoBindingsAvailable:if(Et.isOptional())return ur;var Pt=he.getServiceIdentifierAsString(hr),ft=pe.NOT_REGISTERED;throw ft+=he.listMetadataForTarget(Pt,Et),ft+=he.listRegisteredBindingsForServiceIdentifier(nt,Pt,yt),new Error(ft);case re.BindingCount.OnlyOneBindingAvailable:if(!Et.isArray())return ur;case re.BindingCount.MultipleBindingsAvailable:default:if(Et.isArray())return ur;var Pt=he.getServiceIdentifierAsString(hr),ft=pe.AMBIGUOUS_MATCH+" "+Pt;throw ft+=he.listRegisteredBindingsForServiceIdentifier(nt,Pt,yt),new Error(ft)}}function Xt(hr,ur,Et,nt,Pt,ft){var qt,Sr;if(Pt===null){qt=Ht(hr,ur,nt,null,ft),Sr=new ht.Request(Et,nt,null,qt,ft);var te=new ie.Plan(nt,Sr);nt.addPlan(te)}else qt=Ht(hr,ur,nt,Pt,ft),Sr=Pt.addChildRequest(ft.serviceIdentifier,qt,ft);qt.forEach(function(H){var K=null;if(ft.isArray())K=Sr.addChildRequest(H.serviceIdentifier,H,ft);else{if(H.cache)return;K=Sr}if(H.type===_.BindingTypeEnum.Instance&&H.implementationType!==null){var Be=Ke.getDependencies(hr,H.implementationType);if(!nt.container.options.skipBaseClassChecks){var Ae=Ke.getBaseClassDependencyCount(hr,H.implementationType);if(Be.length0,Pt=Et.length>Xt.length,ft=nt||Pt?Et.length:Xt.length,qt=ht(yt,ir,Pr,ur,ft),Sr=mt(Ht,Xt),te=re(re([],qt),Sr);return te}function Ke(Ht,ir,Xt,yt,bt){var Pr=bt[Ht.toString()]||[],hr=Yt(Pr),ur=hr.unmanaged!==!0,Et=yt[Ht],nt=hr.inject||hr.multiInject;if(Et=nt||Et,Et instanceof pe.LazyServiceIdentifer&&(Et=Et.unwrap()),ur){var Pt=Et===Object,ft=Et===Function,qt=Et===void 0,Sr=Pt||ft||qt;if(!ir&&Sr){var te=_.MISSING_INJECT_ANNOTATION+" argument "+Ht+" in class "+Xt+".";throw new Error(te)}var H=new ae.Target(le.TargetTypeEnum.ConstructorArgument,hr.targetName,Et);return H.metadata=Pr,H}return null}function ht(Ht,ir,Xt,yt,bt){for(var Pr=[],hr=0;hr0?ur:Dt(Ht,Xt)}else return 0}J.getBaseClassDependencyCount=Dt;function Yt(Ht){var ir={};return Ht.forEach(function(Xt){ir[Xt.key.toString()]=Xt.value}),{inject:ir[U.INJECT_TAG],multiInject:ir[U.MULTI_INJECT_TAG],targetName:ir[U.NAME_TAG],unmanaged:ir[U.UNMANAGED_TAG]}}},39373:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Request=void 0;var re=L(92452),pe=function(){function _(le,U,he,ae,qe){this.id=re.id(),this.serviceIdentifier=le,this.parentContext=U,this.parentRequest=he,this.target=qe,this.childRequests=[],this.bindings=Array.isArray(ae)?ae:[ae],this.requestScope=he===null?new Map:null}return _.prototype.addChildRequest=function(le,U,he){var ae=new _(le,this.parentContext,this,U,he);return this.childRequests.push(ae),ae},_}();J.Request=pe},90700:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Target=void 0;var re=L(17597),pe=L(92452),_=L(4957),le=L(41141),U=function(){function he(ae,qe,ie,Ke){this.id=pe.id(),this.type=ae,this.serviceIdentifier=ie,this.name=new le.QueryableString(qe||""),this.metadata=new Array;var ht=null;typeof Ke=="string"?ht=new _.Metadata(re.NAMED_TAG,Ke):Ke instanceof _.Metadata&&(ht=Ke),ht!==null&&this.metadata.push(ht)}return he.prototype.hasTag=function(ae){for(var qe=0,ie=this.metadata;qe0){var Dt=Ke.filter(function(Ht){return Ht.target!==null&&Ht.target.type===_.TargetTypeEnum.ConstructorArgument}),Yt=Dt.map(ht);mt=he(ie,Yt),mt=U(mt,Ke,ht)}else mt=new ie;return ae(ie,mt),mt}J.resolveInstance=qe},50857:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.resolve=void 0;var re=L(81463),pe=L(71297),_=L(99438),le=L(96783),U=L(31831),he=function(ie,Ke,ht){try{return ht()}catch(mt){throw _.isStackOverflowExeption(mt)?new Error(re.CIRCULAR_DEPENDENCY_IN_FACTORY(ie,Ke.toString())):mt}},ae=function(ie){return function(Ke){Ke.parentContext.setCurrentRequest(Ke);var ht=Ke.bindings,mt=Ke.childRequests,Dt=Ke.target&&Ke.target.isArray(),Yt=!Ke.parentRequest||!Ke.parentRequest.target||!Ke.target||!Ke.parentRequest.target.matchesArray(Ke.target.serviceIdentifier);if(Dt&&Yt)return mt.map(function(Pr){var hr=ae(ie);return hr(Pr)});var Ht=null;if(Ke.target.isOptional()&&ht.length===0)return;var ir=ht[0],Xt=ir.scope===pe.BindingScopeEnum.Singleton,yt=ir.scope===pe.BindingScopeEnum.Request;if(Xt&&ir.activated)return ir.cache;if(yt&&ie!==null&&ie.has(ir.id))return ie.get(ir.id);if(ir.type===pe.BindingTypeEnum.ConstantValue)Ht=ir.cache,ir.activated=!0;else if(ir.type===pe.BindingTypeEnum.Function)Ht=ir.cache,ir.activated=!0;else if(ir.type===pe.BindingTypeEnum.Constructor)Ht=ir.implementationType;else if(ir.type===pe.BindingTypeEnum.DynamicValue&&ir.dynamicValue!==null)Ht=he("toDynamicValue",ir.serviceIdentifier,function(){return ir.dynamicValue(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Factory&&ir.factory!==null)Ht=he("toFactory",ir.serviceIdentifier,function(){return ir.factory(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Provider&&ir.provider!==null)Ht=he("toProvider",ir.serviceIdentifier,function(){return ir.provider(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Instance&&ir.implementationType!==null)Ht=U.resolveInstance(ir.implementationType,mt,ae(ie));else{var bt=le.getServiceIdentifierAsString(Ke.serviceIdentifier);throw new Error(re.INVALID_BINDING_TYPE+" "+bt)}return typeof ir.onActivation=="function"&&(Ht=ir.onActivation(Ke.parentContext,Ht)),Xt&&(ir.cache=Ht,ir.activated=!0),yt&&ie!==null&&!ie.has(ir.id)&&ie.set(ir.id,Ht),Ht}};function qe(ie){var Ke=ae(ie.plan.rootRequest.requestScope);return Ke(ie.plan.rootRequest)}J.resolve=qe},29664:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingInSyntax=void 0;var re=L(71297),pe=L(62923),_=function(){function le(U){this._binding=U}return le.prototype.inRequestScope=function(){return this._binding.scope=re.BindingScopeEnum.Request,new pe.BindingWhenOnSyntax(this._binding)},le.prototype.inSingletonScope=function(){return this._binding.scope=re.BindingScopeEnum.Singleton,new pe.BindingWhenOnSyntax(this._binding)},le.prototype.inTransientScope=function(){return this._binding.scope=re.BindingScopeEnum.Transient,new pe.BindingWhenOnSyntax(this._binding)},le}();J.BindingInSyntax=_},35268:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingInWhenOnSyntax=void 0;var re=L(29664),pe=L(85370),_=L(76199),le=function(){function U(he){this._binding=he,this._bindingWhenSyntax=new _.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new pe.BindingOnSyntax(this._binding),this._bindingInSyntax=new re.BindingInSyntax(he)}return U.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},U.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},U.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},U.prototype.when=function(he){return this._bindingWhenSyntax.when(he)},U.prototype.whenTargetNamed=function(he){return this._bindingWhenSyntax.whenTargetNamed(he)},U.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},U.prototype.whenTargetTagged=function(he,ae){return this._bindingWhenSyntax.whenTargetTagged(he,ae)},U.prototype.whenInjectedInto=function(he){return this._bindingWhenSyntax.whenInjectedInto(he)},U.prototype.whenParentNamed=function(he){return this._bindingWhenSyntax.whenParentNamed(he)},U.prototype.whenParentTagged=function(he,ae){return this._bindingWhenSyntax.whenParentTagged(he,ae)},U.prototype.whenAnyAncestorIs=function(he){return this._bindingWhenSyntax.whenAnyAncestorIs(he)},U.prototype.whenNoAncestorIs=function(he){return this._bindingWhenSyntax.whenNoAncestorIs(he)},U.prototype.whenAnyAncestorNamed=function(he){return this._bindingWhenSyntax.whenAnyAncestorNamed(he)},U.prototype.whenAnyAncestorTagged=function(he,ae){return this._bindingWhenSyntax.whenAnyAncestorTagged(he,ae)},U.prototype.whenNoAncestorNamed=function(he){return this._bindingWhenSyntax.whenNoAncestorNamed(he)},U.prototype.whenNoAncestorTagged=function(he,ae){return this._bindingWhenSyntax.whenNoAncestorTagged(he,ae)},U.prototype.whenAnyAncestorMatches=function(he){return this._bindingWhenSyntax.whenAnyAncestorMatches(he)},U.prototype.whenNoAncestorMatches=function(he){return this._bindingWhenSyntax.whenNoAncestorMatches(he)},U.prototype.onActivation=function(he){return this._bindingOnSyntax.onActivation(he)},U}();J.BindingInWhenOnSyntax=le},85370:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingOnSyntax=void 0;var re=L(76199),pe=function(){function _(le){this._binding=le}return _.prototype.onActivation=function(le){return this._binding.onActivation=le,new re.BindingWhenSyntax(this._binding)},_}();J.BindingOnSyntax=pe},98e3:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingToSyntax=void 0;var re=L(81463),pe=L(71297),_=L(35268),le=L(62923),U=function(){function he(ae){this._binding=ae}return he.prototype.to=function(ae){return this._binding.type=pe.BindingTypeEnum.Instance,this._binding.implementationType=ae,new _.BindingInWhenOnSyntax(this._binding)},he.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+re.INVALID_TO_SELF_VALUE);var ae=this._binding.serviceIdentifier;return this.to(ae)},he.prototype.toConstantValue=function(ae){return this._binding.type=pe.BindingTypeEnum.ConstantValue,this._binding.cache=ae,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toDynamicValue=function(ae){return this._binding.type=pe.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=ae,this._binding.implementationType=null,new _.BindingInWhenOnSyntax(this._binding)},he.prototype.toConstructor=function(ae){return this._binding.type=pe.BindingTypeEnum.Constructor,this._binding.implementationType=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toFactory=function(ae){return this._binding.type=pe.BindingTypeEnum.Factory,this._binding.factory=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toFunction=function(ae){if(typeof ae!="function")throw new Error(re.INVALID_FUNCTION_BINDING);var qe=this.toConstantValue(ae);return this._binding.type=pe.BindingTypeEnum.Function,this._binding.scope=pe.BindingScopeEnum.Singleton,qe},he.prototype.toAutoFactory=function(ae){return this._binding.type=pe.BindingTypeEnum.Factory,this._binding.factory=function(qe){var ie=function(){return qe.container.get(ae)};return ie},this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toProvider=function(ae){return this._binding.type=pe.BindingTypeEnum.Provider,this._binding.provider=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toService=function(ae){this.toDynamicValue(function(qe){return qe.container.get(ae)})},he}();J.BindingToSyntax=U},62923:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingWhenOnSyntax=void 0;var re=L(85370),pe=L(76199),_=function(){function le(U){this._binding=U,this._bindingWhenSyntax=new pe.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new re.BindingOnSyntax(this._binding)}return le.prototype.when=function(U){return this._bindingWhenSyntax.when(U)},le.prototype.whenTargetNamed=function(U){return this._bindingWhenSyntax.whenTargetNamed(U)},le.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},le.prototype.whenTargetTagged=function(U,he){return this._bindingWhenSyntax.whenTargetTagged(U,he)},le.prototype.whenInjectedInto=function(U){return this._bindingWhenSyntax.whenInjectedInto(U)},le.prototype.whenParentNamed=function(U){return this._bindingWhenSyntax.whenParentNamed(U)},le.prototype.whenParentTagged=function(U,he){return this._bindingWhenSyntax.whenParentTagged(U,he)},le.prototype.whenAnyAncestorIs=function(U){return this._bindingWhenSyntax.whenAnyAncestorIs(U)},le.prototype.whenNoAncestorIs=function(U){return this._bindingWhenSyntax.whenNoAncestorIs(U)},le.prototype.whenAnyAncestorNamed=function(U){return this._bindingWhenSyntax.whenAnyAncestorNamed(U)},le.prototype.whenAnyAncestorTagged=function(U,he){return this._bindingWhenSyntax.whenAnyAncestorTagged(U,he)},le.prototype.whenNoAncestorNamed=function(U){return this._bindingWhenSyntax.whenNoAncestorNamed(U)},le.prototype.whenNoAncestorTagged=function(U,he){return this._bindingWhenSyntax.whenNoAncestorTagged(U,he)},le.prototype.whenAnyAncestorMatches=function(U){return this._bindingWhenSyntax.whenAnyAncestorMatches(U)},le.prototype.whenNoAncestorMatches=function(U){return this._bindingWhenSyntax.whenNoAncestorMatches(U)},le.prototype.onActivation=function(U){return this._bindingOnSyntax.onActivation(U)},le}();J.BindingWhenOnSyntax=_},76199:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingWhenSyntax=void 0;var re=L(85370),pe=L(95093),_=function(){function le(U){this._binding=U}return le.prototype.when=function(U){return this._binding.constraint=U,new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetNamed=function(U){return this._binding.constraint=pe.namedConstraint(U),new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(U){var he=U.target!==null&&!U.target.isNamed()&&!U.target.isTagged();return he},new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetTagged=function(U,he){return this._binding.constraint=pe.taggedConstraint(U)(he),new re.BindingOnSyntax(this._binding)},le.prototype.whenInjectedInto=function(U){return this._binding.constraint=function(he){return pe.typeConstraint(U)(he.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenParentNamed=function(U){return this._binding.constraint=function(he){return pe.namedConstraint(U)(he.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenParentTagged=function(U,he){return this._binding.constraint=function(ae){return pe.taggedConstraint(U)(he)(ae.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorIs=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,pe.typeConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorIs=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,pe.typeConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorNamed=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,pe.namedConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorNamed=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,pe.namedConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorTagged=function(U,he){return this._binding.constraint=function(ae){return pe.traverseAncerstors(ae,pe.taggedConstraint(U)(he))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorTagged=function(U,he){return this._binding.constraint=function(ae){return!pe.traverseAncerstors(ae,pe.taggedConstraint(U)(he))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorMatches=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,U)},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorMatches=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,U)},new re.BindingOnSyntax(this._binding)},le}();J.BindingWhenSyntax=_},95093:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.typeConstraint=J.namedConstraint=J.taggedConstraint=J.traverseAncerstors=void 0;var re=L(17597),pe=L(4957),_=function(ae,qe){var ie=ae.parentRequest;return ie!==null?qe(ie)?!0:_(ie,qe):!1};J.traverseAncerstors=_;var le=function(ae){return function(qe){var ie=function(Ke){return Ke!==null&&Ke.target!==null&&Ke.target.matchesTag(ae)(qe)};return ie.metaData=new pe.Metadata(ae,qe),ie}};J.taggedConstraint=le;var U=le(re.NAMED_TAG);J.namedConstraint=U;var he=function(ae){return function(qe){var ie=null;if(qe!==null)if(ie=qe.bindings[0],typeof ae=="string"){var Ke=ie.serviceIdentifier;return Ke===ae}else{var ht=qe.bindings[0].implementationType;return ae===ht}return!1}};J.typeConstraint=he},6024:function(rr,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.multiBindToService=void 0;var L=function(re){return function(pe){return function(){for(var _=[],le=0;le ")}function he(ie){ie.childRequests.forEach(function(Ke){if(le(Ke,Ke.serviceIdentifier)){var ht=U(Ke);throw new Error(re.CIRCULAR_DEPENDENCY+" "+ht)}else he(Ke)})}J.circularDependencyToException=he;function ae(ie,Ke){if(Ke.isTagged()||Ke.isNamed()){var ht="",mt=Ke.getNamedTag(),Dt=Ke.getCustomTags();return mt!==null&&(ht+=mt.toString()+` +`),Dt!==null&&Dt.forEach(function(Yt){ht+=Yt.toString()+` +`})," "+ie+` + `+ie+" - "+ht}else return" "+ie}J.listMetadataForTarget=ae;function qe(ie){if(ie.name)return ie.name;var Ke=ie.toString(),ht=Ke.match(/^function\s*([^\s(]+)/);return ht?ht[1]:"Anonymous function: "+Ke}J.getFunctionName=qe},45170:function(rr,J,L){var re=L(13807);function pe(_,le){var U=_==null?0:_.length;return!!U&&re(_,le,0)>-1}rr.exports=pe},94936:function(rr){function J(L,re,pe){for(var _=-1,le=L==null?0:L.length;++_=re?L:re)),L}rr.exports=J},92504:function(rr){function J(L,re,pe,_){for(var le=L.length,U=pe+(_?1:-1);_?U--:++U-1;)ir!==ie&&ae.call(ir,Xt,1),ae.call(ie,Xt,1);return ie}rr.exports=qe},95453:function(rr,J,L){var re=L(78188),pe=L(45170),_=L(94936),le=L(29880),U=L(17319),he=L(79967),ae=200;function qe(ie,Ke,ht){var mt=-1,Dt=pe,Yt=ie.length,Ht=!0,ir=[],Xt=ir;if(ht)Ht=!1,Dt=_;else if(Yt>=ae){var yt=Ke?null:U(ie);if(yt)return he(yt);Ht=!1,Dt=le,Xt=new re}else Xt=Ke?[]:ir;e:for(;++mt(m=1))return m;for(;cE?c=x:m=x,x=.5*(m-c)+c}return x},he.prototype.solve=function(a,u){return this.sampleCurveY(this.solveCurveX(a,u))};var ae=qe;function qe(a,u){this.x=a,this.y=u}qe.prototype={clone:function(){return new qe(this.x,this.y)},add:function(a){return this.clone()._add(a)},sub:function(a){return this.clone()._sub(a)},multByPoint:function(a){return this.clone()._multByPoint(a)},divByPoint:function(a){return this.clone()._divByPoint(a)},mult:function(a){return this.clone()._mult(a)},div:function(a){return this.clone()._div(a)},rotate:function(a){return this.clone()._rotate(a)},rotateAround:function(a,u){return this.clone()._rotateAround(a,u)},matMult:function(a){return this.clone()._matMult(a)},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(a){return this.x===a.x&&this.y===a.y},dist:function(a){return Math.sqrt(this.distSqr(a))},distSqr:function(a){var u=a.x-this.x,c=a.y-this.y;return u*u+c*c},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(a){return Math.atan2(this.y-a.y,this.x-a.x)},angleWith:function(a){return this.angleWithSep(a.x,a.y)},angleWithSep:function(a,u){return Math.atan2(this.x*u-this.y*a,this.x*a+this.y*u)},_matMult:function(a){var u=a[2]*this.x+a[3]*this.y;return this.x=a[0]*this.x+a[1]*this.y,this.y=u,this},_add:function(a){return this.x+=a.x,this.y+=a.y,this},_sub:function(a){return this.x-=a.x,this.y-=a.y,this},_mult:function(a){return this.x*=a,this.y*=a,this},_div:function(a){return this.x/=a,this.y/=a,this},_multByPoint:function(a){return this.x*=a.x,this.y*=a.y,this},_divByPoint:function(a){return this.x/=a.x,this.y/=a.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var a=this.y;return this.y=this.x,this.x=-a,this},_rotate:function(a){var u=Math.cos(a),c=Math.sin(a),m=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=m,this},_rotateAround:function(a,u){var c=Math.cos(a),m=Math.sin(a),x=u.y+m*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-m*(this.y-u.y),this.y=x,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},qe.convert=function(a){return a instanceof qe?a:Array.isArray(a)?new qe(a[0],a[1]):a};var ie=typeof self!="undefined"?self:{},Ke=Math.pow(2,53)-1;function ht(a,u,c,m){var x=new U(a,u,c,m);return function(E){return x.solve(E)}}var mt=ht(.25,.1,.25,1);function Dt(a,u,c){return Math.min(c,Math.max(u,a))}function Yt(a,u,c){var m=c-u,x=((a-u)%m+m)%m+u;return x===u?c:x}function Ht(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m>u/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,a)}()}function bt(a){return!!a&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(a)}function Pr(a,u){a.forEach(function(c){u[c]&&(u[c]=u[c].bind(u))})}function hr(a,u){return a.indexOf(u,a.length-u.length)!==-1}function ur(a,u,c){var m={};for(var x in a)m[x]=u.call(c||this,a[x],x,a);return m}function Et(a,u,c){var m={};for(var x in a)u.call(c||this,a[x],x,a)&&(m[x]=a[x]);return m}function nt(a){return Array.isArray(a)?a.map(nt):typeof a=="object"&&a?ur(a,nt):a}var Pt={};function ft(a){Pt[a]||(typeof console!="undefined"&&console.warn(a),Pt[a]=!0)}function qt(a,u,c){return(c.y-a.y)*(u.x-a.x)>(u.y-a.y)*(c.x-a.x)}function Sr(a){for(var u=0,c=0,m=a.length,x=m-1,E=void 0,A=void 0;c@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(m,x,E,A){var I=E||A;return u[x]=!I||I.toLowerCase(),""}),u["max-age"]){var c=parseInt(u["max-age"],10);isNaN(c)?delete u["max-age"]:u["max-age"]=c}return u}var K=null;function Be(a){if(K==null){var u=a.navigator?a.navigator.userAgent:null;K=!!a.safari||!(!u||!(/\b(iPad|iPhone|iPod)\b/.test(u)||u.match("Safari")&&!u.match("Chrome")))}return K}function Ae(a){try{var u=ie[a];return u.setItem("_mapbox_test_",1),u.removeItem("_mapbox_test_"),!0}catch(c){return!1}}var dt,Ue,We,it,Mt=ie.performance&&ie.performance.now?ie.performance.now.bind(ie.performance):Date.now.bind(Date),yr=ie.requestAnimationFrame||ie.mozRequestAnimationFrame||ie.webkitRequestAnimationFrame||ie.msRequestAnimationFrame,lr=ie.cancelAnimationFrame||ie.mozCancelAnimationFrame||ie.webkitCancelAnimationFrame||ie.msCancelAnimationFrame,Cn={now:Mt,frame:function(a){var u=yr(a);return{cancel:function(){return lr(u)}}},getImageData:function(a,u){u===void 0&&(u=0);var c=ie.document.createElement("canvas"),m=c.getContext("2d");if(!m)throw new Error("failed to create canvas 2d context");return c.width=a.width,c.height=a.height,m.drawImage(a,0,0,a.width,a.height),m.getImageData(-u,-u,a.width+2*u,a.height+2*u)},resolveURL:function(a){return dt||(dt=ie.document.createElement("a")),dt.href=a,dt.href},hardwareConcurrency:ie.navigator&&ie.navigator.hardwareConcurrency||4,get devicePixelRatio(){return ie.devicePixelRatio},get prefersReducedMotion(){return!!ie.matchMedia&&(Ue==null&&(Ue=ie.matchMedia("(prefers-reduced-motion: reduce)")),Ue.matches)}},mn={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},un={supported:!1,testSupport:function(a){!oi&&it&&(jn?rn(a):We=a)}},oi=!1,jn=!1;function rn(a){var u=a.createTexture();a.bindTexture(a.TEXTURE_2D,u);try{if(a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,it),a.isContextLost())return;un.supported=!0}catch(c){}a.deleteTexture(u),oi=!0}ie.document&&((it=ie.document.createElement("img")).onload=function(){We&&rn(We),We=null,jn=!0},it.onerror=function(){oi=!0,We=null},it.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var $i="01",Wi=function(a,u){this._transformRequestFn=a,this._customAccessToken=u,this._createSkuToken()};function Zi(a){return a.indexOf("mapbox:")===0}Wi.prototype._createSkuToken=function(){var a=function(){for(var u="",c=0;c<10;c++)u+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",$i,u].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=a.token,this._skuTokenExpiresAt=a.tokenExpiresAt},Wi.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Wi.prototype.transformRequest=function(a,u){return this._transformRequestFn&&this._transformRequestFn(a,u)||{url:a}},Wi.prototype.normalizeStyleURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/styles/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeGlyphsURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/fonts/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeSourceURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/v4/"+c.authority+".json",c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeSpriteURL=function(a,u,c,m){var x=oa(a);return Zi(a)?(x.path="/styles/v1"+x.path+"/sprite"+u+c,this._makeAPIURL(x,this._customAccessToken||m)):(x.path+=""+u+c,$a(x))},Wi.prototype.normalizeTileURL=function(a,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),a&&!Zi(a))return a;var c=oa(a);c.path=c.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Cn.devicePixelRatio>=2||u===512?"@2x":"")+(un.supported?".webp":"$1")),c.path=c.path.replace(/^.+\/v4\//,"/"),c.path="/v4"+c.path;var m=this._customAccessToken||function(x){for(var E=0,A=x;E=0&&a.params.splice(x,1)}if(m.path!=="/"&&(a.path=""+m.path+a.path),!mn.REQUIRE_ACCESS_TOKEN)return $a(a);if(!(u=u||mn.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+c);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+c);return a.params=a.params.filter(function(E){return E.indexOf("access_token")===-1}),a.params.push("access_token="+u),$a(a)};var Jn=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Bn(a){return Jn.test(a)}var Do=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function oa(a){var u=a.match(Do);if(!u)throw new Error("Unable to parse URL object");return{protocol:u[1],authority:u[2],path:u[3]||"/",params:u[4]?u[4].split("&"):[]}}function $a(a){var u=a.params.length?"?"+a.params.join("&"):"";return a.protocol+"://"+a.authority+a.path+u}function Ot(a){if(!a)return null;var u=a.split(".");if(!u||u.length!==3)return null;try{return JSON.parse(decodeURIComponent(ie.atob(u[1]).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(c){return null}}var F=function(a){this.type=a,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};F.prototype.getStorageKey=function(a){var u,c=Ot(mn.ACCESS_TOKEN);return u=c&&c.u?ie.btoa(encodeURIComponent(c.u).replace(/%([0-9A-F]{2})/g,function(m,x){return String.fromCharCode(+("0x"+x))})):mn.ACCESS_TOKEN||"",a?"mapbox.eventData."+a+":"+u:"mapbox.eventData:"+u},F.prototype.fetchEventData=function(){var a=Ae("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{var m=ie.localStorage.getItem(u);m&&(this.eventData=JSON.parse(m));var x=ie.localStorage.getItem(c);x&&(this.anonId=x)}catch(E){ft("Unable to read from LocalStorage")}},F.prototype.saveEventData=function(){var a=Ae("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{ie.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&ie.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(m){ft("Unable to write to LocalStorage")}},F.prototype.processRequests=function(a){},F.prototype.postEvent=function(a,u,c,m){var x=this;if(mn.EVENTS_URL){var E=oa(mn.EVENTS_URL);E.params.push("access_token="+(m||mn.ACCESS_TOKEN||""));var A={event:this.type,created:new Date(a).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:$i,userId:this.anonId},I=u?Ht(A,u):A,D={url:$a(E),headers:{"Content-Type":"text/plain"},body:JSON.stringify([I])};this.pendingRequest=di(D,function(N){x.pendingRequest=null,c(N),x.saveEventData(),x.processRequests(m)})}},F.prototype.queueRequest=function(a,u){this.queue.push(a),this.processRequests(u)};var ne,de,Ne=function(a){function u(){a.call(this,"map.load"),this.success={},this.skuToken=""}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postMapLoadEvent=function(c,m,x,E){this.skuToken=x;var A=!(!E&&!mn.ACCESS_TOKEN),I=Array.isArray(c)&&c.some(function(D){return Zi(D)||Bn(D)});mn.EVENTS_URL&&A&&I&&this.queueRequest({id:m,timestamp:Date.now()},E)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){var x=this.queue.shift(),E=x.id,A=x.timestamp;E&&this.success[E]||(this.anonId||this.fetchEventData(),bt(this.anonId)||(this.anonId=yt()),this.postEvent(A,{skuToken:this.skuToken},function(I){I||E&&(m.success[E]=!0)},c))}},u}(F),_t=new(function(a){function u(c){a.call(this,"appUserTurnstile"),this._customAccessToken=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postTurnstileEvent=function(c,m){mn.EVENTS_URL&&mn.ACCESS_TOKEN&&Array.isArray(c)&&c.some(function(x){return Zi(x)||Bn(x)})&&this.queueRequest(Date.now(),m)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var x=Ot(mn.ACCESS_TOKEN),E=x?x.u:mn.ACCESS_TOKEN,A=E!==this.eventData.tokenU;bt(this.anonId)||(this.anonId=yt(),A=!0);var I=this.queue.shift();if(this.eventData.lastSuccess){var D=new Date(this.eventData.lastSuccess),N=new Date(I),j=(I-this.eventData.lastSuccess)/864e5;A=A||j>=1||j<-1||D.getDate()!==N.getDate()}else A=!0;if(!A)return this.processRequests();this.postEvent(I,{"enabled.telemetry":!1},function(X){X||(m.eventData.lastSuccess=I,m.eventData.tokenU=E)},c)}},u}(F)),Kt=_t.postTurnstileEvent.bind(_t),Ar=new Ne,Ve=Ar.postMapLoadEvent.bind(Ar),wt=500,sr=50;function dr(){ie.caches&&!ne&&(ne=ie.caches.open("mapbox-tiles"))}function Vr(a){var u=a.indexOf("?");return u<0?a:a.slice(0,u)}var Ln,En=1/0;function Rn(){return Ln==null&&(Ln=ie.OffscreenCanvas&&new ie.OffscreenCanvas(1,1).getContext("2d")&&typeof ie.createImageBitmap=="function"),Ln}var xn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(xn);var si=function(a){function u(c,m,x){m===401&&Bn(x)&&(c+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),a.call(this,c),this.status=m,this.url=x,this.name=this.constructor.name,this.message=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},u}(Error),ei=te()?function(){return self.worker&&self.worker.referrer}:function(){return(ie.location.protocol==="blob:"?ie.parent:ie).location.href},la,sa,Eo=function(a,u){if(!(/^file:/.test(c=a.url)||/^file:/.test(ei())&&!/^\w+:/.test(c))){if(ie.fetch&&ie.Request&&ie.AbortController&&ie.Request.prototype.hasOwnProperty("signal"))return function(m,x){var E,A=new ie.AbortController,I=new ie.Request(m.url,{method:m.method||"GET",body:m.body,credentials:m.credentials,headers:m.headers,referrer:ei(),signal:A.signal}),D=!1,N=!1,j=(E=I.url).indexOf("sku=")>0&&Bn(E);m.type==="json"&&I.headers.set("Accept","application/json");var X=function(R,Ce,Oe){if(!N){if(R&&R.message!=="SecurityError"&&ft(R),Ce&&Oe)return ee(Ce);var Qe=Date.now();ie.fetch(I).then(function(He){if(He.ok){var xt=j?He.clone():null;return ee(He,xt,Qe)}return x(new si(He.statusText,He.status,m.url))}).catch(function(He){He.code!==20&&x(new Error(He.message))})}},ee=function(R,Ce,Oe){(m.type==="arrayBuffer"?R.arrayBuffer():m.type==="json"?R.json():R.text()).then(function(Qe){N||(Ce&&Oe&&function(He,xt,It){if(dr(),ne){var Vt={status:xt.status,statusText:xt.statusText,headers:new ie.Headers};xt.headers.forEach(function(fr,Lr){return Vt.headers.set(Lr,fr)});var jt=H(xt.headers.get("Cache-Control")||"");jt["no-store"]||(jt["max-age"]&&Vt.headers.set("Expires",new Date(It+1e3*jt["max-age"]).toUTCString()),new Date(Vt.headers.get("Expires")).getTime()-It<42e4||function(fr,Lr){if(de===void 0)try{new Response(new ReadableStream),de=!0}catch(Gr){de=!1}de?Lr(fr.body):fr.blob().then(Lr)}(xt,function(fr){var Lr=new ie.Response(fr,Vt);dr(),ne&&ne.then(function(Gr){return Gr.put(Vr(He.url),Lr)}).catch(function(Gr){return ft(Gr.message)})}))}}(I,Ce,Oe),D=!0,x(null,Qe,R.headers.get("Cache-Control"),R.headers.get("Expires")))}).catch(function(Qe){N||x(new Error(Qe.message))})};return j?function(R,Ce){if(dr(),!ne)return Ce(null);var Oe=Vr(R.url);ne.then(function(Qe){Qe.match(Oe).then(function(He){var xt=function(It){if(!It)return!1;var Vt=new Date(It.headers.get("Expires")||0),jt=H(It.headers.get("Cache-Control")||"");return Vt>Date.now()&&!jt["no-cache"]}(He);Qe.delete(Oe),xt&&Qe.put(Oe,He.clone()),Ce(null,He,xt)}).catch(Ce)}).catch(Ce)}(I,X):X(null,null),{cancel:function(){N=!0,D||A.abort()}}}(a,u);if(te()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",a,u,void 0,!0)}var c;return function(m,x){var E=new ie.XMLHttpRequest;for(var A in E.open(m.method||"GET",m.url,!0),m.type==="arrayBuffer"&&(E.responseType="arraybuffer"),m.headers)E.setRequestHeader(A,m.headers[A]);return m.type==="json"&&(E.responseType="text",E.setRequestHeader("Accept","application/json")),E.withCredentials=m.credentials==="include",E.onerror=function(){x(new Error(E.statusText))},E.onload=function(){if((E.status>=200&&E.status<300||E.status===0)&&E.response!==null){var I=E.response;if(m.type==="json")try{I=JSON.parse(E.response)}catch(D){return x(D)}x(null,I,E.getResponseHeader("Cache-Control"),E.getResponseHeader("Expires"))}else x(new si(E.statusText,E.status,m.url))},E.send(m.body),{cancel:function(){return E.abort()}}}(a,u)},Ks=function(a,u){return Eo(Ht(a,{type:"arrayBuffer"}),u)},di=function(a,u){return Eo(Ht(a,{method:"POST"}),u)},W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";la=[],sa=0;var Q=function(a,u){if(un.supported&&(a.headers||(a.headers={}),a.headers.accept="image/webp,*/*"),sa>=mn.MAX_PARALLEL_IMAGE_REQUESTS){var c={requestParameters:a,callback:u,cancelled:!1,cancel:function(){this.cancelled=!0}};return la.push(c),c}sa++;var m=!1,x=function(){if(!m)for(m=!0,sa--;la.length&&sa0||this._oneTimeListeners&&this._oneTimeListeners[a]&&this._oneTimeListeners[a].length>0||this._eventedParent&&this._eventedParent.listens(a)},lt.prototype.setEventedParent=function(a,u){return this._eventedParent=a,this._eventedParentData=u,this};var V={$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"}}},q=function(a,u,c,m){this.message=(a?a+": ":"")+c,m&&(this.identifier=m),u!=null&&u.__line__&&(this.line=u.__line__)};function De(a){var u=a.value;return u?[new q(a.key,u,"constants have been deprecated as of v8")]:[]}function et(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m":a.itemType.kind==="value"?"array":"array<"+u+">"}return a.kind}var Xo=[nn,ar,Kr,Hr,$r,Yi,hi,Li(Qr),ci];function Ki(a,u){if(u.kind==="error")return null;if(a.kind==="array"){if(u.kind==="array"&&(u.N===0&&u.itemType.kind==="value"||!Ki(a.itemType,u.itemType))&&(typeof a.N!="number"||a.N===u.N))return null}else{if(a.kind===u.kind)return null;if(a.kind==="value"){for(var c=0,m=Xo;c255?255:I}function x(I){return m(I[I.length-1]==="%"?parseFloat(I)/100*255:parseInt(I))}function E(I){return(D=I[I.length-1]==="%"?parseFloat(I)/100:parseFloat(I))<0?0:D>1?1:D;var D}function A(I,D,N){return N<0?N+=1:N>1&&(N-=1),6*N<1?I+(D-I)*N*6:2*N<1?D:3*N<2?I+(D-I)*(2/3-N)*6:I}try{u.parseCSSColor=function(I){var D,N=I.replace(/ /g,"").toLowerCase();if(N in c)return c[N].slice();if(N[0]==="#")return N.length===4?(D=parseInt(N.substr(1),16))>=0&&D<=4095?[(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1]:null:N.length===7&&(D=parseInt(N.substr(1),16))>=0&&D<=16777215?[(16711680&D)>>16,(65280&D)>>8,255&D,1]:null;var j=N.indexOf("("),X=N.indexOf(")");if(j!==-1&&X+1===N.length){var ee=N.substr(0,j),R=N.substr(j+1,X-(j+1)).split(","),Ce=1;switch(ee){case"rgba":if(R.length!==4)return null;Ce=E(R.pop());case"rgb":return R.length!==3?null:[x(R[0]),x(R[1]),x(R[2]),Ce];case"hsla":if(R.length!==4)return null;Ce=E(R.pop());case"hsl":if(R.length!==3)return null;var Oe=(parseFloat(R[0])%360+360)%360/360,Qe=E(R[1]),He=E(R[2]),xt=He<=.5?He*(Qe+1):He+Qe-He*Qe,It=2*He-xt;return[m(255*A(It,xt,Oe+1/3)),m(255*A(It,xt,Oe)),m(255*A(It,xt,Oe-1/3)),Ce];default:return null}}return null}}catch(I){}}).parseCSSColor,Ti=function(a,u,c,m){m===void 0&&(m=1),this.r=a,this.g=u,this.b=c,this.a=m};Ti.parse=function(a){if(a){if(a instanceof Ti)return a;if(typeof a=="string"){var u=mi(a);if(u)return new Ti(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},Ti.prototype.toString=function(){var a=this.toArray(),u=a[1],c=a[2],m=a[3];return"rgba("+Math.round(a[0])+","+Math.round(u)+","+Math.round(c)+","+m+")"},Ti.prototype.toArray=function(){var a=this.a;return a===0?[0,0,0,0]:[255*this.r/a,255*this.g/a,255*this.b/a,a]},Ti.black=new Ti(0,0,0,1),Ti.white=new Ti(1,1,1,1),Ti.transparent=new Ti(0,0,0,0),Ti.red=new Ti(1,0,0,1);var Pa=function(a,u,c){this.sensitivity=a?u?"variant":"case":u?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Pa.prototype.compare=function(a,u){return this.collator.compare(a,u)},Pa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var cu=function(a,u,c,m,x){this.text=a,this.image=u,this.scale=c,this.fontStack=m,this.textColor=x},ma=function(a){this.sections=a};ma.fromString=function(a){return new ma([new cu(a,null,null,null,null)])},ma.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(a){return a.text.length!==0||a.image&&a.image.name.length!==0})},ma.factory=function(a){return a instanceof ma?a:ma.fromString(a)},ma.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(a){return a.text}).join("")},ma.prototype.serialize=function(){for(var a=["format"],u=0,c=this.sections;u=0&&a<=255&&typeof u=="number"&&u>=0&&u<=255&&typeof c=="number"&&c>=0&&c<=255?m===void 0||typeof m=="number"&&m>=0&&m<=1?null:"Invalid rgba value ["+[a,u,c,m].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof m=="number"?[a,u,c,m]:[a,u,c]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function os(a){if(a===null||typeof a=="string"||typeof a=="boolean"||typeof a=="number"||a instanceof Ti||a instanceof Pa||a instanceof ma||a instanceof Aa)return!0;if(Array.isArray(a)){for(var u=0,c=a;u2){var I=a[1];if(typeof I!="string"||!(I in So)||I==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);E=So[I],m++}else E=Qr;if(a.length>3){if(a[2]!==null&&(typeof a[2]!="number"||a[2]<0||a[2]!==Math.floor(a[2])))return u.error('The length argument to "array" must be a positive integer literal',2);A=a[2],m++}c=Li(E,A)}else c=So[x];for(var D=[];m1)&&u.push(m)}}return u.concat(this.args.map(function(x){return x.serialize()}))};var $o=function(a){this.type=Yi,this.sections=a};$o.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[1];if(!Array.isArray(c)&&typeof c=="object")return u.error("First argument must be an image or text section.");for(var m=[],x=!1,E=1;E<=a.length-1;++E){var A=a[E];if(x&&typeof A=="object"&&!Array.isArray(A)){x=!1;var I=null;if(A["font-scale"]&&!(I=u.parse(A["font-scale"],1,ar)))return null;var D=null;if(A["text-font"]&&!(D=u.parse(A["text-font"],1,Li(Kr))))return null;var N=null;if(A["text-color"]&&!(N=u.parse(A["text-color"],1,$r)))return null;var j=m[m.length-1];j.scale=I,j.font=D,j.textColor=N}else{var X=u.parse(a[E],1,Qr);if(!X)return null;var ee=X.type.kind;if(ee!=="string"&&ee!=="value"&&ee!=="null"&&ee!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");x=!0,m.push({content:X,scale:null,font:null,textColor:null})}}return new $o(m)},$o.prototype.evaluate=function(a){return new ma(this.sections.map(function(u){var c=u.content.evaluate(a);return Ta(c)===ci?new cu("",c,null,null,null):new cu(fi(c),null,u.scale?u.scale.evaluate(a):null,u.font?u.font.evaluate(a).join(","):null,u.textColor?u.textColor.evaluate(a):null)}))},$o.prototype.eachChild=function(a){for(var u=0,c=this.sections;u-1),c},Vo.prototype.eachChild=function(a){a(this.input)},Vo.prototype.outputDefined=function(){return!1},Vo.prototype.serialize=function(){return["image",this.input.serialize()]};var Ru={"to-boolean":Hr,"to-color":$r,"to-number":ar,"to-string":Kr},ss=function(a,u){this.type=a,this.args=u};ss.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[0];if((c==="to-boolean"||c==="to-string")&&a.length!==2)return u.error("Expected one argument.");for(var m=Ru[c],x=[],E=1;E4?"Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":$l(u[0],u[1],u[2],u[3])))return new Ti(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new ia(c||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}if(this.type.kind==="number"){for(var A=null,I=0,D=this.args;I=u[2]||a[1]<=u[1]||a[3]>=u[3])}function Te(a,u){var c=(180+a[0])/360,m=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a[1]*Math.PI/360)))/360,x=Math.pow(2,u.z);return[Math.round(c*x*8192),Math.round(m*x*8192)]}function ot(a,u,c){return u[1]>a[1]!=c[1]>a[1]&&a[0]<(c[0]-u[0])*(a[1]-u[1])/(c[1]-u[1])+u[0]}function nr(a,u){for(var c,m,x,E,A,I,D,N=!1,j=0,X=u.length;j0&&I<0||A<0&&I>0}function Vi(a,u,c){for(var m=0,x=c;mc[2]){var x=.5*m,E=a[0]-c[0]>x?-m:c[0]-a[0]>x?m:0;E===0&&(E=a[0]-c[2]>x?-m:c[2]-a[0]>x?m:0),a[0]+=E}yn(u,a)}function Kh(a,u,c,m){for(var x=8192*Math.pow(2,m.z),E=[8192*m.x,8192*m.y],A=[],I=0,D=a;I=0)return!1;var c=!0;return a.eachChild(function(m){c&&!Mu(m,u)&&(c=!1)}),c}jo.parse=function(a,u){if(a.length!==2)return u.error("'within' expression requires exactly one argument, but found "+(a.length-1)+" instead.");if(os(a[1])){var c=a[1];if(c.type==="FeatureCollection")for(var m=0;mu))throw new ia("Input is not a number.");E=A-1}return 0}Qu.prototype.parse=function(a,u,c,m,x){return x===void 0&&(x={}),u?this.concat(u,c,m)._parse(a,x):this._parse(a,x)},Qu.prototype._parse=function(a,u){function c(N,j,X){return X==="assert"?new ha(j,[N]):X==="coerce"?new ss(j,[N]):N}if(a!==null&&typeof a!="string"&&typeof a!="boolean"&&typeof a!="number"||(a=["literal",a]),Array.isArray(a)){if(a.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var m=a[0];if(typeof m!="string")return this.error("Expression name must be a string, but found "+typeof m+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var x=this.registry[m];if(x){var E=x.parse(a,this);if(!E)return null;if(this.expectedType){var A=this.expectedType,I=E.type;if(A.kind!=="string"&&A.kind!=="number"&&A.kind!=="boolean"&&A.kind!=="object"&&A.kind!=="array"||I.kind!=="value")if(A.kind!=="color"&&A.kind!=="formatted"&&A.kind!=="resolvedImage"||I.kind!=="value"&&I.kind!=="string"){if(this.checkSubtype(A,I))return null}else E=c(E,A,u.typeAnnotation||"coerce");else E=c(E,A,u.typeAnnotation||"assert")}if(!(E instanceof Oa)&&E.type.kind!=="resolvedImage"&&function N(j){if(j instanceof Iu)return N(j.boundExpression);if(j instanceof Qi&&j.name==="error"||j instanceof Wt||j instanceof jo)return!1;var X=j instanceof ss||j instanceof ha,ee=!0;return j.eachChild(function(R){ee=X?ee&&N(R):ee&&R instanceof Oa}),!!ee&&xl(j)&&Mu(j,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(E)){var D=new Ea;try{E=new Oa(E.type,E.evaluate(D))}catch(N){return this.error(N.message),null}}return E}return this.error('Unknown expression "'+m+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(a===void 0?"'undefined' value invalid. Use null instead.":typeof a=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof a+" instead.")},Qu.prototype.concat=function(a,u,c){var m=typeof a=="number"?this.path.concat(a):this.path,x=c?this.scope.concat(c):this.scope;return new Qu(this.registry,m,u||null,x,this.errors)},Qu.prototype.error=function(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];var m=""+this.key+u.map(function(x){return"["+x+"]"}).join("");this.errors.push(new Tr(m,a))},Qu.prototype.checkSubtype=function(a,u){var c=Ki(a,u);return c&&this.error(c),c};var Ps=function(a,u,c){this.type=a,this.input=u,this.labels=[],this.outputs=[];for(var m=0,x=c;m=A)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);var j=u.parse(I,N,x);if(!j)return null;x=x||j.type,m.push([A,j])}return new Ps(x,c,m)},Ps.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;return m>=u[x-1]?c[x-1].evaluate(a):c[Qc(u,m)].evaluate(a)},Ps.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u0&&a.push(this.labels[u]),a.push(this.outputs[u].serialize());return a};var El=Object.freeze({__proto__:null,number:Ya,color:function(a,u,c){return new Ti(Ya(a.r,u.r,c),Ya(a.g,u.g,c),Ya(a.b,u.b,c),Ya(a.a,u.a,c))},array:function(a,u,c){return a.map(function(m,x){return Ya(m,u[x],c)})}}),Ju=6/29*3*(6/29),Rf=Math.PI/180,Qh=180/Math.PI;function Mf(a){return a>.008856451679035631?Math.pow(a,1/3):a/Ju+4/29}function ph(a){return a>6/29?a*a*a:Ju*(a-4/29)}function dh(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function vh(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Jh(a){var u=vh(a.r),c=vh(a.g),m=vh(a.b),x=Mf((.4124564*u+.3575761*c+.1804375*m)/.95047),E=Mf((.2126729*u+.7151522*c+.072175*m)/1);return{l:116*E-16,a:500*(x-E),b:200*(E-Mf((.0193339*u+.119192*c+.9503041*m)/1.08883)),alpha:a.a}}function ep(a){var u=(a.l+16)/116,c=isNaN(a.a)?u:u+a.a/500,m=isNaN(a.b)?u:u-a.b/200;return u=1*ph(u),c=.95047*ph(c),m=1.08883*ph(m),new Ti(dh(3.2404542*c-1.5371385*u-.4985314*m),dh(-.969266*c+1.8760108*u+.041556*m),dh(.0556434*c-.2040259*u+1.0572252*m),a.alpha)}function Zp(a,u,c){var m=u-a;return a+c*(m>180||m<-180?m-360*Math.round(m/360):m)}var Jc={forward:Jh,reverse:ep,interpolate:function(a,u,c){return{l:Ya(a.l,u.l,c),a:Ya(a.a,u.a,c),b:Ya(a.b,u.b,c),alpha:Ya(a.alpha,u.alpha,c)}}},Pu={forward:function(a){var u=Jh(a),c=u.l,m=u.a,x=u.b,E=Math.atan2(x,m)*Qh;return{h:E<0?E+360:E,c:Math.sqrt(m*m+x*x),l:c,alpha:a.a}},reverse:function(a){var u=a.h*Rf,c=a.c;return ep({l:a.l,a:Math.cos(u)*c,b:Math.sin(u)*c,alpha:a.alpha})},interpolate:function(a,u,c){return{h:Zp(a.h,u.h,c),c:Ya(a.c,u.c,c),l:Ya(a.l,u.l,c),alpha:Ya(a.alpha,u.alpha,c)}}},tp=Object.freeze({__proto__:null,lab:Jc,hcl:Pu}),Ho=function(a,u,c,m,x){this.type=a,this.operator=u,this.interpolation=c,this.input=m,this.labels=[],this.outputs=[];for(var E=0,A=x;E1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);m={name:"cubic-bezier",controlPoints:I}}if(a.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if((a.length-1)%2!=0)return u.error("Expected an even number of arguments.");if(!(x=u.parse(x,2,ar)))return null;var D=[],N=null;c==="interpolate-hcl"||c==="interpolate-lab"?N=$r:u.expectedType&&u.expectedType.kind!=="value"&&(N=u.expectedType);for(var j=0;j=X)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',R);var Oe=u.parse(ee,Ce,N);if(!Oe)return null;N=N||Oe.type,D.push([X,Oe])}return N.kind==="number"||N.kind==="color"||N.kind==="array"&&N.itemType.kind==="number"&&typeof N.N=="number"?new Ho(N,c,m,x,D):u.error("Type "+Si(N)+" is not interpolatable.")},Ho.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;if(m>=u[x-1])return c[x-1].evaluate(a);var E=Qc(u,m),A=Ho.interpolationFactor(this.interpolation,m,u[E],u[E+1]),I=c[E].evaluate(a),D=c[E+1].evaluate(a);return this.operator==="interpolate"?El[this.type.kind.toLowerCase()](I,D,A):this.operator==="interpolate-hcl"?Pu.reverse(Pu.interpolate(Pu.forward(I),Pu.forward(D),A)):Jc.reverse(Jc.interpolate(Jc.forward(I),Jc.forward(D),A))},Ho.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u=c.length)throw new ia("Array index out of bounds: "+u+" > "+(c.length-1)+".");if(u!==Math.floor(u))throw new ia("Array index must be an integer, but found "+u+" instead.");return c[u]},Al.prototype.eachChild=function(a){a(this.index),a(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ii=function(a,u){this.type=Hr,this.needle=a,this.haystack=u};ii.parse=function(a,u){if(a.length!==3)return u.error("Expected 2 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,Qr);return c&&m?Ia(c.type,[Hr,Kr,ar,nn,Qr])?new ii(c,m):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Si(c.type)+" instead"):null},ii.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!c)return!1;if(!Ai(u,["boolean","string","number","null"]))throw new ia("Expected first argument to be of type boolean, string, number or null, but found "+Si(Ta(u))+" instead.");if(!Ai(c,["string","array"]))throw new ia("Expected second argument to be of type array or string, but found "+Si(Ta(c))+" instead.");return c.indexOf(u)>=0},ii.prototype.eachChild=function(a){a(this.needle),a(this.haystack)},ii.prototype.outputDefined=function(){return!0},ii.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var el=function(a,u,c){this.type=ar,this.needle=a,this.haystack=u,this.fromIndex=c};el.parse=function(a,u){if(a.length<=2||a.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,Qr);if(!c||!m)return null;if(!Ia(c.type,[Hr,Kr,ar,nn,Qr]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Si(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,ar);return x?new el(c,m,x):null}return new el(c,m)},el.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!Ai(u,["boolean","string","number","null"]))throw new ia("Expected first argument to be of type boolean, string, number or null, but found "+Si(Ta(u))+" instead.");if(!Ai(c,["string","array"]))throw new ia("Expected second argument to be of type array or string, but found "+Si(Ta(c))+" instead.");if(this.fromIndex){var m=this.fromIndex.evaluate(a);return c.indexOf(u,m)}return c.indexOf(u)},el.prototype.eachChild=function(a){a(this.needle),a(this.haystack),this.fromIndex&&a(this.fromIndex)},el.prototype.outputDefined=function(){return!1},el.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var a=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),a]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Os=function(a,u,c,m,x,E){this.inputType=a,this.type=u,this.input=c,this.cases=m,this.outputs=x,this.otherwise=E};Os.parse=function(a,u){if(a.length<5)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if(a.length%2!=1)return u.error("Expected an even number of arguments.");var c,m;u.expectedType&&u.expectedType.kind!=="value"&&(m=u.expectedType);for(var x={},E=[],A=2;ANumber.MAX_SAFE_INTEGER)return N.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ee=="number"&&Math.floor(ee)!==ee)return N.error("Numeric branch labels must be integer values.");if(c){if(N.checkSubtype(c,Ta(ee)))return null}else c=Ta(ee);if(x[String(ee)]!==void 0)return N.error("Branch labels must be unique.");x[String(ee)]=E.length}var R=u.parse(D,A,m);if(!R)return null;m=m||R.type,E.push(R)}var Ce=u.parse(a[1],1,Qr);if(!Ce)return null;var Oe=u.parse(a[a.length-1],a.length-1,m);return Oe?Ce.type.kind!=="value"&&u.concat(1).checkSubtype(c,Ce.type)?null:new Os(c,m,Ce,x,E,Oe):null},Os.prototype.evaluate=function(a){var u=this.input.evaluate(a);return(Ta(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise).evaluate(a)},Os.prototype.eachChild=function(a){a(this.input),this.outputs.forEach(a),a(this.otherwise)},Os.prototype.outputDefined=function(){return this.outputs.every(function(a){return a.outputDefined()})&&this.otherwise.outputDefined()},Os.prototype.serialize=function(){for(var a=this,u=["match",this.input.serialize()],c=[],m={},x=0,E=Object.keys(this.cases).sort();x=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,ar);if(!c||!m)return null;if(!Ia(c.type,[Li(Qr),Kr,Qr]))return u.error("Expected first argument to be of type array or string, but found "+Si(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,ar);return x?new tl(c.type,c,m,x):null}return new tl(c.type,c,m)},tl.prototype.evaluate=function(a){var u=this.input.evaluate(a),c=this.beginIndex.evaluate(a);if(!Ai(u,["string","array"]))throw new ia("Expected first argument to be of type array or string, but found "+Si(Ta(u))+" instead.");if(this.endIndex){var m=this.endIndex.evaluate(a);return u.slice(c,m)}return u.slice(c)},tl.prototype.eachChild=function(a){a(this.input),a(this.beginIndex),this.endIndex&&a(this.endIndex)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var a=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),a]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var fu=Ci("==",function(a,u,c){return u===c},Ji),Du=Ci("!=",function(a,u,c){return u!==c},function(a,u,c,m){return!Ji(0,u,c,m)}),mh=Ci("<",function(a,u,c){return u",function(a,u,c){return u>c},function(a,u,c,m){return m.compare(u,c)>0}),ef=Ci("<=",function(a,u,c){return u<=c},function(a,u,c,m){return m.compare(u,c)<=0}),Vp=Ci(">=",function(a,u,c){return u>=c},function(a,u,c,m){return m.compare(u,c)>=0}),xs=function(a,u,c,m,x){this.type=Kr,this.number=a,this.locale=u,this.currency=c,this.minFractionDigits=m,this.maxFractionDigits=x};xs.parse=function(a,u){if(a.length!==3)return u.error("Expected two arguments.");var c=u.parse(a[1],1,ar);if(!c)return null;var m=a[2];if(typeof m!="object"||Array.isArray(m))return u.error("NumberFormat options argument must be an object.");var x=null;if(m.locale&&!(x=u.parse(m.locale,1,Kr)))return null;var E=null;if(m.currency&&!(E=u.parse(m.currency,1,Kr)))return null;var A=null;if(m["min-fraction-digits"]&&!(A=u.parse(m["min-fraction-digits"],1,ar)))return null;var I=null;return m["max-fraction-digits"]&&!(I=u.parse(m["max-fraction-digits"],1,ar))?null:new xs(c,x,E,A,I)},xs.prototype.evaluate=function(a){return new Intl.NumberFormat(this.locale?this.locale.evaluate(a):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(a):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(a):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(a):void 0}).format(this.number.evaluate(a))},xs.prototype.eachChild=function(a){a(this.number),this.locale&&a(this.locale),this.currency&&a(this.currency),this.minFractionDigits&&a(this.minFractionDigits),this.maxFractionDigits&&a(this.maxFractionDigits)},xs.prototype.outputDefined=function(){return!1},xs.prototype.serialize=function(){var a={};return this.locale&&(a.locale=this.locale.serialize()),this.currency&&(a.currency=this.currency.serialize()),this.minFractionDigits&&(a["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(a["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),a]};var ku=function(a){this.type=ar,this.input=a};ku.parse=function(a,u){if(a.length!==2)return u.error("Expected 1 argument, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Si(c.type)+" instead."):new ku(c):null},ku.prototype.evaluate=function(a){var u=this.input.evaluate(a);if(typeof u=="string"||Array.isArray(u))return u.length;throw new ia("Expected value to be of type string or array, but found "+Si(Ta(u))+" instead.")},ku.prototype.eachChild=function(a){a(this.input)},ku.prototype.outputDefined=function(){return!1},ku.prototype.serialize=function(){var a=["length"];return this.eachChild(function(u){a.push(u.serialize())}),a};var Fu={"==":fu,"!=":Du,">":ja,"<":mh,">=":Vp,"<=":ef,array:ha,at:Al,boolean:ha,case:Ou,coalesce:Sl,collator:Wt,format:$o,image:Vo,in:ii,"index-of":el,interpolate:Ho,"interpolate-hcl":Ho,"interpolate-lab":Ho,length:ku,let:Xs,literal:Oa,match:Os,number:ha,"number-format":xs,object:ha,slice:tl,step:Ps,string:ha,"to-boolean":ss,"to-color":ss,"to-number":ss,"to-string":ss,var:Iu,within:jo};function ql(a,u){var c=u[0],m=u[1],x=u[2],E=u[3];c=c.evaluate(a),m=m.evaluate(a),x=x.evaluate(a);var A=E?E.evaluate(a):1,I=$l(c,m,x,A);if(I)throw new ia(I);return new Ti(c/255*A,m/255*A,x/255*A,A)}function If(a,u){return a in u}function wa(a,u){var c=u[a];return c===void 0?null:c}function Qs(a){return{type:a}}function Rc(a){return{result:"success",value:a}}function Kl(a){return{result:"error",value:a}}function rl(a){return a["property-type"]==="data-driven"||a["property-type"]==="cross-faded-data-driven"}function gh(a){return!!a.expression&&a.expression.parameters.indexOf("zoom")>-1}function Ql(a){return!!a.expression&&a.expression.interpolated}function ca(a){return a instanceof Number?"number":a instanceof String?"string":a instanceof Boolean?"boolean":Array.isArray(a)?"array":a===null?"null":typeof a}function tf(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function np(a){return a}function Tl(a,u,c){return a!==void 0?a:u!==void 0?u:c!==void 0?c:void 0}function Jl(a,u,c,m,x){return Tl(typeof c===x?m[c]:void 0,a.default,u.default)}function _h(a,u,c){if(ca(c)!=="number")return Tl(a.default,u.default);var m=a.stops.length;if(m===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[m-1][0])return a.stops[m-1][1];var x=Qc(a.stops.map(function(E){return E[0]}),c);return a.stops[x][1]}function Pf(a,u,c){var m=a.base!==void 0?a.base:1;if(ca(c)!=="number")return Tl(a.default,u.default);var x=a.stops.length;if(x===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[x-1][0])return a.stops[x-1][1];var E=Qc(a.stops.map(function(X){return X[0]}),c),A=function(X,ee,R,Ce){var Oe=Ce-R,Qe=X-R;return Oe===0?0:ee===1?Qe/Oe:(Math.pow(ee,Qe)-1)/(Math.pow(ee,Oe)-1)}(c,m,a.stops[E][0],a.stops[E+1][0]),I=a.stops[E][1],D=a.stops[E+1][1],N=El[u.type]||np;if(a.colorSpace&&a.colorSpace!=="rgb"){var j=tp[a.colorSpace];N=function(X,ee){return j.reverse(j.interpolate(j.forward(X),j.forward(ee),A))}}return typeof I.evaluate=="function"?{evaluate:function(){for(var X=[],ee=arguments.length;ee--;)X[ee]=arguments[ee];var R=I.evaluate.apply(void 0,X),Ce=D.evaluate.apply(void 0,X);if(R!==void 0&&Ce!==void 0)return N(R,Ce,A)}}:N(I,D,A)}function wl(a,u,c){return u.type==="color"?c=Ti.parse(c):u.type==="formatted"?c=ma.fromString(c.toString()):u.type==="resolvedImage"?c=Aa.fromString(c.toString()):ca(c)===u.type||u.type==="enum"&&u.values[c]||(c=void 0),Tl(c,a.default,u.default)}Qi.register(Fu,{error:[{kind:"error"},[Kr],function(a,u){throw new ia(u[0].evaluate(a))}],typeof:[Kr,[Qr],function(a,u){return Si(Ta(u[0].evaluate(a)))}],"to-rgba":[Li(ar,4),[$r],function(a,u){return u[0].evaluate(a).toArray()}],rgb:[$r,[ar,ar,ar],ql],rgba:[$r,[ar,ar,ar,ar],ql],has:{type:Hr,overloads:[[[Kr],function(a,u){return If(u[0].evaluate(a),a.properties())}],[[Kr,hi],function(a,u){var c=u[1];return If(u[0].evaluate(a),c.evaluate(a))}]]},get:{type:Qr,overloads:[[[Kr],function(a,u){return wa(u[0].evaluate(a),a.properties())}],[[Kr,hi],function(a,u){var c=u[1];return wa(u[0].evaluate(a),c.evaluate(a))}]]},"feature-state":[Qr,[Kr],function(a,u){return wa(u[0].evaluate(a),a.featureState||{})}],properties:[hi,[],function(a){return a.properties()}],"geometry-type":[Kr,[],function(a){return a.geometryType()}],id:[Qr,[],function(a){return a.id()}],zoom:[ar,[],function(a){return a.globals.zoom}],"heatmap-density":[ar,[],function(a){return a.globals.heatmapDensity||0}],"line-progress":[ar,[],function(a){return a.globals.lineProgress||0}],accumulated:[Qr,[],function(a){return a.globals.accumulated===void 0?null:a.globals.accumulated}],"+":[ar,Qs(ar),function(a,u){for(var c=0,m=0,x=u;m":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>E}],"filter-id->":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>x}],"filter-<=":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x<=E}],"filter-id-<=":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m<=x}],"filter->=":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>=E}],"filter-id->=":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>=x}],"filter-has":[Hr,[Qr],function(a,u){return u[0].value in a.properties()}],"filter-has-id":[Hr,[],function(a){return a.id()!==null&&a.id()!==void 0}],"filter-type-in":[Hr,[Li(Kr)],function(a,u){return u[0].value.indexOf(a.geometryType())>=0}],"filter-id-in":[Hr,[Li(Qr)],function(a,u){return u[0].value.indexOf(a.id())>=0}],"filter-in-small":[Hr,[Kr,Li(Qr)],function(a,u){var c=u[0];return u[1].value.indexOf(a.properties()[c.value])>=0}],"filter-in-large":[Hr,[Kr,Li(Qr)],function(a,u){var c=u[0],m=u[1];return function(x,E,A,I){for(;A<=I;){var D=A+I>>1;if(E[D]===x)return!0;E[D]>x?I=D-1:A=D+1}return!1}(a.properties()[c.value],m.value,0,m.value.length-1)}],all:{type:Hr,overloads:[[[Hr,Hr],function(a,u){var c=u[1];return u[0].evaluate(a)&&c.evaluate(a)}],[Qs(Hr),function(a,u){for(var c=0,m=u;c0&&typeof a[0]=="string"&&a[0]in Fu}function rf(a,u){var c=new Qu(Fu,[],u?function(x){var E={color:$r,string:Kr,number:ar,enum:Kr,boolean:Hr,formatted:Yi,resolvedImage:ci};return x.type==="array"?Li(E[x.value]||Qr,x.length):E[x.type]}(u):void 0),m=c.parse(a,void 0,void 0,void 0,u&&u.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?Rc(new hu(m,u)):Kl(c.errors)}hu.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._evaluator.globals=a,this._evaluator.feature=u,this._evaluator.featureState=c,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E,this.expression.evaluate(this._evaluator)},hu.prototype.evaluate=function(a,u,c,m,x,E){this._evaluator.globals=a,this._evaluator.feature=u||null,this._evaluator.featureState=c||null,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E||null;try{var A=this.expression.evaluate(this._evaluator);if(A==null||typeof A=="number"&&A!=A)return this._defaultValue;if(this._enumValues&&!(A in this._enumValues))throw new ia("Expected value to be one of "+Object.keys(this._enumValues).map(function(I){return JSON.stringify(I)}).join(", ")+", but found "+JSON.stringify(A)+" instead.");return A}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console!="undefined"&&console.warn(I.message)),this._defaultValue}};var ec=function(a,u){this.kind=a,this._styleExpression=u,this.isStateDependent=a!=="constant"&&!bl(u.expression)};ec.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._styleExpression.evaluateWithoutErrorHandling(a,u,c,m,x,E)},ec.prototype.evaluate=function(a,u,c,m,x,E){return this._styleExpression.evaluate(a,u,c,m,x,E)};var tc=function(a,u,c,m){this.kind=a,this.zoomStops=c,this._styleExpression=u,this.isStateDependent=a!=="camera"&&!bl(u.expression),this.interpolationType=m};function ip(a,u){if((a=rf(a,u)).result==="error")return a;var c=a.value.expression,m=xl(c);if(!m&&!rl(u))return Kl([new Tr("","data expressions not supported")]);var x=Mu(c,["zoom"]);if(!x&&!gh(u))return Kl([new Tr("","zoom expressions not supported")]);var E=function A(I){var D=null;if(I instanceof Xs)D=A(I.result);else if(I instanceof Sl)for(var N=0,j=I.args;Nm.maximum?[new q(u,c,c+" is greater than the maximum value "+m.maximum)]:[]}function yh(a){var u,c,m,x=a.valueSpec,E=be(a.value.type),A={},I=E!=="categorical"&&a.value.property===void 0,D=!I,N=ca(a.value.stops)==="array"&&ca(a.value.stops[0])==="array"&&ca(a.value.stops[0][0])==="object",j=Js({key:a.key,value:a.value,valueSpec:a.styleSpec.function,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{stops:function(R){if(E==="identity")return[new q(R.key,R.value,'identity function may not have a "stops" property')];var Ce=[],Oe=R.value;return Ce=Ce.concat(nf({key:R.key,value:Oe,valueSpec:R.valueSpec,style:R.style,styleSpec:R.styleSpec,arrayElementValidator:X})),ca(Oe)==="array"&&Oe.length===0&&Ce.push(new q(R.key,Oe,"array must have at least one stop")),Ce},default:function(R){return ki({key:R.key,value:R.value,valueSpec:x,style:R.style,styleSpec:R.styleSpec})}}});return E==="identity"&&I&&j.push(new q(a.key,a.value,'missing required property "property"')),E==="identity"||a.value.stops||j.push(new q(a.key,a.value,'missing required property "stops"')),E==="exponential"&&a.valueSpec.expression&&!Ql(a.valueSpec)&&j.push(new q(a.key,a.value,"exponential functions not supported")),a.styleSpec.$version>=8&&(D&&!rl(a.valueSpec)?j.push(new q(a.key,a.value,"property functions not supported")):I&&!gh(a.valueSpec)&&j.push(new q(a.key,a.value,"zoom functions not supported"))),E!=="categorical"&&!N||a.value.property!==void 0||j.push(new q(a.key,a.value,'"property" property is required')),j;function X(R){var Ce=[],Oe=R.value,Qe=R.key;if(ca(Oe)!=="array")return[new q(Qe,Oe,"array expected, "+ca(Oe)+" found")];if(Oe.length!==2)return[new q(Qe,Oe,"array length 2 expected, length "+Oe.length+" found")];if(N){if(ca(Oe[0])!=="object")return[new q(Qe,Oe,"object expected, "+ca(Oe[0])+" found")];if(Oe[0].zoom===void 0)return[new q(Qe,Oe,"object stop key must have zoom")];if(Oe[0].value===void 0)return[new q(Qe,Oe,"object stop key must have value")];if(m&&m>be(Oe[0].zoom))return[new q(Qe,Oe[0].zoom,"stop zoom values must appear in ascending order")];be(Oe[0].zoom)!==m&&(m=be(Oe[0].zoom),c=void 0,A={}),Ce=Ce.concat(Js({key:Qe+"[0]",value:Oe[0],valueSpec:{zoom:{}},style:R.style,styleSpec:R.styleSpec,objectElementValidators:{zoom:Ic,value:ee}}))}else Ce=Ce.concat(ee({key:Qe+"[0]",value:Oe[0],valueSpec:{},style:R.style,styleSpec:R.styleSpec},Oe));return Mc(er(Oe[1]))?Ce.concat([new q(Qe+"[1]",Oe[1],"expressions are not allowed in function stops.")]):Ce.concat(ki({key:Qe+"[1]",value:Oe[1],valueSpec:x,style:R.style,styleSpec:R.styleSpec}))}function ee(R,Ce){var Oe=ca(R.value),Qe=be(R.value),He=R.value!==null?R.value:Ce;if(u){if(Oe!==u)return[new q(R.key,He,Oe+" stop domain type must match previous stop domain type "+u)]}else u=Oe;if(Oe!=="number"&&Oe!=="string"&&Oe!=="boolean")return[new q(R.key,He,"stop domain value must be a number, string, or boolean")];if(Oe!=="number"&&E!=="categorical"){var xt="number expected, "+Oe+" found";return rl(x)&&E===void 0&&(xt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new q(R.key,He,xt)]}return E!=="categorical"||Oe!=="number"||isFinite(Qe)&&Math.floor(Qe)===Qe?E!=="categorical"&&Oe==="number"&&c!==void 0&&Qe=2&&a[1]!=="$id"&&a[1]!=="$type";case"in":return a.length>=3&&(typeof a[1]!="string"||Array.isArray(a[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return a.length!==3||Array.isArray(a[1])||Array.isArray(a[2]);case"any":case"all":for(var u=0,c=a.slice(1);uu?1:0}function Of(a){if(!a)return!0;var u,c=a[0];return a.length<=1?c!=="any":c==="=="?xh(a[1],a[2],"=="):c==="!="?bh(xh(a[1],a[2],"==")):c==="<"||c===">"||c==="<="||c===">="?xh(a[1],a[2],c):c==="any"?(u=a.slice(1),["any"].concat(u.map(Of))):c==="all"?["all"].concat(a.slice(1).map(Of)):c==="none"?["all"].concat(a.slice(1).map(Of).map(bh)):c==="in"?Df(a[1],a.slice(2)):c==="!in"?bh(Df(a[1],a.slice(2))):c==="has"?ko(a[1]):c==="!has"?bh(ko(a[1])):c!=="within"||a}function xh(a,u,c){switch(a){case"$type":return["filter-type-"+c,u];case"$id":return["filter-id-"+c,u];default:return["filter-"+c,a,u]}}function Df(a,u){if(u.length===0)return!1;switch(a){case"$type":return["filter-type-in",["literal",u]];case"$id":return["filter-id-in",["literal",u]];default:return u.length>200&&!u.some(function(c){return typeof c!=typeof u[0]})?["filter-in-large",a,["literal",u.sort(Md)]]:["filter-in-small",a,["literal",u]]}}function ko(a){switch(a){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",a]}}function bh(a){return["!",a]}function ap(a){return af(er(a.value))?Cl(et({},a,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function u(c){var m=c.value,x=c.key;if(ca(m)!=="array")return[new q(x,m,"array expected, "+ca(m)+" found")];var E,A=c.styleSpec,I=[];if(m.length<1)return[new q(x,m,"filter array must have at least 1 element")];switch(I=I.concat(pu({key:x+"[0]",value:m[0],valueSpec:A.filter_operator,style:c.style,styleSpec:c.styleSpec})),be(m[0])){case"<":case"<=":case">":case">=":m.length>=2&&be(m[1])==="$type"&&I.push(new q(x,m,'"$type" cannot be use with operator "'+m[0]+'"'));case"==":case"!=":m.length!==3&&I.push(new q(x,m,'filter array for operator "'+m[0]+'" must have 3 elements'));case"in":case"!in":m.length>=2&&(E=ca(m[1]))!=="string"&&I.push(new q(x+"[1]",m[1],"string expected, "+E+" found"));for(var D=2;D=j[R+0]&&m>=j[R+1])?(A[ee]=!0,E.push(N[ee])):A[ee]=!1}}},Ha.prototype._forEachCell=function(a,u,c,m,x,E,A,I){for(var D=this._convertToCellCoord(a),N=this._convertToCellCoord(u),j=this._convertToCellCoord(c),X=this._convertToCellCoord(m),ee=D;ee<=j;ee++)for(var R=N;R<=X;R++){var Ce=this.d*R+ee;if((!I||I(this._convertFromCellCoord(ee),this._convertFromCellCoord(R),this._convertFromCellCoord(ee+1),this._convertFromCellCoord(R+1)))&&x.call(this,a,u,c,m,Ce,E,A,I))return}},Ha.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},Ha.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},Ha.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,u=3+this.cells.length+1+1,c=0,m=0;m=0)){var j=a[N];D[N]=qa[I].shallow.indexOf(N)>=0?j:us(j,u)}a instanceof Error&&(D.message=a.message)}if(D.$name)throw new Error("$name property is reserved for worker serialization logic.");return I!=="Object"&&(D.$name=I),D}throw new Error("can't serialize object of type "+typeof a)}function ga(a){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||uf(a)||rc(a)||ArrayBuffer.isView(a)||a instanceof al)return a;if(Array.isArray(a))return a.map(ga);if(typeof a=="object"){var u=a.$name||"Object",c=qa[u].klass;if(!c)throw new Error("can't deserialize unregistered class "+u);if(c.deserialize)return c.deserialize(a);for(var m=Object.create(c.prototype),x=0,E=Object.keys(a);x=0?I:ga(I)}}return m}throw new Error("can't deserialize object of type "+typeof a)}var Th=function(){this.first=!0};Th.prototype.update=function(a,u){var c=Math.floor(a);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=a,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&a<=255},Arabic:function(a){return a>=1536&&a<=1791},"Arabic Supplement":function(a){return a>=1872&&a<=1919},"Arabic Extended-A":function(a){return a>=2208&&a<=2303},"Hangul Jamo":function(a){return a>=4352&&a<=4607},"Unified Canadian Aboriginal Syllabics":function(a){return a>=5120&&a<=5759},Khmer:function(a){return a>=6016&&a<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(a){return a>=6320&&a<=6399},"General Punctuation":function(a){return a>=8192&&a<=8303},"Letterlike Symbols":function(a){return a>=8448&&a<=8527},"Number Forms":function(a){return a>=8528&&a<=8591},"Miscellaneous Technical":function(a){return a>=8960&&a<=9215},"Control Pictures":function(a){return a>=9216&&a<=9279},"Optical Character Recognition":function(a){return a>=9280&&a<=9311},"Enclosed Alphanumerics":function(a){return a>=9312&&a<=9471},"Geometric Shapes":function(a){return a>=9632&&a<=9727},"Miscellaneous Symbols":function(a){return a>=9728&&a<=9983},"Miscellaneous Symbols and Arrows":function(a){return a>=11008&&a<=11263},"CJK Radicals Supplement":function(a){return a>=11904&&a<=12031},"Kangxi Radicals":function(a){return a>=12032&&a<=12255},"Ideographic Description Characters":function(a){return a>=12272&&a<=12287},"CJK Symbols and Punctuation":function(a){return a>=12288&&a<=12351},Hiragana:function(a){return a>=12352&&a<=12447},Katakana:function(a){return a>=12448&&a<=12543},Bopomofo:function(a){return a>=12544&&a<=12591},"Hangul Compatibility Jamo":function(a){return a>=12592&&a<=12687},Kanbun:function(a){return a>=12688&&a<=12703},"Bopomofo Extended":function(a){return a>=12704&&a<=12735},"CJK Strokes":function(a){return a>=12736&&a<=12783},"Katakana Phonetic Extensions":function(a){return a>=12784&&a<=12799},"Enclosed CJK Letters and Months":function(a){return a>=12800&&a<=13055},"CJK Compatibility":function(a){return a>=13056&&a<=13311},"CJK Unified Ideographs Extension A":function(a){return a>=13312&&a<=19903},"Yijing Hexagram Symbols":function(a){return a>=19904&&a<=19967},"CJK Unified Ideographs":function(a){return a>=19968&&a<=40959},"Yi Syllables":function(a){return a>=40960&&a<=42127},"Yi Radicals":function(a){return a>=42128&&a<=42191},"Hangul Jamo Extended-A":function(a){return a>=43360&&a<=43391},"Hangul Syllables":function(a){return a>=44032&&a<=55215},"Hangul Jamo Extended-B":function(a){return a>=55216&&a<=55295},"Private Use Area":function(a){return a>=57344&&a<=63743},"CJK Compatibility Ideographs":function(a){return a>=63744&&a<=64255},"Arabic Presentation Forms-A":function(a){return a>=64336&&a<=65023},"Vertical Forms":function(a){return a>=65040&&a<=65055},"CJK Compatibility Forms":function(a){return a>=65072&&a<=65103},"Small Form Variants":function(a){return a>=65104&&a<=65135},"Arabic Presentation Forms-B":function(a){return a>=65136&&a<=65279},"Halfwidth and Fullwidth Forms":function(a){return a>=65280&&a<=65519}};function ol(a){for(var u=0,c=a;u=65097&&a<=65103)||Yr["CJK Compatibility Ideographs"](a)||Yr["CJK Compatibility"](a)||Yr["CJK Radicals Supplement"](a)||Yr["CJK Strokes"](a)||!(!Yr["CJK Symbols and Punctuation"](a)||a>=12296&&a<=12305||a>=12308&&a<=12319||a===12336)||Yr["CJK Unified Ideographs Extension A"](a)||Yr["CJK Unified Ideographs"](a)||Yr["Enclosed CJK Letters and Months"](a)||Yr["Hangul Compatibility Jamo"](a)||Yr["Hangul Jamo Extended-A"](a)||Yr["Hangul Jamo Extended-B"](a)||Yr["Hangul Jamo"](a)||Yr["Hangul Syllables"](a)||Yr.Hiragana(a)||Yr["Ideographic Description Characters"](a)||Yr.Kanbun(a)||Yr["Kangxi Radicals"](a)||Yr["Katakana Phonetic Extensions"](a)||Yr.Katakana(a)&&a!==12540||!(!Yr["Halfwidth and Fullwidth Forms"](a)||a===65288||a===65289||a===65293||a>=65306&&a<=65310||a===65339||a===65341||a===65343||a>=65371&&a<=65503||a===65507||a>=65512&&a<=65519)||!(!Yr["Small Form Variants"](a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||Yr["Unified Canadian Aboriginal Syllabics"](a)||Yr["Unified Canadian Aboriginal Syllabics Extended"](a)||Yr["Vertical Forms"](a)||Yr["Yijing Hexagram Symbols"](a)||Yr["Yi Syllables"](a)||Yr["Yi Radicals"](a))))}function wh(a){return!(Dc(a)||function(u){return!!(Yr["Latin-1 Supplement"](u)&&(u===167||u===169||u===174||u===177||u===188||u===189||u===190||u===215||u===247)||Yr["General Punctuation"](u)&&(u===8214||u===8224||u===8225||u===8240||u===8241||u===8251||u===8252||u===8258||u===8263||u===8264||u===8265||u===8273)||Yr["Letterlike Symbols"](u)||Yr["Number Forms"](u)||Yr["Miscellaneous Technical"](u)&&(u>=8960&&u<=8967||u>=8972&&u<=8991||u>=8996&&u<=9e3||u===9003||u>=9085&&u<=9114||u>=9150&&u<=9165||u===9167||u>=9169&&u<=9179||u>=9186&&u<=9215)||Yr["Control Pictures"](u)&&u!==9251||Yr["Optical Character Recognition"](u)||Yr["Enclosed Alphanumerics"](u)||Yr["Geometric Shapes"](u)||Yr["Miscellaneous Symbols"](u)&&!(u>=9754&&u<=9759)||Yr["Miscellaneous Symbols and Arrows"](u)&&(u>=11026&&u<=11055||u>=11088&&u<=11097||u>=11192&&u<=11243)||Yr["CJK Symbols and Punctuation"](u)||Yr.Katakana(u)||Yr["Private Use Area"](u)||Yr["CJK Compatibility Forms"](u)||Yr["Small Form Variants"](u)||Yr["Halfwidth and Fullwidth Forms"](u)||u===8734||u===8756||u===8757||u>=9984&&u<=10087||u>=10102&&u<=10131||u===65532||u===65533)}(a))}function eu(a){return a>=1424&&a<=2303||Yr["Arabic Presentation Forms-A"](a)||Yr["Arabic Presentation Forms-B"](a)}function Fs(a,u){return!(!u&&eu(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||Yr.Khmer(a))}function Nf(a){for(var u=0,c=a;u-1&&(Yo="error"),Uf&&Uf(a)};function Il(){lf.fire(new Re("pluginStateChange",{pluginStatus:Yo,pluginURL:Lu}))}var lf=new lt,up=function(){return Yo},Ct=function(){if(Yo!=="deferred"||!Lu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yo="loading",Il(),Lu&&Ks({url:Lu},function(a){a?sp(a):(Yo="loaded",Il())})},Ie={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Yo==="loaded"||Ie.applyArabicShaping!=null},isLoading:function(){return Yo==="loading"},setState:function(a){Yo=a.pluginStatus,Lu=a.pluginURL},isParsed:function(){return Ie.applyArabicShaping!=null&&Ie.processBidirectionalText!=null&&Ie.processStyledBidirectionalText!=null},getPluginURL:function(){return Lu}},B=function(a,u){this.zoom=a,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Th,this.transition={})};B.prototype.isSupportedScript=function(a){return function(u,c){for(var m=0,x=u;mthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*c}:{fromScale:.5,toScale:1,t:1-(1-c)*u}};var Ys=function(a,u){this.property=a,this.value=u,this.expression=function(c,m){if(tf(c))return new nl(c,m);if(Mc(c)){var x=ip(c,m);if(x.result==="error")throw new Error(x.value.map(function(A){return A.key+": "+A.message}).join(", "));return x.value}var E=c;return typeof c=="string"&&m.type==="color"&&(E=Ti.parse(c)),{kind:"constant",evaluate:function(){return E}}}(u===void 0?a.specification.default:u,a.specification)};Ys.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ys.prototype.possiblyEvaluate=function(a,u,c){return this.property.possiblyEvaluate(this,a,u,c)};var me=function(a){this.property=a,this.value=new Ys(a,void 0)};me.prototype.transitioned=function(a,u){return new no(this.property,this.value,u,Ht({},a.transition,this.transition),a.now)},me.prototype.untransitioned=function(){return new no(this.property,this.value,null,{},0)};var Bo=function(a){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues)};Bo.prototype.getValue=function(a){return nt(this._values[a].value.value)},Bo.prototype.setValue=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new me(this._values[a].property)),this._values[a].value=new Ys(this._values[a].property,u===null?void 0:nt(u))},Bo.prototype.getTransition=function(a){return nt(this._values[a].transition)},Bo.prototype.setTransition=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new me(this._values[a].property)),this._values[a].transition=nt(u)||void 0},Bo.prototype.serialize=function(){for(var a={},u=0,c=Object.keys(this._values);uthis.end)return this.prior=null,x;if(this.value.isDataDriven())return this.prior=null,x;if(m=1)return 1;var D=I*I,N=D*I;return 4*(I<.5?N:3*(I-D)+N-.75)}(A))}return x};var vu=function(a){this._properties=a,this._values=Object.create(a.defaultTransitioningPropertyValues)};vu.prototype.possiblyEvaluate=function(a,u,c){for(var m=new nc(this._properties),x=0,E=Object.keys(this._values);xE.zoomHistory.lastIntegerZoom?{from:c,to:m}:{from:x,to:m}},u.prototype.interpolate=function(c){return c},u}(gn),qo=function(a){this.specification=a};qo.prototype.possiblyEvaluate=function(a,u,c,m){if(a.value!==void 0){if(a.expression.kind==="constant"){var x=a.expression.evaluate(u,null,{},c,m);return this._calculate(x,x,x,u)}return this._calculate(a.expression.evaluate(new B(Math.floor(u.zoom-1),u)),a.expression.evaluate(new B(Math.floor(u.zoom),u)),a.expression.evaluate(new B(Math.floor(u.zoom+1),u)),u)}},qo.prototype._calculate=function(a,u,c,m){return m.zoom>m.zoomHistory.lastIntegerZoom?{from:a,to:u}:{from:c,to:u}},qo.prototype.interpolate=function(a){return a};var mu=function(a){this.specification=a};mu.prototype.possiblyEvaluate=function(a,u,c,m){return!!a.expression.evaluate(u,null,{},c,m)},mu.prototype.interpolate=function(){return!1};var ka=function(a){for(var u in this.properties=a,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],a){var c=a[u];c.specification.overridable&&this.overridableProperties.push(u);var m=this.defaultPropertyValues[u]=new Ys(c,void 0),x=this.defaultTransitionablePropertyValues[u]=new me(c);this.defaultTransitioningPropertyValues[u]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=m.possiblyEvaluate({})}};vn("DataDrivenProperty",gn),vn("DataConstantProperty",On),vn("CrossFadedDataDrivenProperty",Bs),vn("CrossFadedProperty",qo),vn("ColorRampProperty",mu);var Ls=function(a){function u(c,m){if(a.call(this),this.id=c.id,this.type=c.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},c.type!=="custom"&&(this.metadata=(c=c).metadata,this.minzoom=c.minzoom,this.maxzoom=c.maxzoom,c.type!=="background"&&(this.source=c.source,this.sourceLayer=c["source-layer"],this.filter=c.filter),m.layout&&(this._unevaluatedLayout=new bs(m.layout)),m.paint)){for(var x in this._transitionablePaint=new Bo(m.paint),c.paint)this.setPaintProperty(x,c.paint[x],{validate:!1});for(var E in c.layout)this.setLayoutProperty(E,c.layout[E],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new nc(m.paint)}}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},u.prototype.getLayoutProperty=function(c){return c==="visibility"?this.visibility:this._unevaluatedLayout.getValue(c)},u.prototype.setLayoutProperty=function(c,m,x){x===void 0&&(x={}),m!=null&&this._validate(Lf,"layers."+this.id+".layout."+c,c,m,x)||(c!=="visibility"?this._unevaluatedLayout.setValue(c,m):this.visibility=m)},u.prototype.getPaintProperty=function(c){return hr(c,"-transition")?this._transitionablePaint.getTransition(c.slice(0,-11)):this._transitionablePaint.getValue(c)},u.prototype.setPaintProperty=function(c,m,x){if(x===void 0&&(x={}),m!=null&&this._validate(Sh,"layers."+this.id+".paint."+c,c,m,x))return!1;if(hr(c,"-transition"))return this._transitionablePaint.setTransition(c.slice(0,-11),m||void 0),!1;var E=this._transitionablePaint._values[c],A=E.property.specification["property-type"]==="cross-faded-data-driven",I=E.value.isDataDriven(),D=E.value;this._transitionablePaint.setValue(c,m),this._handleSpecialPaintPropertyUpdate(c);var N=this._transitionablePaint._values[c].value;return N.isDataDriven()||I||A||this._handleOverridablePaintPropertyUpdate(c,D,N)},u.prototype._handleSpecialPaintPropertyUpdate=function(c){},u.prototype._handleOverridablePaintPropertyUpdate=function(c,m,x){return!1},u.prototype.isHidden=function(c){return!!(this.minzoom&&c=this.maxzoom)||this.visibility==="none"},u.prototype.updateTransitions=function(c){this._transitioningPaint=this._transitionablePaint.transitioned(c,this._transitioningPaint)},u.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},u.prototype.recalculate=function(c,m){c.getCrossfadeParameters&&(this._crossfadeParameters=c.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(c,void 0,m)),this.paint=this._transitioningPaint.possiblyEvaluate(c,void 0,m)},u.prototype.serialize=function(){var c={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&&(c.layout=c.layout||{},c.layout.visibility=this.visibility),Et(c,function(m,x){return!(m===void 0||x==="layout"&&!Object.keys(m).length||x==="paint"&&!Object.keys(m).length)})},u.prototype._validate=function(c,m,x,E,A){return A===void 0&&(A={}),(!A||A.validate!==!1)&&Ml(this,c.call(sf,{key:m,layerType:this.type,objectKey:x,value:E,styleSpec:V,style:{glyphs:!0,sprite:!0}}))},u.prototype.is3D=function(){return!1},u.prototype.isTileClipped=function(){return!1},u.prototype.hasOffscreenPass=function(){return!1},u.prototype.resize=function(){},u.prototype.isStateDependent=function(){for(var c in this.paint._values){var m=this.paint.get(c);if(m instanceof Da&&rl(m.property.specification)&&(m.value.kind==="source"||m.value.kind==="composite")&&m.value.isStateDependent)return!0}return!1},u}(lt),qs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},kc=function(a,u){this._structArray=a,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function To(a,u){u===void 0&&(u=1);var c=0,m=0;return{members:a.map(function(x){var E=qs[x.type].BYTES_PER_ELEMENT,A=c=Ch(c,Math.max(u,E)),I=x.components||1;return m=Math.max(m,E),c+=E*I,{name:x.name,type:x.type,components:I,offset:A}}),size:Ch(c,Math.max(m,u)),alignment:u}}function Ch(a,u){return Math.ceil(a/u)*u}ea.serialize=function(a,u){return a._trim(),u&&(a.isTransferred=!0,u.push(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}},ea.deserialize=function(a){var u=Object.create(this.prototype);return u.arrayBuffer=a.arrayBuffer,u.length=a.length,u.capacity=a.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ea.prototype.clear=function(){this.length=0},ea.prototype.resize=function(a){this.reserve(a),this.length=a},ea.prototype.reserve=function(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Pl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.int16[E+0]=m,this.int16[E+1]=x,c},u}(ea);Pl.prototype.bytesPerElement=4,vn("StructArrayLayout2i4",Pl);var zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.int16[I+0]=m,this.int16[I+1]=x,this.int16[I+2]=E,this.int16[I+3]=A,c},u}(ea);zf.prototype.bytesPerElement=8,vn("StructArrayLayout4i8",zf);var gu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ea);gu.prototype.bytesPerElement=12,vn("StructArrayLayout2i4i12",gu);var Es=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=4*c,j=8*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.uint8[j+4]=E,this.uint8[j+5]=A,this.uint8[j+6]=I,this.uint8[j+7]=D,c},u}(ea);Es.prototype.bytesPerElement=8,vn("StructArrayLayout2i4ub8",Es);var ic=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.float32[E+0]=m,this.float32[E+1]=x,c},u}(ea);ic.prototype.bytesPerElement=8,vn("StructArrayLayout2f8",ic);var Nu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X){var ee=this.length;return this.resize(ee+1),this.emplace(ee,c,m,x,E,A,I,D,N,j,X)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee){var R=10*c;return this.uint16[R+0]=m,this.uint16[R+1]=x,this.uint16[R+2]=E,this.uint16[R+3]=A,this.uint16[R+4]=I,this.uint16[R+5]=D,this.uint16[R+6]=N,this.uint16[R+7]=j,this.uint16[R+8]=X,this.uint16[R+9]=ee,c},u}(ea);Nu.prototype.bytesPerElement=20,vn("StructArrayLayout10ui20",Nu);var Zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R){var Ce=this.length;return this.resize(Ce+1),this.emplace(Ce,c,m,x,E,A,I,D,N,j,X,ee,R)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce){var Oe=12*c;return this.int16[Oe+0]=m,this.int16[Oe+1]=x,this.int16[Oe+2]=E,this.int16[Oe+3]=A,this.uint16[Oe+4]=I,this.uint16[Oe+5]=D,this.uint16[Oe+6]=N,this.uint16[Oe+7]=j,this.int16[Oe+8]=X,this.int16[Oe+9]=ee,this.int16[Oe+10]=R,this.int16[Oe+11]=Ce,c},u}(ea);Zf.prototype.bytesPerElement=24,vn("StructArrayLayout4i4ui4i24",Zf);var Fc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.float32[A+0]=m,this.float32[A+1]=x,this.float32[A+2]=E,c},u}(ea);Fc.prototype.bytesPerElement=12,vn("StructArrayLayout3f12",Fc);var cf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint32[1*c+0]=m,c},u}(ea);cf.prototype.bytesPerElement=4,vn("StructArrayLayout1ul4",cf);var Vf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.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)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j){var X=this.length;return this.resize(X+1),this.emplace(X,c,m,x,E,A,I,D,N,j)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X){var ee=10*c,R=5*c;return this.int16[ee+0]=m,this.int16[ee+1]=x,this.int16[ee+2]=E,this.int16[ee+3]=A,this.int16[ee+4]=I,this.int16[ee+5]=D,this.uint32[R+3]=N,this.uint16[ee+8]=j,this.uint16[ee+9]=X,c},u}(ea);Vf.prototype.bytesPerElement=20,vn("StructArrayLayout6i1ul2ui20",Vf);var ac=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ea);ac.prototype.bytesPerElement=12,vn("StructArrayLayout2i2i2i12",ac);var oc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A){var I=this.length;return this.resize(I+1),this.emplace(I,c,m,x,E,A)},u.prototype.emplace=function(c,m,x,E,A,I){var D=4*c,N=8*c;return this.float32[D+0]=m,this.float32[D+1]=x,this.float32[D+2]=E,this.int16[N+6]=A,this.int16[N+7]=I,c},u}(ea);oc.prototype.bytesPerElement=16,vn("StructArrayLayout2f1f2i16",oc);var Uu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=12*c,D=3*c;return this.uint8[I+0]=m,this.uint8[I+1]=x,this.float32[D+1]=E,this.float32[D+2]=A,c},u}(ea);Uu.prototype.bytesPerElement=12,vn("StructArrayLayout2ub2f12",Uu);var zu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.uint16[A+0]=m,this.uint16[A+1]=x,this.uint16[A+2]=E,c},u}(ea);zu.prototype.bytesPerElement=6,vn("StructArrayLayout3ui6",zu);var tu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.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)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt){var It=this.length;return this.resize(It+1),this.emplace(It,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It){var Vt=24*c,jt=12*c,fr=48*c;return this.int16[Vt+0]=m,this.int16[Vt+1]=x,this.uint16[Vt+2]=E,this.uint16[Vt+3]=A,this.uint32[jt+2]=I,this.uint32[jt+3]=D,this.uint32[jt+4]=N,this.uint16[Vt+10]=j,this.uint16[Vt+11]=X,this.uint16[Vt+12]=ee,this.float32[jt+7]=R,this.float32[jt+8]=Ce,this.uint8[fr+36]=Oe,this.uint8[fr+37]=Qe,this.uint8[fr+38]=He,this.uint32[jt+10]=xt,this.int16[Vt+22]=It,c},u}(ea);tu.prototype.bytesPerElement=48,vn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tu);var jf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.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)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei){var Qn=this.length;return this.resize(Qn+1),this.emplace(Qn,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei,Qn){var Tn=34*c,Ii=17*c;return this.int16[Tn+0]=m,this.int16[Tn+1]=x,this.int16[Tn+2]=E,this.int16[Tn+3]=A,this.int16[Tn+4]=I,this.int16[Tn+5]=D,this.int16[Tn+6]=N,this.int16[Tn+7]=j,this.uint16[Tn+8]=X,this.uint16[Tn+9]=ee,this.uint16[Tn+10]=R,this.uint16[Tn+11]=Ce,this.uint16[Tn+12]=Oe,this.uint16[Tn+13]=Qe,this.uint16[Tn+14]=He,this.uint16[Tn+15]=xt,this.uint16[Tn+16]=It,this.uint16[Tn+17]=Vt,this.uint16[Tn+18]=jt,this.uint16[Tn+19]=fr,this.uint16[Tn+20]=Lr,this.uint16[Tn+21]=Gr,this.uint16[Tn+22]=Dn,this.uint32[Ii+12]=sn,this.float32[Ii+13]=zn,this.float32[Ii+14]=cn,this.float32[Ii+15]=Ei,this.float32[Ii+16]=Qn,c},u}(ea);jf.prototype.bytesPerElement=68,vn("StructArrayLayout8i15ui1ul4f68",jf);var Ol=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.float32[1*c+0]=m,c},u}(ea);Ol.prototype.bytesPerElement=4,vn("StructArrayLayout1f4",Ol);var ru=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.int16[A+0]=m,this.int16[A+1]=x,this.int16[A+2]=E,c},u}(ea);ru.prototype.bytesPerElement=6,vn("StructArrayLayout3i6",ru);var Dl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=4*c;return this.uint32[2*c+0]=m,this.uint16[A+2]=x,this.uint16[A+3]=E,c},u}(ea);Dl.prototype.bytesPerElement=8,vn("StructArrayLayout1ul2ui8",Dl);var ff=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.uint16[E+0]=m,this.uint16[E+1]=x,c},u}(ea);ff.prototype.bytesPerElement=4,vn("StructArrayLayout2ui4",ff);var Rh=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint16[1*c+0]=m,c},u}(ea);Rh.prototype.bytesPerElement=2,vn("StructArrayLayout1ui2",Rh);var Hf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.float32[I+0]=m,this.float32[I+1]=x,this.float32[I+2]=E,this.float32[I+3]=A,c},u}(ea);Hf.prototype.bytesPerElement=16,vn("StructArrayLayout4f16",Hf);var h=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={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 c.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},c.x1.get=function(){return this._structArray.int16[this._pos2+2]},c.y1.get=function(){return this._structArray.int16[this._pos2+3]},c.x2.get=function(){return this._structArray.int16[this._pos2+4]},c.y2.get=function(){return this._structArray.int16[this._pos2+5]},c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.anchorPoint.get=function(){return new ae(this.anchorPointX,this.anchorPointY)},Object.defineProperties(u.prototype,c),u}(kc);h.prototype.size=20;var d=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new h(this,c)},u}(Vf);vn("CollisionBoxArray",d);var p=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={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 c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},c.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},c.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},c.segment.get=function(){return this._structArray.uint16[this._pos2+10]},c.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},c.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},c.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},c.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},c.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},c.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},c.placedOrientation.set=function(m){this._structArray.uint8[this._pos1+37]=m},c.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},c.hidden.set=function(m){this._structArray.uint8[this._pos1+38]=m},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+10]=m},c.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(u.prototype,c),u}(kc);p.prototype.size=48;var g=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new p(this,c)},u}(tu);vn("PlacedSymbolArray",g);var S=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={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 c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},c.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},c.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},c.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},c.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},c.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},c.key.get=function(){return this._structArray.uint16[this._pos2+8]},c.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},c.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},c.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},c.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},c.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},c.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},c.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},c.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},c.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},c.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},c.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},c.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},c.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+12]=m},c.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},c.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},c.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},c.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(u.prototype,c),u}(kc);S.prototype.size=68;var w=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new S(this,c)},u}(jf);vn("SymbolInstanceArray",w);var C=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getoffsetX=function(c){return this.float32[1*c+0]},u}(Ol);vn("GlyphOffsetArray",C);var P=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getx=function(c){return this.int16[3*c+0]},u.prototype.gety=function(c){return this.int16[3*c+1]},u.prototype.gettileUnitDistanceFromAnchor=function(c){return this.int16[3*c+2]},u}(ru);vn("SymbolLineVertexArray",P);var Z=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(u.prototype,c),u}(kc);Z.prototype.size=8;var Y=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new Z(this,c)},u}(Dl);vn("FeatureIndexArray",Y);var ce=To([{name:"a_pos",components:2,type:"Int16"}],4).members,ge=function(a){a===void 0&&(a=[]),this.segments=a};function _e(a,u){return 256*(a=Dt(Math.floor(a),0,255))+Dt(Math.floor(u),0,255)}ge.prototype.prepareSegment=function(a,u,c,m){var x=this.segments[this.segments.length-1];return a>ge.MAX_VERTEX_ARRAY_LENGTH&&ft("Max vertices per segment is "+ge.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+a),(!x||x.vertexLength+a>ge.MAX_VERTEX_ARRAY_LENGTH||x.sortKey!==m)&&(x={vertexOffset:u.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},m!==void 0&&(x.sortKey=m),this.segments.push(x)),x},ge.prototype.get=function(){return this.segments},ge.prototype.destroy=function(){for(var a=0,u=this.segments;a>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295)<<13|E>>>19))+((5*(E>>>16)&65535)<<16)&4294967295))+((58964+(A>>>16)&65535)<<16);switch(N=0,m){case 3:N^=(255&u.charCodeAt(j+2))<<16;case 2:N^=(255&u.charCodeAt(j+1))<<8;case 1:E^=N=(65535&(N=(N=(65535&(N^=255&u.charCodeAt(j)))*I+(((N>>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295}return E^=u.length,E=2246822507*(65535&(E^=E>>>16))+((2246822507*(E>>>16)&65535)<<16)&4294967295,E=3266489909*(65535&(E^=E>>>13))+((3266489909*(E>>>16)&65535)<<16)&4294967295,(E^=E>>>16)>>>0}}),Xe=le(function(a){a.exports=function(u,c){for(var m,x=u.length,E=c^x,A=0;x>=4;)m=1540483477*(65535&(m=255&u.charCodeAt(A)|(255&u.charCodeAt(++A))<<8|(255&u.charCodeAt(++A))<<16|(255&u.charCodeAt(++A))<<24))+((1540483477*(m>>>16)&65535)<<16),E=1540483477*(65535&E)+((1540483477*(E>>>16)&65535)<<16)^(m=1540483477*(65535&(m^=m>>>24))+((1540483477*(m>>>16)&65535)<<16)),x-=4,++A;switch(x){case 3:E^=(255&u.charCodeAt(A+2))<<16;case 2:E^=(255&u.charCodeAt(A+1))<<8;case 1:E=1540483477*(65535&(E^=255&u.charCodeAt(A)))+((1540483477*(E>>>16)&65535)<<16)}return E=1540483477*(65535&(E^=E>>>13))+((1540483477*(E>>>16)&65535)<<16),(E^=E>>>15)>>>0}}),we=Pe,Ge=Xe;we.murmur3=Pe,we.murmur2=Ge;var ct=function(){this.ids=[],this.positions=[],this.indexed=!1};ct.prototype.add=function(a,u,c,m){this.ids.push($t(a)),this.positions.push(u,c,m)},ct.prototype.getPositions=function(a){for(var u=$t(a),c=0,m=this.ids.length-1;c>1;this.ids[x]>=u?m=x:c=x+1}for(var E=[];this.ids[c]===u;)E.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return E},ct.serialize=function(a,u){var c=new Float64Array(a.ids),m=new Uint32Array(a.positions);return function x(E,A,I,D){for(;I>1],j=I-1,X=D+1;;){do j++;while(E[j]N);if(j>=X)break;Nt(E,j,X),Nt(A,3*j,3*X),Nt(A,3*j+1,3*X+1),Nt(A,3*j+2,3*X+2)}X-IA.x+1||DA.y+1)&&ft("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return c}function Ga(a,u){return{type:a.type,id:a.id,properties:a.properties,geometry:u?Wa(a):[]}}function Ss(a,u,c,m,x){a.emplaceBack(2*u+(m+1)/2,2*c+(x+1)/2)}var ls=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new Pl,this.indexArray=new zu,this.segments=new ge,this.programConfigurations=new $n(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function Zu(a,u){for(var c=0;c1){if(sl(a,u))return!0;for(var m=0;m1?c:c.sub(u)._mult(x)._add(u))}function Vu(a,u){for(var c,m,x,E=!1,A=0;Au.y!=(x=c[D]).y>u.y&&u.x<(x.x-m.x)*(u.y-m.y)/(x.y-m.y)+m.x&&(E=!E);return E}function iu(a,u){for(var c=!1,m=0,x=a.length-1;mu.y!=A.y>u.y&&u.x<(A.x-E.x)*(u.y-E.y)/(A.y-E.y)+E.x&&(c=!c)}return c}function ju(a,u,c){var m=c[0],x=c[2];if(a.xx.x&&u.x>x.x||a.yx.y&&u.y>x.y)return!1;var E=qt(a,u,c[0]);return E!==qt(a,u,c[1])||E!==qt(a,u,c[2])||E!==qt(a,u,c[3])}function Ko(a,u,c){var m=u.paint.get(a).value;return m.kind==="constant"?m.value:c.programConfigurations.get(u.id).getMaxValue(a)}function Ka(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function As(a,u,c,m,x){if(!u[0]&&!u[1])return a;var E=ae.convert(u)._mult(x);c==="viewport"&&E._rotate(-m);for(var A=[],I=0;I=8192||j<0||j>=8192)){var X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),ee=X.vertexLength;Ss(this.layoutVertexArray,N,j,-1,-1),Ss(this.layoutVertexArray,N,j,1,-1),Ss(this.layoutVertexArray,N,j,1,1),Ss(this.layoutVertexArray,N,j,-1,1),this.indexArray.emplaceBack(ee,ee+1,ee+2),this.indexArray.emplaceBack(ee,ee+3,ee+2),X.vertexLength+=4,X.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,{},m)},vn("CircleBucket",ls,{omit:["layers"]});var au=new ka({"circle-sort-key":new gn(V.layout_circle["circle-sort-key"])}),Hu={paint:new ka({"circle-radius":new gn(V.paint_circle["circle-radius"]),"circle-color":new gn(V.paint_circle["circle-color"]),"circle-blur":new gn(V.paint_circle["circle-blur"]),"circle-opacity":new gn(V.paint_circle["circle-opacity"]),"circle-translate":new On(V.paint_circle["circle-translate"]),"circle-translate-anchor":new On(V.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new On(V.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new On(V.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new gn(V.paint_circle["circle-stroke-width"]),"circle-stroke-color":new gn(V.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new gn(V.paint_circle["circle-stroke-opacity"])}),layout:au},Ni=typeof Float32Array!="undefined"?Float32Array:Array;function po(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function io(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3],I=u[4],D=u[5],N=u[6],j=u[7],X=u[8],ee=u[9],R=u[10],Ce=u[11],Oe=u[12],Qe=u[13],He=u[14],xt=u[15],It=c[0],Vt=c[1],jt=c[2],fr=c[3];return a[0]=It*m+Vt*I+jt*X+fr*Oe,a[1]=It*x+Vt*D+jt*ee+fr*Qe,a[2]=It*E+Vt*N+jt*R+fr*He,a[3]=It*A+Vt*j+jt*Ce+fr*xt,a[4]=(It=c[4])*m+(Vt=c[5])*I+(jt=c[6])*X+(fr=c[7])*Oe,a[5]=It*x+Vt*D+jt*ee+fr*Qe,a[6]=It*E+Vt*N+jt*R+fr*He,a[7]=It*A+Vt*j+jt*Ce+fr*xt,a[8]=(It=c[8])*m+(Vt=c[9])*I+(jt=c[10])*X+(fr=c[11])*Oe,a[9]=It*x+Vt*D+jt*ee+fr*Qe,a[10]=It*E+Vt*N+jt*R+fr*He,a[11]=It*A+Vt*j+jt*Ce+fr*xt,a[12]=(It=c[12])*m+(Vt=c[13])*I+(jt=c[14])*X+(fr=c[15])*Oe,a[13]=It*x+Vt*D+jt*ee+fr*Qe,a[14]=It*E+Vt*N+jt*R+fr*He,a[15]=It*A+Vt*j+jt*Ce+fr*xt,a}Math.hypot||(Math.hypot=function(){for(var a=arguments,u=0,c=arguments.length;c--;)u+=a[c]*a[c];return Math.sqrt(u)});var ou,Bc=io;function Bl(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3];return a[0]=c[0]*m+c[4]*x+c[8]*E+c[12]*A,a[1]=c[1]*m+c[5]*x+c[9]*E+c[13]*A,a[2]=c[2]*m+c[6]*x+c[10]*E+c[14]*A,a[3]=c[3]*m+c[7]*x+c[11]*E+c[15]*A,a}ou=new Ni(3),Ni!=Float32Array&&(ou[0]=0,ou[1]=0,ou[2]=0),function(){var a=new Ni(4);Ni!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0)}();var fs=(function(){var a=new Ni(2);Ni!=Float32Array&&(a[0]=0,a[1]=0)}(),function(a){function u(c){a.call(this,c,Hu)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.createBucket=function(c){return new ls(c)},u.prototype.queryRadius=function(c){var m=c;return Ko("circle-radius",this,m)+Ko("circle-stroke-width",this,m)+Ka(this.paint.get("circle-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D,N){for(var j=As(c,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),I.angle,D),X=this.paint.get("circle-radius").evaluate(m,x)+this.paint.get("circle-stroke-width").evaluate(m,x),ee=this.paint.get("circle-pitch-alignment")==="map",R=ee?j:function(Lr,Gr){return Lr.map(function(Dn){return Or(Dn,Gr)})}(j,N),Ce=ee?X*D:X,Oe=0,Qe=E;Oea.width||x.height>a.height||c.x>a.width-x.width||c.y>a.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>u.width||x.height>u.height||m.x>u.width-x.width||m.y>u.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var A=a.data,I=u.data,D=0;D80*c){m=E=a[0],x=A=a[1];for(var Ce=c;CeE&&(E=I),D>A&&(A=D);N=(N=Math.max(E-m,A-x))!==0?1/N:0}return Mh(ee,R,c,m,x,N),R}function Pd(a,u,c,m,x){var E,A;if(x===_f(a,u,c,m)>0)for(E=u;E=u;E-=m)A=gf(E,a[E],a[E+1],A);return A&&uc(A,A.next)&&(ll(A),A=A.next),A}function Nc(a,u){if(!a)return a;u||(u=a);var c,m=a;do if(c=!1,m.steiner||!uc(m,m.next)&&oo(m.prev,m,m.next)!==0)m=m.next;else{if(ll(m),(m=u=m.prev)===m.next)break;c=!0}while(c||m!==u);return u}function Mh(a,u,c,m,x,E,A){if(a){!A&&E&&function(j,X,ee,R){var Ce=j;do Ce.z===null&&(Ce.z=Wf(Ce.x,Ce.y,X,ee,R)),Ce.prevZ=Ce.prev,Ce.nextZ=Ce.next,Ce=Ce.next;while(Ce!==j);Ce.prevZ.nextZ=null,Ce.prevZ=null,function(Oe){var Qe,He,xt,It,Vt,jt,fr,Lr,Gr=1;do{for(He=Oe,Oe=null,Vt=null,jt=0;He;){for(jt++,xt=He,fr=0,Qe=0;Qe0||Lr>0&&xt;)fr!==0&&(Lr===0||!xt||He.z<=xt.z)?(It=He,He=He.nextZ,fr--):(It=xt,xt=xt.nextZ,Lr--),Vt?Vt.nextZ=It:Oe=It,It.prevZ=Vt,Vt=It;He=xt}Vt.nextZ=null,Gr*=2}while(jt>1)}(Ce)}(a,m,x,E);for(var I,D,N=a;a.prev!==a.next;)if(I=a.prev,D=a.next,E?Qm(a,m,x,E):Od(a))u.push(I.i/c),u.push(a.i/c),u.push(D.i/c),ll(a),a=D.next,N=D.next;else if((a=D)===N){A?A===1?Mh(a=Hp(Nc(a),u,c),u,c,m,x,E,2):A===2&&Dd(a,u,c,m,x,E):Mh(Nc(a),u,c,m,x,E,1);break}}}function Od(a){var u=a.prev,c=a,m=a.next;if(oo(u,c,m)>=0)return!1;for(var x=a.next.next;x!==a.prev;){if(df(u.x,u.y,c.x,c.y,m.x,m.y,x.x,x.y)&&oo(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function Qm(a,u,c,m){var x=a.prev,E=a,A=a.next;if(oo(x,E,A)>=0)return!1;for(var I=x.x>E.x?x.x>A.x?x.x:A.x:E.x>A.x?E.x:A.x,D=x.y>E.y?x.y>A.y?x.y:A.y:E.y>A.y?E.y:A.y,N=Wf(x.x=N&&ee&&ee.z<=j;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&oo(X.prev,X,X.next)>=0||(X=X.prevZ,ee!==a.prev&&ee!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ee.x,ee.y)&&oo(ee.prev,ee,ee.next)>=0))return!1;ee=ee.nextZ}for(;X&&X.z>=N;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&oo(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ee&&ee.z<=j;){if(ee!==a.prev&&ee!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ee.x,ee.y)&&oo(ee.prev,ee,ee.next)>=0)return!1;ee=ee.nextZ}return!0}function Hp(a,u,c){var m=a;do{var x=m.prev,E=m.next.next;!uc(x,E)&&hp(x,m,m.next,E)&&zc(x,E)&&zc(E,x)&&(u.push(x.i/c),u.push(m.i/c),u.push(E.i/c),ll(m),ll(m.next),m=a=E),m=m.next}while(m!==a);return Nc(m)}function Dd(a,u,c,m,x,E){var A=a;do{for(var I=A.next.next;I!==A.prev;){if(A.i!==I.i&&fp(A,I)){var D=Ih(A,I);return A=Nc(A,A.next),D=Nc(D,D.next),Mh(A,u,c,m,x,E),void Mh(D,u,c,m,x,E)}I=I.next}A=A.next}while(A!==a)}function Jm(a,u){return a.x-u.x}function kd(a,u){if(u=function(m,x){var E,A=x,I=m.x,D=m.y,N=-1/0;do{if(D<=A.y&&D>=A.next.y&&A.next.y!==A.y){var j=A.x+(D-A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(j<=I&&j>N){if(N=j,j===I){if(D===A.y)return A;if(D===A.next.y)return A.next}E=A.x=A.x&&A.x>=R&&I!==A.x&&df(DE.x||A.x===E.x&&Uc(E,A)))&&(E=A,Oe=X)),A=A.next;while(A!==ee);return E}(a,u)){var c=Ih(u,a);Nc(u,u.next),Nc(c,c.next)}}function Uc(a,u){return oo(a.prev,a,u.prev)<0&&oo(u.next,a,a.next)<0}function Wf(a,u,c,m,x){return(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=32767*(a-c)*x)|a<<8))|a<<4))|a<<2))|a<<1))|(u=1431655765&((u=858993459&((u=252645135&((u=16711935&((u=32767*(u-m)*x)|u<<8))|u<<4))|u<<2))|u<<1))<<1}function cp(a){var u=a,c=a;do(u.x=0&&(a-A)*(m-I)-(c-A)*(u-I)>=0&&(c-A)*(E-I)-(x-A)*(m-I)>=0}function fp(a,u){return a.next.i!==u.i&&a.prev.i!==u.i&&!function(c,m){var x=c;do{if(x.i!==c.i&&x.next.i!==c.i&&x.i!==m.i&&x.next.i!==m.i&&hp(x,x.next,c,m))return!0;x=x.next}while(x!==c);return!1}(a,u)&&(zc(a,u)&&zc(u,a)&&function(c,m){var x=c,E=!1,A=(c.x+m.x)/2,I=(c.y+m.y)/2;do x.y>I!=x.next.y>I&&x.next.y!==x.y&&A<(x.next.x-x.x)*(I-x.y)/(x.next.y-x.y)+x.x&&(E=!E),x=x.next;while(x!==c);return E}(a,u)&&(oo(a.prev,a,u.prev)||oo(a,u.prev,u))||uc(a,u)&&oo(a.prev,a,a.next)>0&&oo(u.prev,u,u.next)>0)}function oo(a,u,c){return(u.y-a.y)*(c.x-u.x)-(u.x-a.x)*(c.y-u.y)}function uc(a,u){return a.x===u.x&&a.y===u.y}function hp(a,u,c,m){var x=mf(oo(a,u,c)),E=mf(oo(a,u,m)),A=mf(oo(c,m,a)),I=mf(oo(c,m,u));return x!==E&&A!==I||!(x!==0||!vf(a,c,u))||!(E!==0||!vf(a,m,u))||!(A!==0||!vf(c,a,m))||!(I!==0||!vf(c,u,m))}function vf(a,u,c){return u.x<=Math.max(a.x,c.x)&&u.x>=Math.min(a.x,c.x)&&u.y<=Math.max(a.y,c.y)&&u.y>=Math.min(a.y,c.y)}function mf(a){return a>0?1:a<0?-1:0}function zc(a,u){return oo(a.prev,a,a.next)<0?oo(a,u,a.next)>=0&&oo(a,a.prev,u)>=0:oo(a,u,a.prev)<0||oo(a,a.next,u)<0}function Ih(a,u){var c=new Zc(a.i,a.x,a.y),m=new Zc(u.i,u.x,u.y),x=a.next,E=u.prev;return a.next=u,u.prev=a,c.next=x,x.prev=c,m.next=c,c.prev=m,E.next=m,m.prev=E,m}function gf(a,u,c,m){var x=new Zc(a,u,c);return m?(x.next=m.next,x.prev=m,m.next.prev=x,m.next=x):(x.prev=x,x.next=x),x}function ll(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function Zc(a,u,c){this.i=a,this.x=u,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _f(a,u,c,m){for(var x=0,E=u,A=c-m;ED;){if(N-D>600){var X=N-D+1,ee=I-D+1,R=Math.log(X),Ce=.5*Math.exp(2*R/3),Oe=.5*Math.sqrt(R*Ce*(X-Ce)/X)*(ee-X/2<0?-1:1);E(A,I,Math.max(D,Math.floor(I-ee*Ce/X+Oe)),Math.min(N,Math.floor(I+(X-ee)*Ce/X+Oe)),j)}var Qe=A[I],He=D,xt=N;for(lc(A,D,I),j(A[N],Qe)>0&&lc(A,D,N);He0;)xt--}j(A[D],Qe)===0?lc(A,D,xt):lc(A,++xt,N),xt<=I&&(D=xt+1),I<=xt&&(N=xt-1)}})(a,u,c||0,m||a.length-1,x||yf)}function lc(a,u,c){var m=a[u];a[u]=a[c],a[c]=m}function yf(a,u){return au?1:0}function pp(a,u){var c=a.length;if(c<=1)return[a];for(var m,x,E=[],A=0;A1)for(var D=0;D0&&c.holes.push(m+=a[x-1].length)}return c},pf.default=Id;var fl=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Pl,this.indexArray=new zu,this.indexArray2=new ff,this.programConfigurations=new $n(a.layers,a.zoom),this.segments=new ge,this.segments2=new ge,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};fl.prototype.populate=function(a,u,c){this.hasPattern=Wp("fill",this.layers,u);for(var m=this.layers[0].layout.get("fill-sort-key"),x=[],E=0,A=a;E>3}if(x--,m===1||m===2)E+=a.readSVarint(),A+=a.readSVarint(),m===1&&(u&&I.push(u),u=[]),u.push(new ae(E,A));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&I.push(u),I},cc.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var u=a.readVarint()+a.pos,c=1,m=0,x=0,E=0,A=1/0,I=-1/0,D=1/0,N=-1/0;a.pos>3}if(m--,c===1||c===2)(x+=a.readSVarint())I&&(I=x),(E+=a.readSVarint())N&&(N=E);else if(c!==7)throw new Error("unknown command "+c)}return[A,D,I,N]},cc.prototype.toGeoJSON=function(a,u,c){var m,x,E=this.extent*Math.pow(2,c),A=this.extent*a,I=this.extent*u,D=this.loadGeometry(),N=cc.types[this.type];function j(R){for(var Ce=0;Ce>3;x=A===1?m.readString():A===2?m.readFloat():A===3?m.readDouble():A===4?m.readVarint64():A===5?m.readVarint():A===6?m.readSVarint():A===7?m.readBoolean():null}return x}(c))}function Xp(a,u,c){if(a===3){var m=new pl(c,c.readVarint()+c.pos);m.length&&(u[m.name]=m)}}bf.prototype.feature=function(a){if(a<0||a>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[a];var u=this._pbf.readVarint()+this._pbf.pos;return new dp(this._pbf,u,this.extent,this._keys,this._values)};var Ul={VectorTile:function(a,u){this.layers=a.readFields(Xp,{},u)},VectorTileFeature:dp,VectorTileLayer:pl},Gf=Ul.VectorTileFeature.types,vp=Math.pow(2,13);function Ts(a,u,c,m,x,E,A,I){a.emplaceBack(u,c,2*Math.floor(m*vp)+A,x*vp*2,E*vp*2,Math.round(I))}var hs=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new gu,this.indexArray=new zu,this.programConfigurations=new $n(a.layers,a.zoom),this.segments=new ge,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function vo(a,u){return a.x===u.x&&(a.x<0||a.x>8192)||a.y===u.y&&(a.y<0||a.y>8192)}hs.prototype.populate=function(a,u,c){this.features=[],this.hasPattern=Wp("fill-extrusion",this.layers,u);for(var m=0,x=a;m8192})||Ii.every(function(gi){return gi.y<0})||Ii.every(function(gi){return gi.y>8192})))for(var Oe=0,Qe=0;Qe=1){var xt=Ce[Qe-1];if(!vo(He,xt)){X.vertexLength+4>ge.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var It=He.sub(xt)._perp()._unit(),Vt=xt.dist(He);Oe+Vt>32768&&(Oe=0),Ts(this.layoutVertexArray,He.x,He.y,It.x,It.y,0,0,Oe),Ts(this.layoutVertexArray,He.x,He.y,It.x,It.y,0,1,Oe),Ts(this.layoutVertexArray,xt.x,xt.y,It.x,It.y,0,0,Oe+=Vt),Ts(this.layoutVertexArray,xt.x,xt.y,It.x,It.y,0,1,Oe);var jt=X.vertexLength;this.indexArray.emplaceBack(jt,jt+2,jt+1),this.indexArray.emplaceBack(jt+1,jt+2,jt+3),X.vertexLength+=4,X.primitiveLength+=2}}}}if(X.vertexLength+D>ge.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray)),Gf[a.type]==="Polygon"){for(var fr=[],Lr=[],Gr=X.vertexLength,Dn=0,sn=I;Dn=2&&a[D-1].equals(a[D-2]);)D--;for(var N=0;N0;if(Lr&&He>N){var Dn=j.dist(R);if(Dn>2*X){var sn=j.sub(j.sub(R)._mult(X/Dn)._round());this.updateDistance(R,sn),this.addCurrentVertex(sn,Oe,0,0,ee),R=sn}}var zn=R&&Ce,cn=zn?c:I?"butt":m;if(zn&&cn==="round"&&(jtx&&(cn="bevel"),cn==="bevel"&&(jt>2&&(cn="flipbevel"),jt100)xt=Qe.mult(-1);else{var Ei=jt*Oe.add(Qe).mag()/Oe.sub(Qe).mag();xt._perp()._mult(Ei*(Gr?-1:1))}this.addCurrentVertex(j,xt,0,0,ee),this.addCurrentVertex(j,xt.mult(-1),0,0,ee)}else if(cn==="bevel"||cn==="fakeround"){var Qn=-Math.sqrt(jt*jt-1),Tn=Gr?Qn:0,Ii=Gr?0:Qn;if(R&&this.addCurrentVertex(j,Oe,Tn,Ii,ee),cn==="fakeround")for(var gi=Math.round(180*fr/Math.PI/20),Bi=1;Bi2*X){var za=j.add(Ce.sub(j)._mult(X/so)._round());this.updateDistance(j,za),this.addCurrentVertex(za,Qe,0,0,ee),j=za}}}}},Jo.prototype.addCurrentVertex=function(a,u,c,m,x,E){E===void 0&&(E=!1);var A=u.y*m-u.x,I=-u.y-u.x*m;this.addHalfVertex(a,u.x+u.y*c,u.y-u.x*c,E,!1,c,x),this.addHalfVertex(a,A,I,E,!0,-m,x),this.distance>Dh/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(a,u,c,m,x,E))},Jo.prototype.addHalfVertex=function(a,u,c,m,x,E,A){var I=.5*(this.lineClips?this.scaledDistance*(Dh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((a.x<<1)+(m?1:0),(a.y<<1)+(x?1:0),Math.round(63*u)+128,Math.round(63*c)+128,1+(E===0?0:E<0?-1:1)|(63&I)<<2,I>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var D=A.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),A.primitiveLength++),x?this.e2=D:this.e1=D},Jo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jo.prototype.updateDistance=function(a,u){this.distance+=a.dist(u),this.updateScaledDistance()},vn("LineBucket",Jo,{omit:["layers","patternFeatures"]});var Uv=new ka({"line-cap":new On(V.layout_line["line-cap"]),"line-join":new gn(V.layout_line["line-join"]),"line-miter-limit":new On(V.layout_line["line-miter-limit"]),"line-round-limit":new On(V.layout_line["line-round-limit"]),"line-sort-key":new gn(V.layout_line["line-sort-key"])}),$f={paint:new ka({"line-opacity":new gn(V.paint_line["line-opacity"]),"line-color":new gn(V.paint_line["line-color"]),"line-translate":new On(V.paint_line["line-translate"]),"line-translate-anchor":new On(V.paint_line["line-translate-anchor"]),"line-width":new gn(V.paint_line["line-width"]),"line-gap-width":new gn(V.paint_line["line-gap-width"]),"line-offset":new gn(V.paint_line["line-offset"]),"line-blur":new gn(V.paint_line["line-blur"]),"line-dasharray":new qo(V.paint_line["line-dasharray"]),"line-pattern":new Bs(V.paint_line["line-pattern"]),"line-gradient":new mu(V.paint_line["line-gradient"])}),layout:Uv},qp=new(function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.possiblyEvaluate=function(c,m){return m=new B(Math.floor(m.zoom),{now:m.now,fadeDuration:m.fadeDuration,zoomHistory:m.zoomHistory,transition:m.transition}),a.prototype.possiblyEvaluate.call(this,c,m)},u.prototype.evaluate=function(c,m,x,E){return m=Ht({},m,{zoom:Math.floor(m.zoom)}),a.prototype.evaluate.call(this,c,m,x,E)},u}(gn))($f.paint.properties["line-width"].specification);qp.useIntegerZoom=!0;var Ud=function(a){function u(c){a.call(this,c,$f),this.gradientVersion=0}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._handleSpecialPaintPropertyUpdate=function(c){c==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ps,this.gradientVersion=(this.gradientVersion+1)%Ke)},u.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},u.prototype.recalculate=function(c,m){a.prototype.recalculate.call(this,c,m),this.paint._values["line-floorwidth"]=qp.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,c)},u.prototype.createBucket=function(c){return new Jo(c)},u.prototype.queryRadius=function(c){var m=c,x=Kp(Ko("line-width",this,m),Ko("line-gap-width",this,m)),E=Ko("line-offset",this,m);return x/2+Math.abs(E)+Ka(this.paint.get("line-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D){var N=As(c,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),I.angle,D),j=D/2*Kp(this.paint.get("line-width").evaluate(m,x),this.paint.get("line-gap-width").evaluate(m,x)),X=this.paint.get("line-offset").evaluate(m,x);return X&&(E=function(ee,R){for(var Ce=[],Oe=new ae(0,0),Qe=0;Qe=3){for(var He=0;He0?u+2*a:a}var zv=To([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Zv=To([{name:"a_projected_pos",components:3,type:"Float32"}],4),zd=(To([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),To([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zd=(To([{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"}]),To([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),z=To([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ee(a,u,c){return a.sections.forEach(function(m){m.text=function(x,E,A){var I=E.layout.get("text-transform").evaluate(A,{});return I==="uppercase"?x=x.toLocaleUpperCase():I==="lowercase"&&(x=x.toLocaleLowerCase()),Ie.applyArabicShaping&&(x=Ie.applyArabicShaping(x)),x}(m.text,u,c)}),a}To([{name:"triangle",components:3,type:"Uint16"}]),To([{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"}]),To([{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"}]),To([{type:"Float32",name:"offsetX"}]),To([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Ze={"!":"\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"},Ut=function(a,u,c,m,x){var E,A,I=8*x-m-1,D=(1<>1,j=-7,X=c?x-1:0,ee=c?-1:1,R=a[u+X];for(X+=ee,E=R&(1<<-j)-1,R>>=-j,j+=I;j>0;E=256*E+a[u+X],X+=ee,j-=8);for(A=E&(1<<-j)-1,E>>=-j,j+=m;j>0;A=256*A+a[u+X],X+=ee,j-=8);if(E===0)E=1-N;else{if(E===D)return A?NaN:1/0*(R?-1:1);A+=Math.pow(2,m),E-=N}return(R?-1:1)*A*Math.pow(2,E-m)},cr=function(a,u,c,m,x,E){var A,I,D,N=8*E-x-1,j=(1<>1,ee=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=m?0:E-1,Ce=m?1:-1,Oe=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(I=isNaN(u)?1:0,A=j):(A=Math.floor(Math.log(u)/Math.LN2),u*(D=Math.pow(2,-A))<1&&(A--,D*=2),(u+=A+X>=1?ee/D:ee*Math.pow(2,1-X))*D>=2&&(A++,D/=2),A+X>=j?(I=0,A=j):A+X>=1?(I=(u*D-1)*Math.pow(2,x),A+=X):(I=u*Math.pow(2,X-1)*Math.pow(2,x),A=0));x>=8;a[c+R]=255&I,R+=Ce,I/=256,x-=8);for(A=A<0;a[c+R]=255&A,R+=Ce,A/=256,N-=8);a[c+R-Ce]|=128*Oe},zt=kt;function kt(a){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0),this.pos=0,this.type=0,this.length=this.buf.length}kt.Varint=0,kt.Fixed64=1,kt.Bytes=2,kt.Fixed32=5;var Dr=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function wr(a){return a.type===kt.Bytes?a.readVarint()+a.pos:a.pos+1}function Zr(a,u,c){return c?4294967296*u+(a>>>0):4294967296*(u>>>0)+(a>>>0)}function Br(a,u,c){var m=u<=16383?1:u<=2097151?2:u<=268435455?3:Math.floor(Math.log(u)/(7*Math.LN2));c.realloc(m);for(var x=c.pos-1;x>=a;x--)c.buf[x+m]=c.buf[x]}function Ur(a,u){for(var c=0;c>>8,a[c+2]=u>>>16,a[c+3]=u>>>24}function en(a,u){return(a[u]|a[u+1]<<8|a[u+2]<<16)+(a[u+3]<<24)}function xr(a,u,c){a===1&&c.readMessage(Xr,u)}function Xr(a,u,c){if(a===3){var m=c.readMessage(Fn,{}),x=m.width,E=m.height,A=m.left,I=m.top,D=m.advance;u.push({id:m.id,bitmap:new _u({width:x+6,height:E+6},m.bitmap),metrics:{width:x,height:E,left:A,top:I,advance:D}})}}function Fn(a,u,c){a===1?u.id=c.readVarint():a===2?u.bitmap=c.readBytes():a===3?u.width=c.readVarint():a===4?u.height=c.readVarint():a===5?u.left=c.readSVarint():a===6?u.top=c.readSVarint():a===7&&(u.advance=c.readVarint())}function ui(a){for(var u=0,c=0,m=0,x=a;m=0;ee--){var R=A[ee];if(!(X.w>R.w||X.h>R.h)){if(X.x=R.x,X.y=R.y,D=Math.max(D,X.y+X.h),I=Math.max(I,X.x+X.w),X.w===R.w&&X.h===R.h){var Ce=A.pop();ee>3,E=this.pos;this.type=7&m,a(x,u,this),this.pos===E&&this.skip(m)}return u},readMessage:function(a,u){return this.readFields(a,u,this.readVarint()+this.pos)},readFixed32:function(){var a=tn(this.buf,this.pos);return this.pos+=4,a},readSFixed32:function(){var a=en(this.buf,this.pos);return this.pos+=4,a},readFixed64:function(){var a=tn(this.buf,this.pos)+4294967296*tn(this.buf,this.pos+4);return this.pos+=8,a},readSFixed64:function(){var a=tn(this.buf,this.pos)+4294967296*en(this.buf,this.pos+4);return this.pos+=8,a},readFloat:function(){var a=Ut(this.buf,this.pos,!0,23,4);return this.pos+=4,a},readDouble:function(){var a=Ut(this.buf,this.pos,!0,52,8);return this.pos+=8,a},readVarint:function(a){var u,c,m=this.buf;return u=127&(c=m[this.pos++]),c<128?u:(u|=(127&(c=m[this.pos++]))<<7,c<128?u:(u|=(127&(c=m[this.pos++]))<<14,c<128?u:(u|=(127&(c=m[this.pos++]))<<21,c<128?u:function(x,E,A){var I,D,N=A.buf;if(I=(112&(D=N[A.pos++]))>>4,D<128||(I|=(127&(D=N[A.pos++]))<<3,D<128)||(I|=(127&(D=N[A.pos++]))<<10,D<128)||(I|=(127&(D=N[A.pos++]))<<17,D<128)||(I|=(127&(D=N[A.pos++]))<<24,D<128)||(I|=(1&(D=N[A.pos++]))<<31,D<128))return Zr(x,I,E);throw new Error("Expected varint not more than 10 bytes")}(u|=(15&(c=m[this.pos]))<<28,a,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var a=this.readVarint();return a%2==1?(a+1)/-2:a/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var a=this.readVarint()+this.pos,u=this.pos;return this.pos=a,a-u>=12&&Dr?function(c,m,x){return Dr.decode(c.subarray(m,x))}(this.buf,u,a):function(c,m,x){for(var E="",A=m;A239?4:j>223?3:j>191?2:1;if(A+ee>x)break;ee===1?j<128&&(X=j):ee===2?(192&(I=c[A+1]))==128&&(X=(31&j)<<6|63&I)<=127&&(X=null):ee===3?(D=c[A+2],(192&(I=c[A+1]))==128&&(192&D)==128&&((X=(15&j)<<12|(63&I)<<6|63&D)<=2047||X>=55296&&X<=57343)&&(X=null)):ee===4&&(D=c[A+2],N=c[A+3],(192&(I=c[A+1]))==128&&(192&D)==128&&(192&N)==128&&((X=(15&j)<<18|(63&I)<<12|(63&D)<<6|63&N)<=65535||X>=1114112)&&(X=null)),X===null?(X=65533,ee=1):X>65535&&(X-=65536,E+=String.fromCharCode(X>>>10&1023|55296),X=56320|1023&X),E+=String.fromCharCode(X),A+=ee}return E}(this.buf,u,a)},readBytes:function(){var a=this.readVarint()+this.pos,u=this.buf.subarray(this.pos,a);return this.pos=a,u},readPackedVarint:function(a,u){if(this.type!==kt.Bytes)return a.push(this.readVarint(u));var c=wr(this);for(a=a||[];this.pos127;);else if(u===kt.Bytes)this.pos=this.readVarint()+this.pos;else if(u===kt.Fixed32)this.pos+=4;else{if(u!==kt.Fixed64)throw new Error("Unimplemented type: "+u);this.pos+=8}},writeTag:function(a,u){this.writeVarint(a<<3|u)},realloc:function(a){for(var u=this.length||16;u268435455||a<0?function(u,c){var m,x;if(u>=0?(m=u%4294967296|0,x=u/4294967296|0):(x=~(-u/4294967296),4294967295^(m=~(-u%4294967296))?m=m+1|0:(m=0,x=x+1|0)),u>=18446744073709552e3||u<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");c.realloc(10),function(E,A,I){I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,I.buf[I.pos]=127&(E>>>=7)}(m,0,c),function(E,A){var I=(7&E)<<4;A.buf[A.pos++]|=I|((E>>>=3)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E)))))}(x,c)}(a,this):(this.realloc(4),this.buf[this.pos++]=127&a|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=a>>>7&127))))},writeSVarint:function(a){this.writeVarint(a<0?2*-a-1:2*a)},writeBoolean:function(a){this.writeVarint(!!a)},writeString:function(a){a=String(a),this.realloc(4*a.length),this.pos++;var u=this.pos;this.pos=function(m,x,E){for(var A,I,D=0;D55295&&A<57344){if(!I){A>56319||D+1===x.length?(m[E++]=239,m[E++]=191,m[E++]=189):I=A;continue}if(A<56320){m[E++]=239,m[E++]=191,m[E++]=189,I=A;continue}A=I-55296<<10|A-56320|65536,I=null}else I&&(m[E++]=239,m[E++]=191,m[E++]=189,I=null);A<128?m[E++]=A:(A<2048?m[E++]=A>>6|192:(A<65536?m[E++]=A>>12|224:(m[E++]=A>>18|240,m[E++]=A>>12&63|128),m[E++]=A>>6&63|128),m[E++]=63&A|128)}return E}(this.buf,a,this.pos);var c=this.pos-u;c>=128&&Br(u,c,this),this.pos=u-1,this.writeVarint(c),this.pos+=c},writeFloat:function(a){this.realloc(4),cr(this.buf,a,this.pos,!0,23,4),this.pos+=4},writeDouble:function(a){this.realloc(8),cr(this.buf,a,this.pos,!0,52,8),this.pos+=8},writeBytes:function(a){var u=a.length;this.writeVarint(u),this.realloc(u);for(var c=0;c=128&&Br(c,m,this),this.pos=c-1,this.writeVarint(m),this.pos+=m},writeMessage:function(a,u,c){this.writeTag(a,kt.Bytes),this.writeRawMessage(u,c)},writePackedVarint:function(a,u){u.length&&this.writeMessage(a,Ur,u)},writePackedSVarint:function(a,u){u.length&&this.writeMessage(a,Wr,u)},writePackedBoolean:function(a,u){u.length&&this.writeMessage(a,St,u)},writePackedFloat:function(a,u){u.length&&this.writeMessage(a,Er,u)},writePackedDouble:function(a,u){u.length&&this.writeMessage(a,zr,u)},writePackedFixed32:function(a,u){u.length&&this.writeMessage(a,Qt,u)},writePackedSFixed32:function(a,u){u.length&&this.writeMessage(a,kr,u)},writePackedFixed64:function(a,u){u.length&&this.writeMessage(a,Jr,u)},writePackedSFixed64:function(a,u){u.length&&this.writeMessage(a,gr,u)},writeBytesField:function(a,u){this.writeTag(a,kt.Bytes),this.writeBytes(u)},writeFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFixed32(u)},writeSFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeSFixed32(u)},writeFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeFixed64(u)},writeSFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeSFixed64(u)},writeVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeVarint(u)},writeSVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeSVarint(u)},writeStringField:function(a,u){this.writeTag(a,kt.Bytes),this.writeString(u)},writeFloatField:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFloat(u)},writeDoubleField:function(a,u){this.writeTag(a,kt.Fixed64),this.writeDouble(u)},writeBooleanField:function(a,u){this.writeVarintField(a,!!u)}};var qr=function(a,u){var c=u.pixelRatio,m=u.version,x=u.stretchX,E=u.stretchY,A=u.content;this.paddedRect=a,this.pixelRatio=c,this.stretchX=x,this.stretchY=E,this.content=A,this.version=m},gt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};gt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},gt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},gt.tlbr.get=function(){return this.tl.concat(this.br)},gt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(qr.prototype,gt);var pr=function(a,u){var c={},m={};this.haveRenderCallbacks=[];var x=[];this.addImages(a,c,x),this.addImages(u,m,x);var E=ui(x),A=new Qo({width:E.w||1,height:E.h||1});for(var I in a){var D=a[I],N=c[I].paddedRect;Qo.copy(D.data,A,{x:0,y:0},{x:N.x+1,y:N.y+1},D.data)}for(var j in u){var X=u[j],ee=m[j].paddedRect,R=ee.x+1,Ce=ee.y+1,Oe=X.data.width,Qe=X.data.height;Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Ce},X.data),Qo.copy(X.data,A,{x:0,y:Qe-1},{x:R,y:Ce-1},{width:Oe,height:1}),Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Ce+Qe},{width:Oe,height:1}),Qo.copy(X.data,A,{x:Oe-1,y:0},{x:R-1,y:Ce},{width:1,height:Qe}),Qo.copy(X.data,A,{x:0,y:0},{x:R+Oe,y:Ce},{width:1,height:Qe})}this.image=A,this.iconPositions=c,this.patternPositions=m};pr.prototype.addImages=function(a,u,c){for(var m in a){var x=a[m],E={x:0,y:0,w:x.data.width+2,h:x.data.height+2};c.push(E),u[m]=new qr(E,x),x.hasRenderCallback&&this.haveRenderCallbacks.push(m)}},pr.prototype.patchUpdatedImages=function(a,u){for(var c in a.dispatchRenderCallbacks(this.haveRenderCallbacks),a.updatedImages)this.patchUpdatedImage(this.iconPositions[c],a.getImage(c),u),this.patchUpdatedImage(this.patternPositions[c],a.getImage(c),u)},pr.prototype.patchUpdatedImage=function(a,u,c){if(a&&u&&a.version!==u.version){a.version=u.version;var m=a.tl;c.update(u.data,void 0,{x:m[0],y:m[1]})}},vn("ImagePosition",qr),vn("ImageAtlas",pr);var tt={horizontal:1,vertical:2,horizontalOnly:3},wi=function(){this.scale=1,this.fontStack="",this.imageName=null};wi.forText=function(a,u){var c=new wi;return c.scale=a||1,c.fontStack=u,c},wi.forImage=function(a){var u=new wi;return u.imageName=a,u};var on=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yi(a,u,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe){var Qe,He=on.fromFeature(a,x);X===tt.vertical&&He.verticalizePunctuation();var xt=Ie.processBidirectionalText,It=Ie.processStyledBidirectionalText;if(xt&&He.sections.length===1){Qe=[];for(var Vt=0,jt=xt(He.toString(),lo(He,N,E,u,m,R,Ce));Vt0&&Jf>Po&&(Po=Jf)}else{var vc=gi[qi.fontStack],Ep=vc&&vc[su];if(Ep&&Ep.rect)Vl=Ep.rect,eo=Ep.metrics;else{var ed=Ii[qi.fontStack],Xd=ed&&ed[su];if(!Xd)continue;eo=Xd.metrics}vl=24*(Xi-qi.scale)}pc?(Tn.verticalizable=!0,Ba.push({glyph:su,imageName:$u,x:Uo,y:Zs+vl,vertical:pc,scale:qi.scale,fontStack:qi.fontStack,sectionIndex:Zl,metrics:eo,rect:Vl}),Uo+=Ef*qi.scale+za):(Ba.push({glyph:su,imageName:$u,x:Uo,y:Zs+vl,vertical:pc,scale:qi.scale,fontStack:qi.fontStack,sectionIndex:Zl,metrics:eo,rect:Vl}),Uo+=eo.advance*qi.scale+za)}Ba.length!==0&&(Fa=Math.max(Uo-za,Fa),go(Ba,0,Ba.length-1,bo,Po)),Uo=0;var td=ra*Xi+Po;ns.lineOffset=Math.max(Po,js),Zs+=td,Vs=Math.max(td,Vs),++rs}else Zs+=ra,++rs}var Hc,Sf=Zs- -17,Sp=Sa(Ua),eh=Sp.horizontalAlign,Ap=Sp.verticalAlign;(function(rd,$d,nd,id,Wc,Fh,th,Bh,rh){var nh,Tp=($d-nd)*Wc;nh=Fh!==th?-Bh*id- -17:(-id*rh+.5)*th;for(var Gc=0,Lh=rd;Gc=0&&m>=a&&ai[this.text.charCodeAt(m)];m--)c--;this.text=this.text.substring(a,c),this.sectionIndex=this.sectionIndex.slice(a,c)},on.prototype.substring=function(a,u){var c=new on;return c.text=this.text.substring(a,u),c.sectionIndex=this.sectionIndex.slice(a,u),c.sections=this.sections,c},on.prototype.toString=function(){return this.text},on.prototype.getMaxScale=function(){var a=this;return this.sectionIndex.reduce(function(u,c){return Math.max(u,a.sections[c].scale)},0)},on.prototype.addTextSection=function(a,u){this.text+=a.text,this.sections.push(wi.forText(a.scale,a.fontStack||u));for(var c=this.sections.length-1,m=0;m=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var ai={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Yn={};function Ui(a,u,c,m,x,E){if(u.imageName){var A=m[u.imageName];return A?A.displaySize[0]*u.scale*24/E+x:0}var I=c[u.fontStack],D=I&&I[a];return D?D.metrics.advance*u.scale+x:0}function mo(a,u,c,m){var x=Math.pow(a-u,2);return m?a=0,X=0,ee=0;ee-c/2;){if(--A<0)return!1;I-=a[A].dist(E),E=a[A]}I+=a[A].dist(a[A+1]),A++;for(var D=[],N=0;Im;)N-=D.shift().angleDelta;if(N>x)return!1;A++,I+=j.dist(X)}return!0}function aa(a){for(var u=0,c=0;cN){var Ce=(N-D)/R,Oe=Ya(X.x,ee.x,Ce),Qe=Ya(X.y,ee.y,Ce),He=new Qa(Oe,Qe,ee.angleTo(X),j);return He._round(),!A||es(a,He,I,A,u)?He:void 0}D+=R}}function yo(a,u,c,m,x,E,A,I,D){var N=Wn(m,E,A),j=Mi(m,x),X=j*A,ee=a[0].x===0||a[0].x===D||a[0].y===0||a[0].y===D;return u-X=0&&Bi=0&&Zn=0&&sn+Lr<=Gr){var ra=new Qa(Bi,Zn,Ii,cn);ra._round(),He&&!es(Ce,ra,It,He,xt)||zn.push(ra)}}Dn+=Tn}return jt||zn.length||Vt||(zn=R(Ce,Dn/2,Qe,He,xt,It,Vt,!0,fr)),zn}(a,ee?u/2*I%u:(j/2+2*E)*A*I%u,u,N,c,X,ee,!1,D)}function Xu(a,u,c,m,x){for(var E=[],A=0;A=m&&X.x>=m||(j.x>=m?j=new ae(m,j.y+(m-j.x)/(X.x-j.x)*(X.y-j.y))._round():X.x>=m&&(X=new ae(m,j.y+(m-j.x)/(X.x-j.x)*(X.y-j.y))._round()),j.y>=x&&X.y>=x||(j.y>=x?j=new ae(j.x+(x-j.y)/(X.y-j.y)*(X.x-j.x),x)._round():X.y>=x&&(X=new ae(j.x+(x-j.y)/(X.y-j.y)*(X.x-j.x),x)._round()),D&&j.equals(D[D.length-1])||E.push(D=[j]),D.push(X)))))}return E}function ke(a,u,c,m){var x=[],E=a.image,A=E.pixelRatio,I=E.paddedRect.w-2,D=E.paddedRect.h-2,N=a.right-a.left,j=a.bottom-a.top,X=E.stretchX||[[0,I]],ee=E.stretchY||[[0,D]],R=function(Bi,Zn){return Bi+Zn[1]-Zn[0]},Ce=X.reduce(R,0),Oe=ee.reduce(R,0),Qe=I-Ce,He=D-Oe,xt=0,It=Ce,Vt=0,jt=Oe,fr=0,Lr=Qe,Gr=0,Dn=He;if(E.content&&m){var sn=E.content;xt=Zt(X,0,sn[0]),Vt=Zt(ee,0,sn[1]),It=Zt(X,sn[0],sn[2]),jt=Zt(ee,sn[1],sn[3]),fr=sn[0]-xt,Gr=sn[1]-Vt,Lr=sn[2]-sn[0]-It,Dn=sn[3]-sn[1]-jt}var zn=function(Bi,Zn,ra,Ua){var Ja=ln(Bi.stretch-xt,It,N,a.left),so=bi(Bi.fixed-fr,Lr,Bi.stretch,Ce),za=ln(Zn.stretch-Vt,jt,j,a.top),co=bi(Zn.fixed-Gr,Dn,Zn.stretch,Oe),Go=ln(ra.stretch-xt,It,N,a.left),Uo=bi(ra.fixed-fr,Lr,ra.stretch,Ce),Zs=ln(Ua.stretch-Vt,jt,j,a.top),Fa=bi(Ua.fixed-Gr,Dn,Ua.stretch,Oe),Vs=new ae(Ja,za),bo=new ae(Go,za),rs=new ae(Go,Zs),zi=new ae(Ja,Zs),fa=new ae(so/A,co/A),va=new ae(Uo/A,Fa/A),Xi=u*Math.PI/180;if(Xi){var js=Math.sin(Xi),ns=Math.cos(Xi),Ba=[ns,-js,js,ns];Vs._matMult(Ba),bo._matMult(Ba),zi._matMult(Ba),rs._matMult(Ba)}var Po=Bi.stretch+Bi.fixed,ws=Zn.stretch+Zn.fixed;return{tl:Vs,tr:bo,bl:zi,br:rs,tex:{x:E.paddedRect.x+1+Po,y:E.paddedRect.y+1+ws,w:ra.stretch+ra.fixed-Po,h:Ua.stretch+Ua.fixed-ws},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fa,pixelOffsetBR:va,minFontScaleX:Lr/A/N,minFontScaleY:Dn/A/j,isSDF:c}};if(m&&(E.stretchX||E.stretchY))for(var cn=Bt(X,Qe,Ce),Ei=Bt(ee,He,Oe),Qn=0;Qn0&&(R=Math.max(10,R),this.circleDiameter=R)}else{var Ce=E.top*A-I,Oe=E.bottom*A+I,Qe=E.left*A-I,He=E.right*A+I,xt=E.collisionPadding;if(xt&&(Qe-=xt[0]*A,Ce-=xt[1]*A,He+=xt[2]*A,Oe+=xt[3]*A),N){var It=new ae(Qe,Ce),Vt=new ae(He,Ce),jt=new ae(Qe,Oe),fr=new ae(He,Oe),Lr=N*Math.PI/180;It._rotate(Lr),Vt._rotate(Lr),jt._rotate(Lr),fr._rotate(Lr),Qe=Math.min(It.x,Vt.x,jt.x,fr.x),He=Math.max(It.x,Vt.x,jt.x,fr.x),Ce=Math.min(It.y,Vt.y,jt.y,fr.y),Oe=Math.max(It.y,Vt.y,jt.y,fr.y)}a.emplaceBack(u.x,u.y,Qe,Ce,He,Oe,c,m,x)}this.boxEndIndex=a.length},ue=function(a,u){if(a===void 0&&(a=[]),u===void 0&&(u=Se),this.data=a,this.length=this.data.length,this.compare=u,this.length>0)for(var c=(this.length>>1)-1;c>=0;c--)this._down(c)};function Se(a,u){return au?1:0}function ze(a,u,c){u===void 0&&(u=1),c===void 0&&(c=!1);for(var m=1/0,x=1/0,E=-1/0,A=-1/0,I=a[0],D=0;DE)&&(E=N.x),(!D||N.y>A)&&(A=N.y)}var j=Math.min(E-m,A-x),X=j/2,ee=new ue([],Lt);if(j===0)return new ae(m,x);for(var R=m;ROe.d||!Oe.d)&&(Oe=He,c&&console.log("found best %d after %d probes",Math.round(1e4*He.d)/1e4,Qe)),He.max-Oe.d<=u||(ee.push(new Ft(He.p.x-(X=He.h/2),He.p.y-X,X,a)),ee.push(new Ft(He.p.x+X,He.p.y-X,X,a)),ee.push(new Ft(He.p.x-X,He.p.y+X,X,a)),ee.push(new Ft(He.p.x+X,He.p.y+X,X,a)),Qe+=4)}return c&&(console.log("num probes: "+Qe),console.log("best distance: "+Oe.d)),Oe.p}function Lt(a,u){return u.max-a.max}function Ft(a,u,c,m){this.p=new ae(a,u),this.h=c,this.d=function(x,E){for(var A=!1,I=1/0,D=0;Dx.y!=Ce.y>x.y&&x.x<(Ce.x-R.x)*(x.y-R.y)/(Ce.y-R.y)+R.x&&(A=!A),I=Math.min(I,Fl(x,R,Ce))}return(A?1:-1)*Math.sqrt(I)}(this.p,m),this.max=this.d+this.h*Math.SQRT2}ue.prototype.push=function(a){this.data.push(a),this.length++,this._up(this.length-1)},ue.prototype.pop=function(){if(this.length!==0){var a=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),a}},ue.prototype.peek=function(){return this.data[0]},ue.prototype._up=function(a){for(var u=this.data,c=this.compare,m=u[a];a>0;){var x=a-1>>1,E=u[x];if(c(m,E)>=0)break;u[a]=E,a=x}u[a]=m},ue.prototype._down=function(a){for(var u=this.data,c=this.compare,m=this.length>>1,x=u[a];a=0)break;u[a]=A,a=E}u[a]=x};var Ye=Number.POSITIVE_INFINITY;function st(a,u){return u[1]!==Ye?function(c,m,x){var E=0,A=0;switch(m=Math.abs(m),x=Math.abs(x),c){case"top-right":case"top-left":case"top":A=x-7;break;case"bottom-right":case"bottom-left":case"bottom":A=7-x}switch(c){case"top-right":case"bottom-right":case"right":E=-m;break;case"top-left":case"bottom-left":case"left":E=m}return[E,A]}(a,u[0],u[1]):function(c,m){var x=0,E=0;m<0&&(m=0);var A=m/Math.sqrt(2);switch(c){case"top-right":case"top-left":E=A-7;break;case"bottom-right":case"bottom-left":E=7-A;break;case"bottom":E=7-m;break;case"top":E=m-7}switch(c){case"top-right":case"bottom-right":x=-A;break;case"top-left":case"bottom-left":x=A;break;case"left":x=m;break;case"right":x=-m}return[x,E]}(a,u[0])}function pt(a){switch(a){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Me(a,u,c,m,x,E,A,I,D,N,j,X,ee,R,Ce){var Oe=function(Vt,jt,fr,Lr,Gr,Dn,sn,zn){for(var cn=Lr.layout.get("text-rotate").evaluate(Dn,{})*Math.PI/180,Ei=[],Qn=0,Tn=jt.positionedLines;Qn32640&&ft(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Qe.kind==="composite"&&((He=[128*R.compositeTextSizes[0].evaluate(A,{},Ce),128*R.compositeTextSizes[1].evaluate(A,{},Ce)])[0]>32640||He[1]>32640)&&ft(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),a.addSymbols(a.text,Oe,He,I,E,A,N,u,D.lineStartIndex,D.lineLength,ee,Ce);for(var xt=0,It=j;xt=0;A--)if(m.dist(E[A])0)&&(E.value.kind!=="constant"||E.value.value.length>0),N=I.value.kind!=="constant"||!!I.value.value||Object.keys(I.parameters).length>0,j=x.get("symbol-sort-key");if(this.features=[],D||N){for(var X=u.iconDependencies,ee=u.glyphDependencies,R=u.availableImages,Ce=new B(this.zoom),Oe=0,Qe=a;Oe=0;for(var Ii=0,gi=Gr.sections;Ii=0;I--)E[I]={x:u[I].x,y:u[I].y,tileUnitDistanceFromAnchor:x},I>0&&(x+=u[I-1].dist(u[I]));for(var D=0;D0},_n.prototype.hasIconData=function(){return this.icon.segments.get().length>0},_n.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},_n.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},_n.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},_n.prototype.addIndicesForPlacedSymbol=function(a,u){for(var c=a.placedSymbolArray.get(u),m=c.vertexStartIndex+4*c.numGlyphs,x=c.vertexStartIndex;x1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var c=0,m=this.symbolInstanceIndexes;c=0&&I.indexOf(E)===A&&u.addIndicesForPlacedSymbol(u.text,E)}),x.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,x.verticalPlacedTextSymbolIndex),x.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.placedIconSymbolIndex),x.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},vn("SymbolBucket",_n,{omit:["layers","collisionBoxArray","features","compareText"]}),_n.MAX_GLYPHS=65535,_n.addDynamicAttributes=_r;var Sn=new ka({"symbol-placement":new On(V.layout_symbol["symbol-placement"]),"symbol-spacing":new On(V.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new On(V.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new gn(V.layout_symbol["symbol-sort-key"]),"symbol-z-order":new On(V.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new On(V.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new On(V.layout_symbol["icon-ignore-placement"]),"icon-optional":new On(V.layout_symbol["icon-optional"]),"icon-rotation-alignment":new On(V.layout_symbol["icon-rotation-alignment"]),"icon-size":new gn(V.layout_symbol["icon-size"]),"icon-text-fit":new On(V.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new On(V.layout_symbol["icon-text-fit-padding"]),"icon-image":new gn(V.layout_symbol["icon-image"]),"icon-rotate":new gn(V.layout_symbol["icon-rotate"]),"icon-padding":new On(V.layout_symbol["icon-padding"]),"icon-keep-upright":new On(V.layout_symbol["icon-keep-upright"]),"icon-offset":new gn(V.layout_symbol["icon-offset"]),"icon-anchor":new gn(V.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new On(V.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new On(V.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new On(V.layout_symbol["text-rotation-alignment"]),"text-field":new gn(V.layout_symbol["text-field"]),"text-font":new gn(V.layout_symbol["text-font"]),"text-size":new gn(V.layout_symbol["text-size"]),"text-max-width":new gn(V.layout_symbol["text-max-width"]),"text-line-height":new On(V.layout_symbol["text-line-height"]),"text-letter-spacing":new gn(V.layout_symbol["text-letter-spacing"]),"text-justify":new gn(V.layout_symbol["text-justify"]),"text-radial-offset":new gn(V.layout_symbol["text-radial-offset"]),"text-variable-anchor":new On(V.layout_symbol["text-variable-anchor"]),"text-anchor":new gn(V.layout_symbol["text-anchor"]),"text-max-angle":new On(V.layout_symbol["text-max-angle"]),"text-writing-mode":new On(V.layout_symbol["text-writing-mode"]),"text-rotate":new gn(V.layout_symbol["text-rotate"]),"text-padding":new On(V.layout_symbol["text-padding"]),"text-keep-upright":new On(V.layout_symbol["text-keep-upright"]),"text-transform":new gn(V.layout_symbol["text-transform"]),"text-offset":new gn(V.layout_symbol["text-offset"]),"text-allow-overlap":new On(V.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new On(V.layout_symbol["text-ignore-placement"]),"text-optional":new On(V.layout_symbol["text-optional"])}),Gn={paint:new ka({"icon-opacity":new gn(V.paint_symbol["icon-opacity"]),"icon-color":new gn(V.paint_symbol["icon-color"]),"icon-halo-color":new gn(V.paint_symbol["icon-halo-color"]),"icon-halo-width":new gn(V.paint_symbol["icon-halo-width"]),"icon-halo-blur":new gn(V.paint_symbol["icon-halo-blur"]),"icon-translate":new On(V.paint_symbol["icon-translate"]),"icon-translate-anchor":new On(V.paint_symbol["icon-translate-anchor"]),"text-opacity":new gn(V.paint_symbol["text-opacity"]),"text-color":new gn(V.paint_symbol["text-color"],{runtimeType:$r,getOverride:function(a){return a.textColor},hasOverride:function(a){return!!a.textColor}}),"text-halo-color":new gn(V.paint_symbol["text-halo-color"]),"text-halo-width":new gn(V.paint_symbol["text-halo-width"]),"text-halo-blur":new gn(V.paint_symbol["text-halo-blur"]),"text-translate":new On(V.paint_symbol["text-translate"]),"text-translate-anchor":new On(V.paint_symbol["text-translate-anchor"])}),layout:Sn},ri=function(a){this.type=a.property.overrides?a.property.overrides.runtimeType:nn,this.defaultValue=a};ri.prototype.evaluate=function(a){if(a.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(a.formattedSection))return u.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default},ri.prototype.eachChild=function(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)},ri.prototype.outputDefined=function(){return!1},ri.prototype.serialize=function(){return null},vn("FormatSectionOverride",ri,{omit:["defaultValue"]});var ta=function(a){function u(c){a.call(this,c,Gn)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.recalculate=function(c,m){if(a.prototype.recalculate.call(this,c,m),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 x=this.layout.get("text-writing-mode");if(x){for(var E=[],A=0,I=x;A",targetMapId:m,sourceMapId:E.mapId})}}},gp.prototype.receive=function(a){var u=a.data,c=u.id;if(c&&(!u.targetMapId||this.mapId===u.targetMapId))if(u.type===""){delete this.tasks[c];var m=this.cancelCallbacks[c];delete this.cancelCallbacks[c],m&&m()}else te()||u.mustQueue?(this.tasks[c]=u,this.taskQueue.push(c),this.invoker.trigger()):this.processTask(c,u)},gp.prototype.process=function(){if(this.taskQueue.length){var a=this.taskQueue.shift(),u=this.tasks[a];delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(a,u)}},gp.prototype.processTask=function(a,u){var c=this;if(u.type===""){var m=this.callbacks[a];delete this.callbacks[a],m&&(u.error?m(ga(u.error)):m(null,ga(u.data)))}else{var x=!1,E=Be(this.globalScope)?void 0:[],A=u.hasCallback?function(j,X){x=!0,delete c.cancelCallbacks[a],c.target.postMessage({id:a,type:"",sourceMapId:c.mapId,error:j?us(j):null,data:us(X,E)},E)}:function(j){x=!0},I=null,D=ga(u.data);if(this.parent[u.type])I=this.parent[u.type](u.sourceMapId,D,A);else if(this.parent.getWorkerSource){var N=u.type.split(".");I=this.parent.getWorkerSource(u.sourceMapId,N[0],D.source)[N[1]](D,A)}else A(new Error("Could not find function "+u.type));!x&&I&&I.cancel&&(this.cancelCallbacks[a]=I.cancel)}},gp.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var No=function(a,u){a&&(u?this.setSouthWest(a).setNorthEast(u):a.length===4?this.setSouthWest([a[0],a[1]]).setNorthEast([a[2],a[3]]):this.setSouthWest(a[0]).setNorthEast(a[1]))};No.prototype.setNorthEast=function(a){return this._ne=a instanceof Xa?new Xa(a.lng,a.lat):Xa.convert(a),this},No.prototype.setSouthWest=function(a){return this._sw=a instanceof Xa?new Xa(a.lng,a.lat):Xa.convert(a),this},No.prototype.extend=function(a){var u,c,m=this._sw,x=this._ne;if(a instanceof Xa)u=a,c=a;else{if(!(a instanceof No))return Array.isArray(a)?a.length===4||a.every(Array.isArray)?this.extend(No.convert(a)):this.extend(Xa.convert(a)):this;if(c=a._ne,!(u=a._sw)||!c)return this}return m||x?(m.lng=Math.min(u.lng,m.lng),m.lat=Math.min(u.lat,m.lat),x.lng=Math.max(c.lng,x.lng),x.lat=Math.max(c.lat,x.lat)):(this._sw=new Xa(u.lng,u.lat),this._ne=new Xa(c.lng,c.lat)),this},No.prototype.getCenter=function(){return new Xa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},No.prototype.getSouthWest=function(){return this._sw},No.prototype.getNorthEast=function(){return this._ne},No.prototype.getNorthWest=function(){return new Xa(this.getWest(),this.getNorth())},No.prototype.getSouthEast=function(){return new Xa(this.getEast(),this.getSouth())},No.prototype.getWest=function(){return this._sw.lng},No.prototype.getSouth=function(){return this._sw.lat},No.prototype.getEast=function(){return this._ne.lng},No.prototype.getNorth=function(){return this._ne.lat},No.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},No.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},No.prototype.isEmpty=function(){return!(this._sw&&this._ne)},No.prototype.contains=function(a){var u=Xa.convert(a),c=u.lng,m=u.lat,x=this._sw.lng<=c&&c<=this._ne.lng;return this._sw.lng>this._ne.lng&&(x=this._sw.lng>=c&&c>=this._ne.lng),this._sw.lat<=m&&m<=this._ne.lat&&x},No.convert=function(a){return!a||a instanceof No?a:new No(a)};var Xa=function(a,u){if(isNaN(a)||isNaN(u))throw new Error("Invalid LngLat object: ("+a+", "+u+")");if(this.lng=+a,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Xa.prototype.wrap=function(){return new Xa(Yt(this.lng,-180,180),this.lat)},Xa.prototype.toArray=function(){return[this.lng,this.lat]},Xa.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Xa.prototype.distanceTo=function(a){var u=Math.PI/180,c=this.lat*u,m=a.lat*u,x=Math.sin(c)*Math.sin(m)+Math.cos(c)*Math.cos(m)*Math.cos((a.lng-this.lng)*u);return 63710088e-1*Math.acos(Math.min(x,1))},Xa.prototype.toBounds=function(a){a===void 0&&(a=0);var u=360*a/40075017,c=u/Math.cos(Math.PI/180*this.lat);return new No(new Xa(this.lng-c,this.lat-u),new Xa(this.lng+c,this.lat+u))},Xa.convert=function(a){if(a instanceof Xa)return a;if(Array.isArray(a)&&(a.length===2||a.length===3))return new Xa(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&typeof a=="object"&&a!==null)return new Xa(Number("lng"in a?a.lng:a.lon),Number(a.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 Fi=2*Math.PI*63710088e-1;function Oi(a){return Fi*Math.cos(a*Math.PI/180)}function kh(a){return(180+a)/360}function Wd(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function rg(a,u){return a/Oi(u)}function Gd(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}var qf=function(a,u,c){c===void 0&&(c=0),this.x=+a,this.y=+u,this.z=+c};qf.fromLngLat=function(a,u){u===void 0&&(u=0);var c=Xa.convert(a);return new qf(kh(c.lng),Wd(c.lat),rg(u,c.lat))},qf.prototype.toLngLat=function(){return new Xa(360*this.x-180,Gd(this.y))},qf.prototype.toAltitude=function(){return this.z*Oi(Gd(this.y))},qf.prototype.meterInMercatorCoordinateUnits=function(){return 1/Fi*(a=Gd(this.y),1/Math.cos(a*Math.PI/180));var a};var zl=function(a,u,c){this.z=a,this.x=u,this.y=c,this.key=_p(0,a,a,u,c)};zl.prototype.equals=function(a){return this.z===a.z&&this.x===a.x&&this.y===a.y},zl.prototype.url=function(a,u){var c,m,x,E,A,I=(m=this.y,x=this.z,E=tg(256*(c=this.x),256*(m=Math.pow(2,x)-m-1),x),A=tg(256*(c+1),256*(m+1),x),E[0]+","+E[1]+","+A[0]+","+A[1]),D=function(N,j,X){for(var ee,R="",Ce=N;Ce>0;Ce--)R+=(j&(ee=1<this.canonical.z?new Io(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Io(a,this.wrap,a,this.canonical.x>>u,this.canonical.y>>u)},Io.prototype.calculateScaledKey=function(a,u){var c=this.canonical.z-a;return a>this.canonical.z?_p(this.wrap*+u,a,this.canonical.z,this.canonical.x,this.canonical.y):_p(this.wrap*+u,a,a,this.canonical.x>>c,this.canonical.y>>c)},Io.prototype.isChildOf=function(a){if(a.wrap!==this.wrap)return!1;var u=this.canonical.z-a.canonical.z;return a.overscaledZ===0||a.overscaledZ>u&&a.canonical.y===this.canonical.y>>u},Io.prototype.children=function(a){if(this.overscaledZ>=a)return[new Io(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,c=2*this.canonical.x,m=2*this.canonical.y;return[new Io(u,this.wrap,u,c,m),new Io(u,this.wrap,u,c+1,m),new Io(u,this.wrap,u,c,m+1),new Io(u,this.wrap,u,c+1,m+1)]},Io.prototype.isLessThan=function(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.y=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(a+1)},Vc.prototype._unpackMapbox=function(a,u,c){return(256*a*256+256*u+c)/10-1e4},Vc.prototype._unpackTerrarium=function(a,u,c){return 256*a+u+c/256-32768},Vc.prototype.getPixels=function(){return new Qo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Vc.prototype.backfillBorder=function(a,u,c){if(this.dim!==a.dim)throw new Error("dem dimension mismatch");var m=u*this.dim,x=u*this.dim+this.dim,E=c*this.dim,A=c*this.dim+this.dim;switch(u){case-1:m=x-1;break;case 1:x=m+1}switch(c){case-1:E=A-1;break;case 1:A=E+1}for(var I=-u*this.dim,D=-c*this.dim,N=E;N=0&&j[3]>=0&&I.insert(A,j[0],j[1],j[2],j[3])}},jc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ul.VectorTile(new zt(this.rawTileData)).layers,this.sourceLayerCoder=new yp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},jc.prototype.query=function(a,u,c,m){var x=this;this.loadVTLayers();for(var E=a.params||{},A=8192/a.tileSize/a.scale,I=Bu(E.filter),D=a.queryGeometry,N=a.queryPadding*A,j=ng(D),X=this.grid.query(j.minX-N,j.minY-N,j.maxX+N,j.maxY+N),ee=ng(a.cameraQueryGeometry),R=this.grid3D.query(ee.minX-N,ee.minY-N,ee.maxX+N,ee.maxY+N,function(Vt,jt,fr,Lr){return function(Gr,Dn,sn,zn,cn){for(var Ei=0,Qn=Gr;Ei=Tn.x&&cn>=Tn.y)return!0}var Ii=[new ae(Dn,sn),new ae(Dn,cn),new ae(zn,cn),new ae(zn,sn)];if(Gr.length>2){for(var gi=0,Bi=Ii;gi=0)return!0;return!1}(E,X)){var ee=this.sourceLayerCoder.decode(c),R=this.vtLayers[ee].feature(m);if(x.needGeometry){var Ce=Ga(R,!0);if(!x.filter(new B(this.tileID.overscaledZ),Ce,this.tileID.canonical))return}else if(!x.filter(new B(this.tileID.overscaledZ),R))return;for(var Oe=this.getId(R,ee),Qe=0;Qem)x=!1;else if(u)if(this.expirationTimesr&&(a.getActor().send("enforceCacheSizeLimit",wt),En=0)},_.clamp=Dt,_.clearTileCache=function(a){var u=ie.caches.delete("mapbox-tiles");a&&u.catch(a).then(function(){return a()})},_.clipLine=Xu,_.clone=function(a){var u=new Ni(16);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u[3]=a[3],u[4]=a[4],u[5]=a[5],u[6]=a[6],u[7]=a[7],u[8]=a[8],u[9]=a[9],u[10]=a[10],u[11]=a[11],u[12]=a[12],u[13]=a[13],u[14]=a[14],u[15]=a[15],u},_.clone$1=nt,_.clone$2=function(a){var u=new Ni(3);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u},_.collisionCircleLayout=z,_.config=mn,_.create=function(){var a=new Ni(16);return Ni!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a},_.create$1=function(){var a=new Ni(9);return Ni!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a},_.create$2=function(){var a=new Ni(4);return Ni!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a},_.createCommonjsModule=le,_.createExpression=rf,_.createLayout=To,_.createStyleLayer=function(a){return a.type==="custom"?new Vd(a):new zs[a.type](a)},_.cross=function(a,u,c){var m=u[0],x=u[1],E=u[2],A=c[0],I=c[1],D=c[2];return a[0]=x*D-E*I,a[1]=E*A-m*D,a[2]=m*I-x*A,a},_.deepEqual=function a(u,c){if(Array.isArray(u)){if(!Array.isArray(c)||u.length!==c.length)return!1;for(var m=0;m0&&(E=1/Math.sqrt(E)),a[0]=u[0]*E,a[1]=u[1]*E,a[2]=u[2]*E,a},_.number=Ya,_.offscreenCanvasSupported=Rn,_.ortho=function(a,u,c,m,x,E,A){var I=1/(u-c),D=1/(m-x),N=1/(E-A);return a[0]=-2*I,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*D,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*N,a[11]=0,a[12]=(u+c)*I,a[13]=(x+m)*D,a[14]=(A+E)*N,a[15]=1,a},_.parseGlyphPBF=function(a){return new zt(a).readFields(xr,[])},_.pbf=zt,_.performSymbolLayout=function(a,u,c,m,x,E,A){a.createArrays(),a.tilePixelRatio=8192/(512*a.overscaling),a.compareText={},a.iconsNeedLinear=!1;var I=a.layers[0].layout,D=a.layers[0]._unevaluatedLayout._values,N={};if(a.textSizeData.kind==="composite"){var j=a.textSizeData,X=j.maxZoom;N.compositeTextSizes=[D["text-size"].possiblyEvaluate(new B(j.minZoom),A),D["text-size"].possiblyEvaluate(new B(X),A)]}if(a.iconSizeData.kind==="composite"){var ee=a.iconSizeData,R=ee.maxZoom;N.compositeIconSizes=[D["icon-size"].possiblyEvaluate(new B(ee.minZoom),A),D["icon-size"].possiblyEvaluate(new B(R),A)]}N.layoutTextSize=D["text-size"].possiblyEvaluate(new B(a.zoom+1),A),N.layoutIconSize=D["icon-size"].possiblyEvaluate(new B(a.zoom+1),A),N.textMaxSize=D["text-size"].possiblyEvaluate(new B(18));for(var Ce=24*I.get("text-line-height"),Oe=I.get("text-rotation-alignment")==="map"&&I.get("symbol-placement")!=="point",Qe=I.get("text-keep-upright"),He=I.get("text-size"),xt=function(){var jt=Vt[It],fr=I.get("text-font").evaluate(jt,{},A).join(","),Lr=He.evaluate(jt,{},A),Gr=N.layoutTextSize.evaluate(jt,{},A),Dn=N.layoutIconSize.evaluate(jt,{},A),sn={horizontal:{},vertical:void 0},zn=jt.text,cn=[0,0];if(zn){var Ei=zn.toString(),Qn=24*I.get("text-letter-spacing").evaluate(jt,{},A),Tn=function(zi){for(var fa=0,va=zi;fa=8192||qd.y<0||qd.y>=8192||function(fo,gc,A0,ah,Kd,ag,sd,_c,ud,wp,ld,cd,Qd,Wv,Cp,Gv,Xv,$v,Yv,qv,bu,fd,Kv,yc,Hs){var Qv,oh,Nh,Uh,zh,Zh=fo.addToLineVertexArray(gc,A0),Jv=0,em=0,tm=0,rm=0,Jd=-1,ev=-1,Xc={},nm=we(""),tv=0,rv=0;if(_c._unevaluatedLayout.getValue("text-radial-offset")===void 0?(tv=(Qv=_c.layout.get("text-offset").evaluate(bu,{},yc).map(function(dd){return 24*dd}))[0],rv=Qv[1]):(tv=24*_c.layout.get("text-radial-offset").evaluate(bu,{},yc),rv=Ye),fo.allowVerticalPlacement&&ah.vertical){var og=_c.layout.get("text-rotate").evaluate(bu,{},yc)+90;Uh=new da(ud,gc,wp,ld,cd,ah.vertical,Qd,Wv,Cp,og),sd&&(zh=new da(ud,gc,wp,ld,cd,sd,Xv,$v,Cp,og))}if(Kd){var im=_c.layout.get("icon-rotate").evaluate(bu,{}),sg=_c.layout.get("icon-text-fit")!=="none",ug=ke(Kd,im,Kv,sg),nv=sd?ke(sd,im,Kv,sg):void 0;Nh=new da(ud,gc,wp,ld,cd,Kd,Xv,$v,!1,im),Jv=4*ug.length;var am=fo.iconSizeData,Vh=null;am.kind==="source"?(Vh=[128*_c.layout.get("icon-size").evaluate(bu,{})])[0]>32640&&ft(fo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):am.kind==="composite"&&((Vh=[128*fd.compositeIconSizes[0].evaluate(bu,{},yc),128*fd.compositeIconSizes[1].evaluate(bu,{},yc)])[0]>32640||Vh[1]>32640)&&ft(fo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),fo.addSymbols(fo.icon,ug,Vh,qv,Yv,bu,!1,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),Jd=fo.icon.placedSymbolArray.length-1,nv&&(em=4*nv.length,fo.addSymbols(fo.icon,nv,Vh,qv,Yv,bu,tt.vertical,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),ev=fo.icon.placedSymbolArray.length-1)}for(var om in ah.horizontal){var hd=ah.horizontal[om];if(!oh){nm=we(hd.text);var lg=_c.layout.get("text-rotate").evaluate(bu,{},yc);oh=new da(ud,gc,wp,ld,cd,hd,Qd,Wv,Cp,lg)}var cg=hd.positionedLines.length===1;if(tm+=Me(fo,gc,hd,ag,_c,Cp,bu,Gv,Zh,ah.vertical?tt.horizontal:tt.horizontalOnly,cg?Object.keys(ah.horizontal):[om],Xc,Jd,fd,yc),cg)break}ah.vertical&&(rm+=Me(fo,gc,ah.vertical,ag,_c,Cp,bu,Gv,Zh,tt.vertical,["vertical"],Xc,ev,fd,yc));var fg=oh?oh.boxStartIndex:fo.collisionBoxArray.length,T0=oh?oh.boxEndIndex:fo.collisionBoxArray.length,hg=Uh?Uh.boxStartIndex:fo.collisionBoxArray.length,pg=Uh?Uh.boxEndIndex:fo.collisionBoxArray.length,w0=Nh?Nh.boxStartIndex:fo.collisionBoxArray.length,C0=Nh?Nh.boxEndIndex:fo.collisionBoxArray.length,R0=zh?zh.boxStartIndex:fo.collisionBoxArray.length,M0=zh?zh.boxEndIndex:fo.collisionBoxArray.length,$c=-1,pd=function(dd,sm){return dd&&dd.circleDiameter?Math.max(dd.circleDiameter,sm):sm};$c=pd(oh,$c),$c=pd(Uh,$c),$c=pd(Nh,$c);var dg=($c=pd(zh,$c))>-1?1:0;dg&&($c*=Hs/24),fo.glyphOffsetArray.length>=_n.MAX_GLYPHS&&ft("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),bu.sortKey!==void 0&&fo.addToSortKeyRanges(fo.symbolInstances.length,bu.sortKey),fo.symbolInstances.emplaceBack(gc.x,gc.y,Xc.right>=0?Xc.right:-1,Xc.center>=0?Xc.center:-1,Xc.left>=0?Xc.left:-1,Xc.vertical||-1,Jd,ev,nm,fg,T0,hg,pg,w0,C0,R0,M0,wp,tm,rm,Jv,em,dg,0,Qd,tv,rv,$c)}(zi,qd,ig,va,Xi,js,vl,zi.layers[0],zi.collisionBoxArray,fa.index,fa.sourceLayerIndex,zi.index,pc,vc,Xd,ws,dc,Ep,td,Vl,fa,ns,qi,Zl,Ba)};if(Hc==="line")for(var Ap=0,rd=Xu(fa.geometry,0,0,8192,8192);Ap1){var rh=Gi(Bh,ed,va.vertical||$u,Xi,24,Cs);rh&&eh(Bh,rh)}}else if(fa.type==="Polygon")for(var nh=0,Tp=pp(fa.geometry,0);nh=Li.maxzoom||Li.visibility!=="none"&&(ie(ci,this.zoom,se),(er[Li.id]=Li.createBucket({index:V.bucketLayerIDs.length,layers:ci,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Kr,sourceID:this.source})).populate(Hr,Tr,this.tileID.canonical),V.bucketLayerIDs.push(ci.map(function(Ai){return Ai.id})))}}}var Si=_.mapObject(Tr.glyphDependencies,function(Ai){return Object.keys(Ai).map(Number)});Object.keys(Si).length?xe.send("getGlyphs",{uid:this.uid,stacks:Si},function(Ai,mi){q||(q=Ai,De=mi,Ia.call(Je))}):De={};var Xo=Object.keys(Tr.iconDependencies);Xo.length?xe.send("getImages",{icons:Xo,source:this.source,tileID:this.tileID,type:"icons"},function(Ai,mi){q||(q=Ai,et=mi,Ia.call(Je))}):et={};var Ki=Object.keys(Tr.patternDependencies);function Ia(){if(q)return Re(q);if(De&&et&&be){var Ai=new ae(De),mi=new _.ImageAtlas(et,be);for(var Ti in er){var Pa=er[Ti];Pa instanceof _.SymbolBucket?(ie(Pa.layers,this.zoom,se),_.performSymbolLayout(Pa,De,Ai.positions,et,mi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Pa.hasPattern&&(Pa instanceof _.LineBucket||Pa instanceof _.FillBucket||Pa instanceof _.FillExtrusionBucket)&&(ie(Pa.layers,this.zoom,se),Pa.addFeatures(Tr,this.tileID.canonical,mi.patternPositions))}this.status="done",Re(null,{buckets:_.values(er).filter(function(cu){return!cu.isEmpty()}),featureIndex:V,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ai.image,imageAtlas:mi,glyphMap:this.returnDependencies?De:null,iconMap:this.returnDependencies?et:null,glyphPositions:this.returnDependencies?Ai.positions:null})}}Ki.length?xe.send("getImages",{icons:Ki,source:this.source,tileID:this.tileID,type:"patterns"},function(Ai,mi){q||(q=Ai,be=mi,Ia.call(Je))}):be={},Ia.call(this)};var ht=function(W,Q,se,xe){this.actor=W,this.layerIndex=Q,this.availableImages=se,this.loadVectorData=xe||Ke,this.loading={},this.loaded={}};ht.prototype.loadTile=function(W,Q){var se=this,xe=W.uid;this.loading||(this.loading={});var Re=!!(W&&W.request&&W.request.collectResourceTiming)&&new _.RequestPerformance(W.request),Je=this.loading[xe]=new qe(W);Je.abort=this.loadVectorData(W,function(lt,V){if(delete se.loading[xe],lt||!V)return Je.status="done",se.loaded[xe]=Je,Q(lt);var q=V.rawData,De={};V.expires&&(De.expires=V.expires),V.cacheControl&&(De.cacheControl=V.cacheControl);var et={};if(Re){var be=Re.finish();be&&(et.resourceTiming=JSON.parse(JSON.stringify(be)))}Je.vectorTile=V.vectorTile,Je.parse(V.vectorTile,se.layerIndex,se.availableImages,se.actor,function(er,Tr){if(er||!Tr)return Q(er);Q(null,_.extend({rawTileData:q.slice(0)},Tr,De,et))}),se.loaded=se.loaded||{},se.loaded[xe]=Je})},ht.prototype.reloadTile=function(W,Q){var se=this,xe=this.loaded,Re=W.uid,Je=this;if(xe&&xe[Re]){var lt=xe[Re];lt.showCollisionBoxes=W.showCollisionBoxes;var V=function(q,De){var et=lt.reloadCallback;et&&(delete lt.reloadCallback,lt.parse(lt.vectorTile,Je.layerIndex,se.availableImages,Je.actor,et)),Q(q,De)};lt.status==="parsing"?lt.reloadCallback=V:lt.status==="done"&&(lt.vectorTile?lt.parse(lt.vectorTile,this.layerIndex,this.availableImages,this.actor,V):V())}},ht.prototype.abortTile=function(W,Q){var se=this.loading,xe=W.uid;se&&se[xe]&&se[xe].abort&&(se[xe].abort(),delete se[xe]),Q()},ht.prototype.removeTile=function(W,Q){var se=this.loaded,xe=W.uid;se&&se[xe]&&delete se[xe],Q()};var mt=_.window.ImageBitmap,Dt=function(){this.loaded={}};function Yt(W,Q){if(W.length!==0){Ht(W[0],Q);for(var se=1;se=Math.abs(V)?se-q+V:V-q+se,se=q}se+xe>=0!=!!Q&&W.reverse()}Dt.prototype.loadTile=function(W,Q){var se=W.uid,xe=W.encoding,Re=W.rawImageData,Je=mt&&Re instanceof mt?this.getImageData(Re):Re,lt=new _.DEMData(se,Je,xe);this.loaded=this.loaded||{},this.loaded[se]=lt,Q(null,lt)},Dt.prototype.getImageData=function(W){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(W.width,W.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=W.width,this.offscreenCanvas.height=W.height,this.offscreenCanvasContext.drawImage(W,0,0,W.width,W.height);var Q=this.offscreenCanvasContext.getImageData(-1,-1,W.width+2,W.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new _.RGBAImage({width:Q.width,height:Q.height},Q.data)},Dt.prototype.removeTile=function(W){var Q=this.loaded,se=W.uid;Q&&Q[se]&&delete Q[se]};var ir=_.vectorTile.VectorTileFeature.prototype.toGeoJSON,Xt=function(W){this._feature=W,this.extent=_.EXTENT,this.type=W.type,this.properties=W.tags,"id"in W&&!isNaN(W.id)&&(this.id=parseInt(W.id,10))};Xt.prototype.loadGeometry=function(){if(this._feature.type===1){for(var W=[],Q=0,se=this._feature.geometry;Q>31}function K(W,Q){for(var se=W.loadGeometry(),xe=W.type,Re=0,Je=0,lt=se.length,V=0;V>1;(function Kr(Hr,$r,hi,Qr,vi,Yi){for(;vi>Qr;){if(vi-Qr>600){var ci=vi-Qr+1,Li=hi-Qr+1,Si=Math.log(ci),Xo=.5*Math.exp(2*Si/3),Ki=.5*Math.sqrt(Si*Xo*(ci-Xo)/ci)*(Li-ci/2<0?-1:1);Kr(Hr,$r,hi,Math.max(Qr,Math.floor(hi-Li*Xo/ci+Ki)),Math.min(vi,Math.floor(hi+(ci-Li)*Xo/ci+Ki)),Yi)}var Ia=$r[2*hi+Yi],Ai=Qr,mi=vi;for(Ae(Hr,$r,Qr,hi),$r[2*vi+Yi]>Ia&&Ae(Hr,$r,Qr,vi);AiIa;)mi--}$r[2*Qr+Yi]===Ia?Ae(Hr,$r,Qr,mi):Ae(Hr,$r,++mi,vi),mi<=hi&&(Qr=mi+1),hi<=mi&&(vi=mi-1)}})(et,be,ar,Tr,bn,nn%2),De(et,be,er,Tr,ar-1,nn+1),De(et,be,er,ar+1,bn,nn+1)}})(lt,V,xe,0,lt.length-1,0)};Mt.prototype.range=function(W,Q,se,xe){return function(Re,Je,lt,V,q,De,et){for(var be,er,Tr=[0,Re.length-1,0],bn=[];Tr.length;){var nn=Tr.pop(),ar=Tr.pop(),Kr=Tr.pop();if(ar-Kr<=et)for(var Hr=Kr;Hr<=ar;Hr++)er=Je[2*Hr+1],(be=Je[2*Hr])>=lt&&be<=q&&er>=V&&er<=De&&bn.push(Re[Hr]);else{var $r=Math.floor((Kr+ar)/2);er=Je[2*$r+1],(be=Je[2*$r])>=lt&&be<=q&&er>=V&&er<=De&&bn.push(Re[$r]);var hi=(nn+1)%2;(nn===0?lt<=be:V<=er)&&(Tr.push(Kr),Tr.push($r-1),Tr.push(hi)),(nn===0?q>=be:De>=er)&&(Tr.push($r+1),Tr.push(ar),Tr.push(hi))}}return bn}(this.ids,this.coords,W,Q,se,xe,this.nodeSize)},Mt.prototype.within=function(W,Q,se){return function(xe,Re,Je,lt,V,q){for(var De=[0,xe.length-1,0],et=[],be=V*V;De.length;){var er=De.pop(),Tr=De.pop(),bn=De.pop();if(Tr-bn<=q)for(var nn=bn;nn<=Tr;nn++)Ue(Re[2*nn],Re[2*nn+1],Je,lt)<=be&&et.push(xe[nn]);else{var ar=Math.floor((bn+Tr)/2),Kr=Re[2*ar],Hr=Re[2*ar+1];Ue(Kr,Hr,Je,lt)<=be&&et.push(xe[ar]);var $r=(er+1)%2;(er===0?Je-V<=Kr:lt-V<=Hr)&&(De.push(bn),De.push(ar-1),De.push($r)),(er===0?Je+V>=Kr:lt+V>=Hr)&&(De.push(ar+1),De.push(Tr),De.push($r))}}return et}(this.ids,this.coords,W,Q,se,this.nodeSize)};var yr={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(W){return W}},lr=function(W){this.options=$i(Object.create(yr),W),this.trees=new Array(this.options.maxZoom+1)};function Cn(W,Q,se,xe,Re){return{x:W,y:Q,zoom:1/0,id:se,parentId:-1,numPoints:xe,properties:Re}}function mn(W,Q){var se=W.geometry.coordinates,xe=se[1];return{x:jn(se[0]),y:rn(xe),zoom:1/0,index:Q,parentId:-1}}function un(W){return{type:"Feature",id:W.id,properties:oi(W),geometry:{type:"Point",coordinates:[(xe=W.x,360*(xe-.5)),(Q=W.y,se=(180-360*Q)*Math.PI/180,360*Math.atan(Math.exp(se))/Math.PI-90)]}};var Q,se,xe}function oi(W){var Q=W.numPoints,se=Q>=1e4?Math.round(Q/1e3)+"k":Q>=1e3?Math.round(Q/100)/10+"k":Q;return $i($i({},W.properties),{cluster:!0,cluster_id:W.id,point_count:Q,point_count_abbreviated:se})}function jn(W){return W/360+.5}function rn(W){var Q=Math.sin(W*Math.PI/180),se=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return se<0?0:se>1?1:se}function $i(W,Q){for(var se in Q)W[se]=Q[se];return W}function Wi(W){return W.x}function Zi(W){return W.y}function Jn(W,Q,se,xe,Re,Je){var lt=Re-se,V=Je-xe;if(lt!==0||V!==0){var q=((W-se)*lt+(Q-xe)*V)/(lt*lt+V*V);q>1?(se=Re,xe=Je):q>0&&(se+=lt*q,xe+=V*q)}return(lt=W-se)*lt+(V=Q-xe)*V}function Bn(W,Q,se,xe){var Re={id:W===void 0?null:W,type:Q,geometry:se,tags:xe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Je){var lt=Je.geometry,V=Je.type;if(V==="Point"||V==="MultiPoint"||V==="LineString")Do(Je,lt);else if(V==="Polygon"||V==="MultiLineString")for(var q=0;q0&&(lt+=xe?(Re*De-q*Je)/2:Math.sqrt(Math.pow(q-Re,2)+Math.pow(De-Je,2))),Re=q,Je=De}var et=Q.length-3;Q[2]=1,function be(er,Tr,bn,nn){for(var ar,Kr=nn,Hr=bn-Tr>>1,$r=bn-Tr,hi=er[Tr],Qr=er[Tr+1],vi=er[bn],Yi=er[bn+1],ci=Tr+3;ciKr)ar=ci,Kr=Li;else if(Li===Kr){var Si=Math.abs(ci-Hr);Si<$r&&(ar=ci,$r=Si)}}Kr>nn&&(ar-Tr>3&&be(er,Tr,ar,nn),er[ar+2]=Kr,bn-ar>3&&be(er,ar,bn,nn))}(Q,0,et,se),Q[et+2]=1,Q.size=Math.abs(lt),Q.start=0,Q.end=Q.size}function F(W,Q,se,xe){for(var Re=0;Re1?1:se}function Ne(W,Q,se,xe,Re,Je,lt,V){if(xe/=Q,Je>=(se/=Q)&<=xe)return null;for(var q=[],De=0;De=se&&bn=xe)){var nn=[];if(er==="Point"||er==="MultiPoint")_t(be,nn,se,xe,Re);else if(er==="LineString")Kt(be,nn,se,xe,Re,!1,V.lineMetrics);else if(er==="MultiLineString")Ve(be,nn,se,xe,Re,!1);else if(er==="Polygon")Ve(be,nn,se,xe,Re,!0);else if(er==="MultiPolygon")for(var ar=0;ar=se&<<=xe&&(Q.push(W[Je]),Q.push(W[Je+1]),Q.push(W[Je+2]))}}function Kt(W,Q,se,xe,Re,Je,lt){for(var V,q,De=Ar(W),et=Re===0?sr:dr,be=W.start,er=0;erse&&(q=et(De,Tr,bn,ar,Kr,se),lt&&(De.start=be+V*q)):Hr>xe?$r=se&&(q=et(De,Tr,bn,ar,Kr,se),hi=!0),$r>xe&&Hr<=xe&&(q=et(De,Tr,bn,ar,Kr,xe),hi=!0),!Je&&hi&&(lt&&(De.end=be+V*q),Q.push(De),De=Ar(W)),lt&&(be+=V)}var Qr=W.length-3;Tr=W[Qr],bn=W[Qr+1],nn=W[Qr+2],(Hr=Re===0?Tr:bn)>=se&&Hr<=xe&&wt(De,Tr,bn,nn),Qr=De.length-3,Je&&Qr>=3&&(De[Qr]!==De[0]||De[Qr+1]!==De[1])&&wt(De,De[0],De[1],De[2]),De.length&&Q.push(De)}function Ar(W){var Q=[];return Q.size=W.size,Q.start=W.start,Q.end=W.end,Q}function Ve(W,Q,se,xe,Re,Je){for(var lt=0;ltlt.maxX&&(lt.maxX=et),be>lt.maxY&&(lt.maxY=be)}return lt}function si(W,Q,se,xe){var Re=Q.geometry,Je=Q.type,lt=[];if(Je==="Point"||Je==="MultiPoint")for(var V=0;V0&&Q.size<(Re?lt:xe))se.numPoints+=Q.length/3;else{for(var V=[],q=0;qlt)&&(se.numSimplified++,V.push(Q[q]),V.push(Q[q+1])),se.numPoints++;Re&&function(De,et){for(var be=0,er=0,Tr=De.length,bn=Tr-2;er0===et)for(er=0,Tr=De.length;er24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var xe=function(Re,Je){var lt=[];if(Re.type==="FeatureCollection")for(var V=0;V=xe;De--){var et=+Date.now();V=this._cluster(V,De),this.trees[De]=new Mt(V,Wi,Zi,Je,Float32Array),se&&console.log("z%d: %d clusters in %dms",De,V.length,+Date.now()-et)}return se&&console.timeEnd("total time"),this},lr.prototype.getClusters=function(W,Q){var se=((W[0]+180)%360+360)%360-180,xe=Math.max(-90,Math.min(90,W[1])),Re=W[2]===180?180:((W[2]+180)%360+360)%360-180,Je=Math.max(-90,Math.min(90,W[3]));if(W[2]-W[0]>=360)se=-180,Re=180;else if(se>Re){var lt=this.getClusters([se,xe,180,Je],Q),V=this.getClusters([-180,xe,Re,Je],Q);return lt.concat(V)}for(var q=this.trees[this._limitZoom(Q)],De=[],et=0,be=q.range(jn(se),rn(Je),jn(Re),rn(xe));etQ&&(er+=nn.numPoints||1)}if(er>=Je){for(var ar=q.x*be,Kr=q.y*be,Hr=Re&&be>1?this._map(q,!0):null,$r=(V<<5)+(Q+1)+this.points.length,hi=0,Qr=et;hi1)for(var ci=0,Li=et;ci>5},lr.prototype._getOriginZoom=function(W){return(W-this.points.length)%32},lr.prototype._map=function(W,Q){if(W.numPoints)return Q?$i({},W.properties):W.properties;var se=this.points[W.index].properties,xe=this.options.map(se);return Q&&xe===se?$i({},xe):xe},la.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},la.prototype.splitTile=function(W,Q,se,xe,Re,Je,lt){for(var V=[W,Q,se,xe],q=this.options,De=q.debug;V.length;){xe=V.pop(),se=V.pop(),Q=V.pop(),W=V.pop();var et=1<1&&console.time("creation"),er=this.tiles[be]=xn(W,Q,se,xe,q),this.tileCoords.push({z:Q,x:se,y:xe}),De)){De>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,se,xe,er.numFeatures,er.numPoints,er.numSimplified),console.timeEnd("creation"));var Tr="z"+Q;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(er.source=W,Re){if(Q===q.maxZoom||Q===Re)continue;var bn=1<1&&console.time("clipping");var nn,ar,Kr,Hr,$r,hi,Qr=.5*q.buffer/q.extent,vi=.5-Qr,Yi=.5+Qr,ci=1+Qr;nn=ar=Kr=Hr=null,$r=Ne(W,et,se-Qr,se+Yi,0,er.minX,er.maxX,q),hi=Ne(W,et,se+vi,se+ci,0,er.minX,er.maxX,q),W=null,$r&&(nn=Ne($r,et,xe-Qr,xe+Yi,1,er.minY,er.maxY,q),ar=Ne($r,et,xe+vi,xe+ci,1,er.minY,er.maxY,q),$r=null),hi&&(Kr=Ne(hi,et,xe-Qr,xe+Yi,1,er.minY,er.maxY,q),Hr=Ne(hi,et,xe+vi,xe+ci,1,er.minY,er.maxY,q),hi=null),De>1&&console.timeEnd("clipping"),V.push(nn||[],Q+1,2*se,2*xe),V.push(ar||[],Q+1,2*se,2*xe+1),V.push(Kr||[],Q+1,2*se+1,2*xe),V.push(Hr||[],Q+1,2*se+1,2*xe+1)}}},la.prototype.getTile=function(W,Q,se){var xe=this.options,Re=xe.extent,Je=xe.debug;if(W<0||W>24)return null;var lt=1<1&&console.log("drilling down to z%d-%d-%d",W,Q,se);for(var q,De=W,et=Q,be=se;!q&&De>0;)De--,et=Math.floor(et/2),be=Math.floor(be/2),q=this.tiles[sa(De,et,be)];return q&&q.source?(Je>1&&console.log("found parent tile z%d-%d-%d",De,et,be),Je>1&&console.time("drilling down"),this.splitTile(q.source,De,et,be,W,Q,se),Je>1&&console.timeEnd("drilling down"),this.tiles[V]?En(this.tiles[V],Re):null):null};var Ks=function(W){function Q(se,xe,Re,Je){W.call(this,se,xe,Re,Eo),Je&&(this.loadGeoJSON=Je)}return W&&(Q.__proto__=W),(Q.prototype=Object.create(W&&W.prototype)).constructor=Q,Q.prototype.loadData=function(se,xe){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=xe,this._pendingLoadDataParams=se,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Q.prototype._loadData=function(){var se=this;if(this._pendingCallback&&this._pendingLoadDataParams){var xe=this._pendingCallback,Re=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Je=!!(Re&&Re.request&&Re.request.collectResourceTiming)&&new _.RequestPerformance(Re.request);this.loadGeoJSON(Re,function(lt,V){if(lt||!V)return xe(lt);if(typeof V!="object")return xe(new Error("Input data given to '"+Re.source+"' is not a valid GeoJSON object."));(function er(Tr,bn){var nn,ar=Tr&&Tr.type;if(ar==="FeatureCollection")for(nn=0;nn=0?0:h.button},U.remove=function(h){h.parentNode&&h.parentNode.removeChild(h)};var Ht=function(h){function d(){h.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new _.RGBAImage({width:1,height:1}),this.dirty=!0}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.isLoaded=function(){return this.loaded},d.prototype.setLoaded=function(p){if(this.loaded!==p&&(this.loaded=p,p)){for(var g=0,S=this.requestors;g=0?1.2:1))}function Pr(h,d,p,g,S,w,C){for(var P=0;P65535)Z(new Error("glyphs > 65535 not supported"));else if(ge.ranges[Fe])Z(null,{stack:Y,id:ce,glyph:_e});else{var Pe=ge.requests[Fe];Pe||(Pe=ge.requests[Fe]=[],ur.loadGlyphRange(Y,Fe,p.url,p.requestManager,function(Xe,we){if(we){for(var Ge in we)p._doesCharSupportLocalGlyph(+Ge)||(ge.glyphs[+Ge]=we[+Ge]);ge.ranges[Fe]=!0}for(var ct=0,At=Pe;ct1&&(P=h[++C]);var Y=Math.abs(Z-P.left),ce=Math.abs(Z-P.right),ge=Math.min(Y,ce),_e=void 0,Fe=S/p*(g+1);if(P.isDash){var Pe=g-Math.abs(Fe);_e=Math.sqrt(ge*ge+Pe*Pe)}else _e=g-Math.sqrt(ge*ge+Fe*Fe);this.data[w+Z]=Math.max(0,Math.min(255,_e+128))}},ft.prototype.addRegularDash=function(h){for(var d=h.length-1;d>=0;--d){var p=h[d],g=h[d+1];p.zeroLength?h.splice(d,1):g&&g.isDash===p.isDash&&(g.left=p.left,h.splice(d,1))}var S=h[0],w=h[h.length-1];S.isDash===w.isDash&&(S.left=w.left-this.width,w.right=S.right+this.width);for(var C=this.width*this.nextRow,P=0,Z=h[P],Y=0;Y1&&(Z=h[++P]);var ce=Math.abs(Y-Z.left),ge=Math.abs(Y-Z.right),_e=Math.min(ce,ge);this.data[C+Y]=Math.max(0,Math.min(255,(Z.isDash?_e:-_e)+128))}},ft.prototype.addDash=function(h,d){var p=d?7:0,g=2*p+1;if(this.nextRow+g>this.height)return _.warnOnce("LineAtlas out of space"),null;for(var S=0,w=0;w=p&&h.x=g&&h.y0&&(Y[new _.OverscaledTileID(p.overscaledZ,C,g.z,w,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,p.wrap,g.z,g.x,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,Z,g.z,P,g.y-1).key]={backfilled:!1}),g.y+10&&(S.resourceTiming=p._resourceTiming,p._resourceTiming=[]),p.fire(new _.Event("data",S))}})},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setData=function(p){var g=this;return this._data=p,this.fire(new _.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(S){if(S)g.fire(new _.ErrorEvent(S));else{var w={dataType:"source",sourceDataType:"content"};g._collectResourceTiming&&g._resourceTiming&&g._resourceTiming.length>0&&(w.resourceTiming=g._resourceTiming,g._resourceTiming=[]),g.fire(new _.Event("data",w))}}),this},d.prototype.getClusterExpansionZoom=function(p,g){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:p,source:this.id},g),this},d.prototype.getClusterChildren=function(p,g){return this.actor.send("geojson.getClusterChildren",{clusterId:p,source:this.id},g),this},d.prototype.getClusterLeaves=function(p,g,S,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:p,limit:g,offset:S},w),this},d.prototype._updateWorkerData=function(p){var g=this;this._loaded=!1;var S=_.extend({},this.workerOptions),w=this._data;typeof w=="string"?(S.request=this.map._requestManager.transformRequest(_.browser.resolveURL(w),_.ResourceType.Source),S.request.collectResourceTiming=this._collectResourceTiming):S.data=JSON.stringify(w),this.actor.send(this.type+".loadData",S,function(C,P){g._removed||P&&P.abandoned||(g._loaded=!0,P&&P.resourceTiming&&P.resourceTiming[g.id]&&(g._resourceTiming=P.resourceTiming[g.id].slice(0)),g.actor.send(g.type+".coalesce",{source:S.source},null),p(C))})},d.prototype.loaded=function(){return this._loaded},d.prototype.loadTile=function(p,g){var S=this,w=p.actor?"reloadTile":"loadTile";p.actor=this.actor,p.request=this.actor.send(w,{type:this.type,uid:p.uid,tileID:p.tileID,zoom:p.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:_.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(C,P){return delete p.request,p.unloadVectorData(),p.aborted?g(null):C?g(C):(p.loadVectorData(P,S.map.painter,w==="reloadTile"),g(null))})},d.prototype.abortTile=function(p){p.request&&(p.request.cancel(),delete p.request),p.aborted=!0},d.prototype.unloadTile=function(p){p.unloadVectorData(),this.actor.send("removeTile",{uid:p.uid,type:this.type,source:this.id})},d.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},d.prototype.serialize=function(){return _.extend({},this._options,{type:this.type,data:this._data})},d.prototype.hasTransition=function(){return!1},d}(_.Evented),dt=_.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ue=function(h){function d(p,g,S,w){h.call(this),this.id=p,this.dispatcher=S,this.coordinates=g.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(w),this.options=g}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(p,g){var S=this;this._loaded=!1,this.fire(new _.Event("dataloading",{dataType:"source"})),this.url=this.options.url,_.getImage(this.map._requestManager.transformRequest(this.url,_.ResourceType.Image),function(w,C){S._loaded=!0,w?S.fire(new _.ErrorEvent(w)):C&&(S.image=C,p&&(S.coordinates=p),g&&g(),S._finishLoading())})},d.prototype.loaded=function(){return this._loaded},d.prototype.updateImage=function(p){var g=this;return this.image&&p.url?(this.options.url=p.url,this.load(p.coordinates,function(){g.texture=null}),this):this},d.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new _.Event("data",{dataType:"source",sourceDataType:"metadata"})))},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setCoordinates=function(p){var g=this;this.coordinates=p;var S=p.map(_.MercatorCoordinate.fromLngLat);this.tileID=function(C){for(var P=1/0,Z=1/0,Y=-1/0,ce=-1/0,ge=0,_e=C;ge<_e.length;ge+=1){var Fe=_e[ge];P=Math.min(P,Fe.x),Z=Math.min(Z,Fe.y),Y=Math.max(Y,Fe.x),ce=Math.max(ce,Fe.y)}var Pe=Math.max(Y-P,ce-Z),Xe=Math.max(0,Math.floor(-Math.log(Pe)/Math.LN2)),we=Math.pow(2,Xe);return new _.CanonicalTileID(Xe,Math.floor((P+Y)/2*we),Math.floor((Z+ce)/2*we))}(S),this.minzoom=this.maxzoom=this.tileID.z;var w=S.map(function(C){return g.tileID.getTilePoint(C)._round()});return this._boundsArray=new _.StructArrayLayout4i8,this._boundsArray.emplaceBack(w[0].x,w[0].y,0,0),this._boundsArray.emplaceBack(w[1].x,w[1].y,_.EXTENT,0),this._boundsArray.emplaceBack(w[3].x,w[3].y,0,_.EXTENT),this._boundsArray.emplaceBack(w[2].x,w[2].y,_.EXTENT,_.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new _.Event("data",{dataType:"source",sourceDataType:"content"})),this},d.prototype.prepare=function(){if(Object.keys(this.tiles).length!==0&&this.image){var p=this.map.painter.context,g=p.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new _.Texture(p,this.image,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},d.prototype.loadTile=function(p,g){this.tileID&&this.tileID.equals(p.tileID.canonical)?(this.tiles[String(p.tileID.wrap)]=p,p.buckets={},g(null)):(p.state="errored",g(null))},d.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},d.prototype.hasTransition=function(){return!1},d}(_.Evented),We=function(h){function d(p,g,S,w){h.call(this,p,g,S,w),this.roundZoom=!0,this.type="video",this.options=g}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(){var p=this;this._loaded=!1;var g=this.options;this.urls=[];for(var S=0,w=g.urls;Sg.end(0)?this.fire(new _.ErrorEvent(new _.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+g.start(0)+" and "+g.end(0)+"-second mark."))):this.video.currentTime=p}},d.prototype.getVideo=function(){return this.video},d.prototype.onAdd=function(p){this.map||(this.map=p,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},d.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var p=this.map.painter.context,g=p.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.texSubImage2D(g.TEXTURE_2D,0,0,0,g.RGBA,g.UNSIGNED_BYTE,this.video)):(this.texture=new _.Texture(p,this.video,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this.video&&!this.video.paused},d}(Ue),it=function(h){function d(p,g,S,w){h.call(this,p,g,S,w),g.coordinates?Array.isArray(g.coordinates)&&g.coordinates.length===4&&!g.coordinates.some(function(C){return!Array.isArray(C)||C.length!==2||C.some(function(P){return typeof P!="number"})})||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "coordinates"'))),g.animate&&typeof g.animate!="boolean"&&this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'optional "animate" property must be a boolean value'))),g.canvas?typeof g.canvas=="string"||g.canvas instanceof _.window.HTMLCanvasElement||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,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 _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "canvas"'))),this.options=g,this.animate=g.animate===void 0||g.animate}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof _.window.HTMLCanvasElement?this.options.canvas:_.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new _.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())},d.prototype.getCanvas=function(){return this.canvas},d.prototype.onAdd=function(p){this.map=p,this.load(),this.canvas&&this.animate&&this.play()},d.prototype.onRemove=function(){this.pause()},d.prototype.prepare=function(){var p=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,p=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,p=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var g=this.map.painter.context,S=g.gl;for(var w in this.boundsBuffer||(this.boundsBuffer=g.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(p||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new _.Texture(g,this.canvas,S.RGBA,{premultiply:!0}),this.tiles){var C=this.tiles[w];C.state!=="loaded"&&(C.state="loaded",C.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this._playing},d.prototype._hasInvalidDimensions=function(){for(var p=0,g=[this.canvas.width,this.canvas.height];pthis.max){var C=this._getAndRemoveByKey(this.order[0]);C&&this.onRemove(C)}return this},mn.prototype.has=function(h){return h.wrapped().key in this.data},mn.prototype.getAndRemove=function(h){return this.has(h)?this._getAndRemoveByKey(h.wrapped().key):null},mn.prototype._getAndRemoveByKey=function(h){var d=this.data[h].shift();return d.timeout&&clearTimeout(d.timeout),this.data[h].length===0&&delete this.data[h],this.order.splice(this.order.indexOf(h),1),d.value},mn.prototype.getByKey=function(h){var d=this.data[h];return d?d[0].value:null},mn.prototype.get=function(h){return this.has(h)?this.data[h.wrapped().key][0].value:null},mn.prototype.remove=function(h,d){if(!this.has(h))return this;var p=h.wrapped().key,g=d===void 0?0:this.data[p].indexOf(d),S=this.data[p][g];return this.data[p].splice(g,1),S.timeout&&clearTimeout(S.timeout),this.data[p].length===0&&delete this.data[p],this.onRemove(S.value),this.order.splice(this.order.indexOf(p),1),this},mn.prototype.setMaxSize=function(h){for(this.max=h;this.order.length>this.max;){var d=this._getAndRemoveByKey(this.order[0]);d&&this.onRemove(d)}return this},mn.prototype.filter=function(h){var d=[];for(var p in this.data)for(var g=0,S=this.data[p];g1||(Math.abs(ce)>1&&(Math.abs(ce+_e)===1?ce+=_e:Math.abs(ce-_e)===1&&(ce-=_e)),Y.dem&&Z.dem&&(Z.dem.backfillBorder(Y.dem,ce,ge),Z.neighboringTiles&&Z.neighboringTiles[Fe]&&(Z.neighboringTiles[Fe].backfilled=!0)))}},d.prototype.getTile=function(p){return this.getTileByID(p.key)},d.prototype.getTileByID=function(p){return this._tiles[p]},d.prototype._retainLoadedChildren=function(p,g,S,w){for(var C in this._tiles){var P=this._tiles[C];if(!(w[C]||!P.hasData()||P.tileID.overscaledZ<=g||P.tileID.overscaledZ>S)){for(var Z=P.tileID;P&&P.tileID.overscaledZ>g+1;){var Y=P.tileID.scaledTo(P.tileID.overscaledZ-1);(P=this._tiles[Y.key])&&P.hasData()&&(Z=Y)}for(var ce=Z;ce.overscaledZ>g;)if(p[(ce=ce.scaledTo(ce.overscaledZ-1)).key]){w[Z.key]=Z;break}}}},d.prototype.findLoadedParent=function(p,g){if(p.key in this._loadedParentTiles){var S=this._loadedParentTiles[p.key];return S&&S.tileID.overscaledZ>=g?S:null}for(var w=p.overscaledZ-1;w>=g;w--){var C=p.scaledTo(w),P=this._getLoadedTile(C);if(P)return P}},d.prototype._getLoadedTile=function(p){var g=this._tiles[p.key];return g&&g.hasData()?g:this._cache.getByKey(p.wrapped().key)},d.prototype.updateCacheSize=function(p){var g=Math.ceil(p.width/this._source.tileSize)+1,S=Math.ceil(p.height/this._source.tileSize)+1,w=Math.floor(g*S*5),C=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,w):w;this._cache.setMaxSize(C)},d.prototype.handleWrapJump=function(p){var g=Math.round((p-(this._prevLng===void 0?p:this._prevLng))/360);if(this._prevLng=p,g){var S={};for(var w in this._tiles){var C=this._tiles[w];C.tileID=C.tileID.unwrapTo(C.tileID.wrap+g),S[C.tileID.key]=C}for(var P in this._tiles=S,this._timers)clearTimeout(this._timers[P]),delete this._timers[P];for(var Z in this._tiles)this._setTileReloadTimer(Z,this._tiles[Z])}},d.prototype.update=function(p){var g=this;if(this.transform=p,this._sourceLoaded&&!this._paused){var S;this.updateCacheSize(p),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?S=p.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(mr){return new _.OverscaledTileID(mr.canonical.z,mr.wrap,mr.canonical.z,mr.canonical.x,mr.canonical.y)}):(S=p.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(S=S.filter(function(mr){return g._source.hasTile(mr)}))):S=[];var w=p.coveringZoomLevel(this._source),C=Math.max(w-d.maxOverzooming,this._source.minzoom),P=Math.max(w+d.maxUnderzooming,this._source.minzoom),Z=this._updateRetainedTiles(S,w);if(et(this._source.type)){for(var Y={},ce={},ge=0,_e=Object.keys(Z);ge<_e.length;ge+=1){var Fe=_e[ge],Pe=Z[Fe],Xe=this._tiles[Fe];if(Xe&&!(Xe.fadeEndTime&&Xe.fadeEndTime<=_.browser.now())){var we=this.findLoadedParent(Pe,C);we&&(this._addTile(we.tileID),Y[we.tileID.key]=we.tileID),ce[Fe]=Pe}}for(var Ge in this._retainLoadedChildren(ce,w,P,Z),Y)Z[Ge]||(this._coveredTiles[Ge]=!0,Z[Ge]=Y[Ge])}for(var ct in Z)this._tiles[ct].clearFadeHold();for(var At=0,$t=_.keysDifference(this._tiles,Z);At<$t.length;At+=1){var Nt=$t[At],tr=this._tiles[Nt];tr.hasSymbolBuckets&&!tr.holdingForFade()?tr.setHoldDuration(this.map._fadeDuration):tr.hasSymbolBuckets&&!tr.symbolFadeFinished()||this._removeTile(Nt)}this._updateLoadedParentTileCache()}},d.prototype.releaseSymbolFadeTiles=function(){for(var p in this._tiles)this._tiles[p].holdingForFade()&&this._removeTile(p)},d.prototype._updateRetainedTiles=function(p,g){for(var S={},w={},C=Math.max(g-d.maxOverzooming,this._source.minzoom),P=Math.max(g+d.maxUnderzooming,this._source.minzoom),Z={},Y=0,ce=p;Ythis._source.maxzoom){var Ge=Xe.children(this._source.maxzoom)[0],ct=this.getTile(Ge);if(ct&&ct.hasData()){S[Ge.key]=Ge;continue}}else{var At=Xe.children(this._source.maxzoom);if(S[At[0].key]&&S[At[1].key]&&S[At[2].key]&&S[At[3].key])continue}for(var $t=we.wasRequested(),Nt=Xe.overscaledZ-1;Nt>=C;--Nt){var tr=Xe.scaledTo(Nt);if(w[tr.key]||(w[tr.key]=!0,!(we=this.getTile(tr))&&$t&&(we=this._addTile(tr)),we&&(S[tr.key]=tr,$t=we.wasRequested(),we.hasData())))break}}}return S},d.prototype._updateLoadedParentTileCache=function(){for(var p in this._loadedParentTiles={},this._tiles){for(var g=[],S=void 0,w=this._tiles[p].tileID;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){S=this._loadedParentTiles[w.key];break}g.push(w.key);var C=w.scaledTo(w.overscaledZ-1);if(S=this._getLoadedTile(C))break;w=C}for(var P=0,Z=g;P0||(g.hasData()&&g.state!=="reloading"?this._cache.add(g.tileID,g,g.getExpiryTimeout()):(g.aborted=!0,this._abortTile(g),this._unloadTile(g))))},d.prototype.clearTiles=function(){for(var p in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(p);this._cache.reset()},d.prototype.tilesIn=function(p,g,S){var w=this,C=[],P=this.transform;if(!P)return C;for(var Z=S?P.getCameraQueryGeometry(p):p,Y=p.map(function(Nt){return P.pointCoordinate(Nt)}),ce=Z.map(function(Nt){return P.pointCoordinate(Nt)}),ge=this.getIds(),_e=1/0,Fe=1/0,Pe=-1/0,Xe=-1/0,we=0,Ge=ce;we=0&&an[1].y+Fr>=0){var In=Y.map(function(Un){return mr.getTilePoint(Un)}),Nn=ce.map(function(Un){return mr.getTilePoint(Un)});C.push({tile:tr,tileID:mr,queryGeometry:In,cameraQueryGeometry:Nn,scale:Nr})}}},$t=0;$t=_.browser.now())return!0}return!1},d.prototype.setFeatureState=function(p,g,S){this._state.updateState(p=p||"_geojsonTileLayer",g,S)},d.prototype.removeFeatureState=function(p,g,S){this._state.removeFeatureState(p=p||"_geojsonTileLayer",g,S)},d.prototype.getFeatureState=function(p,g){return this._state.getState(p=p||"_geojsonTileLayer",g)},d.prototype.setDependencies=function(p,g,S){var w=this._tiles[p];w&&w.setDependencies(g,S)},d.prototype.reloadTilesForDependencies=function(p,g){for(var S in this._tiles)this._tiles[S].hasDependency(p,g)&&this._reloadTile(S,"reloading");this._cache.filter(function(w){return!w.hasDependency(p,g)})},d}(_.Evented);function De(h,d){var p=Math.abs(2*h.wrap)-+(h.wrap<0),g=Math.abs(2*d.wrap)-+(d.wrap<0);return h.overscaledZ-d.overscaledZ||g-p||d.canonical.y-h.canonical.y||d.canonical.x-h.canonical.x}function et(h){return h==="raster"||h==="image"||h==="video"}function be(){return new _.window.Worker(Hf.workerUrl)}q.maxOverzooming=10,q.maxUnderzooming=3;var er="mapboxgl_preloaded_worker_pool",Tr=function(){this.active={}};Tr.prototype.acquire=function(h){if(!this.workers)for(this.workers=[];this.workers.length0?(g-w)/C:0;return this.points[S].mult(1-P).add(this.points[d].mult(P))};var Ki=function(h,d,p){var g=this.boxCells=[],S=this.circleCells=[];this.xCellCount=Math.ceil(h/p),this.yCellCount=Math.ceil(d/p);for(var w=0;w=-d[0]&&p<=d[0]&&g>=-d[1]&&g<=d[1]}function cu(h,d,p,g,S,w,C,P){var Z=g?h.textSizeData:h.iconSizeData,Y=_.evaluateSizeForZoom(Z,p.transform.zoom),ce=[256/p.width*2+1,256/p.height*2+1],ge=g?h.text.dynamicLayoutVertexArray:h.icon.dynamicLayoutVertexArray;ge.clear();for(var _e=h.lineVertexArray,Fe=g?h.text.placedSymbolArray:h.icon.placedSymbolArray,Pe=p.transform.width/p.transform.height,Xe=!1,we=0;weMath.abs(p.x-d.x)*g?{useVertical:!0}:(h===_.WritingMode.vertical?d.yp.x)?{needsFlipping:!0}:null}function $l(h,d,p,g,S,w,C,P,Z,Y,ce,ge,_e,Fe){var Pe,Xe=d/24,we=h.lineOffsetX*Xe,Ge=h.lineOffsetY*Xe;if(h.numGlyphs>1){var ct=h.glyphStartIndex+h.numGlyphs,At=h.lineStartIndex,$t=h.lineStartIndex+h.lineLength,Nt=ma(Xe,P,we,Ge,p,ce,ge,h,Z,w,_e);if(!Nt)return{notEnoughRoom:!0};var tr=mi(Nt.first.point,C).point,mr=mi(Nt.last.point,C).point;if(g&&!p){var Nr=Aa(h.writingMode,tr,mr,Fe);if(Nr)return Nr}Pe=[Nt.first];for(var Fr=h.glyphStartIndex+1;Fr0?Un.point:os(ge,Nn,an,1,S),hn=Aa(h.writingMode,an,ji,Fe);if(hn)return hn}var Kn=Ta(Xe*P.getoffsetX(h.glyphStartIndex),we,Ge,p,ce,ge,h.segment,h.lineStartIndex,h.lineStartIndex+h.lineLength,Z,w,_e);if(!Kn)return{notEnoughRoom:!0};Pe=[Kn]}for(var _i=0,ti=Pe;_i0?1:-1,Pe=0;g&&(Fe*=-1,Pe=Math.PI),Fe<0&&(Pe+=Math.PI);for(var Xe=Fe>0?P+C:P+C+1,we=S,Ge=S,ct=0,At=0,$t=Math.abs(_e),Nt=[];ct+At<=$t;){if((Xe+=Fe)=Z)return null;if(Ge=we,Nt.push(we),(we=ge[Xe])===void 0){var tr=new _.Point(Y.getx(Xe),Y.gety(Xe)),mr=mi(tr,ce);if(mr.signedDistanceFromCamera>0)we=ge[Xe]=mr.point;else{var Nr=Xe-Fe;we=os(ct===0?w:new _.Point(Y.getx(Nr),Y.gety(Nr)),tr,Ge,$t-ct+1,ce)}}ct+=At,At=Ge.dist(we)}var Fr=($t-ct)/At,an=we.sub(Ge),In=an.mult(Fr)._add(Ge);In._add(an._unit()._perp()._mult(p*Fe));var Nn=Pe+Math.atan2(we.y-Ge.y,we.x-Ge.x);return Nt.push(In),{point:In,angle:Nn,path:Nt}}Ki.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ki.prototype.insert=function(h,d,p,g,S){this._forEachCell(d,p,g,S,this._insertBoxCell,this.boxUid++),this.boxKeys.push(h),this.bboxes.push(d),this.bboxes.push(p),this.bboxes.push(g),this.bboxes.push(S)},Ki.prototype.insertCircle=function(h,d,p,g){this._forEachCell(d-g,p-g,d+g,p+g,this._insertCircleCell,this.circleUid++),this.circleKeys.push(h),this.circles.push(d),this.circles.push(p),this.circles.push(g)},Ki.prototype._insertBoxCell=function(h,d,p,g,S,w){this.boxCells[S].push(w)},Ki.prototype._insertCircleCell=function(h,d,p,g,S,w){this.circleCells[S].push(w)},Ki.prototype._query=function(h,d,p,g,S,w){if(p<0||h>this.width||g<0||d>this.height)return!S&&[];var C=[];if(h<=0&&d<=0&&this.width<=p&&this.height<=g){if(S)return!0;for(var P=0;P0:C},Ki.prototype._queryCircle=function(h,d,p,g,S){var w=h-p,C=h+p,P=d-p,Z=d+p;if(C<0||w>this.width||Z<0||P>this.height)return!g&&[];var Y=[];return this._forEachCell(w,P,C,Z,this._queryCellCircle,Y,{hitTest:g,circle:{x:h,y:d,radius:p},seenUids:{box:{},circle:{}}},S),g?Y.length>0:Y},Ki.prototype.query=function(h,d,p,g,S){return this._query(h,d,p,g,!1,S)},Ki.prototype.hitTest=function(h,d,p,g,S){return this._query(h,d,p,g,!0,S)},Ki.prototype.hitTestCircle=function(h,d,p,g){return this._queryCircle(h,d,p,!0,g)},Ki.prototype._queryCell=function(h,d,p,g,S,w,C,P){var Z=C.seenUids,Y=this.boxCells[S];if(Y!==null)for(var ce=this.bboxes,ge=0,_e=Y;ge<_e.length;ge+=1){var Fe=_e[ge];if(!Z.box[Fe]){Z.box[Fe]=!0;var Pe=4*Fe;if(h<=ce[Pe+2]&&d<=ce[Pe+3]&&p>=ce[Pe+0]&&g>=ce[Pe+1]&&(!P||P(this.boxKeys[Fe]))){if(C.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[Fe],x1:ce[Pe],y1:ce[Pe+1],x2:ce[Pe+2],y2:ce[Pe+3]})}}}var Xe=this.circleCells[S];if(Xe!==null)for(var we=this.circles,Ge=0,ct=Xe;GeC*C+P*P},Ki.prototype._circleAndRectCollide=function(h,d,p,g,S,w,C){var P=(w-g)/2,Z=Math.abs(h-(g+P));if(Z>P+p)return!1;var Y=(C-S)/2,ce=Math.abs(d-(S+Y));if(ce>Y+p)return!1;if(Z<=P||ce<=Y)return!0;var ge=Z-P,_e=ce-Y;return ge*ge+_e*_e<=p*p};var fi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Oa(h,d){for(var p=0;p=1;ji--)Un.push(In.path[ji]);for(var hn=1;hn0){for(var Xn=Un[0].clone(),pi=Un[0].clone(),qn=1;qn=Nr.x&&pi.x<=Fr.x&&Xn.y>=Nr.y&&pi.y<=Fr.y?[Un]:pi.xFr.x||pi.yFr.y?[]:_.clipLine([Un],Nr.x,Nr.y,Fr.x,Fr.y)}for(var $n=0,wo=ti;$n=this.screenRightBoundary||g<100||d>this.screenBottomBoundary},So.prototype.isInsideGrid=function(h,d,p,g){return p>=0&&h=0&&d0?(this.prevPlacement&&this.prevPlacement.variableOffsets[ge.crossTileID]&&this.prevPlacement.placements[ge.crossTileID]&&this.prevPlacement.placements[ge.crossTileID].text&&(Xe=this.prevPlacement.variableOffsets[ge.crossTileID].anchor),this.variableOffsets[ge.crossTileID]={textOffset:we,width:p,height:g,anchor:h,textBoxScale:S,prevAnchor:Xe},this.markUsedJustification(_e,h,ge,Fe),_e.allowVerticalPlacement&&(this.markUsedOrientation(_e,Fe,ge),this.placedOrientations[ge.crossTileID]=Fe),{shift:Ge,placedGlyphBoxes:ct}):void 0},yn.prototype.placeLayerBucketPart=function(h,d,p){var g=this,S=h.parameters,w=S.bucket,C=S.layout,P=S.posMatrix,Z=S.textLabelPlaneMatrix,Y=S.labelToScreenMatrix,ce=S.textPixelRatio,ge=S.holdingForFade,_e=S.collisionBoxArray,Fe=S.partiallyEvaluatedTextSize,Pe=S.collisionGroup,Xe=C.get("text-optional"),we=C.get("icon-optional"),Ge=C.get("text-allow-overlap"),ct=C.get("icon-allow-overlap"),At=C.get("text-rotation-alignment")==="map",$t=C.get("text-pitch-alignment")==="map",Nt=C.get("icon-text-fit")!=="none",tr=C.get("symbol-z-order")==="viewport-y",mr=Ge&&(ct||!w.hasIconData()||we),Nr=ct&&(Ge||!w.hasTextData()||Xe);!w.collisionArrays&&_e&&w.deserializeCollisionBoxes(_e);var Fr=function(hn,Kn){if(!d[hn.crossTileID])if(ge)g.placements[hn.crossTileID]=new Ru(!1,!1,!1);else{var _i,ti=!1,Xn=!1,pi=!0,qn=null,$n={box:null,offscreen:null},wo={box:null,offscreen:null},Na=null,Co=null,Lo=0,Wa=0,Ga=0;Kn.textFeatureIndex?Lo=Kn.textFeatureIndex:hn.useRuntimeCollisionCircles&&(Lo=hn.featureIndex),Kn.verticalTextFeatureIndex&&(Wa=Kn.verticalTextFeatureIndex);var Ss=Kn.textBox;if(Ss){var ls=function(Ni){var po=_.WritingMode.horizontal;if(w.allowVerticalPlacement&&!Ni&&g.prevPlacement){var io=g.prevPlacement.placedOrientations[hn.crossTileID];io&&(g.placedOrientations[hn.crossTileID]=io,g.markUsedOrientation(w,po=io,hn))}return po},Zu=function(Ni,po){if(w.allowVerticalPlacement&&hn.numVerticalGlyphVertices>0&&Kn.verticalTextBox)for(var io=0,ou=w.writingModes;io0&&(cs=cs.filter(function(Ni){return Ni!==nu.anchor})).unshift(nu.anchor)}var Ns=function(Ni,po,io){for(var ou=Ni.x2-Ni.x1,Bc=Ni.y2-Ni.y1,Bl=hn.textBoxScale,fs=Nt&&!ct?po:null,Or={box:[],offscreen:!1},Wu=Ge?2*cs.length:cs.length,Gu=0;Gu=cs.length,hn,w,io,fs);if(ao&&(Or=ao.placedGlyphBoxes)&&Or.box&&Or.box.length){ti=!0,qn=ao.shift;break}}return Or};Zu(function(){return Ns(Ss,Kn.iconBox,_.WritingMode.horizontal)},function(){var Ni=Kn.verticalTextBox;return w.allowVerticalPlacement&&!($n&&$n.box&&$n.box.length)&&hn.numVerticalGlyphVertices>0&&Ni?Ns(Ni,Kn.verticalIconBox,_.WritingMode.vertical):{box:null,offscreen:null}}),$n&&(ti=$n.box,pi=$n.offscreen);var sl=ls($n&&$n.box);if(!ti&&g.prevPlacement){var kl=g.prevPlacement.variableOffsets[hn.crossTileID];kl&&(g.variableOffsets[hn.crossTileID]=kl,g.markUsedJustification(w,kl.anchor,hn,sl))}}else{var ul=function(Ni,po){var io=g.collisionIndex.placeCollisionBox(Ni,Ge,ce,P,Pe.predicate);return io&&io.box&&io.box.length&&(g.markUsedOrientation(w,po,hn),g.placedOrientations[hn.crossTileID]=po),io};Zu(function(){return ul(Ss,_.WritingMode.horizontal)},function(){var Ni=Kn.verticalTextBox;return w.allowVerticalPlacement&&hn.numVerticalGlyphVertices>0&&Ni?ul(Ni,_.WritingMode.vertical):{box:null,offscreen:null}}),ls($n&&$n.box&&$n.box.length)}}if(ti=(_i=$n)&&_i.box&&_i.box.length>0,pi=_i&&_i.offscreen,hn.useRuntimeCollisionCircles){var Fl=w.text.placedSymbolArray.get(hn.centerJustifiedTextSymbolIndex),Vu=_.evaluateSizeForFeature(w.textSizeData,Fe,Fl),iu=C.get("text-padding");Na=g.collisionIndex.placeCollisionCircles(Ge,Fl,w.lineVertexArray,w.glyphOffsetArray,Vu,P,Z,Y,p,$t,Pe.predicate,hn.collisionCircleDiameter,iu),ti=Ge||Na.circles.length>0&&!Na.collisionDetected,pi=pi&&Na.offscreen}if(Kn.iconFeatureIndex&&(Ga=Kn.iconFeatureIndex),Kn.iconBox){var ju=function(Ni){var po=Nt&&qn?Wt(Ni,qn.x,qn.y,At,$t,g.transform.angle):Ni;return g.collisionIndex.placeCollisionBox(po,ct,ce,P,Pe.predicate)};Xn=wo&&wo.box&&wo.box.length&&Kn.verticalIconBox?(Co=ju(Kn.verticalIconBox)).box.length>0:(Co=ju(Kn.iconBox)).box.length>0,pi=pi&&Co.offscreen}var Ko=Xe||hn.numHorizontalGlyphVertices===0&&hn.numVerticalGlyphVertices===0,Ka=we||hn.numIconVertices===0;if(Ko||Ka?Ka?Ko||(Xn=Xn&&ti):ti=Xn&&ti:Xn=ti=Xn&&ti,ti&&_i&&_i.box&&g.collisionIndex.insertCollisionBox(_i.box,C.get("text-ignore-placement"),w.bucketInstanceId,wo&&wo.box&&Wa?Wa:Lo,Pe.ID),Xn&&Co&&g.collisionIndex.insertCollisionBox(Co.box,C.get("icon-ignore-placement"),w.bucketInstanceId,Ga,Pe.ID),Na&&(ti&&g.collisionIndex.insertCollisionCircles(Na.circles,C.get("text-ignore-placement"),w.bucketInstanceId,Lo,Pe.ID),p)){var As=w.bucketInstanceId,au=g.collisionCircleArrays[As];au===void 0&&(au=g.collisionCircleArrays[As]=new ss);for(var Hu=0;Hu=0;--In){var Nn=an[In];Fr(w.symbolInstances.get(Nn),w.collisionArrays[Nn])}else for(var Un=h.symbolInstanceStart;Un=0&&(h.text.placedSymbolArray.get(P).crossTileID=S>=0&&P!==S?0:p.crossTileID)}},yn.prototype.markUsedOrientation=function(h,d,p){for(var g=d===_.WritingMode.horizontal||d===_.WritingMode.horizontalOnly?d:0,S=d===_.WritingMode.vertical?d:0,w=0,C=[p.leftJustifiedTextSymbolIndex,p.centerJustifiedTextSymbolIndex,p.rightJustifiedTextSymbolIndex];w0,Nr=g.placedOrientations[ct.crossTileID],Fr=Nr===_.WritingMode.vertical,an=Nr===_.WritingMode.horizontal||Nr===_.WritingMode.horizontalOnly;if(At>0||$t>0){var In=Ao(tr.text);Fe(h.text,At,Fr?uo:In),Fe(h.text,$t,an?uo:In);var Nn=tr.text.isHidden();[ct.rightJustifiedTextSymbolIndex,ct.centerJustifiedTextSymbolIndex,ct.leftJustifiedTextSymbolIndex].forEach(function($n){$n>=0&&(h.text.placedSymbolArray.get($n).hidden=Nn||Fr?1:0)}),ct.verticalPlacedTextSymbolIndex>=0&&(h.text.placedSymbolArray.get(ct.verticalPlacedTextSymbolIndex).hidden=Nn||an?1:0);var Un=g.variableOffsets[ct.crossTileID];Un&&g.markUsedJustification(h,Un.anchor,ct,Nr);var ji=g.placedOrientations[ct.crossTileID];ji&&(g.markUsedJustification(h,"left",ct,ji),g.markUsedOrientation(h,ji,ct))}if(mr){var hn=Ao(tr.icon),Kn=!(ge&&ct.verticalPlacedIconSymbolIndex&&Fr);ct.placedIconSymbolIndex>=0&&(Fe(h.icon,ct.numIconVertices,Kn?hn:uo),h.icon.placedSymbolArray.get(ct.placedIconSymbolIndex).hidden=tr.icon.isHidden()),ct.verticalPlacedIconSymbolIndex>=0&&(Fe(h.icon,ct.numVerticalIconVertices,Kn?uo:hn),h.icon.placedSymbolArray.get(ct.verticalPlacedIconSymbolIndex).hidden=tr.icon.isHidden())}if(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData()){var _i=h.collisionArrays[Ge];if(_i){var ti=new _.Point(0,0);if(_i.textBox||_i.verticalTextBox){var Xn=!0;if(Z){var pi=g.variableOffsets[Nt];pi?(ti=Qi(pi.anchor,pi.width,pi.height,pi.textOffset,pi.textBoxScale),Y&&ti._rotate(ce?g.transform.angle:-g.transform.angle)):Xn=!1}_i.textBox&&fe(h.textCollisionBox.collisionVertexArray,tr.text.placed,!Xn||Fr,ti.x,ti.y),_i.verticalTextBox&&fe(h.textCollisionBox.collisionVertexArray,tr.text.placed,!Xn||an,ti.x,ti.y)}var qn=!!(!an&&_i.verticalIconBox);_i.iconBox&&fe(h.iconCollisionBox.collisionVertexArray,tr.icon.placed,qn,ge?ti.x:0,ge?ti.y:0),_i.verticalIconBox&&fe(h.iconCollisionBox.collisionVertexArray,tr.icon.placed,!qn,ge?ti.x:0,ge?ti.y:0)}}},Xe=0;Xeh},yn.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ot=Math.pow(2,24),nr=Math.pow(2,17),jr=Math.pow(2,16),Mn=Math.pow(2,9),Vi=Math.pow(2,8),ho=Math.pow(2,1);function Ao(h){if(h.opacity===0&&!h.placed)return 0;if(h.opacity===1&&h.placed)return 4294967295;var d=h.placed?1:0,p=Math.floor(127*h.opacity);return p*Te+d*ot+p*nr+d*jr+p*Mn+d*Vi+p*ho+d}var uo=0,Is=function(h){this._sortAcrossTiles=h.layout.get("symbol-z-order")!=="viewport-y"&&h.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Is.prototype.continuePlacement=function(h,d,p,g,S){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var C=d[h[this._currentPlacementIndex]],P=this.placement.collisionIndex.transform.zoom;if(C.type==="symbol"&&(!C.minzoom||C.minzoom<=P)&&(!C.maxzoom||C.maxzoom>P)){if(this._inProgressLayer||(this._inProgressLayer=new Is(C)),this._inProgressLayer.continuePlacement(p[C.source],this.placement,this._showCollisionBoxes,C,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ys.prototype.commit=function(h){return this.placement.commit(h),this.placement};var Kh=512/_.EXTENT/2,Cf=function(h,d,p){this.tileID=h,this.indexedSymbolInstances={},this.bucketInstanceId=p;for(var g=0;gh.overscaledZ)for(var P in C){var Z=C[P];Z.tileID.isChildOf(h)&&Z.findMatches(d.symbolInstances,h,S)}else{var Y=C[h.scaledTo(Number(w)).key];Y&&Y.findMatches(d.symbolInstances,h,S)}}for(var ce=0;ce1?"@2x":"",ge=_.getJSON(w.transformRequest(w.normalizeSpriteURL(S,ce,".json"),_.ResourceType.SpriteJSON),function(Pe,Xe){ge=null,Y||(Y=Pe,P=Xe,Fe())}),_e=_.getImage(w.transformRequest(w.normalizeSpriteURL(S,ce,".png"),_.ResourceType.SpriteImage),function(Pe,Xe){_e=null,Y||(Y=Pe,Z=Xe,Fe())});function Fe(){if(Y)C(Y);else if(P&&Z){var Pe=_.browser.getImageData(Z),Xe={};for(var we in P){var Ge=P[we],ct=Ge.width,At=Ge.height,$t=Ge.x,Nt=Ge.y,tr=Ge.sdf,mr=Ge.pixelRatio,Nr=Ge.stretchX,Fr=Ge.stretchY,an=Ge.content,In=new _.RGBAImage({width:ct,height:At});_.RGBAImage.copy(Pe,In,{x:$t,y:Nt},{x:0,y:0},{width:ct,height:At}),Xe[we]={data:In,pixelRatio:mr,sdf:tr,stretchX:Nr,stretchY:Fr,content:an}}C(null,Xe)}}return{cancel:function(){ge&&(ge.cancel(),ge=null),_e&&(_e.cancel(),_e=null)}}}(p,this.map._requestManager,function(S,w){if(g._spriteRequest=null,S)g.fire(new _.ErrorEvent(S));else if(w)for(var C in w)g.imageManager.addImage(C,w[C]);g.imageManager.setLoaded(!0),g._availableImages=g.imageManager.listImages(),g.dispatcher.broadcast("setImages",g._availableImages),g.fire(new _.Event("data",{dataType:"style"}))})},d.prototype._validateLayer=function(p){var g=this.sourceCaches[p.source];if(g){var S=p.sourceLayer;if(S){var w=g.getSource();(w.type==="geojson"||w.vectorLayerIds&&w.vectorLayerIds.indexOf(S)===-1)&&this.fire(new _.ErrorEvent(new Error('Source layer "'+S+'" does not exist on source "'+w.id+'" as specified by style layer "'+p.id+'"')))}}},d.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var p in this.sourceCaches)if(!this.sourceCaches[p].loaded())return!1;return!!this.imageManager.isLoaded()},d.prototype._serializeLayers=function(p){for(var g=[],S=0,w=p;S0)throw new Error("Unimplemented: "+w.map(function(C){return C.command}).join(", ")+".");return S.forEach(function(C){C.command!=="setTransition"&&g[C.command].apply(g,C.args)}),this.stylesheet=p,!0},d.prototype.addImage=function(p,g){if(this.getImage(p))return this.fire(new _.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(p,g),this._afterImageUpdated(p)},d.prototype.updateImage=function(p,g){this.imageManager.updateImage(p,g)},d.prototype.getImage=function(p){return this.imageManager.getImage(p)},d.prototype.removeImage=function(p){if(!this.getImage(p))return this.fire(new _.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(p),this._afterImageUpdated(p)},d.prototype._afterImageUpdated=function(p){this._availableImages=this.imageManager.listImages(),this._changedImages[p]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new _.Event("data",{dataType:"style"}))},d.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},d.prototype.addSource=function(p,g,S){var w=this;if(S===void 0&&(S={}),this._checkLoaded(),this.sourceCaches[p]!==void 0)throw new Error("There is already a source with this ID");if(!g.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(g).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(g.type)>=0&&this._validate(_.validateStyle.source,"sources."+p,g,null,S))){this.map&&this.map._collectResourceTiming&&(g.collectResourceTiming=!0);var C=this.sourceCaches[p]=new q(p,g,this.dispatcher);C.style=this,C.setEventedParent(this,function(){return{isSourceLoaded:w.loaded(),source:C.serialize(),sourceId:p}}),C.onAdd(this.map),this._changed=!0}},d.prototype.removeSource=function(p){if(this._checkLoaded(),this.sourceCaches[p]===void 0)throw new Error("There is no source with this ID");for(var g in this._layers)if(this._layers[g].source===p)return this.fire(new _.ErrorEvent(new Error('Source "'+p+'" cannot be removed while layer "'+g+'" is using it.')));var S=this.sourceCaches[p];delete this.sourceCaches[p],delete this._updatedSources[p],S.fire(new _.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:p})),S.setEventedParent(null),S.clearTiles(),S.onRemove&&S.onRemove(this.map),this._changed=!0},d.prototype.setGeoJSONSourceData=function(p,g){this._checkLoaded(),this.sourceCaches[p].getSource().setData(g),this._changed=!0},d.prototype.getSource=function(p){return this.sourceCaches[p]&&this.sourceCaches[p].getSource()},d.prototype.addLayer=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=p.id;if(this.getLayer(w))this.fire(new _.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var C;if(p.type==="custom"){if(Mu(this,_.validateCustomStyleLayer(p)))return;C=_.createStyleLayer(p)}else{if(typeof p.source=="object"&&(this.addSource(w,p.source),p=_.clone$1(p),p=_.extend(p,{source:w})),this._validate(_.validateStyle.layer,"layers."+w,p,{arrayIndex:-1},S))return;C=_.createStyleLayer(p),this._validateLayer(C),C.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[C.id]=C.serialize()}var P=g?this._order.indexOf(g):this._order.length;if(g&&P===-1)this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.')));else{if(this._order.splice(P,0,w),this._layerOrderChanged=!0,this._layers[w]=C,this._removedLayers[w]&&C.source&&C.type!=="custom"){var Z=this._removedLayers[w];delete this._removedLayers[w],Z.type!==C.type?this._updatedSources[C.source]="clear":(this._updatedSources[C.source]="reload",this.sourceCaches[C.source].pause())}this._updateLayer(C),C.onAdd&&C.onAdd(this.map)}}},d.prototype.moveLayer=function(p,g){if(this._checkLoaded(),this._changed=!0,this._layers[p]){if(p!==g){var S=this._order.indexOf(p);this._order.splice(S,1);var w=g?this._order.indexOf(g):this._order.length;g&&w===-1?this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.'))):(this._order.splice(w,0,p),this._layerOrderChanged=!0)}}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be moved.")))},d.prototype.removeLayer=function(p){this._checkLoaded();var g=this._layers[p];if(g){g.setEventedParent(null);var S=this._order.indexOf(p);this._order.splice(S,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[p]=g,delete this._layers[p],delete this._serializedLayers[p],delete this._updatedLayers[p],delete this._updatedPaintProps[p],g.onRemove&&g.onRemove(this.map)}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be removed.")))},d.prototype.getLayer=function(p){return this._layers[p]},d.prototype.hasLayer=function(p){return p in this._layers},d.prototype.setLayerZoomRange=function(p,g,S){this._checkLoaded();var w=this.getLayer(p);w?w.minzoom===g&&w.maxzoom===S||(g!=null&&(w.minzoom=g),S!=null&&(w.maxzoom=S),this._updateLayer(w)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot have zoom extent.")))},d.prototype.setFilter=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(p);if(w){if(!_.deepEqual(w.filter,g))return g==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(_.validateStyle.filter,"layers."+w.id+".filter",g,null,S)||(w.filter=_.clone$1(g),this._updateLayer(w)))}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be filtered.")))},d.prototype.getFilter=function(p){return _.clone$1(this.getLayer(p).filter)},d.prototype.setLayoutProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getLayoutProperty(g),S)||(C.setLayoutProperty(g,S,w),this._updateLayer(C)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getLayoutProperty=function(p,g){var S=this.getLayer(p);if(S)return S.getLayoutProperty(g);this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style.")))},d.prototype.setPaintProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getPaintProperty(g),S)||(C.setPaintProperty(g,S,w)&&this._updateLayer(C),this._changed=!0,this._updatedPaintProps[p]=!0):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getPaintProperty=function(p,g){return this.getLayer(p).getPaintProperty(g)},d.prototype.setFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=p.sourceLayer,C=this.sourceCaches[S];if(C!==void 0){var P=C.getSource().type;P==="geojson"&&w?this.fire(new _.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):P!=="vector"||w?(p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),C.setFeatureState(w,p.id,g)):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.removeFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=this.sourceCaches[S];if(w!==void 0){var C=w.getSource().type,P=C==="vector"?p.sourceLayer:void 0;C!=="vector"||P?g&&typeof p.id!="string"&&typeof p.id!="number"?this.fire(new _.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(P,p.id,g):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.getFeatureState=function(p){this._checkLoaded();var g=p.source,S=p.sourceLayer,w=this.sourceCaches[g];if(w!==void 0){if(w.getSource().type!=="vector"||S)return p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(S,p.id);this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+g+"' does not exist in the map's style.")))},d.prototype.getTransition=function(){return _.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},d.prototype.serialize=function(){return _.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:_.mapObject(this.sourceCaches,function(p){return p.serialize()}),layers:this._serializeLayers(this._order)},function(p){return p!==void 0})},d.prototype._updateLayer=function(p){this._updatedLayers[p.id]=!0,p.source&&!this._updatedSources[p.source]&&this.sourceCaches[p.source].getSource().type!=="raster"&&(this._updatedSources[p.source]="reload",this.sourceCaches[p.source].pause()),this._changed=!0},d.prototype._flattenAndSortRenderedFeatures=function(p){for(var g=this,S=function(Nr){return g._layers[Nr].type==="fill-extrusion"},w={},C=[],P=this._order.length-1;P>=0;P--){var Z=this._order[P];if(S(Z)){w[Z]=P;for(var Y=0,ce=p;Y=0;Xe--){var we=this._order[Xe];if(S(we))for(var Ge=C.length-1;Ge>=0;Ge--){var ct=C[Ge].feature;if(w[ct.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;}"),Jh=Ci("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);}"),ep=Ci("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);}"),Zp=Ci(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),Jc=Ci(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +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;}`),Pu=Ci(`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 +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;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 +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#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;}`),tp=Ci(`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 +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;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 +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#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);}`),Ho=Ci(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +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;}`),Yl=Ci(`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 +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#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;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;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 +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#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;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;}`),Sl=Ci(`#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;}"),Xs=Ci(`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;}"),Al=Ci(`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 +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#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);}`),ii=Ci(`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() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#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);}`),el=Ci(`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 +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +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;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;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 float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#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;}`),Os=Ci(`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 +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;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 +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#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);}`),Ou=Ci(`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;}"),tl=Ci(`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 +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +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));}`),rp=Ci(`#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 +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#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);}`),Ji=Ci(`#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; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#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 Ci(h,d){var p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,g=d.match(/attribute ([\w]+) ([\w]+)/g),S=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=d.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),C=w?w.concat(S):S,P={};return{fragmentSource:h=h.replace(p,function(Z,Y,ce,ge,_e){return P[_e]=!0,Y==="define"?` +#ifndef HAS_UNIFORM_u_`+_e+` +varying `+ce+" "+ge+" "+_e+`; +#else +uniform `+ce+" "+ge+" u_"+_e+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+_e+` + `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#endif +`}),vertexSource:d=d.replace(p,function(Z,Y,ce,ge,_e){var Fe=ge==="float"?"vec2":"vec4",Pe=_e.match(/color/)?"color":Fe;return P[_e]?Y==="define"?` +#ifndef HAS_UNIFORM_u_`+_e+` +uniform lowp float u_`+_e+`_t; +attribute `+ce+" "+Fe+" a_"+_e+`; +varying `+ce+" "+ge+" "+_e+`; +#else +uniform `+ce+" "+ge+" u_"+_e+`; +#endif +`:Pe==="vec4"?` +#ifndef HAS_UNIFORM_u_`+_e+` + `+_e+" = a_"+_e+`; +#else + `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+_e+` + `+_e+" = unpack_mix_"+Pe+"(a_"+_e+", u_"+_e+`_t); +#else + `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#endif +`:Y==="define"?` +#ifndef HAS_UNIFORM_u_`+_e+` +uniform lowp float u_`+_e+`_t; +attribute `+ce+" "+Fe+" a_"+_e+`; +#else +uniform `+ce+" "+ge+" u_"+_e+`; +#endif +`:Pe==="vec4"?` +#ifndef HAS_UNIFORM_u_`+_e+` + `+ce+" "+ge+" "+_e+" = a_"+_e+`; +#else + `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+_e+` + `+ce+" "+ge+" "+_e+" = unpack_mix_"+Pe+"(a_"+_e+", u_"+_e+`_t); +#else + `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#endif +`}),staticAttributes:g,staticUniforms:C}}var fu=Object.freeze({__proto__:null,prelude:El,background:Ju,backgroundPattern:Rf,circle:Qh,clippingMask:Mf,heatmap:ph,heatmapTexture:dh,collisionBox:vh,collisionCircle:Jh,debug:ep,fill:Zp,fillOutline:Jc,fillOutlinePattern:Pu,fillPattern:tp,fillExtrusion:Ho,fillExtrusionPattern:Yl,hillshadePrepare:Sl,hillshade:Xs,line:Al,lineGradient:ii,linePattern:el,lineSDF:Os,raster:Ou,symbolIcon:tl,symbolSDF:rp,symbolTextAndIcon:Ji}),Du=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function mh(h){for(var d=[],p=0;p>16,P>>16],u_pixel_coord_lower:[65535&C,65535&P]}}ja.prototype.draw=function(h,d,p,g,S,w,C,P,Z,Y,ce,ge,_e,Fe,Pe,Xe){var we,Ge=h.gl;if(!this.failedToCreate){for(var ct in h.program.set(this.program),h.setDepthMode(p),h.setStencilMode(g),h.setColorMode(S),h.setCullFace(w),this.fixedUniforms)this.fixedUniforms[ct].set(C[ct]);Fe&&Fe.setUniforms(h,this.binderUniforms,ge,{zoom:_e});for(var At=(we={},we[Ge.LINES]=2,we[Ge.TRIANGLES]=3,we[Ge.LINE_STRIP]=1,we)[d],$t=0,Nt=ce.get();$t0?1-1/(1.001-C):-C),u_contrast_factor:(w=S.paint.get("raster-contrast"),w>0?1/(1-w):1+w),u_spin_weights:Pf(S.paint.get("raster-hue-rotate"))};var w,C};function Pf(h){h*=Math.PI/180;var d=Math.sin(h),p=Math.cos(h);return[(2*p+1)/3,(-Math.sqrt(3)*d-p+1)/3,(Math.sqrt(3)*d-p+1)/3]}var wl,hu=function(h,d,p,g,S,w,C,P,Z,Y){var ce=S.transform;return{u_is_size_zoom_constant:+(h==="constant"||h==="source"),u_is_size_feature_constant:+(h==="constant"||h==="camera"),u_size_t:d?d.uSizeT:0,u_size:d?d.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+p,u_aspect_ratio:ce.width/ce.height,u_fade_change:S.options.fadeDuration?S.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:C,u_coord_matrix:P,u_is_text:+Z,u_pitch_with_map:+g,u_texsize:Y,u_texture:0}},Mc=function(h,d,p,g,S,w,C,P,Z,Y,ce){var ge=S.transform;return _.extend(hu(h,d,p,g,S,w,C,P,Z,Y),{u_gamma_scale:g?Math.cos(ge._pitch)*ge.cameraToCenterDistance:1,u_device_pixel_ratio:_.browser.devicePixelRatio,u_is_halo:+ce})},rf=function(h,d,p,g,S,w,C,P,Z,Y){return _.extend(Mc(h,d,p,g,S,w,C,P,!0,Z,!0),{u_texsize_icon:Y,u_texture_icon:1})},ec=function(h,d,p){return{u_matrix:h,u_opacity:d,u_color:p}},tc=function(h,d,p,g,S,w){return _.extend(function(C,P,Z,Y){var ce=Z.imageManager.getPattern(C.from.toString()),ge=Z.imageManager.getPattern(C.to.toString()),_e=Z.imageManager.getPixelSize(),Fe=_e.width,Pe=_e.height,Xe=Math.pow(2,Y.tileID.overscaledZ),we=Y.tileSize*Math.pow(2,Z.transform.tileZoom)/Xe,Ge=we*(Y.tileID.canonical.x+Y.tileID.wrap*Xe),ct=we*Y.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ce.tl,u_pattern_br_a:ce.br,u_pattern_tl_b:ge.tl,u_pattern_br_b:ge.br,u_texsize:[Fe,Pe],u_mix:P.t,u_pattern_size_a:ce.displaySize,u_pattern_size_b:ge.displaySize,u_scale_a:P.fromScale,u_scale_b:P.toScale,u_tile_units_to_pixels:1/ha(Y,1,Z.transform.tileZoom),u_pixel_coord_upper:[Ge>>16,ct>>16],u_pixel_coord_lower:[65535&Ge,65535&ct]}}(g,w,p,S),{u_matrix:h,u_opacity:d})},ip={fillExtrusion:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fillExtrusionPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_height_factor:new _.Uniform1f(h,d.u_height_factor),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fill:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},fillPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},fillOutline:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world)}},fillOutlinePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},circle:function(h,d){return{u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_scale_with_map:new _.Uniform1i(h,d.u_scale_with_map),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},collisionBox:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pixels_to_tile_units:new _.Uniform1f(h,d.u_pixels_to_tile_units),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_overscale_factor:new _.Uniform1f(h,d.u_overscale_factor)}},collisionCircle:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_inv_matrix:new _.UniformMatrix4f(h,d.u_inv_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_viewport_size:new _.Uniform2f(h,d.u_viewport_size)}},debug:function(h,d){return{u_color:new _.UniformColor(h,d.u_color),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_overlay:new _.Uniform1i(h,d.u_overlay),u_overlay_scale:new _.Uniform1f(h,d.u_overlay_scale)}},clippingMask:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmap:function(h,d){return{u_extrude_scale:new _.Uniform1f(h,d.u_extrude_scale),u_intensity:new _.Uniform1f(h,d.u_intensity),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmapTexture:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_color_ramp:new _.Uniform1i(h,d.u_color_ramp),u_opacity:new _.Uniform1f(h,d.u_opacity)}},hillshade:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_latrange:new _.Uniform2f(h,d.u_latrange),u_light:new _.Uniform2f(h,d.u_light),u_shadow:new _.UniformColor(h,d.u_shadow),u_highlight:new _.UniformColor(h,d.u_highlight),u_accent:new _.UniformColor(h,d.u_accent)}},hillshadePrepare:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_dimension:new _.Uniform2f(h,d.u_dimension),u_zoom:new _.Uniform1f(h,d.u_zoom),u_unpack:new _.Uniform4f(h,d.u_unpack)}},line:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels)}},lineGradient:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_image:new _.Uniform1i(h,d.u_image),u_image_height:new _.Uniform1f(h,d.u_image_height)}},linePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_texsize:new _.Uniform2f(h,d.u_texsize),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_image:new _.Uniform1i(h,d.u_image),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},lineSDF:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_patternscale_a:new _.Uniform2f(h,d.u_patternscale_a),u_patternscale_b:new _.Uniform2f(h,d.u_patternscale_b),u_sdfgamma:new _.Uniform1f(h,d.u_sdfgamma),u_image:new _.Uniform1i(h,d.u_image),u_tex_y_a:new _.Uniform1f(h,d.u_tex_y_a),u_tex_y_b:new _.Uniform1f(h,d.u_tex_y_b),u_mix:new _.Uniform1f(h,d.u_mix)}},raster:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_tl_parent:new _.Uniform2f(h,d.u_tl_parent),u_scale_parent:new _.Uniform1f(h,d.u_scale_parent),u_buffer_scale:new _.Uniform1f(h,d.u_buffer_scale),u_fade_t:new _.Uniform1f(h,d.u_fade_t),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image0:new _.Uniform1i(h,d.u_image0),u_image1:new _.Uniform1i(h,d.u_image1),u_brightness_low:new _.Uniform1f(h,d.u_brightness_low),u_brightness_high:new _.Uniform1f(h,d.u_brightness_high),u_saturation_factor:new _.Uniform1f(h,d.u_saturation_factor),u_contrast_factor:new _.Uniform1f(h,d.u_contrast_factor),u_spin_weights:new _.Uniform3f(h,d.u_spin_weights)}},symbolIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture)}},symbolSDF:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},symbolTextAndIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texsize_icon:new _.Uniform2f(h,d.u_texsize_icon),u_texture:new _.Uniform1i(h,d.u_texture),u_texture_icon:new _.Uniform1i(h,d.u_texture_icon),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},background:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_color:new _.UniformColor(h,d.u_color)}},backgroundPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image:new _.Uniform1i(h,d.u_image),u_pattern_tl_a:new _.Uniform2f(h,d.u_pattern_tl_a),u_pattern_br_a:new _.Uniform2f(h,d.u_pattern_br_a),u_pattern_tl_b:new _.Uniform2f(h,d.u_pattern_tl_b),u_pattern_br_b:new _.Uniform2f(h,d.u_pattern_br_b),u_texsize:new _.Uniform2f(h,d.u_texsize),u_mix:new _.Uniform1f(h,d.u_mix),u_pattern_size_a:new _.Uniform2f(h,d.u_pattern_size_a),u_pattern_size_b:new _.Uniform2f(h,d.u_pattern_size_b),u_scale_a:new _.Uniform1f(h,d.u_scale_a),u_scale_b:new _.Uniform1f(h,d.u_scale_b),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_tile_units_to_pixels:new _.Uniform1f(h,d.u_tile_units_to_pixels)}}};function nl(h,d,p,g,S,w,C){for(var P=h.context,Z=P.gl,Y=h.useProgram("collisionBox"),ce=[],ge=0,_e=0,Fe=0;Fe0){var $t=_.create(),Nt=Ge;_.mul($t,we.placementInvProjMatrix,h.transform.glCoordMatrix),_.mul($t,$t,we.placementViewportMatrix),ce.push({circleArray:At,circleOffset:_e,transform:Nt,invTransform:$t}),_e=ge+=At.length/4}ct&&Y.draw(P,Z.LINES,xe.disabled,Re.disabled,h.colorModeForRenderPass(),lt.disabled,Qs(Ge,h.transform,Xe),p.id,ct.layoutVertexBuffer,ct.indexBuffer,ct.segments,null,h.transform.zoom,null,null,ct.collisionVertexBuffer)}}if(C&&ce.length){var tr=h.useProgram("collisionCircle"),mr=new _.StructArrayLayout2f1f2i16;mr.resize(4*ge),mr._trim();for(var Nr=0,Fr=0,an=ce;Fr=0&&(Pe[we.associatedIconIndex]={shiftedAnchor:mr,angle:Nr})}else Oa(we.numGlyphs,_e)}if(ce){Fe.clear();for(var an=h.icon.placedSymbolArray,In=0;In0){var C=_.browser.now(),P=(C-h.timeAdded)/w,Z=d?(C-d.timeAdded)/w:-1,Y=p.getSource(),ce=S.coveringZoomLevel({tileSize:Y.tileSize,roundZoom:Y.roundZoom}),ge=!d||Math.abs(d.tileID.overscaledZ-ce)>Math.abs(h.tileID.overscaledZ-ce),_e=ge&&h.refreshedUponExpiration?1:_.clamp(ge?P:1-Z,0,1);return h.refreshedUponExpiration&&P>=1&&(h.refreshedUponExpiration=!1),d?{opacity:1,mix:1-_e}:{opacity:_e,mix:0}}return{opacity:1,mix:0}}var xh=new _.Color(1,0,0,1),Df=new _.Color(0,1,0,1),ko=new _.Color(0,0,1,1),bh=new _.Color(1,0,1,1),ap=new _.Color(0,1,1,1);function kf(h,d,p,g){Oc(h,0,d+p/2,h.transform.width,p,g)}function Eh(h,d,p,g){Oc(h,d-p/2,0,p,h.transform.height,g)}function Oc(h,d,p,g,S,w){var C=h.context,P=C.gl;P.enable(P.SCISSOR_TEST),P.scissor(d*_.browser.devicePixelRatio,p*_.browser.devicePixelRatio,g*_.browser.devicePixelRatio,S*_.browser.devicePixelRatio),C.clear({color:w}),P.disable(P.SCISSOR_TEST)}function of(h,d,p){var g=h.context,S=g.gl,w=p.posMatrix,C=h.useProgram("debug"),P=xe.disabled,Z=Re.disabled,Y=h.colorModeForRenderPass();g.activeTexture.set(S.TEXTURE0),h.emptyTexture.bind(S.LINEAR,S.CLAMP_TO_EDGE),C.draw(g,S.LINE_STRIP,P,Z,Y,lt.disabled,Kl(w,_.Color.red),"$debug",h.debugBuffer,h.tileBorderIndexBuffer,h.debugSegments);var ce=d.getTileByID(p.key).latestRawTileData,ge=Math.floor((ce&&ce.byteLength||0)/1024),_e=d.getTile(p).tileSize,Fe=512/Math.min(_e,512)*(p.overscaledZ/h.transform.zoom)*.5,Pe=p.canonical.toString();p.overscaledZ!==p.canonical.z&&(Pe+=" => "+p.overscaledZ),function(Xe,we){Xe.initDebugOverlayCanvas();var Ge=Xe.debugOverlayCanvas,ct=Xe.context.gl,At=Xe.debugOverlayCanvas.getContext("2d");At.clearRect(0,0,Ge.width,Ge.height),At.shadowColor="white",At.shadowBlur=2,At.lineWidth=1.5,At.strokeStyle="white",At.textBaseline="top",At.font="bold 36px Open Sans, sans-serif",At.fillText(we,5,5),At.strokeText(we,5,5),Xe.debugOverlayTexture.update(Ge),Xe.debugOverlayTexture.bind(ct.LINEAR,ct.CLAMP_TO_EDGE)}(h,Pe+" "+ge+"kb"),C.draw(g,S.TRIANGLES,P,Z,Je.alphaBlended,lt.disabled,Kl(w,_.Color.transparent,Fe),"$debug",h.debugBuffer,h.quadTriangleIndexBuffer,h.debugSegments)}var il={symbol:function(h,d,p,g,S){if(h.renderPass==="translucent"){var w=Re.disabled,C=h.colorModeForRenderPass();p.layout.get("text-variable-anchor")&&function(P,Z,Y,ce,ge,_e,Fe){for(var Pe=Z.transform,Xe=ge==="map",we=_e==="map",Ge=0,ct=P;Ge256&&this.clearStencil(),p.setColorMode(Je.disabled),p.setDepthMode(xe.disabled);var S=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,C=d;w256&&this.clearStencil();var h=this.nextStencilID++,d=this.context.gl;return new Re({func:d.NOTEQUAL,mask:255},h,255,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilModeForClipping=function(h){var d=this.context.gl;return new Re({func:d.EQUAL,mask:255},this._tileClippingMaskIDs[h.key],0,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilConfigForOverlap=function(h){var d,p=this.context.gl,g=h.sort(function(Z,Y){return Y.overscaledZ-Z.overscaledZ}),S=g[g.length-1].overscaledZ,w=g[0].overscaledZ-S+1;if(w>1){this.currentStencilSource=void 0,this.nextStencilID+w>256&&this.clearStencil();for(var C={},P=0;P=0;this.currentLayer--){var At=this.style._layers[g[this.currentLayer]],$t=S[At.source],Nt=Y[At.source];this._renderTileClippingMasks(At,Nt),this.renderLayer(this,$t,At,Nt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?d.pop():null},pa.prototype.isPatternMissing=function(h){if(!h)return!1;if(!h.from||!h.to)return!0;var d=this.imageManager.getPattern(h.from.toString()),p=this.imageManager.getPattern(h.to.toString());return!d||!p},pa.prototype.useProgram=function(h,d){this.cache=this.cache||{};var p=""+h+(d?d.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[p]||(this.cache[p]=new ja(this.context,h,fu[h],d,ip[h],this._showOverdrawInspector)),this.cache[p]},pa.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()},pa.prototype.setBaseState=function(){var h=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(h.FUNC_ADD)},pa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=_.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new _.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},pa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ff=function(h,d){this.points=h,this.planes=d};Ff.fromInvProjectionMatrix=function(h,d,p){var g=Math.pow(2,p),S=[[-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(C){return _.transformMat4([],C,h)}).map(function(C){return _.scale$1([],C,1/C[3]/d*g)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(C){var P=_.sub([],S[C[0]],S[C[1]]),Z=_.sub([],S[C[2]],S[C[1]]),Y=_.normalize([],_.cross([],P,Z)),ce=-_.dot(Y,S[C[1]]);return Y.concat(ce)});return new Ff(S,w)};var du=function(h,d){this.min=h,this.max=d,this.center=_.scale$2([],_.add([],this.min,this.max),.5)};du.prototype.quadrant=function(h){for(var d=[h%2==0,h<2],p=_.clone$2(this.min),g=_.clone$2(this.max),S=0;S=0;if(w===0)return 0;w!==d.length&&(p=!1)}if(p)return 2;for(var P=0;P<3;P++){for(var Z=Number.MAX_VALUE,Y=-Number.MAX_VALUE,ce=0;cethis.max[P]-this.min[P])return 0}return 1};var Rl=function(h,d,p,g){if(h===void 0&&(h=0),d===void 0&&(d=0),p===void 0&&(p=0),g===void 0&&(g=0),isNaN(h)||h<0||isNaN(d)||d<0||isNaN(p)||p<0||isNaN(g)||g<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=h,this.bottom=d,this.left=p,this.right=g};Rl.prototype.interpolate=function(h,d,p){return d.top!=null&&h.top!=null&&(this.top=_.number(h.top,d.top,p)),d.bottom!=null&&h.bottom!=null&&(this.bottom=_.number(h.bottom,d.bottom,p)),d.left!=null&&h.left!=null&&(this.left=_.number(h.left,d.left,p)),d.right!=null&&h.right!=null&&(this.right=_.number(h.right,d.right,p)),this},Rl.prototype.getCenter=function(h,d){var p=_.clamp((this.left+h-this.right)/2,0,h),g=_.clamp((this.top+d-this.bottom)/2,0,d);return new _.Point(p,g)},Rl.prototype.equals=function(h){return this.top===h.top&&this.bottom===h.bottom&&this.left===h.left&&this.right===h.right},Rl.prototype.clone=function(){return new Rl(this.top,this.bottom,this.left,this.right)},Rl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ki=function(h,d,p,g,S){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=S===void 0||S,this._minZoom=h||0,this._maxZoom=d||22,this._minPitch=p==null?0:p,this._maxPitch=g==null?60:g,this.setMaxBounds(),this.width=0,this.height=0,this._center=new _.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Rl,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ca={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}};ki.prototype.clone=function(){var h=new ki(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return h.tileSize=this.tileSize,h.latRange=this.latRange,h.width=this.width,h.height=this.height,h._center=this._center,h.zoom=this.zoom,h.angle=this.angle,h._fov=this._fov,h._pitch=this._pitch,h._unmodified=this._unmodified,h._edgeInsets=this._edgeInsets.clone(),h._calcMatrices(),h},Ca.minZoom.get=function(){return this._minZoom},Ca.minZoom.set=function(h){this._minZoom!==h&&(this._minZoom=h,this.zoom=Math.max(this.zoom,h))},Ca.maxZoom.get=function(){return this._maxZoom},Ca.maxZoom.set=function(h){this._maxZoom!==h&&(this._maxZoom=h,this.zoom=Math.min(this.zoom,h))},Ca.minPitch.get=function(){return this._minPitch},Ca.minPitch.set=function(h){this._minPitch!==h&&(this._minPitch=h,this.pitch=Math.max(this.pitch,h))},Ca.maxPitch.get=function(){return this._maxPitch},Ca.maxPitch.set=function(h){this._maxPitch!==h&&(this._maxPitch=h,this.pitch=Math.min(this.pitch,h))},Ca.renderWorldCopies.get=function(){return this._renderWorldCopies},Ca.renderWorldCopies.set=function(h){h===void 0?h=!0:h===null&&(h=!1),this._renderWorldCopies=h},Ca.worldSize.get=function(){return this.tileSize*this.scale},Ca.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ca.size.get=function(){return new _.Point(this.width,this.height)},Ca.bearing.get=function(){return-this.angle/Math.PI*180},Ca.bearing.set=function(h){var d=-_.wrap(h,-180,180)*Math.PI/180;this.angle!==d&&(this._unmodified=!1,this.angle=d,this._calcMatrices(),this.rotationMatrix=_.create$2(),_.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ca.pitch.get=function(){return this._pitch/Math.PI*180},Ca.pitch.set=function(h){var d=_.clamp(h,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==d&&(this._unmodified=!1,this._pitch=d,this._calcMatrices())},Ca.fov.get=function(){return this._fov/Math.PI*180},Ca.fov.set=function(h){h=Math.max(.01,Math.min(60,h)),this._fov!==h&&(this._unmodified=!1,this._fov=h/180*Math.PI,this._calcMatrices())},Ca.zoom.get=function(){return this._zoom},Ca.zoom.set=function(h){var d=Math.min(Math.max(h,this.minZoom),this.maxZoom);this._zoom!==d&&(this._unmodified=!1,this._zoom=d,this.scale=this.zoomScale(d),this.tileZoom=Math.floor(d),this.zoomFraction=d-this.tileZoom,this._constrain(),this._calcMatrices())},Ca.center.get=function(){return this._center},Ca.center.set=function(h){h.lat===this._center.lat&&h.lng===this._center.lng||(this._unmodified=!1,this._center=h,this._constrain(),this._calcMatrices())},Ca.padding.get=function(){return this._edgeInsets.toJSON()},Ca.padding.set=function(h){this._edgeInsets.equals(h)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,h,1),this._calcMatrices())},Ca.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ki.prototype.isPaddingEqual=function(h){return this._edgeInsets.equals(h)},ki.prototype.interpolatePadding=function(h,d,p){this._unmodified=!1,this._edgeInsets.interpolate(h,d,p),this._constrain(),this._calcMatrices()},ki.prototype.coveringZoomLevel=function(h){var d=(h.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/h.tileSize));return Math.max(0,d)},ki.prototype.getVisibleUnwrappedCoordinates=function(h){var d=[new _.UnwrappedTileID(0,h)];if(this._renderWorldCopies)for(var p=this.pointCoordinate(new _.Point(0,0)),g=this.pointCoordinate(new _.Point(this.width,0)),S=this.pointCoordinate(new _.Point(this.width,this.height)),w=this.pointCoordinate(new _.Point(0,this.height)),C=Math.floor(Math.min(p.x,g.x,S.x,w.x)),P=Math.floor(Math.max(p.x,g.x,S.x,w.x)),Z=C-1;Z<=P+1;Z++)Z!==0&&d.push(new _.UnwrappedTileID(Z,h));return d},ki.prototype.coveringTiles=function(h){var d=this.coveringZoomLevel(h),p=d;if(h.minzoom!==void 0&&dh.maxzoom&&(d=h.maxzoom);var g=_.MercatorCoordinate.fromLngLat(this.center),S=Math.pow(2,d),w=[S*g.x,S*g.y,0],C=Ff.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,d),P=h.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(P=d);var Z=function(Fr){return{aabb:new du([Fr*S,0,0],[(Fr+1)*S,S,0]),zoom:0,x:0,y:0,wrap:Fr,fullyVisible:!1}},Y=[],ce=[],ge=d,_e=h.reparseOverscaled?p:d;if(this._renderWorldCopies)for(var Fe=1;Fe<=3;Fe++)Y.push(Z(-Fe)),Y.push(Z(Fe));for(Y.push(Z(0));Y.length>0;){var Pe=Y.pop(),Xe=Pe.x,we=Pe.y,Ge=Pe.fullyVisible;if(!Ge){var ct=Pe.aabb.intersects(C);if(ct===0)continue;Ge=ct===2}var At=Pe.aabb.distanceX(w),$t=Pe.aabb.distanceY(w),Nt=Math.max(Math.abs(At),Math.abs($t));if(Pe.zoom===ge||Nt>3+(1<=P)ce.push({tileID:new _.OverscaledTileID(Pe.zoom===ge?_e:Pe.zoom,Pe.wrap,Pe.zoom,Xe,we),distanceSq:_.sqrLen([w[0]-.5-Xe,w[1]-.5-we])});else for(var tr=0;tr<4;tr++){var mr=(Xe<<1)+tr%2,Nr=(we<<1)+(tr>>1);Y.push({aabb:Pe.aabb.quadrant(tr),zoom:Pe.zoom+1,x:mr,y:Nr,wrap:Pe.wrap,fullyVisible:Ge})}}return ce.sort(function(Fr,an){return Fr.distanceSq-an.distanceSq}).map(function(Fr){return Fr.tileID})},ki.prototype.resize=function(h,d){this.width=h,this.height=d,this.pixelsToGLUnits=[2/h,-2/d],this._constrain(),this._calcMatrices()},Ca.unmodified.get=function(){return this._unmodified},ki.prototype.zoomScale=function(h){return Math.pow(2,h)},ki.prototype.scaleZoom=function(h){return Math.log(h)/Math.LN2},ki.prototype.project=function(h){var d=_.clamp(h.lat,-this.maxValidLatitude,this.maxValidLatitude);return new _.Point(_.mercatorXfromLng(h.lng)*this.worldSize,_.mercatorYfromLat(d)*this.worldSize)},ki.prototype.unproject=function(h){return new _.MercatorCoordinate(h.x/this.worldSize,h.y/this.worldSize).toLngLat()},Ca.point.get=function(){return this.project(this.center)},ki.prototype.setLocationAtPoint=function(h,d){var p=this.pointCoordinate(d),g=this.pointCoordinate(this.centerPoint),S=this.locationCoordinate(h),w=new _.MercatorCoordinate(S.x-(p.x-g.x),S.y-(p.y-g.y));this.center=this.coordinateLocation(w),this._renderWorldCopies&&(this.center=this.center.wrap())},ki.prototype.locationPoint=function(h){return this.coordinatePoint(this.locationCoordinate(h))},ki.prototype.pointLocation=function(h){return this.coordinateLocation(this.pointCoordinate(h))},ki.prototype.locationCoordinate=function(h){return _.MercatorCoordinate.fromLngLat(h)},ki.prototype.coordinateLocation=function(h){return h.toLngLat()},ki.prototype.pointCoordinate=function(h){var d=[h.x,h.y,0,1],p=[h.x,h.y,1,1];_.transformMat4(d,d,this.pixelMatrixInverse),_.transformMat4(p,p,this.pixelMatrixInverse);var g=d[3],S=p[3],w=d[1]/g,C=p[1]/S,P=d[2]/g,Z=p[2]/S,Y=P===Z?0:(0-P)/(Z-P);return new _.MercatorCoordinate(_.number(d[0]/g,p[0]/S,Y)/this.worldSize,_.number(w,C,Y)/this.worldSize)},ki.prototype.coordinatePoint=function(h){var d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix),new _.Point(d[0]/d[3],d[1]/d[3])},ki.prototype.getBounds=function(){return new _.LngLatBounds().extend(this.pointLocation(new _.Point(0,0))).extend(this.pointLocation(new _.Point(this.width,0))).extend(this.pointLocation(new _.Point(this.width,this.height))).extend(this.pointLocation(new _.Point(0,this.height)))},ki.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new _.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},ki.prototype.setMaxBounds=function(h){h?(this.lngRange=[h.getWest(),h.getEast()],this.latRange=[h.getSouth(),h.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ki.prototype.calculatePosMatrix=function(h,d){d===void 0&&(d=!1);var p=h.key,g=d?this._alignedPosMatrixCache:this._posMatrixCache;if(g[p])return g[p];var S=h.canonical,w=this.worldSize/this.zoomScale(S.z),C=S.x+Math.pow(2,S.z)*h.wrap,P=_.identity(new Float64Array(16));return _.translate(P,P,[C*w,S.y*w,0]),_.scale(P,P,[w/_.EXTENT,w/_.EXTENT,1]),_.multiply(P,d?this.alignedProjMatrix:this.projMatrix,P),g[p]=new Float32Array(P),g[p]},ki.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ki.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var h,d,p,g,S=-90,w=90,C=-180,P=180,Z=this.size,Y=this._unmodified;if(this.latRange){var ce=this.latRange;S=_.mercatorYfromLat(ce[1])*this.worldSize,h=(w=_.mercatorYfromLat(ce[0])*this.worldSize)-Sw&&(g=w-Xe)}if(this.lngRange){var we=_e.x,Ge=Z.x/2;we-GeP&&(p=P-Ge)}p===void 0&&g===void 0||(this.center=this.unproject(new _.Point(p!==void 0?p:_e.x,g!==void 0?g:_e.y))),this._unmodified=Y,this._constraining=!1}},ki.prototype._calcMatrices=function(){if(this.height){var h=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var d=Math.PI/2+this._pitch,p=this._fov*(.5+h.y/this.height),g=Math.sin(p)*this.cameraToCenterDistance/Math.sin(_.clamp(Math.PI-d-p,.01,Math.PI-.01)),S=this.point,w=S.x,C=S.y,P=1.01*(Math.cos(Math.PI/2-this._pitch)*g+this.cameraToCenterDistance),Z=this.height/50,Y=new Float64Array(16);_.perspective(Y,this._fov,this.width/this.height,Z,P),Y[8]=2*-h.x/this.width,Y[9]=2*h.y/this.height,_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[0,0,-this.cameraToCenterDistance]),_.rotateX(Y,Y,this._pitch),_.rotateZ(Y,Y,this.angle),_.translate(Y,Y,[-w,-C,0]),this.mercatorMatrix=_.scale([],Y,[this.worldSize,this.worldSize,this.worldSize]),_.scale(Y,Y,[1,1,_.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Y,this.invProjMatrix=_.invert([],this.projMatrix);var ce=this.width%2/2,ge=this.height%2/2,_e=Math.cos(this.angle),Fe=Math.sin(this.angle),Pe=w-Math.round(w)+_e*ce+Fe*ge,Xe=C-Math.round(C)+_e*ge+Fe*ce,we=new Float64Array(Y);if(_.translate(we,we,[Pe>.5?Pe-1:Pe,Xe>.5?Xe-1:Xe,0]),this.alignedProjMatrix=we,Y=_.create(),_.scale(Y,Y,[this.width/2,-this.height/2,1]),_.translate(Y,Y,[1,-1,0]),this.labelPlaneMatrix=Y,Y=_.create(),_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[-1,-1,0]),_.scale(Y,Y,[2/this.width,2/this.height,1]),this.glCoordMatrix=Y,this.pixelMatrix=_.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Y=_.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Y,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ki.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var h=this.pointCoordinate(new _.Point(0,0)),d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix)[3]/this.cameraToCenterDistance},ki.prototype.getCameraPoint=function(){var h=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new _.Point(0,h))},ki.prototype.getCameraQueryGeometry=function(h){var d=this.getCameraPoint();if(h.length===1)return[h[0],d];for(var p=d.x,g=d.y,S=d.x,w=d.y,C=0,P=h;C=3&&!h.some(function(p){return isNaN(p)})){var d=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(h[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+h[2],+h[1]],zoom:+h[0],bearing:d,pitch:+(h[4]||0)}),!0}return!1},$s.prototype._updateHashUnthrottled=function(){var h=_.window.location.href.replace(/(#.+)?$/,this.getHashString());try{_.window.history.replaceState(_.window.history.state,null,h)}catch(d){}};var Bf={linearity:.3,easing:_.bezier(0,0,.3,1)},Ds=_.extend({deceleration:2500,maxSpeed:1400},Bf),sf=_.extend({deceleration:20,maxSpeed:1400},Bf),op=_.extend({deceleration:1e3,maxSpeed:360},Bf),Sh=_.extend({deceleration:1e3,maxSpeed:90},Bf),Lf=function(h){this._map=h,this.clear()};function Ml(h,d){(!h.duration||h.duration0&&d-h[0].time>160;)h.shift()},Lf.prototype._onMoveEnd=function(h){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var d={zoom:0,bearing:0,pitch:0,pan:new _.Point(0,0),pinchAround:void 0,around:void 0},p=0,g=this._inertiaBuffer;p=this._clickTolerance||this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.dblclick=function(h){return this._firePreventable(new Ha(h.type,this._map,h))},qa.prototype.mouseover=function(h){this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.mouseout=function(h){this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.touchstart=function(h){return this._firePreventable(new al(h.type,this._map,h))},qa.prototype.touchmove=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype.touchend=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype.touchcancel=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype._firePreventable=function(h){if(this._map.fire(h),h.defaultPrevented)return{}},qa.prototype.isEnabled=function(){return!0},qa.prototype.isActive=function(){return!1},qa.prototype.enable=function(){},qa.prototype.disable=function(){};var vn=function(h){this._map=h};vn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},vn.prototype.mousemove=function(h){this._map.fire(new Ha(h.type,this._map,h))},vn.prototype.mousedown=function(){this._delayContextMenu=!0},vn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ha("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},vn.prototype.contextmenu=function(h){this._delayContextMenu?this._contextMenuEvent=h:this._map.fire(new Ha(h.type,this._map,h)),this._map.listens("contextmenu")&&h.preventDefault()},vn.prototype.isEnabled=function(){return!0},vn.prototype.isActive=function(){return!1},vn.prototype.enable=function(){},vn.prototype.disable=function(){};var ks=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._container=h.getContainer(),this._clickTolerance=d.clickTolerance||1};function uf(h,d){for(var p={},g=0;gthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=h.timeStamp),p.length===this.numTouches&&(this.centroid=function(g){for(var S=new _.Point(0,0),w=0,C=g;w30)&&(this.aborted=!0)}}},rc.prototype.touchend=function(h,d,p){if((!this.centroid||h.timeStamp-this.startTime>500)&&(this.aborted=!0),p.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}};var us=function(h){this.singleTap=new rc(h),this.numTaps=h.numTaps,this.reset()};us.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},us.prototype.touchstart=function(h,d,p){this.singleTap.touchstart(h,d,p)},us.prototype.touchmove=function(h,d,p){this.singleTap.touchmove(h,d,p)},us.prototype.touchend=function(h,d,p){var g=this.singleTap.touchend(h,d,p);if(g){var S=h.timeStamp-this.lastTime<500,w=!this.lastTap||this.lastTap.dist(g)<30;if(S&&w||this.reset(),this.count++,this.lastTime=h.timeStamp,this.lastTap=g,this.count===this.numTaps)return this.reset(),g}};var ga=function(){this._zoomIn=new us({numTouches:1,numTaps:2}),this._zoomOut=new us({numTouches:2,numTaps:1}),this.reset()};ga.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},ga.prototype.touchstart=function(h,d,p){this._zoomIn.touchstart(h,d,p),this._zoomOut.touchstart(h,d,p)},ga.prototype.touchmove=function(h,d,p){this._zoomIn.touchmove(h,d,p),this._zoomOut.touchmove(h,d,p)},ga.prototype.touchend=function(h,d,p){var g=this,S=this._zoomIn.touchend(h,d,p),w=this._zoomOut.touchend(h,d,p);return S?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()+1,around:C.unproject(S)},{originalEvent:h})}}):w?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()-1,around:C.unproject(w)},{originalEvent:h})}}):void 0},ga.prototype.touchcancel=function(){this.reset()},ga.prototype.enable=function(){this._enabled=!0},ga.prototype.disable=function(){this._enabled=!1,this.reset()},ga.prototype.isEnabled=function(){return this._enabled},ga.prototype.isActive=function(){return this._active};var Th={0:1,2:2},Yr=function(h){this.reset(),this._clickTolerance=h.clickTolerance||1};Yr.prototype.blur=function(){this.reset()},Yr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yr.prototype._correctButton=function(h,d){return!1},Yr.prototype._move=function(h,d){return{}},Yr.prototype.mousedown=function(h,d){if(!this._lastPoint){var p=U.mouseButton(h);this._correctButton(h,p)&&(this._lastPoint=d,this._eventButton=p)}},Yr.prototype.mousemoveWindow=function(h,d){var p=this._lastPoint;if(p){if(h.preventDefault(),function(g,S){var w=Th[S];return g.buttons===void 0||(g.buttons&w)!==w}(h,this._eventButton))this.reset();else if(this._moved||!(d.dist(p)0&&(this._active=!0);var g=uf(p,d),S=new _.Point(0,0),w=new _.Point(0,0),C=0;for(var P in g){var Z=g[P],Y=this._touches[P];Y&&(S._add(Z),w._add(Z.sub(Y)),C++,g[P]=Z)}if(this._touches=g,!(CMath.abs(h.x)}var lf=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.reset=function(){h.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},d.prototype._start=function(p){this._lastPoints=p,Il(p[0].sub(p[1]))&&(this._valid=!1)},d.prototype._move=function(p,g,S){var w=p[0].sub(this._lastPoints[0]),C=p[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(w,C,S.timeStamp),this._valid)return this._lastPoints=p,this._active=!0,{pitchDelta:(w.y+C.y)/2*-.5}},d.prototype.gestureBeginsVertically=function(p,g,S){if(this._valid!==void 0)return this._valid;var w=p.mag()>=2,C=g.mag()>=2;if(w||C){if(!w||!C)return this._firstMove===void 0&&(this._firstMove=S),S-this._firstMove<100&&void 0;var P=p.y>0==g.y>0;return Il(p)&&Il(g)&&P}},d}(Fs),up={panStep:100,bearingStep:15,pitchStep:10},Ct=function(){var h=up;this._panStep=h.panStep,this._bearingStep=h.bearingStep,this._pitchStep=h.pitchStep,this._rotationDisabled=!1};function Ie(h){return h*(2-h)}Ct.prototype.blur=function(){this.reset()},Ct.prototype.reset=function(){this._active=!1},Ct.prototype.keydown=function(h){var d=this;if(!(h.altKey||h.ctrlKey||h.metaKey)){var p=0,g=0,S=0,w=0,C=0;switch(h.keyCode){case 61:case 107:case 171:case 187:p=1;break;case 189:case 109:case 173:p=-1;break;case 37:h.shiftKey?g=-1:(h.preventDefault(),w=-1);break;case 39:h.shiftKey?g=1:(h.preventDefault(),w=1);break;case 38:h.shiftKey?S=1:(h.preventDefault(),C=-1);break;case 40:h.shiftKey?S=-1:(h.preventDefault(),C=1);break;default:return}return this._rotationDisabled&&(g=0,S=0),{cameraAnimation:function(P){var Z=P.getZoom();P.easeTo({duration:300,easeId:"keyboardHandler",easing:Ie,zoom:p?Math.round(Z)+p*(h.shiftKey?2:1):Z,bearing:P.getBearing()+g*d._bearingStep,pitch:P.getPitch()+S*d._pitchStep,offset:[-w*d._panStep,-C*d._panStep],center:P.getCenter()},{originalEvent:h})}}}},Ct.prototype.enable=function(){this._enabled=!0},Ct.prototype.disable=function(){this._enabled=!1,this.reset()},Ct.prototype.isEnabled=function(){return this._enabled},Ct.prototype.isActive=function(){return this._active},Ct.prototype.disableRotation=function(){this._rotationDisabled=!0},Ct.prototype.enableRotation=function(){this._rotationDisabled=!1};var B=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._handler=d,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,_.bindAll(["_onTimeout"],this)};B.prototype.setZoomRate=function(h){this._defaultZoomRate=h},B.prototype.setWheelZoomRate=function(h){this._wheelZoomRate=h},B.prototype.isEnabled=function(){return!!this._enabled},B.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},B.prototype.isZooming=function(){return!!this._zooming},B.prototype.enable=function(h){this.isEnabled()||(this._enabled=!0,this._aroundCenter=h&&h.around==="center")},B.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},B.prototype.wheel=function(h){if(this.isEnabled()){var d=h.deltaMode===_.window.WheelEvent.DOM_DELTA_LINE?40*h.deltaY:h.deltaY,p=_.browser.now(),g=p-(this._lastWheelEventTime||0);this._lastWheelEventTime=p,d!==0&&d%4.000244140625==0?this._type="wheel":d!==0&&Math.abs(d)<4?this._type="trackpad":g>400?(this._type=null,this._lastValue=d,this._timeout=setTimeout(this._onTimeout,40,h)):this._type||(this._type=Math.abs(g*d)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,d+=this._lastValue)),h.shiftKey&&d&&(d/=4),this._type&&(this._lastWheelEvent=h,this._delta-=d,this._active||this._start(h)),h.preventDefault()}},B.prototype._onTimeout=function(h){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(h)},B.prototype._start=function(h){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 d=U.mousePos(this._el,h);this._around=_.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(d)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},B.prototype.renderFrame=function(){var h=this;if(this._frameId&&(this._frameId=null,this.isActive())){var d=this._map.transform;if(this._delta!==0){var p=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,g=2/(1+Math.exp(-Math.abs(this._delta*p)));this._delta<0&&g!==0&&(g=1/g);var S=typeof this._targetZoom=="number"?d.zoomScale(this._targetZoom):d.scale;this._targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(S*g))),this._type==="wheel"&&(this._startZoom=d.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,C=typeof this._targetZoom=="number"?this._targetZoom:d.zoom,P=this._startZoom,Z=this._easing,Y=!1;if(this._type==="wheel"&&P&&Z){var ce=Math.min((_.browser.now()-this._lastWheelEventTime)/200,1),ge=Z(ce);w=_.number(P,C,ge),ce<1?this._frameId||(this._frameId=!0):Y=!0}else w=C,Y=!0;return this._active=!0,Y&&(this._active=!1,this._finishTimeout=setTimeout(function(){h._zooming=!1,h._handler._triggerRenderFrame(),delete h._targetZoom,delete h._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Y,zoomDelta:w-d.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},B.prototype._smoothOutEasing=function(h){var d=_.ease;if(this._prevEase){var p=this._prevEase,g=(_.browser.now()-p.start)/p.duration,S=p.easing(g+.01)-p.easing(g),w=.27/Math.sqrt(S*S+1e-4)*.01,C=Math.sqrt(.0729-w*w);d=_.bezier(w,C,.25,1)}return this._prevEase={start:_.browser.now(),duration:h,easing:d},d},B.prototype.blur=function(){this.reset()},B.prototype.reset=function(){this._active=!1};var Ys=function(h,d){this._clickZoom=h,this._tapZoom=d};Ys.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Ys.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Ys.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Ys.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var me=function(){this.reset()};me.prototype.reset=function(){this._active=!1},me.prototype.blur=function(){this.reset()},me.prototype.dblclick=function(h,d){return h.preventDefault(),{cameraAnimation:function(p){p.easeTo({duration:300,zoom:p.getZoom()+(h.shiftKey?-1:1),around:p.unproject(d)},{originalEvent:h})}}},me.prototype.enable=function(){this._enabled=!0},me.prototype.disable=function(){this._enabled=!1,this.reset()},me.prototype.isEnabled=function(){return this._enabled},me.prototype.isActive=function(){return this._active};var Bo=function(){this._tap=new us({numTouches:1,numTaps:1}),this.reset()};Bo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Bo.prototype.touchstart=function(h,d,p){this._swipePoint||(this._tapTime&&h.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?p.length>0&&(this._swipePoint=d[0],this._swipeTouch=p[0].identifier):this._tap.touchstart(h,d,p))},Bo.prototype.touchmove=function(h,d,p){if(this._tapTime){if(this._swipePoint){if(p[0].identifier!==this._swipeTouch)return;var g=d[0],S=g.y-this._swipePoint.y;return this._swipePoint=g,h.preventDefault(),this._active=!0,{zoomDelta:S/128}}}else this._tap.touchmove(h,d,p)},Bo.prototype.touchend=function(h,d,p){this._tapTime?this._swipePoint&&p.length===0&&this.reset():this._tap.touchend(h,d,p)&&(this._tapTime=h.timeStamp)},Bo.prototype.touchcancel=function(){this.reset()},Bo.prototype.enable=function(){this._enabled=!0},Bo.prototype.disable=function(){this._enabled=!1,this.reset()},Bo.prototype.isEnabled=function(){return this._enabled},Bo.prototype.isActive=function(){return this._active};var no=function(h,d,p){this._el=h,this._mousePan=d,this._touchPan=p};no.prototype.enable=function(h){this._inertiaOptions=h||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},no.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},no.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},no.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var vu=function(h,d,p){this._pitchWithRotate=h.pitchWithRotate,this._mouseRotate=d,this._mousePitch=p};vu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},vu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},vu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},vu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var bs=function(h,d,p,g){this._el=h,this._touchZoom=d,this._touchRotate=p,this._tapDragZoom=g,this._rotationDisabled=!1,this._enabled=!0};bs.prototype.enable=function(h){this._touchZoom.enable(h),this._rotationDisabled||this._touchRotate.enable(h),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},bs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},bs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},bs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},bs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},bs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Da=function(h){return h.zoom||h.drag||h.pitch||h.rotate},nc=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d}(_.Event);function On(h){return h.panDelta&&h.panDelta.mag()||h.zoomDelta||h.bearingDelta||h.pitchDelta}var gn=function(h,d){this._map=h,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(h),this._bearingSnap=d.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(d),_.bindAll(["handleEvent","handleWindowEvent"],this);var p=this._el;this._listeners=[[p,"touchstart",{passive:!0}],[p,"touchmove",{passive:!1}],[p,"touchend",void 0],[p,"touchcancel",void 0],[p,"mousedown",void 0],[p,"mousemove",void 0],[p,"mouseup",void 0],[_.window.document,"mousemove",{capture:!0}],[_.window.document,"mouseup",void 0],[p,"mouseover",void 0],[p,"mouseout",void 0],[p,"dblclick",void 0],[p,"click",void 0],[p,"keydown",{capture:!1}],[p,"keyup",void 0],[p,"wheel",{passive:!1}],[p,"contextmenu",void 0],[_.window,"blur",void 0]];for(var g=0,S=this._listeners;gC?Math.min(2,tr):Math.max(.5,tr),In=Math.pow(an,1-Nr),Nn=w.unproject($t.add(Nt.mult(Nr*In)).mult(Fr));w.setLocationAtPoint(w.renderWorldCopies?Nn.wrap():Nn,Xe)}S._fireMoveEvents(g)},function(Nr){S._afterEase(g,Nr)},p),this},d.prototype._prepareEase=function(p,g,S){S===void 0&&(S={}),this._moving=!0,g||S.moving||this.fire(new _.Event("movestart",p)),this._zooming&&!S.zooming&&this.fire(new _.Event("zoomstart",p)),this._rotating&&!S.rotating&&this.fire(new _.Event("rotatestart",p)),this._pitching&&!S.pitching&&this.fire(new _.Event("pitchstart",p))},d.prototype._fireMoveEvents=function(p){this.fire(new _.Event("move",p)),this._zooming&&this.fire(new _.Event("zoom",p)),this._rotating&&this.fire(new _.Event("rotate",p)),this._pitching&&this.fire(new _.Event("pitch",p))},d.prototype._afterEase=function(p,g){if(!this._easeId||!g||this._easeId!==g){delete this._easeId;var S=this._zooming,w=this._rotating,C=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,S&&this.fire(new _.Event("zoomend",p)),w&&this.fire(new _.Event("rotateend",p)),C&&this.fire(new _.Event("pitchend",p)),this.fire(new _.Event("moveend",p))}},d.prototype.flyTo=function(p,g){var S=this;if(!p.essential&&_.browser.prefersReducedMotion){var w=_.pick(p,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,g)}this.stop(),p=_.extend({offset:[0,0],speed:1.2,curve:1.42,easing:_.ease},p);var C=this.transform,P=this.getZoom(),Z=this.getBearing(),Y=this.getPitch(),ce=this.getPadding(),ge="zoom"in p?_.clamp(+p.zoom,C.minZoom,C.maxZoom):P,_e="bearing"in p?this._normalizeBearing(p.bearing,Z):Z,Fe="pitch"in p?+p.pitch:Y,Pe="padding"in p?p.padding:C.padding,Xe=C.zoomScale(ge-P),we=_.Point.convert(p.offset),Ge=C.centerPoint.add(we),ct=C.pointLocation(Ge),At=_.LngLat.convert(p.center||ct);this._normalizeCenter(At);var $t=C.project(ct),Nt=C.project(At).sub($t),tr=p.curve,mr=Math.max(C.width,C.height),Nr=mr/Xe,Fr=Nt.mag();if("minZoom"in p){var an=_.clamp(Math.min(p.minZoom,P,ge),C.minZoom,C.maxZoom),In=mr/C.zoomScale(an-P);tr=Math.sqrt(In/Fr*2)}var Nn=tr*tr;function Un(qn){var $n=(Nr*Nr-mr*mr+(qn?-1:1)*Nn*Nn*Fr*Fr)/(2*(qn?Nr:mr)*Nn*Fr);return Math.log(Math.sqrt($n*$n+1)-$n)}function ji(qn){return(Math.exp(qn)-Math.exp(-qn))/2}function hn(qn){return(Math.exp(qn)+Math.exp(-qn))/2}var Kn=Un(0),_i=function(qn){return hn(Kn)/hn(Kn+tr*qn)},ti=function(qn){return mr*((hn(Kn)*(ji($n=Kn+tr*qn)/hn($n))-ji(Kn))/Nn)/Fr;var $n},Xn=(Un(1)-Kn)/tr;if(Math.abs(Fr)<1e-6||!isFinite(Xn)){if(Math.abs(mr-Nr)<1e-6)return this.easeTo(p,g);var pi=Nrp.maxDuration&&(p.duration=0),this._zooming=!0,this._rotating=Z!==_e,this._pitching=Fe!==Y,this._padding=!C.isPaddingEqual(Pe),this._prepareEase(g,!1),this._ease(function(qn){var $n=qn*Xn,wo=1/_i($n);C.zoom=qn===1?ge:P+C.scaleZoom(wo),S._rotating&&(C.bearing=_.number(Z,_e,qn)),S._pitching&&(C.pitch=_.number(Y,Fe,qn)),S._padding&&(C.interpolatePadding(ce,Pe,qn),Ge=C.centerPoint.add(we));var Na=qn===1?At:C.unproject($t.add(Nt.mult(ti($n))).mult(wo));C.setLocationAtPoint(C.renderWorldCopies?Na.wrap():Na,Ge),S._fireMoveEvents(g)},function(){return S._afterEase(g)},p),this},d.prototype.isEasing=function(){return!!this._easeFrameId},d.prototype.stop=function(){return this._stop()},d.prototype._stop=function(p,g){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var S=this._onEaseEnd;delete this._onEaseEnd,S.call(this,g)}if(!p){var w=this.handlers;w&&w.stop(!1)}return this},d.prototype._ease=function(p,g,S){S.animate===!1||S.duration===0?(p(1),g()):(this._easeStart=_.browser.now(),this._easeOptions=S,this._onEaseFrame=p,this._onEaseEnd=g,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},d.prototype._renderFrameCallback=function(){var p=Math.min((_.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(p)),p<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},d.prototype._normalizeBearing=function(p,g){p=_.wrap(p,-180,180);var S=Math.abs(p-g);return Math.abs(p-360-g)180?-360:S<-180?360:0}},d}(_.Evented),qo=function(h){h===void 0&&(h={}),this.options=h,_.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};qo.prototype.getDefaultPosition=function(){return"bottom-right"},qo.prototype.onAdd=function(h){var d=this.options&&this.options.compact;return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=U.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=U.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),d&&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),d===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},qo.prototype.onRemove=function(){U.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},qo.prototype._setElementTitle=function(h,d){var p=this._map._getUIString("AttributionControl."+d);h.title=p,h.setAttribute("aria-label",p)},qo.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"))},qo.prototype._updateEditLink=function(){var h=this._editLink;h||(h=this._editLink=this._container.querySelector(".mapbox-improve-map"));var d=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||_.config.ACCESS_TOKEN}];if(h){var p=d.reduce(function(g,S,w){return S.value&&(g+=S.key+"="+S.value+(w=0)return!1;return!0})).join(" | ");C!==this._attribHTML&&(this._attribHTML=C,h.length?(this._innerContainer.innerHTML=C,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},qo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var mu=function(){_.bindAll(["_updateLogo"],this),_.bindAll(["_updateCompact"],this)};mu.prototype.onAdd=function(h){this._map=h,this._container=U.create("div","mapboxgl-ctrl");var d=U.create("a","mapboxgl-ctrl-logo");return d.target="_blank",d.rel="noopener nofollow",d.href="https://www.mapbox.com/",d.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),d.setAttribute("rel","noopener nofollow"),this._container.appendChild(d),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},mu.prototype.onRemove=function(){U.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},mu.prototype.getDefaultPosition=function(){return"bottom-left"},mu.prototype._updateLogo=function(h){h&&h.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},mu.prototype._logoRequired=function(){if(this._map.style){var h=this._map.style.sourceCaches;for(var d in h)if(h[d].getSource().mapbox_logo)return!0;return!1}},mu.prototype._updateCompact=function(){var h=this._container.children;if(h.length){var d=h[0];this._map.getCanvasContainer().offsetWidth<250?d.classList.add("mapboxgl-compact"):d.classList.remove("mapboxgl-compact")}};var ka=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};ka.prototype.add=function(h){var d=++this._id;return this._queue.push({callback:h,id:d,cancelled:!1}),d},ka.prototype.remove=function(h){for(var d=this._currentlyRunning,p=0,g=d?this._queue.concat(d):this._queue;pg.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(g.minPitch!=null&&g.maxPitch!=null&&g.minPitch>g.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(g.minPitch!=null&&g.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(g.maxPitch!=null&&g.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var w=new ki(g.minZoom,g.maxZoom,g.minPitch,g.maxPitch,g.renderWorldCopies);if(h.call(this,w,g),this._interactive=g.interactive,this._maxTileCacheSize=g.maxTileCacheSize,this._failIfMajorPerformanceCaveat=g.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=g.preserveDrawingBuffer,this._antialias=g.antialias,this._trackResize=g.trackResize,this._bearingSnap=g.bearingSnap,this._refreshExpiredTiles=g.refreshExpiredTiles,this._fadeDuration=g.fadeDuration,this._crossSourceCollisions=g.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=g.collectResourceTiming,this._renderTaskQueue=new ka,this._controls=[],this._mapId=_.uniqueId(),this._locale=_.extend({},Ls,g.locale),this._clickTolerance=g.clickTolerance,this._requestManager=new _.RequestManager(g.transformRequest,g.accessToken),typeof g.container=="string"){if(this._container=_.window.document.getElementById(g.container),!this._container)throw new Error("Container '"+g.container+"' not found.")}else{if(!(g.container instanceof kc))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(g.maxBounds&&this.setMaxBounds(g.maxBounds),_.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 S._update(!1)}),this.on("moveend",function(){return S._update(!1)}),this.on("zoom",function(){return S._update(!0)}),_.window!==void 0&&(_.window.addEventListener("online",this._onWindowOnline,!1),_.window.addEventListener("resize",this._onWindowResize,!1),_.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new gn(this,g),this._hash=g.hash&&new $s(typeof g.hash=="string"&&g.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:g.center,zoom:g.zoom,bearing:g.bearing,pitch:g.pitch}),g.bounds&&(this.resize(),this.fitBounds(g.bounds,_.extend({},g.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=g.localIdeographFontFamily,g.style&&this.setStyle(g.style,{localIdeographFontFamily:g.localIdeographFontFamily}),g.attributionControl&&this.addControl(new qo({customAttribution:g.customAttribution})),this.addControl(new mu,g.logoPosition),this.on("style.load",function(){S.transform.unmodified&&S.jumpTo(S.style.stylesheet)}),this.on("data",function(C){S._update(C.dataType==="style"),S.fire(new _.Event(C.dataType+"data",C))}),this.on("dataloading",function(C){S.fire(new _.Event(C.dataType+"dataloading",C))})}h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d;var p={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return d.prototype._getMapId=function(){return this._mapId},d.prototype.addControl=function(g,S){if(S===void 0&&(S=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var w=g.onAdd(this);this._controls.push(g);var C=this._controlPositions[S];return S.indexOf("bottom")!==-1?C.insertBefore(w,C.firstChild):C.appendChild(w),this},d.prototype.removeControl=function(g){if(!g||!g.onRemove)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var S=this._controls.indexOf(g);return S>-1&&this._controls.splice(S,1),g.onRemove(this),this},d.prototype.hasControl=function(g){return this._controls.indexOf(g)>-1},d.prototype.resize=function(g){var S=this._containerDimensions(),w=S[0],C=S[1];if(w===this.transform.width&&C===this.transform.height)return this;this._resizeCanvas(w,C),this.transform.resize(w,C),this.painter.resize(w,C);var P=!this._moving;return P&&this.fire(new _.Event("movestart",g)).fire(new _.Event("move",g)),this.fire(new _.Event("resize",g)),P&&this.fire(new _.Event("moveend",g)),this},d.prototype.getBounds=function(){return this.transform.getBounds()},d.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},d.prototype.setMaxBounds=function(g){return this.transform.setMaxBounds(_.LngLatBounds.convert(g)),this._update()},d.prototype.setMinZoom=function(g){if((g=g==null?-2:g)>=-2&&g<=this.transform.maxZoom)return this.transform.minZoom=g,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=g,this._update(),this.getZoom()>g&&this.setZoom(g),this;throw new Error("maxZoom must be greater than the current minZoom")},d.prototype.getMaxZoom=function(){return this.transform.maxZoom},d.prototype.setMinPitch=function(g){if((g=g==null?0:g)<0)throw new Error("minPitch must be greater than or equal to 0");if(g>=0&&g<=this.transform.maxPitch)return this.transform.minPitch=g,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(g>=this.transform.minPitch)return this.transform.maxPitch=g,this._update(),this.getPitch()>g&&this.setPitch(g),this;throw new Error("maxPitch must be greater than the current minPitch")},d.prototype.getMaxPitch=function(){return this.transform.maxPitch},d.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},d.prototype.setRenderWorldCopies=function(g){return this.transform.renderWorldCopies=g,this._update()},d.prototype.project=function(g){return this.transform.locationPoint(_.LngLat.convert(g))},d.prototype.unproject=function(g){return this.transform.pointLocation(_.Point.convert(g))},d.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},d.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},d.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},d.prototype._createDelegatedListener=function(g,S,w){var C,P=this;if(g==="mouseenter"||g==="mouseover"){var Z=!1;return{layer:S,listener:w,delegates:{mousemove:function(ce){var ge=P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[];ge.length?Z||(Z=!0,w.call(P,new Ha(g,P,ce.originalEvent,{features:ge}))):Z=!1},mouseout:function(){Z=!1}}}}if(g==="mouseleave"||g==="mouseout"){var Y=!1;return{layer:S,listener:w,delegates:{mousemove:function(ce){(P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[]).length?Y=!0:Y&&(Y=!1,w.call(P,new Ha(g,P,ce.originalEvent)))},mouseout:function(ce){Y&&(Y=!1,w.call(P,new Ha(g,P,ce.originalEvent)))}}}}return{layer:S,listener:w,delegates:(C={},C[g]=function(ce){var ge=P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[];ge.length&&(ce.features=ge,w.call(P,ce),delete ce.features)},C)}},d.prototype.on=function(g,S,w){if(w===void 0)return h.prototype.on.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(C),C.delegates)this.on(P,C.delegates[P]);return this},d.prototype.once=function(g,S,w){if(w===void 0)return h.prototype.once.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in C.delegates)this.once(P,C.delegates[P]);return this},d.prototype.off=function(g,S,w){var C=this;return w===void 0?h.prototype.off.call(this,g,S):(this._delegatedListeners&&this._delegatedListeners[g]&&function(P){for(var Z=P[g],Y=0;Y180;){var C=p.locationPoint(h);if(C.x>=0&&C.y>=0&&C.x<=p.width&&C.y<=p.height)break;h.lng>p.center.lng?h.lng-=360:h.lng+=360}return h}Es.prototype.down=function(h,d){this.mouseRotate.mousedown(h,d),this.mousePitch&&this.mousePitch.mousedown(h,d),U.disableDrag()},Es.prototype.move=function(h,d){var p=this.map,g=this.mouseRotate.mousemoveWindow(h,d);if(g&&g.bearingDelta&&p.setBearing(p.getBearing()+g.bearingDelta),this.mousePitch){var S=this.mousePitch.mousemoveWindow(h,d);S&&S.pitchDelta&&p.setPitch(p.getPitch()+S.pitchDelta)}},Es.prototype.off=function(){var h=this.element;U.removeEventListener(h,"mousedown",this.mousedown),U.removeEventListener(h,"touchstart",this.touchstart,{passive:!1}),U.removeEventListener(h,"touchmove",this.touchmove),U.removeEventListener(h,"touchend",this.touchend),U.removeEventListener(h,"touchcancel",this.reset),this.offTemp()},Es.prototype.offTemp=function(){U.enableDrag(),U.removeEventListener(_.window,"mousemove",this.mousemove),U.removeEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousedown=function(h){this.down(_.extend({},h,{ctrlKey:!0,preventDefault:function(){return h.preventDefault()}}),U.mousePos(this.element,h)),U.addEventListener(_.window,"mousemove",this.mousemove),U.addEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousemove=function(h){this.move(h,U.mousePos(this.element,h))},Es.prototype.mouseup=function(h){this.mouseRotate.mouseupWindow(h),this.mousePitch&&this.mousePitch.mouseupWindow(h),this.offTemp()},Es.prototype.touchstart=function(h){h.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return h.preventDefault()}},this._startPos))},Es.prototype.touchmove=function(h){h.targetTouches.length!==1?this.reset():(this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.move({preventDefault:function(){return h.preventDefault()}},this._lastPos))},Es.prototype.touchend=function(h){h.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=g}this._isDragging&&(this._pos=p.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 _.Event("dragstart"))),this.fire(new _.Event("drag")))},d.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 _.Event("dragend")),this._state="inactive"},d.prototype._addDragHandler=function(p){this._element.contains(p.originalEvent.target)&&(p.preventDefault(),this._positionDelta=p.point.sub(this._pos).add(this._offset),this._pointerdownPos=p.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))},d.prototype.setDraggable=function(p){return this._draggable=!!p,this._map&&(p?(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},d.prototype.isDraggable=function(){return this._draggable},d.prototype.setRotation=function(p){return this._rotation=p||0,this._update(),this},d.prototype.getRotation=function(){return this._rotation},d.prototype.setRotationAlignment=function(p){return this._rotationAlignment=p||"auto",this._update(),this},d.prototype.getRotationAlignment=function(){return this._rotationAlignment},d.prototype.setPitchAlignment=function(p){return this._pitchAlignment=p&&p!=="auto"?p:this._rotationAlignment,this._update(),this},d.prototype.getPitchAlignment=function(){return this._pitchAlignment},d}(_.Evented),Vf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ac=0,oc=!1,Uu=function(h){function d(p){h.call(this),this.options=_.extend({},Vf,p),_.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.onAdd=function(p){var g;return this._map=p,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),g=this._setupUI,Fc!==void 0?g(Fc):_.window.navigator.permissions!==void 0?_.window.navigator.permissions.query({name:"geolocation"}).then(function(S){g(Fc=S.state!=="denied")}):g(Fc=!!_.window.navigator.geolocation),this._container},d.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(_.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(),U.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ac=0,oc=!1},d.prototype._isOutOfMapMaxBounds=function(p){var g=this._map.getMaxBounds(),S=p.coords;return g&&(S.longitudeg.getEast()||S.latitudeg.getNorth())},d.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")}},d.prototype._onSuccess=function(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new _.Event("outofmaxbounds",p)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=p,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(p),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(p),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("geolocate",p)),this._finish()}},d.prototype._updateCamera=function(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude),S=p.coords.accuracy,w=this._map.getBearing(),C=_.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(g.toBounds(S),C,{geolocateSource:!0})},d.prototype._updateMarker=function(p){if(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude);this._accuracyCircleMarker.setLngLat(g).addTo(this._map),this._userLocationDotMarker.setLngLat(g).addTo(this._map),this._accuracy=p.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},d.prototype._updateCircleRadius=function(){var p=this._map._container.clientHeight/2,g=this._map.unproject([0,p]),S=this._map.unproject([1,p]),w=g.distanceTo(S),C=Math.ceil(2*this._accuracy/w);this._circleElement.style.width=C+"px",this._circleElement.style.height=C+"px"},d.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},d.prototype._onError=function(p){if(this._map){if(this.options.trackUserLocation)if(p.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 g=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=g,this._geolocateButton.setAttribute("aria-label",g),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(p.code===3&&oc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("error",p)),this._finish()}},d.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},d.prototype._setupUI=function(p){var g=this;if(this._container.addEventListener("contextmenu",function(C){return C.preventDefault()}),this._geolocateButton=U.create("button","mapboxgl-ctrl-geolocate",this._container),U.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",p===!1){_.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var S=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=S,this._geolocateButton.setAttribute("aria-label",S)}else{var w=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=U.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new cf(this._dotElement),this._circleElement=U.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new cf({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(C){C.geolocateSource||g._watchState!=="ACTIVE_LOCK"||C.originalEvent&&C.originalEvent.type==="resize"||(g._watchState="BACKGROUND",g._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),g._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),g.fire(new _.Event("trackuserlocationend")))})},d.prototype.trigger=function(){if(!this._setup)return _.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 _.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ac--,oc=!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 _.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 _.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 p;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++ac>1?(p={maximumAge:6e5,timeout:0},oc=!0):(p=this.options.positionOptions,oc=!1),this._geolocationWatchID=_.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,p)}}else _.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},d.prototype._clearWatch=function(){_.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)},d}(_.Evented),zu={maxWidth:100,unit:"metric"},tu=function(h){this.options=_.extend({},zu,h),_.bindAll(["_onMove","setUnit"],this)};function jf(h,d,p){var g=p&&p.maxWidth||100,S=h._container.clientHeight/2,w=h.unproject([0,S]),C=h.unproject([g,S]),P=w.distanceTo(C);if(p&&p.unit==="imperial"){var Z=3.2808*P;Z>5280?Ol(d,g,Z/5280,h._getUIString("ScaleControl.Miles")):Ol(d,g,Z,h._getUIString("ScaleControl.Feet"))}else p&&p.unit==="nautical"?Ol(d,g,P/1852,h._getUIString("ScaleControl.NauticalMiles")):P>=1e3?Ol(d,g,P/1e3,h._getUIString("ScaleControl.Kilometers")):Ol(d,g,P,h._getUIString("ScaleControl.Meters"))}function Ol(h,d,p,g){var S,w,C,P=(S=p,(w=Math.pow(10,(""+Math.floor(S)).length-1))*(C=(C=S/w)>=10?10:C>=5?5:C>=3?3:C>=2?2:C>=1?1:function(Z){var Y=Math.pow(10,Math.ceil(-Math.log(Z)/Math.LN10));return Math.round(Z*Y)/Y}(C)));h.style.width=d*(P/p)+"px",h.innerHTML=P+" "+g}tu.prototype.getDefaultPosition=function(){return"bottom-left"},tu.prototype._onMove=function(){jf(this._map,this._container,this.options)},tu.prototype.onAdd=function(h){return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",h.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},tu.prototype.onRemove=function(){U.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},tu.prototype.setUnit=function(h){this.options.unit=h,jf(this._map,this._container,this.options)};var ru=function(h){this._fullscreen=!1,h&&h.container&&(h.container instanceof _.window.HTMLElement?this._container=h.container:_.warnOnce("Full screen control 'container' must be a DOM element.")),_.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in _.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in _.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in _.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in _.window.document&&(this._fullscreenchange="MSFullscreenChange")};ru.prototype.onAdd=function(h){return this._map=h,this._container||(this._container=this._map.getContainer()),this._controlContainer=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",_.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ru.prototype.onRemove=function(){U.remove(this._controlContainer),this._map=null,_.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._checkFullscreenSupport=function(){return!!(_.window.document.fullscreenEnabled||_.window.document.mozFullScreenEnabled||_.window.document.msFullscreenEnabled||_.window.document.webkitFullscreenEnabled)},ru.prototype._setupUI=function(){var h=this._fullscreenButton=U.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);U.create("span","mapboxgl-ctrl-icon",h).setAttribute("aria-hidden",!0),h.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),_.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._updateTitle=function(){var h=this._getTitle();this._fullscreenButton.setAttribute("aria-label",h),this._fullscreenButton.title=h},ru.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ru.prototype._isFullscreen=function(){return this._fullscreen},ru.prototype._changeIcon=function(){(_.window.document.fullscreenElement||_.window.document.mozFullScreenElement||_.window.document.webkitFullscreenElement||_.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())},ru.prototype._onClickFullscreen=function(){this._isFullscreen()?_.window.document.exitFullscreen?_.window.document.exitFullscreen():_.window.document.mozCancelFullScreen?_.window.document.mozCancelFullScreen():_.window.document.msExitFullscreen?_.window.document.msExitFullscreen():_.window.document.webkitCancelFullScreen&&_.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 Dl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ff=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Rh=function(h){function d(p){h.call(this),this.options=_.extend(Object.create(Dl),p),_.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.addTo=function(p){return this._map&&this.remove(),this._map=p,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 _.Event("open")),this},d.prototype.isOpen=function(){return!!this._map},d.prototype.remove=function(){return this._content&&U.remove(this._content),this._container&&(U.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 _.Event("close")),this},d.prototype.getLngLat=function(){return this._lngLat},d.prototype.setLngLat=function(p){return this._lngLat=_.LngLat.convert(p),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},d.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},d.prototype.getElement=function(){return this._container},d.prototype.setText=function(p){return this.setDOMContent(_.window.document.createTextNode(p))},d.prototype.setHTML=function(p){var g,S=_.window.document.createDocumentFragment(),w=_.window.document.createElement("body");for(w.innerHTML=p;g=w.firstChild;)S.appendChild(g);return this.setDOMContent(S)},d.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},d.prototype.setMaxWidth=function(p){return this.options.maxWidth=p,this._update(),this},d.prototype.setDOMContent=function(p){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=U.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(p),this._createCloseButton(),this._update(),this._focusFirstElement(),this},d.prototype.addClassName=function(p){this._container&&this._container.classList.add(p)},d.prototype.removeClassName=function(p){this._container&&this._container.classList.remove(p)},d.prototype.setOffset=function(p){return this.options.offset=p,this._update(),this},d.prototype.toggleClassName=function(p){if(this._container)return this._container.classList.toggle(p)},d.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=U.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))},d.prototype._onMouseUp=function(p){this._update(p.point)},d.prototype._onMouseMove=function(p){this._update(p.point)},d.prototype._onDrag=function(p){this._update(p.point)},d.prototype._update=function(p){var g=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=U.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=U.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(ge){return g._container.classList.add(ge)}),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=ic(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||p)){var S=this._pos=this._trackPointer&&p?p:this._map.project(this._lngLat),w=this.options.anchor,C=function ge(_e){if(_e){if(typeof _e=="number"){var Fe=Math.round(Math.sqrt(.5*Math.pow(_e,2)));return{center:new _.Point(0,0),top:new _.Point(0,_e),"top-left":new _.Point(Fe,Fe),"top-right":new _.Point(-Fe,Fe),bottom:new _.Point(0,-_e),"bottom-left":new _.Point(Fe,-Fe),"bottom-right":new _.Point(-Fe,-Fe),left:new _.Point(_e,0),right:new _.Point(-_e,0)}}if(_e instanceof _.Point||Array.isArray(_e)){var Pe=_.Point.convert(_e);return{center:Pe,top:Pe,"top-left":Pe,"top-right":Pe,bottom:Pe,"bottom-left":Pe,"bottom-right":Pe,left:Pe,right:Pe}}return{center:_.Point.convert(_e.center||[0,0]),top:_.Point.convert(_e.top||[0,0]),"top-left":_.Point.convert(_e["top-left"]||[0,0]),"top-right":_.Point.convert(_e["top-right"]||[0,0]),bottom:_.Point.convert(_e.bottom||[0,0]),"bottom-left":_.Point.convert(_e["bottom-left"]||[0,0]),"bottom-right":_.Point.convert(_e["bottom-right"]||[0,0]),left:_.Point.convert(_e.left||[0,0]),right:_.Point.convert(_e.right||[0,0])}}return ge(new _.Point(0,0))}(this.options.offset);if(!w){var P,Z=this._container.offsetWidth,Y=this._container.offsetHeight;P=S.y+C.bottom.ythis._map.transform.height-Y?["bottom"]:[],S.xthis._map.transform.width-Z/2&&P.push("right"),w=P.length===0?"bottom":P.join("-")}var ce=S.add(C[w]).round();U.setTransform(this._container,Nu[w]+" translate("+ce.x+"px,"+ce.y+"px)"),Zf(this._container,w,"popup")}},d.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var p=this._container.querySelector(ff);p&&p.focus()}},d.prototype._onClose=function(){this.remove()},d}(_.Evented),Hf={version:_.version,supported:le,setRTLTextPlugin:_.setRTLTextPlugin,getRTLTextPluginStatus:_.getRTLTextPluginStatus,Map:Ch,NavigationControl:gu,GeolocateControl:Uu,AttributionControl:qo,ScaleControl:tu,FullscreenControl:ru,Popup:Rh,Marker:cf,Style:Ps,LngLat:_.LngLat,LngLatBounds:_.LngLatBounds,Point:_.Point,MercatorCoordinate:_.MercatorCoordinate,Evented:_.Evented,config:_.config,prewarm:function(){ar().acquire(er)},clearPrewarmedResources:function(){var h=bn;h&&(h.isPreloaded()&&h.numActive()===1?(h.release(er),bn=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 _.config.ACCESS_TOKEN},set accessToken(h){_.config.ACCESS_TOKEN=h},get baseApiUrl(){return _.config.API_URL},set baseApiUrl(h){_.config.API_URL=h},get workerCount(){return Tr.workerCount},set workerCount(h){Tr.workerCount=h},get maxParallelImageRequests(){return _.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(h){_.config.MAX_PARALLEL_IMAGE_REQUESTS=h},clearStorage:function(h){_.clearTileCache(h)},workerUrl:""};return Hf}),re})},63713:function(rr,J,L){"use strict";rr.exports=pe;var re=L(30551);function pe(te){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(te)?te:new Uint8Array(te||0),this.pos=0,this.type=0,this.length=this.buf.length}pe.Varint=0,pe.Fixed64=1,pe.Bytes=2,pe.Fixed32=5;var _=65536*65536,le=1/_,U=12,he=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");pe.prototype={destroy:function(){this.buf=null},readFields:function(te,H,K){for(K=K||this.length;this.pos>3,dt=this.pos;this.type=Be&7,te(Ae,H,this),this.pos===dt&&this.skip(Be)}return H},readMessage:function(te,H){return this.readFields(te,H,this.readVarint()+this.pos)},readFixed32:function(){var te=Et(this.buf,this.pos);return this.pos+=4,te},readSFixed32:function(){var te=Pt(this.buf,this.pos);return this.pos+=4,te},readFixed64:function(){var te=Et(this.buf,this.pos)+Et(this.buf,this.pos+4)*_;return this.pos+=8,te},readSFixed64:function(){var te=Et(this.buf,this.pos)+Pt(this.buf,this.pos+4)*_;return this.pos+=8,te},readFloat:function(){var te=re.read(this.buf,this.pos,!0,23,4);return this.pos+=4,te},readDouble:function(){var te=re.read(this.buf,this.pos,!0,52,8);return this.pos+=8,te},readVarint:function(te){var H=this.buf,K,Be;return Be=H[this.pos++],K=Be&127,Be<128||(Be=H[this.pos++],K|=(Be&127)<<7,Be<128)||(Be=H[this.pos++],K|=(Be&127)<<14,Be<128)||(Be=H[this.pos++],K|=(Be&127)<<21,Be<128)?K:(Be=H[this.pos],K|=(Be&15)<<28,ae(K,te,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var te=this.readVarint();return te%2===1?(te+1)/-2:te/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var te=this.readVarint()+this.pos,H=this.pos;return this.pos=te,te-H>=U&&he?qt(this.buf,H,te):ft(this.buf,H,te)},readBytes:function(){var te=this.readVarint()+this.pos,H=this.buf.subarray(this.pos,te);return this.pos=te,H},readPackedVarint:function(te,H){if(this.type!==pe.Bytes)return te.push(this.readVarint(H));var K=qe(this);for(te=te||[];this.pos127;);else if(H===pe.Bytes)this.pos=this.readVarint()+this.pos;else if(H===pe.Fixed32)this.pos+=4;else if(H===pe.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+H)},writeTag:function(te,H){this.writeVarint(te<<3|H)},realloc:function(te){for(var H=this.length||16;H268435455||te<0){Ke(te,this);return}this.realloc(4),this.buf[this.pos++]=te&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=(te>>>=7)&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=(te>>>=7)&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=te>>>7&127)))},writeSVarint:function(te){this.writeVarint(te<0?-te*2-1:te*2)},writeBoolean:function(te){this.writeVarint(!!te)},writeString:function(te){te=String(te),this.realloc(te.length*4),this.pos++;var H=this.pos;this.pos=Sr(this.buf,te,this.pos);var K=this.pos-H;K>=128&&Dt(H,K,this),this.pos=H-1,this.writeVarint(K),this.pos+=K},writeFloat:function(te){this.realloc(4),re.write(this.buf,te,this.pos,!0,23,4),this.pos+=4},writeDouble:function(te){this.realloc(8),re.write(this.buf,te,this.pos,!0,52,8),this.pos+=8},writeBytes:function(te){var H=te.length;this.writeVarint(H),this.realloc(H);for(var K=0;K=128&&Dt(K,Be,this),this.pos=K-1,this.writeVarint(Be),this.pos+=Be},writeMessage:function(te,H,K){this.writeTag(te,pe.Bytes),this.writeRawMessage(H,K)},writePackedVarint:function(te,H){H.length&&this.writeMessage(te,Yt,H)},writePackedSVarint:function(te,H){H.length&&this.writeMessage(te,Ht,H)},writePackedBoolean:function(te,H){H.length&&this.writeMessage(te,yt,H)},writePackedFloat:function(te,H){H.length&&this.writeMessage(te,ir,H)},writePackedDouble:function(te,H){H.length&&this.writeMessage(te,Xt,H)},writePackedFixed32:function(te,H){H.length&&this.writeMessage(te,bt,H)},writePackedSFixed32:function(te,H){H.length&&this.writeMessage(te,Pr,H)},writePackedFixed64:function(te,H){H.length&&this.writeMessage(te,hr,H)},writePackedSFixed64:function(te,H){H.length&&this.writeMessage(te,ur,H)},writeBytesField:function(te,H){this.writeTag(te,pe.Bytes),this.writeBytes(H)},writeFixed32Field:function(te,H){this.writeTag(te,pe.Fixed32),this.writeFixed32(H)},writeSFixed32Field:function(te,H){this.writeTag(te,pe.Fixed32),this.writeSFixed32(H)},writeFixed64Field:function(te,H){this.writeTag(te,pe.Fixed64),this.writeFixed64(H)},writeSFixed64Field:function(te,H){this.writeTag(te,pe.Fixed64),this.writeSFixed64(H)},writeVarintField:function(te,H){this.writeTag(te,pe.Varint),this.writeVarint(H)},writeSVarintField:function(te,H){this.writeTag(te,pe.Varint),this.writeSVarint(H)},writeStringField:function(te,H){this.writeTag(te,pe.Bytes),this.writeString(H)},writeFloatField:function(te,H){this.writeTag(te,pe.Fixed32),this.writeFloat(H)},writeDoubleField:function(te,H){this.writeTag(te,pe.Fixed64),this.writeDouble(H)},writeBooleanField:function(te,H){this.writeVarintField(te,!!H)}};function ae(te,H,K){var Be=K.buf,Ae,dt;if(dt=Be[K.pos++],Ae=(dt&112)>>4,dt<128||(dt=Be[K.pos++],Ae|=(dt&127)<<3,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<10,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<17,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<24,dt<128)||(dt=Be[K.pos++],Ae|=(dt&1)<<31,dt<128))return ie(te,Ae,H);throw new Error("Expected varint not more than 10 bytes")}function qe(te){return te.type===pe.Bytes?te.readVarint()+te.pos:te.pos+1}function ie(te,H,K){return K?H*4294967296+(te>>>0):(H>>>0)*4294967296+(te>>>0)}function Ke(te,H){var K,Be;if(te>=0?(K=te%4294967296|0,Be=te/4294967296|0):(K=~(-te%4294967296),Be=~(-te/4294967296),K^4294967295?K=K+1|0:(K=0,Be=Be+1|0)),te>=18446744073709552e3||te<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");H.realloc(10),ht(K,Be,H),mt(Be,H)}function ht(te,H,K){K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos]=te&127}function mt(te,H){var K=(te&7)<<4;H.buf[H.pos++]|=K|((te>>>=3)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127)))))}function Dt(te,H,K){var Be=H<=16383?1:H<=2097151?2:H<=268435455?3:Math.floor(Math.log(H)/(Math.LN2*7));K.realloc(Be);for(var Ae=K.pos-1;Ae>=te;Ae--)K.buf[Ae+Be]=K.buf[Ae]}function Yt(te,H){for(var K=0;K>>8,te[K+2]=H>>>16,te[K+3]=H>>>24}function Pt(te,H){return(te[H]|te[H+1]<<8|te[H+2]<<16)+(te[H+3]<<24)}function ft(te,H,K){for(var Be="",Ae=H;Ae239?4:dt>223?3:dt>191?2:1;if(Ae+We>K)break;var it,Mt,yr;We===1?dt<128&&(Ue=dt):We===2?(it=te[Ae+1],(it&192)===128&&(Ue=(dt&31)<<6|it&63,Ue<=127&&(Ue=null))):We===3?(it=te[Ae+1],Mt=te[Ae+2],(it&192)===128&&(Mt&192)===128&&(Ue=(dt&15)<<12|(it&63)<<6|Mt&63,(Ue<=2047||Ue>=55296&&Ue<=57343)&&(Ue=null))):We===4&&(it=te[Ae+1],Mt=te[Ae+2],yr=te[Ae+3],(it&192)===128&&(Mt&192)===128&&(yr&192)===128&&(Ue=(dt&15)<<18|(it&63)<<12|(Mt&63)<<6|yr&63,(Ue<=65535||Ue>=1114112)&&(Ue=null))),Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,Be+=String.fromCharCode(Ue>>>10&1023|55296),Ue=56320|Ue&1023),Be+=String.fromCharCode(Ue),Ae+=We}return Be}function qt(te,H,K){return he.decode(te.subarray(H,K))}function Sr(te,H,K){for(var Be=0,Ae,dt;Be55295&&Ae<57344)if(dt)if(Ae<56320){te[K++]=239,te[K++]=191,te[K++]=189,dt=Ae;continue}else Ae=dt-55296<<10|Ae-56320|65536,dt=null;else{Ae>56319||Be+1===H.length?(te[K++]=239,te[K++]=191,te[K++]=189):dt=Ae;continue}else dt&&(te[K++]=239,te[K++]=191,te[K++]=189,dt=null);Ae<128?te[K++]=Ae:(Ae<2048?te[K++]=Ae>>6|192:(Ae<65536?te[K++]=Ae>>12|224:(te[K++]=Ae>>18|240,te[K++]=Ae>>12&63|128),te[K++]=Ae>>6&63|128),te[K++]=Ae&63|128)}return K}},23167:function(rr,J,L){var re=L(14224);(function(pe,_){rr.exports=_()})(this,function(){"use strict";function pe(Ot,F){if(!(Ot instanceof F))throw new TypeError("Cannot call a class as a function")}function _(Ot,F){for(var ne=0;neF?1:Ot0){if(F.right===null)break;if(ne(Ot,F.right.key)>0){var Ar=F.right;if(F.right=Ar.left,Ar.left=F,F=Ar,F.right===null)break}Ne.right=F,Ne=F,F=F.right}else break}return Ne.right=F.left,_t.left=F.right,F.left=de.right,F.right=de.left,F}function qe(Ot,F,ne,de){var Ne=new U(Ot,F);if(ne===null)return Ne.left=Ne.right=null,Ne;ne=ae(Ot,ne,de);var _t=de(Ot,ne.key);return _t<0?(Ne.left=ne.left,Ne.right=ne,ne.left=null):_t>=0&&(Ne.right=ne.right,Ne.left=ne,ne.right=null),Ne}function ie(Ot,F,ne){var de=null,Ne=null;if(F){F=ae(Ot,F,ne);var _t=ne(F.key,Ot);_t===0?(de=F.left,Ne=F.right):_t<0?(Ne=F.right,F.right=null,de=F):(de=F.left,F.left=null,Ne=F)}return{left:de,right:Ne}}function Ke(Ot,F,ne){return F===null?Ot:(Ot===null||(F=ae(Ot.key,F,ne),F.left=Ot),F)}function ht(Ot,F,ne,de,Ne){if(Ot){de(""+F+(ne?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ")+Ne(Ot)+` +`);var _t=F+(ne?" ":"\u2502 ");Ot.left&&ht(Ot.left,_t,!1,de,Ne),Ot.right&&ht(Ot.right,_t,!0,de,Ne)}}var mt=function(){function Ot(F){F===void 0&&(F=he),this._root=null,this._size=0,this._comparator=F}return Ot.prototype.insert=function(F,ne){return this._size++,this._root=qe(F,ne,this._root,this._comparator)},Ot.prototype.add=function(F,ne){var de=new U(F,ne);this._root===null&&(de.left=de.right=null,this._size++,this._root=de);var Ne=this._comparator,_t=ae(F,this._root,Ne),Kt=Ne(F,_t.key);return Kt===0?this._root=_t:(Kt<0?(de.left=_t.left,de.right=_t,_t.left=null):Kt>0&&(de.right=_t.right,de.left=_t,_t.right=null),this._size++,this._root=de),this._root},Ot.prototype.remove=function(F){this._root=this._remove(F,this._root,this._comparator)},Ot.prototype._remove=function(F,ne,de){var Ne;if(ne===null)return null;ne=ae(F,ne,de);var _t=de(F,ne.key);return _t===0?(ne.left===null?Ne=ne.right:(Ne=ae(F,ne.left,de),Ne.right=ne.right),this._size--,Ne):ne},Ot.prototype.pop=function(){var F=this._root;if(F){for(;F.left;)F=F.left;return this._root=ae(F.key,this._root,this._comparator),this._root=this._remove(F.key,this._root,this._comparator),{key:F.key,data:F.data}}return null},Ot.prototype.findStatic=function(F){for(var ne=this._root,de=this._comparator;ne;){var Ne=de(F,ne.key);if(Ne===0)return ne;Ne<0?ne=ne.left:ne=ne.right}return null},Ot.prototype.find=function(F){return this._root&&(this._root=ae(F,this._root,this._comparator),this._comparator(F,this._root.key)!==0)?null:this._root},Ot.prototype.contains=function(F){for(var ne=this._root,de=this._comparator;ne;){var Ne=de(F,ne.key);if(Ne===0)return!0;Ne<0?ne=ne.left:ne=ne.right}return!1},Ot.prototype.forEach=function(F,ne){for(var de=this._root,Ne=[],_t=!1;!_t;)de!==null?(Ne.push(de),de=de.left):Ne.length!==0?(de=Ne.pop(),F.call(ne,de),de=de.right):_t=!0;return this},Ot.prototype.range=function(F,ne,de,Ne){for(var _t=[],Kt=this._comparator,Ar=this._root,Ve;_t.length!==0||Ar;)if(Ar)_t.push(Ar),Ar=Ar.left;else{if(Ar=_t.pop(),Ve=Kt(Ar.key,ne),Ve>0)break;if(Kt(Ar.key,F)>=0&&de.call(Ne,Ar))return this;Ar=Ar.right}return this},Ot.prototype.keys=function(){var F=[];return this.forEach(function(ne){var de=ne.key;return F.push(de)}),F},Ot.prototype.values=function(){var F=[];return this.forEach(function(ne){var de=ne.data;return F.push(de)}),F},Ot.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Ot.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Ot.prototype.minNode=function(F){if(F===void 0&&(F=this._root),F)for(;F.left;)F=F.left;return F},Ot.prototype.maxNode=function(F){if(F===void 0&&(F=this._root),F)for(;F.right;)F=F.right;return F},Ot.prototype.at=function(F){for(var ne=this._root,de=!1,Ne=0,_t=[];!de;)if(ne)_t.push(ne),ne=ne.left;else if(_t.length>0){if(ne=_t.pop(),Ne===F)return ne;Ne++,ne=ne.right}else de=!0;return null},Ot.prototype.next=function(F){var ne=this._root,de=null;if(F.right){for(de=F.right;de.left;)de=de.left;return de}for(var Ne=this._comparator;ne;){var _t=Ne(F.key,ne.key);if(_t===0)break;_t<0?(de=ne,ne=ne.left):ne=ne.right}return de},Ot.prototype.prev=function(F){var ne=this._root,de=null;if(F.left!==null){for(de=F.left;de.right;)de=de.right;return de}for(var Ne=this._comparator;ne;){var _t=Ne(F.key,ne.key);if(_t===0)break;_t<0?ne=ne.left:(de=ne,ne=ne.right)}return de},Ot.prototype.clear=function(){return this._root=null,this._size=0,this},Ot.prototype.toList=function(){return Ht(this._root)},Ot.prototype.load=function(F,ne,de){ne===void 0&&(ne=[]),de===void 0&&(de=!1);var Ne=F.length,_t=this._comparator;if(de&&yt(F,ne,0,Ne-1,_t),this._root===null)this._root=Dt(F,ne,0,Ne),this._size=Ne;else{var Kt=Xt(this.toList(),Yt(F,ne),_t);Ne=this._size+Ne,this._root=ir({head:Kt},0,Ne)}return this},Ot.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(Ot.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Ot.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Ot.prototype.toString=function(F){F===void 0&&(F=function(Ne){return String(Ne.key)});var ne=[];return ht(this._root,"",!0,function(de){return ne.push(de)},F),ne.join("")},Ot.prototype.update=function(F,ne,de){var Ne=this._comparator,_t=ie(F,this._root,Ne),Kt=_t.left,Ar=_t.right;Ne(F,ne)<0?Ar=qe(ne,de,Ar,Ne):Kt=qe(ne,de,Kt,Ne),this._root=Ke(Kt,Ar,Ne)},Ot.prototype.split=function(F){return ie(F,this._root,this._comparator)},Ot}();function Dt(Ot,F,ne,de){var Ne=de-ne;if(Ne>0){var _t=ne+Math.floor(Ne/2),Kt=Ot[_t],Ar=F[_t],Ve=new U(Kt,Ar);return Ve.left=Dt(Ot,F,ne,_t),Ve.right=Dt(Ot,F,_t+1,de),Ve}return null}function Yt(Ot,F){for(var ne=new U(null,null),de=ne,Ne=0;Ne0?(F=_t=_t.next=ne.pop(),F=F.right):de=!0;return _t.next=null,Ne.next}function ir(Ot,F,ne){var de=ne-F;if(de>0){var Ne=F+Math.floor(de/2),_t=ir(Ot,F,Ne),Kt=Ot.head;return Kt.left=_t,Ot.head=Ot.head.next,Kt.right=ir(Ot,Ne+1,ne),Kt}return null}function Xt(Ot,F,ne){for(var de=new U(null,null),Ne=de,_t=Ot,Kt=F;_t!==null&&Kt!==null;)ne(_t.key,Kt.key)<0?(Ne.next=_t,_t=_t.next):(Ne.next=Kt,Kt=Kt.next),Ne=Ne.next;return _t!==null?Ne.next=_t:Kt!==null&&(Ne.next=Kt),de.next}function yt(Ot,F,ne,de,Ne){if(!(ne>=de)){for(var _t=Ot[ne+de>>1],Kt=ne-1,Ar=de+1;;){do Kt++;while(Ne(Ot[Kt],_t)<0);do Ar--;while(Ne(Ot[Ar],_t)>0);if(Kt>=Ar)break;var Ve=Ot[Kt];Ot[Kt]=Ot[Ar],Ot[Ar]=Ve,Ve=F[Kt],F[Kt]=F[Ar],F[Ar]=Ve}yt(Ot,F,ne,Ar,Ne),yt(Ot,F,Ar+1,de,Ne)}}var bt=function(F,ne){return F.ll.x<=ne.x&&ne.x<=F.ur.x&&F.ll.y<=ne.y&&ne.y<=F.ur.y},Pr=function(F,ne){if(ne.ur.xde.x?1:ne.yde.y?1:0}}]);function Ot(F,ne){pe(this,Ot),F.events===void 0?F.events=[this]:F.events.push(this),this.point=F,this.isLeft=ne}return le(Ot,[{key:"link",value:function(ne){if(ne.point===this.point)throw new Error("Tried to link already linked events");for(var de=ne.point.events,Ne=0,_t=de.length;Ne<_t;Ne++){var Kt=de[Ne];this.point.events.push(Kt),Kt.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var ne=this.point.events.length,de=0;de=0&&Vr>=0?srLn?-1:0:wt<0&&Vr<0?srLn?1:0:Vrwt?1:0}}}]),Ot}(),it=0,Mt=function(){le(Ot,null,[{key:"compare",value:function(ne,de){var Ne=ne.leftSE.point.x,_t=de.leftSE.point.x,Kt=ne.rightSE.point.x,Ar=de.rightSE.point.x;if(ArVe&&wt>sr)return-1;var Vr=ne.comparePoint(de.leftSE.point);if(Vr<0)return 1;if(Vr>0)return-1;var Ln=de.comparePoint(ne.rightSE.point);return Ln!==0?Ln:-1}if(Ne>_t){if(Vewt&&Ve>dr)return 1;var En=de.comparePoint(ne.leftSE.point);if(En!==0)return En;var Rn=ne.comparePoint(de.rightSE.point);return Rn<0?1:Rn>0?-1:1}if(Vewt)return 1;if(KtAr){var si=ne.comparePoint(de.rightSE.point);if(si<0)return 1;if(si>0)return-1}if(Kt!==Ar){var ei=sr-Ve,la=Kt-Ne,sa=dr-wt,Eo=Ar-_t;if(ei>la&&saEo)return-1}return Kt>Ar?1:Ktdr?1:ne.idde.id?1:0}}]);function Ot(F,ne,de,Ne){pe(this,Ot),this.id=++it,this.leftSE=F,F.segment=this,F.otherSE=ne,this.rightSE=ne,ne.segment=this,ne.otherSE=F,this.rings=de,this.windings=Ne}return le(Ot,[{key:"replaceRightSE",value:function(ne){this.rightSE=ne,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var ne=this.leftSE.point.y,de=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:nede?ne:de}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(ne){return ne.x===this.leftSE.point.x&&ne.y===this.leftSE.point.y||ne.x===this.rightSE.point.x&&ne.y===this.rightSE.point.y}},{key:"comparePoint",value:function(ne){if(this.isAnEndpoint(ne))return 0;var de=this.leftSE.point,Ne=this.rightSE.point,_t=this.vector();if(de.x===Ne.x)return ne.x===de.x?0:ne.x0&&Ve.swapEvents(),We.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Ne&&(_t.checkForConsuming(),Kt.checkForConsuming()),de}},{key:"swapEvents",value:function(){var ne=this.rightSE;this.rightSE=this.leftSE,this.leftSE=ne,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var de=0,Ne=this.windings.length;de0){var Kt=de;de=Ne,Ne=Kt}if(de.prev===Ne){var Ar=de;de=Ne,Ne=Ar}for(var Ve=0,wt=Ne.rings.length;Ve0)_t=de,Kt=ne,Ar=-1;else throw new Error("Tried to create degenerate segment at [".concat(ne.x,", ").concat(ne.y,"]"));var wt=new We(_t,!0),sr=new We(Kt,!1);return new Ot(wt,sr,[Ne],[Ar])}}]),Ot}(),yr=function(){function Ot(F,ne,de){if(pe(this,Ot),!Array.isArray(F)||F.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=ne,this.isExterior=de,this.segments=[],typeof F[0][0]!="number"||typeof F[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var Ne=ft.round(F[0][0],F[0][1]);this.bbox={ll:{x:Ne.x,y:Ne.y},ur:{x:Ne.x,y:Ne.y}};for(var _t=Ne,Kt=1,Ar=F.length;Ktthis.bbox.ur.x&&(this.bbox.ur.x=Ve.x),Ve.y>this.bbox.ur.y&&(this.bbox.ur.y=Ve.y),_t=Ve)}(Ne.x!==_t.x||Ne.y!==_t.y)&&this.segments.push(Mt.fromRing(_t,Ne,this))}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=[],de=0,Ne=this.segments.length;dethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.interiorRings.push(_t)}this.multiPoly=ne}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=this.exteriorRing.getSweepEvents(),de=0,Ne=this.interiorRings.length;dethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.polys.push(_t)}this.isSubject=ne}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=[],de=0,Ne=this.polys.length;de0&&(ne=_t)}for(var Kt=ne.segment.prevInResult(),Ar=Kt?Kt.prevInResult():null;;){if(!Kt)return null;if(!Ar)return Kt.ringOut;if(Ar.ringOut!==Kt.ringOut)return Ar.ringOut.enclosingRing()!==Kt.ringOut?Kt.ringOut:Kt.ringOut.enclosingRing();Kt=Ar.prevInResult(),Ar=Kt?Kt.prevInResult():null}}}]),Ot}(),un=function(){function Ot(F){pe(this,Ot),this.exteriorRing=F,F.poly=this,this.interiorRings=[]}return le(Ot,[{key:"addInterior",value:function(ne){this.interiorRings.push(ne),ne.poly=this}},{key:"getGeom",value:function(){var ne=[this.exteriorRing.getGeom()];if(ne[0]===null)return null;for(var de=0,Ne=this.interiorRings.length;de1&&arguments[1]!==void 0?arguments[1]:Mt.compare;pe(this,Ot),this.queue=F,this.tree=new mt(ne),this.segments=[]}return le(Ot,[{key:"process",value:function(ne){var de=ne.segment,Ne=[];if(ne.consumedBy)return ne.isLeft?this.queue.remove(ne.otherSE):this.tree.remove(de),Ne;var _t=ne.isLeft?this.tree.insert(de):this.tree.find(de);if(!_t)throw new Error("Unable to find segment #".concat(de.id," ")+"[".concat(de.leftSE.point.x,", ").concat(de.leftSE.point.y,"] -> ")+"[".concat(de.rightSE.point.x,", ").concat(de.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var Kt=_t,Ar=_t,Ve=void 0,wt=void 0;Ve===void 0;)Kt=this.tree.prev(Kt),Kt===null?Ve=null:Kt.key.consumedBy===void 0&&(Ve=Kt.key);for(;wt===void 0;)Ar=this.tree.next(Ar),Ar===null?wt=null:Ar.key.consumedBy===void 0&&(wt=Ar.key);if(ne.isLeft){var sr=null;if(Ve){var dr=Ve.getIntersection(de);if(dr!==null&&(de.isAnEndpoint(dr)||(sr=dr),!Ve.isAnEndpoint(dr)))for(var Vr=this._splitSafely(Ve,dr),Ln=0,En=Vr.length;Ln0?(this.tree.remove(de),Ne.push(ne)):(this.segments.push(de),de.prev=Ve)}else{if(Ve&&wt){var Q=Ve.getIntersection(wt);if(Q!==null){if(!Ve.isAnEndpoint(Q))for(var se=this._splitSafely(Ve,Q),xe=0,Re=se.length;xern)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var Eo=new jn(Rn),Ks=Rn.size,di=Rn.pop();di;){var W=di.key;if(Rn.size===Ks){var Q=W.segment;throw new Error("Unable to pop() ".concat(W.isLeft?"left":"right"," SweepEvent ")+"[".concat(W.point.x,", ").concat(W.point.y,"] from segment #").concat(Q.id," ")+"[".concat(Q.leftSE.point.x,", ").concat(Q.leftSE.point.y,"] -> ")+"[".concat(Q.rightSE.point.x,", ").concat(Q.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Rn.size>rn)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(Eo.segments.length>$i)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var se=Eo.process(W),xe=0,Re=se.length;xe1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne0)return!0;var Vr=yt.get(wt);return Vr.delete(sr),Vr.size>0||yt.delete(wt),!0}le("deleteMetadata",Sr);function te(Ve,wt){for(var sr=Ve.length-1;sr>=0;--sr){var dr=Ve[sr],Vr=dr(wt);if(!lr(Vr)&&!Cn(Vr)){if(!Bn(Vr))throw new TypeError;wt=Vr}}return wt}function H(Ve,wt,sr,dr){for(var Vr=Ve.length-1;Vr>=0;--Vr){var Ln=Ve[Vr],En=Ln(wt,sr,dr);if(!lr(En)&&!Cn(En)){if(!un(En))throw new TypeError;dr=En}}return dr}function K(Ve,wt,sr){var dr=yt.get(Ve);if(lr(dr)){if(!sr)return;dr=new Ht,yt.set(Ve,dr)}var Vr=dr.get(wt);if(lr(Vr)){if(!sr)return;Vr=new Ht,dr.set(wt,Vr)}return Vr}function Be(Ve,wt,sr){var dr=Ae(Ve,wt,sr);if(dr)return!0;var Vr=de(wt);return Cn(Vr)?!1:Be(Ve,Vr,sr)}function Ae(Ve,wt,sr){var dr=K(wt,sr,!1);return lr(dr)?!1:rn(dr.has(Ve))}function dt(Ve,wt,sr){var dr=Ae(Ve,wt,sr);if(dr)return Ue(Ve,wt,sr);var Vr=de(wt);if(!Cn(Vr))return dt(Ve,Vr,sr)}function Ue(Ve,wt,sr){var dr=K(wt,sr,!1);if(!lr(dr))return dr.get(Ve)}function We(Ve,wt,sr,dr){var Vr=K(sr,dr,!0);Vr.set(Ve,wt)}function it(Ve,wt){var sr=Mt(Ve,wt),dr=de(Ve);if(dr===null)return sr;var Vr=it(dr,wt);if(Vr.length<=0)return sr;if(sr.length<=0)return Vr;for(var Ln=new ir,En=[],Rn=0,xn=sr;Rn=0&&Rn=this._keys.length?(this._index=-1,this._keys=wt,this._values=wt):this._index++,{value:xn,done:!1}}return{value:void 0,done:!0}},En.prototype.throw=function(Rn){throw this._index>=0&&(this._index=-1,this._keys=wt,this._values=wt),Rn},En.prototype.return=function(Rn){return this._index>=0&&(this._index=-1,this._keys=wt,this._values=wt),{value:Rn,done:!0}},En}();return function(){function En(){this._keys=[],this._values=[],this._cacheKey=Ve,this._cacheIndex=-2}return Object.defineProperty(En.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),En.prototype.has=function(Rn){return this._find(Rn,!1)>=0},En.prototype.get=function(Rn){var xn=this._find(Rn,!1);return xn>=0?this._values[xn]:void 0},En.prototype.set=function(Rn,xn){var si=this._find(Rn,!0);return this._values[si]=xn,this},En.prototype.delete=function(Rn){var xn=this._find(Rn,!1);if(xn>=0){for(var si=this._keys.length,ei=xn+1;ei=0&&(z|0)===z||_("invalid parameter type, ("+z+")"+U(Ee)+". must be a nonnegative integer")}function ht(z,Ee,Ze){Ee.indexOf(z)<0&&_("invalid value"+U(Ze)+". must be one of: "+Ee)}var mt=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function Dt(z){Object.keys(z).forEach(function(Ee){mt.indexOf(Ee)<0&&_('invalid regl constructor argument "'+Ee+'". must be one of '+mt)})}function Yt(z,Ee){for(z=z+"";z.length0&&Ee.push(new Xt("unknown",0,Ze))}}),Ee}function ur(z,Ee){Ee.forEach(function(Ze){var Ut=z[Ze.file];if(Ut){var cr=Ut.index[Ze.line];if(cr){cr.errors.push(Ze),Ut.hasErrors=!0;return}}z.unknown.hasErrors=!0,z.unknown.lines[0].errors.push(Ze)})}function Et(z,Ee,Ze,Ut,cr){if(!z.getShaderParameter(Ee,z.COMPILE_STATUS)){var zt=z.getShaderInfoLog(Ee),kt=Ut===z.FRAGMENT_SHADER?"fragment":"vertex";H(Ze,"string",kt+" shader source must be a string",cr);var Dr=Pr(Ze,cr),wr=hr(zt);ur(Dr,wr),Object.keys(Dr).forEach(function(Zr){var Br=Dr[Zr];if(!Br.hasErrors)return;var Ur=[""],Wr=[""];function Er(zr,St){Ur.push(zr),Wr.push(St||"")}Er("file number "+Zr+": "+Br.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Br.lines.forEach(function(zr){if(zr.errors.length>0){Er(Yt(zr.number,4)+"| ","background-color:yellow; font-weight:bold"),Er(zr.line+re,"color:red; background-color:yellow; font-weight:bold");var St=0;zr.errors.forEach(function(Qt){var kr=Qt.message,Jr=/^\s*'(.*)'\s*:\s*(.*)$/.exec(kr);if(Jr){var gr=Jr[1];switch(kr=Jr[2],gr){case"assign":gr="=";break}St=Math.max(zr.line.indexOf(gr,St),0)}else St=0;Er(Yt("| ",6)),Er(Yt("^^^",St+3)+re,"font-weight:bold"),Er(Yt("| ",6)),Er(kr+re,"font-weight:bold")}),Er(Yt("| ",6)+re)}else Er(Yt(zr.number,4)+"| "),Er(zr.line+re,"color:red")}),typeof document!="undefined"&&!window.chrome?(Wr[0]=Ur.join("%c"),console.log.apply(console,Wr)):console.log(Ur.join(""))}),le.raise("Error compiling "+kt+" shader, "+Dr[0].name)}}function nt(z,Ee,Ze,Ut,cr){if(!z.getProgramParameter(Ee,z.LINK_STATUS)){var zt=z.getProgramInfoLog(Ee),kt=Pr(Ze,cr),Dr=Pr(Ut,cr),wr='Error linking program with vertex shader, "'+Dr[0].name+'", and fragment shader "'+kt[0].name+'"';typeof document!="undefined"?console.log("%c"+wr+re+"%c"+zt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(wr+re+zt),le.raise(wr)}}function Pt(z){z._commandRef=yt()}function ft(z,Ee,Ze,Ut){Pt(z);function cr(wr){return wr?Ut.id(wr):0}z._fragId=cr(z.static.frag),z._vertId=cr(z.static.vert);function zt(wr,Zr){Object.keys(Zr).forEach(function(Br){wr[Ut.id(Br)]=!0})}var kt=z._uniformSet={};zt(kt,Ee.static),zt(kt,Ee.dynamic);var Dr=z._attributeSet={};zt(Dr,Ze.static),zt(Dr,Ze.dynamic),z._hasCount="count"in z.static||"count"in z.dynamic||"elements"in z.static||"elements"in z.dynamic}function qt(z,Ee){var Ze=bt();_(z+" in command "+(Ee||yt())+(Ze==="unknown"?"":" called from "+Ze))}function Sr(z,Ee,Ze){z||qt(Ee,Ze||yt())}function te(z,Ee,Ze,Ut){z in Ee||qt("unknown parameter ("+z+")"+U(Ze)+". possible values: "+Object.keys(Ee).join(),Ut||yt())}function H(z,Ee,Ze,Ut){qe(z,Ee)||qt("invalid parameter type"+U(Ze)+". expected "+Ee+", got "+typeof z,Ut||yt())}function K(z){z()}function Be(z,Ee,Ze){z.texture?ht(z.texture._texture.internalformat,Ee,"unsupported texture format for attachment"):ht(z.renderbuffer._renderbuffer.format,Ze,"unsupported renderbuffer format for attachment")}var Ae=33071,dt=9728,Ue=9984,We=9985,it=9986,Mt=9987,yr=5120,lr=5121,Cn=5122,mn=5123,un=5124,oi=5125,jn=5126,rn=32819,$i=32820,Wi=33635,Zi=34042,Jn=36193,Bn={};Bn[yr]=Bn[lr]=1,Bn[Cn]=Bn[mn]=Bn[Jn]=Bn[Wi]=Bn[rn]=Bn[$i]=2,Bn[un]=Bn[oi]=Bn[jn]=Bn[Zi]=4;function Do(z,Ee){return z===$i||z===rn||z===Wi?2:z===Zi?4:Bn[z]*Ee}function oa(z){return!(z&z-1)&&!!z}function $a(z,Ee,Ze){var Ut,cr=Ee.width,zt=Ee.height,kt=Ee.channels;le(cr>0&&cr<=Ze.maxTextureSize&&zt>0&&zt<=Ze.maxTextureSize,"invalid texture shape"),(z.wrapS!==Ae||z.wrapT!==Ae)&&le(oa(cr)&&oa(zt),"incompatible wrap mode for texture, both width and height must be power of 2"),Ee.mipmask===1?cr!==1&&zt!==1&&le(z.minFilter!==Ue&&z.minFilter!==it&&z.minFilter!==We&&z.minFilter!==Mt,"min filter requires mipmap"):(le(oa(cr)&&oa(zt),"texture must be a square power of 2 to support mipmapping"),le(Ee.mipmask===(cr<<1)-1,"missing or incomplete mipmap data")),Ee.type===jn&&(Ze.extensions.indexOf("oes_texture_float_linear")<0&&le(z.minFilter===dt&&z.magFilter===dt,"filter not supported, must enable oes_texture_float_linear"),le(!z.genMipmaps,"mipmap generation not supported with float textures"));var Dr=Ee.images;for(Ut=0;Ut<16;++Ut)if(Dr[Ut]){var wr=cr>>Ut,Zr=zt>>Ut;le(Ee.mipmask&1<0&&cr<=Ut.maxTextureSize&&zt>0&&zt<=Ut.maxTextureSize,"invalid texture shape"),le(cr===zt,"cube map must be square"),le(Ee.wrapS===Ae&&Ee.wrapT===Ae,"wrap mode not supported by cube map");for(var Dr=0;Dr>Br,Er=zt>>Br;le(wr.mipmask&1<1&&Ee===Ze&&(Ee==='"'||Ee==="'"))return['"'+_t(z.substr(1,z.length-2))+'"'];var Ut=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(z);if(Ut)return Kt(z.substr(0,Ut.index)).concat(Kt(Ut[1])).concat(Kt(z.substr(Ut.index+Ut[0].length)));var cr=z.split(".");if(cr.length===1)return['"'+_t(z)+'"'];for(var zt=[],kt=0;kt0,"invalid pixel ratio"))):F.raise("invalid arguments to regl"),Ze&&(Ze.nodeName.toLowerCase()==="canvas"?cr=Ze:Ut=Ze),!zt){if(!cr){F(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var Er=Rn(Ut||document.body,Ur,Zr);if(!Er)return null;cr=Er.canvas,Wr=Er.onDestroy}kt.premultipliedAlpha===void 0&&(kt.premultipliedAlpha=!0),zt=xn(cr,kt)}return zt?{gl:zt,canvas:cr,container:Ut,extensions:Dr,optionalExtensions:wr,pixelRatio:Zr,profile:Br,onDone:Ur,onDestroy:Wr}:(Wr(),Ur("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Ks(z,Ee){var Ze={};function Ut(kt){F.type(kt,"string","extension name must be string");var Dr=kt.toLowerCase(),wr;try{wr=Ze[Dr]=z.getExtension(Dr)}catch(Zr){}return!!wr}for(var cr=0;cr65535)<<4,z>>>=Ee,Ze=(z>255)<<3,z>>>=Ze,Ee|=Ze,Ze=(z>15)<<2,z>>>=Ze,Ee|=Ze,Ze=(z>3)<<1,z>>>=Ze,Ee|=Ze,Ee|z>>1}function De(){var z=di(8,function(){return[]});function Ee(zt){var kt=V(zt),Dr=z[q(kt)>>2];return Dr.length>0?Dr.pop():new ArrayBuffer(kt)}function Ze(zt){z[q(zt.byteLength)>>2].push(zt)}function Ut(zt,kt){var Dr=null;switch(zt){case W:Dr=new Int8Array(Ee(kt),0,kt);break;case Q:Dr=new Uint8Array(Ee(kt),0,kt);break;case se:Dr=new Int16Array(Ee(2*kt),0,kt);break;case xe:Dr=new Uint16Array(Ee(2*kt),0,kt);break;case Re:Dr=new Int32Array(Ee(4*kt),0,kt);break;case Je:Dr=new Uint32Array(Ee(4*kt),0,kt);break;case lt:Dr=new Float32Array(Ee(4*kt),0,kt);break;default:return null}return Dr.length!==kt?Dr.subarray(0,kt):Dr}function cr(zt){Ze(zt.buffer)}return{alloc:Ee,free:Ze,allocType:Ut,freeType:cr}}var et=De();et.zero=De();var be=3408,er=3410,Tr=3411,bn=3412,nn=3413,ar=3414,Kr=3415,Hr=33901,$r=33902,hi=3379,Qr=3386,vi=34921,Yi=36347,ci=36348,Li=35661,Si=35660,Xo=34930,Ki=36349,Ia=34076,Ai=34024,mi=7936,Ti=7937,Pa=7938,cu=35724,ma=34047,Aa=36063,$l=34852,os=3553,Ta=34067,fi=34069,Oa=33984,ia=6408,So=5126,ha=5121,$o=36160,Vo=36053,Ru=36064,ss=16384,Cc=function(z,Ee){var Ze=1;Ee.ext_texture_filter_anisotropic&&(Ze=z.getParameter(ma));var Ut=1,cr=1;Ee.webgl_draw_buffers&&(Ut=z.getParameter($l),cr=z.getParameter(Aa));var zt=!!Ee.oes_texture_float;if(zt){var kt=z.createTexture();z.bindTexture(os,kt),z.texImage2D(os,0,ia,1,1,0,ia,So,null);var Dr=z.createFramebuffer();if(z.bindFramebuffer($o,Dr),z.framebufferTexture2D($o,Ru,os,kt,0),z.bindTexture(os,null),z.checkFramebufferStatus($o)!==Vo)zt=!1;else{z.viewport(0,0,1,1),z.clearColor(1,0,0,1),z.clear(ss);var wr=et.allocType(So,4);z.readPixels(0,0,1,1,ia,So,wr),z.getError()?zt=!1:(z.deleteFramebuffer(Dr),z.deleteTexture(kt),zt=wr[0]===1),et.freeType(wr)}}var Zr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Br=!0;if(!Zr){var Ur=z.createTexture(),Wr=et.allocType(ha,36);z.activeTexture(Oa),z.bindTexture(Ta,Ur),z.texImage2D(fi,0,ia,3,3,0,ia,ha,Wr),et.freeType(Wr),z.bindTexture(Ta,null),z.deleteTexture(Ur),Br=!z.getError()}return{colorBits:[z.getParameter(er),z.getParameter(Tr),z.getParameter(bn),z.getParameter(nn)],depthBits:z.getParameter(ar),stencilBits:z.getParameter(Kr),subpixelBits:z.getParameter(be),extensions:Object.keys(Ee).filter(function(Er){return!!Ee[Er]}),maxAnisotropic:Ze,maxDrawbuffers:Ut,maxColorAttachments:cr,pointSizeDims:z.getParameter(Hr),lineWidthDims:z.getParameter($r),maxViewportDims:z.getParameter(Qr),maxCombinedTextureUnits:z.getParameter(Li),maxCubeMapSize:z.getParameter(Ia),maxRenderbufferSize:z.getParameter(Ai),maxTextureUnits:z.getParameter(Xo),maxTextureSize:z.getParameter(hi),maxAttributes:z.getParameter(vi),maxVertexUniforms:z.getParameter(Yi),maxVertexTextureUnits:z.getParameter(Si),maxVaryingVectors:z.getParameter(ci),maxFragmentUniforms:z.getParameter(Ki),glsl:z.getParameter(cu),renderer:z.getParameter(Ti),vendor:z.getParameter(mi),version:z.getParameter(Pa),readFloat:zt,npotTextureCube:Br}};function Ea(z){return!!z&&typeof z=="object"&&Array.isArray(z.shape)&&Array.isArray(z.stride)&&typeof z.offset=="number"&&z.shape.length===z.stride.length&&(Array.isArray(z.data)||J(z.data))}var Qi=function(z){return Object.keys(z).map(function(Ee){return z[Ee]})},Wt={shape:jr,flatten:nr};function yn(z,Ee,Ze){for(var Ut=0;Ut0){var en;if(Array.isArray(Qt[0])){Ir=Qu(Qt);for(var xr=1,Xr=1;Xr0)if(typeof xr[0]=="number"){var qr=et.allocType(gr.dtype,xr.length);Qh(qr,xr),Ir(qr,Fn),et.freeType(qr)}else if(Array.isArray(xr[0])||J(xr[0])){ui=Qu(xr);var gt=Iu(xr,ui,gr.dtype);Ir(gt,Fn),et.freeType(gt)}else F.raise("invalid buffer data")}else if(Ea(xr)){ui=xr.shape;var pr=xr.stride,tt=0,wi=0,on=0,yi=0;ui.length===1?(tt=ui[0],wi=1,on=pr[0],yi=0):ui.length===2?(tt=ui[0],wi=ui[1],on=pr[0],yi=pr[1]):F.raise("invalid shape");var ai=Array.isArray(xr.data)?gr.dtype:Rf(xr.data),Yn=et.allocType(ai,tt*wi);Mf(Yn,xr.data,tt,wi,on,yi,xr.offset),Ir(Yn,Fn),et.freeType(Yn)}else F.raise("invalid data for buffer subdata");return tn}return kr||tn(St),tn._reglType="buffer",tn._buffer=gr,tn.subdata=en,Ze.profile&&(tn.stats=gr.stats),tn.destroy=function(){Wr(gr)},tn}function zr(){Qi(zt).forEach(function(St){St.buffer=z.createBuffer(),z.bindBuffer(St.type,St.buffer),z.bufferData(St.type,St.persistentData||St.byteLength,St.usage)})}return Ze.profile&&(Ee.getTotalBufferSize=function(){var St=0;return Object.keys(zt).forEach(function(Qt){St+=zt[Qt].stats.size}),St}),{create:Er,createStream:wr,destroyStream:Zr,clear:function(){Qi(zt).forEach(Wr),Dr.forEach(Wr)},getBuffer:function(St){return St&&St._buffer instanceof kt?St._buffer:null},restore:zr,_initBuffer:Ur}}var dh=0,vh=0,Jh=1,ep=1,Zp=4,Jc=4,Pu={points:dh,point:vh,lines:Jh,line:ep,triangles:Zp,triangle:Jc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tp=0,Ho=1,Yl=4,Sl=5120,Xs=5121,Al=5122,ii=5123,el=5124,Os=5125,Ou=34963,tl=35040,rp=35044;function Ji(z,Ee,Ze,Ut){var cr={},zt=0,kt={uint8:Xs,uint16:ii};Ee.oes_element_index_uint&&(kt.uint32=Os);function Dr(zr){this.id=zt++,cr[this.id]=this,this.buffer=zr,this.primType=Yl,this.vertCount=0,this.type=0}Dr.prototype.bind=function(){this.buffer.bind()};var wr=[];function Zr(zr){var St=wr.pop();return St||(St=new Dr(Ze.create(null,Ou,!0,!1)._buffer)),Ur(St,zr,tl,-1,-1,0,0),St}function Br(zr){wr.push(zr)}function Ur(zr,St,Qt,kr,Jr,gr,tn){zr.buffer.bind();var Ir;if(St){var en=tn;!tn&&(!J(St)||Ea(St)&&!J(St.data))&&(en=Ee.oes_element_index_uint?Os:ii),Ze._initBuffer(zr.buffer,St,Qt,en,3)}else z.bufferData(Ou,gr,Qt),zr.buffer.dtype=Ir||Xs,zr.buffer.usage=Qt,zr.buffer.dimension=3,zr.buffer.byteLength=gr;if(Ir=tn,!tn){switch(zr.buffer.dtype){case Xs:case Sl:Ir=Xs;break;case ii:case Al:Ir=ii;break;case Os:case el:Ir=Os;break;default:F.raise("unsupported type for element array")}zr.buffer.dtype=Ir}zr.type=Ir,F(Ir!==Os||!!Ee.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var xr=Jr;xr<0&&(xr=zr.buffer.byteLength,Ir===ii?xr>>=1:Ir===Os&&(xr>>=2)),zr.vertCount=xr;var Xr=kr;if(kr<0){Xr=Yl;var Fn=zr.buffer.dimension;Fn===1&&(Xr=tp),Fn===2&&(Xr=Ho),Fn===3&&(Xr=Yl)}zr.primType=Xr}function Wr(zr){Ut.elementsCount--,F(zr.buffer!==null,"must not double destroy elements"),delete cr[zr.id],zr.buffer.destroy(),zr.buffer=null}function Er(zr,St){var Qt=Ze.create(null,Ou,!0),kr=new Dr(Qt._buffer);Ut.elementsCount++;function Jr(gr){if(!gr)Qt(),kr.primType=Yl,kr.vertCount=0,kr.type=Xs;else if(typeof gr=="number")Qt(gr),kr.primType=Yl,kr.vertCount=gr|0,kr.type=Xs;else{var tn=null,Ir=rp,en=-1,xr=-1,Xr=0,Fn=0;Array.isArray(gr)||J(gr)||Ea(gr)?tn=gr:(F.type(gr,"object","invalid arguments for elements"),"data"in gr&&(tn=gr.data,F(Array.isArray(tn)||J(tn)||Ea(tn),"invalid data for element buffer")),"usage"in gr&&(F.parameter(gr.usage,Mu,"invalid element buffer usage"),Ir=Mu[gr.usage]),"primitive"in gr&&(F.parameter(gr.primitive,Pu,"invalid element buffer primitive"),en=Pu[gr.primitive]),"count"in gr&&(F(typeof gr.count=="number"&&gr.count>=0,"invalid vertex count for elements"),xr=gr.count|0),"type"in gr&&(F.parameter(gr.type,kt,"invalid buffer type"),Fn=kt[gr.type]),"length"in gr?Xr=gr.length|0:(Xr=xr,Fn===ii||Fn===Al?Xr*=2:(Fn===Os||Fn===el)&&(Xr*=4))),Ur(kr,tn,Ir,en,xr,Xr,Fn)}return Jr}return Jr(zr),Jr._reglType="elements",Jr._elements=kr,Jr.subdata=function(gr,tn){return Qt.subdata(gr,tn),Jr},Jr.destroy=function(){Wr(kr)},Jr}return{create:Er,createStream:Zr,destroyStream:Br,getElements:function(zr){return typeof zr=="function"&&zr._elements instanceof Dr?zr._elements:null},clear:function(){Qi(cr).forEach(Wr)}}}var Ci=new Float32Array(1),fu=new Uint32Array(Ci.buffer),Du=5123;function mh(z){for(var Ee=et.allocType(Du,z.length),Ze=0;Ze>>31<<15,zt=(Ut<<1>>>24)-127,kt=Ut>>13&1024-1;if(zt<-24)Ee[Ze]=cr;else if(zt<-14){var Dr=-14-zt;Ee[Ze]=cr+(kt+1024>>Dr)}else zt>15?Ee[Ze]=cr+31744:Ee[Ze]=cr+(zt+15<<10)+kt}return Ee}function ja(z){return Array.isArray(z)||J(z)}var ef=function(z){return!(z&z-1)&&!!z},Vp=34467,xs=3553,ku=34067,Fu=34069,ql=6408,If=6406,wa=6407,Qs=6409,Rc=6410,Kl=32854,rl=32855,gh=36194,Ql=32819,ca=32820,tf=33635,np=34042,Tl=6402,Jl=34041,_h=35904,Pf=35906,wl=36193,hu=33776,Mc=33777,rf=33778,ec=33779,tc=35986,ip=35987,nl=34798,Js=35840,nf=35841,Ic=35842,yh=35843,Cl=36196,pu=5121,af=5123,Pc=5125,Bu=5126,Md=10242,Of=10243,xh=10497,Df=33071,ko=33648,bh=10240,ap=10241,kf=9728,Eh=9729,Oc=9984,of=9985,il=9986,pa=9987,Ff=33170,du=4352,Rl=4353,ki=4354,Ca=34046,$s=3317,Bf=37440,Ds=37441,sf=37443,op=37444,Sh=33984,Lf=[Oc,il,of,pa],Ml=[0,Qs,Rc,wa,ql],Fo={};Fo[Qs]=Fo[If]=Fo[Tl]=1,Fo[Jl]=Fo[Rc]=2,Fo[wa]=Fo[_h]=3,Fo[ql]=Fo[Pf]=4;function Ha(z){return"[object "+z+"]"}var al=Ha("HTMLCanvasElement"),Ah=Ha("OffscreenCanvas"),qa=Ha("CanvasRenderingContext2D"),vn=Ha("ImageBitmap"),ks=Ha("HTMLImageElement"),uf=Ha("HTMLVideoElement"),rc=Object.keys(Mn).concat([al,Ah,qa,vn,ks,uf]),us=[];us[pu]=1,us[Bu]=4,us[wl]=2,us[af]=2,us[Pc]=4;var ga=[];ga[Kl]=2,ga[rl]=2,ga[gh]=2,ga[Jl]=4,ga[hu]=.5,ga[Mc]=.5,ga[rf]=1,ga[ec]=1,ga[tc]=.5,ga[ip]=1,ga[nl]=1,ga[Js]=.5,ga[nf]=.25,ga[Ic]=.5,ga[yh]=.25,ga[Cl]=.5;function Th(z){return Array.isArray(z)&&(z.length===0||typeof z[0]=="number")}function Yr(z){if(!Array.isArray(z))return!1;var Ee=z.length;return!(Ee===0||!ja(z[0]))}function ol(z){return Object.prototype.toString.call(z)}function Dc(z){return ol(z)===al}function wh(z){return ol(z)===Ah}function eu(z){return ol(z)===qa}function Fs(z){return ol(z)===vn}function Nf(z){return ol(z)===ks}function Uf(z){return ol(z)===uf}function Yo(z){if(!z)return!1;var Ee=ol(z);return rc.indexOf(Ee)>=0?!0:Th(z)||Yr(z)||Ea(z)}function Lu(z){return Mn[Object.prototype.toString.call(z)]|0}function sp(z,Ee){var Ze=Ee.length;switch(z.type){case pu:case af:case Pc:case Bu:var Ut=et.allocType(z.type,Ze);Ut.set(Ee),z.data=Ut;break;case wl:z.data=mh(Ee);break;default:F.raise("unsupported texture type, must specify a typed array")}}function Il(z,Ee){return et.allocType(z.type===wl?Bu:z.type,Ee)}function lf(z,Ee){z.type===wl?(z.data=mh(Ee),et.freeType(Ee)):z.data=Ee}function up(z,Ee,Ze,Ut,cr,zt){for(var kt=z.width,Dr=z.height,wr=z.channels,Zr=kt*Dr*wr,Br=Il(z,Zr),Ur=0,Wr=0;Wr=1;)Dr+=kt*wr*wr,wr/=2;return Dr}else return kt*Ze*Ut}function Ie(z,Ee,Ze,Ut,cr,zt,kt){var Dr={"don't care":du,"dont care":du,nice:ki,fast:Rl},wr={repeat:xh,clamp:Df,mirror:ko},Zr={nearest:kf,linear:Eh},Br=L({mipmap:pa,"nearest mipmap nearest":Oc,"linear mipmap nearest":of,"nearest mipmap linear":il,"linear mipmap linear":pa},Zr),Ur={none:0,browser:op},Wr={uint8:pu,rgba4:Ql,rgb565:tf,"rgb5 a1":ca},Er={alpha:If,luminance:Qs,"luminance alpha":Rc,rgb:wa,rgba:ql,rgba4:Kl,"rgb5 a1":rl,rgb565:gh},zr={};Ee.ext_srgb&&(Er.srgb=_h,Er.srgba=Pf),Ee.oes_texture_float&&(Wr.float32=Wr.float=Bu),Ee.oes_texture_half_float&&(Wr.float16=Wr["half float"]=wl),Ee.webgl_depth_texture&&(L(Er,{depth:Tl,"depth stencil":Jl}),L(Wr,{uint16:af,uint32:Pc,"depth stencil":np})),Ee.webgl_compressed_texture_s3tc&&L(zr,{"rgb s3tc dxt1":hu,"rgba s3tc dxt1":Mc,"rgba s3tc dxt3":rf,"rgba s3tc dxt5":ec}),Ee.webgl_compressed_texture_atc&&L(zr,{"rgb atc":tc,"rgba atc explicit alpha":ip,"rgba atc interpolated alpha":nl}),Ee.webgl_compressed_texture_pvrtc&&L(zr,{"rgb pvrtc 4bppv1":Js,"rgb pvrtc 2bppv1":nf,"rgba pvrtc 4bppv1":Ic,"rgba pvrtc 2bppv1":yh}),Ee.webgl_compressed_texture_etc1&&(zr["rgb etc1"]=Cl);var St=Array.prototype.slice.call(z.getParameter(Vp));Object.keys(zr).forEach(function(ke){var Zt=zr[ke];St.indexOf(Zt)>=0&&(Er[ke]=Zt)});var Qt=Object.keys(Er);Ze.textureFormats=Qt;var kr=[];Object.keys(Er).forEach(function(ke){var Zt=Er[ke];kr[Zt]=ke});var Jr=[];Object.keys(Wr).forEach(function(ke){var Zt=Wr[ke];Jr[Zt]=ke});var gr=[];Object.keys(Zr).forEach(function(ke){var Zt=Zr[ke];gr[Zt]=ke});var tn=[];Object.keys(Br).forEach(function(ke){var Zt=Br[ke];tn[Zt]=ke});var Ir=[];Object.keys(wr).forEach(function(ke){var Zt=wr[ke];Ir[Zt]=ke});var en=Qt.reduce(function(ke,Zt){var Bt=Er[Zt];return Bt===Qs||Bt===If||Bt===Qs||Bt===Rc||Bt===Tl||Bt===Jl||Ee.ext_srgb&&(Bt===_h||Bt===Pf)?ke[Bt]=Bt:Bt===rl||Zt.indexOf("rgba")>=0?ke[Bt]=ql:ke[Bt]=wa,ke},{});function xr(){this.internalformat=ql,this.format=ql,this.type=pu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=op,this.width=0,this.height=0,this.channels=0}function Xr(ke,Zt){ke.internalformat=Zt.internalformat,ke.format=Zt.format,ke.type=Zt.type,ke.compressed=Zt.compressed,ke.premultiplyAlpha=Zt.premultiplyAlpha,ke.flipY=Zt.flipY,ke.unpackAlignment=Zt.unpackAlignment,ke.colorSpace=Zt.colorSpace,ke.width=Zt.width,ke.height=Zt.height,ke.channels=Zt.channels}function Fn(ke,Zt){if(!(typeof Zt!="object"||!Zt)){if("premultiplyAlpha"in Zt&&(F.type(Zt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),ke.premultiplyAlpha=Zt.premultiplyAlpha),"flipY"in Zt&&(F.type(Zt.flipY,"boolean","invalid texture flip"),ke.flipY=Zt.flipY),"alignment"in Zt&&(F.oneOf(Zt.alignment,[1,2,4,8],"invalid texture unpack alignment"),ke.unpackAlignment=Zt.alignment),"colorSpace"in Zt&&(F.parameter(Zt.colorSpace,Ur,"invalid colorSpace"),ke.colorSpace=Ur[Zt.colorSpace]),"type"in Zt){var Bt=Zt.type;F(Ee.oes_texture_float||!(Bt==="float"||Bt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),F(Ee.oes_texture_half_float||!(Bt==="half float"||Bt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),F(Ee.webgl_depth_texture||!(Bt==="uint16"||Bt==="uint32"||Bt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),F.parameter(Bt,Wr,"invalid texture type"),ke.type=Wr[Bt]}var ln=ke.width,bi=ke.height,da=ke.channels,ue=!1;"shape"in Zt?(F(Array.isArray(Zt.shape)&&Zt.shape.length>=2,"shape must be an array"),ln=Zt.shape[0],bi=Zt.shape[1],Zt.shape.length===3&&(da=Zt.shape[2],F(da>0&&da<=4,"invalid number of channels"),ue=!0),F(ln>=0&&ln<=Ze.maxTextureSize,"invalid width"),F(bi>=0&&bi<=Ze.maxTextureSize,"invalid height")):("radius"in Zt&&(ln=bi=Zt.radius,F(ln>=0&&ln<=Ze.maxTextureSize,"invalid radius")),"width"in Zt&&(ln=Zt.width,F(ln>=0&&ln<=Ze.maxTextureSize,"invalid width")),"height"in Zt&&(bi=Zt.height,F(bi>=0&&bi<=Ze.maxTextureSize,"invalid height")),"channels"in Zt&&(da=Zt.channels,F(da>0&&da<=4,"invalid number of channels"),ue=!0)),ke.width=ln|0,ke.height=bi|0,ke.channels=da|0;var Se=!1;if("format"in Zt){var ze=Zt.format;F(Ee.webgl_depth_texture||!(ze==="depth"||ze==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),F.parameter(ze,Er,"invalid texture format");var Lt=ke.internalformat=Er[ze];ke.format=en[Lt],ze in Wr&&("type"in Zt||(ke.type=Wr[ze])),ze in zr&&(ke.compressed=!0),Se=!0}!ue&&Se?ke.channels=Fo[ke.format]:ue&&!Se?ke.channels!==Ml[ke.format]&&(ke.format=ke.internalformat=Ml[ke.channels]):Se&&ue&&F(ke.channels===Fo[ke.format],"number of channels inconsistent with specified format")}}function ui(ke){z.pixelStorei(Bf,ke.flipY),z.pixelStorei(Ds,ke.premultiplyAlpha),z.pixelStorei(sf,ke.colorSpace),z.pixelStorei($s,ke.unpackAlignment)}function qr(){xr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function gt(ke,Zt){var Bt=null;if(Yo(Zt)?Bt=Zt:Zt&&(F.type(Zt,"object","invalid pixel data type"),Fn(ke,Zt),"x"in Zt&&(ke.xOffset=Zt.x|0),"y"in Zt&&(ke.yOffset=Zt.y|0),Yo(Zt.data)&&(Bt=Zt.data)),F(!ke.compressed||Bt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Zt.copy){F(!Bt,"can not specify copy and data field for the same texture");var ln=cr.viewportWidth,bi=cr.viewportHeight;ke.width=ke.width||ln-ke.xOffset,ke.height=ke.height||bi-ke.yOffset,ke.needsCopy=!0,F(ke.xOffset>=0&&ke.xOffset=0&&ke.yOffset0&&ke.width<=ln&&ke.height>0&&ke.height<=bi,"copy texture read out of bounds")}else if(!Bt)ke.width=ke.width||1,ke.height=ke.height||1,ke.channels=ke.channels||4;else if(J(Bt))ke.channels=ke.channels||4,ke.data=Bt,!("type"in Zt)&&ke.type===pu&&(ke.type=Lu(Bt));else if(Th(Bt))ke.channels=ke.channels||4,sp(ke,Bt),ke.alignment=1,ke.needsFree=!0;else if(Ea(Bt)){var da=Bt.data;!Array.isArray(da)&&ke.type===pu&&(ke.type=Lu(da));var ue=Bt.shape,Se=Bt.stride,ze,Lt,Ft,Ye,st,pt;ue.length===3?(Ft=ue[2],pt=Se[2]):(F(ue.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ft=1,pt=1),ze=ue[0],Lt=ue[1],Ye=Se[0],st=Se[1],ke.alignment=1,ke.width=ze,ke.height=Lt,ke.channels=Ft,ke.format=ke.internalformat=Ml[Ft],ke.needsFree=!0,up(ke,da,Ye,st,pt,Bt.offset)}else if(Dc(Bt)||wh(Bt)||eu(Bt))Dc(Bt)||wh(Bt)?ke.element=Bt:ke.element=Bt.canvas,ke.width=ke.element.width,ke.height=ke.element.height,ke.channels=4;else if(Fs(Bt))ke.element=Bt,ke.width=Bt.width,ke.height=Bt.height,ke.channels=4;else if(Nf(Bt))ke.element=Bt,ke.width=Bt.naturalWidth,ke.height=Bt.naturalHeight,ke.channels=4;else if(Uf(Bt))ke.element=Bt,ke.width=Bt.videoWidth,ke.height=Bt.videoHeight,ke.channels=4;else if(Yr(Bt)){var Me=ke.width||Bt[0].length,rt=ke.height||Bt.length,ve=ke.channels;ja(Bt[0][0])?ve=ve||Bt[0][0].length:ve=ve||1;for(var at=Wt.shape(Bt),Gt=1,or=0;or=0,"oes_texture_float extension not enabled"):ke.type===wl&&F(Ze.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function pr(ke,Zt,Bt){var ln=ke.element,bi=ke.data,da=ke.internalformat,ue=ke.format,Se=ke.type,ze=ke.width,Lt=ke.height;ui(ke),ln?z.texImage2D(Zt,Bt,ue,ue,Se,ln):ke.compressed?z.compressedTexImage2D(Zt,Bt,da,ze,Lt,0,bi):ke.needsCopy?(Ut(),z.copyTexImage2D(Zt,Bt,ue,ke.xOffset,ke.yOffset,ze,Lt,0)):z.texImage2D(Zt,Bt,ue,ze,Lt,0,ue,Se,bi||null)}function tt(ke,Zt,Bt,ln,bi){var da=ke.element,ue=ke.data,Se=ke.internalformat,ze=ke.format,Lt=ke.type,Ft=ke.width,Ye=ke.height;ui(ke),da?z.texSubImage2D(Zt,bi,Bt,ln,ze,Lt,da):ke.compressed?z.compressedTexSubImage2D(Zt,bi,Bt,ln,Se,Ft,Ye,ue):ke.needsCopy?(Ut(),z.copyTexSubImage2D(Zt,bi,Bt,ln,ke.xOffset,ke.yOffset,Ft,Ye)):z.texSubImage2D(Zt,bi,Bt,ln,Ft,Ye,ze,Lt,ue)}var wi=[];function on(){return wi.pop()||new qr}function yi(ke){ke.needsFree&&et.freeType(ke.data),qr.call(ke),wi.push(ke)}function ai(){xr.call(this),this.genMipmaps=!1,this.mipmapHint=du,this.mipmask=0,this.images=Array(16)}function Yn(ke,Zt,Bt){var ln=ke.images[0]=on();ke.mipmask=1,ln.width=ke.width=Zt,ln.height=ke.height=Bt,ln.channels=ke.channels=4}function Ui(ke,Zt){var Bt=null;if(Yo(Zt))Bt=ke.images[0]=on(),Xr(Bt,ke),gt(Bt,Zt),ke.mipmask=1;else if(Fn(ke,Zt),Array.isArray(Zt.mipmap))for(var ln=Zt.mipmap,bi=0;bi>=bi,Bt.height>>=bi,gt(Bt,ln[bi]),ke.mipmask|=1<=0&&!("faces"in Zt)&&(ke.genMipmaps=!0)}if("mag"in Zt){var ln=Zt.mag;F.parameter(ln,Zr),ke.magFilter=Zr[ln]}var bi=ke.wrapS,da=ke.wrapT;if("wrap"in Zt){var ue=Zt.wrap;typeof ue=="string"?(F.parameter(ue,wr),bi=da=wr[ue]):Array.isArray(ue)&&(F.parameter(ue[0],wr),F.parameter(ue[1],wr),bi=wr[ue[0]],da=wr[ue[1]])}else{if("wrapS"in Zt){var Se=Zt.wrapS;F.parameter(Se,wr),bi=wr[Se]}if("wrapT"in Zt){var ze=Zt.wrapT;F.parameter(ze,wr),da=wr[ze]}}if(ke.wrapS=bi,ke.wrapT=da,"anisotropic"in Zt){var Lt=Zt.anisotropic;F(typeof Lt=="number"&&Lt>=1&&Lt<=Ze.maxAnisotropic,"aniso samples must be between 1 and "),ke.anisotropic=Zt.anisotropic}if("mipmap"in Zt){var Ft=!1;switch(typeof Zt.mipmap){case"string":F.parameter(Zt.mipmap,Dr,"invalid mipmap hint"),ke.mipmapHint=Dr[Zt.mipmap],ke.genMipmaps=!0,Ft=!0;break;case"boolean":Ft=ke.genMipmaps=Zt.mipmap;break;case"object":F(Array.isArray(Zt.mipmap),"invalid mipmap type"),ke.genMipmaps=!1,Ft=!0;break;default:F.raise("invalid mipmap type")}Ft&&!("min"in Zt)&&(ke.minFilter=Oc)}}function _o(ke,Zt){z.texParameteri(Zt,ap,ke.minFilter),z.texParameteri(Zt,bh,ke.magFilter),z.texParameteri(Zt,Md,ke.wrapS),z.texParameteri(Zt,Of,ke.wrapT),Ee.ext_texture_filter_anisotropic&&z.texParameteri(Zt,Ca,ke.anisotropic),ke.genMipmaps&&(z.hint(Ff,ke.mipmapHint),z.generateMipmap(Zt))}var Qa=0,Ro={},ps=Ze.maxTextureUnits,Mo=Array(ps).map(function(){return null});function xi(ke){xr.call(this),this.mipmask=0,this.internalformat=ql,this.id=Qa++,this.refCount=1,this.target=ke,this.texture=z.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Sa,kt.profile&&(this.stats={size:0})}function es(ke){z.activeTexture(Sh),z.bindTexture(ke.target,ke.texture)}function aa(){var ke=Mo[0];ke?z.bindTexture(ke.target,ke.texture):z.bindTexture(xs,null)}function Wn(ke){var Zt=ke.texture;F(Zt,"must not double destroy texture");var Bt=ke.unit,ln=ke.target;Bt>=0&&(z.activeTexture(Sh+Bt),z.bindTexture(ln,null),Mo[Bt]=null),z.deleteTexture(Zt),ke.texture=null,ke.params=null,ke.pixels=null,ke.refCount=0,delete Ro[ke.id],zt.textureCount--}L(xi.prototype,{bind:function(){var ke=this;ke.bindCount+=1;var Zt=ke.unit;if(Zt<0){for(var Bt=0;Bt0)continue;ln.unit=-1}Mo[Bt]=ke,Zt=Bt;break}Zt>=ps&&F.raise("insufficient number of texture units"),kt.profile&&zt.maxTextureUnits>st)-Ft,pt.height=pt.height||(Bt.height>>st)-Ye,F(Bt.type===pt.type&&Bt.format===pt.format&&Bt.internalformat===pt.internalformat,"incompatible format for texture.subimage"),F(Ft>=0&&Ye>=0&&Ft+pt.width<=Bt.width&&Ye+pt.height<=Bt.height,"texture.subimage write out of bounds"),F(Bt.mipmask&1<>Ft;++Ft){var Ye=ze>>Ft,st=Lt>>Ft;if(!Ye||!st)break;z.texImage2D(xs,Ft,Bt.format,Ye,st,0,Bt.format,Bt.type,null)}return aa(),kt.profile&&(Bt.stats.size=Ct(Bt.internalformat,Bt.type,ze,Lt,!1,!1)),ln}return ln(ke,Zt),ln.subimage=bi,ln.resize=da,ln._reglType="texture2d",ln._texture=Bt,kt.profile&&(ln.stats=Bt.stats),ln.destroy=function(){Bt.decRef()},ln}function Gi(ke,Zt,Bt,ln,bi,da){var ue=new xi(ku);Ro[ue.id]=ue,zt.cubeCount++;var Se=new Array(6);function ze(Ye,st,pt,Me,rt,ve){var at,Gt=ue.texInfo;for(Sa.call(Gt),at=0;at<6;++at)Se[at]=Ri();if(typeof Ye=="number"||!Ye){var or=Ye|0||1;for(at=0;at<6;++at)Yn(Se[at],or,or)}else if(typeof Ye=="object")if(st)Ui(Se[0],Ye),Ui(Se[1],st),Ui(Se[2],pt),Ui(Se[3],Me),Ui(Se[4],rt),Ui(Se[5],ve);else if(go(Gt,Ye),Fn(ue,Ye),"faces"in Ye){var _r=Ye.faces;for(F(Array.isArray(_r)&&_r.length===6,"cube faces must be a length 6 array"),at=0;at<6;++at)F(typeof _r[at]=="object"&&!!_r[at],"invalid input for cube map face"),Xr(Se[at],ue),Ui(Se[at],_r[at])}else for(at=0;at<6;++at)Ui(Se[at],Ye);else F.raise("invalid arguments to cube map");for(Xr(ue,Se[0]),Ze.npotTextureCube||F(ef(ue.width)&&ef(ue.height),"your browser does not support non power or two texture dimensions"),Gt.genMipmaps?ue.mipmask=(Se[0].width<<1)-1:ue.mipmask=Se[0].mipmask,F.textureCube(ue,Gt,Se,Ze),ue.internalformat=Se[0].internalformat,ze.width=Se[0].width,ze.height=Se[0].height,es(ue),at=0;at<6;++at)mo(Se[at],Fu+at);for(_o(Gt,ku),aa(),kt.profile&&(ue.stats.size=Ct(ue.internalformat,ue.type,ze.width,ze.height,Gt.genMipmaps,!0)),ze.format=kr[ue.internalformat],ze.type=Jr[ue.type],ze.mag=gr[Gt.magFilter],ze.min=tn[Gt.minFilter],ze.wrapS=Ir[Gt.wrapS],ze.wrapT=Ir[Gt.wrapT],at=0;at<6;++at)lo(Se[at]);return ze}function Lt(Ye,st,pt,Me,rt){F(!!st,"must specify image data"),F(typeof Ye=="number"&&Ye===(Ye|0)&&Ye>=0&&Ye<6,"invalid face");var ve=pt|0,at=Me|0,Gt=rt|0,or=on();return Xr(or,ue),or.width=0,or.height=0,gt(or,st),or.width=or.width||(ue.width>>Gt)-ve,or.height=or.height||(ue.height>>Gt)-at,F(ue.type===or.type&&ue.format===or.format&&ue.internalformat===or.internalformat,"incompatible format for texture.subimage"),F(ve>=0&&at>=0&&ve+or.width<=ue.width&&at+or.height<=ue.height,"texture.subimage write out of bounds"),F(ue.mipmask&1<>Me;++Me)z.texImage2D(Fu+pt,Me,ue.format,st>>Me,st>>Me,0,ue.format,ue.type,null);return aa(),kt.profile&&(ue.stats.size=Ct(ue.internalformat,ue.type,ze.width,ze.height,!1,!0)),ze}}return ze(ke,Zt,Bt,ln,bi,da),ze.subimage=Lt,ze.resize=Ft,ze._reglType="textureCube",ze._texture=ue,kt.profile&&(ze.stats=ue.stats),ze.destroy=function(){ue.decRef()},ze}function yo(){for(var ke=0;ke>ln,Bt.height>>ln,0,Bt.internalformat,Bt.type,null);else for(var bi=0;bi<6;++bi)z.texImage2D(Fu+bi,ln,Bt.internalformat,Bt.width>>ln,Bt.height>>ln,0,Bt.internalformat,Bt.type,null);_o(Bt.texInfo,Bt.target)})}return{create2D:Mi,createCube:Gi,clear:yo,getTexture:function(ke){return null},restore:Xu}}var B=36161,Ys=32854,me=32855,Bo=36194,no=33189,vu=36168,bs=34041,Da=35907,nc=34836,On=34842,gn=34843,Bs=[];Bs[Ys]=2,Bs[me]=2,Bs[Bo]=2,Bs[no]=2,Bs[vu]=1,Bs[bs]=4,Bs[Da]=4,Bs[nc]=16,Bs[On]=8,Bs[gn]=6;function qo(z,Ee,Ze){return Bs[z]*Ee*Ze}var mu=function(z,Ee,Ze,Ut,cr){var zt={rgba4:Ys,rgb565:Bo,"rgb5 a1":me,depth:no,stencil:vu,"depth stencil":bs};Ee.ext_srgb&&(zt.srgba=Da),Ee.ext_color_buffer_half_float&&(zt.rgba16f=On,zt.rgb16f=gn),Ee.webgl_color_buffer_float&&(zt.rgba32f=nc);var kt=[];Object.keys(zt).forEach(function(Er){var zr=zt[Er];kt[zr]=Er});var Dr=0,wr={};function Zr(Er){this.id=Dr++,this.refCount=1,this.renderbuffer=Er,this.format=Ys,this.width=0,this.height=0,cr.profile&&(this.stats={size:0})}Zr.prototype.decRef=function(){--this.refCount<=0&&Br(this)};function Br(Er){var zr=Er.renderbuffer;F(zr,"must not double destroy renderbuffer"),z.bindRenderbuffer(B,null),z.deleteRenderbuffer(zr),Er.renderbuffer=null,Er.refCount=0,delete wr[Er.id],Ut.renderbufferCount--}function Ur(Er,zr){var St=new Zr(z.createRenderbuffer());wr[St.id]=St,Ut.renderbufferCount++;function Qt(Jr,gr){var tn=0,Ir=0,en=Ys;if(typeof Jr=="object"&&Jr){var xr=Jr;if("shape"in xr){var Xr=xr.shape;F(Array.isArray(Xr)&&Xr.length>=2,"invalid renderbuffer shape"),tn=Xr[0]|0,Ir=Xr[1]|0}else"radius"in xr&&(tn=Ir=xr.radius|0),"width"in xr&&(tn=xr.width|0),"height"in xr&&(Ir=xr.height|0);"format"in xr&&(F.parameter(xr.format,zt,"invalid renderbuffer format"),en=zt[xr.format])}else typeof Jr=="number"?(tn=Jr|0,typeof gr=="number"?Ir=gr|0:Ir=tn):Jr?F.raise("invalid arguments to renderbuffer constructor"):tn=Ir=1;if(F(tn>0&&Ir>0&&tn<=Ze.maxRenderbufferSize&&Ir<=Ze.maxRenderbufferSize,"invalid renderbuffer size"),!(tn===St.width&&Ir===St.height&&en===St.format))return Qt.width=St.width=tn,Qt.height=St.height=Ir,St.format=en,z.bindRenderbuffer(B,St.renderbuffer),z.renderbufferStorage(B,en,tn,Ir),F(z.getError()===0,"invalid render buffer format"),cr.profile&&(St.stats.size=qo(St.format,St.width,St.height)),Qt.format=kt[St.format],Qt}function kr(Jr,gr){var tn=Jr|0,Ir=gr|0||tn;return tn===St.width&&Ir===St.height||(F(tn>0&&Ir>0&&tn<=Ze.maxRenderbufferSize&&Ir<=Ze.maxRenderbufferSize,"invalid renderbuffer size"),Qt.width=St.width=tn,Qt.height=St.height=Ir,z.bindRenderbuffer(B,St.renderbuffer),z.renderbufferStorage(B,St.format,tn,Ir),F(z.getError()===0,"invalid render buffer format"),cr.profile&&(St.stats.size=qo(St.format,St.width,St.height))),Qt}return Qt(Er,zr),Qt.resize=kr,Qt._reglType="renderbuffer",Qt._renderbuffer=St,cr.profile&&(Qt.stats=St.stats),Qt.destroy=function(){St.decRef()},Qt}cr.profile&&(Ut.getTotalRenderbufferSize=function(){var Er=0;return Object.keys(wr).forEach(function(zr){Er+=wr[zr].stats.size}),Er});function Wr(){Qi(wr).forEach(function(Er){Er.renderbuffer=z.createRenderbuffer(),z.bindRenderbuffer(B,Er.renderbuffer),z.renderbufferStorage(B,Er.format,Er.width,Er.height)}),z.bindRenderbuffer(B,null)}return{create:Ur,clear:function(){Qi(wr).forEach(Br)},restore:Wr}},ka=36160,Ls=36161,qs=3553,kc=34069,ea=36064,To=36096,Ch=36128,Pl=33306,zf=36053,gu=36054,Es=36055,ic=36057,Nu=36061,Zf=36193,Fc=5121,cf=5126,Vf=6407,ac=6408,oc=6402,Uu=[Vf,ac],zu=[];zu[ac]=4,zu[Vf]=3;var tu=[];tu[Fc]=1,tu[cf]=4,tu[Zf]=2;var jf=32854,Ol=32855,ru=36194,Dl=33189,ff=36168,Rh=34041,Hf=35907,h=34836,d=34842,p=34843,g=[jf,Ol,ru,Hf,d,p,h],S={};S[zf]="complete",S[gu]="incomplete attachment",S[ic]="incomplete dimensions",S[Es]="incomplete, missing attachment",S[Nu]="unsupported";function w(z,Ee,Ze,Ut,cr,zt){var kt={cur:null,next:null,dirty:!1,setFBO:null},Dr=["rgba"],wr=["rgba4","rgb565","rgb5 a1"];Ee.ext_srgb&&wr.push("srgba"),Ee.ext_color_buffer_half_float&&wr.push("rgba16f","rgb16f"),Ee.webgl_color_buffer_float&&wr.push("rgba32f");var Zr=["uint8"];Ee.oes_texture_half_float&&Zr.push("half float","float16"),Ee.oes_texture_float&&Zr.push("float","float32");function Br(qr,gt,pr){this.target=qr,this.texture=gt,this.renderbuffer=pr;var tt=0,wi=0;gt?(tt=gt.width,wi=gt.height):pr&&(tt=pr.width,wi=pr.height),this.width=tt,this.height=wi}function Ur(qr){qr&&(qr.texture&&qr.texture._texture.decRef(),qr.renderbuffer&&qr.renderbuffer._renderbuffer.decRef())}function Wr(qr,gt,pr){if(qr)if(qr.texture){var tt=qr.texture._texture,wi=Math.max(1,tt.width),on=Math.max(1,tt.height);F(wi===gt&&on===pr,"inconsistent width/height for supplied texture"),tt.refCount+=1}else{var yi=qr.renderbuffer._renderbuffer;F(yi.width===gt&&yi.height===pr,"inconsistent width/height for renderbuffer"),yi.refCount+=1}}function Er(qr,gt){gt&&(gt.texture?z.framebufferTexture2D(ka,qr,gt.target,gt.texture._texture.texture,0):z.framebufferRenderbuffer(ka,qr,Ls,gt.renderbuffer._renderbuffer.renderbuffer))}function zr(qr){var gt=qs,pr=null,tt=null,wi=qr;typeof qr=="object"&&(wi=qr.data,"target"in qr&&(gt=qr.target|0)),F.type(wi,"function","invalid attachment data");var on=wi._reglType;return on==="texture2d"?(pr=wi,F(gt===qs)):on==="textureCube"?(pr=wi,F(gt>=kc&>=2,"invalid shape for framebuffer"),Yn=es[0],Ui=es[1]}else"radius"in xi&&(Yn=Ui=xi.radius),"width"in xi&&(Yn=xi.width),"height"in xi&&(Ui=xi.height);("color"in xi||"colors"in xi)&&(Ri=xi.color||xi.colors,Array.isArray(Ri)&&F(Ri.length===1||Ee.webgl_draw_buffers,"multiple render targets not supported")),Ri||("colorCount"in xi&&(_o=xi.colorCount|0,F(_o>0,"invalid color buffer count")),"colorTexture"in xi&&(lo=!!xi.colorTexture,Sa="rgba4"),"colorType"in xi&&(go=xi.colorType,lo?(F(Ee.oes_texture_float||!(go==="float"||go==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),F(Ee.oes_texture_half_float||!(go==="half float"||go==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):go==="half float"||go==="float16"?(F(Ee.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Sa="rgba16f"):(go==="float"||go==="float32")&&(F(Ee.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Sa="rgba32f"),F.oneOf(go,Zr,"invalid color type")),"colorFormat"in xi&&(Sa=xi.colorFormat,Dr.indexOf(Sa)>=0?lo=!0:wr.indexOf(Sa)>=0?lo=!1:lo?F.oneOf(xi.colorFormat,Dr,"invalid color format for texture"):F.oneOf(xi.colorFormat,wr,"invalid color format for renderbuffer"))),("depthTexture"in xi||"depthStencilTexture"in xi)&&(Mo=!!(xi.depthTexture||xi.depthStencilTexture),F(!Mo||Ee.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in xi&&(typeof xi.depth=="boolean"?mo=xi.depth:(Qa=xi.depth,Wo=!1)),"stencil"in xi&&(typeof xi.stencil=="boolean"?Wo=xi.stencil:(Ro=xi.stencil,mo=!1)),"depthStencil"in xi&&(typeof xi.depthStencil=="boolean"?mo=Wo=xi.depthStencil:(ps=xi.depthStencil,mo=!1,Wo=!1))}var aa=null,Wn=null,Mi=null,Gi=null;if(Array.isArray(Ri))aa=Ri.map(zr);else if(Ri)aa=[zr(Ri)];else for(aa=new Array(_o),ai=0;ai<_o;++ai)aa[ai]=St(Yn,Ui,lo,Sa,go);F(Ee.webgl_draw_buffers||aa.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),F(aa.length<=Ze.maxColorAttachments,"too many color attachments, not supported"),Yn=Yn||aa[0].width,Ui=Ui||aa[0].height,Qa?Wn=zr(Qa):mo&&!Wo&&(Wn=St(Yn,Ui,Mo,"depth","uint32")),Ro?Mi=zr(Ro):Wo&&!mo&&(Mi=St(Yn,Ui,!1,"stencil","uint8")),ps?Gi=zr(ps):!Qa&&!Ro&&Wo&&mo&&(Gi=St(Yn,Ui,Mo,"depth stencil","depth stencil")),F(!!Qa+!!Ro+!!ps<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var yo=null;for(ai=0;ai=0||aa[ai].renderbuffer&&g.indexOf(aa[ai].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+ai+" is invalid"),aa[ai]&&aa[ai].texture){var Xu=zu[aa[ai].texture._texture.format]*tu[aa[ai].texture._texture.type];yo===null?yo=Xu:F(yo===Xu,"all color attachments much have the same number of bits per pixel.")}return Wr(Wn,Yn,Ui),F(!Wn||Wn.texture&&Wn.texture._texture.format===oc||Wn.renderbuffer&&Wn.renderbuffer._renderbuffer.format===Dl,"invalid depth attachment for framebuffer object"),Wr(Mi,Yn,Ui),F(!Mi||Mi.renderbuffer&&Mi.renderbuffer._renderbuffer.format===ff,"invalid stencil attachment for framebuffer object"),Wr(Gi,Yn,Ui),F(!Gi||Gi.texture&&Gi.texture._texture.format===Rh||Gi.renderbuffer&&Gi.renderbuffer._renderbuffer.format===Rh,"invalid depth-stencil attachment for framebuffer object"),Ir(pr),pr.width=Yn,pr.height=Ui,pr.colorAttachments=aa,pr.depthAttachment=Wn,pr.stencilAttachment=Mi,pr.depthStencilAttachment=Gi,tt.color=aa.map(Qt),tt.depth=Qt(Wn),tt.stencil=Qt(Mi),tt.depthStencil=Qt(Gi),tt.width=pr.width,tt.height=pr.height,xr(pr),tt}function wi(on,yi){F(kt.next!==pr,"can not resize a framebuffer which is currently in use");var ai=Math.max(on|0,1),Yn=Math.max(yi|0||ai,1);if(ai===pr.width&&Yn===pr.height)return tt;for(var Ui=pr.colorAttachments,mo=0;mo=2,"invalid shape for framebuffer"),F(lo[0]===lo[1],"cube framebuffer must be square"),ai=lo[0]}else"radius"in Ri&&(ai=Ri.radius|0),"width"in Ri?(ai=Ri.width|0,"height"in Ri&&F(Ri.height===ai,"must be square")):"height"in Ri&&(ai=Ri.height|0);("color"in Ri||"colors"in Ri)&&(Yn=Ri.color||Ri.colors,Array.isArray(Yn)&&F(Yn.length===1||Ee.webgl_draw_buffers,"multiple render targets not supported")),Yn||("colorCount"in Ri&&(Wo=Ri.colorCount|0,F(Wo>0,"invalid color buffer count")),"colorType"in Ri&&(F.oneOf(Ri.colorType,Zr,"invalid color type"),mo=Ri.colorType),"colorFormat"in Ri&&(Ui=Ri.colorFormat,F.oneOf(Ri.colorFormat,Dr,"invalid color format for texture"))),"depth"in Ri&&(yi.depth=Ri.depth),"stencil"in Ri&&(yi.stencil=Ri.stencil),"depthStencil"in Ri&&(yi.depthStencil=Ri.depthStencil)}var Sa;if(Yn)if(Array.isArray(Yn))for(Sa=[],on=0;on0&&(yi.depth=gt[0].depth,yi.stencil=gt[0].stencil,yi.depthStencil=gt[0].depthStencil),gt[on]?gt[on](yi):gt[on]=Xr(yi)}return L(pr,{width:ai,height:ai,color:Sa})}function tt(wi){var on,yi=wi|0;if(F(yi>0&&yi<=Ze.maxCubeMapSize,"invalid radius for cube fbo"),yi===pr.width)return pr;var ai=pr.color;for(on=0;on0,"must specify at least one attribute");for(var Fn=0;Fn=1&&pr.size<=4,"size must be between 1 and 4"),F(pr.offset>=0,"invalid offset"),F(pr.stride>=0&&pr.stride<=255,"stride must be between 0 and 255"),F(pr.divisor>=0,"divisor must be positive"),F(!pr.divisor||!!Ee.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in gt?(F(qr>0,"first attribute must not be a constant"),pr.x=+gt.x||0,pr.y=+gt.y||0,pr.z=+gt.z||0,pr.w=+gt.w||0,pr.state=2):F(!1,"invalid attribute spec for location "+qr)}return en.refresh(),xr}return xr.destroy=function(){en.destroy()},xr._vao=en,xr._reglType="vao",xr(Ir)}return Br}var ce=35632,ge=35633,_e=35718,Fe=35721;function Pe(z,Ee,Ze,Ut){var cr={},zt={};function kt(St,Qt,kr,Jr){this.name=St,this.id=Qt,this.location=kr,this.info=Jr}function Dr(St,Qt){for(var kr=0;kr1)for(var ui=0;uiSt&&(St=Qt.stats.uniformsCount)}),St},Ze.getMaxAttributesCount=function(){var St=0;return Br.forEach(function(Qt){Qt.stats.attributesCount>St&&(St=Qt.stats.attributesCount)}),St});function zr(){cr={},zt={};for(var St=0;St=0,"missing vertex shader",kr),F.command(Qt>=0,"missing fragment shader",kr);var gr=Zr[Qt];gr||(gr=Zr[Qt]={});var tn=gr[St];if(tn&&!Jr)return tn;var Ir=new Wr(Qt,St);return Ze.shaderCount++,Er(Ir,kr,Jr),tn||(gr[St]=Ir),Br.push(Ir),Ir},restore:zr,shader:wr,frag:-1,vert:-1}}var Xe=6408,we=5121,Ge=3333,ct=5126;function At(z,Ee,Ze,Ut,cr,zt,kt){function Dr(Br){var Ur;Ee.next===null?(F(cr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Ur=we):(F(Ee.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Ur=Ee.next.colorAttachments[0].texture._texture.type,zt.oes_texture_float?(F(Ur===we||Ur===ct,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Ur===ct&&F(kt.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):F(Ur===we,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Wr=0,Er=0,zr=Ut.framebufferWidth,St=Ut.framebufferHeight,Qt=null;J(Br)?Qt=Br:Br&&(F.type(Br,"object","invalid arguments to regl.read()"),Wr=Br.x|0,Er=Br.y|0,F(Wr>=0&&Wr=0&&Er0&&zr+Wr<=Ut.framebufferWidth,"invalid width for read pixels"),F(St>0&&St+Er<=Ut.framebufferHeight,"invalid height for read pixels"),Ze();var kr=zr*St*4;return Qt||(Ur===we?Qt=new Uint8Array(kr):Ur===ct&&(Qt=Qt||new Float32Array(kr))),F.isTypedArray(Qt,"data buffer for regl.read() must be a typedarray"),F(Qt.byteLength>=kr,"data buffer for regl.read() too small"),z.pixelStorei(Ge,4),z.readPixels(Wr,Er,zr,St,Xe,Ur,Qt),Qt}function wr(Br){var Ur;return Ee.setFBO({framebuffer:Br.framebuffer},function(){Ur=Dr(Br)}),Ur}function Zr(Br){return!Br||!("framebuffer"in Br)?Dr(Br):wr(Br)}return Zr}function $t(z){return Array.prototype.slice.call(z)}function Nt(z){return $t(z).join("")}function tr(){var z=0,Ee=[],Ze=[];function Ut(Ur){for(var Wr=0;Wr0&&(Ur.push(St,"="),Ur.push.apply(Ur,$t(arguments)),Ur.push(";")),St}return L(Wr,{def:zr,toString:function(){return Nt([Er.length>0?"var "+Er.join(",")+";":"",Nt(Ur)])}})}function zt(){var Ur=cr(),Wr=cr(),Er=Ur.toString,zr=Wr.toString;function St(Qt,kr){Wr(Qt,kr,"=",Ur.def(Qt,kr),";")}return L(function(){Ur.apply(Ur,$t(arguments))},{def:Ur.def,entry:Ur,exit:Wr,save:St,set:function(Qt,kr,Jr){St(Qt,kr),Ur(Qt,kr,"=",Jr,";")},toString:function(){return Er()+zr()}})}function kt(){var Ur=Nt(arguments),Wr=zt(),Er=zt(),zr=Wr.toString,St=Er.toString;return L(Wr,{then:function(){return Wr.apply(Wr,$t(arguments)),this},else:function(){return Er.apply(Er,$t(arguments)),this},toString:function(){var Qt=St();return Qt&&(Qt="else{"+Qt+"}"),Nt(["if(",Ur,"){",zr(),"}",Qt])}})}var Dr=cr(),wr={};function Zr(Ur,Wr){var Er=[];function zr(){var gr="a"+Er.length;return Er.push(gr),gr}Wr=Wr||0;for(var St=0;St":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},fc={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xp={frag:Bv,vert:jp},Ul={cw:pp,ccw:Ph};function Gf(z){return Array.isArray(z)||J(z)||Ea(z)}function vp(z){return z.sort(function(Ee,Ze){return Ee===Ko?-1:Ze===Ko?1:Ee=1,Ut>=2,Ee)}else if(Ze===hn){var cr=z.data;return new Ts(cr.thisDep,cr.contextDep,cr.propDep,Ee)}else return new Ts(Ze===ji,Ze===Un,Ze===Nn,Ee)}var $p=new Ts(!1,!1,!1,function(){});function Xf(z,Ee,Ze,Ut,cr,zt,kt,Dr,wr,Zr,Br,Ur,Wr,Er,zr){var St=Zr.Record,Qt={add:32774,subtract:32778,"reverse subtract":32779};Ze.ext_blend_minmax&&(Qt.min=Wp,Qt.max=xf);var kr=Ze.angle_instanced_arrays,Jr=Ze.webgl_draw_buffers,gr={dirty:!0,profile:zr.profile},tn={},Ir=[],en={},xr={};function Xr(ue){return ue.replace(".","_")}function Fn(ue,Se,ze){var Lt=Xr(ue);Ir.push(ue),tn[Lt]=gr[Lt]=!!ze,en[Lt]=Se}function ui(ue,Se,ze){var Lt=Xr(ue);Ir.push(ue),Array.isArray(ze)?(gr[Lt]=ze.slice(),tn[Lt]=ze.slice()):gr[Lt]=tn[Lt]=ze,xr[Lt]=Se}Fn(Kn,Nc),Fn(_i,Pd),ui(ti,"blendColor",[0,0,0,0]),ui(Xn,"blendEquationSeparate",[Gp,Gp]),ui(pi,"blendFuncSeparate",[Oh,Fd,Oh,Fd]),Fn(qn,Od,!0),ui($n,"depthFunc",dp),ui(wo,"depthRange",[0,1]),ui(Na,"depthMask",!0),ui(Co,Co,[!0,!0,!0,!0]),Fn(Lo,lp),ui(Wa,"cullFace",yf),ui(Ga,Ga,Ph),ui(Ss,Ss,1),Fn(ls,Hp),ui(Zu,"polygonOffset",[0,0]),Fn(cs,Dd),Fn(nu,Jm),ui(Ns,"sampleCoverage",[1,!1]),Fn(sl,Mh),ui(kl,"stencilMask",-1),ui(ul,"stencilFunc",[fl,0,-1]),ui(Fl,"stencilOpSeparate",[lc,Nl,Nl,Nl]),ui(Vu,"stencilOpSeparate",[yf,Nl,Nl,Nl]),Fn(iu,Qm),ui(ju,"scissor",[0,0,z.drawingBufferWidth,z.drawingBufferHeight]),ui(Ko,Ko,[0,0,z.drawingBufferWidth,z.drawingBufferHeight]);var qr={gl:z,context:Wr,strings:Ee,next:tn,current:gr,draw:Ur,elements:zt,buffer:cr,shader:Br,attributes:Zr.state,vao:Zr,uniforms:wr,framebuffer:Dr,extensions:Ze,timer:Er,isBufferArgs:Gf},gt={primTypes:Pu,compareFuncs:bf,blendFuncs:hl,blendEquations:Qt,stencilOps:fc,glTypes:jo,orientationType:Ul};F.optional(function(){qr.isArrayLike=ja}),Jr&&(gt.backBuffer=[yf],gt.drawBuffer=di(Ut.maxDrawbuffers,function(ue){return ue===0?[0]:di(ue,function(Se){return Bd+Se})}));var pr=0;function tt(){var ue=tr(),Se=ue.link,ze=ue.global;ue.id=pr++,ue.batchId="0";var Lt=Se(qr),Ft=ue.shared={props:"a0"};Object.keys(qr).forEach(function(rt){Ft[rt]=ze.def(Lt,".",rt)}),F.optional(function(){ue.CHECK=Se(F),ue.commandStr=F.guessCommand(),ue.command=Se(ue.commandStr),ue.assert=function(rt,ve,at){rt("if(!(",ve,"))",this.CHECK,".commandRaise(",Se(at),",",this.command,");")},gt.invalidBlendCombinations=pl});var Ye=ue.next={},st=ue.current={};Object.keys(xr).forEach(function(rt){Array.isArray(gr[rt])&&(Ye[rt]=ze.def(Ft.next,".",rt),st[rt]=ze.def(Ft.current,".",rt))});var pt=ue.constants={};Object.keys(gt).forEach(function(rt){pt[rt]=ze.def(JSON.stringify(gt[rt]))}),ue.invoke=function(rt,ve){switch(ve.type){case In:var at=["this",Ft.context,Ft.props,ue.batchId];return rt.def(Se(ve.data),".call(",at.slice(0,Math.max(ve.data.length+1,4)),")");case Nn:return rt.def(Ft.props,ve.data);case Un:return rt.def(Ft.context,ve.data);case ji:return rt.def("this",ve.data);case hn:return ve.data.append(ue,rt),ve.data.ref}},ue.attribCache={};var Me={};return ue.scopeAttrib=function(rt){var ve=Ee.id(rt);if(ve in Me)return Me[ve];var at=Zr.scope[ve];at||(at=Zr.scope[ve]=new St);var Gt=Me[ve]=Se(at);return Gt},ue}function wi(ue){var Se=ue.static,ze=ue.dynamic,Lt;if(Ka in Se){var Ft=!!Se[Ka];Lt=vo(function(st,pt){return Ft}),Lt.enable=Ft}else if(Ka in ze){var Ye=ze[Ka];Lt=Us(Ye,function(st,pt){return st.invoke(pt,Ye)})}return Lt}function on(ue,Se){var ze=ue.static,Lt=ue.dynamic;if(As in ze){var Ft=ze[As];return Ft?(Ft=Dr.getFramebuffer(Ft),F.command(Ft,"invalid framebuffer object"),vo(function(st,pt){var Me=st.link(Ft),rt=st.shared;pt.set(rt.framebuffer,".next",Me);var ve=rt.context;return pt.set(ve,"."+Wu,Me+".width"),pt.set(ve,"."+Gu,Me+".height"),Me})):vo(function(st,pt){var Me=st.shared;pt.set(Me.framebuffer,".next","null");var rt=Me.context;return pt.set(rt,"."+Wu,rt+"."+Qo),pt.set(rt,"."+Gu,rt+"."+sc),"null"})}else if(As in Lt){var Ye=Lt[As];return Us(Ye,function(st,pt){var Me=st.invoke(pt,Ye),rt=st.shared,ve=rt.framebuffer,at=pt.def(ve,".getFramebuffer(",Me,")");F.optional(function(){st.assert(pt,"!"+Me+"||"+at,"invalid framebuffer object")}),pt.set(ve,".next",at);var Gt=rt.context;return pt.set(Gt,"."+Wu,at+"?"+at+".width:"+Gt+"."+Qo),pt.set(Gt,"."+Gu,at+"?"+at+".height:"+Gt+"."+sc),at})}else return null}function yi(ue,Se,ze){var Lt=ue.static,Ft=ue.dynamic;function Ye(Me){if(Me in Lt){var rt=Lt[Me];F.commandType(rt,"object","invalid "+Me,ze.commandStr);var ve=!0,at=rt.x|0,Gt=rt.y|0,or,_r;return"width"in rt?(or=rt.width|0,F.command(or>=0,"invalid "+Me,ze.commandStr)):ve=!1,"height"in rt?(_r=rt.height|0,F.command(_r>=0,"invalid "+Me,ze.commandStr)):ve=!1,new Ts(!ve&&Se&&Se.thisDep,!ve&&Se&&Se.contextDep,!ve&&Se&&Se.propDep,function(Pn,_n){var Sn=Pn.shared.context,Gn=or;"width"in rt||(Gn=_n.def(Sn,".",Wu,"-",at));var ri=_r;return"height"in rt||(ri=_n.def(Sn,".",Gu,"-",Gt)),[at,Gt,Gn,ri]})}else if(Me in Ft){var vr=Ft[Me],Rr=Us(vr,function(Pn,_n){var Sn=Pn.invoke(_n,vr);F.optional(function(){Pn.assert(_n,Sn+"&&typeof "+Sn+'==="object"',"invalid "+Me)});var Gn=Pn.shared.context,ri=_n.def(Sn,".x|0"),ta=_n.def(Sn,".y|0"),xo=_n.def('"width" in ',Sn,"?",Sn,".width|0:","(",Gn,".",Wu,"-",ri,")"),dl=_n.def('"height" in ',Sn,"?",Sn,".height|0:","(",Gn,".",Gu,"-",ta,")");return F.optional(function(){Pn.assert(_n,xo+">=0&&"+dl+">=0","invalid "+Me)}),[ri,ta,xo,dl]});return Se&&(Rr.thisDep=Rr.thisDep||Se.thisDep,Rr.contextDep=Rr.contextDep||Se.contextDep,Rr.propDep=Rr.propDep||Se.propDep),Rr}else return Se?new Ts(Se.thisDep,Se.contextDep,Se.propDep,function(Pn,_n){var Sn=Pn.shared.context;return[0,0,_n.def(Sn,".",Wu),_n.def(Sn,".",Gu)]}):null}var st=Ye(Ko);if(st){var pt=st;st=new Ts(st.thisDep,st.contextDep,st.propDep,function(Me,rt){var ve=pt.append(Me,rt),at=Me.shared.context;return rt.set(at,"."+ao,ve[2]),rt.set(at,"."+Ll,ve[3]),ve})}return{viewport:st,scissor_box:Ye(ju)}}function ai(ue,Se){var ze=ue.static,Lt=typeof ze[Hu]=="string"&&typeof ze[au]=="string";if(Lt){if(Object.keys(Se.dynamic).length>0)return null;var Ft=Se.static,Ye=Object.keys(Ft);if(Ye.length>0&&typeof Ft[Ye[0]]=="number"){for(var st=[],pt=0;pt=0,"invalid "+ve,Se.commandStr),vo(function(_r,vr){return at&&(_r.OFFSET=Gt),Gt})}else if(ve in Lt){var or=Lt[ve];return Us(or,function(_r,vr){var Rr=_r.invoke(vr,or);return at&&(_r.OFFSET=Rr,F.optional(function(){_r.assert(vr,Rr+">=0","invalid "+ve)})),Rr})}else if(at&&Ye)return vo(function(_r,vr){return _r.OFFSET="0",0});return null}var Me=pt(ou,!0);function rt(){if(io in ze){var ve=ze[io]|0;return F.command(typeof ve=="number"&&ve>=0,"invalid vertex count",Se.commandStr),vo(function(){return ve})}else if(io in Lt){var at=Lt[io];return Us(at,function(_r,vr){var Rr=_r.invoke(vr,at);return F.optional(function(){_r.assert(vr,"typeof "+Rr+'==="number"&&'+Rr+">=0&&"+Rr+"===("+Rr+"|0)","invalid vertex count")}),Rr})}else if(Ye)if(hs(Ye)){if(Ye)return Me?new Ts(Me.thisDep,Me.contextDep,Me.propDep,function(_r,vr){var Rr=vr.def(_r.ELEMENTS,".vertCount-",_r.OFFSET);return F.optional(function(){_r.assert(vr,Rr+">=0","invalid vertex offset/element buffer too small")}),Rr}):vo(function(_r,vr){return vr.def(_r.ELEMENTS,".vertCount")});var Gt=vo(function(){return-1});return F.optional(function(){Gt.MISSING=!0}),Gt}else{var or=new Ts(Ye.thisDep||Me.thisDep,Ye.contextDep||Me.contextDep,Ye.propDep||Me.propDep,function(_r,vr){var Rr=_r.ELEMENTS;return _r.OFFSET?vr.def(Rr,"?",Rr,".vertCount-",_r.OFFSET,":-1"):vr.def(Rr,"?",Rr,".vertCount:-1")});return F.optional(function(){or.DYNAMIC=!0}),or}return null}return{elements:Ye,primitive:st(),count:rt(),instances:pt(Bc,!1),offset:Me}}function mo(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Ir.forEach(function(Ye){var st=Xr(Ye);function pt(Me,rt){if(Ye in ze){var ve=Me(ze[Ye]);Ft[st]=vo(function(){return ve})}else if(Ye in Lt){var at=Lt[Ye];Ft[st]=Us(at,function(Gt,or){return rt(Gt,or,Gt.invoke(or,at))})}}switch(Ye){case Lo:case _i:case Kn:case sl:case qn:case iu:case ls:case cs:case nu:case Na:return pt(function(Me){return F.commandType(Me,"boolean",Ye,Se.commandStr),Me},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="boolean"',"invalid flag "+Ye,Me.commandStr)}),ve});case $n:return pt(function(Me){return F.commandParameter(Me,bf,"invalid "+Ye,Se.commandStr),bf[Me]},function(Me,rt,ve){var at=Me.constants.compareFuncs;return F.optional(function(){Me.assert(rt,ve+" in "+at,"invalid "+Ye+", must be one of "+Object.keys(bf))}),rt.def(at,"[",ve,"]")});case wo:return pt(function(Me){return F.command(ja(Me)&&Me.length===2&&typeof Me[0]=="number"&&typeof Me[1]=="number"&&Me[0]<=Me[1],"depth range is 2d array",Se.commandStr),Me},function(Me,rt,ve){F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===2&&typeof "+ve+'[0]==="number"&&typeof '+ve+'[1]==="number"&&'+ve+"[0]<="+ve+"[1]","depth range must be a 2d array")});var at=rt.def("+",ve,"[0]"),Gt=rt.def("+",ve,"[1]");return[at,Gt]});case pi:return pt(function(Me){F.commandType(Me,"object","blend.func",Se.commandStr);var rt="srcRGB"in Me?Me.srcRGB:Me.src,ve="srcAlpha"in Me?Me.srcAlpha:Me.src,at="dstRGB"in Me?Me.dstRGB:Me.dst,Gt="dstAlpha"in Me?Me.dstAlpha:Me.dst;return F.commandParameter(rt,hl,st+".srcRGB",Se.commandStr),F.commandParameter(ve,hl,st+".srcAlpha",Se.commandStr),F.commandParameter(at,hl,st+".dstRGB",Se.commandStr),F.commandParameter(Gt,hl,st+".dstAlpha",Se.commandStr),F.command(pl.indexOf(rt+", "+at)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+rt+", "+at+")",Se.commandStr),[hl[rt],hl[at],hl[ve],hl[Gt]]},function(Me,rt,ve){var at=Me.constants.blendFuncs;F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid blend func, must be an object")});function Gt(Sn,Gn){var ri=rt.def('"',Sn,Gn,'" in ',ve,"?",ve,".",Sn,Gn,":",ve,".",Sn);return F.optional(function(){Me.assert(rt,ri+" in "+at,"invalid "+Ye+"."+Sn+Gn+", must be one of "+Object.keys(hl))}),ri}var or=Gt("src","RGB"),_r=Gt("dst","RGB");F.optional(function(){var Sn=Me.constants.invalidBlendCombinations;Me.assert(rt,Sn+".indexOf("+or+'+", "+'+_r+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var vr=rt.def(at,"[",or,"]"),Rr=rt.def(at,"[",Gt("src","Alpha"),"]"),Pn=rt.def(at,"[",_r,"]"),_n=rt.def(at,"[",Gt("dst","Alpha"),"]");return[vr,Pn,Rr,_n]});case Xn:return pt(function(Me){if(typeof Me=="string")return F.commandParameter(Me,Qt,"invalid "+Ye,Se.commandStr),[Qt[Me],Qt[Me]];if(typeof Me=="object")return F.commandParameter(Me.rgb,Qt,Ye+".rgb",Se.commandStr),F.commandParameter(Me.alpha,Qt,Ye+".alpha",Se.commandStr),[Qt[Me.rgb],Qt[Me.alpha]];F.commandRaise("invalid blend.equation",Se.commandStr)},function(Me,rt,ve){var at=Me.constants.blendEquations,Gt=rt.def(),or=rt.def(),_r=Me.cond("typeof ",ve,'==="string"');return F.optional(function(){function vr(Rr,Pn,_n){Me.assert(Rr,_n+" in "+at,"invalid "+Pn+", must be one of "+Object.keys(Qt))}vr(_r.then,Ye,ve),Me.assert(_r.else,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye),vr(_r.else,Ye+".rgb",ve+".rgb"),vr(_r.else,Ye+".alpha",ve+".alpha")}),_r.then(Gt,"=",or,"=",at,"[",ve,"];"),_r.else(Gt,"=",at,"[",ve,".rgb];",or,"=",at,"[",ve,".alpha];"),rt(_r),[Gt,or]});case ti:return pt(function(Me){return F.command(ja(Me)&&Me.length===4,"blend.color must be a 4d array",Se.commandStr),di(4,function(rt){return+Me[rt]})},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===4","blend.color must be a 4d array")}),di(4,function(at){return rt.def("+",ve,"[",at,"]")})});case kl:return pt(function(Me){return F.commandType(Me,"number",st,Se.commandStr),Me|0},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="number"',"invalid stencil.mask")}),rt.def(ve,"|0")});case ul:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.cmp||"keep",ve=Me.ref||0,at="mask"in Me?Me.mask:-1;return F.commandParameter(rt,bf,Ye+".cmp",Se.commandStr),F.commandType(ve,"number",Ye+".ref",Se.commandStr),F.commandType(at,"number",Ye+".mask",Se.commandStr),[bf[rt],ve,at]},function(Me,rt,ve){var at=Me.constants.compareFuncs;F.optional(function(){function vr(){Me.assert(rt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}vr(ve+"&&typeof ",ve,'==="object"'),vr('!("cmp" in ',ve,")||(",ve,".cmp in ",at,")")});var Gt=rt.def('"cmp" in ',ve,"?",at,"[",ve,".cmp]",":",Nl),or=rt.def(ve,".ref|0"),_r=rt.def('"mask" in ',ve,"?",ve,".mask|0:-1");return[Gt,or,_r]});case Fl:case Vu:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.fail||"keep",ve=Me.zfail||"keep",at=Me.zpass||"keep";return F.commandParameter(rt,fc,Ye+".fail",Se.commandStr),F.commandParameter(ve,fc,Ye+".zfail",Se.commandStr),F.commandParameter(at,fc,Ye+".zpass",Se.commandStr),[Ye===Vu?yf:lc,fc[rt],fc[ve],fc[at]]},function(Me,rt,ve){var at=Me.constants.stencilOps;F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye)});function Gt(or){return F.optional(function(){Me.assert(rt,'!("'+or+'" in '+ve+")||("+ve+"."+or+" in "+at+")","invalid "+Ye+"."+or+", must be one of "+Object.keys(fc))}),rt.def('"',or,'" in ',ve,"?",at,"[",ve,".",or,"]:",Nl)}return[Ye===Vu?yf:lc,Gt("fail"),Gt("zfail"),Gt("zpass")]});case Zu:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.factor|0,ve=Me.units|0;return F.commandType(rt,"number",st+".factor",Se.commandStr),F.commandType(ve,"number",st+".units",Se.commandStr),[rt,ve]},function(Me,rt,ve){F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye)});var at=rt.def(ve,".factor|0"),Gt=rt.def(ve,".units|0");return[at,Gt]});case Wa:return pt(function(Me){var rt=0;return Me==="front"?rt=lc:Me==="back"&&(rt=yf),F.command(!!rt,st,Se.commandStr),rt},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,ve+'==="front"||'+ve+'==="back"',"invalid cull.face")}),rt.def(ve,'==="front"?',lc,":",yf)});case Ss:return pt(function(Me){return F.command(typeof Me=="number"&&Me>=Ut.lineWidthDims[0]&&Me<=Ut.lineWidthDims[1],"invalid line width, must be a positive number between "+Ut.lineWidthDims[0]+" and "+Ut.lineWidthDims[1],Se.commandStr),Me},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="number"&&'+ve+">="+Ut.lineWidthDims[0]+"&&"+ve+"<="+Ut.lineWidthDims[1],"invalid line width")}),ve});case Ga:return pt(function(Me){return F.commandParameter(Me,Ul,st,Se.commandStr),Ul[Me]},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,ve+'==="cw"||'+ve+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),rt.def(ve+'==="cw"?'+pp+":"+Ph)});case Co:return pt(function(Me){return F.command(ja(Me)&&Me.length===4,"color.mask must be length 4 array",Se.commandStr),Me.map(function(rt){return!!rt})},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===4","invalid color.mask")}),di(4,function(at){return"!!"+ve+"["+at+"]"})});case Ns:return pt(function(Me){F.command(typeof Me=="object"&&Me,st,Se.commandStr);var rt="value"in Me?Me.value:1,ve=!!Me.invert;return F.command(typeof rt=="number"&&rt>=0&&rt<=1,"sample.coverage.value must be a number between 0 and 1",Se.commandStr),[rt,ve]},function(Me,rt,ve){F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid sample.coverage")});var at=rt.def('"value" in ',ve,"?+",ve,".value:1"),Gt=rt.def("!!",ve,".invert");return[at,Gt]})}}),Ft}function Wo(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Object.keys(ze).forEach(function(Ye){var st=ze[Ye],pt;if(typeof st=="number"||typeof st=="boolean")pt=vo(function(){return st});else if(typeof st=="function"){var Me=st._reglType;Me==="texture2d"||Me==="textureCube"?pt=vo(function(rt){return rt.link(st)}):Me==="framebuffer"||Me==="framebufferCube"?(F.command(st.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ye+'"',Se.commandStr),pt=vo(function(rt){return rt.link(st.color[0])})):F.commandRaise('invalid data for uniform "'+Ye+'"',Se.commandStr)}else ja(st)?pt=vo(function(rt){var ve=rt.global.def("[",di(st.length,function(at){return F.command(typeof st[at]=="number"||typeof st[at]=="boolean","invalid uniform "+Ye,rt.commandStr),st[at]}),"]");return ve}):F.commandRaise('invalid or missing data for uniform "'+Ye+'"',Se.commandStr);pt.value=st,Ft[Ye]=pt}),Object.keys(Lt).forEach(function(Ye){var st=Lt[Ye];Ft[Ye]=Us(st,function(pt,Me){return pt.invoke(Me,st)})}),Ft}function Ri(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Object.keys(ze).forEach(function(Ye){var st=ze[Ye],pt=Ee.id(Ye),Me=new St;if(Gf(st))Me.state=Fr,Me.buffer=cr.getBuffer(cr.create(st,Lc,!1,!0)),Me.type=0;else{var rt=cr.getBuffer(st);if(rt)Me.state=Fr,Me.buffer=rt,Me.type=0;else if(F.command(typeof st=="object"&&st,"invalid data for attribute "+Ye,Se.commandStr),"constant"in st){var ve=st.constant;Me.buffer="null",Me.state=an,typeof ve=="number"?Me.x=ve:(F.command(ja(ve)&&ve.length>0&&ve.length<=4,"invalid constant for attribute "+Ye,Se.commandStr),mr.forEach(function(Pn,_n){_n=0,'invalid offset for attribute "'+Ye+'"',Se.commandStr);var Gt=st.stride|0;F.command(Gt>=0&&Gt<256,'invalid stride for attribute "'+Ye+'", must be integer betweeen [0, 255]',Se.commandStr);var or=st.size|0;F.command(!("size"in st)||or>0&&or<=4,'invalid size for attribute "'+Ye+'", must be 1,2,3,4',Se.commandStr);var _r=!!st.normalized,vr=0;"type"in st&&(F.commandParameter(st.type,jo,"invalid type for attribute "+Ye,Se.commandStr),vr=jo[st.type]);var Rr=st.divisor|0;"divisor"in st&&(F.command(Rr===0||kr,'cannot specify divisor for attribute "'+Ye+'", instancing not supported',Se.commandStr),F.command(Rr>=0,'invalid divisor for attribute "'+Ye+'"',Se.commandStr)),F.optional(function(){var Pn=Se.commandStr,_n=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(st).forEach(function(Sn){F.command(_n.indexOf(Sn)>=0,'unknown parameter "'+Sn+'" for attribute pointer "'+Ye+'" (valid parameters are '+_n+")",Pn)})}),Me.buffer=rt,Me.state=Fr,Me.size=or,Me.normalized=_r,Me.type=vr||rt.dtype,Me.offset=at,Me.stride=Gt,Me.divisor=Rr}}Ft[Ye]=vo(function(Pn,_n){var Sn=Pn.attribCache;if(pt in Sn)return Sn[pt];var Gn={isStream:!1};return Object.keys(Me).forEach(function(ri){Gn[ri]=Me[ri]}),Me.buffer&&(Gn.buffer=Pn.link(Me.buffer),Gn.type=Gn.type||Gn.buffer+".dtype"),Sn[pt]=Gn,Gn})}),Object.keys(Lt).forEach(function(Ye){var st=Lt[Ye];function pt(Me,rt){var ve=Me.invoke(rt,st),at=Me.shared,Gt=Me.constants,or=at.isBufferArgs,_r=at.buffer;F.optional(function(){Me.assert(rt,ve+"&&(typeof "+ve+'==="object"||typeof '+ve+'==="function")&&('+or+"("+ve+")||"+_r+".getBuffer("+ve+")||"+_r+".getBuffer("+ve+".buffer)||"+or+"("+ve+'.buffer)||("constant" in '+ve+"&&(typeof "+ve+'.constant==="number"||'+at.isArrayLike+"("+ve+".constant))))",'invalid dynamic attribute "'+Ye+'"')});var vr={isStream:rt.def(!1)},Rr=new St;Rr.state=Fr,Object.keys(Rr).forEach(function(Gn){vr[Gn]=rt.def(""+Rr[Gn])});var Pn=vr.buffer,_n=vr.type;rt("if(",or,"(",ve,")){",vr.isStream,"=true;",Pn,"=",_r,".createStream(",Lc,",",ve,");",_n,"=",Pn,".dtype;","}else{",Pn,"=",_r,".getBuffer(",ve,");","if(",Pn,"){",_n,"=",Pn,".dtype;",'}else if("constant" in ',ve,"){",vr.state,"=",an,";","if(typeof "+ve+'.constant === "number"){',vr[mr[0]],"=",ve,".constant;",mr.slice(1).map(function(Gn){return vr[Gn]}).join("="),"=0;","}else{",mr.map(function(Gn,ri){return vr[Gn]+"="+ve+".constant.length>"+ri+"?"+ve+".constant["+ri+"]:0;"}).join(""),"}}else{","if(",or,"(",ve,".buffer)){",Pn,"=",_r,".createStream(",Lc,",",ve,".buffer);","}else{",Pn,"=",_r,".getBuffer(",ve,".buffer);","}",_n,'="type" in ',ve,"?",Gt.glTypes,"[",ve,".type]:",Pn,".dtype;",vr.normalized,"=!!",ve,".normalized;");function Sn(Gn){rt(vr[Gn],"=",ve,".",Gn,"|0;")}return Sn("size"),Sn("offset"),Sn("stride"),Sn("divisor"),rt("}}"),rt.exit("if(",vr.isStream,"){",_r,".destroyStream(",Pn,");","}"),vr}Ft[Ye]=Us(st,pt)}),Ft}function lo(ue,Se){var ze=ue.static,Lt=ue.dynamic;if(Bl in ze){var Ft=ze[Bl];return Ft!==null&&Zr.getVAO(Ft)===null&&(Ft=Zr.createVAO(Ft)),vo(function(st){return st.link(Zr.getVAO(Ft))})}else if(Bl in Lt){var Ye=Lt[Bl];return Us(Ye,function(st,pt){var Me=st.invoke(pt,Ye);return pt.def(st.shared.vao+".getVAO("+Me+")")})}return null}function Sa(ue){var Se=ue.static,ze=ue.dynamic,Lt={};return Object.keys(Se).forEach(function(Ft){var Ye=Se[Ft];Lt[Ft]=vo(function(st,pt){return typeof Ye=="number"||typeof Ye=="boolean"?""+Ye:st.link(Ye)})}),Object.keys(ze).forEach(function(Ft){var Ye=ze[Ft];Lt[Ft]=Us(Ye,function(st,pt){return st.invoke(pt,Ye)})}),Lt}function go(ue,Se,ze,Lt,Ft){var Ye=ue.static,st=ue.dynamic;F.optional(function(){var Sn=[As,au,Hu,Ni,po,ou,io,Bc,Ka,Bl].concat(Ir);function Gn(ri){Object.keys(ri).forEach(function(ta){F.command(Sn.indexOf(ta)>=0,'unknown parameter "'+ta+'"',Ft.commandStr)})}Gn(Ye),Gn(st)});var pt=ai(ue,Se),Me=on(ue,Ft),rt=yi(ue,Me,Ft),ve=Ui(ue,Ft),at=mo(ue,Ft),Gt=Yn(ue,Ft,pt);function or(Sn){var Gn=rt[Sn];Gn&&(at[Sn]=Gn)}or(Ko),or(Xr(ju));var _r=Object.keys(at).length>0,vr={framebuffer:Me,draw:ve,shader:Gt,state:at,dirty:_r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(vr.profile=wi(ue,Ft),vr.uniforms=Wo(ze,Ft),vr.drawVAO=vr.scopeVAO=lo(ue,Ft),!vr.drawVAO&&Gt.program&&!pt&&Ze.angle_instanced_arrays){var Rr=!0,Pn=Gt.program.attributes.map(function(Sn){var Gn=Se.static[Sn];return Rr=Rr&&!!Gn,Gn});if(Rr&&Pn.length>0){var _n=Zr.getVAO(Zr.createVAO(Pn));vr.drawVAO=new Ts(null,null,null,function(Sn,Gn){return Sn.link(_n)}),vr.useVAO=!0}}return pt?vr.useVAO=!0:vr.attributes=Ri(Se,Ft),vr.context=Sa(Lt,Ft),vr}function _o(ue,Se,ze){var Lt=ue.shared,Ft=Lt.context,Ye=ue.scope();Object.keys(ze).forEach(function(st){Se.save(Ft,"."+st);var pt=ze[st];Ye(Ft,".",st,"=",pt.append(ue,Se),";")}),Se(Ye)}function Qa(ue,Se,ze,Lt){var Ft=ue.shared,Ye=Ft.gl,st=Ft.framebuffer,pt;Jr&&(pt=Se.def(Ft.extensions,".webgl_draw_buffers"));var Me=ue.constants,rt=Me.drawBuffer,ve=Me.backBuffer,at;ze?at=ze.append(ue,Se):at=Se.def(st,".next"),Lt||Se("if(",at,"!==",st,".cur){"),Se("if(",at,"){",Ye,".bindFramebuffer(",cc,",",at,".framebuffer);"),Jr&&Se(pt,".drawBuffersWEBGL(",rt,"[",at,".colorAttachments.length]);"),Se("}else{",Ye,".bindFramebuffer(",cc,",null);"),Jr&&Se(pt,".drawBuffersWEBGL(",ve,");"),Se("}",st,".cur=",at,";"),Lt||Se("}")}function Ro(ue,Se,ze){var Lt=ue.shared,Ft=Lt.gl,Ye=ue.current,st=ue.next,pt=Lt.current,Me=Lt.next,rt=ue.cond(pt,".dirty");Ir.forEach(function(ve){var at=Xr(ve);if(!(at in ze.state)){var Gt,or;if(at in st){Gt=st[at],or=Ye[at];var _r=di(gr[at].length,function(Rr){return rt.def(Gt,"[",Rr,"]")});rt(ue.cond(_r.map(function(Rr,Pn){return Rr+"!=="+or+"["+Pn+"]"}).join("||")).then(Ft,".",xr[at],"(",_r,");",_r.map(function(Rr,Pn){return or+"["+Pn+"]="+Rr}).join(";"),";"))}else{Gt=rt.def(Me,".",at);var vr=ue.cond(Gt,"!==",pt,".",at);rt(vr),at in en?vr(ue.cond(Gt).then(Ft,".enable(",en[at],");").else(Ft,".disable(",en[at],");"),pt,".",at,"=",Gt,";"):vr(Ft,".",xr[at],"(",Gt,");",pt,".",at,"=",Gt,";")}}}),Object.keys(ze.state).length===0&&rt(pt,".dirty=false;"),Se(rt)}function ps(ue,Se,ze,Lt){var Ft=ue.shared,Ye=ue.current,st=Ft.current,pt=Ft.gl;vp(Object.keys(ze)).forEach(function(Me){var rt=ze[Me];if(!(Lt&&!Lt(rt))){var ve=rt.append(ue,Se);if(en[Me]){var at=en[Me];hs(rt)?ve?Se(pt,".enable(",at,");"):Se(pt,".disable(",at,");"):Se(ue.cond(ve).then(pt,".enable(",at,");").else(pt,".disable(",at,");")),Se(st,".",Me,"=",ve,";")}else if(ja(ve)){var Gt=Ye[Me];Se(pt,".",xr[Me],"(",ve,");",ve.map(function(or,_r){return Gt+"["+_r+"]="+or}).join(";"),";")}else Se(pt,".",xr[Me],"(",ve,");",st,".",Me,"=",ve,";")}})}function Mo(ue,Se){kr&&(ue.instancing=Se.def(ue.shared.extensions,".angle_instanced_arrays"))}function xi(ue,Se,ze,Lt,Ft){var Ye=ue.shared,st=ue.stats,pt=Ye.current,Me=Ye.timer,rt=ze.profile;function ve(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var at,Gt;function or(Sn){at=Se.def(),Sn(at,"=",ve(),";"),typeof Ft=="string"?Sn(st,".count+=",Ft,";"):Sn(st,".count++;"),Er&&(Lt?(Gt=Se.def(),Sn(Gt,"=",Me,".getNumPendingQueries();")):Sn(Me,".beginQuery(",st,");"))}function _r(Sn){Sn(st,".cpuTime+=",ve(),"-",at,";"),Er&&(Lt?Sn(Me,".pushScopeStats(",Gt,",",Me,".getNumPendingQueries(),",st,");"):Sn(Me,".endQuery();"))}function vr(Sn){var Gn=Se.def(pt,".profile");Se(pt,".profile=",Sn,";"),Se.exit(pt,".profile=",Gn,";")}var Rr;if(rt){if(hs(rt)){rt.enable?(or(Se),_r(Se.exit),vr("true")):vr("false");return}Rr=rt.append(ue,Se),vr(Rr)}else Rr=Se.def(pt,".profile");var Pn=ue.block();or(Pn),Se("if(",Rr,"){",Pn,"}");var _n=ue.block();_r(_n),Se.exit("if(",Rr,"){",_n,"}")}function es(ue,Se,ze,Lt,Ft){var Ye=ue.shared;function st(Me){switch(Me){case Uc:case fp:case vf:return 2;case Wf:case oo:case mf:return 3;case cp:case uc:case zc:return 4;default:return 1}}function pt(Me,rt,ve){var at=Ye.gl,Gt=Se.def(Me,".location"),or=Se.def(Ye.attributes,"[",Gt,"]"),_r=ve.state,vr=ve.buffer,Rr=[ve.x,ve.y,ve.z,ve.w],Pn=["buffer","normalized","offset","stride"];function _n(){Se("if(!",or,".buffer){",at,".enableVertexAttribArray(",Gt,");}");var Gn=ve.type,ri;if(ve.size?ri=Se.def(ve.size,"||",rt):ri=rt,Se("if(",or,".type!==",Gn,"||",or,".size!==",ri,"||",Pn.map(function(xo){return or+"."+xo+"!=="+ve[xo]}).join("||"),"){",at,".bindBuffer(",Lc,",",vr,".buffer);",at,".vertexAttribPointer(",[Gt,ri,Gn,ve.normalized,ve.stride,ve.offset],");",or,".type=",Gn,";",or,".size=",ri,";",Pn.map(function(xo){return or+"."+xo+"="+ve[xo]+";"}).join(""),"}"),kr){var ta=ve.divisor;Se("if(",or,".divisor!==",ta,"){",ue.instancing,".vertexAttribDivisorANGLE(",[Gt,ta],");",or,".divisor=",ta,";}")}}function Sn(){Se("if(",or,".buffer){",at,".disableVertexAttribArray(",Gt,");",or,".buffer=null;","}if(",mr.map(function(Gn,ri){return or+"."+Gn+"!=="+Rr[ri]}).join("||"),"){",at,".vertexAttrib4f(",Gt,",",Rr,");",mr.map(function(Gn,ri){return or+"."+Gn+"="+Rr[ri]+";"}).join(""),"}")}_r===Fr?_n():_r===an?Sn():(Se("if(",_r,"===",Fr,"){"),_n(),Se("}else{"),Sn(),Se("}"))}Lt.forEach(function(Me){var rt=Me.name,ve=ze.attributes[rt],at;if(ve){if(!Ft(ve))return;at=ve.append(ue,Se)}else{if(!Ft($p))return;var Gt=ue.scopeAttrib(rt);F.optional(function(){ue.assert(Se,Gt+".state","missing attribute "+rt)}),at={},Object.keys(new St).forEach(function(or){at[or]=Se.def(Gt,".",or)})}pt(ue.link(Me),st(Me.info.type),at)})}function aa(ue,Se,ze,Lt,Ft){for(var Ye=ue.shared,st=Ye.gl,pt,Me=0;Me1?Se(di(Gn,function(dl){return vr+"["+dl+"]"})):Se(vr);Se(");")}}function Wn(ue,Se,ze,Lt){var Ft=ue.shared,Ye=Ft.gl,st=Ft.draw,pt=Lt.draw;function Me(){var ri=pt.elements,ta,xo=Se;return ri?((ri.contextDep&&Lt.contextDynamic||ri.propDep)&&(xo=ze),ta=ri.append(ue,xo)):ta=xo.def(st,".",Ni),ta&&xo("if("+ta+")"+Ye+".bindBuffer("+Km+","+ta+".buffer.buffer);"),ta}function rt(){var ri=pt.count,ta,xo=Se;return ri?((ri.contextDep&&Lt.contextDynamic||ri.propDep)&&(xo=ze),ta=ri.append(ue,xo),F.optional(function(){ri.MISSING&&ue.assert(Se,"false","missing vertex count"),ri.DYNAMIC&&ue.assert(xo,ta+">=0","missing vertex count")})):(ta=xo.def(st,".",io),F.optional(function(){ue.assert(xo,ta+">=0","missing vertex count")})),ta}var ve=Me();function at(ri){var ta=pt[ri];return ta?ta.contextDep&&Lt.contextDynamic||ta.propDep?ta.append(ue,ze):ta.append(ue,Se):Se.def(st,".",ri)}var Gt=at(po),or=at(ou),_r=rt();if(typeof _r=="number"){if(_r===0)return}else ze("if(",_r,"){"),ze.exit("}");var vr,Rr;kr&&(vr=at(Bc),Rr=ue.instancing);var Pn=ve+".type",_n=pt.elements&&hs(pt.elements);function Sn(){function ri(){ze(Rr,".drawElementsInstancedANGLE(",[Gt,_r,Pn,or+"<<(("+Pn+"-"+Nr+")>>1)",vr],");")}function ta(){ze(Rr,".drawArraysInstancedANGLE(",[Gt,or,_r,vr],");")}ve?_n?ri():(ze("if(",ve,"){"),ri(),ze("}else{"),ta(),ze("}")):ta()}function Gn(){function ri(){ze(Ye+".drawElements("+[Gt,_r,Pn,or+"<<(("+Pn+"-"+Nr+")>>1)"]+");")}function ta(){ze(Ye+".drawArrays("+[Gt,or,_r]+");")}ve?_n?ri():(ze("if(",ve,"){"),ri(),ze("}else{"),ta(),ze("}")):ta()}kr&&(typeof vr!="number"||vr>=0)?typeof vr=="string"?(ze("if(",vr,">0){"),Sn(),ze("}else if(",vr,"<0){"),Gn(),ze("}")):Sn():Gn()}function Mi(ue,Se,ze,Lt,Ft){var Ye=tt(),st=Ye.proc("body",Ft);return F.optional(function(){Ye.commandStr=Se.commandStr,Ye.command=Ye.link(Se.commandStr)}),kr&&(Ye.instancing=st.def(Ye.shared.extensions,".angle_instanced_arrays")),ue(Ye,st,ze,Lt),Ye.compile().body}function Gi(ue,Se,ze,Lt){Mo(ue,Se),ze.useVAO?ze.drawVAO?Se(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,Se),");"):Se(ue.shared.vao,".setVAO(",ue.shared.vao,".targetVAO);"):(Se(ue.shared.vao,".setVAO(null);"),es(ue,Se,ze,Lt.attributes,function(){return!0})),aa(ue,Se,ze,Lt.uniforms,function(){return!0}),Wn(ue,Se,Se,ze)}function yo(ue,Se){var ze=ue.proc("draw",1);Mo(ue,ze),_o(ue,ze,Se.context),Qa(ue,ze,Se.framebuffer),Ro(ue,ze,Se),ps(ue,ze,Se.state),xi(ue,ze,Se,!1,!0);var Lt=Se.shader.progVar.append(ue,ze);if(ze(ue.shared.gl,".useProgram(",Lt,".program);"),Se.shader.program)Gi(ue,ze,Se,Se.shader.program);else{ze(ue.shared.vao,".setVAO(null);");var Ft=ue.global.def("{}"),Ye=ze.def(Lt,".id"),st=ze.def(Ft,"[",Ye,"]");ze(ue.cond(st).then(st,".call(this,a0);").else(st,"=",Ft,"[",Ye,"]=",ue.link(function(pt){return Mi(Gi,ue,Se,pt,1)}),"(",Lt,");",st,".call(this,a0);"))}Object.keys(Se.state).length>0&&ze(ue.shared.current,".dirty=true;")}function Xu(ue,Se,ze,Lt){ue.batchId="a1",Mo(ue,Se);function Ft(){return!0}es(ue,Se,ze,Lt.attributes,Ft),aa(ue,Se,ze,Lt.uniforms,Ft),Wn(ue,Se,Se,ze)}function ke(ue,Se,ze,Lt){Mo(ue,Se);var Ft=ze.contextDep,Ye=Se.def(),st="a0",pt="a1",Me=Se.def();ue.shared.props=Me,ue.batchId=Ye;var rt=ue.scope(),ve=ue.scope();Se(rt.entry,"for(",Ye,"=0;",Ye,"<",pt,";++",Ye,"){",Me,"=",st,"[",Ye,"];",ve,"}",rt.exit);function at(Pn){return Pn.contextDep&&Ft||Pn.propDep}function Gt(Pn){return!at(Pn)}if(ze.needsContext&&_o(ue,ve,ze.context),ze.needsFramebuffer&&Qa(ue,ve,ze.framebuffer),ps(ue,ve,ze.state,at),ze.profile&&at(ze.profile)&&xi(ue,ve,ze,!1,!0),Lt)ze.useVAO?ze.drawVAO?at(ze.drawVAO)?ve(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,ve),");"):rt(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,rt),");"):rt(ue.shared.vao,".setVAO(",ue.shared.vao,".targetVAO);"):(rt(ue.shared.vao,".setVAO(null);"),es(ue,rt,ze,Lt.attributes,Gt),es(ue,ve,ze,Lt.attributes,at)),aa(ue,rt,ze,Lt.uniforms,Gt),aa(ue,ve,ze,Lt.uniforms,at),Wn(ue,rt,ve,ze);else{var or=ue.global.def("{}"),_r=ze.shader.progVar.append(ue,ve),vr=ve.def(_r,".id"),Rr=ve.def(or,"[",vr,"]");ve(ue.shared.gl,".useProgram(",_r,".program);","if(!",Rr,"){",Rr,"=",or,"[",vr,"]=",ue.link(function(Pn){return Mi(Xu,ue,ze,Pn,2)}),"(",_r,");}",Rr,".call(this,a0[",Ye,"],",Ye,");")}}function Zt(ue,Se){var ze=ue.proc("batch",2);ue.batchId="0",Mo(ue,ze);var Lt=!1,Ft=!0;Object.keys(Se.context).forEach(function(or){Lt=Lt||Se.context[or].propDep}),Lt||(_o(ue,ze,Se.context),Ft=!1);var Ye=Se.framebuffer,st=!1;Ye?(Ye.propDep?Lt=st=!0:Ye.contextDep&&Lt&&(st=!0),st||Qa(ue,ze,Ye)):Qa(ue,ze,null),Se.state.viewport&&Se.state.viewport.propDep&&(Lt=!0);function pt(or){return or.contextDep&&Lt||or.propDep}Ro(ue,ze,Se),ps(ue,ze,Se.state,function(or){return!pt(or)}),(!Se.profile||!pt(Se.profile))&&xi(ue,ze,Se,!1,"a1"),Se.contextDep=Lt,Se.needsContext=Ft,Se.needsFramebuffer=st;var Me=Se.shader.progVar;if(Me.contextDep&&Lt||Me.propDep)ke(ue,ze,Se,null);else{var rt=Me.append(ue,ze);if(ze(ue.shared.gl,".useProgram(",rt,".program);"),Se.shader.program)ke(ue,ze,Se,Se.shader.program);else{ze(ue.shared.vao,".setVAO(null);");var ve=ue.global.def("{}"),at=ze.def(rt,".id"),Gt=ze.def(ve,"[",at,"]");ze(ue.cond(Gt).then(Gt,".call(this,a0,a1);").else(Gt,"=",ve,"[",at,"]=",ue.link(function(or){return Mi(ke,ue,Se,or,2)}),"(",rt,");",Gt,".call(this,a0,a1);"))}}Object.keys(Se.state).length>0&&ze(ue.shared.current,".dirty=true;")}function Bt(ue,Se){var ze=ue.proc("scope",3);ue.batchId="a2";var Lt=ue.shared,Ft=Lt.current;_o(ue,ze,Se.context),Se.framebuffer&&Se.framebuffer.append(ue,ze),vp(Object.keys(Se.state)).forEach(function(st){var pt=Se.state[st],Me=pt.append(ue,ze);ja(Me)?Me.forEach(function(rt,ve){ze.set(ue.next[st],"["+ve+"]",rt)}):ze.set(Lt.next,"."+st,Me)}),xi(ue,ze,Se,!0,!0),[Ni,ou,io,Bc,po].forEach(function(st){var pt=Se.draw[st];pt&&ze.set(Lt.draw,"."+st,""+pt.append(ue,ze))}),Object.keys(Se.uniforms).forEach(function(st){ze.set(Lt.uniforms,"["+Ee.id(st)+"]",Se.uniforms[st].append(ue,ze))}),Object.keys(Se.attributes).forEach(function(st){var pt=Se.attributes[st].append(ue,ze),Me=ue.scopeAttrib(st);Object.keys(new St).forEach(function(rt){ze.set(Me,"."+rt,pt[rt])})}),Se.scopeVAO&&ze.set(Lt.vao,".targetVAO",Se.scopeVAO.append(ue,ze));function Ye(st){var pt=Se.shader[st];pt&&ze.set(Lt.shader,"."+st,pt.append(ue,ze))}Ye(au),Ye(Hu),Object.keys(Se.state).length>0&&(ze(Ft,".dirty=true;"),ze.exit(Ft,".dirty=true;")),ze("a1(",ue.shared.context,",a0,",ue.batchId,");")}function ln(ue){if(!(typeof ue!="object"||ja(ue))){for(var Se=Object.keys(ue),ze=0;ze=0;--Wn){var Mi=pr[Wn];Mi&&Mi(Er,null,0)}Ze.flush(),Zr&&Zr.update()}function Yn(){!yi&&pr.length>0&&(yi=Vr.next(ai))}function Ui(){yi&&(Vr.cancel(ai),yi=null)}function mo(Wn){Wn.preventDefault(),cr=!0,Ui(),tt.forEach(function(Mi){Mi()})}function Wo(Wn){Ze.getError(),cr=!1,zt.restore(),Ir.restore(),kr.restore(),en.restore(),xr.restore(),Xr.restore(),Jr.restore(),Zr&&Zr.restore(),Fn.procs.refresh(),Yn(),wi.forEach(function(Mi){Mi()})}gt&&(gt.addEventListener(qp,mo,!1),gt.addEventListener(Ud,Wo,!1));function Ri(){pr.length=0,Ui(),gt&&(gt.removeEventListener(qp,mo),gt.removeEventListener(Ud,Wo)),Ir.clear(),Xr.clear(),xr.clear(),en.clear(),tn.clear(),kr.clear(),Jr.clear(),Zr&&Zr.clear(),on.forEach(function(Wn){Wn()})}function lo(Wn){F(!!Wn,"invalid args to regl({...})"),F.type(Wn,"object","invalid args to regl({...})");function Mi(Ft){var Ye=L({},Ft);delete Ye.uniforms,delete Ye.attributes,delete Ye.context,delete Ye.vao,"stencil"in Ye&&Ye.stencil.op&&(Ye.stencil.opBack=Ye.stencil.opFront=Ye.stencil.op,delete Ye.stencil.op);function st(pt){if(pt in Ye){var Me=Ye[pt];delete Ye[pt],Object.keys(Me).forEach(function(rt){Ye[pt+"."+rt]=Me[rt]})}}return st("blend"),st("depth"),st("cull"),st("stencil"),st("polygonOffset"),st("scissor"),st("sample"),"vao"in Ft&&(Ye.vao=Ft.vao),Ye}function Gi(Ft){var Ye={},st={};return Object.keys(Ft).forEach(function(pt){var Me=Ft[pt];dr.isDynamic(Me)?st[pt]=dr.unbox(Me,pt):Ye[pt]=Me}),{dynamic:st,static:Ye}}var yo=Gi(Wn.context||{}),Xu=Gi(Wn.uniforms||{}),ke=Gi(Wn.attributes||{}),Zt=Gi(Mi(Wn)),Bt={gpuTime:0,cpuTime:0,count:0},ln=Fn.compile(Zt,ke,Xu,yo,Bt),bi=ln.draw,da=ln.batch,ue=ln.scope,Se=[];function ze(Ft){for(;Se.length0)return da.call(this,ze(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return da.call(this,Ft,Ft.length)}else return bi.call(this,Ft)}return L(Lt,{stats:Bt})}var Sa=Xr.setFBO=lo({framebuffer:dr.define.call(null,Kp,"framebuffer")});function go(Wn,Mi){var Gi=0;Fn.procs.poll();var yo=Mi.color;yo&&(Ze.clearColor(+yo[0]||0,+yo[1]||0,+yo[2]||0,+yo[3]||0),Gi|=Dh),"depth"in Mi&&(Ze.clearDepth(+Mi.depth),Gi|=Jo),"stencil"in Mi&&(Ze.clearStencil(Mi.stencil|0),Gi|=Uv),F(!!Gi,"called regl.clear with no buffer specified"),Ze.clear(Gi)}function _o(Wn){if(F(typeof Wn=="object"&&Wn,"regl.clear() takes an object as input"),"framebuffer"in Wn)if(Wn.framebuffer&&Wn.framebuffer_reglType==="framebufferCube")for(var Mi=0;Mi<6;++Mi)Sa(L({framebuffer:Wn.framebuffer.faces[Mi]},Wn),go);else Sa(Wn,go);else go(null,Wn)}function Qa(Wn){F.type(Wn,"function","regl.frame() callback must be a function"),pr.push(Wn);function Mi(){var Gi=zd(pr,Wn);F(Gi>=0,"cannot cancel a frame twice");function yo(){var Xu=zd(pr,yo);pr[Xu]=pr[pr.length-1],pr.length-=1,pr.length<=0&&Ui()}pr[Gi]=yo}return Yn(),{cancel:Mi}}function Ro(){var Wn=qr.viewport,Mi=qr.scissor_box;Wn[0]=Wn[1]=Mi[0]=Mi[1]=0,Er.viewportWidth=Er.framebufferWidth=Er.drawingBufferWidth=Wn[2]=Mi[2]=Ze.drawingBufferWidth,Er.viewportHeight=Er.framebufferHeight=Er.drawingBufferHeight=Wn[3]=Mi[3]=Ze.drawingBufferHeight}function ps(){Er.tick+=1,Er.time=xi(),Ro(),Fn.procs.poll()}function Mo(){Ro(),Fn.procs.refresh(),Zr&&Zr.update()}function xi(){return(Ln()-Br)/1e3}Mo();function es(Wn,Mi){F.type(Mi,"function","listener callback must be a function");var Gi;switch(Wn){case"frame":return Qa(Mi);case"lost":Gi=tt;break;case"restore":Gi=wi;break;case"destroy":Gi=on;break;default:F.raise("invalid event, must be one of frame,lost,restore,destroy")}return Gi.push(Mi),{cancel:function(){for(var yo=0;yo=0},read:ui,destroy:Ri,_gl:Ze,_refresh:Mo,poll:function(){ps(),Zr&&Zr.update()},now:xi,stats:Dr});return Ee.onDone(null,aa),aa}return Zd})},48096:function(rr){(function(J,L){rr.exports=L()})(this,function(){"use strict";function J(Et,nt,Pt,ft,qt,Sr){if(!(qt-ft<=Pt)){var te=ft+qt>>1;L(Et,nt,te,ft,qt,Sr%2),J(Et,nt,Pt,ft,te-1,Sr+1),J(Et,nt,Pt,te+1,qt,Sr+1)}}function L(Et,nt,Pt,ft,qt,Sr){for(;qt>ft;){if(qt-ft>600){var te=qt-ft+1,H=Pt-ft+1,K=Math.log(te),Be=.5*Math.exp(2*K/3),Ae=.5*Math.sqrt(K*Be*(te-Be)/te)*(H-te/2<0?-1:1),dt=Math.max(ft,Math.floor(Pt-H*Be/te+Ae)),Ue=Math.min(qt,Math.floor(Pt+(te-H)*Be/te+Ae));L(Et,nt,Pt,dt,Ue,Sr)}var We=nt[2*Pt+Sr],it=ft,Mt=qt;for(re(Et,nt,ft,Pt),nt[2*qt+Sr]>We&&re(Et,nt,ft,qt);itWe;)Mt--}nt[2*ft+Sr]===We?re(Et,nt,ft,Mt):(Mt++,re(Et,nt,Mt,qt)),Mt<=Pt&&(ft=Mt+1),Pt<=Mt&&(qt=Mt-1)}}function re(Et,nt,Pt,ft){pe(Et,Pt,ft),pe(nt,2*Pt,2*ft),pe(nt,2*Pt+1,2*ft+1)}function pe(Et,nt,Pt){var ft=Et[nt];Et[nt]=Et[Pt],Et[Pt]=ft}function _(Et,nt,Pt,ft,qt,Sr,te){for(var H=[0,Et.length-1,0],K=[],Be,Ae;H.length;){var dt=H.pop(),Ue=H.pop(),We=H.pop();if(Ue-We<=te){for(var it=We;it<=Ue;it++)Be=nt[2*it],Ae=nt[2*it+1],Be>=Pt&&Be<=qt&&Ae>=ft&&Ae<=Sr&&K.push(Et[it]);continue}var Mt=Math.floor((We+Ue)/2);Be=nt[2*Mt],Ae=nt[2*Mt+1],Be>=Pt&&Be<=qt&&Ae>=ft&&Ae<=Sr&&K.push(Et[Mt]);var yr=(dt+1)%2;(dt===0?Pt<=Be:ft<=Ae)&&(H.push(We),H.push(Mt-1),H.push(yr)),(dt===0?qt>=Be:Sr>=Ae)&&(H.push(Mt+1),H.push(Ue),H.push(yr))}return K}function le(Et,nt,Pt,ft,qt,Sr){for(var te=[0,Et.length-1,0],H=[],K=qt*qt;te.length;){var Be=te.pop(),Ae=te.pop(),dt=te.pop();if(Ae-dt<=Sr){for(var Ue=dt;Ue<=Ae;Ue++)U(nt[2*Ue],nt[2*Ue+1],Pt,ft)<=K&&H.push(Et[Ue]);continue}var We=Math.floor((dt+Ae)/2),it=nt[2*We],Mt=nt[2*We+1];U(it,Mt,Pt,ft)<=K&&H.push(Et[We]);var yr=(Be+1)%2;(Be===0?Pt-qt<=it:ft-qt<=Mt)&&(te.push(dt),te.push(We-1),te.push(yr)),(Be===0?Pt+qt>=it:ft+qt>=Mt)&&(te.push(We+1),te.push(Ae),te.push(yr))}return H}function U(Et,nt,Pt,ft){var qt=Et-Pt,Sr=nt-ft;return qt*qt+Sr*Sr}var he=function(Et){return Et[0]},ae=function(Et){return Et[1]},qe=function(nt,Pt,ft,qt,Sr){Pt===void 0&&(Pt=he),ft===void 0&&(ft=ae),qt===void 0&&(qt=64),Sr===void 0&&(Sr=Float64Array),this.nodeSize=qt,this.points=nt;for(var te=nt.length<65536?Uint16Array:Uint32Array,H=this.ids=new te(nt.length),K=this.coords=new Sr(nt.length*2),Be=0;Be=qt;Ae--){var dt=+Date.now();K=this._cluster(K,Ae),this.trees[Ae]=new qe(K,hr,ur,te,Float32Array),ft&&console.log("z%d: %d clusters in %dms",Ae,K.length,+Date.now()-dt)}return ft&&console.timeEnd("total time"),this},ht.prototype.getClusters=function(nt,Pt){var ft=((nt[0]+180)%360+360)%360-180,qt=Math.max(-90,Math.min(90,nt[1])),Sr=nt[2]===180?180:((nt[2]+180)%360+360)%360-180,te=Math.max(-90,Math.min(90,nt[3]));if(nt[2]-nt[0]>=360)ft=-180,Sr=180;else if(ft>Sr){var H=this.getClusters([ft,qt,180,te],Pt),K=this.getClusters([-180,qt,Sr,te],Pt);return H.concat(K)}for(var Be=this.trees[this._limitZoom(Pt)],Ae=Be.range(ir(ft),Xt(te),ir(Sr),Xt(qt)),dt=[],Ue=0,We=Ae;UePt&&(Mt+=mn.numPoints||1)}if(Mt>it&&Mt>=K){for(var un=dt.x*it,oi=dt.y*it,jn=H&&it>1?this._map(dt,!0):null,rn=(Ae<<5)+(Pt+1)+this.points.length,$i=0,Wi=We;$i1)for(var Do=0,oa=We;Do>5},ht.prototype._getOriginZoom=function(nt){return(nt-this.points.length)%32},ht.prototype._map=function(nt,Pt){if(nt.numPoints)return Pt?Pr({},nt.properties):nt.properties;var ft=this.points[nt.index].properties,qt=this.options.map(ft);return Pt&&qt===ft?Pr({},qt):qt};function mt(Et,nt,Pt,ft,qt){return{x:Ke(Et),y:Ke(nt),zoom:1/0,id:Pt,parentId:-1,numPoints:ft,properties:qt}}function Dt(Et,nt){var Pt=Et.geometry.coordinates,ft=Pt[0],qt=Pt[1];return{x:Ke(ir(ft)),y:Ke(Xt(qt)),zoom:1/0,index:nt,parentId:-1}}function Yt(Et){return{type:"Feature",id:Et.id,properties:Ht(Et),geometry:{type:"Point",coordinates:[yt(Et.x),bt(Et.y)]}}}function Ht(Et){var nt=Et.numPoints,Pt=nt>=1e4?Math.round(nt/1e3)+"k":nt>=1e3?Math.round(nt/100)/10+"k":nt;return Pr(Pr({},Et.properties),{cluster:!0,cluster_id:Et.id,point_count:nt,point_count_abbreviated:Pt})}function ir(Et){return Et/360+.5}function Xt(Et){var nt=Math.sin(Et*Math.PI/180),Pt=.5-.25*Math.log((1+nt)/(1-nt))/Math.PI;return Pt<0?0:Pt>1?1:Pt}function yt(Et){return(Et-.5)*360}function bt(Et){var nt=(180-Et*360)*Math.PI/180;return 360*Math.atan(Math.exp(nt))/Math.PI-90}function Pr(Et,nt){for(var Pt in nt)Et[Pt]=nt[Pt];return Et}function hr(Et){return Et.x}function ur(Et){return Et.y}return ht})},19684:function(rr,J,L){var re=L(79569).default;function pe(){"use strict";rr.exports=pe=function(){return le},rr.exports.__esModule=!0,rr.exports.default=rr.exports;var _,le={},U=Object.prototype,he=U.hasOwnProperty,ae=Object.defineProperty||function(Ue,We,it){Ue[We]=it.value},qe=typeof Symbol=="function"?Symbol:{},ie=qe.iterator||"@@iterator",Ke=qe.asyncIterator||"@@asyncIterator",ht=qe.toStringTag||"@@toStringTag";function mt(Ue,We,it){return Object.defineProperty(Ue,We,{value:it,enumerable:!0,configurable:!0,writable:!0}),Ue[We]}try{mt({},"")}catch(Ue){mt=function(it,Mt,yr){return it[Mt]=yr}}function Dt(Ue,We,it,Mt){var yr=We&&We.prototype instanceof Pr?We:Pr,lr=Object.create(yr.prototype),Cn=new Ae(Mt||[]);return ae(lr,"_invoke",{value:te(Ue,it,Cn)}),lr}function Yt(Ue,We,it){try{return{type:"normal",arg:Ue.call(We,it)}}catch(Mt){return{type:"throw",arg:Mt}}}le.wrap=Dt;var Ht="suspendedStart",ir="suspendedYield",Xt="executing",yt="completed",bt={};function Pr(){}function hr(){}function ur(){}var Et={};mt(Et,ie,function(){return this});var nt=Object.getPrototypeOf,Pt=nt&&nt(nt(dt([])));Pt&&Pt!==U&&he.call(Pt,ie)&&(Et=Pt);var ft=ur.prototype=Pr.prototype=Object.create(Et);function qt(Ue){["next","throw","return"].forEach(function(We){mt(Ue,We,function(it){return this._invoke(We,it)})})}function Sr(Ue,We){function it(yr,lr,Cn,mn){var un=Yt(Ue[yr],Ue,lr);if(un.type!=="throw"){var oi=un.arg,jn=oi.value;return jn&&re(jn)=="object"&&he.call(jn,"__await")?We.resolve(jn.__await).then(function(rn){it("next",rn,Cn,mn)},function(rn){it("throw",rn,Cn,mn)}):We.resolve(jn).then(function(rn){oi.value=rn,Cn(oi)},function(rn){return it("throw",rn,Cn,mn)})}mn(un.arg)}var Mt;ae(this,"_invoke",{value:function(lr,Cn){function mn(){return new We(function(un,oi){it(lr,Cn,un,oi)})}return Mt=Mt?Mt.then(mn,mn):mn()}})}function te(Ue,We,it){var Mt=Ht;return function(yr,lr){if(Mt===Xt)throw new Error("Generator is already running");if(Mt===yt){if(yr==="throw")throw lr;return{value:_,done:!0}}for(it.method=yr,it.arg=lr;;){var Cn=it.delegate;if(Cn){var mn=H(Cn,it);if(mn){if(mn===bt)continue;return mn}}if(it.method==="next")it.sent=it._sent=it.arg;else if(it.method==="throw"){if(Mt===Ht)throw Mt=yt,it.arg;it.dispatchException(it.arg)}else it.method==="return"&&it.abrupt("return",it.arg);Mt=Xt;var un=Yt(Ue,We,it);if(un.type==="normal"){if(Mt=it.done?yt:ir,un.arg===bt)continue;return{value:un.arg,done:it.done}}un.type==="throw"&&(Mt=yt,it.method="throw",it.arg=un.arg)}}}function H(Ue,We){var it=We.method,Mt=Ue.iterator[it];if(Mt===_)return We.delegate=null,it==="throw"&&Ue.iterator.return&&(We.method="return",We.arg=_,H(Ue,We),We.method==="throw")||it!=="return"&&(We.method="throw",We.arg=new TypeError("The iterator does not provide a '"+it+"' method")),bt;var yr=Yt(Mt,Ue.iterator,We.arg);if(yr.type==="throw")return We.method="throw",We.arg=yr.arg,We.delegate=null,bt;var lr=yr.arg;return lr?lr.done?(We[Ue.resultName]=lr.value,We.next=Ue.nextLoc,We.method!=="return"&&(We.method="next",We.arg=_),We.delegate=null,bt):lr:(We.method="throw",We.arg=new TypeError("iterator result is not an object"),We.delegate=null,bt)}function K(Ue){var We={tryLoc:Ue[0]};1 in Ue&&(We.catchLoc=Ue[1]),2 in Ue&&(We.finallyLoc=Ue[2],We.afterLoc=Ue[3]),this.tryEntries.push(We)}function Be(Ue){var We=Ue.completion||{};We.type="normal",delete We.arg,Ue.completion=We}function Ae(Ue){this.tryEntries=[{tryLoc:"root"}],Ue.forEach(K,this),this.reset(!0)}function dt(Ue){if(Ue||Ue===""){var We=Ue[ie];if(We)return We.call(Ue);if(typeof Ue.next=="function")return Ue;if(!isNaN(Ue.length)){var it=-1,Mt=function yr(){for(;++it=0;--yr){var lr=this.tryEntries[yr],Cn=lr.completion;if(lr.tryLoc==="root")return Mt("end");if(lr.tryLoc<=this.prev){var mn=he.call(lr,"catchLoc"),un=he.call(lr,"finallyLoc");if(mn&&un){if(this.prev=0;--Mt){var yr=this.tryEntries[Mt];if(yr.tryLoc<=this.prev&&he.call(yr,"finallyLoc")&&this.prev=0;--it){var Mt=this.tryEntries[it];if(Mt.finallyLoc===We)return this.complete(Mt.completion,Mt.afterLoc),Be(Mt),bt}},catch:function(We){for(var it=this.tryEntries.length-1;it>=0;--it){var Mt=this.tryEntries[it];if(Mt.tryLoc===We){var yr=Mt.completion;if(yr.type==="throw"){var lr=yr.arg;Be(Mt)}return lr}}throw new Error("illegal catch attempt")},delegateYield:function(We,it,Mt){return this.delegate={iterator:dt(We),resultName:it,nextLoc:Mt},this.method==="next"&&(this.arg=_),bt}},le}rr.exports=pe,rr.exports.__esModule=!0,rr.exports.default=rr.exports},79569:function(rr){function J(L){"@babel/helpers - typeof";return rr.exports=J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},rr.exports.__esModule=!0,rr.exports.default=rr.exports,J(L)}rr.exports=J,rr.exports.__esModule=!0,rr.exports.default=rr.exports},51726:function(rr,J,L){var re=L(19684)();rr.exports=re;try{regeneratorRuntime=re}catch(pe){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}}}]); +}()); \ No newline at end of file diff --git a/6546.b48ad1c0.async.js b/6546.b48ad1c0.async.js new file mode 100644 index 00000000..5d722444 --- /dev/null +++ b/6546.b48ad1c0.async.js @@ -0,0 +1,109 @@ +!(function(){var Xd=Object.defineProperty;var Xc=Object.getOwnPropertySymbols;var Gd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable;var Gc=(Zt,xe,a)=>xe in Zt?Xd(Zt,xe,{enumerable:!0,configurable:!0,writable:!0,value:a}):Zt[xe]=a,Qc=(Zt,xe)=>{for(var a in xe||(xe={}))Gd.call(xe,a)&&Gc(Zt,a,xe[a]);if(Xc)for(var a of Xc(xe))Qd.call(xe,a)&&Gc(Zt,a,xe[a]);return Zt};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6546],{19485:function(Zt,xe){"use strict";var a={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"};xe.Z=a},73715:function(Zt,xe){"use strict";var a={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"};xe.Z=a},22717:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={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"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},11677:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},32702:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},83846:function(Zt,xe,a){"use strict";a.d(xe,{ZP:function(){return qe},NA:function(){return A},aK:function(){return Le}});var i=a(33346),w=a(10570),I=a(32682),l=a(40727),k=a(1788),Z=a(73273),ae=a(17122),Q=a(26488),K=a(30510),ce=a(23672),pe=a(13165),x=a(66607),re=a(65589),Ye=a(11979),z=a(50959),se=a(18941);function H(yt){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,It=arguments.length>2?arguments[2]:void 0,Vt=(0,z.useState)(yt),mt=(0,I.Z)(Vt,2),Dt=mt[0],Mt=mt[1],Lt=(0,se.d)(yt);return(0,z.useEffect)(function(){var Pn=setTimeout(function(){Mt(Lt.current)},me);return function(){return clearTimeout(Pn)}},It?[me].concat((0,k.Z)(It)):void 0),Dt}var it=a(56197),At=a(38705),ke=a(84707),ut=a(61020),B=a(22532),tr=a(32413),mn=a(33952),jn=a(84875),bn=a.n(jn),qt=a(13763),be=a(11527),Ue=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Wt=function(me,It){return(0,l.Z)(It)!=="object"?me[It]||It:me[It==null?void 0:It.value]||It.label},an=function(me,It){var Vt=me.label,mt=me.prefixCls,Dt=me.onChange,Mt=me.value,Lt=me.mode,Pn=me.children,Ee=me.defaultValue,Ve=me.size,Be=me.showSearch,Qe=me.disabled,St=me.style,bt=me.className,P=me.bordered,de=me.options,ye=me.onSearch,He=me.allowClear,_e=me.labelInValue,st=me.fieldNames,Ct=me.lightLabel,Kt=me.labelTrigger,$t=me.optionFilterProp,Rt=me.optionLabelProp,lt=Rt===void 0?"":Rt,nt=me.valueMaxLength,Fe=nt===void 0?41:nt,je=(0,w.Z)(me,Ue),fe=me.placeholder,Ze=fe===void 0?Vt:fe,$=st||{},j=$.label,Y=j===void 0?"label":j,Me=$.value,ze=Me===void 0?"value":Me,ft=(0,z.useContext)(it.ZP.ConfigContext),vn=ft.getPrefixCls,_t=vn("pro-field-select-light-select"),Yt=(0,z.useState)(!1),Tt=(0,I.Z)(Yt,2),Ut=Tt[0],dn=Tt[1],Ft=(0,z.useState)(""),un=(0,I.Z)(Ft,2),ve=un[0],Ge=un[1],vt=(0,Q.Xj)("LightSelect",function(ge){var rt;return(0,Z.Z)({},".".concat(_t),(rt={},(0,Z.Z)(rt,"".concat(ge.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,Z.Z)(rt,"&.".concat(_t,"-searchable"),(0,Z.Z)({},"".concat(ge.antCls,"-select"),{width:"200px","&-selector":{height:28}})),rt))}),et=vt.wrapSSR,N=vt.hashId,Pe=(0,z.useMemo)(function(){var ge={};return de==null||de.forEach(function(rt){var Je=rt[lt]||rt[Y],Re=rt[ze];ge[Re]=Je||Re}),ge},[Y,de,ze,lt]),De=Array.isArray(Mt)?Mt.map(function(ge){return Wt(Pe,ge)}):Wt(Pe,Mt);return et((0,be.jsxs)("div",{className:bn()(_t,N,(0,Z.Z)({},"".concat(_t,"-searchable"),Be),"".concat(_t,"-container-").concat(je.placement||"bottomLeft"),bt),style:St,onClick:function(rt){var Je;if(!Qe){var Re=Ct==null||(Je=Ct.current)===null||Je===void 0||(Je=Je.labelRef)===null||Je===void 0||(Je=Je.current)===null||Je===void 0?void 0:Je.contains(rt.target);dn(Re?!Ut:!0)}},children:[(0,be.jsx)(tr.default,(0,i.Z)((0,i.Z)({popupMatchSelectWidth:!1},je),{},{allowClear:He,value:Mt,mode:Lt,labelInValue:_e,size:Ve,disabled:Qe,onChange:function(rt,Je){Dt==null||Dt(rt,Je),Lt!=="multiple"&&dn(!1)},bordered:P,showSearch:Be,onSearch:ye,style:St,dropdownRender:function(rt){return(0,be.jsxs)("div",{ref:It,children:[Be&&(0,be.jsx)("div",{style:{margin:"4px 8px"},children:(0,be.jsx)(mn.Z,{value:ve,allowClear:!!He,onChange:function(Re){Ge(Re.target.value),ye==null||ye(Re.target.value)},onKeyDown:function(Re){Re.stopPropagation()},style:{width:"100%"},prefix:(0,be.jsx)(ut.Z,{})})}),rt]})},open:Ut,onDropdownVisibleChange:function(rt){var Je;rt||Ge(""),Kt||dn(rt),je==null||(Je=je.onDropdownVisibleChange)===null||Je===void 0||Je.call(je,rt)},prefixCls:mt,options:ye||!ve?de:de==null?void 0:de.filter(function(ge){var rt,Je;return $t?(0,qt.Z)(ge[$t]).join("").toLowerCase().includes(ve):((rt=String(ge[Y]))===null||rt===void 0||(rt=rt.toLowerCase())===null||rt===void 0?void 0:rt.includes(ve==null?void 0:ve.toLowerCase()))||((Je=ge[ze])===null||Je===void 0||(Je=Je.toString())===null||Je===void 0||(Je=Je.toLowerCase())===null||Je===void 0?void 0:Je.includes(ve==null?void 0:ve.toLowerCase()))})})),(0,be.jsx)(B.Q,{ellipsis:!0,label:Vt,placeholder:Ze,disabled:Qe,bordered:P,allowClear:!!He,value:De||(Mt==null?void 0:Mt.label)||Mt,onClear:function(){Dt==null||Dt(void 0,void 0)},ref:Ct,valueMaxLength:Fe})]}))},pt=z.forwardRef(an),tt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],tn=["className","optionType"],En=function(me,It){var Vt=me.optionItemRender,mt=me.mode,Dt=me.onSearch,Mt=me.onFocus,Lt=me.onChange,Pn=me.autoClearSearchValue,Ee=Pn===void 0?!0:Pn,Ve=me.searchOnFocus,Be=Ve===void 0?!1:Ve,Qe=me.resetAfterSelect,St=Qe===void 0?!1:Qe,bt=me.fetchDataOnSearch,P=bt===void 0?!0:bt,de=me.optionFilterProp,ye=de===void 0?"label":de,He=me.optionLabelProp,_e=He===void 0?"label":He,st=me.className,Ct=me.disabled,Kt=me.options,$t=me.fetchData,Rt=me.resetData,lt=me.prefixCls,nt=me.onClear,Fe=me.searchValue,je=me.showSearch,fe=me.fieldNames,Ze=me.defaultSearchValue,$=(0,w.Z)(me,tt),j=fe||{},Y=j.label,Me=Y===void 0?"label":Y,ze=j.value,ft=ze===void 0?"value":ze,vn=j.options,_t=vn===void 0?"options":vn,Yt=(0,z.useState)(Fe!=null?Fe:Ze),Tt=(0,I.Z)(Yt,2),Ut=Tt[0],dn=Tt[1],Ft=(0,z.useRef)();(0,z.useImperativeHandle)(It,function(){return Ft.current}),(0,z.useEffect)(function(){if($.autoFocus){var Pe;Ft==null||(Pe=Ft.current)===null||Pe===void 0||Pe.focus()}},[$.autoFocus]),(0,z.useEffect)(function(){dn(Fe)},[Fe]);var un=(0,z.useContext)(it.ZP.ConfigContext),ve=un.getPrefixCls,Ge=ve("pro-filed-search-select",lt),vt=bn()(Ge,st,(0,Z.Z)({},"".concat(Ge,"-disabled"),Ct)),et=function(De,ge){return Array.isArray(De)&&Array.isArray(ge)&&De.length>0?De.map(function(rt,Je){var Re=ge==null?void 0:ge[Je],Ln=(Re==null?void 0:Re["data-item"])||{};return(0,i.Z)((0,i.Z)({},Ln),rt)}):[]},N=function Pe(De){return De.map(function(ge,rt){var Je,Re=ge,Ln=Re.className,zn=Re.optionType,on=(0,w.Z)(Re,tn),Mn=ge[Me],Wn=ge[ft],Gn=(Je=ge[_t])!==null&&Je!==void 0?Je:[];return zn==="optGroup"||ge.options?(0,i.Z)((0,i.Z)({label:Mn},on),{},{data_title:Mn,title:Mn,key:Wn!=null?Wn:Mn==null?void 0:Mn.toString(),children:Pe(Gn)}):(0,i.Z)((0,i.Z)({title:Mn},on),{},{data_title:Mn,value:Wn!=null?Wn:rt,key:Wn!=null?Wn:Mn==null?void 0:Mn.toString(),"data-item":ge,className:"".concat(Ge,"-option ").concat(Ln||"").trim(),label:(Vt==null?void 0:Vt(ge))||Mn})})};return(0,be.jsx)(tr.default,(0,i.Z)((0,i.Z)({ref:Ft,className:vt,allowClear:!0,autoClearSearchValue:Ee,disabled:Ct,mode:mt,showSearch:je,searchValue:Ut,optionFilterProp:ye,optionLabelProp:_e,onClear:function(){nt==null||nt(),$t(void 0),je&&dn(void 0)}},$),{},{filterOption:$.filterOption==!1?!1:function(Pe,De){var ge,rt,Je;return $.filterOption&&typeof $.filterOption=="function"?$.filterOption(Pe,(0,i.Z)((0,i.Z)({},De),{},{label:De==null?void 0:De.data_title})):!!(De!=null&&(ge=De.data_title)!==null&&ge!==void 0&&ge.toString().toLowerCase().includes(Pe.toLowerCase())||De!=null&&(rt=De.label)!==null&&rt!==void 0&&rt.toString().toLowerCase().includes(Pe.toLowerCase())||De!=null&&(Je=De.value)!==null&&Je!==void 0&&Je.toString().toLowerCase().includes(Pe.toLowerCase()))},onSearch:je?function(Pe){P&&$t(Pe),Dt==null||Dt(Pe),dn(Pe)}:void 0,onChange:function(De,ge){je&&Ee&&($t(void 0),Dt==null||Dt(""),dn(void 0));for(var rt=arguments.length,Je=new Array(rt>2?rt-2:0),Re=2;Re2&&arguments[2]!==void 0?arguments[2]:!0,St=Object.keys(Be).reduce(function(de,ye){var He=Be[ye];return(0,bn.k)(He)||(de[ye]=He),de},{});if(Object.keys(St).length<1||typeof window=="undefined"||(0,ut.Z)(Ve)!=="object"||(0,bn.k)(Ve)||Ve instanceof Blob)return Ve;var bt=Array.isArray(Ve)?[]:{},P=function de(ye,He){var _e=Array.isArray(ye),st=_e?[]:{};return ye==null||ye===void 0?st:(Object.keys(ye).forEach(function(Ct){var Kt=function je(fe,Ze){return Array.isArray(fe)&&fe.forEach(function($,j){if($){var Y=Ze==null?void 0:Ze[j];typeof $=="function"&&(Ze[j]=$(Ze,Ct,ye)),(0,ut.Z)($)==="object"&&!Array.isArray($)&&Object.keys($).forEach(function(Me){var ze=Y==null?void 0:Y[Me];if(typeof $[Me]=="function"&&ze){var ft=$[Me](Y[Me],Ct,ye);Y[Me]=(0,ut.Z)(ft)==="object"?ft[Me]:ft}else(0,ut.Z)($[Me])==="object"&&Array.isArray($[Me])&&ze&&je($[Me],ze)}),(0,ut.Z)($)==="object"&&Array.isArray($)&&Y&&je($,Y)}}),Ct},$t=He?[He,Ct].flat(1):[Ct].flat(1),Rt=ye[Ct],lt=(0,mn.Z)(St,$t),nt=function(){var fe,Ze,$=!1;if(typeof lt=="function"){Ze=lt==null?void 0:lt(Rt,Ct,ye);var j=(0,ut.Z)(Ze);j!=="object"&&j!=="undefined"?(fe=Ct,$=!0):fe=Ze}else fe=Kt(lt,Rt);if(Array.isArray(fe)){st=(0,jn.Z)(st,fe,Rt);return}(0,ut.Z)(fe)==="object"&&!Array.isArray(bt)?bt=tr()(bt,fe):(0,ut.Z)(fe)==="object"&&Array.isArray(bt)?st=(0,I.Z)((0,I.Z)({},st),fe):(fe!==null||fe!==void 0)&&(st=(0,jn.Z)(st,[fe],$?Ze:Rt))};if(lt&&typeof lt=="function"&&nt(),typeof window!="undefined"){if(be(Rt)){var Fe=de(Rt,$t);if(Object.keys(Fe).length<1)return;st=(0,jn.Z)(st,[Ct],Fe);return}nt()}}),Qe?st:ye)};return bt=Array.isArray(Ve)&&Array.isArray(bt)?(0,ke.Z)(P(Ve)):(0,qt.T)({},P(Ve),bt),bt},Wt=a(55132),an=a(87375),pt=a(67190),tt=a(56197),tn=a(38705),En=a(84875),Rn=a.n(En),On=a(71770),Te=a(12868),fn=a(54970),T=a(47100),A=a(11527),Le=function(Ve){var Be=(0,ae.YB)(),Qe=pt.Z.useFormInstance();if(Ve.render===!1)return null;var St=Ve.onSubmit,bt=Ve.render,P=Ve.onReset,de=Ve.searchConfig,ye=de===void 0?{}:de,He=Ve.submitButtonProps,_e=Ve.resetButtonProps,st=At.Ow.useToken(),Ct=st.token,Kt=function(){Qe.submit(),St==null||St()},$t=function(){Qe.resetFields(),P==null||P()},Rt=ye.submitText,lt=Rt===void 0?Be.getMessage("tableForm.submit","\u63D0\u4EA4"):Rt,nt=ye.resetText,Fe=nt===void 0?Be.getMessage("tableForm.reset","\u91CD\u7F6E"):nt,je=[];_e!==!1&&je.push((0,z.createElement)(T.ZP,(0,I.Z)((0,I.Z)({},(0,On.Z)(_e,["preventDefault"])),{},{key:"rest",onClick:function($){var j;_e!=null&&_e.preventDefault||$t(),_e==null||(j=_e.onClick)===null||j===void 0||j.call(_e,$)}}),Fe)),He!==!1&&je.push((0,z.createElement)(T.ZP,(0,I.Z)((0,I.Z)({type:"primary"},(0,On.Z)(He||{},["preventDefault"])),{},{key:"submit",onClick:function($){var j;He!=null&&He.preventDefault||Kt(),He==null||(j=He.onClick)===null||j===void 0||j.call(He,$)}}),lt));var fe=bt?bt((0,I.Z)((0,I.Z)({},Ve),{},{form:Qe,submit:Kt,reset:$t}),je):je;return fe?Array.isArray(fe)?(fe==null?void 0:fe.length)<1?null:(fe==null?void 0:fe.length)===1?fe[0]:(0,A.jsx)("div",{style:{display:"flex",gap:Ct.marginXS,alignItems:"center"},children:fe}):fe:null},We=Le,qe=a(58460),yt=a(21510),me=a(58922),It=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Vt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],mt=function(Ve,Be,Qe){return Ve===!0?Be:(0,Q.h)(Ve,Be,Qe)},Dt=function(Ve){return!Ve||Array.isArray(Ve)?Ve:[Ve]};function Mt(Ee){var Ve,Be=Ee.children,Qe=Ee.contentRender,St=Ee.submitter,bt=Ee.fieldProps,P=Ee.formItemProps,de=Ee.groupProps,ye=Ee.transformKey,He=Ee.formRef,_e=Ee.onInit,st=Ee.form,Ct=Ee.loading,Kt=Ee.formComponentType,$t=Ee.extraUrlParams,Rt=$t===void 0?{}:$t,lt=Ee.syncToUrl,nt=Ee.onUrlSearchChange,Fe=Ee.onReset,je=Ee.omitNil,fe=je===void 0?!0:je,Ze=Ee.isKeyPressSubmit,$=Ee.autoFocusFirstInput,j=$===void 0?!0:$,Y=Ee.grid,Me=Ee.rowProps,ze=Ee.colProps,ft=(0,Z.Z)(Ee,It),vn=pt.Z.useFormInstance(),_t=(tt.ZP===null||tt.ZP===void 0||(Ve=tt.ZP.useConfig)===null||Ve===void 0?void 0:Ve.call(tt.ZP))||{componentSize:"middle"},Yt=_t.componentSize,Tt=(0,z.useRef)(st||vn),Ut=(0,yt.zx)({grid:Y,rowProps:Me}),dn=Ut.RowWrapper,Ft=(0,K.J)(function(){return vn}),un=(0,z.useMemo)(function(){return{getFieldsFormatValue:function(De){var ge;return ye((ge=Ft())===null||ge===void 0?void 0:ge.getFieldsValue(De),fe)},getFieldFormatValue:function(){var De,ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rt=Dt(ge);if(!rt)throw new Error("nameList is require");var Je=(De=Ft())===null||De===void 0?void 0:De.getFieldValue(rt),Re=rt?(0,jn.Z)({},rt,Je):Je;return(0,mn.Z)(ye(Re,fe,rt),rt)},getFieldFormatValueObject:function(De){var ge,rt=Dt(De),Je=(ge=Ft())===null||ge===void 0?void 0:ge.getFieldValue(rt),Re=rt?(0,jn.Z)({},rt,Je):Je;return ye(Re,fe,rt)},validateFieldsReturnFormatValue:function(){var Pe=(0,k.Z)((0,l.Z)().mark(function ge(rt){var Je,Re,Ln;return(0,l.Z)().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:if(!(!Array.isArray(rt)&&rt)){on.next=2;break}throw new Error("nameList must be array");case 2:return on.next=4,(Je=Ft())===null||Je===void 0?void 0:Je.validateFields(rt);case 4:return Re=on.sent,Ln=ye(Re,fe),on.abrupt("return",Ln||{});case 7:case"end":return on.stop()}},ge)}));function De(ge){return Pe.apply(this,arguments)}return De}()}},[fe,ye]),ve=(0,z.useMemo)(function(){return z.Children.toArray(Be).map(function(Pe,De){return De===0&&z.isValidElement(Pe)&&j?z.cloneElement(Pe,(0,I.Z)((0,I.Z)({},Pe.props),{},{autoFocus:j})):Pe})},[j,Be]),Ge=(0,z.useMemo)(function(){return typeof St=="boolean"||!St?{}:St},[St]),vt=(0,z.useMemo)(function(){if(St!==!1)return(0,A.jsx)(We,(0,I.Z)((0,I.Z)({},Ge),{},{onReset:function(){var De,ge,rt=ye((De=Tt.current)===null||De===void 0?void 0:De.getFieldsValue(),fe);if(Ge==null||(ge=Ge.onReset)===null||ge===void 0||ge.call(Ge,rt),Fe==null||Fe(rt),lt){var Je,Re=Object.keys(ye((Je=Tt.current)===null||Je===void 0?void 0:Je.getFieldsValue(),!1)).reduce(function(Ln,zn){return(0,I.Z)((0,I.Z)({},Ln),{},(0,w.Z)({},zn,rt[zn]||void 0))},Rt);nt(mt(lt,Re||{},"set"))}},submitButtonProps:(0,I.Z)({loading:Ct},Ge.submitButtonProps)}),"submitter")},[St,Ge,Ct,ye,fe,Fe,lt,Rt,nt]),et=(0,z.useMemo)(function(){var Pe=Y?(0,A.jsx)(dn,{children:ve}):ve;return Qe?Qe(Pe,vt,Tt.current):Pe},[Y,dn,ve,Qe,vt]),N=(0,ce.D)(Ee.initialValues);return(0,z.useEffect)(function(){if(!(lt||!Ee.initialValues||!N||ft.request)){var Pe=(0,pe.A)(Ee.initialValues,N);(0,Te.ET)(Pe,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,Te.ET)(Pe,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[Ee.initialValues]),(0,z.useImperativeHandle)(He,function(){return(0,I.Z)((0,I.Z)({},Tt.current),un)},[un,Tt.current]),(0,z.useEffect)(function(){var Pe,De,ge=ye((Pe=Tt.current)===null||Pe===void 0||(De=Pe.getFieldsValue)===null||De===void 0?void 0:De.call(Pe,!0),fe);_e==null||_e(ge,(0,I.Z)((0,I.Z)({},Tt.current),un))},[]),(0,A.jsx)(x.J.Provider,{value:(0,I.Z)((0,I.Z)({},un),{},{formRef:Tt}),children:(0,A.jsx)(tt.ZP,{componentSize:ft.size||Yt,children:(0,A.jsxs)(yt._p.Provider,{value:{grid:Y,colProps:ze},children:[ft.component!==!1&&(0,A.jsx)("input",{type:"text",style:{display:"none"}}),et]})})})}var Lt=0;function Pn(Ee){var Ve=Ee.extraUrlParams,Be=Ve===void 0?{}:Ve,Qe=Ee.syncToUrl,St=Ee.isKeyPressSubmit,bt=Ee.syncToUrlAsImportant,P=bt===void 0?!1:bt,de=Ee.syncToInitialValues,ye=de===void 0?!0:de,He=Ee.children,_e=Ee.contentRender,st=Ee.submitter,Ct=Ee.fieldProps,Kt=Ee.proFieldProps,$t=Ee.formItemProps,Rt=Ee.groupProps,lt=Ee.dateFormatter,nt=lt===void 0?"string":lt,Fe=Ee.formRef,je=Ee.onInit,fe=Ee.form,Ze=Ee.formComponentType,$=Ee.onReset,j=Ee.grid,Y=Ee.rowProps,Me=Ee.colProps,ze=Ee.omitNil,ft=ze===void 0?!0:ze,vn=Ee.request,_t=Ee.params,Yt=Ee.initialValues,Tt=Ee.formKey,Ut=Tt===void 0?Lt:Tt,dn=Ee.readonly,Ft=Ee.onLoadingChange,un=Ee.loading,ve=(0,Z.Z)(Ee,Vt),Ge=(0,z.useRef)({}),vt=(0,re.Z)(!1,{onChange:Ft,value:un}),et=(0,i.Z)(vt,2),N=et[0],Pe=et[1],De=(0,an.l)({},{disabled:!Qe}),ge=(0,i.Z)(De,2),rt=ge[0],Je=ge[1],Re=(0,z.useRef)((0,Ye.x)());(0,z.useEffect)(function(){Lt+=0},[]);var Ln=it({request:vn,params:_t,proFieldKey:Ut}),zn=(0,i.Z)(Ln,1),on=zn[0],Mn=(0,z.useContext)(tt.ZP.ConfigContext),Wn=Mn.getPrefixCls,Gn=Wn("pro-form"),br=(0,At.Xj)("ProForm",function(le){return(0,w.Z)({},".".concat(Gn),(0,w.Z)({},"> div:not(".concat(le.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),Ae=br.wrapSSR,ue=br.hashId,S=(0,z.useState)(function(){return Qe?mt(Qe,rt,"get"):{}}),G=(0,i.Z)(S,2),J=G[0],C=G[1],E=(0,z.useRef)({}),F=(0,z.useRef)({}),W=(0,K.J)(function(le,V,Oe){return Ue((0,Wt.lp)(le,nt,F.current,V,Oe),E.current,V)});(0,z.useEffect)(function(){ye||C({})},[ye]),(0,z.useEffect)(function(){Qe&&Je(mt(Qe,(0,I.Z)((0,I.Z)({},rt),Be),"set"))},[Be,Qe]);var ne=(0,z.useMemo)(function(){if(typeof window!="undefined"&&Ze&&["DrawerForm"].includes(Ze))return function(le){return le.parentNode||document.body}},[Ze]),te=(0,K.J)((0,k.Z)((0,l.Z)().mark(function le(){var V,Oe,Ie,at,dt,ht;return(0,l.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ve.onFinish){en.next=2;break}return en.abrupt("return");case 2:if(!N){en.next=4;break}return en.abrupt("return");case 4:return Pe(!0),en.prev=5,Ie=Ge==null||(V=Ge.current)===null||V===void 0||(Oe=V.getFieldsFormatValue)===null||Oe===void 0?void 0:Oe.call(V),en.next=9,ve.onFinish(Ie);case 9:Qe&&(ht=Object.keys(Ge==null||(at=Ge.current)===null||at===void 0||(dt=at.getFieldsFormatValue)===null||dt===void 0?void 0:dt.call(at,void 0,!1)).reduce(function(Ht,ct){var Qt;return(0,I.Z)((0,I.Z)({},Ht),{},(0,w.Z)({},ct,(Qt=Ie[ct])!==null&&Qt!==void 0?Qt:void 0))},Be),Object.keys(rt).forEach(function(Ht){ht[Ht]!==!1&&ht[Ht]!==0&&!ht[Ht]&&(ht[Ht]=void 0)}),Je(mt(Qe,ht,"set"))),Pe(!1),en.next=17;break;case 13:en.prev=13,en.t0=en.catch(5),console.log(en.t0),Pe(!1);case 17:case"end":return en.stop()}},le,null,[[5,13]])})));return(0,z.useImperativeHandle)(Fe,function(){return Ge.current},[!on]),!on&&Ee.request?(0,A.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,A.jsx)(tn.Z,{})}):Ae((0,A.jsx)(me.A.Provider,{value:{mode:Ee.readonly?"read":"edit"},children:(0,A.jsx)(ae._Y,{needDeps:!0,children:(0,A.jsx)(fn.Z.Provider,{value:{formRef:Ge,fieldProps:Ct,proFieldProps:Kt,formItemProps:$t,groupProps:Rt,formComponentType:Ze,getPopupContainer:ne,formKey:Re.current,setFieldValueType:function(V,Oe){var Ie=Oe.valueType,at=Ie===void 0?"text":Ie,dt=Oe.dateFormat,ht=Oe.transform;Array.isArray(V)&&(E.current=(0,jn.Z)(E.current,V,ht),F.current=(0,jn.Z)(F.current,V,{valueType:at,dateFormat:dt}))}},children:(0,A.jsx)(qe.J.Provider,{value:{},children:(0,A.jsx)(pt.Z,(0,I.Z)((0,I.Z)({onKeyPress:function(V){if(St&&V.key==="Enter"){var Oe;(Oe=Ge.current)===null||Oe===void 0||Oe.submit()}},autoComplete:"off",form:fe},(0,On.Z)(ve,["labelWidth","autoFocusFirstInput"])),{},{initialValues:P?(0,I.Z)((0,I.Z)((0,I.Z)({},Yt),on),J):(0,I.Z)((0,I.Z)((0,I.Z)({},J),Yt),on),onValuesChange:function(V,Oe){var Ie;ve==null||(Ie=ve.onValuesChange)===null||Ie===void 0||Ie.call(ve,W(V,!!ft),W(Oe,!!ft))},className:Rn()(Ee.className,Gn,ue),onFinish:te,children:(0,A.jsx)(Mt,(0,I.Z)((0,I.Z)({transformKey:W,autoComplete:"off",loading:N,onUrlSearchChange:Je},Ee),{},{formRef:Ge,initialValues:(0,I.Z)((0,I.Z)({},Yt),on)}))}))})})})}))}},58922:function(Zt,xe,a){"use strict";a.d(xe,{A:function(){return w}});var i=a(50959),w=i.createContext({mode:"edit"})},81298:function(Zt,xe,a){"use strict";a.d(xe,{G:function(){return bn}});var i=a(73273),w=a(32682),I=a(33346),l=a(10570),k=a(66607),Z=a(16168),ae=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Q(qt){var be={};return ae.forEach(function(Ue){qt[Ue]!==void 0&&(be[Ue]=qt[Ue])}),be}var K=a(75565),ce=a(13165),pe=a(84875),x=a.n(pe),re=a(7445),Ye=a(12868),z=a(50959),se=a(54970),H=a(75693),it=a(80288),At=a(21510),ke=a(11527),ut=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],B=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],tr=Symbol("ProFormComponent"),mn={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},jn=["switch","radioButton","radio","rate"];function bn(qt,be){qt.displayName="ProFormComponent";var Ue=function(pt){var tt=(0,I.Z)((0,I.Z)({},pt==null?void 0:pt.filedConfig),be)||{},tn=tt.valueType,En=tt.customLightMode,Rn=tt.lightFilterLabelFormatter,On=tt.valuePropName,Te=On===void 0?"value":On,fn=tt.ignoreWidth,T=tt.defaultProps,A=(0,l.Z)(tt,ut),Le=(0,I.Z)((0,I.Z)({},T),pt),We=Le.label,qe=Le.tooltip,yt=Le.placeholder,me=Le.width,It=Le.bordered,Vt=Le.messageVariables,mt=Le.ignoreFormItem,Dt=Le.transform,Mt=Le.convertValue,Lt=Le.readonly,Pn=Le.allowClear,Ee=Le.colSize,Ve=Le.getFormItemProps,Be=Le.getFieldProps,Qe=Le.filedConfig,St=Le.cacheForSwr,bt=Le.proFieldProps,P=(0,l.Z)(Le,B),de=tn||P.valueType,ye=(0,z.useMemo)(function(){return fn||jn.includes(de)},[fn,de]),He=(0,z.useState)(),_e=(0,w.Z)(He,2),st=_e[1],Ct=(0,z.useState)(),Kt=(0,w.Z)(Ct,2),$t=Kt[0],Rt=Kt[1],lt=z.useContext(se.Z),nt=(0,k.Z)(function(){return{formItemProps:Ve==null?void 0:Ve(),fieldProps:Be==null?void 0:Be()}},[Be,Ve,P.dependenciesValues,$t]),Fe=(0,k.Z)(function(){var Ft=(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},mt?(0,Z.Y)({value:P.value}):{}),{},{placeholder:yt,disabled:pt.disabled},lt.fieldProps),nt.fieldProps),P.fieldProps);return Ft.style=(0,Z.Y)(Ft==null?void 0:Ft.style),Ft},[mt,P.value,P.fieldProps,yt,pt.disabled,lt.fieldProps,nt.fieldProps]),je=Q(P),fe=(0,k.Z)(function(){return(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},lt.formItemProps),je),nt.formItemProps),P.formItemProps)},[nt.formItemProps,lt.formItemProps,P.formItemProps,je]),Ze=(0,k.Z)(function(){return(0,I.Z)((0,I.Z)({messageVariables:Vt},A),fe)},[A,fe,Vt]);(0,Ye.ET)(!P.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var $=(0,z.useContext)(re.zb),j=$.prefixName,Y=(0,k.Z)(function(){var Ft,un=Ze==null?void 0:Ze.name;Array.isArray(un)&&(un=un.join("_")),Array.isArray(j)&&un&&(un="".concat(j.join("."),".").concat(un));var ve=un&&"form-".concat((Ft=lt.formKey)!==null&&Ft!==void 0?Ft:"","-field-").concat(un);return ve},[(0,K.ZP)(Ze==null?void 0:Ze.name),j,lt.formKey]),Me=(0,ce.J)(function(){var Ft;Ve||Be?Rt([]):P.renderFormItem&&st([]);for(var un=arguments.length,ve=new Array(un),Ge=0;Geie?ot=1:ot=Math.round(Xe*100/ie)/100,u.a!==ot)return{h:u.h,s:u.s,l:u.l,a:ot,source:"rgb"}}else{var Xt;if($e<0?Xt=0:$e>_?Xt=1:Xt=Math.round($e*100/_)/100,y!==Xt)return{h:u.h,s:u.s,l:u.l,a:Xt,source:"rgb"}}return null},qe={},yt=function(n,u,d,y){if(typeof document=="undefined"&&!y)return null;var M=y?new y:document.createElement("canvas");M.width=d*2,M.height=d*2;var _=M.getContext("2d");return _?(_.fillStyle=n,_.fillRect(0,0,M.width,M.height),_.fillStyle=u,_.fillRect(0,0,d,d),_.translate(d,d),_.fillRect(0,0,d,d),M.toDataURL()):null},me=function(n,u,d,y){var M="".concat(n,"-").concat(u,"-").concat(d).concat(y?"-server":"");if(qe[M])return qe[M];var _=yt(n,u,d,y);return qe[M]=_,_};function It(c){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},It(c)}function Vt(c,n){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);n&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(c,y).enumerable})),u.push.apply(u,d)}return u}function mt(c){for(var n=1;n_)Xe=0;else{var ot=-($e*100/_)+100;Xe=360*ot/100}if(d.h!==Xe)return{h:Xe,s:d.s,l:d.l,a:d.a,source:"hsl"}}else{var Xt;if(he<0)Xt=0;else if(he>M)Xt=359;else{var pn=he*100/M;Xt=360*pn/100}if(d.h!==Xt)return{h:Xt,s:d.s,l:d.l,a:d.a,source:"hsl"}}return null};function fe(c){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fe(c)}function Ze(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function $(c,n){for(var u=0;uM&&(he=M),$e<0?$e=0:$e>_&&($e=_);var Xe=he/M,ot=1-$e/_;return{h:u.h,s:Xe,v:ot,a:u.a,source:"hsv"}};function vt(c){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vt(c)}function et(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function N(c,n){for(var u=0;u=0,M=!u&&y&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return M?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(d=this.toRgbString()),n==="prgb"&&(d=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(d=this.toHexString()),n==="hex3"&&(d=this.toHexString(!0)),n==="hex4"&&(d=this.toHex8String(!0)),n==="hex8"&&(d=this.toHex8String()),n==="name"&&(d=this.toName()),n==="hsl"&&(d=this.toHslString()),n==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return E(this.toString())},_applyModification:function(n,u){var d=n.apply(null,[this].concat([].slice.call(u)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(en,arguments)},brighten:function(){return this._applyModification(Ht,arguments)},darken:function(){return this._applyModification(ct,arguments)},desaturate:function(){return this._applyModification(dt,arguments)},saturate:function(){return this._applyModification(ht,arguments)},greyscale:function(){return this._applyModification(Gt,arguments)},spin:function(){return this._applyModification(Qt,arguments)},_applyCombination:function(n,u){return n.apply(null,[this].concat([].slice.call(u)))},analogous:function(){return this._applyCombination(Nt,arguments)},complement:function(){return this._applyCombination(kt,arguments)},monochromatic:function(){return this._applyCombination(xt,arguments)},splitcomplement:function(){return this._applyCombination(jt,arguments)},triad:function(){return this._applyCombination(Et,[3])},tetrad:function(){return this._applyCombination(Et,[4])}},E.fromRatio=function(c,n){if(G(c)=="object"){var u={};for(var d in c)c.hasOwnProperty(d)&&(d==="a"?u[d]=c[d]:u[d]=Hn(c[d]));c=u}return E(c,n)};function F(c){var n={r:0,g:0,b:0},u=1,d=null,y=null,M=null,_=!1,ie=!1;return typeof c=="string"&&(c=$n(c)),G(c)=="object"&&(In(c.r)&&In(c.g)&&In(c.b)?(n=W(c.r,c.g,c.b),_=!0,ie=String(c.r).substr(-1)==="%"?"prgb":"rgb"):In(c.h)&&In(c.s)&&In(c.v)?(d=Hn(c.s),y=Hn(c.v),n=V(c.h,d,y),_=!0,ie="hsv"):In(c.h)&&In(c.s)&&In(c.l)&&(d=Hn(c.s),M=Hn(c.l),n=te(c.h,d,M),_=!0,ie="hsl"),c.hasOwnProperty("a")&&(u=c.a)),u=Qn(u),{ok:_,format:c.format||ie,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:u}}function W(c,n,u){return{r:hn(c,255)*255,g:hn(n,255)*255,b:hn(u,255)*255}}function ne(c,n,u){c=hn(c,255),n=hn(n,255),u=hn(u,255);var d=Math.max(c,n,u),y=Math.min(c,n,u),M,_,ie=(d+y)/2;if(d==y)M=_=0;else{var q=d-y;switch(_=ie>.5?q/(2-d-y):q/(d+y),d){case c:M=(n-u)/q+(n1&&(Xe-=1),Xe<1/6?he+($e-he)*6*Xe:Xe<1/2?$e:Xe<2/3?he+($e-he)*(2/3-Xe)*6:he}if(n===0)d=y=M=u;else{var ie=u<.5?u*(1+n):u+n-u*n,q=2*u-ie;d=_(q,ie,c+1/3),y=_(q,ie,c),M=_(q,ie,c-1/3)}return{r:d*255,g:y*255,b:M*255}}function le(c,n,u){c=hn(c,255),n=hn(n,255),u=hn(u,255);var d=Math.max(c,n,u),y=Math.min(c,n,u),M,_,ie=d,q=d-y;if(_=d===0?0:q/d,d==y)M=0;else{switch(d){case c:M=(n-u)/q+(n>1)+720)%360;--n;)d.h=(d.h+y)%360,M.push(E(d));return M}function xt(c,n){n=n||6;for(var u=E(c).toHsv(),d=u.h,y=u.s,M=u.v,_=[],ie=1/n;n--;)_.push(E({h:d,s:y,v:M})),M=(M+ie)%1;return _}E.mix=function(c,n,u){u=u===0?0:u||50;var d=E(c).toRgb(),y=E(n).toRgb(),M=u/100,_={r:(y.r-d.r)*M+d.r,g:(y.g-d.g)*M+d.g,b:(y.b-d.b)*M+d.b,a:(y.a-d.a)*M+d.a};return E(_)},E.readability=function(c,n){var u=E(c),d=E(n);return(Math.max(u.getLuminance(),d.getLuminance())+.05)/(Math.min(u.getLuminance(),d.getLuminance())+.05)},E.isReadable=function(c,n,u){var d=E.readability(c,n),y,M;switch(M=!1,y=Ot(u),y.level+y.size){case"AAsmall":case"AAAlarge":M=d>=4.5;break;case"AAlarge":M=d>=3;break;case"AAAsmall":M=d>=7;break}return M},E.mostReadable=function(c,n,u){var d=null,y=0,M,_,ie,q;u=u||{},_=u.includeFallbackColors,ie=u.level,q=u.size;for(var he=0;hey&&(y=M,d=E(n[he]));return E.isReadable(c,d,{level:ie,size:q})||!_?d:(u.includeFallbackColors=!1,E.mostReadable(c,["#fff","#000"],u))};var gn=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Bn=E.hexNames=Vn(gn);function Vn(c){var n={};for(var u in c)c.hasOwnProperty(u)&&(n[c[u]]=u);return n}function Qn(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function hn(c,n){rr(c)&&(c="100%");var u=Un(c);return c=Math.min(n,Math.max(0,parseFloat(c))),u&&(c=parseInt(c*n,10)/100),Math.abs(c-n)<1e-6?1:c%n/parseFloat(n)}function qn(c){return Math.min(1,Math.max(0,c))}function kn(c){return parseInt(c,16)}function rr(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function Un(c){return typeof c=="string"&&c.indexOf("%")!=-1}function xn(c){return c.length==1?"0"+c:""+c}function Hn(c){return c<=1&&(c=c*100+"%"),c}function ir(c){return Math.round(parseFloat(c)*255).toString(16)}function ur(c){return kn(c)/255}var An=function(){var c="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",u="(?:"+n+")|(?:"+c+")",d="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",y="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?";return{CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+y),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+y),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+y),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 In(c){return!!An.CSS_UNIT.exec(c)}function $n(c){c=c.replace(J,"").replace(C,"").toLowerCase();var n=!1;if(gn[c])c=gn[c],n=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var u;return(u=An.rgb.exec(c))?{r:u[1],g:u[2],b:u[3]}:(u=An.rgba.exec(c))?{r:u[1],g:u[2],b:u[3],a:u[4]}:(u=An.hsl.exec(c))?{h:u[1],s:u[2],l:u[3]}:(u=An.hsla.exec(c))?{h:u[1],s:u[2],l:u[3],a:u[4]}:(u=An.hsv.exec(c))?{h:u[1],s:u[2],v:u[3]}:(u=An.hsva.exec(c))?{h:u[1],s:u[2],v:u[3],a:u[4]}:(u=An.hex8.exec(c))?{r:kn(u[1]),g:kn(u[2]),b:kn(u[3]),a:ur(u[4]),format:n?"name":"hex8"}:(u=An.hex6.exec(c))?{r:kn(u[1]),g:kn(u[2]),b:kn(u[3]),format:n?"name":"hex"}:(u=An.hex4.exec(c))?{r:kn(u[1]+""+u[1]),g:kn(u[2]+""+u[2]),b:kn(u[3]+""+u[3]),a:ur(u[4]+""+u[4]),format:n?"name":"hex8"}:(u=An.hex3.exec(c))?{r:kn(u[1]+""+u[1]),g:kn(u[2]+""+u[2]),b:kn(u[3]+""+u[3]),format:n?"name":"hex"}:!1}function Ot(c){var n,u;return c=c||{level:"AA",size:"small"},n=(c.level||"AA").toUpperCase(),u=(c.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),u!=="small"&&u!=="large"&&(u="small"),{level:n,size:u}}var Nn=function(n){var u=["r","g","b","a","h","s","l","v"],d=0,y=0;return S()(u,function(M){if(n[M]&&(d+=1,isNaN(n[M])||(y+=1),M==="s"||M==="l")){var _=/^\d+%$/;_.test(n[M])&&(y+=1)}}),d===y?n:!1},ln=function(n,u){var d=n.hex?E(n.hex):E(n),y=d.toHsl(),M=d.toHsv(),_=d.toRgb(),ie=d.toHex();y.s===0&&(y.h=u||0,M.h=u||0);var q=ie==="000000"&&_.a===0;return{hsl:y,hex:q?"transparent":"#".concat(ie),rgb:_,hsv:M,oldHue:n.h||u||y.h,source:n.source}},sn=function(n){if(n==="transparent")return!0;var u=String(n).charAt(0)==="#"?1:0;return n.length!==4+u&&n.length<7+u&&E(n).isValid()},nn=function(n){if(!n)return"#fff";var u=ln(n);if(u.hex==="transparent")return"rgba(0,0,0,0.4)";var d=(u.rgb.r*299+u.rgb.g*587+u.rgb.b*114)/1e3;return d>=128?"#000":"#fff"},Jt={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},cn=function(n,u){var d=n.replace("\xB0","");return tinycolor("".concat(u," (").concat(d,")"))._ok};function O(c){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},O(c)}function D(){return D=Object.assign?Object.assign.bind():function(c){for(var n=1;n-1},no=function(n){return Number(String(n).replace(/%/g,""))},fo=1,ao=function(c){ya(u,c);var n=Lr(u);function u(d){var y;return xr(this,u),y=n.call(this),y.handleBlur=function(){y.state.blurValue&&y.setState({value:y.state.blurValue,blurValue:null})},y.handleChange=function(M){y.setUpdatedValue(M.target.value,M)},y.handleKeyDown=function(M){var _=no(M.target.value);if(!isNaN(_)&&ka(M.keyCode)){var ie=y.getArrowOffset(),q=M.keyCode===Gr?_+ie:_-ie;y.setUpdatedValue(q,M)}},y.handleDrag=function(M){if(y.props.dragLabel){var _=Math.round(y.props.value+M.movementX);_>=0&&_<=y.props.dragMax&&y.props.onChange&&y.props.onChange(y.getValueObjectWithLabel(_),M)}},y.handleMouseDown=function(M){y.props.dragLabel&&(M.preventDefault(),y.handleDrag(M),window.addEventListener("mousemove",y.handleDrag),window.addEventListener("mouseup",y.handleMouseUp))},y.handleMouseUp=function(){y.unbindEventListeners()},y.unbindEventListeners=function(){window.removeEventListener("mousemove",y.handleDrag),window.removeEventListener("mouseup",y.handleMouseUp)},y.state={value:String(d.value).toUpperCase(),blurValue:String(d.value).toUpperCase()},y.inputId="rc-editable-input-".concat(fo++),y}return Cr(u,[{key:"componentDidUpdate",value:function(y,M){this.props.value!==this.state.value&&(y.value!==this.props.value||M.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(y){return Qa({},this.props.label,y)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Xr}},{key:"setUpdatedValue",value:function(y,M){var _=this.props.label?this.getValueObjectWithLabel(y):y;this.props.onChange&&this.props.onChange(_,M),this.setState({value:y})}},{key:"render",value:function(){var y=this,M=(0,T.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return x.createElement("div",{style:M.wrap},x.createElement("input",{id:this.inputId,style:M.input,ref:function(ie){return y.input=ie},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?x.createElement("label",{htmlFor:this.inputId,style:M.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),u}(x.PureComponent||x.Component),Ua=ao;function Ka(c){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ka(c)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(c){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){El(M,d);var y=ti(M);function M(){var _;Ja(this,M);for(var ie=arguments.length,q=new Array(ie),he=0;he100&&($e.a=100),$e.a/=100,u==null||u({h:y==null?void 0:y.h,s:y==null?void 0:y.s,l:y==null?void 0:y.l,a:$e.a,source:"rgb"},Xe))};return x.createElement("div",{style:ie.fields,className:"flexbox-fix"},x.createElement("div",{style:ie.double},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"hex",value:M==null?void 0:M.replace("#",""),onChange:q})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"r",value:d==null?void 0:d.r,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"g",value:d==null?void 0:d.g,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"b",value:d==null?void 0:d.b,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.alpha},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"a",value:Math.round(((d==null?void 0:d.a)||0)*100),onChange:q,dragLabel:"true",dragMax:"100"})))},Tl=$i;function yo(c){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yo(c)}function Ri(c,n){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);n&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(c,y).enumerable})),u.push.apply(u,d)}return u}function Mi(c){for(var n=1;n-1}function zo(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if((typeof c=="undefined"||c===!1)&&$o()){var n=a(15078),u=n.ColorPicker;return u}return Wl}var ri=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.old,he=(0,x.useContext)(H.ZP.ConfigContext),$e=he.getPrefixCls,Xe=x.useMemo(function(){return zo(q)},[q]),ot=$e("pro-field-color-picker"),Xt=(0,x.useMemo)(function(){return q?"":ke()((0,bn.Z)({},ot,$o()))},[ot,q]);if(y==="read"){var pn=(0,B.jsx)(Xe,{value:d,mode:"read",ref:u,className:Xt,open:!1});return M?M(d,(0,i.Z)({mode:y},ie),pn):pn}if(y==="edit"||y==="update"){var rn=(0,i.Z)({display:"table-cell"},ie.style),yn=(0,B.jsx)(Xe,(0,i.Z)((0,i.Z)({ref:u,presets:[Da]},ie),{},{style:rn,className:Xt}));return _?_(d,(0,i.Z)((0,i.Z)({mode:y},ie),{},{style:rn}),yn):yn}return null},dc=x.forwardRef(ri),Li=a(5726),Qr=a.n(Li),Bi=a(25010),fc=a.n(Bi),ro=a(90337);Qr().extend(fc());var Vl=function(n){return!!(n!=null&&n._isAMomentObject)},Ro=function c(n,u){return(0,ro.k)(n)||Qr().isDayjs(n)||Vl(n)?Vl(n)?Qr()(n):n:Array.isArray(n)?n.map(function(d){return c(d,u)}):typeof n=="number"?Qr()(n):Qr()(n,u)},io=a(17291),kl=a(83867),ai=a.n(kl);Qr().extend(ai());var vc=function(n,u){return n?typeof u=="function"?u(Qr()(n)):Qr()(n).format((Array.isArray(u)?u[0]:u)||"YYYY-MM-DD"):"-"},Ul=function(n,u){var d=n.text,y=n.mode,M=n.format,_=n.label,ie=n.light,q=n.render,he=n.renderFormItem,$e=n.plain,Xe=n.showTime,ot=n.fieldProps,Xt=n.picker,pn=n.bordered,rn=n.lightLabel,yn=(0,l.YB)(),Xn=(0,x.useState)(!1),Cn=(0,re.Z)(Xn,2),Jn=Cn[0],fr=Cn[1];if(y==="read"){var Kn=vc(d,ot.format||M);return q?q(d,(0,i.Z)({mode:y},ot),(0,B.jsx)(B.Fragment,{children:Kn})):(0,B.jsx)(B.Fragment,{children:Kn})}if(y==="edit"||y==="update"){var _n,Mr=ot.disabled,vr=ot.value,zr=ot.placeholder,_r=zr===void 0?yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):zr,Fr=Ro(vr);return ie?_n=(0,B.jsx)(se.Q,{label:_,onClick:function(){var nr;ot==null||(nr=ot.onOpenChange)===null||nr===void 0||nr.call(ot,!0),fr(!0)},style:Fr?{paddingInlineEnd:0}:void 0,disabled:Mr,value:Fr||Jn?(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({picker:Xt,showTime:Xe,format:M,ref:u},ot),{},{value:Fr,onOpenChange:function(nr){var wr;fr(nr),ot==null||(wr=ot.onOpenChange)===null||wr===void 0||wr.call(ot,nr)},bordered:!1,open:Jn})):void 0,allowClear:!1,downIcon:Fr||Jn?!1:void 0,bordered:pn,ref:rn}):_n=(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({picker:Xt,showTime:Xe,format:M,placeholder:_r,bordered:$e===void 0?!0:!$e,ref:u},ot),{},{value:Fr})),he?he(d,(0,i.Z)({mode:y},ot),_n):_n}return null},Mo=x.forwardRef(Ul),vo=a(56696),oi=a(71770),Kl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.placeholder,ie=n.renderFormItem,q=n.fieldProps,he=(0,l.YB)(),$e=_||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Xe=(0,x.useCallback)(function(Xn){var Cn=Xn!=null?Xn:void 0;return!q.stringMode&&typeof Cn=="string"&&(Cn=Number(Cn)),typeof Cn=="number"&&!(0,ro.k)(Cn)&&!(0,ro.k)(q.precision)&&(Cn=Number(Cn.toFixed(q.precision))),Cn},[q]);if(y==="read"){var ot,Xt={};q!=null&&q.precision&&(Xt={minimumFractionDigits:Number(q.precision),maximumFractionDigits:Number(q.precision)});var pn=new Intl.NumberFormat(void 0,(0,i.Z)((0,i.Z)({},Xt),(q==null?void 0:q.intlProps)||{})).format(Number(d)),rn=(0,B.jsx)("span",{ref:u,children:(q==null||(ot=q.formatter)===null||ot===void 0?void 0:ot.call(q,pn))||pn});return M?M(d,(0,i.Z)({mode:y},q),rn):rn}if(y==="edit"||y==="update"){var yn=(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({ref:u,min:0,placeholder:$e},(0,oi.Z)(q,["onChange","onBlur"])),{},{onChange:function(Cn){var Jn;return q==null||(Jn=q.onChange)===null||Jn===void 0?void 0:Jn.call(q,Xe(Cn))},onBlur:function(Cn){var Jn;return q==null||(Jn=q.onBlur)===null||Jn===void 0?void 0:Jn.call(q,Xe(Cn.target.value))}}));return ie?ie(d,(0,i.Z)({mode:y},q),yn):yn}return null},Yl=x.forwardRef(Kl),mc=a(1788),ii=a(75200),Xl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.placeholder,ie=n.renderFormItem,q=n.fieldProps,he=n.separator,$e=he===void 0?"~":he,Xe=n.separatorWidth,ot=Xe===void 0?30:Xe,Xt=q.value,pn=q.defaultValue,rn=q.onChange,yn=q.id,Xn=(0,l.YB)(),Cn=qt.Ow.useToken(),Jn=Cn.token,fr=(0,oo.Z)(function(){return pn},{value:Xt,onChange:rn}),Kn=(0,re.Z)(fr,2),_n=Kn[0],Mr=Kn[1];if(y==="read"){var vr=function(Zr){var ia,Ea=new Intl.NumberFormat(void 0,(0,i.Z)({minimumSignificantDigits:2},(q==null?void 0:q.intlProps)||{})).format(Number(Zr));return(q==null||(ia=q.formatter)===null||ia===void 0?void 0:ia.call(q,Ea))||Ea},zr=(0,B.jsxs)("span",{ref:u,children:[vr(d[0])," ",$e," ",vr(d[1])]});return M?M(d,(0,i.Z)({mode:y},q),zr):zr}if(y==="edit"||y==="update"){var _r=function(){if(Array.isArray(_n)){var Zr=(0,re.Z)(_n,2),ia=Zr[0],Ea=Zr[1];typeof ia=="number"&&typeof Ea=="number"&&ia>Ea?Mr([Ea,ia]):ia===void 0&&Ea===void 0&&Mr(void 0)}},Fr=function(Zr,ia){var Ea=(0,mc.Z)(_n||[]);Ea[Zr]=ia===null?void 0:ia,Mr(Ea)},wn=(q==null?void 0:q.placeholder)||_||[Xn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Xn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")],nr=function(Zr){return Array.isArray(wn)?wn[Zr]:wn},wr=ii.Z.Compact||tn.Z.Group,Or=ii.Z.Compact?{}:{compact:!0},ea=(0,B.jsxs)(wr,(0,i.Z)((0,i.Z)({},Or),{},{onBlur:_r,children:[(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({},q),{},{placeholder:nr(0),id:yn!=null?yn:"".concat(yn,"-0"),style:{width:"calc((100% - ".concat(ot,"px) / 2)")},value:_n==null?void 0:_n[0],defaultValue:pn==null?void 0:pn[0],onChange:function(Zr){return Fr(0,Zr)}})),(0,B.jsx)(tn.Z,{style:{width:ot,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:Jn==null?void 0:Jn.colorBgContainer},placeholder:$e,disabled:!0}),(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({},q),{},{placeholder:nr(1),id:yn!=null?yn:"".concat(yn,"-1"),style:{width:"calc((100% - ".concat(ot,"px) / 2)"),borderInlineStart:0},value:_n==null?void 0:_n[1],defaultValue:pn==null?void 0:pn[1],onChange:function(Zr){return Fr(1,Zr)}}))]}));return ie?ie(d,(0,i.Z)({mode:y},q),ea):ea}return null},hc=x.forwardRef(Xl),Hi=a(32618),li=a(92117),Gl=a.n(li);Qr().extend(Gl());var zi=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.format,q=n.fieldProps,he=(0,l.YB)();if(y==="read"){var $e=(0,B.jsx)(Hi.Z,{title:Qr()(d).format((q==null?void 0:q.format)||ie||"YYYY-MM-DD HH:mm:ss"),children:Qr()(d).fromNow()});return M?M(d,(0,i.Z)({mode:y},q),(0,B.jsx)(B.Fragment,{children:$e})):(0,B.jsx)(B.Fragment,{children:$e})}if(y==="edit"||y==="update"){var Xe=he.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),ot=Ro(q.value),Xt=(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({ref:u,placeholder:Xe,showTime:!0},q),{},{value:ot}));return _?_(d,(0,i.Z)({mode:y},q),Xt):Xt}return null},gc=x.forwardRef(zi),Ql=a(71593),pc=x.forwardRef(function(c,n){var u=c.text,d=c.mode,y=c.render,M=c.renderFormItem,_=c.fieldProps,ie=c.placeholder,q=c.width,he=(0,l.YB)(),$e=ie||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(d==="read"){var Xe=(0,B.jsx)(Ql.Z,(0,i.Z)({ref:n,width:q||32,src:u},_));return y?y(u,(0,i.Z)({mode:d},_),Xe):Xe}if(d==="edit"||d==="update"){var ot=(0,B.jsx)(tn.Z,(0,i.Z)({ref:n,placeholder:$e},_));return M?M(u,(0,i.Z)({mode:d},_),ot):ot}return null}),si=pc,Jl=function(n,u){var d,y=n.border,M=y===void 0?!1:y,_=n.children,ie=(0,x.useContext)(H.ZP.ConfigContext),q=ie.getPrefixCls,he=q("pro-field-index-column"),$e=(0,qt.Xj)("IndexColumn",function(){return(0,bn.Z)({},".".concat(he),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),Xe=$e.wrapSSR,ot=$e.hashId;return Xe((0,B.jsx)("div",{ref:u,className:ke()(he,ot,(d={},(0,bn.Z)(d,"".concat(he,"-border"),M),(0,bn.Z)(d,"top-three",_>3),d)),children:_}))},ql=x.forwardRef(Jl),Wi=a(53987),_l=a(87322),bc=["contentRender","numberFormatOptions","numberPopoverRender","open"],es=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],ci=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),yc={style:"currency",currency:"USD"},ts={style:"currency",currency:"RUB"},Vi={style:"currency",currency:"RSD"},Cc={style:"currency",currency:"MYR"},ki={style:"currency",currency:"BRL"},Sc={default:ci,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":yc,"ru-RU":ts,"ms-MY":Cc,"sr-RS":Vi,"pt-BR":ki},Ui=function(n,u,d,y){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",_=u==null?void 0:u.toString().replaceAll(",","");if(typeof _=="string"){var ie=Number(_);if(Number.isNaN(ie))return _;_=ie}if(!_&&_!==0)return"";var q=!1;try{q=n!==!1&&Intl.NumberFormat.supportedLocalesOf([n.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(pn){}try{var he=new Intl.NumberFormat(q&&n!==!1&&(n==null?void 0:n.replace("_","-"))||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},Sc[n||"zh-Hans-CN"]||ci),{},{maximumFractionDigits:d},y)).format(_),$e=n===!1,Xe=he||"",ot=(0,re.Z)(Xe,1),Xt=ot[0];return["+","-"].includes(Xt)?"".concat(M||"").concat(Xt).concat(he.substring($e?2:1)):"".concat(M||"").concat(he.substring($e?1:0))}catch(pn){return _}},Ki=2,ns=x.forwardRef(function(c,n){var u=c.contentRender,d=c.numberFormatOptions,y=c.numberPopoverRender,M=c.open,_=(0,w.Z)(c,bc),ie=(0,oo.Z)(function(){return _.defaultValue},{value:_.value,onChange:_.onChange}),q=(0,re.Z)(ie,2),he=q[0],$e=q[1],Xe=u==null?void 0:u((0,i.Z)((0,i.Z)({},_),{},{value:he})),ot=(0,_l.X)(Xe?M:!1);return(0,B.jsx)(Ai.Z,(0,i.Z)((0,i.Z)({placement:"topLeft"},ot),{},{trigger:["focus","click"],content:Xe,getPopupContainer:function(pn){return(pn==null?void 0:pn.parentElement)||document.body},children:(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({ref:n},_),{},{value:he,onChange:$e}))}))}),xc=function(n,u){var d,y=n.text,M=n.mode,_=n.render,ie=n.renderFormItem,q=n.fieldProps,he=n.proFieldKey,$e=n.plain,Xe=n.valueEnum,ot=n.placeholder,Xt=n.locale,pn=n.customSymbol,rn=pn===void 0?q.customSymbol:pn,yn=n.numberFormatOptions,Xn=yn===void 0?q==null?void 0:q.numberFormatOptions:yn,Cn=n.numberPopoverRender,Jn=Cn===void 0?(q==null?void 0:q.numberPopoverRender)||!1:Cn,fr=(0,w.Z)(n,es),Kn=(d=q==null?void 0:q.precision)!==null&&d!==void 0?d:Ki,_n=(0,l.YB)();Xt&&Wi.Go[Xt]&&(_n=Wi.Go[Xt]);var Mr=ot||_n.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),vr=(0,x.useMemo)(function(){if(rn)return rn;if(!(fr.moneySymbol===!1||q.moneySymbol===!1))return _n.getMessage("moneySymbol","\xA5")},[rn,q.moneySymbol,_n,fr.moneySymbol]),zr=(0,x.useCallback)(function(wn){var nr=new RegExp("\\B(?=(\\d{".concat(3+Math.max(Kn-Ki,0),"})+(?!\\d))"),"g"),wr=String(wn).split("."),Or=(0,re.Z)(wr,2),ea=Or[0],jr=Or[1],Zr=ea.replace(nr,","),ia="";return jr&&Kn>0&&(ia=".".concat(jr.slice(0,Kn===void 0?Ki:Kn))),"".concat(Zr).concat(ia)},[Kn]);if(M==="read"){var _r=(0,B.jsx)("span",{ref:u,children:Ui(Xt||!1,y,Kn,Xn!=null?Xn:q.numberFormatOptions,vr)});return _?_(y,(0,i.Z)({mode:M},q),_r):_r}if(M==="edit"||M==="update"){var Fr=(0,B.jsx)(ns,(0,i.Z)((0,i.Z)({contentRender:function(nr){if(Jn===!1||!nr.value)return null;var wr=Ui(vr||Xt||!1,"".concat(zr(nr.value)),Kn,(0,i.Z)((0,i.Z)({},Xn),{},{notation:"compact"}),vr);return typeof Jn=="function"?Jn==null?void 0:Jn(nr,wr):wr},ref:u,precision:Kn,formatter:function(nr){return nr&&vr?"".concat(vr," ").concat(zr(nr)):nr==null?void 0:nr.toString()},parser:function(nr){return vr&&nr?nr.replace(new RegExp("\\".concat(vr,"\\s?|(,*)"),"g"),""):nr},placeholder:Mr},(0,oi.Z)(q,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:q.onBlur?function(wn){var nr,wr=wn.target.value;vr&&wr&&(wr=wr.replace(new RegExp("\\".concat(vr,"\\s?|(,*)"),"g"),"")),(nr=q.onBlur)===null||nr===void 0||nr.call(q,wr)}:void 0}));return ie?ie(y,(0,i.Z)({mode:M},q),Fr):Fr}return null},Yi=x.forwardRef(xc),Wo=function(n){return n.map(function(u,d){var y;return x.isValidElement(u)?x.cloneElement(u,(0,i.Z)((0,i.Z)({key:d},u==null?void 0:u.props),{},{style:(0,i.Z)({},u==null||(y=u.props)===null||y===void 0?void 0:y.style)})):(0,B.jsx)(x.Fragment,{children:u},d)})},rs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.fieldProps,ie=(0,x.useContext)(H.ZP.ConfigContext),q=ie.getPrefixCls,he=q("pro-field-option"),$e=qt.Ow.useToken(),Xe=$e.token;if((0,x.useImperativeHandle)(u,function(){return{}}),M){var ot=M(d,(0,i.Z)({mode:y},_),(0,B.jsx)(B.Fragment,{}));return!ot||(ot==null?void 0:ot.length)<1||!Array.isArray(ot)?null:(0,B.jsx)("div",{style:{display:"flex",gap:Xe.margin,alignItems:"center"},className:he,children:Wo(ot)})}return!d||!Array.isArray(d)?x.isValidElement(d)?d:null:(0,B.jsx)("div",{style:{display:"flex",gap:Xe.margin,alignItems:"center"},className:he,children:Wo(d)})},Xi=x.forwardRef(rs),as=a(96527),os=a(57249),is=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ls=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.proFieldKey,he=(0,w.Z)(n,is),$e=(0,l.YB)(),Xe=(0,oo.Z)(function(){return he.open||he.visible||!1},{value:he.open||he.visible,onChange:he.onOpenChange||he.onVisible}),ot=(0,re.Z)(Xe,2),Xt=ot[0],pn=ot[1];if(y==="read"){var rn=(0,B.jsx)(B.Fragment,{children:"-"});return d&&(rn=(0,B.jsxs)(ii.Z,{children:[(0,B.jsx)("span",{ref:u,children:Xt?d:"********"}),(0,B.jsx)("a",{onClick:function(){return pn(!Xt)},children:Xt?(0,B.jsx)(as.Z,{}):(0,B.jsx)(os.Z,{})})]})),M?M(d,(0,i.Z)({mode:y},ie),rn):rn}if(y==="edit"||y==="update"){var yn=(0,B.jsx)(tn.Z.Password,(0,i.Z)({placeholder:$e.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:u},ie));return _?_(d,(0,i.Z)({mode:y},ie),yn):yn}return null},ss=x.forwardRef(ls),ui=a(65490),Vo=a.n(ui);function cs(c){return c===0?null:c>0?"+":"-"}function us(c){return c===0?"#595959":c>0?"#ff4d4f":"#52c41a"}function ds(c){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return n>=0?c==null?void 0:c.toFixed(n):c}var fs=function(n,u){var d=n.text,y=n.prefix,M=n.precision,_=n.suffix,ie=_===void 0?"%":_,q=n.mode,he=n.showColor,$e=he===void 0?!1:he,Xe=n.render,ot=n.renderFormItem,Xt=n.fieldProps,pn=n.placeholder,rn=n.showSymbol,yn=(0,l.YB)(),Xn=pn||yn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Cn=(0,x.useMemo)(function(){return typeof d=="string"&&d.includes("%")?Vo()(d.replace("%","")):Vo()(d)},[d]),Jn=(0,x.useMemo)(function(){return typeof rn=="function"?rn==null?void 0:rn(d):rn},[rn,d]);if(q==="read"){var fr=$e?{color:us(Cn)}:{},Kn=(0,B.jsxs)("span",{style:fr,ref:u,children:[y&&(0,B.jsx)("span",{children:y}),Jn&&(0,B.jsxs)(x.Fragment,{children:[cs(Cn)," "]}),ds(Math.abs(Cn),M),ie&&ie]});return Xe?Xe(d,(0,i.Z)((0,i.Z)({mode:q},Xt),{},{prefix:y,precision:M,showSymbol:Jn,suffix:ie}),Kn):Kn}if(q==="edit"||q==="update"){var _n=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,formatter:function(vr){return vr&&y?"".concat(y," ").concat(vr).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):vr},parser:function(vr){return vr?vr.replace(/.*\s|,/g,""):""},placeholder:Xn},Xt));return ot?ot(d,(0,i.Z)({mode:q},Xt),_n):_n}return null},Gi=x.forwardRef(fs),vs=a(17519);function Qi(c){return c===100?"success":c<0?"exception":c<100?"active":"normal"}var ms=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.plain,ie=n.renderFormItem,q=n.fieldProps,he=n.placeholder,$e=(0,l.YB)(),Xe=he||$e.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ot=(0,x.useMemo)(function(){return typeof d=="string"&&d.includes("%")?Vo()(d.replace("%","")):Vo()(d)},[d]);if(y==="read"){var Xt=(0,B.jsx)(vs.Z,(0,i.Z)({ref:u,size:"small",style:{minWidth:100,maxWidth:320},percent:ot,steps:_?10:void 0,status:Qi(ot)},q));return M?M(ot,(0,i.Z)({mode:y},q),Xt):Xt}if(y==="edit"||y==="update"){var pn=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,placeholder:Xe},q));return ie?ie(d,(0,i.Z)({mode:y},q),pn):pn}return null},di=x.forwardRef(ms),Ji=a(22900),qi=["radioType","renderFormItem","mode","render"],_i=function(n,u){var d,y,M=n.radioType,_=n.renderFormItem,ie=n.mode,q=n.render,he=(0,w.Z)(n,qi),$e=(0,x.useContext)(H.ZP.ConfigContext),Xe=$e.getPrefixCls,ot=Xe("pro-field-radio"),Xt=(0,ut.aK)(he),pn=(0,re.Z)(Xt,3),rn=pn[0],yn=pn[1],Xn=pn[2],Cn=(0,x.useRef)(),Jn=(d=be.Z.Item)===null||d===void 0||(y=d.useStatus)===null||y===void 0?void 0:y.call(d);(0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},Cn.current||{}),{},{fetchData:function(Or){return Xn(Or)}})},[Xn]);var fr=(0,qt.Xj)("FieldRadioRadio",function(wr){var Or;return Or={},(0,bn.Z)(Or,".".concat(ot,"-error"),{span:{color:wr.colorError}}),(0,bn.Z)(Or,".".concat(ot,"-warning"),{span:{color:wr.colorWarning}}),(0,bn.Z)(Or,".".concat(ot,"-vertical"),(0,bn.Z)({},"".concat(wr.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0})),Or}),Kn=fr.wrapSSR,_n=fr.hashId;if(rn)return(0,B.jsx)(Ue.Z,{size:"small"});if(ie==="read"){var Mr=yn!=null&&yn.length?yn==null?void 0:yn.reduce(function(wr,Or){var ea;return(0,i.Z)((0,i.Z)({},wr),{},(0,bn.Z)({},(ea=Or.value)!==null&&ea!==void 0?ea:"",Or.label))},{}):void 0,vr=(0,B.jsx)(B.Fragment,{children:(0,z.MP)(he.text,(0,z.R6)(he.valueEnum||Mr))});if(q){var zr;return(zr=q(he.text,(0,i.Z)({mode:ie},he.fieldProps),vr))!==null&&zr!==void 0?zr:null}return vr}if(ie==="edit"){var _r,Fr,wn=Kn((0,B.jsx)(Ji.ZP.Group,(0,i.Z)((0,i.Z)({ref:Cn,optionType:M},he.fieldProps),{},{className:ke()((_r=he.fieldProps)===null||_r===void 0?void 0:_r.className,(Fr={},(0,bn.Z)(Fr,"".concat(ot,"-error"),(Jn==null?void 0:Jn.status)==="error"),(0,bn.Z)(Fr,"".concat(ot,"-warning"),(Jn==null?void 0:Jn.status)==="warning"),Fr),_n,"".concat(ot,"-").concat(he.fieldProps.layout||"horizontal")),options:yn})));if(_){var nr;return(nr=_(he.text,(0,i.Z)((0,i.Z)({mode:ie},he.fieldProps),{},{options:yn,loading:rn}),wn))!==null&&nr!==void 0?nr:null}return wn}return null},el=x.forwardRef(_i),hs=function(n,u){var d=n.text,y=n.mode,M=n.light,_=n.label,ie=n.format,q=n.render,he=n.picker,$e=n.renderFormItem,Xe=n.plain,ot=n.showTime,Xt=n.lightLabel,pn=n.bordered,rn=n.fieldProps,yn=(0,l.YB)(),Xn=Array.isArray(d)?d:[],Cn=(0,re.Z)(Xn,2),Jn=Cn[0],fr=Cn[1],Kn=x.useState(!1),_n=(0,re.Z)(Kn,2),Mr=_n[0],vr=_n[1],zr=(0,x.useCallback)(function(ea){if(typeof(rn==null?void 0:rn.format)=="function"){var jr;return rn==null||(jr=rn.format)===null||jr===void 0?void 0:jr.call(rn,ea)}return(rn==null?void 0:rn.format)||ie||"YYYY-MM-DD"},[rn,ie]),_r=Jn?Qr()(Jn).format(zr(Qr()(Jn))):"",Fr=fr?Qr()(fr).format(zr(Qr()(fr))):"";if(y==="read"){var wn=(0,B.jsxs)("div",{ref:u,children:[(0,B.jsx)("div",{children:_r||"-"}),(0,B.jsx)("div",{children:Fr||"-"})]});return q?q(d,(0,i.Z)({mode:y},rn),(0,B.jsx)("span",{children:wn})):wn}if(y==="edit"||y==="update"){var nr=Ro(rn.value),wr;if(M){var Or;wr=(0,B.jsx)(se.Q,{label:_,onClick:function(){var jr;rn==null||(jr=rn.onOpenChange)===null||jr===void 0||jr.call(rn,!0),vr(!0)},style:nr?{paddingInlineEnd:0}:void 0,disabled:rn.disabled,value:nr||Mr?(0,B.jsx)(io.default.RangePicker,(0,i.Z)((0,i.Z)({picker:he,showTime:ot,format:ie,bordered:!1},rn),{},{placeholder:(Or=rn.placeholder)!==null&&Or!==void 0?Or:[yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var jr;vr(!1),rn==null||(jr=rn.onClear)===null||jr===void 0||jr.call(rn)},value:nr,onOpenChange:function(jr){var Zr;nr&&vr(jr),rn==null||(Zr=rn.onOpenChange)===null||Zr===void 0||Zr.call(rn,jr)}})):null,allowClear:!1,bordered:pn,ref:Xt,downIcon:nr||Mr?!1:void 0})}else wr=(0,B.jsx)(io.default.RangePicker,(0,i.Z)((0,i.Z)({ref:u,format:ie,showTime:ot,placeholder:[yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:Xe===void 0},rn),{},{value:nr}));return $e?$e(d,(0,i.Z)({mode:y},rn),wr):wr}return null},Co=x.forwardRef(hs),tl=a(37839),gs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps;if(y==="read"){var q=(0,B.jsx)(tl.Z,(0,i.Z)((0,i.Z)({allowHalf:!0,disabled:!0,ref:u},ie),{},{value:d}));return M?M(d,(0,i.Z)({mode:y},ie),(0,B.jsx)(B.Fragment,{children:q})):q}if(y==="edit"||y==="update"){var he=(0,B.jsx)(tl.Z,(0,i.Z)({allowHalf:!0,ref:u},ie));return _?_(d,(0,i.Z)({mode:y},ie),he):he}return null},ps=x.forwardRef(gs);function bs(c){var n="",u=Math.floor(c/86400),d=Math.floor(c/3600),y=Math.floor(c/60%60),M=Math.floor(c%60);return n="".concat(M,"\u79D2"),y>0&&(n="".concat(y,"\u5206\u949F").concat(n)),d>0&&(n="".concat(d,"\u5C0F\u65F6").concat(n)),u>0&&(n="".concat(u,"\u5929").concat(n)),n}var ys=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.placeholder,he=(0,l.YB)(),$e=q||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(y==="read"){var Xe=bs(Number(d)),ot=(0,B.jsx)("span",{ref:u,children:Xe});return M?M(d,(0,i.Z)({mode:y},ie),ot):ot}if(y==="edit"||y==="update"){var Xt=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,min:0,style:{width:"100%"},placeholder:$e},ie));return _?_(d,(0,i.Z)({mode:y},ie),Xt):Xt}return null},Cs=x.forwardRef(ys),Ss=a(13362),xs=["mode","render","renderFormItem","fieldProps","emptyText"],Ps=function(n,u){var d=n.mode,y=n.render,M=n.renderFormItem,_=n.fieldProps,ie=n.emptyText,q=ie===void 0?"-":ie,he=(0,w.Z)(n,xs),$e=(0,x.useRef)(),Xe=(0,ut.aK)(he),ot=(0,re.Z)(Xe,3),Xt=ot[0],pn=ot[1],rn=ot[2];if((0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},$e.current||{}),{},{fetchData:function(Kn){return rn(Kn)}})},[rn]),Xt)return(0,B.jsx)(Ue.Z,{size:"small"});if(d==="read"){var yn=pn!=null&&pn.length?pn==null?void 0:pn.reduce(function(fr,Kn){var _n;return(0,i.Z)((0,i.Z)({},fr),{},(0,bn.Z)({},(_n=Kn.value)!==null&&_n!==void 0?_n:"",Kn.label))},{}):void 0,Xn=(0,B.jsx)(B.Fragment,{children:(0,z.MP)(he.text,(0,z.R6)(he.valueEnum||yn))});if(y){var Cn;return(Cn=y(he.text,(0,i.Z)({mode:d},_),(0,B.jsx)(B.Fragment,{children:Xn})))!==null&&Cn!==void 0?Cn:q}return Xn}if(d==="edit"||d==="update"){var Jn=(0,B.jsx)(Ss.Z,(0,i.Z)((0,i.Z)({ref:$e},(0,oi.Z)(_||{},["allowClear"])),{},{options:pn}));return M?M(he.text,(0,i.Z)((0,i.Z)({mode:d},_),{},{options:pn,loading:Xt}),Jn):Jn}return null},ws=x.forwardRef(Ps),Pc=a(59929),Es=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps;if(y==="read"){var q=d;return M?M(d,(0,i.Z)({mode:y},ie),(0,B.jsx)(B.Fragment,{children:q})):(0,B.jsx)(B.Fragment,{children:q})}if(y==="edit"||y==="update"){var he=(0,B.jsx)(Pc.Z,(0,i.Z)((0,i.Z)({ref:u},ie),{},{style:(0,i.Z)({minWidth:120},ie==null?void 0:ie.style)}));return _?_(d,(0,i.Z)({mode:y},ie),he):he}return null},nl=x.forwardRef(Es),Os=a(41868),rl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.light,ie=n.label,q=n.renderFormItem,he=n.fieldProps,$e=(0,l.YB)(),Xe=(0,x.useMemo)(function(){var yn,Xn;return d==null||"".concat(d).length<1?"-":d?(yn=he==null?void 0:he.checkedChildren)!==null&&yn!==void 0?yn:$e.getMessage("switch.open","\u6253\u5F00"):(Xn=he==null?void 0:he.unCheckedChildren)!==null&&Xn!==void 0?Xn:$e.getMessage("switch.close","\u5173\u95ED")},[he==null?void 0:he.checkedChildren,he==null?void 0:he.unCheckedChildren,d]);if(y==="read")return M?M(d,(0,i.Z)({mode:y},he),(0,B.jsx)(B.Fragment,{children:Xe})):Xe!=null?Xe:"-";if(y==="edit"||y==="update"){var ot,Xt=(0,B.jsx)(Os.Z,(0,i.Z)((0,i.Z)({ref:u,size:_?"small":void 0},(0,oi.Z)(he,["value"])),{},{checked:(ot=he==null?void 0:he.checked)!==null&&ot!==void 0?ot:he==null?void 0:he.value}));if(_){var pn=he.disabled,rn=he.bordered;return(0,B.jsx)(se.Q,{label:ie,disabled:pn,bordered:rn,downIcon:!1,value:(0,B.jsx)("div",{style:{paddingLeft:8},children:Xt}),allowClear:!1})}return q?q(d,(0,i.Z)({mode:y},he),Xt):Xt}return null},al=x.forwardRef(rl),Zs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.emptyText,he=q===void 0?"-":q,$e=ie||{},Xe=$e.autoFocus,ot=$e.prefix,Xt=ot===void 0?"":ot,pn=$e.suffix,rn=pn===void 0?"":pn,yn=(0,l.YB)(),Xn=(0,x.useRef)();if((0,x.useImperativeHandle)(u,function(){return Xn.current},[]),(0,x.useEffect)(function(){if(Xe){var _n;(_n=Xn.current)===null||_n===void 0||_n.focus()}},[Xe]),y==="read"){var Cn=(0,B.jsxs)(B.Fragment,{children:[Xt,d!=null?d:he,rn]});if(M){var Jn;return(Jn=M(d,(0,i.Z)({mode:y},ie),Cn))!==null&&Jn!==void 0?Jn:he}return Cn}if(y==="edit"||y==="update"){var fr=yn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Kn=(0,B.jsx)(tn.Z,(0,i.Z)({ref:Xn,placeholder:fr,allowClear:!0},ie));return _?_(d,(0,i.Z)({mode:y},ie),Kn):Kn}return null},Is=x.forwardRef(Zs),$s=function(n,u){var d=n.text,y=(0,x.useContext)(H.ZP.ConfigContext),M=y.getPrefixCls,_=M("pro-field-readonly"),ie="".concat(_,"-textarea"),q=(0,qt.Xj)("TextArea",function(){return(0,bn.Z)({},".".concat(ie),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),he=q.wrapSSR,$e=q.hashId;return he((0,B.jsx)("span",{ref:u,className:ke()($e,_,ie),style:{},children:d!=null?d:"-"}))},Rs=x.forwardRef($s),ol=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=(0,l.YB)();if(y==="read"){var he=(0,B.jsx)(Rs,(0,i.Z)((0,i.Z)({},n),{},{ref:u}));return M?M(d,(0,i.Z)({mode:y},ie),he):he}if(y==="edit"||y==="update"){var $e=(0,B.jsx)(tn.Z.TextArea,(0,i.Z)({ref:u,rows:3,onKeyPress:function(ot){ot.key==="Enter"&&ot.stopPropagation()},placeholder:q.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},ie));return _?_(d,(0,i.Z)({mode:y},ie),$e):$e}return null},Ms=x.forwardRef(ol),fi=a(74360),Ns=function(n,u){var d=n.text,y=n.mode,M=n.light,_=n.label,ie=n.format,q=n.render,he=n.renderFormItem,$e=n.plain,Xe=n.fieldProps,ot=n.lightLabel,Xt=(0,x.useState)(!1),pn=(0,re.Z)(Xt,2),rn=pn[0],yn=pn[1],Xn=(0,l.YB)(),Cn=(Xe==null?void 0:Xe.format)||ie||"HH:mm:ss",Jn=Qr().isDayjs(d)||typeof d=="number";if(y==="read"){var fr=(0,B.jsx)("span",{ref:u,children:d?Qr()(d,Jn?void 0:Cn).format(Cn):"-"});return q?q(d,(0,i.Z)({mode:y},Xe),(0,B.jsx)("span",{children:fr})):fr}if(y==="edit"||y==="update"){var Kn,_n=Xe.disabled,Mr=Xe.value,vr=Ro(Mr,Cn);if(M){var zr;Kn=(0,B.jsx)(se.Q,{onClick:function(){var Fr;Xe==null||(Fr=Xe.onOpenChange)===null||Fr===void 0||Fr.call(Xe,!0),yn(!0)},style:vr?{paddingInlineEnd:0}:void 0,label:_,disabled:_n,value:vr||rn?(0,B.jsx)(fi.Z,(0,i.Z)((0,i.Z)({bordered:!1,format:ie,ref:u},Xe),{},{placeholder:(zr=Xe.placeholder)!==null&&zr!==void 0?zr:Xn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:vr,onOpenChange:function(Fr){var wn;yn(Fr),Xe==null||(wn=Xe.onOpenChange)===null||wn===void 0||wn.call(Xe,Fr)},open:rn})):null,downIcon:vr||rn?!1:void 0,allowClear:!1,ref:ot})}else Kn=(0,B.jsx)(io.default.TimePicker,(0,i.Z)((0,i.Z)({ref:u,format:ie,bordered:$e===void 0?!0:!$e},Xe),{},{value:vr}));return he?he(d,(0,i.Z)({mode:y},Xe),Kn):Kn}return null},Ts=function(n,u){var d=n.text,y=n.light,M=n.label,_=n.mode,ie=n.lightLabel,q=n.format,he=n.render,$e=n.renderFormItem,Xe=n.plain,ot=n.fieldProps,Xt=(0,l.YB)(),pn=(0,x.useState)(!1),rn=(0,re.Z)(pn,2),yn=rn[0],Xn=rn[1],Cn=(ot==null?void 0:ot.format)||q||"HH:mm:ss",Jn=Array.isArray(d)?d:[],fr=(0,re.Z)(Jn,2),Kn=fr[0],_n=fr[1],Mr=Qr().isDayjs(Kn)||typeof Kn=="number",vr=Qr().isDayjs(_n)||typeof _n=="number",zr=Kn?Qr()(Kn,Mr?void 0:Cn).format(Cn):"",_r=_n?Qr()(_n,vr?void 0:Cn).format(Cn):"";if(_==="read"){var Fr=(0,B.jsxs)("div",{ref:u,children:[(0,B.jsx)("div",{children:zr||"-"}),(0,B.jsx)("div",{children:_r||"-"})]});return he?he(d,(0,i.Z)({mode:_},ot),(0,B.jsx)("span",{children:Fr})):Fr}if(_==="edit"||_==="update"){var wn=Ro(ot.value,Cn),nr;if(y){var wr=ot.disabled,Or=ot.placeholder,ea=Or===void 0?[Xt.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),Xt.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:Or;nr=(0,B.jsx)(se.Q,{onClick:function(){var Zr;ot==null||(Zr=ot.onOpenChange)===null||Zr===void 0||Zr.call(ot,!0),Xn(!0)},style:wn?{paddingInlineEnd:0}:void 0,label:M,disabled:wr,placeholder:ea,value:wn||yn?(0,B.jsx)(fi.Z.RangePicker,(0,i.Z)((0,i.Z)({bordered:!1,format:q,ref:u},ot),{},{placeholder:ea,value:wn,onOpenChange:function(Zr){var ia;Xn(Zr),ot==null||(ia=ot.onOpenChange)===null||ia===void 0||ia.call(ot,Zr)},open:yn})):null,downIcon:wn||yn?!1:void 0,allowClear:!1,ref:ie})}else nr=(0,B.jsx)(fi.Z.RangePicker,(0,i.Z)((0,i.Z)({ref:u,format:q,bordered:Xe===void 0?!0:!Xe},ot),{},{value:wn}));return $e?$e(d,(0,i.Z)({mode:_},ot),nr):nr}return null},wc=x.forwardRef(Ts),il=x.forwardRef(Ns),Fs=a(96238),js=["radioType","renderFormItem","mode","light","label","render"],As=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Ds=function(n,u){var d=n.radioType,y=n.renderFormItem,M=n.mode,_=n.light,ie=n.label,q=n.render,he=(0,w.Z)(n,js),$e=(0,x.useContext)(H.ZP.ConfigContext),Xe=$e.getPrefixCls,ot=Xe("pro-field-tree-select"),Xt=(0,x.useRef)(null),pn=(0,x.useState)(!1),rn=(0,re.Z)(pn,2),yn=rn[0],Xn=rn[1],Cn=he.fieldProps,Jn=Cn.onSearch,fr=Cn.onClear,Kn=Cn.onChange,_n=Cn.onBlur,Mr=Cn.showSearch,vr=Cn.autoClearSearchValue,zr=Cn.treeData,_r=Cn.fetchDataOnSearch,Fr=Cn.searchValue,wn=(0,w.Z)(Cn,As),nr=(0,l.YB)(),wr=(0,ut.aK)((0,i.Z)((0,i.Z)({},he),{},{defaultKeyWords:Fr})),Or=(0,re.Z)(wr,3),ea=Or[0],jr=Or[1],Zr=Or[2],ia=(0,oo.Z)(void 0,{onChange:Jn,value:Fr}),Ea=(0,re.Z)(ia,2),Ba=Ea[0],ja=Ea[1];(0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},Xt.current||{}),{},{fetchData:function(ha){return Zr(ha)}})});var ho=(0,x.useMemo)(function(){if(M==="read"){var La=(wn==null?void 0:wn.fieldNames)||{},ha=La.value,_a=ha===void 0?"value":ha,so=La.label,hl=so===void 0?"label":so,mi=La.children,hi=mi===void 0?"children":mi,gi=new Map,gl=function pl(Po){if(!(Po!=null&&Po.length))return gi;for(var ec=Po.length,pi=0;pi0&&Fe!=="read"?(0,be.jsx)("div",{className:"".concat(mt,"-action ").concat($t).trim(),children:dn}):null,un={name:Ct.name,field:Qe,index:St,record:bt==null||(Le=bt.getFieldValue)===null||Le===void 0?void 0:Le.call(bt,[Rt.listName,P,Qe.name].filter(function(N){return N!==void 0}).flat(1)),fields:Ve,operation:Mt,meta:Be},ve=(0,Ye.zx)(),Ge=ve.grid,vt=(me==null?void 0:me(_t,un))||_t,et=(It==null?void 0:It({listDom:(0,be.jsx)("div",{className:"".concat(mt,"-container ").concat(de||""," ").concat($t||"").trim(),style:(0,w.Z)({width:Ge?"100%":void 0},ye),children:vt}),action:Ft},un))||(0,be.jsxs)("div",{className:"".concat(mt,"-item ").concat($t,` + `).concat(Vt===void 0&&"".concat(mt,"-item-default"),` + `).concat(Vt?"".concat(mt,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,be.jsx)("div",{className:"".concat(mt,"-container ").concat(de||""," ").concat($t).trim(),style:(0,w.Z)({width:Ge?"100%":void 0},ye),children:vt}),Ft]});return(0,be.jsx)(Te.Provider,{value:(0,w.Z)((0,w.Z)({},Qe),{},{listName:[Rt.listName,P,Qe.name].filter(function(N){return N!==void 0}).flat(1)}),children:et})},pt=function(A){var Le=(0,Z.YB)(),We=A.creatorButtonProps,qe=A.prefixCls,yt=A.children,me=A.creatorRecord,It=A.action,Vt=A.fields,mt=A.actionGuard,Dt=A.max,Mt=A.fieldExtraRender,Lt=A.meta,Pn=A.containerClassName,Ee=A.containerStyle,Ve=A.onAfterAdd,Be=A.onAfterRemove,Qe=(0,re.useContext)(Z.L_),St=Qe.hashId,bt=(0,re.useRef)(new Map),P=(0,re.useState)(!1),de=(0,H.Z)(P,2),ye=de[0],He=de[1],_e=(0,re.useMemo)(function(){return Vt.map(function(lt){var nt,Fe;if(!((nt=bt.current)!==null&&nt!==void 0&&nt.has(lt.key.toString()))){var je;(je=bt.current)===null||je===void 0||je.set(lt.key.toString(),(0,At.x)())}var fe=(Fe=bt.current)===null||Fe===void 0?void 0:Fe.get(lt.key.toString());return(0,w.Z)((0,w.Z)({},lt),{},{uuid:fe})})},[Vt]),st=(0,re.useMemo)(function(){var lt=(0,w.Z)({},It),nt=_e.length;return mt!=null&&mt.beforeAddRow?lt.add=(0,se.Z)((0,z.Z)().mark(function Fe(){var je,fe,Ze,$,j,Y=arguments;return(0,z.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:for(je=Y.length,fe=new Array(je),Ze=0;Ze0&&arguments[0]!==void 0?arguments[0]:{},ke=At.children,ut=At.Wrapper,B=(0,I.Z)(At,Q);return z?(0,ae.jsx)(l.Z,(0,w.Z)((0,w.Z)((0,w.Z)({gutter:8},se),B),{},{children:ke})):ut?(0,ae.jsx)(ut,{children:ke}):ke},ColWrapper:function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=At.children,ut=At.Wrapper,B=(0,I.Z)(At,K),tr=(0,Z.useMemo)(function(){var mn=(0,w.Z)((0,w.Z)({},H),B);return typeof mn.span=="undefined"&&typeof mn.xs=="undefined"&&(mn.xs=24),mn},[B]);return z?(0,ae.jsx)(k.Z,(0,w.Z)((0,w.Z)({},tr),{},{children:ke})):ut?(0,ae.jsx)(ut,{children:ke}):ke}}},x=function(Ye){var z=(0,Z.useMemo)(function(){return(0,i.Z)(Ye)==="object"?Ye:{grid:Ye}},[Ye]),se=(0,Z.useContext)(ce),H=se.grid,it=se.colProps;return(0,Z.useMemo)(function(){return pe({grid:!!(H||z.grid),rowProps:z==null?void 0:z.rowProps,colProps:(z==null?void 0:z.colProps)||it,Wrapper:z==null?void 0:z.Wrapper})},[z==null?void 0:z.Wrapper,z.grid,H,JSON.stringify([it,z==null?void 0:z.colProps,z==null?void 0:z.rowProps])])}},22532:function(Zt,xe,a){"use strict";a.d(xe,{Q:function(){return z}});var i=a(73273),w=a(67536),I=a(85824),l=a(17122),k=a(56197),Z=a(84875),ae=a.n(Z),Q=a(50959),K=a(33346),ce=a(26488),pe=function(H){var it,At,ke,ut;return(0,i.Z)({},H.componentCls,(ut={display:"inline-flex",gap:H.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:H.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:H.colorBgTextHover},"&-active":(0,i.Z)({paddingBlock:0,paddingInline:8,backgroundColor:H.colorBgTextHover},"&".concat(H.componentCls,"-allow-clear:hover:not(").concat(H.componentCls,"-disabled)"),(it={},(0,i.Z)(it,"".concat(H.componentCls,"-arrow"),{display:"none"}),(0,i.Z)(it,"".concat(H.componentCls,"-close"),{display:"inline-flex"}),it))},(0,i.Z)(ut,"".concat(H.antCls,"-select"),(0,i.Z)({},"".concat(H.antCls,"-select-clear"),{borderRadius:"50%"})),(0,i.Z)(ut,"".concat(H.antCls,"-picker"),(0,i.Z)({},"".concat(H.antCls,"-picker-clear"),{borderRadius:"50%"})),(0,i.Z)(ut,"&-icon",(At={color:H.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},(0,i.Z)(At,"&".concat(H.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:H.colorTextPlaceholder,borderRadius:"50%"}),(0,i.Z)(At,"&:hover",{color:H.colorIconHover}),At)),(0,i.Z)(ut,"&-disabled",(0,i.Z)({color:H.colorTextPlaceholder,cursor:"not-allowed"},"".concat(H.componentCls,"-icon"),{color:H.colorTextPlaceholder})),(0,i.Z)(ut,"&-small",(ke={height:"24px",paddingBlock:0,paddingInline:4,fontSize:H.fontSizeSM,lineHeight:"24px"},(0,i.Z)(ke,"&".concat(H.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),(0,i.Z)(ke,"".concat(H.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),(0,i.Z)(ke,"".concat(H.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"}),ke)),(0,i.Z)(ut,"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(H.lineWidth,"px solid ").concat(H.colorBorder),borderRadius:"@border-radius-base"}),(0,i.Z)(ut,"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),(0,i.Z)(ut,"&-bordered&-active",{backgroundColor:H.colorBgContainer}),ut))};function x(se){return(0,ce.Xj)("FieldLabel",function(H){var it=(0,K.Z)((0,K.Z)({},H),{},{componentCls:".".concat(se)});return[pe(it)]})}var re=a(11527),Ye=function(H,it){var At,ke,ut,B,tr=H.label,mn=H.onClear,jn=H.value,bn=H.disabled,qt=H.onLabelClick,be=H.ellipsis,Ue=H.placeholder,Wt=H.className,an=H.formatter,pt=H.bordered,tt=H.style,tn=H.downIcon,En=H.allowClear,Rn=En===void 0?!0:En,On=H.valueMaxLength,Te=On===void 0?41:On,fn=(k.ZP===null||k.ZP===void 0||(At=k.ZP.useConfig)===null||At===void 0?void 0:At.call(k.ZP))||{componentSize:"middle"},T=fn.componentSize,A=T,Le=(0,Q.useContext)(k.ZP.ConfigContext),We=Le.getPrefixCls,qe=We("pro-core-field-label"),yt=x(qe),me=yt.wrapSSR,It=yt.hashId,Vt=(0,l.YB)(),mt=(0,Q.useRef)(null),Dt=(0,Q.useRef)(null);(0,Q.useImperativeHandle)(it,function(){return{labelRef:Dt,clearRef:mt}});var Mt=function(Ve){return Ve.every(function(Be){return typeof Be=="string"})?Ve.join(","):Ve.map(function(Be,Qe){var St=Qe===Ve.length-1?"":",";return typeof Be=="string"?(0,re.jsxs)("span",{children:[Be,St]},Qe):(0,re.jsxs)("span",{style:{display:"flex"},children:[Be,St]},Qe)})},Lt=function(Ve){return an?an(Ve):Array.isArray(Ve)?Mt(Ve):Ve},Pn=function(Ve,Be){if(Be!=null&&Be!==""&&(!Array.isArray(Be)||Be.length)){var Qe,St,bt=Ve?(0,re.jsxs)("span",{onClick:function(){qt==null||qt()},className:"".concat(qe,"-text"),children:[Ve,": "]}):"",P=Lt(Be);if(!be)return(0,re.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[bt,Lt(Be)]});var de=function(){var _e=Array.isArray(Be)&&Be.length>1,st=Vt.getMessage("form.lightFilter.itemUnit","\u9879");return typeof P=="string"&&P.length>Te&&_e?"...".concat(Be.length).concat(st):""},ye=de();return(0,re.jsxs)("span",{title:typeof P=="string"?P:void 0,style:{display:"inline-flex",alignItems:"center"},children:[bt,(0,re.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof P=="string"?P==null||(Qe=P.toString())===null||Qe===void 0||(St=Qe.substr)===null||St===void 0?void 0:St.call(Qe,0,Te):P}),ye]})}return Ve||Ue};return me((0,re.jsxs)("span",{className:ae()(qe,It,"".concat(qe,"-").concat((ke=(ut=H.size)!==null&&ut!==void 0?ut:A)!==null&&ke!==void 0?ke:"middle"),(B={},(0,i.Z)(B,"".concat(qe,"-active"),!!jn||jn===0),(0,i.Z)(B,"".concat(qe,"-disabled"),bn),(0,i.Z)(B,"".concat(qe,"-bordered"),pt),(0,i.Z)(B,"".concat(qe,"-allow-clear"),Rn),B),Wt),style:tt,ref:Dt,onClick:function(){var Ve;H==null||(Ve=H.onClick)===null||Ve===void 0||Ve.call(H)},children:[Pn(tr,jn),(jn||jn===0)&&Rn&&(0,re.jsx)(w.Z,{role:"button",title:Vt.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:ae()("".concat(qe,"-icon"),It,"".concat(qe,"-close")),onClick:function(Ve){bn||mn==null||mn(),Ve.stopPropagation()},ref:mt}),tn!==!1?tn!=null?tn:(0,re.jsx)(I.Z,{className:ae()("".concat(qe,"-icon"),It,"".concat(qe,"-arrow"))}):null]}))},z=Q.forwardRef(Ye)},56829:function(Zt,xe,a){"use strict";a.d(xe,{M:function(){return it}});var i=a(33346),w=a(73273),I=a(56197),l=a(82757),k=a(50959),Z=a(17122),ae=a(47100),Q=a(84875),K=a.n(Q),ce=a(26488),pe=function(ke){return(0,w.Z)({},ke.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(ke.colorSplit)})};function x(At){return(0,ce.Xj)("DropdownFooter",function(ke){var ut=(0,i.Z)((0,i.Z)({},ke),{},{componentCls:".".concat(At)});return[pe(ut)]})}var re=a(11527),Ye=function(ke){var ut=(0,Z.YB)(),B=ke.onClear,tr=ke.onConfirm,mn=ke.disabled,jn=ke.footerRender,bn=(0,k.useContext)(I.ZP.ConfigContext),qt=bn.getPrefixCls,be=qt("pro-core-dropdown-footer"),Ue=x(be),Wt=Ue.wrapSSR,an=Ue.hashId,pt=[(0,re.jsx)(ae.ZP,{style:{visibility:B?"visible":"hidden"},type:"link",size:"small",disabled:mn,onClick:function(En){B&&B(En),En.stopPropagation()},children:ut.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,re.jsx)(ae.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:tr,disabled:mn,children:ut.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(jn===!1||(jn==null?void 0:jn(tr,B))===!1)return null;var tt=(jn==null?void 0:jn(tr,B))||pt;return Wt((0,re.jsx)("div",{className:K()(be,an),onClick:function(En){return En.target.getAttribute("data-type")!=="confirm"&&En.stopPropagation()},children:tt}))},z=a(87322),se=function(ke){var ut;return ut={},(0,w.Z)(ut,"".concat(ke.componentCls,"-label"),{cursor:"pointer"}),(0,w.Z)(ut,"".concat(ke.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,w.Z)(ut,"".concat(ke.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),ut};function H(At){return(0,ce.Xj)("FilterDropdown",function(ke){var ut=(0,i.Z)((0,i.Z)({},ke),{},{componentCls:".".concat(At)});return[se(ut)]})}var it=function(ke){var ut,B=ke.children,tr=ke.label,mn=ke.footer,jn=ke.open,bn=ke.onOpenChange,qt=ke.disabled,be=ke.onVisibleChange,Ue=ke.visible,Wt=ke.footerRender,an=ke.placement,pt=(0,k.useContext)(I.ZP.ConfigContext),tt=pt.getPrefixCls,tn=tt("pro-core-field-dropdown"),En=H(tn),Rn=En.wrapSSR,On=En.hashId,Te=(0,z.X)(jn||Ue||!1,bn||be),fn=(0,k.useRef)(null);return Rn((0,re.jsx)(l.Z,(0,i.Z)((0,i.Z)({placement:an,trigger:["click"]},Te),{},{overlayInnerStyle:{padding:0},content:(0,re.jsxs)("div",{ref:fn,className:K()("".concat(tn,"-overlay"),(ut={},(0,w.Z)(ut,"".concat(tn,"-overlay-").concat(an),an),(0,w.Z)(ut,"hashId",On),ut)),children:[(0,re.jsx)(I.ZP,{getPopupContainer:function(){return fn.current||document.body},children:(0,re.jsx)("div",{className:"".concat(tn,"-content ").concat(On).trim(),children:B})}),mn&&(0,re.jsx)(Ye,(0,i.Z)({disabled:qt,footerRender:Wt},mn))]}),children:(0,re.jsx)("span",{className:"".concat(tn,"-label ").concat(On).trim(),children:tr})})))}},98114:function(Zt,xe,a){"use strict";a.d(xe,{J:function(){return w}});var i=a(50959),w=i.createContext({})},55132:function(Zt,xe,a){"use strict";a.d(xe,{Cl:function(){return Q},lp:function(){return re}});var i=a(40727),w=a(5726),I=a.n(w),l=a(56591),k=a.n(l),Z=a(85108),ae=a(90337);I().extend(k());var Q={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function K(Ye){return Object.prototype.toString.call(Ye)==="[object Object]"}function ce(Ye){if(K(Ye)===!1)return!1;var z=Ye.constructor;if(z===void 0)return!0;var se=z.prototype;return!(K(se)===!1||se.hasOwnProperty("isPrototypeOf")===!1)}var pe=function(z){return!!(z!=null&&z._isAMomentObject)},x=function(z,se,H){if(!se)return z;if(I().isDayjs(z)||pe(z)){if(se==="number")return z.valueOf();if(se==="string")return z.format(Q[H]||"YYYY-MM-DD HH:mm:ss");if(typeof se=="string"&&se!=="string")return z.format(se);if(typeof se=="function")return se(z,H)}return z},re=function Ye(z,se,H,it,At){var ke={};return typeof window=="undefined"||(0,i.Z)(z)!=="object"||(0,ae.k)(z)||z instanceof Blob||Array.isArray(z)?z:(Object.keys(z).forEach(function(ut){var B=At?[At,ut].flat(1):[ut],tr=(0,Z.Z)(H,B)||"text",mn="text",jn;typeof tr=="string"?mn=tr:tr&&(mn=tr.valueType,jn=tr.dateFormat);var bn=z[ut];if(!((0,ae.k)(bn)&&it)){if(ce(bn)&&!Array.isArray(bn)&&!I().isDayjs(bn)&&!pe(bn)){ke[ut]=Ye(bn,se,H,it,[ut]);return}if(Array.isArray(bn)){ke[ut]=bn.map(function(qt,be){return I().isDayjs(qt)||pe(qt)?x(qt,jn||se,mn):Ye(qt,se,H,it,[ut,"".concat(be)].flat(1))});return}ke[ut]=x(bn,jn||se,mn)}}),ke)}},26299:function(Zt,xe,a){"use strict";a.d(xe,{c:function(){return k}});var i=a(32682),w=a(5726),I=a.n(w),l=function(ae,Q){return typeof Q=="function"?Q(I()(ae)):I()(ae).format(Q)},k=function(ae,Q){var K=Array.isArray(ae)?ae:[],ce=(0,i.Z)(K,2),pe=ce[0],x=ce[1],re,Ye;Array.isArray(Q)?(re=Q[0],Ye=Q[1]):(re=Q,Ye=Q);var z=pe?l(pe,re):"",se=x?l(x,Ye):"",H=z&&se?"".concat(z," ~ ").concat(se):"";return H}},82250:function(Zt,xe,a){"use strict";a.d(xe,{D:function(){return k}});var i=a(3224),w=a(47801),I=a(50959),l=a(13165);function k(Z,ae){var Q=(0,l.J)(Z),K=(0,I.useRef)(),ce=(0,I.useCallback)(function(){K.current&&(clearTimeout(K.current),K.current=null)},[]),pe=(0,I.useCallback)((0,w.Z)((0,i.Z)().mark(function x(){var re,Ye,z,se=arguments;return(0,i.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:for(re=se.length,Ye=new Array(re),z=0;z0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(i+=1).toFixed(0);for(var Z="",ae=crypto.getRandomValues(new Uint8Array(k));k--;){var Q=63&ae[k];Z+=Q<36?Q.toString(36):Q<62?(Q-26).toString(36).toUpperCase():Q<63?"_":"-"}return Z},I=function(){return typeof window=="undefined"?w():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():w()}},30510:function(Zt,xe,a){"use strict";a.d(xe,{MP:function(){return ce},R6:function(){return Q}});var i=a(40727),w=a(71656),I=a(75200),l=a(50959),k=a(11527);function Z(pe){var x=Object.prototype.toString.call(pe).match(/^\[object (.*)\]$/)[1].toLowerCase();return x==="string"&&(0,i.Z)(pe)==="object"?"object":pe===null?"null":pe===void 0?"undefined":x}var ae=function(x){var re=x.color,Ye=x.children;return(0,k.jsx)(w.Z,{color:re,text:Ye})},Q=function(x){return Z(x)==="map"?x:new Map(Object.entries(x||{}))},K={Success:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"success",text:re})},Error:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"error",text:re})},Default:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"default",text:re})},Processing:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"processing",text:re})},Warning:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"warning",text:re})},success:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"success",text:re})},error:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"error",text:re})},default:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"default",text:re})},processing:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"processing",text:re})},warning:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"warning",text:re})}},ce=function pe(x,re,Ye){if(Array.isArray(x))return(0,k.jsx)(I.Z,{split:",",size:2,wrap:!0,children:x.map(function(ke,ut){return pe(ke,re,ut)})},Ye);var z=Q(re);if(!z.has(x)&&!z.has("".concat(x)))return(x==null?void 0:x.label)||x;var se=z.get(x)||z.get("".concat(x));if(!se)return(0,k.jsx)(l.Fragment,{children:(x==null?void 0:x.label)||x},Ye);var H=se.status,it=se.color,At=K[H||"Init"];return At?(0,k.jsx)(At,{children:se.text},Ye):it?(0,k.jsx)(ae,{color:it,children:se.text},Ye):(0,k.jsx)(l.Fragment,{children:se.text||se},Ye)}},44559:function(Zt,xe,a){"use strict";a.d(xe,{h:function(){return i}});function i(w){if(typeof w=="function"){for(var I=arguments.length,l=new Array(I>1?I-1:0),k=1;k2&&arguments[2]!==void 0?arguments[2]:!1;ht.forEach(function(Ht){if(!(!Ie&&Oe!==!1&&Oe>0&&at.length>=Oe)){var ct=[].concat((0,i.Z)(Gt),[Ht]),Qt=Ht[J.children],kt=en||Ht.disabled;if((!Qt||Qt.length===0||F)&&ne(S,ct,{label:J.label})){var Et;at.push((0,Z.Z)((0,Z.Z)({},Ht),{},(Et={disabled:kt},(0,se.Z)(Et,J.label,le(S,ct,C,J)),(0,se.Z)(Et,H,ct),(0,se.Z)(Et,J.children,void 0),Et)))}Qt&&dt(Ht[J.children],ct,kt)}})}return dt(G,[]),Ie&&at.sort(function(ht,Gt){return Ie(ht[H],Gt[H],S,J)}),Oe!==!1&&Oe>0?at.slice(0,Oe):at},[S,G,J,C,le,F,ne,Ie,Oe])},ut="__RC_CASCADER_SPLIT__",B="SHOW_PARENT",tr="SHOW_CHILD";function mn(S){return S.join(ut)}function jn(S){return S.map(mn)}function bn(S){return S.split(ut)}function qt(S){var G=S||{},J=G.label,C=G.value,E=G.children,F=C||"value";return{label:J||"label",value:F,key:F,children:E||"children"}}function be(S,G){var J,C;return(J=S.isLeaf)!==null&&J!==void 0?J:!((C=S[G.children])!==null&&C!==void 0&&C.length)}function Ue(S){var G=S.parentElement;if(G){var J=S.offsetTop-G.offsetTop;J-G.scrollTop<0?G.scrollTo({top:J}):J+S.offsetHeight-G.scrollTop>G.offsetHeight&&G.scrollTo({top:J+S.offsetHeight-G.offsetHeight})}}function Wt(S,G){return S.map(function(J){var C;return(C=J[H])===null||C===void 0?void 0:C.map(function(E){return E[G.value]})})}function an(S){return Array.isArray(S)&&Array.isArray(S[0])}function pt(S){return S?an(S)?S:(S.length===0?[]:[S]).map(function(G){return Array.isArray(G)?G:[G]}):[]}function tt(S,G,J){var C=new Set(S),E=G();return S.filter(function(F){var W=E[F],ne=W?W.parent:null,te=W?W.children:null;return W&&W.node.disabled?!0:J===tr?!(te&&te.some(function(le){return le.key&&C.has(le.key)})):!(ne&&!ne.node.disabled&&C.has(ne.key))})}function tn(S,G,J){for(var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,E=G,F=[],W=function(){var le,V,Oe,Ie=S[ne],at=(le=E)===null||le===void 0?void 0:le.findIndex(function(ht){var Gt=ht[J.value];return C?String(Gt)===String(Ie):Gt===Ie}),dt=at!==-1?(V=E)===null||V===void 0?void 0:V[at]:null;F.push({value:(Oe=dt==null?void 0:dt[J.value])!==null&&Oe!==void 0?Oe:Ie,index:at,option:dt}),E=dt==null?void 0:dt[J.children]},ne=0;ne1){var jt=dt.slice(0,-1);Ht(jt)}else le(!1)},kt=function(){var jt,Nt=((jt=Gt[ht])===null||jt===void 0?void 0:jt[J.children])||[],xt=Nt.find(function(Bn){return!Bn.disabled});if(xt){var gn=[].concat((0,i.Z)(dt),[xt[J.value]]);Ht(gn)}};w.useImperativeHandle(S,function(){return{onKeyDown:function(jt){var Nt=jt.which;switch(Nt){case Mt.Z.UP:case Mt.Z.DOWN:{var xt=0;Nt===Mt.Z.UP?xt=-1:Nt===Mt.Z.DOWN&&(xt=1),xt!==0&&ct(xt);break}case Mt.Z.LEFT:{if(te)break;Oe?kt():Qt();break}case Mt.Z.RIGHT:{if(te)break;Oe?Qt():kt();break}case Mt.Z.BACKSPACE:{te||Qt();break}case Mt.Z.ENTER:{if(dt.length){var gn=Gt[ht],Bn=(gn==null?void 0:gn[H])||[];Bn.length?F(Bn.map(function(Vn){return Vn[J.value]}),Bn[Bn.length-1]):F(dt,Gt[ht])}break}case Mt.Z.ESC:le(!1),V&&jt.stopPropagation()}},onKeyUp:function(){}}})},Pn=w.forwardRef(function(S,G){var J,C,E,F=S.prefixCls,W=S.multiple,ne=S.searchValue,te=S.toggleOpen,le=S.notFoundContent,V=S.direction,Oe=S.open,Ie=w.useRef(),at=V==="rtl",dt=w.useContext(Ye),ht=dt.options,Gt=dt.values,en=dt.halfValues,Ht=dt.fieldNames,ct=dt.changeOnSelect,Qt=dt.onSelect,kt=dt.searchOptions,Et=dt.dropdownPrefixCls,jt=dt.loadData,Nt=dt.expandTrigger,xt=Et||F,gn=w.useState([]),Bn=(0,ae.Z)(gn,2),Vn=Bn[0],Qn=Bn[1],hn=function(O){if(!(!jt||ne)){var D=tn(O,ht,Ht),oe=D.map(function(Yn){var ar=Yn.option;return ar}),Pt=oe[oe.length-1];if(Pt&&!be(Pt,Ht)){var Tn=mn(O);Qn(function(Yn){return[].concat((0,i.Z)(Yn),[Tn])}),jt(oe)}}};w.useEffect(function(){Vn.length&&Vn.forEach(function(cn){var O=bn(cn),D=tn(O,ht,Ht,!0).map(function(Pt){var Tn=Pt.option;return Tn}),oe=D[D.length-1];(!oe||oe[Ht.children]||be(oe,Ht))&&Qn(function(Pt){return Pt.filter(function(Tn){return Tn!==cn})})})},[ht,Vn,Ht]);var qn=w.useMemo(function(){return new Set(jn(Gt))},[Gt]),kn=w.useMemo(function(){return new Set(jn(en))},[en]),rr=Dt(W,Oe),Un=(0,ae.Z)(rr,2),xn=Un[0],Hn=Un[1],ir=function(O){Hn(O),hn(O)},ur=function(O){var D=O.disabled,oe=be(O,Ht);return!D&&(oe||ct||W)},An=function(O,D){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Qt(O),!W&&(D||ct&&(Nt==="hover"||oe))&&te(!1)},In=w.useMemo(function(){return ne?kt:ht},[ne,kt,ht]),$n=w.useMemo(function(){for(var cn=[{options:In}],O=In,D=Wt(O,Ht),oe=function(){var Yn=xn[Pt],ar=O.find(function(dr,Yr){return(D[Yr]?mn(D[Yr]):dr[Ht.value])===Yn}),er=ar==null?void 0:ar[Ht.children];if(!(er!=null&&er.length))return 1;O=er,cn.push({options:er})},Pt=0;Pt":en,ct=J.loadingIcon,Qt=J.direction,kt=J.notFoundContent,Et=kt===void 0?"Not Found":kt,jt=!!te,Nt=(0,Qe.C8)(le,{value:V,postState:pt}),xt=(0,ae.Z)(Nt,2),gn=xt[0],Bn=xt[1],Vn=w.useMemo(function(){return qt(Oe)},[JSON.stringify(Oe)]),Qn=fn(Vn,ne),hn=(0,ae.Z)(Qn,3),qn=hn[0],kn=hn[1],rr=hn[2],Un=Rn(qn,Vn),xn=qe(jt,gn,kn,rr,Un),Hn=(0,ae.Z)(xn,3),ir=Hn[0],ur=Hn[1],An=Hn[2],In=(0,Qe.zX)(function(nn){if(Bn(nn),at){var Jt=pt(nn),cn=Jt.map(function(oe){return tn(oe,qn,Vn).map(function(Pt){return Pt.option})}),O=jt?Jt:Jt[0],D=jt?cn:cn[0];at(O,D)}}),$n=We(jt,In,ir,ur,An,kn,rr,dt),Ot=(0,Qe.zX)(function(nn){$n(nn)}),Nn=w.useMemo(function(){return{options:qn,fieldNames:Vn,values:ir,halfValues:ur,changeOnSelect:Ie,onSelect:Ot,checkable:te,searchOptions:[],dropdownPrefixCls:null,loadData:ht,expandTrigger:Gt,expandIcon:Ht,loadingIcon:ct,dropdownMenuColumnStyle:null}},[qn,Vn,ir,ur,Ie,Ot,te,ht,Gt,Ht,ct]),ln="".concat(E,"-panel"),sn=!qn.length;return w.createElement(Ye.Provider,{value:Nn},w.createElement("div",{className:l()(ln,(G={},(0,se.Z)(G,"".concat(ln,"-rtl"),Qt==="rtl"),(0,se.Z)(G,"".concat(ln,"-empty"),sn),G),W),style:F},sn?Et:w.createElement(Ee,{prefixCls:E,searchValue:null,multiple:jt,toggleOpen:St,open:!0,direction:Qt})))}function P(S){var G=S.onPopupVisibleChange,J=S.popupVisible,C=S.popupClassName,E=S.popupPlacement;warning(!G,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(J===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(C===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(E===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function de(S,G){if(S){var J=function C(E){for(var F=0;F":qn,rr=S.loadingIcon,Un=S.children,xn=S.dropdownMatchSelectWidth,Hn=xn===void 0?!1:xn,ir=S.showCheckedStrategy,ur=ir===void 0?B:ir,An=(0,Q.Z)(S,He),In=(0,ce.ZP)(J),$n=!!Oe,Ot=(0,x.Z)(W,{value:ne,postState:pt}),Nn=(0,ae.Z)(Ot,2),ln=Nn[0],sn=Nn[1],nn=w.useMemo(function(){return qt(F)},[JSON.stringify(F)]),Jt=fn(nn,Ht),cn=(0,ae.Z)(Jt,3),O=cn[0],D=cn[1],oe=cn[2],Pt=(0,x.Z)("",{value:dt,postState:function(Xr){return Xr||""}}),Tn=(0,ae.Z)(Pt,2),Yn=Tn[0],ar=Tn[1],er=function(Xr,Gr){ar(Xr),Gr.source!=="blur"&&ht&&ht(Xr)},dr=A(Gt),Yr=(0,ae.Z)(dr,2),ta=Yr[0],Er=Yr[1],Pa=ke(Yn,O,nn,ct||E,Er,te),Jr=Rn(O,nn),ba=qe($n,ln,D,oe,Jr),Za=(0,ae.Z)(ba,3),oa=Za[0],wa=Za[1],Ia=Za[2],Na=w.useMemo(function(){var na=jn(oa),Xr=tt(na,D,ur);return[].concat((0,i.Z)(Ia),(0,i.Z)(oe(Xr)))},[oa,D,oe,Ia,ur]),Qa=En(Na,O,nn,$n,V),xr=(0,pe.Z)(function(na){if(sn(na),le){var Xr=pt(na),Gr=Xr.map(function(ka){return tn(ka,O,nn).map(function(no){return no.option})}),aa=$n?Xr:Xr[0],Ta=$n?Gr:Gr[0];le(aa,Ta)}}),yr=We($n,xr,oa,wa,Ia,D,oe,ur),Cr=(0,pe.Z)(function(na){(!$n||at)&&ar(""),yr(na)}),Ar=function(Xr,Gr){if(Gr.type==="clear"){xr([]);return}var aa=Gr.values[0],Ta=aa.valueCells;Cr(Ta)},qr=Et!==void 0?Et:kt,ya=Nt||jt,Aa=Vn||Bn,Lr=function(Xr){Qn==null||Qn(Xr),hn==null||hn(Xr)},Tr=w.useMemo(function(){return{options:O,fieldNames:nn,values:oa,halfValues:wa,changeOnSelect:te,onSelect:Cr,checkable:Oe,searchOptions:Pa,dropdownPrefixCls:ct,loadData:Qt,expandTrigger:en,expandIcon:kn,loadingIcon:rr,dropdownMenuColumnStyle:xt}},[O,nn,oa,wa,te,Cr,Oe,Pa,ct,Qt,en,kn,rr,xt]),Kr=!(Yn?Pa:O).length,sa=Yn&&Er.matchInputWidth||Kr?{}:{minWidth:"auto"};return w.createElement(Ye.Provider,{value:Tr},w.createElement(K.Ac,(0,k.Z)({},An,{ref:G,id:In,prefixCls:E,autoClearSearchValue:at,dropdownMatchSelectWidth:Hn,dropdownStyle:(0,Z.Z)((0,Z.Z)({},sa),gn),displayValues:Qa,onDisplayValuesChange:Ar,mode:$n?"multiple":void 0,searchValue:Yn,onSearch:er,showSearch:ta,OptionList:Be,emptyOptions:Kr,open:qr,dropdownClassName:ya,placement:Aa,onDropdownVisibleChange:Lr,getRawInputElement:function(){return Un}})))});_e.SHOW_PARENT=B,_e.SHOW_CHILD=tr,_e.Panel=bt;var st=_e,Ct=st,Kt=a(87017),$t=a(22365),Rt=a(58351),lt=a(97960),nt=a(55580),Fe=a(31594),je=a(7717),fe=a(69943),Ze=a(10254),$=a(17436),j=a(1415),Y=a(13610),Me=a(14800),ze=a(81986),ft=a(70008),vn=a(21130);function _t(S,G){const{getPrefixCls:J,direction:C,renderEmpty:E}=w.useContext(Fe.E_),F=G||C,W=J("select",S),ne=J("cascader",S);return[W,ne,F,E]}function Yt(S,G){return w.useMemo(()=>G?w.createElement("span",{className:`${S}-checkbox-inner`}):!1,[G])}var Tt=a(70474),Ut=a(58516),dn=a(25671);function Ft(S,G,J){let C=J;J||(C=G?w.createElement(Tt.Z,null):w.createElement(dn.Z,null));const E=w.createElement("span",{className:`${S}-menu-item-loading-icon`},w.createElement(Ut.Z,{spin:!0}));return[C,E]}var un=a(82776),ve=a(81501),Ge=a(60076),vt=a(49508),et=a(6301),Pe=S=>{const{prefixCls:G,componentCls:J}=S,C=`${J}-menu-item`,E=` + &${C}-expand ${C}-expand-icon, + ${C}-loading-icon +`;return[(0,vt.C2)(`${G}-checkbox`,S),{[J]:{"&-checkbox":{top:0,marginInlineEnd:S.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${J}-menu-empty`]:{[`${J}-menu`]:{width:"100%",height:"auto",[C]:{color:S.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:S.controlItemWidth,height:S.dropdownHeight,margin:0,padding:S.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Ge.bf)(S.lineWidth)} ${S.lineType} ${S.colorSplit}`},"&-item":Object.assign(Object.assign({},et.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:S.optionPadding,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${S.motionDurationMid}`,borderRadius:S.borderRadiusSM,"&:hover":{background:S.controlItemBgHover},"&-disabled":{color:S.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[E]:{color:S.colorTextDisabled}},[`&-active:not(${C}-disabled)`]:{["&, &:hover"]:{fontWeight:S.optionSelectedFontWeight,backgroundColor:S.optionSelectedBg}},"&-content":{flex:"auto"},[E]:{marginInlineStart:S.paddingXXS,color:S.colorTextDescription,fontSize:S.fontSizeIcon},"&-keyword":{color:S.colorHighlight}})}}}]};const De=S=>{const{componentCls:G,antCls:J}=S;return[{[G]:{width:S.controlWidth}},{[`${G}-dropdown`]:[{[`&${J}-select-dropdown`]:{padding:0}},Pe(S)]},{[`${G}-dropdown-rtl`]:{direction:"rtl"}},(0,un.c)(S)]},ge=S=>{const G=Math.round((S.controlHeight-S.fontSize*S.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:S.controlItemBgActive,optionSelectedFontWeight:S.fontWeightStrong,optionPadding:`${G}px ${S.paddingSM}px`,menuPadding:S.paddingXXS}};var rt=(0,ve.I$)("Cascader",S=>[De(S)],ge);const Je=S=>{const{componentCls:G}=S;return{[`${G}-panel`]:[Pe(S),{display:"inline-flex",border:`${(0,Ge.bf)(S.lineWidth)} ${S.lineType} ${S.colorSplit}`,borderRadius:S.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${G}-menus`]:{alignItems:"stretch"},[`${G}-menu`]:{height:"auto"},"&-empty":{padding:S.paddingXXS}}]}};var Re=(0,ve.ZP)(["Cascader","Panel"],S=>Je(S),ge);function Ln(S){const{prefixCls:G,className:J,multiple:C,rootClassName:E,notFoundContent:F,direction:W,expandIcon:ne}=S,[te,le,V,Oe]=_t(G,W),Ie=(0,Ze.Z)(le),[at,dt]=rt(le,Ie);Re(le);const ht=V==="rtl",[Gt,en]=Ft(te,ht,ne),Ht=F||(Oe==null?void 0:Oe("Cascader"))||w.createElement(je.Z,{componentName:"Cascader"}),ct=Yt(le,C);return at(w.createElement(bt,Object.assign({},S,{checkable:ct,prefixCls:le,className:l()(J,dt,E,Ie),notFoundContent:Ht,direction:V,expandIcon:Gt,loadingIcon:en})))}var zn=function(S,G){var J={};for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&G.indexOf(C)<0&&(J[C]=S[C]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,C=Object.getOwnPropertySymbols(S);Ete===0?[ne]:[].concat((0,i.Z)(W),[G,ne]),[]),E=[];let F=0;return C.forEach((W,ne)=>{const te=F+W.length;let le=S.slice(F,te);F=te,ne%2===1&&(le=w.createElement("span",{className:`${J}-menu-item-keyword`,key:`separator-${ne}`},le)),E.push(le)}),E}const Gn=(S,G,J,C)=>{const E=[],F=S.toLowerCase();return G.forEach((W,ne)=>{ne!==0&&E.push(" / ");let te=W[C.label];const le=typeof te;(le==="string"||le==="number")&&(te=Wn(String(te),F,J)),E.push(te)}),E},br=w.forwardRef((S,G)=>{var J;const{prefixCls:C,size:E,disabled:F,className:W,rootClassName:ne,multiple:te,bordered:le=!0,transitionName:V,choiceTransitionName:Oe="",popupClassName:Ie,dropdownClassName:at,expandIcon:dt,placement:ht,showSearch:Gt,allowClear:en=!0,notFoundContent:Ht,direction:ct,getPopupContainer:Qt,status:kt,showArrow:Et,builtinPlacements:jt,style:Nt}=S,xt=zn(S,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),gn=(0,Kt.Z)(xt,["suffixIcon"]),{getPopupContainer:Bn,getPrefixCls:Vn,popupOverflow:Qn,cascader:hn}=w.useContext(Fe.E_),{status:qn,hasFeedback:kn,isFormItemInput:rr,feedbackIcon:Un}=w.useContext(j.aM),xn=(0,nt.F)(qn,kt),[Hn,ir,ur,An]=_t(C,ct),In=ur==="rtl",$n=Vn(),Ot=(0,Ze.Z)(Hn),[Nn,ln]=(0,Y.Z)(Hn,Ot),sn=(0,Ze.Z)(ir),[nn]=rt(ir,sn),{compactSize:Jt,compactItemClassnames:cn}=(0,vn.ri)(Hn,ct),O=Ht||(An==null?void 0:An("Cascader"))||w.createElement(je.Z,{componentName:"Cascader"}),D=l()(Ie||at,`${ir}-dropdown`,{[`${ir}-dropdown-rtl`]:ur==="rtl"},ne,Ot,sn,ln),oe=w.useMemo(()=>{if(!Gt)return Gt;let Ia={render:Gn};return typeof Gt=="object"&&(Ia=Object.assign(Object.assign({},Ia),Gt)),Ia},[Gt]),Pt=(0,$.Z)(Ia=>{var Na;return(Na=E!=null?E:Jt)!==null&&Na!==void 0?Na:Ia}),Tn=w.useContext(fe.Z),Yn=F!=null?F:Tn,[ar,er]=Ft(Hn,In,dt),dr=Yt(ir,te),Yr=(0,ft.Z)(S.suffixIcon,Et),{suffixIcon:ta,removeIcon:Er,clearIcon:Pa}=(0,ze.Z)(Object.assign(Object.assign({},S),{hasFeedback:kn,feedbackIcon:Un,showSuffixIcon:Yr,multiple:te,prefixCls:Hn,componentName:"Cascader"})),Jr=w.useMemo(()=>ht!==void 0?ht:In?"bottomRight":"bottomLeft",[ht,In]),ba=(0,Me.Z)(jt,Qn),Za=en===!0?{clearIcon:Pa}:en,[oa]=(0,$t.Cn)("SelectLike",(J=gn.dropdownStyle)===null||J===void 0?void 0:J.zIndex),wa=w.createElement(Ct,Object.assign({prefixCls:Hn,className:l()(!C&&ir,{[`${Hn}-lg`]:Pt==="large",[`${Hn}-sm`]:Pt==="small",[`${Hn}-rtl`]:In,[`${Hn}-borderless`]:!le,[`${Hn}-in-form-item`]:rr},(0,nt.Z)(Hn,xn,kn),cn,hn==null?void 0:hn.className,W,ne,Ot,sn,ln),disabled:Yn,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),Nt)},gn,{builtinPlacements:ba,direction:ur,placement:Jr,notFoundContent:O,allowClear:Za,showSearch:oe,expandIcon:ar,suffixIcon:ta,removeIcon:Er,loadingIcon:er,checkable:dr,dropdownClassName:D,dropdownPrefixCls:C||ir,dropdownStyle:Object.assign(Object.assign({},gn.dropdownStyle),{zIndex:oa}),choiceTransitionName:(0,Rt.m)($n,"",Oe),transitionName:(0,Rt.m)($n,"slide-up",V),getPopupContainer:Qt||Bn,ref:G}));return nn(Nn(wa))}),Ae=(0,lt.Z)(br);br.SHOW_PARENT=Mn,br.SHOW_CHILD=on,br.Panel=Ln,br._InternalPanelDoNotUseOrYouWillBeFired=Ae;var ue=br},97004:function(Zt,xe,a){"use strict";var i=a(70836);function w(){return(0,i.Z)()}xe.ZP={useBreakpoint:w}},71593:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return br}});var i=a(50959),w=a(96527),I=a(84875),l=a.n(I),k=a(38126),Z=a(33346),ae=a(73273),Q=a(32682),K=a(40727),ce=a(10570),pe=a(74253),x=a(65589),re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Ye=i.createContext(null),z=0;function se(Ae,ue){var S=i.useState(function(){return z+=1,String(z)}),G=(0,Q.Z)(S,1),J=G[0],C=i.useContext(Ye),E={data:ue,canPreview:Ae};return i.useEffect(function(){if(C)return C.register(J,E)},[]),i.useEffect(function(){C&&C.register(J,E)},[Ae,ue]),J}function H(Ae){return new Promise(function(ue){var S=document.createElement("img");S.onerror=function(){return ue(!1)},S.onload=function(){return ue(!0)},S.src=Ae})}function it(Ae){var ue=Ae.src,S=Ae.isCustomPlaceholder,G=Ae.fallback,J=(0,i.useState)(S?"loading":"normal"),C=(0,Q.Z)(J,2),E=C[0],F=C[1],W=(0,i.useRef)(!1),ne=E==="error";(0,i.useEffect)(function(){var Oe=!0;return H(ue).then(function(Ie){!Ie&&Oe&&F("error")}),function(){Oe=!1}},[ue]),(0,i.useEffect)(function(){S&&!W.current?F("loading"):ne&&F("normal")},[ue]);var te=function(){F("normal")},le=function(Ie){W.current=!1,E==="loading"&&Ie!==null&&Ie!==void 0&&Ie.complete&&(Ie.naturalWidth||Ie.naturalHeight)&&(W.current=!0,te())},V=ne&&G?{src:G}:{onLoad:te,src:ue};return[le,V,E]}var At=a(43377),ke=a(52802),ut=a(57),B=a(18342),tr=a(28449),mn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function jn(Ae,ue,S,G){var J=(0,i.useRef)(null),C=(0,i.useRef)([]),E=(0,i.useState)(mn),F=(0,Q.Z)(E,2),W=F[0],ne=F[1],te=function(Ie){ne(mn),G&&!(0,B.Z)(mn,W)&&G({transform:mn,action:Ie})},le=function(Ie,at){J.current===null&&(C.current=[],J.current=(0,tr.Z)(function(){ne(function(dt){var ht=dt;return C.current.forEach(function(Gt){ht=(0,Z.Z)((0,Z.Z)({},ht),Gt)}),J.current=null,G==null||G({transform:ht,action:at}),ht})})),C.current.push((0,Z.Z)((0,Z.Z)({},W),Ie))},V=function(Ie,at,dt,ht,Gt){var en=Ae.current,Ht=en.width,ct=en.height,Qt=en.offsetWidth,kt=en.offsetHeight,Et=en.offsetLeft,jt=en.offsetTop,Nt=Ie,xt=W.scale*Ie;xt>S?(xt=S,Nt=S/W.scale):xtG){if(ue>0)return(0,ae.Z)({},Ae,C);if(ue<0&&JG)return(0,ae.Z)({},Ae,ue<0?C:-C);return{}}function be(Ae,ue,S,G){var J=(0,pe.g1)(),C=J.width,E=J.height,F=null;return Ae<=C&&ue<=E?F={x:0,y:0}:(Ae>C||ue>E)&&(F=(0,Z.Z)((0,Z.Z)({},qt("x",S,Ae,C)),qt("y",G,ue,E))),F}var Ue=1,Wt=1;function an(Ae,ue,S,G,J,C,E){var F=J.rotate,W=J.scale,ne=J.x,te=J.y,le=(0,i.useState)(!1),V=(0,Q.Z)(le,2),Oe=V[0],Ie=V[1],at=(0,i.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),dt=function(ct){!ue||ct.button!==0||(ct.preventDefault(),ct.stopPropagation(),at.current={diffX:ct.pageX-ne,diffY:ct.pageY-te,transformX:ne,transformY:te},Ie(!0))},ht=function(ct){S&&Oe&&C({x:ct.pageX-at.current.diffX,y:ct.pageY-at.current.diffY},"move")},Gt=function(){if(S&&Oe){Ie(!1);var ct=at.current,Qt=ct.transformX,kt=ct.transformY,Et=ne!==Qt&&te!==kt;if(!Et)return;var jt=Ae.current.offsetWidth*W,Nt=Ae.current.offsetHeight*W,xt=Ae.current.getBoundingClientRect(),gn=xt.left,Bn=xt.top,Vn=F%180!==0,Qn=be(Vn?Nt:jt,Vn?jt:Nt,gn,Bn);Qn&&C((0,Z.Z)({},Qn),"dragRebound")}},en=function(ct){if(!(!S||ct.deltaY==0)){var Qt=Math.abs(ct.deltaY/100),kt=Math.min(Qt,Wt),Et=Ue+kt*G;ct.deltaY>0&&(Et=Ue/Et),E(Et,"wheel",ct.clientX,ct.clientY)}};return(0,i.useEffect)(function(){var Ht,ct,Qt,kt;if(ue){Qt=(0,ke.Z)(window,"mouseup",Gt,!1),kt=(0,ke.Z)(window,"mousemove",ht,!1);try{window.top!==window.self&&(Ht=(0,ke.Z)(window.top,"mouseup",Gt,!1),ct=(0,ke.Z)(window.top,"mousemove",ht,!1))}catch(Et){(0,bn.Kp)(!1,"[rc-image] ".concat(Et))}}return function(){var Et,jt,Nt,xt;(Et=Qt)===null||Et===void 0||Et.remove(),(jt=kt)===null||jt===void 0||jt.remove(),(Nt=Ht)===null||Nt===void 0||Nt.remove(),(xt=ct)===null||xt===void 0||xt.remove()}},[S,Oe,ne,te,F,ue]),{isMoving:Oe,onMouseDown:dt,onMouseMove:ht,onMouseUp:Gt,onWheel:en}}function pt(Ae,ue){var S=Ae.x-ue.x,G=Ae.y-ue.y;return Math.hypot(S,G)}function tt(Ae,ue,S,G){var J=pt(Ae,S),C=pt(ue,G);if(J===0&&C===0)return[Ae.x,Ae.y];var E=J/(J+C),F=Ae.x+E*(ue.x-Ae.x),W=Ae.y+E*(ue.y-Ae.y);return[F,W]}function tn(Ae,ue,S,G,J,C,E){var F=J.rotate,W=J.scale,ne=J.x,te=J.y,le=(0,i.useState)(!1),V=(0,Q.Z)(le,2),Oe=V[0],Ie=V[1],at=(0,i.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),dt=function(ct){at.current=(0,Z.Z)((0,Z.Z)({},at.current),ct)},ht=function(ct){if(ue){ct.stopPropagation(),Ie(!0);var Qt=ct.touches,kt=Qt===void 0?[]:Qt;kt.length>1?dt({point1:{x:kt[0].clientX,y:kt[0].clientY},point2:{x:kt[1].clientX,y:kt[1].clientY},eventType:"touchZoom"}):dt({point1:{x:kt[0].clientX-ne,y:kt[0].clientY-te},eventType:"move"})}},Gt=function(ct){var Qt=ct.touches,kt=Qt===void 0?[]:Qt,Et=at.current,jt=Et.point1,Nt=Et.point2,xt=Et.eventType;if(kt.length>1&&xt==="touchZoom"){var gn={x:kt[0].clientX,y:kt[0].clientY},Bn={x:kt[1].clientX,y:kt[1].clientY},Vn=tt(jt,Nt,gn,Bn),Qn=(0,Q.Z)(Vn,2),hn=Qn[0],qn=Qn[1],kn=pt(gn,Bn)/pt(jt,Nt);E(kn,"touchZoom",hn,qn,!0),dt({point1:gn,point2:Bn,eventType:"touchZoom"})}else xt==="move"&&(C({x:kt[0].clientX-jt.x,y:kt[0].clientY-jt.y},"move"),dt({eventType:"move"}))},en=function(){if(S){if(Oe&&Ie(!1),dt({eventType:"none"}),G>W)return C({x:0,y:0,scale:G},"touchZoom");var ct=Ae.current.offsetWidth*W,Qt=Ae.current.offsetHeight*W,kt=Ae.current.getBoundingClientRect(),Et=kt.left,jt=kt.top,Nt=F%180!==0,xt=be(Nt?Qt:ct,Nt?ct:Qt,Et,jt);xt&&C((0,Z.Z)({},xt),"dragRebound")}};return(0,i.useEffect)(function(){var Ht;return S&&ue&&(Ht=(0,ke.Z)(window,"touchmove",function(ct){return ct.preventDefault()},{passive:!1})),function(){var ct;(ct=Ht)===null||ct===void 0||ct.remove()}},[S,ue]),{isTouching:Oe,onTouchStart:ht,onTouchMove:Gt,onTouchEnd:en}}var En=a(89337),Rn=a(10091),On=function(ue){var S=ue.visible,G=ue.maskTransitionName,J=ue.getContainer,C=ue.prefixCls,E=ue.rootClassName,F=ue.icons,W=ue.countRender,ne=ue.showSwitch,te=ue.showProgress,le=ue.current,V=ue.transform,Oe=ue.count,Ie=ue.scale,at=ue.minScale,dt=ue.maxScale,ht=ue.closeIcon,Gt=ue.onSwitchLeft,en=ue.onSwitchRight,Ht=ue.onClose,ct=ue.onZoomIn,Qt=ue.onZoomOut,kt=ue.onRotateRight,Et=ue.onRotateLeft,jt=ue.onFlipX,Nt=ue.onFlipY,xt=ue.toolbarRender,gn=ue.zIndex,Bn=(0,i.useContext)(Ye),Vn=F.rotateLeft,Qn=F.rotateRight,hn=F.zoomIn,qn=F.zoomOut,kn=F.close,rr=F.left,Un=F.right,xn=F.flipX,Hn=F.flipY,ir="".concat(C,"-operations-operation");i.useEffect(function(){var $n=function(Nn){Nn.keyCode===ut.Z.ESC&&Ht()};return S&&window.addEventListener("keydown",$n),function(){window.removeEventListener("keydown",$n)}},[S]);var ur=[{icon:Hn,onClick:Nt,type:"flipY"},{icon:xn,onClick:jt,type:"flipX"},{icon:Vn,onClick:Et,type:"rotateLeft"},{icon:Qn,onClick:kt,type:"rotateRight"},{icon:qn,onClick:Qt,type:"zoomOut",disabled:Ie<=at},{icon:hn,onClick:ct,type:"zoomIn",disabled:Ie===dt}],An=ur.map(function($n){var Ot,Nn=$n.icon,ln=$n.onClick,sn=$n.type,nn=$n.disabled;return i.createElement("div",{className:l()(ir,(Ot={},(0,ae.Z)(Ot,"".concat(C,"-operations-operation-").concat(sn),!0),(0,ae.Z)(Ot,"".concat(C,"-operations-operation-disabled"),!!nn),Ot)),onClick:ln,key:sn},Nn)}),In=i.createElement("div",{className:"".concat(C,"-operations")},An);return i.createElement(Rn.ZP,{visible:S,motionName:G},function($n){var Ot=$n.className,Nn=$n.style;return i.createElement(En.Z,{open:!0,getContainer:J!=null?J:document.body},i.createElement("div",{className:l()("".concat(C,"-operations-wrapper"),Ot,E),style:(0,Z.Z)((0,Z.Z)({},Nn),{},{zIndex:gn})},ht===null?null:i.createElement("button",{className:"".concat(C,"-close"),onClick:Ht},ht||kn),ne&&i.createElement(i.Fragment,null,i.createElement("div",{className:l()("".concat(C,"-switch-left"),(0,ae.Z)({},"".concat(C,"-switch-left-disabled"),le===0)),onClick:Gt},rr),i.createElement("div",{className:l()("".concat(C,"-switch-right"),(0,ae.Z)({},"".concat(C,"-switch-right-disabled"),le===Oe-1)),onClick:en},Un)),i.createElement("div",{className:"".concat(C,"-footer")},te&&i.createElement("div",{className:"".concat(C,"-progress")},W?W(le+1,Oe):"".concat(le+1," / ").concat(Oe)),xt?xt(In,(0,Z.Z)({icons:{flipYIcon:An[0],flipXIcon:An[1],rotateLeftIcon:An[2],rotateRightIcon:An[3],zoomOutIcon:An[4],zoomInIcon:An[5]},actions:{onFlipY:Nt,onFlipX:jt,onRotateLeft:Et,onRotateRight:kt,onZoomOut:Qt,onZoomIn:ct},transform:V},Bn?{current:le,total:Oe}:{})):In)))})},Te=On,fn=["fallback","src","imgRef"],T=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],A=function(ue){var S=ue.fallback,G=ue.src,J=ue.imgRef,C=(0,ce.Z)(ue,fn),E=it({src:G,fallback:S}),F=(0,Q.Z)(E,2),W=F[0],ne=F[1];return i.createElement("img",(0,k.Z)({ref:function(le){J.current=le,W(le)}},C,ne))},Le=function(ue){var S=ue.prefixCls,G=ue.src,J=ue.alt,C=ue.fallback,E=ue.movable,F=E===void 0?!0:E,W=ue.onClose,ne=ue.visible,te=ue.icons,le=te===void 0?{}:te,V=ue.rootClassName,Oe=ue.closeIcon,Ie=ue.getContainer,at=ue.current,dt=at===void 0?0:at,ht=ue.count,Gt=ht===void 0?1:ht,en=ue.countRender,Ht=ue.scaleStep,ct=Ht===void 0?.5:Ht,Qt=ue.minScale,kt=Qt===void 0?1:Qt,Et=ue.maxScale,jt=Et===void 0?50:Et,Nt=ue.transitionName,xt=Nt===void 0?"zoom":Nt,gn=ue.maskTransitionName,Bn=gn===void 0?"fade":gn,Vn=ue.imageRender,Qn=ue.imgCommonProps,hn=ue.toolbarRender,qn=ue.onTransform,kn=ue.onChange,rr=(0,ce.Z)(ue,T),Un=(0,i.useRef)(),xn=(0,i.useContext)(Ye),Hn=xn&&Gt>1,ir=xn&&Gt>=1,ur=(0,i.useState)(!0),An=(0,Q.Z)(ur,2),In=An[0],$n=An[1],Ot=jn(Un,kt,jt,qn),Nn=Ot.transform,ln=Ot.resetTransform,sn=Ot.updateTransform,nn=Ot.dispatchZoomChange,Jt=an(Un,F,ne,ct,Nn,sn,nn),cn=Jt.isMoving,O=Jt.onMouseDown,D=Jt.onWheel,oe=tn(Un,F,ne,kt,Nn,sn,nn),Pt=oe.isTouching,Tn=oe.onTouchStart,Yn=oe.onTouchMove,ar=oe.onTouchEnd,er=Nn.rotate,dr=Nn.scale,Yr=l()((0,ae.Z)({},"".concat(S,"-moving"),cn));(0,i.useEffect)(function(){In||$n(!0)},[In]);var ta=function(){ln("close")},Er=function(){nn(Ue+ct,"zoomIn")},Pa=function(){nn(Ue/(Ue+ct),"zoomOut")},Jr=function(){sn({rotate:er+90},"rotateRight")},ba=function(){sn({rotate:er-90},"rotateLeft")},Za=function(){sn({flipX:!Nn.flipX},"flipX")},oa=function(){sn({flipY:!Nn.flipY},"flipY")},wa=function(Cr){Cr==null||Cr.preventDefault(),Cr==null||Cr.stopPropagation(),dt>0&&($n(!1),ln("prev"),kn==null||kn(dt-1,dt))},Ia=function(Cr){Cr==null||Cr.preventDefault(),Cr==null||Cr.stopPropagation(),dt({position:Ae||"absolute",inset:0}),et=Ae=>{const{iconCls:ue,motionDurationSlow:S,paddingXXS:G,marginXXS:J,prefixCls:C,colorTextLightSolid:E}=Ae;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:E,background:new Tt.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${S}`,[`.${C}-mask-info`]:Object.assign(Object.assign({},dn.vS),{padding:`0 ${(0,Yt.bf)(G)}`,[ue]:{marginInlineEnd:J,svg:{verticalAlign:"baseline"}}})}},N=Ae=>{const{previewCls:ue,modalMaskBg:S,paddingSM:G,marginXL:J,margin:C,paddingLG:E,previewOperationColorDisabled:F,previewOperationHoverColor:W,motionDurationSlow:ne,iconCls:te,colorTextLightSolid:le}=Ae,V=new Tt.C(S).setAlpha(.1),Oe=V.clone().setAlpha(.2);return{[`${ue}-footer`]:{position:"fixed",bottom:J,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ae.previewOperationColor},[`${ue}-progress`]:{marginBottom:C},[`${ue}-close`]:{position:"fixed",top:J,right:{_skip_check_:!0,value:J},display:"flex",color:le,backgroundColor:V.toRgbString(),borderRadius:"50%",padding:G,outline:0,border:0,cursor:"pointer",transition:`all ${ne}`,"&:hover":{backgroundColor:Oe.toRgbString()},[`& > ${te}`]:{fontSize:Ae.previewOperationSize}},[`${ue}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Yt.bf)(E)}`,backgroundColor:V.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:G,padding:G,cursor:"pointer",transition:`all ${ne}`,userSelect:"none",[`&:not(${ue}-operations-operation-disabled):hover > ${te}`]:{color:W},"&-disabled":{color:F,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${te}`]:{fontSize:Ae.previewOperationSize}}}}},Pe=Ae=>{const{modalMaskBg:ue,iconCls:S,previewOperationColorDisabled:G,previewCls:J,zIndexPopup:C,motionDurationSlow:E}=Ae,F=new Tt.C(ue).setAlpha(.1),W=F.clone().setAlpha(.2);return{[`${J}-switch-left, ${J}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ae.calc(C).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:Ae.imagePreviewSwitchSize,height:Ae.imagePreviewSwitchSize,marginTop:Ae.calc(Ae.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Ae.previewOperationColor,background:F.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${E}`,userSelect:"none","&:hover":{background:W.toRgbString()},["&-disabled"]:{"&, &:hover":{color:G,background:"transparent",cursor:"not-allowed",[`> ${S}`]:{cursor:"not-allowed"}}},[`> ${S}`]:{fontSize:Ae.previewOperationSize}},[`${J}-switch-left`]:{insetInlineStart:Ae.marginSM},[`${J}-switch-right`]:{insetInlineEnd:Ae.marginSM}}},De=Ae=>{const{motionEaseOut:ue,previewCls:S,motionDurationSlow:G,componentCls:J}=Ae;return[{[`${J}-preview-root`]:{[S]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${S}-body`]:Object.assign(Object.assign({},vt()),{overflow:"hidden"}),[`${S}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${G} ${ue} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},vt()),{transition:`transform ${G} ${ue} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${S}-moving`]:{[`${S}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${J}-preview-root`]:{[`${S}-wrap`]:{zIndex:Ae.zIndexPopup}}},{[`${J}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ae.calc(Ae.zIndexPopup).add(1).equal({unit:!1})},"&":[N(Ae),Pe(Ae)]}]},ge=Ae=>{const{componentCls:ue}=Ae;return{[ue]:{position:"relative",display:"inline-block",[`${ue}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ue}-img-placeholder`]:{backgroundColor:Ae.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ue}-mask`]:Object.assign({},et(Ae)),[`${ue}-mask:hover`]:{opacity:1},[`${ue}-placeholder`]:Object.assign({},vt())}}},rt=Ae=>{const{previewCls:ue}=Ae;return{[`${ue}-root`]:(0,Ft._y)(Ae,"zoom"),["&"]:(0,un.J$)(Ae,!0)}},Je=Ae=>({zIndexPopup:Ae.zIndexPopupBase+80,previewOperationColor:new Tt.C(Ae.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Tt.C(Ae.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Tt.C(Ae.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ae.fontSizeIcon*1.5});var Re=(0,ve.I$)("Image",Ae=>{const ue=`${Ae.componentCls}-preview`,S=(0,Ge.TS)(Ae,{previewCls:ue,modalMaskBg:new Tt.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ae.controlHeightLG});return[ge(S),De(S),(0,Ut.QA)((0,Ge.TS)(S,{componentCls:ue})),rt(S)]},Je),Ln=function(Ae,ue){var S={};for(var G in Ae)Object.prototype.hasOwnProperty.call(Ae,G)&&ue.indexOf(G)<0&&(S[G]=Ae[G]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,G=Object.getOwnPropertySymbols(Ae);J{var{previewPrefixCls:ue,preview:S}=Ae,G=Ln(Ae,["previewPrefixCls","preview"]);const{getPrefixCls:J}=i.useContext(Qe.E_),C=J("image",ue),E=`${C}-preview`,F=J(),W=(0,_t.Z)(C),[ne,te]=Re(C,W),[le]=(0,Ve.Cn)("ImagePreview",typeof S=="object"?S.zIndex:void 0),V=i.useMemo(()=>{var Oe;if(S===!1)return S;const Ie=typeof S=="object"?S:{},at=l()(te,W,(Oe=Ie.rootClassName)!==null&&Oe!==void 0?Oe:"");return Object.assign(Object.assign({},Ie),{transitionName:(0,Be.m)(F,"zoom",Ie.transitionName),maskTransitionName:(0,Be.m)(F,"fade",Ie.maskTransitionName),rootClassName:at,zIndex:le})},[S]);return ne(i.createElement(Ee.PreviewGroup,Object.assign({preview:V,previewPrefixCls:E,icons:zn},G)))},Wn=function(Ae,ue){var S={};for(var G in Ae)Object.prototype.hasOwnProperty.call(Ae,G)&&ue.indexOf(G)<0&&(S[G]=Ae[G]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,G=Object.getOwnPropertySymbols(Ae);J{const{prefixCls:ue,preview:S,className:G,rootClassName:J,style:C}=Ae,E=Wn(Ae,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:F,locale:W=St.Z,getPopupContainer:ne,image:te}=i.useContext(Qe.E_),le=F("image",ue),V=F(),Oe=W.Image||St.Z.Image,Ie=(0,_t.Z)(le),[at,dt]=Re(le,Ie),ht=l()(J,dt,Ie),Gt=l()(G,dt,te==null?void 0:te.className),[en]=(0,Ve.Cn)("ImagePreview",typeof S=="object"?S.zIndex:void 0),Ht=i.useMemo(()=>{if(S===!1)return S;const Qt=typeof S=="object"?S:{},{getContainer:kt}=Qt,Et=Wn(Qt,["getContainer"]);return Object.assign(Object.assign({mask:i.createElement("div",{className:`${le}-mask-info`},i.createElement(w.Z,null),Oe==null?void 0:Oe.preview),icons:zn},Et),{getContainer:kt||ne,transitionName:(0,Be.m)(V,"zoom",Qt.transitionName),maskTransitionName:(0,Be.m)(V,"fade",Qt.maskTransitionName),zIndex:en})},[S,Oe]),ct=Object.assign(Object.assign({},te==null?void 0:te.style),C);return at(i.createElement(Ee,Object.assign({prefixCls:le,preview:Ht,rootClassName:ht,className:Gt,style:ct},E)))};Gn.PreviewGroup=Mn;var br=Gn},15078:function(Zt,xe,a){"use strict";a.r(xe),a.d(xe,{Affix:function(){return i.Z},Alert:function(){return w.Z},Anchor:function(){return an},App:function(){return We},AutoComplete:function(){return Ve},Avatar:function(){return Be.C},BackTop:function(){return st},Badge:function(){return Ct.Z},Breadcrumb:function(){return Kt.Z},Button:function(){return $t.ZP},Calendar:function(){return Ge},Card:function(){return vt.Z},Carousel:function(){return ar},Cascader:function(){return er.Z},Checkbox:function(){return dr.Z},Col:function(){return Yr.Z},Collapse:function(){return Ka},ColorPicker:function(){return us},ConfigProvider:function(){return ds.ZP},DatePicker:function(){return fs.default},Descriptions:function(){return Gi.Z},Divider:function(){return Ei.Z},Drawer:function(){return vs.Z},Dropdown:function(){return Qi.Z},Empty:function(){return ms.Z},Flex:function(){return Es},FloatButton:function(){return Vs},Form:function(){return ks.Z},Grid:function(){return Us.ZP},Image:function(){return Ks.Z},Input:function(){return io.Z},InputNumber:function(){return Bi.Z},Layout:function(){return Ys.Z},List:function(){return Xs.Z},Mentions:function(){return jr},Menu:function(){return Zr.Z},Modal:function(){return Ea.Z},Pagination:function(){return ja.Z},Popconfirm:function(){return ho.Z},Popover:function(){return qo.Z},Progress:function(){return ko.Z},QRCode:function(){return eu},Radio:function(){return tu.ZP},Rate:function(){return nu.Z},Result:function(){return ru.ZP},Row:function(){return au.Z},Segmented:function(){return ou.Z},Select:function(){return Vt.default},Skeleton:function(){return iu.Z},Slider:function(){return lu.Z},Space:function(){return su.Z},Spin:function(){return _n.Z},Statistic:function(){return cu.Z},Steps:function(){return uu.Z},Switch:function(){return du.Z},Table:function(){return fu.Z},Tabs:function(){return vu.Z},Tag:function(){return mu.Z},TimePicker:function(){return gu.Z},Timeline:function(){return Zu},Tooltip:function(){return al.Z},Tour:function(){return td},Transfer:function(){return Zd},Tree:function(){return Id.Z},TreeSelect:function(){return $d.Z},Typography:function(){return Rd.Z},Upload:function(){return Md.Z},Watermark:function(){return Kd},message:function(){return ia.ZP},notification:function(){return Ba.Z},theme:function(){return hu.Z},version:function(){return Nd.Z}});var i=a(58359),w=a(38727),I=a(1788),l=a(50959),k=a(84875),Z=a.n(k),ae=a(96771),Q=a(10886),K=a(59005),ce=a(68617),pe=a(31594),x=a(10254),Ye=l.createContext(void 0),se=t=>{const{href:e,title:o,prefixCls:s,children:r,className:m,target:f,replace:g}=t,v=l.useContext(Ye),{registerLink:h,unregisterLink:p,scrollTo:b,onClick:R,activeLink:X,direction:L}=v||{};l.useEffect(()=>(h==null||h(e),()=>{p==null||p(e)}),[e]);const U=Ke=>{g&&(Ke.preventDefault(),window.location.replace(e)),R==null||R(Ke,{title:o,href:e}),b==null||b(e)},{getPrefixCls:ee}=l.useContext(pe.E_),Se=ee("anchor",s),we=X===e,Ce=Z()(`${Se}-link`,m,{[`${Se}-link-active`]:we}),Ne=Z()(`${Se}-link-title`,{[`${Se}-link-title-active`]:we});return l.createElement("div",{className:Ce},l.createElement("a",{className:Ne,href:e,title:typeof o=="string"?o:"",target:f,onClick:U},o),L!=="horizontal"?r:null)},H=a(60076),it=a(6301),At=a(81501),ke=a(90467);const ut=t=>{const{componentCls:e,holderOffsetBlock:o,motionDurationSlow:s,lineWidthBold:r,colorPrimary:m,lineType:f,colorSplit:g,calc:v}=t;return{[`${e}-wrapper`]:{marginBlockStart:v(o).mul(-1).equal(),paddingBlockStart:o,[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"relative",paddingInlineStart:r,[`${e}-link`]:{paddingBlock:t.linkPaddingBlock,paddingInline:`${(0,H.bf)(t.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},it.vS),{position:"relative",display:"block",marginBlockEnd:t.anchorTitleBlock,color:t.colorText,transition:`all ${t.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${e}-link-title`]:{color:t.colorPrimary},[`${e}-link`]:{paddingBlock:t.anchorPaddingBlockSecondary}}}),[`&:not(${e}-wrapper-horizontal)`]:{[e]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,H.bf)(r)} ${f} ${g}`,content:'" "'},[`${e}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${s} ease-in-out`,width:r,backgroundColor:m,[`&${e}-ink-visible`]:{display:"inline-block"}}}},[`${e}-fixed ${e}-ink ${e}-ink`]:{display:"none"}}}},B=t=>{const{componentCls:e,motionDurationSlow:o,lineWidthBold:s,colorPrimary:r}=t;return{[`${e}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,content:'" "'},[e]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${e}-link:first-of-type`]:{paddingInline:0},[`${e}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:s,backgroundColor:r}}}}},tr=t=>({linkPaddingBlock:t.paddingXXS,linkPaddingInlineStart:t.padding});var mn=(0,At.I$)("Anchor",t=>{const{fontSize:e,fontSizeLG:o,paddingXXS:s,calc:r}=t,m=(0,ke.TS)(t,{holderOffsetBlock:s,anchorPaddingBlockSecondary:r(s).div(2).equal(),anchorTitleBlock:r(e).div(14).mul(3).equal(),anchorBallSize:r(o).div(2).equal()});return[ut(m),B(m)]},tr);function jn(){return window}function bn(t,e){if(!t.getClientRects().length)return 0;const o=t.getBoundingClientRect();return o.width||o.height?e===window?(e=t.ownerDocument.documentElement,o.top-e.clientTop):o.top-e.getBoundingClientRect().top:o.top}const qt=/#([\S ]+)$/;var Ue=t=>{var e;const{rootClassName:o,prefixCls:s,className:r,style:m,offsetTop:f,affix:g=!0,showInkInFixed:v=!1,children:h,items:p,direction:b="vertical",bounds:R,targetOffset:X,onClick:L,onChange:U,getContainer:ee,getCurrentAnchor:Se,replace:we}=t,[Ce,Ne]=l.useState([]),[Ke,wt]=l.useState(null),gt=l.useRef(Ke),Bt=l.useRef(null),zt=l.useRef(null),Sn=l.useRef(!1),{direction:gr,anchor:Dn,getTargetContainer:pr,getPrefixCls:lr}=l.useContext(pe.E_),or=lr("anchor",s),Ir=(0,x.Z)(or),[$r,Sr]=mn(or,Ir),kr=(e=ee!=null?ee:pr)!==null&&e!==void 0?e:jn,Rr=JSON.stringify(Ce),Vr=(0,ae.zX)(Pr=>{Ce.includes(Pr)||Ne(Zn=>[].concat((0,I.Z)(Zn),[Pr]))}),Dr=(0,ae.zX)(Pr=>{Ce.includes(Pr)&&Ne(Zn=>Zn.filter(sr=>sr!==Pr))}),ma=()=>{var Pr;const Zn=(Pr=Bt.current)===null||Pr===void 0?void 0:Pr.querySelector(`.${or}-link-title-active`);if(Zn&&zt.current){const{style:sr}=zt.current,cr=b==="horizontal";sr.top=cr?"":`${Zn.offsetTop+Zn.clientHeight/2}px`,sr.height=cr?"":`${Zn.clientHeight}px`,sr.left=cr?`${Zn.offsetLeft}px`:"",sr.width=cr?`${Zn.clientWidth}px`:"",cr&&(0,Q.Z)(Zn,{scrollMode:"if-needed",block:"nearest"})}},Wr=function(Pr){let Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const cr=[],ca=kr();return Pr.forEach(xa=>{const Sa=qt.exec(xa==null?void 0:xa.toString());if(!Sa)return;const Va=document.getElementById(Sa[1]);if(Va){const eo=bn(Va,ca);eoVa.top>Sa.top?Va:Sa).link:""},ra=(0,ae.zX)(Pr=>{if(gt.current===Pr)return;const Zn=typeof Se=="function"?Se(Pr):Pr;wt(Zn),gt.current=Zn,U==null||U(Pr)}),ga=l.useCallback(()=>{if(Sn.current)return;const Pr=Wr(Ce,X!==void 0?X:f||0,R);ra(Pr)},[Rr,X,f]),va=l.useCallback(Pr=>{ra(Pr);const Zn=qt.exec(Pr);if(!Zn)return;const sr=document.getElementById(Zn[1]);if(!sr)return;const cr=kr(),ca=(0,K.Z)(cr,!0),xa=bn(sr,cr);let Sa=ca+xa;Sa-=X!==void 0?X:f||0,Sn.current=!0,(0,ce.Z)(Sa,{getContainer:kr,callback(){Sn.current=!1}})},[X,f]),la=Z()(Sr,Ir,o,`${or}-wrapper`,{[`${or}-wrapper-horizontal`]:b==="horizontal",[`${or}-rtl`]:gr==="rtl"},r,Dn==null?void 0:Dn.className),$a=Z()(or,{[`${or}-fixed`]:!g&&!v}),Ca=Z()(`${or}-ink`,{[`${or}-ink-visible`]:Ke}),pa=Object.assign(Object.assign({maxHeight:f?`calc(100vh - ${f}px)`:"100vh"},Dn==null?void 0:Dn.style),m),Br=Pr=>Array.isArray(Pr)?Pr.map(Zn=>l.createElement(se,Object.assign({replace:we},Zn,{key:Zn.key}),b==="vertical"&&Br(Zn.children))):null,Fn=l.createElement("div",{ref:Bt,className:la,style:pa},l.createElement("div",{className:$a},l.createElement("span",{className:Ca,ref:zt}),"items"in t?Br(p):h));l.useEffect(()=>{const Pr=kr();return ga(),Pr==null||Pr.addEventListener("scroll",ga),()=>{Pr==null||Pr.removeEventListener("scroll",ga)}},[Rr]),l.useEffect(()=>{typeof Se=="function"&&ra(Se(gt.current||""))},[Se]),l.useEffect(()=>{ma()},[b,Se,Rr,Ke]);const mr=l.useMemo(()=>({registerLink:Vr,unregisterLink:Dr,scrollTo:va,activeLink:Ke,onClick:L,direction:b}),[Ke,L,va,b]);return $r(l.createElement(Ye.Provider,{value:mr},g?l.createElement(i.Z,{offsetTop:f,target:kr},Fn):Fn))};const Wt=Ue;Wt.Link=se;var an=Wt,pt=a(44655),tt=a(36864),tn=a(7707);const En=l.createContext({});var On=l.createContext({message:{},notification:{},modal:{}});const Te=t=>{const{componentCls:e,colorText:o,fontSize:s,lineHeight:r,fontFamily:m}=t;return{[e]:{color:o,fontSize:s,lineHeight:r,fontFamily:m}}},fn=()=>({});var T=(0,At.I$)("App",Te,fn);const A=()=>l.useContext(On),Le=t=>{const{prefixCls:e,children:o,className:s,rootClassName:r,message:m,notification:f,style:g,component:v="div"}=t,{getPrefixCls:h}=(0,l.useContext)(pe.E_),p=h("app",e),[b,R]=T(p),X=Z()(R,p,s,r),L=(0,l.useContext)(En),U=l.useMemo(()=>({message:Object.assign(Object.assign({},L.message),m),notification:Object.assign(Object.assign({},L.notification),f)}),[m,f,L.message,L.notification]),[ee,Se]=(0,pt.Z)(U.message),[we,Ce]=(0,tn.Z)(U.notification),[Ne,Ke]=(0,tt.Z)(),wt=l.useMemo(()=>({message:ee,notification:we,modal:Ne}),[ee,we,Ne]),gt=v===!1?l.Fragment:v,Bt={className:X,style:g};return b(l.createElement(On.Provider,{value:wt},l.createElement(En.Provider,{value:U},l.createElement(gt,Object.assign({},v===!1?void 0:Bt),Ke,Se,Ce,o))))};Le.useApp=A;var We=Le,qe=a(13763),yt=a(87017),me=a(97960),It=a(94914),Vt=a(32413),mt=a(22365);const{Option:Dt}=Vt.default;function Mt(t){return t&&t.type&&(t.type.isSelectOption||t.type.isSelectOptGroup)}const Lt=(t,e)=>{var o;const{prefixCls:s,className:r,popupClassName:m,dropdownClassName:f,children:g,dataSource:v}=t,h=(0,qe.Z)(g);let p;h.length===1&&(0,It.l$)(h[0])&&!Mt(h[0])&&([p]=h);const b=p?()=>p:void 0;let R;h.length&&Mt(h[0])?R=g:R=v?v.map(ee=>{if((0,It.l$)(ee))return ee;switch(typeof ee){case"string":return l.createElement(Dt,{key:ee,value:ee},ee);case"object":{const{value:Se}=ee;return l.createElement(Dt,{key:Se,value:Se},ee.text)}default:return}}):[];const{getPrefixCls:X}=l.useContext(pe.E_),L=X("select",s),[U]=(0,mt.Cn)("SelectLike",(o=t.dropdownStyle)===null||o===void 0?void 0:o.zIndex);return l.createElement(Vt.default,Object.assign({ref:e,suffixIcon:null},(0,yt.Z)(t,["dataSource","dropdownClassName"]),{prefixCls:L,popupClassName:m||f,dropdownStyle:Object.assign(Object.assign({},t.dropdownStyle),{zIndex:U}),className:Z()(`${L}-auto-complete`,r),mode:Vt.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:b}),R)},Pn=l.forwardRef(Lt),Ee=(0,me.Z)(Pn);Pn.Option=Dt,Pn._InternalPanelDoNotUseOrYouWillBeFired=Ee;var Ve=Pn,Be=a(21757),Qe=a(32702),St=a(10091),bt=a(78304);const P=t=>{const{componentCls:e,backTopFontSize:o,backTopSize:s,zIndexPopup:r}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"fixed",insetInlineEnd:t.backTopInlineEnd,insetBlockEnd:t.backTopBlockEnd,zIndex:r,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${e}-content`]:{width:s,height:s,overflow:"hidden",color:t.backTopColor,textAlign:"center",backgroundColor:t.backTopBackground,borderRadius:s,transition:`all ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.backTopHoverBackground,transition:`all ${t.motionDurationMid}`}},[`${e}-icon`]:{fontSize:o,lineHeight:(0,H.bf)(s)}})}},de=t=>{const{componentCls:e,screenMD:o,screenXS:s,backTopInlineEndMD:r,backTopInlineEndXS:m}=t;return{[`@media (max-width: ${(0,H.bf)(o)})`]:{[e]:{insetInlineEnd:r}},[`@media (max-width: ${(0,H.bf)(s)})`]:{[e]:{insetInlineEnd:m}}}},ye=t=>({zIndexPopup:t.zIndexBase+10});var He=(0,At.I$)("BackTop",t=>{const{fontSizeHeading3:e,colorTextDescription:o,colorTextLightSolid:s,colorText:r,controlHeightLG:m,calc:f}=t,g=(0,ke.TS)(t,{backTopBackground:o,backTopColor:s,backTopHoverBackground:r,backTopFontSize:e,backTopSize:m,backTopBlockEnd:f(m).mul(1.25).equal(),backTopInlineEnd:f(m).mul(2.5).equal(),backTopInlineEndMD:f(m).mul(1.5).equal(),backTopInlineEndXS:f(m).mul(.5).equal()});return[P(g),de(g)]},ye),st=t=>{const{prefixCls:e,className:o,rootClassName:s,visibilityHeight:r=400,target:m,onClick:f,duration:g=450}=t,[v,h]=l.useState(r===0),p=l.useRef(null),b=()=>p.current&&p.current.ownerDocument?p.current.ownerDocument:window,R=(0,bt.Z)(gt=>{const Bt=(0,K.Z)(gt.target,!0);h(Bt>=r)});l.useEffect(()=>{const Bt=(m||b)();return R({target:Bt}),Bt==null||Bt.addEventListener("scroll",R),()=>{R.cancel(),Bt==null||Bt.removeEventListener("scroll",R)}},[m]);const X=gt=>{(0,ce.Z)(0,{getContainer:m||b,duration:g}),f==null||f(gt)},{getPrefixCls:L,direction:U}=l.useContext(pe.E_),ee=L("back-top",e),Se=L(),[we,Ce]=He(ee),Ne=Z()(Ce,ee,{[`${ee}-rtl`]:U==="rtl"},o,s),Ke=(0,yt.Z)(t,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),wt=l.createElement("div",{className:`${ee}-content`},l.createElement("div",{className:`${ee}-icon`},l.createElement(Qe.Z,null)));return we(l.createElement("div",Object.assign({},Ke,{className:Ne,onClick:X,ref:p}),l.createElement(St.ZP,{visible:v,motionName:`${Se}-fade`},gt=>{let{className:Bt}=gt;return(0,It.Tm)(t.children||wt,zt=>{let{className:Sn}=zt;return{className:Z()(Bt,Sn)}})})))},Ct=a(71656),Kt=a(683),$t=a(47100),Rt=a(39237),lt=a(31959),nt=a(65589),Fe=a(45449),je=a(1415),fe=a(16803),Ze=a(40896);const $=10,j=20;function Y(t){const{fullscreen:e,validRange:o,generateConfig:s,locale:r,prefixCls:m,value:f,onChange:g,divRef:v}=t,h=s.getYear(f||s.getNow());let p=h-$,b=p+j;o&&(p=s.getYear(o[0]),b=s.getYear(o[1])+1);const R=r&&r.year==="\u5E74"?"\u5E74":"",X=[];for(let L=p;L{let U=s.setYear(f,L);if(o){const[ee,Se]=o,we=s.getYear(U),Ce=s.getMonth(U);we===s.getYear(Se)&&Ce>s.getMonth(Se)&&(U=s.setMonth(U,s.getMonth(Se))),we===s.getYear(ee)&&Cev.current})}function Me(t){const{prefixCls:e,fullscreen:o,validRange:s,value:r,generateConfig:m,locale:f,onChange:g,divRef:v}=t,h=m.getMonth(r||m.getNow());let p=0,b=11;if(s){const[L,U]=s,ee=m.getYear(r);m.getYear(U)===ee&&(b=m.getMonth(U)),m.getYear(L)===ee&&(p=m.getMonth(L))}const R=f.shortMonths||m.locale.getShortMonths(f.locale),X=[];for(let L=p;L<=b;L+=1)X.push({label:R[L],value:L});return l.createElement(Vt.default,{size:o?void 0:"small",className:`${e}-month-select`,value:h,options:X,onChange:L=>{g(m.setMonth(r,L))},getPopupContainer:()=>v.current})}function ze(t){const{prefixCls:e,locale:o,mode:s,fullscreen:r,onModeChange:m}=t;return l.createElement(fe.Z,{onChange:f=>{let{target:{value:g}}=f;m(g)},value:s,size:r?void 0:"small",className:`${e}-mode-switch`},l.createElement(Ze.Z,{value:"month"},o.month),l.createElement(Ze.Z,{value:"year"},o.year))}function ft(t){const{prefixCls:e,fullscreen:o,mode:s,onChange:r,onModeChange:m}=t,f=l.useRef(null),g=(0,l.useContext)(je.aM),v=(0,l.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]),h=Object.assign(Object.assign({},t),{fullscreen:o,divRef:f});return l.createElement("div",{className:`${e}-header`,ref:f},l.createElement(je.aM.Provider,{value:v},l.createElement(Y,Object.assign({},h,{onChange:p=>{r(p,"year")}})),s==="month"&&l.createElement(Me,Object.assign({},h,{onChange:p=>{r(p,"month")}}))),l.createElement(ze,Object.assign({},h,{onModeChange:m})))}var vn=ft,_t=a(58533),Yt=a(29176);const Tt=t=>{const{calendarCls:e,componentCls:o,fullBg:s,fullPanelBg:r,itemActiveBg:m}=t;return{[e]:Object.assign(Object.assign(Object.assign({},(0,Yt.kX)(t)),(0,it.Wf)(t)),{background:s,"&-rtl":{direction:"rtl"},[`${e}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${(0,H.bf)(t.paddingSM)} 0`,[`${e}-year-select`]:{minWidth:t.yearControlWidth},[`${e}-month-select`]:{minWidth:t.monthControlWidth,marginInlineStart:t.marginXS},[`${e}-mode-switch`]:{marginInlineStart:t.marginXS}}}),[`${e} ${o}-panel`]:{background:r,border:0,borderTop:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${(0,H.bf)(t.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${e}-mini`]:{borderRadius:t.borderRadiusLG,[`${e}-header`]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${(0,H.bf)(t.borderRadiusLG)} ${(0,H.bf)(t.borderRadiusLG)}`},[`${o}-content`]:{height:t.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${(0,H.bf)(t.weekHeight)}`}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${e}${e}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:s,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:t.paddingSM,paddingBottom:t.paddingXXS,lineHeight:`${(0,H.bf)(t.weekHeight)}`}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${e}-date`]:{background:t.controlItemBgHover}},[`${e}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${e}-date, ${e}-date-today`]:{background:m}},"&-selected, &-selected:hover":{[`${e}-date, ${e}-date-today`]:{[`${e}-date-value`]:{color:t.colorPrimary}}}},[`${e}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${(0,H.bf)(t.calc(t.marginXS).div(2).equal())}`,padding:`${(0,H.bf)(t.calc(t.paddingXS).div(2).equal())} ${(0,H.bf)(t.paddingXS)} 0`,border:0,borderTop:`${(0,H.bf)(t.lineWidthBold)} ${t.lineType} ${t.colorSplit}`,borderRadius:0,transition:`background ${t.motionDurationSlow}`,"&-value":{lineHeight:`${(0,H.bf)(t.dateValueHeight)}`,transition:`color ${t.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:t.dateContentHeight,overflowY:"auto",color:t.colorText,lineHeight:t.lineHeight,textAlign:"start"},"&-today":{borderColor:t.colorPrimary,[`${e}-date-value`]:{color:t.colorText}}}},[`@media only screen and (max-width: ${(0,H.bf)(t.screenXS)}) `]:{[`${e}`]:{[`${e}-header`]:{display:"block",[`${e}-year-select`]:{width:"50%"},[`${e}-month-select`]:{width:`calc(50% - ${(0,H.bf)(t.paddingXS)})`},[`${e}-mode-switch`]:{width:"100%",marginTop:t.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},Ut=t=>Object.assign({fullBg:t.colorBgContainer,fullPanelBg:t.colorBgContainer,itemActiveBg:t.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},(0,Yt.GM)(t));var dn=(0,At.I$)("Calendar",t=>{const e=`${t.componentCls}-calendar`,o=(0,ke.TS)(t,(0,Yt.vA)(t),{calendarCls:e,pickerCellInnerCls:`${t.componentCls}-cell-inner`,dateValueHeight:t.controlHeightSM,weekHeight:t.calc(t.controlHeightSM).mul(.75).equal(),dateContentHeight:t.calc(t.calc(t.fontHeightSM).add(t.marginXS)).mul(3).add(t.calc(t.lineWidth).mul(2)).equal()});return[Tt(o)]},Ut);function Ft(t){function e(m,f){return m&&f&&t.getYear(m)===t.getYear(f)}function o(m,f){return e(m,f)&&t.getMonth(m)===t.getMonth(f)}function s(m,f){return o(m,f)&&t.getDate(m)===t.getDate(f)}return m=>{const{prefixCls:f,className:g,rootClassName:v,style:h,dateFullCellRender:p,dateCellRender:b,monthFullCellRender:R,monthCellRender:X,cellRender:L,fullCellRender:U,headerRender:ee,value:Se,defaultValue:we,disabledDate:Ce,mode:Ne,validRange:Ke,fullscreen:wt=!0,onChange:gt,onPanelChange:Bt,onSelect:zt}=m,{getPrefixCls:Sn,direction:gr,calendar:Dn}=l.useContext(pe.E_),pr=Sn("picker",f),lr=`${pr}-calendar`,[or,Ir]=dn(pr,lr),$r=t.getNow(),[Sr,kr]=(0,nt.Z)(()=>Se||t.getNow(),{defaultValue:we,value:Se}),[Rr,Vr]=(0,nt.Z)("month",{value:Ne}),Dr=l.useMemo(()=>Rr==="year"?"month":"date",[Rr]),ma=l.useCallback(Fn=>(Ke?t.isAfter(Ke[0],Fn)||t.isAfter(Fn,Ke[1]):!1)||!!(Ce!=null&&Ce(Fn)),[Ce,Ke]),Wr=(Fn,mr)=>{Bt==null||Bt(Fn,mr)},ra=Fn=>{kr(Fn),s(Fn,Sr)||((Dr==="date"&&!o(Fn,Sr)||Dr==="month"&&!e(Fn,Sr))&&Wr(Fn,Rr),gt==null||gt(Fn))},ga=Fn=>{Vr(Fn),Wr(Sr,Fn)},va=(Fn,mr)=>{ra(Fn),zt==null||zt(Fn,{source:mr})},la=()=>{const{locale:Fn}=m,mr=Object.assign(Object.assign({},_t.Z),Fn);return mr.lang=Object.assign(Object.assign({},mr.lang),(Fn||{}).lang),mr},$a=l.useCallback((Fn,mr)=>U?U(Fn,mr):p?p(Fn):l.createElement("div",{className:Z()(`${pr}-cell-inner`,`${lr}-date`,{[`${lr}-date-today`]:s($r,Fn)})},l.createElement("div",{className:`${lr}-date-value`},String(t.getDate(Fn)).padStart(2,"0")),l.createElement("div",{className:`${lr}-date-content`},L?L(Fn,mr):b&&b(Fn))),[p,b,L,U]),Ca=l.useCallback((Fn,mr)=>{if(U)return U(Fn,mr);if(R)return R(Fn);const Pr=mr.locale.shortMonths||t.locale.getShortMonths(mr.locale.locale);return l.createElement("div",{className:Z()(`${pr}-cell-inner`,`${lr}-date`,{[`${lr}-date-today`]:o($r,Fn)})},l.createElement("div",{className:`${lr}-date-value`},Pr[t.getMonth(Fn)]),l.createElement("div",{className:`${lr}-date-content`},L?L(Fn,mr):X&&X(Fn)))},[R,X,L,U]),[pa]=(0,Fe.Z)("Calendar",la),Br=(Fn,mr)=>{if(mr.type==="date")return $a(Fn,mr);if(mr.type==="month")return Ca(Fn,Object.assign(Object.assign({},mr),{locale:pa==null?void 0:pa.lang}))};return or(l.createElement("div",{className:Z()(lr,{[`${lr}-full`]:wt,[`${lr}-mini`]:!wt,[`${lr}-rtl`]:gr==="rtl"},Dn==null?void 0:Dn.className,g,v,Ir),style:Object.assign(Object.assign({},Dn==null?void 0:Dn.style),h)},ee?ee({value:Sr,type:Rr,onChange:Fn=>{va(Fn,"customize")},onTypeChange:ga}):l.createElement(vn,{prefixCls:lr,value:Sr,generateConfig:t,mode:Rr,fullscreen:wt,locale:pa==null?void 0:pa.lang,validRange:Ke,onChange:va,onModeChange:ga}),l.createElement(lt.N4,{value:Sr,prefixCls:pr,locale:pa==null?void 0:pa.lang,generateConfig:t,cellRender:Br,onSelect:Fn=>{va(Fn,Dr)},mode:Dr,picker:Dr,disabledDate:ma,hideHeader:!0})))}}var un=Ft;const ve=un(Rt.Z);ve.generateCalendar=un;var Ge=ve,vt=a(50304),et=a(38126),N=a(33346),Pe=a(47920),De=a(77254),ge=a(95325),rt=a(44906),Je=a(41399),Re=a(73273),Ln=a(40727),zn=a(10570),on={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Mn=on,Wn=a(42909);function Gn(t,e,o){return Math.max(e,Math.min(t,o))}var br=function(e){var o=["onTouchStart","onTouchMove","onWheel"];o.includes(e._reactName)||e.preventDefault()},Ae=function(e){for(var o=[],s=S(e),r=G(e),m=s;m0?1:0):0},C=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},E=function(e){return e&&e.offsetWidth||0},F=function(e){return e&&e.offsetHeight||0},W=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,r,m,f;return s=e.startX-e.curX,r=e.startY-e.curY,m=Math.atan2(r,s),f=Math.round(m*180/Math.PI),f<0&&(f=360-Math.abs(f)),f<=45&&f>=0||f<=360&&f>=315?"left":f>=135&&f<=225?"right":o===!0?f>=35&&f<=135?"up":"down":"vertical"},ne=function(e){var o=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(o=!1),o},te=function(e,o){var s={};return o.forEach(function(r){return s[r]=e[r]}),s},le=function(e){var o=l.Children.count(e.children),s=e.listRef,r=Math.ceil(E(s)),m=e.trackRef&&e.trackRef.node,f=Math.ceil(E(m)),g;if(e.vertical)g=r;else{var v=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(v*=r/100),g=Math.ceil((r-v)/e.slidesToShow)}var h=s&&F(s.querySelector('[data-index="0"]')),p=h*e.slidesToShow,b=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(b=o-1-e.initialSlide);var R=e.lazyLoadedList||[],X=Ae((0,N.Z)((0,N.Z)({},e),{},{currentSlide:b,lazyLoadedList:R}));R=R.concat(X);var L={slideCount:o,slideWidth:g,listWidth:r,trackWidth:f,currentSlide:b,slideHeight:h,listHeight:p,lazyLoadedList:R};return e.autoplaying===null&&e.autoplay&&(L.autoplaying="playing"),L},V=function(e){var o=e.waitForAnimate,s=e.animating,r=e.fade,m=e.infinite,f=e.index,g=e.slideCount,v=e.lazyLoad,h=e.currentSlide,p=e.centerMode,b=e.slidesToScroll,R=e.slidesToShow,X=e.useCSS,L=e.lazyLoadedList;if(o&&s)return{};var U=f,ee,Se,we,Ce={},Ne={},Ke=m?f:Gn(f,0,g-1);if(r){if(!m&&(f<0||f>=g))return{};f<0?U=f+g:f>=g&&(U=f-g),v&&L.indexOf(U)<0&&(L=L.concat(U)),Ce={animating:!0,currentSlide:U,lazyLoadedList:L,targetSlide:U},Ne={animating:!1,targetSlide:U}}else ee=U,U<0?(ee=U+g,m?g%b!==0&&(ee=g-g%b):ee=0):!ne(e)&&U>h?U=ee=h:p&&U>=g?(U=m?g:g-1,ee=m?0:g-1):U>=g&&(ee=U-g,m?g%b!==0&&(ee=0):ee=g-R),!m&&U+R>=g&&(ee=g-R),Se=Et((0,N.Z)((0,N.Z)({},e),{},{slideIndex:U})),we=Et((0,N.Z)((0,N.Z)({},e),{},{slideIndex:ee})),m||(Se===we&&(U=ee),Se=we),v&&(L=L.concat(Ae((0,N.Z)((0,N.Z)({},e),{},{currentSlide:U})))),X?(Ce={animating:!0,currentSlide:ee,trackStyle:kt((0,N.Z)((0,N.Z)({},e),{},{left:Se})),lazyLoadedList:L,targetSlide:Ke},Ne={animating:!1,currentSlide:ee,trackStyle:Qt((0,N.Z)((0,N.Z)({},e),{},{left:we})),swipeLeft:null,targetSlide:Ke}):Ce={currentSlide:ee,trackStyle:Qt((0,N.Z)((0,N.Z)({},e),{},{left:we})),lazyLoadedList:L,targetSlide:Ke};return{state:Ce,nextState:Ne}},Oe=function(e,o){var s,r,m,f,g,v=e.slidesToScroll,h=e.slidesToShow,p=e.slideCount,b=e.currentSlide,R=e.targetSlide,X=e.lazyLoad,L=e.infinite;if(f=p%v!==0,s=f?0:(p-b)%v,o.message==="previous")m=s===0?v:h-s,g=b-m,X&&!L&&(r=b-m,g=r===-1?p-1:r),L||(g=R-v);else if(o.message==="next")m=s===0?v:s,g=b+m,X&&!L&&(g=(b+v)%p+s),L||(g=R+v);else if(o.message==="dots")g=o.index*o.slidesToScroll;else if(o.message==="children"){if(g=o.index,L){var U=gn((0,N.Z)((0,N.Z)({},e),{},{targetSlide:g}));g>o.currentSlide&&U==="left"?g=g-p:g10)return{scrolling:!0};g&&(we.swipeLength=zt);var Sn=(v?-1:1)*(we.curX>we.startX?1:-1);g&&(Sn=we.curY>we.startY?1:-1);var gr=Math.ceil(U/ee),Dn=W(o.touchObject,g),pr=we.swipeLength;return Se||(h===0&&(Dn==="right"||Dn==="down")||h+1>=gr&&(Dn==="left"||Dn==="up")||!ne(o)&&(Dn==="left"||Dn==="up"))&&(pr=we.swipeLength*p,b===!1&&R&&(R(Dn),gt.edgeDragged=!0)),!X&&Ce&&(Ce(Dn),gt.swiped=!0),m?wt=Bt+pr*(Ne/Ke)*Sn:v?wt=Bt-pr*Sn:wt=Bt+pr*Sn,g&&(wt=Bt+pr*Sn),gt=(0,N.Z)((0,N.Z)({},gt),{},{touchObject:we,swipeLeft:wt,trackStyle:Qt((0,N.Z)((0,N.Z)({},o),{},{left:wt}))}),Math.abs(we.curX-we.startX)10&&(gt.swiping=!0,br(e)),gt}},ht=function(e,o){var s=o.dragging,r=o.swipe,m=o.touchObject,f=o.listWidth,g=o.touchThreshold,v=o.verticalSwiping,h=o.listHeight,p=o.swipeToSlide,b=o.scrolling,R=o.onSwipe,X=o.targetSlide,L=o.currentSlide,U=o.infinite;if(!s)return r&&br(e),{};var ee=v?h/g:f/g,Se=W(m,v),we={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(b||!m.swipeLength)return we;if(m.swipeLength>ee){br(e),R&&R(Se);var Ce,Ne,Ke=U?L:X;switch(Se){case"left":case"up":Ne=Ke+Ht(o),Ce=p?en(o,Ne):Ne,we.currentDirection=0;break;case"right":case"down":Ne=Ke-Ht(o),Ce=p?en(o,Ne):Ne,we.currentDirection=1;break;default:Ce=Ke}we.triggerSlideHandler=Ce}else{var wt=Et(o);we.trackStyle=kt((0,N.Z)((0,N.Z)({},o),{},{left:wt}))}return we},Gt=function(e){for(var o=e.infinite?e.slideCount*2:e.slideCount,s=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,m=[];ss[s.length-1])o=s[s.length-1];else for(var m in s){if(oe.swipeLeft*-1)return s=v,!1}else if(v.offsetLeft-o+E(v)/2>e.swipeLeft*-1)return s=v,!1;return!0}),!s)return 0;var f=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide,g=Math.abs(s.dataset.index-f)||1;return g}else return e.slidesToScroll},ct=function(e,o){return o.reduce(function(s,r){return s&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},Qt=function(e){ct(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o,s,r=e.slideCount+2*e.slidesToShow;e.vertical?s=r*e.slideHeight:o=xt(e)*e.slideWidth;var m={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var f=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",g=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",v=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";m=(0,N.Z)((0,N.Z)({},m),{},{WebkitTransform:f,transform:g,msTransform:v})}else e.vertical?m.top=e.left:m.left=e.left;return e.fade&&(m={opacity:1}),o&&(m.width=o),s&&(m.height=s),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?m.marginTop=e.left+"px":m.marginLeft=e.left+"px"),m},kt=function(e){ct(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var o=Qt(e);return e.useTransform?(o.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,o.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?o.transition="top "+e.speed+"ms "+e.cssEase:o.transition="left "+e.speed+"ms "+e.cssEase,o},Et=function(e){if(e.unslick)return 0;ct(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var o=e.slideIndex,s=e.trackRef,r=e.infinite,m=e.centerMode,f=e.slideCount,g=e.slidesToShow,v=e.slidesToScroll,h=e.slideWidth,p=e.listWidth,b=e.variableWidth,R=e.slideHeight,X=e.fade,L=e.vertical,U=0,ee,Se,we=0;if(X||e.slideCount===1)return 0;var Ce=0;if(r?(Ce=-jt(e),f%v!==0&&o+v>f&&(Ce=-(o>f?g-(o-f):f%v)),m&&(Ce+=parseInt(g/2))):(f%v!==0&&o+v>f&&(Ce=g-f%v),m&&(Ce=parseInt(g/2))),U=Ce*h,we=Ce*R,L?ee=o*R*-1+we:ee=o*h*-1+U,b===!0){var Ne,Ke=s&&s.node;if(Ne=o+jt(e),Se=Ke&&Ke.childNodes[Ne],ee=Se?Se.offsetLeft*-1:0,m===!0){Ne=r?o+jt(e):o,Se=Ke&&Ke.children[Ne],ee=0;for(var wt=0;wte.currentSlide?e.targetSlide>e.currentSlide+Bn(e)?"left":"right":e.targetSlide0&&(f+=1),r&&o%2===0&&(f+=1),f}return r?0:o-1},Vn=function(e){var o=e.slidesToShow,s=e.centerMode,r=e.rtl,m=e.centerPadding;if(s){var f=(o-1)/2+1;return parseInt(m)>0&&(f+=1),!r&&o%2===0&&(f+=1),f}return r?o-1:0},Qn=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},hn=function(e){var o,s,r,m,f;e.rtl?f=e.slideCount-1-e.index:f=e.index,r=f<0||f>=e.slideCount,e.centerMode?(m=Math.floor(e.slidesToShow/2),s=(f-e.currentSlide)%e.slideCount===0,f>e.currentSlide-m-1&&f<=e.currentSlide+m&&(o=!0)):o=e.currentSlide<=f&&f=e.slideCount?g=e.targetSlide-e.slideCount:g=e.targetSlide;var v=f===g;return{"slick-slide":!0,"slick-active":o,"slick-center":s,"slick-cloned":r,"slick-current":v}},qn=function(e){var o={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(o.width=e.slideWidth),e.fade&&(o.position="relative",e.vertical&&e.slideHeight?o.top=-e.index*parseInt(e.slideHeight):o.left=-e.index*parseInt(e.slideWidth),o.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(o.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),o},kn=function(e,o){return e.key+"-"+o},rr=function(e){var o,s=[],r=[],m=[],f=l.Children.count(e.children),g=S(e),v=G(e);return l.Children.forEach(e.children,function(h,p){var b,R={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?b=h:b=l.createElement("div",null);var X=qn((0,N.Z)((0,N.Z)({},e),{},{index:p})),L=b.props.className||"",U=hn((0,N.Z)((0,N.Z)({},e),{},{index:p}));if(s.push(l.cloneElement(b,{key:"original"+kn(b,p),"data-index":p,className:Z()(U,L),tabIndex:"-1","aria-hidden":!U["slick-active"],style:(0,N.Z)((0,N.Z)({outline:"none"},b.props.style||{}),X),onClick:function(we){b.props&&b.props.onClick&&b.props.onClick(we),e.focusOnSelect&&e.focusOnSelect(R)}})),e.infinite&&e.fade===!1){var ee=f-p;ee<=jt(e)&&f!==e.slidesToShow&&(o=-ee,o>=g&&(b=h),U=hn((0,N.Z)((0,N.Z)({},e),{},{index:o})),r.push(l.cloneElement(b,{key:"precloned"+kn(b,o),"data-index":o,tabIndex:"-1",className:Z()(U,L),"aria-hidden":!U["slick-active"],style:(0,N.Z)((0,N.Z)({},b.props.style||{}),X),onClick:function(we){b.props&&b.props.onClick&&b.props.onClick(we),e.focusOnSelect&&e.focusOnSelect(R)}}))),f!==e.slidesToShow&&(o=f+p,o=Ne&&R<=we:R===Ne}),wt={message:"dots",index:ee,slidesToScroll:h,currentSlide:R},gt=this.clickHandler.bind(this,wt);U=U.concat(l.createElement("li",{key:ee,className:Ke},l.cloneElement(this.props.customPaging(ee),{onClick:gt})))}return l.cloneElement(this.props.appendDots(U),(0,N.Z)({className:this.props.dotsClass},L))}}]),o}(l.PureComponent),ir=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"clickHandler",value:function(r,m){m&&m.preventDefault(),this.props.clickHandler(r,m)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-prev":!0},m=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(r["slick-disabled"]=!0,m=null);var f={key:"0","data-role":"none",className:Z()(r),style:{display:"block"},onClick:m},g={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.prevArrow?v=l.cloneElement(this.props.prevArrow,(0,N.Z)((0,N.Z)({},f),g)):v=l.createElement("button",(0,et.Z)({key:"0",type:"button"},f)," ","Previous"),v}}]),o}(l.PureComponent),ur=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"clickHandler",value:function(r,m){m&&m.preventDefault(),this.props.clickHandler(r,m)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-next":!0},m=this.clickHandler.bind(this,{message:"next"});ne(this.props)||(r["slick-disabled"]=!0,m=null);var f={key:"1","data-role":"none",className:Z()(r),style:{display:"block"},onClick:m},g={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.nextArrow?v=l.cloneElement(this.props.nextArrow,(0,N.Z)((0,N.Z)({},f),g)):v=l.createElement("button",(0,et.Z)({key:"1",type:"button"},f)," ","Next"),v}}]),o}(l.PureComponent),An=a(73023),In=["animating"],$n=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(s){var r;(0,Pe.Z)(this,o),r=e.call(this,s),(0,Re.Z)((0,ge.Z)(r),"listRefHandler",function(f){return r.list=f}),(0,Re.Z)((0,ge.Z)(r),"trackRefHandler",function(f){return r.track=f}),(0,Re.Z)((0,ge.Z)(r),"adaptHeight",function(){if(r.props.adaptiveHeight&&r.list){var f=r.list.querySelector('[data-index="'.concat(r.state.currentSlide,'"]'));r.list.style.height=F(f)+"px"}}),(0,Re.Z)((0,ge.Z)(r),"componentDidMount",function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var f=Ae((0,N.Z)((0,N.Z)({},r.props),r.state));f.length>0&&(r.setState(function(v){return{lazyLoadedList:v.lazyLoadedList.concat(f)}}),r.props.onLazyLoad&&r.props.onLazyLoad(f))}var g=(0,N.Z)({listRef:r.list,trackRef:r.track},r.props);r.updateState(g,!0,function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay("playing")}),r.props.lazyLoad==="progressive"&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new An.Z(function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout(function(){return r.onWindowResized()},r.props.speed))):r.onWindowResized()}),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(v){v.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,v.onblur=r.props.pauseOnFocus?r.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",r.onWindowResized):window.attachEvent("onresize",r.onWindowResized)}),(0,Re.Z)((0,ge.Z)(r),"componentWillUnmount",function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach(function(f){return clearTimeout(f)}),r.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",r.onWindowResized):window.detachEvent("onresize",r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()}),(0,Re.Z)((0,ge.Z)(r),"componentDidUpdate",function(f){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var g=Ae((0,N.Z)((0,N.Z)({},r.props),r.state));g.length>0&&(r.setState(function(p){return{lazyLoadedList:p.lazyLoadedList.concat(g)}}),r.props.onLazyLoad&&r.props.onLazyLoad(g))}r.adaptHeight();var v=(0,N.Z)((0,N.Z)({listRef:r.list,trackRef:r.track},r.props),r.state),h=r.didPropsChange(f);h&&r.updateState(v,h,function(){r.state.currentSlide>=l.Children.count(r.props.children)&&r.changeSlide({message:"index",index:l.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),(f.autoplay!==r.props.autoplay||f.autoplaySpeed!==r.props.autoplaySpeed)&&(!f.autoplay&&r.props.autoplay?r.autoPlay("playing"):r.props.autoplay?r.autoPlay("update"):r.pause("paused"))})}),(0,Re.Z)((0,ge.Z)(r),"onWindowResized",function(f){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=(0,Wn.D)(50,function(){return r.resizeWindow(f)}),r.debouncedResize()}),(0,Re.Z)((0,ge.Z)(r),"resizeWindow",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=!!(r.track&&r.track.node);if(g){var v=(0,N.Z)((0,N.Z)({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(v,f,function(){r.props.autoplay?r.autoPlay("update"):r.pause("paused")}),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}}),(0,Re.Z)((0,ge.Z)(r),"updateState",function(f,g,v){var h=le(f);f=(0,N.Z)((0,N.Z)((0,N.Z)({},f),h),{},{slideIndex:h.currentSlide});var p=Et(f);f=(0,N.Z)((0,N.Z)({},f),{},{left:p});var b=Qt(f);(g||l.Children.count(r.props.children)!==l.Children.count(f.children))&&(h.trackStyle=b),r.setState(h,v)}),(0,Re.Z)((0,ge.Z)(r),"ssrInit",function(){if(r.props.variableWidth){var f=0,g=0,v=[],h=jt((0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{slideCount:r.props.children.length})),p=Nt((0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach(function(gt){v.push(gt.props.style.width),f+=gt.props.style.width});for(var b=0;b=g&&r.onWindowResized()};if(!h.onclick)h.onclick=function(){return h.parentNode.focus()};else{var b=h.onclick;h.onclick=function(R){b(R),h.parentNode.focus()}}h.onload||(r.props.lazyLoad?h.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(h.onload=p,h.onerror=function(){p(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))})}),(0,Re.Z)((0,ge.Z)(r),"progressiveLazyLoad",function(){for(var f=[],g=(0,N.Z)((0,N.Z)({},r.props),r.state),v=r.state.currentSlide;v=-jt(g);h--)if(r.state.lazyLoadedList.indexOf(h)<0){f.push(h);break}f.length>0?(r.setState(function(p){return{lazyLoadedList:p.lazyLoadedList.concat(f)}}),r.props.onLazyLoad&&r.props.onLazyLoad(f)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)}),(0,Re.Z)((0,ge.Z)(r),"slideHandler",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=r.props,h=v.asNavFor,p=v.beforeChange,b=v.onLazyLoad,R=v.speed,X=v.afterChange,L=r.state.currentSlide,U=V((0,N.Z)((0,N.Z)((0,N.Z)({index:f},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!g})),ee=U.state,Se=U.nextState;if(ee){p&&p(L,ee.currentSlide);var we=ee.lazyLoadedList.filter(function(Ce){return r.state.lazyLoadedList.indexOf(Ce)<0});b&&we.length>0&&b(we),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),X&&X(L),delete r.animationEndCallback),r.setState(ee,function(){h&&r.asNavForIndex!==f&&(r.asNavForIndex=f,h.innerSlider.slideHandler(f)),Se&&(r.animationEndCallback=setTimeout(function(){var Ce=Se.animating,Ne=(0,zn.Z)(Se,In);r.setState(Ne,function(){r.callbackTimers.push(setTimeout(function(){return r.setState({animating:Ce})},10)),X&&X(ee.currentSlide),delete r.animationEndCallback})},R))})}}),(0,Re.Z)((0,ge.Z)(r),"changeSlide",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=(0,N.Z)((0,N.Z)({},r.props),r.state),h=Oe(v,f);if(!(h!==0&&!h)&&(g===!0?r.slideHandler(h,g):r.slideHandler(h),r.props.autoplay&&r.autoPlay("update"),r.props.focusOnSelect)){var p=r.list.querySelectorAll(".slick-current");p[0]&&p[0].focus()}}),(0,Re.Z)((0,ge.Z)(r),"clickHandler",function(f){r.clickable===!1&&(f.stopPropagation(),f.preventDefault()),r.clickable=!0}),(0,Re.Z)((0,ge.Z)(r),"keyHandler",function(f){var g=Ie(f,r.props.accessibility,r.props.rtl);g!==""&&r.changeSlide({message:g})}),(0,Re.Z)((0,ge.Z)(r),"selectHandler",function(f){r.changeSlide(f)}),(0,Re.Z)((0,ge.Z)(r),"disableBodyScroll",function(){var f=function(v){v=v||window.event,v.preventDefault&&v.preventDefault(),v.returnValue=!1};window.ontouchmove=f}),(0,Re.Z)((0,ge.Z)(r),"enableBodyScroll",function(){window.ontouchmove=null}),(0,Re.Z)((0,ge.Z)(r),"swipeStart",function(f){r.props.verticalSwiping&&r.disableBodyScroll();var g=at(f,r.props.swipe,r.props.draggable);g!==""&&r.setState(g)}),(0,Re.Z)((0,ge.Z)(r),"swipeMove",function(f){var g=dt(f,(0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));g&&(g.swiping&&(r.clickable=!1),r.setState(g))}),(0,Re.Z)((0,ge.Z)(r),"swipeEnd",function(f){var g=ht(f,(0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(g){var v=g.triggerSlideHandler;delete g.triggerSlideHandler,r.setState(g),v!==void 0&&(r.slideHandler(v),r.props.verticalSwiping&&r.enableBodyScroll())}}),(0,Re.Z)((0,ge.Z)(r),"touchEnd",function(f){r.swipeEnd(f),r.clickable=!0}),(0,Re.Z)((0,ge.Z)(r),"slickPrev",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"previous"})},0))}),(0,Re.Z)((0,ge.Z)(r),"slickNext",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"next"})},0))}),(0,Re.Z)((0,ge.Z)(r),"slickGoTo",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(f=Number(f),isNaN(f))return"";r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"index",index:f,currentSlide:r.state.currentSlide},g)},0))}),(0,Re.Z)((0,ge.Z)(r),"play",function(){var f;if(r.props.rtl)f=r.state.currentSlide-r.props.slidesToScroll;else if(ne((0,N.Z)((0,N.Z)({},r.props),r.state)))f=r.state.currentSlide+r.props.slidesToScroll;else return!1;r.slideHandler(f)}),(0,Re.Z)((0,ge.Z)(r),"autoPlay",function(f){r.autoplayTimer&&clearInterval(r.autoplayTimer);var g=r.state.autoplaying;if(f==="update"){if(g==="hovered"||g==="focused"||g==="paused")return}else if(f==="leave"){if(g==="paused"||g==="focused")return}else if(f==="blur"&&(g==="paused"||g==="hovered"))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:"playing"})}),(0,Re.Z)((0,ge.Z)(r),"pause",function(f){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var g=r.state.autoplaying;f==="paused"?r.setState({autoplaying:"paused"}):f==="focused"?(g==="hovered"||g==="playing")&&r.setState({autoplaying:"focused"}):g==="playing"&&r.setState({autoplaying:"hovered"})}),(0,Re.Z)((0,ge.Z)(r),"onDotsOver",function(){return r.props.autoplay&&r.pause("hovered")}),(0,Re.Z)((0,ge.Z)(r),"onDotsLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),(0,Re.Z)((0,ge.Z)(r),"onTrackOver",function(){return r.props.autoplay&&r.pause("hovered")}),(0,Re.Z)((0,ge.Z)(r),"onTrackLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),(0,Re.Z)((0,ge.Z)(r),"onSlideFocus",function(){return r.props.autoplay&&r.pause("focused")}),(0,Re.Z)((0,ge.Z)(r),"onSlideBlur",function(){return r.props.autoplay&&r.state.autoplaying==="focused"&&r.autoPlay("blur")}),(0,Re.Z)((0,ge.Z)(r),"render",function(){var f=Z()("slick-slider",r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),g=(0,N.Z)((0,N.Z)({},r.props),r.state),v=te(g,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),h=r.props.pauseOnHover;v=(0,N.Z)((0,N.Z)({},v),{},{onMouseEnter:h?r.onTrackOver:null,onMouseLeave:h?r.onTrackLeave:null,onMouseOver:h?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});var p;if(r.props.dots===!0&&r.state.slideCount>=r.props.slidesToShow){var b=te(g,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),R=r.props.pauseOnDotsHover;b=(0,N.Z)((0,N.Z)({},b),{},{clickHandler:r.changeSlide,onMouseEnter:R?r.onDotsLeave:null,onMouseOver:R?r.onDotsOver:null,onMouseLeave:R?r.onDotsLeave:null}),p=l.createElement(Hn,b)}var X,L,U=te(g,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);U.clickHandler=r.changeSlide,r.props.arrows&&(X=l.createElement(ir,U),L=l.createElement(ur,U));var ee=null;r.props.vertical&&(ee={height:r.state.listHeight});var Se=null;r.props.vertical===!1?r.props.centerMode===!0&&(Se={padding:"0px "+r.props.centerPadding}):r.props.centerMode===!0&&(Se={padding:r.props.centerPadding+" 0px"});var we=(0,N.Z)((0,N.Z)({},ee),Se),Ce=r.props.touchMove,Ne={className:"slick-list",style:we,onClick:r.clickHandler,onMouseDown:Ce?r.swipeStart:null,onMouseMove:r.state.dragging&&Ce?r.swipeMove:null,onMouseUp:Ce?r.swipeEnd:null,onMouseLeave:r.state.dragging&&Ce?r.swipeEnd:null,onTouchStart:Ce?r.swipeStart:null,onTouchMove:r.state.dragging&&Ce?r.swipeMove:null,onTouchEnd:Ce?r.touchEnd:null,onTouchCancel:r.state.dragging&&Ce?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},Ke={className:f,dir:"ltr",style:r.props.style};return r.props.unslick&&(Ne={className:"slick-list"},Ke={className:f,style:r.props.style}),l.createElement("div",Ke,r.props.unslick?"":X,l.createElement("div",(0,et.Z)({ref:r.listRefHandler},Ne),l.createElement(Un,(0,et.Z)({ref:r.trackRefHandler},v),r.props.children)),r.props.unslick?"":L,r.props.unslick?"":p)}),r.list=null,r.track=null,r.state=(0,N.Z)((0,N.Z)({},Mn),{},{currentSlide:r.props.initialSlide,slideCount:l.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var m=r.ssrInit();return r.state=(0,N.Z)((0,N.Z)({},r.state),m),r}return(0,De.Z)(o,[{key:"didPropsChange",value:function(r){for(var m=!1,f=0,g=Object.keys(this.props);f1&&arguments[1]!==void 0?arguments[1]:!1;return r.innerSlider.slickGoTo(m,f)}),(0,Re.Z)((0,ge.Z)(r),"slickPause",function(){return r.innerSlider.pause("paused")}),(0,Re.Z)((0,ge.Z)(r),"slickPlay",function(){return r.innerSlider.autoPlay("play")}),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return(0,De.Z)(o,[{key:"media",value:function(r,m){var f=window.matchMedia(r),g=function(h){var p=h.matches;p&&m()};f.addListener(g),g(f),this._responsiveMediaHandlers.push({mql:f,query:r,listener:g})}},{key:"componentDidMount",value:function(){var r=this;if(this.props.responsive){var m=this.props.responsive.map(function(g){return g.breakpoint});m.sort(function(g,v){return g-v}),m.forEach(function(g,v){var h;v===0?h=Nn()({minWidth:0,maxWidth:g}):h=Nn()({minWidth:m[v-1]+1,maxWidth:g}),Qn()&&r.media(h,function(){r.setState({breakpoint:g})})});var f=Nn()({minWidth:m.slice(-1)[0]});Qn()&&this.media(f,function(){r.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(r){r.mql.removeListener(r.listener)})}},{key:"render",value:function(){var r=this,m,f;this.state.breakpoint?(f=this.props.responsive.filter(function(ee){return ee.breakpoint===r.state.breakpoint}),m=f[0].settings==="unslick"?"unslick":(0,N.Z)((0,N.Z)((0,N.Z)({},sn),this.props),f[0].settings)):m=(0,N.Z)((0,N.Z)({},sn),this.props),m.centerMode&&(m.slidesToScroll>1,m.slidesToScroll=1),m.fade&&(m.slidesToShow>1,m.slidesToScroll>1,m.slidesToShow=1,m.slidesToScroll=1);var g=l.Children.toArray(this.props.children);g=g.filter(function(ee){return typeof ee=="string"?!!ee.trim():!!ee}),m.variableWidth&&(m.rows>1||m.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),m.variableWidth=!1);for(var v=[],h=null,p=0;p=g.length));L+=1)X.push(l.cloneElement(g[L],{key:100*p+10*R+L,tabIndex:-1,style:{width:"".concat(100/m.slidesPerRow,"%"),display:"inline-block"}}));b.push(l.createElement("div",{key:10*p+R},X))}m.variableWidth?v.push(l.createElement("div",{key:p,style:{width:h}},b)):v.push(l.createElement("div",{key:p},b))}if(m==="unslick"){var U="regular slider "+(this.props.className||"");return l.createElement("div",{className:U},g)}else v.length<=m.slidesToShow&&(m.unslick=!0);return l.createElement($n,(0,et.Z)({style:this.props.style,ref:this.innerSliderRefHandler},m),v)}}]),o}(l.Component),Jt=nn;const cn=t=>{const{componentCls:e,antCls:o,carouselArrowSize:s,carouselDotOffset:r,marginXXS:m}=t,f=t.calc(s).mul(-1.25).equal(),g=m;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:s,height:s,marginTop:t.calc(s).mul(-1).div(2).equal(),padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:f,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:f,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:t.dotWidth,height:t.dotHeight,marginInline:g,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${t.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:t.dotHeight,padding:0,color:"transparent",fontSize:0,background:t.colorBgContainer,border:0,borderRadius:t.dotHeight,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${t.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:t.calc(g).mul(-1).equal(),content:'""'}},"&.slick-active":{width:t.dotActiveWidth,"& button":{background:t.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},O=t=>{const{componentCls:e,carouselDotOffset:o,marginXXS:s}=t,r={width:t.dotHeight,height:t.dotWidth};return{[`${e}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:t.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:Object.assign(Object.assign({},r),{margin:`${(0,H.bf)(s)} 0`,verticalAlign:"baseline",button:r,"&.slick-active":Object.assign(Object.assign({},r),{button:r})})}}}},D=t=>{const{componentCls:e}=t;return[{[`${e}-rtl`]:{direction:"rtl",".slick-dots":{[`${e}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${e}-vertical`]:{".slick-dots":{[`${e}-rtl&`]:{flexDirection:"column"}}}}]},oe=()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24});var Pt=(0,At.I$)("Carousel",t=>{const{controlHeightLG:e,controlHeightSM:o}=t,s=(0,ke.TS)(t,{carouselArrowSize:t.calc(e).div(2).equal(),carouselDotOffset:t.calc(o).div(2).equal()});return[cn(s),O(s),D(s)]},oe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Tn=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{dots:o=!0,arrows:s=!1,draggable:r=!1,waitForAnimate:m=!1,dotPosition:f="bottom",vertical:g=f==="left"||f==="right",rootClassName:v,className:h,style:p,id:b}=t,R=Tn(t,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:X,direction:L,carousel:U}=l.useContext(pe.E_),ee=l.useRef(),Se=function(gr){let Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ee.current.slickGoTo(gr,Dn)};l.useImperativeHandle(e,()=>({goTo:Se,autoPlay:ee.current.innerSlider.autoPlay,innerSlider:ee.current.innerSlider,prev:ee.current.slickPrev,next:ee.current.slickNext}),[ee.current]);const we=l.useRef(l.Children.count(t.children));l.useEffect(()=>{we.current!==l.Children.count(t.children)&&(Se(t.initialSlide||0,!1),we.current=l.Children.count(t.children))},[t.children]);const Ce=Object.assign({vertical:g,className:Z()(h,U==null?void 0:U.className),style:Object.assign(Object.assign({},U==null?void 0:U.style),p)},R);Ce.effect==="fade"&&(Ce.fade=!0);const Ne=X("carousel",Ce.prefixCls),Ke="slick-dots",wt=!!o,gt=Z()(Ke,`${Ke}-${f}`,typeof o=="boolean"?!1:o==null?void 0:o.className),[Bt,zt]=Pt(Ne),Sn=Z()(Ne,{[`${Ne}-rtl`]:L==="rtl",[`${Ne}-vertical`]:Ce.vertical},zt,v);return Bt(l.createElement("div",{className:Sn,id:b},l.createElement(Jt,Object.assign({ref:ee},Ce,{dots:wt,dotsClass:gt,arrows:s,draggable:r,verticalSwiping:g,waitForAnimate:m}))))}),er=a(7839),dr=a(87894),Yr=a(82099),ta=a(25671),Er=a(32682),Pa=a(12868),Jr=a(57),ba=l.forwardRef(function(t,e){var o,s=t.prefixCls,r=t.forceRender,m=t.className,f=t.style,g=t.children,v=t.isActive,h=t.role,p=l.useState(v||r),b=(0,Er.Z)(p,2),R=b[0],X=b[1];return l.useEffect(function(){(r||v)&&X(!0)},[r,v]),R?l.createElement("div",{ref:e,className:Z()("".concat(s,"-content"),(o={},(0,Re.Z)(o,"".concat(s,"-content-active"),v),(0,Re.Z)(o,"".concat(s,"-content-inactive"),!v),o),m),style:f,role:h},l.createElement("div",{className:"".concat(s,"-content-box")},g)):null});ba.displayName="PanelContent";var Za=ba,oa=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],wa=l.forwardRef(function(t,e){var o,s,r=t.showArrow,m=r===void 0?!0:r,f=t.headerClass,g=t.isActive,v=t.onItemClick,h=t.forceRender,p=t.className,b=t.prefixCls,R=t.collapsible,X=t.accordion,L=t.panelKey,U=t.extra,ee=t.header,Se=t.expandIcon,we=t.openMotion,Ce=t.destroyInactivePanel,Ne=t.children,Ke=(0,zn.Z)(t,oa),wt=R==="disabled",gt=R==="header",Bt=R==="icon",zt=U!=null&&typeof U!="boolean",Sn=function(){v==null||v(L)},gr=function($r){($r.key==="Enter"||$r.keyCode===Jr.Z.ENTER||$r.which===Jr.Z.ENTER)&&Sn()},Dn=typeof Se=="function"?Se(t):l.createElement("i",{className:"arrow"});Dn&&(Dn=l.createElement("div",{className:"".concat(b,"-expand-icon"),onClick:["header","icon"].includes(R)?Sn:void 0},Dn));var pr=Z()((o={},(0,Re.Z)(o,"".concat(b,"-item"),!0),(0,Re.Z)(o,"".concat(b,"-item-active"),g),(0,Re.Z)(o,"".concat(b,"-item-disabled"),wt),o),p),lr=Z()(f,(s={},(0,Re.Z)(s,"".concat(b,"-header"),!0),(0,Re.Z)(s,"".concat(b,"-header-collapsible-only"),gt),(0,Re.Z)(s,"".concat(b,"-icon-collapsible-only"),Bt),s)),or={className:lr,"aria-expanded":g,"aria-disabled":wt,onKeyDown:gr};return!gt&&!Bt&&(or.onClick=Sn,or.role=X?"tab":"button",or.tabIndex=wt?-1:0),l.createElement("div",(0,et.Z)({},Ke,{ref:e,className:pr}),l.createElement("div",or,m&&Dn,l.createElement("span",{className:"".concat(b,"-header-text"),onClick:R==="header"?Sn:void 0},ee),zt&&l.createElement("div",{className:"".concat(b,"-extra")},U)),l.createElement(St.ZP,(0,et.Z)({visible:g,leavedClassName:"".concat(b,"-content-hidden")},we,{forceRender:h,removeOnLeave:Ce}),function(Ir,$r){var Sr=Ir.className,kr=Ir.style;return l.createElement(Za,{ref:$r,prefixCls:b,className:Sr,style:kr,isActive:g,forceRender:h,role:X?"tabpanel":void 0},Ne)}))}),Ia=wa,Na=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Qa=function(e,o){var s=o.prefixCls,r=o.accordion,m=o.collapsible,f=o.destroyInactivePanel,g=o.onItemClick,v=o.activeKey,h=o.openMotion,p=o.expandIcon;return e.map(function(b,R){var X=b.children,L=b.label,U=b.key,ee=b.collapsible,Se=b.onItemClick,we=b.destroyInactivePanel,Ce=(0,zn.Z)(b,Na),Ne=String(U!=null?U:R),Ke=ee!=null?ee:m,wt=we!=null?we:f,gt=function(Sn){Ke!=="disabled"&&(g(Sn),Se==null||Se(Sn))},Bt=!1;return r?Bt=v[0]===Ne:Bt=v.indexOf(Ne)>-1,l.createElement(Ia,(0,et.Z)({},Ce,{prefixCls:s,key:Ne,panelKey:Ne,isActive:Bt,accordion:r,openMotion:h,expandIcon:p,header:L,collapsible:Ke,onItemClick:gt,destroyInactivePanel:wt}),X)})},xr=function(e,o,s){if(!e)return null;var r=s.prefixCls,m=s.accordion,f=s.collapsible,g=s.destroyInactivePanel,v=s.onItemClick,h=s.activeKey,p=s.openMotion,b=s.expandIcon,R=e.key||String(o),X=e.props,L=X.header,U=X.headerClass,ee=X.destroyInactivePanel,Se=X.collapsible,we=X.onItemClick,Ce=!1;m?Ce=h[0]===R:Ce=h.indexOf(R)>-1;var Ne=Se!=null?Se:f,Ke=function(Bt){Ne!=="disabled"&&(v(Bt),we==null||we(Bt))},wt={key:R,panelKey:R,header:L,headerClass:U,isActive:Ce,prefixCls:r,destroyInactivePanel:ee!=null?ee:g,openMotion:p,accordion:m,children:e.props.children,onItemClick:Ke,expandIcon:b,collapsible:Ne};return typeof e.type=="string"?e:(Object.keys(wt).forEach(function(gt){typeof wt[gt]=="undefined"&&delete wt[gt]}),l.cloneElement(e,wt))};function yr(t,e,o){return Array.isArray(t)?Qa(t,o):(0,qe.Z)(e).map(function(s,r){return xr(s,r,o)})}var Cr=yr;function Ar(t){var e=t;if(!Array.isArray(e)){var o=(0,Ln.Z)(e);e=o==="number"||o==="string"?[e]:[]}return e.map(function(s){return String(s)})}var qr=l.forwardRef(function(t,e){var o=t.prefixCls,s=o===void 0?"rc-collapse":o,r=t.destroyInactivePanel,m=r===void 0?!1:r,f=t.style,g=t.accordion,v=t.className,h=t.children,p=t.collapsible,b=t.openMotion,R=t.expandIcon,X=t.activeKey,L=t.defaultActiveKey,U=t.onChange,ee=t.items,Se=Z()(s,v),we=(0,nt.Z)([],{value:X,onChange:function(zt){return U==null?void 0:U(zt)},defaultValue:L,postState:Ar}),Ce=(0,Er.Z)(we,2),Ne=Ce[0],Ke=Ce[1],wt=function(zt){return Ke(function(){if(g)return Ne[0]===zt?[]:[zt];var Sn=Ne.indexOf(zt),gr=Sn>-1;return gr?Ne.filter(function(Dn){return Dn!==zt}):[].concat((0,I.Z)(Ne),[zt])})};(0,Pa.ZP)(!h,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var gt=Cr(ee,h,{prefixCls:s,accordion:g,openMotion:b,expandIcon:R,collapsible:p,destroyInactivePanel:m,onItemClick:wt,activeKey:Ne});return l.createElement("div",{ref:e,className:Se,style:f,role:g?"tablist":void 0},gt)}),ya=Object.assign(qr,{Panel:Ia}),Aa=ya,Lr=ya.Panel,Tr=a(58351),Kr=a(17436),na=l.forwardRef((t,e)=>{const{getPrefixCls:o}=l.useContext(pe.E_),{prefixCls:s,className:r,showArrow:m=!0}=t,f=o("collapse",s),g=Z()({[`${f}-no-arrow`]:!m},r);return l.createElement(Aa.Panel,Object.assign({ref:e},t,{prefixCls:f,className:g}))}),Xr=a(23148);const Gr=t=>{const{componentCls:e,contentBg:o,padding:s,headerBg:r,headerPadding:m,collapseHeaderPaddingSM:f,collapseHeaderPaddingLG:g,collapsePanelBorderRadius:v,lineWidth:h,lineType:p,colorBorder:b,colorText:R,colorTextHeading:X,colorTextDisabled:L,fontSizeLG:U,lineHeight:ee,lineHeightLG:Se,marginSM:we,paddingSM:Ce,paddingLG:Ne,paddingXS:Ke,motionDurationSlow:wt,fontSizeIcon:gt,contentPadding:Bt,fontHeight:zt,fontHeightLG:Sn}=t,gr=`${(0,H.bf)(h)} ${p} ${b}`;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{backgroundColor:r,border:gr,borderBottom:0,borderRadius:v,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:gr,["&:last-child"]:{[` + &, + & > ${e}-header`]:{borderRadius:`0 0 ${(0,H.bf)(v)} ${(0,H.bf)(v)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:m,color:X,lineHeight:ee,cursor:"pointer",transition:`all ${wt}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:zt,display:"flex",alignItems:"center",paddingInlineEnd:we},[`${e}-arrow`]:Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:gt,svg:{transition:`transform ${wt}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:R,backgroundColor:o,borderTop:gr,[`& > ${e}-content-box`]:{padding:Bt},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:f,paddingInlineStart:Ke,[`> ${e}-expand-icon`]:{marginInlineStart:t.calc(Ce).sub(Ke).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:Ce}}},["&-large"]:{[`> ${e}-item`]:{fontSize:U,lineHeight:Se,[`> ${e}-header`]:{padding:g,paddingInlineStart:s,[`> ${e}-expand-icon`]:{height:Sn,marginInlineStart:t.calc(Ne).sub(s).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:Ne}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${(0,H.bf)(v)} ${(0,H.bf)(v)}`}},[`& ${e}-item-disabled > ${e}-header`]:{[` + &, + & > .arrow + `]:{color:L,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:we}}}}})}},aa=t=>{const{componentCls:e}=t,o=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},Ta=t=>{const{componentCls:e,headerBg:o,paddingXXS:s,colorBorder:r}=t;return{[`${e}-borderless`]:{backgroundColor:o,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${r}`},[` + > ${e}-item:last-child, + > ${e}-item:last-child ${e}-header + `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:s}}}},ka=t=>{const{componentCls:e,paddingSM:o}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:o}}}}}},no=t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer});var fo=(0,At.I$)("Collapse",t=>{const e=(0,ke.TS)(t,{collapseHeaderPaddingSM:`${(0,H.bf)(t.paddingXS)} ${(0,H.bf)(t.paddingSM)}`,collapseHeaderPaddingLG:`${(0,H.bf)(t.padding)} ${(0,H.bf)(t.paddingLG)}`,collapsePanelBorderRadius:t.borderRadiusLG});return[Gr(e),Ta(e),ka(e),aa(e),(0,Xr.Z)(e)]},no),Ua=Object.assign(l.forwardRef((t,e)=>{const{getPrefixCls:o,direction:s,collapse:r}=l.useContext(pe.E_),{prefixCls:m,className:f,rootClassName:g,style:v,bordered:h=!0,ghost:p,size:b,expandIconPosition:R="start",children:X,expandIcon:L}=t,U=(0,Kr.Z)(zt=>{var Sn;return(Sn=b!=null?b:zt)!==null&&Sn!==void 0?Sn:"middle"}),ee=o("collapse",m),Se=o(),[we,Ce]=fo(ee),Ne=l.useMemo(()=>R==="left"?"start":R==="right"?"end":R,[R]),Ke=function(){let zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Sn=L?L(zt):l.createElement(ta.Z,{rotate:zt.isActive?90:void 0});return(0,It.Tm)(Sn,()=>({className:Z()(Sn.props.className,`${ee}-arrow`)}))},wt=Z()(`${ee}-icon-position-${Ne}`,{[`${ee}-borderless`]:!h,[`${ee}-rtl`]:s==="rtl",[`${ee}-ghost`]:!!p,[`${ee}-${U}`]:U!=="middle"},r==null?void 0:r.className,f,g,Ce),gt=Object.assign(Object.assign({},(0,Tr.Z)(Se)),{motionAppear:!1,leavedClassName:`${ee}-content-hidden`}),Bt=l.useMemo(()=>X?(0,qe.Z)(X).map((zt,Sn)=>{var gr,Dn;if(!((gr=zt.props)===null||gr===void 0)&&gr.disabled){const pr=(Dn=zt.key)!==null&&Dn!==void 0?Dn:String(Sn),{disabled:lr,collapsible:or}=zt.props,Ir=Object.assign(Object.assign({},(0,yt.Z)(zt.props,["disabled"])),{key:pr,collapsible:or!=null?or:lr?"disabled":void 0});return(0,It.Tm)(zt,Ir)}return zt}):null,[X]);return we(l.createElement(Aa,Object.assign({ref:e,openMotion:gt},(0,yt.Z)(t,["rootClassName"]),{expandIcon:Ke,prefixCls:ee,className:wt,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)}),Bt))}),{Panel:na}),Ka=Ua,Ra=a(55580),Ja=a(69943),qo=a(82757),Zo=a(99455),Ei=a(84922),_o=a(99978),El=["b"],ei=["v"],ti=function(e){return Math.round(Number(e||0))},Ol=function(e){if(e&&(0,Ln.Z)(e)==="object"&&"h"in e&&"b"in e){var o=e,s=o.b,r=(0,zn.Z)(o,El);return(0,N.Z)((0,N.Z)({},r),{},{v:s})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Lo=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(s){return(0,Pe.Z)(this,o),e.call(this,Ol(s))}return(0,De.Z)(o,[{key:"toHsbString",value:function(){var r=this.toHsb(),m=ti(r.s*100),f=ti(r.b*100),g=ti(r.h),v=r.a,h="hsb(".concat(g,", ").concat(m,"%, ").concat(f,"%)"),p="hsba(".concat(g,", ").concat(m,"%, ").concat(f,"%, ").concat(v.toFixed(v===0?0:2),")");return v===1?h:p}},{key:"toHsb",value:function(){var r=this.toHsv();(0,Ln.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(r=this.originalInput);var m=r,f=m.v,g=(0,zn.Z)(m,ei);return(0,N.Z)((0,N.Z)({},g),{},{b:r.v})}}]),o}(_o.C),Zl="rc-color-picker",Xa=function(e){return e instanceof Lo?e:new Lo(e)},Il=Xa("#1677ff"),bo=function(e){var o=e.offset,s=e.targetRef,r=e.containerRef,m=e.color,f=e.type,g=r.current.getBoundingClientRect(),v=g.width,h=g.height,p=s.current.getBoundingClientRect(),b=p.width,R=p.height,X=b/2,L=R/2,U=(o.x+X)/v,ee=1-(o.y+L)/h,Se=m.toHsb(),we=U,Ce=(o.x+X)/v*360;if(f)switch(f){case"hue":return Xa((0,N.Z)((0,N.Z)({},Se),{},{h:Ce<=0?0:Ce}));case"alpha":return Xa((0,N.Z)((0,N.Z)({},Se),{},{a:we<=0?0:we}))}return Xa({h:Se.h,s:U<=0?0:U,b:ee>=1?1:ee,a:Se.a})},Bo=function(e,o,s,r){var m=e.current.getBoundingClientRect(),f=m.width,g=m.height,v=o.current.getBoundingClientRect(),h=v.width,p=v.height,b=h/2,R=p/2,X=s.toHsb();if(!(h===0&&p===0||h!==p)){if(r)switch(r){case"hue":return{x:X.h/360*f-b,y:-R/3};case"alpha":return{x:X.a/1*f-b,y:-R/3}}return{x:X.s*f-b,y:(1-X.b)*g-R}}},Oi=function(e){var o=e.color,s=e.prefixCls,r=e.className,m=e.style,f=e.onClick,g="".concat(s,"-color-block");return l.createElement("div",{className:Z()(g,r),style:m,onClick:f},l.createElement("div",{className:"".concat(g,"-inner"),style:{background:o}}))},Ho=Oi;function $l(t){var e="touches"in t?t.touches[0]:t,o=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,s=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-o,pageY:e.pageY-s}}function Rl(t){var e=t.offset,o=t.targetRef,s=t.containerRef,r=t.direction,m=t.onDragChange,f=t.onDragChangeComplete,g=t.calculate,v=t.color,h=t.disabledDrag,p=(0,l.useState)(e||{x:0,y:0}),b=(0,Er.Z)(p,2),R=b[0],X=b[1],L=(0,l.useRef)(null),U=(0,l.useRef)(null),ee=(0,l.useRef)({flag:!1});(0,l.useEffect)(function(){if(ee.current.flag===!1){var Ke=g==null?void 0:g(s);Ke&&X(Ke)}},[v,s]),(0,l.useEffect)(function(){return function(){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),document.removeEventListener("touchmove",L.current),document.removeEventListener("touchend",U.current),L.current=null,U.current=null}},[]);var Se=function(wt){var gt=$l(wt),Bt=gt.pageX,zt=gt.pageY,Sn=s.current.getBoundingClientRect(),gr=Sn.x,Dn=Sn.y,pr=Sn.width,lr=Sn.height,or=o.current.getBoundingClientRect(),Ir=or.width,$r=or.height,Sr=Ir/2,kr=$r/2,Rr=Math.max(0,Math.min(Bt-gr,pr))-Sr,Vr=Math.max(0,Math.min(zt-Dn,lr))-kr,Dr={x:Rr,y:r==="x"?R.y:Vr};if(Ir===0&&$r===0||Ir!==$r)return!1;X(Dr),m==null||m(Dr)},we=function(wt){wt.preventDefault(),Se(wt)},Ce=function(wt){wt.preventDefault(),ee.current.flag=!1,document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),document.removeEventListener("touchmove",L.current),document.removeEventListener("touchend",U.current),L.current=null,U.current=null,f==null||f()},Ne=function(wt){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),!h&&(Se(wt),ee.current.flag=!0,document.addEventListener("mousemove",we),document.addEventListener("mouseup",Ce),document.addEventListener("touchmove",we),document.addEventListener("touchend",Ce),L.current=we,U.current=Ce)};return[R,Ne]}var Zi=Rl,Ml=function(e){var o=e.size,s=o===void 0?"default":o,r=e.color,m=e.prefixCls;return l.createElement("div",{className:Z()("".concat(m,"-handler"),(0,Re.Z)({},"".concat(m,"-handler-sm"),s==="small")),style:{backgroundColor:r}})},Ii=Ml,Nl=function(e){var o=e.children,s=e.style,r=e.prefixCls;return l.createElement("div",{className:"".concat(r,"-palette"),style:(0,N.Z)({position:"relative"},s)},o)},$i=Nl,Tl=(0,l.forwardRef)(function(t,e){var o=t.children,s=t.offset;return l.createElement("div",{ref:e,style:{position:"absolute",left:s.x,top:s.y,zIndex:1}},o)}),yo=Tl,Ri=function(e){var o=e.color,s=e.onChange,r=e.prefixCls,m=e.onChangeComplete,f=e.disabled,g=(0,l.useRef)(),v=(0,l.useRef)(),h=(0,l.useRef)(o),p=Zi({color:o,containerRef:g,targetRef:v,calculate:function(U){return Bo(U,v,o)},onDragChange:function(U){var ee=bo({offset:U,targetRef:v,containerRef:g,color:o});h.current=ee,s(ee)},onDragChangeComplete:function(){return m==null?void 0:m(h.current)},disabledDrag:f}),b=(0,Er.Z)(p,2),R=b[0],X=b[1];return l.createElement("div",{ref:g,className:"".concat(r,"-select"),onMouseDown:X,onTouchStart:X},l.createElement($i,{prefixCls:r},l.createElement(yo,{offset:R,ref:v},l.createElement(Ii,{color:o.toRgbString(),prefixCls:r})),l.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(o.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Mi=Ri,Fl=function(e){var o=e.colors,s=e.children,r=e.direction,m=r===void 0?"to right":r,f=e.type,g=e.prefixCls,v=(0,l.useMemo)(function(){return o.map(function(h,p){var b=Xa(h);return f==="alpha"&&p===o.length-1&&b.setAlpha(1),b.toRgbString()}).join(",")},[o,f]);return l.createElement("div",{className:"".concat(g,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(m,", ").concat(v,")")}},s)},jl=Fl,Al=function(e){var o=e.gradientColors,s=e.direction,r=e.type,m=r===void 0?"hue":r,f=e.color,g=e.value,v=e.onChange,h=e.onChangeComplete,p=e.disabled,b=e.prefixCls,R=(0,l.useRef)(),X=(0,l.useRef)(),L=(0,l.useRef)(f),U=Zi({color:f,targetRef:X,containerRef:R,calculate:function(Ne){return Bo(Ne,X,f,m)},onDragChange:function(Ne){var Ke=bo({offset:Ne,targetRef:X,containerRef:R,color:f,type:m});L.current=Ke,v(Ke)},onDragChangeComplete:function(){h==null||h(L.current,m)},direction:"x",disabledDrag:p}),ee=(0,Er.Z)(U,2),Se=ee[0],we=ee[1];return l.createElement("div",{ref:R,className:Z()("".concat(b,"-slider"),"".concat(b,"-slider-").concat(m)),onMouseDown:we,onTouchStart:we},l.createElement($i,{prefixCls:b},l.createElement(yo,{offset:Se,ref:X},l.createElement(Ii,{size:"small",color:g,prefixCls:b})),l.createElement(jl,{colors:o,direction:s,type:m,prefixCls:b})))},Ni=Al;function Ti(t){return t!==void 0}var Io=function(e,o){var s=o.defaultValue,r=o.value,m=(0,l.useState)(function(){var h;return Ti(r)?h=r:Ti(s)?h=s:h=e,Xa(h)}),f=(0,Er.Z)(m,2),g=f[0],v=f[1];return(0,l.useEffect)(function(){r&&v(Xa(r))},[r]),[g,v]},Fi=Io,Dl=["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%"],Ll=(0,l.forwardRef)(function(t,e){var o=t.value,s=t.defaultValue,r=t.prefixCls,m=r===void 0?Zl:r,f=t.onChange,g=t.onChangeComplete,v=t.className,h=t.style,p=t.panelRender,b=t.disabledAlpha,R=b===void 0?!1:b,X=t.disabled,L=X===void 0?!1:X,U=Fi(Il,{value:o,defaultValue:s}),ee=(0,Er.Z)(U,2),Se=ee[0],we=ee[1],Ce=(0,l.useMemo)(function(){var Bt=Xa(Se.toRgbString());return Bt.setAlpha(1),Bt.toRgbString()},[Se]),Ne=Z()("".concat(m,"-panel"),v,(0,Re.Z)({},"".concat(m,"-panel-disabled"),L)),Ke={prefixCls:m,onChangeComplete:g,disabled:L},wt=function(zt,Sn){o||we(zt),f==null||f(zt,Sn)},gt=l.createElement(l.Fragment,null,l.createElement(Mi,(0,et.Z)({color:Se,onChange:wt},Ke)),l.createElement("div",{className:"".concat(m,"-slider-container")},l.createElement("div",{className:Z()("".concat(m,"-slider-group"),(0,Re.Z)({},"".concat(m,"-slider-group-disabled-alpha"),R))},l.createElement(Ni,(0,et.Z)({gradientColors:Dl,color:Se,value:"hsl(".concat(Se.toHsb().h,",100%, 50%)"),onChange:function(zt){return wt(zt,"hue")}},Ke)),!R&&l.createElement(Ni,(0,et.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ce],color:Se,value:Se.toRgbString(),onChange:function(zt){return wt(zt,"alpha")}},Ke))),l.createElement(Ho,{color:Se.toRgbString(),prefixCls:m})));return l.createElement("div",{className:Ne,style:h,ref:e},typeof p=="function"?p(gt):gt)}),Bl=Ll;const ji=l.createContext({}),ni=l.createContext({}),{Provider:Hl}=ji,{Provider:Ai}=ni,oo=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/gi,"").slice(0,e?8:6))||"",zl=(t,e)=>t?oo(t,e):"";let Di=function(){function t(e){(0,Pe.Z)(this,t),this.metaColor=new Lo(e),e||this.metaColor.setAlpha(0)}return(0,De.Z)(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return zl(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()}}]),t}();const Wl="ant-color-picker",Da=t=>t instanceof Di?t:new Di(t),$o=t=>Math.round(Number(t||0)),zo=t=>$o(t.toHsb().a*100),ri=(t,e)=>{const o=t.toHsb();return o.a=e||1,Da(o)};var Li=t=>{let{prefixCls:e,value:o,colorCleared:s,onChange:r}=t;const m=()=>{if(o&&!s){const f=o.toHsb();f.a=0;const g=Da(f);r==null||r(g)}};return l.createElement("div",{className:`${e}-clear`,onClick:m})},Qr;(function(t){t.hex="hex",t.rgb="rgb",t.hsb="hsb"})(Qr||(Qr={}));var Bi=a(56696),ro=t=>{let{prefixCls:e,min:o=0,max:s=100,value:r,onChange:m,className:f,formatter:g}=t;const v=`${e}-steppers`,[h,p]=(0,l.useState)(r);return(0,l.useEffect)(()=>{Number.isNaN(r)||p(r)},[r]),l.createElement(Bi.Z,{className:Z()(v,f),min:o,max:s,value:h,formatter:g,size:"small",onChange:b=>{r||p(b||0),m==null||m(b)}})},Ro=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-alpha-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=v=>{const h=m.toHsb();h.a=(v||0)/100;const p=Da(h);o||f(p),s==null||s(p)};return l.createElement(ro,{value:zo(m),prefixCls:e,formatter:v=>`${v}%`,className:r,onChange:g})},io=a(33952);const kl=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ai=t=>kl.test(`#${t}`);var Ul=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-hex-input`,[m,f]=(0,l.useState)(o==null?void 0:o.toHex());(0,l.useEffect)(()=>{const v=o==null?void 0:o.toHex();ai(v)&&o&&f(oo(v))},[o]);const g=v=>{const h=v.target.value;f(oo(h)),ai(oo(h,!0))&&(s==null||s(Da(h)))};return l.createElement(io.Z,{className:r,value:m,prefix:"#",onChange:g,size:"small"})},vo=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-hsb-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=(v,h)=>{const p=m.toHsb();p[h]=h==="h"?v:(v||0)/100;const b=Da(p);o||f(b),s==null||s(b)};return l.createElement("div",{className:r},l.createElement(ro,{max:360,min:0,value:Number(m.toHsb().h),prefixCls:e,className:r,formatter:v=>$o(v||0).toString(),onChange:v=>g(Number(v),"h")}),l.createElement(ro,{max:100,min:0,value:Number(m.toHsb().s)*100,prefixCls:e,className:r,formatter:v=>`${$o(v||0)}%`,onChange:v=>g(Number(v),"s")}),l.createElement(ro,{max:100,min:0,value:Number(m.toHsb().b)*100,prefixCls:e,className:r,formatter:v=>`${$o(v||0)}%`,onChange:v=>g(Number(v),"b")}))},Kl=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-rgb-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=(v,h)=>{const p=m.toRgb();p[h]=v||0;const b=Da(p);o||f(b),s==null||s(b)};return l.createElement("div",{className:r},l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().r),prefixCls:e,className:r,onChange:v=>g(Number(v),"r")}),l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().g),prefixCls:e,className:r,onChange:v=>g(Number(v),"g")}),l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().b),prefixCls:e,className:r,onChange:v=>g(Number(v),"b")}))};const Yl=[Qr.hex,Qr.hsb,Qr.rgb].map(t=>({value:t,label:t.toLocaleUpperCase()}));var ii=t=>{const{prefixCls:e,format:o,value:s,disabledAlpha:r,onFormatChange:m,onChange:f}=t,[g,v]=(0,nt.Z)(Qr.hex,{value:o,onChange:m}),h=`${e}-input`,p=R=>{v(R)},b=(0,l.useMemo)(()=>{const R={value:s,prefixCls:e,onChange:f};switch(g){case Qr.hsb:return l.createElement(vo,Object.assign({},R));case Qr.rgb:return l.createElement(Kl,Object.assign({},R));case Qr.hex:default:return l.createElement(Ul,Object.assign({},R))}},[g,e,s,f]);return l.createElement("div",{className:`${h}-container`},l.createElement(Vt.default,{value:g,bordered:!1,getPopupContainer:R=>R,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${e}-format-select`,size:"small",options:Yl}),l.createElement("div",{className:h},b),!r&&l.createElement(Ro,{prefixCls:e,value:s,onChange:f}))},Xl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const t=(0,l.useContext)(ji),{prefixCls:e,colorCleared:o,allowClear:s,value:r,disabledAlpha:m,onChange:f,onClear:g,onChangeComplete:v}=t,h=Xl(t,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return l.createElement(l.Fragment,null,s&&l.createElement(Li,Object.assign({prefixCls:e,value:r,colorCleared:o,onChange:p=>{f==null||f(p),g==null||g()}},h)),l.createElement(Bl,{prefixCls:e,value:r==null?void 0:r.toHsb(),disabledAlpha:m,onChange:(p,b)=>f==null?void 0:f(p,b,!0),onChangeComplete:v}),l.createElement(ii,Object.assign({value:r,onChange:f,prefixCls:e,disabledAlpha:m},h)))};const li=t=>t.map(e=>(e.colors=e.colors.map(Da),e)),Gl=(t,e)=>{const{r:o,g:s,b:r,a:m}=t.toRgb(),f=new Lo(t.toRgbString()).onBackground(e).toHsv();return m<=.5?f.v>.5:o*.299+s*.587+r*.114>192},zi=t=>{let{label:e}=t;return`panel-${e}`};var Ql=t=>{let{prefixCls:e,presets:o,value:s,onChange:r}=t;const[m]=(0,Fe.Z)("ColorPicker"),[,f]=(0,Zo.ZP)(),[g]=(0,nt.Z)(li(o),{value:li(o),postState:li}),v=`${e}-presets`,h=(0,l.useMemo)(()=>g.reduce((R,X)=>{const{defaultOpen:L=!0}=X;return L&&R.push(zi(X)),R},[]),[g]),p=R=>{r==null||r(R)},b=g.map(R=>{var X;return{key:zi(R),label:l.createElement("div",{className:`${v}-label`},R==null?void 0:R.label),children:l.createElement("div",{className:`${v}-items`},Array.isArray(R==null?void 0:R.colors)&&((X=R.colors)===null||X===void 0?void 0:X.length)>0?R.colors.map((L,U)=>l.createElement(Ho,{key:`preset-${U}-${L.toHexString()}`,color:Da(L).toRgbString(),prefixCls:e,className:Z()(`${v}-color`,{[`${v}-color-checked`]:L.toHexString()===(s==null?void 0:s.toHexString()),[`${v}-color-bright`]:Gl(L,f.colorBgElevated)}),onClick:()=>p(L)})):l.createElement("span",{className:`${v}-empty`},m.presetEmpty))}});return l.createElement("div",{className:v},l.createElement(Ka,{defaultActiveKey:h,ghost:!0,items:b}))},si=()=>{const{prefixCls:t,value:e,presets:o,onChange:s}=(0,l.useContext)(ni);return Array.isArray(o)?l.createElement(Ql,{value:e,presets:o,prefixCls:t,onChange:s}):null},Jl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,presets:o,panelRender:s,color:r,onChange:m,onClear:f}=t,g=Jl(t,["prefixCls","presets","panelRender","color","onChange","onClear"]),v=`${e}-inner-content`,h=Object.assign({prefixCls:e,value:r,onChange:m,onClear:f},g),p=l.useMemo(()=>({prefixCls:e,value:r,presets:o,onChange:m}),[e,r,o,m]),b=l.createElement(l.Fragment,null,l.createElement(Hi,null),Array.isArray(o)&&l.createElement(Ei.Z,{className:`${v}-divider`}),l.createElement(si,null));return l.createElement(Hl,{value:h},l.createElement(Ai,{value:p},l.createElement("div",{className:v},typeof s=="function"?s(b,{components:{Picker:Hi,Presets:si}}):b)))},_l=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{color:o,prefixCls:s,open:r,colorCleared:m,disabled:f,format:g,className:v,showText:h}=t,p=_l(t,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),b=`${s}-trigger`,R=(0,l.useMemo)(()=>m?l.createElement(Li,{prefixCls:s}):l.createElement(Ho,{prefixCls:s,color:o.toRgbString()}),[o,m,s]),X=()=>{const U=o.toHexString().toUpperCase(),ee=zo(o);switch(g){case"rgb":return o.toRgbString();case"hsb":return o.toHsbString();case"hex":default:return ee<100?`${U.slice(0,7)},${ee}%`:U}},L=()=>{if(typeof h=="function")return h(o);if(h)return X()};return l.createElement("div",Object.assign({ref:e,className:Z()(b,v,{[`${b}-active`]:r,[`${b}-disabled`]:f})},p),R,h&&l.createElement("div",{className:`${b}-text`},L()))});function ci(t){return t!==void 0}var ts=(t,e)=>{const{defaultValue:o,value:s}=e,[r,m]=(0,l.useState)(()=>{let f;return ci(s)?f=s:ci(o)?f=o:f=t,Da(f||"")});return(0,l.useEffect)(()=>{s&&m(Da(s))},[s]),[r,m]};const Vi=(t,e)=>({backgroundImage:`conic-gradient(${e} 0 25%, transparent 0 50%, ${e} 0 75%, transparent 0)`,backgroundSize:`${t} ${t}`});var ki=(t,e)=>{const{componentCls:o,borderRadiusSM:s,colorPickerInsetShadow:r,lineWidth:m,colorFillSecondary:f}=t;return{[`${o}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:s,width:e,height:e,boxShadow:r},Vi("50%",t.colorFillSecondary)),{[`${o}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,H.bf)(m)} solid ${f}`,borderRadius:"inherit"}})}},Ui=t=>{const{componentCls:e,antCls:o,fontSizeSM:s,lineHeightSM:r,colorPickerAlphaInputWidth:m,marginXXS:f,paddingXXS:g,controlHeightSM:v,marginXS:h,fontSizeIcon:p,paddingXS:b,colorTextPlaceholder:R,colorPickerInputNumberHandleWidth:X,lineWidth:L}=t;return{[`${e}-input-container`]:{display:"flex",[`${e}-steppers${o}-input-number`]:{fontSize:s,lineHeight:r,[`${o}-input-number-input`]:{paddingInlineStart:g,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:X}},[`${e}-steppers${e}-alpha-input`]:{flex:`0 0 ${(0,H.bf)(m)}`,marginInlineStart:f},[`${e}-format-select${o}-select`]:{marginInlineEnd:h,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:t.calc(p).add(f).equal(),fontSize:s,lineHeight:`${(0,H.bf)(v)}`},[`${o}-select-item-option-content`]:{fontSize:s,lineHeight:r},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${e}-input`]:{gap:f,alignItems:"center",flex:1,width:0,[`${e}-hsb-input,${e}-rgb-input`]:{display:"flex",gap:f,alignItems:"center"},[`${e}-steppers`]:{flex:1},[`${e}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,H.bf)(b)}`,[`${o}-input`]:{fontSize:s,textTransform:"uppercase",lineHeight:(0,H.bf)(t.calc(v).sub(t.calc(L).mul(2)).equal())},[`${o}-input-prefix`]:{color:R}}}}}},ns=t=>{const{componentCls:e,controlHeightLG:o,borderRadiusSM:s,colorPickerInsetShadow:r,marginSM:m,colorBgElevated:f,colorFillSecondary:g,lineWidthBold:v,colorPickerHandlerSize:h,colorPickerHandlerSizeSM:p,colorPickerSliderHeight:b}=t;return{[`${e}-select`]:{[`${e}-palette`]:{minHeight:t.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:s},[`${e}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:m},[`${e}-handler`]:{width:h,height:h,border:`${(0,H.bf)(v)} solid ${f}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${g}`,"&-sm":{width:p,height:p}},[`${e}-slider`]:{borderRadius:t.calc(b).div(2).equal(),[`${e}-palette`]:{height:b},[`${e}-gradient`]:{borderRadius:t.calc(b).div(2).equal(),boxShadow:r},"&-alpha":Vi(`${(0,H.bf)(b)}`,t.colorFillSecondary),"&-hue":{marginBottom:m}},[`${e}-slider-container`]:{display:"flex",gap:m,marginBottom:m,[`${e}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${e}-slider`]:{flex:1,marginBottom:0}}}}}},Yi=t=>{const{componentCls:e,antCls:o,colorTextQuaternary:s,paddingXXS:r,colorPickerPresetColorSize:m,fontSizeSM:f,colorText:g,lineHeightSM:v,lineWidth:h,borderRadius:p,colorFill:b,colorWhite:R,marginXXS:X,paddingXS:L,fontHeightSM:U}=t;return{[`${e}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:U,color:s,paddingInlineEnd:r}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:X},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${(0,H.bf)(L)} 0`},"&-label":{fontSize:f,color:g,lineHeight:v},"&-items":{display:"flex",flexWrap:"wrap",gap:t.calc(X).mul(1.5).equal(),[`${e}-presets-color`]:{position:"relative",cursor:"pointer",width:m,height:m,"&::before":{content:'""',pointerEvents:"none",width:t.calc(m).add(t.calc(h).mul(4)).equal(),height:t.calc(m).add(t.calc(h).mul(4)).equal(),position:"absolute",top:t.calc(h).mul(-2).equal(),insetInlineStart:t.calc(h).mul(-2).equal(),borderRadius:p,border:`${(0,H.bf)(h)} solid transparent`,transition:`border-color ${t.motionDurationMid} ${t.motionEaseInBack}`},"&:hover::before":{borderColor:b},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.calc(m).div(13).mul(5).equal(),height:t.calc(m).div(13).mul(8).equal(),border:`${(0,H.bf)(t.lineWidthBold)} solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`},[`&${e}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:R,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`},[`&${e}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:f,color:s}}}};const Wo=(t,e,o)=>({borderInlineEndWidth:t.lineWidth,borderColor:e,boxShadow:`0 0 0 ${(0,H.bf)(t.controlOutlineWidth)} ${o}`,outline:0}),rs=t=>{const{componentCls:e}=t;return{"&-rtl":{[`${e}-presets-color`]:{"&::after":{direction:"ltr"}},[`${e}-clear`]:{"&::after":{direction:"ltr"}}}}},Xi=(t,e,o)=>{const{componentCls:s,borderRadiusSM:r,lineWidth:m,colorSplit:f,red6:g}=t;return{[`${s}-clear`]:Object.assign(Object.assign({width:e,height:e,borderRadius:r,border:`${(0,H.bf)(m)} solid ${f}`,position:"relative",cursor:"pointer",overflow:"hidden"},o),{"&::after":{content:'""',position:"absolute",insetInlineEnd:m,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:g}})}},as=t=>{const{componentCls:e,colorError:o,colorWarning:s,colorErrorHover:r,colorWarningHover:m,colorErrorOutline:f,colorWarningOutline:g}=t;return{[`&${e}-status-error`]:{borderColor:o,"&:hover":{borderColor:r},[`&${e}-trigger-active`]:Object.assign({},Wo(t,o,f))},[`&${e}-status-warning`]:{borderColor:s,"&:hover":{borderColor:m},[`&${e}-trigger-active`]:Object.assign({},Wo(t,s,g))}}},os=t=>{const{componentCls:e,controlHeightLG:o,controlHeightSM:s,controlHeight:r,controlHeightXS:m,borderRadius:f,borderRadiusSM:g,borderRadiusXS:v,borderRadiusLG:h,fontSizeLG:p}=t;return{[`&${e}-lg`]:{minWidth:o,height:o,borderRadius:h,[`${e}-color-block, ${e}-clear`]:{width:r,height:r,borderRadius:f},[`${e}-trigger-text`]:{fontSize:p}},[`&${e}-sm`]:{minWidth:s,height:s,borderRadius:g,[`${e}-color-block, ${e}-clear`]:{width:m,height:m,borderRadius:v}}}},is=t=>{const{componentCls:e,colorPickerWidth:o,colorPrimary:s,motionDurationMid:r,colorBgElevated:m,colorTextDisabled:f,colorText:g,colorBgContainerDisabled:v,borderRadius:h,marginXS:p,marginSM:b,controlHeight:R,controlHeightSM:X,colorBgTextActive:L,colorPickerPresetColorSize:U,colorPickerPreviewSize:ee,lineWidth:Se,colorBorder:we,paddingXXS:Ce,fontSize:Ne,colorPrimaryHover:Ke,controlOutline:wt}=t;return[{[e]:Object.assign({[`${e}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:o,"&-divider":{margin:`${(0,H.bf)(b)} 0 ${(0,H.bf)(p)}`},[`${e}-panel`]:Object.assign({},ns(t))},ki(t,ee)),Ui(t)),Yi(t)),Xi(t,U,{marginInlineStart:"auto",marginBottom:p})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:R,height:R,borderRadius:h,border:`${(0,H.bf)(Se)} solid ${we}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${r}`,background:m,padding:t.calc(Ce).sub(Se).equal(),[`${e}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:t.calc(p).sub(t.calc(Ce).sub(Se)).equal(),fontSize:Ne,color:g},"&:hover":{borderColor:Ke},[`&${e}-trigger-active`]:Object.assign({},Wo(t,s,wt)),"&-disabled":{color:f,background:v,cursor:"not-allowed","&:hover":{borderColor:L},[`${e}-trigger-text`]:{color:f}}},Xi(t,X)),ki(t,X)),as(t)),os(t))},rs(t))}]};var ls=(0,At.I$)("ColorPicker",t=>{const{colorTextQuaternary:e,marginSM:o}=t,s=8,r=(0,ke.TS)(t,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${e}`,colorPickerSliderHeight:s,colorPickerPreviewSize:t.calc(s).mul(2).add(o).equal()});return[is(r)]}),ss=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{value:e,defaultValue:o,format:s,defaultFormat:r,allowClear:m=!1,presets:f,children:g,trigger:v="click",open:h,disabled:p,placement:b="bottomLeft",arrow:R=!0,panelRender:X,showText:L,style:U,className:ee,size:Se,rootClassName:we,styles:Ce,disabledAlpha:Ne=!1,onFormatChange:Ke,onChange:wt,onClear:gt,onOpenChange:Bt,onChangeComplete:zt,getPopupContainer:Sn,autoAdjustOverflow:gr=!0,destroyTooltipOnHide:Dn}=t,pr=ss(t,["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:lr,direction:or,colorPicker:Ir}=(0,l.useContext)(pe.E_),$r=(0,l.useContext)(Ja.Z),Sr=p!=null?p:$r,[,kr]=(0,Zo.ZP)(),[Rr,Vr]=ts(kr.colorPrimary,{value:e,defaultValue:o}),[Dr,ma]=(0,nt.Z)(!1,{value:h,postState:Oa=>!Sr&&Oa,onChange:Bt}),[Wr,ra]=(0,nt.Z)(s,{value:s,defaultValue:r,onChange:Ke}),[ga,va]=(0,l.useState)(!1),la=lr("color-picker",Wl),$a=(0,l.useMemo)(()=>zo(Rr)<100,[Rr]),{status:Ca}=l.useContext(je.aM),pa=(0,Kr.Z)(Se),Br=(0,x.Z)(la),[Fn,mr]=ls(la,Br),Pr={[`${la}-rtl`]:or},Zn=Z()(we,Br,Pr),sr=Z()((0,Ra.Z)(la,Ca),{[`${la}-sm`]:pa==="small",[`${la}-lg`]:pa==="large"},Ir==null?void 0:Ir.className,Zn,ee,mr),cr=Z()(la,Zn),ca=(0,l.useRef)(!0),xa=(Oa,Ma,Xo)=>{let to=Da(Oa);(ga||(e===null||!e&&o===null))&&(va(!1),zo(Rr)===0&&Ma!=="alpha"&&(to=ri(to))),Ne&&$a&&(to=ri(to)),Xo?ca.current=!1:zt==null||zt(to),Vr(to),wt==null||wt(to,to.toHexString())},Sa=()=>{va(!0),gt==null||gt()},Va=Oa=>{ca.current=!0;let Ma=Da(Oa);Ne&&$a&&(Ma=ri(Oa)),zt==null||zt(Ma)},eo={open:Dr,trigger:v,placement:b,arrow:R,rootClassName:we,getPopupContainer:Sn,autoAdjustOverflow:gr,destroyTooltipOnHide:Dn},Ya={prefixCls:la,color:Rr,allowClear:m,colorCleared:ga,disabled:Sr,disabledAlpha:Ne,presets:f,panelRender:X,format:Wr,onFormatChange:ra,onChangeComplete:Va},To=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),U);return Fn(l.createElement(qo.Z,Object.assign({style:Ce==null?void 0:Ce.popup,overlayInnerStyle:Ce==null?void 0:Ce.popupOverlayInner,onOpenChange:Oa=>{ca.current&&!Sr&&ma(Oa)},content:l.createElement(je.Ux,{override:!0,status:!0},l.createElement(Wi,Object.assign({},Ya,{onChange:xa,onChangeComplete:Va,onClear:Sa}))),overlayClassName:cr},eo),g||l.createElement(es,Object.assign({open:Dr,className:sr,style:To,color:e?Da(e):Rr,prefixCls:la,disabled:Sr,colorCleared:ga,showText:L,format:Wr},pr))))},Vo=(0,me.Z)(ui,"color-picker",t=>t,t=>Object.assign(Object.assign({},t),{placement:"bottom",autoAdjustOverflow:!1}));ui._InternalPanelDoNotUseOrYouWillBeFired=Vo;var cs=ui,us=cs,ds=a(56197),fs=a(17291),Gi=a(8303),vs=a(19465),Qi=a(10591),ms=a(55877),di=a(46783);const Ji=["wrap","nowrap","wrap-reverse"],qi=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_i=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],el=(t,e)=>{const o={};return Ji.forEach(s=>{o[`${t}-wrap-${s}`]=e.wrap===s}),o},hs=(t,e)=>{const o={};return _i.forEach(s=>{o[`${t}-align-${s}`]=e.align===s}),o[`${t}-align-stretch`]=!e.align&&!!e.vertical,o},Co=(t,e)=>{const o={};return qi.forEach(s=>{o[`${t}-justify-${s}`]=e.justify===s}),o};function tl(t,e){return Z()(Object.assign(Object.assign(Object.assign({},el(t,e)),hs(t,e)),Co(t,e)))}var gs=tl;const ps=t=>{const{componentCls:e}=t;return{[e]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},bs=t=>{const{componentCls:e}=t;return{[e]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},ys=t=>{const{componentCls:e}=t,o={};return Ji.forEach(s=>{o[`${e}-wrap-${s}`]={flexWrap:s}}),o},Cs=t=>{const{componentCls:e}=t,o={};return _i.forEach(s=>{o[`${e}-align-${s}`]={alignItems:s}}),o},Ss=t=>{const{componentCls:e}=t,o={};return qi.forEach(s=>{o[`${e}-justify-${s}`]={justifyContent:s}}),o},xs=()=>({});var Ps=(0,At.I$)("Flex",t=>{const{paddingXS:e,padding:o,paddingLG:s}=t,r=(0,ke.TS)(t,{flexGapSM:e,flexGap:o,flexGapLG:s});return[ps(r),bs(r),ys(r),Cs(r),Ss(r)]},xs),ws=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,rootClassName:s,className:r,style:m,flex:f,gap:g,children:v,vertical:h=!1,component:p="div"}=t,b=ws(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:R,direction:X,getPrefixCls:L}=l.useContext(pe.E_),U=L("flex",o),[ee,Se]=Ps(U),we=h!=null?h:R==null?void 0:R.vertical,Ce=Z()(r,s,R==null?void 0:R.className,U,Se,gs(U,t),{[`${U}-rtl`]:X==="rtl",[`${U}-gap-${g}`]:(0,di.n)(g),[`${U}-vertical`]:we}),Ne=Object.assign(Object.assign({},R==null?void 0:R.style),m);return f&&(Ne.flex=f),g&&!(0,di.n)(g)&&(Ne.gap=g),ee(l.createElement(p,Object.assign({ref:e,className:Ce,style:Ne},(0,yt.Z)(b,["justify","wrap","align"])),v))});const nl=l.createContext(void 0),{Provider:Os}=nl;var rl=nl,al=a(32618),Zs={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"},Is=Zs,$s=a(38782),Rs=function(e,o){return l.createElement($s.Z,(0,et.Z)({},e,{ref:o,icon:Is}))},ol=l.forwardRef(Rs);const Ms=t=>{const{icon:e,description:o,prefixCls:s,className:r}=t,m=l.createElement("div",{className:`${s}-icon`},l.createElement(ol,null));return l.createElement("div",{onClick:t.onClick,onFocus:t.onFocus,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,className:Z()(r,`${s}-content`)},e||o?l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${s}-icon`},e),o&&l.createElement("div",{className:`${s}-description`},o)):m)};var fi=(0,l.memo)(Ms),Ns=a(69814),Ts=a(46679),il=t=>t===0?0:t-Math.sqrt(Math.pow(t,2)/2);const Fs=t=>{const{componentCls:e,floatButtonSize:o,motionDurationSlow:s,motionEaseInOutCirc:r}=t,m=`${e}-group`,f=new H.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${(0,H.bf)(o)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new H.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,H.bf)(o)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${m}-wrap`]:Object.assign({},(0,Ts.R)(`${m}-wrap`,f,g,s,!0))},{[`${m}-wrap`]:{[` + &${m}-wrap-enter, + &${m}-wrap-appear + `]:{opacity:0,animationTimingFunction:r},[`&${m}-wrap-leave`]:{animationTimingFunction:r}}}]},js=t=>{const{antCls:e,componentCls:o,floatButtonSize:s,margin:r,borderRadiusLG:m,borderRadiusSM:f,badgeOffset:g,floatButtonBodyPadding:v,calc:h}=t,p=`${o}-group`;return{[p]:Object.assign(Object.assign({},(0,it.Wf)(t)),{zIndex:99,display:"block",border:"none",position:"fixed",width:s,height:"auto",boxShadow:"none",minHeight:s,insetInlineEnd:t.floatButtonInsetInlineEnd,insetBlockEnd:t.floatButtonInsetBlockEnd,borderRadius:m,[`${p}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${p}-rtl`]:{direction:"rtl"},[o]:{position:"static"}}),[`${p}-circle`]:{[`${o}-circle:not(:last-child)`]:{marginBottom:t.margin,[`${o}-body`]:{width:s,height:s,borderRadius:"50%"}}},[`${p}-square`]:{[`${o}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:m,borderStartEndRadius:m},"&:last-child":{borderEndStartRadius:m,borderEndEndRadius:m},"&:not(:last-child)":{borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-badge`]:{[`${e}-badge-count`]:{top:h(h(v).add(g)).mul(-1).equal(),insetInlineEnd:h(h(v).add(g)).mul(-1).equal()}}},[`${p}-wrap`]:{display:"block",borderRadius:m,boxShadow:t.boxShadowSecondary,[`${o}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:v,"&:first-child":{borderStartStartRadius:m,borderStartEndRadius:m},"&:last-child":{borderEndStartRadius:m,borderEndEndRadius:m},"&:not(:last-child)":{borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${o}-body`]:{width:t.floatButtonBodySize,height:t.floatButtonBodySize}}}},[`${p}-circle-shadow`]:{boxShadow:"none"},[`${p}-square-shadow`]:{boxShadow:t.boxShadowSecondary,[`${o}-square`]:{boxShadow:"none",padding:v,[`${o}-body`]:{width:t.floatButtonBodySize,height:t.floatButtonBodySize,borderRadius:f}}}}},As=t=>{const{antCls:e,componentCls:o,floatButtonBodyPadding:s,floatButtonIconSize:r,floatButtonSize:m,borderRadiusLG:f,badgeOffset:g,dotOffsetInSquare:v,dotOffsetInCircle:h,calc:p}=t;return{[o]:Object.assign(Object.assign({},(0,it.Wf)(t)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:m,height:m,insetInlineEnd:t.floatButtonInsetInlineEnd,insetBlockEnd:t.floatButtonInsetBlockEnd,boxShadow:t.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${e}-badge`]:{width:"100%",height:"100%",[`${e}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:p(g).mul(-1).equal(),insetInlineEnd:p(g).mul(-1).equal()}},[`${o}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${t.motionDurationMid}`,[`${o}-content`]:{overflow:"hidden",textAlign:"center",minHeight:m,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,H.bf)(p(s).div(2).equal())} ${(0,H.bf)(s)}`,[`${o}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${o}-rtl`]:{direction:"rtl"},[`${o}-circle`]:{height:m,borderRadius:"50%",[`${e}-badge`]:{[`${e}-badge-dot`]:{top:h,insetInlineEnd:h}},[`${o}-body`]:{borderRadius:"50%"}},[`${o}-square`]:{height:"auto",minHeight:m,borderRadius:f,[`${e}-badge`]:{[`${e}-badge-dot`]:{top:v,insetInlineEnd:v}},[`${o}-body`]:{height:"auto",borderRadius:f}},[`${o}-default`]:{backgroundColor:t.floatButtonBackgroundColor,transition:`background-color ${t.motionDurationMid}`,[`${o}-body`]:{backgroundColor:t.floatButtonBackgroundColor,transition:`background-color ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.colorFillContent},[`${o}-content`]:{[`${o}-icon`]:{color:t.colorText},[`${o}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,H.bf)(t.fontSizeLG),color:t.colorText,fontSize:t.fontSizeSM}}}},[`${o}-primary`]:{backgroundColor:t.colorPrimary,[`${o}-body`]:{backgroundColor:t.colorPrimary,transition:`background-color ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.colorPrimaryHover},[`${o}-content`]:{[`${o}-icon`]:{color:t.colorTextLightSolid},[`${o}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,H.bf)(t.fontSizeLG),color:t.colorTextLightSolid,fontSize:t.fontSizeSM}}}}}},Ds=t=>({dotOffsetInCircle:il(t.controlHeightLG/2),dotOffsetInSquare:il(t.borderRadiusLG)});var ll=(0,At.I$)("FloatButton",t=>{const{colorTextLightSolid:e,colorBgElevated:o,controlHeightLG:s,marginXXL:r,marginLG:m,fontSize:f,fontSizeIcon:g,controlItemBgHover:v,paddingXXS:h,calc:p}=t,b=(0,ke.TS)(t,{floatButtonBackgroundColor:o,floatButtonColor:e,floatButtonHoverBackgroundColor:v,floatButtonFontSize:f,floatButtonIconSize:p(g).mul(1.5).equal(),floatButtonSize:s,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:m,floatButtonBodySize:p(s).sub(p(h).mul(2)).equal(),floatButtonBodyPadding:h,badgeOffset:p(h).mul(1.5).equal()});return[js(b),As(b),(0,Ns.J$)(t),Fs(b)]},Ds),Ls=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,rootClassName:r,type:m="default",shape:f="circle",icon:g,description:v,tooltip:h,badge:p={}}=t,b=Ls(t,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:R,direction:X}=(0,l.useContext)(pe.E_),L=(0,l.useContext)(rl),U=R(Fa,o),ee=(0,x.Z)(U),[Se,we]=ll(U,ee),Ce=L||f,Ne=Z()(we,ee,U,s,r,`${U}-${m}`,`${U}-${Ce}`,{[`${U}-rtl`]:X==="rtl"}),Ke=(0,l.useMemo)(()=>(0,yt.Z)(p,["title","children","status","text"]),[p]),wt=(0,l.useMemo)(()=>({prefixCls:U,description:v,icon:g,type:m}),[U,v,g,m]);let gt=l.createElement("div",{className:`${U}-body`},l.createElement(fi,Object.assign({},wt)));return"badge"in t&&(gt=l.createElement(Ct.Z,Object.assign({},Ke),gt)),"tooltip"in t&&(gt=l.createElement(al.Z,{title:h,placement:X==="rtl"?"right":"left"},gt)),Se(t.href?l.createElement("a",Object.assign({ref:e},b,{className:Ne}),gt):l.createElement("button",Object.assign({ref:e},b,{className:Ne,type:"button"}),gt))}),Bs=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,type:r="default",shape:m="circle",visibilityHeight:f=400,icon:g=l.createElement(Qe.Z,null),target:v,onClick:h,duration:p=450}=t,b=Bs(t,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[R,X]=(0,l.useState)(f===0),L=l.useRef(null);l.useImperativeHandle(e,()=>({nativeElement:L.current}));const U=()=>L.current&&L.current.ownerDocument?L.current.ownerDocument:window,ee=(0,bt.Z)(Bt=>{const zt=(0,K.Z)(Bt.target,!0);X(zt>=f)});(0,l.useEffect)(()=>{const zt=(v||U)();return ee({target:zt}),zt==null||zt.addEventListener("scroll",ee),()=>{ee.cancel(),zt==null||zt.removeEventListener("scroll",ee)}},[v]);const Se=Bt=>{(0,ce.Z)(0,{getContainer:v||U,duration:p}),h==null||h(Bt)},{getPrefixCls:we}=(0,l.useContext)(pe.E_),Ce=we(Fa,o),Ne=we(),wt=(0,l.useContext)(rl)||m,gt=Object.assign({prefixCls:Ce,icon:g,type:r,shape:wt},b);return l.createElement(St.ZP,{visible:R,motionName:`${Ne}-fade`},Bt=>{let{className:zt}=Bt;return l.createElement(mo,Object.assign({ref:L},gt,{onClick:Se,className:Z()(s,zt)}))})}),cl=a(22410),Hs=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,className:o,style:s,shape:r="circle",type:m="default",icon:f=l.createElement(ol,null),closeIcon:g=l.createElement(cl.Z,null),description:v,trigger:h,children:p,onOpenChange:b,open:R}=t,X=Hs(t,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:L,getPrefixCls:U}=(0,l.useContext)(pe.E_),ee=U(Fa,e),Se=(0,x.Z)(ee),[we,Ce]=ll(ee,Se),Ne=`${ee}-group`,Ke=Z()(Ne,Ce,Se,o,{[`${Ne}-rtl`]:L==="rtl",[`${Ne}-${r}`]:r,[`${Ne}-${r}-shadow`]:!h}),wt=Z()(Ce,`${Ne}-wrap`),[gt,Bt]=(0,nt.Z)(!1,{value:R}),zt=l.useRef(null),Sn=l.useRef(null),gr=l.useMemo(()=>h==="hover"?{onMouseEnter(){Bt(!0),b==null||b(!0)},onMouseLeave(){Bt(!1),b==null||b(!1)}}:{},[h]),Dn=()=>{Bt(lr=>(b==null||b(!lr),!lr))},pr=(0,l.useCallback)(lr=>{var or,Ir;if(!((or=zt.current)===null||or===void 0)&&or.contains(lr.target)){!((Ir=Sn.current)===null||Ir===void 0)&&Ir.contains(lr.target)&&Dn();return}Bt(!1),b==null||b(!1)},[h]);return(0,l.useEffect)(()=>{if(h==="click")return document.addEventListener("click",pr),()=>{document.removeEventListener("click",pr)}},[h]),we(l.createElement(Os,{value:r},l.createElement("div",Object.assign({ref:zt,className:Ke,style:s},gr),h&&["click","hover"].includes(h)?l.createElement(l.Fragment,null,l.createElement(St.ZP,{visible:gt,motionName:`${Ne}-wrap`},lr=>{let{className:or}=lr;return l.createElement("div",{className:Z()(or,wt)},p)}),l.createElement(mo,Object.assign({ref:Sn,type:m,shape:r,icon:gt?g:f,description:v,"aria-label":t["aria-label"]},X))):p)))};var ul=(0,l.memo)(zs),dl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{backTop:e}=t,o=dl(t,["backTop"]);return e?l.createElement(sl,Object.assign({},o,{visibilityHeight:0})):l.createElement(mo,Object.assign({},o))};var Ws=t=>{var{className:e,items:o}=t,s=dl(t,["className","items"]);const{prefixCls:r}=s,{getPrefixCls:m}=l.useContext(pe.E_),g=`${m(Fa,r)}-pure`;return o?l.createElement(ul,Object.assign({className:Z()(e,g)},s),o.map((v,h)=>l.createElement(fl,Object.assign({key:h},v)))):l.createElement(fl,Object.assign({className:Z()(e,g)},s))};mo.BackTop=sl,mo.Group=ul,mo._InternalPanelDoNotUseOrYouWillBeFired=Ws;var Vs=mo,ks=a(67190),Us=a(97004),Ks=a(71593),Ys=a(42259),Xs=a(90543),Gs=a(41549),Qs=a(2276);function Js(){var t=(0,l.useState)({id:0,callback:null}),e=(0,Er.Z)(t,2),o=e[0],s=e[1],r=(0,l.useCallback)(function(m){s(function(f){var g=f.id;return{id:g+1,callback:m}})},[]);return(0,l.useEffect)(function(){var m;(m=o.callback)===null||m===void 0||m.call(o)},[o]),r}var vl=a(62382),vi=a(93442),qs=l.createContext(null),ml=qs;function _s(t){var e=l.useContext(ml),o=e.notFoundContent,s=e.activeIndex,r=e.setActiveIndex,m=e.selectOption,f=e.onFocus,g=e.onBlur,v=t.prefixCls,h=t.options,p=h[s]||{};return l.createElement(vi.ZP,{prefixCls:"".concat(v,"-menu"),activeKey:p.key,onSelect:function(R){var X=R.key,L=h.find(function(U){var ee=U.key;return ee===X});m(L)},onFocus:f,onBlur:g},h.map(function(b,R){var X=b.key,L=b.disabled,U=b.className,ee=b.style,Se=b.label;return l.createElement(vi.sN,{key:X,disabled:L,className:U,style:ee,onMouseEnter:function(){r(R)}},Se)}),!h.length&&l.createElement(vi.sN,{disabled:!0},o))}var c=_s,n={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},u=function(e){var o=e.prefixCls,s=e.options,r=e.children,m=e.visible,f=e.transitionName,g=e.getPopupContainer,v=e.dropdownClassName,h=e.direction,p=e.placement,b="".concat(o,"-dropdown"),R=l.createElement(c,{prefixCls:b,options:s}),X=(0,l.useMemo)(function(){var L;return h==="rtl"?L=p==="top"?"topLeft":"bottomLeft":L=p==="top"?"topRight":"bottomRight",L},[h,p]);return l.createElement(vl.Z,{prefixCls:b,popupVisible:m,popup:R,popupPlacement:X,popupTransitionName:f,builtinPlacements:n,getPopupContainer:g,popupClassName:v},r)},d=u,y=function(){return null},M=y;function _(t){var e=t.selectionStart;return t.value.slice(0,e)}function ie(t,e){return e.reduce(function(o,s){var r=t.lastIndexOf(s);return r>o.location?{location:r,prefix:s}:o},{location:-1,prefix:""})}function q(t){return(t||"").toLowerCase()}function he(t,e,o){var s=t[0];if(!s||s===o)return t;for(var r=t,m=e.length,f=0;f=0)return[!0,"",Nr,Ur]}return[va,pa,Pr,ca]},[ee,va,Vr,wo,pa,Pr,ca]),Fo=(0,Er.Z)(lc,4),Eo=Fo[0],yi=Fo[1],Qo=Fo[2],Ci=Fo[3],Si=l.useCallback(function(ua){var Nr;return U&&U.length>0?Nr=U.map(function(Ur){var da;return(0,N.Z)((0,N.Z)({},Ur),{},{key:(da=Ur==null?void 0:Ur.key)!==null&&da!==void 0?da:Ur.value})}):Nr=(0,qe.Z)(L).map(function(Ur){var da=Ur.props,Ao=Ur.key;return(0,N.Z)((0,N.Z)({},da),{},{label:da.children,key:Ao||da.value})}),Nr.filter(function(Ur){return Ne===!1?!0:Ne(ua,Ur)})},[L,U,Ne]),jo=l.useMemo(function(){return Si(yi)},[Si,yi]),sc=Js(),cc=function(Nr,Ur,da){la(!0),Br(Nr),Zn(Ur),xa(da),Ya(0)},Oo=function(Nr){la(!1),xa(0),Br(""),sc(Nr)},xl=function(Nr){ic(Nr),Ke==null||Ke(Nr)},xi=function(Nr){var Ur=Nr.target.value;xl(Ur)},Pl=function(Nr){var Ur,da=Nr.value,Ao=da===void 0?"":da,Do=$e(wo,{measureLocation:Ci,targetText:Ao,prefix:Qo,selectionStart:(Ur=Wr())===null||Ur===void 0?void 0:Ur.selectionStart,split:h}),Jo=Do.text,Pi=Do.selectionLocation;xl(Jo),Oo(function(){Xe(Wr(),Pi)}),Sn==null||Sn(Nr,Qo)},uc=function(Nr){var Ur=Nr.which;if(wt==null||wt(Nr),!!Eo){if(Ur===Jr.Z.UP||Ur===Jr.Z.DOWN){var da=jo.length,Ao=Ur===Jr.Z.UP?-1:1,Do=(eo+Ao+da)%da;Ya(Do),Nr.preventDefault()}else if(Ur===Jr.Z.ESC)Oo();else if(Ur===Jr.Z.ENTER){if(Nr.preventDefault(),!jo.length){Oo();return}var Jo=jo[eo];Pl(Jo)}}},hr=function(Nr){var Ur=Nr.key,da=Nr.which,Ao=Nr.target,Do=_(Ao),Jo=ie(Do,Vr),Pi=Jo.location,wl=Jo.prefix;if(gt==null||gt(Nr),[Jr.Z.ESC,Jr.Z.UP,Jr.Z.DOWN,Jr.Z.ENTER].indexOf(da)===-1)if(Pi!==-1){var wi=Do.slice(Pi+wl.length),Yc=we(wi,h),Yd=!!Si(wi).length;Yc?(Ur===wl||Ur==="Shift"||Eo||wi!==yi&&Yd)&&cc(wi,wl,Pi):Eo&&Oo(),zt&&Yc&&zt(wi,wl)}else Eo&&Oo()},Hr=function(Nr){!Eo&&Bt&&Bt(Nr)},fa=(0,l.useRef)(),Ha=function(Nr){window.clearTimeout(fa.current),!Ma&&Nr&&gr&&gr(Nr),Xo(!0)},za=function(Nr){fa.current=window.setTimeout(function(){Xo(!1),Oo(),Dn==null||Dn(Nr)},0)},co=function(){Ha()},uo=function(){za()};return l.createElement("div",{className:Z()(s,r),style:m},l.createElement(Qs.Z,(0,et.Z)({ref:Dr,value:wo},Rr,{rows:kr,onChange:xi,onKeyDown:uc,onKeyUp:hr,onPressEnter:Hr,onFocus:Ha,onBlur:za})),Eo&&l.createElement("div",{ref:ma,className:"".concat(s,"-measure")},wo.slice(0,Ci),l.createElement(ml.Provider,{value:{notFoundContent:b,activeIndex:eo,setActiveIndex:Ya,selectOption:Pl,onFocus:co,onBlur:uo}},l.createElement(d,{prefixCls:s,transitionName:pr,placement:lr,direction:or,options:jo,visible:!0,getPopupContainer:Ir,dropdownClassName:$r},l.createElement("span",null,Qo))),wo.slice(Ci+Qo.length)))}),Xn=(0,l.forwardRef)(function(t,e){var o=t.suffix,s=t.prefixCls,r=t.classes,m=t.value,f=(0,zn.Z)(t,rn);return l.createElement(Gs.Q,{inputElement:l.createElement(yn,(0,et.Z)({prefixCls:s,ref:e},f)),suffix:o,prefixCls:s,classes:r,value:m})});Xn.Option=M;var Cn=Xn,Jn=Cn,fr=a(12602),Kn=a(7717),_n=a(38705),Mr=a(55904);const vr=t=>{const{componentCls:e,colorTextDisabled:o,controlItemBgHover:s,controlPaddingHorizontal:r,colorText:m,motionDurationSlow:f,lineHeight:g,controlHeight:v,paddingInline:h,paddingBlock:p,fontSize:b,colorBgElevated:R,paddingXXS:X,borderRadius:L,borderRadiusLG:U,boxShadowSecondary:ee,itemPaddingVertical:Se}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.Wf)(t)),(0,Mr.ik)(t)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:g,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),(0,Mr.bi)(t,e)),{"&-disabled":{"> textarea":Object.assign({},(0,Mr.Xy)(t))},[`&-affix-wrapper ${e}-suffix`]:{position:"absolute",top:0,insetInlineEnd:h,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${e}-measure`]:{color:m,boxSizing:"border-box",minHeight:t.calc(v).sub(2),margin:0,padding:`${(0,H.bf)(p)} ${(0,H.bf)(h)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},(0,Mr.nz)(t.colorTextPlaceholder)),[`${e}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",fontSize:b,fontVariant:"initial",padding:X,backgroundColor:R,borderRadius:U,outline:"none",boxShadow:ee,"&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},it.vS),{position:"relative",display:"block",minWidth:t.controlItemWidth,padding:`${(0,H.bf)(Se)} ${(0,H.bf)(r)}`,color:m,borderRadius:L,fontWeight:"normal",lineHeight:g,cursor:"pointer",transition:`background ${f} ease`,"&:hover":{backgroundColor:s},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:s,cursor:"not-allowed"}},"&-selected":{color:m,fontWeight:t.fontWeightStrong,backgroundColor:s},"&-active":{backgroundColor:s}})}})})}},zr=t=>Object.assign(Object.assign({},(0,Mr.TM)(t)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:t.zIndexPopupBase+50,itemPaddingVertical:t.controlHeight-t.fontHeight});var _r=(0,At.I$)("Mentions",t=>{const e=(0,ke.TS)(t,(0,Mr.e5)(t));return[vr(e)]},zr),Fr=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,rootClassName:r,disabled:m,loading:f,filterOption:g,children:v,notFoundContent:h,options:p,status:b,popupClassName:R,style:X}=t,L=Fr(t,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","popupClassName","style"]),[U,ee]=l.useState(!1),Se=l.useRef(null),we=(0,fr.sQ)(e,Se),{getPrefixCls:Ce,renderEmpty:Ne,direction:Ke,mentions:wt}=l.useContext(pe.E_),{status:gt,hasFeedback:Bt,feedbackIcon:zt}=l.useContext(je.aM),Sn=(0,Ra.F)(gt,b),gr=function(){L.onFocus&&L.onFocus.apply(L,arguments),ee(!0)},Dn=function(){L.onBlur&&L.onBlur.apply(L,arguments),ee(!1)},pr=l.useMemo(()=>h!==void 0?h:(Ne==null?void 0:Ne("Select"))||l.createElement(Kn.Z,{componentName:"Select"}),[h,Ne]),lr=l.useMemo(()=>f?l.createElement(wn,{value:"ANTD_SEARCHING",disabled:!0},l.createElement(_n.Z,{size:"small"})):v,[f,v]),or=f?[{value:"ANTD_SEARCHING",disabled:!0,label:l.createElement(_n.Z,{size:"small"})}]:p,Ir=f?nr:g,$r=Ce("mentions",o),Sr=(0,x.Z)($r),[kr,Rr]=_r($r,Sr),Vr=Z()({[`${$r}-disabled`]:m,[`${$r}-focused`]:U,[`${$r}-rtl`]:Ke==="rtl"},(0,Ra.Z)($r,Sn),wt==null?void 0:wt.className,!Bt&&s,r,Rr,Sr),Dr=l.createElement(Jn,Object.assign({prefixCls:$r,notFoundContent:pr,className:Vr,disabled:m,direction:Ke,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),X)},L,{filterOption:Ir,onFocus:gr,onBlur:Dn,dropdownClassName:Z()(R,r,Rr,Sr),ref:we,options:or,suffix:Bt&&zt,classes:{affixWrapper:Z()(Sr,Rr,s)}}),lr);return kr(Dr)},Or=l.forwardRef(wr);Or.Option=wn;const ea=(0,me.Z)(Or,"mentions");Or._InternalPanelDoNotUseOrYouWillBeFired=ea,Or.getMentions=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:o="@",split:s=" "}=e,r=Array.isArray(o)?o:[o];return t.split(s).map(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",f=null;return r.some(g=>m.slice(0,g.length)===g?(f=g,!0):!1),f!==null?{prefix:f,value:m.slice(f.length)}:null}).filter(m=>!!m&&!!m.value)};var jr=Or,Zr=a(62737),ia=a(52497),Ea=a(45319),Ba=a(7592),ja=a(98162),ho=a(37077),ko=a(17519),Uo=a(11677),So=Object.defineProperty,lo=Object.getOwnPropertySymbols,go=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,xo=(t,e,o)=>e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Wa=(t,e)=>{for(var o in e||(e={}))go.call(e,o)&&xo(t,o,e[o]);if(lo)for(var o of lo(e))po.call(e,o)&&xo(t,o,e[o]);return t},No=(t,e)=>{var o={};for(var s in t)go.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&lo)for(var s of lo(t))e.indexOf(s)<0&&po.call(t,s)&&(o[s]=t[s]);return o};var qa;(t=>{const e=class{constructor(v,h,p,b){if(this.version=v,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],ve.MAX_VERSION)throw new RangeError("Version value out of range");if(b<-1||b>7)throw new RangeError("Mask value out of range");this.size=v*4+17;let R=[];for(let L=0;L7)throw new RangeError("Invalid value");let L,U;for(L=p;;L++){const Ce=e.getNumDataCodewords(L,h)*8,Ne=g.getTotalBits(v,L);if(Ne<=Ce){U=Ne;break}if(L>=b)throw new RangeError("Data too long")}for(const Ce of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])X&&U<=e.getNumDataCodewords(L,Ce)*8&&(h=Ce);let ee=[];for(const Ce of v){s(Ce.mode.modeBits,4,ee),s(Ce.numChars,Ce.mode.numCharCountBits(L),ee);for(const Ne of Ce.getData())ee.push(Ne)}m(ee.length==U);const Se=e.getNumDataCodewords(L,h)*8;m(ee.length<=Se),s(0,Math.min(4,Se-ee.length),ee),s(0,(8-ee.length%8)%8,ee),m(ee.length%8==0);for(let Ce=236;ee.lengthwe[Ne>>>3]|=Ce<<7-(Ne&7)),new e(L,h,we,R)}getModule(v,h){return 0<=v&&v>>9)*1335;const b=(h<<10|p)^21522;m(b>>>15==0);for(let R=0;R<=5;R++)this.setFunctionModule(8,R,r(b,R));this.setFunctionModule(8,7,r(b,6)),this.setFunctionModule(8,8,r(b,7)),this.setFunctionModule(7,8,r(b,8));for(let R=9;R<15;R++)this.setFunctionModule(14-R,8,r(b,R));for(let R=0;R<8;R++)this.setFunctionModule(this.size-1-R,8,r(b,R));for(let R=8;R<15;R++)this.setFunctionModule(8,this.size-15+R,r(b,R));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let v=this.version;for(let p=0;p<12;p++)v=v<<1^(v>>>11)*7973;const h=this.version<<12|v;m(h>>>18==0);for(let p=0;p<18;p++){const b=r(h,p),R=this.size-11+p%3,X=Math.floor(p/3);this.setFunctionModule(R,X,b),this.setFunctionModule(X,R,b)}}drawFinderPattern(v,h){for(let p=-4;p<=4;p++)for(let b=-4;b<=4;b++){const R=Math.max(Math.abs(b),Math.abs(p)),X=v+b,L=h+p;0<=X&&X{(Ce!=U-R||Ke>=L)&&we.push(Ne[Ce])});return m(we.length==X),we}drawCodewords(v){if(v.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(let b=0;b>>3],7-(h&7)),h++)}}m(h==v.length*8)}applyMask(v){if(v<0||v>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&v++):(this.finderPenaltyAddHistory(L,U),X||(v+=this.finderPenaltyCountPatterns(U)*e.PENALTY_N3),X=this.modules[R][ee],L=1);v+=this.finderPenaltyTerminateAndCount(X,L,U)*e.PENALTY_N3}for(let R=0;R5&&v++):(this.finderPenaltyAddHistory(L,U),X||(v+=this.finderPenaltyCountPatterns(U)*e.PENALTY_N3),X=this.modules[ee][R],L=1);v+=this.finderPenaltyTerminateAndCount(X,L,U)*e.PENALTY_N3}for(let R=0;RX+(L?1:0),h);const p=this.size*this.size,b=Math.ceil(Math.abs(h*20-p*10)/p)-1;return m(0<=b&&b<=9),v+=b*e.PENALTY_N4,m(0<=v&&v<=2568888),v}getAlignmentPatternPositions(){if(this.version==1)return[];{const v=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(v*2-2))*2;let p=[6];for(let b=this.size-7;p.lengthe.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*v+128)*v+64;if(v>=2){const p=Math.floor(v/7)+2;h-=(25*p-10)*p-55,v>=7&&(h-=36)}return m(208<=h&&h<=29648),h}static getNumDataCodewords(v,h){return Math.floor(e.getNumRawDataModules(v)/8)-e.ECC_CODEWORDS_PER_BLOCK[h.ordinal][v]*e.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][v]}static reedSolomonComputeDivisor(v){if(v<1||v>255)throw new RangeError("Degree out of range");let h=[];for(let b=0;b0);for(const b of v){const R=b^p.shift();p.push(0),h.forEach((X,L)=>p[L]^=e.reedSolomonMultiply(X,R))}return p}static reedSolomonMultiply(v,h){if(v>>>8||h>>>8)throw new RangeError("Byte out of range");let p=0;for(let b=7;b>=0;b--)p=p<<1^(p>>>7)*285,p^=(h>>>b&1)*v;return m(p>>>8==0),p}finderPenaltyCountPatterns(v){const h=v[1];m(h<=this.size*3);const p=h>0&&v[2]==h&&v[3]==h*3&&v[4]==h&&v[5]==h;return(p&&v[0]>=h*4&&v[6]>=h?1:0)+(p&&v[6]>=h*4&&v[0]>=h?1:0)}finderPenaltyTerminateAndCount(v,h,p){return v&&(this.finderPenaltyAddHistory(h,p),h=0),h+=this.size,this.finderPenaltyAddHistory(h,p),this.finderPenaltyCountPatterns(p)}finderPenaltyAddHistory(v,h){h[0]==0&&(v+=this.size),h.pop(),h.unshift(v)}};let o=e;o.MIN_VERSION=1,o.MAX_VERSION=40,o.PENALTY_N1=3,o.PENALTY_N2=3,o.PENALTY_N3=40,o.PENALTY_N4=10,o.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],o.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=o;function s(v,h,p){if(h<0||h>31||v>>>h)throw new RangeError("Value out of range");for(let b=h-1;b>=0;b--)p.push(v>>>b&1)}function r(v,h){return(v>>>h&1)!=0}function m(v){if(!v)throw new Error("Assertion error")}const f=class{constructor(v,h,p){if(this.mode=v,this.numChars=h,this.bitData=p,h<0)throw new RangeError("Invalid argument");this.bitData=p.slice()}static makeBytes(v){let h=[];for(const p of v)s(p,8,h);return new f(f.Mode.BYTE,v.length,h)}static makeNumeric(v){if(!f.isNumeric(v))throw new RangeError("String contains non-numeric characters");let h=[];for(let p=0;p=1<{let e;(o=>{const s=class{constructor(m,f){this.ordinal=m,this.formatBits=f}};let r=s;r.LOW=new s(0,1),r.MEDIUM=new s(1,0),r.QUARTILE=new s(2,3),r.HIGH=new s(3,2),o.Ecc=r})(e=t.QrCode||(t.QrCode={}))})(qa||(qa={})),(t=>{let e;(o=>{const s=class{constructor(m,f){this.modeBits=m,this.numBitsCharCount=f}numCharCountBits(m){return this.numBitsCharCount[Math.floor((m+7)/17)]}};let r=s;r.NUMERIC=new s(1,[10,12,14]),r.ALPHANUMERIC=new s(2,[9,11,13]),r.BYTE=new s(4,[8,16,16]),r.KANJI=new s(8,[8,10,12]),r.ECI=new s(7,[0,0,0]),o.Mode=r})(e=t.QrSegment||(t.QrSegment={}))})(qa||(qa={}));var Ga=qa;var La={L:Ga.QrCode.Ecc.LOW,M:Ga.QrCode.Ecc.MEDIUM,Q:Ga.QrCode.Ecc.QUARTILE,H:Ga.QrCode.Ecc.HIGH},ha=128,_a="L",so="#FFFFFF",hl="#000000",mi=!1,hi=4,gi=.1;function gl(t,e=0){const o=[];return t.forEach(function(s,r){let m=null;s.forEach(function(f,g){if(!f&&m!==null){o.push(`M${m+e} ${r+e}h${g-m}v1H${m+e}z`),m=null;return}if(g===s.length-1){if(!f)return;m===null?o.push(`M${g+e},${r+e} h1v1H${g+e}z`):o.push(`M${m+e},${r+e} h${g+1-m}v1H${m+e}z`);return}f&&m===null&&(m=g)})}),o.join("")}function pl(t,e){return t.slice().map((o,s)=>s=e.y+e.h?o:o.map((r,m)=>m=e.x+e.w?r:!1))}function Po(t,e,o,s){if(s==null)return null;const r=o?hi:0,m=t.length+r*2,f=Math.floor(e*gi),g=m/e,v=(s.width||f)*g,h=(s.height||f)*g,p=s.x==null?t.length/2-v/2:s.x*g,b=s.y==null?t.length/2-h/2:s.y*g;let R=null;if(s.excavate){let X=Math.floor(p),L=Math.floor(b),U=Math.ceil(v+p-X),ee=Math.ceil(h+b-L);R={x:X,y:L,w:U,h:ee}}return{x:p,y:b,h,w:v,excavation:R}}var ec=function(){try{new Path2D().addPath(new Path2D)}catch(t){return!1}return!0}();function pi(t){const e=t,{value:o,size:s=ha,level:r=_a,bgColor:m=so,fgColor:f=hl,includeMargin:g=mi,style:v,imageSettings:h}=e,p=No(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),b=h==null?void 0:h.src,R=(0,l.useRef)(null),X=(0,l.useRef)(null),[L,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(R.current!=null){const we=R.current,Ce=we.getContext("2d");if(!Ce)return;let Ne=Ga.QrCode.encodeText(o,La[r]).getModules();const Ke=g?hi:0,wt=Ne.length+Ke*2,gt=Po(Ne,s,g,h),Bt=X.current,zt=gt!=null&&Bt!==null&&Bt.complete&&Bt.naturalHeight!==0&&Bt.naturalWidth!==0;zt&>.excavation!=null&&(Ne=pl(Ne,gt.excavation));const Sn=window.devicePixelRatio||1;we.height=we.width=s*Sn;const gr=s/wt*Sn;Ce.scale(gr,gr),Ce.fillStyle=m,Ce.fillRect(0,0,wt,wt),Ce.fillStyle=f,ec?Ce.fill(new Path2D(gl(Ne,Ke))):Ne.forEach(function(Dn,pr){Dn.forEach(function(lr,or){lr&&Ce.fillRect(or+Ke,pr+Ke,1,1)})}),zt&&Ce.drawImage(Bt,gt.x+Ke,gt.y+Ke,gt.w,gt.h)}}),(0,l.useEffect)(()=>{U(!1)},[b]);const ee=Wa({height:s,width:s},v);let Se=null;return b!=null&&(Se=l.createElement("img",{src:b,key:b,style:{display:"none"},onLoad:()=>{U(!0)},ref:X})),l.createElement(l.Fragment,null,l.createElement("canvas",Wa({style:ee,height:s,width:s,ref:R},p)),Se)}function Ko(t){const e=t,{value:o,size:s=ha,level:r=_a,bgColor:m=so,fgColor:f=hl,includeMargin:g=mi,imageSettings:v}=e,h=No(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let p=Ga.QrCode.encodeText(o,La[r]).getModules();const b=g?hi:0,R=p.length+b*2,X=Po(p,s,g,v);let L=null;v!=null&&X!=null&&(X.excavation!=null&&(p=pl(p,X.excavation)),L=l.createElement("image",{xlinkHref:v.src,height:X.h,width:X.w,x:X.x+b,y:X.y+b,preserveAspectRatio:"none"}));const U=gl(p,b);return l.createElement("svg",Wa({height:s,width:s,viewBox:`0 0 ${R} ${R}`},h),l.createElement("path",{fill:m,d:`M0,0 h${R}v${R}H0z`,shapeRendering:"crispEdges"}),l.createElement("path",{fill:f,d:U,shapeRendering:"crispEdges"}),L)}var Jd=t=>{const e=t,{renderAs:o}=e,s=No(e,["renderAs"]);return o==="svg"?React.createElement(Ko,Wa({},s)):React.createElement(pi,Wa({},s))};const Jc=t=>{const{componentCls:e,lineWidth:o,lineType:s,colorSplit:r}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{display:"flex",justifyContent:"center",alignItems:"center",padding:t.paddingSM,backgroundColor:t.colorWhite,borderRadius:t.borderRadiusLG,border:`${(0,H.bf)(o)} ${s} ${r}`,position:"relative",overflow:"hidden",[`& > ${e}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:t.colorText,lineHeight:t.lineHeight,background:t.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${e}-expired`]:{color:t.QRCodeExpiredTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:t.marginXS,fontSize:t.controlHeight}}),[`${e}-borderless`]:{borderColor:"transparent"}}},qc=()=>({});var _c=(0,At.I$)("QRCode",t=>{const e=(0,ke.TS)(t,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"});return Jc(e)},qc),eu=t=>{const[,e]=(0,Zo.ZP)(),{value:o,type:s="canvas",icon:r="",size:m=160,iconSize:f=40,color:g=e.colorText,errorLevel:v="M",status:h="active",bordered:p=!0,onRefresh:b,style:R,className:X,rootClassName:L,prefixCls:U,bgColor:ee="transparent"}=t,{getPrefixCls:Se}=(0,l.useContext)(pe.E_),we=Se("qrcode",U),[Ce,Ne]=_c(we),wt={value:o,size:m,level:v,bgColor:ee,fgColor:g,style:{width:void 0,height:void 0},imageSettings:r?{src:r,x:void 0,y:void 0,height:f,width:f,excavate:!0}:void 0},[gt]=(0,Fe.Z)("QRCode");if(!o)return null;const Bt=Z()(we,X,L,Ne,{[`${we}-borderless`]:!p});return Ce(l.createElement("div",{className:Bt,style:Object.assign(Object.assign({},R),{width:m,height:m,backgroundColor:ee})},h!=="active"&&l.createElement("div",{className:`${we}-mask`},h==="loading"&&l.createElement(_n.Z,null),h==="expired"&&l.createElement(l.Fragment,null,l.createElement("p",{className:`${we}-expired`},gt==null?void 0:gt.expired),b&&l.createElement($t.ZP,{type:"link",icon:l.createElement(Uo.Z,null),onClick:b},gt==null?void 0:gt.refresh))),s==="canvas"?l.createElement(pi,Object.assign({},wt)):l.createElement(Ko,Object.assign({},wt))))},tu=a(22900),nu=a(37839),ru=a(6053),au=a(23870),ou=a(13362),iu=a(25670),lu=a(59929),su=a(75200),cu=a(53295),uu=a(27575),du=a(41868),fu=a(31796),vu=a(66146),mu=a(28566),hu=a(87362),gu=a(74360);const pu=t=>{const{componentCls:e,calc:o}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{margin:0,padding:0,listStyle:"none",[`${e}-item`]:{position:"relative",margin:0,paddingBottom:t.itemPaddingBottom,fontSize:t.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:t.itemHeadSize,insetInlineStart:o(o(t.itemHeadSize).sub(t.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,H.bf)(t.itemHeadSize)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} ${t.lineType} ${t.tailColor}`},"&-pending":{[`${e}-item-head`]:{fontSize:t.fontSizeSM,backgroundColor:"transparent"},[`${e}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:t.itemHeadSize,height:t.itemHeadSize,backgroundColor:t.dotBg,border:`${(0,H.bf)(t.dotBorderWidth)} ${t.lineType} transparent`,borderRadius:"50%","&-blue":{color:t.colorPrimary,borderColor:t.colorPrimary},"&-red":{color:t.colorError,borderColor:t.colorError},"&-green":{color:t.colorSuccess,borderColor:t.colorSuccess},"&-gray":{color:t.colorTextDisabled,borderColor:t.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(t.itemHeadSize).div(2).equal(),insetInlineStart:o(t.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:t.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(t.fontSize).mul(t.lineHeight).sub(t.fontSize)).mul(-1).add(t.lineWidth).equal(),marginInlineStart:o(t.margin).add(t.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${e}-item-tail`]:{display:"none"},[`> ${e}-item-content`]:{minHeight:o(t.controlHeightLG).mul(1.2).equal()}}},[`&${e}-alternate, + &${e}-right, + &${e}-label`]:{[`${e}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:o(t.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:o(t.tailWidth).div(2).equal()}},"&-left":{[`${e}-item-content`]:{insetInlineStart:`calc(50% - ${(0,H.bf)(t.marginXXS)})`,width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"start"}},"&-right":{[`${e}-item-content`]:{width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${e}-right`]:{[`${e}-item-right`]:{[`${e}-item-tail, + ${e}-item-head, + ${e}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,H.bf)(o(o(t.itemHeadSize).add(t.tailWidth)).div(2).equal())})`},[`${e}-item-content`]:{width:`calc(100% - ${(0,H.bf)(o(t.itemHeadSize).add(t.marginXS).equal())})`}}},[`&${e}-pending + ${e}-item-last + ${e}-item-tail`]:{display:"block",height:`calc(100% - ${(0,H.bf)(t.margin)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} dotted ${t.tailColor}`},[`&${e}-reverse + ${e}-item-last + ${e}-item-tail`]:{display:"none"},[`&${e}-reverse ${e}-item-pending`]:{[`${e}-item-tail`]:{insetBlockStart:t.margin,display:"block",height:`calc(100% - ${(0,H.bf)(t.margin)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} dotted ${t.tailColor}`},[`${e}-item-content`]:{minHeight:o(t.controlHeightLG).mul(1.2).equal()}},[`&${e}-label`]:{[`${e}-item-label`]:{position:"absolute",insetBlockStart:o(o(t.fontSize).mul(t.lineHeight).sub(t.fontSize)).mul(-1).add(t.tailWidth).equal(),width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"end"},[`${e}-item-right`]:{[`${e}-item-label`]:{insetInlineStart:`calc(50% + ${(0,H.bf)(t.marginSM)})`,width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${e}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},bu=t=>({tailColor:t.colorSplit,tailWidth:t.lineWidthBold,dotBorderWidth:t.wireframe?t.lineWidthBold:t.lineWidth*3,dotBg:t.colorBgContainer,itemPaddingBottom:t.padding*1.25});var yu=(0,At.I$)("Timeline",t=>{const e=(0,ke.TS)(t,{itemHeadSize:10,customHeadPaddingVertical:t.paddingXXS,paddingInlineEnd:2});return[pu(e)]},bu),Cu=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{prefixCls:e,className:o,color:s="blue",dot:r,pending:m=!1,position:f,label:g,children:v}=t,h=Cu(t,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:p}=l.useContext(pe.E_),b=p("timeline",e),R=Z()(`${b}-item`,{[`${b}-item-pending`]:m},o),X=/blue|red|green|gray/.test(s||"")?void 0:s,L=Z()(`${b}-item-head`,{[`${b}-item-head-custom`]:!!r,[`${b}-item-head-${s}`]:!X});return l.createElement("li",Object.assign({},h,{className:R}),g&&l.createElement("div",{className:`${b}-item-label`},g),l.createElement("div",{className:`${b}-item-tail`}),l.createElement("div",{className:L,style:{borderColor:X,color:X}},r),l.createElement("div",{className:`${b}-item-content`},v))},Su=a(58516),$c=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{prefixCls:e,className:o,pending:s=!1,children:r,items:m,rootClassName:f,reverse:g=!1,direction:v,hashId:h,pendingDot:p,mode:b=""}=t,R=$c(t,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(Ke,wt)=>b==="alternate"?Ke==="right"?`${e}-item-right`:Ke==="left"?`${e}-item-left`:wt%2===0?`${e}-item-left`:`${e}-item-right`:b==="left"?`${e}-item-left`:b==="right"?`${e}-item-right`:Ke==="right"?`${e}-item-right`:"",L=(0,I.Z)(m||[]),U=typeof s=="boolean"?null:s;s&&L.push({pending:!!s,dot:p||l.createElement(Su.Z,null),children:U}),g&&L.reverse();const ee=L.length,Se=`${e}-item-last`,we=L.filter(Ke=>!!Ke).map((Ke,wt)=>{var gt;const Bt=wt===ee-2?Se:"",zt=wt===ee-1?Se:"",{className:Sn}=Ke,gr=$c(Ke,["className"]);return l.createElement(Ic,Object.assign({},gr,{className:Z()([Sn,!g&&s?Bt:zt,X((gt=Ke==null?void 0:Ke.position)!==null&>!==void 0?gt:"",wt)]),key:(Ke==null?void 0:Ke.key)||wt}))}),Ce=L.some(Ke=>!!(Ke!=null&&Ke.label)),Ne=Z()(e,{[`${e}-pending`]:!!s,[`${e}-reverse`]:!!g,[`${e}-${b}`]:!!b&&!Ce,[`${e}-label`]:Ce,[`${e}-rtl`]:v==="rtl"},o,f,h);return l.createElement("ul",Object.assign({},R,{className:Ne}),we)};function Pu(t,e){return t&&Array.isArray(t)?t:(0,qe.Z)(e).map(o=>{var s,r;return Object.assign({children:(r=(s=o==null?void 0:o.props)===null||s===void 0?void 0:s.children)!==null&&r!==void 0?r:""},o.props)})}var wu=Pu,Eu=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{getPrefixCls:e,direction:o,timeline:s}=l.useContext(pe.E_),{prefixCls:r,children:m,items:f,className:g,style:v}=t,h=Eu(t,["prefixCls","children","items","className","style"]),p=e("timeline",r),b=(0,x.Z)(p),[R,X]=yu(p,b),L=wu(f,m);return R(l.createElement(xu,Object.assign({},h,{className:Z()(s==null?void 0:s.className,g,b),style:Object.assign(Object.assign({},s==null?void 0:s.style),v),prefixCls:p,direction:o,items:L,hashId:X})))};Rc.Item=Ic;var Ou=Rc,Zu=Ou,Mc=a(89337),bl=a(77189),Iu=a(7748);function $u(t){var e=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,s=t.getBoundingClientRect(),r=s.top,m=s.right,f=s.bottom,g=s.left;return r>=0&&g>=0&&m<=e&&f<=o}function Ru(t,e,o){var s;return(s=o!=null?o:e)!==null&&s!==void 0?s:t===null?"center":"bottom"}function Mu(t,e,o,s){var r=(0,l.useState)(void 0),m=(0,Er.Z)(r,2),f=m[0],g=m[1];(0,bl.Z)(function(){var U=typeof t=="function"?t():t;g(U||null)});var v=(0,l.useState)(null),h=(0,Er.Z)(v,2),p=h[0],b=h[1],R=(0,Iu.Z)(function(){if(f){!$u(f)&&e&&f.scrollIntoView(s);var U=f.getBoundingClientRect(),ee=U.left,Se=U.top,we=U.width,Ce=U.height,Ne={left:ee,top:Se,width:we,height:Ce,radius:0};b(function(Ke){return JSON.stringify(Ke)!==JSON.stringify(Ne)?Ne:Ke})}else b(null)}),X=function(ee){var Se;return(Se=Array.isArray(o==null?void 0:o.offset)?o==null?void 0:o.offset[ee]:o==null?void 0:o.offset)!==null&&Se!==void 0?Se:6};(0,bl.Z)(function(){return R(),window.addEventListener("resize",R),function(){window.removeEventListener("resize",R)}},[f,e,R]);var L=(0,l.useMemo)(function(){if(!p)return p;var U=X(0),ee=X(1),Se=(o==null?void 0:o.radius)||2;return{left:p.left-U,top:p.top-ee,width:p.width+U*2,height:p.height+ee*2,radius:Se}},[p,o]);return[L,f]}var Nu=a(66381),yl={fill:"transparent",pointerEvents:"auto"},Tu=function(e){var o=e.prefixCls,s=e.rootClassName,r=e.pos,m=e.showMask,f=e.style,g=f===void 0?{}:f,v=e.fill,h=v===void 0?"rgba(0,0,0,0.5)":v,p=e.open,b=e.animated,R=e.zIndex,X=(0,Nu.Z)(),L="".concat(o,"-mask-").concat(X),U=(0,Ln.Z)(b)==="object"?b==null?void 0:b.placeholder:b;return l.createElement(Mc.Z,{open:p,autoLock:!0},l.createElement("div",{className:Z()("".concat(o,"-mask"),s),style:(0,N.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:R,pointerEvents:r?"none":"auto"},g)},m?l.createElement("svg",{style:{width:"100%",height:"100%"}},l.createElement("defs",null,l.createElement("mask",{id:L},l.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),r&&l.createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:U?"".concat(o,"-placeholder-animated"):""}))),l.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:h,mask:"url(#".concat(L,")")}),r&&l.createElement(l.Fragment,null,l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:"0",width:"100%",height:r.top})),l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:"0",width:r.left,height:"100%"})),l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:r.top+r.height,width:"100%",height:"calc(100vh - ".concat(r.top+r.height,"px)")})),l.createElement("rect",(0,et.Z)({},yl,{x:r.left+r.width,y:"0",width:"calc(100vw - ".concat(r.left+r.width,"px)"),height:"100%"})))):null))},Fu=Tu,tf={adjustX:1,adjustY:1},ju=[0,0],Nc={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 Tc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e={};return Object.keys(Nc).forEach(function(o){e[o]=(0,N.Z)((0,N.Z)({},Nc[o]),{},{autoArrow:t,targetOffset:ju})}),e}var nf=Tc();function Au(t){var e=t.prefixCls,o=t.current,s=t.total,r=t.title,m=t.description,f=t.onClose,g=t.onPrev,v=t.onNext,h=t.onFinish,p=t.className,b=t.closeIcon,R=b!==!1&&b!==null,X=b!==void 0&&b!==!0?b:l.createElement("span",{className:"".concat(e,"-close-x")},"\xD7");return l.createElement("div",{className:Z()("".concat(e,"-content"),p)},l.createElement("div",{className:"".concat(e,"-inner")},R&&l.createElement("button",{type:"button",onClick:f,"aria-label":"Close",className:"".concat(e,"-close")},X),l.createElement("div",{className:"".concat(e,"-header")},l.createElement("div",{className:"".concat(e,"-title")},r)),l.createElement("div",{className:"".concat(e,"-description")},m),l.createElement("div",{className:"".concat(e,"-footer")},l.createElement("div",{className:"".concat(e,"-sliders")},s>1?(0,I.Z)(Array.from({length:s}).keys()).map(function(L,U){return l.createElement("span",{key:L,className:U===o?"active":""})}):null),l.createElement("div",{className:"".concat(e,"-buttons")},o!==0?l.createElement("button",{className:"".concat(e,"-prev-btn"),onClick:g},"Prev"):null,o===s-1?l.createElement("button",{className:"".concat(e,"-finish-btn"),onClick:h},"Finish"):l.createElement("button",{className:"".concat(e,"-next-btn"),onClick:v},"Next")))))}var Du=function(e){var o=e.current,s=e.renderPanel;return l.createElement(l.Fragment,null,typeof s=="function"?s(e,o):l.createElement(Au,e))},Lu=Du,Bu=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Hu={left:"50%",top:"50%",width:1,height:1},zu=function(e){var o=e.prefixCls,s=o===void 0?"rc-tour":o,r=e.steps,m=r===void 0?[]:r,f=e.defaultCurrent,g=e.current,v=e.onChange,h=e.onClose,p=e.onFinish,b=e.open,R=e.mask,X=R===void 0?!0:R,L=e.arrow,U=L===void 0?!0:L,ee=e.rootClassName,Se=e.placement,we=e.renderPanel,Ce=e.gap,Ne=e.animated,Ke=e.scrollIntoViewOptions,wt=Ke===void 0?!0:Ke,gt=e.zIndex,Bt=gt===void 0?1001:gt,zt=e.closeIcon,Sn=(0,zn.Z)(e,Bu),gr=l.useRef(),Dn=(0,nt.Z)(0,{value:g,defaultValue:f}),pr=(0,Er.Z)(Dn,2),lr=pr[0],or=pr[1],Ir=(0,nt.Z)(void 0,{value:b,postState:function(Ma){return lr<0||lr>=m.length?!1:Ma!=null?Ma:!0}}),$r=(0,Er.Z)(Ir,2),Sr=$r[0],kr=$r[1],Rr=l.useRef(Sr);(0,bl.Z)(function(){Sr&&!Rr.current&&or(0),Rr.current=Sr},[Sr]);var Vr=m[lr]||{},Dr=Vr.target,ma=Vr.placement,Wr=Vr.style,ra=Vr.arrow,ga=Vr.className,va=Vr.mask,la=Vr.scrollIntoViewOptions,$a=Vr.closeIcon,Ca=Sr&&(va!=null?va:X),pa=$a!=null?$a:zt,Br=la!=null?la:wt,Fn=Mu(Dr,b,Ce,Br),mr=(0,Er.Z)(Fn,2),Pr=mr[0],Zn=mr[1],sr=Ru(Zn,Se,ma),cr=Zn?typeof ra=="undefined"?U:ra:!1,ca=(0,Ln.Z)(cr)==="object"?cr.pointAtCenter:!1;(0,bl.Z)(function(){var Oa;(Oa=gr.current)===null||Oa===void 0||Oa.forceAlign()},[ca,lr]);var xa=function(Ma){or(Ma),v==null||v(Ma)};if(Zn===void 0)return null;var Sa=function(){kr(!1),h==null||h(lr)},Va=function(){return l.createElement(Lu,(0,et.Z)({arrow:cr,key:"content",prefixCls:s,total:m.length,renderPanel:we,onPrev:function(){xa(lr-1)},onNext:function(){xa(lr+1)},onClose:Sa,current:lr,onFinish:function(){Sa(),p==null||p()},closeIcon:pa},m[lr]))},eo=typeof Ca=="boolean"?Ca:!!Ca,Ya=typeof Ca=="boolean"?void 0:Ca,To=function(Ma){return Ma||Zn||document.body};return l.createElement(l.Fragment,null,l.createElement(Fu,{zIndex:Bt,prefixCls:s,pos:Pr,showMask:eo,style:Ya==null?void 0:Ya.style,fill:Ya==null?void 0:Ya.color,open:Sr,animated:Ne,rootClassName:ee}),l.createElement(vl.Z,(0,et.Z)({builtinPlacements:Tc(ca)},Sn,{ref:gr,popupStyle:Wr,popupPlacement:sr,popupVisible:Sr,popupClassName:Z()(ee,ga),prefixCls:s,popup:Va,forceRender:!1,destroyPopupOnHide:!0,zIndex:Bt,getTriggerDOMNode:To,arrow:!!cr}),l.createElement(Mc.Z,{open:Sr,autoLock:!0},l.createElement("div",{className:Z()(ee,"".concat(s,"-target-placeholder")),style:(0,N.Z)((0,N.Z)({},Pr||Hu),{},{position:"fixed",pointerEvents:"none"})}))))},Wu=zu,Vu=Wu,ku=a(44917),Uu=a(37417),tc=a(59848),Ku=a(7551);function nc(t){return t!=null}var Fc=t=>{let{stepProps:e,current:o,type:s,indicatorsRender:r,closeIcon:m}=t;var f,g;const{prefixCls:v,total:h=1,title:p,onClose:b,onPrev:R,onNext:X,onFinish:L,cover:U,description:ee,nextButtonProps:Se,prevButtonProps:we,type:Ce,closeIcon:Ne}=e,Ke=Ce!=null?Ce:s,wt=Ne!=null?Ne:m,gt=wt!==!1&&wt!==null,[Bt,zt]=(0,Ku.Z)(gt,wt,Rr=>l.createElement("span",{onClick:b,"aria-label":"Close",className:`${v}-close`},Rr),l.createElement(cl.Z,{className:`${v}-close-icon`}),!0),Sn=o===h-1,gr=()=>{var Rr;R==null||R(),(Rr=we==null?void 0:we.onClick)===null||Rr===void 0||Rr.call(we)},Dn=()=>{var Rr;Sn?L==null||L():X==null||X(),(Rr=Se==null?void 0:Se.onClick)===null||Rr===void 0||Rr.call(Se)},pr=nc(p)?l.createElement("div",{className:`${v}-header`},l.createElement("div",{className:`${v}-title`},p)):null,lr=nc(ee)?l.createElement("div",{className:`${v}-description`},ee):null,or=nc(U)?l.createElement("div",{className:`${v}-cover`},U):null;let Ir;r?Ir=r(o,h):Ir=(0,I.Z)(Array.from({length:h}).keys()).map((Rr,Vr)=>l.createElement("span",{key:Rr,className:Z()(Vr===o&&`${v}-indicator-active`,`${v}-indicator`)}));const $r=Ke==="primary"?"default":"primary",Sr={type:"default",ghost:Ke==="primary"},[kr]=(0,Fe.Z)("Tour",tc.Z.Tour);return l.createElement("div",{className:`${v}-content`},l.createElement("div",{className:`${v}-inner`},Bt&&zt,or,pr,lr,l.createElement("div",{className:`${v}-footer`},h>1&&l.createElement("div",{className:`${v}-indicators`},Ir),l.createElement("div",{className:`${v}-buttons`},o!==0?l.createElement($t.ZP,Object.assign({},Sr,we,{onClick:gr,size:"small",className:Z()(`${v}-prev-btn`,we==null?void 0:we.className)}),(f=we==null?void 0:we.children)!==null&&f!==void 0?f:kr==null?void 0:kr.Previous):null,l.createElement($t.ZP,Object.assign({type:$r},Se,{onClick:Dn,size:"small",className:Z()(`${v}-next-btn`,Se==null?void 0:Se.className)}),(g=Se==null?void 0:Se.children)!==null&&g!==void 0?g:Sn?kr==null?void 0:kr.Finish:kr==null?void 0:kr.Next)))))},Yu=a(58889),rc=a(42268),Xu=a(22297);const Gu=t=>{const{componentCls:e,lineHeight:o,padding:s,paddingXS:r,borderRadius:m,borderRadiusXS:f,colorPrimary:g,colorText:v,colorFill:h,indicatorHeight:p,indicatorWidth:b,boxShadowTertiary:R,tourZIndexPopup:X,fontSize:L,colorBgElevated:U,fontWeightStrong:ee,marginXS:Se,colorTextLightSolid:we,tourBorderRadius:Ce,colorWhite:Ne,primaryNextBtnHoverBg:Ke,closeBtnSize:wt,motionDurationSlow:gt,antCls:Bt,primaryPrevBtnBg:zt}=t;return[{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{color:v,position:"absolute",zIndex:X,display:"block",visibility:"visible",fontSize:L,lineHeight:o,width:520,"--antd-arrow-background-color":U,"&-pure":{maxWidth:"100%",position:"relative"},[`&${e}-hidden`]:{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Ce,boxShadow:R,position:"relative",backgroundColor:U,border:"none",backgroundClip:"padding-box",[`${e}-close`]:{position:"absolute",top:s,insetInlineEnd:s,color:t.colorIcon,outline:"none",width:wt,height:wt,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:t.colorIconHover,backgroundColor:t.closeBtnHoverBg}},[`${e}-cover`]:{textAlign:"center",padding:`${(0,H.bf)(t.calc(s).add(wt).add(r).equal())} ${(0,H.bf)(s)} 0`,img:{width:"100%"}},[`${e}-header`]:{padding:`${(0,H.bf)(s)} ${(0,H.bf)(s)} ${(0,H.bf)(r)}`,[`${e}-title`]:{lineHeight:o,fontSize:L,fontWeight:ee}},[`${e}-description`]:{padding:`0 ${(0,H.bf)(s)}`,lineHeight:o,wordWrap:"break-word"},[`${e}-footer`]:{padding:`${(0,H.bf)(r)} ${(0,H.bf)(s)} ${(0,H.bf)(s)}`,textAlign:"end",borderRadius:`0 0 ${(0,H.bf)(f)} ${(0,H.bf)(f)}`,display:"flex",[`${e}-indicators`]:{display:"inline-block",[`${e}-indicator`]:{width:b,height:p,display:"inline-block",borderRadius:"50%",background:h,"&:not(:last-child)":{marginInlineEnd:p},"&-active":{background:g}}},[`${e}-buttons`]:{marginInlineStart:"auto",[`${Bt}-btn`]:{marginInlineStart:Se}}}},[`${e}-primary, &${e}-primary`]:{"--antd-arrow-background-color":g,[`${e}-inner`]:{color:we,textAlign:"start",textDecoration:"none",backgroundColor:g,borderRadius:m,boxShadow:R,[`${e}-close`]:{color:we},[`${e}-indicators`]:{[`${e}-indicator`]:{background:zt,"&-active":{background:we}}},[`${e}-prev-btn`]:{color:we,borderColor:zt,backgroundColor:g,"&:hover":{backgroundColor:zt,borderColor:"transparent"}},[`${e}-next-btn`]:{color:g,borderColor:"transparent",background:Ne,"&:hover":{background:Ke}}}}}),[`${e}-mask`]:{[`${e}-placeholder-animated`]:{transition:`all ${gt}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:t.min(Ce,rc.qN)}}},(0,rc.ZP)(t,"var(--antd-arrow-background-color)")]},Qu=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70,closeBtnSize:t.fontSize*t.lineHeight,primaryPrevBtnBg:new _o.C(t.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:t.wireframe?"transparent":t.colorFillContent,primaryNextBtnHoverBg:new _o.C(t.colorBgTextHover).onBackground(t.colorWhite).toRgbString()},(0,rc.wZ)({contentRadius:t.borderRadiusLG,limitVerticalRadius:!0})),(0,Xu.w)(t));var jc=(0,At.I$)("Tour",t=>{const{borderRadiusLG:e}=t,o=(0,ke.TS)(t,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:e});return[Gu(o)]},Qu),Ju=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,current:o=0,total:s=6,className:r,style:m,type:f}=t,g=Ju(t,["prefixCls","current","total","className","style","type"]),{getPrefixCls:v}=l.useContext(pe.E_),h=v("tour",e),[p,b]=jc(h);return p(l.createElement(Yu.t5,{prefixCls:h,hashId:b,className:Z()(r,`${h}-pure`,f&&`${h}-${f}`),style:m},l.createElement(Fc,{stepProps:Object.assign(Object.assign({},g),{prefixCls:h,total:s}),current:o,type:f})))};var _u=(0,me.i)(qu),ed=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,type:o,rootClassName:s,indicatorsRender:r,steps:m}=t,f=ed(t,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:g,direction:v}=(0,l.useContext)(pe.E_),h=g("tour",e),[p,b]=jc(h),[,R]=(0,Zo.ZP)(),X=(0,l.useMemo)(()=>m==null?void 0:m.map(Ce=>{var Ne;return Object.assign(Object.assign({},Ce),{className:Z()(Ce.className,{[`${h}-primary`]:((Ne=Ce.type)!==null&&Ne!==void 0?Ne:o)==="primary"})})}),[m,o]),L=(0,ku.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:R.marginXXS,arrowWidth:R.sizePopupArrow,borderRadius:R.borderRadius}),U=Z()({[`${h}-rtl`]:v==="rtl"},b,s),ee=(Ce,Ne)=>l.createElement(Fc,{type:o,stepProps:Ce,current:Ne,indicatorsRender:r}),[Se,we]=(0,mt.Cn)("Tour",f.zIndex);return p(l.createElement(Uu.Z.Provider,{value:we},l.createElement(Vu,Object.assign({},f,{zIndex:Se,rootClassName:U,prefixCls:h,animated:!0,renderPanel:ee,builtinPlacements:L,steps:X}))))};Ac._InternalPanelDoNotUseOrYouWillBeFired=_u;var td=Ac,Dc=a(85556);const Cl=t=>{const e=new Map;return t.forEach((o,s)=>{e.set(o,s)}),e},nd=t=>{const e=new Map;return t.forEach((o,s)=>{let{disabled:r,key:m}=o;r&&e.set(m,s)}),e};function rd(t,e,o){const s=l.useMemo(()=>(t||[]).map(f=>(e&&(f=Object.assign(Object.assign({},f),{key:e(f)})),f)),[t,e]),[r,m]=l.useMemo(()=>{const f=[],g=new Array((o||[]).length),v=Cl(o||[]);return s.forEach(h=>{v.has(h.key)?g[v.get(h.key)]=h:f.push(h)}),[f,g]},[s,o,e]);return[s,r,m]}var ad=rd;const od=[];function Yo(t,e){const o=t.filter(s=>e.has(s));return t.length===o.length?t:o}function Lc(t){return Array.from(t).join(";")}function id(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:od;const[s,r]=l.useMemo(()=>[new Set(t.map(h=>h.key)),new Set(e.map(h=>h.key))],[t,e]),[m,f]=l.useState(()=>Yo(o,s)),[g,v]=l.useState(()=>Yo(o,r));return l.useEffect(()=>{f(Yo(o,s)),v(Yo(o,r))},[o]),l.useEffect(()=>{f(Yo(m,s)),v(Yo(g,r))},[Lc(s),Lc(r)]),[m,g,f,v]}var ld=a(85824),sd=a(22717),cd=a(39669);const ud=t=>{const{renderedText:e,renderedEl:o,item:s,checked:r,disabled:m,prefixCls:f,onClick:g,onRemove:v,showRemove:h}=t,p=Z()(`${f}-content-item`,{[`${f}-content-item-disabled`]:m||s.disabled,[`${f}-content-item-checked`]:r});let b;(typeof e=="string"||typeof e=="number")&&(b=String(e));const[R]=(0,Fe.Z)("Transfer",tc.Z.Transfer),X={className:p,title:b},L=l.createElement("span",{className:`${f}-content-item-text`},o);return h?l.createElement("li",Object.assign({},X),L,l.createElement(cd.Z,{disabled:m||s.disabled,className:`${f}-content-item-remove`,"aria-label":R==null?void 0:R.remove,onClick:()=>{v==null||v(s)}},l.createElement(sd.Z,null))):(X.onClick=m||s.disabled?void 0:U=>g(s,U),l.createElement("li",Object.assign({},X),l.createElement(dr.Z,{className:`${f}-checkbox`,checked:r,disabled:m||s.disabled}),L))};var dd=l.memo(ud);const fd=["handleFilter","handleClear","checkedKeys"],vd=t=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),t),md=(t,e)=>{const{prefixCls:o,filteredRenderItems:s,selectedKeys:r,disabled:m,showRemove:f,pagination:g,onScroll:v,onItemSelect:h,onItemRemove:p}=t,[b,R]=l.useState(1),X=l.useMemo(()=>g?vd(typeof g=="object"?g:{}):null,[g]),[L,U]=(0,nt.Z)(10,{value:X==null?void 0:X.pageSize});l.useEffect(()=>{if(X){const gt=Math.ceil(s.length/L);R(Math.min(b,gt))}},[s,X,L]);const ee=(gt,Bt)=>{h(gt.key,!r.includes(gt.key),Bt)},Se=gt=>{p==null||p([gt.key])},we=gt=>{R(gt)},Ce=(gt,Bt)=>{R(gt),U(Bt)},Ne=l.useMemo(()=>X?s.slice((b-1)*L,b*L):s,[b,s,X,L]);l.useImperativeHandle(e,()=>({items:Ne}));const Ke=X?l.createElement(ja.Z,{size:"small",disabled:m,simple:X.simple,pageSize:L,showLessItems:X.showLessItems,showSizeChanger:X.showSizeChanger,className:`${o}-pagination`,total:s.length,current:b,onChange:we,onShowSizeChange:Ce}):null,wt=Z()(`${o}-content`,{[`${o}-content-show-remove`]:f});return l.createElement(l.Fragment,null,l.createElement("ul",{className:wt,onScroll:v},(Ne||[]).map(gt=>{let{renderedEl:Bt,renderedText:zt,item:Sn}=gt;return l.createElement(dd,{key:Sn.key,item:Sn,renderedText:zt,renderedEl:Bt,prefixCls:o,showRemove:f,onClick:ee,onRemove:Se,checked:r.includes(Sn.key),disabled:m||Sn.disabled})})),Ke)};var hd=l.forwardRef(md),gd=a(61020),Bc=t=>{const{placeholder:e="",value:o,prefixCls:s,disabled:r,onChange:m,handleClear:f}=t,g=l.useCallback(v=>{m==null||m(v),v.target.value===""&&(f==null||f())},[m]);return l.createElement(io.Z,{placeholder:e,className:s,value:o,onChange:g,disabled:r,allowClear:!0,prefix:l.createElement(gd.Z,null)})};const pd=()=>null;function bd(t){return!!(t&&!(0,It.l$)(t)&&Object.prototype.toString.call(t)==="[object Object]")}function bi(t){return t.filter(e=>!e.disabled).map(e=>e.key)}const yd=t=>t!==void 0;var ac=t=>{const{prefixCls:e,dataSource:o=[],titleText:s="",checkedKeys:r,disabled:m,showSearch:f=!1,style:g,searchPlaceholder:v,notFoundContent:h,selectAll:p,selectCurrent:b,selectInvert:R,removeAll:X,removeCurrent:L,showSelectAll:U=!0,showRemove:ee,pagination:Se,direction:we,itemsUnit:Ce,itemUnit:Ne,selectAllLabel:Ke,selectionsIcon:wt,footer:gt,renderList:Bt,onItemSelectAll:zt,onItemRemove:Sn,handleFilter:gr,handleClear:Dn,filterOption:pr,render:lr=pd}=t,[or,Ir]=(0,l.useState)(""),$r=(0,l.useRef)({}),Sr=Zn=>{Ir(Zn.target.value),gr(Zn)},kr=()=>{Ir(""),Dn()},Rr=(Zn,sr)=>pr?pr(or,sr,we):Zn.includes(or),Vr=Zn=>{let sr=Bt?Bt(Object.assign(Object.assign({},Zn),{onItemSelect:(ca,xa)=>Zn.onItemSelect(ca,xa)})):null;const cr=!!sr;return cr||(sr=l.createElement(hd,Object.assign({ref:$r},Zn))),{customize:cr,bodyContent:sr}},Dr=Zn=>{const sr=lr(Zn),cr=bd(sr);return{item:Zn,renderedEl:cr?sr.label:sr,renderedText:cr?sr.value:sr}},ma=(0,l.useMemo)(()=>Array.isArray(h)?h[we==="left"?0:1]:h,[h,we]),[Wr,ra]=(0,l.useMemo)(()=>{const Zn=[],sr=[];return o.forEach(cr=>{const ca=Dr(cr);or&&!Rr(ca.renderedText,cr)||(Zn.push(cr),sr.push(ca))}),[Zn,sr]},[o,or]),ga=(0,l.useMemo)(()=>{if(r.length===0)return"none";const Zn=Cl(r);return Wr.every(sr=>Zn.has(sr.key)||!!sr.disabled)?"all":"part"},[r,Wr]),va=(0,l.useMemo)(()=>{const Zn=f?l.createElement("div",{className:`${e}-body-search-wrapper`},l.createElement(Bc,{prefixCls:`${e}-search`,onChange:Sr,handleClear:kr,placeholder:v,value:or,disabled:m})):null,{customize:sr,bodyContent:cr}=Vr(Object.assign(Object.assign({},(0,yt.Z)(t,fd)),{filteredItems:Wr,filteredRenderItems:ra,selectedKeys:r}));let ca;return sr?ca=l.createElement("div",{className:`${e}-body-customize-wrapper`},cr):ca=Wr.length?cr:l.createElement("div",{className:`${e}-body-not-found`},ma),l.createElement("div",{className:Z()(f?`${e}-body ${e}-body-with-search`:`${e}-body`)},Zn,ca)},[f,e,v,or,m,r,Wr,ra,ma]),la=l.createElement(dr.Z,{disabled:o.length===0||m,checked:ga==="all",indeterminate:ga==="part",className:`${e}-checkbox`,onChange:()=>{zt==null||zt(Wr.filter(Zn=>!Zn.disabled).map(Zn=>{let{key:sr}=Zn;return sr}),ga!=="all")}}),$a=(Zn,sr)=>{if(Ke)return typeof Ke=="function"?Ke({selectedCount:Zn,totalCount:sr}):Ke;const cr=sr>1?Ce:Ne;return l.createElement(l.Fragment,null,(Zn>0?`${Zn}/`:"")+sr," ",cr)},Ca=gt&&(gt.length<2?gt(t):gt(t,{direction:we})),pa=Z()(e,{[`${e}-with-pagination`]:!!Se,[`${e}-with-footer`]:!!Ca}),Br=Ca?l.createElement("div",{className:`${e}-footer`},Ca):null,Fn=!ee&&!Se&&la;let mr;ee?mr=[Se?{key:"removeCurrent",label:L,onClick(){var Zn;const sr=bi((((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[]).map(cr=>cr.item));Sn==null||Sn(sr)}}:null,{key:"removeAll",label:X,onClick(){Sn==null||Sn(bi(Wr))}}].filter(Boolean):mr=[{key:"selectAll",label:p,onClick(){const Zn=bi(Wr);zt==null||zt(Zn,Zn.length!==r.length)}},Se?{key:"selectCurrent",label:b,onClick(){var Zn;const sr=((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[];zt==null||zt(bi(sr.map(cr=>cr.item)),!0)}}:null,{key:"selectInvert",label:R,onClick(){var Zn;const sr=bi(Se?(((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[]).map(Sa=>Sa.item):Wr),cr=new Set(r),ca=[],xa=[];sr.forEach(Sa=>{cr.has(Sa)?xa.push(Sa):ca.push(Sa)}),zt==null||zt(ca,"replace")}}];const Pr=l.createElement(Qi.Z,{className:`${e}-header-dropdown`,menu:{items:mr},disabled:m},yd(wt)?wt:l.createElement(ld.Z,null));return l.createElement("div",{className:pa,style:g},l.createElement("div",{className:`${e}-header`},U?l.createElement(l.Fragment,null,Fn,Pr):null,l.createElement("span",{className:`${e}-header-selected`},$a(r.length,Wr.length)),l.createElement("span",{className:`${e}-header-title`},s)),va,Br)},Hc=a(70474),zc=t=>{const{disabled:e,moveToLeft:o,moveToRight:s,leftArrowText:r="",rightArrowText:m="",leftActive:f,rightActive:g,className:v,style:h,direction:p,oneWay:b}=t;return l.createElement("div",{className:v,style:h},l.createElement($t.ZP,{type:"primary",size:"small",disabled:e||!g,onClick:s,icon:p!=="rtl"?l.createElement(ta.Z,null):l.createElement(Hc.Z,null)},m),!b&&l.createElement($t.ZP,{type:"primary",size:"small",disabled:e||!f,onClick:o,icon:p!=="rtl"?l.createElement(Hc.Z,null):l.createElement(ta.Z,null)},r))};const Cd=t=>{const{antCls:e,componentCls:o,listHeight:s,controlHeightLG:r,marginXXS:m,margin:f}=t,g=`${e}-table`,v=`${e}-input`;return{[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:s},[`${g}-wrapper`]:{[`${g}-small`]:{border:0,borderRadius:0,[`${g}-selection-column`]:{width:r,minWidth:r}},[`${g}-pagination${g}-pagination`]:{margin:`${(0,H.bf)(f)} 0 ${(0,H.bf)(m)}`}},[`${v}[disabled]`]:{backgroundColor:"transparent"}}}},Wc=(t,e)=>{const{componentCls:o,colorBorder:s}=t;return{[`${o}-list`]:{borderColor:e,"&-search:not([disabled])":{borderColor:s}}}},Sd=t=>{const{componentCls:e}=t;return{[`${e}-status-error`]:Object.assign({},Wc(t,t.colorError)),[`${e}-status-warning`]:Object.assign({},Wc(t,t.colorWarning))}},xd=t=>{const{componentCls:e,colorBorder:o,colorSplit:s,lineWidth:r,itemHeight:m,headerHeight:f,transferHeaderVerticalPadding:g,itemPaddingBlock:v,controlItemBgActive:h,colorTextDisabled:p,listHeight:b,listWidth:R,listWidthLG:X,fontSizeIcon:L,marginXS:U,paddingSM:ee,lineType:Se,antCls:we,iconCls:Ce,motionDurationSlow:Ne,controlItemBgHover:Ke,borderRadiusLG:wt,colorBgContainer:gt,colorText:Bt,controlItemBgActiveHover:zt}=t;return{display:"flex",flexDirection:"column",width:R,height:b,border:`${(0,H.bf)(r)} ${Se} ${o}`,borderRadius:t.borderRadiusLG,"&-with-pagination":{width:X,height:"auto"},"&-search":{[`${Ce}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:f,padding:`${(0,H.bf)(t.calc(g).sub(r).equal())} ${(0,H.bf)(ee)} ${(0,H.bf)(g)}`,color:Bt,background:gt,borderBottom:`${(0,H.bf)(r)} ${Se} ${s}`,borderRadius:`${(0,H.bf)(wt)} ${(0,H.bf)(wt)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},it.vS),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:L,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:t.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:ee}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:m,padding:`${(0,H.bf)(v)} ${(0,H.bf)(ee)}`,transition:`all ${Ne}`,"> *:not(:last-child)":{marginInlineEnd:U},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},it.vS),{flex:"auto"}),"&-remove":{position:"relative",color:o,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:t.colorLinkHover},"&::after":{position:"absolute",inset:`-${(0,H.bf)(v)} -50%`,content:'""'}},[`&:not(${e}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:Ke,cursor:"pointer"},[`&${e}-list-content-item-checked:hover`]:{backgroundColor:zt}},"&-checked":{backgroundColor:h},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${e}-list-content-item:not(${e}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${(0,H.bf)(t.paddingXS)} 0`,textAlign:"end",borderTop:`${(0,H.bf)(r)} ${Se} ${s}`,[`${we}-pagination-options`]:{paddingInlineEnd:t.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${(0,H.bf)(r)} ${Se} ${s}`},"&-checkbox":{lineHeight:1}}},Pd=t=>{const{antCls:e,iconCls:o,componentCls:s,marginXS:r,marginXXS:m,fontSizeIcon:f,colorBgContainerDisabled:g}=t;return{[s]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"relative",display:"flex",alignItems:"stretch",[`${s}-disabled`]:{[`${s}-list`]:{background:g}},[`${s}-list`]:xd(t),[`${s}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${(0,H.bf)(r)}`,verticalAlign:"middle",[`${e}-btn`]:{display:"block","&:first-child":{marginBottom:m},[o]:{fontSize:f}}}})}},wd=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{direction:"rtl"}}},Ed=t=>{const{fontSize:e,lineHeight:o,controlHeight:s,controlHeightLG:r,lineWidth:m}=t,f=Math.round(e*o);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:r,itemHeight:s,itemPaddingBlock:(s-f)/2,transferHeaderVerticalPadding:Math.ceil((r-m-f)/2)}};var Od=(0,At.I$)("Transfer",t=>{const e=(0,ke.TS)(t);return[Pd(e),Cd(e),Sd(e),wd(e)]},Ed);const Sl=t=>{const{dataSource:e,targetKeys:o=[],selectedKeys:s,selectAllLabels:r=[],operations:m=[],style:f={},listStyle:g={},locale:v={},titles:h,disabled:p,showSearch:b=!1,operationStyle:R,showSelectAll:X,oneWay:L,pagination:U,status:ee,prefixCls:Se,className:we,rootClassName:Ce,selectionsIcon:Ne,filterOption:Ke,render:wt,footer:gt,children:Bt,rowKey:zt,onScroll:Sn,onChange:gr,onSearch:Dn,onSelectChange:pr}=t,{getPrefixCls:lr,renderEmpty:or,direction:Ir,transfer:$r}=(0,l.useContext)(pe.E_),Sr=lr("transfer",Se),[kr,Rr]=Od(Sr),[Vr,Dr,ma]=ad(e,zt,o),[Wr,ra,ga,va]=id(Dr,ma,s),[la,$a]=(0,Dc.Z)(hr=>hr.key),[Ca,pa]=(0,Dc.Z)(hr=>hr.key),Br=(0,l.useCallback)((hr,Hr)=>{if(hr==="left"){const fa=typeof Hr=="function"?Hr(Wr||[]):Hr;ga(fa)}else{const fa=typeof Hr=="function"?Hr(ra||[]):Hr;va(fa)}},[Wr,ra]),Fn=(hr,Hr)=>{(hr==="left"?$a:pa)(Hr)},mr=(0,l.useCallback)((hr,Hr)=>{hr==="left"?pr==null||pr(Hr,ra):pr==null||pr(Wr,Hr)},[Wr,ra]),Pr=hr=>{var Hr;return(Hr=h!=null?h:hr.titles)!==null&&Hr!==void 0?Hr:[]},Zn=hr=>{Sn==null||Sn("left",hr)},sr=hr=>{Sn==null||Sn("right",hr)},cr=hr=>{const Hr=hr==="right"?Wr:ra,fa=nd(Vr),Ha=Hr.filter(ua=>!fa.has(ua)),za=Cl(Ha),co=hr==="right"?Ha.concat(o):o.filter(ua=>!za.has(ua)),uo=hr==="right"?"left":"right";Br(uo,[]),mr(uo,[]),gr==null||gr(co,hr,Ha)},ca=()=>{cr("left"),Fn("left",null)},xa=()=>{cr("right"),Fn("right",null)},Sa=(hr,Hr,fa)=>{Br(hr,Ha=>{let za=[];if(fa==="replace")za=Hr;else if(fa)za=Array.from(new Set([].concat((0,I.Z)(Ha),(0,I.Z)(Hr))));else{const co=Cl(Hr);za=Ha.filter(uo=>!co.has(uo))}return mr(hr,za),za}),Fn(hr,null)},Va=(hr,Hr)=>{Sa("left",hr,Hr)},eo=(hr,Hr)=>{Sa("right",hr,Hr)},Ya=hr=>Dn==null?void 0:Dn("left",hr.target.value),To=hr=>Dn==null?void 0:Dn("right",hr.target.value),Oa=()=>Dn==null?void 0:Dn("left",""),Ma=()=>Dn==null?void 0:Dn("right",""),Xo=(hr,Hr,fa,Ha,za)=>{Hr.has(fa)&&(Hr.delete(fa),Fn(hr,null)),Ha&&(Hr.add(fa),Fn(hr,za))},to=(hr,Hr,fa,Ha)=>{(hr==="left"?la:Ca)(Ha,Hr,fa)},Go=(hr,Hr,fa,Ha)=>{const za=hr==="left",co=(0,I.Z)(za?Wr:ra),uo=new Set(co),ua=(0,I.Z)(za?Dr:ma).filter(da=>!da.disabled),Nr=ua.findIndex(da=>da.key===Hr);Ha&&co.length>0?to(hr,ua,uo,Nr):Xo(hr,uo,Hr,fa,Nr);const Ur=Array.from(uo);mr(hr,Ur),t.selectedKeys||Br(hr,Ur)},wo=(hr,Hr,fa)=>{Go("left",hr,Hr,fa==null?void 0:fa.shiftKey)},ic=(hr,Hr,fa)=>{Go("right",hr,Hr,fa==null?void 0:fa.shiftKey)},lc=hr=>{Br("right",[]),gr==null||gr(o.filter(Hr=>!hr.includes(Hr)),"left",(0,I.Z)(hr))},Fo=hr=>typeof g=="function"?g({direction:hr}):g||{},Eo=(0,l.useContext)(je.aM),{hasFeedback:yi,status:Qo}=Eo,Ci=hr=>Object.assign(Object.assign(Object.assign({},hr),{notFoundContent:(or==null?void 0:or("Transfer"))||l.createElement(Kn.Z,{componentName:"Transfer"})}),v),Si=(0,Ra.F)(Qo,ee),jo=!Bt&&U,sc=ra.length>0,cc=Wr.length>0,Oo=Z()(Sr,{[`${Sr}-disabled`]:p,[`${Sr}-customize-list`]:!!Bt,[`${Sr}-rtl`]:Ir==="rtl"},(0,Ra.Z)(Sr,Si,yi),$r==null?void 0:$r.className,we,Ce,Rr),[xl]=(0,Fe.Z)("Transfer",tc.Z.Transfer),xi=Ci(xl),[Pl,uc]=Pr(xi);return kr(l.createElement("div",{className:Oo,style:Object.assign(Object.assign({},$r==null?void 0:$r.style),f)},l.createElement(ac,Object.assign({prefixCls:`${Sr}-list`,titleText:Pl,dataSource:Dr,filterOption:Ke,style:Fo("left"),checkedKeys:Wr,handleFilter:Ya,handleClear:Oa,onItemSelect:wo,onItemSelectAll:Va,render:wt,showSearch:b,renderList:Bt,footer:gt,onScroll:Zn,disabled:p,direction:Ir==="rtl"?"right":"left",showSelectAll:X,selectAllLabel:r[0],pagination:jo,selectionsIcon:Ne},xi)),l.createElement(zc,{className:`${Sr}-operation`,rightActive:cc,rightArrowText:m[0],moveToRight:xa,leftActive:sc,leftArrowText:m[1],moveToLeft:ca,style:R,disabled:p,direction:Ir,oneWay:L}),l.createElement(ac,Object.assign({prefixCls:`${Sr}-list`,titleText:uc,dataSource:ma,filterOption:Ke,style:Fo("right"),checkedKeys:ra,handleFilter:To,handleClear:Ma,onItemSelect:ic,onItemSelectAll:eo,onItemRemove:lc,render:wt,showSearch:b,renderList:Bt,footer:gt,onScroll:sr,disabled:p,direction:Ir==="rtl"?"left":"right",showSelectAll:X,selectAllLabel:r[1],showRemove:L,pagination:jo,selectionsIcon:Ne},xi))))};Sl.List=ac,Sl.Search=Bc,Sl.Operation=zc;var Zd=Sl,Id=a(57976),$d=a(96238),Rd=a(52058),Md=a(86962),Nd=a(63945),sf=a(6574),cf=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"render",value:function(){return this.props.children}}]),o}(l.Component),uf=null,Td=a(63490),Fd={subtree:!0,childList:!0,attributeFilter:["style","class"]};function jd(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fd;l.useEffect(function(){if(!(!(0,Td.Z)()||!t)){var s,r=Array.isArray(t)?t:[t];return"MutationObserver"in window&&(s=new MutationObserver(e),r.forEach(function(m){s.observe(m,o)})),function(){var m,f;(m=s)===null||m===void 0||m.takeRecords(),(f=s)===null||f===void 0||f.disconnect()}}},[o,t])}var df=function(e){var o=e.children,s=e.options,r=e.onMutate,m=r===void 0?function(){}:r,f=useEvent(m),g=React.useRef(null),v=React.useRef(null),h=React.isValidElement(o)&&supportRef(o),p=useComposeRef(v,h?o.ref:null),b=React.useState(null),R=_slicedToArray(b,2),X=R[0],L=R[1];return useMutateObserver(X,f,s),useLayoutEffect(function(){L(findDOMNode(v.current)||findDOMNode(g.current))}),o?React.createElement(DomWrapper,{ref:g},h?React.cloneElement(o,{ref:p}):o):null},ff=null,vf=null,Ad=a(81554);const Vc=3;function oc(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=document.createElement("canvas"),r=s.getContext("2d"),m=t*o,f=e*o;return s.setAttribute("width",`${m}px`),s.setAttribute("height",`${f}px`),r.save(),[r,s,m,f]}function Dd(){function t(e,o,s,r,m,f,g,v){const[h,p,b,R]=oc(r,m,s);if(e instanceof HTMLImageElement)h.drawImage(e,0,0,b,R);else{const{color:Vr,fontSize:Dr,fontStyle:ma,fontWeight:Wr,fontFamily:ra,textAlign:ga}=f,va=Number(Dr)*s;h.font=`${ma} normal ${Wr} ${va}px/${m}px ${ra}`,h.fillStyle=Vr,h.textAlign=ga,h.textBaseline="top";const la=Array.isArray(e)?e:[e];la==null||la.forEach(($a,Ca)=>{h.fillText($a!=null?$a:"",b/2,Ca*(va+Vc*s))})}const X=Math.PI/180*Number(o),L=Math.max(r,m),[U,ee,Se]=oc(L,L,s);U.translate(Se/2,Se/2),U.rotate(X),b>0&&R>0&&U.drawImage(p,-b/2,-R/2);function we(Vr,Dr){const ma=Vr*Math.cos(X)-Dr*Math.sin(X),Wr=Vr*Math.sin(X)+Dr*Math.cos(X);return[ma,Wr]}let Ce=0,Ne=0,Ke=0,wt=0;const gt=b/2,Bt=R/2;[[0-gt,0-Bt],[0+gt,0-Bt],[0+gt,0+Bt],[0-gt,0+Bt]].forEach(Vr=>{let[Dr,ma]=Vr;const[Wr,ra]=we(Dr,ma);Ce=Math.min(Ce,Wr),Ne=Math.max(Ne,Wr),Ke=Math.min(Ke,ra),wt=Math.max(wt,ra)});const Sn=Ce+Se/2,gr=Ke+Se/2,Dn=Ne-Ce,pr=wt-Ke,lr=g*s,or=v*s,Ir=(Dn+lr)*2,$r=pr+or,[Sr,kr]=oc(Ir,$r);function Rr(){let Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Sr.drawImage(ee,Sn,gr,Dn,pr,Vr,Dr,Dn,pr)}return Rr(),Rr(Dn+lr,-pr/2-or/2),Rr(Dn+lr,+pr/2+or/2),[kr.toDataURL(),Ir/s,$r/s]}return t}var Ld=a(28449);function Bd(t){const e=l.useRef(!1),o=l.useRef(),s=(0,ae.zX)(t);return()=>{e.current||(e.current=!0,s(),o.current=(0,Ld.Z)(()=>{e.current=!1}))}}function Hd(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function zd(t){return Object.keys(t).map(e=>`${Hd(e)}: ${t[e]};`).join(" ")}function Wd(){return window.devicePixelRatio||1}const Vd=(t,e)=>{let o=!1;return t.removedNodes.length&&(o=Array.from(t.removedNodes).some(s=>e(s))),t.type==="attributes"&&e(t.target)&&(o=!0),o},mf=2,hf=3,kd={visibility:"visible !important"};function Ud(t){const[e]=l.useState(()=>new Map);return[(m,f,g)=>{if(g){if(!e.get(g)){const h=document.createElement("div");e.set(g,h)}const v=e.get(g);v.setAttribute("style",zd(Object.assign(Object.assign(Object.assign({},t),{backgroundImage:`url('${m}')`,backgroundSize:`${Math.floor(f)}px`}),kd))),v.removeAttribute("class"),g.append(v)}},m=>{const f=e.get(m);f&&m&&m.removeChild(f),e.delete(m)},m=>Array.from(e.values()).includes(m)]}function kc(t,e){return t.size===e.size?t:e}const Uc=100,Kc=100;var Kd=t=>{var e,o;const{zIndex:s=9,rotate:r=-22,width:m,height:f,image:g,content:v,font:h={},style:p,className:b,rootClassName:R,gap:X=[Uc,Kc],offset:L,children:U,inherit:ee=!0}=t,[,Se]=(0,Zo.ZP)(),{color:we=Se.colorFill,fontSize:Ce=Se.fontSizeLG,fontWeight:Ne="normal",fontStyle:Ke="normal",fontFamily:wt="sans-serif",textAlign:gt="center"}=h,[Bt=Uc,zt=Kc]=X,Sn=Bt/2,gr=zt/2,Dn=(e=L==null?void 0:L[0])!==null&&e!==void 0?e:Sn,pr=(o=L==null?void 0:L[1])!==null&&o!==void 0?o:gr,lr=l.useMemo(()=>{const Br={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let Fn=Dn-Sn,mr=pr-gr;return Fn>0&&(Br.left=`${Fn}px`,Br.width=`calc(100% - ${Fn}px)`,Fn=0),mr>0&&(Br.top=`${mr}px`,Br.height=`calc(100% - ${mr}px)`,mr=0),Br.backgroundPosition=`${Fn}px ${mr}px`,Br},[s,Dn,Sn,pr,gr]),[or,Ir]=l.useState(),[$r,Sr]=l.useState(new Set),kr=l.useMemo(()=>{const Br=or?[or]:[];return[].concat(Br,(0,I.Z)(Array.from($r)))},[or,$r]),Rr=Br=>{let Fn=120,mr=64;if(!g&&Br.measureText){Br.font=`${Number(Ce)}px ${wt}`;const Pr=Array.isArray(v)?v:[v],Zn=Pr.map(sr=>{const cr=Br.measureText(sr);return[cr.width,cr.fontBoundingBoxAscent+cr.fontBoundingBoxDescent]});Fn=Math.ceil(Math.max.apply(Math,(0,I.Z)(Zn.map(sr=>sr[0])))),mr=Math.ceil(Math.max.apply(Math,(0,I.Z)(Zn.map(sr=>sr[1]))))*Pr.length+(Pr.length-1)*Vc}return[m!=null?m:Fn,f!=null?f:mr]},Vr=Dd(),[Dr,ma]=l.useState(null),ra=Bd(()=>{const Fn=document.createElement("canvas").getContext("2d");if(Fn){const mr=Wd(),[Pr,Zn]=Rr(Fn),sr=cr=>{const[ca,xa]=Vr(cr||"",r,mr,Pr,Zn,{color:we,fontSize:Ce,fontStyle:Ke,fontWeight:Ne,fontFamily:wt,textAlign:gt},Bt,zt);ma([ca,xa])};if(g){const cr=new Image;cr.onload=()=>{sr(cr)},cr.onerror=()=>{sr(v)},cr.crossOrigin="anonymous",cr.referrerPolicy="no-referrer",cr.src=g}else sr(v)}}),[ga,va,la]=Ud(lr);(0,l.useEffect)(()=>{Dr&&kr.forEach(Br=>{ga(Dr[0],Dr[1],Br)})},[Dr,kr]),jd(kr,Br=>{Br.forEach(Fn=>{Vd(Fn,la)&&ra()})}),(0,l.useEffect)(ra,[r,s,m,f,g,v,we,Ce,Ne,Ke,wt,gt,Bt,zt,Dn,pr]);const Ca=l.useMemo(()=>({add:Br=>{Sr(Fn=>{const mr=new Set(Fn);return mr.add(Br),kc(Fn,mr)})},remove:Br=>{va(Br),Sr(Fn=>{const mr=new Set(Fn);return mr.delete(Br),kc(Fn,mr)})}}),[]),pa=ee?l.createElement(Ad.Z.Provider,{value:Ca},U):U;return l.createElement("div",{ref:Ir,className:Z()(b,R),style:Object.assign({position:"relative"},p)},pa)}},56696:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return Ze}});var i=a(85824),w=a(38126),I=a(50959),l=a(73715),k=a(38782),Z=function(j,Y){return I.createElement(k.Z,(0,w.Z)({},j,{ref:Y,icon:l.Z}))},ae=I.forwardRef(Z),Q=a(84875),K=a.n(Q),ce=a(73273),pe=a(40727),x=a(32682),re=a(10570),Ye=a(47920),z=a(77254);function se(){return typeof BigInt=="function"}function H($){return!$&&$!==0&&!Number.isNaN($)||!String($).trim()}function it($){var j=$.trim(),Y=j.startsWith("-");Y&&(j=j.slice(1)),j=j.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),j.startsWith(".")&&(j="0".concat(j));var Me=j||"0",ze=Me.split("."),ft=ze[0]||"0",vn=ze[1]||"0";ft==="0"&&vn==="0"&&(Y=!1);var _t=Y?"-":"";return{negative:Y,negativeStr:_t,trimStr:Me,integerStr:ft,decimalStr:vn,fullStr:"".concat(_t).concat(Me)}}function At($){var j=String($);return!Number.isNaN(Number(j))&&j.includes("e")}function ke($){var j=String($);if(At($)){var Y=Number(j.slice(j.indexOf("e-")+2)),Me=j.match(/\.(\d+)/);return Me!=null&&Me[1]&&(Y+=Me[1].length),Y}return j.includes(".")&&B(j)?j.length-j.indexOf(".")-1:0}function ut($){var j=String($);if(At($)){if($>Number.MAX_SAFE_INTEGER)return String(se()?BigInt($).toString():Number.MAX_SAFE_INTEGER);if($0&&arguments[0]!==void 0?arguments[0]:!0;return Y?this.isInvalidate()?"":it("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),$}(),mn=function(){function $(j){if((0,Ye.Z)(this,$),(0,ce.Z)(this,"origin",""),(0,ce.Z)(this,"number",void 0),(0,ce.Z)(this,"empty",void 0),H(j)){this.empty=!0;return}this.origin=String(j),this.number=Number(j)}return(0,z.Z)($,[{key:"negate",value:function(){return new $(-this.toNumber())}},{key:"add",value:function(Y){if(this.isInvalidate())return new $(Y);var Me=Number(Y);if(Number.isNaN(Me))return this;var ze=this.number+Me;if(ze>Number.MAX_SAFE_INTEGER)return new $(Number.MAX_SAFE_INTEGER);if(zeNumber.MAX_SAFE_INTEGER)return new $(Number.MAX_SAFE_INTEGER);if(ze0&&arguments[0]!==void 0?arguments[0]:!0;return Y?this.isInvalidate()?"":ut(this.number):this.origin}}]),$}();function jn($){return se()?new tr($):new mn($)}function bn($,j,Y){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if($==="")return"";var ze=it($),ft=ze.negativeStr,vn=ze.integerStr,_t=ze.decimalStr,Yt="".concat(j).concat(_t),Tt="".concat(ft).concat(vn);if(Y>=0){var Ut=Number(_t[Y]);if(Ut>=5&&!Me){var dn=jn($).add("".concat(ft,"0.").concat("0".repeat(Y)).concat(10-Ut));return bn(dn.toString(),j,Y,Me)}return Y===0?Tt:"".concat(Tt).concat(j).concat(_t.padEnd(Y,"0").slice(0,Y))}return Yt===".0"?Tt:"".concat(Tt).concat(Yt)}var qt=jn,be=a(41549),Ue=a(77189),Wt=a(12602),an=a(12868);function pt($,j){var Y=(0,I.useRef)(null);function Me(){try{var ft=$.selectionStart,vn=$.selectionEnd,_t=$.value,Yt=_t.substring(0,ft),Tt=_t.substring(vn);Y.current={start:ft,end:vn,value:_t,beforeTxt:Yt,afterTxt:Tt}}catch(Ut){}}function ze(){if($&&Y.current&&j)try{var ft=$.value,vn=Y.current,_t=vn.beforeTxt,Yt=vn.afterTxt,Tt=vn.start,Ut=ft.length;if(ft.endsWith(Yt))Ut=ft.length-Y.current.afterTxt.length;else if(ft.startsWith(_t))Ut=_t.length;else{var dn=_t[Tt-1],Ft=ft.indexOf(dn,Tt-1);Ft!==-1&&(Ut=Ft+1)}$.setSelectionRange(Ut,Ut)}catch(un){(0,an.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(un.message))}}return[Me,ze]}var tt=a(88473),tn=function(){var j=(0,I.useState)(!1),Y=(0,x.Z)(j,2),Me=Y[0],ze=Y[1];return(0,Ue.Z)(function(){ze((0,tt.Z)())},[]),Me},En=tn,Rn=a(28449),On=200,Te=600;function fn($){var j=$.prefixCls,Y=$.upNode,Me=$.downNode,ze=$.upDisabled,ft=$.downDisabled,vn=$.onStep,_t=I.useRef(),Yt=I.useRef([]),Tt=I.useRef();Tt.current=vn;var Ut=function(){clearTimeout(_t.current)},dn=function(Pe,De){Pe.preventDefault(),Ut(),Tt.current(De);function ge(){Tt.current(De),_t.current=setTimeout(ge,On)}_t.current=setTimeout(ge,Te)};I.useEffect(function(){return function(){Ut(),Yt.current.forEach(function(N){return Rn.Z.cancel(N)})}},[]);var Ft=En();if(Ft)return null;var un="".concat(j,"-handler"),ve=K()(un,"".concat(un,"-up"),(0,ce.Z)({},"".concat(un,"-up-disabled"),ze)),Ge=K()(un,"".concat(un,"-down"),(0,ce.Z)({},"".concat(un,"-down-disabled"),ft)),vt=function(){return Yt.current.push((0,Rn.Z)(Ut))},et={unselectable:"on",role:"button",onMouseUp:vt,onMouseLeave:vt};return I.createElement("div",{className:"".concat(un,"-wrap")},I.createElement("span",(0,w.Z)({},et,{onMouseDown:function(Pe){dn(Pe,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:ve}),Y||I.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner")})),I.createElement("span",(0,w.Z)({},et,{onMouseDown:function(Pe){dn(Pe,!1)},"aria-label":"Decrease Value","aria-disabled":ft,className:Ge}),Me||I.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner")})))}function T($){var j=typeof $=="number"?ut($):it($).fullStr,Y=j.includes(".");return Y?it(j.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:$+"0"}var A=a(66420),Le=function(){var $=(0,I.useRef)(0),j=function(){Rn.Z.cancel($.current)};return(0,I.useEffect)(function(){return j},[]),function(Y){j(),$.current=(0,Rn.Z)(function(){Y()})}},We=["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"],qe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],yt=function(j,Y){return j||Y.isEmpty()?Y.toString():Y.toNumber()},me=function(j){var Y=qt(j);return Y.isInvalidate()?null:Y},It=I.forwardRef(function($,j){var Y,Me=$.prefixCls,ze=Me===void 0?"rc-input-number":Me,ft=$.className,vn=$.style,_t=$.min,Yt=$.max,Tt=$.step,Ut=Tt===void 0?1:Tt,dn=$.defaultValue,Ft=$.value,un=$.disabled,ve=$.readOnly,Ge=$.upHandler,vt=$.downHandler,et=$.keyboard,N=$.controls,Pe=N===void 0?!0:N,De=$.classNames,ge=$.stringMode,rt=$.parser,Je=$.formatter,Re=$.precision,Ln=$.decimalSeparator,zn=$.onChange,on=$.onInput,Mn=$.onPressEnter,Wn=$.onStep,Gn=$.changeOnBlur,br=Gn===void 0?!0:Gn,Ae=(0,re.Z)($,We),ue="".concat(ze,"-input"),S=I.useRef(null),G=I.useState(!1),J=(0,x.Z)(G,2),C=J[0],E=J[1],F=I.useRef(!1),W=I.useRef(!1),ne=I.useRef(!1),te=I.useState(function(){return qt(Ft!=null?Ft:dn)}),le=(0,x.Z)(te,2),V=le[0],Oe=le[1];function Ie(ln){Ft===void 0&&Oe(ln)}var at=I.useCallback(function(ln,sn){if(!sn)return Re>=0?Re:Math.max(ke(ln),ke(Ut))},[Re,Ut]),dt=I.useCallback(function(ln){var sn=String(ln);if(rt)return rt(sn);var nn=sn;return Ln&&(nn=nn.replace(Ln,".")),nn.replace(/[^\w.-]+/g,"")},[rt,Ln]),ht=I.useRef(""),Gt=I.useCallback(function(ln,sn){if(Je)return Je(ln,{userTyping:sn,input:String(ht.current)});var nn=typeof ln=="number"?ut(ln):ln;if(!sn){var Jt=at(nn,sn);if(B(nn)&&(Ln||Jt>=0)){var cn=Ln||".";nn=bn(nn,cn,Jt)}}return nn},[Je,at,Ln]),en=I.useState(function(){var ln=dn!=null?dn:Ft;return V.isInvalidate()&&["string","number"].includes((0,pe.Z)(ln))?Number.isNaN(ln)?"":ln:Gt(V.toString(),!1)}),Ht=(0,x.Z)(en,2),ct=Ht[0],Qt=Ht[1];ht.current=ct;function kt(ln,sn){Qt(Gt(ln.isInvalidate()?ln.toString(!1):ln.toString(!sn),sn))}var Et=I.useMemo(function(){return me(Yt)},[Yt,Re]),jt=I.useMemo(function(){return me(_t)},[_t,Re]),Nt=I.useMemo(function(){return!Et||!V||V.isInvalidate()?!1:Et.lessEquals(V)},[Et,V]),xt=I.useMemo(function(){return!jt||!V||V.isInvalidate()?!1:V.lessEquals(jt)},[jt,V]),gn=pt(S.current,C),Bn=(0,x.Z)(gn,2),Vn=Bn[0],Qn=Bn[1],hn=function(sn){return Et&&!sn.lessEquals(Et)?Et:jt&&!jt.lessEquals(sn)?jt:null},qn=function(sn){return!hn(sn)},kn=function(sn,nn){var Jt=sn,cn=qn(Jt)||Jt.isEmpty();if(!Jt.isEmpty()&&!nn&&(Jt=hn(Jt)||Jt,cn=!0),!ve&&!un&&cn){var O=Jt.toString(),D=at(O,nn);return D>=0&&(Jt=qt(bn(O,".",D)),qn(Jt)||(Jt=qt(bn(O,".",D,!0)))),Jt.equals(V)||(Ie(Jt),zn==null||zn(Jt.isEmpty()?null:yt(ge,Jt)),Ft===void 0&&kt(Jt,nn)),Jt}return V},rr=Le(),Un=function ln(sn){if(Vn(),ht.current=sn,Qt(sn),!W.current){var nn=dt(sn),Jt=qt(nn);Jt.isNaN()||kn(Jt,!0)}on==null||on(sn),rr(function(){var cn=sn;rt||(cn=sn.replace(/。/g,".")),cn!==sn&&ln(cn)})},xn=function(){W.current=!0},Hn=function(){W.current=!1,Un(S.current.value)},ir=function(sn){Un(sn.target.value)},ur=function(sn){var nn;if(!(sn&&Nt||!sn&&xt)){F.current=!1;var Jt=qt(ne.current?T(Ut):Ut);sn||(Jt=Jt.negate());var cn=(V||qt(0)).add(Jt.toString()),O=kn(cn,!1);Wn==null||Wn(yt(ge,O),{offset:ne.current?T(Ut):Ut,type:sn?"up":"down"}),(nn=S.current)===null||nn===void 0||nn.focus()}},An=function(sn){var nn=qt(dt(ct)),Jt=nn;nn.isNaN()?Jt=kn(V,sn):Jt=kn(nn,sn),Ft!==void 0?kt(V,!1):Jt.isNaN()||kt(Jt,!1)},In=function(){F.current=!0},$n=function(sn){var nn=sn.key,Jt=sn.shiftKey;F.current=!0,ne.current=Jt,nn==="Enter"&&(W.current||(F.current=!1),An(!1),Mn==null||Mn(sn)),et!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(nn)&&(ur(nn==="Up"||nn==="ArrowUp"),sn.preventDefault())},Ot=function(){F.current=!1,ne.current=!1},Nn=function(){br&&An(!1),E(!1),F.current=!1};return(0,Ue.o)(function(){V.isInvalidate()||kt(V,!1)},[Re,Je]),(0,Ue.o)(function(){var ln=qt(Ft);Oe(ln);var sn=qt(dt(ct));(!ln.equals(sn)||!F.current||Je)&&kt(ln,F.current)},[Ft]),(0,Ue.o)(function(){Je&&Qn()},[ct]),I.createElement("div",{className:K()(ze,De==null?void 0:De.input,ft,(Y={},(0,ce.Z)(Y,"".concat(ze,"-focused"),C),(0,ce.Z)(Y,"".concat(ze,"-disabled"),un),(0,ce.Z)(Y,"".concat(ze,"-readonly"),ve),(0,ce.Z)(Y,"".concat(ze,"-not-a-number"),V.isNaN()),(0,ce.Z)(Y,"".concat(ze,"-out-of-range"),!V.isInvalidate()&&!qn(V)),Y)),style:vn,onFocus:function(){E(!0)},onBlur:Nn,onKeyDown:$n,onKeyUp:Ot,onCompositionStart:xn,onCompositionEnd:Hn,onBeforeInput:In},Pe&&I.createElement(fn,{prefixCls:ze,upNode:Ge,downNode:vt,upDisabled:Nt,downDisabled:xt,onStep:ur}),I.createElement("div",{className:"".concat(ue,"-wrap")},I.createElement("input",(0,w.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":_t,"aria-valuemax":Yt,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:Ut},Ae,{ref:(0,Wt.sQ)(S,j),className:ue,value:ct,onChange:ir,disabled:un,readOnly:ve}))))}),Vt=I.forwardRef(function($,j){var Y=$.disabled,Me=$.style,ze=$.prefixCls,ft=$.value,vn=$.prefix,_t=$.suffix,Yt=$.addonBefore,Tt=$.addonAfter,Ut=$.classes,dn=$.className,Ft=$.classNames,un=(0,re.Z)($,qe),ve=I.useRef(null),Ge=function(et){ve.current&&(0,A.nH)(ve.current,et)};return I.createElement(be.Q,{inputElement:I.createElement(It,(0,w.Z)({prefixCls:ze,disabled:Y,classNames:Ft,ref:(0,Wt.sQ)(ve,j)},un)),className:dn,triggerFocus:Ge,prefixCls:ze,value:ft,disabled:Y,style:Me,prefix:vn,suffix:_t,addonAfter:Tt,addonBefore:Yt,classes:Ut,classNames:Ft,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Vt.displayName="InputNumber";var mt=Vt,Dt=mt,Mt=a(55580),Lt=a(31594),Pn=a(56197),Ee=a(69943),Ve=a(17436),Be=a(1415),Qe=a(21130),St=a(55904),bt=a(6301),P=a(82776),de=a(81501),ye=a(90467),He=a(60076);const _e=($,j)=>{let{componentCls:Y,borderRadiusSM:Me,borderRadiusLG:ze}=$;const ft=j==="lg"?ze:Me;return{[`&-${j}`]:{[`${Y}-handler-wrap`]:{borderStartEndRadius:ft,borderEndEndRadius:ft},[`${Y}-handler-up`]:{borderStartEndRadius:ft},[`${Y}-handler-down`]:{borderEndEndRadius:ft}}}},st=$=>{const{componentCls:j,lineWidth:Y,lineType:Me,colorBorder:ze,borderRadius:ft,fontSizeLG:vn,controlHeightLG:_t,controlHeightSM:Yt,colorError:Tt,paddingInlineSM:Ut,colorTextDescription:dn,motionDurationMid:Ft,handleHoverColor:un,paddingInline:ve,paddingBlock:Ge,handleBg:vt,handleActiveBg:et,colorTextDisabled:N,borderRadiusSM:Pe,borderRadiusLG:De,controlWidth:ge,handleOpacity:rt,handleBorderColor:Je,calc:Re}=$;return[{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),(0,St.ik)($)),(0,St.bi)($,j)),{display:"inline-block",width:ge,margin:0,padding:0,border:`${(0,He.bf)(Y)} ${Me} ${ze}`,borderRadius:ft,"&-rtl":{direction:"rtl",[`${j}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:vn,borderRadius:De,[`input${j}-input`]:{height:Re(_t).sub(Re(Y).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:Pe,[`input${j}-input`]:{height:Re(Yt).sub(Re(Y).mul(2)).equal(),padding:`0 ${(0,He.bf)(Ut)}`}},"&-out-of-range":{[`${j}-input-wrap`]:{input:{color:Tt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),(0,St.s7)($)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${j}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${j}-group-addon`]:{borderRadius:De,fontSize:$.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Pe}},[`${j}-wrapper-disabled > ${j}-group-addon`]:Object.assign({},(0,St.Xy)($)),[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}),[`&-disabled ${j}-input`]:{cursor:"not-allowed"},[j]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),{width:"100%",padding:`${(0,He.bf)(Ge)} ${(0,He.bf)(ve)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ft,outline:0,transition:`all ${Ft} linear`,appearance:"textfield",fontSize:"inherit"}),(0,St.nz)($.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[j]:Object.assign(Object.assign(Object.assign({[`&:hover ${j}-handler-wrap, &-focused ${j}-handler-wrap`]:{opacity:1},[`${j}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:$.handleWidth,height:"100%",background:vt,borderStartStartRadius:0,borderStartEndRadius:ft,borderEndEndRadius:ft,borderEndStartRadius:0,opacity:rt,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Ft} linear ${Ft}`,[`${j}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${j}-handler-up-inner, + ${j}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:$.handleFontSize}}},[`${j}-handler`]:{height:"50%",overflow:"hidden",color:dn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,He.bf)(Y)} ${Me} ${Je}`,transition:`all ${Ft} linear`,"&:active":{background:et},"&:hover":{height:"60%",[` + ${j}-handler-up-inner, + ${j}-handler-down-inner + `]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,bt.Ro)()),{color:dn,transition:`all ${Ft} linear`,userSelect:"none"})},[`${j}-handler-up`]:{borderStartEndRadius:ft},[`${j}-handler-down`]:{borderBlockStart:`${(0,He.bf)(Y)} ${Me} ${Je}`,borderEndEndRadius:ft}},_e($,"lg")),_e($,"sm")),{"&-disabled, &-readonly":{[`${j}-handler-wrap`]:{display:"none"},[`${j}-input`]:{color:"inherit"}},[` + ${j}-handler-up-disabled, + ${j}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${j}-handler-up-disabled:hover &-handler-up-inner, + ${j}-handler-down-disabled:hover &-handler-down-inner + `]:{color:N}})},{[`${j}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${j}-handler-down`]:{borderBlockStartWidth:0}}}]},Ct=$=>{const{componentCls:j,paddingBlock:Y,paddingInline:Me,inputAffixPadding:ze,controlWidth:ft,borderRadiusLG:vn,borderRadiusSM:_t}=$;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,St.ik)($)),(0,St.bi)($,`${j}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ft,padding:0,paddingInlineStart:Me,"&-lg":{borderRadius:vn},"&-sm":{borderRadius:_t},[`&:not(${j}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${j}-disabled`]:{background:"transparent"},[`> div${j}`]:{width:"100%",border:"none",outline:"none",[`&${j}-focused`]:{boxShadow:"none !important"}},[`input${j}-input`]:{padding:`${(0,He.bf)(Y)} 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${j}-handler-wrap`]:{zIndex:2},[j]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Me,marginInlineStart:ze}}})}},Kt=$=>Object.assign(Object.assign({},(0,St.TM)($)),{controlWidth:90,handleWidth:$.controlHeightSM-$.lineWidth*2,handleFontSize:$.fontSize/2,handleVisible:"auto",handleActiveBg:$.colorFillAlter,handleBg:$.colorBgContainer,handleHoverColor:$.colorPrimary,handleBorderColor:$.colorBorder,handleOpacity:0}),$t=$=>Object.assign(Object.assign({},$),{handleOpacity:$.handleVisible===!0?1:0});var Rt=(0,de.I$)("InputNumber",$=>{const j=(0,ye.TS)($,(0,St.e5)($));return[st(j),Ct(j),(0,P.c)(j)]},Kt,{format:$t,unitless:{handleOpacity:!0}}),lt=a(10254),nt=function($,j){var Y={};for(var Me in $)Object.prototype.hasOwnProperty.call($,Me)&&j.indexOf(Me)<0&&(Y[Me]=$[Me]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Me=Object.getOwnPropertySymbols($);ze{const{getPrefixCls:Y,direction:Me}=I.useContext(Lt.E_),ze=I.useRef(null);I.useImperativeHandle(j,()=>ze.current);const{className:ft,rootClassName:vn,size:_t,disabled:Yt,prefixCls:Tt,addonBefore:Ut,addonAfter:dn,prefix:Ft,bordered:un=!0,readOnly:ve,status:Ge,controls:vt}=$,et=nt($,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),N=Y("input-number",Tt),Pe=(0,lt.Z)(N),[De,ge]=Rt(N,Pe),{compactSize:rt,compactItemClassnames:Je}=(0,Qe.ri)(N,Me);let Re=I.createElement(ae,{className:`${N}-handler-up-inner`}),Ln=I.createElement(i.Z,{className:`${N}-handler-down-inner`});const zn=typeof vt=="boolean"?vt:void 0;typeof vt=="object"&&(Re=typeof vt.upIcon=="undefined"?Re:I.createElement("span",{className:`${N}-handler-up-inner`},vt.upIcon),Ln=typeof vt.downIcon=="undefined"?Ln:I.createElement("span",{className:`${N}-handler-down-inner`},vt.downIcon));const{hasFeedback:on,status:Mn,isFormItemInput:Wn,feedbackIcon:Gn}=I.useContext(Be.aM),br=(0,Mt.F)(Mn,Ge),Ae=(0,Ve.Z)(F=>{var W;return(W=_t!=null?_t:rt)!==null&&W!==void 0?W:F}),ue=I.useContext(Ee.Z),S=Yt!=null?Yt:ue,G=K()({[`${N}-lg`]:Ae==="large",[`${N}-sm`]:Ae==="small",[`${N}-rtl`]:Me==="rtl",[`${N}-borderless`]:!un,[`${N}-in-form-item`]:Wn},(0,Mt.Z)(N,br),ge),J=`${N}-group`,C=on&&I.createElement(I.Fragment,null,Gn),E=I.createElement(Dt,Object.assign({ref:ze,disabled:S,className:K()(Pe,ft,vn,Je),upHandler:Re,downHandler:Ln,prefixCls:N,readOnly:ve,controls:zn,prefix:Ft,suffix:C,addonAfter:dn&&I.createElement(Qe.BR,null,I.createElement(Be.Ux,{override:!0,status:!0},dn)),addonBefore:Ut&&I.createElement(Qe.BR,null,I.createElement(Be.Ux,{override:!0,status:!0},Ut)),classNames:{input:G},classes:{affixWrapper:K()((0,Mt.Z)(`${N}-affix-wrapper`,br,on),{[`${N}-affix-wrapper-sm`]:Ae==="small",[`${N}-affix-wrapper-lg`]:Ae==="large",[`${N}-affix-wrapper-rtl`]:Me==="rtl",[`${N}-affix-wrapper-borderless`]:!un},ge),wrapper:K()({[`${J}-rtl`]:Me==="rtl",[`${N}-wrapper-disabled`]:S},ge),group:K()({[`${N}-group-wrapper-sm`]:Ae==="small",[`${N}-group-wrapper-lg`]:Ae==="large",[`${N}-group-wrapper-rtl`]:Me==="rtl"},(0,Mt.Z)(`${N}-group-wrapper`,br,on),ge)}},et));return De(E)}),je=Fe,fe=$=>I.createElement(Pn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},I.createElement(Fe,Object.assign({},$)));je._InternalPanelDoNotUseOrYouWillBeFired=fe;var Ze=je},37077:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return be}});var i=a(50959),w=a(39388),I=a(84875),l=a.n(I),k=a(65589),Z=a(57),ae=a(87017),Q=a(94914),K=a(31594),ce=a(82757),pe=a(51942),x=a(99513),re=a(47100),Ye=a(93043),z=a(45449),se=a(59848),H=a(58889),it=a(81501);const At=Ue=>{const{componentCls:Wt,iconCls:an,antCls:pt,zIndexPopup:tt,colorText:tn,colorWarning:En,marginXXS:Rn,marginXS:On,fontSize:Te,fontWeightStrong:fn,colorTextHeading:T}=Ue;return{[Wt]:{zIndex:tt,[`&${pt}-popover`]:{fontSize:Te},[`${Wt}-message`]:{marginBottom:On,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Wt}-message-icon ${an}`]:{color:En,fontSize:Te,lineHeight:1,marginInlineEnd:On},[`${Wt}-title`]:{fontWeight:fn,color:T,"&:only-child":{fontWeight:"normal"}},[`${Wt}-description`]:{marginTop:Rn,color:tn}},[`${Wt}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:On}}}}},ke=Ue=>{const{zIndexPopupBase:Wt}=Ue;return{zIndexPopup:Wt+60}};var ut=(0,it.I$)("Popconfirm",Ue=>At(Ue),ke,{resetStyle:!1}),B=function(Ue,Wt){var an={};for(var pt in Ue)Object.prototype.hasOwnProperty.call(Ue,pt)&&Wt.indexOf(pt)<0&&(an[pt]=Ue[pt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,pt=Object.getOwnPropertySymbols(Ue);tt{const{prefixCls:Wt,okButtonProps:an,cancelButtonProps:pt,title:tt,description:tn,cancelText:En,okText:Rn,okType:On="primary",icon:Te=i.createElement(w.Z,null),showCancel:fn=!0,close:T,onConfirm:A,onCancel:Le,onPopupClick:We}=Ue,{getPrefixCls:qe}=i.useContext(K.E_),[yt]=(0,z.Z)("Popconfirm",se.Z.Popconfirm),me=(0,x.Z)(tt),It=(0,x.Z)(tn);return i.createElement("div",{className:`${Wt}-inner-content`,onClick:We},i.createElement("div",{className:`${Wt}-message`},Te&&i.createElement("span",{className:`${Wt}-message-icon`},Te),i.createElement("div",{className:`${Wt}-message-text`},me&&i.createElement("div",{className:l()(`${Wt}-title`)},me),It&&i.createElement("div",{className:`${Wt}-description`},It))),i.createElement("div",{className:`${Wt}-buttons`},fn&&i.createElement(re.ZP,Object.assign({onClick:Le,size:"small"},pt),En!=null?En:yt==null?void 0:yt.cancelText),i.createElement(pe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Ye.nx)(On)),an),actionFn:A,close:T,prefixCls:qe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Rn!=null?Rn:yt==null?void 0:yt.okText)))};var jn=Ue=>{const{prefixCls:Wt,placement:an,className:pt,style:tt}=Ue,tn=B(Ue,["prefixCls","placement","className","style"]),{getPrefixCls:En}=i.useContext(K.E_),Rn=En("popconfirm",Wt),[On]=ut(Rn);return On(i.createElement(H.ZP,{placement:an,className:l()(Rn,pt),style:tt,content:i.createElement(tr,Object.assign({prefixCls:Rn},tn))}))},bn=function(Ue,Wt){var an={};for(var pt in Ue)Object.prototype.hasOwnProperty.call(Ue,pt)&&Wt.indexOf(pt)<0&&(an[pt]=Ue[pt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,pt=Object.getOwnPropertySymbols(Ue);tt{var an,pt;const{prefixCls:tt,placement:tn="top",trigger:En="click",okType:Rn="primary",icon:On=i.createElement(w.Z,null),children:Te,overlayClassName:fn,onOpenChange:T,onVisibleChange:A}=Ue,Le=bn(Ue,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:We}=i.useContext(K.E_),[qe,yt]=(0,k.Z)(!1,{value:(an=Ue.open)!==null&&an!==void 0?an:Ue.visible,defaultValue:(pt=Ue.defaultOpen)!==null&&pt!==void 0?pt:Ue.defaultVisible}),me=(Ve,Be)=>{yt(Ve,!0),A==null||A(Ve),T==null||T(Ve,Be)},It=Ve=>{me(!1,Ve)},Vt=Ve=>{var Be;return(Be=Ue.onConfirm)===null||Be===void 0?void 0:Be.call(void 0,Ve)},mt=Ve=>{var Be;me(!1,Ve),(Be=Ue.onCancel)===null||Be===void 0||Be.call(void 0,Ve)},Dt=Ve=>{Ve.keyCode===Z.Z.ESC&&qe&&me(!1,Ve)},Mt=Ve=>{const{disabled:Be=!1}=Ue;Be||me(Ve)},Lt=We("popconfirm",tt),Pn=l()(Lt,fn),[Ee]=ut(Lt);return Ee(i.createElement(ce.Z,Object.assign({},(0,ae.Z)(Le,["title"]),{trigger:En,placement:tn,onOpenChange:Mt,open:qe,ref:Wt,overlayClassName:Pn,content:i.createElement(tr,Object.assign({okType:Rn,icon:On},Ue,{prefixCls:Lt,close:It,onConfirm:Vt,onCancel:mt})),"data-popover-inject":!0}),(0,Q.Tm)(Te,{onKeyDown:Ve=>{var Be,Qe;i.isValidElement(Te)&&((Qe=Te==null?void 0:(Be=Te.props).onKeyDown)===null||Qe===void 0||Qe.call(Be,Ve)),Dt(Ve)}})))});qt._InternalPanelDoNotUseOrYouWillBeFired=jn;var be=qt},37839:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return fn}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},l=I,k=a(38782),Z=function(A,Le){return w.createElement(k.Z,(0,i.Z)({},A,{ref:Le,icon:l}))},ae=w.forwardRef(Z),Q=a(84875),K=a.n(Q),ce=a(73273),pe=a(32682),x=a(10570),re=a(65589),Ye=a(57),z=a(68924);function se(T,A){var Le=T.disabled,We=T.prefixCls,qe=T.character,yt=T.characterRender,me=T.index,It=T.count,Vt=T.value,mt=T.allowHalf,Dt=T.focused,Mt=T.onHover,Lt=T.onClick,Pn=function(de){Mt(de,me)},Ee=function(de){Lt(de,me)},Ve=function(de){de.keyCode===Ye.Z.ENTER&&Lt(de,me)},Be=me+1,Qe=new Set([We]);Vt===0&&me===0&&Dt?Qe.add("".concat(We,"-focused")):mt&&Vt+.5>=Be&&Vtme?"true":"false","aria-posinset":me+1,"aria-setsize":It,tabIndex:Le?-1:0},w.createElement("div",{className:"".concat(We,"-first")},St),w.createElement("div",{className:"".concat(We,"-second")},St)));return yt&&(bt=yt(bt,T)),bt}var H=w.forwardRef(se);function it(){var T=w.useRef({});function A(We){return T.current[We]}function Le(We){return function(qe){T.current[We]=qe}}return[A,Le]}function At(T){var A=T.pageXOffset,Le="scrollLeft";if(typeof A!="number"){var We=T.document;A=We.documentElement[Le],typeof A!="number"&&(A=We.body[Le])}return A}function ke(T){var A,Le,We=T.ownerDocument,qe=We.body,yt=We&&We.documentElement,me=T.getBoundingClientRect();return A=me.left,Le=me.top,A-=yt.clientLeft||qe.clientLeft||0,Le-=yt.clientTop||qe.clientTop||0,{left:A,top:Le}}function ut(T){var A=ke(T),Le=T.ownerDocument,We=Le.defaultView||Le.parentWindow;return A.left+=At(We),A.left}var B=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function tr(T,A){var Le,We=T.prefixCls,qe=We===void 0?"rc-rate":We,yt=T.className,me=T.defaultValue,It=T.value,Vt=T.count,mt=Vt===void 0?5:Vt,Dt=T.allowHalf,Mt=Dt===void 0?!1:Dt,Lt=T.allowClear,Pn=Lt===void 0?!0:Lt,Ee=T.character,Ve=Ee===void 0?"\u2605":Ee,Be=T.characterRender,Qe=T.disabled,St=T.direction,bt=St===void 0?"ltr":St,P=T.tabIndex,de=P===void 0?0:P,ye=T.autoFocus,He=T.onHoverChange,_e=T.onChange,st=T.onFocus,Ct=T.onBlur,Kt=T.onKeyDown,$t=T.onMouseLeave,Rt=(0,x.Z)(T,B),lt=it(),nt=(0,pe.Z)(lt,2),Fe=nt[0],je=nt[1],fe=w.useRef(null),Ze=function(){if(!Qe){var on;(on=fe.current)===null||on===void 0||on.focus()}};w.useImperativeHandle(A,function(){return{focus:Ze,blur:function(){if(!Qe){var on;(on=fe.current)===null||on===void 0||on.blur()}}}});var $=(0,re.Z)(me||0,{value:It}),j=(0,pe.Z)($,2),Y=j[0],Me=j[1],ze=(0,re.Z)(null),ft=(0,pe.Z)(ze,2),vn=ft[0],_t=ft[1],Yt=function(on,Mn){var Wn=bt==="rtl",Gn=on+1;if(Mt){var br=Fe(on),Ae=ut(br),ue=br.clientWidth;(Wn&&Mn-Ae>ue/2||!Wn&&Mn-Ae0&&!Wn||Mn===Ye.Z.RIGHT&&Gn>0&&Wn?(Mt?Gn-=.5:Gn-=1,Tt(Gn),on.preventDefault()):Mn===Ye.Z.LEFT&&Gn{const{componentCls:A}=T;return{[`${A}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:T.marginXS},"> div":{transition:`all ${T.motionDurationMid}, outline 0s`,"&:hover":{transform:T.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,an.bf)(T.lineWidth)} dashed ${T.starColor}`,transform:T.starHoverScale}},"&-first, &-second":{color:T.starBg,transition:`all ${T.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${A}-star-first, &-half ${A}-star-second`]:{opacity:1},[`&-half ${A}-star-first, &-full ${A}-star-second`]:{color:"inherit"}}}},tt=T=>({[`&-rtl${T.componentCls}`]:{direction:"rtl"}}),tn=T=>{const{componentCls:A}=T;return{[A]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(T)),{display:"inline-block",margin:0,padding:0,color:T.starColor,fontSize:T.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${A} ${A}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),pt(T)),tt(T))}},En=T=>({starColor:T.yellow6,starSize:T.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:T.colorFillContent});var Rn=(0,Ue.I$)("Rate",T=>{const A=(0,Wt.TS)(T,{});return[tn(A)]},En),On=function(T,A){var Le={};for(var We in T)Object.prototype.hasOwnProperty.call(T,We)&&A.indexOf(We)<0&&(Le[We]=T[We]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,We=Object.getOwnPropertySymbols(T);qe{const{prefixCls:Le,className:We,rootClassName:qe,style:yt,tooltips:me,character:It=w.createElement(ae,null)}=T,Vt=On(T,["prefixCls","className","rootClassName","style","tooltips","character"]),mt=(Qe,St)=>{let{index:bt}=St;return me?w.createElement(qt.Z,{title:me[bt]},Qe):Qe},{getPrefixCls:Dt,direction:Mt,rate:Lt}=w.useContext(bn.E_),Pn=Dt("rate",Le),[Ee,Ve]=Rn(Pn),Be=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),yt);return Ee(w.createElement(jn,Object.assign({ref:A,character:It,characterRender:mt},Vt,{className:K()(We,qe,Ve,Lt==null?void 0:Lt.className),style:Be,prefixCls:Pn,direction:Mt})))})},13362:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return fn}});var i=a(84875),w=a.n(i),I=a(38126),l=a(32682),k=a(10570),Z=a(73273),ae=a(33346),Q=a(40727),K=a(50959),ce=a(65589),pe=a(12602),x=a(87017),re=a(10091),Ye=a(77189),z=function(A){return A?{left:A.offsetLeft,right:A.parentElement.clientWidth-A.clientWidth-A.offsetLeft,width:A.clientWidth}:null},se=function(A){return A!==void 0?"".concat(A,"px"):void 0};function H(T){var A=T.prefixCls,Le=T.containerRef,We=T.value,qe=T.getValueIndex,yt=T.motionName,me=T.onMotionStart,It=T.onMotionEnd,Vt=T.direction,mt=K.useRef(null),Dt=K.useState(We),Mt=(0,l.Z)(Dt,2),Lt=Mt[0],Pn=Mt[1],Ee=function(Rt){var lt,nt=qe(Rt),Fe=(lt=Le.current)===null||lt===void 0?void 0:lt.querySelectorAll(".".concat(A,"-item"))[nt];return(Fe==null?void 0:Fe.offsetParent)&&Fe},Ve=K.useState(null),Be=(0,l.Z)(Ve,2),Qe=Be[0],St=Be[1],bt=K.useState(null),P=(0,l.Z)(bt,2),de=P[0],ye=P[1];(0,Ye.Z)(function(){if(Lt!==We){var $t=Ee(Lt),Rt=Ee(We),lt=z($t),nt=z(Rt);Pn(We),St(lt),ye(nt),$t&&Rt?me():It()}},[We]);var He=K.useMemo(function(){return se(Vt==="rtl"?-(Qe==null?void 0:Qe.right):Qe==null?void 0:Qe.left)},[Vt,Qe]),_e=K.useMemo(function(){return se(Vt==="rtl"?-(de==null?void 0:de.right):de==null?void 0:de.left)},[Vt,de]),st=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Ct=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},Kt=function(){St(null),ye(null),It()};return!Qe||!de?null:K.createElement(re.ZP,{visible:!0,motionName:yt,motionAppear:!0,onAppearStart:st,onAppearActive:Ct,onVisibleChanged:Kt},function($t,Rt){var lt=$t.className,nt=$t.style,Fe=(0,ae.Z)((0,ae.Z)({},nt),{},{"--thumb-start-left":He,"--thumb-start-width":se(Qe==null?void 0:Qe.width),"--thumb-active-left":_e,"--thumb-active-width":se(de==null?void 0:de.width)}),je={ref:(0,pe.sQ)(mt,Rt),style:Fe,className:w()("".concat(A,"-thumb"),lt)};return K.createElement("div",je)})}var it=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function At(T){if(typeof T.title!="undefined")return T.title;if((0,Q.Z)(T.label)!=="object"){var A;return(A=T.label)===null||A===void 0?void 0:A.toString()}}function ke(T){return T.map(function(A){if((0,Q.Z)(A)==="object"&&A!==null){var Le=At(A);return(0,ae.Z)((0,ae.Z)({},A),{},{title:Le})}return{label:A==null?void 0:A.toString(),title:A==null?void 0:A.toString(),value:A}})}var ut=function(A){var Le=A.prefixCls,We=A.className,qe=A.disabled,yt=A.checked,me=A.label,It=A.title,Vt=A.value,mt=A.onChange,Dt=function(Lt){qe||mt(Lt,Vt)};return K.createElement("label",{className:w()(We,(0,Z.Z)({},"".concat(Le,"-item-disabled"),qe))},K.createElement("input",{className:"".concat(Le,"-item-input"),type:"radio",disabled:qe,checked:yt,onChange:Dt}),K.createElement("div",{className:"".concat(Le,"-item-label"),title:It},me))},B=K.forwardRef(function(T,A){var Le,We,qe=T.prefixCls,yt=qe===void 0?"rc-segmented":qe,me=T.direction,It=T.options,Vt=T.disabled,mt=T.defaultValue,Dt=T.value,Mt=T.onChange,Lt=T.className,Pn=Lt===void 0?"":Lt,Ee=T.motionName,Ve=Ee===void 0?"thumb-motion":Ee,Be=(0,k.Z)(T,it),Qe=K.useRef(null),St=K.useMemo(function(){return(0,pe.sQ)(Qe,A)},[Qe,A]),bt=K.useMemo(function(){return ke(It)},[It]),P=(0,ce.Z)((Le=bt[0])===null||Le===void 0?void 0:Le.value,{value:Dt,defaultValue:mt}),de=(0,l.Z)(P,2),ye=de[0],He=de[1],_e=K.useState(!1),st=(0,l.Z)(_e,2),Ct=st[0],Kt=st[1],$t=function(nt,Fe){Vt||(He(Fe),Mt==null||Mt(Fe))},Rt=(0,x.Z)(Be,["children"]);return K.createElement("div",(0,I.Z)({},Rt,{className:w()(yt,(We={},(0,Z.Z)(We,"".concat(yt,"-rtl"),me==="rtl"),(0,Z.Z)(We,"".concat(yt,"-disabled"),Vt),We),Pn),ref:St}),K.createElement("div",{className:"".concat(yt,"-group")},K.createElement(H,{prefixCls:yt,value:ye,containerRef:Qe,motionName:"".concat(yt,"-").concat(Ve),direction:me,getValueIndex:function(nt){return bt.findIndex(function(Fe){return Fe.value===nt})},onMotionStart:function(){Kt(!0)},onMotionEnd:function(){Kt(!1)}}),bt.map(function(lt){return K.createElement(ut,(0,I.Z)({},lt,{key:lt.value,prefixCls:yt,className:w()(lt.className,"".concat(yt,"-item"),(0,Z.Z)({},"".concat(yt,"-item-selected"),lt.value===ye&&!Ct)),checked:lt.value===ye,onChange:$t,disabled:!!Vt||!!lt.disabled}))})))});B.displayName="Segmented",B.defaultProps={options:[]};var tr=B,mn=a(31594),jn=a(17436),bn=a(6301),qt=a(81501),be=a(90467),Ue=a(60076);function Wt(T,A){return{[`${T}, ${T}:hover, ${T}:focus`]:{color:A.colorTextDisabled,cursor:"not-allowed"}}}function an(T){return{backgroundColor:T.itemSelectedBg,boxShadow:T.boxShadowTertiary}}const pt=Object.assign({overflow:"hidden"},bn.vS),tt=T=>{const{componentCls:A}=T,Le=T.calc(T.controlHeight).sub(T.calc(T.segmentedPadding).mul(2)).equal(),We=T.calc(T.controlHeightLG).sub(T.calc(T.segmentedPadding).mul(2)).equal(),qe=T.calc(T.controlHeightSM).sub(T.calc(T.segmentedPadding).mul(2)).equal();return{[A]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,bn.Wf)(T)),{display:"inline-block",padding:T.segmentedPadding,color:T.itemColor,backgroundColor:T.segmentedBgColor,borderRadius:T.borderRadius,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,[`${A}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${A}-rtl`]:{direction:"rtl"},[`&${A}-block`]:{display:"flex"},[`&${A}-block ${A}-item`]:{flex:1,minWidth:0},[`${A}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${T.motionDurationMid} ${T.motionEaseInOut}`,borderRadius:T.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},an(T)),{color:T.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${T.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${A}-item-selected):not(${A}-item-disabled)`]:{color:T.itemHoverColor,"&::after":{backgroundColor:T.itemHoverBg}},[`&:active:not(${A}-item-selected):not(${A}-item-disabled)`]:{color:T.itemHoverColor,"&::after":{backgroundColor:T.itemActiveBg}},"&-label":Object.assign({minHeight:Le,lineHeight:(0,Ue.bf)(Le),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontal)}`},pt),"&-icon + *":{marginInlineStart:T.calc(T.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${A}-thumb`]:Object.assign(Object.assign({},an(T)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Ue.bf)(T.paddingXXS)} 0`,borderRadius:T.borderRadiusSM,[`& ~ ${A}-item:not(${A}-item-selected):not(${A}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${A}-lg`]:{borderRadius:T.borderRadiusLG,[`${A}-item-label`]:{minHeight:We,lineHeight:(0,Ue.bf)(We),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontal)}`,fontSize:T.fontSizeLG},[`${A}-item, ${A}-thumb`]:{borderRadius:T.borderRadius}},[`&${A}-sm`]:{borderRadius:T.borderRadiusSM,[`${A}-item-label`]:{minHeight:qe,lineHeight:(0,Ue.bf)(qe),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontalSM)}`},[`${A}-item, ${A}-thumb`]:{borderRadius:T.borderRadiusXS}}}),Wt(`&-disabled ${A}-item`,T)),Wt(`${A}-item-disabled`,T)),{[`${A}-thumb-motion-appear-active`]:{transition:`transform ${T.motionDurationSlow} ${T.motionEaseInOut}, width ${T.motionDurationSlow} ${T.motionEaseInOut}`,willChange:"transform, width"}})}},tn=T=>{const{colorTextLabel:A,colorText:Le,colorFillSecondary:We,colorBgElevated:qe,colorFill:yt}=T;return{itemColor:A,itemHoverColor:Le,itemHoverBg:We,itemSelectedBg:qe,itemActiveBg:yt,itemSelectedColor:Le}};var En=(0,qt.I$)("Segmented",T=>{const{lineWidth:A,lineWidthBold:Le,colorBgLayout:We,calc:qe}=T,yt=(0,be.TS)(T,{segmentedPadding:Le,segmentedBgColor:We,segmentedPaddingHorizontal:qe(T.controlPaddingHorizontal).sub(A).equal(),segmentedPaddingHorizontalSM:qe(T.controlPaddingHorizontalSM).sub(A).equal()});return[tt(yt)]},tn),Rn=function(T,A){var Le={};for(var We in T)Object.prototype.hasOwnProperty.call(T,We)&&A.indexOf(We)<0&&(Le[We]=T[We]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,We=Object.getOwnPropertySymbols(T);qe{const{prefixCls:Le,className:We,rootClassName:qe,block:yt,options:me=[],size:It="middle",style:Vt}=T,mt=Rn(T,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:Dt,direction:Mt,segmented:Lt}=K.useContext(mn.E_),Pn=Dt("segmented",Le),[Ee,Ve]=En(Pn),Be=(0,jn.Z)(It),Qe=K.useMemo(()=>me.map(P=>{if(On(P)){const{icon:de,label:ye}=P,He=Rn(P,["icon","label"]);return Object.assign(Object.assign({},He),{label:K.createElement(K.Fragment,null,K.createElement("span",{className:`${Pn}-item-icon`},de),ye&&K.createElement("span",null,ye))})}return P}),[me,Pn]),St=w()(We,qe,Lt==null?void 0:Lt.className,{[`${Pn}-block`]:yt,[`${Pn}-sm`]:Be==="small",[`${Pn}-lg`]:Be==="large"},Ve),bt=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Vt);return Ee(K.createElement(tr,Object.assign({},mt,{className:St,style:bt,options:Qe,ref:A,prefixCls:Pn,direction:Mt})))})},59929:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return bt}});var i=a(50959),w=a(84875),I=a.n(w),l=a(33346),k=a(73273),Z=a(1788),ae=a(32682),Q=a(40727),K=a(65589),ce=a(18342),pe=a(12868),x=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),re=x,Ye=a(38126),z=a(10570),se=a(57);function H(P,de,ye){return(P-de)/(ye-de)}function it(P,de,ye,He){var _e=H(de,ye,He),st={};switch(P){case"rtl":st.right="".concat(_e*100,"%"),st.transform="translateX(50%)";break;case"btt":st.bottom="".concat(_e*100,"%"),st.transform="translateY(50%)";break;case"ttb":st.top="".concat(_e*100,"%"),st.transform="translateY(-50%)";break;default:st.left="".concat(_e*100,"%"),st.transform="translateX(-50%)";break}return st}function At(P,de){return Array.isArray(P)?P[de]:P}var ke=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],ut=i.forwardRef(function(P,de){var ye,He,_e=P.prefixCls,st=P.value,Ct=P.valueIndex,Kt=P.onStartMove,$t=P.style,Rt=P.render,lt=P.dragging,nt=P.onOffsetChange,Fe=P.onChangeComplete,je=(0,z.Z)(P,ke),fe=i.useContext(re),Ze=fe.min,$=fe.max,j=fe.direction,Y=fe.disabled,Me=fe.keyboard,ze=fe.range,ft=fe.tabIndex,vn=fe.ariaLabelForHandle,_t=fe.ariaLabelledByForHandle,Yt=fe.ariaValueTextFormatterForHandle,Tt=fe.styles,Ut=fe.classNames,dn="".concat(_e,"-handle"),Ft=function(N){Y||Kt(N,Ct)},un=function(N){if(!Y&&Me){var Pe=null;switch(N.which||N.keyCode){case se.Z.LEFT:Pe=j==="ltr"||j==="btt"?-1:1;break;case se.Z.RIGHT:Pe=j==="ltr"||j==="btt"?1:-1;break;case se.Z.UP:Pe=j!=="ttb"?1:-1;break;case se.Z.DOWN:Pe=j!=="ttb"?-1:1;break;case se.Z.HOME:Pe="min";break;case se.Z.END:Pe="max";break;case se.Z.PAGE_UP:Pe=2;break;case se.Z.PAGE_DOWN:Pe=-2;break}Pe!==null&&(N.preventDefault(),nt(Pe,Ct))}},ve=function(N){switch(N.which||N.keyCode){case se.Z.LEFT:case se.Z.RIGHT:case se.Z.UP:case se.Z.DOWN:case se.Z.HOME:case se.Z.END:case se.Z.PAGE_UP:case se.Z.PAGE_DOWN:Fe==null||Fe();break}},Ge=it(j,st,Ze,$),vt=i.createElement("div",(0,Ye.Z)({ref:de,className:I()(dn,(ye={},(0,k.Z)(ye,"".concat(dn,"-").concat(Ct+1),ze),(0,k.Z)(ye,"".concat(dn,"-dragging"),lt),ye),Ut.handle),style:(0,l.Z)((0,l.Z)((0,l.Z)({},Ge),$t),Tt.handle),onMouseDown:Ft,onTouchStart:Ft,onKeyDown:un,onKeyUp:ve,tabIndex:Y?null:At(ft,Ct),role:"slider","aria-valuemin":Ze,"aria-valuemax":$,"aria-valuenow":st,"aria-disabled":Y,"aria-label":At(vn,Ct),"aria-labelledby":At(_t,Ct),"aria-valuetext":(He=At(Yt,Ct))===null||He===void 0?void 0:He(st),"aria-orientation":j==="ltr"||j==="rtl"?"horizontal":"vertical"},je));return Rt&&(vt=Rt(vt,{index:Ct,prefixCls:_e,value:st,dragging:lt})),vt}),B=ut,tr=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],mn=i.forwardRef(function(P,de){var ye=P.prefixCls,He=P.style,_e=P.onStartMove,st=P.onOffsetChange,Ct=P.values,Kt=P.handleRender,$t=P.draggingIndex,Rt=(0,z.Z)(P,tr),lt=i.useRef({});return i.useImperativeHandle(de,function(){return{focus:function(Fe){var je;(je=lt.current[Fe])===null||je===void 0||je.focus()}}}),i.createElement(i.Fragment,null,Ct.map(function(nt,Fe){return i.createElement(B,(0,Ye.Z)({ref:function(fe){fe?lt.current[Fe]=fe:delete lt.current[Fe]},dragging:$t===Fe,prefixCls:ye,style:At(He,Fe),key:Fe,value:nt,valueIndex:Fe,onStartMove:_e,onOffsetChange:st,render:Kt},Rt))}))}),jn=mn;function bn(P){var de="touches"in P?P.touches[0]:P;return{pageX:de.pageX,pageY:de.pageY}}function qt(P,de,ye,He,_e,st,Ct,Kt,$t){var Rt=i.useState(null),lt=(0,ae.Z)(Rt,2),nt=lt[0],Fe=lt[1],je=i.useState(-1),fe=(0,ae.Z)(je,2),Ze=fe[0],$=fe[1],j=i.useState(ye),Y=(0,ae.Z)(j,2),Me=Y[0],ze=Y[1],ft=i.useState(ye),vn=(0,ae.Z)(ft,2),_t=vn[0],Yt=vn[1],Tt=i.useRef(null),Ut=i.useRef(null);i.useEffect(function(){Ze===-1&&ze(ye)},[ye,Ze]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",Tt.current),document.removeEventListener("mouseup",Ut.current),document.removeEventListener("touchmove",Tt.current),document.removeEventListener("touchend",Ut.current)}},[]);var dn=function(et,N){Me.some(function(Pe,De){return Pe!==et[De]})&&(N!==void 0&&Fe(N),ze(et),Ct(et))},Ft=function(et,N){if(et===-1){var Pe=_t[0],De=_t[_t.length-1],ge=He-Pe,rt=_e-De,Je=N*(_e-He);Je=Math.max(Je,ge),Je=Math.min(Je,rt);var Re=st(Pe+Je);Je=Re-Pe;var Ln=_t.map(function(Wn){return Wn+Je});dn(Ln)}else{var zn=(_e-He)*N,on=(0,Z.Z)(Me);on[et]=_t[et];var Mn=$t(on,zn,et,"dist");dn(Mn.values,Mn.value)}},un=i.useRef(Ft);un.current=Ft;var ve=function(et,N,Pe){et.stopPropagation();var De=Pe||ye,ge=De[N];$(N),Fe(ge),Yt(De);var rt=bn(et),Je=rt.pageX,Re=rt.pageY,Ln=function(Mn){Mn.preventDefault();var Wn=bn(Mn),Gn=Wn.pageX,br=Wn.pageY,Ae=Gn-Je,ue=br-Re,S=P.current.getBoundingClientRect(),G=S.width,J=S.height,C;switch(de){case"btt":C=-ue/J;break;case"ttb":C=ue/J;break;case"rtl":C=-Ae/G;break;default:C=Ae/G}un.current(N,C)},zn=function on(Mn){Mn.preventDefault(),document.removeEventListener("mouseup",on),document.removeEventListener("mousemove",Ln),document.removeEventListener("touchend",on),document.removeEventListener("touchmove",Ln),Tt.current=null,Ut.current=null,$(-1),Kt()};document.addEventListener("mouseup",zn),document.addEventListener("mousemove",Ln),document.addEventListener("touchend",zn),document.addEventListener("touchmove",Ln),Tt.current=Ln,Ut.current=zn},Ge=i.useMemo(function(){var vt=(0,Z.Z)(ye).sort(function(N,Pe){return N-Pe}),et=(0,Z.Z)(Me).sort(function(N,Pe){return N-Pe});return vt.every(function(N,Pe){return N===et[Pe]})?Me:ye},[ye,Me]);return[Ze,nt,Ge,ve]}function be(P,de,ye,He,_e,st){var Ct=i.useCallback(function(je){var fe=isFinite(je)?je:P;return fe=Math.min(de,je),fe=Math.max(P,fe),fe},[P,de]),Kt=i.useCallback(function(je){if(ye!==null){var fe=P+Math.round((Ct(je)-P)/ye)*ye,Ze=function(Me){return(String(Me).split(".")[1]||"").length},$=Math.max(Ze(ye),Ze(de),Ze(P)),j=Number(fe.toFixed($));return P<=j&&j<=de?j:null}return null},[ye,P,de,Ct]),$t=i.useCallback(function(je){var fe=Ct(je),Ze=He.map(function(Y){return Y.value});ye!==null&&Ze.push(Kt(je)),Ze.push(P,de);var $=Ze[0],j=de-P;return Ze.forEach(function(Y){var Me=Math.abs(fe-Y);Me<=j&&($=Y,j=Me)}),$},[P,de,He,ye,Ct,Kt]),Rt=function je(fe,Ze,$){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Ze=="number"){var Y,Me=fe[$],ze=Me+Ze,ft=[];He.forEach(function(Ut){ft.push(Ut.value)}),ft.push(P,de),ft.push(Kt(Me));var vn=Ze>0?1:-1;j==="unit"?ft.push(Kt(Me+vn*ye)):ft.push(Kt(ze)),ft=ft.filter(function(Ut){return Ut!==null}).filter(function(Ut){return Ze<0?Ut<=Me:Ut>=Me}),j==="unit"&&(ft=ft.filter(function(Ut){return Ut!==Me}));var _t=j==="unit"?Me:ze;Y=ft[0];var Yt=Math.abs(Y-_t);if(ft.forEach(function(Ut){var dn=Math.abs(Ut-_t);dn1){var Tt=(0,Z.Z)(fe);return Tt[$]=Y,je(Tt,Ze-vn,$,j)}return Y}else{if(Ze==="min")return P;if(Ze==="max")return de}},lt=function(fe,Ze,$){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Y=fe[$],Me=Rt(fe,Ze,$,j);return{value:Me,changed:Me!==Y}},nt=function(fe){return st===null&&fe===0||typeof st=="number"&&fe3&&arguments[3]!==void 0?arguments[3]:"unit",Y=fe.map($t),Me=Y[$],ze=Rt(Y,Ze,$,j);if(Y[$]=ze,_e===!1){var ft=st||0;$>0&&Y[$-1]!==Me&&(Y[$]=Math.max(Y[$],Y[$-1]+ft)),$0;Tt-=1)for(var Ut=!0;nt(Y[Tt]-Y[Tt-1])&&Ut;){var dn=lt(Y,-1,Tt-1);Y[Tt-1]=dn.value,Ut=dn.changed}for(var Ft=Y.length-1;Ft>0;Ft-=1)for(var un=!0;nt(Y[Ft]-Y[Ft-1])&&un;){var ve=lt(Y,-1,Ft-1);Y[Ft-1]=ve.value,un=ve.changed}for(var Ge=0;Ge=0?et:!1},[et,te]),V=i.useMemo(function(){var nn=Object.keys(Wn||{});return nn.map(function(Jt){var cn=Wn[Jt],O={value:Number(Jt)};return cn&&(0,Q.Z)(cn)==="object"&&!i.isValidElement(cn)&&("label"in cn||"style"in cn)?(O.style=cn.style,O.label=cn.label):O.label=cn,O}).filter(function(Jt){var cn=Jt.label;return cn||typeof cn=="number"}).sort(function(Jt,cn){return Jt.value-cn.value})},[Wn]),Oe=be(W,ne,te,V,Ge,le),Ie=(0,ae.Z)(Oe,2),at=Ie[0],dt=Ie[1],ht=(0,K.Z)(_t,{value:vn}),Gt=(0,ae.Z)(ht,2),en=Gt[0],Ht=Gt[1],ct=i.useMemo(function(){var nn=en==null?[]:Array.isArray(en)?en:[en],Jt=(0,ae.Z)(nn,1),cn=Jt[0],O=cn===void 0?W:cn,D=en===null?[]:[O];if(Yt){if(D=(0,Z.Z)(nn),Tt||en===void 0){var oe=Tt>=0?Tt+1:2;for(D=D.slice(0,oe);D.length=0&&C.current.focus(nn)}xn(null)},[Un]);var ir=i.useMemo(function(){return N&&te===null?!1:N},[N,te]),ur=function(Jt,cn){Qn(Jt,cn),dn==null||dn(kt(Qt.current))},An=gn!==-1;i.useEffect(function(){if(!An){var nn=ct.lastIndexOf(Bn);C.current.focus(nn)}},[An]);var In=i.useMemo(function(){return(0,Z.Z)(Vn).sort(function(nn,Jt){return nn-Jt})},[Vn]),$n=i.useMemo(function(){return Yt?[In[0],In[In.length-1]]:[W,In[0]]},[In,Yt,W]),Ot=(0,ae.Z)($n,2),Nn=Ot[0],ln=Ot[1];i.useImperativeHandle(de,function(){return{focus:function(){C.current.focus(0)},blur:function(){var Jt=document,cn=Jt.activeElement;E.current.contains(cn)&&(cn==null||cn.blur())}}}),i.useEffect(function(){je&&C.current.focus(0)},[]);var sn=i.useMemo(function(){return{min:W,max:ne,direction:F,disabled:lt,keyboard:Fe,step:te,included:rt,includedStart:Nn,includedEnd:ln,range:Yt,tabIndex:ue,ariaLabelForHandle:S,ariaLabelledByForHandle:G,ariaValueTextFormatterForHandle:J,styles:$t||{},classNames:Kt||{}}},[W,ne,F,lt,Fe,te,rt,Nn,ln,Yt,ue,S,G,J,$t,Kt]);return i.createElement(re.Provider,{value:sn},i.createElement("div",{ref:E,className:I()(_e,st,(ye={},(0,k.Z)(ye,"".concat(_e,"-disabled"),lt),(0,k.Z)(ye,"".concat(_e,"-vertical"),De),(0,k.Z)(ye,"".concat(_e,"-horizontal"),!De),(0,k.Z)(ye,"".concat(_e,"-with-marks"),V.length),ye)),style:Ct,onMouseDown:qn},i.createElement("div",{className:I()("".concat(_e,"-rail"),Kt==null?void 0:Kt.rail),style:(0,l.Z)((0,l.Z)({},zn),$t==null?void 0:$t.rail)}),i.createElement(tn,{prefixCls:_e,style:Re,values:In,startPoint:Je,onStartMove:ir?ur:null}),i.createElement(pt,{prefixCls:_e,marks:V,dots:Gn,style:on,activeStyle:Mn}),i.createElement(jn,{ref:C,prefixCls:_e,style:Ln,values:Vn,draggingIndex:gn,onStartMove:ur,onOffsetChange:Hn,onFocus:fe,onBlur:Ze,handleRender:br,onChangeComplete:jt}),i.createElement(Wt,{prefixCls:_e,marks:V,onClick:hn})))}),Rn=En,On=Rn,Te=a(31594),fn=a(69943),T=a(28449),A=a(12602),Le=a(32618),qe=i.forwardRef((P,de)=>{const{open:ye}=P,He=(0,i.useRef)(null),_e=(0,i.useRef)(null);function st(){T.Z.cancel(_e.current),_e.current=null}function Ct(){_e.current=(0,T.Z)(()=>{var Kt;(Kt=He.current)===null||Kt===void 0||Kt.forceAlign(),_e.current=null})}return i.useEffect(()=>(ye?Ct():st(),st),[ye,P.title]),i.createElement(Le.Z,Object.assign({ref:(0,A.sQ)(He,de)},P))}),yt=a(99978),me=a(6301),It=a(81501),Vt=a(90467),mt=a(60076);const Dt=P=>{const{componentCls:de,antCls:ye,controlSize:He,dotSize:_e,marginFull:st,marginPart:Ct,colorFillContentHover:Kt,handleColorDisabled:$t,calc:Rt}=P;return{[de]:Object.assign(Object.assign({},(0,me.Wf)(P)),{position:"relative",height:He,margin:`${(0,mt.bf)(Ct)} ${(0,mt.bf)(st)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,mt.bf)(st)} ${(0,mt.bf)(Ct)}`},[`${de}-rail`]:{position:"absolute",backgroundColor:P.railBg,borderRadius:P.borderRadiusXS,transition:`background-color ${P.motionDurationMid}`},[`${de}-track,${de}-tracks`]:{position:"absolute",transition:`background-color ${P.motionDurationMid}`},[`${de}-track`]:{backgroundColor:P.trackBg,borderRadius:P.borderRadiusXS},[`${de}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${de}-rail`]:{backgroundColor:P.railHoverBg},[`${de}-track`]:{backgroundColor:P.trackHoverBg},[`${de}-dot`]:{borderColor:Kt},[`${de}-handle::after`]:{boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${P.colorPrimaryBorderHover}`},[`${de}-dot-active`]:{borderColor:P.dotActiveBorderColor}},[`${de}-handle`]:{position:"absolute",width:P.handleSize,height:P.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:Rt(P.handleLineWidth).mul(-1).equal(),insetBlockStart:Rt(P.handleLineWidth).mul(-1).equal(),width:Rt(P.handleSize).add(Rt(P.handleLineWidth).mul(2)).equal(),height:Rt(P.handleSize).add(Rt(P.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:P.handleSize,height:P.handleSize,backgroundColor:P.colorBgElevated,boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${P.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${P.motionDurationMid}, + inset-block-start ${P.motionDurationMid}, + width ${P.motionDurationMid}, + height ${P.motionDurationMid}, + box-shadow ${P.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:Rt(P.handleSizeHover).sub(P.handleSize).div(2).add(P.handleLineWidthHover).mul(-1).equal(),insetBlockStart:Rt(P.handleSizeHover).sub(P.handleSize).div(2).add(P.handleLineWidthHover).mul(-1).equal(),width:Rt(P.handleSizeHover).add(Rt(P.handleLineWidthHover).mul(2)).equal(),height:Rt(P.handleSizeHover).add(Rt(P.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidthHover)} ${P.handleActiveColor}`,width:P.handleSizeHover,height:P.handleSizeHover,insetInlineStart:P.calc(P.handleSize).sub(P.handleSizeHover).div(2).equal(),insetBlockStart:P.calc(P.handleSize).sub(P.handleSizeHover).div(2).equal()}}},[`${de}-mark`]:{position:"absolute",fontSize:P.fontSize},[`${de}-mark-text`]:{position:"absolute",display:"inline-block",color:P.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:P.colorText}},[`${de}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${de}-dot`]:{position:"absolute",width:_e,height:_e,backgroundColor:P.colorBgElevated,border:`${(0,mt.bf)(P.handleLineWidth)} solid ${P.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${P.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:P.dotActiveBorderColor}},[`&${de}-disabled`]:{cursor:"not-allowed",[`${de}-rail`]:{backgroundColor:`${P.railBg} !important`},[`${de}-track`]:{backgroundColor:`${P.trackBgDisabled} !important`},[` + ${de}-dot + `]:{backgroundColor:P.colorBgElevated,borderColor:P.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${de}-handle::after`]:{backgroundColor:P.colorBgElevated,cursor:"not-allowed",width:P.handleSize,height:P.handleSize,boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${$t}`,insetInlineStart:0,insetBlockStart:0},[` + ${de}-mark-text, + ${de}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${ye}-tooltip-inner`]:{minWidth:"unset"}})}},Mt=(P,de)=>{const{componentCls:ye,railSize:He,handleSize:_e,dotSize:st,marginFull:Ct,calc:Kt}=P,$t=de?"paddingBlock":"paddingInline",Rt=de?"width":"height",lt=de?"height":"width",nt=de?"insetBlockStart":"insetInlineStart",Fe=de?"top":"insetInlineStart",je=Kt(He).mul(3).sub(_e).div(2).equal(),fe=Kt(_e).sub(He).div(2).equal(),Ze=de?{borderWidth:`${(0,mt.bf)(fe)} 0`,transform:`translateY(${(0,mt.bf)(Kt(fe).mul(-1).equal())})`}:{borderWidth:`0 ${(0,mt.bf)(fe)}`,transform:`translateX(${(0,mt.bf)(P.calc(fe).mul(-1).equal())})`};return{[$t]:He,[lt]:Kt(He).mul(3).equal(),[`${ye}-rail`]:{[Rt]:"100%",[lt]:He},[`${ye}-track,${ye}-tracks`]:{[lt]:He},[`${ye}-track-draggable`]:Object.assign({},Ze),[`${ye}-handle`]:{[nt]:je},[`${ye}-mark`]:{insetInlineStart:0,top:0,[Fe]:Kt(He).mul(3).add(de?0:Ct).equal(),[Rt]:"100%"},[`${ye}-step`]:{insetInlineStart:0,top:0,[Fe]:He,[Rt]:"100%",[lt]:He},[`${ye}-dot`]:{position:"absolute",[nt]:Kt(He).sub(st).div(2).equal()}}},Lt=P=>{const{componentCls:de,marginPartWithMark:ye}=P;return{[`${de}-horizontal`]:Object.assign(Object.assign({},Mt(P,!0)),{[`&${de}-with-marks`]:{marginBottom:ye}})}},Pn=P=>{const{componentCls:de}=P;return{[`${de}-vertical`]:Object.assign(Object.assign({},Mt(P,!1)),{height:"100%"})}},Ee=P=>{const ye=P.controlHeightLG/4,He=P.controlHeightSM/2,_e=P.lineWidth+1,st=P.lineWidth+1*3;return{controlSize:ye,railSize:4,handleSize:ye,handleSizeHover:He,dotSize:8,handleLineWidth:_e,handleLineWidthHover:st,railBg:P.colorFillTertiary,railHoverBg:P.colorFillSecondary,trackBg:P.colorPrimaryBorder,trackHoverBg:P.colorPrimaryBorderHover,handleColor:P.colorPrimaryBorder,handleActiveColor:P.colorPrimary,handleColorDisabled:new yt.C(P.colorTextDisabled).onBackground(P.colorBgContainer).toHexShortString(),dotBorderColor:P.colorBorderSecondary,dotActiveBorderColor:P.colorPrimaryBorder,trackBgDisabled:P.colorBgContainerDisabled}};var Ve=(0,It.I$)("Slider",P=>{const de=(0,Vt.TS)(P,{marginPart:P.calc(P.controlHeight).sub(P.controlSize).div(2).equal(),marginFull:P.calc(P.controlSize).div(2).equal(),marginPartWithMark:P.calc(P.controlHeightLG).sub(P.controlSize).equal()});return[Dt(de),Lt(de),Pn(de)]},Ee),Be=function(P,de){var ye={};for(var He in P)Object.prototype.hasOwnProperty.call(P,He)&&de.indexOf(He)<0&&(ye[He]=P[He]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,He=Object.getOwnPropertySymbols(P);_etypeof ye=="number"?ye.toString():""}var bt=i.forwardRef((P,de)=>{const{prefixCls:ye,range:He,className:_e,rootClassName:st,style:Ct,disabled:Kt,tooltipPrefixCls:$t,tipFormatter:Rt,tooltipVisible:lt,getTooltipPopupContainer:nt,tooltipPlacement:Fe}=P,je=Be(P,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:fe,slider:Ze,getPrefixCls:$,getPopupContainer:j}=i.useContext(Te.E_),Y=i.useContext(fn.Z),Me=Kt!=null?Kt:Y,[ze,ft]=i.useState({}),vn=(vt,et)=>{ft(N=>Object.assign(Object.assign({},N),{[vt]:et}))},_t=(vt,et)=>vt||(et?fe==="rtl"?"left":"right":"top"),Yt=$("slider",ye),[Tt,Ut]=Ve(Yt),dn=I()(_e,Ze==null?void 0:Ze.className,st,{[`${Yt}-rtl`]:fe==="rtl"},Ut);fe==="rtl"&&!je.vertical&&(je.reverse=!je.reverse);const[Ft,un]=i.useMemo(()=>He?typeof He=="object"?[!0,He.draggableTrack]:[!0,!1]:[!1],[He]),ve=(vt,et)=>{var N;const{index:Pe,dragging:De}=et,{tooltip:ge={},vertical:rt}=P,Je=Object.assign({},ge),{open:Re,placement:Ln,getPopupContainer:zn,prefixCls:on,formatter:Mn}=Je,Wn=Qe(Mn,Rt),Gn=Wn?ze[Pe]||De:!1,br=(N=Re!=null?Re:lt)!==null&&N!==void 0?N:Re===void 0&&Gn,Ae=Object.assign(Object.assign({},vt.props),{onMouseEnter:()=>vn(Pe,!0),onMouseLeave:()=>vn(Pe,!1),onFocus:ue=>{var S;vn(Pe,!0),(S=je.onFocus)===null||S===void 0||S.call(je,ue)},onBlur:ue=>{var S;vn(Pe,!1),(S=je.onBlur)===null||S===void 0||S.call(je,ue)}});return i.createElement(qe,Object.assign({},Je,{prefixCls:$("tooltip",on!=null?on:$t),title:Wn?Wn(et.value):"",open:br,placement:_t(Ln!=null?Ln:Fe,rt),key:Pe,overlayClassName:`${Yt}-tooltip`,getPopupContainer:zn||nt||j}),i.cloneElement(vt,Ae))},Ge=Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Ct);return Tt(i.createElement(On,Object.assign({},je,{step:je.step,range:Ft,draggableTrack:un,className:dn,style:Ge,disabled:Me,ref:de,prefixCls:Yt,handleRender:ve})))})},74360:function(Zt,xe,a){"use strict";var i=a(50959),w=a(97960),I=a(17291),l=function(ce,pe){var x={};for(var re in ce)Object.prototype.hasOwnProperty.call(ce,re)&&pe.indexOf(re)<0&&(x[re]=ce[re]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,re=Object.getOwnPropertySymbols(ce);Yei.createElement(Z,Object.assign({},ce,{picker:"time",mode:void 0,ref:pe}))),Q=i.forwardRef((ce,pe)=>{var{addon:x,renderExtraFooter:re}=ce,Ye=l(ce,["addon","renderExtraFooter"]);const z=i.useMemo(()=>{if(re)return re;if(x)return x},[x,re]);return i.createElement(k,Object.assign({},Ye,{mode:void 0,ref:pe,renderExtraFooter:z}))}),K=(0,w.Z)(Q,"picker");Q._InternalPanelDoNotUseOrYouWillBeFired=K,Q.RangePicker=ae,Q._InternalPanelDoNotUseOrYouWillBeFired=K,xe.Z=Q},96238:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return un}});var i=a(50959),w=a(84875),I=a.n(w),l=a(38126),k=a(1788),Z=a(33346),ae=a(32682),Q=a(10570),K=a(40727),ce=a(43984),pe=a(32986),x=a(27545),re=a(65589),Ye=a(12868),z=function(ve){var Ge=i.useRef({valueLabels:new Map});return i.useMemo(function(){var vt=Ge.current.valueLabels,et=new Map,N=ve.map(function(Pe){var De,ge=Pe.value,rt=(De=Pe.label)!==null&&De!==void 0?De:vt.get(ge);return et.set(ge,rt),(0,Z.Z)((0,Z.Z)({},Pe),{},{label:rt})});return Ge.current.valueLabels=et,[N]},[ve])},se=function(ve,Ge,vt,et){return i.useMemo(function(){var N=ve.map(function(rt){var Je=rt.value;return Je}),Pe=Ge.map(function(rt){var Je=rt.value;return Je}),De=N.filter(function(rt){return!et[rt]});if(vt){var ge=(0,x.S)(N,!0,et);N=ge.checkedKeys,Pe=ge.halfCheckedKeys}return[Array.from(new Set([].concat((0,k.Z)(De),(0,k.Z)(N)))),Pe]},[ve,Ge,vt,et])},H=a(25237),it=function(ve,Ge){return i.useMemo(function(){var vt=(0,H.I8)(ve,{fieldNames:Ge,initWrapper:function(N){return(0,Z.Z)((0,Z.Z)({},N),{},{valueEntities:new Map})},processEntity:function(N,Pe){var De=N.node[Ge.value];if(!1)var ge;Pe.valueEntities.set(De,N)}});return vt},[ve,Ge])},At=a(73273),ke=a(13763),ut=function(){return null},B=ut,tr=["children","value"];function mn(ve){return(0,ke.Z)(ve).map(function(Ge){if(!i.isValidElement(Ge)||!Ge.type)return null;var vt=Ge,et=vt.key,N=vt.props,Pe=N.children,De=N.value,ge=(0,Q.Z)(N,tr),rt=(0,Z.Z)({key:et,value:De},ge),Je=mn(Pe);return Je.length&&(rt.children=Je),rt}).filter(function(Ge){return Ge})}function jn(ve){if(!ve)return ve;var Ge=(0,Z.Z)({},ve);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,Ye.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ge}}),Ge}function bn(ve,Ge,vt,et,N,Pe){var De=null,ge=null;function rt(){function Je(Re){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Re.map(function(on,Mn){var Wn="".concat(Ln,"-").concat(Mn),Gn=on[Pe.value],br=vt.includes(Gn),Ae=Je(on[Pe.children]||[],Wn,br),ue=i.createElement(B,on,Ae.map(function(G){return G.node}));if(Ge===Gn&&(De=ue),br){var S={pos:Wn,node:ue,children:Ae};return zn||ge.push(S),S}return null}).filter(function(on){return on})}ge||(ge=[],Je(et),ge.sort(function(Re,Ln){var zn=Re.node.props.value,on=Ln.node.props.value,Mn=vt.indexOf(zn),Wn=vt.indexOf(on);return Mn-Wn}))}Object.defineProperty(ve,"triggerNode",{get:function(){return(0,Ye.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),rt(),De}}),Object.defineProperty(ve,"allCheckedNodes",{get:function(){return(0,Ye.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),rt(),N?ge:ge.map(function(Re){var Ln=Re.node;return Ln})}})}var qt=function(ve,Ge,vt){var et=vt.treeNodeFilterProp,N=vt.filterTreeNode,Pe=vt.fieldNames,De=Pe.children;return i.useMemo(function(){if(!Ge||N===!1)return ve;var ge;if(typeof N=="function")ge=N;else{var rt=Ge.toUpperCase();ge=function(Ln,zn){var on=zn[et];return String(on).toUpperCase().includes(rt)}}function Je(Re){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Re.reduce(function(zn,on){var Mn=on[De],Wn=Ln||ge(Ge,jn(on)),Gn=Je(Mn||[],Wn);return(Wn||Gn.length)&&zn.push((0,Z.Z)((0,Z.Z)({},on),{},(0,At.Z)({isLeaf:void 0},De,Gn))),zn},[])}return Je(ve)},[ve,Ge,De,et,N])};function be(ve){var Ge=i.useRef();Ge.current=ve;var vt=i.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return vt}function Ue(ve,Ge){var vt=Ge.id,et=Ge.pId,N=Ge.rootPId,Pe={},De=[],ge=ve.map(function(rt){var Je=(0,Z.Z)({},rt),Re=Je[vt];return Pe[Re]=Je,Je.key=Je.key||Re,Je});return ge.forEach(function(rt){var Je=rt[et],Re=Pe[Je];Re&&(Re.children=Re.children||[],Re.children.push(rt)),(Je===N||!Re&&N===null)&&De.push(rt)}),De}function Wt(ve,Ge,vt){return i.useMemo(function(){return ve?vt?Ue(ve,(0,Z.Z)({id:"id",pId:"pId",rootPId:null},vt!==!0?vt:{})):ve:mn(Ge)},[Ge,vt,ve])}var an=i.createContext(null),pt=an,tt=a(57),tn=a(12554),En=a(82635),Rn=i.createContext(null),On=Rn;function Te(ve){return Array.isArray(ve)?ve:ve!==void 0?[ve]:[]}function fn(ve){var Ge=ve||{},vt=Ge.label,et=Ge.value,N=Ge.children,Pe=et||"value";return{_title:vt?[vt]:["title","label"],value:Pe,key:Pe,children:N||"children"}}function T(ve){return!ve||ve.disabled||ve.disableCheckbox||ve.checkable===!1}function A(ve,Ge){var vt=[];function et(N){N.forEach(function(Pe){var De=Pe[Ge.children];De&&(vt.push(Pe[Ge.value]),et(De))})}return et(ve),vt}function Le(ve){return ve==null}var We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qe=function(Ge,vt){var et=(0,ce.lk)(),N=et.prefixCls,Pe=et.multiple,De=et.searchValue,ge=et.toggleOpen,rt=et.open,Je=et.notFoundContent,Re=i.useContext(On),Ln=Re.virtual,zn=Re.listHeight,on=Re.listItemHeight,Mn=Re.listItemScrollOffset,Wn=Re.treeData,Gn=Re.fieldNames,br=Re.onSelect,Ae=Re.dropdownMatchSelectWidth,ue=Re.treeExpandAction,S=i.useContext(pt),G=S.checkable,J=S.checkedKeys,C=S.halfCheckedKeys,E=S.treeExpandedKeys,F=S.treeDefaultExpandAll,W=S.treeDefaultExpandedKeys,ne=S.onTreeExpand,te=S.treeIcon,le=S.showTreeIcon,V=S.switcherIcon,Oe=S.treeLine,Ie=S.treeNodeFilterProp,at=S.loadData,dt=S.treeLoadedKeys,ht=S.treeMotion,Gt=S.onTreeLoad,en=S.keyEntities,Ht=i.useRef(),ct=(0,tn.Z)(function(){return Wn},[rt,Wn],function($n,Ot){return Ot[0]&&$n[1]!==Ot[1]}),Qt=i.useState(null),kt=(0,ae.Z)(Qt,2),Et=kt[0],jt=kt[1],Nt=en[Et],xt=i.useMemo(function(){return G?{checked:J,halfChecked:C}:null},[G,J,C]);i.useEffect(function(){if(rt&&!Pe&&J.length){var $n;($n=Ht.current)===null||$n===void 0||$n.scrollTo({key:J[0]}),jt(J[0])}},[rt]);var gn=String(De).toLowerCase(),Bn=function(Ot){return gn?String(Ot[Ie]).toLowerCase().includes(gn):!1},Vn=i.useState(W),Qn=(0,ae.Z)(Vn,2),hn=Qn[0],qn=Qn[1],kn=i.useState(null),rr=(0,ae.Z)(kn,2),Un=rr[0],xn=rr[1],Hn=i.useMemo(function(){return E?(0,k.Z)(E):De?Un:hn},[hn,Un,E,De]);i.useEffect(function(){De&&xn(A(Wn,Gn))},[De]);var ir=function(Ot){qn(Ot),xn(Ot),ne&&ne(Ot)},ur=function(Ot){Ot.preventDefault()},An=function(Ot,Nn){var ln=Nn.node;G&&T(ln)||(br(ln.key,{selected:!J.includes(ln.key)}),Pe||ge(!1))};if(i.useImperativeHandle(vt,function(){var $n;return{scrollTo:($n=Ht.current)===null||$n===void 0?void 0:$n.scrollTo,onKeyDown:function(Nn){var ln,sn=Nn.which;switch(sn){case tt.Z.UP:case tt.Z.DOWN:case tt.Z.LEFT:case tt.Z.RIGHT:(ln=Ht.current)===null||ln===void 0||ln.onKeyDown(Nn);break;case tt.Z.ENTER:{if(Nt){var nn=(Nt==null?void 0:Nt.node)||{},Jt=nn.selectable,cn=nn.value;Jt!==!1&&An(null,{node:{key:Et},selected:!J.includes(cn)})}break}case tt.Z.ESC:ge(!1)}},onKeyUp:function(){}}}),ct.length===0)return i.createElement("div",{role:"listbox",className:"".concat(N,"-empty"),onMouseDown:ur},Je);var In={fieldNames:Gn};return dt&&(In.loadedKeys=dt),Hn&&(In.expandedKeys=Hn),i.createElement("div",{onMouseDown:ur},Nt&&rt&&i.createElement("span",{style:We,"aria-live":"assertive"},Nt.node.value),i.createElement(En.Z,(0,l.Z)({ref:Ht,focusable:!1,prefixCls:"".concat(N,"-tree"),treeData:ct,height:zn,itemHeight:on,itemScrollOffset:Mn,virtual:Ln!==!1&&Ae!==!1,multiple:Pe,icon:te,showIcon:le,switcherIcon:V,showLine:Oe,loadData:De?null:at,motion:ht,activeKey:Et,checkable:G,checkStrictly:!0,checkedKeys:xt,selectedKeys:G?[]:J,defaultExpandAll:F},In,{onActiveChange:jt,onSelect:An,onCheck:An,onExpand:ir,onLoad:Gt,filterTreeNode:Bn,expandAction:ue})))},yt=i.forwardRef(qe);yt.displayName="OptionList";var me=yt,It="SHOW_ALL",Vt="SHOW_PARENT",mt="SHOW_CHILD";function Dt(ve,Ge,vt,et){var N=new Set(ve);return Ge===mt?ve.filter(function(Pe){var De=vt[Pe];return!(De&&De.children&&De.children.some(function(ge){var rt=ge.node;return N.has(rt[et.value])})&&De.children.every(function(ge){var rt=ge.node;return T(rt)||N.has(rt[et.value])}))}):Ge===Vt?ve.filter(function(Pe){var De=vt[Pe],ge=De?De.parent:null;return!(ge&&!T(ge.node)&&N.has(ge.key))}):ve}function Mt(ve){var Ge=ve.searchPlaceholder,vt=ve.treeCheckStrictly,et=ve.treeCheckable,N=ve.labelInValue,Pe=ve.value,De=ve.multiple;warning(!Ge,"`searchPlaceholder` has been removed."),vt&&N===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(N||vt)&&warning(toArray(Pe).every(function(ge){return ge&&_typeof(ge)==="object"&&"value"in ge}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),vt||De||et?warning(!Pe||Array.isArray(Pe),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Pe),"`value` should not be array when `TreeSelect` is single mode.")}var Lt=null,Pn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function Ee(ve){return!ve||(0,K.Z)(ve)!=="object"}var Ve=i.forwardRef(function(ve,Ge){var vt=ve.id,et=ve.prefixCls,N=et===void 0?"rc-tree-select":et,Pe=ve.value,De=ve.defaultValue,ge=ve.onChange,rt=ve.onSelect,Je=ve.onDeselect,Re=ve.searchValue,Ln=ve.inputValue,zn=ve.onSearch,on=ve.autoClearSearchValue,Mn=on===void 0?!0:on,Wn=ve.filterTreeNode,Gn=ve.treeNodeFilterProp,br=Gn===void 0?"value":Gn,Ae=ve.showCheckedStrategy,ue=ve.treeNodeLabelProp,S=ve.multiple,G=ve.treeCheckable,J=ve.treeCheckStrictly,C=ve.labelInValue,E=ve.fieldNames,F=ve.treeDataSimpleMode,W=ve.treeData,ne=ve.children,te=ve.loadData,le=ve.treeLoadedKeys,V=ve.onTreeLoad,Oe=ve.treeDefaultExpandAll,Ie=ve.treeExpandedKeys,at=ve.treeDefaultExpandedKeys,dt=ve.onTreeExpand,ht=ve.treeExpandAction,Gt=ve.virtual,en=ve.listHeight,Ht=en===void 0?200:en,ct=ve.listItemHeight,Qt=ct===void 0?20:ct,kt=ve.listItemScrollOffset,Et=kt===void 0?0:kt,jt=ve.onDropdownVisibleChange,Nt=ve.dropdownMatchSelectWidth,xt=Nt===void 0?!0:Nt,gn=ve.treeLine,Bn=ve.treeIcon,Vn=ve.showTreeIcon,Qn=ve.switcherIcon,hn=ve.treeMotion,qn=(0,Q.Z)(ve,Pn),kn=(0,pe.ZP)(vt),rr=G&&!J,Un=G||J,xn=J||C,Hn=Un||S,ir=(0,re.Z)(De,{value:Pe}),ur=(0,ae.Z)(ir,2),An=ur[0],In=ur[1],$n=i.useMemo(function(){return G?Ae||mt:It},[Ae,G]),Ot=i.useMemo(function(){return fn(E)},[JSON.stringify(E)]),Nn=(0,re.Z)("",{value:Re!==void 0?Re:Ln,postState:function(Tr){return Tr||""}}),ln=(0,ae.Z)(Nn,2),sn=ln[0],nn=ln[1],Jt=function(Tr){nn(Tr),zn==null||zn(Tr)},cn=Wt(W,ne,F),O=it(cn,Ot),D=O.keyEntities,oe=O.valueEntities,Pt=i.useCallback(function(Lr){var Tr=[],Kr=[];return Lr.forEach(function(sa){oe.has(sa)?Kr.push(sa):Tr.push(sa)}),{missingRawValues:Tr,existRawValues:Kr}},[oe]),Tn=qt(cn,sn,{fieldNames:Ot,treeNodeFilterProp:br,filterTreeNode:Wn}),Yn=i.useCallback(function(Lr){if(Lr){if(ue)return Lr[ue];for(var Tr=Ot._title,Kr=0;Kr{const{componentCls:Ge,treePrefixCls:vt,colorBgElevated:et}=ve,N=`.${vt}`;return[{[`${Ge}-dropdown`]:[{padding:`${(0,fe.bf)(ve.paddingXS)} ${(0,fe.bf)(ve.calc(ve.paddingXS).div(2).equal())}`},(0,Y.Yk)(vt,(0,$.TS)(ve,{colorBgContainer:et})),{[N]:{borderRadius:0,[`${N}-list-holder-inner`]:{alignItems:"stretch",[`${N}-treenode`]:{[`${N}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ze.C2)(`${vt}-checkbox`,ve),{"&-rtl":{direction:"rtl",[`${N}-switcher${N}-switcher_close`]:{[`${N}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},ze=null;function ft(ve,Ge,vt){return(0,j.I$)("TreeSelect",et=>{const N=(0,$.TS)(et,{treePrefixCls:Ge});return[Me(N)]},Y.TM)(ve,vt)}var vn=a(10254),_t=a(22365),Yt=function(ve,Ge){var vt={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ge.indexOf(et)<0&&(vt[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,et=Object.getOwnPropertySymbols(ve);N{var vt,et,{prefixCls:N,size:Pe,disabled:De,bordered:ge=!0,className:rt,rootClassName:Je,treeCheckable:Re,multiple:Ln,listHeight:zn=256,listItemHeight:on=26,placement:Mn,notFoundContent:Wn,switcherIcon:Gn,treeLine:br,getPopupContainer:Ae,popupClassName:ue,dropdownClassName:S,treeIcon:G=!1,transitionName:J,choiceTransitionName:C="",status:E,treeExpandAction:F,builtinPlacements:W,dropdownMatchSelectWidth:ne,popupMatchSelectWidth:te,allowClear:le}=ve,V=Yt(ve,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Oe,getPrefixCls:Ie,renderEmpty:at,direction:dt,virtual:ht,popupMatchSelectWidth:Gt,popupOverflow:en}=i.useContext(He.E_),Ht=Ie(),ct=Ie("select",N),Qt=Ie("select-tree",N),kt=Ie("tree-select",N),{compactSize:Et,compactItemClassnames:jt}=(0,Fe.ri)(ct,dt),Nt=(0,vn.Z)(ct),xt=(0,vn.Z)(kt),[gn,Bn]=(0,$t.Z)(ct,Nt),[Vn]=ft(kt,Qt,xt),Qn=I()(ue||S,`${kt}-dropdown`,{[`${kt}-dropdown-rtl`]:dt==="rtl"},Je,Nt,xt,Bn),hn=!!(Re||Ln),qn=(0,lt.Z)(V.suffixIcon,V.showArrow),kn=(vt=te!=null?te:ne)!==null&&vt!==void 0?vt:Gt,{status:rr,hasFeedback:Un,isFormItemInput:xn,feedbackIcon:Hn}=i.useContext(Kt.aM),ir=(0,ye.F)(rr,E),{suffixIcon:ur,removeIcon:An,clearIcon:In}=(0,nt.Z)(Object.assign(Object.assign({},V),{multiple:hn,showSuffixIcon:qn,hasFeedback:Un,feedbackIcon:Hn,prefixCls:ct,componentName:"TreeSelect"})),$n=le===!0?{clearIcon:In}:le;let Ot;Wn!==void 0?Ot=Wn:Ot=(at==null?void 0:at("Select"))||i.createElement(_e.Z,{componentName:"Select"});const Nn=(0,bt.Z)(V,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),ln=i.useMemo(()=>Mn!==void 0?Mn:dt==="rtl"?"bottomRight":"bottomLeft",[Mn,dt]),sn=(0,Rt.Z)(W,en),nn=(0,Ct.Z)(Tn=>{var Yn;return(Yn=Pe!=null?Pe:Et)!==null&&Yn!==void 0?Yn:Tn}),Jt=i.useContext(st.Z),cn=De!=null?De:Jt,O=I()(!N&&kt,{[`${ct}-lg`]:nn==="large",[`${ct}-sm`]:nn==="small",[`${ct}-rtl`]:dt==="rtl",[`${ct}-borderless`]:!ge,[`${ct}-in-form-item`]:xn},(0,ye.Z)(ct,ir,Un),jt,rt,Je,Nt,xt,Bn),D=Tn=>i.createElement(je.Z,{prefixCls:Qt,switcherIcon:Gn,treeNodeProps:Tn,showLine:br}),[oe]=(0,_t.Cn)("SelectLike",(et=V.dropdownStyle)===null||et===void 0?void 0:et.zIndex),Pt=i.createElement(St,Object.assign({virtual:ht,disabled:cn},Nn,{dropdownMatchSelectWidth:kn,builtinPlacements:sn,ref:Ge,prefixCls:ct,className:O,listHeight:zn,listItemHeight:on,treeCheckable:Re&&i.createElement("span",{className:`${ct}-tree-checkbox-inner`}),treeLine:!!br,suffixIcon:ur,multiple:hn,placement:ln,removeIcon:An,allowClear:$n,switcherIcon:D,showTreeIcon:G,notFoundContent:Ot,getPopupContainer:Ae||Oe,treeMotion:null,dropdownClassName:Qn,dropdownStyle:Object.assign(Object.assign({},V.dropdownStyle),{zIndex:oe}),choiceTransitionName:(0,P.m)(Ht,"",C),transitionName:(0,P.m)(Ht,"slide-up",J),treeExpandAction:F}));return gn(Vn(Pt))},dn=i.forwardRef(Tt),Ft=(0,de.Z)(dn);dn.TreeNode=B,dn.SHOW_ALL=It,dn.SHOW_PARENT=Vt,dn.SHOW_CHILD=mt,dn._InternalPanelDoNotUseOrYouWillBeFired=Ft;var un=dn},86962:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return J}});var i=a(50959),w=a(1788),I=a(10422),l=a(84875),k=a.n(l),Z=a(38126),ae=a(47920),Q=a(77254),K=a(44906),ce=a(41399),pe=a(73273),x=a(10570),re=a(3224),Ye=a(40727),z=a(47801),se=a(68924);function H(C,E){var F="cannot ".concat(C.method," ").concat(C.action," ").concat(E.status,"'"),W=new Error(F);return W.status=E.status,W.method=C.method,W.url=C.action,W}function it(C){var E=C.responseText||C.response;if(!E)return E;try{return JSON.parse(E)}catch(F){return E}}function At(C){var E=new XMLHttpRequest;C.onProgress&&E.upload&&(E.upload.onprogress=function(te){te.total>0&&(te.percent=te.loaded/te.total*100),C.onProgress(te)});var F=new FormData;C.data&&Object.keys(C.data).forEach(function(ne){var te=C.data[ne];if(Array.isArray(te)){te.forEach(function(le){F.append("".concat(ne,"[]"),le)});return}F.append(ne,te)}),C.file instanceof Blob?F.append(C.filename,C.file,C.file.name):F.append(C.filename,C.file),E.onerror=function(te){C.onError(te)},E.onload=function(){return E.status<200||E.status>=300?C.onError(H(C,E),it(E)):C.onSuccess(it(E),E)},E.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in E&&(E.withCredentials=!0);var W=C.headers||{};return W["X-Requested-With"]!==null&&E.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(W).forEach(function(ne){W[ne]!==null&&E.setRequestHeader(ne,W[ne])}),E.send(F),{abort:function(){E.abort()}}}var ke=+new Date,ut=0;function B(){return"rc-upload-".concat(ke,"-").concat(++ut)}var tr=a(12868),mn=function(C,E){if(C&&E){var F=Array.isArray(E)?E:E.split(","),W=C.name||"",ne=C.type||"",te=ne.replace(/\/.*$/,"");return F.some(function(le){var V=le.trim();if(/^\*(\/\*)?$/.test(le))return!0;if(V.charAt(0)==="."){var Oe=W.toLowerCase(),Ie=V.toLowerCase(),at=[Ie];return(Ie===".jpg"||Ie===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(dt){return Oe.endsWith(dt)})}return/\/\*$/.test(V)?te===V.replace(/\/.*$/,""):ne===V?!0:/^\w+$/.test(V)?((0,tr.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(V,"'.Skip for check.")),!0):!1})}return!0};function jn(C,E){var F=C.createReader(),W=[];function ne(){F.readEntries(function(te){var le=Array.prototype.slice.apply(te);W=W.concat(le);var V=!le.length;V?E(W):ne()})}ne()}var bn=function(E,F,W){var ne=function te(le,V){le&&(le.path=V||"",le.isFile?le.file(function(Oe){W(Oe)&&(le.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=le.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),F([Oe]))}):le.isDirectory&&jn(le,function(Oe){Oe.forEach(function(Ie){te(Ie,"".concat(V).concat(le.name,"/"))})}))};E.forEach(function(te){ne(te.webkitGetAsEntry())})},qt=bn,be=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ue=function(C){(0,K.Z)(F,C);var E=(0,ce.Z)(F);function F(){var W;(0,ae.Z)(this,F);for(var ne=arguments.length,te=new Array(ne),le=0;le{const{componentCls:E,iconCls:F}=C;return{[`${E}-wrapper`]:{[`${E}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:C.colorFillAlter,border:`${(0,qe.bf)(C.lineWidth)} dashed ${C.colorBorder}`,borderRadius:C.borderRadiusLG,cursor:"pointer",transition:`border-color ${C.motionDurationSlow}`,[E]:{padding:`${(0,qe.bf)(C.padding)} 0`},[`${E}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${E}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${E}-disabled):hover, + &-hover:not(${E}-disabled) + `]:{borderColor:C.colorPrimaryHover},[`p${E}-drag-icon`]:{marginBottom:C.margin,[F]:{color:C.colorPrimary,fontSize:C.uploadThumbnailSize}},[`p${E}-text`]:{margin:`0 0 ${(0,qe.bf)(C.marginXXS)}`,color:C.colorTextHeading,fontSize:C.fontSizeLG},[`p${E}-hint`]:{color:C.colorTextDescription,fontSize:C.fontSize},[`&${E}-disabled`]:{[`p${E}-drag-icon ${F}, + p${E}-text, + p${E}-hint + `]:{color:C.colorTextDisabled}}}}}},Vt=C=>{const{componentCls:E,antCls:F,iconCls:W,fontSize:ne,lineHeight:te,calc:le}=C,V=`${E}-list-item`,Oe=`${V}-actions`,Ie=`${V}-action`,at=C.fontHeightSM;return{[`${E}-wrapper`]:{[`${E}-list`]:Object.assign(Object.assign({},(0,T.dF)()),{lineHeight:C.lineHeight,[V]:{position:"relative",height:le(C.lineHeight).mul(ne).equal(),marginTop:C.marginXS,fontSize:ne,display:"flex",alignItems:"center",transition:`background-color ${C.motionDurationSlow}`,"&:hover":{backgroundColor:C.controlItemBgHover},[`${V}-name`]:Object.assign(Object.assign({},T.vS),{padding:`0 ${(0,qe.bf)(C.paddingXS)}`,lineHeight:te,flex:"auto",transition:`all ${C.motionDurationSlow}`}),[Oe]:{[Ie]:{opacity:0},[`${Ie}${F}-btn-sm`]:{height:at,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${Ie}:focus-visible, + &.picture ${Ie} + `]:{opacity:1},[W]:{color:C.actionsColor,transition:`all ${C.motionDurationSlow}`},[`&:hover ${W}`]:{color:C.colorText}},[`${E}-icon ${W}`]:{color:C.colorTextDescription,fontSize:ne},[`${V}-progress`]:{position:"absolute",bottom:C.calc(C.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:le(ne).add(C.paddingXS).equal(),fontSize:ne,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${V}:hover ${Ie}`]:{opacity:1,color:C.colorText},[`${V}-error`]:{color:C.colorError,[`${V}-name, ${E}-icon ${W}`]:{color:C.colorError},[Oe]:{[`${W}, ${W}:hover`]:{color:C.colorError},[Ie]:{opacity:1}}},[`${E}-list-item-container`]:{transition:`opacity ${C.motionDurationSlow}, height ${C.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mt=a(69814);const Dt=new qe.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Mt=new qe.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pn=C=>{const{componentCls:E}=C,F=`${E}-animate-inline`;return[{[`${E}-wrapper`]:{[`${F}-appear, ${F}-enter, ${F}-leave`]:{animationDuration:C.motionDurationSlow,animationTimingFunction:C.motionEaseInOutCirc,animationFillMode:"forwards"},[`${F}-appear, ${F}-enter`]:{animationName:Dt},[`${F}-leave`]:{animationName:Mt}}},{[`${E}-wrapper`]:(0,mt.J$)(C)},Dt,Mt]},Ee=a(81548),Ve=a(99978);const Be=C=>{const{componentCls:E,iconCls:F,uploadThumbnailSize:W,uploadProgressOffset:ne,calc:te}=C,le=`${E}-list`,V=`${le}-item`;return{[`${E}-wrapper`]:{[` + ${le}${le}-picture, + ${le}${le}-picture-card, + ${le}${le}-picture-circle + `]:{[V]:{position:"relative",height:te(W).add(te(C.lineWidth).mul(2)).add(te(C.paddingXS).mul(2)).equal(),padding:C.paddingXS,border:`${(0,qe.bf)(C.lineWidth)} ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadiusLG,"&:hover":{background:"transparent"},[`${V}-thumbnail`]:Object.assign(Object.assign({},T.vS),{width:W,height:W,lineHeight:(0,qe.bf)(te(W).add(C.paddingSM).equal()),textAlign:"center",flex:"none",[F]:{fontSize:C.fontSizeHeading2,color:C.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${V}-progress`]:{bottom:ne,width:`calc(100% - ${(0,qe.bf)(te(C.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:te(W).add(C.paddingXS).equal()}},[`${V}-error`]:{borderColor:C.colorError,[`${V}-thumbnail ${F}`]:{[`svg path[fill='${Ee.blue[0]}']`]:{fill:C.colorErrorBg},[`svg path[fill='${Ee.blue.primary}']`]:{fill:C.colorError}}},[`${V}-uploading`]:{borderStyle:"dashed",[`${V}-name`]:{marginBottom:ne}}},[`${le}${le}-picture-circle ${V}`]:{[`&, &::before, ${V}-thumbnail`]:{borderRadius:"50%"}}}}},Qe=C=>{const{componentCls:E,iconCls:F,fontSizeLG:W,colorTextLightSolid:ne,calc:te}=C,le=`${E}-list`,V=`${le}-item`,Oe=C.uploadPicCardSize;return{[` + ${E}-wrapper${E}-picture-card-wrapper, + ${E}-wrapper${E}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,T.dF)()),{display:"inline-block",width:"100%",[`${E}${E}-select`]:{width:Oe,height:Oe,marginInlineEnd:C.marginXS,marginBottom:C.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:C.colorFillAlter,border:`${(0,qe.bf)(C.lineWidth)} dashed ${C.colorBorder}`,borderRadius:C.borderRadiusLG,cursor:"pointer",transition:`border-color ${C.motionDurationSlow}`,[`> ${E}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${E}-disabled):hover`]:{borderColor:C.colorPrimary}},[`${le}${le}-picture-card, ${le}${le}-picture-circle`]:{[`${le}-item-container`]:{display:"inline-block",width:Oe,height:Oe,marginBlock:`0 ${(0,qe.bf)(C.marginXS)}`,marginInline:`0 ${(0,qe.bf)(C.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[V]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,backgroundColor:C.colorBgMask,opacity:0,transition:`all ${C.motionDurationSlow}`,content:'" "'}},[`${V}:hover`]:{[`&::before, ${V}-actions`]:{opacity:1}},[`${V}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${C.motionDurationSlow}`,[`${F}-eye, ${F}-download, ${F}-delete`]:{zIndex:10,width:W,margin:`0 ${(0,qe.bf)(C.marginXXS)}`,fontSize:W,cursor:"pointer",transition:`all ${C.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${V}-actions, ${V}-actions:hover`]:{[`${F}-eye, ${F}-download, ${F}-delete`]:{color:new Ve.C(ne).setAlpha(.65).toRgbString(),"&:hover":{color:ne}}},[`${V}-thumbnail, ${V}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${V}-name`]:{display:"none",textAlign:"center"},[`${V}-file + ${V}-name`]:{position:"absolute",bottom:C.margin,display:"block",width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`},[`${V}-uploading`]:{[`&${V}`]:{backgroundColor:C.colorFillAlter},[`&::before, ${F}-eye, ${F}-download, ${F}-delete`]:{display:"none"}},[`${V}-progress`]:{bottom:C.marginXL,width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${E}-wrapper${E}-picture-circle-wrapper`]:{[`${E}${E}-select`]:{borderRadius:"50%"}}}};var bt=C=>{const{componentCls:E}=C;return{[`${E}-rtl`]:{direction:"rtl"}}};const P=C=>{const{componentCls:E,colorTextDisabled:F}=C;return{[`${E}-wrapper`]:Object.assign(Object.assign({},(0,T.Wf)(C)),{[E]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${E}-select`]:{display:"inline-block"},[`${E}-disabled`]:{color:F,cursor:"not-allowed"}})}},de=C=>({actionsColor:C.colorTextDescription});var ye=(0,Le.I$)("Upload",C=>{const{fontSizeHeading3:E,fontHeight:F,lineWidth:W,controlHeightLG:ne,calc:te}=C,le=(0,We.TS)(C,{uploadThumbnailSize:te(E).mul(2).equal(),uploadProgressOffset:te(te(F).div(2)).add(W).equal(),uploadPicCardSize:te(ne).mul(2.55).equal()});return[P(le),me(le),Be(le),Qe(le),Vt(le),Pn(le),bt(le),(0,A.Z)(le)]},de),He={icon:function(E,F){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:F}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:E}}]}},name:"file",theme:"twotone"},_e=He,st=a(38782),Ct=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:_e}))},Kt=i.forwardRef(Ct),$t=a(58516),Rt={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"},lt=Rt,nt=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:lt}))},Fe=i.forwardRef(nt),je={icon:function(E,F){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:E}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:F}},{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:F}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:F}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:E}}]}},name:"picture",theme:"twotone"},fe=je,Ze=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:fe}))},$=i.forwardRef(Ze),j=a(10091),Y=a(2116),Me=a(58351),ze=a(94914),ft=a(47100);function vn(C){return Object.assign(Object.assign({},C),{lastModified:C.lastModified,lastModifiedDate:C.lastModifiedDate,name:C.name,size:C.size,type:C.type,uid:C.uid,percent:0,originFileObj:C})}function _t(C,E){const F=(0,w.Z)(E),W=F.findIndex(ne=>{let{uid:te}=ne;return te===C.uid});return W===-1?F.push(C):F[W]=C,F}function Yt(C,E){const F=C.uid!==void 0?"uid":"name";return E.filter(W=>W[F]===C[F])[0]}function Tt(C,E){const F=C.uid!==void 0?"uid":"name",W=E.filter(ne=>ne[F]!==C[F]);return W.length===E.length?null:W}const Ut=function(){const E=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),W=E[E.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(W)||[""])[0]},dn=C=>C.indexOf("image/")===0,Ft=C=>{if(C.type&&!C.thumbUrl)return dn(C.type);const E=C.thumbUrl||C.url||"",F=Ut(E);return/^data:image\//.test(E)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(F)?!0:!(/^data:/.test(E)||F)},un=200;function ve(C){return new Promise(E=>{if(!C.type||!dn(C.type)){E("");return}const F=document.createElement("canvas");F.width=un,F.height=un,F.style.cssText=`position: fixed; left: 0; top: 0; width: ${un}px; height: ${un}px; z-index: 9999; display: none;`,document.body.appendChild(F);const W=F.getContext("2d"),ne=new Image;if(ne.onload=()=>{const{width:te,height:le}=ne;let V=un,Oe=un,Ie=0,at=0;te>le?(Oe=le*(un/te),at=-(Oe-V)/2):(V=te*(un/le),Ie=-(V-Oe)/2),W.drawImage(ne,Ie,at,V,Oe);const dt=F.toDataURL();document.body.removeChild(F),window.URL.revokeObjectURL(ne.src),E(dt)},ne.crossOrigin="anonymous",C.type.startsWith("image/svg+xml")){const te=new FileReader;te.onload=()=>{te.result&&(ne.src=te.result)},te.readAsDataURL(C)}else if(C.type.startsWith("image/gif")){const te=new FileReader;te.onload=()=>{te.result&&E(te.result)},te.readAsDataURL(C)}else ne.src=window.URL.createObjectURL(C)})}var Ge=a(22717),vt=a(19485),et=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:vt.Z}))},N=i.forwardRef(et),Pe=a(96527),De=a(17519),ge=a(32618),Je=i.forwardRef((C,E)=>{let{prefixCls:F,className:W,style:ne,locale:te,listType:le,file:V,items:Oe,progress:Ie,iconRender:at,actionIconRender:dt,itemRender:ht,isImgUrl:Gt,showPreviewIcon:en,showRemoveIcon:Ht,showDownloadIcon:ct,previewIcon:Qt,removeIcon:kt,downloadIcon:Et,onPreview:jt,onDownload:Nt,onClose:xt}=C;var gn,Bn;const{status:Vn}=V,[Qn,hn]=i.useState(Vn);i.useEffect(()=>{Vn!=="removed"&&hn(Vn)},[Vn]);const[qn,kn]=i.useState(!1);i.useEffect(()=>{const D=setTimeout(()=>{kn(!0)},300);return()=>{clearTimeout(D)}},[]);const rr=at(V);let Un=i.createElement("div",{className:`${F}-icon`},rr);if(le==="picture"||le==="picture-card"||le==="picture-circle")if(Qn==="uploading"||!V.thumbUrl&&!V.url){const D=k()(`${F}-list-item-thumbnail`,{[`${F}-list-item-file`]:Qn!=="uploading"});Un=i.createElement("div",{className:D},rr)}else{const D=Gt!=null&&Gt(V)?i.createElement("img",{src:V.thumbUrl||V.url,alt:V.name,className:`${F}-list-item-image`,crossOrigin:V.crossOrigin}):rr,oe=k()(`${F}-list-item-thumbnail`,{[`${F}-list-item-file`]:Gt&&!Gt(V)});Un=i.createElement("a",{className:oe,onClick:Pt=>jt(V,Pt),href:V.url||V.thumbUrl,target:"_blank",rel:"noopener noreferrer"},D)}const xn=k()(`${F}-list-item`,`${F}-list-item-${Qn}`),Hn=typeof V.linkProps=="string"?JSON.parse(V.linkProps):V.linkProps,ir=Ht?dt((typeof kt=="function"?kt(V):kt)||i.createElement(Ge.Z,null),()=>xt(V),F,te.removeFile):null,ur=ct&&Qn==="done"?dt((typeof Et=="function"?Et(V):Et)||i.createElement(N,null),()=>Nt(V),F,te.downloadFile):null,An=le!=="picture-card"&&le!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:k()(`${F}-list-item-actions`,{picture:le==="picture"})},ur,ir),In=k()(`${F}-list-item-name`),$n=V.url?[i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:In,title:V.name},Hn,{href:V.url,onClick:D=>jt(V,D)}),V.name),An]:[i.createElement("span",{key:"view",className:In,onClick:D=>jt(V,D),title:V.name},V.name),An],Ot={pointerEvents:"none",opacity:.5},Nn=en?i.createElement("a",{href:V.url||V.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:V.url||V.thumbUrl?void 0:Ot,onClick:D=>jt(V,D),title:te.previewFile},typeof Qt=="function"?Qt(V):Qt||i.createElement(Pe.Z,null)):null,ln=(le==="picture-card"||le==="picture-circle")&&Qn!=="uploading"&&i.createElement("span",{className:`${F}-list-item-actions`},Nn,Qn==="done"&&ur,ir),{getPrefixCls:sn}=i.useContext(Rn.E_),nn=sn(),Jt=i.createElement("div",{className:xn},Un,$n,ln,qn&&i.createElement(j.ZP,{motionName:`${nn}-fade`,visible:Qn==="uploading",motionDeadline:2e3},D=>{let{className:oe}=D;const Pt="percent"in V?i.createElement(De.Z,Object.assign({},Ie,{type:"line",percent:V.percent,"aria-label":V["aria-label"],"aria-labelledby":V["aria-labelledby"]})):null;return i.createElement("div",{className:k()(`${F}-list-item-progress`,oe)},Pt)})),cn=V.response&&typeof V.response=="string"?V.response:((gn=V.error)===null||gn===void 0?void 0:gn.statusText)||((Bn=V.error)===null||Bn===void 0?void 0:Bn.message)||te.uploadError,O=Qn==="error"?i.createElement(ge.Z,{title:cn,getPopupContainer:D=>D.parentNode},Jt):Jt;return i.createElement("div",{className:k()(`${F}-list-item-container`,W),style:ne,ref:E},ht?ht(O,V,Oe,{download:Nt.bind(null,V),preview:jt.bind(null,V),remove:xt.bind(null,V)}):O)});const Re=(C,E)=>{const{listType:F="text",previewFile:W=ve,onPreview:ne,onDownload:te,onRemove:le,locale:V,iconRender:Oe,isImageUrl:Ie=Ft,prefixCls:at,items:dt=[],showPreviewIcon:ht=!0,showRemoveIcon:Gt=!0,showDownloadIcon:en=!1,removeIcon:Ht,previewIcon:ct,downloadIcon:Qt,progress:kt={size:[-1,2],showInfo:!1},appendAction:Et,appendActionVisible:jt=!0,itemRender:Nt,disabled:xt}=C,gn=(0,Y.Z)(),[Bn,Vn]=i.useState(!1);i.useEffect(()=>{F!=="picture"&&F!=="picture-card"&&F!=="picture-circle"||(dt||[]).forEach(Ot=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ot.originFileObj instanceof File||Ot.originFileObj instanceof Blob)||Ot.thumbUrl!==void 0||(Ot.thumbUrl="",W&&W(Ot.originFileObj).then(Nn=>{Ot.thumbUrl=Nn||"",gn()}))})},[F,dt,W]),i.useEffect(()=>{Vn(!0)},[]);const Qn=(Ot,Nn)=>{if(ne)return Nn==null||Nn.preventDefault(),ne(Ot)},hn=Ot=>{typeof te=="function"?te(Ot):Ot.url&&window.open(Ot.url)},qn=Ot=>{le==null||le(Ot)},kn=Ot=>{if(Oe)return Oe(Ot,F);const Nn=Ot.status==="uploading",ln=Ie&&Ie(Ot)?i.createElement($,null):i.createElement(Kt,null);let sn=Nn?i.createElement($t.Z,null):i.createElement(Fe,null);return F==="picture"?sn=Nn?i.createElement($t.Z,null):ln:(F==="picture-card"||F==="picture-circle")&&(sn=Nn?V.uploading:ln),sn},rr=(Ot,Nn,ln,sn)=>{const nn={type:"text",size:"small",title:sn,onClick:Jt=>{Nn(),(0,ze.l$)(Ot)&&Ot.props.onClick&&Ot.props.onClick(Jt)},className:`${ln}-list-item-action`,disabled:xt};if((0,ze.l$)(Ot)){const Jt=(0,ze.Tm)(Ot,Object.assign(Object.assign({},Ot.props),{onClick:()=>{}}));return i.createElement(ft.ZP,Object.assign({},nn,{icon:Jt}))}return i.createElement(ft.ZP,Object.assign({},nn),i.createElement("span",null,Ot))};i.useImperativeHandle(E,()=>({handlePreview:Qn,handleDownload:hn}));const{getPrefixCls:Un}=i.useContext(Rn.E_),xn=Un("upload",at),Hn=Un(),ir=k()(`${xn}-list`,`${xn}-list-${F}`),ur=(0,w.Z)(dt.map(Ot=>({key:Ot.uid,file:Ot})));let In={motionDeadline:2e3,motionName:`${xn}-${F==="picture-card"||F==="picture-circle"?"animate-inline":"animate"}`,keys:ur,motionAppear:Bn};const $n=i.useMemo(()=>{const Ot=Object.assign({},(0,Me.Z)(Hn));return delete Ot.onAppearEnd,delete Ot.onEnterEnd,delete Ot.onLeaveEnd,Ot},[Hn]);return F!=="picture-card"&&F!=="picture-circle"&&(In=Object.assign(Object.assign({},$n),In)),i.createElement("div",{className:ir},i.createElement(j.V4,Object.assign({},In,{component:!1}),Ot=>{let{key:Nn,file:ln,className:sn,style:nn}=Ot;return i.createElement(Je,{key:Nn,locale:V,prefixCls:xn,className:sn,style:nn,file:ln,items:dt,progress:kt,listType:F,isImgUrl:Ie,showPreviewIcon:ht,showRemoveIcon:Gt,showDownloadIcon:en,removeIcon:Ht,previewIcon:ct,downloadIcon:Qt,iconRender:kn,actionIconRender:rr,itemRender:Nt,onPreview:Qn,onDownload:hn,onClose:qn})}),Et&&i.createElement(j.ZP,Object.assign({},In,{visible:jt,forceRender:!0}),Ot=>{let{className:Nn,style:ln}=Ot;return(0,ze.Tm)(Et,sn=>({className:k()(sn.className,Nn),style:Object.assign(Object.assign(Object.assign({},ln),{pointerEvents:Nn?"none":void 0}),sn.style)}))}))};var zn=i.forwardRef(Re),on=function(C,E,F,W){function ne(te){return te instanceof F?te:new F(function(le){le(te)})}return new(F||(F=Promise))(function(te,le){function V(at){try{Ie(W.next(at))}catch(dt){le(dt)}}function Oe(at){try{Ie(W.throw(at))}catch(dt){le(dt)}}function Ie(at){at.done?te(at.value):ne(at.value).then(V,Oe)}Ie((W=W.apply(C,E||[])).next())})};const Mn=`__LIST_IGNORE_${Date.now()}__`,Wn=(C,E)=>{const{fileList:F,defaultFileList:W,onRemove:ne,showUploadList:te=!0,listType:le="text",onPreview:V,onDownload:Oe,onChange:Ie,onDrop:at,previewFile:dt,disabled:ht,locale:Gt,iconRender:en,isImageUrl:Ht,progress:ct,prefixCls:Qt,className:kt,type:Et="select",children:jt,style:Nt,itemRender:xt,maxCount:gn,data:Bn={},multiple:Vn=!1,action:Qn="",accept:hn="",supportServerRender:qn=!0,rootClassName:kn}=C,rr=i.useContext(On.Z),Un=ht!=null?ht:rr,[xn,Hn]=(0,En.Z)(W||[],{value:F,postState:xr=>xr!=null?xr:[]}),[ir,ur]=i.useState("drop"),An=i.useRef(null);i.useMemo(()=>{const xr=Date.now();(F||[]).forEach((yr,Cr)=>{!yr.uid&&!Object.isFrozen(yr)&&(yr.uid=`__AUTO__${xr}_${Cr}__`)})},[F]);const In=(xr,yr,Cr)=>{let Ar=(0,w.Z)(yr),qr=!1;gn===1?Ar=Ar.slice(-1):gn&&(qr=Ar.length>gn,Ar=Ar.slice(0,gn)),(0,I.flushSync)(()=>{Hn(Ar)});const ya={file:xr,fileList:Ar};Cr&&(ya.event=Cr),(!qr||Ar.some(Aa=>Aa.uid===xr.uid))&&(0,I.flushSync)(()=>{Ie==null||Ie(ya)})},$n=(xr,yr)=>on(void 0,void 0,void 0,function*(){const{beforeUpload:Cr,transformFile:Ar}=C;let qr=xr;if(Cr){const ya=yield Cr(xr,yr);if(ya===!1)return!1;if(delete xr[Mn],ya===Mn)return Object.defineProperty(xr,Mn,{value:!0,configurable:!0}),!1;typeof ya=="object"&&ya&&(qr=ya)}return Ar&&(qr=yield Ar(qr)),qr}),Ot=xr=>{const yr=xr.filter(qr=>!qr.file[Mn]);if(!yr.length)return;const Cr=yr.map(qr=>vn(qr.file));let Ar=(0,w.Z)(xn);Cr.forEach(qr=>{Ar=_t(qr,Ar)}),Cr.forEach((qr,ya)=>{let Aa=qr;if(yr[ya].parsedFile)qr.status="uploading";else{const{originFileObj:Lr}=qr;let Tr;try{Tr=new File([Lr],Lr.name,{type:Lr.type})}catch(Kr){Tr=new Blob([Lr],{type:Lr.type}),Tr.name=Lr.name,Tr.lastModifiedDate=new Date,Tr.lastModified=new Date().getTime()}Tr.uid=qr.uid,Aa=Tr}In(Aa,Ar)})},Nn=(xr,yr,Cr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(ya){}if(!Yt(yr,xn))return;const Ar=vn(yr);Ar.status="done",Ar.percent=100,Ar.response=xr,Ar.xhr=Cr;const qr=_t(Ar,xn);In(Ar,qr)},ln=(xr,yr)=>{if(!Yt(yr,xn))return;const Cr=vn(yr);Cr.status="uploading",Cr.percent=xr.percent;const Ar=_t(Cr,xn);In(Cr,Ar,xr)},sn=(xr,yr,Cr)=>{if(!Yt(Cr,xn))return;const Ar=vn(Cr);Ar.error=xr,Ar.response=yr,Ar.status="error";const qr=_t(Ar,xn);In(Ar,qr)},nn=xr=>{let yr;Promise.resolve(typeof ne=="function"?ne(xr):ne).then(Cr=>{var Ar;if(Cr===!1)return;const qr=Tt(xr,xn);qr&&(yr=Object.assign(Object.assign({},xr),{status:"removed"}),xn==null||xn.forEach(ya=>{const Aa=yr.uid!==void 0?"uid":"name";ya[Aa]===yr[Aa]&&!Object.isFrozen(ya)&&(ya.status="removed")}),(Ar=An.current)===null||Ar===void 0||Ar.abort(yr),In(yr,qr))})},Jt=xr=>{ur(xr.type),xr.type==="drop"&&(at==null||at(xr))};i.useImperativeHandle(E,()=>({onBatchStart:Ot,onSuccess:Nn,onProgress:ln,onError:sn,fileList:xn,upload:An.current}));const{getPrefixCls:cn,direction:O,upload:D}=i.useContext(Rn.E_),oe=cn("upload",Qt),Pt=Object.assign(Object.assign({onBatchStart:Ot,onError:sn,onProgress:ln,onSuccess:Nn},C),{data:Bn,multiple:Vn,action:Qn,accept:hn,supportServerRender:qn,prefixCls:oe,disabled:Un,beforeUpload:$n,onChange:void 0});delete Pt.className,delete Pt.style,(!jt||Un)&&delete Pt.id;const Tn=`${oe}-wrapper`,[Yn,ar]=ye(oe,Tn),[er]=(0,Te.Z)("Upload",fn.Z.Upload),{showRemoveIcon:dr,showPreviewIcon:Yr,showDownloadIcon:ta,removeIcon:Er,previewIcon:Pa,downloadIcon:Jr}=typeof te=="boolean"?{}:te,ba=typeof dr=="undefined"?!Un:!!dr,Za=(xr,yr)=>te?i.createElement(zn,{prefixCls:oe,listType:le,items:xn,previewFile:dt,onPreview:V,onDownload:Oe,onRemove:nn,showRemoveIcon:ba,showPreviewIcon:Yr,showDownloadIcon:ta,removeIcon:Er,previewIcon:Pa,downloadIcon:Jr,iconRender:en,locale:Object.assign(Object.assign({},er),Gt),isImageUrl:Ht,progress:ct,appendAction:xr,appendActionVisible:yr,itemRender:xt,disabled:Un}):xr,oa=k()(Tn,kt,kn,ar,D==null?void 0:D.className,{[`${oe}-rtl`]:O==="rtl",[`${oe}-picture-card-wrapper`]:le==="picture-card",[`${oe}-picture-circle-wrapper`]:le==="picture-circle"}),wa=Object.assign(Object.assign({},D==null?void 0:D.style),Nt);if(Et==="drag"){const xr=k()(ar,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:xn.some(yr=>yr.status==="uploading"),[`${oe}-drag-hover`]:ir==="dragover",[`${oe}-disabled`]:Un,[`${oe}-rtl`]:O==="rtl"});return Yn(i.createElement("span",{className:oa},i.createElement("div",{className:xr,style:wa,onDrop:Jt,onDragOver:Jt,onDragLeave:Jt},i.createElement(tn,Object.assign({},Pt,{ref:An,className:`${oe}-btn`}),i.createElement("div",{className:`${oe}-drag-container`},jt))),Za()))}const Ia=k()(oe,`${oe}-select`,{[`${oe}-disabled`]:Un}),Qa=(xr=>i.createElement("div",{className:Ia,style:xr},i.createElement(tn,Object.assign({},Pt,{ref:An}))))(jt?void 0:{display:"none"});return Yn(le==="picture-card"||le==="picture-circle"?i.createElement("span",{className:oa},Za(Qa,!!jt)):i.createElement("span",{className:oa},Qa,Za()))};var br=i.forwardRef(Wn),Ae=function(C,E){var F={};for(var W in C)Object.prototype.hasOwnProperty.call(C,W)&&E.indexOf(W)<0&&(F[W]=C[W]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,W=Object.getOwnPropertySymbols(C);ne{var{style:F,height:W}=C,ne=Ae(C,["style","height"]);return i.createElement(br,Object.assign({ref:E},ne,{type:"drag",style:Object.assign(Object.assign({},F),{height:W})}))});const G=br;G.Dragger=S,G.LIST_IGNORE=Mn;var J=G},81:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";var xe="day";return function(a,i,w){var I=function(Z){return Z.add(4-Z.isoWeekday(),xe)},l=i.prototype;l.isoWeekYear=function(){return I(this).year()},l.isoWeek=function(Z){if(!this.$utils().u(Z))return this.add(7*(Z-this.isoWeek()),xe);var ae,Q,K,ce,pe=I(this),x=(ae=this.isoWeekYear(),Q=this.$u,K=(Q?w.utc:w)().year(ae).startOf("year"),ce=4-K.isoWeekday(),K.isoWeekday()>4&&(ce+=7),K.add(ce,xe));return pe.diff(x,"week")+1},l.isoWeekday=function(Z){return this.$utils().u(Z)?this.day()||7:this.day(this.day()%7?Z:Z-7)};var k=l.startOf;l.startOf=function(Z,ae){var Q=this.$utils(),K=!!Q.u(ae)||ae;return Q.p(Z)==="isoweek"?K?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):k.bind(this)(Z,ae)}}})},56591:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";var xe="month",a="quarter";return function(i,w){var I=w.prototype;I.quarter=function(Z){return this.$utils().u(Z)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(Z-1))};var l=I.add;I.add=function(Z,ae){return Z=Number(Z),this.$utils().p(ae)===a?this.add(3*Z,xe):l.bind(this)(Z,ae)};var k=I.startOf;I.startOf=function(Z,ae){var Q=this.$utils(),K=!!Q.u(ae)||ae;if(Q.p(Z)===a){var ce=this.quarter()-1;return K?this.month(3*ce).startOf(xe).startOf("day"):this.month(3*ce+2).endOf(xe).endOf("day")}return k.bind(this)(Z,ae)}}})},92117:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";return function(xe,a,i){xe=xe||{};var w=a.prototype,I={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(Z,ae,Q,K){return w.fromToBase(Z,ae,Q,K)}i.en.relativeTime=I,w.fromToBase=function(Z,ae,Q,K,ce){for(var pe,x,re,Ye=Q.$locale().relativeTime||I,z=xe.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],se=z.length,H=0;H0,At<=it.r||!it.r){At<=1&&H>0&&(it=z[H-1]);var ke=Ye[it.l];ce&&(At=ce(""+At)),x=typeof ke=="string"?ke.replace("%d",At):ke(At,ae,it.l,re);break}}if(ae)return x;var ut=re?Ye.future:Ye.past;return typeof ut=="function"?ut(x):ut.replace("%s",x)},w.to=function(Z,ae){return l(Z,ae,this,!0)},w.from=function(Z,ae){return l(Z,ae,this)};var k=function(Z){return Z.$u?i.utc():i()};w.toNow=function(Z){return this.to(k(this),Z)},w.fromNow=function(Z){return this.from(k(this),Z)}}})},55518:function(Zt,xe,a){var i=a(3806),w=function(k){var Z=/[height|width]$/;return Z.test(k)},I=function(k){var Z="",ae=Object.keys(k);return ae.forEach(function(Q,K){var ce=k[Q];Q=i(Q),w(Q)&&typeof ce=="number"&&(ce=ce+"px"),ce===!0?Z+=Q:ce===!1?Z+="not "+Q:Z+="("+Q+": "+ce+")",K-1}function ve(O,D){var oe=this.__data__,Pt=Gn(oe,O);return Pt<0?(++this.size,oe.push([O,D])):oe[Pt][1]=D,this}Tt.prototype.clear=Ut,Tt.prototype.delete=dn,Tt.prototype.get=Ft,Tt.prototype.has=un,Tt.prototype.set=ve;function Ge(O){var D=-1,oe=O==null?0:O.length;for(this.clear();++D1?oe[Tn-1]:void 0,ar=Tn>2?oe[2]:void 0;for(Yn=O.length>3&&typeof Yn=="function"?(Tn--,Yn):void 0,ar&&Qt(oe[0],oe[1],ar)&&(Yn=Tn<3?void 0:Yn,Tn=1),D=Object(D);++Pt-1&&O%1==0&&O0){if(++D>=I)return arguments[0]}else D=0;return O.apply(void 0,arguments)}}function hn(O){if(O!=null){try{return Qe.call(O)}catch(D){}try{return O+""}catch(D){}}return""}function qn(O,D){return O===D||O!==O&&D!==D}var kn=S(function(){return arguments}())?S:function(O){return In(O)&&St.call(O,"callee")&&!Rt.call(O,"callee")},rr=Array.isArray;function Un(O){return O!=null&&ur(O.length)&&!ir(O)}function xn(O){return In(O)&&Un(O)}var Hn=je||cn;function ir(O){if(!An(O))return!1;var D=ue(O);return D==x||D==re||D==Q||D==it}function ur(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=k}function An(O){var D=typeof O;return O!=null&&(D=="object"||D=="function")}function In(O){return O!=null&&typeof O=="object"}function $n(O){if(!In(O)||ue(O)!=H)return!1;var D=Kt(O);if(D===null)return!0;var oe=St.call(D,"constructor")&&D.constructor;return typeof oe=="function"&&oe instanceof oe&&Qe.call(oe)==de}var Ot=It?Dt(It):J;function Nn(O){return Ie(O,ln(O))}function ln(O){return Un(O)?on(O,!0):C(O)}var sn=at(function(O,D,oe){E(O,D,oe)});function nn(O){return function(){return O}}function Jt(O){return O}function cn(){return!1}Zt.exports=sn},65490:function(Zt){var xe=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,w=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,l=/^0o[0-7]+$/i,k=parseInt,Z=Object.prototype,ae=Z.toString;function Q(x){var re=typeof x;return!!x&&(re=="object"||re=="function")}function K(x){return!!x&&typeof x=="object"}function ce(x){return typeof x=="symbol"||K(x)&&ae.call(x)==a}function pe(x){if(typeof x=="number")return x;if(ce(x))return xe;if(Q(x)){var re=typeof x.valueOf=="function"?x.valueOf():x;x=Q(re)?re+"":re}if(typeof x!="string")return x===0?x:+x;x=x.replace(i,"");var Ye=I.test(x);return Ye||l.test(x)?k(x.slice(2),Ye?2:8):w.test(x)?xe:+x}Zt.exports=pe},30438:function(Zt,xe,a){var i=a(61343),w=a(8202),I=w(i);Zt.exports=I},61343:function(Zt,xe,a){var i=a(91030),w=a(50579);function I(l,k){return l&&i(l,k,w)}Zt.exports=I},71664:function(Zt){function xe(a,i){return a!=null&&i in Object(a)}Zt.exports=xe},27122:function(Zt,xe,a){var i=a(5929),w=a(6620),I=1,l=2;function k(Z,ae,Q,K){var ce=Q.length,pe=ce,x=!K;if(Z==null)return!pe;for(Z=Object(Z);ce--;){var re=Q[ce];if(x&&re[2]?re[1]!==Z[re[0]]:!(re[0]in Z))return!1}for(;++ce1&&arguments[1]!==void 0?arguments[1]:"span";return function(x){ae(re,x);function re(){var Ye,z,se,H;k(this,re);for(var it=arguments.length,At=Array(it),ke=0;ke1&&arguments[1]!==void 0?arguments[1]:"span";return function(x){ae(re,x);function re(){var Ye,z,se,H;k(this,re);for(var it=arguments.length,At=Array(it),ke=0;ke0&&arguments[0]!==void 0?arguments[0]:[],re=[];return(0,Q.default)(x,function(Ye){Array.isArray(Ye)?pe(Ye).map(function(z){return re.push(z)}):(0,Z.default)(Ye)?(0,l.default)(Ye,function(z,se){z===!0&&re.push(se),re.push(se+"-"+z)}):(0,w.default)(Ye)&&re.push(Ye)}),re};xe.default=ce},80014:function(Zt,xe,a){"use strict";var i;i={value:!0},i=i=i=i=i=void 0;var w=a(47642),I=Ye(w),l=a(71339),k=Ye(l),Z=a(58706),ae=Ye(Z),Q=a(66626),K=Ye(Q),ce=a(8615),pe=Ye(ce),x=a(45742),re=Ye(x);function Ye(se){return se&&se.__esModule?se:{default:se}}i=K.default,i=K.default,i=pe.default,i=re.default;var z=i=function(H){for(var it=arguments.length,At=Array(it>1?it-1:0),ke=1;ke1&&arguments[1]!==void 0?arguments[1]:!0;l[ae]=Q};return w===0&&k("first-child"),w===I-1&&k("last-child"),(w===0||w%2===0)&&k("even"),Math.abs(w%2)===1&&k("odd"),k("nth-child",w),l};xe.default=a},71339:function(Zt,xe,a){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.mergeClasses=void 0;var i=a(14287),w=Z(i),I=a(32222),l=Z(I),k=Object.assign||function(Q){for(var K=1;K1&&arguments[1]!==void 0?arguments[1]:[],pe=K.default&&(0,l.default)(K.default)||{};return ce.map(function(x){var re=K[x];return re&&(0,w.default)(re,function(Ye,z){pe[z]||(pe[z]={}),pe[z]=k({},pe[z],re[z])}),x}),pe};xe.default=ae},50440:function(Zt,xe){"use strict";const{hasOwnProperty:a}=Object.prototype,i=Ye();i.configure=Ye,i.stringify=i,i.default=i,xe.stringify=i,xe.configure=Ye,Zt.exports=i;const w=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function I(z){return z.length<5e3&&!w.test(z)?`"${z}"`:JSON.stringify(z)}function l(z){if(z.length>200)return z.sort();for(let se=1;seH;)z[it]=z[it-1],it--;z[it]=H}return z}const k=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Z(z){return k.call(z)!==void 0&&z.length!==0}function ae(z,se,H){z.length= 1`)}return H===void 0?1/0:H}function pe(z){return z===1?"1 item":`${z} items`}function x(z){const se=new Set;for(const H of z)(typeof H=="string"||typeof H=="number")&&se.add(String(H));return se}function re(z){if(a.call(z,"strict")){const se=z.strict;if(typeof se!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(se)return H=>{let it=`Object can not safely be stringified. Received type ${typeof H}`;throw typeof H!="function"&&(it+=` (${H.toString()})`),new Error(it)}}}function Ye(z){z=Qc({},z);const se=re(z);se&&(z.bigint===void 0&&(z.bigint=!1),"circularValue"in z||(z.circularValue=Error));const H=Q(z),it=K(z,"bigint"),At=K(z,"deterministic"),ke=ce(z,"maximumDepth"),ut=ce(z,"maximumBreadth");function B(qt,be,Ue,Wt,an,pt){let tt=be[qt];switch(typeof tt=="object"&&tt!==null&&typeof tt.toJSON=="function"&&(tt=tt.toJSON(qt)),tt=Wt.call(be,qt,tt),typeof tt){case"string":return I(tt);case"object":{if(tt===null)return"null";if(Ue.indexOf(tt)!==-1)return H;let tn="",En=",";const Rn=pt;if(Array.isArray(tt)){if(tt.length===0)return"[]";if(keut){const yt=tt.length-ut-1;tn+=`${En}"... ${pe(yt)} not stringified"`}return an!==""&&(tn+=` +${Rn}`),Ue.pop(),`[${tn}]`}let On=Object.keys(tt);const Te=On.length;if(Te===0)return"{}";if(keut){const Le=Te-ut;tn+=`${T}"...":${fn}"${pe(Le)} not stringified"`,T=En}return an!==""&&T.length>1&&(tn=` +${pt}${tn} +${Rn}`),Ue.pop(),`{${tn}}`}case"number":return isFinite(tt)?String(tt):se?se(tt):"null";case"boolean":return tt===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(tt);default:return se?se(tt):void 0}}function tr(qt,be,Ue,Wt,an,pt){switch(typeof be=="object"&&be!==null&&typeof be.toJSON=="function"&&(be=be.toJSON(qt)),typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(Ue.indexOf(be)!==-1)return H;const tt=pt;let tn="",En=",";if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const A=be.length-ut-1;tn+=`${En}"... ${pe(A)} not stringified"`}return an!==""&&(tn+=` +${tt}`),Ue.pop(),`[${tn}]`}Ue.push(be);let Rn="";an!==""&&(pt+=an,En=`, +${pt}`,Rn=" ");let On="";for(const Te of Wt){const fn=tr(Te,be[Te],Ue,Wt,an,pt);fn!==void 0&&(tn+=`${On}${I(Te)}:${Rn}${fn}`,On=En)}return an!==""&&On.length>1&&(tn=` +${pt}${tn} +${tt}`),Ue.pop(),`{${tn}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function mn(qt,be,Ue,Wt,an){switch(typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(typeof be.toJSON=="function"){if(be=be.toJSON(qt),typeof be!="object")return mn(qt,be,Ue,Wt,an);if(be===null)return"null"}if(Ue.indexOf(be)!==-1)return H;const pt=an;if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const qe=be.length-ut-1;fn+=`${T}"... ${pe(qe)} not stringified"`}return fn+=` +${pt}`,Ue.pop(),`[${fn}]`}let tt=Object.keys(be);const tn=tt.length;if(tn===0)return"{}";if(keut){const fn=tn-ut;Rn+=`${On}"...": "${pe(fn)} not stringified"`,On=En}return On!==""&&(Rn=` +${an}${Rn} +${pt}`),Ue.pop(),`{${Rn}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function jn(qt,be,Ue){switch(typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(typeof be.toJSON=="function"){if(be=be.toJSON(qt),typeof be!="object")return jn(qt,be,Ue);if(be===null)return"null"}if(Ue.indexOf(be)!==-1)return H;let Wt="";if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const Te=be.length-ut-1;Wt+=`,"... ${pe(Te)} not stringified"`}return Ue.pop(),`[${Wt}]`}let an=Object.keys(be);const pt=an.length;if(pt===0)return"{}";if(keut){const En=pt-ut;Wt+=`${tt}"...":"${pe(En)} not stringified"`}return Ue.pop(),`{${Wt}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function bn(qt,be,Ue){if(arguments.length>1){let Wt="";if(typeof Ue=="number"?Wt=" ".repeat(Math.min(Ue,10)):typeof Ue=="string"&&(Wt=Ue.slice(0,10)),be!=null){if(typeof be=="function")return B("",{"":qt},[],be,Wt,"");if(Array.isArray(be))return tr("",qt,[],x(be),Wt,"")}if(Wt.length!==0)return mn("",qt,[],Wt,"")}return jn("",qt,[])}return bn}},3806:function(Zt){var xe=function(a){return a.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()}).toLowerCase()};Zt.exports=xe}}]); +}()); \ No newline at end of file diff --git a/6743.a7bbf788.async.js b/6743.a7bbf788.async.js deleted file mode 100644 index bc50075a..00000000 --- a/6743.a7bbf788.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6743],{63375:function(ye,re,o){"use strict";o.d(re,{ZP:function(){return ar}});var ee=o(85061),A=o(55507),V=o(92137),ae=o(84305),H=o(75901),ie=o(98858),Q=o(4914),J=o(81253),oe=o(9715),X=o(86835),de=o(49111),$=o(19650),O=o(22122),E=o(28991),C=o(54549),se=o(79508),ue=o(8212),ce=o(952),me=o(97519),a=o(67294),he=o(58024),te=o(91894),Pe=o(71748),L=o(33860),pe=o(38069),be=o(48736),Se=o(27049),Re=function(e){var r=e.padding;return a.createElement("div",{style:{padding:r||"0 24px"}},a.createElement(Se.Z,{style:{margin:0}}))},Ve={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},Ge=function(e){var r=e.size,n=e.active,l=(0,pe.ZP)(),d=r===void 0?Ve[l]||6:r,i=function(s){return s===0?0:d>2?42:16};return a.createElement(te.Z,{bordered:!1,style:{marginBottom:16}},a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(d).fill(null).map(function(u,s){return a.createElement("div",{key:s,style:{borderLeft:d>2&&s===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:i(s),flex:1,marginRight:s===0?16:0}},a.createElement(L.Z,{active:n,paragraph:!1,title:{width:100,style:{marginTop:0}}}),a.createElement(L.Z.Button,{active:n,style:{height:48}}))})))},He=function(e){var r=e.active;return a.createElement(a.Fragment,null,a.createElement(te.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24}},a.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement("div",{style:{maxWidth:"100%",flex:1}},a.createElement(L.Z,{active:r,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})),a.createElement(L.Z.Button,{active:r,size:"small",style:{width:165,marginTop:12}}))),a.createElement(Re,null))},Ye=function(e){var r=e.size,n=e.active,l=n===void 0?!0:n,d=e.actionButton;return a.createElement(te.Z,{bordered:!1,bodyStyle:{padding:0}},new Array(r).fill(null).map(function(i,u){return a.createElement(He,{key:u,active:!!l})}),d!==!1&&a.createElement(te.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},a.createElement(L.Z.Button,{style:{width:102},active:l,size:"small"})))},Ze=function(e){var r=e.active;return a.createElement("div",{style:{marginBottom:16}},a.createElement(L.Z,{paragraph:!1,title:{width:185}}),a.createElement(L.Z.Button,{active:r,size:"small"}))},Qe=function(e){var r=e.active;return a.createElement(te.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8}},a.createElement($.Z,{style:{width:"100%",justifyContent:"space-between"}},a.createElement(L.Z.Button,{active:r,style:{width:200},size:"small"}),a.createElement($.Z,null,a.createElement(L.Z.Button,{active:r,size:"small",style:{width:120}}),a.createElement(L.Z.Button,{active:r,size:"small",style:{width:80}}))))},Je=function(e){var r=e.active,n=r===void 0?!0:r,l=e.statistic,d=e.actionButton,i=e.toolbar,u=e.pageHeader,s=e.list,v=s===void 0?5:s;return a.createElement("div",{style:{width:"100%"}},u!==!1&&a.createElement(Ze,{active:n}),l!==!1&&a.createElement(Ge,{size:l,active:n}),(i!==!1||v!==!1)&&a.createElement(te.Z,{bordered:!1,bodyStyle:{padding:0}},i!==!1&&a.createElement(Qe,{active:n}),v!==!1&&a.createElement(Ye,{size:v,active:n,actionButton:d})))},Xe=Je,Be={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},qe=function(e){var r=e.active;return a.createElement("div",{style:{marginTop:32}},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},a.createElement("div",{style:{flex:1,marginRight:24,maxWidth:300}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})),a.createElement("div",{style:{flex:1,alignItems:"center",justifyContent:"center"}},a.createElement("div",{style:{maxWidth:300,margin:"auto"}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})))))},et=function(e){var r=e.size,n=e.active,l=(0,pe.ZP)(),d=r===void 0?Be[l]||3:r;return a.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(d).fill(null).map(function(i,u){return a.createElement("div",{key:u,style:{flex:1,paddingLeft:u===0?0:24,paddingRight:u===d-1?0:24}},a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:0}}}),a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:8}}}),a.createElement(L.Z,{active:n,paragraph:!1,title:{style:{marginTop:8}}}))}))},we=function(e){var r=e.active,n=e.header,l=n===void 0?!1:n,d=(0,pe.ZP)(),i=Be[d]||3;return a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",background:l?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"}},new Array(i).fill(null).map(function(u,s){return a.createElement("div",{key:s,style:{flex:1,paddingLeft:l&&s===0?0:20,paddingRight:32}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}}))}),a.createElement("div",{style:{flex:3,paddingLeft:32}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}}))),a.createElement(Re,{padding:"0px 0px"}))},tt=function(e){var r=e.active,n=e.size,l=n===void 0?4:n;return a.createElement(te.Z,{bordered:!1},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement(we,{header:!0,active:r}),new Array(l).fill(null).map(function(d,i){return a.createElement(we,{key:i,active:r})}),a.createElement("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16}},a.createElement(L.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})))},at=function(e){var r=e.active;return a.createElement(te.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0}},a.createElement(L.Z.Button,{active:r,size:"small",style:{width:100,marginBottom:16}}),a.createElement(et,{active:r}),a.createElement(qe,{active:r}))},rt=function(e){var r=e.active,n=r===void 0?!0:r,l=e.pageHeader,d=e.list;return a.createElement("div",{style:{width:"100%"}},l!==!1&&a.createElement(Ze,{active:n}),a.createElement(at,{active:n}),d!==!1&&a.createElement(Re,null),d!==!1&&a.createElement(tt,{active:n,size:d}))},nt=rt,lt=function(e){var r=e.active,n=r===void 0?!0:r,l=e.pageHeader;return a.createElement("div",{style:{width:"100%"}},l!==!1&&a.createElement(Ze,{active:n}),a.createElement(te.Z,null,a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128}},a.createElement(L.Z.Avatar,{size:64,style:{marginBottom:32}}),a.createElement(L.Z.Button,{active:n,style:{width:214,marginBottom:8}}),a.createElement(L.Z.Button,{active:n,style:{width:328},size:"small"}),a.createElement($.Z,{style:{marginTop:24}},a.createElement(L.Z.Button,{active:n,style:{width:116}}),a.createElement(L.Z.Button,{active:n,style:{width:116}})))))},it=lt,ot=["type"],dt=function(e){var r=e.type,n=r===void 0?"list":r,l=(0,J.Z)(e,ot);return n==="result"?a.createElement(it,l):n==="descriptions"?a.createElement(nt,l):a.createElement(Xe,l)},st=dt;function ut(t){if(typeof t=="function"){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1&&(S=(0,Ca.Z)(e),w=S.slice(1),N=(0,Le.Z)(b,w),(0,Ke.Z)(b,w,N)),Y=g?(0,Ke.Z)({},p,b,!0):b,W.next=13,r==null?void 0:r(e,Za({},l,Y),l,i);case 13:return ne=W.sent,P(!1),W.abrupt("return",ne);case 18:return W.prev=18,W.t0=W.catch(2),console.log(W.t0),P(!1),W.abrupt("return",null);case 23:case"end":return W.stop()}},f,null,[[2,18]])}));return function(f){return x.apply(this,arguments)}}()},F?a.createElement(Me.Z,{style:{marginRight:8}}):null,d||"\u4FDD\u5B58")}var Ka=function(e){var r=e.recordKey,n=e.onDelete,l=e.row,d=e.children,i=e.deletePopconfirmMessage,u=e.cancelEditable,s=We(function(){return!1}),v=(0,ve.Z)(s,2),D=v[0],M=v[1],F=function(){var P=(0,V.Z)((0,A.Z)().mark(function x(){var f;return(0,A.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,M(!0),c.next=4,n==null?void 0:n(r,l);case 4:return f=c.sent,M(!1),setTimeout(function(){u(r)},0),c.abrupt("return",f);case 10:return c.prev=10,c.t0=c.catch(0),console.log(c.t0),M(!1),c.abrupt("return",null);case 15:case"end":return c.stop()}},x,null,[[0,10]])}));return function(){return P.apply(this,arguments)}}();return d!==!1?a.createElement(xa.Z,{key:"delete",title:i,onConfirm:F},a.createElement("a",null,D?a.createElement(Me.Z,{style:{marginRight:8}}):null,d||"\u5220\u9664")):null},Ba=function(e){var r=e.recordKey,n=e.tableName,l=e.newLineConfig,d=e.form,i=e.editorType,u=e.onCancel,s=e.cancelEditable,v=e.row,D=e.cancelText,M=(0,a.useContext)(ze);return a.createElement("a",{key:"cancel",onClick:function(){var F=(0,V.Z)((0,A.Z)().mark(function P(x){var f,Z,c,g,p,b;return(0,A.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return x.stopPropagation(),x.preventDefault(),Z=i==="Map",c=[n,r].flat(1).filter(Boolean),g=((f=M.getFieldFormatValue)===null||f===void 0?void 0:f.call(M,c))||d.getFieldValue(c),p=Z?(0,Ke.Z)({},c,g):g,w.next=8,u==null?void 0:u(r,p,v,l);case 8:return b=w.sent,s(r),d.setFieldsValue((0,Oe.Z)({},r,Z?(0,Le.Z)(v,c):v)),w.abrupt("return",b);case 12:case"end":return w.stop()}},P)}));return function(P){return F.apply(this,arguments)}}()},D||"\u53D6\u6D88")};function Ue(t,e){var r=e.recordKey,n=e.newLineConfig,l=e.saveText,d=e.deleteText;return[a.createElement(La,(0,O.Z)({key:"save"},e,{row:t}),l),(n==null?void 0:n.options.recordKey)!==r?a.createElement(Ka,(0,O.Z)({key:"delete"},e,{row:t}),d):null,a.createElement(Ba,(0,O.Z)({key:"cancel"},e,{row:t}))]}function gr(t){var e=useState(void 0),r=_slicedToArray(e,2),n=r[0],l=r[1],d=useRef(new Map),i=useRef(void 0);useDeepCompareEffectDebounce(function(){var R=new Map,m=function h(T){T==null||T.forEach(function(K,z){var _;R.set(z.toString(),le(t.getRowKey(K,-1))),R.set((_=le(t.getRowKey(K,-1)))===null||_===void 0?void 0:_.toString(),z.toString()),t.childrenColumnName&&K[t.childrenColumnName]&&h(K[t.childrenColumnName])})};m(t.dataSource),d.current=R},[t.dataSource]),i.current=n;var u=t.type||"single",s=useLazyKVMap(t.dataSource,"children",t.getRowKey),v=_slicedToArray(s,1),D=v[0],M=useMergedState([],{value:t.editableKeys,onChange:t.onChange?function(R){var m;t==null||(m=t.onChange)===null||m===void 0||m.call(t,R.filter(function(h){return h!==void 0}),R.map(function(h){return D(h)}).filter(function(h){return h!==void 0}))}:void 0}),F=_slicedToArray(M,2),P=F[0],x=F[1],f=useMemo(function(){var R=u==="single"?P==null?void 0:P.slice(0,1):P;return new Set(R)},[(P||[]).join(","),u]),Z=usePrevious(P),c=useRefFunction(function(R){var m,h,T,K,z=(m=t.getRowKey(R,R.index))===null||m===void 0||(h=m.toString)===null||h===void 0?void 0:h.call(m),_=(T=t.getRowKey(R,-1))===null||T===void 0||(K=T.toString)===null||K===void 0?void 0:K.call(T),G=P.map(function(B){return B==null?void 0:B.toString()}),j=(Z==null?void 0:Z.map(function(B){return B==null?void 0:B.toString()}))||[],q=t.tableName&&!!(j==null?void 0:j.includes(_))||!!(j==null?void 0:j.includes(z));return{recordKey:_,isEditable:t.tableName&&(G==null?void 0:G.includes(_))||(G==null?void 0:G.includes(z)),preIsEditable:q}}),g=useRefFunction(function(R){return f.size>0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1?(_message.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(f.add(R),x(Array.from(f)),!0)}),p=useRefFunction(function(R,m){var h=le(R).toString(),T=d.current.get(h);if(!f.has(h)&&T&&(m!=null?m:!0)&&t.tableName){p(T,!1);return}return n&&n.options.recordKey===R&&l(void 0),f.delete(h),f.delete(le(R)),x(Array.from(f)),!0}),b=useDebounceFn(_asyncToGenerator(_regeneratorRuntime().mark(function R(){var m,h,T,K,z=arguments;return _regeneratorRuntime().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:for(h=z.length,T=new Array(h),K=0;K0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1)return _message.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var h=t.getRowKey(R,-1);if(!h)throw noteOnce(!!h,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(f.add(h),x(Array.from(f)),(m==null?void 0:m.newRecordType)==="dataSource"||t.tableName){var T,K={data:t.dataSource,getRowKey:t.getRowKey,row:_objectSpread(_objectSpread({},R),{},{map_row_parentKey:(m==null?void 0:m.parentKey)?(T=le(m==null?void 0:m.parentKey))===null||T===void 0?void 0:T.toString():void 0}),key:h,childrenColumnName:t.childrenColumnName||"children"};t.setDataSource(Ce(K,(m==null?void 0:m.position)==="top"?"top":"update"))}else l({defaultValue:R,options:_objectSpread(_objectSpread({},m),{},{recordKey:h})});return!0}),N=useIntl(),Y=(t==null?void 0:t.saveText)||N.getMessage("editableTable.action.save","\u4FDD\u5B58"),ne=(t==null?void 0:t.deleteText)||N.getMessage("editableTable.action.delete","\u5220\u9664"),y=(t==null?void 0:t.cancelText)||N.getMessage("editableTable.action.cancel","\u53D6\u6D88"),W=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T,K,z){var _,G,j,q,B,fe,_e;return _regeneratorRuntime().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return q=z||i.current||{},B=q.options,ge.next=3,t==null||(_=t.onSave)===null||_===void 0?void 0:_.call(t,h,T,K,z);case 3:if(fe=ge.sent,p(h),!(!(B==null?void 0:B.parentKey)&&(B==null?void 0:B.recordKey)===h)){ge.next=8;break}return(B==null?void 0:B.position)==="top"?t.setDataSource([T].concat(_toConsumableArray(t.dataSource))):t.setDataSource([].concat(_toConsumableArray(t.dataSource),[T])),ge.abrupt("return",fe);case 8:return _e={data:t.dataSource,getRowKey:t.getRowKey,row:B?_objectSpread(_objectSpread({},T),{},{map_row_parentKey:(G=le((j=B==null?void 0:B.parentKey)!==null&&j!==void 0?j:""))===null||G===void 0?void 0:G.toString()}):T,key:h,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(Ce(_e,(B==null?void 0:B.position)==="top"?"top":"update")),ge.abrupt("return",fe);case 11:case"end":return ge.stop()}},m)}));return function(m,h,T,K){return R.apply(this,arguments)}}()),I=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T){var K,z,_;return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return z={data:t.dataSource,getRowKey:t.getRowKey,row:T,key:h,childrenColumnName:t.childrenColumnName||"children"},j.next=3,t==null||(K=t.onDelete)===null||K===void 0?void 0:K.call(t,h,T);case 3:return _=j.sent,t.setDataSource(Ce(z,"delete")),j.abrupt("return",_);case 6:case"end":return j.stop()}},m)}));return function(m,h){return R.apply(this,arguments)}}()),k=useRefFunction(function(){var R=_asyncToGenerator(_regeneratorRuntime().mark(function m(h,T,K,z){var _,G;return _regeneratorRuntime().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,t==null||(_=t.onCancel)===null||_===void 0?void 0:_.call(t,h,T,K,z);case 2:return G=q.sent,q.abrupt("return",G);case 4:case"end":return q.stop()}},m)}));return function(m,h,T,K){return R.apply(this,arguments)}}()),Ee=function(m,h){var T=t.getRowKey(m,m.index),K={saveText:Y,cancelText:y,deleteText:ne,addEditRecord:w,recordKey:T,cancelEditable:p,index:m.index,tableName:t.tableName,newLineConfig:n,onCancel:k,onDelete:I,onSave:W,form:h,editableKeys:P,setEditableRowKeys:x,deletePopconfirmMessage:t.deletePopconfirmMessage||"\u5220\u9664\u6B64\u884C\uFF1F"},z=Ue(m,K);return t.actionRender?t.actionRender(m,K,{save:z[0],delete:z[1],cancel:z[2]}):z};return{editableKeys:P,setEditableRowKeys:x,isEditable:c,actionRender:Ee,startEditable:g,cancelEditable:p,addEditRecord:w,newLineRecord:n,preEditableKeys:Z,onValuesChange:S}}var pr=null;function wa(t){var e=t.data,r=t.row;return(0,E.Z)((0,E.Z)({},e),r)}function Aa(t){var e=t.type||"single",r=(0,xe.Z)([],{value:t.editableKeys,onChange:t.onChange?function(c){var g;t==null||(g=t.onChange)===null||g===void 0||g.call(t,c,t.dataSource)}:void 0}),n=(0,ve.Z)(r,2),l=n[0],d=n[1],i=(0,a.useMemo)(function(){var c=e==="single"?l==null?void 0:l.slice(0,1):l;return new Set(c)},[(l||[]).join(","),e]),u=(0,a.useCallback)(function(c){return!!(l==null?void 0:l.includes(le(c)))},[(l||[]).join(",")]),s=function(g){return i.size>0&&e==="single"?(Ct.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(i.add(le(g)),d(Array.from(i)),!0)},v=function(g){return i.delete(le(g)),d(Array.from(i)),!0},D=function(){var c=(0,V.Z)((0,A.Z)().mark(function g(p,b,S,w){var N,Y;return(0,A.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,t==null||(N=t.onCancel)===null||N===void 0?void 0:N.call(t,p,b,S,w);case 2:if(Y=y.sent,Y!==!1){y.next=5;break}return y.abrupt("return",!1);case 5:return y.abrupt("return",!0);case 6:case"end":return y.stop()}},g)}));return function(p,b,S,w){return c.apply(this,arguments)}}(),M=function(){var c=(0,V.Z)((0,A.Z)().mark(function g(p,b,S){var w,N,Y;return(0,A.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,t==null||(w=t.onSave)===null||w===void 0?void 0:w.call(t,p,b,S);case 2:if(N=y.sent,N!==!1){y.next=5;break}return y.abrupt("return",!1);case 5:return v(p),Y={data:t.dataSource,row:b,key:p,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(wa(Y)),y.abrupt("return",!0);case 9:case"end":return y.stop()}},g)}));return function(p,b,S){return c.apply(this,arguments)}}(),F=Ta(),P=F.getMessage("editableTable.action.save","\u4FDD\u5B58"),x=F.getMessage("editableTable.action.delete","\u5220\u9664"),f=F.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Z=(0,a.useCallback)(function(c,g,p){var b=(0,E.Z)({recordKey:c,cancelEditable:v,onCancel:D,onSave:M,editableKeys:l,setEditableRowKeys:d,form:g,saveText:P,cancelText:f,deleteText:x,deletePopconfirmMessage:"\u5220\u9664\u6B64\u884C\uFF1F",editorType:"Map"},p),S=Ue(t.dataSource,b);return t.actionRender?t.actionRender(t.dataSource,b,{save:S[0],delete:S[1],cancel:S[2]}):S},[l&&l.join(","),t.dataSource]);return{editableKeys:l,setEditableRowKeys:d,isEditable:u,actionRender:Z,startEditable:s,cancelEditable:v}}var Oa=Aa,yr=o(57106),ka=o(99683),ja=o(6610),za=o(5991),Na=o(10379),Wa=o(60446),Ua=function(t){(0,Na.Z)(r,t);var e=(0,Wa.Z)(r);function r(){var n;(0,ja.Z)(this,r);for(var l=arguments.length,d=new Array(l),i=0;idiv:not(.ant-pro-form-light-filter) .pro-field{max-width:100%}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xs{width:104px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-s{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-sm{width:216px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-m{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-md{width:328px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-l{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-lg{width:440px}.ant-form>div:not(.ant-pro-form-light-filter) .pro-field-xl{width:552px}.ant-pro-form-group-title{margin-bottom:16px;font-weight:700}.ant-pro-form-group-container{flex-wrap:wrap;max-width:100%}.ant-pro-form-group-container>div.ant-space-item{max-width:100%}.ant-pro-form-group-twoLine{display:block;width:100%}.ant-pro-form-group-twoLine .ant-pro-form-group-title{width:100%;margin:8px 0}.ant-pro-form-group-twoLine .ant-pro-form-group-container{padding-left:16px}.ant-pro-form-group-twoLine .ant-form-item,.ant-pro-form-group-twoLine .ant-space-item{width:100%}.ant-pro-form-group-twoLine .ant-form-item-control{display:flex;align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input{align-items:center;justify-content:flex-end}.ant-pro-form-group-twoLine .ant-form-item-control-input-content{flex:none}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-popconfirm{z-index:1060}.ant-pro-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:100%;margin:0;padding:0;background-color:#fff;border-radius:2px}.ant-pro-card-col{width:100%}.ant-pro-card-border{border:1px solid rgba(0,0,0,.06)}.ant-pro-card-hoverable{cursor:pointer;transition:box-shadow .3s,border-color .3s}.ant-pro-card-hoverable:hover{border-color:transparent;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-pro-card-hoverable.ant-pro-card-checked:hover{border-color:var(--ant-primary-color)}.ant-pro-card-checked{background-color:var(--ant-primary-1);border-color:var(--ant-primary-color)}.ant-pro-card-checked:after{position:absolute;top:2px;right:2px;width:0;height:0;border:6px solid var(--ant-primary-color);border-bottom:6px solid transparent;border-left:6px solid transparent;border-top-right-radius:2px;content:""}.ant-pro-card:focus{background-color:var(--ant-primary-1);border-color:var(--ant-primary-color)}.ant-pro-card-size-small .ant-pro-card-header{padding:8px 12px 0}.ant-pro-card-size-small .ant-pro-card-header-border{padding-bottom:8px}.ant-pro-card-size-small .ant-pro-card-title{font-size:14px}.ant-pro-card-size-small .ant-pro-card-body{padding:12px}.ant-pro-card-ghost{background-color:transparent}.ant-pro-card-ghost>.ant-pro-card-header{padding-right:0;padding-bottom:16px;padding-left:0}.ant-pro-card-ghost>.ant-pro-card-body{padding:0;background-color:transparent}.ant-pro-card-split>.ant-pro-card-body{padding:0}.ant-pro-card-split-vertical{border-right:1px solid rgba(0,0,0,.06)}.ant-pro-card-split-horizontal{border-bottom:1px solid rgba(0,0,0,.06)}.ant-pro-card-contain-card>.ant-pro-card-body{display:flex}.ant-pro-card-body-direction-column{flex-direction:column}.ant-pro-card-body-wrap{flex-wrap:wrap}.ant-pro-card-collapse>.ant-pro-card-header{padding-bottom:16px;border-bottom:0}.ant-pro-card-collapse>.ant-pro-card-body{display:none}.ant-pro-card-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px 0}.ant-pro-card-header-border{padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.06)}.ant-pro-card-header-collapsible{cursor:pointer}.ant-pro-card-title{color:rgba(0,0,0,.85);font-weight:500;font-size:16px}.ant-pro-card-extra{color:rgba(0,0,0,.85)}.ant-pro-card-type-inner .ant-pro-card-header{background-color:#fafafa}.ant-pro-card-collapsible-icon{margin-right:8px;color:rgba(0,0,0,.75)}.ant-pro-card-collapsible-icon :hover{color:var(--ant-primary-color-hover)}.ant-pro-card-collapsible-icon svg{transition:transform .2s}.ant-pro-card-body{display:block;box-sizing:border-box;height:100%;padding:24px}.ant-pro-card-body-center{display:flex;align-items:center;justify-content:center}.ant-pro-card-col-0{display:none}.ant-pro-card-col-24{flex-shrink:0;width:100%}.ant-pro-card-col-23{flex-shrink:0;width:95.83333333%}.ant-pro-card-col-22{flex-shrink:0;width:91.66666667%}.ant-pro-card-col-21{flex-shrink:0;width:87.5%}.ant-pro-card-col-20{flex-shrink:0;width:83.33333333%}.ant-pro-card-col-19{flex-shrink:0;width:79.16666667%}.ant-pro-card-col-18{flex-shrink:0;width:75%}.ant-pro-card-col-17{flex-shrink:0;width:70.83333333%}.ant-pro-card-col-16{flex-shrink:0;width:66.66666667%}.ant-pro-card-col-15{flex-shrink:0;width:62.5%}.ant-pro-card-col-14{flex-shrink:0;width:58.33333333%}.ant-pro-card-col-13{flex-shrink:0;width:54.16666667%}.ant-pro-card-col-12{flex-shrink:0;width:50%}.ant-pro-card-col-11{flex-shrink:0;width:45.83333333%}.ant-pro-card-col-10{flex-shrink:0;width:41.66666667%}.ant-pro-card-col-9{flex-shrink:0;width:37.5%}.ant-pro-card-col-8{flex-shrink:0;width:33.33333333%}.ant-pro-card-col-7{flex-shrink:0;width:29.16666667%}.ant-pro-card-col-6{flex-shrink:0;width:25%}.ant-pro-card-col-5{flex-shrink:0;width:20.83333333%}.ant-pro-card-col-4{flex-shrink:0;width:16.66666667%}.ant-pro-card-col-3{flex-shrink:0;width:12.5%}.ant-pro-card-col-2{flex-shrink:0;width:8.33333333%}.ant-pro-card-col-1{flex-shrink:0;width:4.16666667%}.ant-pro-card-loading{overflow:hidden}.ant-pro-card-loading .ant-pro-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pro-card-loading-content{width:100%}.ant-pro-card-loading-content p{margin:0}.ant-pro-card-loading-block{height:14px;margin:4px 0;background:linear-gradient(90deg,rgba(207,216,220,.2),rgba(207,216,220,.4),rgba(207,216,220,.2));background-size:600% 600%;border-radius:2px;animation:card-loading 1.4s ease infinite}@keyframes card-loading{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.ant-pro-core-label-tip{display:inline-flex;align-items:center;max-width:100%}.ant-pro-core-label-tip-icon{display:block;margin-left:4px;cursor:pointer}.ant-pro-core-label-tip-icon:hover{color:var(--ant-primary-color-hover)}.ant-pro-core-label-tip-title{display:inline-flex;flex:1 1}.ant-pro-core-label-tip-subtitle{margin-left:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;white-space:nowrap}.ant-pro-core-label-tip-title-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-pro-card-actions{margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-pro-card-actions:before{display:table;content:""}.ant-pro-card-actions:after{display:table;clear:both;content:""}.ant-pro-card-actions .ant-space{grid-gap:0!important;gap:0!important;width:100%}.ant-pro-card-actions .ant-space-item,.ant-pro-card-actions>li{flex:1 1;float:left;margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-pro-card-actions .ant-space-item>a,.ant-pro-card-actions>li>a{color:rgba(0,0,0,.45);transition:color .3s}.ant-pro-card-actions .ant-space-item>a:hover,.ant-pro-card-actions>li>a:hover{color:var(--ant-primary-color-hover)}.ant-pro-card-actions .ant-space-item>span,.ant-pro-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-pro-card-actions .ant-space-item>span:hover,.ant-pro-card-actions>li>span:hover{color:var(--ant-primary-color-hover);transition:color .3s}.ant-pro-card-actions .ant-space-item>span>.anticon,.ant-pro-card-actions .ant-space-item>span a:not(.ant-btn),.ant-pro-card-actions>li>span>.anticon,.ant-pro-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-pro-card-actions .ant-space-item>span>.anticon:hover,.ant-pro-card-actions .ant-space-item>span a:not(.ant-btn):hover,.ant-pro-card-actions>li>span>.anticon:hover,.ant-pro-card-actions>li>span a:not(.ant-btn):hover{color:var(--ant-primary-color-hover)}.ant-pro-card-actions .ant-space-item>span>.anticon,.ant-pro-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-pro-card-actions .ant-space-item:not(:last-child),.ant-pro-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-pro-card-divider{flex:none;width:1px;margin:24px 8px;background-color:rgba(0,0,0,.06)}.ant-pro-card-divider-horizontal{width:auto;height:1px;margin:8px 24px}.ant-pro-card-size-small .ant-pro-card-divider{margin:12px 8px}.ant-pro-card-size-small .ant-pro-card-divider-horizontal{margin:8px 12px}.ant-pro-card-tabs .ant-tabs-top>.ant-tabs-nav{margin-bottom:0}.ant-pro-card-tabs .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list{margin-top:8px;padding-left:16px}.ant-pro-card-tabs .ant-tabs-bottom>.ant-tabs-nav{margin-top:0}.ant-pro-card-tabs .ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-list{padding-left:16px}.ant-pro-card-tabs .ant-tabs-left .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{padding-left:0}.ant-pro-card-tabs .ant-tabs-left>.ant-tabs-nav{margin-right:0}.ant-pro-card-tabs .ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-list{padding-top:16px}.ant-pro-card-tabs .ant-tabs-right .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{padding-right:0}.ant-pro-card-tabs .ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-list{padding-top:16px}.ant-pro-inline-error-form-item-multiple{padding:6px 8px 12px}.ant-pro-inline-error-form-item-progress-success .ant-progress-bg{background-color:var(--ant-success-color)}.ant-pro-inline-error-form-item-progress-error .ant-progress-bg{background-color:var(--ant-error-color)}.ant-pro-inline-error-form-item-progress-warning .ant-progress-bg{background-color:var(--ant-warning-color)}.ant-pro-inline-error-form-item-rule{margin:0;padding:0;list-style:none}.ant-pro-inline-error-form-item-rule-content{display:flex;align-items:center}.ant-pro-inline-error-form-item-rule-content-icon-default{display:flex;align-items:center;justify-content:center;width:14px;height:22px}.ant-pro-inline-error-form-item-rule-content-icon-default-circle{width:6px;height:6px;background-color:rgba(0,0,0,.45);border-radius:4px}.ant-pro-inline-error-form-item-rule-content-icon-loading{color:var(--ant-primary-color)}.ant-pro-inline-error-form-item-rule-content-icon-error{color:var(--ant-error-color)}.ant-pro-inline-error-form-item-rule-content-icon-success{color:var(--ant-success-color)}.ant-pro-inline-error-form-item-rule-content-text{color:rgba(0,0,0,.85)}.ant-pro-table-dropdown{width:auto}.ant-pro-select-item-option-content-light{color:var(--ant-primary-color)}.ant-pro-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-pro-table .ant-pro-table-search{margin-bottom:16px;padding:24px 24px 0;background:#fff}.ant-pro-table .ant-pro-table-search-ghost{background:transparent}.ant-pro-table .ant-pro-table-search:before{display:table;content:""}.ant-pro-table .ant-pro-table-search:after{display:table;clear:both;content:""}.ant-pro-table .ant-pro-table-search.ant-pro-table-form{margin:0;padding:0 16px;overflow:unset}.ant-pro-table .ant-pro-table-search-light{margin-bottom:0;padding:16px 0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item{margin:0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item-label{opacity:0}.ant-pro-table .ant-pro-table-search-form-option .ant-form-item-control-input{justify-content:flex-start}@media (max-width:575px){.ant-pro-table .ant-pro-table-search{height:auto!important;padding-bottom:24px}.ant-pro-table .ant-pro-table-search .ant-form-item-label{min-width:80px;text-align:left}}.ant-pro-form-light-filter{line-height:30px}.ant-pro-form-light-filter:before{display:block;height:0;visibility:hidden;content:"."}.ant-pro-form-light-filter-small{line-height:1.5715}.ant-pro-form-light-filter-container{display:flex;flex-wrap:wrap;margin-top:-8px;margin-right:-4px}.ant-pro-form-light-filter-item{margin-top:8px;white-space:nowrap}.ant-pro-form-light-filter-item:not(:last-child){margin-right:8px}.ant-pro-form-light-filter-formlabel{margin-bottom:2px}.ant-pro-form-light-filter-line{min-width:198px}.ant-pro-form-light-filter-line .ant-form-item{flex-direction:column;margin-bottom:0}.ant-pro-form-light-filter-line:not(:first-child){margin-top:16px;margin-bottom:8px}.ant-pro-form-light-filter .ant-form-item{margin-bottom:0}.ant-pro-form-light-filter-collapse-icon{width:32px;height:32px;line-height:35px;border-radius:50%}.ant-pro-form-light-filter-effective .ant-pro-form-light-filter-collapse-icon{background-color:rgba(0,0,0,.04)}.ant-pro-steps-form-container{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:520px;max-width:100%;margin:auto}.ant-pro-steps-form-steps-container{max-width:1160px;margin:auto}.ant-pro-steps-form-steps-container .ant-steps-vertical{height:100%}.ant-pro-steps-form-step{display:none;margin-top:32px}.ant-pro-steps-form-step-active{display:block}.ant-pro-steps-form-step>form{max-width:100%}.pro-table-tooltip-text span{color:#fff}.ant-pro-table{z-index:1}.ant-pro-table:not(:root):-webkit-full-screen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table:not(:root):-ms-fullscreen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table:not(:root):fullscreen{min-height:100vh;overflow:auto;background:#fff}.ant-pro-table-extra{margin-bottom:16px}.ant-pro-table-polling .ant-pro-table-list-toolbar-setting-item .anticon.anticon-reload{transform:rotate(0deg);animation:turn 1s linear infinite}.ant-pro-table td.ant-table-cell>a{font-size:14px}.ant-pro-table .ant-table .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:0}.ant-pro-table .ant-table.ant-table-middle .ant-pro-table{margin:-12px -8px}@keyframes turn{0%{transform:rotate(0deg)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:rotate(270deg)}to{transform:rotate(1turn)}}.ant-pro-table-toolbar{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 24px}.ant-pro-table-toolbar-option{display:flex;align-items:center;justify-content:flex-end}.ant-pro-table-toolbar-title{flex:1 1;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:24px;opacity:.85}@media (max-width:480px){.ant-pro-table .ant-table{width:100%;overflow-x:auto}.ant-pro-table .ant-table-tbody>tr>td,.ant-pro-table .ant-table-tbody>tr>th,.ant-pro-table .ant-table-thead>tr>td,.ant-pro-table .ant-table-thead>tr>th{white-space:pre}.ant-pro-table .ant-table-tbody>tr>td>span,.ant-pro-table .ant-table-tbody>tr>th>span,.ant-pro-table .ant-table-thead>tr>td>span,.ant-pro-table .ant-table-thead>tr>th>span{display:block}}@media (max-width:575px){.ant-pro-table-toolbar{flex-direction:column;align-items:flex-start;justify-content:flex-start;height:auto;margin-bottom:16px;margin-left:16px;padding:16px 8px 8px;line-height:normal}.ant-pro-table-toolbar-title{margin-bottom:16px}.ant-pro-table-toolbar-option{display:flex;justify-content:space-between;width:100%}.ant-pro-table-toolbar-default-option{display:flex;flex:1 1;align-items:center;justify-content:flex-end}}.ant-pro-table-column-setting{width:auto}.ant-pro-table-column-setting-title{display:flex;align-items:center;justify-content:space-between;height:32px}.ant-pro-table-column-setting-overlay .ant-popover-inner-content{width:200px;padding:0 0 8px}.ant-pro-table-column-setting-overlay .ant-tree-node-content-wrapper:hover{background-color:transparent}.ant-pro-table-column-setting-overlay .ant-tree-draggable-icon{cursor:-webkit-grab;cursor:grab}.ant-pro-table-column-setting-overlay .ant-tree-treenode{align-items:center}.ant-pro-table-column-setting-overlay .ant-tree-treenode:hover{background-color:var(--ant-primary-1)}.ant-pro-table-column-setting-overlay .ant-tree-treenode:hover .ant-pro-table-column-setting-list-item-option{display:block}.ant-pro-table-column-setting-overlay .ant-tree-treenode .ant-tree-checkbox{top:0;margin:0 4px 0 0}.ant-pro-table-column-setting-list{display:flex;flex-direction:column;width:100%;padding-top:8px}.ant-pro-table-column-setting-list.ant-pro-table-column-setting-list-group{padding-top:0}.ant-pro-table-column-setting-list-title{margin-top:6px;margin-bottom:6px;padding-left:24px;color:rgba(0,0,0,.45);font-size:12px}.ant-pro-table-column-setting-list-item{display:flex;align-items:center}.ant-pro-table-column-setting-list-item-title{flex:1 1}.ant-pro-table-column-setting-list-item-option{display:none;float:right;cursor:pointer}.ant-pro-table-column-setting-list-item-option>span>span.anticon{color:var(--ant-primary-color)}.ant-pro-table-column-setting-list-item-option>span+span{margin-left:8px}.ant-pro-table-list-toolbar{overflow-x:auto;line-height:1}.ant-pro-table-list-toolbar-container{display:flex;justify-content:space-between;padding:16px 0}.ant-pro-table-list-toolbar-container-mobile{flex-direction:column}.ant-pro-table-list-toolbar-title{display:flex;align-items:center;justify-content:flex-start;color:rgba(0,0,0,.85);font-weight:500;font-size:16px}.ant-pro-table-list-toolbar-search:not(:last-child){display:flex;align-items:center;justify-content:flex-start}.ant-pro-table-list-toolbar-setting-item{margin:0 4px;color:rgba(0,0,0,.75);font-size:16px;cursor:pointer}.ant-pro-table-list-toolbar-setting-item>span{display:block;width:100%;height:100%}.ant-pro-table-list-toolbar-setting-item:hover{color:var(--ant-primary-color-hover)}.ant-pro-table-list-toolbar-left{display:flex;align-items:center;justify-content:flex-start}.ant-pro-table-list-toolbar-right{display:flex;justify-content:flex-end}.ant-pro-table-list-toolbar-extra-line{margin-bottom:16px}.ant-pro-table-list-toolbar-filter{display:flex;align-items:center}.ant-pro-table-list-toolbar-filter:not(:last-child){margin-right:16px}.ant-pro-table-list-toolbar-filter div.ant-pro-table-search{margin:0;padding:0}.ant-pro-table-list-toolbar-inline-menu-item{display:inline-block;margin-right:24px;cursor:pointer;opacity:.75}.ant-pro-table-list-toolbar-inline-menu-item-active{font-weight:700;opacity:1}.ant-pro-table-list-toolbar-dropdownmenu-label{font-weight:700;font-size:16px;text-align:center;cursor:pointer}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav{margin-bottom:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav:before{border-bottom:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list{margin-top:0}.ant-pro-table-list-toolbar .ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-list .ant-tabs-tab{padding-top:0}@media (max-width:575px){.ant-pro-table-list-toolbar-container{display:flex;flex-wrap:wrap}.ant-pro-table-list-toolbar-left{margin-bottom:16px}}.ant-pro-table-alert{margin-bottom:16px}.ant-pro-table-alert .ant-alert.ant-alert-no-icon{padding:12px 24px}.ant-pro-table-alert-info{display:flex;align-items:center;transition:all .3s}.ant-pro-table-alert-info-content{flex:1 1}.ant-pro-table-alert-info-option{min-width:48px;padding-left:16px} \ No newline at end of file diff --git a/6861.a6982563.async.js b/6861.a6982563.async.js deleted file mode 100644 index 35245f63..00000000 --- a/6861.a6982563.async.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6861],{61768:function(mt,Le,d){"use strict";var U=d(22122),te=d(28991),me=d(85061),O=d(81253),ne=d(47673),re=d(4107),ze=d(49111),oe=d(19650),ce=d(31194),Ke=d(50344),J=d(67294),ee=d(71436),Re=d(2514),c=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],de=["children","space","valuePropName"],r={space:oe.Z,group:re.Z.Group};function Xe($){var ae=arguments.length<=1?void 0:arguments[1];return ae&&ae.target&&$ in ae.target?ae.target[$]:ae}var Ie=function(ae){var Ce=ae.children,ye=ae.value,ue=ye===void 0?[]:ye,we=ae.valuePropName,ke=ae.onChange,be=ae.fieldProps,$e=ae.space,Zt=ae.type,tt=Zt===void 0?"space":Zt,ve=ae.transform,nt=ae.convertValue,Vt=(0,O.Z)(ae,c),ut=(0,ce.J)(function(Ze,at){var De,he=(0,me.Z)(ue);he[at]=Xe(we||"value",Ze),ke==null||ke(he),be==null||(De=be.onChange)===null||De===void 0||De.call(be,he)}),St=-1,jt=(0,Ke.Z)(Ce).map(function(Ze){if(J.isValidElement(Ze)){var at,De,he;St+=1;var Ee=St,We=(Ze==null||(at=Ze.type)===null||at===void 0?void 0:at.displayName)==="ProFormComponent"||(Ze==null||(De=Ze.props)===null||De===void 0?void 0:De.readonly),Wt=We?(0,te.Z)((0,te.Z)({key:Ee,ignoreFormItem:!0},Ze.props||{}),{},{fieldProps:(0,te.Z)((0,te.Z)({},Ze==null||(he=Ze.props)===null||he===void 0?void 0:he.fieldProps),{},{onChange:function(){ut(arguments.length<=0?void 0:arguments[0],Ee)}}),value:ue==null?void 0:ue[Ee],onChange:void 0}):(0,te.Z)((0,te.Z)({key:Ee},Ze.props||{}),{},{value:ue==null?void 0:ue[Ee],onChange:function(Ft){var Tt,Rt;ut(Ft,Ee),(Tt=(Rt=Ze.props).onChange)===null||Tt===void 0||Tt.call(Rt,Ft)}});return J.cloneElement(Ze,Wt)}return Ze}),Ue=r[tt],Ut=(0,Re.zx)(Vt),Ae=Ut.RowWrapper,xt=(0,J.useMemo)(function(){return(0,te.Z)({},tt==="group"?{compact:!0}:{})},[tt]),At=(0,J.useCallback)(function(Ze){var at=Ze.children;return J.createElement(Ue,(0,U.Z)({},xt,$e,{align:"start"}),at)},[Ue,$e,xt]);return J.createElement(Ae,{Wrapper:At},jt)},Y=J.forwardRef(function($,ae){var Ce=$.children,ye=$.space,ue=$.valuePropName,we=(0,O.Z)($,de);return(0,J.useImperativeHandle)(ae,function(){return{}}),J.createElement(Ie,(0,U.Z)({space:ye,valuePropName:ue},we.fieldProps,{onChange:void 0},we),Ce)}),le=(0,ee.G)(Y);Le.Z=le},14487:function(mt,Le,d){"use strict";d.d(Le,{Z:function(){return Oo}});var U=d(55507),te=d(92137),me=d(90484),O=d(28481),ne=d(84305),re=d(75901),ze=d(20228),oe=d(11382),ce=d(66456),Ke=d(34424),J=d(22122),ee=d(96156),Re=d(85061),c=d(28991),de=d(81253),r=d(67294),Xe=d(18106),Ie=d(51752),Y=d(6999),le=d(25378);function $(){return(0,le.Z)()}var ae={useBreakpoint:$},Ce=d(8812),ye=d(22385),ue=d(61580),we=d(68628),ke=d(94184),be=d.n(ke),$e=d(5522),Zt=function(e){var a=e.label,n=e.tooltip,l=e.ellipsis,o=e.subTitle,i=(0,r.useContext)(re.ZP.ConfigContext),u=i.getPrefixCls;if(!n&&!o)return r.createElement(r.Fragment,null,a);var s=u("pro-core-label-tip"),v=typeof n=="string"||r.isValidElement(n)?{title:n}:n,C=(v==null?void 0:v.icon)||r.createElement(we.Z,null);return r.createElement("div",{className:s,onMouseDown:function(S){return S.stopPropagation()},onMouseLeave:function(S){return S.stopPropagation()},onMouseMove:function(S){return S.stopPropagation()}},r.createElement("div",{className:be()("".concat(s,"-title"),(0,ee.Z)({},"".concat(s,"-title-ellipsis"),l))},a),o&&r.createElement("div",{className:"".concat(s,"-subtitle")},o),n&&r.createElement(ue.Z,v,r.createElement("span",{className:"".concat(s,"-icon")},C)))},tt=r.memo(Zt),ve=d(97435),nt=d(76632),Vt=d(48636),ut=function(e){var a=e.actions,n=e.prefixCls;return Array.isArray(a)&&(a==null?void 0:a.length)?r.createElement("ul",{className:"".concat(n,"-actions")},a.map(function(l,o){return r.createElement("li",{style:{width:"".concat(100/a.length,"%")},key:"action-".concat(o)},r.createElement("span",null,l))})):a?r.createElement("ul",{className:"".concat(n,"-actions")},a):null},St=ut,jt=d(13062),Ue=d(71230),Ut=d(89032),Ae=d(15746),xt=d(83432),At=function(e){var a=e.style,n=e.prefix;return r.createElement("div",{className:"".concat(n,"-loading-content"),style:a},r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:22},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:8},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:15},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:6},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:18},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:13},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:9},r.createElement("div",{className:"".concat(n,"-loading-block")}))),r.createElement(Ue.Z,{gutter:8},r.createElement(Ae.Z,{span:4},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:3},r.createElement("div",{className:"".concat(n,"-loading-block")})),r.createElement(Ae.Z,{span:16},r.createElement("div",{className:"".concat(n,"-loading-block")}))))},Ze=At,at=d(86919),De=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],he=ae.useBreakpoint,Ee=r.forwardRef(function(t,e){var a,n,l,o=t.className,i=t.style,u=t.bodyStyle,s=u===void 0?{}:u,v=t.headStyle,C=v===void 0?{}:v,g=t.title,S=t.subTitle,f=t.extra,h=t.tip,E=t.wrap,b=E===void 0?!1:E,P=t.layout,K=t.loading,T=t.gutter,D=T===void 0?0:T,k=t.tooltip,F=t.split,I=t.headerBordered,B=I===void 0?!1:I,M=t.bordered,x=M===void 0?!1:M,m=t.children,R=t.size,w=t.actions,p=t.ghost,y=p===void 0?!1:p,Z=t.hoverable,L=Z===void 0?!1:Z,N=t.direction,A=t.collapsed,j=t.collapsible,z=j===void 0?!1:j,W=t.collapsibleIconRender,G=t.defaultCollapsed,H=G===void 0?!1:G,V=t.onCollapse,q=t.checked,fe=t.onChecked,Se=t.tabs,ie=t.type,pe=(0,de.Z)(t,De),Fe=(0,r.useContext)(re.ZP.ConfigContext),Me=Fe.getPrefixCls,Be=he(),dt=(0,nt.Z)(H,{value:A,onChange:V}),ct=(0,O.Z)(dt,2),je=ct[0],Et=ct[1],Je=["xxl","xl","lg","md","sm","xs"],Lt=function(se){var Ne=[0,0],Ye=Array.isArray(se)?se:[se,0];return Ye.forEach(function(rt,vt){if((0,me.Z)(rt)==="object")for(var qe=0;qe=0&&qe<=24),Ye));return r.createElement("div",{style:(0,c.Z)((0,c.Z)((0,c.Z)({},it),ot(Pt>0,{paddingRight:Pt/2,paddingLeft:Pt/2})),ot(pt>0,{paddingTop:pt/2,paddingBottom:pt/2})),key:"pro-card-col-".concat((He==null?void 0:He.key)||se),className:An},r.cloneElement(He))}return He}),nn=be()("".concat(Q),o,(a={},(0,ee.Z)(a,"".concat(Q,"-border"),x),(0,ee.Z)(a,"".concat(Q,"-contain-card"),$t),(0,ee.Z)(a,"".concat(Q,"-loading"),K),(0,ee.Z)(a,"".concat(Q,"-split"),F==="vertical"||F==="horizontal"),(0,ee.Z)(a,"".concat(Q,"-ghost"),y),(0,ee.Z)(a,"".concat(Q,"-hoverable"),L),(0,ee.Z)(a,"".concat(Q,"-size-").concat(R),R),(0,ee.Z)(a,"".concat(Q,"-type-").concat(ie),ie),(0,ee.Z)(a,"".concat(Q,"-collapse"),je),(0,ee.Z)(a,"".concat(Q,"-checked"),q),a)),rn=be()("".concat(Q,"-body"),(n={},(0,ee.Z)(n,"".concat(Q,"-body-center"),P==="center"),(0,ee.Z)(n,"".concat(Q,"-body-direction-column"),F==="horizontal"||N==="column"),(0,ee.Z)(n,"".concat(Q,"-body-wrap"),b&&$t),n)),bn=(0,c.Z)((0,c.Z)((0,c.Z)({},ot(Pt>0,{marginRight:-Pt/2,marginLeft:-Pt/2})),ot(pt>0,{marginTop:-pt/2,marginBottom:-pt/2})),s),Sn=r.isValidElement(K)?K:r.createElement(Ze,{prefix:Q,style:s.padding===0||s.padding==="0px"?{padding:24}:void 0}),Te=z&&A===void 0&&(W?W({collapsed:je}):r.createElement(Ce.Z,{rotate:je?void 0:90,className:"".concat(Q,"-collapsible-icon")}));return r.createElement("div",(0,J.Z)({className:nn,style:i,ref:e,onClick:function(se){var Ne;fe==null||fe(se),pe==null||(Ne=pe.onClick)===null||Ne===void 0||Ne.call(pe,se)}},(0,ve.Z)(pe,["prefixCls","colSpan"])),(g||f||Te)&&r.createElement("div",{className:be()("".concat(Q,"-header"),(l={},(0,ee.Z)(l,"".concat(Q,"-header-border"),B||ie==="inner"),(0,ee.Z)(l,"".concat(Q,"-header-collapsible"),Te),l)),style:C,onClick:function(){Te&&Et(!je)}},r.createElement("div",{className:"".concat(Q,"-title")},Te,r.createElement(tt,{label:g,tooltip:k||h,subTitle:S})),f&&r.createElement("div",{className:"".concat(Q,"-extra")},f)),Se?r.createElement("div",{className:"".concat(Q,"-tabs")},r.createElement(Ie.Z,(0,J.Z)({onChange:Se.onChange},Se),K?Sn:m)):r.createElement("div",{className:rn,style:bn},K?Sn:pn),r.createElement(St,{actions:w,prefixCls:Q}))}),We=Ee,Wt=d(71529),Ot=function(e){var a=(0,r.useContext)(re.ZP.ConfigContext),n=a.getPrefixCls,l=n("pro-card-divider"),o=e.className,i=e.style,u=i===void 0?{}:i,s=e.type,v=be()(l,o,(0,ee.Z)({},"".concat(l,"-").concat(s),s));return r.createElement("div",{className:v,style:u})},Ft=Ot,Tt=d(54783),Rt=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"],Yt=function(e){var a=e.key,n=e.tab,l=e.tabKey,o=e.disabled,i=e.destroyInactiveTabPane,u=e.children,s=e.className,v=e.style,C=e.cardProps,g=(0,de.Z)(e,Rt),S=(0,r.useContext)(re.ZP.ConfigContext),f=S.getPrefixCls,h=f("pro-card-tabpane"),E=be()(h,s);return r.createElement(Ie.Z.TabPane,(0,J.Z)({key:a,tabKey:l,tab:n,className:E,style:v,disabled:o,destroyInactiveTabPane:i},g),r.createElement(We,C,u))},Gt=Yt,Mt=function(e){return r.createElement(We,(0,J.Z)({bodyStyle:{padding:0}},e))},Bt=We;Bt.isProCard=!0,Bt.Divider=Ft,Bt.TabPane=Gt,Bt.Group=Mt;var Qt=Bt,Cn=Qt,En=d(952),_e=d(80392),Bn=d(34792),Xt=d(48086),zn=d(62350),kn=d(75443),$n=d(99809),st=d(7085),Ve=d(84164),Oe=d(88306),Qe=d(8880),Ge=d(80334),xe=d(70460);function lt(t,e){var a=(0,xe.J)(t),n=(0,r.useRef)(),l=(0,r.useCallback)(function(){n.current&&(clearTimeout(n.current),n.current=null)},[]),o=(0,r.useCallback)((0,te.Z)((0,U.Z)().mark(function i(){var u,s,v,C=arguments;return(0,U.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:for(u=C.length,s=new Array(u),v=0;v1&&(k=(0,$n.Z)(e),F=k.slice(1),I=(0,Oe.Z)(D,F),(0,Qe.Z)(D,F,I)),B=K?(0,Qe.Z)({},T,D,!0):D,m.next=13,a==null?void 0:a(e,pr({},l,B),l,i);case 13:return M=m.sent,f(!1),m.abrupt("return",M);case 18:return m.prev=18,m.t0=m.catch(2),console.log(m.t0),f(!1),m.abrupt("return",null);case 23:case"end":return m.stop()}},E,null,[[2,18]])}));return function(E){return h.apply(this,arguments)}}()},S?r.createElement(st.Z,{style:{marginRight:8}}):null,o||"\u4FDD\u5B58")}var Pr=function(e){var a=e.recordKey,n=e.onDelete,l=e.row,o=e.children,i=e.deletePopconfirmMessage,u=e.cancelEditable,s=gt(function(){return!1}),v=(0,O.Z)(s,2),C=v[0],g=v[1],S=function(){var f=(0,te.Z)((0,U.Z)().mark(function h(){var E;return(0,U.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,g(!0),P.next=4,n==null?void 0:n(a,l);case 4:return E=P.sent,g(!1),setTimeout(function(){u(a)},0),P.abrupt("return",E);case 10:return P.prev=10,P.t0=P.catch(0),console.log(P.t0),g(!1),P.abrupt("return",null);case 15:case"end":return P.stop()}},h,null,[[0,10]])}));return function(){return f.apply(this,arguments)}}();return o!==!1?r.createElement(kn.Z,{key:"delete",title:i,onConfirm:S},r.createElement("a",null,C?r.createElement(st.Z,{style:{marginRight:8}}):null,o||"\u5220\u9664")):null},Zr=function(e){var a=e.recordKey,n=e.tableName,l=e.newLineConfig,o=e.form,i=e.editorType,u=e.onCancel,s=e.cancelEditable,v=e.row,C=e.cancelText,g=(0,r.useContext)(Ct);return r.createElement("a",{key:"cancel",onClick:function(){var S=(0,te.Z)((0,U.Z)().mark(function f(h){var E,b,P,K,T,D;return(0,U.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return h.stopPropagation(),h.preventDefault(),b=i==="Map",P=[n,a].flat(1).filter(Boolean),K=((E=g.getFieldFormatValue)===null||E===void 0?void 0:E.call(g,P))||o.getFieldValue(P),T=b?(0,Qe.Z)({},P,K):K,F.next=8,u==null?void 0:u(a,T,v,l);case 8:return D=F.sent,s(a),o.setFieldsValue((0,ee.Z)({},a,b?(0,Oe.Z)(v,P):v)),F.abrupt("return",D);case 12:case"end":return F.stop()}},f)}));return function(f){return S.apply(this,arguments)}}()},C||"\u53D6\u6D88")};function xr(t,e){var a=e.recordKey,n=e.newLineConfig,l=e.saveText,o=e.deleteText;return[r.createElement(Er,(0,J.Z)({key:"save"},e,{row:t}),l),(n==null?void 0:n.options.recordKey)!==a?r.createElement(Pr,(0,J.Z)({key:"delete"},e,{row:t}),o):null,r.createElement(Zr,(0,J.Z)({key:"cancel"},e,{row:t}))]}function Fr(t){var e=(0,r.useState)(void 0),a=(0,O.Z)(e,2),n=a[0],l=a[1],o=(0,r.useRef)(new Map),i=(0,r.useRef)(void 0);ln(function(){var y=new Map,Z=function L(N){N==null||N.forEach(function(A,j){var z;y.set(j.toString(),ht(t.getRowKey(A,-1))),y.set((z=ht(t.getRowKey(A,-1)))===null||z===void 0?void 0:z.toString(),j.toString()),t.childrenColumnName&&A[t.childrenColumnName]&&L(A[t.childrenColumnName])})};Z(t.dataSource),o.current=y},[t.dataSource]),i.current=n;var u=t.type||"single",s=(0,Ve.Z)(t.dataSource,"children",t.getRowKey),v=(0,O.Z)(s,1),C=v[0],g=(0,nt.Z)([],{value:t.editableKeys,onChange:t.onChange?function(y){var Z;t==null||(Z=t.onChange)===null||Z===void 0||Z.call(t,y.filter(function(L){return L!==void 0}),y.map(function(L){return C(L)}).filter(function(L){return L!==void 0}))}:void 0}),S=(0,O.Z)(g,2),f=S[0],h=S[1],E=(0,r.useMemo)(function(){var y=u==="single"?f==null?void 0:f.slice(0,1):f;return new Set(y)},[(f||[]).join(","),u]),b=(0,on.Z)(f),P=(0,xe.J)(function(y){var Z,L,N,A,j=(Z=t.getRowKey(y,y.index))===null||Z===void 0||(L=Z.toString)===null||L===void 0?void 0:L.call(Z),z=(N=t.getRowKey(y,-1))===null||N===void 0||(A=N.toString)===null||A===void 0?void 0:A.call(N),W=f.map(function(V){return V==null?void 0:V.toString()}),G=(b==null?void 0:b.map(function(V){return V==null?void 0:V.toString()}))||[],H=t.tableName&&!!(G==null?void 0:G.includes(z))||!!(G==null?void 0:G.includes(j));return{recordKey:z,isEditable:t.tableName&&(W==null?void 0:W.includes(z))||(W==null?void 0:W.includes(j)),preIsEditable:H}}),K=(0,xe.J)(function(y){return E.size>0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1?(Xt.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(E.add(y),h(Array.from(E)),!0)}),T=(0,xe.J)(function(y,Z){var L=ht(y).toString(),N=o.current.get(L);if(!E.has(L)&&N&&(Z!=null?Z:!0)&&t.tableName){T(N,!1);return}return n&&n.options.recordKey===y&&l(void 0),E.delete(L),E.delete(ht(y)),h(Array.from(E)),!0}),D=wt((0,te.Z)((0,U.Z)().mark(function y(){var Z,L,N,A,j=arguments;return(0,U.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:for(L=j.length,N=new Array(L),A=0;A0&&u==="single"&&t.onlyOneLineEditorAlertMessage!==!1)return Xt.ZP.warn(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var L=t.getRowKey(y,-1);if(!L)throw(0,Ge.ET)(!!L,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(E.add(L),h(Array.from(E)),(Z==null?void 0:Z.newRecordType)==="dataSource"||t.tableName){var N,A={data:t.dataSource,getRowKey:t.getRowKey,row:(0,c.Z)((0,c.Z)({},y),{},{map_row_parentKey:(Z==null?void 0:Z.parentKey)?(N=ht(Z==null?void 0:Z.parentKey))===null||N===void 0?void 0:N.toString():void 0}),key:L,childrenColumnName:t.childrenColumnName||"children"};t.setDataSource(qt(A,(Z==null?void 0:Z.position)==="top"?"top":"update"))}else l({defaultValue:y,options:(0,c.Z)((0,c.Z)({},Z),{},{recordKey:L})});return!0}),I=(0,_e.YB)(),B=(t==null?void 0:t.saveText)||I.getMessage("editableTable.action.save","\u4FDD\u5B58"),M=(t==null?void 0:t.deleteText)||I.getMessage("editableTable.action.delete","\u5220\u9664"),x=(t==null?void 0:t.cancelText)||I.getMessage("editableTable.action.cancel","\u53D6\u6D88"),m=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N,A,j){var z,W,G,H,V,q,fe;return(0,U.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return H=j||i.current||{},V=H.options,ie.next=3,t==null||(z=t.onSave)===null||z===void 0?void 0:z.call(t,L,N,A,j);case 3:if(q=ie.sent,T(L),!(!(V==null?void 0:V.parentKey)&&(V==null?void 0:V.recordKey)===L)){ie.next=8;break}return(V==null?void 0:V.position)==="top"?t.setDataSource([N].concat((0,Re.Z)(t.dataSource))):t.setDataSource([].concat((0,Re.Z)(t.dataSource),[N])),ie.abrupt("return",q);case 8:return fe={data:t.dataSource,getRowKey:t.getRowKey,row:V?(0,c.Z)((0,c.Z)({},N),{},{map_row_parentKey:(W=ht((G=V==null?void 0:V.parentKey)!==null&&G!==void 0?G:""))===null||W===void 0?void 0:W.toString()}):N,key:L,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(qt(fe,(V==null?void 0:V.position)==="top"?"top":"update")),ie.abrupt("return",q);case 11:case"end":return ie.stop()}},Z)}));return function(Z,L,N,A){return y.apply(this,arguments)}}()),R=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N){var A,j,z;return(0,U.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return j={data:t.dataSource,getRowKey:t.getRowKey,row:N,key:L,childrenColumnName:t.childrenColumnName||"children"},G.next=3,t==null||(A=t.onDelete)===null||A===void 0?void 0:A.call(t,L,N);case 3:return z=G.sent,t.setDataSource(qt(j,"delete")),G.abrupt("return",z);case 6:case"end":return G.stop()}},Z)}));return function(Z,L){return y.apply(this,arguments)}}()),w=(0,xe.J)(function(){var y=(0,te.Z)((0,U.Z)().mark(function Z(L,N,A,j){var z,W;return(0,U.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,t==null||(z=t.onCancel)===null||z===void 0?void 0:z.call(t,L,N,A,j);case 2:return W=H.sent,H.abrupt("return",W);case 4:case"end":return H.stop()}},Z)}));return function(Z,L,N,A){return y.apply(this,arguments)}}()),p=function(Z,L){var N=t.getRowKey(Z,Z.index),A={saveText:B,cancelText:x,deleteText:M,addEditRecord:F,recordKey:N,cancelEditable:T,index:Z.index,tableName:t.tableName,newLineConfig:n,onCancel:w,onDelete:R,onSave:m,form:L,editableKeys:f,setEditableRowKeys:h,deletePopconfirmMessage:t.deletePopconfirmMessage||"\u5220\u9664\u6B64\u884C\uFF1F"},j=xr(Z,A);return t.actionRender?t.actionRender(Z,A,{save:j[0],delete:j[1],cancel:j[2]}):j};return{editableKeys:f,setEditableRowKeys:h,isEditable:P,actionRender:p,startEditable:K,cancelEditable:T,addEditRecord:F,newLineRecord:n,preEditableKeys:b,onValuesChange:k}}var Tr=Fr,Rr=function(e){var a={};if(Object.keys(e||{}).forEach(function(n){e[n]!==void 0&&(a[n]=e[n])}),!(Object.keys(a).length<1))return a},kt=Rr,Vo=d(57106),Mr=d(99683),un=d(6610),sn=d(5991),dn=d(10379),cn=d(60446),wr=function(t){(0,dn.Z)(a,t);var e=(0,cn.Z)(a);function a(){var n;(0,un.Z)(this,a);for(var l=arguments.length,o=new Array(l),i=0;ih-1)&&!!w&&K>=24;T+=1;var W=r.isValidElement(R)&&(R.key||"".concat((L=R.props)===null||L===void 0?void 0:L.name))||w;return r.isValidElement(R)&&z?e.preserve?{itemDom:r.cloneElement(R,{hidden:!0,key:W||w}),hidden:!0,colSpan:A}:{itemDom:null,colSpan:A,hidden:!0}:{itemDom:R,colSpan:A,hidden:!1}}),B=I.map(function(R,w){var p,y,Z=R.itemDom,L=R.colSpan,N=Z==null||(p=Z.props)===null||p===void 0?void 0:p.hidden;if(N)return Z;var A=r.isValidElement(Z)&&(Z.key||"".concat((y=Z.props)===null||y===void 0?void 0:y.name))||w;24-F%2417&&p(A.width)}},r.createElement(xn.I,(0,J.Z)({isKeyPressSubmit:!0,preserve:D},B,{className:be()(x,B.className),onReset:f,style:P,layout:y.layout,fieldProps:{style:{width:"100%"}},formItemProps:L,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(A,j,z){return r.createElement(ba,{spanSize:y,collapsed:e,form:z,collapseRender:S,defaultCollapsed:l,onCollapse:h,optionRender:g,submitter:j,items:A,split:K,resetText:t.resetText,searchText:t.searchText,searchGutter:s,preserve:D,ignoreRules:k,showLength:Z,showHiddenNum:I})}})))}var Yn=d(65554),Ea=["steps","columns","forceUpdate","grid"],Pa=function(e){var a=e.steps,n=e.columns,l=e.forceUpdate,o=e.grid,i=(0,de.Z)(e,Ea),u=(0,jn.Z)(i),s=(0,r.useCallback)(function(C){var g,S;(g=(S=u.current).onCurrentChange)===null||g===void 0||g.call(S,C),l([])},[l,u]),v=(0,r.useMemo)(function(){return a==null?void 0:a.map(function(C,g){return r.createElement(_n,(0,J.Z)({grid:o},C,{key:g,layoutType:"StepForm",columns:n[g]}))})},[n,o,a]);return r.createElement(Yn.L,(0,J.Z)({},i,{onCurrentChange:s}),v)},Za=Pa,xa=function(e){var a=e.children;return r.createElement(r.Fragment,null,a)},Fa=xa,Qn=d(97462),Ta=function(e,a){var n=a.genItems;if(e.valueType==="dependency"){var l,o=(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e);return(0,Ge.ET)(Array.isArray(o==null?void 0:o.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Ge.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray(o==null?void 0:o.name)?r.createElement(Qn.Z,(0,J.Z)({},o,{key:e.key}),function(i){return!e.columns||typeof e.columns!="function"?null:n(e.columns(i))}):null}return!0},Ra=function(e){if(e.valueType==="divider"){var a;return r.createElement(Hn.Z,(0,J.Z)({},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e),{key:e.key}))}return!0},gn=d(97519),Ma=function(e,a){var n=a.action,l=a.formRef,o=a.type,i=a.originItem,u=(0,c.Z)((0,c.Z)({},(0,ve.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.dataIndex,width:e.width,render:(e==null?void 0:e.render)?function(g,S,f){var h,E,b;return e==null||(h=e.render)===null||h===void 0?void 0:h.call(e,g,S,f,n==null?void 0:n.current,(0,c.Z)((0,c.Z)({type:o},e),{},{formItemProps:(E=e.getFormItemProps)===null||E===void 0?void 0:E.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e)}))}:void 0}),s=function(){return r.createElement(gn.Z,(0,J.Z)({},u,{ignoreFormItem:!0}))},v=(e==null?void 0:e.renderFormItem)?function(g,S){var f,h,E,b=(0,Un.Z)((0,c.Z)((0,c.Z)({},S),{},{onChange:void 0}));return e==null||(f=e.renderFormItem)===null||f===void 0?void 0:f.call(e,(0,c.Z)((0,c.Z)({type:o},e),{},{formItemProps:(h=e.getFormItemProps)===null||h===void 0?void 0:h.call(e),fieldProps:(E=e.getFieldProps)===null||E===void 0?void 0:E.call(e),originProps:i}),(0,c.Z)((0,c.Z)({},b),{},{defaultRender:s,type:o}),l.current)}:void 0;if(e==null?void 0:e.renderFormItem){var C=v==null?void 0:v(null,{});if(!C||e.ignoreFormItem)return C}return r.createElement(gn.Z,(0,J.Z)({},u,{key:"".concat(e.key,"-").concat(e.index),renderFormItem:v}))},wa=d(59962),Na=function(e,a){var n=a.genItems;if(e.valueType==="formList"&&e.dataIndex){var l;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(wa.u,(0,J.Z)({key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e)),n(e.columns))}return!0},Ia=d(61768),Da=function(e,a){var n=a.genItems;if(e.valueType==="formSet"&&e.dataIndex){var l,o;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(Ia.Z,(0,J.Z)({},(l=e.getFormItemProps)===null||l===void 0?void 0:l.call(e),{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(o=e.getFieldProps)===null||o===void 0?void 0:o.call(e)),n(e.columns))}return!0},La=Gn.A.Group,Ka=function(e,a){var n=a.genItems;if(e.valueType==="group"){var l;return!e.columns||!Array.isArray(e.columns)?null:r.createElement(La,(0,J.Z)({key:e.key,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(l=e.getFieldProps)===null||l===void 0?void 0:l.call(e)),n(e.columns))}return!0},Aa=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},Xn=[Aa,Ka,Na,Da,Ra,Ta],Oa=function(e,a){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{},o=(0,r.useRef)(),i=(0,r.useRef)(null),u=(0,r.useRef)(),s=(0,r.useRef)(),v=(0,r.useRef)(),C=(0,r.useState)(""),g=(0,O.Z)(C,2),S=g[0],f=g[1],h=(0,r.useRef)([]),E=(0,nt.Z)(function(){return l.size||l.defaultSize||"middle"},{value:l.size,onChange:l.onSizeChange}),b=(0,O.Z)(E,2),P=b[0],K=b[1],T=(0,r.useMemo)(function(){var x,m={};return(x=l.columns)===null||x===void 0||x.forEach(function(R,w){var p=R.key,y=R.dataIndex,Z=R.fixed,L=R.disable,N=Ht(p!=null?p:y,w);N&&(m[N]={show:!0,fixed:Z,disable:L})}),m},[l.columns]),D=(0,nt.Z)(function(){var x,m,R=l.columnsState||{},w=R.persistenceType,p=R.persistenceKey;if(p&&w&&typeof window!="undefined"){var y=window[w];try{var Z=y==null?void 0:y.getItem(p);if(Z)return JSON.parse(Z)}catch(L){console.warn(L)}}return l.columnsStateMap||((x=l.columnsState)===null||x===void 0?void 0:x.value)||((m=l.columnsState)===null||m===void 0?void 0:m.defaultValue)||T},{value:((t=l.columnsState)===null||t===void 0?void 0:t.value)||l.columnsStateMap,onChange:((e=l.columnsState)===null||e===void 0?void 0:e.onChange)||l.onColumnsStateChange}),k=(0,O.Z)(D,2),F=k[0],I=k[1];(0,Ge.ET)(!l.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Ge.ET)(!l.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var B=(0,r.useCallback)(function(){var x=l.columnsState||{},m=x.persistenceType,R=x.persistenceKey;if(!(!R||!m||typeof window=="undefined")){var w=window[m];try{w==null||w.removeItem(R)}catch(p){console.error(p)}}},[l.columnsState]);(0,r.useEffect)(function(){var x,m;if(!(!((x=l.columnsState)===null||x===void 0?void 0:x.persistenceKey)||!((m=l.columnsState)===null||m===void 0?void 0:m.persistenceType))&&typeof window!="undefined"){var R=l.columnsState,w=R.persistenceType,p=R.persistenceKey,y=window[w];try{y==null||y.setItem(p,JSON.stringify(F))}catch(Z){console.error(Z)}}},[(a=l.columnsState)===null||a===void 0?void 0:a.persistenceKey,F,(n=l.columnsState)===null||n===void 0?void 0:n.persistenceType]);var M={action:o.current,setAction:function(m){o.current=m},sortKeyColumns:h.current,setSortKeyColumns:function(m){h.current=m},propsRef:s,columnsMap:F,keyWords:S,setKeyWords:function(m){return f(m)},setTableSize:K,tableSize:P,prefixName:u.current,setPrefixName:function(m){u.current=m},setEditorTableForm:function(m){v.current=m},editableForm:v.current,setColumnsMap:I,columns:l.columns,rootDomRef:i,clearPersistenceStorage:B};return Object.defineProperty(M,"prefixName",{get:function(){return u.current}}),Object.defineProperty(M,"sortKeyColumns",{get:function(){return h.current}}),Object.defineProperty(M,"action",{get:function(){return o.current}}),Object.defineProperty(M,"editableForm",{get:function(){return v.current}}),M}var el=(0,_a.f)(qa),Dt=el,qo=d(20136),tr=d(55241),ei=d(63185),tl=d(9676),ti=d(32157),nl=d(82363),rl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},al=rl,nr=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:al}))};nr.displayName="VerticalAlignTopOutlined";var ll=r.forwardRef(nr),ol={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},il=ol,rr=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:il}))};rr.displayName="VerticalAlignMiddleOutlined";var ul=r.forwardRef(rr),sl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-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.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},dl=sl,ar=function(e,a){return r.createElement(It.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:a,icon:dl}))};ar.displayName="VerticalAlignBottomOutlined";var cl=r.forwardRef(ar),Jt=d(29111),ni=d(16089),vl=["key","dataIndex","children"],Nn=function(e){var a=e.title,n=e.show,l=e.children,o=e.columnKey,i=e.fixed,u=Dt.useContainer(),s=u.columnsMap,v=u.setColumnsMap;return n?r.createElement(ue.Z,{title:a},r.createElement("span",{onClick:function(g){g.stopPropagation(),g.preventDefault();var S=s[o]||{},f=typeof S.disable=="boolean"&&S.disable;if(!f){var h=(0,c.Z)((0,c.Z)({},s),{},(0,ee.Z)({},o,(0,c.Z)((0,c.Z)({},S),{},{fixed:i})));v(h)}}},l)):null},fl=function(e){var a=e.columnKey,n=e.isLeaf,l=e.title,o=e.className,i=e.fixed,u=(0,_e.YB)(),s=r.createElement("span",{className:"".concat(o,"-list-item-option")},r.createElement(Nn,{columnKey:a,fixed:"left",title:u.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:i!=="left"},r.createElement(ll,null)),r.createElement(Nn,{columnKey:a,fixed:void 0,title:u.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!i},r.createElement(ul,null)),r.createElement(Nn,{columnKey:a,fixed:"right",title:u.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:i!=="right"},r.createElement(cl,null)));return r.createElement("span",{className:"".concat(o,"-list-item"),key:a},r.createElement("div",{className:"".concat(o,"-list-item-title")},l),n?null:s)},In=function(e){var a,n,l=e.list,o=e.draggable,i=e.checkable,u=e.className,s=e.showTitle,v=s===void 0?!0:s,C=e.title,g=Dt.useContainer(),S=g.columnsMap,f=g.setColumnsMap,h=g.sortKeyColumns,E=g.setSortKeyColumns,b=l&&l.length>0,P=(0,r.useMemo)(function(){if(!b)return{};var k=[],F=function I(B,M){return B.map(function(x){var m,R=x.key,w=x.dataIndex,p=x.children,y=(0,de.Z)(x,vl),Z=Ht(R,y.index),L=S[Z||"null"]||{show:!0};L.show!==!1&&(M==null?void 0:M.show)!==!1&&!p&&k.push(Z);var N=(0,c.Z)((0,c.Z)({key:Z},(0,ve.Z)(y,["className"])),{},{selectable:!1,disabled:L.disable===!0,disableCheckbox:typeof L.disable=="boolean"?L.disable:(m=L.disable)===null||m===void 0?void 0:m.checkbox,isLeaf:M?!0:void 0});return p&&(N.children=I(p,L)),N})};return{list:F(l),keys:k}},[S,l,b]),K=(0,xe.J)(function(k,F,I){var B=(0,c.Z)({},S),M=(0,Re.Z)(h),x=M.findIndex(function(p){return p===k}),m=M.findIndex(function(p){return p===F}),R=I>m;if(!(x<0)){var w=M[x];M.splice(x,1),I===0?M.unshift(w):M.splice(R?m:m+1,0,w),M.forEach(function(p,y){B[p]=(0,c.Z)((0,c.Z)({},B[p]||{}),{},{order:y})}),f(B),E(M)}}),T=(0,xe.J)(function(k){var F=k.node.key,I=(0,c.Z)({},S[F]);I.show=k.checked,f((0,c.Z)((0,c.Z)({},S),{},(0,ee.Z)({},F,I)))});if(!b)return null;var D=r.createElement(nl.Z,{itemHeight:24,draggable:o&&!!((a=P.list)===null||a===void 0?void 0:a.length)&&((n=P.list)===null||n===void 0?void 0:n.length)>1,checkable:i,onDrop:function(F){var I=F.node.key,B=F.dragNode.key,M=F.dropPosition,x=F.dropToGap,m=M===-1||!x?M+1:M;K(B,I,m)},blockNode:!0,onCheck:function(F,I){return T(I)},checkedKeys:P.keys,showLine:!1,titleRender:function(F){var I=(0,c.Z)((0,c.Z)({},F),{},{children:void 0});return r.createElement(fl,(0,J.Z)({className:u},I,{title:(0,Jt.h)(I.title,I),columnKey:I.key}))},height:280,treeData:P.list});return r.createElement(r.Fragment,null,v&&r.createElement("span",{className:"".concat(u,"-list-title")},C),D)},ml=function(e){var a=e.localColumns,n=e.className,l=e.draggable,o=e.checkable,i=[],u=[],s=[],v=(0,_e.YB)();a.forEach(function(S){if(!S.hideInSetting){var f=S.fixed;if(f==="left"){u.push(S);return}if(f==="right"){i.push(S);return}s.push(S)}});var C=i&&i.length>0,g=u&&u.length>0;return r.createElement("div",{className:be()("".concat(n,"-list"),(0,ee.Z)({},"".concat(n,"-list-group"),C||g))},r.createElement(In,{title:v.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:u,draggable:l,checkable:o,className:n}),r.createElement(In,{list:s,draggable:l,checkable:o,title:v.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:g||C,className:n}),r.createElement(In,{title:v.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:i,draggable:l,checkable:o,className:n}))};function gl(t){var e,a,n=(0,r.useRef)({}),l=Dt.useContainer(),o=t.columns,i=t.checkedReset,u=i===void 0?!0:i,s=l.columnsMap,v=l.setColumnsMap,C=l.clearPersistenceStorage;(0,r.useEffect)(function(){var D,k;if((D=l.propsRef.current)===null||D===void 0||(k=D.columnsState)===null||k===void 0?void 0:k.value){var F,I;n.current=JSON.parse(JSON.stringify(((F=l.propsRef.current)===null||F===void 0||(I=F.columnsState)===null||I===void 0?void 0:I.value)||{}))}},[]);var g=(0,xe.J)(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,k={},F=function I(B){B.forEach(function(M){var x=M.key,m=M.fixed,R=M.index,w=M.children,p=Ht(x,R);p&&(k[p]={show:D,fixed:m}),w&&I(w)})};F(o),v(k)}),S=(0,xe.J)(function(D){D.target.checked?g():g(!1)}),f=(0,xe.J)(function(){C==null||C(),v(n.current)}),h=Object.values(s).filter(function(D){return!D||D.show===!1}),E=h.length>0&&h.length!==o.length,b=(0,_e.YB)(),P=(0,r.useContext)(re.ZP.ConfigContext),K=P.getPrefixCls,T=K("pro-table-column-setting");return r.createElement(tr.Z,{arrowPointAtCenter:!0,title:r.createElement("div",{className:"".concat(T,"-title")},r.createElement(tl.Z,{indeterminate:E,checked:h.length===0&&h.length!==o.length,onChange:function(k){return S(k)}},b.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")),u?r.createElement("a",{onClick:f,className:"".concat(T,"-action-rest-button")},b.getMessage("tableToolBar.reset","\u91CD\u7F6E")):null,(t==null?void 0:t.extra)?r.createElement(yt.Z,{size:12,align:"center"},t.extra):null),overlayClassName:"".concat(T,"-overlay"),trigger:"click",placement:"bottomRight",content:r.createElement(ml,{checkable:(e=t.checkable)!==null&&e!==void 0?e:!0,draggable:(a=t.draggable)!==null&&a!==void 0?a:!0,className:T,localColumns:o})},t.children||r.createElement(ue.Z,{title:b.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E")},r.createElement(er.Z,null)))}var hl=gl,ri=d(47673),yl=d(4107),pl=d(38069),ai=d(59250),lr=d(13013),li=d(30887),or=d(28682),oi=d(36003),bl=["label","key"],Sl=function(e){var a=e.items,n=a===void 0?[]:a,l=e.type,o=l===void 0?"inline":l,i=e.prefixCls,u=e.activeKey,s=(0,nt.Z)(u,{value:u,onChange:e.onChange}),v=(0,O.Z)(s,2),C=v[0],g=v[1];if(n.length<1)return null;var S=n.find(function(f){return f.key===C})||n[0];return o==="inline"?r.createElement("div",{className:be()("".concat(i,"-menu"),"".concat(i,"-inline-menu"))},n.map(function(f,h){return r.createElement("div",{key:f.key||h,onClick:function(){g(f.key)},className:be()("".concat(i,"-inline-menu-item"),S.key===f.key?"".concat(i,"-inline-menu-item-active"):void 0)},f.label)})):o==="tab"?r.createElement(Ie.Z,{activeKey:S.key,onTabClick:function(h){return g(h)}},n.map(function(f,h){var E=f.label,b=f.key,P=(0,de.Z)(f,bl);return r.createElement(Ie.Z.TabPane,(0,J.Z)({tab:E,key:b||h},P))})):r.createElement("div",{className:be()("".concat(i,"-menu"),"".concat(i,"-dropdownmenu"))},r.createElement(lr.Z,{trigger:["click"],overlay:r.createElement(or.Z,{selectedKeys:[S.key],onClick:function(h){g(h.key)},items:n.map(function(f,h){return{key:f.key||h,disabled:f.disabled,label:f.label}})})},r.createElement(yt.Z,{className:"".concat(i,"-dropdownmenu-label")},S.label,r.createElement(Rn.Z,null))))},Cl=Sl;function El(t){if(r.isValidElement(t))return t;if(t){var e=t,a=e.icon,n=e.tooltip,l=e.onClick,o=e.key;return a&&n?r.createElement(ue.Z,{title:n},r.createElement("span",{key:o,onClick:function(){l&&l(o)}},a)):a}return null}var Pl=function(e){var a=e.prefixCls,n=e.tabs,l=n===void 0?{}:n,o=e.multipleLine,i=e.filtersNode;return o?r.createElement("div",{className:"".concat(a,"-extra-line")},l.items&&l.items.length?r.createElement(Ie.Z,{activeKey:l.activeKey,onChange:l.onChange,tabBarExtraContent:i},l.items.map(function(u,s){return r.createElement(Ie.Z.TabPane,(0,J.Z)({key:u.key||s},u))})):i):null},Zl=function(e){var a=e.prefixCls,n=e.title,l=e.subTitle,o=e.tooltip,i=e.className,u=e.style,s=e.search,v=e.onSearch,C=e.multipleLine,g=C===void 0?!1:C,S=e.filter,f=e.actions,h=f===void 0?[]:f,E=e.settings,b=E===void 0?[]:E,P=e.tabs,K=P===void 0?{}:P,T=e.menu,D=(0,_e.YB)(),k=(0,pl.ZP)(),F=k==="sm"||k==="xs",I=D.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),B=(0,r.useMemo)(function(){return s?r.isValidElement(s)?s:r.createElement(yl.Z.Search,(0,J.Z)({style:{width:200},placeholder:I},s,{onSearch:function(){for(var z,W=arguments.length,G=new Array(W),H=0;HSe||fe!==void 0&&b&&b.length<=Se&&V.run(!1)},[M==null?void 0:M.current]),(0,r.useEffect)(function(){!N||V.run(!1)},[M==null?void 0:M.pageSize]),Zn(function(){return V.run(!1),u||(S.current=!1),function(){V.cancel()}},[].concat((0,Re.Z)(W),[u])),{dataSource:b,setDataSource:P,loading:D,reload:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(){return(0,U.Z)().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,V.run(!1);case 2:case"end":return pe.stop()}},Se)}));function fe(){return q.apply(this,arguments)}return fe}(),pageInfo:M,pollingLoading:p,reset:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(){var ie,pe,Fe,Me,Be,dt,ct,je;return(0,U.Z)().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:ie=n||{},pe=ie.pageInfo,Fe=pe||{},Me=Fe.defaultCurrent,Be=Me===void 0?1:Me,dt=Fe.defaultPageSize,ct=dt===void 0?20:dt,je={current:Be,total:0,pageSize:ct},m(je);case 4:case"end":return Je.stop()}},Se)}));function fe(){return q.apply(this,arguments)}return fe}(),setPageInfo:function(){var q=(0,te.Z)((0,U.Z)().mark(function Se(ie){return(0,U.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:m((0,c.Z)((0,c.Z)({},M),ie));case 1:case"end":return Fe.stop()}},Se)}));function fe(Se){return q.apply(this,arguments)}return fe}()}},Ql=Yl,Xl=function(e){return function(a,n){var l,o,i=a.fixed,u=a.index,s=n.fixed,v=n.index;if(i==="left"&&s!=="left"||s==="right"&&i!=="right")return-2;if(s==="left"&&i!=="left"||i==="right"&&s!=="right")return 2;var C=a.key||"".concat(u),g=n.key||"".concat(v);if(((l=e[C])===null||l===void 0?void 0:l.order)||((o=e[g])===null||o===void 0?void 0:o.order)){var S,f;return(((S=e[C])===null||S===void 0?void 0:S.order)||0)-(((f=e[g])===null||f===void 0?void 0:f.order)||0)}return(a.index||0)-(n.index||0)}},si=d(29405),di=d(71578),_l=null,ql=null,hn=function(e){return no(e)==="map"?e:new Map(Object.entries(e||{}))},eo=function t(e,a){if(Array.isArray(e))return React.createElement(_Space,{split:",",size:2},e.map(function(s){return t(s,a)}));var n=hn(a);if(!n.has(e)&&!n.has("".concat(e)))return(e==null?void 0:e.label)||e;var l=n.get(e)||n.get("".concat(e));if(!l)return(e==null?void 0:e.label)||e;var o=l.status,i=l.color,u=TableStatus[o||"Init"];return u?React.createElement(u,null,l.text):i?React.createElement(ProFieldBadgeColor,{color:i},l.text):l.text||l},to=function(e){for(var a=e.label,n=e.words,l=useContext(_ConfigProvider.ConfigContext),o=l.getPrefixCls,i=o("pro-select-item-option-content-light"),u=o("pro-select-item-option-content"),s=new RegExp(n.map(function(h){return h.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),v=a,C=[];v.length;){var g=s.exec(v);if(!g){C.push(v);break}var S=g.index,f=g[0].length+S;C.push(v.slice(0,S),React.createElement("span",{className:i},v.slice(S,f))),v=v.slice(f)}return React.createElement.apply(React,["div",{className:u}].concat(C))};function no(t){var e=Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();return e==="string"&&(0,me.Z)(t)==="object"?"object":t===null?"null":t===void 0?"undefined":e}function Ln(t,e){var a,n;if(!e||(t==null||(a=t.label)===null||a===void 0?void 0:a.toString().toLowerCase().includes(e.toLowerCase()))||(t==null||(n=t.value)===null||n===void 0?void 0:n.toString().toLowerCase().includes(e.toLowerCase())))return!0;if(t.optionType==="optGroup"&&(t.children||t.options)){var l=[].concat(_toConsumableArray(t.children||[]),[t.options||[]]).find(function(o){return Ln(o,e)});if(l)return!0}return!1}var cr=function(e){var a=[],n=hn(e);return n.forEach(function(l,o){var i=n.get(o)||n.get("".concat(o));if(!!i){if((0,me.Z)(i)==="object"&&(i==null?void 0:i.text)){a.push({text:i==null?void 0:i.text,value:o,label:i==null?void 0:i.text,disabled:i.disabled});return}a.push({text:i,value:o})}}),a},ro=function(e){var a,n,l,o,i,u=e.cacheForSwr,s=useState(e.defaultKeyWords),v=_slicedToArray(s,2),C=v[0],g=v[1],S=useState(function(){return e.proFieldKey?e.proFieldKey.toString():e.request?nanoid():"no-fetch"}),f=_slicedToArray(S,1),h=f[0],E=useRef(h),b=useCallback(function(m){return cr(hn(m)).map(function(R){var w=R.value,p=R.text,y=_objectWithoutProperties(R,_l);return _objectSpread({label:p,value:w,key:w},y)})},[]),P=useMountMergeState(function(){return e.valueEnum?b(e.valueEnum):[]},{value:(a=e.fieldProps)===null||a===void 0?void 0:a.options}),K=_slicedToArray(P,2),T=K[0],D=K[1];useDeepCompareEffect(function(){var m;!e.valueEnum||((m=e.fieldProps)===null||m===void 0?void 0:m.options)||D(b(e.valueEnum))},[e.valueEnum]);var k=useDebounceValue([E.current,e.params,C],(n=(l=e.debounceTime)!==null&&l!==void 0?l:e==null||(o=e.fieldProps)===null||o===void 0?void 0:o.debounceTime)!==null&&n!==void 0?n:0,[e.params,C]),F=useSWR(function(){return e.request?k:null},function(m,R,w){return e.request(_objectSpread(_objectSpread({},R),{},{keyWords:w}),e)},{revalidateIfStale:!u,revalidateOnReconnect:u,shouldRetryOnError:!1,revalidateOnFocus:!1}),I=F.data,B=F.mutate,M=F.isValidating,x=useMemo(function(){var m,R,w=T==null?void 0:T.map(function(p){if(typeof p=="string")return{label:p,value:p};if((p==null?void 0:p.optionType)==="optGroup"&&(p.children||p.options)){var y=[].concat(_toConsumableArray(p.children||[]),_toConsumableArray(p.options||[])).filter(function(Z){return Ln(Z,C)});return _objectSpread(_objectSpread({},p),{},{children:y,options:y})}return p});return((m=e.fieldProps)===null||m===void 0?void 0:m.filterOption)===!0||((R=e.fieldProps)===null||R===void 0?void 0:R.filterOption)===void 0?w==null?void 0:w.filter(function(p){return p?C?Ln(p,C):!0:!1}):w},[T,C,(i=e.fieldProps)===null||i===void 0?void 0:i.filterOption]);return[M,e.request?I:x,function(m){g(m)},function(){g(void 0),B([],!1)}]},ci=function(e,a){var n=e.mode,l=e.valueEnum,o=e.render,i=e.renderFormItem,u=e.request,s=e.fieldProps,v=e.plain,C=e.children,g=e.light,S=e.proFieldKey,f=e.params,h=e.label,E=e.bordered,b=e.id,P=e.lightLabel,K=e.labelTrigger,T=_objectWithoutProperties(e,ql),D=useRef(),k=useIntl(),F=useRef(""),I=s.fieldNames;useEffect(function(){F.current=s==null?void 0:s.searchValue},[s==null?void 0:s.searchValue]);var B=ro(e),M=_slicedToArray(B,4),x=M[0],m=M[1],R=M[2],w=M[3],p=useContext(_ConfigProvider.SizeContext);useImperativeHandle(a,function(){return _objectSpread(_objectSpread({},D.current||{}),{},{fetchData:function(){return R()}})});var y=useMemo(function(){if(n==="read"){var A=I||{},j=A.label,z=j===void 0?"label":j,W=A.value,G=W===void 0?"value":W,H=A.options,V=H===void 0?"options":H,q=new Map,fe=function Se(ie){if(!(ie==null?void 0:ie.length))return q;for(var pe=ie.length,Fe=0;Feie.length?(ie.push(V),ie):(ie.splice((i==null?void 0:i.current)*(i==null?void 0:i.pageSize)-1,0,V),ie)}return[].concat((0,Re.Z)(n.dataSource),[V])},p=function(){return(0,c.Z)((0,c.Z)({},M),{},{size:s,rowSelection:u===!1?void 0:u,className:a,style:C,columns:m.map(function(W){return W.isExtraColumns?W.extraColumn:W}),loading:n.loading,dataSource:I.newLineRecord?w(n.dataSource):n.dataSource,pagination:i,onChange:function(G,H,V,q){var fe;if((fe=M.onChange)===null||fe===void 0||fe.call(M,G,H,V,q),R||K(kt(H)),Array.isArray(V)){var Se=V.reduce(function(Me,Be){return(0,c.Z)((0,c.Z)({},Me),{},(0,ee.Z)({},"".concat(Be.field),Be.order))},{});P(kt(Se))}else{var ie,pe=(ie=V.column)===null||ie===void 0?void 0:ie.sorter,Fe=(pe==null?void 0:pe.toString())===pe;P(kt((0,ee.Z)({},"".concat(Fe?pe:V.field),V.order))||{})}}})},y=r.createElement(Ke.Z,(0,J.Z)({},p(),{rowKey:e})),Z=t.tableViewRender?t.tableViewRender((0,c.Z)((0,c.Z)({},p()),{},{rowSelection:u!==!1?u:void 0}),y):y;(0,r.useMemo)(function(){t.name&&t.editable&&x.setEditorTableForm(t.editable.form)},[x,t.editable,t.name]);var L=(0,r.useMemo)(function(){if(t.editable&&!t.name){var z,W;return r.createElement(r.Fragment,null,g,E,r.createElement(En.ZP,(0,J.Z)({onInit:function(H,V){x.setEditorTableForm(V)},formRef:function(H){x.setEditorTableForm(H)}},(z=t.editable)===null||z===void 0?void 0:z.formProps,{component:!1,form:(W=t.editable)===null||W===void 0?void 0:W.form,onValuesChange:I.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:t.dateFormatter,contentRender:function(H){if(x.editableForm)return H;if(t.loading!==!1){var V=t.loading===!0?{}:t.loading;return r.createElement("div",{style:{paddingTop:100,textAlign:"center"}},r.createElement(oe.Z,(0,J.Z)({size:"large"},V)))}}}),Z))}return r.createElement(r.Fragment,null,g,E,x.editableForm||!t.editable?Z:null)},[E,t.loading,!!t.editable,Z,g]),N=h===!1||!!t.name?L:r.createElement(Cn,(0,J.Z)({ghost:t.ghost,bordered:Vn("table",F),bodyStyle:g?{paddingTop:0}:{padding:0}},h),L),A=function(){return t.tableRender?t.tableRender(t,N,{toolbar:g||void 0,alert:E||void 0,table:Z||void 0}):N},j=r.createElement("div",{className:be()(k,(0,ee.Z)({},"".concat(k,"-polling"),n.pollingLoading)),style:f,ref:x.rootDomRef},D?null:S,o!=="form"&&t.tableExtraRender&&r.createElement("div",{className:"".concat(k,"-extra")},t.tableExtraRender(t,n.dataSource||[])),o!=="form"&&A());return!T||!(T==null?void 0:T.fullScreen)?j:r.createElement(re.ZP,{getPopupContainer:function(){return x.rootDomRef.current||document.body}},j)}var Ko={},Ao=function(e){var a,n,l=e.cardBordered,o=e.request,i=e.className,u=e.params,s=u===void 0?Ko:u,v=e.defaultData,C=e.headerTitle,g=e.postData,S=e.ghost,f=e.pagination,h=e.actionRef,E=e.columns,b=E===void 0?[]:E,P=e.toolBarRender,K=e.onLoad,T=e.onRequestError,D=e.style,k=e.cardProps,F=e.tableStyle,I=e.tableClassName,B=e.columnsStateMap,M=e.onColumnsStateChange,x=e.options,m=e.search,R=e.name,w=e.onLoadingChange,p=e.rowSelection,y=p===void 0?!1:p,Z=e.beforeSearchSubmit,L=e.tableAlertRender,N=e.defaultClassName,A=e.formRef,j=e.type,z=j===void 0?"table":j,W=e.columnEmptyText,G=W===void 0?"-":W,H=e.toolbar,V=e.rowKey,q=e.manualRequest,fe=e.polling,Se=e.tooltip,ie=(0,de.Z)(e,Do),pe=be()(N,i),Fe=(0,r.useRef)(),Me=(0,r.useRef)(),Be=A||Me;(0,r.useImperativeHandle)(h,function(){return Fe.current});var dt=gt(y?y==null?void 0:y.defaultSelectedRowKeys:void 0,{value:y?y.selectedRowKeys:void 0}),ct=(0,O.Z)(dt,2),je=ct[0],Et=ct[1],Je=(0,r.useRef)([]),Lt=(0,r.useCallback)(function(X,_){Et(X),(!y||!(y==null?void 0:y.selectedRowKeys))&&(Je.current=_)},[Et]),ot=gt(function(){if(!(q||m!==!1))return{}}),en=(0,O.Z)(ot,2),Q=en[0],Kt=en[1],yn=gt({}),Pt=(0,O.Z)(yn,2),pt=Pt[0],$t=Pt[1],tn=gt({}),pn=(0,O.Z)(tn,2),nn=pn[0],rn=pn[1];(0,r.useEffect)(function(){var X=$r(b),_=X.sort,ge=X.filter;$t(ge),rn(_)},[]);var bn=(0,_e.YB)(),Sn=(0,me.Z)(f)==="object"?f:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Te=Dt.useContainer(),He=(0,r.useMemo)(function(){if(!!o)return function(){var X=(0,te.Z)((0,U.Z)().mark(function _(ge){var Pe,et;return(0,U.Z)().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return Pe=(0,c.Z)((0,c.Z)((0,c.Z)({},ge||{}),Q),s),delete Pe._timestamp,ft.next=4,o(Pe,nn,pt);case 4:return et=ft.sent,ft.abrupt("return",et);case 6:case"end":return ft.stop()}},_)}));return function(_){return X.apply(this,arguments)}}()},[Q,s,pt,nn,o]),se=Ql(He,v,{pageInfo:f===!1?!1:Sn,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:K,onLoadingChange:w,onRequestError:T,postData:g,revalidateOnFocus:(a=e.revalidateOnFocus)!==null&&a!==void 0?a:!1,manual:Q===void 0,polling:fe,effects:[(0,vn.P)(s),(0,vn.P)(Q),(0,vn.P)(pt),(0,vn.P)(nn)],debounceTime:e.debounceTime,onPageInfoChange:function(_){var ge,Pe;z==="list"||!f||!He||(f==null||(ge=f.onChange)===null||ge===void 0||ge.call(f,_.current,_.pageSize),f==null||(Pe=f.onShowSizeChange)===null||Pe===void 0||Pe.call(f,_.current,_.pageSize))}});(0,r.useEffect)(function(){var X;if(!(e.manualRequest||!e.request||e.revalidateOnFocus===!1||((X=e.form)===null||X===void 0?void 0:X.ignoreRules))){var _=function(){document.visibilityState==="visible"&&se.reload()};return document.addEventListener("visibilitychange",_),function(){return document.removeEventListener("visibilitychange",_)}}},[]);var Ne=r.useRef(new Map),Ye=r.useMemo(function(){return typeof V=="function"?V:function(X,_){var ge;return _===-1?X==null?void 0:X[V]:e.name?_==null?void 0:_.toString():(ge=X==null?void 0:X[V])!==null&&ge!==void 0?ge:_==null?void 0:_.toString()}},[e.name,V]);(0,r.useMemo)(function(){var X;if((X=se.dataSource)===null||X===void 0?void 0:X.length){var _=new Map,ge=se.dataSource.map(function(Pe){var et=Ye(Pe,-1);return _.set(et,Pe),et});return Ne.current=_,ge}return[]},[se.dataSource,Ye]),(0,r.useEffect)(function(){Je.current=je==null?void 0:je.map(function(X){var _;return(_=Ne.current)===null||_===void 0?void 0:_.get(X)})},[je]);var rt=(0,r.useMemo)(function(){var X=f===!1?!1:(0,c.Z)({},f),_=(0,c.Z)((0,c.Z)({},se.pageInfo),{},{setPageInfo:function(Pe){var et=Pe.pageSize,bt=Pe.current,ft=se.pageInfo;if(et===ft.pageSize||ft.current===1){se.setPageInfo({pageSize:et,current:bt});return}o&&se.setDataSource([]),se.setPageInfo({pageSize:et,current:z==="list"?bt:1})}});return o&&X&&(delete X.onChange,delete X.onShowSizeChange),Ar(X,_,bn)},[f,se,bn]);Zn(function(){var X;e.request&&s&&se.dataSource&&(se==null||(X=se.pageInfo)===null||X===void 0?void 0:X.current)!==1&&se.setPageInfo({current:1})},[s]),Te.setPrefixName(e.name);var vt=(0,r.useCallback)(function(){y&&y.onChange&&y.onChange([],[],{type:"all"}),Lt([],[])},[y,Lt]);Te.setAction(Fe.current),Te.propsRef.current=e;var qe=Tr((0,c.Z)((0,c.Z)({},e.editable),{},{tableName:e.name,getRowKey:Ye,childrenColumnName:(n=e.expandable)===null||n===void 0?void 0:n.childrenColumnName,dataSource:se.dataSource||[],setDataSource:function(_){var ge,Pe;(ge=e.editable)===null||ge===void 0||(Pe=ge.onValuesChange)===null||Pe===void 0||Pe.call(ge,void 0,_),se.setDataSource(_)}}));Or(Fe,se,{fullScreen:function(){var _;if(!(!((_=Te.rootDomRef)===null||_===void 0?void 0:_.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var ge;(ge=Te.rootDomRef)===null||ge===void 0||ge.current.requestFullscreen()}},onCleanSelected:function(){vt()},resetAll:function(){var _;vt(),$t({}),rn({}),Te.setKeyWords(void 0),se.setPageInfo({current:1}),Be==null||(_=Be.current)===null||_===void 0||_.resetFields(),Kt({})},editableUtils:qe}),h&&(h.current=Fe.current);var it=(0,r.useMemo)(function(){var X;return gr({columns:b,counter:Te,columnEmptyText:G,type:z,editableUtils:qe,rowKey:V,childrenColumnName:(X=e.expandable)===null||X===void 0?void 0:X.childrenColumnName}).sort(Xl(Te.columnsMap))},[b,Te==null?void 0:Te.sortKeyColumns,Te==null?void 0:Te.columnsMap,G,z,qe.editableKeys&&qe.editableKeys.join(",")]);ln(function(){if(it&&it.length>0){var X=it.map(function(_){return Ht(_.key,_.index)});Te.setSortKeyColumns(X)}},[it],["render","renderFormItem"],100),Zn(function(){var X=se.pageInfo,_=f||{},ge=_.current,Pe=ge===void 0?X==null?void 0:X.current:ge,et=_.pageSize,bt=et===void 0?X==null?void 0:X.pageSize:et;f&&(Pe||bt)&&(bt!==(X==null?void 0:X.pageSize)||Pe!==(X==null?void 0:X.current))&&se.setPageInfo({pageSize:bt||X.pageSize,current:Pe||X.current})},[f&&f.pageSize,f&&f.current]);var An=(0,c.Z)((0,c.Z)({selectedRowKeys:je},y),{},{onChange:function(_,ge,Pe){y&&y.onChange&&y.onChange(_,ge,Pe),Lt(_,ge)}}),On=m!==!1&&(m==null?void 0:m.filterType)==="light",Bo=function(_){if(x&&x.search){var ge,Pe,et=x.search===!0?{}:x.search,bt=et.name,ft=bt===void 0?"keyword":bt,$o=(ge=x.search)===null||ge===void 0||(Pe=ge.onSearch)===null||Pe===void 0?void 0:Pe.call(ge,Te.keyWords);if($o!==!1){Kt((0,c.Z)((0,c.Z)({},_),{},(0,ee.Z)({},ft,Te.keyWords)));return}}Kt(_)},yr=m===!1&&z!=="form"?null:r.createElement(Ja,{pagination:rt,beforeSearchSubmit:Z,action:Fe,columns:b,onFormSearchSubmit:function(_){Bo(_)},ghost:S,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!se.loading,manualRequest:q,search:m,form:e.form,formRef:Be,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter}),zo=P===!1?null:r.createElement(Gl,{headerTitle:C,hideToolbar:x===!1&&!C&&!P&&!H&&!On,selectedRows:Je.current,selectedRowKeys:je,tableColumn:it,tooltip:Se,toolbar:H,onFormSearchSubmit:function(_){Kt((0,c.Z)((0,c.Z)({},Q),_))},searchNode:On?yr:null,options:x,actionRef:Fe,toolBarRender:P}),ko=y!==!1?r.createElement(Kr,{selectedRowKeys:je,selectedRows:Je.current,onCleanSelected:vt,alertOptionRender:ie.tableAlertOptionRender,alertInfoRender:L,alwaysShowAlert:y==null?void 0:y.alwaysShowAlert}):null;return r.createElement(Lo,(0,J.Z)({},e,{name:R,size:Te.tableSize,onSizeChange:Te.setTableSize,pagination:rt,searchNode:yr,rowSelection:y!==!1?An:void 0,className:pe,tableColumn:it,isLightFilter:On,action:se,alertDom:ko,toolbarDom:zo,onSortChange:rn,onFilterChange:$t,editableUtils:qe,getRowKey:Ye}))},hr=function(e){var a=(0,r.useContext)(re.ZP.ConfigContext),n=a.getPrefixCls,l=e.ErrorBoundary===!1?r.Fragment:e.ErrorBoundary||Nr;return r.createElement(Dt.Provider,{initialState:e},r.createElement(_e.oK,null,r.createElement(l,null,r.createElement(Ao,(0,J.Z)({defaultClassName:n("pro-table")},e)))))};hr.Summary=Ke.Z.Summary;var Oo=hr},80392:function(mt,Le,d){"use strict";d.d(Le,{oK:function(){return Xt},YB:function(){return zn}});var U=d(84305),te=d(75901),me=d(28991),O=d(11965),ne=d(84378),re=d(67294),ze=d(29405),oe={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},ce={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},Ke={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},J={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},ee={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},Re={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},c={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},de={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},r={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},Xe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},Ie={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},Y={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},le={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},$={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},ae={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},Ce={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},ye={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},ue={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},we={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},ke={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},be={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},$e={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Zt={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function tt(st,Ve,Oe){var Qe=Ve.replace(/\[(\d+)\]/g,".$1").split("."),Ge=st,xe=Oe,lt=(0,O.Z)(Qe),wt;try{for(lt.s();!(wt=lt.n()).done;){var zt=wt.value;if(xe=Object(Ge)[zt],Ge=Object(Ge)[zt],xe===void 0)return Oe}}catch(Ct){lt.e(Ct)}finally{lt.f()}return xe}var ve=function(Ve,Oe){return{getMessage:function(Ge,xe){return tt(Oe,Ge,xe)||xe},locale:Ve}},nt=ve("mn_MN",$),Vt=ve("ar_EG",oe),ut=ve("zh_CN",$e),St=ve("en_US",ee),jt=ve("en_GB",J),Ue=ve("vi_VN",be),Ut=ve("it_IT",Ie),Ae=ve("ja_JP",Y),xt=ve("es_ES",Re),At=ve("ca_ES",ce),Ze=ve("ru_RU",ue),at=ve("sr_RS",we),De=ve("ms_MY",ae),he=ve("zh_TW",Zt),Ee=ve("fr_FR",de),We=ve("pt_BR",ye),Wt=ve("ko_KR",le),Ot=ve("id_ID",Xe),Ft=ve("de_DE",Ke),Tt=ve("fa_IR",c),Rt=ve("tr_TR",ke),Yt=ve("pl_PL",Ce),Gt=ve("hr_",r),Mt={"mn-MN":nt,"ar-EG":Vt,"zh-CN":ut,"en-US":St,"en-GB":jt,"vi-VN":Ue,"it-IT":Ut,"ja-JP":Ae,"es-ES":xt,"ca-ES":At,"ru-RU":Ze,"sr-RS":at,"ms-MY":De,"zh-TW":he,"fr-FR":Ee,"pt-BR":We,"ko-KR":Wt,"id-ID":Ot,"de-DE":Ft,"fa-IR":Tt,"tr-TR":Rt,"pl-PL":Yt,"hr-HR":Gt},Bt=Object.keys(Mt),Qt=re.createContext({intl:(0,me.Z)((0,me.Z)({},ut),{},{locale:"default"}),valueTypeMap:{}}),Cn=Qt.Consumer,En=Qt.Provider,_e=function(Ve){if(!Ve)return"zh-CN";var Oe=Ve.toLocaleLowerCase();return Bt.find(function(Qe){var Ge=Qe.toLocaleLowerCase();return Ge.includes(Oe)})},Bn=function(){var Ve=(0,ze.kY)(),Oe=Ve.cache;return(0,re.useEffect)(function(){return function(){Oe.clear()}},[]),null},Xt=function(Ve){var Oe=Ve.children,Qe=Ve.autoClearCache,Ge=Qe===void 0?!1:Qe,xe=(0,re.useContext)(te.ZP.ConfigContext),lt=xe.locale,wt=lt===void 0?te.ZP:re.Fragment,zt=re.createElement(Cn,null,function(Ct){var Nt,an=lt==null?void 0:lt.locale,_t=_e(an),Pn=an&&((Nt=Ct.intl)===null||Nt===void 0?void 0:Nt.locale)==="default"?Mt[_t]:Ct.intl||Mt[_t],ln=lt===void 0?{locale:ne.Z}:{};return re.createElement(wt,ln,re.createElement(En,{value:(0,me.Z)((0,me.Z)({},Ct),{},{intl:Pn||ut})},re.createElement(re.Fragment,null,Ge&&re.createElement(Bn,null),Oe)))});return Ge?re.createElement(ze.J$,{value:{provider:function(){return new Map}}},zt):zt};function zn(){var st=(0,re.useContext)(te.ZP.ConfigContext),Ve=st.locale,Oe=(0,re.useContext)(Qt),Qe=Oe.intl;return Qe&&Qe.locale!=="default"?Qe:(Ve==null?void 0:Ve.locale)?Mt[_e(Ve.locale)]:ut}var kn=null,$n=null},19912:function(mt,Le,d){"use strict";var U=d(67294),te=function(O){var ne=(0,U.useRef)();return(0,U.useEffect)(function(){ne.current=O}),ne.current};Le.Z=te},70460:function(mt,Le,d){"use strict";d.d(Le,{J:function(){return te}});var U=d(67294),te=function(O){var ne=(0,U.useRef)(null);return ne.current=O,(0,U.useCallback)(function(){for(var re,ze=arguments.length,oe=new Array(ze),ce=0;ce1?me-1:0),ne=1;ne");return oe}return{Provider:re,useContainer:ze}}function me(O){return O.useContainer()}},38069:function(mt,Le,d){"use strict";d.d(Le,{ZP:function(){return Ie}});var U=d(67294);function te(Y,le){return ze(Y)||re(Y,le)||O(Y,le)||me()}function me(){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 O(Y,le){if(!!Y){if(typeof Y=="string")return ne(Y,le);var $=Object.prototype.toString.call(Y).slice(8,-1);if($==="Object"&&Y.constructor&&($=Y.constructor.name),$==="Map"||$==="Set")return Array.from(Y);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return ne(Y,le)}}function ne(Y,le){(le==null||le>Y.length)&&(le=Y.length);for(var $=0,ae=new Array(le);$Y.length)&&(le=Y.length);for(var $=0,ae=new Array(le);$ *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(n,"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(t={position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},(0,v.Z)(t,"a:not(".concat(u,`-btn), + > .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(t,".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),t),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}),n))};function ln(r){return(0,Ce.Xj)("ProCardActions",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r),cardActionIconSize:16});return[Pe(t)]})}var i=c(11527),ue=function(e){var t=e.actions,n=e.prefixCls,a=ln(n),u=a.wrapSSR,s=a.hashId;return Array.isArray(t)&&t!==null&&t!==void 0&&t.length?u((0,i.jsx)("ul",{className:he()("".concat(n,"-actions"),s),children:t.map(function(o,f){return(0,i.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:he()("".concat(n,"-actions-item"),s),children:o},"action-".concat(f))})})):u((0,i.jsx)("ul",{className:he()("".concat(n,"-actions"),s),children:t}))},nn=ue,tn=c(23870),q=c(82099),on=c(60076),$e=new on.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Fn=function(e){var t;return(0,v.Z)({},e.componentCls,(t={"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},(0,v.Z)(t,"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),(0,v.Z)(t,"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:$e,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}),t))};function jn(r){return(0,Ce.Xj)("ProCardLoading",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Fn(t)]})}var Zn=function(e){var t=e.style,n=e.prefix,a=jn(n||"ant-pro-card"),u=a.wrapSSR;return u((0,i.jsxs)("div",{className:"".concat(n,"-loading-content"),style:t,children:[(0,i.jsx)(tn.Z,{gutter:8,children:(0,i.jsx)(q.Z,{span:22,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:8,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:15,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:6,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:18,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:13,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:9,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:4,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:3,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:16,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]})]}))},Ue=Zn,Ve=c(63945),Kn=c(13763),Nn=c(12868),Jn=c(14224),_n=["tab","children"],Yn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function x(r){return r.filter(function(e){return e})}function ce(r,e,t){if(r)return r.map(function(a){return(0,l.Z)((0,l.Z)({},a),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:a.children}))})});(0,Nn.ET)(!t,"Tabs.TabPane is deprecated. Please use `items` directly.");var n=(0,Kn.Z)(e).map(function(a){if(d.isValidElement(a)){var u=a.key,s=a.props,o=s||{},f=o.tab,g=o.children,C=(0,H.Z)(o,_n),S=(0,l.Z)((0,l.Z)({key:String(u)},C),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:g})),label:f});return S}return null});return x(n)}var Oe=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls;if(Ve.Z.startsWith("5"))return(0,i.jsx)(i.Fragment,{});var a=e.key,u=e.tab,s=e.tabKey,o=e.disabled,f=e.destroyInactiveTabPane,g=e.children,C=e.className,S=e.style,h=e.cardProps,P=(0,H.Z)(e,Yn),p=n("pro-card-tabpane"),E=he()(p,C);return(0,i.jsx)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({tabKey:s,tab:u,className:E,style:S,disabled:o,destroyInactiveTabPane:f},P),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},h),{},{children:g}))}),a)},ie=Oe,Je=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},Ye=function(e){var t,n,a,u,s,o=e.componentCls;return s={},(0,v.Z)(s,o,(0,l.Z)((0,l.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius},Ce.Wf===null||Ce.Wf===void 0?void 0:(0,Ce.Wf)(e)),{},(n={"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":(0,v.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(o,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":(0,l.Z)((0,l.Z)({},Je(e)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,l.Z)({},Je(e)),"&&-ghost":(0,v.Z)({backgroundColor:"transparent"},"> ".concat(o),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},(0,v.Z)(n,"".concat(o,"-body-direction-column"),{flexDirection:"column"}),(0,v.Z)(n,"".concat(o,"-body-wrap"),{flexWrap:"wrap"}),(0,v.Z)(n,"&&-collapse",(0,v.Z)({},"> ".concat(o),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),(0,v.Z)(n,"".concat(o,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),(0,v.Z)(n,"".concat(o,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),(0,v.Z)(n,"".concat(o,"-extra"),{color:e.colorText}),(0,v.Z)(n,"".concat(o,"-type-inner"),(0,v.Z)({},"".concat(o,"-header"),{backgroundColor:e.colorFillAlter})),(0,v.Z)(n,"".concat(o,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),(0,v.Z)(n,"".concat(o,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),(0,v.Z)(n,"&&-size-small",(t={},(0,v.Z)(t,o,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),(0,v.Z)(t,"".concat(o,"-header").concat(o,"-header-collapsible"),{paddingBlock:e.paddingXS}),t)),n))),(0,v.Z)(s,"".concat(o,"-col"),(a={},(0,v.Z)(a,"&".concat(o,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),(0,v.Z)(a,"&".concat(o,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),a)),(0,v.Z)(s,"".concat(o,"-tabs"),(u={},(0,v.Z)(u,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),u)),s},Ke=24,Be=function(e,t){var n=t.componentCls;return e===0?(0,v.Z)({},"".concat(n,"-col-0"),{display:"none"}):(0,v.Z)({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/Ke*100,"%")})},vn=function(e){return Array(Ke+1).fill(1).map(function(t,n){return Be(n,e)})};function Qe(r){return(0,Ce.Xj)("ProCard",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ye(t),vn(t)]})}var bn=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],Pn=d.forwardRef(function(r,e){var t,n,a,u=r.className,s=r.style,o=r.bodyStyle,f=r.headStyle,g=r.title,C=r.subTitle,S=r.extra,h=r.tip,P=r.wrap,p=P===void 0?!1:P,E=r.layout,b=r.loading,y=r.gutter,R=y===void 0?0:y,$=r.tooltip,B=r.split,se=r.headerBordered,Q=se===void 0?!1:se,M=r.bordered,z=M===void 0?!1:M,L=r.boxShadow,w=L===void 0?!1:L,I=r.children,Z=r.size,O=r.actions,T=r.ghost,m=T===void 0?!1:T,F=r.hoverable,j=F===void 0?!1:F,W=r.direction,ne=r.collapsed,pe=r.collapsible,V=pe===void 0?!1:pe,oe=r.collapsibleIconRender,xe=r.defaultCollapsed,me=xe===void 0?!1:xe,k=r.onCollapse,U=r.checked,K=r.onChecked,G=r.tabs,de=r.type,Te=(0,H.Z)(r,bn),Ne=(0,d.useContext)(rn.ZP.ConfigContext),en=Ne.getPrefixCls,ke=Tn.ZP.useBreakpoint()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Ae=(0,Xe.Z)(me,{value:ne,onChange:k}),yn=(0,re.Z)(Ae,2),Rn=yn[0],un=yn[1],Ze=["xxl","xl","lg","md","sm","xs"],te=ce(G==null?void 0:G.items,I,G),be=function(ye){var xn=[0,0],Dn=Array.isArray(ye)?ye:[ye,0];return Dn.forEach(function(zn,kn){if((0,_e.Z)(zn)==="object")for(var $n=0;$n=0&&$n<=24),Dn)),ar=Bn((0,i.jsx)("div",{style:(0,l.Z)((0,l.Z)((0,l.Z)({},ur),Re(fr>0,{paddingInlineEnd:fr/2,paddingInlineStart:fr/2})),Re(tr>0,{paddingBlockStart:tr/2,paddingBlockEnd:tr/2})),className:Ar,children:d.cloneElement(Mn)}));return d.cloneElement(ar,{key:"pro-card-col-".concat((Mn==null?void 0:Mn.key)||ye)})}return Mn}),mr=he()("".concat(D),u,An,(t={},(0,v.Z)(t,"".concat(D,"-border"),z),(0,v.Z)(t,"".concat(D,"-box-shadow"),w),(0,v.Z)(t,"".concat(D,"-contain-card"),sr),(0,v.Z)(t,"".concat(D,"-loading"),b),(0,v.Z)(t,"".concat(D,"-split"),B==="vertical"||B==="horizontal"),(0,v.Z)(t,"".concat(D,"-ghost"),m),(0,v.Z)(t,"".concat(D,"-hoverable"),j),(0,v.Z)(t,"".concat(D,"-size-").concat(Z),Z),(0,v.Z)(t,"".concat(D,"-type-").concat(de),de),(0,v.Z)(t,"".concat(D,"-collapse"),Rn),(0,v.Z)(t,"".concat(D,"-checked"),U),t)),gr=he()("".concat(D,"-body"),An,(n={},(0,v.Z)(n,"".concat(D,"-body-center"),E==="center"),(0,v.Z)(n,"".concat(D,"-body-direction-column"),B==="horizontal"||W==="column"),(0,v.Z)(n,"".concat(D,"-body-wrap"),p&&sr),n)),Rr=o,Pr=d.isValidElement(b)?b:(0,i.jsx)(Ue,{prefix:D,style:(o==null?void 0:o.padding)===0||(o==null?void 0:o.padding)==="0px"?{padding:24}:void 0}),dn=V&&ne===void 0&&(oe?oe({collapsed:Rn}):(0,i.jsx)(He.Z,{rotate:Rn?void 0:90,className:"".concat(D,"-collapsible-icon ").concat(An).trim()}));return Bn((0,i.jsxs)("div",(0,l.Z)((0,l.Z)({className:mr,style:s,ref:e,onClick:function(ye){var xn;K==null||K(ye),Te==null||(xn=Te.onClick)===null||xn===void 0||xn.call(Te,ye)}},(0,Ge.Z)(Te,["prefixCls","colSpan"])),{},{children:[(g||S||dn)&&(0,i.jsxs)("div",{className:he()("".concat(D,"-header"),An,(a={},(0,v.Z)(a,"".concat(D,"-header-border"),Q||de==="inner"),(0,v.Z)(a,"".concat(D,"-header-collapsible"),dn),a)),style:f,onClick:function(){dn&&un(!Rn)},children:[(0,i.jsxs)("div",{className:"".concat(D,"-title ").concat(An).trim(),children:[dn,(0,i.jsx)(sn.G,{label:g,tooltip:$||h,subTitle:C})]}),S&&(0,i.jsx)("div",{className:"".concat(D,"-extra ").concat(An).trim(),onClick:function(ye){return ye.stopPropagation()},children:S})]}),G?(0,i.jsx)("div",{className:"".concat(D,"-tabs ").concat(An).trim(),children:(0,i.jsx)(Le.Z,(0,l.Z)((0,l.Z)({onChange:G.onChange},G),{},{items:te,children:b?Pr:I}))}):(0,i.jsx)("div",{className:gr,style:Rr,children:b?Pr:xr}),O?(0,i.jsx)(nn,{actions:O,prefixCls:D}):null]})))}),fn=Pn,gn=function(e){var t=e.componentCls;return(0,v.Z)({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};function an(r){return(0,Ce.Xj)("ProCardDivider",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[gn(t)]})}var ve=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls,a=n("pro-card"),u="".concat(a,"-divider"),s=an(a),o=s.wrapSSR,f=s.hashId,g=e.className,C=e.style,S=C===void 0?{}:C,h=e.type,P=he()(u,g,f,(0,v.Z)({},"".concat(u,"-").concat(h),h));return o((0,i.jsx)("div",{className:P,style:S}))},Ee=ve,A=function(e){return(0,i.jsx)(fn,(0,l.Z)({bodyStyle:{padding:0}},e))},ee=fn;ee.isProCard=!0,ee.Divider=Ee,ee.TabPane=ie,ee.Group=A;var fe=ee,Se=fe,Ie=c(21510),Sn=c(91805),Fe=c(17122),In=c(44139),Ln=c(16168),Gn=c(75565),pn=c(11979),lr=c(27542),Xn=c(31796),$r=function(e){return e!=null};function Er(r,e,t){var n,a;if(r===!1)return!1;var u=e.total,s=e.current,o=e.pageSize,f=e.setPageInfo,g=(0,_e.Z)(r)==="object"?r:{};return(0,l.Z)((0,l.Z)({showTotal:function(S,h){return"".concat(t.getMessage("pagination.total.range","\u7B2C")," ").concat(h[0],"-").concat(h[1]," ").concat(t.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(S," ").concat(t.getMessage("pagination.total.item","\u6761"))},total:u},g),{},{current:r!==!0&&r&&(n=r.current)!==null&&n!==void 0?n:s,pageSize:r!==!0&&r&&(a=r.pageSize)!==null&&a!==void 0?a:o,onChange:function(S,h){var P=r,p=P.onChange;p==null||p(S,h||20),(h!==o||s!==S)&&f({pageSize:h,current:S})}})}function Tr(r,e,t){var n=(0,l.Z)((0,l.Z)({},t.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(o){return(0,J.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!o){g.next=3;break}return g.next=3,e.setPageInfo({current:1});case 3:return g.next=5,e==null?void 0:e.reload();case 5:case"end":return g.stop()}},s)}));function u(s){return a.apply(this,arguments)}return u}(),reloadAndRest:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(){return(0,J.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return t.onCleanSelected(),f.next=3,e.setPageInfo({current:1});case 3:return f.next=5,e==null?void 0:e.reload();case 5:case"end":return f.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),reset:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(){var o;return(0,J.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,t.resetAll();case 2:return g.next=4,e==null||(o=e.reset)===null||o===void 0?void 0:o.call(e);case 4:return g.next=6,e==null?void 0:e.reload();case 6:case"end":return g.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),fullScreen:function(){return t.fullScreen()},clearSelected:function(){return t.onCleanSelected()},setPageInfo:function(u){return e.setPageInfo(u)}});r.current=n}function Ir(r,e){return e.filter(function(t){return t}).length<1?r:e.reduce(function(t,n){return n(t)},r)}var pr=function(e,t){return t===void 0?!1:typeof t=="boolean"?t:t[e]},De=function(e){var t;return e&&(0,_e.Z)(e)==="object"&&(e==null||(t=e.props)===null||t===void 0?void 0:t.colSpan)},N=function(e,t){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(t)};function le(r){return Array.isArray(r)?r.join(","):r==null?void 0:r.toString()}function ge(r){var e={},t={};return r.forEach(function(n){var a=le(n.dataIndex);if(a){if(n.filters){var u=n.defaultFilteredValue;u===void 0?e[a]=null:e[a]=n.defaultFilteredValue}n.sorter&&n.defaultSortOrder&&(t[a]=n.defaultSortOrder)}}),{sort:t,filter:e}}function ae(){var r,e,t,n,a,u,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=(0,d.useRef)(),f=(0,d.useRef)(null),g=(0,d.useRef)(),C=(0,d.useRef)(),S=(0,d.useState)(""),h=(0,re.Z)(S,2),P=h[0],p=h[1],E=(0,d.useRef)([]),b=(0,Xe.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),y=(0,re.Z)(b,2),R=y[0],$=y[1],B=(0,d.useMemo)(function(){var I,Z;if(s!=null&&(I=s.columnsState)!==null&&I!==void 0&&I.defaultValue)return s.columnsState.defaultValue;var O={};return(Z=s.columns)===null||Z===void 0||Z.forEach(function(T,m){var F=T.key,j=T.dataIndex,W=T.fixed,ne=T.disable,pe=N(F!=null?F:j,m);pe&&(O[pe]={show:!0,fixed:W,disable:ne})}),O},[s.columns]),se=(0,Xe.Z)(function(){var I,Z,O=s.columnsState||{},T=O.persistenceType,m=O.persistenceKey;if(m&&T&&typeof window!="undefined"){var F=window[T];try{var j=F==null?void 0:F.getItem(m);if(j)return JSON.parse(j)}catch(W){console.warn(W)}}return s.columnsStateMap||((I=s.columnsState)===null||I===void 0?void 0:I.value)||((Z=s.columnsState)===null||Z===void 0?void 0:Z.defaultValue)||B},{value:((r=s.columnsState)===null||r===void 0?void 0:r.value)||s.columnsStateMap,onChange:((e=s.columnsState)===null||e===void 0?void 0:e.onChange)||s.onColumnsStateChange}),Q=(0,re.Z)(se,2),M=Q[0],z=Q[1];(0,d.useEffect)(function(){var I=s.columnsState||{},Z=I.persistenceType,O=I.persistenceKey;if(O&&Z&&typeof window!="undefined"){var T=window[Z];try{var m=T==null?void 0:T.getItem(O);z(m?JSON.parse(m):B)}catch(F){console.warn(F)}}},[(t=s.columnsState)===null||t===void 0?void 0:t.persistenceKey,(n=s.columnsState)===null||n===void 0?void 0:n.persistenceType,B]),(0,Nn.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Nn.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var L=(0,d.useCallback)(function(){var I=s.columnsState||{},Z=I.persistenceType,O=I.persistenceKey;if(!(!O||!Z||typeof window=="undefined")){var T=window[Z];try{T==null||T.removeItem(O)}catch(m){console.warn(m)}}},[s.columnsState]);(0,d.useEffect)(function(){var I,Z;if(!(!((I=s.columnsState)!==null&&I!==void 0&&I.persistenceKey)||!((Z=s.columnsState)!==null&&Z!==void 0&&Z.persistenceType))&&typeof window!="undefined"){var O=s.columnsState,T=O.persistenceType,m=O.persistenceKey,F=window[T];try{F==null||F.setItem(m,JSON.stringify(M))}catch(j){console.warn(j),L()}}},[(a=s.columnsState)===null||a===void 0?void 0:a.persistenceKey,M,(u=s.columnsState)===null||u===void 0?void 0:u.persistenceType]);var w={action:o.current,setAction:function(Z){o.current=Z},sortKeyColumns:E.current,setSortKeyColumns:function(Z){E.current=Z},propsRef:C,columnsMap:M,keyWords:P,setKeyWords:function(Z){return p(Z)},setTableSize:$,tableSize:R,prefixName:g.current,setPrefixName:function(Z){g.current=Z},setColumnsMap:z,columns:s.columns,rootDomRef:f,clearPersistenceStorage:L,defaultColumnKeyMap:B};return Object.defineProperty(w,"prefixName",{get:function(){return g.current}}),Object.defineProperty(w,"sortKeyColumns",{get:function(){return E.current}}),Object.defineProperty(w,"action",{get:function(){return o.current}}),w}var je=(0,d.createContext)({}),qe=function(e){var t=ae(e.initValue);return(0,i.jsx)(je.Provider,{value:t,children:e.children})},Me=c(75200),We=function(e){return(0,v.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,Ce.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function we(r){return(0,Ce.Xj)("ProTableAlert",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[We(t)]})}var En=function(e){var t=e.intl,n=e.onCleanSelected;return[(0,i.jsx)("a",{onClick:n,children:t.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function mn(r){var e=r.selectedRowKeys,t=e===void 0?[]:e,n=r.onCleanSelected,a=r.alwaysShowAlert,u=r.selectedRows,s=r.alertInfoRender,o=s===void 0?function($){var B=$.intl;return(0,i.jsxs)(Me.Z,{children:[B.getMessage("alert.selected","\u5DF2\u9009\u62E9"),t.length,B.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:s,f=r.alertOptionRender,g=f===void 0?En:f,C=(0,Fe.YB)(),S=g&&g({onCleanSelected:n,selectedRowKeys:t,selectedRows:u,intl:C}),h=(0,d.useContext)(rn.ZP.ConfigContext),P=h.getPrefixCls,p=P("pro-table-alert"),E=we(p),b=E.wrapSSR,y=E.hashId;if(o===!1)return null;var R=o({intl:C,selectedRowKeys:t,selectedRows:u,onCleanSelected:n});return R===!1||t.length<1&&!a?null:b((0,i.jsx)("div",{className:"".concat(p," ").concat(y).trim(),children:(0,i.jsx)("div",{className:"".concat(p,"-container ").concat(y).trim(),children:(0,i.jsxs)("div",{className:"".concat(p,"-info ").concat(y).trim(),children:[(0,i.jsx)("div",{className:"".concat(p,"-info-content ").concat(y).trim(),children:R}),S?(0,i.jsx)("div",{className:"".concat(p,"-info-option ").concat(y).trim(),children:S}):null]})})}))}var yr=mn,Mr=c(77254),Wn=c(47920),Qn=c(95325),Wr=c(44906),Ur=c(41399),Vr=c(4978);function ft(){var r=(0,d.useState)(!0),e=(0,re.Z)(r,2),t=e[1],n=(0,d.useCallback)(function(){return t(function(a){return!a})},[]);return n}function mt(r,e){var t=(0,d.useMemo)(function(){var n={current:e};return new Proxy(n,{set:function(u,s,o){return Object.is(u[s],o)||(u[s]=o,r(t)),!0}})},[]);return t}function ht(r){var e=ft(),t=mt(e,r);return t}var _r=c(18941),qn=c(13165),er=c(44559),kr=c(66607),Cr=c(67190),Hr=c(87322),gt=c(19465),pt=c(72266),yt=c.n(pt),wr=c(10422),Fr=c(1704),Ct=function(e){return(0,v.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function Zt(r){return(0,Ce.Xj)("DrawerForm",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ct(t)]})}var bt=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function St(r){var e,t,n,a=r.children,u=r.trigger,s=r.onVisibleChange,o=r.drawerProps,f=r.onFinish,g=r.submitTimeout,C=r.title,S=r.width,h=r.resize,P=r.onOpenChange,p=r.visible,E=r.open,b=(0,H.Z)(r,bt);(0,Nn.ET)(!b.footer||!(o!=null&&o.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var y=d.useMemo(function(){var Ze,te,be,Re={onResize:function(){},maxWidth:window.innerWidth*.8,minWidth:300};return typeof h=="boolean"?h?Re:{}:(0,Ln.Y)({onResize:(Ze=h==null?void 0:h.onResize)!==null&&Ze!==void 0?Ze:Re.onResize,maxWidth:(te=h==null?void 0:h.maxWidth)!==null&&te!==void 0?te:Re.maxWidth,minWidth:(be=h==null?void 0:h.minWidth)!==null&&be!==void 0?be:Re.minWidth})},[h]),R=(0,d.useContext)(rn.ZP.ConfigContext),$=R.getPrefixCls("pro-form-drawer"),B=Zt($),se=B.wrapSSR,Q=B.hashId,M=function(te){return"".concat($,"-").concat(te," ").concat(Q)},z=(0,d.useState)([]),L=(0,re.Z)(z,2),w=L[1],I=(0,d.useState)(!1),Z=(0,re.Z)(I,2),O=Z[0],T=Z[1],m=(0,d.useState)(!1),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=(0,d.useState)(S||(h?y==null?void 0:y.minWidth:800)),pe=(0,re.Z)(ne,2),V=pe[0],oe=pe[1],xe=(0,Xe.Z)(!!p,{value:E||p,onChange:P||s}),me=(0,re.Z)(xe,2),k=me[0],U=me[1],K=(0,d.useRef)(null),G=(0,d.useCallback)(function(Ze){K.current===null&&Ze&&w([]),K.current=Ze},[]),de=(0,d.useRef)(),Te=(0,d.useCallback)(function(){var Ze,te,be,Re=(Ze=(te=(be=b.formRef)===null||be===void 0?void 0:be.current)!==null&&te!==void 0?te:b.form)!==null&&Ze!==void 0?Ze:de.current;Re&&o!==null&&o!==void 0&&o.destroyOnClose&&Re.resetFields()},[o==null?void 0:o.destroyOnClose,b.form,b.formRef]);(0,d.useEffect)(function(){k&&(E||p)&&(P==null||P(!0),s==null||s(!0)),j&&oe(y==null?void 0:y.minWidth)},[p,k,j]),(0,d.useImperativeHandle)(b.formRef,function(){return de.current},[de.current]);var Ne=(0,d.useMemo)(function(){return u?d.cloneElement(u,(0,l.Z)((0,l.Z)({key:"trigger"},u.props),{},{onClick:function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function be(Re){var hn,D;return(0,J.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:U(!k),W(!Object.keys(y)),(hn=u.props)===null||hn===void 0||(D=hn.onClick)===null||D===void 0||D.call(hn,Re);case 3:case"end":return Bn.stop()}},be)}));function te(be){return Ze.apply(this,arguments)}return te}()})):null},[U,u,k,W,j]),en=(0,d.useMemo)(function(){var Ze,te,be,Re;return b.submitter===!1?!1:yt()({searchConfig:{submitText:(Ze=(te=R.locale)===null||te===void 0||(te=te.Modal)===null||te===void 0?void 0:te.okText)!==null&&Ze!==void 0?Ze:"\u786E\u8BA4",resetText:(be=(Re=R.locale)===null||Re===void 0||(Re=Re.Modal)===null||Re===void 0?void 0:Re.cancelText)!==null&&be!==void 0?be:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:g?O:void 0,onClick:function(D){var Un;U(!1),o==null||(Un=o.onClose)===null||Un===void 0||Un.call(o,D)}}},b.submitter)},[b.submitter,(e=R.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText,(t=R.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,g,O,U,o]),ke=(0,d.useCallback)(function(Ze,te){return(0,i.jsxs)(i.Fragment,{children:[Ze,K.current&&te?(0,i.jsx)(d.Fragment,{children:(0,wr.createPortal)(te,K.current)},"submitter"):te]})},[]),Ae=(0,qn.J)(function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function te(be){var Re,hn,D;return(0,J.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Re=f==null?void 0:f(be),g&&Re instanceof Promise&&(T(!0),hn=setTimeout(function(){return T(!1)},g),Re.finally(function(){clearTimeout(hn),T(!1)})),Bn.next=4,Re;case 4:return D=Bn.sent,D&&U(!1),Bn.abrupt("return",D);case 7:case"end":return Bn.stop()}},te)}));return function(te){return Ze.apply(this,arguments)}}()),yn=(0,Hr.X)(k,s),Rn=(0,d.useCallback)(function(Ze){var te,be,Re=(document.body.offsetWidth||1e3)-(Ze.clientX-document.body.offsetLeft),hn=(te=y==null?void 0:y.minWidth)!==null&&te!==void 0?te:S||800,D=(be=y==null?void 0:y.maxWidth)!==null&&be!==void 0?be:window.innerWidth*.8;if(ReD){oe(D);return}oe(Re)},[y==null?void 0:y.maxWidth,y==null?void 0:y.minWidth,S]),un=(0,d.useCallback)(function(){document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",un)},[Rn]);return se((0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(gt.Z,(0,l.Z)((0,l.Z)((0,l.Z)({title:C,width:V},o),yn),{},{afterOpenChange:function(te){var be;te||Te(),o==null||(be=o.afterOpenChange)===null||be===void 0||be.call(o,te)},onClose:function(te){var be;g&&O||(U(!1),o==null||(be=o.onClose)===null||be===void 0||be.call(o,te))},footer:b.submitter!==!1&&(0,i.jsx)("div",{ref:G,style:{display:"flex",justifyContent:"flex-end"}}),children:[(0,i.jsx)("div",{className:h?he()(M("sidebar-dragger"),Q,(n={},(0,v.Z)(n,M("sidebar-dragger-min-disabled"),V===(y==null?void 0:y.minWidth)),(0,v.Z)(n,M("sidebar-dragger-max-disabled"),V===(y==null?void 0:y.maxWidth)),n)):null,onMouseDown:function(te){var be;y==null||(be=y.onResize)===null||be===void 0||be.call(y),te.stopPropagation(),te.preventDefault(),document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",un),W(!0)}}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:de,onInit:function(te,be){var Re;b.formRef&&(b.formRef.current=be),b==null||(Re=b.onInit)===null||Re===void 0||Re.call(b,te,be),de.current=be},submitter:en,onFinish:function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function te(be){var Re;return(0,J.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,Ae(be);case 2:return Re=D.sent,D.abrupt("return",Re);case 4:case"end":return D.stop()}},te)}));return function(te){return Ze.apply(this,arguments)}}(),contentRender:ke,children:a}))})]})),Ne]}))}var dr=c(38126),xt={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"},Rt=xt,cr=c(38782),Pt=function(e,t){return d.createElement(cr.Z,(0,dr.Z)({},e,{ref:t,icon:Rt}))},Et=d.forwardRef(Pt),Tt=c(22532),It=c(56829),Mt=function(e){return(0,v.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,v.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,v.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function wt(r){return(0,Ce.Xj)("LightFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Mt(t)]})}var Ft=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],jt=function(e){var t=e.items,n=e.prefixCls,a=e.size,u=a===void 0?"middle":a,s=e.collapse,o=e.collapseLabel,f=e.onValuesChange,g=e.bordered,C=e.values,S=e.footerRender,h=e.placement,P=(0,Fe.YB)(),p="".concat(n,"-light-filter"),E=wt(p),b=E.wrapSSR,y=E.hashId,R=(0,d.useState)(!1),$=(0,re.Z)(R,2),B=$[0],se=$[1],Q=(0,d.useState)(function(){return(0,l.Z)({},C)}),M=(0,re.Z)(Q,2),z=M[0],L=M[1];(0,d.useEffect)(function(){L((0,l.Z)({},C))},[C]);var w=(0,d.useMemo)(function(){var T=[],m=[];return t.forEach(function(F){var j=F.props||{},W=j.secondary;W||s?T.push(F):m.push(F)}),{collapseItems:T,outsideItems:m}},[e.items]),I=w.collapseItems,Z=w.outsideItems,O=function(){return o||(s?(0,i.jsx)(Et,{className:"".concat(p,"-collapse-icon ").concat(y).trim()}):(0,i.jsx)(Tt.Q,{size:u,label:P.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009")}))};return b((0,i.jsx)("div",{className:he()(p,y,"".concat(p,"-").concat(u),(0,v.Z)({},"".concat(p,"-effective"),Object.keys(C).some(function(T){return Array.isArray(C[T])?C[T].length>0:C[T]}))),children:(0,i.jsxs)("div",{className:"".concat(p,"-container ").concat(y).trim(),children:[Z.map(function(T,m){var F=T.key,j=T.props.fieldProps,W=j!=null&&j.placement?j==null?void 0:j.placement:h;return(0,i.jsx)("div",{className:"".concat(p,"-item ").concat(y).trim(),children:d.cloneElement(T,{fieldProps:(0,l.Z)((0,l.Z)({},T.props.fieldProps),{},{placement:W}),proFieldProps:(0,l.Z)((0,l.Z)({},T.props.proFieldProps),{},{light:!0,label:T.props.label,bordered:g}),bordered:g})},F||m)}),I.length?(0,i.jsx)("div",{className:"".concat(p,"-item ").concat(y).trim(),children:(0,i.jsx)(It.M,{padding:24,open:B,onOpenChange:function(m){se(m)},placement:h,label:O(),footerRender:S,footer:{onConfirm:function(){f((0,l.Z)({},z)),se(!1)},onClear:function(){var m={};I.forEach(function(F){var j=F.props.name;m[j]=void 0}),f(m)}},children:I.map(function(T){var m=T.key,F=T.props,j=F.name,W=F.fieldProps,ne=(0,l.Z)((0,l.Z)({},W),{},{onChange:function(oe){return L((0,l.Z)((0,l.Z)({},z),{},(0,v.Z)({},j,oe!=null&&oe.target?oe.target.value:oe))),!1}});z.hasOwnProperty(j)&&(ne[T.props.valuePropName||"value"]=z[j]);var pe=W!=null&&W.placement?W==null?void 0:W.placement:h;return(0,i.jsx)("div",{className:"".concat(p,"-line ").concat(y).trim(),children:d.cloneElement(T,{fieldProps:(0,l.Z)((0,l.Z)({},ne),{},{placement:pe})})},m)})})},"more"):null]})}))};function Lt(r){var e=r.size,t=r.collapse,n=r.collapseLabel,a=r.initialValues,u=r.onValuesChange,s=r.form,o=r.placement,f=r.formRef,g=r.bordered,C=r.ignoreRules,S=r.footerRender,h=(0,H.Z)(r,Ft),P=(0,d.useContext)(rn.ZP.ConfigContext),p=P.getPrefixCls,E=p("pro-form"),b=(0,d.useState)(function(){return(0,l.Z)({},a)}),y=(0,re.Z)(b,2),R=y[0],$=y[1],B=(0,d.useRef)();return(0,d.useImperativeHandle)(f,function(){return B.current},[B.current]),(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({size:e,initialValues:a,form:s,contentRender:function(Q){return(0,i.jsx)(jt,{prefixCls:E,items:Q==null?void 0:Q.flatMap(function(M){return(M==null?void 0:M.type.displayName)==="ProForm-Group"?M.props.children:M}),size:e,bordered:g,collapse:t,collapseLabel:n,placement:o,values:R||{},footerRender:S,onValuesChange:function(z){var L,w,I=(0,l.Z)((0,l.Z)({},R),z);$(I),(L=B.current)===null||L===void 0||L.setFieldsValue(I),(w=B.current)===null||w===void 0||w.submit(),u&&u(z,I)}})},formRef:B,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Ge.Z)(h,["labelWidth"])),{},{onValuesChange:function(Q,M){var z;$(M),u==null||u(Q,M),(z=B.current)===null||z===void 0||z.submit()}}))}var Ot=c(76022),Zr=c(43997),Gr=c(87440),Xr=c(12682),jr=c(85824),Jr=function(e){if(e&&e!==!0)return e},Bt=function(e,t,n,a){return e?(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.collapsed","\u5C55\u5F00"),a&&"(".concat(a,")"),(0,i.jsx)(jr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.expand","\u6536\u8D77"),(0,i.jsx)(jr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Dt=function(e){var t=e.setCollapsed,n=e.collapsed,a=n===void 0?!1:n,u=e.submitter,s=e.style,o=e.hiddenNum,f=(0,d.useContext)(rn.ZP.ConfigContext),g=f.getPrefixCls,C=(0,Fe.YB)(),S=(0,d.useContext)(Fe.L_),h=S.hashId,P=Jr(e.collapseRender)||Bt;return(0,i.jsxs)(Me.Z,{style:s,size:16,children:[u,e.collapseRender!==!1&&(0,i.jsx)("a",{className:"".concat(g("pro-query-filter-collapse-button")," ").concat(h).trim(),onClick:function(){return t(!a)},children:P==null?void 0:P(a,e,C,o)})]})},Nt=Dt,Kt=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={"&&":{padding:24}},(0,v.Z)(n,"".concat(e.antCls,"-form-item"),{marginBlock:0}),(0,v.Z)(n,"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),(0,v.Z)(n,"&-row",{rowGap:24,"&-split":(t={},(0,v.Z)(t,"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),(0,v.Z)(t,"&:last-child",{marginBlockEnd:12}),t),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),(0,v.Z)(n,"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}),n))};function At(r){return(0,Ce.Xj)("QueryFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Kt(t)]})}var zt=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],vr,$t={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},Yr={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Wt=function(e,t,n){if(n&&typeof n=="number")return{span:n,layout:e};var a=n?["xs","sm","md","lg","xl","xxl"].map(function(s){return[$t[s],24/n[s],"horizontal"]}):Yr[e||"default"],u=(a||Yr.default).find(function(s){return tB-1)&&!!oe&&L>=24;w+=1;var Ne=d.isValidElement(V)&&(V.key||"".concat((U=V.props)===null||U===void 0?void 0:U.name))||oe;return d.isValidElement(V)&&Te?e.preserve?{itemDom:d.cloneElement(V,{hidden:!0,key:Ne||oe}),hidden:!0,colSpan:G}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:V,colSpan:G,hidden:!1}}),m=T.map(function(V,oe){var xe,me,k=V.itemDom,U=V.colSpan,K=k==null||(xe=k.props)===null||xe===void 0?void 0:xe.hidden;if(K)return k;var G=d.isValidElement(k)&&(k.key||"".concat((me=k.props)===null||me===void 0?void 0:me.name))||oe;return 24-O%2424){var me,k;return 24-((me=(k=e.submitterColSpanProps)===null||k===void 0?void 0:k.span)!==null&&me!==void 0?me:$.span)}return 24-xe},[O,O%24+((t=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&t!==void 0?t:$.span),(a=e.submitterColSpanProps)===null||a===void 0?void 0:a.span]),ne=(0,d.useContext)(rn.ZP.ConfigContext),pe=ne.getPrefixCls("pro-query-filter");return(0,i.jsxs)(tn.Z,{gutter:se,justify:"start",className:he()("".concat(pe,"-row"),f),children:[m,z&&(0,i.jsx)(q.Z,(0,l.Z)((0,l.Z)({span:$.span,offset:W,className:he()((u=e.submitterColSpanProps)===null||u===void 0?void 0:u.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,i.jsx)(Cr.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(pe,"-actions ").concat(f).trim(),children:(0,i.jsx)(Nt,{hiddenNum:F,collapsed:P,collapseRender:j?b:!1,submitter:z,setCollapsed:p},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},_t=(0,Gr.j)()?(vr=document)===null||vr===void 0||(vr=vr.body)===null||vr===void 0?void 0:vr.clientWidth:1024;function kt(r){var e=r.collapsed,t=r.layout,n=r.defaultCollapsed,a=n===void 0?!0:n,u=r.defaultColsNumber,s=r.span,o=r.searchGutter,f=o===void 0?24:o,g=r.searchText,C=r.resetText,S=r.optionRender,h=r.collapseRender,P=r.onReset,p=r.onCollapse,E=r.labelWidth,b=E===void 0?"80":E,y=r.style,R=r.split,$=r.preserve,B=$===void 0?!0:$,se=r.ignoreRules,Q=r.showHiddenNum,M=Q===void 0?!1:Q,z=r.submitterColSpanProps,L=(0,H.Z)(r,zt),w=(0,d.useContext)(rn.ZP.ConfigContext),I=w.getPrefixCls("pro-query-filter"),Z=At(I),O=Z.wrapSSR,T=Z.hashId,m=(0,Xe.Z)(function(){return typeof(y==null?void 0:y.width)=="number"?y==null?void 0:y.width:_t}),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=(0,d.useMemo)(function(){return Wt(t,j+16,s)},[t,j,s]),pe=(0,d.useMemo)(function(){return u!==void 0?u-1:Math.max(1,24/ne.span-1)},[u,ne.span]),V=(0,d.useMemo)(function(){if(b&&ne.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[ne.layout,b]);return O((0,i.jsx)(Xr.Z,{onResize:function(xe){j!==xe.width&&xe.width>17&&W(xe.width)},children:(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0,preserve:B},L),{},{className:he()(I,T,L.className),onReset:P,style:y,layout:ne.layout,fieldProps:{style:{width:"100%"}},formItemProps:V,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(xe,me,k){return(0,i.jsx)(Vt,{spanSize:ne,collapsed:e,form:k,submitterColSpanProps:z,collapseRender:h,defaultCollapsed:a,onCollapse:p,optionRender:S,submitter:me,items:xe,split:R,baseClassName:I,resetText:r.resetText,searchText:r.searchText,searchGutter:f,preserve:B,ignoreRules:se,showLength:pe,showHiddenNum:M})}}))},"resize-observer"))}var Qr=c(76791),Ht=["steps","columns","forceUpdate","grid"],Gt=function(e){var t=e.steps,n=e.columns,a=e.forceUpdate,u=e.grid,s=(0,H.Z)(e,Ht),o=(0,_r.d)(s),f=(0,d.useCallback)(function(C){var S,h;(S=(h=o.current).onCurrentChange)===null||S===void 0||S.call(h,C),a([])},[a,o]),g=(0,d.useMemo)(function(){return t==null?void 0:t.map(function(C,S){return(0,d.createElement)(nt,(0,l.Z)((0,l.Z)({grid:u},C),{},{key:S,layoutType:"StepForm",columns:n[S]}))})},[n,u,t]);return(0,i.jsx)(Qr.L0,(0,l.Z)((0,l.Z)({},s),{},{onCurrentChange:f,children:g}))},Xt=Gt,Jt=function(e){var t=e.children;return(0,i.jsx)(i.Fragment,{children:t})},Yt=Jt,qr=c(80288),Qt=function(e,t){if(e.valueType==="dependency"){var n,a,u,s=(n=e.getFieldProps)===null||n===void 0?void 0:n.call(e);return(0,Nn.ET)(Array.isArray((a=e.name)!==null&&a!==void 0?a:s==null?void 0:s.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Nn.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((u=e.name)!==null&&u!==void 0?u:s==null?void 0:s.name)?(0,d.createElement)(qr.Z,(0,l.Z)((0,l.Z)({name:e.name},s),{},{key:e.key}),function(o){return!e.columns||typeof e.columns!="function"?null:t.genItems(e.columns(o))}):null}return!0},qt=c(84922),ea=function(e){if(e.valueType==="divider"){var t;return(0,d.createElement)(qt.Z,(0,l.Z)((0,l.Z)({},(t=e.getFieldProps)===null||t===void 0?void 0:t.call(e)),{},{key:e.key}))}return!0},br=c(82578),na=function(e,t){var n=t.action,a=t.formRef,u=t.type,s=t.originItem,o=(0,l.Z)((0,l.Z)({},(0,Ge.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.name||e.key||e.dataIndex,width:e.width,render:e!=null&&e.render?function(S,h,P){var p,E,b,y;return e==null||(p=e.render)===null||p===void 0?void 0:p.call(e,S,h,P,n==null?void 0:n.current,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(E=e.key)===null||E===void 0?void 0:E.toString(),formItemProps:(b=e.getFormItemProps)===null||b===void 0?void 0:b.call(e),fieldProps:(y=e.getFieldProps)===null||y===void 0?void 0:y.call(e)}))}:void 0}),f=function(){return(0,i.jsx)(br.Z,(0,l.Z)((0,l.Z)({},o),{},{ignoreFormItem:!0}))},g=e!=null&&e.renderFormItem?function(S,h){var P,p,E,b,y=(0,Ln.Y)((0,l.Z)((0,l.Z)({},h),{},{onChange:void 0}));return e==null||(P=e.renderFormItem)===null||P===void 0?void 0:P.call(e,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(p=e.key)===null||p===void 0?void 0:p.toString(),formItemProps:(E=e.getFormItemProps)===null||E===void 0?void 0:E.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e),originProps:s}),(0,l.Z)((0,l.Z)({},y),{},{defaultRender:f,type:u}),a.current)}:void 0,C=function(){if(e!=null&&e.renderFormItem){var h=g==null?void 0:g(null,{});if(!h||e.ignoreFormItem)return h}return(0,d.createElement)(br.Z,(0,l.Z)((0,l.Z)({},o),{},{key:[e.key,e.index||0].join("-"),renderFormItem:g}))};return e.dependencies?(0,i.jsx)(qr.Z,{name:e.dependencies||[],children:C},e.key):C()},ra=c(58460),ta=function(e,t){var n=t.genItems;if(e.valueType==="formList"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(ra.u,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},aa=c(68344),la=function(e,t){var n=t.genItems;if(e.valueType==="formSet"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(aa.Z,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},oa=Zr.A.Group,ia=function(e,t){var n=t.genItems;if(e.valueType==="group"){var a;return!e.columns||!Array.isArray(e.columns)?null:(0,i.jsx)(oa,(0,l.Z)((0,l.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e)),{},{children:n(e.columns)}),e.key)}return!0},sa=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},et=[sa,ia,ta,la,ea,Qt],ua=function(e,t){for(var n=0;n span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}),a)),u};function Da(r){return(0,Ce.Xj)("ColumnSetting",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ba(t)]})}var Na=["key","dataIndex","children"],Ka=["disabled"],Lr=function(e){var t=e.title,n=e.show,a=e.children,u=e.columnKey,s=e.fixed,o=(0,d.useContext)(je),f=o.columnsMap,g=o.setColumnsMap;return n?(0,i.jsx)(or.Z,{title:t,children:(0,i.jsx)("span",{onClick:function(S){S.stopPropagation(),S.preventDefault();var h=f[u]||{},P=(0,l.Z)((0,l.Z)({},f),{},(0,v.Z)({},u,(0,l.Z)((0,l.Z)({},h),{},{fixed:s})));g(P)},children:a})}):null},Aa=function(e){var t=e.columnKey,n=e.isLeaf,a=e.title,u=e.className,s=e.fixed,o=e.showListItemOption,f=(0,Fe.YB)(),g=(0,d.useContext)(Fe.L_),C=g.hashId,S=(0,i.jsxs)("span",{className:"".concat(u,"-list-item-option ").concat(C).trim(),children:[(0,i.jsx)(Lr,{columnKey:t,fixed:"left",title:f.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:s!=="left",children:(0,i.jsx)(Sa.Z,{})}),(0,i.jsx)(Lr,{columnKey:t,fixed:void 0,title:f.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!s,children:(0,i.jsx)(Ea,{})}),(0,i.jsx)(Lr,{columnKey:t,fixed:"right",title:f.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:s!=="right",children:(0,i.jsx)(wa,{})})]});return(0,i.jsxs)("span",{className:"".concat(u,"-list-item ").concat(C).trim(),children:[(0,i.jsx)("div",{className:"".concat(u,"-list-item-title ").concat(C).trim(),children:a}),o&&!n?S:null]},t)},Or=function(e){var t,n,a,u=e.list,s=e.draggable,o=e.checkable,f=e.showListItemOption,g=e.className,C=e.showTitle,S=C===void 0?!0:C,h=e.title,P=e.listHeight,p=P===void 0?280:P,E=(0,d.useContext)(Fe.L_),b=E.hashId,y=(0,d.useContext)(je),R=y.columnsMap,$=y.setColumnsMap,B=y.sortKeyColumns,se=y.setSortKeyColumns,Q=u&&u.length>0,M=(0,d.useMemo)(function(){if(!Q)return{};var I=[],Z=new Map,O=function T(m,F){return m.map(function(j){var W,ne=j.key,pe=j.dataIndex,V=j.children,oe=(0,H.Z)(j,Na),xe=N(ne,[F==null?void 0:F.columnKey,oe.index].filter(Boolean).join("-")),me=R[xe||"null"]||{show:!0};me.show!==!1&&!V&&I.push(xe);var k=(0,l.Z)((0,l.Z)({key:xe},(0,Ge.Z)(oe,["className"])),{},{selectable:!1,disabled:me.disable===!0,disableCheckbox:typeof me.disable=="boolean"?me.disable:(W=me.disable)===null||W===void 0?void 0:W.checkbox,isLeaf:F?!0:void 0});if(V){var U;k.children=T(V,(0,l.Z)((0,l.Z)({},me),{},{columnKey:xe})),(U=k.children)!==null&&U!==void 0&&U.every(function(K){return I==null?void 0:I.includes(K.key)})&&I.push(xe)}return Z.set(ne,k),k})};return{list:O(u),keys:I,map:Z}},[R,u,Q]),z=(0,qn.J)(function(I,Z,O){var T=(0,l.Z)({},R),m=(0,Cn.Z)(B),F=m.findIndex(function(pe){return pe===I}),j=m.findIndex(function(pe){return pe===Z}),W=O>F;if(!(F<0)){var ne=m[F];m.splice(F,1),O===0?m.unshift(ne):m.splice(W?j:j+1,0,ne),m.forEach(function(pe,V){T[pe]=(0,l.Z)((0,l.Z)({},T[pe]||{}),{},{order:V})}),$(T),se(m)}}),L=(0,qn.J)(function(I){var Z=(0,l.Z)({},R),O=function T(m){var F,j=(0,l.Z)({},Z[m]);if(j.show=I.checked,(F=M.map)!==null&&F!==void 0&&(F=F.get(m))!==null&&F!==void 0&&F.children){var W;(W=M.map.get(m))===null||W===void 0||(W=W.children)===null||W===void 0||W.forEach(function(ne){return T(ne.key)})}Z[m]=j};O(I.node.key),$((0,l.Z)({},Z))});if(!Q)return null;var w=(0,i.jsx)(ja.Z,{itemHeight:24,draggable:s&&!!((t=M.list)!==null&&t!==void 0&&t.length)&&((n=M.list)===null||n===void 0?void 0:n.length)>1,checkable:o,onDrop:function(Z){var O=Z.node.key,T=Z.dragNode.key,m=Z.dropPosition,F=Z.dropToGap,j=m===-1||!F?m+1:m;z(T,O,j)},blockNode:!0,onCheck:function(Z,O){return L(O)},checkedKeys:M.keys,showLine:!1,titleRender:function(Z){var O=(0,l.Z)((0,l.Z)({},Z),{},{children:void 0});return O.title?(0,i.jsx)(Aa,(0,l.Z)((0,l.Z)({className:g},O),{},{showListItemOption:f,title:(0,er.h)(O.title,O),columnKey:O.key})):null},height:p,treeData:(a=M.list)===null||a===void 0?void 0:a.map(function(I){var Z=I.disabled,O=(0,H.Z)(I,Ka);return O})});return(0,i.jsxs)(i.Fragment,{children:[S&&(0,i.jsx)("span",{className:"".concat(g,"-list-title ").concat(b).trim(),children:h}),w]})},za=function(e){var t=e.localColumns,n=e.className,a=e.draggable,u=e.checkable,s=e.showListItemOption,o=e.listsHeight,f=(0,d.useContext)(Fe.L_),g=f.hashId,C=[],S=[],h=[],P=(0,Fe.YB)();t.forEach(function(b){if(!b.hideInSetting){var y=b.fixed;if(y==="left"){S.push(b);return}if(y==="right"){C.push(b);return}h.push(b)}});var p=C&&C.length>0,E=S&&S.length>0;return(0,i.jsxs)("div",{className:he()("".concat(n,"-list"),g,(0,v.Z)({},"".concat(n,"-list-group"),p||E)),children:[(0,i.jsx)(Or,{title:P.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:S,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o}),(0,i.jsx)(Or,{list:h,draggable:a,checkable:u,showListItemOption:s,title:P.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:E||p,className:n,listHeight:o}),(0,i.jsx)(Or,{title:P.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:C,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o})]})};function $a(r){var e,t,n,a,u=(0,d.useRef)(null),s=(0,d.useContext)(je),o=r.columns,f=r.checkedReset,g=f===void 0?!0:f,C=s.columnsMap,S=s.setColumnsMap,h=s.clearPersistenceStorage;(0,d.useEffect)(function(){var L;if((L=s.propsRef.current)!==null&&L!==void 0&&(L=L.columnsState)!==null&&L!==void 0&&L.value){var w;u.current=JSON.parse(JSON.stringify(((w=s.propsRef.current)===null||w===void 0||(w=w.columnsState)===null||w===void 0?void 0:w.value)||{}))}},[]);var P=(0,qn.J)(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,w={},I=function Z(O){O.forEach(function(T){var m=T.key,F=T.fixed,j=T.index,W=T.children,ne=T.disable,pe=N(m,j);if(pe){var V,oe;w[pe]={show:ne?(V=C[pe])===null||V===void 0?void 0:V.show:L,fixed:F,disable:ne,order:(oe=C[pe])===null||oe===void 0?void 0:oe.order}}W&&Z(W)})};I(o),S(w)}),p=(0,qn.J)(function(L){L.target.checked?P():P(!1)}),E=(0,qn.J)(function(){var L;h==null||h(),S(((L=s.propsRef.current)===null||L===void 0||(L=L.columnsState)===null||L===void 0?void 0:L.defaultValue)||u.current||s.defaultColumnKeyMap)}),b=Object.values(C).filter(function(L){return!L||L.show===!1}),y=b.length>0&&b.length!==o.length,R=(0,Fe.YB)(),$=(0,d.useContext)(rn.ZP.ConfigContext),B=$.getPrefixCls,se=B("pro-table-column-setting"),Q=Da(se),M=Q.wrapSSR,z=Q.hashId;return M((0,i.jsx)(La.Z,{arrow:!1,title:(0,i.jsxs)("div",{className:"".concat(se,"-title ").concat(z).trim(),children:[r.checkable===!1?(0,i.jsx)("div",{}):(0,i.jsx)(Oa.Z,{indeterminate:y,checked:b.length===0&&b.length!==o.length,onChange:function(w){p(w)},children:R.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),g?(0,i.jsx)("a",{onClick:E,className:"".concat(se,"-action-rest-button ").concat(z).trim(),children:R.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,r!=null&&r.extra?(0,i.jsx)(Me.Z,{size:12,align:"center",children:r.extra}):null]}),overlayClassName:"".concat(se,"-overlay ").concat(z).trim(),trigger:"click",placement:"bottomRight",content:(0,i.jsx)(za,{checkable:(e=r.checkable)!==null&&e!==void 0?e:!0,draggable:(t=r.draggable)!==null&&t!==void 0?t:!0,showListItemOption:(n=r.showListItemOption)!==null&&n!==void 0?n:!0,className:se,localColumns:o,listsHeight:r.listsHeight}),children:r.children||(0,i.jsx)(or.Z,{title:R.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(a=r.settingIcon)!==null&&a!==void 0?a:(0,i.jsx)(Fa.Z,{})})}))}var Wa=$a,Br=c(11175),Ua=c(33952),Va=c(62737),rt=function(e){var t=(0,Br.n)((0,Hr.b)(),"4.24.0")>-1?{menu:e}:{overlay:(0,i.jsx)(Va.Z,(0,l.Z)({},e))};return(0,Ln.Y)(t)},tt=c(10591),_a=function(e){var t=(0,d.useContext)(Fe.L_),n=t.hashId,a=e.items,u=a===void 0?[]:a,s=e.type,o=s===void 0?"inline":s,f=e.prefixCls,g=e.activeKey,C=e.defaultActiveKey,S=(0,Xe.Z)(g||C,{value:g,onChange:e.onChange}),h=(0,re.Z)(S,2),P=h[0],p=h[1];if(u.length<1)return null;var E=u.find(function(y){return y.key===P})||u[0];if(o==="inline")return(0,i.jsx)("div",{className:he()("".concat(f,"-menu"),"".concat(f,"-inline-menu"),n),children:u.map(function(y,R){return(0,i.jsx)("div",{onClick:function(){p(y.key)},className:he()("".concat(f,"-inline-menu-item"),E.key===y.key?"".concat(f,"-inline-menu-item-active"):void 0,n),children:y.label},y.key||R)})});if(o==="tab")return(0,i.jsx)(Le.Z,{items:u.map(function(y){var R;return(0,l.Z)((0,l.Z)({},y),{},{key:(R=y.key)===null||R===void 0?void 0:R.toString()})}),activeKey:E.key,onTabClick:function(R){return p(R)},children:(0,Br.n)(Ve.Z,"4.23.0")<0?u==null?void 0:u.map(function(y,R){return(0,d.createElement)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({},y),{},{key:y.key||R,tab:y.label}))}):null});var b=rt({selectedKeys:[E.key],onClick:function(R){p(R.key)},items:u.map(function(y,R){return{key:y.key||R,disabled:y.disabled,label:y.label}})});return(0,i.jsx)("div",{className:he()("".concat(f,"-menu"),"".concat(f,"-dropdownmenu")),children:(0,i.jsx)(tt.Z,(0,l.Z)((0,l.Z)({trigger:["click"]},b),{},{children:(0,i.jsxs)(Me.Z,{className:"".concat(f,"-dropdownmenu-label"),children:[E.label,(0,i.jsx)(jr.Z,{})]})}))})},ka=_a,Ha=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(t={display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},(0,v.Z)(t,"".concat(e.antCls,"-tabs"),{width:"100%"}),(0,v.Z)(t,"&-has-tabs",{overflow:"hidden"}),t),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,v.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},(0,v.Z)(n,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),(0,v.Z)(n,"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),(0,v.Z)(n,"@media (max-width: 768px)",(0,v.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})),n))};function Ga(r){return(0,Ce.Xj)("ProTableListToolBar",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ha(t)]})}function Xa(r){if(d.isValidElement(r))return r;if(r){var e=r,t=e.icon,n=e.tooltip,a=e.onClick,u=e.key;return t&&n?(0,i.jsx)(or.Z,{title:n,children:(0,i.jsx)("span",{onClick:function(){a&&a(u)},children:t},u)}):t}return null}var Ja=function(e){var t,n=e.prefixCls,a=e.tabs,u=e.multipleLine,s=e.filtersNode;return u?(0,i.jsx)("div",{className:"".concat(n,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?(0,i.jsx)(Le.Z,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(o,f){var g;return(0,l.Z)((0,l.Z)({label:o.tab},o),{},{key:((g=o.key)===null||g===void 0?void 0:g.toString())||(f==null?void 0:f.toString())})}),onChange:a.onChange,tabBarExtraContent:s,children:(t=a.items)===null||t===void 0?void 0:t.map(function(o,f){return(0,Br.n)(Ve.Z,"4.23.0")<0?(0,d.createElement)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({},o),{},{key:o.key||f,tab:o.tab})):null})}):s}):null},Ya=function(e){var t=e.prefixCls,n=e.title,a=e.subTitle,u=e.tooltip,s=e.className,o=e.style,f=e.search,g=e.onSearch,C=e.multipleLine,S=C===void 0?!1:C,h=e.filter,P=e.actions,p=P===void 0?[]:P,E=e.settings,b=E===void 0?[]:E,y=e.tabs,R=e.menu,$=(0,d.useContext)(rn.ZP.ConfigContext),B=$.getPrefixCls,se=Ce.Ow.useToken(),Q=se.token,M=B("pro-table-list-toolbar",t),z=Ga(M),L=z.wrapSSR,w=z.hashId,I=(0,Fe.YB)(),Z=(0,d.useState)(!1),O=(0,re.Z)(Z,2),T=O[0],m=O[1],F=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),j=(0,d.useMemo)(function(){return f?d.isValidElement(f)?f:(0,i.jsx)(Ua.Z.Search,(0,l.Z)((0,l.Z)({style:{width:200},placeholder:F},f),{},{onSearch:(0,Y.Z)((0,J.Z)().mark(function U(){var K,G,de,Te,Ne,en,ke=arguments;return(0,J.Z)().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:for(de=ke.length,Te=new Array(de),Ne=0;Nea":{fontSize:e.fontSize}}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,v.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),(0,v.Z)(a,"& &-search",(n={marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},(0,v.Z)(n,"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),(0,v.Z)(n,"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),(0,v.Z)(n,"&-form-option",(t={},(0,v.Z)(t,"".concat(e.antCls,"-form-item"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-label"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-control-input"),{}),t)),(0,v.Z)(n,"@media (max-width: 575px)",(0,v.Z)({},e.componentCls,(0,v.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"}))),n)),(0,v.Z)(a,"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}}),a)),(0,v.Z)(u,"@media (max-width: ".concat(e.screenXS,")px"),(0,v.Z)({},e.componentCls,(0,v.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),(0,v.Z)(u,"@media (max-width: 575px)",(0,v.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}})),u};function Sl(r){return(0,Ce.Xj)("ProTable",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[bl(t)]})}var Dr=c(46228),xl=c(82250),Rl=["data","success","total"],Pl=function(e){var t=e.pageInfo;if(t){var n=t.current,a=t.defaultCurrent,u=t.pageSize,s=t.defaultPageSize;return{current:n||a||1,total:0,pageSize:u||s||20}}return{current:1,total:0,pageSize:20}},El=function(e,t,n){var a,u=(0,d.useRef)(!1),s=(0,d.useRef)(null),o=n||{},f=o.onLoad,g=o.manual,C=o.polling,S=o.onRequestError,h=o.debounceTime,P=h===void 0?20:h,p=o.effects,E=p===void 0?[]:p,b=(0,d.useRef)(g),y=(0,d.useRef)(),R=(0,Xe.Z)(t,{value:n==null?void 0:n.dataSource,onChange:n==null?void 0:n.onDataSourceChange}),$=(0,re.Z)(R,2),B=$[0],se=$[1],Q=(0,Xe.Z)(!1,{value:(0,_e.Z)(n==null?void 0:n.loading)==="object"?n==null||(a=n.loading)===null||a===void 0?void 0:a.spinning:n==null?void 0:n.loading,onChange:n==null?void 0:n.onLoadingChange}),M=(0,re.Z)(Q,2),z=M[0],L=M[1],w=(0,Xe.Z)(function(){return Pl(n)},{onChange:n==null?void 0:n.onPageInfoChange}),I=(0,re.Z)(w,2),Z=I[0],O=I[1],T=(0,qn.J)(function(K){(K.current!==Z.current||K.pageSize!==Z.pageSize||K.total!==Z.total)&&O(K)}),m=(0,Xe.Z)(!1),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=function(G,de){(0,wr.unstable_batchedUpdates)(function(){se(G),(Z==null?void 0:Z.total)!==de&&T((0,l.Z)((0,l.Z)({},Z),{},{total:de||G.length}))})},pe=(0,Dr.D)(Z==null?void 0:Z.current),V=(0,Dr.D)(Z==null?void 0:Z.pageSize),oe=(0,Dr.D)(C),xe=(0,qn.J)(function(){(0,wr.unstable_batchedUpdates)(function(){L(!1),W(!1)})}),me=function(){var K=(0,Y.Z)((0,J.Z)().mark(function G(de){var Te,Ne,en,ke,Ae,yn,Rn,un,Ze,te,be,Re;return(0,J.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!b.current){D.next=3;break}return b.current=!1,D.abrupt("return");case 3:return de?W(!0):L(!0),Te=Z||{},Ne=Te.pageSize,en=Te.current,D.prev=5,ke=(n==null?void 0:n.pageInfo)!==!1?{current:en,pageSize:Ne}:void 0,D.next=9,e==null?void 0:e(ke);case 9:if(D.t0=D.sent,D.t0){D.next=12;break}D.t0={};case 12:if(Ae=D.t0,yn=Ae.data,Rn=yn===void 0?[]:yn,un=Ae.success,Ze=Ae.total,te=Ze===void 0?0:Ze,be=(0,H.Z)(Ae,Rl),un!==!1){D.next=21;break}return D.abrupt("return",[]);case 21:return Re=Ir(Rn,[n.postData].filter(function(Un){return Un})),ne(Re,te),f==null||f(Re,be),D.abrupt("return",Re);case 27:if(D.prev=27,D.t1=D.catch(5),S!==void 0){D.next=31;break}throw new Error(D.t1);case 31:B===void 0&&se([]),S(D.t1);case 33:return D.prev=33,xe(),D.finish(33);case 36:return D.abrupt("return",[]);case 37:case"end":return D.stop()}},G,null,[[5,27,33,36]])}));return function(de){return K.apply(this,arguments)}}(),k=(0,xl.D)(function(){var K=(0,Y.Z)((0,J.Z)().mark(function G(de){var Te,Ne,en;return(0,J.Z)().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(y.current&&clearTimeout(y.current),e){Ae.next=3;break}return Ae.abrupt("return");case 3:return Te=new AbortController,s.current=Te,Ae.prev=5,Ae.next=8,Promise.race([me(de),new Promise(function(yn,Rn){var un,Ze;(un=s.current)===null||un===void 0||(un=un.signal)===null||un===void 0||(Ze=un.addEventListener)===null||Ze===void 0||Ze.call(un,"abort",function(){Rn("aborted"),k.cancel(),xe()})})]);case 8:if(Ne=Ae.sent,!Te.signal.aborted){Ae.next=11;break}return Ae.abrupt("return");case 11:return en=(0,er.h)(C,Ne),en&&!u.current&&(y.current=setTimeout(function(){k.run(en)},Math.max(en,2e3))),Ae.abrupt("return",Ne);case 16:if(Ae.prev=16,Ae.t0=Ae.catch(5),Ae.t0!=="aborted"){Ae.next=20;break}return Ae.abrupt("return");case 20:throw Ae.t0;case 21:case"end":return Ae.stop()}},G,null,[[5,16]])}));return function(G){return K.apply(this,arguments)}}(),P||30),U=function(){var G;(G=s.current)===null||G===void 0||G.abort(),k.cancel(),xe()};return(0,d.useEffect)(function(){return C||clearTimeout(y.current),!oe&&C&&k.run(!0),function(){clearTimeout(y.current)}},[C]),(0,d.useEffect)(function(){return u.current=!1,function(){u.current=!0}},[]),(0,d.useEffect)(function(){var K=Z||{},G=K.current,de=K.pageSize;(!pe||pe===G)&&(!V||V===de)||n.pageInfo&&B&&(B==null?void 0:B.length)>de||G!==void 0&&B&&B.length<=de&&(U(),k.run(!1))},[Z==null?void 0:Z.current]),(0,d.useEffect)(function(){V&&(U(),k.run(!1))},[Z==null?void 0:Z.pageSize]),(0,pn.KW)(function(){return U(),k.run(!1),g||(b.current=!1),function(){U()}},[].concat((0,Cn.Z)(E),[g])),{dataSource:B,setDataSource:se,loading:(0,_e.Z)(n==null?void 0:n.loading)==="object"?(0,l.Z)((0,l.Z)({},n==null?void 0:n.loading),{},{spinning:z}):z,reload:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(){return(0,J.Z)().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return U(),Ne.abrupt("return",k.run(!1));case 2:case"end":return Ne.stop()}},de)}));function G(){return K.apply(this,arguments)}return G}(),pageInfo:Z,pollingLoading:j,reset:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(){var Te,Ne,en,ke,Ae,yn,Rn,un;return(0,J.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:Te=n||{},Ne=Te.pageInfo,en=Ne||{},ke=en.defaultCurrent,Ae=ke===void 0?1:ke,yn=en.defaultPageSize,Rn=yn===void 0?20:yn,un={current:Ae,total:0,pageSize:Rn},T(un);case 4:case"end":return te.stop()}},de)}));function G(){return K.apply(this,arguments)}return G}(),setPageInfo:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(Te){return(0,J.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:T((0,l.Z)((0,l.Z)({},Z),Te));case 1:case"end":return en.stop()}},de)}));function G(de){return K.apply(this,arguments)}return G}()}},Tl=El,Il=function(e){return function(t,n){var a,u,s=t.fixed,o=t.index,f=n.fixed,g=n.index;if(s==="left"&&f!=="left"||f==="right"&&s!=="right")return-2;if(f==="left"&&s!=="left"||s==="right"&&f!=="right")return 2;var C=t.key||"".concat(o),S=n.key||"".concat(g);if((a=e[C])!==null&&a!==void 0&&a.order||(u=e[S])!==null&&u!==void 0&&u.order){var h,P;return(((h=e[C])===null||h===void 0?void 0:h.order)||0)-(((P=e[S])===null||P===void 0?void 0:P.order)||0)}return(t.index||0)-(n.index||0)}},Ml=c(83846),wl=function(e){var t={};return Object.keys(e||{}).forEach(function(n){var a;Array.isArray(e[n])&&((a=e[n])===null||a===void 0?void 0:a.length)===0||e[n]!==void 0&&(t[n]=e[n])}),t},Fl=c(46613),jl=c(90337),Nr=c(85108),Ll=c(54970),Ol=c(45362),Kr=c(66313),Bl=["children"],Dl=["",null,void 0],lt=function(){for(var e=arguments.length,t=new Array(e),n=0;nke.length?(ke.push(G),ke):(ke.splice((o==null?void 0:o.current)*(o==null?void 0:o.pageSize)-1,0,G),ke)}return[].concat((0,Cn.Z)(a.dataSource),[G])},m=function(){return(0,l.Z)((0,l.Z)({},w),{},{size:g,rowSelection:f===!1?void 0:f,className:t,style:S,columns:Z.map(function(k){return k.isExtraColumns?k.extraColumn:k}),loading:a.loading,dataSource:z.newLineRecord?T(a.dataSource):a.dataSource,pagination:o,onChange:function(U,K,G,de){var Te;if((Te=w.onChange)===null||Te===void 0||Te.call(w,U,K,G,de),O||$((0,Ln.Y)(K)),Array.isArray(G)){var Ne=G.reduce(function(yn,Rn){return(0,l.Z)((0,l.Z)({},yn),{},(0,v.Z)({},"".concat(Rn.field),Rn.order))},{});R((0,Ln.Y)(Ne))}else{var en,ke=(en=G.column)===null||en===void 0?void 0:en.sorter,Ae=(ke==null?void 0:ke.toString())===ke;R((0,Ln.Y)((0,v.Z)({},"".concat(Ae?ke:G.field),G.order)))}}})},F=(0,d.useMemo)(function(){return r.search===!1&&!r.headerTitle&&r.toolBarRender===!1},[]),j=(0,i.jsx)(Ie._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,i.jsx)(Xn.Z,(0,l.Z)((0,l.Z)({},m()),{},{rowKey:e}))}),W=r.tableViewRender?r.tableViewRender((0,l.Z)((0,l.Z)({},m()),{},{rowSelection:f!==!1?f:void 0}),j):j,ne=(0,d.useMemo)(function(){if(r.editable&&!r.name){var me,k,U;return(0,i.jsxs)(i.Fragment,{children:[h,b,(0,d.createElement)(Sn.ZP,(0,l.Z)((0,l.Z)({},(me=r.editable)===null||me===void 0?void 0:me.formProps),{},{formRef:(k=r.editable)===null||k===void 0||(k=k.formProps)===null||k===void 0?void 0:k.formRef,component:!1,form:(U=r.editable)===null||U===void 0?void 0:U.form,onValuesChange:z.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:r.dateFormatter}),W)]})}return(0,i.jsxs)(i.Fragment,{children:[h,b,W]})},[b,r.loading,!!r.editable,W,h]),pe=(0,d.useMemo)(function(){return E===!1||F===!0||r.name?{}:h?{paddingBlockStart:0}:h&&o===!1?{paddingBlockStart:0}:{padding:0}},[F,o,r.name,E,h]),V=E===!1||F===!0||r.name?ne:(0,i.jsx)(Se,(0,l.Z)((0,l.Z)({ghost:r.ghost,bordered:pr("table",M),bodyStyle:pe},E),{},{children:ne})),oe=function(){return r.tableRender?r.tableRender(r,V,{toolbar:h||void 0,alert:b||void 0,table:W||void 0}):V},xe=(0,i.jsxs)("div",{className:he()(Q,(0,v.Z)({},"".concat(n,"-polling"),a.pollingLoading)),style:p,ref:I.rootDomRef,children:[se?null:P,s!=="form"&&r.tableExtraRender&&(0,i.jsx)("div",{className:he()(Q,"".concat(n,"-extra")),children:r.tableExtraRender(r,a.dataSource||[])}),s!=="form"&&oe()]});return!B||!(B!=null&&B.fullScreen)?xe:(0,i.jsx)(rn.ZP,{getPopupContainer:function(){return I.rootDomRef.current||document.body},children:xe})}var kl={},Hl=function(e){var t,n=e.cardBordered,a=e.request,u=e.className,s=e.params,o=s===void 0?kl:s,f=e.defaultData,g=e.headerTitle,C=e.postData,S=e.ghost,h=e.pagination,P=e.actionRef,p=e.columns,E=p===void 0?[]:p,b=e.toolBarRender,y=e.optionsRender,R=e.onLoad,$=e.onRequestError,B=e.style,se=e.cardProps,Q=e.tableStyle,M=e.tableClassName,z=e.columnsStateMap,L=e.onColumnsStateChange,w=e.options,I=e.search,Z=e.name,O=e.onLoadingChange,T=e.rowSelection,m=T===void 0?!1:T,F=e.beforeSearchSubmit,j=e.tableAlertRender,W=e.defaultClassName,ne=e.formRef,pe=e.type,V=pe===void 0?"table":pe,oe=e.columnEmptyText,xe=oe===void 0?"-":oe,me=e.toolbar,k=e.rowKey,U=e.manualRequest,K=e.polling,G=e.tooltip,de=e.revalidateOnFocus,Te=de===void 0?!1:de,Ne=e.searchFormRender,en=(0,H.Z)(e,Vl),ke=Sl(e.defaultClassName),Ae=ke.wrapSSR,yn=ke.hashId,Rn=he()(W,u,yn),un=(0,d.useRef)(),Ze=(0,d.useRef)(),te=ne||Ze;(0,d.useImperativeHandle)(P,function(){return un.current});var be=(0,Xe.Z)(m?(m==null?void 0:m.defaultSelectedRowKeys)||[]:void 0,{value:m?m.selectedRowKeys:void 0}),Re=(0,re.Z)(be,2),hn=Re[0],D=Re[1],Un=(0,Xe.Z)(function(){if(!(U||I!==!1))return{}}),Bn=(0,re.Z)(Un,2),An=Bn[0],ir=Bn[1],Sr=(0,Xe.Z)({}),fr=(0,re.Z)(Sr,2),tr=fr[0],sr=fr[1],hr=(0,Xe.Z)({}),xr=(0,re.Z)(hr,2),mr=xr[0],gr=xr[1];(0,d.useEffect)(function(){var _=ge(E),X=_.sort,ze=_.filter;sr(ze),gr(X)},[]);var Rr=(0,Fe.YB)(),Pr=(0,_e.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},dn=(0,d.useContext)(je),Mn=(0,d.useMemo)(function(){if(a)return function(){var _=(0,Y.Z)((0,J.Z)().mark(function X(ze){var cn,Vn;return(0,J.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return cn=(0,l.Z)((0,l.Z)((0,l.Z)({},ze||{}),An),o),delete cn._timestamp,Hn.next=4,a(cn,mr,tr);case 4:return Vn=Hn.sent,Hn.abrupt("return",Vn);case 6:case"end":return Hn.stop()}},X)}));return function(X){return _.apply(this,arguments)}}()},[An,o,tr,mr,a]),ye=Tl(Mn,f,{pageInfo:h===!1?!1:Pr,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:R,onLoadingChange:O,onRequestError:$,postData:C,revalidateOnFocus:Te,manual:An===void 0,polling:K,effects:[(0,Gn.ZP)(o),(0,Gn.ZP)(An),(0,Gn.ZP)(tr),(0,Gn.ZP)(mr)],debounceTime:e.debounceTime,onPageInfoChange:function(X){var ze,cn;!h||!Mn||(h==null||(ze=h.onChange)===null||ze===void 0||ze.call(h,X.current,X.pageSize),h==null||(cn=h.onShowSizeChange)===null||cn===void 0||cn.call(h,X.current,X.pageSize))}});(0,d.useEffect)(function(){var _;if(!(e.manualRequest||!e.request||!Te||(_=e.form)!==null&&_!==void 0&&_.ignoreRules)){var X=function(){document.visibilityState==="visible"&&ye.reload()};return document.addEventListener("visibilitychange",X),function(){return document.removeEventListener("visibilitychange",X)}}},[]);var xn=d.useRef(new Map),Dn=d.useMemo(function(){return typeof k=="function"?k:function(_,X){var ze;return X===-1?_==null?void 0:_[k]:e.name?X==null?void 0:X.toString():(ze=_==null?void 0:_[k])!==null&&ze!==void 0?ze:X==null?void 0:X.toString()}},[e.name,k]);(0,d.useMemo)(function(){var _;if((_=ye.dataSource)!==null&&_!==void 0&&_.length){var X=ye.dataSource.map(function(ze){var cn=Dn(ze,-1);return xn.current.set(cn,ze),cn});return X}return[]},[ye.dataSource,Dn]);var zn=(0,d.useMemo)(function(){var _=h===!1?!1:(0,l.Z)({},h),X=(0,l.Z)((0,l.Z)({},ye.pageInfo),{},{setPageInfo:function(cn){var Vn=cn.pageSize,nr=cn.current,Hn=ye.pageInfo;if(Vn===Hn.pageSize||Hn.current===1){ye.setPageInfo({pageSize:Vn,current:nr});return}a&&ye.setDataSource([]),ye.setPageInfo({pageSize:Vn,current:V==="list"?nr:1})}});return a&&_&&(delete _.onChange,delete _.onShowSizeChange),Er(_,X,Rr)},[h,ye,Rr]);(0,pn.KW)(function(){var _;e.request&&o&&ye.dataSource&&(ye==null||(_=ye.pageInfo)===null||_===void 0?void 0:_.current)!==1&&ye.setPageInfo({current:1})},[o]),dn.setPrefixName(e.name);var kn=(0,d.useCallback)(function(){m&&m.onChange&&m.onChange([],[],{type:"none"}),D([])},[m,D]);dn.propsRef.current=e;var $n=(0,In.CB)((0,l.Z)((0,l.Z)({},e.editable),{},{tableName:e.name,getRowKey:Dn,childrenColumnName:((t=e.expandable)===null||t===void 0?void 0:t.childrenColumnName)||"children",dataSource:ye.dataSource||[],setDataSource:function(X){var ze,cn;(ze=e.editable)===null||ze===void 0||(cn=ze.onValuesChange)===null||cn===void 0||cn.call(ze,void 0,X),ye.setDataSource(X)}})),ur=Ce.Ow===null||Ce.Ow===void 0?void 0:Ce.Ow.useToken(),Ar=ur.token;Tr(un,ye,{fullScreen:function(){var X;if(!(!((X=dn.rootDomRef)!==null&&X!==void 0&&X.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var ze;(ze=dn.rootDomRef)===null||ze===void 0||ze.current.requestFullscreen()}},onCleanSelected:function(){kn()},resetAll:function(){var X;kn(),sr({}),gr({}),dn.setKeyWords(void 0),ye.setPageInfo({current:1}),te==null||(X=te.current)===null||X===void 0||X.resetFields(),ir({})},editableUtils:$n}),dn.setAction(un.current),P&&(P.current=un.current);var ar=(0,d.useMemo)(function(){var _;return it({columns:E,counter:dn,columnEmptyText:xe,type:V,marginSM:Ar.marginSM,editableUtils:$n,rowKey:k,childrenColumnName:(_=e.expandable)===null||_===void 0?void 0:_.childrenColumnName}).sort(Il(dn.columnsMap))},[E,dn==null?void 0:dn.sortKeyColumns,dn==null?void 0:dn.columnsMap,xe,V,$n.editableKeys&&$n.editableKeys.join(",")]);(0,pn.Au)(function(){if(ar&&ar.length>0){var _=ar.map(function(X){return N(X.key,X.index)});dn.setSortKeyColumns(_)}},[ar],["render","renderFormItem"],100),(0,pn.KW)(function(){var _=ye.pageInfo,X=h||{},ze=X.current,cn=ze===void 0?_==null?void 0:_.current:ze,Vn=X.pageSize,nr=Vn===void 0?_==null?void 0:_.pageSize:Vn;h&&(cn||nr)&&(nr!==(_==null?void 0:_.pageSize)||cn!==(_==null?void 0:_.current))&&ye.setPageInfo({pageSize:nr||_.pageSize,current:cn||_.current})},[h&&h.pageSize,h&&h.current]);var Xl=(0,l.Z)((0,l.Z)({selectedRowKeys:hn},m),{},{onChange:function(X,ze,cn){m&&m.onChange&&m.onChange(X,ze,cn),D(X)}}),zr=I!==!1&&(I==null?void 0:I.filterType)==="light",ut=(0,d.useCallback)(function(_){if(w&&w.search){var X,ze,cn=w.search===!0?{}:w.search,Vn=cn.name,nr=Vn===void 0?"keyword":Vn,Hn=(X=w.search)===null||X===void 0||(ze=X.onSearch)===null||ze===void 0?void 0:ze.call(X,dn.keyWords);if(Hn!==!1){ir((0,l.Z)((0,l.Z)({},_),{},(0,v.Z)({},nr,dn.keyWords)));return}}ir(_)},[dn.keyWords,w,ir]),dt=(0,d.useMemo)(function(){if((0,_e.Z)(ye.loading)==="object"){var _;return((_=ye.loading)===null||_===void 0?void 0:_.spinning)||!1}return ye.loading},[ye.loading]),ct=(0,d.useMemo)(function(){var _=I===!1&&V!=="form"?null:(0,i.jsx)(Za,{pagination:zn,beforeSearchSubmit:F,action:un,columns:E,onFormSearchSubmit:function(ze){ut(ze)},ghost:S,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!dt,manualRequest:U,search:I,form:e.form,formRef:te,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return Ne&&_?(0,i.jsx)(i.Fragment,{children:Ne(e,_)}):_},[F,te,S,dt,U,ut,zn,e,E,I,Ne,V]),vt=(0,d.useMemo)(function(){return hn==null?void 0:hn.map(function(_){var X;return(X=xn.current)===null||X===void 0?void 0:X.get(_)})},[hn]),Jl=b===!1?null:(0,i.jsx)(Cl,{headerTitle:g,hideToolbar:w===!1&&!g&&!b&&!me&&!zr,selectedRows:vt,selectedRowKeys:hn,tableColumn:ar,tooltip:G,toolbar:me,onFormSearchSubmit:function(X){ir((0,l.Z)((0,l.Z)({},An),X))},searchNode:zr?ct:null,options:w,optionsRender:y,actionRef:un,toolBarRender:b}),Yl=m!==!1?(0,i.jsx)(yr,{selectedRowKeys:hn,selectedRows:vt,onCleanSelected:kn,alertOptionRender:en.tableAlertOptionRender,alertInfoRender:j,alwaysShowAlert:m==null?void 0:m.alwaysShowAlert}):null;return Ae((0,i.jsx)(_l,(0,l.Z)((0,l.Z)({},e),{},{name:Z,defaultClassName:W,size:dn.tableSize,onSizeChange:dn.setTableSize,pagination:zn,searchNode:ct,rowSelection:m!==!1?Xl:void 0,className:Rn,tableColumn:ar,isLightFilter:zr,action:ye,alertDom:Yl,toolbarDom:Jl,onSortChange:function(X){mr!==X&&gr(X!=null?X:{})},onFilterChange:function(X){X!==tr&&sr(X)},editableUtils:$n,getRowKey:Dn})))},st=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls,a=e.ErrorBoundary===!1?d.Fragment:e.ErrorBoundary||lr.S;return(0,i.jsx)(qe,{initValue:e,children:(0,i.jsx)(Fe._Y,{needDeps:!0,children:(0,i.jsx)(a,{children:(0,i.jsx)(Hl,(0,l.Z)({defaultClassName:"".concat(n("pro-table"))},e))})})})};st.Summary=Xn.Z.Summary;var Gl=st},27542:function(rr,wn,c){c.d(wn,{S:function(){return sn}});var J=c(47920),Y=c(77254),_e=c(95325),re=c(44906),v=c(41399),Cn=c(73273),l=c(6053),H=c(50959),He=c(11527),sn=function(rn){(0,re.Z)(Le,rn);var Tn=(0,v.Z)(Le);function Le(){var On;(0,J.Z)(this,Le);for(var he=arguments.length,Ge=new Array(he),Xe=0;Xe1&&Ue.pop();try{return JSON.stringify((0,He.Z)(jn,Ue))!==JSON.stringify((0,He.Z)(Zn,Ue))}catch(Ve){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(jn,Zn){return(0,he.jsx)(Ce,(0,Y.Z)({inputProps:jn,popoverProps:on},Zn))}}},$e),{},{style:(0,Y.Z)((0,Y.Z)({},d),$e==null?void 0:$e.style),children:q}))},ln=function(ue){var nn=ue.errorType,tn=ue.rules,q=ue.name,on=ue.popoverProps,$e=ue.children,Fn=(0,J.Z)(ue,Xe);return q&&tn!==null&&tn!==void 0&&tn.length&&nn==="popover"?(0,he.jsx)(Pe,(0,Y.Z)((0,Y.Z)({name:q,rules:tn,popoverProps:on},Fn),{},{children:$e})):(0,he.jsx)(H.Z.Item,(0,Y.Z)((0,Y.Z)({rules:tn,shouldUpdate:q?function(jn,Zn){if(jn===Zn)return!1;var Ue=[q].flat(1);Ue.length>1&&Ue.pop();try{return JSON.stringify((0,He.Z)(jn,Ue))!==JSON.stringify((0,He.Z)(Zn,Ue))}catch(Ve){return!0}}:void 0},Fn),{},{style:(0,Y.Z)((0,Y.Z)({},d),Fn.style),name:q,children:$e}))}},46613:function(rr,wn,c){c.d(wn,{X:function(){return Cn}});var J=c(52058),Y=c(50959),_e=c(11527),re=function(H){var He;return!!(H!=null&&(He=H.valueType)!==null&&He!==void 0&&He.toString().startsWith("date")||(H==null?void 0:H.valueType)==="select"||H!=null&&H.valueEnum)},v=function(H){var He;return((He=H.ellipsis)===null||He===void 0?void 0:He.showTitle)===!1?!1:H.ellipsis},Cn=function(H,He,sn){if(He.copyable||He.ellipsis){var rn=He.copyable&&sn?{text:sn,tooltips:["",""]}:void 0,Tn=re(He),Le=v(He)&&sn?{tooltip:(He==null?void 0:He.tooltip)!==!1&&Tn?(0,_e.jsx)("div",{className:"pro-table-tooltip-text",children:H}):sn}:!1;return(0,_e.jsx)(J.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:rn,ellipsis:Le,children:H})}return H}},66313:function(rr,wn,c){c.d(wn,{w:function(){return Y}});var J=c(44559),Y=function(re,v,Cn){return v===void 0?re:(0,J.h)(re,v,Cn)}},44139:function(rr,wn,c){c.d(wn,{CB:function(){return Yn},aX:function(){return _n},cx:function(){return Ve},sN:function(){return Ue}});var J=c(1788),Y=c(3224),_e=c(98040),re=c(47801),v=c(32682),Cn=c(73273),l=c(10570),H=c(33346),He=c(40727),sn=c(58516),rn=c(17122),Tn=c(52497),Le=c(67190),On=c(37077),he=c(56815),Ge=c(65589),Xe=c(85108),d=c(6169),Ce=c(12868),Pe=c(50959),ln=c(13165),i=c(82250),ue=c(98114),nn=c(11979),tn=c(46228),q=c(94204),on=c(11527),$e=["map_row_parentKey"],Fn=["map_row_parentKey","map_row_key"],jn=["map_row_key"],Zn=function(ce){return(Tn.ZP.warn||Tn.ZP.warning)(ce)},Ue=function(ce){return Array.isArray(ce)?ce.join(","):ce};function Ve(x,ce){var Oe,ie=x.getRowKey,Je=x.row,Ye=x.data,Ke=x.childrenColumnName,Be=Ke===void 0?"children":Ke,vn=(Oe=Ue(x.key))===null||Oe===void 0?void 0:Oe.toString(),Qe=new Map;function bn(fn,gn,an){fn.forEach(function(ve,Ee){var A=(an||0)*10+Ee,ee=ie(ve,A).toString();ve&&(0,He.Z)(ve)==="object"&&Be in ve&&bn(ve[Be]||[],ee,A);var fe=(0,H.Z)((0,H.Z)({},ve),{},{map_row_key:ee,children:void 0,map_row_parentKey:gn});delete fe.children,gn||delete fe.map_row_parentKey,Qe.set(ee,fe)})}ce==="top"&&Qe.set(vn,(0,H.Z)((0,H.Z)({},Qe.get(vn)),Je)),bn(Ye),ce==="update"&&Qe.set(vn,(0,H.Z)((0,H.Z)({},Qe.get(vn)),Je)),ce==="delete"&&Qe.delete(vn);var Pn=function(gn){var an=new Map,ve=[],Ee=function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gn.forEach(function(fe){if(fe.map_row_parentKey&&!fe.map_row_key){var Se=fe.map_row_parentKey,Ie=(0,l.Z)(fe,$e);if(an.has(Se)||an.set(Se,[]),ee){var Sn;(Sn=an.get(Se))===null||Sn===void 0||Sn.push(Ie)}}})};return Ee(ce==="top"),gn.forEach(function(A){if(A.map_row_parentKey&&A.map_row_key){var ee,fe=A.map_row_parentKey,Se=A.map_row_key,Ie=(0,l.Z)(A,Fn);an.has(Se)&&(Ie[Be]=an.get(Se)),an.has(fe)||an.set(fe,[]),(ee=an.get(fe))===null||ee===void 0||ee.push(Ie)}}),Ee(ce==="update"),gn.forEach(function(A){if(!A.map_row_parentKey){var ee=A.map_row_key,fe=(0,l.Z)(A,jn);if(ee&&an.has(ee)){var Se=(0,H.Z)((0,H.Z)({},fe),{},(0,Cn.Z)({},Be,an.get(ee)));ve.push(Se);return}ve.push(fe)}}),ve};return Pn(Qe)}function Kn(x,ce){var Oe=x.recordKey,ie=x.onSave,Je=x.row,Ye=x.children,Ke=x.newLineConfig,Be=x.editorType,vn=x.tableName,Qe=(0,Pe.useContext)(ue.J),bn=Le.Z.useFormInstance(),Pn=(0,Ge.Z)(!1),fn=(0,v.Z)(Pn,2),gn=fn[0],an=fn[1],ve=(0,ln.J)((0,re.Z)((0,Y.Z)().mark(function Ee(){var A,ee,fe,Se,Ie,Sn,Fe,In,Ln;return(0,Y.Z)().wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.prev=0,ee=Be==="Map",fe=[vn,Array.isArray(Oe)?Oe[0]:Oe].map(function(lr){return lr==null?void 0:lr.toString()}).flat(1).filter(Boolean),an(!0),pn.next=6,bn.validateFields(fe,{recursive:!0});case 6:return Se=(Qe==null||(A=Qe.getFieldFormatValue)===null||A===void 0?void 0:A.call(Qe,fe))||bn.getFieldValue(fe),Array.isArray(Oe)&&Oe.length>1&&(Ie=(0,_e.Z)(Oe),Sn=Ie.slice(1),Fe=(0,Xe.Z)(Se,Sn),(0,d.Z)(Se,Sn,Fe)),In=ee?(0,d.Z)({},fe,Se):Se,pn.next=11,ie==null?void 0:ie(Oe,(0,q.T)({},Je,In),Je,Ke);case 11:return Ln=pn.sent,an(!1),pn.abrupt("return",Ln);case 16:throw pn.prev=16,pn.t0=pn.catch(0),console.log(pn.t0),an(!1),pn.t0;case 21:case"end":return pn.stop()}},Ee,null,[[0,16]])})));return(0,Pe.useImperativeHandle)(ce,function(){return{save:ve}},[ve]),(0,on.jsxs)("a",{onClick:function(){var Ee=(0,re.Z)((0,Y.Z)().mark(function A(ee){return(0,Y.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ee.stopPropagation(),ee.preventDefault(),Se.prev=2,Se.next=5,ve();case 5:Se.next=9;break;case 7:Se.prev=7,Se.t0=Se.catch(2);case 9:case"end":return Se.stop()}},A,null,[[2,7]])}));return function(A){return Ee.apply(this,arguments)}}(),children:[gn?(0,on.jsx)(sn.Z,{style:{marginInlineEnd:8}}):null,Ye||"\u4FDD\u5B58"]},"save")}var Nn=function(ce){var Oe=ce.recordKey,ie=ce.onDelete,Je=ce.row,Ye=ce.children,Ke=ce.deletePopconfirmMessage,Be=(0,Ge.Z)(function(){return!1}),vn=(0,v.Z)(Be,2),Qe=vn[0],bn=vn[1],Pn=(0,ln.J)((0,re.Z)((0,Y.Z)().mark(function fn(){var gn;return(0,Y.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.prev=0,bn(!0),ve.next=4,ie==null?void 0:ie(Oe,Je);case 4:return gn=ve.sent,bn(!1),ve.abrupt("return",gn);case 9:return ve.prev=9,ve.t0=ve.catch(0),console.log(ve.t0),bn(!1),ve.abrupt("return",null);case 14:case"end":return ve.stop()}},fn,null,[[0,9]])})));return Ye!==!1?(0,on.jsx)(On.Z,{title:Ke,onConfirm:function(){return Pn()},children:(0,on.jsxs)("a",{children:[Qe?(0,on.jsx)(sn.Z,{style:{marginInlineEnd:8}}):null,Ye||"\u5220\u9664"]})},"delete"):null},Jn=function(ce){var Oe=ce.recordKey,ie=ce.tableName,Je=ce.newLineConfig,Ye=ce.editorType,Ke=ce.onCancel,Be=ce.cancelEditable,vn=ce.row,Qe=ce.cancelText,bn=(0,Pe.useContext)(ue.J),Pn=Le.Z.useFormInstance();return(0,on.jsx)("a",{onClick:function(){var fn=(0,re.Z)((0,Y.Z)().mark(function gn(an){var ve,Ee,A,ee,fe,Se;return(0,Y.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return an.stopPropagation(),an.preventDefault(),Ee=Ye==="Map",A=[ie,Oe].flat(1).filter(Boolean),ee=(bn==null||(ve=bn.getFieldFormatValue)===null||ve===void 0?void 0:ve.call(bn,A))||(Pn==null?void 0:Pn.getFieldValue(A)),fe=Ee?(0,d.Z)({},A,ee):ee,Sn.next=8,Ke==null?void 0:Ke(Oe,fe,vn,Je);case 8:return Se=Sn.sent,Sn.next=11,Be(Oe);case 11:return Pn.setFieldsValue((0,Cn.Z)({},"".concat(Oe),Ee?(0,Xe.Z)(vn,A):vn)),Sn.abrupt("return",Se);case 13:case"end":return Sn.stop()}},gn)}));return function(gn){return fn.apply(this,arguments)}}(),children:Qe||"\u53D6\u6D88"},"cancel")};function _n(x,ce){var Oe=ce.recordKey,ie=ce.newLineConfig,Je=ce.saveText,Ye=ce.deleteText,Ke=(0,Pe.forwardRef)(Kn),Be=(0,Pe.createRef)();return{save:(0,on.jsx)(Ke,(0,H.Z)((0,H.Z)({},ce),{},{row:x,ref:Be,children:Je}),"save"+Oe),saveRef:Be,delete:(ie==null?void 0:ie.options.recordKey)!==Oe?(0,on.jsx)(Nn,(0,H.Z)((0,H.Z)({},ce),{},{row:x,children:Ye}),"delete"+Oe):void 0,cancel:(0,on.jsx)(Jn,(0,H.Z)((0,H.Z)({},ce),{},{row:x}),"cancel"+Oe)}}function Yn(x){var ce=(0,Pe.useState)(void 0),Oe=(0,v.Z)(ce,2),ie=Oe[0],Je=Oe[1],Ye=function(){var N=new Map,le=function ge(ae,je){ae==null||ae.forEach(function(qe,Me){var We,we=je==null?Me.toString():je+"_"+Me.toString();N.set(we,Ue(x.getRowKey(qe,-1))),N.set((We=Ue(x.getRowKey(qe,-1)))===null||We===void 0?void 0:We.toString(),we),x.childrenColumnName&&qe[x.childrenColumnName]&&ge(qe[x.childrenColumnName],we)})};return le(x.dataSource),N},Ke=(0,Pe.useMemo)(function(){return Ye()},[]),Be=(0,Pe.useRef)(Ke),vn=(0,Pe.useRef)(void 0);(0,nn.Au)(function(){Be.current=Ye()},[x.dataSource]),vn.current=ie;var Qe=x.type||"single",bn=(0,he.Z)(x.dataSource,"children",x.getRowKey),Pn=(0,v.Z)(bn,1),fn=Pn[0],gn=(0,Ge.Z)([],{value:x.editableKeys,onChange:x.onChange?function(De){var N,le,ge;x==null||(N=x.onChange)===null||N===void 0||N.call(x,(le=De==null?void 0:De.filter(function(ae){return ae!==void 0}))!==null&&le!==void 0?le:[],(ge=De==null?void 0:De.map(function(ae){return fn(ae)}).filter(function(ae){return ae!==void 0}))!==null&&ge!==void 0?ge:[])}:void 0}),an=(0,v.Z)(gn,2),ve=an[0],Ee=an[1],A=(0,Pe.useMemo)(function(){var De=Qe==="single"?ve==null?void 0:ve.slice(0,1):ve;return new Set(De)},[(ve||[]).join(","),Qe]),ee=(0,tn.D)(ve),fe=(0,ln.J)(function(De){var N,le,ge,ae,je=(N=x.getRowKey(De,De.index))===null||N===void 0||(le=N.toString)===null||le===void 0?void 0:le.call(N),qe=(ge=x.getRowKey(De,-1))===null||ge===void 0||(ae=ge.toString)===null||ae===void 0?void 0:ae.call(ge),Me=ve==null?void 0:ve.map(function(En){return En==null?void 0:En.toString()}),We=(ee==null?void 0:ee.map(function(En){return En==null?void 0:En.toString()}))||[],we=x.tableName&&!!(We!=null&&We.includes(qe))||!!(We!=null&&We.includes(je));return{recordKey:qe,isEditable:x.tableName&&(Me==null?void 0:Me.includes(qe))||(Me==null?void 0:Me.includes(je)),preIsEditable:we}}),Se=(0,ln.J)(function(De){return A.size>0&&Qe==="single"&&x.onlyOneLineEditorAlertMessage!==!1?(Zn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(A.add(De),Ee(Array.from(A)),!0)}),Ie=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge){var ae,je;return(0,Y.Z)().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ae=Ue(le).toString(),je=Be.current.get(ae),!(!A.has(ae)&&je&&(ge==null||ge)&&x.tableName)){Me.next=5;break}return Ie(je,!1),Me.abrupt("return");case 5:return ie&&ie.options.recordKey===le&&Je(void 0),A.delete(ae),A.delete(Ue(le)),Ee(Array.from(A)),Me.abrupt("return",!0);case 10:case"end":return Me.stop()}},N)}));return function(N,le){return De.apply(this,arguments)}}()),Sn=(0,i.D)((0,re.Z)((0,Y.Z)().mark(function De(){var N,le,ge,ae,je=arguments;return(0,Y.Z)().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:for(le=je.length,ge=new Array(le),ae=0;ae0&&Qe==="single"&&x.onlyOneLineEditorAlertMessage!==!1)return Zn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var le=x.getRowKey(De,-1);if(!le&&le!==0)throw(0,Ce.ET)(!!le,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(A.add(le),Ee(Array.from(A)),(N==null?void 0:N.newRecordType)==="dataSource"||x.tableName){var ge,ae={data:x.dataSource,getRowKey:x.getRowKey,row:(0,H.Z)((0,H.Z)({},De),{},{map_row_parentKey:N!=null&&N.parentKey?(ge=Ue(N==null?void 0:N.parentKey))===null||ge===void 0?void 0:ge.toString():void 0}),key:le,childrenColumnName:x.childrenColumnName||"children"};x.setDataSource(Ve(ae,(N==null?void 0:N.position)==="top"?"top":"update"))}else Je({defaultValue:De,options:(0,H.Z)((0,H.Z)({},N),{},{recordKey:le})});return!0}),pn=(0,rn.YB)(),lr=(x==null?void 0:x.saveText)||pn.getMessage("editableTable.action.save","\u4FDD\u5B58"),Xn=(x==null?void 0:x.deleteText)||pn.getMessage("editableTable.action.delete","\u5220\u9664"),$r=(x==null?void 0:x.cancelText)||pn.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Er=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge,ae,je){var qe,Me,We,we,En,mn,yr;return(0,Y.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,x==null||(qe=x.onSave)===null||qe===void 0?void 0:qe.call(x,le,ge,ae,je);case 2:return we=Wn.sent,Wn.next=5,Ie(le);case 5:if(En=je||vn.current||{},mn=En.options,!(!(mn!=null&&mn.parentKey)&&(mn==null?void 0:mn.recordKey)===le)){Wn.next=9;break}return(mn==null?void 0:mn.position)==="top"?x.setDataSource([ge].concat((0,J.Z)(x.dataSource))):x.setDataSource([].concat((0,J.Z)(x.dataSource),[ge])),Wn.abrupt("return",we);case 9:return yr={data:x.dataSource,getRowKey:x.getRowKey,row:mn?(0,H.Z)((0,H.Z)({},ge),{},{map_row_parentKey:(Me=Ue((We=mn==null?void 0:mn.parentKey)!==null&&We!==void 0?We:""))===null||Me===void 0?void 0:Me.toString()}):ge,key:le,childrenColumnName:x.childrenColumnName||"children"},x.setDataSource(Ve(yr,(mn==null?void 0:mn.position)==="top"?"top":"update")),Wn.next=13,Ie(le);case 13:return Wn.abrupt("return",we);case 14:case"end":return Wn.stop()}},N)}));return function(N,le,ge,ae){return De.apply(this,arguments)}}()),Tr=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge){var ae,je,qe;return(0,Y.Z)().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return je={data:x.dataSource,getRowKey:x.getRowKey,row:ge,key:le,childrenColumnName:x.childrenColumnName||"children"},We.next=3,x==null||(ae=x.onDelete)===null||ae===void 0?void 0:ae.call(x,le,ge);case 3:return qe=We.sent,We.next=6,Ie(le,!1);case 6:return x.setDataSource(Ve(je,"delete")),We.abrupt("return",qe);case 8:case"end":return We.stop()}},N)}));return function(N,le){return De.apply(this,arguments)}}()),Ir=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge,ae,je){var qe,Me;return(0,Y.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,x==null||(qe=x.onCancel)===null||qe===void 0?void 0:qe.call(x,le,ge,ae,je);case 2:return Me=we.sent,we.abrupt("return",Me);case 4:case"end":return we.stop()}},N)}));return function(N,le,ge,ae){return De.apply(this,arguments)}}()),pr=function(N){var le=x.getRowKey(N,N.index),ge={saveText:lr,cancelText:$r,deleteText:Xn,addEditRecord:Gn,recordKey:le,cancelEditable:Ie,index:N.index,tableName:x.tableName,newLineConfig:ie,onCancel:Ir,onDelete:Tr,onSave:Er,editableKeys:ve,setEditableRowKeys:Ee,deletePopconfirmMessage:x.deletePopconfirmMessage||"".concat(pn.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},ae=_n(N,ge);return x.tableName?In.current.set(Be.current.get(Ue(le))||Ue(le),ae.saveRef):In.current.set(Ue(le),ae.saveRef),x.actionRender?x.actionRender(N,ge,{save:ae.save,delete:ae.delete,cancel:ae.cancel}):[ae.save,ae.delete,ae.cancel]};return{editableKeys:ve,setEditableRowKeys:Ee,isEditable:fe,actionRender:pr,startEditable:Se,cancelEditable:Ie,addEditRecord:Gn,saveEditable:Ln,newLineRecord:ie,preEditableKeys:ee,onValuesChange:Fe,getRealIndex:x.getRealIndex}}}}]); diff --git a/7161.39ef68dd.async.js b/7161.39ef68dd.async.js deleted file mode 100644 index caa2baa6..00000000 --- a/7161.39ef68dd.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7161],{36108:function(Pr,q,t){"use strict";t.d(q,{Z:function(){return d}});var c=t(28991),o=t(67294),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 00960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z"}}]},name:"alipay-circle",theme:"outlined"},f=R,S=t(27029),N=function(Z,ve){return o.createElement(S.Z,(0,c.Z)((0,c.Z)({},Z),{},{ref:ve,icon:f}))};N.displayName="AlipayCircleOutlined";var d=o.forwardRef(N)},2603:function(Pr,q,t){"use strict";t.d(q,{Z:function(){return d}});var c=t(28991),o=t(67294),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},f=R,S=t(27029),N=function(Z,ve){return o.createElement(S.Z,(0,c.Z)((0,c.Z)({},Z),{},{ref:ve,icon:f}))};N.displayName="LockOutlined";var d=o.forwardRef(N)},29985:function(Pr,q,t){"use strict";t.d(q,{Z:function(){return d}});var c=t(28991),o=t(67294),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},f=R,S=t(27029),N=function(Z,ve){return o.createElement(S.Z,(0,c.Z)((0,c.Z)({},Z),{},{ref:ve,icon:f}))};N.displayName="MobileOutlined";var d=o.forwardRef(N)},48107:function(Pr,q,t){"use strict";t.d(q,{Z:function(){return d}});var c=t(28991),o=t(67294),R={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 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"},f=R,S=t(27029),N=function(Z,ve){return o.createElement(S.Z,(0,c.Z)((0,c.Z)({},Z),{},{ref:ve,icon:f}))};N.displayName="TaobaoCircleOutlined";var d=o.forwardRef(N)},39464:function(Pr,q,t){"use strict";t.d(q,{Z:function(){return d}});var c=t(28991),o=t(67294),R={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-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"},f=R,S=t(27029),N=function(Z,ve){return o.createElement(S.Z,(0,c.Z)((0,c.Z)({},Z),{},{ref:ve,icon:f}))};N.displayName="WeiboCircleOutlined";var d=o.forwardRef(N)},8788:function(Pr,q,t){"use strict";t.d(q,{G:function(){return Er}});var c=t(22122),o=t(96156),R=t(28481),f=t(28991),S=t(81253),N=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function d(Fr){var xr={};return N.forEach(function(lr){Fr[lr]!==void 0&&(xr[lr]=Fr[lr])}),xr}var J=t(51812),Z=t(26369),ve=t(60249),V=t(94184),p=t.n(V),r=t(48526),oe=t(80334),O=t(67294),ae=t(30939),M=t(9715),te=t(86835),me=t(41036),$e=t(92210),Ne=t(88306),De=t(8880),nr=t(80705),ar=["name","children","ignoreFormListField"],vr=function(xr){var lr=xr.name,Nr=xr.children,ke=xr.ignoreFormListField,Q=(0,S.Z)(xr,ar),Ee=(0,O.useContext)(me.Z),he=(0,O.useContext)(nr.J),mr=(0,O.useMemo)(function(){return lr.map(function(pe){var He,Pe=[pe];return!ke&&he.name!==void 0&&((He=he.listName)===null||He===void 0?void 0:He.length)&&Pe.unshift(he.listName),Pe.flat(1)})},[he.listName,he.name,ke,lr]);return O.createElement(te.Z.Item,(0,c.Z)({},Q,{noStyle:!0,shouldUpdate:function(He,Pe,fr){if(typeof Q.shouldUpdate=="boolean")return Q.shouldUpdate;if(typeof Q.shouldUpdate=="function"){var P;return(P=Q.shouldUpdate)===null||P===void 0?void 0:P.call(Q,He,Pe,fr)}return mr.some(function(E){return!(0,ve.Z)((0,Ne.Z)(He,E),(0,Ne.Z)(Pe,E))})}}),function(pe){for(var He={},Pe=0;Pe0&&arguments[0]!==void 0?arguments[0]:21;if(!window.crypto)return(jr+=1).toFixed(0);for(var a="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var l=63&n[e];a+=l<36?l.toString(36):l<62?(l-26).toString(36).toUpperCase():l<63?"_":"-"}return a},Yr=function(){return typeof window=="undefined"?Vr():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Vr()},Ze=t(56725),Hr=t(60249),ir=function(e,a,n){return(0,Hr.Z)(e,a,n)};function Ur(g,e){var a=(0,r.useRef)();return ir(g,a.current,e)||(a.current=g),a.current}function Er(g,e,a){(0,r.useEffect)(g,Ur(e||[],a))}function Fr(g,e,a,n){var l=useDebounceFn(_asyncToGenerator(_regeneratorRuntime().mark(function s(){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:g();case 1:case"end":return u.stop()}},s)})),n||16);useEffect(function(){l.run()},Ur(e||[],a))}var xr=Er,lr=function(e){var a=(0,r.useRef)(e);return a.current=e,a},Nr=lr;function ke(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,a=arguments.length>2?arguments[2]:void 0,n=(0,r.useState)(g),l=(0,M.Z)(n,2),s=l[0],v=l[1],u=Nr(g);return(0,r.useEffect)(function(){var i=setTimeout(function(){v(u.current)},e);return function(){return clearTimeout(i)}},a?[e].concat((0,vr.Z)(a)):void 0),s}var Q=t(29405),Ee=t(54029),he=t(79166),mr=t(59189),pe={Success:function(e){var a=e.children;return r.createElement(he.Z,{status:"success",text:a})},Error:function(e){var a=e.children;return r.createElement(he.Z,{status:"error",text:a})},Default:function(e){var a=e.children;return r.createElement(he.Z,{status:"default",text:a})},Processing:function(e){var a=e.children;return r.createElement(he.Z,{status:"processing",text:a})},Warning:function(e){var a=e.children;return r.createElement(he.Z,{status:"warning",text:a})},success:function(e){var a=e.children;return r.createElement(he.Z,{status:"success",text:a})},error:function(e){var a=e.children;return r.createElement(he.Z,{status:"error",text:a})},default:function(e){var a=e.children;return r.createElement(he.Z,{status:"default",text:a})},processing:function(e){var a=e.children;return r.createElement(he.Z,{status:"processing",text:a})},warning:function(e){var a=e.children;return r.createElement(he.Z,{status:"warning",text:a})}},He=function(e){var a=e.color,n=e.children;return r.createElement(he.Z,{color:a,text:n})},Pe=pe,fr=t(81539),P=t(43358),E=t(34041),j=t(47673),X=t(4107),qe=t(76570),ce=t(76422),fe=t(26435),Ge=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],or=function(e,a){return(0,N.Z)(a)!=="object"?e[a]||a:e[a==null?void 0:a.value]||a.label},Je=function(e,a){var n=e.label,l=e.prefixCls,s=e.onChange,v=e.value,u=e.mode,i=e.children,m=e.defaultValue,h=e.size,C=e.showSearch,y=e.disabled,b=e.style,T=e.className,x=e.bordered,I=e.options,z=e.onSearch,w=e.allowClear,L=e.labelInValue,U=e.fieldNames,k=e.lightLabel,B=e.labelTrigger,A=(0,R.Z)(e,Ge),de=e.placeholder,se=de===void 0?n:de,Ae=U||{},K=Ae.label,H=K===void 0?"label":K,$=Ae.value,G=$===void 0?"value":$,cr=(0,r.useContext)(me.ZP.ConfigContext),Mr=cr.getPrefixCls,Or=Mr("pro-field-select-light-select"),Tr=(0,r.useState)(!1),Lr=(0,M.Z)(Tr,2),hr=Lr[0],Be=Lr[1],Br=(0,r.useState)(""),Qe=(0,M.Z)(Br,2),Xe=Qe[0],kr=Qe[1],Kr=(0,r.useMemo)(function(){var $r={};return I==null||I.forEach(function(pr){var ze=pr[H],Ye=pr[G];$r[Ye]=ze||Ye}),$r},[H,I,G]),pt=Array.isArray(v)?v.map(function($r){return or(Kr,$r)}):or(Kr,v);return r.createElement("div",{className:De()(Or,(0,ae.Z)({},"".concat(Or,"-searchable"),C),T),style:b,onClick:function(pr){var ze,Ye,We;if(!y){var Ar=k==null||(ze=k.current)===null||ze===void 0||(Ye=ze.labelRef)===null||Ye===void 0||(We=Ye.current)===null||We===void 0?void 0:We.contains(pr.target);Be(Ar?!hr:!0)}}},r.createElement(E.Z,(0,c.Z)({},A,{allowClear:w,value:v,mode:u,labelInValue:L,size:h,disabled:y,onChange:function(pr,ze){s==null||s(pr,ze),u!=="multiple"&&setTimeout(function(){Be(!1)},0)},bordered:x,showSearch:C,onSearch:z,style:b,dropdownRender:function(pr){return r.createElement("div",{ref:a},C&&r.createElement("div",{style:{margin:"4px 8px"}},r.createElement(X.Z,{value:Xe,allowClear:w,onChange:function(Ye){kr(Ye.target.value.toLowerCase()),z==null||z(Ye.target.value)},onKeyDown:function(Ye){Ye.stopPropagation()},style:{width:"100%"},prefix:r.createElement(qe.Z,null)})),pr)},open:hr,onDropdownVisibleChange:function(pr){pr||setTimeout(function(){kr("")},0),B||Be(pr)},prefixCls:l,options:Xe?I==null?void 0:I.filter(function($r){var pr,ze,Ye,We,Ar;return((pr=String($r[H]))===null||pr===void 0||(ze=pr.toLowerCase())===null||ze===void 0?void 0:ze.includes(Xe))||((Ye=$r[G])===null||Ye===void 0||(We=Ye.toString())===null||We===void 0||(Ar=We.toLowerCase())===null||Ar===void 0?void 0:Ar.includes(Xe))}):I})),r.createElement(ce.Z,{ellipsis:!0,size:h,label:n,placeholder:se,disabled:y,expanded:hr,bordered:x,allowClear:w,value:pt||(v==null?void 0:v.label)||v,onClear:function(){s==null||s(void 0,void 0)},ref:k}))},_e=r.forwardRef(Je),rr=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],ie=E.Z.Option,Re=E.Z.OptGroup,gr=function(e,a){var n=e.optionItemRender,l=e.mode,s=e.onSearch,v=e.onFocus,u=e.onChange,i=e.autoClearSearchValue,m=e.searchOnFocus,h=m===void 0?!1:m,C=e.resetAfterSelect,y=C===void 0?!1:C,b=e.optionFilterProp,T=b===void 0?"label":b,x=e.optionLabelProp,I=x===void 0?"label":x,z=e.className,w=e.disabled,L=e.options,U=e.fetchData,k=e.resetData,B=e.prefixCls,A=e.onClear,de=e.searchValue,se=e.showSearch,Ae=e.fieldNames,K=(0,R.Z)(e,rr),H=Ae||{},$=H.label,G=$===void 0?"label":$,cr=H.value,Mr=cr===void 0?"value":cr,Or=H.options,Tr=Or===void 0?"options":Or,Lr=(0,r.useState)(de),hr=(0,M.Z)(Lr,2),Be=hr[0],Br=hr[1],Qe=(0,r.useRef)();(0,r.useImperativeHandle)(a,function(){return Qe.current}),(0,r.useEffect)(function(){if(K.autoFocus){var ze;Qe==null||(ze=Qe.current)===null||ze===void 0||ze.focus()}},[K.autoFocus]),(0,r.useEffect)(function(){Br(de)},[de]);var Xe=(0,r.useContext)(me.ZP.ConfigContext),kr=Xe.getPrefixCls,Kr=kr("pro-filed-search-select",B),pt=De()(Kr,z,(0,ae.Z)({},"".concat(Kr,"-disabled"),w)),$r=function(Ye,We){return Array.isArray(Ye)&&Ye.length>0?Ye.map(function(Ar,at){var et=We==null?void 0:We[at],dt=(et==null?void 0:et["data-item"])||{};return(0,o.Z)((0,o.Z)({},dt),Ar)}):[]},pr=function ze(Ye){return Ye.map(function(We){var Ar,at=We.disabled,et=We.className,dt=We.optionType,vt=We[G],Nt=We[Mr],Vn=(Ar=We[Tr])!==null&&Ar!==void 0?Ar:[];return dt==="optGroup"?r.createElement(Re,{key:Nt,label:vt},ze(Vn)):r.createElement(ie,(0,c.Z)({},We,{value:Nt,key:Nt||(vt==null?void 0:vt.toString()),disabled:at,"data-item":We,className:"".concat(Kr,"-option ").concat(et||""),label:vt}),(n==null?void 0:n(We))||vt)})};return r.createElement(E.Z,(0,c.Z)({ref:Qe,className:pt,allowClear:!0,autoClearSearchValue:i,disabled:w,mode:l,showSearch:se,searchValue:Be,optionFilterProp:T,optionLabelProp:I,onClear:function(){A==null||A(),U(""),se&&Br("")}},K,{onSearch:se?function(ze){U(ze),s==null||s(ze),Br(ze)}:void 0,onChange:function(Ye,We){se&&i&&(U(""),s==null||s(""),Br(""));for(var Ar=arguments.length,at=new Array(Ar>2?Ar-2:0),et=2;etG?U([G,$]):$===void 0&&G===void 0&&U(void 0)}},de=function(H,$){var G=(0,vr.Z)(L||[]);G[H]=$===null?void 0:$,U(G)},se=(i==null?void 0:i.placeholder)||v,Ae=r.createElement(X.Z.Group,{compact:!0,onBlur:A},r.createElement(_r.Z,(0,c.Z)({},i,{placeholder:Array.isArray(se)?se[0]:se,id:I!=null?I:"".concat(I,"-0"),style:{width:"calc((100% - ".concat(y,"px) / 2)")},value:L==null?void 0:L[0],defaultValue:T==null?void 0:T[0],onChange:function(H){return de(0,H)}})),r.createElement(X.Z,{style:{width:y,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:h,disabled:!0}),r.createElement(_r.Z,(0,c.Z)({},i,{placeholder:Array.isArray(se)?se[1]:se,id:I!=null?I:"".concat(I,"-1"),style:{width:"calc((100% - ".concat(y,"px) / 2)"),borderLeft:0},value:L==null?void 0:L[1],defaultValue:T==null?void 0:T[1],onChange:function(H){return de(1,H)}})));return u?u(n,(0,o.Z)({mode:l},i),Ae):Ae}return null},rt=r.forwardRef(Sr),Qr=t(22385),Pt=t(61580),st=function(e){var a=e.text,n=e.mode,l=e.render,s=e.renderFormItem,v=e.format,u=e.fieldProps,i=(0,d.YB)();if(n==="read"){var m=r.createElement(Pt.Z,{title:ur()(a).format((u==null?void 0:u.format)||v||"YYYY-MM-DD HH:mm:ss")},ur()(a).fromNow());return l?l(a,(0,o.Z)({mode:n},u),r.createElement(r.Fragment,null,m)):r.createElement(r.Fragment,null,m)}if(n==="edit"||n==="update"){var h=i.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C=tt(u.value),y=r.createElement(xe.Z,(0,c.Z)({placeholder:h,showTime:!0},u,{value:C}));return s?s(a,(0,o.Z)({mode:n},u),y):y}return null},Ft=st,bt=t(12968),yt=t(62462),ut=r.forwardRef(function(g,e){var a=g.text,n=g.mode,l=g.render,s=g.renderFormItem,v=g.fieldProps,u=g.placeholder,i=g.width;if(n==="read"){var m=r.createElement(yt.Z,(0,c.Z)({ref:e,width:i||32,src:a},v));return l?l(a,(0,o.Z)({mode:n},v),m):m}if(n==="edit"||n==="update"){var h=r.createElement(X.Z,(0,c.Z)({ref:e,placeholder:u},v));return s?s(a,(0,o.Z)({mode:n},v),h):h}return null}),Ct=ut,Bt=t(76592),Rt=function(e,a){var n,l=e.border,s=l===void 0?!1:l,v=e.children,u=(0,r.useContext)(me.ZP.ConfigContext),i=u.getPrefixCls,m=i("pro-field-index-column");return r.createElement("div",{ref:a,className:De()(m,(n={},(0,ae.Z)(n,"".concat(m,"-border"),s),(0,ae.Z)(n,"top-three",v>3),n))},v)},St=r.forwardRef(Rt),Et=t(97435),It=["content","numberFormatOptions","numberPopoverRender"],Ot=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Mt=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Se={style:"currency",currency:"USD"},Ce={style:"currency",currency:"RUB"},Le={style:"currency",currency:"RSD"},je={style:"currency",currency:"MYR"},yr={style:"currency",currency:"BRL"},Xr={default:Mt,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Se,"ru-RU":Ce,"ms-MY":je,"sr-RS":Le,"pt-BR":yr},Rr=function(e,a,n,l){var s=a;return typeof s=="string"&&(s=Number(s)),!s&&s!==0?"":new Intl.NumberFormat(e||"zh-Hans-CN",(0,o.Z)((0,o.Z)({},Xr[e||"zh-Hans-CN"]||Xr["zh-Hans-CN"]),{},{maximumFractionDigits:n},l)).format(s)},Ir=2,Tt=r.forwardRef(function(g,e){var a=g.content,n=g.numberFormatOptions,l=g.numberPopoverRender,s=(0,R.Z)(g,It),v=(0,Zr.Z)(function(){return s.defaultValue},{value:s.value,onChange:s.onChange}),u=(0,M.Z)(v,2),i=u[0],m=u[1],h=a==null?void 0:a((0,o.Z)((0,o.Z)({},s),{},{value:i})),C={visible:h?s.visible:!1};return r.createElement(Oe.Z,(0,c.Z)({placement:"topLeft"},C,{trigger:["focus","click"],content:h,getPopupContainer:function(b){return(b==null?void 0:b.parentElement)||document.body}}),r.createElement(_r.Z,(0,c.Z)({ref:e},s,{value:i,onChange:m})))}),xt=function(e,a){var n,l,s=e.text,v=e.mode,u=e.render,i=e.renderFormItem,m=e.fieldProps,h=e.proFieldKey,C=e.plain,y=e.valueEnum,b=e.placeholder,T=e.locale,x=T===void 0?(n=m.customSymbol)!==null&&n!==void 0?n:"zh-Hans-CN":T,I=e.customSymbol,z=I===void 0?m.customSymbol:I,w=e.numberFormatOptions,L=w===void 0?m==null?void 0:m.numberFormatOptions:w,U=e.numberPopoverRender,k=U===void 0?(m==null?void 0:m.numberPopoverRender)||!1:U,B=(0,R.Z)(e,Ot),A=(l=m==null?void 0:m.precision)!==null&&l!==void 0?l:Ir,de=(0,d.YB)();x&&d.Go[x]&&(de=d.Go[x]);var se=(0,r.useMemo)(function(){if(z)return z;var H=de.getMessage("moneySymbol","\uFFE5");if(!(B.moneySymbol===!1||m.moneySymbol===!1))return H},[z,m.moneySymbol,de,B.moneySymbol]);if(v==="read"){var Ae=r.createElement("span",{ref:a},Rr(se?x:!1,s,A,L!=null?L:m.numberFormatOptions));return u?u(s,(0,o.Z)({mode:v},m),Ae):Ae}if(v==="edit"||v==="update"){var K=r.createElement(Tt,(0,c.Z)({content:function($){var G,cr;if(k!==!1&&!!$.value){var Mr=new RegExp("/B(?=(d{".concat(3+(A-Ir),"})+(?!d))/g")),Or=Rr(se?x:!1,(G=$.value)===null||G===void 0||(cr=G.toString())===null||cr===void 0?void 0:cr.replace(Mr,","),A,(0,o.Z)((0,o.Z)({},L),{},{notation:"compact"}));return typeof k=="function"?k==null?void 0:k($,Or):Or}},ref:a,precision:A,formatter:function($){if($&&se){var G=new RegExp("/B(?=(d{".concat(3+(A-Ir),"})+(?!d))/g"));return"".concat(se," ").concat($).replace(G,",")}return $==null?void 0:$.toString()},parser:function($){return se&&$?$.replace(new RegExp("\\".concat(se,"\\s?|(,*)"),"g"),""):$},placeholder:b},(0,Et.Z)(m,["numberFormatOptions","precision","numberPopoverRender","customSymbol"])));return i?i(s,(0,o.Z)({mode:v},m),K):K}return null},Wt=r.forwardRef(xt),wt=function(e){return e.map(function(a,n){return r.isValidElement(a)?r.cloneElement(a,(0,o.Z)({key:n},a==null?void 0:a.props)):r.createElement(r.Fragment,{key:n},a)})},Yt=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.fieldProps,u=(0,r.useContext)(me.ZP.ConfigContext),i=u.getPrefixCls,m=i("pro-field-option");if((0,r.useImperativeHandle)(a,function(){return{}}),s){var h=s(n,(0,o.Z)({mode:l},v),r.createElement(r.Fragment,null));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:r.createElement(Cr.Z,{size:16,className:m},wt(h))}return!n||!Array.isArray(n)?r.isValidElement(n)?n:null:r.createElement(Cr.Z,{size:16,className:m},wt(n))},Ht=r.forwardRef(Yt),Gt=t(95357),Jt=t(88633),Qt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Xt=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.proFieldKey,m=(0,R.Z)(e,Qt),h=(0,d.YB)(),C=(0,Zr.Z)(function(){return m.visible||!1},{value:m.visible,onChange:m.onVisible}),y=(0,M.Z)(C,2),b=y[0],T=y[1];if(l==="read"){var x=r.createElement(r.Fragment,null,"-");return n&&(x=r.createElement(Cr.Z,null,r.createElement("span",{ref:a},b?n:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"),r.createElement("a",{onClick:function(){return T(!b)}},b?r.createElement(Gt.Z,null):r.createElement(Jt.Z,null)))),s?s(n,(0,o.Z)({mode:l},u),x):x}if(l==="edit"||l==="update"){var I=r.createElement(X.Z.Password,(0,c.Z)({placeholder:h.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:a},u));return v?v(n,(0,o.Z)({mode:l},u),I):I}return null},kt=r.forwardRef(Xt),qt=t(49323),Dt=t.n(qt);function _t(g){return g===0?null:g>0?"+":"-"}function en(g){return g===0?"#595959":g>0?"#ff4d4f":"#52c41a"}function rn(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?g.toFixed(e):g}var tn=function(e,a){var n=e.text,l=e.prefix,s=e.precision,v=e.suffix,u=v===void 0?"%":v,i=e.mode,m=e.showColor,h=m===void 0?!1:m,C=e.render,y=e.renderFormItem,b=e.fieldProps,T=e.placeholder,x=e.showSymbol,I=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Dt()(n.replace("%","")):Dt()(n)},[n]),z=(0,r.useMemo)(function(){return typeof x=="function"?x==null?void 0:x(n):x},[x,n]);if(i==="read"){var w=h?{color:en(I)}:{},L=r.createElement("span",{style:w,ref:a},l&&r.createElement("span",null,l),z&&r.createElement(r.Fragment,null,_t(I)," "),rn(Math.abs(I),s),u&&u);return C?C(n,(0,o.Z)((0,o.Z)({mode:i},b),{},{prefix:l,precision:s,showSymbol:z,suffix:u}),L):L}if(i==="edit"||i==="update"){var U=r.createElement(_r.Z,(0,c.Z)({ref:a,formatter:function(B){return B&&l?"".concat(l," ").concat(B).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):B},parser:function(B){return B?B.replace(/.*\s|,/g,""):""},placeholder:T},b));return y?y(n,(0,o.Z)({mode:i},b),U):U}return null},zt=r.forwardRef(tn),jn=t(34669),nn=t(54458);function an(g){return g===100?"success":g<0?"exception":g<100?"active":"normal"}var ln=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.plain,u=e.renderFormItem,i=e.fieldProps,m=e.placeholder,h=(0,r.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Dt()(n.replace("%","")):Dt()(n)},[n]);if(l==="read"){var C=r.createElement(nn.Z,(0,c.Z)({ref:a,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:v?10:void 0,status:an(h)},i));return s?s(h,(0,o.Z)({mode:l},i),C):C}if(l==="edit"||l==="update"){var y=r.createElement(_r.Z,(0,c.Z)({ref:a,placeholder:m},i));return u?u(n,(0,o.Z)({mode:l},i),y):y}return null},$t=r.forwardRef(ln),Yn=t(88983),Lt=t(47933),Hn=t(25702),on=["radioType","renderFormItem","mode","render"],un=function(e,a){var n=e.radioType,l=e.renderFormItem,s=e.mode,v=e.render,u=(0,R.Z)(e,on),i=(0,r.useContext)(me.ZP.ConfigContext),m=i.getPrefixCls,h=m("pro-field-radio"),C=ne(u),y=(0,M.Z)(C,3),b=y[0],T=y[1],x=y[2],I=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return(0,o.Z)((0,o.Z)({},I.current||{}),{},{fetchData:function(){return x()}})}),b)return r.createElement(ar.Z,{size:"small"});if(s==="read"){var z=(T==null?void 0:T.length)?T==null?void 0:T.reduce(function(B,A){var de;return(0,o.Z)((0,o.Z)({},B),{},(0,ae.Z)({},(de=A.value)!==null&&de!==void 0?de:"",A.label))},{}):void 0,w=r.createElement(r.Fragment,null,le(u.text,Ie(u.valueEnum||z)));return v?v(u.text,(0,o.Z)({mode:s},u.fieldProps),w)||null:w}if(s==="edit"){var L,U=n==="button"?Lt.ZP.Button:Lt.ZP,k=r.createElement(Lt.ZP.Group,(0,c.Z)({ref:I},u.fieldProps,{className:De()((L=u.fieldProps)===null||L===void 0?void 0:L.className,"".concat(h,"-").concat(u.fieldProps.layout||"horizontal")),options:void 0}),T==null?void 0:T.map(function(B){return r.createElement(U,(0,c.Z)({key:B.value},B),B.label)}));return l?l(u.text,(0,o.Z)({mode:s},u.fieldProps),k)||null:k}return null},Ut=r.forwardRef(un),dn=function(e,a){var n=e.text,l=e.mode,s=e.format,v=e.render,u=e.renderFormItem,i=e.plain,m=e.showTime,h=e.fieldProps,C=(0,d.YB)(),y=Array.isArray(n)?n:[],b=(0,M.Z)(y,2),T=b[0],x=b[1],I=(0,r.useCallback)(function(B){if(typeof(h==null?void 0:h.format)=="function"){var A;return h==null||(A=h.format)===null||A===void 0?void 0:A.call(h,B)}return(h==null?void 0:h.format)||s||"YYYY-MM-DD"},[h,s]),z=T?ur()(T).format(I(ur()(T))):"",w=x?ur()(x).format(I(ur()(x))):"";if(l==="read"){var L=r.createElement("div",{ref:a},r.createElement("div",null,z||"-"),r.createElement("div",null,w||"-"));return v?v(n,(0,o.Z)({mode:l},h),r.createElement("span",null,L)):L}if(l==="edit"||l==="update"){var U=tt(h.value),k=r.createElement(xe.Z.RangePicker,(0,c.Z)({ref:a,format:s,showTime:m,placeholder:[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:i===void 0?!0:!i},h,{value:U}));return u?u(n,(0,o.Z)({mode:l},h),k):k}return null},Kt=r.forwardRef(dn),Gn=t(96433),Vt=t(2864),sn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps;if(l==="read"){var i=r.createElement(Vt.Z,(0,c.Z)({allowHalf:!0,disabled:!0,ref:a},u,{value:n}));return s?s(n,(0,o.Z)({mode:l},u),r.createElement(r.Fragment,null,i)):i}if(l==="edit"||l==="update"){var m=r.createElement(Vt.Z,(0,c.Z)({allowHalf:!0,ref:a},u));return v?v(n,(0,o.Z)({mode:l},u),m):m}return null},cn=r.forwardRef(sn);function vn(g){var e="",a=Math.floor(g/(3600*24)),n=Math.floor(g/3600),l=Math.floor(g/60%60),s=Math.floor(g%60);return e="".concat(s,"\u79D2"),l>0&&(e="".concat(l,"\u5206\u949F").concat(e)),n>0&&(e="".concat(n,"\u5C0F\u65F6").concat(e)),a>0&&(e="".concat(a,"\u5929").concat(e)),e}var mn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.placeholder;if(l==="read"){var m=vn(Number(n)),h=r.createElement("span",{ref:a},m);return s?s(n,(0,o.Z)({mode:l},u),h):h}if(l==="edit"||l==="update"){var C=r.createElement(_r.Z,(0,c.Z)({ref:a,min:0,style:{width:"100%"},placeholder:i},u));return v?v(n,(0,o.Z)({mode:l},u),C):C}return null},fn=r.forwardRef(mn),Jn=t(77576),gn=t(12028),hn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=(0,d.YB)(),m=(0,r.useMemo)(function(){var y,b;return n==null||"".concat(n).length<1?"-":n?(y=u==null?void 0:u.checkedChildren)!==null&&y!==void 0?y:i.getMessage("switch.open","\u6253\u5F00"):(b=u==null?void 0:u.unCheckedChildren)!==null&&b!==void 0?b:i.getMessage("switch.close","\u5173\u95ED")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,n]);if(l==="read")return s?s(n,(0,o.Z)({mode:l},u),r.createElement(r.Fragment,null,m)):m!=null?m:"-";if(l==="edit"||l==="update"){var h,C=r.createElement(gn.Z,(0,c.Z)({ref:a},(0,Et.Z)(u,["value"]),{checked:(h=u==null?void 0:u.checked)!==null&&h!==void 0?h:u==null?void 0:u.value}));return v?v(n,(0,o.Z)({mode:l},u),C):C}return null},pn=r.forwardRef(hn),Pn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=e.emptyText,m=i===void 0?"-":i,h=u||{},C=h.autoFocus,y=h.prefix,b=y===void 0?"":y,T=h.suffix,x=T===void 0?"":T,I=(0,d.YB)(),z=(0,r.useRef)();if((0,r.useImperativeHandle)(a,function(){return z.current}),(0,r.useEffect)(function(){if(C){var B;(B=z.current)===null||B===void 0||B.focus()}},[C]),l==="read"){var w=r.createElement(r.Fragment,null,b,n!=null?n:m,x);if(s){var L;return(L=s(n,(0,o.Z)({mode:l},u),w))!==null&&L!==void 0?L:m}return w}if(l==="edit"||l==="update"){var U=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),k=r.createElement(X.Z,(0,c.Z)({ref:z,placeholder:U,allowClear:!0},u));return v?v(n,(0,o.Z)({mode:l},u),k):k}return null},Fn=r.forwardRef(Pn),yn=function(e,a){var n=e.text,l=e.mode,s=e.render,v=e.renderFormItem,u=e.fieldProps,i=(0,d.YB)();if(l==="read"){var m=r.createElement("span",{ref:a},n!=null?n:"-");return s?s(n,(0,o.Z)({mode:l},u),m):m}if(l==="edit"||l==="update"){var h=r.createElement(X.Z.TextArea,(0,c.Z)({ref:a,rows:3,onKeyPress:function(y){y.key==="Enter"&&y.stopPropagation()},placeholder:i.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},u));return v?v(n,(0,o.Z)({mode:l},u),h):h}return null},Cn=r.forwardRef(yn),Qn=t(39002),jt=t(68351),En=function(e,a){var n=e.text,l=e.mode,s=e.light,v=e.label,u=e.format,i=e.render,m=e.renderFormItem,h=e.plain,C=e.fieldProps,y=e.lightLabel,b=e.labelTrigger,T=(0,r.useState)(!1),x=(0,M.Z)(T,2),I=x[0],z=x[1],w=(0,r.useContext)(me.ZP.SizeContext),L=(0,r.useContext)(me.ZP.ConfigContext),U=L.getPrefixCls,k=U("pro-field-date-picker"),B=(C==null?void 0:C.format)||u||"HH:mm:ss",A=ur().isMoment(n)||typeof n=="number";if(l==="read"){var de=r.createElement("span",{ref:a},n?ur()(n,A?void 0:B).format(B):"-");return i?i(n,(0,o.Z)({mode:l},C),r.createElement("span",null,de)):de}if(l==="edit"||l==="update"){var se,Ae=C.disabled,K=C.onChange,H=C.placeholder,$=C.allowClear,G=C.value,cr=tt(G,B);if(s){var Mr=cr&&cr.format(B)||"";se=r.createElement("div",{className:"".concat(k,"-light"),onClick:function(Tr){var Lr,hr,Be,Br=y==null||(Lr=y.current)===null||Lr===void 0||(hr=Lr.labelRef)===null||hr===void 0||(Be=hr.current)===null||Be===void 0?void 0:Be.contains(Tr.target);z(Br?!I:!0)}},r.createElement(jt.Z,(0,c.Z)({value:cr,format:u,ref:a},C,{onChange:function(Tr){K==null||K(Tr),setTimeout(function(){z(!1)},0)},onOpenChange:function(Tr){b||z(Tr)},open:I})),r.createElement(ce.Z,{label:v,disabled:Ae,placeholder:H,size:w,value:Mr,allowClear:$,onClear:function(){return K==null?void 0:K(null)},expanded:I,ref:y}))}else se=r.createElement(xe.Z.TimePicker,(0,c.Z)({ref:a,format:u,bordered:h===void 0?!0:!h},C,{value:cr}));return m?m(n,(0,o.Z)({mode:l},C),se):se}return null},xn=function(e){var a=e.text,n=e.mode,l=e.format,s=e.render,v=e.renderFormItem,u=e.plain,i=e.fieldProps,m=(i==null?void 0:i.format)||l||"HH:mm:ss",h=Array.isArray(a)?a:[],C=(0,M.Z)(h,2),y=C[0],b=C[1],T=ur().isMoment(y)||typeof y=="number",x=ur().isMoment(b)||typeof b=="number",I=y?ur()(y,T?void 0:m).format(m):"",z=b?ur()(b,x?void 0:m).format(m):"";if(n==="read"){var w=r.createElement("div",null,r.createElement("div",null,I||"-"),r.createElement("div",null,z||"-"));return s?s(a,(0,o.Z)({mode:n},i),r.createElement("span",null,w)):w}if(n==="edit"||n==="update"){var L=i.value,U=tt(L,m),k=r.createElement(jt.Z.RangePicker,(0,c.Z)({format:l,bordered:u===void 0?!0:!u},i,{value:U}));return v?v(a,(0,o.Z)({mode:n},i),k):k}return null},Zn=r.forwardRef(En),Xn=t(62999),bn=t(54680),Sn=["radioType","renderFormItem","mode","light","render"],Mn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","searchValue"],Tn=function(e,a){var n=e.radioType,l=e.renderFormItem,s=e.mode,v=e.light,u=e.render,i=(0,R.Z)(e,Sn),m=(0,r.useContext)(me.ZP.ConfigContext),h=m.getPrefixCls,C=h("pro-field-tree-select"),y=h("pro-core-field-label"),b=(0,r.useRef)(null),T=i.fieldProps||{},x=T.onSearch,I=T.onClear,z=T.onChange,w=T.onBlur,L=T.showSearch,U=T.autoClearSearchValue,k=T.treeData,B=T.searchValue,A=(0,R.Z)(T,Mn),de=ne((0,o.Z)((0,o.Z)({},i),{},{defaultKeyWords:B})),se=(0,M.Z)(de,3),Ae=se[0],K=se[1],H=se[2],$=(0,Zr.Z)("",{onChange:x,value:B}),G=(0,M.Z)($,2),cr=G[0],Mr=G[1];(0,r.useImperativeHandle)(a,function(){return(0,o.Z)((0,o.Z)({},b.current||{}),{},{fetchData:function(){return H()}})});var Or=(0,r.useMemo)(function(){if(s==="read"){var Qe=(A==null?void 0:A.fieldNames)||{},Xe=Qe.value,kr=Xe===void 0?"value":Xe,Kr=Qe.label,pt=Kr===void 0?"label":Kr,$r=Qe.children,pr=$r===void 0?"children":$r,ze=new Map,Ye=function We(Ar){if(!(Ar==null?void 0:Ar.length))return ze;for(var at=Ar.length,et=0;et0&&arguments[0]!==void 0?arguments[0]:{},De=Ne.children,nr=Ne.Wrapper,ar=(0,J.Z)(Ne,V);return M?Z.createElement(N.Z,(0,d.Z)({gutter:8},te,ar),De):nr?Z.createElement(nr,null,De):De},ColWrapper:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},De=Ne.children,nr=Ne.Wrapper,ar=(0,J.Z)(Ne,p),vr=(0,Z.useMemo)(function(){var Dr=(0,f.Z)((0,f.Z)({},me),ar);return typeof Dr.span=="undefined"&&typeof Dr.xs=="undefined"&&(Dr.xs=24),Dr},[ar]);return M?Z.createElement(R.Z,vr,De):nr?Z.createElement(nr,null,De):De}}},oe=function(ae){var M=(0,Z.useMemo)(function(){return(0,c.Z)(ae)==="object"?ae:{grid:ae}},[ae]),te=(0,Z.useContext)(ve.Z),me=te.grid;return(0,Z.useMemo)(function(){return r({grid:!!(me||M.grid),rowProps:M==null?void 0:M.rowProps,colProps:M==null?void 0:M.colProps,Wrapper:M==null?void 0:M.Wrapper})},[M==null?void 0:M.Wrapper,M==null?void 0:M.colProps,M.grid,M==null?void 0:M.rowProps,me])}},95073:function(Pr,q,t){"use strict";t.d(q,{U:function(){return Y}});var c=t(22122),o=t(84305),R=t(75901),f=t(28991),S=t(81253),N=t(54787),d=t(67294),J=t(9715),Z=t(86835),ve=t(20228),V=t(11382),p=t(96156),r=t(55507),oe=t(92137),O=t(28481),ae=t(22270),M=t(85061),te=t(90484),me=t(88306),$e=t(8880),Ne=t(74763),De=t(92210);function nr(F){return(0,te.Z)(F)!=="object"?!1:F===null?!0:!(d.isValidElement(F)||F.constructor===RegExp||F instanceof Map||F instanceof Set||F instanceof HTMLElement||F instanceof Blob||F instanceof File||Array.isArray(F))}var ar=function(D,ye){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,_=Object.keys(ye).reduce(function(er,ee){var re=ye[ee];return(0,Ne.Z)(re)||(er[ee]=re),er},{});if(Object.keys(_).length<1||typeof window=="undefined"||(0,te.Z)(D)!=="object"||(0,Ne.Z)(D)||D instanceof Blob)return D;var Me=Array.isArray(D)?[]:{},Ke=function er(ee,re){var tr=Array.isArray(ee),W=tr?[]:{};return ee==null||ee===void 0?W:(Object.keys(ee).forEach(function(Fe){var Te=re?[re,Fe].flat(1):[Fe].flat(1),ue=ee[Fe],we=(0,me.Z)(_,Te),sr=function(){var Oe=typeof we=="function"?we==null?void 0:we(ue,Fe,ee):Fe;if(Array.isArray(Oe)){W=(0,$e.Z)(W,Oe,ue);return}(0,te.Z)(Oe)==="object"&&!Array.isArray(Me)?Me=(0,f.Z)((0,f.Z)({},Me),Oe):(0,te.Z)(Oe)==="object"&&Array.isArray(Me)?W=(0,f.Z)((0,f.Z)({},W),Oe):Oe&&(W=(0,$e.Z)(W,[Oe],ue))};if(we&&typeof we=="function"&&sr(),typeof window!="undefined"){if(nr(ue)){var Wr=er(ue,Te);if(Object.keys(Wr).length<1)return;W=(0,$e.Z)(W,[Fe],Wr);return}sr()}}),ne?W:ee)};return Me=Array.isArray(D)&&Array.isArray(Me)?(0,M.Z)(Ke(D)):(0,De.T)({},Ke(D),Me),Me},vr=ar,Dr=t(23312),Cr=t(56725),jr=t(26369),Vr=t(60249),Yr=t(41036),Ze=t(29405),Hr=0;function ir(F){var D=(0,d.useState)(function(){return F.proFieldKey?F.proFieldKey.toString():(Hr+=1,Hr.toString())}),ye=(0,O.Z)(D,1),ne=ye[0],_=(0,d.useRef)(ne),Me=function(){var re=(0,oe.Z)((0,r.Z)().mark(function tr(){var W,Fe;return(0,r.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,(W=F.request)===null||W===void 0?void 0:W.call(F,F.params,F);case 2:return Fe=ue.sent,ue.abrupt("return",Fe);case 4:case"end":return ue.stop()}},tr)}));return function(){return re.apply(this,arguments)}}();(0,d.useEffect)(function(){return function(){Hr+=1}},[]);var Ke=(0,Ze.ZP)([_.current,F.params],Me,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),er=Ke.data,ee=Ke.error;return[er||ee]}var Ur=ir,Er=t(45095),Fr=t(80334),xr=t(49111),lr=t(19650),Nr=t(57663),ke=t(71577),Q=t(97435),Ee=function(D){var ye=(0,N.YB)();if(D.render===!1)return null;var ne=D.form,_=D.onSubmit,Me=D.render,Ke=D.onReset,er=D.searchConfig,ee=er===void 0?{}:er,re=D.submitButtonProps,tr=D.resetButtonProps,W=tr===void 0?{}:tr,Fe=function(){ne.submit(),_==null||_()},Te=function(){ne.resetFields(),Ke==null||Ke()},ue=ee.submitText,we=ue===void 0?ye.getMessage("tableForm.submit","\u63D0\u4EA4"):ue,sr=ee.resetText,Wr=sr===void 0?ye.getMessage("tableForm.reset","\u91CD\u7F6E"):sr,wr=[];W!==!1&&wr.push(d.createElement(ke.Z,(0,c.Z)({},(0,Q.Z)(W,["preventDefault"]),{key:"rest",onClick:function(Zr){var br;(W==null?void 0:W.preventDefault)||Te(),W==null||(br=W.onClick)===null||br===void 0||br.call(W,Zr)}}),Wr)),re!==!1&&wr.push(d.createElement(ke.Z,(0,c.Z)({type:"primary"},(0,Q.Z)(re||{},["preventDefault"]),{key:"submit",onClick:function(Zr){var br;(re==null?void 0:re.preventDefault)||Fe(),re==null||(br=re.onClick)===null||br===void 0||br.call(re,Zr)}}),we));var Oe=Me?Me((0,f.Z)((0,f.Z)({},D),{},{submit:Fe,reset:Te}),wr):wr;return Oe?Array.isArray(Oe)?(Oe==null?void 0:Oe.length)<1?null:(Oe==null?void 0:Oe.length)===1?Oe[0]:d.createElement(lr.Z,{wrap:!0},Oe):Oe:null},he=Ee,mr=t(49263),pe=t(5309),He=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","extraUrlParams","syncToUrl","syncToInitialValues","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Pe=["request","params","initialValues","formKey"],fr=function(D,ye,ne){return D===!0?ye:(0,ae.h)(D,ye,ne)},P=function(D){return!D||Array.isArray(D)?D:[D]};function E(F){var D=F.children,ye=F.contentRender,ne=F.submitter,_=F.fieldProps,Me=F.formItemProps,Ke=F.groupProps,er=F.dateFormatter,ee=er===void 0?"string":er,re=F.formRef,tr=F.onInit,W=F.form,Fe=F.formComponentType,Te=F.extraUrlParams,ue=Te===void 0?{}:Te,we=F.syncToUrl,sr=F.syncToInitialValues,Wr=sr===void 0?!0:sr,wr=F.onReset,Oe=F.omitNil,Ve=Oe===void 0?!0:Oe,Zr=F.isKeyPressSubmit,br=F.autoFocusFirstInput,nt=br===void 0?!0:br,zr=F.grid,lt=F.rowProps,mt=F.colProps,Gr=(0,S.Z)(F,He),xe=(0,d.useContext)(R.ZP.SizeContext),qr=Z.Z.useForm(W),ur=(0,O.Z)(qr,1),Jr=ur[0],ot=(0,Er.l)({},{disabled:!we}),tt=(0,O.Z)(ot,2),ft=tt[0],it=tt[1],dr=(0,d.useRef)(Jr||{}),Zt=(0,pe.z)({grid:zr,rowProps:lt,colProps:mt}),_r=Zt.RowWrapper,gt=(0,d.useRef)({}),ht=(0,d.useRef)({}),Sr=(0,d.useCallback)(function(Se,Ce,Le){return vr((0,Dr.ZP)(Se,ee,gt.current,Ce,Le),ht.current,Ce)},[ee]),rt=(0,d.useMemo)(function(){return{getFieldsFormatValue:function(Ce){var Le;return Sr((Le=dr.current)===null||Le===void 0?void 0:Le.getFieldsValue(Ce),Ve)},getFieldFormatValue:function(){var Ce,Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],je=P(Le);if(!je)throw new Error("nameList is require");var yr=(Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldValue(je),Xr=je?(0,$e.Z)({},je,yr):yr;return(0,me.Z)(Sr(Xr,Ve,je),je)},getFieldFormatValueObject:function(Ce){var Le,je=P(Ce),yr=(Le=dr.current)===null||Le===void 0?void 0:Le.getFieldValue(je),Xr=je?(0,$e.Z)({},je,yr):yr;return Sr(Xr,Ve,je)},validateFieldsReturnFormatValue:function(){var Se=(0,oe.Z)((0,r.Z)().mark(function Le(je){var yr,Xr;return(0,r.Z)().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(!(!Array.isArray(je)&&je)){Ir.next=2;break}throw new Error("nameList must be array");case 2:return Ir.next=4,(yr=dr.current)===null||yr===void 0?void 0:yr.validateFields(je);case 4:return Xr=Ir.sent,Ir.abrupt("return",Sr(Xr,Ve));case 6:case"end":return Ir.stop()}},Le)}));function Ce(Le){return Se.apply(this,arguments)}return Ce}(),formRef:dr}},[Ve,Sr]),Qr=(0,d.useMemo)(function(){var Se=(0,f.Z)({},dr.current);return Object.keys(dr.current||{}).forEach(function(Ce){Object.defineProperty(Se,Ce,{get:function(){return dr.current[Ce]}})}),Object.keys(rt).forEach(function(Ce){Object.defineProperty(Se,Ce,{get:function(){return rt[Ce]}})}),Se},[]),Pt=(0,Cr.Z)(!1),st=(0,O.Z)(Pt,2),Ft=st[0],bt=st[1],yt=(0,d.useMemo)(function(){return d.Children.toArray(D).map(function(Se,Ce){return Ce===0&&d.isValidElement(Se)&&nt?d.cloneElement(Se,(0,f.Z)((0,f.Z)({},Se.props),{},{autoFocus:nt})):Se})},[nt,D]),ut=(0,d.useMemo)(function(){return typeof ne=="boolean"||!ne?{}:ne},[ne]);(0,d.useImperativeHandle)(re,function(){return Qr});var Ct=(0,d.useMemo)(function(){if(ne!==!1)return d.createElement(he,(0,c.Z)({key:"submitter"},ut,{onReset:function(){var Ce,Le,je=Sr((Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldsValue(),Ve);if(ut==null||(Le=ut.onReset)===null||Le===void 0||Le.call(ut,je),wr==null||wr(je),we){var yr,Xr=Object.keys(Sr((yr=dr.current)===null||yr===void 0?void 0:yr.getFieldsValue(),!1)).reduce(function(Rr,Ir){return(0,f.Z)((0,f.Z)({},Rr),{},(0,p.Z)({},Ir,je[Ir]||void 0))},ue);it(fr(we,Xr,"set"))}},form:Qr,submitButtonProps:(0,f.Z)({loading:Ft},ut.submitButtonProps)}))},[ne,ut,Qr,Ft,Sr,Ve,wr,we,ue,it]),Bt=(0,d.useMemo)(function(){var Se=zr?d.createElement(_r,null,yt):yt;return ye?ye(Se,Ct,dr.current):Se},[zr,_r,yt,ye,Ct]),Rt=(0,d.useMemo)(function(){if(typeof window!="undefined"&&Fe&&["DrawerForm"].includes(Fe))return function(Se){return Se.parentNode||document.body}},[Fe]);(0,d.useEffect)(function(){var Se,Ce=Sr((Se=dr.current)===null||Se===void 0?void 0:Se.getFieldsValue(!0),Ve);tr==null||tr(Ce,Qr)},[]);var St=(0,d.useState)(function(){return we?fr(we,ft,"get"):{}}),Et=(0,O.Z)(St,2),It=Et[0],Ot=Et[1];(0,d.useEffect)(function(){Wr||Ot({})},[Wr]);var Mt=(0,jr.Z)(F.initialValues);return(0,d.useEffect)(function(){if(!(we||!F.initialValues||!Mt||Gr.request)){var Se=(0,Vr.Z)(F.initialValues,Mt);(0,Fr.ET)(Se,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,Fr.ET)(Se,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[F.initialValues]),(0,d.useEffect)(function(){!we||it((0,f.Z)((0,f.Z)({},ft),ue))},[ue,we]),d.createElement(mr.Z.Provider,{value:{grid:zr,formRef:dr,fieldProps:_,formItemProps:Me,groupProps:Ke,formComponentType:Fe,getPopupContainer:Rt,setFieldValueType:function(Ce,Le){var je=Le.valueType,yr=je===void 0?"text":je,Xr=Le.dateFormat,Rr=Le.transform;!Array.isArray(Ce)||(ht.current=(0,$e.Z)(ht.current,Ce,Rr),gt.current=(0,$e.Z)(gt.current,Ce,{valueType:yr,dateFormat:Xr}))}}},d.createElement(Yr.Z.Provider,{value:rt},d.createElement(R.ZP.SizeContext.Provider,{value:Gr.size||xe},d.createElement(Z.Z,(0,c.Z)({onKeyPress:function(Ce){if(!!Zr&&Ce.key==="Enter"){var Le;(Le=dr.current)===null||Le===void 0||Le.submit()}},form:Jr},Gr,{initialValues:(0,f.Z)((0,f.Z)({},It),Gr.initialValues),onValuesChange:function(Ce,Le){var je;Gr==null||(je=Gr.onValuesChange)===null||je===void 0||je.call(Gr,Sr(Ce,Ve),Sr(Le,Ve))},onFinish:(0,oe.Z)((0,r.Z)().mark(function Se(){var Ce,Le,je,yr;return(0,r.Z)().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:if(Gr.onFinish){Rr.next=2;break}return Rr.abrupt("return");case 2:if(!Ft){Rr.next=4;break}return Rr.abrupt("return");case 4:return bt(!0),Rr.prev=5,Le=Sr((Ce=dr.current)===null||Ce===void 0?void 0:Ce.getFieldsValue(),Ve),Rr.next=9,Gr.onFinish(Le);case 9:we&&(yr=Object.keys(Sr((je=dr.current)===null||je===void 0?void 0:je.getFieldsValue(),!1)).reduce(function(Ir,Tt){var xt;return(0,f.Z)((0,f.Z)({},Ir),{},(0,p.Z)({},Tt,(xt=Le[Tt])!==null&&xt!==void 0?xt:void 0))},ue),Object.keys(ft).forEach(function(Ir){yr[Ir]!==!1&&yr[Ir]!==0&&!yr[Ir]&&(yr[Ir]=void 0)}),it(fr(we,yr,"set"))),bt(!1),Rr.next=16;break;case 13:Rr.prev=13,Rr.t0=Rr.catch(5),bt(!1);case 16:case"end":return Rr.stop()}},Se,null,[[5,13]])}))}),Gr.component!==!1&&d.createElement("input",{type:"text",style:{display:"none"}}),d.createElement(Z.Z.Item,{noStyle:!0,shouldUpdate:!0},function(Se){return re&&(re.current=(0,f.Z)((0,f.Z)({},Se),rt)),dr.current=Se,null}),Bt))))}var j=0;function X(F){var D=F.request,ye=F.params,ne=F.initialValues,_=F.formKey,Me=_===void 0?j:_,Ke=(0,S.Z)(F,Pe);(0,d.useEffect)(function(){j+=0},[]);var er=Ur({request:D,params:ye,proFieldKey:Me}),ee=(0,O.Z)(er,1),re=ee[0];return!re&&F.request?d.createElement("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"}},d.createElement(V.Z,null)):d.createElement(N.oK,null,d.createElement(E,(0,c.Z)({autoComplete:"off"},Ke,{initialValues:(0,f.Z)((0,f.Z)({},ne),re)})))}var qe=t(8812),ce=t(22385),fe=t(61580),Ge=t(68628),or=t(94184),Je=t.n(or),_e=t(47369),rr=function(D){var ye=D.label,ne=D.tooltip,_=D.ellipsis,Me=D.subTitle,Ke=(0,d.useContext)(R.ZP.ConfigContext),er=Ke.getPrefixCls;if(!ne&&!Me)return d.createElement(d.Fragment,null,ye);var ee=er("pro-core-label-tip"),re=typeof ne=="string"||d.isValidElement(ne)?{title:ne}:ne,tr=(re==null?void 0:re.icon)||d.createElement(Ge.Z,null);return d.createElement("div",{className:ee,onMouseDown:function(Fe){return Fe.stopPropagation()},onMouseLeave:function(Fe){return Fe.stopPropagation()},onMouseMove:function(Fe){return Fe.stopPropagation()}},d.createElement("div",{className:Je()("".concat(ee,"-title"),(0,p.Z)({},"".concat(ee,"-title-ellipsis"),_))},ye),Me&&d.createElement("div",{className:"".concat(ee,"-subtitle")},Me),ne&&d.createElement(fe.Z,re,d.createElement("span",{className:"".concat(ee,"-icon")},tr)))},ie=d.memo(rr),Re=t(61951),gr=d.forwardRef(function(F,D){var ye=d.useContext(mr.Z),ne=ye.groupProps,_=(0,f.Z)((0,f.Z)({},ne),F),Me=_.children,Ke=_.collapsible,er=_.defaultCollapsed,ee=_.style,re=_.labelLayout,tr=_.title,W=tr===void 0?F.label:tr,Fe=_.tooltip,Te=_.align,ue=Te===void 0?"start":Te,we=_.direction,sr=_.size,Wr=sr===void 0?32:sr,wr=_.titleStyle,Oe=_.titleRender,Ve=_.spaceProps,Zr=_.extra,br=_.autoFocus,nt=(0,Cr.Z)(function(){return er||!1},{value:F.collapsed,onChange:F.onCollapse}),zr=(0,O.Z)(nt,2),lt=zr[0],mt=zr[1],Gr=(0,d.useContext)(R.ZP.ConfigContext),xe=Gr.getPrefixCls,qr=(0,pe.z)(F),ur=qr.ColWrapper,Jr=qr.RowWrapper,ot=xe("pro-form-group"),tt=Ke&&d.createElement(qe.Z,{style:{marginRight:8},rotate:lt?void 0:90}),ft=d.createElement(ie,{label:tt?d.createElement("div",null,tt,W):W,tooltip:Fe}),it=(0,d.useCallback)(function(Sr){var rt=Sr.children;return d.createElement(lr.Z,(0,c.Z)({},Ve,{className:Je()("".concat(ot,"-container"),Ve==null?void 0:Ve.className),size:Wr,align:ue,direction:we,style:(0,f.Z)({rowGap:0},Ve==null?void 0:Ve.style)}),rt)},[ue,ot,we,Wr,Ve]),dr=Oe?Oe(ft,F):ft,Zt=(0,d.useMemo)(function(){var Sr=[],rt=d.Children.toArray(Me).map(function(Qr,Pt){var st;return d.isValidElement(Qr)&&(Qr==null||(st=Qr.props)===null||st===void 0?void 0:st.hidden)?(Sr.push(Qr),null):Pt===0&&d.isValidElement(Qr)&&br?d.cloneElement(Qr,(0,f.Z)((0,f.Z)({},Qr.props),{},{autoFocus:br})):Qr});return[d.createElement(Jr,{key:"children",Wrapper:it},rt),Sr.length>0?d.createElement("div",{style:{display:"none"}},Sr):null]},[Me,Jr,it,br]),_r=(0,O.Z)(Zt,2),gt=_r[0],ht=_r[1];return d.createElement(ur,null,d.createElement("div",{className:Je()(ot,(0,p.Z)({},"".concat(ot,"-twoLine"),re==="twoLine")),style:ee,ref:D},ht,(W||Fe||Zr)&&d.createElement("div",{className:"".concat(ot,"-title"),style:wr,onClick:function(){mt(!lt)}},Zr?d.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},dr,d.createElement("span",{onClick:function(rt){return rt.stopPropagation()}},Zr)):dr),Ke&<?null:gt))});gr.displayName="ProForm-Group";var Ue=gr,ge=t(61104);function be(F){return d.createElement(X,(0,c.Z)({layout:"vertical",submitter:{render:function(ye,ne){return ne.reverse()}},contentRender:function(ye,ne){return d.createElement(d.Fragment,null,ye,ne)}},F))}be.Group=Ue,be.useForm=Z.Z.useForm,be.Item=ge.Z;var Ie=t(54217),le=["logo","message","contentStyle","title","subTitle","actions","children"];function Y(F){var D=F.logo,ye=F.message,ne=F.contentStyle,_=F.title,Me=F.subTitle,Ke=F.actions,er=F.children,ee=(0,S.Z)(F,le),re=(0,N.YB)(),tr=ee.submitter===!1?!1:(0,f.Z)((0,f.Z)({searchConfig:{submitText:re.getMessage("loginForm.submitText","\u767B\u5F55")},submitButtonProps:{size:"large",style:{width:"100%"}}},ee.submitter),{},{render:function(sr,Wr){var wr,Oe,Ve=Wr.pop();if((ee==null||(wr=ee.submitter)===null||wr===void 0?void 0:wr.render)===void 0)return Ve;if(typeof(ee==null||(Oe=ee.submitter)===null||Oe===void 0?void 0:Oe.render)=="function"){var Zr,br;return ee==null||(Zr=ee.submitter)===null||Zr===void 0||(br=Zr.render)===null||br===void 0?void 0:br.call(Zr,sr,Wr)}return Ve}}),W=(0,d.useContext)(R.ZP.ConfigContext),Fe=W.getPrefixCls("pro-form-login"),Te=function(sr){return"".concat(Fe,"-").concat(sr)},ue=(0,d.useMemo)(function(){return D?typeof D=="string"?d.createElement("img",{src:D}):D:null},[D]);return d.createElement("div",{className:Te("container")},d.createElement("div",{className:Te("top")},_||ue?d.createElement("div",{className:Te("header")},ue?d.createElement("span",{className:Te("logo")},ue):null,_?d.createElement("span",{className:Te("title")},_):null):null,Me?d.createElement("div",{className:Te("desc")},Me):null),d.createElement("div",{className:Te("main"),style:(0,f.Z)({width:328},ne)},d.createElement(be,(0,c.Z)({isKeyPressSubmit:!0},ee,{submitter:tr}),ye,er),Ke?d.createElement("div",{className:Te("other")},Ke):null))}},54787:function(Pr,q,t){"use strict";t.d(q,{oK:function(){return ie},ZP:function(){return Ue},Go:function(){return ce},YB:function(){return Re}});var c=t(84305),o=t(75901),R=t(28991),f=t(11965),S=t(84378),N=t(67294),d=t(29405),J={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},Z={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},ve={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},V={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},r={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},oe={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},O={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},ae={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},M={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},te={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},me={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},$e={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},Ne={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},De={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},nr={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},ar={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},vr={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},Dr={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},Cr={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},jr={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Vr={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function Yr(ge,be,Ie){var le=be.replace(/\[(\d+)\]/g,".$1").split("."),Y=ge,F=Ie,D=(0,f.Z)(le),ye;try{for(D.s();!(ye=D.n()).done;){var ne=ye.value;if(F=Object(Y)[ne],Y=Object(Y)[ne],F===void 0)return Ie}}catch(_){D.e(_)}finally{D.f()}return F}var Ze=function(be,Ie){return{getMessage:function(Y,F){return Yr(Ie,Y,F)||F},locale:be}},Hr=Ze("ar_EG",J),ir=Ze("zh_CN",jr),Ur=Ze("en_US",p),Er=Ze("en_GB",V),Fr=Ze("vi_VN",Cr),xr=Ze("it_IT",te),lr=Ze("ja_JP",me),Nr=Ze("es_ES",r),ke=Ze("ca_ES",Z),Q=Ze("ru_RU",ar),Ee=Ze("sr_RS",vr),he=Ze("ms_MY",Ne),mr=Ze("zh_TW",Vr),pe=Ze("fr_FR",O),He=Ze("pt_BR",nr),Pe=Ze("ko_KR",$e),fr=Ze("id_ID",M),P=Ze("de_DE",ve),E=Ze("fa_IR",oe),j=Ze("tr_TR",Dr),X=Ze("pl_PL",De),qe=Ze("hr_",ae),ce={"ar-EG":Hr,"zh-CN":ir,"en-US":Ur,"en-GB":Er,"vi-VN":Fr,"it-IT":xr,"ja-JP":lr,"es-ES":Nr,"ca-ES":ke,"ru-RU":Q,"sr-RS":Ee,"ms-MY":he,"zh-TW":mr,"fr-FR":pe,"pt-BR":He,"ko-KR":Pe,"id-ID":fr,"de-DE":P,"fa-IR":E,"tr-TR":j,"pl-PL":X,"hr-HR":qe},fe=Object.keys(ce),Ge=N.createContext({intl:(0,R.Z)((0,R.Z)({},ir),{},{locale:"default"}),valueTypeMap:{}}),or=Ge.Consumer,Je=Ge.Provider,_e=function(be){if(!be)return"zh-CN";var Ie=be.toLocaleLowerCase();return fe.find(function(le){var Y=le.toLocaleLowerCase();return Y.includes(Ie)})},rr=function(){var be=(0,d.kY)(),Ie=be.cache;return(0,N.useEffect)(function(){return function(){Ie.clear()}},[]),null},ie=function(be){var Ie=be.children,le=be.autoClearCache,Y=le===void 0?!1:le,F=(0,N.useContext)(o.ZP.ConfigContext),D=F.locale,ye=D===void 0?o.ZP:N.Fragment,ne=N.createElement(or,null,function(_){var Me,Ke=D==null?void 0:D.locale,er=_e(Ke),ee=Ke&&((Me=_.intl)===null||Me===void 0?void 0:Me.locale)==="default"?ce[er]:_.intl||ce[er],re=D===void 0?{locale:S.Z}:{};return N.createElement(ye,re,N.createElement(Je,{value:(0,R.Z)((0,R.Z)({},_),{},{intl:ee||ir})},N.createElement(N.Fragment,null,Y&&N.createElement(rr,null),Ie)))});return Y?N.createElement(d.J$,{value:{provider:function(){return new Map}}},ne):ne};function Re(){var ge=(0,N.useContext)(o.ZP.ConfigContext),be=ge.locale,Ie=(0,N.useContext)(Ge),le=Ie.intl;return le&&le.locale!=="default"?le:(be==null?void 0:be.locale)?ce[_e(be.locale)]:ir}var gr=null,Ue=Ge},76422:function(Pr,q,t){"use strict";var c=t(96156),o=t(84305),R=t(75901),f=t(54549),S=t(57254),N=t(54787),d=t(94184),J=t.n(d),Z=t(67294),ve=t(83931),V=t.n(ve),p=function(oe,O){var ae,M=oe.label,te=oe.onClear,me=oe.value,$e=oe.size,Ne=$e===void 0?"middle":$e,De=oe.disabled,nr=oe.ellipsis,ar=oe.placeholder,vr=oe.className,Dr=oe.style,Cr=oe.formatter,jr=oe.bordered,Vr=oe.allowClear,Yr=Vr===void 0?!0:Vr,Ze=(0,Z.useContext)(R.ZP.ConfigContext),Hr=Ze.getPrefixCls,ir=Hr("pro-core-field-label"),Ur=(0,N.YB)(),Er=(0,Z.useRef)(null),Fr=(0,Z.useRef)(null);(0,Z.useImperativeHandle)(O,function(){return{labelRef:Fr,clearRef:Er}});var xr=function(ke){return Cr?Cr(ke):Array.isArray(ke)?ke.join(","):String(ke)},lr=function(ke,Q){if(Q!=null&&Q!==""&&(!Array.isArray(Q)||Q.length)){var Ee,he,mr=ke?Z.createElement(Z.Fragment,null,ke,": "):"",pe=xr(Q);if(!nr)return Z.createElement("span",null,mr,xr(Q));var He=function(){var P=Array.isArray(Q)&&Q.length>1,E=Ur.getMessage("form.lightFilter.itemUnit","\u9879");return pe.length>32&&P?"...".concat(Q.length).concat(E):""},Pe=He();return Z.createElement("span",{title:pe},mr,pe==null||(Ee=pe.toString())===null||Ee===void 0||(he=Ee.substr)===null||he===void 0?void 0:he.call(Ee,0,32),Pe)}return ke||ar};return Z.createElement("span",{className:J()(ir,"".concat(ir,"-").concat(Ne),(ae={},(0,c.Z)(ae,"".concat(ir,"-active"),!!me||me===0),(0,c.Z)(ae,"".concat(ir,"-disabled"),De),(0,c.Z)(ae,"".concat(ir,"-bordered"),jr),(0,c.Z)(ae,"".concat(ir,"-allow-clear"),Yr),ae),vr),style:Dr,ref:Fr},lr(M,me),(me||me===0)&&Yr&&Z.createElement(f.Z,{role:"button",title:"\u6E05\u9664",className:J()("".concat(ir,"-icon"),"".concat(ir,"-close")),onClick:function(ke){te&&!De&&te(),ke.stopPropagation()},ref:Er}),Z.createElement(S.Z,{className:J()("".concat(ir,"-icon"),"".concat(ir,"-arrow"))}))};q.Z=Z.forwardRef(p)},41036:function(Pr,q,t){"use strict";var c=t(67294),o=c.createContext({});q.Z=o},23312:function(Pr,q,t){"use strict";t.d(q,{Cl:function(){return N}});var c=t(90484),o=t(30381),R=t.n(o),f=t(88306),S=t(74763),N={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function d(V){return Object.prototype.toString.call(V)==="[object Object]"}function J(V){if(d(V)===!1)return!1;var p=V.constructor;if(p===void 0)return!0;var r=p.prototype;return!(d(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var Z=function(p,r,oe){if(!r)return p;if(R().isMoment(p)){if(r==="number")return p.valueOf();if(r==="string")return p.format(N[oe]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return p.format(r);if(typeof r=="function")return r(p,oe)}return p},ve=function V(p,r,oe,O,ae){var M={};return typeof window=="undefined"||(0,c.Z)(p)!=="object"||(0,S.Z)(p)||p instanceof Blob||Array.isArray(p)?p:(Object.keys(p).forEach(function(te){var me=ae?[ae,te].flat(1):[te],$e=(0,f.Z)(oe,me)||"text",Ne="text",De;typeof $e=="string"?Ne=$e:$e&&(Ne=$e.valueType,De=$e.dateFormat);var nr=p[te];if(!((0,S.Z)(nr)&&O)){if(J(nr)&&!Array.isArray(nr)&&!R().isMoment(nr)){M[te]=V(nr,r,oe,O,[te]);return}if(Array.isArray(nr)){M[te]=nr.map(function(ar,vr){return R().isMoment(ar)?Z(ar,De||r,Ne):V(ar,r,oe,O,[te,"".concat(vr)])});return}M[te]=Z(nr,De||r,Ne)}}),M)};q.ZP=ve},26369:function(Pr,q,t){"use strict";var c=t(67294),o=function(f){var S=(0,c.useRef)();return(0,c.useEffect)(function(){S.current=f}),S.current};q.Z=o},60249:function(Pr,q,t){"use strict";var c=t(11965),o=t(90484);function R(f,S,N,d){if(f===S)return!0;if(f&&S&&(0,o.Z)(f)==="object"&&(0,o.Z)(S)==="object"){if(f.constructor!==S.constructor)return!1;var J,Z,ve;if(Array.isArray(f)){if(J=f.length,J!=S.length)return!1;for(Z=J;Z--!=0;)if(!R(f[Z],S[Z],N,d))return!1;return!0}if(f instanceof Map&&S instanceof Map){if(f.size!==S.size)return!1;var V=(0,c.Z)(f.entries()),p;try{for(V.s();!(p=V.n()).done;)if(Z=p.value,!S.has(Z[0]))return!1}catch(te){V.e(te)}finally{V.f()}var r=(0,c.Z)(f.entries()),oe;try{for(r.s();!(oe=r.n()).done;)if(Z=oe.value,!R(Z[1],S.get(Z[0]),N,d))return!1}catch(te){r.e(te)}finally{r.f()}return!0}if(f instanceof Set&&S instanceof Set){if(f.size!==S.size)return!1;var O=(0,c.Z)(f.entries()),ae;try{for(O.s();!(ae=O.n()).done;)if(Z=ae.value,!S.has(Z[0]))return!1}catch(te){O.e(te)}finally{O.f()}return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(S)){if(J=f.length,J!=S.length)return!1;for(Z=J;Z--!=0;)if(f[Z]!==S[Z])return!1;return!0}if(f.constructor===RegExp)return f.source===S.source&&f.flags===S.flags;if(f.valueOf!==Object.prototype.valueOf&&f.valueOf)return f.valueOf()===S.valueOf();if(f.toString!==Object.prototype.toString&&f.toString)return f.toString()===S.toString();if(ve=Object.keys(f),J=ve.length,J!==Object.keys(S).length)return!1;for(Z=J;Z--!=0;)if(!Object.prototype.hasOwnProperty.call(S,ve[Z]))return!1;for(Z=J;Z--!=0;){var M=ve[Z];if(!(N==null?void 0:N.includes(M))&&!(M==="_owner"&&f.$$typeof)&&!R(f[M],S[M],N,d))return d&&console.log(M),!1}return!0}return f!==f&&S!==S}q.Z=R},74763:function(Pr,q){"use strict";var t=function(o){return o==null};q.Z=t},51812:function(Pr,q){"use strict";var t=function(o){var R={};if(Object.keys(o||{}).forEach(function(f){o[f]!==void 0&&(R[f]=o[f])}),!(Object.keys(R).length<1))return R};q.Z=t},22270:function(Pr,q,t){"use strict";t.d(q,{h:function(){return c}});function c(o){if(typeof o=="function"){for(var R=arguments.length,f=new Array(R>1?R-1:0),S=1;Ss)&&(r=(0,se.Tm)(c,{span:s})),r}function re(c,n){var s=(0,Q.Z)(c).filter(function(t){return t}),r=[],a=[],e=n;return s.forEach(function(t,o){var C,x=(C=t.props)===null||C===void 0?void 0:C.span,m=x||1;if(o===s.length-1){a.push(_(t,x,e)),r.push(a);return}m{var re;const{prefixCls:Oe,getPopupContainer:rn,className:ve,style:ge,placement:xe,size:Xe,disabled:gn,bordered:Le=!0,placeholder:la,popupClassName:pt,dropdownClassName:F,status:Je,clearIcon:Gt,allowClear:Ct,rootClassName:Tt}=A,wn=Hn(A,["prefixCls","getPopupContainer","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),bt=O.useRef(null),{getPrefixCls:Yt,direction:Vt,getPopupContainer:ia,rangePicker:mn}=(0,O.useContext)(q.E_),Be=Yt("picker",Oe),{compactSize:ca,compactItemClassnames:Dt}=(0,Ue.ri)(Be,Vt),{format:Xt,showTime:Bn,picker:Qn}=A,Ht=Yt(),Lt=(0,fn.Z)(Be),[Gn,Ae]=(0,ae.ZP)(Be,Lt),ua=Object.assign(Object.assign({},Bn?Te(Object.assign({format:Xt,picker:Qn},Bn)):{}),Qn==="time"?Te(Object.assign(Object.assign({format:Xt},A),{picker:Qn})):{}),Jt=(0,X.Z)(on=>{var ot;return(ot=Xe!=null?Xe:ca)!==null&&ot!==void 0?ot:on}),Xn=O.useContext(ie.Z),qt=gn!=null?gn:Xn,wt=(0,O.useContext)(Se.aM),{hasFeedback:St,status:sa,feedbackIcon:ea}=wt,da=O.createElement(O.Fragment,null,Qn==="time"?O.createElement(Mn,null):O.createElement(V,null),St&&ea);(0,O.useImperativeHandle)(_,()=>({focus:()=>{var on;return(on=bt.current)===null||on===void 0?void 0:on.focus()},blur:()=>{var on;return(on=bt.current)===null||on===void 0?void 0:on.blur()}}));const[Pt]=(0,te.Z)("Calendar",Ve.Z),Jn=Object.assign(Object.assign({},Pt),A.locale),[na]=(0,_n.Cn)("DatePicker",(re=A.popupStyle)===null||re===void 0?void 0:re.zIndex);return Gn(O.createElement(i.Sq,Object.assign({separator:O.createElement("span",{"aria-label":"to",className:`${Be}-separator`},O.createElement(Ye,null)),disabled:qt,ref:bt,dropdownAlign:Ie(Vt,xe),placeholder:Nn(Jn,Qn,la),suffixIcon:da,prevIcon:O.createElement("span",{className:`${Be}-prev-icon`}),nextIcon:O.createElement("span",{className:`${Be}-next-icon`}),superPrevIcon:O.createElement("span",{className:`${Be}-super-prev-icon`}),superNextIcon:O.createElement("span",{className:`${Be}-super-next-icon`}),transitionName:`${Ht}-slide-up`},wn,ua,{className:u()({[`${Be}-${Jt}`]:Jt,[`${Be}-borderless`]:!Le},(0,x.Z)(Be,(0,x.F)(sa,Je),St),Ae,Dt,ve,mn==null?void 0:mn.className,Lt,Tt),style:Object.assign(Object.assign({},mn==null?void 0:mn.style),ge),locale:Jn.lang,prefixCls:Be,getPopupContainer:rn||ia,generateConfig:P,components:kn,direction:Vt,dropdownClassName:u()(Ae,pt||F,Lt,Tt),popupStyle:Object.assign(Object.assign({},A.popupStyle),{zIndex:na}),allowClear:He(Ct,Gt,O.createElement(tt.Z,null))})))})}var Ln=function(P,H){var A={};for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&H.indexOf(_)<0&&(A[_]=P[_]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,_=Object.getOwnPropertySymbols(P);re<_.length;re++)H.indexOf(_[re])<0&&Object.prototype.propertyIsEnumerable.call(P,_[re])&&(A[_[re]]=P[_[re]]);return A};function Zn(P){function H(ge,xe){const Xe=xe==="TimePicker"?"timePicker":"datePicker",gn=(0,O.forwardRef)((Le,la)=>{var pt;const{prefixCls:F,getPopupContainer:Je,style:Gt,className:Ct,rootClassName:Tt,size:wn,bordered:bt=!0,placement:Yt,placeholder:Vt,popupClassName:ia,dropdownClassName:mn,disabled:Be,status:ca,clearIcon:Dt,allowClear:Xt}=Le,Bn=Ln(Le,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Qn,direction:Ht,getPopupContainer:Lt,[Xe]:Gn}=(0,O.useContext)(q.E_),Ae=Qn("picker",F),{compactSize:ua,compactItemClassnames:Jt}=(0,Ue.ri)(Ae,Ht),Xn=O.useRef(null),{format:qt,showTime:wt}=Le,St=(0,fn.Z)(Ae),[sa,ea]=(0,ae.ZP)(Ae,St);(0,O.useImperativeHandle)(la,()=>({focus:()=>{var An;return(An=Xn.current)===null||An===void 0?void 0:An.focus()},blur:()=>{var An;return(An=Xn.current)===null||An===void 0?void 0:An.blur()}}));const da={showToday:!0};let Pt={};ge&&(Pt.picker=ge);const Jn=ge||Le.picker;Pt=Object.assign(Object.assign(Object.assign({},Pt),wt?Te(Object.assign({format:qt,picker:Jn},wt)):{}),Jn==="time"?Te(Object.assign(Object.assign({format:qt},Le),{picker:Jn})):{});const na=Qn(),on=(0,X.Z)(An=>{var va;return(va=wn!=null?wn:ua)!==null&&va!==void 0?va:An}),ot=O.useContext(ie.Z),Ra=Be!=null?Be:ot,$a=(0,O.useContext)(Se.aM),{hasFeedback:ha,status:Ma,feedbackIcon:fa}=$a,pa=O.createElement(O.Fragment,null,Jn==="time"?O.createElement(Mn,null):O.createElement(V,null),ha&&fa),[Na]=(0,te.Z)("DatePicker",Ve.Z),Ca=Object.assign(Object.assign({},Na),Le.locale),[ka]=(0,_n.Cn)("DatePicker",(pt=Le.popupStyle)===null||pt===void 0?void 0:pt.zIndex);return sa(O.createElement(i.ZP,Object.assign({ref:Xn,placeholder:Ce(Ca,Jn,Vt),suffixIcon:pa,dropdownAlign:Ie(Ht,Yt),prevIcon:O.createElement("span",{className:`${Ae}-prev-icon`}),nextIcon:O.createElement("span",{className:`${Ae}-next-icon`}),superPrevIcon:O.createElement("span",{className:`${Ae}-super-prev-icon`}),superNextIcon:O.createElement("span",{className:`${Ae}-super-next-icon`}),transitionName:`${na}-slide-up`},da,Bn,Pt,{locale:Ca.lang,className:u()({[`${Ae}-${on}`]:on,[`${Ae}-borderless`]:!bt},(0,x.Z)(Ae,(0,x.F)(Ma,ca),ha),ea,Jt,Gn==null?void 0:Gn.className,Ct,St,Tt),style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Gt),prefixCls:Ae,getPopupContainer:Je||Lt,generateConfig:P,components:kn,direction:Ht,disabled:Ra,dropdownClassName:u()(ea,St,Tt,ia||mn),popupStyle:Object.assign(Object.assign({},Le.popupStyle),{zIndex:ka}),allowClear:He(Xt,Dt,O.createElement(tt.Z,null))})))});return xe&&(gn.displayName=xe),gn}const A=H(),_=H("week","WeekPicker"),re=H("month","MonthPicker"),Oe=H("year","YearPicker"),rn=H("time","TimePicker"),ve=H("quarter","QuarterPicker");return{DatePicker:A,WeekPicker:_,MonthPicker:re,YearPicker:Oe,TimePicker:rn,QuarterPicker:ve}}const Zt=null;function rt(P){const{DatePicker:H,WeekPicker:A,MonthPicker:_,YearPicker:re,TimePicker:Oe,QuarterPicker:rn}=Zn(P),ve=zn(P),ge=H;return ge.WeekPicker=A,ge.MonthPicker=_,ge.YearPicker=re,ge.RangePicker=ve,ge.TimePicker=Oe,ge.QuarterPicker=rn,ge}var In=rt;const Ge=In(Y.Z);function ht(P){const H=Ie(P.direction,P.placement);return H.overflow.adjustY=!1,H.overflow.adjustX=!1,Object.assign(Object.assign({},P),{dropdownAlign:H})}const It=(0,pe.Z)(Ge,"picker",null,ht);Ge._InternalPanelDoNotUseOrYouWillBeFired=It;const Ot=(0,pe.Z)(Ge.RangePicker,"picker",null,ht);Ge._InternalRangePanelDoNotUseOrYouWillBeFired=Ot,Ge.generatePicker=In;var vn=Ge},29176:function(Ea,vt,y){y.d(vt,{GM:function(){return an},kX:function(){return Mn},vA:function(){return at}});var Y=y(60076),pe=y(99978),O=y(55904),$n=y(6301),gt=y(82776),B=y(72717),Z=y(98580),ne=y(90467),V=y(81501),mt=y(22297);const fe=(p,u,i,x)=>{const q=p.calc(i).add(2).equal(),ie=p.max(p.calc(u).sub(q).div(2).equal(),0),X=p.max(p.calc(u).sub(q).sub(ie).equal(),0);return{padding:`${(0,Y.bf)(ie)} ${(0,Y.bf)(x)} ${(0,Y.bf)(X)}`}},dn=p=>{const{componentCls:u,pickerCellCls:i,pickerCellInnerCls:x,cellHeight:q,motionDurationSlow:ie,borderRadiusSM:X,motionDurationMid:Se,cellHoverBg:te,lineWidth:Ue,lineType:Ve,colorPrimary:ae,cellActiveWithRangeBg:Ce,colorTextLightSolid:Nn,controlHeightSM:Ie,cellRangeBorderColor:ue,pickerCellBorderGap:Te,cellHoverWithRangeBg:He,cellWidth:Fe,colorTextDisabled:Qe,cellBgDisabled:U}=p;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:q,transform:"translateY(-50%)",transition:`all ${ie}`,content:'""'},[x]:{position:"relative",zIndex:2,display:"inline-block",minWidth:q,height:q,lineHeight:(0,Y.bf)(q),borderRadius:X,transition:`background ${Se}, border ${Se}`},["&-range-hover-start, &-range-hover-end"]:{[x]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${i}-in-view), + &:hover:not(${i}-selected):not(${i}-range-start):not(${i}-range-end):not(${i}-range-hover-start):not(${i}-range-hover-end)`]:{[x]:{background:te}},[`&-in-view${i}-today ${x}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Y.bf)(Ue)} ${Ve} ${ae}`,borderRadius:X,content:'""'}},[`&-in-view${i}-in-range`]:{position:"relative","&::before":{background:Ce}},[`&-in-view${i}-selected ${x}, + &-in-view${i}-range-start ${x}, + &-in-view${i}-range-end ${x}`]:{color:Nn,background:ae},[`&-in-view${i}-range-start:not(${i}-range-start-single), + &-in-view${i}-range-end:not(${i}-range-end-single)`]:{"&::before":{background:Ce}},[`&-in-view${i}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${i}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${i}-range-hover-start:not(${i}-in-range):not(${i}-range-start):not(${i}-range-end), + &-in-view${i}-range-hover-end:not(${i}-in-range):not(${i}-range-start):not(${i}-range-end), + &-in-view${i}-range-hover-start${i}-range-start-single, + &-in-view${i}-range-hover-start${i}-range-start${i}-range-end${i}-range-end-near-hover, + &-in-view${i}-range-hover-end${i}-range-start${i}-range-end${i}-range-start-near-hover, + &-in-view${i}-range-hover-end${i}-range-end-single, + &-in-view${i}-range-hover:not(${i}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Ie,borderTop:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderBottom:`${(0,Y.bf)(Ue)} dashed ${ue}`,transform:"translateY(-50%)",transition:`all ${ie}`,content:'""'}},[`&-range-hover-start::after, + &-range-hover-end::after, + &-range-hover::after`]:{insetInlineEnd:0,insetInlineStart:Te},[`&-in-view${i}-in-range${i}-range-hover::before, + &-in-view${i}-in-range${i}-range-hover-start::before, + &-in-view${i}-in-range${i}-range-hover-end::before, + &-in-view${i}-range-start${i}-range-hover::before, + &-in-view${i}-range-end${i}-range-hover::before, + &-in-view${i}-range-start:not(${i}-range-start-single)${i}-range-hover-start::before, + &-in-view${i}-range-end:not(${i}-range-end-single)${i}-range-hover-end::before, + ${u}-panel + > :not(${u}-date-panel) + &-in-view${i}-in-range${i}-range-hover-start::before, + ${u}-panel + > :not(${u}-date-panel) + &-in-view${i}-in-range${i}-range-hover-end::before`]:{background:He},[`&-in-view${i}-range-start:not(${i}-range-start-single):not(${i}-range-end) ${x}`]:{borderStartStartRadius:X,borderEndStartRadius:X,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${i}-range-end:not(${i}-range-end-single):not(${i}-range-start) ${x}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:X,borderEndEndRadius:X},[`&-range-hover${i}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${i}-range-hover:first-child::after, + tr > &-in-view${i}-range-hover-end:first-child::after, + &-in-view${i}-start${i}-range-hover-edge-start${i}-range-hover-edge-start-near-range::after, + &-in-view${i}-range-hover-edge-start:not(${i}-range-hover-edge-start-near-range)::after, + &-in-view${i}-range-hover-start::after`]:{insetInlineStart:p.calc(Fe).sub(q).div(2).equal(),borderInlineStart:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderStartStartRadius:X,borderEndStartRadius:X},[`tr > &-in-view${i}-range-hover:last-child::after, + tr > &-in-view${i}-range-hover-start:last-child::after, + &-in-view${i}-end${i}-range-hover-edge-end${i}-range-hover-edge-end-near-range::after, + &-in-view${i}-range-hover-edge-end:not(${i}-range-hover-edge-end-near-range)::after, + &-in-view${i}-range-hover-end::after`]:{insetInlineEnd:p.calc(Fe).sub(q).div(2).equal(),borderInlineEnd:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderStartEndRadius:X,borderEndEndRadius:X},"&-disabled":{color:Qe,pointerEvents:"none",[x]:{background:"transparent"},"&::before":{background:U}},[`&-disabled${i}-today ${x}::before`]:{borderColor:Qe}}},Mn=p=>{const{componentCls:u,pickerCellCls:i,pickerCellInnerCls:x,pickerYearMonthCellWidth:q,pickerControlIconSize:ie,cellWidth:X,paddingSM:Se,paddingXS:te,paddingXXS:Ue,colorBgContainer:Ve,lineWidth:ae,lineType:Ce,borderRadiusLG:Nn,colorPrimary:Ie,colorTextHeading:ue,colorSplit:Te,pickerControlIconBorderWidth:He,colorIcon:Fe,textHeight:Qe,motionDurationMid:U,colorIconHover:kn,fontWeightStrong:_n,cellHeight:fn,pickerCellPaddingVertical:Hn,colorTextDisabled:zn,colorText:Ln,fontSize:Zn,cellHoverWithRangeBg:Zt,motionDurationSlow:rt,withoutTimeCellHeight:In,pickerQuarterPanelContentHeight:Ge,colorLink:ht,colorLinkActive:It,colorLinkHover:Ot,cellRangeBorderColor:vn,borderRadiusSM:P,colorTextLightSolid:H,cellHoverBg:A,timeColumnHeight:_,timeColumnWidth:re,timeCellHeight:Oe,controlItemBgActive:rn,marginXXS:ve,pickerDatePanelPaddingHorizontal:ge,pickerControlIconMargin:xe}=p,Xe=p.calc(X).mul(7).add(p.calc(ge).mul(2)).equal(),gn=p.calc(Xe).sub(p.calc(te).mul(2)).div(3).sub(p.pickerYearMonthCellWidth).sub(Se).equal(),Le=p.calc(Xe).sub(p.calc(te).mul(2)).div(4).sub(p.pickerYearMonthCellWidth).equal();return{[u]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ve,border:`${(0,Y.bf)(ae)} ${Ce} ${Te}`,borderRadius:Nn,outline:"none","&-focused":{borderColor:Ie},"&-rtl":{direction:"rtl",[`${u}-prev-icon, + ${u}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${u}-next-icon, + ${u}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel, + &-week-panel, + &-date-panel, + &-time-panel`]:{display:"flex",flexDirection:"column",width:Xe},"&-header":{display:"flex",padding:`0 ${(0,Y.bf)(te)}`,color:ue,borderBottom:`${(0,Y.bf)(ae)} ${Ce} ${Te}`,"> *":{flex:"none"},button:{padding:0,color:Fe,lineHeight:(0,Y.bf)(Qe),background:"transparent",border:0,cursor:"pointer",transition:`color ${U}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Zn,"&:hover":{color:kn}},"&-view":{flex:"auto",fontWeight:_n,lineHeight:(0,Y.bf)(Qe),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:te},"&:hover":{color:Ie}}}},[`&-prev-icon, + &-next-icon, + &-super-prev-icon, + &-super-next-icon`]:{position:"relative",display:"inline-block",width:ie,height:ie,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ie,height:ie,border:"0 solid currentcolor",borderBlockStartWidth:He,borderBlockEndWidth:0,borderInlineStartWidth:He,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, + &-super-next-icon`]:{"&::after":{position:"absolute",top:xe,insetInlineStart:xe,display:"inline-block",width:ie,height:ie,border:"0 solid currentcolor",borderBlockStartWidth:He,borderBlockEndWidth:0,borderInlineStartWidth:He,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, + &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, + &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:fn,fontWeight:"normal"},th:{height:p.calc(fn).add(p.calc(Hn).mul(2)).equal(),color:Ln,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Y.bf)(Hn)} 0`,color:zn,cursor:"pointer","&-in-view":{color:Ln}},dn(p)),[`&-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-start ${x}, + &-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-end ${x}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Zt,transition:`all ${rt}`,content:'""'}},[`&-date-panel + ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-start + ${x}::after`]:{insetInlineEnd:p.calc(X).sub(fn).mul(-1).div(2).equal(),insetInlineStart:0},[`&-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-end ${x}::after`]:{insetInlineEnd:0,insetInlineStart:p.calc(X).sub(fn).mul(-1).div(2).equal()},[`&-range-hover${u}-range-start::after`]:{insetInlineEnd:"50%"},[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${u}-content`]:{height:p.calc(In).mul(4).equal()},[x]:{padding:`0 ${(0,Y.bf)(te)}`}},"&-quarter-panel":{[`${u}-content`]:{height:Ge},[`${u}-cell-range-hover-start::after`]:{insetInlineStart:Le,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineEnd:Le,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`}},[`${u}-cell-range-hover-end::after`]:{insetInlineEnd:Le,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineStart:Le,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`}}},[`&-panel ${u}-footer`]:{borderTop:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:(0,Y.bf)(p.calc(Qe).sub(p.calc(ae).mul(2)).equal()),textAlign:"center","&-extra":{padding:`0 ${(0,Y.bf)(Se)}`,lineHeight:(0,Y.bf)(p.calc(Qe).sub(p.calc(ae).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Y.bf)(ae)} ${Ce} ${Te}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ht,"&:hover":{color:Ot},"&:active":{color:It},[`&${u}-today-btn-disabled`]:{color:zn,cursor:"not-allowed"}},"&-decade-panel":{[x]:{padding:`0 ${(0,Y.bf)(p.calc(te).div(2).equal())}`},[`${u}-cell::before`]:{display:"none"}},[`&-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${u}-body`]:{padding:`0 ${(0,Y.bf)(te)}`},[x]:{width:q},[`${u}-cell-range-hover-start::after`]:{borderStartStartRadius:P,borderEndStartRadius:P,borderStartEndRadius:0,borderEndEndRadius:0,[`${u}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:P,borderEndEndRadius:P}},[`${u}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:P,borderEndEndRadius:P,[`${u}-panel-rtl &`]:{borderStartStartRadius:P,borderEndStartRadius:P,borderStartEndRadius:0,borderEndEndRadius:0}}},[`&-year-panel, + &-month-panel`]:{[`${u}-cell-range-hover-start::after`]:{insetInlineStart:gn,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineEnd:gn,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`}},[`${u}-cell-range-hover-end::after`]:{insetInlineEnd:gn,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineStart:gn,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`}}},"&-week-panel":{[`${u}-body`]:{padding:`${(0,Y.bf)(te)} ${(0,Y.bf)(Se)}`},[`${u}-cell`]:{[`&:hover ${x}, + &-selected ${x}, + ${x}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${U}`},"&:first-child:before":{borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child:before":{borderStartEndRadius:P,borderEndEndRadius:P}},["&:hover td"]:{"&:before":{background:A}},[`&-range-start td, + &-range-end td, + &-selected td`]:{[`&${i}`]:{"&:before":{background:Ie},[`&${u}-cell-week`]:{color:new pe.C(H).setAlpha(.5).toHexString()},[x]:{color:H}}},["&-range-hover td:before"]:{background:rn}}},"&-date-panel":{[`${u}-body`]:{padding:`${(0,Y.bf)(te)} ${(0,Y.bf)(ge)}`},[`${u}-content`]:{width:p.calc(X).mul(7).equal(),th:{width:X,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${u}-time-panel`]:{borderInlineStart:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},[`${u}-date-panel, + ${u}-time-panel`]:{transition:`opacity ${rt}`},"&-active":{[`${u}-date-panel, + ${u}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${u}-content`]:{display:"flex",flex:"auto",height:_},"&-column":{flex:"1 0 auto",width:re,margin:`${(0,Y.bf)(Ue)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${U}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:p.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${p.colorTextTertiary} transparent`},"&::after":{display:"block",height:p.calc(_).sub(Oe).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},"&-active":{background:new pe.C(rn).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${u}-time-panel-cell`]:{marginInline:ve,[`${u}-time-panel-cell-inner`]:{display:"block",width:p.calc(re).sub(p.calc(ve).mul(2)).equal(),height:Oe,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:p.calc(re).sub(Oe).div(2).equal(),color:Ln,lineHeight:(0,Y.bf)(Oe),borderRadius:P,cursor:"pointer",transition:`background ${U}`,"&:hover":{background:A}},"&-selected":{[`${u}-time-panel-cell-inner`]:{background:rn}},"&-disabled":{[`${u}-time-panel-cell-inner`]:{color:zn,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${u}-time-panel-column:after`]:{height:p.calc(_).sub(Oe).add(p.calc(Ue).mul(2)).equal()}}}},tt=p=>{const{componentCls:u,colorBgContainer:i,colorError:x,errorActiveShadow:q,colorWarning:ie,warningActiveShadow:X,colorErrorHover:Se,colorWarningHover:te}=p;return{[`${u}:not(${u}-disabled):not([disabled])`]:{[`&${u}-status-error`]:{backgroundColor:i,borderColor:x,"&:hover":{borderColor:Se},[`&${u}-focused, &:focus`]:Object.assign({},(0,O.M1)((0,ne.TS)(p,{activeBorderColor:x,activeShadow:q}))),[`${u}-active-bar`]:{background:x}},[`&${u}-status-warning`]:{backgroundColor:i,borderColor:ie,"&:hover":{borderColor:te},[`&${u}-focused, &:focus`]:Object.assign({},(0,O.M1)((0,ne.TS)(p,{activeBorderColor:ie,activeShadow:X}))),[`${u}-active-bar`]:{background:ie}}}}},o=p=>{const{componentCls:u,antCls:i,controlHeight:x,paddingInline:q,colorBgContainer:ie,lineWidth:X,lineType:Se,colorBorder:te,borderRadius:Ue,motionDurationMid:Ve,colorBgContainerDisabled:ae,colorTextDisabled:Ce,colorTextPlaceholder:Nn,controlHeightLG:Ie,fontSizeLG:ue,controlHeightSM:Te,paddingInlineSM:He,paddingXS:Fe,marginXS:Qe,colorTextDescription:U,lineWidthBold:kn,colorPrimary:_n,motionDurationSlow:fn,zIndexPopup:Hn,paddingXXS:zn,paddingSM:Ln,textHeight:Zn,cellActiveWithRangeBg:Zt,colorPrimaryBorder:rt,sizePopupArrow:In,colorBgElevated:Ge,borderRadiusLG:ht,boxShadowSecondary:It,borderRadiusSM:Ot,colorSplit:vn,cellHoverBg:P,presetsWidth:H,presetsMaxWidth:A,boxShadowPopoverArrow:_,colorTextQuaternary:re,fontHeight:Oe,fontHeightLG:rn,lineHeightLG:ve}=p;return[{[u]:Object.assign(Object.assign(Object.assign({},(0,$n.Wf)(p)),fe(p,x,Oe,q)),{position:"relative",display:"inline-flex",alignItems:"center",background:ie,lineHeight:1,border:`${(0,Y.bf)(X)} ${Se} ${te}`,borderRadius:Ue,transition:`border ${Ve}, box-shadow ${Ve}`,"&:hover":Object.assign({},(0,O.pU)(p)),[`&-focused${u}`]:Object.assign({},(0,O.M1)(p)),[`&${u}-disabled`]:{background:ae,borderColor:te,cursor:"not-allowed",[`${u}-suffix`]:{color:re}},[`&${u}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${u}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,O.ik)(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,fontFamily:"inherit","&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${u}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Nn}}},"&-large":Object.assign(Object.assign({},fe(p,Ie,rn,q)),{[`${u}-input > input`]:{fontSize:ue,lineHeight:ve}}),"&-small":Object.assign({},fe(p,Te,Oe,He)),[`${u}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:p.calc(Fe).div(2).equal(),color:Ce,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Qe}}},[`${u}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Ce,lineHeight:1,background:ie,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Ve}, color ${Ve}`,"> *":{verticalAlign:"top"},"&:hover":{color:U}},[`${u}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ue,color:Ce,fontSize:ue,verticalAlign:"top",cursor:"default",[`${u}-focused &`]:{color:U},[`${u}-range-separator &`]:{[`${u}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${u}-clear`]:{insetInlineEnd:q},"&:hover":{[`${u}-clear`]:{opacity:1}},[`${u}-active-bar`]:{bottom:p.calc(X).mul(-1).equal(),height:kn,marginInlineStart:q,background:_n,opacity:0,transition:`all ${fn} ease-out`,pointerEvents:"none"},[`&${u}-focused`]:{[`${u}-active-bar`]:{opacity:1}},[`${u}-range-separator`]:{alignItems:"center",padding:`0 ${(0,Y.bf)(Fe)}`,lineHeight:1},[`&${u}-small`]:{[`${u}-clear`]:{insetInlineEnd:He},[`${u}-active-bar`]:{marginInlineStart:He}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,$n.Wf)(p)),Mn(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Hn,[`&${u}-dropdown-hidden`]:{display:"none"},[`&${u}-dropdown-placement-bottomLeft`]:{[`${u}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${u}-dropdown-placement-topLeft`]:{[`${u}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-topLeft, + &${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-topRight, + &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-topLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-topRight`]:{animationName:B.Qt},[`&${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-bottomLeft, + &${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-bottomRight, + &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-bottomLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-bottomRight`]:{animationName:B.fJ},[`&${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-topLeft, + &${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-topRight`]:{animationName:B.ly},[`&${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-bottomLeft, + &${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-bottomRight`]:{animationName:B.Uw},[`${u}-panel > ${u}-time-panel`]:{paddingTop:zn},[`${u}-ranges`]:{marginBottom:0,padding:`${(0,Y.bf)(zn)} ${(0,Y.bf)(Ln)}`,overflow:"hidden",lineHeight:(0,Y.bf)(p.calc(Zn).sub(p.calc(X).mul(2)).sub(p.calc(Fe).div(2)).equal()),textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${u}-preset > ${i}-tag-blue`]:{color:_n,background:Zt,borderColor:rt,cursor:"pointer"},[`${u}-ok`]:{marginInlineStart:"auto"}},[`${u}-range-wrapper`]:{display:"flex",position:"relative"},[`${u}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:p.calc(q).mul(1.5).equal(),transition:`left ${fn} ease-out`},(0,mt.W)(p,Ge,_)),[`${u}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Ge,borderRadius:ht,boxShadow:It,transition:`margin ${fn}`,[`${u}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${u}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Fe,borderInlineEnd:`${(0,Y.bf)(X)} ${Se} ${vn}`,li:Object.assign(Object.assign({},$n.vS),{borderRadius:Ot,paddingInline:Fe,paddingBlock:p.calc(Te).sub(Oe).div(2).equal(),cursor:"pointer",transition:`all ${fn}`,"+ li":{marginTop:Qe},"&:hover":{background:P}})}},[`${u}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${u}-panel`]:{borderWidth:`0 0 ${(0,Y.bf)(X)}`},"&:last-child":{[`${u}-panel`]:{borderWidth:0}}},[`${u}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${u}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:te}}}}),"&-dropdown-range":{padding:`${(0,Y.bf)(p.calc(In).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${u}-separator`]:{transform:"rotate(180deg)"},[`${u}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,B.oN)(p,"slide-up"),(0,B.oN)(p,"slide-down"),(0,Z.Fm)(p,"move-up"),(0,Z.Fm)(p,"move-down")]},at=p=>{const{componentCls:u,controlHeightLG:i,paddingXXS:x,padding:q}=p;return{pickerCellCls:`${u}-cell`,pickerCellInnerCls:`${u}-cell-inner`,pickerYearMonthCellWidth:p.calc(i).mul(1.5).equal(),pickerQuarterPanelContentHeight:p.calc(i).mul(1.4).equal(),pickerCellPaddingVertical:p.calc(x).add(p.calc(x).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:p.calc(q).add(p.calc(x).div(2)).equal()}},an=p=>({cellHoverBg:p.controlItemBgHover,cellActiveWithRangeBg:p.controlItemBgActive,cellHoverWithRangeBg:new pe.C(p.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pe.C(p.colorPrimary).lighten(20).toHexString(),cellBgDisabled:p.colorBgContainerDisabled,timeColumnWidth:p.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:p.controlHeightSM*1.5,cellHeight:p.controlHeightSM,textHeight:p.controlHeightLG,withoutTimeCellHeight:p.controlHeightLG*1.65}),Ye=p=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.TM)(p)),an(p)),(0,mt.w)(p)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:p.zIndexPopupBase+50});vt.ZP=(0,V.I$)("DatePicker",p=>{const u=(0,ne.TS)((0,O.e5)(p),at(p));return[o(u),tt(u),(0,gt.c)(p,{focusElCls:`${p.componentCls}-focused`})]},Ye)},39237:function(Ea,vt,y){var Y=y(5726),pe=y.n(Y),O=y(12868),$n=y(68102),gt=y.n($n),B=y(99471),Z=y.n(B),ne=y(83867),V=y.n(ne),mt=y(1942),fe=y.n(mt),dn=y(1293),Mn=y.n(dn),tt=y(25010),o=y.n(tt);pe().extend(o()),pe().extend(Mn()),pe().extend(gt()),pe().extend(Z()),pe().extend(V()),pe().extend(fe()),pe().extend(function(u,i){var x=i.prototype,q=x.format;x.format=function(X){var Se=(X||"").replace("Wo","wo");return q.bind(this)(Se)}});var at={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},an=function(i){var x=at[i];return x||i.split("_")[0]},Ye=function(){(0,O.ET)(!1,"Not match any format. Please help to fire a issue about this.")},p={getNow:function(){return pe()()},getFixedDate:function(i){return pe()(i,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(i){return i.endOf("month")},getWeekDay:function(i){var x=i.locale("en");return x.weekday()+x.localeData().firstDayOfWeek()},getYear:function(i){return i.year()},getMonth:function(i){return i.month()},getDate:function(i){return i.date()},getHour:function(i){return i.hour()},getMinute:function(i){return i.minute()},getSecond:function(i){return i.second()},addYear:function(i,x){return i.add(x,"year")},addMonth:function(i,x){return i.add(x,"month")},addDate:function(i,x){return i.add(x,"day")},setYear:function(i,x){return i.year(x)},setMonth:function(i,x){return i.month(x)},setDate:function(i,x){return i.date(x)},setHour:function(i,x){return i.hour(x)},setMinute:function(i,x){return i.minute(x)},setSecond:function(i,x){return i.second(x)},isAfter:function(i,x){return i.isAfter(x)},isValidate:function(i){return i.isValid()},locale:{getWeekFirstDay:function(i){return pe()().locale(an(i)).localeData().firstDayOfWeek()},getWeekFirstDate:function(i,x){return x.locale(an(i)).weekday(0)},getWeek:function(i,x){return x.locale(an(i)).week()},getShortWeekDays:function(i){return pe()().locale(an(i)).localeData().weekdaysMin()},getShortMonths:function(i){return pe()().locale(an(i)).localeData().monthsShort()},format:function(i,x,q){return x.locale(an(i)).format(q)},parse:function(i,x,q){for(var ie=an(i),X=0;X1&&(l=t.addDate(l,-7)),l}function Ie(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function ue(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return typeof a=="function"?a(e):n.locale.format(r.locale,e,a)}function Te(e,t){var n=t.generateConfig,r=t.locale,a=t.formatList;return!e||typeof a[0]=="function"?null:n.locale.parse(r.locale,e,a)}function He(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,a=e.generateConfig;if(!r)return!1;var c=function(C,s,g){for(var w=s;w<=g;){var $=void 0;switch(C){case"date":{if($=a.setDate(t,w),!r($))return!1;break}case"month":{if($=a.setMonth(t,w),!He({cellDate:$,mode:"month",generateConfig:a,disabledDate:r}))return!1;break}case"year":{if($=a.setYear(t,w),!He({cellDate:$,mode:"year",generateConfig:a,disabledDate:r}))return!1;break}}w+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{var l=1,d=a.getDate(a.getEndDate(t));return c("date",l,d)}case"quarter":{var f=Math.floor(a.getMonth(t)/3)*3,v=f+2;return c("month",f,v)}case"year":return c("month",0,11);case"decade":{var D=a.getYear(t),h=Math.floor(D/Ye)*Ye,m=h+Ye-1;return c("year",h,m)}}}function Fe(e,t){var n=t.formatList,r=t.generateConfig,a=t.locale,c=(0,at.Z)(function(){if(!e)return[[""],""];for(var v="",D=[],h=0;h1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(v.current),w){f(g);return}v.current=requestAnimationFrame(function(){f(g)})}var h=Fe(d,{formatList:n,generateConfig:r,locale:a}),m=(0,V.Z)(h,2),b=m[1];function C(g){D(g)}function s(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;D(null,g)}return(0,o.useEffect)(function(){s(!0)},[e]),(0,o.useEffect)(function(){return function(){return cancelAnimationFrame(v.current)}},[]),[b,C,s]}var U=y(57),kn=y(28449),_n=y(1788),fn=y(95992),Hn=new Map;function zn(e,t){var n;function r(){(0,fn.Z)(e)?t():n=(0,kn.Z)(function(){r()})}return r(),function(){kn.Z.cancel(n)}}function Ln(e,t,n){if(Hn.get(e)&&cancelAnimationFrame(Hn.get(e)),n<=0){Hn.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var r=t-e.scrollTop,a=r/n*10;Hn.set(e,requestAnimationFrame(function(){e.scrollTop+=a,e.scrollTop!==t&&Ln(e,t,n-10)}))}function Zn(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,a=t.onUpDown,c=t.onPageUpDown,l=t.onEnter,d=e.which,f=e.ctrlKey,v=e.metaKey;switch(d){case U.Z.LEFT:if(f||v){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case U.Z.RIGHT:if(f||v){if(r)return r(1),!0}else if(n)return n(1),!0;break;case U.Z.UP:if(a)return a(-1),!0;break;case U.Z.DOWN:if(a)return a(1),!0;break;case U.Z.PAGE_UP:if(c)return c(-1),!0;break;case U.Z.PAGE_DOWN:if(c)return c(1),!0;break;case U.Z.ENTER:if(l)return l(),!0;break}return!1}function Zt(e,t,n,r){var a=e;if(!a)switch(t){case"time":a=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function rt(e,t,n){var r=e==="time"?8:10,a=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,a)+2}var In=null,Ge=new Set;function ht(e){return!In&&typeof window!="undefined"&&window.addEventListener&&(In=function(n){(0,_n.Z)(Ge).forEach(function(r){r(n)})},window.addEventListener("mousedown",In)),Ge.add(e),function(){Ge.delete(e),Ge.size===0&&(window.removeEventListener("mousedown",In),In=null)}}function It(e){var t=e.target;if(e.composed&&t.shadowRoot){var n;return((n=e.composedPath)===null||n===void 0?void 0:n.call(e)[0])||t}return t}var Ot=function(t){return t==="month"||t==="date"?"year":t},vn=function(t){return t==="date"?"month":t},P=function(t){return t==="month"||t==="date"?"quarter":t},H=function(t){return t==="date"?"week":t},A={year:Ot,month:vn,quarter:P,week:H,time:null,date:null};function _(e,t){return e.some(function(n){return n&&n.contains(t)})}function re(e){var t=e.open,n=e.value,r=e.isClickOutside,a=e.triggerOpen,c=e.forwardKeyDown,l=e.onKeyDown,d=e.blurToCancel,f=e.changeOnBlur,v=e.onSubmit,D=e.onCancel,h=e.onFocus,m=e.onBlur,b=(0,o.useState)(!1),C=(0,V.Z)(b,2),s=C[0],g=C[1],w=(0,o.useState)(!1),$=(0,V.Z)(w,2),N=$[0],k=$[1],I=(0,o.useRef)(!1),E=(0,o.useRef)(!1),M=(0,o.useRef)(!1),z={onMouseDown:function(){g(!0),a(!0)},onKeyDown:function(J){var oe=function(){M.current=!0};if(l(J,oe),!M.current){switch(J.which){case U.Z.ENTER:{t?v()!==!1&&g(!0):a(!0),J.preventDefault();return}case U.Z.TAB:{s&&t&&!J.shiftKey?(g(!1),J.preventDefault()):!s&&t&&!c(J)&&J.shiftKey&&(g(!0),J.preventDefault());return}case U.Z.ESC:{g(!0),D();return}}!t&&![U.Z.SHIFT].includes(J.which)?a(!0):s||c(J)}},onFocus:function(J){g(!0),k(!0),h&&h(J)},onBlur:function(J){if(I.current||!r(document.activeElement)){I.current=!1;return}d?setTimeout(function(){for(var oe=document,be=oe.activeElement;be&&be.shadowRoot;)be=be.shadowRoot.activeElement;r(be)&&D()},0):t&&(a(!1),E.current&&v()),k(!1),m==null||m(J)}};return(0,o.useEffect)(function(){E.current=!1},[t]),(0,o.useEffect)(function(){E.current=!0},[n]),(0,o.useEffect)(function(){return ht(function(j){var J=It(j),oe=r(J);t&&(oe?!f&&!d&&(!N||oe)&&a(!1):(I.current=!0,(0,kn.Z)(function(){I.current=!1})))})}),[z,{focused:N,typing:s}]}function Oe(e,t){return o.useMemo(function(){return e||(t?((0,Mn.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=(0,V.Z)(n,2),a=r[0],c=r[1];return{label:a,value:c}})):[])},[e,t])}var rn=y(77189);function ve(e){var t=e.valueTexts,n=e.onTextChange,r=o.useState(""),a=(0,V.Z)(r,2),c=a[0],l=a[1],d=o.useRef([]);d.current=t;function f(D){l(D),n(D)}function v(){l(d.current[0])}return(0,rn.Z)(function(){t.every(function(D){return D!==c})&&v()},[t.join("||")]),[c,f,v]}var ge=o.createContext({}),xe=ge,Xe=y(40727);function gn(e){var t=e.cellRender,n=e.monthCellRender,r=e.dateRender,a=o.useMemo(function(){if(t)return t;if(!(!n&&!r))return function(c,l){var d=c;return r&&l.type==="date"?r(d,l.today):n&&l.type==="month"?n(d,l.locale):l.originNode}},[t,n,r]);return a}function Le(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length=1?n|0:1,l=e;l<=t;l+=c)a.push({label:Le(l,2),value:l,disabled:(r||[]).includes(l)});return a}function St(e){var t=e.generateConfig,n=e.prefixCls,r=e.operationRef,a=e.activeColumnIndex,c=e.value,l=e.showHour,d=e.showMinute,f=e.showSecond,v=e.use12Hours,D=e.hourStep,h=D===void 0?1:D,m=e.minuteStep,b=m===void 0?1:m,C=e.secondStep,s=C===void 0?1:C,g=e.disabledHours,w=e.disabledMinutes,$=e.disabledSeconds,N=e.disabledTime,k=e.hideDisabledOptions,I=e.onSelect,E=e.cellRender,M=e.locale,z=[],j="".concat(n,"-content"),J="".concat(n,"-time-panel"),oe,be=c?t.getHour(c):-1,se=be,Re=c?t.getMinute(c):-1,de=c?t.getSecond(c):-1,ce=t.getNow(),ye=o.useMemo(function(){if(N){var G=N(ce);return[G.disabledHours,G.disabledMinutes,G.disabledSeconds]}return[g,w,$]},[g,w,$,N,ce]),$e=(0,V.Z)(ye,3),ln=$e[0],hn=$e[1],We=$e[2],Sn=wt(0,23,h,ln&&ln()),pn=(0,at.Z)(function(){return Sn},Sn,qt);v&&(oe=se>=12,se%=12);var lt=o.useMemo(function(){if(!v)return[!1,!1];var G=[!0,!0];return pn.forEach(function(ke){var Me=ke.disabled,Ke=ke.value;Me||(Ke>=12?G[1]=!1:G[0]=!1)}),G},[v,pn]),On=(0,V.Z)(lt,2),yt=On[0],Bt=On[1],Et=o.useMemo(function(){return v?pn.filter(oe?function(G){return G.value>=12}:function(G){return G.value<12}).map(function(G){var ke=G.value%12,Me=ke===0?"12":Le(ke,2);return(0,ne.Z)((0,ne.Z)({},G),{},{label:Me,value:ke})}):pn},[v,oe,pn]),Cn=wt(0,59,b,hn&&hn(be)),it=wt(0,59,s,We&&We(be,Re)),Pn=ua({value:c,generateConfig:t,disabledMinutes:hn,disabledSeconds:We,minutes:Cn,seconds:it,use12Hours:v});r.current={onUpDown:function(ke){var Me=z[a];if(Me)for(var Ke=Me.units.findIndex(function(At){return At.value===Me.value}),qe=Me.units.length,Ne=1;Ne=t)return c}return t};function Ra(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,a=e.value,c=e.defaultValue,l=e.disabledTime,d=e.showTime,f=e.onSelect,v=e.cellRender,D="".concat(t,"-datetime-panel"),h=o.useState(null),m=(0,V.Z)(h,2),b=m[0],C=m[1],s=o.useRef({}),g=o.useRef({}),w=(0,Xe.Z)(d)==="object"?(0,ne.Z)({},d):{};function $(E){var M=on.indexOf(b)+E,z=on[M]||null;return z}var N=function(M){g.current.onBlur&&g.current.onBlur(M),C(null)};n.current={onKeyDown:function(M){if(M.which===U.Z.TAB){var z=$(M.shiftKey?-1:1);return C(z),z&&M.preventDefault(),!0}if(b){var j=b==="date"?s:g;return j.current&&j.current.onKeyDown&&j.current.onKeyDown(M),!0}return[U.Z.LEFT,U.Z.RIGHT,U.Z.UP,U.Z.DOWN].includes(M.which)?(C("date"),!0):!1},onBlur:N,onClose:N};var k=function(M,z){var j=M;if(z==="date"){var J,oe,be,se=(l==null?void 0:l(a||w.defaultValue))||{},Re=ot(r.getHour(j),((J=se.disabledHours)===null||J===void 0?void 0:J.call(se))||[-1],23),de=ot(r.getMinute(j),((oe=se.disabledMinutes)===null||oe===void 0?void 0:oe.call(se,Re))||[-1],59),ce=ot(r.getSecond(j),((be=se.disabledSeconds)===null||be===void 0?void 0:be.call(se,Re,de))||[-1],59);j=r.setHour(j,Re),j=r.setMinute(j,de),j=r.setSecond(j,ce)}else z==="time"&&!a&&c&&(j=r.setYear(j,r.getYear(c)),j=r.setMonth(j,r.getMonth(c)),j=r.setDate(j,r.getDate(c)));f&&f(j,"mouse")},I=l?l(a||null):{};return o.createElement("div",{className:fe()(D,(0,Z.Z)({},"".concat(D,"-active"),b))},o.createElement(Ae,(0,B.Z)({},e,{cellRender:v,operationRef:s,active:b==="date",onSelect:function(M){k(Yt(r,M,!a&&(0,Xe.Z)(d)==="object"?d.defaultValue:null),"date")}})),o.createElement(na,(0,B.Z)({},e,{cellRender:v?function(E,M){return v(E,(0,ne.Z)((0,ne.Z)({},M),{},{type:"time"}))}:void 0,format:void 0},w,I,{disabledTime:null,defaultValue:void 0,operationRef:g,active:b==="time",onSelect:function(M){k(M,"time")}})))}var $a=Ra;function ha(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,a=e.onPrevDecades,c=e.onNextDecades,l=o.useContext(xe),d=l.hideHeader;if(d)return null;var f="".concat(t,"-header"),v=n.getYear(r),D=Math.floor(v/p)*p,h=D+p-1;return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:f,onSuperPrev:a,onSuperNext:c}),D,"-",h)}var Ma=ha,fa=3,pa=4;function Na(e){var t=Ye-1,n=e.prefixCls,r=e.viewDate,a=e.generateConfig,c=e.cellRender,l=e.locale,d="".concat(n,"-cell"),f=a.getYear(r),v=Math.floor(f/Ye)*Ye,D=Math.floor(f/p)*p,h=D+p-1,m=a.setYear(r,D-Math.ceil((fa*pa*Ye-p)/2)),b=function(g){var w,$=a.getYear(g),N=$+t;return w={},(0,Z.Z)(w,"".concat(d,"-in-view"),D<=$&&N<=h),(0,Z.Z)(w,"".concat(d,"-selected"),$===v),w},C=c?function(s,g){return c(s,{originNode:g,today:a.getNow(),type:"decade",locale:l})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:pa,colNum:fa,baseDate:m,getCellNode:C,getCellText:function(g){var w=a.getYear(g);return"".concat(w,"-").concat(w+t)},getCellClassName:b,getCellDate:function(g,w){return a.addYear(g,w*Ye)}}))}var Ca=Na;function ka(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,a=e.viewDate,c=e.operationRef,l=e.onSelect,d=e.onPanelChange,f="".concat(t,"-decade-panel");c.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){l(r.addYear(a,C*Ye),"key")},onCtrlLeftRight:function(C){l(r.addYear(a,C*p),"key")},onUpDown:function(C){l(r.addYear(a,C*Ye*fa),"key")},onEnter:function(){d("year",a)}})}};var v=function(m){var b=r.addYear(a,m*p);n(b),d(null,b)},D=function(m){l(m,"mouse"),d("year",m)};return o.createElement("div",{className:f},o.createElement(Ma,(0,B.Z)({},e,{prefixCls:t,onPrevDecades:function(){v(-1)},onNextDecades:function(){v(1)}})),o.createElement(Ca,(0,B.Z)({},e,{prefixCls:t,onSelect:D})))}var An=ka;function va(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.viewDate,c=e.onNextYear,l=e.onPrevYear,d=e.onYearClick,f=o.useContext(xe),v=f.hideHeader;if(v)return null;var D="".concat(t,"-header");return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:D,onSuperPrev:l,onSuperNext:c}),o.createElement("button",{type:"button",onClick:d,className:"".concat(t,"-year-btn")},ue(a,{locale:r,format:r.yearFormat,generateConfig:n})))}var Tr=va,Za=3,Yr=4;function Vr(e){var t=e.prefixCls,n=e.locale,r=e.value,a=e.viewDate,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=Ct({cellPrefixCls:D,value:r,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(g,w){return Se(c,g,w)},isInView:function(){return!0},offsetCell:function(g,w){return c.addMonth(g,w)}}),m=n.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(n.locale):[]),b=c.setMonth(a,0),C=l?function(s,g){return l(s,{originNode:g,locale:n,today:c.getNow(),type:"month"})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Yr,colNum:Za,baseDate:b,getCellNode:C,getCellText:function(g){return n.monthFormat?ue(g,{locale:n,format:n.monthFormat,generateConfig:c}):m[c.getMonth(g)]},getCellClassName:h,getCellDate:c.addMonth,titleCell:function(g){return ue(g,{locale:n,format:"YYYY-MM",generateConfig:c})}}))}var Hr=Vr;function Lr(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.onPanelChange,f=e.onSelect,v="".concat(t,"-month-panel");n.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){f(a.addMonth(c||l,C),"key")},onCtrlLeftRight:function(C){f(a.addYear(c||l,C),"key")},onUpDown:function(C){f(a.addMonth(c||l,C*Za),"key")},onEnter:function(){d("date",c||l)}})}};var D=function(m){var b=a.addYear(l,m);r(b),d(null,b)};return o.createElement("div",{className:v},o.createElement(Tr,(0,B.Z)({},e,{prefixCls:t,onPrevYear:function(){D(-1)},onNextYear:function(){D(1)},onYearClick:function(){d("year",l)}})),o.createElement(Hr,(0,B.Z)({},e,{prefixCls:t,onSelect:function(m){f(m,"mouse"),d("date",m)}})))}var Br=Lr;function Ar(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.viewDate,c=e.onNextYear,l=e.onPrevYear,d=e.onYearClick,f=o.useContext(xe),v=f.hideHeader;if(v)return null;var D="".concat(t,"-header");return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:D,onSuperPrev:l,onSuperNext:c}),o.createElement("button",{type:"button",onClick:d,className:"".concat(t,"-year-btn")},ue(a,{locale:r,format:r.yearFormat,generateConfig:n})))}var Wr=Ar,jr=4,Ur=1;function Fr(e){var t=e.prefixCls,n=e.locale,r=e.value,a=e.viewDate,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=Ct({cellPrefixCls:D,value:r,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(s,g){return X(c,s,g)},isInView:function(){return!0},offsetCell:function(s,g){return c.addMonth(s,g*3)}}),m=c.setDate(c.setMonth(a,0),1),b=l?function(C,s){return l(C,{originNode:s,locale:n,today:c.getNow(),type:"quarter"})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Ur,colNum:jr,baseDate:m,getCellNode:b,getCellText:function(s){return ue(s,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:c})},getCellClassName:h,getCellDate:function(s,g){return c.addMonth(s,g*3)},titleCell:function(s){return ue(s,{locale:n,format:"YYYY-[Q]Q",generateConfig:c})}}))}var Kr=Fr;function _r(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.onPanelChange,f=e.onSelect,v="".concat(t,"-quarter-panel");n.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){f(a.addMonth(c||l,C*3),"key")},onCtrlLeftRight:function(C){f(a.addYear(c||l,C),"key")},onUpDown:function(C){f(a.addYear(c||l,C),"key")}})}};var D=function(m){var b=a.addYear(l,m);r(b),d(null,b)};return o.createElement("div",{className:v},o.createElement(Wr,(0,B.Z)({},e,{prefixCls:t,onPrevYear:function(){D(-1)},onNextYear:function(){D(1)},onYearClick:function(){d("year",l)}})),o.createElement(Kr,(0,B.Z)({},e,{prefixCls:t,onSelect:function(m){f(m,"mouse")}})))}var zr=_r;function Qr(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,c=e.disabledDate,l=e.onSelect,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D=o.useContext(xe),h=D.onDateMouseEnter,m=D.onDateMouseLeave,b=(v==null?void 0:v[0])||(f==null?void 0:f[0]),C=(v==null?void 0:v[1])||(f==null?void 0:f[1]),s="".concat(t,"-cell"),g=function(k){var I=He({cellDate:k,mode:"week",disabledDate:c,generateConfig:n});return o.createElement("td",{key:"week",className:fe()(s,"".concat(s,"-week")),onClick:function(){I||l(k,"mouse")},onMouseEnter:function(){!I&&h&&h(k)},onMouseLeave:function(){!I&&m&&m(k)}},o.createElement("div",{className:"".concat(s,"-inner")},n.locale.getWeek(r.locale,k)))},w="".concat(t,"-week-panel-row"),$=function(k){var I,E=Ve(n,r.locale,b,k),M=Ve(n,r.locale,C,k);return fe()(w,(I={},(0,Z.Z)(I,"".concat(w,"-selected"),!f&&Ve(n,r.locale,a,k)),(0,Z.Z)(I,"".concat(w,"-range-start"),E),(0,Z.Z)(I,"".concat(w,"-range-end"),M),(0,Z.Z)(I,"".concat(w,"-range-hover"),!E&&!M&&Ce(n,b,C,k)),I))};return o.createElement(Ae,(0,B.Z)({},e,{panelName:"week",prefixColumn:g,rowClassName:$,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Gr=Qr,xt=10;function Xr(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,a=e.onPrevDecade,c=e.onNextDecade,l=e.onDecadeClick,d=o.useContext(xe),f=d.hideHeader;if(f)return null;var v="".concat(t,"-header"),D=n.getYear(r),h=Math.floor(D/xt)*xt,m=h+xt-1;return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:v,onSuperPrev:a,onSuperNext:c}),o.createElement("button",{type:"button",onClick:l,className:"".concat(t,"-decade-btn")},h,"-",m))}var Jr=Xr,Ia=3,Ja=4;function qr(e){var t=e.prefixCls,n=e.value,r=e.viewDate,a=e.locale,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=c.getYear(r),m=Math.floor(h/xt)*xt,b=m+xt-1,C=c.setYear(r,m-Math.ceil((Ia*Ja-xt)/2)),s=c.getNow(),g=function(k){var I=c.getYear(k);return m<=I&&I<=b},w=Ct({cellPrefixCls:D,value:n,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(k,I){return q(c,k,I)},isInView:g,offsetCell:function(k,I){return c.addYear(k,I)}}),$=l?function(N,k){return l(N,{originNode:k,today:s,type:"year",locale:a})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Ja,colNum:Ia,baseDate:C,getCellNode:$,getCellText:c.getYear,getCellClassName:w,getCellDate:c.addYear,titleCell:function(k){return ue(k,{locale:a,format:"YYYY",generateConfig:c})}}))}var eo=qr;function no(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.sourceMode,f=e.onSelect,v=e.onPanelChange,D="".concat(t,"-year-panel");n.current={onKeyDown:function(b){return Zn(b,{onLeftRight:function(s){f(a.addYear(c||l,s),"key")},onCtrlLeftRight:function(s){f(a.addYear(c||l,s*xt),"key")},onUpDown:function(s){f(a.addYear(c||l,s*Ia),"key")},onEnter:function(){v(d==="date"?"date":"month",c||l)}})}};var h=function(b){var C=a.addYear(l,b*10);r(C),v(null,C)};return o.createElement("div",{className:D},o.createElement(Jr,(0,B.Z)({},e,{prefixCls:t,onPrevDecade:function(){h(-1)},onNextDecade:function(){h(1)},onDecadeClick:function(){v("decade",l)}})),o.createElement(eo,(0,B.Z)({},e,{prefixCls:t,onSelect:function(b){v(d==="date"?"date":"month",b),f(b,"mouse")}})))}var to=no;function qa(e,t,n){return n?o.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function er(e){var t=e.prefixCls,n=e.components,r=n===void 0?{}:n,a=e.needConfirmButton,c=e.onNow,l=e.onOk,d=e.okDisabled,f=e.showNow,v=e.locale,D,h;if(a){var m=r.button||"button";c&&f!==!1&&(D=o.createElement("li",{className:"".concat(t,"-now")},o.createElement("a",{className:"".concat(t,"-now-btn"),onClick:c},v.now))),h=a&&o.createElement("li",{className:"".concat(t,"-ok")},o.createElement(m,{disabled:d,onClick:l},v.ok))}return!D&&!h?null:o.createElement("ul",{className:"".concat(t,"-ranges")},D,h)}var ao=["date","month"];function ro(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-picker":r,c=n.className,l=n.style,d=n.locale,f=n.generateConfig,v=n.value,D=n.defaultValue,h=n.pickerValue,m=n.defaultPickerValue,b=n.disabledDate,C=n.mode,s=n.picker,g=s===void 0?"date":s,w=n.tabIndex,$=w===void 0?0:w,N=n.showNow,k=n.showTime,I=n.showToday,E=n.renderExtraFooter,M=n.hideHeader,z=n.onSelect,j=n.onChange,J=n.onPanelChange,oe=n.onMouseDown,be=n.onPickerValueChange,se=n.onOk,Re=n.components,de=n.direction,ce=n.hourStep,ye=ce===void 0?1:ce,$e=n.minuteStep,ln=$e===void 0?1:$e,hn=n.secondStep,We=hn===void 0?1:hn,Sn=n.dateRender,pn=n.monthCellRender,lt=n.cellRender,On=g==="date"&&!!k||g==="time",yt=24%ye===0,Bt=60%ln===0,Et=60%We===0,Cn=o.useContext(xe),it=Cn.operationRef,Pn=Cn.onSelect,xn=Cn.hideRanges,Wn=Cn.defaultOpenValue,G=o.useContext(wn),ke=G.inRange,Me=G.panelPosition,Ke=G.rangedValue,qe=G.hoverRangedValue,Ne=o.useRef({}),qn=o.useRef(!0),At=(0,dn.Z)(null,{value:v,defaultValue:D,postState:function(S){return!S&&Wn&&g==="time"?Wn:S}}),Tn=(0,V.Z)(At,2),en=Tn[0],Rt=Tn[1],ta=(0,dn.Z)(null,{value:h,defaultValue:m||en,postState:function(S){var W=f.getNow();if(!S)return W;if(!en&&k){var Ee=(0,Xe.Z)(k)==="object"?k.defaultValue:D;return Yt(f,Array.isArray(S)?S[0]:S,Ee||W)}return Array.isArray(S)?S[0]:S}}),Wt=(0,V.Z)(ta,2),_e=Wt[0],Yn=Wt[1],bn=function(S){Yn(S),be&&be(S)},jt=function(S){var W=A[g];return W?W(S):S},ct=(0,dn.Z)(function(){return g==="time"?"time":jt("date")},{value:C}),nn=(0,V.Z)(ct,2),Pe=nn[0],cn=nn[1];o.useEffect(function(){cn(g)},[g]);var et=o.useState(function(){return Pe}),nt=(0,V.Z)(et,2),Dn=nt[0],yn=nt[1],jn=function(S,W){var Ee=jt(S||Pe);yn(Pe),cn(Ee),J&&(Pe!==Ee||ae(f,_e,_e))&&J(W,Ee)},Ze=function(S,W){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===g||Ee)&&(Rt(S),z&&z(S),Pn&&Pn(S,W),j&&!ae(f,S,en)&&!(b!=null&&b(S))&&j(S))},un=function(S){if(ao.includes(Pe)){var W,Ee,dt=Pe==="date";switch(S===U.Z.PAGE_UP||S===U.Z.PAGE_DOWN?Ee=dt?f.addMonth:f.addYear:Ee=dt?f.addDate:f.addMonth,S){case U.Z.LEFT:case U.Z.PAGE_UP:W=Ee(_e,-1);break;case U.Z.RIGHT:case U.Z.PAGE_DOWN:W=Ee(_e,1);break;case U.Z.UP:case U.Z.DOWN:W=Ee(_e,Number("".concat(S===U.Z.UP?"-":"").concat(dt?u:Za)));break}if(W)return!(b!=null&&b(W))}return!0},Ut=function(S){if(Ne.current&&Ne.current.onKeyDown){var W=!0,Ee=S.which;if([U.Z.LEFT,U.Z.RIGHT,U.Z.UP,U.Z.DOWN,U.Z.PAGE_UP,U.Z.PAGE_DOWN,U.Z.ENTER].includes(Ee)&&(S.preventDefault(),Ee!==U.Z.ENTER&&$===0&&(W=un(Ee))),W)return Ne.current.onKeyDown(S)}return(0,Mn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},$t=function(S){Ne.current&&Ne.current.onBlur&&Ne.current.onBlur(S)};it&&Me!=="right"&&(it.current={onKeyDown:Ut,onClose:function(){Ne.current&&Ne.current.onClose&&Ne.current.onClose()}}),o.useEffect(function(){v&&!qn.current&&Yn(v)},[v]),o.useEffect(function(){qn.current=!1},[]);var le,ut=gn({cellRender:lt,monthCellRender:pn,dateRender:Sn}),ze=(0,ne.Z)((0,ne.Z)({},e),{},{cellRender:ut,operationRef:Ne,prefixCls:a,viewDate:_e,value:en,onViewDateChange:bn,sourceMode:Dn,onPanelChange:jn,disabledDate:b});switch(delete ze.onChange,delete ze.onSelect,Pe){case"decade":le=o.createElement(An,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"year":le=o.createElement(to,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"month":le=o.createElement(Br,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"quarter":le=o.createElement(zr,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"week":le=o.createElement(Gr,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"time":delete ze.showTime,le=o.createElement(na,(0,B.Z)({},ze,(0,Xe.Z)(k)==="object"?k:null,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;default:k?le=o.createElement($a,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}})):le=o.createElement(Ae,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}))}var De,Vn,Un=function(){var S=f.getNow(),W=Vt(f.getHour(S),f.getMinute(S),f.getSecond(S),yt?ye:1,Bt?ln:1,Et?We:1),Ee=bt(f,S,W[0],W[1],W[2]);Ze(Ee,"submit")};xn||(De=qa(a,Pe,E),k&&Pe!=="date"?Vn=null:Vn=er({prefixCls:a,components:Re,needConfirmButton:On,okDisabled:!en||b&&b(en),locale:d,showNow:N,onNow:On&&Un,onOk:function(){en&&(Ze(en,"submit",!0),se&&se(en))}}));var Mt;if(I&&Pe==="date"&&g==="date"&&!k){var aa=f.getNow(),st="".concat(a,"-today-btn"),Ft=b&&b(aa);Mt=o.createElement("a",{className:fe()(st,Ft&&"".concat(st,"-disabled")),"aria-disabled":Ft,onClick:function(){Ft||Ze(aa,"mouse",!0)}},d.today)}return o.createElement(xe.Provider,{value:(0,ne.Z)((0,ne.Z)({},Cn),{},{mode:Pe,hideHeader:"hideHeader"in e?M:Cn.hideHeader,hidePrevBtn:ke&&Me==="right",hideNextBtn:ke&&Me==="left"})},o.createElement("div",{tabIndex:$,className:fe()("".concat(a,"-panel"),c,(t={},(0,Z.Z)(t,"".concat(a,"-panel-has-range"),Ke&&Ke[0]&&Ke[1]),(0,Z.Z)(t,"".concat(a,"-panel-has-range-hover"),qe&&qe[0]&&qe[1]),(0,Z.Z)(t,"".concat(a,"-panel-rtl"),de==="rtl"),t)),style:l,onKeyDown:Ut,onBlur:$t,onMouseDown:oe},le,De||Vn||Mt?o.createElement("div",{className:"".concat(a,"-footer")},De,Vn,Mt):null))}var Oa=ro,oo=y(62382),lo={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function io(e){var t,n=e.prefixCls,r=e.popupElement,a=e.popupStyle,c=e.visible,l=e.dropdownClassName,d=e.dropdownAlign,f=e.transitionName,v=e.getPopupContainer,D=e.children,h=e.range,m=e.popupPlacement,b=e.direction,C="".concat(n,"-dropdown"),s=function(){return m!==void 0?m:b==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(oo.Z,{showAction:[],hideAction:[],popupPlacement:s(),builtinPlacements:lo,prefixCls:C,popupTransitionName:f,popup:r,popupAlign:d,popupVisible:c,popupClassName:fe()(l,(t={},(0,Z.Z)(t,"".concat(C,"-range"),h),(0,Z.Z)(t,"".concat(C,"-rtl"),b==="rtl"),t)),popupStyle:a,getPopupContainer:v},D)}var nr=io;function tr(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(c,l){var d=c.label,f=c.value;return o.createElement("li",{key:l,onClick:function(){return r==null?void 0:r(Gt(f))},onMouseEnter:function(){return a==null?void 0:a(Gt(f))},onMouseLeave:function(){return a==null?void 0:a(null)}},d)}))):null}function cl(e){var t=e.picker,n=e.disabledHours,r=e.disabledMinutes,a=e.disabledSeconds;t==="time"&&(n||r||a)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ar(e,t,n){var r=(0,Xe.Z)(t)==="object"?t.clearIcon:n;return r||o.createElement("span",{className:"".concat(e,"-clear-btn")})}function co(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-picker":r,c=n.id,l=n.name,d=n.tabIndex,f=n.style,v=n.className,D=n.dropdownClassName,h=n.dropdownAlign,m=n.popupStyle,b=n.transitionName,C=n.generateConfig,s=n.locale,g=n.inputReadOnly,w=n.allowClear,$=n.autoFocus,N=n.showTime,k=n.picker,I=k===void 0?"date":k,E=n.format,M=n.use12Hours,z=n.value,j=n.defaultValue,J=n.presets,oe=n.open,be=n.defaultOpen,se=n.defaultOpenValue,Re=n.suffixIcon,de=n.clearIcon,ce=n.disabled,ye=n.disabledDate,$e=n.placeholder,ln=n.getPopupContainer,hn=n.pickerRef,We=n.panelRender,Sn=n.onChange,pn=n.onOpenChange,lt=n.onFocus,On=n.onBlur,yt=n.onMouseDown,Bt=n.onMouseUp,Et=n.onMouseEnter,Cn=n.onMouseLeave,it=n.onContextMenu,Pn=n.onClick,xn=n.onKeyDown,Wn=n.onSelect,G=n.direction,ke=n.autoComplete,Me=ke===void 0?"off":ke,Ke=n.inputRender,qe=n.changeOnBlur,Ne=o.useRef(null),qn=I==="date"&&!!N||I==="time",At=Oe(J),Tn=pt(Zt(E,I,N,M)),en=o.useRef(null),Rt=o.useRef(null),ta=o.useRef(null),Wt=(0,dn.Z)(null,{value:z,defaultValue:j}),_e=(0,V.Z)(Wt,2),Yn=_e[0],bn=_e[1],jt=o.useState(Yn),ct=(0,V.Z)(jt,2),nn=ct[0],Pe=ct[1],cn=o.useRef(null),et=(0,dn.Z)(!1,{value:oe,defaultValue:be,postState:function(T){return ce?!1:T},onChange:function(T){pn&&pn(T),!T&&cn.current&&cn.current.onClose&&cn.current.onClose()}}),nt=(0,V.Z)(et,2),Dn=nt[0],yn=nt[1],jn=Fe(nn,{formatList:Tn,generateConfig:C,locale:s}),Ze=(0,V.Z)(jn,2),un=Ze[0],Ut=Ze[1],$t=ve({valueTexts:un,onTextChange:function(T){var sn=Te(T,{locale:s,formatList:Tn,generateConfig:C});sn&&(!ye||!ye(sn))&&Pe(sn)}}),le=(0,V.Z)($t,3),ut=le[0],ze=le[1],De=le[2],Vn=function(T){Pe(T),bn(T),Sn&&!ae(C,Yn,T)&&Sn(T,T?ue(T,{generateConfig:C,locale:s,format:Tn[0]}):"")},Un=function(T){ce&&T||yn(T)},Mt=function(T){return Dn&&cn.current&&cn.current.onKeyDown?cn.current.onKeyDown(T):((0,Mn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},aa=function(){for(var T=arguments.length,sn=new Array(T),Fn=0;Fnm(v);case"month":return h(s)>h(v);case"week":return D(s)>D(v);default:return!te(d,s,v)&&d.isAfter(s,v)}return!1},[c,l[1],v,t]),C=o.useCallback(function(s){if(l[1]||c&&c(s))return!0;if(l[0]&&f)return!te(d,s,v)&&d.isAfter(f,s);if(!t&&f)switch(n){case"quarter":return m(s)0&&arguments[0]!==void 0?arguments[0]:!1,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null;je&&oa&&oa[0]&&oa[1]&&s.isAfter(oa[1],oa[0])&&(K=oa);var Q=M;if(M&&(0,Xe.Z)(M)==="object"&&M.defaultValue){var me=M.defaultValue;Q=(0,ne.Z)((0,ne.Z)({},M),{},{defaultValue:F(me,L)||void 0})}return o.createElement(wn.Provider,{value:{inRange:!0,panelPosition:ee,rangedValue:No||S,hoverRangedValue:K}},o.createElement(Oa,(0,B.Z)({},e,R,{cellRender:Xo,showTime:Q,mode:Kt[L],generateConfig:s,style:void 0,direction:_e,disabledDate:L===0?Da:wa,disabledTime:function(Kn){return ye?ye(Kn,L===0?"start":"end"):!1},className:fe()((0,Z.Z)({},"".concat(l,"-panel-focused"),L===0?!yr:!Mr)),value:F(S,L),locale:g,tabIndex:-1,onPanelChange:function(Kn,ft){L===0&&Fa(!0),L===1&&_a(!0),ba(Je(Kt,ft,L),Je(S,Kn,L));var kt=Kn;ee==="right"&&Kt[L]===ft&&(kt=Ie(kt,ft,s,-1)),st(kt,L)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:L===0?F(S,1):F(S,0)})))}var Nt=0,Nr=0;if(L&&et.current&&Dn.current&&cn.current&&Ze.current){Nt=et.current.offsetWidth+Dn.current.offsetWidth;var qo=Ze.current.offsetLeft>Nt?Ze.current.offsetLeft-Nt:Ze.current.offsetLeft,kr=cn.current.offsetWidth,Zr=Ze.current.offsetWidth;kr&&Zr&&Nt>kr-Zr-(_e==="rtl"?0:qo)&&(Nr=Nt)}var el=_e==="rtl"?{right:Nt}:{left:Nt};function nl(){var ee,R=qa(l,Kt[L],Pn),K=er({prefixCls:l,components:ta,needConfirmButton:nn,okDisabled:!F(S,L)||ce&&ce(S[L]),locale:g,onOk:function(){var Rn=F(S,L);Rn&&(zt(S,L),en==null||en(S),En(!1,L,"confirm"))}});if(E!=="time"&&!M){var Q=aa(L),me=Ie(Q,E,s),tn=Kt[L],Kn=tn===E,ft=Qa(Kn?"left":!1,{pickerValue:Q,onPickerValueChange:function(Rn){st(Rn,L)}}),kt=Qa("right",{pickerValue:me,onPickerValueChange:function(Rn){st(Ie(Rn,E,s,-1),L)}});_e==="rtl"?ee=o.createElement(o.Fragment,null,kt,Kn&&ft):ee=o.createElement(o.Fragment,null,ft,Kn&&kt)}else ee=Qa();var ma=o.createElement("div",{className:"".concat(l,"-panel-layout")},o.createElement(tr,{prefixCls:l,presets:Jo,onClick:function(Rn){zt(Rn,null),En(!1,L,"preset")},onHover:function(Rn){ko(Rn)}}),o.createElement("div",null,o.createElement("div",{className:"".concat(l,"-panels")},ee),(R||K)&&o.createElement("div",{className:"".concat(l,"-footer")},R,K)));return We&&(ma=We(ma)),o.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Nr},ref:cn,onMouseDown:function(Rn){Rn.preventDefault()}},ma)}var tl=o.createElement("div",{className:fe()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(E,"-range-wrapper")),style:{minWidth:T}},o.createElement("div",{ref:Ze,className:"".concat(l,"-range-arrow"),style:el}),nl()),Ir;yt&&(Ir=o.createElement("span",{className:"".concat(l,"-suffix"),onMouseDown:function(R){R.preventDefault()}},yt));var al=ar(l,On,Bt),rl=o.createElement("span",{onMouseDown:function(R){R.preventDefault(),R.stopPropagation()},onMouseUp:function(R){R.preventDefault(),R.stopPropagation();var K=De;le[0]||(K=Je(K,null,0)),le[1]||(K=Je(K,null,1)),zt(K,null),En(!1,L,"clear")},className:"".concat(l,"-clear"),role:"button"},al),ol=On&&(F(De,0)&&!le[0]||F(De,1)&&!le[1]),Or={size:rt(E,un[0],s)},Ga=0,Xa=0;et.current&&nt.current&&Dn.current&&(L===0?Xa=et.current.offsetWidth:(Ga=Nt,Xa=nt.current.offsetWidth));var ll=_e==="rtl"?{right:Ga}:{left:Ga},il=function(R,K){var Q=Je(S,R,L);if(K==="submit"||K!=="key"&&!nn){zt(Q,L),L===0?Fa():_a();var me=L===0?1:0;le[me]?En(!1,!1,"confirm"):En(!1,L,"confirm")}else W(Q)};return o.createElement(xe.Provider,{value:{operationRef:$t,hideHeader:E==="time",onDateMouseEnter:Vo,onDateMouseLeave:Ho,hideRanges:!0,onSelect:il,open:je}},o.createElement(nr,{visible:je,popupElement:tl,popupStyle:D,prefixCls:l,dropdownClassName:h,dropdownAlign:b,getPopupContainer:C,transitionName:m,range:!0,direction:_e},o.createElement("div",(0,B.Z)({ref:Pe,className:fe()(l,"".concat(l,"-range"),v,(t={},(0,Z.Z)(t,"".concat(l,"-disabled"),le[0]&&le[1]),(0,Z.Z)(t,"".concat(l,"-focused"),L===0?xr:$r),(0,Z.Z)(t,"".concat(l,"-rtl"),_e==="rtl"),t)),style:f,onClick:_o,onMouseEnter:qn,onMouseLeave:At,onMouseDown:zo,onMouseUp:Ne},(0,tt.Z)(e,{aria:!0,data:!0})),o.createElement("div",{className:fe()("".concat(l,"-input"),(n={},(0,Z.Z)(n,"".concat(l,"-input-active"),L===0),(0,Z.Z)(n,"".concat(l,"-input-placeholder"),!!pr),n)),ref:et},o.createElement("input",(0,B.Z)({id:d,disabled:le[0],readOnly:Cn||typeof un[0]=="function"||!yr,value:pr||xa,onChange:function(R){sr(R.target.value)},autoFocus:$,placeholder:F(w,0)||"",ref:yn},Uo,Or,{autoComplete:jt}))),o.createElement("div",{className:"".concat(l,"-range-separator"),ref:Dn},J),o.createElement("div",{className:fe()("".concat(l,"-input"),(r={},(0,Z.Z)(r,"".concat(l,"-input-active"),L===1),(0,Z.Z)(r,"".concat(l,"-input-placeholder"),!!Cr),r)),ref:nt},o.createElement("input",(0,B.Z)({disabled:le[1],readOnly:Cn||typeof un[0]=="function"||!Mr,value:Cr||ya,onChange:function(R){fr(R.target.value)},placeholder:F(w,1)||"",ref:jn},Ko,Or,{autoComplete:jt}))),o.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,ne.Z)((0,ne.Z)({},ll),{},{width:Xa,position:"absolute"})}),Ir,ol&&rl)))}var bo=function(e){(0,$n.Z)(n,e);var t=(0,gt.Z)(n);function n(){var r;(0,Y.Z)(this,n);for(var a=arguments.length,c=new Array(a),l=0;l=y.length?{done:!0}:{done:!1,value:y[U++]}},e:function(N){throw N},f:w}}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 T=!0,g=!1,J;return{s:function(){l=l.call(y)},n:function(){var N=l.next();return T=N.done,N},e:function(N){g=!0,J=N},f:function(){try{!T&&l.return!=null&&l.return()}finally{if(g)throw J}}}}},29405:function(Je,ce,B){"use strict";B.d(ce,{J$:function(){return lr},ZP:function(){return vr},kY:function(){return Le}});var d=B(67294);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function ae(e,i,r,a){function n(t){return t instanceof r?t:new r(function(f){f(t)})}return new(r||(r=Promise))(function(t,f){function c(s){try{u(a.next(s))}catch(h){f(h)}}function m(s){try{u(a.throw(s))}catch(h){f(h)}}function u(s){s.done?t(s.value):n(s.value).then(c,m)}u((a=a.apply(e,i||[])).next())})}function y(e,i){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,n,t,f;return f={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function c(u){return function(s){return m([u,s])}}function m(u){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,n&&(t=u[0]&2?n.return:u[0]?n.throw||((t=n.return)&&t.call(n),0):n.next)&&!(t=t.call(n,u[1])).done)return t;switch(n=0,t&&(u=[u[0]&2,t.value]),u[0]){case 0:case 1:t=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(t=r.trys,!(t=t.length>0&&t[t.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!t||u[1]>t[0]&&u[1]t||setTimeout(a,c,n)},Me=xe(new Map),Fe=Me[0],ir=Me[1],Ue=g({onLoadingSlow:R,onSuccess:R,onError:R,onErrorRetry:ar,onDiscarded:R,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Oe?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Oe?5e3:3e3,compare:function(e,i){return Z(e)==Z(i)},isPaused:function(){return!1},cache:Fe,mutate:ir,fallback:{}},er),Ne=function(e,i){var r=g(e,i);if(i){var a=e.use,n=e.fallback,t=i.use,f=i.fallback;a&&t&&(r.use=a.concat(t)),n&&f&&(r.fallback=g(n,f))}return r},Ee=(0,d.createContext)({}),ur=function(e){var i=e.value,r=Ne((0,d.useContext)(Ee),i),a=i&&i.provider,n=(0,d.useState)(function(){return a?xe(a(r.cache||Fe),i):l})[0];return n&&(r.cache=n[0],r.mutate=n[1]),G(function(){return n?n[2]:l},[]),(0,d.createElement)(Ee.Provider,g(e,{value:r}))},or=function(e,i){var r=(0,d.useState)({})[1],a=(0,d.useRef)(e),n=(0,d.useRef)({data:!1,error:!1,isValidating:!1}),t=(0,d.useCallback)(function(f){var c=!1,m=a.current;for(var u in f){var s=u;m[s]!==f[s]&&(m[s]=f[s],n.current[s]&&(c=!0))}c&&!i.current&&r({})},[]);return G(function(){a.current=e}),[a,n.current,t]},fr=function(e){return T(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},Le=function(){return g(Ue,(0,d.useContext)(Ee))},sr=function(e){return function(){for(var r=[],a=0;a0;)s=h[v](s);return s(f,c||u.fetcher,u)}},Pe=function(e,i,r){var a=i[e]||(i[e]=[]);return a.push(r),function(){var n=a.indexOf(r);n>=0&&(a[n]=a[a.length-1],a.pop())}},pe={dedupe:!0},cr=function(e,i,r){var a=r.cache,n=r.compare,t=r.fallbackData,f=r.suspense,c=r.revalidateOnMount,m=r.refreshInterval,u=r.refreshWhenHidden,s=r.refreshWhenOffline,h=k.get(a),v=h[0],x=h[1],oe=h[2],_=h[3],b=be(e),o=b[0],Q=b[1],H=b[2],M=(0,d.useRef)(!1),A=(0,d.useRef)(!1),K=(0,d.useRef)(o),L=(0,d.useRef)(i),j=(0,d.useRef)(r),E=function(){return j.current},ye=function(){return E().isVisible()&&E().isOnline()},fe=function(O){return a.set(H,g(a.get(H),O))},ke=a.get(o),dr=w(t)?r.fallback[o]:t,F=w(ke)?dr:ke,He=a.get(H)||{},X=He.error,Ke=!M.current,je=function(){return Ke&&!w(c)?c:E().isPaused()?!1:f?w(F)?!1:r.revalidateIfStale:w(F)||r.revalidateIfStale},hr=function(){return!o||!i?!1:He.isValidating?!0:Ke&&je()},Re=hr(),ge=or({data:F,error:X,isValidating:Re},A),$=ge[0],_e=ge[1],se=ge[2],q=(0,d.useCallback)(function(O){return ae(void 0,void 0,void 0,function(){var S,C,D,ee,re,V,p,P,W,Se,te,z,Ce;return y(this,function(ne){switch(ne.label){case 0:if(S=L.current,!o||!S||A.current||E().isPaused())return[2,!1];ee=!0,re=O||{},V=!_[o]||!re.dedupe,p=function(){return!A.current&&o===K.current&&M.current},P=function(){var qe=_[o];qe&&qe[1]===D&&delete _[o]},W={isValidating:!1},Se=function(){fe({isValidating:!1}),p()&&se(W)},fe({isValidating:!0}),se({isValidating:!0}),ne.label=1;case 1:return ne.trys.push([1,3,,4]),V&&(Y(a,o,$.current.data,$.current.error,!0),r.loadingTimeout&&!a.get(o)&&setTimeout(function(){ee&&p()&&E().onLoadingSlow(o,r)},r.loadingTimeout),_[o]=[S.apply(void 0,Q),we()]),Ce=_[o],C=Ce[0],D=Ce[1],[4,C];case 2:return C=ne.sent(),V&&setTimeout(P,r.dedupingInterval),!_[o]||_[o][1]!==D?(V&&p()&&E().onDiscarded(o),[2,!1]):(fe({error:l}),W.error=l,te=oe[o],!w(te)&&(D<=te[0]||D<=te[1]||te[1]===0)?(Se(),V&&p()&&E().onDiscarded(o),[2,!1]):(n($.current.data,C)?W.data=$.current.data:W.data=C,n(a.get(o),C)||a.set(o,C),V&&p()&&E().onSuccess(C,o,r),[3,4]));case 3:return z=ne.sent(),P(),E().isPaused()||(fe({error:z}),W.error=z,V&&p()&&(E().onError(z,o,r),(typeof r.shouldRetryOnError=="boolean"&&r.shouldRetryOnError||T(r.shouldRetryOnError)&&r.shouldRetryOnError(z))&&ye()&&E().onErrorRetry(z,o,r,q,{retryCount:(re.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ee=!1,Se(),p()&&V&&Y(a,o,W.data,W.error,!1),[2,!0]}})})},[o]),mr=(0,d.useCallback)(Ve.bind(l,a,function(){return K.current}),[]);if(G(function(){L.current=i,j.current=r}),G(function(){if(!!o){var O=o!==K.current,S=q.bind(l,pe),C=function(p,P,W){se(g({error:P,isValidating:W},n($.current.data,p)?l:{data:p}))},D=0,ee=function(p){if(p==De){var P=Date.now();E().revalidateOnFocus&&P>D&&ye()&&(D=P+E().focusThrottleInterval,S())}else if(p==Ie)E().revalidateOnReconnect&&ye()&&S();else if(p==Ae)return q()},re=Pe(o,x,C),V=Pe(o,v,ee);return A.current=!1,K.current=o,M.current=!0,O&&se({data:F,error:X,isValidating:Re}),je()&&(w(F)||ue?S():tr(S)),function(){A.current=!0,re(),V()}}},[o,q]),G(function(){var O;function S(){var D=T(m)?m(F):m;D&&O!==-1&&(O=setTimeout(C,D))}function C(){!$.current.error&&(u||E().isVisible())&&(s||E().isOnline())?q(pe).then(S):S()}return S(),function(){O&&(clearTimeout(O),O=-1)}},[m,u,s,q]),(0,d.useDebugValue)(F),f&&w(F)&&o)throw L.current=i,j.current=r,A.current=!1,w(X)?q(pe):X;return{mutate:mr,get data(){return _e.data=!0,F},get error(){return _e.error=!0,X},get isValidating(){return _e.isValidating=!0,Re}}},lr=U.defineProperty(ur,"default",{value:Ue}),br=function(e){return be(e)[0]},vr=sr(cr)}}]); diff --git a/7519.b8a0cfef.async.js b/7519.b8a0cfef.async.js new file mode 100644 index 00000000..e62c5c3e --- /dev/null +++ b/7519.b8a0cfef.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7519],{17519:function(st,fe,v){v.d(fe,{Z:function(){return et}});var s=v(50959),ge=v(71349),pe=v(87132),me=v(67536),ve=v(22410),he=v(84875),A=v.n(he),Ce=v(87017),_=v(31594),ee=v(38126),B=v(33346),te=v(10570),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var t=(0,s.useRef)([]),r=(0,s.useRef)(null);return(0,s.useEffect)(function(){var o=Date.now(),n=!1;t.current.forEach(function(c){if(c){n=!0;var i=c.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(i.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current},ye=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Se=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.className,n=r.percent,c=r.prefixCls,i=r.strokeColor,a=r.strokeLinecap,l=r.strokeWidth,u=r.style,d=r.trailColor,g=r.trailWidth,S=r.transition,h=(0,te.Z)(r,ye);delete h.gapPosition;var C=Array.isArray(n)?n:[n],m=Array.isArray(i)?i:[i],f=oe(),$=l/2,b=100-l/2,y="M ".concat(a==="round"?$:0,",").concat($,` + L `).concat(a==="round"?b:100,",").concat($),p="0 0 100 ".concat(l),x=0;return s.createElement("svg",(0,ee.Z)({className:A()("".concat(c,"-line"),o),viewBox:p,preserveAspectRatio:"none",style:u},h),s.createElement("path",{className:"".concat(c,"-line-trail"),d:y,strokeLinecap:a,stroke:d,strokeWidth:g||l,fillOpacity:"0"}),C.map(function(W,E){var P=1;switch(a){case"round":P=1-l/100;break;case"square":P=1-l/2/100;break;default:P=1;break}var N={strokeDasharray:"".concat(W*P,"px, 100px"),strokeDashoffset:"-".concat(x,"px"),transition:S||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},O=m[E]||m[m.length-1];return x+=W,s.createElement("path",{key:E,className:"".concat(c,"-line-path"),d:y,strokeLinecap:a,stroke:O,strokeWidth:l,fillOpacity:"0",ref:function(I){f[E]=I},style:N})}))},$e=Se,Z=v(40727),be=v(32682),ke=v(63490),ne=0,xe=(0,ke.Z)();function Pe(){var e;return xe?(e=ne,ne+=1):e="TEST_OR_SSR",e}var Ee=function(e){var t=s.useState(),r=(0,be.Z)(t,2),o=r[0],n=r[1];return s.useEffect(function(){n("rc_progress_".concat(Pe()))},[]),e||o},se=function(t){var r=t.bg,o=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function ie(e,t){return Object.keys(e).map(function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)})}var Oe=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,c=e.radius,i=e.style,a=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,g=e.gapDegree,S=o&&(0,Z.Z)(o)==="object",h=S?"#FFF":void 0,C=d/2,m=s.createElement("circle",{className:"".concat(r,"-circle-path"),r:c,cx:C,cy:C,stroke:h,strokeLinecap:l,strokeWidth:u,opacity:a===0?0:1,style:i,ref:t});if(!S)return m;var f="".concat(n,"-conic"),$=g?"".concat(180+g/2,"deg"):"0deg",b=ie(o,(360-g)/360),y=ie(o,1),p="conic-gradient(from ".concat($,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(y.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:f},m),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(f,")")},s.createElement(se,{bg:x},s.createElement(se,{bg:p}))))}),Ie=Oe,T=100,V=function(t,r,o,n,c,i,a,l,u,d){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,S=o/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[a],C=(100-n)/100*r;u==="round"&&n!==100&&(C+=d/2,C>=r&&(C=r-.01));var m=T/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(c+S+h,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"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}},Le=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ae(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var We=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.id,n=r.prefixCls,c=r.steps,i=r.strokeWidth,a=r.trailWidth,l=r.gapDegree,u=l===void 0?0:l,d=r.gapPosition,g=r.trailColor,S=r.strokeLinecap,h=r.style,C=r.className,m=r.strokeColor,f=r.percent,$=(0,te.Z)(r,Le),b=T/2,y=Ee(o),p="".concat(y,"-gradient"),x=b-i/2,W=Math.PI*2*x,E=u>0?90+u/2:-90,P=W*((360-u)/360),N=(0,Z.Z)(c)==="object"?c:{count:c,space:2},O=N.count,R=N.space,I=ae(f),k=ae(m),D=k.find(function(H){return H&&(0,Z.Z)(H)==="object"}),G=D&&(0,Z.Z)(D)==="object",j=G?"butt":S,tt=V(W,P,0,100,E,u,d,g,j,i),de=oe(),rt=function(){var K=0;return I.map(function(F,w){var J=k[w]||k[k.length-1],M=V(W,P,K,F,E,u,d,J,j,i);return K+=F,s.createElement(Ie,{key:w,color:J,ptg:F,radius:x,prefixCls:n,gradientId:p,style:M,strokeLinecap:j,strokeWidth:i,gapDegree:u,ref:function(q){de[w]=q},size:T})}).reverse()},ot=function(){var K=Math.round(O*(I[0]/100)),F=100/O,w=0;return new Array(O).fill(null).map(function(J,M){var U=M<=K-1?k[0]:g,q=U&&(0,Z.Z)(U)==="object"?"url(#".concat(p,")"):void 0,ue=V(W,P,w,F,E,u,d,U,"butt",i,R);return w+=(P-ue.strokeDashoffset+R)*100/P,s.createElement("circle",{key:M,className:"".concat(n,"-circle-path"),r:x,cx:b,cy:b,stroke:q,strokeWidth:i,opacity:1,style:ue,ref:function(nt){de[M]=nt}})})};return s.createElement("svg",(0,ee.Z)({className:A()("".concat(n,"-circle"),C),viewBox:"0 0 ".concat(T," ").concat(T),style:h,id:o,role:"presentation"},$),!O&&s.createElement("circle",{className:"".concat(n,"-circle-trail"),r:x,cx:b,cy:b,stroke:g,strokeLinecap:j,strokeWidth:a||i,style:tt}),O?ot():rt())},ce=We,it={Line:$e,Circle:ce},De=v(32618),Q=v(81548);function L(e){return!e||e<0?0:e>100?100:e}function X(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const Ne=e=>{let{percent:t,success:r,successPercent:o}=e;const n=L(X({success:r,successPercent:o}));return[n,L(L(t)-n)]},je=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:o}=t;return[o||Q.presetPrimaryColors.green,r||null]},z=(e,t,r)=>{var o,n,c,i;let a=-1,l=-1;if(t==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e=="undefined"?(a=e==="small"?2:14,l=d!=null?d:8):typeof e=="number"?[a,l]=[e,e]:[a=14,l=8]=e,a*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e=="undefined"?l=u||(e==="small"?6:8):typeof e=="number"?[a,l]=[e,e]:[a=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[a,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,l]=[e,e]:(a=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,l=(i=(c=e[0])!==null&&c!==void 0?c:e[1])!==null&&i!==void 0?i:120));return[a,l]},we=3,Ae=e=>we/e*100;var Ze=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:c,width:i=120,type:a,children:l,success:u,size:d=i}=e,[g,S]=z(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Ae(g),6));const C={width:g,height:S,fontSize:g*.15+6},m=s.useMemo(()=>{if(c||c===0)return c;if(a==="dashboard")return 75},[c,a]),f=n||a==="dashboard"&&"bottom"||void 0,$=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=je({success:u,strokeColor:e.strokeColor}),y=A()(`${t}-inner`,{[`${t}-circle-gradient`]:$}),p=s.createElement(ce,{percent:Ne(e),strokeWidth:h,trailWidth:h,strokeColor:b,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:m,gapPosition:f});return s.createElement("div",{className:y,style:C},g<=20?s.createElement(De.Z,{title:l},s.createElement("span",null,p)):s.createElement(s.Fragment,null,p,l))},Te=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let t=[];return Object.keys(e).forEach(r=>{const o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),t=t.sort((r,o)=>r.key-o.key),t.map(r=>{let{key:o,value:n}=r;return`${n} ${o}%`}).join(", ")},Fe=(e,t)=>{const{from:r=Q.presetPrimaryColors.blue,to:o=Q.presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right"}=e,c=Te(e,["from","to","direction"]);if(Object.keys(c).length!==0){const i=Re(c);return{backgroundImage:`linear-gradient(${n}, ${i})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var Me=e=>{const{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:c,strokeColor:i,strokeLinecap:a="round",children:l,trailColor:u=null,success:d}=e,{direction:g}=(0,s.useContext)(_.E_),S=i&&typeof i!="string"?Fe(i,r):{backgroundColor:i},h=a==="square"||a==="butt"?0:void 0,C={backgroundColor:u||void 0,borderRadius:h},m=n!=null?n:[-1,c||(n==="small"?6:8)],[f,$]=z(m,"line",{strokeWidth:c}),b=Object.assign({width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(o)}% round 100px)`:`inset(0 ${100-L(o)}% 0 0 round 100px)`},S),y=X(e),p={width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(y)}% round 100px)`:`inset(0 ${100-L(y)}% 0 0 round 100px)`,backgroundColor:d==null?void 0:d.strokeColor},x={width:f<0?"100%":f,height:$};return s.createElement(s.Fragment,null,s.createElement("div",{className:`${t}-outer`,style:x},s.createElement("div",{className:`${t}-inner`,style:C},s.createElement("div",{className:`${t}-bg`,style:b}),y!==void 0?s.createElement("div",{className:`${t}-success-bg`,style:p}):null)),l)},Be=e=>{const{size:t,steps:r,percent:o=0,strokeWidth:n=8,strokeColor:c,trailColor:i=null,prefixCls:a,children:l}=e,u=Math.round(r*(o/100)),d=t==="small"?2:14,g=t!=null?t:[d,n],[S,h]=z(g,"step",{steps:r,strokeWidth:n}),C=S/r,m=new Array(r);for(let f=0;f{const t=e?"100%":"-100%";return new Y.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},He=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,Xe.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Y.bf)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Y.bf)(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:le(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:le(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Ue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ve=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Qe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`});var Ye=(0,ze.I$)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=(0,Ge.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[He(r),Ke(r),Ue(r),Ve(r)]},Qe),Je=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{const{prefixCls:r,className:o,rootClassName:n,steps:c,strokeColor:i,percent:a=0,size:l="default",showInfo:u=!0,type:d="line",status:g,format:S,style:h}=e,C=Je(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),m=s.useMemo(()=>{var I,k;const D=X(e);return parseInt(D!==void 0?(I=D!=null?D:0)===null||I===void 0?void 0:I.toString():(k=a!=null?a:0)===null||k===void 0?void 0:k.toString(),10)},[a,e.success,e.successPercent]),f=s.useMemo(()=>!qe.includes(g)&&m>=100?"success":g||"normal",[g,m]),{getPrefixCls:$,direction:b,progress:y}=s.useContext(_.E_),p=$("progress",r),[x,W]=Ye(p),E=s.useMemo(()=>{if(!u)return null;const I=X(e);let k;const D=S||(j=>`${j}%`),G=d==="line";return S||f!=="exception"&&f!=="success"?k=D(L(a),L(I)):f==="exception"?k=G?s.createElement(me.Z,null):s.createElement(ve.Z,null):f==="success"&&(k=G?s.createElement(ge.Z,null):s.createElement(pe.Z,null)),s.createElement("span",{className:`${p}-text`,title:typeof k=="string"?k:void 0},k)},[u,a,m,f,d,p,S]),P=Array.isArray(i)?i[0]:i,N=typeof i=="string"||Array.isArray(i)?i:void 0;let O;d==="line"?O=c?s.createElement(Be,Object.assign({},e,{strokeColor:N,prefixCls:p,steps:c}),E):s.createElement(Me,Object.assign({},e,{strokeColor:P,prefixCls:p,direction:b}),E):(d==="circle"||d==="dashboard")&&(O=s.createElement(Ze,Object.assign({},e,{strokeColor:P,prefixCls:p,progressStatus:f}),E));const R=A()(p,`${p}-status-${f}`,`${p}-${d==="dashboard"&&"circle"||c&&"steps"||d}`,{[`${p}-inline-circle`]:d==="circle"&&z(l,"circle")[0]<=20,[`${p}-show-info`]:u,[`${p}-${l}`]:typeof l=="string",[`${p}-rtl`]:b==="rtl"},y==null?void 0:y.className,o,n,W);return x(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},y==null?void 0:y.style),h),className:R,role:"progressbar","aria-valuenow":m},(0,Ce.Z)(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),et=_e}}]); diff --git a/7552.1792e5ef.async.js b/7552.1792e5ef.async.js deleted file mode 100644 index 287c8ea1..00000000 --- a/7552.1792e5ef.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7552],{8212:function(ae,R,i){"use strict";i.d(R,{Z:function(){return v}});var f=i(28991),p=i(67294),t={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"},_=t,T=i(27029),d=function(H,oe){return p.createElement(T.Z,(0,f.Z)((0,f.Z)({},H),{},{ref:oe,icon:_}))};d.displayName="EditOutlined";var v=p.forwardRef(d)},47828:function(){},97272:function(ae,R,i){"use strict";i.d(R,{Z:function(){return Ht}});var f=i(22122),p=i(96156),t=i(67294),_=i(94184),T=i.n(_),d=i(42550),v=i(53124),Z=function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);or){var I=r-a;return n.push(String(u).slice(0,I)),n}n.push(u),a=M}return e}var bt=0,Ce=1,Ke=2,Pe=3,je=4,xt=function(r){var a=r.enabledMeasure,n=r.children,o=r.text,u=r.width,g=r.rows,y=r.onEllipsis,M=t.useState([0,0,0]),I=(0,x.Z)(M,2),O=I[0],K=I[1],j=t.useState(bt),F=(0,x.Z)(j,2),b=F[0],B=F[1],k=(0,x.Z)(O,3),h=k[0],D=k[1],G=k[2],P=t.useState(0),ie=(0,x.Z)(P,2),V=ie[0],le=ie[1],q=t.useRef(null),E=t.useRef(null),U=t.useMemo(function(){return(0,ue.Z)(o)},[o]),W=t.useMemo(function(){return St(U)},[U]),ee=t.useMemo(function(){return!a||b!==Pe?n(U,!1):n($e(U,D),D1&&Y,on=function(l){var s;_t(!0),(s=A.onExpand)===null||s===void 0||s.call(A,l)},ln=t.useState(0),rt=(0,x.Z)(ln,2),sn=rt[0],cn=rt[1],un=function(l){var s=l.offsetWidth;cn(s)},dn=function(l){var s;en(l),Ye!==l&&((s=A.onEllipsis)===null||s===void 0||s.call(A,l))};t.useEffect(function(){var c=D.current;if(ne&&Y&&c){var l=Oe?c.offsetHeight.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs-top{clear:both;margin-bottom:-17px;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-head .ant-tabs-top-bar{border-bottom:1px solid rgba(0,0,0,.06)}.ant-card-extra{margin-left:auto;padding:16px 0;color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:before{display:table;content:""}.ant-card-body:after{display:table;clear:both;content:""}.ant-card-contain-grid .ant-card-body{display:flex;flex-wrap:wrap}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 rgba(0,0,0,.06),0 1px 0 0 rgba(0,0,0,.06),1px 1px 0 0 rgba(0,0,0,.06),inset 1px 0 0 0 rgba(0,0,0,.06),inset 0 1px 0 0 rgba(0,0,0,.06);transition:all .3s}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{display:flex;margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid rgba(0,0,0,.06)}.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{display:table;clear:both;content:""}.ant-card-actions>li{margin:12px 0;color:rgba(0,0,0,.45);text-align:center}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;color:var(--ant-primary-color);transition:color .3s}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){display:inline-block;width:100%;color:rgba(0,0,0,.45);line-height:22px;transition:color .3s}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#1890ff;color:var(--ant-primary-color)}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid rgba(0,0,0,.06)}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid rgba(0,0,0,.06)}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{display:flex;margin:-4px 0}.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{display:table;clear:both;content:""}.ant-card-meta-avatar{padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-typography{color:rgba(0,0,0,.85);overflow-wrap:break-word}.ant-typography.ant-typography-secondary{color:rgba(0,0,0,.45)}.ant-typography.ant-typography-success{color:#52c41a;color:var(--ant-success-color)}.ant-typography.ant-typography-warning{color:#faad14;color:var(--ant-warning-color)}.ant-typography.ant-typography-danger{color:#ff4d4f;color:var(--ant-error-color)}a.ant-typography.ant-typography-danger:active,a.ant-typography.ant-typography-danger:focus{color:#d9363e;color:var(--ant-error-color-active)}a.ant-typography.ant-typography-danger:hover{color:#ff7875;color:var(--ant-error-color-hover)}.ant-typography.ant-typography-disabled{color:rgba(0,0,0,.25);cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-typography p,div.ant-typography{margin-bottom:1em}.ant-typography h1,div.ant-typography-h1,div.ant-typography-h1>textarea,h1.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:38px;line-height:1.23}.ant-typography h2,div.ant-typography-h2,div.ant-typography-h2>textarea,h2.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:30px;line-height:1.35}.ant-typography h3,div.ant-typography-h3,div.ant-typography-h3>textarea,h3.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:24px;line-height:1.35}.ant-typography h4,div.ant-typography-h4,div.ant-typography-h4>textarea,h4.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:1.4}.ant-typography h5,div.ant-typography-h5,div.ant-typography-h5>textarea,h5.ant-typography{margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:600;font-size:16px;line-height:1.5}.ant-typography+h1.ant-typography,.ant-typography+h2.ant-typography,.ant-typography+h3.ant-typography,.ant-typography+h4.ant-typography,.ant-typography+h5.ant-typography{margin-top:1.2em}.ant-typography div+h1,.ant-typography div+h2,.ant-typography div+h3,.ant-typography div+h4,.ant-typography div+h5,.ant-typography h1+h1,.ant-typography h1+h2,.ant-typography h1+h3,.ant-typography h1+h4,.ant-typography h1+h5,.ant-typography h2+h1,.ant-typography h2+h2,.ant-typography h2+h3,.ant-typography h2+h4,.ant-typography h2+h5,.ant-typography h3+h1,.ant-typography h3+h2,.ant-typography h3+h3,.ant-typography h3+h4,.ant-typography h3+h5,.ant-typography h4+h1,.ant-typography h4+h2,.ant-typography h4+h3,.ant-typography h4+h4,.ant-typography h4+h5,.ant-typography h5+h1,.ant-typography h5+h2,.ant-typography h5+h3,.ant-typography h5+h4,.ant-typography h5+h5,.ant-typography li+h1,.ant-typography li+h2,.ant-typography li+h3,.ant-typography li+h4,.ant-typography li+h5,.ant-typography p+h1,.ant-typography p+h2,.ant-typography p+h3,.ant-typography p+h4,.ant-typography p+h5,.ant-typography ul+h1,.ant-typography ul+h2,.ant-typography ul+h3,.ant-typography ul+h4,.ant-typography ul+h5{margin-top:1.2em}a.ant-typography-ellipsis,span.ant-typography-ellipsis{display:inline-block;max-width:100%}.ant-typography a,a.ant-typography{color:#1890ff;color:var(--ant-primary-color);outline:none;cursor:pointer;transition:color .3s;text-decoration:none}.ant-typography a:focus,.ant-typography a:hover,a.ant-typography:focus,a.ant-typography:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-typography a:active,a.ant-typography:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-typography a:active,.ant-typography a:hover,a.ant-typography:active,a.ant-typography:hover{text-decoration:none}.ant-typography a.ant-typography-disabled,.ant-typography a[disabled],a.ant-typography.ant-typography-disabled,a.ant-typography[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-typography a.ant-typography-disabled:active,.ant-typography a.ant-typography-disabled:hover,.ant-typography a[disabled]:active,.ant-typography a[disabled]:hover,a.ant-typography.ant-typography-disabled:active,a.ant-typography.ant-typography-disabled:hover,a.ant-typography[disabled]:active,a.ant-typography[disabled]:hover{color:rgba(0,0,0,.25)}.ant-typography a.ant-typography-disabled:active,.ant-typography a[disabled]:active,a.ant-typography.ant-typography-disabled:active,a.ant-typography[disabled]:active{pointer-events:none}.ant-typography code{margin:0 .2em;padding:.2em .4em .1em;font-size:85%;background:hsla(0,0%,58.8%,.1);border:1px solid hsla(0,0%,39.2%,.2);border-radius:3px}.ant-typography kbd{margin:0 .2em;padding:.15em .4em .1em;font-size:90%;background:hsla(0,0%,58.8%,.06);border:solid hsla(0,0%,39.2%,.2);border-width:1px 1px 2px;border-radius:3px}.ant-typography mark{padding:0;background-color:#ffe58f}.ant-typography ins,.ant-typography u{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto}.ant-typography del,.ant-typography s{text-decoration:line-through}.ant-typography strong{font-weight:600}.ant-typography-copy,.ant-typography-edit,.ant-typography-expand{color:#1890ff;color:var(--ant-primary-color);text-decoration:none;outline:none;cursor:pointer;transition:color .3s;margin-left:4px}.ant-typography-copy:focus,.ant-typography-copy:hover,.ant-typography-edit:focus,.ant-typography-edit:hover,.ant-typography-expand:focus,.ant-typography-expand:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-typography-copy:active,.ant-typography-edit:active,.ant-typography-expand:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-typography-copy-success,.ant-typography-copy-success:focus,.ant-typography-copy-success:hover{color:#52c41a;color:var(--ant-success-color)}.ant-typography-edit-content{position:relative}div.ant-typography-edit-content{left:-12px;margin-top:-5px;margin-bottom:calc(1em - 5px)}.ant-typography-edit-content-confirm{position:absolute;right:10px;bottom:8px;color:rgba(0,0,0,.45);font-weight:400;font-size:14px;font-style:normal;pointer-events:none}.ant-typography-edit-content textarea{height:1em;margin:0!important;-moz-transition:none}.ant-typography ol,.ant-typography ul{margin:0 0 1em;padding:0}.ant-typography ol li,.ant-typography ul li{margin:0 0 0 20px;padding:0 0 0 4px}.ant-typography ul{list-style-type:circle}.ant-typography ul ul{list-style-type:disc}.ant-typography ol{list-style-type:decimal}.ant-typography blockquote,.ant-typography pre{margin:1em 0}.ant-typography pre{padding:.4em .6em;white-space:pre-wrap;word-wrap:break-word;background:hsla(0,0%,58.8%,.1);border:1px solid hsla(0,0%,39.2%,.2);border-radius:3px}.ant-typography pre code{display:inline;margin:0;padding:0;font-size:inherit;font-family:inherit;background:transparent;border:0}.ant-typography blockquote{padding:0 0 0 .6em;border-left:4px solid hsla(0,0%,39.2%,.2);opacity:.85}.ant-typography-single-line{white-space:nowrap}.ant-typography-ellipsis-single-line{overflow:hidden;text-overflow:ellipsis}a.ant-typography-ellipsis-single-line,span.ant-typography-ellipsis-single-line{vertical-align:bottom}.ant-typography-ellipsis-multiple-line{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3; - /*! autoprefixer: ignore next */-webkit-box-orient:vertical}.ant-typography-rtl{direction:rtl}.ant-typography-rtl .ant-typography-copy,.ant-typography-rtl .ant-typography-edit,.ant-typography-rtl .ant-typography-expand{margin-right:4px;margin-left:0}.ant-typography-rtl .ant-typography-expand{float:left}div.ant-typography-edit-content.ant-typography-rtl{right:-12px;left:auto}.ant-typography-rtl .ant-typography-edit-content-confirm{right:auto;left:10px}.ant-typography-rtl.ant-typography ol li,.ant-typography-rtl.ant-typography ul li{margin:0 20px 0 0;padding:0 4px 0 0} \ No newline at end of file diff --git a/7937.43d34fd3.async.js b/7937.43d34fd3.async.js new file mode 100644 index 00000000..f02819c4 --- /dev/null +++ b/7937.43d34fd3.async.js @@ -0,0 +1,117 @@ +!(function(){var wr=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7937],{38551:function(Ve,Ge,gt){"use strict";gt.d(Ge,{P:function(){return qlt}});var _t={};gt.r(_t),gt.d(_t,{area:function(){return yW},bottom:function(){return ja},bottomLeft:function(){return ja},bottomRight:function(){return ja},inside:function(){return ja},left:function(){return ja},outside:function(){return xW},right:function(){return ja},spider:function(){return OW},surround:function(){return SW},top:function(){return ja},topLeft:function(){return ja},topRight:function(){return ja}});var Nt={};gt.r(Nt),gt.d(Nt,{interpolateBlues:function(){return RH},interpolateBrBG:function(){return fH},interpolateBuGn:function(){return xH},interpolateBuPu:function(){return _H},interpolateCividis:function(){return BH},interpolateCool:function(){return YH},interpolateCubehelixDefault:function(){return WH},interpolateGnBu:function(){return OH},interpolateGreens:function(){return LH},interpolateGreys:function(){return NH},interpolateInferno:function(){return QH},interpolateMagma:function(){return KH},interpolateOrRd:function(){return wH},interpolateOranges:function(){return DH},interpolatePRGn:function(){return dH},interpolatePiYG:function(){return hH},interpolatePlasma:function(){return JH},interpolatePuBu:function(){return MH},interpolatePuBuGn:function(){return SH},interpolatePuOr:function(){return pH},interpolatePuRd:function(){return EH},interpolatePurples:function(){return IH},interpolateRainbow:function(){return $H},interpolateRdBu:function(){return vH},interpolateRdGy:function(){return gH},interpolateRdPu:function(){return AH},interpolateRdYlBu:function(){return yH},interpolateRdYlGn:function(){return mH},interpolateReds:function(){return jH},interpolateSinebow:function(){return UH},interpolateSpectral:function(){return bH},interpolateTurbo:function(){return qH},interpolateViridis:function(){return ZH},interpolateWarm:function(){return HH},interpolateYlGn:function(){return PH},interpolateYlGnBu:function(){return TH},interpolateYlOrBr:function(){return CH},interpolateYlOrRd:function(){return kH},schemeAccent:function(){return FW},schemeBlues:function(){return Tw},schemeBrBG:function(){return sw},schemeBuGn:function(){return gw},schemeBuPu:function(){return yw},schemeCategory10:function(){return BW},schemeDark2:function(){return zW},schemeGnBu:function(){return mw},schemeGreens:function(){return Pw},schemeGreys:function(){return Cw},schemeOrRd:function(){return bw},schemeOranges:function(){return Lw},schemePRGn:function(){return cw},schemePaired:function(){return GW},schemePastel1:function(){return WW},schemePastel2:function(){return HW},schemePiYG:function(){return lw},schemePuBu:function(){return _w},schemePuBuGn:function(){return xw},schemePuOr:function(){return uw},schemePuRd:function(){return Ow},schemePurples:function(){return kw},schemeRdBu:function(){return fw},schemeRdGy:function(){return dw},schemeRdPu:function(){return ww},schemeRdYlBu:function(){return hw},schemeRdYlGn:function(){return pw},schemeReds:function(){return Rw},schemeSet1:function(){return YW},schemeSet2:function(){return $W},schemeSet3:function(){return VW},schemeSpectral:function(){return vw},schemeTableau10:function(){return XW},schemeYlGn:function(){return Mw},schemeYlGnBu:function(){return Sw},schemeYlOrBr:function(){return Ew},schemeYlOrRd:function(){return Aw}});var ye={};gt.r(ye),gt.d(ye,{geoAlbers:function(){return W5},geoAlbersUsa:function(){return btt},geoAzimuthalEqualArea:function(){return xtt},geoAzimuthalEqualAreaRaw:function(){return bm},geoAzimuthalEquidistant:function(){return _tt},geoAzimuthalEquidistantRaw:function(){return xm},geoConicConformal:function(){return wtt},geoConicConformalRaw:function(){return $5},geoConicEqualArea:function(){return Fh},geoConicEqualAreaRaw:function(){return G5},geoConicEquidistant:function(){return Mtt},geoConicEquidistantRaw:function(){return V5},geoEqualEarth:function(){return Att},geoEqualEarthRaw:function(){return _m},geoEquirectangular:function(){return Stt},geoEquirectangularRaw:function(){return gu},geoGnomonic:function(){return Ttt},geoGnomonicRaw:function(){return Om},geoIdentity:function(){return Ptt},geoMercator:function(){return Ott},geoMercatorRaw:function(){return vu},geoNaturalEarth1:function(){return Ctt},geoNaturalEarth1Raw:function(){return wm},geoOrthographic:function(){return ktt},geoOrthographicRaw:function(){return Sm},geoProjection:function(){return Oa},geoProjectionMutator:function(){return ym},geoStereographic:function(){return Rtt},geoStereographicRaw:function(){return Mm},geoTransverseMercator:function(){return Ltt},geoTransverseMercatorRaw:function(){return Em}});var Be={};gt.r(Be),gt.d(Be,{frequency:function(){return Int},id:function(){return jnt},name:function(){return Dnt},weight:function(){return Nnt}});var Jt=gt(50959),he=gt(10422),ie=gt.t(he,2),Ht=function(){return Ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(It=Zt.createRoot)}catch(t){}function Ft(t){var e=Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}var Se="__rc_react_root__";function Re(t,e){Ft(!0);var n=e[Se]||It(e);Ft(!1),n.render(t),e[Se]=n}function Ke(t,e){te(t,e)}function We(t,e){}function Ze(t,e){if(It){Re(t,e);return}Ke(t,e)}function cn(t){return yt(this,void 0,void 0,function(){return pe(this,function(e){return[2,Promise.resolve().then(function(){var n;(n=t[Se])===null||n===void 0||n.unmount(),delete t[Se]})]})})}function He(t){Bt(t)}function De(t){}function an(t){return yt(this,void 0,void 0,function(){return pe(this,function(e){return It!==void 0?[2,cn(t)]:(He(t),[2])})})}var _e=new Map;_e.set("tooltip",document.createElement("div"));var Me=function(t,e){e===void 0&&(e=!1);var n=document.createElement("div");return e?n=_e.get("tooltip"):t!=null&&t.key&&(_e.get(t.key)||_e.set(t.key,n),n=_e.get(t.key)),Ze(t,n),n},pn=function(t){var e=t.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=`.loading { + display: inline-block; + position: relative; + width: 80px; + height: 80px; + } + .loading div { + position: absolute; + top: 33px; + width: 13px; + height: 13px; + border-radius: 50%; + background: #ccc; + animation-timing-function: cubic-bezier(0, 1, 1, 0); + } + .loading div:nth-child(1) { + left: 8px; + animation: loading1 0.6s infinite; + } + .loading div:nth-child(2) { + left: 8px; + animation: loading2 0.6s infinite; + } + .loading div:nth-child(3) { + left: 32px; + animation: loading2 0.6s infinite; + } + .loading div:nth-child(4) { + left: 56px; + animation: loading3 0.6s infinite; + } + @keyframes loading1 { + 0% { + transform: scale(0); + } + 100% { + transform: scale(1); + } + } + @keyframes loading3 { + 0% { + transform: scale(1); + } + 100% { + transform: scale(0); + } + } + @keyframes loading2 { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(24px, 0); + } + } + `,n.classList.add("loading"),n.innerHTML="
",e.appendChild(r),e.appendChild(n)},Ln=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=Jt.useRef(null);Jt.useEffect(function(){!e&&i.current&&pn(i.current)},[]);var a=function(){return e||Jt.createElement("div",{ref:i})};return Jt.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},qn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(t){qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||Jt.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):Jt.createElement(Jt.Fragment,null,this.props.children)},e}(Jt.Component),fn=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r-1}var dn=or;function Qr(t,e){var n=this.__data__,r=Le(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var wa=Qr;function ci(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var l=a.get(t),u=a.get(e);if(l&&u)return l==e&&u==t;var f=-1,d=!0,h=n&uR?new v1:void 0;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t-1&&t%1==0&&t<=eL}var Mp=nL,rL="[object Arguments]",iL="[object Array]",aL="[object Boolean]",oL="[object Date]",sL="[object Error]",cL="[object Function]",lL="[object Map]",uL="[object Number]",fL="[object Object]",dL="[object RegExp]",hL="[object Set]",pL="[object String]",vL="[object WeakMap]",gL="[object ArrayBuffer]",yL="[object DataView]",mL="[object Float32Array]",bL="[object Float64Array]",xL="[object Int8Array]",_L="[object Int16Array]",OL="[object Int32Array]",wL="[object Uint8Array]",SL="[object Uint8ClampedArray]",ML="[object Uint16Array]",EL="[object Uint32Array]",Zn={};Zn[mL]=Zn[bL]=Zn[xL]=Zn[_L]=Zn[OL]=Zn[wL]=Zn[SL]=Zn[ML]=Zn[EL]=!0,Zn[rL]=Zn[iL]=Zn[gL]=Zn[aL]=Zn[yL]=Zn[oL]=Zn[sL]=Zn[cL]=Zn[lL]=Zn[uL]=Zn[fL]=Zn[dL]=Zn[hL]=Zn[pL]=Zn[vL]=!1;function AL(t){return Oi(t)&&Mp(t.length)&&!!Zn[ot(t)]}var TL=AL;function PL(t){return function(e){return t(e)}}var Ep=PL,A1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gc=A1&&typeof module=="object"&&module&&!module.nodeType&&module,CL=Gc&&Gc.exports===A1,Ap=CL&&it.process,kL=function(){try{var t=Gc&&Gc.require&&Gc.require("util").types;return t||Ap&&Ap.binding&&Ap.binding("util")}catch(e){}}(),Ts=kL,T1=Ts&&Ts.isTypedArray,RL=T1?Ep(T1):TL,P1=RL,LL=Object.prototype,NL=LL.hasOwnProperty;function IL(t,e){var n=Mt(t),r=!n&&Sp(t),i=!n&&!r&&Hu(t),a=!n&&!r&&!i&&P1(t),o=n||r||i||a,s=o?zR(t.length,String):[],c=s.length;for(var l in t)(e||NL.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Yu(l,c)))&&s.push(l);return s}var C1=IL,jL=Object.prototype;function DL(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||jL;return t===n}var $u=DL;function BL(t,e){return function(n){return t(e(n))}}var k1=BL,FL=k1(Object.keys,Object),zL=FL,GL=Object.prototype,WL=GL.hasOwnProperty;function HL(t){if(!$u(t))return zL(t);var e=[];for(var n in Object(t))WL.call(t,n)&&n!="constructor"&&e.push(n);return e}var YL=HL;function $L(t){return t!=null&&Mp(t.length)&&!Wt(t)}var Do=$L;function VL(t){return Do(t)?C1(t):YL(t)}var Bo=VL;function XL(t){return b1(t,Bo,wp)}var Tp=XL,UL=1,qL=Object.prototype,ZL=qL.hasOwnProperty;function KL(t,e,n,r,i,a){var o=n&UL,s=Tp(t),c=s.length,l=Tp(e),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var d=s[f];if(!(o?d in e:ZL.call(e,d)))return!1}var h=a.get(t),p=a.get(e);if(h&&p)return h==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=o;++fglMatrix.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function Rut(t,e){var n=$I(t,e);return Math.acos(2*n*n-1)}function Ua(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],c=n[1],l=n[2],u=n[3];return t[0]=r*u+o*s+i*l-a*c,t[1]=i*u+o*c+a*s-r*l,t[2]=a*u+o*l+r*c-i*s,t[3]=o*u-r*s-i*c-a*l,t}function Lut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=i*c+a*s,t[2]=a*c-i*s,t[3]=o*c-r*s,t}function Nut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-a*s,t[1]=i*c+o*s,t[2]=a*c+r*s,t[3]=o*c-i*s,t}function Iut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*s,t[1]=i*c-r*s,t[2]=a*c+o*s,t[3]=o*c-a*s,t}function jut(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function GI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),c=o>0?s*Math.sin(o)/o:0;return t[0]=n*c,t[1]=r*c,t[2]=i*c,t[3]=s*Math.cos(o),t}function WI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function Dut(t,e,n){return WI(t,e),YI(t,t,n),GI(t,t),t}function Yp(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=n[0],l=n[1],u=n[2],f=n[3],d,h,p,v,g;return h=i*c+a*l+o*u+s*f,h<0&&(h=-h,c=-c,l=-l,u=-u,f=-f),1-h>Ls.Ib?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function But(t){var e=glMatrix.RANDOM(),n=glMatrix.RANDOM(),r=glMatrix.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t}function $p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function Fut(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function HI(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function Qu(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}function zut(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Gut=sr.d9,Vp=sr.al,Ju=sr.JG,Wut=sr.t8,Hut=sr.IH,ub=Ua,YI=sr.bA,$I=sr.AK,Yut=sr.t7,$ut=sr.kE,Vut=null,Xut=sr.we,Uut=null,tf=sr.Fv,qut=sr.I6,Zut=sr.fS,Kut=function(){var t=dt.create(),e=dt.fromValues(1,0,0),n=dt.fromValues(0,1,0);return function(r,i,a){var o=dt.dot(i,a);return o<-.999999?(dt.cross(t,e,i),dt.len(t)<1e-6&&dt.cross(t,n,i),dt.normalize(t,t),Xa(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(dt.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,tf(r,r))}}(),Qut=function(){var t=br(),e=br();return function(n,r,i,a,o,s){return Yp(t,r,o,s),Yp(e,i,a,s),Yp(n,t,e,2*s*(1-s)),n}}(),Jut=function(){var t=lb();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],tf(e,HI(e,t))}}(),$c=gt(38015),xr=gt(39696);function ui(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var me=gt(58622),ef=gt(98104),er=function(t){return(0,ef.Z)(t,"String")},cr=gt(39083),Vc={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function fb(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Vc[n]===e.length-1&&"achlmqstvz".includes(n)})}function db(t){return fb(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function hb(t){return db(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}var pb={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function vb(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Vc[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Vc[n]))),!!Vc[n]););}function VI(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function XI(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ns(t){return t>=48&&t<=57}function UI(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!Ns(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function nf(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(KI(i)&&(o===3||o===4)?VI(t):UI(t),t.err.length)return;t.data.push(t.param),nf(t),t.index=t.max||!XI(n.charCodeAt(t.index)))break}vb(t)}var JI=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function tj(t){if(fb(t))return[].concat(t);var e=new JI(t);for(nf(e);e.index=a)o={x:n,y:r};else{var s=qa([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function gb(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function rj(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Xp(t,e,s,c,l).point;var b=(t-s)/2,_=(e-c)/2,O={x:d(m)*b+f(m)*_,y:-f(m)*b+d(m)*_},w=Math.pow(O.x,2)/Math.pow(v,2)+Math.pow(O.y,2)/Math.pow(g,2);w>1&&(v*=h(w),g*=h(w));var M=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(O.y,2)-Math.pow(g,2)*Math.pow(O.x,2),E=Math.pow(v,2)*Math.pow(O.y,2)+Math.pow(g,2)*Math.pow(O.x,2),A=M/E;A=A<0?0:A;var P=(a!==o?1:-1)*h(A),C={x:P*(v*O.y/g),y:P*(-(g*O.x)/v)},j={x:d(m)*C.x-f(m)*C.y+(t+s)/2,y:f(m)*C.x+d(m)*C.y+(e+c)/2},N={x:(O.x-C.x)/v,y:(O.y-C.y)/g},k=gb({x:1,y:0},N),R={x:(-O.x-C.x)/v,y:(-O.y-C.y)/g},D=gb(N,R);!o&&D>0?D-=2*p:o&&D<0&&(D+=2*p),D%=2*p;var B=k+D*l,F=v*d(B),z=g*f(B),Y={x:d(m)*F-f(m)*z+j.x,y:f(m)*F+d(m)*z+j.y};return Y}function ij(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,_=e,O=0,w=[b,_,O],M=[b,_],E=0,A={x:0,y:0},P=[{x:b,y:_}];m&&l<=0&&(A={x:b,y:_});for(var C=0;C<=y;C+=1){if(E=C/y,f=rj(t,e,n,r,i,a,o,s,c,E),b=f.x,_=f.y,h&&P.push({x:b,y:_}),v&&(O+=ui(M,[b,_])),M=[b,_],m&&O>=l&&l>w[2]){var j=(O-l)/(O-w[2]);A={x:M[0]*(1-j)+w[0]*j,y:M[1]*(1-j)+w[1]*j}}w=[b,_,O]}return m&&l>=O&&(A={x:s,y:c}),{length:O,point:A,min:{x:Math.min.apply(null,P.map(function(N){return N.x})),y:Math.min.apply(null,P.map(function(N){return N.y}))},max:{x:Math.max.apply(null,P.map(function(N){return N.x})),y:Math.max.apply(null,P.map(function(N){return N.y}))}}}function aj(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function yb(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,_=0,O=[m,b,_],w=[m,b],M=0,E={x:0,y:0},A=[{x:m,y:b}];y&&c<=0&&(E={x:m,y:b});for(var P=0;P<=g;P+=1){if(M=P/g,u=aj(t,e,n,r,i,a,o,s,M),m=u.x,b=u.y,d&&A.push({x:m,y:b}),p&&(_+=ui(w,[m,b])),w=[m,b],y&&_>=c&&c>O[2]){var C=(_-c)/(_-O[2]);E={x:w[0]*(1-C)+O[0]*C,y:w[1]*(1-C)+O[1]*C}}O=[m,b,_]}return y&&c>=_&&(E={x:o,y:s}),{length:_,point:E,min:{x:Math.min.apply(null,A.map(function(j){return j.x})),y:Math.min.apply(null,A.map(function(j){return j.y}))},max:{x:Math.max.apply(null,A.map(function(j){return j.x})),y:Math.max.apply(null,A.map(function(j){return j.y}))}}}function oj(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function sj(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],_=[g,y],O=0,w={x:0,y:0},M=[{x:g,y}];v&&o<=0&&(w={x:g,y});for(var E=0;E<=p;E+=1){if(O=E/p,c=oj(t,e,n,r,i,a,O),g=c.x,y=c.y,u&&M.push({x:g,y}),d&&(m+=ui(_,[g,y])),_=[g,y],v&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);w={x:_[0]*(1-A)+b[0]*A,y:_[1]*(1-A)+b[1]*A}}b=[g,y,m]}return v&&o>=m&&(w={x:i,y:a}),{length:m,point:w,min:{x:Math.min.apply(null,M.map(function(P){return P.x})),y:Math.min.apply(null,M.map(function(P){return P.y}))},max:{x:Math.max.apply(null,M.map(function(P){return P.x})),y:Math.max.apply(null,M.map(function(P){return P.y}))}}}function mb(t,e,n){for(var r,i,a,o,s,c,l=rf(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],_=[],O=0,w={x:0,y:0},M=w,E=w,A=w,P=0,C=0,j=l.length;C=e&&(A=E),_.push(M),b.push(w),P+=O,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=P&&(A={x:p,y:v}),{length:P,point:A,min:{x:Math.min.apply(null,b.map(function(N){return N.x})),y:Math.min.apply(null,b.map(function(N){return N.y}))},max:{x:Math.max.apply(null,_.map(function(N){return N.x})),y:Math.max.apply(null,_.map(function(N){return N.y}))}}}function cj(t,e){return mb(t,void 0,(0,S.pi)((0,S.pi)({},e),{bbox:!1,length:!0})).length}var Dr=function(t){return Array.isArray?Array.isArray(t):(0,ef.Z)(t,"Array")},af=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.min(e,n)},t[0])},of=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.max(e,n)},t[0])},lj=1e-5;function Xc(t,e,n){return n===void 0&&(n=lj),Math.abs(t-e)7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}function dj(t){return hb(t)&&t.every(function(e){var n=e[0];return"MC".includes(n)})}function sf(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}}function Up(t,e,n,r,i,a,o,s,c,l){var u=t,f=e,d=n,h=r,p=s,v=c,g=Math.PI*120/180,y=Math.PI/180*(+i||0),m=[],b,_,O,w,M;if(l)_=l[0],O=l[1],w=l[2],M=l[3];else{b=sf(u,f,-y),u=b.x,f=b.y,b=sf(p,v,-y),p=b.x,v=b.y;var E=(u-p)/2,A=(f-v)/2,P=E*E/(d*d)+A*A/(h*h);P>1&&(P=Math.sqrt(P),d*=P,h*=P);var C=d*d,j=h*h,N=(a===o?-1:1)*Math.sqrt(Math.abs((C*j-C*A*A-j*E*E)/(C*A*A+j*E*E)));w=N*d*A/h+(u+p)/2,M=N*-h*E/d+(f+v)/2,_=Math.asin(((f-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),O=Math.asin(((v-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),_=uO&&(_-=Math.PI*2),!o&&O>_&&(O-=Math.PI*2)}var k=O-_;if(Math.abs(k)>g){var R=O,D=p,B=v;O=_+g*(o&&O>_?1:-1),p=w+d*Math.cos(O),v=M+h*Math.sin(O),m=Up(p,v,d,h,i,0,o,D,B,[O,R,w,M])}k=O-_;var F=Math.cos(_),z=Math.sin(_),Y=Math.cos(O),q=Math.sin(O),rt=Math.tan(k/4),st=4/3*d*rt,At=4/3*h*rt,Yt=[u,f],qt=[u+st*z,f-At*F],Rt=[p+st*q,v-At*Y],Lt=[p,v];if(qt[0]=2*Yt[0]-qt[0],qt[1]=2*Yt[1]-qt[1],l)return qt.concat(Rt,Lt,m);m=qt.concat(Rt,Lt,m);for(var le=[],ue=0,we=m.length;ue=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:Ob(v[0],v[1],f)}function gj(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function yj(t){var e=0,n=0,r=0;return qp(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=gj(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function wb(t){return yj(t)>=0}function mj(t){var e=t.slice(1).map(function(n,r,i){return r?i[r-1].slice(-2).concat(n.slice(1)):t[0].slice(1).concat(n.slice(1))}).map(function(n){return n.map(function(r,i){return n[n.length-i-2*(1-i%2)]})}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(n){return["C"].concat(n.slice(2))}))}function bj(t){return t.map(function(e){return Array.isArray(e)?[].concat(e):e})}function xj(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function _j(t,e){var n=t.length-1,r=[],i=0,a=0,o=xj(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=ui(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}var Oj=function(t){return(0,ef.Z)(t,"Boolean")},Sb=Oj,zo=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"},wj=function(t){return t===void 0},nr=wj;function Sj(t,e,n){return mb(t,e,(0,S.pi)((0,S.pi)({},n),{bbox:!1,length:!0})).point}var Mj=gt(52617);function Hr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function cf(t,e){var n=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),a=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function Mb(t){return(t+Math.PI*2)%(Math.PI*2)}function Eb(t,e){var n=Math.abs(t);return e>0?n:n*-1}function Ej(t,e,n,r,i,a){var o=n,s=r;if(o===0||s===0)return{x:t,y:e};for(var c=i-t,l=a-e,u=Math.abs(c),f=Math.abs(l),d=o*o,h=s*s,p=Math.PI/4,v=0,g=0,y=0;y<4;y++){v=o*Math.cos(p),g=s*Math.sin(p);var m=(d-h)*Math.pow(Math.cos(p),3)/o,b=(h-d)*Math.pow(Math.sin(p),3)/s,_=v-m,O=g-b,w=u-m,M=f-b,E=Math.hypot(O,_),A=Math.hypot(M,w),P=E*Math.asin((_*M-O*w)/(E*A)),C=P/Math.sqrt(d+h-v*v-g*g);p+=C,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:t+Eb(v,c),y:e+Eb(g,l)}}function Aj(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function Tj(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function Pj(t,e,n){return Math.atan(-e/t*Math.tan(n))}function Cj(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function kj(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function Rj(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function Lj(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+Math.PI*2)%(Math.PI*2)}function Ab(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function Tb(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}function Nj(t,e,n,r,i,a,o){for(var s=Pj(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=Cj(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}function tft(t,e,n,r,i,a,o,s,c){var l=Tb(s-t,c-e,-i),u=__read(l,2),f=u[0],d=u[1],h=Ej(0,0,n,r,f,d),p=Lj(n,r,h.x,h.y);po&&(h=Ab(n,r,o));var v=Tb(h.x,h.y,i);return{x:v[0]+t,y:v[1]+e}}function eft(t,e,n,r,i,a,o,s){var c=(o-a)*s+a,l=Aj(t,e,n,r,i,a,o,c),u=Tj(t,e,n,r,i,a,o,c);return Mb(Math.atan2(u,l))}var Ij=1e-4;function Pb(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,(0,S.ev)([],(0,S.CR)(t.concat([h])),!1)),i.apply(void 0,(0,S.ev)([],(0,S.CR)(e.concat([h])),!1))],v=Hr(c[0],c[1],p[0],p[1]);v=0&&vs?Hr(n,r,i,a):kb(t,e,n,r,i,a)}function kb(t,e,n,r,i,a){var o=[n-t,r-e];if($c.I6(o,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var s=[-o[1],o[0]];$c.Fv(s,s);var c=[i-t,a-e];return Math.abs($c.AK(c,s))}function rft(t,e,n,r){return Math.atan2(r-e,n-t)}function Go(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function Rb(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function Lb(t,e,n,r){var i=-3*t+9*e-9*n+3*r,a=6*t-12*e+6*n,o=3*e-3*t,s=[],c,l,u;if(Xc(i,0))Xc(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Xc(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function Bj(t,e,n,r,i,a,o,s,c){var l=Go(t,n,i,o,c),u=Go(e,r,a,s,c),f=aa(t,e,n,r,c),d=aa(n,r,i,a,c),h=aa(i,a,o,s,c),p=aa(f.x,f.y,d.x,d.y,c),v=aa(d.x,d.y,h.x,h.y,c);return[[t,e,f.x,f.y,p.x,p.y,l,u],[l,u,v.x,v.y,h.x,h.y,o,s]]}function Zp(t,e,n,r,i,a,o,s,c){if(c===0)return jj([t,n,i,o],[e,r,a,s]);var l=Bj(t,e,n,r,i,a,o,s,.5),u=__spreadArray(__spreadArray([],__read(l[0]),!1),[c-1],!1),f=__spreadArray(__spreadArray([],__read(l[1]),!1),[c-1],!1);return Zp.apply(void 0,__spreadArray([],__read(u),!1))+Zp.apply(void 0,__spreadArray([],__read(f),!1))}function Fj(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Lb(t,n,i,o),f=Lb(e,r,a,s),d=0;d1||e<0||t.length<2)return null;var n=Ib(t),r=n.segments,i=n.totalLength;if(i===0)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+f){var d=(e-a)/f;o=aa(l[0],l[1],u[0],u[1],d);break}a+=f}return o}function Bb(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Ib(t),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+f){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=f}return o}function Fb(t,e,n){for(var r=1/0,i=0;i=0?[i]:[]}function Hj(t,e,n,r,i,a,o){var s=Uc(t,n,i,o),c=Uc(e,r,a,o),l=aa(t,e,n,r,o),u=aa(n,r,i,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function Kp(t,e,n,r,i,a,o){if(o===0)return(Hr(t,e,n,r)+Hr(n,r,i,a)+Hr(t,e,i,a))/2;var s=Hj(t,e,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),Kp.apply(void 0,__spreadArray([],__read(c),!1))+Kp.apply(void 0,__spreadArray([],__read(l),!1))}function Yj(t,e,n,r,i,a){var o=zb(t,n,i)[0],s=zb(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(Uc(t,n,i,o)),s!==void 0&&l.push(Uc(e,r,a,s)),cf(c,l)}function vft(t,e,n,r,i,a){return Kp(t,e,n,r,i,a,3)}function $j(t,e,n,r,i,a,o,s){return Pb([t,n,i],[e,r,a],o,s,Uc)}function Vj(t,e,n,r,i,a,o,s){var c=$j(t,e,n,r,i,a,o,s);return Hr(c.x,c.y,o,s)}var Xj=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof gt.g!="undefined"?gt.g:typeof self!="undefined"?self:{},Gb={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Xj,function(){function n(O,w,M,E,A){r(O,w,M||0,E||O.length-1,A||a)}function r(O,w,M,E,A){for(;E>M;){if(E-M>600){var P=E-M+1,C=w-M+1,j=Math.log(P),N=.5*Math.exp(2*j/3),k=.5*Math.sqrt(j*N*(P-N)/P)*(C-P/2<0?-1:1),R=Math.max(M,Math.floor(w-C*N/P+k)),D=Math.min(E,Math.floor(w+(P-C)*N/P+k));r(O,w,R,D,A)}var B=O[w],F=M,z=E;for(i(O,M,w),A(O[E],B)>0&&i(O,M,E);F0;)z--}A(O[M],B)===0?i(O,M,z):(z++,i(O,z,E)),z<=w&&(M=z+1),w<=z&&(E=z-1)}}function i(O,w,M){var E=O[w];O[w]=O[M],O[M]=E}function a(O,w){return Ow?1:0}var o=function(w){w===void 0&&(w=9),this._maxEntries=Math.max(4,w),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(w){var M=this.data,E=[];if(!m(w,M))return E;for(var A=this.toBBox,P=[];M;){for(var C=0;C=0&&P[M].children.length>this._maxEntries;)this._split(P,M),M--;this._adjustParentBBoxes(A,P,M)},o.prototype._split=function(w,M){var E=w[M],A=E.children.length,P=this._minEntries;this._chooseSplitAxis(E,P,A);var C=this._chooseSplitIndex(E,P,A),j=b(E.children.splice(C,E.children.length-C));j.height=E.height,j.leaf=E.leaf,c(E,this.toBBox),c(j,this.toBBox),M?w[M-1].children.push(j):this._splitRoot(E,j)},o.prototype._splitRoot=function(w,M){this.data=b([w,M]),this.data.height=w.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(w,M,E){for(var A,P=1/0,C=1/0,j=M;j<=E-M;j++){var N=l(w,0,j,this.toBBox),k=l(w,j,E,this.toBBox),R=g(N,k),D=h(N)+h(k);R=M;D--){var B=w.children[D];u(j,w.leaf?P(B):B),N+=p(j)}return N},o.prototype._adjustParentBBoxes=function(w,M,E){for(var A=E;A>=0;A--)u(M[A],w)},o.prototype._condense=function(w){for(var M=w.length-1,E=void 0;M>=0;M--)w[M].children.length===0?M>0?(E=w[M-1].children,E.splice(E.indexOf(w[M]),1)):this.clear():c(w[M],this.toBBox)};function s(O,w,M){if(!M)return w.indexOf(O);for(var E=0;E=O.minX&&w.maxY>=O.minY}function b(O){return{children:O,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(O,w,M,E,A){for(var P=[w,M];P.length;)if(M=P.pop(),w=P.pop(),!(M-w<=E)){var C=w+Math.ceil((M-w)/E/2)*E;n(O,C,w,M,A),P.push(w,C,C,M)}}return o})})(Gb);var Uj=Gb.exports,St;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(St||(St={}));var Is;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(Is||(Is={}));var Za=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),qj=function(){function t(e){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.plugins=[],this.config=(0,S.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function js(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Qp(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function uf(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Wb(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Zj(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function Kj(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Ds(t){return t===void 0?0:t>360||t<-360?t%360:t}function ei(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?dt.clone(t):(0,xr.Z)(t)?dt.fromValues(t,e,n):dt.fromValues(t[0],t[1]||e,t[2]||n)}function rr(t){return t*(Math.PI/180)}function Li(t){return t*(180/Math.PI)}function gft(t){return t=t%400,t<0&&(t+=400),t/400*360}function yft(t){return t/360}function Qj(t){return 360*t}function Jj(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function t6(t,e){var n,r,i=Math.PI*.5,a=(0,S.CR)(Kt.getScaling(dt.create(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function Jp(t,e){return e.length===16?t6(t,e):Jj(t,e)}function e6(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return zI(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function n6(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function Hb(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eYe[1][2]&&(a[0]=-a[0]),Ye[0][2]>Ye[2][0]&&(a[1]=-a[1]),Ye[1][0]>Ye[0][1]&&(a[2]=-a[2]),!0}function i6(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function a6(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function t0(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var Er=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){js(this.center,e),js(this.halfExtents,n),Qp(this.min,this.center,this.halfExtents),uf(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){uf(this.center,n,e),Wb(this.center,this.center,.5),Qp(this.halfExtents,n,e),Wb(this.halfExtents,this.halfExtents,.5),js(this.min,e),js(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],_=e.halfExtents,O=_[0],w=_[1],M=_[2],E=y-O,A=y+O,P=m-w,C=m+w,j=b-M,N=b+M;Ef&&(f=A),Ph&&(h=C),jv&&(v=N),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),_=Math.abs(f),O=Math.abs(d),w=Math.abs(h),M=Math.abs(p),E=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+_*o[1]+O*o[2],i[2]=w*o[0]+M*o[1]+E*o[2],Qp(this.min,r,i),uf(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=Zj([0,0,0],this.getMin(),e.getMin()),i=Kj([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),o6=function(){function t(e,n){this.distance=e||0,this.normal=n||dt.fromValues(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return dt.dot(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/dt.len(this.normal);dt.scale(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&dt.lerp(r,e,n,o),s},t}(),Ka;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(Ka||(Ka={}));var s6=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new o6)}return t.prototype.extractFromVPMatrix=function(e){var n=(0,S.CR)(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];dt.set(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,dt.set(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,dt.set(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,dt.set(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,dt.set(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,dt.set(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Pr=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Wo=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),Cn="Method not implemented.",Bs="Use document.documentElement instead.",c6="Cannot append a destroyed element.",wn;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(wn||(wn={}));var Zc;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(Zc||(Zc={}));var fi;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(fi||(fi={}));var $b={UPDATED:"updated"},Vb=2e-4,Xb=function(){function t(){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.eventEmitter=new Hp.Z,this.matrix=Kt.create(),this.right=dt.fromValues(1,0,0),this.up=dt.fromValues(0,1,0),this.forward=dt.fromValues(0,0,1),this.position=dt.fromValues(0,0,1),this.focalPoint=dt.fromValues(0,0,0),this.distanceVector=dt.fromValues(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Kt.create(),this.projectionMatrixInverse=Kt.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=wn.EXPLORING,this.trackingMode=Zc.DEFAULT,this.projectionMode=fi.PERSPECTIVE,this.frustum=new s6,this.orthoMatrix=Kt.create()}return t.prototype.isOrtho=function(){return this.projectionMode===fi.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===wn.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===wn.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==wn.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Kt.invert(Kt.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=Kt.fromTranslation(Kt.create(),[e,n,0]);this.jitteredProjectionMatrix=Kt.multiply(Kt.create(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===fi.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===fi.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=dt.fromValues(c-i,l-a,0),f=dt.dot(u,this.right)/dt.length(this.right),d=dt.dot(u,this.up)/dt.length(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=fi.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(rr(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return n6(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===Is.ZERO),Kt.scale(this.projectionMatrix,this.projectionMatrix,dt.fromValues(1,-1,1)),Kt.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=fi.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===Is.NEGATIVE_ONE?Kt.ortho(this.projectionMatrix,d,h,v,p,a,o):Kt.orthoZO(this.projectionMatrix,d,h,v,p,a,o),Kt.scale(this.projectionMatrix,this.projectionMatrix,dt.fromValues(1,-1,1)),Kt.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=ei(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=dt.fromValues(0,1,0);if(this.focalPoint=ei(e,n,r),this.trackingMode===Zc.CINEMATIC){var a=dt.subtract(dt.create(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=dt.length(a),s=Li(Math.asin(n/o)),c=90+Li(Math.atan2(r,e)),l=Kt.create();Kt.rotateY(l,l,rr(c)),Kt.rotateX(l,l,rr(s)),i=dt.transformMat4(dt.create(),[0,1,0],l)}return Kt.invert(this.matrix,Kt.lookAt(Kt.create(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=oe.kEms&&e=Qa.kUnitType&&this.getType()<=Qa.kClampType},t}(),p6=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return Qa.kColorType},e.prototype.to=function(n){return this},e}(ff),sa;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(sa||(sa={}));var df=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return Qa.kColorType},e}(ff),di=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return Qa.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(ff),v6=Yr(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Zb=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function g6(t){if(!t)throw new Error}function Fs(t){return typeof t=="function"}function y6(t){return typeof t=="symbol"}var mft=function(t){return Object.fromEntries(Object.entries(t).filter(function(e){var n=__read(e,2),r=n[1];return r!==void 0}))},m6={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},i0=Yr(function(t){var e=v6(t),n=m6[e];return e=(n==null?void 0:n.alias)||e,e}),b6=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(g6(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},a0=function(t){return h6(d6(t))},kn=function(t){(0,S.ZT)(e,t);function e(n,r){r===void 0&&(r=oe.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=f6(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return Qa.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=a0(this.unit);if(r!==a0(n)||r===oe.kUnknown)return null;var i=qb(this.unit)/qb(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case oe.kUnknown:break;case oe.kInteger:a=Number(this.value).toFixed(0);break;case oe.kNumber:case oe.kPercentage:case oe.kEms:case oe.kRems:case oe.kPixels:case oe.kDegrees:case oe.kRadians:case oe.kGradians:case oe.kMilliseconds:case oe.kSeconds:case oe.kTurns:{var o=-999999,s=999999,c=this.value,l=r0(this.unit);if(cs){var u=r0(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=b6(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(ff),Cr=new kn(0,"px");new kn(1,"px");var Ea=new kn(0,"deg"),o0=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(p6),zn=new di("unset"),x6=new di("initial"),_6=new di("inherit"),s0={"":zn,unset:zn,initial:x6,inherit:_6},c0=function(t){return s0[t]||(s0[t]=new di(t)),s0[t]},l0=new o0(0,0,0,0,!0),Kb=new o0(0,0,0,0),O6=Yr(function(t,e,n,r){return new o0(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ir=function(t,e){return e===void 0&&(e=oe.kNumber),new kn(t,e)},hf=new kn(50,"%"),u0;(function(t){t[t.Standard=0]="Standard"})(u0||(u0={}));var zs;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})(zs||(zs={}));var Qb={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)},ce;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(ce||(ce={}));function w6(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var S6=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(B){throw new Error(e+": "+B)}function r(){var B=i();return e.length>0&&n("Invalid input not EOF"),B}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(B,F,z){return s(F,function(Y){var q=z();return q&&(R(t.comma)||n("Missing comma before color stops")),{type:B,orientation:q,colorStops:b(_)}})}function s(B,F){var z=R(B);if(z){R(t.startCall)||n("Missing (");var Y=F(z);return R(t.endCall)||n("Missing )"),Y}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var B,F=d(),z;return F&&(B=[],B.push(F),z=e,R(t.comma)&&(F=d(),F?B.push(F):e=z)),B}function d(){var B=h()||p();if(B)B.at=g();else{var F=v();if(F){B=F;var z=g();z&&(B.at=z)}else{var Y=y();Y&&(B={type:"default-radial",at:Y})}}return B}function h(){var B=k("shape",/^(circle)/i,0);return B&&(B.style=N()||v()),B}function p(){var B=k("shape",/^(ellipse)/i,0);return B&&(B.style=C()||v()),B}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var B=y();return B||n("Missing positioning value"),B}}function y(){var B=m();if(B.x||B.y)return{type:"position",value:B}}function m(){return{x:C(),y:C()}}function b(B){var F=B(),z=[];if(F)for(z.push(F);R(t.comma);)F=B(),F?z.push(F):n("One extra comma");return z}function _(){var B=O();return B||n("Expected color definition"),B.length=C(),B}function O(){return M()||A()||E()||w()}function w(){return k("literal",t.literalColor,0)}function M(){return k("hex",t.hexColor,1)}function E(){return s(t.rgbColor,function(){return{type:"rgb",value:b(P)}})}function A(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(P)}})}function P(){return R(t.number)[1]}function C(){return k("%",t.percentageValue,1)||j()||N()}function j(){return k("position-keyword",t.positionKeywords,1)}function N(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(B,F,z){var Y=R(F);if(Y)return{type:B,value:Y[z]}}function R(B){var F=/^[\n\r\t\s]+/.exec(e);F&&D(F[0].length);var z=B.exec(e);return z&&D(z[0].length),z}function D(B){e=e.substring(B)}return function(B){return e=B,r()}}();function M6(t,e,n){var r=rr(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function E6(t,e,n,r,i){var a=n.value,o=r.value;n.unit===oe.kPercentage&&(a=n.value/100*t),r.unit===oe.kPercentage&&(o=r.value/100*e);var s=Math.max(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]));return i&&(i instanceof kn?s=i.value:i instanceof di&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]))))),{x:a,y:o,r:s}}var A6=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,T6=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,P6=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Jb=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function C6(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=S6(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;C6(u);var f=u.map(function(b){return{offset:ir(Number(b.length.value),"%"),color:w6(b)}});if(c==="linear-gradient")return new df(sa.LinearGradient,{angle:l?R6(l):Ea,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=L6(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=c0(m):v=ir(m,y)}return new df(sa.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=A6.exec(t);if(i){var a=((e=i[2].match(Jb))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new df(sa.LinearGradient,{angle:ir(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=(0,S.CR)(s,2),l=c[0],u=c[1];return{offset:ir(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=I6(t);if(o)if(er(o))t=o;else return[new df(sa.RadialGradient,o)]}else if(r==="p")return j6(t)}});function I6(t){var e,n=T6.exec(t);if(n){var r=((e=n[4].match(Jb))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:ir(50,"%"),cy:ir(50,"%"),steps:r.map(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];return{offset:ir(Number(o)*100,"%"),color:s}})}}return null}function j6(t){var e=P6.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function bft(t){return!!t.type&&!!t.value}function Kc(t){return t&&!!t.image}function pf(t){return t&&!(0,me.Z)(t.r)&&!(0,me.Z)(t.g)&&!(0,me.Z)(t.b)}var Aa=Yr(function(t){if(Kc(t))return(0,S.pi)({repetition:"repeat"},t);if((0,me.Z)(t)&&(t=""),t==="transparent")return Kb;t==="currentColor"&&(t="black");var e=N6(t);if(e)return e;var n=Mj.ZP(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),O6.apply(void 0,(0,S.ev)([],(0,S.CR)(r),!1))});function D6(t,e){if(!(!pf(t)||!pf(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round((0,cr.Z)(r[i],0,255));return r[3]=(0,cr.Z)(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Qc(t,e){if((0,me.Z)(e))return ir(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return ir(Number(e),"px");if("deg".search(t)>=0)return ir(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return ir(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var B6=Yr(function(t){return Qc(new RegExp("px","g"),t)});Yr(function(t){return Qc(new RegExp("%","g"),t)});var Gs=function(t){return(0,xr.Z)(t)||isFinite(Number(t))?ir(Number(t)||0,"px"):Qc(new RegExp("px|%|em|rem","g"),t)},tx=Yr(function(t){return Qc(new RegExp("deg|rad|grad|turn","g"),t)});function F6(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=a0(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=r0(t.unit)):(kn.isLength(t.unit)||kn.isLength(e.unit))&&(o=Mi(t,i,n),s=Mi(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function Si(t){var e=0;return t.unit===oe.kDegrees?e=t.value:t.unit===oe.kRadians?e=Li(Number(t.value)):t.unit===oe.kTurns&&(e=Qj(Number(t.value))),e}function f0(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):er(t)?n=t.split(" ").map(function(r){return Number(r)}):(0,xr.Z)(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function ex(t){return er(t)?t.split(" ").map(function(e){return Gs(e)}):t.map(function(e){return Gs(e.toString())})}function Mi(t,e,n){if(t.value===0)return 0;if(t.unit===oe.kPixels)return Number(t.value);if(t.unit===oe.kPercentage&&n){var r=n.nodeName===St.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var z6=function(t){return Qc(/deg|rad|grad|turn|px|%/g,t)},G6=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function nx(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,G6.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return z6(a)||Aa(a)})}),e.lastIndex===t.length)return n}return[]}function rx(t){return t.toString()}var Ho=Yr(function(t){return typeof t=="number"?ir(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ir(Number(t)):ir(0)});Yr(function(t){return er(t)?t.split(" ").map(Ho):t.map(Ho)});function d0(t,e){return[t,e,rx]}function h0(t,e){return function(n,r){return[n,r,function(i){return rx((0,cr.Z)(i,t,e))}]}}function ix(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function p0(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=cj(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function W6(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function vf(t,e){return t[0]===e[0]&&t[1]===e[1]}function $6(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function ax(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var ox=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},sx=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=bb(r,360);var c=rr(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},_=ox({x:1,y:0},b),O={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},w=ox(b,O);!a&&w>0?w-=2*Math.PI:a&&w<0&&(w+=2*Math.PI),w%=2*Math.PI;var M=_+w*s,E=e*Math.cos(M),A=n*Math.sin(M),P={x:Math.cos(c)*E-Math.sin(c)*A+m.x,y:Math.sin(c)*E+Math.cos(c)*A+m.y,ellipticalArcStartAngle:_,ellipticalArcEndAngle:_+w,ellipticalArcAngle:M,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return P};function V6(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,_=[(f-g)/n,(d-y)/r],O=[(-1*f-g)/n,(-1*d-y)/r],w=lx([1,0],_),M=lx(_,O);return v0(_,O)<=-1&&(M=Math.PI),v0(_,O)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:m,cy:b,rx:vf(t,[l,u])?0:n,ry:vf(t,[l,u])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:a,sweepFlag:o}}function U6(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=dt.fromValues(l[1]-a,l[2]-s,0);n&&dt.transformMat4(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=dt.fromValues(l[1]-a,l[2]-s,0),h=dt.fromValues(l[3]-a,l[4]-s,0),p=dt.fromValues(l[5]-a,l[6]-s,0);n&&(dt.transformMat4(d,d,n),dt.transformMat4(h,h,n),dt.transformMat4(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=dt.fromValues(l[6]-a,l[7]-s,0);n&&dt.transformMat4(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=dt.fromValues(l[1]-a,l[2]-s,0),h=dt.fromValues(l[3]-a,l[4]-s,0);n&&(dt.transformMat4(d,d,n),dt.transformMat4(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function q6(t,e,n,r){return[["M",t,e],["L",n,r]]}function ux(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function Z6(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function K6(t,e,n,r,i){if(i){var a=(0,S.CR)(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function g0(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case St.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=q6(a,s,l,f);break;case St.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=ux(p,p,g,m);break}case St.ELLIPSE:{var b=t.parsedStyle,_=b.rx,O=_===void 0?0:_,w=b.ry,M=w===void 0?0:w,E=b.cx,g=E===void 0?0:E,A=b.cy,m=A===void 0?0:A;n=ux(O,M,g,m);break}case St.POLYLINE:case St.POLYGON:var P=t.parsedStyle.points;n=Z6(P.points,t.nodeName===St.POLYGON);break;case St.RECT:var C=t.parsedStyle,j=C.width,N=j===void 0?0:j,k=C.height,R=k===void 0?0:k,D=C.x,B=D===void 0?0:D,F=C.y,z=F===void 0?0:F,Y=C.radius,q=Y&&Y.some(function(st){return st!==0});n=K6(N,R,B,z,q&&Y.map(function(st){return(0,cr.Z)(st,0,Math.min(Math.abs(N)/2,Math.abs(R)/2))}));break;case St.PATH:var rt=t.parsedStyle.path.absolutePath;n=(0,S.ev)([],(0,S.CR)(rt),!1);break}if(n.length)return U6(n,t,e)}function xft(t,e,n,r,i,a,o){r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),o===void 0&&(o=0);var s=t.map(function(c,l){var u=c[0],f=t[l+1],d=l===0&&(r!==0||i!==0),h=(l===t.length-1||f&&(f[0]==="M"||f[0]==="Z"))&&a!==0&&o!==0;switch(u){case"M":return d?"M ".concat(c[1]-e+r,",").concat(c[2]-n+i," L ").concat(c[1]-e,",").concat(c[2]-n):"M ".concat(c[1]-e,",").concat(c[2]-n);case"L":return"L ".concat(c[1]-e+(h?a:0),",").concat(c[2]-n+(h?o:0));case"Q":return"Q ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n)+(h?" L ".concat(c[3]-e+a,",").concat(c[4]-n+o):"");case"C":return"C ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n,",").concat(c[5]-e," ").concat(c[6]-n)+(h?" L ".concat(c[5]-e+a,",").concat(c[6]-n+o):"");case"A":return"A ".concat(c[1]," ").concat(c[2]," ").concat(c[3]," ").concat(c[4]," ").concat(c[5]," ").concat(c[6]-e," ").concat(c[7]-n)+(h?" L ".concat(c[6]-e+a,",").concat(c[7]-n+o):"");case"Z":return"Z"}}).join(" ");return~s.indexOf("NaN")?"":s}var fx=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=rf(t)}catch(d){e=rf(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}W6(e);var n=H6(e),r=Y6(e),i=r.polygons,a=r.polylines,o=V6(e),s=$6(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},Q6=Yr(fx);function y0(t){return er(t)?Q6(t):fx(t)}function J6(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=qp(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=qp(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=Ob(r,i));var o=wb(a[0])!==wb(a[1])?mj(a[0]):bj(a[0]);return[o,_j(a[1],o),function(s){return s}]}function dx(t,e){var n;er(t)?n=t.split(" ").map(function(u){var f=(0,S.CR)(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=Wj(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=Cb(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function t8(t,e){return[t.points,e.points,function(n){return n}]}var lr=null;function hi(t){return function(e){var n=0;return t.map(function(r){return r===lr?e[n++]:r})}}function Yo(t){return t}var m0={matrix:["NNNNNN",[lr,lr,0,0,lr,lr,0,0,0,0,1,0,lr,lr,0,1],Yo],matrix3d:["NNNNNNNNNNNNNNNN",Yo],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",hi([lr,lr,new kn(1)]),Yo],scalex:["N",hi([lr,new kn(1),new kn(1)]),hi([lr,new kn(1)])],scaley:["N",hi([new kn(1),lr,new kn(1)]),hi([new kn(1),lr])],scalez:["N",hi([new kn(1),new kn(1),lr])],scale3d:["NNN",Yo],skew:["Aa",null,Yo],skewx:["A",null,hi([lr,Ea])],skewy:["A",null,hi([Ea,lr])],translate:["Tt",hi([lr,lr,Cr]),Yo],translatex:["T",hi([lr,Cr,Cr]),hi([lr,Cr])],translatey:["T",hi([Cr,lr,Cr]),hi([Cr,lr])],translatez:["L",hi([Cr,Cr,lr])],translate3d:["TTL",Yo]};function mf(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=m0[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=f0(n.anchor,2)),n.transform&&(e.parsedStyle.transform=mf(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=px(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===St.CIRCLE||e.nodeName===St.ELLIPSE)&&(!(0,me.Z)(n.cx)||!(0,me.Z)(n.cy))||(e.nodeName===St.RECT||e.nodeName===St.IMAGE||e.nodeName===St.GROUP||e.nodeName===St.HTML||e.nodeName===St.TEXT||e.nodeName===St.MESH)&&(!(0,me.Z)(n.x)||!(0,me.Z)(n.y)||!(0,me.Z)(n.z))||e.nodeName===St.LINE&&(!(0,me.Z)(n.x1)||!(0,me.Z)(n.y1)||!(0,me.Z)(n.z1)||!(0,me.Z)(n.x2)||!(0,me.Z)(n.y2)||!(0,me.Z)(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,me.Z)(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,me.Z)(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=d,v=Object.keys(n);v.forEach(function(g){var y;u||(e.attributes[g]=n[g]),!p&&(!((y=Ja[g])===null||y===void 0)&&y.l)&&(p=!0)}),f||v.forEach(function(g){e.computedStyle[g]=i.parseProperty(g,e.attributes[g],e)}),h!=null&&h.length&&(v=Array.from(new Set(v.concat(h)))),v.forEach(function(g){g in e.computedStyle&&(e.parsedStyle[g]=i.computeProperty(g,e.computedStyle[g],e))}),p&&this.updateGeometry(e),v.forEach(function(g){g in e.parsedStyle&&i.postProcessProperty(g,e,v)}),this.runtime.enableCSSParsing&&e.children.length&&v.forEach(function(g){g in e.parsedStyle&&i.isPropertyInheritable(g)&&e.children.forEach(function(y){y.internalSetAttribute(g,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r){var i=Ja[e],a=n;if((n===""||(0,me.Z)(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")a=c0(n);else if(i){var o=i.k,s=i.syntax,c=s&&this.getPropertySyntax(s);o&&o.indexOf(n)>-1?a=c0(n):c&&c.parser&&(a=c.parser(n,r))}return a},t.prototype.computeProperty=function(e,n,r){var i=Ja[e],a=r.id==="g-root",o=n;if(i){var s=i.syntax,c=i.inh,l=i.d;if(n instanceof di){var u=n.value;if(u==="unset"&&(c&&!a?u="inherit":u="initial"),u==="initial")(0,me.Z)(l)||(n=this.parseProperty(e,Fs(l)?l(r.nodeName):l,r));else if(u==="inherit"){var f=this.tryToResolveProperty(r,e,{inherited:!0});if((0,me.Z)(f)){this.addUnresolveProperty(r,e);return}else return f}}var d=s&&this.getPropertySyntax(s);if(d&&d.calculator){var h=r.parsedStyle[e];o=d.calculator(e,h,n,r,this.runtime)}else n instanceof di?o=n.value:o=n}return o},t.prototype.postProcessProperty=function(e,n,r){var i=Ja[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=Ws.get(e);r||(Ws.set(e,[]),r=Ws.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&u8(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=Ws.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),Ws.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new Er),i.renderBounds||(i.renderBounds=new Er);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,_=m.lineWidth,O=m.increasedLineWidthForHitTesting,w=m.shadowType,M=m.shadowColor,E=m.filter,A=E===void 0?[]:E,P=m.transformOrigin,C=a.anchor;n===St.TEXT?delete a.anchor:n===St.MESH&&(a.anchor[2]=.5);var j=[(1-(C&&C[0]||0)*2)*s/2+d,(1-(C&&C[1]||0)*2)*c/2+p,(1-(C&&C[2]||0)*2)*y[2]+g];i.contentBounds.update(j,y);var N=n===St.POLYLINE||n===St.POLYGON||n===St.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var R=((_||0)+(O||0))*N;y[0]+=R,y[1]+=R}if(i.renderBounds.update(j,y),M&&w&&w!=="inner"){var D=i.renderBounds,B=D.min,F=D.max,z=a,Y=z.shadowBlur,q=z.shadowOffsetX,rt=z.shadowOffsetY,st=Y||0,At=q||0,Yt=rt||0,qt=B[0]-st+At,Rt=F[0]+st+At,Lt=B[1]-st+Yt,le=F[1]+st+Yt;B[0]=Math.min(B[0],qt),F[0]=Math.max(F[0],Rt),B[1]=Math.min(B[1],Lt),F[1]=Math.max(F[1],le),i.renderBounds.setMinMax(B,F)}A.forEach(function(Je){var hn=Je.name,xn=Je.params;if(hn==="blur"){var Un=xn[0].value;i.renderBounds.update(i.renderBounds.center,uf(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Un,Un,0]))}else if(hn==="drop-shadow"){var mr=xn[0].value,xi=xn[1].value,Va=xn[2].value,ws=i.renderBounds,si=ws.min,Ui=ws.max,An=si[0]-Va+mr,_n=Ui[0]+Va+mr,ar=si[1]-Va+xi,Tn=Ui[1]+Va+xi;si[0]=Math.min(si[0],An),Ui[0]=Math.max(Ui[0],_n),si[1]=Math.min(si[1],ar),Ui[1]=Math.max(Ui[1],Tn),i.renderBounds.setMinMax(si,Ui)}}),C=a.anchor;var ue=s<0,we=c<0,Ue=(ue?-1:1)*(P?Mi(P[0],0,e):0),ze=(we?-1:1)*(P?Mi(P[1],1,e):0);Ue=Ue-(ue?-1:1)*(C&&C[0]||0)*i.contentBounds.halfExtents[0]*2,ze=ze-(we?-1:1)*(C&&C[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(Ue,ze),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Ja[e];return n?n.inh:!1},t}(),d8=function(){function t(){this.parser=tx,this.parserWithCSSDisabled=null,this.mixer=d0}return t.prototype.calculator=function(e,n,r,i){return Si(r)},t}(),h8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof di&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),p8=function(){function t(){this.parser=Aa,this.parserWithCSSDisabled=Aa,this.mixer=D6}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="none"?l0:Kb:r},t}(),v8=function(){function t(){this.parser=nx}return t.prototype.calculator=function(e,n,r){return r instanceof di?[]:r},t}();function yx(t){var e=t.parsedStyle.fontSize;return(0,me.Z)(e)?null:e}var w0=function(){function t(){this.parser=Gs,this.parserWithCSSDisabled=null,this.mixer=d0}return t.prototype.calculator=function(e,n,r,i,a){var o;if((0,xr.Z)(r))return r;if(kn.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===oe.kPercentage)return 0;if(r.unit===oe.kEms){if(i.parentNode){var c=yx(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===oe.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=yx(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),g8=function(){function t(){this.mixer=ix}return t.prototype.parser=function(e){var n=ex((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),y8=function(){function t(){this.mixer=ix}return t.prototype.parser=function(e){var n=ex((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),Jc=Kt.create();function S0(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[Cr,Cr];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[Cr];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[Cr];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[Cr];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[Cr,Cr,Cr];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Ea];e.rotateLocal(0,0,Si(l[0]))}else if(a==="rotatex"){var l=o||[Ea];e.rotateLocal(Si(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Ea];e.rotateLocal(0,Si(l[0]),0)}else if(a==="rotatez"){var l=o||[Ea];e.rotateLocal(0,0,Si(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(rr(u[0]),rr(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(rr(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],rr(u[0]))}else if(a==="matrix"){var f=(0,S.CR)(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Kt.set(Jc,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Kt.set.apply(Kt,(0,S.ev)([Jc],(0,S.CR)(o.map(function(m){return m.value})),!1)),Jc[12]+=n,Jc[13]+=r,e.setLocalTransform(Jc))}),e.getLocalTransform()}var m8=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case St.CIRCLE:case St.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;(0,me.Z)(c)||(i=c),(0,me.Z)(l)||(a=l),(0,me.Z)(u)||(o=u);break;case St.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case St.RECT:case St.IMAGE:case St.GROUP:case St.HTML:case St.TEXT:case St.MESH:(0,me.Z)(n.parsedStyle.x)||(i=n.parsedStyle.x),(0,me.Z)(n.parsedStyle.y)||(a=n.parsedStyle.y),(0,me.Z)(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==St.PATH&&n.nodeName!==St.POLYLINE&&n.nodeName!==St.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!(0,me.Z)(i)||!(0,me.Z)(a)||!(0,me.Z)(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)S0(b,n);else{var _=(0,S.CR)(n.getLocalPosition(),3),O=_[0],w=_[1],M=_[2];n.setLocalPosition((0,me.Z)(i)?O:i,(0,me.Z)(a)?w:a,(0,me.Z)(o)?M:o)}}},e}(w0),b8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof di&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),x8=function(){function t(){this.mixer=d0,this.parser=Ho,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),_8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=h0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===St.LINE||a===St.PATH||a===St.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),O8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=h0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),w8=function(){function t(){this.parser=y0,this.parserWithCSSDisabled=y0,this.mixer=J6}return t.prototype.calculator=function(e,n,r){return r instanceof di&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===St.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),S8=function(){function t(){this.parser=dx,this.mixer=t8}return t.prototype.postProcessor=function(e,n){if((e.nodeName===St.POLYGON||e.nodeName===St.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),M8=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mixer=h0(0,1/0),n}return e}(w0),E8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),A8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),M0={},T8=0;function P8(t,e){if(t){var n=typeof t=="string"?t:t.id||T8++;M0[n]&&M0[n].destroy(),M0[n]=e}}var tl=typeof window!="undefined"&&typeof window.document!="undefined";function C8(t){return!!t.getAttribute}function k8(t,e){for(var n=0,r=t.length;n>>1;mx(t[i],e)<0?n=i+1:r=i}return n}function mx(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function bx(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var xx="px";function R8(t,e,n){tl&&t.style&&(t.style.width=e+xx,t.style.height=n+xx)}function _x(t,e){if(tl)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function L8(t){var e=_x(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function N8(t){var e=_x(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var I8=1,j8={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},E0=typeof performance=="object"&&performance.now?performance:Date;function $o(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var D8=1,B8=function(){return D8++},ca=typeof self=="object"&&self.self==self?self:typeof gt.g=="object"&>.g.global==gt.g?gt.g:{},F8=Date.now(),z8=function(){return ca.performance&&typeof ca.performance.now=="function"?ca.performance.now():Date.now()-F8},el={},Ox=Date.now(),G8=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-Ox,r=n>16?0:16-n,i=B8();return el[i]=t,Object.keys(el).length>1||setTimeout(function(){Ox=e;var a=el;el={},Object.keys(a).forEach(function(o){return a[o](z8())})},r),i},W8=function(t){delete el[t]},H8=["","webkit","moz","ms","o"],wx=function(t){return typeof t!="string"?G8:t===""?ca.requestAnimationFrame:ca[t+"RequestAnimationFrame"]},Y8=function(t){return typeof t!="string"?W8:t===""?ca.cancelAnimationFrame:ca[t+"CancelAnimationFrame"]||ca[t+"CancelRequestAnimationFrame"]},$8=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},Sx=$8(H8,function(t){return!!wx(t)}),Mx=wx(Sx),Ex=Y8(Sx);ca.requestAnimationFrame=Mx,ca.cancelAnimationFrame=Ex;var V8=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!q8.test(l)&&U8.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var K8=function(){function t(){this.parser=mf,this.parserWithCSSDisabled=mf,this.mixer=l8}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;S0(n,e)},t}(),Q8=function(){function t(){this.parser=px}return t}(),J8=function(){function t(){this.parser=Ho}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=zs.Z_INDEX_CHANGED)}},t}(),tD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),eD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),nD=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),rD=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),iD=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Dr(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),aD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!er(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),oD=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!(0,me.Z)(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var _=0;return c==="middle"?_=y[1]:c==="top"||c==="hanging"?_=y[1]*2:c==="alphabetic"?_=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(_=0),l&&(b+=l),u&&(_+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:_}},t}();function sD(t){return!!t.type}var bf=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pr,this.page=new Pr,this.canvas=new Pr,this.viewport=new Pr,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(Cn)},t}(),Ax=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.client=new Pr,n.movement=new Pr,n.offset=new Pr,n.global=new Pr,n.screen=new Pr,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(Cn)},e}(bf),T0=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(Ax),P0=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(Ax),Nn=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}(bf),Tx=":",Px=function(){function t(){this.emitter=new Hp.Z}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Sb(r)&&r||zo(r)&&r.capture,a=zo(r)&&r.once,o=Fs(n)?void 0:n,s=!1,c="";if(e.indexOf(Tx)>-1){var l=(0,S.CR)(e.split(Tx),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=Fs(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(Cn)},e.prototype.lookupNamespaceURI=function(n){throw new Error(Cn)},e.prototype.lookupPrefix=function(n){throw new Error(Cn)},e.prototype.normalize=function(){throw new Error(Cn)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Px),cD=2048,lD=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new Hp.Z,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Kt.create(),this.tmpVec3=dt.create(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=E0.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}kr.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),kr.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&kr.isNode(c)&&c.parentNode;p&&p!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),kr.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),kr.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),kr.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),kr.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Pr(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Pr(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=Kt.multiply(this.tmpMatrix,u,l),d=dt.set(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return dt.transformMat4(d,d,f),new Pr(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=Kt.multiply(this.tmpMatrix,i,a),s=dt.set(this.tmpVec3,e.x,e.y,0);dt.transformMat4(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Pr((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=(0,S.XA)(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.globalRuntime.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(T0);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r!=null?r:o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i,typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(P0);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(P0);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(T0);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n!=null?n:r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=E0.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n!=null?n:e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||kr.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=C8(n)&&n.getAttribute("cursor");if(r)return r;n=kr.isNode(n)&&n.parentNode}},t}(),uD=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||Pt.offscreenCanvas)this.canvas=e||Pt.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),to;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(to||(to={}));var fD=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new ni,initAsync:new V8,dirtycheck:new A0,cull:new A0,beginFrame:new ni,beforeRender:new ni,render:new ni,afterRender:new ni,endFrame:new ni,destroy:new ni,pick:new X8,pickSync:new A0,pointerDown:new ni,pointerUp:new ni,pointerMove:new ni,pointerOut:new ni,pointerOver:new ni,pointerWheel:new ni,pointerCancel:new ni,click:new ni}}return t.prototype.init=function(e){var n=this,r=(0,S.pi)((0,S.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(to.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(to.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==zs.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=k8(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(mx)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(to.DISPLAY_OBJECT_CHANGED)},t}(),dD=/\[\s*(.*)=(.*)\s*\]/,hD=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(dD),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return(0,me.Z)(r)?"":r.toString?r.toString():""},t}(),eo=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(bf),Ie;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(Ie||(Ie={}));function Cx(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var pD=new eo(Ie.REPARENT,null,"","","",0,"",""),vD=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Nn(Ie.BOUNDS_CHANGED),this.rotate=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=br();Qu(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);Ju(r,f),$p(r,r),Ua(l,r,l),Ua(c.localRotation,l,u),tf(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;Qu(r,a[0],a[1],a[2]),ub(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{Qu(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);Ju(r,$p(br(),l)),ub(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=dt.fromValues(i,a,o));var s=r.transformable;dt.equals(i,dt.create())||(dt.transformQuat(i,i,s.localRotation),dt.add(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Kt.create(),i=dt.create();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!dt.equals(n.getPosition(a),i)){if(dt.copy(s.position,i),a.parentNode===null||!a.parentNode.transformable)dt.copy(s.localPosition,i);else{var c=a.parentNode.transformable;Kt.copy(r,c.worldTransform),Kt.invert(r,r),dt.transformMat4(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=dt.create();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!dt.equals(o.localPosition,r)&&(dt.copy(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=dt.create(),i=dt.create(),a=dt.create();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=dt.set(i,s,c,l)),!dt.equals(s,r)&&(dt.add(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=br();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=Vp(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);Ju(r,u),$p(r,r),Ua(l.localRotation,r,a),tf(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Kt.create(),i=dt.create(),a=Vp(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(Kt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,dt.fromValues(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Kt.identity(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),Kt.multiply(o.localTransform,o.localTransform,c)}var l=Kt.fromRotationTranslationScaleOrigin(r,a,i,o.localScale,o.origin);Kt.multiply(o.localTransform,o.localTransform,l)}else Kt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,(0,me.Z)(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=zs.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(pD)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=zs.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=dt.fromValues(n,r,i));var a=e.transformable;Qu(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;dt.multiply(r.localScale,r.localScale,dt.fromValues(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=dt.fromValues(n[0],n[1],n[2]||r.localScale[2]);dt.equals(i,r.localScale)||(dt.copy(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=Vp(n,r,i,a));var o=e.transformable;Ju(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=$c.al(n,r));var i=e.transformable;$c.JG(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)Cx(r),r=r.parentNode;n&&e.forEach(function(i){Cx(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new eo(Ie.ATTR_MODIFIED,a,n,n,i,eo.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return Kt.getTranslation(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return Kt.getRotation(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Kt.getScaling(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=Kt.getTranslation(dt.create(),n),i=Kt.getRotation(br(),n),a=Kt.getScaling(dt.create(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(Er.isEmpty(i))return null;var a=r||new Er;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new Er},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new Er,o.update(f.center,f.halfExtents)))}),n){var c=bx(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new Er),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Kt.create();e.parentNode.transformable&&(n=Kt.invert(Kt.create(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!Er.isEmpty(r)){var i=new Er;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);Er.isEmpty(a)||(i=new Er,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=(0,S.CR)(i.getMin(),2),c=s[0],l=s[1],u=(0,S.CR)(i.getMax(),2),f=u[0],d=u[1];return new Wo(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Wo((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+A>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var P=p[v].length,C=0,j=P,N=0;Nd){j=N;break}C+=k}p[v]=(p[v]||"").slice(0,j)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(w))continue;this.canBreakInLastChar(w)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(w,E)&&(p=this.trimByKinsokuShorui(p),g+=m(M||""))}g+=A,p[v]=(p[v]||"")+w}return p.join(` +`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:Vo.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:Vo.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=(0,S.ev)([],(0,S.CR)(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&kx.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!kx.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),Pt={},AD=function(){var t,e=new aD,n=new iD;return t={},t[St.CIRCLE]=new tD,t[St.ELLIPSE]=new eD,t[St.RECT]=e,t[St.IMAGE]=e,t[St.GROUP]=e,t[St.LINE]=new nD,t[St.TEXT]=new oD(Pt),t[St.POLYLINE]=n,t[St.POLYGON]=n,t[St.PATH]=new rD,t[St.HTML]=null,t[St.MESH]=null,t}(),TD=function(){var t,e=new p8,n=new w0;return t={},t[ce.PERCENTAGE]=null,t[ce.NUMBER]=new x8,t[ce.ANGLE]=new d8,t[ce.DEFINED_PATH]=new h8,t[ce.PAINT]=e,t[ce.COLOR]=e,t[ce.FILTER]=new v8,t[ce.LENGTH]=n,t[ce.LENGTH_PERCENTAGE]=n,t[ce.LENGTH_PERCENTAGE_12]=new g8,t[ce.LENGTH_PERCENTAGE_14]=new y8,t[ce.COORDINATE]=new m8,t[ce.OFFSET_DISTANCE]=new _8,t[ce.OPACITY_VALUE]=new O8,t[ce.PATH]=new w8,t[ce.LIST_OF_POINTS]=new S8,t[ce.SHADOW_BLUR]=new M8,t[ce.TEXT]=new E8,t[ce.TEXT_TRANSFORM]=new A8,t[ce.TRANSFORM]=new K8,t[ce.TRANSFORM_ORIGIN]=new Q8,t[ce.Z_INDEX]=new J8,t[ce.MARKER]=new b8,t}(),PD=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof gt.g!="undefined"?gt.g:{}};Pt.CameraContribution=Xb,Pt.AnimationTimeline=null,Pt.EasingFunction=null,Pt.offscreenCanvasCreator=new uD,Pt.nativeHTMLMap=new WeakMap,Pt.sceneGraphSelector=new hD,Pt.sceneGraphService=new vD(Pt),Pt.textService=new ED(Pt),Pt.geometryUpdaterFactory=AD,Pt.CSSPropertySyntaxFactory=TD,Pt.styleValueRegistry=new f8(Pt),Pt.layoutRegistry=null,Pt.globalThis=PD(),Pt.enableCSSParsing=!0,Pt.enableDataset=!1,Pt.enableStyleSyntax=!0;var Rx=0;function _ft(){Rx=0}var Lx=new eo(Ie.INSERTED,null,"","","",0,"",""),Nx=new eo(Ie.REMOVED,null,"","","",0,"",""),CD=new Nn(Ie.DESTROY),kD=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.entity=Rx++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:u0.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=Pt.enableCSSParsing?{anchor:zn,opacity:zn,fillOpacity:zn,strokeOpacity:zn,fill:zn,stroke:zn,transform:zn,transformOrigin:zn,visibility:zn,pointerEvents:zn,lineWidth:zn,lineCap:zn,lineJoin:zn,increasedLineWidthForHitTesting:zn,fontSize:zn,fontFamily:zn,fontStyle:zn,fontWeight:zn,fontVariant:zn,textAlign:zn,textBaseline:zn,textTransform:zn,zIndex:zn,filter:zn,shadowType:zn}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(Cn)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(c6);return Pt.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),Lx.relatedNode=this,n.dispatchEvent(Lx),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return Nx.relatedNode=this,n.dispatchEvent(Nx),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),Pt.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return Pt.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return Pt.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return Pt.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return Pt.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return Pt.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return Pt.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return Pt.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(Pt.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}($r),il=function(t){(0,S.ZT)(e,t);function e(n){var r=this;n===void 0&&(n={});var i=n.style,a=(0,S._T)(n,["style"]);r=t.call(this,(0,S.pi)({type:St.POLYGON,style:Pt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!0},i):(0,S.pi)({},i),initialParsedStyle:Pt.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&vn(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&vn(l)&&r.placeMarkerMid(l),c&&vn(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&vn(a)&&(this.markerStartAngle=0,a.remove()),o&&vn(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&vn(a)&&(this.markerEndAngle=0,a.remove()),o&&vn(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!vn(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var _=f.length;this.parsedStyle.isClosed?(p=f[_-1][0]-f[0][0],v=f[_-1][1]-f[0][1]):(g=f[_-1][0]-l,y=f[_-1][1]-u,p=f[_-2][0]-f[_-1][0],v=f[_-2][1]-f[_-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&vn(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}($r),L0=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.POLYLINE,style:Pt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!1},r):(0,S.pi)({},r),initialParsedStyle:Pt.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=aa(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=dt.transformMat4(dt.create(),dt.fromValues(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Pr(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(il),Xo=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.RECT,style:Pt.enableCSSParsing?(0,S.pi)({x:"",y:"",width:"",height:"",radius:""},r):(0,S.pi)({},r)},i))||this}return e}($r),Zi=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.TEXT,style:Pt.enableCSSParsing?(0,S.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):(0,S.pi)({fill:"black"},r),initialParsedStyle:Pt.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}($r),jD=function(){function t(){this.registry={},this.define(St.CIRCLE,nl),this.define(St.ELLIPSE,k0),this.define(St.RECT,Xo),this.define(St.IMAGE,R0),this.define(St.LINE,rl),this.define(St.GROUP,Br),this.define(St.PATH,ri),this.define(St.POLYGON,il),this.define(St.POLYLINE,L0),this.define(St.TEXT,Zi),this.define(St.HTML,xf)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),DD=function(t){(0,S.ZT)(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new Pt.AnimationTimeline(n)}catch(i){}var r={};return O0.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=Fs(s)?s(St.GROUP):s)}),n.documentElement=new Br({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?Zi:Br);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(Cn)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(n){}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(Bs)},e.prototype.insertBefore=function(n,r){throw new Error(Bs)},e.prototype.removeChild=function(n,r){throw new Error(Bs)},e.prototype.replaceChild=function(n,r,i){throw new Error(Bs)},e.prototype.append=function(){throw new Error(Bs)},e.prototype.prepend=function(){throw new Error(Bs)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(kr),BD=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new Nn(Ie.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),FD=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new T0(null),this.rootWheelEvent=new P0(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=(0,S.XA)(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch(v){}var u=n.normalizeToPointerEvent(a,i);try{for(var f=(0,S.XA)(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!(0,me.Z)(i)&&!(0,me.Z)(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Pr(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=j8[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=E0.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(C):1,A=s||L8(a)||a.width/C,P=c||N8(a)||a.height/C),o&&(Pt.offscreenCanvas=o),r.devicePixelRatio=C,r.requestAnimationFrame=p!=null?p:Mx.bind(Pt.globalThis),r.cancelAnimationFrame=v!=null?v:Ex.bind(Pt.globalThis),r.supportsTouchEvents=m!=null?m:"ontouchstart"in Pt.globalThis,r.supportsPointerEvents=y!=null?y:!!Pt.globalThis.PointerEvent,r.isTouchEvent=M!=null?M:function(j){return r.supportsTouchEvents&&j instanceof Pt.globalThis.TouchEvent},r.isMouseEvent=E!=null?E:function(j){return!Pt.globalThis.MouseEvent||j instanceof Pt.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(j instanceof Pt.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:A,height:P,renderer:u,offscreenCanvas:o,devicePixelRatio:C,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:O,alwaysTriggerPointerEventOnCanvas:w}),r.initDefaultCamera(A,P,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new Pt.CameraContribution;o.clipSpaceNearZ=i,o.setType(wn.EXPLORING,Zc.DEFAULT).setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,HD,YD),o.canvas=this,o.eventEmitter.on($b.UPDATED,function(){a.context.renderingContext.renderReasons.add(to.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new Nn(pi.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new Nn(pi.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0),o===fi.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Nn(pi.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent($D);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(VD)}),this.dispatchEvent(XD)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Uj,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new FD,new WD,new BD([new GD])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService((0,S.pi)((0,S.pi)({},Pt),this.context)),this.context.renderingService=new fD(Pt,this.context),this.context.eventService=new lD(Pt,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new Nn(pi.READY))}):a.dispatchEvent(new Nn(pi.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Nn(pi.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(Pt)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),(0,S.ev)([],(0,S.CR)(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(Pt)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(I0):(I0.target=n,this.dispatchEvent(I0,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(N0):(N0.target=n,this.dispatchEvent(N0,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Px),UD=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Ds(r),this.relAzimuth=Ds(n),this.relRoll=Ds(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===wn.EXPLORING){var a=Xa(br(),[1,0,0],rr((this.rotateWorld?1:-1)*this.relElevation)),o=Xa(br(),[0,1,0],rr((this.rotateWorld?1:-1)*this.relAzimuth)),s=Xa(br(),[0,0,1],rr(this.relRoll)),c=Ua(br(),o,a);c=Ua(br(),c,s);var l=Kt.fromQuat(Kt.create(),c);Kt.translate(this.matrix,this.matrix,[0,0,-this.distance]),Kt.multiply(this.matrix,this.matrix,l),Kt.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===wn.ORBITING||this.type===wn.EXPLORING?this._getPosition():this.type===wn.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=ei(n,r,0),a=dt.clone(this.position);return dt.add(a,a,dt.scale(dt.create(),this.right,i[0])),dt.add(a,a,dt.scale(dt.create(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=dt.clone(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===wn.ORBITING||this.type===wn.EXPLORING?this._getDistance():this.type===wn.TRACKING&&dt.add(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new Pt.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d!=null?d:this.roll),p.setZoom(h!=null?h:this.zoom);var v={name:n,matrix:Kt.clone(p.getWorldTransform()),right:dt.clone(p.right),up:dt.clone(p.up),forward:dt.clone(p.forward),position:dt.clone(p.getPosition()),focalPoint:dt.clone(p.getFocalPoint()),distanceVector:dt.clone(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=er(n)?this.landmarks.find(function(P){return P.name===n}):n;if(a){var o=(0,xr.Z)(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,_=a.zoom,O=a.roll,w=d||Pt.EasingFunction(c),M,E=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(O),i.setZoom(_),i.computeMatrix(),i.triggerUpdate(),p&&p()},A=function(P){M===void 0&&(M=P);var C=P-M;if(C>u){E();return}var j=w(C/u),N=dt.create(),k=dt.create(),R=1,D=0;dt.lerp(N,i.focalPoint,b,j),dt.lerp(k,i.position,m,j),D=i.roll*(1-j)+O*j,R=i.zoom*(1-j)+_*j,i.setFocalPoint(N),i.setPosition(k),i.setRoll(D),i.setZoom(R);var B=dt.dist(N,b)+dt.dist(k,m);if(B<=y&&_==null&&O==null){E();return}i.computeMatrix(),i.triggerUpdate(),C0){var i=n[r-1],a=t9(i,e);if(a){n[r-1]=a;return}}else n9(this.observer);n[r]=e},t.prototype.addListeners=function(){this.addListeners_(this.target)},t.prototype.addListeners_=function(e){var n=this.options;n.attributes&&e.addEventListener(Ie.ATTR_MODIFIED,this,!0),n.childList&&e.addEventListener(Ie.INSERTED,this,!0),(n.childList||n.subtree)&&e.addEventListener(Ie.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(e){var n=this.options;n.attributes&&e.removeEventListener(Ie.ATTR_MODIFIED,this,!0),n.childList&&e.removeEventListener(Ie.INSERTED,this,!0),(n.childList||n.subtree)&&e.removeEventListener(Ie.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(n){this.removeListeners_(n);for(var r=Hs.get(n),i=0;i0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new F0(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(Cn)},t.prototype.addEventListener=function(e,n,r){throw new Error(Cn)},t.prototype.removeEventListener=function(e,n,r){throw new Error(Cn)},t.prototype.dispatchEvent=function(e){throw new Error(Cn)},t.prototype.commitStyles=function(){throw new Error(Cn)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new F0(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new F0(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),a9=4,o9=.001,s9=1e-7,c9=10,al=11,Of=1/(al-1),l9=typeof Float32Array=="function",Hx=function(t,e){return 1-3*e+3*t},Yx=function(t,e){return 3*e-6*t},$x=function(t){return 3*t},wf=function(t,e,n){return((Hx(e,n)*t+Yx(e,n))*t+$x(e))*t},Vx=function(t,e,n){return 3*Hx(e,n)*t*t+2*Yx(e,n)*t+$x(e)},u9=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=wf(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>s9&&++s=o9?f9(s,d,t,n):h===0?d:u9(s,c,c+Of,t,n)};return function(s){return s===0||s===1?s:wf(o(s),e,r)}},d9=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},Sf=function(t){return Math.pow(t,2)},Mf=function(t){return Math.pow(t,3)},Ef=function(t){return Math.pow(t,4)},Af=function(t){return Math.pow(t,5)},Tf=function(t){return Math.pow(t,6)},Pf=function(t){return 1-Math.cos(t*Math.PI/2)},Cf=function(t){return 1-Math.sqrt(1-t*t)},kf=function(t){return t*t*(3*t-2)},Rf=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Lf=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=(0,cr.Z)(Number(i),1,10),c=(0,cr.Z)(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},ol=function(t,e,n){e===void 0&&(e=[]);var r=(0,S.CR)(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=(0,cr.Z)(a,.1,1e3),s=(0,cr.Z)(s,.1,1e3),l=(0,cr.Z)(l,.1,1e3),f=(0,cr.Z)(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},G0=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o((0,cr.Z)(t,0,1)*i)/i},Xx=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return z0(r,i,a,o)(t)},Nf=z0(.42,0,1,1),Ni=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},Ii=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},ji=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},Ux={steps:G0,"step-start":function(t){return G0(t,[1,"start"])},"step-end":function(t){return G0(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":Xx,ease:function(t){return Xx(t,[.25,.1,.25,1])},in:Nf,out:Ni(Nf),"in-out":Ii(Nf),"out-in":ji(Nf),"in-quad":Sf,"out-quad":Ni(Sf),"in-out-quad":Ii(Sf),"out-in-quad":ji(Sf),"in-cubic":Mf,"out-cubic":Ni(Mf),"in-out-cubic":Ii(Mf),"out-in-cubic":ji(Mf),"in-quart":Ef,"out-quart":Ni(Ef),"in-out-quart":Ii(Ef),"out-in-quart":ji(Ef),"in-quint":Af,"out-quint":Ni(Af),"in-out-quint":Ii(Af),"out-in-quint":ji(Af),"in-expo":Tf,"out-expo":Ni(Tf),"in-out-expo":Ii(Tf),"out-in-expo":ji(Tf),"in-sine":Pf,"out-sine":Ni(Pf),"in-out-sine":Ii(Pf),"out-in-sine":ji(Pf),"in-circ":Cf,"out-circ":Ni(Cf),"in-out-circ":Ii(Cf),"out-in-circ":ji(Cf),"in-back":kf,"out-back":Ni(kf),"in-out-back":Ii(kf),"out-in-back":ji(kf),"in-bounce":Rf,"out-bounce":Ni(Rf),"in-out-bounce":Ii(Rf),"out-in-bounce":ji(Rf),"in-elastic":Lf,"out-elastic":Ni(Lf),"in-out-elastic":Ii(Lf),"out-in-elastic":ji(Lf),spring:ol,"spring-in":ol,"spring-out":Ni(ol),"spring-in-out":Ii(ol),"spring-out-in":ji(ol)},h9=function(t){return d9(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},p9=function(t){return Ux[h9(t)]||Ux.linear},v9=function(t){return t},g9=1,y9=.5,qx=0;function Zx(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var If="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",m9=new RegExp("cubic-bezier\\("+If+","+If+","+If+","+If+"\\)"),b9=/steps\(\s*(\d+)\s*\)/,x9=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function W0(t){var e=m9.exec(t);if(e)return z0.apply(void 0,(0,S.ev)([],(0,S.CR)(e.slice(1).map(Number)),!1));var n=b9.exec(t);if(n)return Zx(Number(n[1]),qx);var r=x9.exec(t);return r?Zx(Number(r[1]),{start:g9,middle:y9,end:qx}[r[2]]):p9(t)}function _9(t){return Math.abs(O9(t)/(t.playbackRate||1))}function O9(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Kx=0,H0=1,jf=2,Qx=3;function w9(t,e,n){if(e===null)return Kx;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?jf:Qx}function S9(t,e,n,r,i){switch(r){case H0:return e==="backwards"||e==="both"?0:null;case Qx:return n-i;case jf:return e==="forwards"||e==="both"?t:null;case Kx:return null}}function M9(t,e,n,r,i){var a=i;return t===0?e!==H0&&(a+=n):a+=r/t,a}function E9(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===jf&&r!==0&&(i!==0||a===0)&&(o=1),o}function A9(t,e,n,r){return t===jf&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function T9(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function P9(t,e,n){var r=w9(t,e,n),i=S9(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=M9(a,r,n.iterations,i,n.iterationStart),s=E9(o,n.iterationStart,r,n.iterations,i,a),c=A9(r,n.iterations,s,o),l=T9(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function C9(t,e,n){var r=k9(t,e),i=R9(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;ha?i:a,s=i>a?1:i/a,c=i>a?a/i:1;t.save(),t.scale(s,c),t.arc(o,o,o,0,Math.PI*2)}}function $9(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.defX,s=o===void 0?0:o,c=e.defY,l=c===void 0?0:c,u=e.markerStart,f=e.markerEnd,d=e.markerStartOffset,h=e.markerEndOffset,p=0,v=0,g=0,y=0,m=0,b,_;u&&vn(u)&&d&&(b=i-n,_=a-r,m=Math.atan2(_,b),p=Math.cos(m)*(d||0),v=Math.sin(m)*(d||0)),f&&vn(f)&&h&&(b=n-i,_=r-a,m=Math.atan2(_,b),g=Math.cos(m)*(h||0),y=Math.sin(m)*(h||0)),t.moveTo(n-s+p,r-l+v),t.lineTo(i-s+g,a-l+y)}function V9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.path,f=u.absolutePath,d=u.segments,h=0,p=0,v=0,g=0,y=0,m,b;if(o&&vn(o)&&c){var _=(0,S.CR)(o.parentNode.getStartTangent(),2),O=_[0],w=_[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),h=Math.cos(y)*(c||0),p=Math.sin(y)*(c||0)}if(s&&vn(s)&&l){var M=(0,S.CR)(s.parentNode.getEndTangent(),2),O=M[0],w=M[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),v=Math.cos(y)*(l||0),g=Math.sin(y)*(l||0)}for(var E=0;EF?B:F,At=B>F?1:B/F,Yt=B>F?F/B:1;t.translate(R-r,D-a),t.rotate(q),t.scale(At,Yt),t.arc(0,0,st,z,Y,!!(1-rt)),t.scale(1/At,1/Yt),t.rotate(-q),t.translate(-(R-r),-(D-a))}N&&t.lineTo(A[6]-r+v,A[7]-a+g);break}case"Z":t.closePath();break}}}function X9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.points.points,f=u.length,d=u[0][0]-r,h=u[0][1]-a,p=u[f-1][0]-r,v=u[f-1][1]-a,g=0,y=0,m=0,b=0,_=0,O,w;o&&vn(o)&&c&&(O=u[1][0]-u[0][0],w=u[1][1]-u[0][1],_=Math.atan2(w,O),g=Math.cos(_)*(c||0),y=Math.sin(_)*(c||0)),s&&vn(s)&&l&&(O=u[f-1][0]-u[0][0],w=u[f-1][1]-u[0][1],_=Math.atan2(w,O),m=Math.cos(_)*(l||0),b=Math.sin(_)*(l||0)),t.moveTo(d+(g||m),h+(y||b));for(var M=1;M0?1:-1,l=i>0?1:-1,u=c+l===0,f=(0,S.CR)(n.map(function(g){return(0,cr.Z)(g,0,Math.min(Math.abs(a)/2,Math.abs(o)/2))}),4),d=f[0],h=f[1],p=f[2],v=f[3];t.moveTo(c*d,0),t.lineTo(a-c*h,0),h!==0&&t.arc(a-c*h,l*h,h,-l*Math.PI/2,c>0?0:Math.PI,u),t.lineTo(a,o-l*p),p!==0&&t.arc(a-c*p,o-l*p,p,c>0?0:Math.PI,l>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(c*v,o),v!==0&&t.arc(c*v,o-l*v,v,l>0?Math.PI/2:-Math.PI/2,c>0?Math.PI:0,u),t.lineTo(0,l*d),d!==0&&t.arc(c*d,l*d,d,c>0?Math.PI:0,l>0?Math.PI*1.5:Math.PI/2,u)}}var Z9=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.name="canvas-path-generator",n}return e.prototype.init=function(){var n,r=(n={},n[St.CIRCLE]=H9,n[St.ELLIPSE]=Y9,n[St.RECT]=q9,n[St.LINE]=$9,n[St.POLYLINE]=U9,n[St.POLYGON]=X9,n[St.PATH]=V9,n[St.TEXT]=void 0,n[St.GROUP]=void 0,n[St.IMAGE]=void 0,n[St.HTML]=void 0,n[St.MESH]=void 0,n);this.context.pathGeneratorFactory=r},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(Za),K9=dt.create(),Q9=dt.create(),J9=dt.create(),t7=Kt.create(),e7=function(){function t(){var e=this;this.isHit=function(n,r,i,a){var o=e.context.pointInPathPickerFactory[n.nodeName];if(o){var s=Kt.invert(t7,i),c=dt.transformMat4(Q9,dt.set(J9,r[0],r[1],0),s),l=n.getGeometryBounds().halfExtents,u=n.parsedStyle.anchor;if(c[0]+=(u&&u[0]||0)*l[0]*2,c[1]+=(u&&u[1]||0)*l[1]*2,o(n,new Pr(c[0],c[1]),a,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(n,r){var i=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),a=e.context.pathGeneratorFactory[n.nodeName];return a&&(i.beginPath(),a(i,n.parsedStyle),i.closePath()),i.isPointInPath(r.x,r.y)}}return t.prototype.apply=function(e,n){var r=this,i,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=(i=o.root)===null||i===void 0?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(c){return(0,S.mG)(r,void 0,void 0,function(){return(0,S.Jh)(this,function(l){return[2,this.pick(s,c)]})})}),a.hooks.pickSync.tap(t.tag,function(c){return r.pick(s,c)})},t.prototype.pick=function(e,n){var r,i,a=n.topmost,o=n.position,s=o.x,c=o.y,l=dt.set(K9,s,c,0),u=e.elementsFromBBox(l[0],l[1],l[0],l[1]),f=[];try{for(var d=(0,S.XA)(u),h=d.next();!h.done;h=d.next()){var p=h.value,v=p.getWorldTransform(),g=this.isHit(p,l,v,!1);if(g){var y=bx(p);if(y){var m=y.parsedStyle.clipPath,b=this.isHit(m,l,m.getWorldTransform(),!0);if(b){if(a)return n.picked=[p],n;f.push(p)}}else{if(a)return n.picked=[p],n;f.push(p)}}}}catch(_){r={error:_}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return n.picked=f,n},t.tag="CanvasPicker",t}();function n7(t,e,n){var r=t.parsedStyle,i=r.r,a=r.fill,o=r.stroke,s=r.lineWidth,c=r.increasedLineWidthForHitTesting,l=r.pointerEvents,u=((s||0)+(c||0))/2,f=Hr(i,i,e.x,e.y),d=(0,S.CR)($o(l,a,o),2),h=d[0],p=d[1];return h&&p||n?f<=i+u:h?f<=i:p?f>=i-u&&f<=i+u:!1}function Bf(t,e,n,r){return t/(n*n)+e/(r*r)}function r7(t,e,n){var r=t.parsedStyle,i=r.rx,a=r.ry,o=r.fill,s=r.stroke,c=r.lineWidth,l=r.increasedLineWidthForHitTesting,u=r.pointerEvents,f=e.x,d=e.y,h=(0,S.CR)($o(u,o,s),2),p=h[0],v=h[1],g=((c||0)+(l||0))/2,y=(f-i)*(f-i),m=(d-a)*(d-a);return p&&v||n?Bf(y,m,i+g,a+g)<=1:p?Bf(y,m,i,a)<=1:v?Bf(y,m,i-g,a-g)>=1&&Bf(y,m,i+g,a+g)<=1:!1}function Uo(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function i7(t,e,n,r,i,a,o){var s=i/2;return Uo(t-s,e-s,n,i,a,o)||Uo(t+n-s,e-s,i,r,a,o)||Uo(t+s,e+r-s,n,i,a,o)||Uo(t-s,e+s,i,r,a,o)}function Ff(t,e,n,r,i,a,o,s){var c=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2),l={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Hr(l.x,l.y,o,s)<=a/2}function no(t,e,n,r,i,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=s-f&&a<=c+f&&o>=l-f&&o<=u+f?kb(t,e,n,r,a,o)<=i/2:!1}function s_(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o0!=X0(s[1]-n)>0&&X0(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function l_(t,e,n){for(var r=!1,i=0;i_&&A>O,v&&(v.resetTransform?v.resetTransform():v.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(v,0,0,y*g,m*g,i.background))});var p=function(v,g){v.isVisible()&&!v.isCulled()&&(r.renderDisplayObject(v,g,r.context,r.restoreStack,n),r.saveDirtyAABB(v));var y=v.sortable.sorted||v.childNodes;y.forEach(function(m){p(m,g)})};o.hooks.endFrame.tap(t.tag,function(){var v=u.getContext(),g=u.getDPR();if(Kt.fromScaling(r.dprMatrix,[g,g,1]),Kt.multiply(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)p(s.root,v);else{var y=r.safeMergeAABB.apply(r,(0,S.ev)([r.mergeDirtyAABBs(r.renderQueue)],(0,S.CR)(r.removedRBushNodeAABBs.map(function(q){var rt=q.minX,st=q.minY,At=q.maxX,Yt=q.maxY,qt=new Er;return qt.setMinMax([rt,st,0],[At,Yt,0]),qt})),!1));if(r.removedRBushNodeAABBs=[],Er.isEmpty(y)){r.renderQueue=[];return}var m=r.convertAABB2Rect(y),b=m.x,_=m.y,O=m.width,w=m.height,M=dt.transformMat4(r.vec3a,[b,_,0],r.vpMatrix),E=dt.transformMat4(r.vec3b,[b+O,_,0],r.vpMatrix),A=dt.transformMat4(r.vec3c,[b,_+w,0],r.vpMatrix),P=dt.transformMat4(r.vec3d,[b+O,_+w,0],r.vpMatrix),C=Math.min(M[0],E[0],P[0],A[0]),j=Math.min(M[1],E[1],P[1],A[1]),N=Math.max(M[0],E[0],P[0],A[0]),k=Math.max(M[1],E[1],P[1],A[1]),R=Math.floor(C),D=Math.floor(j),B=Math.ceil(N-C),F=Math.ceil(k-j);v.save(),r.clearRect(v,R,D,B,F,i.background),v.beginPath(),v.rect(R,D,B,F),v.clip(),v.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var z=i.renderer.getConfig().enableDirtyRectangleRenderingDebug;z&&f.dispatchEvent(new Nn(pi.DIRTY_RECTANGLE,{dirtyRect:{x:R,y:D,width:B,height:F}}));var Y=r.searchDirtyObjects(y);Y.sort(function(q,rt){return q.sortable.renderOrder-rt.sortable.renderOrder}).forEach(function(q){q&&q.isVisible()&&!q.isCulled()&&r.renderDisplayObject(q,v,r.context,r.restoreStack,n)}),v.restore(),r.renderQueue.forEach(function(q){r.saveDirtyAABB(q)}),r.renderQueue=[]}r.restoreStack.forEach(function(){v.restore()}),r.restoreStack=[]}),o.hooks.render.tap(t.tag,function(v){r.clearFullScreen||r.renderQueue.push(v)})},t.prototype.clearRect=function(e,n,r,i,a,o){e.clearRect(n,r,i,a),o&&(e.fillStyle=o,e.fillRect(n,r,i,a))},t.prototype.renderDisplayObject=function(e,n,r,i,a){var o=e.nodeName,s=i[i.length-1];s&&!(e.compareDocumentPosition(s)&kr.DOCUMENT_POSITION_CONTAINS)&&(n.restore(),i.pop());var c=this.context.styleRendererFactory[o],l=this.pathGeneratorFactory[o],u=e.parsedStyle.clipPath;if(u){this.applyWorldTransform(n,u);var f=this.pathGeneratorFactory[u.nodeName];f&&(n.save(),i.push(e),n.beginPath(),f(n,u.parsedStyle),n.closePath(),n.clip())}c&&(this.applyWorldTransform(n,e),n.save(),this.applyAttributesToContext(n,e)),l&&(n.beginPath(),l(n,e.parsedStyle),e.nodeName!==St.LINE&&e.nodeName!==St.PATH&&e.nodeName!==St.POLYLINE&&n.closePath()),c&&(c.render(n,e.parsedStyle,e,r,this,a),n.restore()),e.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(e){var n=e.getMin(),r=e.getMax(),i=Math.floor(n[0]),a=Math.floor(n[1]),o=Math.ceil(r[0]),s=Math.ceil(r[1]),c=o-i,l=s-a;return{x:i,y:a,width:c,height:l}},t.prototype.mergeDirtyAABBs=function(e){var n=new Er;return e.forEach(function(r){var i=r.getRenderBounds();n.add(i);var a=r.renderable.dirtyRenderBounds;a&&n.add(a)}),n},t.prototype.searchDirtyObjects=function(e){var n=(0,S.CR)(e.getMin(),2),r=n[0],i=n[1],a=(0,S.CR)(e.getMax(),2),o=a[0],s=a[1],c=this.rBush.search({minX:r,minY:i,maxX:o,maxY:s});return c.map(function(l){var u=l.displayObject;return u})},t.prototype.saveDirtyAABB=function(e){var n=e.renderable;n.dirtyRenderBounds||(n.dirtyRenderBounds=new Er);var r=e.getRenderBounds();r&&n.dirtyRenderBounds.update(r.center,r.halfExtents)},t.prototype.applyAttributesToContext=function(e,n){var r=n.parsedStyle,i=r.stroke,a=r.fill,o=r.opacity,s=r.lineDash,c=r.lineDashOffset;s&&e.setLineDash(s),(0,me.Z)(c)||(e.lineDashOffset=c),(0,me.Z)(o)||(e.globalAlpha*=o),!(0,me.Z)(i)&&!Array.isArray(i)&&!i.isNone&&(e.strokeStyle=n.attributes.stroke),!(0,me.Z)(a)&&!Array.isArray(a)&&!a.isNone&&(e.fillStyle=n.attributes.fill)},t.prototype.applyWorldTransform=function(e,n,r){var i=0,a=0,o=(n.parsedStyle||{}).anchor,s=o&&o[0]||0,c=o&&o[1]||0;if(s!==0||c!==0){var l=n.geometry.contentBounds,u=l&&l.halfExtents[0]*2||0,f=l&&l.halfExtents[1]*2||0;i=-(s*u),a=-(c*f)}r?(Kt.copy(this.tmpMat4,n.getLocalTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Kt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),Kt.multiply(this.tmpMat4,r,this.tmpMat4),Kt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(Kt.copy(this.tmpMat4,n.getWorldTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Kt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),Kt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),e.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var e=[],n=0;n0,M=s.alpha===0,E=!!(b&&b.length),A=!(0,me.Z)(y)&&m>0,P=r.nodeName,C=g==="inner",j=w&&A&&(P===St.PATH||P===St.LINE||P===St.POLYLINE||M||C);O&&(e.globalAlpha=l*u,j||zf(r,e,A),this.fill(e,r,s,c,i,a,o),j||this.clearShadowAndFilter(e,E,A)),w&&(e.globalAlpha=l*d,e.lineWidth=h,(0,me.Z)(_)||(e.miterLimit=_),(0,me.Z)(p)||(e.lineCap=p),(0,me.Z)(v)||(e.lineJoin=v),j&&(C&&(e.globalCompositeOperation="source-atop"),zf(r,e,!0),C&&(this.stroke(e,r,f,i,a,o),e.globalCompositeOperation="source-over",this.clearShadowAndFilter(e,E,!0))),this.stroke(e,r,f,i,a,o))},t.prototype.clearShadowAndFilter=function(e,n,r){if(r&&(e.shadowColor="transparent",e.shadowBlur=0),n){var i=e.filter;!(0,me.Z)(i)&&i.indexOf("drop-shadow")>-1&&(e.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t.prototype.fill=function(e,n,r,i,a,o,s){var c=this;Array.isArray(r)?r.forEach(function(l){e.fillStyle=c.getColor(l,n,e),i?e.fill(i):e.fill()}):(Kc(r)&&(e.fillStyle=this.getPattern(r,n,e,a,o,s)),i?e.fill(i):e.fill())},t.prototype.stroke=function(e,n,r,i,a,o){var s=this;Array.isArray(r)?r.forEach(function(c){e.strokeStyle=s.getColor(c,n,e),e.stroke()}):(Kc(r)&&(e.strokeStyle=this.getPattern(r,n,e,i,a,o)),e.stroke())},t.prototype.getPattern=function(e,n,r,i,a,o){var s,c;if(e.image.nodeName==="rect"){var l=e.image.parsedStyle,u=l.width,f=l.height;c=i.contextService.getDPR();var d=i.config.offscreenCanvas;s=o.offscreenCanvasCreator.getOrCreateCanvas(d),s.width=u*c,s.height=f*c;var h=o.offscreenCanvasCreator.getOrCreateContext(d),p=[];e.image.forEach(function(g){a.renderDisplayObject(g,h,i,p,o)}),p.forEach(function(){h.restore()})}var v=this.imagePool.getOrCreatePatternSync(e,r,s,c,function(){n.renderable.dirty=!0,i.renderingService.dirtify()});return v},t.prototype.getColor=function(e,n,r){var i;if(e.type===sa.LinearGradient||e.type===sa.RadialGradient){var a=n.getGeometryBounds(),o=a&&a.halfExtents[0]*2||1,s=a&&a.halfExtents[1]*2||1;i=this.imagePool.getOrCreateGradient((0,S.pi)((0,S.pi)({type:e.type},e.value),{width:o,height:s}),r)}return i},t}();function zf(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,s=r.shadowOffsetX,c=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=c||0)}var y7=function(){function t(e){this.imagePool=e}return t.prototype.render=function(e,n,r){var i=n.width,a=n.height,o=n.img,s=n.shadowColor,c=n.shadowBlur,l,u=i,f=a;if(er(o)?l=this.imagePool.getImageSync(o):(u||(u=o.width),f||(f=o.height),l=o),l){var d=!(0,me.Z)(s)&&c>0;zf(r,e,d);try{e.drawImage(l,0,0,u,f)}catch(h){}}},t}(),m7=function(){function t(){}return t.prototype.render=function(e,n,r,i,a,o){var s=n,c=s.lineWidth,l=s.textAlign,u=s.textBaseline,f=s.lineJoin,d=s.miterLimit,h=s.letterSpacing,p=s.stroke,v=s.fill,g=s.fillOpacity,y=s.strokeOpacity,m=s.opacity,b=s.metrics,_=s.dx,O=s.dy,w=s.shadowColor,M=s.shadowBlur,E=b.font,A=b.lines,P=b.height,C=b.lineHeight,j=b.lineMetrics;e.font=E,e.lineWidth=c,e.textAlign=l==="middle"?"center":l;var N=u;!o.enableCSSParsing&&N==="alphabetic"&&(N="bottom"),e.lineJoin=f,(0,me.Z)(d)||(e.miterLimit=d);var k=0;u==="middle"?k=-P/2-C/2:u==="bottom"||u==="alphabetic"||u==="ideographic"?k=-P:(u==="top"||u==="hanging")&&(k=-C);var R=_||0;k+=O||0,A.length===1&&(N==="bottom"?(N="middle",k-=.5*P):N==="top"&&(N="middle",k+=.5*P)),e.textBaseline=N;var D=!(0,me.Z)(w)&&M>0;zf(r,e,D);for(var B=0;B=1?Math.ceil(i):1,this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*e,this.$canvas.height=this.dpr*n,R8(this.$canvas,e,n)),this.renderingContext.renderReasons.add(to.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(e){this.$container&&this.$container.style&&(this.$container.style.cursor=e)},t.prototype.toDataURL=function(e){return e===void 0&&(e={}),(0,S.mG)(this,void 0,void 0,function(){var n,r;return(0,S.Jh)(this,function(i){return n=e.type,r=e.encoderOptions,[2,this.context.canvas.toDataURL(n,r)]})})},t}(),P7=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.name="canvas-context-register",n}return e.prototype.init=function(){this.context.ContextService=T7},e.prototype.destroy=function(){delete this.context.ContextService},e}(Za),u_=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;return r.registerPlugin(new P7),r.registerPlugin(new A7),r.registerPlugin(new Z9),r.registerPlugin(new b7),r.registerPlugin(new _7),r.registerPlugin(new v7),r.registerPlugin(new S7),r}return e}(qj),C7=function(){function t(e){this.dragndropPluginOptions=e}return t.prototype.apply=function(e){var n=this,r=e.renderingService,i=e.renderingContext,a=i.root.ownerDocument,o=a.defaultView,s=function(c){var l=c.target,u=l===a,f=u&&n.dragndropPluginOptions.isDocumentDraggable?a:l.closest&&l.closest("[draggable=true]");if(f){var d=!1,h=c.timeStamp,p=[c.clientX,c.clientY],v=null,g=[c.clientX,c.clientY],y=function(b){return(0,S.mG)(n,void 0,void 0,function(){var _,O,w,M,E,A;return(0,S.Jh)(this,function(P){switch(P.label){case 0:if(!d){if(_=b.timeStamp-h,O=ui([b.clientX,b.clientY],p),_<=this.dragndropPluginOptions.dragstartTimeThreshold||O<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];b.type="dragstart",f.dispatchEvent(b),d=!0}return b.type="drag",b.dx=b.clientX-g[0],b.dy=b.clientY-g[1],f.dispatchEvent(b),g=[b.clientX,b.clientY],u?[3,2]:(w=this.dragndropPluginOptions.overlap==="pointer"?[b.canvasX,b.canvasY]:l.getBounds().center,[4,a.elementsFromPoint(w[0],w[1])]);case 1:M=P.sent(),E=M[M.indexOf(l)+1],A=(E==null?void 0:E.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?a:null),v!==A&&(v&&(b.type="dragleave",b.target=v,v.dispatchEvent(b)),A&&(b.type="dragenter",b.target=A,A.dispatchEvent(b)),v=A,v&&(b.type="dragover",b.target=v,v.dispatchEvent(b))),P.label=2;case 2:return[2]}})})};o.addEventListener("pointermove",y);var m=function(b){if(d){b.detail={preventClick:!0};var _=b.clone();v&&(_.type="drop",_.target=v,v.dispatchEvent(_)),_.type="dragend",f.dispatchEvent(_),d=!1}o.removeEventListener("pointermove",y)};l.addEventListener("pointerup",m,{once:!0}),l.addEventListener("pointerupoutside",m,{once:!0})}};r.hooks.init.tap(t.tag,function(){o.addEventListener("pointerdown",s)}),r.hooks.destroy.tap(t.tag,function(){o.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),f_=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=t.call(this)||this;return r.options=n,r.name="dragndrop",r}return e.prototype.init=function(){this.addRenderingPlugin(new C7((0,S.pi)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},e.prototype.destroy=function(){this.removeAllRenderingPlugins()},e.prototype.setOptions=function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)},e}(Za);function k7(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}var d_=k7,R7=function(t){return typeof t=="object"&&t!==null},U0=R7,L7=function(t){if(!U0(t)||!(0,ef.Z)(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},io=L7,N7=5;function I7(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function h_(t,e,n,r){n=n||0,r=r||N7;for(var i in e)if(I7(e,i)){var a=e[i];a!==null&&io(a)?(io(t[i])||(t[i]={}),ni.pop().map(([a,o])=>[...i,a,o]));return t}function Lft(t,...e){return y_(Gf(t,...e),e)}function Nft(t,e,...n){return y_(K0(t,e,...n),n)}function Z0(t,e,...n){return Ys(t,sl,e,n)}function K0(t,e,...n){return Ys(t,Array.from,e,n)}function Ift(t,...e){return Ys(t,identity,m_,e)}function jft(t,...e){return Ys(t,Array.from,m_,e)}function m_(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Ys(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new D7,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}var b_=function(t){return(0,me.Z)(t)?"":t.toString()},B7=function(t){var e=b_(t);return e.charAt(0).toLowerCase()+e.substring(1)},x_=B7,F7=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function qo(t){return t}function Q0(t){return t.reduce((e,n)=>(r,...i)=>n(e(r,...i),...i),qo)}function z7(t){return t.reduce((e,n)=>r=>F7(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),qo)}function J0(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function $s(t=""){throw new Error(t)}function tv(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function In(t){return t!=null&&!Number.isNaN(t)}function Dft(t,e){return t+(e-t)*Math.random()}function G7(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function W7(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function fe(t,e){return __(t,e)||{}}function __(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[x_(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function Bft(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[`${e}${upperFirst(n)}`,r]))}function H7(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function ev(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function O_(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function cl(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function ka(t){return t===null||t===!1}function w_(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!io(a)||!io(t[i])?t[i]=a:w_(t[i],a,n,r+1)}return t}}function je(t){return new _r([t],null,t,t.ownerDocument)}class _r{constructor(e=null,n=null,r=null,i=null,a=[null,null,null,null,null],o=[],s=[]){this._elements=Array.from(e),this._data=n,this._parent=r,this._document=i,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}selectAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(n,null,this._elements[0],this._document)}selectFacetAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(this._elements,null,this._parent,this._document,void 0,void 0,n)}select(e){const n=typeof e=="string"?this._parent.querySelectorAll(e)[0]||null:e;return new _r([n],null,n,this._document)}append(e){const n=typeof e=="function"?e:()=>this.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=Kn(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new _r([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}_r.registry={g:Br,rect:Xo,circle:nl,path:ri,text:Zi,ellipse:k0,image:R0,line:rl,polygon:il,polyline:L0,html:xf};const Sn={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};var Y7=function(t){var e=b_(t);return e.charAt(0).toUpperCase()+e.substring(1)},ao=Y7;function $7(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Wf(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function V7(t){return t=Wf(Math.abs(t)),t?t[1]:NaN}function X7(t,e){return function(n,r){for(var i=n.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function U7(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var q7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nv(t){if(!(e=q7.exec(t)))throw new Error("invalid format: "+t);var e;return new rv({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}nv.prototype=rv.prototype;function rv(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}rv.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 Z7(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var S_;function K7(t,e){var n=Wf(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(S_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Wf(t,Math.max(0,e+a-1))[0]}function M_(t,e){var n=Wf(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var E_={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:$7,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>M_(t*100,e),r:M_,s:K7,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function A_(t){return t}var T_=Array.prototype.map,P_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Q7(t){var e=t.grouping===void 0||t.thousands===void 0?A_:X7(T_.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?A_:U7(T_.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=nv(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,_=f.trim,O=f.type;O==="n"?(m=!0,O="g"):E_[O]||(b===void 0&&(b=12),_=!0,O="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",M=v==="$"?r:/[%p]/.test(O)?o:"",E=E_[O],A=/[defgprs%]/.test(O);b=b===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function P(C){var j=w,N=M,k,R,D;if(O==="c")N=E(C)+N,C="";else{C=+C;var B=C<0||1/C<0;if(C=isNaN(C)?c:E(Math.abs(C),b),_&&(C=Z7(C)),B&&+C==0&&p!=="+"&&(B=!1),j=(B?p==="("?p:s:p==="-"||p==="("?"":p)+j,N=(O==="s"?P_[8+S_/3]:"")+N+(B&&p==="("?")":""),A){for(k=-1,R=C.length;++kD||D>57){N=(D===46?i+C.slice(k+1):C.slice(k))+N,C=C.slice(0,k);break}}}m&&!g&&(C=e(C,1/0));var F=j.length+C.length+N.length,z=F>1)+j+C+N+z.slice(F);break;default:C=z+j+C+N;break}return a(C)}return P.toString=function(){return f+""},P}function u(f,d){var h=l((f=nv(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(V7(d)/3)))*3,v=Math.pow(10,-p),g=P_[8+p/3];return function(y){return h(v*y)+g}}return{format:l,formatPrefix:u}}var Hf,oo,J7;tB({thousands:",",grouping:[3],currency:["$",""]});function tB(t){return Hf=Q7(t),oo=Hf.format,J7=Hf.formatPrefix,Hf}function so(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Zo(t){return t.map((e,n)=>n)}function Fft(t){const e=t.length,n=t[0].length,r=new Array(n).fill(0).map(()=>new Array(e));for(let i=0;i{n[e(r)?0:1].push(r)}),n}function R_(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function rB(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...R_(t,n));return e}var iB=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},ll=iB,iv=function(t,e){if(t===e)return!0;if(!t||!e||er(t)||er(e))return!1;if(ll(t)||ll(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}const N_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},ul=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=N_(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};ul.props={};const I_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},av=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=I_(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};av.props={};function Yf(t,e,n){return Math.max(e,Math.min(t,n))}function $f(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}const aB=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var j_=gt(16290);function $n(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Gn(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function fl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function D_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function dl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function B_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function oB(t){return dl(t)&&Gn(t)}function Vs(t){return D_(t)||Gn(t)}function F_(t){return Gn(t)&&$n(t)}function Gft(t){return Gn(t)||dl(t)||fl(t)||F_(t)}function sB(t){if(Vs(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Vf(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function ov(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function cB(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}function z_(t,e){e(t),t.children&&t.children.forEach(function(n){n&&z_(n,e)})}function hl(t){Xf(t,!0)}function co(t){Xf(t,!1)}function Xf(t,e){var n=e?"visible":"hidden";z_(t,function(r){r.attr("visibility",n)})}function lB(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function G_(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=(0,S.CR)(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return lB(t)?t[r]===!1?[r,!1]:[r,(0,S.pi)((0,S.pi)({},t[r]),n)]:[r,n]}))}function Xs(t,e){t?t.finished.then(e):e()}function uB(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function W_(t,e){"update"in t?t.update(e):t.attr(e)}function H_(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return W_(t,{style:r}),null}return t.animate(e,n)}function fB(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function dB(t,e,n,r){if(r===void 0&&(r="destroy"),fB(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&co(t),e.isVisible()&&hl(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(C){if(C.nodeName==="circle"){var j=(0,S.CR)(C.getLocalPosition(),2),N=j[0],k=j[1],R=C.attr("r");return[N-R,k-R]}return C.getLocalPosition()},d=(0,S.CR)(f(t),2),h=d[0],p=d[1],v=(0,S.CR)(f(e),2),g=v[0],y=v[1],m=(0,S.CR)([(h+g)/2-h,(p+y)/2-p],2),b=m[0],_=m[1],O=t.style.opacity,w=O===void 0?1:O,M=e.style.opacity,E=M===void 0?1:M,A=t.animate([{opacity:w,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(_,")")}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:c+l+u})),P=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-_,")"),offset:.01},{opacity:E,transform:"translate(0, 0)"}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:l+u,delay:c+l-u}));return Xs(P,i),[A,P]}function Ki(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];if(!(0,me.Z)(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?H_(t,[r,i],(0,S.pi)({fill:"both"},n)):(W_(t,i),null)}var hB=5,Y_=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=hB),Object.entries(e).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?io(s)?(io(t[o])||(c[o]={}),n="A"&&n<="Z"};function en(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Uf(o,"show")&&Uf(U_(o,"show"),e)!==n)o===SB(e,"show")?r[o]=s:r[o.replace(new RegExp(uv(e)),"")]=s;else if(!Uf(o,"show")&&Uf(o,e)!==n){var c=U_(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function la(t,e){return Object.entries(t).reduce(function(n,r){var i=(0,S.CR)(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(uv(a))]=o,n},{})}function Na(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function Fi(t,e){return gi(t)?t.apply(void 0,(0,S.ev)([],(0,S.CR)(e),!1)):t}function qf(t,e){return t.style.opacity||(t.style.opacity=1),Ki(t,{opacity:0},e)}var EB=["$el","anchor","cx","cy","d","defX","defY","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function AB(t){return EB.includes(t)}function q_(t){var e={};for(var n in t)AB(n)&&(e[n]=t[n]);return e}var qs=Bi({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function Z_(t){return t.reduce(function(e,n,r){return e.push((0,S.ev)([r===0?"M":"L"],(0,S.CR)(n),!1)),e},[])}function TB(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return Z_(t);if(!a)return[];var o=vl(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push((0,S.ev)(["M"],(0,S.CR)(l),!1)):c.push((0,S.ev)(["A",o,o,0,0,s],(0,S.CR)(l),!1)),c},[])}function fv(t,e,n){return e.type==="surround"?TB(t,e,n):Z_(t)}function PB(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=(0,S.CR)([fv(t,n),fv(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=(0,S.CR)([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["L"],(0,S.CR)(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=(0,S.CR)([vl(h,a),vl(d,a)],2),g=v[0],y=v[1];return p([(0,S.ev)(["A",g,g,0,0,1],(0,S.CR)(h),!1),(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["A",y,y,0,0,0],(0,S.CR)(d),!1),(0,S.ev)(["L"],(0,S.CR)(d),!1)])}function CB(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:fv(s.points,n)}});return t.selectAll(qs.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Fi(q_((0,S.pi)({path:c.path},r)),[c,l,o]);this.attr((0,S.pi)({class:qs.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Fi(q_((0,S.pi)({path:c.path},r)),[c,l,o]);return Ki(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=qf(this,i.exit);return Xs(l,function(){return c.remove()}),l})}).transitions()}function kB(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,E=t>e?0:1,A=!1;return A?"M".concat(n,",").concat(r,",L").concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m,",L").concat(n,",").concat(r):"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m)}function zB(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return(0,S.ev)((0,S.ev)([n,r],(0,S.CR)(i),!1),[a],!1)}function GB(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Pn.line.class).data([{path:r2.apply(void 0,(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",Pn.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=DB(this,zB(this),(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1),r.update);if(u){var f=function(){var d=zi(l.attributes,"__keyframe_data__");l.style.path=r2.apply(void 0,(0,S.ev)([],(0,S.CR)(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function WB(t,e){var n=e.truncRange,r=e.truncShape,i=e.lineExtension}function HB(t,e,n){n===void 0&&(n=[0,0]);var r=(0,S.CR)([t,e,n],3),i=(0,S.CR)(r[0],2),a=i[0],o=i[1],s=(0,S.CR)(r[1],2),c=s[0],l=s[1],u=(0,S.CR)(r[2],2),f=u[0],d=u[1],h=(0,S.CR)([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=(0,S.CR)([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function i2(t){var e=(0,S.CR)(t,2),n=(0,S.CR)(e[0],2),r=n[0],i=n[1],a=(0,S.CR)(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function YB(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=(0,S.CR)([a,o],2),u=(0,S.CR)(l[0],2),f=u[0],d=u[1],h=(0,S.CR)(l[1],2),p=h[0],v=h[1],g=(0,S.CR)(c?HB(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],_=g[3],O=function(F){return t.selectAll(Pn.line.class).data(F,function(z,Y){return Y}).join(function(z){return z.append("line").attr("className",function(Y){return"".concat(Pn.line.name," ").concat(Y.className)}).styles(n).transition(function(Y){return Ki(this,i2(Y.line),!1)})},function(z){return z.styles(n).transition(function(Y){var q=Y.line;return Ki(this,i2(q),r.update)})},function(z){return z.remove()}).transitions()};if(!i||!s)return O([{line:[[f+y,d+m],[p+b,v+_]],className:Pn.line.name}]);var w=(0,S.CR)(s,2),M=w[0],E=w[1],A=p-f,P=v-d,C=(0,S.CR)([f+A*M,d+P*M],2),j=C[0],N=C[1],k=(0,S.CR)([f+A*E,d+P*E],2),R=k[0],D=k[1],B=O([{line:[[f+y,d+m],[j,N]],className:Pn.lineFirst.name},{line:[[R,D],[p+b,v+_]],className:Pn.lineSecond.name}]);return WB(t,e),B}function $B(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(Pn.line.class):a?l=t.select(Pn.lineSecond.class):l=t.select(Pn.line.class),!i||!o||n.type==="arc"&&n2(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Jo(o);f.attr(r),hv(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function VB(t,e,n){var r=e.type,i,a=en(e,"line");return r==="linear"?i=YB(t,e,K_(a,"arrow"),n):i=GB(t,e,K_(a,"arrow"),n),$B(t,r,e,a),i}function XB(t,e){return vv(t,e.gridDirection,e)}function a2(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function UB(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=(0,S.CR)(Kf(a,e),2),s=o[0],c=o[1],l=(0,S.CR)(La(XB(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function qB(t,e){var n=e.gridControlAngles,r=a2(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=(0,S.CR)(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=(0,S.CR)(Kf(l,e),2),f=u[0],d=u[1],h=(0,S.CR)([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=Us(y),b=(0,S.CR)([Math.cos(m),Math.sin(m)],2),_=b[0],O=b[1],w=p*_-v*O+a,M=p*O+v*_+o;g.push([w,M])}),{points:g,id:c}})}function ZB(t,e,n,r){var i=en(n,"grid"),a=i.type,o=i.areaFill,s=a2(n),c=pv(e,n.gridFilter),l=a==="segment"?UB(c,n):qB(c,n),u=(0,S.pi)((0,S.pi)({},i),{center:s,areaFill:gi(o)?c.map(function(f,d){return Fi(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Pn.grid.class).data([1]).join(function(f){return f.append(function(){return new LB({style:u})}).attr("className",Pn.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}function Fr(t,e,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=!1),r&&t===e||i&&t===n?!0:t>e&&ti&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}var KB=function(t,e,n){if(n===void 0&&(n=128),!gi(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;a0,m=r-c,b=i-l,_=d*b-h*m;if(_<0===y)return!1;var O=p*b-v*m;return!(O<0===y||_>g===y||O>g===y)}function f2(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return u2(e,r)})}var Xft={lineToLine:u2,intersectBoxLine:f2,getBounds:td};function aF(t,e,n){var r,i,a=td(t,n).flat(1),o=td(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=(0,S.XA)(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(f2(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function oF(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=(0,S.CR)(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=(0,S.CR)(zr(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new bv(c+f-y,l+f-p,c+d+v,l+d+g)}var m=(0,S.CR)(t.startPos,2),b=m[0],_=m[1],O=(0,S.CR)(t.endPos,2),w=O[0],M=O[1],E=(0,S.CR)(e2(t)?[-e,0,e,0]:[0,e,0,-e],4),A=E[0],P=E[1],C=E[2],j=E[3],N=gl(0,t),k=La(N,i),R=new bv(b,_,w,M);return R.x1+=j,R.y1+=A,R.x2+=P+k[0],R.y2+=C+k[1],R}function ed(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=oF(e,a),l=function(p){return c?iF(c,p):!0},u=function(p,v){return p?!aF(p,v,zr(n)):!0};try{for(var f=(0,S.XA)(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function _v(t,e){return e===void 0&&(e={}),(0,me.Z)(t)?0:typeof t=="number"?t:Math.floor(QB(t,e))}function sF(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=o2(r.getTextShape(t[0])),p=_v(u,h),v=o?_v(o,h):p,g=_v(c,h);((0,me.Z)(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(k){return xv(k).width})));for(var y=t.slice(),m=(0,S.CR)(d,4),b=m[0],_=b===void 0?0:b,O=m[1],w=O===void 0?0:O,M=m[2],E=M===void 0?_:M,A=m[3],P=A===void 0?w:A,C=function(k){if(y.forEach(function(R){r.ellipsis(r.getTextShape(R),k,a)}),y=ed(t,n,d),y.length<1)return{value:void 0}},j=g;j>v+p;j-=p){var N=C(j);if(typeof N=="object")return N.value}}}function Uft(t){var e=t&&t.getRenderBounds();if(!e)return{width:0,height:0};var n=e.getMax(),r=e.getMin();return{width:n[0]-r[0],height:n[1]-r[1]}}function d2(t){var e=t.getLocalBounds(),n=e.min,r=e.max,i=(0,S.CR)([n,r],2),a=(0,S.CR)(i[0],2),o=a[0],s=a[1],c=(0,S.CR)(i[1],2),l=c[0],u=c[1];return{x:o,y:s,width:l-o,height:u-s,left:o,bottom:u,top:s,right:l}}function qft(t,e){var n=select(t).append("text").node();return n.attr(__assign(__assign({},e),{visibility:"hidden"})),n}function cF(t,e){var n=(0,S.CR)(t,2),r=n[0],i=n[1],a=(0,S.CR)(e,2),o=a[0],s=a[1];return r!==o&&i===s}function Zft(t,e){var n=__read(t,2),r=n[0],i=n[1],a=__read(e,2),o=a[0],s=a[1];return r===o&&i!==s}function lF(t,e){var n,r,i=e.attributes;try{for(var a=(0,S.XA)(Object.entries(i)),o=a.next();!o.done;o=a.next()){var s=(0,S.CR)(o.value,2),c=s[0],l=s[1];c!=="id"&&c!=="className"&&t.attr(c,l)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var uF={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(co(i),!1):!0})}},fF=function(t){return t.filter(l2)};function dF(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=uF.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,(0,S.ev)([1],(0,S.CR)(t.map(function(b){return xv(b).width})),!1));if(n.type==="linear"&&(t2(n)||e2(n))){var h=d2(t[0]).left,p=d2(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var gF=new Map([["hide",dF],["rotate",hF],["ellipsis",sF],["wrap",vF]]);function yF(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!vB(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function mF(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=gF.get(o);yF(t,e,o)&&(s==null||s(t,a,e,n))})}function bF(){for(var t=[],e=0;e2?[t[0]]:t.split("")}function CF(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=nd(r),u=(0,S.CR)(zr(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=(0,S.CR)(zr(a),4),g=v[0],y=v[1],m=v[2],b=v[3],_=(0,S.CR)([p+d,f+h],2),O=_[0],w=_[1],M=(0,S.CR)([b+y,g+m],2),E=M[0],A=M[1];if(l[0]==="l")return new Qn(s.x,s.y,c.width+s.width+O+E,Math.max(c.height+A,s.height));if(l[0]==="t")return new Qn(s.x,s.y,Math.max(c.width+E,s.width),c.height+s.height+w+A);var P=(0,S.CR)([e.attributes.width||c.width,e.attributes.height||c.height],2),C=P[0],j=P[1];return new Qn(c.x,c.y,C+s.width+O+E,j+s.height+w+A)}function kF(t,e){var n=Object.entries(e).reduce(function(r,i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function RF(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=(0,S.CR)([+o/2,+s/2],2),u=l[0],f=l[1],d=(0,S.CR)([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=nd(c);return y.includes("l")&&(e=(0,S.CR)([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=(0,S.CR)([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=(0,S.CR)([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=(0,S.CR)([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var O2=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(_2.text.class);if(!l)return new Qn(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=(0,S.CR)(zr(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=(0,S.CR)([0,0,+i,+a],4),b=m[0],_=m[1],O=m[2],w=m[3],M=nd(o);if(M.includes("i"))return new Qn(b,_,O,w);M.forEach(function(D,B){var F,z,Y,q;D==="t"&&(F=(0,S.CR)(B===0?[d+g,+a-d-g]:[0,+a],2),_=F[0],w=F[1]),D==="r"&&(z=(0,S.CR)([+i-f-y],1),O=z[0]),D==="b"&&(Y=(0,S.CR)([+a-d-p],1),w=Y[0]),D==="l"&&(q=(0,S.CR)(B===0?[f+v,+i-f-v]:[0,+i],2),b=q[0],O=q[1])});var E=(0,S.CR)(zr(c),4),A=E[0],P=E[1],C=E[2],j=E[3],N=(0,S.CR)([j+P,A+C],2),k=N[0],R=N[1];return new Qn(b+j,_+A,O-k,w-R)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Qn(0,0,0,0)},e.prototype.render=function(n,r){var i=this,a=n.width,o=n.height,s=n.position,c=n.spacing,l=(0,S._T)(n,["width","height","position","spacing"]),u=(0,S.CR)(Na(l),1),f=u[0],d=RF(n),h=d.x,p=d.y,v=d.textAlign,g=d.textBaseline;vi(!!l.text,qe(r),function(y){i.title=y.maybeAppendByClassName(_2.text,"text").styles(f).call(kF,{x:h,y:p,textAlign:v,textBaseline:g}).node()})},e}(Rr);function LF(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=nd(i),s=t.node().getLocalBounds(),c=(0,S.CR)(s.min,2),l=c[0],u=c[1],f=(0,S.CR)(s.halfExtents,2),d=f[0],h=f[1],p=(0,S.CR)(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=(0,S.CR)([l+d,u+h],2),m=y[0],b=y[1],_=(0,S.CR)(zr(a),4),O=_[0],w=_[1],M=_[2],E=_[3];if(["start","end"].includes(i)&&n.type==="linear"){var A=n.startPos,P=n.endPos,C=(0,S.CR)(i==="start"?[A,P]:[P,A],2),j=C[0],N=C[1],k=V_([-N[0]+j[0],-N[1]+j[1]]),R=(0,S.CR)(La(k,O),2),D=R[0],B=R[1];return{x:j[0]+D,y:j[1]+B}}return o.includes("t")&&(b-=h+g+O),o.includes("r")&&(m+=d+v+w),o.includes("l")&&(m-=d+v*2+E),o.includes("b")&&(b+=h+g*2+M),{x:m,y:b}}function NF(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function w2(t,e,n,r,i){var a=en(r,"title"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=c.transform,u=(0,S._T)(c,["transform"]);t.styles(s),e.styles(u);var f=l||NF(t.node(),s.direction,s.position);Jf(t.node(),f);var d=LF(qe(n._offscreen||n.querySelector(Pn.mainGroup.class)),e,r),h=d.x,p=d.y,v=Ki(e.node(),{x:h,y:p},i);return Jf(t.node(),f),v}function IF(t,e,n,r){var i=n.titleText;return t.selectAll(Pn.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Jo(i)}).attr("className",Pn.title.name).transition(function(){return w2(qe(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return w2(qe(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function S2(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Pn.lineGroup,"g"),c=vi(i,s,function(h){return VB(h,t,r)})||[],l=e.maybeAppendByClassName(Pn.tickGroup,"g"),u=vi(a,l,function(h){return PF(h,n,t,r)})||[],f=e.maybeAppendByClassName(Pn.labelGroup,"g"),d=vi(o,f,function(h){return SF(h,n,t,r)})||[];return(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(c),!1),(0,S.CR)(u),!1),(0,S.CR)(d),!1).filter(function(h){return!!h})}var wv=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,cv)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=yB(s,f).filter(function(O){var w=O.value;return!(d&&w>d[0]&&w-1;)YF.call(t,a,1);return t},pdt=null,VF=Array.prototype.splice,vdt=function(e,n){if(!isArrayLike(e))return[];for(var r=e?n.length:0,i=r-1;r--;){var a=void 0,o=n[r];(r===i||o!==a)&&(a=o,VF.call(e,o,1))}return e},gdt=null,ydt=function(t,e,n){if(!isArray(t)&&!isPlainObject(t))return t;var r=n;return each(t,function(i,a){r=e(r,i,a)}),r},mdt=null,bdt=function(t,e){var n=[];if(!isArrayLike(t))return n;for(var r=-1,i=[],a=t.length;++ra[s])return 1;if(i[s]0},Xdt=null,Udt=function(t,e){if(isArray(t)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}},qdt=function(t,e){if(isArray(t)){for(var n,r=1/0,i=0;is&&u>s);)if(c.push(l),s-=u,o=o.substr(i),!o)return c.join("");for(;l=o.substr(0,1),u=measureTextWidth(l,n),!(u+a>s);)if(c.push(l),s-=u,o=o.substr(1),!o)return c.join("");return""+c.join("")+r},Lht=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,n){var r=this.map[e];return r===void 0?n:r},t.prototype.set=function(e,n){this.map[e]=n},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Nht=null;class xl{constructor(e){this.options=R2({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=R2({},this.options,e),this.rescale(e)}rescale(e){}}function ad(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function Ks(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Mv(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}var vz=gt(2489),gz=gt.n(vz);function Ev(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function yz(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=Ev(o,a,e+1/3),c=Ev(o,a,e),l=Ev(o,a,e-1/3);return[s*255,c*255,l*255,i]}function D2(t){const e=gz().get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?yz(r):null}const Qs=(t,e)=>n=>t*(1-n)+e*n,mz=(t,e)=>{const n=D2(t),r=D2(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},_l=(t,e)=>typeof t=="number"&&typeof e=="number"?Qs(t,e):typeof t=="string"&&typeof e=="string"?mz(t,e):()=>t,bz=(t,e)=>{const n=Qs(t,e);return r=>Math.round(n(r))};function od(t){return!az(t)&&!nz(t)&&!Number.isNaN(t)}const Av=Math.sqrt(50),Tv=Math.sqrt(10),Pv=Math.sqrt(2);function sd(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/wr(10,i);return i>=0?(a>=Av?10:a>=Tv?5:a>=Pv?2:1)*wr(10,i):-wr(10,-i)/(a>=Av?10:a>=Tv?5:a>=Pv?2:1)}function B2(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=wr(10,Math.floor(Math.log(r)/Math.LN10));const a=r/i;return a>=Av?i*=10:a>=Tv?i*=5:a>=Pv&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=sd(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=sd(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r};function xz(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}const _z=(t,e,n)=>{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Mv(t,l,1,r)-1,f=i[u],d=a[u];return Ks(d,f)(l)}},z2=(t,e,n,r)=>(Math.min(t.length,e.length)>2?Oz:_z)(t,e,r?bz:n);class cd extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Qs,tickCount:5}}map(e){return od(e)?this.output(e):this.options.unknown}invert(e){return od(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return F2}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?xz(i[0],i[a-1]):ts}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=z2(r.map(e),i,o,a);this.output=Ks(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=z2(a,i.map(e),Qs);this.input=Ks(n,r,o)}}const es=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=sd(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),rr&&(r=d),h>i&&(i=h)}return new Qn(e,n,r-e,i-n)}var Mz=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a,s=n.flexWrap,c=s===void 0?"nowrap":s,l=n.justifyContent,u=l===void 0?"flex-start":l,f=n.alignContent,d=f===void 0?"flex-start":f,h=n.alignItems,p=h===void 0?"flex-start":h,v=o==="row",g=o==="row"||o==="column",y=v?g?[1,0]:[-1,0]:g?[0,1]:[0,-1],m=(0,S.CR)([0,0],2),b=m[0],_=m[1],O=e.map(function(N){var k,R=N.width,D=N.height,B=(0,S.CR)([b,_],2),F=B[0],z=B[1];return k=(0,S.CR)([b+R*y[0],_+D*y[1]],2),b=k[0],_=k[1],new Qn(F,z,R,D)}),w=H2(O),M={"flex-start":0,"flex-end":v?r-w.width:i-w.height,center:v?(r-w.width)/2:(i-w.height)/2},E=O.map(function(N){var k=N.x,R=N.y,D=Qn.fromRect(N);return D.x=v?k+M[u]:k,D.y=v?R:R+M[u],D}),A=H2(E),P=function(N){var k=(0,S.CR)(v?["height",i]:["width",r],2),R=k[0],D=k[1];switch(p){case"flex-start":return 0;case"flex-end":return D-N[R];case"center":return D/2-N[R]/2;default:return 0}},C=E.map(function(N){var k=N.x,R=N.y,D=Qn.fromRect(N);return D.x=v?k:k+P(D),D.y=v?R+P(D):R,D}),j=C.map(function(N){var k,R,D=Qn.fromRect(N);return D.x+=(k=t.x)!==null&&k!==void 0?k:0,D.y+=(R=t.y)!==null&&R!==void 0?R:0,D});return j},Ez=function(t,e,n){return[]},Az=function(t,e,n){if(e.length===0)return[];var r={flex:Mz,grid:Ez},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]},Tz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;r.layoutEvents=[Ie.BOUNDS_CHANGED,Ie.INSERTED,Ie.REMOVED],r.$margin=zr(0),r.$padding=zr(0);var i=n.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,c=s===void 0?0:s;return r.margin=o,r.padding=c,r.isMutationObserved=!0,r.bindEvents(),r}return Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(n){this.$margin=zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=zr(n)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.x,i=r===void 0?0:r,a=n.y,o=a===void 0?0:a,s=n.width,c=n.height,l=(0,S.CR)(this.$margin,4),u=l[0],f=l[1],d=l[2],h=l[3];return new Qn(i-h,o-u,s+h+f,c+u+d)},e.prototype.appendChild=function(n,r){return n.isMutationObserved=!0,t.prototype.appendChild.call(this,n,r),n},e.prototype.getAvailableSpace=function(){var n=this.attributes,r=n.width,i=n.height,a=(0,S.CR)(this.$padding,4),o=a[0],s=a[1],c=a[2],l=a[3],u=(0,S.CR)(this.$margin,4),f=u[0],d=u[3];return new Qn(l+d,o+f,r-l-s,i-o-c)},e.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(r){return!r.isConnected}))try{var n=Az(this.getAvailableSpace(),this.children.map(function(r){return r.getBBox()}),this.attributes);this.children.forEach(function(r,i){var a=n[i],o=a.x,s=a.y;r.attr({x:o,y:s})})}catch(r){}},e.prototype.bindEvents=function(){var n=this;this.layoutEvents.forEach(function(r){n.addEventListener(r,function(i){i.target.isMutationObserved=!0,n.layout()})})},e.prototype.attributeChangedCallback=function(n,r,i){n==="margin"?this.margin=i:n==="padding"&&(this.padding=i),this.layout()},e}(Br),Pz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir.getOptions().name===e))===null||n===void 0?void 0:n[0]}function Rz(t){return t==="horizontal"||t===0}function Lz(t){return t==="vertical"||t===-Math.PI/2}function X2(t,e,n){const{bbox:r}=t,{position:i="top",size:a,length:o}=e,s=["top","bottom","center"].includes(i),[c,l]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||c,h=o||f||l,p=s?"horizontal":"vertical",[v,g]=s?[h,d]:[d,h];return{orientation:p,width:v,height:g,size:d,length:h}}function Nz(t){return t.find(e=>e.getOptions().domain.length>0).getOptions().domain}function ud(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=Pz(t,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{e.includes(a)?i[`show${ao(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var U2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!B_(e))return i;const a=t==="bottom"?[i,1]:[0,i],o=e.map(a);if(t==="bottom"){const s=o[0];return new Vr({domain:[0,n],range:[0,1]}).map(s)}else if(t==="left"){const s=o[1];return new Vr({domain:[0,r],range:[0,1]}).map(s)}return i}}function jz(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Ia(e,o=>+o),{tickCount:a}=t.getOptions();return n(r,i,a)}function Dz(t,e){if(Gn(e))return h=>h;const n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:s,insetRight:c}=n,[l,u,f]=t==="left"||t==="right"?[a,o,i]:[s,c,r],d=new Vr({domain:[0,1],range:[l/f,1-u/f]});return h=>d.map(h)}function K2(t,e,n,r,i,a,o,s){var c;(n!==void 0||a!==void 0)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));const l=jz(t,e,a),u=i?l.filter(i):l,f=y=>y instanceof Date?String(y):typeof y=="object"&&y?y:String(y),d=r||((c=t.getFormatter)===null||c===void 0?void 0:c.call(t))||f,h=Dz(o,s),p=Iz(o,s),v=y=>["top","bottom","center","outer"].includes(y),g=y=>["left","right"].includes(y);return Gn(s)||$n(s)?u.map((y,m,b)=>{var _,O;const w=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,M=h(t.map(y)+w);return{value:fl(s)&&o==="center"||$n(s)&&((O=t.getTicks)===null||O===void 0?void 0:O.call(t))&&v(o)||$n(s)&&g(o)?1-M:M,label:f(d($f(y),m,b)),id:String(m)}}):u.map((y,m,b)=>{var _;const O=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,w=p(h(t.map(y)+O));return{value:g(o)?1-w:w,label:f(d($f(y),m,b)),id:String(m)}})}function Bz(t,e,n="xy"){const[r,i,a]=Z2(e);return n==="xy"?t.includes("bottom")||t.includes("top")?i:r:n==="xz"?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}function Fz(t=[],e){if(t.length>0)return t;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],s=(c,l)=>{l&&o.push(Object.assign(Object.assign({},c),l))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}function zz(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=e,l=[a+s/2,o+c/2],u=Math.min(s,c)/2,[f,d]=ov(i),[h,p]=Z2(i),v=Math.min(h,p)/2,g={center:l,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*v};if(t==="inner"){const{insetLeft:y,insetTop:m}=i.getOptions();return Object.assign(Object.assign({},g),{center:[l[0]-y,l[1]-m],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},g),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function Gz(t,e,n){return F_(e)||dl(e)?!1:t===void 0?!!n.getTicks:t}function Wz(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function Hz(t,e,n,r){const{x:i,y:a,width:o,height:s}=n;if(t==="bottom")return{startPos:[i,a],endPos:[i+o,a]};if(t==="left")return{startPos:[i+o,a+s],endPos:[i+o,a]};if(t==="right")return{startPos:[i,a+s],endPos:[i,a]};if(t==="top")return{startPos:[i,a+s],endPos:[i+o,a+s]};if(t==="center"){if(e==="vertical")return{startPos:[i,a],endPos:[i,a+s]};if(e==="horizontal")return{startPos:[i,a],endPos:[i+o,a]};if(typeof e=="number"){const[c,l]=r.getCenter(),[u,f]=Vf(r),[d,h]=ov(r),p=Math.min(o,s)/2,{insetLeft:v,insetTop:g}=r.getOptions(),y=u*p,m=f*p,[b,_]=[c+i-v,l+a-g],[O,w]=[Math.cos(e),Math.sin(e)],M=[b+m*O,_+m*w],E=[b+y*O,_+y*w];return{startPos:M,endPos:E,gridClosed:h-d===360,gridCenter:[b,_],gridControlAngles:new Array(3).fill(0).map((A,P,C)=>(h-d)/(C.length-1)*P)}}}return{}}const Yz=t=>{const{order:e,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:s,tickMethod:c,important:l={},style:u={},indexBBox:f,title:d,grid:h=!1}=t,p=U2(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[v],value:g,coordinate:y,theme:m})=>{const{bbox:b}=g,{domain:_}=v.getOptions(),O=K2(v,_,s,a,o,c,r,y),w=f?O.map((N,k)=>{const R=f.get(k);return!R||R[0]!==N.label?N:Object.assign(Object.assign({},N),{bbox:R[1]})}):O,[M,E]=Vf(y),A=zz(r,b,M,E,y),{axis:P,axisArc:C={}}=m,j=ud(Dt({},P,C,A,Object.assign(Object.assign({type:"arc",data:w,titleText:ld(d),grid:h},p),l)));return new wv({style:W2(j,["transform"])})}};function $z(t,e,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${J0(i)}`]:n.axisLinear,c=t.getOptions().name,l=n[`axis${ao(c)}`]||{};return Object.assign({},o,s,l)}function Vz(t,e,n,r,i,a){const o=$z(t,e,n,r,i,a);return i==="center"?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:r==="right"?"negative":"positive"}),r==="center"?{labelTransform:"translate(50%,0)"}:null),{tickDirection:r==="right"?"negative":"positive",labelSpacing:r==="center"?0:4,titleSpacing:Lz(a)?10:0,tick:r==="center"?!1:void 0}):o}const Xz=t=>{const{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:s,size:c,style:l={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:v}=t,g=U2(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:[y],value:m,coordinate:b,theme:_})=>{const{bbox:O}=m,{domain:w}=y.getOptions(),M=Vz(y,b,_,e,s,a),E=Object.assign(Object.assign(Object.assign({},M),l),g),A=Bz(o||s,b,t.plane),P=Hz(s,a,O,b),C=Wz(b),j=K2(y,w,f,r,d,h,s,b),N=v?j.map((D,B)=>{const F=v.get(B);return!F||F[0]!==D.label?D:Object.assign(Object.assign({},D),{bbox:F[1]})}):j,k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E),{type:"linear",data:N,crossSize:c,titleText:ld(u),labelOverlap:Fz(p,E),grid:Gz(E.grid,b,y),gridLength:A,line:!0,indexBBox:v}),E.line?null:{lineOpacity:0}),P),C),n);return k.labelOverlap.find(D=>D.type==="hide")&&(k.crossSize=!1),new wv({className:"axis",style:ud(k)})}},Q2=t=>e=>{const{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;const{scales:[o]}=i,s=((a=o.getTicks)===null||a===void 0?void 0:a.call(o))||o.getOptions().domain,c=typeof n=="string"?oo(n):n,l=(f,d,h)=>r(s[d],d,s),u=Object.assign(Object.assign({},e),{labelFormatter:c,labelFilter:l,scale:o});return t(u)(i)}},lo=Q2(Xz),J2=Q2(Yz);lo.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},J2.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var Uz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i-Math.PI/2&&eMath.PI/2&&e(c-s)/i.count*f)})}const tO=t=>{const{important:e={}}=t,n=Uz(t,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return lo(Object.assign(Object.assign(Object.assign({},n),qz(t.orientation)),{important:Object.assign(Object.assign({},Zz(t,i,a,o)),e)}))(r)}};tO.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"center"});function fd(t,e){return+t.toPrecision(e)}function Iht(t){return t.toLocaleString()}function jht(t){return t.toExponential()}function Dht(t,e){return e===void 0&&(e=0),Math.abs(t)<1e3?String(t):"".concat(fd(t/1e3,e).toLocaleString(),"K")}var Bht=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},Fht=function(t,e,n){return t>0&&Number.isFinite(t)?e:n},zht=function(t,e){return t*e},Ght=function(t,e){return t/2+(e||0)/2};function dd(t){var e=t.canvas,n=t.touches,r=t.offsetX,i=t.offsetY;if(e){var a=e.x,o=e.y;return[a,o]}if(n){var s=n[0],c=s.clientX,l=s.clientY;return[c,l]}return r&&i?[r,i]:[0,0]}var Kz={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},kv=Bi({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Qz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,Kz)||this;return r.point=[0,0],r.group=r.appendChild(new Br({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=(0,S.CR)(zr(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Qn(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=en(this.attributes,"background");this.background=qe(this.group).maybeAppendByClassName(kv.background,"path").styles((0,S.pi)((0,S.pi)({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=en(this.attributes,"label"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=s.text,u=(0,S._T)(s,["text"]);if(this.label=qe(this.group).maybeAppendByClassName(kv.labelGroup,"g").styles(c),!!i){var f=this.label.maybeAppendByClassName(kv.label,function(){return Jo(r(i))}).style("text",r(i).toString());f.selectAll("text").styles(u)}},e.prototype.adjustLayout=function(){var n=(0,S.CR)(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,(0,S.ev)([f+1,1],(0,S.CR)(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=cF.apply(void 0,(0,S.ev)([],(0,S.CR)(n),!1)),o=(0,S.CR)(n,2),s=(0,S.CR)(o[0],2),c=s[0],l=s[1],u=(0,S.CR)(o[1],2),f=u[0],d=u[1],h=(0,S.CR)(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=(0,S.CR)(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),_=r*b,O=_/2,w=_*Math.sqrt(3)/2*i,M=(0,S.CR)([g,g+m-O,g+m,g+m+O,y],5),E=M[0],A=M[1],P=M[2],C=M[3],j=M[4];return a?(this.point=[P,l-w],[["L",E,l],["L",A,l],["L",P,l-w],["L",C,l],["L",j,l]]):(this.point=[c+w,P],[["L",c,E],["L",c,A],["L",c+w,P],["L",c,C],["L",c,j]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?co(this):hl(this)},e.prototype.bindEvents=function(){this.label.on(Ie.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Rr),eO={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},nO={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},rO={orientation:"horizontal",showLabel:!0,type:"start"},fa=Bi({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),uo=Bi({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),Jz=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=(0,S._T)(n,["size","radius","orientation"]),u=a,f=u*2.4,d=qe(r).maybeAppendByClassName(uo.iconRect,"rect").styles((0,S.pi)((0,S.pi)({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(uo.iconLine,"-1"),"line").styles((0,S.pi)({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(uo.iconLine,"-2"),"line").styles((0,S.pi)({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Rr),iO=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,rO)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=en(this.attributes,"label"),o=a.transform,s=(0,S._T)(a,["transform"]),c=(0,S.CR)(Na(s,[]),2),l=c[0],u=c[1],f=qe(n).maybeAppendByClassName(uo.labelGroup,"g").styles(u),d=(0,S.pi)((0,S.pi)({},nO),l),h=d.text,p=(0,S._T)(d,["text"]);vi(!!i,f,function(v){r.label=v.maybeAppendByClassName(uo.label,"text").styles((0,S.pi)((0,S.pi)({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=(0,S.pi)((0,S.pi)({orientation:i},eO),en(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new Jz({style:o})}:s,l=qe(n).maybeAppendByClassName(uo.iconGroup,"g");l.selectAll(uo.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",uo.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Rr),aO=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},tG=aO,eG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},nG=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},rG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},iG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},aG=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},oG=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},oO=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},sG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},cG=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},lG=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},uG=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},sO=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},fG=sO,dG=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hG=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},pG=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},vG=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function gG(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var yG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function mG(t){var e="default";if(zo(t)&&t instanceof Image)e="image";else if(gi(t))e="symbol";else if(er(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function bG(t){var e=mG(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Rn=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=(0,S._T)(n,["symbol","size"]),c=bG(i);vi(!!c,qe(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=gi(i)?i:e.getSymbol(i);u.styles((0,S.pi)({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Rr);Rn.registerSymbol("cross",sG),Rn.registerSymbol("hyphen",uG),Rn.registerSymbol("line",oO),Rn.registerSymbol("plus",lG),Rn.registerSymbol("tick",cG),Rn.registerSymbol("circle",aO),Rn.registerSymbol("point",tG),Rn.registerSymbol("bowtie",oG),Rn.registerSymbol("hexagon",aG),Rn.registerSymbol("square",eG),Rn.registerSymbol("diamond",nG),Rn.registerSymbol("triangle",rG),Rn.registerSymbol("triangle-down",iG),Rn.registerSymbol("line",oO),Rn.registerSymbol("dot",sO),Rn.registerSymbol("dash",fG),Rn.registerSymbol("smooth",dG),Rn.registerSymbol("hv",hG),Rn.registerSymbol("vh",pG),Rn.registerSymbol("hvh",vG),Rn.registerSymbol("vhv",gG);function xG(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function _G(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var cO=1.4,lO=.4;function OG(t,e,n){var r=n,i=r*cO,a=r/2,o=r/6,s=t+i*lO;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function wG(t,e,n){var r=n,i=r*cO,a=r/2,o=r/6,s=e+i*lO;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Rn.registerSymbol("hiddenHandle",_G),Rn.registerSymbol("verticalHandle",OG),Rn.registerSymbol("horizontalHandle",wG);var Wht=function(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n};function SG(t,e,n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(t,2),o=a[0],s=a[1],c=(0,S.CR)(e,2),l=c[0],u=c[1],f=(0,S.CR)(n,2),d=f[0],h=f[1],p=(0,S.CR)([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=(0,S.CR)([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function da(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var Ol=Bi({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),uO={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},MG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,uO)||this}return e.prototype.render=function(n,r){var i=qe(r).maybeAppendByClassName(Ol.markerGroup,"g");this.renderMarker(i);var a=qe(r).maybeAppendByClassName(Ol.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?da(a,"horizontalHandle","verticalHandle"):o;vi(!!s,n,function(c){var l=en(r.attributes,"marker"),u=(0,S.pi)({symbol:s},l);r.marker=c.maybeAppendByClassName(Ol.marker,function(){return new Rn({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;vi(a,n,function(u){var f,d=en(r.attributes,"label"),h=d.text,p=(0,S._T)(d,["text"]),v=((f=u.select(Ol.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,_=(0,S.CR)(da(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),O=_[0],w=_[1],M=_[2],E=_[3];u.maybeAppendByClassName(Ol.label,"text").styles((0,S.pi)((0,S.pi)({},p),{x:O,y:w,text:l(h).toString(),textAlign:M,textBaseline:E}))})},e}(Rr),fO={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},EG=Ra({},fO,{}),AG=Ra({},fO,la(uO,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),TG=.01,Hht=.5,Lr=Bi({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend");function PG(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function CG(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var wl=Bi({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function hO(t){var e=t.orientation,n=t.size,r=t.length;return da(e,[r,n],[n,r])}function pO(t){var e=t.type,n=(0,S.CR)(hO(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function kG(t){return pO(t)}function RG(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(gi(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Aa(l).toString()});return s?s===1?c[0]:r?CG(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(da(e,"0","270"),")")):""}function LG(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,S.CR)(hO(t),2),i=r[0],a=r[1],o=(0,S.CR)(n,2),s=o[0],c=o[1],l=da(e,s*i,0),u=da(e,0,s*a),f=da(e,c*i,i),d=da(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function NG(t,e){var n=en(e,"track");t.maybeAppendByClassName(wl.track,"path").styles((0,S.pi)({path:pO(e)},n))}function IG(t,e){var n=en(e,"selection"),r=RG(e),i=t.maybeAppendByClassName(wl.selection,"path").styles((0,S.pi)({path:kG(e),fill:r},n)),a=i.maybeAppendByClassName(wl.clipPath,"path").styles({path:LG(e)}).node();i.style("clip-path",a)}var jG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=qe(r).maybeAppendByClassName(wl.trackGroup,"g");NG(i,n);var a=qe(r).maybeAppendByClassName(wl.selectionGroup,"g");IG(a,n)},e}(Rr);function DG(t){return{min:Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1))}}var BG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,AG)||this;return r.eventToOffsetScale=new Vr({}),r.innerRibbonScale=new Vr({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=dO(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=(0,S.CR)(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Qn(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(qe(r));var o=this.availableSpace,s=o.x,c=o.y,l=qe(r).maybeAppendByClassName(Lr.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Lr.labelGroup,"g").styles({zIndex:1});vi(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Lr.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Lr.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:DG(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=(0,S.CR)(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return da(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=en(this.attributes,"title"),l=(0,S.pi)((0,S.pi)({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Lr.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new O2({style:l})}).attr("className",Lr.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Qn(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Qn(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Pn.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Qn(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=(0,S.CR)(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var _=Math.max(g,u),O=h-_,w=(0,S.CR)(this.ifHorizontal([O,m],[m,O]),2),M=w[0],E=w[1],A=["top","left"].includes(b)?l:0,P=(0,S.CR)(this.ifHorizontal([_/2,A],[A,_/2]),2),C=P[0],j=P[1];return new Qn(C,j,M,E)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=en(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Ra({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(_){return(_.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Lr.ribbon,function(){return new jG({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Lr.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=en(this.attributes,"handle"),o=(0,S.CR)(this.selection,2),s=o[0],c=o[1],l=(0,S.pi)((0,S.pi)({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?MG:iO,h=this;this.handlesGroup.selectAll(Lr.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Lr.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=(0,S.CR)(this.getElementsByClassName(Lr.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=(0,S.CR)(s.getLocalBounds().min,1),l=c[0],u=(0,S.CR)(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Qn(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=(0,S.CR)([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Qn(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=(0,S.CR)(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=(0,S.CR)(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=en(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Lr.indicator,function(){return new Qz({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push((0,S.pi)((0,S.pi)({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o=0&&(c=1),1-s/(o-1)-n+c}function HG(t,e,n){const r=j2(e),i=N2(e,t),a=1;return 1-i/(r-1)-n+a}function YG(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function $G(t,e){return t>=e?2-(t-1)/(e-1):1}function VG(t,e,n,r){const i=e-t;return 1-.5*(wr(e-r,2)+wr(t-n,2))/wr(.1*i,2)}function XG(t,e,n){const r=e-t;if(n>r){const i=(n-r)/2;return 1-wr(i,2)/wr(.1*r,2)}return 1}function UG(){return 1}const Rv=(t,e,n=5,r=!0,i=FG,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||j<=t&&N>=e)&&(s.lmin=j,s.lmax=N,s.lstep=k,s.score=z)}}_+=1}y+=1}}c+=1}const l=Ml(s.lmax),u=Ml(s.lmin),f=Ml(s.lstep),d=Math.floor(GG((l-u)/f))+1,h=new Array(d);h[0]=Ml(u);for(let p=1;pa-o);const i=[];for(let a=1;a({value:e/t,label:String(e)})}function eW(t,e,n,r,i){const a=e.thresholds,o=tW(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(o)})}function nW(t,e,n){const i=[-1/0,...e.thresholds,1/0].map((a,o)=>({value:o,label:a}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(a,o)=>o>0&&op!==void 0).find(p=>!(p instanceof Sl)));return Object.assign(Object.assign({},t),{domain:[d,h],data:l.getTicks().map(p=>({value:p})),color:new Array(Math.floor(o)).fill(0).map((p,v)=>{const g=(f-u)/(o-1)*v+u,y=l.map(g)||c,m=r?r.map(g):1;return y.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(b,_,O,w)=>`rgba(${_}, ${O}, ${w}, ${m})`)})})}function aW(t,e,n,r,i,a){const o=ua(t,"color"),s=JG(n,r,i);if(o instanceof Js){const{range:u}=o.getOptions(),[f,d]=Lv(o);return o instanceof hd||o instanceof pd?eW(s,o,f,d,u):nW(s,o,u)}const c=ua(t,"size"),l=ua(t,"opacity");return iW(s,o,c,l,e,a)}const fo=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:c,crossPadding:l,padding:u}=t,f=KG(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:d,value:h,theme:p,scale:v})=>{const{bbox:g}=h,{x:y,y:m,width:b,height:_}=g,O=$2(a,n),{legendContinuous:w={}}=p,M=ud(Object.assign({},w,Object.assign(Object.assign({titleText:ld(s),labelAlign:"value",labelFormatter:typeof e=="string"?A=>oo(e)(A.label):e},aW(d,v,h,t,fo,p)),c),f)),E=new V2({style:Object.assign(Object.assign({x:y,y:m,width:b,height:_},O),{subOptions:M})});return E.appendChild(new BG({className:"legend-continuous",style:M})),E}};fo.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const gO=t=>(...e)=>fo(Object.assign({},{block:!0},t))(...e);gO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Nv=t=>e=>{const{scales:n}=e,r=ua(n,"size");return fo(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},t))(e)};Nv.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const yO=t=>Nv(Object.assign({},{block:!0},t));yO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var oW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie=>{const{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:s,paddingBottom:c,padding:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,data:_,coordinate:O,theme:w,component:M,interaction:E,x:A,y:P,z:C,key:j,frame:N,labelTransform:k,parentKey:R,clip:D,viewStyle:B,title:F}=e,z=oW(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:A,y:P,z:C,key:j,width:n,height:r,depth:i,padding:l,paddingLeft:a,paddingRight:o,paddingTop:s,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:c,theme:w,coordinate:O,component:M,interaction:E,frame:N,labelTransform:k,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,parentKey:R,clip:D,style:B},!t&&{title:F}),{marks:[Object.assign(Object.assign(Object.assign({},z),{key:`${j}-0`,data:_}),t&&{title:F})]})]};mO.props={};var sW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iDt({},t(e,...n),e)}function ec(t){return(e,...n)=>Dt({},e,t(e,...n))}function Iv(t,e){if(!t)return e;if(Array.isArray(t))return t;const{value:n=e}=t,r=sW(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}var jv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t,n=jv(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:c=[]}=n,l=jv(n,["data","scale","axis","legend","encode","transform"]),u=e.map(f=>{var{data:d,scale:h={},axis:p={},legend:v={},encode:g={},transform:y=[]}=f,m=jv(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:Iv(d,r),scale:Dt({},i,h),encode:Dt({},s,g),transform:[...c,...y],axis:p&&a?Dt({},a,p):!1,legend:v&&o?Dt({},o,v):!1},m)});return[Object.assign(Object.assign({},l),{marks:u,type:"standardView"})]};bO.props={};function ur([t,e],[n,r]){return[t-n,e-r]}function vd([t,e],[n,r]){return[t+n,e+r]}function Jn([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Gi([t,e]){return Math.atan2(e,t)}function nc([t,e]){return Gi([t,e])+Math.PI/2}function xO(t,e){const n=Gi(t),r=Gi(e);return nr===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function lW(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Jn(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function El(t,e,n,r,i){const a=Gi(ur(r,e))+Math.PI,o=Gi(ur(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function OO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Zo(s),[u,f]=Ia(l,g=>s[g]),d=new Vr({domain:[u,f],range:[0,100]}),h=g=>d.map(s[g]),p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function gd(t){const[e,n,r,i]=t;return[i,e,n,r]}function ns(t,e,n){const[r,i,,a]=$n(t)?gd(e):e,[o,s]=n,c=t.getCenter(),l=nc(ur(r,c)),u=nc(ur(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Jn(a,c),outerRadius:Jn(r,c)}}function $ht(t){const e="connect";return Object.fromEntries(Object.entries(t).filter(([n])=>n.startsWith(e)).map(([n,r])=>[lowerFirst(n.replace(e,"").trim()),r]).filter(([n])=>n!==void 0))}function wO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function SO(t,e){if(!Gn(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function MO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}function EO(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})}function uW(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Vht=Array.prototype.slice;function AO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Vn(t){return function(){return t}}function TO(t){this._context=t}TO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Al(t){return new TO(t)}const Bv=Math.PI,Fv=2*Bv,rs=1e-6,fW=Fv-rs;function PO(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return PO;const n=wr(10,e);return function(r){this._+=r[0];for(let i=1,a=r.length;irs)if(!(Math.abs(f*c-l*u)>rs)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Bv-Math.acos((v+d-g)/(2*y*m)))/2),_=b/m,O=b/y;Math.abs(_-1)>rs&&this._append`L${e+_*u},${n+_*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+O*c},${this._y1=n+O*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>rs||Math.abs(this._y1-u)>rs)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Fv+Fv),d>fW?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>rs&&this._append`A${r},${r},0,${+(d>=Bv)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Wi(){return new yd}Wi.prototype=yd.prototype;function Xht(t=3){return new yd(+t)}function zv(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new yd(e)}function CO(t){return t[0]}function kO(t){return t[1]}function ho(t,e){var n=Vn(!0),r=null,i=Al,a=null,o=zv(s);t=typeof t=="function"?t:t===void 0?CO:Vn(t),e=typeof e=="function"?e:e===void 0?kO:Vn(e);function s(c){var l,u=(c=AO(c)).length,f,d=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}function pW(t,e=[]){const[n=0,r=0,i=n,a=r]=e,o=t.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);const{min:c,halfExtents:l}=t.getLocalBounds(),[u,f]=c,[d,h]=l;return o.setEulerAngles(s),{x:u-a,y:f-n,width:d*2+a+r,height:h*2+n+i}}const vW=(t,e,n)=>{const r=Jn(t,e),i=Jn(e,n),a=Jn(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)};function gW(t,e,n,r){const[[i,a],[o,s]]=e,[c,l]=hW(t);if(i===o&&a===s)return ho()([[0,0],[c,l]]);const u=[[i-o,a-s]].concat(n.length?n:[[0,0]]),f=[r[0]-o,r[1]-s],[d,h]=u;if(vW(f,d,h)>0){const p=(()=>{const{min:v,max:g}=t.getLocalBounds(),y=d[0]+(d[1]-f[1])*(d[1]-0)/(d[0]-f[0]);return g[0]{const e=t.attributes,{className:n,class:r,transform:i,rotate:a,labelTransform:o,labelTransformOrigin:s,x:c,y:l,x0:u=c,y0:f=l,text:d,background:h,connector:p,startMarker:v,endMarker:g,coordCenter:y,innerHTML:m}=e,b=Gv(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if([c,l,u,f].some(D=>!(0,xr.Z)(D))){t.children.forEach(D=>D.remove());return}const _=fe(b,"background"),{padding:O}=_,w=Gv(_,["padding"]),M=fe(b,"connector"),{points:E=[]}=M,A=Gv(M,["points"]),P=[[+u,+f],[+c,+l]];let C;m?C=je(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",m).call(Ae,Object.assign({transform:o,transformOrigin:s},b)).node():C=je(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(Ae,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},b)).node();const j=je(t).maybeAppend("background","rect").style("zIndex",-1).call(Ae,pW(C,O)).call(Ae,h?w:{}).node(),N=gW(j,P,E,y),k=v&&new Rn({id:"startMarker",style:Object.assign({x:0,y:0},fe(b,"startMarker"))}),R=g&&new Rn({id:"endMarker",style:Object.assign({x:0,y:0},fe(b,"endMarker"))});je(t).maybeAppend("connector","path").style("zIndex",0).style("path",N).style("markerStart",k).style("markerEnd",R).call(Ae,p?A:{})});function ic(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function yW(t,e,n,r){const i=e.length/2,a=e.slice(0,i),o=e.slice(i);let s=ic(a,(h,p)=>Math.abs(h[1]-o[p][1]));s=Math.max(Math.min(s,i-2),1);const c=h=>[a[h][0],(a[h][1]+o[h][1])/2],l=c(s),u=c(s-1),f=c(s+1),d=Gi(ur(f,u))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function LO(t,e,n,r){const{bounds:i}=n,[[a,o],[s,c]]=i,l=s-a,u=c-o,f=d=>{const{x:h,y:p}=d,v=O_(n.x,l),g=O_(n.y,u);return Object.assign(Object.assign({},d),{x:(v||h)+a,y:(g||p)+o})};return f(t==="left"?{x:0,y:u/2,textAnchor:"start",textBaseline:"middle"}:t==="right"?{x:l,y:u/2,textAnchor:"end",textBaseline:"middle"}:t==="top"?{x:l/2,y:0,textAnchor:"center",textBaseline:"top"}:t==="bottom"?{x:l/2,y:u,textAnchor:"center",textBaseline:"bottom"}:t==="top-left"?{x:0,y:0,textAnchor:"start",textBaseline:"top"}:t==="top-right"?{x:l,y:0,textAnchor:"end",textBaseline:"top"}:t==="bottom-left"?{x:0,y:u,textAnchor:"start",textBaseline:"bottom"}:t==="bottom-right"?{x:l,y:u,textAnchor:"end",textBaseline:"bottom"}:{x:l/2,y:u/2,textAnchor:"center",textBaseline:"middle"})}function NO(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,c=r.getCenter(),l=ns(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=l,p=t==="inside"?(d+h)/2:h,v=Wv(p,o,s),g=(()=>{const[y,m]=e,b=u+(f-u)*.5,[_,O]=t==="inside"?Tl(c,p,b):_O(y,m);return{x:_,y:O}})();return Object.assign(Object.assign({},g),{textAlign:t==="inside"?"center":"start",textBaseline:"middle",rotate:v})}function Tl(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function Wv(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function mW(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:c=.5,offset:l=0}=n,u=ns(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g={textAlign:"center",textBaseline:"middle",rotate:Wv(p,o,s)},{innerRadius:y,outerRadius:m}=u,_=y+(m-y)*c+l,[O,w]=Tl(h,p,_);return Object.assign({x:O,y:w},g)}function IO(t){return t===void 0?null:t}function jO(t,e,n,r){const{bounds:i}=n,[a]=i;return{x:IO(a[0]),y:IO(a[1])}}function ja(t,e,n,r){const{bounds:i}=n;return i.length===1?jO(t,e,n,r):(fl(r)?NO:Vs(r)?mW:LO)(t,e,n,r)}function bW(t,e,n,r,i){const[a,o]=Tl(t,e,n),[s,c]=Tl(t,e,r),l=Math.sin(e)>0?1:-1;return[[a,o],[s,c],[s+l*i,c]]}function DO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function BO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function Hv(t,e,n,r){const{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:s=!0,connectorLength:c=o,connectorLength2:l=0,connectorDistance:u=0}=n,f=r.getCenter(),d=BO(e,n,r),h=Math.sin(d)>0?1:-1,p=Wv(d,i,a),v={textAlign:h>0||fl(r)?"start":"end",textBaseline:"middle",rotate:p},g=DO(e,n,r),y=g+(s?c:o),[[m,b],[_,O],[w,M]]=bW(f,d,g,y,s?l:0),E=s?+u*h:0,A=w+E,P=M,C={connector:s,connectorPoints:[[_-A,O-P],[w-A,M-P]]};return Object.assign(Object.assign({x0:m,y0:b,x:w+E,y:M},v),C)}function xW(t,e,n,r){const{bounds:i}=n;return i.length===1?jO(t,e,n,r):(fl(r)?NO:Vs(r)?Hv:LO)(t,e,n,r)}var _W=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,h=c[0]+(f+ +o)*d,{x:p}=s,v=h-p;return s.x+=v,s.connectorPoints[0][0]-=v,s}var wW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,[v,g]=Tl(u,h,d);return s.x=v+(a+o)*p,s.y=g,s}var FO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,theme:r}=e,{render:i}=t;return(a,o)=>{const{text:s,x:c,y:l,transform:u="",transformOrigin:f,className:d=""}=o,h=FO(o,["text","x","y","transform","transformOrigin","className"]),p=EW(a,o,n,r,t),{rotate:v=0,transform:g=""}=p,y=FO(p,["rotate","transform"]);return je(new RO).call(Ae,y).style("text",`${s}`).style("className",`${d} g2-label`).style("innerHTML",i?i(s,o.datum,o.index):void 0).style("labelTransform",`${g} rotate(${+v}) ${u}`.trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(Ae,h).node()}};zO.props={defaultMarker:"point"};function GO(t,e){const{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,s=Array.from(o.keys()).find(c=>c.key===r);if(s)return a?a.map(c=>s.data[c]):s.data[i]}function WO(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}function AW(t){return WO(t,e=>e.className==="component")}function TW(t){return WO(t,e=>e.className==="element")}function Nr(t,e,n,r=i=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);const{target:a}=i;if(!a)return;const{className:o}=a;if(o==="plot")return;const s=TW(a),c=AW(a),l=s||c;if(!l)return;const{className:u,markType:f}=l;if(u==="element"){const d=Object.assign(Object.assign({},i),{nativeEvent:!0,data:{data:GO(l,e)}});n.emit(`element:${t}`,d),n.emit(`${f}:${t}`,d)}else{const d=Object.assign(Object.assign({},i),{nativeEvent:!0});n.emit(`component:${t}`,d),n.emit(`${o}:${t}`,d)}}}function HO(){return(t,e,n)=>{const{container:r,view:i}=t,a=Nr(Sn.CLICK,i,n,M=>M.detail===1),o=Nr(Sn.DBLCLICK,i,n,M=>M.detail===2),s=Nr(Sn.POINTER_TAP,i,n),c=Nr(Sn.POINTER_DOWN,i,n),l=Nr(Sn.POINTER_UP,i,n),u=Nr(Sn.POINTER_OVER,i,n),f=Nr(Sn.POINTER_OUT,i,n),d=Nr(Sn.POINTER_MOVE,i,n),h=Nr(Sn.POINTER_ENTER,i,n),p=Nr(Sn.POINTER_LEAVE,i,n),v=Nr(Sn.POINTER_UPOUTSIDE,i,n),g=Nr(Sn.DRAG_START,i,n),y=Nr(Sn.DRAG,i,n),m=Nr(Sn.DRAG_END,i,n),b=Nr(Sn.DRAG_ENTER,i,n),_=Nr(Sn.DRAG_LEAVE,i,n),O=Nr(Sn.DRAG_OVER,i,n),w=Nr(Sn.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",c),r.addEventListener("pointerup",l),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",v),r.addEventListener("dragstart",g),r.addEventListener("drag",y),r.addEventListener("dragend",m),r.addEventListener("dragenter",b),r.addEventListener("dragleave",_),r.addEventListener("dragover",O),r.addEventListener("drop",w),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",c),r.removeEventListener("pointerup",l),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",v),r.removeEventListener("dragstart",g),r.removeEventListener("drag",y),r.removeEventListener("dragend",m),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",_),r.removeEventListener("dragover",O),r.removeEventListener("drop",w)}}}HO.props={reapplyWhenUpdate:!0};function PW(){return{"component.axisRadar":tO,"component.axisLinear":lo,"component.axisArc":J2,"component.legendContinuousBlock":gO,"component.legendContinuousBlockSize":yO,"component.legendContinuousSize":Nv,"interaction.event":HO,"composition.mark":mO,"composition.view":bO,"shape.label.label":zO}}var CW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(typeof a!="string")return a;const o=`${t}.${a}`;return n[o]||$s(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,c=CW(a,["type"]);s||$s("Plot type is required!");const l=r(s);return l==null?void 0:l(c,o)},r]}function YO(t){const{canvas:e,group:n}=t;return(e==null?void 0:e.document)||(n==null?void 0:n.ownerDocument)||$s("Cannot find library document")}var $O=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);in.type===e)}function is(t){return Qi(t,"polar").length>0}function RW(t){return Qi(t,"helix").length>0}function ac(t){return Qi(t,"transpose").length%2===1}function LW(t){return Qi(t,"parallel").length>0}function XO(t){return Qi(t,"theta").length>0}function NW(t){return Qi(t,"reflect").length>0}function Pl(t){return Qi(t,"radial").length>0}function IW(t){return Qi(t,"radar").length>0}function jW(t){return Qi(t,"reflectY").length>0}function DW(t){return t.find(e=>e.type==="cartesian"||e.type==="cartesian3D")?t:[...t,{type:"cartesian"}]}function nn(t){for(var e=t.length/6|0,n=new Array(e),r=0;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?bd(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?bd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=qW.exec(t))?new Xr(e[1],e[2],e[3],1):(e=ZW.exec(t))?new Xr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=KW.exec(t))?bd(e[1],e[2],e[3],e[4]):(e=QW.exec(t))?bd(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=JW.exec(t))?ew(e[1],e[2]/100,e[3]/100,1):(e=tH.exec(t))?ew(e[1],e[2]/100,e[3]/100,e[4]):UO.hasOwnProperty(t)?KO(UO[t]):t==="transparent"?new Xr(NaN,NaN,NaN,0):null}function KO(t){return new Xr(t>>16&255,t>>8&255,t&255,1)}function bd(t,e,n,r){return r<=0&&(t=e=n=NaN),new Xr(t,e,n,r)}function QO(t){return t instanceof oc||(t=$v(t)),t?(t=t.rgb(),new Xr(t.r,t.g,t.b,t.opacity)):new Xr}function kl(t,e,n,r){return arguments.length===1?QO(t):new Xr(t,e,n,r==null?1:r)}function Xr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}md(Xr,kl,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new Xr(os(this.r),os(this.g),os(this.b),xd(this.opacity))},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:JO,formatHex:JO,formatHex8:rH,formatRgb:tw,toString:tw}));function JO(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b))}function rH(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b)).concat(ss((isNaN(this.opacity)?1:this.opacity)*255))}function tw(){var t=xd(this.opacity);return"".concat(t===1?"rgb(":"rgba(").concat(os(this.r),", ").concat(os(this.g),", ").concat(os(this.b)).concat(t===1?")":", ".concat(t,")"))}function xd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function os(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ss(t){return t=os(t),(t<16?"0":"")+t.toString(16)}function ew(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ji(t,e,n,r)}function nw(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof oc||(t=$v(t)),!t)return new Ji;if(t instanceof Ji)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Ji(o,s,c,t.opacity)}function iH(t,e,n,r){return arguments.length===1?nw(t):new Ji(t,e,n,r==null?1:r)}function Ji(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}md(Ji,iH,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new Ji(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new Ji(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,a=2*r-i;return new Xr(Vv(e>=240?e-240:e+120,a,i),Vv(e,a,i),Vv(e<120?e+240:e-120,a,i),this.opacity)},clamp:function(){return new Ji(rw(this.h),_d(this.s),_d(this.l),xd(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=xd(this.opacity);return"".concat(e===1?"hsl(":"hsla(").concat(rw(this.h),", ").concat(_d(this.s)*100,"%, ").concat(_d(this.l)*100,"%").concat(e===1?")":", ".concat(e,")"))}}));function rw(t){return t=(t||0)%360,t<0?t+360:t}function _d(t){return Math.max(0,Math.min(1,t||0))}function Vv(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function iw(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function aH(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):Xv(isNaN(t)?e:t)}function lH(t){return(t=+t)==1?lc:function(e,n){return n-e?sH(e,n,t):Xv(isNaN(e)?n:e)}}function lc(t,e){var n=e-t;return n?aw(t,n):Xv(isNaN(t)?e:t)}var Uht=function t(e){var n=lH(e);function r(i,a){var o=n((i=kl(i)).r,(a=kl(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=lc(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=t,r}(1);function ow(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;ouH(t[t.length-1]),sw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nn),fH=Wn(sw),cw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nn),dH=Wn(cw),lw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nn),hH=Wn(lw),uw=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nn),pH=Wn(uw),fw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nn),vH=Wn(fw),dw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nn),gH=Wn(dw),hw=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nn),yH=Wn(hw),pw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nn),mH=Wn(pw),vw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nn),bH=Wn(vw),gw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nn),xH=Wn(gw),yw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nn),_H=Wn(yw),mw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nn),OH=Wn(mw),bw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nn),wH=Wn(bw),xw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nn),SH=Wn(xw),_w=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nn),MH=Wn(_w),Ow=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nn),EH=Wn(Ow),ww=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nn),AH=Wn(ww),Sw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nn),TH=Wn(Sw),Mw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nn),PH=Wn(Mw),Ew=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nn),CH=Wn(Ew),Aw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nn),kH=Wn(Aw),Tw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nn),RH=Wn(Tw),Pw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nn),LH=Wn(Pw),Cw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nn),NH=Wn(Cw),kw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nn),IH=Wn(kw),Rw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nn),jH=Wn(Rw),Lw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nn),DH=Wn(Lw);function BH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}var FH=Math.PI/180,zH=180/Math.PI,Nw=-.14861,Uv=1.78277,qv=-.29227,Od=-.90649,Rl=1.97294,Iw=Rl*Od,jw=Rl*Uv,Dw=Uv*qv-Od*Nw;function GH(t){if(t instanceof cs)return new cs(t.h,t.s,t.l,t.opacity);t instanceof Xr||(t=QO(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Dw*r+Iw*e-jw*n)/(Dw+Iw-jw),a=r-i,o=(Rl*(n-i)-qv*a)/Od,s=Math.sqrt(o*o+a*a)/(Rl*i*(1-i)),c=s?Math.atan2(o,a)*zH-120:NaN;return new cs(c<0?c+360:c,s,i,t.opacity)}function pa(t,e,n,r){return arguments.length===1?GH(t):new cs(t,e,n,r==null?1:r)}function cs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}md(cs,pa,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new cs(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new cs(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*FH,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(e),a=Math.sin(e);return new Xr(255*(n+r*(Nw*i+Uv*a)),255*(n+r*(qv*i+Od*a)),255*(n+r*(Rl*i)),this.opacity)}}));function Bw(t){return function e(n){n=+n;function r(i,a){var o=t((i=pa(i)).h,(a=pa(a)).h),s=lc(i.s,a.s),c=lc(i.l,a.l),l=lc(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=e,r}(1)}var Zht=Bw(cH),Zv=Bw(lc),WH=Zv(pa(300,.5,0),pa(-240,.5,1)),HH=Zv(pa(-100,.75,.35),pa(80,1.5,.8)),YH=Zv(pa(260,.75,.35),pa(80,1.5,.8)),wd=pa();function $H(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return wd.h=360*t-100,wd.s=1.5-1.5*e,wd.l=.8-.9*e,wd+""}var Sd=kl(),VH=Math.PI/3,XH=Math.PI*2/3;function UH(t){var e;return t=(.5-t)*Math.PI,Sd.r=255*(e=Math.sin(t))*e,Sd.g=255*(e=Math.sin(t+VH))*e,Sd.b=255*(e=Math.sin(t+XH))*e,Sd+""}function qH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function Md(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var ZH=Md(nn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),KH=Md(nn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),QH=Md(nn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),JH=Md(nn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function tY(t,e,n,r,i,a){const{guide:o={}}=n,s=lY(t,e,n);if(typeof s!="string")return n;const c=uY(s,t,e,n),l=oY(s,c,n);return Object.assign(Object.assign(Object.assign({},n),dY(s,t,e,n,r)),{domain:l,range:fY(s,t,e,n,l,i,a),expectedDomain:c,guide:o,name:t,type:s})}function eY(t,e){const n={};for(const r of t){const{values:i,name:a}=r,o=e[a];for(const s of i){const{name:c,value:l}=s;n[c]=l.map(u=>o.map(u))}}return n}function nY(t,e){var n;const{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(s=>s.channels.map(c=>c.scale)))),o=new Map(a.map(s=>[s.name,s]));for(const s of r){const c=aY(s);for(const l of c){const u=o.get(l),f=((n=s.scale)===null||n===void 0?void 0:n[l])||{},{independent:d=!1}=f;if(u&&!d){const{guide:h}=u,p=typeof h=="boolean"?{}:h;u.guide=Dt({},p,s),Object.assign(u,f)}else{const h=Object.assign(Object.assign({},f),{expectedDomain:f.domain,name:l,guide:W2(s,i)});a.push(h)}}}return a}function rY(t){if(!t||!Array.isArray(t))return[qo,qo];let e,n;return[a=>{var o;e=a.map.bind(a),n=(o=a.invert)===null||o===void 0?void 0:o.bind(a);const s=t.filter(([d])=>typeof d=="function"),c=t.filter(([d])=>typeof d!="function"),l=new Map(c);if(a.map=d=>{for(const[h,p]of s)if(h(d))return p;return l.has(d)?l.get(d):e(d)},!n)return a;const u=new Map(c.map(([d,h])=>[h,d])),f=new Map(s.map(([d,h])=>[h,d]));return a.invert=d=>f.has(d)?d:u.has(d)?u.get(d):n(d),a},a=>(e!==null&&(a.map=e),n!==null&&(a.invert=n),a)]}function Fw(t,e){const n=Object.keys(t);for(const r of Object.values(e)){const{name:i}=r.getOptions();if(!(i in t))t[i]=r;else{const a=n.filter(c=>c.startsWith(i)).map(c=>+(c.replace(i,"")||0)),o=Mn(a)+1,s=`${i}${o}`;t[s]=r,r.getOptions().key=s}}return t}function zw(t,e){const[n]=Xn("scale",e),{relations:r}=t,[i]=rY(r),a=n(t);return i(a)}function iY(t){const e=t.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));Gw(e,"x"),Gw(e,"y")}function aY(t){const{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return e.length!==0?e:n==="axisX"?["x"]:n==="axisY"?["y"]:n==="legends"?Object.keys(r).filter(a=>i.includes(a)):[]}function Gw(t,e){const n=t.filter(({name:a,facet:o=!0})=>o&&a===e),r=n.flatMap(a=>a.domain),i=n.every(Ww)?Ia(r):n.every(Hw)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function oY(t,e,n){const{ratio:r}=n;return r==null?e:Ww({type:t})?sY(e,r,t):Hw({type:t})?cY(e,r):e}function sY(t,e,n){const r=t.map(Number),i=new Vr({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return n==="time"?t.map(a=>new Date(i.map(a))):t.map(a=>i.map(a))}function cY(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}function Ww(t){const{type:e}=t;return typeof e!="string"?!1:["linear","log","pow","time"].includes(e)}function Hw(t){const{type:e}=t;return typeof e!="string"?!1:["band","point","ordinal"].includes(e)}function lY(t,e,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:wY(e)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?Kv(t,s):i!==void 0?Uw([i])?Kv(t,s):qw(e)?"time":$w(t,a,o):Uw(e)?Kv(t,s):qw(e)?"time":$w(t,a,o)}function uY(t,e,n,r){const{domain:i}=r;if(i!==void 0)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return Vw(bY(n,r),r);case"band":case"ordinal":case"point":return Xw(n);case"quantile":return xY(n);case"sequential":return Vw(_Y(n),r);default:return[]}}function fY(t,e,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return hY(s);if(s!==void 0)return s;const{rangeMin:c,rangeMax:l}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{const u=Yw(n,r,i,a,o),[f,d]=OY(e,u);return[c||f,l||d]}case"band":case"point":return[c||(e==="size"?5:0),l||(e==="size"?10:1)];case"ordinal":return Yw(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function dY(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return gY(i,r);case"band":case"point":return yY(t,e,i,r);case"sequential":return vY(r);default:return r}}function Yw(t,e,n,r,i){const[a]=Xn("palette",i),{category10:o,category20:s}=r,c=nB(t.flat()).length<=o.length?o:s,{palette:l=c,offset:u}=e;if(Array.isArray(l))return l;try{return a({type:l})}catch(f){const d=pY(l,n,u);if(d)return d;throw new Error(`Unknown Component: ${l} `)}}function hY(t){return t.split("-")}function pY(t,e,n=r=>r){if(!t)return null;const r=ao(t),i=Nt[`scheme${r}`],a=Nt[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const o=i[e.length];if(o)return o}return e.map((o,s)=>a(n(s/e.length)))}function vY(t){const{palette:e="ylGnBu",offset:n}=t,r=ao(e),i=Nt[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function gY(t,e){const{interpolate:n=_l,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}function yY(t,e,n,r){if(r.padding!==void 0||r.paddingInner!==void 0||r.paddingOuter!==void 0)return Object.assign(Object.assign({},r),{unknown:NaN});const i=mY(t,e,n),{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}function mY(t,e,n){return e==="enterDelay"||e==="enterDuration"||e==="size"?0:t==="band"?XO(n)?0:.1:t==="point"?.5:0}function Kv(t,e){return e||(SY(t)?"point":"ordinal")}function $w(t,e,n){return n||(t!=="color"||e?"linear":"sequential")}function Vw(t,e){if(t.length===0)return t;const{domainMin:n,domainMax:r}=e,[i,a]=t;return[n!=null?n:i,r!=null?r:a]}function bY(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const a of t)for(const o of a)In(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function Xw(t){return Array.from(new Set(t.flat()))}function xY(t){return Xw(t).sort()}function _Y(t){let e=1/0,n=-1/0;for(const r of t)for(const i of r)In(i)&&(e=Math.min(e,+i),n=Math.max(n,+i));return e===1/0?[]:[e<0?-n:e,n]}function OY(t,e){return t==="enterDelay"?[0,1e3]:t=="enterDuration"?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:t==="color"?[eB(e),C_(e)]:t==="opacity"?[0,1]:t==="size"?[1,10]:[0,1]}function Uw(t){return Qv(t,e=>{const n=typeof e;return n==="string"||n==="boolean"})}function qw(t){return Qv(t,e=>e instanceof Date)}function wY(t){return Qv(t,cl)}function Qv(t,e){for(const n of t)if(n.some(e))return!0;return!1}function SY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}function MY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t==="enterDelay"||t==="enterDuration"||t==="updateDelay"||t==="updateDuration"||t==="exitDelay"||t==="exitDuration"}function EY(t){if(!t||!t.type)return!1;if(typeof t.type=="function")return!0;const{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)}const AY={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},TY={threshold:"threshold",quantize:"quantize",quantile:"quantile"},PY={ordinal:"ordinal",band:"band",point:"point"},CY={constant:"constant"};var po=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iu!==null),s=[],c=GY(e,t,n);if(s.push(...c),i){const{props:u}=a("title"),{defaultPosition:f,defaultOrientation:d,defaultOrder:h,defaultSize:p,defaultCrossPadding:v}=u,g=typeof i=="string"?{title:i}:i;s.push(Object.assign({type:"title",position:f,orientation:d,order:h,crossPadding:v[0],defaultSize:p},g))}return jY(o,r).forEach(([u,f])=>{const{props:d}=a(u),{defaultPosition:h,defaultPlane:p="xy",defaultOrientation:v,defaultSize:g,defaultOrder:y,defaultLength:m,defaultPadding:b=[0,0],defaultCrossPadding:_=[0,0]}=d,O=Dt({},...f),{guide:w,field:M}=O,E=Array.isArray(w)?w:[w];for(const A of E){const[P,C]=FY(u,h,v,A,f,o,r);if(!P&&!C)continue;const j=P==="left"||P==="right",N=j?b[1]:b[0],k=j?_[1]:_[0],{size:R,order:D=y,length:B=m,padding:F=N,crossPadding:z=k}=A;s.push(Object.assign(Object.assign({title:M},A),{defaultSize:g,length:B,position:P,plane:p,orientation:C,padding:F,order:D,crossPadding:z,size:R,type:u,scales:f}))}}),s}function Zw(t,e,n,r,i){const[a]=Xn("component",r),{scaleInstances:o,scale:s,bbox:c}=t,l=po(t,["scaleInstances","scale","bbox"]),u={bbox:c,library:r};return a(l)({coordinate:e,library:r,markState:i,scales:o,theme:n,value:u,scale:s})}function RY(t){return t.map(e=>{const n=Dt(e,e.style);return delete n.style,n})}function Kht(t){return t.flatMap(e=>e.type=="group"?e.children:e)}function Kw(t,e){const n=["left","right","bottom","top"];return Gf(t,({type:a,position:o,group:s})=>n.includes(o)?s===void 0?a.startsWith("legend")?`legend-${o}`:Symbol("independent"):s==="independent"?Symbol("independent"):s:Symbol("independent")).flatMap(([,a])=>{if(a.length===1)return a[0];if(e!==void 0){const u=a.filter(v=>v.length!==void 0).map(v=>v.length),f=Di(u);if(f>e)return a.forEach(v=>v.group=Symbol("independent")),a;const d=e-f,h=a.length-u.length,p=d/h;a.forEach(v=>{v.length===void 0&&(v.length=p)})}const o=Mn(a,u=>u.size),s=Mn(a,u=>u.order),c=Mn(a,u=>u.crossPadding),l=a[0].position;return{type:"group",size:o,order:s,position:l,children:a,crossPadding:c}})}function LY(t,e){const n=["shape","size","color","opacity"],r=(d,h)=>d==="constant"&&h==="size",i=t.filter(({type:d,name:h})=>typeof d=="string"&&n.includes(h)&&!r(d,h)),a=i.filter(({type:d})=>d==="constant"),o=i.filter(({type:d})=>d!=="constant"),c=Gf(o,d=>d.field?d.field:Symbol("independent")).map(([d,h])=>[d,[...h,...a]]).filter(([,d])=>d.some(h=>h.type!=="constant")),l=new Map(c);if(l.size===0)return[];const u=d=>d.sort(([h],[p])=>h.localeCompare(p));return Array.from(l).map(([,d])=>{const p=rB(d).sort((v,g)=>g.length-v.length).map(v=>({combination:v,option:v.map(g=>[g.name,NY(g)])}));for(const{option:v,combination:g}of p)if(!v.every(y=>y[1]==="constant")&&v.every(y=>y[1]==="discrete"||y[1]==="constant"))return["legendCategory",g];for(const[v,g]of aB)for(const{option:y,combination:m}of p)if(g.some(b=>L_(u(b),u(y))))return[v,m];return null}).filter(In)}function NY(t){const{type:e}=t;return typeof e!="string"?null:e in AY?"continuous":e in PY?"discrete":e in TY?"distribution":e in CY?"constant":null}function IY(t,e){return t.map(n=>{const{name:r}=n;if(RW(e)||XO(e)||ac(e)&&(is(e)||Pl(e)))return null;if(r.startsWith("x"))return is(e)?["axisArc",[n]]:Pl(e)?["axisLinear",[n]]:[ac(e)?"axisY":"axisX",[n]];if(r.startsWith("y"))return is(e)?["axisLinear",[n]]:Pl(e)?["axisArc",[n]]:[ac(e)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(IW(e))return["axisRadar",[n]];if(!is(e))return["axisY",[n]]}return null}).filter(In)}function jY(t,e){const n=t.filter(r=>EY(r));return[...LY(n,e),...IY(n,e)]}function Jv(t){const e=Qi(t,"polar");if(e.length){const r=e[e.length-1],{startAngle:i,endAngle:a}=N_(r);return[i,a]}const n=Qi(t,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=I_(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function DY(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}function BY(t,e,n,r,i){const{name:a}=n[0];if(t==="axisRadar"){const o=r.filter(f=>f.name.startsWith("position")),s=DY(a);if(a===o.slice(-1)[0].name||s===null)return[null,null];const[c,l]=Jv(i);return["center",(l-c)/(o.length-1)*s+c]}if(t==="axisY"&&LW(i))return ac(i)?["center","horizontal"]:["center","vertical"];if(t==="axisLinear"){const[o]=Jv(i);return["center",o]}return t==="axisArc"?e[0]==="inner"?["inner",null]:["outer",null]:is(i)?["center",null]:Pl(i)?["center",null]:t==="axisX"&&NW(i)||t==="axisX"&&jW(i)?["top",null]:e}function FY(t,e,n,r,i,a,o){const[s]=Jv(o),c=[r.position||e,s!=null?s:n];return typeof t=="string"&&t.startsWith("axis")?BY(t,c,i,a,o):typeof t=="string"&&t.startsWith("legend")&&is(o)&&r.position==="center"?["center","vertical"]:c}function zY(t,e,n=[]){return t==="x"?ac(n)?`${e}Y`:`${e}X`:t==="y"?ac(n)?`${e}X`:`${e}Y`:null}function GY(t,e,n){const[,r]=Xn("component",n),{coordinates:i}=t;function a(o,s,c,l){const u=zY(s,o,i);if(!l||!u)return;const{props:f}=r(u),{defaultPosition:d,defaultSize:h,defaultOrder:p,defaultCrossPadding:[v]}=f;return Object.assign(Object.assign({position:d,defaultSize:h,order:p,type:u,crossPadding:v},l),{scales:[c]})}return e.filter(o=>o.slider||o.scrollbar).flatMap(o=>{const{slider:s,scrollbar:c,name:l}=o;return[a("slider",l,o,s),a("scrollbar",l,o,c)]}).filter(o=>!!o)}function Qw(t,e,n,r,i,a){const{type:o}=t;if(!["left","right","bottom","top"].includes(r)||typeof o!="string")return;const c=o;return(()=>c.startsWith("axis")?VY:c.startsWith("group")?WY:c.startsWith("legendContinuous")?XY:c==="legendCategory"?UY:c.startsWith("slider")?$Y:c==="title"?YY:c.startsWith("scrollbar")?HY:()=>{})()(t,e,n,r,i,a)}function WY(t,e,n,r,i,a){const{children:o}=t,s=Mn(o,l=>l.crossPadding);o.forEach(l=>l.crossPadding=s),o.forEach(l=>Qw(l,e,n,r,i,a));const c=Mn(o,l=>l.size);t.size=c,o.forEach(l=>l.size=c)}function HY(t,e,n,r,i,a){const{trackSize:o=6}=Dt({},i.scrollbar,t);t.size=o}function YY(t,e,n,r,i,a){const o=Dt({},i.title,t),{title:s,subtitle:c,spacing:l=0}=o,u=po(o,["title","subtitle","spacing"]);if(s){const f=fe(u,"title"),d=Pd(s,f);t.size=d.height}if(c){const f=fe(u,"subtitle"),d=Pd(c,f);t.size+=l+d.height}}function $Y(t,e,n,r,i,a){const o=()=>{const{slider:u}=i;return Dt({},u,t)},{trackSize:s,handleIconSize:c}=o(),l=Math.max(s,c*2.4);t.size=l}function VY(t,e,n,r,i,a){t.transform=t.transform||[{type:"hide"}];const o=r==="left"||r==="right",s=Jw(t,r,i),{tickLength:c=0,labelSpacing:l=0,titleSpacing:u=0,labelAutoRotate:f}=s,d=po(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),h=Ed(t,a),p=Ad(d,h),v=c+l;if(p&&p.length){const y=Mn(p,b=>b.width),m=Mn(p,b=>b.height);if(o)t.size=y+v;else{const{tickFilter:b,labelTransform:_}=t;KY(h,p,e,n,b)&&!_&&f!==!1&&f!==null?(t.labelTransform="rotate(90)",t.size=y+v):t.size=m+v}}else t.size=c;const g=Td(d);g&&(o?t.size+=u+g.width:t.size+=u+g.height)}function XY(t,e,n,r,i,a){const s=(()=>{const{legendContinuous:_}=i;return Dt({},_,t)})(),{labelSpacing:c=0,titleSpacing:l=0}=s,u=po(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=fe(u,"ribbon"),{size:h}=d,p=fe(u,"handleIcon"),{size:v}=p,g=Math.max(h,v*2.4);t.size=g;const y=Ed(t,a),m=Ad(u,y);if(m){const _=f?"width":"height",O=Mn(m,w=>w[_]);t.size+=O+c}const b=Td(u);b&&(f?t.size=Math.max(t.size,b.width):t.size+=l+b.height)}function UY(t,e,n,r,i,a){const s=(()=>{const{legendCategory:k}=i,{title:R}=t,[D,B]=Array.isArray(R)?[R,void 0]:[void 0,R];return Dt({title:D},k,Object.assign(Object.assign({},t),{title:B}))})(),{itemSpacing:c,itemMarkerSize:l,titleSpacing:u,rowPadding:f,colPadding:d,maxCols:h=1/0,maxRows:p=1/0}=s,v=po(s,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:y}=t,m=k=>Math.min(k,p),b=k=>Math.min(k,h),_=r==="left"||r==="right",O=y===void 0?e+(_?0:n[0]+n[1]):y,w=Td(v),M=Ed(t,a),E=Ad(v,M,"itemLabel"),A=Math.max(E[0].height,l)+f,P=(k,R=0)=>l+k+c[0]+R;_?(()=>{let k=-1/0,R=0,D=1,B=0,F=-1/0,z=-1/0;const Y=w?w.height:0,q=O-Y;for(const{width:rt}of E){const st=P(rt);k=Math.max(k,st),R+A>q?(D++,F=Math.max(F,B),z=Math.max(z,R),B=1,R=A):(R+=A,B++)}D<=1&&(F=B,z=R),t.size=k*b(D),t.length=z+Y,Dt(t,{cols:b(D),gridRow:F})})():typeof g=="number"?(()=>{const k=Math.ceil(E.length/g),R=Mn(E,D=>P(D.width))*g;t.size=A*m(k)-f,t.length=Math.min(R,O)})():(()=>{let k=1,R=0,D=-1/0;for(const{width:B}of E){const F=P(B,d);R+F>O?(D=Math.max(D,R),R=F,k++):R+=F}k===1&&(D=R),t.size=A*m(k)-f,t.length=D})(),w&&(_?t.size=Math.max(t.size,w.width):t.size+=u+w.height)}function Ed(t,e){const[n]=Xn("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(s=>s.type!=="constant"&&s.type!=="identity");return i!==void 0&&(o.tickCount=i),a!==void 0&&(o.tickMethod=a),n(o)}function Ad(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=po(t,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=qY(e,r,i),c=fe(o,n),l=s.map((d,h)=>Object.fromEntries(Object.entries(c).map(([p,v])=>[p,typeof v=="function"?v(d,h):v]))),u=s.map((d,h)=>{const p=l[h];return Pd(d,p)});if(!l.some(d=>d.transform)){const d=s.map((h,p)=>p);t.indexBBox=new Map(d.map(h=>[h,[s[h],u[h]]]))}return u}function Td(t){const e=l=>l===!1||l===null,{title:n}=t,r=po(t,["title"]);if(e(n)||n===void 0)return null;const i=fe(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:Pd(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function Jw(t,e,n){const{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${J0(e)}`]:s}=n;return Dt({title:i},o,s,Object.assign(Object.assign({},t),{title:a}))}function tS(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function qY(t,e,n){const i=tS(t,n).map(o=>typeof o=="number"?$f(o):o),a=e?typeof e=="string"?oo(e):e:t.getFormatter?t.getFormatter():o=>`${o}`;return i.map(a)}function ZY(t,e){return t.getBandWidth?t.getBandWidth(e)/2:0}function KY(t,e,n,r,i){if(Di(e,h=>h.width)>n)return!0;const o=t.clone();o.update({range:[0,n]});const s=tS(t,i),c=s.map(h=>o.map(h)+ZY(o,h)),l=s.map((h,p)=>p),u=-r[0],f=n+r[1],d=(h,p)=>{const{width:v}=p;return[h-v/2,h+v/2]};for(let h=0;hf)return!0;const y=c[h+1];if(y){const[m]=d(y,e[h+1]);if(g>m)return!0}}return!1}function Pd(t,e){const n=QY(t),{filter:r}=e,i=po(e,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function QY(t){return t instanceof $r?t:new Zi({style:{text:`${t}`}})}function Ei(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function fr(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function JY(t){const e=t.find(({type:n})=>n==="axisZ");if(e){const n=t.find(({type:i})=>i==="axisX");n.plane="xy";const r=t.find(({type:i})=>i==="axisY");r.plane="xy",e.plane="yz",e.origin=[n.bbox.x,n.bbox.y,0],e.eulerAngles=[0,-90,0],e.bbox.x=n.bbox.x,e.bbox.y=n.bbox.y,t.push(Object.assign(Object.assign({},n),{plane:"xz",showLabel:!1,showTitle:!1,origin:[n.bbox.x,n.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},r),{plane:"yz",showLabel:!1,showTitle:!1,origin:[r.bbox.x+r.bbox.width,r.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},e),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]}))}}function t$(t,e,n,r){var i,a;const{width:o,height:s,depth:c,x:l=0,y:u=0,z:f=0,inset:d=(i=n.inset)!==null&&i!==void 0?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:v=d,insetRight:g=d,margin:y=(a=n.margin)!==null&&a!==void 0?a:0,marginLeft:m=y,marginBottom:b=y,marginTop:_=y,marginRight:O=y,padding:w=n.padding,paddingBottom:M=w,paddingLeft:E=w,paddingRight:A=w,paddingTop:P=w}=n$(t,e,n,r),C=1/4,j=(ue,we,Ue,ze,Je)=>{const{marks:hn}=e;if(hn.length===0)return[ze,Je];if(ue-ze-Je-ue*C>0)return[ze,Je];const mr=ue*(1-C);return[we==="auto"?mr*ze/(ze+Je):ze,Ue==="auto"?mr*Je/(ze+Je):Je]},N=ue=>ue==="auto"?20:ue!=null?ue:20,k=N(P),R=N(M),D=eS(t,s-k-R,[k+_,R+b],["left","right"],e,n,r),{paddingLeft:B,paddingRight:F}=D,z=o-m-O,[Y,q]=j(z,E,A,B,F),rt=z-Y-q,st=eS(t,rt,[Y+m,q+O],["bottom","top"],e,n,r),{paddingTop:At,paddingBottom:Yt}=st,qt=s-b-_,[Rt,Lt]=j(qt,M,P,Yt,At),le=qt-Rt-Lt;return{width:o,height:s,depth:c,insetLeft:h,insetTop:p,insetBottom:v,insetRight:g,innerWidth:rt,innerHeight:le,paddingLeft:Y,paddingRight:q,paddingTop:Lt,paddingBottom:Rt,marginLeft:m,marginBottom:b,marginTop:_,marginRight:O,x:l,y:u,z:f}}function e$(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=16,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function n$(t,e,n,r){const{coordinates:i}=e;if(!is(i)&&!Pl(i))return e;const a=t.filter(y=>typeof y.type=="string"&&y.type.startsWith("axis"));if(a.length===0)return e;const o=a.map(y=>{const m=y.type==="axisArc"?"arc":"linear";return Jw(y,m,n)}),s=Mn(o,y=>{var m;return(m=y.labelSpacing)!==null&&m!==void 0?m:0}),c=a.flatMap((y,m)=>{const b=o[m],_=Ed(y,r);return Ad(b,_)}).filter(In),l=Mn(c,y=>y.height)+s,u=a.flatMap((y,m)=>{const b=o[m];return Td(b)}).filter(y=>y!==null),f=u.length===0?0:Mn(u,y=>y.height),{inset:d=l,insetLeft:h=d,insetBottom:p=d,insetTop:v=d+f,insetRight:g=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:v,insetRight:g})}function eS(t,e,n,r,i,a,o){const s=Kn(t,p=>p.position),{padding:c=a.padding,paddingLeft:l=c,paddingRight:u=c,paddingBottom:f=c,paddingTop:d=c}=i,h={paddingBottom:f,paddingLeft:l,paddingTop:d,paddingRight:u};for(const p of r){const v=`padding${J0(EO(p))}`,g=s.get(p)||[],y=h[v],m=A=>{A.size===void 0&&(A.size=A.defaultSize)},b=A=>{A.type==="group"?(A.children.forEach(m),A.size=Mn(A.children,P=>P.size)):A.size=A.defaultSize},_=A=>{A.size||(y!=="auto"?b(A):(Qw(A,e,n,p,a,o),m(A)))},O=A=>{A.type.startsWith("axis")&&A.labelAutoHide===void 0&&(A.labelAutoHide=!0)},w=p==="bottom"||p==="top",M=Ei(g,A=>A.order),E=g.filter(A=>A.type.startsWith("axis")&&A.order==M);if(E.length&&(E[0].crossPadding=0),typeof y=="number")g.forEach(m),g.forEach(O);else if(g.length===0)h[v]=0;else{const A=w?e+n[0]+n[1]:e,P=Kw(g,A);P.forEach(_);const C=P.reduce((j,{size:N,crossPadding:k=12})=>j+N+k,0);h[v]=C}}return h}function r$(t,e,n){const r=Kn(t,w=>`${w.plane||"xy"}-${w.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y,height:m,width:b,depth:_}=n,O={xy:tg({width:b,height:m,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y}),yz:tg({width:_,height:m,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:_,innerHeight:m,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:tg({width:b,height:_,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:_,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[w,M]of r.entries()){const[E,A]=w.split("-"),P=O[E][A],[C,j]=k_(M,N=>typeof N.type!="string"?!1:!!(A==="center"||N.type.startsWith("axis")&&["inner","outer"].includes(A)));C.length&&i$(C,e,P,A),j.length&&h$(M,e,P)}}function tg({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:s,marginBottom:c,marginRight:l,innerHeight:u,innerWidth:f,insetBottom:d,insetLeft:h,insetRight:p,insetTop:v}){const g=n+o,y=i+s,m=r+l,b=a+c,_=t-o-l,O=[g+h,y+v,f-h-p,u-v-d,"center",null,null];return{top:[g,0,f,y,"vertical",!0,fr,o,_],right:[t-m,y,m,u,"horizontal",!1,fr],bottom:[g,e-b,f,b,"vertical",!1,fr,o,_],left:[0,y,g,u,"horizontal",!0,fr],"top-left":[g,0,f,y,"vertical",!0,fr],"top-right":[g,0,f,y,"vertical",!0,fr],"bottom-left":[g,e-b,f,b,"vertical",!1,fr],"bottom-right":[g,e-b,f,b,"vertical",!1,fr],center:O,inner:O,outer:O}}function i$(t,e,n,r){const[i,a]=k_(t,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));a$(i,e,n,r),p$(a,e,n)}function a$(t,e,n,r){r==="center"?oB(e)?d$(t,e,n,r):Gn(e)?c$(t,e,n):dl(e)&&l$(t,e,n,t[0].orientation):r==="inner"?o$(t,e,n):r==="outer"&&s$(t,e,n)}function o$(t,e,n){const[r,i,,a]=n,[o,s]=e.getCenter(),[c]=Vf(e),l=a/2,u=c*l,f=o-u,d=s-u;for(let h=0;hu%2===0).map(l=>l+r);for(let l=0;lu%2===1).map(l=>l+i);for(let l=0;ll==null?void 0:l(A.order,P.order));const _=A=>A==="title"||A==="group"||A.startsWith("legend"),O=(A,P,C)=>C===void 0?P:_(A)?C:P,w=(A,P,C)=>C===void 0?P:_(A)?C:P,M=c?h+y:h;for(let A=0,P=M;AA.type==="group");for(const A of E){const{bbox:P,children:C}=A,j=P[m],N=j/C.length,k=C.reduce((z,Y)=>{var q;const rt=(q=Y.layout)===null||q===void 0?void 0:q.justifyContent;return rt||z},"flex-start"),R=C.map((z,Y)=>{const{length:q=N,padding:rt=0}=z;return q+(Y===C.length-1?0:rt)}),D=Di(R),B=j-D,F=k==="flex-start"?0:k==="center"?B/2:B;for(let z=0,Y=P[p]+F;zE$(o)?o:{type:A$(i,o),value:o});return[t,Object.assign(Object.assign({},e),{encode:a})]}function b$(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=so(r,(a,o)=>{const{type:s}=a;return s!=="constant"||MY(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function x$(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:a}=n,o=R$(a),s=so(r,c=>o(i,c));return[t,Object.assign(Object.assign({},e),{encode:s})]}function _$(t,e,n){const{tooltip:r={}}=e;return ka(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:cl(r)&&nS(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function O$(t,e,n){const{data:r,encode:i,tooltip:a={}}=e;if(ka(a))return[t,e];const o=f=>{if(!f)return f;if(typeof f=="string")return t.map(d=>({name:f,value:r[d][f]}));if(cl(f)){const{field:d,channel:h,color:p,name:v=d,valueFormatter:g=w=>w}=f,y=typeof g=="string"?oo(g):g,m=h&&i[h],b=m&&i[h].field,_=v||b||h,O=[];for(const w of t){const M=d?r[w][d]:m?i[h].value[w]:null;O[w]={name:_,color:p,value:y(M)}}return O}if(typeof f=="function"){const d=[];for(const h of t){const p=f(r[h],h,r,i);cl(p)?d[h]=p:d[h]={value:p}}return d}return f},{title:s,items:c=[]}=a,l=uc(a,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(c)?c.map(o):[]},l);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function w$(t,e,n){const{encode:r}=e,i=uc(e,["encode"]);if(!r)return[t,e];const a=Object.entries(r),o=a.filter(([,c])=>{const{value:l}=c;return Array.isArray(l[0])}).flatMap(([c,l])=>{const u=[[c,new Array(t.length).fill(void 0)]],{value:f}=l,d=uc(l,["value"]);for(let h=0;h[h,Object.assign({type:"column",value:p},d)])}),s=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:s})]}function S$(t,e,n){const{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,s=(l,u)=>{if(typeof l=="boolean")return l?{}:null;const f=l[u];return f===void 0||f?f:null},c=typeof r=="object"?Array.from(new Set(["x","y",...Object.keys(r)])):["x","y"];return Dt(e,{scale:Object.assign(Object.assign({},Object.fromEntries(c.map(l=>{const u=s(o,l);return[l,Object.assign({guide:s(r,l),slider:s(a,l),scrollbar:u},u&&{ratio:u.ratio===void 0?.5:u.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[t,e]}function M$(t,e,n){const{animate:r}=e;return r||r===void 0?[t,e]:(Dt(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e])}function E$(t){if(typeof t!="object"||t instanceof Date||t===null)return!1;const{type:e}=t;return In(e)}function A$(t,e){return typeof e=="function"?"transform":typeof e=="string"&&T$(t,e)?"field":"constant"}function T$(t,e){return Array.isArray(t)?t.some(n=>n[e]!==void 0):!1}function P$(t){if((0,xr.Z)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};const{type:e="inline"}=t,n=uc(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}var iS=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},C$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iIn(h)),h=>h.map(([p,v])=>Object.assign({name:p},v)),([h])=>{var p;const v=(p=/([^\d]+)\d*$/.exec(h))===null||p===void 0?void 0:p[1],g=u.find(y=>y.name===v);return g!=null&&g.independent?h:v}),d=u.filter(h=>{const{name:p,required:v}=h;if(f.find(([g])=>g===p))return!0;if(v)throw new Error(`Missing encoding for channel: ${p}.`);return!1}).flatMap(h=>{const{name:p,scale:v,scaleKey:g,range:y,quantitative:m,ordinal:b}=h;return f.filter(([O])=>O.startsWith(p)).map(([O,w],M)=>{const E=w.some(B=>B.visual),A=w.some(B=>B.constant),P=s[O]||{},{independent:C=!1,key:j=g||O,type:N=A?"constant":E?"identity":v}=P,k=C$(P,["independent","key","type"]),R=N==="constant",D=R?void 0:y;return{name:O,values:w,scaleKey:C||R?Symbol("independent"):j,scale:Object.assign(Object.assign({type:N,range:D},k),{quantitative:m,ordinal:b})}})});return[a,Object.assign(Object.assign({},e),{index:i,channels:d,tooltip:l})]})}function R$(t){const[e]=Xn("encode",t);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:e(r)(n),field:N$(r)})}function L$(t,e,n){return iS(this,void 0,void 0,function*(){const{library:r}=n,[i]=Xn("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:s=[]}=t,c=[g$,rS,y$,m$,b$,x$,w$,M$,S$,_$,...a.map(i),...s.map(i),...o.map(i),O$];let l=[],u=t;for(const f of c)[l,u]=yield f(l,u,n);return[l,u]})}function N$(t){const{type:e,value:n}=t;return e==="field"&&typeof n=="string"?n:null}var Da=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},vo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var R;return(R=/mark\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(In)),l=new Set(Object.keys(n).map(k=>{var R;return(R=/component\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(In)),u=k=>{const{type:R}=k;if(typeof R=="function"){const{props:D={}}=R,{composite:B=!0}=D;if(B)return"mark"}return typeof R!="string"?R:c.has(R)||l.has(R)?"mark":R},f=k=>u(k)==="mark",d=k=>u(k)==="standardView",h=k=>{const{type:R}=k;return typeof R!="string"?!1:!!l.has(R)},p=k=>{if(d(k))return[k];const R=u(k);return o({type:R,static:h(k)})(k)},v=[],g=new Map,y=new Map,m=[t],b=[];for(;m.length;){const k=m.shift();if(d(k)){const R=y.get(k),[D,B]=R?cS(R,k,n):yield oS(k,n);g.set(D,k),v.push(D);const F=B.flatMap(p).map(z=>VO(z,n));if(m.push(...F),F.every(d)){const z=yield Promise.all(F.map(Y=>sS(Y,n)));iY(z);for(let Y=0;Yk.key).join(k=>k.append("g").attr("className",$0).attr("id",R=>R.key).call(aS).each(function(R,D,B){ig(R,je(B),w,n,r),_.set(R,B)}),k=>k.call(aS).each(function(R,D,B){ig(R,je(B),w,n,r),O.set(R,B)}),k=>k.each(function(R,D,B){const F=B.nameInteraction.values();for(const z of F)z.destroy()}).remove());const M=k=>Array.from(k.entries()).map(([R,D])=>{const B=new Map,F=(q,rt=st=>st)=>B.set(q,rt),z=g.get(R),Y=j$(je(D),z,n,r);return{view:R,container:D,options:z,setState:F,update:q=>Da(this,void 0,void 0,function*(){const st=Q0(Array.from(B.values()))(z);return yield Y(st,q)})}}),E=M(_);for(const k of E){const{options:R}=k,D=new Map;k.container.nameInteraction=D;for(const B of Cd(R)){const[F,z]=B;if(z){const q=rg(k.view,F,z,s)(k,E,r.emitter);D.set(F,{destroy:q})}}}const A=M(O);for(const k of A){const{options:R,container:D}=k,B=D.nameInteraction;for(const F of Cd(R)){const[z,Y]=F,q=B.get(z);if(q&&((i=q.destroy)===null||i===void 0||i.call(q)),Y){const st=rg(k.view,z,Y,s)(k,A,r.emitter);B.set(z,{destroy:st})}}}const{width:P,height:C}=t,j=[];for(const k of b){const R=new Promise(D=>Da(this,void 0,void 0,function*(){for(const B of k){const F=Object.assign({width:P,height:C},B);yield ng(F,e,n,r)}D()}));j.push(R)}r.views=v,(a=r.animations)===null||a===void 0||a.forEach(k=>k==null?void 0:k.cancel()),r.animations=w,r.emitter.emit(Sn.AFTER_PAINT);const N=w.filter(In).map(K$).map(k=>k.finished);return Promise.all([...N,...j])})}function aS(t){t.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function I$(t){const[,e]=Xn("interaction",t);return n=>{const[r,i]=n;try{return[r,e(r)]}catch(a){return[r,i.type]}}}function j$(t,e,n,r){const i=I$(n),a=c=>c[1]&&c[1].props&&c[1].props.reapplyWhenUpdate,s=Cd(e).map(i).filter(a).map(c=>c[0]);return(c,l)=>Da(this,void 0,void 0,function*(){const u=[],[f,d]=yield oS(c,n);ig(f,t,u,n,r);for(const h of s.filter(p=>p!==l))D$(h,t,c,f,n,r);for(const h of d)ng(h,t,n,r);return{options:c,view:f}})}function D$(t,e,n,r,i,a){var o;const[s]=Xn("interaction",i),l=e.node().nameInteraction,u=Cd(n).find(([v])=>v===t),f=l.get(t);if(!f||((o=f.destroy)===null||o===void 0||o.call(f),!u[1]))return;const d=rg(r,t,u[1],s),h={options:n,view:r,container:e.node(),update:v=>Promise.resolve(v)},p=d(h,[],a.emitter);l.set(t,{destroy:p})}function oS(t,e){return Da(this,void 0,void 0,function*(){const n=yield F$(t,e),r=B$(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];const i=VO(r,e),a=yield sS(i,e);return cS(a,i,e)})}function B$(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=vo(t,["coordinate","interaction","style","marks"]),o=i.map(d=>d.coordinate||{}),s=i.map(d=>d.interaction||{}),c=i.map(d=>d.viewStyle||{}),l=[...o,e].reduceRight((d,h)=>Dt(d,h),{}),u=[n,...s].reduce((d,h)=>Dt(d,h),{}),f=[...c,r].reduce((d,h)=>Dt(d,h),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:l,interaction:u,style:f})}function F$(t,e){return Da(this,void 0,void 0,function*(){const[n,r]=Xn("mark",e),i=new Set(Object.keys(e).map(d=>{var h;return(h=/component\.(.*)/.exec(d))===null||h===void 0?void 0:h[1]}).filter(In)),{marks:a}=t,o=[],s=[],c=[...a],{width:l,height:u}=e$(t),f={options:t,width:l,height:u};for(;c.length;){const[d]=c.splice(0,1),h=yield dS(d,e),{type:p=$s("G2Mark type is required."),key:v}=h;if(i.has(p))s.push(h);else{const{props:g={}}=r(p),{composite:y=!0}=g;if(!y)o.push(h);else{const{data:m}=h,b=Object.assign(Object.assign({},h),{data:m&&(Array.isArray(m)?m:m.value)}),_=yield n(b,f),O=Array.isArray(_)?_:[_];c.unshift(...O.map((w,M)=>Object.assign(Object.assign({},w),{key:`${v}-${M}`})))}}}return Object.assign(Object.assign({},t),{marks:o,components:s})})}function sS(t,e){return Da(this,void 0,void 0,function*(){const[n]=Xn("theme",e),[,r]=Xn("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,s=n(fS(i)),c=new Map;for(const u of a){const{type:f}=u,{props:d={}}=r(f),h=yield k$(u,d,e);if(h){const[p,v]=h;c.set(p,v)}}const l=Kn(Array.from(c.values()).flatMap(u=>u.channels),({scaleKey:u})=>u);for(const u of l.values()){const f=u.reduce((b,{scale:_})=>Dt(b,_),{}),{scaleKey:d}=u[0],{values:h}=u[0],p=Array.from(new Set(h.map(b=>b.field).filter(In))),v=Dt({guide:{title:p.length===0?void 0:p},field:p[0]},f),{name:g}=u[0],y=u.flatMap(({values:b})=>b.map(_=>_.value)),m=Object.assign(Object.assign({},tY(g,y,v,o,s,e)),{key:d});u.forEach(b=>b.scale=m)}return c})}function rg(t,e,n,r){const i=t.theme,a=typeof e=="string"?i[e]||{}:{};return r(Dt(a,Object.assign({type:e},n)))}function cS(t,e,n){const[r]=Xn("mark",n),[i]=Xn("theme",n),[a]=Xn("labelTransform",n),{key:o,frame:s=!1,theme:c,clip:l,style:u={},labelTransform:f=[]}=e,d=i(fS(c)),h=Array.from(t.values()),p=nY(h,e),v=RY(kY(eV(Array.from(p),h,t),e,n)),g=t$(v,e,d,n),y=kW(g,e,n),m=s?Dt({mainLineWidth:1,mainStroke:"#000"},u):u;r$(Kw(v),y,g),JY(v);const b={};for(const w of v){const{scales:M=[]}=w,E=[];for(const A of M){const{name:P}=A,C=zw(A,n);E.push(C),Fw(b,{[P]:C})}w.scaleInstances=E}const _=[];for(const[w,M]of t.entries()){const{children:E,dataDomain:A,modifier:P,key:C}=w,{index:j,channels:N,tooltip:k}=M,R=Object.fromEntries(N.map(({name:Lt,scale:le})=>[Lt,le])),D=so(R,Lt=>zw(Lt,n));Fw(b,D);const B=eY(N,D),F=r(w),[z,Y,q]=W$(F(j,D,B,y)),rt=A||z.length,st=P?P(Y,rt,g):[],At=Lt=>{var le,ue;return(ue=(le=k.title)===null||le===void 0?void 0:le[Lt])===null||ue===void 0?void 0:ue.value},Yt=Lt=>k.items.map(le=>le[Lt]),qt=z.map((Lt,le)=>{const ue=Object.assign({points:Y[le],transform:st[le],index:Lt,markKey:C,viewKey:o},k&&{title:At(Lt),items:Yt(Lt)});for(const[we,Ue]of Object.entries(B))ue[we]=Ue[Lt],q&&(ue[`series${ao(we)}`]=q[le].map(ze=>Ue[ze]));return q&&(ue.seriesIndex=q[le]),q&&k&&(ue.seriesItems=q[le].map(we=>Yt(we)),ue.seriesTitle=q[le].map(we=>At(we))),ue});M.data=qt,M.index=z;const Rt=E==null?void 0:E(qt,D,g);_.push(...Rt||[])}return[{layout:g,theme:d,coordinate:y,markState:t,key:o,clip:l,scale:b,style:m,components:v,labelTransform:Q0(f.map(a))},_]}function ig(t,e,n,r,i){return Da(this,void 0,void 0,function*(){const{components:a,theme:o,layout:s,markState:c,coordinate:l,key:u,style:f,clip:d,scale:h}=t,{x:p,y:v,width:g,height:y}=s,m=vo(s,["x","y","width","height"]),b=["view","plot","main","content"],_=b.map((F,z)=>z),O=["a","margin","padding","inset"],w=b.map(F=>__(Object.assign({},o.view,f),F)),M=O.map(F=>fe(m,F)),E=F=>F.style("x",z=>N[z].x).style("y",z=>N[z].y).style("width",z=>N[z].width).style("height",z=>N[z].height).each(function(z,Y,q){nV(je(q),w[z])});let A=0,P=0,C=g,j=y;const N=_.map(F=>{const z=M[F],{left:Y=0,top:q=0,bottom:rt=0,right:st=0}=z;return A+=Y,P+=q,C-=Y+st,j-=q+rt,{x:A,y:P,width:C,height:j}});e.selectAll(ya(o_)).data(_.filter(F=>In(w[F])),F=>b[F]).join(F=>F.append("rect").attr("className",o_).style("zIndex",-2).call(E),F=>F.call(E),F=>F.remove());const k=V$(c),R=k?{duration:k[1]}:!1;for(const[,F]of Gf(a,z=>`${z.type}-${z.position}`))F.forEach((z,Y)=>z.index=Y);const D=e.selectAll(ya(a_)).data(a,F=>`${F.type}-${F.position}-${F.index}`).join(F=>F.append("g").style("zIndex",({zIndex:z})=>z||-1).attr("className",a_).append(z=>Zw(Dt({animate:R,scale:h},z),l,o,r,c)),F=>F.transition(function(z,Y,q){const{preserve:rt=!1}=z;if(rt)return;const st=Zw(Dt({animate:R,scale:h},z),l,o,r,c),{attributes:At}=st,[Yt]=q.childNodes;return Yt.update(At)})).transitions();n.push(...D.flat().filter(In));const B=e.selectAll(ya(Df)).data([s],()=>u).join(F=>F.append("rect").style("zIndex",0).style("fill","transparent").attr("className",Df).call(hS).call(vS,Array.from(c.keys())).call(gS,d),F=>F.call(vS,Array.from(c.keys())).call(z=>k?tV(z,k):hS(z)).call(gS,d)).transitions();n.push(...B.flat());for(const[F,z]of c.entries()){const{data:Y}=z,{key:q,class:rt,type:st}=F,At=e.select(`#${q}`),Yt=q$(F,z,t,r,i),qt=Z$(F,z,t,r),Rt=Q$(F,z,t,r),Lt=J$(F,z,t,r),le=X$(e,At,rt,"element"),ue=At.selectAll(ya(Ca)).selectFacetAll(le).data(Y,we=>we.key,we=>we.groupKey).join(we=>we.append(Yt).attr("className",Ca).attr("markType",st).transition(function(Ue,ze,Je){return qt(Ue,[Je])}),we=>we.call(Ue=>{const ze=Ue.parent(),Je=G7(hn=>{const[xn,Un]=hn.getBounds().min;return[xn,Un]});Ue.transition(function(hn,xn,Un){U$(Un,ze,Je);const mr=Yt(hn,xn),xi=Rt(hn,[Un],[mr]);return xi!==null||(Un.nodeName===mr.nodeName&&mr.nodeName!=="g"?tv(Un,mr):(Un.parentNode.replaceChild(mr,Un),mr.className=Ca,mr.markType=st,mr.__data__=Un.__data__)),xi}).attr("markType",st).attr("className",Ca)}),we=>we.each(function(Ue,ze,Je){Je.__removed__=!0}).transition(function(Ue,ze,Je){return Lt(Ue,[Je])}).remove(),we=>we.append(Yt).attr("className",Ca).attr("markType",st).transition(function(Ue,ze,Je){const{__fromElements__:hn}=Je,xn=Rt(Ue,hn,[Je]);return new _r(hn,null,Je.parentNode).transition(xn).remove(),xn}),we=>we.transition(function(Ue,ze,Je){const xn=new _r([],Je.__toData__,Je.parentNode).append(Yt).attr("className",Ca).attr("markType",st).nodes();return Rt(Ue,[Je],xn)}).remove()).transitions();n.push(...ue.flat())}z$(t,e,n,r,i)})}function z$(t,e,n,r,i){const[a]=Xn("labelTransform",r),{markState:o,labelTransform:s}=t,c=e.select(ya(Y0)).node(),l=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([v,g])=>{const{labels:y=[],key:m}=v,b=$$(v,g,t,r,i),_=e.select(`#${m}`).selectAll(ya(Ca)).nodes().filter(O=>!O.__removed__);return y.flatMap((O,w)=>{const{transform:M=[]}=O,E=vo(O,["transform"]);return _.flatMap(A=>{const P=G$(E,w,A);return P.forEach(C=>{l.set(C,b),u.set(C,O)}),P})})}),d=je(c).selectAll(ya(V0)).data(f,v=>v.key).join(v=>v.append(g=>l.get(g)(g)).attr("className",V0),v=>v.each(function(g,y,m){const _=l.get(g)(g);tv(m,_)}),v=>v.remove()).nodes(),h=Kn(d,v=>u.get(v.__data__)),{coordinate:p}=t;for(const[v,g]of h){const{transform:y=[]}=v;Q0(y.map(a))(g,p)}s&&s(d,p)}function G$(t,e,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,c=Y$(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:c,index:s,points:a,dependentElement:n})];const l=H$(t),u=r.map((f,d)=>Object.assign(Object.assign({},t),{key:`${i[d]}-${e}`,bounds:[a[d]],index:f,points:a,dependentElement:n}));return l?l(u):u}function W$([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let a=0;aIn(c)&&In(l))&&(r.push(o),i.push(s))}return[r,i]}function H$(t){const{selector:e}=t;if(!e)return null;if(typeof e=="function")return e;if(e==="first")return n=>[n[0]];if(e==="last")return n=>[n[n.length-1]];throw new Error(`Unknown selector: ${e}`)}function Y$(t){const e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(o=>{const s=o.effect.getKeyframes();e.attr(s[s.length-1])}),t.parentNode.appendChild(e);const r=e.getLocalBounds();e.destroy();const{min:i,max:a}=r;return[i,a]}function $$(t,e,n,r,i){const[a]=Xn("shape",r),{data:o}=t,{data:s,defaultLabelShape:c}=e,l=s.map(h=>h.points),{theme:u,coordinate:f}=n,d=Object.assign(Object.assign({},i),{document:YO(i),theme:u,coordinate:f});return h=>{const{index:p,points:v}=h,g=o[p],{formatter:y=R=>`${R}`,transform:m,style:b,render:_}=h,O=vo(h,["formatter","transform","style","render"]),w=so(Object.assign(Object.assign({},O),b),R=>lS(R,g,p,o)),{shape:M=c,text:E}=w,A=vo(w,["shape","text"]),P=typeof y=="string"?oo(y):y,C=Object.assign(Object.assign({},A),{text:P(E,g,p,o),datum:g}),j=Object.assign({type:`label.${M}`,render:_},A),N=a(j,d),k=uS(u,"label",M,"label");return N(v,C,k,l)}}function lS(t,e,n,r){return typeof t=="function"?t(e,n,r):typeof t!="string"?t:e[t]!==void 0?e[t]:t}function V$(t){let e=-1/0,n=1/0;for(const[r,i]of t){const{animate:a={}}=r,{data:o}=i,{enter:s={},update:c={},exit:l={}}=a,{type:u,duration:f=300,delay:d=0}=c,{type:h,duration:p=300,delay:v=0}=s,{type:g,duration:y=300,delay:m=0}=l;for(const b of o){const{updateType:_=u,updateDuration:O=f,updateDelay:w=d,enterType:M=h,enterDuration:E=p,enterDelay:A=v,exitDuration:P=y,exitDelay:C=m,exitType:j=g}=b;(_===void 0||_)&&(e=Math.max(e,O+w),n=Math.min(n,w)),(j===void 0||j)&&(e=Math.max(e,P+C),n=Math.min(n,C)),(M===void 0||M)&&(e=Math.max(e,E+A),n=Math.min(n,A))}}return e===-1/0?null:[n,e-n]}function X$(t,e,n,r){return t.node().parentElement.findAll(a=>a.style.facet!==void 0&&a.style.facet===n&&a!==e.node()).flatMap(a=>a.getElementsByClassName(r))}function U$(t,e,n){if(!t.__facet__)return;const r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[s,c]=n(i),l=`translate(${a-s}, ${o-c})`;W7(t,l),e.append(t)}function q$(t,e,n,r,i){const[a]=Xn("shape",r),{data:o}=t,{defaultShape:s,data:c,shape:l}=e,u=c.map(g=>g.points),{theme:f,coordinate:d}=n,{type:h,style:p={}}=t,v=Object.assign(Object.assign({},i),{document:YO(i),coordinate:d,theme:f});return g=>{const{shape:y=s}=p,{shape:m=y,points:b,seriesIndex:_,index:O}=g,w=vo(g,["shape","points","seriesIndex","index"]),M=Object.assign(Object.assign({},w),{index:O}),E=_?_.map(N=>o[N]):o[O],A=_||O,P=so(p,N=>lS(N,E,A,o)),C=l[m]?l[m](P,v):a(Object.assign(Object.assign({},P),{type:pS(t,m)}),v),j=uS(f,h,m,s);return C(b,M,j,u)}}function uS(t,e,n,r){if(typeof e!="string")return;const{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function ag(t,e,n,r,i){var a,o;const[,s]=Xn("shape",i),[c]=Xn("animation",i),{defaultShape:l,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${ao(t)}Animation`,{[p]:v}=((a=u[l])===null||a===void 0?void 0:a.props)||s(pS(e,l)).props,{[t]:g={}}=f,y=((o=e.animate)===null||o===void 0?void 0:o[t])||{},m={coordinate:d};return(b,_,O)=>{const{[`${t}Type`]:w,[`${t}Delay`]:M,[`${t}Duration`]:E,[`${t}Easing`]:A}=b,P=Object.assign({type:w||v},y);if(!P.type)return null;const N=c(P,m)(_,O,Dt(g,{delay:M,duration:E,easing:A}));return Array.isArray(N)?N:[N]}}function Z$(t,e,n,r){return ag("enter",t,e,n,r)}function K$(t){return t.finished.then(()=>{t.cancel()}),t}function Q$(t,e,n,r){return ag("update",t,e,n,r)}function J$(t,e,n,r){return ag("exit",t,e,n,r)}function fS(t={}){if(typeof t=="string")return{type:t};const{type:e="light"}=t,n=vo(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function Cd(t){const e={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=t;return Object.entries(Dt(e,n)).reverse()}function dS(t,e){return Da(this,void 0,void 0,function*(){const n={library:e},{data:r}=t,i=vo(t,["data"]);if(r==null)return t;const[,{data:a}]=yield rS([],{data:r},n);return Object.assign({data:a},i)})}function hS(t){t.style("x",e=>e.paddingLeft+e.marginLeft).style("y",e=>e.paddingTop+e.marginTop).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function tV(t,e){const[n,r]=e;t.transition(function(i,a,o){const{x:s,y:c,width:l,height:u}=o.style,{paddingLeft:f,paddingTop:d,innerWidth:h,innerHeight:p,marginLeft:v,marginTop:g}=i,y=[{x:s,y:c,width:l,height:u},{x:f+v,y:d+g,width:h,height:p}];return o.animate(y,{delay:n,duration:r,fill:"both"})})}function pS(t,e){const{type:n}=t;return typeof e=="string"?`${n}.${e}`:e}function vS(t,e){const n=a=>a.class!==void 0?`${a.class}`:"";t.nodes().length===0||(t.selectAll(ya(i_)).data(e,a=>a.key).join(a=>a.append("g").attr("className",i_).attr("id",o=>o.key).style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.remove()),t.select(ya(Y0)).node())||t.append("g").attr("className",Y0).style("zIndex",0)}function ya(...t){return t.map(e=>`.${e}`).join("")}function gS(t,e){t.node()&&t.style("clipPath",n=>{if(!e)return null;const{paddingTop:r,paddingLeft:i,marginLeft:a,marginTop:o,innerWidth:s,innerHeight:c}=n;return new Xo({style:{x:i+a,y:r+o,width:s,height:c}})})}function eV(t,e,n){var r;for(const[l]of n.entries())if(l.type==="cell")return t.filter(u=>u.name!=="shape");if(e.length!==1||t.some(l=>l.name==="shape"))return t;const{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;const o={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},c={field:((r=t.find(l=>l.name==="color"))===null||r===void 0?void 0:r.field)||null,name:"shape",type:"constant",domain:[],range:[o[i]]};return[...t,c]}function nV(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function yS(t){const e=Dt({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){const a=i.shift();if(a.key===void 0){const s=n.get(a),c=r.get(a),l=s===null?"0":`${s.key}-${c}`;a.key=l}const{children:o=[]}=a;if(Array.isArray(o))for(let s=0;s{},r=i=>{throw i}){const{width:i=640,height:a=480,depth:o=0}=t,s=yS(t),{canvas:c=rV(i,a),emitter:l=new Wp,library:u}=e;e.canvas=c,e.emitter=l;const{width:f,height:d}=c.getConfig();(f!==i||d!==a)&&c.resize(i,a),l.emit(Sn.BEFORE_RENDER);const h=je(c.document.documentElement);return c.ready.then(()=>ng(Object.assign(Object.assign({},s),{width:i,height:a,depth:o}),h,u,e)).then(()=>{if(o){const[p,v]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(p,v,-o/2)}c.requestAnimationFrame(()=>{l.emit(Sn.AFTER_RENDER),n==null||n()})}).catch(p=>{r==null||r(p)}),oV(c.getConfig().container)}function Qht(t,e={},n=()=>{},r=i=>{throw i}){var i;const{width:a=640,height:o=480}=t,s=yS(t),{group:c=new Group,emitter:l=new EventEmitter,library:u}=e;c!=null&&c.parentElement||error("renderToMountedElement can't render chart to unmounted group.");const f=select(c);return e.group=c,e.emitter=l,e.canvas=e.canvas||((i=c==null?void 0:c.ownerDocument)===null||i===void 0?void 0:i.defaultView),l.emit(ChartEvent.BEFORE_RENDER),plot(Object.assign(Object.assign({},s),{width:a,height:o}),f,u,e).then(()=>{var d;(d=e.canvas)===null||d===void 0||d.requestAnimationFrame(()=>{l.emit(ChartEvent.AFTER_RENDER),n==null||n()})}).catch(d=>{r==null||r(d)}),c}function mS(t,e={},n=!1){const{canvas:r,emitter:i}=e;r&&(aV(r),n?r.destroy():r.destroyChildren()),i.off()}function aV(t){const e=t.getRoot().querySelectorAll(`.${$0}`);e==null||e.forEach(n=>{const{nameInteraction:r=new Map}=n;(r==null?void 0:r.size)>0&&Array.from(r==null?void 0:r.values()).forEach(i=>{i==null||i.destroy()})})}function oV(t){return typeof t=="string"?document.getElementById(t):t}const fc=t=>t?parseInt(t):0;function sV(t){const e=getComputedStyle(t),n=t.clientWidth||fc(e.width),r=t.clientHeight||fc(e.height),i=fc(e.paddingLeft)+fc(e.paddingRight),a=fc(e.paddingTop)+fc(e.paddingBottom);return{width:n-i,height:r-a}}function Jht(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=0,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function og(t,e){const n=[t];for(;n.length;){const r=n.shift();e&&e(r);const i=r.children||[];for(const a of i)n.push(a)}}class sg{constructor(e={},n){this.parentNode=null,this.children=[],this.index=0,this.type=n,this.value=e}map(e=n=>n){const n=e(this.value);return this.value=n,this}attr(e,n){return arguments.length===1?this.value[e]:this.map(r=>(r[e]=n,r))}append(e){const n=new e({});return n.children=[],this.push(n),n}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){const e=this.parentNode;if(e){const{children:n}=e,r=n.findIndex(i=>i===this);n.splice(r,1)}return this}getNodeByKey(e){let n=null;return og(this,i=>{e===i.attr("key")&&(n=i)}),n}getNodesByType(e){const n=[];return og(this,i=>{e===i.type&&n.push(i)}),n}getNodeByType(e){let n=null;return og(this,r=>{n||e===r.type&&(n=r)}),n}call(e,...n){return e(this.map(),...n),this}getRoot(){let e=this;for(;e&&e.parentNode;)e=e.parentNode;return e}}var bS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{e=r,t=i}),e,t]}const xV={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function _V(t,e){var n;return(n=t.style[e])!==null&&n!==void 0?n:xV[e]}function lg(t,e,n,r){t.style[e]=n,r&&t.children.forEach(i=>lg(i,e,n,r))}function ug(t){lg(t,"visibility","hidden",!0)}function fg(t){lg(t,"visibility","visible",!0)}function OV(t,e,{key:n=e}){t.prototype[e]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function wV(t,e,{key:n=e}){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,r);const i=[...this.attr(n)||[],r];return this.attr(n,i)}}function SV(t,e,{key:n=e}){t.prototype[e]=function(r,i){if(arguments.length===0)return this.attr(n);if(arguments.length===1&&typeof r!="string")return this.attr(n,r);const a=this.attr(n)||{};return a[r]=arguments.length===1?!0:i,this.attr(n,a)}}function MV(t,e,n){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,{items:r});if(cl(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(e,r);if(r===null||r===!1)return this.attr(e,r);const i=this.attr(e)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(e,i)}}function EV(t,e,{ctor:n}){t.prototype[e]=function(r){const i=this.append(n);return e==="mark"&&(i.type=r),i}}function AV(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function kd(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:i}=r;i==="value"?OV(e,n,r):i==="array"?wV(e,n,r):i==="object"?SV(e,n,r):i==="node"?EV(e,n,r):i==="container"?AV(e,n,r):i==="mix"&&MV(e,n,r)}return e}}function ES(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,{type:"node",ctor:n}]))}const AS={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},TV=Object.assign(Object.assign({},AS),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),PV=Object.assign(Object.assign({},AS),{labelTransform:{type:"array"}});var CV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let Rd=class extends sg{changeData(e){var n;const r=this.getRoot();if(r)return this.attr("data",e),!((n=this.children)===null||n===void 0)&&n.length&&this.children.forEach(i=>{i.attr("data",e)}),r==null?void 0:r.render()}getView(){const e=this.getRoot(),{views:n}=e.getContext();if(n!=null&&n.length)return n.find(r=>r.key===this._key)}getScale(){var e;return(e=this.getView())===null||e===void 0?void 0:e.scale}getScaleByChannel(e){const n=this.getScale();if(n)return n[e]}getCoordinate(){var e;return(e=this.getView())===null||e===void 0?void 0:e.coordinate}getTheme(){var e;return(e=this.getView())===null||e===void 0?void 0:e.theme}getGroup(){const e=this._key;return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}show(){const e=this.getGroup();e&&!e.isVisible()&&fg(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&ug(e)}};Rd=CV([kd(PV)],Rd);var kV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let dg=class extends sg{changeData(e){const n=this.getRoot();if(n)return this.attr("data",e),n==null?void 0:n.render()}getMark(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(!n)return;const{markState:r}=n,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(n)return n==null?void 0:n.scale}getScaleByChannel(e){var n,r;const i=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[e]}getGroup(){const e=this.attr("key");return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}};dg=kV([kd(TV)],dg);const TS={};function tpt(t,e){Object.assign(TS,{[t]:e})}var RV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},LV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{this.forceFit()},300),this._renderer=i||new u_,this._plugins=a||[],this._container=cV(n),this._emitter=new Wp,this._context={library:Object.assign(Object.assign({},o),TS),emitter:this._emitter,canvas:r},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;const e=new Promise((a,o)=>iV(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=bV();return e.then(r).catch(i).then(()=>this._renderTrailing()),n}options(e){if(arguments.length===0)return fV(this);const{type:n}=e;return n&&(this._previousDefinedType=n),mV(this,e,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(e,n,r){return this._emitter.on(e,n,r),this}once(e,n){return this._emitter.once(e,n),this}emit(e,...n){return this._emitter.emit(e,...n),this}off(e,n){return this._emitter.off(e,n),this}clear(){const e=this.options();this.emit(Sn.BEFORE_CLEAR),this._reset(),mS(e,this._context,!1),this.emit(Sn.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(Sn.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),mS(e,this._context,!0),this._container[_S]&&lV(this._container),this.emit(Sn.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:e,height:n}=cg(this.options(),this._container);if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Sn.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Sn.AFTER_CHANGE_SIZE)}),r}changeSize(e,n){if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Sn.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",n);const r=this.render();return r.then(()=>{this.emit(Sn.AFTER_CHANGE_SIZE)}),r}_create(){const{library:e}=this._context,n=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(e).filter(n)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends dg{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(e).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rd{constructor(){super({},o)}};return s=RV([kd(ES(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))kd(ES(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([n])=>n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||e.includes(n))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{const n=this._trailingReject.bind(this);this._trailingReject=null,n(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return n=>{this._rendering=!1,e(n)}}_computedOptions(){const e=this.options(),{key:n=NV}=e,{width:r,height:i,depth:a}=cg(e,this._container);return this._width=r,this._height=i,this._key=n,Object.assign(Object.assign({key:this._key},e),{width:r,height:i,depth:a})}_createCanvas(){const{width:e,height:n}=cg(this.options(),this._container);this._plugins.push(new f_),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new Fx({container:this._container,width:e,height:n,renderer:this._renderer})}_addToTrailing(){var e;return(e=this._trailingResolve)===null||e===void 0||e.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const e=this.options(),{autoFit:n}=e;if(this._hasBindAutoFit){n||this._unbindAutoFit();return}n&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}function jV(t,e){class n extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:e}))}}return n}Pt.enableCSSParsing=!1;var DV=Object.prototype.hasOwnProperty,PS=function(t,e){if(t===null||!io(t))return{};var n={};return Cv(e,function(r){DV.call(t,r)&&(n[r]=t[r])}),n};function CS(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ll(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;t.value=e}function GV(){return this.eachAfter(zV)}var hg=gt(38887);function WV(t,e){var n=-1,r=hg(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.call(e,a,++n,this)}}catch(o){r.e(o)}finally{r.f()}return this}function HV(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function YV(t,e){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;e.value=n})}function XV(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function UV(t){for(var e=this,n=qV(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function qV(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function ZV(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function KV(){return Array.from(this)}function QV(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function JV(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}var kS=gt(13448),tX=kS().mark(RS);function RS(){var t,e,n,r,i,a;return kS().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=this,n=[t];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){s.next=8;break}return s.next=5,t;case 5:if(r=t.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new hc(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(LS)}function eX(){return dc(this).eachBefore(iX)}function nX(t){return t.children}function rX(t){return Array.isArray(t)?t[1]:null}function iX(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function LS(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function hc(t){this.data=t,this.depth=this.height=0,this.parent=null}hc.prototype=dc.prototype=FV({constructor:hc,count:GV,each:WV,eachAfter:YV,eachBefore:HV,find:$V,sum:VV,sort:XV,path:UV,ancestors:ZV,descendants:KV,leaves:QV,links:JV,copy:eX},Symbol.iterator,RS);var aX=function(t,e){if(!ll(t))return t;for(var n=[],r=0;re.value-t.value,as:["x","y"],ignoreParentValue:!0},uX="nodeIndex",Nl="childNodeCount",fX="nodeAncestor",vg="Invalid field: it must be a string!";function dX(t,e){const{field:n,fields:r}=t;if(er(n))return n;if(Dr(n))return console.warn(vg),n[0];if(console.warn(`${vg} will try to get fields instead.`),er(r))return r;if(Dr(r)&&r.length)return r[0];if(e)return e;throw new TypeError(vg)}function hX(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var a,o;i.parent!==n?(n=i.parent,r=0):r+=1;const s=oX((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(c=>e.find(l=>l.name===c.name)||c),({depth:c})=>c>0&&c{e.push(n)});return e}function pX(t,e){e=sX({},lX,e);const n=e.as;if(!Dr(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=dX(e)}catch(c){console.warn(c)}const a=(c=>BV().size(e.size).round(e.round).padding(e.padding)(dc(c).sum(l=>cX(l.children)?e.ignoreParentValue?0:l[r]-G2(l.children,(u,f)=>u+f[r],0):l[r]).sort(e.sort)))(t),o=n[0],s=n[1];return a.each(c=>{var l,u;c[o]=[c.x0,c.x1,c.x1,c.x0],c[s]=[c.y1,c.y1,c.y0,c.y0],c.name=c.name||((l=c.data)===null||l===void 0?void 0:l.name)||((u=c.data)===null||u===void 0?void 0:u.label),c.data.name=c.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete c[f]})}),hX(a)}var vX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var l,u,f,d;if(c.depth===0)return null;let h=c.data.name;const p=[h];let v=Object.assign({},c);for(;v.depth>1;)h=`${(l=v.parent.data)===null||l===void 0?void 0:l.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},PS(c.data,[i])),{[NS]:h,[Ld]:v.data.name}),c);r&&r!==Ld&&(g[r]=c.data[r]||((d=(f=c.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(c=>Object.assign(Object.assign({},c),{x:c.x.slice(0,2),y:[c.y[2],c.y[0]],fillOpacity:Math.pow(.85,c.depth)}))}const IS={id:pc,encode:{x:"x",y:"y",key:NS,color:Ld,value:"value"},axis:{x:!1,y:!1},style:{[gg]:pc,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Nl]:Nl,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},jS=t=>{const{encode:e,data:n=[],legend:r}=t,i=vX(t,["encode","data","legend"]),a=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(zi(i,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},IS.encode),e),{value:s}=o,c=gX({encode:o,data:n});return[Dt({},IS,Object.assign(Object.assign({type:"rect",data:c,encode:o,tooltip:{title:"path",items:[l=>({name:s,value:l[s]})]}},i),{coordinate:a}))]};jS.props={};var yX=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Cv(t,function(n,r){gi(t)&&r==="prototype"||e.push(r)}),e},mX=yX,bX=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const xX=t=>t.querySelectorAll(".element").filter(e=>zi(e,["style",gg])===pc);function _X(t){return je(t).select(`.${Df}`).node()}const OX={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function wX(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=Dt({},OX,e);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=_X(s),f=l.marks.find(({id:m})=>m===pc),{state:d}=f,h=new Br;u.appendChild(h);const p=(m,b)=>bX(this,void 0,void 0,function*(){if(h.removeChildren(),m){const _=new Zi({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(_);let O="";const w=m==null?void 0:m.split(" / ");let M=r.style.y,E=h.getBBox().width;const A=u.getBBox().width,P=w.map((C,j)=>{const N=new Zi({style:Object.assign(Object.assign({x:E,text:" / "},r.style),{y:M})});h.appendChild(N),E+=N.getBBox().width,O=`${O}${C} / `;const k=new Zi({name:O.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:C,x:E,depth:j+1},r.style),{y:M})});return h.appendChild(k),E+=k.getBBox().width,E>A&&(M=h.getBBox().height,E=0,N.attr({x:E,y:M}),E+=N.getBBox().width,k.attr({x:E,y:M}),E+=k.getBBox().width),k});[_,...P].forEach((C,j)=>{if(j===P.length)return;const N=Object.assign({},C.attributes);C.attr("cursor","pointer"),C.addEventListener("mouseenter",()=>{C.attr(r.active)}),C.addEventListener("mouseleave",()=>{C.attr(N)}),C.addEventListener("click",()=>{p(C.name,zi(C,["style","depth"]))})})}o("drillDown",_=>{const{marks:O}=_,w=O.map(M=>{if(M.id!==pc&&M.type!=="rect")return M;const{data:E}=M,A=Object.fromEntries(["color"].map(C=>[C,{domain:c.scale[C].getOptions().domain}])),P=E.filter(C=>{const j=C.path;return n&&(C[Ld]=j.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(j):!0});return Dt({},M,n?{data:P}:{data:P,scale:A})});return Object.assign(Object.assign({},_),{marks:w})}),yield a()}),v=m=>{const b=m.target;if(zi(b,["style",gg])!==pc||zi(b,["markType"])!=="rect"||!zi(b,["style",Nl]))return;const _=zi(b,["__data__","key"]),O=zi(b,["style","depth"]);b.style.cursor="pointer",p(_,O)};u.addEventListener("click",v);const g=mX(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{xX(u).forEach(b=>{const _=zi(b,["style",Nl]);if(zi(b,["style","cursor"])!=="pointer"&&_){b.style.cursor="pointer";const w=PS(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(Dt(w,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}Pt.enableCSSParsing=!1;function SX(){return{"interaction.drillDown":wX,"mark.sunburst":jS}}const DS=()=>[["cartesian"]];DS.props={};const yg=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];yg.props={transform:!0};const MX=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},BS=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=MX(t);return[...yg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};BS.props={};const mg=()=>[["parallel",0,1,0,1]];mg.props={};const FS=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];FS.props={transform:!0};const zS=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...mg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};zS.props={};const GS=({value:t})=>e=>e.map(()=>t);GS.props={};const WS=({value:t})=>e=>e.map(n=>n[t]);WS.props={};const HS=({value:t})=>e=>e.map(t);HS.props={};const YS=({value:t})=>()=>t;YS.props={};function dr(t,e){if(t!==null)return{type:"column",value:t,field:e}}function Nd(t,e){const n=dr(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function Id(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function EX(t,e){const n=dr(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function go(t,e){const n=[];for(const r of t)n[r]=e;return n}function un(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function Il(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=un(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function bg(t){return t instanceof Date?!1:typeof t=="object"}const jl=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{y1:Nd(go(t,0))}})]};jl.props={};const ls=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{x:Nd(go(t,0))},scale:{x:{guide:null}}})]};ls.props={};const $S=Math.abs,Ur=Math.atan2,us=Math.cos,AX=Math.max,xg=Math.min,ma=Math.sin,vc=Math.sqrt,qr=1e-12,Dl=Math.PI,jd=Dl/2,TX=2*Dl;function PX(t){return t>1?0:t<-1?Dl:Math.acos(t)}function VS(t){return t>=1?jd:t<=-1?-jd:Math.asin(t)}function CX(t){return t.innerRadius}function kX(t){return t.outerRadius}function RX(t){return t.startAngle}function LX(t){return t.endAngle}function NX(t){return t&&t.padAngle}function IX(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+R*R&&(E=P,A=C),{cx:E,cy:A,x01:-u,y01:-f,x11:E*(i/O-1),y11:A*(i/O-1)}}function Bd(){var t=CX,e=kX,n=Vn(0),r=null,i=RX,a=LX,o=NX,s=null,c=zv(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-jd,v=a.apply(this,arguments)-jd,g=$S(v-p),y=v>p;if(s||(s=u=c()),hqr))s.moveTo(0,0);else if(g>TX-qr)s.moveTo(h*us(p),h*ma(p)),s.arc(0,0,h,p,v,!y),d>qr&&(s.moveTo(d*us(v),d*ma(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,_=p,O=v,w=g,M=g,E=o.apply(this,arguments)/2,A=E>qr&&(r?+r.apply(this,arguments):vc(d*d+h*h)),P=xg($S(h-d)/2,+n.apply(this,arguments)),C=P,j=P,N,k;if(A>qr){var R=VS(A/d*ma(E)),D=VS(A/h*ma(E));(w-=R*2)>qr?(R*=y?1:-1,_+=R,O-=R):(w=0,_=O=(p+v)/2),(M-=D*2)>qr?(D*=y?1:-1,m+=D,b-=D):(M=0,m=b=(p+v)/2)}var B=h*us(m),F=h*ma(m),z=d*us(O),Y=d*ma(O);if(P>qr){var q=h*us(b),rt=h*ma(b),st=d*us(_),At=d*ma(_),Yt;if(gqr?j>qr?(N=Dd(st,At,B,F,h,j,y),k=Dd(q,rt,z,Y,h,j,y),s.moveTo(N.cx+N.x01,N.cy+N.y01),jqr)||!(w>qr)?s.lineTo(z,Y):C>qr?(N=Dd(z,Y,q,rt,d,-C,y),k=Dd(B,F,st,At,d,-C,y),s.lineTo(N.cx+N.x01,N.cy+N.y01),C0?C:C+N,D=k>0?j:j+k,B=Math.abs(N),F=Math.abs(k),z=R+s,Y=D+c,q=B-(s+l),rt=F-(c+u),st=E?Yf(q,y,1/0):Yf(q,v,g),At=E?Yf(rt,v,g):Yf(rt,y,1/0),Yt=E?z:z-(st-q)/2,qt=E?Y-(At-rt)/2:Y-(At-rt);return je(t.createElement("rect",{})).style("x",Yt).style("y",qt).style("width",st).style("height",At).style("radius",[h,p,d,f]).call(Ae,m).node()}const{y:b,y1:_}=n,O=r.getCenter(),w=ns(r,e,[b,_]),M=Bd().cornerRadius(o).padAngle(a*Math.PI/180);return je(t.createElement("path",{})).style("path",M(w)).style("transform",`translate(${O[0]}, ${O[1]})`).style("radius",o).style("inset",a).call(Ae,m).node()}const Bl=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=Fd(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=Fd(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:_=y,radiusBottomLeft:O=y,innerRadius:w=0,innerRadiusTopLeft:M=w,innerRadiusTopRight:E=w,innerRadiusBottomRight:A=w,innerRadiusBottomLeft:P=w,lineWidth:C=n==="stroke"||g?v:0,inset:j=0,insetLeft:N=j,insetRight:k=j,insetBottom:R=j,insetTop:D=j,minWidth:B,maxWidth:F,minHeight:z}=o,Y=Fd(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:q=d,opacity:rt}=u,st=[i?m:M,i?b:E,a?_:A,a?O:P],At=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];$n(s)&&At.push(At.shift());const Yt=Object.assign(Object.assign({radius:y},Object.fromEntries(At.map((qt,Rt)=>[qt,st[Rt]]))),{inset:j,insetLeft:N,insetRight:k,insetBottom:R,insetTop:D,minWidth:B,maxWidth:F,minHeight:z});return je(XS(c,l,u,s,Yt)).call(Ae,p).style("fill","transparent").style(n,q).style(wO(t),rt).style("lineWidth",C).style("stroke",g===void 0?q:g).call(Ae,Y).node()}};Bl.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const fs=(t,e)=>Bl(Object.assign({colorAttribute:"fill"},t),e);fs.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"square"});const zd=(t,e)=>Bl(Object.assign({colorAttribute:"stroke"},t),e);zd.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"hollowSquare"});function gc(){}function US(t){this._context=t}US.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function _g(t){return new US(t)}var qS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=jX}=t,r=qS(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=qS(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!$n(i),[g,y,m,b]=v?gd(p):p,{color:_=f,opacity:O}=s,w=ho().curve(_g)([g,y,m,b]);return je(a.createElement("path",{})).call(Ae,d).style("path",w).style("fill",_).style("fillOpacity",O).call(Ae,r).node()}};Og.props={defaultMarker:"square"};function DX(t,e,n){const[r,i,a,o]=t;if($n(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const ZS=(t,e)=>Og(Object.assign({adjustPoints:DX},t),e);ZS.props={defaultMarker:"square"};function Gd(t){return t==null?null:KS(t)}function KS(t){if(typeof t!="function")throw new Error;return t}var BX={depth:-1},QS={},wg={};function FX(t){return t.id}function zX(t){return t.parentId}function Sg(){var t=FX,e=zX,n;function r(i){var a=Array.from(i),o=t,s=e,c,l,u,f,d,h,p,v,g=new Map;if(n!=null){var y=a.map(function(E,A){return GX(n(E,A,i))}),m=y.map(JS),b=new Set(y).add(""),_=hg(m),O;try{for(_.s();!(O=_.n()).done;){var w=O.value;b.has(w)||(b.add(w),y.push(w),m.push(JS(w)),a.push(wg))}}catch(E){_.e(E)}finally{_.f()}o=function(A,P){return y[P]},s=function(A,P){return m[P]}}for(u=0,c=a.length;u=0&&(h=a[M],h.data===wg);--M)h.data=null}if(f.parent=BX,f.eachBefore(function(E){E.depth=E.parent.depth+1,--c}).eachBefore(LS),f.parent=null,c>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(t=Gd(i),r):t},r.parentId=function(i){return arguments.length?(e=Gd(i),r):e},r.path=function(i){return arguments.length?(n=Gd(i),r):n},r}function GX(t){t="".concat(t);var e=t.length;return Mg(t,e-1)&&!Mg(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:"/".concat(t)}function JS(t){var e=t.length;if(e<2)return"";for(;--e>1&&!Mg(t,e););return t.slice(0,e)}function Mg(t,e){if(t[e]==="/"){for(var n=0;e>0&&t[--e]==="\\";)++n;if(!(n&1))return!0}return!1}function Fl(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function WX(t){const e=t.getFullYear(),n=Fl(t.getMonth()+1),r=Fl(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${Fl(a)}:${Fl(o)}:${Fl(s)}`:i}const Wd=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(ka(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>un(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?WX(u[l]):u[l]).join(", ")};return[n,Dt({},r,{tooltip:{title:c}})]}};Wd.props={};const Hd=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(ka(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,Dt({},r,{tooltip:{items:c}})]}};Hd.props={};var HX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=HX(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,Dt({},e,{encode:{key:dr(o)}})]};tM.props={};function eM(t={}){const{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function ii(t={}){return[...eM(t),{name:"title",scale:"identity"}]}function npt(){return[{type:MaybeTitle,channel:"color"},{type:MaybeTooltip,channel:["x","y","z"]}]}function yo(){return[{type:Wd,channel:"color"},{type:Hd,channel:["x","y"]}]}function yc(){return[{type:Wd,channel:"x"},{type:Hd,channel:["y"]}]}function YX(){return[{type:Wd,channel:"color"},{type:Hd,channel:["position"]}]}function mc(t={}){return eM(t)}function gr(){return[{type:tM}]}function Or(){return[]}function Eg(t,e){return t.getBandWidth(t.invert(e))}function ds(t,e,n={}){const{x:r,y:i,series:a}=e,{x:o,y:s,series:c}=t,{style:{bandOffset:l=c?0:.5,bandOffsetX:u=l,bandOffsetY:f=l}={}}=n,d=!!(o!=null&&o.getBandWidth),h=!!(s!=null&&s.getBandWidth),p=!!(c!=null&&c.getBandWidth);return!d&&!h?v=>v:(v,g)=>{const y=d?Eg(o,r[g]):0,m=h?Eg(s,i[g]):0,_=p&&a?(()=>(Eg(c,a[g])/2+ +a[g])*y)():0,[O,w]=v;return[O+u*y+_,w+f*m]}}function Yd(t){return parseFloat(t)/100}function Ag(t,e,n,r){const{x:i,y:a}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),c=Array.from(t,l=>{const u=i[l],f=a[l],d=typeof u=="string"?Yd(u)*o:+u,h=typeof f=="string"?Yd(f)*s:+f;return[[d,h]]});return[t,c]}function ba(t){return typeof t=="function"?t:e=>e[t]}function Tg(t,e){return Array.from(t,ba(e))}function Pg(t,e){const{source:n=u=>u.source,target:r=u=>u.target,value:i=u=>u.value}=e,{links:a,nodes:o}=t,s=Tg(a,n),c=Tg(a,r),l=Tg(a,i);return{links:a.map((u,f)=>({target:c[f],source:s[f],value:l[f]})),nodes:o||Array.from(new Set([...s,...c]),u=>({key:u}))}}function $X(t,e){return Array.isArray(t)?typeof e=="function"?Sg().path(e)(t):Sg()(t):dc(t)}function nM(t,e){return t.getBandWidth(t.invert(e))}const rM={rect:fs,hollow:zd,funnel:Og,pyramid:ZS},iM=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,series:s,size:c}=n,l=e.x,u=e.series,[f]=r.getSize(),d=c?c.map(v=>+v/f):null,h=c?(v,g,y)=>{const m=v+g/2,b=d[y];return[m-b/2,m+b/2]}:(v,g,y)=>[v,v+g],p=Array.from(t,v=>{const g=nM(l,i[v]),y=u?nM(u,s==null?void 0:s[v]):1,m=g*y,b=(+(s==null?void 0:s[v])||0)*g,_=+i[v]+b,[O,w]=h(_,m,v),M=+a[v],E=+o[v];return[[O,M],[w,M],[w,E],[O,E]].map(N=>r.map(N))});return[t,p]};iM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:rM,channels:[...ii({shapes:Object.keys(rM)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...gr(),{type:jl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const aM={rect:fs,hollow:zd},oM=()=>(t,e,n,r)=>{const{x:i,x1:a,y:o,y1:s}=n,c=Array.from(t,l=>{const u=[+i[l],+o[l]],f=[+a[l],+o[l]],d=[+a[l],+s[l]],h=[+i[l],+s[l]];return[u,f,d,h].map(p=>r.map(p))});return[t,c]};oM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:aM,channels:[...ii({shapes:Object.keys(aM)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:jl}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};var sM=Cg(Al);function cM(t){this._curve=t}cM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Cg(t){function e(n){return new cM(t(n))}return e._curve=t,e}function zl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Cg(n)):e()._curve},t}function VX(){return zl(ho().curve(sM))}var lM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(Ae,r),je(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(Ae,i)});function UX(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Hi=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=lM(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=lM(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:_}=f,O=SO(c,f),w=$n(c),M=r&&m?OO(m,b,_,r,i,w):g,E=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),M&&{stroke:M}),y&&{lineWidth:y}),O&&{transform:O}),s);let A;if(Gn(c)){const R=c.getCenter();A=D=>VX().angle((B,F)=>nc(ur(D[F],R))).radius((B,F)=>Jn(D[F],R)).defined(([B,F])=>a(B)&&a(F)).curve(n)(D)}else A=ho().x(R=>R[0]).y(R=>R[1]).defined(([R,D])=>a(R)&&a(D)).curve(n);const[P,C]=UX(u,a),j=fe(E,"connect"),N=!!C.length;if(!N||o&&!Object.keys(j).length)return je(l.createElement("path",{})).style("d",A(P)||[]).call(Ae,E).node();if(N&&!o)return je(l.createElement("path",{})).style("d",A(u)).call(Ae,E).node();const k=R=>R.map(A).join(",");return je(new XX).style("style1",Object.assign(Object.assign({},E),j)).style("style2",E).style("d1",k(C)).style("d2",A(u)).node()}};Hi.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const uM=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Gn(n)?_g:Al;return Hi(Object.assign({curve:i},t),e)(...r)}};uM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"line"});function kg(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rg(t,e){this._context=t,this._k=(1-e)/6}Rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:kg(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rpt=function t(e){function n(r){return new Rg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function Lg(t,e){this._context=t,this._k=(1-e)/6}Lg.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ipt=function t(e){function n(r){return new Lg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function fM(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>qr){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>qr){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function dM(t,e){this._context=t,this._alpha=e}dM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:fM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var apt=function t(e){function n(r){return e?new dM(r,e):new Rg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function hM(t,e){this._context=t,this._alpha=e}hM.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pM=function t(e){function n(r){return e?new hM(r,e):new Lg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function vM(t){return t<0?-1:1}function gM(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(vM(a)+vM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function yM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ng(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function $d(t){this._context=t}$d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ng(this,this._t0,yM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ng(this,yM(this,n=gM(this,t,e)),n);break;default:Ng(this,this._t0,n=gM(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function mM(t){this._context=new bM(t)}(mM.prototype=Object.create($d.prototype)).point=function(t,e){$d.prototype.point.call(this,e,t)};function bM(t){this._context=t}bM.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function xM(t){return new $d(t)}function _M(t){return new mM(t)}var qX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=qX(t,[]),{coordinate:r}=e;return(...i)=>{const a=Gn(r)?pM:$n(r)?_M:xM;return Hi(Object.assign({curve:a},n),e)(...i)}};OM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"smooth"});function Vd(t,e){this._context=t,this._t=e}Vd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function wM(t){return new Vd(t,.5)}function SM(t){return new Vd(t,0)}function MM(t){return new Vd(t,1)}const EM=(t,e)=>Hi(Object.assign({curve:MM},t),e);EM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hv"});const AM=(t,e)=>Hi(Object.assign({curve:SM},t),e);AM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"vh"});const TM=(t,e)=>Hi(Object.assign({curve:wM},t),e);TM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hvh"});var ZX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=ZX(a,["color"]),u=Wi();for(let f=0;f(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,Dt({},e,{encode:{series:Id(go(t,void 0))}})]};CM.props={};const Ig=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=un(n,"color");return[t,Dt({},e,{encode:{series:dr(a,o)}})]};Ig.props={};const kM={line:uM,smooth:OM,hv:EM,vh:AM,hvh:TM,trail:PM},QX=(t,e,n,r)=>{var i,a;const{series:o,x:s,y:c}=n,{x:l,y:u}=e;if(s===void 0||c===void 0)throw new Error("Missing encode for x or y channel.");const f=o?Array.from(Kn(t,g=>o[g]).values()):[t],d=f.map(g=>g[0]).filter(g=>g!==void 0),h=(((i=l==null?void 0:l.getBandWidth)===null||i===void 0?void 0:i.call(l))||0)/2,p=(((a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))||0)/2,v=Array.from(f,g=>g.map(y=>r.map([+s[y]+h,+c[y]+p])));return[d,v,f]},JX=(t,e,n,r)=>{const i=Object.entries(n).filter(([o])=>o.startsWith("position")).map(([,o])=>o);if(i.length===0)throw new Error("Missing encode for position channel.");const a=Array.from(t,o=>{const s=i.map(u=>+u[o]),c=r.map(s),l=[];for(let u=0;u(t,e,n,r)=>(dl(r)?JX:QX)(t,e,n,r);RM.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:kM,channels:[...ii({shapes:Object.keys(kM)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...gr(),{type:CM},{type:Ig}],postInference:[...Or(),...yc(),...YX()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var tU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];jg.style=["fill"];const LM=jg.bind(void 0);LM.style=["stroke","lineWidth"];const Xd=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Xd.style=["fill"];const NM=Xd.bind(void 0);NM.style=["fill"];const IM=Xd.bind(void 0);IM.style=["stroke","lineWidth"];const Dg=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};Dg.style=["fill"];const jM=Dg.bind(void 0);jM.style=["stroke","lineWidth"];const Bg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};Bg.style=["fill"];const DM=Bg.bind(void 0);DM.style=["stroke","lineWidth"];const Fg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};Fg.style=["fill"];const BM=Fg.bind(void 0);BM.style=["stroke","lineWidth"];const zg=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};zg.style=["fill"];const FM=zg.bind(void 0);FM.style=["stroke","lineWidth"];const Gg=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};Gg.style=["fill"];const zM=Gg.bind(void 0);zM.style=["stroke","lineWidth"];const GM=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];GM.style=["stroke","lineWidth"];const WM=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];WM.style=["stroke","lineWidth"];const HM=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];HM.style=["stroke","lineWidth"];const YM=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];YM.style=["stroke","lineWidth"];const $M=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];$M.style=["stroke","lineWidth"];const Wg=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];Wg.style=["stroke","lineWidth"];const VM=Wg.bind(void 0);VM.style=["stroke","lineWidth"];const XM=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];XM.style=["stroke","lineWidth"];const UM=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];UM.style=["stroke","lineWidth"];const qM=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];qM.style=["stroke","lineWidth"];const ZM=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];ZM.style=["stroke","lineWidth"];const KM=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];KM.style=["stroke","lineWidth"];const bc=new Map([["bowtie",Gg],["cross",WM],["dash",VM],["diamond",Dg],["dot",Wg],["hexagon",zg],["hollowBowtie",zM],["hollowDiamond",jM],["hollowHexagon",FM],["hollowPoint",LM],["hollowSquare",IM],["hollowTriangle",DM],["hollowTriangleDown",BM],["hv",UM],["hvh",ZM],["hyphen",$M],["line",GM],["plus",YM],["point",jg],["rect",NM],["smooth",XM],["square",Xd],["tick",HM],["triangleDown",Fg],["triangle",Bg],["vh",qM],["vhv",KM]]);function eU(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=tU(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=bc.get(t)||bc.get("point");return(...f)=>new ri({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}function opt(t,e){bc.set(t,e)}function spt(t){bc.delete(t)}var nU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=nU(t,["colorAttribute","symbol","mode"]),o=bc.get(r)||bc.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=MO(l),O=rU(i,l,u,s)||a.r||f.r;return je(c.createElement("path",{})).call(Ae,f).style("fill","transparent").style("d",o(m,b,O)).style("lineWidth",p).style("transform",g).style("stroke",v).style(wO(t),y).style(n,v).call(Ae,a).node()}};on.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const QM=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);QM.props=Object.assign({defaultMarker:"hollowPoint"},on.props);const JM=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);JM.props=Object.assign({defaultMarker:"hollowDiamond"},on.props);const tE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);tE.props=Object.assign({defaultMarker:"hollowHexagon"},on.props);const eE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);eE.props=Object.assign({defaultMarker:"hollowSquare"},on.props);const nE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);nE.props=Object.assign({defaultMarker:"hollowTriangleDown"},on.props);const rE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);rE.props=Object.assign({defaultMarker:"hollowTriangle"},on.props);const iE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);iE.props=Object.assign({defaultMarker:"hollowBowtie"},on.props);const aE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);aE.props=Object.assign({defaultMarker:"point"},on.props);const oE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);oE.props=Object.assign({defaultMarker:"plus"},on.props);const sE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);sE.props=Object.assign({defaultMarker:"diamond"},on.props);const cE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);cE.props=Object.assign({defaultMarker:"square"},on.props);const lE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);lE.props=Object.assign({defaultMarker:"triangle"},on.props);const uE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);uE.props=Object.assign({defaultMarker:"hexagon"},on.props);const fE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);fE.props=Object.assign({defaultMarker:"cross"},on.props);const dE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);dE.props=Object.assign({defaultMarker:"bowtie"},on.props);const hE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);hE.props=Object.assign({defaultMarker:"hyphen"},on.props);const pE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);pE.props=Object.assign({defaultMarker:"line"},on.props);const vE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);vE.props=Object.assign({defaultMarker:"tick"},on.props);const gE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);gE.props=Object.assign({defaultMarker:"triangleDown"},on.props);const Ud=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{y:Nd(go(t,0))},scale:{y:{guide:null}}})]};Ud.props={};const yE=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{size:Id(go(t,3))}})]};yE.props={};const mE={hollow:QM,hollowDiamond:JM,hollowHexagon:tE,hollowSquare:eE,hollowTriangleDown:nE,hollowTriangle:rE,hollowBowtie:iE,point:aE,plus:oE,diamond:sE,square:cE,triangle:lE,hexagon:uE,cross:fE,bowtie:dE,hyphen:hE,line:pE,tick:vE,triangleDown:gE},bE=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s,y1:c,size:l,dx:u,dy:f}=r,[d,h]=i.getSize(),p=ds(n,r,t),v=y=>{const m=+((u==null?void 0:u[y])||0),b=+((f==null?void 0:f[y])||0),_=s?(+a[y]+ +s[y])/2:+a[y],O=c?(+o[y]+ +c[y])/2:+o[y],w=_+m,M=O+b;return[w,M]},g=l?Array.from(e,y=>{const[m,b]=v(y),_=+l[y],O=_/d,w=_/h,M=[m-O,b-w],E=[m+O,b+w];return[i.map(p(M,y)),i.map(p(E,y))]}):Array.from(e,y=>[i.map(p(v(y),y))]);return[e,g]};bE.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:mE,channels:[...ii({shapes:Object.keys(mE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...gr(),{type:ls},{type:Ud}],postInference:[...Or(),{type:yE},...yo()]};const xE=(t,e)=>{const{coordinate:n}=e;return(r,i,a)=>{const{color:o,text:s="",fontSize:c,rotate:l=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:c},[[d,h]]=r;return je(new RO).style("x",d).style("y",h).call(Ae,a).style("transform",`${u}rotate(${+l})`).style("coordCenter",n.getCenter()).call(Ae,f).call(Ae,t).node()}};xE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Hg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const e=t.attributes,{class:n,x:r,y:i}=e,a=Hg(e,["class","x","y"]),o=fe(a,"marker"),{size:s=24}=o,c=()=>iU(s/2),l=je(t).maybeAppend("marker",()=>new Rn({})).call(d=>d.node().update(Object.assign({symbol:c},o))).node(),[u,f]=aU(l);je(t).maybeAppend("text","text").style("x",u).style("y",f).call(Ae,a)}),_E=(t,e)=>{const n=Hg(t,[]);return(r,i,a)=>{const{color:o}=a,s=Hg(a,["color"]),{color:c=o,text:l=""}=i,u={text:String(l),stroke:c,fill:c},[[f,d]]=r;return je(new oU).call(Ae,s).style("x",f).style("y",d).call(Ae,u).call(Ae,n).node()}};_E.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const qd=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(bg))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,Dt({},e,{encode:{x:dr(i),y:dr(a)}})]};qd.props={};var OE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=OE(e,["data","style"]),{x:a,y:o}=r,s=OE(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],Dt({},i,{data:[0],cartesian:!0,encode:{x:dr([c]),y:dr([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};Zd.props={};const wE={text:xE,badge:_E},SE=t=>{const{cartesian:e=!1}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};SE.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:wE,channels:[...ii({shapes:Object.keys(wE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...gr(),{type:qd},{type:Zd}],postInference:[...Or(),...yo()]};const Yg=()=>(t,e)=>[t,Dt({scale:{x:{padding:0},y:{padding:0}}},e)];Yg.props={};const ME={cell:fs,hollow:zd},EE=()=>(t,e,n,r)=>{const{x:i,y:a}=n,o=e.x,s=e.y,c=Array.from(t,l=>{const u=o.getBandWidth(o.invert(+i[l])),f=s.getBandWidth(s.invert(+a[l])),d=+i[l],h=+a[l],p=[d,h],v=[d+u,h],g=[d+u,h+f],y=[d,h+f];return[p,v,g,y].map(m=>r.map(m))});return[t,c]};EE.props={defaultShape:"cell",defaultLabelShape:"label",shape:ME,composite:!1,channels:[...ii({shapes:Object.keys(ME)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...gr(),{type:ls},{type:Ud},{type:Yg}],postInference:[...Or(),...yo()]};function $g(t,e,n){var r=null,i=Vn(!0),a=null,o=Al,s=null,c=zv(l);t=typeof t=="function"?t:t===void 0?CO:Vn(+t),e=typeof e=="function"?e:Vn(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?kO:Vn(+n);function l(f){var d,h,p,v=(f=AO(f)).length,g,y=!1,m,b=new Array(v),_=new Array(v);for(a==null&&(s=o(m=c())),d=0;d<=v;++d){if(!(d=h;--p)s.point(b[p],_[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),_[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):_[d]))}if(m)return s=null,m+""||null}function u(){return ho().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Vn(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Vn(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Vn(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Vn(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Vn(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Vn(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Vn(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}function sU(){var t=$g().curve(sM),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return zl(n())},delete t.lineX0,t.lineEndAngle=function(){return zl(r())},delete t.lineX1,t.lineInnerRadius=function(){return zl(i())},delete t.lineY0,t.lineOuterRadius=function(){return zl(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Cg(o)):e()._curve},t}var cU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e(f)))a=!0;else{if(n.push(l),r.push(u),a&&o){a=!1;const[f,d]=o;i.push([f,l,d,u])}o=[l,u]}}return[n.concat(r),i]}const AE=rc(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(Ae,i),je(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(Ae,r)}),ta=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=l=>!Number.isNaN(l)&&l!==void 0&&l!==null,connect:a=!1}=t,o=cU(t,["curve","gradient","defined","connect"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d}=f,{color:h=d,seriesColor:p,seriesX:v,seriesY:g}=u,y=$n(s),m=SO(s,u),b=r&&p?OO(p,v,g,r,void 0,y):h,_=Object.assign(Object.assign(Object.assign(Object.assign({},f),{stroke:b,fill:b}),m&&{transform:m}),o),[O,w]=lU(l,i),M=fe(_,"connect"),E=!!w.length,A=P=>je(c.createElement("path",{})).style("d",P||"").call(Ae,_).node();if(Gn(s)){const P=C=>{const j=s.getCenter(),N=C.slice(0,C.length/2),k=C.slice(C.length/2);return sU().angle((R,D)=>nc(ur(N[D],j))).outerRadius((R,D)=>Jn(N[D],j)).innerRadius((R,D)=>Jn(k[D],j)).defined((R,D)=>[...N[D],...k[D]].every(i)).curve(n)(k)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new AE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}else{const P=C=>{const j=C.slice(0,C.length/2),N=C.slice(C.length/2);return y?$g().y((k,R)=>j[R][1]).x1((k,R)=>j[R][0]).x0((k,R)=>N[R][0]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j):$g().x((k,R)=>j[R][0]).y1((k,R)=>j[R][1]).y0((k,R)=>N[R][1]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new AE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}}};ta.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const TE=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Gn(n)?_g:Al;return ta(Object.assign({curve:i},t),e)(...r)}};TE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"square"});var uU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=uU(t,[]),{coordinate:r}=e;return(...i)=>{const a=Gn(r)?pM:$n(r)?_M:xM;return ta(Object.assign({curve:a},n),e)(...i)}};PE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"smooth"});const CE=(t,e)=>(...n)=>ta(Object.assign({curve:wM},t),e)(...n);CE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hvh"});const kE=(t,e)=>(...n)=>ta(Object.assign({curve:SM},t),e)(...n);kE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"vh"});const RE=(t,e)=>(...n)=>ta(Object.assign({curve:MM},t),e)(...n);RE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hv"});const LE={area:TE,smooth:PE,hvh:CE,vh:kE,hv:RE},NE=()=>(t,e,n,r)=>{var i,a;const{x:o,y:s,y1:c,series:l}=n,{x:u,y:f}=e,d=l?Array.from(Kn(t,y=>l[y]).values()):[t],h=d.map(y=>y[0]).filter(y=>y!==void 0),p=(((i=u==null?void 0:u.getBandWidth)===null||i===void 0?void 0:i.call(u))||0)/2,v=(((a=f==null?void 0:f.getBandWidth)===null||a===void 0?void 0:a.call(f))||0)/2,g=Array.from(d,y=>{const m=y.length,b=new Array(m*2);for(let _=0;_(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=un(n,"y");return[t,Dt({},e,{encode:{y1:dr([...i])}})]};IE.props={};const jE=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=un(n,"x");return[t,Dt({},e,{encode:{x1:dr([...i])}})]};jE.props={};var DE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=DE(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=DE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=Wi();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=lW(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return je(a.createElement("path",{})).call(Ae,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ae,i).node()}};Vg.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const BE=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>Vg(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};BE.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var FE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=FE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=FE(s,["color"]),{color:u=c,transform:f}=o,[d,h]=a,p=Wi();if(p.moveTo(d[0],d[1]),Gn(r)){const v=r.getCenter();p.quadraticCurveTo(v[0],v[1],h[0],h[1])}else{const v=_O(d,h),g=Jn(d,h)/2;El(p,d,h,v,g)}return je(i.createElement("path",{})).call(Ae,l).style("d",p.toString()).style("stroke",u).style("transform",f).call(Ae,n).node()}};zE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var GE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=GE(t,[]),{document:r}=e;return(i,a,o)=>{const{color:s}=o,c=GE(o,["color"]),{color:l=s,transform:u}=a,[f,d]=i,h=Wi();return h.moveTo(f[0],f[1]),h.bezierCurveTo(f[0]/2+d[0]/2,f[1],f[0]/2+d[0]/2,d[1],d[0],d[1]),je(r.createElement("path",{})).call(Ae,c).style("d",h.toString()).style("stroke",l).style("transform",u).call(Ae,n).node()}};WE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var HE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{cornerRatio:n=1/3}=t,r=HE(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=HE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=fU(h,p,i,n);return je(a.createElement("path",{})).call(Ae,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ae,r).node()}};YE.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const $E={link:BE,arc:zE,smooth:WE,vhv:YE},Xg=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:c=o}=r,l=ds(n,r,t),u=e.map(f=>[i.map(l([+a[f],+o[f]],f)),i.map(l([+s[f],+c[f]],f))]);return[e,u]};Xg.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:$E,channels:[...ii({shapes:Object.keys($E)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:IE},{type:jE}],postInference:[...Or(),...yo()]};var dU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=dU(o,["color"]),{color:l=s,src:u="",size:f=32,transform:d=""}=a;let{width:h=f,height:p=f}=t;const[[v,g]]=i,[y,m]=n.getSize();h=typeof h=="string"?Yd(h)*y:h,p=typeof p=="string"?Yd(p)*m:p;const b=v-Number(h)/2,_=g-Number(p)/2;return je(r.createElement("image",{})).call(Ae,c).style("x",b).style("y",_).style("img",u).style("stroke",l).style("transform",d).call(Ae,t).style("width",h).style("height",p).node()}};VE.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const XE={image:VE},UE=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};UE.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:XE,channels:[...ii({shapes:Object.keys(XE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...gr(),{type:qd},{type:Zd}],postInference:[...Or(),...yo()]};var hU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iJn(o,r));return i.forEach((o,s)=>{if(s===0){n.moveTo(o[0],o[1]);return}const c=a[s],l=t[s-1],u=a[s-1];u!==void 0&&Math.abs(c-u)<1e-10?El(n,l,o,r,c):n.lineTo(o[0],o[1])}),n.closePath(),n}return cW(n,t)}const qE=(t,e)=>{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=hU(o,["color"]),{color:l=s,transform:u}=a,f=pU(i,n);return je(r.createElement("path",{})).call(Ae,c).style("d",f.toString()).style("stroke",l).style("fill",l).style("transform",u).call(Ae,t).node()}};qE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var ZE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=ZE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=ZE(s,["color"]),{color:u=c,transform:f}=o,d=vU(a,r);return je(i.createElement("path",{})).call(Ae,l).style("d",d.toString()).style("fill",u||c).style("stroke",u||c).style("transform",f).call(Ae,n).node()}};KE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const QE={polygon:qE,ribbon:KE},JE=()=>(t,e,n,r)=>{const i=Object.entries(n).filter(([s])=>s.startsWith("x")).map(([,s])=>s),a=Object.entries(n).filter(([s])=>s.startsWith("y")).map(([,s])=>s),o=t.map(s=>{const c=[];for(let l=0;l{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,{color:l,fill:u=l,stroke:f=l}=o,d=gU(o,["color","fill","stroke"]),h=yU(i,n);return je(r.createElement("path",{})).call(Ae,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",c).call(Ae,t).node()}};tA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,l=4,{color:u,fill:f=u,stroke:d=u}=o,h=mU(o,["color","fill","stroke"]),p=bU(i,n,l);return je(r.createElement("path",{})).call(Ae,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",c).call(Ae,t).node()}};eA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const nA={box:tA,violin:eA},rA=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,y2:s,y3:c,y4:l,series:u}=n,f=e.x,d=e.series,h=Array.from(t,p=>{const v=f.getBandWidth(f.invert(+i[p])),g=d?d.getBandWidth(d.invert(+(u==null?void 0:u[p]))):1,y=v*g,m=(+(u==null?void 0:u[p])||0)*v,b=+i[p]+m+y/2,[_,O,w,M,E]=[+a[p],+o[p],+s[p],+c[p],+l[p]];return[[b-y/2,E],[b+y/2,E],[b,E],[b,M],[b-y/2,M],[b+y/2,M],[b+y/2,O],[b-y/2,O],[b-y/2,w],[b+y/2,w],[b,O],[b,_],[b-y/2,_],[b+y/2,_]].map(P=>r.map(P))});return[t,h]};rA.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:nA,channels:[...ii({shapes:Object.keys(nA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...gr(),{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const iA={vector:Vg},aA=()=>(t,e,n,r)=>{const{x:i,y:a,size:o,rotate:s}=n,[c,l]=r.getSize(),u=t.map(f=>{const d=+s[f]/180*Math.PI,h=+o[f],p=h/c,v=h/l,g=p*Math.cos(d),y=-v*Math.sin(d);return[r.map([+i[f]-g/2,+a[f]-y/2]),r.map([+i[f]+g/2,+a[f]+y/2])]});return[t,u]};aA.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:iA,channels:[...ii({shapes:Object.keys(iA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...gr()],postInference:[...Or(),...yo()]};var oA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir[0]).y(r=>r[1])(t);const n=e.getCenter();return Bd()({startAngle:0,endAngle:Math.PI*2,outerRadius:Jn(t[0],n),innerRadius:Jn(t[1],n)})}function OU(t,e){if(!Gn(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}const Ug=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=oA(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,lineWidth:f}=l,d=oA(l,["color","lineWidth"]),{color:h=u,size:p=f}=c,v=n?xU(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},fe(i,"arrow"))):null,g=_U(s,a),y=OU(a,c.transform);return je(o.createElement("path",{})).call(Ae,d).style("d",g).style("stroke",h).style("lineWidth",p).style("transform",y).style("markerEnd",v).call(Ae,i).node()}};Ug.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const sA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(bg)?[t,e]:[t,Dt({},e,{encode:{x:dr(n)}})]};sA.props={};const cA={line:Ug},lA=t=>(e,n,r,i)=>{const{x:a}=r,o=ds(n,r,Dt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[a[c],1],u=[a[c],0];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};lA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:cA,channels:[...mc({shapes:Object.keys(cA)}),{name:"x",required:!0}],preInference:[...gr(),{type:sA}],postInference:[...Or()]};const uA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(bg)?[t,e]:[t,Dt({},e,{encode:{y:dr(n)}})]};uA.props={};const fA={line:Ug},dA=t=>(e,n,r,i)=>{const{y:a}=r,o=ds(n,r,Dt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[0,a[c]],u=[1,a[c]];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};dA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:fA,channels:[...mc({shapes:Object.keys(fA)}),{name:"y",required:!0}],preInference:[...gr(),{type:uA}],postInference:[...Or()]};var hA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[0]).y(e=>e[1])(t)}function MU(t,e,n,r,i=0){const[[a,o],[s,c]]=e;if($n(t)){const d=a+n,h=s+r,p=d+i;return[[d,o],[p,o],[p,c],[h,c]]}const l=o-n,u=c-r,f=l-i;return[[a,l],[a,f],[s,f],[s,u]]}const pA=(t,e)=>{const{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,s=hA(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:c}=e;return(l,u,f)=>{const{color:d,connectLength1:h}=f,p=hA(f,["color","connectLength1"]),{color:v,transform:g}=u,y=MU(c,l,r,i,a!=null?a:h),m=fe(Object.assign(Object.assign({},s),f),"endMarker");return je(new ri).call(Ae,p).style("path",SU(y)).style("stroke",v||d).style("transform",g).style("markerEnd",o?new Rn({className:"marker",style:Object.assign(Object.assign({},m),{symbol:wU})}):null).call(Ae,s).node()}};pA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const vA={connector:pA},gA=(...t)=>Xg(...t);gA.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:vA,channels:[...mc({shapes:Object.keys(vA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};function yA(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[`${t}1`]:a}=n;return o=>{var s;const c=((s=r.getBandWidth)===null||s===void 0?void 0:s.call(r,r.invert(+a[o])))||0;return[i[o],a[o]+c]}}function qg(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(r,i,a,o)=>{const s=yA("x",e,a,i.x),c=yA("y",n,a,i.y),l=Array.from(r,u=>{const[f,d]=s(u),[h,p]=c(u);return[[f,h],[d,h],[d,p],[f,p]].map(b=>o.map(b))});return[r,l]}}const mA={range:fs},bA=()=>qg();bA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:mA,channels:[...mc({shapes:Object.keys(mA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};const xA={range:fs},_A=()=>qg({extendY:!0});_A.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:xA,channels:[...mc({shapes:Object.keys(xA)}),{name:"x",required:!0}],preInference:[...gr()],postInference:[...Or()]};const OA={range:fs},wA=()=>qg({extendX:!0});wA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:OA,channels:[...mc({shapes:Object.keys(OA)}),{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};var SA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n,colorAttribute:r}=t,i=SA(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,stroke:f}=l,d=SA(l,["color","stroke"]),{d:h,color:p=u}=c,[v,g]=a.getSize();return je(o.createElement("path",{})).call(Ae,d).style("d",typeof h=="function"?h({width:v,height:g}):h).style(r,p).call(Ae,i).node()}};Zg.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const MA=(t,e)=>Zg(Object.assign({colorAttribute:"fill"},t),e);MA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const EA=(t,e)=>Zg(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);EA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const AA={path:MA,hollow:EA},TA=t=>(e,n,r,i)=>[e,e.map(()=>[[0,0]])];TA.props={defaultShape:"path",defaultLabelShape:"label",shape:AA,composite:!1,channels:[...ii({shapes:Object.keys(AA)}),{name:"d",scale:"identity"}],preInference:[...gr()],postInference:[...Or()]};var EU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{render:n}=t,r=EU(t,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),e)}};PA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CA=()=>(t,e)=>{const{style:n={}}=e;return[t,Dt({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};CA.props={};const AU={shape:PA},kA=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};kA.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:AU,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:qd},{type:Zd},{type:CA}]};var TU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,c=TU(a,["color"]),{color:l=s}=i,[u,...f]=r,d=Wi();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),je(n.createElement("path",{})).call(Ae,c).style("d",d.toString()).style("stroke",l||s).style("fill",l||s).style("fillOpacity",.4).style("transform",o).call(Ae,t).node()}};RA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const LA={density:RA},NA=()=>(t,e,n,r)=>{const{x:i,series:a}=n,o=Object.entries(n).filter(([f])=>f.startsWith("y")).map(([,f])=>f),s=Object.entries(n).filter(([f])=>f.startsWith("size")).map(([,f])=>f);if(i===void 0||o===void 0||s===void 0)throw new Error("Missing encode for x or y or size channel.");const c=e.x,l=e.series,u=Array.from(t,f=>{const d=c.getBandWidth(c.invert(+i[f])),h=l?l.getBandWidth(l.invert(+(a==null?void 0:a[f]))):1,p=d*h,v=(+(a==null?void 0:a[f])||0)*d,g=+i[f]+v+p/2;return[...o.map((m,b)=>[g+ +s[b][f]/t.length,+o[b][f]]),...o.map((m,b)=>[g-+s[b][f]/t.length,+o[b][f]]).reverse()].map(m=>r.map(m))});return[t,u]};NA.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:LA,channels:[...ii({shapes:Object.keys(LA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...gr(),{type:jl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const cpt=gv(3);function PU(t,e=(...r)=>`${r[0]}`,n=16){const r=gv(n);return(...i)=>{const a=e(...i);let o=r.get(a);return r.has(a)?r.get(a):(o=t(...i),r.set(a,o),o)}}function CU(t){return typeof t=="string"?t.split(" ").map(e=>{const[n,r]=e.split(":");return[+n,r]}):t}function Kd(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}const kU=PU((t,e,n)=>{const r=Kd(n,t*2,t*2),i=r.getContext("2d"),a=t,o=t;if(e===1)i.beginPath(),i.arc(a,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const s=i.createRadialGradient(a,o,t*e,a,o,t);s.addColorStop(0,"rgba(0,0,0,1)"),s.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=s,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);function RU(t,e){const r=Kd(e,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return CU(t).forEach(([a,o])=>{i.addColorStop(a,o)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function LU(t,e,n,r,i,a){const{blur:o}=i;let s=r.length;for(;s--;){const{x:c,y:l,value:u,radius:f}=r[s],d=Math.min(u,n),h=c-f,p=l-f,v=kU(f,1-o,a),g=(d-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(v,h,p)}return t}function NU(t,e,n,r,i){const{minOpacity:a,opacity:o,maxOpacity:s,useGradientOpacity:c}=i,l=0,u=0,f=e,d=n,h=t.getImageData(l,u,f,d),p=h.data,v=p.length;for(let g=3;g{const i=t[r];return e(i,r)||(n[r]=i),n},{})}const IA=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=t,c=jU(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:l,createCanvas:u,document:f}=e;return(d,h,p)=>{const{transform:v}=h,[g,y]=l.getSize(),m=d.map(M=>({x:M[0],y:M[1],value:M[2],radius:M[3]})),b=Ei(d,M=>M[2]),_=Mn(d,M=>M[2]),w=g&&y?IU(g,y,b,_,m,DU({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},M=>M===void 0),u):{canvas:null};return je(f.createElement("image",{})).call(Ae,p).style("x",0).style("y",0).style("width",g).style("height",y).style("src",w.canvas).style("transform",v).call(Ae,c).node()}};IA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const jA={heatmap:IA},DA=t=>(e,n,r,i)=>{const{x:a,y:o,size:s,color:c}=r,l=Array.from(e,u=>{const f=s?+s[u]:40;return[...i.map([+a[u],+o[u]]),c[u],f]});return[[0],[l]]};DA.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:jA,channels:[...ii({shapes:Object.keys(jA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...gr(),{type:ls},{type:Ud}],postInference:[...Or(),...yo()]};const BA=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];BA.props={};const FA=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];FA.props={};const zA=t=>new Vr(t);zA.props={};const Qd=Symbol("defaultUnknown");function GA(t,e,n){for(let r=0;r`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}class Jd extends xl{getDefaultOptions(){return{domain:[],range:[],unknown:Qd}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&GA(this.domainIndexMap,this.getDomain(),this.domainKey),WA({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&GA(this.rangeIndexMap,this.getRange(),this.rangeKey),WA({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=HA(n),this.rangeKey=HA(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new Jd(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}}const YA=t=>new Jd(t);YA.props={};function $A({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function BU({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function FU({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function zU(t){return typeof t=="object"?t.valueOf():t}class VA extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=zU,e!==null)for(const[n,r]of e)this.set(n,r)}get(e){return super.get($A({map:this.map,initKey:this.initKey},e))}has(e){return super.has($A({map:this.map,initKey:this.initKey},e))}set(e,n){return super.set(BU({map:this.map,initKey:this.initKey},e),n)}delete(e){return super.delete(FU({map:this.map,initKey:this.initKey},e))}}function GU(t){const e=Math.min(...t);return t.map(n=>n/e)}function WU(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function HU(t){return Math.round(t*1e12)/1e12}function YU(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=WU(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=GU(l),m=y.reduce((j,N)=>j+N),b=g/m,_=new VA(e.map((j,N)=>{const k=y[N]*b;return[j,o?Math.floor(k):k]})),O=new VA(e.map((j,N)=>{const R=y[N]*b+v;return[j,o?Math.floor(R):R]})),w=Array.from(O.values()).reduce((j,N)=>j+N),E=(d-(w-w/c*i))*s,A=u+E;let P=o?Math.round(A):A;const C=new Array(c);for(let j=0;jd+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}class mo extends Jd{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Qd,flex:[]}}constructor(e){super(e)}clone(){return new mo(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=$U({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}}const XA=t=>new mo(t);XA.props={};class th extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:Rv}}map(e){return od(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new th(this.options)}getTicks(){const{domain:e,tickCount:n,tickMethod:r}=this.options,[i,a]=e;return!Zs(i)||!Zs(a)?[]:r(i,a,n)}}const UA=t=>new th(t);UA.props={};class Kg extends mo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Qd,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new Kg(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}const qA=t=>new Kg(t);qA.props={};var ZA=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bo="\\d\\d?",xo="\\d\\d",VU="\\d{3}",XU="\\d{4}",Gl="[^\\s]+",KA=/\[([^]*?)\]/gm;function QA(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function hs(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},eh=hs({},nT),ZU=function(t){return eh=hs(eh,t)},rT=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},yi=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+yi(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+yi(Math.floor(Math.abs(e)/60),2)+":"+yi(Math.abs(e)%60,2)}},iT=function(t){return+t-1},aT=[null,bo],oT=[null,Gl],sT=["isPm",Gl,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],cT=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],QU={D:["day",bo],DD:["day",xo],Do:["day",bo+Gl,function(t){return parseInt(t,10)}],M:["month",bo,iT],MM:["month",xo,iT],YY:["year",xo,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",bo,void 0,"isPm"],hh:["hour",xo,void 0,"isPm"],H:["hour",bo],HH:["hour",xo],m:["minute",bo],mm:["minute",xo],s:["second",bo],ss:["second",xo],YYYY:["year",XU],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",xo,function(t){return+t*10}],SSS:["millisecond",VU],d:aT,dd:aT,ddd:oT,dddd:oT,MMM:["month",Gl,JA("monthNamesShort")],MMMM:["month",Gl,JA("monthNames")],a:sT,A:sT,ZZ:cT,Z:cT},nh={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},JU=function(t){return hs(nh,t)},lT=function(t,e,n){if(e===void 0&&(e=nh.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=nh[e]||e;var r=[];e=e.replace(KA,function(a,o){return r.push(o),"@@@"});var i=hs(hs({},eh),n);return e=e.replace(ZA,function(a){return KU[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};function tq(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=nh[e]||e,t.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(KA,function(_,O){return o.push(rT(O)),"@@@"}),c={},l={};s=rT(s).replace(ZA,function(_){var O=QU[_],w=O[0],M=O[1],E=O[3];if(c[w])throw new Error("Invalid format. "+w+" specified twice in format");return c[w]=!0,E&&(l[E]=!0),a.push(O),"("+M+")"}),Object.keys(l).forEach(function(_){if(!c[_])throw new Error("Invalid format. "+_+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var f=hs(hs({},eh),n),d=1;d11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return y}var lpt={format:lT,parse:tq,defaultI18n:nT,setGlobalDateI18n:ZU,setGlobalDateMasks:JU},upt=null;const Wl=1e3,Hl=Wl*60,Yl=Hl*60,ps=Yl*24,xc=ps*7,uT=ps*30,fT=ps*365;function Zr(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;+g<+u;n(g,p),a(g))h.push(new Date(+g));return h},duration:t}}const eq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),nq=Zr(Wl,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Wl*e)},t=>t.getSeconds()),rq=Zr(Hl,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getMinutes()),iq=Zr(Yl,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getHours()),aq=Zr(ps,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getDate()-1),dT=Zr(uT,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),oq=Zr(xc,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=dT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),sq=Zr(fT,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),hT={millisecond:eq,second:nq,minute:rq,hour:iq,day:aq,week:oq,month:dT,year:sq},cq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),lq=Zr(Wl,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Wl*e)},t=>t.getUTCSeconds()),uq=Zr(Hl,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getUTCMinutes()),fq=Zr(Yl,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getUTCHours()),dq=Zr(ps,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getUTCDate()-1),pT=Zr(uT,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),hq=Zr(xc,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=pT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),pq=Zr(fT,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),vT={millisecond:cq,second:lq,minute:uq,hour:fq,day:dq,week:hq,month:pT,year:pq};function vq(t){const e=t?vT:hT,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function gT(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=vq(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Mv(s,d,0,h,u);let v;if(p===h){const g=B2(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=gT(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u},yq=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=gT(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};function mq(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)+r,r=>new Date(r)]}chooseNice(){return yq}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?vT:hT,i=n?bq:ts;return a=>lT(i(a),e||mq(a,r))}clone(){return new Qg(this.options)}}const yT=t=>new Qg(t);yT.props={};const mT=t=>e=>-t(-e),Jg=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?mT(r):r},ty=(t,e)=>{const n=t===Math.E?Math.exp:r=>wr(t,r);return e?mT(n):n},xq=(t,e,n,r=10)=>{const i=t<0,a=ty(r,i),o=Jg(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2{const i=t<0,a=Jg(r,i),o=ty(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u};class ey extends cd{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:_l,tickMethod:xq,tickCount:5}}chooseNice(){return _q}getTickMethodOptions(){const{domain:e,tickCount:n,base:r}=this.options,i=e[0],a=e[e.length-1];return[i,a,n,r]}chooseTransforms(){const{base:e,domain:n}=this.options,r=n[0]<0;return[Jg(e,r),ty(e,r)]}clone(){return new ey(this.options)}}const bT=t=>new ey(t);bT.props={};const Oq=t=>e=>e<0?-wr(-e,t):wr(e,t),wq=t=>e=>e<0?-wr(-e,1/t):wr(e,1/t),Sq=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class rh extends cd{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:_l,tickMethod:es,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[ts,ts];const n=e===.5?Sq:Oq(e),r=wq(e);return[n,r]}clone(){return new rh(this.options)}}const xT=t=>new rh(t);xT.props={};class ny extends rh{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:_l,tickMethod:es,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new ny(this.options)}}const _T=t=>new ny(t);_T.props={};const OT=t=>new Js(t);OT.props={};const wT=t=>new pd(t);wT.props={};const ST=t=>new hd(t);ST.props={};const Mq=t=>e=>{const n=t(e);return Zs(n)?Math.round(n):n};function Eq(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?Mq(o):o;this.output=Ks(l,c,i,r)},n.prototype.invert=void 0}}var Aq=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},ry;function Tq(t){return[t(0),t(1)]}const Pq=t=>{const[e,n]=t;return Ks(Qs(0,1),ad(e,n))};let iy=ry=class extends Vr{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ts,tickMethod:es,tickCount:5}}constructor(e){super(e)}clone(){return new ry(this.options)}};iy=ry=Aq([Eq(Tq,Pq)],iy);const MT=t=>new iy(t);MT.props={};const ET=t=>new Sl(t);ET.props={};function ay({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:s,alpha90:c,alpha65:l,alpha45:u,alpha25:f,alpha10:d,category10:h,category20:p,sizeDefault:v=1,padding:g="auto",margin:y=16}){return{padding:g,margin:y,size:v,color:t,category10:h,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,strokeWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,strokeWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:d,labelAlign:"horizontal",labelFill:e,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:u,titleFill:e,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[a,a],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:e,tickStrokeOpacity:u},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:l,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}const Cq=ay({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),oy=t=>Dt({},Cq,t);oy.props={};const AT=t=>Dt({},oy(),{category10:"category10",category20:"category20"},t);AT.props={};const kq=ay({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"#141414",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),TT=t=>Dt({},kq,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),PT=t=>Object.assign({},TT(),{category10:"category10",category20:"category20"},t);PT.props={};const Rq=ay({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),CT=t=>Dt({},Rq,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,n)=>n!==0},axisRight:{gridFilter:(e,n)=>n!==0},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);CT.props={};const kT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:50},t))(...e);return q2(n,t),n};kT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"bottom"});function ppt(){}const RT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:10},t))(...e);return q2(n,t),n};RT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"left"});var sy=function(){},Lq=function(t,e,n){var r=t,i=er(e)?e.split("."):e;return i.forEach(function(a,o){o1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=(0,S.CR)(Iq(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Qn(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=(0,S.CR)(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=H_(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return Xs(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:(0,cr.Z)(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:(0,cr.Z)(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(Yi.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?hl(r):co(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width,f=l.height,d=(0,S.CR)(s==="horizontal"?[-180,0]:[-90,90],2),h=d[0],p=d[1];r.setLocalEulerAngles(h),i.setLocalEulerAngles(p);var v=r.getBBox(),g=v.width,y=v.height,m=i.getBBox(),b=m.width,_=m.height,O=Math.max(g,u,b),w=s==="horizontal"?{offset:[[0,0],[g/2+c,0],[g+u+c*2,0]],textAlign:"start"}:{offset:[[O/2,-y-c],[O/2,0],[O/2,_+c]],textAlign:"center"},M=(0,S.CR)(w.offset,3),E=(0,S.CR)(M[0],2),A=E[0],P=E[1],C=(0,S.CR)(M[1],2),j=C[0],N=C[1],k=(0,S.CR)(M[2],2),R=k[0],D=k[1],B=w.textAlign,F=a.querySelector("text");F&&(F.style.textAlign=B),r.setLocalPosition(A,P),a.setLocalPosition(j,N),i.setLocalPosition(R,D)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(Yi.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(Yi.controller,"g");if(Xf(l.node(),c),!!c){var u=en(this.attributes,"button"),f=en(this.attributes,"pageNum"),d=(0,S.CR)(Na(u),2),h=d[0],p=d[1],v=h.size,g=(0,S._T)(h,["size"]),y=!l.select(Yi.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(Yi.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(Yi.prevBtn,"path"),_=l.maybeAppendByClassName(Yi.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node();var O=_.maybeAppendByClassName(Yi.nextBtn,"path");[b,O].forEach(function(M){M.styles((0,S.pi)((0,S.pi)({},g),{transformOrigin:"center"})),hv(M.node(),v,!0)});var w=l.maybeAppendByClassName(Yi.pageInfoGroup,"g");this.pageInfoGroup=w.node(),w.maybeAppendByClassName(Yi.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=qe(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=d_(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(Ie.INSERTED,r),this.playWindow.addEventListener(Ie.REMOVED,r)},e}(Rr),Ai=Bi({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function Dq(t){var e=t.querySelector(Ai.marker.class);return e?e.style:{}}var Bq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new nl({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=(0,S.CR)(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=(0,S.CR)(this.span,2),y=g[0],m=g[1];n=(0,S.CR)([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=(0,S.CR)(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=Dq(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=en(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(Ai.markerGroup,"g").style("zIndex",0),vi(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(Ai.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(lF(s,c),qe(s).styles(a)):(s.remove(),qe(c).attr("className",Ai.marker.name).styles(a),o.appendChild(c)):(qe(c).attr("className",Ai.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),hv(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=en(this.attributes,"label"),i=r.text,a=(0,S._T)(r,["text"]);this.labelGroup=n.maybeAppendByClassName(Ai.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(Ai.label,function(){return Jo(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=en(this.attributes,"value"),a=i.text,o=(0,S._T)(i,["text"]);this.valueGroup=n.maybeAppendByClassName(Ai.valueGroup,"g").style("zIndex",0),vi(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(Ai.value,function(){return Jo(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=en(this.attributes,"background");this.background=n.maybeAppendByClassName(Ai.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(Ai.background,"rect").styles((0,S.pi)({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=(0,S.CR)(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),mv(this.labelGroup.select(Ai.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),mv(this.valueGroup.select(Ai.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=qe(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Rr),vs=Bi({page:"item-page",navigator:"navigator",item:"item"},"items"),LT=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},Fq=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:sy,mouseenter:sy,mouseleave:sy})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=en(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:(0,S.pi)({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=(0,S.CR)(h,2),v=p[0],g=p[1];return[v,Fi(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=(0,S.CR)(this.navigatorShape,1),l=c[0],u=(0,S.CR)(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),_=g%h,O=n.ifHorizontal(d,f),w=[Math.floor(_/O),_%O];i==="vertical"&&w.reverse();var M=(0,S.CR)(w,2),E=M[0],A=M[1],P=(a-l-(d-1)*s)/d,C=v.getBBox().height,j=(0,S.CR)([0,0],2),N=j[0],k=j[1];return i==="horizontal"?(y=(0,S.CR)([p,E*(C+o)],2),N=y[0],k=y[1],p=A===d-1?0:p+P+s):(m=(0,S.CR)([A*(P+s),p],2),N=m[0],k=m[1],p=E===f-1?0:p+C+o),{page:b,index:g,row:E,col:A,pageIndex:_,width:P,height:C,x:N,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=(0,S.CR)(this.navigatorShape,1),c=s[0],l=(0,S.CR)(this.grid,2),u=l[0],f=l[1],d=(0,S.CR)([r-c,i],2),h=d[0],p=d[1],v=(0,S.CR)([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],_=v[4],O=v[5],w=v[6],M=v[7];return this.pageViews.children.map(function(E,A){var P,C,j,N,k=E.getBBox(),R=k.width,D=k.height,B=w===0?0:o,F=w+B+R;if(F<=h&<(_,function(Y){return Y0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return da(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(vs.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(vs.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);qe(n).selectAll(vs.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new Bq({style:u})}).attr("className",vs.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=(0,S.CR)(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(Nq(this.itemsLayout,"page")).map(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=(0,S.ev)([],(0,S.CR)(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Br({className:vs.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),Lq(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=en(this.attributes,"nav"),a=Ra({orientation:r},i),o=this;return n.selectAll(vs.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new jq({style:a})}).attr("className",vs.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(qe(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new Nn(n,{detail:r});this.dispatchEvent(i)},e}(Rr),zq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,EG)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=en(this.attributes,"title"),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Lr.titleGroup,"g").styles(f);var d=(0,S.pi)((0,S.pi)({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Lr.title,function(){return new O2({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=en(this.attributes,"title",!0),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1],d=(0,S.pi)((0,S.pi)({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Lr.itemsGroup,"g").styles((0,S.pi)({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Lr.items.class).data(["items"]).join(function(p){return p.append(function(){return new Fq({style:d})}).attr("className",Lr.items.name).each(function(){h.items=qe(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Qn(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):CF(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=qe(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Rr);function Gq(t){if(ll(t)){var e=t;return e[e.length-1]}}var Wq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?r==null?void 0:r.getOptions().domain:c.data).map((d,h)=>{var p;return i?i.map(d||"point"):((p=s==null?void 0:s.style)===null||p===void 0?void 0:p.shape)||c.defaultShape||"point"});typeof l=="string"&&a.push([l,f])}if(a.length===0)return["point",["point"]];if(a.length===1||!n)return a[0];const{range:o}=n.getOptions();return a.map(([s,c])=>{let l=0;for(let u=0;uc[0]-s[0])[0][1]}function Yq(t,e){const{scales:n,library:r,markState:i}=e,[a,o]=Hq(n,i),{itemMarker:s,itemMarkerSize:c}=t,l=(d,h)=>{var p,v,g;const y=((g=(v=(p=r[`mark.${a}`])===null||p===void 0?void 0:p.props)===null||v===void 0?void 0:v.shape[d])===null||g===void 0?void 0:g.props.defaultMarker)||Gq(d.split(".")),m=typeof c=="function"?c(h):c;return()=>eU(y,{color:h.color})(0,0,m)},u=d=>`${o[d]}`;return ua(n,"shape")&&!s?(d,h)=>l(u(h),d):typeof s=="function"?(d,h)=>{const p=s(d.id,h);return typeof p=="string"?l(p,d):p}:(d,h)=>l(s||u(h),d)}function $q(t){const e=ua(t,"opacity");if(e){const{range:n}=e.getOptions();return(r,i)=>n[i]}}function Vq(t,e){const n=ua(t,"size");return n instanceof th?n.map(NaN)*2:e}function Xq(t,e){const{labelFormatter:n=d=>`${d}`}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=Vq(r,a),s={itemMarker:Yq(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:$q(r)},c=typeof n=="string"?oo(n):n,l=ua(r,"color"),u=Nz(r),f=l?d=>l.map(d):()=>e.theme.color;return Object.assign(Object.assign({},s),{data:u.map(d=>({id:d,label:c(d),color:f(d)}))})}function Uq(t,e,n){const{position:r}=e;if(r==="center"){const{bbox:o}=t,{width:s,height:c}=o;return{width:s,height:c}}const{width:i,height:a}=X2(t,e,n);return{width:i,height:a}}const cy=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:c,itemMarker:l}=t,u=Wq(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return d=>{const{value:h,theme:p}=d,{bbox:v}=h,{width:g,height:y}=Uq(h,t,cy),m=$2(a,n),b=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:g,height:y,layout:c!==void 0?"grid":"flex"},c!==void 0&&{gridCol:c}),f!==void 0&&{gridRow:f}),{titleText:ld(s)}),Xq(t,d)),{legendCategory:_={}}=p,O=ud(Object.assign({},_,b,u)),w=new kz({style:Object.assign(Object.assign({x:v.x,y:v.y,width:v.width,height:v.height},m),{subOptions:O})});return w.appendChild(new zq({className:"legend-category",style:O})),w}};cy.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const NT=t=>()=>new Br;NT.props={};var qq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!i)return d.node().remove();d.node().attr(Object.assign(Object.assign(Object.assign({},IT(0,f.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),l))})}}),jT=t=>({value:e,theme:n})=>{const{x:r,y:i,width:a,height:o}=e.bbox;return new Zq({style:Dt({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};jT.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var ly=function(t){if(typeof t!="object"||t===null)return t;var e;if(Dr(t)){e=[];for(var n=0,r=t.length;no&&(n=(0,S.CR)([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),(0,cr.Z)(i.map(u),s,o)]});return l})}function $l(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return(0,S.ev)([a===n?"M":"L"],(0,S.CR)(i),!1)});return e?r.reverse():r}function ih(t,e){if(e===void 0&&(e=!1),t.length<=2)return $l(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=$l(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=$l(c,!0);l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[["Z"]],!1)}r.push(s)}return r}function iZ(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=ih(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=ih(c,!0),u=a[0];l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[(0,S.ev)(["M"],(0,S.CR)(u),!1),["Z"]],!1)}r.push(s)}return r}var aZ=function(t,e){if(Dr(t)){for(var n,r=1/0,i=0;ir&&(n=a,r=o)}return n}};function DT(t){return t.length===0?[0,0]:[af(aZ(t,function(e){return af(e)||0})),of(oZ(t,function(e){return of(e)||0}))]}function BT(t){for(var e=uy(t),n=e[0].length,r=(0,S.CR)([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var sZ=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=uy(n);return(0,xr.Z)(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?BT(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=(0,S.CR)(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=en(this.attributes,"area"),c=en(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=eZ(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?iZ(p,l,g):rZ(p,l,g):v=nZ(p,o,l,g)}return{lines:p.map(function(y,m){return(0,S.pi)({stroke:n.getColor(m),path:o?ih(y):$l(y)},c)}),areas:v.map(function(y,m){return(0,S.pi)({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=en(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=BT(l));var u=this.createScales(l),f=u.x,d=u.y,h=(0,S.CR)(DT(l),2),p=h[0],v=h[1],g=new Vr({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,_){return b.map(function(O,w){var M=y/l.length,E=function(){return{x:f.map(w)+M*_,y:O>=0?d.map(O):d.map(0),width:M,height:g.map(Math.abs(O))}},A=function(){return{x:f.map(w),y:d.map(O),width:y,height:g.map(m[_][w])}};return(0,S.pi)((0,S.pi)({fill:n.getColor(_)},r),a?A():E())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){_B(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;qe(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new Qq({className:a,style:o}):new Kq({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Dr(r)?r[n%r.length]:gi(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=(0,S.CR)(DT(n),2),v=p[0],g=p[1],y=new Vr({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Vr({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new mo({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Rr),FT=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,(0,S.pi)((0,S.pi)((0,S.pi)({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},la(rO,"handle")),la(eO,"handleIcon")),la(nO,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal(dd(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal(dd(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break;default:break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new Nn("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=en(this.attributes,"sparkline");return(0,S.pi)((0,S.pi)({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=(0,S.CR)(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=(0,S.CR)(zr(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(fa.selection.class).each(function(i,a){Ki(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Ki(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Ki(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=en(this.attributes,"track");this.trackShape=qe(n).maybeAppendByClassName(fa.track,"rect").styles((0,S.pi)((0,S.pi)({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=qe(n).maybeAppendByClassName(fa.brushArea,"rect").styles((0,S.pi)({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=qe(n).maybeAppendByClassName(fa.sparklineGroup,"g");vi(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(fa.sparkline,function(){return new sZ({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(fa.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new iO({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(fa.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=qe(n).maybeAppendByClassName(fa.foreground,"g");var o=en(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(fa.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:(0,S.pi)({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",fa.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=qe(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(this.range,2),o=a[0],s=a[1],c=(0,S.CR)(this.getValues().map(function(g){return fd(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n!=null?n:u],d=(0,S.CR)((f||[l,u]).map(function(g){return fd(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,(0,cr.Z)(p,o,s)];h>p&&(i=(0,S.CR)([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=(0,S.CR)(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=(0,S.CR)(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=en(this.attributes,"handle"),u=en(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new sv({style:(0,S.pi)((0,S.pi)((0,S.pi)({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var _=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-_:_,r}var O=0,w=0,M=this.availableSpace,E=M.width,A=M.height,P=this.calcSelectionArea()[1],C=P.x,j=P.y,N=P.width,k=P.height,R=f+d;if(o==="horizontal"){var D=R+m/2;if(n==="start"){var B=C-R-m;O=B>0?-D:D}else{var F=E-C-N-R>m;O=F?D:-D}}else{var z=R,Y=b+R;n==="start"?w=j-d>b?-Y:z:w=A-(j+k)-d>b?Y:-z}return{x:O,y:w,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=en(this.attributes,"handleLabel");return(0,S.pi)((0,S.pi)((0,S.pi)({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=en(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return(0,S.pi)({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),(0,S.pi)((0,S.pi)((0,S.pi)((0,S.pi)({},la(this.getHandleIconStyle(),"icon")),la((0,S.pi)((0,S.pi)({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=(0,S.CR)(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Nn(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Rr);function cZ(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function _c(t){let e,n,r;t.length!==2?(e=fr,n=(s,c)=>fr(t(s),c),r=(s,c)=>t(s)-c):(e=t===fr||t===cZ?t:lZ,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function lZ(){return 0}function dy(t){return t===null?NaN:+t}function*uZ(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const zT=_c(fr),fZ=zT.right,dZ=zT.left,hZ=_c(dy).center;var pZ=fZ;function vZ(t,e){return Array.from(e,n=>t[n])}function Ba(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=Vl(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>Vl(n[i],n[a]))),vZ(t,r)}return t.sort(GT(n))}function GT(t=fr){if(t===fr)return Vl;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function Vl(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function gZ(t,e,n){return Math.min(n,Math.max(e,t))}function Xl(t){return!!t.getBandWidth}function Oc(t,e,n){if(!Xl(t))return t.invert(e);const{adjustedRange:r}=t,{domain:i}=t.getOptions(),a=n?-1:0,o=t.getStep(),s=n?r:r.map(u=>u+o),c=dZ(s,e),l=gZ(c+a,0,i.length-1);return i[l]}function _o(t,e,n){if(!e)return t.getOptions().domain;if(!Xl(t)){const c=Ba(e);if(!n)return c;const[l]=c,{range:u}=t.getOptions(),[f,d]=u,h=f>d?-1:1,p=t.invert(t.map(l)+h*n);return[l,p]}const{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){const c=a+Math.round(r.length*n);return r.slice(a,c)}const o=e[e.length-1],s=r.indexOf(o);return r.slice(a,s+1)}function ah(t,e,n,r,i,a){const{x:o,y:s}=i,c=(h,p)=>{const[v,g]=a.invert(h);return[Oc(o,v,p),Oc(s,g,p)]},l=c([t,e],!0),u=c([n,r],!1),f=_o(o,[l[0],u[0]]),d=_o(s,[l[1],u[1]]);return[f,d]}function oh(t,e){const[n,r]=t,i=a=>a.getStep?a.getStep():0;return[e.map(n),e.map(r)+i(e)]}function yZ(t,e,n){const{x:r,y:i}=e,[a,o]=t,s=oh(a,r),c=oh(o,i),l=[s[0],c[0]],u=[s[1],c[1]],[f,d]=n.map(l),[h,p]=n.map(u);return[f,d,h,p]}var mZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=mZ(t,["orientation","labelFormatter","size","style","position"]);return s=>{var c;const{scales:[l],value:u,theme:f,coordinate:d}=s,{bbox:h}=u,{width:p,height:v}=h,{slider:g={}}=f,y=((c=l.getFormatter)===null||c===void 0?void 0:c.call(l))||(E=>E+""),m=typeof n=="string"?oo(n):n,b=e==="horizontal",_=$n(d)&&b,{trackSize:O=g.trackSize}=i,[w,M]=bZ(h,a,O);return new FT({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:w,y:M,trackLength:b?p:v,orientation:e,formatter:E=>{const A=m||y,P=_?1-E:E,C=Oc(l,P,!0);return A(C)},sparklineData:_Z(t,s)},i),o))})}};function xZ(t,e){const[n]=Array.from(t.entries()).filter(([i])=>i.type==="line"||i.type==="area").map(([i])=>{const{encode:a,slider:o}=i;if(o!=null&&o.x&&Object.keys(o.x).length===0){const s=c=>{const l=a[c];return[c,l?l.value:void 0]};return Object.fromEntries(e.map(s))}});if(!(n!=null&&n.series))return n==null?void 0:n.y;const r=n.series.reduce((i,a,o)=>(i[a]=i[a]||[],i[a].push(n.y[o]),i),{});return Object.values(r)}function _Z(t,e){const{markState:n}=e;return Dr(t.sparklineData)?t.sparklineData:xZ(n,["y","series"])}Ul.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const WT=t=>Ul(Object.assign(Object.assign({},t),{orientation:"horizontal"}));WT.props=Object.assign(Object.assign({},Ul.props),{defaultPosition:"bottom"});const HT=t=>Ul(Object.assign(Object.assign({},t),{orientation:"vertical"}));HT.props=Object.assign(Object.assign({},Ul.props),{defaultPosition:"left"});var OZ=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Nn("scroll",o)),r.dispatchEvent(new Nn("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=(0,S.CR)(r.getLocalPosition(),2),s=o[0],c=o[1],l=(0,S.CR)(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal(dd(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Nn("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Nn("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Nn("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Nn("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=(0,S.CR)(this.range,2),i=r[0],a=r[1];return(0,cr.Z)(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=(0,S.CR)(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=(0,S.CR)(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=(0,S.CR)(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=en(this.attributes,"track"),l=en(this.attributes,"thumb"),u=(0,S.pi)((0,S.pi)({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},la(c,"track")),la(l,"selection"));this.slider=qe(n).maybeAppendByClassName("scrollbar",function(){return new FT({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=(0,S.CR)(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues((0,cr.Z)(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Rr),wZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,style:r}=t,i=wZ(t,["orientation","labelFormatter","style"]);return({scales:[a],value:o,theme:s})=>{const{bbox:c}=o,{x:l,y:u,width:f,height:d}=c,{scrollbar:h={}}=s,{ratio:p,range:v}=a.getOptions(),g=e==="horizontal"?f:d,y=g/p,[m,b]=v,_=b>m?0:1;return new OZ({className:"g2-scrollbar",style:Object.assign({},h,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:l,y:u,trackLength:g,value:_}),i),{orientation:e,contentLength:y,viewportLength:g}))})}};ql.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const YT=t=>ql(Object.assign(Object.assign({},t),{orientation:"horizontal"}));YT.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"bottom"});const $T=t=>ql(Object.assign(Object.assign({},t),{orientation:"vertical"}));$T.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"left"});const hy=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.01},{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f}];return s.animate(p,Object.assign(Object.assign({},o),t))}},SZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},VT=(t,e)=>{const{coordinate:r}=e;return Dx.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:ce.NUMBER}),(i,a,o)=>{const[s]=i,c=u=>{const{__data__:f,style:d}=u,{radius:h=0,inset:p=0,fillOpacity:v=1,strokeOpacity:g=1,opacity:y=1}=d,{points:m,y:b,y1:_}=f,O=ns(r,m,[b,_]),{innerRadius:w,outerRadius:M}=O,E=Bd().cornerRadius(h).padAngle(p*Math.PI/180),A=new ri({}),P=r.getCenter(),C=k=>{A.attr({d:E(k),transform:`translate(${P[0]}, ${P[1]})`});const R=g0(A);return A.style.transform="",R},j=[{scaleInYRadius:w+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:w+1e-4,fillOpacity:v,strokeOpacity:g,opacity:y,offset:.01},{scaleInYRadius:M,fillOpacity:v,strokeOpacity:g,opacity:y}],N=u.animate(j,Object.assign(Object.assign({},o),t));return N.onframe=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:Number(u.style.scaleInYRadius)}))},N.onfinish=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:M}))},N},l=u=>{const{style:f}=u,{transform:d="",fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=f,[g,y]=$n(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],m=[{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{transform:`${d} scale(1, 1)`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v}];return u.animate(m,Object.assign(Object.assign({},o),t))};return Gn(r)?c(s):l(s)}},MZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},XT=(t,e)=>{Dx.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:ce.NUMBER});const{coordinate:r}=e;return(i,a,o)=>{const[s]=i;if(!Gn(r))return hy(t,e)(i,a,o);const c=r.getCenter(),{__data__:l,style:u}=s,{radius:f=0,inset:d=0,fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=u,{points:g,y,y1:m}=l,b=Bd().cornerRadius(f).padAngle(d*Math.PI/180),_=ns(r,g,[y,m]),{startAngle:O,endAngle:w}=_,M=new ri({}),E=C=>{M.attr({d:b(C),transform:`translate(${c[0]}, ${c[1]})`});const j=g0(M);return M.style.transform="",j},A=[{waveInArcAngle:O+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:O+1e-4,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{waveInArcAngle:w,fillOpacity:h,strokeOpacity:p,opacity:v}],P=s.animate(A,Object.assign(Object.assign({},o),t));return P.onframe=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:Number(s.style.waveInArcAngle)}))},P.onfinish=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:w}))},P}};XT.props={};const UT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))};UT.props={};const qT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:a,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(c,Object.assign(Object.assign({},r),t))};qT.props={};const EZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.01},{transform:`${o} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l}];return a.animate(f,Object.assign(Object.assign({},i),t))},AZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(1)`.trimStart(),transformOrigin:u},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.99},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(f,Object.assign(Object.assign({},i),t))},ZT=t=>(e,n,r)=>{var i,a;const[o]=e,s=((a=(i=o).getTotalLength)===null||a===void 0?void 0:a.call(i))||0,c=[{lineDash:[0,s]},{lineDash:[s,0]}];return o.animate(c,Object.assign(Object.assign({},r),t))};ZT.props={};function wc(t,e){const n={};for(const r of e){const i=t.style[r];i&&(n[r]=i)}return n}const Sc=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function py(t){const{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n,s=o-i,c=a-r;return[r,i,c,s]}function TZ(t){const[e,n,r,i]=t;return` + M ${e} ${n} + L ${e+r} ${n} + L ${e+r} ${n+i} + L ${e} ${n+i} + Z + `}function PZ(t,e){const[n,r,i,a]=py(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v{u.style.transform="none",tv(u,n)},u.style.transform="none",d}function NZ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new ri({style:Object.assign({path:i[o]},wc(t,Sc))});return vy(a,s,a,n)})}function IZ(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new ri({style:{path:i[d],fill:e.style.fill}});return vy(f,f,h,n)}),l]}const tP=t=>(e,n,r)=>{const i=CZ(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return vy(c,c,l,a)}if(o===1&&s>1){const[c]=e;return NZ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return IZ(e,c,a,i)}return null};tP.props={};const eP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,hy(t,e)([c],r,i)};eP.props={};const nP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,VT(t,e)([c],r,i)};nP.props={};var Zl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e.__removed__)}function rP(t,e){return gy(t,e).flatMap(({container:n})=>Oo(n))}function gy(t,e){return e.filter(n=>n!==t&&n.options.parentKey===t.options.key)}function Fa(t){return je(t).select(`.${Df}`).node()}function iP(t){if(t.nodeName!=="rect")return t.getRenderBounds();const{x:e,y:n,width:r,height:i}=t.style;return{min:[e,n],max:[e+r,n+i]}}function yy(t,e){const{offsetX:n,offsetY:r}=e,i=iP(t),{min:[a,o],max:[s,c]}=i,l=ns,u=rc;return l||u?null:[n-a,r-o]}function my(t,e){const{offsetX:n,offsetY:r}=e,[i,a,o,s]=jZ(t);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function jZ(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}function aP(t){return e=>e.__data__.color}function by(t){return e=>e.__data__.x}function gs(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(r=>Array.from(r.markState.keys()).map(a=>[sh(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(sh(o,a))[i]}}function za(t,e=(r,i)=>r,n=(r,i,a)=>r.setAttribute(i,a)){const r="__states__",i="__ordinal__",a=u=>{const{[r]:f=[],[i]:d={}}=u,h=f.reduce((p,v)=>Object.assign(Object.assign({},p),t[v]),d);if(Object.keys(h).length!==0){for(const[p,v]of Object.entries(h)){const g=_V(u,p),y=e(v,u);n(u,p,y),p in d||(d[p]=g)}u[i]=d}},o=u=>{u[r]||(u[r]=[])};return{setState:(u,...f)=>{o(u),u[r]=[...f],a(u)},removeState:(u,...f)=>{o(u);for(const d of f){const h=u[r].indexOf(d);h!==-1&&u[r].splice(h,1)}a(u)},hasState:(u,f)=>(o(u),u[r].indexOf(f)!==-1)}}function DZ(t){return t===void 0?!0:typeof t!="object"?!1:Object.keys(t).length===0}function sh(t,e){return`${t},${e}`}function Mc(t,e){const r=(Array.isArray(t)?t:[t]).flatMap(a=>a.marks.map(o=>[sh(a.key,o.key),o.state])),i={};for(const a of e){const[o,s]=Array.isArray(a)?a:[a,{}];i[o]=r.reduce((c,l)=>{const[u,f={}]=l,d=DZ(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const v=c[h],g=(y,m,b,_)=>{const O=sh(_.__data__.viewKey,_.__data__.markKey);return u!==O?v==null?void 0:v(y,m,b,_):typeof p!="function"?p:p(y,m,b,_)};c[h]=g}return c},{})}return i}function Kl(t,e){const n=new Map(t.map((i,a)=>[i,a])),r=e?t.map(e):t;return(i,a)=>{if(typeof i!="function")return i;const o=n.get(a),s=e?e(a):a;return i(s,o,r,a)}}function oP(t){var{link:e=!1,valueof:n=(u,f)=>u,coordinate:r}=t,i=Zl(t,["link","valueof","coordinate"]);const a="element-link";if(!e)return[()=>{},()=>{}];const o=u=>u.__data__.points,s=(u,f)=>{const[,d,h]=u,[p,,,v]=f;return[d,p,v,h]};return[u=>{var f;if(u.length<=1)return;const d=Ba(u,(h,p)=>{const{x:v}=h.__data__,{x:g}=p.__data__;return v-g});for(let h=1;hn(A,v)),{fill:w=v.getAttribute("fill")}=O,M=Zl(O,["fill"]),E=new ri({className:a,style:Object.assign({d:p.toString(),fill:w,zIndex:-2},M)});(f=v.link)===null||f===void 0||f.remove(),v.parentNode.appendChild(E),v.link=E}},u=>{var f;(f=u.link)===null||f===void 0||f.remove(),u.link=null}]}function sP(t,e,n){const r=i=>{const{transform:a}=t.style;return a?`${a} ${i}`:i};if(Gn(n)){const{points:i}=t.__data__,[a,o]=$n(n)?gd(i):i,s=n.getCenter(),c=ur(a,s),l=ur(o,s),u=Gi(c),f=xO(c,l),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r(`translate(${h}, ${p})`)}return $n(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function cP(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=Zl(t,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const c=(y,m,b)=>{const _=y.invert(m),O=m+y.getBandWidth(_)/2,w=y.getStep(_)/2,M=w*b;return[O-w+M,O+w-M]},l=(y,m)=>{const{x:b}=r;if(!Xl(b))return[0,1];const{__data__:_}=y,{x:O}=_,[w,M]=c(b,O,m);return[w,M]},u=(y,m)=>{const{y:b}=r;if(!Xl(b))return[0,1];const{__data__:_}=y,{y:O}=_,[w,M]=c(b,O,m);return[w,M]},f=(y,m)=>{const{padding:b}=m,[_,O]=l(y,b),[w,M]=u(y,b),E=[[_,w],[O,w],[O,M],[_,M]].map(j=>i.map(j)),{__data__:A}=y,{y:P,y1:C}=A;return XS(e,E,{y:P,y1:C},i,m)},d=(y,m)=>{const{transform:b="scale(1.2, 1.2)",transformOrigin:_="center center",stroke:O=""}=m,w=Zl(m,["transform","transformOrigin","stroke"]),M=Object.assign({transform:b,transformOrigin:_,stroke:O},w),E=y.cloneNode(!0);for(const[A,P]of Object.entries(M))E.style[A]=P;return E},h=()=>{const{x:y,y:m}=r;return[y,m].some(Xl)};return[y=>{y.background&&y.background.remove();const m=so(o,j=>a(j,y)),{fill:b="#CCD6EC",fillOpacity:_=.3,zIndex:O=-2,padding:w=.001,strokeWidth:M=0}=m,E=Zl(m,["fill","fillOpacity","zIndex","padding","strokeWidth"]),A=Object.assign(Object.assign({},E),{fill:b,fillOpacity:_,zIndex:O,padding:w,strokeWidth:M}),C=(h()?f:d)(y,A);C.className=s,y.parentNode.appendChild(C),y.background=C},y=>{var m;(m=y.background)===null||m===void 0||m.remove(),y.background=null},y=>y.className===s]}function wo(t,e){const r=t.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(t.cursor=r.style.cursor,r.style.cursor=e)}function BZ(t){wo(t,t.cursor)}function xy(t,e,n){return t.find(r=>Object.entries(e).every(([i,a])=>n(r)[i]===a))}var FZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Kn(d,r),v=Kl(d,n),[g,y]=oP(Object.assign({elements:d,valueof:v,link:i,coordinate:c},fe(u.active,"link"))),[m,b,_]=cP(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},fe(u.active,"background"))),O=Dt(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...B)=>{const F=u.active.offset(...B),[,z]=B;return sP(d[z],F,c)}})}),{setState:w,removeState:M,hasState:E}=za(O,v);let A;const P=B=>{const{target:F,nativeEvent:z=!0}=B;if(!h.has(F))return;A&&clearTimeout(A);const Y=r(F),q=p.get(Y),rt=new Set(q);for(const st of d)rt.has(st)?E(st,"active")||w(st,"active"):(w(st,"inactive"),y(st)),st!==F&&b(st);m(F),g(q),z&&l.emit("element:highlight",{nativeEvent:z,data:{data:n(F),group:q.map(n)}})},C=()=>{A&&clearTimeout(A),A=setTimeout(()=>{j(),A=null},o)},j=(B=!0)=>{for(const F of d)M(F,"active","inactive"),b(F),y(F);B&&l.emit("element:unhighlight",{nativeEvent:B})},N=B=>{const{target:F}=B;a&&!_(F)||!a&&!h.has(F)||(o>0?C():j())},k=()=>{j()};t.addEventListener("pointerover",P),t.addEventListener("pointerout",N),t.addEventListener("pointerleave",k);const R=B=>{const{nativeEvent:F}=B;F||j(!1)},D=B=>{const{nativeEvent:F}=B;if(F)return;const{data:z}=B.data,Y=xy(d,z,n);Y&&P({target:Y,nativeEvent:!1})};return l.on("element:highlight",D),l.on("element:unhighlight",R),()=>{t.removeEventListener("pointerover",P),t.removeEventListener("pointerout",N),t.removeEventListener("pointerleave",k),l.off("element:highlight",D),l.off("element:unhighlight",R);for(const B of d)b(B),y(B)}}function ch(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=FZ(t,["delay","createGroup","background","link"]);return(o,s,c)=>{const{container:l,view:u,options:f}=o,{scale:d,coordinate:h}=u,p=Fa(l);return zZ(p,Object.assign({elements:Oo,datum:gs(u),groupKey:n?n(u):void 0,coordinate:h,scale:d,state:Mc(f,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:c},a))}}ch.props={reapplyWhenUpdate:!0};function lP(t){return ch(Object.assign(Object.assign({},t),{createGroup:by}))}lP.props={reapplyWhenUpdate:!0};function uP(t){return ch(Object.assign(Object.assign({},t),{createGroup:aP}))}uP.props={reapplyWhenUpdate:!0};var GZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,single:a=!1,coordinate:o,background:s=!1,scale:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Kn(d,r),v=Kl(d,n),[g,y]=oP(Object.assign({link:i,elements:d,valueof:v,coordinate:o},fe(u.selected,"link"))),[m,b]=cP(Object.assign({document:t.ownerDocument,background:s,coordinate:o,scale:c,valueof:v},fe(u.selected,"background"))),_=Dt(u,{selected:Object.assign({},((f=u.selected)===null||f===void 0?void 0:f.offset)&&{transform:(...k)=>{const R=u.selected.offset(...k),[,D]=k;return sP(d[D],R,o)}})}),{setState:O,removeState:w,hasState:M}=za(_,v),E=(k=!0)=>{for(const R of d)w(R,"selected","unselected"),y(R),b(R);k&&l.emit("element:unselect",{nativeEvent:!0})},A=(k,R,D=!0)=>{if(M(R,"selected"))E();else{const B=r(R),F=p.get(B),z=new Set(F);for(const Y of d)z.has(Y)?O(Y,"selected"):(O(Y,"unselected"),y(Y)),Y!==R&&b(Y);if(g(F),m(R),!D)return;l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:[n(R),...F.map(n)]}}))}},P=(k,R,D=!0)=>{const B=r(R),F=p.get(B),z=new Set(F);if(M(R,"selected")){if(!d.some(q=>!z.has(q)&&M(q,"selected")))return E();for(const q of F)O(q,"unselected"),y(q),b(q)}else{const Y=F.some(q=>M(q,"selected"));for(const q of d)z.has(q)?O(q,"selected"):M(q,"selected")||O(q,"unselected");!Y&&i&&g(F),m(R)}D&&l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:d.filter(Y=>M(Y,"selected")).map(n)}}))},C=k=>{const{target:R,nativeEvent:D=!0}=k;return h.has(R)?a?A(k,R,D):P(k,R,D):E()};t.addEventListener("click",C);const j=k=>{const{nativeEvent:R,data:D}=k;if(R)return;const B=a?D.data.slice(0,1):D.data;for(const F of B){const z=xy(d,F,n);C({target:z,nativeEvent:!1})}},N=()=>{E(!1)};return l.on("element:select",j),l.on("element:unselect",N),()=>{for(const k of d)y(k);t.removeEventListener("click",C),l.off("element:select",j),l.off("element:unselect",N)}}function lh(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=GZ(t,["createGroup","background","link"]);return(a,o,s)=>{const{container:c,view:l,options:u}=a,{coordinate:f,scale:d}=l,h=Fa(c);return WZ(h,Object.assign({elements:Oo,datum:gs(l),groupKey:e?e(l):void 0,coordinate:f,scale:d,state:Mc(u,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:s},i))}}lh.props={reapplyWhenUpdate:!0};function fP(t){return lh(Object.assign(Object.assign({},t),{createGroup:by}))}fP.props={reapplyWhenUpdate:!0};function dP(t){return lh(Object.assign(Object.assign({},t),{createGroup:aP}))}dP.props={reapplyWhenUpdate:!0};var ys=function(t,e,n){var r,i,a,o,s=0;n||(n={});var c=function(){s=n.leading===!1?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var u=Date.now();!s&&n.leading===!1&&(s=u);var f=e-(u-s);return i=this,a=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l};function HZ(t){const{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(a=>a.type==="fisheye");if(r)return r;const i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}function YZ({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,c=Fa(s),l=ys(u=>{const f=yy(c,u);if(!f){o("fisheye"),a();return}o("fisheye",d=>{const h=Dt({},d,{interaction:{tooltip:{preserve:!0}}});for(const y of h.marks)y.animate=!1;const[p,v]=f,g=HZ(h);return g.focusX=p,g.focusY=v,g.visual=!0,h}),a()},t,{leading:e,trailing:n});return c.addEventListener("pointerenter",l),c.addEventListener("pointermove",l),c.addEventListener("pointerleave",l),()=>{c.removeEventListener("pointerenter",l),c.removeEventListener("pointermove",l),c.removeEventListener("pointerleave",l)}}}var $Z=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},VZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii.type==="normalizeY");if(n)return n;const r={type:"normalizeY"};return e.push(r),t.transform=e,r}function UZ(t,e,n){const[r]=Array.from(t.entries()).filter(([i])=>i.type===e).map(([i])=>{const{encode:a}=i,o=s=>{const c=a[s];return[s,c?c.value:void 0]};return Object.fromEntries(n.map(o))});return r}function hP(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=t,a=VZ(t,["wait","leading","trailing","labelFormatter"]);return o=>{const{view:s,container:c,update:l,setState:u}=o,{markState:f,scale:d,coordinate:h}=s,p=UZ(f,"line",["x","y","series"]);if(!p)return;const{y:v,x:g,series:y=[]}=p,m=v.map((B,F)=>F),b=Ba(m.map(B=>g[B])),_=Fa(c),O=c.getElementsByClassName(Ca),w=c.getElementsByClassName(V0),E=Kn(w,B=>B.__data__.key.split("-")[0]),A=new rl({style:Object.assign({x1:0,y1:0,x2:0,y2:_.getAttribute("height"),stroke:"black",lineWidth:1},fe(a,"rule"))}),P=new Zi({style:Object.assign({x:0,y:_.getAttribute("height"),text:"",fontSize:10},fe(a,"label"))});A.append(P),_.appendChild(A);const C=(B,F,z)=>{const[Y]=B.invert(z),q=F.invert(Y);return b[hZ(b,q)]},j=(B,F)=>{A.setAttribute("x1",B[0]),A.setAttribute("x2",B[0]),P.setAttribute("text",i(F))};let N;const k=B=>$Z(this,void 0,void 0,function*(){const{x:F}=d,z=C(h,F,B);j(B,z),u("chartIndex",q=>{const rt=Dt({},q),st=rt.marks.find(Lt=>Lt.type==="line"),Yt=Mn(Z0(m,Lt=>Mn(Lt,le=>+v[le])/Ei(Lt,le=>+v[le]),Lt=>y[Lt]).values()),qt=[1/Yt,Yt];Dt(st,{scale:{y:{domain:qt}}});const Rt=XZ(st);Rt.groupBy="color",Rt.basis=(Lt,le)=>{const ue=Lt[_c(we=>g[+we]).center(Lt,z)];return le[ue]};for(const Lt of rt.marks)Lt.animate=!1;return rt}),N=(yield l("chartIndex")).view}),R=B=>{const{scale:F,coordinate:z}=N,{x:Y,y:q}=F,rt=C(z,Y,B);j(B,rt);for(const st of O){const{seriesIndex:At,key:Yt}=st.__data__,qt=At[_c(ze=>g[+ze]).center(At,rt)],Rt=[0,q.map(1)],Lt=[0,q.map(v[qt]/v[At[0]])],[,le]=z.map(Rt),[,ue]=z.map(Lt),we=le-ue;st.setAttribute("transform",`translate(0, ${we})`);const Ue=E.get(Yt)||[];for(const ze of Ue)ze.setAttribute("dy",we)}},D=ys(B=>{const F=yy(_,B);F&&R(F)},e,{leading:n,trailing:r});return k([0,0]),_.addEventListener("pointerenter",D),_.addEventListener("pointermove",D),_.addEventListener("pointerleave",D),()=>{A.remove(),_.removeEventListener("pointerenter",D),_.removeEventListener("pointermove",D),_.removeEventListener("pointerleave",D)}}}hP.props={reapplyWhenUpdate:!0};function Ql(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function uh(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function pP(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function qZ(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(n,r){return n.charAt(0)==="\\"?n.slice(1):e[r]===void 0?"":e[r]})}var ZZ=qZ;function KZ(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),function(n,r,i){var a=i.value,o;typeof a=="function"&&(i.value=function(){for(var s=[],c=0;c'),title:'
'),item:'
  • + + + {name} + + {value} +
  • `)},style:QZ(o)})||this,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"position",{set:function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1];this.attributes.x=i,this.attributes.y=a,this.updatePosition()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=(0,S._T)(a,["name","color","index"]),h=(0,S.pi)({name:c,color:u,index:f!=null?f:o},d);return pP(ZZ(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this,a=n!==void 0&&r!==void 0;if(a){var o=this.element.style.transition;this.element.style.transition="none",this.position=[n!=null?n:+this.attributes.x,r!=null?r:+this.attributes.y],setTimeout(function(){i.element.style.transition=o},10)}this.element.style.visibility="visible"},e.prototype.hide=function(){this.element.style.visibility="hidden"},e.prototype.initShape=function(){var n=this.attributes.template;this.element=pP(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=_y(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,(0,S.ev)([],(0,S.CR)(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}MB(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=(0,S.CR)(d,2),v=p[0],g=p[1],y=(0,S.CR)(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor()))},e.prototype.autoPosition=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=o.y,l=o.bounding,u=o.position;if(!l)return[i,a];var f=this.element,d=f.offsetWidth,h=f.offsetHeight,p=(0,S.CR)([+s+i,+c+a],2),v=p[0],g=p[1],y={left:"right",right:"left",top:"bottom",bottom:"top"},m=l.x,b=l.y,_=l.width,O=l.height,w={left:vm+_,top:gb+O},M=[];u.split("-").forEach(function(A){w[A]?M.push(y[A]):M.push(A)});var E=M.join("-");return this.getRelativeOffsetFromCursor(E)},e.tag="tooltip",(0,S.gn)([KZ(100,!0)],e.prototype,"updatePosition",null),e}(Rr),Jl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{color:o=mP(t)}=a,s=Jl(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(yP);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function iK(t,e){const{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e,s=c=>c&&c.invert&&!(c instanceof mo)&&!(c instanceof Sl);if(s(r))return r.clone().invert(o);if(o&&r instanceof mo&&r.invert(o)!==a&&!i)return r.invert(o);if(s(n)){const c=n.invert(a);return Array.isArray(c)?null:c}return null}function mP(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&e!=="transparent"?e:n}=r;return i}function bP(t,e=n=>n){const n=new Map(t.map(r=>[e(r),r]));return Array.from(n.values())}function xP(t,e,n,r=t.map(a=>a.__data__),i={}){const a=c=>c instanceof Date?+c:c,o=bP(r.map(c=>c.title),a).filter(In),s=r.flatMap((c,l)=>{const u=t[l],{items:f=[],title:d}=c,h=f.filter(In),p=n!==void 0?n:f.length<=1;return h.map(v=>{var{color:g=mP(u)||i.color,name:y}=v,m=Jl(v,["color","name"]);const b=iK(e,c),_=p?b||y:y||b;return Object.assign(Object.assign({},m),{color:g,name:_||d})})}).map(yP);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:bP(s,c=>`(${a(c.name)}, ${a(c.value)}, ${a(c.color)})`)})}function aK(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:s,startY:c,transposed:l,polar:u,insetLeft:f,insetTop:d}=n,h=Jl(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),v=e.map(A=>A[1]),g=e.map(A=>A[0]),y=Ql(v),m=Ql(g),b=()=>{if(u){const A=Math.min(a,o)/2,P=s+f+a/2,C=c+d+o/2,j=Gi(ur([m,y],[P,C])),N=P+A*Math.cos(j),k=C+A*Math.sin(j);return[P,N,C,k]}return l?[s,s+r,y+c,y+c]:[m+s,m+s,c,c+i]},[_,O,w,M]=b(),E=()=>{const A=new rl({style:Object.assign({x1:_,x2:O,y1:w,y2:M},p)});return t.appendChild(A),A};if(g.length>0){const A=t.ruleY||E();A.style.x1=_,A.style.x2=O,A.style.y1=w,A.style.y2=M,t.ruleY=A}}function _P(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function oK(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(a=>a.remove());const i=e.filter(a=>{const[{x:o,y:s}]=a;return In(o)&&In(s)}).map(a=>{const[{color:o,element:s},c]=a,l=o||s.style.fill||s.style.stroke||r.color;return new nl({style:Object.assign({cx:c[0],cy:c[1],fill:l,r:4,stroke:"#fff",strokeWidth:2},n)})});for(const a of i)t.appendChild(a);t.markers=i}function OP(t){t.markers&&(t.markers.forEach(e=>e.remove()),t.markers=[])}function wP(t,e){return Array.from(t.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[e]})}function wy(t,e){return t===void 0?e:t}function SP(t){const{title:e,items:n}=t;return n.length===0&&e===void 0}function sK(t){return Array.from(t.values()).some(e=>{var n;return((n=e.interaction)===null||n===void 0?void 0:n.seriesTooltip)&&e.tooltip})}function MP(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:s,render:c,groupName:l,emitter:u,wait:f=50,leading:d=!0,trailing:h=!1,startX:p=0,startY:v=0,body:g=!0,single:y=!0,position:m,enterable:b,mount:_,bounding:O,theme:w,disableNative:M=!1,marker:E=!0,preserve:A=!1,style:P={},css:C={}}=e,j=Jl(e,["elements","sort","filter","scale","coordinate","crosshairs","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);const N=n(t),k=$n(o),R=Gn(o),D=Dt(P,j),{innerWidth:B,innerHeight:F,width:z,height:Y,insetLeft:q,insetTop:rt}=o.getOptions(),st=[],At=[];for(const An of N){const{__data__:_n}=An,{seriesX:ar,title:Tn,items:Ar}=_n;ar?st.push(An):(Tn||Ar)&&At.push(An)}const qt=!!(k?a.y:a.x).getBandWidth&&At.length>0;st.sort((An,_n)=>{const ar=k?0:1,Tn=Ar=>Ar.getBounds().min[ar];return k?Tn(_n)-Tn(An):Tn(An)-Tn(_n)});const Rt=An=>{const _n=k?1:0,{min:ar,max:Tn}=An.getLocalBounds();return Ba([ar[_n],Tn[_n]])};At.sort((An,_n)=>{const[ar,Tn]=Rt(An),[Ar,Ir]=Rt(_n),ki=(ar+Tn)/2,Ri=(Ar+Ir)/2;return k?Ri-ki:ki-Ri});const Lt=new Map(st.map(An=>{const{__data__:_n}=An,{seriesX:ar}=_n,Tn=ar.map((Ir,ki)=>ki),Ar=Ba(Tn,Ir=>ar[+Ir]);return[An,[Ar,ar]]})),{x:le}=a,ue=le!=null&&le.getBandWidth?le.getBandWidth()/2:0,we=An=>{const[_n]=o.invert(An);return _n-ue},Ue=(An,_n,ar)=>{const Tn=we(An),Ar=ar.filter(In),[Ir,ki]=Ba([Ar[0],Ar[Ar.length-1]]);if(!qt&&(Tnki))return null;const Ri=_c(Co=>ar[+Co]).center,ra=Ri(_n,Tn);return _n[ra]},ze=(An,_n)=>{const Tn=An[k?1:0],Ar=_n.filter(Ri=>{const[ra,Co]=Rt(Ri);return Tn>=ra&&Tn<=Co});if(!qt||Ar.length>0)return Ar;const Ir=_c(Ri=>{const[ra,Co]=Rt(Ri);return(ra+Co)/2}).center,ki=Ir(_n,Tn);return[_n[ki]].filter(In)},Je=(An,_n)=>{const{__data__:ar}=An;return Object.fromEntries(Object.entries(ar).filter(([Tn])=>Tn.startsWith("series")&&Tn!=="series").map(([Tn,Ar])=>{const Ir=Ar[_n];return[x_(Tn.replace("series","")),Ir]}))},hn=ys(An=>{const _n=yy(t,An);if(!_n)return;const ar=iP(t),Tn=ar.min[0],Ar=ar.min[1],Ir=[_n[0]-p,_n[1]-v];if(!Ir)return;const ki=ze(Ir,At),Ri=[],ra=[];for(const Tr of st){const[ju,p1]=Lt.get(Tr),G3=Ue(Ir,ju,p1);if(G3!==null){Ri.push(Tr);const W3=Je(Tr,G3),{x:Qlt,y:Jlt}=W3,tut=o.map([(Qlt||0)+ue,Jlt||0]);ra.push([Object.assign(Object.assign({},W3),{element:Tr}),tut])}}const Co=Array.from(new Set(ra.map(Tr=>Tr[0].x))),Zlt=Co[uh(Co,Tr=>Math.abs(Tr-we(Ir)))],h1=ra.filter(Tr=>Tr[0].x===Zlt),Klt=[...h1.map(Tr=>Tr[0]),...ki.map(Tr=>Tr.__data__)],z3=[...Ri,...ki],Iu=xP(z3,a,l,Klt,w);if(r&&Iu.items.sort((Tr,ju)=>r(Tr)-r(ju)),i&&(Iu.items=Iu.items.filter(i)),z3.length===0||SP(Iu)){xn();return}if(g&&gP({root:t,data:Iu,x:_n[0]+Tn,y:_n[1]+Ar,render:c,event:An,single:y,position:m,enterable:b,mount:_,bounding:O,css:C}),s){const Tr=h1.map(p1=>p1[1]),ju=fe(D,"crosshairs");aK(t,Tr,Object.assign(Object.assign({},ju),{plotWidth:B,plotHeight:F,mainWidth:z,mainHeight:Y,insetLeft:q,insetTop:rt,startX:p,startY:v,transposed:k,polar:R}))}if(E){const Tr=fe(D,"marker");oK(t,{data:h1,style:Tr,theme:w})}u.emit("tooltip:show",Object.assign(Object.assign({},An),{nativeEvent:!0,data:{data:{x:Oc(a.x,we(Ir),!0)}}}))},f,{leading:d,trailing:h}),xn=()=>{So({root:t,single:y,emitter:u}),s&&_P(t),E&&OP(t)},Un=()=>{Oy({root:t,single:y}),s&&_P(t),E&&OP(t)},mr=({nativeEvent:An,data:_n})=>{if(An)return;const{x:ar}=_n.data,{x:Tn}=a,Ar=Tn.map(ar),[Ir,ki]=o.map([Ar,.5]),{min:[Ri,ra]}=t.getRenderBounds();hn({offsetX:Ir+Ri,offsetY:ki+ra})},xi=()=>{So({root:t,single:y,emitter:u,nativeEvent:!1})},Va=()=>{Ui(),Un()},ws=()=>{si()},si=()=>{M||(t.addEventListener("pointerenter",hn),t.addEventListener("pointermove",hn),t.addEventListener("pointerleave",xn))},Ui=()=>{M||(t.removeEventListener("pointerenter",hn),t.removeEventListener("pointermove",hn),t.removeEventListener("pointerleave",xn))};return si(),u.on("tooltip:show",mr),u.on("tooltip:hide",xi),u.on("tooltip:disable",Va),u.on("tooltip:enable",ws),()=>{Ui(),u.off("tooltip:show",mr),u.off("tooltip:hide",xi),u.off("tooltip:disable",Va),u.off("tooltip:enable",ws),A?So({root:t,single:y,emitter:u,nativeEvent:!1}):Un()}}function cK(t,{elements:e,scale:n,render:r,groupName:i,sort:a,filter:o,emitter:s,wait:c=50,leading:l=!0,trailing:u=!1,groupKey:f=A=>A,single:d=!0,position:h,enterable:p,datum:v,view:g,mount:y,bounding:m,theme:b,shared:_=!1,body:O=!0,disableNative:w=!1,preserve:M=!1,css:E={}}){const A=e(t),P=new Set(A),C=Kn(A,f),j=ys(Y=>{const{target:q}=Y;if(!P.has(q)){So({root:t,single:d,emitter:s});return}const rt=f(q),st=C.get(rt),At=st.length===1&&!_?rK(st[0]):xP(st,n,i,void 0,b);if(a&&At.items.sort((Rt,Lt)=>a(Rt)-a(Lt)),o&&(At.items=At.items.filter(o)),SP(At)){So({root:t,single:d,emitter:s});return}const{offsetX:Yt,offsetY:qt}=Y;O&&gP({root:t,data:At,x:Yt,y:qt,render:r,event:Y,single:d,position:h,enterable:p,mount:y,bounding:m,css:E}),s.emit("tooltip:show",Object.assign(Object.assign({},Y),{nativeEvent:!0,data:{data:GO(q,g)}}))},c,{leading:l,trailing:u}),N=Y=>{const{target:q}=Y;P.has(q)&&So({root:t,single:d,emitter:s})},k=()=>{w||(t.addEventListener("pointerover",j),t.addEventListener("pointermove",j),t.addEventListener("pointerout",N))},R=()=>{w||(t.removeEventListener("pointerover",j),t.removeEventListener("pointermove",j),t.removeEventListener("pointerout",N))},D=({nativeEvent:Y,data:q})=>{if(Y)return;const rt=xy(A,q.data,v);if(!rt)return;const st=rt.getBBox(),{x:At,y:Yt,width:qt,height:Rt}=st;j({target:rt,offsetX:At+qt/2,offsetY:Yt+Rt/2})},B=({nativeEvent:Y}={})=>{Y||So({root:t,single:d,emitter:s,nativeEvent:!1})},F=()=>{R(),Oy({root:t,single:d})},z=()=>{k()};return s.on("tooltip:show",D),s.on("tooltip:hide",B),s.on("tooltip:enable",z),s.on("tooltip:disable",F),k(),()=>{R(),s.off("tooltip:show",D),s.off("tooltip:hide",B),M?So({root:t,single:d,emitter:s,nativeEvent:!1}):Oy({root:t,single:d})}}function EP(t){const{shared:e,crosshairs:n,series:r,name:i,item:a=()=>({}),facet:o=!1}=t,s=Jl(t,["shared","crosshairs","series","name","item","facet"]);return(c,l,u)=>{const{container:f,view:d}=c,{scale:h,markState:p,coordinate:v,theme:g}=d,y=wP(p,"seriesTooltip"),m=wP(p,"crosshairs"),b=Fa(f),_=wy(r,y);if(_&&sK(p)&&!o)return MP(b,Object.assign(Object.assign({},s),{theme:g,elements:Oo,scale:h,coordinate:v,crosshairs:wy(n,m),item:a,emitter:u}));if(_&&o){const O=l.filter(C=>C!==c&&C.options.parentKey===c.options.key),w=rP(c,l),M=O[0].view.scale,E=b.getBounds(),A=E.min[0],P=E.min[1];return Object.assign(M,{facet:!0}),MP(b.parentNode.parentNode,Object.assign(Object.assign({},s),{theme:g,elements:()=>w,scale:M,coordinate:v,crosshairs:wy(n,m),item:a,startX:A,startY:P,emitter:u}))}return cK(b,Object.assign(Object.assign({},s),{datum:gs(d),elements:Oo,scale:h,coordinate:v,groupKey:e?by(d):void 0,item:a,emitter:u,view:d,theme:g,shared:e}))}}EP.props={reapplyWhenUpdate:!0};var dh=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const AP="legend-category",lK="legend-continuous",uK="items-item",fK="legend-category-item-marker",dK="legend-category-item-label";function TP(t){return t.getElementsByClassName(fK)[0]}function PP(t){return t.getElementsByClassName(dK)[0]}function CP(t){return t.getElementsByClassName(uK)}function kP(t){return t.getElementsByClassName(AP)}function hK(t){return t.getElementsByClassName(lK)}function Sy(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function vpt(t){let e=t;for(;e&&!e.attr("class").startsWith("legend");)e=e.children[0];return e.attributes}function pK(t,{legends:e,marker:n,label:r,datum:i,filter:a,emitter:o,channel:s,state:c={}}){const l=new Map,u=new Map,f=new Map,{unselected:d={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,h={unselected:fe(d,"marker")},p={unselected:fe(d,"label")},{setState:v,removeState:g}=za(h,void 0),{setState:y,removeState:m}=za(p,void 0),b=Array.from(e(t));let _=b.map(i);const O=()=>{for(const E of b){const A=i(E),P=n(E),C=r(E);_.includes(A)?(g(P,"unselected"),m(C,"unselected")):(v(P,"unselected"),y(C,"unselected"))}};for(const E of b){const A=()=>{wo(t,"pointer")},P=()=>{BZ(t)},C=j=>dh(this,void 0,void 0,function*(){const N=i(E),k=_.indexOf(N);k===-1?_.push(N):_.splice(k,1),_.length===0&&_.push(...b.map(i)),yield a(_),O();const{nativeEvent:R=!0}=j;R&&(_.length===b.length?o.emit("legend:reset",{nativeEvent:R}):o.emit("legend:filter",Object.assign(Object.assign({},j),{nativeEvent:R,data:{channel:s,values:_}})))});E.addEventListener("click",C),E.addEventListener("pointerenter",A),E.addEventListener("pointerout",P),l.set(E,C),u.set(E,A),f.set(E,P)}const w=E=>dh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;if(A)return;const{data:P}=E,{channel:C,values:j}=P;C===s&&(_=j,yield a(_),O())}),M=E=>dh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;A||(_=b.map(i),yield a(_),O())});return o.on("legend:filter",w),o.on("legend:reset",M),()=>{for(const E of b)E.removeEventListener("click",l.get(E)),E.removeEventListener("pointerenter",u.get(E)),E.removeEventListener("pointerout",f.get(E)),o.off("legend:filter",w),o.off("legend:reset",M)}}function vK(t,{legend:e,filter:n,emitter:r,channel:i}){const a=({detail:{value:o}})=>{n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",a),()=>{e.removeEventListener("valuechange",a)}}function RP(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return dh(this,void 0,void 0,function*(){const{view:c,update:l,setState:u}=t;u(e,f=>{const{marks:d}=f,h=d.map(p=>{if(p.type==="legends")return p;const{transform:v=[]}=p,g=v.findIndex(({type:b})=>b.startsWith("group")||b.startsWith("bin")),y=[...v];y.splice(g+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const m=Object.fromEntries(a.map(b=>[b,{domain:c.scale[b].getOptions().domain}]));return Dt({},p,Object.assign(Object.assign({transform:y,scale:m},!i&&{animate:!1}),{legend:s?!1:Object.fromEntries(o.map(b=>[b,{preserve:!0}]))}))});return Object.assign(Object.assign({},f),{marks:h})}),yield l()})}function gK(t,e){for(const n of t)RP(n,Object.assign(Object.assign({},e),{facet:!0}))}function yK(){return(t,e,n)=>{const{container:r}=t,i=e.filter(f=>f!==t),a=i.length>0,o=f=>Sy(f).scales.map(d=>d.name),s=[...kP(r),...hK(r)],c=s.flatMap(o),l=a?ys(gK,50,{trailing:!0}):ys(RP,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=Sy(f).scales[0],p=o(f),v={legend:f,channel:d,channels:p,allChannels:c};return f.className===AP?pK(r,{legends:CP,marker:TP,label:PP,datum:g=>{const{__data__:y}=g,{index:m}=y;return h[m]},filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!0});l(a?i:t,y)},state:f.attributes.state,channel:d,emitter:n}):vK(r,{legend:f,filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!1});l(a?i:t,y)},emitter:n,channel:d})});return()=>{u.forEach(f=>f())}}}function mK(){return(t,e,n)=>{const{container:r,view:i,options:a}=t,o=kP(r),s=Oo(r),c=h=>Sy(h).scales[0].name,l=h=>{const{scale:{[h]:p}}=i;return p},u=Mc(a,["active","inactive"]),f=Kl(s,gs(i)),d=[];for(const h of o){const p=Y=>{const{data:q}=h.attributes,{__data__:rt}=Y,{index:st}=rt;return q[st].label},v=c(h),g=CP(h),y=l(v),m=Kn(s,Y=>y.invert(Y.__data__[v])),{state:b={}}=h.attributes,{inactive:_={}}=b,{setState:O,removeState:w}=za(u,f),M={inactive:fe(_,"marker")},E={inactive:fe(_,"label")},{setState:A,removeState:P}=za(M),{setState:C,removeState:j}=za(E),N=Y=>{for(const q of g){const rt=TP(q),st=PP(q);q===Y||Y===null?(P(rt,"inactive"),j(st,"inactive")):(A(rt,"inactive"),C(st,"inactive"))}},k=(Y,q)=>{const rt=p(q),st=new Set(m.get(rt));for(const Yt of s)st.has(Yt)?O(Yt,"active"):O(Yt,"inactive");N(q);const{nativeEvent:At=!0}=Y;At&&n.emit("legend:highlight",Object.assign(Object.assign({},Y),{nativeEvent:At,data:{channel:v,value:rt}}))},R=new Map;for(const Y of g){const q=rt=>{k(rt,Y)};Y.addEventListener("pointerover",q),R.set(Y,q)}const D=Y=>{for(const rt of s)w(rt,"inactive","active");N(null);const{nativeEvent:q=!0}=Y;q&&n.emit("legend:unhighlight",{nativeEvent:q})},B=Y=>{const{nativeEvent:q,data:rt}=Y;if(q)return;const{channel:st,value:At}=rt;if(st!==v)return;const Yt=g.find(qt=>p(qt)===At);Yt&&k({nativeEvent:!1},Yt)},F=Y=>{const{nativeEvent:q}=Y;q||D({nativeEvent:!1})};h.addEventListener("pointerleave",D),n.on("legend:highlight",B),n.on("legend:unhighlight",F);const z=()=>{h.removeEventListener(D),n.off("legend:highlight",B),n.off("legend:unhighlight",F);for(const[Y,q]of R)Y.removeEventListener(q)};d.push(z)}return()=>d.forEach(h=>h())}}var Ti=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii||ca||l{const e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:s={},handleSize:c=10,document:l}=e,u=Ti(e,["x","y","width","height","class","renders","handleSize","document"]);if(!l||i===void 0||a===void 0||n===void 0||r===void 0)return;const f=c/2,d=(At,Yt,qt)=>{At.handle||(At.handle=qt.createElement("rect"),At.append(At.handle));const{handle:Rt}=At;return Rt.attr(Yt),Rt},h=fe(ev(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,v=Ti(h,["render"]),g=fe(u,"handleE"),{render:y=d}=g,m=Ti(g,["render"]),b=fe(ev(u,"handleSE","handleSW"),"handleS"),{render:_=d}=b,O=Ti(b,["render"]),w=fe(u,"handleW"),{render:M=d}=w,E=Ti(w,["render"]),A=fe(u,"handleNW"),{render:P=d}=A,C=Ti(A,["render"]),j=fe(u,"handleNE"),{render:N=d}=j,k=Ti(j,["render"]),R=fe(u,"handleSE"),{render:D=d}=R,B=Ti(R,["render"]),F=fe(u,"handleSW"),{render:z=d}=F,Y=Ti(F,["render"]),q=(At,Yt)=>{const{id:qt}=At,Rt=At.attributes,{x:Lt,y:le}=Rt,ue=Ti(Rt,["x","y"]),we=Yt(At,Object.assign({x:0,y:0},ue),l);we.id=qt,we.style.draggable=!0},rt=At=>()=>{const Yt=rc(qt=>q(qt,At));return new Yt({})},st=je(t).attr("className",o).style("x",n).style("y",r).style("draggable",!0);st.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(Ga,Object.assign({width:i,height:a},ev(u,"handle"))),st.maybeAppend("handle-n",rt(p)).style("x",f).style("y",-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,v),st.maybeAppend("handle-e",rt(y)).style("x",i-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,m),st.maybeAppend("handle-s",rt(_)).style("x",f).style("y",a-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,O),st.maybeAppend("handle-w",rt(M)).style("x",-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,E),st.maybeAppend("handle-nw",rt(P)).style("x",-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,C),st.maybeAppend("handle-ne",rt(N)).style("x",i-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,k),st.maybeAppend("handle-se",rt(D)).style("x",i-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,B),st.maybeAppend("handle-sw",rt(z)).style("x",-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,Y)});function My(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=_K(t),brushRegion:c=(Rt,Lt,le,ue,we)=>[Rt,Lt,le,ue],reverse:l=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=Ti(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let v=null,g=null,y=null,m=null,b=null,_=!1;const[O,w,M,E]=s;wo(t,"crosshair"),t.style.draggable=!0;const A=(Rt,Lt,le)=>{if(a(le),m&&m.remove(),b&&b.remove(),v=[Rt,Lt],l)return P();C()},P=()=>{b=new ri({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),m=new LP({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(m)},C=()=>{m=new LP({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(m)},j=(Rt=!0)=>{m&&m.remove(),b&&b.remove(),v=null,g=null,y=null,_=!1,m=null,b=null,r(Rt)},N=(Rt,Lt,le=!0)=>{const[ue,we,Ue,ze]=xK(Rt[0],Rt[1],Lt[0],Lt[1],s),[Je,hn,xn,Un]=c(ue,we,Ue,ze,s);return l?R(Je,hn,xn,Un):k(Je,hn,xn,Un),n(Je,hn,xn,Un,le),[Je,hn,xn,Un]},k=(Rt,Lt,le,ue)=>{m.style.x=Rt,m.style.y=Lt,m.style.width=le-Rt,m.style.height=ue-Lt},R=(Rt,Lt,le,ue)=>{b.style.d=` + M${O},${w}L${M},${w}L${M},${E}L${O},${E}Z + M${Rt},${Lt}L${Rt},${ue}L${le},${ue}L${le},${Lt}Z + `,m.style.x=Rt,m.style.y=Lt,m.style.width=le-Rt,m.style.height=ue-Lt},D=Rt=>{const Lt=(hn,xn,Un,mr,xi)=>hn+xnxi?xi-Un:hn,le=Rt[0]-y[0],ue=Rt[1]-y[1],we=Lt(le,v[0],g[0],O,M),Ue=Lt(ue,v[1],g[1],w,E),ze=[v[0]+we,v[1]+Ue],Je=[g[0]+we,g[1]+Ue];N(ze,Je)},B={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},F=Rt=>Y(Rt)||z(Rt),z=Rt=>{const{id:Lt}=Rt;return h.indexOf(Lt)===-1?!1:new Set(Object.keys(B)).has(Lt)},Y=Rt=>Rt===m.getElementById("selection"),q=Rt=>{const{target:Lt}=Rt,[le,ue]=my(t,Rt);if(!m||!F(Lt)){A(le,ue,Rt),_=!0;return}F(Lt)&&(y=[le,ue])},rt=Rt=>{const{target:Lt}=Rt,le=my(t,Rt);if(!v)return;if(!y)return N(v,le);if(Y(Lt))return D(le);const[ue,we]=[le[0]-y[0],le[1]-y[1]],{id:Ue}=Lt;if(B[Ue]){const[ze,Je,hn,xn]=B[Ue].vector;return N([v[0]+ue*ze,v[1]+we*Je],[g[0]+ue*hn,g[1]+we*xn])}},st=Rt=>{if(y){y=null;const{x:Ue,y:ze,width:Je,height:hn}=m.style;v=[Ue,ze],g=[Ue+Je,ze+hn],o(Ue,ze,Ue+Je,ze+hn,Rt);return}g=my(t,Rt);const[Lt,le,ue,we]=N(v,g);_=!1,i(Lt,le,ue,we,Rt)},At=Rt=>{const{target:Lt}=Rt;m&&!F(Lt)&&j()},Yt=Rt=>{const{target:Lt}=Rt;!m||!F(Lt)||_?wo(t,"crosshair"):Y(Lt)?wo(t,"move"):z(Lt)&&wo(t,B[Lt.id].cursor)},qt=()=>{wo(t,"default")};return t.addEventListener("dragstart",q),t.addEventListener("drag",rt),t.addEventListener("dragend",st),t.addEventListener("click",At),t.addEventListener("pointermove",Yt),t.addEventListener("pointerleave",qt),{mask:m,move(Rt,Lt,le,ue,we=!0){m||A(Rt,Lt,{}),v=[Rt,Lt],g=[le,ue],N([Rt,Lt],[le,ue],we)},remove(Rt=!0){m&&j(Rt)},destroy(){m&&j(!1),wo(t,"default"),t.removeEventListener("dragstart",q),t.removeEventListener("drag",rt),t.removeEventListener("dragend",st),t.removeEventListener("click",At),t.removeEventListener("pointermove",Yt),t.removeEventListener("pointerleave",qt)}}}function Ey(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function OK(t,e,n){return Ey(t,e,n).map(r=>Fa(r.container))}function wK(t,e,n){return Ey(t,e,n).map(r=>r.options)}function NP(t,e){var{elements:n,selectedHandles:r,siblings:i=rt=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=rt=>rt,bboxOf:h=rt=>{const{x:st,y:At,width:Yt,height:qt}=rt.style;return{x:st,y:At,width:Yt,height:qt}},state:p={},emitter:v}=e,g=Ti(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),_=Kl(y,a),O=fe(g,"mask"),{setState:w,removeState:M}=za(p,_),E=new Map,{width:A,height:P,x:C=0,y:j=0}=h(t),N=s||[0,0,A,P],k=()=>{for(const rt of[...y,...b])M(rt,"active","inactive")},R=(rt,st,At,Yt)=>{var qt;for(const Lt of m)(qt=Lt.brush)===null||qt===void 0||qt.remove();const Rt=new Set;for(const Lt of y){const{min:le,max:ue}=Lt.getLocalBounds(),[we,Ue]=le,[ze,Je]=ue;bK([we,Ue,ze,Je],[rt,st,At,Yt])?(w(Lt,"active"),Rt.add(d(Lt))):w(Lt,"inactive")}for(const Lt of b)Rt.has(d(Lt))?w(Lt,"active"):w(Lt,"inactive")},D=()=>{for(const rt of y)M(rt,"inactive");for(const rt of E.values())rt.remove();E.clear()},B=(rt,st,At,Yt)=>{const qt=Rt=>{const Lt=Rt.cloneNode();return Lt.__data__=Rt.__data__,Rt.parentNode.appendChild(Lt),E.set(Rt,Lt),Lt};for(const Rt of y){const Lt=E.get(Rt)||qt(Rt);Lt.style.clipPath=new Xo({style:{x:rt+C,y:st+j,width:At-rt,height:Yt-st}}),w(Rt,"inactive"),w(Lt,"active")}},F=My(t,Object.assign(Object.assign({},O),{extent:N,brushRegion:o,reverse:c,selectedHandles:r,brushended:rt=>{const st=f?D:k;rt&&v.emit("brush:remove",{nativeEvent:!0}),st()},brushed:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);qt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:Rt}}),(f?B:R)(rt,st,At,Yt)},brushcreated:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);v.emit("brush:end",Object.assign(Object.assign({},qt),{nativeEvent:!0,data:{selection:Rt}}))},brushupdated:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);v.emit("brush:end",Object.assign(Object.assign({},qt),{nativeEvent:!0,data:{selection:Rt}}))},brushstarted:rt=>{v.emit("brush:start",rt)}})),z=({nativeEvent:rt,data:st})=>{if(rt)return;const{selection:At}=st,[Yt,qt,Rt,Lt]=yZ(At,l,u);F.move(Yt,qt,Rt,Lt,!1)};v.on("brush:highlight",z);const Y=({nativeEvent:rt}={})=>{rt||F.remove(!1)};v.on("brush:remove",Y);const q=F.destroy.bind(F);return F.destroy=()=>{v.off("brush:highlight",z),v.off("brush:remove",Y),q()},F}function Ay(t){var{facet:e,brushKey:n}=t,r=Ti(t,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:c,options:l}=i,u=Fa(s),f={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:p}=c;if(e){const g=u.getBounds(),y=g.min[0],m=g.min[1],b=g.max[0],_=g.max[1];return NP(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>rP(i,a),datum:gs(gy(i,a).map(O=>O.view)),brushRegion:(O,w,M,E)=>[O,w,M,E],extent:[y,m,b,_],state:Mc(gy(i,a).map(O=>O.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const v=NP(u,Object.assign(Object.assign({elements:Oo,key:g=>g.__data__.key,siblings:()=>OK(i,a,n),datum:gs([c,...Ey(i,a,n).map(g=>g.view)]),brushRegion:(g,y,m,b)=>[g,y,m,b],extent:void 0,state:Mc([l,...wK(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=v,()=>v.destroy()}}function Ty(t,e,n,r,i){const[,a,,o]=i;return[t,a,n,o]}function SK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Ty,selectedHandles:["handle-e","handle-w"]}))}function Py(t,e,n,r,i){const[a,,o]=i;return[a,e,o,r]}function MK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Py,selectedHandles:["handle-n","handle-s"]}))}var Cy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[-1/0,v,1/0,y]:(p,v,g,y)=>[Math.floor(l-r),v,Math.ceil(f-r),y]}}function RK(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=Cy(e,["offsetY","offsetX","cross"]);const o=DP(t),s=jP(t),[,c]=s.getLocalBounds().min,[l,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:Ty,hotZone:new Xo({className:IP,style:Object.assign({x:l,width:f-l,y:i?u:c-h,height:i?h:h*2},a)}),extent:i?(p,v,g,y)=>[p,-1/0,g,1/0]:(p,v,g,y)=>[p,Math.floor(u-n),g,Math.ceil(d-n)]}}function LK(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:s,offsetX:c,reverse:l=!1,state:u={},emitter:f,coordinate:d}=e,h=Cy(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(t),v=n(t),g=Kl(p,o),{setState:y,removeState:m}=za(u,g),b=new Map,_=fe(h,"mask"),O=z=>Array.from(b.values()).every(([Y,q,rt,st])=>z.some(([At,Yt])=>At>=Y&&At<=rt&&Yt>=q&&Yt<=st)),w=v.map(z=>z.attributes.scale),M=z=>z.length>2?[z[0],z[z.length-1]]:z,E=new Map,A=()=>{E.clear();for(let z=0;z{const q=[];for(const st of p){const At=i(st);O(At)?(y(st,"active"),q.push(st)):y(st,"inactive")}if(E.set(z,j(q,z)),!Y)return;const rt=()=>{if(!N)return Array.from(E.values());const st=[];for(const[At,Yt]of E){const qt=w[At],{name:Rt}=qt.getOptions();Rt==="x"?st[0]=Yt:st[1]=Yt}return st};f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:rt()}})},C=z=>{for(const Y of p)m(Y,"active","inactive");A(),z&&f.emit("brushAxis:remove",{nativeEvent:!0})},j=(z,Y)=>{const q=w[Y],{name:rt}=q.getOptions(),st=z.map(At=>{const Yt=At.__data__;return q.invert(Yt[rt])});return M(_o(q,st))},N=v.some(a)&&v.some(z=>!a(z)),k=[];for(let z=0;z{const{nativeEvent:Y}=z;Y||k.forEach(q=>q.remove(!1))},D=(z,Y,q)=>{const[rt,st]=z,At=Rt=>Rt.getStep?Rt.getStep():0,Yt=B(rt,Y,q),qt=B(st,Y,q)+At(Y);return a(q)?[Yt,-1/0,qt,1/0]:[-1/0,Yt,1/0,qt]},B=(z,Y,q)=>{const{height:rt,width:st}=d.getOptions(),At=Y.clone();return a(q)?At.update({range:[0,st]}):At.update({range:[rt,0]}),At.map(z)},F=z=>{const{nativeEvent:Y}=z;if(Y)return;const{selection:q}=z.data;for(let rt=0;rt{k.forEach(z=>z.destroy()),f.off("brushAxis:remove",R),f.off("brushAxis:highlight",F)}}function NK(t){return(e,n,r)=>{const{container:i,view:a,options:o}=e,s=Fa(i),{x:c,y:l}=s.getBBox(),{coordinate:u}=a;return LK(i,Object.assign({elements:Oo,axes:PK,offsetY:l,offsetX:c,points:f=>f.__data__.points,horizontal:f=>{const{startPos:[d,h],endPos:[p,v]}=f.attributes;return d!==p&&h===v},datum:gs(a),state:Mc(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var IK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},BP=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{timeStamp:r}=n;return e!==null&&r-e{if(w)return;const{selection:E}=M;n(E,{nativeEvent:!1})};return s.on("brush:filter",O),()=>{m.destroy(),s.off("brush:filter",O),t.removeEventListener("click",_)}}function ky(t){var{hideX:e=!0,hideY:n=!0}=t,r=BP(t,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:c,options:l,update:u,setState:f}=i,d=Fa(s),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let p=!1,v=!1,g=c;const{scale:y,coordinate:m}=c;return DK(d,Object.assign(Object.assign({brushRegion:(b,_,O,w)=>[b,_,O,w],selection:(b,_,O,w)=>{const{scale:M,coordinate:E}=g;return ah(b,_,O,w,M,E)},filter:(b,_)=>IK(this,void 0,void 0,function*(){if(v)return;v=!0;const[O,w]=b;f("brushFilter",E=>{const{marks:A}=E,P=A.map(C=>Dt({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},C,{scale:{x:{domain:O,nice:!1},y:{domain:w,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:P,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},_),{data:{selection:[O,w]}})),g=(yield u()).view,v=!1,p=!0}),reset:b=>{if(v||!p)return;const{scale:_}=c,{x:O,y:w}=_,M=O.getOptions().domain,E=w.getOptions().domain;o.emit("brush:filter",Object.assign(Object.assign({},b),{data:{selection:[M,E]}})),p=!1,g=c,f("brushFilter"),u()},extent:void 0,emitter:o,scale:y,coordinate:m},h),r))}}function BK(t){return ky(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Ty}))}function FK(t){return ky(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Py}))}var zK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const GK="slider";function WK(t,e,n,r=!1,i="x",a="y"){const{marks:o}=t,s=o.map(c=>{var l,u;return Dt({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},c,{scale:e,[n]:Object.assign(Object.assign({},((l=c[n])===null||l===void 0?void 0:l[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),((u=c[n])===null||u===void 0?void 0:u[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:s,clip:!0,animate:!1})}function HK(t,e,n){const[r,i]=t,a=n?c=>1-c:c=>c,o=Oc(e,a(r),!0),s=Oc(e,a(i),!1);return _o(e,[o,s])}function hh(t){return[t[0],t[t.length-1]]}function FP({initDomain:t={},className:e=GK,prefix:n="slider",setValue:r=(c,l)=>c.setValues(l),hasState:i=!1,wait:a=50,leading:o=!0,trailing:s=!1}){return(c,l,u)=>{const{container:f,view:d,update:h,setState:p}=c,v=f.getElementsByClassName(e);if(!v.length)return()=>{};let g=!1;const{scale:y,coordinate:m,layout:b}=d,{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M}=b,{x:E,y:A}=y,P=$n(m),C=R=>{const D=R==="vertical"?"y":"x",B=R==="vertical"?"x":"y";return P?[B,D]:[D,B]},j=new Map,N=new Set,k={x:t.x||E.getOptions().domain,y:t.y||A.getOptions().domain};for(const R of v){const{orientation:D}=R.attributes,[B,F]=C(D),z=`${n}${ao(B)}:filter`,Y=B==="x",{ratio:q}=E.getOptions(),{ratio:rt}=A.getOptions(),st=qt=>{if(qt.data){const{selection:we}=qt.data,[Ue=hh(k.x),ze=hh(k.y)]=we;return Y?[_o(E,Ue,q),_o(A,ze,rt)]:[_o(A,ze,rt),_o(E,Ue,q)]}const{value:Rt}=qt.detail,Lt=y[B],le=HK(Rt,Lt,P&&D==="horizontal"),ue=k[F];return[le,ue]},At=ys(qt=>zK(this,void 0,void 0,function*(){if(g)return;g=!0;const{nativeEvent:Rt=!0}=qt,[Lt,le]=st(qt);if(k[B]=Lt,k[F]=le,Rt){const ue=Y?Lt:le,we=Y?le:Lt;u.emit(z,Object.assign(Object.assign({},qt),{nativeEvent:Rt,data:{selection:[hh(ue),hh(we)]}}))}p(R,ue=>Object.assign(Object.assign({},WK(ue,{[B]:{domain:Lt,nice:!1}},n,i,B,F)),{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M})),yield h(),g=!1}),a,{leading:o,trailing:s}),Yt=qt=>{const{nativeEvent:Rt}=qt;if(Rt)return;const{data:Lt}=qt,{selection:le}=Lt,[ue,we]=le;R.dispatchEvent(new Nn("valuechange",{data:Lt,nativeEvent:!1}));const Ue=Y?oh(ue,E):oh(we,A);r(R,Ue)};u.on(z,Yt),R.addEventListener("valuechange",At),j.set(R,At),N.add([z,Yt])}return h(),()=>{for(const[R,D]of j)R.removeEventListener("valuechange",D);for(const[R,D]of N)u.off(R,D)}}}const zP="g2-scrollbar";function YK(t={}){return(e,n,r)=>{const{view:i,container:a}=e;if(!a.getElementsByClassName(zP).length)return()=>{};const{scale:s}=i,{x:c,y:l}=s,u={x:[...c.getOptions().domain],y:[...l.getOptions().domain]};return c.update({domain:c.getOptions().expectedDomain}),l.update({domain:l.getOptions().expectedDomain}),FP(Object.assign(Object.assign({},t),{initDomain:u,className:zP,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0])}))(e,n,r)}}var $K=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i${e}`}const XK={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function GP(t){return t.nodeName!=="text"?!1:!!t.isOverflowing()}function WP(t){var{offsetX:e=8,offsetY:n=8}=t,r=$K(t,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,c=fe(r,"tip"),l=new Set,u=d=>{const{target:h}=d;if(!GP(h)){d.stopPropagation();return}const{offsetX:p,offsetY:v}=d,g=p+e-o,y=v+n-s;if(h.tip){h.tip.style.x=g,h.tip.style.y=y;return}const{text:m}=h.style,b=new xf({className:"poptip",style:{innerHTML:VK("div",m,Object.assign(Object.assign({},XK),c)),x:g,y}});a.appendChild(b),h.tip=b,l.add(b)},f=d=>{const{target:h}=d;if(!GP(h)){d.stopPropagation();return}h.tip&&(h.tip.remove(),h.tip=null,l.delete(h.tip))};return a.addEventListener("pointerover",u),a.addEventListener("pointerout",f),()=>{a.removeEventListener("pointerover",u),a.removeEventListener("pointerout",f),l.forEach(d=>d.remove())}}}WP.props={reapplyWhenUpdate:!0};var UK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(s=>{var{data:c,x:l,y:u,width:f,height:d}=s,h=UK(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:Iv(c,o),x:l!=null?l:n,y:u!=null?u:r,width:f!=null?f:i,height:d!=null?d:a})})};HP.props={};var qK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,s,c,l]=n==="col"?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((v,g)=>v+g),f=t[s]-i*(e.length-1),d=r.map(v=>f*(v/u)),h=[];let p=t[o]||0;for(let v=0;v{const{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,s=(c,l)=>{var u;if(c===void 0||!i)return{};const f=Kn(n,p=>p[c]),d=((u=r==null?void 0:r[l])===null||u===void 0?void 0:u.domain)||Array.from(f.keys()),h=d.map(p=>f.has(p)?f.get(p).length:1);return{domain:d,flex:h}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:a===void 0?null:{position:"top"}},a===void 0&&{paddingInner:0}),s(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:o===void 0?null:{position:"right"}},o===void 0&&{paddingInner:0}),s(o,"y"))}}}),Ry=tc(t=>{const{data:e,scale:n}=t,r=[t];let i,a,o;for(;r.length;){const f=r.shift(),{children:d,encode:h={},scale:p={},legend:v={}}=f,{color:g}=h,{color:y}=p,{color:m}=v;g!==void 0&&(i=g),y!==void 0&&(a=y),m!==void 0&&(o=m),Array.isArray(d)&&r.push(...d)}const s=()=>{var f;const d=(f=n==null?void 0:n.color)===null||f===void 0?void 0:f.domain;if(d!==void 0)return[d];if(i===void 0)return[void 0];const h=typeof i=="function"?i:v=>v[i],p=e.map(h);return p.some(v=>typeof v=="number")?[Ia(p)]:[Array.from(new Set(p)),"ordinal"]},c=typeof i=="string"?i:"",[l,u]=s();return{encode:{color:i},scale:{color:Dt({},a,{domain:l,type:u})},legend:{color:Dt({title:c},o)}}}),Ly=tc(()=>({animate:{enterType:"fadeIn"}})),Ny=ec(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),Iy=ec(()=>({type:"cell"})),$P=ec(t=>{const{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{const{data:r,encode:i}=t,{x:a,y:o}=i,s=a?Array.from(new Set(r.map(u=>u[a]))):[],c=o?Array.from(new Set(r.map(u=>u[o]))):[];return(()=>{if(s.length&&c.length){const u=[];for(const f of s)for(const d of c)u.push({[a]:f,[o]:d});return u}if(s.length)return s.map(u=>({[a]:u}));if(c.length)return c.map(u=>({[o]:u}))})()}}]}}}),VP=ec((t,e=QK,n=JK,r=tQ,i={})=>{const{data:a,encode:o,children:s,scale:c,x:l=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:v}=o,{color:g}=c,{domain:y}=g;return{children:(b,_,O)=>{const{x:w,y:M}=_,{paddingLeft:E,paddingTop:A,marginLeft:P,marginTop:C}=O,{domain:j}=w.getOptions(),{domain:N}=M.getOptions(),k=Zo(b),R=b.map(e),D=b.map(({x:rt,y:st})=>[w.invert(rt),M.invert(st)]),F=D.map(([rt,st])=>At=>{const{[p]:Yt,[v]:qt}=At;return(p!==void 0?Yt===rt:!0)&&(v!==void 0?qt===st:!0)}).map(rt=>h.filter(rt)),z=f?Mn(F,rt=>rt.length):void 0,Y=D.map(([rt,st])=>({columnField:p,columnIndex:j.indexOf(rt),columnValue:rt,columnValuesLength:j.length,rowField:v,rowIndex:N.indexOf(st),rowValue:st,rowValuesLength:N.length})),q=Y.map(rt=>Array.isArray(s)?s:[s(rt)].flat(1));return k.flatMap(rt=>{const[st,At,Yt,qt]=R[rt],Rt=Y[rt],Lt=F[rt];return q[rt].map(ue=>{var we,Ue,{scale:ze,key:Je,facet:hn=!0,axis:xn={},legend:Un={}}=ue,mr=ZK(ue,["scale","key","facet","axis","legend"]);const xi=((we=ze==null?void 0:ze.y)===null||we===void 0?void 0:we.guide)||xn.y,Va=((Ue=ze==null?void 0:ze.x)===null||Ue===void 0?void 0:Ue.guide)||xn.x,ws={x:{tickCount:p?5:void 0},y:{tickCount:v?5:void 0}},si=hn?Lt:Lt.length===0?[]:h,Ui={color:{domain:y}},An={x:XP(Va,n)(Rt,si),y:XP(xi,r)(Rt,si)};return Object.assign(Object.assign({key:`${Je}-${rt}`,data:si,margin:0,x:st+E+l+P,y:At+A+u+C,parentKey:d,width:Yt,height:qt,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!si.length,dataDomain:z,scale:Dt(ws,ze,Ui),axis:Dt({},xn,An),legend:!1},mr),i)})})}}});function QK(t){const{points:e}=t;return Dv(e)}function ph(t,e){return e.length?Dt({title:!1,tick:null,label:null},t):Dt({title:!1,tick:null,label:null,grid:null},t)}function JK(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return ph(t,n);const s=a!==o-1?!1:void 0,c=n.length?void 0:null;return Dt({title:s,grid:c},t)}}function tQ(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;if(i!==0)return ph(t,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return Dt({title:a,grid:o},t)}}function XP(t,e){return typeof t=="function"?t:t===null||t===!1?()=>null:e(t)}const UP=()=>t=>[tu.of(t).call(Iy).call(Ry).call(Ly).call(KK).call(Ny).call($P).call(VP).value()];UP.props={};var jy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),nQ=ec(t=>{const{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(s,c,l)=>{const{x:u,y:f}=c,{paddingLeft:d,paddingTop:h,marginLeft:p,marginTop:v}=l,{domain:g}=u.getOptions(),{domain:y}=f.getOptions(),m=Zo(s),b=s.map(({points:M})=>Dv(M)),_=s.map(({x:M,y:E})=>[u.invert(M),f.invert(E)]),O=_.map(([M,E])=>({columnField:M,columnIndex:g.indexOf(M),columnValue:M,columnValuesLength:g.length,rowField:E,rowIndex:y.indexOf(E),rowValue:E,rowValuesLength:y.length})),w=O.map(M=>Array.isArray(n)?n:[n(M)].flat(1));return m.flatMap(M=>{const[E,A,P,C]=b[M],[j,N]=_[M],k=O[M];return w[M].map(D=>{var B,F;const{scale:z,key:Y,encode:q,axis:rt,interaction:st}=D,At=jy(D,["scale","key","encode","axis","interaction"]),Yt=(B=z==null?void 0:z.y)===null||B===void 0?void 0:B.guide,qt=(F=z==null?void 0:z.x)===null||F===void 0?void 0:F.guide,Rt={x:{facet:!1},y:{facet:!1}},Lt={x:iQ(qt)(k,e),y:aQ(Yt)(k,e)},le={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:e,parentKey:a,key:`${Y}-${M}`,x:E+d+r+p,y:A+h+i+v,width:P,height:C,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:Dt(Rt,z),axis:Dt(le,rt,Lt),legend:!1,encode:Dt({},q,{x:j,y:N}),interaction:Dt({},st,{legendFilter:!1})},At)})})}}}),rQ=ec(t=>{const{encode:e}=t,n=jy(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=jy(e,["position","x","y"]),s=[];for(const c of[i].flat(1))for(const l of[a].flat(1))s.push({$x:c,$y:l});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},[i].flat(1).length===1&&{x:{paddingInner:0}}),[a].flat(1).length===1&&{y:{paddingInner:0}})})});function iQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{rowIndex:r,rowValuesLength:i}=e;if(r!==i-1)return ph(t,n)}}function aQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{columnIndex:r}=e;if(r!==0)return ph(t,n)}}const oQ=()=>t=>[tu.of(t).call(Iy).call(Ry).call(nQ).call(rQ).call(Ly).call(Ny).call(eQ).value()];var sQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),lQ=tc(t=>({coordinate:{type:"polar"}})),uQ=t=>{const{encode:e}=t,n=sQ(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function qP(t){return e=>null}function fQ(t){const{points:e}=t,[n,r,i,a]=e,o=Jn(n,a),s=ur(n,a),c=ur(r,i),l=xO(s,c),u=1/Math.sin(l/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=nc(s)+l/2,y=f*u,m=h+y*Math.sin(g),b=p-y*Math.cos(g);return[m-d/2,b-d/2,d,d]}const dQ=()=>t=>[tu.of(t).call(Iy).call(uQ).call(Ry).call(lQ).call($P).call(VP,fQ,qP,qP,{frame:!1}).call(Ly).call(Ny).call(cQ).value()];function hQ(t,e,n){const i=n,a=[0,i],o=[-i+1,-0+1];if(t==="normal")return a;if(t==="reverse")return o;if(t==="alternate")return e%2===0?a:o;if(t==="reverse-alternate")return e%2===0?o:a}function pQ(t,e,n){const r=[t];for(;r.length;){const i=r.pop();i.animate=Dt({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},i.animate||{});const{children:a}=i;Array.isArray(a)&&r.push(...a)}return t}const ZP=()=>t=>{const{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||o===0)return[];const{key:s}=e[0],c=e.map(l=>Object.assign(Object.assign({},l),{key:s})).map(l=>pQ(l,n,a));return function*(){let l=0,u;for(;r==="infinite"||l{var s;return[o,(s=un(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>In(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(Kn(e,a).values())}function KP(t){return Array.isArray(t)?mQ(t):typeof t=="function"?yQ(t):t==="series"?gQ:t==="value"?bQ:t==="sum"?xQ:t==="maxIndex"?_Q:()=>null}function QP(t,e){for(const n of t)n.sort(e)}function JP(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function vQ(t){return Array.isArray(t)?t:[t]}function gQ(t,e,n){return eu(r=>n[r])}function yQ(t){return(e,n,r)=>eu(i=>t(e[i]))}function mQ(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:fr(e[i][s],e[a][s]),0)}function bQ(t,e,n){return eu(r=>e[r])}function xQ(t,e,n){const r=Zo(t),i=Array.from(Kn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return eu(o=>a.get(n[o]))}function _Q(t,e,n){const r=Zo(t),i=Array.from(Kn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,ic(s,c=>e[c])]));return eu(o=>a.get(n[o]))}function eu(t){return(e,n)=>fr(t(e),t(n))}const tC=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=un(u,"y"),[p,v]=un(u,"y1"),[g]=o?Il(u,"series","color"):un(u,"color"),y=Mo(e,s,c),b=KP(n)(l,d,g);b&&QP(y,b);const _=new Array(s.length),O=new Array(s.length),w=new Array(s.length),M=[],E=[];for(const N of y){r&&N.reverse();const k=p?+p[N[0]]:0,R=[],D=[];for(const st of N){const At=w[st]=+d[st]-k;At<0?D.push(st):At>=0&&R.push(st)}const B=R.length>0?R:D,F=D.length>0?D:R;let z=R.length-1,Y=0;for(;z>0&&d[B[z]]===0;)z--;for(;Y0?rt=_[st]=(O[st]=rt)+At:_[st]=O[st]=rt}}const A=new Set(M),P=new Set(E),C=i==="y"?_:O,j=a==="y"?_:O;return[s,Dt({},c,{encode:{y0:Nd(d,h),y:dr(C,h),y1:dr(j,v)},style:Object.assign({first:(N,k)=>A.has(k),last:(N,k)=>P.has(k)},f)})]}};tC.props={};function eC(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function OQ(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function nC(t,e){const n=OQ(t,e);return n&&Math.sqrt(n)}function wQ(t,e,n){const r=eC(t),i=nC(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}var rC=Array.prototype,SQ=rC.slice,gpt=rC.map;function Dy(t){return()=>t}const MQ=Math.sqrt(50),EQ=Math.sqrt(10),AQ=Math.sqrt(2);function vh(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=MQ?10:a>=EQ?5:a>=AQ?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function CQ(t){return Math.max(1,Math.ceil(Math.log(eC(t))/Math.LN2)+1)}function kQ(){var t=sl,e=Ia,n=CQ;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Ia){const O=nu(f,d,_);isFinite(O)&&(O>0?d=(Math.floor(d/O)+1)*O:O<0&&(d=(Math.ceil(d*-O)+1)/-O))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;an;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));By(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(ru(t,n,e),i(t[r],a)>0&&ru(t,n,r);o0;)--s}i(t[n],a)===0?ru(t,n,s):(++s,ru(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function ru(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function RQ(t,e=fr){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?fr(o,i)>0:fr(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function gh(t,e,n){if(t=Float64Array.from(uZ(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Ei(t);if(e>=1)return Mn(t);var r,i=(r-1)*e,a=Math.floor(i),o=Mn(By(t,a).subarray(0,a+1)),s=Ei(t.subarray(a+1));return o+(s-o)*(i-a)}}function mpt(t,e,n=number){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}}function LQ(t,e,n=dy){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>dy(n(t[c],c,t))),e<=0)return uh(r);if(e>=1)return ic(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return By(i,o,0,a,(s,c)=>Vl(r[s],r[c])),o=RQ(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function Fy(t,e){return gh(t,.5,e)}function NQ(t,e){return LQ(t,.5,e)}var IQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function jQ(t){if(typeof t=="function")return[t,null];const n={mean:DQ,max:FQ,count:GQ,first:HQ,last:YQ,sum:WQ,min:zQ,median:BQ}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function DQ(){const t=(n,r)=>Ql(n,i=>+r[i]),e=Eo("mean");return[t,e]}function BQ(){const t=(n,r)=>Fy(n,i=>+r[i]),e=Eo("median");return[t,e]}function FQ(){const t=(n,r)=>Mn(n,i=>+r[i]),e=Eo("max");return[t,e]}function zQ(){const t=(n,r)=>Ei(n,i=>+r[i]),e=Eo("min");return[t,e]}function GQ(){const t=(n,r)=>n.length,e=Eo("count");return[t,e]}function WQ(){const t=(n,r)=>Di(n,i=>+r[i]),e=Eo("sum");return[t,e]}function HQ(){const t=(n,r)=>r[n[0]],e=Eo("first");return[t,e]}function YQ(){const t=(n,r)=>r[n[n.length-1]],e=Eo("last");return[t,e]}const zy=(t={})=>{const{groupBy:e}=t,n=IQ(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=un(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=jQ(p),[y,m]=un(o,h),b=c(m,p),_=s.map(O=>v(O,y!=null?y:a));return[h,Object.assign(Object.assign({},EX(_,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=un(o,h),g=s.map(y=>p[y[0]]);return[h,dr(g,v)]}),f=s.map(h=>a[h[0]]);return[Zo(s),Dt({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};zy.props={};var $Q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=$Q(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=un(c,p);return v}),u=fe(r,iC),f=o.filter(p=>l.every(v=>In(v[p]))),d=[...e.map(p=>{const[v]=un(c,p);return v}).filter(In).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||VQ(g),m=kQ().thresholds(y).value(_=>+g[_])(f),b=new Map(m.flatMap(_=>{const{x0:O,x1:w}=_,M=`${O},${w}`;return _.map(E=>[E,M])}));return i[p]=b,_=>b.get(_)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(Kn(f,h).values())};return zy(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(iC)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Gy.props={};const aC=(t={})=>{const{thresholds:e}=t;return Gy(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};aC.props={};var XQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t,a=XQ(t,["groupBy","reverse","orderBy","padding"]);return(o,s)=>{const{data:c,encode:l,scale:u}=s,{series:f}=u,[d]=un(l,"y"),[h]=Il(l,"series","color"),p=JP(h,f),v=Mo(e,o,s),y=KP(r)(c,d,h);y&&QP(v,y);const m=new Array(o.length);for(const b of v){n&&b.reverse();for(let _=0;_{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=un(s,"x"),[d]=un(s,"y"),h=yh(f,l,n),p=yh(d,u,r),v=a.map(()=>mh(i(),...p)),g=a.map(()=>mh(i(),...h));return[a,Dt({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:dr(v),dx:dr(g)}})]}};sC.props={};const cC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=un(a,"x"),l=yh(c,s,e),u=r.map(()=>mh(n(),...l));return[r,Dt({scale:{x:{padding:.5}}},i,{encode:{dx:dr(u)}})]}};cC.props={};const lC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=un(a,"y"),l=yh(c,s,e),u=r.map(()=>mh(n(),...l));return[r,Dt({scale:{y:{padding:.5}}},i,{encode:{dy:dr(u)}})]}};lC.props={};var UQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,{x:a}=i,o=UQ(i,["x"]),s=Object.entries(o).filter(([d])=>d.startsWith("y")).map(([d])=>[d,un(i,d)[0]]),c=s.map(([d])=>[d,new Array(n.length)]),l=Mo(e,n,r),u=new Array(l.length);for(let d=0;ds.map(([,m])=>+m[y])),[v,g]=Ia(p);u[d]=(v+g)/2}const f=Math.max(...u);for(let d=0;d[d,dr(h,un(i,d)[1])]))})]}};uC.props={};const fC=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=un(a,"y"),[s,c]=un(a,"y1"),[l]=n?Il(a,"series","color"):un(a,"color"),u=Mo(e,r,i),f=new Array(r.length);for(const d of u){const h=d.map(p=>+o[p]);for(let p=0;pm!==p));f[v]=o[v]>g?g:o[v]}}return[r,Dt({},i,{encode:{y1:dr(f,c)}})]}};fC.props={};const dC=t=>{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,un(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(Kn(m,_=>g[_]).values());y.push(...b)}f=y}if(r){const[g]=un(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[go(o,d)]:Il(c,"enterDuration",go(o,d)),[p]=Il(c,"enterDelay",go(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[_]);for(const _ of m)v[_]=+p[_]+y;y+=b}return[o,Dt({},s,{encode:{enterDuration:Id(h),enterDelay:Id(v)}})]}};dC.props={};var qQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iEi(n,i=>r[+i]),max:(n,r)=>Mn(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>Ql(n,i=>r[+i]),median:(n,r)=>Fy(n,i=>r[+i]),sum:(n,r)=>Di(n,i=>r[+i]),deviation:(n,r)=>nC(n,i=>r[+i])}[t]||Mn}const hC=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,{x:s}=a,c=qQ(a,["x"]),l=Object.entries(c).filter(([v])=>v.startsWith("y")).map(([v])=>[v,un(a,v)[0]]),[,u]=l.find(([v])=>v==="y"),f=l.map(([v])=>[v,new Array(r.length)]),d=Mo(e,r,i),h=ZQ(n);for(const v of d){const g=h(v,u);for(const y of v)for(let m=0;m[v,dr(g,un(a,v)[1])]))},!p&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};hC.props={};function pC(t,e){return[t[0]]}function KQ(t,e){const n=t.length-1;return[t[n]]}function QQ(t,e){const n=ic(t,r=>e[r]);return[t[n]]}function JQ(t,e){const n=uh(t,r=>e[r]);return[t[n]]}function tJ(t){return typeof t=="function"?t:{first:pC,last:KQ,max:QQ,min:JQ}[t]||pC}const bh=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=Mo(e,i,a),[c]=un(o,n),l=tJ(r);return[s.flatMap(u=>l(u,c)),a]}};bh.props={};var eJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=eJ(t,["selector"]);return bh(Object.assign({channel:"x",selector:e},n))};vC.props={};var nJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=nJ(t,["selector"]);return bh(Object.assign({channel:"y",selector:e},n))};gC.props={};var rJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=rJ(t,["channels"]),r=(i,a)=>Mo(e,i,a);return zy(Object.assign(Object.assign({},n),{groupBy:r}))};iu.props={};const yC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));yC.props={};const mC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));mC.props={};const bC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["color"]}));bC.props={};function iJ(t,e,n){return(e.length!==2?Ba(Z0(t,e,n),([r,i],[a,o])=>fr(i,o)||fr(r,a)):Ba(Kn(t,n),([r,i],[a,o])=>e(i,o)||fr(r,a))).map(([r])=>r)}var xC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Mn(o,s=>+a[s]);if(i==="min")return o=>Ei(o,s=>+a[s]);if(i==="sum")return o=>Di(o,s=>+a[s]);if(i==="median")return o=>Fy(o,s=>+a[s]);if(i==="mean")return o=>Ql(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function oJ(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=un(a,i),s=Ba(t,c=>o[c]);return r&&s.reverse(),[s,e]}function sJ(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function cJ(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=xC(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=un(c,o),d=aJ(o,s,c),h=sJ(t,f,u),p=iJ(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,Dt(e,{scale:{[o]:{domain:g}}})]}const xh=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=xC(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?cJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):oJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};xh.props={};const _C=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"x"}));_C.props={};const OC=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"y"}));OC.props={};const wC=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"color"}));wC.props={};function lJ(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function uJ(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Di(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const SC=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=un(s,"x"),l=e?lJ(o,e):un(s,n)[0],u=uJ(r,l),f=K0(i,u,d=>c[d]).map(d=>d[1]);return[i,Dt({},a,{scale:{x:{flex:f}}})]}};SC.props={};function fJ(t,e,n){const r=t.length;if(r===0)return[];const{innerWidth:i,innerHeight:a}=n,o=a/i;let s=Math.ceil(Math.sqrt(e/o)),c=i/s,l=Math.ceil(e/s),u=l*c;for(;u>a;)s=s+1,c=i/s,l=Math.ceil(e/s),u=l*c;const f=a-l*c,d=l<=1?0:f/(l-1),[h,p]=l<=1?[(i-r*c)/(r-1),(a-c)/2]:[0,0];return t.map((v,g)=>{const[y,m,b,_]=Dv(v),O=g%s,w=Math.floor(g/s),M=O*c,E=(l-w-1)*c+f,A=c/b,P=c/_,C=M-y+h*O,j=E-m-d*w-p;return`translate(${C}, ${j}) scale(${A}, ${P})`})}const MC=()=>(t,e)=>[t,Dt({},e,{modifier:fJ,axis:!1})];MC.props={};function dJ(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function hJ(t){if(typeof t=="function")return t;if(t==="lttb")return dJ;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[uh(r,o=>a[o])]],max:(r,i,a)=>[r[ic(r,o=>a[o])]],median:(r,i,a)=>[r[NQ(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return pJ(r,s).flatMap(l=>n(l,i,a))}}function pJ(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=hJ(e);return(a,o)=>{const{encode:s}=o,c=Mo(r,a,o),[l]=un(s,"x"),[u]=un(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};EC.props={};function vJ(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const AC=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=un(r,u);if(!d)return null;const[h,p=!0]=vJ(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(In);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,Dt({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};AC.props={};var TC={},Wy={},Hy=34,au=10,Yy=13;function PC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function gJ(t,e){var n=PC(t);return function(r,i){return e(n(r),i,t)}}function CC(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function mi(t,e){var n=t+"",r=n.length;return r9999?"+"+mi(t,6):mi(t,4)}function mJ(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":yJ(t.getUTCFullYear(),4)+"-"+mi(t.getUTCMonth()+1,2)+"-"+mi(t.getUTCDate(),2)+(i?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"."+mi(i,3)+"Z":r?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"Z":n||e?"T"+mi(e,2)+":"+mi(n,2)+"Z":"")}function bJ(t){var e=new RegExp('["'+t+` +\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?gJ(g,d):PC(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===au&&--p,f.charCodeAt(p-1)===Yy&&--p;function _(){if(m)return Wy;if(b)return b=!1,TC;var w,M=v,E;if(f.charCodeAt(M)===Hy){for(;v++=p?m=!0:(E=f.charCodeAt(v++))===au?b=!0:E===Yy&&(b=!0,f.charCodeAt(v)===au&&++v),f.slice(M+1,w-1).replace(/""/g,'"')}for(;v{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>OJ(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return bJ(r).parse(o,i?xJ:qo)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};kC.props={};const RC=t=>{const{value:e}=t;return()=>e};RC.props={};function wJ(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const LC=t=>{const{fields:e=[]}=t,n=wJ(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};LC.props={};function bpt(t){return t!=null&&!Number.isNaN(t)}const NC=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};NC.props={};function SJ(t){return t!=null&&!Number.isNaN(t)}const IC=t=>{const{callback:e=SJ}=t;return n=>n.filter(e)};IC.props={};function MJ(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const jC=t=>{const{fields:e}=t;return n=>n.map(r=>MJ(r,e))};jC.props={};function EJ(t){return Object.keys(t).length===0}const DC=t=>e=>{if(!t||EJ(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};DC.props={};function AJ(t){return!t||Object.keys(t).length===0}const BC=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>AJ(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};BC.props={};const FC=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};FC.props={};const zC=t=>{const{callback:e=qo}=t;return n=>e(n)};zC.props={};const GC=t=>{const{callback:e=qo}=t;return n=>Array.isArray(n)?n.map(e):n};GC.props={};function WC(t){return typeof t=="string"?e=>e[t]:t}const HC=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=WC(s),l=WC(o),u=Z0(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};HC.props={};var TJ=gt(78434),PJ=gt.n(TJ);function xpt(t){return t!=null&&!Number.isNaN(t)}const YC=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Kn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=PJ().create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};YC.props={};const $C=()=>t=>(console.log("G2 data section:",t),t);$C.props={};function $y(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function VC(t,e){const[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function CJ(t,e){const[n,r]=t;return!(VC(n,e)&&VC(r,e))}function kJ(t,e){const[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]}const RJ=t=>{const{priority:e}=t;return n=>{const r=[];return e&&n.sort(e),n.forEach(i=>{fg(i);const a=i.getLocalBounds();r.some(s=>kJ($y(a),$y(s.getLocalBounds())))?ug(i):r.push(i)}),n}};function LJ([t,e],[n,r]){return r>t&&e>n}function _h(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function NJ(t){const e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);const{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}const IJ=t=>{const{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=_h(),[c,l]=_h(),[u,f]=_h(),[d,h]=_h();for(const p of i){const{min:v,max:g}=NJ(p),[y,m]=v,[b,_]=g;s(p,m),l(p,m),f(p,_-m),h(p,[y,b])}for(let p=0;pfr(c(g),c(y)));let v=0;for(let g=0;gt=>(t.forEach(e=>{fg(e);const n=e.attr("bounds"),r=e.getLocalBounds();CJ($y(r),n)&&ug(e)}),t);function DJ(t){return typeof t=="object"?t:Aa(t)}function Vy(t){let e=t/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),e}function XC(t,e,n){return .2126*Vy(t)+.7152*Vy(e)+.0722*Vy(n)}function UC(t,e){const{r:n,g:r,b:i}=t,{r:a,g:o,b:s}=e,c=XC(n,r,i),l=XC(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function BJ(t,e){const n=ic(e,r=>UC(t,DJ(r)));return e[n]}const FJ=t=>{const{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;UC(o,a)t;function Oh(t,e){t&&ZC.hasOwnProperty(t.type)&&ZC[t.type](t,e)}var qC={Feature:function(t,e){Oh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function _pt(t,e){const n=new Wa;if(e===void 0)for(let r of t)(r=+r)&&n.add(r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function Opt(t,e){const n=new Wa;let r=-1;return Float64Array.from(t,e===void 0?i=>n.add(+i||0):i=>n.add(+e(i,++r,t)||0))}var Fe=1e-6,QC=1e-12,sn=Math.PI,yr=sn/2,JC=sn/4,Pi=sn*2,Kr=180/sn,hr=sn/180,mn=Math.abs,Ac=Math.atan,Ha=Math.atan2,rn=Math.cos,wh=Math.ceil,t5=Math.exp,wpt=Math.floor,Spt=Math.hypot,Sh=Math.log,Uy=Math.pow,Qe=Math.sin,$i=Math.sign||function(t){return t>0?1:t<0?-1:0},bi=Math.sqrt,qy=Math.tan;function e5(t){return t>1?0:t<-1?sn:Math.acos(t)}function Vi(t){return t>1?yr:t<-1?-yr:Math.asin(t)}function Mpt(t){return(t=Qe(t/2))*t}function Xi(){}var Zy=new Wa,Ky=new Wa,n5,r5,Qy,Jy,Ao={point:Xi,lineStart:Xi,lineEnd:Xi,polygonStart:function(){Ao.lineStart=GJ,Ao.lineEnd=HJ},polygonEnd:function(){Ao.lineStart=Ao.lineEnd=Ao.point=Xi,Zy.add(mn(Ky)),Ky=new Wa},result:function(){var t=Zy/2;return Zy=new Wa,t}};function GJ(){Ao.point=WJ}function WJ(t,e){Ao.point=i5,n5=Qy=t,r5=Jy=e}function i5(t,e){Ky.add(Jy*t-Qy*e),Qy=t,Jy=e}function HJ(){i5(n5,r5)}var a5=Ao,Tc=1/0,Mh=Tc,su=-Tc,Eh=su,YJ={point:$J,lineStart:Xi,lineEnd:Xi,polygonStart:Xi,polygonEnd:Xi,result:function(){var t=[[Tc,Mh],[su,Eh]];return su=Eh=-(Mh=Tc=1/0),t}};function $J(t,e){tsu&&(su=t),eEh&&(Eh=e)}var Ah=YJ,tm=0,em=0,cu=0,Th=0,Ph=0,Pc=0,nm=0,rm=0,lu=0,o5,s5,xa,_a,ea={point:ms,lineStart:c5,lineEnd:l5,polygonStart:function(){ea.lineStart=UJ,ea.lineEnd=qJ},polygonEnd:function(){ea.point=ms,ea.lineStart=c5,ea.lineEnd=l5},result:function(){var t=lu?[nm/lu,rm/lu]:Pc?[Th/Pc,Ph/Pc]:cu?[tm/cu,em/cu]:[NaN,NaN];return tm=em=cu=Th=Ph=Pc=nm=rm=lu=0,t}};function ms(t,e){tm+=t,em+=e,++cu}function c5(){ea.point=VJ}function VJ(t,e){ea.point=XJ,ms(xa=t,_a=e)}function XJ(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Th+=i*(xa+t)/2,Ph+=i*(_a+e)/2,Pc+=i,ms(xa=t,_a=e)}function l5(){ea.point=ms}function UJ(){ea.point=ZJ}function qJ(){u5(o5,s5)}function ZJ(t,e){ea.point=u5,ms(o5=xa=t,s5=_a=e)}function u5(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Th+=i*(xa+t)/2,Ph+=i*(_a+e)/2,Pc+=i,i=_a*t-xa*e,nm+=i*(xa+t),rm+=i*(_a+e),lu+=i*3,ms(xa=t,_a=e)}var f5=ea;function d5(t){this._context=t}d5.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Pi);break}}},result:Xi};var im=new Wa,am,h5,p5,uu,fu,Ch={point:Xi,lineStart:function(){Ch.point=KJ},lineEnd:function(){am&&v5(h5,p5),Ch.point=Xi},polygonStart:function(){am=!0},polygonEnd:function(){am=null},result:function(){var t=+im;return im=new Wa,t}};function KJ(t,e){Ch.point=v5,h5=uu=t,p5=fu=e}function v5(t,e){uu-=t,fu-=e,im.add(bi(uu*uu+fu*fu)),uu=t,fu=e}var g5=Ch;let y5,kh,m5,b5;class x5{constructor(e){this._append=e==null?_5:QJ(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==m5||this._append!==kh){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,m5=r,kh=this._append,b5=this._,this._=i}this._+=b5;break}}}result(){const e=this._;return this._="",e.length?e:null}}function _5(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return _5;if(e!==y5){const n=wr(10,e);y5=e,kh=function(i){let a=1;this._+=i[0];for(const o=i.length;a=0))throw new RangeError(`invalid digits: ${s}`);n=c}return e===null&&(a=new x5(n)),o},o.projection(t).digits(n).context(e)}function Cc(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++rFe}).map(d)).concat(Cc(wh(a/l)*l,i,l).filter(function(b){return mn(b%f)>Fe}).map(h))}return y.lines=function(){return m().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(o).slice(1),p(n).reverse().slice(1),v(s).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(r=+b[0][0],n=+b[1][0],s=+b[0][1],o=+b[1][1],r>n&&(b=r,r=n,n=b),s>o&&(b=s,s=o,o=b),y.precision(g)):[[r,s],[n,o]]},y.extentMinor=function(b){return arguments.length?(e=+b[0][0],t=+b[1][0],a=+b[0][1],i=+b[1][1],e>t&&(b=e,e=t,t=b),a>i&&(b=a,a=i,i=b),y.precision(g)):[[e,a],[t,i]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(u=+b[0],f=+b[1],y):[u,f]},y.stepMinor=function(b){return arguments.length?(c=+b[0],l=+b[1],y):[c,l]},y.precision=function(b){return arguments.length?(g=+b,d=w5(a,i,90),h=S5(e,t,g),p=w5(s,o,90),v=S5(r,n,g),y):g},y.extentMajor([[-180,-90+Fe],[180,90-Fe]]).extentMinor([[-180,-80-Fe],[180,80+Fe]])}function ttt(){return JJ()()}function M5(){var t=[],e;return{point:function(n,r,i){e.push([n,r,i])},lineStart:function(){t.push(e=[])},lineEnd:Xi,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Rh(t,e){return mn(t[0]-e[0])=0;--s)i.point((f=u[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,u=d.z,h=!h}while(!d.v);i.lineEnd()}}}function A5(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n=0?1:-1,P=A*E,C=P>sn,j=g*w;if(c.add(Ha(j*A*Qe(P),y*M+j*rn(P))),o+=C?E+A*Pi:E,C^p>=n^_>=n){var N=Ih(kc(h),kc(b));cm(N);var k=Ih(a,N);cm(k);var R=(C^E>=0?-1:1)*Vi(k[2]);(r>R||r===R&&(N[0]||N[1]))&&(s+=C^E>=0?1:-1)}}return(o<-Fe||o0){for(c||(i.polygonStart(),c=!0),i.lineStart(),w=0;w1&&_&2&&O.push(O.pop().concat(O.shift())),u.push(O.filter(rtt))}}return d}}function rtt(t){return t.length>1}function itt(t,e){return((t=t.x)[0]<0?t[1]-yr-Fe:yr-t[1])-((e=e.x)[0]<0?e[1]-yr-Fe:yr-e[1])}var C5=P5(function(){return!0},att,stt,[-sn,-yr]);function att(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,o){var s=a>0?sn:-sn,c=mn(a-e);mn(c-sn)0?yr:-yr),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),i=0):r!==s&&c>=sn&&(mn(e-r)Fe?Ac((Qe(e)*(a=rn(r))*Qe(n)-Qe(r)*(i=rn(e))*Qe(t))/(i*a*o)):(e+r)/2}function stt(t,e,n,r){var i;if(t==null)i=n*yr,r.point(-sn,i),r.point(0,i),r.point(sn,i),r.point(sn,0),r.point(sn,-i),r.point(0,-i),r.point(-sn,-i),r.point(-sn,0),r.point(-sn,i);else if(mn(t[0]-e[0])>Fe){var a=t[0]0?ia)&&(i+=r*Pi));for(var l,u=i;r>0?u>a:u0,i=mn(e)>Fe;function a(u,f,d,h){k5(h,t,n,d,u,f)}function o(u,f){return rn(u)*rn(f)>e}function s(u){var f,d,h,p,v;return{lineStart:function(){p=h=!1,v=1},point:function(g,y){var m=[g,y],b,_=o(g,y),O=r?_?0:l(g,y):_?l(g+(g<0?sn:-sn),y):0;if(!f&&(p=h=_)&&u.lineStart(),_!==h&&(b=c(f,m),(!b||Rh(f,b)||Rh(m,b))&&(m[2]=1)),_!==h)v=0,_?(u.lineStart(),b=c(m,f),u.point(b[0],b[1])):(b=c(f,m),u.point(b[0],b[1],2),u.lineEnd()),f=b;else if(i&&f&&r^_){var w;!(O&d)&&(w=c(m,f,!0))&&(v=0,r?(u.lineStart(),u.point(w[0][0],w[0][1]),u.point(w[1][0],w[1][1]),u.lineEnd()):(u.point(w[1][0],w[1][1]),u.lineEnd(),u.lineStart(),u.point(w[0][0],w[0][1],3)))}_&&(!f||!Rh(f,m))&&u.point(m[0],m[1]),f=m,h=_,d=O},lineEnd:function(){h&&u.lineEnd(),f=null},clean:function(){return v|(p&&h)<<1}}}function c(u,f,d){var h=kc(u),p=kc(f),v=[1,0,0],g=Ih(h,p),y=Nh(g,g),m=g[0],b=y-m*m;if(!b)return!d&&u;var _=e*y/b,O=-e*m/b,w=Ih(v,g),M=jh(v,_),E=jh(g,O);sm(M,E);var A=w,P=Nh(M,A),C=Nh(A,A),j=P*P-C*(Nh(M,M)-1);if(!(j<0)){var N=bi(j),k=jh(A,(-P-N)/C);if(sm(k,M),k=om(k),!d)return k;var R=u[0],D=f[0],B=u[1],F=f[1],z;D0^k[1]<(mn(k[0]-R)sn^(R<=k[0]&&k[0]<=D)){var st=jh(A,(-P+N)/C);return sm(st,M),[k,om(st)]}}}function l(u,f){var d=r?t:sn-t,h=0;return u<-d?h|=1:u>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return P5(o,s,a,r?[0,-t]:[-sn,t-sn])}function ltt(t,e,n,r,i,a){var o=t[0],s=t[1],c=e[0],l=e[1],u=0,f=1,d=c-o,h=l-s,p;if(p=n-o,!(!d&&p>0)){if(p/=d,d<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>u&&(u=p)}else if(d>0){if(p0)){if(p/=h,h<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=a-s,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>u&&(u=p)}else if(h>0){if(p0&&(t[0]=o+u*d,t[1]=s+u*h),f<1&&(e[0]=o+f*d,e[1]=s+f*h),!0}}}}}var du=1e9,Dh=-du;function L5(t,e,n,r){function i(l,u){return t<=l&&l<=n&&e<=u&&u<=r}function a(l,u,f,d){var h=0,p=0;if(l==null||(h=o(l,f))!==(p=o(u,f))||c(l,u)<0^f>0)do d.point(h===0||h===3?t:n,h>1?r:e);while((h=(h+f+4)%4)!==p);else d.point(u[0],u[1])}function o(l,u){return mn(l[0]-t)0?0:3:mn(l[0]-n)0?2:1:mn(l[1]-e)0?1:0:u>0?3:2}function s(l,u){return c(l.x,u.x)}function c(l,u){var f=o(l,1),d=o(u,1);return f!==d?f-d:f===0?u[1]-l[1]:f===1?l[0]-u[0]:f===2?l[1]-u[1]:u[0]-l[0]}return function(l){var u=l,f=M5(),d,h,p,v,g,y,m,b,_,O,w,M={point:E,lineStart:j,lineEnd:N,polygonStart:P,polygonEnd:C};function E(R,D){i(R,D)&&u.point(R,D)}function A(){for(var R=0,D=0,B=h.length;Dr&&(At-rt)*(r-st)>(Yt-st)*(t-rt)&&++R:Yt<=r&&(At-rt)*(r-st)<(Yt-st)*(t-rt)&&--R;return R}function P(){u=f,d=[],h=[],w=!0}function C(){var R=A(),D=w&&R,B=(d=T5(d)).length;(D||B)&&(l.polygonStart(),D&&(l.lineStart(),a(null,null,1,l),l.lineEnd()),B&&E5(d,s,R,a,l),l.polygonEnd()),u=l,d=h=p=null}function j(){M.point=k,h&&h.push(p=[]),O=!0,_=!1,m=b=NaN}function N(){d&&(k(v,g),y&&_&&f.rejoin(),d.push(f.result())),M.point=E,_&&u.lineEnd()}function k(R,D){var B=i(R,D);if(h&&p.push([R,D]),O)v=R,g=D,y=B,O=!1,B&&(u.lineStart(),u.point(R,D));else if(B&&_)u.point(R,D);else{var F=[m=Math.max(Dh,Math.min(du,m)),b=Math.max(Dh,Math.min(du,b))],z=[R=Math.max(Dh,Math.min(du,R)),D=Math.max(Dh,Math.min(du,D))];ltt(F,z,t,e,n,r)?(_||(u.lineStart(),u.point(F[0],F[1])),u.point(z[0],z[1]),B||u.lineEnd(),w=!1):B&&(u.lineStart(),u.point(R,D),w=!1)}m=R,b=D,_=B}return M}}function um(t,e){function n(r,i){return r=t(r,i),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,i){return r=e.invert(r,i),r&&t.invert(r[0],r[1])}),n}function fm(t,e){return mn(t)>sn&&(t-=Math.round(t/Pi)*Pi),[t,e]}fm.invert=fm;function N5(t,e,n){return(t%=Pi)?e||n?um(j5(t),D5(e,n)):j5(t):e||n?D5(e,n):fm}function I5(t){return function(e,n){return e+=t,mn(e)>sn&&(e-=Math.round(e/Pi)*Pi),[e,n]}}function j5(t){var e=I5(t);return e.invert=I5(-t),e}function D5(t,e){var n=rn(t),r=Qe(t),i=rn(e),a=Qe(e);function o(s,c){var l=rn(c),u=rn(s)*l,f=Qe(s)*l,d=Qe(c),h=d*n+u*r;return[Ha(f*i-h*a,u*n-d*r),Vi(h*i+f*a)]}return o.invert=function(s,c){var l=rn(c),u=rn(s)*l,f=Qe(s)*l,d=Qe(c),h=d*i-f*a;return[Ha(f*i+d*a,u*n+h*r),Vi(h*n-u*r)]},o}function utt(t){t=N5(t[0]*hr,t[1]*hr,t.length>2?t[2]*hr:0);function e(n){return n=t(n[0]*hr,n[1]*hr),n[0]*=Kr,n[1]*=Kr,n}return e.invert=function(n){return n=t.invert(n[0]*hr,n[1]*hr),n[0]*=Kr,n[1]*=Kr,n},e}function Apt(t){return{stream:hu(t)}}function hu(t){return function(e){var n=new dm;for(var r in t)n[r]=t[r];return n.stream=e,n}}function dm(){}dm.prototype={constructor:dm,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function hm(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Ec(n,t.stream(Ah)),e(Ah.result()),r!=null&&t.clipExtent(r),t}function Bh(t,e,n){return hm(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+e[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+e[0][1]+(a-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,c])},n)}function pm(t,e,n){return Bh(t,[[0,0],e],n)}function vm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];t.scale(150*a).translate([o,s])},n)}function gm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])},n)}var B5=16,ftt=rn(30*hr);function F5(t,e){return+e?htt(t,e):dtt(t)}function dtt(t){return hu({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function htt(t,e){function n(r,i,a,o,s,c,l,u,f,d,h,p,v,g){var y=l-r,m=u-i,b=y*y+m*m;if(b>4*e&&v--){var _=o+d,O=s+h,w=c+p,M=bi(_*_+O*O+w*w),E=Vi(w/=M),A=mn(mn(w)-1)e||mn((y*N+m*k)/b-.5)>.3||o*d+s*h+c*p2?R[2]%360*hr:0,N()):[s*Kr,c*Kr,l*Kr]},C.angle=function(R){return arguments.length?(f=R%360*hr,N()):f*Kr},C.reflectX=function(R){return arguments.length?(d=R?-1:1,N()):d<0},C.reflectY=function(R){return arguments.length?(h=R?-1:1,N()):h<0},C.precision=function(R){return arguments.length?(w=F5(M,O=R*R),k()):bi(O)},C.fitExtent=function(R,D){return Bh(C,R,D)},C.fitSize=function(R,D){return pm(C,R,D)},C.fitWidth=function(R,D){return vm(C,R,D)},C.fitHeight=function(R,D){return gm(C,R,D)};function N(){var R=z5(n,0,0,d,h,f).apply(null,e(a,o)),D=z5(n,r-R[0],i-R[1],d,h,f);return u=N5(s,c,l),M=um(e,D),E=um(u,M),w=F5(M,O),k()}function k(){return A=P=null,C}return function(){return e=t.apply(this,arguments),C.invert=e.invert&&j,N()}}function mm(t){var e=0,n=sn/3,r=ym(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*hr,n=a[1]*hr):[e*Kr,n*Kr]},i}function ytt(t){var e=rn(t);function n(r,i){return[r*e,Qe(i)/e]}return n.invert=function(r,i){return[r/e,Vi(i*e)]},n}function G5(t,e){var n=Qe(t),r=(n+Qe(e))/2;if(mn(r)=.12&&g<.234&&v>=-.425&&v<-.214?i:g>=.166&&g<.234&&v>=-.214&&v<-.115?o:n).invert(d)},u.stream=function(d){return t&&e===d?t:t=mtt([n.stream(e=d),i.stream(d),o.stream(d)])},u.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},u.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),u.translate(n.translate())):n.scale()},u.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],v=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,v-.238*h],[p+.455*h,v+.238*h]]).stream(l),a=i.translate([p-.307*h,v+.201*h]).clipExtent([[p-.425*h+Fe,v+.12*h+Fe],[p-.214*h-Fe,v+.234*h-Fe]]).stream(l),s=o.translate([p-.205*h,v+.212*h]).clipExtent([[p-.214*h+Fe,v+.166*h+Fe],[p-.115*h-Fe,v+.234*h-Fe]]).stream(l),f()},u.fitExtent=function(d,h){return Bh(u,d,h)},u.fitSize=function(d,h){return pm(u,d,h)},u.fitWidth=function(d,h){return vm(u,d,h)},u.fitHeight=function(d,h){return gm(u,d,h)};function f(){return t=e=null,u}return u.scale(1070)}function H5(t){return function(e,n){var r=rn(e),i=rn(n),a=t(r*i);return a===1/0?[2,0]:[a*i*Qe(e),a*Qe(n)]}}function pu(t){return function(e,n){var r=bi(e*e+n*n),i=t(r),a=Qe(i),o=rn(i);return[Ha(e*a,r*o),Vi(r&&n*a/r)]}}var bm=H5(function(t){return bi(2/(1+t))});bm.invert=pu(function(t){return 2*Vi(t/2)});function xtt(){return Oa(bm).scale(124.75).clipAngle(180-.001)}var xm=H5(function(t){return(t=e5(t))&&t/Qe(t)});xm.invert=pu(function(t){return t});function _tt(){return Oa(xm).scale(79.4188).clipAngle(180-.001)}function vu(t,e){return[t,Sh(qy((yr+e)/2))]}vu.invert=function(t,e){return[t,2*Ac(t5(e))-yr]};function Ott(){return Y5(vu).scale(961/Pi)}function Y5(t){var e=Oa(t),n=e.center,r=e.scale,i=e.translate,a=e.clipExtent,o=null,s,c,l;e.scale=function(f){return arguments.length?(r(f),u()):r()},e.translate=function(f){return arguments.length?(i(f),u()):i()},e.center=function(f){return arguments.length?(n(f),u()):n()},e.clipExtent=function(f){return arguments.length?(f==null?o=s=c=l=null:(o=+f[0][0],s=+f[0][1],c=+f[1][0],l=+f[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var f=sn*r(),d=e(utt(e.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:t===vu?[[Math.max(d[0]-f,o),s],[Math.min(d[0]+f,c),l]]:[[o,Math.max(d[1]-f,s)],[c,Math.min(d[1]+f,l)]])}return u()}function zh(t){return qy((yr+t)/2)}function $5(t,e){var n=rn(t),r=t===e?Qe(t):Sh(n/rn(e))/Sh(zh(e)/zh(t)),i=n*Uy(zh(t),r)/r;if(!r)return vu;function a(o,s){i>0?s<-yr+Fe&&(s=-yr+Fe):s>yr-Fe&&(s=yr-Fe);var c=i/Uy(zh(s),r);return[c*Qe(r*o),i-c*rn(r*o)]}return a.invert=function(o,s){var c=i-s,l=$i(r)*bi(o*o+c*c),u=Ha(o,mn(c))*$i(c);return c*r<0&&(u-=sn*$i(o)*$i(c)),[u/r,2*Ac(Uy(i/l,1/r))-yr]},a}function wtt(){return mm($5).scale(109.5).parallels([30,30])}function gu(t,e){return[t,e]}gu.invert=gu;function Stt(){return Oa(gu).scale(152.63)}function V5(t,e){var n=rn(t),r=t===e?Qe(t):(n-rn(e))/(e-t),i=n/r+t;if(mn(r)Fe&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Ctt(){return Oa(wm).scale(175.295)}function Sm(t,e){return[rn(e)*Qe(t),Qe(e)]}Sm.invert=pu(Vi);function ktt(){return Oa(Sm).scale(249.5).clipAngle(90+Fe)}function Mm(t,e){var n=rn(e),r=1+rn(t)*n;return[n*Qe(t)/r,Qe(e)/r]}Mm.invert=pu(function(t){return 2*Ac(t)});function Rtt(){return Oa(Mm).scale(250).clipAngle(142)}function Em(t,e){return[Sh(qy((yr+e)/2)),-t]}Em.invert=function(t,e){return[-e,2*Ac(t5(t))-yr]};function Ltt(){var t=Y5(Em),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}var Ntt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iDtt(e).features)}}function Dtt(t){const e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!t||!t.type)return null;const n=e[t.type];if(!n)return null;if(n==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]};if(n==="feature")return{type:"FeatureCollection",features:[t]};if(n==="featureCollection")return t}function Btt(t,e){var n;for(const[r,i]of Object.entries(e))(n=t[r])===null||n===void 0||n.call(t,i)}function Ftt(t,e,n,r){const i=()=>{const s=e.filter(X5);return s.find(l=>l.sphere)?{type:"Sphere"}:jtt(s.filter(l=>!l.sphere).flatMap(l=>l.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return ztt(t,a,n);if(o==="fitWidth")return Gtt(t,a,n)}function ztt(t,e,n){const{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}function Gtt(t,e,n){const{width:r,height:i}=n,[[a,o],[s,c]]=O5(t.fitWidth(r,e)).bounds(e),l=Math.ceil(c-o),u=Math.min(Math.ceil(s-a),l),f=t.scale()*(u-1)/u,[d,h]=t.translate(),p=h+(i-l)/2;t.scale(f).translate([d,p]).precision(.2)}function Wtt(t){const{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});const{type:n}=e;return n==="graticule10"?Object.assign(Object.assign({},t),{data:{value:[ttt()]}}):n==="sphere"?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function X5(t){return t.type==="geoPath"}const U5=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=Ntt(n,["type"]),a=Itt(r),o=e.map(Wtt);let s;function c(){return[["custom",(f,d,h,p)=>{const v=a();Ftt(v,o,{x:f,y:d,width:h,height:p},i),Btt(v,i),s=O5(v);const y=new Vr({domain:[f,f+h]}),m=new Vr({domain:[d,d+p]}),b=O=>{const w=v(O);if(!w)return[null,null];const[M,E]=w;return[y.map(M),m.map(E)]},_=O=>{if(!O)return null;const[w,M]=O,E=[y.invert(w),m.invert(M)];return v.invert(E)};return{transform:O=>b(O),untransform:O=>_(O)}}]]}function l(f){const{style:d,tooltip:h={}}=f;return Object.assign(Object.assign({},f),{type:"path",tooltip:eg(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>X5(f)?l(f):f;return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:c},children:o.flatMap(u)})]};U5.props={};var Htt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:s,state:c}=t,l=Htt(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},l),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:c}]})]};q5.props={};function Ytt(){return{"composition.geoView":U5,"composition.geoPath":q5}}function $tt(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Z5(this.cover(e,n),e,n,t)}function Z5(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a=t._root,o={data:r},s=t._x0,c=t._y0,l=t._x1,u=t._y1,f,d,h,p,v,g,y,m;if(!a)return t._root=o,t;for(;a.length;)if((v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d,i=a,!(a=a[y=g<<1|v]))return i[y]=o,t;if(h=+t._x.call(null,a.data),p=+t._y.call(null,a.data),e===h&&n===p)return o.next=a,i?i[y]=o:t._root=o,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d;while((y=g<<1|v)===(m=(p>=d)<<1|h>=f));return i[m]=a,i[y]=o,t}function Vtt(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;nu&&(u=i),af&&(f=a));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eu||(s=p.y0)>f||(c=p.x1)=y)<<1|t>=g)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=p)}else{var m=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),_=m*m+b*b;if(_=(d=(o+c)/2))?o=d:c=d,(v=f>=(h=(s+l)/2))?s=h:l=h,e=n,!(n=n[g=v<<1|p]))return this;if(!n.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,y=g)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):e?(a?e[g]=a:delete e[g],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function Qtt(t){for(var e=0,n=t.length;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wh.prototype=J5.prototype={constructor:Wh,on:function(e,n){var r=this._,i=cet(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){for(;++o0)for(var r=new Array(a),i=0,a,o;i=0&&t._call.call(void 0,e),t=t._next;--Lc}function ak(){bs=(Yh=Su.now())+$h,Lc=_u=0;try{het()}finally{Lc=0,vet(),bs=0}}function pet(){var t=Su.now(),e=t-Yh;e>ek&&($h-=e,Yh=t)}function vet(){for(var t,e=Hh,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Hh=n);wu=t,Pm(r)}function Pm(t){if(!Lc){_u&&(_u=clearTimeout(_u));var e=t-bs;e>24?(t<1/0&&(_u=setTimeout(ak,t-Su.now()-$h)),Ou&&(Ou=clearInterval(Ou))):(Ou||(Yh=Su.now(),Ou=setInterval(pet,ek)),Lc=1,nk(ak))}}const get=1664525,yet=1013904223,ok=4294967296;function met(){let t=1;return()=>(t=(get*t+yet)%ok)/ok}function bet(t){return t.x}function xet(t){return t.y}var _et=10,Oet=Math.PI*(3-Math.sqrt(5));function wet(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=ik(f),l=fet("tick","end"),u=met();t==null&&(t=[]);function f(){d(),l.call("tick",e),n1?(g==null?s.delete(v):s.set(v,p(g)),e):s.get(v)},find:function(v,g,y){var m=0,b=t.length,_,O,w,M,E;for(y==null?y=1/0:y*=y,m=0;m1?(l.on(v,g),e):l.on(v)}}}function Met(){var t,e,n,r,i=Ci(-30),a,o=1,s=1/0,c=.81;function l(h){var p,v=t.length,g=K5(t,bet,xet).visitAfter(f);for(r=h,p=0;p=s)return;(h.data!==e||h.next)&&(y===0&&(y=Rc(n),_+=y*y),m===0&&(m=Rc(n),_+=m*m),_[e(O,w,o),O])),_;for(g=0,s=new Array(y);gt.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},Net={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},Iet={text:""};function jet(t,e,n){const{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:s}=e,{nodeKey:c=p=>p.id,linkKey:l=p=>p.id}=n,u=Met(),f=Aet(i).id(ba(l));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=wet(r).force("link",f).force("charge",u);a?d.force("center",Tet()):d.force("x",Pet()).force("y",Cet()),d.stop();const h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let p=0;p{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{nodeKey:u=w=>w.id,linkKey:f=w=>w.id}=n,d=ket(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=fe(h,"node"),v=fe(h,"link"),{links:g,nodes:y}=Pg(e,h),{nodesData:m,linksData:b}=jet({links:g,nodes:y},Dt({},Ret,a),h),_=va(l,"link",{items:[w=>({name:"source",value:ba(f)(w.source)}),w=>({name:"target",value:ba(f)(w.target)})]}),O=va(l,"node",{items:[w=>({name:"key",value:ba(u)(w)})]},!0);return[Dt({},Let,{data:b,encode:v,labels:s,style:fe(i,"link"),tooltip:_,animate:ga(c,"link")}),Dt({},Net,{data:m,encode:Object.assign({},p),scale:r,style:fe(i,"node"),tooltip:O,labels:[Object.assign(Object.assign({},Iet),fe(i,"label")),...o],animate:ga(c,"link")})]};ck.props={};function Det(t,e){return t.parent===e.parent?1:2}function Cm(t){var e=t.children;return e?e[0]:t.t}function km(t){var e=t.children;return e?e[e.length-1]:t.t}function Bet(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Fet(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function zet(t,e,n){return t.a.parent===e.parent?t.a:n}function Vh(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Vh.prototype=Object.create(hc.prototype);function Get(t){for(var e=new Vh(t,0),n,r=[e],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new Vh(a[o],o)),i.parent=n;return(e.parent=new Vh(null,0)).children=[e],e}function Wet(){var t=Det,e=1,n=1,r=null;function i(l){var u=Get(l);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(o),r)l.eachBefore(c);else{var f=l,d=l,h=l;l.eachBefore(function(m){m.xd.x&&(d=m),m.depth>h.depth&&(h=m)});var p=f===d?1:t(f,d)/2,v=p-f.x,g=e/(d.x+p+v),y=n/(h.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*g,m.y=m.depth*y})}return l}function a(l){var u=l.children,f=l.parent.children,d=l.i?f[l.i-1]:null;if(u){Fet(l);var h=(u[0].z+u[u.length-1].z)/2;d?(l.z=d.z+t(l._,d._),l.m=l.z-h):l.z=h}else d&&(l.z=d.z+t(l._,d._));l.parent.A=s(l,d,l.parent.A||f[0])}function o(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,u,f){if(u){for(var d=l,h=l,p=u,v=d.parent.children[0],g=d.m,y=h.m,m=p.m,b=v.m,_;p=km(p),d=Cm(d),p&&d;)v=Cm(v),h=km(h),h.a=l,_=p.z+m-d.z-g+t(p._,d._),_>0&&(Bet(zet(p,l,f),l,_),g+=_,y+=_),m+=p.m,g+=d.m,b+=v.m,y+=h.m;p&&!km(h)&&(h.t=p,h.m+=m-y),d&&!Cm(v)&&(v.t=d,v.m+=g-b,f=l)}return f}function c(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}function Het(t,e){return t.parent===e.parent?1:2}function Yet(t){return t.reduce($et,0)/t.length}function $et(t,e){return t+e.x}function Vet(t){return 1+t.reduce(Xet,0)}function Xet(t,e){return Math.max(t,e.y)}function Uet(t){for(var e;e=t.children;)t=e[0];return t}function qet(t){for(var e;e=t.children;)t=e[e.length-1];return t}function Zet(){var t=Het,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=Yet(h),d.y=Vet(h)):(d.x=o?s+=t(d,o):0,d.y=0,o=d)});var c=Uet(a),l=qet(a),u=c.x-t(c,l)/2,f=l.x+t(l,c)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*e,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-u)/(f-u)*e,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}const lk=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=e,[c,l]=s,u=dc(n,p=>p.children).sum(p=>p[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);const d=[];u.each(p=>{p[c]=p.x,p[l]=p.y,p.name=p.data.name,d.push(p)});const h=u.links();return h.forEach(p=>{p[c]=[p.source[c],p.target[c]],p[l]=[p.source[l],p.target[l]]}),{nodes:d,edges:h}},uk=t=>lk(Zet)(t);uk.props={};const fk=t=>lk(Wet)(t);fk.props={};const Ket={sortBy:(t,e)=>e.value-t.value},Qet={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},Jet={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},tnt={text:"",fontSize:10},dk=t=>{const{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,u=n==null?void 0:n.value,{nodes:f,edges:d}=fk(Object.assign(Object.assign(Object.assign({},Ket),a),{field:u}))(e),h=va(l,"node",{title:"name",items:["value"]},!0),p=va(l,"link",{title:"",items:[v=>({name:"source",value:v.source.name}),v=>({name:"target",value:v.target.name})]});return[Dt({},Jet,{data:d,encode:fe(n,"link"),scale:fe(r,"link"),labels:s,style:Object.assign({stroke:"#999"},fe(i,"link")),tooltip:p,animate:ga(c,"link")}),Dt({},Qet,{data:f,scale:fe(r,"node"),encode:fe(n,"node"),labels:[Object.assign(Object.assign({},tnt),fe(i,"label")),...o],style:Object.assign({},fe(i,"node")),tooltip:h,animate:ga(c,"node")})]};dk.props={};function xs(){return 0}function Nc(t){return function(){return t}}var ent=1664525,nnt=1013904223,hk=4294967296;function rnt(){var t=1;return function(){return(t=(ent*t+nnt)%hk)/hk}}var int=gt(27566);function ant(t){return int(t)==="object"&&"length"in t?t:Array.from(t)}function ont(t,e){for(var n=t.length,r,i;n;)i=e()*n--|0,r=t[n],t[n]=t[i],t[i]=r;return t}function Tpt(t){return pk(t,lcg())}function pk(t,e){for(var n=0,r=(t=ont(Array.from(t),e)).length,i=[],a,o;n0&&n*n>r*r+i*i}function Rm(t,e){for(var n=0;n1e-6?(C+Math.sqrt(C*C-4*P*j))/(2*P):j/C);return{x:r+w+M*N,y:i+E+A*N,r:N}}function yk(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,c,l=r*r+o*o;l?(a=e.r+n.r,a*=a,c=t.r+n.r,c*=c,a>c?(i=(l+c-a)/(2*l),s=Math.sqrt(Math.max(0,c/l-i*i)),n.x=t.x-i*r-s*o,n.y=t.y-i*o+s*r):(i=(l+a-c)/(2*l),s=Math.sqrt(Math.max(0,a/l-i*i)),n.x=e.x+i*r-s*o,n.y=e.y+i*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function mk(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function bk(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Uh(t){this._=t,this.next=null,this.previous=null}function xk(t,e){if(!(a=(t=ant(t)).length))return 0;var n,r,i,a,o,s,c,l,u,f,d;if(n=t[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;yk(r,n,i=t[2]),n=new Uh(n),r=new Uh(r),i=new Uh(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c({size:[t,e],padding:0,sort:(n,r)=>r.value-n.value}),pnt=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:r=>r.height===0?"#ddd":"#fff",stroke:n.color?void 0:r=>r.height===0?"":"#000"}}),vnt={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.r*2},gnt={title:t=>t.data.name,items:[{field:"value"}]},ynt=(t,e,n)=>{const{value:r}=n,i=Dr(t)?Sg().path(e.path)(t):dc(t);return r?i.sum(a=>ba(r)(a)).sort(e.sort):i.count(),fnt().size(e.size).padding(e.padding)(i),i.descendants()},wk=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=dnt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=pnt(n,r,a),h=ynt(i,Dt({},hnt(n,r),c),Dt({},d.encode,a)),p=fe(s,"label");return Dt({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},vnt),p),...l]},f),{tooltip:eg(u,gnt),axis:!1}))};wk.props={};function mnt(t){return t.target.depth}function bnt(t){return t.depth}function xnt(t,e){return e-1-t.height}function qh(t,e){return t.sourceLinks.length?t.depth:e-1}function _nt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Ei(t.sourceLinks,mnt)-1:0}function Zh(t){return function(){return t}}function Sk(t,e){return Kh(t.source,e.source)||t.index-e.index}function Mk(t,e){return Kh(t.target,e.target)||t.index-e.index}function Kh(t,e){return t.y0-e.y0}function Nm(t){return t.value}function Ont(t){return t.index}function wnt(t){return t.nodes}function Snt(t){return t.links}function Ek(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Ak({nodes:t}){for(const e of t){let n=e.y0,r=n;for(const i of e.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of e.targetLinks)i.y1=r+i.width/2,r+=i.width}}function Mnt(){let t=0,e=0,n=1,r=1,i=24,a=8,o,s=Ont,c=qh,l,u,f,d=wnt,h=Snt,p=6;function v(D){const B={nodes:d(D),links:h(D)};return g(B),y(B),m(B),b(B),w(B),Ak(B),B}v.update=function(D){return Ak(D),D},v.nodeId=function(D){return arguments.length?(s=typeof D=="function"?D:Zh(D),v):s},v.nodeAlign=function(D){return arguments.length?(c=typeof D=="function"?D:Zh(D),v):c},v.nodeDepth=function(D){return arguments.length?(l=D,v):l},v.nodeSort=function(D){return arguments.length?(u=D,v):u},v.nodeWidth=function(D){return arguments.length?(i=+D,v):i},v.nodePadding=function(D){return arguments.length?(a=o=+D,v):a},v.nodes=function(D){return arguments.length?(d=typeof D=="function"?D:Zh(D),v):d},v.links=function(D){return arguments.length?(h=typeof D=="function"?D:Zh(D),v):h},v.linkSort=function(D){return arguments.length?(f=D,v):f},v.size=function(D){return arguments.length?(t=e=0,n=+D[0],r=+D[1],v):[n-t,r-e]},v.extent=function(D){return arguments.length?(t=+D[0][0],n=+D[1][0],e=+D[0][1],r=+D[1][1],v):[[t,e],[n,r]]},v.iterations=function(D){return arguments.length?(p=+D,v):p};function g({nodes:D,links:B}){D.forEach((z,Y)=>{z.index=Y,z.sourceLinks=[],z.targetLinks=[]});const F=new Map(D.map(z=>[s(z),z]));if(B.forEach((z,Y)=>{z.index=Y;let{source:q,target:rt}=z;typeof q!="object"&&(q=z.source=Ek(F,q)),typeof rt!="object"&&(rt=z.target=Ek(F,rt)),q.sourceLinks.push(z),rt.targetLinks.push(z)}),f!=null)for(const{sourceLinks:z,targetLinks:Y}of D)z.sort(f),Y.sort(f)}function y({nodes:D}){for(const B of D)B.value=B.fixedValue===void 0?Math.max(Di(B.sourceLinks,Nm),Di(B.targetLinks,Nm)):B.fixedValue}function m({nodes:D}){const B=D.length;let F=new Set(D),z=new Set,Y=0;for(;F.size;){if(F.forEach(q=>{q.depth=Y;for(const{target:rt}of q.sourceLinks)z.add(rt)}),++Y>B)throw new Error("circular link");F=z,z=new Set}if(l){const q=Math.max(Mn(D,st=>st.depth)+1,0);let rt;for(let st=0;st{q.height=Y;for(const{source:rt}of q.targetLinks)z.add(rt)}),++Y>B)throw new Error("circular link");F=z,z=new Set}}function _({nodes:D}){const B=Math.max(Mn(D,Y=>Y.depth)+1,0),F=(n-t-i)/(B-1),z=new Array(B).fill(0).map(()=>[]);for(const Y of D){const q=Math.max(0,Math.min(B-1,Math.floor(c.call(null,Y,B))));Y.layer=q,Y.x0=t+q*F,Y.x1=Y.x0+i,z[q]?z[q].push(Y):z[q]=[Y]}if(u)for(const Y of z)Y.sort(u);return z}function O(D){const B=Ei(D,F=>(r-e-(F.length-1)*o)/Di(F,Nm));for(const F of D){let z=e;for(const Y of F){Y.y0=z,Y.y1=z+Y.value*B,z=Y.y1+o;for(const q of Y.sourceLinks)q.width=q.value*B}z=(r-z+o)/(F.length+1);for(let Y=0;YF.length)-1)),O(B);for(let F=0;F0))continue;const Yt=(st/At-rt.y0)*B;rt.y0+=Yt,rt.y1+=Yt,j(rt)}u===void 0&&q.sort(Kh),q.length&&A(q,F)}}function E(D,B,F){for(let z=D.length,Y=z-2;Y>=0;--Y){const q=D[Y];for(const rt of q){let st=0,At=0;for(const{target:qt,value:Rt}of rt.sourceLinks){const Lt=Rt*(qt.layer-rt.layer);st+=R(rt,qt)*Lt,At+=Lt}if(!(At>0))continue;const Yt=(st/At-rt.y0)*B;rt.y0+=Yt,rt.y1+=Yt,j(rt)}u===void 0&&q.sort(Kh),q.length&&A(q,F)}}function A(D,B){const F=D.length>>1,z=D[F];C(D,z.y0-o,F-1,B),P(D,z.y1+o,F+1,B),C(D,r,D.length-1,B),P(D,e,0,B)}function P(D,B,F,z){for(;F1e-6&&(Y.y0+=q,Y.y1+=q),B=Y.y1+o}}function C(D,B,F,z){for(;F>=0;--F){const Y=D[F],q=(Y.y1-B)*z;q>1e-6&&(Y.y0-=q,Y.y1-=q),B=Y.y0-o}}function j({sourceLinks:D,targetLinks:B}){if(f===void 0){for(const{source:{sourceLinks:F}}of B)F.sort(Mk);for(const{target:{targetLinks:F}}of D)F.sort(Sk)}}function N(D){if(f===void 0)for(const{sourceLinks:B,targetLinks:F}of D)B.sort(Mk),F.sort(Sk)}function k(D,B){let F=D.y0-(D.sourceLinks.length-1)*o/2;for(const{target:z,width:Y}of D.sourceLinks){if(z===B)break;F+=Y+o}for(const{source:z,width:Y}of B.targetLinks){if(z===D)break;F-=Y}return F}function R(D,B){let F=B.y0-(B.targetLinks.length-1)*o/2;for(const{source:z,width:Y}of B.targetLinks){if(z===D)break;F+=Y+o}for(const{target:z,width:Y}of D.sourceLinks){if(z===B)break;F-=Y}return F}return v}const Ent={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},Ant={left:bnt,right:xnt,center:_nt,justify:qh};function Tnt(t){const e=typeof t;return e==="string"?Ant[t]||qh:e==="function"?t:qh}const Tk=t=>e=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:s,nodes:c,links:l,linkSort:u,iterations:f}=Object.assign({},Ent,t),d=Mnt().nodeSort(r).linkSort(u).links(l).nodes(c).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(Tnt(i)).iterations(f).extent([[0,0],[1,1]]);typeof n=="function"&&d.nodeId(n);const h=d(e),{nodes:p,links:v}=h,g=p.map(m=>{const{x0:b,x1:_,y0:O,y1:w}=m;return Object.assign(Object.assign({},m),{x:[b,_,_,b],y:[O,O,w,w]})}),y=v.map(m=>{const{source:b,target:_}=m,O=b.x1,w=_.x0,M=m.width/2;return Object.assign(Object.assign({},m),{x:[O,O,w,w],y:[m.y0+M,m.y0-M,m.y1+M,m.y1-M]})});return{nodes:g,links:y}};Tk.props={};var Pnt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,nodeWidth:.02,nodePadding:.02},knt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},Rnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},Lnt={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},Pk=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{links:u,nodes:f}=Pg(e,n),d=fe(n,"node"),h=fe(n,"link"),{key:p=A=>A.key,color:v=p}=d,{links:g,nodes:y}=Tk(Object.assign(Object.assign(Object.assign({},Cnt),{nodeId:ba(p)}),a))({links:u,nodes:f}),m=fe(i,"label"),{text:b=p,spacing:_=5}=m,O=Pnt(m,["text","spacing"]),w=ba(p),M=va(l,"node",{title:w,items:[{field:"value"}]},!0),E=va(l,"link",{title:"",items:[A=>({name:"source",value:w(A.source)}),A=>({name:"target",value:w(A.target)})]});return[Dt({},knt,{data:y,encode:Object.assign(Object.assign({},d),{color:v}),scale:r,style:fe(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},Lnt),{text:b,dx:A=>A.x[0]<.5?_:-_}),O),...o],tooltip:M,animate:ga(c,"node"),axis:!1}),Dt({},Rnt,{data:g,encode:h,labels:s,style:Object.assign({fill:h.color?void 0:"#aaa",strokeWidth:0},fe(i,"link")),tooltip:E,animate:ga(c,"link")})]};Pk.props={};function Nnt(t,e){return e.value-t.value}function Int(t,e){return e.frequency-t.frequency}function jnt(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function Dnt(t,e){return`${t.name}`.localeCompare(`${e.name}`)}const Bnt={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};function Fnt(t){const{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:s,sourceWeight:c,targetWeight:l,sortBy:u}=Object.assign(Object.assign({},Bnt),t);function f(g){const y=g.nodes.map(b=>Object.assign({},b)),m=g.edges.map(b=>Object.assign({},b));return d(y,m),h(y,m),p(y,m),v(y,m),{nodes:y,edges:m}}function d(g,y){y.forEach(_=>{_.source=o(_),_.target=s(_),_.sourceWeight=c(_),_.targetWeight=l(_)});const m=Kn(y,_=>_.source),b=Kn(y,_=>_.target);return g.forEach(_=>{_.id=a(_);const O=m.has(_.id)?m.get(_.id):[],w=b.has(_.id)?b.get(_.id):[];_.frequency=O.length+w.length,_.value=Di(O,M=>M.sourceWeight)+Di(w,M=>M.targetWeight)}),{nodes:g,edges:y}}function h(g,y){const m=typeof u=="function"?u:Be[u];m&&g.sort(m)}function p(g,y){const m=g.length;if(!m)throw $s("Invalid nodes: it's empty!");if(!r){const O=1/m;return g.forEach((w,M)=>{w.x=(M+.5)*O,w.y=e}),{nodes:g,edges:y}}const b=i/(2*m),_=g.reduce((O,w)=>O+=w.value,0);return g.reduce((O,w)=>{w.weight=w.value/_,w.width=w.weight*(1-i),w.height=n;const M=b+O,E=M+w.width,A=e-n/2,P=A+n;return w.x=[M,E,E,M],w.y=[A,A,P,P],O+w.width+2*b},0),{nodes:g,edges:y}}function v(g,y){const m=new Map(g.map(O=>[O.id,O]));if(!r)return y.forEach(O=>{const w=o(O),M=s(O),E=m.get(w),A=m.get(M);E&&A&&(O.x=[E.x,A.x],O.y=[E.y,A.y])}),{nodes:g,edges:y};y.forEach(O=>{O.x=[0,0,0,0],O.y=[e,e,e,e]});const b=Kn(y,O=>O.source),_=Kn(y,O=>O.target);g.forEach(O=>{const{edges:w,width:M,x:E,y:A,value:P,id:C}=O,j=b.get(C)||[],N=_.get(C)||[];let k=0;j.map(R=>{const D=R.sourceWeight/P*M;R.x[0]=E[0]+k,R.x[1]=E[0]+k+D,k+=D}),N.forEach(R=>{const D=R.targetWeight/P*M;R.x[3]=E[0]+k,R.x[2]=E[0]+k+D,k+=D})})}return f}const Im=t=>e=>Fnt(t)(e);Im.props={};var Ck=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},znt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},Gnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1,strokeWidth:1}},Wnt={position:"outside",fontSize:10},kk=(t,e)=>{const{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:s=[],linkLabels:c=[],animate:l={},tooltip:u={}}=t,{nodes:f,links:d}=Pg(n,r),h=fe(r,"node"),p=fe(r,"link"),{key:v=R=>R.key,color:g=v}=h,{linkEncodeColor:y=R=>R.source}=p,{nodeWidthRatio:m=jm.thickness,nodePaddingRatio:b=jm.marginRatio}=o,_=Ck(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=Im(Object.assign(Object.assign(Object.assign(Object.assign({},jm),{id:ba(v),thickness:m,marginRatio:b}),_),{weight:!0}))({nodes:f,edges:d}),M=fe(a,"label"),{text:E=v}=M,A=Ck(M,["text"]),P=va(u,"node",{title:"",items:[R=>({name:R.key,value:R.value})]},!0),C=va(u,"link",{title:"",items:[R=>({name:`${R.source} -> ${R.target}`,value:R.value})]}),{height:j,width:N}=e,k=Math.min(j,N);return[Dt({},Gnt,{data:w,encode:Object.assign(Object.assign({},p),{color:y}),labels:c,style:Object.assign({fill:y?void 0:"#aaa"},fe(a,"link")),tooltip:C,animate:ga(l,"link")}),Dt({},znt,{data:O,encode:Object.assign(Object.assign({},h),{color:g}),scale:i,style:fe(a,"node"),coordinate:{type:"polar",outerRadius:(k-20)/k,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},Wnt),{text:E}),A),...s],tooltip:P,animate:ga(l,"node"),axis:!1})]};kk.props={};function Hnt(t,e,n,r,i){var a=t.children,o,s=a.length,c,l=new Array(s+1);for(l[0]=c=o=0;o=d-1){var m=a[f];m.x0=p,m.y0=v,m.x1=g,m.y1=y;return}for(var b=l[f],_=h/2+b,O=f+1,w=d-1;O>>1;l[M]<_?O=M+1:w=M}_-l[O-1]y-v){var P=h?(p*A+g*E)/h:g;u(f,O,E,p,v,P,y),u(O,d,A,P,v,g,y)}else{var C=h?(v*A+y*E)/h:y;u(f,O,E,p,v,g,C),u(O,d,A,p,C,g,y)}}}function Qh(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++sm&&(m=l),w=g*g*O,b=Math.max(m/w,w/y),b>_){g-=l;break}_=b}o.push(c={value:g,dice:h1?r:1)},n}(Rk),$nt=function t(e){function n(r,i,a,o,s){if((c=r._squarify)&&c.ratio===e)for(var c,l,u,f,d=-1,h,p=c.length,v=r.value;++d1?r:1)},n}(Rk);function Vnt(){var t=Nk,e=!1,n=1,r=1,i=[0],a=xs,o=xs,s=xs,c=xs,l=xs;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],e&&d.eachBefore(CS),d}function f(d){var h=i[d.depth],p=d.x0+h,v=d.y0+h,g=d.x1-h,y=d.y1-h;ge.ignoreParentValue&&o.children?0:ba(r)(o)).sort(e.sort):a.count(),Vnt().tile(i).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(a),a.descendants().map(o=>Object.assign(o,{x:[o.x0,o.x1],y:[o.y0,o.y1]})).filter(typeof e.layer=="function"?e.layer:o=>o.height===e.layer)}const Znt=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(n,r)=>r.value-n.value,layer:0}),Knt=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",color:n=>n.data.parent.name},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"}}),Qnt={fontSize:10,text:t=>t.data.name,position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},Jnt={title:t=>t.data.name,items:[{field:"value"}]},Ik=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=Xnt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=qnt(i,Dt({},Znt(n,r),c),a),h=fe(s,"label");return Dt({},Knt(n,r),Object.assign(Object.assign({data:d,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},Qnt),h),...l]},f),{tooltip:eg(u,Jnt),axis:!1}))};Ik.props={};function trt(){return{"data.arc":Im,"data.cluster":uk,"mark.forceGraph":ck,"mark.tree":dk,"mark.pack":wk,"mark.sankey":Pk,"mark.chord":kk,"mark.treemap":Ik}}var jk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[n])}function nrt(t,e){return Mn(t,n=>e[n])}function Dk(t,e){const n=Dm(t,e)*2.5-Bm(t,e)*1.5;return Ei(t,r=>e[r]>=n?e[r]:NaN)}function Dm(t,e){return gh(t,.25,n=>e[n])}function rrt(t,e){return gh(t,.5,n=>e[n])}function Bm(t,e){return gh(t,.75,n=>e[n])}function Bk(t,e){const n=Bm(t,e)*2.5-Dm(t,e)*1.5;return Mn(t,r=>e[r]<=n?e[r]:NaN)}function irt(){return(t,e)=>{const{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(Kn(t,l=>o[+l]).values()).flatMap(l=>{const u=Dk(l,a),f=Bk(l,a);return l.filter(d=>a[d]f)}),e]}}const Fk=t=>{const{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,s=jk(t,["data","encode","style","tooltip","transform","animate"]),{point:c=!0}=r,l=jk(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:Dm,y2:rrt,y3:Bm},h=va(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=va(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!c)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:ert},d),{y4:nrt})],encode:Object.assign(Object.assign({},n),f),style:l,tooltip:h},s);const v=fe(l,"box"),g=fe(l,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:Dk},d),{y4:Bk})],encode:Object.assign(Object.assign({},n),f),style:v,tooltip:h,animate:ga(o,"box")},s),{type:"point",data:e,transform:[{type:irt}],encode:n,style:Object.assign({},g),tooltip:p,animate:ga(o,"point")}]};Fk.props={};var Jh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{shape:n,radius:r}=t,i=Jh(t,["shape","radius"]),a=fe(i,"pointer"),o=fe(i,"pin"),{shape:s}=a,c=Jh(a,["shape"]),{shape:l}=o,u=Jh(o,["shape"]),{coordinate:f,theme:d}=e;return(h,p)=>{const v=h.map(k=>f.invert(k)),[g,y,m]=cB(f,"polar"),b=f.clone(),{color:_}=p,O=av({startAngle:g,endAngle:y,innerRadius:m,outerRadius:r});O.push(["cartesian"]),b.update({transformations:O});const w=v.map(k=>b.map(k)),[M,E]=MO(w),[A,P]=f.getCenter(),C=Object.assign(Object.assign({x1:M,y1:E,x2:A,y2:P,stroke:_},c),i),j=Object.assign(Object.assign({cx:A,cy:P,stroke:_},u),i),N=je(new Br);return ka(s)||(typeof s=="function"?N.append(()=>s(w,p,b,d)):N.append("line").call(Ae,C).node()),ka(l)||(typeof l=="function"?N.append(()=>l(w,p,b,d)):N.append("circle").call(Ae,j).node()),N.node()}},zk={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-11/10*Math.PI,endAngle:1/10*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},ort={style:{shape:art,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},srt={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}};function crt(t){if((0,xr.Z)(t)){const e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}function lrt(t,e){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=crt(t),s=a||r,c=a?1:i,l=Object.assign({y:{domain:[0,c]}},e);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((u,f)=>({x:n,y:f>=1?u-o[f-1]:u,color:f})),target:s,total:c,scale:l}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:c-s,color:"total"}],target:s,total:c,scale:l}}function urt(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const Gk=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=Jh(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:c,target:l,total:u,scale:f}=lrt(e,n),d=fe(r,"text"),h=H7(r,["pointer","pin"]);return[Dt({},zk,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:f,style:fe(r,"arc"),animate:typeof i=="object"?fe(i,"arc"):i},o)),Dt({},zk,ort,Object.assign({type:"point",data:s,scale:f,style:h,animate:typeof i=="object"?fe(i,"indicator"):i},o)),Dt({},srt,{style:Object.assign({text:urt(d,{target:l,total:u})},d),animate:typeof i=="object"?fe(i,"text"):i})]};Gk.props={};const Fm=Math.PI/180,Eu=64,tp=2048;function frt(t){return t.text}function drt(){return"serif"}function Wk(){return"normal"}function hrt(t){return t.value}function prt(){return~~(Math.random()*2)*90}function vrt(){return 1}function grt(){}function yrt(t,e,n,r){if(e.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Eu<<5)/a,tp/a);let o=0,s=0,c=0;const l=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Eu<<5&&(o=0,s+=c,c=0),s+h>=tp)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*Fm),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=d,e.height=h,e.xoff=o,e.yoff=s,e.x1=d>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=d}const u=i.getImageData(0,0,(Eu<<5)/a,tp/a).data,f=[];for(;--r>=0;){if(e=n[r],!e.hasText)continue;const d=e.width,h=d>>5;let p=e.y1-e.y0;for(let y=0;y>5),_=u[(s+y)*(Eu<<5)+(o+m)<<2]?1<<31-m%32:0;f[b]|=_,v|=_}v?g=y:(e.y0++,p--,y--,s++)}e.y1=e.y0+g,e.sprite=f.slice(0,(e.y1-e.y0)*h)}}function mrt(t,e,n){n>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*n+(a>>5),u;for(let f=0;f>>o:0))&e[l+d])return!0;l+=n}return!1}function brt(t,e){const n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function xrt(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>5)*t[1]),w=u.length,M=[],E=u.map(function(j,N,k){return j.text=e.call(this,j,N,k),j.font=n.call(this,j,N,k),j.style=h.call(this,j,N,k),j.weight=i.call(this,j,N,k),j.rotate=a.call(this,j,N,k),j.size=~~r.call(this,j,N,k),j.padding=o.call(this,j,N,k),j}).sort(function(j,N){return N.size-j.size});let A=-1,P=v.board?[{x:0,y:0},{x:m,y:b}]:void 0;f&&clearInterval(f),f=setInterval(C,0),C();function C(){const j=Date.now();for(;Date.now()-j>1,N.y=b*(c()+.5)>>1,yrt(_,N,E,A),N.hasText&&y(O,N,P)&&(l.call(null,"word",{cloud:v,word:N}),M.push(N),P?v.hasImage||brt(P,N):P=[{x:N.x+N.x0,y:N.y+N.y0},{x:N.x+N.x1,y:N.y+N.y1}],N.x-=t[0]>>1,N.y-=t[1]>>1)}v._tags=M,v._bounds=P,A>=w&&(v.stop(),l.call(null,"end",{cloud:v,words:M,bounds:P}))}return v},v.stop=function(){return f&&(clearInterval(f),f=null),v};function g(m){m.width=m.height=1;const b=Math.sqrt(m.getContext("2d").getImageData(0,0,1,1).data.length>>2);m.width=(Eu<<5)/b,m.height=tp/b;const _=m.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:b}}function y(m,b,_){const O=b.x,w=b.y,M=Math.sqrt(t[0]*t[0]+t[1]*t[1]),E=s(t),A=c()<.5?1:-1;let P,C=-A,j,N;for(;(P=E(C+=A))&&(j=~~P[0],N=~~P[1],!(Math.min(Math.abs(j),Math.abs(N))>=M));)if(b.x=O+j,b.y=w+N,!(b.x+b.x0<0||b.y+b.y0<0||b.x+b.x1>t[0]||b.y+b.y1>t[1])&&(!_||!mrt(b,m,t[0]))&&(!_||xrt(b,_))){const k=b.sprite,R=b.width>>5,D=t[0]>>5,B=b.x-(R<<4),F=B&127,z=32-F,Y=b.y1-b.y0;let q,rt=(b.y+b.y0)*D+(B>>5);for(let st=0;st>>F:0);rt+=D}return delete b.sprite,!0}return!1}return v.createMask=m=>{const b=document.createElement("canvas"),[_,O]=t;if(!_||!O)return;const w=_>>5,M=Yk((_>>5)*O);b.width=_,b.height=O;const E=b.getContext("2d");E.drawImage(m,0,0,m.width,m.height,0,0,_,O);const A=E.getImageData(0,0,_,O).data;for(let P=0;P>5),N=P*_+C<<2,R=A[N]>=250&&A[N+1]>=250&&A[N+2]>=250?1<<31-C%32:0;M[j]|=R}v.board=M,v.hasImage=!0},v.timeInterval=function(m){d=m==null?1/0:m},v.words=function(m){u=m},v.size=function(m=[]){t=[+m[0],+m[1]]},v.text=function(m){e=To(m)},v.font=function(m){n=To(m)},v.fontWeight=function(m){i=To(m)},v.rotate=function(m){a=To(m)},v.spiral=function(m){s=wrt[m]||m},v.fontSize=function(m){r=To(m)},v.padding=function(m){o=To(m)},v.random=function(m){c=To(m)},v.on=function(m){l=To(m)},v}var Mrt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function Ert(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return Mrt(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this})}}}var Art=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},Trt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(t instanceof HTMLImageElement){e(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()};return}n()})}function krt(t,e){if(typeof t=="function")return t;if(Array.isArray(t)){const[n,r]=t;if(!e)return()=>(r+n)/2;const[i,a]=e;return a===i?()=>(r+n)/2:({value:o})=>(r-n)/(a-i)*(o-i)+n}return()=>t}const $k=t=>e=>Art(void 0,void 0,void 0,function*(){const n=Object.assign({},Prt,t),r=Srt();yield Ert(r,n).set("fontSize",y=>{const m=e.map(b=>b.value);return krt(y,[Ei(m),Mn(m)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",Crt,r.createMask),r.words([...e]);const i=r.start(),[a,o]=n.size,s=[{x:0,y:0},{x:a,y:o}],{_bounds:c=s,_tags:l,hasImage:u}=i,f=l.map(y=>{var{x:m,y:b}=y,_=Trt(y,["x","y"]);return Object.assign(Object.assign({},_),{x:m+a/2,y:b+o/2})}),[{x:d,y:h},{x:p,y:v}]=c,g={text:"",value:0,opacity:0,fontSize:0};return f.push(Object.assign(Object.assign({},g),{x:u?0:d,y:u?0:h}),Object.assign(Object.assign({},g),{x:u?a:p,y:u?o:v})),f});$k.props={};var Rrt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},Lrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iObject.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const Irt=(t,e)=>({size:[t,e]}),jrt=(t,e)=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size"},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]},fontSize:{type:"identity"},rotate:{type:"identity"}},style:{textAlign:"center"}}),Vk=(t,e)=>Rrt(void 0,void 0,void 0,function*(){const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={}}=t,l=Lrt(t,["data","encode","scale","style","layout"]),u=Nrt(i,a),f=yield $k(Object.assign(Object.assign({},Irt(n,r)),c))(u);return Dt({},jrt(n,r),Object.assign(Object.assign({data:f,encode:a,scale:o,style:s},l),{axis:!1}))});Vk.props={};const Xk=5e3;function Uk(t,e,n){return t+(e-t)*n}function Drt(t,e,n,r){return e===0?[[t+1/2*n/Math.PI/2,r/2],[t+1/2*n/Math.PI,r],[t+n/4,r]]:e===1?[[t+1/2*n/Math.PI/2*(Math.PI-2),r],[t+1/2*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:e===2?[[t+1/2*n/Math.PI/2,-r/2],[t+1/2*n/Math.PI,-r],[t+n/4,-r]]:[[t+1/2*n/Math.PI/2*(Math.PI-2),-r],[t+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function Brt(t,e,n,r,i,a,o){const s=Math.ceil(2*t/n*4)*4,c=[];let l=r;for(;l<-Math.PI*2;)l+=Math.PI*2;for(;l>0;)l-=Math.PI*2;l=l/Math.PI/2*n;const u=a-t+l-t*2;c.push(["M",u,e]);let f=0;for(let d=0;dqk[t]||qk.circle,Kk=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=Zk(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=Zk(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:_,fillOpacity:O}=m,w=Object.assign(Object.assign({fill:_},m),u),M=b.createElement("g",{}),[E,A]=n.getCenter(),P=n.getSize(),C=Math.min(...P)/2,N=(gi(a)?a:$rt(a))(E,A,C,...P);if(Object.keys(s).length){const D=b.createElement("path",{style:Object.assign({path:N,fill:"#fff"},s)});M.appendChild(D)}if(o>0){const D=b.createElement("path",{style:{path:N}});M.appendChild(D),M.style.clipPath=D,Frt(E,A,1-o,v,w,M,D.getBBox().y,C*2,p,!0,b)}const k=b.createElement("path",{style:{path:N,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),R=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({path:N,stroke:_,strokeOpacity:O,lineWidth:f},w),h),{fill:"transparent"})});return M.appendChild(k),M.appendChild(R),M}};Kk.props={};var Vrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{data:e={},style:n={},animate:r}=t,i=Vrt(t,["data","style","animate"]),a=Math.max(0,(0,xr.Z)(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=fe(n,"text"),c=fe(n,"outline"),l=fe(n,"wave"),u=fe(n,"background");return[Dt({},Xrt,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),Dt({},Urt,{style:Object.assign({text:`${$f(a*100)} %`},s),animate:r})]};Qk.props={};var Ya=gt(52827);const Jk=1e-10;function t3(t,e){const n=Zrt(t),r=n.filter(function(c){return qrt(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Krt(r);for(o=0;o-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=Au(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=zm(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;oMath.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Jk,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function qrt(t,e){for(let n=0;ne[n].radius+Jk)return!1;return!0}function Zrt(t){const e=[];for(let n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return zm(t,r)+zm(e,i)}function n3(t,e){const n=Au(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Krt(t){const e={x:0,y:0};for(let n=0;ns>c?1:-1),r=0;r=Math.min(e[o].size,e[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function eit(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*v*v,e[2*a]+=4*v*(o-l),e[2*a+1]+=4*v*(s-u),e[2*c]+=4*v*(l-o),e[2*c+1]+=4*v*(u-s))}}return i}function nit(t,e){let n=iit(t,e);const r=e.lossFunction||Wm;if(t.length>=8){const i=rit(t,e),a=r(i,t),o=r(n,t);a+1e-8=Math.min(r[p].size,r[v].size)&&(h=0),i[p].push({set:v,size:d.size,weight:h}),i[v].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d0){const i=t[0].x,a=t[0].y;for(r=0;r1){const i=Math.atan2(t[1].x,t[1].y)-e;let a,o;const s=Math.cos(i),c=Math.sin(i);for(r=0;r2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(r=0;ro;r.push(` +A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const i3=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Qrt(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||sit(l,p,v,i);const g=d.map(m=>u[m]);let y=lit(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};i3.props={};function uit(){return{"data.venn":i3,"mark.boxplot":Fk,"mark.gauge":Gk,"mark.wordCloud":Vk,"mark.liquid":Qk}}function fit(){return Object.assign(Object.assign(Object.assign(Object.assign({},Ytt()),trt()),uit()),zJ())}var ep=function(){return ep=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var w=_.x,M=_.y,E=_.height,A=_.width,P=_.data,C=Mr(P,l),j=v/2;if(e){var N=w+A/2,k=M;d.push({points:[[N+j,k-f+b],[N+j,k-y-b],[N,k-b],[N-j,k-y-b],[N-j,k-f+b]],center:[N,k-f/2-b],width:f,value:[u,C]})}else{var N=w,k=M+E/2;d.push({points:[[w-f+b,k-j],[w-y-b,k-j],[N-b,k],[w-y-b,k+j],[w-f+b,k+j]],center:[N-f/2-b,k],width:f,value:[u,C]})}u=C}}),d},t.prototype.init=function(){var e=this.chart.getContext().canvas;this.canvas=e,this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var e=this.chart.getCoordinate(),n=Mr(e,"options.transformations"),r="horizontal";n.forEach(function(i){i.includes("transpose")&&(r="vertical")}),this.direction=r},t.prototype.drawConversionTag=function(){var e=this,n=this.getConversionTagLayout(),r=this.options,i=r.style,a=r.text,o=a.style,s=a.formatter;n.forEach(function(c){var l=c.points,u=c.center,f=c.value,d=f[0],h=f[1],p=u[0],v=u[1],g=new il({style:np({points:l,fill:"#eee"},i)}),y=new Zi({style:np({x:p,y:v,text:Wt(s)?s(d,h):(h/d*100).toFixed(2)+"%",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000"},o)});e.canvas.appendChild(g),e.canvas.appendChild(y),e.container.push(g,y)})},t.prototype.update=function(e){},t.prototype.destroy=function(){this.container.forEach(function(e){e.destroy()})},t}(),pit=1,vit=2;function git(t,e,n,r){var i=n.length,a=i,o=!r;if(t==null)return!a;for(t=Object(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i-1}var qit=Uit;function Zit(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=nat){var l=e?null:eat(t);if(l)return xp(l);o=!1,i=g1,c=new v1}else c=e?[]:s;t:for(;++r0&&n(s)?e>1?g3(s,e-1,n,r,i):Op(i,s):r||(i[i.length]=s)}return i}var Wat=g3;function Hat(t){var e=t==null?0:t.length;return e?Wat(t,1):[]}var Yat=Hat;function $at(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Vat=$at,y3=Math.max;function Xat(t,e,n){return e=y3(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=y3(r.length-e,0),o=Array(a);++i0){if(++e>=Qat)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var not=eot,rot=not(Kat),b3=rot;function iot(t){return b3(m3(t,void 0,Yat),t+"")}var Jm=iot,aot=Jm(function(t,e){return t==null?{}:Fat(t,e)}),rp=aot;function oot(t,e,n){return t==null?t:p3(t,e,n)}var $e=oot,ku=function(){return ku=Object.assign||function(t){for(var e,n=1,r=arguments.length;ni?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r1),a}),Cs(t,U1(t),n),r&&(n=rb(n,Sot|Mot|Eot,wot));for(var i=e.length;i--;)vot(n,e[i]);return n}),e1=Aot,Tot=function(t){return Object.keys(t).forEach(function(e){qm.includes(e)&&delete t[e]}),t},Pot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ic=function(){return Ic=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&$e(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=Mr(i,"y.domain",[]);if(a&&c.length&&Mt(o)){var l="domainMax",u=o.map(function(f){var d;return Lu(Lu({},f),(d={},d[l]=c[c.length-1],d))});s.unshift(Lu({type:"interval",data:u,yField:l,tooltip:!1,legend:!1,style:{fill:"#eee"},label:!1},a))}return n};return bn(e,pr,En)(t)}var ost=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sst=function(t){ost(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return e.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C3},e}(yn),cst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lst=function(t){cst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C3},e}(yn);function ust(t){var e=function(n){var r=n.options,i=r.annotations,a=i===void 0?[]:i,o=r.children,s=o===void 0?[]:o,c=!1;return s.forEach(function(l,u){var f="child".concat(u,"Scale");$e(l,"scale.y.key",f);var d=l.annotations,h=d===void 0?[]:d;h.length>0&&($e(l,"scale.y.independent",!1),h.forEach(function(p){$e(p,"scale.y.key",f)})),!c&&a.length>0&&Mr(l,"scale.y.independent")===void 0&&(c=!0,$e(l,"scale.y.independent",!1),a.forEach(function(p){$e(p,"scale.y.key",f)}))}),n};return bn(e,pr,En)(t)}var fst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),k3=function(t){fst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ust},e}(yn);function dst(t){var e=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||$e(o,"colorField",s),a},n=function(a){var o=a.options,s=o.compareField,c=o.transform,l=o.isTransposed,u=l===void 0?!0:l,f=o.coordinate;return c||(s?$e(o,"transform",[]):$e(o,"transform",[{type:"symmetryY"}])),!f&&u&&$e(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,c=o.seriesField,l=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||c){var p=Object.values(f3(l,function(v){return v[s||c]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete o.compareField,delete o.data}return c&&($e(o,"type","spaceFlex"),$e(o,"ratio",[1,1]),$e(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,c=o.xField,l=o.yField;return s||$e(o,"tooltip",{title:!1,items:[function(u){return{name:u[c],value:u[l]}}]}),a};return bn(e,n,r,i,pr,En)(t)}var hst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pst=function(t){hst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dst},e}(yn);function vst(t){return bn(pr,En)(t)}var gst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yst=function(t){gst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vst},e}(yn);function mst(t){return bn(ip,En)(t)}var bst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xst=function(t){bst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mst},e}(yn);function _st(t){return bn(pr,En)(t)}var Ost=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wst=function(t){Ost(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _st},e}(yn);function Sst(t){var e=function(n){return $e(n,"options.coordinate",{type:Mr(n,"options.coordinateType","polar")}),n};return bn(e,ip,En)(t)}var Mst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Est=function(t){Mst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Sst},e}(yn);function Ast(t,e){var n=-1,r=Do(t)?Array(t.length):[];return u3(t,function(i,a,o){r[++n]=e(i,a,o)}),r}var Tst=Ast;function Pst(t,e){var n=Mt(t)?Zu:Tst;return n(t,$m(e,3))}var jc=Pst,$a=function(){return $a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Dc]),d},[]),u.shift(),c.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:u1({stroke:"#697474"},l),label:!1,tooltip:!1}),r};return bn(e,n,pr,En)(t)}var ict=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),act=function(t){ict(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:l1,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rct},e}(yn),oct="[object Number]";function sct(t){return typeof t=="number"||Oi(t)&&ot(t)==oct}var Bc=sct;function cct(t,e){return b3(m3(t,e,Ym),t+"")}var lct=cct;function uct(t,e,n){if(!Ot(n))return!1;var r=typeof e;return(r=="number"?Do(n)&&Yu(e,n.length):r=="string"&&e in n)?Pe(n[e],t):!1}var fct=uct;function dct(t){return lct(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&fct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r-1:!!i&&c3(t,e,n)>-1}var hlt=dlt,na=function(){return na=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=L.length?void 0:L)&&L[V++],done:!L}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nt(L,I){var G=typeof Symbol=="function"&&L[Symbol.iterator];if(!G)return L;var V,at,lt=G.call(L),Q=[];try{for(;(I===void 0||0at=>G(V(at)),L)}function De(L,I){return I-L?G=>(G-L)/(I-L):G=>.5}const an=Math.sqrt(50),_e=Math.sqrt(10),Me=Math.sqrt(2);function pn(L,I,G){return I=(I-L)/Math.max(0,G),L=Math.floor(Math.log(I)/Math.LN10),G=I/wr(10,L),0<=L?(G>=an?10:G>=_e?5:G>=Me?2:1)*wr(10,L):-wr(10,-L)/(G>=an?10:G>=_e?5:G>=Me?2:1)}const Ln=(L,I,G=5)=>{L=[L,I];let V=0,at=L.length-1,lt=L[V],Q=L[at],J;return Q{G.prototype.rescale=function(){this.initRange(),this.nice();var[V]=this.chooseTransforms();this.composeOutput(V,this.chooseClamp(V))},G.prototype.initRange=function(){var V=this.options.interpolator;this.options.range=L(V)},G.prototype.composeOutput=function(V,at){var lt,{domain:J,interpolator:Q,round:pt}=this.getOptions(),J=I(J.map(V)),pt=pt?(lt=Q,bt=>(bt=lt(bt),yt(bt)?Math.round(bt):bt)):Q;this.output=He(pt,J,at,V)},G.prototype.invert=void 0}}var fn,Ee={exports:{}},Xe={exports:{}},mt=function(L){return!(!L||typeof L=="string")&&(L instanceof Array||Array.isArray(L)||0<=L.length&&(L.splice instanceof Function||Object.getOwnPropertyDescriptor(L,L.length-1)&&L.constructor.name!=="String"))},U=Array.prototype.concat,X=Array.prototype.slice,Z=Xe.exports=function(L){for(var I=[],G=0,V=L.length;GG=>L*(1-G)+I*G,wt=(L,I)=>{if(typeof L=="number"&&typeof I=="number")return ft(L,I);if(typeof L!="string"||typeof I!="string")return()=>L;{var G=L,V=I;const at=et(G),lt=et(V);return at===null||lt===null?at?()=>G:()=>V:Q=>{var J=new Array(4);for(let de=0;de<4;de+=1){var pt=at[de],bt=lt[de];J[de]=pt*(1-Q)+bt*Q}var[ne,ae,be,re]=J;return`rgba(${Math.round(ne)}, ${Math.round(ae)}, ${Math.round(be)}, ${re})`}}},H=(L,I)=>{const G=ft(L,I);return V=>Math.round(G(V))};function tt({map:L,initKey:I},G){return I=I(G),L.has(I)?L.get(I):G}function ht(L){return typeof L=="object"?L.valueOf():L}class x extends Map{constructor(I){if(super(),this.map=new Map,this.initKey=ht,I!==null)for(var[G,V]of I)this.set(G,V)}get(I){return super.get(tt({map:this.map,initKey:this.initKey},I))}has(I){return super.has(tt({map:this.map,initKey:this.initKey},I))}set(I,G){return super.set(([{map:I,initKey:V},at]=[{map:this.map,initKey:this.initKey},I],V=V(at),I.has(V)?I.get(V):(I.set(V,at),at)),G);var V,at}delete(I){return super.delete(([{map:I,initKey:G},V]=[{map:this.map,initKey:this.initKey},I],G=G(V),I.has(G)&&(V=I.get(G),I.delete(G)),V));var G,V}}class T{constructor(I){this.options=$t({},this.getDefaultOptions()),this.update(I)}getOptions(){return this.options}update(I={}){this.options=$t({},this.options,I),this.rescale(I)}rescale(I){}}const W=Symbol("defaultUnknown");function K(L,I,G){for(let V=0;V""+I:typeof L=="object"?I=>JSON.stringify(I):I=>I}class xt extends T{getDefaultOptions(){return{domain:[],range:[],unknown:W}}constructor(I){super(I)}map(I){return this.domainIndexMap.size===0&&K(this.domainIndexMap,this.getDomain(),this.domainKey),nt({value:this.domainKey(I),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(I){return this.rangeIndexMap.size===0&&K(this.rangeIndexMap,this.getRange(),this.rangeKey),nt({value:this.rangeKey(I),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(I){var[G]=this.options.domain,[V]=this.options.range;this.domainKey=ot(G),this.rangeKey=ot(V),this.rangeIndexMap?(I&&!I.range||this.rangeIndexMap.clear(),I&&!I.domain&&!I.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new xt(this.options)}getRange(){return this.options.range}getDomain(){var I,G;return this.sortedDomain||({domain:I,compare:G}=this.options,this.sortedDomain=G?[...I].sort(G):I),this.sortedDomain}}function Ot(Xt){const{domain:I,range:G,paddingOuter:V,paddingInner:at,flex:lt,round:Q,align:J}=Xt;var pt=I.length,re=0<(re=(Xt=pt)-(bt=lt).length)?[...bt,...new Array(re).fill(1)]:re<0?bt.slice(0,Xt):bt,[Xt,bt]=G,bt=bt-Xt,ve=bt/(2/pt*V+1-1/pt*at);const ne=ve*at/pt;ve-=pt*ne;const ae=function(ge){const Te=Math.min(...ge);return ge.map(tn=>tn/Te)}(re),be=ve/ae.reduce((ge,Te)=>ge+Te);var re=new x(I.map((ge,Te)=>(Te=ae[Te]*be,[ge,Q?Math.floor(Te):Te]))),de=new x(I.map((ge,Te)=>(Te=ae[Te]*be+ne,[ge,Q?Math.floor(Te):Te]))),ve=Array.from(de.values()).reduce((ge,Te)=>ge+Te),Xt=Xt+(bt-(ve-ve/pt*at))*J;let Ce=Q?Math.round(Xt):Xt;var xe=new Array(pt);for(let ge=0;geve+Ce*re),{valueStep:re,valueBandWidth:de,adjustedRange:bt}}({align:V,range:at,round:lt,flex:G,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:I});this.valueStep=lt,this.valueBandWidth=at,this.adjustedRange=V}}const Tt=(L,I,G)=>{let V,at,lt=L,Q=I;if(lt===Q&&0{var[V,at]=V,[lt,Q]=lt;let J,pt;return He(pt=V{const V=Math.min(L.length,I.length)-1,at=new Array(V),lt=new Array(V);var Q=L[0]>L[V],J=Q?[...L].reverse():L,pt=Q?[...I].reverse():I;for(let bt=0;bt{var ne=function(be,re,de,ve,Xt){let Ce=de||0,xe=ve||be.length;for(var ke=Xt||(Te=>Te);Cere?xe=ge:Ce=ge+1}return Ce}(L,bt,1,V)-1,ae=at[ne];return He(lt[ne],ae)(bt)}},Vt=(L,I,G,V)=>(2Math.min(Math.max(lt,J),Q)}return te}composeOutput(I,G){var{domain:Q,range:V,round:at,interpolate:lt}=this.options,Q=Vt(Q.map(I),V,lt,at);this.output=He(Q,G,I)}composeInput(I,G,V){var{domain:at,range:lt}=this.options,lt=Vt(lt,at.map(I),ft);this.input=He(G,V,lt)}}class Qt extends Wt{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:wt,tickMethod:Tt,tickCount:5}}chooseTransforms(){return[te,te]}clone(){return new Qt(this.options)}}class se extends Et{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:W,paddingInner:1,paddingOuter:0}}constructor(I){super(I)}getPaddingInner(){return 1}clone(){return new se(this.options)}update(I){super.update(I)}getPaddingOuter(){return this.options.padding}}function Mt(L,I){for(var G=[],V=0,at=L.length;V{var[I,G]=I;return He(ft(0,1),De(I,G))})],Le);let jn=Ne=class extends Qt{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:te,tickMethod:Tt,tickCount:5}}constructor(L){super(L)}clone(){return new Ne(this.options)}};jn=Ne=function(L,I,G,V){var at,lt=arguments.length,Q=lt<3?I:V===null?V=Object.getOwnPropertyDescriptor(I,G):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(L,I,G,V);else for(var J=L.length-1;0<=J;J--)(at=L[J])&&(Q=(lt<3?at(Q):3{const[I,G,V]=L,at=He(ft(0,.5),De(I,G)),lt=He(ft(.5,1),De(G,V));return Q=>(I>V?Qye?ye:_t};Ge.Z=gt},58622:function(Ve,Ge){"use strict";var gt=function(_t){return _t==null};Ge.Z=gt},39696:function(Ve,Ge,gt){"use strict";var _t=gt(98104),Nt=function(ye){return(0,_t.Z)(ye,"Number")};Ge.Z=Nt},98104:function(Ve,Ge){"use strict";var gt={}.toString,_t=function(Nt,ye){return gt.call(Nt)==="[object "+ye+"]"};Ge.Z=_t},50304:function(Ve,Ge,gt){"use strict";gt.d(Ge,{Z:function(){return mt}});var _t=gt(50959),Nt=gt(84875),ye=gt.n(Nt),Be=gt(87017),Jt=gt(31594),he=gt(17436),ie=gt(25670),Ht=gt(66146),yt=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{var{prefixCls:X,className:Z,hoverable:it=!0}=U,ct=yt(U,["prefixCls","className","hoverable"]);const{getPrefixCls:zt}=_t.useContext(Jt.E_),Ct=zt("card",X),ee=ye()(`${Ct}-grid`,Z,{[`${Ct}-grid-hoverable`]:it});return _t.createElement("div",Object.assign({},ct,{className:ee}))},$t=gt(60076),te=gt(6301),Bt=gt(81501),It=gt(90467);const kt=U=>{const{antCls:X,componentCls:Z,headerHeight:it,cardPaddingBase:ct,tabsMarginBottom:zt}=U;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:it,marginBottom:-1,padding:`0 ${(0,$t.bf)(ct)}`,color:U.colorTextHeading,fontWeight:U.fontWeightStrong,fontSize:U.headerFontSize,background:U.headerBg,borderBottom:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${U.colorBorderSecondary}`,borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0`},(0,te.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},te.vS),{[` + > ${Z}-typography, + > ${Z}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${X}-tabs-top`]:{clear:"both",marginBottom:zt,color:U.colorText,fontWeight:"normal",fontSize:U.fontSize,"&-bar":{borderBottom:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${U.colorBorderSecondary}`}}})},Ft=U=>{const{cardPaddingBase:X,colorBorderSecondary:Z,cardShadow:it,lineWidth:ct}=U;return{width:"33.33%",padding:X,border:0,borderRadius:0,boxShadow:` + ${(0,$t.bf)(ct)} 0 0 0 ${Z}, + 0 ${(0,$t.bf)(ct)} 0 0 ${Z}, + ${(0,$t.bf)(ct)} ${(0,$t.bf)(ct)} 0 0 ${Z}, + ${(0,$t.bf)(ct)} 0 0 0 ${Z} inset, + 0 ${(0,$t.bf)(ct)} 0 0 ${Z} inset; + `,transition:`all ${U.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:it}}},Se=U=>{const{componentCls:X,iconCls:Z,actionsLiMargin:it,cardActionsIconSize:ct,colorBorderSecondary:zt,actionsBg:Ct}=U;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:Ct,borderTop:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`,display:"flex",borderRadius:`0 0 ${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)}`},(0,te.dF)()),{"& > li":{margin:it,color:U.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:U.calc(U.cardActionsIconSize).mul(2).equal(),fontSize:U.fontSize,lineHeight:U.lineHeight,cursor:"pointer","&:hover":{color:U.colorPrimary,transition:`color ${U.motionDurationMid}`},[`a:not(${X}-btn), > ${Z}`]:{display:"inline-block",width:"100%",color:U.colorTextDescription,lineHeight:(0,$t.bf)(U.fontHeight),transition:`color ${U.motionDurationMid}`,"&:hover":{color:U.colorPrimary}},[`> ${Z}`]:{fontSize:ct,lineHeight:(0,$t.bf)(U.calc(ct).mul(U.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`}}})},Re=U=>Object.assign(Object.assign({margin:`${(0,$t.bf)(U.calc(U.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,te.dF)()),{"&-avatar":{paddingInlineEnd:U.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:U.marginXS}},"&-title":Object.assign({color:U.colorTextHeading,fontWeight:U.fontWeightStrong,fontSize:U.fontSizeLG},te.vS),"&-description":{color:U.colorTextDescription}}),Ke=U=>{const{componentCls:X,cardPaddingBase:Z,colorFillAlter:it}=U;return{[`${X}-head`]:{padding:`0 ${(0,$t.bf)(Z)}`,background:it,"&-title":{fontSize:U.fontSize}},[`${X}-body`]:{padding:`${(0,$t.bf)(U.padding)} ${(0,$t.bf)(Z)}`}}},We=U=>{const{componentCls:X}=U;return{overflow:"hidden",[`${X}-body`]:{userSelect:"none"}}},Ze=U=>{const{antCls:X,componentCls:Z,cardShadow:it,cardHeadPadding:ct,colorBorderSecondary:zt,boxShadowTertiary:Ct,cardPaddingBase:ee,extraColor:$}=U;return{[Z]:Object.assign(Object.assign({},(0,te.Wf)(U)),{position:"relative",background:U.colorBgContainer,borderRadius:U.borderRadiusLG,[`&:not(${Z}-bordered)`]:{boxShadow:Ct},[`${Z}-head`]:kt(U),[`${Z}-extra`]:{marginInlineStart:"auto",color:$,fontWeight:"normal",fontSize:U.fontSize},[`${Z}-body`]:Object.assign({padding:ee,borderRadius:` 0 0 ${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)}`},(0,te.dF)()),[`${Z}-grid`]:Ft(U),[`${Z}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${X}-image-mask`]:{borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0`}},[`${Z}-actions`]:Se(U),[`${Z}-meta`]:Re(U)}),[`${Z}-bordered`]:{border:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`,[`${Z}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${Z}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${U.motionDurationMid}, border-color ${U.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:it}},[`${Z}-contain-grid`]:{borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0 `,[`${Z}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${Z}-loading) ${Z}-body`]:{marginBlockStart:U.calc(U.lineWidth).mul(-1).equal(),marginInlineStart:U.calc(U.lineWidth).mul(-1).equal(),padding:0}},[`${Z}-contain-tabs`]:{[`> ${Z}-head`]:{minHeight:0,[`${Z}-head-title, ${Z}-extra`]:{paddingTop:ct}}},[`${Z}-type-inner`]:Ke(U),[`${Z}-loading`]:We(U),[`${Z}-rtl`]:{direction:"rtl"}}},cn=U=>{const{componentCls:X,cardPaddingSM:Z,headerHeightSM:it,headerFontSizeSM:ct}=U;return{[`${X}-small`]:{[`> ${X}-head`]:{minHeight:it,padding:`0 ${(0,$t.bf)(Z)}`,fontSize:ct,[`> ${X}-head-wrapper`]:{[`> ${X}-extra`]:{fontSize:U.fontSize}}},[`> ${X}-body`]:{padding:Z}},[`${X}-small${X}-contain-tabs`]:{[`> ${X}-head`]:{[`${X}-head-title, ${X}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},He=U=>({headerBg:"transparent",headerFontSize:U.fontSizeLG,headerFontSizeSM:U.fontSize,headerHeight:U.fontSizeLG*U.lineHeightLG+U.padding*2,headerHeightSM:U.fontSize*U.lineHeight+U.paddingXS*2,actionsBg:U.colorBgContainer,actionsLiMargin:`${U.paddingSM}px 0`,tabsMarginBottom:-U.padding-U.lineWidth,extraColor:U.colorText});var De=(0,Bt.I$)("Card",U=>{const X=(0,It.TS)(U,{cardShadow:U.boxShadowCard,cardHeadPadding:U.padding,cardPaddingBase:U.paddingLG,cardActionsIconSize:U.fontSize,cardPaddingSM:12});return[Ze(X),cn(X)]},He),an=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{const{prefixCls:X,actions:Z=[]}=U;return _t.createElement("ul",{className:`${X}-actions`},Z.map((it,ct)=>{const zt=`action-${ct}`;return _t.createElement("li",{style:{width:`${100/Z.length}%`},key:zt},_t.createElement("span",null,it))}))};var pn=_t.forwardRef((U,X)=>{const{prefixCls:Z,className:it,rootClassName:ct,style:zt,extra:Ct,headStyle:ee={},bodyStyle:$={},title:ut,loading:vt,bordered:Ut=!0,size:et,type:ft,cover:wt,actions:H,tabList:tt,children:ht,activeTabKey:x,defaultActiveTabKey:T,tabBarExtraContent:W,hoverable:K,tabProps:nt={}}=U,ot=an(U,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:xt,direction:Ot,card:Et}=_t.useContext(Jt.E_),Tt=On=>{var gn;(gn=U.onTabChange)===null||gn===void 0||gn.call(U,On)},Gt=_t.useMemo(()=>{let On=!1;return _t.Children.forEach(ht,gn=>{gn&&gn.type&&gn.type===Zt&&(On=!0)}),On},[ht]),jt=xt("card",Z),[Vt,Wt]=De(jt),Qt=_t.createElement(ie.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ht),se=x!==void 0,Mt=Object.assign(Object.assign({},nt),{[se?"activeKey":"defaultActiveKey"]:se?x:T,tabBarExtraContent:W});let Oe;const Xe=(0,he.Z)(et),Ee=!Xe||Xe==="default"?"large":Xe,Pe=tt?_t.createElement(Ht.Z,Object.assign({size:Ee},Mt,{className:`${jt}-head-tabs`,onChange:Tt,items:tt.map(On=>{var{tab:gn}=On,or=an(On,["tab"]);return Object.assign({label:gn},or)})})):null;(ut||Ct||Pe)&&(Oe=_t.createElement("div",{className:`${jt}-head`,style:ee},_t.createElement("div",{className:`${jt}-head-wrapper`},ut&&_t.createElement("div",{className:`${jt}-head-title`},ut),Ct&&_t.createElement("div",{className:`${jt}-extra`},Ct)),Pe));const Ne=wt?_t.createElement("div",{className:`${jt}-cover`},wt):null,Le=_t.createElement("div",{className:`${jt}-body`,style:$},vt?Qt:ht),jn=H&&H.length?_t.createElement(_e,{prefixCls:jt,actions:H}):null,Dn=(0,Be.Z)(ot,["onTabChange"]),Bn=ye()(jt,Et==null?void 0:Et.className,{[`${jt}-loading`]:vt,[`${jt}-bordered`]:Ut,[`${jt}-hoverable`]:K,[`${jt}-contain-grid`]:Gt,[`${jt}-contain-tabs`]:tt&&tt.length,[`${jt}-${Xe}`]:Xe,[`${jt}-type-${ft}`]:!!ft,[`${jt}-rtl`]:Ot==="rtl"},it,ct,Wt),Fn=Object.assign(Object.assign({},Et==null?void 0:Et.style),zt);return Vt(_t.createElement("div",Object.assign({ref:X},Dn,{className:Bn,style:Fn}),Oe,Ne,Le,jn))}),Ln=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{const{prefixCls:X,className:Z,avatar:it,title:ct,description:zt}=U,Ct=Ln(U,["prefixCls","className","avatar","title","description"]),{getPrefixCls:ee}=_t.useContext(Jt.E_),$=ee("card",X),ut=ye()(`${$}-meta`,Z),vt=it?_t.createElement("div",{className:`${$}-meta-avatar`},it):null,Ut=ct?_t.createElement("div",{className:`${$}-meta-title`},ct):null,et=zt?_t.createElement("div",{className:`${$}-meta-description`},zt):null,ft=Ut||et?_t.createElement("div",{className:`${$}-meta-detail`},Ut,et):null;return _t.createElement("div",Object.assign({},Ct,{className:ut}),vt,ft)};const fn=pn;fn.Grid=Zt,fn.Meta=ln;var mt=fn},82099:function(Ve,Ge,gt){"use strict";var _t=gt(50120);Ge.Z=_t.Z},23870:function(Ve,Ge,gt){"use strict";var _t=gt(72611);Ge.Z=_t.Z},99419:function(Ve){"use strict";Ve.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:function(Ve,Ge,gt){var _t=gt(99419),Nt=gt(27933),ye=Object.hasOwnProperty,Be=Object.create(null);for(var Jt in _t)ye.call(_t,Jt)&&(Be[_t[Jt]]=Jt);var he=Ve.exports={to:{},get:{}};he.get=function(yt){var pe=yt.substring(0,3).toLowerCase(),Zt,$t;switch(pe){case"hsl":Zt=he.get.hsl(yt),$t="hsl";break;case"hwb":Zt=he.get.hwb(yt),$t="hwb";break;default:Zt=he.get.rgb(yt),$t="rgb";break}return Zt?{model:$t,value:Zt}:null},he.get.rgb=function(yt){if(!yt)return null;var pe=/^#([a-f0-9]{3,4})$/i,Zt=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,$t=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,te=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,Bt=/^(\w+)$/,It=[0,0,0,1],kt,Ft,Se;if(kt=yt.match(Zt)){for(Se=kt[2],kt=kt[1],Ft=0;Ft<3;Ft++){var Re=Ft*2;It[Ft]=parseInt(kt.slice(Re,Re+2),16)}Se&&(It[3]=parseInt(Se,16)/255)}else if(kt=yt.match(pe)){for(kt=kt[1],Se=kt[3],Ft=0;Ft<3;Ft++)It[Ft]=parseInt(kt[Ft]+kt[Ft],16);Se&&(It[3]=parseInt(Se+Se,16)/255)}else if(kt=yt.match($t)){for(Ft=0;Ft<3;Ft++)It[Ft]=parseInt(kt[Ft+1],0);kt[4]&&(kt[5]?It[3]=parseFloat(kt[4])*.01:It[3]=parseFloat(kt[4]))}else if(kt=yt.match(te)){for(Ft=0;Ft<3;Ft++)It[Ft]=Math.round(parseFloat(kt[Ft+1])*2.55);kt[4]&&(kt[5]?It[3]=parseFloat(kt[4])*.01:It[3]=parseFloat(kt[4]))}else return(kt=yt.match(Bt))?kt[1]==="transparent"?[0,0,0,0]:ye.call(_t,kt[1])?(It=_t[kt[1]],It[3]=1,It):null:null;for(Ft=0;Ft<3;Ft++)It[Ft]=ie(It[Ft],0,255);return It[3]=ie(It[3],0,1),It},he.get.hsl=function(yt){if(!yt)return null;var pe=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=yt.match(pe);if(Zt){var $t=parseFloat(Zt[4]),te=(parseFloat(Zt[1])%360+360)%360,Bt=ie(parseFloat(Zt[2]),0,100),It=ie(parseFloat(Zt[3]),0,100),kt=ie(isNaN($t)?1:$t,0,1);return[te,Bt,It,kt]}return null},he.get.hwb=function(yt){if(!yt)return null;var pe=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=yt.match(pe);if(Zt){var $t=parseFloat(Zt[4]),te=(parseFloat(Zt[1])%360+360)%360,Bt=ie(parseFloat(Zt[2]),0,100),It=ie(parseFloat(Zt[3]),0,100),kt=ie(isNaN($t)?1:$t,0,1);return[te,Bt,It,kt]}return null},he.to.hex=function(){var yt=Nt(arguments);return"#"+Ht(yt[0])+Ht(yt[1])+Ht(yt[2])+(yt[3]<1?Ht(Math.round(yt[3]*255)):"")},he.to.rgb=function(){var yt=Nt(arguments);return yt.length<4||yt[3]===1?"rgb("+Math.round(yt[0])+", "+Math.round(yt[1])+", "+Math.round(yt[2])+")":"rgba("+Math.round(yt[0])+", "+Math.round(yt[1])+", "+Math.round(yt[2])+", "+yt[3]+")"},he.to.rgb.percent=function(){var yt=Nt(arguments),pe=Math.round(yt[0]/255*100),Zt=Math.round(yt[1]/255*100),$t=Math.round(yt[2]/255*100);return yt.length<4||yt[3]===1?"rgb("+pe+"%, "+Zt+"%, "+$t+"%)":"rgba("+pe+"%, "+Zt+"%, "+$t+"%, "+yt[3]+")"},he.to.hsl=function(){var yt=Nt(arguments);return yt.length<4||yt[3]===1?"hsl("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%)":"hsla("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%, "+yt[3]+")"},he.to.hwb=function(){var yt=Nt(arguments),pe="";return yt.length>=4&&yt[3]!==1&&(pe=", "+yt[3]),"hwb("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%"+pe+")"},he.to.keyword=function(yt){return Be[yt.slice(0,3)]};function ie(yt,pe,Zt){return Math.min(Math.max(pe,yt),Zt)}function Ht(yt){var pe=Math.round(yt).toString(16).toUpperCase();return pe.length<2?"0"+pe:pe}},52617:function(Ve,Ge,gt){"use strict";gt.d(Ge,{ZP:function(){return Ke},B8:function(){return He}});function _t(mt,U,X){mt.prototype=U.prototype=X,X.constructor=mt}function Nt(mt,U){var X=Object.create(mt.prototype);for(var Z in U)X[Z]=U[Z];return X}function ye(){}var Be=.7,Jt=1/Be,he="\\s*([+-]?\\d+)\\s*",ie="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ht="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yt=/^#([0-9a-f]{3,8})$/,pe=new RegExp("^rgb\\("+[he,he,he]+"\\)$"),Zt=new RegExp("^rgb\\("+[Ht,Ht,Ht]+"\\)$"),$t=new RegExp("^rgba\\("+[he,he,he,ie]+"\\)$"),te=new RegExp("^rgba\\("+[Ht,Ht,Ht,ie]+"\\)$"),Bt=new RegExp("^hsl\\("+[ie,Ht,Ht]+"\\)$"),It=new RegExp("^hsla\\("+[ie,Ht,Ht,ie]+"\\)$"),kt={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};_t(ye,Ke,{copy:function(mt){return Object.assign(new this.constructor,this,mt)},displayable:function(){return this.rgb().displayable()},hex:Ft,formatHex:Ft,formatHsl:Se,formatRgb:Re,toString:Re});function Ft(){return this.rgb().formatHex()}function Se(){return Ln(this).formatHsl()}function Re(){return this.rgb().formatRgb()}function Ke(mt){var U,X;return mt=(mt+"").trim().toLowerCase(),(U=yt.exec(mt))?(X=U[1].length,U=parseInt(U[1],16),X===6?We(U):X===3?new De(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):X===8?Ze(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):X===4?Ze(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=pe.exec(mt))?new De(U[1],U[2],U[3],1):(U=Zt.exec(mt))?new De(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=$t.exec(mt))?Ze(U[1],U[2],U[3],U[4]):(U=te.exec(mt))?Ze(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=Bt.exec(mt))?pn(U[1],U[2]/100,U[3]/100,1):(U=It.exec(mt))?pn(U[1],U[2]/100,U[3]/100,U[4]):kt.hasOwnProperty(mt)?We(kt[mt]):mt==="transparent"?new De(NaN,NaN,NaN,0):null}function We(mt){return new De(mt>>16&255,mt>>8&255,mt&255,1)}function Ze(mt,U,X,Z){return Z<=0&&(mt=U=X=NaN),new De(mt,U,X,Z)}function cn(mt){return mt instanceof ye||(mt=Ke(mt)),mt?(mt=mt.rgb(),new De(mt.r,mt.g,mt.b,mt.opacity)):new De}function He(mt,U,X,Z){return arguments.length===1?cn(mt):new De(mt,U,X,Z==null?1:Z)}function De(mt,U,X,Z){this.r=+mt,this.g=+U,this.b=+X,this.opacity=+Z}_t(De,He,Nt(ye,{brighter:function(mt){return mt=mt==null?Jt:Math.pow(Jt,mt),new De(this.r*mt,this.g*mt,this.b*mt,this.opacity)},darker:function(mt){return mt=mt==null?Be:Math.pow(Be,mt),new De(this.r*mt,this.g*mt,this.b*mt,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:an,formatHex:an,formatRgb:_e,toString:_e}));function an(){return"#"+Me(this.r)+Me(this.g)+Me(this.b)}function _e(){var mt=this.opacity;return mt=isNaN(mt)?1:Math.max(0,Math.min(1,mt)),(mt===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))+(mt===1?")":", "+mt+")")}function Me(mt){return mt=Math.max(0,Math.min(255,Math.round(mt)||0)),(mt<16?"0":"")+mt.toString(16)}function pn(mt,U,X,Z){return Z<=0?mt=U=X=NaN:X<=0||X>=1?mt=U=NaN:U<=0&&(mt=NaN),new ln(mt,U,X,Z)}function Ln(mt){if(mt instanceof ln)return new ln(mt.h,mt.s,mt.l,mt.opacity);if(mt instanceof ye||(mt=Ke(mt)),!mt)return new ln;if(mt instanceof ln)return mt;mt=mt.rgb();var U=mt.r/255,X=mt.g/255,Z=mt.b/255,it=Math.min(U,X,Z),ct=Math.max(U,X,Z),zt=NaN,Ct=ct-it,ee=(ct+it)/2;return Ct?(U===ct?zt=(X-Z)/Ct+(X0&&ee<1?0:zt,new ln(zt,Ct,ee,mt.opacity)}function qn(mt,U,X,Z){return arguments.length===1?Ln(mt):new ln(mt,U,X,Z==null?1:Z)}function ln(mt,U,X,Z){this.h=+mt,this.s=+U,this.l=+X,this.opacity=+Z}_t(ln,qn,Nt(ye,{brighter:function(mt){return mt=mt==null?Jt:Math.pow(Jt,mt),new ln(this.h,this.s,this.l*mt,this.opacity)},darker:function(mt){return mt=mt==null?Be:Math.pow(Be,mt),new ln(this.h,this.s,this.l*mt,this.opacity)},rgb:function(){var mt=this.h%360+(this.h<0)*360,U=isNaN(mt)||isNaN(this.s)?0:this.s,X=this.l,Z=X+(X<.5?X:1-X)*U,it=2*X-Z;return new De(fn(mt>=240?mt-240:mt+120,it,Z),fn(mt,it,Z),fn(mt<120?mt+240:mt-120,it,Z),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 mt=this.opacity;return mt=isNaN(mt)?1:Math.max(0,Math.min(1,mt)),(mt===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(mt===1?")":", "+mt+")")}}));function fn(mt,U,X){return(mt<60?U+(X-U)*mt/60:mt<180?X:mt<240?U+(X-U)*(240-mt)/60:U)*255}},2337:function(Ve){"use strict";var Ge=Object.prototype.hasOwnProperty,gt="~";function _t(){}Object.create&&(_t.prototype=Object.create(null),new _t().__proto__||(gt=!1));function Nt(he,ie,Ht){this.fn=he,this.context=ie,this.once=Ht||!1}function ye(he,ie,Ht,yt,pe){if(typeof Ht!="function")throw new TypeError("The listener must be a function");var Zt=new Nt(Ht,yt||he,pe),$t=gt?gt+ie:ie;return he._events[$t]?he._events[$t].fn?he._events[$t]=[he._events[$t],Zt]:he._events[$t].push(Zt):(he._events[$t]=Zt,he._eventsCount++),he}function Be(he,ie){--he._eventsCount===0?he._events=new _t:delete he._events[ie]}function Jt(){this._events=new _t,this._eventsCount=0}Jt.prototype.eventNames=function(){var ie=[],Ht,yt;if(this._eventsCount===0)return ie;for(yt in Ht=this._events)Ge.call(Ht,yt)&&ie.push(gt?yt.slice(1):yt);return Object.getOwnPropertySymbols?ie.concat(Object.getOwnPropertySymbols(Ht)):ie},Jt.prototype.listeners=function(ie){var Ht=gt?gt+ie:ie,yt=this._events[Ht];if(!yt)return[];if(yt.fn)return[yt.fn];for(var pe=0,Zt=yt.length,$t=new Array(Zt);pe0)throw"Initial bisect points must have opposite signs";if(Re===0)return Bt;if(Ke===0)return It;for(var Ze=0;Ze=0&&(Bt=cn),Math.abs(We)=_e[an-1].fx){var zt=!1;if(fn.fx>ct.fx?(ie(mt,1+cn,ln,-cn,ct),mt.fx=te(mt),mt.fx=1)break;for(Me=1;Me<_e.length;++Me)ie(_e[Me],1-He,_e[0],He,_e[Me]),_e[Me].fx=te(_e[Me])}}else Ln(fn)}return _e.sort(qn),{fx:_e[0].fx,x:_e[0]}}function yt(te,Bt,It,kt,Ft,Se,Re){var Ke=It.fx,We=Be(It.fxprime,Bt),Ze=Ke,cn=Ke,He=We,De=0;Ft=Ft||1,Se=Se||1e-6,Re=Re||.1;function an(Me,pn,Ln){for(var qn=0;qn<16;++qn)if(Ft=(Me+pn)/2,ie(kt.x,1,It.x,Ft,Bt),Ze=kt.fx=te(kt.x,kt.fxprime),He=Be(kt.fxprime,Bt),Ze>Ke+Se*Ft*We||Ze>=Ln)pn=Ft;else{if(Math.abs(He)<=-Re*We)return Ft;He*(pn-Me)>=0&&(pn=Me),Me=Ft,Ln=Ze}return 0}for(var _e=0;_e<10;++_e){if(ie(kt.x,1,It.x,Ft,Bt),Ze=kt.fx=te(kt.x,kt.fxprime),He=Be(kt.fxprime,Bt),Ze>Ke+Se*Ft*We||_e&&Ze>=cn)return an(De,Ft,cn);if(Math.abs(He)<=-Re*We)return Ft;if(He>=0)return an(Ft,De,Ze);cn=Ze,De=Ft,Ft*=2}return Ft}function pe(te,Bt,It){var kt={x:Bt.slice(),fx:0,fxprime:Bt.slice()},Ft={x:Bt.slice(),fx:0,fxprime:Bt.slice()},Se=Bt.slice(),Re,Ke,We=1,Ze;It=It||{},Ze=It.maxIterations||Bt.length*20,kt.fx=te(kt.x,kt.fxprime),Re=kt.fxprime.slice(),he(Re,kt.fxprime,-1);for(var cn=0;cn0?(W[0]=(Ot*xt+Gt*K+Et*ot-Tt*nt)*2/jt,W[1]=(Et*xt+Gt*nt+Tt*K-Ot*ot)*2/jt,W[2]=(Tt*xt+Gt*ot+Ot*nt-Et*K)*2/jt):(W[0]=(Ot*xt+Gt*K+Et*ot-Tt*nt)*2,W[1]=(Et*xt+Gt*nt+Tt*K-Ot*ot)*2,W[2]=(Tt*xt+Gt*ot+Ot*nt-Et*K)*2),De(x,T,W),x}function _e(x,T){return x[0]=T[12],x[1]=T[13],x[2]=T[14],x}function Me(x,T){var W=T[0],K=T[1],nt=T[2],ot=T[4],xt=T[5],Ot=T[6],Et=T[8],Tt=T[9],Gt=T[10];return x[0]=Math.hypot(W,K,nt),x[1]=Math.hypot(ot,xt,Ot),x[2]=Math.hypot(Et,Tt,Gt),x}function pn(x,T){var W=new _t.WT(3);Me(W,T);var K=1/W[0],nt=1/W[1],ot=1/W[2],xt=T[0]*K,Ot=T[1]*nt,Et=T[2]*ot,Tt=T[4]*K,Gt=T[5]*nt,jt=T[6]*ot,Vt=T[8]*K,Wt=T[9]*nt,Qt=T[10]*ot,se=xt+Gt+Qt,Mt=0;return se>0?(Mt=Math.sqrt(se+1)*2,x[3]=.25*Mt,x[0]=(jt-Wt)/Mt,x[1]=(Vt-Et)/Mt,x[2]=(Ot-Tt)/Mt):xt>Gt&&xt>Qt?(Mt=Math.sqrt(1+xt-Gt-Qt)*2,x[3]=(jt-Wt)/Mt,x[0]=.25*Mt,x[1]=(Ot+Tt)/Mt,x[2]=(Vt+Et)/Mt):Gt>Qt?(Mt=Math.sqrt(1+Gt-xt-Qt)*2,x[3]=(Vt-Et)/Mt,x[0]=(Ot+Tt)/Mt,x[1]=.25*Mt,x[2]=(jt+Wt)/Mt):(Mt=Math.sqrt(1+Qt-xt-Gt)*2,x[3]=(Ot-Tt)/Mt,x[0]=(Vt+Et)/Mt,x[1]=(jt+Wt)/Mt,x[2]=.25*Mt),x}function Ln(x,T,W,K){var nt=T[0],ot=T[1],xt=T[2],Ot=T[3],Et=nt+nt,Tt=ot+ot,Gt=xt+xt,jt=nt*Et,Vt=nt*Tt,Wt=nt*Gt,Qt=ot*Tt,se=ot*Gt,Mt=xt*Gt,Oe=Ot*Et,Xe=Ot*Tt,Ee=Ot*Gt,Pe=K[0],Ne=K[1],Le=K[2];return x[0]=(1-(Qt+Mt))*Pe,x[1]=(Vt+Ee)*Pe,x[2]=(Wt-Xe)*Pe,x[3]=0,x[4]=(Vt-Ee)*Ne,x[5]=(1-(jt+Mt))*Ne,x[6]=(se+Oe)*Ne,x[7]=0,x[8]=(Wt+Xe)*Le,x[9]=(se-Oe)*Le,x[10]=(1-(jt+Qt))*Le,x[11]=0,x[12]=W[0],x[13]=W[1],x[14]=W[2],x[15]=1,x}function qn(x,T,W,K,nt){var ot=T[0],xt=T[1],Ot=T[2],Et=T[3],Tt=ot+ot,Gt=xt+xt,jt=Ot+Ot,Vt=ot*Tt,Wt=ot*Gt,Qt=ot*jt,se=xt*Gt,Mt=xt*jt,Oe=Ot*jt,Xe=Et*Tt,Ee=Et*Gt,Pe=Et*jt,Ne=K[0],Le=K[1],jn=K[2],Dn=nt[0],Bn=nt[1],Fn=nt[2],On=(1-(se+Oe))*Ne,gn=(Wt+Pe)*Ne,or=(Qt-Ee)*Ne,dn=(Wt-Pe)*Le,Qr=(1-(Vt+Oe))*Le,wa=(Mt+Xe)*Le,ci=(Qt+Ee)*jn,Sa=(Mt-Xe)*jn,Ma=(1-(Vt+se))*jn;return x[0]=On,x[1]=gn,x[2]=or,x[3]=0,x[4]=dn,x[5]=Qr,x[6]=wa,x[7]=0,x[8]=ci,x[9]=Sa,x[10]=Ma,x[11]=0,x[12]=W[0]+Dn-(On*Dn+dn*Bn+ci*Fn),x[13]=W[1]+Bn-(gn*Dn+Qr*Bn+Sa*Fn),x[14]=W[2]+Fn-(or*Dn+wa*Bn+Ma*Fn),x[15]=1,x}function ln(x,T){var W=T[0],K=T[1],nt=T[2],ot=T[3],xt=W+W,Ot=K+K,Et=nt+nt,Tt=W*xt,Gt=K*xt,jt=K*Ot,Vt=nt*xt,Wt=nt*Ot,Qt=nt*Et,se=ot*xt,Mt=ot*Ot,Oe=ot*Et;return x[0]=1-jt-Qt,x[1]=Gt+Oe,x[2]=Vt-Mt,x[3]=0,x[4]=Gt-Oe,x[5]=1-Tt-Qt,x[6]=Wt+se,x[7]=0,x[8]=Vt+Mt,x[9]=Wt-se,x[10]=1-Tt-jt,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}function fn(x,T,W,K,nt,ot,xt){var Ot=1/(W-T),Et=1/(nt-K),Tt=1/(ot-xt);return x[0]=ot*2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot*2*Et,x[6]=0,x[7]=0,x[8]=(W+T)*Ot,x[9]=(nt+K)*Et,x[10]=(xt+ot)*Tt,x[11]=-1,x[12]=0,x[13]=0,x[14]=xt*ot*2*Tt,x[15]=0,x}function mt(x,T,W,K,nt){var ot=1/Math.tan(T/2),xt;return x[0]=ot/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,nt!=null&&nt!==1/0?(xt=1/(K-nt),x[10]=(nt+K)*xt,x[14]=2*nt*K*xt):(x[10]=-1,x[14]=-2*K),x}var U=mt;function X(x,T,W,K,nt){var ot=1/Math.tan(T/2),xt;return x[0]=ot/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,nt!=null&&nt!==1/0?(xt=1/(K-nt),x[10]=nt*xt,x[14]=nt*K*xt):(x[10]=-1,x[14]=-K),x}function Z(x,T,W,K){var nt=Math.tan(T.upDegrees*Math.PI/180),ot=Math.tan(T.downDegrees*Math.PI/180),xt=Math.tan(T.leftDegrees*Math.PI/180),Ot=Math.tan(T.rightDegrees*Math.PI/180),Et=2/(xt+Ot),Tt=2/(nt+ot);return x[0]=Et,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=Tt,x[6]=0,x[7]=0,x[8]=-((xt-Ot)*Et*.5),x[9]=(nt-ot)*Tt*.5,x[10]=K/(W-K),x[11]=-1,x[12]=0,x[13]=0,x[14]=K*W/(W-K),x[15]=0,x}function it(x,T,W,K,nt,ot,xt){var Ot=1/(T-W),Et=1/(K-nt),Tt=1/(ot-xt);return x[0]=-2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*Et,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*Tt,x[11]=0,x[12]=(T+W)*Ot,x[13]=(nt+K)*Et,x[14]=(xt+ot)*Tt,x[15]=1,x}var ct=it;function zt(x,T,W,K,nt,ot,xt){var Ot=1/(T-W),Et=1/(K-nt),Tt=1/(ot-xt);return x[0]=-2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*Et,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=Tt,x[11]=0,x[12]=(T+W)*Ot,x[13]=(nt+K)*Et,x[14]=ot*Tt,x[15]=1,x}function Ct(x,T,W,K){var nt,ot,xt,Ot,Et,Tt,Gt,jt,Vt,Wt,Qt=T[0],se=T[1],Mt=T[2],Oe=K[0],Xe=K[1],Ee=K[2],Pe=W[0],Ne=W[1],Le=W[2];return Math.abs(Qt-Pe)<_t.Ib&&Math.abs(se-Ne)<_t.Ib&&Math.abs(Mt-Le)<_t.Ib?ie(x):(Gt=Qt-Pe,jt=se-Ne,Vt=Mt-Le,Wt=1/Math.hypot(Gt,jt,Vt),Gt*=Wt,jt*=Wt,Vt*=Wt,nt=Xe*Vt-Ee*jt,ot=Ee*Gt-Oe*Vt,xt=Oe*jt-Xe*Gt,Wt=Math.hypot(nt,ot,xt),Wt?(Wt=1/Wt,nt*=Wt,ot*=Wt,xt*=Wt):(nt=0,ot=0,xt=0),Ot=jt*xt-Vt*ot,Et=Vt*nt-Gt*xt,Tt=Gt*ot-jt*nt,Wt=Math.hypot(Ot,Et,Tt),Wt?(Wt=1/Wt,Ot*=Wt,Et*=Wt,Tt*=Wt):(Ot=0,Et=0,Tt=0),x[0]=nt,x[1]=Ot,x[2]=Gt,x[3]=0,x[4]=ot,x[5]=Et,x[6]=jt,x[7]=0,x[8]=xt,x[9]=Tt,x[10]=Vt,x[11]=0,x[12]=-(nt*Qt+ot*se+xt*Mt),x[13]=-(Ot*Qt+Et*se+Tt*Mt),x[14]=-(Gt*Qt+jt*se+Vt*Mt),x[15]=1,x)}function ee(x,T,W,K){var nt=T[0],ot=T[1],xt=T[2],Ot=K[0],Et=K[1],Tt=K[2],Gt=nt-W[0],jt=ot-W[1],Vt=xt-W[2],Wt=Gt*Gt+jt*jt+Vt*Vt;Wt>0&&(Wt=1/Math.sqrt(Wt),Gt*=Wt,jt*=Wt,Vt*=Wt);var Qt=Et*Vt-Tt*jt,se=Tt*Gt-Ot*Vt,Mt=Ot*jt-Et*Gt;return Wt=Qt*Qt+se*se+Mt*Mt,Wt>0&&(Wt=1/Math.sqrt(Wt),Qt*=Wt,se*=Wt,Mt*=Wt),x[0]=Qt,x[1]=se,x[2]=Mt,x[3]=0,x[4]=jt*Mt-Vt*se,x[5]=Vt*Qt-Gt*Mt,x[6]=Gt*se-jt*Qt,x[7]=0,x[8]=Gt,x[9]=jt,x[10]=Vt,x[11]=0,x[12]=nt,x[13]=ot,x[14]=xt,x[15]=1,x}function $(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}function ut(x){return Math.hypot(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15])}function vt(x,T,W){return x[0]=T[0]+W[0],x[1]=T[1]+W[1],x[2]=T[2]+W[2],x[3]=T[3]+W[3],x[4]=T[4]+W[4],x[5]=T[5]+W[5],x[6]=T[6]+W[6],x[7]=T[7]+W[7],x[8]=T[8]+W[8],x[9]=T[9]+W[9],x[10]=T[10]+W[10],x[11]=T[11]+W[11],x[12]=T[12]+W[12],x[13]=T[13]+W[13],x[14]=T[14]+W[14],x[15]=T[15]+W[15],x}function Ut(x,T,W){return x[0]=T[0]-W[0],x[1]=T[1]-W[1],x[2]=T[2]-W[2],x[3]=T[3]-W[3],x[4]=T[4]-W[4],x[5]=T[5]-W[5],x[6]=T[6]-W[6],x[7]=T[7]-W[7],x[8]=T[8]-W[8],x[9]=T[9]-W[9],x[10]=T[10]-W[10],x[11]=T[11]-W[11],x[12]=T[12]-W[12],x[13]=T[13]-W[13],x[14]=T[14]-W[14],x[15]=T[15]-W[15],x}function et(x,T,W){return x[0]=T[0]*W,x[1]=T[1]*W,x[2]=T[2]*W,x[3]=T[3]*W,x[4]=T[4]*W,x[5]=T[5]*W,x[6]=T[6]*W,x[7]=T[7]*W,x[8]=T[8]*W,x[9]=T[9]*W,x[10]=T[10]*W,x[11]=T[11]*W,x[12]=T[12]*W,x[13]=T[13]*W,x[14]=T[14]*W,x[15]=T[15]*W,x}function ft(x,T,W,K){return x[0]=T[0]+W[0]*K,x[1]=T[1]+W[1]*K,x[2]=T[2]+W[2]*K,x[3]=T[3]+W[3]*K,x[4]=T[4]+W[4]*K,x[5]=T[5]+W[5]*K,x[6]=T[6]+W[6]*K,x[7]=T[7]+W[7]*K,x[8]=T[8]+W[8]*K,x[9]=T[9]+W[9]*K,x[10]=T[10]+W[10]*K,x[11]=T[11]+W[11]*K,x[12]=T[12]+W[12]*K,x[13]=T[13]+W[13]*K,x[14]=T[14]+W[14]*K,x[15]=T[15]+W[15]*K,x}function wt(x,T){return x[0]===T[0]&&x[1]===T[1]&&x[2]===T[2]&&x[3]===T[3]&&x[4]===T[4]&&x[5]===T[5]&&x[6]===T[6]&&x[7]===T[7]&&x[8]===T[8]&&x[9]===T[9]&&x[10]===T[10]&&x[11]===T[11]&&x[12]===T[12]&&x[13]===T[13]&&x[14]===T[14]&&x[15]===T[15]}function H(x,T){var W=x[0],K=x[1],nt=x[2],ot=x[3],xt=x[4],Ot=x[5],Et=x[6],Tt=x[7],Gt=x[8],jt=x[9],Vt=x[10],Wt=x[11],Qt=x[12],se=x[13],Mt=x[14],Oe=x[15],Xe=T[0],Ee=T[1],Pe=T[2],Ne=T[3],Le=T[4],jn=T[5],Dn=T[6],Bn=T[7],Fn=T[8],On=T[9],gn=T[10],or=T[11],dn=T[12],Qr=T[13],wa=T[14],ci=T[15];return Math.abs(W-Xe)<=_t.Ib*Math.max(1,Math.abs(W),Math.abs(Xe))&&Math.abs(K-Ee)<=_t.Ib*Math.max(1,Math.abs(K),Math.abs(Ee))&&Math.abs(nt-Pe)<=_t.Ib*Math.max(1,Math.abs(nt),Math.abs(Pe))&&Math.abs(ot-Ne)<=_t.Ib*Math.max(1,Math.abs(ot),Math.abs(Ne))&&Math.abs(xt-Le)<=_t.Ib*Math.max(1,Math.abs(xt),Math.abs(Le))&&Math.abs(Ot-jn)<=_t.Ib*Math.max(1,Math.abs(Ot),Math.abs(jn))&&Math.abs(Et-Dn)<=_t.Ib*Math.max(1,Math.abs(Et),Math.abs(Dn))&&Math.abs(Tt-Bn)<=_t.Ib*Math.max(1,Math.abs(Tt),Math.abs(Bn))&&Math.abs(Gt-Fn)<=_t.Ib*Math.max(1,Math.abs(Gt),Math.abs(Fn))&&Math.abs(jt-On)<=_t.Ib*Math.max(1,Math.abs(jt),Math.abs(On))&&Math.abs(Vt-gn)<=_t.Ib*Math.max(1,Math.abs(Vt),Math.abs(gn))&&Math.abs(Wt-or)<=_t.Ib*Math.max(1,Math.abs(Wt),Math.abs(or))&&Math.abs(Qt-dn)<=_t.Ib*Math.max(1,Math.abs(Qt),Math.abs(dn))&&Math.abs(se-Qr)<=_t.Ib*Math.max(1,Math.abs(se),Math.abs(Qr))&&Math.abs(Mt-wa)<=_t.Ib*Math.max(1,Math.abs(Mt),Math.abs(wa))&&Math.abs(Oe-ci)<=_t.Ib*Math.max(1,Math.abs(Oe),Math.abs(ci))}var tt=$t,ht=Ut},38015:function(Ve,Ge,gt){"use strict";gt.d(Ge,{$X:function(){return Ht},AK:function(){return De},Fv:function(){return He},I6:function(){return Z},IH:function(){return ie},JG:function(){return Jt},Ue:function(){return Nt},al:function(){return Be},lu:function(){return zt},t7:function(){return _e},t8:function(){return he},tk:function(){return Ze}});var _t=gt(31767);function Nt(){var et=new _t.WT(2);return _t.WT!=Float32Array&&(et[0]=0,et[1]=0),et}function ye(et){var ft=new glMatrix.ARRAY_TYPE(2);return ft[0]=et[0],ft[1]=et[1],ft}function Be(et,ft){var wt=new _t.WT(2);return wt[0]=et,wt[1]=ft,wt}function Jt(et,ft){return et[0]=ft[0],et[1]=ft[1],et}function he(et,ft,wt){return et[0]=ft,et[1]=wt,et}function ie(et,ft,wt){return et[0]=ft[0]+wt[0],et[1]=ft[1]+wt[1],et}function Ht(et,ft,wt){return et[0]=ft[0]-wt[0],et[1]=ft[1]-wt[1],et}function yt(et,ft,wt){return et[0]=ft[0]*wt[0],et[1]=ft[1]*wt[1],et}function pe(et,ft,wt){return et[0]=ft[0]/wt[0],et[1]=ft[1]/wt[1],et}function Zt(et,ft){return et[0]=Math.ceil(ft[0]),et[1]=Math.ceil(ft[1]),et}function $t(et,ft){return et[0]=Math.floor(ft[0]),et[1]=Math.floor(ft[1]),et}function te(et,ft,wt){return et[0]=Math.min(ft[0],wt[0]),et[1]=Math.min(ft[1],wt[1]),et}function Bt(et,ft,wt){return et[0]=Math.max(ft[0],wt[0]),et[1]=Math.max(ft[1],wt[1]),et}function It(et,ft){return et[0]=Math.round(ft[0]),et[1]=Math.round(ft[1]),et}function kt(et,ft,wt){return et[0]=ft[0]*wt,et[1]=ft[1]*wt,et}function Ft(et,ft,wt,H){return et[0]=ft[0]+wt[0]*H,et[1]=ft[1]+wt[1]*H,et}function Se(et,ft){var wt=ft[0]-et[0],H=ft[1]-et[1];return Math.hypot(wt,H)}function Re(et,ft){var wt=ft[0]-et[0],H=ft[1]-et[1];return wt*wt+H*H}function Ke(et){var ft=et[0],wt=et[1];return Math.hypot(ft,wt)}function We(et){var ft=et[0],wt=et[1];return ft*ft+wt*wt}function Ze(et,ft){return et[0]=-ft[0],et[1]=-ft[1],et}function cn(et,ft){return et[0]=1/ft[0],et[1]=1/ft[1],et}function He(et,ft){var wt=ft[0],H=ft[1],tt=wt*wt+H*H;return tt>0&&(tt=1/Math.sqrt(tt)),et[0]=ft[0]*tt,et[1]=ft[1]*tt,et}function De(et,ft){return et[0]*ft[0]+et[1]*ft[1]}function an(et,ft,wt){var H=ft[0]*wt[1]-ft[1]*wt[0];return et[0]=et[1]=0,et[2]=H,et}function _e(et,ft,wt,H){var tt=ft[0],ht=ft[1];return et[0]=tt+H*(wt[0]-tt),et[1]=ht+H*(wt[1]-ht),et}function Me(et,ft){ft=ft||1;var wt=glMatrix.RANDOM()*2*Math.PI;return et[0]=Math.cos(wt)*ft,et[1]=Math.sin(wt)*ft,et}function pn(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[2]*tt,et[1]=wt[1]*H+wt[3]*tt,et}function Ln(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[2]*tt+wt[4],et[1]=wt[1]*H+wt[3]*tt+wt[5],et}function qn(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[3]*tt+wt[6],et[1]=wt[1]*H+wt[4]*tt+wt[7],et}function ln(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[4]*tt+wt[12],et[1]=wt[1]*H+wt[5]*tt+wt[13],et}function fn(et,ft,wt,H){var tt=ft[0]-wt[0],ht=ft[1]-wt[1],x=Math.sin(H),T=Math.cos(H);return et[0]=tt*T-ht*x+wt[0],et[1]=tt*x+ht*T+wt[1],et}function mt(et,ft){var wt=et[0],H=et[1],tt=ft[0],ht=ft[1],x=Math.sqrt(wt*wt+H*H)*Math.sqrt(tt*tt+ht*ht),T=x&&(wt*tt+H*ht)/x;return Math.acos(Math.min(Math.max(T,-1),1))}function U(et){return et[0]=0,et[1]=0,et}function X(et){return"vec2("+et[0]+", "+et[1]+")"}function Z(et,ft){return et[0]===ft[0]&&et[1]===ft[1]}function it(et,ft){var wt=et[0],H=et[1],tt=ft[0],ht=ft[1];return Math.abs(wt-tt)<=glMatrix.EPSILON*Math.max(1,Math.abs(wt),Math.abs(tt))&&Math.abs(H-ht)<=glMatrix.EPSILON*Math.max(1,Math.abs(H),Math.abs(ht))}var ct=null,zt=Ht,Ct=null,ee=null,$=null,ut=null,vt=null,Ut=function(){var et=Nt();return function(ft,wt,H,tt,ht,x){var T,W;for(wt||(wt=2),H||(H=0),tt?W=Math.min(tt*wt+H,ft.length):W=ft.length,T=H;T0&&(W=1/Math.sqrt(W)),H[0]=tt[0]*W,H[1]=tt[1]*W,H[2]=tt[2]*W,H}function De(H,tt){return H[0]*tt[0]+H[1]*tt[1]+H[2]*tt[2]}function an(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2],K=ht[0],nt=ht[1],ot=ht[2];return H[0]=T*ot-W*nt,H[1]=W*K-x*ot,H[2]=x*nt-T*K,H}function _e(H,tt,ht,x){var T=tt[0],W=tt[1],K=tt[2];return H[0]=T+x*(ht[0]-T),H[1]=W+x*(ht[1]-W),H[2]=K+x*(ht[2]-K),H}function Me(H,tt,ht,x,T,W){var K=W*W,nt=K*(2*W-3)+1,ot=K*(W-2)+W,xt=K*(W-1),Ot=K*(3-2*W);return H[0]=tt[0]*nt+ht[0]*ot+x[0]*xt+T[0]*Ot,H[1]=tt[1]*nt+ht[1]*ot+x[1]*xt+T[1]*Ot,H[2]=tt[2]*nt+ht[2]*ot+x[2]*xt+T[2]*Ot,H}function pn(H,tt,ht,x,T,W){var K=1-W,nt=K*K,ot=W*W,xt=nt*K,Ot=3*W*nt,Et=3*ot*K,Tt=ot*W;return H[0]=tt[0]*xt+ht[0]*Ot+x[0]*Et+T[0]*Tt,H[1]=tt[1]*xt+ht[1]*Ot+x[1]*Et+T[1]*Tt,H[2]=tt[2]*xt+ht[2]*Ot+x[2]*Et+T[2]*Tt,H}function Ln(H,tt){tt=tt||1;var ht=_t.FD()*2*Math.PI,x=_t.FD()*2-1,T=Math.sqrt(1-x*x)*tt;return H[0]=Math.cos(ht)*T,H[1]=Math.sin(ht)*T,H[2]=x*tt,H}function qn(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2],K=ht[3]*x+ht[7]*T+ht[11]*W+ht[15];return K=K||1,H[0]=(ht[0]*x+ht[4]*T+ht[8]*W+ht[12])/K,H[1]=(ht[1]*x+ht[5]*T+ht[9]*W+ht[13])/K,H[2]=(ht[2]*x+ht[6]*T+ht[10]*W+ht[14])/K,H}function ln(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2];return H[0]=x*ht[0]+T*ht[3]+W*ht[6],H[1]=x*ht[1]+T*ht[4]+W*ht[7],H[2]=x*ht[2]+T*ht[5]+W*ht[8],H}function fn(H,tt,ht){var x=ht[0],T=ht[1],W=ht[2],K=ht[3],nt=tt[0],ot=tt[1],xt=tt[2],Ot=T*xt-W*ot,Et=W*nt-x*xt,Tt=x*ot-T*nt,Gt=T*Tt-W*Et,jt=W*Ot-x*Tt,Vt=x*Et-T*Ot,Wt=K*2;return Ot*=Wt,Et*=Wt,Tt*=Wt,Gt*=2,jt*=2,Vt*=2,H[0]=nt+Ot+Gt,H[1]=ot+Et+jt,H[2]=xt+Tt+Vt,H}function mt(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[0],W[1]=T[1]*Math.cos(x)-T[2]*Math.sin(x),W[2]=T[1]*Math.sin(x)+T[2]*Math.cos(x),H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function U(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[2]*Math.sin(x)+T[0]*Math.cos(x),W[1]=T[1],W[2]=T[2]*Math.cos(x)-T[0]*Math.sin(x),H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function X(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[0]*Math.cos(x)-T[1]*Math.sin(x),W[1]=T[0]*Math.sin(x)+T[1]*Math.cos(x),W[2]=T[2],H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function Z(H,tt){var ht=H[0],x=H[1],T=H[2],W=tt[0],K=tt[1],nt=tt[2],ot=Math.sqrt(ht*ht+x*x+T*T),xt=Math.sqrt(W*W+K*K+nt*nt),Ot=ot*xt,Et=Ot&&De(H,tt)/Ot;return Math.acos(Math.min(Math.max(Et,-1),1))}function it(H){return H[0]=0,H[1]=0,H[2]=0,H}function ct(H){return"vec3("+H[0]+", "+H[1]+", "+H[2]+")"}function zt(H,tt){return H[0]===tt[0]&&H[1]===tt[1]&&H[2]===tt[2]}function Ct(H,tt){var ht=H[0],x=H[1],T=H[2],W=tt[0],K=tt[1],nt=tt[2];return Math.abs(ht-W)<=_t.Ib*Math.max(1,Math.abs(ht),Math.abs(W))&&Math.abs(x-K)<=_t.Ib*Math.max(1,Math.abs(x),Math.abs(K))&&Math.abs(T-nt)<=_t.Ib*Math.max(1,Math.abs(T),Math.abs(nt))}var ee=yt,$=pe,ut=Zt,vt=Re,Ut=Ke,et=Be,ft=We,wt=function(){var H=Nt();return function(tt,ht,x,T,W,K){var nt,ot;for(ht||(ht=3),x||(x=0),T?ot=Math.min(T*ht+x,tt.length):ot=tt.length,nt=x;nt0&&(wt=1/Math.sqrt(wt)),$[0]=vt*wt,$[1]=Ut*wt,$[2]=et*wt,$[3]=ft*wt,$}function De($,ut){return $[0]*ut[0]+$[1]*ut[1]+$[2]*ut[2]+$[3]*ut[3]}function an($,ut,vt,Ut){var et=vt[0]*Ut[1]-vt[1]*Ut[0],ft=vt[0]*Ut[2]-vt[2]*Ut[0],wt=vt[0]*Ut[3]-vt[3]*Ut[0],H=vt[1]*Ut[2]-vt[2]*Ut[1],tt=vt[1]*Ut[3]-vt[3]*Ut[1],ht=vt[2]*Ut[3]-vt[3]*Ut[2],x=ut[0],T=ut[1],W=ut[2],K=ut[3];return $[0]=T*ht-W*tt+K*H,$[1]=-(x*ht)+W*wt-K*ft,$[2]=x*tt-T*wt+K*et,$[3]=-(x*H)+T*ft-W*et,$}function _e($,ut,vt,Ut){var et=ut[0],ft=ut[1],wt=ut[2],H=ut[3];return $[0]=et+Ut*(vt[0]-et),$[1]=ft+Ut*(vt[1]-ft),$[2]=wt+Ut*(vt[2]-wt),$[3]=H+Ut*(vt[3]-H),$}function Me($,ut){ut=ut||1;var vt,Ut,et,ft,wt,H;do vt=glMatrix.RANDOM()*2-1,Ut=glMatrix.RANDOM()*2-1,wt=vt*vt+Ut*Ut;while(wt>=1);do et=glMatrix.RANDOM()*2-1,ft=glMatrix.RANDOM()*2-1,H=et*et+ft*ft;while(H>=1);var tt=Math.sqrt((1-wt)/H);return $[0]=ut*vt,$[1]=ut*Ut,$[2]=ut*et*tt,$[3]=ut*ft*tt,$}function pn($,ut,vt){var Ut=ut[0],et=ut[1],ft=ut[2],wt=ut[3];return $[0]=vt[0]*Ut+vt[4]*et+vt[8]*ft+vt[12]*wt,$[1]=vt[1]*Ut+vt[5]*et+vt[9]*ft+vt[13]*wt,$[2]=vt[2]*Ut+vt[6]*et+vt[10]*ft+vt[14]*wt,$[3]=vt[3]*Ut+vt[7]*et+vt[11]*ft+vt[15]*wt,$}function Ln($,ut,vt){var Ut=ut[0],et=ut[1],ft=ut[2],wt=vt[0],H=vt[1],tt=vt[2],ht=vt[3],x=ht*Ut+H*ft-tt*et,T=ht*et+tt*Ut-wt*ft,W=ht*ft+wt*et-H*Ut,K=-wt*Ut-H*et-tt*ft;return $[0]=x*ht+K*-wt+T*-tt-W*-H,$[1]=T*ht+K*-H+W*-wt-x*-tt,$[2]=W*ht+K*-tt+x*-H-T*-wt,$[3]=ut[3],$}function qn($){return $[0]=0,$[1]=0,$[2]=0,$[3]=0,$}function ln($){return"vec4("+$[0]+", "+$[1]+", "+$[2]+", "+$[3]+")"}function fn($,ut){return $[0]===ut[0]&&$[1]===ut[1]&&$[2]===ut[2]&&$[3]===ut[3]}function mt($,ut){var vt=$[0],Ut=$[1],et=$[2],ft=$[3],wt=ut[0],H=ut[1],tt=ut[2],ht=ut[3];return Math.abs(vt-wt)<=_t.Ib*Math.max(1,Math.abs(vt),Math.abs(wt))&&Math.abs(Ut-H)<=_t.Ib*Math.max(1,Math.abs(Ut),Math.abs(H))&&Math.abs(et-tt)<=_t.Ib*Math.max(1,Math.abs(et),Math.abs(tt))&&Math.abs(ft-ht)<=_t.Ib*Math.max(1,Math.abs(ft),Math.abs(ht))}var U=null,X=null,Z=null,it=null,ct=null,zt=null,Ct=null,ee=function(){var $=Nt();return function(ut,vt,Ut,et,ft,wt){var H,tt;for(vt||(vt=4),Ut||(Ut=0),et?tt=Math.min(et*vt+Ut,ut.length):tt=ut.length,H=Ut;H=0&&(gt.splice instanceof Function||Object.getOwnPropertyDescriptor(gt,gt.length-1)&>.constructor.name!=="String")}},42956:function(Ve){"use strict";var Ge=Ve.exports;Ve.exports.isNumber=function(gt){return typeof gt=="number"},Ve.exports.findMin=function(gt){if(gt.length===0)return 1/0;for(var _t=gt[0],Nt=1;Nt=Ft.length)){var pn=Math.max(Me-Zt,0),Ln=Me,qn=Math.min(Me+Zt,Ft.length-1),ln=pn-(Me-Zt),fn=Me+Zt-qn,mt=Ke[-Zt-1+ln]||0,U=Ke[-Zt-1+fn]||0,X=We/(We-mt-U);ln>0&&(cn+=X*(ln-1)*Ze);var Z=Math.max(0,Me-Zt+1);Jt.inside(0,Ft.length-1,Z)&&(Ft[Z].y+=X*1*Ze),Jt.inside(0,Ft.length-1,Ln+1)&&(Ft[Ln+1].y-=X*2*Ze),Jt.inside(0,Ft.length-1,qn+1)&&(Ft[qn+1].y+=X*1*Ze)}});var He=cn,De=0,an=0;return Ft.forEach(function(_e){De+=_e.y,He+=De,_e.y=He,an+=He}),an>0&&Ft.forEach(function(_e){_e.y/=an}),Ft};function ie(Ht,yt){for(var pe={},Zt=0,$t=-yt;$t<=yt;$t++)Zt+=Ht($t/yt),pe[$t]=Zt;return pe}Ve.exports.getExpectedValueFromPdf=function(Ht){if(!(!Ht||Ht.length===0)){var yt=0;return Ht.forEach(function(pe){yt+=pe.x*pe.y}),yt}},Ve.exports.getXWithLeftTailArea=function(Ht,yt){if(!(!Ht||Ht.length===0)){for(var pe=0,Zt=0,$t=0;$t=yt));$t++);return Ht[Zt].x}},Ve.exports.getPerplexity=function(Ht){if(!(!Ht||Ht.length===0)){var yt=0;return Ht.forEach(function(pe){var Zt=Math.log(pe.y);isFinite(Zt)&&(yt+=pe.y*Zt)}),yt=-yt/ye,Math.pow(2,yt)}}},27933:function(Ve,Ge,gt){"use strict";var _t=gt(48254),Nt=Array.prototype.concat,ye=Array.prototype.slice,Be=Ve.exports=function(he){for(var ie=[],Ht=0,yt=he.length;Ht=ye.length?{done:!0}:{done:!1,value:ye[he++]}},e:function($t){throw $t},f:ie}}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 Ht=!0,yt=!1,pe;return{s:function(){Jt=Jt.call(ye)},n:function(){var $t=Jt.next();return Ht=$t.done,$t},e:function($t){yt=!0,pe=$t},f:function(){try{!Ht&&Jt.return!=null&&Jt.return()}finally{if(yt)throw pe}}}}Ve.exports=Nt,Ve.exports.__esModule=!0,Ve.exports.default=Ve.exports},73983:function(Ve,Ge,gt){"use strict";var _t=gt(2337);Ge.Z=_t},99938:function(Ve,Ge,gt){"use strict";gt.d(Ge,{CR:function(){return Ft},Jh:function(){return te},Q_:function(){return pn},XA:function(){return kt},ZT:function(){return Nt},_T:function(){return Be},ev:function(){return Ke},gn:function(){return Jt},mG:function(){return $t},pi:function(){return ye},pr:function(){return Re}});var _t=function(X,Z){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(it,ct){it.__proto__=ct}||function(it,ct){for(var zt in ct)Object.prototype.hasOwnProperty.call(ct,zt)&&(it[zt]=ct[zt])},_t(X,Z)};function Nt(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");_t(X,Z);function it(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(it.prototype=Z.prototype,new it)}var ye=function(){return ye=Object.assign||function(Z){for(var it,ct=1,zt=arguments.length;ct=0;$--)(ee=X[$])&&(Ct=(zt<3?ee(Ct):zt>3?ee(Z,it,Ct):ee(Z,it))||Ct);return zt>3&&Ct&&Object.defineProperty(Z,it,Ct),Ct}function he(X,Z){return function(it,ct){Z(it,ct,X)}}function ie(X,Z,it,ct,zt,Ct){function ee(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var $=ct.kind,ut=$==="getter"?"get":$==="setter"?"set":"value",vt=!Z&&X?ct.static?X:X.prototype:null,Ut=Z||(vt?Object.getOwnPropertyDescriptor(vt,ct.name):{}),et,ft=!1,wt=it.length-1;wt>=0;wt--){var H={};for(var tt in ct)H[tt]=tt==="access"?{}:ct[tt];for(var tt in ct.access)H.access[tt]=ct.access[tt];H.addInitializer=function(x){if(ft)throw new TypeError("Cannot add initializers after decoration has completed");Ct.push(ee(x||null))};var ht=(0,it[wt])($==="accessor"?{get:Ut.get,set:Ut.set}:Ut[ut],H);if($==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(et=ee(ht.get))&&(Ut.get=et),(et=ee(ht.set))&&(Ut.set=et),(et=ee(ht.init))&&zt.unshift(et)}else(et=ee(ht))&&($==="field"?zt.unshift(et):Ut[ut]=et)}vt&&Object.defineProperty(vt,ct.name,Ut),ft=!0}function Ht(X,Z,it){for(var ct=arguments.length>2,zt=0;zt0&&Ct[Ct.length-1])&&(vt[0]===6||vt[0]===2)){it=0;continue}if(vt[0]===3&&(!Ct||vt[1]>Ct[0]&&vt[1]=X.length&&(X=void 0),{value:X&&X[ct++],done:!X}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(X,Z){var it=typeof Symbol=="function"&&X[Symbol.iterator];if(!it)return X;var ct=it.call(X),zt,Ct=[],ee;try{for(;(Z===void 0||Z-- >0)&&!(zt=ct.next()).done;)Ct.push(zt.value)}catch($){ee={error:$}}finally{try{zt&&!zt.done&&(it=ct.return)&&it.call(ct)}finally{if(ee)throw ee.error}}return Ct}function Se(){for(var X=[],Z=0;Z1||$(ft,wt)})})}function $(ft,wt){try{ut(ct[ft](wt))}catch(H){et(Ct[0][3],H)}}function ut(ft){ft.value instanceof We?Promise.resolve(ft.value.v).then(vt,Ut):et(Ct[0][2],ft)}function vt(ft){$("next",ft)}function Ut(ft){$("throw",ft)}function et(ft,wt){ft(wt),Ct.shift(),Ct.length&&$(Ct[0][0],Ct[0][1])}}function cn(X){var Z,it;return Z={},ct("next"),ct("throw",function(zt){throw zt}),ct("return"),Z[Symbol.iterator]=function(){return this},Z;function ct(zt,Ct){Z[zt]=X[zt]?function(ee){return(it=!it)?{value:We(X[zt](ee)),done:!1}:Ct?Ct(ee):ee}:Ct}}function He(X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z=X[Symbol.asyncIterator],it;return Z?Z.call(X):(X=typeof kt=="function"?kt(X):X[Symbol.iterator](),it={},ct("next"),ct("throw"),ct("return"),it[Symbol.asyncIterator]=function(){return this},it);function ct(Ct){it[Ct]=X[Ct]&&function(ee){return new Promise(function($,ut){ee=X[Ct](ee),zt($,ut,ee.done,ee.value)})}}function zt(Ct,ee,$,ut){Promise.resolve(ut).then(function(vt){Ct({value:vt,done:$})},ee)}}function De(X,Z){return Object.defineProperty?Object.defineProperty(X,"raw",{value:Z}):X.raw=Z,X}var an=Object.create?function(X,Z){Object.defineProperty(X,"default",{enumerable:!0,value:Z})}:function(X,Z){X.default=Z};function _e(X){if(X&&X.__esModule)return X;var Z={};if(X!=null)for(var it in X)it!=="default"&&Object.prototype.hasOwnProperty.call(X,it)&&Bt(Z,X,it);return an(Z,X),Z}function Me(X){return X&&X.__esModule?X:{default:X}}function pn(X,Z,it,ct){if(it==="a"&&!ct)throw new TypeError("Private accessor was defined without a getter");if(typeof Z=="function"?X!==Z||!ct:!Z.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return it==="m"?ct:it==="a"?ct.call(X):ct?ct.value:Z.get(X)}function Ln(X,Z,it,ct,zt){if(ct==="m")throw new TypeError("Private method is not writable");if(ct==="a"&&!zt)throw new TypeError("Private accessor was defined without a setter");if(typeof Z=="function"?X!==Z||!zt:!Z.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ct==="a"?zt.call(X,it):zt?zt.value=it:Z.set(X,it),it}function qn(X,Z){if(Z===null||typeof Z!="object"&&typeof Z!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof X=="function"?Z===X:X.has(Z)}function ln(X,Z,it){if(Z!=null){if(typeof Z!="object"&&typeof Z!="function")throw new TypeError("Object expected.");var ct;if(it){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");ct=Z[Symbol.asyncDispose]}if(ct===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");ct=Z[Symbol.dispose]}if(typeof ct!="function")throw new TypeError("Object not disposable.");X.stack.push({value:Z,dispose:ct,async:it})}else it&&X.stack.push({async:!0});return Z}var fn=typeof SuppressedError=="function"?SuppressedError:function(X,Z,it){var ct=new Error(it);return ct.name="SuppressedError",ct.error=X,ct.suppressed=Z,ct};function mt(X){function Z(ct){X.error=X.hasError?new fn(ct,X.error,"An error was suppressed during disposal."):ct,X.hasError=!0}function it(){for(;X.stack.length;){var ct=X.stack.pop();try{var zt=ct.dispose&&ct.dispose.call(ct.value);if(ct.async)return Promise.resolve(zt).then(it,function(Ct){return Z(Ct),it()})}catch(Ct){Z(Ct)}}if(X.hasError)throw X.error}return it()}var U={__extends:Nt,__assign:ye,__rest:Be,__decorate:Jt,__param:he,__metadata:Zt,__awaiter:$t,__generator:te,__createBinding:Bt,__exportStar:It,__values:kt,__read:Ft,__spread:Se,__spreadArrays:Re,__spreadArray:Ke,__await:We,__asyncGenerator:Ze,__asyncDelegator:cn,__asyncValues:He,__makeTemplateObject:De,__importStar:_e,__importDefault:Me,__classPrivateFieldGet:pn,__classPrivateFieldSet:Ln,__classPrivateFieldIn:qn,__addDisposableResource:ln,__disposeResources:mt}}}]); +}()); \ No newline at end of file diff --git a/7964.b595cc6d.async.js b/7964.b595cc6d.async.js deleted file mode 100644 index fc3c86dc..00000000 --- a/7964.b595cc6d.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7964],{952:function(fe,A,e){"use strict";var J=e(56640),p=e.n(J),U=e(5894);A.ZP=U.A},5894:function(fe,A,e){"use strict";e.d(A,{A:function(){return g}});var J=e(9715),p=e(86835),U=e(22122),l=e(67294),y=e(24214),S=e(96156),X=e(49111),x=e(19650),u=e(84305),k=e(75901),L=e(28481),M=e(28991),le=e(8812),W=e(28664),G=e(58927),F=e(94184),ie=e.n(F),V=e(66758),pe=e(2514),w=e(96138),I=l.forwardRef(function(v,ue){var _=l.useContext(V.Z),Y=_.groupProps,c=(0,M.Z)((0,M.Z)({},Y),v),t=c.children,De=c.collapsible,Se=c.defaultCollapsed,xe=c.style,Le=c.labelLayout,ge=c.title,ve=ge===void 0?v.label:ge,Ee=c.tooltip,ee=c.align,Pe=ee===void 0?"start":ee,Ce=c.direction,te=c.size,s=te===void 0?32:te,E=c.titleStyle,r=c.titleRender,i=c.spaceProps,ne=c.extra,re=c.autoFocus,o=(0,W.Z)(function(){return Se||!1},{value:v.collapsed,onChange:v.onCollapse}),T=(0,L.Z)(o,2),Z=T[0],B=T[1],P=(0,l.useContext)(k.ZP.ConfigContext),z=P.getPrefixCls,j=(0,pe.zx)(v),ce=j.ColWrapper,R=j.RowWrapper,b=z("pro-form-group"),he=De&&l.createElement(le.Z,{style:{marginRight:8},rotate:Z?void 0:90}),oe=l.createElement(G.Z,{label:he?l.createElement("div",null,he,ve):ve,tooltip:Ee}),$=(0,l.useCallback)(function(N){var H=N.children;return l.createElement(x.Z,(0,U.Z)({},i,{className:ie()("".concat(b,"-container"),i==null?void 0:i.className),size:s,align:Pe,direction:Ce,style:(0,M.Z)({rowGap:0},i==null?void 0:i.style)}),H)},[Pe,b,Ce,s,i]),K=r?r(oe,v):oe,Oe=(0,l.useMemo)(function(){var N=[],H=l.Children.toArray(t).map(function(d,ae){var O;return l.isValidElement(d)&&(d==null||(O=d.props)===null||O===void 0?void 0:O.hidden)?(N.push(d),null):ae===0&&l.isValidElement(d)&&re?l.cloneElement(d,(0,M.Z)((0,M.Z)({},d.props),{},{autoFocus:re})):d});return[l.createElement(R,{key:"children",Wrapper:$},H),N.length>0?l.createElement("div",{style:{display:"none"}},N):null]},[t,R,$,re]),me=(0,L.Z)(Oe,2),C=me[0],ye=me[1];return l.createElement(ce,null,l.createElement("div",{className:ie()(b,(0,S.Z)({},"".concat(b,"-twoLine"),Le==="twoLine")),style:xe,ref:ue},ye,(ve||Ee||ne)&&l.createElement("div",{className:"".concat(b,"-title"),style:E,onClick:function(){B(!Z)}},ne?l.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"}},K,l.createElement("span",{onClick:function(H){return H.stopPropagation()}},ne)):K),De&&Z?null:C))});I.displayName="ProForm-Group";var D=I,q=e(87808);function g(v){return l.createElement(y.I,(0,U.Z)({layout:"vertical",submitter:{render:function(_,Y){return Y.reverse()}},contentRender:function(_,Y){return l.createElement(l.Fragment,null,_,Y)}},v))}g.Group=D,g.useForm=p.Z.useForm,g.Item=q.Z,g.useWatch=p.Z.useWatch,g.useWatch=p.Z.useWatch,g.ErrorList=p.Z.ErrorList,g.Provider=p.Z.Provider},65554:function(fe,A,e){"use strict";e.d(A,{L:function(){return te},b:function(){return ee}});var J=e(9715),p=e(86835),U=e(49111),l=e(19650),y=e(28991),S=e(96156),X=e(57663),x=e(71577),u=e(35556),k=e(97880),L=e(22122),M=e(55507),le=e(92137),W=e(85061),G=e(28481),F=e(81253),ie=e(84305),V=e(75901),pe=e(13062),w=e(71230),I=e(89032),D=e(15746),q=e(57863),g=e(48531),v=e(31194),ue=e(94184),_=e.n(ue),Y=e(50344),c=e(76632),t=e(67294),De=e(161),Se=e(80334),xe=e(24214),Le=["onFinish","step","formRef","title","stepProps"];function ge(s){var E=(0,t.useRef)(),r=(0,t.useContext)(ee),i=s.onFinish,ne=s.step,re=s.formRef,o=s.title,T=s.stepProps,Z=(0,F.Z)(s,Le);return(0,Se.ET)(!Z.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,t.useImperativeHandle)(re,function(){return E.current}),(0,t.useEffect)(function(){if(!!(s.name||s.step)){var B=(s.name||s.step).toString();return r==null||r.regForm(B,s),function(){r==null||r.unRegForm(B)}}},[]),r&&(r==null?void 0:r.formArrayRef)&&(r.formArrayRef.current[ne||0]=E),t.createElement(xe.I,(0,L.Z)({formRef:E,onFinish:function(){var B=(0,le.Z)((0,M.Z)().mark(function P(z){var j;return(0,M.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(Z.name&&(r==null||r.onFormFinish(Z.name,z)),!i){R.next=9;break}return r==null||r.setLoading(!0),R.next=5,i==null?void 0:i(z);case 5:return j=R.sent,j&&(r==null||r.next()),r==null||r.setLoading(!1),R.abrupt("return");case 9:(r==null?void 0:r.lastStep)||r==null||r.next();case 10:case"end":return R.stop()}},P)}));return function(P){return B.apply(this,arguments)}}(),layout:"vertical"},Z))}var ve=ge,Ee=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],ee=t.createContext(void 0),Pe={horizontal:function(E){var r=E.stepsDom,i=E.formDom;return t.createElement(t.Fragment,null,t.createElement(w.Z,{gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{span:24},r)),t.createElement(w.Z,{gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{span:24},i)))},vertical:function(E){var r=E.stepsDom,i=E.formDom;return t.createElement(w.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24}},t.createElement(D.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12},t.cloneElement(r,{style:{height:"100%"}})),t.createElement(D.Z,null,t.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"}},i)))}};function Ce(s){var E=(0,t.useContext)(V.ZP.ConfigContext),r=E.getPrefixCls,i=r("pro-steps-form"),ne=s.current,re=s.onCurrentChange,o=s.submitter,T=s.stepsFormRender,Z=s.stepsRender,B=s.stepFormRender,P=s.stepsProps,z=s.onFinish,j=s.formProps,ce=s.containerStyle,R=s.formRef,b=s.formMapRef,he=(0,F.Z)(s,Ee),oe=(0,t.useRef)(new Map),$=(0,t.useRef)(new Map),K=(0,t.useRef)([]),Oe=(0,t.useState)([]),me=(0,G.Z)(Oe,2),C=me[0],ye=me[1],N=(0,t.useState)(!1),H=(0,G.Z)(N,2),d=H[0],ae=H[1],O=(0,q.YB)(),je=(0,c.Z)(0,{value:s.current,onChange:s.onCurrentChange}),Ke=(0,G.Z)(je,2),m=Ke[0],Me=Ke[1],Ae=(0,t.useMemo)(function(){return Pe[(P==null?void 0:P.direction)||"horizontal"]},[P==null?void 0:P.direction]),We=(0,t.useMemo)(function(){return m===C.length-1},[C.length,m]),He=(0,t.useCallback)(function(n,a){$.current.has(n)||ye(function(h){return[].concat((0,W.Z)(h),[n])}),$.current.set(n,a)},[]),Je=(0,t.useCallback)(function(n){ye(function(a){return a.filter(function(h){return h===n})}),$.current.delete(n),oe.current.delete(n)},[]);(0,t.useImperativeHandle)(b,function(){return K.current}),(0,t.useImperativeHandle)(R,function(){var n;return(n=K.current[m||0])===null||n===void 0?void 0:n.current},[m]);var Ve=(0,t.useCallback)(function(){var n=(0,le.Z)((0,M.Z)().mark(function a(h,Q){var de,Fe;return(0,M.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(oe.current.set(h,Q),!(!We||!z)){f.next=3;break}return f.abrupt("return");case 3:return ae(!0),de=g.T.apply(void 0,[{}].concat((0,W.Z)(Array.from(oe.current.values())))),f.prev=5,f.next=8,z(de);case 8:Fe=f.sent,Fe&&(Me(0),K.current.forEach(function(Qe){var $e;return($e=Qe.current)===null||$e===void 0?void 0:$e.resetFields()})),f.next=15;break;case 12:f.prev=12,f.t0=f.catch(5),console.log(f.t0);case 15:return f.prev=15,ae(!1),f.finish(15);case 18:case"end":return f.stop()}},a,null,[[5,12,15,18]])}));return function(a,h){return n.apply(this,arguments)}}(),[We,z,ae,Me]),Ie=(0,t.useMemo)(function(){return t.createElement("div",{className:"".concat(i,"-steps-container"),style:{maxWidth:Math.min(C.length*320,1160)}},t.createElement(k.Z,(0,L.Z)({},P,{current:m,onChange:void 0}),C.map(function(n){var a=$.current.get(n);return t.createElement(k.Z.Step,(0,L.Z)({key:n,title:a==null?void 0:a.title},a==null?void 0:a.stepProps))})))},[C,i,m,P]),se=(0,v.J)(function(){var n,a=K.current[m];(n=a.current)===null||n===void 0||n.submit()}),Ze=(0,v.J)(function(){m<1||Me(m-1)}),Te=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"next",type:"primary",loading:d},o==null?void 0:o.submitButtonProps,{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),se()}}),O.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65"))},[O,d,se,o]),Be=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"pre"},o==null?void 0:o.resetButtonProps,{onClick:function(){var a;Ze(),o==null||(a=o.onReset)===null||a===void 0||a.call(o)}}),O.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65"))},[O,Ze,o]),Ne=(0,t.useMemo)(function(){return o!==!1&&t.createElement(x.Z,(0,L.Z)({key:"submit",type:"primary",loading:d},o==null?void 0:o.submitButtonProps,{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),se()}}),O.getMessage("stepsForm.submit","\u63D0\u4EA4"))},[O,d,se,o]),Ye=(0,v.J)(function(){m>C.length-2||Me(m+1)}),Re=(0,t.useMemo)(function(){var n=[],a=m||0;if(a<1?n.push(Te):a+1===C.length?n.push(Be,Ne):n.push(Be,Te),n=n.filter(t.isValidElement),o&&o.render){var h,Q={form:(h=K.current[m])===null||h===void 0?void 0:h.current,onSubmit:se,step:m,onPre:Ze};return o.render(Q,n)}return o&&(o==null?void 0:o.render)===!1?null:n},[C.length,Te,se,Be,Ze,m,Ne,o]),Ue=(0,t.useMemo)(function(){return(0,Y.Z)(s.children).map(function(n,a){var h=n.props,Q=h.name||"".concat(a),de=m===a,Fe=de?{contentRender:B,submitter:!1}:{};return t.createElement("div",{className:_()("".concat(i,"-step"),(0,S.Z)({},"".concat(i,"-step-active"),de)),key:Q},t.cloneElement(n,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},Fe),j),h),{},{name:Q,step:a,key:Q})))})},[j,i,s.children,m,B]),Ge=(0,t.useMemo)(function(){return Z?Z(C.map(function(n){var a;return{key:n,title:(a=$.current.get(n))===null||a===void 0?void 0:a.title}}),Ie):Ie},[C,Ie,Z]),ze=(0,t.useMemo)(function(){return t.createElement("div",{className:"".concat(i,"-container"),style:ce},Ue,T?null:t.createElement(l.Z,null,Re))},[ce,Ue,i,T,Re]),be=(0,t.useMemo)(function(){var n={stepsDom:Ge,formDom:ze};return T?T(Ae(n),Re):Ae(n)},[Ge,ze,Ae,T,Re]);return t.createElement("div",{className:i},t.createElement(p.Z.Provider,he,t.createElement(ee.Provider,{value:{loading:d,setLoading:ae,regForm:He,keyArray:C,next:Ye,formArrayRef:K,formMapRef:$,lastStep:We,unRegForm:Je,onFormFinish:Ve}},be)))}function te(s){return t.createElement(q.oK,null,t.createElement(Ce,s))}te.StepForm=ve,te.useForm=p.Z.useForm},58927:function(fe,A,e){"use strict";var J=e(22385),p=e(61580),U=e(96156),l=e(84305),y=e(75901),S=e(68628),X=e(94184),x=e.n(X),u=e(67294),k=e(11445),L=e.n(k),M=function(W){var G=W.label,F=W.tooltip,ie=W.ellipsis,V=W.subTitle,pe=(0,u.useContext)(y.ZP.ConfigContext),w=pe.getPrefixCls;if(!F&&!V)return u.createElement(u.Fragment,null,G);var I=w("pro-core-label-tip"),D=typeof F=="string"||u.isValidElement(F)?{title:F}:F,q=(D==null?void 0:D.icon)||u.createElement(S.Z,null);return u.createElement("div",{className:I,onMouseDown:function(v){return v.stopPropagation()},onMouseLeave:function(v){return v.stopPropagation()},onMouseMove:function(v){return v.stopPropagation()}},u.createElement("div",{className:x()("".concat(I,"-title"),(0,U.Z)({},"".concat(I,"-title-ellipsis"),ie))},G),V&&u.createElement("div",{className:"".concat(I,"-subtitle")},V),F&&u.createElement(p.Z,D,u.createElement("span",{className:"".concat(I,"-icon")},q)))};A.Z=u.memo(M)},31194:function(fe,A,e){"use strict";e.d(A,{J:function(){return p}});var J=e(67294),p=function(l){var y=(0,J.useRef)(null);return y.current=l,(0,J.useCallback)(function(){for(var S,X=arguments.length,x=new Array(X),u=0;u2?42:16};return(0,e.jsx)(f.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(E).fill(null).map(function(y,c){return(0,e.jsxs)("div",{style:{borderInlineStart:E>2&&c===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:T(c),flex:1,marginInlineEnd:c===0?16:0},children:[(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z.Button,{active:l,style:{height:48}})]},c)})})})},Y=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(d.Z,{active:a,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,e.jsx)(te,{})]})},ie=function(t){var a=t.size,l=t.active,s=l===void 0?!0:l,u=t.actionButton;return(0,e.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,E){return(0,e.jsx)(Y,{active:!!s},E)}),u!==!1&&(0,e.jsx)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(d.Z.Button,{style:{width:102},active:s,size:"small"})})]})},ae=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,e.jsx)(d.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(d.Z.Button,{active:a,size:"small"})]})},Q=function(t){var a=t.active;return(0,e.jsx)(f.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,e.jsxs)(L.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(d.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(L.Z,{children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},Me=function(t){var a=t.active,l=a===void 0?!0:a,s=t.statistic,u=t.actionButton,x=t.toolbar,E=t.pageHeader,T=t.list,y=T===void 0?5:T;return(0,e.jsxs)("div",{style:{width:"100%"},children:[E!==!1&&(0,e.jsx)(ae,{active:l}),s!==!1&&(0,e.jsx)(le,{size:s,active:l}),(x!==!1||y!==!1)&&(0,e.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(Q,{active:l}),y!==!1&&(0,e.jsx)(ie,{size:y,active:l,actionButton:u})]})]})},Ie=Me,Ee={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},Be=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBlockStart:32},children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Re=function(t){var a=t.size,l=t.active,s=(0,P.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),u=q.ZP.useBreakpoint()||s,x=Object.keys(u).filter(function(T){return u[T]===!0})[0]||"md",E=a===void 0?Ee[x]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(E).fill(null).map(function(T,y){return(0,e.jsxs)("div",{style:{flex:1,paddingInlineStart:y===0?0:24,paddingInlineEnd:y===E-1?0:24},children:[(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:8}}})]},y)})})},ye=function(t){var a=t.active,l=t.header,s=l===void 0?!1:l,u=(0,P.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),x=q.ZP.useBreakpoint()||u,E=Object.keys(x).filter(function(y){return x[y]===!0})[0]||"md",T=Ee[E]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:s?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(T).fill(null).map(function(y,c){return(0,e.jsx)("div",{style:{flex:1,paddingInlineStart:s&&c===0?0:20,paddingInlineEnd:32},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:s?"75px":"100%"}}})},c)}),(0,e.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:s?"75px":"100%"}}})})]}),(0,e.jsx)(te,{padding:"0px 0px"})]})},be=function(t){var a=t.active,l=t.size,s=l===void 0?4:l;return(0,e.jsxs)(f.Z,{bordered:!1,children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(ye,{header:!0,active:a}),new Array(s).fill(null).map(function(u,x){return(0,e.jsx)(ye,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},_e=function(t){var a=t.active;return(0,e.jsxs)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Re,{active:a}),(0,e.jsx)(Be,{active:a})]})},Fe=function(t){var a=t.active,l=a===void 0?!0:a,s=t.pageHeader,u=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[s!==!1&&(0,e.jsx)(ae,{active:l}),(0,e.jsx)(_e,{active:l}),u!==!1&&(0,e.jsx)(te,{}),u!==!1&&(0,e.jsx)(be,{active:l,size:u})]})},Le=Fe,Ae=function(t){var a=t.active,l=a===void 0?!0:a,s=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[s!==!1&&(0,e.jsx)(ae,{active:l}),(0,e.jsx)(f.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(d.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:214,marginBlockEnd:8}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:328},size:"small"}),(0,e.jsxs)(L.Z,{style:{marginBlockStart:24},children:[(0,e.jsx)(d.Z.Button,{active:l,style:{width:116}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:116}})]})]})})]})},We=Ae,Ke=["type"],Ue=function(t){var a=t.type,l=a===void 0?"list":a,s=(0,B.Z)(t,Ke);return l==="result"?(0,e.jsx)(We,(0,n.Z)({},s)):l==="descriptions"?(0,e.jsx)(Le,(0,n.Z)({},s)):(0,e.jsx)(Ie,(0,n.Z)({},s))},ke=Ue,pe=r(66313),ze=r(45362),Ze=r(11175),we=r(46613),me=r(21804),$e=r(75565),he=r(32682),Ne=r(17122),je=r(52497),ge=r(65589),ue=r(44139),He=function(t){return(je.ZP.warn||je.ZP.warning)(t)};function Ve(i){var t=i.data,a=i.row;return(0,n.Z)((0,n.Z)({},t),a)}function Ge(i){var t=i.type||"single",a=(0,Ne.YB)(),l=(0,ge.Z)([],{value:i.editableKeys,onChange:i.onChange?function(Z){var S;i==null||(S=i.onChange)===null||S===void 0||S.call(i,Z,i.dataSource)}:void 0}),s=(0,he.Z)(l,2),u=s[0],x=s[1],E=(0,P.useMemo)(function(){var Z=t==="single"?u==null?void 0:u.slice(0,1):u;return new Set(Z)},[(u||[]).join(","),t]),T=(0,P.useCallback)(function(Z){return!!(u!=null&&u.includes((0,ue.sN)(Z)))},[(u||[]).join(",")]),y=function(S){return E.size>0&&t==="single"?(He(i.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(E.add((0,ue.sN)(S)),x(Array.from(E)),!0)},c=function(S){return E.delete((0,ue.sN)(S)),x(Array.from(E)),!0},F=function(){var Z=(0,I.Z)((0,h.Z)().mark(function S(M,C,K,X){var V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i==null||(V=i.onCancel)===null||V===void 0?void 0:V.call(i,M,C,K,X);case 2:if(U=o.sent,U!==!1){o.next=5;break}return o.abrupt("return",!1);case 5:return o.abrupt("return",!0);case 6:case"end":return o.stop()}},S)}));return function(M,C,K,X){return Z.apply(this,arguments)}}(),N=function(){var Z=(0,I.Z)((0,h.Z)().mark(function S(M,C,K){var X,V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i==null||(X=i.onSave)===null||X===void 0?void 0:X.call(i,M,C,K);case 2:if(V=o.sent,V!==!1){o.next=5;break}return o.abrupt("return",!1);case 5:return o.next=7,c(M);case 7:return U={data:i.dataSource,row:C,key:M,childrenColumnName:i.childrenColumnName||"children"},i.setDataSource(Ve(U)),o.abrupt("return",!0);case 10:case"end":return o.stop()}},S)}));return function(M,C,K){return Z.apply(this,arguments)}}(),A=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),W=a.getMessage("editableTable.action.delete","\u5220\u9664"),O=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),H=(0,P.useCallback)(function(Z,S){var M=(0,n.Z)({recordKey:Z,cancelEditable:c,onCancel:F,onSave:N,editableKeys:u,setEditableRowKeys:x,saveText:A,cancelText:O,deleteText:W,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?"),editorType:"Map"},S),C=(0,ue.aX)(i.dataSource,M);return i.actionRender?i.actionRender(i.dataSource,M,{save:C.save,delete:C.delete,cancel:C.cancel}):[C.save,C.delete,C.cancel]},[u&&u.join(","),i.dataSource]);return{editableKeys:u,setEditableRowKeys:x,isEditable:T,actionRender:H,startEditable:y,cancelEditable:c}}var Xe=r(27542),Ce=r(63945),Pe=r(8303),Qe=r(56197),Ye=r(13763),Je=r(85108),qe=function(t,a){var l=a||{},s=l.onRequestError,u=l.effects,x=l.manual,E=l.dataSource,T=l.defaultDataSource,y=l.onDataSourceChange,c=(0,ge.Z)(T,{value:E,onChange:y}),F=(0,he.Z)(c,2),N=F[0],A=F[1],W=(0,ge.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),O=(0,he.Z)(W,2),H=O[0],Z=O[1],S=function(K){A(K),Z(!1)},M=function(){var C=(0,I.Z)((0,h.Z)().mark(function K(){var X,V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!H){o.next=2;break}return o.abrupt("return");case 2:return Z(!0),o.prev=3,o.next=6,t();case 6:if(o.t0=o.sent,o.t0){o.next=9;break}o.t0={};case 9:X=o.t0,V=X.data,U=X.success,U!==!1&&S(V),o.next=23;break;case 15:if(o.prev=15,o.t1=o.catch(3),s!==void 0){o.next=21;break}throw new Error(o.t1);case 21:s(o.t1);case 22:Z(!1);case 23:return o.prev=23,Z(!1),o.finish(23);case 26:case"end":return o.stop()}},K,null,[[3,15,23,26]])}));return function(){return C.apply(this,arguments)}}();return(0,P.useEffect)(function(){x||M()},[].concat((0,m.Z)(u||[]),[x])),{dataSource:N,setDataSource:A,loading:H,reload:function(){return M()}}},et=qe,Se=r(26488),tt=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],at=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],rt=function(t,a){var l=t.dataIndex;if(l){var s=Array.isArray(l)?(0,Je.Z)(a,l):a[l];if(s!==void 0||s!==null)return s}return t.children},De=function(t){var a,l=t.valueEnum,s=t.action,u=t.index,x=t.text,E=t.entity,T=t.mode,y=t.render,c=t.editableUtils,F=t.valueType,N=t.plain,A=t.dataIndex,W=t.request,O=t.renderFormItem,H=t.params,Z=_.ZP.useFormInstance(),S=(a=Se.Ow.useToken)===null||a===void 0?void 0:a.call(Se.Ow),M=S.token,C={text:x,valueEnum:l,mode:T||"read",proFieldProps:{emptyText:t.emptyText,render:y?function(V){return y==null?void 0:y(V,E,u,s,(0,n.Z)((0,n.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:F,request:W,params:H,plain:N};if(T==="read"||!T||F==="option"){var K=(0,pe.w)(t.fieldProps,void 0,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!1}));return(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({name:A},C),{},{fieldProps:K}))}var X=function(){var U,v=(0,pe.w)(t.formItemProps,Z,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!0})),o=(0,pe.w)(t.fieldProps,Z,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!0}));return(0,e.jsxs)("div",{style:{display:"flex",gap:M.marginXS,alignItems:"baseline"},children:[(0,e.jsx)(ze.U,(0,n.Z)((0,n.Z)({name:A},v),{},{style:(0,n.Z)({margin:0},(v==null?void 0:v.style)||{}),initialValue:x||(v==null?void 0:v.initialValue),children:(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({},C),{},{proFieldProps:(0,n.Z)({},C.proFieldProps),renderFormItem:O?function(){return O==null?void 0:O((0,n.Z)((0,n.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:A,record:Z.getFieldValue([A].flat(1)),defaultRender:function(){return(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({},C),{},{fieldProps:o}))},type:"descriptions"},Z)}:void 0,fieldProps:o}))})),(0,e.jsx)("div",{style:{display:"flex",maxHeight:M.controlHeight,alignItems:"center",gap:M.marginXS},children:c==null||(U=c.actionRender)===null||U===void 0?void 0:U.call(c,A||u,{cancelText:(0,e.jsx)(R,{}),saveText:(0,e.jsx)(z,{}),deleteText:!1})})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:X()})},nt=function(t,a,l,s,u){var x,E=[],T=(0,Ze.n)(Ce.Z,"5.8.0")>=0,y=t==null||(x=t.map)===null||x===void 0?void 0:x.call(t,function(c,F){var N,A,W;if(P.isValidElement(c))return T?{children:c}:c;var O=c,H=O.valueEnum,Z=O.render,S=O.renderText,M=O.mode,C=O.plain,K=O.dataIndex,X=O.request,V=O.params,U=O.editable,v=(0,B.Z)(O,tt),o=(N=rt(c,a))!==null&&N!==void 0?N:v.children,re=S?S(o,a,F,l):o,g=typeof v.title=="function"?v.title(c,"descriptions",null):v.title,j=typeof v.valueType=="function"?v.valueType(a||{},"descriptions"):v.valueType,xe=s==null?void 0:s.isEditable(K||F),oe=M||xe?"edit":"read",de=s&&oe==="read"&&U!==!1&&(U==null?void 0:U(re,a,F))!==!1,ve=de?L.Z:P.Fragment,ce=oe==="edit"?re:(0,we.X)(re,c,re),fe=T&&j!=="option"?(0,n.Z)((0,n.Z)({},v),{},{key:v.key||((A=v.label)===null||A===void 0?void 0:A.toString())||F,label:(g||v.label||v.tooltip||v.tip)&&(0,e.jsx)(me.G,{label:g||v.label,tooltip:v.tooltip||v.tip,ellipsis:c.ellipsis}),children:(0,e.jsxs)(ve,{children:[(0,e.jsx)(De,(0,n.Z)((0,n.Z)({},c),{},{dataIndex:c.dataIndex||F,mode:oe,text:ce,valueType:j,entity:a,index:F,emptyText:u,action:l,editableUtils:s})),de&&(0,e.jsx)(b.Z,{onClick:function(){s==null||s.startEditable(K||F)}})]})}):(0,P.createElement)(Pe.Z.Item,(0,n.Z)((0,n.Z)({},v),{},{key:v.key||((W=v.label)===null||W===void 0?void 0:W.toString())||F,label:(g||v.label||v.tooltip||v.tip)&&(0,e.jsx)(me.G,{label:g||v.label,tooltip:v.tooltip||v.tip,ellipsis:c.ellipsis})}),(0,e.jsxs)(ve,{children:[(0,e.jsx)(De,(0,n.Z)((0,n.Z)({},c),{},{dataIndex:c.dataIndex||F,mode:oe,text:ce,valueType:j,entity:a,index:F,action:l,editableUtils:s})),de&&j!=="option"&&(0,e.jsx)(b.Z,{onClick:function(){s==null||s.startEditable(K||F)}})]}));return j==="option"?(E.push(fe),null):fe}).filter(function(c){return c});return{options:E!=null&&E.length?E:null,children:y}},Te=function(t){return(0,e.jsx)(Pe.Z.Item,(0,n.Z)((0,n.Z)({},t),{},{children:t.children}))};Te.displayName="ProDescriptionsItem";var lt=function(t){return t.children},Oe=function(t){var a,l=t.request,s=t.columns,u=t.params,x=t.dataSource,E=t.onDataSourceChange,T=t.formProps,y=t.editable,c=t.loading,F=t.onLoadingChange,N=t.actionRef,A=t.onRequestError,W=(0,B.Z)(t,at),O=(0,P.useContext)(Qe.ZP.ConfigContext),H=et((0,I.Z)((0,h.Z)().mark(function o(){var re;return(0,h.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!l){j.next=6;break}return j.next=3,l(u||{});case 3:j.t0=j.sent,j.next=7;break;case 6:j.t0={data:{}};case 7:return re=j.t0,j.abrupt("return",re);case 9:case"end":return j.stop()}},o)})),{onRequestError:A,effects:[(0,$e.ZP)(u)],manual:!l,dataSource:x,loading:c,onLoadingChange:F,onDataSourceChange:E}),Z=Ge((0,n.Z)((0,n.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:H.dataSource,setDataSource:H.setDataSource}));if((0,P.useEffect)(function(){N&&(N.current=(0,n.Z)({reload:H.reload},Z))},[H,N,Z]),H.loading||H.loading===void 0&&l)return(0,e.jsx)(ke,{type:"descriptions",list:!1,pageHeader:!1});var S=function(){var re=(0,Ye.Z)(t.children).filter(Boolean).map(function(g){if(!P.isValidElement(g))return g;var j=g==null?void 0:g.props,xe=j.valueEnum,oe=j.valueType,de=j.dataIndex,ve=j.ellipsis,ce=j.copyable,fe=j.request;return!oe&&!xe&&!de&&!fe&&!ve&&!ce&&g.type.displayName!=="ProDescriptionsItem"?g:(0,n.Z)((0,n.Z)({},g==null?void 0:g.props),{},{entity:x})});return[].concat((0,m.Z)(s||[]),(0,m.Z)(re)).filter(function(g){return!g||g!=null&&g.valueType&&["index","indexBorder"].includes(g==null?void 0:g.valueType)?!1:!(g!=null&&g.hideInDescriptions)}).sort(function(g,j){return j.order||g.order?(j.order||0)-(g.order||0):(j.index||0)-(g.index||0)})},M=nt(S(),H.dataSource||{},(N==null?void 0:N.current)||H,y?Z:void 0,t.emptyText),C=M.options,K=M.children,X=y?_.ZP:lt,V=null;(W.title||W.tooltip||W.tip)&&(V=(0,e.jsx)(me.G,{label:W.title,tooltip:W.tooltip||W.tip}));var U=O.getPrefixCls("pro-descriptions"),v=(0,Ze.n)(Ce.Z,"5.8.0")>=0;return(0,e.jsx)(Xe.S,{children:(0,e.jsx)(X,(0,n.Z)((0,n.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},T),{},{onFinish:void 0,children:(0,e.jsx)(Pe.Z,(0,n.Z)((0,n.Z)({className:U},W),{},{contentStyle:{minWidth:0},extra:W.extra?(0,e.jsxs)(L.Z,{children:[C,W.extra]}):C,title:V,items:v?K:void 0,children:v?null:K}))}),"form")})};Oe.Item=Te;var st=null},98150:function(se,G,r){var m=r(33346),h=r(10570),I=r(50959),B=r(54970),n=r(82578),P=r(11527),w=["fieldProps","proFieldProps"],k="dateTime",$=I.forwardRef(function(R,ee){var J=R.fieldProps,z=R.proFieldProps,b=(0,h.Z)(R,w),_=(0,I.useContext)(B.Z);return(0,P.jsx)(n.Z,(0,m.Z)({ref:ee,fieldProps:(0,m.Z)({getPopupContainer:_.getPopupContainer},J),valueType:k,proFieldProps:z,filedConfig:{valueType:k,customLightMode:!0}},b))});G.Z=$},66790:function(se,G,r){var m=r(33346),h=r(10570),I=r(44559),B=r(22900),n=r(50959),P=r(81298),w=r(82578),k=r(11527),$=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],R=n.forwardRef(function(b,_){var D=b.fieldProps,d=b.options,q=b.radioType,f=b.layout,p=b.proFieldProps,L=b.valueEnum,e=(0,h.Z)(b,$);return(0,k.jsx)(w.Z,(0,m.Z)((0,m.Z)({valueType:q==="button"?"radioButton":"radio",ref:_,valueEnum:(0,I.h)(L,void 0)},e),{},{fieldProps:(0,m.Z)({options:d,layout:f},D),proFieldProps:p,filedConfig:{customLightMode:!0}}))}),ee=n.forwardRef(function(b,_){var D=b.fieldProps,d=b.children;return(0,k.jsx)(B.ZP,(0,m.Z)((0,m.Z)({},D),{},{ref:_,children:d}))}),J=(0,P.G)(ee,{valuePropName:"checked",ignoreWidth:!0}),z=J;z.Group=R,z.Button=B.ZP.Button,z.displayName="ProFormComponent",G.Z=z},79712:function(se,G,r){var m=r(33346),h=r(10570),I=r(44559),B=r(50959),n=r(54970),P=r(82578),w=r(11527),k=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],$=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],R=function(D,d){var q=D.fieldProps,f=D.children,p=D.params,L=D.proFieldProps,e=D.mode,te=D.valueEnum,ne=D.request,le=D.showSearch,Y=D.options,ie=(0,h.Z)(D,k),ae=(0,B.useContext)(n.Z);return(0,w.jsx)(P.Z,(0,m.Z)((0,m.Z)({valueEnum:(0,I.h)(te),request:ne,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,m.Z)({options:Y,mode:e,showSearch:le,getPopupContainer:ae.getPopupContainer},q),ref:d,proFieldProps:L},ie),{},{children:f}))},ee=B.forwardRef(function(_,D){var d=_.fieldProps,q=_.children,f=_.params,p=_.proFieldProps,L=_.mode,e=_.valueEnum,te=_.request,ne=_.options,le=(0,h.Z)(_,$),Y=(0,m.Z)({options:ne,mode:L||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},d),ie=(0,B.useContext)(n.Z);return(0,w.jsx)(P.Z,(0,m.Z)((0,m.Z)({valueEnum:(0,I.h)(e),request:te,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,m.Z)({getPopupContainer:ie.getPopupContainer},Y),ref:D,proFieldProps:p},le),{},{children:q}))}),J=B.forwardRef(R),z=ee,b=J;b.SearchSelect=z,b.displayName="ProFormComponent",G.Z=b},59224:function(se,G,r){var m=r(33346),h=r(10570),I=r(50959),B=r(82578),n=r(11527),P=["fieldProps","proFieldProps"],w=function($,R){var ee=$.fieldProps,J=$.proFieldProps,z=(0,h.Z)($,P);return(0,n.jsx)(B.Z,(0,m.Z)({ref:R,valueType:"textarea",fieldProps:ee,proFieldProps:J},z))};G.Z=I.forwardRef(w)},60010:function(se,G,r){var m=r(32682),h=r(33346),I=r(10570),B=r(65589),n=r(67190),P=r(82757),w=r(71770),k=r(50959),$=r(82578),R=r(11527),ee=["fieldProps","proFieldProps"],J=["fieldProps","proFieldProps"],z="text",b=function(f){var p=f.fieldProps,L=f.proFieldProps,e=(0,I.Z)(f,ee);return(0,R.jsx)($.Z,(0,h.Z)({valueType:z,fieldProps:p,filedConfig:{valueType:z},proFieldProps:L},e))},_=function(f){var p=(0,B.Z)(f.open||!1,{value:f.open,onChange:f.onOpenChange}),L=(0,m.Z)(p,2),e=L[0],te=L[1];return(0,R.jsx)(n.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(le){var Y,ie=le.getFieldValue(f.name||[]);return(0,R.jsx)(P.Z,(0,h.Z)((0,h.Z)({getPopupContainer:function(Q){return Q&&Q.parentNode?Q.parentNode:Q},onOpenChange:te,content:(0,R.jsxs)("div",{style:{padding:"4px 0"},children:[(Y=f.statusRender)===null||Y===void 0?void 0:Y.call(f,ie),f.strengthText?(0,R.jsx)("div",{style:{marginTop:10},children:(0,R.jsx)("span",{children:f.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},f.popoverProps),{},{open:e,children:f.children}))}})},D=function(f){var p=f.fieldProps,L=f.proFieldProps,e=(0,I.Z)(f,J),te=(0,k.useState)(!1),ne=(0,m.Z)(te,2),le=ne[0],Y=ne[1];return p!=null&&p.statusRender&&e.name?(0,R.jsx)(_,{name:e.name,statusRender:p==null?void 0:p.statusRender,popoverProps:p==null?void 0:p.popoverProps,strengthText:p==null?void 0:p.strengthText,open:le,onOpenChange:Y,children:(0,R.jsx)($.Z,(0,h.Z)({valueType:"password",fieldProps:(0,h.Z)((0,h.Z)({},(0,w.Z)(p,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(ae){var Q;p==null||(Q=p.onBlur)===null||Q===void 0||Q.call(p,ae),Y(!1)},onClick:function(ae){var Q;p==null||(Q=p.onClick)===null||Q===void 0||Q.call(p,ae),Y(!0)}}),proFieldProps:L,filedConfig:{valueType:z}},e))}):(0,R.jsx)($.Z,(0,h.Z)({valueType:"password",fieldProps:p,proFieldProps:L,filedConfig:{valueType:z}},e))},d=b;d.Password=D,d.displayName="ProFormComponent",G.Z=d}}]); diff --git a/8161.6bbeb40d.async.js b/8161.6bbeb40d.async.js new file mode 100644 index 00000000..da5ca355 --- /dev/null +++ b/8161.6bbeb40d.async.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8161],{82099:function(it,ge,i){var N=i(50120);ge.Z=N.Z},67190:function(it,ge,i){i.d(ge,{Z:function(){return tn}});var N=i(1788),ke=i(84875),A=i.n(ke),he=i(10091),o=i(50959),Ae=i(58351),S=i(1415);function Me(e){const[t,n]=o.useState(e);return o.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var s=i(60076),f=i(6301),P=i(37747),G=i(23148),O=i(90467),g=i(81501),j=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.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 ${(0,s.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ne=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},st=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,f.Wf)(e)),Y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ne(e,e.controlHeightSM)),"&-large":Object.assign({},Ne(e,e.controlHeightLG))})}},ct=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:l,labelRequiredMarkColor:a,labelColor:d,labelFontSize:b,labelHeight:m,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:v,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},(0,f.Wf)(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:m,color:d,fontSize:b,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:v},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${l}-col-'"]):not([class*="' ${l}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:P.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},_e=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Pe=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},M=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:M(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},be=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:M(e),[`@media (max-width: ${(0,s.bf)(e.screenXSMax)})`]:[pe(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:M(e)}}],[`@media (max-width: ${(0,s.bf)(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:M(e)}},[`@media (max-width: ${(0,s.bf)(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:M(e)}},[`@media (max-width: ${(0,s.bf)(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:M(e)}}}},ve=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),ce=(e,t)=>(0,O.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var re=(0,g.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=ce(e,n);return[st(r),ct(r),j(r),_e(r),Pe(r),be(r),(0,G.Z)(r),P.kr]},ve,{order:-1e3}),oe=i(10254);const ye=[];function Ce(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}var xe=e=>{let{help:t,helpStatus:n,errors:r=ye,warnings:l=ye,className:a,fieldId:d,onVisibleChanged:b}=e;const{prefixCls:m}=o.useContext(S.Rk),u=`${m}-item-explain`,v=(0,oe.Z)(m),[p,Z]=re(m,v),E=(0,o.useMemo)(()=>(0,Ae.Z)(m),[m]),R=Me(r),L=Me(l),W=o.useMemo(()=>t!=null?[Ce(t,"help",n)]:[].concat((0,N.Z)(R.map((c,y)=>Ce(c,"error","error",y))),(0,N.Z)(L.map((c,y)=>Ce(c,"warning","warning",y)))),[t,n,R,L]),F={};return d&&(F.id=`${d}_help`),p(o.createElement(he.ZP,{motionDeadline:E.motionDeadline,motionName:`${m}-show-help`,visible:!!W.length,onVisibleChanged:b},c=>{const{className:y,style:x}=c;return o.createElement("div",Object.assign({},F,{className:A()(u,y,v,a,Z),style:x,role:"alert"}),o.createElement(he.V4,Object.assign({keys:W},(0,Ae.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),C=>{const{key:$,error:H,errorStatus:V,className:U,style:z}=C;return o.createElement("div",{key:$,className:A()(U,{[`${u}-${V}`]:V}),style:z},H)}))}))},J=i(7445),je=i(31594),Be=i(69943),tt=i(81046),B=i(17436),X=i(10886);const Xe=["parentNode"],le="form_item";function h(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function $e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Xe.includes(n)?`${le}_${n}`:n}function Se(e,t,n,r,l,a){let d=r;return a!==void 0?d=a:n.validating?d="validating":e.length?d="error":t.length?d="warning":(n.touched||l&&n.validated)&&(d="success"),d}function Ie(e){return h(e).join("_")}function Re(e){const[t]=(0,J.cI)(),n=o.useRef({}),r=o.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:l=>a=>{const d=Ie(l);a?n.current[d]=a:delete n.current[d]}},scrollToField:function(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const d=h(l),b=$e(d,r.__INTERNAL__.name),m=b?document.getElementById(b):null;m&&(0,X.Z)(m,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:l=>{const a=Ie(l);return n.current[a]}}),[e,t]);return[r]}var Ke=i(67347),Le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const n=o.useContext(Be.Z),{getPrefixCls:r,direction:l,form:a}=o.useContext(je.E_),{prefixCls:d,className:b,rootClassName:m,size:u,disabled:v=n,form:p,colon:Z,labelAlign:E,labelWrap:R,labelCol:L,wrapperCol:W,hideRequiredMark:F,layout:c="horizontal",scrollToFirstError:y,requiredMark:x,onFinishFailed:C,name:$,style:H,feedbackIcons:V}=e,U=Le(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),z=(0,B.Z)(u),de=o.useContext(Ke.Z),me=(0,o.useMemo)(()=>x!==void 0?x:a&&a.requiredMark!==void 0?a.requiredMark:!F,[F,x,a]),ie=Z!=null?Z:a==null?void 0:a.colon,w=r("form",d),se=(0,oe.Z)(w),[_,ee]=re(w,se),Qe=A()(w,`${w}-${c}`,{[`${w}-hide-required-mark`]:me===!1,[`${w}-rtl`]:l==="rtl",[`${w}-${z}`]:z},se,ee,a==null?void 0:a.className,b,m),[ue]=Re(p),{__INTERNAL__:rt}=ue;rt.name=$;const Fe=(0,o.useMemo)(()=>({name:$,labelAlign:E,labelCol:L,labelWrap:R,wrapperCol:W,vertical:c==="vertical",colon:ie,requiredMark:me,itemRef:rt.itemRef,form:ue,feedbackIcons:V}),[$,E,L,W,c,ie,me,ue,V]);o.useImperativeHandle(t,()=>ue);const De=(te,ne)=>{if(te){let I={block:"nearest"};typeof te=="object"&&(I=te),ue.scrollToField(ne,I)}},dt=te=>{if(C==null||C(te),te.errorFields.length){const ne=te.errorFields[0].name;if(y!==void 0){De(y,ne);return}a&&a.scrollToFirstError!==void 0&&De(a.scrollToFirstError,ne)}};return _(o.createElement(Be.n,{disabled:v},o.createElement(tt.Z.Provider,{value:z},o.createElement(S.RV,{validateMessages:de},o.createElement(S.q3.Provider,{value:Fe},o.createElement(J.ZP,Object.assign({id:$},U,{name:$,onFinishFailed:dt,form:ue,style:Object.assign(Object.assign({},a==null?void 0:a.style),H),className:Qe})))))))};var Ze=o.forwardRef(Te),Ve=i(42291),Ee=i(12602),Q=i(94914),k=i(27970),We=i(13763);function He(e){if(typeof e=="function")return e;const t=(0,We.Z)(e);return t.length<=1?t[0]:t}const ze=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,o.useContext)(S.aM);return{status:e,errors:t,warnings:n}};ze.Context=S.aM;var Ye=ze,qe=i(28449);function nt(e){const[t,n]=o.useState(e),r=(0,o.useRef)(null),l=(0,o.useRef)([]),a=(0,o.useRef)(!1);o.useEffect(()=>(a.current=!1,()=>{a.current=!0,qe.Z.cancel(r.current),r.current=null}),[]);function d(b){a.current||(r.current===null&&(l.current=[],r.current=(0,qe.Z)(()=>{r.current=null,n(m=>{let u=m;return l.current.forEach(v=>{u=v(u)}),u})})),l.current.push(b))}return[t,d]}function $t(){const{itemRef:e}=o.useContext(S.q3),t=o.useRef({});function n(r,l){const a=l&&typeof l=="object"&&l.ref,d=r.join("_");return(t.current.name!==d||t.current.originRef!==a)&&(t.current.name=d,t.current.originRef=a,t.current.ref=(0,Ee.sQ)(e(r),a)),t.current.ref}return n}var St=i(95992),It=i(77189),Et=i(87017),Ft=i(72611),gt=i(50120);const wt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var Ot=(0,g.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=ce(e,n);return[wt(r)]}),Mt=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:l,errors:a,warnings:d,_internalItemRender:b,extra:m,help:u,fieldId:v,marginBottom:p,onErrorVisibleChanged:Z}=e,E=`${t}-item`,R=o.useContext(S.q3),L=r||R.wrapperCol||{},W=A()(`${E}-control`,L.className),F=o.useMemo(()=>Object.assign({},R),[R]);delete F.labelCol,delete F.wrapperCol;const c=o.createElement("div",{className:`${E}-control-input`},o.createElement("div",{className:`${E}-control-input-content`},l)),y=o.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=p!==null||a.length||d.length?o.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},o.createElement(S.Rk.Provider,{value:y},o.createElement(xe,{fieldId:v,errors:a,warnings:d,help:u,helpStatus:n,className:`${E}-explain-connected`,onVisibleChanged:Z})),!!p&&o.createElement("div",{style:{width:0,height:p}})):null,C={};v&&(C.id=`${v}_extra`);const $=m?o.createElement("div",Object.assign({},C,{className:`${E}-extra`}),m):null,H=b&&b.mark==="pro_table_render"&&b.render?b.render(e,{input:c,errorList:x,extra:$}):o.createElement(o.Fragment,null,c,x,$);return o.createElement(S.q3.Provider,{value:F},o.createElement(gt.Z,Object.assign({},L,{className:W}),H),o.createElement(Ot,{prefixCls:t}))},Nt=i(38126),Pt=i(948),jt=i(38782),Rt=function(t,n){return o.createElement(jt.Z,(0,Nt.Z)({},t,{ref:n,icon:Pt.Z}))},Lt=o.forwardRef(Rt),Tt=i(59848),Zt=i(45449),Vt=i(32618),Wt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{let{prefixCls:t,label:n,htmlFor:r,labelCol:l,labelAlign:a,colon:d,required:b,requiredMark:m,tooltip:u}=e;var v;const[p]=(0,Zt.Z)("Form"),{vertical:Z,labelAlign:E,labelCol:R,labelWrap:L,colon:W}=o.useContext(S.q3);if(!n)return null;const F=l||R||{},c=a||E,y=`${t}-item-label`,x=A()(y,c==="left"&&`${y}-left`,F.className,{[`${y}-wrap`]:!!L});let C=n;const $=d===!0||W!==!1&&d!==!1;$&&!Z&&typeof n=="string"&&n.trim()!==""&&(C=n.replace(/[:|:]\s*$/,""));const V=Ht(u);if(V){const{icon:me=o.createElement(Lt,null)}=V,ie=Wt(V,["icon"]),w=o.createElement(Vt.Z,Object.assign({},ie),o.cloneElement(me,{className:`${t}-item-tooltip`,title:"",onClick:se=>{se.preventDefault()},tabIndex:null}));C=o.createElement(o.Fragment,null,C,w)}const U=m==="optional",z=typeof m=="function";z?C=m(C,{required:!!b}):U&&!b&&(C=o.createElement(o.Fragment,null,C,o.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((v=Tt.Z.Form)===null||v===void 0?void 0:v.optional))));const de=A()({[`${t}-item-required`]:b,[`${t}-item-required-mark-optional`]:U||z,[`${t}-item-no-colon`]:!$});return o.createElement(gt.Z,Object.assign({},F,{className:x}),o.createElement("label",{htmlFor:r,className:de,title:typeof n=="string"?n:""},C))},Dt=i(71349),At=i(67536),Bt=i(39388),Xt=i(58516);const Kt={success:Dt.Z,warning:Bt.Z,error:At.Z,validating:Xt.Z};function ht(e){let{children:t,errors:n,warnings:r,hasFeedback:l,validateStatus:a,prefixCls:d,meta:b,noStyle:m}=e;const u=`${d}-item`,{feedbackIcons:v}=o.useContext(S.q3),p=Se(n,r,b,null,!!l,a),{isFormItemInput:Z,status:E,hasFeedback:R,feedbackIcon:L}=o.useContext(S.aM),W=o.useMemo(()=>{var F;let c;if(l){const x=l!==!0&&l.icons||v,C=p&&((F=x==null?void 0:x({status:p,errors:n,warnings:r}))===null||F===void 0?void 0:F[p]),$=p&&Kt[p];c=C!==!1&&$?o.createElement("span",{className:A()(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},C||o.createElement($,null)):null}const y={status:p||"",errors:n,warnings:r,hasFeedback:!!l,feedbackIcon:c,isFormItemInput:!0};return m&&(y.status=(p!=null?p:E)||"",y.isFormItemInput=Z,y.hasFeedback=!!(l!=null?l:R),y.feedbackIcon=l!==void 0?y.feedbackIcon:L),y},[p,l,m,Z,E]);return o.createElement(S.aM.Provider,{value:W},t)}var Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{if(V&&x.current){const _=getComputedStyle(x.current);de(parseInt(_.marginBottom,10))}},[V,U]);const me=_=>{_||de(null)},w=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ee=_?C:u.errors,Qe=_?$:u.warnings;return Se(ee,Qe,u,"",!!v,m)}(),se=A()(c,n,r,{[`${c}-with-help`]:H||C.length||$.length,[`${c}-has-feedback`]:w&&v,[`${c}-has-success`]:w==="success",[`${c}-has-warning`]:w==="warning",[`${c}-has-error`]:w==="error",[`${c}-is-validating`]:w==="validating",[`${c}-hidden`]:p});return o.createElement("div",{className:se,style:l,ref:x},o.createElement(Ft.Z,Object.assign({className:`${c}-row`},(0,Et.Z)(F,["_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"])),o.createElement(zt,Object.assign({htmlFor:E},e,{requiredMark:y,required:R!=null?R:L,prefixCls:t})),o.createElement(Mt,Object.assign({},e,u,{errors:C,warnings:$,prefixCls:t,status:w,help:a,marginBottom:z,onErrorVisibleChanged:me}),o.createElement(S.qI.Provider,{value:W},o.createElement(ht,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:v,validateStatus:w},Z)))),!!z&&o.createElement("div",{className:`${c}-margin-offset`,style:{marginBottom:-z}}))}const qt="__SPLIT__",ln=null,Qt=o.memo(e=>{let{children:t}=e;return t},(e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function pt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ut(e){const{name:t,noStyle:n,className:r,dependencies:l,prefixCls:a,shouldUpdate:d,rules:b,children:m,required:u,label:v,messageVariables:p,trigger:Z="onChange",validateTrigger:E,hidden:R,help:L}=e,{getPrefixCls:W}=o.useContext(je.E_),{name:F}=o.useContext(S.q3),c=He(m),y=typeof c=="function",x=o.useContext(S.qI),{validateTrigger:C}=o.useContext(J.zb),$=E!==void 0?E:C,H=t!=null,V=W("form",a),U=(0,oe.Z)(V),[z,de]=re(V,U),me=(0,k.ln)("Form.Item"),ie=o.useContext(J.ZM),w=o.useRef(),[se,_]=nt({}),[ee,Qe]=(0,Ve.Z)(()=>pt()),ue=I=>{const K=ie==null?void 0:ie.getKey(I.name);if(Qe(I.destroy?pt():I,!0),n&&L!==!1&&x){let D=I.name;if(I.destroy)D=w.current||D;else if(K!==void 0){const[fe,we]=K;D=[fe].concat((0,N.Z)(we)),w.current=D}x(I,D)}},rt=(I,K)=>{_(D=>{const fe=Object.assign({},D),Ue=[].concat((0,N.Z)(I.name.slice(0,-1)),(0,N.Z)(K)).join(qt);return I.destroy?delete fe[Ue]:fe[Ue]=I,fe})},[Fe,De]=o.useMemo(()=>{const I=(0,N.Z)(ee.errors),K=(0,N.Z)(ee.warnings);return Object.values(se).forEach(D=>{I.push.apply(I,(0,N.Z)(D.errors||[])),K.push.apply(K,(0,N.Z)(D.warnings||[]))}),[I,K]},[se,ee.errors,ee.warnings]),dt=$t();function te(I,K,D){return n&&!R?o.createElement(ht,{prefixCls:V,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:ee,errors:Fe,warnings:De,noStyle:!0},I):o.createElement(Yt,Object.assign({key:"row"},e,{className:A()(r,U,de),prefixCls:V,fieldId:K,isRequired:D,errors:Fe,warnings:De,meta:ee,onSubItemMetaChange:rt}),I)}if(!H&&!y&&!l)return z(te(c));let ne={};return typeof v=="string"?ne.label=v:t&&(ne.label=String(t)),p&&(ne=Object.assign(Object.assign({},ne),p)),z(o.createElement(J.gN,Object.assign({},e,{messageVariables:ne,trigger:Z,validateTrigger:$,onMetaChange:ue}),(I,K,D)=>{const fe=h(t).length&&K?K.name:[],we=$e(fe,F),Ue=u!==void 0?u:!!(b&&b.some(T=>{if(T&&typeof T=="object"&&T.required&&!T.warningOnly)return!0;if(typeof T=="function"){const lt=T(D);return lt&<.required&&!lt.warningOnly}return!1})),ot=Object.assign({},I);let Je=null;if(Array.isArray(c)&&H)Je=c;else if(!(y&&(!(d||l)||H))){if(!(l&&!y&&!H))if((0,Q.l$)(c)){const T=Object.assign(Object.assign({},c.props),ot);if(T.id||(T.id=we),L||Fe.length>0||De.length>0||e.extra){const Oe=[];(L||Fe.length>0)&&Oe.push(`${we}_help`),e.extra&&Oe.push(`${we}_extra`),T["aria-describedby"]=Oe.join(" ")}Fe.length>0&&(T["aria-invalid"]="true"),Ue&&(T["aria-required"]="true"),(0,Ee.Yr)(c)&&(T.ref=dt(fe,c)),new Set([].concat((0,N.Z)(h(Z)),(0,N.Z)(h($)))).forEach(Oe=>{T[Oe]=function(){for(var vt,yt,mt,Ct,ut,xt=arguments.length,ft=new Array(xt),at=0;at{var{prefixCls:t,children:n}=e,r=kt(e,["prefixCls","children"]);const{getPrefixCls:l}=o.useContext(je.E_),a=l("form",t),d=o.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return o.createElement(J.aV,Object.assign({},r),(b,m,u)=>o.createElement(S.Rk.Provider,{value:d},n(b.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),m,{errors:u.errors,warnings:u.warnings})))};function en(){const{form:e}=(0,o.useContext)(S.q3);return e}const ae=Ze;ae.Item=Jt,ae.List=_t,ae.ErrorList=xe,ae.useForm=Re,ae.useFormInstance=en,ae.useWatch=J.qo,ae.Provider=S.RV,ae.create=()=>{};var tn=ae},23870:function(it,ge,i){var N=i(72611);ge.Z=N.Z},10886:function(it,ge,i){i.d(ge,{Z:function(){return Me}});const N=s=>typeof s=="object"&&s!=null&&s.nodeType===1,ke=(s,f)=>(!f||s!=="hidden")&&s!=="visible"&&s!=="clip",A=(s,f)=>{if(s.clientHeight{const O=(g=>{if(!g.ownerDocument||!g.ownerDocument.defaultView)return null;try{return g.ownerDocument.defaultView.frameElement}catch(q){return null}})(G);return!!O&&(O.clientHeightgf||g>s&&q=f&&j>=P?g-s-G:q>f&&jP?q-f+O:0,o=s=>{const f=s.parentElement;return f==null?s.getRootNode().host||null:f},Ae=(s,f)=>{var P,G,O,g;if(typeof document=="undefined")return[];const{scrollMode:q,block:j,inline:Y,boundary:Ne,skipOverflowHiddenElements:st}=f,ct=typeof Ne=="function"?Ne:le=>le!==Ne;if(!N(s))throw new TypeError("Invalid target");const _e=document.scrollingElement||document.documentElement,Pe=[];let M=s;for(;N(M)&&ct(M);){if(M=o(M),M===_e){Pe.push(M);break}M!=null&&M===document.body&&A(M)&&!A(document.documentElement)||M!=null&&A(M,st)&&Pe.push(M)}const pe=(G=(P=window.visualViewport)==null?void 0:P.width)!=null?G:innerWidth,be=(g=(O=window.visualViewport)==null?void 0:O.height)!=null?g:innerHeight,{scrollX:ve,scrollY:ce}=window,{height:re,width:oe,top:ye,right:Ce,bottom:et,left:xe}=s.getBoundingClientRect(),{top:J,right:je,bottom:Be,left:tt}=(le=>{const h=window.getComputedStyle(le);return{top:parseFloat(h.scrollMarginTop)||0,right:parseFloat(h.scrollMarginRight)||0,bottom:parseFloat(h.scrollMarginBottom)||0,left:parseFloat(h.scrollMarginLeft)||0}})(s);let B=j==="start"||j==="nearest"?ye-J:j==="end"?et+Be:ye+re/2-J+Be,X=Y==="center"?xe+oe/2-tt+je:Y==="end"?Ce+je:xe-tt;const Xe=[];for(let le=0;le=0&&xe>=0&&et<=be&&Ce<=pe&&ye>=Ie&&et<=Ke&&xe>=Le&&Ce<=Re)return Xe;const Te=getComputedStyle(h),Ge=parseInt(Te.borderLeftWidth,10),Ze=parseInt(Te.borderTopWidth,10),Ve=parseInt(Te.borderRightWidth,10),Ee=parseInt(Te.borderBottomWidth,10);let Q=0,k=0;const We="offsetWidth"in h?h.offsetWidth-h.clientWidth-Ge-Ve:0,He="offsetHeight"in h?h.offsetHeight-h.clientHeight-Ze-Ee:0,ze="offsetWidth"in h?h.offsetWidth===0?0:Se/h.offsetWidth:0,Ye="offsetHeight"in h?h.offsetHeight===0?0:$e/h.offsetHeight:0;if(_e===h)Q=j==="start"?B:j==="end"?B-be:j==="nearest"?he(ce,ce+be,be,Ze,Ee,ce+B,ce+B+re,re):B-be/2,k=Y==="start"?X:Y==="center"?X-pe/2:Y==="end"?X-pe:he(ve,ve+pe,pe,Ge,Ve,ve+X,ve+X+oe,oe),Q=Math.max(0,Q+ce),k=Math.max(0,k+ve);else{Q=j==="start"?B-Ie-Ze:j==="end"?B-Ke+Ee+He:j==="nearest"?he(Ie,Ke,$e,Ze,Ee+He,B,B+re,re):B-(Ie+$e/2)+He/2,k=Y==="start"?X-Le-Ge:Y==="center"?X-(Le+Se/2)+We/2:Y==="end"?X-Re+Ve+We:he(Le,Re,Se,Ge,Ve+We,X,X+oe,oe);const{scrollLeft:qe,scrollTop:nt}=h;Q=Ye===0?0:Math.max(0,Math.min(nt+Q/Ye,h.scrollHeight-$e/Ye+He)),k=ze===0?0:Math.max(0,Math.min(qe+k/ze,h.scrollWidth-Se/ze+We)),B+=nt-Q,X+=qe-k}Xe.push({el:h,top:Q,left:k})}return Xe},S=s=>s===!1?{block:"end",inline:"nearest"}:(f=>f===Object(f)&&Object.keys(f).length!==0)(s)?s:{block:"start",inline:"nearest"};function Me(s,f){if(!s.isConnected||!(O=>{let g=O;for(;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1})(s))return;const P=(O=>{const g=window.getComputedStyle(O);return{top:parseFloat(g.scrollMarginTop)||0,right:parseFloat(g.scrollMarginRight)||0,bottom:parseFloat(g.scrollMarginBottom)||0,left:parseFloat(g.scrollMarginLeft)||0}})(s);if((O=>typeof O=="object"&&typeof O.behavior=="function")(f))return f.behavior(Ae(s,f));const G=typeof f=="boolean"||f==null?void 0:f.behavior;for(const{el:O,top:g,left:q}of Ae(s,S(f))){const j=g-P.top+P.bottom,Y=q-P.left+P.right;O.scroll({top:j,left:Y,behavior:G})}}}}]); diff --git a/825.684eec4b.async.js b/825.684eec4b.async.js new file mode 100644 index 00000000..fdb99224 --- /dev/null +++ b/825.684eec4b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[825],{9455:function(De,U){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};U.Z=e},43997:function(De,U,e){e.d(U,{A:function(){return t}});var p=e(33346),i=e(67190),P=e(50959),T=e(1704),te=e(58922),L=e(73273),K=e(32682),re=e(25671),ve=e(65589),me=e(21804),Q=e(56197),X=e(75200),J=e(84875),oe=e.n(J),fe=e(54970),W=e(21510),w=e(26488),A=function(h){var Z;return(0,L.Z)({},h.componentCls,{"&-title":{marginBlockEnd:h.marginXL,fontWeight:"bold"},"&-container":(0,L.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(h.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(Z={display:"block",width:"100%"},(0,L.Z)(Z,"".concat(h.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,L.Z)(Z,"".concat(h.componentCls,"-container"),{paddingInlineStart:16}),(0,L.Z)(Z,"".concat(h.antCls,"-space-item,").concat(h.antCls,"-form-item"),{width:"100%"}),(0,L.Z)(Z,"".concat(h.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),Z)})};function R(m){return(0,w.Xj)("ProFormGroup",function(h){var Z=(0,p.Z)((0,p.Z)({},h),{},{componentCls:".".concat(m)});return[A(Z)]})}var u=e(11527),k=P.forwardRef(function(m,h){var Z=P.useContext(fe.Z),s=Z.groupProps,d=(0,p.Z)((0,p.Z)({},s),m),se=d.children,_=d.collapsible,b=d.defaultCollapsed,Le=d.style,We=d.labelLayout,Ze=d.title,ee=Ze===void 0?m.label:Ze,ye=d.tooltip,ae=d.align,Ce=ae===void 0?"start":ae,ie=d.direction,l=d.size,v=l===void 0?32:l,n=d.titleStyle,x=d.titleRender,c=d.spaceProps,z=d.extra,D=d.autoFocus,ne=(0,ve.Z)(function(){return b||!1},{value:m.collapsed,onChange:m.onCollapse}),Se=(0,K.Z)(ne,2),o=Se[0],y=Se[1],E=(0,P.useContext)(Q.ZP.ConfigContext),V=E.getPrefixCls,C=(0,W.zx)(m),$=C.ColWrapper,le=C.RowWrapper,S=V("pro-form-group"),Fe=R(S),Ae=Fe.wrapSSR,B=Fe.hashId,Pe=_&&(0,u.jsx)(re.Z,{style:{marginInlineEnd:8},rotate:o?void 0:90}),ue=(0,u.jsx)(me.G,{label:Pe?(0,u.jsxs)("div",{children:[Pe,ee]}):ee,tooltip:ye}),O=(0,P.useCallback)(function(H){var Y=H.children;return(0,u.jsx)(X.Z,(0,p.Z)((0,p.Z)({},c),{},{className:oe()("".concat(S,"-container ").concat(B),c==null?void 0:c.className),size:v,align:Ce,direction:ie,style:(0,p.Z)({rowGap:0},c==null?void 0:c.style),children:Y}))},[Ce,S,ie,B,v,c]),N=x?x(ue,m):ue,$e=(0,P.useMemo)(function(){var H=[],Y=P.Children.toArray(se).map(function(M,ce){var G;return P.isValidElement(M)&&M!==null&&M!==void 0&&(G=M.props)!==null&&G!==void 0&&G.hidden?(H.push(M),null):ce===0&&P.isValidElement(M)&&D?P.cloneElement(M,(0,p.Z)((0,p.Z)({},M.props),{},{autoFocus:D})):M});return[(0,u.jsx)(le,{Wrapper:O,children:Y},"children"),H.length>0?(0,u.jsx)("div",{style:{display:"none"},children:H}):null]},[se,le,O,D]),he=(0,K.Z)($e,2),j=he[0],Re=he[1];return Ae((0,u.jsx)($,{children:(0,u.jsxs)("div",{className:oe()(S,B,(0,L.Z)({},"".concat(S,"-twoLine"),We==="twoLine")),style:Le,ref:h,children:[Re,(ee||ye||z)&&(0,u.jsx)("div",{className:"".concat(S,"-title ").concat(B).trim(),style:n,onClick:function(){y(!o)},children:z?(0,u.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[N,(0,u.jsx)("span",{onClick:function(Y){return Y.stopPropagation()},children:z})]}):N}),(0,u.jsx)("div",{style:{display:_&&o?"none":void 0},children:j})]})}))});k.displayName="ProForm-Group";var q=k,pe=e(75693);function t(m){return(0,u.jsx)(T.I,(0,p.Z)({layout:"vertical",submitter:{render:function(Z,s){return s.reverse()}},contentRender:function(Z,s){return(0,u.jsxs)(u.Fragment,{children:[Z,s]})}},m))}t.Group=q,t.useForm=i.Z.useForm,t.Item=pe.Z,t.useWatch=i.Z.useWatch,t.ErrorList=i.Z.ErrorList,t.Provider=i.Z.Provider,t.useFormInstance=i.Z.useFormInstance,t.EditOrReadOnlyContext=te.A},76791:function(De,U,e){e.d(U,{U9:function(){return ae},L0:function(){return ie},bg:function(){return ee}});var p=e(73273),i=e(33346),P=e(3224),T=e(47801),te=e(1788),L=e(32682),K=e(10570),re=e(17122),ve=e(94204),me=e(11175),Q=e(13165),X=e(23870),J=e(82099),oe=e(56197),fe=e(63945),W=e(27575),w=e(47100),A=e(75200),R=e(67190),u=e(84875),k=e.n(u),q=e(13763),pe=e(65589),t=e(50959),m=e(71770),h=e(12868),Z=e(1704),s=e(11527),d=["onFinish","step","formRef","title","stepProps"];function se(l){var v=(0,t.useRef)(),n=(0,t.useContext)(ee),x=(0,t.useContext)(ae),c=(0,i.Z)((0,i.Z)({},l),x),z=c.onFinish,D=c.step,ne=c.formRef,Se=c.title,o=c.stepProps,y=(0,K.Z)(c,d);return(0,h.ET)(!y.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,t.useImperativeHandle)(ne,function(){return v.current},[ne==null?void 0:ne.current]),(0,t.useEffect)(function(){if(c.name||c.step){var E=(c.name||c.step).toString();return n==null||n.regForm(E,c),function(){n==null||n.unRegForm(E)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),(0,s.jsx)(Z.I,(0,i.Z)({formRef:v,onFinish:function(){var E=(0,T.Z)((0,P.Z)().mark(function V(C){var $;return(0,P.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y.name&&(n==null||n.onFormFinish(y.name,C)),!z){S.next=9;break}return n==null||n.setLoading(!0),S.next=5,z==null?void 0:z(C);case 5:return $=S.sent,$&&(n==null||n.next()),n==null||n.setLoading(!1),S.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return S.stop()}},V)}));return function(V){return E.apply(this,arguments)}}(),onInit:function(V,C){var $;v.current=C,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),y==null||($=y.onInit)===null||$===void 0||$.call(y,V,C)},layout:"vertical"},(0,m.Z)(y,["layoutType","columns"])))}var _=se,b=e(26488),Le=function(v){return(0,p.Z)({},v.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,p.Z)({maxWidth:"1160px",margin:"auto"},"".concat(v.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function We(l){return(0,b.Xj)("StepsForm",function(v){var n=(0,i.Z)((0,i.Z)({},v),{},{componentCls:".".concat(l)});return[Le(n)]})}var Ze=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],ee=t.createContext(void 0),ye={horizontal:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:n})}),(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:x})})]})},vertical:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(X.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,s.jsx)(J.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:t.cloneElement(n,{style:{height:"100%"}})}),(0,s.jsx)(J.Z,{children:(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:x})})]})}},ae=t.createContext(null);function Ce(l){var v=(0,t.useContext)(oe.ZP.ConfigContext),n=v.getPrefixCls,x=n("pro-steps-form"),c=We(x),z=c.wrapSSR,D=c.hashId,ne=l.current,Se=l.onCurrentChange,o=l.submitter,y=l.stepsFormRender,E=l.stepsRender,V=l.stepFormRender,C=l.stepsProps,$=l.onFinish,le=l.formProps,S=l.containerStyle,Fe=l.formRef,Ae=l.formMapRef,B=l.layoutRender,Pe=(0,K.Z)(l,Ze),ue=(0,t.useRef)(new Map),O=(0,t.useRef)(new Map),N=(0,t.useRef)([]),$e=(0,t.useState)([]),he=(0,L.Z)($e,2),j=he[0],Re=he[1],H=(0,t.useState)(!1),Y=(0,L.Z)(H,2),M=Y[0],ce=Y[1],G=(0,re.YB)(),Je=(0,pe.Z)(0,{value:l.current,onChange:l.onCurrentChange}),be=(0,L.Z)(Je,2),F=be[0],je=be[1],Ee=(0,t.useMemo)(function(){return ye[(C==null?void 0:C.direction)||"horizontal"]},[C==null?void 0:C.direction]),Ne=(0,t.useMemo)(function(){return F===j.length-1},[j.length,F]),Ye=(0,t.useCallback)(function(r,a){O.current.has(r)||Re(function(g){return[].concat((0,te.Z)(g),[r])}),O.current.set(r,a)},[]),Ue=(0,t.useCallback)(function(r){Re(function(a){return a.filter(function(g){return g!==r})}),O.current.delete(r),ue.current.delete(r)},[]);(0,t.useImperativeHandle)(Ae,function(){return N.current},[N.current]),(0,t.useImperativeHandle)(Fe,function(){var r;return(r=N.current[F||0])===null||r===void 0?void 0:r.current},[F,N.current]);var Ke=(0,t.useCallback)(function(){var r=(0,T.Z)((0,P.Z)().mark(function a(g,f){var xe,Ie;return(0,P.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(ue.current.set(g,f),!(!Ne||!$)){I.next=3;break}return I.abrupt("return");case 3:return ce(!0),xe=ve.T.apply(void 0,[{}].concat((0,te.Z)(Array.from(ue.current.values())))),I.prev=5,I.next=8,$(xe);case 8:Ie=I.sent,Ie&&(je(0),N.current.forEach(function(ke){var Ge;return(Ge=ke.current)===null||Ge===void 0?void 0:Ge.resetFields()})),I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),console.log(I.t0);case 15:return I.prev=15,ce(!1),I.finish(15);case 18:case"end":return I.stop()}},a,null,[[5,12,15,18]])}));return function(a,g){return r.apply(this,arguments)}}(),[Ne,$,ce,je]),Te=(0,t.useMemo)(function(){var r=(0,me.n)(fe.Z,"4.24.0")>-1,a=r?{items:j.map(function(g){var f=O.current.get(g);return(0,i.Z)({key:g,title:f==null?void 0:f.title},f==null?void 0:f.stepProps)})}:{};return(0,s.jsx)("div",{className:"".concat(x,"-steps-container ").concat(D).trim(),style:{maxWidth:Math.min(j.length*320,1160)},children:(0,s.jsx)(W.Z,(0,i.Z)((0,i.Z)((0,i.Z)({},C),a),{},{current:F,onChange:void 0,children:!r&&j.map(function(g){var f=O.current.get(g);return(0,s.jsx)(W.Z.Step,(0,i.Z)({title:f==null?void 0:f.title},f==null?void 0:f.stepProps),g)})}))})},[j,D,x,F,C]),de=(0,Q.J)(function(){var r,a=N.current[F];(r=a.current)===null||r===void 0||r.submit()}),Me=(0,Q.J)(function(){F<1||je(F-1)}),ze=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),de()},children:G.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[G,M,de,o]),Be=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({},o==null?void 0:o.resetButtonProps),{},{onClick:function(){var a;Me(),o==null||(a=o.onReset)===null||a===void 0||a.call(o)},children:G.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[G,Me,o]),Oe=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),de()},children:G.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[G,M,de,o]),Qe=(0,Q.J)(function(){F>j.length-2||je(F+1)}),ge=(0,t.useMemo)(function(){var r=[],a=F||0;if(a<1?j.length===1?r.push(Oe):r.push(ze):a+1===j.length?r.push(Be,Oe):r.push(Be,ze),r=r.filter(t.isValidElement),o&&o.render){var g,f={form:(g=N.current[F])===null||g===void 0?void 0:g.current,onSubmit:de,step:F,onPre:Me};return o.render(f,r)}return o&&(o==null?void 0:o.render)===!1?null:r},[j.length,ze,de,Be,Me,F,Oe,o]),Ve=(0,t.useMemo)(function(){return(0,q.Z)(l.children).map(function(r,a){var g=r.props,f=g.name||"".concat(a),xe=F===a,Ie=xe?{contentRender:V,submitter:!1}:{};return(0,s.jsx)("div",{className:k()("".concat(x,"-step"),D,(0,p.Z)({},"".concat(x,"-step-active"),xe)),children:(0,s.jsx)(ae.Provider,{value:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},Ie),le),g),{},{name:f,step:a}),children:r})},f)})},[le,D,x,l.children,F,V]),He=(0,t.useMemo)(function(){return E?E(j.map(function(r){var a;return{key:r,title:(a=O.current.get(r))===null||a===void 0?void 0:a.title}}),Te):Te},[j,Te,E]),Xe=(0,t.useMemo)(function(){return(0,s.jsxs)("div",{className:"".concat(x,"-container ").concat(D).trim(),style:S,children:[Ve,y?null:(0,s.jsx)(A.Z,{children:ge})]})},[S,Ve,D,x,y,ge]),we=(0,t.useMemo)(function(){var r={stepsDom:He,formDom:Xe};return y?y(B?B(r):Ee(r),ge):B?B(r):Ee(r)},[He,Xe,Ee,y,ge,B]);return z((0,s.jsx)("div",{className:k()(x,D),children:(0,s.jsx)(R.Z.Provider,(0,i.Z)((0,i.Z)({},Pe),{},{children:(0,s.jsx)(ee.Provider,{value:{loading:M,setLoading:ce,regForm:Ye,keyArray:j,next:Qe,formArrayRef:N,formMapRef:O,lastStep:Ne,unRegForm:Ue,onFormFinish:Ke},children:we})}))}))}function ie(l){return(0,s.jsx)(re._Y,{needDeps:!0,children:(0,s.jsx)(Ce,(0,i.Z)({},l))})}ie.StepForm=_,ie.useForm=R.Z.useForm},21804:function(De,U,e){e.d(U,{G:function(){return w}});var p=e(33346),i=e(73273),P=e(38126),T=e(50959),te=e(9455),L=e(38782),K=function(R,u){return T.createElement(L.Z,(0,P.Z)({},R,{ref:u,icon:te.Z}))},re=T.forwardRef(K),ve=e(56197),me=e(32618),Q=e(84875),X=e.n(Q),J=e(26488),oe=function(R){return(0,i.Z)({},R.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:R.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:R.colorTextSecondary,fontWeight:"normal",fontSize:R.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function fe(A){return(0,J.Xj)("LabelIconTip",function(R){var u=(0,p.Z)((0,p.Z)({},R),{},{componentCls:".".concat(A)});return[oe(u)]})}var W=e(11527),w=T.memo(function(A){var R=A.label,u=A.tooltip,k=A.ellipsis,q=A.subTitle,pe=(0,T.useContext)(ve.ZP.ConfigContext),t=pe.getPrefixCls,m=t("pro-core-label-tip"),h=fe(m),Z=h.wrapSSR,s=h.hashId;if(!u&&!q)return(0,W.jsx)(W.Fragment,{children:R});var d=typeof u=="string"||T.isValidElement(u)?{title:u}:u,se=(d==null?void 0:d.icon)||(0,W.jsx)(re,{});return Z((0,W.jsxs)("div",{className:X()(m,s),onMouseDown:function(b){return b.stopPropagation()},onMouseLeave:function(b){return b.stopPropagation()},onMouseMove:function(b){return b.stopPropagation()},children:[(0,W.jsx)("div",{className:X()("".concat(m,"-title"),s,(0,i.Z)({},"".concat(m,"-title-ellipsis"),k)),children:R}),q&&(0,W.jsx)("div",{className:"".concat(m,"-subtitle ").concat(s).trim(),children:q}),u&&(0,W.jsx)(me.Z,(0,p.Z)((0,p.Z)({},d),{},{children:(0,W.jsx)("span",{className:"".concat(m,"-icon ").concat(s).trim(),children:se})}))]}))})}}]); diff --git a/8325.6ff6247f.async.js b/8325.6ff6247f.async.js new file mode 100644 index 00000000..a03a4bbe --- /dev/null +++ b/8325.6ff6247f.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8325],{50304:function(ye,Q,c){c.d(Q,{Z:function(){return l}});var i=c(50959),U=c(84875),I=c.n(U),W=c(87017),P=c(31594),J=c(17436),Y=c(25670),G=c(66146),R=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:o,className:r,hoverable:a=!0}=e,n=R(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=i.useContext(P.E_),u=f("card",o),v=I()(`${u}-grid`,r,{[`${u}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},n,{className:v}))},s=c(60076),$=c(6301),q=c(81501),H=c(90467);const M=e=>{const{antCls:o,componentCls:r,headerHeight:a,cardPaddingBase:n,tabsMarginBottom:f}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,s.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`},(0,$.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$.vS),{[` + > ${r}-typography, + > ${r}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},F=e=>{const{cardPaddingBase:o,colorBorderSecondary:r,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` + ${(0,s.bf)(n)} 0 0 0 ${r}, + 0 ${(0,s.bf)(n)} 0 0 ${r}, + ${(0,s.bf)(n)} ${(0,s.bf)(n)} 0 0 ${r}, + ${(0,s.bf)(n)} 0 0 0 ${r} inset, + 0 ${(0,s.bf)(n)} 0 0 ${r} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},k=e=>{const{componentCls:o,iconCls:r,actionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:f,actionsBg:u}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:u,borderTop:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`,display:"flex",borderRadius:`0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,$.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,s.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:(0,s.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`}}})},fe=e=>Object.assign(Object.assign({margin:`${(0,s.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,$.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$.vS),"&-description":{color:e.colorTextDescription}}),_=e=>{const{componentCls:o,cardPaddingBase:r,colorFillAlter:a}=e;return{[`${o}-head`]:{padding:`0 ${(0,s.bf)(r)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,s.bf)(e.padding)} ${(0,s.bf)(r)}`}}},ee=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},te=e=>{const{antCls:o,componentCls:r,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:f,boxShadowTertiary:u,cardPaddingBase:v,extraColor:m}=e;return{[r]:Object.assign(Object.assign({},(0,$.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${r}-bordered)`]:{boxShadow:u},[`${r}-head`]:M(e),[`${r}-extra`]:{marginInlineStart:"auto",color:m,fontWeight:"normal",fontSize:e.fontSize},[`${r}-body`]:Object.assign({padding:v,borderRadius:` 0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,$.dF)()),[`${r}-grid`]:F(e),[`${r}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`}},[`${r}-actions`]:k(e),[`${r}-meta`]:fe(e)}),[`${r}-bordered`]:{border:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${r}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${r}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${r}-contain-grid`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0 `,[`${r}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${r}-loading) ${r}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${r}-contain-tabs`]:{[`> ${r}-head`]:{minHeight:0,[`${r}-head-title, ${r}-extra`]:{paddingTop:n}}},[`${r}-type-inner`]:_(e),[`${r}-loading`]:ee(e),[`${r}-rtl`]:{direction:"rtl"}}},re=e=>{const{componentCls:o,cardPaddingSM:r,headerHeightSM:a,headerFontSizeSM:n}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:a,padding:`0 ${(0,s.bf)(r)}`,fontSize:n,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:r}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ae=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var E=(0,q.I$)("Card",e=>{const o=(0,H.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[te(o),re(o)]},ae),A=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,actions:r=[]}=e;return i.createElement("ul",{className:`${o}-actions`},r.map((a,n)=>{const f=`action-${n}`;return i.createElement("li",{style:{width:`${100/r.length}%`},key:f},i.createElement("span",null,a))}))};var Z=i.forwardRef((e,o)=>{const{prefixCls:r,className:a,rootClassName:n,style:f,extra:u,headStyle:v={},bodyStyle:m={},title:p,loading:x,bordered:O=!0,size:h,type:B,cover:w,actions:N,tabList:z,children:T,activeTabKey:K,defaultActiveTabKey:y,tabBarExtraContent:ie,hoverable:le,tabProps:se={}}=e,X=A(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ce,direction:de,card:C}=i.useContext(P.E_),ge=j=>{var S;(S=e.onTabChange)===null||S===void 0||S.call(e,j)},V=i.useMemo(()=>{let j=!1;return i.Children.forEach(T,S=>{S&&S.type&&S.type===D&&(j=!0)}),j},[T]),b=ce("card",r),[$e,ve]=E(b),Ce=i.createElement(Y.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),me=K!==void 0,Se=Object.assign(Object.assign({},se),{[me?"activeKey":"defaultActiveKey"]:me?K:y,tabBarExtraContent:ie});let pe;const L=(0,J.Z)(h),xe=!L||L==="default"?"large":L,he=z?i.createElement(G.Z,Object.assign({size:xe},Se,{className:`${b}-head-tabs`,onChange:ge,items:z.map(j=>{var{tab:S}=j,Be=A(j,["tab"]);return Object.assign({label:S},Be)})})):null;(p||u||he)&&(pe=i.createElement("div",{className:`${b}-head`,style:v},i.createElement("div",{className:`${b}-head-wrapper`},p&&i.createElement("div",{className:`${b}-head-title`},p),u&&i.createElement("div",{className:`${b}-extra`},u)),he));const Oe=w?i.createElement("div",{className:`${b}-cover`},w):null,Te=i.createElement("div",{className:`${b}-body`,style:m},x?Ce:T),ze=N&&N.length?i.createElement(oe,{prefixCls:b,actions:N}):null,je=(0,W.Z)(X,["onTabChange"]),Pe=I()(b,C==null?void 0:C.className,{[`${b}-loading`]:x,[`${b}-bordered`]:O,[`${b}-hoverable`]:le,[`${b}-contain-grid`]:V,[`${b}-contain-tabs`]:z&&z.length,[`${b}-${L}`]:L,[`${b}-type-${B}`]:!!B,[`${b}-rtl`]:de==="rtl"},a,n,ve),Ee=Object.assign(Object.assign({},C==null?void 0:C.style),f);return $e(i.createElement("div",Object.assign({ref:o},je,{className:Pe,style:Ee}),pe,Oe,Te,ze))}),ne=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:r,avatar:a,title:n,description:f}=e,u=ne(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:v}=i.useContext(P.E_),m=v("card",o),p=I()(`${m}-meta`,r),x=a?i.createElement("div",{className:`${m}-meta-avatar`},a):null,O=n?i.createElement("div",{className:`${m}-meta-title`},n):null,h=f?i.createElement("div",{className:`${m}-meta-description`},f):null,B=O||h?i.createElement("div",{className:`${m}-meta-detail`},O,h):null;return i.createElement("div",Object.assign({},u,{className:p}),x,B)};const g=Z;g.Grid=D,g.Meta=d;var l=g},28566:function(ye,Q,c){c.d(Q,{Z:function(){return ne}});var i=c(50959),U=c(22410),I=c(84875),W=c.n(I),P=c(74364),J=c(7551),Y=c(42672),G=c(31594),R=c(60076),be=c(99978),D=c(6301),s=c(90467),$=c(81501);const q=t=>{const{paddingXXS:d,lineWidth:g,tagPaddingHorizontal:l,componentCls:e,calc:o}=t,r=o(l).sub(g).equal(),a=o(d).sub(g).equal();return{[e]:Object.assign(Object.assign({},(0,D.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:r,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${e}-close-icon`]:{marginInlineStart:a,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${e}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${e}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:r}}),[`${e}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},H=t=>{const{lineWidth:d,fontSizeIcon:g,calc:l}=t,e=t.fontSizeSM;return(0,s.TS)(t,{tagFontSize:e,tagLineHeight:(0,R.bf)(l(t.lineHeightSM).mul(e).equal()),tagIconSize:l(g).sub(l(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},M=t=>({defaultBg:new be.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var F=(0,$.I$)("Tag",t=>{const d=H(t);return q(d)},M),k=function(t,d){var g={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&d.indexOf(l)<0&&(g[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,l=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,style:l,className:e,checked:o,onChange:r,onClick:a}=t,n=k(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:u}=i.useContext(G.E_),v=h=>{r==null||r(!o),a==null||a(h)},m=f("tag",g),[p,x]=F(m),O=W()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:o},u==null?void 0:u.className,e,x);return p(i.createElement("span",Object.assign({},n,{ref:d,style:Object.assign(Object.assign({},l),u==null?void 0:u.style),className:O,onClick:v})))}),ee=c(78163);const te=t=>(0,ee.Z)(t,(d,g)=>{let{textColor:l,lightBorderColor:e,lightColor:o,darkColor:r}=g;return{[`${t.componentCls}-${d}`]:{color:l,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:r,borderColor:r},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,$.bk)(["Tag","preset"],t=>{const d=H(t);return te(d)},M);function ae(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const E=(t,d,g)=>{const l=ae(g);return{[`${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${l}Bg`],borderColor:t[`color${l}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var A=(0,$.bk)(["Tag","status"],t=>{const d=H(t);return[E(d,"success","Success"),E(d,"processing","Info"),E(d,"error","Error"),E(d,"warning","Warning")]},M),oe=function(t,d){var g={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&d.indexOf(l)<0&&(g[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,l=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,className:l,rootClassName:e,style:o,children:r,icon:a,color:n,onClose:f,closeIcon:u,closable:v,bordered:m=!0}=t,p=oe(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:x,direction:O,tag:h}=i.useContext(G.E_),[B,w]=i.useState(!0);i.useEffect(()=>{"visible"in p&&w(p.visible)},[p.visible]);const N=(0,P.o2)(n),z=(0,P.yT)(n),T=N||z,K=Object.assign(Object.assign({backgroundColor:n&&!T?n:void 0},h==null?void 0:h.style),o),y=x("tag",g),[ie,le]=F(y),se=W()(y,h==null?void 0:h.className,{[`${y}-${n}`]:T,[`${y}-has-color`]:n&&!T,[`${y}-hidden`]:!B,[`${y}-rtl`]:O==="rtl",[`${y}-borderless`]:!m},l,e,le),X=b=>{b.stopPropagation(),f==null||f(b),!b.defaultPrevented&&w(!1)},[,ce]=(0,J.Z)(v,u,b=>b===null?i.createElement(U.Z,{className:`${y}-close-icon`,onClick:X}):i.createElement("span",{className:`${y}-close-icon`,onClick:X},b),null,!1),de=typeof p.onClick=="function"||r&&r.type==="a",C=a||null,ge=C?i.createElement(i.Fragment,null,C,r&&i.createElement("span",null,r)):r,V=i.createElement("span",Object.assign({},p,{ref:d,className:se,style:K}),ge,ce,N&&i.createElement(re,{key:"preset",prefixCls:y}),z&&i.createElement(A,{key:"status",prefixCls:y}));return ie(de?i.createElement(Y.Z,{component:"Tag"},V):V)},Z=i.forwardRef(ue);Z.CheckableTag=_;var ne=Z}}]); diff --git a/9208.35924d1d.chunk.css b/9208.35924d1d.chunk.css deleted file mode 100644 index bca4e16b..00000000 --- a/9208.35924d1d.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ant-picker-status-error.ant-picker,.ant-picker-status-error.ant-picker:not([disabled]):hover{background-color:#fff;border-color:#ff4d4f;border-color:var(--ant-error-color)}.ant-picker-status-error.ant-picker-focused,.ant-picker-status-error.ant-picker:focus{border-color:#ff7875;border-color:var(--ant-error-color-hover);box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px var(--ant-error-color-outline);border-right-width:1px;outline:0}.ant-picker-status-warning.ant-picker,.ant-picker-status-warning.ant-picker:not([disabled]):hover{background-color:#fff;border-color:#faad14;border-color:var(--ant-warning-color)}.ant-picker-status-warning.ant-picker-focused,.ant-picker-status-warning.ant-picker:focus{border-color:#ffc53d;border-color:var(--ant-warning-color-hover);box-shadow:0 0 0 2px rgba(250,173,20,.2);box-shadow:0 0 0 2px var(--ant-warning-color-outline);border-right-width:1px;outline:0}.ant-picker{box-sizing:border-box;margin:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";padding:4px 11px;position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:2px;transition:border .3s,box-shadow .3s}.ant-picker-focused,.ant-picker:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-picker-focused{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-picker.ant-picker-disabled{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-picker.ant-picker-disabled .ant-picker-suffix{color:rgba(0,0,0,.25)}.ant-picker.ant-picker-borderless{background-color:transparent!important;border-color:transparent!important;box-shadow:none!important}.ant-picker-input{position:relative;display:inline-flex;align-items:center;width:100%}.ant-picker-input>input{position:relative;display:inline-block;width:100%;min-width:0;color:rgba(0,0,0,.85);font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border-radius:2px;transition:all .3s;flex:auto;min-width:1px;height:auto;padding:0;background:transparent;border:0}.ant-picker-input>input::-webkit-input-placeholder{color:#bfbfbf;-webkit-user-select:none;user-select:none}.ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-picker-input>input::-ms-input-placeholder{color:#bfbfbf;-ms-user-select:none;user-select:none}.ant-picker-input>input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-picker-input>input:-ms-input-placeholder{text-overflow:ellipsis}.ant-picker-input>input:placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:hover{border-color:#40a9ff;border-color:var(--ant-primary-5);border-right-width:1px}.ant-picker-input>input-focused,.ant-picker-input>input:focus{border-color:#40a9ff;border-color:var(--ant-primary-color-hover);box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px var(--ant-primary-color-outline);border-right-width:1px;outline:0}.ant-picker-input>input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input-disabled:hover{border-color:#d9d9d9;border-right-width:1px}.ant-picker-input>input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px}.ant-picker-input>input-borderless,.ant-picker-input>input-borderless-disabled,.ant-picker-input>input-borderless-focused,.ant-picker-input>input-borderless:focus,.ant-picker-input>input-borderless:hover,.ant-picker-input>input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-picker-input>input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.ant-picker-input>input-sm{padding:0 7px}.ant-picker-input>input:focus{box-shadow:none}.ant-picker-input>input[disabled]{background:transparent}.ant-picker-input:hover .ant-picker-clear{opacity:1}.ant-picker-input-placeholder>input{color:#bfbfbf}.ant-picker-large{padding:6.5px 11px}.ant-picker-large .ant-picker-input>input{font-size:16px}.ant-picker-small{padding:0 7px}.ant-picker-suffix{display:flex;flex:none;align-self:center;margin-left:4px;color:rgba(0,0,0,.25);line-height:1;pointer-events:none}.ant-picker-suffix>*{vertical-align:top}.ant-picker-suffix>:not(:last-child){margin-right:8px}.ant-picker-clear{position:absolute;top:50%;right:0;color:rgba(0,0,0,.25);line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .3s,color .3s}.ant-picker-clear>*{vertical-align:top}.ant-picker-clear:hover{color:rgba(0,0,0,.45)}.ant-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:rgba(0,0,0,.25);font-size:16px;vertical-align:top;cursor:default}.ant-picker-focused .ant-picker-separator{color:rgba(0,0,0,.45)}.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator{cursor:not-allowed}.ant-picker-range{position:relative;display:inline-flex}.ant-picker-range .ant-picker-clear{right:11px}.ant-picker-range:hover .ant-picker-clear{opacity:1}.ant-picker-range .ant-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#1890ff;background:var(--ant-primary-color);opacity:0;transition:all .3s ease-out;pointer-events:none}.ant-picker-range.ant-picker-focused .ant-picker-active-bar{opacity:1}.ant-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.ant-picker-range.ant-picker-small .ant-picker-clear{right:7px}.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-left:7px}.ant-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050}.ant-picker-dropdown-hidden{display:none}.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow{top:2.58561808px;display:block;transform:rotate(-135deg) translateY(1px)}.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow{bottom:2.58561808px;display:block;transform:rotate(45deg)}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-picker-dropdown-range{padding:7.54247233px 0}.ant-picker-dropdown-range-hidden{display:none}.ant-picker-dropdown .ant-picker-panel>.ant-picker-time-panel{padding-top:4px}.ant-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.ant-picker-ranges>li{display:inline-block}.ant-picker-ranges .ant-picker-preset>.ant-tag-blue{color:#1890ff;color:var(--ant-primary-color);background:#e6f7ff;background:var(--ant-primary-1);border-color:#91d5ff;border-color:var(--ant-primary-3);cursor:pointer}.ant-picker-ranges .ant-picker-ok{float:right;margin-left:8px}.ant-picker-range-wrapper{display:flex}.ant-picker-range-arrow{position:absolute;z-index:1;display:none;width:11.3137085px;height:11.3137085px;margin-left:16.5px;background:linear-gradient(135deg,transparent 40%,#fff 0);box-shadow:2px 2px 6px -2px rgba(0,0,0,.1);transition:left .3s ease-out;border-radius:0 0 2px;pointer-events:none}.ant-picker-range-arrow:before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:#fff;background-repeat:no-repeat;background-position:-10px -10px;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z");clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.ant-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);transition:margin .3s}.ant-picker-panel-container .ant-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.ant-picker-panel-container .ant-picker-panel{vertical-align:top;background:transparent;border-width:0 0 1px;border-radius:0}.ant-picker-panel-container .ant-picker-panel .ant-picker-content,.ant-picker-panel-container .ant-picker-panel table{text-align:center}.ant-picker-panel-container .ant-picker-panel-focused{border-color:rgba(0,0,0,.06)}.ant-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:2px;outline:none}.ant-picker-panel-focused{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-picker-date-panel,.ant-picker-decade-panel,.ant-picker-month-panel,.ant-picker-quarter-panel,.ant-picker-time-panel,.ant-picker-week-panel,.ant-picker-year-panel{display:flex;flex-direction:column;width:280px}.ant-picker-header{display:flex;padding:0 8px;color:rgba(0,0,0,.85);border-bottom:1px solid rgba(0,0,0,.06)}.ant-picker-header>*{flex:none}.ant-picker-header button{padding:0;color:rgba(0,0,0,.25);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color .3s}.ant-picker-header>button{min-width:1.6em;font-size:14px}.ant-picker-header>button:hover{color:rgba(0,0,0,.85)}.ant-picker-header-view{flex:auto;font-weight:500;line-height:40px}.ant-picker-header-view button{color:inherit;font-weight:inherit}.ant-picker-header-view button:not(:first-child){margin-left:8px}.ant-picker-header-view button:hover{color:#1890ff;color:var(--ant-primary-color)}.ant-picker-next-icon,.ant-picker-prev-icon,.ant-picker-super-next-icon,.ant-picker-super-prev-icon{position:relative;display:inline-block;width:7px;height:7px}.ant-picker-next-icon:before,.ant-picker-prev-icon:before,.ant-picker-super-next-icon:before,.ant-picker-super-prev-icon:before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-super-next-icon:after,.ant-picker-super-prev-icon:after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-prev-icon,.ant-picker-super-prev-icon{transform:rotate(-45deg)}.ant-picker-next-icon,.ant-picker-super-next-icon{transform:rotate(135deg)}.ant-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.ant-picker-content td,.ant-picker-content th{position:relative;min-width:24px;font-weight:400}.ant-picker-content th{height:30px;color:rgba(0,0,0,.85);line-height:30px}.ant-picker-cell{padding:3px 0;color:rgba(0,0,0,.25);cursor:pointer}.ant-picker-cell-in-view{color:rgba(0,0,0,.85)}.ant-picker-cell:before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#f5f5f5}.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;content:""}.ant-picker-cell-in-view.ant-picker-cell-in-range{position:relative}.ant-picker-cell-in-view.ant-picker-cell-in-range:before{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{color:#fff;background:#1890ff;background:var(--ant-primary-color)}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-cell-in-view.ant-picker-cell-range-start:before{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed #7ec1ff;border-top:1px dashed var(--ant-primary-color-deprecated-l-20);border-bottom:1px dashed #7ec1ff;border-bottom:1px dashed var(--ant-primary-color-deprecated-l-20);transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell-range-hover-end:after,.ant-picker-cell-range-hover-start:after,.ant-picker-cell-range-hover:after{right:0;left:2px}.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before,.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before{background:#cbe6ff;background:var(--ant-primary-color-deprecated-l-35)}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after,.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{position:absolute;top:0;bottom:0;z-index:-1;background:#cbe6ff;background:var(--ant-primary-color-deprecated-l-35);transition:all .3s;content:""}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:50%}.ant-picker-cell-range-hover.ant-picker-cell-range-end:after{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child:after{left:6px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child:after{right:6px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-picker-cell-disabled{color:rgba(0,0,0,.25);pointer-events:none}.ant-picker-cell-disabled .ant-picker-cell-inner{background:transparent}.ant-picker-cell-disabled:before{background:rgba(0,0,0,.04)}.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:rgba(0,0,0,.25)}.ant-picker-decade-panel .ant-picker-content,.ant-picker-month-panel .ant-picker-content,.ant-picker-quarter-panel .ant-picker-content,.ant-picker-year-panel .ant-picker-content{height:264px}.ant-picker-decade-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{padding:0 8px}.ant-picker-quarter-panel .ant-picker-content{height:56px}.ant-picker-footer{width:-webkit-min-content;width:-moz-min-content;width:min-content;min-width:100%;line-height:38px;text-align:center;border-bottom:1px solid transparent}.ant-picker-panel .ant-picker-footer{border-top:1px solid rgba(0,0,0,.06)}.ant-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.ant-picker-footer-extra:not(:last-child){border-bottom:1px solid rgba(0,0,0,.06)}.ant-picker-now{text-align:left}.ant-picker-today-btn{color:#1890ff;color:var(--ant-primary-color)}.ant-picker-today-btn:hover{color:#40a9ff;color:var(--ant-primary-color-hover)}.ant-picker-today-btn:active{color:#096dd9;color:var(--ant-primary-color-active)}.ant-picker-today-btn.ant-picker-today-btn-disabled{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-picker-decade-panel .ant-picker-cell-inner{padding:0 4px}.ant-picker-decade-panel .ant-picker-cell:before{display:none}.ant-picker-month-panel .ant-picker-body,.ant-picker-quarter-panel .ant-picker-body,.ant-picker-year-panel .ant-picker-body{padding:0 8px}.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{width:60px}.ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-year-panel .ant-picker-cell-range-hover-start:after{left:14px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start:after{right:14px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:0 2px 2px 0}.ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-year-panel .ant-picker-cell-range-hover-end:after{right:14px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end:after{left:14px;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-week-panel .ant-picker-body{padding:8px 12px}.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner{background:transparent!important}.ant-picker-week-panel-row td{transition:background .3s}.ant-picker-week-panel-row:hover td{background:#f5f5f5}.ant-picker-week-panel-row-selected:hover td,.ant-picker-week-panel-row-selected td{background:#1890ff;background:var(--ant-primary-color)}.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week,.ant-picker-week-panel-row-selected td.ant-picker-cell-week{color:hsla(0,0%,100%,.5)}.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner:before,.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#fff}.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner,.ant-picker-week-panel-row-selected td .ant-picker-cell-inner{color:#fff}.ant-picker-date-panel .ant-picker-body{padding:8px 12px}.ant-picker-date-panel .ant-picker-content{width:252px}.ant-picker-date-panel .ant-picker-content th{width:36px}.ant-picker-datetime-panel{display:flex}.ant-picker-datetime-panel .ant-picker-time-panel{border-left:1px solid rgba(0,0,0,.06)}.ant-picker-datetime-panel .ant-picker-date-panel,.ant-picker-datetime-panel .ant-picker-time-panel{transition:opacity .3s}.ant-picker-datetime-panel-active .ant-picker-date-panel,.ant-picker-datetime-panel-active .ant-picker-time-panel{opacity:.3}.ant-picker-datetime-panel-active .ant-picker-date-panel-active,.ant-picker-datetime-panel-active .ant-picker-time-panel-active{opacity:1}.ant-picker-time-panel{width:auto;min-width:auto}.ant-picker-time-panel .ant-picker-content{display:flex;flex:auto;height:224px}.ant-picker-time-panel-column{flex:1 0 auto;width:56px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background .3s}.ant-picker-time-panel-column:after{display:block;height:196px;content:""}.ant-picker-datetime-panel .ant-picker-time-panel-column:after{height:198px}.ant-picker-time-panel-column:not(:first-child){border-left:1px solid rgba(0,0,0,.06)}.ant-picker-time-panel-column-active{background:rgba(230,247,255,.3);background:var(--ant-primary-color-active-deprecated-f-30)}.ant-picker-time-panel-column:hover{overflow-y:auto}.ant-picker-time-panel-column>li{margin:0;padding:0}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 14px;color:rgba(0,0,0,.85);line-height:28px;border-radius:0;cursor:pointer;transition:background .3s}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover{background:#f5f5f5}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner{background:#e6f7ff;background:var(--ant-primary-1)}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner{color:rgba(0,0,0,.25);background:transparent;cursor:not-allowed}:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell{padding:21px 0}.ant-picker-rtl{direction:rtl}.ant-picker-rtl .ant-picker-suffix{margin-right:4px;margin-left:0}.ant-picker-rtl .ant-picker-clear{right:auto;left:0}.ant-picker-rtl .ant-picker-separator{transform:rotate(180deg)}.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}.ant-picker-rtl.ant-picker-range .ant-picker-clear{right:auto;left:11px}.ant-picker-rtl.ant-picker-range .ant-picker-active-bar{margin-right:11px;margin-left:0}.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-right:7px}.ant-picker-dropdown-rtl .ant-picker-ranges{text-align:right}.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok{float:left;margin-right:8px;margin-left:0}.ant-picker-panel-rtl{direction:rtl}.ant-picker-panel-rtl .ant-picker-prev-icon,.ant-picker-panel-rtl .ant-picker-super-prev-icon{transform:rotate(135deg)}.ant-picker-panel-rtl .ant-picker-next-icon,.ant-picker-panel-rtl .ant-picker-super-next-icon{transform:rotate(-45deg)}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:before{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end:before{right:50%;left:50%}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end:after{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child:after{right:6px;left:0;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-left:none;border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child:after{right:0;left:6px;border-right:none;border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child:after{right:6px;left:6px;border-right:1px dashed #7ec1ff;border-right:1px dashed var(--ant-primary-color-deprecated-l-20);border-left:1px dashed #7ec1ff;border-left:1px dashed var(--ant-primary-color-deprecated-l-20);border-radius:2px}.ant-picker-dropdown-rtl .ant-picker-footer-extra{direction:rtl;text-align:right}.ant-picker-panel-rtl .ant-picker-time-panel{direction:ltr}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-checkbox{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-checkbox-input:focus+.ant-checkbox-inner,.ant-checkbox-wrapper:hover .ant-checkbox-inner,.ant-checkbox:hover .ant-checkbox-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-checkbox-wrapper:hover .ant-checkbox:after,.ant-checkbox:hover:after{visibility:visible}.ant-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-checkbox-checked .ant-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-checkbox-checked .ant-checkbox-inner{background-color:#1890ff;background-color:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-checkbox-disabled{cursor:not-allowed}.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after{border-color:rgba(0,0,0,.25);animation-name:none}.ant-checkbox-disabled .ant-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-checkbox-disabled .ant-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;animation-name:none}.ant-checkbox-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}.ant-checkbox-disabled:hover:after,.ant-checkbox-wrapper:hover .ant-checkbox-disabled:after{visibility:hidden}.ant-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled{cursor:not-allowed}.ant-checkbox-wrapper+.ant-checkbox-wrapper{margin-left:8px}.ant-checkbox-wrapper.ant-checkbox-wrapper-in-form-item input[type=checkbox]{width:14px;height:14px}.ant-checkbox+span{padding-right:8px;padding-left:8px}.ant-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block}.ant-checkbox-group-item{margin-right:8px}.ant-checkbox-group-item:last-child{margin-right:0}.ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:0}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-checkbox-indeterminate .ant-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;background-color:var(--ant-primary-color);border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-checkbox-rtl{direction:rtl}.ant-checkbox-group-rtl .ant-checkbox-group-item{margin-right:0;margin-left:8px}.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child{margin-left:0!important}.ant-checkbox-group-rtl .ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:8px}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-radio-group{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";display:inline-block;font-size:0}.ant-radio-group .ant-badge-count{z-index:1}.ant-radio-group>.ant-badge:not(:first-child)>.ant-radio-button-wrapper{border-left:none}.ant-radio-wrapper{box-sizing:border-box;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;display:inline-flex;align-items:baseline;margin:0 8px 0 0;cursor:pointer}.ant-radio-wrapper-disabled{cursor:not-allowed}.ant-radio-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-radio-wrapper.ant-radio-wrapper-in-form-item input[type=radio]{width:14px;height:14px}.ant-radio{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";position:relative;top:.2em;display:inline-block;outline:none;cursor:pointer}.ant-radio-input:focus+.ant-radio-inner,.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-input:focus+.ant-radio-inner{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border:1px solid var(--ant-primary-color);border-radius:50%;visibility:hidden;animation:antRadioEffect .36s ease-in-out;animation-fill-mode:both;content:""}.ant-radio-wrapper:hover .ant-radio:after,.ant-radio:hover:after{visibility:visible}.ant-radio-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;background-color:#fff;border:1px solid #d9d9d9;border-radius:50%;transition:all .3s}.ant-radio-inner:after{position:absolute;top:50%;left:50%;display:block;width:16px;height:16px;margin-top:-8px;margin-left:-8px;background-color:#1890ff;background-color:var(--ant-primary-color);border-top:0;border-left:0;border-radius:16px;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:" "}.ant-radio-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;cursor:pointer;opacity:0}.ant-radio.ant-radio-disabled .ant-radio-inner{border-color:#d9d9d9}.ant-radio-checked .ant-radio-inner{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-checked .ant-radio-inner:after{transform:scale(.5);opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.ant-radio-disabled{cursor:not-allowed}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5;cursor:not-allowed}.ant-radio-disabled .ant-radio-inner:after{background-color:rgba(0,0,0,.2)}.ant-radio-disabled .ant-radio-input{cursor:not-allowed}.ant-radio-disabled+span{color:rgba(0,0,0,.25);cursor:not-allowed}span.ant-radio+*{padding-right:8px;padding-left:8px}.ant-radio-button-wrapper{position:relative;display:inline-block;height:32px;margin:0;padding:0 15px;color:rgba(0,0,0,.85);font-size:14px;line-height:30px;background:#fff;border-color:#d9d9d9;border-style:solid;border-width:1.02px 1px 1px 0;cursor:pointer;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.ant-radio-button-wrapper a{color:rgba(0,0,0,.85)}.ant-radio-button-wrapper>.ant-radio-button{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ant-radio-group-large .ant-radio-button-wrapper{height:40px;font-size:16px;line-height:38px}.ant-radio-group-small .ant-radio-button-wrapper{height:24px;padding:0 7px;line-height:22px}.ant-radio-button-wrapper:not(:first-child):before{position:absolute;top:-1px;left:-1px;display:block;box-sizing:content-box;width:1px;height:100%;padding:1px 0;background-color:#d9d9d9;transition:background-color .3s;content:""}.ant-radio-button-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-radio-button-wrapper:last-child{border-radius:0 2px 2px 0}.ant-radio-button-wrapper:first-child:last-child{border-radius:2px}.ant-radio-button-wrapper:hover{position:relative;color:#1890ff;color:var(--ant-primary-color)}.ant-radio-button-wrapper:focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-button-wrapper .ant-radio-inner,.ant-radio-button-wrapper input[type=checkbox],.ant-radio-button-wrapper input[type=radio]{width:0;height:0;opacity:0;pointer-events:none}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){z-index:1;color:#1890ff;color:var(--ant-primary-color);background:#fff;border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#1890ff;background-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#40a9ff;color:var(--ant-primary-5);border-color:#40a9ff;border-color:var(--ant-primary-5)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover:before{background-color:#40a9ff;background-color:var(--ant-primary-5)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#096dd9;color:var(--ant-primary-7);border-color:#096dd9;border-color:var(--ant-primary-7)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active:before{background-color:#096dd9;background-color:var(--ant-primary-7)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#1890ff;background:var(--ant-primary-color);border-color:#1890ff;border-color:var(--ant-primary-color)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#40a9ff;background:var(--ant-primary-5);border-color:#40a9ff;border-color:var(--ant-primary-5)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#096dd9;background:var(--ant-primary-7);border-color:#096dd9;border-color:var(--ant-primary-7)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #e6f7ff;box-shadow:0 0 0 3px var(--ant-primary-1)}.ant-radio-button-wrapper-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5;border-color:#d9d9d9}.ant-radio-button-wrapper-disabled:first-child{border-left-color:#d9d9d9}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:rgba(0,0,0,.25);background-color:#e6e6e6;border-color:#d9d9d9;box-shadow:none}@keyframes antRadioEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-radio-group.ant-radio-group-rtl{direction:rtl}.ant-radio-wrapper.ant-radio-wrapper-rtl{margin-right:0;margin-left:8px;direction:rtl}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl{border-right-width:0;border-left-width:1px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child):before{right:-1px;left:0}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child{border-right:1px solid #d9d9d9;border-radius:0 2px 2px 0}.ant-radio-button-wrapper-checked:not([class*=" ant-radio-button-wrapper-disabled"]).ant-radio-button-wrapper:first-child{border-right-color:#40a9ff;border-right-color:var(--ant-primary-5)}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child{border-radius:2px 0 0 2px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child{border-right-color:#d9d9d9} \ No newline at end of file diff --git a/9208.af08cd18.async.js b/9208.af08cd18.async.js deleted file mode 100644 index 5b8ef90c..00000000 --- a/9208.af08cd18.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9208],{86591:function(){},68588:function(ja,Et,V){"use strict";V.d(Et,{Z:function(){return zo}});var tt=V(30381),an=V.n(tt),Sn=V(80334),Rt={getNow:function(){return an()()},getFixedDate:function(n){return an()(n,"YYYY-MM-DD")},getEndDate:function(n){var t=n.clone();return t.endOf("month")},getWeekDay:function(n){var t=n.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(n){return n.year()},getMonth:function(n){return n.month()},getDate:function(n){return n.date()},getHour:function(n){return n.hour()},getMinute:function(n){return n.minute()},getSecond:function(n){return n.second()},addYear:function(n,t){var a=n.clone();return a.add(t,"year")},addMonth:function(n,t){var a=n.clone();return a.add(t,"month")},addDate:function(n,t){var a=n.clone();return a.add(t,"day")},setYear:function(n,t){var a=n.clone();return a.year(t)},setMonth:function(n,t){var a=n.clone();return a.month(t)},setDate:function(n,t){var a=n.clone();return a.date(t)},setHour:function(n,t){var a=n.clone();return a.hour(t)},setMinute:function(n,t){var a=n.clone();return a.minute(t)},setSecond:function(n,t){var a=n.clone();return a.second(t)},isAfter:function(n,t){return n.isAfter(t)},isValidate:function(n){return n.isValid()},locale:{getWeekFirstDay:function(n){var t=an()().locale(n);return t.localeData().firstDayOfWeek()},getWeekFirstDate:function(n,t){var a=t.clone(),o=a.locale(n);return o.weekday(0)},getWeek:function(n,t){var a=t.clone(),o=a.locale(n);return o.week()},getShortWeekDays:function(n){var t=an()().locale(n);return t.localeData().weekdaysMin()},getShortMonths:function(n){var t=an()().locale(n);return t.localeData().monthsShort()},format:function(n,t,a){var o=t.clone(),l=o.locale(n);return l.format(a)},parse:function(n,t,a){for(var o=[],l=0;l1&&(u=n.addDate(u,-7)),u}function Rn(e,n,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(n){case"year":return t.addYear(e,a*10);case"quarter":case"month":return t.addYear(e,a);default:return t.addMonth(e,a)}}function he(e,n){var t=n.generateConfig,a=n.locale,o=n.format;return typeof o=="function"?o(e):t.locale.format(a.locale,e,o)}function Qt(e,n){var t=n.generateConfig,a=n.locale,o=n.formatList;return!e||typeof o[0]=="function"?null:t.locale.parse(a.locale,e,o)}function it(e){var n=e.cellDate,t=e.mode,a=e.disabledDate,o=e.generateConfig;if(!a)return!1;var l=function(s,h,m){for(var D=h;D<=m;){var P=void 0;switch(s){case"date":{if(P=o.setDate(n,D),!a(P))return!1;break}case"month":{if(P=o.setMonth(n,D),!it({cellDate:P,mode:"month",generateConfig:o,disabledDate:a}))return!1;break}case"year":{if(P=o.setYear(n,D),!it({cellDate:P,mode:"year",generateConfig:o,disabledDate:a}))return!1;break}}D+=1}return!0};switch(t){case"date":case"week":return a(n);case"month":{var u=1,i=o.getDate(o.getEndDate(n));return l("date",u,i)}case"quarter":{var f=Math.floor(o.getMonth(n)/3)*3,d=f+2;return l("month",f,d)}case"year":return l("month",0,11);case"decade":{var C=o.getYear(n),v=Math.floor(C/Be)*Be,c=v+Be-1;return l("year",v,c)}}}function Nr(e){var n=r.useContext(pe),t=n.hideHeader;if(t)return null;var a=e.prefixCls,o=e.generateConfig,l=e.locale,u=e.value,i=e.format,f="".concat(a,"-header");return r.createElement(Cn,{prefixCls:f},u?he(u,{locale:l,format:i,generateConfig:o}):"\xA0")}var Er=Nr,_t=V(56982);function Rr(e){var n=e.prefixCls,t=e.units,a=e.onSelect,o=e.value,l=e.active,u=e.hideDisabledOptions,i="".concat(n,"-cell"),f=r.useContext(pe),d=f.open,C=(0,r.useRef)(null),v=(0,r.useRef)(new Map),c=(0,r.useRef)();return(0,r.useLayoutEffect)(function(){var g=v.current.get(o);g&&d!==!1&&ot(C.current,g.offsetTop,120)},[o]),(0,r.useLayoutEffect)(function(){if(d){var g=v.current.get(o);g&&(c.current=gr(g,function(){ot(C.current,g.offsetTop,0)}))}return function(){var s;(s=c.current)===null||s===void 0||s.call(c)}},[d]),r.createElement("ul",{className:ie()("".concat(n,"-column"),(0,E.Z)({},"".concat(n,"-column-active"),l)),ref:C,style:{position:"relative"}},t.map(function(g){var s;return u&&g.disabled?null:r.createElement("li",{key:g.value,ref:function(m){v.current.set(g.value,m)},className:ie()(i,(s={},(0,E.Z)(s,"".concat(i,"-disabled"),g.disabled),(0,E.Z)(s,"".concat(i,"-selected"),o===g.value),s)),onClick:function(){g.disabled||a(g.value)}},r.createElement("div",{className:"".concat(i,"-inner")},g.label))}))}var Kn=Rr;function Gt(e,n){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length=12,W%=12);var Xe=r.useMemo(function(){if(!d)return[!1,!1];var L=[!0,!0];return Me.forEach(function(le){var _=le.disabled,ue=le.value;_||(ue>=12?L[1]=!1:L[0]=!1)}),L},[d,Me]),Ne=(0,O.Z)(Xe,2),De=Ne[0],ze=Ne[1],Je=r.useMemo(function(){return d?Me.filter(Z?function(L){return L.value>=12}:function(L){return L.value<12}).map(function(L){var le=L.value%12,_=le===0?"12":Gt(le,2);return(0,U.Z)((0,U.Z)({},L),{},{label:_,value:le})}):Me},[d,Z,Me]),We=ct(0,59,g,q&&q($)),Ee=ct(0,59,h,ve&&ve($,G));a.current={onUpDown:function(le){var _=y[o];if(_)for(var ue=_.units.findIndex(function(Ie){return Ie.value===_.value}),ee=_.units.length,ge=1;ge2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===h||Ze)&&(Zn(k),I&&I(k),We&&We(k,A),R&&!En(i,k,ce)&&!(c==null?void 0:c(k))&&R(k))},wn=function(k){return ee.current&&ee.current.onKeyDown?([ae.Z.LEFT,ae.Z.RIGHT,ae.Z.UP,ae.Z.DOWN,ae.Z.PAGE_UP,ae.Z.PAGE_DOWN,ae.Z.ENTER].includes(k.which)&&k.preventDefault(),ee.current.onKeyDown(k)):((0,Sn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},on=function(k){ee.current&&ee.current.onBlur&&ee.current.onBlur(k)};ze&&le!=="right"&&(ze.current={onKeyDown:wn,onClose:function(){ee.current&&ee.current.onClose&&ee.current.onClose()}}),r.useEffect(function(){f&&!ge.current&&dn(f)},[f]),r.useEffect(function(){ge.current=!1},[]);var M,xe=(0,U.Z)((0,U.Z)({},e),{},{operationRef:ee,prefixCls:a,viewDate:fn,value:ce,onViewDateChange:Se,sourceMode:Le,onPanelChange:Ae,disabledDate:c});switch(delete xe.onChange,delete xe.onSelect,Pe){case"decade":M=r.createElement(br,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"year":M=r.createElement(go,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"month":M=r.createElement(qr,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"quarter":M=r.createElement(uo,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"week":M=r.createElement(zr,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;case"time":delete xe.showTime,M=r.createElement(qt,(0,b.Z)({},xe,(0,yn.Z)(S)==="object"?S:null,{onSelect:function(k,A){Se(k),oe(k,A)}}));break;default:S?M=r.createElement(Ur,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}})):M=r.createElement(st,(0,b.Z)({},xe,{onSelect:function(k,A){Se(k),oe(k,A)}}))}var ke,Q,je=function(){var k=i.getNow(),A=ir(i.getHour(k),i.getMinute(k),i.getSecond(k),Me?z:1,Xe?q:1,Ne?K:1),Ze=At(i,k,A[0],A[1],A[2]);oe(Ze,"submit")};Ee||(ke=aa(a,Pe,x),Q=ra({prefixCls:a,components:X,needConfirmButton:be,okDisabled:!ce||c&&c(ce),locale:u,showNow:P,onNow:be&&je,onOk:function(){ce&&(oe(ce,"submit",!0),G&&G(ce))}}));var ln;if(p&&Pe==="date"&&h==="date"&&!S){var se=i.getNow(),Pn="".concat(a,"-today-btn"),un=c&&c(se);ln=r.createElement("a",{className:ie()(Pn,un&&"".concat(Pn,"-disabled")),"aria-disabled":un,onClick:function(){un||oe(se,"mouse",!0)}},u.today)}return r.createElement(pe.Provider,{value:(0,U.Z)((0,U.Z)({},De),{},{mode:Pe,hideHeader:"hideHeader"in e?y:De.hideHeader,hidePrevBtn:L&&le==="right",hideNextBtn:L&&le==="left"})},r.createElement("div",{tabIndex:D,className:ie()("".concat(a,"-panel"),o,(n={},(0,E.Z)(n,"".concat(a,"-panel-has-range"),_&&_[0]&&_[1]),(0,E.Z)(n,"".concat(a,"-panel-has-range-hover"),ue&&ue[0]&&ue[1]),(0,E.Z)(n,"".concat(a,"-panel-rtl"),J==="rtl"),n)),style:l,onKeyDown:wn,onBlur:on,onMouseDown:$,ref:Je},M,ke||Q||ln?r.createElement("div",{className:"".concat(a,"-footer")},ke,Q,ln):null))}var oa=mo,Co=V(18481),ho={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Do(e){var n,t=e.prefixCls,a=e.popupElement,o=e.popupStyle,l=e.visible,u=e.dropdownClassName,i=e.dropdownAlign,f=e.transitionName,d=e.getPopupContainer,C=e.children,v=e.range,c=e.popupPlacement,g=e.direction,s="".concat(t,"-dropdown"),h=function(){return c!==void 0?c:g==="rtl"?"bottomRight":"bottomLeft"};return r.createElement(Co.Z,{showAction:[],hideAction:[],popupPlacement:h(),builtinPlacements:ho,prefixCls:s,popupTransitionName:f,popup:a,popupAlign:i,popupVisible:l,popupClassName:ie()(u,(n={},(0,E.Z)(n,"".concat(s,"-range"),v),(0,E.Z)(n,"".concat(s,"-rtl"),g==="rtl"),n)),popupStyle:o,getPopupContainer:d},C)}var la=Do;function dt(e){var n=e.open,t=e.value,a=e.isClickOutside,o=e.triggerOpen,l=e.forwardKeyDown,u=e.onKeyDown,i=e.blurToCancel,f=e.onSubmit,d=e.onCancel,C=e.onFocus,v=e.onBlur,c=(0,r.useState)(!1),g=(0,O.Z)(c,2),s=g[0],h=g[1],m=(0,r.useState)(!1),D=(0,O.Z)(m,2),P=D[0],S=D[1],p=(0,r.useRef)(!1),x=(0,r.useRef)(!1),y=(0,r.useRef)(!1),I={onMouseDown:function(){h(!0),o(!0)},onKeyDown:function(Z){var $=function(){y.current=!0};if(u(Z,$),!y.current){switch(Z.which){case ae.Z.ENTER:{n?f()!==!1&&h(!0):o(!0),Z.preventDefault();return}case ae.Z.TAB:{s&&n&&!Z.shiftKey?(h(!1),Z.preventDefault()):!s&&n&&!l(Z)&&Z.shiftKey&&(h(!0),Z.preventDefault());return}case ae.Z.ESC:{h(!0),d();return}}!n&&![ae.Z.SHIFT].includes(Z.which)?o(!0):s||l(Z)}},onFocus:function(Z){h(!0),S(!0),C&&C(Z)},onBlur:function(Z){if(p.current||!a(document.activeElement)){p.current=!1;return}i?setTimeout(function(){for(var $=document,W=$.activeElement;W&&W.shadowRoot;)W=W.shadowRoot.activeElement;a(W)&&d()},0):n&&(o(!1),x.current&&f()),S(!1),v&&v(Z)}};return(0,r.useEffect)(function(){x.current=!1},[n]),(0,r.useEffect)(function(){x.current=!0},[t]),(0,r.useEffect)(function(){return mr(function(R){var Z=Cr(R);if(n){var $=a(Z);$?(!P||$)&&o(!1):(p.current=!0,requestAnimationFrame(function(){p.current=!1}))}})}),[I,{focused:P,typing:s}]}function vt(e){var n=e.valueTexts,t=e.onTextChange,a=r.useState(""),o=(0,O.Z)(a,2),l=o[0],u=o[1],i=r.useRef([]);i.current=n;function f(C){u(C),t(C)}function d(){u(i.current[0])}return r.useEffect(function(){n.every(function(C){return C!==l})&&d()},[n.join("||")]),[l,f,d]}var wo=V(96774),Po=V.n(wo);function $n(e,n){var t=n.formatList,a=n.generateConfig,o=n.locale;return(0,_t.Z)(function(){if(!e)return[[""],""];for(var l="",u=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(d.current),D){f(m);return}d.current=requestAnimationFrame(function(){f(m)})}var v=$n(i,{formatList:t,generateConfig:a,locale:o}),c=(0,O.Z)(v,2),g=c[1];function s(m){C(m)}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;C(null,m)}return(0,r.useEffect)(function(){h(!0)},[e]),(0,r.useEffect)(function(){return function(){return cancelAnimationFrame(d.current)}},[]),[g,s,h]}function Nl(e){var n=e.picker,t=e.disabledHours,a=e.disabledMinutes,o=e.disabledSeconds;n==="time"&&(t||a||o)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function xo(e){var n,t=e.prefixCls,a=t===void 0?"rc-picker":t,o=e.id,l=e.tabIndex,u=e.style,i=e.className,f=e.dropdownClassName,d=e.dropdownAlign,C=e.popupStyle,v=e.transitionName,c=e.generateConfig,g=e.locale,s=e.inputReadOnly,h=e.allowClear,m=e.autoFocus,D=e.showTime,P=e.picker,S=P===void 0?"date":P,p=e.format,x=e.use12Hours,y=e.value,I=e.defaultValue,R=e.open,Z=e.defaultOpen,$=e.defaultOpenValue,W=e.suffixIcon,G=e.clearIcon,X=e.disabled,J=e.disabledDate,de=e.placeholder,z=e.getPopupContainer,re=e.pickerRef,q=e.panelRender,ve=e.onChange,K=e.onOpenChange,be=e.onFocus,Me=e.onBlur,Xe=e.onMouseDown,Ne=e.onMouseUp,De=e.onMouseEnter,ze=e.onMouseLeave,Je=e.onContextMenu,We=e.onClick,Ee=e.onKeyDown,j=e.onSelect,me=e.direction,L=e.autoComplete,le=L===void 0?"off":L,_=e.inputRender,ue=r.useRef(null),ee=S==="date"&&!!D||S==="time",ge=Xt(Kt(p,S,D,x)),Ve=r.useRef(null),Ie=r.useRef(null),ce=r.useRef(null),Zn=(0,$e.Z)(null,{value:y,defaultValue:I}),sn=(0,O.Z)(Zn,2),Ce=sn[0],fn=sn[1],dn=r.useState(Ce),Se=(0,O.Z)(dn,2),Oe=Se[0],we=Se[1],ye=r.useRef(null),Pe=(0,$e.Z)(!1,{value:R,defaultValue:Z,postState:function(T){return X?!1:T},onChange:function(T){K&&K(T),!T&&ye.current&&ye.current.onClose&&ye.current.onClose()}}),He=(0,O.Z)(Pe,2),Re=He[0],qe=He[1],Le=$n(Oe,{formatList:ge,generateConfig:c,locale:g}),Ke=(0,O.Z)(Le,2),Ae=Ke[0],oe=Ke[1],wn=vt({valueTexts:Ae,onTextChange:function(T){var Fe=Qt(T,{locale:g,formatList:ge,generateConfig:c});Fe&&(!J||!J(Fe))&&we(Fe)}}),on=(0,O.Z)(wn,3),M=on[0],xe=on[1],ke=on[2],Q=function(T){we(T),fn(T),ve&&!En(c,Ce,T)&&ve(T,T?he(T,{generateConfig:c,locale:g,format:ge[0]}):"")},je=function(T){X&&T||qe(T)},ln=function(T){return Re&&ye.current&&ye.current.onKeyDown?ye.current.onKeyDown(T):((0,Sn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},se=function(){Ne&&Ne.apply(void 0,arguments),ue.current&&(ue.current.focus(),je(!0))},Pn=dt({blurToCancel:ee,open:Re,value:M,triggerOpen:je,forwardKeyDown:ln,isClickOutside:function(T){return!$t([Ve.current,Ie.current,ce.current],T)},onSubmit:function(){return!Oe||J&&J(Oe)?!1:(Q(Oe),je(!1),ke(),!0)},onCancel:function(){je(!1),we(Ce),ke()},onKeyDown:function(T,Fe){Ee==null||Ee(T,Fe)},onFocus:be,onBlur:Me}),un=(0,O.Z)(Pn,2),ne=un[0],k=un[1],A=k.focused,Ze=k.typing;r.useEffect(function(){Re||(we(Ce),!Ae.length||Ae[0]===""?xe(""):oe!==M&&ke())},[Re,Ae]),r.useEffect(function(){Re||ke()},[S]),r.useEffect(function(){we(Ce)},[Ce]),re&&(re.current={focus:function(){ue.current&&ue.current.focus()},blur:function(){ue.current&&ue.current.blur()}});var Qn=gt(M,{formatList:ge,generateConfig:c,locale:g}),te=(0,O.Z)(Qn,3),en=te[0],mt=te[1],pn=te[2],vn=(0,U.Z)((0,U.Z)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),xn=r.createElement(oa,(0,b.Z)({},vn,{generateConfig:c,className:ie()((0,E.Z)({},"".concat(a,"-panel-focused"),!Ze)),value:Oe,locale:g,tabIndex:-1,onSelect:function(T){j==null||j(T),we(T)},direction:me,onPanelChange:function(T,Fe){var Yn=e.onPanelChange;pn(!0),Yn==null||Yn(T,Fe)}}));q&&(xn=q(xn));var Ct=r.createElement("div",{className:"".concat(a,"-panel-container"),onMouseDown:function(T){T.preventDefault()}},xn),_n;W&&(_n=r.createElement("span",{className:"".concat(a,"-suffix")},W));var Vn;h&&Ce&&!X&&(Vn=r.createElement("span",{onMouseDown:function(T){T.preventDefault(),T.stopPropagation()},onMouseUp:function(T){T.preventDefault(),T.stopPropagation(),Q(null),je(!1)},className:"".concat(a,"-clear"),role:"button"},G||r.createElement("span",{className:"".concat(a,"-clear-btn")})));var Tn=(0,U.Z)((0,U.Z)((0,U.Z)({id:o,tabIndex:l,disabled:X,readOnly:s||typeof ge[0]=="function"||!Ze,value:en||M,onChange:function(T){xe(T.target.value)},autoFocus:m,placeholder:de,ref:ue,title:M},ne),{},{size:Ut(S,ge[0],c)},Jt(e)),{},{autoComplete:le}),Gn=_?_(Tn):r.createElement("input",Tn),ht=function(T,Fe){(Fe==="submit"||Fe!=="key"&&!ee)&&(Q(T),je(!1))},Xn=me==="rtl"?"bottomRight":"bottomLeft";return r.createElement(pe.Provider,{value:{operationRef:ye,hideHeader:S==="time",panelRef:Ve,onSelect:ht,open:Re,defaultOpenValue:$,onDateMouseEnter:mt,onDateMouseLeave:pn}},r.createElement(la,{visible:Re,popupElement:Ct,popupStyle:C,prefixCls:a,dropdownClassName:f,dropdownAlign:d,getPopupContainer:z,transitionName:v,popupPlacement:Xn,direction:me},r.createElement("div",{ref:ce,className:ie()(a,i,(n={},(0,E.Z)(n,"".concat(a,"-disabled"),X),(0,E.Z)(n,"".concat(a,"-focused"),A),(0,E.Z)(n,"".concat(a,"-rtl"),me==="rtl"),n)),style:u,onMouseDown:Xe,onMouseUp:se,onMouseEnter:De,onMouseLeave:ze,onContextMenu:Je,onClick:We},r.createElement("div",{className:ie()("".concat(a,"-input"),(0,E.Z)({},"".concat(a,"-input-placeholder"),!!en)),ref:Ie},Gn,_n,Vn))))}var ko=function(e){(0,Ht.Z)(t,e);var n=(0,Lt.Z)(t);function t(){var a;(0,It.Z)(this,t);for(var o=arguments.length,l=new Array(o),u=0;ug(C);case"month":return c(m)>c(C);case"week":return v(m)>v(C);default:return!Ge(f,m,C)&&f.isAfter(m,C)}return!1},[u,i[1],C,n]),h=r.useCallback(function(m){if(u&&u(m))return!0;if(i[0]&&d)return!Ge(f,m,C)&&f.isAfter(d,m);if(t&&d)switch(a){case"quarter":return g(m)0&&arguments[0]!==void 0?arguments[0]:!1,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null;B&&bn&&bn[0]&&bn[1]&&s.isAfter(bn[1],bn[0])&&(N=bn);var H=y;if(y&&(0,yn.Z)(y)==="object"&&y.defaultValue){var fe=y.defaultValue;H=(0,U.Z)((0,U.Z)({},y),{},{defaultValue:F(fe,M)||void 0})}var mn=null;return re&&(mn=function(Ue,Qe){return re(Ue,Qe,{range:M?"end":"start"})}),r.createElement(Dn.Provider,{value:{inRange:!0,panelPosition:Y,rangedValue:rl||te,hoverRangedValue:N}},r.createElement(oa,(0,b.Z)({},e,w,{dateRender:mn,showTime:H,mode:vn[M],generateConfig:s,style:void 0,direction:Ce,disabledDate:M===0?Tn:Gn,disabledTime:function(Ue){return z?z(Ue,M===0?"start":"end"):!1},className:ie()((0,E.Z)({},"".concat(l,"-panel-focused"),M===0?!La:!Wa)),value:F(te,M),locale:h,tabIndex:-1,onPanelChange:function(Ue,Qe){M===0&&kt(!0),M===1&&St(!0),Ct(Ye(vn,Qe,M),Ye(te,Ue,M));var tn=Ue;Y==="right"&&vn[M]===Qe&&(tn=Rn(tn,Qe,s,-1)),A(tn,M)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:M===0?F(te,1):F(te,0)})))}var gn=0,Ka=0;M&&He.current&&qe.current&&Pe.current&&(gn=He.current.offsetWidth+qe.current.offsetWidth,Pe.current.offsetWidth&&Ae.current.offsetWidth&&gn>Pe.current.offsetWidth-Ae.current.offsetWidth-(Ce==="rtl"||Ae.current.offsetLeft>gn?0:Ae.current.offsetLeft)&&(Ka=gn));var kl=Ce==="rtl"?{right:gn}:{left:gn};function bl(){var Y,w=aa(l,vn[M],Je),N=ra({prefixCls:l,components:Zn,needConfirmButton:Oe,okDisabled:!F(te,M)||de&&de(te[M]),locale:h,rangeList:xl,onOk:function(){F(te,M)&&(In(te,M),Ie&&Ie(te))}});if(x!=="time"&&!y){var H=k(M),fe=Rn(H,x,s),mn=vn[M],nn=mn===x,Ue=yt(nn?"left":!1,{pickerValue:H,onPickerValueChange:function(Te){A(Te,M)}}),Qe=yt("right",{pickerValue:fe,onPickerValueChange:function(Te){A(Rn(Te,x,s,-1),M)}});Ce==="rtl"?Y=r.createElement(r.Fragment,null,Qe,nn&&Ue):Y=r.createElement(r.Fragment,null,Ue,nn&&Qe)}else Y=yt();var tn=r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(l,"-panels")},Y),(w||N)&&r.createElement("div",{className:"".concat(l,"-footer")},w,N));return q&&(tn=q(tn)),r.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Ka},ref:Pe,onMouseDown:function(Te){Te.preventDefault()}},tn)}var Sl=r.createElement("div",{className:ie()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(x,"-range-wrapper")),style:{minWidth:Qo}},r.createElement("div",{ref:Ae,className:"".concat(l,"-range-arrow"),style:kl}),bl()),Ua;Me&&(Ua=r.createElement("span",{className:"".concat(l,"-suffix")},Me));var $a;be&&(F(se,0)&&!Q[0]||F(se,1)&&!Q[1])&&($a=r.createElement("span",{onMouseDown:function(w){w.preventDefault(),w.stopPropagation()},onMouseUp:function(w){w.preventDefault(),w.stopPropagation();var N=se;Q[0]||(N=Ye(N,null,0)),Q[1]||(N=Ye(N,null,1)),In(N,null),kn(!1,M)},className:"".concat(l,"-clear")},Xe||r.createElement("span",{className:"".concat(l,"-clear-btn")})));var za={size:Ut(x,oe[0],s)},Mt=0,Nt=0;He.current&&Re.current&&qe.current&&(M===0?Nt=He.current.offsetWidth:(Mt=gn,Nt=Re.current.offsetWidth));var yl=Ce==="rtl"?{right:Mt}:{left:Mt},Ml=function(w,N){var H=Ye(te,w,M);N==="submit"||N!=="key"&&!Oe?(In(H,M),M===0?kt():St()):en(H)};return r.createElement(pe.Provider,{value:{operationRef:ke,hideHeader:x==="time",onDateMouseEnter:sl,onDateMouseLeave:fl,hideRanges:!0,onSelect:Ml,open:B}},r.createElement(la,{visible:B,popupElement:Sl,popupStyle:d,prefixCls:l,dropdownClassName:C,dropdownAlign:c,getPopupContainer:g,transitionName:v,range:!0,direction:Ce},r.createElement("div",(0,b.Z)({ref:ye,className:ie()(l,"".concat(l,"-range"),f,(n={},(0,E.Z)(n,"".concat(l,"-disabled"),Q[0]&&Q[1]),(0,E.Z)(n,"".concat(l,"-focused"),M===0?Ha:Ba),(0,E.Z)(n,"".concat(l,"-rtl"),Ce==="rtl"),n)),style:i,onClick:Cl,onMouseEnter:ee,onMouseLeave:ge,onMouseDown:hl,onMouseUp:ue},Jt(e)),r.createElement("div",{className:ie()("".concat(l,"-input"),(t={},(0,E.Z)(t,"".concat(l,"-input-active"),M===0),(0,E.Z)(t,"".concat(l,"-input-placeholder"),!!Va),t)),ref:He},r.createElement("input",(0,b.Z)({id:u,disabled:Q[0],readOnly:De||typeof oe[0]=="function"||!La,value:Va||et,onChange:function(w){Sa(w.target.value)},autoFocus:D,placeholder:F(m,0)||"",ref:Le},vl,za,{autoComplete:Se}))),r.createElement("div",{className:"".concat(l,"-range-separator"),ref:qe},Z),r.createElement("div",{className:ie()("".concat(l,"-input"),(a={},(0,E.Z)(a,"".concat(l,"-input-active"),M===1),(0,E.Z)(a,"".concat(l,"-input-placeholder"),!!Ta),a)),ref:Re},r.createElement("input",(0,b.Z)({disabled:Q[1],readOnly:De||typeof oe[0]=="function"||!Wa,value:Ta||nt,onChange:function(w){Ma(w.target.value)},placeholder:F(m,1)||"",ref:Ke},ml,za,{autoComplete:Se}))),r.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,U.Z)((0,U.Z)({},yl),{},{width:Nt,position:"absolute"})}),Ua,$a)))}var Ro=function(e){(0,Ht.Z)(t,e);var n=(0,Lt.Z)(t);function t(){var a;(0,It.Z)(this,t);for(var o=arguments.length,l=new Array(o),u=0;u*{white-space:unset}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum","tnum";color:rgba(0,0,0,.45);font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb ol{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}.ant-breadcrumb a{color:rgba(0,0,0,.45);transition:color .3s}.ant-breadcrumb a:hover{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child{color:rgba(0,0,0,.85)}.ant-breadcrumb li:last-child a{color:rgba(0,0,0,.85)}li:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:rgba(0,0,0,.45)}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span{margin-left:4px}.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span{margin-right:4px;margin-left:0}.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-pro-page-container-children-content{margin:24px 24px 0;padding:inherit}.ant-pro-page-container{background-color:inherit}.ant-pro-page-container-warp{background-color:#fff}.ant-pro-page-container-warp .ant-tabs-nav{margin:0}.ant-pro-page-container-ghost .ant-pro-page-container-warp{background-color:transparent}.ant-pro-page-container-ghost .ant-pro-page-container-children-content{margin-top:0}.ant-pro-page-container-main .ant-pro-page-container-detail{display:flex}.ant-pro-page-container-main .ant-pro-page-container-row{display:flex;width:100%}.ant-pro-page-container-main .ant-pro-page-container-title-content{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-content,.ant-pro-page-container-main .ant-pro-page-container-title{flex:auto;width:100%}.ant-pro-page-container-main .ant-pro-page-container-extraContent,.ant-pro-page-container-main .ant-pro-page-container-main{flex:0 1 auto}.ant-pro-page-container-main .ant-pro-page-container-main{width:100%}.ant-pro-page-container-main .ant-pro-page-container-title{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-logo{margin-bottom:16px}.ant-pro-page-container-main .ant-pro-page-container-extraContent{min-width:242px;margin-left:88px;text-align:right}@media screen and (max-width:1200px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:44px}}@media screen and (max-width:992px){.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:20px}}@media screen and (max-width:768px){.ant-pro-page-container-main .ant-pro-page-container-row{display:block}.ant-pro-page-container-main .ant-pro-page-container-action,.ant-pro-page-container-main .ant-pro-page-container-extraContent{margin-left:0;text-align:left}}@media screen and (max-width:576px){.ant-pro-page-container-detail{display:block}.ant-pro-page-container-extraContent{margin-left:0}}.ant-pro-grid-content{width:100%}.ant-pro-grid-content.wide{max-width:1200px;margin:0 auto}.ant-pro-footer-bar{position:fixed;right:0;bottom:0;z-index:99;display:flex;align-items:center;width:100%;padding:0 24px;line-height:44px;background:#fff;border-top:1px solid rgba(0,0,0,.06);box-shadow:0 -6px 16px -8px rgba(0,0,0,.08),0 -9px 28px 0 rgba(0,0,0,.05),0 -12px 48px 16px rgba(0,0,0,.03);transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-footer-bar-left{flex:1 1}.ant-pro-footer-bar-right>*{margin-right:8px}.ant-pro-footer-bar-right>:last-child{margin:0}html{--ant-primary-color:#1890ff;--ant-primary-color-hover:#40a9ff;--ant-primary-color-active:#096dd9;--ant-primary-color-outline:rgba(24,144,255,0.2);--ant-primary-1:#e6f7ff;--ant-primary-2:#bae7ff;--ant-primary-3:#91d5ff;--ant-primary-4:#69c0ff;--ant-primary-5:#40a9ff;--ant-primary-6:#1890ff;--ant-primary-7:#096dd9;--ant-primary-color-deprecated-l-35:#cbe6ff;--ant-primary-color-deprecated-l-20:#7ec1ff;--ant-primary-color-deprecated-t-20:#46a6ff;--ant-primary-color-deprecated-t-50:#8cc8ff;--ant-primary-color-deprecated-f-12:rgba(24,144,255,0.12);--ant-primary-color-active-deprecated-f-30:rgba(230,247,255,0.3);--ant-primary-color-active-deprecated-d-02:#dcf4ff;--ant-success-color:#52c41a;--ant-success-color-hover:#73d13d;--ant-success-color-active:#389e0d;--ant-success-color-outline:rgba(82,196,26,0.2);--ant-success-color-deprecated-bg:#f6ffed;--ant-success-color-deprecated-border:#b7eb8f;--ant-error-color:#ff4d4f;--ant-error-color-hover:#ff7875;--ant-error-color-active:#d9363e;--ant-error-color-outline:rgba(255,77,79,0.2);--ant-error-color-deprecated-bg:#fff2f0;--ant-error-color-deprecated-border:#ffccc7;--ant-warning-color:#faad14;--ant-warning-color-hover:#ffc53d;--ant-warning-color-active:#d48806;--ant-warning-color-outline:rgba(250,173,20,0.2);--ant-warning-color-deprecated-bg:#fffbe6;--ant-warning-color-deprecated-border:#ffe58f;--ant-info-color:#1890ff;--ant-info-color-deprecated-bg:#e6f7ff;--ant-info-color-deprecated-border:#91d5ff}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:hsla(0,0%,74.5%,.2);border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li:after,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-button{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-button:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-input{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-input:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-active .ant-skeleton-image{position:relative;overflow:hidden;background:#fff}.ant-skeleton.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-button{width:100%}.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:hsla(0,0%,74.5%,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translateX(-37.5%)}to{transform:translateX(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}} \ No newline at end of file diff --git a/9370.1d19759f.async.js b/9370.1d19759f.async.js deleted file mode 100644 index eb29d1ed..00000000 --- a/9370.1d19759f.async.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9370],{16165:function(Re,ye,d){"use strict";var S=d(28991),T=d(96156),O=d(81253),h=d(67294),G=d(94184),k=d.n(G),Pe=d(63017),Q=d(41755),ie=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],x=h.forwardRef(function(W,ve){var Z=W.className,a=W.component,F=W.viewBox,ce=W.spin,se=W.rotate,ee=W.tabIndex,C=W.onClick,P=W.children,p=(0,O.Z)(W,ie);(0,Q.Kp)(Boolean(a||P),"Should have `component` prop or `children`."),(0,Q.C3)();var N=h.useContext(Pe.Z),X=N.prefixCls,re=X===void 0?"anticon":X,V=k()(re,Z),ue=k()((0,T.Z)({},"".concat(re,"-spin"),!!ce)),Me=se?{msTransform:"rotate(".concat(se,"deg)"),transform:"rotate(".concat(se,"deg)")}:void 0,Oe=(0,S.Z)((0,S.Z)({},Q.vD),{},{className:ue,style:Me,viewBox:F});F||delete Oe.viewBox;var ge=function(){return a?h.createElement(a,(0,S.Z)({},Oe),P):P?((0,Q.Kp)(Boolean(F)||h.Children.count(P)===1&&h.isValidElement(P)&&h.Children.only(P).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",(0,S.Z)((0,S.Z)({},Oe),{},{viewBox:F}),P)):null},Y=ee;return Y===void 0&&C&&(Y=-1),h.createElement("span",(0,S.Z)((0,S.Z)({role:"img"},p),{},{ref:ve,tabIndex:Y,onClick:C,className:V}),ge())});x.displayName="AntdIcon",ye.Z=x},91321:function(Re,ye,d){"use strict";d.d(ye,{Z:function(){return ie}});var S=d(28991),T=d(81253),O=d(67294),h=d(16165),G=["type","children"],k=new Set;function Pe(x){return Boolean(typeof x=="string"&&x.length&&!k.has(x))}function Q(x){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=x[W];if(Pe(ve)){var Z=document.createElement("script");Z.setAttribute("src",ve),Z.setAttribute("data-namespace",ve),x.length>W+1&&(Z.onload=function(){Q(x,W+1)},Z.onerror=function(){Q(x,W+1)}),k.add(ve),document.body.appendChild(Z)}}function ie(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=x.scriptUrl,ve=x.extraCommonProps,Z=ve===void 0?{}:ve;W&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(W)?Q(W.reverse()):Q([W]));var a=O.forwardRef(function(F,ce){var se=F.type,ee=F.children,C=(0,T.Z)(F,G),P=null;return F.type&&(P=O.createElement("use",{xlinkHref:"#".concat(se)})),ee&&(P=ee),O.createElement(h.Z,(0,S.Z)((0,S.Z)((0,S.Z)({},Z),C),{},{ref:ce}),P)});return a.displayName="Iconfont",a}},79370:function(Re,ye,d){"use strict";d.d(ye,{ZP:function(){return xa}});var S=d(24793),T=d(97183),O=d(96156),h=d(55507),G=d(92137),k=d(81253),Pe=d(84305),Q=d(75901),ie=d(28481),x=d(28991),W=d(22122),ve=d(11965),Z=d(84378),a=d(67294),F=d(29405),ce={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"}},se={moneySymbol:"\u20AC",tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"}},ee={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"}},C={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},P={moneySymbol:"$",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete"}},switch:{open:"open",close:"close"}},p={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemsUnits:"Objetos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar"}},switch:{open:"abrir",close:"cerrar"}},N={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641"}}},X={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer"}}},re={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i"}},switch:{open:"otvori",close:"zatvori"}},V={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"}},ue={moneySymbol:"\u20AC",tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},loginForm:{submitText:"Accedi"}},Me={moneySymbol:"\xA5",tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",pre:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"}},Oe={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C"}}},ge={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"of",item:"\u043D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0445\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},Y={moneySymbol:"RM",tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},loginForm:{submitText:"Log Masuk"}},de={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"}},_={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"items"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar"}}},R={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C"}}},q={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i"}}},fe={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil"}}},le={moneySymbol:"\u20AB",tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"}},he={moneySymbol:"\uFFE5",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"},loginForm:{submitText:"\u767B\u5F55"}},Ce={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"},loginForm:{submitText:"\u767B\u5165"}};function oe(g,e,l){var i=e.replace(/\[(\d+)\]/g,".$1").split("."),s=g,c=l,u=(0,ve.Z)(i),y;try{for(u.s();!(y=u.n()).done;){var b=y.value;if(c=Object(s)[b],s=Object(s)[b],c===void 0)return l}}catch(M){u.e(M)}finally{u.f()}return c}var K=function(e,l){return{getMessage:function(s,c){return oe(l,s,c)||c},locale:e}},pe=K("mn_MN",ge),Se=K("ar_EG",ce),xe=K("zh_CN",he),Ge=K("en_US",P),wt=K("en_GB",C),Zt=K("vi_VN",le),Ae=K("it_IT",ue),Ve=K("ja_JP",Me),tt=K("es_ES",p),nt=K("ca_ES",se),Qe=K("ru_RU",R),mt=K("sr_RS",q),Dt=K("ms_MY",Y),vt=K("zh_TW",Ce),pt=K("fr_FR",X),Nt=K("pt_BR",_),rt=K("ko_KR",Oe),at=K("id_ID",V),gt=K("de_DE",ee),rn=K("fa_IR",N),ct=K("tr_TR",fe),dt=K("pl_PL",de),Vt=K("hr_",re),ht={"mn-MN":pe,"ar-EG":Se,"zh-CN":xe,"en-US":Ge,"en-GB":wt,"vi-VN":Zt,"it-IT":Ae,"ja-JP":Ve,"es-ES":tt,"ca-ES":nt,"ru-RU":Qe,"sr-RS":mt,"ms-MY":Dt,"zh-TW":vt,"fr-FR":pt,"pt-BR":Nt,"ko-KR":rt,"id-ID":at,"de-DE":gt,"fa-IR":rn,"tr-TR":ct,"pl-PL":dt,"hr-HR":Vt},Ot=Object.keys(ht),It=a.createContext({intl:(0,x.Z)((0,x.Z)({},xe),{},{locale:"default"}),valueTypeMap:{}}),an=It.Consumer,Lt=It.Provider,Yt=function(e){if(!e)return"zh-CN";var l=e.toLocaleLowerCase();return Ot.find(function(i){var s=i.toLocaleLowerCase();return s.includes(l)})},ln=function(){var e=(0,F.kY)(),l=e.cache;return(0,a.useEffect)(function(){return function(){l.clear()}},[]),null},At=function(e){var l=e.children,i=e.autoClearCache,s=i===void 0?!1:i,c=(0,a.useContext)(Q.ZP.ConfigContext),u=c.locale,y=u===void 0?Q.ZP:a.Fragment,b=a.createElement(an,null,function(M){var I,B=u==null?void 0:u.locale,D=Yt(B),H=B&&((I=M.intl)===null||I===void 0?void 0:I.locale)==="default"?ht[D]:M.intl||ht[D],U=u===void 0?{locale:Z.Z}:{};return a.createElement(y,U,a.createElement(Lt,{value:(0,x.Z)((0,x.Z)({},M),{},{intl:H||xe})},a.createElement(a.Fragment,null,s&&a.createElement(ln,null),l)))});return s?a.createElement(F.J$,{value:{provider:function(){return new Map}}},b):b};function be(){var g=useContext(_ConfigProvider.ConfigContext),e=g.locale,l=useContext(It),i=l.intl;return i&&i.locale!=="default"?i:(e==null?void 0:e.locale)?ht[Yt(e.locale)]:xe}var yt=null,Ne=null,it=d(76632);function Bt(g,e){var l=(0,a.useRef)(!1),i=(0,a.useRef)(void 0);(0,a.useEffect)(function(){return l.current=!0,function(){clearTimeout(i.current),l.current=!1}},[]);var s=(0,it.Z)(g,e),c=(0,ie.Z)(s,2),u=c[0],y=c[1],b=function(I){clearTimeout(i.current),i.current=window.setTimeout(function(){l.current&&y(I)},16)};return a.version.startsWith("18")?[u,y]:[u,b]}var xt=Bt,_t=d(34155),Qt=typeof _t!="undefined"&&_t.versions!=null&&_t.versions.node!=null,on=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!Qt},_e=on;function zt(g,e){var l=typeof g.pageName=="string"?g.title:e;(0,a.useEffect)(function(){_e()&&l&&(document.title=l)},[g.title,l])}var sn=zt,jt=d(27754),un=d(94184),we=d.n(un),Jt=d(97435),cn=d(38069),dn=d(80430),fn=d.n(dn),mn=d(7700),bt=d(83832),Tn=d(57338),vn=d(25084),Xt=d(57186);function pn(){var g=(0,a.useState)([]),e=(0,ie.Z)(g,2),l=e[0],i=e[1];return{flatMenuKeys:l,setFlatMenuKeys:i}}var gn=(0,Xt.f)(pn),Ct=gn,t=d(30887),r=d(28682),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},o=n,f=d(27029),v=function(e,l){return a.createElement(f.Z,(0,x.Z)((0,x.Z)({},e),{},{ref:l,icon:o}))};v.displayName="MenuUnfoldOutlined";var m=a.forwardRef(v),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},w=E,L=function(e,l){return a.createElement(f.Z,(0,x.Z)((0,x.Z)({},e),{},{ref:l,icon:w}))};L.displayName="MenuFoldOutlined";var z=a.forwardRef(L),A=d(71748),j=d(33860),te=d(85061),Ee=d(5991),Ze=d(6610),J=d(91321),De=d(16165),Te=function(e){if(!e||!e.startsWith("http"))return!1;try{var l=new URL(e);return!!l}catch(i){return!1}},ze=Te;function je(g){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(g)}var Be=je,Ie={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},$e=Ie,kt=function g(e){return(e||[]).reduce(function(l,i){if(i.key&&l.push(i.key),i.routes){var s=l.concat(g(i.routes)||[]);return s}return l},[])},qt={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Fn(g){return g&&qt[g]?qt[g]:g}function Wt(g){return g.map(function(e){var l=e.children||e.routes,i=(0,x.Z)({},e);if(!i.name||i.hideInMenu)return null;if(i&&(i==null?void 0:i.routes)){if(!i.hideChildrenInMenu&&l.some(function(s){return s&&s.name&&!s.hideInMenu}))return(0,x.Z)((0,x.Z)({},e),{},{children:Wt(l),routes:Wt(l)});delete i.routes,delete i.children}return i}).filter(function(e){return e})}var Ba=d(43361),Rn=(0,J.Z)({scriptUrl:$e.iconfontUrl}),wn=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(ze(e)||Be(e))return a.createElement(De.Z,{component:function(){return a.createElement("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(l))return a.createElement(Rn,{type:e})}return e},ar=(0,Ee.Z)(function g(e){var l=this;(0,Ze.Z)(this,g),this.props=void 0,this.getNavMenuItems=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;return i.map(function(c){return l.getSubMenuOrItem(c,s)}).filter(function(c){return c})},this.getSubMenuOrItem=function(i,s){var c=(i==null?void 0:i.children)||(i==null?void 0:i.routes);if(Array.isArray(c)&&c.length>0){var u=l.getIntlName(i),y=l.props,b=y.subMenuItemRender,M=y.prefixCls,I=y.menu,B=y.iconPrefixes,D=i.icon?a.createElement("span",{className:"".concat(M,"-menu-item"),title:u},!s&&wn(i.icon,B),a.createElement("span",{className:"".concat(M,"-menu-item-title")},u)):a.createElement("span",{className:"".concat(M,"-menu-item"),title:u},u),H=b?b((0,x.Z)((0,x.Z)({},i),{},{isUrl:!1}),D,l.props):D;return{type:(I==null?void 0:I.type)==="group"?"group":void 0,label:H,children:l.getNavMenuItems(c,!0),onTitleClick:i.onTitleClick,key:i.key||i.path}}return{label:l.getMenuItemPath(i,s),title:l.getIntlName(i),key:i.key||i.path,disabled:i.disabled,onClick:function(ae){var $;ze(i==null?void 0:i.path)&&window.open(i.path),($=i.onTitleClick)===null||$===void 0||$.call(i,ae)}}},this.getIntlName=function(i){var s=i.name,c=i.locale,u=l.props,y=u.menu,b=u.formatMessage;return c&&(y==null?void 0:y.locale)!==!1?b==null?void 0:b({id:c,defaultMessage:s}):s},this.getMenuItemPath=function(i,s){var c=l.conversionPath(i.path||"/"),u=l.props,y=u.location,b=y===void 0?{pathname:"/"}:y,M=u.isMobile,I=u.onCollapse,B=u.menuItemRender,D=u.iconPrefixes,H=l.getIntlName(i),U=l.props.prefixCls,ae=s?null:wn(i.icon,D),$=ze(c),Fe=a.createElement("span",{className:we()("".concat(U,"-menu-item"),(0,O.Z)({},"".concat(U,"-menu-item-link"),$))},ae,a.createElement("span",{className:"".concat(U,"-menu-item-title")},H));if(B){var ne=(0,x.Z)((0,x.Z)({},i),{},{isUrl:$,itemPath:c,isMobile:M,replace:c===b.pathname,onClick:function(){$&&window.open(c),I&&I(!0)},children:void 0});return B(ne,Fe,l.props)}return Fe},this.conversionPath=function(i){return i&&i.indexOf("http")===0?i:"/".concat(i||"").replace(/\/+/g,"/")},this.props=e}),ir=function(e,l){var i=l.layout,s=l.collapsed,c={};return e&&!s&&["side","mix"].includes(i||"mix")&&(c={openKeys:e}),c},Zn=function(e){var l=e.theme,i=e.mode,s=e.className,c=e.handleOpenChange,u=e.style,y=e.menuData,b=e.menu,M=e.matchMenuKeys,I=e.iconfontUrl,B=e.collapsed,D=e.selectedKeys,H=e.onSelect,U=e.openKeys,ae=(0,a.useRef)([]),$=Ct.useContainer(),Fe=$.flatMenuKeys,ne=xt(b==null?void 0:b.defaultOpenAll),Ke=(0,ie.Z)(ne,2),ke=Ke[0],Ye=Ke[1],Le=xt(function(){return(b==null?void 0:b.defaultOpenAll)?kt(y)||[]:U===!1?!1:[]},{value:U===!1?void 0:U,onChange:c}),lt=(0,ie.Z)(Le,2),He=lt[0],me=lt[1],ot=xt([],{value:D,onChange:H?function(ft){H&&ft&&H(ft)}:void 0}),Je=(0,ie.Z)(ot,2),Xe=Je[0],qe=Je[1];(0,a.useEffect)(function(){(b==null?void 0:b.defaultOpenAll)||U===!1||Fe.length||M&&(me(M),qe(M))},[M.join("-")]),(0,a.useEffect)(function(){I&&(Rn=(0,J.Z)({scriptUrl:I}))},[I]),(0,a.useEffect)(function(){if(M.join("-")!==(Xe||[]).join("-")&&qe(M),!ke&&U!==!1&&M.join("-")!==(He||[]).join("-")){var ft=M;(b==null?void 0:b.autoClose)===!1&&(ft=Array.from(new Set([].concat((0,te.Z)(M),(0,te.Z)(He||[]))))),me(ft)}else(b==null?void 0:b.ignoreFlatMenu)&&ke?me(kt(y)):Fe.length>0&&Ye(!1)},[M.join("-"),B]);var St=(0,a.useMemo)(function(){return ir(He,e)},[He&&He.join(","),e.layout,e.collapsed]),Pt=(0,a.useState)(function(){return new ar(e)}),Mt=(0,ie.Z)(Pt,1),et=Mt[0];if(b==null?void 0:b.loading)return a.createElement("div",{style:(i==null?void 0:i.includes("inline"))?{padding:24}:{marginTop:16}},a.createElement(j.Z,{active:!0,title:!1,paragraph:{rows:(i==null?void 0:i.includes("inline"))?6:1}}));var st=we()(s,{"top-nav-menu":i==="horizontal"});et.props=e,e.openKeys===!1&&!e.handleOpenChange&&(ae.current=M);var Ue=e.postMenuData?e.postMenuData(y):y;return Ue&&(Ue==null?void 0:Ue.length)<1?null:a.createElement(r.Z,(0,W.Z)({},St,{key:"Menu",mode:i,items:et.getNavMenuItems(Ue,!1),inlineIndent:16,defaultOpenKeys:ae.current,theme:l,selectedKeys:Xe,style:u,className:st,onOpenChange:me},e.menuProps))};Zn.defaultProps={postMenuData:function(e){return e||[]}};var Dn=Zn,lr=T.Z.Sider,Nn=function(e){return typeof e=="string"?a.createElement("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},hn=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",i=e.logo,s=e.title,c=e.layout,u=e[l||""];if(u===!1)return null;var y=Nn(i),b=a.createElement("h1",null,s!=null?s:"Ant Design Pro");return u?u(y,e.collapsed?null:b,e):c==="mix"&&l==="menuHeaderRender"?null:a.createElement("a",null,y,e.collapsed?null:b)},On=function(e){return e?a.createElement(m,null):a.createElement(z,null)},or=function(e){var l,i=e.collapsed,s=e.fixSiderbar,c=e.menuFooterRender,u=e.onCollapse,y=e.theme,b=e.siderWidth,M=e.isMobile,I=e.onMenuHeaderClick,B=e.breakpoint,D=B===void 0?"lg":B,H=e.style,U=e.layout,ae=e.menuExtraRender,$=ae===void 0?!1:ae,Fe=e.collapsedButtonRender,ne=Fe===void 0?On:Fe,Ke=e.links,ke=e.menuContentRender,Ye=e.prefixCls,Le=e.onOpenChange,lt=e.headerHeight,He=e.logoStyle,me="".concat(Ye,"-sider"),ot=Ct.useContainer(),Je=ot.flatMenuKeys,Xe=we()("".concat(me),(l={},(0,O.Z)(l,"".concat(me,"-fixed"),s),(0,O.Z)(l,"".concat(me,"-layout-").concat(U),U&&!M),(0,O.Z)(l,"".concat(me,"-light"),y!=="dark"),l)),qe=hn(e),St=$&&$(e),Pt=ke!==!1&&Je&&a.createElement(Dn,(0,W.Z)({},e,{key:"base-menu",mode:"inline",handleOpenChange:Le,style:{width:"100%"},className:"".concat(me,"-menu")})),Mt=ke?ke(e,Pt):Pt,et=(Ke||[]).map(function(st,Ue){return{className:"".concat(me,"-link"),label:st,key:Ue}});return ne&&!M&&et.push({className:"".concat(me,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){u&&u(!i)},label:ne(i)}),a.createElement(a.Fragment,null,s&&a.createElement("div",{style:(0,x.Z)({width:i?48:b,overflow:"hidden",flex:"0 0 ".concat(i?48:b,"px"),maxWidth:i?48:b,minWidth:i?48:b,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},H)}),a.createElement(lr,{collapsible:!0,trigger:null,collapsed:i,breakpoint:D===!1?void 0:D,onCollapse:function(Ue){M||u==null||u(Ue)},collapsedWidth:48,style:(0,x.Z)({overflow:"hidden",paddingTop:U==="mix"&&!M?lt:void 0},H),width:b,theme:y,className:Xe},qe&&a.createElement("div",{className:we()("".concat(me,"-logo"),(0,O.Z)({},"".concat(me,"-collapsed"),i)),onClick:U!=="mix"?I:void 0,id:"logo",style:He},qe),St&&a.createElement("div",{className:"".concat(me,"-extra ").concat(!qe&&"".concat(me,"-extra-no-logo"))},St),a.createElement("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"}},Mt),a.createElement("div",{className:"".concat(me,"-links")},a.createElement(r.Z,{theme:y,inlineIndent:16,className:"".concat(me,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:et})),c&&a.createElement("div",{className:we()("".concat(me,"-footer"),(0,O.Z)({},"".concat(me,"-footer-collapsed"),!i))},c(e))))},In=or,sr=function(e){var l=e.isMobile,i=e.menuData,s=e.siderWidth,c=e.collapsed,u=e.onCollapse,y=e.style,b=e.className,M=e.hide,I=e.getContainer,B=e.prefixCls,D=e.matchMenuKeys,H=Ct.useContainer(),U=H.setFlatMenuKeys;(0,a.useEffect)(function(){if(!(!i||i.length<1)){var $=(0,jt.kv)(i);U(Object.keys($))}},[D.join("-")]),(0,a.useEffect)(function(){l===!0&&(u==null||u(!0))},[l]);var ae=(0,Jt.Z)(e,["className","style"]);return M?null:l?a.createElement(vn.Z,{visible:!c,placement:"left",className:we()("".concat(B,"-drawer-sider"),b),onClose:function(){return u==null?void 0:u(!0)},style:(0,x.Z)({padding:0,height:"100vh"},y),getContainer:I,width:s,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},a.createElement(In,(0,W.Z)({},ae,{className:we()("".concat(B,"-sider"),b),collapsed:l?!1:c,splitMenus:!1}))):a.createElement(In,(0,W.Z)({className:we()("".concat(B,"-sider"),b)},ae,{style:y}))},Ln=sr,ur=d(56858),_a=d(80471),cr=function(g){var e=g.className,l=g.prefixCls,i=g.links,s=g.copyright,c=g.style,u=(0,a.useContext)(Q.ZP.ConfigContext),y=u.getPrefixCls(l||"pro-global-footer");if((i==null||i===!1||Array.isArray(i)&&i.length===0)&&(s==null||s===!1))return null;var b=we()(y,e);return a.createElement("div",{className:b,style:c},i&&a.createElement("div",{className:"".concat(y,"-links")},i.map(function(M){return a.createElement("a",{key:M.key,title:M.key,target:M.blankTarget?"_blank":"_self",href:M.href,rel:"noreferrer"},M.title)})),s&&a.createElement("div",{className:"".concat(y,"-copyright")},s))},dr=T.Z.Footer,fr=function(e){var l=e.links,i=e.copyright,s=e.style,c=e.className,u=e.prefixCls;return a.createElement(dr,{className:c,style:(0,x.Z)({padding:0},s)},a.createElement(cr,{links:l,prefixCls:u,copyright:i===!1?null:a.createElement(a.Fragment,null,a.createElement(ur.Z,null)," ",i)}))},mr=fr,vr=d(16254),yn=d.n(vr),pr=function(e,l,i){if(i){var s=(0,te.Z)(i.keys()).find(function(u){return yn()(u).test(e)});if(s)return i.get(s)}if(l){var c=Object.keys(l).find(function(u){return yn()(u).test(e)});if(c)return l[c]}return{path:""}},An=function(e,l){var i=e.pathname,s=i===void 0?"/":i,c=e.breadcrumb,u=e.breadcrumbMap,y=e.formatMessage,b=e.title,M=e.menu,I=M===void 0?{locale:!1}:M,B=l?"":b||"",D=pr(s,c,u);if(!D)return{title:B,id:"",pageName:B};var H=D.name;return I.locale!==!1&&D.locale&&y&&(H=y({id:D.locale||"",defaultMessage:D.name})),H?l||!b?{title:H,id:D.locale||"",pageName:H}:{title:"".concat(H," - ").concat(b),id:D.locale||"",pageName:H}:{title:B,id:D.locale||"",pageName:B}},za=function(e,l){return An(e,l).title},ja=null,Bn=d(10379),_n=d(60446),gr=function(e){var l=(0,a.useRef)(null);return l.current=e,(0,a.useCallback)(function(){for(var i,s=arguments.length,c=new Array(s),u=0;u